function hS(o,s){for(var n=0;n<s.length;n++){const t=s[n];if(typeof t!="string"&&!Array.isArray(t)){for(const i in t)if(i!=="default"&&!(i in o)){const d=Object.getOwnPropertyDescriptor(t,i);d&&Object.defineProperty(o,i,d.get?d:{enumerable:!0,get:()=>t[i]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}var $F=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function zx(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var g_={exports:{}},Mc={};/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var __,dw;function Dy(){if(dw)return __;dw=1;var o=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function t(d){if(d==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(d)}function i(){try{if(!Object.assign)return!1;var d=new String("abc");if(d[5]="de",Object.getOwnPropertyNames(d)[0]==="5")return!1;for(var c={},u=0;u<10;u++)c["_"+String.fromCharCode(u)]=u;var h=Object.getOwnPropertyNames(c).map(function(w){return c[w]});if(h.join("")!=="0123456789")return!1;var g={};return"abcdefghijklmnopqrst".split("").forEach(function(w){g[w]=w}),Object.keys(Object.assign({},g)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return __=i()?Object.assign:function(d,c){for(var u,h=t(d),g,w=1;w<arguments.length;w++){u=Object(arguments[w]);for(var m in u)s.call(u,m)&&(h[m]=u[m]);if(o){g=o(u);for(var x=0;x<g.length;x++)n.call(u,g[x])&&(h[g[x]]=u[g[x]])}}return h},__}var y_={exports:{}},It={};/** @license React v17.0.2
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var cw;function mS(){if(cw)return It;cw=1;var o=Dy(),s=60103,n=60106;It.Fragment=60107,It.StrictMode=60108,It.Profiler=60114;var t=60109,i=60110,d=60112;It.Suspense=60113;var c=60115,u=60116;if(typeof Symbol=="function"&&Symbol.for){var h=Symbol.for;s=h("react.element"),n=h("react.portal"),It.Fragment=h("react.fragment"),It.StrictMode=h("react.strict_mode"),It.Profiler=h("react.profiler"),t=h("react.provider"),i=h("react.context"),d=h("react.forward_ref"),It.Suspense=h("react.suspense"),c=h("react.memo"),u=h("react.lazy")}var g=typeof Symbol=="function"&&Symbol.iterator;function w($){return $===null||typeof $!="object"?null:($=g&&$[g]||$["@@iterator"],typeof $=="function"?$:null)}function m($){for(var ie="https://reactjs.org/docs/error-decoder.html?invariant="+$,le=1;le<arguments.length;le++)ie+="&args[]="+encodeURIComponent(arguments[le]);return"Minified React error #"+$+"; visit "+ie+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_={};function v($,ie,le){this.props=$,this.context=ie,this.refs=_,this.updater=le||x}v.prototype.isReactComponent={},v.prototype.setState=function($,ie){if(typeof $!="object"&&typeof $!="function"&&$!=null)throw Error(m(85));this.updater.enqueueSetState(this,$,ie,"setState")},v.prototype.forceUpdate=function($){this.updater.enqueueForceUpdate(this,$,"forceUpdate")};function b(){}b.prototype=v.prototype;function C($,ie,le){this.props=$,this.context=ie,this.refs=_,this.updater=le||x}var k=C.prototype=new b;k.constructor=C,o(k,v.prototype),k.isPureReactComponent=!0;var L={current:null},T=Object.prototype.hasOwnProperty,N={key:!0,ref:!0,__self:!0,__source:!0};function Y($,ie,le){var V,z={},J=null,ee=null;if(ie!=null)for(V in ie.ref!==void 0&&(ee=ie.ref),ie.key!==void 0&&(J=""+ie.key),ie)T.call(ie,V)&&!N.hasOwnProperty(V)&&(z[V]=ie[V]);var me=arguments.length-2;if(me===1)z.children=le;else if(1<me){for(var te=Array(me),G=0;G<me;G++)te[G]=arguments[G+2];z.children=te}if($&&$.defaultProps)for(V in me=$.defaultProps,me)z[V]===void 0&&(z[V]=me[V]);return{$$typeof:s,type:$,key:J,ref:ee,props:z,_owner:L.current}}function A($,ie){return{$$typeof:s,type:$.type,key:ie,ref:$.ref,props:$.props,_owner:$._owner}}function I($){return typeof $=="object"&&$!==null&&$.$$typeof===s}function R($){var ie={"=":"=0",":":"=2"};return"$"+$.replace(/[=:]/g,function(le){return ie[le]})}var H=/\/+/g;function W($,ie){return typeof $=="object"&&$!==null&&$.key!=null?R(""+$.key):ie.toString(36)}function K($,ie,le,V,z){var J=typeof $;(J==="undefined"||J==="boolean")&&($=null);var ee=!1;if($===null)ee=!0;else switch(J){case"string":case"number":ee=!0;break;case"object":switch($.$$typeof){case s:case n:ee=!0}}if(ee)return ee=$,z=z(ee),$=V===""?"."+W(ee,0):V,Array.isArray(z)?(le="",$!=null&&(le=$.replace(H,"$&/")+"/"),K(z,ie,le,"",function(G){return G})):z!=null&&(I(z)&&(z=A(z,le+(!z.key||ee&&ee.key===z.key?"":(""+z.key).replace(H,"$&/")+"/")+$)),ie.push(z)),1;if(ee=0,V=V===""?".":V+":",Array.isArray($))for(var me=0;me<$.length;me++){J=$[me];var te=V+W(J,me);ee+=K(J,ie,le,te,z)}else if(te=w($),typeof te=="function")for($=te.call($),me=0;!(J=$.next()).done;)J=J.value,te=V+W(J,me++),ee+=K(J,ie,le,te,z);else if(J==="object")throw ie=""+$,Error(m(31,ie==="[object Object]"?"object with keys {"+Object.keys($).join(", ")+"}":ie));return ee}function Z($,ie,le){if($==null)return $;var V=[],z=0;return K($,V,"","",function(J){return ie.call(le,J,z++)}),V}function Q($){if($._status===-1){var ie=$._result;ie=ie(),$._status=0,$._result=ie,ie.then(function(le){$._status===0&&(le=le.default,$._status=1,$._result=le)},function(le){$._status===0&&($._status=2,$._result=le)})}if($._status===1)return $._result;throw $._result}var B={current:null};function P(){var $=B.current;if($===null)throw Error(m(321));return $}var X={ReactCurrentDispatcher:B,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:L,IsSomeRendererActing:{current:!1},assign:o};return It.Children={map:Z,forEach:function($,ie,le){Z($,function(){ie.apply(this,arguments)},le)},count:function($){var ie=0;return Z($,function(){ie++}),ie},toArray:function($){return Z($,function(ie){return ie})||[]},only:function($){if(!I($))throw Error(m(143));return $}},It.Component=v,It.PureComponent=C,It.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=X,It.cloneElement=function($,ie,le){if($==null)throw Error(m(267,$));var V=o({},$.props),z=$.key,J=$.ref,ee=$._owner;if(ie!=null){if(ie.ref!==void 0&&(J=ie.ref,ee=L.current),ie.key!==void 0&&(z=""+ie.key),$.type&&$.type.defaultProps)var me=$.type.defaultProps;for(te in ie)T.call(ie,te)&&!N.hasOwnProperty(te)&&(V[te]=ie[te]===void 0&&me!==void 0?me[te]:ie[te])}var te=arguments.length-2;if(te===1)V.children=le;else if(1<te){me=Array(te);for(var G=0;G<te;G++)me[G]=arguments[G+2];V.children=me}return{$$typeof:s,type:$.type,key:z,ref:J,props:V,_owner:ee}},It.createContext=function($,ie){return ie===void 0&&(ie=null),$={$$typeof:i,_calculateChangedBits:ie,_currentValue:$,_currentValue2:$,_threadCount:0,Provider:null,Consumer:null},$.Provider={$$typeof:t,_context:$},$.Consumer=$},It.createElement=Y,It.createFactory=function($){var ie=Y.bind(null,$);return ie.type=$,ie},It.createRef=function(){return{current:null}},It.forwardRef=function($){return{$$typeof:d,render:$}},It.isValidElement=I,It.lazy=function($){return{$$typeof:u,_payload:{_status:-1,_result:$},_init:Q}},It.memo=function($,ie){return{$$typeof:c,type:$,compare:ie===void 0?null:ie}},It.useCallback=function($,ie){return P().useCallback($,ie)},It.useContext=function($,ie){return P().useContext($,ie)},It.useDebugValue=function(){},It.useEffect=function($,ie){return P().useEffect($,ie)},It.useImperativeHandle=function($,ie,le){return P().useImperativeHandle($,ie,le)},It.useLayoutEffect=function($,ie){return P().useLayoutEffect($,ie)},It.useMemo=function($,ie){return P().useMemo($,ie)},It.useReducer=function($,ie,le){return P().useReducer($,ie,le)},It.useRef=function($){return P().useRef($)},It.useState=function($){return P().useState($)},It.version="17.0.2",It}var uw;function Iy(){return uw||(uw=1,y_.exports=mS()),y_.exports}/** @license React v17.0.2
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var pw;function fS(){if(pw)return Mc;pw=1,Dy();var o=Iy(),s=60103;if(Mc.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var n=Symbol.for;s=n("react.element"),Mc.Fragment=n("react.fragment")}var t=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i=Object.prototype.hasOwnProperty,d={key:!0,ref:!0,__self:!0,__source:!0};function c(u,h,g){var w,m={},x=null,_=null;g!==void 0&&(x=""+g),h.key!==void 0&&(x=""+h.key),h.ref!==void 0&&(_=h.ref);for(w in h)i.call(h,w)&&!d.hasOwnProperty(w)&&(m[w]=h[w]);if(u&&u.defaultProps)for(w in h=u.defaultProps,h)m[w]===void 0&&(m[w]=h[w]);return{$$typeof:s,type:u,key:x,ref:_,props:m,_owner:t.current}}return Mc.jsx=c,Mc.jsxs=c,Mc}var hw;function gS(){return hw||(hw=1,g_.exports=fS()),g_.exports}var e=gS(),w_={exports:{}},jo={},v_={exports:{}},x_={};/** @license React v0.20.2
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var mw;function _S(){return mw||(mw=1,(function(o){var s,n,t,i;if(typeof performance=="object"&&typeof performance.now=="function"){var d=performance;o.unstable_now=function(){return d.now()}}else{var c=Date,u=c.now();o.unstable_now=function(){return c.now()-u}}if(typeof window>"u"||typeof MessageChannel!="function"){var h=null,g=null,w=function(){if(h!==null)try{var z=o.unstable_now();h(!0,z),h=null}catch(J){throw setTimeout(w,0),J}};s=function(z){h!==null?setTimeout(s,0,z):(h=z,setTimeout(w,0))},n=function(z,J){g=setTimeout(z,J)},t=function(){clearTimeout(g)},o.unstable_shouldYield=function(){return!1},i=o.unstable_forceFrameRate=function(){}}else{var m=window.setTimeout,x=window.clearTimeout;if(typeof console<"u"){var _=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof _!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var v=!1,b=null,C=-1,k=5,L=0;o.unstable_shouldYield=function(){return o.unstable_now()>=L},i=function(){},o.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<z?Math.floor(1e3/z):5};var T=new MessageChannel,N=T.port2;T.port1.onmessage=function(){if(b!==null){var z=o.unstable_now();L=z+k;try{b(!0,z)?N.postMessage(null):(v=!1,b=null)}catch(J){throw N.postMessage(null),J}}else v=!1},s=function(z){b=z,v||(v=!0,N.postMessage(null))},n=function(z,J){C=m(function(){z(o.unstable_now())},J)},t=function(){x(C),C=-1}}function Y(z,J){var ee=z.length;z.push(J);e:for(;;){var me=ee-1>>>1,te=z[me];if(te!==void 0&&0<R(te,J))z[me]=J,z[ee]=te,ee=me;else break e}}function A(z){return z=z[0],z===void 0?null:z}function I(z){var J=z[0];if(J!==void 0){var ee=z.pop();if(ee!==J){z[0]=ee;e:for(var me=0,te=z.length;me<te;){var G=2*(me+1)-1,ne=z[G],Ue=G+1,Ge=z[Ue];if(ne!==void 0&&0>R(ne,ee))Ge!==void 0&&0>R(Ge,ne)?(z[me]=Ge,z[Ue]=ee,me=Ue):(z[me]=ne,z[G]=ee,me=G);else if(Ge!==void 0&&0>R(Ge,ee))z[me]=Ge,z[Ue]=ee,me=Ue;else break e}}return J}return null}function R(z,J){var ee=z.sortIndex-J.sortIndex;return ee!==0?ee:z.id-J.id}var H=[],W=[],K=1,Z=null,Q=3,B=!1,P=!1,X=!1;function $(z){for(var J=A(W);J!==null;){if(J.callback===null)I(W);else if(J.startTime<=z)I(W),J.sortIndex=J.expirationTime,Y(H,J);else break;J=A(W)}}function ie(z){if(X=!1,$(z),!P)if(A(H)!==null)P=!0,s(le);else{var J=A(W);J!==null&&n(ie,J.startTime-z)}}function le(z,J){P=!1,X&&(X=!1,t()),B=!0;var ee=Q;try{for($(J),Z=A(H);Z!==null&&(!(Z.expirationTime>J)||z&&!o.unstable_shouldYield());){var me=Z.callback;if(typeof me=="function"){Z.callback=null,Q=Z.priorityLevel;var te=me(Z.expirationTime<=J);J=o.unstable_now(),typeof te=="function"?Z.callback=te:Z===A(H)&&I(H),$(J)}else I(H);Z=A(H)}if(Z!==null)var G=!0;else{var ne=A(W);ne!==null&&n(ie,ne.startTime-J),G=!1}return G}finally{Z=null,Q=ee,B=!1}}var V=i;o.unstable_IdlePriority=5,o.unstable_ImmediatePriority=1,o.unstable_LowPriority=4,o.unstable_NormalPriority=3,o.unstable_Profiling=null,o.unstable_UserBlockingPriority=2,o.unstable_cancelCallback=function(z){z.callback=null},o.unstable_continueExecution=function(){P||B||(P=!0,s(le))},o.unstable_getCurrentPriorityLevel=function(){return Q},o.unstable_getFirstCallbackNode=function(){return A(H)},o.unstable_next=function(z){switch(Q){case 1:case 2:case 3:var J=3;break;default:J=Q}var ee=Q;Q=J;try{return z()}finally{Q=ee}},o.unstable_pauseExecution=function(){},o.unstable_requestPaint=V,o.unstable_runWithPriority=function(z,J){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var ee=Q;Q=z;try{return J()}finally{Q=ee}},o.unstable_scheduleCallback=function(z,J,ee){var me=o.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?me+ee:me):ee=me,z){case 1:var te=-1;break;case 2:te=250;break;case 5:te=1073741823;break;case 4:te=1e4;break;default:te=5e3}return te=ee+te,z={id:K++,callback:J,priorityLevel:z,startTime:ee,expirationTime:te,sortIndex:-1},ee>me?(z.sortIndex=ee,Y(W,z),A(H)===null&&z===A(W)&&(X?t():X=!0,n(ie,ee-me))):(z.sortIndex=te,Y(H,z),P||B||(P=!0,s(le))),z},o.unstable_wrapCallback=function(z){var J=Q;return function(){var ee=Q;Q=J;try{return z.apply(this,arguments)}finally{Q=ee}}}})(x_)),x_}var fw;function yS(){return fw||(fw=1,v_.exports=_S()),v_.exports}/** @license React v17.0.2
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var gw;function wS(){if(gw)return jo;gw=1;var o=Iy(),s=Dy(),n=yS();function t(p){for(var r="https://reactjs.org/docs/error-decoder.html?invariant="+p,a=1;a<arguments.length;a++)r+="&args[]="+encodeURIComponent(arguments[a]);return"Minified React error #"+p+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!o)throw Error(t(227));var i=new Set,d={};function c(p,r){u(p,r),u(p+"Capture",r)}function u(p,r){for(d[p]=r,p=0;p<r.length;p++)i.add(r[p])}var h=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),g=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,w=Object.prototype.hasOwnProperty,m={},x={};function _(p){return w.call(x,p)?!0:w.call(m,p)?!1:g.test(p)?x[p]=!0:(m[p]=!0,!1)}function v(p,r,a,f){if(a!==null&&a.type===0)return!1;switch(typeof r){case"function":case"symbol":return!0;case"boolean":return f?!1:a!==null?!a.acceptsBooleans:(p=p.toLowerCase().slice(0,5),p!=="data-"&&p!=="aria-");default:return!1}}function b(p,r,a,f){if(r===null||typeof r>"u"||v(p,r,a,f))return!0;if(f)return!1;if(a!==null)switch(a.type){case 3:return!r;case 4:return r===!1;case 5:return isNaN(r);case 6:return isNaN(r)||1>r}return!1}function C(p,r,a,f,y,S,E){this.acceptsBooleans=r===2||r===3||r===4,this.attributeName=f,this.attributeNamespace=y,this.mustUseProperty=a,this.propertyName=p,this.type=r,this.sanitizeURL=S,this.removeEmptyString=E}var k={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(p){k[p]=new C(p,0,!1,p,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(p){var r=p[0];k[r]=new C(r,1,!1,p[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(p){k[p]=new C(p,2,!1,p.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(p){k[p]=new C(p,2,!1,p,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(p){k[p]=new C(p,3,!1,p.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(p){k[p]=new C(p,3,!0,p,null,!1,!1)}),["capture","download"].forEach(function(p){k[p]=new C(p,4,!1,p,null,!1,!1)}),["cols","rows","size","span"].forEach(function(p){k[p]=new C(p,6,!1,p,null,!1,!1)}),["rowSpan","start"].forEach(function(p){k[p]=new C(p,5,!1,p.toLowerCase(),null,!1,!1)});var L=/[\-:]([a-z])/g;function T(p){return p[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(p){var r=p.replace(L,T);k[r]=new C(r,1,!1,p,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(p){var r=p.replace(L,T);k[r]=new C(r,1,!1,p,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(p){var r=p.replace(L,T);k[r]=new C(r,1,!1,p,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(p){k[p]=new C(p,1,!1,p.toLowerCase(),null,!1,!1)}),k.xlinkHref=new C("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(p){k[p]=new C(p,1,!1,p.toLowerCase(),null,!0,!0)});function N(p,r,a,f){var y=k.hasOwnProperty(r)?k[r]:null,S=y!==null?y.type===0:f?!1:!(!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N");S||(b(r,a,y,f)&&(a=null),f||y===null?_(r)&&(a===null?p.removeAttribute(r):p.setAttribute(r,""+a)):y.mustUseProperty?p[y.propertyName]=a===null?y.type===3?!1:"":a:(r=y.attributeName,f=y.attributeNamespace,a===null?p.removeAttribute(r):(y=y.type,a=y===3||y===4&&a===!0?"":""+a,f?p.setAttributeNS(f,r,a):p.setAttribute(r,a))))}var Y=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,A=60103,I=60106,R=60107,H=60108,W=60114,K=60109,Z=60110,Q=60112,B=60113,P=60120,X=60115,$=60116,ie=60121,le=60128,V=60129,z=60130,J=60131;if(typeof Symbol=="function"&&Symbol.for){var ee=Symbol.for;A=ee("react.element"),I=ee("react.portal"),R=ee("react.fragment"),H=ee("react.strict_mode"),W=ee("react.profiler"),K=ee("react.provider"),Z=ee("react.context"),Q=ee("react.forward_ref"),B=ee("react.suspense"),P=ee("react.suspense_list"),X=ee("react.memo"),$=ee("react.lazy"),ie=ee("react.block"),ee("react.scope"),le=ee("react.opaque.id"),V=ee("react.debug_trace_mode"),z=ee("react.offscreen"),J=ee("react.legacy_hidden")}var me=typeof Symbol=="function"&&Symbol.iterator;function te(p){return p===null||typeof p!="object"?null:(p=me&&p[me]||p["@@iterator"],typeof p=="function"?p:null)}var G;function ne(p){if(G===void 0)try{throw Error()}catch(a){var r=a.stack.trim().match(/\n( *(at )?)/);G=r&&r[1]||""}return`
`+G+p}var Ue=!1;function Ge(p,r){if(!p||Ue)return"";Ue=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(r)if(r=function(){throw Error()},Object.defineProperty(r.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(r,[])}catch(q){var f=q}Reflect.construct(p,[],r)}else{try{r.call()}catch(q){f=q}p.call(r.prototype)}else{try{throw Error()}catch(q){f=q}p()}}catch(q){if(q&&f&&typeof q.stack=="string"){for(var y=q.stack.split(`
`),S=f.stack.split(`
`),E=y.length-1,O=S.length-1;1<=E&&0<=O&&y[E]!==S[O];)O--;for(;1<=E&&0<=O;E--,O--)if(y[E]!==S[O]){if(E!==1||O!==1)do if(E--,O--,0>O||y[E]!==S[O])return`
`+y[E].replace(" at new "," at ");while(1<=E&&0<=O);break}}}finally{Ue=!1,Error.prepareStackTrace=a}return(p=p?p.displayName||p.name:"")?ne(p):""}function Ut(p){switch(p.tag){case 5:return ne(p.type);case 16:return ne("Lazy");case 13:return ne("Suspense");case 19:return ne("SuspenseList");case 0:case 2:case 15:return p=Ge(p.type,!1),p;case 11:return p=Ge(p.type.render,!1),p;case 22:return p=Ge(p.type._render,!1),p;case 1:return p=Ge(p.type,!0),p;default:return""}}function ht(p){if(p==null)return null;if(typeof p=="function")return p.displayName||p.name||null;if(typeof p=="string")return p;switch(p){case R:return"Fragment";case I:return"Portal";case W:return"Profiler";case H:return"StrictMode";case B:return"Suspense";case P:return"SuspenseList"}if(typeof p=="object")switch(p.$$typeof){case Z:return(p.displayName||"Context")+".Consumer";case K:return(p._context.displayName||"Context")+".Provider";case Q:var r=p.render;return r=r.displayName||r.name||"",p.displayName||(r!==""?"ForwardRef("+r+")":"ForwardRef");case X:return ht(p.type);case ie:return ht(p._render);case $:r=p._payload,p=p._init;try{return ht(p(r))}catch{}}return null}function Le(p){switch(typeof p){case"boolean":case"number":case"object":case"string":case"undefined":return p;default:return""}}function je(p){var r=p.type;return(p=p.nodeName)&&p.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function $e(p){var r=je(p)?"checked":"value",a=Object.getOwnPropertyDescriptor(p.constructor.prototype,r),f=""+p[r];if(!p.hasOwnProperty(r)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var y=a.get,S=a.set;return Object.defineProperty(p,r,{configurable:!0,get:function(){return y.call(this)},set:function(E){f=""+E,S.call(this,E)}}),Object.defineProperty(p,r,{enumerable:a.enumerable}),{getValue:function(){return f},setValue:function(E){f=""+E},stopTracking:function(){p._valueTracker=null,delete p[r]}}}}function Ct(p){p._valueTracker||(p._valueTracker=$e(p))}function At(p){if(!p)return!1;var r=p._valueTracker;if(!r)return!0;var a=r.getValue(),f="";return p&&(f=je(p)?p.checked?"true":"false":p.value),p=f,p!==a?(r.setValue(p),!0):!1}function Mt(p){if(p=p||(typeof document<"u"?document:void 0),typeof p>"u")return null;try{return p.activeElement||p.body}catch{return p.body}}function Wt(p,r){var a=r.checked;return s({},r,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??p._wrapperState.initialChecked})}function Xt(p,r){var a=r.defaultValue==null?"":r.defaultValue,f=r.checked!=null?r.checked:r.defaultChecked;a=Le(r.value!=null?r.value:a),p._wrapperState={initialChecked:f,initialValue:a,controlled:r.type==="checkbox"||r.type==="radio"?r.checked!=null:r.value!=null}}function ys(p,r){r=r.checked,r!=null&&N(p,"checked",r,!1)}function an(p,r){ys(p,r);var a=Le(r.value),f=r.type;if(a!=null)f==="number"?(a===0&&p.value===""||p.value!=a)&&(p.value=""+a):p.value!==""+a&&(p.value=""+a);else if(f==="submit"||f==="reset"){p.removeAttribute("value");return}r.hasOwnProperty("value")?Hn(p,r.type,a):r.hasOwnProperty("defaultValue")&&Hn(p,r.type,Le(r.defaultValue)),r.checked==null&&r.defaultChecked!=null&&(p.defaultChecked=!!r.defaultChecked)}function fo(p,r,a){if(r.hasOwnProperty("value")||r.hasOwnProperty("defaultValue")){var f=r.type;if(!(f!=="submit"&&f!=="reset"||r.value!==void 0&&r.value!==null))return;r=""+p._wrapperState.initialValue,a||r===p.value||(p.value=r),p.defaultValue=r}a=p.name,a!==""&&(p.name=""),p.defaultChecked=!!p._wrapperState.initialChecked,a!==""&&(p.name=a)}function Hn(p,r,a){(r!=="number"||Mt(p.ownerDocument)!==p)&&(a==null?p.defaultValue=""+p._wrapperState.initialValue:p.defaultValue!==""+a&&(p.defaultValue=""+a))}function ki(p){var r="";return o.Children.forEach(p,function(a){a!=null&&(r+=a)}),r}function rr(p,r){return p=s({children:void 0},r),(r=ki(r.children))&&(p.children=r),p}function Ft(p,r,a,f){if(p=p.options,r){r={};for(var y=0;y<a.length;y++)r["$"+a[y]]=!0;for(a=0;a<p.length;a++)y=r.hasOwnProperty("$"+p[a].value),p[a].selected!==y&&(p[a].selected=y),y&&f&&(p[a].defaultSelected=!0)}else{for(a=""+Le(a),r=null,y=0;y<p.length;y++){if(p[y].value===a){p[y].selected=!0,f&&(p[y].defaultSelected=!0);return}r!==null||p[y].disabled||(r=p[y])}r!==null&&(r.selected=!0)}}function Go(p,r){if(r.dangerouslySetInnerHTML!=null)throw Error(t(91));return s({},r,{value:void 0,defaultValue:void 0,children:""+p._wrapperState.initialValue})}function or(p,r){var a=r.value;if(a==null){if(a=r.children,r=r.defaultValue,a!=null){if(r!=null)throw Error(t(92));if(Array.isArray(a)){if(!(1>=a.length))throw Error(t(93));a=a[0]}r=a}r==null&&(r=""),a=r}p._wrapperState={initialValue:Le(a)}}function $o(p,r){var a=Le(r.value),f=Le(r.defaultValue);a!=null&&(a=""+a,a!==p.value&&(p.value=a),r.defaultValue==null&&p.defaultValue!==a&&(p.defaultValue=a)),f!=null&&(p.defaultValue=""+f)}function Pt(p){var r=p.textContent;r===p._wrapperState.initialValue&&r!==""&&r!==null&&(p.value=r)}var ge={html:"http://www.w3.org/1999/xhtml",svg:"http://www.w3.org/2000/svg"};function se(p){switch(p){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ae(p,r){return p==null||p==="http://www.w3.org/1999/xhtml"?se(r):p==="http://www.w3.org/2000/svg"&&r==="foreignObject"?"http://www.w3.org/1999/xhtml":p}var gt,Bt=(function(p){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(r,a,f,y){MSApp.execUnsafeLocalFunction(function(){return p(r,a,f,y)})}:p})(function(p,r){if(p.namespaceURI!==ge.svg||"innerHTML"in p)p.innerHTML=r;else{for(gt=gt||document.createElement("div"),gt.innerHTML="<svg>"+r.valueOf().toString()+"</svg>",r=gt.firstChild;p.firstChild;)p.removeChild(p.firstChild);for(;r.firstChild;)p.appendChild(r.firstChild)}});function sr(p,r){if(r){var a=p.firstChild;if(a&&a===p.lastChild&&a.nodeType===3){a.nodeValue=r;return}}p.textContent=r}var go={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Sd=["Webkit","ms","Moz","O"];Object.keys(go).forEach(function(p){Sd.forEach(function(r){r=r+p.charAt(0).toUpperCase()+p.substring(1),go[r]=go[p]})});function Gs(p,r,a){return r==null||typeof r=="boolean"||r===""?"":a||typeof r!="number"||r===0||go.hasOwnProperty(p)&&go[p]?(""+r).trim():r+"px"}function sl(p,r){p=p.style;for(var a in r)if(r.hasOwnProperty(a)){var f=a.indexOf("--")===0,y=Gs(a,r[a],f);a==="float"&&(a="cssFloat"),f?p.setProperty(a,y):p[a]=y}}var $s=s({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function _o(p,r){if(r){if($s[p]&&(r.children!=null||r.dangerouslySetInnerHTML!=null))throw Error(t(137,p));if(r.dangerouslySetInnerHTML!=null){if(r.children!=null)throw Error(t(60));if(!(typeof r.dangerouslySetInnerHTML=="object"&&"__html"in r.dangerouslySetInnerHTML))throw Error(t(61))}if(r.style!=null&&typeof r.style!="object")throw Error(t(62))}}function Mi(p,r){if(p.indexOf("-")===-1)return typeof r.is=="string";switch(p){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Ko(p){return p=p.target||p.srcElement||window,p.correspondingUseElement&&(p=p.correspondingUseElement),p.nodeType===3?p.parentNode:p}var Ie=null,qo=null,to=null;function Er(p){if(p=Ml(p)){if(typeof Ie!="function")throw Error(t(280));var r=p.stateNode;r&&(r=Vd(r),Ie(p.stateNode,p.type,r))}}function pn(p){qo?to?to.push(p):to=[p]:qo=p}function Qe(){if(qo){var p=qo,r=to;if(to=qo=null,Er(p),r)for(p=0;p<r.length;p++)Er(r[p])}}function Ks(p,r){return p(r)}function _t(p,r,a,f,y){return p(r,a,f,y)}function yo(){}var Cd=Ks,_r=!1,ln=!1;function ir(){(qo!==null||to!==null)&&(yo(),Qe())}function Dr(p,r,a){if(ln)return p(r,a);ln=!0;try{return Cd(p,r,a)}finally{ln=!1,ir()}}function Vt(p,r){var a=p.stateNode;if(a===null)return null;var f=Vd(a);if(f===null)return null;a=f[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(f=!f.disabled)||(p=p.type,f=!(p==="button"||p==="input"||p==="select"||p==="textarea")),p=!f;break e;default:p=!1}if(p)return null;if(a&&typeof a!="function")throw Error(t(231,r,typeof a));return a}var ar=!1;if(h)try{var lr={};Object.defineProperty(lr,"passive",{get:function(){ar=!0}}),window.addEventListener("test",lr,lr),window.removeEventListener("test",lr,lr)}catch{ar=!1}function wo(p,r,a,f,y,S,E,O,q){var ae=Array.prototype.slice.call(arguments,3);try{r.apply(a,ae)}catch(Se){this.onError(Se)}}var qs=!1,sa=null,Jo=!1,ia=null,aa={onError:function(p){qs=!0,sa=p}};function Zo(p,r,a,f,y,S,E,O,q){qs=!1,sa=null,wo.apply(aa,arguments)}function Js(p,r,a,f,y,S,E,O,q){if(Zo.apply(this,arguments),qs){if(qs){var ae=sa;qs=!1,sa=null}else throw Error(t(198));Jo||(Jo=!0,ia=ae)}}function no(p){var r=p,a=p;if(p.alternate)for(;r.return;)r=r.return;else{p=r;do r=p,(r.flags&1026)!==0&&(a=r.return),p=r.return;while(p)}return r.tag===3?a:null}function il(p){if(p.tag===13){var r=p.memoizedState;if(r===null&&(p=p.alternate,p!==null&&(r=p.memoizedState)),r!==null)return r.dehydrated}return null}function kd(p){if(no(p)!==p)throw Error(t(188))}function al(p){var r=p.alternate;if(!r){if(r=no(p),r===null)throw Error(t(188));return r!==p?null:p}for(var a=p,f=r;;){var y=a.return;if(y===null)break;var S=y.alternate;if(S===null){if(f=y.return,f!==null){a=f;continue}break}if(y.child===S.child){for(S=y.child;S;){if(S===a)return kd(y),p;if(S===f)return kd(y),r;S=S.sibling}throw Error(t(188))}if(a.return!==f.return)a=y,f=S;else{for(var E=!1,O=y.child;O;){if(O===a){E=!0,a=y,f=S;break}if(O===f){E=!0,f=y,a=S;break}O=O.sibling}if(!E){for(O=S.child;O;){if(O===a){E=!0,a=S,f=y;break}if(O===f){E=!0,f=S,a=y;break}O=O.sibling}if(!E)throw Error(t(189))}}if(a.alternate!==f)throw Error(t(190))}if(a.tag!==3)throw Error(t(188));return a.stateNode.current===a?p:r}function Qt(p){if(p=al(p),!p)return null;for(var r=p;;){if(r.tag===5||r.tag===6)return r;if(r.child)r.child.return=r,r=r.child;else{if(r===p)break;for(;!r.sibling;){if(!r.return||r.return===p)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}}return null}function ji(p,r){for(var a=p.alternate;r!==null;){if(r===p||r===a)return!0;r=r.return}return!1}var la,da,ll,dl,cl=!1,Ir=[],Xo=null,Qo=null,at=null,Nt=new Map,jt=new Map,wn=[],Tr="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Li(p,r,a,f,y){return{blockedOn:p,domEventName:r,eventSystemFlags:a|16,nativeEvent:y,targetContainers:[f]}}function ul(p,r){switch(p){case"focusin":case"focusout":Xo=null;break;case"dragenter":case"dragleave":Qo=null;break;case"mouseover":case"mouseout":at=null;break;case"pointerover":case"pointerout":Nt.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":jt.delete(r.pointerId)}}function Ei(p,r,a,f,y,S){return p===null||p.nativeEvent!==S?(p=Li(r,a,f,y,S),r!==null&&(r=Ml(r),r!==null&&da(r)),p):(p.eventSystemFlags|=f,r=p.targetContainers,y!==null&&r.indexOf(y)===-1&&r.push(y),p)}function Zs(p,r,a,f,y){switch(r){case"focusin":return Xo=Ei(Xo,p,r,a,f,y),!0;case"dragenter":return Qo=Ei(Qo,p,r,a,f,y),!0;case"mouseover":return at=Ei(at,p,r,a,f,y),!0;case"pointerover":var S=y.pointerId;return Nt.set(S,Ei(Nt.get(S)||null,p,r,a,f,y)),!0;case"gotpointercapture":return S=y.pointerId,jt.set(S,Ei(jt.get(S)||null,p,r,a,f,y)),!0}return!1}function Md(p){var r=Ai(p.target);if(r!==null){var a=no(r);if(a!==null){if(r=a.tag,r===13){if(r=il(a),r!==null){p.blockedOn=r,dl(p.lanePriority,function(){n.unstable_runWithPriority(p.priority,function(){ll(a)})});return}}else if(r===3&&a.stateNode.hydrate){p.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}p.blockedOn=null}function pl(p){if(p.blockedOn!==null)return!1;for(var r=p.targetContainers;0<r.length;){var a=Jt(p.domEventName,p.eventSystemFlags,r[0],p.nativeEvent);if(a!==null)return r=Ml(a),r!==null&&da(r),p.blockedOn=a,!1;r.shift()}return!0}function ca(p,r,a){pl(p)&&a.delete(r)}function ws(){for(cl=!1;0<Ir.length;){var p=Ir[0];if(p.blockedOn!==null){p=Ml(p.blockedOn),p!==null&&la(p);break}for(var r=p.targetContainers;0<r.length;){var a=Jt(p.domEventName,p.eventSystemFlags,r[0],p.nativeEvent);if(a!==null){p.blockedOn=a;break}r.shift()}p.blockedOn===null&&Ir.shift()}Xo!==null&&pl(Xo)&&(Xo=null),Qo!==null&&pl(Qo)&&(Qo=null),at!==null&&pl(at)&&(at=null),Nt.forEach(ca),jt.forEach(ca)}function hl(p,r){p.blockedOn===r&&(p.blockedOn=null,cl||(cl=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,ws)))}function mh(p){function r(y){return hl(y,p)}if(0<Ir.length){hl(Ir[0],p);for(var a=1;a<Ir.length;a++){var f=Ir[a];f.blockedOn===p&&(f.blockedOn=null)}}for(Xo!==null&&hl(Xo,p),Qo!==null&&hl(Qo,p),at!==null&&hl(at,p),Nt.forEach(r),jt.forEach(r),a=0;a<wn.length;a++)f=wn[a],f.blockedOn===p&&(f.blockedOn=null);for(;0<wn.length&&(a=wn[0],a.blockedOn===null);)Md(a),a.blockedOn===null&&wn.shift()}function jd(p,r){var a={};return a[p.toLowerCase()]=r.toLowerCase(),a["Webkit"+p]="webkit"+r,a["Moz"+p]="moz"+r,a}var ua={animationend:jd("Animation","AnimationEnd"),animationiteration:jd("Animation","AnimationIteration"),animationstart:jd("Animation","AnimationStart"),transitionend:jd("Transition","TransitionEnd")},su={},fh={};h&&(fh=document.createElement("div").style,"AnimationEvent"in window||(delete ua.animationend.animation,delete ua.animationiteration.animation,delete ua.animationstart.animation),"TransitionEvent"in window||delete ua.transitionend.transition);function Ld(p){if(su[p])return su[p];if(!ua[p])return p;var r=ua[p],a;for(a in r)if(r.hasOwnProperty(a)&&a in fh)return su[p]=r[a];return p}var gh=Ld("animationend"),Ed=Ld("animationiteration"),_h=Ld("animationstart"),iu=Ld("transitionend"),yh=new Map,au=new Map,xg=["abort","abort",gh,"animationEnd",Ed,"animationIteration",_h,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",iu,"transitionEnd","waiting","waiting"];function lu(p,r){for(var a=0;a<p.length;a+=2){var f=p[a],y=p[a+1];y="on"+(y[0].toUpperCase()+y.slice(1)),au.set(f,r),yh.set(f,y),c(y,[f])}}var bg=n.unstable_now;bg();var qt=8;function pa(p){if((1&p)!==0)return qt=15,1;if((2&p)!==0)return qt=14,2;if((4&p)!==0)return qt=13,4;var r=24&p;return r!==0?(qt=12,r):(p&32)!==0?(qt=11,32):(r=192&p,r!==0?(qt=10,r):(p&256)!==0?(qt=9,256):(r=3584&p,r!==0?(qt=8,r):(p&4096)!==0?(qt=7,4096):(r=4186112&p,r!==0?(qt=6,r):(r=62914560&p,r!==0?(qt=5,r):p&67108864?(qt=4,67108864):(p&134217728)!==0?(qt=3,134217728):(r=805306368&p,r!==0?(qt=2,r):(1073741824&p)!==0?(qt=1,1073741824):(qt=8,p))))))}function Sg(p){switch(p){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}function Cg(p){switch(p){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(t(358,p))}}function ml(p,r){var a=p.pendingLanes;if(a===0)return qt=0;var f=0,y=0,S=p.expiredLanes,E=p.suspendedLanes,O=p.pingedLanes;if(S!==0)f=S,y=qt=15;else if(S=a&134217727,S!==0){var q=S&~E;q!==0?(f=pa(q),y=qt):(O&=S,O!==0&&(f=pa(O),y=qt))}else S=a&~E,S!==0?(f=pa(S),y=qt):O!==0&&(f=pa(O),y=qt);if(f===0)return 0;if(f=31-es(f),f=a&((0>f?0:1<<f)<<1)-1,r!==0&&r!==f&&(r&E)===0){if(pa(r),y<=qt)return r;qt=y}if(r=p.entangledLanes,r!==0)for(p=p.entanglements,r&=f;0<r;)a=31-es(r),y=1<<a,f|=p[a],r&=~y;return f}function wh(p){return p=p.pendingLanes&-1073741825,p!==0?p:p&1073741824?1073741824:0}function Dd(p,r){switch(p){case 15:return 1;case 14:return 2;case 12:return p=ha(24&~r),p===0?Dd(10,r):p;case 10:return p=ha(192&~r),p===0?Dd(8,r):p;case 8:return p=ha(3584&~r),p===0&&(p=ha(4186112&~r),p===0&&(p=512)),p;case 2:return r=ha(805306368&~r),r===0&&(r=268435456),r}throw Error(t(358,p))}function ha(p){return p&-p}function du(p){for(var r=[],a=0;31>a;a++)r.push(p);return r}function Id(p,r,a){p.pendingLanes|=r;var f=r-1;p.suspendedLanes&=f,p.pingedLanes&=f,p=p.eventTimes,r=31-es(r),p[r]=a}var es=Math.clz32?Math.clz32:vh,cu=Math.log,kg=Math.LN2;function vh(p){return p===0?32:31-(cu(p)/kg|0)|0}var xh=n.unstable_UserBlockingPriority,Mg=n.unstable_runWithPriority,Td=!0;function jg(p,r,a,f){_r||yo();var y=Ad,S=_r;_r=!0;try{_t(y,p,r,a,f)}finally{(_r=S)||ir()}}function Lg(p,r,a,f){Mg(xh,Ad.bind(null,p,r,a,f))}function Ad(p,r,a,f){if(Td){var y;if((y=(r&4)===0)&&0<Ir.length&&-1<Tr.indexOf(p))p=Li(null,p,r,a,f),Ir.push(p);else{var S=Jt(p,r,a,f);if(S===null)y&&ul(p,f);else{if(y){if(-1<Tr.indexOf(p)){p=Li(S,p,r,a,f),Ir.push(p);return}if(Zs(S,p,r,a,f))return;ul(p,f)}Gh(p,r,f,null,a)}}}}function Jt(p,r,a,f){var y=Ko(f);if(y=Ai(y),y!==null){var S=no(y);if(S===null)y=null;else{var E=S.tag;if(E===13){if(y=il(S),y!==null)return y;y=null}else if(E===3){if(S.stateNode.hydrate)return S.tag===3?S.stateNode.containerInfo:null;y=null}else S!==y&&(y=null)}}return Gh(p,r,f,y,a),null}var ro=null,Di=null,Pd=null;function uu(){if(Pd)return Pd;var p,r=Di,a=r.length,f,y="value"in ro?ro.value:ro.textContent,S=y.length;for(p=0;p<a&&r[p]===y[p];p++);var E=a-p;for(f=1;f<=E&&r[a-f]===y[S-f];f++);return Pd=y.slice(p,1<f?1-f:void 0)}function Rd(p){var r=p.keyCode;return"charCode"in p?(p=p.charCode,p===0&&r===13&&(p=13)):p=r,p===10&&(p=13),32<=p||p===13?p:0}function Fd(){return!0}function fl(){return!1}function vn(p){function r(a,f,y,S,E){this._reactName=a,this._targetInst=y,this.type=f,this.nativeEvent=S,this.target=E,this.currentTarget=null;for(var O in p)p.hasOwnProperty(O)&&(a=p[O],this[O]=a?a(S):S[O]);return this.isDefaultPrevented=(S.defaultPrevented!=null?S.defaultPrevented:S.returnValue===!1)?Fd:fl,this.isPropagationStopped=fl,this}return s(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Fd)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Fd)},persist:function(){},isPersistent:Fd}),r}var Xs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(p){return p.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pu=vn(Xs),Ar=s({},Xs,{view:0,detail:0}),Eg=vn(Ar),gl,hu,_l,Nd=s({},Ar,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:wl,button:0,buttons:0,relatedTarget:function(p){return p.relatedTarget===void 0?p.fromElement===p.srcElement?p.toElement:p.fromElement:p.relatedTarget},movementX:function(p){return"movementX"in p?p.movementX:(p!==_l&&(_l&&p.type==="mousemove"?(gl=p.screenX-_l.screenX,hu=p.screenY-_l.screenY):hu=gl=0,_l=p),gl)},movementY:function(p){return"movementY"in p?p.movementY:hu}}),yl=vn(Nd),mu=s({},Nd,{dataTransfer:0}),Dg=vn(mu),Ig=s({},Ar,{relatedTarget:0}),fu=vn(Ig),bh=s({},Xs,{animationName:0,elapsedTime:0,pseudoElement:0}),Tg=vn(bh),Ag=s({},Xs,{clipboardData:function(p){return"clipboardData"in p?p.clipboardData:window.clipboardData}}),Pg=vn(Ag),Rg=s({},Xs,{data:0}),Sh=vn(Rg),Ch={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Fg={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},ma={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ng(p){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(p):(p=ma[p])?!!r[p]:!1}function wl(){return Ng}var Og=s({},Ar,{key:function(p){if(p.key){var r=Ch[p.key]||p.key;if(r!=="Unidentified")return r}return p.type==="keypress"?(p=Rd(p),p===13?"Enter":String.fromCharCode(p)):p.type==="keydown"||p.type==="keyup"?Fg[p.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:wl,charCode:function(p){return p.type==="keypress"?Rd(p):0},keyCode:function(p){return p.type==="keydown"||p.type==="keyup"?p.keyCode:0},which:function(p){return p.type==="keypress"?Rd(p):p.type==="keydown"||p.type==="keyup"?p.keyCode:0}}),gu=vn(Og),Yg=s({},Nd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),kh=vn(Yg),Wg=s({},Ar,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:wl}),Bg=vn(Wg),Mh=s({},Xs,{propertyName:0,elapsedTime:0,pseudoElement:0}),Hg=vn(Mh),jh=s({},Nd,{deltaX:function(p){return"deltaX"in p?p.deltaX:"wheelDeltaX"in p?-p.wheelDeltaX:0},deltaY:function(p){return"deltaY"in p?p.deltaY:"wheelDeltaY"in p?-p.wheelDeltaY:"wheelDelta"in p?-p.wheelDelta:0},deltaZ:0,deltaMode:0}),en=vn(jh),zg=[9,13,27,32],_u=h&&"CompositionEvent"in window,fa=null;h&&"documentMode"in document&&(fa=document.documentMode);var Ug=h&&"TextEvent"in window&&!fa,Lh=h&&(!_u||fa&&8<fa&&11>=fa),Eh=" ",ga=!1;function Dh(p,r){switch(p){case"keyup":return zg.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ih(p){return p=p.detail,typeof p=="object"&&"data"in p?p.data:null}var _a=!1;function Od(p,r){switch(p){case"compositionend":return Ih(r);case"keypress":return r.which!==32?null:(ga=!0,Eh);case"textInput":return p=r.data,p===Eh&&ga?null:p;default:return null}}function Yd(p,r){if(_a)return p==="compositionend"||!_u&&Dh(p,r)?(p=uu(),Pd=Di=ro=null,_a=!1,p):null;switch(p){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return Lh&&r.locale!=="ko"?null:r.data;default:return null}}var yu={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Th(p){var r=p&&p.nodeName&&p.nodeName.toLowerCase();return r==="input"?!!yu[p.type]:r==="textarea"}function wu(p,r,a,f){pn(f),r=Wd(r,"onChange"),0<r.length&&(a=new pu("onChange","change",null,a,f),p.push({event:a,listeners:r}))}var vl=null,Ii=null;function vu(p){Hh(p,0)}function ya(p){var r=xa(p);if(At(r))return p}function Vg(p,r){if(p==="change")return r}var Ah=!1;if(h){var xu;if(h){var bu="oninput"in document;if(!bu){var Ph=document.createElement("div");Ph.setAttribute("oninput","return;"),bu=typeof Ph.oninput=="function"}xu=bu}else xu=!1;Ah=xu&&(!document.documentMode||9<document.documentMode)}function Rh(){vl&&(vl.detachEvent("onpropertychange",Fh),Ii=vl=null)}function Fh(p){if(p.propertyName==="value"&&ya(Ii)){var r=[];if(wu(r,Ii,p,Ko(p)),p=vu,_r)p(r);else{_r=!0;try{Ks(p,r)}finally{_r=!1,ir()}}}}function Gg(p,r,a){p==="focusin"?(Rh(),vl=r,Ii=a,vl.attachEvent("onpropertychange",Fh)):p==="focusout"&&Rh()}function $g(p){if(p==="selectionchange"||p==="keyup"||p==="keydown")return ya(Ii)}function Kg(p,r){if(p==="click")return ya(r)}function Nh(p,r){if(p==="input"||p==="change")return ya(r)}function qg(p,r){return p===r&&(p!==0||1/p===1/r)||p!==p&&r!==r}var oo=typeof Object.is=="function"?Object.is:qg,vo=Object.prototype.hasOwnProperty;function xo(p,r){if(oo(p,r))return!0;if(typeof p!="object"||p===null||typeof r!="object"||r===null)return!1;var a=Object.keys(p),f=Object.keys(r);if(a.length!==f.length)return!1;for(f=0;f<a.length;f++)if(!vo.call(r,a[f])||!oo(p[a[f]],r[a[f]]))return!1;return!0}function Su(p){for(;p&&p.firstChild;)p=p.firstChild;return p}function Oh(p,r){var a=Su(p);p=0;for(var f;a;){if(a.nodeType===3){if(f=p+a.textContent.length,p<=r&&f>=r)return{node:a,offset:r-p};p=f}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Su(a)}}function Cu(p,r){return p&&r?p===r?!0:p&&p.nodeType===3?!1:r&&r.nodeType===3?Cu(p,r.parentNode):"contains"in p?p.contains(r):p.compareDocumentPosition?!!(p.compareDocumentPosition(r)&16):!1:!1}function ku(){for(var p=window,r=Mt();r instanceof p.HTMLIFrameElement;){try{var a=typeof r.contentWindow.location.href=="string"}catch{a=!1}if(a)p=r.contentWindow;else break;r=Mt(p.document)}return r}function Mu(p){var r=p&&p.nodeName&&p.nodeName.toLowerCase();return r&&(r==="input"&&(p.type==="text"||p.type==="search"||p.type==="tel"||p.type==="url"||p.type==="password")||r==="textarea"||p.contentEditable==="true")}var Jg=h&&"documentMode"in document&&11>=document.documentMode,Ti=null,ju=null,xl=null,Lu=!1;function Yh(p,r,a){var f=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Lu||Ti==null||Ti!==Mt(f)||(f=Ti,"selectionStart"in f&&Mu(f)?f={start:f.selectionStart,end:f.selectionEnd}:(f=(f.ownerDocument&&f.ownerDocument.defaultView||window).getSelection(),f={anchorNode:f.anchorNode,anchorOffset:f.anchorOffset,focusNode:f.focusNode,focusOffset:f.focusOffset}),xl&&xo(xl,f)||(xl=f,f=Wd(ju,"onSelect"),0<f.length&&(r=new pu("onSelect","select",null,r,a),p.push({event:r,listeners:f}),r.target=Ti)))}lu("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),lu("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),lu(xg,2);for(var Wh="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Eu=0;Eu<Wh.length;Eu++)au.set(Wh[Eu],0);u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var bl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Zg=new Set("cancel close invalid load scroll toggle".split(" ").concat(bl));function Bh(p,r,a){var f=p.type||"unknown-event";p.currentTarget=a,Js(f,r,void 0,p),p.currentTarget=null}function Hh(p,r){r=(r&4)!==0;for(var a=0;a<p.length;a++){var f=p[a],y=f.event;f=f.listeners;e:{var S=void 0;if(r)for(var E=f.length-1;0<=E;E--){var O=f[E],q=O.instance,ae=O.currentTarget;if(O=O.listener,q!==S&&y.isPropagationStopped())break e;Bh(y,O,ae),S=q}else for(E=0;E<f.length;E++){if(O=f[E],q=O.instance,ae=O.currentTarget,O=O.listener,q!==S&&y.isPropagationStopped())break e;Bh(y,O,ae),S=q}}}if(Jo)throw p=ia,Jo=!1,ia=null,p}function tn(p,r){var a=Jh(r),f=p+"__bubble";a.has(f)||(Sl(r,p,2,!1),a.add(f))}var zh="_reactListening"+Math.random().toString(36).slice(2);function Uh(p){p[zh]||(p[zh]=!0,i.forEach(function(r){Zg.has(r)||Vh(r,!1,p,null),Vh(r,!0,p,null)}))}function Vh(p,r,a,f){var y=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,S=a;p==="selectionchange"&&a.nodeType!==9&&(S=a.ownerDocument);var E=Jh(S),O=p+"__"+(r?"capture":"bubble");E.has(O)||(r&&(y|=4),Sl(S,p,y,r),E.add(O))}function Sl(p,r,a,f){var y=au.get(r);switch(y===void 0?2:y){case 0:y=jg;break;case 1:y=Lg;break;default:y=Ad}a=y.bind(null,r,a,p),y=void 0,!ar||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(y=!0),f?y!==void 0?p.addEventListener(r,a,{capture:!0,passive:y}):p.addEventListener(r,a,!0):y!==void 0?p.addEventListener(r,a,{passive:y}):p.addEventListener(r,a,!1)}function Gh(p,r,a,f,y){var S=f;if((r&1)===0&&(r&2)===0&&f!==null)e:for(;;){if(f===null)return;var E=f.tag;if(E===3||E===4){var O=f.stateNode.containerInfo;if(O===y||O.nodeType===8&&O.parentNode===y)break;if(E===4)for(E=f.return;E!==null;){var q=E.tag;if((q===3||q===4)&&(q=E.stateNode.containerInfo,q===y||q.nodeType===8&&q.parentNode===y))return;E=E.return}for(;O!==null;){if(E=Ai(O),E===null)return;if(q=E.tag,q===5||q===6){f=S=E;continue e}O=O.parentNode}}f=f.return}Dr(function(){var ae=S,Se=Ko(a),He=[];e:{var xe=yh.get(p);if(xe!==void 0){var Pe=pu,tt=p;switch(p){case"keypress":if(Rd(a)===0)break e;case"keydown":case"keyup":Pe=gu;break;case"focusin":tt="focus",Pe=fu;break;case"focusout":tt="blur",Pe=fu;break;case"beforeblur":case"afterblur":Pe=fu;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Pe=yl;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Pe=Dg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Pe=Bg;break;case gh:case Ed:case _h:Pe=Tg;break;case iu:Pe=Hg;break;case"scroll":Pe=Eg;break;case"wheel":Pe=en;break;case"copy":case"cut":case"paste":Pe=Pg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Pe=kh}var Xe=(r&4)!==0,pe=!Xe&&p==="scroll",oe=Xe?xe!==null?xe+"Capture":null:xe;Xe=[];for(var ue=ae,ve;ue!==null;){ve=ue;var be=ve.stateNode;if(ve.tag===5&&be!==null&&(ve=be,oe!==null&&(be=Vt(ue,oe),be!=null&&Xe.push(Cl(ue,be,ve)))),pe)break;ue=ue.return}0<Xe.length&&(xe=new Pe(xe,tt,null,a,Se),He.push({event:xe,listeners:Xe}))}}if((r&7)===0){e:{if(xe=p==="mouseover"||p==="pointerover",Pe=p==="mouseout"||p==="pointerout",xe&&(r&16)===0&&(tt=a.relatedTarget||a.fromElement)&&(Ai(tt)||tt[va]))break e;if((Pe||xe)&&(xe=Se.window===Se?Se:(xe=Se.ownerDocument)?xe.defaultView||xe.parentWindow:window,Pe?(tt=a.relatedTarget||a.toElement,Pe=ae,tt=tt?Ai(tt):null,tt!==null&&(pe=no(tt),tt!==pe||tt.tag!==5&&tt.tag!==6)&&(tt=null)):(Pe=null,tt=ae),Pe!==tt)){if(Xe=yl,be="onMouseLeave",oe="onMouseEnter",ue="mouse",(p==="pointerout"||p==="pointerover")&&(Xe=kh,be="onPointerLeave",oe="onPointerEnter",ue="pointer"),pe=Pe==null?xe:xa(Pe),ve=tt==null?xe:xa(tt),xe=new Xe(be,ue+"leave",Pe,a,Se),xe.target=pe,xe.relatedTarget=ve,be=null,Ai(Se)===ae&&(Xe=new Xe(oe,ue+"enter",tt,a,Se),Xe.target=ve,Xe.relatedTarget=pe,be=Xe),pe=be,Pe&&tt)t:{for(Xe=Pe,oe=tt,ue=0,ve=Xe;ve;ve=wa(ve))ue++;for(ve=0,be=oe;be;be=wa(be))ve++;for(;0<ue-ve;)Xe=wa(Xe),ue--;for(;0<ve-ue;)oe=wa(oe),ve--;for(;ue--;){if(Xe===oe||oe!==null&&Xe===oe.alternate)break t;Xe=wa(Xe),oe=wa(oe)}Xe=null}else Xe=null;Pe!==null&&$h(He,xe,Pe,Xe,!1),tt!==null&&pe!==null&&$h(He,pe,tt,Xe,!0)}}e:{if(xe=ae?xa(ae):window,Pe=xe.nodeName&&xe.nodeName.toLowerCase(),Pe==="select"||Pe==="input"&&xe.type==="file")var rt=Vg;else if(Th(xe))if(Ah)rt=Nh;else{rt=$g;var We=Gg}else(Pe=xe.nodeName)&&Pe.toLowerCase()==="input"&&(xe.type==="checkbox"||xe.type==="radio")&&(rt=Kg);if(rt&&(rt=rt(p,ae))){wu(He,rt,a,Se);break e}We&&We(p,xe,ae),p==="focusout"&&(We=xe._wrapperState)&&We.controlled&&xe.type==="number"&&Hn(xe,"number",xe.value)}switch(We=ae?xa(ae):window,p){case"focusin":(Th(We)||We.contentEditable==="true")&&(Ti=We,ju=ae,xl=null);break;case"focusout":xl=ju=Ti=null;break;case"mousedown":Lu=!0;break;case"contextmenu":case"mouseup":case"dragend":Lu=!1,Yh(He,a,Se);break;case"selectionchange":if(Jg)break;case"keydown":case"keyup":Yh(He,a,Se)}var ot;if(_u)e:{switch(p){case"compositionstart":var mt="onCompositionStart";break e;case"compositionend":mt="onCompositionEnd";break e;case"compositionupdate":mt="onCompositionUpdate";break e}mt=void 0}else _a?Dh(p,a)&&(mt="onCompositionEnd"):p==="keydown"&&a.keyCode===229&&(mt="onCompositionStart");mt&&(Lh&&a.locale!=="ko"&&(_a||mt!=="onCompositionStart"?mt==="onCompositionEnd"&&_a&&(ot=uu()):(ro=Se,Di="value"in ro?ro.value:ro.textContent,_a=!0)),We=Wd(ae,mt),0<We.length&&(mt=new Sh(mt,p,null,a,Se),He.push({event:mt,listeners:We}),ot?mt.data=ot:(ot=Ih(a),ot!==null&&(mt.data=ot)))),(ot=Ug?Od(p,a):Yd(p,a))&&(ae=Wd(ae,"onBeforeInput"),0<ae.length&&(Se=new Sh("onBeforeInput","beforeinput",null,a,Se),He.push({event:Se,listeners:ae}),Se.data=ot))}Hh(He,r)})}function Cl(p,r,a){return{instance:p,listener:r,currentTarget:a}}function Wd(p,r){for(var a=r+"Capture",f=[];p!==null;){var y=p,S=y.stateNode;y.tag===5&&S!==null&&(y=S,S=Vt(p,a),S!=null&&f.unshift(Cl(p,S,y)),S=Vt(p,r),S!=null&&f.push(Cl(p,S,y))),p=p.return}return f}function wa(p){if(p===null)return null;do p=p.return;while(p&&p.tag!==5);return p||null}function $h(p,r,a,f,y){for(var S=r._reactName,E=[];a!==null&&a!==f;){var O=a,q=O.alternate,ae=O.stateNode;if(q!==null&&q===f)break;O.tag===5&&ae!==null&&(O=ae,y?(q=Vt(a,S),q!=null&&E.unshift(Cl(a,q,O))):y||(q=Vt(a,S),q!=null&&E.push(Cl(a,q,O)))),a=a.return}E.length!==0&&p.push({event:r,listeners:E})}function Bd(){}var Du=null,Iu=null;function Tu(p,r){switch(p){case"button":case"input":case"select":case"textarea":return!!r.autoFocus}return!1}function Hd(p,r){return p==="textarea"||p==="option"||p==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var Au=typeof setTimeout=="function"?setTimeout:void 0,zd=typeof clearTimeout=="function"?clearTimeout:void 0;function Qs(p){p.nodeType===1?p.textContent="":p.nodeType===9&&(p=p.body,p!=null&&(p.textContent=""))}function vs(p){for(;p!=null;p=p.nextSibling){var r=p.nodeType;if(r===1||r===3)break}return p}function Pu(p){p=p.previousSibling;for(var r=0;p;){if(p.nodeType===8){var a=p.data;if(a==="$"||a==="$!"||a==="$?"){if(r===0)return p;r--}else a==="/$"&&r++}p=p.previousSibling}return null}var ei=0;function Kh(p){return{$$typeof:le,toString:p,valueOf:p}}var kl=Math.random().toString(36).slice(2),ti="__reactFiber$"+kl,Ud="__reactProps$"+kl,va="__reactContainer$"+kl,qh="__reactEvents$"+kl;function Ai(p){var r=p[ti];if(r)return r;for(var a=p.parentNode;a;){if(r=a[va]||a[ti]){if(a=r.alternate,r.child!==null||a!==null&&a.child!==null)for(p=Pu(p);p!==null;){if(a=p[ti])return a;p=Pu(p)}return r}p=a,a=p.parentNode}return null}function Ml(p){return p=p[ti]||p[va],!p||p.tag!==5&&p.tag!==6&&p.tag!==13&&p.tag!==3?null:p}function xa(p){if(p.tag===5||p.tag===6)return p.stateNode;throw Error(t(33))}function Vd(p){return p[Ud]||null}function Jh(p){var r=p[qh];return r===void 0&&(r=p[qh]=new Set),r}var Ru=[],ba=-1;function ni(p){return{current:p}}function nn(p){0>ba||(p.current=Ru[ba],Ru[ba]=null,ba--)}function dn(p,r){ba++,Ru[ba]=p.current,p.current=r}var ri={},zn=ni(ri),yr=ni(!1),Pi=ri;function Sa(p,r){var a=p.type.contextTypes;if(!a)return ri;var f=p.stateNode;if(f&&f.__reactInternalMemoizedUnmaskedChildContext===r)return f.__reactInternalMemoizedMaskedChildContext;var y={},S;for(S in a)y[S]=r[S];return f&&(p=p.stateNode,p.__reactInternalMemoizedUnmaskedChildContext=r,p.__reactInternalMemoizedMaskedChildContext=y),y}function wr(p){return p=p.childContextTypes,p!=null}function Gd(){nn(yr),nn(zn)}function Zh(p,r,a){if(zn.current!==ri)throw Error(t(168));dn(zn,r),dn(yr,a)}function $d(p,r,a){var f=p.stateNode;if(p=r.childContextTypes,typeof f.getChildContext!="function")return a;f=f.getChildContext();for(var y in f)if(!(y in p))throw Error(t(108,ht(r)||"Unknown",y));return s({},a,f)}function Kd(p){return p=(p=p.stateNode)&&p.__reactInternalMemoizedMergedChildContext||ri,Pi=zn.current,dn(zn,p),dn(yr,yr.current),!0}function Xh(p,r,a){var f=p.stateNode;if(!f)throw Error(t(169));a?(p=$d(p,r,Pi),f.__reactInternalMemoizedMergedChildContext=p,nn(yr),nn(zn),dn(zn,p)):nn(yr),dn(yr,a)}var Fu=null,xs=null,qd=n.unstable_runWithPriority,Nu=n.unstable_scheduleCallback,Ou=n.unstable_cancelCallback,Xg=n.unstable_shouldYield,Qh=n.unstable_requestPaint,Yu=n.unstable_now,Qg=n.unstable_getCurrentPriorityLevel,jl=n.unstable_ImmediatePriority,em=n.unstable_UserBlockingPriority,tm=n.unstable_NormalPriority,Wu=n.unstable_LowPriority,nm=n.unstable_IdlePriority,Bu={},e_=Qh!==void 0?Qh:function(){},Un=null,Ll=null,Hu=!1,rm=Yu(),Vn=1e4>rm?Yu:function(){return Yu()-rm};function Ce(){switch(Qg()){case jl:return 99;case em:return 98;case tm:return 97;case Wu:return 96;case nm:return 95;default:throw Error(t(332))}}function om(p){switch(p){case 99:return jl;case 98:return em;case 97:return tm;case 96:return Wu;case 95:return nm;default:throw Error(t(332))}}function Ri(p,r){return p=om(p),qd(p,r)}function Ca(p,r,a){return p=om(p),Nu(p,r,a)}function lt(){if(Ll!==null){var p=Ll;Ll=null,Ou(p)}El()}function El(){if(!Hu&&Un!==null){Hu=!0;var p=0;try{var r=Un;Ri(99,function(){for(;p<r.length;p++){var a=r[p];do a=a(!0);while(a!==null)}}),Un=null}catch(a){throw Un!==null&&(Un=Un.slice(p+1)),Nu(jl,lt),a}finally{Hu=!1}}}var sm=Y.ReactCurrentBatchConfig;function Pr(p,r){if(p&&p.defaultProps){r=s({},r),p=p.defaultProps;for(var a in p)r[a]===void 0&&(r[a]=p[a]);return r}return r}var Jd=ni(null),Zd=null,ka=null,Xd=null;function zu(){Xd=ka=Zd=null}function bo(p){var r=Jd.current;nn(Jd),p.type._context._currentValue=r}function im(p,r){for(;p!==null;){var a=p.alternate;if((p.childLanes&r)===r){if(a===null||(a.childLanes&r)===r)break;a.childLanes|=r}else p.childLanes|=r,a!==null&&(a.childLanes|=r);p=p.return}}function Fi(p,r){Zd=p,Xd=ka=null,p=p.dependencies,p!==null&&p.firstContext!==null&&((p.lanes&r)!==0&&(Nr=!0),p.firstContext=null)}function so(p,r){if(Xd!==p&&r!==!1&&r!==0)if((typeof r!="number"||r===1073741823)&&(Xd=p,r=1073741823),r={context:p,observedBits:r,next:null},ka===null){if(Zd===null)throw Error(t(308));ka=r,Zd.dependencies={lanes:0,firstContext:r,responders:null}}else ka=ka.next=r;return p._currentValue}var oi=!1;function Qd(p){p.updateQueue={baseState:p.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function am(p,r){p=p.updateQueue,r.updateQueue===p&&(r.updateQueue={baseState:p.baseState,firstBaseUpdate:p.firstBaseUpdate,lastBaseUpdate:p.lastBaseUpdate,shared:p.shared,effects:p.effects})}function bs(p,r){return{eventTime:p,lane:r,tag:0,payload:null,callback:null,next:null}}function ts(p,r){if(p=p.updateQueue,p!==null){p=p.shared;var a=p.pending;a===null?r.next=r:(r.next=a.next,a.next=r),p.pending=r}}function lm(p,r){var a=p.updateQueue,f=p.alternate;if(f!==null&&(f=f.updateQueue,a===f)){var y=null,S=null;if(a=a.firstBaseUpdate,a!==null){do{var E={eventTime:a.eventTime,lane:a.lane,tag:a.tag,payload:a.payload,callback:a.callback,next:null};S===null?y=S=E:S=S.next=E,a=a.next}while(a!==null);S===null?y=S=r:S=S.next=r}else y=S=r;a={baseState:f.baseState,firstBaseUpdate:y,lastBaseUpdate:S,shared:f.shared,effects:f.effects},p.updateQueue=a;return}p=a.lastBaseUpdate,p===null?a.firstBaseUpdate=r:p.next=r,a.lastBaseUpdate=r}function Rr(p,r,a,f){var y=p.updateQueue;oi=!1;var S=y.firstBaseUpdate,E=y.lastBaseUpdate,O=y.shared.pending;if(O!==null){y.shared.pending=null;var q=O,ae=q.next;q.next=null,E===null?S=ae:E.next=ae,E=q;var Se=p.alternate;if(Se!==null){Se=Se.updateQueue;var He=Se.lastBaseUpdate;He!==E&&(He===null?Se.firstBaseUpdate=ae:He.next=ae,Se.lastBaseUpdate=q)}}if(S!==null){He=y.baseState,E=0,Se=ae=q=null;do{O=S.lane;var xe=S.eventTime;if((f&O)===O){Se!==null&&(Se=Se.next={eventTime:xe,lane:0,tag:S.tag,payload:S.payload,callback:S.callback,next:null});e:{var Pe=p,tt=S;switch(O=r,xe=a,tt.tag){case 1:if(Pe=tt.payload,typeof Pe=="function"){He=Pe.call(xe,He,O);break e}He=Pe;break e;case 3:Pe.flags=Pe.flags&-4097|64;case 0:if(Pe=tt.payload,O=typeof Pe=="function"?Pe.call(xe,He,O):Pe,O==null)break e;He=s({},He,O);break e;case 2:oi=!0}}S.callback!==null&&(p.flags|=32,O=y.effects,O===null?y.effects=[S]:O.push(S))}else xe={eventTime:xe,lane:O,tag:S.tag,payload:S.payload,callback:S.callback,next:null},Se===null?(ae=Se=xe,q=He):Se=Se.next=xe,E|=O;if(S=S.next,S===null){if(O=y.shared.pending,O===null)break;S=O.next,O.next=null,y.lastBaseUpdate=O,y.shared.pending=null}}while(!0);Se===null&&(q=He),y.baseState=q,y.firstBaseUpdate=ae,y.lastBaseUpdate=Se,$n|=E,p.lanes=E,p.memoizedState=He}}function Uu(p,r,a){if(p=r.effects,r.effects=null,p!==null)for(r=0;r<p.length;r++){var f=p[r],y=f.callback;if(y!==null){if(f.callback=null,f=a,typeof y!="function")throw Error(t(191,y));y.call(f)}}}var dm=new o.Component().refs;function ec(p,r,a,f){r=p.memoizedState,a=a(f,r),a=a==null?r:s({},r,a),p.memoizedState=a,p.lanes===0&&(p.updateQueue.baseState=a)}var tc={isMounted:function(p){return(p=p._reactInternals)?no(p)===p:!1},enqueueSetState:function(p,r,a){p=p._reactInternals;var f=Ln(),y=Ls(p),S=bs(f,y);S.payload=r,a!=null&&(S.callback=a),ts(p,S),Es(p,y,f)},enqueueReplaceState:function(p,r,a){p=p._reactInternals;var f=Ln(),y=Ls(p),S=bs(f,y);S.tag=1,S.payload=r,a!=null&&(S.callback=a),ts(p,S),Es(p,y,f)},enqueueForceUpdate:function(p,r){p=p._reactInternals;var a=Ln(),f=Ls(p),y=bs(a,f);y.tag=2,r!=null&&(y.callback=r),ts(p,y),Es(p,f,a)}};function cm(p,r,a,f,y,S,E){return p=p.stateNode,typeof p.shouldComponentUpdate=="function"?p.shouldComponentUpdate(f,S,E):r.prototype&&r.prototype.isPureReactComponent?!xo(a,f)||!xo(y,S):!0}function um(p,r,a){var f=!1,y=ri,S=r.contextType;return typeof S=="object"&&S!==null?S=so(S):(y=wr(r)?Pi:zn.current,f=r.contextTypes,S=(f=f!=null)?Sa(p,y):ri),r=new r(a,S),p.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=tc,p.stateNode=r,r._reactInternals=p,f&&(p=p.stateNode,p.__reactInternalMemoizedUnmaskedChildContext=y,p.__reactInternalMemoizedMaskedChildContext=S),r}function pm(p,r,a,f){p=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(a,f),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(a,f),r.state!==p&&tc.enqueueReplaceState(r,r.state,null)}function Vu(p,r,a,f){var y=p.stateNode;y.props=a,y.state=p.memoizedState,y.refs=dm,Qd(p);var S=r.contextType;typeof S=="object"&&S!==null?y.context=so(S):(S=wr(r)?Pi:zn.current,y.context=Sa(p,S)),Rr(p,a,y,f),y.state=p.memoizedState,S=r.getDerivedStateFromProps,typeof S=="function"&&(ec(p,r,S,a),y.state=p.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof y.getSnapshotBeforeUpdate=="function"||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(r=y.state,typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount(),r!==y.state&&tc.enqueueReplaceState(y,y.state,null),Rr(p,a,y,f),y.state=p.memoizedState),typeof y.componentDidMount=="function"&&(p.flags|=4)}var nc=Array.isArray;function Dl(p,r,a){if(p=a.ref,p!==null&&typeof p!="function"&&typeof p!="object"){if(a._owner){if(a=a._owner,a){if(a.tag!==1)throw Error(t(309));var f=a.stateNode}if(!f)throw Error(t(147,p));var y=""+p;return r!==null&&r.ref!==null&&typeof r.ref=="function"&&r.ref._stringRef===y?r.ref:(r=function(S){var E=f.refs;E===dm&&(E=f.refs={}),S===null?delete E[y]:E[y]=S},r._stringRef=y,r)}if(typeof p!="string")throw Error(t(284));if(!a._owner)throw Error(t(290,p))}return p}function rc(p,r){if(p.type!=="textarea")throw Error(t(31,Object.prototype.toString.call(r)==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":r))}function hm(p){function r(pe,oe){if(p){var ue=pe.lastEffect;ue!==null?(ue.nextEffect=oe,pe.lastEffect=oe):pe.firstEffect=pe.lastEffect=oe,oe.nextEffect=null,oe.flags=8}}function a(pe,oe){if(!p)return null;for(;oe!==null;)r(pe,oe),oe=oe.sibling;return null}function f(pe,oe){for(pe=new Map;oe!==null;)oe.key!==null?pe.set(oe.key,oe):pe.set(oe.index,oe),oe=oe.sibling;return pe}function y(pe,oe){return pe=hi(pe,oe),pe.index=0,pe.sibling=null,pe}function S(pe,oe,ue){return pe.index=ue,p?(ue=pe.alternate,ue!==null?(ue=ue.index,ue<oe?(pe.flags=2,oe):ue):(pe.flags=2,oe)):oe}function E(pe){return p&&pe.alternate===null&&(pe.flags=2),pe}function O(pe,oe,ue,ve){return oe===null||oe.tag!==6?(oe=hr(ue,pe.mode,ve),oe.return=pe,oe):(oe=y(oe,ue),oe.return=pe,oe)}function q(pe,oe,ue,ve){return oe!==null&&oe.elementType===ue.type?(ve=y(oe,ue.props),ve.ref=Dl(pe,oe,ue),ve.return=pe,ve):(ve=As(ue.type,ue.key,ue.props,null,pe.mode,ve),ve.ref=Dl(pe,oe,ue),ve.return=pe,ve)}function ae(pe,oe,ue,ve){return oe===null||oe.tag!==4||oe.stateNode.containerInfo!==ue.containerInfo||oe.stateNode.implementation!==ue.implementation?(oe=mr(ue,pe.mode,ve),oe.return=pe,oe):(oe=y(oe,ue.children||[]),oe.return=pe,oe)}function Se(pe,oe,ue,ve,be){return oe===null||oe.tag!==7?(oe=Fn(ue,pe.mode,ve,be),oe.return=pe,oe):(oe=y(oe,ue),oe.return=pe,oe)}function He(pe,oe,ue){if(typeof oe=="string"||typeof oe=="number")return oe=hr(""+oe,pe.mode,ue),oe.return=pe,oe;if(typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case A:return ue=As(oe.type,oe.key,oe.props,null,pe.mode,ue),ue.ref=Dl(pe,null,oe),ue.return=pe,ue;case I:return oe=mr(oe,pe.mode,ue),oe.return=pe,oe}if(nc(oe)||te(oe))return oe=Fn(oe,pe.mode,ue,null),oe.return=pe,oe;rc(pe,oe)}return null}function xe(pe,oe,ue,ve){var be=oe!==null?oe.key:null;if(typeof ue=="string"||typeof ue=="number")return be!==null?null:O(pe,oe,""+ue,ve);if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case A:return ue.key===be?ue.type===R?Se(pe,oe,ue.props.children,ve,be):q(pe,oe,ue,ve):null;case I:return ue.key===be?ae(pe,oe,ue,ve):null}if(nc(ue)||te(ue))return be!==null?null:Se(pe,oe,ue,ve,null);rc(pe,ue)}return null}function Pe(pe,oe,ue,ve,be){if(typeof ve=="string"||typeof ve=="number")return pe=pe.get(ue)||null,O(oe,pe,""+ve,be);if(typeof ve=="object"&&ve!==null){switch(ve.$$typeof){case A:return pe=pe.get(ve.key===null?ue:ve.key)||null,ve.type===R?Se(oe,pe,ve.props.children,be,ve.key):q(oe,pe,ve,be);case I:return pe=pe.get(ve.key===null?ue:ve.key)||null,ae(oe,pe,ve,be)}if(nc(ve)||te(ve))return pe=pe.get(ue)||null,Se(oe,pe,ve,be,null);rc(oe,ve)}return null}function tt(pe,oe,ue,ve){for(var be=null,rt=null,We=oe,ot=oe=0,mt=null;We!==null&&ot<ue.length;ot++){We.index>ot?(mt=We,We=null):mt=We.sibling;var ct=xe(pe,We,ue[ot],ve);if(ct===null){We===null&&(We=mt);break}p&&We&&ct.alternate===null&&r(pe,We),oe=S(ct,oe,ot),rt===null?be=ct:rt.sibling=ct,rt=ct,We=mt}if(ot===ue.length)return a(pe,We),be;if(We===null){for(;ot<ue.length;ot++)We=He(pe,ue[ot],ve),We!==null&&(oe=S(We,oe,ot),rt===null?be=We:rt.sibling=We,rt=We);return be}for(We=f(pe,We);ot<ue.length;ot++)mt=Pe(We,pe,ot,ue[ot],ve),mt!==null&&(p&&mt.alternate!==null&&We.delete(mt.key===null?ot:mt.key),oe=S(mt,oe,ot),rt===null?be=mt:rt.sibling=mt,rt=mt);return p&&We.forEach(function(Fa){return r(pe,Fa)}),be}function Xe(pe,oe,ue,ve){var be=te(ue);if(typeof be!="function")throw Error(t(150));if(ue=be.call(ue),ue==null)throw Error(t(151));for(var rt=be=null,We=oe,ot=oe=0,mt=null,ct=ue.next();We!==null&&!ct.done;ot++,ct=ue.next()){We.index>ot?(mt=We,We=null):mt=We.sibling;var Fa=xe(pe,We,ct.value,ve);if(Fa===null){We===null&&(We=mt);break}p&&We&&Fa.alternate===null&&r(pe,We),oe=S(Fa,oe,ot),rt===null?be=Fa:rt.sibling=Fa,rt=Fa,We=mt}if(ct.done)return a(pe,We),be;if(We===null){for(;!ct.done;ot++,ct=ue.next())ct=He(pe,ct.value,ve),ct!==null&&(oe=S(ct,oe,ot),rt===null?be=ct:rt.sibling=ct,rt=ct);return be}for(We=f(pe,We);!ct.done;ot++,ct=ue.next())ct=Pe(We,pe,ot,ct.value,ve),ct!==null&&(p&&ct.alternate!==null&&We.delete(ct.key===null?ot:ct.key),oe=S(ct,oe,ot),rt===null?be=ct:rt.sibling=ct,rt=ct);return p&&We.forEach(function(pS){return r(pe,pS)}),be}return function(pe,oe,ue,ve){var be=typeof ue=="object"&&ue!==null&&ue.type===R&&ue.key===null;be&&(ue=ue.props.children);var rt=typeof ue=="object"&&ue!==null;if(rt)switch(ue.$$typeof){case A:e:{for(rt=ue.key,be=oe;be!==null;){if(be.key===rt){switch(be.tag){case 7:if(ue.type===R){a(pe,be.sibling),oe=y(be,ue.props.children),oe.return=pe,pe=oe;break e}break;default:if(be.elementType===ue.type){a(pe,be.sibling),oe=y(be,ue.props),oe.ref=Dl(pe,be,ue),oe.return=pe,pe=oe;break e}}a(pe,be);break}else r(pe,be);be=be.sibling}ue.type===R?(oe=Fn(ue.props.children,pe.mode,ve,ue.key),oe.return=pe,pe=oe):(ve=As(ue.type,ue.key,ue.props,null,pe.mode,ve),ve.ref=Dl(pe,oe,ue),ve.return=pe,pe=ve)}return E(pe);case I:e:{for(be=ue.key;oe!==null;){if(oe.key===be)if(oe.tag===4&&oe.stateNode.containerInfo===ue.containerInfo&&oe.stateNode.implementation===ue.implementation){a(pe,oe.sibling),oe=y(oe,ue.children||[]),oe.return=pe,pe=oe;break e}else{a(pe,oe);break}else r(pe,oe);oe=oe.sibling}oe=mr(ue,pe.mode,ve),oe.return=pe,pe=oe}return E(pe)}if(typeof ue=="string"||typeof ue=="number")return ue=""+ue,oe!==null&&oe.tag===6?(a(pe,oe.sibling),oe=y(oe,ue),oe.return=pe,pe=oe):(a(pe,oe),oe=hr(ue,pe.mode,ve),oe.return=pe,pe=oe),E(pe);if(nc(ue))return tt(pe,oe,ue,ve);if(te(ue))return Xe(pe,oe,ue,ve);if(rt&&rc(pe,ue),typeof ue>"u"&&!be)switch(pe.tag){case 1:case 22:case 0:case 11:case 15:throw Error(t(152,ht(pe.type)||"Component"))}return a(pe,oe)}}var ns=hm(!0),mm=hm(!1),Il={},rs=ni(Il),Tl=ni(Il),Al=ni(Il);function Ni(p){if(p===Il)throw Error(t(174));return p}function Gu(p,r){switch(dn(Al,r),dn(Tl,p),dn(rs,Il),p=r.nodeType,p){case 9:case 11:r=(r=r.documentElement)?r.namespaceURI:Ae(null,"");break;default:p=p===8?r.parentNode:r,r=p.namespaceURI||null,p=p.tagName,r=Ae(r,p)}nn(rs),dn(rs,r)}function Ma(){nn(rs),nn(Tl),nn(Al)}function os(p){Ni(Al.current);var r=Ni(rs.current),a=Ae(r,p.type);r!==a&&(dn(Tl,p),dn(rs,a))}function si(p){Tl.current===p&&(nn(rs),nn(Tl))}var cn=ni(0);function oc(p){for(var r=p;r!==null;){if(r.tag===13){var a=r.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||a.data==="$!"))return r}else if(r.tag===19&&r.memoizedProps.revealOrder!==void 0){if((r.flags&64)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===p)break;for(;r.sibling===null;){if(r.return===null||r.return===p)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var Ss=null,ii=null,ss=!1;function sc(p,r){var a=Hr(5,null,null,0);a.elementType="DELETED",a.type="DELETED",a.stateNode=r,a.return=p,a.flags=8,p.lastEffect!==null?(p.lastEffect.nextEffect=a,p.lastEffect=a):p.firstEffect=p.lastEffect=a}function Oi(p,r){switch(p.tag){case 5:var a=p.type;return r=r.nodeType!==1||a.toLowerCase()!==r.nodeName.toLowerCase()?null:r,r!==null?(p.stateNode=r,!0):!1;case 6:return r=p.pendingProps===""||r.nodeType!==3?null:r,r!==null?(p.stateNode=r,!0):!1;case 13:return!1;default:return!1}}function ja(p){if(ss){var r=ii;if(r){var a=r;if(!Oi(p,r)){if(r=vs(a.nextSibling),!r||!Oi(p,r)){p.flags=p.flags&-1025|2,ss=!1,Ss=p;return}sc(Ss,a)}Ss=p,ii=vs(r.firstChild)}else p.flags=p.flags&-1025|2,ss=!1,Ss=p}}function yt(p){for(p=p.return;p!==null&&p.tag!==5&&p.tag!==3&&p.tag!==13;)p=p.return;Ss=p}function Pl(p){if(p!==Ss)return!1;if(!ss)return yt(p),ss=!0,!1;var r=p.type;if(p.tag!==5||r!=="head"&&r!=="body"&&!Hd(r,p.memoizedProps))for(r=ii;r;)sc(p,r),r=vs(r.nextSibling);if(yt(p),p.tag===13){if(p=p.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(t(317));e:{for(p=p.nextSibling,r=0;p;){if(p.nodeType===8){var a=p.data;if(a==="/$"){if(r===0){ii=vs(p.nextSibling);break e}r--}else a!=="$"&&a!=="$!"&&a!=="$?"||r++}p=p.nextSibling}ii=null}}else ii=Ss?vs(p.stateNode.nextSibling):null;return!0}function $u(){ii=Ss=null,ss=!1}var Tn=[];function ic(){for(var p=0;p<Tn.length;p++)Tn[p]._workInProgressVersionPrimary=null;Tn.length=0}var Rl=Y.ReactCurrentDispatcher,Fr=Y.ReactCurrentBatchConfig,Fl=0,Dt=null,An=null,Pn=null,Nl=!1,Ol=!1;function vr(){throw Error(t(321))}function Ku(p,r){if(r===null)return!1;for(var a=0;a<r.length&&a<p.length;a++)if(!oo(p[a],r[a]))return!1;return!0}function qu(p,r,a,f,y,S){if(Fl=S,Dt=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,Rl.current=p===null||p.memoizedState===null?n_:Bi,p=a(f,y),Ol){S=0;do{if(Ol=!1,!(25>S))throw Error(t(301));S+=1,Pn=An=null,r.updateQueue=null,Rl.current=r_,p=a(f,y)}while(Ol)}if(Rl.current=Hl,r=An!==null&&An.next!==null,Fl=0,Pn=An=Dt=null,Nl=!1,r)throw Error(t(300));return p}function ai(){var p={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pn===null?Dt.memoizedState=Pn=p:Pn=Pn.next=p,Pn}function Yi(){if(An===null){var p=Dt.alternate;p=p!==null?p.memoizedState:null}else p=An.next;var r=Pn===null?Dt.memoizedState:Pn.next;if(r!==null)Pn=r,An=p;else{if(p===null)throw Error(t(310));An=p,p={memoizedState:An.memoizedState,baseState:An.baseState,baseQueue:An.baseQueue,queue:An.queue,next:null},Pn===null?Dt.memoizedState=Pn=p:Pn=Pn.next=p}return Pn}function hn(p,r){return typeof r=="function"?r(p):r}function La(p){var r=Yi(),a=r.queue;if(a===null)throw Error(t(311));a.lastRenderedReducer=p;var f=An,y=f.baseQueue,S=a.pending;if(S!==null){if(y!==null){var E=y.next;y.next=S.next,S.next=E}f.baseQueue=y=S,a.pending=null}if(y!==null){y=y.next,f=f.baseState;var O=E=S=null,q=y;do{var ae=q.lane;if((Fl&ae)===ae)O!==null&&(O=O.next={lane:0,action:q.action,eagerReducer:q.eagerReducer,eagerState:q.eagerState,next:null}),f=q.eagerReducer===p?q.eagerState:p(f,q.action);else{var Se={lane:ae,action:q.action,eagerReducer:q.eagerReducer,eagerState:q.eagerState,next:null};O===null?(E=O=Se,S=f):O=O.next=Se,Dt.lanes|=ae,$n|=ae}q=q.next}while(q!==null&&q!==y);O===null?S=f:O.next=E,oo(f,r.memoizedState)||(Nr=!0),r.memoizedState=f,r.baseState=S,r.baseQueue=O,a.lastRenderedState=f}return[r.memoizedState,a.dispatch]}function Wi(p){var r=Yi(),a=r.queue;if(a===null)throw Error(t(311));a.lastRenderedReducer=p;var f=a.dispatch,y=a.pending,S=r.memoizedState;if(y!==null){a.pending=null;var E=y=y.next;do S=p(S,E.action),E=E.next;while(E!==y);oo(S,r.memoizedState)||(Nr=!0),r.memoizedState=S,r.baseQueue===null&&(r.baseState=S),a.lastRenderedState=S}return[S,f]}function fm(p,r,a){var f=r._getVersion;f=f(r._source);var y=r._workInProgressVersionPrimary;if(y!==null?p=y===f:(p=p.mutableReadLanes,(p=(Fl&p)===p)&&(r._workInProgressVersionPrimary=f,Tn.push(r))),p)return a(r._source);throw Tn.push(r),Error(t(350))}function li(p,r,a,f){var y=cr;if(y===null)throw Error(t(349));var S=r._getVersion,E=S(r._source),O=Rl.current,q=O.useState(function(){return fm(y,r,a)}),ae=q[1],Se=q[0];q=Pn;var He=p.memoizedState,xe=He.refs,Pe=xe.getSnapshot,tt=He.source;He=He.subscribe;var Xe=Dt;return p.memoizedState={refs:xe,source:r,subscribe:f},O.useEffect(function(){xe.getSnapshot=a,xe.setSnapshot=ae;var pe=S(r._source);if(!oo(E,pe)){pe=a(r._source),oo(Se,pe)||(ae(pe),pe=Ls(Xe),y.mutableReadLanes|=pe&y.pendingLanes),pe=y.mutableReadLanes,y.entangledLanes|=pe;for(var oe=y.entanglements,ue=pe;0<ue;){var ve=31-es(ue),be=1<<ve;oe[ve]|=pe,ue&=~be}}},[a,r,f]),O.useEffect(function(){return f(r._source,function(){var pe=xe.getSnapshot,oe=xe.setSnapshot;try{oe(pe(r._source));var ue=Ls(Xe);y.mutableReadLanes|=ue&y.pendingLanes}catch(ve){oe(function(){throw ve})}})},[r,f]),oo(Pe,a)&&oo(tt,r)&&oo(He,f)||(p={pending:null,dispatch:null,lastRenderedReducer:hn,lastRenderedState:Se},p.dispatch=ae=Zu.bind(null,Dt,p),q.queue=p,q.baseQueue=null,Se=fm(y,r,a),q.memoizedState=q.baseState=Se),Se}function gm(p,r,a){var f=Yi();return li(f,p,r,a)}function Yl(p){var r=ai();return typeof p=="function"&&(p=p()),r.memoizedState=r.baseState=p,p=r.queue={pending:null,dispatch:null,lastRenderedReducer:hn,lastRenderedState:p},p=p.dispatch=Zu.bind(null,Dt,p),[r.memoizedState,p]}function ac(p,r,a,f){return p={tag:p,create:r,destroy:a,deps:f,next:null},r=Dt.updateQueue,r===null?(r={lastEffect:null},Dt.updateQueue=r,r.lastEffect=p.next=p):(a=r.lastEffect,a===null?r.lastEffect=p.next=p:(f=a.next,a.next=p,p.next=f,r.lastEffect=p)),p}function _m(p){var r=ai();return p={current:p},r.memoizedState=p}function lc(){return Yi().memoizedState}function Ju(p,r,a,f){var y=ai();Dt.flags|=p,y.memoizedState=ac(1|r,a,void 0,f===void 0?null:f)}function Wl(p,r,a,f){var y=Yi();f=f===void 0?null:f;var S=void 0;if(An!==null){var E=An.memoizedState;if(S=E.destroy,f!==null&&Ku(f,E.deps)){ac(r,a,S,f);return}}Dt.flags|=p,y.memoizedState=ac(1|r,a,S,f)}function ym(p,r){return Ju(516,4,p,r)}function Bl(p,r){return Wl(516,4,p,r)}function wm(p,r){return Wl(4,2,p,r)}function vm(p,r){if(typeof r=="function")return p=p(),r(p),function(){r(null)};if(r!=null)return p=p(),r.current=p,function(){r.current=null}}function dc(p,r,a){return a=a!=null?a.concat([p]):null,Wl(4,2,vm.bind(null,r,p),a)}function cc(){}function xm(p,r){var a=Yi();r=r===void 0?null:r;var f=a.memoizedState;return f!==null&&r!==null&&Ku(r,f[1])?f[0]:(a.memoizedState=[p,r],p)}function bm(p,r){var a=Yi();r=r===void 0?null:r;var f=a.memoizedState;return f!==null&&r!==null&&Ku(r,f[1])?f[0]:(p=p(),a.memoizedState=[p,r],p)}function t_(p,r){var a=Ce();Ri(98>a?98:a,function(){p(!0)}),Ri(97<a?97:a,function(){var f=Fr.transition;Fr.transition=1;try{p(!1),r()}finally{Fr.transition=f}})}function Zu(p,r,a){var f=Ln(),y=Ls(p),S={lane:y,action:a,eagerReducer:null,eagerState:null,next:null},E=r.pending;if(E===null?S.next=S:(S.next=E.next,E.next=S),r.pending=S,E=p.alternate,p===Dt||E!==null&&E===Dt)Ol=Nl=!0;else{if(p.lanes===0&&(E===null||E.lanes===0)&&(E=r.lastRenderedReducer,E!==null))try{var O=r.lastRenderedState,q=E(O,a);if(S.eagerReducer=E,S.eagerState=q,oo(q,O))return}catch{}finally{}Es(p,y,f)}}var Hl={readContext:so,useCallback:vr,useContext:vr,useEffect:vr,useImperativeHandle:vr,useLayoutEffect:vr,useMemo:vr,useReducer:vr,useRef:vr,useState:vr,useDebugValue:vr,useDeferredValue:vr,useTransition:vr,useMutableSource:vr,useOpaqueIdentifier:vr,unstable_isNewReconciler:!1},n_={readContext:so,useCallback:function(p,r){return ai().memoizedState=[p,r===void 0?null:r],p},useContext:so,useEffect:ym,useImperativeHandle:function(p,r,a){return a=a!=null?a.concat([p]):null,Ju(4,2,vm.bind(null,r,p),a)},useLayoutEffect:function(p,r){return Ju(4,2,p,r)},useMemo:function(p,r){var a=ai();return r=r===void 0?null:r,p=p(),a.memoizedState=[p,r],p},useReducer:function(p,r,a){var f=ai();return r=a!==void 0?a(r):r,f.memoizedState=f.baseState=r,p=f.queue={pending:null,dispatch:null,lastRenderedReducer:p,lastRenderedState:r},p=p.dispatch=Zu.bind(null,Dt,p),[f.memoizedState,p]},useRef:_m,useState:Yl,useDebugValue:cc,useDeferredValue:function(p){var r=Yl(p),a=r[0],f=r[1];return ym(function(){var y=Fr.transition;Fr.transition=1;try{f(p)}finally{Fr.transition=y}},[p]),a},useTransition:function(){var p=Yl(!1),r=p[0];return p=t_.bind(null,p[1]),_m(p),[p,r]},useMutableSource:function(p,r,a){var f=ai();return f.memoizedState={refs:{getSnapshot:r,setSnapshot:null},source:p,subscribe:a},li(f,p,r,a)},useOpaqueIdentifier:function(){if(ss){var p=!1,r=Kh(function(){throw p||(p=!0,a("r:"+(ei++).toString(36))),Error(t(355))}),a=Yl(r)[1];return(Dt.mode&2)===0&&(Dt.flags|=516,ac(5,function(){a("r:"+(ei++).toString(36))},void 0,null)),r}return r="r:"+(ei++).toString(36),Yl(r),r},unstable_isNewReconciler:!1},Bi={readContext:so,useCallback:xm,useContext:so,useEffect:Bl,useImperativeHandle:dc,useLayoutEffect:wm,useMemo:bm,useReducer:La,useRef:lc,useState:function(){return La(hn)},useDebugValue:cc,useDeferredValue:function(p){var r=La(hn),a=r[0],f=r[1];return Bl(function(){var y=Fr.transition;Fr.transition=1;try{f(p)}finally{Fr.transition=y}},[p]),a},useTransition:function(){var p=La(hn)[0];return[lc().current,p]},useMutableSource:gm,useOpaqueIdentifier:function(){return La(hn)[0]},unstable_isNewReconciler:!1},r_={readContext:so,useCallback:xm,useContext:so,useEffect:Bl,useImperativeHandle:dc,useLayoutEffect:wm,useMemo:bm,useReducer:Wi,useRef:lc,useState:function(){return Wi(hn)},useDebugValue:cc,useDeferredValue:function(p){var r=Wi(hn),a=r[0],f=r[1];return Bl(function(){var y=Fr.transition;Fr.transition=1;try{f(p)}finally{Fr.transition=y}},[p]),a},useTransition:function(){var p=Wi(hn)[0];return[lc().current,p]},useMutableSource:gm,useOpaqueIdentifier:function(){return Wi(hn)[0]},unstable_isNewReconciler:!1},o_=Y.ReactCurrentOwner,Nr=!1;function dr(p,r,a,f){r.child=p===null?mm(r,null,a,f):ns(r,p.child,a,f)}function Hi(p,r,a,f,y){a=a.render;var S=r.ref;return Fi(r,y),f=qu(p,r,a,f,S,y),p!==null&&!Nr?(r.updateQueue=p.updateQueue,r.flags&=-517,p.lanes&=~y,Cs(p,r,y)):(r.flags|=1,dr(p,r,f,y),r.child)}function Or(p,r,a,f,y,S){if(p===null){var E=a.type;return typeof E=="function"&&!Kl(E)&&E.defaultProps===void 0&&a.compare===null&&a.defaultProps===void 0?(r.tag=15,r.type=E,is(p,r,E,f,y,S)):(p=As(a.type,null,f,r,r.mode,S),p.ref=r.ref,p.return=r,r.child=p)}return E=p.child,(y&S)===0&&(y=E.memoizedProps,a=a.compare,a=a!==null?a:xo,a(y,f)&&p.ref===r.ref)?Cs(p,r,S):(r.flags|=1,p=hi(E,f),p.ref=r.ref,p.return=r,r.child=p)}function is(p,r,a,f,y,S){if(p!==null&&xo(p.memoizedProps,f)&&p.ref===r.ref)if(Nr=!1,(S&y)!==0)(p.flags&16384)!==0&&(Nr=!0);else return r.lanes=p.lanes,Cs(p,r,S);return uc(p,r,a,f,S)}function So(p,r,a){var f=r.pendingProps,y=f.children,S=p!==null?p.memoizedState:null;if(f.mode==="hidden"||f.mode==="unstable-defer-without-hiding")if((r.mode&4)===0)r.memoizedState={baseLanes:0},Cc(r,a);else if((a&1073741824)!==0)r.memoizedState={baseLanes:0},Cc(r,S!==null?S.baseLanes:a);else return p=S!==null?S.baseLanes|a:a,r.lanes=r.childLanes=1073741824,r.memoizedState={baseLanes:p},Cc(r,p),null;else S!==null?(f=S.baseLanes|a,r.memoizedState=null):f=a,Cc(r,f);return dr(p,r,y,a),r.child}function as(p,r){var a=r.ref;(p===null&&a!==null||p!==null&&p.ref!==a)&&(r.flags|=128)}function uc(p,r,a,f,y){var S=wr(a)?Pi:zn.current;return S=Sa(r,S),Fi(r,y),a=qu(p,r,a,f,S,y),p!==null&&!Nr?(r.updateQueue=p.updateQueue,r.flags&=-517,p.lanes&=~y,Cs(p,r,y)):(r.flags|=1,dr(p,r,a,y),r.child)}function Xu(p,r,a,f,y){if(wr(a)){var S=!0;Kd(r)}else S=!1;if(Fi(r,y),r.stateNode===null)p!==null&&(p.alternate=null,r.alternate=null,r.flags|=2),um(r,a,f),Vu(r,a,f,y),f=!0;else if(p===null){var E=r.stateNode,O=r.memoizedProps;E.props=O;var q=E.context,ae=a.contextType;typeof ae=="object"&&ae!==null?ae=so(ae):(ae=wr(a)?Pi:zn.current,ae=Sa(r,ae));var Se=a.getDerivedStateFromProps,He=typeof Se=="function"||typeof E.getSnapshotBeforeUpdate=="function";He||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(O!==f||q!==ae)&&pm(r,E,f,ae),oi=!1;var xe=r.memoizedState;E.state=xe,Rr(r,f,E,y),q=r.memoizedState,O!==f||xe!==q||yr.current||oi?(typeof Se=="function"&&(ec(r,a,Se,f),q=r.memoizedState),(O=oi||cm(r,a,O,f,xe,q,ae))?(He||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount()),typeof E.componentDidMount=="function"&&(r.flags|=4)):(typeof E.componentDidMount=="function"&&(r.flags|=4),r.memoizedProps=f,r.memoizedState=q),E.props=f,E.state=q,E.context=ae,f=O):(typeof E.componentDidMount=="function"&&(r.flags|=4),f=!1)}else{E=r.stateNode,am(p,r),O=r.memoizedProps,ae=r.type===r.elementType?O:Pr(r.type,O),E.props=ae,He=r.pendingProps,xe=E.context,q=a.contextType,typeof q=="object"&&q!==null?q=so(q):(q=wr(a)?Pi:zn.current,q=Sa(r,q));var Pe=a.getDerivedStateFromProps;(Se=typeof Pe=="function"||typeof E.getSnapshotBeforeUpdate=="function")||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(O!==He||xe!==q)&&pm(r,E,f,q),oi=!1,xe=r.memoizedState,E.state=xe,Rr(r,f,E,y);var tt=r.memoizedState;O!==He||xe!==tt||yr.current||oi?(typeof Pe=="function"&&(ec(r,a,Pe,f),tt=r.memoizedState),(ae=oi||cm(r,a,ae,f,xe,tt,q))?(Se||typeof E.UNSAFE_componentWillUpdate!="function"&&typeof E.componentWillUpdate!="function"||(typeof E.componentWillUpdate=="function"&&E.componentWillUpdate(f,tt,q),typeof E.UNSAFE_componentWillUpdate=="function"&&E.UNSAFE_componentWillUpdate(f,tt,q)),typeof E.componentDidUpdate=="function"&&(r.flags|=4),typeof E.getSnapshotBeforeUpdate=="function"&&(r.flags|=256)):(typeof E.componentDidUpdate!="function"||O===p.memoizedProps&&xe===p.memoizedState||(r.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||O===p.memoizedProps&&xe===p.memoizedState||(r.flags|=256),r.memoizedProps=f,r.memoizedState=tt),E.props=f,E.state=tt,E.context=q,f=ae):(typeof E.componentDidUpdate!="function"||O===p.memoizedProps&&xe===p.memoizedState||(r.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||O===p.memoizedProps&&xe===p.memoizedState||(r.flags|=256),f=!1)}return Qu(p,r,a,f,S,y)}function Qu(p,r,a,f,y,S){as(p,r);var E=(r.flags&64)!==0;if(!f&&!E)return y&&Xh(r,a,!1),Cs(p,r,S);f=r.stateNode,o_.current=r;var O=E&&typeof a.getDerivedStateFromError!="function"?null:f.render();return r.flags|=1,p!==null&&E?(r.child=ns(r,p.child,null,S),r.child=ns(r,null,O,S)):dr(p,r,O,S),r.memoizedState=f.state,y&&Xh(r,a,!0),r.child}function ep(p){var r=p.stateNode;r.pendingContext?Zh(p,r.pendingContext,r.pendingContext!==r.context):r.context&&Zh(p,r.context,!1),Gu(p,r.containerInfo)}var pc={dehydrated:null,retryLane:0};function hc(p,r,a){var f=r.pendingProps,y=cn.current,S=!1,E;return(E=(r.flags&64)!==0)||(E=p!==null&&p.memoizedState===null?!1:(y&2)!==0),E?(S=!0,r.flags&=-65):p!==null&&p.memoizedState===null||f.fallback===void 0||f.unstable_avoidThisFallback===!0||(y|=1),dn(cn,y&1),p===null?(f.fallback!==void 0&&ja(r),p=f.children,y=f.fallback,S?(p=tp(r,p,y,a),r.child.memoizedState={baseLanes:a},r.memoizedState=pc,p):typeof f.unstable_expectedLoadTime=="number"?(p=tp(r,p,y,a),r.child.memoizedState={baseLanes:a},r.memoizedState=pc,r.lanes=33554432,p):(a=Sr({mode:"visible",children:p},r.mode,a,null),a.return=r,r.child=a)):p.memoizedState!==null?S?(f=Sm(p,r,f.children,f.fallback,a),S=r.child,y=p.child.memoizedState,S.memoizedState=y===null?{baseLanes:a}:{baseLanes:y.baseLanes|a},S.childLanes=p.childLanes&~a,r.memoizedState=pc,f):(a=np(p,r,f.children,a),r.memoizedState=null,a):S?(f=Sm(p,r,f.children,f.fallback,a),S=r.child,y=p.child.memoizedState,S.memoizedState=y===null?{baseLanes:a}:{baseLanes:y.baseLanes|a},S.childLanes=p.childLanes&~a,r.memoizedState=pc,f):(a=np(p,r,f.children,a),r.memoizedState=null,a)}function tp(p,r,a,f){var y=p.mode,S=p.child;return r={mode:"hidden",children:r},(y&2)===0&&S!==null?(S.childLanes=0,S.pendingProps=r):S=Sr(r,y,0,null),a=Fn(a,y,f,null),S.return=p,a.return=p,S.sibling=a,p.child=S,a}function np(p,r,a,f){var y=p.child;return p=y.sibling,a=hi(y,{mode:"visible",children:a}),(r.mode&2)===0&&(a.lanes=f),a.return=r,a.sibling=null,p!==null&&(p.nextEffect=null,p.flags=8,r.firstEffect=r.lastEffect=p),r.child=a}function Sm(p,r,a,f,y){var S=r.mode,E=p.child;p=E.sibling;var O={mode:"hidden",children:a};return(S&2)===0&&r.child!==E?(a=r.child,a.childLanes=0,a.pendingProps=O,E=a.lastEffect,E!==null?(r.firstEffect=a.firstEffect,r.lastEffect=E,E.nextEffect=null):r.firstEffect=r.lastEffect=null):a=hi(E,O),p!==null?f=hi(p,f):(f=Fn(f,S,y,null),f.flags|=2),f.return=r,a.return=r,a.sibling=f,r.child=a,f}function mc(p,r){p.lanes|=r;var a=p.alternate;a!==null&&(a.lanes|=r),im(p.return,r)}function fc(p,r,a,f,y,S){var E=p.memoizedState;E===null?p.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:f,tail:a,tailMode:y,lastEffect:S}:(E.isBackwards=r,E.rendering=null,E.renderingStartTime=0,E.last=f,E.tail=a,E.tailMode=y,E.lastEffect=S)}function rp(p,r,a){var f=r.pendingProps,y=f.revealOrder,S=f.tail;if(dr(p,r,f.children,a),f=cn.current,(f&2)!==0)f=f&1|2,r.flags|=64;else{if(p!==null&&(p.flags&64)!==0)e:for(p=r.child;p!==null;){if(p.tag===13)p.memoizedState!==null&&mc(p,a);else if(p.tag===19)mc(p,a);else if(p.child!==null){p.child.return=p,p=p.child;continue}if(p===r)break e;for(;p.sibling===null;){if(p.return===null||p.return===r)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}f&=1}if(dn(cn,f),(r.mode&2)===0)r.memoizedState=null;else switch(y){case"forwards":for(a=r.child,y=null;a!==null;)p=a.alternate,p!==null&&oc(p)===null&&(y=a),a=a.sibling;a=y,a===null?(y=r.child,r.child=null):(y=a.sibling,a.sibling=null),fc(r,!1,y,a,S,r.lastEffect);break;case"backwards":for(a=null,y=r.child,r.child=null;y!==null;){if(p=y.alternate,p!==null&&oc(p)===null){r.child=y;break}p=y.sibling,y.sibling=a,a=y,y=p}fc(r,!0,a,null,S,r.lastEffect);break;case"together":fc(r,!1,null,null,void 0,r.lastEffect);break;default:r.memoizedState=null}return r.child}function Cs(p,r,a){if(p!==null&&(r.dependencies=p.dependencies),$n|=r.lanes,(a&r.childLanes)!==0){if(p!==null&&r.child!==p.child)throw Error(t(153));if(r.child!==null){for(p=r.child,a=hi(p,p.pendingProps),r.child=a,a.return=r;p.sibling!==null;)p=p.sibling,a=a.sibling=hi(p,p.pendingProps),a.return=r;a.sibling=null}return r.child}return null}var gc,_c,op,Cm;gc=function(p,r){for(var a=r.child;a!==null;){if(a.tag===5||a.tag===6)p.appendChild(a.stateNode);else if(a.tag!==4&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return;a=a.return}a.sibling.return=a.return,a=a.sibling}},_c=function(){},op=function(p,r,a,f){var y=p.memoizedProps;if(y!==f){p=r.stateNode,Ni(rs.current);var S=null;switch(a){case"input":y=Wt(p,y),f=Wt(p,f),S=[];break;case"option":y=rr(p,y),f=rr(p,f),S=[];break;case"select":y=s({},y,{value:void 0}),f=s({},f,{value:void 0}),S=[];break;case"textarea":y=Go(p,y),f=Go(p,f),S=[];break;default:typeof y.onClick!="function"&&typeof f.onClick=="function"&&(p.onclick=Bd)}_o(a,f);var E;a=null;for(ae in y)if(!f.hasOwnProperty(ae)&&y.hasOwnProperty(ae)&&y[ae]!=null)if(ae==="style"){var O=y[ae];for(E in O)O.hasOwnProperty(E)&&(a||(a={}),a[E]="")}else ae!=="dangerouslySetInnerHTML"&&ae!=="children"&&ae!=="suppressContentEditableWarning"&&ae!=="suppressHydrationWarning"&&ae!=="autoFocus"&&(d.hasOwnProperty(ae)?S||(S=[]):(S=S||[]).push(ae,null));for(ae in f){var q=f[ae];if(O=y?.[ae],f.hasOwnProperty(ae)&&q!==O&&(q!=null||O!=null))if(ae==="style")if(O){for(E in O)!O.hasOwnProperty(E)||q&&q.hasOwnProperty(E)||(a||(a={}),a[E]="");for(E in q)q.hasOwnProperty(E)&&O[E]!==q[E]&&(a||(a={}),a[E]=q[E])}else a||(S||(S=[]),S.push(ae,a)),a=q;else ae==="dangerouslySetInnerHTML"?(q=q?q.__html:void 0,O=O?O.__html:void 0,q!=null&&O!==q&&(S=S||[]).push(ae,q)):ae==="children"?typeof q!="string"&&typeof q!="number"||(S=S||[]).push(ae,""+q):ae!=="suppressContentEditableWarning"&&ae!=="suppressHydrationWarning"&&(d.hasOwnProperty(ae)?(q!=null&&ae==="onScroll"&&tn("scroll",p),S||O===q||(S=[])):typeof q=="object"&&q!==null&&q.$$typeof===le?q.toString():(S=S||[]).push(ae,q))}a&&(S=S||[]).push("style",a);var ae=S;(r.updateQueue=ae)&&(r.flags|=4)}},Cm=function(p,r,a,f){a!==f&&(r.flags|=4)};function zi(p,r){if(!ss)switch(p.tailMode){case"hidden":r=p.tail;for(var a=null;r!==null;)r.alternate!==null&&(a=r),r=r.sibling;a===null?p.tail=null:a.sibling=null;break;case"collapsed":a=p.tail;for(var f=null;a!==null;)a.alternate!==null&&(f=a),a=a.sibling;f===null?r||p.tail===null?p.tail=null:p.tail.sibling=null:f.sibling=null}}function km(p,r,a){var f=r.pendingProps;switch(r.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return wr(r.type)&&Gd(),null;case 3:return Ma(),nn(yr),nn(zn),ic(),f=r.stateNode,f.pendingContext&&(f.context=f.pendingContext,f.pendingContext=null),(p===null||p.child===null)&&(Pl(r)?r.flags|=4:f.hydrate||(r.flags|=256)),_c(r),null;case 5:si(r);var y=Ni(Al.current);if(a=r.type,p!==null&&r.stateNode!=null)op(p,r,a,f,y),p.ref!==r.ref&&(r.flags|=128);else{if(!f){if(r.stateNode===null)throw Error(t(166));return null}if(p=Ni(rs.current),Pl(r)){f=r.stateNode,a=r.type;var S=r.memoizedProps;switch(f[ti]=r,f[Ud]=S,a){case"dialog":tn("cancel",f),tn("close",f);break;case"iframe":case"object":case"embed":tn("load",f);break;case"video":case"audio":for(p=0;p<bl.length;p++)tn(bl[p],f);break;case"source":tn("error",f);break;case"img":case"image":case"link":tn("error",f),tn("load",f);break;case"details":tn("toggle",f);break;case"input":Xt(f,S),tn("invalid",f);break;case"select":f._wrapperState={wasMultiple:!!S.multiple},tn("invalid",f);break;case"textarea":or(f,S),tn("invalid",f)}_o(a,S),p=null;for(var E in S)S.hasOwnProperty(E)&&(y=S[E],E==="children"?typeof y=="string"?f.textContent!==y&&(p=["children",y]):typeof y=="number"&&f.textContent!==""+y&&(p=["children",""+y]):d.hasOwnProperty(E)&&y!=null&&E==="onScroll"&&tn("scroll",f));switch(a){case"input":Ct(f),fo(f,S,!0);break;case"textarea":Ct(f),Pt(f);break;case"select":case"option":break;default:typeof S.onClick=="function"&&(f.onclick=Bd)}f=p,r.updateQueue=f,f!==null&&(r.flags|=4)}else{switch(E=y.nodeType===9?y:y.ownerDocument,p===ge.html&&(p=se(a)),p===ge.html?a==="script"?(p=E.createElement("div"),p.innerHTML="<script><\/script>",p=p.removeChild(p.firstChild)):typeof f.is=="string"?p=E.createElement(a,{is:f.is}):(p=E.createElement(a),a==="select"&&(E=p,f.multiple?E.multiple=!0:f.size&&(E.size=f.size))):p=E.createElementNS(p,a),p[ti]=r,p[Ud]=f,gc(p,r,!1,!1),r.stateNode=p,E=Mi(a,f),a){case"dialog":tn("cancel",p),tn("close",p),y=f;break;case"iframe":case"object":case"embed":tn("load",p),y=f;break;case"video":case"audio":for(y=0;y<bl.length;y++)tn(bl[y],p);y=f;break;case"source":tn("error",p),y=f;break;case"img":case"image":case"link":tn("error",p),tn("load",p),y=f;break;case"details":tn("toggle",p),y=f;break;case"input":Xt(p,f),y=Wt(p,f),tn("invalid",p);break;case"option":y=rr(p,f);break;case"select":p._wrapperState={wasMultiple:!!f.multiple},y=s({},f,{value:void 0}),tn("invalid",p);break;case"textarea":or(p,f),y=Go(p,f),tn("invalid",p);break;default:y=f}_o(a,y);var O=y;for(S in O)if(O.hasOwnProperty(S)){var q=O[S];S==="style"?sl(p,q):S==="dangerouslySetInnerHTML"?(q=q?q.__html:void 0,q!=null&&Bt(p,q)):S==="children"?typeof q=="string"?(a!=="textarea"||q!=="")&&sr(p,q):typeof q=="number"&&sr(p,""+q):S!=="suppressContentEditableWarning"&&S!=="suppressHydrationWarning"&&S!=="autoFocus"&&(d.hasOwnProperty(S)?q!=null&&S==="onScroll"&&tn("scroll",p):q!=null&&N(p,S,q,E))}switch(a){case"input":Ct(p),fo(p,f,!1);break;case"textarea":Ct(p),Pt(p);break;case"option":f.value!=null&&p.setAttribute("value",""+Le(f.value));break;case"select":p.multiple=!!f.multiple,S=f.value,S!=null?Ft(p,!!f.multiple,S,!1):f.defaultValue!=null&&Ft(p,!!f.multiple,f.defaultValue,!0);break;default:typeof y.onClick=="function"&&(p.onclick=Bd)}Tu(a,f)&&(r.flags|=4)}r.ref!==null&&(r.flags|=128)}return null;case 6:if(p&&r.stateNode!=null)Cm(p,r,p.memoizedProps,f);else{if(typeof f!="string"&&r.stateNode===null)throw Error(t(166));a=Ni(Al.current),Ni(rs.current),Pl(r)?(f=r.stateNode,a=r.memoizedProps,f[ti]=r,f.nodeValue!==a&&(r.flags|=4)):(f=(a.nodeType===9?a:a.ownerDocument).createTextNode(f),f[ti]=r,r.stateNode=f)}return null;case 13:return nn(cn),f=r.memoizedState,(r.flags&64)!==0?(r.lanes=a,r):(f=f!==null,a=!1,p===null?r.memoizedProps.fallback!==void 0&&Pl(r):a=p.memoizedState!==null,f&&!a&&(r.mode&2)!==0&&(p===null&&r.memoizedProps.unstable_avoidThisFallback!==!0||(cn.current&1)!==0?Rn===0&&(Rn=3):((Rn===0||Rn===3)&&(Rn=4),cr===null||($n&134217727)===0&&(Vi&134217727)===0||ur(cr,Gn))),(f||a)&&(r.flags|=4),null);case 4:return Ma(),_c(r),p===null&&Uh(r.stateNode.containerInfo),null;case 10:return bo(r),null;case 17:return wr(r.type)&&Gd(),null;case 19:if(nn(cn),f=r.memoizedState,f===null)return null;if(S=(r.flags&64)!==0,E=f.rendering,E===null)if(S)zi(f,!1);else{if(Rn!==0||p!==null&&(p.flags&64)!==0)for(p=r.child;p!==null;){if(E=oc(p),E!==null){for(r.flags|=64,zi(f,!1),S=E.updateQueue,S!==null&&(r.updateQueue=S,r.flags|=4),f.lastEffect===null&&(r.firstEffect=null),r.lastEffect=f.lastEffect,f=a,a=r.child;a!==null;)S=a,p=f,S.flags&=2,S.nextEffect=null,S.firstEffect=null,S.lastEffect=null,E=S.alternate,E===null?(S.childLanes=0,S.lanes=p,S.child=null,S.memoizedProps=null,S.memoizedState=null,S.updateQueue=null,S.dependencies=null,S.stateNode=null):(S.childLanes=E.childLanes,S.lanes=E.lanes,S.child=E.child,S.memoizedProps=E.memoizedProps,S.memoizedState=E.memoizedState,S.updateQueue=E.updateQueue,S.type=E.type,p=E.dependencies,S.dependencies=p===null?null:{lanes:p.lanes,firstContext:p.firstContext}),a=a.sibling;return dn(cn,cn.current&1|2),r.child}p=p.sibling}f.tail!==null&&Vn()>up&&(r.flags|=64,S=!0,zi(f,!1),r.lanes=33554432)}else{if(!S)if(p=oc(E),p!==null){if(r.flags|=64,S=!0,a=p.updateQueue,a!==null&&(r.updateQueue=a,r.flags|=4),zi(f,!0),f.tail===null&&f.tailMode==="hidden"&&!E.alternate&&!ss)return r=r.lastEffect=f.lastEffect,r!==null&&(r.nextEffect=null),null}else 2*Vn()-f.renderingStartTime>up&&a!==1073741824&&(r.flags|=64,S=!0,zi(f,!1),r.lanes=33554432);f.isBackwards?(E.sibling=r.child,r.child=E):(a=f.last,a!==null?a.sibling=E:r.child=E,f.last=E)}return f.tail!==null?(a=f.tail,f.rendering=a,f.tail=a.sibling,f.lastEffect=r.lastEffect,f.renderingStartTime=Vn(),a.sibling=null,r=cn.current,dn(cn,S?r&1|2:r&1),a):null;case 23:case 24:return pp(),p!==null&&p.memoizedState!==null!=(r.memoizedState!==null)&&f.mode!=="unstable-defer-without-hiding"&&(r.flags|=4),null}throw Error(t(156,r.tag))}function Co(p){switch(p.tag){case 1:wr(p.type)&&Gd();var r=p.flags;return r&4096?(p.flags=r&-4097|64,p):null;case 3:if(Ma(),nn(yr),nn(zn),ic(),r=p.flags,(r&64)!==0)throw Error(t(285));return p.flags=r&-4097|64,p;case 5:return si(p),null;case 13:return nn(cn),r=p.flags,r&4096?(p.flags=r&-4097|64,p):null;case 19:return nn(cn),null;case 4:return Ma(),null;case 10:return bo(p),null;case 23:case 24:return pp(),null;default:return null}}function sp(p,r){try{var a="",f=r;do a+=Ut(f),f=f.return;while(f);var y=a}catch(S){y=`
Error generating stack: `+S.message+`
`+S.stack}return{value:p,source:r,stack:y}}function ip(p,r){try{console.error(r.value)}catch(a){setTimeout(function(){throw a})}}var yc=typeof WeakMap=="function"?WeakMap:Map;function Mm(p,r,a){a=bs(-1,a),a.tag=3,a.payload={element:null};var f=r.value;return a.callback=function(){bc||(bc=!0,Kn=f),ip(p,r)},a}function Yr(p,r,a){a=bs(-1,a),a.tag=3;var f=p.type.getDerivedStateFromError;if(typeof f=="function"){var y=r.value;a.payload=function(){return ip(p,r),f(y)}}var S=p.stateNode;return S!==null&&typeof S.componentDidCatch=="function"&&(a.callback=function(){typeof f!="function"&&(ls===null?ls=new Set([this]):ls.add(this),ip(p,r));var E=r.stack;this.componentDidCatch(r.value,{componentStack:E!==null?E:""})}),a}var s_=typeof WeakSet=="function"?WeakSet:Set;function jm(p){var r=p.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(a){pr(p,a)}else r.current=null}function i_(p,r){switch(r.tag){case 0:case 11:case 15:case 22:return;case 1:if(r.flags&256&&p!==null){var a=p.memoizedProps,f=p.memoizedState;p=r.stateNode,r=p.getSnapshotBeforeUpdate(r.elementType===r.type?a:Pr(r.type,a),f),p.__reactInternalSnapshotBeforeUpdate=r}return;case 3:r.flags&256&&Qs(r.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(t(163))}function Lm(p,r,a){switch(a.tag){case 0:case 11:case 15:case 22:if(r=a.updateQueue,r=r!==null?r.lastEffect:null,r!==null){p=r=r.next;do{if((p.tag&3)===3){var f=p.create;p.destroy=f()}p=p.next}while(p!==r)}if(r=a.updateQueue,r=r!==null?r.lastEffect:null,r!==null){p=r=r.next;do{var y=p;f=y.next,y=y.tag,(y&4)!==0&&(y&1)!==0&&(Bm(a,p),Wm(a,p)),p=f}while(p!==r)}return;case 1:p=a.stateNode,a.flags&4&&(r===null?p.componentDidMount():(f=a.elementType===a.type?r.memoizedProps:Pr(a.type,r.memoizedProps),p.componentDidUpdate(f,r.memoizedState,p.__reactInternalSnapshotBeforeUpdate))),r=a.updateQueue,r!==null&&Uu(a,r,p);return;case 3:if(r=a.updateQueue,r!==null){if(p=null,a.child!==null)switch(a.child.tag){case 5:p=a.child.stateNode;break;case 1:p=a.child.stateNode}Uu(a,r,p)}return;case 5:p=a.stateNode,r===null&&a.flags&4&&Tu(a.type,a.memoizedProps)&&p.focus();return;case 6:return;case 4:return;case 12:return;case 13:a.memoizedState===null&&(a=a.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null&&mh(a))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(t(163))}function wc(p,r){for(var a=p;;){if(a.tag===5){var f=a.stateNode;if(r)f=f.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{f=a.stateNode;var y=a.memoizedProps.style;y=y!=null&&y.hasOwnProperty("display")?y.display:null,f.style.display=Gs("display",y)}}else if(a.tag===6)a.stateNode.nodeValue=r?"":a.memoizedProps;else if((a.tag!==23&&a.tag!==24||a.memoizedState===null||a===p)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===p)break;for(;a.sibling===null;){if(a.return===null||a.return===p)return;a=a.return}a.sibling.return=a.return,a=a.sibling}}function ap(p,r){if(xs&&typeof xs.onCommitFiberUnmount=="function")try{xs.onCommitFiberUnmount(Fu,r)}catch{}switch(r.tag){case 0:case 11:case 14:case 15:case 22:if(p=r.updateQueue,p!==null&&(p=p.lastEffect,p!==null)){var a=p=p.next;do{var f=a,y=f.destroy;if(f=f.tag,y!==void 0)if((f&4)!==0)Bm(r,a);else{f=r;try{y()}catch(S){pr(f,S)}}a=a.next}while(a!==p)}break;case 1:if(jm(r),p=r.stateNode,typeof p.componentWillUnmount=="function")try{p.props=r.memoizedProps,p.state=r.memoizedState,p.componentWillUnmount()}catch(S){pr(r,S)}break;case 5:jm(r);break;case 4:Tm(p,r)}}function Em(p){p.alternate=null,p.child=null,p.dependencies=null,p.firstEffect=null,p.lastEffect=null,p.memoizedProps=null,p.memoizedState=null,p.pendingProps=null,p.return=null,p.updateQueue=null}function Dm(p){return p.tag===5||p.tag===3||p.tag===4}function Im(p){e:{for(var r=p.return;r!==null;){if(Dm(r))break e;r=r.return}throw Error(t(160))}var a=r;switch(r=a.stateNode,a.tag){case 5:var f=!1;break;case 3:r=r.containerInfo,f=!0;break;case 4:r=r.containerInfo,f=!0;break;default:throw Error(t(161))}a.flags&16&&(sr(r,""),a.flags&=-17);e:t:for(a=p;;){for(;a.sibling===null;){if(a.return===null||Dm(a.return)){a=null;break e}a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.flags&2||a.child===null||a.tag===4)continue t;a.child.return=a,a=a.child}if(!(a.flags&2)){a=a.stateNode;break e}}f?lp(p,a,r):dp(p,a,r)}function lp(p,r,a){var f=p.tag,y=f===5||f===6;if(y)p=y?p.stateNode:p.stateNode.instance,r?a.nodeType===8?a.parentNode.insertBefore(p,r):a.insertBefore(p,r):(a.nodeType===8?(r=a.parentNode,r.insertBefore(p,a)):(r=a,r.appendChild(p)),a=a._reactRootContainer,a!=null||r.onclick!==null||(r.onclick=Bd));else if(f!==4&&(p=p.child,p!==null))for(lp(p,r,a),p=p.sibling;p!==null;)lp(p,r,a),p=p.sibling}function dp(p,r,a){var f=p.tag,y=f===5||f===6;if(y)p=y?p.stateNode:p.stateNode.instance,r?a.insertBefore(p,r):a.appendChild(p);else if(f!==4&&(p=p.child,p!==null))for(dp(p,r,a),p=p.sibling;p!==null;)dp(p,r,a),p=p.sibling}function Tm(p,r){for(var a=r,f=!1,y,S;;){if(!f){f=a.return;e:for(;;){if(f===null)throw Error(t(160));switch(y=f.stateNode,f.tag){case 5:S=!1;break e;case 3:y=y.containerInfo,S=!0;break e;case 4:y=y.containerInfo,S=!0;break e}f=f.return}f=!0}if(a.tag===5||a.tag===6){e:for(var E=p,O=a,q=O;;)if(ap(E,q),q.child!==null&&q.tag!==4)q.child.return=q,q=q.child;else{if(q===O)break e;for(;q.sibling===null;){if(q.return===null||q.return===O)break e;q=q.return}q.sibling.return=q.return,q=q.sibling}S?(E=y,O=a.stateNode,E.nodeType===8?E.parentNode.removeChild(O):E.removeChild(O)):y.removeChild(a.stateNode)}else if(a.tag===4){if(a.child!==null){y=a.stateNode.containerInfo,S=!0,a.child.return=a,a=a.child;continue}}else if(ap(p,a),a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return;a=a.return,a.tag===4&&(f=!1)}a.sibling.return=a.return,a=a.sibling}}function cp(p,r){switch(r.tag){case 0:case 11:case 14:case 15:case 22:var a=r.updateQueue;if(a=a!==null?a.lastEffect:null,a!==null){var f=a=a.next;do(f.tag&3)===3&&(p=f.destroy,f.destroy=void 0,p!==void 0&&p()),f=f.next;while(f!==a)}return;case 1:return;case 5:if(a=r.stateNode,a!=null){f=r.memoizedProps;var y=p!==null?p.memoizedProps:f;p=r.type;var S=r.updateQueue;if(r.updateQueue=null,S!==null){for(a[Ud]=f,p==="input"&&f.type==="radio"&&f.name!=null&&ys(a,f),Mi(p,y),r=Mi(p,f),y=0;y<S.length;y+=2){var E=S[y],O=S[y+1];E==="style"?sl(a,O):E==="dangerouslySetInnerHTML"?Bt(a,O):E==="children"?sr(a,O):N(a,E,O,r)}switch(p){case"input":an(a,f);break;case"textarea":$o(a,f);break;case"select":p=a._wrapperState.wasMultiple,a._wrapperState.wasMultiple=!!f.multiple,S=f.value,S!=null?Ft(a,!!f.multiple,S,!1):p!==!!f.multiple&&(f.defaultValue!=null?Ft(a,!!f.multiple,f.defaultValue,!0):Ft(a,!!f.multiple,f.multiple?[]:"",!1))}}}return;case 6:if(r.stateNode===null)throw Error(t(162));r.stateNode.nodeValue=r.memoizedProps;return;case 3:a=r.stateNode,a.hydrate&&(a.hydrate=!1,mh(a.containerInfo));return;case 12:return;case 13:r.memoizedState!==null&&(zl=Vn(),wc(r.child,!0)),Am(r);return;case 19:Am(r);return;case 17:return;case 23:case 24:wc(r,r.memoizedState!==null);return}throw Error(t(163))}function Am(p){var r=p.updateQueue;if(r!==null){p.updateQueue=null;var a=p.stateNode;a===null&&(a=p.stateNode=new s_),r.forEach(function(f){var y=u_.bind(null,p,f);a.has(f)||(a.add(f),f.then(y,y))})}}function a_(p,r){return p!==null&&(p=p.memoizedState,p===null||p.dehydrated!==null)?(r=r.memoizedState,r!==null&&r.dehydrated===null):!1}var l_=Math.ceil,vc=Y.ReactCurrentDispatcher,xr=Y.ReactCurrentOwner,Ve=0,cr=null,Sn=null,Gn=0,Ui=0,xc=ni(0),Rn=0,ko=null,Ea=0,$n=0,Vi=0,di=0,Wr=null,zl=0,up=1/0;function Da(){up=Vn()+500}var Re=null,bc=!1,Kn=null,ls=null,ci=!1,Ul=null,Ia=90,Vl=[],Gi=[],ks=null,Gl=0,ui=null,Sc=-1,Ms=0,js=0,Ta=null,Mo=!1;function Ln(){return(Ve&48)!==0?Vn():Sc!==-1?Sc:Sc=Vn()}function Ls(p){if(p=p.mode,(p&2)===0)return 1;if((p&4)===0)return Ce()===99?1:2;if(Ms===0&&(Ms=Ea),sm.transition!==0){js!==0&&(js=Wr!==null?Wr.pendingLanes:0),p=Ms;var r=4186112&~js;return r&=-r,r===0&&(p=4186112&~p,r=p&-p,r===0&&(r=8192)),r}return p=Ce(),(Ve&4)!==0&&p===98?p=Dd(12,Ms):(p=Sg(p),p=Dd(p,Ms)),p}function Es(p,r,a){if(50<Gl)throw Gl=0,ui=null,Error(t(185));if(p=Ds(p,r),p===null)return null;Id(p,r,a),p===cr&&(Vi|=r,Rn===4&&ur(p,Gn));var f=Ce();r===1?(Ve&8)!==0&&(Ve&48)===0?br(p):(qn(p,a),Ve===0&&(Da(),lt())):((Ve&4)===0||f!==98&&f!==99||(ks===null?ks=new Set([p]):ks.add(p)),qn(p,a)),Wr=p}function Ds(p,r){p.lanes|=r;var a=p.alternate;for(a!==null&&(a.lanes|=r),a=p,p=p.return;p!==null;)p.childLanes|=r,a=p.alternate,a!==null&&(a.childLanes|=r),a=p,p=p.return;return a.tag===3?a.stateNode:null}function qn(p,r){for(var a=p.callbackNode,f=p.suspendedLanes,y=p.pingedLanes,S=p.expirationTimes,E=p.pendingLanes;0<E;){var O=31-es(E),q=1<<O,ae=S[O];if(ae===-1){if((q&f)===0||(q&y)!==0){ae=r,pa(q);var Se=qt;S[O]=10<=Se?ae+250:6<=Se?ae+5e3:-1}}else ae<=r&&(p.expiredLanes|=q);E&=~q}if(f=ml(p,p===cr?Gn:0),r=qt,f===0)a!==null&&(a!==Bu&&Ou(a),p.callbackNode=null,p.callbackPriority=0);else{if(a!==null){if(p.callbackPriority===r)return;a!==Bu&&Ou(a)}r===15?(a=br.bind(null,p),Un===null?(Un=[a],Ll=Nu(jl,El)):Un.push(a),a=Bu):r===14?a=Ca(99,br.bind(null,p)):(a=Cg(r),a=Ca(a,Pm.bind(null,p))),p.callbackPriority=r,p.callbackNode=a}}function Pm(p){if(Sc=-1,js=Ms=0,(Ve&48)!==0)throw Error(t(327));var r=p.callbackNode;if(pi()&&p.callbackNode!==r)return null;var a=ml(p,p===cr?Gn:0);if(a===0)return null;var f=a,y=Ve;Ve|=16;var S=hp();(cr!==p||Gn!==f)&&(Da(),Aa(p,f));do try{Nm();break}catch(O){Fm(p,O)}while(!0);if(zu(),vc.current=S,Ve=y,Sn!==null?f=0:(cr=null,Gn=0,f=Rn),(Ea&Vi)!==0)Aa(p,0);else if(f!==0){if(f===2&&(Ve|=64,p.hydrate&&(p.hydrate=!1,Qs(p.containerInfo)),a=wh(p),a!==0&&(f=$l(p,a))),f===1)throw r=ko,Aa(p,0),ur(p,a),qn(p,Vn()),r;switch(p.finishedWork=p.current.alternate,p.finishedLanes=a,f){case 0:case 1:throw Error(t(345));case 2:Is(p);break;case 3:if(ur(p,a),(a&62914560)===a&&(f=zl+500-Vn(),10<f)){if(ml(p,0)!==0)break;if(y=p.suspendedLanes,(y&a)!==a){Ln(),p.pingedLanes|=p.suspendedLanes&y;break}p.timeoutHandle=Au(Is.bind(null,p),f);break}Is(p);break;case 4:if(ur(p,a),(a&4186112)===a)break;for(f=p.eventTimes,y=-1;0<a;){var E=31-es(a);S=1<<E,E=f[E],E>y&&(y=E),a&=~S}if(a=y,a=Vn()-a,a=(120>a?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*l_(a/1960))-a,10<a){p.timeoutHandle=Au(Is.bind(null,p),a);break}Is(p);break;case 5:Is(p);break;default:throw Error(t(329))}}return qn(p,Vn()),p.callbackNode===r?Pm.bind(null,p):null}function ur(p,r){for(r&=~di,r&=~Vi,p.suspendedLanes|=r,p.pingedLanes&=~r,p=p.expirationTimes;0<r;){var a=31-es(r),f=1<<a;p[a]=-1,r&=~f}}function br(p){if((Ve&48)!==0)throw Error(t(327));if(pi(),p===cr&&(p.expiredLanes&Gn)!==0){var r=Gn,a=$l(p,r);(Ea&Vi)!==0&&(r=ml(p,r),a=$l(p,r))}else r=ml(p,0),a=$l(p,r);if(p.tag!==0&&a===2&&(Ve|=64,p.hydrate&&(p.hydrate=!1,Qs(p.containerInfo)),r=wh(p),r!==0&&(a=$l(p,r))),a===1)throw a=ko,Aa(p,0),ur(p,r),qn(p,Vn()),a;return p.finishedWork=p.current.alternate,p.finishedLanes=r,Is(p),qn(p,Vn()),null}function d_(){if(ks!==null){var p=ks;ks=null,p.forEach(function(r){r.expiredLanes|=24&r.pendingLanes,qn(r,Vn())})}lt()}function Rm(p,r){var a=Ve;Ve|=1;try{return p(r)}finally{Ve=a,Ve===0&&(Da(),lt())}}function Br(p,r){var a=Ve;Ve&=-2,Ve|=8;try{return p(r)}finally{Ve=a,Ve===0&&(Da(),lt())}}function Cc(p,r){dn(xc,Ui),Ui|=r,Ea|=r}function pp(){Ui=xc.current,nn(xc)}function Aa(p,r){p.finishedWork=null,p.finishedLanes=0;var a=p.timeoutHandle;if(a!==-1&&(p.timeoutHandle=-1,zd(a)),Sn!==null)for(a=Sn.return;a!==null;){var f=a;switch(f.tag){case 1:f=f.type.childContextTypes,f!=null&&Gd();break;case 3:Ma(),nn(yr),nn(zn),ic();break;case 5:si(f);break;case 4:Ma();break;case 13:nn(cn);break;case 19:nn(cn);break;case 10:bo(f);break;case 23:case 24:pp()}a=a.return}cr=p,Sn=hi(p.current,null),Gn=Ui=Ea=r,Rn=0,ko=null,di=Vi=$n=0}function Fm(p,r){do{var a=Sn;try{if(zu(),Rl.current=Hl,Nl){for(var f=Dt.memoizedState;f!==null;){var y=f.queue;y!==null&&(y.pending=null),f=f.next}Nl=!1}if(Fl=0,Pn=An=Dt=null,Ol=!1,xr.current=null,a===null||a.return===null){Rn=1,ko=r,Sn=null;break}e:{var S=p,E=a.return,O=a,q=r;if(r=Gn,O.flags|=2048,O.firstEffect=O.lastEffect=null,q!==null&&typeof q=="object"&&typeof q.then=="function"){var ae=q;if((O.mode&2)===0){var Se=O.alternate;Se?(O.updateQueue=Se.updateQueue,O.memoizedState=Se.memoizedState,O.lanes=Se.lanes):(O.updateQueue=null,O.memoizedState=null)}var He=(cn.current&1)!==0,xe=E;do{var Pe;if(Pe=xe.tag===13){var tt=xe.memoizedState;if(tt!==null)Pe=tt.dehydrated!==null;else{var Xe=xe.memoizedProps;Pe=Xe.fallback===void 0?!1:Xe.unstable_avoidThisFallback!==!0?!0:!He}}if(Pe){var pe=xe.updateQueue;if(pe===null){var oe=new Set;oe.add(ae),xe.updateQueue=oe}else pe.add(ae);if((xe.mode&2)===0){if(xe.flags|=64,O.flags|=16384,O.flags&=-2981,O.tag===1)if(O.alternate===null)O.tag=17;else{var ue=bs(-1,1);ue.tag=2,ts(O,ue)}O.lanes|=1;break e}q=void 0,O=r;var ve=S.pingCache;if(ve===null?(ve=S.pingCache=new yc,q=new Set,ve.set(ae,q)):(q=ve.get(ae),q===void 0&&(q=new Set,ve.set(ae,q))),!q.has(O)){q.add(O);var be=Ki.bind(null,S,ae,O);ae.then(be,be)}xe.flags|=4096,xe.lanes=r;break e}xe=xe.return}while(xe!==null);q=Error((ht(O.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.

Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}Rn!==5&&(Rn=2),q=sp(q,O),xe=E;do{switch(xe.tag){case 3:S=q,xe.flags|=4096,r&=-r,xe.lanes|=r;var rt=Mm(xe,S,r);lm(xe,rt);break e;case 1:S=q;var We=xe.type,ot=xe.stateNode;if((xe.flags&64)===0&&(typeof We.getDerivedStateFromError=="function"||ot!==null&&typeof ot.componentDidCatch=="function"&&(ls===null||!ls.has(ot)))){xe.flags|=4096,r&=-r,xe.lanes|=r;var mt=Yr(xe,S,r);lm(xe,mt);break e}}xe=xe.return}while(xe!==null)}Om(a)}catch(ct){r=ct,Sn===a&&a!==null&&(Sn=a=a.return);continue}break}while(!0)}function hp(){var p=vc.current;return vc.current=Hl,p===null?Hl:p}function $l(p,r){var a=Ve;Ve|=16;var f=hp();cr===p&&Gn===r||Aa(p,r);do try{mp();break}catch(y){Fm(p,y)}while(!0);if(zu(),Ve=a,vc.current=f,Sn!==null)throw Error(t(261));return cr=null,Gn=0,Rn}function mp(){for(;Sn!==null;)fp(Sn)}function Nm(){for(;Sn!==null&&!Xg();)fp(Sn)}function fp(p){var r=Ts(p.alternate,p,Ui);p.memoizedProps=p.pendingProps,r===null?Om(p):Sn=r,xr.current=null}function Om(p){var r=p;do{var a=r.alternate;if(p=r.return,(r.flags&2048)===0){if(a=km(a,r,Ui),a!==null){Sn=a;return}if(a=r,a.tag!==24&&a.tag!==23||a.memoizedState===null||(Ui&1073741824)!==0||(a.mode&4)===0){for(var f=0,y=a.child;y!==null;)f|=y.lanes|y.childLanes,y=y.sibling;a.childLanes=f}p!==null&&(p.flags&2048)===0&&(p.firstEffect===null&&(p.firstEffect=r.firstEffect),r.lastEffect!==null&&(p.lastEffect!==null&&(p.lastEffect.nextEffect=r.firstEffect),p.lastEffect=r.lastEffect),1<r.flags&&(p.lastEffect!==null?p.lastEffect.nextEffect=r:p.firstEffect=r,p.lastEffect=r))}else{if(a=Co(r),a!==null){a.flags&=2047,Sn=a;return}p!==null&&(p.firstEffect=p.lastEffect=null,p.flags|=2048)}if(r=r.sibling,r!==null){Sn=r;return}Sn=r=p}while(r!==null);Rn===0&&(Rn=5)}function Is(p){var r=Ce();return Ri(99,Ym.bind(null,p,r)),null}function Ym(p,r){do pi();while(Ul!==null);if((Ve&48)!==0)throw Error(t(327));var a=p.finishedWork;if(a===null)return null;if(p.finishedWork=null,p.finishedLanes=0,a===p.current)throw Error(t(177));p.callbackNode=null;var f=a.lanes|a.childLanes,y=f,S=p.pendingLanes&~y;p.pendingLanes=y,p.suspendedLanes=0,p.pingedLanes=0,p.expiredLanes&=y,p.mutableReadLanes&=y,p.entangledLanes&=y,y=p.entanglements;for(var E=p.eventTimes,O=p.expirationTimes;0<S;){var q=31-es(S),ae=1<<q;y[q]=0,E[q]=-1,O[q]=-1,S&=~ae}if(ks!==null&&(f&24)===0&&ks.has(p)&&ks.delete(p),p===cr&&(Sn=cr=null,Gn=0),1<a.flags?a.lastEffect!==null?(a.lastEffect.nextEffect=a,f=a.firstEffect):f=a:f=a.firstEffect,f!==null){if(y=Ve,Ve|=32,xr.current=null,Du=Td,E=ku(),Mu(E)){if("selectionStart"in E)O={start:E.selectionStart,end:E.selectionEnd};else e:if(O=(O=E.ownerDocument)&&O.defaultView||window,(ae=O.getSelection&&O.getSelection())&&ae.rangeCount!==0){O=ae.anchorNode,S=ae.anchorOffset,q=ae.focusNode,ae=ae.focusOffset;try{O.nodeType,q.nodeType}catch{O=null;break e}var Se=0,He=-1,xe=-1,Pe=0,tt=0,Xe=E,pe=null;t:for(;;){for(var oe;Xe!==O||S!==0&&Xe.nodeType!==3||(He=Se+S),Xe!==q||ae!==0&&Xe.nodeType!==3||(xe=Se+ae),Xe.nodeType===3&&(Se+=Xe.nodeValue.length),(oe=Xe.firstChild)!==null;)pe=Xe,Xe=oe;for(;;){if(Xe===E)break t;if(pe===O&&++Pe===S&&(He=Se),pe===q&&++tt===ae&&(xe=Se),(oe=Xe.nextSibling)!==null)break;Xe=pe,pe=Xe.parentNode}Xe=oe}O=He===-1||xe===-1?null:{start:He,end:xe}}else O=null;O=O||{start:0,end:0}}else O=null;Iu={focusedElem:E,selectionRange:O},Td=!1,Ta=null,Mo=!1,Re=f;do try{c_()}catch(ct){if(Re===null)throw Error(t(330));pr(Re,ct),Re=Re.nextEffect}while(Re!==null);Ta=null,Re=f;do try{for(E=p;Re!==null;){var ue=Re.flags;if(ue&16&&sr(Re.stateNode,""),ue&128){var ve=Re.alternate;if(ve!==null){var be=ve.ref;be!==null&&(typeof be=="function"?be(null):be.current=null)}}switch(ue&1038){case 2:Im(Re),Re.flags&=-3;break;case 6:Im(Re),Re.flags&=-3,cp(Re.alternate,Re);break;case 1024:Re.flags&=-1025;break;case 1028:Re.flags&=-1025,cp(Re.alternate,Re);break;case 4:cp(Re.alternate,Re);break;case 8:O=Re,Tm(E,O);var rt=O.alternate;Em(O),rt!==null&&Em(rt)}Re=Re.nextEffect}}catch(ct){if(Re===null)throw Error(t(330));pr(Re,ct),Re=Re.nextEffect}while(Re!==null);if(be=Iu,ve=ku(),ue=be.focusedElem,E=be.selectionRange,ve!==ue&&ue&&ue.ownerDocument&&Cu(ue.ownerDocument.documentElement,ue)){for(E!==null&&Mu(ue)&&(ve=E.start,be=E.end,be===void 0&&(be=ve),"selectionStart"in ue?(ue.selectionStart=ve,ue.selectionEnd=Math.min(be,ue.value.length)):(be=(ve=ue.ownerDocument||document)&&ve.defaultView||window,be.getSelection&&(be=be.getSelection(),O=ue.textContent.length,rt=Math.min(E.start,O),E=E.end===void 0?rt:Math.min(E.end,O),!be.extend&&rt>E&&(O=E,E=rt,rt=O),O=Oh(ue,rt),S=Oh(ue,E),O&&S&&(be.rangeCount!==1||be.anchorNode!==O.node||be.anchorOffset!==O.offset||be.focusNode!==S.node||be.focusOffset!==S.offset)&&(ve=ve.createRange(),ve.setStart(O.node,O.offset),be.removeAllRanges(),rt>E?(be.addRange(ve),be.extend(S.node,S.offset)):(ve.setEnd(S.node,S.offset),be.addRange(ve)))))),ve=[],be=ue;be=be.parentNode;)be.nodeType===1&&ve.push({element:be,left:be.scrollLeft,top:be.scrollTop});for(typeof ue.focus=="function"&&ue.focus(),ue=0;ue<ve.length;ue++)be=ve[ue],be.element.scrollLeft=be.left,be.element.scrollTop=be.top}Td=!!Du,Iu=Du=null,p.current=a,Re=f;do try{for(ue=p;Re!==null;){var We=Re.flags;if(We&36&&Lm(ue,Re.alternate,Re),We&128){ve=void 0;var ot=Re.ref;if(ot!==null){var mt=Re.stateNode;switch(Re.tag){case 5:ve=mt;break;default:ve=mt}typeof ot=="function"?ot(ve):ot.current=ve}}Re=Re.nextEffect}}catch(ct){if(Re===null)throw Error(t(330));pr(Re,ct),Re=Re.nextEffect}while(Re!==null);Re=null,e_(),Ve=y}else p.current=a;if(ci)ci=!1,Ul=p,Ia=r;else for(Re=f;Re!==null;)r=Re.nextEffect,Re.nextEffect=null,Re.flags&8&&(We=Re,We.sibling=null,We.stateNode=null),Re=r;if(f=p.pendingLanes,f===0&&(ls=null),f===1?p===ui?Gl++:(Gl=0,ui=p):Gl=0,a=a.stateNode,xs&&typeof xs.onCommitFiberRoot=="function")try{xs.onCommitFiberRoot(Fu,a,void 0,(a.current.flags&64)===64)}catch{}if(qn(p,Vn()),bc)throw bc=!1,p=Kn,Kn=null,p;return(Ve&8)!==0||lt(),null}function c_(){for(;Re!==null;){var p=Re.alternate;Mo||Ta===null||((Re.flags&8)!==0?ji(Re,Ta)&&(Mo=!0):Re.tag===13&&a_(p,Re)&&ji(Re,Ta)&&(Mo=!0));var r=Re.flags;(r&256)!==0&&i_(p,Re),(r&512)===0||ci||(ci=!0,Ca(97,function(){return pi(),null})),Re=Re.nextEffect}}function pi(){if(Ia!==90){var p=97<Ia?97:Ia;return Ia=90,Ri(p,gp)}return!1}function Wm(p,r){Vl.push(r,p),ci||(ci=!0,Ca(97,function(){return pi(),null}))}function Bm(p,r){Gi.push(r,p),ci||(ci=!0,Ca(97,function(){return pi(),null}))}function gp(){if(Ul===null)return!1;var p=Ul;if(Ul=null,(Ve&48)!==0)throw Error(t(331));var r=Ve;Ve|=32;var a=Gi;Gi=[];for(var f=0;f<a.length;f+=2){var y=a[f],S=a[f+1],E=y.destroy;if(y.destroy=void 0,typeof E=="function")try{E()}catch(q){if(S===null)throw Error(t(330));pr(S,q)}}for(a=Vl,Vl=[],f=0;f<a.length;f+=2){y=a[f],S=a[f+1];try{var O=y.create;y.destroy=O()}catch(q){if(S===null)throw Error(t(330));pr(S,q)}}for(O=p.current.firstEffect;O!==null;)p=O.nextEffect,O.nextEffect=null,O.flags&8&&(O.sibling=null,O.stateNode=null),O=p;return Ve=r,lt(),!0}function $i(p,r,a){r=sp(a,r),r=Mm(p,r,1),ts(p,r),r=Ln(),p=Ds(p,1),p!==null&&(Id(p,1,r),qn(p,r))}function pr(p,r){if(p.tag===3)$i(p,p,r);else for(var a=p.return;a!==null;){if(a.tag===3){$i(a,p,r);break}else if(a.tag===1){var f=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof f.componentDidCatch=="function"&&(ls===null||!ls.has(f))){p=sp(r,p);var y=Yr(a,p,1);if(ts(a,y),y=Ln(),a=Ds(a,1),a!==null)Id(a,1,y),qn(a,y);else if(typeof f.componentDidCatch=="function"&&(ls===null||!ls.has(f)))try{f.componentDidCatch(r,p)}catch{}break}}a=a.return}}function Ki(p,r,a){var f=p.pingCache;f!==null&&f.delete(r),r=Ln(),p.pingedLanes|=p.suspendedLanes&a,cr===p&&(Gn&a)===a&&(Rn===4||Rn===3&&(Gn&62914560)===Gn&&500>Vn()-zl?Aa(p,0):di|=a),qn(p,r)}function u_(p,r){var a=p.stateNode;a!==null&&a.delete(r),r=0,r===0&&(r=p.mode,(r&2)===0?r=1:(r&4)===0?r=Ce()===99?1:2:(Ms===0&&(Ms=Ea),r=ha(62914560&~Ms),r===0&&(r=4194304))),a=Ln(),p=Ds(p,r),p!==null&&(Id(p,r,a),qn(p,a))}var Ts;Ts=function(p,r,a){var f=r.lanes;if(p!==null)if(p.memoizedProps!==r.pendingProps||yr.current)Nr=!0;else if((a&f)!==0)Nr=(p.flags&16384)!==0;else{switch(Nr=!1,r.tag){case 3:ep(r),$u();break;case 5:os(r);break;case 1:wr(r.type)&&Kd(r);break;case 4:Gu(r,r.stateNode.containerInfo);break;case 10:f=r.memoizedProps.value;var y=r.type._context;dn(Jd,y._currentValue),y._currentValue=f;break;case 13:if(r.memoizedState!==null)return(a&r.child.childLanes)!==0?hc(p,r,a):(dn(cn,cn.current&1),r=Cs(p,r,a),r!==null?r.sibling:null);dn(cn,cn.current&1);break;case 19:if(f=(a&r.childLanes)!==0,(p.flags&64)!==0){if(f)return rp(p,r,a);r.flags|=64}if(y=r.memoizedState,y!==null&&(y.rendering=null,y.tail=null,y.lastEffect=null),dn(cn,cn.current),f)break;return null;case 23:case 24:return r.lanes=0,So(p,r,a)}return Cs(p,r,a)}else Nr=!1;switch(r.lanes=0,r.tag){case 2:if(f=r.type,p!==null&&(p.alternate=null,r.alternate=null,r.flags|=2),p=r.pendingProps,y=Sa(r,zn.current),Fi(r,a),y=qu(null,r,f,p,y,a),r.flags|=1,typeof y=="object"&&y!==null&&typeof y.render=="function"&&y.$$typeof===void 0){if(r.tag=1,r.memoizedState=null,r.updateQueue=null,wr(f)){var S=!0;Kd(r)}else S=!1;r.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,Qd(r);var E=f.getDerivedStateFromProps;typeof E=="function"&&ec(r,f,E,p),y.updater=tc,r.stateNode=y,y._reactInternals=r,Vu(r,f,p,a),r=Qu(null,r,f,!0,S,a)}else r.tag=0,dr(null,r,y,a),r=r.child;return r;case 16:y=r.elementType;e:{switch(p!==null&&(p.alternate=null,r.alternate=null,r.flags|=2),p=r.pendingProps,S=y._init,y=S(y._payload),r.type=y,S=r.tag=p_(y),p=Pr(y,p),S){case 0:r=uc(null,r,y,p,a);break e;case 1:r=Xu(null,r,y,p,a);break e;case 11:r=Hi(null,r,y,p,a);break e;case 14:r=Or(null,r,y,Pr(y.type,p),f,a);break e}throw Error(t(306,y,""))}return r;case 0:return f=r.type,y=r.pendingProps,y=r.elementType===f?y:Pr(f,y),uc(p,r,f,y,a);case 1:return f=r.type,y=r.pendingProps,y=r.elementType===f?y:Pr(f,y),Xu(p,r,f,y,a);case 3:if(ep(r),f=r.updateQueue,p===null||f===null)throw Error(t(282));if(f=r.pendingProps,y=r.memoizedState,y=y!==null?y.element:null,am(p,r),Rr(r,f,null,a),f=r.memoizedState.element,f===y)$u(),r=Cs(p,r,a);else{if(y=r.stateNode,(S=y.hydrate)&&(ii=vs(r.stateNode.containerInfo.firstChild),Ss=r,S=ss=!0),S){if(p=y.mutableSourceEagerHydrationData,p!=null)for(y=0;y<p.length;y+=2)S=p[y],S._workInProgressVersionPrimary=p[y+1],Tn.push(S);for(a=mm(r,null,f,a),r.child=a;a;)a.flags=a.flags&-3|1024,a=a.sibling}else dr(p,r,f,a),$u();r=r.child}return r;case 5:return os(r),p===null&&ja(r),f=r.type,y=r.pendingProps,S=p!==null?p.memoizedProps:null,E=y.children,Hd(f,y)?E=null:S!==null&&Hd(f,S)&&(r.flags|=16),as(p,r),dr(p,r,E,a),r.child;case 6:return p===null&&ja(r),null;case 13:return hc(p,r,a);case 4:return Gu(r,r.stateNode.containerInfo),f=r.pendingProps,p===null?r.child=ns(r,null,f,a):dr(p,r,f,a),r.child;case 11:return f=r.type,y=r.pendingProps,y=r.elementType===f?y:Pr(f,y),Hi(p,r,f,y,a);case 7:return dr(p,r,r.pendingProps,a),r.child;case 8:return dr(p,r,r.pendingProps.children,a),r.child;case 12:return dr(p,r,r.pendingProps.children,a),r.child;case 10:e:{f=r.type._context,y=r.pendingProps,E=r.memoizedProps,S=y.value;var O=r.type._context;if(dn(Jd,O._currentValue),O._currentValue=S,E!==null)if(O=E.value,S=oo(O,S)?0:(typeof f._calculateChangedBits=="function"?f._calculateChangedBits(O,S):1073741823)|0,S===0){if(E.children===y.children&&!yr.current){r=Cs(p,r,a);break e}}else for(O=r.child,O!==null&&(O.return=r);O!==null;){var q=O.dependencies;if(q!==null){E=O.child;for(var ae=q.firstContext;ae!==null;){if(ae.context===f&&(ae.observedBits&S)!==0){O.tag===1&&(ae=bs(-1,a&-a),ae.tag=2,ts(O,ae)),O.lanes|=a,ae=O.alternate,ae!==null&&(ae.lanes|=a),im(O.return,a),q.lanes|=a;break}ae=ae.next}}else E=O.tag===10&&O.type===r.type?null:O.child;if(E!==null)E.return=O;else for(E=O;E!==null;){if(E===r){E=null;break}if(O=E.sibling,O!==null){O.return=E.return,E=O;break}E=E.return}O=E}dr(p,r,y.children,a),r=r.child}return r;case 9:return y=r.type,S=r.pendingProps,f=S.children,Fi(r,a),y=so(y,S.unstable_observedBits),f=f(y),r.flags|=1,dr(p,r,f,a),r.child;case 14:return y=r.type,S=Pr(y,r.pendingProps),S=Pr(y.type,S),Or(p,r,y,S,f,a);case 15:return is(p,r,r.type,r.pendingProps,f,a);case 17:return f=r.type,y=r.pendingProps,y=r.elementType===f?y:Pr(f,y),p!==null&&(p.alternate=null,r.alternate=null,r.flags|=2),r.tag=1,wr(f)?(p=!0,Kd(r)):p=!1,Fi(r,a),um(r,f,y),Vu(r,f,y,a),Qu(null,r,f,!0,p,a);case 19:return rp(p,r,a);case 23:return So(p,r,a);case 24:return So(p,r,a)}throw Error(t(156,r.tag))};function _p(p,r,a,f){this.tag=p,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=f,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Hr(p,r,a,f){return new _p(p,r,a,f)}function Kl(p){return p=p.prototype,!(!p||!p.isReactComponent)}function p_(p){if(typeof p=="function")return Kl(p)?1:0;if(p!=null){if(p=p.$$typeof,p===Q)return 11;if(p===X)return 14}return 2}function hi(p,r){var a=p.alternate;return a===null?(a=Hr(p.tag,r,p.key,p.mode),a.elementType=p.elementType,a.type=p.type,a.stateNode=p.stateNode,a.alternate=p,p.alternate=a):(a.pendingProps=r,a.type=p.type,a.flags=0,a.nextEffect=null,a.firstEffect=null,a.lastEffect=null),a.childLanes=p.childLanes,a.lanes=p.lanes,a.child=p.child,a.memoizedProps=p.memoizedProps,a.memoizedState=p.memoizedState,a.updateQueue=p.updateQueue,r=p.dependencies,a.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},a.sibling=p.sibling,a.index=p.index,a.ref=p.ref,a}function As(p,r,a,f,y,S){var E=2;if(f=p,typeof p=="function")Kl(p)&&(E=1);else if(typeof p=="string")E=5;else e:switch(p){case R:return Fn(a.children,y,S,r);case V:E=8,y|=16;break;case H:E=8,y|=1;break;case W:return p=Hr(12,a,r,y|8),p.elementType=W,p.type=W,p.lanes=S,p;case B:return p=Hr(13,a,r,y),p.type=B,p.elementType=B,p.lanes=S,p;case P:return p=Hr(19,a,r,y),p.elementType=P,p.lanes=S,p;case z:return Sr(a,y,S,r);case J:return p=Hr(24,a,r,y),p.elementType=J,p.lanes=S,p;default:if(typeof p=="object"&&p!==null)switch(p.$$typeof){case K:E=10;break e;case Z:E=9;break e;case Q:E=11;break e;case X:E=14;break e;case $:E=16,f=null;break e;case ie:E=22;break e}throw Error(t(130,p==null?p:typeof p,""))}return r=Hr(E,a,r,y),r.elementType=p,r.type=f,r.lanes=S,r}function Fn(p,r,a,f){return p=Hr(7,p,f,r),p.lanes=a,p}function Sr(p,r,a,f){return p=Hr(23,p,f,r),p.elementType=z,p.lanes=a,p}function hr(p,r,a){return p=Hr(6,p,null,r),p.lanes=a,p}function mr(p,r,a){return r=Hr(4,p.children!==null?p.children:[],p.key,r),r.lanes=a,r.stateNode={containerInfo:p.containerInfo,pendingChildren:null,implementation:p.implementation},r}function h_(p,r,a){this.tag=r,this.containerInfo=p,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=a,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=du(0),this.expirationTimes=du(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=du(0),this.mutableSourceEagerHydrationData=null}function m_(p,r,a){var f=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:I,key:f==null?null:""+f,children:p,containerInfo:r,implementation:a}}function Pa(p,r,a,f){var y=r.current,S=Ln(),E=Ls(y);e:if(a){a=a._reactInternals;t:{if(no(a)!==a||a.tag!==1)throw Error(t(170));var O=a;do{switch(O.tag){case 3:O=O.stateNode.context;break t;case 1:if(wr(O.type)){O=O.stateNode.__reactInternalMemoizedMergedChildContext;break t}}O=O.return}while(O!==null);throw Error(t(171))}if(a.tag===1){var q=a.type;if(wr(q)){a=$d(a,q,O);break e}}a=O}else a=ri;return r.context===null?r.context=a:r.pendingContext=a,r=bs(S,E),r.payload={element:p},f=f===void 0?null:f,f!==null&&(r.callback=f),ts(y,r),Es(y,E,S),E}function ql(p){if(p=p.current,!p.child)return null;switch(p.child.tag){case 5:return p.child.stateNode;default:return p.child.stateNode}}function kc(p,r){if(p=p.memoizedState,p!==null&&p.dehydrated!==null){var a=p.retryLane;p.retryLane=a!==0&&a<r?a:r}}function yp(p,r){kc(p,r),(p=p.alternate)&&kc(p,r)}function f_(){return null}function mi(p,r,a){var f=a!=null&&a.hydrationOptions!=null&&a.hydrationOptions.mutableSources||null;if(a=new h_(p,r,a!=null&&a.hydrate===!0),r=Hr(3,null,null,r===2?7:r===1?3:0),a.current=r,r.stateNode=a,Qd(r),p[va]=a.current,Uh(p.nodeType===8?p.parentNode:p),f)for(p=0;p<f.length;p++){r=f[p];var y=r._getVersion;y=y(r._source),a.mutableSourceEagerHydrationData==null?a.mutableSourceEagerHydrationData=[r,y]:a.mutableSourceEagerHydrationData.push(r,y)}this._internalRoot=a}mi.prototype.render=function(p){Pa(p,this._internalRoot,null,null)},mi.prototype.unmount=function(){var p=this._internalRoot,r=p.containerInfo;Pa(null,p,null,function(){r[va]=null})};function Jl(p){return!(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11&&(p.nodeType!==8||p.nodeValue!==" react-mount-point-unstable "))}function wp(p,r){if(r||(r=p?p.nodeType===9?p.documentElement:p.firstChild:null,r=!(!r||r.nodeType!==1||!r.hasAttribute("data-reactroot"))),!r)for(var a;a=p.lastChild;)p.removeChild(a);return new mi(p,0,r?{hydrate:!0}:void 0)}function fr(p,r,a,f,y){var S=a._reactRootContainer;if(S){var E=S._internalRoot;if(typeof y=="function"){var O=y;y=function(){var ae=ql(E);O.call(ae)}}Pa(r,E,p,y)}else{if(S=a._reactRootContainer=wp(a,f),E=S._internalRoot,typeof y=="function"){var q=y;y=function(){var ae=ql(E);q.call(ae)}}Br(function(){Pa(r,E,p,y)})}return ql(E)}la=function(p){if(p.tag===13){var r=Ln();Es(p,4,r),yp(p,4)}},da=function(p){if(p.tag===13){var r=Ln();Es(p,67108864,r),yp(p,67108864)}},ll=function(p){if(p.tag===13){var r=Ln(),a=Ls(p);Es(p,a,r),yp(p,a)}},dl=function(p,r){return r()},Ie=function(p,r,a){switch(r){case"input":if(an(p,a),r=a.name,a.type==="radio"&&r!=null){for(a=p;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll("input[name="+JSON.stringify(""+r)+'][type="radio"]'),r=0;r<a.length;r++){var f=a[r];if(f!==p&&f.form===p.form){var y=Vd(f);if(!y)throw Error(t(90));At(f),an(f,y)}}}break;case"textarea":$o(p,a);break;case"select":r=a.value,r!=null&&Ft(p,!!a.multiple,r,!1)}},Ks=Rm,_t=function(p,r,a,f,y){var S=Ve;Ve|=4;try{return Ri(98,p.bind(null,r,a,f,y))}finally{Ve=S,Ve===0&&(Da(),lt())}},yo=function(){(Ve&49)===0&&(d_(),pi())},Cd=function(p,r){var a=Ve;Ve|=2;try{return p(r)}finally{Ve=a,Ve===0&&(Da(),lt())}};function Hm(p,r){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Jl(r))throw Error(t(200));return m_(p,r,null,a)}var qi={Events:[Ml,xa,Vd,pn,Qe,pi,{current:!1}]},Zl={findFiberByHostInstance:Ai,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},Ra={bundleType:Zl.bundleType,version:Zl.version,rendererPackageName:Zl.rendererPackageName,rendererConfig:Zl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Y.ReactCurrentDispatcher,findHostInstanceByFiber:function(p){return p=Qt(p),p===null?null:p.stateNode},findFiberByHostInstance:Zl.findFiberByHostInstance||f_,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Xl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Xl.isDisabled&&Xl.supportsFiber)try{Fu=Xl.inject(Ra),xs=Xl}catch{}}return jo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=qi,jo.createPortal=Hm,jo.findDOMNode=function(p){if(p==null)return null;if(p.nodeType===1)return p;var r=p._reactInternals;if(r===void 0)throw typeof p.render=="function"?Error(t(188)):Error(t(268,Object.keys(p)));return p=Qt(r),p=p===null?null:p.stateNode,p},jo.flushSync=function(p,r){var a=Ve;if((a&48)!==0)return p(r);Ve|=1;try{if(p)return Ri(99,p.bind(null,r))}finally{Ve=a,lt()}},jo.hydrate=function(p,r,a){if(!Jl(r))throw Error(t(200));return fr(null,p,r,!0,a)},jo.render=function(p,r,a){if(!Jl(r))throw Error(t(200));return fr(null,p,r,!1,a)},jo.unmountComponentAtNode=function(p){if(!Jl(p))throw Error(t(40));return p._reactRootContainer?(Br(function(){fr(null,null,p,!1,function(){p._reactRootContainer=null,p[va]=null})}),!0):!1},jo.unstable_batchedUpdates=Rm,jo.unstable_createPortal=function(p,r){return Hm(p,r,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)},jo.unstable_renderSubtreeIntoContainer=function(p,r,a,f){if(!Jl(a))throw Error(t(200));if(p==null||p._reactInternals===void 0)throw Error(t(38));return fr(p,r,a,!1,f)},jo.version="17.0.2",jo}var _w;function vS(){if(_w)return w_.exports;_w=1;function o(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(o)}catch(s){console.error(s)}}return o(),w_.exports=wS(),w_.exports}var xS=vS(),M=Iy();const D=zx(M),Ux=hS({__proto__:null,default:D},[M]);/**
 * @remix-run/router v1.10.0
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function Of(){return Of=Object.assign?Object.assign.bind():function(o){for(var s=1;s<arguments.length;s++){var n=arguments[s];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(o[t]=n[t])}return o},Of.apply(this,arguments)}var id;(function(o){o.Pop="POP",o.Push="PUSH",o.Replace="REPLACE"})(id||(id={}));const yw="popstate";function bS(o){o===void 0&&(o={});function s(i,d){let{pathname:c="/",search:u="",hash:h=""}=Zf(i.location.hash.substr(1));return!c.startsWith("/")&&!c.startsWith(".")&&(c="/"+c),ry("",{pathname:c,search:u,hash:h},d.state&&d.state.usr||null,d.state&&d.state.key||"default")}function n(i,d){let c=i.document.querySelector("base"),u="";if(c&&c.getAttribute("href")){let h=i.location.href,g=h.indexOf("#");u=g===-1?h:h.slice(0,g)}return u+"#"+(typeof d=="string"?d:Vx(d))}function t(i,d){Jf(i.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(d)+")")}return CS(s,n,t,o)}function bi(o,s){if(o===!1||o===null||typeof o>"u")throw new Error(s)}function Jf(o,s){if(!o){typeof console<"u"&&console.warn(s);try{throw new Error(s)}catch{}}}function SS(){return Math.random().toString(36).substr(2,8)}function ww(o,s){return{usr:o.state,key:o.key,idx:s}}function ry(o,s,n,t){return n===void 0&&(n=null),Of({pathname:typeof o=="string"?o:o.pathname,search:"",hash:""},typeof s=="string"?Zf(s):s,{state:n,key:s&&s.key||t||SS()})}function Vx(o){let{pathname:s="/",search:n="",hash:t=""}=o;return n&&n!=="?"&&(s+=n.charAt(0)==="?"?n:"?"+n),t&&t!=="#"&&(s+=t.charAt(0)==="#"?t:"#"+t),s}function Zf(o){let s={};if(o){let n=o.indexOf("#");n>=0&&(s.hash=o.substr(n),o=o.substr(0,n));let t=o.indexOf("?");t>=0&&(s.search=o.substr(t),o=o.substr(0,t)),o&&(s.pathname=o)}return s}function CS(o,s,n,t){t===void 0&&(t={});let{window:i=document.defaultView,v5Compat:d=!1}=t,c=i.history,u=id.Pop,h=null,g=w();g==null&&(g=0,c.replaceState(Of({},c.state,{idx:g}),""));function w(){return(c.state||{idx:null}).idx}function m(){u=id.Pop;let C=w(),k=C==null?null:C-g;g=C,h&&h({action:u,location:b.location,delta:k})}function x(C,k){u=id.Push;let L=ry(b.location,C,k);n&&n(L,C),g=w()+1;let T=ww(L,g),N=b.createHref(L);try{c.pushState(T,"",N)}catch(Y){if(Y instanceof DOMException&&Y.name==="DataCloneError")throw Y;i.location.assign(N)}d&&h&&h({action:u,location:b.location,delta:1})}function _(C,k){u=id.Replace;let L=ry(b.location,C,k);n&&n(L,C),g=w();let T=ww(L,g),N=b.createHref(L);c.replaceState(T,"",N),d&&h&&h({action:u,location:b.location,delta:0})}function v(C){let k=i.location.origin!=="null"?i.location.origin:i.location.href,L=typeof C=="string"?C:Vx(C);return bi(k,"No window.location.(origin|href) available to create URL for href: "+L),new URL(L,k)}let b={get action(){return u},get location(){return o(i,c)},listen(C){if(h)throw new Error("A history only accepts one active listener");return i.addEventListener(yw,m),h=C,()=>{i.removeEventListener(yw,m),h=null}},createHref(C){return s(i,C)},createURL:v,encodeLocation(C){let k=v(C);return{pathname:k.pathname,search:k.search,hash:k.hash}},push:x,replace:_,go(C){return c.go(C)}};return b}var vw;(function(o){o.data="data",o.deferred="deferred",o.redirect="redirect",o.error="error"})(vw||(vw={}));function kS(o,s,n){n===void 0&&(n="/");let t=typeof s=="string"?Zf(s):s,i=Kx(t.pathname||"/",n);if(i==null)return null;let d=Gx(o);MS(d);let c=null;for(let u=0;c==null&&u<d.length;++u)c=RS(d[u],OS(i));return c}function Gx(o,s,n,t){s===void 0&&(s=[]),n===void 0&&(n=[]),t===void 0&&(t="");let i=(d,c,u)=>{let h={relativePath:u===void 0?d.path||"":u,caseSensitive:d.caseSensitive===!0,childrenIndex:c,route:d};h.relativePath.startsWith("/")&&(bi(h.relativePath.startsWith(t),'Absolute route path "'+h.relativePath+'" nested under path '+('"'+t+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),h.relativePath=h.relativePath.slice(t.length));let g=Yc([t,h.relativePath]),w=n.concat(h);d.children&&d.children.length>0&&(bi(d.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+g+'".')),Gx(d.children,s,w,g)),!(d.path==null&&!d.index)&&s.push({path:g,score:AS(g,d.index),routesMeta:w})};return o.forEach((d,c)=>{var u;if(d.path===""||!((u=d.path)!=null&&u.includes("?")))i(d,c);else for(let h of $x(d.path))i(d,c,h)}),s}function $x(o){let s=o.split("/");if(s.length===0)return[];let[n,...t]=s,i=n.endsWith("?"),d=n.replace(/\?$/,"");if(t.length===0)return i?[d,""]:[d];let c=$x(t.join("/")),u=[];return u.push(...c.map(h=>h===""?d:[d,h].join("/"))),i&&u.push(...c),u.map(h=>o.startsWith("/")&&h===""?"/":h)}function MS(o){o.sort((s,n)=>s.score!==n.score?n.score-s.score:PS(s.routesMeta.map(t=>t.childrenIndex),n.routesMeta.map(t=>t.childrenIndex)))}const jS=/^:\w+$/,LS=3,ES=2,DS=1,IS=10,TS=-2,xw=o=>o==="*";function AS(o,s){let n=o.split("/"),t=n.length;return n.some(xw)&&(t+=TS),s&&(t+=ES),n.filter(i=>!xw(i)).reduce((i,d)=>i+(jS.test(d)?LS:d===""?DS:IS),t)}function PS(o,s){return o.length===s.length&&o.slice(0,-1).every((t,i)=>t===s[i])?o[o.length-1]-s[s.length-1]:0}function RS(o,s){let{routesMeta:n}=o,t={},i="/",d=[];for(let c=0;c<n.length;++c){let u=n[c],h=c===n.length-1,g=i==="/"?s:s.slice(i.length)||"/",w=FS({path:u.relativePath,caseSensitive:u.caseSensitive,end:h},g);if(!w)return null;Object.assign(t,w.params);let m=u.route;d.push({params:t,pathname:Yc([i,w.pathname]),pathnameBase:WS(Yc([i,w.pathnameBase])),route:m}),w.pathnameBase!=="/"&&(i=Yc([i,w.pathnameBase]))}return d}function FS(o,s){typeof o=="string"&&(o={path:o,caseSensitive:!1,end:!0});let[n,t]=NS(o.path,o.caseSensitive,o.end),i=s.match(n);if(!i)return null;let d=i[0],c=d.replace(/(.)\/+$/,"$1"),u=i.slice(1);return{params:t.reduce((g,w,m)=>{if(w==="*"){let x=u[m]||"";c=d.slice(0,d.length-x.length).replace(/(.)\/+$/,"$1")}return g[w]=YS(u[m]||"",w),g},{}),pathname:d,pathnameBase:c,pattern:o}}function NS(o,s,n){s===void 0&&(s=!1),n===void 0&&(n=!0),Jf(o==="*"||!o.endsWith("*")||o.endsWith("/*"),'Route path "'+o+'" will be treated as if it were '+('"'+o.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+o.replace(/\*$/,"/*")+'".'));let t=[],i="^"+o.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(c,u)=>(t.push(u),"/([^\\/]+)"));return o.endsWith("*")?(t.push("*"),i+=o==="*"||o==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":o!==""&&o!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,s?void 0:"i"),t]}function OS(o){try{return decodeURI(o)}catch(s){return Jf(!1,'The URL path "'+o+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+s+").")),o}}function YS(o,s){try{return decodeURIComponent(o)}catch(n){return Jf(!1,'The value for the URL param "'+s+'" will not be decoded because'+(' the string "'+o+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),o}}function Kx(o,s){if(s==="/")return o;if(!o.toLowerCase().startsWith(s.toLowerCase()))return null;let n=s.endsWith("/")?s.length-1:s.length,t=o.charAt(n);return t&&t!=="/"?null:o.slice(n)||"/"}const Yc=o=>o.join("/").replace(/\/\/+/g,"/"),WS=o=>o.replace(/\/+$/,"").replace(/^\/*/,"/");function BS(o){return o!=null&&typeof o.status=="number"&&typeof o.statusText=="string"&&typeof o.internal=="boolean"&&"data"in o}const qx=["post","put","patch","delete"];new Set(qx);const HS=["get",...qx];new Set(HS);/**
 * React Router v6.17.0
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */const zS=M.createContext(null),US=M.createContext(null),Jx=M.createContext(null),Ty=M.createContext(null),th=M.createContext({outlet:null,matches:[],isDataRoute:!1}),Zx=M.createContext(null);function Ay(){return M.useContext(Ty)!=null}function Xx(){return Ay()||bi(!1),M.useContext(Ty).location}const VS=M.createContext(null);function GS(o){let s=M.useContext(th).outlet;return s&&M.createElement(VS.Provider,{value:o},s)}function $S(o,s){return KS(o)}function KS(o,s,n){Ay()||bi(!1);let{navigator:t}=M.useContext(Jx),{matches:i}=M.useContext(th),d=i[i.length-1],c=d?d.params:{};d&&d.pathname;let u=d?d.pathnameBase:"/";d&&d.route;let h=Xx(),g;g=h;let w=g.pathname||"/",m=u==="/"?w:w.slice(u.length)||"/",x=kS(o,{pathname:m});return QS(x&&x.map(v=>Object.assign({},v,{params:Object.assign({},c,v.params),pathname:Yc([u,t.encodeLocation?t.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?u:Yc([u,t.encodeLocation?t.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),i,n)}function qS(){let o=rC(),s=BS(o)?o.status+" "+o.statusText:o instanceof Error?o.message:JSON.stringify(o),n=o instanceof Error?o.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return M.createElement(M.Fragment,null,M.createElement("h2",null,"Unexpected Application Error!"),M.createElement("h3",{style:{fontStyle:"italic"}},s),n?M.createElement("pre",{style:i},n):null,null)}const JS=M.createElement(qS,null);class ZS extends M.Component{constructor(s){super(s),this.state={location:s.location,revalidation:s.revalidation,error:s.error}}static getDerivedStateFromError(s){return{error:s}}static getDerivedStateFromProps(s,n){return n.location!==s.location||n.revalidation!=="idle"&&s.revalidation==="idle"?{error:s.error,location:s.location,revalidation:s.revalidation}:{error:s.error||n.error,location:n.location,revalidation:s.revalidation||n.revalidation}}componentDidCatch(s,n){console.error("React Router caught the following error during render",s,n)}render(){return this.state.error?M.createElement(th.Provider,{value:this.props.routeContext},M.createElement(Zx.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function XS(o){let{routeContext:s,match:n,children:t}=o,i=M.useContext(zS);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),M.createElement(th.Provider,{value:s},t)}function QS(o,s,n){var t;if(s===void 0&&(s=[]),n===void 0&&(n=null),o==null){var i;if((i=n)!=null&&i.errors)o=n.matches;else return null}let d=o,c=(t=n)==null?void 0:t.errors;if(c!=null){let u=d.findIndex(h=>h.route.id&&c?.[h.route.id]);u>=0||bi(!1),d=d.slice(0,Math.min(d.length,u+1))}return d.reduceRight((u,h,g)=>{let w=h.route.id?c?.[h.route.id]:null,m=null;n&&(m=h.route.errorElement||JS);let x=s.concat(d.slice(0,g+1)),_=()=>{let v;return w?v=m:h.route.Component?v=M.createElement(h.route.Component,null):h.route.element?v=h.route.element:v=u,M.createElement(XS,{match:h,routeContext:{outlet:u,matches:x,isDataRoute:n!=null},children:v})};return n&&(h.route.ErrorBoundary||h.route.errorElement||g===0)?M.createElement(ZS,{location:n.location,revalidation:n.revalidation,component:m,error:w,children:_(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):_()},null)}var Qx=(function(o){return o.UseBlocker="useBlocker",o.UseLoaderData="useLoaderData",o.UseActionData="useActionData",o.UseRouteError="useRouteError",o.UseNavigation="useNavigation",o.UseRouteLoaderData="useRouteLoaderData",o.UseMatches="useMatches",o.UseRevalidator="useRevalidator",o.UseNavigateStable="useNavigate",o.UseRouteId="useRouteId",o})(Qx||{});function eC(o){let s=M.useContext(US);return s||bi(!1),s}function tC(o){let s=M.useContext(th);return s||bi(!1),s}function nC(o){let s=tC(),n=s.matches[s.matches.length-1];return n.route.id||bi(!1),n.route.id}function rC(){var o;let s=M.useContext(Zx),n=eC(Qx.UseRouteError),t=nC();return s||((o=n.errors)==null?void 0:o[t])}function oC(o){return GS(o.context)}function sC(o){let{basename:s="/",children:n=null,location:t,navigationType:i=id.Pop,navigator:d,static:c=!1}=o;Ay()&&bi(!1);let u=s.replace(/^\/*/,"/"),h=M.useMemo(()=>({basename:u,navigator:d,static:c}),[u,d,c]);typeof t=="string"&&(t=Zf(t));let{pathname:g="/",search:w="",hash:m="",state:x=null,key:_="default"}=t,v=M.useMemo(()=>{let b=Kx(g,u);return b==null?null:{location:{pathname:b,search:w,hash:m,state:x,key:_},navigationType:i}},[u,g,w,m,x,_,i]);return v==null?null:M.createElement(Jx.Provider,{value:h},M.createElement(Ty.Provider,{children:n,value:v}))}new Promise(()=>{});/**
 * React Router DOM v6.17.0
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */const iC="startTransition",bw=Ux[iC];function aC(o){let{basename:s,children:n,future:t,window:i}=o,d=M.useRef();d.current==null&&(d.current=bS({window:i,v5Compat:!0}));let c=d.current,[u,h]=M.useState({action:c.action,location:c.location}),{v7_startTransition:g}=t||{},w=M.useCallback(m=>{g&&bw?bw(()=>h(m)):h(m)},[h,g]);return M.useLayoutEffect(()=>c.listen(w),[c,w]),M.createElement(sC,{basename:s,children:n,location:u.location,navigationType:u.action,navigator:c})}var Sw;(function(o){o.UseScrollRestoration="useScrollRestoration",o.UseSubmit="useSubmit",o.UseSubmitFetcher="useSubmitFetcher",o.UseFetcher="useFetcher",o.useViewTransitionState="useViewTransitionState"})(Sw||(Sw={}));var Cw;(function(o){o.UseFetchers="useFetchers",o.UseScrollRestoration="useScrollRestoration"})(Cw||(Cw={}));function e0(o,s){return function(){return o.apply(s,arguments)}}const{toString:lC}=Object.prototype,{getPrototypeOf:Py}=Object,{iterator:Xf,toStringTag:t0}=Symbol,Qf=(o=>s=>{const n=lC.call(s);return o[n]||(o[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Us=o=>(o=o.toLowerCase(),s=>Qf(s)===o),eg=o=>s=>typeof s===o,{isArray:Xc}=Array,$c=eg("undefined");function nh(o){return o!==null&&!$c(o)&&o.constructor!==null&&!$c(o.constructor)&&uo(o.constructor.isBuffer)&&o.constructor.isBuffer(o)}const n0=Us("ArrayBuffer");function dC(o){let s;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?s=ArrayBuffer.isView(o):s=o&&o.buffer&&n0(o.buffer),s}const cC=eg("string"),uo=eg("function"),r0=eg("number"),rh=o=>o!==null&&typeof o=="object",uC=o=>o===!0||o===!1,Sf=o=>{if(Qf(o)!=="object")return!1;const s=Py(o);return(s===null||s===Object.prototype||Object.getPrototypeOf(s)===null)&&!(t0 in o)&&!(Xf in o)},pC=o=>{if(!rh(o)||nh(o))return!1;try{return Object.keys(o).length===0&&Object.getPrototypeOf(o)===Object.prototype}catch{return!1}},hC=Us("Date"),mC=Us("File"),fC=Us("Blob"),gC=Us("FileList"),_C=o=>rh(o)&&uo(o.pipe),yC=o=>{let s;return o&&(typeof FormData=="function"&&o instanceof FormData||uo(o.append)&&((s=Qf(o))==="formdata"||s==="object"&&uo(o.toString)&&o.toString()==="[object FormData]"))},wC=Us("URLSearchParams"),[vC,xC,bC,SC]=["ReadableStream","Request","Response","Headers"].map(Us),CC=o=>o.trim?o.trim():o.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function oh(o,s,{allOwnKeys:n=!1}={}){if(o===null||typeof o>"u")return;let t,i;if(typeof o!="object"&&(o=[o]),Xc(o))for(t=0,i=o.length;t<i;t++)s.call(null,o[t],t,o);else{if(nh(o))return;const d=n?Object.getOwnPropertyNames(o):Object.keys(o),c=d.length;let u;for(t=0;t<c;t++)u=d[t],s.call(null,o[u],u,o)}}function o0(o,s){if(nh(o))return null;s=s.toLowerCase();const n=Object.keys(o);let t=n.length,i;for(;t-- >0;)if(i=n[t],s===i.toLowerCase())return i;return null}const ad=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,s0=o=>!$c(o)&&o!==ad;function oy(){const{caseless:o,skipUndefined:s}=s0(this)&&this||{},n={},t=(i,d)=>{const c=o&&o0(n,d)||d;Sf(n[c])&&Sf(i)?n[c]=oy(n[c],i):Sf(i)?n[c]=oy({},i):Xc(i)?n[c]=i.slice():(!s||!$c(i))&&(n[c]=i)};for(let i=0,d=arguments.length;i<d;i++)arguments[i]&&oh(arguments[i],t);return n}const kC=(o,s,n,{allOwnKeys:t}={})=>(oh(s,(i,d)=>{n&&uo(i)?o[d]=e0(i,n):o[d]=i},{allOwnKeys:t}),o),MC=o=>(o.charCodeAt(0)===65279&&(o=o.slice(1)),o),jC=(o,s,n,t)=>{o.prototype=Object.create(s.prototype,t),o.prototype.constructor=o,Object.defineProperty(o,"super",{value:s.prototype}),n&&Object.assign(o.prototype,n)},LC=(o,s,n,t)=>{let i,d,c;const u={};if(s=s||{},o==null)return s;do{for(i=Object.getOwnPropertyNames(o),d=i.length;d-- >0;)c=i[d],(!t||t(c,o,s))&&!u[c]&&(s[c]=o[c],u[c]=!0);o=n!==!1&&Py(o)}while(o&&(!n||n(o,s))&&o!==Object.prototype);return s},EC=(o,s,n)=>{o=String(o),(n===void 0||n>o.length)&&(n=o.length),n-=s.length;const t=o.indexOf(s,n);return t!==-1&&t===n},DC=o=>{if(!o)return null;if(Xc(o))return o;let s=o.length;if(!r0(s))return null;const n=new Array(s);for(;s-- >0;)n[s]=o[s];return n},IC=(o=>s=>o&&s instanceof o)(typeof Uint8Array<"u"&&Py(Uint8Array)),TC=(o,s)=>{const t=(o&&o[Xf]).call(o);let i;for(;(i=t.next())&&!i.done;){const d=i.value;s.call(o,d[0],d[1])}},AC=(o,s)=>{let n;const t=[];for(;(n=o.exec(s))!==null;)t.push(n);return t},PC=Us("HTMLFormElement"),RC=o=>o.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,t,i){return t.toUpperCase()+i}),kw=(({hasOwnProperty:o})=>(s,n)=>o.call(s,n))(Object.prototype),FC=Us("RegExp"),i0=(o,s)=>{const n=Object.getOwnPropertyDescriptors(o),t={};oh(n,(i,d)=>{let c;(c=s(i,d,o))!==!1&&(t[d]=c||i)}),Object.defineProperties(o,t)},NC=o=>{i0(o,(s,n)=>{if(uo(o)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const t=o[n];if(uo(t)){if(s.enumerable=!1,"writable"in s){s.writable=!1;return}s.set||(s.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},OC=(o,s)=>{const n={},t=i=>{i.forEach(d=>{n[d]=!0})};return Xc(o)?t(o):t(String(o).split(s)),n},YC=()=>{},WC=(o,s)=>o!=null&&Number.isFinite(o=+o)?o:s;function BC(o){return!!(o&&uo(o.append)&&o[t0]==="FormData"&&o[Xf])}const HC=o=>{const s=new Array(10),n=(t,i)=>{if(rh(t)){if(s.indexOf(t)>=0)return;if(nh(t))return t;if(!("toJSON"in t)){s[i]=t;const d=Xc(t)?[]:{};return oh(t,(c,u)=>{const h=n(c,i+1);!$c(h)&&(d[u]=h)}),s[i]=void 0,d}}return t};return n(o,0)},zC=Us("AsyncFunction"),UC=o=>o&&(rh(o)||uo(o))&&uo(o.then)&&uo(o.catch),a0=((o,s)=>o?setImmediate:s?((n,t)=>(ad.addEventListener("message",({source:i,data:d})=>{i===ad&&d===n&&t.length&&t.shift()()},!1),i=>{t.push(i),ad.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",uo(ad.postMessage)),VC=typeof queueMicrotask<"u"?queueMicrotask.bind(ad):typeof process<"u"&&process.nextTick||a0,GC=o=>o!=null&&uo(o[Xf]),ye={isArray:Xc,isArrayBuffer:n0,isBuffer:nh,isFormData:yC,isArrayBufferView:dC,isString:cC,isNumber:r0,isBoolean:uC,isObject:rh,isPlainObject:Sf,isEmptyObject:pC,isReadableStream:vC,isRequest:xC,isResponse:bC,isHeaders:SC,isUndefined:$c,isDate:hC,isFile:mC,isBlob:fC,isRegExp:FC,isFunction:uo,isStream:_C,isURLSearchParams:wC,isTypedArray:IC,isFileList:gC,forEach:oh,merge:oy,extend:kC,trim:CC,stripBOM:MC,inherits:jC,toFlatObject:LC,kindOf:Qf,kindOfTest:Us,endsWith:EC,toArray:DC,forEachEntry:TC,matchAll:AC,isHTMLForm:PC,hasOwnProperty:kw,hasOwnProp:kw,reduceDescriptors:i0,freezeMethods:NC,toObjectSet:OC,toCamelCase:RC,noop:YC,toFiniteNumber:WC,findKey:o0,global:ad,isContextDefined:s0,isSpecCompliantForm:BC,toJSONObject:HC,isAsyncFn:zC,isThenable:UC,setImmediate:a0,asap:VC,isIterable:GC};function ut(o,s,n,t,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=o,this.name="AxiosError",s&&(this.code=s),n&&(this.config=n),t&&(this.request=t),i&&(this.response=i,this.status=i.status?i.status:null)}ye.inherits(ut,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ye.toJSONObject(this.config),code:this.code,status:this.status}}});const l0=ut.prototype,d0={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(o=>{d0[o]={value:o}});Object.defineProperties(ut,d0);Object.defineProperty(l0,"isAxiosError",{value:!0});ut.from=(o,s,n,t,i,d)=>{const c=Object.create(l0);ye.toFlatObject(o,c,function(w){return w!==Error.prototype},g=>g!=="isAxiosError");const u=o&&o.message?o.message:"Error",h=s==null&&o?o.code:s;return ut.call(c,u,h,n,t,i),o&&c.cause==null&&Object.defineProperty(c,"cause",{value:o,configurable:!0}),c.name=o&&o.name||"Error",d&&Object.assign(c,d),c};const $C=null;function sy(o){return ye.isPlainObject(o)||ye.isArray(o)}function c0(o){return ye.endsWith(o,"[]")?o.slice(0,-2):o}function Mw(o,s,n){return o?o.concat(s).map(function(i,d){return i=c0(i),!n&&d?"["+i+"]":i}).join(n?".":""):s}function KC(o){return ye.isArray(o)&&!o.some(sy)}const qC=ye.toFlatObject(ye,{},null,function(s){return/^is[A-Z]/.test(s)});function tg(o,s,n){if(!ye.isObject(o))throw new TypeError("target must be an object");s=s||new FormData,n=ye.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,C){return!ye.isUndefined(C[b])});const t=n.metaTokens,i=n.visitor||w,d=n.dots,c=n.indexes,h=(n.Blob||typeof Blob<"u"&&Blob)&&ye.isSpecCompliantForm(s);if(!ye.isFunction(i))throw new TypeError("visitor must be a function");function g(v){if(v===null)return"";if(ye.isDate(v))return v.toISOString();if(ye.isBoolean(v))return v.toString();if(!h&&ye.isBlob(v))throw new ut("Blob is not supported. Use a Buffer instead.");return ye.isArrayBuffer(v)||ye.isTypedArray(v)?h&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function w(v,b,C){let k=v;if(v&&!C&&typeof v=="object"){if(ye.endsWith(b,"{}"))b=t?b:b.slice(0,-2),v=JSON.stringify(v);else if(ye.isArray(v)&&KC(v)||(ye.isFileList(v)||ye.endsWith(b,"[]"))&&(k=ye.toArray(v)))return b=c0(b),k.forEach(function(T,N){!(ye.isUndefined(T)||T===null)&&s.append(c===!0?Mw([b],N,d):c===null?b:b+"[]",g(T))}),!1}return sy(v)?!0:(s.append(Mw(C,b,d),g(v)),!1)}const m=[],x=Object.assign(qC,{defaultVisitor:w,convertValue:g,isVisitable:sy});function _(v,b){if(!ye.isUndefined(v)){if(m.indexOf(v)!==-1)throw Error("Circular reference detected in "+b.join("."));m.push(v),ye.forEach(v,function(k,L){(!(ye.isUndefined(k)||k===null)&&i.call(s,k,ye.isString(L)?L.trim():L,b,x))===!0&&_(k,b?b.concat(L):[L])}),m.pop()}}if(!ye.isObject(o))throw new TypeError("data must be an object");return _(o),s}function jw(o){const s={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(o).replace(/[!'()~]|%20|%00/g,function(t){return s[t]})}function Ry(o,s){this._pairs=[],o&&tg(o,this,s)}const u0=Ry.prototype;u0.append=function(s,n){this._pairs.push([s,n])};u0.toString=function(s){const n=s?function(t){return s.call(this,t,jw)}:jw;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function JC(o){return encodeURIComponent(o).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function p0(o,s,n){if(!s)return o;const t=n&&n.encode||JC;ye.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let d;if(i?d=i(s,n):d=ye.isURLSearchParams(s)?s.toString():new Ry(s,n).toString(t),d){const c=o.indexOf("#");c!==-1&&(o=o.slice(0,c)),o+=(o.indexOf("?")===-1?"?":"&")+d}return o}class Lw{constructor(){this.handlers=[]}use(s,n,t){return this.handlers.push({fulfilled:s,rejected:n,synchronous:t?t.synchronous:!1,runWhen:t?t.runWhen:null}),this.handlers.length-1}eject(s){this.handlers[s]&&(this.handlers[s]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(s){ye.forEach(this.handlers,function(t){t!==null&&s(t)})}}const h0={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ZC=typeof URLSearchParams<"u"?URLSearchParams:Ry,XC=typeof FormData<"u"?FormData:null,QC=typeof Blob<"u"?Blob:null,ek={isBrowser:!0,classes:{URLSearchParams:ZC,FormData:XC,Blob:QC},protocols:["http","https","file","blob","url","data"]},Fy=typeof window<"u"&&typeof document<"u",iy=typeof navigator=="object"&&navigator||void 0,tk=Fy&&(!iy||["ReactNative","NativeScript","NS"].indexOf(iy.product)<0),nk=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",rk=Fy&&window.location.href||"http://localhost",ok=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Fy,hasStandardBrowserEnv:tk,hasStandardBrowserWebWorkerEnv:nk,navigator:iy,origin:rk},Symbol.toStringTag,{value:"Module"})),jr={...ok,...ek};function sk(o,s){return tg(o,new jr.classes.URLSearchParams,{visitor:function(n,t,i,d){return jr.isNode&&ye.isBuffer(n)?(this.append(t,n.toString("base64")),!1):d.defaultVisitor.apply(this,arguments)},...s})}function ik(o){return ye.matchAll(/\w+|\[(\w*)]/g,o).map(s=>s[0]==="[]"?"":s[1]||s[0])}function ak(o){const s={},n=Object.keys(o);let t;const i=n.length;let d;for(t=0;t<i;t++)d=n[t],s[d]=o[d];return s}function m0(o){function s(n,t,i,d){let c=n[d++];if(c==="__proto__")return!0;const u=Number.isFinite(+c),h=d>=n.length;return c=!c&&ye.isArray(i)?i.length:c,h?(ye.hasOwnProp(i,c)?i[c]=[i[c],t]:i[c]=t,!u):((!i[c]||!ye.isObject(i[c]))&&(i[c]=[]),s(n,t,i[c],d)&&ye.isArray(i[c])&&(i[c]=ak(i[c])),!u)}if(ye.isFormData(o)&&ye.isFunction(o.entries)){const n={};return ye.forEachEntry(o,(t,i)=>{s(ik(t),i,n,0)}),n}return null}function lk(o,s,n){if(ye.isString(o))try{return(s||JSON.parse)(o),ye.trim(o)}catch(t){if(t.name!=="SyntaxError")throw t}return(n||JSON.stringify)(o)}const sh={transitional:h0,adapter:["xhr","http","fetch"],transformRequest:[function(s,n){const t=n.getContentType()||"",i=t.indexOf("application/json")>-1,d=ye.isObject(s);if(d&&ye.isHTMLForm(s)&&(s=new FormData(s)),ye.isFormData(s))return i?JSON.stringify(m0(s)):s;if(ye.isArrayBuffer(s)||ye.isBuffer(s)||ye.isStream(s)||ye.isFile(s)||ye.isBlob(s)||ye.isReadableStream(s))return s;if(ye.isArrayBufferView(s))return s.buffer;if(ye.isURLSearchParams(s))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),s.toString();let u;if(d){if(t.indexOf("application/x-www-form-urlencoded")>-1)return sk(s,this.formSerializer).toString();if((u=ye.isFileList(s))||t.indexOf("multipart/form-data")>-1){const h=this.env&&this.env.FormData;return tg(u?{"files[]":s}:s,h&&new h,this.formSerializer)}}return d||i?(n.setContentType("application/json",!1),lk(s)):s}],transformResponse:[function(s){const n=this.transitional||sh.transitional,t=n&&n.forcedJSONParsing,i=this.responseType==="json";if(ye.isResponse(s)||ye.isReadableStream(s))return s;if(s&&ye.isString(s)&&(t&&!this.responseType||i)){const c=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(s,this.parseReviver)}catch(u){if(c)throw u.name==="SyntaxError"?ut.from(u,ut.ERR_BAD_RESPONSE,this,null,this.response):u}}return s}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:jr.classes.FormData,Blob:jr.classes.Blob},validateStatus:function(s){return s>=200&&s<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ye.forEach(["delete","get","head","post","put","patch"],o=>{sh.headers[o]={}});const dk=ye.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ck=o=>{const s={};let n,t,i;return o&&o.split(`
`).forEach(function(c){i=c.indexOf(":"),n=c.substring(0,i).trim().toLowerCase(),t=c.substring(i+1).trim(),!(!n||s[n]&&dk[n])&&(n==="set-cookie"?s[n]?s[n].push(t):s[n]=[t]:s[n]=s[n]?s[n]+", "+t:t)}),s},Ew=Symbol("internals");function vp(o){return o&&String(o).trim().toLowerCase()}function Cf(o){return o===!1||o==null?o:ye.isArray(o)?o.map(Cf):String(o)}function uk(o){const s=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let t;for(;t=n.exec(o);)s[t[1]]=t[2];return s}const pk=o=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(o.trim());function b_(o,s,n,t,i){if(ye.isFunction(t))return t.call(this,s,n);if(i&&(s=n),!!ye.isString(s)){if(ye.isString(t))return s.indexOf(t)!==-1;if(ye.isRegExp(t))return t.test(s)}}function hk(o){return o.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(s,n,t)=>n.toUpperCase()+t)}function mk(o,s){const n=ye.toCamelCase(" "+s);["get","set","has"].forEach(t=>{Object.defineProperty(o,t+n,{value:function(i,d,c){return this[t].call(this,s,i,d,c)},configurable:!0})})}let po=class{constructor(s){s&&this.set(s)}set(s,n,t){const i=this;function d(u,h,g){const w=vp(h);if(!w)throw new Error("header name must be a non-empty string");const m=ye.findKey(i,w);(!m||i[m]===void 0||g===!0||g===void 0&&i[m]!==!1)&&(i[m||h]=Cf(u))}const c=(u,h)=>ye.forEach(u,(g,w)=>d(g,w,h));if(ye.isPlainObject(s)||s instanceof this.constructor)c(s,n);else if(ye.isString(s)&&(s=s.trim())&&!pk(s))c(ck(s),n);else if(ye.isObject(s)&&ye.isIterable(s)){let u={},h,g;for(const w of s){if(!ye.isArray(w))throw TypeError("Object iterator must return a key-value pair");u[g=w[0]]=(h=u[g])?ye.isArray(h)?[...h,w[1]]:[h,w[1]]:w[1]}c(u,n)}else s!=null&&d(n,s,t);return this}get(s,n){if(s=vp(s),s){const t=ye.findKey(this,s);if(t){const i=this[t];if(!n)return i;if(n===!0)return uk(i);if(ye.isFunction(n))return n.call(this,i,t);if(ye.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(s,n){if(s=vp(s),s){const t=ye.findKey(this,s);return!!(t&&this[t]!==void 0&&(!n||b_(this,this[t],t,n)))}return!1}delete(s,n){const t=this;let i=!1;function d(c){if(c=vp(c),c){const u=ye.findKey(t,c);u&&(!n||b_(t,t[u],u,n))&&(delete t[u],i=!0)}}return ye.isArray(s)?s.forEach(d):d(s),i}clear(s){const n=Object.keys(this);let t=n.length,i=!1;for(;t--;){const d=n[t];(!s||b_(this,this[d],d,s,!0))&&(delete this[d],i=!0)}return i}normalize(s){const n=this,t={};return ye.forEach(this,(i,d)=>{const c=ye.findKey(t,d);if(c){n[c]=Cf(i),delete n[d];return}const u=s?hk(d):String(d).trim();u!==d&&delete n[d],n[u]=Cf(i),t[u]=!0}),this}concat(...s){return this.constructor.concat(this,...s)}toJSON(s){const n=Object.create(null);return ye.forEach(this,(t,i)=>{t!=null&&t!==!1&&(n[i]=s&&ye.isArray(t)?t.join(", "):t)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([s,n])=>s+": "+n).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(s){return s instanceof this?s:new this(s)}static concat(s,...n){const t=new this(s);return n.forEach(i=>t.set(i)),t}static accessor(s){const t=(this[Ew]=this[Ew]={accessors:{}}).accessors,i=this.prototype;function d(c){const u=vp(c);t[u]||(mk(i,c),t[u]=!0)}return ye.isArray(s)?s.forEach(d):d(s),this}};po.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ye.reduceDescriptors(po.prototype,({value:o},s)=>{let n=s[0].toUpperCase()+s.slice(1);return{get:()=>o,set(t){this[n]=t}}});ye.freezeMethods(po);function S_(o,s){const n=this||sh,t=s||n,i=po.from(t.headers);let d=t.data;return ye.forEach(o,function(u){d=u.call(n,d,i.normalize(),s?s.status:void 0)}),i.normalize(),d}function f0(o){return!!(o&&o.__CANCEL__)}function Qc(o,s,n){ut.call(this,o??"canceled",ut.ERR_CANCELED,s,n),this.name="CanceledError"}ye.inherits(Qc,ut,{__CANCEL__:!0});function g0(o,s,n){const t=n.config.validateStatus;!n.status||!t||t(n.status)?o(n):s(new ut("Request failed with status code "+n.status,[ut.ERR_BAD_REQUEST,ut.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function fk(o){const s=/^([-+\w]{1,25})(:?\/\/|:)/.exec(o);return s&&s[1]||""}function gk(o,s){o=o||10;const n=new Array(o),t=new Array(o);let i=0,d=0,c;return s=s!==void 0?s:1e3,function(h){const g=Date.now(),w=t[d];c||(c=g),n[i]=h,t[i]=g;let m=d,x=0;for(;m!==i;)x+=n[m++],m=m%o;if(i=(i+1)%o,i===d&&(d=(d+1)%o),g-c<s)return;const _=w&&g-w;return _?Math.round(x*1e3/_):void 0}}function _k(o,s){let n=0,t=1e3/s,i,d;const c=(g,w=Date.now())=>{n=w,i=null,d&&(clearTimeout(d),d=null),o(...g)};return[(...g)=>{const w=Date.now(),m=w-n;m>=t?c(g,w):(i=g,d||(d=setTimeout(()=>{d=null,c(i)},t-m)))},()=>i&&c(i)]}const Yf=(o,s,n=3)=>{let t=0;const i=gk(50,250);return _k(d=>{const c=d.loaded,u=d.lengthComputable?d.total:void 0,h=c-t,g=i(h),w=c<=u;t=c;const m={loaded:c,total:u,progress:u?c/u:void 0,bytes:h,rate:g||void 0,estimated:g&&u&&w?(u-c)/g:void 0,event:d,lengthComputable:u!=null,[s?"download":"upload"]:!0};o(m)},n)},Dw=(o,s)=>{const n=o!=null;return[t=>s[0]({lengthComputable:n,total:o,loaded:t}),s[1]]},Iw=o=>(...s)=>ye.asap(()=>o(...s)),yk=jr.hasStandardBrowserEnv?((o,s)=>n=>(n=new URL(n,jr.origin),o.protocol===n.protocol&&o.host===n.host&&(s||o.port===n.port)))(new URL(jr.origin),jr.navigator&&/(msie|trident)/i.test(jr.navigator.userAgent)):()=>!0,wk=jr.hasStandardBrowserEnv?{write(o,s,n,t,i,d){const c=[o+"="+encodeURIComponent(s)];ye.isNumber(n)&&c.push("expires="+new Date(n).toGMTString()),ye.isString(t)&&c.push("path="+t),ye.isString(i)&&c.push("domain="+i),d===!0&&c.push("secure"),document.cookie=c.join("; ")},read(o){const s=document.cookie.match(new RegExp("(^|;\\s*)("+o+")=([^;]*)"));return s?decodeURIComponent(s[3]):null},remove(o){this.write(o,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function vk(o){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(o)}function xk(o,s){return s?o.replace(/\/?\/$/,"")+"/"+s.replace(/^\/+/,""):o}function _0(o,s,n){let t=!vk(s);return o&&(t||n==!1)?xk(o,s):s}const Tw=o=>o instanceof po?{...o}:o;function hd(o,s){s=s||{};const n={};function t(g,w,m,x){return ye.isPlainObject(g)&&ye.isPlainObject(w)?ye.merge.call({caseless:x},g,w):ye.isPlainObject(w)?ye.merge({},w):ye.isArray(w)?w.slice():w}function i(g,w,m,x){if(ye.isUndefined(w)){if(!ye.isUndefined(g))return t(void 0,g,m,x)}else return t(g,w,m,x)}function d(g,w){if(!ye.isUndefined(w))return t(void 0,w)}function c(g,w){if(ye.isUndefined(w)){if(!ye.isUndefined(g))return t(void 0,g)}else return t(void 0,w)}function u(g,w,m){if(m in s)return t(g,w);if(m in o)return t(void 0,g)}const h={url:d,method:d,data:d,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,withXSRFToken:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,responseEncoding:c,validateStatus:u,headers:(g,w,m)=>i(Tw(g),Tw(w),m,!0)};return ye.forEach(Object.keys({...o,...s}),function(w){const m=h[w]||i,x=m(o[w],s[w],w);ye.isUndefined(x)&&m!==u||(n[w]=x)}),n}const y0=o=>{const s=hd({},o);let{data:n,withXSRFToken:t,xsrfHeaderName:i,xsrfCookieName:d,headers:c,auth:u}=s;if(s.headers=c=po.from(c),s.url=p0(_0(s.baseURL,s.url,s.allowAbsoluteUrls),o.params,o.paramsSerializer),u&&c.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):""))),ye.isFormData(n)){if(jr.hasStandardBrowserEnv||jr.hasStandardBrowserWebWorkerEnv)c.setContentType(void 0);else if(ye.isFunction(n.getHeaders)){const h=n.getHeaders(),g=["content-type","content-length"];Object.entries(h).forEach(([w,m])=>{g.includes(w.toLowerCase())&&c.set(w,m)})}}if(jr.hasStandardBrowserEnv&&(t&&ye.isFunction(t)&&(t=t(s)),t||t!==!1&&yk(s.url))){const h=i&&d&&wk.read(d);h&&c.set(i,h)}return s},bk=typeof XMLHttpRequest<"u",Sk=bk&&function(o){return new Promise(function(n,t){const i=y0(o);let d=i.data;const c=po.from(i.headers).normalize();let{responseType:u,onUploadProgress:h,onDownloadProgress:g}=i,w,m,x,_,v;function b(){_&&_(),v&&v(),i.cancelToken&&i.cancelToken.unsubscribe(w),i.signal&&i.signal.removeEventListener("abort",w)}let C=new XMLHttpRequest;C.open(i.method.toUpperCase(),i.url,!0),C.timeout=i.timeout;function k(){if(!C)return;const T=po.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders()),Y={data:!u||u==="text"||u==="json"?C.responseText:C.response,status:C.status,statusText:C.statusText,headers:T,config:o,request:C};g0(function(I){n(I),b()},function(I){t(I),b()},Y),C=null}"onloadend"in C?C.onloadend=k:C.onreadystatechange=function(){!C||C.readyState!==4||C.status===0&&!(C.responseURL&&C.responseURL.indexOf("file:")===0)||setTimeout(k)},C.onabort=function(){C&&(t(new ut("Request aborted",ut.ECONNABORTED,o,C)),C=null)},C.onerror=function(N){const Y=N&&N.message?N.message:"Network Error",A=new ut(Y,ut.ERR_NETWORK,o,C);A.event=N||null,t(A),C=null},C.ontimeout=function(){let N=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const Y=i.transitional||h0;i.timeoutErrorMessage&&(N=i.timeoutErrorMessage),t(new ut(N,Y.clarifyTimeoutError?ut.ETIMEDOUT:ut.ECONNABORTED,o,C)),C=null},d===void 0&&c.setContentType(null),"setRequestHeader"in C&&ye.forEach(c.toJSON(),function(N,Y){C.setRequestHeader(Y,N)}),ye.isUndefined(i.withCredentials)||(C.withCredentials=!!i.withCredentials),u&&u!=="json"&&(C.responseType=i.responseType),g&&([x,v]=Yf(g,!0),C.addEventListener("progress",x)),h&&C.upload&&([m,_]=Yf(h),C.upload.addEventListener("progress",m),C.upload.addEventListener("loadend",_)),(i.cancelToken||i.signal)&&(w=T=>{C&&(t(!T||T.type?new Qc(null,o,C):T),C.abort(),C=null)},i.cancelToken&&i.cancelToken.subscribe(w),i.signal&&(i.signal.aborted?w():i.signal.addEventListener("abort",w)));const L=fk(i.url);if(L&&jr.protocols.indexOf(L)===-1){t(new ut("Unsupported protocol "+L+":",ut.ERR_BAD_REQUEST,o));return}C.send(d||null)})},Ck=(o,s)=>{const{length:n}=o=o?o.filter(Boolean):[];if(s||n){let t=new AbortController,i;const d=function(g){if(!i){i=!0,u();const w=g instanceof Error?g:this.reason;t.abort(w instanceof ut?w:new Qc(w instanceof Error?w.message:w))}};let c=s&&setTimeout(()=>{c=null,d(new ut(`timeout ${s} of ms exceeded`,ut.ETIMEDOUT))},s);const u=()=>{o&&(c&&clearTimeout(c),c=null,o.forEach(g=>{g.unsubscribe?g.unsubscribe(d):g.removeEventListener("abort",d)}),o=null)};o.forEach(g=>g.addEventListener("abort",d));const{signal:h}=t;return h.unsubscribe=()=>ye.asap(u),h}},kk=function*(o,s){let n=o.byteLength;if(n<s){yield o;return}let t=0,i;for(;t<n;)i=t+s,yield o.slice(t,i),t=i},Mk=async function*(o,s){for await(const n of jk(o))yield*kk(n,s)},jk=async function*(o){if(o[Symbol.asyncIterator]){yield*o;return}const s=o.getReader();try{for(;;){const{done:n,value:t}=await s.read();if(n)break;yield t}}finally{await s.cancel()}},Aw=(o,s,n,t)=>{const i=Mk(o,s);let d=0,c,u=h=>{c||(c=!0,t&&t(h))};return new ReadableStream({async pull(h){try{const{done:g,value:w}=await i.next();if(g){u(),h.close();return}let m=w.byteLength;if(n){let x=d+=m;n(x)}h.enqueue(new Uint8Array(w))}catch(g){throw u(g),g}},cancel(h){return u(h),i.return()}},{highWaterMark:2})},Pw=64*1024,{isFunction:zm}=ye,w0=(({fetch:o,Request:s,Response:n})=>({fetch:o,Request:s,Response:n}))(ye.global),{ReadableStream:Rw,TextEncoder:Fw}=ye.global,Nw=(o,...s)=>{try{return!!o(...s)}catch{return!1}},Lk=o=>{const{fetch:s,Request:n,Response:t}=Object.assign({},w0,o),i=zm(s),d=zm(n),c=zm(t);if(!i)return!1;const u=i&&zm(Rw),h=i&&(typeof Fw=="function"?(v=>b=>v.encode(b))(new Fw):async v=>new Uint8Array(await new n(v).arrayBuffer())),g=d&&u&&Nw(()=>{let v=!1;const b=new n(jr.origin,{body:new Rw,method:"POST",get duplex(){return v=!0,"half"}}).headers.has("Content-Type");return v&&!b}),w=c&&u&&Nw(()=>ye.isReadableStream(new t("").body)),m={stream:w&&(v=>v.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(v=>{!m[v]&&(m[v]=(b,C)=>{let k=b&&b[v];if(k)return k.call(b);throw new ut(`Response type '${v}' is not supported`,ut.ERR_NOT_SUPPORT,C)})});const x=async v=>{if(v==null)return 0;if(ye.isBlob(v))return v.size;if(ye.isSpecCompliantForm(v))return(await new n(jr.origin,{method:"POST",body:v}).arrayBuffer()).byteLength;if(ye.isArrayBufferView(v)||ye.isArrayBuffer(v))return v.byteLength;if(ye.isURLSearchParams(v)&&(v=v+""),ye.isString(v))return(await h(v)).byteLength},_=async(v,b)=>{const C=ye.toFiniteNumber(v.getContentLength());return C??x(b)};return async v=>{let{url:b,method:C,data:k,signal:L,cancelToken:T,timeout:N,onDownloadProgress:Y,onUploadProgress:A,responseType:I,headers:R,withCredentials:H="same-origin",fetchOptions:W}=y0(v);I=I?(I+"").toLowerCase():"text";let K=Ck([L,T&&T.toAbortSignal()],N),Z=null;const Q=K&&K.unsubscribe&&(()=>{K.unsubscribe()});let B;try{if(A&&g&&C!=="get"&&C!=="head"&&(B=await _(R,k))!==0){let V=new n(b,{method:"POST",body:k,duplex:"half"}),z;if(ye.isFormData(k)&&(z=V.headers.get("content-type"))&&R.setContentType(z),V.body){const[J,ee]=Dw(B,Yf(Iw(A)));k=Aw(V.body,Pw,J,ee)}}ye.isString(H)||(H=H?"include":"omit");const P=d&&"credentials"in n.prototype,X={...W,signal:K,method:C.toUpperCase(),headers:R.normalize().toJSON(),body:k,duplex:"half",credentials:P?H:void 0};Z=d&&new n(b,X);let $=await(d?s(Z,W):s(b,X));const ie=w&&(I==="stream"||I==="response");if(w&&(Y||ie&&Q)){const V={};["status","statusText","headers"].forEach(me=>{V[me]=$[me]});const z=ye.toFiniteNumber($.headers.get("content-length")),[J,ee]=Y&&Dw(z,Yf(Iw(Y),!0))||[];$=new t(Aw($.body,Pw,J,()=>{ee&&ee(),Q&&Q()}),V)}I=I||"text";let le=await m[ye.findKey(m,I)||"text"]($,v);return!ie&&Q&&Q(),await new Promise((V,z)=>{g0(V,z,{data:le,headers:po.from($.headers),status:$.status,statusText:$.statusText,config:v,request:Z})})}catch(P){throw Q&&Q(),P&&P.name==="TypeError"&&/Load failed|fetch/i.test(P.message)?Object.assign(new ut("Network Error",ut.ERR_NETWORK,v,Z),{cause:P.cause||P}):ut.from(P,P&&P.code,v,Z)}}},Ek=new Map,v0=o=>{let s=ye.merge.call({skipUndefined:!0},w0,o?o.env:null);const{fetch:n,Request:t,Response:i}=s,d=[t,i,n];let c=d.length,u=c,h,g,w=Ek;for(;u--;)h=d[u],g=w.get(h),g===void 0&&w.set(h,g=u?new Map:Lk(s)),w=g;return g};v0();const ay={http:$C,xhr:Sk,fetch:{get:v0}};ye.forEach(ay,(o,s)=>{if(o){try{Object.defineProperty(o,"name",{value:s})}catch{}Object.defineProperty(o,"adapterName",{value:s})}});const Ow=o=>`- ${o}`,Dk=o=>ye.isFunction(o)||o===null||o===!1,x0={getAdapter:(o,s)=>{o=ye.isArray(o)?o:[o];const{length:n}=o;let t,i;const d={};for(let c=0;c<n;c++){t=o[c];let u;if(i=t,!Dk(t)&&(i=ay[(u=String(t)).toLowerCase()],i===void 0))throw new ut(`Unknown adapter '${u}'`);if(i&&(ye.isFunction(i)||(i=i.get(s))))break;d[u||"#"+c]=i}if(!i){const c=Object.entries(d).map(([h,g])=>`adapter ${h} `+(g===!1?"is not supported by the environment":"is not available in the build"));let u=n?c.length>1?`since :
`+c.map(Ow).join(`
`):" "+Ow(c[0]):"as no adapter specified";throw new ut("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return i},adapters:ay};function C_(o){if(o.cancelToken&&o.cancelToken.throwIfRequested(),o.signal&&o.signal.aborted)throw new Qc(null,o)}function Yw(o){return C_(o),o.headers=po.from(o.headers),o.data=S_.call(o,o.transformRequest),["post","put","patch"].indexOf(o.method)!==-1&&o.headers.setContentType("application/x-www-form-urlencoded",!1),x0.getAdapter(o.adapter||sh.adapter,o)(o).then(function(t){return C_(o),t.data=S_.call(o,o.transformResponse,t),t.headers=po.from(t.headers),t},function(t){return f0(t)||(C_(o),t&&t.response&&(t.response.data=S_.call(o,o.transformResponse,t.response),t.response.headers=po.from(t.response.headers))),Promise.reject(t)})}const b0="1.12.0",ng={};["object","boolean","number","function","string","symbol"].forEach((o,s)=>{ng[o]=function(t){return typeof t===o||"a"+(s<1?"n ":" ")+o}});const Ww={};ng.transitional=function(s,n,t){function i(d,c){return"[Axios v"+b0+"] Transitional option '"+d+"'"+c+(t?". "+t:"")}return(d,c,u)=>{if(s===!1)throw new ut(i(c," has been removed"+(n?" in "+n:"")),ut.ERR_DEPRECATED);return n&&!Ww[c]&&(Ww[c]=!0,console.warn(i(c," has been deprecated since v"+n+" and will be removed in the near future"))),s?s(d,c,u):!0}};ng.spelling=function(s){return(n,t)=>(console.warn(`${t} is likely a misspelling of ${s}`),!0)};function Ik(o,s,n){if(typeof o!="object")throw new ut("options must be an object",ut.ERR_BAD_OPTION_VALUE);const t=Object.keys(o);let i=t.length;for(;i-- >0;){const d=t[i],c=s[d];if(c){const u=o[d],h=u===void 0||c(u,d,o);if(h!==!0)throw new ut("option "+d+" must be "+h,ut.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ut("Unknown option "+d,ut.ERR_BAD_OPTION)}}const kf={assertOptions:Ik,validators:ng},fi=kf.validators;let ld=class{constructor(s){this.defaults=s||{},this.interceptors={request:new Lw,response:new Lw}}async request(s,n){try{return await this._request(s,n)}catch(t){if(t instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const d=i.stack?i.stack.replace(/^.+\n/,""):"";try{t.stack?d&&!String(t.stack).endsWith(d.replace(/^.+\n.+\n/,""))&&(t.stack+=`
`+d):t.stack=d}catch{}}throw t}}_request(s,n){typeof s=="string"?(n=n||{},n.url=s):n=s||{},n=hd(this.defaults,n);const{transitional:t,paramsSerializer:i,headers:d}=n;t!==void 0&&kf.assertOptions(t,{silentJSONParsing:fi.transitional(fi.boolean),forcedJSONParsing:fi.transitional(fi.boolean),clarifyTimeoutError:fi.transitional(fi.boolean)},!1),i!=null&&(ye.isFunction(i)?n.paramsSerializer={serialize:i}:kf.assertOptions(i,{encode:fi.function,serialize:fi.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),kf.assertOptions(n,{baseUrl:fi.spelling("baseURL"),withXsrfToken:fi.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let c=d&&ye.merge(d.common,d[n.method]);d&&ye.forEach(["delete","get","head","post","put","patch","common"],v=>{delete d[v]}),n.headers=po.concat(c,d);const u=[];let h=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(n)===!1||(h=h&&b.synchronous,u.unshift(b.fulfilled,b.rejected))});const g=[];this.interceptors.response.forEach(function(b){g.push(b.fulfilled,b.rejected)});let w,m=0,x;if(!h){const v=[Yw.bind(this),void 0];for(v.unshift(...u),v.push(...g),x=v.length,w=Promise.resolve(n);m<x;)w=w.then(v[m++],v[m++]);return w}x=u.length;let _=n;for(m=0;m<x;){const v=u[m++],b=u[m++];try{_=v(_)}catch(C){b.call(this,C);break}}try{w=Yw.call(this,_)}catch(v){return Promise.reject(v)}for(m=0,x=g.length;m<x;)w=w.then(g[m++],g[m++]);return w}getUri(s){s=hd(this.defaults,s);const n=_0(s.baseURL,s.url,s.allowAbsoluteUrls);return p0(n,s.params,s.paramsSerializer)}};ye.forEach(["delete","get","head","options"],function(s){ld.prototype[s]=function(n,t){return this.request(hd(t||{},{method:s,url:n,data:(t||{}).data}))}});ye.forEach(["post","put","patch"],function(s){function n(t){return function(d,c,u){return this.request(hd(u||{},{method:s,headers:t?{"Content-Type":"multipart/form-data"}:{},url:d,data:c}))}}ld.prototype[s]=n(),ld.prototype[s+"Form"]=n(!0)});let Tk=class S0{constructor(s){if(typeof s!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(d){n=d});const t=this;this.promise.then(i=>{if(!t._listeners)return;let d=t._listeners.length;for(;d-- >0;)t._listeners[d](i);t._listeners=null}),this.promise.then=i=>{let d;const c=new Promise(u=>{t.subscribe(u),d=u}).then(i);return c.cancel=function(){t.unsubscribe(d)},c},s(function(d,c,u){t.reason||(t.reason=new Qc(d,c,u),n(t.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(s){if(this.reason){s(this.reason);return}this._listeners?this._listeners.push(s):this._listeners=[s]}unsubscribe(s){if(!this._listeners)return;const n=this._listeners.indexOf(s);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const s=new AbortController,n=t=>{s.abort(t)};return this.subscribe(n),s.signal.unsubscribe=()=>this.unsubscribe(n),s.signal}static source(){let s;return{token:new S0(function(i){s=i}),cancel:s}}};function Ak(o){return function(n){return o.apply(null,n)}}function Pk(o){return ye.isObject(o)&&o.isAxiosError===!0}const ly={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ly).forEach(([o,s])=>{ly[s]=o});function C0(o){const s=new ld(o),n=e0(ld.prototype.request,s);return ye.extend(n,ld.prototype,s,{allOwnKeys:!0}),ye.extend(n,s,null,{allOwnKeys:!0}),n.create=function(i){return C0(hd(o,i))},n}const Ee=C0(sh);Ee.Axios=ld;Ee.CanceledError=Qc;Ee.CancelToken=Tk;Ee.isCancel=f0;Ee.VERSION=b0;Ee.toFormData=tg;Ee.AxiosError=ut;Ee.Cancel=Ee.CanceledError;Ee.all=function(s){return Promise.all(s)};Ee.spread=Ak;Ee.isAxiosError=Pk;Ee.mergeConfig=hd;Ee.AxiosHeaders=po;Ee.formToJSON=o=>m0(ye.isHTMLForm(o)?new FormData(o):o);Ee.getAdapter=x0.getAdapter;Ee.HttpStatusCode=ly;Ee.default=Ee;const{Axios:JF,AxiosError:ZF,CanceledError:XF,isCancel:QF,CancelToken:eN,VERSION:tN,all:nN,Cancel:rN,isAxiosError:oN,spread:sN,toFormData:iN,AxiosHeaders:aN,HttpStatusCode:lN,formToJSON:dN,getAdapter:cN,mergeConfig:uN}=Ee,Ao=o=>{const s=document.getElementsByTagName("script");for(let n=s.length-1;n>=0;n--)if(s[n].src.indexOf(o)>-1)return s[n].src;return null};function Zt(o){for(var s="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t=0;t<o;t++)s+=n.charAt(Math.floor(Math.random()*n.length));return s}function yd(o,s){return o.filter(n=>n.errorFor==s)}async function Bw(o,s=!1){let n="";try{const t=await Ee.get(`https://www.wpo365.com/wp-json/wp/v2/${s?"pages":"posts"}?slug=${o}`);return t.data&&Array.isArray(t.data)&&t.data.length==1&&t.data[0].content&&t.data[0].content.rendered&&(n=t.data[0].content.rendered),n}catch(t){return t}}const Xr=(o,s)=>{try{return JSON.parse(o)}catch{}return s},Ja=(o,s)=>{if(!Array.isArray(o))throw"findIndex -> First argument is not an array";for(let n=0;n<o.length;n++)if(s(o[n]))return n;return-1},k0=o=>{let s=o;const n=[];n.push({name:"count",start:o.indexOf("$count="),stop:-1}),n.push({name:"expand",start:o.indexOf("$expand="),stop:-1}),n.push({name:"filter",start:o.indexOf("$filter="),stop:-1}),n.push({name:"format",start:o.indexOf("$format="),stop:-1}),n.push({name:"orderby",start:o.indexOf("$orderby="),stop:-1}),n.push({name:"search",start:o.indexOf("$search="),stop:-1}),n.push({name:"select",start:o.indexOf("$select="),stop:-1}),n.push({name:"skip",start:o.indexOf("$skip="),stop:-1}),n.push({name:"top",start:o.indexOf("$top="),stop:-1});for(let t=n.length-1;t>=0;t--)n[t].start==-1&&n.splice(t,1);n.sort((t,i)=>t.start<i.start?-1:t.start>i.start?1:0);for(let t=0;t<n.length-1;t++)n[t].stop=n[t+1].start-1;for(let t=0;t<n.length;t++){if(n[t].name=="filter"){const i=o.substring(n[t].start+8,n[t].stop>-1?n[t].stop:o.length);s=s.replace(i,encodeURIComponent(decodeURIComponent(i)));continue}if(n[t].name=="search"){const i=o.substring(n[t].start+8,n[t].stop>-1?n[t].stop:o.length);s=s.replace(i,encodeURIComponent(decodeURIComponent(i)));continue}}return s},Rk=o=>{const[s,n]=D.useState("3px 3px 20px rgb(0 0 0 / 0.2)"),t={position:"fixed",width:"60px",height:"60px",bottom:"35px",right:"35px",backgroundColor:"#f2f2f2",borderRadius:30,lineHeight:60,color:"#ffffff",display:"flex",alignItems:"center",justifyContent:"center",border:"1px solid #0078D4",boxShadow:s,cursor:"pointer"};return e.jsx("div",{style:t,onMouseEnter:()=>n("3px 3px 20px rgb(0 0 0 / 0.6)"),onMouseLeave:()=>n("0 3px 10px rgb(0 0 0 / 0.2)"),onClick:()=>window.open("https://www.wpo365.com/contact/"),children:e.jsx("svg",{width:"25",height:"34",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",fill:"#0078D4",children:e.jsx("path",{d:"M202 0C122.2 0 70.5 32.7 29.9 91c-7.4 10.6-5.1 25.1 5.2 32.9l43.1 32.7c10.4 7.9 25.1 6 33.3-4.1 25-31.4 43.6-49.4 82.8-49.4 30.8 0 68.8 19.8 68.8 49.6 0 22.6-18.6 34.1-49 51.2-35.4 19.9-82.3 44.6-82.3 106.4V320c0 13.3 10.7 24 24 24h72.5c13.3 0 24-10.7 24-24v-5.8c0-42.9 125.3-44.6 125.3-160.6C377.5 66.3 286.9 0 202 0zM192 373.5c-38.2 0-69.3 31.1-69.3 69.3 0 38.2 31.1 69.3 69.3 69.3s69.3-31.1 69.3-69.3-31.1-69.3-69.3-69.3z"})})})};var Hw={},Mf=void 0;try{Mf=window}catch{}function Ny(o,s){if(typeof Mf<"u"){var n=Mf.__packages__=Mf.__packages__||{};if(!n[o]||!Hw[o]){Hw[o]=s;var t=n[o]=n[o]||[];t.push(s)}}}Ny("@uifabric/set-version","6.0.0");/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var dy=function(o,s){return dy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])},dy(o,s)};function Ne(o,s){dy(o,s);function n(){this.constructor=o}o.prototype=s===null?Object.create(s):(n.prototype=s.prototype,new n)}var F=function(){return F=Object.assign||function(s){for(var n,t=1,i=arguments.length;t<i;t++){n=arguments[t];for(var d in n)Object.prototype.hasOwnProperty.call(n,d)&&(s[d]=n[d])}return s},F.apply(this,arguments)};function mo(o,s){var n={};for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&s.indexOf(t)<0&&(n[t]=o[t]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,t=Object.getOwnPropertySymbols(o);i<t.length;i++)s.indexOf(t[i])<0&&Object.prototype.propertyIsEnumerable.call(o,t[i])&&(n[t[i]]=o[t[i]]);return n}function _s(o,s,n,t){var i=arguments.length,d=i<3?s:t===null?t=Object.getOwnPropertyDescriptor(s,n):t,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(o,s,n,t);else for(var u=o.length-1;u>=0;u--)(c=o[u])&&(d=(i<3?c(d):i>3?c(s,n,d):c(s,n))||d);return i>3&&d&&Object.defineProperty(s,n,d),d}function Nn(){for(var o=0,s=0,n=arguments.length;s<n;s++)o+=arguments[s].length;for(var t=Array(o),i=0,s=0;s<n;s++)for(var d=arguments[s],c=0,u=d.length;c<u;c++,i++)t[i]=d[c];return t}var Um={none:0,insertNode:1,appendChild:2},zw="__stylesheet__",Fk=typeof navigator<"u"&&/rv:11.0/.test(navigator.userAgent),jf={};try{jf=window}catch{}var jc,gs=(function(){function o(s){this._rules=[],this._preservedRules=[],this._rulesToInsert=[],this._counter=0,this._keyToClassName={},this._onResetCallbacks=[],this._classNameToArgs={},this._config=F({injectionMode:Um.insertNode,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},s),this._keyToClassName=this._config.classNameCache||{}}return o.getInstance=function(){var s;if(jc=jf[zw],!jc||jc._lastStyleElement&&jc._lastStyleElement.ownerDocument!==document){var n=((s=jf)===null||s===void 0?void 0:s.FabricConfig)||{};jc=jf[zw]=new o(n.mergeStyles)}return jc},o.prototype.setConfig=function(s){this._config=F(F({},this._config),s)},o.prototype.onReset=function(s){this._onResetCallbacks.push(s)},o.prototype.getClassName=function(s){var n=this._config.namespace,t=s||this._config.defaultPrefix;return(n?n+"-":"")+t+"-"+this._counter++},o.prototype.cacheClassName=function(s,n,t,i){this._keyToClassName[n]=s,this._classNameToArgs[s]={args:t,rules:i}},o.prototype.classNameFromKey=function(s){return this._keyToClassName[s]},o.prototype.getClassNameCache=function(){return this._keyToClassName},o.prototype.argsFromClassName=function(s){var n=this._classNameToArgs[s];return n&&n.args},o.prototype.insertedRulesFromClassName=function(s){var n=this._classNameToArgs[s];return n&&n.rules},o.prototype.insertRule=function(s,n){var t=this._config.injectionMode,i=t!==Um.none?this._getStyleElement():void 0;if(n&&this._preservedRules.push(s),i)switch(this._config.injectionMode){case Um.insertNode:var d=i.sheet;try{d.insertRule(s,d.cssRules.length)}catch{}break;case Um.appendChild:i.appendChild(document.createTextNode(s));break}else this._rules.push(s);this._config.onInsertRule&&this._config.onInsertRule(s)},o.prototype.getRules=function(s){return(s?this._preservedRules.join(""):"")+this._rules.join("")+this._rulesToInsert.join("")},o.prototype.reset=function(){this._rules=[],this._rulesToInsert=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach(function(s){return s()})},o.prototype.resetKeys=function(){this._keyToClassName={}},o.prototype._getStyleElement=function(){var s=this;return!this._styleElement&&typeof document<"u"&&(this._styleElement=this._createStyleElement(),Fk||window.requestAnimationFrame(function(){s._styleElement=void 0})),this._styleElement},o.prototype._createStyleElement=function(){var s=document.head,n=document.createElement("style"),t=null;n.setAttribute("data-merge-styles","true");var i=this._config.cspSettings;if(i&&i.nonce&&n.setAttribute("nonce",i.nonce),this._lastStyleElement)t=this._lastStyleElement.nextElementSibling;else{var d=this._findPlaceholderStyleTag();d?t=d.nextElementSibling:t=s.childNodes[0]}return s.insertBefore(n,s.contains(t)?t:null),this._lastStyleElement=n,n},o.prototype._findPlaceholderStyleTag=function(){var s=document.head;return s?s.querySelector("style[data-merge-styles]"):null},o})();function M0(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];var n=[],t=[],i=gs.getInstance();function d(c){for(var u=0,h=c;u<h.length;u++){var g=h[u];if(g)if(typeof g=="string")if(g.indexOf(" ")>=0)d(g.split(" "));else{var w=i.argsFromClassName(g);w?d(w):n.indexOf(g)===-1&&n.push(g)}else Array.isArray(g)?d(g):typeof g=="object"&&t.push(g)}}return d(o),{classes:n,objects:t}}function j0(o){Wc!==o&&(Wc=o)}function L0(){return Wc===void 0&&(Wc=typeof document<"u"&&!!document.documentElement&&document.documentElement.getAttribute("dir")==="rtl"),Wc}var Wc;Wc=L0();function rg(){return{rtl:L0()}}var Uw={};function Nk(o,s){var n=o[s];n.charAt(0)!=="-"&&(o[s]=Uw[n]=Uw[n]||n.replace(/([A-Z])/g,"-$1").toLowerCase())}var Vm;function Ok(){var o,s;if(!Vm){var n=typeof document<"u"?document:void 0,t=typeof navigator<"u"?navigator:void 0,i=(s=(o=t)===null||o===void 0?void 0:o.userAgent)===null||s===void 0?void 0:s.toLowerCase();n?Vm={isWebkit:!!(n&&"WebkitAppearance"in n.documentElement.style),isMoz:!!(i&&i.indexOf("firefox")>-1),isOpera:!!(i&&i.indexOf("opera")>-1),isMs:!!(t&&(/rv:11.0/i.test(t.userAgent)||/Edge\/\d./i.test(navigator.userAgent)))}:Vm={isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return Vm}var Vw={"user-select":1};function Yk(o,s){var n=Ok(),t=o[s];if(Vw[t]){var i=o[s+1];Vw[t]&&(n.isWebkit&&o.push("-webkit-"+t,i),n.isMoz&&o.push("-moz-"+t,i),n.isMs&&o.push("-ms-"+t,i),n.isOpera&&o.push("-o-"+t,i))}}var Wk=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function Bk(o,s){var n=o[s],t=o[s+1];if(typeof t=="number"){var i=Wk.indexOf(n)>-1,d=n.indexOf("--")>-1,c=i||d?"":"px";o[s+1]=""+t+c}}var Gm,Ga="left",$a="right",Hk="@noflip",Gw=(Gm={},Gm[Ga]=$a,Gm[$a]=Ga,Gm),$w={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function zk(o,s,n){if(o.rtl){var t=s[n];if(!t)return;var i=s[n+1];if(typeof i=="string"&&i.indexOf(Hk)>=0)s[n+1]=i.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(t.indexOf(Ga)>=0)s[n]=t.replace(Ga,$a);else if(t.indexOf($a)>=0)s[n]=t.replace($a,Ga);else if(String(i).indexOf(Ga)>=0)s[n+1]=i.replace(Ga,$a);else if(String(i).indexOf($a)>=0)s[n+1]=i.replace($a,Ga);else if(Gw[t])s[n]=Gw[t];else if($w[i])s[n+1]=$w[i];else switch(t){case"margin":case"padding":s[n+1]=Vk(i);break;case"box-shadow":s[n+1]=Uk(i,0);break}}}function Uk(o,s){var n=o.split(" "),t=parseInt(n[s],10);return n[0]=n[0].replace(String(t),String(t*-1)),n.join(" ")}function Vk(o){if(typeof o=="string"){var s=o.split(" ");if(s.length===4)return s[0]+" "+s[3]+" "+s[2]+" "+s[1]}return o}var Gk="displayName";function $k(o){var s=o&&o["&"];return s?s.displayName:void 0}var E0=/\:global\((.+?)\)/g;function Kk(o){if(!E0.test(o))return o;for(var s=[],n=/\:global\((.+?)\)/g,t=null;t=n.exec(o);)t[1].indexOf(",")>-1&&s.push([t.index,t.index+t[0].length,t[1].split(",").map(function(i){return":global("+i.trim()+")"}).join(", ")]);return s.reverse().reduce(function(i,d){var c=d[0],u=d[1],h=d[2],g=i.slice(0,c),w=i.slice(u);return g+h+w},o)}function Kw(o,s){return o.indexOf(":global(")>=0?o.replace(E0,"$1"):o.indexOf(":")===0?s+o:o.indexOf("&")<0?s+" "+o:o}function qw(o,s,n,t){s===void 0&&(s={__order:[]}),n.indexOf("@")===0?(n=n+"{"+o,Bc([t],s,n)):n.indexOf(",")>-1?Kk(n).split(",").map(function(i){return i.trim()}).forEach(function(i){return Bc([t],s,Kw(i,o))}):Bc([t],s,Kw(n,o))}function Bc(o,s,n){s===void 0&&(s={__order:[]}),n===void 0&&(n="&");var t=gs.getInstance(),i=s[n];i||(i={},s[n]=i,s.__order.push(n));for(var d=0,c=o;d<c.length;d++){var u=c[d];if(typeof u=="string"){var h=t.argsFromClassName(u);h&&Bc(h,s,n)}else if(Array.isArray(u))Bc(u,s,n);else for(var g in u)if(u.hasOwnProperty(g)){var w=u[g];if(g==="selectors"){var m=u.selectors;for(var x in m)m.hasOwnProperty(x)&&qw(n,s,x,m[x])}else typeof w=="object"?w!==null&&qw(n,s,g,w):w!==void 0&&(g==="margin"||g==="padding"?qk(i,g,w):i[g]=w)}}return s}function qk(o,s,n){var t=typeof n=="string"?n.split(" "):[n];o[s+"Top"]=t[0],o[s+"Right"]=t[1]||t[0],o[s+"Bottom"]=t[2]||t[0],o[s+"Left"]=t[3]||t[1]||t[0]}function Jk(o,s){for(var n=[o.rtl?"rtl":"ltr"],t=!1,i=0,d=s.__order;i<d.length;i++){var c=d[i];n.push(c);var u=s[c];for(var h in u)u.hasOwnProperty(h)&&u[h]!==void 0&&(t=!0,n.push(h,u[h]))}return t?n.join(""):void 0}function D0(o,s){return s<=0?"":s===1?o:o+D0(o,s-1)}function Oy(o,s){if(!s)return"";var n=[];for(var t in s)s.hasOwnProperty(t)&&t!==Gk&&s[t]!==void 0&&n.push(t,s[t]);for(var i=0;i<n.length;i+=2)Nk(n,i),Bk(n,i),zk(o,n,i),Yk(n,i);for(var i=1;i<n.length;i+=4)n.splice(i,1,":",n[i],";");return n.join("")}function I0(o){for(var s=[],n=1;n<arguments.length;n++)s[n-1]=arguments[n];var t=Bc(s),i=Jk(o,t);if(i){var d=gs.getInstance(),c={className:d.classNameFromKey(i),key:i,args:s};if(!c.className){c.className=d.getClassName($k(t));for(var u=[],h=0,g=t.__order;h<g.length;h++){var w=g[h];u.push(w,Oy(o,t[w]))}c.rulesToInsert=u}return c}}function T0(o,s){s===void 0&&(s=1);var n=gs.getInstance(),t=o.className,i=o.key,d=o.args,c=o.rulesToInsert;if(c){for(var u=0;u<c.length;u+=2){var h=c[u+1];if(h){var g=c[u];g=g.replace(/&/g,D0("."+o.className,s));var w=g+"{"+h+"}"+(g.indexOf("@")===0?"}":"");n.insertRule(w)}}n.cacheClassName(t,i,d,c)}}function Zk(o){for(var s=[],n=1;n<arguments.length;n++)s[n-1]=arguments[n];var t=I0.apply(void 0,Nn([o],s));return t?(T0(t,o.specificityMultiplier),t.className):""}function Bs(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];return A0(o,rg())}function A0(o,s){var n=o instanceof Array?o:[o],t=M0(n),i=t.classes,d=t.objects;return d.length&&i.push(Zk(s||{},d)),i.join(" ")}function Vs(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];if(o&&o.length===1&&o[0]&&!o[0].subComponentStyles)return o[0];for(var n={},t={},i=0,d=o;i<d.length;i++){var c=d[i];if(c){for(var u in c)if(c.hasOwnProperty(u)){if(u==="subComponentStyles"&&c.subComponentStyles!==void 0){var h=c.subComponentStyles;for(var g in h)h.hasOwnProperty(g)&&(t.hasOwnProperty(g)?t[g].push(h[g]):t[g]=[h[g]]);continue}var w=n[u],m=c[u];w===void 0?n[u]=m:n[u]=Nn(Array.isArray(w)?w:[w],Array.isArray(m)?m:[m])}}}if(Object.keys(t).length>0){n.subComponentStyles={};var x=n.subComponentStyles,_=function(v){if(t.hasOwnProperty(v)){var b=t[v];x[v]=function(C){return Vs.apply(void 0,b.map(function(k){return typeof k=="function"?k(C):k}))}}};for(var g in t)_(g)}return n}function tl(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];return P0(o,rg())}function P0(o,s){var n,t,i={subComponentStyles:{}},d=o[0];if(!d&&o.length<=1)return{subComponentStyles:{}};var c=Vs.apply(void 0,o),u=[];for(var h in c)if(c.hasOwnProperty(h)){if(h==="subComponentStyles"){i.subComponentStyles=c.subComponentStyles||{};continue}var g=c[h],w=M0(g),m=w.classes,x=w.objects;if(!((n=x)===null||n===void 0)&&n.length){var _=I0(s||{},{displayName:h},x);_&&(u.push(_),i[h]=m.concat([_.className]).join(" "))}else i[h]=m.join(" ")}for(var v=0,b=u;v<b.length;v++){var _=b[v];_&&T0(_,(t=s)===null||t===void 0?void 0:t.specificityMultiplier)}return i}function R0(o){for(var s=[],n=1;n<arguments.length;n++)s[n-1]=arguments[n];for(var t=[],i=0,d=s;i<d.length;i++){var c=d[i];c&&t.push(typeof c=="function"?c(o):c)}return t.length===1?t[0]:t.length?Vs.apply(void 0,t):{}}function F0(o){gs.getInstance().insertRule("@font-face{"+Oy(rg(),o)+"}",!0)}function yn(o){var s=gs.getInstance(),n=s.getClassName(),t=[];for(var i in o)o.hasOwnProperty(i)&&t.push(i,"{",Oy(rg(),o[i]),"}");var d=t.join("");return s.insertRule("@keyframes "+n+"{"+d+"}",!0),s.cacheClassName(n,d,[],["keyframes",d]),n}function Xk(o){var s={},n=function(i){if(o.hasOwnProperty(i)){var d;Object.defineProperty(s,i,{get:function(){return d===void 0&&(d=Bs(o[i]).toString()),d},enumerable:!0,configurable:!0})}};for(var t in o)n(t);return s}var cy=void 0;try{cy=window}catch{}function nt(o){if(!(typeof cy>"u")){var s=o;return s&&s.ownerDocument&&s.ownerDocument.defaultView?s.ownerDocument.defaultView:cy}}var Wn=(function(){function o(s,n){this._timeoutIds=null,this._immediateIds=null,this._intervalIds=null,this._animationFrameIds=null,this._isDisposed=!1,this._parent=s||null,this._onErrorHandler=n,this._noop=function(){}}return o.prototype.dispose=function(){var s;if(this._isDisposed=!0,this._parent=null,this._timeoutIds){for(s in this._timeoutIds)this._timeoutIds.hasOwnProperty(s)&&this.clearTimeout(parseInt(s,10));this._timeoutIds=null}if(this._immediateIds){for(s in this._immediateIds)this._immediateIds.hasOwnProperty(s)&&this.clearImmediate(parseInt(s,10));this._immediateIds=null}if(this._intervalIds){for(s in this._intervalIds)this._intervalIds.hasOwnProperty(s)&&this.clearInterval(parseInt(s,10));this._intervalIds=null}if(this._animationFrameIds){for(s in this._animationFrameIds)this._animationFrameIds.hasOwnProperty(s)&&this.cancelAnimationFrame(parseInt(s,10));this._animationFrameIds=null}},o.prototype.setTimeout=function(s,n){var t=this,i=0;return this._isDisposed||(this._timeoutIds||(this._timeoutIds={}),i=setTimeout(function(){try{t._timeoutIds&&delete t._timeoutIds[i],s.apply(t._parent)}catch(d){t._onErrorHandler&&t._onErrorHandler(d)}},n),this._timeoutIds[i]=!0),i},o.prototype.clearTimeout=function(s){this._timeoutIds&&this._timeoutIds[s]&&(clearTimeout(s),delete this._timeoutIds[s])},o.prototype.setImmediate=function(s,n){var t=this,i=0,d=nt(n);if(!this._isDisposed){this._immediateIds||(this._immediateIds={});var c=function(){try{t._immediateIds&&delete t._immediateIds[i],s.apply(t._parent)}catch(u){t._logError(u)}};i=d.setTimeout(c,0),this._immediateIds[i]=!0}return i},o.prototype.clearImmediate=function(s,n){var t=nt(n);this._immediateIds&&this._immediateIds[s]&&(t.clearTimeout(s),delete this._immediateIds[s])},o.prototype.setInterval=function(s,n){var t=this,i=0;return this._isDisposed||(this._intervalIds||(this._intervalIds={}),i=setInterval(function(){try{s.apply(t._parent)}catch(d){t._logError(d)}},n),this._intervalIds[i]=!0),i},o.prototype.clearInterval=function(s){this._intervalIds&&this._intervalIds[s]&&(clearInterval(s),delete this._intervalIds[s])},o.prototype.throttle=function(s,n,t){var i=this;if(this._isDisposed)return this._noop;var d=n||0,c=!0,u=!0,h=0,g,w,m=null;t&&typeof t.leading=="boolean"&&(c=t.leading),t&&typeof t.trailing=="boolean"&&(u=t.trailing);var x=function(v){var b=Date.now(),C=b-h,k=c?d-C:d;return C>=d&&(!v||c)?(h=b,m&&(i.clearTimeout(m),m=null),g=s.apply(i._parent,w)):m===null&&u&&(m=i.setTimeout(x,k)),g},_=(function(){for(var v=[],b=0;b<arguments.length;b++)v[b]=arguments[b];return w=v,x(!0)});return _},o.prototype.debounce=function(s,n,t){var i=this;if(this._isDisposed){var d=(function(){});return d.cancel=function(){},d.flush=(function(){return null}),d.pending=function(){return!1},d}var c=n||0,u=!1,h=!0,g=null,w=0,m=Date.now(),x,_,v=null;t&&typeof t.leading=="boolean"&&(u=t.leading),t&&typeof t.trailing=="boolean"&&(h=t.trailing),t&&typeof t.maxWait=="number"&&!isNaN(t.maxWait)&&(g=t.maxWait);var b=function(A){v&&(i.clearTimeout(v),v=null),m=A},C=function(A){b(A),x=s.apply(i._parent,_)},k=function(A){var I=Date.now(),R=!1;A&&(u&&I-w>=c&&(R=!0),w=I);var H=I-w,W=c-H,K=I-m,Z=!1;return g!==null&&(K>=g&&v?Z=!0:W=Math.min(W,g-K)),H>=c||Z||R?C(I):(v===null||!A)&&h&&(v=i.setTimeout(k,W)),x},L=function(){return!!v},T=function(){L()&&b(Date.now())},N=function(){return L()&&C(Date.now()),x},Y=(function(){for(var A=[],I=0;I<arguments.length;I++)A[I]=arguments[I];return _=A,k(!0)});return Y.cancel=T,Y.flush=N,Y.pending=L,Y},o.prototype.requestAnimationFrame=function(s,n){var t=this,i=0,d=nt(n);if(!this._isDisposed){this._animationFrameIds||(this._animationFrameIds={});var c=function(){try{t._animationFrameIds&&delete t._animationFrameIds[i],s.apply(t._parent)}catch(u){t._logError(u)}};i=d.requestAnimationFrame?d.requestAnimationFrame(c):d.setTimeout(c,0),this._animationFrameIds[i]=!0}return i},o.prototype.cancelAnimationFrame=function(s,n){var t=nt(n);this._animationFrameIds&&this._animationFrameIds[s]&&(t.cancelAnimationFrame?t.cancelAnimationFrame(s):t.clearTimeout(s),delete this._animationFrameIds[s])},o.prototype._logError=function(s){this._onErrorHandler&&this._onErrorHandler(s)},o})();function xi(o,s){for(var n in o)if(o.hasOwnProperty(n)&&(!s.hasOwnProperty(n)||s[n]!==o[n]))return!1;for(var n in s)if(s.hasOwnProperty(n)&&!o.hasOwnProperty(n))return!1;return!0}function qa(o){for(var s=[],n=1;n<arguments.length;n++)s[n-1]=arguments[n];return Qk.apply(this,[null,o].concat(s))}function Qk(o,s){for(var n=[],t=2;t<arguments.length;t++)n[t-2]=arguments[t];s=s||{};for(var i=0,d=n;i<d.length;i++){var c=d[i];if(c)for(var u in c)c.hasOwnProperty(u)&&(!o||o(u))&&(s[u]=c[u])}return s}var Yt=(function(){function o(s){this._id=o._uniqueId++,this._parent=s,this._eventRecords=[]}return o.raise=function(s,n,t,i){var d;if(o._isElement(s)){if(typeof document<"u"&&document.createEvent){var c=document.createEvent("HTMLEvents");c.initEvent(n,i||!1,!0),qa(c,t),d=s.dispatchEvent(c)}else if(typeof document<"u"&&document.createEventObject){var u=document.createEventObject(t);s.fireEvent("on"+n,u)}}else for(;s&&d!==!1;){var h=s.__events__,g=h?h[n]:null;if(g){for(var w in g)if(g.hasOwnProperty(w))for(var m=g[w],x=0;d!==!1&&x<m.length;x++){var _=m[x];_.objectCallback&&(d=_.objectCallback.call(_.parent,t))}}s=i?s.parent:null}return d},o.isObserved=function(s,n){var t=s&&s.__events__;return!!t&&!!t[n]},o.isDeclared=function(s,n){var t=s&&s.__declaredEvents;return!!t&&!!t[n]},o.stopPropagation=function(s){s.stopPropagation?s.stopPropagation():s.cancelBubble=!0},o._isElement=function(s){return!!s&&(!!s.addEventListener||typeof HTMLElement<"u"&&s instanceof HTMLElement)},o.prototype.dispose=function(){this._isDisposed||(this._isDisposed=!0,this.off(),this._parent=null)},o.prototype.onAll=function(s,n,t){for(var i in n)n.hasOwnProperty(i)&&this.on(s,i,n[i],t)},o.prototype.on=function(s,n,t,i){var d=this;if(n.indexOf(",")>-1)for(var c=n.split(/[ ,]+/),u=0;u<c.length;u++)this.on(s,c[u],t,i);else{var h=this._parent,g={target:s,eventName:n,parent:h,callback:t,options:i},c=s.__events__=s.__events__||{};if(c[n]=c[n]||{count:0},c[n][this._id]=c[n][this._id]||[],c[n][this._id].push(g),c[n].count++,o._isElement(s)){var w=function(){for(var _=[],v=0;v<arguments.length;v++)_[v]=arguments[v];if(!d._isDisposed){var b;try{if(b=t.apply(h,_),b===!1&&_[0]){var C=_[0];C.preventDefault&&C.preventDefault(),C.stopPropagation&&C.stopPropagation(),C.cancelBubble=!0}}catch{}return b}};g.elementCallback=w,s.addEventListener?s.addEventListener(n,w,i):s.attachEvent&&s.attachEvent("on"+n,w)}else{var m=function(){for(var _=[],v=0;v<arguments.length;v++)_[v]=arguments[v];if(!d._isDisposed)return t.apply(h,_)};g.objectCallback=m}this._eventRecords.push(g)}},o.prototype.off=function(s,n,t,i){for(var d=0;d<this._eventRecords.length;d++){var c=this._eventRecords[d];if((!s||s===c.target)&&(!n||n===c.eventName)&&(!t||t===c.callback)&&(typeof i!="boolean"||i===c.options)){var u=c.target.__events__,h=u[c.eventName],g=h?h[this._id]:null;g&&(g.length===1||!t?(h.count-=g.length,delete u[c.eventName][this._id]):(h.count--,g.splice(g.indexOf(c),1)),h.count||delete u[c.eventName]),c.elementCallback&&(c.target.removeEventListener?c.target.removeEventListener(c.eventName,c.elementCallback,c.options):c.target.detachEvent&&c.target.detachEvent("on"+c.eventName,c.elementCallback)),this._eventRecords.splice(d--,1)}}},o.prototype.raise=function(s,n,t){return o.raise(this._parent,s,n,t)},o.prototype.declare=function(s){var n=this._parent.__declaredEvents=this._parent.__declaredEvents||{};if(typeof s=="string")n[s]=!0;else for(var t=0;t<s.length;t++)n[s[t]]=!0},o._uniqueId=0,o})();function _n(o){if(!(typeof document>"u")){var s=o;return s&&s.ownerDocument?s.ownerDocument:document}}var k_,Tp=0,N0=Bs({overflow:"hidden !important"}),Jw="data-is-scrollable",O0=function(o,s){if(o){var n=0,t=null,i=function(c){c.targetTouches.length===1&&(n=c.targetTouches[0].clientY)},d=function(c){if(c.targetTouches.length===1&&(c.stopPropagation(),!!t)){var u=c.targetTouches[0].clientY-n,h=ih(c.target);h&&(t=h),t.scrollTop===0&&u>0&&c.preventDefault(),t.scrollHeight-Math.ceil(t.scrollTop)<=t.clientHeight&&u<0&&c.preventDefault()}};s.on(o,"touchstart",i,{passive:!1}),s.on(o,"touchmove",d,{passive:!1}),t=o}},Y0=function(o,s){if(o){var n=function(t){t.stopPropagation()};s.on(o,"touchmove",n,{passive:!1})}},W0=function(o){o.preventDefault()};function e5(){var o=_n();o&&o.body&&!Tp&&(o.body.classList.add(N0),o.body.addEventListener("touchmove",W0,{passive:!1,capture:!1})),Tp++}function t5(){if(Tp>0){var o=_n();o&&o.body&&Tp===1&&(o.body.classList.remove(N0),o.body.removeEventListener("touchmove",W0)),Tp--}}function Yy(){if(k_===void 0){var o=document.createElement("div");o.style.setProperty("width","100px"),o.style.setProperty("height","100px"),o.style.setProperty("overflow","scroll"),o.style.setProperty("position","absolute"),o.style.setProperty("top","-9999px"),document.body.appendChild(o),k_=o.offsetWidth-o.clientWidth,document.body.removeChild(o)}return k_}function ih(o){for(var s=o,n=_n(o);s&&s!==n.body;){if(s.getAttribute(Jw)==="true")return s;s=s.parentElement}for(s=o;s&&s!==n.body;){if(s.getAttribute(Jw)!=="false"){var t=getComputedStyle(s),i=t?t.getPropertyValue("overflow-y"):"";if(i&&(i==="scroll"||i==="auto"))return s}s=s.parentElement}return(!s||s===n.body)&&(s=nt(o)),s}function Zw(o){var s;return o&&(o===window?s={left:0,top:0,width:window.innerWidth,height:window.innerHeight,right:window.innerWidth,bottom:window.innerHeight}:o.getBoundingClientRect&&(s=o.getBoundingClientRect())),s}function Wy(o){console&&console.warn&&console.warn(o)}function B0(o,s,n,t,i){if(i===!0&&!1)for(var d,c;d<c.length;d++)var u}(function(o){Ne(s,o);function s(n,t){var i=o.call(this,n,t)||this;return n5(i,s.prototype,["componentDidMount","shouldComponentUpdate","getSnapshotBeforeUpdate","render","componentDidUpdate","componentWillUnmount"]),i}return s.prototype.componentDidUpdate=function(n,t){this._updateComponentRef(n,this.props)},s.prototype.componentDidMount=function(){this._setComponentRef(this.props.componentRef,this)},s.prototype.componentWillUnmount=function(){if(this._setComponentRef(this.props.componentRef,null),this.__disposables){for(var n=0,t=this._disposables.length;n<t;n++){var i=this.__disposables[n];i.dispose&&i.dispose()}this.__disposables=null}},Object.defineProperty(s.prototype,"className",{get:function(){if(!this.__className){var n=/function (.{1,})\(/,t=n.exec(this.constructor.toString());this.__className=t&&t.length>1?t[1]:""}return this.__className},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"_disposables",{get:function(){return this.__disposables||(this.__disposables=[]),this.__disposables},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"_async",{get:function(){return this.__async||(this.__async=new Wn(this),this._disposables.push(this.__async)),this.__async},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"_events",{get:function(){return this.__events||(this.__events=new Yt(this),this._disposables.push(this.__events)),this.__events},enumerable:!0,configurable:!0}),s.prototype._resolveRef=function(n){var t=this;return this.__resolves||(this.__resolves={}),this.__resolves[n]||(this.__resolves[n]=function(i){return t[n]=i}),this.__resolves[n]},s.prototype._updateComponentRef=function(n,t){t===void 0&&(t={}),n&&t&&n.componentRef!==t.componentRef&&(this._setComponentRef(n.componentRef,null),this._setComponentRef(t.componentRef,this))},s.prototype._warnDeprecations=function(n){this.className,this.props},s.prototype._warnMutuallyExclusive=function(n){this.className,this.props},s.prototype._warnConditionallyRequiredProps=function(n,t,i){B0(this.className,this.props,n,t,i)},s.prototype._setComponentRef=function(n,t){!this._skipComponentRefResolution&&n&&(typeof n=="function"&&n(t),typeof n=="object"&&(n.current=t))},s})(M.Component);function n5(o,s,n){for(var t=0,i=n.length;t<i;t++)r5(o,s,n[t])}function r5(o,s,n){var t=o[n],i=s[n];(t||i)&&(o[n]=function(){for(var d=[],c=0;c<arguments.length;c++)d[c]=arguments[c];var u;return i&&(u=i.apply(this,d)),t!==i&&(u=t.apply(this,d)),u})}function md(){return null}var og=(function(o){Ne(s,o);function s(n){var t=o.call(this,n)||this;return t.state={isRendered:!1},t}return s.prototype.componentDidMount=function(){var n=this,t=this.props.delay;this._timeoutId=window.setTimeout(function(){n.setState({isRendered:!0})},t)},s.prototype.componentWillUnmount=function(){this._timeoutId&&clearTimeout(this._timeoutId)},s.prototype.render=function(){return this.state.isRendered?M.Children.only(this.props.children):null},s.defaultProps={delay:0},s})(M.Component),M_="__globalSettings__",By="__callbacks__",o5=0,H0=(function(){function o(){}return o.getValue=function(s,n){var t=uy();return t[s]===void 0&&(t[s]=typeof n=="function"?n():n),t[s]},o.setValue=function(s,n){var t=uy(),i=t[By],d=t[s];if(n!==d){t[s]=n;var c={oldValue:d,value:n,key:s};for(var u in i)i.hasOwnProperty(u)&&i[u](c)}return n},o.addChangeListener=function(s){var n=s.__id__,t=Xw();n||(n=s.__id__=String(o5++)),t[n]=s},o.removeChangeListener=function(s){var n=Xw();delete n[s.__id__]},o})();function uy(){var o,s=nt(),n=s||{};return n[M_]||(n[M_]=(o={},o[By]={},o)),n[M_]}function Xw(){var o=uy();return o[By]}var ke={tab:9,enter:13,alt:18,escape:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,a:65,c:67},No=(function(){function o(s,n,t,i){s===void 0&&(s=0),n===void 0&&(n=0),t===void 0&&(t=0),i===void 0&&(i=0),this.top=t,this.bottom=i,this.left=s,this.right=n}return Object.defineProperty(o.prototype,"width",{get:function(){return this.right-this.left},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"height",{get:function(){return this.bottom-this.top},enumerable:!0,configurable:!0}),o.prototype.equals=function(s){return parseFloat(this.top.toFixed(4))===parseFloat(s.top.toFixed(4))&&parseFloat(this.bottom.toFixed(4))===parseFloat(s.bottom.toFixed(4))&&parseFloat(this.left.toFixed(4))===parseFloat(s.left.toFixed(4))&&parseFloat(this.right.toFixed(4))===parseFloat(s.right.toFixed(4))},o})();function s5(o){for(var s=[],n=1;n<arguments.length;n++)s[n-1]=arguments[n];return s.length<2?s[0]:function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];s.forEach(function(d){return d&&d.apply(o,t)})}}function Za(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];var n=o.filter(function(t){return t}).join(" ").trim();return n===""?void 0:n}function Hy(o,s,n){n===void 0&&(n=0);for(var t=-1,i=n;o&&i<o.length;i++)if(s(o[i],i)){t=i;break}return t}function Qw(o,s){var n=Hy(o,s);if(!(n<0))return o[n]}function i5(o,s,n){var t=o.slice();return t.splice(s,0,n),t}function a5(o,s){if(o.length!==s.length)return!1;for(var n=0;n<o.length;n++)if(o[n]!==s[n])return!1;return!0}function z0(o){var s=null;try{var n=nt();s=n?n.sessionStorage.getItem(o):null}catch{}return s}function l5(o,s){var n;try{(n=nt())===null||n===void 0||n.sessionStorage.setItem(o,s)}catch{}}var U0="isRTL",Xi;function Tt(o){if(o===void 0&&(o={}),o.rtl!==void 0)return o.rtl;if(Xi===void 0){var s=z0(U0);s!==null&&(Xi=s==="1",d5(Xi));var n=_n();Xi===void 0&&n&&(Xi=(n.body&&n.body.getAttribute("dir")||n.documentElement.getAttribute("dir"))==="rtl",j0(Xi))}return!!Xi}function d5(o,s){s===void 0&&(s=!1);var n=_n();n&&n.documentElement.setAttribute("dir",o?"rtl":"ltr"),s&&l5(U0,o?"1":"0"),Xi=o,j0(Xi)}function Wf(o,s){return s===void 0&&(s={}),Tt(s)&&(o===ke.left?o=ke.right:o===ke.right&&(o=ke.left)),o}function c5(o){return o&&!!o._virtual}function u5(o){var s;return o&&c5(o)&&(s=o._virtual.parent),s}function Cn(o,s){return s===void 0&&(s=!0),o&&(s&&u5(o)||o.parentNode&&o.parentNode)}function un(o,s,n){n===void 0&&(n=!0);var t=!1;if(o&&s)if(n)if(o===s)t=!0;else for(t=!1;s;){var i=Cn(s);if(i===o){t=!0;break}s=i}else o.contains&&(t=o.contains(s));return t}function zy(o,s){return!o||o===document.body?null:s(o)?o:zy(Cn(o),s)}function p5(o,s){var n=zy(o,function(t){return t.hasAttribute(s)});return n&&n.getAttribute(s)}var py="data-portal-element";function h5(o){o.setAttribute(py,"true")}function Uy(o,s){var n=zy(o,function(t){return s===t||t.hasAttribute(py)});return n!==null&&n.hasAttribute(py)}function ev(o,s){var n=o,t=s;n._virtual||(n._virtual={children:[]});var i=n._virtual.parent;if(i&&i!==s){var d=i._virtual.children.indexOf(n);d>-1&&i._virtual.children.splice(d,1)}n._virtual.parent=t||void 0,t&&(t._virtual||(t._virtual={children:[]}),t._virtual.children.push(n))}function hs(o,s,n,t){return o.addEventListener(s,n,t),function(){return o.removeEventListener(s,n,t)}}var m5=50,f5=5,Lf=0,j_=gs.getInstance();j_&&j_.onReset&&j_.onReset(function(){return Lf++});var $m="__retval__";function Je(o){o===void 0&&(o={});var s=new Map,n=0,t=0,i=Lf,d=function(c,u){u===void 0&&(u={});var h,g;if(o.useStaticStyles&&typeof c=="function"&&c.__noStyleOverride__)return c(u);t++;var w=s,m=u.theme,x=m&&m.rtl!==void 0?m.rtl:Tt(),_=o.disableCaching;if(i!==Lf&&(i=Lf,s=new Map,n=0),o.disableCaching||(w=tv(s,c),w=tv(w,u)),(_||!w[$m])&&(c===void 0?w[$m]={}:w[$m]=P0([typeof c=="function"?c(u):c],{rtl:!!x,specificityMultiplier:o.useStaticStyles?f5:void 0}),_||n++),n>(o.cacheSize||m5)){var v=nt();!((g=(h=v)===null||h===void 0?void 0:h.FabricConfig)===null||g===void 0)&&g.enableClassNameCacheFullWarning&&(console.warn("Styles are being recalculated too frequently. Cache miss rate is "+n+"/"+t+"."),console.trace()),s.clear(),n=0,o.disableCaching=!0}return w[$m]};return d}function L_(o,s){return s=g5(s),o.has(s)||o.set(s,new Map),o.get(s)}function tv(o,s){if(typeof s=="function"){var n=s.__cachedInputs__;if(n)for(var t=0,i=s.__cachedInputs__;t<i.length;t++){var d=i[t];o=L_(o,d)}else o=L_(o,s)}else if(typeof s=="object")for(var c in s)s.hasOwnProperty(c)&&(o=L_(o,s[c]));return o}function g5(o){switch(o){case void 0:return"__undefined__";case null:return"__null__";default:return o}}var nv=!1,Ef=0,_5={empty:!0},E_={},Yp=typeof WeakMap>"u"?null:WeakMap;function y5(){Ef++}function Et(o,s,n){if(s===void 0&&(s=100),n===void 0&&(n=!1),!Yp)return o;if(!nv){var t=gs.getInstance();t&&t.onReset&&gs.getInstance().onReset(y5),nv=!0}var i,d=0,c=Ef;return function(){for(var h=[],g=0;g<arguments.length;g++)h[g]=arguments[g];var w=i;(i===void 0||c!==Ef||s>0&&d>s)&&(i=rv(),d=0,c=Ef),w=i;for(var m=0;m<h.length;m++){var x=w5(h[m]);w.map.has(x)||w.map.set(x,rv()),w=w.map.get(x)}return w.hasOwnProperty("value")||(w.value=o.apply(void 0,h),d++),n&&(w.value===null||w.value===void 0)&&(w.value=o.apply(void 0,h)),w.value}}function Kc(o){if(!Yp)return o;var s=new Yp;function n(t){if(!t||typeof t!="function"&&typeof t!="object")return o(t);if(s.has(t))return s.get(t);var i=o(t);return s.set(t,i),i}return n}function w5(o){if(o){if(typeof o=="object"||typeof o=="function")return o;E_[o]||(E_[o]={val:o})}else return _5;return E_[o]}function rv(){return{map:Yp?new Yp:null}}function v5(o){var s=o,n=Kc(function(t){if(o===t)throw new Error("Attempted to compose a component with itself.");var i=t,d=Kc(function(u){var h=function(g){return M.createElement(i,F({},g,{defaultRender:u}))};return h}),c=function(u){var h=u.defaultRender;return M.createElement(s,F({},u,{defaultRender:h?d(h):i}))};return c});return n}var x5=Kc(v5);function V0(o,s){return x5(o)(s)}function G0(o,s){return o[s]!==void 0&&o[s]!==null}function on(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];for(var n=[],t=0,i=o;t<i.length;t++){var d=i[t];if(d)if(typeof d=="string")n.push(d);else if(d.hasOwnProperty("toString")&&typeof d.toString=="function")n.push(d.toString());else for(var c in d)d[c]&&n.push(c)}return n.join(" ")}var b5="customizations",S5={settings:{},scopedSettings:{},inCustomizerContext:!1},Na=H0.getValue(b5,{settings:{},scopedSettings:{},inCustomizerContext:!1}),Km=[],fs=(function(){function o(){}return o.reset=function(){Na.settings={},Na.scopedSettings={}},o.applySettings=function(s){Na.settings=F(F({},Na.settings),s),o._raiseChange()},o.applyScopedSettings=function(s,n){Na.scopedSettings[s]=F(F({},Na.scopedSettings[s]),n),o._raiseChange()},o.getSettings=function(s,n,t){t===void 0&&(t=S5);for(var i={},d=n&&t.scopedSettings[n]||{},c=n&&Na.scopedSettings[n]||{},u=0,h=s;u<h.length;u++){var g=h[u];i[g]=d[g]||t.settings[g]||c[g]||Na.settings[g]}return i},o.applyBatchedUpdates=function(s,n){o._suppressUpdates=!0;try{s()}catch{}o._suppressUpdates=!1,n||o._raiseChange()},o.observe=function(s){Km.push(s)},o.unobserve=function(s){Km=Km.filter(function(n){return n!==s})},o._raiseChange=function(){o._suppressUpdates||Km.forEach(function(s){return s()})},o})(),Wp=M.createContext({customizations:{inCustomizerContext:!1,settings:{},scopedSettings:{}}});function C5(o,s){o===void 0&&(o={});var n=$0(s)?s:M5(s);return n(o)}function k5(o,s){o===void 0&&(o={});var n=$0(s)?s:j5(s);return n(o)}function $0(o){return typeof o=="function"}function M5(o){return function(s){return o?F(F({},s),o):s}}function j5(o){return o===void 0&&(o={}),function(s){var n=F({},s);for(var t in o)o.hasOwnProperty(t)&&(n[t]=F(F({},s[t]),o[t]));return n}}function L5(o,s){var n=(s||{}).customizations,t=n===void 0?{settings:{},scopedSettings:{}}:n;return{customizations:{settings:C5(t.settings,o.settings),scopedSettings:k5(t.scopedSettings,o.scopedSettings),inCustomizerContext:!0}}}var E5=(function(o){Ne(s,o);function s(){var n=o!==null&&o.apply(this,arguments)||this;return n._onCustomizationChange=function(){return n.forceUpdate()},n}return s.prototype.componentDidMount=function(){fs.observe(this._onCustomizationChange)},s.prototype.componentWillUnmount=function(){fs.unobserve(this._onCustomizationChange)},s.prototype.render=function(){var n=this,t=this.props.contextTransform;return M.createElement(Wp.Consumer,null,function(i){var d=L5(n.props,i);return t&&(d=t(d)),M.createElement(Wp.Provider,{value:d},n.props.children)})},s})(M.Component);function K0(o,s){for(var n in o)o.hasOwnProperty(n)&&(s[n]=o[n]);return s}function eu(o,s,n){return function(i){var d,c=(d=(function(u){Ne(h,u);function h(g){var w=u.call(this,g)||this;return w._styleCache={},w._onSettingChanged=w._onSettingChanged.bind(w),w}return h.prototype.componentDidMount=function(){fs.observe(this._onSettingChanged)},h.prototype.componentWillUnmount=function(){fs.unobserve(this._onSettingChanged)},h.prototype.render=function(){var g=this;return M.createElement(Wp.Consumer,null,function(w){var m=fs.getSettings(s,o,w.customizations),x=g.props;if(m.styles&&typeof m.styles=="function"&&(m.styles=m.styles(F(F({},m),x))),n&&m.styles){if(g._styleCache.default!==m.styles||g._styleCache.component!==x.styles){var _=Vs(m.styles,x.styles);g._styleCache.default=m.styles,g._styleCache.component=x.styles,g._styleCache.merged=_}return M.createElement(i,F({},m,x,{styles:g._styleCache.merged}))}return M.createElement(i,F({},m,x))})},h.prototype._onSettingChanged=function(){this.forceUpdate()},h})(M.Component),d.displayName="Customized"+o,d);return K0(i,c)}}function D5(o,s){var n=I5(),t=M.useContext(Wp).customizations,i=t.inCustomizerContext;return M.useEffect(function(){return i||fs.observe(n),function(){i||fs.unobserve(n)}},[i]),fs.getSettings(o,s,t)}function I5(){var o=M.useState(0),s=o[1];return function(){return s(function(n){return++n})}}function q0(o,s){for(var n in s)s.hasOwnProperty(n)&&(o[n]=s5(o,o[n],s[n]))}var J0="data-is-focusable",T5="data-is-visible",A5="data-focuszone-id",P5="data-is-sub-focuszone";function Z0(o,s,n){return $r(o,s,!0,!1,!1,n)}function X0(o,s,n){return co(o,s,!0,!1,!0,n)}function R5(o,s,n,t){return $r(o,s,t,!1,!1,n,!1,!0)}function F5(o,s,n,t){return co(o,s,t,!1,!0,n,!1,!0)}function sg(o){var s=$r(o,o,!0,!1,!1,!0);return s?(eb(s),!0):!1}function co(o,s,n,t,i,d,c,u){if(!s||!c&&s===o)return null;var h=Vy(s);if(i&&h&&(d||!(Qi(s)||Gy(s)))){var g=co(o,s.lastElementChild,!0,!0,!0,d,c,u);if(g){if(u&&Os(g,!0)||!u)return g;var w=co(o,g.previousElementSibling,!0,!0,!0,d,c,u);if(w)return w;for(var m=g.parentElement;m&&m!==s;){var x=co(o,m.previousElementSibling,!0,!0,!0,d,c,u);if(x)return x;m=m.parentElement}}}if(n&&h&&Os(s,u))return s;var _=co(o,s.previousElementSibling,!0,!0,!0,d,c,u);return _||(t?null:co(o,s.parentElement,!0,!1,!1,d,c,u))}function $r(o,s,n,t,i,d,c,u){if(!s||s===o&&i&&!c)return null;var h=Vy(s);if(n&&h&&Os(s,u))return s;if(!i&&h&&(d||!(Qi(s)||Gy(s)))){var g=$r(o,s.firstElementChild,!0,!0,!1,d,c,u);if(g)return g}if(s===o)return null;var w=$r(o,s.nextElementSibling,!0,!0,!1,d,c,u);return w||(t?null:$r(o,s.parentElement,!1,!1,!0,d,c,u))}function Vy(o){if(!o||!o.getAttribute)return!1;var s=o.getAttribute(T5);return s!=null?s==="true":o.offsetHeight!==0||o.offsetParent!==null||o.isVisible===!0}function Os(o,s){if(!o||o.disabled)return!1;var n=0,t=null;o&&o.getAttribute&&(t=o.getAttribute("tabIndex"),t&&(n=parseInt(t,10)));var i=o.getAttribute?o.getAttribute(J0):null,d=t!==null&&n>=0,c=!!o&&i!=="false"&&(o.tagName==="A"||o.tagName==="BUTTON"||o.tagName==="INPUT"||o.tagName==="TEXTAREA"||o.tagName==="SELECT"||i==="true"||d);return s?n!==-1&&c:c}function Qi(o){return!!(o&&o.getAttribute&&o.getAttribute(A5))}function Gy(o){return!!(o&&o.getAttribute&&o.getAttribute(P5)==="true")}function N5(o){var s=_n(o),n=s&&s.activeElement;return!!(n&&un(o,n))}function Q0(o,s){return p5(o,s)!=="true"}var xp=void 0;function eb(o){if(o){if(xp){xp=o;return}xp=o;var s=nt(o);s&&s.requestAnimationFrame(function(){var n=xp;xp=void 0,n&&(n.getAttribute&&n.getAttribute(J0)==="true"&&(n.getAttribute("tabindex")||n.setAttribute("tabindex","0")),n.focus())})}}function O5(o,s){for(var n=o,t=0,i=s;t<i.length;t++){var d=i[t],c=n.children[Math.min(d,n.children.length-1)];if(!c)break;n=c}return n=Os(n)&&Vy(n)?n:$r(o,n,!0)||co(o,n),n}function Y5(o,s){for(var n=[];s&&o&&s!==o;){var t=Cn(s,!0);if(t===null)return[];n.unshift(Array.prototype.indexOf.call(t.children,s)),s=t}return n}var Bf="__currentId__",W5="id__",Hf=nt()||{};Hf[Bf]===void 0&&(Hf[Bf]=0);var ov=!1;function zt(o){if(!ov){var s=gs.getInstance();s&&s.onReset&&s.onReset(B5),ov=!0}var n=Hf[Bf]++;return(o===void 0?W5:o)+n}function B5(o){o===void 0&&(o=0),Hf[Bf]=o}var bn=function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];for(var n={},t=0,i=o;t<i.length;t++)for(var d=i[t],c=Array.isArray(d)?d:Object.keys(d),u=0,h=c;u<h.length;u++){var g=h[u];n[g]=1}return n},H5=bn(["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"]),z5=bn(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),sn=bn(z5,H5),U5=bn(sn,["form"]),tb=bn(sn,["height","loop","muted","preload","src","width"]),V5=bn(tb,["poster"]),G5=bn(sn,["start"]),$5=bn(sn,["value"]),$y=bn(sn,["download","href","hrefLang","media","rel","target","type"]),Xa=bn(sn,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"]),ah=bn(Xa,["accept","alt","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),nb=bn(Xa,["autoCapitalize","cols","dirname","form","maxLength","placeholder","readOnly","required","rows","wrap"]),K5=bn(Xa,["form","multiple","required"]),q5=bn(sn,["selected","value"]),J5=bn(sn,["cellPadding","cellSpacing"]),Z5=sn,X5=bn(sn,["rowSpan","scope"]),Q5=bn(sn,["colSpan","headers","rowSpan","scope"]),eM=bn(sn,["span"]),tM=bn(sn,["span"]),nM=bn(sn,["acceptCharset","action","encType","encType","method","noValidate","target"]),rM=bn(sn,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),rb=bn(sn,["alt","crossOrigin","height","src","srcSet","useMap","width"]),Yn=sn;function pt(o,s,n){for(var t,i=Array.isArray(s),d={},c=Object.keys(o),u=0,h=c;u<h.length;u++){var g=h[u],w=!i&&s[g]||i&&s.indexOf(g)>=0||g.indexOf("data-")===0||g.indexOf("aria-")===0;w&&(!n||((t=n)===null||t===void 0?void 0:t.indexOf(g))===-1)&&(d[g]=o[g])}return d}var oM={label:U5,audio:tb,video:V5,ol:G5,li:$5,a:$y,button:Xa,input:ah,textarea:nb,select:K5,option:q5,table:J5,tr:Z5,th:X5,td:Q5,colGroup:eM,col:tM,form:nM,iframe:rM,img:rb};function sM(o,s,n){var t=oM[o]||sn;return pt(s,t,n)}var iM=["setState","render","componentWillMount","UNSAFE_componentWillMount","componentDidMount","componentWillReceiveProps","UNSAFE_componentWillReceiveProps","shouldComponentUpdate","componentWillUpdate","getSnapshotBeforeUpdate","UNSAFE_componentWillUpdate","componentDidUpdate","componentWillUnmount"];function aM(o,s,n){n===void 0&&(n=iM);var t=[],i=function(c){typeof s[c]=="function"&&o[c]===void 0&&(!n||n.indexOf(c)===-1)&&(t.push(c),o[c]=function(){for(var u=[],h=0;h<arguments.length;h++)u[h]=arguments[h];s[c].apply(s,u)})};for(var d in s)i(d);return t}function lM(o,s){s.forEach(function(n){return delete o[n]})}function St(o){q0(o,{componentDidMount:dM,componentDidUpdate:cM,componentWillUnmount:uM})}function dM(){zf(this.props.componentRef,this)}function cM(o){o.componentRef!==this.props.componentRef&&(zf(o.componentRef,null),zf(this.props.componentRef,this))}function uM(){zf(this.props.componentRef,null)}function zf(o,s){o&&(typeof o=="object"?o.current=s:typeof o=="function"&&o(s))}var Ps,pM=(Ps={},Ps[ke.up]=1,Ps[ke.down]=1,Ps[ke.left]=1,Ps[ke.right]=1,Ps[ke.home]=1,Ps[ke.end]=1,Ps[ke.tab]=1,Ps[ke.pageUp]=1,Ps[ke.pageDown]=1,Ps);function hM(o){return!!pM[o]}var fn="ms-Fabric--isFocusVisible",sv="ms-Fabric--isFocusHidden";function dd(o,s){var n=s?nt(s):nt();if(n){var t=n.document.body.classList;t.add(o?fn:sv),t.remove(o?sv:fn)}}var iv=new WeakMap;function av(o,s){var n,t=iv.get(o);return t?n=t+s:n=1,iv.set(o,n),n}function mM(o){M.useEffect(function(){var s,n,t=nt((s=o)===null||s===void 0?void 0:s.current);if(!(!t||((n=t.FabricConfig)===null||n===void 0?void 0:n.disableFocusRects)===!0)){var i=av(t,1);return i<=1&&(t.addEventListener("mousedown",lv,!0),t.addEventListener("pointerdown",dv,!0),t.addEventListener("keydown",cv,!0)),function(){var d;!t||((d=t.FabricConfig)===null||d===void 0?void 0:d.disableFocusRects)===!0||(i=av(t,-1),i===0&&(t.removeEventListener("mousedown",lv,!0),t.removeEventListener("pointerdown",dv,!0),t.removeEventListener("keydown",cv,!0)))}}},[o])}var tu=function(o){return mM(o.rootRef),null};function lv(o){dd(!1,o.target)}function dv(o){o.pointerType!=="mouse"&&dd(!1,o.target)}function cv(o){hM(o.which)&&dd(!0,o.target)}var Ql,fM="language";function gM(o){if(Ql===void 0){var s=_n(),n=z0(fM);n&&(Ql=n),Ql===void 0&&s&&(Ql=s.documentElement.getAttribute("lang")),Ql===void 0&&(Ql="en")}return Ql}function uv(o){for(var s=[],n=1;n<arguments.length;n++)s[n-1]=arguments[n];for(var t=0,i=s;t<i.length;t++){var d=i[t];ob(o||{},d)}return o}function ob(o,s,n){n===void 0&&(n=[]),n.push(s);for(var t in s)if(s.hasOwnProperty(t)&&t!=="__proto__"&&t!=="constructor"&&t!=="prototype"){var i=s[t];if(typeof i=="object"&&i!==null&&!Array.isArray(i)){var d=n.indexOf(i)>-1;o[t]=d?i:ob(o[t]||{},i,n)}else o[t]=i}return n.pop(),o}var hy=function(){return!window||!window.navigator||!window.navigator.userAgent?!1:/iPad|iPhone|iPod/i.test(window.navigator.userAgent)};function pv(o){for(var s,n=[],t=_n(o)||document;o!==t.body;){for(var i=0,d=o.parentElement.children;i<d.length;i++){var c=d[i];c!==o&&((s=c.getAttribute("aria-hidden"))===null||s===void 0?void 0:s.toLowerCase())!=="true"&&n.push(c)}if(!o.parentElement)break;o=o.parentElement}return n.forEach(function(u){u.setAttribute("aria-hidden","true")}),function(){_M(n),n=[]}}function _M(o){o.forEach(function(s){s.setAttribute("aria-hidden","false")})}var D_;function my(o){if(typeof D_>"u"||o){var s=nt(),n=s&&s.navigator.userAgent;D_=!!n&&n.indexOf("Macintosh")!==-1}return!!D_}function yM(o){return o.clientWidth<o.scrollWidth}function wM(o){return o.clientHeight<o.scrollHeight}function vM(o){return yM(o)||wM(o)}function xM(o){var s=Kc(function(n){var t=Kc(function(i){return function(d){return n(d,i)}});return function(i,d){return o(i,d?t(d):n)}});return s}var bM=Kc(xM);function Oo(o,s){return bM(o)(s)}var SM=function(o){var s;return function(n){s||(s=new Set,q0(o,{componentWillUnmount:function(){s.forEach(function(i){return cancelAnimationFrame(i)})}}));var t=requestAnimationFrame(function(){s.delete(t),n()});s.add(t)}},ig="change",CM="items-change",st;(function(o){o[o.none=0]="none",o[o.single=1]="single",o[o.multiple=2]="multiple"})(st||(st={}));var hv;(function(o){o[o.horizontal=0]="horizontal",o[o.vertical=1]="vertical"})(hv||(hv={}));var kM=(function(){function o(){for(var s=[],n=0;n<arguments.length;n++)s[n]=arguments[n];var t=s[0]||{},i=t.onSelectionChanged,d=t.onItemsChanged,c=t.getKey,u=t.canSelectItem,h=u===void 0?function(){return!0}:u,g=t.items,w=t.selectionMode,m=w===void 0?st.multiple:w;this.mode=m,this._getKey=c||MM,this._changeEventSuppressionCount=0,this._exemptedCount=0,this._anchoredIndex=0,this._unselectableCount=0,this._onSelectionChanged=i,this._onItemsChanged=d,this._canSelectItem=h,this._keyToIndexMap={},this._isModal=!1,this.setItems(g||[],!0),this.count=this.getSelectedCount()}return o.prototype.canSelectItem=function(s,n){return typeof n=="number"&&n<0?!1:this._canSelectItem(s,n)},o.prototype.getKey=function(s,n){var t=this._getKey(s,n);return typeof t=="number"||t?""+t:""},o.prototype.setChangeEvents=function(s,n){this._changeEventSuppressionCount+=s?-1:1,this._changeEventSuppressionCount===0&&this._hasChanged&&(this._hasChanged=!1,n||this._change())},o.prototype.isModal=function(){return this._isModal},o.prototype.setModal=function(s){this._isModal!==s&&(this.setChangeEvents(!1),this._isModal=s,s||this.setAllSelected(!1),this._change(),this.setChangeEvents(!0))},o.prototype.setItems=function(s,n){n===void 0&&(n=!0);var t={},i={},d=!1;this.setChangeEvents(!1),this._unselectableCount=0;for(var c=!1,u=0;u<s.length;u++){var h=s[u];if(h){var g=this.getKey(h,u);g&&(!c&&(!(g in this._keyToIndexMap)||this._keyToIndexMap[g]!==u)&&(c=!0),t[g]=u)}i[u]=h&&!this.canSelectItem(h),i[u]&&this._unselectableCount++}(n||s.length===0)&&this._setAllSelected(!1,!0);var w={},m=0;for(var x in this._exemptedIndices)if(this._exemptedIndices.hasOwnProperty(x)){var _=Number(x),h=this._items[_],v=h?this.getKey(h,Number(_)):void 0,b=v?t[v]:_;b===void 0?d=!0:(w[b]=!0,m++,d=d||b!==_)}if(this._items&&this._exemptedCount===0&&s.length!==this._items.length&&this._isAllSelected&&(d=!0),!c)for(var C=0,k=Object.keys(this._keyToIndexMap);C<k.length;C++){var g=k[C];if(!(g in t)){c=!0;break}}this._exemptedIndices=w,this._exemptedCount=m,this._keyToIndexMap=t,this._unselectableIndices=i,this._items=s,this._selectedItems=null,d&&this._updateCount(),c&&(Yt.raise(this,CM),this._onItemsChanged&&this._onItemsChanged()),d&&this._change(),this.setChangeEvents(!0)},o.prototype.getItems=function(){return this._items},o.prototype.getSelection=function(){if(!this._selectedItems){this._selectedItems=[];var s=this._items;if(s)for(var n=0;n<s.length;n++)this.isIndexSelected(n)&&this._selectedItems.push(s[n])}return this._selectedItems},o.prototype.getSelectedCount=function(){return this._isAllSelected?this._items.length-this._exemptedCount-this._unselectableCount:this._exemptedCount},o.prototype.getSelectedIndices=function(){if(!this._selectedIndices){this._selectedIndices=[];var s=this._items;if(s)for(var n=0;n<s.length;n++)this.isIndexSelected(n)&&this._selectedIndices.push(n)}return this._selectedIndices},o.prototype.getItemIndex=function(s){var n=this._keyToIndexMap[s];return n??-1},o.prototype.isRangeSelected=function(s,n){if(n===0)return!1;for(var t=s+n,i=s;i<t;i++)if(!this.isIndexSelected(i))return!1;return!0},o.prototype.isAllSelected=function(){var s=this._items.length-this._unselectableCount;return this.mode===st.single&&(s=Math.min(s,1)),this.count>0&&this._isAllSelected&&this._exemptedCount===0||!this._isAllSelected&&this._exemptedCount===s&&s>0},o.prototype.isKeySelected=function(s){var n=this._keyToIndexMap[s];return this.isIndexSelected(n)},o.prototype.isIndexSelected=function(s){return!!(this.count>0&&this._isAllSelected&&!this._exemptedIndices[s]&&!this._unselectableIndices[s]||!this._isAllSelected&&this._exemptedIndices[s])},o.prototype.setAllSelected=function(s){if(!(s&&this.mode!==st.multiple)){var n=this._items?this._items.length-this._unselectableCount:0;this.setChangeEvents(!1),n>0&&(this._exemptedCount>0||s!==this._isAllSelected)&&(this._exemptedIndices={},(s!==this._isAllSelected||this._exemptedCount>0)&&(this._exemptedCount=0,this._isAllSelected=s,this._change()),this._updateCount()),this.setChangeEvents(!0)}},o.prototype.setKeySelected=function(s,n,t){var i=this._keyToIndexMap[s];i>=0&&this.setIndexSelected(i,n,t)},o.prototype.setIndexSelected=function(s,n,t){if(this.mode!==st.none&&(s=Math.min(Math.max(0,s),this._items.length-1),!(s<0||s>=this._items.length))){this.setChangeEvents(!1);var i=this._exemptedIndices[s],d=!this._unselectableIndices[s];d&&(n&&this.mode===st.single&&this._setAllSelected(!1,!0),i&&(n&&this._isAllSelected||!n&&!this._isAllSelected)&&(delete this._exemptedIndices[s],this._exemptedCount--),!i&&(n&&!this._isAllSelected||!n&&this._isAllSelected)&&(this._exemptedIndices[s]=!0,this._exemptedCount++),t&&(this._anchoredIndex=s)),this._updateCount(),this.setChangeEvents(!0)}},o.prototype.setRangeSelected=function(s,n,t,i){if(this.mode!==st.none&&(s=Math.min(Math.max(0,s),this._items.length-1),n=Math.min(Math.max(0,n),this._items.length-s),!(s<0||s>=this._items.length||n===0))){this.setChangeEvents(!1);for(var d=this._anchoredIndex||0,c=s,u=s+n-1,h=d>=u?c:u;c<=u;c++)this.setIndexSelected(c,t,i?c===h:!1);this.setChangeEvents(!0)}},o.prototype.selectToKey=function(s,n){this.selectToIndex(this._keyToIndexMap[s],n)},o.prototype.selectToRange=function(s,n,t){if(this.mode!==st.none){if(this.mode===st.single){n===1&&this.setIndexSelected(s,!0,!0);return}var i=this._anchoredIndex||0,d=Math.min(s,i),c=Math.max(s+n-1,i);for(this.setChangeEvents(!1),t&&this._setAllSelected(!1,!0);d<=c;d++)this.setIndexSelected(d,!0,!1);this.setChangeEvents(!0)}},o.prototype.selectToIndex=function(s,n){if(this.mode!==st.none){if(this.mode===st.single){this.setIndexSelected(s,!0,!0);return}var t=this._anchoredIndex||0,i=Math.min(s,t),d=Math.max(s,t);for(this.setChangeEvents(!1),n&&this._setAllSelected(!1,!0);i<=d;i++)this.setIndexSelected(i,!0,!1);this.setChangeEvents(!0)}},o.prototype.toggleAllSelected=function(){this.setAllSelected(!this.isAllSelected())},o.prototype.toggleKeySelected=function(s){this.setKeySelected(s,!this.isKeySelected(s),!0)},o.prototype.toggleIndexSelected=function(s){this.setIndexSelected(s,!this.isIndexSelected(s),!0)},o.prototype.toggleRangeSelected=function(s,n){if(this.mode!==st.none){var t=this.isRangeSelected(s,n),i=s+n;if(!(this.mode===st.single&&n>1)){this.setChangeEvents(!1);for(var d=s;d<i;d++)this.setIndexSelected(d,!t,!1);this.setChangeEvents(!0)}}},o.prototype._updateCount=function(s){s===void 0&&(s=!1);var n=this.getSelectedCount();n!==this.count&&(this.count=n,this._change()),!this.count&&!s&&this.setModal(!1)},o.prototype._setAllSelected=function(s,n){if(n===void 0&&(n=!1),!(s&&this.mode!==st.multiple)){var t=this._items?this._items.length-this._unselectableCount:0;this.setChangeEvents(!1),t>0&&(this._exemptedCount>0||s!==this._isAllSelected)&&(this._exemptedIndices={},(s!==this._isAllSelected||this._exemptedCount>0)&&(this._exemptedCount=0,this._isAllSelected=s,this._change()),this._updateCount(n)),this.setChangeEvents(!0)}},o.prototype._change=function(){this._changeEventSuppressionCount===0?(this._selectedItems=null,this._selectedIndices=void 0,Yt.raise(this,ig),this._onSelectionChanged&&this._onSelectionChanged()):this._hasChanged=!0},o})();function MM(o,s){var n=(o||{}).key,t=n===void 0?""+s:n;return t}var jM=["theme","styles"];function Ze(o,s,n,t,i){t=t||{scope:"",fields:void 0};var d=t.scope,c=t.fields,u=c===void 0?jM:c,h=M.forwardRef(function(w,m){var x=M.useRef(),_=D5(u,d),v=_.styles;_.dir;var b=mo(_,["styles","dir"]),C=n?n(w):void 0,k=x.current&&x.current.__cachedInputs__||[];if(!x.current||v!==k[1]||w.styles!==k[2]){var L=function(T){return R0(T,s,v,w.styles)};L.__cachedInputs__=[s,v,w.styles],L.__noStyleOverride__=!v&&!w.styles,x.current=L}return M.createElement(o,F({ref:m},b,C,w,{styles:x.current}))});h.displayName="Styled"+(o.displayName||o.name);var g=i?M.memo(h):h;return h.displayName&&(g.displayName=h.displayName),g}var LM=function(){var o,s,n=nt();return!((s=(o=n)===null||o===void 0?void 0:o.navigator)===null||s===void 0)&&s.userAgent?n.navigator.userAgent.indexOf("rv:11.0")>-1:!1},EM=function(o){return function(s){for(var n=0,t=o.refs;n<t.length;n++){var i=t[n];typeof i=="function"?i(s):i&&(i.current=s)}}},Ky=function(o){var s={refs:[]};return function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return(!s.resolver||!a5(s.refs,n))&&(s.resolver=EM(s)),s.refs=n,s.resolver}},DM="icons",Fo=H0.getValue(DM,{__options:{disableWarnings:!1,warnOnMissingIcons:!0},__remapped:{}}),I_=gs.getInstance();I_&&I_.onReset&&I_.onReset(function(){for(var o in Fo)Fo.hasOwnProperty(o)&&Fo[o].subset&&(Fo[o].subset.className=void 0)});var Uf=function(o){return o.toLowerCase()};function Bn(o,s){var n=F(F({},o),{isRegistered:!1,className:void 0}),t=o.icons;s=s?F(F({},Fo.__options),s):Fo.__options;for(var i in t)if(t.hasOwnProperty(i)){var d=t[i],c=Uf(i);Fo[c]?TM(i):Fo[c]={code:d,subset:n}}}function ed(o,s){Fo.__remapped[Uf(o)]=Uf(s)}function IM(o){var s=void 0,n=Fo.__options;if(o=o?Uf(o):"",o=Fo.__remapped[o]||o,o)if(s=Fo[o],s){var t=s.subset;t&&t.fontFace&&(t.isRegistered||(F0(t.fontFace),t.isRegistered=!0),t.className||(t.className=Bs(t.style,{fontFamily:t.fontFace.fontFamily,fontWeight:t.fontFace.fontWeight||"normal",fontStyle:t.fontFace.fontStyle||"normal"})))}else!n.disableWarnings&&n.warnOnMissingIcons&&Wy('The icon "'+o+'" was used but not registered. See https://github.com/microsoft/fluentui/wiki/Using-icons for more information.');return s}var bp=[],T_=void 0;function TM(o){var s=Fo.__options,n=2e3,t=10;s.disableWarnings||(bp.push(o),T_===void 0&&(T_=setTimeout(function(){Wy(`Some icons were re-registered. Applications should only call registerIcons for any given icon once. Redefining what an icon is may have unintended consequences. Duplicates include: 
`+bp.slice(0,t).join(", ")+(bp.length>t?" (+ "+(bp.length-t)+" more)":"")),T_=void 0,bp=[]},n)))}var rn="cubic-bezier(.1,.9,.2,1)",Do="cubic-bezier(.1,.25,.75,.9)",Dp="0.167s",fy="0.267s",Gt="0.367s",gy="0.467s",Jn=yn({from:{opacity:0},to:{opacity:1}}),Zn=yn({from:{opacity:1},to:{opacity:0,visibility:"hidden"}}),AM=nl(-10),PM=nl(-20),RM=nl(-40),FM=nl(-400),NM=nl(10),OM=nl(20),YM=nl(40),WM=nl(400),BM=ag(10),HM=ag(20),zM=ag(-10),UM=ag(-20),VM=rl(10),GM=rl(20),$M=rl(40),KM=rl(400),qM=rl(-10),JM=rl(-20),ZM=rl(-40),XM=rl(-400),QM=lg(-10),e3=lg(-20),t3=lg(10),n3=lg(20),r3=yn({from:{transform:"scale3d(.98,.98,1)"},to:{transform:"scale3d(1,1,1)"}}),o3=yn({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(.98,.98,1)"}}),s3=yn({from:{transform:"scale3d(1.03,1.03,1)"},to:{transform:"scale3d(1,1,1)"}}),i3=yn({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(1.03,1.03,1)"}}),a3=yn({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(90deg)"}}),l3=yn({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(-90deg)"}}),ms={easeFunction1:rn,easeFunction2:Do,durationValue1:Dp,durationValue2:fy,durationValue3:Gt,durationValue4:gy},sb={slideRightIn10:ft(Jn+","+AM,Gt,rn),slideRightIn20:ft(Jn+","+PM,Gt,rn),slideRightIn40:ft(Jn+","+RM,Gt,rn),slideRightIn400:ft(Jn+","+FM,Gt,rn),slideLeftIn10:ft(Jn+","+NM,Gt,rn),slideLeftIn20:ft(Jn+","+OM,Gt,rn),slideLeftIn40:ft(Jn+","+YM,Gt,rn),slideLeftIn400:ft(Jn+","+WM,Gt,rn),slideUpIn10:ft(Jn+","+BM,Gt,rn),slideUpIn20:ft(Jn+","+HM,Gt,rn),slideDownIn10:ft(Jn+","+zM,Gt,rn),slideDownIn20:ft(Jn+","+UM,Gt,rn),slideRightOut10:ft(Zn+","+VM,Gt,rn),slideRightOut20:ft(Zn+","+GM,Gt,rn),slideRightOut40:ft(Zn+","+$M,Gt,rn),slideRightOut400:ft(Zn+","+KM,Gt,rn),slideLeftOut10:ft(Zn+","+qM,Gt,rn),slideLeftOut20:ft(Zn+","+JM,Gt,rn),slideLeftOut40:ft(Zn+","+ZM,Gt,rn),slideLeftOut400:ft(Zn+","+XM,Gt,rn),slideUpOut10:ft(Zn+","+QM,Gt,rn),slideUpOut20:ft(Zn+","+e3,Gt,rn),slideDownOut10:ft(Zn+","+t3,Gt,rn),slideDownOut20:ft(Zn+","+n3,Gt,rn),scaleUpIn100:ft(Jn+","+r3,Gt,rn),scaleDownIn100:ft(Jn+","+s3,Gt,rn),scaleUpOut103:ft(Zn+","+i3,Dp,Do),scaleDownOut98:ft(Zn+","+o3,Dp,Do),fadeIn100:ft(Jn,Dp,Do),fadeIn200:ft(Jn,fy,Do),fadeIn400:ft(Jn,Gt,Do),fadeIn500:ft(Jn,gy,Do),fadeOut100:ft(Zn,Dp,Do),fadeOut200:ft(Zn,fy,Do),fadeOut400:ft(Zn,Gt,Do),fadeOut500:ft(Zn,gy,Do),rotate90deg:ft(a3,"0.1s",Do),rotateN90deg:ft(l3,"0.1s",Do)};function ft(o,s,n){return{animationName:o,animationDuration:s,animationTimingFunction:n,animationFillMode:"both"}}function nl(o){return yn({from:{transform:"translate3d("+o+"px,0,0)",pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function ag(o){return yn({from:{transform:"translate3d(0,"+o+"px,0)",pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function rl(o){return yn({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d("+o+"px,0,0)"}})}function lg(o){return yn({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(0,"+o+"px,0)"}})}var mv={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"},Pc;(function(o){o.depth0="0 0 0 0 transparent",o.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)",o.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)",o.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)",o.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)"})(Pc||(Pc={}));var fv={elevation4:Pc.depth4,elevation8:Pc.depth8,elevation16:Pc.depth16,elevation64:Pc.depth64,roundedCorner2:"2px",roundedCorner4:"4px",roundedCorner6:"6px"},gn;(function(o){o.Arabic="Segoe UI Web (Arabic)",o.Cyrillic="Segoe UI Web (Cyrillic)",o.EastEuropean="Segoe UI Web (East European)",o.Greek="Segoe UI Web (Greek)",o.Hebrew="Segoe UI Web (Hebrew)",o.Thai="Leelawadee UI Web",o.Vietnamese="Segoe UI Web (Vietnamese)",o.WestEuropean="Segoe UI Web (West European)",o.Selawik="Selawik Web",o.Armenian="Segoe UI Web (Armenian)",o.Georgian="Segoe UI Web (Georgian)"})(gn||(gn={}));var $t;(function(o){o.Arabic="'"+gn.Arabic+"'",o.ChineseSimplified="'Microsoft Yahei UI', Verdana, Simsun",o.ChineseTraditional="'Microsoft Jhenghei UI', Pmingliu",o.Cyrillic="'"+gn.Cyrillic+"'",o.EastEuropean="'"+gn.EastEuropean+"'",o.Greek="'"+gn.Greek+"'",o.Hebrew="'"+gn.Hebrew+"'",o.Hindi="'Nirmala UI'",o.Japanese="'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",o.Korean="'Malgun Gothic', Gulim",o.Selawik="'"+gn.Selawik+"'",o.Thai="'Leelawadee UI Web', 'Kmer UI'",o.Vietnamese="'"+gn.Vietnamese+"'",o.WestEuropean="'"+gn.WestEuropean+"'",o.Armenian="'"+gn.Armenian+"'",o.Georgian="'"+gn.Georgian+"'"})($t||($t={}));var zr;(function(o){o.size10="10px",o.size12="12px",o.size14="14px",o.size16="16px",o.size18="18px",o.size20="20px",o.size24="24px",o.size28="28px",o.size32="32px",o.size42="42px",o.size68="68px",o.mini="10px",o.xSmall="10px",o.small="12px",o.smallPlus="12px",o.medium="14px",o.mediumPlus="16px",o.icon="16px",o.large="18px",o.xLarge="20px",o.xLargePlus="24px",o.xxLarge="28px",o.xxLargePlus="32px",o.superLarge="42px",o.mega="68px"})(zr||(zr={}));var Lt;(function(o){o.light=100,o.semilight=300,o.regular=400,o.semibold=600,o.bold=700})(Lt||(Lt={}));var Mr;(function(o){o.xSmall="10px",o.small="12px",o.medium="16px",o.large="20px"})(Mr||(Mr={}));var d3="'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif",c3="'Segoe UI', '"+gn.WestEuropean+"'",A_={ar:$t.Arabic,bg:$t.Cyrillic,cs:$t.EastEuropean,el:$t.Greek,et:$t.EastEuropean,he:$t.Hebrew,hi:$t.Hindi,hr:$t.EastEuropean,hu:$t.EastEuropean,ja:$t.Japanese,kk:$t.EastEuropean,ko:$t.Korean,lt:$t.EastEuropean,lv:$t.EastEuropean,pl:$t.EastEuropean,ru:$t.Cyrillic,sk:$t.EastEuropean,"sr-latn":$t.EastEuropean,th:$t.Thai,tr:$t.EastEuropean,uk:$t.Cyrillic,vi:$t.Vietnamese,"zh-hans":$t.ChineseSimplified,"zh-hant":$t.ChineseTraditional,hy:$t.Armenian,ka:$t.Georgian};function u3(o){return o+", "+d3}function p3(o){for(var s in A_)if(A_.hasOwnProperty(s)&&o&&s.indexOf(o)===0)return A_[s];return c3}function Lo(o,s,n){return{fontFamily:n,MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontSize:o,fontWeight:s}}function h3(o){var s=p3(o),n=u3(s),t={tiny:Lo(zr.mini,Lt.regular,n),xSmall:Lo(zr.xSmall,Lt.regular,n),small:Lo(zr.small,Lt.regular,n),smallPlus:Lo(zr.smallPlus,Lt.regular,n),medium:Lo(zr.medium,Lt.regular,n),mediumPlus:Lo(zr.mediumPlus,Lt.regular,n),large:Lo(zr.large,Lt.regular,n),xLarge:Lo(zr.xLarge,Lt.semibold,n),xLargePlus:Lo(zr.xLargePlus,Lt.semibold,n),xxLarge:Lo(zr.xxLarge,Lt.semibold,n),xxLargePlus:Lo(zr.xxLargePlus,Lt.semibold,n),superLarge:Lo(zr.superLarge,Lt.semibold,n),mega:Lo(zr.mega,Lt.semibold,n)};return t}var m3="https://static2.sharepointonline.com/files/fabric/assets",f3=h3(gM());function rd(o,s,n,t){o="'"+o+"'";var i=t!==void 0?"local('"+t+"'),":"";F0({fontFamily:o,src:i+("url('"+s+".woff2') format('woff2'),")+("url('"+s+".woff') format('woff')"),fontWeight:n,fontStyle:"normal",fontDisplay:"swap"})}function Rs(o,s,n,t,i){t===void 0&&(t="segoeui");var d=o+"/"+n+"/"+t;rd(s,d+"-light",Lt.light,i&&i+" Light"),rd(s,d+"-semilight",Lt.semilight,i&&i+" SemiLight"),rd(s,d+"-regular",Lt.regular,i),rd(s,d+"-semibold",Lt.semibold,i&&i+" SemiBold"),rd(s,d+"-bold",Lt.bold,i&&i+" Bold")}function g3(o){if(o){var s=o+"/fonts";Rs(s,gn.Thai,"leelawadeeui-thai","leelawadeeui"),Rs(s,gn.Arabic,"segoeui-arabic"),Rs(s,gn.Cyrillic,"segoeui-cyrillic"),Rs(s,gn.EastEuropean,"segoeui-easteuropean"),Rs(s,gn.Greek,"segoeui-greek"),Rs(s,gn.Hebrew,"segoeui-hebrew"),Rs(s,gn.Vietnamese,"segoeui-vietnamese"),Rs(s,gn.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),Rs(s,$t.Selawik,"selawik","selawik"),Rs(s,gn.Armenian,"segoeui-armenian"),Rs(s,gn.Georgian,"segoeui-georgian"),rd("Leelawadee UI Web",s+"/leelawadeeui-thai/leelawadeeui-semilight",Lt.light),rd("Leelawadee UI Web",s+"/leelawadeeui-thai/leelawadeeui-bold",Lt.semibold)}}function _3(){var o,s,n,t=(o=nt())===null||o===void 0?void 0:o.FabricConfig;return n=(s=t)===null||s===void 0?void 0:s.fontBaseUrl,n??m3}g3(_3());var _e="@media screen and (-ms-high-contrast: active), screen and (forced-colors: active)",y3="@media screen and (-ms-high-contrast: black-on-white), screen and (forced-colors: active) and (prefers-color-scheme: light)",P_=320,dg=480,ib=640,w3=1024,qy=1366,Df=dg-1,ab=ib-1,v3=768;function cg(o,s){var n=typeof o=="number"?" and (min-width: "+o+"px)":"",t=typeof s=="number"?" and (max-width: "+s+"px)":"";return"@media only screen"+n+t}function bt(){return{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}}var Bp;(function(o){o.Nav=1,o.ScrollablePane=1,o.FocusStyle=1,o.Coachmark=1e3,o.Layer=1e6,o.KeytipLayer=1000001})(Bp||(Bp={}));function On(o,s,n,t,i,d,c){return typeof s=="number"||!s?gv(o,{inset:s,position:n,highContrastStyle:t,borderColor:i,outlineColor:d,isFocusedOnly:c}):gv(o,s)}function gv(o,s){var n,t;s===void 0&&(s={});var i=s.inset,d=i===void 0?0:i,c=s.width,u=c===void 0?1:c,h=s.position,g=h===void 0?"relative":h,w=s.highContrastStyle,m=s.borderColor,x=m===void 0?o.palette.white:m,_=s.outlineColor,v=_===void 0?o.palette.neutralSecondary:_,b=s.isFocusedOnly,C=b===void 0?!0:b;return{outline:"transparent",position:g,selectors:(n={"::-moz-focus-inner":{border:"0"}},n["."+fn+" &"+(C?":focus":"")+":after"]={content:'""',position:"absolute",left:d+1,top:d+1,bottom:d+1,right:d+1,border:u+"px solid "+x,outline:u+"px solid "+v,zIndex:Bp.FocusStyle,selectors:(t={},t[_e]=w,t)},n)}}function Jy(){return{selectors:{"&::-moz-focus-inner":{border:0},"&":{outline:"transparent"}}}}var _y=function(o,s,n,t){var i,d,c;n===void 0&&(n="border"),t===void 0&&(t=-1);var u=n==="borderBottom";return{borderColor:o,selectors:{":after":(i={pointerEvents:"none",content:"''",position:"absolute",left:u?0:t,top:t,bottom:t,right:u?0:t},i[n]="2px solid "+o,i.borderRadius=s,i.width=n==="borderBottom"?"100%":void 0,i.selectors=(d={},d[_e]=(c={},c[n==="border"?"borderColor":"borderBottomColor"]="Highlight",c),d),i)}}},wd={position:"absolute",width:1,height:1,margin:-1,padding:0,border:0,overflow:"hidden"},x3="14s",b3="2s",S3="1";function Ap(o,s){return{borderColor:o,borderWidth:"0px",width:s,height:s}}function If(o){return{opacity:1,borderWidth:o}}function Tf(){return{opacity:1}}function Af(o,s){return{borderWidth:"0",width:s,height:s,opacity:0,borderColor:o}}function qm(o,s){return F(F({},Ap(o,s)),{opacity:0})}function C3(o,s,n,t,i){return yn({"0%":Ap(o,n),"1.42%":If(i),"3.57%":Tf(),"7.14%":Af(s,t),"8%":qm(o,n),"29.99%":qm(o,n),"30%":Ap(o,n),"31.42%":If(i),"33.57%":Tf(),"37.14%":Af(s,t),"38%":qm(o,n),"79.42%":qm(o,n),"79.43":Ap(o,n),"81.85":If(i),"83.42":Tf(),"87%":Af(s,t),"100%":{}})}function k3(o,s,n,t,i){return yn({"0%":Ap(o,n),"14.2%":If(i),"35.7%":Tf(),"71.4%":Af(s,t),"100%":{}})}function M3(o,s){return{animationName:o,animationIterationCount:S3,animationDuration:x3,animationDelay:s||b3}}var _v={continuousPulseAnimationDouble:C3,continuousPulseAnimationSingle:k3,createDefaultAnimation:M3},j3=Et(function(o,s){var n=gs.getInstance();return s?Object.keys(o).reduce(function(t,i){return t[i]=n.getClassName(o[i]),t},{}):o});function it(o,s,n){return j3(o,s.disableGlobalClassNames)}var Rc=function(){return Rc=Object.assign||function(o){for(var s,n=1,t=arguments.length;n<t;n++){s=arguments[n];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(o[i]=s[i])}return o},Rc.apply(this,arguments)},Pp=typeof window>"u"?global:window,yv=Pp&&Pp.CSPSettings&&Pp.CSPSettings.nonce,zs=L3();function L3(){var o=Pp.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]};return o.runState||(o=Rc(Rc({},o),{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}})),o.registeredThemableStyles||(o=Rc(Rc({},o),{registeredThemableStyles:[]})),Pp.__themeState__=o,o}function E3(o,s){zs.loadStyles?zs.loadStyles(lb(o).styleString,o):P3(o)}function D3(o){zs.theme=o,A3()}function I3(o){T3(zs.registeredThemableStyles),zs.registeredThemableStyles=[]}function T3(o){o.forEach(function(s){var n=s&&s.styleElement;n&&n.parentElement&&n.parentElement.removeChild(n)})}function A3(){if(zs.theme){for(var o=[],s=0,n=zs.registeredThemableStyles;s<n.length;s++){var t=n[s];o.push(t.themableStyle)}o.length>0&&(I3(),E3([].concat.apply([],o)))}}function lb(o){var s=zs.theme,n=!1,t=(o||[]).map(function(i){var d=i.theme;if(d){n=!0;var c=s?s[d]:void 0,u=i.defaultValue||"inherit";return s&&!c&&console&&!(d in s)&&typeof DEBUG<"u"&&DEBUG&&console.warn('Theming value not provided for "'.concat(d,'". Falling back to "').concat(u,'".')),c||u}else return i.rawString});return{styleString:t.join(""),themable:n}}function P3(o){if(!(typeof document>"u")){var s=document.getElementsByTagName("head")[0],n=document.createElement("style"),t=lb(o),i=t.styleString,d=t.themable;n.setAttribute("data-load-themed-styles","true"),yv&&n.setAttribute("nonce",yv),n.appendChild(document.createTextNode(i)),zs.perf.count++,s.appendChild(n);var c=document.createEvent("HTMLEvents");c.initEvent("styleinsert",!0,!1),c.args={newStyle:n},document.dispatchEvent(c);var u={styleElement:n,themableStyle:o};d?zs.registeredThemableStyles.push(u):zs.registeredStyles.push(u)}}function R3(o,s,n,t,i){i===void 0&&(i=!1);var d=F({primaryButtonBorder:"transparent",errorText:t?"#F1707B":"#a4262c",messageText:t?"#F3F2F1":"#323130",messageLink:t?"#6CB8F6":"#005A9E",messageLinkHovered:t?"#82C7FF":"#004578",infoIcon:t?"#C8C6C4":"#605e5c",errorIcon:t?"#F1707B":"#A80000",blockingIcon:t?"#442726":"#FDE7E9",warningIcon:t?"#C8C6C4":"#797775",severeWarningIcon:t?"#FCE100":"#D83B01",successIcon:t?"#92C353":"#107C10",infoBackground:t?"#323130":"#f3f2f1",errorBackground:t?"#442726":"#FDE7E9",blockingBackground:t?"#442726":"#FDE7E9",warningBackground:t?"#433519":"#FFF4CE",severeWarningBackground:t?"#4F2A0F":"#FED9CC",successBackground:t?"#393D1B":"#DFF6DD",warningHighlight:t?"#fff100":"#ffb900",successText:t?"#92c353":"#107C10"},n),c=db(o,s,d,t);return F3(c,i)}function db(o,s,n,t,i){var d,c,u,h={},g=o||{},w=g.white,m=g.black,x=g.themePrimary,_=g.themeDark,v=g.themeDarker,b=g.themeDarkAlt,C=g.themeLighter,k=g.neutralLight,L=g.neutralLighter,T=g.neutralDark,N=g.neutralQuaternary,Y=g.neutralQuaternaryAlt,A=g.neutralPrimary,I=g.neutralSecondary,R=g.neutralSecondaryAlt,H=g.neutralTertiary,W=g.neutralTertiaryAlt,K=g.neutralLighterAlt,Z=g.accent;return w&&(h.bodyBackground=w,h.bodyFrameBackground=w,h.accentButtonText=w,h.buttonBackground=w,h.primaryButtonText=w,h.primaryButtonTextHovered=w,h.primaryButtonTextPressed=w,h.inputBackground=w,h.inputForegroundChecked=w,h.listBackground=w,h.menuBackground=w,h.cardStandoutBackground=w),m&&(h.bodyTextChecked=m,h.buttonTextCheckedHovered=m),x&&(h.link=x,h.primaryButtonBackground=x,h.inputBackgroundChecked=x,h.inputIcon=x,h.inputFocusBorderAlt=x,h.menuIcon=x,h.menuHeader=x,h.accentButtonBackground=x),_&&(h.primaryButtonBackgroundPressed=_,h.inputBackgroundCheckedHovered=_,h.inputIconHovered=_),v&&(h.linkHovered=v),b&&(h.primaryButtonBackgroundHovered=b),C&&(h.inputPlaceholderBackgroundChecked=C),k&&(h.bodyBackgroundChecked=k,h.bodyFrameDivider=k,h.bodyDivider=k,h.variantBorder=k,h.buttonBackgroundCheckedHovered=k,h.buttonBackgroundPressed=k,h.listItemBackgroundChecked=k,h.listHeaderBackgroundPressed=k,h.menuItemBackgroundPressed=k,h.menuItemBackgroundChecked=k),L&&(h.bodyBackgroundHovered=L,h.buttonBackgroundHovered=L,h.buttonBackgroundDisabled=L,h.buttonBorderDisabled=L,h.primaryButtonBackgroundDisabled=L,h.disabledBackground=L,h.listItemBackgroundHovered=L,h.listHeaderBackgroundHovered=L,h.menuItemBackgroundHovered=L),N&&(h.primaryButtonTextDisabled=N,h.disabledSubtext=N),Y&&(h.listItemBackgroundCheckedHovered=Y),H&&(h.disabledBodyText=H,h.variantBorderHovered=((d=n)===null||d===void 0?void 0:d.variantBorderHovered)||H,h.buttonTextDisabled=H,h.inputIconDisabled=H,h.disabledText=H),A&&(h.bodyText=A,h.actionLink=A,h.buttonText=A,h.inputBorderHovered=A,h.inputText=A,h.listText=A,h.menuItemText=A),K&&(h.bodyStandoutBackground=K,h.defaultStateBackground=K),T&&(h.actionLinkHovered=T,h.buttonTextHovered=T,h.buttonTextChecked=T,h.buttonTextPressed=T,h.inputTextHovered=T,h.menuItemTextHovered=T),I&&(h.bodySubtext=I,h.focusBorder=I,h.inputBorder=I,h.smallInputBorder=I,h.inputPlaceholderText=I),R&&(h.buttonBorder=R),W&&(h.disabledBodySubtext=W,h.disabledBorder=W,h.buttonBackgroundChecked=W,h.menuDivider=W),Z&&(h.accentButtonBackground=Z),!((c=s)===null||c===void 0)&&c.elevation4&&(h.cardShadow=s.elevation4),!t&&(!((u=s)===null||u===void 0)&&u.elevation8)?h.cardShadowHovered=s.elevation8:h.variantBorderHovered&&(h.cardShadowHovered="0 0 1px "+h.variantBorderHovered),h=F(F({},h),n),h}function F3(o,s){var n="";return s===!0&&(n=" /* @deprecated */"),o.listTextColor=o.listText+n,o.menuItemBackgroundChecked+=n,o.warningHighlight+=n,o.warningText=o.messageText+n,o.successText+=n,o}function N3(o,s){s===void 0&&(s={});var n,t,i,d,c=uv({},o,s,{semanticColors:db(s.palette,s.effects,s.semanticColors,s.isInverted===void 0?o.isInverted:s.isInverted)});if(!((n=s.palette)===null||n===void 0)&&n.themePrimary&&!(!((t=s.palette)===null||t===void 0)&&t.accent)&&(c.palette.accent=s.palette.themePrimary),s.defaultFontStyle)for(var u=0,h=Object.keys(c.fonts);u<h.length;u++){var g=h[u];c.fonts[g]=uv(c.fonts[g],s.defaultFontStyle,(d=(i=s)===null||i===void 0?void 0:i.fonts)===null||d===void 0?void 0:d[g])}return s.stylesheets&&(c.stylesheets=(o.stylesheets||[]).concat(s.stylesheets)),c}var O3={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"};function lh(o,s){o===void 0&&(o={}),s===void 0&&(s=!1);var n=!!o.isInverted,t={palette:mv,effects:fv,fonts:f3,spacing:O3,isInverted:n,disableGlobalClassNames:!1,semanticColors:R3(mv,fv,void 0,n,s),rtl:void 0};return N3(t,o)}var us=lh({}),Y3=[],yy="theme";function cb(){var o,s,n,t,i,d=nt();!((n=(s=d)===null||s===void 0?void 0:s.FabricConfig)===null||n===void 0)&&n.legacyTheme?B3(d.FabricConfig.legacyTheme):fs.getSettings([yy]).theme||(!((i=(t=d)===null||t===void 0?void 0:t.FabricConfig)===null||i===void 0)&&i.theme&&(us=lh(d.FabricConfig.theme)),fs.applySettings((o={},o[yy]=us,o)))}cb();function W3(o){return o===void 0&&(o=!1),o===!0&&(us=lh({},o)),us}function B3(o,s){var n;return s===void 0&&(s=!1),us=lh(o,s),D3(F(F(F(F({},us.palette),us.semanticColors),us.effects),H3(us))),fs.applySettings((n={},n[yy]=us,n)),Y3.forEach(function(t){try{t(us)}catch{}}),us}function H3(o){for(var s={},n=0,t=Object.keys(o.fonts);n<t.length;n++)for(var i=t[n],d=o.fonts[i],c=0,u=Object.keys(d);c<u.length;c++){var h=u[c],g=i+h.charAt(0).toUpperCase()+h.slice(1),w=d[h];h==="fontSize"&&typeof w=="number"&&(w=w+"px"),s[g]=w}return s}var cd={boxShadow:"none",margin:0,padding:0,boxSizing:"border-box"},z3={overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"};function wy(o){return{selectors:{"::placeholder":o,":-ms-input-placeholder":o,"::-ms-input-placeholder":o}}}var qr=Xk(sb);Ny("@uifabric/styling","7.25.0");cb();var Ot={topLeftEdge:0,topCenter:1,topRightEdge:2,topAutoEdge:3,bottomLeftEdge:4,bottomCenter:5,bottomRightEdge:6,bottomAutoEdge:7,leftTopEdge:8,leftCenter:9,leftBottomEdge:10,rightTopEdge:11,rightCenter:12,rightBottomEdge:13},De;(function(o){o[o.top=1]="top",o[o.bottom=-1]="bottom",o[o.left=2]="left",o[o.right=-2]="right"})(De||(De={}));var wv;(function(o){o[o.top=0]="top",o[o.bottom=1]="bottom",o[o.start=2]="start",o[o.end=3]="end"})(wv||(wv={}));var Cr;function io(o,s,n){return{targetEdge:o,alignmentEdge:s,isAuto:n}}var vy=(Cr={},Cr[Ot.topLeftEdge]=io(De.top,De.left),Cr[Ot.topCenter]=io(De.top),Cr[Ot.topRightEdge]=io(De.top,De.right),Cr[Ot.topAutoEdge]=io(De.top,void 0,!0),Cr[Ot.bottomLeftEdge]=io(De.bottom,De.left),Cr[Ot.bottomCenter]=io(De.bottom),Cr[Ot.bottomRightEdge]=io(De.bottom,De.right),Cr[Ot.bottomAutoEdge]=io(De.bottom,void 0,!0),Cr[Ot.leftTopEdge]=io(De.left,De.top),Cr[Ot.leftCenter]=io(De.left),Cr[Ot.leftBottomEdge]=io(De.left,De.bottom),Cr[Ot.rightTopEdge]=io(De.right,De.top),Cr[Ot.rightCenter]=io(De.right),Cr[Ot.rightBottomEdge]=io(De.right,De.bottom),Cr);function Zy(o,s){return!(o.top<s.top||o.bottom>s.bottom||o.left<s.left||o.right>s.right)}function xy(o,s){var n=[];return o.top<s.top&&n.push(De.top),o.bottom>s.bottom&&n.push(De.bottom),o.left<s.left&&n.push(De.left),o.right>s.right&&n.push(De.right),n}function Wo(o,s){return o[De[s]]}function vv(o,s,n){return o[De[s]]=n,o}function Hp(o,s){var n=nu(s);return(Wo(o,n.positiveEdge)+Wo(o,n.negativeEdge))/2}function ug(o,s){return o>0?s:s*-1}function by(o,s){return ug(o,Wo(s,o))}function zp(o,s,n){var t=Wo(o,n)-Wo(s,n);return ug(n,t)}function pg(o,s,n){var t=Wo(o,s)-n;return o=vv(o,s,n),o=vv(o,s*-1,Wo(o,s*-1)-t),o}function Up(o,s,n,t){return t===void 0&&(t=0),pg(o,n,Wo(s,n)+ug(n,t))}function U3(o,s,n,t){t===void 0&&(t=0);var i=n*-1,d=ug(i,t);return pg(o,n*-1,Wo(s,n)+d)}function Sy(o,s,n){var t=by(n,o);return t>by(n,s)}function V3(o,s,n,t,i){i===void 0&&(i=0);var d=[De.left,De.right,De.bottom,De.top];Tt()&&(d[0]*=-1,d[1]*=-1);for(var c=o,u=t.targetEdge,h=t.alignmentEdge,g=0;g<4;g++)if(!Sy(c,n,u))d.splice(d.indexOf(u),1),d.length>0&&(d.indexOf(u*-1)>-1?u=u*-1:(h=u,u=d.slice(-1)[0]),c=Xy(o,s,{targetEdge:u,alignmentEdge:h},i));else return{elementRectangle:c,targetEdge:u,alignmentEdge:h};return{elementRectangle:o,targetEdge:t.targetEdge,alignmentEdge:t.alignmentEdge}}function G3(o,s,n,t){var i=o.alignmentEdge,d=o.targetEdge,c=o.elementRectangle,u=i*-1,h=Xy(c,s,{targetEdge:d,alignmentEdge:u},n,t);return{elementRectangle:h,targetEdge:d,alignmentEdge:u}}function $3(o,s,n,t,i,d,c){i===void 0&&(i=0);var u=t.alignmentEdge,h=t.alignTargetEdge,g={elementRectangle:o,targetEdge:t.targetEdge,alignmentEdge:u};!d&&!c&&(g=V3(o,s,n,t,i));var w=xy(o,n);if(h){if(g.alignmentEdge&&w.indexOf(g.alignmentEdge*-1)>-1){var m=G3(g,s,i,c);if(Zy(m.elementRectangle,n))return m;g=xv(xy(m.elementRectangle,n),g,n)}}else g=xv(w,g,n);return g}function xv(o,s,n){for(var t=0,i=o;t<i.length;t++){var d=i[t];s.elementRectangle=Up(s.elementRectangle,n,d)}return s}function ub(o,s,n){var t=nu(s).positiveEdge,i=Hp(o,s),d=i-Wo(o,t);return pg(o,t,n-d)}function Xy(o,s,n,t,i){t===void 0&&(t=0);var d,c=n.alignmentEdge,u=n.targetEdge,h=i?u:u*-1;if(d=i?Up(o,s,u,t):U3(o,s,u,t),c)d=Up(d,s,c);else{var g=Hp(s,u);d=ub(d,h,g)}return d}function nu(o){return o===De.top||o===De.bottom?{positiveEdge:De.left,negativeEdge:De.right}:{positiveEdge:De.top,negativeEdge:De.bottom}}function pb(o,s,n){return n&&Math.abs(zp(o,n,s))>Math.abs(zp(o,n,s*-1))?s*-1:s}function K3(o,s,n,t,i,d,c){var u={},h=hg(s),g=d?n:n*-1,w=De[g],m=i||nu(n).positiveEdge;return c||(m=pb(o,m,t)),u[w]=zp(o,h,g),u[De[m]]=zp(o,h,m),u}function q3(o){return Math.sqrt(o*o*2)}function J3(o,s,n){if(o===void 0&&(o=Ot.bottomAutoEdge),n)return{alignmentEdge:n.alignmentEdge,isAuto:n.isAuto,targetEdge:n.targetEdge};var t=F({},vy[o]);return Tt()?(t.alignmentEdge&&t.alignmentEdge%2===0&&(t.alignmentEdge=t.alignmentEdge*-1),s!==void 0?vy[s]:t):t}function Z3(o,s,n,t,i){return o.isAuto&&(o.alignmentEdge=hb(o.targetEdge,s,n)),o.alignTargetEdge=i,o}function hb(o,s,n){var t=Hp(s,o),i=Hp(n,o),d=nu(o),c=d.positiveEdge,u=d.negativeEdge;return t<=i?c:u}function X3(o,s,n,t,i,d,c){var u=Xy(o,s,t,i,c);return Zy(u,n)?{elementRectangle:u,targetEdge:t.targetEdge,alignmentEdge:t.alignmentEdge}:$3(o,s,n,t,i,d,c)}function Q3(o,s,n){var t=o.targetEdge*-1,i=new No(0,o.elementRectangle.width,0,o.elementRectangle.height),d={},c=pb(o.elementRectangle,o.alignmentEdge?o.alignmentEdge:nu(t).positiveEdge,n);return d[De[t]]=Wo(s,t),d[De[c]]=zp(s,i,c),{elementPosition:F({},d),closestEdge:hb(o.targetEdge,s,i),targetEdge:t}}function ej(o,s){var n=s.targetRectangle,t=nu(s.targetEdge),i=t.positiveEdge,d=t.negativeEdge,c=Hp(n,s.targetEdge),u=new No(o/2,s.elementRectangle.width-o/2,o/2,s.elementRectangle.height-o/2),h=new No(0,o,0,o);return h=pg(h,s.targetEdge*-1,-o/2),h=ub(h,s.targetEdge*-1,c-by(i,s.elementRectangle)),Sy(h,u,i)?Sy(h,u,d)||(h=Up(h,u,d)):h=Up(h,u,i),h}function hg(o){var s=o.getBoundingClientRect();return new No(s.left,s.right,s.top,s.bottom)}function Qy(o){return new No(o.left,o.right,o.top,o.bottom)}function tj(o,s){var n;if(s){if(s.preventDefault){var t=s;n=new No(t.clientX,t.clientX,t.clientY,t.clientY)}else if(s.getBoundingClientRect)n=hg(s);else{var i=s,d=i.left||i.x,c=i.top||i.y,u=i.right||d,h=i.bottom||c;n=new No(d,u,c,h)}if(!Zy(n,o))for(var g=xy(n,o),w=0,m=g;w<m.length;w++){var x=m[w];n[De[x]]=o[De[x]]}}else n=new No(0,0,0,0);return n}function nj(o,s,n,t,i){var d=0,c=vy[s],u=i?c.targetEdge*-1:c.targetEdge;return u===De.top?d=Wo(o,c.targetEdge)-t.top-n:u===De.bottom?d=t.bottom-Wo(o,c.targetEdge)-n:d=t.bottom-o.top-n,d>0?d:t.height}function mb(o,s,n,t){var i=o.gapSpace?o.gapSpace:0,d=tj(n,o.target),c=Z3(J3(o.directionalHint,o.directionalHintForRTL,t),d,n,o.coverTarget,o.alignTargetEdge),u=X3(hg(s),d,n,c,i,o.directionalHintFixed,o.coverTarget);return F(F({},u),{targetRectangle:d})}function fb(o,s,n,t,i){var d=K3(o.elementRectangle,s,o.targetEdge,n,o.alignmentEdge,t,i);return{elementPosition:d,targetEdge:o.targetEdge,alignmentEdge:o.alignmentEdge}}function rj(o,s,n,t){var i=o.bounds?Qy(o.bounds):new No(0,window.innerWidth-Yy(),0,window.innerHeight),d=mb(o,n,i,t);return fb(d,s,i,o.coverTarget)}function gb(o,s,n,t,i){var d=o.isBeakVisible&&o.beakWidth||0,c=q3(d)/2+(o.gapSpace?o.gapSpace:0),u=o;u.gapSpace=c;var h=o.bounds?Qy(o.bounds):new No(0,window.innerWidth-Yy(),0,window.innerHeight),g=mb(u,n,h,t),w=ej(d,g),m=Q3(g,w,h);return F(F({},fb(g,s,h,o.coverTarget,i)),{beakPosition:m})}function oj(o,s,n,t){return gb(o,s,n,t,!0)}function sj(o,s,n,t){return rj(o,s,n,t)}function ij(o,s,n,t){return gb(o,s,n,t)}function aj(o,s,n,t){return oj(o,s,n,t)}function _b(o,s,n,t,i){n===void 0&&(n=0);var d=o,c=o,u=o,h,g=t?Qy(t):new No(0,window.innerWidth-Yy(),0,window.innerHeight),w=u.left||u.x,m=u.top||u.y,x=u.right||w,_=u.bottom||m;return d.stopPropagation?h=new No(d.clientX,d.clientX,d.clientY,d.clientY):w!==void 0&&m!==void 0?h=new No(w,x,m,_):h=hg(c),nj(h,s,n,g,i)}function lj(o){return o*-1}function dj(o,s){var n=void 0;if(s.getWindowSegments&&(n=s.getWindowSegments()),n===void 0||n.length<=1)return{top:0,left:0,right:s.innerWidth,bottom:s.innerHeight,width:s.innerWidth,height:s.innerHeight};var t=0,i=0;if(o!==null&&o.getBoundingClientRect){var d=o.getBoundingClientRect();t=(d.left+d.right)/2,i=(d.top+d.bottom)/2}else o!==null&&(t=o.left||o.x,i=o.top||o.y);for(var c={top:0,left:0,right:0,bottom:0,width:0,height:0},u=0,h=n;u<h.length;u++){var g=h[u];t&&g.left<=t&&g.right>=t&&i&&g.top<=i&&g.bottom>=i&&(c={top:g.top,left:g.left,right:g.right,bottom:g.bottom,width:g.width,height:g.height})}return c}function cj(o,s){return dj(o,s)}var dh=(function(o){Ne(s,o);function s(n){var t=o.call(this,n)||this;return t._root=M.createRef(),t._disposables=[],t._onKeyDown=function(i){switch(i.which){case ke.escape:t.props.onDismiss&&(t.props.onDismiss(i),i.preventDefault(),i.stopPropagation());break}},t._onFocus=function(){t._containsFocus=!0},t._onBlur=function(i){t._root.current&&i.relatedTarget&&!un(t._root.current,i.relatedTarget)&&(t._containsFocus=!1)},t._async=new Wn(t),t.state={needsVerticalScrollBar:!1},t}return s.prototype.UNSAFE_componentWillMount=function(){this._originalFocusedElement=_n().activeElement},s.prototype.componentDidMount=function(){if(this._root.current){this._disposables.push(hs(this._root.current,"focus",this._onFocus,!0),hs(this._root.current,"blur",this._onBlur,!0));var n=nt(this._root.current);n&&this._disposables.push(hs(n,"keydown",this._onKeyDown)),N5(this._root.current)&&(this._containsFocus=!0)}this._updateScrollBarAsync()},s.prototype.componentDidUpdate=function(){this._updateScrollBarAsync(),this._async.dispose()},s.prototype.componentWillUnmount=function(){var n;if(this._disposables.forEach(function(d){return d()}),this.props.shouldRestoreFocus){var t=this.props.onRestoreFocus,i=t===void 0?uj:t;i({originalElement:this._originalFocusedElement,containsFocus:this._containsFocus,documentContainsFocus:((n=_n())===null||n===void 0?void 0:n.hasFocus())||!1})}delete this._originalFocusedElement},s.prototype.render=function(){var n=this.props,t=n.role,i=n.className,d=n.ariaLabel,c=n.ariaLabelledBy,u=n.ariaDescribedBy,h=n.style;return M.createElement("div",F({ref:this._root},pt(this.props,Yn),{className:i,role:t,"aria-label":d,"aria-labelledby":c,"aria-describedby":u,onKeyDown:this._onKeyDown,style:F({overflowY:this.state.needsVerticalScrollBar?"scroll":void 0,outline:"none"},h)}),this.props.children)},s.prototype._updateScrollBarAsync=function(){var n=this;this._async.requestAnimationFrame(function(){n._getScrollBar()})},s.prototype._getScrollBar=function(){if(!(this.props.style&&this.props.style.overflowY)){var n=!1;if(this._root&&this._root.current&&this._root.current.firstElementChild){var t=this._root.current.clientHeight,i=this._root.current.firstElementChild.clientHeight;t>0&&i>t&&(n=i-t>1)}this.state.needsVerticalScrollBar!==n&&this.setState({needsVerticalScrollBar:n})}},s.defaultProps={shouldRestoreFocus:!0},s})(M.Component);function uj(o){var s=o.originalElement,n=o.containsFocus;s&&n&&s!==window&&s.focus&&s.focus()}var Lc,pj=(Lc={},Lc[De.top]=qr.slideUpIn10,Lc[De.bottom]=qr.slideDownIn10,Lc[De.left]=qr.slideLeftIn10,Lc[De.right]=qr.slideRightIn10,Lc),hj=Je({disableCaching:!0}),bv={top:0,left:0},mj={opacity:0,filter:"opacity(0)",pointerEvents:"none"},Sv=["role","aria-roledescription"],fj=(function(o){Ne(s,o);function s(n){var t=o.call(this,n)||this;return t._hostElement=M.createRef(),t._calloutElement=M.createRef(),t._hasListeners=!1,t._disposables=[],t.dismiss=function(i){var d=t.props.onDismiss;d&&d(i)},t._dismissOnScroll=function(i){var d=t.props,c=d.preventDismissOnEvent,u=d.preventDismissOnScroll;t.state.positions&&(c&&!c(i)||!c&&!u)&&t._dismissOnClickOrScroll(i)},t._dismissOnResize=function(i){var d=t.props,c=d.preventDismissOnEvent,u=d.preventDismissOnResize;(c&&!c(i)||!c&&!u)&&t.dismiss(i)},t._dismissOnLostFocus=function(i){var d=t.props,c=d.preventDismissOnEvent,u=d.preventDismissOnLostFocus;(c&&!c(i)||!c&&!u)&&t._dismissOnClickOrScroll(i)},t._setInitialFocus=function(){t.props.setInitialFocus&&!t._didSetInitialFocus&&t.state.positions&&t._calloutElement.current&&(t._didSetInitialFocus=!0,t._async.requestAnimationFrame(function(){return sg(t._calloutElement.current)},t._calloutElement.current))},t._onComponentDidMount=function(){t._addListeners(),t.props.onLayerMounted&&t.props.onLayerMounted(),t._updateAsyncPosition(),t._setHeightOffsetEveryFrame()},t._dismissOnTargetWindowBlur=function(i){var d=t.props,c=d.preventDismissOnEvent,u=d.preventDismissOnLostFocus,h=d.shouldDismissOnWindowFocus;h&&(c&&!c(i)||!c&&!u)&&!t._targetWindow.document.hasFocus()&&i.relatedTarget===null&&t.dismiss(i)},t._mouseDownOnPopup=function(){t._isMouseDownOnPopup=!0},t._mouseUpOnPopup=function(){t._isMouseDownOnPopup=!1},t._async=new Wn(t),t._didSetInitialFocus=!1,t.state={positions:void 0,slideDirectionalClassName:void 0,calloutElementRect:void 0,heightOffset:0},t._positionAttempts=0,t}return s.prototype.componentDidUpdate=function(){this.props.hidden?this._hasListeners&&this._removeListeners():(this._setInitialFocus(),this._hasListeners||this._addListeners(),this._updateAsyncPosition())},s.prototype.shouldComponentUpdate=function(n,t){return!n.shouldUpdateWhenHidden&&this.props.hidden&&n.hidden?!1:!xi(this.props,n)||!xi(this.state,t)},s.prototype.UNSAFE_componentWillMount=function(){this._setTargetWindowAndElement(this._getTarget())},s.prototype.componentWillUnmount=function(){this._async.dispose(),this._disposables.forEach(function(n){return n()})},s.prototype.UNSAFE_componentWillUpdate=function(n){var t=this._getTarget(n),i=this._getTarget();(t!==i||typeof t=="string"||t instanceof String)&&!this._blockResetHeight&&(this._maxHeight=void 0,this._setTargetWindowAndElement(t)),(n.gapSpace!==this.props.gapSpace||this.props.beakWidth!==n.beakWidth)&&(this._maxHeight=void 0),n.finalHeight!==this.props.finalHeight&&this._setHeightOffsetEveryFrame(),this._didPositionPropsChange(n,this.props)&&(this._maxHeight=void 0,this._setTargetWindowAndElement(t),this.setState({positions:void 0}),this._didSetInitialFocus=!1,this._bounds=void 0),this._blockResetHeight=!1},s.prototype.componentDidMount=function(){this.props.hidden||this._onComponentDidMount()},s.prototype.render=function(){if(!this._targetWindow)return null;var n=this.props.target,t=this.props,i=t.styles,d=t.style,c=t.ariaLabel,u=t.ariaDescribedBy,h=t.ariaLabelledBy,g=t.className,w=t.isBeakVisible,m=t.children,x=t.beakWidth,_=t.calloutWidth,v=t.calloutMaxWidth,b=t.calloutMinWidth,C=t.finalHeight,k=t.hideOverflow,L=k===void 0?!!C:k,T=t.backgroundColor,N=t.calloutMaxHeight,Y=t.onScroll,A=t.shouldRestoreFocus,I=A===void 0?!0:A,R=t.popupProps;n=this._getTarget();var H=this.state.positions,W=this._getMaxHeight()?this._getMaxHeight()+this.state.heightOffset:void 0,K=N&&W&&N<W?N:W,Z=L,Q=w&&!!n;this._classNames=hj(i,{theme:this.props.theme,className:g,overflowYHidden:Z,calloutWidth:_,positions:H,beakWidth:x,backgroundColor:T,calloutMinWidth:b,calloutMaxWidth:v});var B=F(F(F({},d),{maxHeight:K}),Z&&{overflowY:"hidden"}),P=this.props.hidden?{visibility:"hidden"}:void 0,X=M.createElement("div",{ref:this._hostElement,className:this._classNames.container,style:P},M.createElement("div",F({},pt(this.props,Yn,Sv),{className:on(this._classNames.root,H&&H.targetEdge&&pj[H.targetEdge]),style:H?H.elementPosition:mj,tabIndex:-1,ref:this._calloutElement}),Q&&M.createElement("div",{className:this._classNames.beak,style:this._getBeakPosition()}),Q&&M.createElement("div",{className:this._classNames.beakCurtain}),M.createElement(dh,F({},pt(this.props,Sv),{ariaLabel:c,onRestoreFocus:this.props.onRestoreFocus,ariaDescribedBy:u,ariaLabelledBy:h,className:this._classNames.calloutMain,onDismiss:this.dismiss,onScroll:Y,shouldRestoreFocus:I,style:B,onMouseDown:this._mouseDownOnPopup,onMouseUp:this._mouseUpOnPopup},R),m)));return X},s.prototype._dismissOnClickOrScroll=function(n){var t=n.target,i=this._hostElement.current&&!un(this._hostElement.current,t);if(i&&this._isMouseDownOnPopup){this._isMouseDownOnPopup=!1;return}(!this._target&&i||n.target!==this._targetWindow&&i&&(this._target.stopPropagation||!this._target||this.props.dismissOnTargetClick||t!==this._target&&!un(this._target,t)))&&this.dismiss(n)},s.prototype._addListeners=function(){var n=this;this._async.setTimeout(function(){n._disposables.push(hs(n._targetWindow,"scroll",n._dismissOnScroll,!0),hs(n._targetWindow,"resize",n._dismissOnResize,!0),hs(n._targetWindow.document.documentElement,"focus",n._dismissOnLostFocus,!0),hs(n._targetWindow.document.documentElement,"click",n._dismissOnLostFocus,!0),hs(n._targetWindow,"blur",n._dismissOnTargetWindowBlur,!0)),n._hasListeners=!0},0)},s.prototype._removeListeners=function(){this._disposables.forEach(function(n){return n()}),this._disposables=[],this._hasListeners=!1},s.prototype._updateAsyncPosition=function(){var n=this;this._async.requestAnimationFrame(function(){return n._updatePosition()},this._calloutElement.current)},s.prototype._getBeakPosition=function(){var n=this.state.positions,t=F({},n&&n.beakPosition?n.beakPosition.elementPosition:null);return!t.top&&!t.bottom&&!t.left&&!t.right&&(t.left=bv.left,t.top=bv.top),t},s.prototype._updatePosition=function(){this._setTargetWindowAndElement(this._getTarget());var n=this.state.positions,t=this._hostElement.current,i=this._calloutElement.current,d=!!this.props.target;if(t&&i&&(!d||this._target)){var c=F({},this.props);c.bounds=this._getBounds(),c.target=this._target;var u=this.props.finalHeight?aj(c,t,i,n):ij(c,t,i,n);!n&&u||n&&u&&!this._arePositionsEqual(n,u)&&this._positionAttempts<5?(this._positionAttempts++,this.setState({positions:u})):this._positionAttempts>0&&(this._positionAttempts=0,this.props.onPositioned&&this.props.onPositioned(this.state.positions))}},s.prototype._getBounds=function(){if(!this._bounds){var n=this.props.bounds,t=typeof n=="function"?n(this.props.target,this._targetWindow):n;t||(t=cj(this._target,this._targetWindow),t={top:t.top+this.props.minPagePadding,left:t.left+this.props.minPagePadding,right:t.right-this.props.minPagePadding,bottom:t.bottom-this.props.minPagePadding,width:t.width-this.props.minPagePadding*2,height:t.height-this.props.minPagePadding*2}),this._bounds=t}return this._bounds},s.prototype._getMaxHeight=function(){var n=this;if(!this._maxHeight)if(this.props.directionalHintFixed&&this._target){var t=this.props.isBeakVisible?this.props.beakWidth:0,i=this.props.gapSpace?this.props.gapSpace:0,d=i+t;this._async.requestAnimationFrame(function(){n._target&&(n._maxHeight=_b(n._target,n.props.directionalHint,d,n._getBounds(),n.props.coverTarget),n._blockResetHeight=!0,n.forceUpdate())},this._target)}else this._maxHeight=this._getBounds().height;return this._maxHeight},s.prototype._arePositionsEqual=function(n,t){return this._comparePositions(n.elementPosition,t.elementPosition)&&this._comparePositions(n.beakPosition.elementPosition,t.beakPosition.elementPosition)},s.prototype._comparePositions=function(n,t){for(var i in t)if(t.hasOwnProperty(i)){var d=n[i],c=t[i];if(d!==void 0&&c!==void 0){if(d.toFixed(2)!==c.toFixed(2))return!1}else return!1}return!0},s.prototype._setTargetWindowAndElement=function(n){var t=this._calloutElement.current;if(n)if(typeof n=="string"){var i=_n(t);this._target=i?i.querySelector(n):null,this._targetWindow=nt(t)}else if(n.stopPropagation)this._targetWindow=nt(n.target),this._target=n;else if(n.getBoundingClientRect){var d=n;this._targetWindow=nt(d),this._target=d}else n.current!==void 0?(this._target=n.current,this._targetWindow=nt(this._target)):(this._targetWindow=nt(t),this._target=n);else this._targetWindow=nt(t)},s.prototype._setHeightOffsetEveryFrame=function(){var n=this;this._calloutElement.current&&this.props.finalHeight&&(this._setHeightOffsetTimer=this._async.requestAnimationFrame(function(){var t=n._calloutElement.current&&n._calloutElement.current.lastChild;if(t){var i=t.scrollHeight,d=t.offsetHeight,c=i-d;n.setState({heightOffset:n.state.heightOffset+c}),t.offsetHeight<n.props.finalHeight?n._setHeightOffsetEveryFrame():n._async.cancelAnimationFrame(n._setHeightOffsetTimer,n._calloutElement.current)}},this._calloutElement.current))},s.prototype._didPositionPropsChange=function(n,t){return!n.hidden&&n.hidden!==t.hidden||n.directionalHint!==t.directionalHint||n.target!==t.target},s.prototype._getTarget=function(n){n===void 0&&(n=this.props);var t=n.target;return t},s.defaultProps={preventDismissOnLostFocus:!1,preventDismissOnScroll:!1,preventDismissOnResize:!1,isBeakVisible:!0,beakWidth:16,gapSpace:0,minPagePadding:8,directionalHint:Ot.bottomAutoEdge},s})(M.Component);function gj(o){return{height:o,width:o}}var _j={container:"ms-Callout-container",root:"ms-Callout",beak:"ms-Callout-beak",beakCurtain:"ms-Callout-beakCurtain",calloutMain:"ms-Callout-main"},yj=function(o){var s,n=o.theme,t=o.className,i=o.overflowYHidden,d=o.calloutWidth,c=o.beakWidth,u=o.backgroundColor,h=o.calloutMaxWidth,g=o.calloutMinWidth,w=it(_j,n),m=n.semanticColors,x=n.effects;return{container:[w.container,{position:"relative"}],root:[w.root,n.fonts.medium,{position:"absolute",boxSizing:"border-box",borderRadius:x.roundedCorner2,boxShadow:x.elevation16,selectors:(s={},s[_e]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},s)},Jy(),t,!!d&&{width:d},!!h&&{maxWidth:h},!!g&&{minWidth:g}],beak:[w.beak,{position:"absolute",backgroundColor:m.menuBackground,boxShadow:"inherit",border:"inherit",boxSizing:"border-box",transform:"rotate(45deg)"},gj(c),u&&{backgroundColor:u}],beakCurtain:[w.beakCurtain,{position:"absolute",top:0,right:0,bottom:0,left:0,backgroundColor:m.menuBackground,borderRadius:x.roundedCorner2}],calloutMain:[w.calloutMain,{backgroundColor:m.menuBackground,overflowX:"hidden",overflowY:"auto",position:"relative",borderRadius:x.roundedCorner2},i&&{overflowY:"hidden"},u&&{backgroundColor:u}]}},wj=Ze(fj,yj,void 0,{scope:"CalloutContent"}),vj=Je(),xj=Et(function(o,s){return lh(F(F({},o),{rtl:s}))}),bj=function(o,s){var n=Tt(o)?"rtl":"ltr",t=Tt()?"rtl":"ltr",i=s||n;return{rootDir:i!==n||i!==t?i:s,needsTheme:i!==n}},Sj=(function(o){Ne(s,o);function s(){var n=o!==null&&o.apply(this,arguments)||this;return n._rootElement=M.createRef(),n._removeClassNameFromBody=void 0,n}return s.prototype.render=function(){var n=this.props,t=n.as,i=t===void 0?"div":t,d=n.theme,c=n.dir,u=this._getClassNames(),h=pt(this.props,Yn,["dir"]),g=bj(d,c),w=g.rootDir,m=g.needsTheme,x=M.createElement(i,F({dir:w},h,{className:u.root,ref:this._rootElement}));return m&&(x=M.createElement(E5,{settings:{theme:xj(d,c==="rtl")}},x)),M.createElement(M.Fragment,null,x,M.createElement(tu,{rootRef:this._rootElement}))},s.prototype.componentDidMount=function(){this._addClassNameToBody()},s.prototype.componentWillUnmount=function(){this._removeClassNameFromBody&&this._removeClassNameFromBody()},s.prototype._getClassNames=function(){var n=this.props,t=n.className,i=n.theme,d=n.applyTheme,c=n.styles,u=vj(c,{theme:i,applyTheme:d,className:t});return u},s.prototype._addClassNameToBody=function(){if(this.props.applyThemeToBody){var n=this._getClassNames(),t=_n(this._rootElement.current);t&&(t.body.classList.add(n.bodyThemed),this._removeClassNameFromBody=function(){t.body.classList.remove(n.bodyThemed)})}},s})(M.Component),R_={fontFamily:"inherit"},Cj={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},kj=function(o){var s=o.theme,n=o.className,t=o.applyTheme,i=it(Cj,s);return{root:[i.root,s.fonts.medium,{color:s.palette.neutralPrimary,selectors:{"& button":R_,"& input":R_,"& textarea":R_}},t&&{color:s.semanticColors.bodyText,backgroundColor:s.semanticColors.bodyBackground},n],bodyThemed:[{backgroundColor:s.semanticColors.bodyBackground}]}},Mj=Ze(Sj,kj,void 0,{scope:"Fabric"}),Rp={},ew={},jj;function Lj(o,s){Rp[o]||(Rp[o]=[]),Rp[o].push(s);var n=ew[o];if(n)for(var t=0,i=n;t<i.length;t++){var d=i[t];d.notifyLayersChanged()}}function Ej(o,s){var n=Rp[o];if(n){var t=n.indexOf(s);t>=0&&(n.splice(t,1),n.length===0&&delete Rp[o])}var i=ew[o];if(i)for(var d=0,c=i;d<c.length;d++){var u=c[d];u.notifyLayersChanged()}}function Dj(o){var s=ew[o];return s&&s[0]||void 0}function Ij(){return jj}var Tj=Je(),Aj=(function(o){Ne(s,o);function s(n){var t=o.call(this,n)||this;return t._rootRef=M.createRef(),t._createLayerElement=function(){var i,d,c=t.props.hostId,u=_n(t._rootRef.current),h=t._getHost();if(h){t._removeLayerElement();var g=(d=(i=h.ownerDocument,i??u))===null||d===void 0?void 0:d.createElement("div");if(g){var w=t._getClassNames();g.className=w.root,h5(g),ev(g,t._rootRef.current),t.props.insertFirst?h.insertBefore(g,h.firstChild):h.appendChild(g),t.setState({hostId:c,layerElement:g},function(){var m=t.props,x=m.onLayerDidMount,_=m.onLayerMounted;_&&_(),x&&x()})}}},t.state={},t}return s.prototype.componentDidMount=function(){var n=this.props.hostId;this._createLayerElement(),n&&Lj(n,this._createLayerElement)},s.prototype.render=function(){var n=this.state.layerElement,t=this._getClassNames(),i=this.props.eventBubblingEnabled;return M.createElement("span",{className:"ms-layer",ref:this._rootRef},n&&xS.createPortal(M.createElement(Mj,F({},!i&&Rj(),{className:t.content}),this.props.children),n))},s.prototype.componentDidUpdate=function(){this.props.hostId!==this.state.hostId&&this._createLayerElement()},s.prototype.componentWillUnmount=function(){var n=this.props.hostId;this._removeLayerElement(),n&&Ej(n,this._createLayerElement)},s.prototype._removeLayerElement=function(){var n=this.props.onLayerWillUnmount,t=this.state.layerElement;if(t&&ev(t,null),n&&n(),t&&t.parentNode){var i=t.parentNode;i&&i.removeChild(t)}},s.prototype._getClassNames=function(){var n=this.props,t=n.className,i=n.styles,d=n.theme,c=Tj(i,{theme:d,className:t,isNotHost:!this.props.hostId});return c},s.prototype._getHost=function(){var n,t,i,d,c,u,h=this.props.hostId,g=_n(this._rootRef.current);if(h){var w=Dj(h);return w?(n=w.rootRef.current,n??null):(i=(t=g)===null||t===void 0?void 0:t.getElementById(h),i??null)}else{var m=Ij();return u=m?(d=g)===null||d===void 0?void 0:d.querySelector(m):(c=g)===null||c===void 0?void 0:c.body,u??null}},s.defaultProps={onLayerDidMount:function(){},onLayerWillUnmount:function(){}},s=_s([eu("Layer",["theme","hostId"])],s),s})(M.Component),Pj=function(o){o.eventPhase===Event.BUBBLING_PHASE&&o.type!=="mouseenter"&&o.type!=="mouseleave"&&o.type!=="touchstart"&&o.type!=="touchend"&&o.stopPropagation()},Jm;function Rj(){return Jm||(Jm={},["onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOver","onMouseOut","onMouseUp","onTouchMove","onTouchStart","onTouchCancel","onTouchEnd","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onInvalid","onSubmit"].forEach(function(o){return Jm[o]=Pj})),Jm}var Fj={root:"ms-Layer",rootNoHost:"ms-Layer--fixed",content:"ms-Layer-content"},Nj=function(o){var s=o.className,n=o.isNotHost,t=o.theme,i=it(Fj,t);return{root:[i.root,t.fonts.medium,n&&[i.rootNoHost,{position:"fixed",zIndex:Bp.Layer,top:0,left:0,bottom:0,right:0,visibility:"hidden"}],s],content:[i.content,{visibility:"visible"}]}},vd=Ze(Aj,Nj,void 0,{scope:"Layer",fields:["hostId","theme","styles"]}),ch=(function(o){Ne(s,o);function s(){return o!==null&&o.apply(this,arguments)||this}return s.prototype.render=function(){var n=this.props,t=n.layerProps,i=mo(n,["layerProps"]),d=M.createElement(wj,F({},i));return this.props.doNotLayer?d:M.createElement(vd,F({},t),d)},s})(M.Component),ru=(function(o){Ne(s,o);function s(n){var t=o.call(this,n)||this;return t._root=M.createRef(),t._firstBumper=M.createRef(),t._lastBumper=M.createRef(),t._hasFocus=!1,t._onRootFocus=function(i){t.props.onFocus&&t.props.onFocus(i),t._hasFocus=!0},t._onRootBlur=function(i){t.props.onBlur&&t.props.onBlur(i);var d=i.relatedTarget;i.relatedTarget===null&&(d=t._getDocument().activeElement),un(t._root.current,d)||(t._hasFocus=!1)},t._onFirstBumperFocus=function(){t._onBumperFocus(!0)},t._onLastBumperFocus=function(){t._onBumperFocus(!1)},t._onBumperFocus=function(i){if(!t.props.disabled){var d=i===t._hasFocus?t._lastBumper.current:t._firstBumper.current;if(t._root.current){var c=i===t._hasFocus?F5(t._root.current,d,!0,!1):R5(t._root.current,d,!0,!1);c&&(t._isBumper(c)?t.focus():c.focus())}}},t._onFocusCapture=function(i){t.props.onFocusCapture&&t.props.onFocusCapture(i),i.target!==i.currentTarget&&!t._isBumper(i.target)&&(t._previouslyFocusedElementInTrapZone=i.target)},t._forceFocusInTrap=function(i){if(!t.props.disabled&&s._focusStack.length&&t===s._focusStack[s._focusStack.length-1]){var d=t._getDocument().activeElement;if(!un(t._root.current,d)){var c=t._getDocument();c&&c.activeElement===c.body?setTimeout(function(){c&&c.activeElement===c.body&&(t.focus(),t._hasFocus=!0)},0):(t.focus(),t._hasFocus=!0),i.preventDefault(),i.stopPropagation()}}},t._forceClickInTrap=function(i){if(!t.props.disabled&&s._focusStack.length&&t===s._focusStack[s._focusStack.length-1]){var d=i.target;d&&!un(t._root.current,d)&&(t.focus(),t._hasFocus=!0,i.preventDefault(),i.stopPropagation())}},St(t),t}return s.prototype.componentDidMount=function(){this._bringFocusIntoZone(),this._updateEventHandlers(this.props),!this.props.disabled&&this._root.current&&this.props.enableAriaHiddenSiblings&&(this._unmodalize=pv(this._root.current))},s.prototype.UNSAFE_componentWillReceiveProps=function(n){var t=n.elementToFocusOnDismiss;t&&this._previouslyFocusedElementOutsideTrapZone!==t&&(this._previouslyFocusedElementOutsideTrapZone=t),this._updateEventHandlers(n)},s.prototype.componentDidUpdate=function(n){var t=n.forceFocusInsideTrap!==void 0?n.forceFocusInsideTrap:!0,i=this.props.forceFocusInsideTrap!==void 0?this.props.forceFocusInsideTrap:!0,d=n.disabled!==void 0?n.disabled:!1,c=this.props.disabled!==void 0?this.props.disabled:!1;!t&&i||d&&!c?(this._bringFocusIntoZone(),!this._unmodalize&&this._root.current&&this.props.enableAriaHiddenSiblings&&(this._unmodalize=pv(this._root.current))):(t&&!i||!d&&c)&&(this._returnFocusToInitiator(),this._unmodalize&&this._unmodalize())},s.prototype.componentWillUnmount=function(){(!this.props.disabled||this.props.forceFocusInsideTrap||!un(this._root.current,this._getDocument().activeElement))&&this._returnFocusToInitiator(),this._disposeClickHandler&&(this._disposeClickHandler(),this._disposeClickHandler=void 0),this._disposeFocusHandler&&(this._disposeFocusHandler(),this._disposeFocusHandler=void 0),this._unmodalize&&this._unmodalize(),delete this._previouslyFocusedElementInTrapZone,delete this._previouslyFocusedElementOutsideTrapZone},s.prototype.render=function(){var n=this.props,t=n.className,i=n.disabled,d=i===void 0?!1:i,c=n.ariaLabelledBy,u=pt(this.props,Yn),h={"aria-hidden":!0,style:{pointerEvents:"none",position:"fixed"},tabIndex:d?-1:0,"data-is-visible":!0};return M.createElement("div",F({},u,{className:t,ref:this._root,"aria-labelledby":c,onFocusCapture:this._onFocusCapture,onFocus:this._onRootFocus,onBlur:this._onRootBlur}),M.createElement("div",F({},h,{ref:this._firstBumper,onFocus:this._onFirstBumperFocus})),this.props.children,M.createElement("div",F({},h,{ref:this._lastBumper,onFocus:this._onLastBumperFocus})))},s.prototype.focus=function(){var n=this.props,t=n.focusPreviouslyFocusedInnerElement,i=n.firstFocusableSelector,d=n.firstFocusableTarget;if(t&&this._previouslyFocusedElementInTrapZone&&un(this._root.current,this._previouslyFocusedElementInTrapZone)){this._focusAsync(this._previouslyFocusedElementInTrapZone);return}var c=typeof i=="string"?i:i&&i(),u=null;this._root.current&&(typeof d=="string"?u=this._root.current.querySelector(d):d?u=d(this._root.current):c&&(u=this._root.current.querySelector("."+c)),u||(u=$r(this._root.current,this._root.current.firstChild,!1,!1,!1,!0))),u&&this._focusAsync(u)},s.prototype._focusAsync=function(n){this._isBumper(n)||eb(n)},s.prototype._bringFocusIntoZone=function(){var n=this.props,t=n.elementToFocusOnDismiss,i=n.disabled,d=i===void 0?!1:i,c=n.disableFirstFocus,u=c===void 0?!1:c;d||(s._focusStack.push(this),this._previouslyFocusedElementOutsideTrapZone=t||this._getDocument().activeElement,!u&&!un(this._root.current,this._previouslyFocusedElementOutsideTrapZone)&&this.focus())},s.prototype._returnFocusToInitiator=function(){var n=this,t=this.props.ignoreExternalFocusing;s._focusStack=s._focusStack.filter(function(c){return n!==c});var i=this._getDocument(),d=i.activeElement;!t&&this._previouslyFocusedElementOutsideTrapZone&&typeof this._previouslyFocusedElementOutsideTrapZone.focus=="function"&&(un(this._root.current,d)||d===i.body)&&this._focusAsync(this._previouslyFocusedElementOutsideTrapZone)},s.prototype._updateEventHandlers=function(n){var t=n.isClickableOutsideFocusTrap,i=t===void 0?!1:t,d=n.forceFocusInsideTrap,c=d===void 0?!0:d;c&&!this._disposeFocusHandler?this._disposeFocusHandler=hs(window,"focus",this._forceFocusInTrap,!0):!c&&this._disposeFocusHandler&&(this._disposeFocusHandler(),this._disposeFocusHandler=void 0),!i&&!this._disposeClickHandler?this._disposeClickHandler=hs(window,"click",this._forceClickInTrap,!0):i&&this._disposeClickHandler&&(this._disposeClickHandler(),this._disposeClickHandler=void 0)},s.prototype._isBumper=function(n){return n===this._firstBumper.current||n===this._lastBumper.current},s.prototype._getDocument=function(){return _n(this._root.current)},s._focusStack=[],s})(M.Component),Oj=Je(),Yj=(function(o){Ne(s,o);function s(){var n=o!==null&&o.apply(this,arguments)||this;return n._onRenderContent=function(t){return M.createElement("p",{className:n._classNames.subText},t.content)},n}return s.prototype.render=function(){var n=this.props,t=n.className,i=n.calloutProps,d=n.directionalHint,c=n.directionalHintForRTL,u=n.styles,h=n.id,g=n.maxWidth,w=n.onRenderContent,m=w===void 0?this._onRenderContent:w,x=n.targetElement,_=n.theme;return this._classNames=Oj(u,{theme:_,className:t||i&&i.className,beakWidth:i&&i.beakWidth,gapSpace:i&&i.gapSpace,maxWidth:g}),M.createElement(ch,F({target:x,directionalHint:d,directionalHintForRTL:c},i,pt(this.props,Yn,["id"]),{className:this._classNames.root}),M.createElement("div",{className:this._classNames.content,id:h,role:"tooltip",onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},m(this.props,this._onRenderContent)))},s.defaultProps={directionalHint:Ot.topCenter,maxWidth:"364px",calloutProps:{isBeakVisible:!0,beakWidth:16,gapSpace:0,setInitialFocus:!0,doNotLayer:!1}},s})(M.Component),Wj=function(o){var s=o.className,n=o.beakWidth,t=n===void 0?16:n,i=o.gapSpace,d=i===void 0?0:i,c=o.maxWidth,u=o.theme,h=u.semanticColors,g=u.fonts,w=u.effects,m=-(Math.sqrt(t*t/2)+d)+1/window.devicePixelRatio;return{root:["ms-Tooltip",u.fonts.medium,qr.fadeIn200,{background:h.menuBackground,boxShadow:w.elevation8,padding:"8px",maxWidth:c,selectors:{":after":{content:"''",position:"absolute",bottom:m,left:m,right:m,top:m,zIndex:0}}},s],content:["ms-Tooltip-content",g.small,{position:"relative",zIndex:1,color:h.menuItemText,wordWrap:"break-word",overflowWrap:"break-word",overflow:"hidden"}],subText:["ms-Tooltip-subtext",{fontSize:"inherit",fontWeight:"inherit",color:"inherit",margin:0}]}},Bj=Ze(Yj,Wj,void 0,{scope:"Tooltip"}),Fc;(function(o){o[o.zero=0]="zero",o[o.medium=1]="medium",o[o.long=2]="long"})(Fc||(Fc={}));var Vf;(function(o){o[o.Parent=0]="Parent",o[o.Self=1]="Self"})(Vf||(Vf={}));var Hj=Je(),zj=(function(o){Ne(s,o);function s(n){var t=o.call(this,n)||this;return t._tooltipHost=M.createRef(),t._defaultTooltipId=zt("tooltip"),t.show=function(){t._toggleTooltip(!0)},t.dismiss=function(){t._hideTooltip()},t._getTargetElement=function(){if(t._tooltipHost.current){var i=t.props.overflowMode;if(i!==void 0)switch(i){case Vf.Parent:return t._tooltipHost.current.parentElement;case Vf.Self:return t._tooltipHost.current}return t._tooltipHost.current}},t._onTooltipMouseEnter=function(i){var d=t.props,c=d.overflowMode,u=d.delay;if(s._currentVisibleTooltip&&s._currentVisibleTooltip!==t&&s._currentVisibleTooltip.dismiss(),s._currentVisibleTooltip=t,c!==void 0){var h=t._getTargetElement();if(h&&!vM(h))return}if(!(i.target&&Uy(i.target,t._getTargetElement())))if(t._clearDismissTimer(),t._clearOpenTimer(),u!==Fc.zero){var g=t._getDelayTime(u);t._openTimerId=t._async.setTimeout(function(){t._toggleTooltip(!0)},g)}else t._toggleTooltip(!0)},t._onTooltipMouseLeave=function(i){var d=t.props.closeDelay;t._clearDismissTimer(),t._clearOpenTimer(),d?t._dismissTimerId=t._async.setTimeout(function(){t._toggleTooltip(!1)},d):t._toggleTooltip(!1),s._currentVisibleTooltip===t&&(s._currentVisibleTooltip=void 0)},t._onTooltipKeyDown=function(i){(i.which===ke.escape||i.ctrlKey)&&t.state.isTooltipVisible&&(t._hideTooltip(),i.stopPropagation())},t._clearDismissTimer=function(){t._async.clearTimeout(t._dismissTimerId)},t._clearOpenTimer=function(){t._async.clearTimeout(t._openTimerId)},t._hideTooltip=function(){t._clearOpenTimer(),t._clearDismissTimer(),t._toggleTooltip(!1)},t._toggleTooltip=function(i){t.state.isTooltipVisible!==i&&t.setState({isTooltipVisible:i},function(){return t.props.onTooltipToggle&&t.props.onTooltipToggle(i)})},t._getDelayTime=function(i){switch(i){case Fc.medium:return 300;case Fc.long:return 500;default:return 0}},St(t),t.state={isAriaPlaceholderRendered:!1,isTooltipVisible:!1},t._async=new Wn(t),t}return s.prototype.render=function(){var n=this.props,t=n.calloutProps,i=n.children,d=n.content,c=n.directionalHint,u=n.directionalHintForRTL,h=n.hostClassName,g=n.id,w=n.setAriaDescribedBy,m=w===void 0?!0:w,x=n.tooltipProps,_=n.styles,v=n.theme;this._classNames=Hj(_,{theme:v,className:h});var b=this.state.isTooltipVisible,C=g||this._defaultTooltipId,k=!!(d||x&&x.onRenderContent&&x.onRenderContent()),L=b&&k,T=m&&b&&k?C:void 0;return M.createElement("div",F({className:this._classNames.root,ref:this._tooltipHost},{onFocusCapture:this._onTooltipMouseEnter},{onBlurCapture:this._hideTooltip},{onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave,onKeyDown:this._onTooltipKeyDown,"aria-describedby":T}),i,L&&M.createElement(Bj,F({id:C+"--tooltip",content:d,targetElement:this._getTargetElement(),directionalHint:c,directionalHintForRTL:u,calloutProps:qa({},t,{onDismiss:this._hideTooltip,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave}),onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave},pt(this.props,Yn,["id"]),x)),M.createElement("div",{hidden:!0,id:C,style:wd},d))},s.prototype.componentWillUnmount=function(){s._currentVisibleTooltip&&s._currentVisibleTooltip===this&&(s._currentVisibleTooltip=void 0),this._async.dispose()},s.defaultProps={delay:Fc.medium},s})(M.Component),Uj={root:"ms-TooltipHost",ariaPlaceholder:"ms-TooltipHost-aria-placeholder"},Vj=function(o){var s=o.className,n=o.theme,t=it(Uj,n);return{root:[t.root,{display:"inline"},s]}},xn=Ze(zj,Vj,void 0,{scope:"TooltipHost"}),Gf;(function(o){o[o.default=0]="default",o[o.image=1]="image",o[o.Default=1e5]="Default",o[o.Image=100001]="Image"})(Gf||(Gf={}));var ao;(function(o){o[o.center=0]="center",o[o.contain=1]="contain",o[o.cover=2]="cover",o[o.none=3]="none",o[o.centerCover=4]="centerCover",o[o.centerContain=5]="centerContain"})(ao||(ao={}));var Nc;(function(o){o[o.landscape=0]="landscape",o[o.portrait=1]="portrait"})(Nc||(Nc={}));var Io;(function(o){o[o.notLoaded=0]="notLoaded",o[o.loaded=1]="loaded",o[o.error=2]="error",o[o.errorLoaded=3]="errorLoaded"})(Io||(Io={}));var Gj=Je(),$j="fabricImage",Kj=(function(o){Ne(s,o);function s(n){var t=o.call(this,n)||this;return t._coverStyle=Nc.portrait,t._imageElement=M.createRef(),t._frameElement=M.createRef(),t._onImageLoaded=function(i){var d=t.props,c=d.src,u=d.onLoad;u&&u(i),t._computeCoverStyle(t.props),c&&t.setState({loadState:Io.loaded})},t._onImageError=function(i){t.props.onError&&t.props.onError(i),t.setState({loadState:Io.error})},t.state={loadState:Io.notLoaded},t}return s.prototype.UNSAFE_componentWillReceiveProps=function(n){n.src!==this.props.src?this.setState({loadState:Io.notLoaded}):this.state.loadState===Io.loaded&&this._computeCoverStyle(n)},s.prototype.componentDidUpdate=function(n,t){this._checkImageLoaded(),this.props.onLoadingStateChange&&t.loadState!==this.state.loadState&&this.props.onLoadingStateChange(this.state.loadState)},s.prototype.render=function(){var n=pt(this.props,rb,["width","height"]),t=this.props,i=t.src,d=t.alt,c=t.width,u=t.height,h=t.shouldFadeIn,g=t.shouldStartVisible,w=t.className,m=t.imageFit,x=t.role,_=t.maximizeFrame,v=t.styles,b=t.theme,C=this.state.loadState,k=this.props.coverStyle!==void 0?this.props.coverStyle:this._coverStyle,L=Gj(v,{theme:b,className:w,width:c,height:u,maximizeFrame:_,shouldFadeIn:h,shouldStartVisible:g,isLoaded:C===Io.loaded||C===Io.notLoaded&&this.props.shouldStartVisible,isLandscape:k===Nc.landscape,isCenter:m===ao.center,isCenterContain:m===ao.centerContain,isCenterCover:m===ao.centerCover,isContain:m===ao.contain,isCover:m===ao.cover,isNone:m===ao.none,isError:C===Io.error,isNotImageFit:m===void 0});return M.createElement("div",{className:L.root,style:{width:c,height:u},ref:this._frameElement},M.createElement("img",F({},n,{onLoad:this._onImageLoaded,onError:this._onImageError,key:$j+this.props.src||"",className:L.image,ref:this._imageElement,src:i,alt:d,role:x})))},s.prototype._checkImageLoaded=function(){var n=this.props.src,t=this.state.loadState;if(t===Io.notLoaded){var i=this._imageElement.current?n&&this._imageElement.current.naturalWidth>0&&this._imageElement.current.naturalHeight>0||this._imageElement.current.complete&&s._svgRegex.test(n):!1;i&&(this._computeCoverStyle(this.props),this.setState({loadState:Io.loaded}))}},s.prototype._computeCoverStyle=function(n){var t=n.imageFit,i=n.width,d=n.height;if((t===ao.cover||t===ao.contain||t===ao.centerContain||t===ao.centerCover)&&this.props.coverStyle===void 0&&this._imageElement.current&&this._frameElement.current){var c=void 0;typeof i=="number"&&typeof d=="number"&&t!==ao.centerContain&&t!==ao.centerCover?c=i/d:c=this._frameElement.current.clientWidth/this._frameElement.current.clientHeight;var u=this._imageElement.current.naturalWidth/this._imageElement.current.naturalHeight;u>c?this._coverStyle=Nc.landscape:this._coverStyle=Nc.portrait}},s.defaultProps={shouldFadeIn:!0},s._svgRegex=/\.svg$/i,s})(M.Component),qj={root:"ms-Image",rootMaximizeFrame:"ms-Image--maximizeFrame",image:"ms-Image-image",imageCenter:"ms-Image-image--center",imageContain:"ms-Image-image--contain",imageCover:"ms-Image-image--cover",imageCenterContain:"ms-Image-image--centerContain",imageCenterCover:"ms-Image-image--centerCover",imageNone:"ms-Image-image--none",imageLandscape:"ms-Image-image--landscape",imagePortrait:"ms-Image-image--portrait"},Jj=function(o){var s=o.className,n=o.width,t=o.height,i=o.maximizeFrame,d=o.isLoaded,c=o.shouldFadeIn,u=o.shouldStartVisible,h=o.isLandscape,g=o.isCenter,w=o.isContain,m=o.isCover,x=o.isCenterContain,_=o.isCenterCover,v=o.isNone,b=o.isError,C=o.isNotImageFit,k=o.theme,L=it(qj,k),T={position:"absolute",left:"50% /* @noflip */",top:"50%",transform:"translate(-50%,-50%)"},N=nt(),Y=N!==void 0&&N.navigator.msMaxTouchPoints===void 0,A=w&&h||m&&!h?{width:"100%",height:"auto"}:{width:"auto",height:"100%"};return{root:[L.root,k.fonts.medium,{overflow:"hidden"},i&&[L.rootMaximizeFrame,{height:"100%",width:"100%"}],d&&c&&!u&&qr.fadeIn400,(g||w||m||x||_)&&{position:"relative"},s],image:[L.image,{display:"block",opacity:0},d&&["is-loaded",{opacity:1}],g&&[L.imageCenter,T],w&&[L.imageContain,Y&&{width:"100%",height:"100%",objectFit:"contain"},!Y&&A,T],m&&[L.imageCover,Y&&{width:"100%",height:"100%",objectFit:"cover"},!Y&&A,T],x&&[L.imageCenterContain,h&&{maxWidth:"100%"},!h&&{maxHeight:"100%"},T],_&&[L.imageCenterCover,h&&{maxHeight:"100%"},!h&&{maxWidth:"100%"},T],v&&[L.imageNone,{width:"auto",height:"auto"}],C&&[!!n&&!t&&{height:"auto",width:"100%"},!n&&!!t&&{height:"100%",width:"auto"},!!n&&!!t&&{height:"100%",width:"100%"}],h&&L.imageLandscape,!h&&L.imagePortrait,!d&&"is-notLoaded",c&&"is-fadeIn",b&&"is-error"]}},Vp=Ze(Kj,Jj,void 0,{scope:"Image"},!0),ud=tl({root:{display:"inline-block"},placeholder:["ms-Icon-placeHolder",{width:"1em"}],image:["ms-Icon-imageContainer",{overflow:"hidden"}]}),yb="ms-Icon",Zj=function(o){var s=o.className,n=o.iconClassName,t=o.isPlaceholder,i=o.isImage,d=o.styles;return{root:[t&&ud.placeholder,ud.root,i&&ud.image,n,s,d&&d.root,d&&d.imageContainer]}},wb=Et(function(o){var s=IM(o)||{subset:{},code:void 0},n=s.code,t=s.subset;return n?{children:n,iconClassName:t.className,fontFamily:t.fontFace&&t.fontFace.fontFamily,mergeImageProps:t.mergeImageProps}:null},void 0,!0),kt=function(o){var s=o.iconName,n=o.className,t=o.style,i=t===void 0?{}:t,d=wb(s)||{},c=d.iconClassName,u=d.children,h=d.fontFamily,g=d.mergeImageProps,w=pt(o,sn),m=o["aria-label"]||o.title,x=o["aria-label"]||o["aria-labelledby"]||o.title?{role:g?void 0:"img"}:{"aria-hidden":!0},_=u;return g&&typeof u=="object"&&typeof u.props=="object"&&m&&(_=M.cloneElement(u,{alt:m})),M.createElement("i",F({"data-icon-name":s},x,w,g?{title:void 0,"aria-label":void 0}:{},{className:on(yb,ud.root,c,!s&&ud.placeholder,n),style:F({fontFamily:h},i)}),_)};Et(function(o,s,n){return kt({iconName:o,className:s,"aria-label":n})});var Xj=Je({cacheSize:100}),Qj=(function(o){Ne(s,o);function s(n){var t=o.call(this,n)||this;return t._onImageLoadingStateChange=function(i){t.props.imageProps&&t.props.imageProps.onLoadingStateChange&&t.props.imageProps.onLoadingStateChange(i),i===Io.error&&t.setState({imageLoadError:!0})},t.state={imageLoadError:!1},t}return s.prototype.render=function(){var n=this.props,t=n.children,i=n.className,d=n.styles,c=n.iconName,u=n.imageErrorAs,h=n.theme,g=typeof c=="string"&&c.length===0,w=!!this.props.imageProps||this.props.iconType===Gf.image||this.props.iconType===Gf.Image,m=wb(c)||{},x=m.iconClassName,_=m.children,v=m.mergeImageProps,b=Xj(d,{theme:h,className:i,iconClassName:x,isImage:w,isPlaceholder:g}),C=w?"span":"i",k=pt(this.props,sn,["aria-label"]),L=this.state.imageLoadError,T=F(F({},this.props.imageProps),{onLoadingStateChange:this._onImageLoadingStateChange}),N=L&&u||Vp,Y=this.props["aria-label"]||this.props.ariaLabel,A=T.alt||Y||this.props.title,I=!!(A||this.props["aria-labelledby"]||T["aria-label"]||T["aria-labelledby"]),R=I?{role:w||v?void 0:"img","aria-label":w||v?void 0:A}:{"aria-hidden":!(this.props["aria-labelledby"]||T["aria-labelledby"])},H=_;return v&&_&&typeof _=="object"&&A&&(H=M.cloneElement(_,{alt:A})),M.createElement(C,F({"data-icon-name":c},R,k,v?{title:void 0,"aria-label":void 0}:{},{className:b.root}),w?M.createElement(N,F({},T)):t||H)},s})(M.Component),ze=Ze(Qj,Zj,void 0,{scope:"Icon"},!0);ze.displayName="Icon";var eL=function(o){var s=o.className,n=o.imageProps,t=pt(o,sn),i=o["aria-label"]?{}:{role:"presentation","aria-hidden":!(n.alt||n["aria-labelledby"])};return M.createElement("div",F({},i,t,{className:on(yb,ud.root,ud.image,s)}),M.createElement(Vp,F({},n)))},Cy={all:1,inputOnly:2},kn;(function(o){o[o.vertical=0]="vertical",o[o.horizontal=1]="horizontal",o[o.bidirectional=2]="bidirectional",o[o.domOrder=3]="domOrder"})(kn||(kn={}));var Zm="data-is-focusable",tL="data-disable-click-on-enter",F_="data-focuszone-id",gi="tabindex",N_="data-no-vertical-wrap",O_="data-no-horizontal-wrap",Y_=999999999,Sp=-999999999,W_,nL="ms-FocusZone";function rL(o,s){var n,t,i,d,c,u,h;typeof MouseEvent=="function"?h=new MouseEvent("click",{ctrlKey:(n=s)===null||n===void 0?void 0:n.ctrlKey,metaKey:(t=s)===null||t===void 0?void 0:t.metaKey,shiftKey:(i=s)===null||i===void 0?void 0:i.shiftKey,altKey:(d=s)===null||d===void 0?void 0:d.altKey,bubbles:(c=s)===null||c===void 0?void 0:c.bubbles,cancelable:(u=s)===null||u===void 0?void 0:u.cancelable}):(h=document.createEvent("MouseEvents"),h.initMouseEvent("click",s?s.bubbles:!1,s?s.cancelable:!1,window,0,0,0,0,0,s?s.ctrlKey:!1,s?s.altKey:!1,s?s.shiftKey:!1,s?s.metaKey:!1,0,null)),o.dispatchEvent(h)}function oL(){return W_||(W_=Bs({selectors:{":focus":{outline:"none"}}},nL)),W_}var Cp={},Ec=new Set,sL=["text","number","password","email","tel","url","search"],td=!1,xd=(function(o){Ne(s,o);function s(n){var t=o.call(this,n)||this;return t._root=M.createRef(),t._mergedRef=Ky(),t._onFocus=function(i){if(!t._portalContainsElement(i.target)){var d=t.props,c=d.onActiveElementChanged,u=d.doNotAllowFocusEventToPropagate,h=d.stopFocusPropagation,g=d.onFocusNotification,w=d.onFocus,m=d.shouldFocusInnerElementWhenReceivedFocus,x=d.defaultTabbableElement,_=t._isImmediateDescendantOfZone(i.target),v;if(_)v=i.target;else for(var b=i.target;b&&b!==t._root.current;){if(Os(b)&&t._isImmediateDescendantOfZone(b)){v=b;break}b=Cn(b,td)}if(m&&i.target===t._root.current){var C=x&&typeof x=="function"&&x(t._root.current);C&&Os(C)?(v=C,C.focus()):(t.focus(!0),t._activeElement&&(v=null))}var k=!t._activeElement;v&&v!==t._activeElement&&((_||k)&&t._setFocusAlignment(v,!0,!0),t._activeElement=v,k&&t._updateTabIndexes()),c&&c(t._activeElement,i),(h||u)&&i.stopPropagation(),w?w(i):g&&g()}},t._onBlur=function(){t._setParkedFocus(!1)},t._onMouseDown=function(i){if(!t._portalContainsElement(i.target)){var d=t.props.disabled;if(!d){for(var c=i.target,u=[];c&&c!==t._root.current;)u.push(c),c=Cn(c,td);for(;u.length&&(c=u.pop(),c&&Os(c)&&t._setActiveElement(c,!0),!Qi(c)););}}},t._onKeyDown=function(i,d){if(!t._portalContainsElement(i.target)){var c=t.props,u=c.direction,h=c.disabled,g=c.isInnerZoneKeystroke,w=c.pagingSupportDisabled,m=c.shouldEnterInnerZone;if(!h&&(t.props.onKeyDown&&t.props.onKeyDown(i),!i.isDefaultPrevented()&&!(t._getDocument().activeElement===t._root.current&&t._isInnerZone))){if((m&&m(i)||g&&g(i))&&t._isImmediateDescendantOfZone(i.target)){var x=t._getFirstInnerZone();if(x){if(!x.focus(!0))return}else if(Gy(i.target)){if(!t.focusElement($r(i.target,i.target.firstChild,!0)))return}else return}else{if(i.altKey)return;switch(i.which){case ke.space:if(t._tryInvokeClickForFocusable(i.target,i))break;return;case ke.left:if(u!==kn.vertical&&(t._preventDefaultWhenHandled(i),t._moveFocusLeft(d)))break;return;case ke.right:if(u!==kn.vertical&&(t._preventDefaultWhenHandled(i),t._moveFocusRight(d)))break;return;case ke.up:if(u!==kn.horizontal&&(t._preventDefaultWhenHandled(i),t._moveFocusUp()))break;return;case ke.down:if(u!==kn.horizontal&&(t._preventDefaultWhenHandled(i),t._moveFocusDown()))break;return;case ke.pageDown:if(!w&&t._moveFocusPaging(!0))break;return;case ke.pageUp:if(!w&&t._moveFocusPaging(!1))break;return;case ke.tab:if(t.props.allowTabKey||t.props.handleTabKey===Cy.all||t.props.handleTabKey===Cy.inputOnly&&t._isElementInput(i.target)){var _=!1;if(t._processingTabKey=!0,u===kn.vertical||!t._shouldWrapFocus(t._activeElement,O_))_=i.shiftKey?t._moveFocusUp():t._moveFocusDown();else{var v=Tt(d)?!i.shiftKey:i.shiftKey;_=v?t._moveFocusLeft(d):t._moveFocusRight(d)}if(t._processingTabKey=!1,_)break;t.props.shouldResetActiveElementWhenTabFromZone&&(t._activeElement=null)}return;case ke.home:if(t._isContentEditableElement(i.target)||t._isElementInput(i.target)&&!t._shouldInputLoseFocus(i.target,!1))return!1;var b=t._root.current&&t._root.current.firstChild;if(t._root.current&&b&&t.focusElement($r(t._root.current,b,!0)))break;return;case ke.end:if(t._isContentEditableElement(i.target)||t._isElementInput(i.target)&&!t._shouldInputLoseFocus(i.target,!0))return!1;var C=t._root.current&&t._root.current.lastChild;if(t._root.current&&t.focusElement(co(t._root.current,C,!0,!0,!0)))break;return;case ke.enter:if(t._tryInvokeClickForFocusable(i.target,i))break;return;default:return}}i.preventDefault(),i.stopPropagation()}}},t._getHorizontalDistanceFromCenter=function(i,d,c){var u=t._focusAlignment.left||t._focusAlignment.x||0,h=Math.floor(c.top),g=Math.floor(d.bottom),w=Math.floor(c.bottom),m=Math.floor(d.top),x=i&&h>g,_=!i&&w<m;return x||_?u>=c.left&&u<=c.left+c.width?0:Math.abs(c.left+c.width/2-u):t._shouldWrapFocus(t._activeElement,N_)?Y_:Sp},St(t),t._id=zt("FocusZone"),t._focusAlignment={left:0,top:0},t._processingTabKey=!1,t}return s.getOuterZones=function(){return Ec.size},s._onKeyDownCapture=function(n){n.which===ke.tab&&Ec.forEach(function(t){return t._updateTabIndexes()})},s.prototype.componentDidMount=function(){var n=this._root.current;if(Cp[this._id]=this,n){this._windowElement=nt(n);for(var t=Cn(n,td);t&&t!==this._getDocument().body&&t.nodeType===1;){if(Qi(t)){this._isInnerZone=!0;break}t=Cn(t,td)}this._isInnerZone||(Ec.add(this),this._windowElement&&Ec.size===1&&this._windowElement.addEventListener("keydown",s._onKeyDownCapture,!0)),this._root.current&&this._root.current.addEventListener("blur",this._onBlur,!0),this._updateTabIndexes(),this.props.defaultTabbableElement&&typeof this.props.defaultTabbableElement=="string"?this._activeElement=this._getDocument().querySelector(this.props.defaultTabbableElement):this.props.defaultActiveElement&&(this._activeElement=this._getDocument().querySelector(this.props.defaultActiveElement)),this.props.shouldFocusOnMount&&this.focus()}},s.prototype.componentDidUpdate=function(){var n=this._root.current,t=this._getDocument();if(t&&this._lastIndexPath&&(t.activeElement===t.body||t.activeElement===null||!this.props.preventFocusRestoration&&t.activeElement===n)){var i=O5(n,this._lastIndexPath);i?(this._setActiveElement(i,!0),i.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},s.prototype.componentWillUnmount=function(){delete Cp[this._id],this._isInnerZone||(Ec.delete(this),this._windowElement&&Ec.size===0&&this._windowElement.removeEventListener("keydown",s._onKeyDownCapture,!0)),this._root.current&&this._root.current.removeEventListener("blur",this._onBlur,!0),this._activeElement=null,this._defaultFocusElement=null},s.prototype.render=function(){var n=this,t=this.props,i=t.as,d=t.elementType,c=t.rootProps,u=t.ariaDescribedBy,h=t.ariaLabelledBy,g=t.className,w=pt(this.props,sn),m=i||d||"div";this._evaluateFocusBeforeRender();var x=W3();return M.createElement(m,F({"aria-labelledby":h,"aria-describedby":u},w,c,{className:on(oL(),g),ref:this._mergedRef(this.props.elementRef,this._root),"data-focuszone-id":this._id,onKeyDown:function(_){return n._onKeyDown(_,x)},onFocus:this._onFocus,onMouseDownCapture:this._onMouseDown}),this.props.children)},s.prototype.focus=function(n){if(n===void 0&&(n=!1),this._root.current)if(!n&&this._root.current.getAttribute(Zm)==="true"&&this._isInnerZone){var t=this._getOwnerZone(this._root.current);if(t!==this._root.current){var i=Cp[t.getAttribute(F_)];return!!i&&i.focusElement(this._root.current)}return!1}else{if(!n&&this._activeElement&&un(this._root.current,this._activeElement)&&Os(this._activeElement))return this._activeElement.focus(),!0;var d=this._root.current.firstChild;return this.focusElement($r(this._root.current,d,!0))}return!1},s.prototype.focusLast=function(){if(this._root.current){var n=this._root.current&&this._root.current.lastChild;return this.focusElement(co(this._root.current,n,!0,!0,!0))}return!1},s.prototype.focusElement=function(n,t){var i=this.props,d=i.onBeforeFocus,c=i.shouldReceiveFocus;return c&&!c(n)||d&&!d(n)?!1:n?(this._setActiveElement(n,t),this._activeElement&&this._activeElement.focus(),!0):!1},s.prototype.setFocusAlignment=function(n){this._focusAlignment=n},s.prototype._evaluateFocusBeforeRender=function(){var n=this._root.current,t=this._getDocument();if(t){var i=t.activeElement;if(i!==n){var d=un(n,i,!1);this._lastIndexPath=d?Y5(n,i):void 0}}},s.prototype._setParkedFocus=function(n){var t=this._root.current;t&&this._isParked!==n&&(this._isParked=n,n?(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")))},s.prototype._setActiveElement=function(n,t){var i=this._activeElement;this._activeElement=n,i&&(Qi(i)&&this._updateTabIndexes(i),i.tabIndex=-1),this._activeElement&&((!this._focusAlignment||t)&&this._setFocusAlignment(n,!0,!0),this._activeElement.tabIndex=0)},s.prototype._preventDefaultWhenHandled=function(n){this.props.preventDefaultWhenHandled&&n.preventDefault()},s.prototype._tryInvokeClickForFocusable=function(n,t){var i=n;if(i===this._root.current||!this.props.shouldRaiseClicks)return!1;do{if(i.tagName==="BUTTON"||i.tagName==="A"||i.tagName==="INPUT"||i.tagName==="TEXTAREA")return!1;if(this._isImmediateDescendantOfZone(i)&&i.getAttribute(Zm)==="true"&&i.getAttribute(tL)!=="true")return rL(i,t),!0;i=Cn(i,td)}while(i!==this._root.current);return!1},s.prototype._getFirstInnerZone=function(n){if(n=n||this._activeElement||this._root.current,!n)return null;if(Qi(n))return Cp[n.getAttribute(F_)];for(var t=n.firstElementChild;t;){if(Qi(t))return Cp[t.getAttribute(F_)];var i=this._getFirstInnerZone(t);if(i)return i;t=t.nextElementSibling}return null},s.prototype._moveFocus=function(n,t,i,d){d===void 0&&(d=!0);var c=this._activeElement,u=-1,h=void 0,g=!1,w=this.props.direction===kn.bidirectional;if(!c||!this._root.current||this._isElementInput(c)&&!this._shouldInputLoseFocus(c,n))return!1;var m=w?c.getBoundingClientRect():null;do if(c=n?$r(this._root.current,c):co(this._root.current,c),w){if(c){var x=c.getBoundingClientRect(),_=t(m,x);if(_===-1&&u===-1){h=c;break}if(_>-1&&(u===-1||_<u)&&(u=_,h=c),u>=0&&_<0)break}}else{h=c;break}while(c);if(h&&h!==this._activeElement)g=!0,this.focusElement(h);else if(this.props.isCircularNavigation&&d)return n?this.focusElement($r(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(co(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return g},s.prototype._moveFocusDown=function(){var n=this,t=-1,i=this._focusAlignment.left||this._focusAlignment.x||0;return this._moveFocus(!0,function(d,c){var u=-1,h=Math.floor(c.top),g=Math.floor(d.bottom);return h<g?n._shouldWrapFocus(n._activeElement,N_)?Y_:Sp:((t===-1&&h>=g||h===t)&&(t=h,i>=c.left&&i<=c.left+c.width?u=0:u=Math.abs(c.left+c.width/2-i)),u)})?(this._setFocusAlignment(this._activeElement,!1,!0),!0):!1},s.prototype._moveFocusUp=function(){var n=this,t=-1,i=this._focusAlignment.left||this._focusAlignment.x||0;return this._moveFocus(!1,function(d,c){var u=-1,h=Math.floor(c.bottom),g=Math.floor(c.top),w=Math.floor(d.top);return h>w?n._shouldWrapFocus(n._activeElement,N_)?Y_:Sp:((t===-1&&h<=w||g===t)&&(t=g,i>=c.left&&i<=c.left+c.width?u=0:u=Math.abs(c.left+c.width/2-i)),u)})?(this._setFocusAlignment(this._activeElement,!1,!0),!0):!1},s.prototype._moveFocusLeft=function(n){var t=this,i=this._shouldWrapFocus(this._activeElement,O_);return this._moveFocus(Tt(n),function(d,c){var u=-1,h;return Tt(n)?h=parseFloat(c.top.toFixed(3))<parseFloat(d.bottom.toFixed(3)):h=parseFloat(c.bottom.toFixed(3))>parseFloat(d.top.toFixed(3)),h&&c.right<=d.right&&t.props.direction!==kn.vertical?u=d.right-c.right:i||(u=Sp),u},void 0,i)?(this._setFocusAlignment(this._activeElement,!0,!1),!0):!1},s.prototype._moveFocusRight=function(n){var t=this,i=this._shouldWrapFocus(this._activeElement,O_);return this._moveFocus(!Tt(n),function(d,c){var u=-1,h;return Tt(n)?h=parseFloat(c.bottom.toFixed(3))>parseFloat(d.top.toFixed(3)):h=parseFloat(c.top.toFixed(3))<parseFloat(d.bottom.toFixed(3)),h&&c.left>=d.left&&t.props.direction!==kn.vertical?u=c.left-d.left:i||(u=Sp),u},void 0,i)?(this._setFocusAlignment(this._activeElement,!0,!1),!0):!1},s.prototype._moveFocusPaging=function(n,t){t===void 0&&(t=!0);var i=this._activeElement;if(!i||!this._root.current||this._isElementInput(i)&&!this._shouldInputLoseFocus(i,n))return!1;var d=ih(i);if(!d)return!1;var c=-1,u=void 0,h=-1,g=-1,w=d.clientHeight,m=i.getBoundingClientRect();do if(i=n?$r(this._root.current,i):co(this._root.current,i),i){var x=i.getBoundingClientRect(),_=Math.floor(x.top),v=Math.floor(m.bottom),b=Math.floor(x.bottom),C=Math.floor(m.top),k=this._getHorizontalDistanceFromCenter(n,m,x),L=n&&_>v+w,T=!n&&b<C-w;if(L||T)break;k>-1&&(n&&_>h?(h=_,c=k,u=i):!n&&b<g?(g=b,c=k,u=i):(c===-1||k<=c)&&(c=k,u=i))}while(i);var N=!1;if(u&&u!==this._activeElement)N=!0,this.focusElement(u),this._setFocusAlignment(u,!1,!0);else if(this.props.isCircularNavigation&&t)return n?this.focusElement($r(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(co(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return N},s.prototype._setFocusAlignment=function(n,t,i){if(this.props.direction===kn.bidirectional&&(!this._focusAlignment||t||i)){var d=n.getBoundingClientRect(),c=d.left+d.width/2,u=d.top+d.height/2;this._focusAlignment||(this._focusAlignment={left:c,top:u}),t&&(this._focusAlignment.left=c),i&&(this._focusAlignment.top=u)}},s.prototype._isImmediateDescendantOfZone=function(n){return this._getOwnerZone(n)===this._root.current},s.prototype._getOwnerZone=function(n){for(var t=Cn(n,td);t&&t!==this._root.current&&t!==this._getDocument().body;){if(Qi(t))return t;t=Cn(t,td)}return t},s.prototype._updateTabIndexes=function(n){!this._activeElement&&this.props.defaultTabbableElement&&typeof this.props.defaultTabbableElement=="function"&&(this._activeElement=this.props.defaultTabbableElement(this._root.current)),!n&&this._root.current&&(this._defaultFocusElement=null,n=this._root.current,this._activeElement&&!un(n,this._activeElement)&&(this._activeElement=null)),this._activeElement&&!Os(this._activeElement)&&(this._activeElement=null);for(var t=n&&n.children,i=0;t&&i<t.length;i++){var d=t[i];Qi(d)?d.getAttribute(Zm)==="true"&&(!this._isInnerZone&&(!this._activeElement&&!this._defaultFocusElement||this._activeElement===d)?(this._defaultFocusElement=d,d.getAttribute(gi)!=="0"&&d.setAttribute(gi,"0")):d.getAttribute(gi)!=="-1"&&d.setAttribute(gi,"-1")):(d.getAttribute&&d.getAttribute(Zm)==="false"&&d.setAttribute(gi,"-1"),Os(d)?this.props.disabled?d.setAttribute(gi,"-1"):!this._isInnerZone&&(!this._activeElement&&!this._defaultFocusElement||this._activeElement===d)?(this._defaultFocusElement=d,d.getAttribute(gi)!=="0"&&d.setAttribute(gi,"0")):d.getAttribute(gi)!=="-1"&&d.setAttribute(gi,"-1"):d.tagName==="svg"&&d.getAttribute("focusable")!=="false"&&d.setAttribute("focusable","false")),this._updateTabIndexes(d)}},s.prototype._isContentEditableElement=function(n){return n&&n.getAttribute("contenteditable")==="true"},s.prototype._isElementInput=function(n){return!!(n&&n.tagName&&(n.tagName.toLowerCase()==="input"||n.tagName.toLowerCase()==="textarea"))},s.prototype._shouldInputLoseFocus=function(n,t){if(!this._processingTabKey&&n&&n.type&&sL.indexOf(n.type.toLowerCase())>-1){var i=n.selectionStart,d=n.selectionEnd,c=i!==d,u=n.value,h=n.readOnly;if(c||i>0&&!t&&!h||i!==u.length&&t&&!h||this.props.handleTabKey&&!(this.props.shouldInputLoseFocusOnArrowKey&&this.props.shouldInputLoseFocusOnArrowKey(n)))return!1}return!0},s.prototype._shouldWrapFocus=function(n,t){return this.props.checkForNoWrap?Q0(n,t):!0},s.prototype._portalContainsElement=function(n){return n&&!!this._root.current&&Uy(n,this._root.current)},s.prototype._getDocument=function(){return _n(this._root.current)},s.defaultProps={isCircularNavigation:!1,direction:kn.bidirectional,shouldRaiseClicks:!0},s})(M.Component),iL="ktp",Cv="-",aL="data-ktp-target",lL="data-ktp-execute-target",dL="ktp-layer-id",_i;(function(o){o.KEYTIP_ADDED="keytipAdded",o.KEYTIP_REMOVED="keytipRemoved",o.KEYTIP_UPDATED="keytipUpdated",o.PERSISTED_KEYTIP_ADDED="persistedKeytipAdded",o.PERSISTED_KEYTIP_REMOVED="persistedKeytipRemoved",o.PERSISTED_KEYTIP_EXECUTE="persistedKeytipExecute",o.ENTER_KEYTIP_MODE="enterKeytipMode",o.EXIT_KEYTIP_MODE="exitKeytipMode"})(_i||(_i={}));var vb=(function(){function o(){this.keytips={},this.persistedKeytips={},this.sequenceMapping={},this.inKeytipMode=!1,this.shouldEnterKeytipMode=!0,this.delayUpdatingKeytipChange=!1}return o.getInstance=function(){return this._instance},o.prototype.init=function(s){this.delayUpdatingKeytipChange=s},o.prototype.register=function(s,n){n===void 0&&(n=!1);var t=s;n||(t=this.addParentOverflow(s),this.sequenceMapping[t.keySequences.toString()]=t);var i=this._getUniqueKtp(t);if(n?this.persistedKeytips[i.uniqueID]=i:this.keytips[i.uniqueID]=i,this.inKeytipMode||!this.delayUpdatingKeytipChange){var d=n?_i.PERSISTED_KEYTIP_ADDED:_i.KEYTIP_ADDED;Yt.raise(this,d,{keytip:t,uniqueID:i.uniqueID})}return i.uniqueID},o.prototype.update=function(s,n){var t=this.addParentOverflow(s),i=this._getUniqueKtp(t,n),d=this.keytips[n];d&&(i.keytip.visible=d.keytip.visible,this.keytips[n]=i,delete this.sequenceMapping[d.keytip.keySequences.toString()],this.sequenceMapping[i.keytip.keySequences.toString()]=i.keytip,(this.inKeytipMode||!this.delayUpdatingKeytipChange)&&Yt.raise(this,_i.KEYTIP_UPDATED,{keytip:i.keytip,uniqueID:i.uniqueID}))},o.prototype.unregister=function(s,n,t){t===void 0&&(t=!1),t?delete this.persistedKeytips[n]:delete this.keytips[n],!t&&delete this.sequenceMapping[s.keySequences.toString()];var i=t?_i.PERSISTED_KEYTIP_REMOVED:_i.KEYTIP_REMOVED;(this.inKeytipMode||!this.delayUpdatingKeytipChange)&&Yt.raise(this,i,{keytip:s,uniqueID:n})},o.prototype.enterKeytipMode=function(){Yt.raise(this,_i.ENTER_KEYTIP_MODE)},o.prototype.exitKeytipMode=function(){Yt.raise(this,_i.EXIT_KEYTIP_MODE)},o.prototype.getKeytips=function(){var s=this;return Object.keys(this.keytips).map(function(n){return s.keytips[n].keytip})},o.prototype.addParentOverflow=function(s){var n=Nn(s.keySequences);if(n.pop(),n.length!==0){var t=this.sequenceMapping[n.toString()];if(t&&t.overflowSetSequence)return F(F({},s),{overflowSetSequence:t.overflowSetSequence})}return s},o.prototype.menuExecute=function(s,n){Yt.raise(this,_i.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:s,keytipSequences:n})},o.prototype._getUniqueKtp=function(s,n){return n===void 0&&(n=zt()),{keytip:F({},s),uniqueID:n}},o._instance=new o,o})();function xb(o){return o.reduce(function(s,n){return s+Cv+n.split("").join(Cv)},iL)}function cL(o,s){var n=s.length,t=Nn(s).pop(),i=Nn(o);return i5(i,n-1,t)}function uL(o){var s=" "+dL;return o.length?s+" "+xb(o):s}function bb(o){var s=M.useRef();return s.current===void 0&&(s.current={value:typeof o=="function"?o():o}),s.current.value}function pL(o){var s=M.useRef();return M.useEffect(function(){s.current=o}),s.current}var hL=M.createContext({window:typeof window=="object"?window:void 0});function mL(o){var s=M.useRef(),n=o.keytipProps?F({disabled:o.disabled},o.keytipProps):void 0,t=bb(vb.getInstance()),i=pL(o);M.useLayoutEffect(function(){var c,u;s.current&&n&&(((c=i)===null||c===void 0?void 0:c.keytipProps)!==o.keytipProps||((u=i)===null||u===void 0?void 0:u.disabled)!==o.disabled)&&t.update(n,s.current)}),M.useLayoutEffect(function(){return n&&(s.current=t.register(n)),function(){n&&t.unregister(n,s.current)}},[]);var d={ariaDescribedBy:void 0,keytipId:void 0};return n&&(d=fL(t,n,o.ariaDescribedBy)),d}function fL(o,s,n){var t=o.addParentOverflow(s),i=Za(n,uL(t.keySequences)),d=Nn(t.keySequences);t.overflowSetSequence&&(d=cL(d,t.overflowSetSequence));var c=xb(d);return{ariaDescribedBy:i,keytipId:c}}var ra=function(o){var s,n=o.children,t=mo(o,["children"]),i=mL(t),d=i.keytipId,c=i.ariaDescribedBy;return n((s={},s[aL]=d,s[lL]=d,s["aria-describedby"]=c,s))},gL=Je(),_L=(function(o){Ne(s,o);function s(n){var t=o.call(this,n)||this;return t._link=M.createRef(),t._renderContent=function(i){i===void 0&&(i={});var d=t.props,c=d.disabled,u=d.children,h=d.className,g=d.href,w=d.underline,m=d.theme,x=d.styles,_=gL(x,{className:h,isButton:!g,isDisabled:c,isUnderlined:w,theme:m}),v=t._getRootType(t.props);return M.createElement(v,F({},i,t._adjustPropsForRootType(v,t.props),{className:_.root,onClick:t._onClick,ref:t._link,"aria-disabled":c}),u)},t._onClick=function(i){var d=t.props,c=d.onClick,u=d.disabled;u?i.preventDefault():c&&c(i)},St(t),t}return s.prototype.render=function(){var n=this,t=this.props,i=t.disabled,d=t.keytipProps;return d?M.createElement(ra,{keytipProps:d,ariaDescribedBy:this.props["aria-describedby"],disabled:i},function(c){return n._renderContent(c)}):this._renderContent()},s.prototype.focus=function(){var n=this._link.current;n&&n.focus&&n.focus()},s.prototype._adjustPropsForRootType=function(n,t){t.children,t.as;var i=t.disabled,d=t.target,c=t.href;t.theme,t.getStyles,t.styles,t.componentRef,t.keytipProps,t.underline;var u=mo(t,["children","as","disabled","target","href","theme","getStyles","styles","componentRef","keytipProps","underline"]);return typeof n=="string"?n==="a"?F({target:d,href:i?void 0:c},u):n==="button"?F({type:"button",disabled:i},u):F(F({},u),{disabled:i}):F({target:d,href:c,disabled:i},u)},s.prototype._getRootType=function(n){return n.as?n.as:n.href?"a":"button"},s})(M.Component),yL={root:"ms-Link"},wL=function(o){var s,n,t,i,d,c,u=o.className,h=o.isButton,g=o.isDisabled,w=o.isUnderlined,m=o.theme,x=m.semanticColors,_=x.link,v=x.linkHovered,b=x.disabledText,C=x.focusBorder,k=it(yL,m);return{root:[k.root,m.fonts.medium,{color:_,outline:"none",fontSize:"inherit",fontWeight:"inherit",textDecoration:w?"underline":"none",selectors:(s={".ms-Fabric--isFocusVisible &:focus":{boxShadow:"0 0 0 1px "+C+" inset",outline:"1px auto "+C,selectors:(n={},n[_e]={outline:"1px solid WindowText"},n)}},s[_e]={borderBottom:"none"},s)},h&&{background:"none",backgroundColor:"transparent",border:"none",cursor:"pointer",display:"inline",margin:0,overflow:"inherit",padding:0,textAlign:"left",textOverflow:"inherit",userSelect:"text",borderBottom:"1px solid transparent",selectors:(t={},t[_e]={color:"LinkText",forcedColorAdjust:"none"},t)},!h&&{selectors:(i={},i[_e]={MsHighContrastAdjust:"auto",forcedColorAdjust:"auto"},i)},g&&["is-disabled",{color:b,cursor:"default"},{selectors:{"&:link, &:visited":{pointerEvents:"none"}}}],!g&&{selectors:{"&:active, &:hover, &:active:hover":{color:v,textDecoration:"underline",selectors:(d={},d[_e]={color:"LinkText"},d)},"&:focus":{color:_,selectors:(c={},c[_e]={color:"LinkText"},c)}}},k.root,u]}},Sb=Ze(_L,wL,void 0,{scope:"Link"}),tr;(function(o){o[o.Normal=0]="Normal",o[o.Divider=1]="Divider",o[o.Header=2]="Header",o[o.Section=3]="Section"})(tr||(tr={}));function Gp(o){return o.canCheck?!!(o.isChecked||o.checked):typeof o.isChecked=="boolean"?o.isChecked:typeof o.checked=="boolean"?o.checked:null}function na(o){return!!(o.subMenuProps||o.items)}function vi(o){return!!(o.isDisabled||o.disabled)}function Cb(o){var s=Gp(o),n=s!==null;return n?"menuitemcheckbox":"menuitem"}var kb=(function(o){Ne(s,o);function s(n){var t=o.call(this,n)||this;return t._updateComposedComponentRef=t._updateComposedComponentRef.bind(t),t}return s.prototype._updateComposedComponentRef=function(n){this._composedComponentInstance=n,n?this._hoisted=aM(this,n):this._hoisted&&lM(this,this._hoisted)},s})(M.Component),Qa;(function(o){o[o.small=0]="small",o[o.medium=1]="medium",o[o.large=2]="large",o[o.xLarge=3]="xLarge",o[o.xxLarge=4]="xxLarge",o[o.xxxLarge=5]="xxxLarge",o[o.unknown=999]="unknown"})(Qa||(Qa={}));var vL=[479,639,1023,1365,1919,99999999],Mb;function jb(){var o;return o=Mb,o??Qa.large}function uh(o){var s,n=(s=(function(t){Ne(i,t);function i(d){var c=t.call(this,d)||this;return c._onResize=function(){var u=bL(c.context.window);u!==c.state.responsiveMode&&c.setState({responsiveMode:u})},c._events=new Yt(c),c._updateComposedComponentRef=c._updateComposedComponentRef.bind(c),c.state={responsiveMode:jb()},c}return i.prototype.componentDidMount=function(){this._events.on(this.context.window,"resize",this._onResize),this._onResize()},i.prototype.componentWillUnmount=function(){this._events.dispose()},i.prototype.render=function(){var d=this.state.responsiveMode;return d===Qa.unknown?null:M.createElement(o,F({ref:this._updateComposedComponentRef,responsiveMode:d},this.props))},i})(kb),s.contextType=hL,s);return K0(o,n)}function xL(o){try{return o.document.documentElement.clientWidth}catch{return o.innerWidth}}function bL(o){var s=Qa.small;if(o){try{for(;xL(o)>vL[s];)s++}catch{s=jb()}Mb=s}else throw new Error("Content was rendered in a server environment without providing a default responsive mode. Call setResponsiveMode to define what the responsive mode is.");return s}var SL=function(o){var s=o.item,n=o.hasIcons,t=o.classNames,i=s.iconProps;return n?s.onRenderIcon?s.onRenderIcon(o):M.createElement(ze,F({},i,{className:t.icon})):null},CL=function(o){var s=o.onCheckmarkClick,n=o.item,t=o.classNames,i=Gp(n);if(s){var d=function(c){return s(n,c)};return M.createElement(ze,{iconName:n.canCheck!==!1&&i?"CheckMark":"",className:t.checkmarkIcon,onClick:d})}return null},kL=function(o){var s=o.item,n=o.classNames;return s.text||s.name?M.createElement("span",{className:n.label},s.text||s.name):null},ML=function(o){var s=o.item,n=o.classNames;return s.secondaryText?M.createElement("span",{className:n.secondaryText},s.secondaryText):null},jL=function(o){var s=o.item,n=o.classNames,t=o.theme;return na(s)?M.createElement(ze,F({iconName:Tt(t)?"ChevronLeft":"ChevronRight"},s.submenuIconProps,{className:n.subMenuIcon})):null},LL=(function(o){Ne(s,o);function s(n){var t=o.call(this,n)||this;return t.openSubMenu=function(){var i=t.props,d=i.item,c=i.openSubMenu,u=i.getSubmenuTarget;if(u){var h=u();na(d)&&c&&h&&c(d,h)}},t.dismissSubMenu=function(){var i=t.props,d=i.item,c=i.dismissSubMenu;na(d)&&c&&c()},t.dismissMenu=function(i){var d=t.props.dismissMenu;d&&d(void 0,i)},St(t),t}return s.prototype.render=function(){var n=this.props,t=n.item,i=n.classNames,d=t.onRenderContent||this._renderLayout;return M.createElement("div",{className:t.split?i.linkContentMenu:i.linkContent},d(this.props,{renderCheckMarkIcon:CL,renderItemIcon:SL,renderItemName:kL,renderSecondaryText:ML,renderSubMenuIcon:jL}))},s.prototype._renderLayout=function(n,t){return M.createElement(M.Fragment,null,t.renderCheckMarkIcon(n),t.renderItemIcon(n),t.renderItemName(n),t.renderSecondaryText(n),t.renderSubMenuIcon(n))},s})(M.Component),EL=Et(function(o){return tl({wrapper:{display:"inline-flex",height:"100%",alignItems:"center"},divider:{width:1,height:"100%",backgroundColor:o.palette.neutralTertiaryAlt}})}),Ka=36,kv=cg(0,ab),DL=Et(function(o){var s,n,t,i,d,c=o.semanticColors,u=o.fonts,h=o.palette,g=c.menuItemBackgroundHovered,w=c.menuItemTextHovered,m=c.menuItemBackgroundPressed,x=c.bodyDivider,_={item:[u.medium,{color:c.bodyText,position:"relative",boxSizing:"border-box"}],divider:{display:"block",height:"1px",backgroundColor:x,position:"relative"},root:[On(o),u.medium,{color:c.bodyText,backgroundColor:"transparent",border:"none",width:"100%",height:Ka,lineHeight:Ka,display:"block",cursor:"pointer",padding:"0px 8px 0 4px",textAlign:"left"}],rootDisabled:{color:c.disabledBodyText,cursor:"default",pointerEvents:"none",selectors:(s={},s[_e]=F({color:"GrayText",opacity:1},bt()),s)},rootHovered:{backgroundColor:g,color:w,selectors:{".ms-ContextualMenu-icon":{color:h.themeDarkAlt},".ms-ContextualMenu-submenuIcon":{color:h.neutralPrimary}}},rootFocused:{backgroundColor:h.white},rootChecked:{selectors:{".ms-ContextualMenu-checkmarkIcon":{color:h.neutralPrimary}}},rootPressed:{backgroundColor:m,selectors:{".ms-ContextualMenu-icon":{color:h.themeDark},".ms-ContextualMenu-submenuIcon":{color:h.neutralPrimary}}},rootExpanded:{backgroundColor:m,color:c.bodyTextChecked,selectors:(n={".ms-ContextualMenu-submenuIcon":(t={},t[_e]={color:"inherit"},t)},n[_e]=F({},bt()),n)},linkContent:{whiteSpace:"nowrap",height:"inherit",display:"flex",alignItems:"center",maxWidth:"100%"},anchorLink:{padding:"0px 8px 0 4px",textRendering:"auto",color:"inherit",letterSpacing:"normal",wordSpacing:"normal",textTransform:"none",textIndent:"0px",textShadow:"none",textDecoration:"none",boxSizing:"border-box"},label:{margin:"0 4px",verticalAlign:"middle",display:"inline-block",flexGrow:"1",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},secondaryText:{color:o.palette.neutralSecondary,paddingLeft:"20px",textAlign:"right"},icon:{display:"inline-block",minHeight:"1px",maxHeight:Ka,fontSize:Mr.medium,width:Mr.medium,margin:"0 4px",verticalAlign:"middle",flexShrink:"0",selectors:(i={},i[kv]={fontSize:Mr.large,width:Mr.large},i)},iconColor:{color:c.menuIcon},iconDisabled:{color:c.disabledBodyText},checkmarkIcon:{color:c.bodySubtext},subMenuIcon:{height:Ka,lineHeight:Ka,color:h.neutralSecondary,textAlign:"center",display:"inline-block",verticalAlign:"middle",flexShrink:"0",fontSize:Mr.small,selectors:(d={":hover":{color:h.neutralPrimary},":active":{color:h.neutralPrimary}},d[kv]={fontSize:Mr.medium},d)},splitButtonFlexContainer:[On(o),{display:"flex",height:Ka,flexWrap:"nowrap",justifyContent:"center",alignItems:"flex-start"}]};return Vs(_)}),Mv="28px",IL=cg(0,ab),TL=Et(function(o){var s;return tl(EL(o),{wrapper:{position:"absolute",right:28,selectors:(s={},s[IL]={right:32},s)},divider:{height:16,width:1}})}),AL={item:"ms-ContextualMenu-item",divider:"ms-ContextualMenu-divider",root:"ms-ContextualMenu-link",isChecked:"is-checked",isExpanded:"is-expanded",isDisabled:"is-disabled",linkContent:"ms-ContextualMenu-linkContent",linkContentMenu:"ms-ContextualMenu-linkContent",icon:"ms-ContextualMenu-icon",iconColor:"ms-ContextualMenu-iconColor",checkmarkIcon:"ms-ContextualMenu-checkmarkIcon",subMenuIcon:"ms-ContextualMenu-submenuIcon",label:"ms-ContextualMenu-itemText",secondaryText:"ms-ContextualMenu-secondaryText",splitMenu:"ms-ContextualMenu-splitMenu",screenReaderText:"ms-ContextualMenu-screenReaderText"},PL=Et(function(o,s,n,t,i,d,c,u,h,g,w,m){var x,_,v,b,C=DL(o),k=it(AL,o);return tl({item:[k.item,C.item,c],divider:[k.divider,C.divider,u],root:[k.root,C.root,t&&[k.isChecked,C.rootChecked],i&&C.anchorLink,n&&[k.isExpanded,C.rootExpanded],s&&[k.isDisabled,C.rootDisabled],!s&&!n&&[{selectors:(x={":hover":C.rootHovered,":active":C.rootPressed},x["."+fn+" &:focus, ."+fn+" &:focus:hover"]=C.rootFocused,x["."+fn+" &:hover"]={background:"inherit;"},x)}],m],splitPrimary:[C.root,{width:"calc(100% - "+Mv+")"},t&&["is-checked",C.rootChecked],(s||w)&&["is-disabled",C.rootDisabled],!(s||w)&&!t&&[{selectors:(_={":hover":C.rootHovered},_[":hover ~ ."+k.splitMenu]=C.rootHovered,_[":active"]=C.rootPressed,_["."+fn+" &:focus, ."+fn+" &:focus:hover"]=C.rootFocused,_["."+fn+" &:hover"]={background:"inherit;"},_)}]],splitMenu:[k.splitMenu,C.root,{flexBasis:"0",padding:"0 8px",minWidth:Mv},n&&["is-expanded",C.rootExpanded],s&&["is-disabled",C.rootDisabled],!s&&!n&&[{selectors:(v={":hover":C.rootHovered,":active":C.rootPressed},v["."+fn+" &:focus, ."+fn+" &:focus:hover"]=C.rootFocused,v["."+fn+" &:hover"]={background:"inherit;"},v)}]],anchorLink:C.anchorLink,linkContent:[k.linkContent,C.linkContent],linkContentMenu:[k.linkContentMenu,C.linkContent,{justifyContent:"center"}],icon:[k.icon,d&&C.iconColor,C.icon,h,s&&[k.isDisabled,C.iconDisabled]],iconColor:C.iconColor,checkmarkIcon:[k.checkmarkIcon,d&&C.checkmarkIcon,C.icon,h],subMenuIcon:[k.subMenuIcon,C.subMenuIcon,g,n&&{color:o.palette.neutralPrimary},s&&[C.iconDisabled]],label:[k.label,C.label],secondaryText:[k.secondaryText,C.secondaryText],splitContainer:[C.splitButtonFlexContainer,!s&&!t&&[{selectors:(b={},b["."+fn+" &:focus, ."+fn+" &:focus:hover"]=C.rootFocused,b)}]],screenReaderText:[k.screenReaderText,C.screenReaderText,wd,{visibility:"hidden"}]})}),Lb=function(o){var s=o.theme,n=o.disabled,t=o.expanded,i=o.checked,d=o.isAnchorLink,c=o.knownIcon,u=o.itemClassName,h=o.dividerClassName,g=o.iconClassName,w=o.subMenuClassName,m=o.primaryDisabled,x=o.className;return PL(s,n,t,i,d,c,u,h,g,w,m,x)},$p=Ze(LL,Lb,void 0,{scope:"ContextualMenuItem"}),tw=(function(o){Ne(s,o);function s(n){var t=o.call(this,n)||this;return t._onItemMouseEnter=function(i){var d=t.props,c=d.item,u=d.onItemMouseEnter;u&&u(c,i,i.currentTarget)},t._onItemClick=function(i){var d=t.props,c=d.item,u=d.onItemClickBase;u&&u(c,i,i.currentTarget)},t._onItemMouseLeave=function(i){var d=t.props,c=d.item,u=d.onItemMouseLeave;u&&u(c,i)},t._onItemKeyDown=function(i){var d=t.props,c=d.item,u=d.onItemKeyDown;u&&u(c,i)},t._onItemMouseMove=function(i){var d=t.props,c=d.item,u=d.onItemMouseMove;u&&u(c,i,i.currentTarget)},t._getSubmenuTarget=function(){},St(t),t}return s.prototype.shouldComponentUpdate=function(n){return!xi(n,this.props)},s})(M.Component),RL=(function(o){Ne(s,o);function s(){var n=o!==null&&o.apply(this,arguments)||this;return n._anchor=M.createRef(),n._getMemoizedMenuButtonKeytipProps=Et(function(t){return F(F({},t),{hasMenu:!0})}),n._getSubmenuTarget=function(){return n._anchor.current?n._anchor.current:void 0},n._onItemClick=function(t){var i=n.props,d=i.item,c=i.onItemClick;c&&c(d,t)},n._renderAriaDescription=function(t,i){return t?M.createElement("span",{id:n._ariaDescriptionId,className:i},t):null},n}return s.prototype.render=function(){var n=this,t=this.props,i=t.item,d=t.classNames,c=t.index,u=t.focusableElementIndex,h=t.totalItemCount,g=t.hasCheckmarks,w=t.hasIcons,m=t.contextualMenuItemAs,x=m===void 0?$p:m,_=t.expandedMenuItemKey,v=t.onItemClick,b=t.openSubMenu,C=t.dismissSubMenu,k=t.dismissMenu,L=i.rel;i.target&&i.target.toLowerCase()==="_blank"&&(L=L||"nofollow noopener noreferrer");var T=na(i),N=pt(i,$y),Y=vi(i),A=i.itemProps,I=i.ariaDescription,R=i.keytipProps;return R&&T&&(R=this._getMemoizedMenuButtonKeytipProps(R)),I&&(this._ariaDescriptionId=zt()),M.createElement("div",null,M.createElement(ra,{keytipProps:i.keytipProps,ariaDescribedBy:N["aria-describedby"],disabled:Y},function(H){return M.createElement("a",F({},N,H,{ref:n._anchor,href:i.href,target:i.target,rel:L,className:d.root,role:"menuitem","aria-haspopup":T||void 0,"aria-expanded":T?i.key===_:void 0,"aria-posinset":u+1,"aria-setsize":h,"aria-disabled":vi(i),"aria-describedby":Za(I?n._ariaDescriptionId:void 0,H?H["aria-describedby"]:void 0),style:i.style,onClick:n._onItemClick,onMouseEnter:n._onItemMouseEnter,onMouseLeave:n._onItemMouseLeave,onMouseMove:n._onItemMouseMove,onKeyDown:T?n._onItemKeyDown:void 0}),M.createElement(x,F({componentRef:i.componentRef,item:i,classNames:d,index:c,onCheckmarkClick:g&&v?v:void 0,hasIcons:w,openSubMenu:b,dismissSubMenu:C,dismissMenu:k,getSubmenuTarget:n._getSubmenuTarget},A)),n._renderAriaDescription(I,d.screenReaderText))}))},s})(tw),FL=(function(o){Ne(s,o);function s(){var n=o!==null&&o.apply(this,arguments)||this;return n._btn=M.createRef(),n._getMemoizedMenuButtonKeytipProps=Et(function(t){return F(F({},t),{hasMenu:!0})}),n._renderAriaDescription=function(t,i){return t?M.createElement("span",{id:n._ariaDescriptionId,className:i},t):null},n._getSubmenuTarget=function(){return n._btn.current?n._btn.current:void 0},n}return s.prototype.render=function(){var n=this,t=this.props,i=t.item,d=t.classNames,c=t.index,u=t.focusableElementIndex,h=t.totalItemCount,g=t.hasCheckmarks,w=t.hasIcons,m=t.contextualMenuItemAs,x=m===void 0?$p:m,_=t.expandedMenuItemKey,v=t.onItemMouseDown,b=t.onItemClick,C=t.openSubMenu,k=t.dismissSubMenu,L=t.dismissMenu,T=Gp(i),N=T!==null,Y=Cb(i),A=na(i),I=i.itemProps,R=i.ariaLabel,H=i.ariaDescription,W=pt(i,Xa);delete W.disabled;var K=i.role||Y;H&&(this._ariaDescriptionId=zt());var Z=H?this._ariaDescriptionId:void 0,Q={className:d.root,onClick:this._onItemClick,onKeyDown:A?this._onItemKeyDown:void 0,onMouseEnter:this._onItemMouseEnter,onMouseLeave:this._onItemMouseLeave,onMouseDown:function(P){return v?v(i,P):void 0},onMouseMove:this._onItemMouseMove,href:i.href,title:i.title,"aria-label":R,"aria-describedby":Z,"aria-haspopup":A||void 0,"aria-expanded":A?i.key===_:void 0,"aria-posinset":u+1,"aria-setsize":h,"aria-disabled":vi(i),"aria-checked":(K==="menuitemcheckbox"||K==="menuitemradio")&&N?!!T:void 0,"aria-selected":K==="menuitem"&&N?!!T:void 0,role:K,style:i.style},B=i.keytipProps;return B&&A&&(B=this._getMemoizedMenuButtonKeytipProps(B)),M.createElement(ra,{keytipProps:B,ariaDescribedBy:W["aria-describedby"],disabled:vi(i)},function(P){return M.createElement("button",F({ref:n._btn},W,Q,P,{"aria-describedby":Za(Q["aria-describedby"],P?P["aria-describedby"]:void 0)}),M.createElement(x,F({componentRef:i.componentRef,item:i,classNames:d,index:c,onCheckmarkClick:g&&b?b:void 0,hasIcons:w,openSubMenu:C,dismissSubMenu:k,dismissMenu:L,getSubmenuTarget:n._getSubmenuTarget},I)),n._renderAriaDescription(H,d.screenReaderText))})},s})(tw),NL=function(o){var s=o.theme,n=o.getClassNames,t=o.className;if(!s)throw new Error("Theme is undefined or null.");if(n){var i=n(s);return{wrapper:[i.wrapper],divider:[i.divider]}}return{wrapper:[{display:"inline-flex",height:"100%",alignItems:"center"},t],divider:[{width:1,height:"100%",backgroundColor:s.palette.neutralTertiaryAlt}]}},OL=Je(),Eb=function(o){var s=o.styles,n=o.theme,t=o.getClassNames,i=o.className,d=OL(s,{theme:n,getClassNames:t,className:i});return M.createElement("span",{className:d.wrapper},M.createElement("span",{className:d.divider}))};Eb.displayName="VerticalDividerBase";var YL=Ze(Eb,NL,void 0,{scope:"VerticalDivider"}),WL=500,BL=(function(o){Ne(s,o);function s(n){var t=o.call(this,n)||this;return t._getMemoizedMenuButtonKeytipProps=Et(function(i){return F(F({},i),{hasMenu:!0})}),t._renderAriaDescription=function(i,d){return i?M.createElement("span",{id:t._ariaDescriptionId,className:d},i):null},t._onItemKeyDown=function(i){var d=t.props,c=d.item,u=d.onItemKeyDown;i.which===ke.enter?(t._executeItemClick(i),i.preventDefault(),i.stopPropagation()):u&&u(c,i)},t._getSubmenuTarget=function(){return t._splitButton},t._onItemMouseEnterPrimary=function(i){var d=t.props,c=d.item,u=d.onItemMouseEnter;u&&u(F(F({},c),{subMenuProps:void 0,items:void 0}),i,t._splitButton)},t._onItemMouseEnterIcon=function(i){var d=t.props,c=d.item,u=d.onItemMouseEnter;u&&u(c,i,t._splitButton)},t._onItemMouseMovePrimary=function(i){var d=t.props,c=d.item,u=d.onItemMouseMove;u&&u(F(F({},c),{subMenuProps:void 0,items:void 0}),i,t._splitButton)},t._onItemMouseMoveIcon=function(i){var d=t.props,c=d.item,u=d.onItemMouseMove;u&&u(c,i,t._splitButton)},t._onIconItemClick=function(i){var d=t.props,c=d.item,u=d.onItemClickBase;u&&u(c,i,t._splitButton?t._splitButton:i.currentTarget)},t._executeItemClick=function(i){var d=t.props,c=d.item,u=d.executeItemClick,h=d.onItemClick;if(!(c.disabled||c.isDisabled)){if(t._processingTouch&&h)return h(c,i);u&&u(c,i)}},t._onTouchStart=function(i){t._splitButton&&!("onpointerdown"in t._splitButton)&&t._handleTouchAndPointerEvent(i)},t._onPointerDown=function(i){i.pointerType==="touch"&&(t._handleTouchAndPointerEvent(i),i.preventDefault(),i.stopImmediatePropagation())},t._async=new Wn(t),t._events=new Yt(t),t}return s.prototype.componentDidMount=function(){this._splitButton&&"onpointerdown"in this._splitButton&&this._events.on(this._splitButton,"pointerdown",this._onPointerDown,!0)},s.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},s.prototype.render=function(){var n=this,t=this.props,i=t.item,d=t.classNames,c=t.index,u=t.focusableElementIndex,h=t.totalItemCount,g=t.hasCheckmarks,w=t.hasIcons,m=t.onItemMouseLeave,x=t.expandedMenuItemKey,_=na(i),v=i.keytipProps;v&&(v=this._getMemoizedMenuButtonKeytipProps(v));var b=i.ariaDescription;return b&&(this._ariaDescriptionId=zt()),M.createElement(ra,{keytipProps:v,disabled:vi(i)},function(C){return M.createElement("div",{"data-ktp-target":C["data-ktp-target"],ref:function(k){return n._splitButton=k},role:Cb(i),"aria-label":i.ariaLabel,className:d.splitContainer,"aria-disabled":vi(i),"aria-expanded":_?i.key===x:void 0,"aria-haspopup":!0,"aria-describedby":Za(b?n._ariaDescriptionId:void 0,C["aria-describedby"]),"aria-checked":i.isChecked||i.checked,"aria-posinset":u+1,"aria-setsize":h,onMouseEnter:n._onItemMouseEnterPrimary,onMouseLeave:m?m.bind(n,F(F({},i),{subMenuProps:null,items:null})):void 0,onMouseMove:n._onItemMouseMovePrimary,onKeyDown:n._onItemKeyDown,onClick:n._executeItemClick,onTouchStart:n._onTouchStart,tabIndex:0,"data-is-focusable":!0,"aria-roledescription":i["aria-roledescription"]},n._renderSplitPrimaryButton(i,d,c,g,w),n._renderSplitDivider(i),n._renderSplitIconButton(i,d,c,C),n._renderAriaDescription(b,d.screenReaderText))})},s.prototype._renderSplitPrimaryButton=function(n,t,i,d,c){var u=this.props,h=u.contextualMenuItemAs,g=h===void 0?$p:h,w=u.onItemClick,m={key:n.key,disabled:vi(n)||n.primaryDisabled,name:n.name,text:n.text||n.name,secondaryText:n.secondaryText,className:t.splitPrimary,canCheck:n.canCheck,isChecked:n.isChecked,checked:n.checked,iconProps:n.iconProps,onRenderIcon:n.onRenderIcon,data:n.data,"data-is-focusable":!1},x=n.itemProps;return M.createElement("button",F({},pt(m,Xa)),M.createElement(g,F({"data-is-focusable":!1,item:m,classNames:t,index:i,onCheckmarkClick:d&&w?w:void 0,hasIcons:c},x)))},s.prototype._renderSplitDivider=function(n){var t=n.getSplitButtonVerticalDividerClassNames||TL;return M.createElement(YL,{getClassNames:t})},s.prototype._renderSplitIconButton=function(n,t,i,d){var c=this.props,u=c.contextualMenuItemAs,h=u===void 0?$p:u,g=c.onItemMouseLeave,w=c.onItemMouseDown,m=c.openSubMenu,x=c.dismissSubMenu,_=c.dismissMenu,v={onClick:this._onIconItemClick,disabled:vi(n),className:t.splitMenu,subMenuProps:n.subMenuProps,submenuIconProps:n.submenuIconProps,split:!0,key:n.key},b=F(F({},pt(v,Xa)),{onMouseEnter:this._onItemMouseEnterIcon,onMouseLeave:g?g.bind(this,n):void 0,onMouseDown:function(k){return w?w(n,k):void 0},onMouseMove:this._onItemMouseMoveIcon,"data-is-focusable":!1,"data-ktp-execute-target":d["data-ktp-execute-target"],"aria-hidden":!0}),C=n.itemProps;return M.createElement("button",F({},b),M.createElement(h,F({componentRef:n.componentRef,item:v,classNames:t,index:i,hasIcons:!1,openSubMenu:m,dismissSubMenu:x,dismissMenu:_,getSubmenuTarget:this._getSubmenuTarget},C)))},s.prototype._handleTouchAndPointerEvent=function(n){var t=this,i=this.props.onTap;i&&i(n),this._lastTouchTimeoutId&&(this._async.clearTimeout(this._lastTouchTimeoutId),this._lastTouchTimeoutId=void 0),this._processingTouch=!0,this._lastTouchTimeoutId=this._async.setTimeout(function(){t._processingTouch=!1,t._lastTouchTimeoutId=void 0},WL)},s})(tw),HL=Je(),zL=Je();function jv(o,s){var n,t=(n=s)===null||n===void 0?void 0:n.target,i=o.subMenuProps?o.subMenuProps.items:o.items;if(i){for(var d=[],c=0,u=i;c<u.length;c++){var h=u[c];if(h.preferMenuTargetAsEventTarget){var g=h.onClick,w=mo(h,["onClick"]);d.push(F(F({},w),{onClick:Db(g,t)}))}else d.push(h)}return d}}function UL(o){return o.some(function(s){return!!(s.canCheck||s.sectionProps&&s.sectionProps.items.some(function(n){return n.canCheck===!0}))})}var Lv=250,VL=Et(function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];return function(n){return R0.apply(void 0,Nn([n,Lb],o))}}),GL=(function(o){Ne(s,o);function s(n){var t=o.call(this,n)||this;return t._mounted=!1,t.dismiss=function(i,d){var c=t.props.onDismiss;c&&c(i,d)},t._tryFocusPreviousActiveElement=function(i){t.props.onRestoreFocus?t.props.onRestoreFocus(i):i&&i.containsFocus&&t._previousActiveElement&&t._previousActiveElement.focus&&t._previousActiveElement.focus()},t._onRenderMenuList=function(i,d){var c=0,u=i.items,h=i.totalItemCount,g=i.hasCheckmarks,w=i.hasIcons;return M.createElement("ul",{className:t._classNames.list,onKeyDown:t._onKeyDown,onKeyUp:t._onKeyUp,role:"presentation"},u.map(function(m,x){var _=t._renderMenuItem(m,x,c,h,g,w);if(m.itemType!==tr.Divider&&m.itemType!==tr.Header){var v=m.customOnRenderListLength?m.customOnRenderListLength:1;c+=v}return _}))},t._renderMenuItem=function(i,d,c,u,h,g){var w,m=[],x=i.iconProps||{iconName:"None"},_=i.getItemClassNames,v=i.itemProps,b=v?v.styles:void 0,C=i.itemType===tr.Divider?i.className:void 0,k=i.submenuIconProps?i.submenuIconProps.className:"",L;if(_)L=_(t.props.theme,vi(i),t.state.expandedMenuItemKey===i.key,!!Gp(i),!!i.href,x.iconName!=="None",i.className,C,x.className,k,i.primaryDisabled);else{var T={theme:t.props.theme,disabled:vi(i),expanded:t.state.expandedMenuItemKey===i.key,checked:!!Gp(i),isAnchorLink:!!i.href,knownIcon:x.iconName!=="None",itemClassName:i.className,dividerClassName:C,iconClassName:x.className,subMenuClassName:k,primaryDisabled:i.primaryDisabled};L=zL(VL((w=t._classNames.subComponentStyles)===null||w===void 0?void 0:w.menuItem,b),T)}switch((i.text==="-"||i.name==="-")&&(i.itemType=tr.Divider),i.itemType){case tr.Divider:m.push(t._renderSeparator(d,L));break;case tr.Header:m.push(t._renderSeparator(d,L));var N=t._renderHeaderMenuItem(i,L,d,h,g);m.push(t._renderListItem(N,i.key||d,L,i.title));break;case tr.Section:m.push(t._renderSectionItem(i,L,d,h,g));break;default:var Y=t._renderNormalItem(i,L,d,c,u,h,g);m.push(t._renderListItem(Y,i.key||d,L,i.title));break}return M.createElement(M.Fragment,{key:i.key},m)},t._defaultMenuItemRenderer=function(i){var d=i.index,c=i.focusableElementIndex,u=i.totalItemCount,h=i.hasCheckmarks,g=i.hasIcons;return t._renderMenuItem(i,d,c,u,h,g)},t._onKeyDown=function(i){t._lastKeyDownWasAltOrMeta=t._isAltOrMeta(i);var d=i.which===ke.escape&&(my()||hy());return t._keyHandler(i,t._shouldHandleKeyDown,d)},t._shouldHandleKeyDown=function(i){return i.which===ke.escape||t._shouldCloseSubMenu(i)||i.which===ke.up&&(i.altKey||i.metaKey)},t._onMenuFocusCapture=function(i){t.props.delayUpdateFocusOnHover&&(t._shouldUpdateFocusOnMouseEvent=!0)},t._onKeyUp=function(i){return t._keyHandler(i,t._shouldHandleKeyUp,!0)},t._shouldHandleKeyUp=function(i){var d=t._lastKeyDownWasAltOrMeta&&t._isAltOrMeta(i);return t._lastKeyDownWasAltOrMeta=!1,!!d&&!(hy()||my())},t._keyHandler=function(i,d,c){var u=!1;return d(i)&&(t._focusingPreviousElement=!0,t.dismiss(i,c),i.preventDefault(),i.stopPropagation(),u=!0),u},t._shouldCloseSubMenu=function(i){var d=Tt(t.props.theme)?ke.right:ke.left;return i.which!==d||!t.props.isSubMenu?!1:t._adjustedFocusZoneProps.direction===kn.vertical||!!t._adjustedFocusZoneProps.checkForNoWrap&&!Q0(i.target,"data-no-horizontal-wrap")},t._onMenuKeyDown=function(i){var d=t._onKeyDown(i);if(!(d||!t._host)){var c=!!(i.altKey||i.metaKey),u=i.which===ke.up,h=i.which===ke.down;if(!c&&(u||h)){var g=u?X0(t._host,t._host.lastChild,!0):Z0(t._host,t._host.firstChild,!0);g&&(g.focus(),i.preventDefault(),i.stopPropagation())}}},t._onScroll=function(){!t._isScrollIdle&&t._scrollIdleTimeoutId!==void 0?(t._async.clearTimeout(t._scrollIdleTimeoutId),t._scrollIdleTimeoutId=void 0):t._isScrollIdle=!1,t._scrollIdleTimeoutId=t._async.setTimeout(function(){t._isScrollIdle=!0},Lv)},t._onItemMouseEnterBase=function(i,d,c){t._shouldIgnoreMouseEvent()||t._updateFocusOnMouseEvent(i,d,c)},t._onItemMouseMoveBase=function(i,d,c){var u=d.currentTarget;if(t._shouldUpdateFocusOnMouseEvent)t._gotMouseMove=!0;else return;!t._isScrollIdle||t._enterTimerId!==void 0||u===t._targetWindow.document.activeElement||t._updateFocusOnMouseEvent(i,d,c)},t._onMouseItemLeave=function(i,d){if(!t._shouldIgnoreMouseEvent()&&(t._enterTimerId!==void 0&&(t._async.clearTimeout(t._enterTimerId),t._enterTimerId=void 0),t.state.expandedMenuItemKey===void 0))if(t._host.setActive)try{t._host.setActive()}catch{}else t._host.focus()},t._onItemMouseDown=function(i,d){i.onMouseDown&&i.onMouseDown(i,d)},t._onItemClick=function(i,d){t._onItemClickBase(i,d,d.currentTarget)},t._onItemClickBase=function(i,d,c){var u=t.props.target,h=jv(i,{target:u});t._cancelSubMenuTimer(),!na(i)&&(!h||!h.length)?t._executeItemClick(i,d):i.key!==t.state.expandedMenuItemKey&&(t.setState({expandedByMouseClick:d.nativeEvent.detail!==0||d.nativeEvent.pointerType==="mouse"}),t._onItemSubMenuExpand(i,c)),d.stopPropagation(),d.preventDefault()},t._onAnchorClick=function(i,d){t._executeItemClick(i,d),d.stopPropagation()},t._executeItemClick=function(i,d){var c=t.props.target;if(!(i.disabled||i.isDisabled)){i.preferMenuTargetAsEventTarget&&Ib(d,c);var u=!1;i.onClick?u=!!i.onClick(d,i):t.props.onItemClick&&(u=!!t.props.onItemClick(d,i)),(u||!d.defaultPrevented)&&(t.dismiss(d,!0),t._focusingPreviousElement=!0)}},t._onItemKeyDown=function(i,d){var c=Tt(t.props.theme)?ke.left:ke.right;!i.disabled&&(d.which===c||d.which===ke.enter||d.which===ke.down&&(d.altKey||d.metaKey))&&(t.setState({expandedByMouseClick:!1}),t._onItemSubMenuExpand(i,d.currentTarget),d.preventDefault())},t._cancelSubMenuTimer=function(){t._enterTimerId!==void 0&&(t._async.clearTimeout(t._enterTimerId),t._enterTimerId=void 0)},t._onItemSubMenuExpand=function(i,d){t.state.expandedMenuItemKey!==i.key&&(t.state.expandedMenuItemKey&&t._onSubMenuDismiss(),d.focus(),t.setState({expandedMenuItemKey:i.key,submenuTarget:d}))},t._onSubMenuDismiss=function(i,d){d?t.dismiss(i,d):t._mounted&&t.setState({dismissedMenuItemKey:t.state.expandedMenuItemKey,expandedMenuItemKey:void 0,submenuTarget:void 0})},t._onPointerAndTouchEvent=function(i){t._cancelSubMenuTimer()},t._async=new Wn(t),t._events=new Yt(t),St(t),t.state={contextualMenuItems:void 0,subMenuId:zt("ContextualMenu")},t._id=n.id||zt("ContextualMenu"),t._focusingPreviousElement=!1,t._isScrollIdle=!0,t._shouldUpdateFocusOnMouseEvent=!t.props.delayUpdateFocusOnHover,t._gotMouseMove=!1,t}return s.prototype.shouldComponentUpdate=function(n,t){return!n.shouldUpdateWhenHidden&&this.props.hidden&&n.hidden?!1:!xi(this.props,n)||!xi(this.state,t)},s.prototype.UNSAFE_componentWillUpdate=function(n){if(n.target!==this.props.target){var t=n.target;this._setTargetWindowAndElement(t)}this._isHidden(n)!==this._isHidden(this.props)&&(this._isHidden(n)?this._onMenuClosed():(this._onMenuOpened(),this._previousActiveElement=this._targetWindow?this._targetWindow.document.activeElement:void 0)),n.delayUpdateFocusOnHover!==this.props.delayUpdateFocusOnHover&&(this._shouldUpdateFocusOnMouseEvent=!n.delayUpdateFocusOnHover,this._gotMouseMove=this._shouldUpdateFocusOnMouseEvent&&this._gotMouseMove)},s.prototype.UNSAFE_componentWillMount=function(){var n=this.props.target;this._setTargetWindowAndElement(n),this.props.hidden||(this._previousActiveElement=this._targetWindow?this._targetWindow.document.activeElement:void 0)},s.prototype.componentDidMount=function(){this.props.hidden||this._onMenuOpened(),this._mounted=!0},s.prototype.componentWillUnmount=function(){this.props.onMenuDismissed&&this.props.onMenuDismissed(this.props),this._events.dispose(),this._async.dispose(),this._mounted=!1},s.prototype.render=function(){var n=this,t=this.props.isBeakVisible,i=this.props,d=i.items,c=i.labelElementId,u=i.id,h=i.className,g=i.beakWidth,w=i.directionalHint,m=i.directionalHintForRTL,x=i.alignTargetEdge,_=i.gapSpace,v=i.coverTarget,b=i.ariaLabel,C=i.doNotLayer,k=i.target,L=i.bounds,T=i.useTargetWidth,N=i.useTargetAsMinWidth,Y=i.directionalHintFixed,A=i.shouldFocusOnMount,I=i.shouldFocusOnContainer,R=i.title,H=i.styles,W=i.theme,K=i.calloutProps,Z=i.onRenderSubMenu,Q=Z===void 0?this._onRenderSubMenu:Z,B=i.onRenderMenuList,P=B===void 0?this._onRenderMenuList:B,X=i.focusZoneProps,$=i.getMenuClassNames;this._classNames=$?$(W,h):HL(H,{theme:W,className:h});var ie=le(d);function le(Le){for(var je=0,$e=Le;je<$e.length;je++){var Ct=$e[je];if(Ct.iconProps||Ct.itemType===tr.Section&&Ct.sectionProps&&le(Ct.sectionProps.items))return!0}return!1}this._adjustedFocusZoneProps=F(F({},X),{direction:this._getFocusZoneDirection()});var V=UL(d),z=this.state.expandedMenuItemKey&&this.props.hidden!==!0?this._getSubmenuProps():null;t=t===void 0?this.props.responsiveMode<=Qa.medium:t;var J,ee=this._target;if((T||N)&&ee&&ee.offsetWidth){var me=ee.getBoundingClientRect(),te=me.width-2;T?J={width:te}:N&&(J={minWidth:te})}if(d&&d.length>0){for(var G=0,ne=0,Ue=d;ne<Ue.length;ne++){var Ge=Ue[ne];if(Ge.itemType!==tr.Divider&&Ge.itemType!==tr.Header){var Ut=Ge.customOnRenderListLength?Ge.customOnRenderListLength:1;G+=Ut}}var ht=this._classNames.subComponentStyles?this._classNames.subComponentStyles.callout:void 0;return M.createElement(ch,F({styles:ht,onRestoreFocus:this._tryFocusPreviousActiveElement},K,{target:k,isBeakVisible:t,beakWidth:g,directionalHint:w,directionalHintForRTL:m,gapSpace:_,coverTarget:v,doNotLayer:C,className:on("ms-ContextualMenu-Callout",K&&K.className),setInitialFocus:A,onDismiss:this.props.onDismiss,onScroll:this._onScroll,bounds:L,directionalHintFixed:Y,alignTargetEdge:x,hidden:this.props.hidden}),M.createElement("div",{style:J,ref:function(Le){return n._host=Le},id:u,className:this._classNames.container,tabIndex:I?0:-1,onKeyDown:this._onMenuKeyDown,onKeyUp:this._onKeyUp,onFocusCapture:this._onMenuFocusCapture,"aria-label":b,"aria-labelledby":c,role:"menu"},R&&M.createElement("div",{className:this._classNames.title}," ",R," "),d&&d.length?M.createElement(xd,F({className:this._classNames.root,isCircularNavigation:!0,handleTabKey:Cy.all},this._adjustedFocusZoneProps),P({ariaLabel:b,items:d,totalItemCount:G,hasCheckmarks:V,hasIcons:ie,defaultMenuItemRenderer:this._defaultMenuItemRenderer,labelElementId:c},this._onRenderMenuList)):null,z&&Q(z,this._onRenderSubMenu)))}else return null},s.prototype._isHidden=function(n){return!!n.hidden},s.prototype._onMenuOpened=function(){this._events.on(this._targetWindow,"resize",this.dismiss),this._shouldUpdateFocusOnMouseEvent=!this.props.delayUpdateFocusOnHover,this._gotMouseMove=!1,this.props.onMenuOpened&&this.props.onMenuOpened(this.props)},s.prototype._onMenuClosed=function(){this._events.off(this._targetWindow,"resize",this.dismiss),this._tryFocusPreviousActiveElement({containsFocus:this._focusingPreviousElement,documentContainsFocus:this._targetWindow.document.hasFocus(),originalElement:this._previousActiveElement}),this._focusingPreviousElement=!1,this.props.onMenuDismissed&&this.props.onMenuDismissed(this.props),this._shouldUpdateFocusOnMouseEvent=!this.props.delayUpdateFocusOnHover,this.setState({expandedByMouseClick:void 0,dismissedMenuItemKey:void 0,expandedMenuItemKey:void 0,submenuTarget:void 0})},s.prototype._getFocusZoneDirection=function(){var n=this.props.focusZoneProps;return n&&n.direction!==void 0?n.direction:kn.vertical},s.prototype._onRenderSubMenu=function(n,t){throw Error("ContextualMenuBase: onRenderSubMenu callback is null or undefined. Please ensure to set `onRenderSubMenu` property either manually or with `styled` helper.")},s.prototype._renderSectionItem=function(n,t,i,d,c){var u=this,h=n.sectionProps;if(h){var g,w;if(h.title){var m=void 0,x="";if(typeof h.title=="string"){var _=this._id+h.title.replace(/\s/g,"");m={key:"section-"+h.title+"-title",itemType:tr.Header,text:h.title,id:_},x=_}else{var _=h.title.id||this._id+h.title.key.replace(/\s/g,"");m=F(F({},h.title),{id:_}),x=_}m&&(w={role:"group","aria-labelledby":x},g=this._renderHeaderMenuItem(m,t,i,d,c))}if(h.items&&h.items.length>0)return M.createElement("li",{role:"presentation",key:h.key||n.key||"section-"+i},M.createElement("div",F({},w),M.createElement("ul",{className:this._classNames.list,role:"presentation"},h.topDivider&&this._renderSeparator(i,t,!0,!0),g&&this._renderListItem(g,n.key||i,t,n.title),h.items.map(function(v,b){return u._renderMenuItem(v,b,b,h.items.length,d,c)}),h.bottomDivider&&this._renderSeparator(i,t,!1,!0))))}},s.prototype._renderListItem=function(n,t,i,d){return M.createElement("li",{role:"presentation",title:d,key:t,className:i.item},n)},s.prototype._renderSeparator=function(n,t,i,d){return d||n>0?M.createElement("li",{role:"separator",key:"separator-"+n+(i===void 0?"":i?"-top":"-bottom"),className:t.divider,"aria-hidden":"true"}):null},s.prototype._renderNormalItem=function(n,t,i,d,c,u,h){return n.onRender?n.onRender(F({"aria-posinset":d+1,"aria-setsize":c},n),this.dismiss):n.href?this._renderAnchorMenuItem(n,t,i,d,c,u,h):n.split&&na(n)?this._renderSplitButton(n,t,i,d,c,u,h):this._renderButtonItem(n,t,i,d,c,u,h)},s.prototype._renderHeaderMenuItem=function(n,t,i,d,c){var u=this.props.contextualMenuItemAs,h=u===void 0?$p:u,g=n.itemProps,w=n.id,m=g&&pt(g,Yn);return M.createElement("div",F({id:w,className:this._classNames.header},m,{style:n.style}),M.createElement(h,F({item:n,classNames:t,index:i,onCheckmarkClick:d?this._onItemClick:void 0,hasIcons:c},g)))},s.prototype._renderAnchorMenuItem=function(n,t,i,d,c,u,h){var g=this.props.contextualMenuItemAs,w=this.state.expandedMenuItemKey;return M.createElement(RL,{item:n,classNames:t,index:i,focusableElementIndex:d,totalItemCount:c,hasCheckmarks:u,hasIcons:h,contextualMenuItemAs:g,onItemMouseEnter:this._onItemMouseEnterBase,onItemMouseLeave:this._onMouseItemLeave,onItemMouseMove:this._onItemMouseMoveBase,onItemMouseDown:this._onItemMouseDown,executeItemClick:this._executeItemClick,onItemClick:this._onAnchorClick,onItemKeyDown:this._onItemKeyDown,expandedMenuItemKey:w,openSubMenu:this._onItemSubMenuExpand,dismissSubMenu:this._onSubMenuDismiss,dismissMenu:this.dismiss})},s.prototype._renderButtonItem=function(n,t,i,d,c,u,h){var g=this.props.contextualMenuItemAs,w=this.state.expandedMenuItemKey;return M.createElement(FL,{item:n,classNames:t,index:i,focusableElementIndex:d,totalItemCount:c,hasCheckmarks:u,hasIcons:h,contextualMenuItemAs:g,onItemMouseEnter:this._onItemMouseEnterBase,onItemMouseLeave:this._onMouseItemLeave,onItemMouseMove:this._onItemMouseMoveBase,onItemMouseDown:this._onItemMouseDown,executeItemClick:this._executeItemClick,onItemClick:this._onItemClick,onItemClickBase:this._onItemClickBase,onItemKeyDown:this._onItemKeyDown,expandedMenuItemKey:w,openSubMenu:this._onItemSubMenuExpand,dismissSubMenu:this._onSubMenuDismiss,dismissMenu:this.dismiss})},s.prototype._renderSplitButton=function(n,t,i,d,c,u,h){var g=this.props.contextualMenuItemAs,w=this.state.expandedMenuItemKey;return M.createElement(BL,{item:n,classNames:t,index:i,focusableElementIndex:d,totalItemCount:c,hasCheckmarks:u,hasIcons:h,contextualMenuItemAs:g,onItemMouseEnter:this._onItemMouseEnterBase,onItemMouseLeave:this._onMouseItemLeave,onItemMouseMove:this._onItemMouseMoveBase,onItemMouseDown:this._onItemMouseDown,executeItemClick:this._executeItemClick,onItemClick:this._onItemClick,onItemClickBase:this._onItemClickBase,onItemKeyDown:this._onItemKeyDown,openSubMenu:this._onItemSubMenuExpand,dismissSubMenu:this._onSubMenuDismiss,dismissMenu:this.dismiss,expandedMenuItemKey:w,onTap:this._onPointerAndTouchEvent})},s.prototype._isAltOrMeta=function(n){return n.which===ke.alt||n.key==="Meta"},s.prototype._shouldIgnoreMouseEvent=function(){return!this._isScrollIdle||!this._gotMouseMove},s.prototype._updateFocusOnMouseEvent=function(n,t,i){var d=this,c=i||t.currentTarget,u=this.props.subMenuHoverDelay,h=u===void 0?Lv:u;n.key!==this.state.expandedMenuItemKey&&(this._enterTimerId!==void 0&&(this._async.clearTimeout(this._enterTimerId),this._enterTimerId=void 0),this.state.expandedMenuItemKey===void 0&&c.focus(),na(n)?(t.stopPropagation(),this._enterTimerId=this._async.setTimeout(function(){c.focus(),d.setState({expandedByMouseClick:!0}),d._onItemSubMenuExpand(n,c),d._enterTimerId=void 0},h)):this._enterTimerId=this._async.setTimeout(function(){d._onSubMenuDismiss(t),c.focus(),d._enterTimerId=void 0},h))},s.prototype._getSubmenuProps=function(){var n=this.state,t=n.submenuTarget,i=n.expandedMenuItemKey,d=this._findItemByKey(i),c=null,u=this.props.target;if(d&&(c={items:jv(d,{target:u}),target:t,onDismiss:this._onSubMenuDismiss,isSubMenu:!0,id:this.state.subMenuId,shouldFocusOnMount:!0,shouldFocusOnContainer:this.state.expandedByMouseClick,directionalHint:Tt(this.props.theme)?Ot.leftTopEdge:Ot.rightTopEdge,className:this.props.className,gapSpace:0,isBeakVisible:!1},d.subMenuProps&&qa(c,d.subMenuProps),d.preferMenuTargetAsEventTarget)){var h=d.onItemClick;c.onItemClick=Db(h,u)}return c},s.prototype._findItemByKey=function(n){var t=this.props.items;return this._findItemByKeyFromItems(n,t)},s.prototype._findItemByKeyFromItems=function(n,t){for(var i=0,d=t;i<d.length;i++){var c=d[i];if(c.itemType===tr.Section&&c.sectionProps){var u=this._findItemByKeyFromItems(n,c.sectionProps.items);if(u)return u}else if(c.key&&c.key===n)return c}},s.prototype._setTargetWindowAndElement=function(n){var t=this._host;if(n)if(typeof n=="string"){var i=_n(t);this._target=i?i.querySelector(n):null,this._targetWindow=nt(t)}else if(n.stopPropagation)this._targetWindow=nt(n.target),this._target=n;else if((n.left!==void 0||n.x!==void 0)&&(n.top!==void 0||n.y!==void 0))this._targetWindow=nt(t),this._target=n;else if(n.current!==void 0)this._target=n.current,this._targetWindow=nt(this._target);else{var d=n;this._targetWindow=nt(d),this._target=n}else this._targetWindow=nt(t)},s.defaultProps={items:[],shouldFocusOnMount:!0,gapSpace:0,directionalHint:Ot.bottomAutoEdge,beakWidth:16},s=_s([uh],s),s})(M.Component);function Db(o,s){return o&&function(n,t){return Ib(n,s),o(n,t)}}function Ib(o,s){o&&s&&(o.persist(),s instanceof Event?o.target=s.target:s instanceof Element&&(o.target=s))}var $L={root:"ms-ContextualMenu",container:"ms-ContextualMenu-container",list:"ms-ContextualMenu-list",header:"ms-ContextualMenu-header",title:"ms-ContextualMenu-title",isopen:"is-open"},KL=function(o){var s=o.className,n=o.theme,t=it($L,n),i=n.fonts,d=n.semanticColors,c=n.effects;return{root:[n.fonts.medium,t.root,t.isopen,{backgroundColor:d.menuBackground,minWidth:"180px"},s],container:[t.container,{selectors:{":focus":{outline:0}}}],list:[t.list,t.isopen,{listStyleType:"none",margin:"0",padding:"0"}],header:[t.header,i.small,{fontWeight:Lt.semibold,color:d.menuHeader,background:"none",backgroundColor:"transparent",border:"none",height:Ka,lineHeight:Ka,cursor:"default",padding:"0px 6px",userSelect:"none",textAlign:"left"}],title:[t.title,{fontSize:i.mediumPlus.fontSize,paddingRight:"14px",paddingLeft:"14px",paddingBottom:"5px",paddingTop:"5px",backgroundColor:d.menuItemBackgroundPressed}],subComponentStyles:{callout:{root:{boxShadow:c.elevation8}},menuItem:{}}}};function Ev(o){return M.createElement(Tb,F({},o))}var Tb=Ze(GL,KL,function(o){return{onRenderSubMenu:o.onRenderSubMenu?Oo(o.onRenderSubMenu,Ev):Ev}},{scope:"ContextualMenu"}),ky=Tb,Ur={msButton:"ms-Button",msButtonHasMenu:"ms-Button--hasMenu",msButtonIcon:"ms-Button-icon",msButtonMenuIcon:"ms-Button-menuIcon",msButtonLabel:"ms-Button-label",msButtonDescription:"ms-Button-description",msButtonScreenReaderText:"ms-Button-screenReaderText",msButtonFlexContainer:"ms-Button-flexContainer",msButtonTextContainer:"ms-Button-textContainer"},qL=Et(function(o,s,n,t,i,d,c,u,h,g,w){var m,x,_=it(Ur,o||{}),v=g&&!w;return tl({root:[_.msButton,s.root,t,h&&["is-checked",s.rootChecked],v&&["is-expanded",s.rootExpanded,{selectors:(m={},m[":hover ."+_.msButtonIcon]=s.iconExpandedHovered,m[":hover ."+_.msButtonMenuIcon]=s.menuIconExpandedHovered||s.rootExpandedHovered,m[":hover"]=s.rootExpandedHovered,m)}],u&&[Ur.msButtonHasMenu,s.rootHasMenu],c&&["is-disabled",s.rootDisabled],!c&&!v&&!h&&{selectors:(x={":hover":s.rootHovered},x[":hover ."+_.msButtonLabel]=s.labelHovered,x[":hover ."+_.msButtonIcon]=s.iconHovered,x[":hover ."+_.msButtonDescription]=s.descriptionHovered,x[":hover ."+_.msButtonMenuIcon]=s.menuIconHovered,x[":focus"]=s.rootFocused,x[":active"]=s.rootPressed,x[":active ."+_.msButtonIcon]=s.iconPressed,x[":active ."+_.msButtonDescription]=s.descriptionPressed,x[":active ."+_.msButtonMenuIcon]=s.menuIconPressed,x)},c&&h&&[s.rootCheckedDisabled],!c&&h&&{selectors:{":hover":s.rootCheckedHovered,":active":s.rootCheckedPressed}},n],flexContainer:[_.msButtonFlexContainer,s.flexContainer],textContainer:[_.msButtonTextContainer,s.textContainer],icon:[_.msButtonIcon,i,s.icon,v&&s.iconExpanded,h&&s.iconChecked,c&&s.iconDisabled],label:[_.msButtonLabel,s.label,h&&s.labelChecked,c&&s.labelDisabled],menuIcon:[_.msButtonMenuIcon,d,s.menuIcon,h&&s.menuIconChecked,c&&!w&&s.menuIconDisabled,!c&&!v&&!h&&{selectors:{":hover":s.menuIconHovered,":active":s.menuIconPressed}},v&&["is-expanded",s.menuIconExpanded]],description:[_.msButtonDescription,s.description,h&&s.descriptionChecked,c&&s.descriptionDisabled],screenReaderText:[_.msButtonScreenReaderText,s.screenReaderText]})}),JL=Et(function(o,s,n,t,i){return{root:Bs(o.splitButtonMenuButton,n&&[o.splitButtonMenuButtonExpanded],s&&[o.splitButtonMenuButtonDisabled],t&&!s&&[o.splitButtonMenuButtonChecked],i&&!s&&[{selectors:{":focus":o.splitButtonMenuFocused}}]),splitButtonContainer:Bs(o.splitButtonContainer,!s&&t&&[o.splitButtonContainerChecked,{selectors:{":hover":o.splitButtonContainerCheckedHovered}}],!s&&!t&&[{selectors:{":hover":o.splitButtonContainerHovered,":focus":o.splitButtonContainerFocused}}],s&&o.splitButtonContainerDisabled),icon:Bs(o.splitButtonMenuIcon,s&&o.splitButtonMenuIconDisabled,!s&&i&&o.splitButtonMenuIcon),flexContainer:Bs(o.splitButtonFlexContainer),divider:Bs(o.splitButtonDivider,(i||s)&&o.splitButtonDividerDisabled)}}),ZL=500,XL="BaseButton",mg=(function(o){Ne(s,o);function s(n){var t=o.call(this,n)||this;return t._buttonElement=M.createRef(),t._splitButtonContainer=M.createRef(),t._mergedRef=Ky(),t._renderedVisibleMenu=!1,t._getMemoizedMenuButtonKeytipProps=Et(function(i){return F(F({},i),{hasMenu:!0})}),t._onRenderIcon=function(i,d){var c=t.props.iconProps;if(c&&(c.iconName!==void 0||c.imageProps)){var u=c.className,h=c.imageProps,g=mo(c,["className","imageProps"]);if(c.styles)return M.createElement(ze,F({className:on(t._classNames.icon,u),imageProps:h},g));if(c.iconName)return M.createElement(kt,F({className:on(t._classNames.icon,u)},g));if(h)return M.createElement(eL,F({className:on(t._classNames.icon,u),imageProps:h},g))}return null},t._onRenderTextContents=function(){var i=t.props,d=i.text,c=i.children,u=i.secondaryText,h=u===void 0?t.props.description:u,g=i.onRenderText,w=g===void 0?t._onRenderText:g,m=i.onRenderDescription,x=m===void 0?t._onRenderDescription:m;return d||typeof c=="string"||h?M.createElement("span",{className:t._classNames.textContainer},w(t.props,t._onRenderText),x(t.props,t._onRenderDescription)):[w(t.props,t._onRenderText),x(t.props,t._onRenderDescription)]},t._onRenderText=function(){var i=t.props.text,d=t.props.children;return i===void 0&&typeof d=="string"&&(i=d),t._hasText()?M.createElement("span",{key:t._labelId,className:t._classNames.label,id:t._labelId},i):null},t._onRenderChildren=function(){var i=t.props.children;return typeof i=="string"?null:i},t._onRenderDescription=function(i){var d=i.secondaryText,c=d===void 0?t.props.description:d;return c?M.createElement("span",{key:t._descriptionId,className:t._classNames.description,id:t._descriptionId},c):null},t._onRenderAriaDescription=function(){var i=t.props.ariaDescription;return i?M.createElement("span",{className:t._classNames.screenReaderText,id:t._ariaDescriptionId},i):null},t._onRenderMenuIcon=function(i){var d=t.props.menuIconProps;return M.createElement(kt,F({iconName:"ChevronDown"},d,{className:t._classNames.menuIcon}))},t._onRenderMenu=function(i){var d=t.props.menuAs?V0(t.props.menuAs,ky):ky;return M.createElement(d,F({},i))},t._onDismissMenu=function(i){var d=t.props.menuProps;d&&d.onDismiss&&d.onDismiss(i),(!i||!i.defaultPrevented)&&t._dismissMenu()},t._dismissMenu=function(){t._menuShouldFocusOnMount=void 0,t._menuShouldFocusOnContainer=void 0,t.setState({menuHidden:!0})},t._openMenu=function(i,d){d===void 0&&(d=!0),t.props.menuProps&&(t._menuShouldFocusOnContainer=i,t._menuShouldFocusOnMount=d,t._renderedVisibleMenu=!0,t.setState({menuHidden:!1}))},t._onToggleMenu=function(i){var d=!0;t.props.menuProps&&t.props.menuProps.shouldFocusOnMount===!1&&(d=!1),t.state.menuHidden?t._openMenu(i,d):t._dismissMenu()},t._onSplitContainerFocusCapture=function(i){var d=t._splitButtonContainer.current;!d||i.target&&Uy(i.target,d)||d.focus()},t._onSplitButtonPrimaryClick=function(i){t.state.menuHidden||t._dismissMenu(),!t._processingTouch&&t.props.onClick?t.props.onClick(i):t._processingTouch&&t._onMenuClick(i)},t._onKeyDown=function(i){t.props.disabled&&(i.which===ke.enter||i.which===ke.space)?(i.preventDefault(),i.stopPropagation()):t.props.disabled||(t.props.menuProps?t._onMenuKeyDown(i):t.props.onKeyDown!==void 0&&t.props.onKeyDown(i))},t._onKeyUp=function(i){!t.props.disabled&&t.props.onKeyUp!==void 0&&t.props.onKeyUp(i)},t._onKeyPress=function(i){!t.props.disabled&&t.props.onKeyPress!==void 0&&t.props.onKeyPress(i)},t._onMouseUp=function(i){!t.props.disabled&&t.props.onMouseUp!==void 0&&t.props.onMouseUp(i)},t._onMouseDown=function(i){!t.props.disabled&&t.props.onMouseDown!==void 0&&t.props.onMouseDown(i)},t._onClick=function(i){t.props.disabled||(t.props.menuProps?t._onMenuClick(i):t.props.onClick!==void 0&&t.props.onClick(i))},t._onSplitButtonContainerKeyDown=function(i){i.which===ke.enter||i.which===ke.space?t._buttonElement.current&&(t._buttonElement.current.click(),i.preventDefault(),i.stopPropagation()):t._onMenuKeyDown(i)},t._onMenuKeyDown=function(i){if(!t.props.disabled){t.props.onKeyDown&&t.props.onKeyDown(i);var d=i.which===ke.up,c=i.which===ke.down;if(!i.defaultPrevented&&t._isValidMenuOpenKey(i)){var u=t.props.onMenuClick;u&&u(i,t.props),t._onToggleMenu(!1),i.preventDefault(),i.stopPropagation()}if((i.which===ke.enter||i.which===ke.space)&&dd(!0,i.target),!(i.altKey||i.metaKey)&&(d||c)&&!t.state.menuHidden&&t.props.menuProps){var h=t._menuShouldFocusOnMount!==void 0?t._menuShouldFocusOnMount:t.props.menuProps.shouldFocusOnMount;h||(i.preventDefault(),i.stopPropagation(),t._menuShouldFocusOnMount=!0,t.forceUpdate())}}},t._onTouchStart=function(){t._isSplitButton&&t._splitButtonContainer.current&&!("onpointerdown"in t._splitButtonContainer.current)&&t._handleTouchAndPointerEvent()},t._onMenuClick=function(i){var d=t.props.onMenuClick;if(d&&d(i,t.props),!i.defaultPrevented){var c=i.nativeEvent.detail!==0||i.nativeEvent.pointerType==="mouse";t._onToggleMenu(c),i.preventDefault(),i.stopPropagation()}},St(t),t._async=new Wn(t),t._events=new Yt(t),B0(XL,n,["menuProps","onClick"],"split",t.props.split),t._labelId=zt(),t._descriptionId=zt(),t._ariaDescriptionId=zt(),t.state={menuHidden:!0},t}return Object.defineProperty(s.prototype,"_isSplitButton",{get:function(){return!!this.props.menuProps&&!!this.props.onClick&&this.props.split===!0},enumerable:!0,configurable:!0}),s.prototype.render=function(){var n,t=this.props,i=t.ariaDescription,d=t.ariaLabel,c=t.ariaHidden,u=t.className,h=t.disabled,g=t.allowDisabledFocus,w=t.primaryDisabled,m=t.secondaryText,x=m===void 0?this.props.description:m,_=t.href,v=t.iconProps,b=t.menuIconProps,C=t.styles,k=t.checked,L=t.variantClassName,T=t.theme,N=t.toggle,Y=t.getClassNames,A=t.role,I=this.state.menuHidden,R=h||w;this._classNames=Y?Y(T,u,L,v&&v.className,b&&b.className,R,k,!I,!!this.props.menuProps,this.props.split,!!g):qL(T,C,u,L,v&&v.className,b&&b.className,R,!!this.props.menuProps,k,!I,this.props.split);var H=this,W=H._ariaDescriptionId,K=H._labelId,Z=H._descriptionId,Q=!R&&!!_,B=Q?"a":"button",P=pt(qa(Q?{}:{type:"button"},this.props.rootProps,this.props),Q?$y:Xa,["disabled"]),X=d||P["aria-label"],$=void 0;i?$=W:x&&this.props.onRenderDescription!==md?$=Z:P["aria-describedby"]&&($=P["aria-describedby"]);var ie=void 0;X||(P["aria-labelledby"]?ie=P["aria-labelledby"]:$&&(ie=this._hasText()?K:void 0));var le=!(this.props["data-is-focusable"]===!1||h&&!g||this._isSplitButton),V=A==="menuitemcheckbox"||A==="checkbox",z=V||N===!0?!!k:void 0,J=qa(P,(n={className:this._classNames.root,ref:this._mergedRef(this.props.elementRef,this._buttonElement),disabled:R&&!g,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseDown:this._onMouseDown,onMouseUp:this._onMouseUp,onClick:this._onClick,"aria-label":X,"aria-labelledby":ie,"aria-describedby":$,"aria-disabled":R,"data-is-focusable":le},n[V?"aria-checked":"aria-pressed"]=z,n));return c&&(J["aria-hidden"]=!0),this._isSplitButton?this._onRenderSplitButtonContent(B,J):(this.props.menuProps&&qa(J,{"aria-expanded":!I,"aria-owns":I?null:this._labelId+"-menu","aria-haspopup":!0}),this._onRenderContent(B,J))},s.prototype.componentDidMount=function(){this._isSplitButton&&this._splitButtonContainer.current&&("onpointerdown"in this._splitButtonContainer.current&&this._events.on(this._splitButtonContainer.current,"pointerdown",this._onPointerDown,!0),"onpointerup"in this._splitButtonContainer.current&&this.props.onPointerUp&&this._events.on(this._splitButtonContainer.current,"pointerup",this.props.onPointerUp,!0))},s.prototype.componentDidUpdate=function(n,t){this.props.onAfterMenuDismiss&&!t.menuHidden&&this.state.menuHidden&&this.props.onAfterMenuDismiss()},s.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},s.prototype.focus=function(){this._isSplitButton&&this._splitButtonContainer.current?(dd(!0),this._splitButtonContainer.current.focus()):this._buttonElement.current&&(dd(!0),this._buttonElement.current.focus())},s.prototype.dismissMenu=function(){this._dismissMenu()},s.prototype.openMenu=function(n,t){this._openMenu(n,t)},s.prototype._onRenderContent=function(n,t){var i=this,d=this.props,c=n,u=d.menuIconProps,h=d.menuProps,g=d.onRenderIcon,w=g===void 0?this._onRenderIcon:g,m=d.onRenderAriaDescription,x=m===void 0?this._onRenderAriaDescription:m,_=d.onRenderChildren,v=_===void 0?this._onRenderChildren:_,b=d.onRenderMenu,C=b===void 0?this._onRenderMenu:b,k=d.onRenderMenuIcon,L=k===void 0?this._onRenderMenuIcon:k,T=d.disabled,N=d.keytipProps;N&&h&&(N=this._getMemoizedMenuButtonKeytipProps(N));var Y=function(I){return M.createElement(c,F({},t,I),M.createElement("span",{className:i._classNames.flexContainer,"data-automationid":"splitbuttonprimary"},w(d,i._onRenderIcon),i._onRenderTextContents(),x(d,i._onRenderAriaDescription),v(d,i._onRenderChildren),!i._isSplitButton&&(h||u||i.props.onRenderMenuIcon)&&L(i.props,i._onRenderMenuIcon),h&&!h.doNotLayer&&i._shouldRenderMenu()&&C(i._getMenuProps(h),i._onRenderMenu)))},A=N?M.createElement(ra,{keytipProps:this._isSplitButton?void 0:N,ariaDescribedBy:t["aria-describedby"],disabled:T},function(I){return Y(I)}):Y();return h&&h.doNotLayer?M.createElement("span",{style:{display:"inline-block"}},A,this._shouldRenderMenu()&&C(this._getMenuProps(h),this._onRenderMenu)):M.createElement(M.Fragment,null,A,M.createElement(tu,null))},s.prototype._shouldRenderMenu=function(){var n=this.state.menuHidden,t=this.props,i=t.persistMenu,d=t.renderPersistedMenuHiddenOnMount;if(n){if(i&&(this._renderedVisibleMenu||d))return!0}else return!0;return!1},s.prototype._hasText=function(){return this.props.text!==null&&(this.props.text!==void 0||typeof this.props.children=="string")},s.prototype._getMenuProps=function(n){var t=this.props.persistMenu,i=this.state.menuHidden;return!n.ariaLabel&&!n.labelElementId&&this._hasText()&&(n=F(F({},n),{labelElementId:this._labelId})),F(F({id:this._labelId+"-menu",directionalHint:Ot.bottomLeftEdge},n),{shouldFocusOnContainer:this._menuShouldFocusOnContainer,shouldFocusOnMount:this._menuShouldFocusOnMount,hidden:t?i:void 0,className:on("ms-BaseButton-menuhost",n.className),target:this._isSplitButton?this._splitButtonContainer.current:this._buttonElement.current,onDismiss:this._onDismissMenu})},s.prototype._onRenderSplitButtonContent=function(n,t){var i=this,d=this.props,c=d.styles,u=c===void 0?{}:c,h=d.disabled,g=d.allowDisabledFocus,w=d.checked,m=d.getSplitButtonClassNames,x=d.primaryDisabled,_=d.menuProps,v=d.toggle,b=d.role,C=d.primaryActionButtonProps,k=this.props.keytipProps,L=this.state.menuHidden,T=m?m(!!h,!L,!!w,!!g):u&&JL(u,!!h,!L,!!w,!!x);qa(t,{onClick:void 0,onPointerDown:void 0,onPointerUp:void 0,tabIndex:-1,"data-is-focusable":!1}),k&&_&&(k=this._getMemoizedMenuButtonKeytipProps(k));var N=pt(t,[],["disabled"]);C&&qa(t,C);var Y=function(A){return M.createElement("div",F({},N,{"data-ktp-target":A?A["data-ktp-target"]:void 0,role:b||"button","aria-disabled":h,"aria-haspopup":!0,"aria-expanded":!L,"aria-pressed":v?!!w:void 0,"aria-describedby":Za(t["aria-describedby"],A?A["aria-describedby"]:void 0),className:T&&T.splitButtonContainer,onKeyDown:i._onSplitButtonContainerKeyDown,onTouchStart:i._onTouchStart,ref:i._splitButtonContainer,"data-is-focusable":!0,onClick:!h&&!x?i._onSplitButtonPrimaryClick:void 0,tabIndex:!h&&!x||g?0:void 0,"aria-roledescription":t["aria-roledescription"],onFocusCapture:i._onSplitContainerFocusCapture}),M.createElement("span",{style:{display:"flex"}},i._onRenderContent(n,t),i._onRenderSplitButtonMenuButton(T,A),i._onRenderSplitButtonDivider(T)))};return k?M.createElement(ra,{keytipProps:k,disabled:h},function(A){return Y(A)}):Y()},s.prototype._onRenderSplitButtonDivider=function(n){if(n&&n.divider){var t=function(i){i.stopPropagation()};return M.createElement("span",{className:n.divider,"aria-hidden":!0,onClick:t})}return null},s.prototype._onRenderSplitButtonMenuButton=function(n,t){var i=this.props,d=i.allowDisabledFocus,c=i.checked,u=i.disabled,h=i.splitButtonMenuProps,g=i.splitButtonAriaLabel,w=i.primaryDisabled,m=this.state.menuHidden,x=this.props.menuIconProps;x===void 0&&(x={iconName:"ChevronDown"});var _=F(F({},h),{styles:n,checked:c,disabled:u,allowDisabledFocus:d,onClick:this._onMenuClick,menuProps:void 0,iconProps:F(F({},x),{className:this._classNames.menuIcon}),ariaLabel:g,"aria-haspopup":!0,"aria-expanded":!m,"data-is-focusable":!1});return M.createElement(s,F({},_,{"data-ktp-execute-target":t&&t["data-ktp-execute-target"],onMouseDown:this._onMouseDown,tabIndex:w&&!d?0:-1}))},s.prototype._onPointerDown=function(n){var t=this.props.onPointerDown;t&&t(n),n.pointerType==="touch"&&(this._handleTouchAndPointerEvent(),n.preventDefault(),n.stopImmediatePropagation())},s.prototype._handleTouchAndPointerEvent=function(){var n=this;this._lastTouchTimeoutId!==void 0&&(this._async.clearTimeout(this._lastTouchTimeoutId),this._lastTouchTimeoutId=void 0),this._processingTouch=!0,this._lastTouchTimeoutId=this._async.setTimeout(function(){n._processingTouch=!1,n._lastTouchTimeoutId=void 0,n.focus()},ZL)},s.prototype._isValidMenuOpenKey=function(n){return this.props.menuTriggerKeyCode?n.which===this.props.menuTriggerKeyCode:this.props.menuProps?n.which===ke.down&&(n.altKey||n.metaKey):!1},s.defaultProps={baseClassName:"ms-Button",styles:{},split:!1},s})(M.Component),Dv={outline:0},Iv=function(o){return{fontSize:o,margin:"0 4px",height:"16px",lineHeight:"16px",textAlign:"center",flexShrink:0}},fg=Et(function(o){var s,n,t=o.semanticColors,i=o.effects,d=o.fonts,c=t.buttonBorder,u=t.disabledBackground,h=t.disabledText,g={left:-2,top:-2,bottom:-2,right:-2,outlineColor:"ButtonText"};return{root:[On(o,{inset:1,highContrastStyle:g,borderColor:"transparent"}),o.fonts.medium,{boxSizing:"border-box",border:"1px solid "+c,userSelect:"none",display:"inline-block",textDecoration:"none",textAlign:"center",cursor:"pointer",padding:"0 16px",borderRadius:i.roundedCorner2,selectors:{":active > span":{position:"relative",left:0,top:0}}}],rootDisabled:[On(o,{inset:1,highContrastStyle:g,borderColor:"transparent"}),{backgroundColor:u,borderColor:u,color:h,cursor:"default",selectors:{":hover":Dv,":focus":Dv}}],iconDisabled:{color:h,selectors:(s={},s[_e]={color:"GrayText"},s)},menuIconDisabled:{color:h,selectors:(n={},n[_e]={color:"GrayText"},n)},flexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},description:{display:"block"},textContainer:{flexGrow:1,display:"block"},icon:Iv(d.mediumPlus.fontSize),menuIcon:Iv(d.small.fontSize),label:{margin:"0 4px",lineHeight:"100%",display:"block"},screenReaderText:wd}}),nw=Et(function(o,s){var n,t,i,d,c,u,h,g,w,m,x,_,v,b=o.effects,C=o.palette,k=o.semanticColors,L={left:-2,top:-2,bottom:-2,right:-2,border:"none"},T={position:"absolute",width:1,right:31,top:8,bottom:8},N={splitButtonContainer:[On(o,{highContrastStyle:L,inset:2}),{display:"inline-flex",selectors:{".ms-Button--default":{borderTopRightRadius:"0",borderBottomRightRadius:"0",borderRight:"none"},".ms-Button--primary":{borderTopRightRadius:"0",borderBottomRightRadius:"0",border:"none",selectors:(n={},n[_e]=F({color:"WindowText",backgroundColor:"Window",border:"1px solid WindowText",borderRightWidth:"0"},bt()),n)},".ms-Button--primary + .ms-Button":{border:"none",selectors:(t={},t[_e]={border:"1px solid WindowText",borderLeftWidth:"0"},t)}}}],splitButtonContainerHovered:{selectors:{".ms-Button--primary":{selectors:(i={},i[_e]={color:"Window",backgroundColor:"Highlight"},i)},".ms-Button.is-disabled":{color:k.buttonTextDisabled,selectors:(d={},d[_e]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},d)}}},splitButtonContainerChecked:{selectors:{".ms-Button--primary":{selectors:(c={},c[_e]=F({color:"Window",backgroundColor:"WindowText"},bt()),c)}}},splitButtonContainerCheckedHovered:{selectors:{".ms-Button--primary":{selectors:(u={},u[_e]=F({color:"Window",backgroundColor:"WindowText"},bt()),u)}}},splitButtonContainerFocused:{outline:"none!important"},splitButtonMenuButton:(h={padding:6,height:"auto",boxSizing:"border-box",borderRadius:0,borderTopRightRadius:b.roundedCorner2,borderBottomRightRadius:b.roundedCorner2,border:"1px solid "+C.neutralSecondaryAlt,borderLeft:"none",outline:"transparent",userSelect:"none",display:"inline-block",textDecoration:"none",textAlign:"center",cursor:"pointer",verticalAlign:"top",width:32,marginLeft:-1,marginTop:0,marginRight:0,marginBottom:0},h[_e]={".ms-Button-menuIcon":{color:"WindowText"}},h),splitButtonDivider:F(F({},T),{selectors:(g={},g[_e]={backgroundColor:"WindowText"},g)}),splitButtonDividerDisabled:F(F({},T),{selectors:(w={},w[_e]={backgroundColor:"GrayText"},w)}),splitButtonMenuButtonDisabled:{pointerEvents:"none",border:"none",selectors:(m={":hover":{cursor:"default"},".ms-Button--primary":{selectors:(x={},x[_e]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},x)},".ms-Button-menuIcon":{selectors:(_={},_[_e]={color:"GrayText"},_)}},m[_e]={color:"GrayText",border:"1px solid GrayText",backgroundColor:"Window"},m)},splitButtonFlexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},splitButtonContainerDisabled:{outline:"none",border:"none",selectors:(v={},v[_e]=F({color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},bt()),v)},splitButtonMenuFocused:F({},On(o,{highContrastStyle:L,inset:2}))};return Vs(N,s)}),Ab=function(){return{position:"absolute",width:1,right:31,top:8,bottom:8}};function QL(o){var s,n,t,i,d,c=o.semanticColors,u=o.palette,h=c.buttonBackground,g=c.buttonBackgroundPressed,w=c.buttonBackgroundHovered,m=c.buttonBackgroundDisabled,x=c.buttonText,_=c.buttonTextHovered,v=c.buttonTextDisabled,b=c.buttonTextChecked,C=c.buttonTextCheckedHovered;return{root:{backgroundColor:h,color:x},rootHovered:{backgroundColor:w,color:_,selectors:(s={},s[_e]={borderColor:"Highlight",color:"Highlight"},s)},rootPressed:{backgroundColor:g,color:b},rootExpanded:{backgroundColor:g,color:b},rootChecked:{backgroundColor:g,color:b},rootCheckedHovered:{backgroundColor:g,color:C},rootDisabled:{color:v,backgroundColor:m,selectors:(n={},n[_e]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},n)},splitButtonContainer:{selectors:(t={},t[_e]={border:"none"},t)},splitButtonMenuButton:{color:u.white,backgroundColor:"transparent",selectors:{":hover":{backgroundColor:u.neutralLight,selectors:(i={},i[_e]={color:"Highlight"},i)}}},splitButtonMenuButtonDisabled:{backgroundColor:c.buttonBackgroundDisabled,selectors:{":hover":{backgroundColor:c.buttonBackgroundDisabled}}},splitButtonDivider:F(F({},Ab()),{backgroundColor:u.neutralTertiaryAlt,selectors:(d={},d[_e]={backgroundColor:"WindowText"},d)}),splitButtonDividerDisabled:{backgroundColor:o.palette.neutralTertiaryAlt},splitButtonMenuButtonChecked:{backgroundColor:u.neutralQuaternaryAlt,selectors:{":hover":{backgroundColor:u.neutralQuaternaryAlt}}},splitButtonMenuButtonExpanded:{backgroundColor:u.neutralQuaternaryAlt,selectors:{":hover":{backgroundColor:u.neutralQuaternaryAlt}}},splitButtonMenuIcon:{color:c.buttonText},splitButtonMenuIconDisabled:{color:c.buttonTextDisabled}}}function e6(o){var s,n,t,i,d,c,u,h,g,w=o.palette,m=o.semanticColors;return{root:{backgroundColor:m.primaryButtonBackground,border:"1px solid "+m.primaryButtonBackground,color:m.primaryButtonText,selectors:(s={},s[_e]=F({color:"Window",backgroundColor:"WindowText",borderColor:"WindowText"},bt()),s["."+fn+" &:focus"]={selectors:{":after":{border:"none",outlineColor:w.white}}},s)},rootHovered:{backgroundColor:m.primaryButtonBackgroundHovered,border:"1px solid "+m.primaryButtonBackgroundHovered,color:m.primaryButtonTextHovered,selectors:(n={},n[_e]={color:"Window",backgroundColor:"Highlight",borderColor:"Highlight"},n)},rootPressed:{backgroundColor:m.primaryButtonBackgroundPressed,border:"1px solid "+m.primaryButtonBackgroundPressed,color:m.primaryButtonTextPressed,selectors:(t={},t[_e]=F({color:"Window",backgroundColor:"WindowText",borderColor:"WindowText"},bt()),t)},rootExpanded:{backgroundColor:m.primaryButtonBackgroundPressed,color:m.primaryButtonTextPressed},rootChecked:{backgroundColor:m.primaryButtonBackgroundPressed,color:m.primaryButtonTextPressed},rootCheckedHovered:{backgroundColor:m.primaryButtonBackgroundPressed,color:m.primaryButtonTextPressed},rootDisabled:{color:m.primaryButtonTextDisabled,backgroundColor:m.primaryButtonBackgroundDisabled,selectors:(i={},i[_e]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},i)},splitButtonContainer:{selectors:(d={},d[_e]={border:"none"},d)},splitButtonDivider:F(F({},Ab()),{backgroundColor:w.white,selectors:(c={},c[_e]={backgroundColor:"Window"},c)}),splitButtonMenuButton:{backgroundColor:m.primaryButtonBackground,color:m.primaryButtonText,selectors:(u={},u[_e]={backgroundColor:"WindowText"},u[":hover"]={backgroundColor:m.primaryButtonBackgroundHovered,selectors:(h={},h[_e]={color:"Highlight"},h)},u)},splitButtonMenuButtonDisabled:{backgroundColor:m.primaryButtonBackgroundDisabled,selectors:{":hover":{backgroundColor:m.primaryButtonBackgroundDisabled}}},splitButtonMenuButtonChecked:{backgroundColor:m.primaryButtonBackgroundPressed,selectors:{":hover":{backgroundColor:m.primaryButtonBackgroundPressed}}},splitButtonMenuButtonExpanded:{backgroundColor:m.primaryButtonBackgroundPressed,selectors:{":hover":{backgroundColor:m.primaryButtonBackgroundPressed}}},splitButtonMenuIcon:{color:m.primaryButtonText},splitButtonMenuIconDisabled:{color:w.neutralTertiary,selectors:(g={},g[_e]={color:"GrayText"},g)}}}var t6="32px",n6="80px",r6=Et(function(o,s,n){var t=fg(o),i=nw(o),d={root:{minWidth:n6,height:t6},label:{fontWeight:Lt.semibold}};return Vs(t,d,n?e6(o):QL(o),i,s)}),et=(function(o){Ne(s,o);function s(){return o!==null&&o.apply(this,arguments)||this}return s.prototype.render=function(){var n=this.props,t=n.primary,i=t===void 0?!1:t,d=n.styles,c=n.theme;return M.createElement(mg,F({},this.props,{variantClassName:i?"ms-Button--primary":"ms-Button--default",styles:r6(c,d,i),onRenderDescription:md}))},s=_s([eu("DefaultButton",["theme","styles"],!0)],s),s})(M.Component),o6="40px",s6="0 4px",i6=Et(function(o,s){var n,t=fg(o),i={root:{padding:s6,height:o6,color:o.palette.neutralPrimary,backgroundColor:"transparent",border:"1px solid transparent"},rootHovered:{color:o.palette.themePrimary,selectors:(n={},n[_e]={borderColor:"Highlight",color:"Highlight"},n)},iconHovered:{color:o.palette.themePrimary},rootPressed:{color:o.palette.black},rootExpanded:{color:o.palette.themePrimary},iconPressed:{color:o.palette.themeDarker},rootDisabled:{color:o.palette.neutralTertiary,backgroundColor:"transparent",borderColor:"transparent"},rootChecked:{color:o.palette.black},iconChecked:{color:o.palette.themeDarker},flexContainer:{justifyContent:"flex-start"},icon:{color:o.palette.themeDarkAlt},iconDisabled:{color:"inherit"},menuIcon:{color:o.palette.neutralSecondary},textContainer:{flexGrow:0}};return Vs(t,i,s)}),el=(function(o){Ne(s,o);function s(){return o!==null&&o.apply(this,arguments)||this}return s.prototype.render=function(){var n=this.props,t=n.styles,i=n.theme;return M.createElement(mg,F({},this.props,{variantClassName:"ms-Button--action ms-Button--command",styles:i6(i,t),onRenderDescription:md}))},s=_s([eu("ActionButton",["theme","styles"],!0)],s),s})(M.Component),a6=Et(function(o,s){var n,t=fg(o),i=nw(o),d=o.palette,c=o.semanticColors,u={root:{padding:"0 4px",width:"32px",height:"32px",backgroundColor:"transparent",border:"none",color:c.link},rootHovered:{color:d.themeDarkAlt,backgroundColor:d.neutralLighter,selectors:(n={},n[_e]={borderColor:"Highlight",color:"Highlight"},n)},rootHasMenu:{width:"auto"},rootPressed:{color:d.themeDark,backgroundColor:d.neutralLight},rootExpanded:{color:d.themeDark,backgroundColor:d.neutralLight},rootChecked:{color:d.themeDark,backgroundColor:d.neutralLight},rootCheckedHovered:{color:d.themeDark,backgroundColor:d.neutralQuaternaryAlt},rootDisabled:{color:d.neutralTertiaryAlt}};return Vs(t,u,i,s)}),Ke=(function(o){Ne(s,o);function s(){return o!==null&&o.apply(this,arguments)||this}return s.prototype.render=function(){var n=this.props,t=n.styles,i=n.theme;return M.createElement(mg,F({},this.props,{variantClassName:"ms-Button--icon",styles:a6(i,t),onRenderText:md,onRenderDescription:md}))},s=_s([eu("IconButton",["theme","styles"],!0)],s),s})(M.Component),dt=(function(o){Ne(s,o);function s(){return o!==null&&o.apply(this,arguments)||this}return s.prototype.render=function(){return M.createElement(et,F({},this.props,{primary:!0,onRenderDescription:md}))},s=_s([eu("PrimaryButton",["theme","styles"],!0)],s),s})(M.Component),l6=Et(function(o,s,n,t){var i,d,c,u,h,g,w,m,x,_,v,b,C,k,L=fg(o),T=nw(o),N=o.palette,Y=o.semanticColors,A={left:4,top:4,bottom:4,right:4,border:"none"},I={root:[On(o,{inset:2,highContrastStyle:A,borderColor:"transparent"}),o.fonts.medium,{minWidth:"40px",backgroundColor:N.white,color:N.neutralPrimary,padding:"0 4px",border:"none",borderRadius:0,selectors:(i={},i[_e]={border:"none"},i)}],rootHovered:{backgroundColor:N.neutralLighter,color:N.neutralDark,selectors:(d={},d[_e]={color:"Highlight"},d["."+Ur.msButtonIcon]={color:N.themeDarkAlt},d["."+Ur.msButtonMenuIcon]={color:N.neutralPrimary},d)},rootPressed:{backgroundColor:N.neutralLight,color:N.neutralDark,selectors:(c={},c["."+Ur.msButtonIcon]={color:N.themeDark},c["."+Ur.msButtonMenuIcon]={color:N.neutralPrimary},c)},rootChecked:{backgroundColor:N.neutralLight,color:N.neutralDark,selectors:(u={},u["."+Ur.msButtonIcon]={color:N.themeDark},u["."+Ur.msButtonMenuIcon]={color:N.neutralPrimary},u)},rootCheckedHovered:{backgroundColor:N.neutralQuaternaryAlt,selectors:(h={},h["."+Ur.msButtonIcon]={color:N.themeDark},h["."+Ur.msButtonMenuIcon]={color:N.neutralPrimary},h)},rootExpanded:{backgroundColor:N.neutralLight,color:N.neutralDark,selectors:(g={},g["."+Ur.msButtonIcon]={color:N.themeDark},g["."+Ur.msButtonMenuIcon]={color:N.neutralPrimary},g)},rootExpandedHovered:{backgroundColor:N.neutralQuaternaryAlt},rootDisabled:{backgroundColor:N.white,selectors:(w={},w["."+Ur.msButtonIcon]={color:Y.disabledBodySubtext,selectors:(m={},m[_e]=F({color:"GrayText"},bt()),m)},w[_e]=F({color:"GrayText",backgroundColor:"Window"},bt()),w)},splitButtonContainer:{height:"100%",selectors:(x={},x[_e]={border:"none"},x)},splitButtonDividerDisabled:{selectors:(_={},_[_e]={backgroundColor:"Window"},_)},splitButtonDivider:{backgroundColor:N.neutralTertiaryAlt},splitButtonMenuButton:{backgroundColor:N.white,border:"none",borderTopRightRadius:"0",borderBottomRightRadius:"0",color:N.neutralSecondary,selectors:{":hover":{backgroundColor:N.neutralLighter,color:N.neutralDark,selectors:(v={},v[_e]={color:"Highlight"},v["."+Ur.msButtonIcon]={color:N.neutralPrimary},v)},":active":{backgroundColor:N.neutralLight,selectors:(b={},b["."+Ur.msButtonIcon]={color:N.neutralPrimary},b)}}},splitButtonMenuButtonDisabled:{backgroundColor:N.white,selectors:(C={},C[_e]=F({color:"GrayText",border:"none",backgroundColor:"Window"},bt()),C)},splitButtonMenuButtonChecked:{backgroundColor:N.neutralLight,color:N.neutralDark,selectors:{":hover":{backgroundColor:N.neutralQuaternaryAlt}}},splitButtonMenuButtonExpanded:{backgroundColor:N.neutralLight,color:N.black,selectors:{":hover":{backgroundColor:N.neutralQuaternaryAlt}}},splitButtonMenuIcon:{color:N.neutralPrimary},splitButtonMenuIconDisabled:{color:N.neutralTertiary},label:{fontWeight:"normal"},icon:{color:N.themePrimary},menuIcon:(k={color:N.neutralSecondary},k[_e]={color:"GrayText"},k)};return Vs(L,T,I,s)}),Dn=(function(o){Ne(s,o);function s(){return o!==null&&o.apply(this,arguments)||this}return s.prototype.render=function(){var n=this.props,t=n.styles,i=n.theme;return M.createElement(mg,F({},this.props,{variantClassName:"ms-Button--commandBar",styles:l6(i,t),onRenderDescription:md}))},s=_s([eu("CommandBarButton",["theme","styles"],!0)],s),s})(M.Component),d6=el,c6=Je(),Pb=function(o){var s=o.checked,n=s===void 0?!1:s,t=o.className,i=o.theme,d=o.styles,c=o.useFastIcons,u=c===void 0?!0:c,h=c6(d,{theme:i,className:t,checked:n}),g=u?kt:ze;return M.createElement("div",{className:h.root},M.createElement(g,{iconName:"CircleRing",className:h.circle}),M.createElement(g,{iconName:"StatusCircleCheckmark",className:h.check}))};Pb.displayName="CheckBase";var Rb={root:"ms-Check",circle:"ms-Check-circle",check:"ms-Check-check",checkHost:"ms-Check-checkHost"},u6=function(o){var s,n,t,i,d,c=o.height,u=c===void 0?o.checkBoxHeight||"18px":c,h=o.checked,g=o.className,w=o.theme,m=w.palette,x=w.semanticColors,_=w.fonts,v=Tt(w),b=it(Rb,w),C={fontSize:u,position:"absolute",left:0,top:0,width:u,height:u,textAlign:"center",verticalAlign:"middle"};return{root:[b.root,_.medium,{lineHeight:"1",width:u,height:u,verticalAlign:"top",position:"relative",userSelect:"none",selectors:(s={":before":{content:'""',position:"absolute",top:"1px",right:"1px",bottom:"1px",left:"1px",borderRadius:"50%",opacity:1,background:x.bodyBackground}},s["."+b.checkHost+":hover &, ."+b.checkHost+":focus &, &:hover, &:focus"]={opacity:1},s)},h&&["is-checked",{selectors:{":before":{background:m.themePrimary,opacity:1,selectors:(n={},n[_e]={background:"Window"},n)}}}],g],circle:[b.circle,C,{color:m.neutralSecondary,selectors:(t={},t[_e]={color:"WindowText"},t)},h&&{color:m.white}],check:[b.check,C,{opacity:0,color:m.neutralSecondary,fontSize:Mr.medium,left:v?"-0.5px":".5px",selectors:(i={":hover":{opacity:1}},i[_e]=F({},bt()),i)},h&&{opacity:1,color:m.white,fontWeight:900,selectors:(d={},d[_e]={border:"none",color:"WindowText"},d)}],checkHost:b.checkHost}},gg=Ze(Pb,u6,void 0,{scope:"Check"},!0),p6=Je(),h6=(function(o){Ne(s,o);function s(n,t){var i=o.call(this,n,t)||this;return i._checkBox=M.createRef(),i._renderContent=function(d,c,u){u===void 0&&(u={});var h=i.props,g=h.disabled,w=h.inputProps,m=h.name,x=h.ariaLabel,_=h.ariaLabelledBy,v=h.ariaDescribedBy,b=h.onRenderLabel,C=b===void 0?i._onRenderLabel:b,k=h.checkmarkIconProps,L=h.ariaPositionInSet,T=h.ariaSetSize,N=h.title,Y=h.label;return M.createElement("div",{className:i._classNames.root,title:N},M.createElement(tu,null),M.createElement("input",F({type:"checkbox"},w,{"data-ktp-execute-target":u["data-ktp-execute-target"],checked:d,disabled:g,className:i._classNames.input,ref:i._checkBox,name:m,id:i._id,title:N,onChange:i._onChange,onFocus:i._onFocus,onBlur:i._onBlur,"aria-disabled":g,"aria-label":x||Y,"aria-labelledby":_,"aria-describedby":Za(v,u["aria-describedby"]),"aria-posinset":L,"aria-setsize":T,"aria-checked":c?"mixed":d?"true":"false"})),M.createElement("label",{className:i._classNames.label,htmlFor:i._id},M.createElement("div",{className:i._classNames.checkbox,"data-ktp-target":u["data-ktp-target"]},M.createElement(ze,F({iconName:"CheckMark"},k,{className:i._classNames.checkmark}))),C(i.props,i._onRenderLabel)))},i._onFocus=function(d){var c=i.props.inputProps;c&&c.onFocus&&c.onFocus(d)},i._onBlur=function(d){var c=i.props.inputProps;c&&c.onBlur&&c.onBlur(d)},i._onChange=function(d){var c=i.props.onChange,u=i.state,h=u.isChecked,g=u.isIndeterminate;g?(c&&c(d,h),i.props.indeterminate===void 0&&i.setState({isIndeterminate:!1})):(c&&c(d,!h),i.props.checked===void 0&&i.setState({isChecked:!h}))},i._onRenderLabel=function(d){var c=d.label,u=d.title;return c?M.createElement("span",{"aria-hidden":"true",className:i._classNames.text,title:u},c):null},St(i),i._id=i.props.id||zt("checkbox-"),i.state={isChecked:!!(n.checked!==void 0?n.checked:n.defaultChecked),isIndeterminate:!!(n.indeterminate!==void 0?n.indeterminate:n.defaultIndeterminate)},i}return s.getDerivedStateFromProps=function(n,t){var i={};return n.indeterminate!==void 0&&(i.isIndeterminate=!!n.indeterminate),n.checked!==void 0&&(i.isChecked=!!n.checked),Object.keys(i).length?i:null},s.prototype.render=function(){var n=this,t=this.props,i=t.className,d=t.disabled,c=t.boxSide,u=t.theme,h=t.styles,g=t.onRenderLabel,w=g===void 0?this._onRenderLabel:g,m=t.keytipProps,x=this.state,_=x.isChecked,v=x.isIndeterminate;return this._classNames=p6(h,{theme:u,className:i,disabled:d,indeterminate:v,checked:_,reversed:c!=="start",isUsingCustomLabelRender:w!==this._onRenderLabel}),m?M.createElement(ra,{keytipProps:m,disabled:d},function(b){return n._renderContent(_,v,b)}):this._renderContent(_,v)},Object.defineProperty(s.prototype,"indeterminate",{get:function(){return!!this.state.isIndeterminate},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"checked",{get:function(){return!!this.state.isChecked},enumerable:!0,configurable:!0}),s.prototype.focus=function(){this._checkBox.current&&this._checkBox.current.focus()},s.defaultProps={boxSide:"start"},s})(M.Component),m6={root:"ms-Checkbox",label:"ms-Checkbox-label",checkbox:"ms-Checkbox-checkbox",checkmark:"ms-Checkbox-checkmark",text:"ms-Checkbox-text"},Tv="20px",Av="200ms",Pv="cubic-bezier(.4, 0, .23, 1)",f6=function(o){var s,n,t,i,d,c,u,h,g,w,m,x,_,v,b,C,k,L,T=o.className,N=o.theme,Y=o.reversed,A=o.checked,I=o.disabled,R=o.isUsingCustomLabelRender,H=o.indeterminate,W=N.semanticColors,K=N.effects,Z=N.palette,Q=N.fonts,B=it(m6,N),P=W.inputForegroundChecked,X=Z.neutralSecondary,$=Z.neutralPrimary,ie=W.inputBackgroundChecked,le=W.inputBackgroundChecked,V=W.disabledBodySubtext,z=W.inputBorderHovered,J=W.inputBackgroundCheckedHovered,ee=W.inputBackgroundChecked,me=W.inputBackgroundCheckedHovered,te=W.inputBackgroundCheckedHovered,G=W.inputTextHovered,ne=W.disabledBodySubtext,Ue=W.bodyText,Ge=W.disabledText,Ut=[(s={content:'""',borderRadius:K.roundedCorner2,position:"absolute",width:10,height:10,top:4,left:4,boxSizing:"border-box",borderWidth:5,borderStyle:"solid",borderColor:I?V:ie,transitionProperty:"border-width, border, border-color",transitionDuration:Av,transitionTimingFunction:Pv},s[_e]={borderColor:"WindowText"},s)];return{root:[B.root,{position:"relative",display:"flex"},Y&&"reversed",A&&"is-checked",!I&&"is-enabled",I&&"is-disabled",!I&&[!A&&(n={},n[":hover ."+B.checkbox]=(t={borderColor:z},t[_e]={borderColor:"Highlight"},t),n[":focus ."+B.checkbox]={borderColor:z},n[":hover ."+B.checkmark]=(i={color:X,opacity:"1"},i[_e]={color:"Highlight"},i),n),A&&!H&&(d={},d[":hover ."+B.checkbox]={background:me,borderColor:te},d[":focus ."+B.checkbox]={background:me,borderColor:te},d[_e]=(c={},c[":hover ."+B.checkbox]={background:"Highlight",borderColor:"Highlight"},c[":focus ."+B.checkbox]={background:"Highlight"},c[":focus:hover ."+B.checkbox]={background:"Highlight"},c[":focus:hover ."+B.checkmark]={color:"Window"},c[":hover ."+B.checkmark]={color:"Window"},c),d),H&&(u={},u[":hover ."+B.checkbox+", :hover ."+B.checkbox+":after"]=(h={borderColor:J},h[_e]={borderColor:"WindowText"},h),u[":focus ."+B.checkbox]={borderColor:J},u[":hover ."+B.checkmark]={opacity:"0"},u),(g={},g[":hover ."+B.text+", :focus ."+B.text]=(w={color:G},w[_e]={color:I?"GrayText":"WindowText"},w),g)],T],input:(m={position:"absolute",background:"none",opacity:0},m["."+fn+" &:focus + label::before"]=(x={outline:"1px solid "+N.palette.neutralSecondary,outlineOffset:"2px"},x[_e]={outline:"1px solid WindowText"},x),m),label:[B.label,N.fonts.medium,{display:"flex",alignItems:R?"center":"flex-start",cursor:I?"default":"pointer",position:"relative",userSelect:"none"},Y&&{flexDirection:"row-reverse",justifyContent:"flex-end"},{"&::before":{position:"absolute",left:0,right:0,top:0,bottom:0,content:'""',pointerEvents:"none"}}],checkbox:[B.checkbox,(_={position:"relative",display:"flex",flexShrink:0,alignItems:"center",justifyContent:"center",height:Tv,width:Tv,border:"1px solid "+$,borderRadius:K.roundedCorner2,boxSizing:"border-box",transitionProperty:"background, border, border-color",transitionDuration:Av,transitionTimingFunction:Pv,overflow:"hidden",":after":H?Ut:null},_[_e]=F({borderColor:"WindowText"},bt()),_),H&&{borderColor:ie},Y?{marginLeft:4}:{marginRight:4},!I&&!H&&A&&(v={background:ee,borderColor:le},v[_e]={background:"Highlight",borderColor:"Highlight"},v),I&&(b={borderColor:V},b[_e]={borderColor:"GrayText"},b),A&&I&&(C={background:ne,borderColor:V},C[_e]={background:"Window"},C)],checkmark:[B.checkmark,(k={opacity:A?"1":"0",color:P},k[_e]=F({color:I?"GrayText":"Window"},bt()),k)],text:[B.text,(L={color:I?Ge:Ue,fontSize:Q.medium.fontSize,lineHeight:"20px"},L[_e]=F({color:I?"GrayText":"WindowText"},bt()),L),Y?{marginRight:4}:{marginLeft:4}]}},ce=Ze(h6,f6,void 0,{scope:"Checkbox"}),g6=Je({cacheSize:100}),_6=(function(o){Ne(s,o);function s(){return o!==null&&o.apply(this,arguments)||this}return s.prototype.render=function(){var n=this.props,t=n.as,i=t===void 0?"label":t,d=n.children,c=n.className,u=n.disabled,h=n.styles,g=n.required,w=n.theme,m=g6(h,{className:c,disabled:u,required:g,theme:w});return M.createElement(i,F({},pt(this.props,Yn),{className:m.root}),d)},s})(M.Component),y6=function(o){var s,n=o.theme,t=o.className,i=o.disabled,d=o.required,c=n.semanticColors,u=Lt.semibold,h=c.bodyText,g=c.disabledBodyText,w=c.errorText;return{root:["ms-Label",n.fonts.medium,{fontWeight:u,color:h,boxSizing:"border-box",boxShadow:"none",margin:0,display:"block",padding:"5px 0",wordWrap:"break-word",overflowWrap:"break-word"},i&&{color:g,selectors:(s={},s[_e]=F({color:"GrayText"},bt()),s)},d&&{selectors:{"::after":{content:"' *'",color:w,paddingRight:12}}},t]}},fd=Ze(_6,y6,void 0,{scope:"Label"}),w6=Je(),Rv=71,v6=(function(o){Ne(s,o);function s(n){var t=o.call(this,n)||this;return t._onChange=function(i){var d=t.props.onChange;d&&d(i,t.props)},t._onBlur=function(i){var d=t.props.onBlur;d&&d(i,t.props)},t._onFocus=function(i){var d=t.props.onFocus;d&&d(i,t.props)},t._onRenderField=function(i){var d=i.id,c=i.imageSrc,u=i.imageAlt,h=u===void 0?"":u,g=i.selectedImageSrc,w=i.iconProps,m=i.imageSize?i.imageSize:{width:32,height:32},x=i.onRenderLabel?Oo(i.onRenderLabel,t._onRenderLabel):t._onRenderLabel,_=x(i);return M.createElement("label",{htmlFor:d,className:t._classNames.field},c&&M.createElement("div",{className:t._classNames.innerField},M.createElement("div",{className:t._classNames.imageWrapper},M.createElement(Vp,{src:c,alt:h,width:m.width,height:m.height})),M.createElement("div",{className:t._classNames.selectedImageWrapper},M.createElement(Vp,{src:g,alt:h,width:m.width,height:m.height}))),w&&M.createElement("div",{className:t._classNames.innerField},M.createElement("div",{className:t._classNames.iconWrapper},M.createElement(ze,F({},w)))),c||w?M.createElement("div",{className:t._classNames.labelWrapper},_):_)},t._onRenderLabel=function(i){return M.createElement("span",{id:i.labelId,className:"ms-ChoiceFieldLabel"},i.text)},St(t),t}return s.prototype.render=function(){var n=this.props,t=n.ariaLabel,i=n.focused,d=n.required,c=n.theme,u=n.iconProps,h=n.imageSrc,g=n.imageSize,w=n.disabled,m=n.checked,x=n.id,_=n.styles,v=n.name,b=n.onRenderField,C=b===void 0?this._onRenderField:b,k=mo(n,["ariaLabel","focused","required","theme","iconProps","imageSrc","imageSize","disabled","checked","id","styles","name","onRenderField"]);this._classNames=w6(_,{theme:c,hasIcon:!!u,hasImage:!!h,checked:m,disabled:w,imageIsLarge:!!h&&(g.width>Rv||g.height>Rv),imageSize:g,focused:i});var L=pt(k,ah),T=L.className,N=mo(L,["className"]);return M.createElement("div",{className:this._classNames.root},M.createElement("div",{className:this._classNames.choiceFieldWrapper},M.createElement("input",F({"aria-label":t,id:x,className:on(this._classNames.input,T),type:"radio",name:v,disabled:w,checked:m,required:d},N,{onChange:this._onChange,onFocus:this._onFocus,onBlur:this._onBlur})),C(this.props,this._onRenderField)))},s.defaultProps={imageSize:{width:32,height:32}},s})(M.Component),x6={root:"ms-ChoiceField",choiceFieldWrapper:"ms-ChoiceField-wrapper",input:"ms-ChoiceField-input",field:"ms-ChoiceField-field",innerField:"ms-ChoiceField-innerField",imageWrapper:"ms-ChoiceField-imageWrapper",iconWrapper:"ms-ChoiceField-iconWrapper",labelWrapper:"ms-ChoiceField-labelWrapper",checked:"is-checked"},Fb=15,b6=Fb*2+2,B_=32,H_=20,Pf="200ms",Fv="cubic-bezier(.4, 0, .23, 1)",Xm=3,Nv=5;function S6(o,s){var n,t;return["is-inFocus",{selectors:(n={},n["."+fn+" &"]={position:"relative",outline:"transparent",selectors:{"::-moz-focus-inner":{border:0},":after":{content:'""',top:-2,right:-2,bottom:-2,left:-2,pointerEvents:"none",border:"1px solid "+o,position:"absolute",selectors:(t={},t[_e]={borderColor:"WindowText",borderWidth:s?1:2},t)}}},n)}]}function Ov(o,s,n){return[s,{paddingBottom:2,transitionProperty:"opacity",transitionDuration:Pf,transitionTimingFunction:"ease",selectors:{".ms-Image":{display:"inline-block",borderStyle:"none"}}},(n?!o:o)&&["is-hidden",{position:"absolute",left:0,top:0,width:"100%",height:"100%",overflow:"hidden",opacity:0}]]}var C6=function(o){var s,n,t,i,d,c=o.theme,u=o.hasIcon,h=o.hasImage,g=o.checked,w=o.disabled,m=o.imageIsLarge,x=o.focused,_=o.imageSize,v=c.palette,b=c.semanticColors,C=c.fonts,k=it(x6,c),L=v.neutralPrimary,T=b.inputBorderHovered,N=b.inputBackgroundChecked,Y=v.themeDark,A=b.disabledBodySubtext,I=b.bodyBackground,R=v.neutralSecondary,H=b.inputBackgroundChecked,W=v.themeDark,K=b.disabledBodySubtext,Z=v.neutralDark,Q=b.focusBorder,B=b.inputBorderHovered,P=b.inputBackgroundChecked,X=v.themeDark,$=v.neutralLighter,ie={selectors:{".ms-ChoiceFieldLabel":{color:Z},":before":{borderColor:g?Y:T},":after":[!u&&!h&&!g&&{content:'""',transitionProperty:"background-color",left:5,top:5,width:10,height:10,backgroundColor:R},g&&{borderColor:W}]}},le={borderColor:g?X:B,selectors:{":before":{opacity:1,borderColor:g?Y:T}}},V=[{content:'""',display:"inline-block",backgroundColor:I,borderWidth:1,borderStyle:"solid",borderColor:L,width:H_,height:H_,fontWeight:"normal",position:"absolute",top:0,left:0,boxSizing:"border-box",transitionProperty:"border-color",transitionDuration:Pf,transitionTimingFunction:Fv,borderRadius:"50%"},w&&{borderColor:A,selectors:(s={},s[_e]=F({borderColor:"GrayText",background:"Window"},bt()),s)},g&&{borderColor:w?A:N,selectors:(n={},n[_e]={borderColor:"Highlight",background:"Window",forcedColorAdjust:"none"},n)},(u||h)&&{top:Xm,right:Xm,left:"auto",opacity:g?1:0}],z=[{content:'""',width:0,height:0,borderRadius:"50%",position:"absolute",left:H_/2,right:0,transitionProperty:"border-width",transitionDuration:Pf,transitionTimingFunction:Fv,boxSizing:"border-box"},g&&{borderWidth:5,borderStyle:"solid",borderColor:w?K:H,left:5,top:5,width:10,height:10,selectors:(t={},t[_e]={borderColor:"Highlight",forcedColorAdjust:"none"},t)},g&&(u||h)&&{top:Xm+Nv,right:Xm+Nv,left:"auto"}];return{root:[k.root,c.fonts.medium,{display:"flex",alignItems:"center",boxSizing:"border-box",color:b.bodyText,minHeight:26,border:"none",position:"relative",marginTop:8,selectors:{".ms-ChoiceFieldLabel":{display:"inline-block"}}},!u&&!h&&{selectors:{".ms-ChoiceFieldLabel":{paddingLeft:"26px"}}},h&&"ms-ChoiceField--image",u&&"ms-ChoiceField--icon",(u||h)&&{display:"inline-flex",fontSize:0,margin:"0 4px 4px 0",paddingLeft:0,backgroundColor:$,height:"100%"}],choiceFieldWrapper:[k.choiceFieldWrapper,x&&S6(Q,u||h)],input:[k.input,{position:"absolute",opacity:0,top:0,right:0,width:"100%",height:"100%",margin:0},w&&"is-disabled"],field:[k.field,g&&k.checked,{display:"inline-block",cursor:"pointer",marginTop:0,position:"relative",verticalAlign:"top",userSelect:"none",minHeight:20,selectors:{":hover":!w&&ie,":focus":!w&&ie,":before":V,":after":z}},u&&"ms-ChoiceField--icon",h&&"ms-ChoiceField-field--image",(u||h)&&{boxSizing:"content-box",cursor:"pointer",paddingTop:22,margin:0,textAlign:"center",transitionProperty:"all",transitionDuration:Pf,transitionTimingFunction:"ease",border:"1px solid transparent",justifyContent:"center",alignItems:"center",display:"flex",flexDirection:"column"},g&&{borderColor:P},(u||h)&&!w&&{selectors:{":hover":le,":focus":le}},w&&{cursor:"default",selectors:{".ms-ChoiceFieldLabel":{color:b.disabledBodyText,selectors:(i={},i[_e]=F({color:"GrayText"},bt()),i)}}},g&&w&&{borderColor:$}],innerField:[k.innerField,h&&{height:_.height,width:_.width},(u||h)&&{position:"relative",display:"inline-block",paddingLeft:30,paddingRight:30},(u||h)&&m&&{paddingLeft:24,paddingRight:24},(u||h)&&w&&{opacity:.25,selectors:(d={},d[_e]={color:"GrayText",opacity:1},d)}],imageWrapper:Ov(!1,k.imageWrapper,g),selectedImageWrapper:Ov(!0,k.imageWrapper,g),iconWrapper:[k.iconWrapper,{fontSize:B_,lineHeight:B_,height:B_}],labelWrapper:[k.labelWrapper,C.medium,(u||h)&&{display:"block",position:"relative",margin:"4px 8px 2px 8px",height:b6,lineHeight:Fb,maxWidth:_.width*2,overflow:"hidden",whiteSpace:"pre-wrap"}]}},k6=Ze(v6,C6,void 0,{scope:"ChoiceGroupOption"}),M6=Je(),j6=(function(o){Ne(s,o);function s(n){var t=o.call(this,n)||this;t._focusCallbacks={},t._changeCallbacks={},t._onBlur=function(h,g){t.setState({keyFocused:void 0})},St(t);var i=n.defaultSelectedKey,d=n.options,c=d===void 0?[]:d,u=!Yv(n)&&i!==void 0&&c.some(function(h){return h.key===i});return t.state={keyChecked:u?i:t._getKeyChecked(n)},t._id=zt("ChoiceGroup"),t._labelId=zt("ChoiceGroupLabel"),t}return Object.defineProperty(s.prototype,"checkedOption",{get:function(){var n=this,t=this.props.options,i=t===void 0?[]:t;return Qw(i,function(d){return d.key===n.state.keyChecked})},enumerable:!0,configurable:!0}),s.prototype.componentDidUpdate=function(n,t){if(n!==this.props){var i=this._getKeyChecked(this.props),d=this._getKeyChecked(n);i!==d&&this.setState({keyChecked:i})}},s.prototype.render=function(){var n=this,t=this.props,i=t.className,d=t.theme,c=t.styles,u=t.options,h=u===void 0?[]:u,g=t.label,w=t.required,m=t.disabled,x=t.name,_=this.state,v=_.keyChecked,b=_.keyFocused,C=pt(this.props,Yn,["onChange","className","required"]),k=M6(c,{theme:d,className:i,optionsContainIconOrImage:h.some(function(N){return!!(N.iconProps||N.imageSrc)})}),L=this._id+"-label",T=this.props.ariaLabelledBy||(g?L:this.props["aria-labelledby"]);return M.createElement("div",F({className:k.applicationRole},C),M.createElement("div",F({className:k.root,role:"radiogroup"},T&&{"aria-labelledby":T}),g&&M.createElement(fd,{className:k.label,required:w,id:L,disabled:m},g),M.createElement("div",{className:k.flexContainer},h.map(function(N){var Y=F(F({},N),{focused:N.key===b,checked:N.key===v,disabled:N.disabled||m,id:n._getOptionId(N),labelId:n._getOptionLabelId(N),name:x||n._id,required:w});return M.createElement(k6,F({key:N.key,onBlur:n._onBlur,onFocus:n._onFocus(N.key),onChange:n._onChange(N.key)},Y))}))))},s.prototype.focus=function(){var n=this.props.options,t=n===void 0?[]:n,i=this.checkedOption||t.filter(function(c){return!c.disabled})[0],d=i&&document.getElementById(this._getOptionId(i));d&&(d.focus(),dd(!0,d))},s.prototype._onFocus=function(n){var t=this;return this._focusCallbacks[n]||(this._focusCallbacks[n]=function(i,d){t.setState({keyFocused:n})}),this._focusCallbacks[n]},s.prototype._onChange=function(n){var t=this;return this._changeCallbacks[n]||(this._changeCallbacks[n]=function(i,d){var c=t.props,u=c.onChanged,h=c.onChange;Yv(t.props)||t.setState({keyChecked:n});var g=Qw(t.props.options||[],function(w){return w.key===n});h?h(i,g):u&&u(g,i)}),this._changeCallbacks[n]},s.prototype._getKeyChecked=function(n){if(n.selectedKey!==void 0)return n.selectedKey;var t=n.options,i=t===void 0?[]:t,d=i.filter(function(c){return c.checked});return d[0]&&d[0].key},s.prototype._getOptionId=function(n){return n.id||this._id+"-"+n.key},s.prototype._getOptionLabelId=function(n){return n.labelId||this._labelId+"-"+n.key},s})(M.Component);function Yv(o){return G0(o,"selectedKey")}var L6={root:"ms-ChoiceFieldGroup",flexContainer:"ms-ChoiceFieldGroup-flexContainer"},E6=function(o){var s=o.className,n=o.optionsContainIconOrImage,t=o.theme,i=it(L6,t);return{applicationRole:s,root:[i.root,t.fonts.medium,{display:"block"}],flexContainer:[i.flexContainer,n&&{display:"flex",flexDirection:"row",flexWrap:"wrap"}]}},_g=Ze(j6,E6,void 0,{scope:"ChoiceGroup"}),od=32,My=32,D6=Et(function(){return yn({"0%":{transform:"translate(0, 0)",animationTimingFunction:"linear"},"78.57%":{transform:"translate(0, 0)",animationTimingFunction:"cubic-bezier(0.62, 0, 0.56, 1)"},"82.14%":{transform:"translate(0, -5px)",animationTimingFunction:"cubic-bezier(0.58, 0, 0, 1)"},"84.88%":{transform:"translate(0, 9px)",animationTimingFunction:"cubic-bezier(1, 0, 0.56, 1)"},"88.1%":{transform:"translate(0, -2px)",animationTimingFunction:"cubic-bezier(0.58, 0, 0.67, 1)"},"90.12%":{transform:"translate(0, 0)",animationTimingFunction:"linear"},"100%":{transform:"translate(0, 0)"}})}),I6=Et(function(){return yn({"0%":{transform:" scale(0)",animationTimingFunction:"linear"},"14.29%":{transform:"scale(0)",animationTimingFunction:"cubic-bezier(0.84, 0, 0.52, 0.99)"},"16.67%":{transform:"scale(1.15)",animationTimingFunction:"cubic-bezier(0.48, -0.01, 0.52, 1.01)"},"19.05%":{transform:"scale(0.95)",animationTimingFunction:"cubic-bezier(0.48, 0.02, 0.52, 0.98)"},"21.43%":{transform:"scale(1)",animationTimingFunction:"linear"},"42.86%":{transform:"scale(1)",animationTimingFunction:"cubic-bezier(0.48, -0.02, 0.52, 1.02)"},"45.71%":{transform:"scale(0.8)",animationTimingFunction:"cubic-bezier(0.48, 0.01, 0.52, 0.99)"},"50%":{transform:"scale(1)",animationTimingFunction:"linear"},"90.12%":{transform:"scale(1)",animationTimingFunction:"cubic-bezier(0.48, -0.02, 0.52, 1.02)"},"92.98%":{transform:"scale(0.8)",animationTimingFunction:"cubic-bezier(0.48, 0.01, 0.52, 0.99)"},"97.26%":{transform:"scale(1)",animationTimingFunction:"linear"},"100%":{transform:"scale(1)"}})}),T6=Et(function(){return yn({"0%":{transform:"rotate(0deg)",animationTimingFunction:"linear"},"83.33%":{transform:" rotate(0deg)",animationTimingFunction:"cubic-bezier(0.33, 0, 0.67, 1)"},"83.93%":{transform:"rotate(15deg)",animationTimingFunction:"cubic-bezier(0.33, 0, 0.67, 1)"},"84.52%":{transform:"rotate(-15deg)",animationTimingFunction:"cubic-bezier(0.33, 0, 0.67, 1)"},"85.12%":{transform:"rotate(15deg)",animationTimingFunction:"cubic-bezier(0.33, 0, 0.67, 1)"},"85.71%":{transform:"rotate(-15deg)",animationTimingFunction:"cubic-bezier(0.33, 0, 0.67, 1)"},"86.31%":{transform:"rotate(0deg)",animationTimingFunction:"linear"},"100%":{transform:"rotate(0deg)"}})});function A6(o){var s,n=o.theme,t=o.className,i=o.color,d=o.beaconColorOne,c=o.beaconColorTwo,u=o.delayBeforeCoachmarkAnimation,h=o.isCollapsed,g=o.isBeaconAnimating,w=o.isMeasuring,m=o.isMeasured,x=o.entityHostHeight,_=o.entityHostWidth,v=o.transformOrigin;if(!n)throw new Error("theme is undefined or null in base Dropdown getStyles function.");var b="35px",C="150px",k="10px",L=_v.continuousPulseAnimationDouble(d||n.palette.themePrimary,c||n.palette.themeTertiary,b,C,k),T=_v.createDefaultAnimation(L,u);return{root:[n.fonts.medium,{position:"relative"},t],pulsingBeacon:[{position:"absolute",top:"50%",left:"50%",transform:Tt(n)?"translate(50%, -50%)":"translate(-50%, -50%)",width:"0px",height:"0px",borderRadius:"225px",borderStyle:"solid",opacity:"0"},h&&g&&T],translateAnimationContainer:[{width:"100%",height:"100%"},h&&{animationDuration:"14s",animationTimingFunction:"linear",animationDirection:"normal",animationIterationCount:"1",animationDelay:"0s",animationFillMode:"forwards",animationName:D6(),transition:"opacity 0.5s ease-in-out"},!h&&{opacity:"1"}],scaleAnimationLayer:[{width:"100%",height:"100%"},h&&{animationDuration:"14s",animationTimingFunction:"linear",animationDirection:"normal",animationIterationCount:"1",animationDelay:"0s",animationFillMode:"forwards",animationName:I6()}],rotateAnimationLayer:[{width:"100%",height:"100%"},h&&{animationDuration:"14s",animationTimingFunction:"linear",animationDirection:"normal",animationIterationCount:"1",animationDelay:"0s",animationFillMode:"forwards",animationName:T6()},!h&&{opacity:"1"}],entityHost:[{position:"relative",outline:"none",overflow:"hidden",backgroundColor:i,borderRadius:od,transition:"border-radius 250ms, width 500ms, height 500ms cubic-bezier(0.5, 0, 0, 1)",visibility:"hidden",selectors:(s={},s[_e]={backgroundColor:"Window",border:"2px solid WindowText"},s["."+fn+" &:focus"]={outline:"1px solid "+n.palette.themeTertiary},s)},!w&&{width:od,height:My,visibility:"visible"},!h&&{borderRadius:"1px",opacity:"1",width:_,height:x}],entityInnerHost:[{transition:"transform 500ms cubic-bezier(0.5, 0, 0, 1)",transformOrigin:v,transform:"scale(0)"},!h&&{width:_,height:x,transform:"scale(1)"},!w&&{visibility:"visible"}],childrenContainer:[{display:m&&h?"none":"block"}],ariaContainer:{position:"fixed",opacity:0,height:0,width:0,pointerEvents:"none"}}}var P6=Et(function(){var o;return tl({root:[{position:"absolute",boxSizing:"border-box",border:"1px solid ${}",selectors:(o={},o[_e]={border:"1px solid WindowText"},o)},Jy()],container:{position:"relative"},main:{backgroundColor:"#ffffff",overflowX:"hidden",overflowY:"hidden",position:"relative"},overFlowYHidden:{overflowY:"hidden"}})}),Dc,R6={opacity:0},F6=1,N6=(Dc={},Dc[De.top]="slideUpIn20",Dc[De.bottom]="slideDownIn20",Dc[De.left]="slideLeftIn20",Dc[De.right]="slideRightIn20",Dc),O6=(function(o){Ne(s,o);function s(n){var t=o.call(this,n)||this;return t._positionedHost=M.createRef(),t._contentHost=M.createRef(),t.dismiss=function(i){t.onResize(i)},t.onResize=function(i){var d=t.props.onDismiss;d?d(i):t._updateAsyncPosition()},t._setInitialFocus=function(){t._contentHost.current&&t.props.setInitialFocus&&!t._didSetInitialFocus&&t.state.positions&&(t._didSetInitialFocus=!0,sg(t._contentHost.current))},t._onComponentDidMount=function(){t._async.setTimeout(function(){t._events.on(t._targetWindow,"scroll",t._async.throttle(t._dismissOnScroll,10),!0),t._events.on(t._targetWindow,"resize",t._async.throttle(t.onResize,10),!0),t._events.on(t._targetWindow.document.body,"focus",t._dismissOnLostFocus,!0),t._events.on(t._targetWindow.document.body,"click",t._dismissOnLostFocus,!0)},0),t.props.onLayerMounted&&t.props.onLayerMounted(),t._updateAsyncPosition(),t._setHeightOffsetEveryFrame()},St(t),t._async=new Wn(t),t._events=new Yt(t),t._didSetInitialFocus=!1,t.state={positions:void 0,heightOffset:0},t._positionAttempts=0,t}return s.prototype.UNSAFE_componentWillMount=function(){this._setTargetWindowAndElement(this._getTarget())},s.prototype.componentDidMount=function(){this._onComponentDidMount()},s.prototype.componentDidUpdate=function(){this._setInitialFocus(),this._updateAsyncPosition()},s.prototype.UNSAFE_componentWillUpdate=function(n){var t=this._getTarget(n),i=this._getTarget();(t!==i||typeof t=="string"||t instanceof String)&&(this._maxHeight=void 0,this._setTargetWindowAndElement(t)),n.offsetFromTarget!==this.props.offsetFromTarget&&(this._maxHeight=void 0),n.finalHeight!==this.props.finalHeight&&this._setHeightOffsetEveryFrame()},s.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},s.prototype.render=function(){if(!this._targetWindow)return null;var n=this.props,t=n.className,i=n.positioningContainerWidth,d=n.positioningContainerMaxHeight,c=n.children,u=this.state.positions,h=P6(),g=u&&u.targetEdge?qr[N6[u.targetEdge]]:"",w=this._getMaxHeight()+this.state.heightOffset,m=d&&d>w?w:d,x=M.createElement("div",{ref:this._positionedHost,className:on("ms-PositioningContainer",h.container)},M.createElement("div",{className:Bs("ms-PositioningContainer-layerHost",h.root,t,g,!!i&&{width:i}),style:u?u.elementPosition:R6,tabIndex:-1,ref:this._contentHost},c,m));return this.props.doNotLayer?x:M.createElement(vd,null,x)},s.prototype._dismissOnScroll=function(n){var t=this.props.preventDismissOnScroll;this.state.positions&&!t&&this._dismissOnLostFocus(n)},s.prototype._dismissOnLostFocus=function(n){var t=n.target,i=this._positionedHost.current&&!un(this._positionedHost.current,t);(!this._target&&i||n.target!==this._targetWindow&&i&&(this._target.stopPropagation||!this._target||t!==this._target&&!un(this._target,t)))&&this.onResize(n)},s.prototype._updateAsyncPosition=function(){var n=this;this._async.requestAnimationFrame(function(){return n._updatePosition()})},s.prototype._updatePosition=function(){var n=this.state.positions,t=this.props,i=t.offsetFromTarget,d=t.onPositioned,c=this._positionedHost.current,u=this._contentHost.current;if(c&&u){var h=F({},this.props);if(h.bounds=this._getBounds(),h.target=this._target,document.body.contains(h.target)){h.gapSpace=i;var g=sj(h,c,u);!n&&g||n&&g&&!this._arePositionsEqual(n,g)&&this._positionAttempts<5?(this._positionAttempts++,this.setState({positions:g},function(){d&&d(g)})):(this._positionAttempts=0,d&&d(g))}else n!==void 0&&this.setState({positions:void 0})}},s.prototype._getBounds=function(){if(!this._positioningBounds){var n=this.props.bounds;n||(n={top:0+this.props.minPagePadding,left:0+this.props.minPagePadding,right:this._targetWindow.innerWidth-this.props.minPagePadding,bottom:this._targetWindow.innerHeight-this.props.minPagePadding,width:this._targetWindow.innerWidth-this.props.minPagePadding*2,height:this._targetWindow.innerHeight-this.props.minPagePadding*2}),this._positioningBounds=n}return this._positioningBounds},s.prototype._getMaxHeight=function(){var n=this.props,t=n.directionalHintFixed,i=n.offsetFromTarget,d=n.directionalHint;if(!this._maxHeight)if(t&&this._target){var c=i||0;this._maxHeight=_b(this._target,d,c,this._getBounds())}else this._maxHeight=this._getBounds().height-F6*2;return this._maxHeight},s.prototype._arePositionsEqual=function(n,t){return this._comparePositions(n.elementPosition,t.elementPosition)},s.prototype._comparePositions=function(n,t){for(var i in t)if(t.hasOwnProperty(i)){var d=n[i],c=t[i];if(d&&c&&d.toFixed(2)!==c.toFixed(2))return!1}return!0},s.prototype._setTargetWindowAndElement=function(n){var t=this._positionedHost.current;if(n)if(typeof n=="string"){var i=_n();this._target=i?i.querySelector(n):null,this._targetWindow=nt(t)}else if(n.stopPropagation)this._targetWindow=nt(n.target),this._target=n;else if((n.left!==void 0||n.x!==void 0)&&(n.top!==void 0||n.y!==void 0))this._targetWindow=nt(t),this._target=n;else{var d=n;this._targetWindow=nt(d),this._target=n}else this._targetWindow=nt(t)},s.prototype._setHeightOffsetEveryFrame=function(){var n=this;this._contentHost&&this.props.finalHeight&&(this._setHeightOffsetTimer=this._async.requestAnimationFrame(function(){if(n._contentHost.current){var t=n._contentHost.current.lastChild,i=t.scrollHeight,d=t.offsetHeight,c=i-d;n.setState({heightOffset:n.state.heightOffset+c}),t.offsetHeight<n.props.finalHeight?n._setHeightOffsetEveryFrame():n._async.cancelAnimationFrame(n._setHeightOffsetTimer)}}))},s.prototype._getTarget=function(n){n===void 0&&(n=this.props);var t=n.target;return t},s.defaultProps={preventDismissOnScroll:!1,offsetFromTarget:0,minPagePadding:8,directionalHint:Ot.bottomAutoEdge},s})(M.Component);function Y6(o){var s;return{root:[{position:"absolute",boxShadow:"inherit",border:"none",boxSizing:"border-box",transform:o.transform,width:o.width,height:o.height,left:o.left,top:o.top,right:o.right,bottom:o.bottom}],beak:{fill:o.color,display:"block",selectors:(s={},s[_e]={fill:"windowtext"},s)}}}var Fs=10,lo=18,W6=(function(o){Ne(s,o);function s(n){var t=o.call(this,n)||this;return St(t),t}return s.prototype.render=function(){var n=this.props,t=n.left,i=n.top,d=n.bottom,c=n.right,u=n.color,h=n.direction,g=h===void 0?De.top:h,w,m;g===De.top||g===De.bottom?(w=Fs,m=lo):(w=lo,m=Fs);var x,_,v,b;switch(g){case De.top:default:x=lo/2+", 0",_=lo+", "+Fs,v="0, "+Fs,b="translateY(-100%)";break;case De.right:x="0, 0",_=Fs+", "+Fs,v="0, "+lo,b="translateX(100%)";break;case De.bottom:x="0, 0",_=lo+", 0",v=lo/2+", "+Fs,b="translateY(100%)";break;case De.left:x=Fs+", 0",_="0, "+Fs,v=Fs+", "+lo,b="translateX(-100%)";break}var C=Je(),k=C(Y6,{left:t,top:i,bottom:d,right:c,height:w+"px",width:m+"px",transform:b,color:u});return M.createElement("div",{className:k.root,role:"presentation"},M.createElement("svg",{height:w,width:m,className:k.beak},M.createElement("polygon",{points:x+" "+_+" "+v})))},s})(M.Component),B6=Je(),H6=(function(o){Ne(s,o);function s(n){var t=o.call(this,n)||this;return t._entityHost=M.createRef(),t._entityInnerHostElement=M.createRef(),t._translateAnimationContainer=M.createRef(),t._ariaAlertContainer=M.createRef(),t._childrenContainer=M.createRef(),t._positioningContainer=M.createRef(),t.dismiss=function(i){var d=t.props.onDismiss;d&&d(i)},t._onKeyDown=function(i){(i.altKey&&i.which===ke.c||i.which===ke.enter&&t._translateAnimationContainer.current&&t._translateAnimationContainer.current.contains(i.target))&&t._onFocusHandler()},t._onFocusHandler=function(){t.state.isCollapsed&&t._openCoachmark()},t._onPositioned=function(i){t._async.requestAnimationFrame(function(){t.setState({targetAlignment:i.alignmentEdge,targetPosition:i.targetEdge})})},t._setBeakPosition=function(){var i,d,c,u,h,g,w=t.state.targetAlignment,m="3px";switch(t._beakDirection){case De.top:case De.bottom:w?w===De.left?(i=od/2-lo/2+"px",h="left"):(c=od/2-lo/2+"px",h="right"):(i="calc(50% - "+lo/2+"px)",h="center"),t._beakDirection===De.top?(d=m,g="top"):(u=m,g="bottom");break;case De.left:case De.right:w?w===De.top?(d=od/2-lo/2+"px",g="top"):(u=od/2-lo/2+"px",g="bottom"):(d="calc(50% - "+lo/2+"px)",g="center"),t._beakDirection===De.left?(Tt(t.props.theme)?c=m:i=m,h="left"):(Tt(t.props.theme)?i=m:c=m,h="right");break}t.setState({beakLeft:i,beakRight:c,beakBottom:u,beakTop:d,transformOrigin:h+" "+g})},t._openCoachmark=function(){t.setState({isCollapsed:!1}),t.props.onAnimationOpenStart&&t.props.onAnimationOpenStart(),t._entityInnerHostElement.current&&t._entityInnerHostElement.current.addEventListener("transitionend",function(){t._async.setTimeout(function(){t._entityInnerHostElement.current&&sg(t._entityInnerHostElement.current)},1e3),t.props.onAnimationOpenEnd&&t.props.onAnimationOpenEnd()})},t._async=new Wn(t),t._events=new Yt(t),St(t),t.state={isCollapsed:n.isCollapsed,isBeaconAnimating:!0,isMeasuring:!0,entityInnerHostRect:{width:0,height:0},isMouseInProximity:!1,isMeasured:!1},t}return Object.defineProperty(s.prototype,"_beakDirection",{get:function(){var n=this.state.targetPosition;return n===void 0?De.bottom:lj(n)},enumerable:!0,configurable:!0}),s.prototype.render=function(){var n=this.props,t=n.beaconColorOne,i=n.beaconColorTwo,d=n.children,c=n.target,u=n.color,h=n.positioningContainerProps,g=n.ariaDescribedBy,w=n.ariaDescribedByText,m=n.ariaLabelledBy,x=n.ariaLabelledByText,_=n.ariaAlertText,v=n.delayBeforeCoachmarkAnimation,b=n.styles,C=n.theme,k=n.className,L=n.persistentBeak,T=this.state,N=T.beakLeft,Y=T.beakTop,A=T.beakRight,I=T.beakBottom,R=T.isCollapsed,H=T.isBeaconAnimating,W=T.isMeasuring,K=T.entityInnerHostRect,Z=T.transformOrigin,Q=T.alertText,B=T.isMeasured,P=u;!P&&C&&(P=C.semanticColors.primaryButtonBackground);var X=B6(b,{theme:C,beaconColorOne:t,beaconColorTwo:i,className:k,isCollapsed:R,isBeaconAnimating:H,isMeasuring:W,color:P,transformOrigin:Z,isMeasured:B,entityHostHeight:K.height+"px",entityHostWidth:K.width+"px",width:od+"px",height:My+"px",delayBeforeCoachmarkAnimation:v+"ms"}),$=R?My:K.height;return M.createElement(O6,F({target:c,offsetFromTarget:Fs,componentRef:this._positioningContainer,finalHeight:$,onPositioned:this._onPositioned,bounds:this._getBounds()},h),M.createElement("div",{className:X.root},_&&M.createElement("div",{className:X.ariaContainer,role:"alert",ref:this._ariaAlertContainer,"aria-hidden":!R},Q),M.createElement("div",{className:X.pulsingBeacon}),M.createElement("div",{className:X.translateAnimationContainer,ref:this._translateAnimationContainer},M.createElement("div",{className:X.scaleAnimationLayer},M.createElement("div",{className:X.rotateAnimationLayer},this._positioningContainer.current&&(R||L)&&M.createElement(W6,{left:N,top:Y,right:A,bottom:I,direction:this._beakDirection,color:P}),M.createElement("div",{className:X.entityHost,ref:this._entityHost,tabIndex:-1,"data-is-focusable":!0,role:"dialog","aria-labelledby":m,"aria-describedby":g},R&&[m&&M.createElement("p",{id:m,key:0,className:X.ariaContainer},x),g&&M.createElement("p",{id:g,key:1,className:X.ariaContainer},w)],M.createElement(ru,{isClickableOutsideFocusTrap:!0,forceFocusInsideTrap:!1},M.createElement("div",{className:X.entityInnerHost,ref:this._entityInnerHostElement},M.createElement("div",{className:X.childrenContainer,ref:this._childrenContainer,"aria-hidden":R},d)))))))))},s.prototype.UNSAFE_componentWillReceiveProps=function(n){this.props.isCollapsed&&!n.isCollapsed&&this._openCoachmark()},s.prototype.shouldComponentUpdate=function(n,t){return!xi(n,this.props)||!xi(t,this.state)},s.prototype.componentDidUpdate=function(n,t){(t.targetAlignment!==this.state.targetAlignment||t.targetPosition!==this.state.targetPosition)&&this._setBeakPosition(),n.preventDismissOnLostFocus!==this.props.preventDismissOnLostFocus&&this._addListeners()},s.prototype.componentDidMount=function(){var n=this;this._async.requestAnimationFrame(function(){n._entityInnerHostElement.current&&n.state.entityInnerHostRect.width+n.state.entityInnerHostRect.width===0&&(n.setState({isMeasuring:!1,entityInnerHostRect:{width:n._entityInnerHostElement.current.offsetWidth,height:n._entityInnerHostElement.current.offsetHeight},isMeasured:!0}),n._setBeakPosition(),n.forceUpdate()),n._addListeners(),n._async.setTimeout(function(){n._addProximityHandler(n.props.mouseProximityOffset)},n.props.delayBeforeMouseOpen),n.props.ariaAlertText&&n._async.setTimeout(function(){n.props.ariaAlertText&&n._ariaAlertContainer.current&&n.setState({alertText:n.props.ariaAlertText})},0),n.props.preventFocusOnMount||n._async.setTimeout(function(){n._entityHost.current&&n._entityHost.current.focus()},1e3)})},s.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},s.prototype._addListeners=function(){var n=this.props.preventDismissOnLostFocus,t=_n();this._events.off(),t&&(this._events.on(t,"keydown",this._onKeyDown,!0),n||(this._events.on(t,"click",this._dismissOnLostFocus,!0),this._events.on(t,"focus",this._dismissOnLostFocus,!0)))},s.prototype._dismissOnLostFocus=function(n){var t=n.target,i=this._translateAnimationContainer.current&&!un(this._translateAnimationContainer.current,t),d=this.props.target;i&&t!==d&&!un(d,t)&&this.dismiss(n)},s.prototype._getBounds=function(){var n=this.props,t=n.isPositionForced,i=n.positioningContainerProps;if(t)return i&&(i.directionalHint===Ot.topAutoEdge||i.directionalHint===Ot.bottomAutoEdge)?{left:0,top:-1/0,bottom:1/0,right:window.innerWidth,width:window.innerWidth,height:1/0}:{left:-1/0,top:-1/0,bottom:1/0,right:1/0,width:1/0,height:1/0}},s.prototype._addProximityHandler=function(n){var t=this;n===void 0&&(n=0);var i=[];this._async.setTimeout(function(){t._setTargetElementRect(),t._events.on(window,"resize",function(){i.forEach(function(d){clearInterval(d)}),i.push(t._async.setTimeout(function(){t._setTargetElementRect()},100))})},10),this._events.on(document,"mousemove",function(d){if(t.state.isCollapsed){var c=d.clientY,u=d.clientX;t._setTargetElementRect();var h=t._isInsideElement(u,c,n);h!==t.state.isMouseInProximity&&t._openCoachmark()}t.props.onMouseMove&&t.props.onMouseMove(d)})},s.prototype._setTargetElementRect=function(){this._translateAnimationContainer&&this._translateAnimationContainer.current&&(this._targetElementRect=this._translateAnimationContainer.current.getBoundingClientRect())},s.prototype._isInsideElement=function(n,t,i){return i===void 0&&(i=0),n>this._targetElementRect.left-i&&n<this._targetElementRect.left+this._targetElementRect.width+i&&t>this._targetElementRect.top-i&&t<this._targetElementRect.top+this._targetElementRect.height+i},s.defaultProps={isCollapsed:!0,mouseProximityOffset:10,delayBeforeMouseOpen:3600,delayBeforeCoachmarkAnimation:0,isPositionForced:!0,positioningContainerProps:{directionalHint:Ot.bottomAutoEdge}},s})(M.Component),z6=Ze(H6,A6,void 0,{scope:"Coachmark"}),U6=Je(),V6="",Qm="TextField",G6="RedEye",$6="Hide",K6=(function(o){Ne(s,o);function s(n){var t=o.call(this,n)||this;t._textElement=M.createRef(),t._onFocus=function(c){t.props.onFocus&&t.props.onFocus(c),t.setState({isFocused:!0},function(){t.props.validateOnFocusIn&&t._validate(t.value)})},t._onBlur=function(c){t.props.onBlur&&t.props.onBlur(c),t.setState({isFocused:!1},function(){t.props.validateOnFocusOut&&t._validate(t.value)})},t._onRenderLabel=function(c){var u=c.label,h=c.required,g=t._classNames.subComponentStyles?t._classNames.subComponentStyles.label:void 0;return u?M.createElement(fd,{required:h,htmlFor:t._id,styles:g,disabled:c.disabled,id:t._labelId},c.label):null},t._onRenderDescription=function(c){return c.description?M.createElement("span",{className:t._classNames.description},c.description):null},t._onRevealButtonClick=function(c){t.setState(function(u){return{isRevealingPassword:!u.isRevealingPassword}})},t._onInputChange=function(c){var u=c.target,h=u.value;if(!(h===void 0||h===t._lastChangeValue)){t._lastChangeValue=h,c.persist();var g;t.setState(function(w,m){var x=z_(m,w)||"";return g=h===x,g||t._isControlled?null:{uncontrolledValue:h}},function(){var w=t.props.onChange;!g&&w&&w(c,h)})}},St(t),t._async=new Wn(t),t._fallbackId=zt(Qm),t._descriptionId=zt(Qm+"Description"),t._labelId=zt(Qm+"Label"),t._warnControlledUsage();var i=n.defaultValue,d=i===void 0?V6:i;return typeof d=="number"&&(d=String(d)),t.state={uncontrolledValue:t._isControlled?void 0:d,isFocused:!1,errorMessage:""},t._delayedValidate=t._async.debounce(t._validate,t.props.deferredValidationTime),t._lastValidation=0,t}return Object.defineProperty(s.prototype,"value",{get:function(){return z_(this.props,this.state)},enumerable:!0,configurable:!0}),s.prototype.componentDidMount=function(){this._adjustInputHeight(),this.props.validateOnLoad&&this._validate(this.value)},s.prototype.componentWillUnmount=function(){this._async.dispose()},s.prototype.getSnapshotBeforeUpdate=function(n,t){return{selection:[this.selectionStart,this.selectionEnd]}},s.prototype.componentDidUpdate=function(n,t,i){var d=this.props,c=(i||{}).selection,u=c===void 0?[null,null]:c,h=u[0],g=u[1];!!n.multiline!=!!d.multiline&&t.isFocused&&(this.focus(),h!==null&&g!==null&&h>=0&&g>=0&&this.setSelectionRange(h,g));var w=z_(n,t),m=this.value;w!==m&&(this._warnControlledUsage(n),this.state.errorMessage&&!d.errorMessage&&this.setState({errorMessage:""}),this._adjustInputHeight(),this._lastChangeValue=void 0,Wv(d)&&this._delayedValidate(m))},s.prototype.render=function(){var n=this.props,t=n.borderless,i=n.className,d=n.disabled,c=n.iconProps,u=n.inputClassName,h=n.label,g=n.multiline,w=n.required,m=n.underlined,x=n.prefix,_=n.resizable,v=n.suffix,b=n.theme,C=n.styles,k=n.autoAdjustHeight,L=n.canRevealPassword,T=n.type,N=n.onRenderPrefix,Y=N===void 0?this._onRenderPrefix:N,A=n.onRenderSuffix,I=A===void 0?this._onRenderSuffix:A,R=n.onRenderLabel,H=R===void 0?this._onRenderLabel:R,W=n.onRenderDescription,K=W===void 0?this._onRenderDescription:W,Z=this.state,Q=Z.isFocused,B=Z.isRevealingPassword,P=this._errorMessage,X=!!L&&T==="password"&&q6(),$=this._classNames=U6(C,{theme:b,className:i,disabled:d,focused:Q,required:w,multiline:g,hasLabel:!!h,hasErrorMessage:!!P,borderless:t,resizable:_,hasIcon:!!c,underlined:m,inputClassName:u,autoAdjustHeight:k,hasRevealButton:X});return M.createElement("div",{className:$.root},M.createElement("div",{className:$.wrapper},H(this.props,this._onRenderLabel),M.createElement("div",{className:$.fieldGroup},(x!==void 0||this.props.onRenderPrefix)&&M.createElement("div",{className:$.prefix},Y(this.props,this._onRenderPrefix)),g?this._renderTextArea():this._renderInput(),c&&M.createElement(ze,F({className:$.icon},c)),X&&M.createElement("button",{className:$.revealButton,onClick:this._onRevealButtonClick,type:"button"},M.createElement("span",{className:$.revealSpan},M.createElement(ze,{className:$.revealIcon,iconName:B?$6:G6}))),(v!==void 0||this.props.onRenderSuffix)&&M.createElement("div",{className:$.suffix},I(this.props,this._onRenderSuffix)))),this._isDescriptionAvailable&&M.createElement("span",{id:this._descriptionId},K(this.props,this._onRenderDescription),P&&M.createElement("div",{role:"alert"},M.createElement(og,null,M.createElement("p",{className:$.errorMessage},M.createElement("span",{"data-automation-id":"error-message"},P))))))},s.prototype.focus=function(){this._textElement.current&&this._textElement.current.focus()},s.prototype.blur=function(){this._textElement.current&&this._textElement.current.blur()},s.prototype.select=function(){this._textElement.current&&this._textElement.current.select()},s.prototype.setSelectionStart=function(n){this._textElement.current&&(this._textElement.current.selectionStart=n)},s.prototype.setSelectionEnd=function(n){this._textElement.current&&(this._textElement.current.selectionEnd=n)},Object.defineProperty(s.prototype,"selectionStart",{get:function(){return this._textElement.current?this._textElement.current.selectionStart:-1},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"selectionEnd",{get:function(){return this._textElement.current?this._textElement.current.selectionEnd:-1},enumerable:!0,configurable:!0}),s.prototype.setSelectionRange=function(n,t){this._textElement.current&&this._textElement.current.setSelectionRange(n,t)},s.prototype._warnControlledUsage=function(n){this._id,this.props,this.props.value===null&&!this._hasWarnedNullValue&&(this._hasWarnedNullValue=!0,Wy("Warning: 'value' prop on '"+Qm+"' should not be null. Consider using an empty string to clear the component or undefined to indicate an uncontrolled component."))},Object.defineProperty(s.prototype,"_id",{get:function(){return this.props.id||this._fallbackId},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"_isControlled",{get:function(){return G0(this.props,"value")},enumerable:!0,configurable:!0}),s.prototype._onRenderPrefix=function(n){var t=n.prefix;return M.createElement("span",{style:{paddingBottom:"1px"}},t)},s.prototype._onRenderSuffix=function(n){var t=n.suffix;return M.createElement("span",{style:{paddingBottom:"1px"}},t)},Object.defineProperty(s.prototype,"_errorMessage",{get:function(){var n=this.props.errorMessage,t=n===void 0?this.state.errorMessage:n;return t||""},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"_isDescriptionAvailable",{get:function(){var n=this.props;return!!(n.onRenderDescription||n.description||this._errorMessage)},enumerable:!0,configurable:!0}),s.prototype._renderTextArea=function(){var n=pt(this.props,nb,["defaultValue"]),t=this.props["aria-labelledby"]||(this.props.label?this._labelId:void 0);return M.createElement("textarea",F({id:this._id},n,{ref:this._textElement,value:this.value||"",onInput:this._onInputChange,onChange:this._onInputChange,className:this._classNames.field,"aria-labelledby":t,"aria-describedby":this._isDescriptionAvailable?this._descriptionId:this.props["aria-describedby"],"aria-invalid":!!this._errorMessage,"aria-label":this.props.ariaLabel,readOnly:this.props.readOnly,onFocus:this._onFocus,onBlur:this._onBlur}))},s.prototype._renderInput=function(){var n=F(F({type:this.state.isRevealingPassword?"text":this.props.type||"text",id:this._id},pt(this.props,ah,["defaultValue","type"])),{"aria-labelledby":this.props["aria-labelledby"]||(this.props.label?this._labelId:void 0),ref:this._textElement,value:this.value||"",onInput:this._onInputChange,onChange:this._onInputChange,className:this._classNames.field,"aria-label":this.props.ariaLabel,"aria-describedby":this._isDescriptionAvailable?this._descriptionId:this.props["aria-describedby"],"aria-invalid":!!this._errorMessage,onFocus:this._onFocus,onBlur:this._onBlur}),t=function(d){return M.createElement("input",F({},d))},i=this.props.onRenderInput||t;return i(n,t)},s.prototype._validate=function(n){var t=this;if(!(this._latestValidateValue===n&&Wv(this.props))){this._latestValidateValue=n;var i=this.props.onGetErrorMessage,d=i&&i(n||"");if(d!==void 0)if(typeof d=="string"||!("then"in d))this.setState({errorMessage:d}),this._notifyAfterValidate(n,d);else{var c=++this._lastValidation;d.then(function(u){c===t._lastValidation&&t.setState({errorMessage:u}),t._notifyAfterValidate(n,u)})}else this._notifyAfterValidate(n,"")}},s.prototype._notifyAfterValidate=function(n,t){n===this.value&&this.props.onNotifyValidationResult&&this.props.onNotifyValidationResult(t,n)},s.prototype._adjustInputHeight=function(){if(this._textElement.current&&this.props.autoAdjustHeight&&this.props.multiline){var n=this._textElement.current;n.style.height="",n.style.height=n.scrollHeight+"px"}},s.defaultProps={resizable:!0,deferredValidationTime:200,validateOnLoad:!0,canRevealPassword:!1},s})(M.Component);function z_(o,s){var n=o.value,t=n===void 0?s.uncontrolledValue:n;return typeof t=="number"?String(t):t}function Wv(o){return!(o.validateOnFocusIn||o.validateOnFocusOut)}var ef;function q6(){var o;if(typeof ef!="boolean"){var s=nt();if(!((o=s)===null||o===void 0)&&o.navigator){var n=/Edg/.test(s.navigator.userAgent||"");ef=!(LM()||n)}else ef=!0}return ef}var J6={root:"ms-TextField",description:"ms-TextField-description",errorMessage:"ms-TextField-errorMessage",field:"ms-TextField-field",fieldGroup:"ms-TextField-fieldGroup",prefix:"ms-TextField-prefix",suffix:"ms-TextField-suffix",wrapper:"ms-TextField-wrapper",revealButton:"ms-TextField-reveal",multiline:"ms-TextField--multiline",borderless:"ms-TextField--borderless",underlined:"ms-TextField--underlined",unresizable:"ms-TextField--unresizable",required:"is-required",disabled:"is-disabled",active:"is-active"};function Z6(o){var s=o.underlined,n=o.disabled,t=o.focused,i=o.theme,d=i.palette,c=i.fonts;return function(){var u;return{root:[s&&n&&{color:d.neutralTertiary},s&&{fontSize:c.medium.fontSize,marginRight:8,paddingLeft:12,paddingRight:0,lineHeight:"22px",height:32},s&&t&&{selectors:(u={},u[_e]={height:31},u)}]}}}function X6(o){var s,n,t,i,d,c,u,h,g,w,m,x,_=o.theme,v=o.className,b=o.disabled,C=o.focused,k=o.required,L=o.multiline,T=o.hasLabel,N=o.borderless,Y=o.underlined,A=o.hasIcon,I=o.resizable,R=o.hasErrorMessage,H=o.inputClassName,W=o.autoAdjustHeight,K=o.hasRevealButton,Z=_.semanticColors,Q=_.effects,B=_.fonts,P=it(J6,_),X={background:Z.disabledBackground,color:b?Z.disabledText:Z.inputPlaceholderText,display:"flex",alignItems:"center",padding:"0 10px",lineHeight:1,whiteSpace:"nowrap",flexShrink:0,selectors:(s={},s[_e]={background:"Window",color:b?"GrayText":"WindowText"},s)},$=[B.medium,{color:Z.inputPlaceholderText,opacity:1,selectors:(n={},n[_e]={color:"GrayText"},n)}],ie={color:Z.disabledText,selectors:(t={},t[_e]={color:"GrayText"},t)};return{root:[P.root,B.medium,k&&P.required,b&&P.disabled,C&&P.active,L&&P.multiline,N&&P.borderless,Y&&P.underlined,cd,{position:"relative"},v],wrapper:[P.wrapper,Y&&[{display:"flex",borderBottom:"1px solid "+(R?Z.errorText:Z.inputBorder),width:"100%"},b&&{borderBottomColor:Z.disabledBackground,selectors:(i={},i[_e]=F({borderColor:"GrayText"},bt()),i)},!b&&{selectors:{":hover":{borderBottomColor:R?Z.errorText:Z.inputBorderHovered,selectors:(d={},d[_e]=F({borderBottomColor:"Highlight"},bt()),d)}}},C&&[{position:"relative"},_y(R?Z.errorText:Z.inputFocusBorderAlt,0,"borderBottom")]]],fieldGroup:[P.fieldGroup,cd,{border:"1px solid "+Z.inputBorder,borderRadius:Q.roundedCorner2,background:Z.inputBackground,cursor:"text",height:32,display:"flex",flexDirection:"row",alignItems:"stretch",position:"relative"},L&&{minHeight:"60px",height:"auto",display:"flex"},!C&&!b&&{selectors:{":hover":{borderColor:Z.inputBorderHovered,selectors:(c={},c[_e]=F({borderColor:"Highlight"},bt()),c)}}},C&&!Y&&_y(R?Z.errorText:Z.inputFocusBorderAlt,Q.roundedCorner2),b&&{borderColor:Z.disabledBackground,selectors:(u={},u[_e]=F({borderColor:"GrayText"},bt()),u),cursor:"default"},N&&{border:"none"},N&&C&&{border:"none",selectors:{":after":{border:"none"}}},Y&&{flex:"1 1 0px",border:"none",textAlign:"left"},Y&&b&&{backgroundColor:"transparent"},R&&!Y&&{borderColor:Z.errorText,selectors:{"&:hover":{borderColor:Z.errorText}}},!T&&k&&{selectors:(h={":before":{content:"'*'",color:Z.errorText,position:"absolute",top:-5,right:-10}},h[_e]={selectors:{":before":{color:"WindowText",right:-14}}},h)}],field:[B.medium,P.field,cd,{borderRadius:0,border:"none",background:"none",backgroundColor:"transparent",color:Z.inputText,padding:"0 8px",width:"100%",minWidth:0,textOverflow:"ellipsis",outline:0,selectors:(g={"&:active, &:focus, &:hover":{outline:0},"::-ms-clear":{display:"none"}},g[_e]={background:"Window",color:b?"GrayText":"WindowText"},g)},wy($),L&&!I&&[P.unresizable,{resize:"none"}],L&&{minHeight:"inherit",lineHeight:17,flexGrow:1,paddingTop:6,paddingBottom:6,overflow:"auto",width:"100%"},L&&W&&{overflow:"hidden"},A&&!K&&{paddingRight:24},L&&A&&{paddingRight:40},b&&[{backgroundColor:Z.disabledBackground,color:Z.disabledText,borderColor:Z.disabledBackground},wy(ie)],Y&&{textAlign:"left"},C&&!N&&{selectors:(w={},w[_e]={paddingLeft:11,paddingRight:11},w)},C&&L&&!N&&{selectors:(m={},m[_e]={paddingTop:4},m)},H],icon:[L&&{paddingRight:24,alignItems:"flex-end"},{pointerEvents:"none",position:"absolute",bottom:6,right:8,top:"auto",fontSize:Mr.medium,lineHeight:18},b&&{color:Z.disabledText}],description:[P.description,{color:Z.bodySubtext,fontSize:B.xSmall.fontSize}],errorMessage:[P.errorMessage,qr.slideDownIn20,B.small,{color:Z.errorText,margin:0,paddingTop:5,display:"flex",alignItems:"center"}],prefix:[P.prefix,X],suffix:[P.suffix,X],revealButton:[P.revealButton,"ms-Button","ms-Button--icon",{height:30,width:32,border:"none",padding:"0px 4px",backgroundColor:"transparent",color:Z.link,selectors:{":hover":{outline:0,color:Z.primaryButtonBackgroundHovered,backgroundColor:Z.buttonBackgroundHovered,selectors:(x={},x[_e]={borderColor:"Highlight",color:"Highlight"},x)},":focus":{outline:0}}},A&&{marginRight:28}],revealSpan:{display:"flex",height:"100%",alignItems:"center"},revealIcon:{margin:"0px 4px",pointerEvents:"none",bottom:6,right:8,top:"auto",fontSize:Mr.medium,lineHeight:18},subComponentStyles:{label:Z6(o)}}}var Kp=Ze(K6,X6,void 0,{scope:"TextField"}),Rt;(function(o){o[o.Normal=0]="Normal",o[o.Divider=1]="Divider",o[o.Header=2]="Header"})(Rt||(Rt={}));function Bv(o,s){for(var n=[],t=0,i=s;t<i.length;t++){var d=i[t],c=o[d];c&&n.push(c)}return n}function Q6(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}var eE=function(o){if(o===void 0)return 0;var s=0;return"scrollHeight"in o?s=o.scrollHeight:"document"in o&&(s=o.document.documentElement.scrollHeight),s},Hv=function(o){if(o===void 0)return 0;var s=0;return"scrollTop"in o?s=o.scrollTop:"scrollY"in o&&(s=o.scrollY),Math.ceil(s)},tf=function(o,s){"scrollTop"in o?o.scrollTop=s:"scrollY"in o&&o.scrollTo(o.scrollX,s)},nf={auto:0,top:1,bottom:2,center:3},tE=16,nE=100,rE=500,oE=200,sE=500,zv=10,iE=30,aE=2,lE=2,dE="page-",Uv="spacer-",Vv={top:-1,bottom:-1,left:-1,right:-1,width:0,height:0},Nb=function(o){return o.getBoundingClientRect()},cE=Nb,uE=Nb,qp=(function(o){Ne(s,o);function s(n){var t=o.call(this,n)||this;return t._root=M.createRef(),t._surface=M.createRef(),t._pageRefs={},t._getDerivedStateFromProps=function(i,d){return(i.items!==t.props.items||i.renderCount!==t.props.renderCount||i.startIndex!==t.props.startIndex||i.version!==t.props.version||!d.hasMounted)&&Q6()?(t._resetRequiredWindows(),t._requiredRect=null,t._measureVersion++,t._invalidatePageCache(),t._updatePages(i,d)):d},t._onRenderRoot=function(i){var d=i.rootRef,c=i.surfaceElement,u=i.divProps;return M.createElement("div",F({ref:d},u),c)},t._onRenderSurface=function(i){var d=i.surfaceRef,c=i.pageElements,u=i.divProps;return M.createElement("div",F({ref:d},u),c)},t._onRenderPage=function(i,d){for(var c,u,h=t.props,g=h.onRenderCell,w=h.onRenderCellConditional,m=h.role,x=i.page,_=x.items,v=_===void 0?[]:_,b=x.startIndex,C=mo(i,["page"]),k=m===void 0?"listitem":"presentation",L=[],T=0;T<v.length;T++){var N=b+T,Y=v[T],A=t.props.getKey?t.props.getKey(Y,N):Y&&Y.key;A==null&&(A=N);var I=w??g,R=(u=(c=I)===null||c===void 0?void 0:c(Y,N,t.props.ignoreScrollingState?void 0:t.state.isScrolling),u??null);(!w||R)&&L.push(M.createElement("div",{role:k,className:"ms-List-cell",key:A,"data-list-index":N,"data-automationid":"ListCell"},R))}return M.createElement("div",F({},C),L)},St(t),t.state={pages:[],isScrolling:!1,getDerivedStateFromProps:t._getDerivedStateFromProps,hasMounted:!1},t._async=new Wn(t),t._events=new Yt(t),t._estimatedPageHeight=0,t._totalEstimates=0,t._requiredWindowsAhead=0,t._requiredWindowsBehind=0,t._measureVersion=0,t._onAsyncScroll=t._async.debounce(t._onAsyncScroll,nE,{leading:!1,maxWait:rE}),t._onAsyncIdle=t._async.debounce(t._onAsyncIdle,oE,{leading:!1}),t._onAsyncResize=t._async.debounce(t._onAsyncResize,tE,{leading:!1}),t._onScrollingDone=t._async.debounce(t._onScrollingDone,sE,{leading:!1}),t._cachedPageHeights={},t._estimatedPageHeight=0,t._focusedIndex=-1,t._pageCache={},t}return s.getDerivedStateFromProps=function(n,t){return t.getDerivedStateFromProps(n,t)},Object.defineProperty(s.prototype,"pageRefs",{get:function(){return this._pageRefs},enumerable:!0,configurable:!0}),s.prototype.scrollToIndex=function(n,t,i){i===void 0&&(i=nf.auto);for(var d=this.props.startIndex,c=this._getRenderCount(),u=d+c,h=this._allowedRect,g=0,w=1,m=d;m<u;m+=w){var x=this._getPageSpecification(this.props,m,h),_=x.height;w=x.itemCount;var v=m<=n&&m+w>n;if(v){if(t&&this._scrollElement){for(var b=uE(this._scrollElement),C=Hv(this._scrollElement),k={top:C,bottom:C+b.height},L=n-m,T=0;T<L;++T)g+=t(m+T);var N=g+t(n);switch(i){case nf.top:tf(this._scrollElement,g);return;case nf.bottom:tf(this._scrollElement,N-b.height);return;case nf.center:tf(this._scrollElement,(g+N-b.height)/2);return}var Y=g>=k.top&&N<=k.bottom;if(Y)return;var A=g<k.top,I=N>k.bottom;A||I&&(g=N-b.height)}this._scrollElement&&tf(this._scrollElement,g);return}g+=_}},s.prototype.getStartItemIndexInView=function(n){for(var t=this.state.pages||[],i=0,d=t;i<d.length;i++){var c=d[i],u=!c.isSpacer&&(this._scrollTop||0)>=c.top&&(this._scrollTop||0)<=c.top+c.height;if(u)if(n)for(var g=0,w=c.startIndex;w<c.startIndex+c.itemCount;w++){var h=n(w);if(c.top+g<=this._scrollTop&&this._scrollTop<c.top+g+h)return w;g+=h}else{var h=Math.floor(c.height/c.itemCount);return c.startIndex+Math.floor((this._scrollTop-c.top)/h)}}return 0},s.prototype.componentDidMount=function(){if(this.setState({hasMounted:!0}),this._scrollElement=ih(this._root.current),this._scrollTop=0,!this.props.getPageHeight){var n=this._updatePageMeasurements(this.state.pages);n&&(this._materializedRect=null,this.setState(this._updatePages(this.props,this.state)))}this._measureVersion++,this._events.on(window,"resize",this._onAsyncResize),this._root.current&&this._events.on(this._root.current,"focus",this._onFocus,!0),this._scrollElement&&(this._events.on(this._scrollElement,"scroll",this._onScroll),this._events.on(this._scrollElement,"scroll",this._onAsyncScroll))},s.prototype.componentDidUpdate=function(n,t){var i=this.props,d=this.state;if(this.state.pagesVersion!==t.pagesVersion){if(i.getPageHeight)this._onAsyncIdle();else{var c=this._updatePageMeasurements(d.pages);c?(this._materializedRect=null,this._onAsyncScroll()):this._onAsyncIdle()}i.onPagesUpdated&&i.onPagesUpdated(d.pages)}},s.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose(),delete this._scrollElement},s.prototype.shouldComponentUpdate=function(n,t){var i=this.state.pages,d=t.pages,c=!1;if(!t.isScrolling&&this.state.isScrolling||n.version!==this.props.version||n.className!==this.props.className)return!0;if(n.items===this.props.items&&i.length===d.length)for(var u=0;u<i.length;u++){var h=i[u],g=d[u];if(h.key!==g.key||h.itemCount!==g.itemCount){c=!0;break}}else c=!0;return c},s.prototype.forceUpdate=function(){this._invalidatePageCache(),this._updateRenderRects(this.props,this.state,!0),this.setState(this._updatePages(this.props,this.state)),this._measureVersion++,o.prototype.forceUpdate.call(this)},s.prototype.getTotalListHeight=function(){return this._surfaceRect.height},s.prototype.render=function(){for(var n=this.props,t=n.className,i=n.role,d=i===void 0?"list":i,c=n.onRenderSurface,u=n.onRenderRoot,h=this.state.pages,g=h===void 0?[]:h,w=[],m=pt(this.props,Yn),x=0,_=g;x<_.length;x++){var v=_[x];w.push(this._renderPage(v))}var b=c?Oo(c,this._onRenderSurface):this._onRenderSurface,C=u?Oo(u,this._onRenderRoot):this._onRenderRoot;return C({rootRef:this._root,pages:g,surfaceElement:b({surfaceRef:this._surface,pages:g,pageElements:w,divProps:{role:"presentation",className:"ms-List-surface"}}),divProps:F(F({},m),{className:on("ms-List",t),role:w.length>0?d:void 0,"aria-label":w.length>0?m["aria-label"]:void 0})})},s.prototype._shouldVirtualize=function(n){n===void 0&&(n=this.props);var t=n.onShouldVirtualize;return!t||t(n)},s.prototype._invalidatePageCache=function(){this._pageCache={}},s.prototype._renderPage=function(n){var t=this,i=this.props.usePageCache,d;if(i&&(d=this._pageCache[n.key],d&&d.pageElement))return d.pageElement;var c=this._getPageStyle(n),u=this.props.onRenderPage,h=u===void 0?this._onRenderPage:u,g=h({page:n,className:"ms-List-page",key:n.key,ref:function(w){t._pageRefs[n.key]=w},style:c,role:"presentation"},this._onRenderPage);return i&&n.startIndex===0&&(this._pageCache[n.key]={page:n,pageElement:g}),g},s.prototype._getPageStyle=function(n){var t=this.props.getPageStyle;return F(F({},t?t(n):{}),n.items?{}:{height:n.height})},s.prototype._onFocus=function(n){for(var t=n.target;t!==this._surface.current;){var i=t.getAttribute("data-list-index");if(i){this._focusedIndex=Number(i);break}t=Cn(t)}},s.prototype._onScroll=function(){!this.state.isScrolling&&!this.props.ignoreScrollingState&&this.setState({isScrolling:!0}),this._resetRequiredWindows(),this._onScrollingDone()},s.prototype._resetRequiredWindows=function(){this._requiredWindowsAhead=0,this._requiredWindowsBehind=0},s.prototype._onAsyncScroll=function(){this._updateRenderRects(this.props,this.state),(!this._materializedRect||!pE(this._requiredRect,this._materializedRect))&&this.setState(this._updatePages(this.props,this.state))},s.prototype._onAsyncIdle=function(){var n=this.props,t=n.renderedWindowsAhead,i=n.renderedWindowsBehind,d=this,c=d._requiredWindowsAhead,u=d._requiredWindowsBehind,h=Math.min(t,c+1),g=Math.min(i,u+1);(h!==c||g!==u)&&(this._requiredWindowsAhead=h,this._requiredWindowsBehind=g,this._updateRenderRects(this.props,this.state),this.setState(this._updatePages(this.props,this.state))),(t>h||i>g)&&this._onAsyncIdle()},s.prototype._onScrollingDone=function(){this.props.ignoreScrollingState||this.setState({isScrolling:!1})},s.prototype._onAsyncResize=function(){this.forceUpdate()},s.prototype._updatePages=function(n,t){this._requiredRect||this._updateRenderRects(n,t);var i=this._buildPages(n,t),d=t.pages;return this._notifyPageChanges(d,i.pages,this.props),F(F(F({},t),i),{pagesVersion:{}})},s.prototype._notifyPageChanges=function(n,t,i){var d=i.onPageAdded,c=i.onPageRemoved;if(d||c){for(var u={},h=0,g=n;h<g.length;h++){var w=g[h];w.items&&(u[w.startIndex]=w)}for(var m=0,x=t;m<x.length;m++){var w=x[m];w.items&&(u[w.startIndex]?delete u[w.startIndex]:this._onPageAdded(w))}for(var _ in u)u.hasOwnProperty(_)&&this._onPageRemoved(u[_])}},s.prototype._updatePageMeasurements=function(n){var t=!1;if(!this._shouldVirtualize())return t;for(var i=0;i<n.length;i++){var d=n[i];d.items&&(t=this._measurePage(d)||t)}return t},s.prototype._measurePage=function(n){var t=!1,i=this._pageRefs[n.key],d=this._cachedPageHeights[n.startIndex];if(i&&this._shouldVirtualize()&&(!d||d.measureVersion!==this._measureVersion)){var c={width:i.clientWidth,height:i.clientHeight};(c.height||c.width)&&(t=n.height!==c.height,n.height=c.height,this._cachedPageHeights[n.startIndex]={height:c.height,measureVersion:this._measureVersion},this._estimatedPageHeight=Math.round((this._estimatedPageHeight*this._totalEstimates+c.height)/(this._totalEstimates+1)),this._totalEstimates++)}return t},s.prototype._onPageAdded=function(n){var t=this.props.onPageAdded;t&&t(n)},s.prototype._onPageRemoved=function(n){var t=this.props.onPageRemoved;t&&t(n)},s.prototype._buildPages=function(n,t){var i=n.renderCount,d=n.items,c=n.startIndex,u=n.getPageHeight;i=this._getRenderCount(n);for(var h=F({},Vv),g=[],w=1,m=0,x=null,_=this._focusedIndex,v=c+i,b=this._shouldVirtualize(n),C=this._estimatedPageHeight===0&&!u,k=this._allowedRect,L=function(A){var I=T._getPageSpecification(n,A,k),R=I.height,H=I.data,W=I.key;w=I.itemCount;var K=m+R-1,Z=Hy(t.pages,function(V){return!!V.items&&V.startIndex===A})>-1,Q=!k||K>=k.top&&m<=k.bottom,B=!T._requiredRect||K>=T._requiredRect.top&&m<=T._requiredRect.bottom,P=!C&&(B||Q&&Z)||!b,X=_>=A&&_<A+w,$=A===c;if(P||X||$){x&&(g.push(x),x=null);var ie=Math.min(w,v-A),le=T._createPage(W,d.slice(A,A+ie),A,void 0,void 0,H);le.top=m,le.height=R,T._visibleRect&&T._visibleRect.bottom&&(le.isVisible=K>=T._visibleRect.top&&m<=T._visibleRect.bottom),g.push(le),B&&T._allowedRect&&hE(h,{top:m,bottom:K,left:k.left,right:k.right,width:k.width})}else x||(x=T._createPage(Uv+A,void 0,A,0,void 0,H,!0)),x.height=(x.height||0)+(K-m)+1,x.itemCount+=w;if(m+=K-m+1,C&&b)return"break"},T=this,N=c;N<v;N+=w){var Y=L(N);if(Y==="break")break}return x&&(x.key=Uv+"end",g.push(x)),this._materializedRect=h,F(F({},t),{pages:g,measureVersion:this._measureVersion})},s.prototype._getPageSpecification=function(n,t,i){var d=n.getPageSpecification;if(d){var c=d(t,i),u=c.itemCount,h=u===void 0?this._getItemCountForPage(t,i):u,g=c.height,w=g===void 0?this._getPageHeight(t,i,h):g;return{itemCount:h,height:w,data:c.data,key:c.key}}else{var h=this._getItemCountForPage(t,i);return{itemCount:h,height:this._getPageHeight(t,i,h)}}},s.prototype._getPageHeight=function(n,t,i){if(this.props.getPageHeight)return this.props.getPageHeight(n,t,i);var d=this._cachedPageHeights[n];return d?d.height:this._estimatedPageHeight||iE},s.prototype._getItemCountForPage=function(n,t){var i=this.props.getItemCountForPage?this.props.getItemCountForPage(n,t):zv;return i||zv},s.prototype._createPage=function(n,t,i,d,c,u,h){i===void 0&&(i=-1),d===void 0&&(d=t?t.length:0),c===void 0&&(c={}),n=n||dE+i;var g=this._pageCache[n];return g&&g.page?g.page:{key:n,startIndex:i,itemCount:d,items:t,style:c,top:0,height:0,data:u,isSpacer:h||!1}},s.prototype._getRenderCount=function(n){var t=n||this.props,i=t.items,d=t.startIndex,c=t.renderCount;return c===void 0?i?i.length-d:0:c},s.prototype._updateRenderRects=function(n,t,i){var d=n.renderedWindowsAhead,c=n.renderedWindowsBehind,u=t.pages;if(this._shouldVirtualize(n)){var h=this._surfaceRect||F({},Vv),g=eE(this._scrollElement),w=Hv(this._scrollElement);this._surface.current&&(i||!u||!this._surfaceRect||!g||g!==this._scrollHeight||Math.abs(this._scrollTop-w)>this._estimatedPageHeight/3)&&(h=this._surfaceRect=cE(this._surface.current),this._scrollTop=w),(i||!g||g!==this._scrollHeight)&&this._measureVersion++,this._scrollHeight=g||0;var m=Math.max(0,-h.top),x=nt(this._root.current),_={top:m,left:h.left,bottom:m+x.innerHeight,right:h.right,width:h.width,height:x.innerHeight};this._requiredRect=Gv(_,this._requiredWindowsBehind,this._requiredWindowsAhead),this._allowedRect=Gv(_,c,d),this._visibleRect=_}},s.defaultProps={startIndex:0,onRenderCell:function(n,t,i){return M.createElement(M.Fragment,null,n&&n.name||"")},onRenderCellConditional:void 0,renderedWindowsAhead:lE,renderedWindowsBehind:aE},s})(M.Component);function Gv(o,s,n){var t=o.top-s*o.height,i=o.height+(s+n)*o.height;return{top:t,bottom:t+i,height:i,left:o.left,right:o.right,width:o.width}}function pE(o,s){return o.top>=s.top&&o.left>=s.left&&o.bottom<=s.bottom&&o.right<=s.right}function hE(o,s){return o.top=s.top<o.top||o.top===-1?s.top:o.top,o.left=s.left<o.left||o.left===-1?s.left:o.left,o.bottom=s.bottom>o.bottom||o.bottom===-1?s.bottom:o.bottom,o.right=s.right>o.right||o.right===-1?s.right:o.right,o.width=o.right-o.left+1,o.height=o.bottom-o.top+1,o}var mE=Je(),fE=(function(o){Ne(s,o);function s(n){var t=o.call(this,n)||this;return t._focusZone=M.createRef(),t._persistedKeytips={},t._keytipManager=vb.getInstance(),t._divContainer=M.createRef(),t._onRenderItems=function(i){return i.map(function(d,c){return M.createElement("div",{key:d.key,className:t._classNames.item},t.props.onRenderItem(d))})},t._onRenderOverflowButtonWrapper=function(i){var d={className:t._classNames.overflowButton},c=t.props.keytipSequences,u=[];return c?i.forEach(function(h){var g=h.keytipProps;if(g){var w={content:g.content,keySequences:g.keySequences,disabled:g.disabled||!!(h.disabled||h.isDisabled),hasDynamicChildren:g.hasDynamicChildren,hasMenu:g.hasMenu};g.hasDynamicChildren||t._getSubMenuForItem(h)?w.onExecute=t._keytipManager.menuExecute.bind(t._keytipManager,c,h.keytipProps.keySequences):w.onExecute=g.onExecute,t._persistedKeytips[w.content]=w;var m=F(F({},h),{keytipProps:F(F({},g),{overflowSetSequence:c})});u.push(m)}else u.push(h)}):u=i,M.createElement("div",F({},d),t.props.onRenderOverflowButton(u))},St(t),t}return s.prototype.render=function(){var n=this.props,t=n.items,i=n.overflowItems,d=n.className,c=n.focusZoneProps,u=n.styles,h=n.vertical,g=n.doNotContainWithinFocusZone,w=n.role,m=n.overflowSide,x=m===void 0?"end":m;this._classNames=mE(u,{className:d,vertical:h});var _,v;g?(_="div",v=F(F({},pt(this.props,Yn)),{ref:this._divContainer})):(_=xd,v=F(F(F({},pt(this.props,Yn)),c),{componentRef:this._focusZone,direction:h?kn.vertical:kn.horizontal}));var b=i&&i.length>0;return M.createElement(_,F({role:w||"group","aria-orientation":w==="menubar"?h===!0?"vertical":"horizontal":void 0},v,{className:this._classNames.root}),x==="start"&&b&&this._onRenderOverflowButtonWrapper(i),t&&this._onRenderItems(t),x==="end"&&b&&this._onRenderOverflowButtonWrapper(i))},s.prototype.focus=function(n){var t=!1;return this.props.doNotContainWithinFocusZone?this._divContainer.current&&(t=sg(this._divContainer.current)):this._focusZone.current&&(t=this._focusZone.current.focus(n)),t},s.prototype.focusElement=function(n){var t=!1;return n?(this.props.doNotContainWithinFocusZone?this._divContainer.current&&un(this._divContainer.current,n)&&(n.focus(),t=document.activeElement===n):this._focusZone.current&&(t=this._focusZone.current.focusElement(n)),t):!1},s.prototype.componentDidMount=function(){this._registerPersistedKeytips()},s.prototype.componentWillUnmount=function(){this._unregisterPersistedKeytips()},s.prototype.UNSAFE_componentWillUpdate=function(){this._unregisterPersistedKeytips()},s.prototype.componentDidUpdate=function(){this._registerPersistedKeytips()},s.prototype._registerPersistedKeytips=function(){var n=this;Object.keys(this._persistedKeytips).forEach(function(t){var i=n._persistedKeytips[t],d=n._keytipManager.register(i,!0);n._persistedKeytips[d]=i,delete n._persistedKeytips[t]})},s.prototype._unregisterPersistedKeytips=function(){var n=this;Object.keys(this._persistedKeytips).forEach(function(t){n._keytipManager.unregister(n._persistedKeytips[t],t,!0)}),this._persistedKeytips={}},s.prototype._getSubMenuForItem=function(n){if(this.props.itemSubMenuProvider)return this.props.itemSubMenuProvider(n);if(n.subMenuProps)return n.subMenuProps.items},s})(M.Component),$v={flexShrink:0,display:"inherit"},gE=function(o){var s=o.className,n=o.vertical;return{root:["ms-OverflowSet",{position:"relative",display:"flex",flexWrap:"nowrap"},n&&{flexDirection:"column"},s],item:["ms-OverflowSet-item",$v],overflowButton:["ms-OverflowSet-overflowButton",$v]}},ph=Ze(fE,gE,void 0,{scope:"OverflowSet"}),Kv=500,_E=3;function yE(o){return(function(s){Ne(n,s);function n(t){var i=s.call(this,t)||this;return i._root=M.createRef(),i._registerResizeObserver=function(){var d=nt(i._root.current);i._viewportResizeObserver=new d.ResizeObserver(i._onAsyncResize),i._viewportResizeObserver.observe(i._root.current)},i._unregisterResizeObserver=function(){i._viewportResizeObserver&&(i._viewportResizeObserver.disconnect(),delete i._viewportResizeObserver)},i._updateViewport=function(d){var c=i.state.viewport,u=i._root.current,h=ih(u),g=Zw(h),w=Zw(u),m=function(){d&&i._composedComponentInstance&&i._composedComponentInstance.forceUpdate()},x=(w&&w.width)!==c.width||(g&&g.height)!==c.height;x&&i._resizeAttempts<_E&&w&&g?(i._resizeAttempts++,i.setState({viewport:{width:w.width,height:g.height}},function(){i._updateViewport(d)})):(i._resizeAttempts=0,m())},i._async=new Wn(i),i._events=new Yt(i),i._resizeAttempts=0,i.state={viewport:{width:0,height:0}},i}return n.prototype.componentDidMount=function(){var t=this,i=this.props,d=i.delayFirstMeasure,c=i.disableResizeObserver,u=i.skipViewportMeasures,h=nt(this._root.current);this._onAsyncResize=this._async.debounce(this._onAsyncResize,Kv,{leading:!1}),u||(!c&&this._isResizeObserverAvailable()?this._registerResizeObserver():this._events.on(h,"resize",this._onAsyncResize),d?this._async.setTimeout(function(){t._updateViewport()},Kv):this._updateViewport())},n.prototype.componentDidUpdate=function(t){var i=t.skipViewportMeasures,d=this.props,c=d.disableResizeObserver,u=d.skipViewportMeasures,h=nt(this._root.current);u!==i&&(u?(this._unregisterResizeObserver(),this._events.off(h,"resize",this._onAsyncResize)):(!c&&this._isResizeObserverAvailable()?this._viewportResizeObserver||this._registerResizeObserver():this._events.on(h,"resize",this._onAsyncResize),this._updateViewport()))},n.prototype.componentWillUnmount=function(){this._events.dispose(),this._async.dispose(),this._unregisterResizeObserver()},n.prototype.render=function(){var t=this.state.viewport,i=t.width>0&&t.height>0?t:void 0;return M.createElement("div",{className:"ms-Viewport",ref:this._root,style:{minWidth:1,minHeight:1}},M.createElement(o,F({ref:this._updateComposedComponentRef,viewport:i},this.props)))},n.prototype.forceUpdate=function(){this._updateViewport(!0)},n.prototype._onAsyncResize=function(){this._updateViewport()},n.prototype._isResizeObserverAvailable=function(){var t=nt(this._root.current);return t&&t.ResizeObserver},n})(kb)}var wE="data-selection-disabled",qv="data-selection-index",vE="data-selection-span",kp="data-selection-toggle",rf="data-selection-invoke",xE="data-selection-touch-invoke",Jv="data-selection-all-toggle",bE="data-selection-select",SE=(function(o){Ne(s,o);function s(n){var t=o.call(this,n)||this;t._root=M.createRef(),t.ignoreNextFocus=function(){t._handleNextFocus(!1)},t._onSelectionChange=function(){var c=t.props.selection,u=c.isModal&&c.isModal();t.setState({isModal:u})},t._onMouseDownCapture=function(c){var u=c.target;if(document.activeElement!==u&&!un(document.activeElement,u)){t.ignoreNextFocus();return}if(un(u,t._root.current))for(;u!==t._root.current;){if(t._hasAttribute(u,rf)){t.ignoreNextFocus();break}u=Cn(u)}},t._onFocus=function(c){var u=c.target,h=t.props.selection,g=t._isCtrlPressed||t._isMetaPressed,w=t._getSelectionMode();if(t._shouldHandleFocus&&w!==st.none){var m=t._hasAttribute(u,kp),x=t._findItemRoot(u);if(!m&&x){var _=t._getItemIndex(x),v=t._getItemSpan(x);v===void 0&&(g?(h.setIndexSelected(_,h.isIndexSelected(_),!0),t.props.enterModalOnTouch&&t._isTouch&&h.setModal&&(h.setModal(!0),t._setIsTouch(!1))):t.props.isSelectedOnFocus&&t._onItemSurfaceClick("focus",_))}}t._handleNextFocus(!1)},t._onMouseDown=function(c){t._updateModifiers(c);var u=t.props.toggleWithoutModifierPressed,h=c.target,g=t._findItemRoot(h);if(!t._isSelectionDisabled(h))for(;h!==t._root.current&&!t._hasAttribute(h,Jv);){if(g){if(t._hasAttribute(h,kp))break;if(t._hasAttribute(h,rf))break;if((h===g||t._shouldAutoSelect(h))&&!t._isShiftPressed&&!t._isCtrlPressed&&!t._isMetaPressed&&!u){t._onInvokeMouseDown(c,t._getItemIndex(g),t._getItemSpan(g));break}else if(t.props.disableAutoSelectOnInputElements&&(h.tagName==="A"||h.tagName==="BUTTON"||h.tagName==="INPUT"))return}h=Cn(h)}},t._onTouchStartCapture=function(c){t._setIsTouch(!0)},t._onClick=function(c){var u=t.props.enableTouchInvocationTarget,h=u===void 0?!1:u;t._updateModifiers(c);for(var g=c.target,w=t._findItemRoot(g),m=t._isSelectionDisabled(g);g!==t._root.current;){if(t._hasAttribute(g,Jv)){m||t._onToggleAllClick(c);break}else if(w){var x=t._getItemIndex(w),_=t._getItemSpan(w);if(t._hasAttribute(g,kp)){m||(t._isShiftPressed?t._onItemSurfaceClick("click",x,_):t._onToggleClick(c,x,_));break}else if(t._isTouch&&h&&t._hasAttribute(g,xE)||t._hasAttribute(g,rf)){_===void 0&&t._onInvokeClick(c,x);break}else if(g===w){m||t._onItemSurfaceClick("click",x,_);break}else if(g.tagName==="A"||g.tagName==="BUTTON"||g.tagName==="INPUT")return}g=Cn(g)}},t._onContextMenu=function(c){var u=c.target,h=t.props,g=h.onItemContextMenu,w=h.selection;if(g){var m=t._findItemRoot(u);if(m){var x=t._getItemIndex(m);t._onInvokeMouseDown(c,x);var _=g(w.getItems()[x],x,c.nativeEvent);_||c.preventDefault()}}},t._onDoubleClick=function(c){var u=c.target,h=t.props.onItemInvoked,g=t._findItemRoot(u);if(g&&h&&!t._isInputElement(u)){for(var w=t._getItemIndex(g);u!==t._root.current&&!(t._hasAttribute(u,kp)||t._hasAttribute(u,rf));){if(u===g){t._onInvokeClick(c,w);break}u=Cn(u)}u=Cn(u)}},t._onKeyDownCapture=function(c){t._updateModifiers(c),t._handleNextFocus(!0)},t._onKeyDown=function(c){t._updateModifiers(c);var u=c.target,h=t._isSelectionDisabled(u),g=t.props,w=g.selection,m=g.selectionClearedOnEscapePress,x=c.which===ke.a&&(t._isCtrlPressed||t._isMetaPressed),_=c.which===ke.escape;if(!t._isInputElement(u)){var v=t._getSelectionMode();if(x&&v===st.multiple&&!w.isAllSelected()){h||w.setAllSelected(!0),c.stopPropagation(),c.preventDefault();return}if(m&&_&&w.getSelectedCount()>0){h||w.setAllSelected(!1),c.stopPropagation(),c.preventDefault();return}var b=t._findItemRoot(u);if(b)for(var C=t._getItemIndex(b),k=t._getItemSpan(b);u!==t._root.current&&!t._hasAttribute(u,kp);){if(t._shouldAutoSelect(u)){!h&&k===void 0&&t._onInvokeMouseDown(c,C,k);break}else{if((c.which===ke.enter||c.which===ke.space)&&(u.tagName==="BUTTON"||u.tagName==="A"||u.tagName==="INPUT"))return!1;if(u===b){if(c.which===ke.enter){k===void 0&&(t._onInvokeClick(c,C),c.preventDefault());return}else if(c.which===ke.space){h||t._onToggleClick(c,C,k),c.preventDefault();return}break}}u=Cn(u)}}},t._events=new Yt(t),t._async=new Wn(t),St(t);var i=t.props.selection,d=i.isModal&&i.isModal();return t.state={isModal:d},t}return s.getDerivedStateFromProps=function(n,t){var i=n.selection.isModal&&n.selection.isModal();return F(F({},t),{isModal:i})},s.prototype.componentDidMount=function(){var n=nt(this._root.current);this._events.on(n,"keydown, keyup",this._updateModifiers,!0),this._events.on(document,"click",this._findScrollParentAndTryClearOnEmptyClick),this._events.on(document.body,"touchstart",this._onTouchStartCapture,!0),this._events.on(document.body,"touchend",this._onTouchStartCapture,!0),this._events.on(this.props.selection,"change",this._onSelectionChange)},s.prototype.render=function(){var n=this.state.isModal;return M.createElement("div",{className:on("ms-SelectionZone",this.props.className,{"ms-SelectionZone--modal":!!n}),ref:this._root,onKeyDown:this._onKeyDown,onMouseDown:this._onMouseDown,onKeyDownCapture:this._onKeyDownCapture,onClick:this._onClick,role:"presentation",onDoubleClick:this._onDoubleClick,onContextMenu:this._onContextMenu,onMouseDownCapture:this._onMouseDownCapture,onFocusCapture:this._onFocus,"data-selection-is-modal":n?!0:void 0},this.props.children,M.createElement(tu,null))},s.prototype.componentDidUpdate=function(n){var t=this.props.selection;t!==n.selection&&(this._events.off(n.selection),this._events.on(t,"change",this._onSelectionChange))},s.prototype.componentWillUnmount=function(){this._events.dispose(),this._async.dispose()},s.prototype._isSelectionDisabled=function(n){if(this._getSelectionMode()===st.none)return!0;for(;n!==this._root.current;){if(this._hasAttribute(n,wE))return!0;n=Cn(n)}return!1},s.prototype._onToggleAllClick=function(n){var t=this.props.selection,i=this._getSelectionMode();i===st.multiple&&(t.toggleAllSelected(),n.stopPropagation(),n.preventDefault())},s.prototype._onToggleClick=function(n,t,i){var d=this.props.selection,c=this._getSelectionMode();if(d.setChangeEvents(!1),this.props.enterModalOnTouch&&this._isTouch&&(i!==void 0?!d.isRangeSelected(t,i):!d.isIndexSelected(t))&&d.setModal&&(d.setModal(!0),this._setIsTouch(!1)),c===st.multiple)i!==void 0?d.toggleRangeSelected(t,i):d.toggleIndexSelected(t);else if(c===st.single){if(i===void 0||i===1){var u=d.isIndexSelected(t),h=d.isModal&&d.isModal();d.setAllSelected(!1),d.setIndexSelected(t,!u,!0),h&&d.setModal&&d.setModal(!0)}}else{d.setChangeEvents(!0);return}d.setChangeEvents(!0),n.stopPropagation()},s.prototype._onInvokeClick=function(n,t){var i=this.props,d=i.selection,c=i.onItemInvoked;c&&(c(d.getItems()[t],t,n.nativeEvent),n.preventDefault(),n.stopPropagation())},s.prototype._onItemSurfaceClick=function(n,t,i){var d,c,u=this.props,h=u.selection,g=u.toggleWithoutModifierPressed,w=this._isCtrlPressed||this._isMetaPressed,m=this._getSelectionMode();m===st.multiple?this._isShiftPressed&&!this._isTabPressed?i!==void 0?(c=(d=h).selectToRange)===null||c===void 0||c.call(d,t,i,!w):h.selectToIndex(t,!w):n==="click"&&(w||g)?i!==void 0?h.toggleRangeSelected(t,i):h.toggleIndexSelected(t):this._clearAndSelectIndex(t,i):m===st.single&&this._clearAndSelectIndex(t,i)},s.prototype._onInvokeMouseDown=function(n,t,i){var d=this.props.selection;if(i!==void 0){if(d.isRangeSelected(t,i))return}else if(d.isIndexSelected(t))return;this._clearAndSelectIndex(t,i)},s.prototype._findScrollParentAndTryClearOnEmptyClick=function(n){var t=ih(this._root.current);this._events.off(document,"click",this._findScrollParentAndTryClearOnEmptyClick),this._events.on(t,"click",this._tryClearOnEmptyClick),(t&&n.target instanceof Node&&t.contains(n.target)||t===n.target)&&this._tryClearOnEmptyClick(n)},s.prototype._tryClearOnEmptyClick=function(n){!this.props.selectionPreservedOnEmptyClick&&this._isNonHandledClick(n.target)&&this.props.selection.setAllSelected(!1)},s.prototype._clearAndSelectIndex=function(n,t){var i,d,c=this.props,u=c.selection,h=c.selectionClearedOnSurfaceClick,g=h===void 0?!0:h,w=(t===void 0||t===1)&&u.getSelectedCount()===1&&u.isIndexSelected(n);if(!w&&g){var m=u.isModal&&u.isModal();u.setChangeEvents(!1),u.setAllSelected(!1),t!==void 0?(d=(i=u).setRangeSelected)===null||d===void 0||d.call(i,n,t,!0,!0):u.setIndexSelected(n,!0,!0),(m||this.props.enterModalOnTouch&&this._isTouch)&&(u.setModal&&u.setModal(!0),this._isTouch&&this._setIsTouch(!1)),u.setChangeEvents(!0)}},s.prototype._updateModifiers=function(n){this._isShiftPressed=n.shiftKey,this._isCtrlPressed=n.ctrlKey,this._isMetaPressed=n.metaKey;var t=n.keyCode;this._isTabPressed=t?t===ke.tab:!1},s.prototype._findItemRoot=function(n){for(var t=this.props.selection;n!==this._root.current;){var i=n.getAttribute(qv),d=Number(i);if(i!==null&&d>=0&&d<t.getItems().length)break;n=Cn(n)}if(n!==this._root.current)return n},s.prototype._getItemIndex=function(n){var t,i=parseInt((t=n.getAttribute(qv),t??""),10);return isNaN(i)?-1:i},s.prototype._getItemSpan=function(n){var t,i=parseInt((t=n.getAttribute(vE),t??""),10);return isNaN(i)?void 0:i},s.prototype._shouldAutoSelect=function(n){return this._hasAttribute(n,bE)},s.prototype._hasAttribute=function(n,t){for(var i=!1;!i&&n!==this._root.current;){var d=n.getAttribute(t);if(d==="false"){i=!1;break}i=d==="true",n=Cn(n)}return i},s.prototype._isInputElement=function(n){return n.tagName==="INPUT"||n.tagName==="TEXTAREA"},s.prototype._isNonHandledClick=function(n){var t=_n();if(t&&n)for(;n&&n!==t.documentElement;){if(Os(n))return!1;n=Cn(n)}return!0},s.prototype._handleNextFocus=function(n){var t=this;this._shouldHandleFocusTimeoutId&&(this._async.clearTimeout(this._shouldHandleFocusTimeoutId),this._shouldHandleFocusTimeoutId=void 0),this._shouldHandleFocus=n,n&&this._async.setTimeout(function(){t._shouldHandleFocus=!1},100)},s.prototype._setIsTouch=function(n){var t=this;this._isTouchTimeoutId&&(this._async.clearTimeout(this._isTouchTimeoutId),this._isTouchTimeoutId=void 0),this._isTouch=!0,n&&this._async.setTimeout(function(){t._isTouch=!1},300)},s.prototype._getSelectionMode=function(){var n=this.props.selection,t=this.props.selectionMode,i=t===void 0?n?n.mode:st.none:t;return i},s.defaultProps={isSelectedOnFocus:!0,toggleWithoutModifierPressed:!1,selectionMode:st.multiple,selectionClearedOnEscapePress:!0},s})(M.Component),Jp;(function(o){o[o.hidden=0]="hidden",o[o.visible=1]="visible"})(Jp||(Jp={}));var Ns;(function(o){o[o.disabled=0]="disabled",o[o.clickable=1]="clickable",o[o.hasDropdown=2]="hasDropdown"})(Ns||(Ns={}));var $f;(function(o){o[o.unconstrained=0]="unconstrained",o[o.horizontalConstrained=1]="horizontalConstrained"})($f||($f={}));var Hc;(function(o){o[o.outside=0]="outside",o[o.surface=1]="surface",o[o.header=2]="header"})(Hc||(Hc={}));var qc;(function(o){o[o.fixedColumns=0]="fixedColumns",o[o.justified=1]="justified"})(qc||(qc={}));var Yo;(function(o){o[o.onHover=0]="onHover",o[o.always=1]="always",o[o.hidden=2]="hidden"})(Yo||(Yo={}));var Zp=36,Jc=function(o){var s=o.count,n=o.indentWidth,t=n===void 0?Zp:n,i=o.role,d=i===void 0?"presentation":i,c=s*t;return s>0?M.createElement("span",{className:"ms-GroupSpacer",style:{display:"inline-block",width:c},role:d}):null},CE={root:"ms-GroupedList",compact:"ms-GroupedList--Compact",group:"ms-GroupedList-group",link:"ms-Link",listCell:"ms-List-cell"},kE={easeInOutSine:"cubic-bezier(0.445, 0.050, 0.550, 0.950)"},ME=function(o){var s,n,t=o.theme,i=o.className,d=o.compact,c=t.palette,u=it(CE,t);return{root:[u.root,t.fonts.small,{position:"relative",selectors:(s={},s["."+u.listCell]={minHeight:38},s)},d&&[u.compact,{selectors:(n={},n["."+u.listCell]={minHeight:32},n)}],i],group:[u.group,{transition:"background-color "+ms.durationValue2+" "+kE.easeInOutSine}],groupIsDropping:{backgroundColor:c.neutralLight}}},jE={root:"ms-DetailsRow",compact:"ms-DetailsList--Compact",cell:"ms-DetailsRow-cell",cellAnimation:"ms-DetailsRow-cellAnimation",cellCheck:"ms-DetailsRow-cellCheck",check:"ms-DetailsRow-check",cellMeasurer:"ms-DetailsRow-cellMeasurer",listCellFirstChild:"ms-List-cell:first-child",isContentUnselectable:"is-contentUnselectable",isSelected:"is-selected",isCheckVisible:"is-check-visible",isRowHeader:"is-row-header",fields:"ms-DetailsRow-fields"},LE="[data-is-focusable='true']",Si={cellLeftPadding:12,cellRightPadding:8,cellExtraRightPadding:24},gd={rowHeight:42,compactRowHeight:32},Oa=F(F({},gd),{rowVerticalPadding:11,compactRowVerticalPadding:6}),EE=function(o){var s,n,t,i,d,c,u,h,g,w,m,x,_=o.theme,v=o.isSelected,b=o.canSelect,C=o.droppingClassName,k=o.anySelected,L=o.isCheckVisible,T=o.checkboxCellClassName,N=o.compact,Y=o.className,A=o.cellStyleProps,I=A===void 0?Si:A,R=o.enableUpdateAnimations,H=o.disabled,W=_.palette,K=_.fonts,Z=W.neutralPrimary,Q=W.white,B=W.neutralSecondary,P=W.neutralLighter,X=W.neutralLight,$=W.neutralDark,ie=W.neutralQuaternaryAlt,le=_.semanticColors.focusBorder,V=it(jE,_),z={defaultHeaderText:Z,defaultMetaText:B,defaultBackground:Q,defaultHoverHeaderText:$,defaultHoverMetaText:Z,defaultHoverBackground:P,selectedHeaderText:$,selectedMetaText:Z,selectedBackground:X,selectedHoverHeaderText:$,selectedHoverMetaText:Z,selectedHoverBackground:ie,focusHeaderText:$,focusMetaText:Z,focusBackground:X,focusHoverBackground:ie},J={top:2,right:2,bottom:2,left:2},ee=[On(_,{inset:-1,borderColor:le,outlineColor:Q,highContrastStyle:J}),V.isSelected,{color:z.selectedMetaText,background:z.selectedBackground,borderBottom:"1px solid "+Q,selectors:(s={"&:before":{position:"absolute",display:"block",top:-1,height:1,bottom:0,left:0,right:0,content:"",borderTop:"1px solid "+Q},"&:hover":{background:z.selectedHoverBackground,color:z.selectedHoverMetaText,selectors:(n={},n["."+V.cell+" "+_e]={color:"HighlightText",selectors:{"> a":{color:"HighlightText"}}},n["."+V.isRowHeader]={color:z.selectedHoverHeaderText,selectors:(t={},t[_e]={color:"HighlightText"},t)},n[_e]={background:"Highlight"},n)},"&:focus":{background:z.focusBackground,selectors:(i={},i["."+V.cell]={color:z.focusMetaText,selectors:(d={},d[_e]={color:"HighlightText",selectors:{"> a":{color:"HighlightText"}}},d)},i["."+V.isRowHeader]={color:z.focusHeaderText,selectors:(c={},c[_e]={color:"HighlightText"},c)},i[_e]={background:"Highlight"},i)}},s[_e]=F(F({background:"Highlight",color:"HighlightText"},bt()),{selectors:{a:{color:"HighlightText"}}}),s["&:focus:hover"]={background:z.focusHoverBackground},s)}],me=[V.isContentUnselectable,{userSelect:"none",cursor:"default"}],te={minHeight:Oa.compactRowHeight,border:0},G={minHeight:Oa.compactRowHeight,paddingTop:Oa.compactRowVerticalPadding,paddingBottom:Oa.compactRowVerticalPadding,paddingLeft:I.cellLeftPadding+"px"},ne=[On(_,{inset:-1}),V.cell,{display:"inline-block",position:"relative",boxSizing:"border-box",minHeight:Oa.rowHeight,verticalAlign:"top",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",paddingTop:Oa.rowVerticalPadding,paddingBottom:Oa.rowVerticalPadding,paddingLeft:I.cellLeftPadding+"px",selectors:(u={"& > button":{maxWidth:"100%"}},u[LE]=On(_,{inset:-1,borderColor:B,outlineColor:Q}),u)},v&&{selectors:(h={},h[_e]=F(F({background:"Highlight",color:"HighlightText"},bt()),{selectors:{a:{color:"HighlightText"}}}),h)},N&&G,H&&{opacity:.5}];return{root:[V.root,qr.fadeIn400,C,_.fonts.small,L&&V.isCheckVisible,On(_,{borderColor:le,outlineColor:Q}),{borderBottom:"1px solid "+P,background:z.defaultBackground,color:z.defaultMetaText,display:"inline-flex",minWidth:"100%",minHeight:Oa.rowHeight,whiteSpace:"nowrap",padding:0,boxSizing:"border-box",verticalAlign:"top",textAlign:"left",selectors:(g={},g["."+V.listCellFirstChild+" &:before"]={display:"none"},g["&:hover"]={background:z.defaultHoverBackground,color:z.defaultHoverMetaText,selectors:(w={},w["."+V.isRowHeader]={color:z.defaultHoverHeaderText},w)},g["&:hover ."+V.check]={opacity:1},g["."+fn+" &:focus ."+V.check]={opacity:1},g)},v&&ee,!b&&me,N&&te,Y],cellUnpadded:{paddingRight:I.cellRightPadding+"px"},cellPadded:{paddingRight:I.cellExtraRightPadding+I.cellRightPadding+"px",selectors:(m={},m["&."+V.cellCheck]={paddingRight:0},m)},cell:ne,cellAnimation:R&&sb.slideLeftIn40,cellMeasurer:[V.cellMeasurer,{overflow:"visible",whiteSpace:"nowrap"}],checkCell:[ne,V.cellCheck,T,{padding:0,paddingTop:1,marginTop:-1,flexShrink:0}],checkCover:{position:"absolute",top:-1,left:0,bottom:0,right:0,display:k?"block":"none"},fields:[V.fields,{display:"flex",alignItems:"stretch"}],isRowHeader:[V.isRowHeader,{color:z.defaultHeaderText,fontSize:K.medium.fontSize},v&&{color:z.selectedHeaderText,fontWeight:Lt.semibold,selectors:(x={},x[_e]={color:"HighlightText"},x)}],isMultiline:[ne,{whiteSpace:"normal",wordBreak:"break-word",textOverflow:"clip"}],check:[V.check]}},Ob={tooltipHost:"ms-TooltipHost",root:"ms-DetailsHeader",cell:"ms-DetailsHeader-cell",cellIsCheck:"ms-DetailsHeader-cellIsCheck",collapseButton:"ms-DetailsHeader-collapseButton",isCollapsed:"is-collapsed",isAllSelected:"is-allSelected",isSelectAllHidden:"is-selectAllHidden",isResizingColumn:"is-resizingColumn",cellSizer:"ms-DetailsHeader-cellSizer",isResizing:"is-resizing",dropHintCircleStyle:"ms-DetailsHeader-dropHintCircleStyle",dropHintCaretStyle:"ms-DetailsHeader-dropHintCaretStyle",dropHintLineStyle:"ms-DetailsHeader-dropHintLineStyle",cellTitle:"ms-DetailsHeader-cellTitle",cellName:"ms-DetailsHeader-cellName",filterChevron:"ms-DetailsHeader-filterChevron",gripperBarVertical:"ms-DetailsColumn-gripperBarVertical",checkTooltip:"ms-DetailsHeader-checkTooltip",check:"ms-DetailsHeader-check"},Fp=42,Yb=function(o){var s=o.theme,n=o.cellStyleProps,t=n===void 0?Si:n,i=s.semanticColors,d=it(Ob,s);return[d.cell,On(s),{color:i.bodyText,position:"relative",display:"inline-block",boxSizing:"border-box",padding:"0 "+t.cellRightPadding+"px 0 "+t.cellLeftPadding+"px",lineHeight:"inherit",margin:"0",height:Fp,verticalAlign:"top",whiteSpace:"nowrap",textOverflow:"ellipsis",textAlign:"left"}]},DE=function(o){var s,n,t,i,d=o.theme,c=o.className,u=o.isAllSelected,h=o.isResizingColumn,g=o.isSizing,w=o.isAllCollapsed,m=o.cellStyleProps,x=m===void 0?Si:m,_=d.semanticColors,v=d.palette,b=d.fonts,C=it(Ob,d),k={iconForegroundColor:_.bodySubtext,headerForegroundColor:_.bodyText,headerBackgroundColor:_.bodyBackground,resizerColor:v.neutralTertiaryAlt},L={opacity:1,transition:"opacity 0.3s linear"},T=Yb(o);return{root:[C.root,b.small,{display:"inline-block",background:k.headerBackgroundColor,position:"relative",minWidth:"100%",verticalAlign:"top",height:Fp,lineHeight:Fp,whiteSpace:"nowrap",boxSizing:"content-box",paddingBottom:"1px",paddingTop:"16px",borderBottom:"1px solid "+_.bodyDivider,cursor:"default",userSelect:"none",selectors:(s={},s["&:hover ."+C.check]={opacity:1},s["& ."+C.tooltipHost+" ."+C.checkTooltip]={display:"block"},s)},u&&C.isAllSelected,h&&C.isResizingColumn,c],check:[C.check,{height:Fp},{selectors:(n={},n["."+fn+" &:focus"]={opacity:1},n)}],cellWrapperPadded:{paddingRight:x.cellExtraRightPadding+x.cellRightPadding},cellIsCheck:[T,C.cellIsCheck,{position:"relative",padding:0,margin:0,display:"inline-flex",alignItems:"center",border:"none"},u&&{opacity:1}],cellIsGroupExpander:[T,{display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:b.small.fontSize,padding:0,border:"none",width:Zp,color:v.neutralSecondary,selectors:{":hover":{backgroundColor:v.neutralLighter},":active":{backgroundColor:v.neutralLight}}}],cellIsActionable:{selectors:{":hover":{color:_.bodyText,background:_.listHeaderBackgroundHovered},":active":{background:_.listHeaderBackgroundPressed}}},cellIsEmpty:{textOverflow:"clip"},cellSizer:[C.cellSizer,Jy(),{display:"inline-block",position:"relative",cursor:"ew-resize",bottom:0,top:0,overflow:"hidden",height:"inherit",background:"transparent",zIndex:1,width:16,selectors:(t={":after":{content:'""',position:"absolute",top:0,bottom:0,width:1,background:k.resizerColor,opacity:0,left:"50%"},":focus:after":L,":hover:after":L},t["&."+C.isResizing+":after"]=[L,{boxShadow:"0 0 5px 0 rgba(0, 0, 0, 0.4)"}],t)}],cellIsResizing:C.isResizing,cellSizerStart:{margin:"0 -8px"},cellSizerEnd:{margin:0,marginLeft:-16},collapseButton:[C.collapseButton,{transformOrigin:"50% 50%",transition:"transform .1s linear"},w?[C.isCollapsed,{transform:"rotate(0deg)"}]:{transform:Tt(d)?"rotate(-90deg)":"rotate(90deg)"}],checkTooltip:C.checkTooltip,sizingOverlay:g&&{position:"absolute",left:0,top:0,right:0,bottom:0,cursor:"ew-resize",background:"rgba(255, 255, 255, 0)",selectors:(i={},i[_e]=F({background:"transparent"},bt()),i)},accessibleLabel:wd,dropHintCircleStyle:[C.dropHintCircleStyle,{display:"inline-block",visibility:"hidden",position:"absolute",bottom:0,height:9,width:9,borderRadius:"50%",marginLeft:-5,top:34,overflow:"visible",zIndex:10,border:"1px solid "+v.themePrimary,background:v.white}],dropHintCaretStyle:[C.dropHintCaretStyle,{display:"none",position:"absolute",top:-28,left:-6.5,fontSize:b.medium.fontSize,color:v.themePrimary,overflow:"visible",zIndex:10}],dropHintLineStyle:[C.dropHintLineStyle,{display:"none",position:"absolute",bottom:0,top:0,overflow:"hidden",height:42,width:1,background:v.themePrimary,zIndex:10}],dropHintStyle:{display:"inline-block",position:"absolute"}}},IE={root:"ms-DetailsRow-check",isDisabled:"ms-DetailsRow-check--isDisabled",isHeader:"ms-DetailsRow-check--isHeader"},Kf=48,TE=function(o){var s=o.theme,n=o.className,t=o.isHeader,i=o.selected,d=o.anySelected,c=o.canSelect,u=o.compact,h=o.isVisible,g=it(IE,s),w=gd.rowHeight,m=gd.compactRowHeight,x=t?Fp:u?m:w,_=h||i||d;return{root:[g.root,n],check:[!c&&g.isDisabled,t&&g.isHeader,On(s),s.fonts.small,Rb.checkHost,{display:"flex",alignItems:"center",justifyContent:"center",cursor:"default",boxSizing:"border-box",verticalAlign:"top",background:"none",backgroundColor:"transparent",border:"none",opacity:_?1:0,height:x,width:Kf,padding:0,margin:0}],isDisabled:[]}},AE={root:"ms-GroupHeader",compact:"ms-GroupHeader--compact",check:"ms-GroupHeader-check",dropIcon:"ms-GroupHeader-dropIcon",expand:"ms-GroupHeader-expand",isCollapsed:"is-collapsed",title:"ms-GroupHeader-title",isSelected:"is-selected",iconTag:"ms-Icon--Tag",group:"ms-GroupedList-group",isDropping:"is-dropping"},of={easeOutCirc:"cubic-bezier(0.075, 0.820, 0.165, 1.000)",easeOutSine:"cubic-bezier(0.390, 0.575, 0.565, 1.000)",easeInBack:"cubic-bezier(0.600, -0.280, 0.735, 0.045)"},PE=48,RE=40,FE=function(o){var s,n,t,i,d,c=o.theme,u=o.className,h=o.selected,g=o.isCollapsed,w=o.compact,m=Si.cellLeftPadding,x=w?RE:PE,_=c.semanticColors,v=c.palette,b=c.fonts,C=it(AE,c),k=[On(c),{cursor:"default",background:"none",backgroundColor:"transparent",border:"none",padding:0}];return{root:[C.root,On(c),c.fonts.medium,{borderBottom:"1px solid "+_.listBackground,cursor:"default",userSelect:"none",selectors:(s={":hover":{background:_.listItemBackgroundHovered,color:_.actionLinkHovered}},s["&:hover ."+C.check]={opacity:1},s["."+fn+" &:focus ."+C.check]={opacity:1},s[":global(."+C.group+"."+C.isDropping+")"]={selectors:(n={},n["& > ."+C.root+" ."+C.dropIcon]={transition:"transform "+ms.durationValue4+" "+of.easeOutCirc+" "+("opacity "+ms.durationValue1+" "+of.easeOutSine),transitionDelay:ms.durationValue3,opacity:1,transform:"rotate(0.2deg) scale(1);"},n["."+C.check]={opacity:0},n)},s)},h&&[C.isSelected,{background:_.listItemBackgroundChecked,selectors:(t={":hover":{background:_.listItemBackgroundCheckedHovered}},t[""+C.check]={opacity:1},t)}],w&&[C.compact,{border:"none"}],u],groupHeaderContainer:[{display:"flex",alignItems:"center",height:x}],headerCount:[{padding:"0px 4px"}],check:[C.check,k,{display:"flex",alignItems:"center",justifyContent:"center",paddingTop:1,marginTop:-1,opacity:0,width:Kf,height:x,selectors:(i={},i["."+fn+" &:focus"]={opacity:1},i)}],expand:[C.expand,k,{display:"flex",alignItems:"center",justifyContent:"center",fontSize:b.small.fontSize,width:Zp,height:x,color:h?v.neutralPrimary:v.neutralSecondary,selectors:{":hover":{backgroundColor:h?v.neutralQuaternary:v.neutralLight},":active":{backgroundColor:h?v.neutralTertiaryAlt:v.neutralQuaternaryAlt}}}],expandIsCollapsed:[g?[C.isCollapsed,{transform:"rotate(0deg)",transformOrigin:"50% 50%",transition:"transform .1s linear"}]:{transform:Tt(c)?"rotate(-90deg)":"rotate(90deg)",transformOrigin:"50% 50%",transition:"transform .1s linear"}],title:[C.title,{paddingLeft:m,fontSize:w?b.medium.fontSize:b.mediumPlus.fontSize,fontWeight:g?Lt.regular:Lt.semibold,cursor:"pointer",outline:0,whiteSpace:"nowrap",textOverflow:"ellipsis"}],dropIcon:[C.dropIcon,{position:"absolute",left:-26,fontSize:Mr.large,color:v.neutralSecondary,transition:"transform "+ms.durationValue2+" "+of.easeInBack+", "+("opacity "+ms.durationValue4+" "+of.easeOutSine),opacity:0,transform:"rotate(0.2deg) scale(0.65)",transformOrigin:"10px 10px",selectors:(d={},d[":global(."+C.iconTag+")"]={position:"absolute"},d)}]}},Te;(function(o){o[o.xSmall=0]="xSmall",o[o.small=1]="small",o[o.medium=2]="medium",o[o.large=3]="large"})(Te||(Te={}));var jy;(function(o){o[o.normal=0]="normal",o[o.large=1]="large"})(jy||(jy={}));var NE=Je(),OE=(function(o){Ne(s,o);function s(){return o!==null&&o.apply(this,arguments)||this}return s.prototype.render=function(){var n=this.props,t=n.type,i=n.size,d=n.ariaLabel,c=n.ariaLive,u=n.styles,h=n.label,g=n.theme,w=n.className,m=n.labelPosition,x=d,_=pt(this.props,Yn,["size"]),v=i;v===void 0&&t!==void 0&&(v=t===jy.large?Te.large:Te.medium);var b=NE(u,{theme:g,size:v,className:w,labelPosition:m});return M.createElement("div",F({},_,{className:b.root}),M.createElement("div",{className:b.circle}),h&&M.createElement("div",{className:b.label},h),x&&M.createElement("div",{role:"status","aria-live":c},M.createElement(og,null,M.createElement("div",{className:b.screenReaderText},x))))},s.defaultProps={size:Te.medium,ariaLive:"polite",labelPosition:"bottom"},s})(M.Component),YE={root:"ms-Spinner",circle:"ms-Spinner-circle",label:"ms-Spinner-label"},WE=Et(function(){return yn({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}})}),BE=function(o){var s,n=o.theme,t=o.size,i=o.className,d=o.labelPosition,c=n.palette,u=it(YE,n);return{root:[u.root,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},d==="top"&&{flexDirection:"column-reverse"},d==="right"&&{flexDirection:"row"},d==="left"&&{flexDirection:"row-reverse"},i],circle:[u.circle,{boxSizing:"border-box",borderRadius:"50%",border:"1.5px solid "+c.themeLight,borderTopColor:c.themePrimary,animationName:WE(),animationDuration:"1.3s",animationIterationCount:"infinite",animationTimingFunction:"cubic-bezier(.53,.21,.29,.67)",selectors:(s={},s[_e]=F({borderTopColor:"Highlight"},bt()),s)},t===Te.xSmall&&["ms-Spinner--xSmall",{width:12,height:12}],t===Te.small&&["ms-Spinner--small",{width:16,height:16}],t===Te.medium&&["ms-Spinner--medium",{width:20,height:20}],t===Te.large&&["ms-Spinner--large",{width:28,height:28}]],label:[u.label,n.fonts.small,{color:c.themePrimary,margin:"8px 0 0",textAlign:"center"},d==="top"&&{margin:"0 0 8px"},d==="right"&&{margin:"0 0 0 8px"},d==="left"&&{margin:"0 8px 0 0"}],screenReaderText:wd}},Oe=Ze(OE,BE,void 0,{scope:"Spinner"}),HE=Je(),zE=(function(o){Ne(s,o);function s(n){var t=o.call(this,n)||this;return t._toggleCollapse=function(){var i=t.props,d=i.group,c=i.onToggleCollapse,u=i.isGroupLoading,h=t.state.isCollapsed,g=!h,w=!g&&u&&u(d);t.setState({isCollapsed:g,isLoadingVisible:w}),c&&c(d)},t._onKeyUp=function(i){var d=t.props,c=d.group,u=d.onGroupHeaderKeyUp;if(u&&u(i,c),!i.defaultPrevented){var h=t.state.isCollapsed&&i.which===Wf(ke.right,t.props.theme),g=!t.state.isCollapsed&&i.which===Wf(ke.left,t.props.theme);(g||h)&&(t._toggleCollapse(),i.stopPropagation(),i.preventDefault())}},t._onToggleClick=function(i){t._toggleCollapse(),i.stopPropagation(),i.preventDefault()},t._onHeaderClick=function(){var i=t.props,d=i.group,c=i.onGroupHeaderClick;c&&c(d)},t._onRenderTitle=function(i){var d=i.group;if(!d)return null;var c=i.onRenderName?Oo(i.onRenderName,t._onRenderName):t._onRenderName;return M.createElement("div",{className:t._classNames.title,id:t._id,onClick:t._onHeaderClick,role:"gridcell","aria-colspan":t.props.ariaColSpan,"data-selection-invoke":!0},c(i))},t._onRenderName=function(i){var d=i.group;return d?M.createElement(M.Fragment,null,M.createElement("span",null,d.name),M.createElement("span",{className:t._classNames.headerCount},"(",d.count,d.hasMoreData&&"+",")")):null},t._id=zt("GroupHeader"),t.state={isCollapsed:t.props.group&&t.props.group.isCollapsed,isLoadingVisible:!1},t}return s.getDerivedStateFromProps=function(n,t){if(n.group){var i=n.group.isCollapsed,d=n.isGroupLoading,c=!i&&d&&d(n.group);return F(F({},t),{isCollapsed:i||!1,isLoadingVisible:c||!1})}return t},s.prototype.render=function(){var n=this.props,t=n.group,i=n.groupLevel,d=i===void 0?0:i,c=n.viewport,u=n.selectionMode,h=n.loadingText,g=n.isSelected,w=g===void 0?!1:g,m=n.selected,x=m===void 0?!1:m,_=n.indentWidth,v=n.onRenderGroupHeaderCheckbox,b=n.isCollapsedGroupSelectVisible,C=b===void 0?!0:b,k=n.expandButtonProps,L=n.expandButtonIcon,T=n.selectAllButtonProps,N=n.theme,Y=n.styles,A=n.className,I=n.compact,R=n.ariaPosInSet,H=n.ariaSetSize,W=n.ariaRowIndex,K=n.useFastIcons,Z=this.props.onRenderTitle?Oo(this.props.onRenderTitle,this._onRenderTitle):this._onRenderTitle,Q=K?this._fastDefaultCheckboxRender:this._defaultCheckboxRender,B=v?Oo(v,Q):Q,P=this.state,X=P.isCollapsed,$=P.isLoadingVisible,ie=u===st.multiple,le=ie&&(C||!(t&&t.isCollapsed)),V=x||w,z=Tt(N);return this._classNames=HE(Y,{theme:N,className:A,selected:V,isCollapsed:X,compact:I}),t?M.createElement("div",{className:this._classNames.root,style:c?{minWidth:c.width}:{},role:"row","aria-setsize":H,"aria-posinset":R,"aria-rowindex":W,"data-is-focusable":!0,onKeyUp:this._onKeyUp,"aria-label":t.ariaLabel,"aria-labelledby":t.ariaLabel?void 0:this._id,"aria-expanded":!this.state.isCollapsed,"aria-selected":ie?V:void 0,"aria-level":d+1,"data-selection-index":t.startIndex,"data-selection-span":t.count},M.createElement("div",{className:this._classNames.groupHeaderContainer,role:"presentation"},le?M.createElement("div",{role:"gridcell"},M.createElement("button",F({"data-is-focusable":!1,type:"button",className:this._classNames.check,role:"checkbox",id:this._id+"-check","aria-checked":V,"aria-labelledby":this._id+"-check "+this._id,"data-selection-toggle":!0},T),B({checked:V,theme:N},B))):u!==st.none&&M.createElement(Jc,{indentWidth:_,count:1}),M.createElement(Jc,{indentWidth:_,count:d}),M.createElement("div",{className:this._classNames.dropIcon,role:"presentation"},M.createElement(ze,{iconName:"Tag"})),M.createElement("div",{role:"gridcell"},M.createElement("button",F({"data-is-focusable":!1,"data-selection-disabled":!0,type:"button",className:this._classNames.expand,onClick:this._onToggleClick,"aria-expanded":!this.state.isCollapsed},k),M.createElement(ze,{className:this._classNames.expandIsCollapsed,iconName:L||(z?"ChevronLeftMed":"ChevronRightMed")}))),Z(this.props),$&&M.createElement(Oe,{label:h}))):null},s.prototype._defaultCheckboxRender=function(n){return M.createElement(gg,{checked:n.checked})},s.prototype._fastDefaultCheckboxRender=function(n){return M.createElement(UE,{theme:n.theme,checked:n.checked})},s.defaultProps={expandButtonProps:{"aria-label":"expand collapse group"}},s})(M.Component),UE=M.memo(function(o){return M.createElement(gg,{theme:o.theme,checked:o.checked,className:o.className,useFastIcons:!0})}),VE=Ze(zE,FE,void 0,{scope:"GroupHeader"}),GE={root:"ms-GroupShowAll",link:"ms-Link"},$E=function(o){var s,n=o.theme,t=n.fonts,i=it(GE,n);return{root:[i.root,{position:"relative",padding:"10px 84px",cursor:"pointer",selectors:(s={},s["."+i.link]={fontSize:t.small.fontSize},s)}]}},KE=Je(),qE=function(o){var s=o.group,n=o.groupLevel,t=o.showAllLinkText,i=t===void 0?"Show All":t,d=o.styles,c=o.theme,u=o.onToggleSummarize,h=KE(d,{theme:c}),g=M.useCallback(function(w){u(s),w.stopPropagation(),w.preventDefault()},[u,s]);return s?M.createElement("div",{className:h.root},M.createElement(Jc,{count:n}),M.createElement(Sb,{onClick:g},i)):null},JE=Ze(qE,$E,void 0,{scope:"GroupShowAll"}),ZE={root:"ms-groupFooter"},XE=function(o){var s=o.theme,n=o.className,t=it(ZE,s);return{root:[s.fonts.medium,t.root,{position:"relative",padding:"5px 38px"},n]}},QE=Je(),e1=function(o){var s=o.group,n=o.groupLevel,t=o.footerText,i=o.indentWidth,d=o.styles,c=o.theme,u=QE(d,{theme:c});return s&&t?M.createElement("div",{className:u.root},M.createElement(Jc,{indentWidth:i,count:n}),t):null},t1=Ze(e1,XE,void 0,{scope:"GroupFooter"}),n1="is-dropping",r1=(function(o){Ne(s,o);function s(n){var t=o.call(this,n)||this;t._root=M.createRef(),t._list=M.createRef(),t._subGroupRefs={},t._droppingClassName="",t._onRenderGroupHeader=function(c){return M.createElement(VE,F({},c))},t._onRenderGroupShowAll=function(c){return M.createElement(JE,F({},c))},t._onRenderGroupFooter=function(c){return M.createElement(t1,F({},c))},t._renderSubGroup=function(c,u){var h=t.props,g=h.dragDropEvents,w=h.dragDropHelper,m=h.eventsToRegister,x=h.getGroupItemLimit,_=h.groupNestingDepth,v=h.groupProps,b=h.items,C=h.headerProps,k=h.showAllProps,L=h.footerProps,T=h.listProps,N=h.onRenderCell,Y=h.selection,A=h.selectionMode,I=h.viewport,R=h.onRenderGroupHeader,H=h.onRenderGroupShowAll,W=h.onRenderGroupFooter,K=h.onShouldVirtualize,Z=h.group,Q=h.compact,B=c.level?c.level+1:_;return!c||c.count>0||v&&v.showEmptyGroups?M.createElement(s,{ref:function(P){return t._subGroupRefs["subGroup_"+u]=P},key:t._getGroupKey(c,u),dragDropEvents:g,dragDropHelper:w,eventsToRegister:m,footerProps:L,getGroupItemLimit:x,group:c,groupIndex:u,groupNestingDepth:B,groupProps:v,headerProps:C,items:b,listProps:T,onRenderCell:N,selection:Y,selectionMode:A,showAllProps:k,viewport:I,onRenderGroupHeader:R,onRenderGroupShowAll:H,onRenderGroupFooter:W,onShouldVirtualize:K,groups:Z?Z.children:[],compact:Q}):null},t._getGroupDragDropOptions=function(){var c=t.props,u=c.group,h=c.groupIndex,g=c.dragDropEvents,w=c.eventsToRegister,m={eventMap:w,selectionIndex:-1,context:{data:u,index:h,isGroup:!0},updateDropState:t._updateDroppingState,canDrag:g.canDrag,canDrop:g.canDrop,onDrop:g.onDrop,onDragStart:g.onDragStart,onDragEnter:g.onDragEnter,onDragLeave:g.onDragLeave,onDragEnd:g.onDragEnd,onDragOver:g.onDragOver};return m},t._updateDroppingState=function(c,u){var h=t.state.isDropping,g=t.props,w=g.dragDropEvents,m=g.group;h!==c&&(h?w&&w.onDragLeave&&w.onDragLeave(m,u):w&&w.onDragEnter&&(t._droppingClassName=w.onDragEnter(m,u)),t.setState({isDropping:c}))};var i=n.selection,d=n.group;return St(t),t._id=zt("GroupedListSection"),t.state={isDropping:!1,isSelected:i&&d?i.isRangeSelected(d.startIndex,d.count):!1},t._events=new Yt(t),t}return s.prototype.componentDidMount=function(){var n=this.props,t=n.dragDropHelper,i=n.selection;t&&this._root.current&&(this._dragDropSubscription=t.subscribe(this._root.current,this._events,this._getGroupDragDropOptions())),i&&this._events.on(i,ig,this._onSelectionChange)},s.prototype.componentWillUnmount=function(){this._events.dispose(),this._dragDropSubscription&&this._dragDropSubscription.dispose()},s.prototype.componentDidUpdate=function(n){(this.props.group!==n.group||this.props.groupIndex!==n.groupIndex||this.props.dragDropHelper!==n.dragDropHelper)&&(this._dragDropSubscription&&(this._dragDropSubscription.dispose(),delete this._dragDropSubscription),this.props.dragDropHelper&&this._root.current&&(this._dragDropSubscription=this.props.dragDropHelper.subscribe(this._root.current,this._events,this._getGroupDragDropOptions())))},s.prototype.render=function(){var n=this.props,t=n.getGroupItemLimit,i=n.group,d=n.groupIndex,c=n.headerProps,u=n.showAllProps,h=n.footerProps,g=n.viewport,w=n.selectionMode,m=n.onRenderGroupHeader,x=m===void 0?this._onRenderGroupHeader:m,_=n.onRenderGroupShowAll,v=_===void 0?this._onRenderGroupShowAll:_,b=n.onRenderGroupFooter,C=b===void 0?this._onRenderGroupFooter:b,k=n.onShouldVirtualize,L=n.groupedListClassNames,T=n.groups,N=n.compact,Y=n.listProps,A=Y===void 0?{}:Y,I=this.state.isSelected,R=i&&t?t(i):1/0,H=i&&!i.children&&!i.isCollapsed&&!i.isShowingAll&&(i.count>R||i.hasMoreData),W=i&&i.children&&i.children.length>0,K=A.version,Z={group:i,groupIndex:d,groupLevel:i?i.level:0,isSelected:I,selected:I,viewport:g,selectionMode:w,groups:T,compact:N},Q={groupedListId:this._id,ariaSetSize:T?T.length:void 0,ariaPosInSet:d!==void 0?d+1:void 0},B=F(F(F({},c),Z),Q),P=F(F({},u),Z),X=F(F({},h),Z),$=!!this.props.dragDropHelper&&this._getGroupDragDropOptions().canDrag(i)&&!!this.props.dragDropEvents.canDragGroups;return M.createElement("div",F({ref:this._root},$&&{draggable:!0},{className:on(L&&L.group,this._getDroppingClassName()),role:"presentation"}),x(B,this._onRenderGroupHeader),i&&i.isCollapsed?null:W?M.createElement(qp,{role:"presentation",ref:this._list,items:i?i.children:[],onRenderCell:this._renderSubGroup,getItemCountForPage:this._returnOne,onShouldVirtualize:k,version:K,id:this._id}):this._onRenderGroup(R),i&&i.isCollapsed?null:H&&v(P,this._onRenderGroupShowAll),C(X,this._onRenderGroupFooter))},s.prototype.forceUpdate=function(){o.prototype.forceUpdate.call(this),this.forceListUpdate()},s.prototype.forceListUpdate=function(){var n=this.props.group;if(this._list.current){if(this._list.current.forceUpdate(),n&&n.children&&n.children.length>0)for(var t=n.children.length,i=0;i<t;i++){var d=this._list.current.pageRefs["subGroup_"+String(i)];d&&d.forceListUpdate()}}else{var d=this._subGroupRefs["subGroup_"+String(0)];d&&d.forceListUpdate()}},s.prototype._onSelectionChange=function(){var n=this.props,t=n.group,i=n.selection;if(i&&t){var d=i.isRangeSelected(t.startIndex,t.count);d!==this.state.isSelected&&this.setState({isSelected:d})}},s.prototype._onRenderGroupCell=function(n,t,i){return function(d,c){return n(t,d,c,i)}},s.prototype._onRenderGroup=function(n){var t,i=this.props,d=i.group,c=i.items,u=i.onRenderCell,h=i.listProps,g=i.groupNestingDepth,w=i.onShouldVirtualize,m=i.groupProps,x=d&&!d.isShowingAll?d.count:c.length,_=d?d.startIndex:0;return M.createElement(qp,F({role:m&&m.role?m.role:"rowgroup","aria-label":(t=d)===null||t===void 0?void 0:t.name,items:c,onRenderCell:this._onRenderGroupCell(u,g,d),ref:this._list,renderCount:Math.min(x,n),startIndex:_,onShouldVirtualize:w,id:this._id},h))},s.prototype._returnOne=function(){return 1},s.prototype._getGroupKey=function(n,t){return"group-"+(n&&n.key?n.key:String(n.level)+String(t))},s.prototype._getDroppingClassName=function(){var n=this.state.isDropping,t=this.props,i=t.group,d=t.groupedListClassNames;return n=!!(i&&n),on(n&&this._droppingClassName,n&&n1,n&&d&&d.groupIsDropping)},s})(M.Component),o1=Je(),s1=gd.rowHeight,i1=gd.compactRowHeight,a1=(function(o){Ne(s,o);function s(n){var t=o.call(this,n)||this;t._list=M.createRef(),t._renderGroup=function(u,h){var g=t.props,w=g.dragDropEvents,m=g.dragDropHelper,x=g.eventsToRegister,_=g.groupProps,v=g.items,b=g.listProps,C=g.onRenderCell,k=g.selectionMode,L=g.selection,T=g.viewport,N=g.onShouldVirtualize,Y=g.groups,A=g.compact,I={onToggleSelectGroup:t._onToggleSelectGroup,onToggleCollapse:t._onToggleCollapse,onToggleSummarize:t._onToggleSummarize},R=F(F({},_.headerProps),I),H=F(F({},_.showAllProps),I),W=F(F({},_.footerProps),I),K=t._getGroupNestingDepth();if(!_.showEmptyGroups&&u&&u.count===0)return null;var Z=F(F({},b||{}),{version:t.state.version});return M.createElement(r1,{key:t._getGroupKey(u,h),dragDropEvents:w,dragDropHelper:m,eventsToRegister:x,footerProps:W,getGroupItemLimit:_&&_.getGroupItemLimit,group:u,groupIndex:h,groupNestingDepth:K,groupProps:_,headerProps:R,listProps:Z,items:v,onRenderCell:C,onRenderGroupHeader:_.onRenderHeader,onRenderGroupShowAll:_.onRenderShowAll,onRenderGroupFooter:_.onRenderFooter,selectionMode:k,selection:L,showAllProps:H,viewport:T,onShouldVirtualize:N,groupedListClassNames:t._classNames,groups:Y,compact:A})},t._getDefaultGroupItemLimit=function(u){return u.count},t._getGroupItemLimit=function(u){var h=t.props.groupProps,g=h&&h.getGroupItemLimit?h.getGroupItemLimit:t._getDefaultGroupItemLimit;return g(u)},t._getGroupHeight=function(u){var h=t.props.compact?i1:s1;return h+(u.isCollapsed?0:h*t._getGroupItemLimit(u))},t._getPageHeight=function(u){var h=t.state.groups,g=t.props.getGroupHeight,w=g===void 0?t._getGroupHeight:g,m=h&&h[u];return m?w(m,u):0},t._onToggleCollapse=function(u){var h=t.props.groupProps,g=h&&h.headerProps&&h.headerProps.onToggleCollapse;u&&(g&&g(u),u.isCollapsed=!u.isCollapsed,t._updateIsSomeGroupExpanded(),t.forceUpdate())},t._onToggleSelectGroup=function(u){var h=t.props,g=h.selection,w=h.selectionMode;u&&g&&w===st.multiple&&g.toggleRangeSelected(u.startIndex,u.count)},t._isInnerZoneKeystroke=function(u){return u.which===Wf(ke.right)},t._onToggleSummarize=function(u){var h=t.props.groupProps,g=h&&h.showAllProps&&h.showAllProps.onToggleSummarize;g?g(u):(u&&(u.isShowingAll=!u.isShowingAll),t.forceUpdate())},t._getPageSpecification=function(u){var h=t.state.groups,g=h&&h[u];return{key:g&&g.key}},St(t),t._isSomeGroupExpanded=t._computeIsSomeGroupExpanded(n.groups);var i=n.listProps,d=(i===void 0?{}:i).version,c=d===void 0?{}:d;return t.state={groups:n.groups,items:n.items,listProps:n.listProps,version:c},t}return s.getDerivedStateFromProps=function(n,t){var i=n.groups,d=n.selectionMode,c=n.compact,u=n.items,h=n.listProps,g=h&&h.version,w=F(F({},t),{selectionMode:d,compact:c,groups:i,listProps:h}),m=!1,x=t.listProps&&t.listProps.version;return(g!==x||u!==t.items||i!==t.groups||d!==t.selectionMode||c!==t.compact)&&(m=!0),m&&(w=F(F({},w),{version:{}})),w},s.prototype.scrollToIndex=function(n,t,i){this._list.current&&this._list.current.scrollToIndex(n,t,i)},s.prototype.getStartItemIndexInView=function(){return this._list.current.getStartItemIndexInView()||0},s.prototype.componentDidMount=function(){var n=this.props,t=n.groupProps,i=n.groups,d=i===void 0?[]:i;t&&t.isAllGroupsCollapsed&&this._setGroupsCollapsedState(d,t.isAllGroupsCollapsed)},s.prototype.render=function(){var n=this.props,t=n.className,i=n.usePageCache,d=n.onShouldVirtualize,c=n.theme,u=n.role,h=u===void 0?"treegrid":u,g=n.styles,w=n.compact,m=n.focusZoneProps,x=m===void 0?{}:m,_=n.rootListProps,v=_===void 0?{}:_,b=this.state,C=b.groups,k=b.version;this._classNames=o1(g,{theme:c,className:t,compact:w});var L=x.shouldEnterInnerZone,T=L===void 0?this._isInnerZoneKeystroke:L;return M.createElement(xd,F({direction:kn.vertical,"data-automationid":"GroupedList","data-is-scrollable":"false",role:"presentation"},x,{shouldEnterInnerZone:T,className:on(this._classNames.root,x.className)}),C?M.createElement(qp,F({ref:this._list,role:h,items:C,onRenderCell:this._renderGroup,getItemCountForPage:this._returnOne,getPageHeight:this._getPageHeight,getPageSpecification:this._getPageSpecification,usePageCache:i,onShouldVirtualize:d,version:k},v)):this._renderGroup(void 0,0))},s.prototype.forceUpdate=function(){o.prototype.forceUpdate.call(this),this._forceListUpdates()},s.prototype.toggleCollapseAll=function(n){var t=this.state.groups,i=t===void 0?[]:t,d=this.props.groupProps,c=d&&d.onToggleCollapseAll;i.length>0&&(c&&c(n),this._setGroupsCollapsedState(i,n),this._updateIsSomeGroupExpanded(),this.forceUpdate())},s.prototype._setGroupsCollapsedState=function(n,t){for(var i=0;i<n.length;i++)n[i].isCollapsed=t},s.prototype._returnOne=function(){return 1},s.prototype._getGroupKey=function(n,t){return"group-"+(n&&n.key?n.key:String(t))},s.prototype._getGroupNestingDepth=function(){for(var n=this.state.groups,t=0,i=n;i&&i.length>0;)t++,i=i[0].children;return t},s.prototype._forceListUpdates=function(n){this.setState({version:{}})},s.prototype._computeIsSomeGroupExpanded=function(n){var t=this;return!!(n&&n.some(function(i){return i.children?t._computeIsSomeGroupExpanded(i.children):!i.isCollapsed}))},s.prototype._updateIsSomeGroupExpanded=function(){var n=this.state.groups,t=this.props.onGroupExpandStateChanged,i=this._computeIsSomeGroupExpanded(n);this._isSomeGroupExpanded!==i&&(t&&t(i),this._isSomeGroupExpanded=i)},s.defaultProps={selectionMode:st.multiple,isHeaderVisible:!0,groupProps:{},compact:!1},s})(M.Component),Zv=Ze(a1,ME,void 0,{scope:"GroupedList"}),l1=function(o){var s=0;if(o)for(var n=Nn(o),t=void 0;n&&n.length>0;)++s,t=n.pop(),t&&t.children&&n.push.apply(n,t.children);return s},d1=Je(),c1=function(o){var s=o.isVisible,n=s===void 0?!1:s,t=o.canSelect,i=t===void 0?!1:t,d=o.anySelected,c=d===void 0?!1:d,u=o.selected,h=u===void 0?!1:u,g=o.isHeader,w=g===void 0?!1:g,m=o.className;o.checkClassName;var x=o.styles,_=o.theme,v=o.compact,b=o.onRenderDetailsCheckbox,C=o.useFastIcons,k=C===void 0?!0:C,L=mo(o,["isVisible","canSelect","anySelected","selected","isHeader","className","checkClassName","styles","theme","compact","onRenderDetailsCheckbox","useFastIcons"]),T=k?h1:p1,N=b?Oo(b,T):T,Y=d1(x,{theme:_,canSelect:i,selected:h,anySelected:c,className:m,isHeader:w,isVisible:n,compact:v}),A={checked:h,theme:_},I=sM("div",L,["aria-label","aria-labelledby","aria-describedby"]);return i?M.createElement("div",F({},L,{role:"checkbox",className:on(Y.root,Y.check),"aria-checked":h,"data-selection-toggle":!0,"data-automationid":"DetailsRowCheck",tabIndex:-1}),N(A)):M.createElement("div",F({},I,{className:on(Y.root,Y.check)}))},u1=M.memo(function(o){return M.createElement(gg,{theme:o.theme,checked:o.checked,className:o.className,useFastIcons:!0})});function p1(o){return M.createElement(gg,{checked:o.checked})}function h1(o){return M.createElement(u1,{theme:o.theme,checked:o.checked})}var Wb=Ze(c1,TE,void 0,{scope:"DetailsRowCheck"},!0),m1=0,Xv=1,Ly=(function(){function o(s){this._selection=s.selection,this._dragEnterCounts={},this._activeTargets={},this._lastId=0,this._initialized=!1}return o.prototype.dispose=function(){this._events&&this._events.dispose()},o.prototype.subscribe=function(s,n,t){var i=this;if(!this._initialized){this._events=new Yt(this);var d=_n();d&&(this._events.on(d.body,"mouseup",this._onMouseUp.bind(this),!0),this._events.on(d,"mouseup",this._onDocumentMouseUp.bind(this),!0)),this._initialized=!0}var c=t.key,u=c===void 0?""+ ++this._lastId:c,h=[],g,w,m,x,_,v,b,C,k,L;if(t&&s){var T=t.eventMap,N=t.context,Y=t.updateDropState,A={root:s,options:t,key:u};if(C=this._isDraggable(A),k=this._isDroppable(A),(C||k)&&T)for(var I=0,R=T;I<R.length;I++){var H=R[I],W={callback:H.callback.bind(null,N),eventName:H.eventName};h.push(W),this._events.on(s,W.eventName,W.callback)}k&&(w=function(K){K.isHandled||(K.isHandled=!0,i._dragEnterCounts[u]--,i._dragEnterCounts[u]===0&&Y(!1,K))},m=function(K){K.preventDefault(),K.isHandled||(K.isHandled=!0,i._dragEnterCounts[u]++,i._dragEnterCounts[u]===1&&Y(!0,K))},x=function(K){i._dragEnterCounts[u]=0,Y(!1,K)},_=function(K){i._dragEnterCounts[u]=0,Y(!1,K),t.onDrop&&t.onDrop(t.context.data,K)},v=function(K){K.preventDefault(),t.onDragOver&&t.onDragOver(t.context.data,K)},this._dragEnterCounts[u]=0,n.on(s,"dragenter",m),n.on(s,"dragleave",w),n.on(s,"dragend",x),n.on(s,"drop",_),n.on(s,"dragover",v)),C&&(b=this._onMouseDown.bind(this,A),x=this._onDragEnd.bind(this,A),g=function(K){var Z=t;Z&&Z.onDragStart&&Z.onDragStart(Z.context.data,Z.context.index,i._selection.getSelection(),K),i._isDragging=!0,K.dataTransfer&&K.dataTransfer.setData("id",s.id)},n.on(s,"dragstart",g),n.on(s,"mousedown",b),n.on(s,"dragend",x)),L={target:A,dispose:function(){if(i._activeTargets[u]===L&&delete i._activeTargets[u],s){for(var K=0,Z=h;K<Z.length;K++){var Q=Z[K];i._events.off(s,Q.eventName,Q.callback)}k&&(n.off(s,"dragenter",m),n.off(s,"dragleave",w),n.off(s,"dragend",x),n.off(s,"dragover",v),n.off(s,"drop",_)),C&&(n.off(s,"dragstart",g),n.off(s,"mousedown",b),n.off(s,"dragend",x))}}},this._activeTargets[u]=L}return{key:u,dispose:function(){L&&L.dispose()}}},o.prototype.unsubscribe=function(s,n){var t=this._activeTargets[n];t&&t.dispose()},o.prototype._onDragEnd=function(s,n){var t=s.options;t.onDragEnd&&t.onDragEnd(t.context.data,n)},o.prototype._onMouseUp=function(s){if(this._isDragging=!1,this._dragData){for(var n=0,t=Object.keys(this._activeTargets);n<t.length;n++){var i=t[n],d=this._activeTargets[i];d.target.root&&(this._events.off(d.target.root,"mousemove"),this._events.off(d.target.root,"mouseleave"))}this._dragData.dropTarget&&(Yt.raise(this._dragData.dropTarget.root,"dragleave"),Yt.raise(this._dragData.dropTarget.root,"drop"))}this._dragData=null},o.prototype._onDocumentMouseUp=function(s){var n=_n();n&&s.target===n.documentElement&&this._onMouseUp(s)},o.prototype._onMouseMove=function(s,n){var t=n.buttons,i=t===void 0?Xv:t;if(this._dragData&&i!==Xv){this._onMouseUp(n);return}var d=s.root,c=s.key;this._isDragging&&this._isDroppable(s)&&this._dragData&&this._dragData.dropTarget&&this._dragData.dropTarget.key!==c&&!this._isChild(d,this._dragData.dropTarget.root)&&this._dragEnterCounts[this._dragData.dropTarget.key]>0&&(Yt.raise(this._dragData.dropTarget.root,"dragleave"),Yt.raise(d,"dragenter"),this._dragData.dropTarget=s)},o.prototype._onMouseLeave=function(s,n){this._isDragging&&this._dragData&&this._dragData.dropTarget&&this._dragData.dropTarget.key===s.key&&(Yt.raise(s.root,"dragleave"),this._dragData.dropTarget=void 0)},o.prototype._onMouseDown=function(s,n){if(n.button===m1)if(this._isDraggable(s)){this._dragData={clientX:n.clientX,clientY:n.clientY,eventTarget:n.target,dragTarget:s};for(var t=0,i=Object.keys(this._activeTargets);t<i.length;t++){var d=i[t],c=this._activeTargets[d];c.target.root&&(this._events.on(c.target.root,"mousemove",this._onMouseMove.bind(this,c.target)),this._events.on(c.target.root,"mouseleave",this._onMouseLeave.bind(this,c.target)))}}else this._dragData=null},o.prototype._isChild=function(s,n){for(;n&&n.parentElement;){if(n.parentElement===s)return!0;n=n.parentElement}return!1},o.prototype._isDraggable=function(s){var n=s.options;return!!(n.canDrag&&n.canDrag(n.context.data))},o.prototype._isDroppable=function(s){var n=s.options,t=this._dragData&&this._dragData.dragTarget?this._dragData.dragTarget.options.context:void 0;return!!(n.canDrop&&n.canDrop(n.context,t))},o})(),f1=0,g1=Je(),_1=200,Qv=1500,U_=20,ex=function(o){return function(s){return s?s.column.isIconOnly?M.createElement("span",{className:o.accessibleLabel},s.column.name):M.createElement(M.Fragment,null,s.column.name):null}},y1=(function(o){Ne(s,o);function s(n){var t=o.call(this,n)||this;return t._root=M.createRef(),t._onRenderFilterIcon=function(i){return function(d){var c,u=d.columnProps,h=mo(d,["columnProps"]),g=!((c=u)===null||c===void 0)&&c.useFastIcons?kt:ze;return M.createElement(g,F({},h))}},t._onRenderColumnHeaderTooltip=function(i){return M.createElement("span",{className:i.hostClassName},i.children)},t._onColumnClick=function(i){var d=t.props,c=d.onColumnClick,u=d.column;u.columnActionsMode!==Ns.disabled&&(u.onColumnClick&&u.onColumnClick(i,u),c&&c(i,u))},t._onDragStart=function(i,d,c,u){var h=t._classNames;d&&(t._updateHeaderDragInfo(d),t._root.current.classList.add(h.borderWhileDragging),t._async.setTimeout(function(){t._root.current&&t._root.current.classList.add(h.noBorderWhileDragging)},U_))},t._onDragEnd=function(i,d){var c=t._classNames;d&&t._updateHeaderDragInfo(-1,d),t._root.current.classList.remove(c.borderWhileDragging),t._root.current.classList.remove(c.noBorderWhileDragging)},t._updateHeaderDragInfo=function(i,d){t.props.setDraggedItemIndex&&t.props.setDraggedItemIndex(i),t.props.updateDragInfo&&t.props.updateDragInfo({itemIndex:i},d)},t._onColumnContextMenu=function(i){var d=t.props,c=d.onColumnContextMenu,u=d.column;u.onColumnContextMenu&&(u.onColumnContextMenu(u,i),i.preventDefault()),c&&(c(u,i),i.preventDefault())},t._onRootMouseDown=function(i){var d=t.props.isDraggable;d&&i.button===f1&&i.stopPropagation()},St(t),t._async=new Wn(t),t._events=new Yt(t),t}return s.prototype.render=function(){var n=this.props,t=n.column,i=n.columnIndex,d=n.parentId,c=n.isDraggable,u=n.styles,h=n.theme,g=n.cellStyleProps,w=g===void 0?Si:g,m=n.useFastIcons,x=m===void 0?!0:m,_=this.props.onRenderColumnHeaderTooltip,v=_===void 0?this._onRenderColumnHeaderTooltip:_;this._classNames=g1(u,{theme:h,headerClassName:t.headerClassName,iconClassName:t.iconClassName,isActionable:t.columnActionsMode!==Ns.disabled,isEmpty:!t.name,isIconVisible:t.isSorted||t.isGrouped||t.isFiltered,isPadded:t.isPadded,isIconOnly:t.isIconOnly,cellStyleProps:w,transitionDurationDrag:_1,transitionDurationDrop:Qv});var b=this._classNames,C=x?kt:ze,k=t.onRenderFilterIcon?Oo(t.onRenderFilterIcon,this._onRenderFilterIcon(this._classNames)):this._onRenderFilterIcon(this._classNames),L=t.onRenderHeader?Oo(t.onRenderHeader,ex(this._classNames)):ex(this._classNames);return M.createElement(M.Fragment,null,M.createElement("div",{key:t.key,ref:this._root,role:"columnheader","aria-sort":t.isSorted?t.isSortedDescending?"descending":"ascending":"none","aria-colindex":i,className:b.root,"data-is-draggable":c,draggable:c,style:{width:t.calculatedWidth+w.cellLeftPadding+w.cellRightPadding+(t.isPadded?w.cellExtraRightPadding:0)},"data-automationid":"ColumnsHeaderColumn","data-item-key":t.key},c&&M.createElement(C,{iconName:"GripperBarVertical",className:b.gripperBarVerticalStyle}),v({hostClassName:b.cellTooltip,id:d+"-"+t.key+"-tooltip",setAriaDescribedBy:!1,column:t,content:t.columnActionsMode!==Ns.disabled?t.ariaLabel:"",children:M.createElement("span",{id:d+"-"+t.key,"aria-label":t.isIconOnly?t.name:void 0,"aria-labelledby":t.isIconOnly?void 0:d+"-"+t.key+"-name",className:b.cellTitle,"data-is-focusable":t.columnActionsMode!==Ns.disabled,role:t.columnActionsMode!==Ns.disabled&&(t.onColumnClick!==void 0||this.props.onColumnClick!==void 0)?"button":void 0,"aria-describedby":!this.props.onRenderColumnHeaderTooltip&&this._hasAccessibleLabel()?d+"-"+t.key+"-tooltip":void 0,onContextMenu:this._onColumnContextMenu,onClick:this._onColumnClick,"aria-haspopup":t.columnActionsMode===Ns.hasDropdown,"aria-expanded":t.columnActionsMode===Ns.hasDropdown?!!t.isMenuOpen:void 0},M.createElement("span",{id:d+"-"+t.key+"-name",className:b.cellName},(t.iconName||t.iconClassName)&&M.createElement(C,{className:b.iconClassName,iconName:t.iconName}),L(this.props)),t.isFiltered&&M.createElement(C,{className:b.nearIcon,iconName:"Filter"}),t.isSorted&&M.createElement(C,{className:b.sortIcon,iconName:t.isSortedDescending?"SortDown":"SortUp"}),t.isGrouped&&M.createElement(C,{className:b.nearIcon,iconName:"GroupedDescending"}),t.columnActionsMode===Ns.hasDropdown&&!t.isIconOnly&&k({"aria-hidden":!0,columnProps:this.props,className:b.filterChevron,iconName:"ChevronDown"}))},this._onRenderColumnHeaderTooltip)),this.props.onRenderColumnHeaderTooltip?null:this._renderAccessibleLabel())},s.prototype.componentDidMount=function(){var n=this;this.props.dragDropHelper&&this.props.isDraggable&&this._addDragDropHandling();var t=this._classNames;this.props.isDropped&&(this._root.current&&(this._root.current.classList.add(t.borderAfterDropping),this._async.setTimeout(function(){n._root.current&&n._root.current.classList.add(t.noBorderAfterDropping)},U_)),this._async.setTimeout(function(){n._root.current&&(n._root.current.classList.remove(t.borderAfterDropping),n._root.current.classList.remove(t.noBorderAfterDropping))},Qv+U_))},s.prototype.componentWillUnmount=function(){this._dragDropSubscription&&(this._dragDropSubscription.dispose(),delete this._dragDropSubscription),this._async.dispose(),this._events.dispose()},s.prototype.componentDidUpdate=function(){!this._dragDropSubscription&&this.props.dragDropHelper&&this.props.isDraggable&&this._addDragDropHandling(),this._dragDropSubscription&&!this.props.isDraggable&&(this._dragDropSubscription.dispose(),this._events.off(this._root.current,"mousedown"),delete this._dragDropSubscription)},s.prototype._getColumnDragDropOptions=function(){var n=this,t=this.props.columnIndex,i={selectionIndex:t,context:{data:t,index:t},canDrag:function(){return n.props.isDraggable},canDrop:function(){return!1},onDragStart:this._onDragStart,updateDropState:function(){},onDrop:function(){},onDragEnd:this._onDragEnd};return i},s.prototype._hasAccessibleLabel=function(){var n=this.props.column;return!!(n.ariaLabel||n.filterAriaLabel||n.sortAscendingAriaLabel||n.sortDescendingAriaLabel||n.groupAriaLabel)},s.prototype._renderAccessibleLabel=function(){var n=this.props,t=n.column,i=n.parentId,d=this._classNames;return this._hasAccessibleLabel()&&!this.props.onRenderColumnHeaderTooltip?M.createElement("label",{key:t.key+"_label",id:i+"-"+t.key+"-tooltip",className:d.accessibleLabel},t.ariaLabel,t.isFiltered&&t.filterAriaLabel||null,t.isSorted&&(t.isSortedDescending?t.sortDescendingAriaLabel:t.sortAscendingAriaLabel)||null,t.isGrouped&&t.groupAriaLabel||null):null},s.prototype._addDragDropHandling=function(){this._dragDropSubscription=this.props.dragDropHelper.subscribe(this._root.current,this._events,this._getColumnDragDropOptions()),this._events.on(this._root.current,"mousedown",this._onRootMouseDown)},s})(M.Component),w1={isActionable:"is-actionable",cellIsCheck:"ms-DetailsHeader-cellIsCheck",collapseButton:"ms-DetailsHeader-collapseButton",isCollapsed:"is-collapsed",isAllSelected:"is-allSelected",isSelectAllHidden:"is-selectAllHidden",isResizingColumn:"is-resizingColumn",isEmpty:"is-empty",isIconVisible:"is-icon-visible",cellSizer:"ms-DetailsHeader-cellSizer",isResizing:"is-resizing",dropHintCircleStyle:"ms-DetailsHeader-dropHintCircleStyle",dropHintLineStyle:"ms-DetailsHeader-dropHintLineStyle",cellTitle:"ms-DetailsHeader-cellTitle",cellName:"ms-DetailsHeader-cellName",filterChevron:"ms-DetailsHeader-filterChevron",gripperBarVerticalStyle:"ms-DetailsColumn-gripperBar",nearIcon:"ms-DetailsColumn-nearIcon"},v1=function(o){var s,n=o.theme,t=o.headerClassName,i=o.iconClassName,d=o.isActionable,c=o.isEmpty,u=o.isIconVisible,h=o.isPadded,g=o.isIconOnly,w=o.cellStyleProps,m=w===void 0?Si:w,x=o.transitionDurationDrag,_=o.transitionDurationDrop,v=n.semanticColors,b=n.palette,C=n.fonts,k=it(w1,n),L={iconForegroundColor:v.bodySubtext,headerForegroundColor:v.bodyText,headerBackgroundColor:v.bodyBackground,dropdownChevronForegroundColor:b.neutralSecondary,resizerColor:b.neutralTertiaryAlt},T={color:L.iconForegroundColor,opacity:1,paddingLeft:8},N={outline:"1px solid "+b.themePrimary},Y={outlineColor:"transparent"};return{root:[Yb(o),C.small,d&&[k.isActionable,{selectors:{":hover":{color:v.bodyText,background:v.listHeaderBackgroundHovered},":active":{background:v.listHeaderBackgroundPressed}}}],c&&[k.isEmpty,{textOverflow:"clip"}],u&&k.isIconVisible,h&&{paddingRight:m.cellExtraRightPadding+m.cellRightPadding},{selectors:{':hover i[data-icon-name="GripperBarVertical"]':{display:"block"}}},t],gripperBarVerticalStyle:{display:"none",position:"absolute",textAlign:"left",color:b.neutralTertiary,left:1},nearIcon:[k.nearIcon,T],sortIcon:[T,{paddingLeft:4,position:"relative",top:1}],iconClassName:[{color:L.iconForegroundColor,opacity:1},i],filterChevron:[k.filterChevron,{color:L.dropdownChevronForegroundColor,paddingLeft:6,verticalAlign:"middle",fontSize:C.small.fontSize}],cellTitle:[k.cellTitle,On(n),F({display:"flex",flexDirection:"row",justifyContent:"flex-start",alignItems:"stretch",boxSizing:"border-box",overflow:"hidden",padding:"0 "+m.cellRightPadding+"px 0 "+m.cellLeftPadding+"px"},g?{alignContent:"flex-end",maxHeight:"100%",flexWrap:"wrap-reverse"}:{})],cellName:[k.cellName,{flex:"0 1 auto",overflow:"hidden",textOverflow:"ellipsis",fontWeight:Lt.semibold,fontSize:C.medium.fontSize},g&&{selectors:(s={},s["."+k.nearIcon]={paddingLeft:0},s)}],cellTooltip:{display:"block",position:"absolute",top:0,left:0,bottom:0,right:0},accessibleLabel:wd,borderWhileDragging:N,noBorderWhileDragging:[Y,{transition:"outline "+x+"ms ease"}],borderAfterDropping:N,noBorderAfterDropping:[Y,{transition:"outline  "+_+"ms ease"}]}},x1=Ze(y1,v1,void 0,{scope:"DetailsColumn"}),ps;(function(o){o[o.none=0]="none",o[o.hidden=1]="hidden",o[o.visible=2]="visible"})(ps||(ps={}));var b1=Je(),S1=0,C1=1,ds=[],k1=(function(o){Ne(s,o);function s(n){var t=o.call(this,n)||this;return t._rootElement=M.createRef(),t._rootComponent=M.createRef(),t._draggedColumnIndex=-1,t._dropHintDetails={},t._updateDroppingState=function(i,d){t._draggedColumnIndex>=0&&d.type!=="drop"&&!i&&t._resetDropHints()},t._onDragOver=function(i,d){t._draggedColumnIndex>=0&&(d.stopPropagation(),t._computeDropHintToBeShown(d.clientX))},t._onDrop=function(i,d){var c=t._getColumnReorderProps();if(t._draggedColumnIndex>=0&&d){var u=t._draggedColumnIndex>t._currentDropHintIndex?t._currentDropHintIndex:t._currentDropHintIndex-1,h=t._isValidCurrentDropHintIndex();if(d.stopPropagation(),h)if(t._onDropIndexInfo.sourceIndex=t._draggedColumnIndex,t._onDropIndexInfo.targetIndex=u,c.onColumnDrop){var g={draggedIndex:t._draggedColumnIndex,targetIndex:u};c.onColumnDrop(g)}else c.handleColumnReorder&&c.handleColumnReorder(t._draggedColumnIndex,u)}t._resetDropHints(),t._dropHintDetails={},t._draggedColumnIndex=-1},t._updateDragInfo=function(i,d){var c=t._getColumnReorderProps(),u=i.itemIndex;if(u>=0)t._draggedColumnIndex=t._isCheckboxColumnHidden()?u-1:u-2,t._getDropHintPositions(),c.onColumnDragStart&&c.onColumnDragStart(!0);else if(d&&t._draggedColumnIndex>=0&&(t._resetDropHints(),t._draggedColumnIndex=-1,t._dropHintDetails={},c.onColumnDragEnd)){var h=t._isEventOnHeader(d);c.onColumnDragEnd({dropLocation:h},d)}},t._getDropHintPositions=function(){for(var i=t.props.columns,d=i===void 0?ds:i,c=t._getColumnReorderProps(),u=0,h=0,g,w=c.frozenColumnCountFromStart||0,m=c.frozenColumnCountFromEnd||0,x=w;x<d.length-m+1;x++)if(t._rootElement.current){var _=t._rootElement.current.querySelectorAll("#columnDropHint_"+x)[0];if(_)if(x===w)u=_.offsetLeft,h=_.offsetLeft,g=_;else{var v=(_.offsetLeft+u)/2;t._dropHintDetails[x-1]={originX:u,startX:h,endX:v,dropHintElementRef:g},h=v,g=_,u=_.offsetLeft,x===d.length-m&&(t._dropHintDetails[x]={originX:u,startX:h,endX:_.offsetLeft,dropHintElementRef:g})}}},t._computeDropHintToBeShown=function(i){var d=Tt(t.props.theme);if(t._rootElement.current){var c=t._rootElement.current.getBoundingClientRect(),u=c.left,h=i-u,g=t._currentDropHintIndex;if(t._isValidCurrentDropHintIndex()&&sf(d,h,t._dropHintDetails[g].startX,t._dropHintDetails[g].endX))return;var w=t.props.columns,m=w===void 0?ds:w,x=t._getColumnReorderProps(),_=x.frozenColumnCountFromStart||0,v=x.frozenColumnCountFromEnd||0,b=_,C=m.length-v,k=-1;if(tx(d,h,t._dropHintDetails[b].endX)?k=b:nx(d,h,t._dropHintDetails[C].startX)?k=C:t._isValidCurrentDropHintIndex()&&(t._dropHintDetails[g+1]&&sf(d,h,t._dropHintDetails[g+1].startX,t._dropHintDetails[g+1].endX)?k=g+1:t._dropHintDetails[g-1]&&sf(d,h,t._dropHintDetails[g-1].startX,t._dropHintDetails[g-1].endX)&&(k=g-1)),k===-1)for(var L=_,T=C;L<T;){var N=Math.ceil((T+L)/2);if(sf(d,h,t._dropHintDetails[N].startX,t._dropHintDetails[N].endX)){k=N;break}else tx(d,h,t._dropHintDetails[N].originX)?T=N:nx(d,h,t._dropHintDetails[N].originX)&&(L=N)}k===t._draggedColumnIndex||k===t._draggedColumnIndex+1?t._isValidCurrentDropHintIndex()&&t._resetDropHints():g!==k&&k>=0&&(t._resetDropHints(),t._updateDropHintElement(t._dropHintDetails[k].dropHintElementRef,"inline-block"),t._currentDropHintIndex=k)}},t._renderColumnSizer=function(i){var d,c=i.columnIndex,u=t.props.columns,h=u===void 0?ds:u,g=h[c],w=t.state.columnResizeDetails,m=t._classNames;return g.isResizable?M.createElement("div",{key:g.key+"_sizer","aria-hidden":!0,role:"button","data-is-focusable":!1,onClick:M1,"data-sizer-index":c,onBlur:t._onSizerBlur,className:on(m.cellSizer,c<h.length-1?m.cellSizerStart:m.cellSizerEnd,(d={},d[m.cellIsResizing]=w&&w.columnIndex===c,d)),onDoubleClick:t._onSizerDoubleClick.bind(t,c)}):null},t._onRenderColumnHeaderTooltip=function(i){return M.createElement("span",{className:i.hostClassName},i.children)},t._onSelectAllClicked=function(){var i=t.props.selection;i&&i.toggleAllSelected()},t._onRootMouseDown=function(i){var d=i.target.getAttribute("data-sizer-index"),c=Number(d),u=t.props.columns,h=u===void 0?ds:u;d===null||i.button!==S1||(t.setState({columnResizeDetails:{columnIndex:c,columnMinWidth:h[c].calculatedWidth,originX:i.clientX}}),i.preventDefault(),i.stopPropagation())},t._onRootMouseMove=function(i){var d=t.state,c=d.columnResizeDetails,u=d.isSizing;c&&!u&&i.clientX!==c.originX&&t.setState({isSizing:!0})},t._onRootKeyDown=function(i){var d=t.state,c=d.columnResizeDetails,u=d.isSizing,h=t.props,g=h.columns,w=g===void 0?ds:g,m=h.onColumnResized,x=i.target.getAttribute("data-sizer-index");if(!(!x||u)){var _=Number(x);if(!c)i.which===ke.enter&&(t.setState({columnResizeDetails:{columnIndex:_,columnMinWidth:w[_].calculatedWidth}}),i.preventDefault(),i.stopPropagation());else{var v=void 0;i.which===ke.enter?(t.setState({columnResizeDetails:void 0}),i.preventDefault(),i.stopPropagation()):i.which===ke.left?v=Tt(t.props.theme)?1:-1:i.which===ke.right&&(v=Tt(t.props.theme)?-1:1),v&&(i.shiftKey||(v*=10),t.setState({columnResizeDetails:F(F({},c),{columnMinWidth:c.columnMinWidth+v})}),m&&m(w[_],c.columnMinWidth+v,_),i.preventDefault(),i.stopPropagation())}}},t._onSizerMouseMove=function(i){var d=i.buttons,c=t.props,u=c.onColumnIsSizingChanged,h=c.onColumnResized,g=c.columns,w=g===void 0?ds:g,m=t.state.columnResizeDetails;if(d!==void 0&&d!==C1){t._onSizerMouseUp(i);return}if(i.clientX!==m.originX&&u&&u(w[m.columnIndex],!0),h){var x=i.clientX-m.originX;Tt(t.props.theme)&&(x=-x),h(w[m.columnIndex],m.columnMinWidth+x,m.columnIndex)}},t._onSizerBlur=function(i){var d=t.state.columnResizeDetails;d&&t.setState({columnResizeDetails:void 0,isSizing:!1})},t._onSizerMouseUp=function(i){var d=t.props,c=d.columns,u=c===void 0?ds:c,h=d.onColumnIsSizingChanged,g=t.state.columnResizeDetails;t.setState({columnResizeDetails:void 0,isSizing:!1}),h&&h(u[g.columnIndex],!1)},t._onToggleCollapseAll=function(){var i=t.props.onToggleCollapseAll,d=!t.state.isAllCollapsed;t.setState({isAllCollapsed:d}),i&&i(d)},St(t),t._events=new Yt(t),t.state={columnResizeDetails:void 0,isAllCollapsed:t.props.isAllCollapsed,isAllSelected:!!t.props.selection&&t.props.selection.isAllSelected()},t._onDropIndexInfo={sourceIndex:-1,targetIndex:-1},t._id=zt("header"),t._currentDropHintIndex=-1,t._dragDropHelper=new Ly({selection:{getSelection:function(){}},minimumPixelsForDrag:t.props.minimumPixelsForDrag}),t}return s.prototype.componentDidMount=function(){var n=this.props.selection;this._events.on(n,ig,this._onSelectionChanged),this._rootElement.current&&(this._events.on(this._rootElement.current,"mousedown",this._onRootMouseDown),this._events.on(this._rootElement.current,"keydown",this._onRootKeyDown),this._getColumnReorderProps()&&(this._subscriptionObject=this._dragDropHelper.subscribe(this._rootElement.current,this._events,this._getHeaderDragDropOptions())))},s.prototype.componentDidUpdate=function(n){if(this._getColumnReorderProps()?!this._subscriptionObject&&this._rootElement.current&&(this._subscriptionObject=this._dragDropHelper.subscribe(this._rootElement.current,this._events,this._getHeaderDragDropOptions())):this._subscriptionObject&&(this._subscriptionObject.dispose(),delete this._subscriptionObject),this.props!==n&&this._onDropIndexInfo.sourceIndex>=0&&this._onDropIndexInfo.targetIndex>=0){var t=n.columns,i=t===void 0?ds:t,d=this.props.columns,c=d===void 0?ds:d;i[this._onDropIndexInfo.sourceIndex].key===c[this._onDropIndexInfo.targetIndex].key&&(this._onDropIndexInfo={sourceIndex:-1,targetIndex:-1})}this.props.isAllCollapsed!==n.isAllCollapsed&&this.setState({isAllCollapsed:this.props.isAllCollapsed})},s.prototype.componentWillUnmount=function(){this._subscriptionObject&&(this._subscriptionObject.dispose(),delete this._subscriptionObject),this._dragDropHelper.dispose(),this._events.dispose()},s.prototype.render=function(){var n=this,t=this.props,i=t.columns,d=i===void 0?ds:i,c=t.ariaLabel,u=t.ariaLabelForToggleAllGroupsButton,h=t.ariaLabelForSelectAllCheckbox,g=t.selectAllVisibility,w=t.ariaLabelForSelectionColumn,m=t.indentWidth,x=t.onColumnClick,_=t.onColumnContextMenu,v=t.onRenderColumnHeaderTooltip,b=v===void 0?this._onRenderColumnHeaderTooltip:v,C=t.styles,k=t.selectionMode,L=t.theme,T=t.onRenderDetailsCheckbox,N=t.groupNestingDepth,Y=t.useFastIcons,A=t.checkboxVisibility,I=t.className,R=this.state,H=R.isAllSelected,W=R.columnResizeDetails,K=R.isSizing,Z=R.isAllCollapsed,Q=g!==ps.none,B=g===ps.hidden,P=A===Yo.always,X=this._getColumnReorderProps(),$=X&&X.frozenColumnCountFromStart?X.frozenColumnCountFromStart:0,ie=X&&X.frozenColumnCountFromEnd?X.frozenColumnCountFromEnd:0;this._classNames=b1(C,{theme:L,isAllSelected:H,isSelectAllHidden:g===ps.hidden,isResizingColumn:!!W&&K,isSizing:K,isAllCollapsed:Z,isCheckboxHidden:B,className:I});var le=this._classNames,V=Y?kt:ze,z=Tt(L);return M.createElement(xd,{role:"row","aria-label":c,className:le.root,componentRef:this._rootComponent,elementRef:this._rootElement,onMouseMove:this._onRootMouseMove,"data-automationid":"DetailsHeader",direction:kn.horizontal},Q?[M.createElement("div",{key:"__checkbox",className:le.cellIsCheck,"aria-labelledby":this._id+"-check",onClick:B?void 0:this._onSelectAllClicked,"aria-colindex":1,role:"columnheader"},b({hostClassName:le.checkTooltip,id:this._id+"-checkTooltip",setAriaDescribedBy:!1,content:h,children:M.createElement(Wb,{id:this._id+"-check","aria-label":k===st.multiple?h:w,"data-is-focusable":!B||void 0,isHeader:!0,selected:H,anySelected:!1,canSelect:!B,className:le.check,onRenderDetailsCheckbox:T,useFastIcons:Y,isVisible:P})},this._onRenderColumnHeaderTooltip)),this.props.onRenderColumnHeaderTooltip?null:h&&!B?M.createElement("label",{key:"__checkboxLabel",id:this._id+"-checkTooltip",className:le.accessibleLabel,"aria-hidden":!0},h):w&&B?M.createElement("label",{key:"__checkboxLabel",id:this._id+"-checkTooltip",className:le.accessibleLabel,"aria-hidden":!0},w):null]:null,N>0&&this.props.collapseAllVisibility===Jp.visible?M.createElement("div",{className:le.cellIsGroupExpander,onClick:this._onToggleCollapseAll,"data-is-focusable":!0,"aria-label":u,"aria-expanded":!Z,role:"columnheader"},M.createElement(V,{className:le.collapseButton,iconName:z?"ChevronLeftMed":"ChevronRightMed"})):null,M.createElement(Jc,{indentWidth:m,role:"gridcell",count:N-1}),d.map(function(J,ee){var me=X?ee>=$&&ee<d.length-ie:!1;return[X&&(me||ee===d.length-ie)&&n._renderDropHint(ee),M.createElement(x1,{column:J,styles:J.styles,key:J.key,columnIndex:(Q?2:1)+ee,parentId:n._id,isDraggable:me,updateDragInfo:n._updateDragInfo,dragDropHelper:n._dragDropHelper,onColumnClick:x,onColumnContextMenu:_,onRenderColumnHeaderTooltip:n.props.onRenderColumnHeaderTooltip,isDropped:n._onDropIndexInfo.targetIndex===ee,cellStyleProps:n.props.cellStyleProps,useFastIcons:Y}),n._renderColumnDivider(ee)]}),X&&ie===0&&this._renderDropHint(d.length),K&&M.createElement(vd,null,M.createElement("div",{className:le.sizingOverlay,onMouseMove:this._onSizerMouseMove,onMouseUp:this._onSizerMouseUp})))},s.prototype.focus=function(){var n;return!!(!((n=this._rootComponent.current)===null||n===void 0)&&n.focus())},s.prototype._getColumnReorderProps=function(){var n=this.props,t=n.columnReorderOptions,i=n.columnReorderProps;return i||t&&F(F({},t),{onColumnDragEnd:void 0})},s.prototype._getHeaderDragDropOptions=function(){var n={selectionIndex:1,context:{data:this,index:0},canDrag:function(){return!1},canDrop:function(){return!0},onDragStart:function(){},updateDropState:this._updateDroppingState,onDrop:this._onDrop,onDragEnd:function(){},onDragOver:this._onDragOver};return n},s.prototype._isValidCurrentDropHintIndex=function(){return this._currentDropHintIndex>=0},s.prototype._isCheckboxColumnHidden=function(){var n=this.props,t=n.selectionMode,i=n.checkboxVisibility;return t===st.none||i===Yo.hidden},s.prototype._resetDropHints=function(){this._currentDropHintIndex>=0&&(this._updateDropHintElement(this._dropHintDetails[this._currentDropHintIndex].dropHintElementRef,"none"),this._currentDropHintIndex=-1)},s.prototype._updateDropHintElement=function(n,t){n.childNodes[1].style.display=t,n.childNodes[0].style.display=t},s.prototype._isEventOnHeader=function(n){if(this._rootElement.current){var t=this._rootElement.current.getBoundingClientRect();if(n.clientX>t.left&&n.clientX<t.right&&n.clientY>t.top&&n.clientY<t.bottom)return Hc.header}},s.prototype._renderColumnDivider=function(n){var t=this.props.columns,i=t===void 0?ds:t,d=i[n],c=d.onRenderDivider;return c?c({column:d,columnIndex:n},this._renderColumnSizer):this._renderColumnSizer({column:d,columnIndex:n})},s.prototype._renderDropHint=function(n){var t=this._classNames,i=this.props.useFastIcons?kt:ze;return M.createElement("div",{key:"dropHintKey",className:t.dropHintStyle,id:"columnDropHint_"+n},M.createElement("div",{role:"presentation",key:"dropHintCircleKey",className:t.dropHintCaretStyle,"data-is-focusable":!1,"data-sizer-index":n,"aria-hidden":!0},M.createElement(i,{iconName:"CircleShapeSolid"})),M.createElement("div",{key:"dropHintLineKey","aria-hidden":!0,"data-is-focusable":!1,"data-sizer-index":n,className:t.dropHintLineStyle}))},s.prototype._onSizerDoubleClick=function(n,t){var i=this.props,d=i.onColumnAutoResized,c=i.columns,u=c===void 0?ds:c;d&&d(u[n],n)},s.prototype._onSelectionChanged=function(){var n=!!this.props.selection&&this.props.selection.isAllSelected();this.state.isAllSelected!==n&&this.setState({isAllSelected:n})},s.defaultProps={selectAllVisibility:ps.visible,collapseAllVisibility:Jp.visible,useFastIcons:!0},s})(M.Component);function sf(o,s,n,t){return o?s<=n&&s>=t:s>=n&&s<=t}function tx(o,s,n){return o?s>=n:s<=n}function nx(o,s,n){return o?s<=n:s>=n}function M1(o){o.stopPropagation()}var j1=Ze(k1,DE,void 0,{scope:"DetailsHeader"}),L1=function(o,s){var n=o&&s&&s.fieldName?o[s.fieldName]:"";return n==null&&(n=""),typeof n=="boolean"?n.toString():n},E1=function(o){var s=o.columns,n=o.columnStartIndex,t=o.rowClassNames,i=o.cellStyleProps,d=i===void 0?Si:i,c=o.item,u=o.itemIndex,h=o.onRenderItemColumn,g=o.getCellValueKey,w=o.cellsByColumn,m=o.enableUpdateAnimations,x=o.rowHeaderId,_=M.useRef(),v=_.current||(_.current={});return M.createElement("div",{className:t.fields,"data-automationid":"DetailsRowFields",role:"presentation"},s.map(function(b,C){var k=typeof b.calculatedWidth>"u"?"auto":b.calculatedWidth+d.cellLeftPadding+d.cellRightPadding+(b.isPadded?d.cellExtraRightPadding:0),L=b.onRender,T=L===void 0?h:L,N=b.getValueKey,Y=N===void 0?g:N,A=w&&b.key in w?w[b.key]:T?T(c,u,b):L1(c,b),I=v[b.key],R=m&&Y?Y(c,u,b):void 0,H=!1;R!==void 0&&I!==void 0&&R!==I&&(H=!0),v[b.key]=R;var W=""+b.key+(R!==void 0?"-"+R:"");return M.createElement("div",{key:W,id:b.isRowHeader?x:void 0,role:b.isRowHeader?"rowheader":"gridcell","aria-readonly":!0,"aria-colindex":C+n+1,className:on(b.className,b.isMultiline&&t.isMultiline,b.isRowHeader&&t.isRowHeader,t.cell,b.isPadded?t.cellPadded:t.cellUnpadded,H&&t.cellAnimation),style:{width:k},"data-automationid":"DetailsRowCell","data-automation-key":b.key},A)}))},D1=Je(),I1="is-dropping",rx=[],T1=(function(o){Ne(s,o);function s(n){var t=o.call(this,n)||this;return t._root=M.createRef(),t._cellMeasurer=M.createRef(),t._focusZone=M.createRef(),t._onSelectionChanged=function(){var i=af(t.props);xi(i,t.state.selectionState)||t.setState({selectionState:i})},t._updateDroppingState=function(i,d){var c=t.state.isDropping,u=t.props,h=u.dragDropEvents,g=u.item;i?h.onDragEnter&&(t._droppingClassNames=h.onDragEnter(g,d)):h.onDragLeave&&h.onDragLeave(g,d),c!==i&&t.setState({isDropping:i})},St(t),t._events=new Yt(t),t.state={selectionState:af(n),columnMeasureInfo:void 0,isDropping:!1},t._droppingClassNames="",t}return s.getDerivedStateFromProps=function(n,t){return F(F({},t),{selectionState:af(n)})},s.prototype.componentDidMount=function(){var n=this.props,t=n.dragDropHelper,i=n.selection,d=n.item,c=n.onDidMount;t&&this._root.current&&(this._dragDropSubscription=t.subscribe(this._root.current,this._events,this._getRowDragDropOptions())),i&&this._events.on(i,ig,this._onSelectionChanged),c&&d&&(this._onDidMountCalled=!0,c(this))},s.prototype.componentDidUpdate=function(n){var t=this.state,i=this.props,d=i.item,c=i.onDidMount,u=t.columnMeasureInfo;if((this.props.itemIndex!==n.itemIndex||this.props.item!==n.item||this.props.dragDropHelper!==n.dragDropHelper)&&(this._dragDropSubscription&&(this._dragDropSubscription.dispose(),delete this._dragDropSubscription),this.props.dragDropHelper&&this._root.current&&(this._dragDropSubscription=this.props.dragDropHelper.subscribe(this._root.current,this._events,this._getRowDragDropOptions()))),u&&u.index>=0&&this._cellMeasurer.current){var h=this._cellMeasurer.current.getBoundingClientRect().width;u.onMeasureDone(h),this.setState({columnMeasureInfo:void 0})}d&&c&&!this._onDidMountCalled&&(this._onDidMountCalled=!0,c(this))},s.prototype.componentWillUnmount=function(){var n=this.props,t=n.item,i=n.onWillUnmount;i&&t&&i(this),this._dragDropSubscription&&(this._dragDropSubscription.dispose(),delete this._dragDropSubscription),this._events.dispose()},s.prototype.shouldComponentUpdate=function(n,t){if(this.props.useReducedRowRenderer){var i=af(n);return this.state.selectionState.isSelected!==i.isSelected?!0:!xi(this.props,n)}else return!0},s.prototype.render=function(){var n=this.props,t=n.className,i=n.columns,d=i===void 0?rx:i,c=n.dragDropEvents,u=n.item,h=n.itemIndex,g=n.flatIndexOffset,w=g===void 0?2:g,m=n.id,x=n.onRenderCheck,_=x===void 0?this._onRenderCheck:x,v=n.onRenderDetailsCheckbox,b=n.onRenderItemColumn,C=n.getCellValueKey,k=n.selectionMode,L=n.rowWidth,T=L===void 0?0:L,N=n.checkboxVisibility,Y=n.getRowAriaLabel,A=n.getRowAriaDescription,I=n.getRowAriaDescribedBy,R=n.checkButtonAriaLabel,H=n.checkboxCellClassName,W=n.rowFieldsAs,K=W===void 0?E1:W,Z=n.selection,Q=n.indentWidth,B=n.enableUpdateAnimations,P=n.compact,X=n.theme,$=n.styles,ie=n.cellsByColumn,le=n.groupNestingDepth,V=n.useFastIcons,z=V===void 0?!0:V,J=n.cellStyleProps,ee=n.disabled,me=ee===void 0?!1:ee,te=n.group,G=this.state,ne=G.columnMeasureInfo,Ue=G.isDropping,Ge=this.state.selectionState,Ut=Ge.isSelected,ht=Ut===void 0?!1:Ut,Le=Ge.isSelectionModal,je=Le===void 0?!1:Le,$e=c?!!(c.canDrag&&c.canDrag(u)):void 0,Ct=Ue?this._droppingClassNames||I1:"",At=Y?Y(u):void 0,Mt=A?A(u):void 0,Wt=I?I(u):void 0,Xt=!!Z&&Z.canSelectItem(u,h)&&!me,ys=k===st.multiple,an=k!==st.none&&N!==Yo.hidden,fo=k===st.none?void 0:ht,Hn=te?h-te.startIndex+1:void 0,ki=te?te.count:void 0;this._classNames=F(F({},this._classNames),D1($,{theme:X,isSelected:ht,canSelect:!ys,anySelected:je,checkboxCellClassName:H,droppingClassName:Ct,className:t,compact:P,enableUpdateAnimations:B,cellStyleProps:J,disabled:me}));var rr={isMultiline:this._classNames.isMultiline,isRowHeader:this._classNames.isRowHeader,cell:this._classNames.cell,cellAnimation:this._classNames.cellAnimation,cellPadded:this._classNames.cellPadded,cellUnpadded:this._classNames.cellUnpadded,fields:this._classNames.fields};xi(this._rowClassNames||{},rr)||(this._rowClassNames=rr);var Ft=M.createElement(K,{rowClassNames:this._rowClassNames,rowHeaderId:m+"-header",cellsByColumn:ie,columns:d,item:u,itemIndex:h,columnStartIndex:(an?1:0)+(le?1:0),onRenderItemColumn:b,getCellValueKey:C,enableUpdateAnimations:B,cellStyleProps:J}),Go="row",or=this.props.role?this.props.role:Go;return this._ariaRowDescriptionId=zt("DetailsRow-description"),M.createElement(xd,F({"data-is-focusable":!0},pt(this.props,Yn),typeof $e=="boolean"?{"data-is-draggable":$e,draggable:$e}:{},{direction:kn.horizontal,elementRef:this._root,componentRef:this._focusZone,role:or,"aria-label":At,"aria-disabled":me||void 0,"aria-describedby":Mt?this._ariaRowDescriptionId:Wt,className:this._classNames.root,"data-selection-index":h,"data-selection-touch-invoke":!0,"data-selection-disabled":me||void 0,"data-item-index":h,"aria-rowindex":Hn===void 0?h+w:void 0,"aria-level":le&&le+1||void 0,"aria-posinset":Hn,"aria-setsize":ki,"data-automationid":"DetailsRow",style:{minWidth:T},"aria-selected":fo,allowFocusRoot:!0}),Mt?M.createElement("span",{key:"description",role:"presentation",hidden:!0,id:this._ariaRowDescriptionId},Mt):null,an&&M.createElement("div",{role:"gridcell","aria-colindex":1,"data-selection-toggle":!0,className:this._classNames.checkCell},_({id:m?m+"-checkbox":void 0,selected:ht,anySelected:je,"aria-label":R,"aria-labelledby":m?m+"-checkbox "+m+"-header":void 0,canSelect:Xt,compact:P,className:this._classNames.check,theme:X,isVisible:N===Yo.always,onRenderDetailsCheckbox:v,useFastIcons:z})),M.createElement(Jc,{indentWidth:Q,role:"gridcell",count:le-(this.props.collapseAllVisibility===Jp.hidden?1:0)}),u&&Ft,ne&&M.createElement("span",{role:"presentation",className:on(this._classNames.cellMeasurer,this._classNames.cell),ref:this._cellMeasurer},M.createElement(K,{rowClassNames:this._rowClassNames,rowHeaderId:m+"-header",columns:[ne.column],item:u,itemIndex:h,columnStartIndex:(an?1:0)+(le?1:0)+d.length,onRenderItemColumn:b,getCellValueKey:C})),M.createElement("span",{role:"checkbox",className:this._classNames.checkCover,"aria-checked":ht,"data-selection-toggle":!0}))},s.prototype.measureCell=function(n,t){var i=this.props.columns,d=i===void 0?rx:i,c=F({},d[n]);c.minWidth=0,c.maxWidth=999999,delete c.calculatedWidth,this.setState({columnMeasureInfo:{index:n,column:c,onMeasureDone:t}})},s.prototype.focus=function(n){n===void 0&&(n=!1);var t;return!!(!((t=this._focusZone.current)===null||t===void 0)&&t.focus(n))},s.prototype._onRenderCheck=function(n){return M.createElement(Wb,F({},n))},s.prototype._getRowDragDropOptions=function(){var n=this.props,t=n.item,i=n.itemIndex,d=n.dragDropEvents,c=n.eventsToRegister,u={eventMap:c,selectionIndex:i,context:{data:t,index:i},canDrag:d.canDrag,canDrop:d.canDrop,onDragStart:d.onDragStart,updateDropState:this._updateDroppingState,onDrop:d.onDrop,onDragEnd:d.onDragEnd,onDragOver:d.onDragOver};return u},s})(M.Component);function af(o){var s,n,t,i,d=o.itemIndex,c=o.selection;return{isSelected:!!(!((s=c)===null||s===void 0)&&s.isIndexSelected(d)),isSelectionModal:!!(!((i=(n=c)===null||n===void 0?void 0:(t=n).isModal)===null||i===void 0)&&i.call(t))}}var A1=Ze(T1,EE,void 0,{scope:"DetailsRow"}),P1=Je(),Ua=100,R1=2,F1=2,N1=function(o){var s,n=o.selection,t=o.ariaLabelForListHeader,i=o.ariaLabelForSelectAllCheckbox,d=o.ariaLabelForSelectionColumn,c=o.className,u=o.checkboxVisibility,h=o.compact,g=o.constrainMode,w=o.dragDropEvents,m=o.groups,x=o.groupProps,_=o.indentWidth,v=o.items,b=o.isPlaceholderData,C=o.isHeaderVisible,k=o.layoutMode,L=o.onItemInvoked,T=o.onItemContextMenu,N=o.onColumnHeaderClick,Y=o.onColumnHeaderContextMenu,A=o.selectionMode,I=A===void 0?n.mode:A,R=o.selectionPreservedOnEmptyClick,H=o.selectionZoneProps,W=o.ariaLabel,K=o.ariaLabelForGrid,Z=o.rowElementEventMap,Q=o.shouldApplyApplicationRole,B=Q===void 0?!1:Q,P=o.getKey,X=o.listProps,$=o.usePageCache,ie=o.onShouldVirtualize,le=o.viewport,V=o.minimumPixelsForDrag,z=o.getGroupHeight,J=o.styles,ee=o.theme,me=o.cellStyleProps,te=me===void 0?Si:me,G=o.onRenderCheckbox,ne=o.useFastIcons,Ue=o.dragDropHelper,Ge=o.adjustedColumns,Ut=o.isCollapsed,ht=o.isSizing,Le=o.isSomeGroupExpanded,je=o.version,$e=o.rootRef,Ct=o.listRef,At=o.focusZoneRef,Mt=o.columnReorderOptions,Wt=o.groupedListRef,Xt=o.headerRef,ys=o.onGroupExpandStateChanged,an=o.onColumnIsSizingChanged,fo=o.onRowDidMount,Hn=o.onRowWillUnmount,ki=o.disableSelectionZone,rr=o.isSelectedOnFocus,Ft=rr===void 0?!0:rr,Go=o.onColumnResized,or=o.onColumnAutoResized,$o=o.onToggleCollapse,Pt=o.onActiveRowChanged,ge=o.onBlur,se=o.rowElementEventMap,Ae=o.onRenderMissingItem,gt=o.onRenderItemColumn,Bt=o.getCellValueKey,sr=o.getRowAriaLabel,go=o.getRowAriaDescribedBy,Sd=o.checkButtonAriaLabel,Gs=o.checkButtonGroupAriaLabel,sl=o.checkboxCellClassName,$s=o.useReducedRowRenderer,_o=o.enableUpdateAnimations,Mi=o.enterModalSelectionOnTouch,Ko=o.onRenderDefaultRow,Ie=o.selectionZoneRef,qo="grid",to=o.role?o.role:qo,Er=zt("row"),pn=W1(m),Qe=B1(m),Ks=M.useMemo(function(){return F({renderedWindowsAhead:ht?0:R1,renderedWindowsBehind:ht?0:F1,getKey:P,version:je},X)},[ht,P,je,X]),_t=ps.none;if(I===st.single&&(_t=ps.hidden),I===st.multiple){var yo=x&&x.headerProps&&x.headerProps.isCollapsedGroupSelectVisible;yo===void 0&&(yo=!0);var Cd=yo||!m||Le;_t=Cd?ps.visible:ps.hidden}u===Yo.hidden&&(_t=ps.none);var _r=M.useCallback(function(at){return M.createElement(j1,F({},at))},[]),ln=M.useCallback(function(){return null},[]),ir=o.onRenderDetailsHeader,Dr=M.useMemo(function(){return ir?Oo(ir,_r):_r},[ir,_r]),Vt=o.onRenderDetailsFooter,ar=M.useMemo(function(){return Vt?Oo(Vt,ln):ln},[Vt,ln]),lr=M.useMemo(function(){return{columns:Ge,groupNestingDepth:pn,selection:n,selectionMode:I,viewport:le,checkboxVisibility:u,indentWidth:_,cellStyleProps:te}},[Ge,pn,n,I,le,u,_,te]),wo=Mt&&Mt.onDragEnd,qs=M.useCallback(function(at,Nt){var jt=at.dropLocation,wn=Hc.outside;if(wo){if(jt&&jt!==Hc.header)wn=jt;else if($e.current){var Tr=$e.current.getBoundingClientRect();Nt.clientX>Tr.left&&Nt.clientX<Tr.right&&Nt.clientY>Tr.top&&Nt.clientY<Tr.bottom&&(wn=Hc.surface)}wo(wn)}},[wo,$e]),sa=M.useMemo(function(){if(Mt)return F(F({},Mt),{onColumnDragEnd:qs})},[Mt,qs]),Jo=(C?1:0)+l1(m)+(v?v.length:0),ia=(_t!==ps.none?1:0)+(Ge?Ge.length:0)+(m?1:0),aa=M.useMemo(function(){return P1(J,{theme:ee,compact:h,isFixed:k===qc.fixedColumns,isHorizontalConstrained:g===$f.horizontalConstrained,className:c})},[J,ee,h,k,g,c]),Zo=x&&x.onRenderFooter,Js=M.useMemo(function(){return Zo?function(at,Nt){return Zo(F(F({},at),{columns:Ge,groupNestingDepth:pn,indentWidth:_,selection:n,selectionMode:I,viewport:le,checkboxVisibility:u,cellStyleProps:te}),Nt)}:void 0},[Zo,Ge,pn,_,n,I,le,u,te]),no=x&&x.onRenderHeader,il=M.useMemo(function(){return no?function(at,Nt){var jt=at.groupIndex,wn=m&&jt!==void 0&&m[jt]!==void 0?m[jt].key:void 0,Tr=wn!==void 0&&Qe[wn]?Qe[wn].totalRowCount:0;return no(F(F({},at),{columns:Ge,groupNestingDepth:pn,indentWidth:_,selection:n,selectionMode:u!==Yo.hidden?I:st.none,viewport:le,checkboxVisibility:u,cellStyleProps:te,ariaColSpan:Ge.length,ariaPosInSet:void 0,ariaSetSize:void 0,ariaRowCount:void 0,ariaRowIndex:jt!==void 0?Tr+(C?1:0):void 0}),Nt)}:function(at,Nt){var jt=at.groupIndex,wn=m&&jt!==void 0&&m[jt]!==void 0?m[jt].key:void 0,Tr=wn!==void 0&&Qe[wn]?Qe[wn].totalRowCount:0;return Nt(F(F({},at),{ariaColSpan:Ge.length,ariaPosInSet:void 0,ariaSetSize:void 0,ariaRowCount:void 0,ariaRowIndex:jt!==void 0?Tr+(C?1:0):void 0}))}},[no,Ge,m,pn,_,C,n,I,le,u,te,Qe]),kd=M.useMemo(function(){var at,Nt,jt;return F(F({},x),{role:to===qo?"rowgroup":"presentation",onRenderFooter:Js,onRenderHeader:il,headerProps:F(F({},(at=x)===null||at===void 0?void 0:at.headerProps),{selectAllButtonProps:F({"aria-label":Gs},(jt=(Nt=x)===null||Nt===void 0?void 0:Nt.headerProps)===null||jt===void 0?void 0:jt.selectAllButtonProps)})})},[x,Js,il,Gs,to]),al=bb(function(){return Et(function(at){var Nt=0;return at.forEach(function(jt){return Nt+=jt.calculatedWidth||jt.minWidth}),Nt})}),Qt=x&&x.collapseAllVisibility,ji=M.useMemo(function(){return al(Ge)},[Ge,al]),la=M.useCallback(function(at,Nt,jt,wn){var Tr=o.onRenderRow?Oo(o.onRenderRow,Ko):Ko,Li=wn?wn.key:void 0,ul=Li&&Qe[Li]?Qe[Li].numOfGroupHeadersBeforeItem:0,Ei=to===qo?void 0:"presentation",Zs={item:Nt,itemIndex:jt,flatIndexOffset:(C?2:1)+ul,compact:h,columns:Ge,groupNestingDepth:at,id:Er+"-"+jt,selectionMode:I,selection:n,onDidMount:fo,onWillUnmount:Hn,onRenderItemColumn:gt,getCellValueKey:Bt,eventsToRegister:se,dragDropEvents:w,dragDropHelper:Ue,viewport:le,checkboxVisibility:u,collapseAllVisibility:Qt,getRowAriaLabel:sr,getRowAriaDescribedBy:go,checkButtonAriaLabel:Sd,checkboxCellClassName:sl,useReducedRowRenderer:$s,indentWidth:_,cellStyleProps:te,onRenderDetailsCheckbox:G,enableUpdateAnimations:_o,rowWidth:ji,useFastIcons:ne,role:Ei};return Nt?Tr(Zs):Ae?Ae(jt,Zs):null},[h,Ge,I,n,Er,fo,Hn,gt,Bt,se,w,Ue,le,u,Qt,sr,go,C,Sd,sl,$s,_,te,G,_o,ne,Ko,Ae,o.onRenderRow,ji,to,Qe]),da=M.useCallback(function(at){return function(Nt,jt){return la(at,Nt,jt)}},[la]),ll=M.useCallback(function(at){return at.which===Wf(ke.right,ee)},[ee]),dl={componentRef:At,className:aa.focusZone,direction:kn.vertical,shouldEnterInnerZone:ll,onActiveElementChanged:Pt,shouldRaiseClicks:!1,onBlur:ge},cl=m&&(!((s=x)===null||s===void 0)&&s.groupedListAs)?V0(x.groupedListAs,Zv):Zv,Ir=m?M.createElement(cl,{focusZoneProps:dl,componentRef:Wt,groups:m,groupProps:kd,items:v,onRenderCell:la,role:"presentation",selection:n,selectionMode:u!==Yo.hidden?I:st.none,dragDropEvents:w,dragDropHelper:Ue,eventsToRegister:Z,listProps:Ks,onGroupExpandStateChanged:ys,usePageCache:$,onShouldVirtualize:ie,getGroupHeight:z,compact:h}):M.createElement(xd,F({},dl),M.createElement(qp,F({ref:Ct,role:"presentation",items:v,onRenderCell:da(0),usePageCache:$,onShouldVirtualize:ie},Ks))),Xo=M.useCallback(function(at){at.which===ke.down&&At.current&&At.current.focus()&&(Ft&&n.getSelectedIndices().length===0&&n.setIndexSelected(0,!0,!1),at.preventDefault(),at.stopPropagation())},[n,At,Ft]),Qo=M.useCallback(function(at){at.which===ke.up&&!at.altKey&&Xt.current&&Xt.current.focus()&&(at.preventDefault(),at.stopPropagation())},[Xt]);return M.createElement("div",F({ref:$e,className:aa.root,"data-automationid":"DetailsList","data-is-scrollable":"false","aria-label":W},B?{role:"application"}:{}),M.createElement(tu,null),M.createElement("div",{role:to,"aria-label":K,"aria-rowcount":b?-1:Jo,"aria-colcount":ia,"aria-readonly":"true","aria-busy":b},M.createElement("div",{onKeyDown:Xo,role:"presentation",className:aa.headerWrapper},C&&Dr({componentRef:Xt,selectionMode:I,layoutMode:k,selection:n,columns:Ge,onColumnClick:N,onColumnContextMenu:Y,onColumnResized:Go,onColumnIsSizingChanged:an,onColumnAutoResized:or,groupNestingDepth:pn,isAllCollapsed:Ut,onToggleCollapseAll:$o,ariaLabel:t,ariaLabelForSelectAllCheckbox:i,ariaLabelForSelectionColumn:d,selectAllVisibility:_t,collapseAllVisibility:x&&x.collapseAllVisibility,viewport:le,columnReorderProps:sa,minimumPixelsForDrag:V,cellStyleProps:te,checkboxVisibility:u,indentWidth:_,onRenderDetailsCheckbox:G,rowWidth:al(Ge),useFastIcons:ne},Dr)),M.createElement("div",{onKeyDown:Qo,role:"presentation",className:aa.contentWrapper},ki?Ir:M.createElement(SE,F({ref:Ie,selection:n,selectionPreservedOnEmptyClick:R,selectionMode:I,isSelectedOnFocus:Ft,selectionClearedOnEscapePress:Ft,toggleWithoutModifierPressed:!Ft,onItemInvoked:L,onItemContextMenu:T,enterModalOnTouch:Mi},H||{}),Ir)),ar(F({},lr))))},O1=(function(o){Ne(s,o);function s(n){var t=o.call(this,n)||this;return t._root=M.createRef(),t._header=M.createRef(),t._groupedList=M.createRef(),t._list=M.createRef(),t._focusZone=M.createRef(),t._selectionZone=M.createRef(),t._onRenderRow=function(i,d){return M.createElement(A1,F({},i))},t._getDerivedStateFromProps=function(i,d){var c=t.props,u=c.checkboxVisibility,h=c.items,g=c.setKey,w=c.selectionMode,m=w===void 0?t._selection.mode:w,x=c.columns,_=c.viewport,v=c.compact,b=c.dragDropEvents,C=(t.props.groupProps||{}).isAllGroupsCollapsed,k=C===void 0?void 0:C,L=i.viewport&&i.viewport.width||0,T=_&&_.width||0,N=i.setKey!==g||i.setKey===void 0,Y=!1;i.layoutMode!==t.props.layoutMode&&(Y=!0);var A=d;return N&&(t._initialFocusedIndex=i.initialFocusedIndex,A=F(F({},A),{focusedItemIndex:t._initialFocusedIndex!==void 0?t._initialFocusedIndex:-1})),!t.props.disableSelectionZone&&i.items!==h&&t._selection.setItems(i.items,N),(i.checkboxVisibility!==u||i.columns!==x||L!==T||i.compact!==v)&&(Y=!0),A=F(F({},A),t._adjustColumns(i,A,!0)),i.selectionMode!==m&&(Y=!0),k===void 0&&i.groupProps&&i.groupProps.isAllGroupsCollapsed!==void 0&&(A=F(F({},A),{isCollapsed:i.groupProps.isAllGroupsCollapsed,isSomeGroupExpanded:!i.groupProps.isAllGroupsCollapsed})),i.dragDropEvents!==b&&(t._dragDropHelper&&t._dragDropHelper.dispose(),t._dragDropHelper=i.dragDropEvents?new Ly({selection:t._selection,minimumPixelsForDrag:i.minimumPixelsForDrag}):void 0,Y=!0),Y&&(A=F(F({},A),{version:{}})),A},t._onGroupExpandStateChanged=function(i){t.setState({isSomeGroupExpanded:i})},t._onColumnIsSizingChanged=function(i,d){t.setState({isSizing:d})},t._onRowDidMount=function(i){var d=i.props,c=d.item,u=d.itemIndex,h=t._getItemKey(c,u);t._activeRows[h]=i,t._setFocusToRowIfPending(i);var g=t.props.onRowDidMount;g&&g(c,u)},t._onRowWillUnmount=function(i){var d=t.props.onRowWillUnmount,c=i.props,u=c.item,h=c.itemIndex,g=t._getItemKey(u,h);delete t._activeRows[g],d&&d(u,h)},t._onToggleCollapse=function(i){t.setState({isCollapsed:i}),t._groupedList.current&&t._groupedList.current.toggleCollapseAll(i)},t._onColumnResized=function(i,d,c){var u=Math.max(i.minWidth||Ua,d);t.props.onColumnResize&&t.props.onColumnResize(i,u,c),t._rememberCalculatedWidth(i,u),t.setState(F(F({},t._adjustColumns(t.props,t.state,!0,c)),{version:{}}))},t._onColumnAutoResized=function(i,d){var c=0,u=0,h=Object.keys(t._activeRows).length;for(var g in t._activeRows)if(t._activeRows.hasOwnProperty(g)){var w=t._activeRows[g];w.measureCell(d,function(m){c=Math.max(c,m),u++,u===h&&t._onColumnResized(i,c,d)})}},t._onActiveRowChanged=function(i,d){var c=t.props,u=c.items,h=c.onActiveItemChanged;if(i&&i.getAttribute("data-item-index")){var g=Number(i.getAttribute("data-item-index"));g>=0&&(h&&h(u[g],g,d),t.setState({focusedItemIndex:g}))}},t._onBlur=function(i){t.setState({focusedItemIndex:-1})},St(t),t._async=new Wn(t),t._activeRows={},t._columnOverrides={},t.state={focusedItemIndex:-1,lastWidth:0,adjustedColumns:t._getAdjustedColumns(n,void 0),isSizing:!1,isCollapsed:n.groupProps&&n.groupProps.isAllGroupsCollapsed,isSomeGroupExpanded:n.groupProps&&!n.groupProps.isAllGroupsCollapsed,version:{},getDerivedStateFromProps:t._getDerivedStateFromProps},t._selection=n.selection||new kM({onSelectionChanged:void 0,getKey:n.getKey,selectionMode:n.selectionMode}),t.props.disableSelectionZone||t._selection.setItems(n.items,!1),t._dragDropHelper=n.dragDropEvents?new Ly({selection:t._selection,minimumPixelsForDrag:n.minimumPixelsForDrag}):void 0,t._initialFocusedIndex=n.initialFocusedIndex,t}return s.getDerivedStateFromProps=function(n,t){return t.getDerivedStateFromProps(n,t)},s.prototype.scrollToIndex=function(n,t,i){this._list.current&&this._list.current.scrollToIndex(n,t,i),this._groupedList.current&&this._groupedList.current.scrollToIndex(n,t,i)},s.prototype.focusIndex=function(n,t,i,d){t===void 0&&(t=!1);var c=this.props.items[n];if(c){this.scrollToIndex(n,i,d);var u=this._getItemKey(c,n),h=this._activeRows[u];h&&this._setFocusToRow(h,t)}},s.prototype.getStartItemIndexInView=function(){return this._list&&this._list.current?this._list.current.getStartItemIndexInView():this._groupedList&&this._groupedList.current?this._groupedList.current.getStartItemIndexInView():0},s.prototype.componentWillUnmount=function(){this._dragDropHelper&&this._dragDropHelper.dispose(),this._async.dispose()},s.prototype.componentDidUpdate=function(n,t){if(this._notifyColumnsResized(),this._initialFocusedIndex!==void 0){var i=this.props.items[this._initialFocusedIndex];if(i){var d=this._getItemKey(i,this._initialFocusedIndex),c=this._activeRows[d];c&&this._setFocusToRowIfPending(c)}}if(this.props.items!==n.items&&this.props.items.length>0&&this.state.focusedItemIndex!==-1&&!un(this._root.current,document.activeElement,!1)){var u=this.state.focusedItemIndex<this.props.items.length?this.state.focusedItemIndex:this.props.items.length-1,i=this.props.items[u],d=this._getItemKey(i,this.state.focusedItemIndex),c=this._activeRows[d];c?this._setFocusToRow(c):this._initialFocusedIndex=u}this.props.onDidUpdate&&this.props.onDidUpdate(this)},s.prototype.render=function(){return M.createElement(N1,F({},this.props,this.state,{selection:this._selection,dragDropHelper:this._dragDropHelper,rootRef:this._root,listRef:this._list,groupedListRef:this._groupedList,focusZoneRef:this._focusZone,headerRef:this._header,selectionZoneRef:this._selectionZone,onGroupExpandStateChanged:this._onGroupExpandStateChanged,onColumnIsSizingChanged:this._onColumnIsSizingChanged,onRowDidMount:this._onRowDidMount,onRowWillUnmount:this._onRowWillUnmount,onColumnResized:this._onColumnResized,onColumnAutoResized:this._onColumnAutoResized,onToggleCollapse:this._onToggleCollapse,onActiveRowChanged:this._onActiveRowChanged,onBlur:this._onBlur,onRenderDefaultRow:this._onRenderRow}))},s.prototype.forceUpdate=function(){o.prototype.forceUpdate.call(this),this._forceListUpdates()},s.prototype._getGroupNestingDepth=function(){for(var n=this.props.groups,t=0,i=n;i&&i.length>0;)t++,i=i[0].children;return t},s.prototype._setFocusToRowIfPending=function(n){var t=n.props.itemIndex;this._initialFocusedIndex!==void 0&&t===this._initialFocusedIndex&&(this._setFocusToRow(n),delete this._initialFocusedIndex)},s.prototype._setFocusToRow=function(n,t){t===void 0&&(t=!1),this._selectionZone.current&&this._selectionZone.current.ignoreNextFocus(),this._async.setTimeout(function(){n.focus(t)},0)},s.prototype._forceListUpdates=function(){this._groupedList.current&&this._groupedList.current.forceUpdate(),this._list.current&&this._list.current.forceUpdate()},s.prototype._notifyColumnsResized=function(){this.state.adjustedColumns.forEach(function(n){n.onColumnResize&&n.onColumnResize(n.currentWidth)})},s.prototype._adjustColumns=function(n,t,i,d){var c=this._getAdjustedColumns(n,t,i,d),u=this.props.viewport,h=u&&u.width?u.width:0;return F(F({},t),{adjustedColumns:c,lastWidth:h})},s.prototype._getAdjustedColumns=function(n,t,i,d){var c=this,u=n.items,h=n.layoutMode,g=n.selectionMode,w=n.viewport,m=w&&w.width?w.width:0,x=n.columns,_=this.props?this.props.columns:[],v=t?t.lastWidth:-1,b=t?t.lastSelectionMode:void 0;if(!i&&v===m&&b===g&&(!_||x===_))return x||[];x=x||Y1(u,!0);var C;return h===qc.fixedColumns?(C=this._getFixedColumns(x,m,n),C.forEach(function(k){c._rememberCalculatedWidth(k,k.calculatedWidth)})):(C=this._getJustifiedColumns(x,m,n),C.forEach(function(k){c._getColumnOverride(k.key).currentWidth=k.calculatedWidth})),C},s.prototype._getFixedColumns=function(n,t,i){var d=this,c=this.props,u=c.selectionMode,h=u===void 0?this._selection.mode:u,g=c.checkboxVisibility,w=c.flexMargin,m=c.skipViewportMeasures,x=t-(w||0),_=0;n.forEach(function(k){m||!k.flexGrow?x-=k.maxWidth||k.minWidth||Ua:(x-=k.minWidth||Ua,_+=k.flexGrow),x-=lf(k,i,!0)});var v=h!==st.none&&g!==Yo.hidden?Kf:0,b=this._getGroupNestingDepth()*Zp;x-=v+b;var C=x/_;return m||n.forEach(function(k){var L=F(F({},k),d._columnOverrides[k.key]);if(L.flexGrow&&L.maxWidth){var T=L.flexGrow*C+L.minWidth,N=T-L.maxWidth;N>0&&(x+=N,_-=N/(T-L.minWidth)*L.flexGrow)}}),C=x>0?x/_:0,n.map(function(k){var L=F(F({},k),d._columnOverrides[k.key]);return!m&&L.flexGrow&&x<=0||L.calculatedWidth||(!m&&L.flexGrow?(L.calculatedWidth=L.minWidth+L.flexGrow*C,L.calculatedWidth=Math.min(L.calculatedWidth,L.maxWidth||Number.MAX_VALUE)):L.calculatedWidth=L.maxWidth||L.minWidth||Ua),L})},s.prototype._getJustifiedColumns=function(n,t,i){var d=this,c=i.selectionMode,u=c===void 0?this._selection.mode:c,h=i.checkboxVisibility,g=u!==st.none&&h!==Yo.hidden?Kf:0,w=this._getGroupNestingDepth()*Zp,m=0,x=0,_=t-(g+w),v=n.map(function(W,K){var Z=F(F({},W),{calculatedWidth:W.minWidth||Ua}),Q=F(F({},Z),d._columnOverrides[W.key]);return Z.isCollapsible||Z.isCollapsable||(x+=lf(Z,i)),m+=lf(Q,i),Q});if(x>_)return v;for(var b=v.length-1;b>=0&&m>_;){var C=v[b],k=C.minWidth||Ua,L=m-_;if(C.calculatedWidth-k>=L||!(C.isCollapsible||C.isCollapsable)){var T=C.calculatedWidth;C.calculatedWidth=Math.max(C.calculatedWidth-L,k),m-=T-C.calculatedWidth}else m-=lf(C,i),v.splice(b,1);b--}for(var N=0;N<v.length&&m<_;N++){var C=v[N],Y=N===v.length-1,A=this._columnOverrides[C.key];if(!(A&&A.calculatedWidth&&!Y)){var I=_-m,R=void 0;if(Y)R=I;else{var H=C.maxWidth,k=C.minWidth||H||Ua;R=H?Math.min(I,H-k):I}C.calculatedWidth=C.calculatedWidth+R,m+=R}}return v},s.prototype._rememberCalculatedWidth=function(n,t){var i=this._getColumnOverride(n.key);i.calculatedWidth=t,i.currentWidth=t},s.prototype._getColumnOverride=function(n){return this._columnOverrides[n]=this._columnOverrides[n]||{}},s.prototype._getItemKey=function(n,t){var i=this.props.getKey,d=void 0;return n&&(d=n.key),i&&(d=i(n,t)),d||(d=t),d},s.defaultProps={layoutMode:qc.justified,selectionMode:st.multiple,constrainMode:$f.horizontalConstrained,checkboxVisibility:Yo.onHover,isHeaderVisible:!0,compact:!1,useFastIcons:!0},s=_s([yE],s),s})(M.Component);function Y1(o,s,n,t,i,d,c){var u=[];if(o&&o.length){var h=o[0];for(var g in h)h.hasOwnProperty(g)&&u.push({key:g,name:g,fieldName:g,minWidth:Ua,maxWidth:300,isCollapsable:!!u.length,isCollapsible:!!u.length,isMultiline:!1,isSorted:t===g,isSortedDescending:!1,isRowHeader:!1,columnActionsMode:Ns.clickable,isResizable:s,onColumnClick:n,isGrouped:d===g})}return u}function lf(o,s,n){var t=s.cellStyleProps,i=t===void 0?Si:t;return(n?0:o.calculatedWidth)+i.cellLeftPadding+i.cellRightPadding+(o.isPadded?i.cellExtraRightPadding:0)}function W1(o){for(var s=0,n=o;n&&n.length>0;)s++,n=n[0].children;return s}function B1(o){return M.useMemo(function(){var s={};if(o)for(var n=1,t=1,i=0,d=o;i<d.length;i++){var c=d[i],u=c.key;s[u]={numOfGroupHeadersBeforeItem:t,totalRowCount:n},t++,n+=c.count+1}return s},[o])}var H1={root:"ms-DetailsList",compact:"ms-DetailsList--Compact",contentWrapper:"ms-DetailsList-contentWrapper",headerWrapper:"ms-DetailsList-headerWrapper",isFixed:"is-fixed",isHorizontalConstrained:"is-horizontalConstrained",listCell:"ms-List-cell"},z1=function(o){var s,n,t=o.theme,i=o.className,d=o.isHorizontalConstrained,c=o.compact,u=o.isFixed,h=t.semanticColors,g=it(H1,t);return{root:[g.root,t.fonts.small,{position:"relative",color:h.listText,selectors:(s={},s["& ."+g.listCell]={minHeight:38,wordBreak:"break-word"},s)},u&&g.isFixed,c&&[g.compact,{selectors:(n={},n["."+g.listCell]={minHeight:32},n)}],d&&[g.isHorizontalConstrained,{overflowX:"auto",overflowY:"visible",WebkitOverflowScrolling:"touch"}],i],focusZone:[{display:"inline-block",minWidth:"100%",minHeight:1}],headerWrapper:g.headerWrapper,contentWrapper:g.contentWrapper}},U1=Ze(O1,z1,void 0,{scope:"DetailsList"}),V1=function(o){var s=o.theme,n=s.palette;return{root:{position:"relative",selectors:{":after":{content:'""',position:"absolute",top:0,right:0,bottom:0,left:0,backgroundImage:"linear-gradient(to bottom, transparent 30%, "+n.whiteTranslucent40+" 65%,"+n.white+" 100%)"}}}}},Hs;(function(o){o[o.normal=0]="normal",o[o.largeHeader=1]="largeHeader",o[o.close=2]="close"})(Hs||(Hs={}));var Bb=ms.durationValue2,G1={root:"ms-Modal",main:"ms-Dialog-main",scrollableContent:"ms-Modal-scrollableContent",isOpen:"is-open",layer:"ms-Modal-Layer"},$1=function(o){var s,n=o.className,t=o.containerClassName,i=o.scrollableContentClassName,d=o.isOpen,c=o.isVisible,u=o.hasBeenOpened,h=o.modalRectangleTop,g=o.theme,w=o.topOffsetFixed,m=o.isModeless,x=o.layerClassName,_=o.isDefaultDragHandle,v=g.palette,b=g.effects,C=g.fonts,k=it(G1,g);return{root:[k.root,C.medium,{backgroundColor:"transparent",position:m?"absolute":"fixed",height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",opacity:0,pointerEvents:"none",transition:"opacity "+Bb},w&&typeof h=="number"&&u&&{alignItems:"flex-start"},d&&k.isOpen,c&&{opacity:1,pointerEvents:"auto"},n],main:[k.main,{boxShadow:b.elevation64,borderRadius:b.roundedCorner2,backgroundColor:v.white,boxSizing:"border-box",position:"relative",textAlign:"left",outline:"3px solid transparent",maxHeight:"calc(100% - 32px)",maxWidth:"calc(100% - 32px)",minHeight:"176px",minWidth:"288px",overflowY:"auto",zIndex:m?Bp.Layer:void 0},w&&typeof h=="number"&&u&&{top:h},_&&{cursor:"move"},t],scrollableContent:[k.scrollableContent,{overflowY:"auto",flexGrow:1,maxHeight:"100vh",selectors:(s={},s["@supports (-webkit-overflow-scrolling: touch)"]={maxHeight:window.innerHeight},s)},i],layer:m&&[x,k.layer,{position:"static",width:"unset",height:"unset"}],keyboardMoveIconContainer:{position:"absolute",display:"flex",justifyContent:"center",width:"100%",padding:"3px 0px"},keyboardMoveIcon:{fontSize:C.xLargePlus.fontSize,width:"24px"}}},K1=Je(),q1=(function(o){Ne(s,o);function s(n){var t=o.call(this,n)||this;St(t);var i=t.props.allowTouchBodyScroll,d=i===void 0?!1:i;return t._allowTouchBodyScroll=d,t}return s.prototype.componentDidMount=function(){!this._allowTouchBodyScroll&&e5()},s.prototype.componentWillUnmount=function(){!this._allowTouchBodyScroll&&t5()},s.prototype.render=function(){var n=this.props,t=n.isDarkThemed,i=n.className,d=n.theme,c=n.styles,u=pt(this.props,Yn),h=K1(c,{theme:d,className:i,isDark:t});return M.createElement("div",F({},u,{className:h.root}))},s})(M.Component),J1={root:"ms-Overlay",rootDark:"ms-Overlay--dark"},Z1=function(o){var s,n=o.className,t=o.theme,i=o.isNone,d=o.isDark,c=t.palette,u=it(J1,t);return{root:[u.root,t.fonts.medium,{backgroundColor:c.whiteTranslucent40,top:0,right:0,bottom:0,left:0,position:"absolute",selectors:(s={},s[_e]={border:"1px solid WindowText",opacity:0},s)},i&&{visibility:"hidden"},d&&[u.rootDark,{backgroundColor:c.blackTranslucent40}],n]}},yg=Ze(q1,Z1,void 0,{scope:"Overlay"}),X1=Et(function(o,s){return{root:Bs(o,s&&{touchAction:"none",selectors:{"& *":{userSelect:"none"}}})}}),Mp={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}},Q1=(function(o){Ne(s,o);function s(n){var t=o.call(this,n)||this;return t._currentEventType=Mp.mouse,t._events=[],t._onMouseDown=function(i){var d=M.Children.only(t.props.children).props.onMouseDown;return d&&d(i),t._currentEventType=Mp.mouse,t._onDragStart(i)},t._onMouseUp=function(i){var d=M.Children.only(t.props.children).props.onMouseUp;return d&&d(i),t._currentEventType=Mp.mouse,t._onDragStop(i)},t._onTouchStart=function(i){var d=M.Children.only(t.props.children).props.onTouchStart;return d&&d(i),t._currentEventType=Mp.touch,t._onDragStart(i)},t._onTouchEnd=function(i){var d=M.Children.only(t.props.children).props.onTouchEnd;d&&d(i),t._currentEventType=Mp.touch,t._onDragStop(i)},t._onDragStart=function(i){if(typeof i.button=="number"&&i.button!==0)return!1;if(!(t.props.handleSelector&&!t._matchesSelector(i.target,t.props.handleSelector)||t.props.preventDragSelector&&t._matchesSelector(i.target,t.props.preventDragSelector))){t._touchId=t._getTouchId(i);var d=t._getControlPosition(i);if(d!==void 0){var c=t._createDragDataFromPosition(d);t.props.onStart&&t.props.onStart(i,c),t.setState({isDragging:!0,lastPosition:d}),t._events=[hs(document.body,t._currentEventType.move,t._onDrag,!0),hs(document.body,t._currentEventType.stop,t._onDragStop,!0)]}}},t._onDrag=function(i){i.type==="touchmove"&&i.preventDefault();var d=t._getControlPosition(i);if(d){var c=t._createUpdatedDragData(t._createDragDataFromPosition(d)),u=c.position;t.props.onDragChange&&t.props.onDragChange(i,c),t.setState({position:u,lastPosition:d})}},t._onDragStop=function(i){if(t.state.isDragging){var d=t._getControlPosition(i);if(d){var c=t._createDragDataFromPosition(d);t.setState({isDragging:!1,lastPosition:void 0}),t.props.onStop&&t.props.onStop(i,c),t.props.position&&t.setState({position:t.props.position}),t._events.forEach(function(u){return u()})}}},t.state={isDragging:!1,position:t.props.position||{x:0,y:0},lastPosition:void 0},t}return s.prototype.componentDidUpdate=function(n){this.props.position&&(!n.position||this.props.position!==n.position)&&this.setState({position:this.props.position})},s.prototype.componentWillUnmount=function(){this._events.forEach(function(n){return n()})},s.prototype.render=function(){var n=M.Children.only(this.props.children),t=n.props,i=this.props.position,d=this.state,c=d.position,u=d.isDragging,h=c.x,g=c.y;return i&&!u&&(h=i.x,g=i.y),M.cloneElement(n,{style:F(F({},t.style),{transform:"translate("+h+"px, "+g+"px)"}),className:X1(t.className,this.state.isDragging).root,onMouseDown:this._onMouseDown,onMouseUp:this._onMouseUp,onTouchStart:this._onTouchStart,onTouchEnd:this._onTouchEnd})},s.prototype._getControlPosition=function(n){var t=this._getActiveTouch(n);if(!(this._touchId!==void 0&&!t)){var i=t||n;return{x:i.clientX,y:i.clientY}}},s.prototype._getActiveTouch=function(n){return n.targetTouches&&this._findTouchInTouchList(n.targetTouches)||n.changedTouches&&this._findTouchInTouchList(n.changedTouches)},s.prototype._getTouchId=function(n){var t=n.targetTouches&&n.targetTouches[0]||n.changedTouches&&n.changedTouches[0];if(t)return t.identifier},s.prototype._matchesSelector=function(n,t){if(!n||n===document.body)return!1;var i=n.matches||n.webkitMatchesSelector||n.msMatchesSelector;return i?i.call(n,t)||this._matchesSelector(n.parentElement,t):!1},s.prototype._findTouchInTouchList=function(n){if(this._touchId!==void 0){for(var t=0;t<n.length;t++)if(n[t].identifier===this._touchId)return n[t]}},s.prototype._createDragDataFromPosition=function(n){var t=this.state.lastPosition;return t===void 0?{delta:{x:0,y:0},lastPosition:n,position:n}:{delta:{x:n.x-t.x,y:n.y-t.y},lastPosition:t,position:n}},s.prototype._createUpdatedDragData=function(n){var t=this.state.position;return{position:{x:t.x+n.delta.x,y:t.y+n.delta.y},delta:n.delta,lastPosition:t}},s})(M.Component),eD={eventBubblingEnabled:!1},tD=Je(),nD=(function(o){Ne(s,o);function s(n){var t=o.call(this,n)||this;t._focusTrapZone=M.createRef(),t._focusTrapZoneMergedRef=Ky(),t._registerInitialModalPosition=function(){var c,u=document.querySelector("[data-id="+t.state.id+"]");if(u){var h=u.getBoundingClientRect();!((c=t.props.dragOptions)===null||c===void 0)&&c.keepInBounds&&!t._minClampedPosition&&!t._maxClampedPosition&&(t._minClampedPosition={x:-h.x,y:-h.y},t._maxClampedPosition={x:h.x,y:h.y}),t.setState({modalRectangleTop:h.top})}},t._allowScrollOnModal=function(c){c?t._allowTouchBodyScroll?Y0(c,t._events):O0(c,t._events):t._events.off(t._scrollableContent),t._scrollableContent=c},t._onModalContextMenuClose=function(){t.setState({isModalMenuOpen:!1})},t._onModalClose=function(){t._lastSetX=0,t._lastSetY=0,t.setState({isModalMenuOpen:!1,isInKeyboardMoveMode:!1,isOpen:!1,x:0,y:0}),t.props.dragOptions&&t._hasRegisteredKeyUp&&t._events.off(window,"keyup",t._onKeyUp,!0),t.props.onDismissed&&t.props.onDismissed()},t._onDragStart=function(){t.setState({isModalMenuOpen:!1,isInKeyboardMoveMode:!1})},t._onDrag=function(c,u){var h=t.state,g=h.x,w=h.y;t.setState(t._getClampedPosition({x:g+u.delta.x,y:w+u.delta.y}))},t._onDragStop=function(){t.focus()},t._onKeyUp=function(c){c.altKey&&c.ctrlKey&&c.keyCode===ke.space&&un(t._scrollableContent,c.target)&&(t.setState({isModalMenuOpen:!t.state.isModalMenuOpen}),c.preventDefault(),c.stopPropagation())},t._onKeyDown=function(c){if(c.altKey&&c.ctrlKey&&c.keyCode===ke.space){c.preventDefault(),c.stopPropagation();return}if(t.state.isModalMenuOpen&&(c.altKey||c.keyCode===ke.escape)&&t.setState({isModalMenuOpen:!1}),t.state.isInKeyboardMoveMode&&(c.keyCode===ke.escape||c.keyCode===ke.enter)&&(t.setState({isInKeyboardMoveMode:!1}),c.preventDefault(),c.stopPropagation()),t.state.isInKeyboardMoveMode){var u=!0,h=t._getMoveDelta(c);switch(c.keyCode){case ke.escape:t.setState({x:t._lastSetX,y:t._lastSetY});case ke.enter:{t._lastSetX=0,t._lastSetY=0,t.setState({isInKeyboardMoveMode:!1});break}case ke.up:{t.setState({y:t._getClampedPositionY(t.state.y-h)});break}case ke.down:{t.setState({y:t._getClampedPositionY(t.state.y+h)});break}case ke.left:{t.setState({x:t._getClampedPositionX(t.state.x-h)});break}case ke.right:{t.setState({x:t._getClampedPositionX(t.state.x+h)});break}default:u=!1}u&&(c.preventDefault(),c.stopPropagation())}},t._onEnterKeyboardMoveMode=function(){t._lastSetX=t.state.x,t._lastSetY=t.state.y,t.setState({isInKeyboardMoveMode:!0,isModalMenuOpen:!1}),t._events.on(window,"keydown",t._onKeyDown,!0)},t._onExitKeyboardMoveMode=function(c){var u,h,g;(g=(u=t.props.focusTrapZoneProps)===null||u===void 0?void 0:(h=u).onBlur)===null||g===void 0||g.call(h,c),t._lastSetX=0,t._lastSetY=0,t.setState({isInKeyboardMoveMode:!1}),t._events.off(window,"keydown",t._onKeyDown,!0)},t._registerForKeyUp=function(){t._hasRegisteredKeyUp||(t._events.on(window,"keyup",t._onKeyUp,!0),t._hasRegisteredKeyUp=!0)},t._async=new Wn(t),t._events=new Yt(t),St(t),t.state={id:zt("Modal"),isOpen:n.isOpen,isVisible:n.isOpen,hasBeenOpened:n.isOpen,x:0,y:0},t._lastSetX=0,t._lastSetY=0;var i=t.props.allowTouchBodyScroll,d=i===void 0?!1:i;return t._allowTouchBodyScroll=d,t}return s.prototype.UNSAFE_componentWillReceiveProps=function(n){clearTimeout(this._onModalCloseTimer),n.isOpen&&(this.state.isOpen?this.setState({hasBeenOpened:!0,isVisible:!0}):(this.setState({isOpen:!0}),n.dragOptions&&this._registerForKeyUp())),!n.isOpen&&this.state.isOpen&&(this._onModalCloseTimer=this._async.setTimeout(this._onModalClose,parseFloat(Bb)*1e3),this.setState({isVisible:!1}))},s.prototype.componentDidMount=function(){var n=this;this.state.isOpen&&this.state.isVisible&&(this._registerForKeyUp(),requestAnimationFrame(function(){return setTimeout(n._registerInitialModalPosition,0)}))},s.prototype.componentDidUpdate=function(n,t){var i=this;!n.isOpen&&!t.isVisible&&this.setState({isVisible:!0}),!n.isOpen&&this.props.isOpen&&requestAnimationFrame(function(){return setTimeout(i._registerInitialModalPosition,0)})},s.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},s.prototype.render=function(){var n,t,i,d,c,u,h,g,w,m,x,_,v,b,C,k=this.props,L=k.className,T=k.containerClassName,N=k.scrollableContentClassName,Y=k.elementToFocusOnDismiss,A=k.firstFocusableSelector,I=k.focusTrapZoneProps,R=k.forceFocusInsideTrap,H=k.ignoreExternalFocusing,W=k.isBlocking,K=k.isClickableOutsideFocusTrap,Z=k.isDarkOverlay,Q=k.onDismiss,B=k.layerProps,P=k.overlay,X=k.responsiveMode,$=k.titleAriaId,ie=k.styles,le=k.subtitleAriaId,V=k.theme,z=k.topOffsetFixed,J=k.onLayerDidMount,ee=k.isModeless,me=k.isAlert,te=k.dragOptions,G=k.enableAriaHiddenSiblings,ne=this.state,Ue=ne.isOpen,Ge=ne.isVisible,Ut=ne.hasBeenOpened,ht=ne.modalRectangleTop,Le=ne.x,je=ne.y,$e=ne.isInKeyboardMoveMode;if(!Ue)return null;var Ct=B===void 0?"":B.className,At=me??(W&&!ee),Mt=tD(ie,{theme:V,className:L,containerClassName:T,scrollableContentClassName:N,isOpen:Ue,isVisible:Ge,hasBeenOpened:Ut,modalRectangleTop:ht,topOffsetFixed:z,isModeless:ee,layerClassName:Ct,isDefaultDragHandle:te&&!te.dragHandleSelector}),Wt=F(F(F({},eD),this.props.layerProps),{onLayerDidMount:B&&B.onLayerDidMount?B.onLayerDidMount:J,insertFirst:ee,className:Mt.layer}),Xt=M.createElement(ru,F({},I,{"data-id":this.state.id,componentRef:this._focusTrapZoneMergedRef(this._focusTrapZone,(n=I)===null||n===void 0?void 0:n.componentRef),className:on(Mt.main,(t=I)===null||t===void 0?void 0:t.className),elementToFocusOnDismiss:(d=(i=I)===null||i===void 0?void 0:i.elementToFocusOnDismiss,d??Y),isClickableOutsideFocusTrap:(u=(c=I)===null||c===void 0?void 0:c.isClickableOutsideFocusTrap,u??(ee||K||!W)),ignoreExternalFocusing:(g=(h=I)===null||h===void 0?void 0:h.ignoreExternalFocusing,g??H),forceFocusInsideTrap:(m=(w=I)===null||w===void 0?void 0:w.forceFocusInsideTrap,(m??R)&&!ee),firstFocusableSelector:((x=I)===null||x===void 0?void 0:x.firstFocusableSelector)||A,focusPreviouslyFocusedInnerElement:(v=(_=I)===null||_===void 0?void 0:_.focusPreviouslyFocusedInnerElement,v??!0),onBlur:$e?this._onExitKeyboardMoveMode:void 0,enableAriaHiddenSiblings:(C=(b=I)===null||b===void 0?void 0:b.enableAriaHiddenSiblings,C??G)}),te&&$e&&M.createElement("div",{className:Mt.keyboardMoveIconContainer},te.keyboardMoveIconProps?M.createElement(ze,F({},te.keyboardMoveIconProps)):M.createElement(ze,{iconName:"move",className:Mt.keyboardMoveIcon})),M.createElement("div",{ref:this._allowScrollOnModal,className:Mt.scrollableContent,"data-is-scrollable":!0},te&&this.state.isModalMenuOpen&&M.createElement(te.menu,{items:[{key:"move",text:te.moveMenuItemText,onClick:this._onEnterKeyboardMoveMode},{key:"close",text:te.closeMenuItemText,onClick:this._onModalClose}],onDismiss:this._onModalContextMenuClose,alignTargetEdge:!0,coverTarget:!0,directionalHint:Ot.topLeftEdge,directionalHintFixed:!0,shouldFocusOnMount:!0,target:this._scrollableContent}),this.props.children));return X>=Qa.small?M.createElement(vd,F({},Wt),M.createElement(dh,{role:At?"alertdialog":"dialog","aria-modal":!ee,ariaLabelledBy:$,ariaDescribedBy:le,onDismiss:Q,shouldRestoreFocus:!H},M.createElement("div",{className:Mt.root,role:ee?void 0:"document"},!ee&&M.createElement(yg,F({isDarkThemed:Z,onClick:W?void 0:Q,allowTouchBodyScroll:this._allowTouchBodyScroll},P)),te?M.createElement(Q1,{handleSelector:te.dragHandleSelector||"."+Mt.main.split(" ")[0],preventDragSelector:"button",onStart:this._onDragStart,onDragChange:this._onDrag,onStop:this._onDragStop,position:{x:Le,y:je}},Xt):Xt))):null},s.prototype.focus=function(){this._focusTrapZone.current&&this._focusTrapZone.current.focus()},s.prototype._getClampedPosition=function(n){return!this.props.dragOptions||!this.props.dragOptions.keepInBounds?n:{x:this._getClampedPositionX(n.x),y:this._getClampedPositionY(n.y)}},s.prototype._getClampedPositionY=function(n){var t=this._minClampedPosition,i=this._maxClampedPosition;return t&&(n=Math.max(t.y,n)),i&&(n=Math.min(i.y,n)),n},s.prototype._getClampedPositionX=function(n){var t=this._minClampedPosition,i=this._maxClampedPosition;return t&&(n=Math.max(t.x,n)),i&&(n=Math.min(i.x,n)),n},s.prototype._getMoveDelta=function(n){var t=10;return n.shiftKey?n.ctrlKey||(t=50):n.ctrlKey&&(t=1),t},s.defaultProps={isOpen:!1,isDarkOverlay:!0,isBlocking:!1,className:"",containerClassName:""},s=_s([uh],s),s})(M.Component),Zc=Ze(nD,$1,void 0,{scope:"Modal",fields:["theme","styles","enableAriaHiddenSiblings"]}),rD=Je(),oD=(function(o){Ne(s,o);function s(n){var t=o.call(this,n)||this;return St(t),t}return s.prototype.render=function(){var n=this.props,t=n.className,i=n.styles,d=n.theme;return this._classNames=rD(i,{theme:d,className:t}),M.createElement("div",{className:this._classNames.actions},M.createElement("div",{className:this._classNames.actionsRight},this._renderChildrenAsActions()))},s.prototype._renderChildrenAsActions=function(){var n=this;return M.Children.map(this.props.children,function(t){return t?M.createElement("span",{className:n._classNames.action},t):null})},s})(M.Component),sD={actions:"ms-Dialog-actions",action:"ms-Dialog-action",actionsRight:"ms-Dialog-actionsRight"},iD=function(o){var s=o.className,n=o.theme,t=it(sD,n);return{actions:[t.actions,{position:"relative",width:"100%",minHeight:"24px",lineHeight:"24px",margin:"16px 0 0",fontSize:"0",selectors:{".ms-Button":{lineHeight:"normal"}}},s],action:[t.action,{margin:"0 4px"}],actionsRight:[t.actionsRight,{textAlign:"right",marginRight:"-4px",fontSize:"0"}]}},wg=Ze(oD,iD,void 0,{scope:"DialogFooter"}),aD=Je(),lD=M.createElement(wg,null).type,dD=(function(o){Ne(s,o);function s(n){var t=o.call(this,n)||this;return St(t),t}return s.prototype.render=function(){var n=this.props,t=n.showCloseButton,i=n.className,d=n.closeButtonAriaLabel,c=n.onDismiss,u=n.subTextId,h=n.subText,g=n.titleProps,w=g===void 0?{}:g,m=n.titleId,x=n.title,_=n.type,v=n.styles,b=n.theme,C=n.draggableHeaderClassName,k=aD(v,{theme:b,className:i,isLargeHeader:_===Hs.largeHeader,isClose:_===Hs.close,draggableHeaderClassName:C}),L=this._groupChildren(),T;return h&&(T=M.createElement("p",{className:k.subText,id:u},h)),M.createElement("div",{className:k.content},M.createElement("div",{className:k.header},M.createElement("div",F({id:m,role:"heading","aria-level":1},w,{className:on(k.title,w.className)}),x),M.createElement("div",{className:k.topButton},this.props.topButtonsProps.map(function(N,Y){return M.createElement(Ke,F({key:N.uniqueId||Y},N))}),(_===Hs.close||t&&_!==Hs.largeHeader)&&M.createElement(Ke,{className:k.button,iconProps:{iconName:"Cancel"},ariaLabel:d,onClick:c}))),M.createElement("div",{className:k.inner},M.createElement("div",{className:k.innerContent},T,L.contents),L.footers))},s.prototype._groupChildren=function(){var n={footers:[],contents:[]};return M.Children.map(this.props.children,function(t){typeof t=="object"&&t!==null&&t.type===lD?n.footers.push(t):n.contents.push(t)}),n},s.defaultProps={showCloseButton:!1,className:"",topButtonsProps:[],closeButtonAriaLabel:"Close"},s=_s([uh],s),s})(M.Component),cD={contentLgHeader:"ms-Dialog-lgHeader",close:"ms-Dialog--close",subText:"ms-Dialog-subText",header:"ms-Dialog-header",headerLg:"ms-Dialog--lgHeader",button:"ms-Dialog-button ms-Dialog-button--close",inner:"ms-Dialog-inner",content:"ms-Dialog-content",title:"ms-Dialog-title"},uD=function(o){var s,n,t,i=o.className,d=o.theme,c=o.isLargeHeader,u=o.isClose,h=o.hidden,g=o.isMultiline,w=o.draggableHeaderClassName,m=d.palette,x=d.fonts,_=d.effects,v=d.semanticColors,b=it(cD,d);return{content:[c&&[b.contentLgHeader,{borderTop:"4px solid "+m.themePrimary}],u&&b.close,{flexGrow:1,overflowY:"hidden"},i],subText:[b.subText,x.medium,{margin:"0 0 24px 0",color:v.bodySubtext,lineHeight:"1.5",wordWrap:"break-word",fontWeight:Lt.regular}],header:[b.header,{position:"relative",width:"100%",boxSizing:"border-box"},u&&b.close,w&&[w,{cursor:"move"}]],button:[b.button,h&&{selectors:{".ms-Icon.ms-Icon--Cancel":{color:v.buttonText,fontSize:Mr.medium}}}],inner:[b.inner,{padding:"0 24px 24px",selectors:(s={},s["@media (min-width: "+P_+"px) and (max-width: "+Df+"px)"]={padding:"0 16px 16px"},s)}],innerContent:[b.content,{position:"relative",width:"100%"}],title:[b.title,x.xLarge,{color:v.bodyText,margin:"0",minHeight:x.xLarge.fontSize,padding:"16px 46px 20px 24px",lineHeight:"normal",selectors:(n={},n["@media (min-width: "+P_+"px) and (max-width: "+Df+"px)"]={padding:"16px 46px 16px 16px"},n)},c&&{color:v.menuHeader},g&&{fontSize:x.xxLarge.fontSize}],topButton:[{display:"flex",flexDirection:"row",flexWrap:"nowrap",position:"absolute",top:"0",right:"0",padding:"15px 15px 0 0",selectors:(t={"> *":{flex:"0 0 auto"},".ms-Dialog-button":{color:v.buttonText},".ms-Dialog-button:hover":{color:v.buttonTextHovered,borderRadius:_.roundedCorner2}},t["@media (min-width: "+P_+"px) and (max-width: "+Df+"px)"]={padding:"15px 8px 0 0"},t)}]}},pD=Ze(dD,uD,void 0,{scope:"DialogContent"}),hD=Je(),mD={isDarkOverlay:!1,isBlocking:!1,className:"",containerClassName:"",topOffsetFixed:!1},fD={type:Hs.normal,className:"",topButtonsProps:[]},gD=(function(o){Ne(s,o);function s(n){var t=o.call(this,n)||this;return t._getSubTextId=function(){var i=t.props,d=i.ariaDescribedById,c=i.modalProps,u=i.dialogContentProps,h=i.subText,g=c&&c.subtitleAriaId||d;return g||(g=(u&&u.subText||h)&&t._defaultSubTextId),g},t._getTitleTextId=function(){var i=t.props,d=i.ariaLabelledById,c=i.modalProps,u=i.dialogContentProps,h=i.title,g=c&&c.titleAriaId||d;return g||(g=(u&&u.title||h)&&t._defaultTitleTextId),g},t._id=zt("Dialog"),t._defaultTitleTextId=t._id+"-title",t._defaultSubTextId=t._id+"-subText",t}return s.prototype.render=function(){var n,t,i=this.props,d=i.className,c=i.containerClassName,u=i.contentClassName,h=i.elementToFocusOnDismiss,g=i.firstFocusableSelector,w=i.forceFocusInsideTrap,m=i.styles,x=i.hidden,_=i.ignoreExternalFocusing,v=i.isBlocking,b=i.isClickableOutsideFocusTrap,C=i.isDarkOverlay,k=i.isOpen,L=i.onDismiss,T=i.onDismissed,N=i.onLayerDidMount,Y=i.responsiveMode,A=i.subText,I=i.theme,R=i.title,H=i.topButtonsProps,W=i.type,K=i.minWidth,Z=i.maxWidth,Q=i.modalProps,B=F({},Q?Q.layerProps:{onLayerDidMount:N});N&&!B.onLayerDidMount&&(B.onLayerDidMount=N);var P,X;Q&&Q.dragOptions&&!Q.dragOptions.dragHandleSelector?(P="ms-Dialog-draggable-header",X=F(F({},Q.dragOptions),{dragHandleSelector:"."+P})):X=Q&&Q.dragOptions;var $=F(F(F(F({},mD),{className:d,containerClassName:c,isBlocking:v,isDarkOverlay:C,onDismissed:T}),Q),{layerProps:B,dragOptions:X}),ie=F(F(F({className:u,subText:A,title:R,topButtonsProps:H,type:W},fD),this.props.dialogContentProps),{draggableHeaderClassName:P,titleProps:F({id:((n=this.props.dialogContentProps)===null||n===void 0?void 0:n.titleId)||this._defaultTitleTextId},(t=this.props.dialogContentProps)===null||t===void 0?void 0:t.titleProps)}),le=hD(m,{theme:I,className:$.className,containerClassName:$.containerClassName,hidden:x,dialogDefaultMinWidth:K,dialogDefaultMaxWidth:Z});return M.createElement(Zc,F({elementToFocusOnDismiss:h,firstFocusableSelector:g,forceFocusInsideTrap:w,ignoreExternalFocusing:_,isClickableOutsideFocusTrap:b,responsiveMode:Y},$,{isOpen:k!==void 0?k:!x,className:le.root,containerClassName:le.main,onDismiss:L||$.onDismiss,subtitleAriaId:this._getSubTextId(),titleAriaId:this._getTitleTextId()}),M.createElement(pD,F({subTextId:this._defaultSubTextId,showCloseButton:$.isBlocking,onDismiss:L},ie),this.props.children))},s.defaultProps={hidden:!0},s=_s([uh],s),s})(M.Component),_D={root:"ms-Dialog"},yD=function(o){var s,n=o.className,t=o.containerClassName,i=o.dialogDefaultMinWidth,d=i===void 0?"288px":i,c=o.dialogDefaultMaxWidth,u=c===void 0?"340px":c,h=o.hidden,g=o.theme,w=it(_D,g);return{root:[w.root,g.fonts.medium,n],main:[{width:d,outline:"3px solid transparent",selectors:(s={},s["@media (min-width: "+dg+"px)"]={width:"auto",maxWidth:u,minWidth:d},s)},!h&&{display:"flex"},t]}},Xp=Ze(gD,yD,void 0,{scope:"Dialog"});Xp.displayName="Dialog";var wD=(function(){function o(){this._size=0}return o.prototype.updateOptions=function(s){for(var n=[],t=0,i=0;i<s.length;i++)s[i].itemType===Rt.Divider||s[i].itemType===Rt.Header?n.push(i):s[i].hidden||t++;this._size=t,this._displayOnlyOptionsCache=n,this._cachedOptions=Nn(s)},Object.defineProperty(o.prototype,"optionSetSize",{get:function(){return this._size},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"cachedOptions",{get:function(){return this._cachedOptions},enumerable:!0,configurable:!0}),o.prototype.positionInSet=function(s){if(s!==void 0){for(var n=0;s>this._displayOnlyOptionsCache[n];)n++;if(this._displayOnlyOptionsCache[n]===s)throw new Error("Unexpected: Option at index "+s+" is not a selectable element.");return s-n+1}},o})(),In;(function(o){o[o.smallFluid=0]="smallFluid",o[o.smallFixedFar=1]="smallFixedFar",o[o.smallFixedNear=2]="smallFixedNear",o[o.medium=3]="medium",o[o.large=4]="large",o[o.largeFixed=5]="largeFixed",o[o.extraLarge=6]="extraLarge",o[o.custom=7]="custom",o[o.customNear=8]="customNear"})(In||(In={}));var vD=Je(),mn;(function(o){o[o.closed=0]="closed",o[o.animatingOpen=1]="animatingOpen",o[o.open=2]="open",o[o.animatingClosed=3]="animatingClosed"})(mn||(mn={}));var xD=(function(o){Ne(s,o);function s(n){var t=o.call(this,n)||this;t._panel=M.createRef(),t._animationCallback=null,t._hasCustomNavigation=!!(t.props.onRenderNavigation||t.props.onRenderNavigationContent),t.dismiss=function(c){t.props.onDismiss&&t.isActive&&t.props.onDismiss(c),(!c||c&&!c.defaultPrevented)&&t.close()},t._allowScrollOnPanel=function(c){c?t._allowTouchBodyScroll?Y0(c,t._events):O0(c,t._events):t._events.off(t._scrollableContent),t._scrollableContent=c},t._onRenderNavigation=function(c){if(!t.props.onRenderNavigationContent&&!t.props.onRenderNavigation&&!t.props.hasCloseButton)return null;var u=t.props.onRenderNavigationContent,h=u===void 0?t._onRenderNavigationContent:u;return M.createElement("div",{className:t._classNames.navigation},h(c,t._onRenderNavigationContent))},t._onRenderNavigationContent=function(c){var u,h=c.closeButtonAriaLabel,g=c.hasCloseButton,w=c.onRenderHeader,m=w===void 0?t._onRenderHeader:w;if(g){var x=(u=t._classNames.subComponentStyles)===null||u===void 0?void 0:u.closeButton();return M.createElement(M.Fragment,null,!t._hasCustomNavigation&&m(t.props,t._onRenderHeader,t._headerTextId),M.createElement(Ke,{styles:x,className:t._classNames.closeButton,onClick:t._onPanelClick,ariaLabel:h,title:h,"data-is-visible":!0,iconProps:{iconName:"Cancel"}}))}return null},t._onRenderHeader=function(c,u,h){var g=c.headerText,w=c.headerTextProps,m=w===void 0?{}:w;return g?M.createElement("div",{className:t._classNames.header},M.createElement("div",F({id:h,role:"heading","aria-level":1},m,{className:on(t._classNames.headerText,m.className)}),g)):null},t._onRenderBody=function(c){return M.createElement("div",{className:t._classNames.content},c.children)},t._onRenderFooter=function(c){var u=t.props.onRenderFooterContent,h=u===void 0?null:u;return h?M.createElement("div",{className:t._classNames.footer},M.createElement("div",{className:t._classNames.footerInner},h())):null},t._animateTo=function(c){c===mn.open&&t.props.onOpen&&t.props.onOpen(),t._animationCallback=t._async.setTimeout(function(){t.setState({visibility:c}),t._onTransitionComplete()},200)},t._clearExistingAnimationTimer=function(){t._animationCallback!==null&&t._async.clearTimeout(t._animationCallback)},t._onPanelClick=function(c){t.dismiss(c)},t._onTransitionComplete=function(){t._updateFooterPosition(),t.state.visibility===mn.open&&t.props.onOpened&&t.props.onOpened(),t.state.visibility===mn.closed&&t.props.onDismissed&&t.props.onDismissed()};var i=t.props.allowTouchBodyScroll,d=i===void 0?!1:i;return t._allowTouchBodyScroll=d,t._async=new Wn(t),t._events=new Yt(t),St(t),t.state={isFooterSticky:!1,visibility:mn.closed,id:zt("Panel")},t}return s.getDerivedStateFromProps=function(n,t){return n.isOpen===void 0?null:n.isOpen&&(t.visibility===mn.closed||t.visibility===mn.animatingClosed)?{visibility:mn.animatingOpen}:!n.isOpen&&(t.visibility===mn.open||t.visibility===mn.animatingOpen)?{visibility:mn.animatingClosed}:null},s.prototype.componentDidMount=function(){this._events.on(window,"resize",this._updateFooterPosition),this._shouldListenForOuterClick(this.props)&&this._events.on(document.body,"mousedown",this._dismissOnOuterClick,!0),this.props.isOpen&&this.setState({visibility:mn.animatingOpen})},s.prototype.componentDidUpdate=function(n,t){var i=this._shouldListenForOuterClick(this.props),d=this._shouldListenForOuterClick(n);this.state.visibility!==t.visibility&&(this._clearExistingAnimationTimer(),this.state.visibility===mn.animatingOpen?this._animateTo(mn.open):this.state.visibility===mn.animatingClosed&&this._animateTo(mn.closed)),i&&!d?this._events.on(document.body,"mousedown",this._dismissOnOuterClick,!0):!i&&d&&this._events.off(document.body,"mousedown",this._dismissOnOuterClick,!0)},s.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},s.prototype.render=function(){var n=this.props,t=n.className,i=t===void 0?"":t,d=n.elementToFocusOnDismiss,c=n.firstFocusableSelector,u=n.focusTrapZoneProps,h=n.forceFocusInsideTrap,g=n.hasCloseButton,w=n.headerText,m=n.headerClassName,x=m===void 0?"":m,_=n.ignoreExternalFocusing,v=n.isBlocking,b=n.isFooterAtBottom,C=n.isLightDismiss,k=n.isHiddenOnDismiss,L=n.layerProps,T=n.overlayProps,N=n.popupProps,Y=n.type,A=n.styles,I=n.theme,R=n.customWidth,H=n.onLightDismissClick,W=H===void 0?this._onPanelClick:H,K=n.onRenderNavigation,Z=K===void 0?this._onRenderNavigation:K,Q=n.onRenderHeader,B=Q===void 0?this._onRenderHeader:Q,P=n.onRenderBody,X=P===void 0?this._onRenderBody:P,$=n.onRenderFooter,ie=$===void 0?this._onRenderFooter:$,le=this.state,V=le.isFooterSticky,z=le.visibility,J=le.id,ee=Y===In.smallFixedNear||Y===In.customNear,me=Tt(I),te=me?ee:!ee,G=Y===In.custom||Y===In.customNear?{width:R}:{},ne=pt(this.props,Yn),Ue=this.isActive,Ge=z===mn.animatingClosed||z===mn.animatingOpen;if(this._headerTextId=w&&J+"-headerText",!Ue&&!Ge&&!k)return null;this._classNames=vD(A,{theme:I,className:i,focusTrapZoneClassName:u?u.className:void 0,hasCloseButton:g,headerClassName:x,isAnimating:Ge,isFooterSticky:V,isFooterAtBottom:b,isOnRightSide:te,isOpen:Ue,isHiddenOnDismiss:k,type:Y,hasCustomNavigation:this._hasCustomNavigation});var Ut=this,ht=Ut._classNames,Le=Ut._allowTouchBodyScroll,je;return v&&Ue&&(je=M.createElement(yg,F({className:ht.overlay,isDarkThemed:!1,onClick:C?W:void 0,allowTouchBodyScroll:Le},T))),M.createElement(vd,F({},L),M.createElement(dh,F({role:"dialog","aria-modal":"true",ariaLabelledBy:this._headerTextId?this._headerTextId:void 0,onDismiss:this.dismiss,className:ht.hiddenPanel},N),M.createElement("div",F({"aria-hidden":!Ue&&Ge},ne,{ref:this._panel,className:ht.root}),je,M.createElement(ru,F({ignoreExternalFocusing:_,forceFocusInsideTrap:!v||k&&!Ue?!1:h,firstFocusableSelector:c,isClickableOutsideFocusTrap:!0},u,{className:ht.main,style:G,elementToFocusOnDismiss:d}),M.createElement("div",{className:ht.commands,"data-is-visible":!0},Z(this.props,this._onRenderNavigation)),M.createElement("div",{className:ht.contentInner},(this._hasCustomNavigation||!g)&&B(this.props,this._onRenderHeader,this._headerTextId),M.createElement("div",{ref:this._allowScrollOnPanel,className:ht.scrollableContent,"data-is-scrollable":!0},X(this.props,this._onRenderBody)),ie(this.props,this._onRenderFooter))))))},s.prototype.open=function(){this.props.isOpen===void 0&&(this.isActive||this.setState({visibility:mn.animatingOpen}))},s.prototype.close=function(){this.props.isOpen===void 0&&this.isActive&&this.setState({visibility:mn.animatingClosed})},Object.defineProperty(s.prototype,"isActive",{get:function(){return this.state.visibility===mn.open||this.state.visibility===mn.animatingOpen},enumerable:!0,configurable:!0}),s.prototype._shouldListenForOuterClick=function(n){return!!n.isBlocking&&!!n.isOpen},s.prototype._updateFooterPosition=function(){var n=this._scrollableContent;if(n){var t=n.clientHeight,i=n.scrollHeight;this.setState({isFooterSticky:t<i})}},s.prototype._dismissOnOuterClick=function(n){var t=this._panel.current;this.isActive&&t&&!n.defaultPrevented&&(un(t,n.target)||(this.props.onOuterClick?this.props.onOuterClick(n):this.dismiss(n)))},s.defaultProps={isHiddenOnDismiss:!1,isOpen:void 0,isBlocking:!0,hasCloseButton:!0,type:In.smallFixedFar},s})(M.Component),V_,df,cf,G_,$_,bD={root:"ms-Panel",main:"ms-Panel-main",commands:"ms-Panel-commands",contentInner:"ms-Panel-contentInner",scrollableContent:"ms-Panel-scrollableContent",navigation:"ms-Panel-navigation",closeButton:"ms-Panel-closeButton ms-PanelAction-close",header:"ms-Panel-header",headerText:"ms-Panel-headerText",content:"ms-Panel-content",footer:"ms-Panel-footer",footerInner:"ms-Panel-footerInner",isOpen:"is-open",hasCloseButton:"ms-Panel--hasCloseButton",smallFluid:"ms-Panel--smFluid",smallFixedNear:"ms-Panel--smLeft",smallFixedFar:"ms-Panel--sm",medium:"ms-Panel--md",large:"ms-Panel--lg",largeFixed:"ms-Panel--fixed",extraLarge:"ms-Panel--xl",custom:"ms-Panel--custom",customNear:"ms-Panel--customLeft"},_d={full:"100%",auto:"auto",xs:272,sm:340,md1:592,md2:644,lg:940},ea={auto:"auto",none:0,md:48,lg:428,xl:176},jp=(V_={},V_["@media (min-width: "+dg+"px)"]={width:_d.sm},V_),uf=(df={},df["@media (min-width: "+ib+"px)"]={width:_d.md1},df["@media (min-width: "+w3+"px)"]={width:_d.md2},df),K_=(cf={},cf["@media (min-width: "+v3+"px)"]={left:ea.md,width:_d.auto},cf["@media (min-width: "+qy+"px)"]={left:ea.lg},cf),SD=(G_={},G_["@media (min-width: "+qy+"px)"]={left:ea.auto,width:_d.lg},G_),CD=($_={},$_["@media (min-width: "+qy+"px)"]={left:ea.xl},$_),kD=function(o){var s;switch(o){case In.smallFixedFar:s=F({},jp);break;case In.medium:s=F(F({},jp),uf);break;case In.large:s=F(F(F({},jp),uf),K_);break;case In.largeFixed:s=F(F(F(F({},jp),uf),K_),SD);break;case In.extraLarge:s=F(F(F(F({},jp),uf),K_),CD);break}return s},MD="44px",q_={paddingLeft:"24px",paddingRight:"24px"},jD=function(o){var s,n=o.className,t=o.focusTrapZoneClassName,i=o.hasCloseButton,d=o.headerClassName,c=o.isAnimating,u=o.isFooterSticky,h=o.isFooterAtBottom,g=o.isOnRightSide,w=o.isOpen,m=o.isHiddenOnDismiss,x=o.hasCustomNavigation,_=o.theme,v=o.type,b=v===void 0?In.smallFixedFar:v,C=_.effects,k=_.fonts,L=_.semanticColors,T=it(bD,_),N=b===In.custom||b===In.customNear;return{root:[T.root,_.fonts.medium,w&&T.isOpen,i&&T.hasCloseButton,{pointerEvents:"none",position:"absolute",top:0,left:0,right:0,bottom:0},N&&g&&T.custom,N&&!g&&T.customNear,n],overlay:[{pointerEvents:"auto",cursor:"pointer"},w&&c&&qr.fadeIn100,!w&&c&&qr.fadeOut100],hiddenPanel:[!w&&!c&&m&&{visibility:"hidden"}],main:[T.main,{backgroundColor:L.bodyBackground,boxShadow:C.elevation64,pointerEvents:"auto",position:"absolute",display:"flex",flexDirection:"column",overflowX:"hidden",overflowY:"auto",WebkitOverflowScrolling:"touch",bottom:0,top:0,left:ea.auto,right:ea.none,width:_d.full,selectors:F((s={},s[_e]={borderLeft:"3px solid "+L.variantBorder,borderRight:"3px solid "+L.variantBorder},s),kD(b))},b===In.smallFluid&&{left:ea.none},b===In.smallFixedNear&&{left:ea.none,right:ea.auto,width:_d.xs},b===In.customNear&&{right:"auto",left:0},N&&{maxWidth:"100vw"},w&&c&&!g&&qr.slideRightIn40,w&&c&&g&&qr.slideLeftIn40,!w&&c&&!g&&qr.slideLeftOut40,!w&&c&&g&&qr.slideRightOut40,t],commands:[T.commands,{marginTop:18},x&&{marginTop:"inherit"}],navigation:[T.navigation,{display:"flex",justifyContent:"flex-end"},x&&{height:MD}],contentInner:[T.contentInner,{display:"flex",flexDirection:"column",flexGrow:1,overflowY:"hidden"}],header:[T.header,q_,{alignSelf:"flex-start"},i&&!x&&{flexGrow:1},x&&{flexShrink:0}],headerText:[T.headerText,k.xLarge,{color:L.bodyText,lineHeight:"27px",overflowWrap:"break-word",wordWrap:"break-word",wordBreak:"break-word",hyphens:"auto"},d],scrollableContent:[T.scrollableContent,{overflowY:"auto"},h&&{flexGrow:1}],content:[T.content,q_,{paddingBottom:20}],footer:[T.footer,{flexShrink:0,borderTop:"1px solid transparent",transition:"opacity "+ms.durationValue3+" "+ms.easeFunction2},u&&{background:L.bodyBackground,borderTopColor:L.variantBorder}],footerInner:[T.footerInner,q_,{paddingBottom:16,paddingTop:16}],subComponentStyles:{closeButton:{root:[T.closeButton,{marginRight:14,color:_.palette.neutralSecondary,fontSize:Mr.large},x&&{marginRight:0,height:"auto",width:"44px"}],rootHovered:{color:_.palette.neutralPrimary}}}}},vg=Ze(xD,jD,void 0,{scope:"Panel"}),LD=Je(),ED=(function(o){Ne(s,o);function s(n){var t=o.call(this,n)||this;t._host=M.createRef(),t._focusZone=M.createRef(),t._dropDown=M.createRef(),t._scrollIdleDelay=250,t._sizePosCache=new wD,t._requestAnimationFrame=SM(t),t._onChange=function(m,x,_,v,b){var C=t.props,k=C.onChange,L=C.onChanged;if(k||L){var T=b?F(F({},x[_]),{selected:!v}):x[_];k&&k(F(F({},m),{target:t._dropDown.current}),T,_),L&&L(T,_)}},t._getPlaceholder=function(){return t.props.placeholder||t.props.placeHolder},t._getTitle=function(m,x){var _=t.props.multiSelectDelimiter,v=_===void 0?", ":_;return m.map(function(b){return b.text}).join(v)},t._onRenderTitle=function(m){return M.createElement(M.Fragment,null,t._getTitle(m))},t._onRenderPlaceholder=function(m){return t._getPlaceholder()?M.createElement(M.Fragment,null,t._getPlaceholder()):null},t._onRenderContainer=function(m){var x=m.calloutProps,_=m.panelProps,v=t.props,b=v.responsiveMode,C=v.dropdownWidth,k=b<=Qa.medium,L=t._classNames.subComponentStyles?t._classNames.subComponentStyles.panel:void 0,T=void 0,N=void 0;return C==="auto"?N=t._dropDown.current?t._dropDown.current.clientWidth:0:T=C||(t._dropDown.current?t._dropDown.current.clientWidth:0),k?M.createElement(vg,F({isOpen:!0,isLightDismiss:!0,onDismiss:t._onDismiss,hasCloseButton:!1,styles:L},_),t._renderFocusableList(m)):M.createElement(ch,F({isBeakVisible:!1,gapSpace:0,doNotLayer:!1,directionalHintFixed:!1,directionalHint:Ot.bottomLeftEdge,calloutWidth:T,calloutMinWidth:N},x,{className:t._classNames.callout,target:t._dropDown.current,onDismiss:t._onDismiss,onScroll:t._onScroll,onPositioned:t._onPositioned}),t._renderFocusableList(m))},t._onRenderCaretDown=function(m){return M.createElement(ze,{className:t._classNames.caretDown,iconName:"ChevronDown","aria-hidden":!0})},t._onRenderList=function(m){var x=m.onRenderItem,_=x===void 0?t._onRenderItem:x,v={items:[]},b=[],C=function(){var L=v.id?[M.createElement("div",{role:"group",key:v.id,"aria-labelledby":v.id},v.items)]:v.items;b=Nn(b,L),v={items:[]}},k=function(L,T){switch(L.itemType){case Rt.Header:v.items.length>0&&C();var N=t._id+L.key;v.items.push(_(F(F({id:N},L),{index:T}),t._onRenderItem)),v.id=N;break;case Rt.Divider:T>0&&v.items.push(_(F(F({},L),{index:T}),t._onRenderItem)),v.items.length>0&&C();break;default:v.items.push(_(F(F({},L),{index:T}),t._onRenderItem))}};return m.options.forEach(function(L,T){k(L,T)}),v.items.length>0&&C(),M.createElement(M.Fragment,null,b)},t._onRenderItem=function(m){switch(m.itemType){case Rt.Divider:return t._renderSeparator(m);case Rt.Header:return t._renderHeader(m);default:return t._renderOption(m)}},t._renderOption=function(m){var x=t.props.onRenderOption,_=x===void 0?t._onRenderOption:x,v=t.state.selectedIndices,b=v===void 0?[]:v,C=m.index!==void 0&&b?b.indexOf(m.index)>-1:!1,k=m.hidden?t._classNames.dropdownItemHidden:C&&m.disabled===!0?t._classNames.dropdownItemSelectedAndDisabled:C?t._classNames.dropdownItemSelected:m.disabled===!0?t._classNames.dropdownItemDisabled:t._classNames.dropdownItem,L=m.title,T=L===void 0?m.text:L,N=t._classNames.subComponentStyles?t._classNames.subComponentStyles.multiSelectItem:void 0;return t.props.multiSelect?M.createElement(ce,{id:t._listId+m.index,key:m.key,disabled:m.disabled,onChange:t._onItemClick(m),inputProps:F({"aria-selected":C,onMouseEnter:t._onItemMouseEnter.bind(t,m),onMouseLeave:t._onMouseItemLeave.bind(t,m),onMouseMove:t._onItemMouseMove.bind(t,m),role:"option"},{"data-index":m.index,"data-is-focusable":!m.disabled}),label:m.text,title:T,onRenderLabel:t._onRenderItemLabel.bind(t,m),className:k,checked:C,styles:N,ariaPositionInSet:t._sizePosCache.positionInSet(m.index),ariaSetSize:t._sizePosCache.optionSetSize}):M.createElement(d6,{id:t._listId+m.index,key:m.key,"data-index":m.index,"data-is-focusable":!m.disabled,disabled:m.disabled,className:k,onClick:t._onItemClick(m),onMouseEnter:t._onItemMouseEnter.bind(t,m),onMouseLeave:t._onMouseItemLeave.bind(t,m),onMouseMove:t._onItemMouseMove.bind(t,m),role:"option","aria-selected":C?"true":"false",ariaLabel:m.ariaLabel,title:T,"aria-posinset":t._sizePosCache.positionInSet(m.index),"aria-setsize":t._sizePosCache.optionSetSize},_(m,t._onRenderOption))},t._onRenderOption=function(m){return M.createElement("span",{className:t._classNames.dropdownOptionText},m.text)},t._onRenderItemLabel=function(m){var x=t.props.onRenderOption,_=x===void 0?t._onRenderOption:x;return _(m,t._onRenderOption)},t._onPositioned=function(m){t._focusZone.current&&t._requestAnimationFrame(function(){var x=t.state.selectedIndices;if(t._focusZone.current)if(x&&x[0]&&!t.props.options[x[0]].disabled){var _=_n().getElementById(t._id+"-list"+x[0]);_&&t._focusZone.current.focusElement(_)}else t._focusZone.current.focus()}),(!t.state.calloutRenderEdge||t.state.calloutRenderEdge!==m.targetEdge)&&t.setState({calloutRenderEdge:m.targetEdge})},t._onItemClick=function(m){return function(x){m.disabled||(t.setSelectedIndex(x,m.index),t.props.multiSelect||t.setState({isOpen:!1}))}},t._onScroll=function(){!t._isScrollIdle&&t._scrollIdleTimeoutId!==void 0?(clearTimeout(t._scrollIdleTimeoutId),t._scrollIdleTimeoutId=void 0):t._isScrollIdle=!1,t._scrollIdleTimeoutId=setTimeout(function(){t._isScrollIdle=!0},t._scrollIdleDelay)},t._onMouseItemLeave=function(m,x){if(!t._shouldIgnoreMouseEvent()&&t._host.current)if(t._host.current.setActive)try{t._host.current.setActive()}catch{}else t._host.current.focus()},t._onDismiss=function(){t.setState({isOpen:!1})},t._onDropdownBlur=function(m){var x=t._isDisabled();x||(t.setState({hasFocus:!1}),!t.state.isOpen&&t.props.onBlur&&t.props.onBlur(m))},t._onDropdownKeyDown=function(m){var x=t._isDisabled();if(!x&&(t._lastKeyDownWasAltOrMeta=t._isAltOrMeta(m),!(t.props.onKeyDown&&(t.props.onKeyDown(m),m.defaultPrevented)))){var _,v=t.state.selectedIndices.length?t.state.selectedIndices[0]:-1,b=m.altKey||m.metaKey,C=t.state.isOpen;switch(m.which){case ke.enter:t.setState({isOpen:!C});break;case ke.escape:if(!C)return;t.setState({isOpen:!1});break;case ke.up:if(b){if(C){t.setState({isOpen:!1});break}return}t.props.multiSelect?t.setState({isOpen:!0}):t._isDisabled()||(_=t._moveIndex(m,-1,v-1,v));break;case ke.down:b&&(m.stopPropagation(),m.preventDefault()),b&&!C||t.props.multiSelect?t.setState({isOpen:!0}):t._isDisabled()||(_=t._moveIndex(m,1,v+1,v));break;case ke.home:t.props.multiSelect||(_=t._moveIndex(m,1,0,v));break;case ke.end:t.props.multiSelect||(_=t._moveIndex(m,-1,t.props.options.length-1,v));break;case ke.space:break;default:return}_!==v&&(m.stopPropagation(),m.preventDefault())}},t._onDropdownKeyUp=function(m){var x=t._isDisabled();if(!x){var _=t._shouldHandleKeyUp(m),v=t.state.isOpen;if(!(t.props.onKeyUp&&(t.props.onKeyUp(m),m.defaultPrevented))){switch(m.which){case ke.space:t.setState({isOpen:!v});break;default:_&&v&&t.setState({isOpen:!1});return}m.stopPropagation(),m.preventDefault()}}},t._onZoneKeyDown=function(m){var x;t._lastKeyDownWasAltOrMeta=t._isAltOrMeta(m);var _=m.altKey||m.metaKey;switch(m.which){case ke.up:_?t.setState({isOpen:!1}):t._host.current&&(x=X0(t._host.current,t._host.current.lastChild,!0));break;case ke.home:case ke.end:case ke.pageUp:case ke.pageDown:break;case ke.down:!_&&t._host.current&&(x=Z0(t._host.current,t._host.current.firstChild,!0));break;case ke.escape:t.setState({isOpen:!1});break;case ke.tab:t.setState({isOpen:!1});return;default:return}x&&x.focus(),m.stopPropagation(),m.preventDefault()},t._onZoneKeyUp=function(m){var x=t._shouldHandleKeyUp(m);x&&t.state.isOpen&&(t.setState({isOpen:!1}),m.preventDefault())},t._onDropdownClick=function(m){if(!(t.props.onClick&&(t.props.onClick(m),m.defaultPrevented))){var x=t.state.isOpen,_=t._isDisabled();!_&&!t._shouldOpenOnFocus()&&t.setState({isOpen:!x}),t._isFocusedByClick=!1}},t._onDropdownMouseDown=function(){t._isFocusedByClick=!0},t._onFocus=function(m){var x=t._isDisabled();if(!x){t.props.onFocus&&t.props.onFocus(m);var _={hasFocus:!0};t._shouldOpenOnFocus()&&(_.isOpen=!0),t.setState(_)}},t._isDisabled=function(){var m=t.props.disabled,x=t.props.isDisabled;return m===void 0&&(m=x),m},t._onRenderLabel=function(m){var x=m.label,_=m.required,v=m.disabled,b=t._classNames.subComponentStyles?t._classNames.subComponentStyles.label:void 0;return x?M.createElement(fd,{className:t._classNames.label,id:t._labelId,required:_,styles:b,disabled:v},x):null},St(t);var i=n.multiSelect,d=n.selectedKey,c=n.selectedKeys,u=n.defaultSelectedKey,h=n.defaultSelectedKeys,g=n.options;t._id=n.id||zt("Dropdown"),t._labelId=t._id+"-label",t._listId=t._id+"-list",t._optionId=t._id+"-option",t._isScrollIdle=!0;var w;return i?w=t._getSelectedIndexes(g,h!==void 0?h:c):w=t._getSelectedIndexes(g,u!==void 0?u:d),t._sizePosCache.updateOptions(g),t.state={isOpen:!1,selectedIndices:w,hasFocus:!1,calloutRenderEdge:void 0},t}return Object.defineProperty(s.prototype,"selectedOptions",{get:function(){var n=this.props.options,t=this.state.selectedIndices;return Bv(n,t)},enumerable:!0,configurable:!0}),s.prototype.componentWillUnmount=function(){clearTimeout(this._scrollIdleTimeoutId)},s.prototype.UNSAFE_componentWillReceiveProps=function(n){var t,i=n.options!==this.props.options;n.multiSelect?i&&n.defaultSelectedKeys!==void 0?t="defaultSelectedKeys":t="selectedKeys":i&&n.defaultSelectedKey!==void 0?t="defaultSelectedKey":t="selectedKey",n[t]!==void 0&&(n[t]!==this.props[t]||i)&&this.setState({selectedIndices:this._getSelectedIndexes(n.options,n[t])})},s.prototype.componentDidUpdate=function(n,t){t.isOpen===!0&&this.state.isOpen===!1&&(this._gotMouseMove=!1,this.props.onDismiss&&this.props.onDismiss())},s.prototype.render=function(){var n=this,t,i,d=this._id,c=this.props,u=c.className,h=c.label,g=c.options,w=c.ariaLabel,m=c.required,x=c.errorMessage,_=c.keytipProps,v=c.styles,b=c.theme,C=c.panelProps,k=c.calloutProps,L=c.onRenderTitle,T=L===void 0?this._getTitle:L,N=c.onRenderContainer,Y=N===void 0?this._onRenderContainer:N,A=c.onRenderCaretDown,I=A===void 0?this._onRenderCaretDown:A,R=c.onRenderLabel,H=R===void 0?this._onRenderLabel:R,W=this.state,K=W.isOpen,Z=W.selectedIndices,Q=W.calloutRenderEdge,B=W.hasFocus,P=c.onRenderPlaceholder||c.onRenderPlaceHolder||this._getPlaceholder;g!==this._sizePosCache.cachedOptions&&this._sizePosCache.updateOptions(g);var X=Bv(g,Z),$=pt(c,Yn),ie=this._isDisabled(),le=d+"-errorMessage",V=ie?void 0:K&&Z.length===1&&Z[0]>=0?this._listId+Z[0]:void 0;this._classNames=LD(v,{theme:b,className:u,hasError:!!(x&&x.length>0),hasLabel:!!h,isOpen:K,required:m,disabled:ie,isRenderingPlaceholder:!X.length,panelClassName:(t=C)===null||t===void 0?void 0:t.className,calloutClassName:(i=k)===null||i===void 0?void 0:i.className,calloutRenderEdge:Q});var z=!!x&&x.length>0;return M.createElement("div",{className:this._classNames.root},H(this.props,this._onRenderLabel),M.createElement(ra,{keytipProps:_,disabled:ie},function(J){return M.createElement("div",F({},J,{"data-is-focusable":!ie,ref:n._dropDown,id:d,tabIndex:ie?-1:0,role:"combobox","aria-haspopup":"listbox","aria-expanded":K?"true":"false","aria-label":w,"aria-labelledby":h&&!w?Za(n._labelId,n._optionId):void 0,"aria-describedby":Za(J["aria-describedby"],z?n._id+"-errorMessage":void 0),"aria-activedescendant":V,"aria-required":m,"aria-disabled":ie,"aria-controls":K?n._listId:void 0},$,{className:n._classNames.dropdown,onBlur:n._onDropdownBlur,onKeyDown:n._onDropdownKeyDown,onKeyUp:n._onDropdownKeyUp,onClick:n._onDropdownClick,onMouseDown:n._onDropdownMouseDown,onFocus:n._onFocus}),M.createElement("span",{id:n._optionId,className:n._classNames.title,"aria-live":B?"polite":void 0,"aria-atomic":B?!0:void 0},X.length?T(X,n._onRenderTitle):P(c,n._onRenderPlaceholder)),M.createElement("span",{className:n._classNames.caretDownWrapper},I(c,n._onRenderCaretDown)))}),K&&Y(F(F({},c),{onDismiss:this._onDismiss}),this._onRenderContainer),z&&M.createElement("div",{role:"alert",id:le,className:this._classNames.errorMessage},x))},s.prototype.focus=function(n){this._dropDown.current&&(this._dropDown.current.focus(),n&&this.setState({isOpen:!0}))},s.prototype.setSelectedIndex=function(n,t){var i=this,d=this.props,c=d.options,u=d.selectedKey,h=d.selectedKeys,g=d.multiSelect,w=d.notifyOnReselect,m=this.state.selectedIndices,x=m===void 0?[]:m,_=x?x.indexOf(t)>-1:!1,v=[];if(t=Math.max(0,Math.min(c.length-1,t)),u!==void 0||h!==void 0){this._onChange(n,c,t,_,g);return}if(!(!g&&!w&&t===x[0])){if(g)if(v=x?this._copyArray(x):[],_){var b=v.indexOf(t);b>-1&&v.splice(b,1)}else v.push(t);else v=[t];n.persist(),this.setState({selectedIndices:v},function(){i._onChange(n,c,t,_,g)})}},s.prototype._copyArray=function(n){for(var t=[],i=0,d=n;i<d.length;i++){var c=d[i];t.push(c)}return t},s.prototype._moveIndex=function(n,t,i,d){var c=this.props.options;if(d===i||c.length===0)return d;i>=c.length?i=0:i<0&&(i=c.length-1);for(var u=0;c[i].itemType===Rt.Header||c[i].itemType===Rt.Divider||c[i].disabled;){if(u>=c.length)return d;i+t<0?i=c.length:i+t>=c.length&&(i=-1),i=i+t,u++}return this.setSelectedIndex(n,i),i},s.prototype._renderFocusableList=function(n){var t=n.onRenderList,i=t===void 0?this._onRenderList:t,d=n.label,c=n.ariaLabel,u=n.multiSelect;return M.createElement("div",{className:this._classNames.dropdownItemsWrapper,onKeyDown:this._onZoneKeyDown,onKeyUp:this._onZoneKeyUp,ref:this._host,tabIndex:0},M.createElement(xd,{ref:this._focusZone,direction:kn.vertical,id:this._listId,className:this._classNames.dropdownItems,role:"listbox","aria-label":c,"aria-labelledby":d&&!c?this._labelId:void 0,"aria-multiselectable":u},i(n,this._onRenderList)))},s.prototype._renderSeparator=function(n){var t=n.index,i=n.key;return t>0?M.createElement("div",{role:"separator",key:i,className:this._classNames.dropdownDivider}):null},s.prototype._renderHeader=function(n){var t=this.props.onRenderOption,i=t===void 0?this._onRenderOption:t,d=n.key,c=n.id;return M.createElement("div",{id:c,key:d,className:this._classNames.dropdownItemHeader},i(n,this._onRenderOption))},s.prototype._onItemMouseEnter=function(n,t){if(!this._shouldIgnoreMouseEvent()){var i=t.currentTarget;i.focus()}},s.prototype._onItemMouseMove=function(n,t){var i=t.currentTarget;this._gotMouseMove=!0,!(!this._isScrollIdle||document.activeElement===i)&&i.focus()},s.prototype._shouldIgnoreMouseEvent=function(){return!this._isScrollIdle||!this._gotMouseMove},s.prototype._getSelectedIndexes=function(n,t){if(t===void 0){if(this.props.multiSelect)return this._getAllSelectedIndices(n);var i=this._getSelectedIndex(n,null);return i!==-1?[i]:[]}else if(!Array.isArray(t)){var i=this._getSelectedIndex(n,t);return i!==-1?[i]:[]}for(var d=[],c=0,u=t;c<u.length;c++){var h=u[c],i=this._getSelectedIndex(n,h);i!==-1&&d.push(i)}return d},s.prototype._getAllSelectedIndices=function(n){return n.map(function(t,i){return t.selected?i:-1}).filter(function(t){return t!==-1})},s.prototype._getSelectedIndex=function(n,t){return Hy(n,function(i){return t!=null?i.key===t:!!i.selected||!!i.isSelected})},s.prototype._isAltOrMeta=function(n){return n.which===ke.alt||n.key==="Meta"},s.prototype._shouldHandleKeyUp=function(n){var t=this._lastKeyDownWasAltOrMeta&&this._isAltOrMeta(n);return this._lastKeyDownWasAltOrMeta=!1,!!t&&!(my()||hy())},s.prototype._shouldOpenOnFocus=function(){var n=this.state.hasFocus,t=this.props.openOnKeyboardFocus;return!this._isFocusedByClick&&t===!0&&!n},s.defaultProps={options:[]},s=_s([uh],s),s})(M.Component),J_,Z_,X_,DD={root:"ms-Dropdown-container",label:"ms-Dropdown-label",dropdown:"ms-Dropdown",title:"ms-Dropdown-title",caretDownWrapper:"ms-Dropdown-caretDownWrapper",caretDown:"ms-Dropdown-caretDown",callout:"ms-Dropdown-callout",panel:"ms-Dropdown-panel",dropdownItems:"ms-Dropdown-items",dropdownItem:"ms-Dropdown-item",dropdownDivider:"ms-Dropdown-divider",dropdownOptionText:"ms-Dropdown-optionText",dropdownItemHeader:"ms-Dropdown-header",titleIsPlaceHolder:"ms-Dropdown-titleIsPlaceHolder",titleHasError:"ms-Dropdown-title--hasError"},pf=32,Q_=36,ID=(J_={},J_[_e+", "+y3.replace("@media ","")]=F({},bt()),J_),hf={selectors:F((Z_={},Z_[_e]={backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText"},Z_),ID)},ox={selectors:(X_={},X_[_e]={borderColor:"Highlight"},X_)},TD=cg(0,dg),AD=function(o){var s,n,t,i,d,c,u,h,g,w,m,x=o.theme,_=o.hasError,v=o.hasLabel,b=o.className,C=o.isOpen,k=o.disabled,L=o.required,T=o.isRenderingPlaceholder,N=o.panelClassName,Y=o.calloutClassName,A=o.calloutRenderEdge;if(!x)throw new Error("theme is undefined or null in base Dropdown getStyles function.");var I=it(DD,x),R=x.palette,H=x.semanticColors,W=x.effects,K=x.fonts,Z={color:H.menuItemTextHovered},Q={color:H.menuItemText},B={borderColor:H.errorText},P=[I.dropdownItem,{backgroundColor:"transparent",boxSizing:"border-box",cursor:"pointer",display:"flex",alignItems:"center",padding:"0 8px",width:"100%",minHeight:Q_,lineHeight:20,height:0,position:"relative",border:"1px solid transparent",borderRadius:0,wordWrap:"break-word",overflowWrap:"break-word",textAlign:"left",".ms-Button-flexContainer":{width:"100%"}}],X=H.menuItemBackgroundPressed,$=function(J){var ee;return J===void 0&&(J=!1),{selectors:(ee={"&:hover:focus":[{color:H.menuItemTextHovered,backgroundColor:J?X:H.menuItemBackgroundHovered},hf],"&:focus":[{backgroundColor:J?X:"transparent"},hf],"&:active":[{color:H.menuItemTextHovered,backgroundColor:J?H.menuItemBackgroundHovered:H.menuBackground},hf]},ee["."+fn+" &:focus:after"]={left:0,top:0,bottom:0,right:0},ee[_e]={border:"none"},ee)}},ie=Nn(P,[{backgroundColor:X,color:H.menuItemTextHovered},$(!0),hf]),le=Nn(P,[{color:H.disabledText,cursor:"default",selectors:(s={},s[_e]={color:"GrayText",border:"none"},s)}]),V=A===De.bottom?W.roundedCorner2+" "+W.roundedCorner2+" 0 0":"0 0 "+W.roundedCorner2+" "+W.roundedCorner2,z=A===De.bottom?"0 0 "+W.roundedCorner2+" "+W.roundedCorner2:W.roundedCorner2+" "+W.roundedCorner2+" 0 0";return{root:[I.root,b],label:I.label,dropdown:[I.dropdown,cd,K.medium,{color:H.menuItemText,borderColor:H.focusBorder,position:"relative",outline:0,userSelect:"none",selectors:(n={},n["&:hover ."+I.title]=[!k&&Z,{borderColor:C?R.neutralSecondary:R.neutralPrimary},ox],n["&:focus ."+I.title]=[!k&&Z,{selectors:(t={},t[_e]={color:"Highlight"},t)}],n["&:focus:after"]=[{pointerEvents:"none",content:"''",position:"absolute",boxSizing:"border-box",top:"0px",left:"0px",width:"100%",height:"100%",border:k?"none":"2px solid "+R.themePrimary,borderRadius:"2px",selectors:(i={},i[_e]={color:"Highlight"},i)}],n["&:active ."+I.title]=[!k&&Z,{borderColor:R.themePrimary},ox],n["&:hover ."+I.caretDown]=!k&&Q,n["&:focus ."+I.caretDown]=[!k&&Q,{selectors:(d={},d[_e]={color:"Highlight"},d)}],n["&:active ."+I.caretDown]=!k&&Q,n["&:hover ."+I.titleIsPlaceHolder]=!k&&Q,n["&:focus ."+I.titleIsPlaceHolder]=!k&&Q,n["&:active ."+I.titleIsPlaceHolder]=!k&&Q,n["&:hover ."+I.titleHasError]=B,n["&:active ."+I.titleHasError]=B,n)},C&&"is-open",k&&"is-disabled",L&&"is-required",L&&!v&&{selectors:(c={":before":{content:"'*'",color:H.errorText,position:"absolute",top:-5,right:-10}},c[_e]={selectors:{":after":{right:-14}}},c)}],title:[I.title,cd,{backgroundColor:H.inputBackground,borderWidth:1,borderStyle:"solid",borderColor:H.inputBorder,borderRadius:C?V:W.roundedCorner2,cursor:"pointer",display:"block",height:pf,lineHeight:pf-2,padding:"0 28px 0 8px",position:"relative",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},T&&[I.titleIsPlaceHolder,{color:H.inputPlaceholderText}],_&&[I.titleHasError,B],k&&{backgroundColor:H.disabledBackground,border:"none",color:H.disabledText,cursor:"default",selectors:(u={},u[_e]=F({border:"1px solid GrayText",color:"GrayText",backgroundColor:"Window"},bt()),u)}],caretDownWrapper:[I.caretDownWrapper,{position:"absolute",top:1,right:8,height:pf,lineHeight:pf-2},!k&&{cursor:"pointer"}],caretDown:[I.caretDown,{color:R.neutralSecondary,fontSize:K.small.fontSize,pointerEvents:"none"},k&&{color:H.disabledText,selectors:(h={},h[_e]=F({color:"GrayText"},bt()),h)}],errorMessage:F(F({color:H.errorText},x.fonts.small),{paddingTop:5}),callout:[I.callout,{boxShadow:W.elevation8,borderRadius:z,selectors:(g={},g[".ms-Callout-main"]={borderRadius:z},g)},Y],dropdownItemsWrapper:{selectors:{"&:focus":{outline:0}}},dropdownItems:[I.dropdownItems,{display:"block"}],dropdownItem:Nn(P,[$()]),dropdownItemSelected:ie,dropdownItemDisabled:le,dropdownItemSelectedAndDisabled:[ie,le,{backgroundColor:"transparent"}],dropdownItemHidden:Nn(P,[{display:"none"}]),dropdownDivider:[I.dropdownDivider,{height:1,backgroundColor:H.bodyDivider}],dropdownOptionText:[I.dropdownOptionText,{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",minWidth:0,maxWidth:"100%",wordWrap:"break-word",overflowWrap:"break-word",margin:"1px"}],dropdownItemHeader:[I.dropdownItemHeader,F(F({},K.medium),{fontWeight:Lt.semibold,color:H.menuHeader,background:"none",backgroundColor:"transparent",border:"none",height:Q_,lineHeight:Q_,cursor:"default",padding:"0 8px",userSelect:"none",textAlign:"left",selectors:(w={},w[_e]=F({color:"GrayText"},bt()),w)})],subComponentStyles:{label:{root:{display:"inline-block"}},multiSelectItem:{root:{padding:0},label:{alignSelf:"stretch",padding:"0 8px",width:"100%"}},panel:{root:[N],main:{selectors:(m={},m[TD]={width:272},m)},contentInner:{padding:"0 0 20px"}}}}},qe=Ze(ED,AD,void 0,{scope:"Dropdown"});function PD(o,s){o===void 0&&(o="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons"',src:"url('"+o+"fabric-icons-a13498cf.woff') format('woff')"},icons:{GlobalNavButton:"",ChevronDown:"",ChevronUp:"",Edit:"",Add:"",Cancel:"",More:"",Settings:"",Mail:"",Filter:"",Search:"",Share:"",BlockedSite:"",FavoriteStar:"",FavoriteStarFill:"",CheckMark:"",Delete:"",ChevronLeft:"",ChevronRight:"",Calendar:"",Megaphone:"",Undo:"",Flag:"",Page:"",Pinned:"",View:"",Clear:"",Download:"",Upload:"",Folder:"",Sort:"",AlignRight:"",AlignLeft:"",Tag:"",AddFriend:"",Info:"",SortLines:"",List:"",CircleRing:"",Heart:"",HeartFill:"",Tiles:"",Embed:"",Glimmer:"",Ascending:"",Descending:"",SortUp:"",SortDown:"",SyncToPC:"",LargeGrid:"",SkypeCheck:"",SkypeClock:"",SkypeMinus:"",ClearFilter:"",Flow:"",StatusCircleCheckmark:"",MoreVertical:""}};Bn(n,s)}function RD(o,s){o===void 0&&(o="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-0"',src:"url('"+o+"fabric-icons-0-467ee27f.woff') format('woff')"},icons:{PageLink:"",CommentSolid:"",ChangeEntitlements:"",Installation:"",WebAppBuilderModule:"",WebAppBuilderFragment:"",WebAppBuilderSlot:"",BullseyeTargetEdit:"",WebAppBuilderFragmentCreate:"",PageData:"",PageHeaderEdit:"",ProductList:"",UnpublishContent:"",DependencyAdd:"",DependencyRemove:"",EntitlementPolicy:"",EntitlementRedemption:"",SchoolDataSyncLogo:"",PinSolid12:"",PinSolidOff12:"",AddLink:"",SharepointAppIcon16:"",DataflowsLink:"",TimePicker:"",UserWarning:"",ComplianceAudit:"",InternetSharing:"",Brightness:"",MapPin:"",Airplane:"",Tablet:"",QuickNote:"",Video:"",People:"",Phone:"",Pin:"",Shop:"",Stop:"",Link:"",AllApps:"",Zoom:"",ZoomOut:"",Microphone:"",Camera:"",Attach:"",Send:"",FavoriteList:"",PageSolid:"",Forward:"",Back:"",Refresh:"",Lock:"",ReportHacked:"",EMI:"",MiniLink:"",Blocked:"",ReadingMode:"",Favicon:"",Remove:"",Checkbox:"",CheckboxComposite:"",CheckboxFill:"",CheckboxIndeterminate:"",CheckboxCompositeReversed:"",BackToWindow:"",FullScreen:"",Print:"",Up:"",Down:"",OEM:"",Save:"",ReturnKey:"",Cloud:"",Flashlight:"",CommandPrompt:"",Sad:"",RealEstate:"",SIPMove:"",EraseTool:"",GripperTool:"",Dialpad:"",PageLeft:"",PageRight:"",MultiSelect:"",KeyboardClassic:"",Play:"",Pause:"",InkingTool:"",Emoji2:"",GripperBarHorizontal:"",System:"",Personalize:"",SearchAndApps:"",Globe:"",EaseOfAccess:"",ContactInfo:"",Unpin:"",Contact:"",Memo:"",IncomingCall:""}};Bn(n,s)}function FD(o,s){o===void 0&&(o="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-1"',src:"url('"+o+"fabric-icons-1-4d521695.woff') format('woff')"},icons:{Paste:"",WindowsLogo:"",Error:"",GripperBarVertical:"",Unlock:"",Slideshow:"",Trim:"",AutoEnhanceOn:"",AutoEnhanceOff:"",Color:"",SaveAs:"",Light:"",Filters:"",AspectRatio:"",Contrast:"",Redo:"",Crop:"",PhotoCollection:"",Album:"",Rotate:"",PanoIndicator:"",Translate:"",RedEye:"",ViewOriginal:"",ThumbnailView:"",Package:"",Telemarketer:"",Warning:"",Financial:"",Education:"",ShoppingCart:"",Train:"",Move:"",TouchPointer:"",Merge:"",TurnRight:"",Ferry:"",Highlight:"",PowerButton:"",Tab:"",Admin:"",TVMonitor:"",Speakers:"",Game:"",HorizontalTabKey:"",UnstackSelected:"",StackIndicator:"",Nav2DMapView:"",StreetsideSplitMinimize:"",Car:"",Bus:"",EatDrink:"",SeeDo:"",LocationCircle:"",Home:"",SwitcherStartEnd:"",ParkingLocation:"",IncidentTriangle:"",Touch:"",MapDirections:"",CaretHollow:"",CaretSolid:"",History:"",Location:"",MapLayers:"",SearchNearby:"",Work:"",Recent:"",Hotel:"",Bank:"",LocationDot:"",Dictionary:"",ChromeBack:"",FolderOpen:"",PinnedFill:"",RevToggleKey:"",USB:"",Previous:"",Next:"",Sync:"",Help:"",Emoji:"",MailForward:"",ClosePane:"",OpenPane:"",PreviewLink:"",ZoomIn:"",Bookmarks:"",Document:"",ProtectedDocument:"",OpenInNewWindow:"",MailFill:"",ViewAll:"",Switch:"",Rename:"",Go:"",Remote:"",SelectAll:"",Orientation:"",Import:""}};Bn(n,s)}function ND(o,s){o===void 0&&(o="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-2"',src:"url('"+o+"fabric-icons-2-63c99abf.woff') format('woff')"},icons:{Picture:"",ChromeClose:"",ShowResults:"",Message:"",CalendarDay:"",CalendarWeek:"",MailReplyAll:"",Read:"",Cut:"",PaymentCard:"",Copy:"",Important:"",MailReply:"",GotoToday:"",Font:"",FontColor:"",FolderFill:"",Permissions:"",DisableUpdates:"",Unfavorite:"",Italic:"",Underline:"",Bold:"",MoveToFolder:"",Dislike:"",Like:"",AlignCenter:"",OpenFile:"",ClearSelection:"",FontDecrease:"",FontIncrease:"",FontSize:"",CellPhone:"",RepeatOne:"",RepeatAll:"",Calculator:"",Library:"",PostUpdate:"",NewFolder:"",CalendarReply:"",UnsyncFolder:"",SyncFolder:"",BlockContact:"",Accept:"",BulletedList:"",Preview:"",News:"",Chat:"",Group:"",World:"",Comment:"",DockLeft:"",DockRight:"",Repair:"",Accounts:"",Street:"",RadioBullet:"",Stopwatch:"",Clock:"",WorldClock:"",AlarmClock:"",Photo:"",ActionCenter:"",Hospital:"",Timer:"",FullCircleMask:"",LocationFill:"",ChromeMinimize:"",ChromeRestore:"",Annotation:"",Fingerprint:"",Handwriting:"",ChromeFullScreen:"",Completed:"",Label:"",FlickDown:"",FlickUp:"",FlickLeft:"",FlickRight:"",MiniExpand:"",MiniContract:"",Streaming:"",MusicInCollection:"",OneDriveLogo:"",CompassNW:"",Code:"",LightningBolt:"",CalculatorMultiply:"",CalculatorAddition:"",CalculatorSubtract:"",CalculatorPercentage:"",CalculatorEqualTo:"",PrintfaxPrinterFile:"",StorageOptical:"",Communications:"",Headset:"",Health:"",Webcam2:"",FrontCamera:"",ChevronUpSmall:""}};Bn(n,s)}function OD(o,s){o===void 0&&(o="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-3"',src:"url('"+o+"fabric-icons-3-089e217a.woff') format('woff')"},icons:{ChevronDownSmall:"",ChevronLeftSmall:"",ChevronRightSmall:"",ChevronUpMed:"",ChevronDownMed:"",ChevronLeftMed:"",ChevronRightMed:"",Devices2:"",PC1:"",PresenceChickletVideo:"",Reply:"",HalfAlpha:"",ConstructionCone:"",DoubleChevronLeftMed:"",Volume0:"",Volume1:"",Volume2:"",Volume3:"",Chart:"",Robot:"",Manufacturing:"",LockSolid:"",FitPage:"",FitWidth:"",BidiLtr:"",BidiRtl:"",RightDoubleQuote:"",Sunny:"",CloudWeather:"",Cloudy:"",PartlyCloudyDay:"",PartlyCloudyNight:"",ClearNight:"",RainShowersDay:"",Rain:"",Thunderstorms:"",RainSnow:"",Snow:"",BlowingSnow:"",Frigid:"",Fog:"",Squalls:"",Duststorm:"",Unknown:"",Precipitation:"",Ribbon:"",AreaChart:"",Assign:"",FlowChart:"",CheckList:"",Diagnostic:"",Generate:"",LineChart:"",Equalizer:"",BarChartHorizontal:"",BarChartVertical:"",Freezing:"",FunnelChart:"",Processing:"",Quantity:"",ReportDocument:"",StackColumnChart:"",SnowShowerDay:"",HailDay:"",WorkFlow:"",HourGlass:"",StoreLogoMed20:"",TimeSheet:"",TriangleSolid:"",UpgradeAnalysis:"",VideoSolid:"",RainShowersNight:"",SnowShowerNight:"",Teamwork:"",HailNight:"",PeopleAdd:"",Glasses:"",DateTime2:"",Shield:"",Header1:"",PageAdd:"",NumberedList:"",PowerBILogo:"",Info2:"",MusicInCollectionFill:"",Asterisk:"",ErrorBadge:"",CircleFill:"",Record2:"",AllAppsMirrored:"",BookmarksMirrored:"",BulletedListMirrored:"",CaretHollowMirrored:"",CaretSolidMirrored:"",ChromeBackMirrored:"",ClearSelectionMirrored:"",ClosePaneMirrored:"",DockLeftMirrored:"",DoubleChevronLeftMedMirrored:"",GoMirrored:""}};Bn(n,s)}function YD(o,s){o===void 0&&(o="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-4"',src:"url('"+o+"fabric-icons-4-a656cc0a.woff') format('woff')"},icons:{HelpMirrored:"",ImportMirrored:"",ImportAllMirrored:"",ListMirrored:"",MailForwardMirrored:"",MailReplyMirrored:"",MailReplyAllMirrored:"",MiniContractMirrored:"",MiniExpandMirrored:"",OpenPaneMirrored:"",ParkingLocationMirrored:"",SendMirrored:"",ShowResultsMirrored:"",ThumbnailViewMirrored:"",Media:"",Devices3:"",Focus:"",VideoLightOff:"",Lightbulb:"",StatusTriangle:"",VolumeDisabled:"",Puzzle:"",EmojiNeutral:"",EmojiDisappointed:"",HomeSolid:"",Ringer:"",PDF:"",HeartBroken:"",StoreLogo16:"",MultiSelectMirrored:"",Broom:"",AddToShoppingList:"",Cocktails:"",Wines:"",Articles:"",Cycling:"",DietPlanNotebook:"",Pill:"",ExerciseTracker:"",HandsFree:"",Medical:"",Running:"",Weights:"",Trackers:"",AddNotes:"",AllCurrency:"",BarChart4:"",CirclePlus:"",Coffee:"",Cotton:"",Market:"",Money:"",PieDouble:"",PieSingle:"",RemoveFilter:"",Savings:"",Sell:"",StockDown:"",StockUp:"",Lamp:"",Source:"",MSNVideos:"",Cricket:"",Golf:"",Baseball:"",Soccer:"",MoreSports:"",AutoRacing:"",CollegeHoops:"",CollegeFootball:"",ProFootball:"",ProHockey:"",Rugby:"",SubstitutionsIn:"",Tennis:"",Arrivals:"",Design:"",Website:"",Drop:"",HistoricalWeather:"",SkiResorts:"",Snowflake:"",BusSolid:"",FerrySolid:"",AirplaneSolid:"",TrainSolid:"",Ticket:"",WifiWarning4:"",Devices4:"",AzureLogo:"",BingLogo:"",MSNLogo:"",OutlookLogoInverse:"",OfficeLogo:"",SkypeLogo:"",Door:"",EditMirrored:"",GiftCard:"",DoubleBookmark:"",StatusErrorFull:""}};Bn(n,s)}function WD(o,s){o===void 0&&(o="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-5"',src:"url('"+o+"fabric-icons-5-f95ba260.woff') format('woff')"},icons:{Certificate:"",FastForward:"",Rewind:"",Photo2:"",OpenSource:"",Movers:"",CloudDownload:"",Family:"",WindDirection:"",Bug:"",SiteScan:"",BrowserScreenShot:"",F12DevTools:"",CSS:"",JS:"",DeliveryTruck:"",ReminderPerson:"",ReminderGroup:"",ReminderTime:"",TabletMode:"",Umbrella:"",NetworkTower:"",CityNext:"",CityNext2:"",Section:"",OneNoteLogoInverse:"",ToggleFilled:"",ToggleBorder:"",SliderThumb:"",ToggleThumb:"",Documentation:"",Badge:"",Giftbox:"",VisualStudioLogo:"",HomeGroup:"",ExcelLogoInverse:"",WordLogoInverse:"",PowerPointLogoInverse:"",Cafe:"",SpeedHigh:"",Commitments:"",ThisPC:"",MusicNote:"",MicOff:"",PlaybackRate1x:"",EdgeLogo:"",CompletedSolid:"",AlbumRemove:"",MessageFill:"",TabletSelected:"",MobileSelected:"",LaptopSelected:"",TVMonitorSelected:"",DeveloperTools:"",Shapes:"",InsertTextBox:"",LowerBrightness:"",WebComponents:"",OfflineStorage:"",DOM:"",CloudUpload:"",ScrollUpDown:"",DateTime:"",Event:"",Cake:"",Org:"",PartyLeader:"",DRM:"",CloudAdd:"",AppIconDefault:"",Photo2Add:"",Photo2Remove:"",Calories:"",POI:"",AddTo:"",RadioBtnOff:"",RadioBtnOn:"",ExploreContent:"",Product:"",ProgressLoopInner:"",ProgressLoopOuter:"",Blocked2:"",FangBody:"",Toolbox:"",PageHeader:"",ChatInviteFriend:"",Brush:"",Shirt:"",Crown:"",Diamond:"",ScaleUp:"",QRCode:"",Feedback:"",SharepointLogoInverse:"",YammerLogo:"",Hide:"",Uneditable:"",ReturnToSession:"",OpenFolderHorizontal:"",CalendarMirrored:""}};Bn(n,s)}function BD(o,s){o===void 0&&(o="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-6"',src:"url('"+o+"fabric-icons-6-ef6fd590.woff') format('woff')"},icons:{SwayLogoInverse:"",OutOfOffice:"",Trophy:"",ReopenPages:"",EmojiTabSymbols:"",AADLogo:"",AccessLogo:"",AdminALogoInverse32:"",AdminCLogoInverse32:"",AdminDLogoInverse32:"",AdminELogoInverse32:"",AdminLLogoInverse32:"",AdminMLogoInverse32:"",AdminOLogoInverse32:"",AdminPLogoInverse32:"",AdminSLogoInverse32:"",AdminYLogoInverse32:"",DelveLogoInverse:"",ExchangeLogoInverse:"",LyncLogo:"",OfficeVideoLogoInverse:"",SocialListeningLogo:"",VisioLogoInverse:"",Balloons:"",Cat:"",MailAlert:"",MailCheck:"",MailLowImportance:"",MailPause:"",MailRepeat:"",SecurityGroup:"",Table:"",VoicemailForward:"",VoicemailReply:"",Waffle:"",RemoveEvent:"",EventInfo:"",ForwardEvent:"",WipePhone:"",AddOnlineMeeting:"",JoinOnlineMeeting:"",RemoveLink:"",PeopleBlock:"",PeopleRepeat:"",PeopleAlert:"",PeoplePause:"",TransferCall:"",AddPhone:"",UnknownCall:"",NoteReply:"",NoteForward:"",NotePinned:"",RemoveOccurrence:"",Timeline:"",EditNote:"",CircleHalfFull:"",Room:"",Unsubscribe:"",Subscribe:"",HardDrive:"",RecurringTask:"",TaskManager:"",TaskManagerMirrored:"",Combine:"",Split:"",DoubleChevronUp:"",DoubleChevronLeft:"",DoubleChevronRight:"",TextBox:"",TextField:"",NumberField:"",Dropdown:"",PenWorkspace:"",BookingsLogo:"",ClassNotebookLogoInverse:"",DelveAnalyticsLogo:"",DocsLogoInverse:"",Dynamics365Logo:"",DynamicSMBLogo:"",OfficeAssistantLogo:"",OfficeStoreLogo:"",OneNoteEduLogoInverse:"",PlannerLogo:"",PowerApps:"",Suitcase:"",ProjectLogoInverse:"",CaretLeft8:"",CaretRight8:"",CaretUp8:"",CaretDown8:"",CaretLeftSolid8:"",CaretRightSolid8:"",CaretUpSolid8:"",CaretDownSolid8:"",ClearFormatting:"",Superscript:"",Subscript:"",Strikethrough:"",Export:"",ExportMirrored:""}};Bn(n,s)}function HD(o,s){o===void 0&&(o="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-7"',src:"url('"+o+"fabric-icons-7-2b97bb99.woff') format('woff')"},icons:{SingleBookmark:"",SingleBookmarkSolid:"",DoubleChevronDown:"",FollowUser:"",ReplyAll:"",WorkforceManagement:"",RecruitmentManagement:"",Questionnaire:"",ManagerSelfService:"",ProductionFloorManagement:"",ProductRelease:"",ProductVariant:"",ReplyMirrored:"",ReplyAllMirrored:"",Medal:"",AddGroup:"",QuestionnaireMirrored:"",CloudImportExport:"",TemporaryUser:"",CaretSolid16:"",GroupedDescending:"",GroupedAscending:"",AwayStatus:"",MyMoviesTV:"",GenericScan:"",AustralianRules:"",WifiEthernet:"",TrackersMirrored:"",DateTimeMirrored:"",StopSolid:"",DoubleChevronUp12:"",DoubleChevronDown12:"",DoubleChevronLeft12:"",DoubleChevronRight12:"",CalendarAgenda:"",ConnectVirtualMachine:"",AddEvent:"",AssetLibrary:"",DataConnectionLibrary:"",DocLibrary:"",FormLibrary:"",FormLibraryMirrored:"",ReportLibrary:"",ReportLibraryMirrored:"",ContactCard:"",CustomList:"",CustomListMirrored:"",IssueTracking:"",IssueTrackingMirrored:"",PictureLibrary:"",OfficeAddinsLogo:"",OfflineOneDriveParachute:"",OfflineOneDriveParachuteDisabled:"",TriangleSolidUp12:"",TriangleSolidDown12:"",TriangleSolidLeft12:"",TriangleSolidRight12:"",TriangleUp12:"",TriangleDown12:"",TriangleLeft12:"",TriangleRight12:"",ArrowUpRight8:"",ArrowDownRight8:"",DocumentSet:"",GoToDashboard:"",DelveAnalytics:"",ArrowUpRightMirrored8:"",ArrowDownRightMirrored8:"",CompanyDirectory:"",OpenEnrollment:"",CompanyDirectoryMirrored:"",OneDriveAdd:"",ProfileSearch:"",Header2:"",Header3:"",Header4:"",RingerSolid:"",Eyedropper:"",MarketDown:"",CalendarWorkWeek:"",SidePanel:"",GlobeFavorite:"",CaretTopLeftSolid8:"",CaretTopRightSolid8:"",ViewAll2:"",DocumentReply:"",PlayerSettings:"",ReceiptForward:"",ReceiptReply:"",ReceiptCheck:"",Fax:"",RecurringEvent:"",ReplyAlt:"",ReplyAllAlt:"",EditStyle:"",EditMail:"",Lifesaver:"",LifesaverLock:"",InboxCheck:"",FolderSearch:""}};Bn(n,s)}function zD(o,s){o===void 0&&(o="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-8"',src:"url('"+o+"fabric-icons-8-6fdf1528.woff') format('woff')"},icons:{CollapseMenu:"",ExpandMenu:"",Boards:"",SunAdd:"",SunQuestionMark:"",LandscapeOrientation:"",DocumentSearch:"",PublicCalendar:"",PublicContactCard:"",PublicEmail:"",PublicFolder:"",WordDocument:"",PowerPointDocument:"",ExcelDocument:"",GroupedList:"",ClassroomLogo:"",Sections:"",EditPhoto:"",Starburst:"",ShareiOS:"",AirTickets:"",PencilReply:"",Tiles2:"",SkypeCircleCheck:"",SkypeCircleClock:"",SkypeCircleMinus:"",SkypeMessage:"",ClosedCaption:"",ATPLogo:"",OfficeFormsLogoInverse:"",RecycleBin:"",EmptyRecycleBin:"",Hide2:"",Breadcrumb:"",BirthdayCake:"",TimeEntry:"",CRMProcesses:"",PageEdit:"",PageArrowRight:"",PageRemove:"",Database:"",DataManagementSettings:"",CRMServices:"",EditContact:"",ConnectContacts:"",AppIconDefaultAdd:"",AppIconDefaultList:"",ActivateOrders:"",DeactivateOrders:"",ProductCatalog:"",ScatterChart:"",AccountActivity:"",DocumentManagement:"",CRMReport:"",KnowledgeArticle:"",Relationship:"",HomeVerify:"",ZipFolder:"",SurveyQuestions:"",TextDocument:"",TextDocumentShared:"",PageCheckedOut:"",PageShared:"",SaveAndClose:"",Script:"",Archive:"",ActivityFeed:"",Compare:"",EventDate:"",ArrowUpRight:"",CaretRight:"",SetAction:"",ChatBot:"",CaretSolidLeft:"",CaretSolidDown:"",CaretSolidRight:"",CaretSolidUp:"",PowerAppsLogo:"",PowerApps2Logo:"",SearchIssue:"",SearchIssueMirrored:"",FabricAssetLibrary:"",FabricDataConnectionLibrary:"",FabricDocLibrary:"",FabricFormLibrary:"",FabricFormLibraryMirrored:"",FabricReportLibrary:"",FabricReportLibraryMirrored:"",FabricPublicFolder:"",FabricFolderSearch:"",FabricMovetoFolder:"",FabricUnsyncFolder:"",FabricSyncFolder:"",FabricOpenFolderHorizontal:"",FabricFolder:"",FabricFolderFill:"",FabricNewFolder:"",FabricPictureLibrary:"",PhotoVideoMedia:"",AddFavorite:""}};Bn(n,s)}function UD(o,s){o===void 0&&(o="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-9"',src:"url('"+o+"fabric-icons-9-c6162b42.woff') format('woff')"},icons:{AddFavoriteFill:"",BufferTimeBefore:"",BufferTimeAfter:"",BufferTimeBoth:"",PublishContent:"",ClipboardList:"",ClipboardListMirrored:"",CannedChat:"",SkypeForBusinessLogo:"",TabCenter:"",PageCheckedin:"",PageList:"",ReadOutLoud:"",CaretBottomLeftSolid8:"",CaretBottomRightSolid8:"",FolderHorizontal:"",MicrosoftStaffhubLogo:"",GiftboxOpen:"",StatusCircleOuter:"",StatusCircleInner:"",StatusCircleRing:"",StatusTriangleOuter:"",StatusTriangleInner:"",StatusTriangleExclamation:"",StatusCircleExclamation:"",StatusCircleErrorX:"",StatusCircleInfo:"",StatusCircleBlock:"",StatusCircleBlock2:"",StatusCircleQuestionMark:"",StatusCircleSync:"",Toll:"",ExploreContentSingle:"",CollapseContent:"",CollapseContentSingle:"",InfoSolid:"",GroupList:"",ProgressRingDots:"",CaloriesAdd:"",BranchFork:"",MuteChat:"",AddHome:"",AddWork:"",MobileReport:"",ScaleVolume:"",HardDriveGroup:"",FastMode:"",ToggleLeft:"",ToggleRight:"",TriangleShape:"",RectangleShape:"",CubeShape:"",Trophy2:"",BucketColor:"",BucketColorFill:"",Taskboard:"",SingleColumn:"",DoubleColumn:"",TripleColumn:"",ColumnLeftTwoThirds:"",ColumnRightTwoThirds:"",AccessLogoFill:"",AnalyticsLogo:"",AnalyticsQuery:"",NewAnalyticsQuery:"",AnalyticsReport:"",WordLogo:"",WordLogoFill:"",ExcelLogo:"",ExcelLogoFill:"",OneNoteLogo:"",OneNoteLogoFill:"",OutlookLogo:"",OutlookLogoFill:"",PowerPointLogo:"",PowerPointLogoFill:"",PublisherLogo:"",PublisherLogoFill:"",ScheduleEventAction:"",FlameSolid:"",ServerProcesses:"",Server:"",SaveAll:"",LinkedInLogo:"",Decimals:"",SidePanelMirrored:"",ProtectRestrict:"",Blog:"",UnknownMirrored:"",PublicContactCardMirrored:"",GridViewSmall:"",GridViewMedium:"",GridViewLarge:"",Step:"",StepInsert:"",StepShared:"",StepSharedAdd:"",StepSharedInsert:"",ViewDashboard:"",ViewList:""}};Bn(n,s)}function VD(o,s){o===void 0&&(o="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-10"',src:"url('"+o+"fabric-icons-10-c4ded8e4.woff') format('woff')"},icons:{ViewListGroup:"",ViewListTree:"",TriggerAuto:"",TriggerUser:"",PivotChart:"",StackedBarChart:"",StackedLineChart:"",BuildQueue:"",BuildQueueNew:"",UserFollowed:"",ContactLink:"",Stack:"",Bullseye:"",VennDiagram:"",FiveTileGrid:"",FocalPoint:"",Insert:"",RingerRemove:"",TeamsLogoInverse:"",TeamsLogo:"",TeamsLogoFill:"",SkypeForBusinessLogoFill:"",SharepointLogo:"",SharepointLogoFill:"",DelveLogo:"",DelveLogoFill:"",OfficeVideoLogo:"",OfficeVideoLogoFill:"",ExchangeLogo:"",ExchangeLogoFill:"",Signin:"",DocumentApproval:"",CloneToDesktop:"",InstallToDrive:"",Blur:"",Build:"",ProcessMetaTask:"",BranchFork2:"",BranchLocked:"",BranchCommit:"",BranchCompare:"",BranchMerge:"",BranchPullRequest:"",BranchSearch:"",BranchShelveset:"",RawSource:"",MergeDuplicate:"",RowsGroup:"",RowsChild:"",Deploy:"",Redeploy:"",ServerEnviroment:"",VisioDiagram:"",HighlightMappedShapes:"",TextCallout:"",IconSetsFlag:"",VisioLogo:"",VisioLogoFill:"",VisioDocument:"",TimelineProgress:"",TimelineDelivery:"",Backlog:"",TeamFavorite:"",TaskGroup:"",TaskGroupMirrored:"",ScopeTemplate:"",AssessmentGroupTemplate:"",NewTeamProject:"",CommentAdd:"",CommentNext:"",CommentPrevious:"",ShopServer:"",LocaleLanguage:"",QueryList:"",UserSync:"",UserPause:"",StreamingOff:"",ArrowTallUpLeft:"",ArrowTallUpRight:"",ArrowTallDownLeft:"",ArrowTallDownRight:"",FieldEmpty:"",FieldFilled:"",FieldChanged:"",FieldNotChanged:"",RingerOff:"",PlayResume:"",BulletedList2:"",BulletedList2Mirrored:"",ImageCrosshair:"",GitGraph:"",Repo:"",RepoSolid:"",FolderQuery:"",FolderList:"",FolderListMirrored:"",LocationOutline:"",POISolid:"",CalculatorNotEqualTo:"",BoxSubtractSolid:""}};Bn(n,s)}function GD(o,s){o===void 0&&(o="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-11"',src:"url('"+o+"fabric-icons-11-2a8393d6.woff') format('woff')"},icons:{BoxAdditionSolid:"",BoxMultiplySolid:"",BoxPlaySolid:"",BoxCheckmarkSolid:"",CirclePauseSolid:"",CirclePause:"",MSNVideosSolid:"",CircleStopSolid:"",CircleStop:"",NavigateBack:"",NavigateBackMirrored:"",NavigateForward:"",NavigateForwardMirrored:"",UnknownSolid:"",UnknownMirroredSolid:"",CircleAddition:"",CircleAdditionSolid:"",FilePDB:"",FileTemplate:"",FileSQL:"",FileJAVA:"",FileASPX:"",FileCSS:"",FileSass:"",FileLess:"",FileHTML:"",JavaScriptLanguage:"",CSharpLanguage:"",CSharp:"",VisualBasicLanguage:"",VB:"",CPlusPlusLanguage:"",CPlusPlus:"",FSharpLanguage:"",FSharp:"",TypeScriptLanguage:"",PythonLanguage:"",PY:"",CoffeeScript:"",MarkDownLanguage:"",FullWidth:"",FullWidthEdit:"",Plug:"",PlugSolid:"",PlugConnected:"",PlugDisconnected:"",UnlockSolid:"",Variable:"",Parameter:"",CommentUrgent:"",Storyboard:"",DiffInline:"",DiffSideBySide:"",ImageDiff:"",ImagePixel:"",FileBug:"",FileCode:"",FileComment:"",BusinessHoursSign:"",FileImage:"",FileSymlink:"",AutoFillTemplate:"",WorkItem:"",WorkItemBug:"",LogRemove:"",ColumnOptions:"",Packages:"",BuildIssue:"",AssessmentGroup:"",VariableGroup:"",FullHistory:"",Wheelchair:"",SingleColumnEdit:"",DoubleColumnEdit:"",TripleColumnEdit:"",ColumnLeftTwoThirdsEdit:"",ColumnRightTwoThirdsEdit:"",StreamLogo:"",PassiveAuthentication:"",AlertSolid:"",MegaphoneSolid:"",TaskSolid:"",ConfigurationSolid:"",BugSolid:"",CrownSolid:"",Trophy2Solid:"",QuickNoteSolid:"",ConstructionConeSolid:"",PageListSolid:"",PageListMirroredSolid:"",StarburstSolid:"",ReadingModeSolid:"",SadSolid:"",HealthSolid:"",ShieldSolid:"",GiftBoxSolid:"",ShoppingCartSolid:"",MailSolid:"",ChatSolid:"",RibbonSolid:""}};Bn(n,s)}function $D(o,s){o===void 0&&(o="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-12"',src:"url('"+o+"fabric-icons-12-7e945a1e.woff') format('woff')"},icons:{FinancialSolid:"",FinancialMirroredSolid:"",HeadsetSolid:"",PermissionsSolid:"",ParkingSolid:"",ParkingMirroredSolid:"",DiamondSolid:"",AsteriskSolid:"",OfflineStorageSolid:"",BankSolid:"",DecisionSolid:"",Parachute:"",ParachuteSolid:"",FiltersSolid:"",ColorSolid:"",ReviewSolid:"",ReviewRequestSolid:"",ReviewRequestMirroredSolid:"",ReviewResponseSolid:"",FeedbackRequestSolid:"",FeedbackRequestMirroredSolid:"",FeedbackResponseSolid:"",WorkItemBar:"",WorkItemBarSolid:"",Separator:"",NavigateExternalInline:"",PlanView:"",TimelineMatrixView:"",EngineeringGroup:"",ProjectCollection:"",CaretBottomRightCenter8:"",CaretBottomLeftCenter8:"",CaretTopRightCenter8:"",CaretTopLeftCenter8:"",DonutChart:"",ChevronUnfold10:"",ChevronFold10:"",DoubleChevronDown8:"",DoubleChevronUp8:"",DoubleChevronLeft8:"",DoubleChevronRight8:"",ChevronDownEnd6:"",ChevronUpEnd6:"",ChevronLeftEnd6:"",ChevronRightEnd6:"",ContextMenu:"",AzureAPIManagement:"",AzureServiceEndpoint:"",VSTSLogo:"",VSTSAltLogo1:"",VSTSAltLogo2:"",FileTypeSolution:"",WordLogoInverse16:"",WordLogo16:"",WordLogoFill16:"",PowerPointLogoInverse16:"",PowerPointLogo16:"",PowerPointLogoFill16:"",ExcelLogoInverse16:"",ExcelLogo16:"",ExcelLogoFill16:"",OneNoteLogoInverse16:"",OneNoteLogo16:"",OneNoteLogoFill16:"",OutlookLogoInverse16:"",OutlookLogo16:"",OutlookLogoFill16:"",PublisherLogoInverse16:"",PublisherLogo16:"",PublisherLogoFill16:"",VisioLogoInverse16:"",VisioLogo16:"",VisioLogoFill16:"",TestBeaker:"",TestBeakerSolid:"",TestExploreSolid:"",TestAutoSolid:"",TestUserSolid:"",TestImpactSolid:"",TestPlan:"",TestStep:"",TestParameter:"",TestSuite:"",TestCase:"",Sprint:"",SignOut:"",TriggerApproval:"",Rocket:"",AzureKeyVault:"",Onboarding:"",Transition:"",LikeSolid:"",DislikeSolid:"",CRMCustomerInsightsApp:"",EditCreate:"",PlayReverseResume:"",PlayReverse:"",SearchData:"",UnSetColor:"",DeclineCall:""}};Bn(n,s)}function KD(o,s){o===void 0&&(o="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-13"',src:"url('"+o+"fabric-icons-13-c3989a02.woff') format('woff')"},icons:{RectangularClipping:"",TeamsLogo16:"",TeamsLogoFill16:"",Spacer:"",SkypeLogo16:"",SkypeForBusinessLogo16:"",SkypeForBusinessLogoFill16:"",FilterSolid:"",MailUndelivered:"",MailTentative:"",MailTentativeMirrored:"",MailReminder:"",ReceiptUndelivered:"",ReceiptTentative:"",ReceiptTentativeMirrored:"",Inbox:"",IRMReply:"",IRMReplyMirrored:"",IRMForward:"",IRMForwardMirrored:"",VoicemailIRM:"",EventAccepted:"",EventTentative:"",EventTentativeMirrored:"",EventDeclined:"",IDBadge:"",BackgroundColor:"",OfficeFormsLogoInverse16:"",OfficeFormsLogo:"",OfficeFormsLogoFill:"",OfficeFormsLogo16:"",OfficeFormsLogoFill16:"",OfficeFormsLogoInverse24:"",OfficeFormsLogo24:"",OfficeFormsLogoFill24:"",PageLock:"",NotExecuted:"",NotImpactedSolid:"",FieldReadOnly:"",FieldRequired:"",BacklogBoard:"",ExternalBuild:"",ExternalTFVC:"",ExternalXAML:"",IssueSolid:"",DefectSolid:"",LadybugSolid:"",NugetLogo:"",TFVCLogo:"",ProjectLogo32:"",ProjectLogoFill32:"",ProjectLogo16:"",ProjectLogoFill16:"",SwayLogo32:"",SwayLogoFill32:"",SwayLogo16:"",SwayLogoFill16:"",ClassNotebookLogo32:"",ClassNotebookLogoFill32:"",ClassNotebookLogo16:"",ClassNotebookLogoFill16:"",ClassNotebookLogoInverse32:"",ClassNotebookLogoInverse16:"",StaffNotebookLogo32:"",StaffNotebookLogoFill32:"",StaffNotebookLogo16:"",StaffNotebookLogoFill16:"",StaffNotebookLogoInverted32:"",StaffNotebookLogoInverted16:"",KaizalaLogo:"",TaskLogo:"",ProtectionCenterLogo32:"",GallatinLogo:"",Globe2:"",Guitar:"",Breakfast:"",Brunch:"",BeerMug:"",Vacation:"",Teeth:"",Taxi:"",Chopsticks:"",SyncOccurence:"",UnsyncOccurence:"",GIF:"",PrimaryCalendar:"",SearchCalendar:"",VideoOff:"",MicrosoftFlowLogo:"",BusinessCenterLogo:"",ToDoLogoBottom:"",ToDoLogoTop:"",EditSolid12:"",EditSolidMirrored12:"",UneditableSolid12:"",UneditableSolidMirrored12:"",UneditableMirrored:"",AdminALogo32:"",AdminALogoFill32:"",ToDoLogoInverse:""}};Bn(n,s)}function qD(o,s){o===void 0&&(o="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-14"',src:"url('"+o+"fabric-icons-14-5cf58db8.woff') format('woff')"},icons:{Snooze:"",WaffleOffice365:"",ImageSearch:"",NewsSearch:"",VideoSearch:"",R:"",FontColorA:"",FontColorSwatch:"",LightWeight:"",NormalWeight:"",SemiboldWeight:"",GroupObject:"",UngroupObject:"",AlignHorizontalLeft:"",AlignHorizontalCenter:"",AlignHorizontalRight:"",AlignVerticalTop:"",AlignVerticalCenter:"",AlignVerticalBottom:"",HorizontalDistributeCenter:"",VerticalDistributeCenter:"",Ellipse:"",Line:"",Octagon:"",Hexagon:"",Pentagon:"",RightTriangle:"",HalfCircle:"",QuarterCircle:"",ThreeQuarterCircle:"","6PointStar":"","12PointStar":"",ArrangeBringToFront:"",ArrangeSendToBack:"",ArrangeSendBackward:"",ArrangeBringForward:"",BorderDash:"",BorderDot:"",LineStyle:"",LineThickness:"",WindowEdit:"",HintText:"",MediaAdd:"",AnchorLock:"",AutoHeight:"",ChartSeries:"",ChartXAngle:"",ChartYAngle:"",Combobox:"",LineSpacing:"",Padding:"",PaddingTop:"",PaddingBottom:"",PaddingLeft:"",PaddingRight:"",NavigationFlipper:"",AlignJustify:"",TextOverflow:"",VisualsFolder:"",VisualsStore:"",PictureCenter:"",PictureFill:"",PicturePosition:"",PictureStretch:"",PictureTile:"",Slider:"",SliderHandleSize:"",DefaultRatio:"",NumberSequence:"",GUID:"",ReportAdd:"",DashboardAdd:"",MapPinSolid:"",WebPublish:"",PieSingleSolid:"",BlockedSolid:"",DrillDown:"",DrillDownSolid:"",DrillExpand:"",DrillShow:"",SpecialEvent:"",OneDriveFolder16:"",FunctionalManagerDashboard:"",BIDashboard:"",CodeEdit:"",RenewalCurrent:"",RenewalFuture:"",SplitObject:"",BulkUpload:"",DownloadDocument:"",GreetingCard:"",Flower:"",WaitlistConfirm:"",WaitlistConfirmMirrored:"",LaptopSecure:"",DragObject:"",EntryView:"",EntryDecline:"",ContactCardSettings:"",ContactCardSettingsMirrored:""}};Bn(n,s)}function JD(o,s){o===void 0&&(o="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-15"',src:"url('"+o+"fabric-icons-15-3807251b.woff') format('woff')"},icons:{CalendarSettings:"",CalendarSettingsMirrored:"",HardDriveLock:"",HardDriveUnlock:"",AccountManagement:"",ReportWarning:"",TransitionPop:"",TransitionPush:"",TransitionEffect:"",LookupEntities:"",ExploreData:"",AddBookmark:"",SearchBookmark:"",DrillThrough:"",MasterDatabase:"",CertifiedDatabase:"",MaximumValue:"",MinimumValue:"",VisualStudioIDELogo32:"",PasteAsText:"",PasteAsCode:"",BrowserTab:"",BrowserTabScreenshot:"",DesktopScreenshot:"",FileYML:"",ClipboardSolid:"",FabricUserFolder:"",FabricNetworkFolder:"",BullseyeTarget:"",AnalyticsView:"",Video360Generic:"",Untag:"",Leave:"",Trending12:"",Blocked12:"",Warning12:"",CheckedOutByOther12:"",CheckedOutByYou12:"",CircleShapeSolid:"",SquareShapeSolid:"",TriangleShapeSolid:"",DropShapeSolid:"",RectangleShapeSolid:"",ZoomToFit:"",InsertColumnsLeft:"",InsertColumnsRight:"",InsertRowsAbove:"",InsertRowsBelow:"",DeleteColumns:"",DeleteRows:"",DeleteRowsMirrored:"",DeleteTable:"",AccountBrowser:"",VersionControlPush:"",StackedColumnChart2:"",TripleColumnWide:"",QuadColumn:"",WhiteBoardApp16:"",WhiteBoardApp32:"",PinnedSolid:"",InsertSignatureLine:"",ArrangeByFrom:"",Phishing:"",CreateMailRule:"",PublishCourse:"",DictionaryRemove:"",UserRemove:"",UserEvent:"",Encryption:"",PasswordField:"",OpenInNewTab:"",Hide3:"",VerifiedBrandSolid:"",MarkAsProtected:"",AuthenticatorApp:"",WebTemplate:"",DefenderTVM:"",MedalSolid:"",D365TalentLearn:"",D365TalentInsight:"",D365TalentHRCore:"",BacklogList:"",ButtonControl:"",TableGroup:"",MountainClimbing:"",TagUnknown:"",TagUnknownMirror:"",TagUnknown12:"",TagUnknown12Mirror:"",Link12:"",Presentation:"",Presentation12:"",Lock12:"",BuildDefinition:"",ReleaseDefinition:"",SaveTemplate:"",UserGauge:"",BlockedSiteSolid12:"",TagSolid:"",OfficeChat:""}};Bn(n,s)}function ZD(o,s){o===void 0&&(o="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-16"',src:"url('"+o+"fabric-icons-16-9cf93f3b.woff') format('woff')"},icons:{OfficeChatSolid:"",MailSchedule:"",WarningSolid:"",Blocked2Solid:"",SkypeCircleArrow:"",SkypeArrow:"",SyncStatus:"",SyncStatusSolid:"",ProjectDocument:"",ToDoLogoOutline:"",VisioOnlineLogoFill32:"",VisioOnlineLogo32:"",VisioOnlineLogoCloud32:"",VisioDiagramSync:"",Event12:"",EventDateMissed12:"",UserOptional:"",ResponsesMenu:"",DoubleDownArrow:"",DistributeDown:"",BookmarkReport:"",FilterSettings:"",GripperDotsVertical:"",MailAttached:"",AddIn:"",LinkedDatabase:"",TableLink:"",PromotedDatabase:"",BarChartVerticalFilter:"",BarChartVerticalFilterSolid:"",MicOff2:"",MicrosoftTranslatorLogo:"",ShowTimeAs:"",FileRequest:"",WorkItemAlert:"",PowerBILogo16:"",PowerBILogoBackplate16:"",BulletedListText:"",BulletedListBullet:"",BulletedListTextMirrored:"",BulletedListBulletMirrored:"",NumberedListText:"",NumberedListNumber:"",NumberedListTextMirrored:"",NumberedListNumberMirrored:"",RemoveLinkChain:"",RemoveLinkX:"",FabricTextHighlight:"",ClearFormattingA:"",ClearFormattingEraser:"",Photo2Fill:"",IncreaseIndentText:"",IncreaseIndentArrow:"",DecreaseIndentText:"",DecreaseIndentArrow:"",IncreaseIndentTextMirrored:"",IncreaseIndentArrowMirrored:"",DecreaseIndentTextMirrored:"",DecreaseIndentArrowMirrored:"",CheckListText:"",CheckListCheck:"",CheckListTextMirrored:"",CheckListCheckMirrored:"",NumberSymbol:"",Coupon:"",VerifiedBrand:"",ReleaseGate:"",ReleaseGateCheck:"",ReleaseGateError:"",M365InvoicingLogo:"",RemoveFromShoppingList:"",ShieldAlert:"",FabricTextHighlightComposite:"",Dataflows:"",GenericScanFilled:"",DiagnosticDataBarTooltip:"",SaveToMobile:"",Orientation2:"",ScreenCast:"",ShowGrid:"",SnapToGrid:"",ContactList:"",NewMail:"",EyeShadow:"",FabricFolderConfirm:"",InformationBarriers:"",CommentActive:"",ColumnVerticalSectionEdit:"",WavingHand:"",ShakeDevice:"",SmartGlassRemote:"",Rotate90Clockwise:"",Rotate90CounterClockwise:"",CampaignTemplate:"",ChartTemplate:"",PageListFilter:"",SecondaryNav:"",ColumnVerticalSection:"",SkypeCircleSlash:"",SkypeSlash:""}};Bn(n,s)}function XD(o,s){o===void 0&&(o="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-17"',src:"url('"+o+"fabric-icons-17-0c4ed701.woff') format('woff')"},icons:{CustomizeToolbar:"",DuplicateRow:"",RemoveFromTrash:"",MailOptions:"",Childof:"",Footer:"",Header:"",BarChartVerticalFill:"",StackedColumnChart2Fill:"",PlainText:"",AccessibiltyChecker:"",DatabaseSync:"",ReservationOrders:"",TabOneColumn:"",TabTwoColumn:"",TabThreeColumn:"",BulletedTreeList:"",MicrosoftTranslatorLogoGreen:"",MicrosoftTranslatorLogoBlue:"",InternalInvestigation:"",AddReaction:"",ContactHeart:"",VisuallyImpaired:"",EventToDoLogo:"",Variable2:"",ModelingView:"",DisconnectVirtualMachine:"",ReportLock:"",Uneditable2:"",Uneditable2Mirrored:"",BarChartVerticalEdit:"",GlobalNavButtonActive:"",PollResults:"",Rerun:"",QandA:"",QandAMirror:"",BookAnswers:"",AlertSettings:"",TrimStart:"",TrimEnd:"",TableComputed:"",DecreaseIndentLegacy:"",IncreaseIndentLegacy:"",SizeLegacy:""}};Bn(n,s)}var QD=function(){ed("trash","delete"),ed("onedrive","onedrivelogo"),ed("alertsolid12","eventdatemissed12"),ed("sixpointstar","6pointstar"),ed("twelvepointstar","12pointstar"),ed("toggleon","toggleleft"),ed("toggleoff","toggleright")};Ny("@uifabric/icons","7.9.5");var eI="https://res.cdn.office.net/files/fabric-cdn-prod_20241209.001/assets/icons/",sx=nt();function tI(o,s){o===void 0&&(o=((t=(n=sx)===null||n===void 0?void 0:n.FabricConfig)===null||t===void 0?void 0:t.iconBaseUrl)||((d=(i=sx)===null||i===void 0?void 0:i.FabricConfig)===null||d===void 0?void 0:d.fontBaseUrl)||eI);var n,t,i,d;[PD,RD,FD,ND,OD,YD,WD,BD,HD,zD,UD,VD,GD,$D,KD,qD,JD,ZD,XD].forEach(function(c){return c(o,s)}),QD()}var Be;(function(o){o[o.info=0]="info",o[o.error=1]="error",o[o.blocked=2]="blocked",o[o.severeWarning=3]="severeWarning",o[o.success=4]="success",o[o.warning=5]="warning"})(Be||(Be={}));var nI=Je(),rI=(function(o){Ne(s,o);function s(n){var t,i=o.call(this,n)||this;return i.ICON_MAP=(t={},t[Be.info]="Info",t[Be.warning]="Info",t[Be.error]="ErrorBadge",t[Be.blocked]="Blocked2",t[Be.severeWarning]="Warning",t[Be.success]="Completed",t),i._getRegionProps=function(){var d=!!i._getActionsDiv()||!!i._getDismissDiv(),c={"aria-describedby":i.state.labelId,role:"region"};return d?c:{}},i._onClick=function(d){i.setState({expandSingleLine:!i.state.expandSingleLine})},St(i),i.state={labelId:zt("MessageBar"),showContent:!1,expandSingleLine:!1},i}return s.prototype.render=function(){var n=this.props.isMultiline;return this._classNames=this._getClassNames(),n?this._renderMultiLine():this._renderSingleLine()},s.prototype._getActionsDiv=function(){return this.props.actions?M.createElement("div",{className:this._classNames.actions},this.props.actions):null},s.prototype._getDismissDiv=function(){var n=this.props,t=n.onDismiss,i=n.dismissIconProps;return t?M.createElement(Ke,{disabled:!1,className:this._classNames.dismissal,onClick:t,iconProps:i||{iconName:"Clear"},title:this.props.dismissButtonAriaLabel,ariaLabel:this.props.dismissButtonAriaLabel}):null},s.prototype._getDismissSingleLine=function(){return this.props.onDismiss?M.createElement("div",{className:this._classNames.dismissSingleLine},this._getDismissDiv()):null},s.prototype._getExpandSingleLine=function(){return!this.props.actions&&this.props.truncated?M.createElement("div",{className:this._classNames.expandSingleLine},M.createElement(Ke,{disabled:!1,className:this._classNames.expand,onClick:this._onClick,iconProps:{iconName:this.state.expandSingleLine?"DoubleChevronUp":"DoubleChevronDown"},ariaLabel:this.props.overflowButtonAriaLabel,"aria-expanded":this.state.expandSingleLine})):null},s.prototype._getIconSpan=function(){var n=this.props.messageBarIconProps;return M.createElement("div",{className:this._classNames.iconContainer,"aria-hidden":!0},n?M.createElement(ze,F({},n,{className:on(this._classNames.icon,n.className)})):M.createElement(ze,{iconName:this.ICON_MAP[this.props.messageBarType],className:this._classNames.icon}))},s.prototype._renderMultiLine=function(){return M.createElement("div",F({className:this._classNames.root},this._getRegionProps()),M.createElement("div",{className:this._classNames.content},this._getIconSpan(),this._renderInnerText(),this._getDismissDiv()),this._getActionsDiv())},s.prototype._renderSingleLine=function(){return M.createElement("div",F({className:this._classNames.root},this._getRegionProps()),M.createElement("div",{className:this._classNames.content},this._getIconSpan(),this._renderInnerText(),this._getExpandSingleLine(),this._getActionsDiv(),this._getDismissSingleLine()))},s.prototype._renderInnerText=function(){var n=pt(this.props,sn,["className"]);return M.createElement("div",{className:this._classNames.text,id:this.state.labelId,role:"status","aria-live":this._getAnnouncementPriority()},M.createElement("span",F({className:this._classNames.innerText},n),M.createElement(og,null,M.createElement("span",null,this.props.children))))},s.prototype._getClassNames=function(){var n=this.props,t=n.theme,i=n.className,d=n.messageBarType,c=n.onDismiss,u=n.actions,h=n.truncated,g=n.isMultiline,w=this.state.expandSingleLine;return nI(this.props.styles,{theme:t,messageBarType:d||Be.info,onDismiss:c!==void 0,actions:u!==void 0,truncated:h,isMultiline:g,expandSingleLine:w,className:i})},s.prototype._getAnnouncementPriority=function(){switch(this.props.messageBarType){case Be.blocked:case Be.error:case Be.severeWarning:return"assertive"}return"polite"},s.defaultProps={messageBarType:Be.info,onDismiss:void 0,isMultiline:!0},s})(M.Component),Ya,Wa,Ba,oI={root:"ms-MessageBar",error:"ms-MessageBar--error",blocked:"ms-MessageBar--blocked",severeWarning:"ms-MessageBar--severeWarning",success:"ms-MessageBar--success",warning:"ms-MessageBar--warning",multiline:"ms-MessageBar-multiline",singleline:"ms-MessageBar-singleline",dismissalSingleLine:"ms-MessageBar-dismissalSingleLine",expandingSingleLine:"ms-MessageBar-expandingSingleLine",content:"ms-MessageBar-content",iconContainer:"ms-MessageBar-icon",text:"ms-MessageBar-text",innerText:"ms-MessageBar-innerText",dismissSingleLine:"ms-MessageBar-dismissSingleLine",expandSingleLine:"ms-MessageBar-expandSingleLine",dismissal:"ms-MessageBar-dismissal",expand:"ms-MessageBar-expand",actions:"ms-MessageBar-actions",actionsSingleline:"ms-MessageBar-actionsSingleLine"},sI=(Ya={},Ya[Be.error]="errorBackground",Ya[Be.blocked]="errorBackground",Ya[Be.success]="successBackground",Ya[Be.warning]="warningBackground",Ya[Be.severeWarning]="severeWarningBackground",Ya[Be.info]="infoBackground",Ya),iI=(Wa={},Wa[Be.error]="rgba(255, 0, 0, 0.3)",Wa[Be.blocked]="rgba(255, 0, 0, 0.3)",Wa[Be.success]="rgba(48, 241, 73, 0.3)",Wa[Be.warning]="rgba(255, 254, 57, 0.3)",Wa[Be.severeWarning]="rgba(255, 0, 0, 0.3)",Wa[Be.info]="Window",Wa),aI=(Ba={},Ba[Be.error]="errorIcon",Ba[Be.blocked]="errorIcon",Ba[Be.success]="successIcon",Ba[Be.warning]="warningIcon",Ba[Be.severeWarning]="severeWarningIcon",Ba[Be.info]="infoIcon",Ba),lI=function(o){var s,n,t,i,d,c=o.theme,u=o.className,h=o.onDismiss,g=o.truncated,w=o.isMultiline,m=o.expandSingleLine,x=o.messageBarType,_=x===void 0?Be.info:x,v=c.semanticColors,b=c.fonts,C=cg(0,Df),k=it(oI,c),L={fontSize:Mr.xSmall,height:10,lineHeight:"10px",color:v.messageText,selectors:(s={},s[_e]=F(F({},bt()),{color:"WindowText"}),s)},T=[On(c,{inset:1,highContrastStyle:{outlineOffset:"-6px",outline:"1px solid Highlight"},borderColor:"transparent"}),{flexShrink:0,width:32,height:32,padding:"8px 12px",selectors:{"& .ms-Button-icon":L,":hover":{backgroundColor:"transparent"},":active":{backgroundColor:"transparent"}}}];return{root:[k.root,b.medium,_===Be.error&&k.error,_===Be.blocked&&k.blocked,_===Be.severeWarning&&k.severeWarning,_===Be.success&&k.success,_===Be.warning&&k.warning,w?k.multiline:k.singleline,!w&&h&&k.dismissalSingleLine,!w&&g&&k.expandingSingleLine,{background:v[sI[_]],color:v.messageText,minHeight:32,width:"100%",display:"flex",wordBreak:"break-word",selectors:(n={".ms-Link":{color:v.messageLink,selectors:{":hover":{color:v.messageLinkHovered}}}},n[_e]=F(F({},bt()),{background:iI[_],border:"1px solid WindowText",color:"WindowText"}),n)},w&&{flexDirection:"column"},u],content:[k.content,{display:"flex",width:"100%",lineHeight:"normal"}],iconContainer:[k.iconContainer,{fontSize:Mr.medium,minWidth:16,minHeight:16,display:"flex",flexShrink:0,margin:"8px 0 8px 12px"}],icon:{color:v[aI[_]],selectors:(t={},t[_e]=F(F({},bt()),{color:"WindowText"}),t)},text:[k.text,F(F({minWidth:0,display:"flex",flexGrow:1,margin:8},b.small),{selectors:(i={},i[_e]=F({},bt()),i)}),!h&&{marginRight:12}],innerText:[k.innerText,{lineHeight:16,selectors:{"& span a":{paddingLeft:4}}},g&&{overflow:"visible",whiteSpace:"pre-wrap"},!w&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},!w&&!g&&{selectors:(d={},d[C]={overflow:"visible",whiteSpace:"pre-wrap"},d)},m&&{overflow:"visible",whiteSpace:"pre-wrap"}],dismissSingleLine:k.dismissSingleLine,expandSingleLine:k.expandSingleLine,dismissal:[k.dismissal,T],expand:[k.expand,T],actions:[w?k.actions:k.actionsSingleline,{display:"flex",flexGrow:0,flexShrink:0,flexBasis:"auto",flexDirection:"row-reverse",alignItems:"center",margin:"0 12px 0 8px",selectors:{"& button:nth-child(n+2)":{marginLeft:8}}},w&&{marginBottom:8},h&&!w&&{marginRight:0}]}},Jr=Ze(rI,lI,void 0,{scope:"MessageBar"}),ix=Je(),dI=.01,cI=(function(o){Ne(s,o);function s(n){var t=o.call(this,n)||this;t._onRenderProgress=function(d){var c=t.props,u=c.ariaValueText,h=c.barHeight,g=c.className,w=c.description,m=c.label,x=m===void 0?t.props.title:m,_=c.styles,v=c.theme,b=typeof t.props.percentComplete=="number"?Math.min(100,Math.max(0,t.props.percentComplete*100)):void 0,C=ix(_,{theme:v,className:g,barHeight:h,indeterminate:b===void 0}),k={width:b!==void 0?b+"%":void 0,transition:b!==void 0&&b<dI?"none":void 0},L=b!==void 0?0:void 0,T=b!==void 0?100:void 0,N=b!==void 0?Math.floor(b):void 0;return M.createElement("div",{className:C.itemProgress},M.createElement("div",{className:C.progressTrack}),M.createElement("div",{className:C.progressBar,style:k,role:"progressbar","aria-describedby":w?t._descriptionId:void 0,"aria-labelledby":x?t._labelId:void 0,"aria-valuemin":L,"aria-valuemax":T,"aria-valuenow":N,"aria-valuetext":u}))};var i=zt("progress-indicator");return t._labelId=i+"-label",t._descriptionId=i+"-description",t}return s.prototype.render=function(){var n=this.props,t=n.barHeight,i=n.className,d=n.label,c=d===void 0?this.props.title:d,u=n.description,h=n.styles,g=n.theme,w=n.progressHidden,m=n.onRenderProgress,x=m===void 0?this._onRenderProgress:m,_=typeof this.props.percentComplete=="number"?Math.min(100,Math.max(0,this.props.percentComplete*100)):void 0,v=ix(h,{theme:g,className:i,barHeight:t,indeterminate:_===void 0});return M.createElement("div",{className:v.root},c?M.createElement("div",{id:this._labelId,className:v.itemName},c):null,w?null:x(F(F({},this.props),{percentComplete:_}),this._onRenderProgress),u?M.createElement("div",{id:this._descriptionId,className:v.itemDescription},u):null)},s.defaultProps={label:"",description:"",width:180},s})(M.Component),uI={root:"ms-ProgressIndicator",itemName:"ms-ProgressIndicator-itemName",itemDescription:"ms-ProgressIndicator-itemDescription",itemProgress:"ms-ProgressIndicator-itemProgress",progressTrack:"ms-ProgressIndicator-progressTrack",progressBar:"ms-ProgressIndicator-progressBar"},pI=Et(function(){return yn({"0%":{left:"-30%"},"100%":{left:"100%"}})}),hI=Et(function(){return yn({"100%":{right:"-30%"},"0%":{right:"100%"}})}),mI=function(o){var s,n,t,i=Tt(o.theme),d=o.className,c=o.indeterminate,u=o.theme,h=o.barHeight,g=h===void 0?2:h,w=u.palette,m=u.semanticColors,x=u.fonts,_=it(uI,u),v=8,b=18,C=w.neutralLight;return{root:[_.root,x.medium,d],itemName:[_.itemName,z3,{color:m.bodyText,paddingTop:v/2,lineHeight:b+2}],itemDescription:[_.itemDescription,{color:m.bodySubtext,fontSize:x.small.fontSize,lineHeight:b}],itemProgress:[_.itemProgress,{position:"relative",overflow:"hidden",height:g,padding:v+"px 0"}],progressTrack:[_.progressTrack,{position:"absolute",width:"100%",height:g,backgroundColor:C,selectors:(s={},s[_e]={borderBottom:"1px solid WindowText"},s)}],progressBar:[{backgroundColor:w.themePrimary,height:g,position:"absolute",transition:"width .3s ease",width:0,selectors:(n={},n[_e]=F({backgroundColor:"highlight"},bt()),n)},c?{position:"absolute",minWidth:"33%",background:"linear-gradient(to right, "+C+" 0%, "+(w.themePrimary+" 50%, "+C+" 100%)"),animation:(i?hI():pI())+" 3s infinite",selectors:(t={},t[_e]={background:"highlight"},t)}:{transition:"width .15s linear"},_.progressBar]}},Hb=Ze(cI,mI,void 0,{scope:"ProgressIndicator"}),fI={root:"ms-ScrollablePane",contentContainer:"ms-ScrollablePane--contentContainer"},gI=function(o){var s,n,t=o.className,i=o.theme,d=it(fI,i),c={position:"absolute",pointerEvents:"none"},u={position:"absolute",top:0,right:0,bottom:0,left:0,WebkitOverflowScrolling:"touch"};return{root:[d.root,i.fonts.medium,u,t],contentContainer:[d.contentContainer,{overflowY:o.scrollbarVisibility==="always"?"scroll":"auto"},u],stickyAbove:[{top:0,zIndex:1,selectors:(s={},s[_e]={borderBottom:"1px solid WindowText"},s)},c],stickyBelow:[{bottom:0,selectors:(n={},n[_e]={borderTop:"1px solid WindowText"},n)},c],stickyBelowItems:[{bottom:0},c,{width:"100%"}]}},_I=M.createContext({scrollablePane:void 0}),yI=Je(),wI=(function(o){Ne(s,o);function s(n){var t=o.call(this,n)||this;return t._root=M.createRef(),t._stickyAboveRef=M.createRef(),t._stickyBelowRef=M.createRef(),t._contentContainer=M.createRef(),t.subscribe=function(i){t._subscribers.add(i)},t.unsubscribe=function(i){t._subscribers.delete(i)},t.addSticky=function(i){t._stickies.add(i),t.contentContainer&&(i.setDistanceFromTop(t.contentContainer),t.sortSticky(i))},t.removeSticky=function(i){t._stickies.delete(i),t._removeStickyFromContainers(i),t.notifySubscribers()},t.sortSticky=function(i,d){t.stickyAbove&&t.stickyBelow&&(d&&t._removeStickyFromContainers(i),i.canStickyTop&&i.stickyContentTop&&t._addToStickyContainer(i,t.stickyAbove,i.stickyContentTop),i.canStickyBottom&&i.stickyContentBottom&&t._addToStickyContainer(i,t.stickyBelow,i.stickyContentBottom))},t.updateStickyRefHeights=function(){var i=t._stickies,d=0,c=0;i.forEach(function(u){var h=u.state,g=h.isStickyTop,w=h.isStickyBottom;u.nonStickyContent&&(g&&(d+=u.nonStickyContent.offsetHeight),w&&(c+=u.nonStickyContent.offsetHeight),t._checkStickyStatus(u))}),t.setState({stickyTopHeight:d,stickyBottomHeight:c})},t.notifySubscribers=function(){t.contentContainer&&t._subscribers.forEach(function(i){i(t.contentContainer,t.stickyBelow)})},t.getScrollPosition=function(){return t.contentContainer?t.contentContainer.scrollTop:0},t.syncScrollSticky=function(i){i&&t.contentContainer&&i.syncScroll(t.contentContainer)},t._getScrollablePaneContext=function(){return{scrollablePane:{subscribe:t.subscribe,unsubscribe:t.unsubscribe,addSticky:t.addSticky,removeSticky:t.removeSticky,updateStickyRefHeights:t.updateStickyRefHeights,sortSticky:t.sortSticky,notifySubscribers:t.notifySubscribers,syncScrollSticky:t.syncScrollSticky}}},t._addToStickyContainer=function(i,d,c){if(!d.children.length)d.appendChild(c);else if(!d.contains(c)){var u=[].slice.call(d.children),h=[];t._stickies.forEach(function(b){(d===t.stickyAbove&&i.canStickyTop||i.canStickyBottom)&&h.push(b)});for(var g=h.sort(function(b,C){return(b.state.distanceFromTop||0)-(C.state.distanceFromTop||0)}).filter(function(b){var C=d===t.stickyAbove?b.stickyContentTop:b.stickyContentBottom;return C?u.indexOf(C)>-1:!1}),w=void 0,m=0,x=g;m<x.length;m++){var _=x[m];if((_.state.distanceFromTop||0)>=(i.state.distanceFromTop||0)){w=_;break}}var v=null;w&&(v=d===t.stickyAbove?w.stickyContentTop:w.stickyContentBottom),d.insertBefore(c,v)}},t._removeStickyFromContainers=function(i){t.stickyAbove&&i.stickyContentTop&&t.stickyAbove.contains(i.stickyContentTop)&&t.stickyAbove.removeChild(i.stickyContentTop),t.stickyBelow&&i.stickyContentBottom&&t.stickyBelow.contains(i.stickyContentBottom)&&t.stickyBelow.removeChild(i.stickyContentBottom)},t._onWindowResize=function(){var i=t._getScrollbarWidth(),d=t._getScrollbarHeight();t.setState({scrollbarWidth:i,scrollbarHeight:d}),t.notifySubscribers()},t._getStickyContainerStyle=function(i,d){return F(F({height:i},Tt(t.props.theme)?{right:"0",left:(t.state.scrollbarWidth||t._getScrollbarWidth()||0)+"px"}:{left:"0",right:(t.state.scrollbarWidth||t._getScrollbarWidth()||0)+"px"}),d?{top:"0"}:{bottom:(t.state.scrollbarHeight||t._getScrollbarHeight()||0)+"px"})},t._onScroll=function(){var i=t.contentContainer;i&&t._stickies.forEach(function(d){d.syncScroll(i)}),t._notifyThrottled()},t._subscribers=new Set,t._stickies=new Set,St(t),t._async=new Wn(t),t._events=new Yt(t),t.state={stickyTopHeight:0,stickyBottomHeight:0,scrollbarWidth:0,scrollbarHeight:0},t._notifyThrottled=t._async.throttle(t.notifySubscribers,50),t}return Object.defineProperty(s.prototype,"root",{get:function(){return this._root.current},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"stickyAbove",{get:function(){return this._stickyAboveRef.current},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"stickyBelow",{get:function(){return this._stickyBelowRef.current},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"contentContainer",{get:function(){return this._contentContainer.current},enumerable:!0,configurable:!0}),s.prototype.componentDidMount=function(){var n=this,t=this.props.initialScrollPosition;this._events.on(this.contentContainer,"scroll",this._onScroll),this._events.on(window,"resize",this._onWindowResize),this.contentContainer&&t&&(this.contentContainer.scrollTop=t),this.setStickiesDistanceFromTop(),this._stickies.forEach(function(i){n.sortSticky(i)}),this.notifySubscribers(),"MutationObserver"in window&&(this._mutationObserver=new MutationObserver(function(i){function d(h){return this.stickyAbove!==null&&this.stickyBelow!==null?this.stickyAbove.contains(h.target)||this.stickyBelow.contains(h.target):!1}var c=n._getScrollbarHeight();if(c!==n.state.scrollbarHeight&&n.setState({scrollbarHeight:c}),n.notifySubscribers(),i.some(d.bind(n)))n.updateStickyRefHeights();else{var u=[];n._stickies.forEach(function(h){h.root&&h.root.contains(i[0].target)&&u.push(h)}),u.length&&u.forEach(function(h){h.forceUpdate()})}}),this.root&&this._mutationObserver.observe(this.root,{childList:!0,attributes:!0,subtree:!0,characterData:!0}))},s.prototype.componentWillUnmount=function(){this._events.dispose(),this._async.dispose(),this._mutationObserver&&this._mutationObserver.disconnect()},s.prototype.shouldComponentUpdate=function(n,t){return this.props.children!==n.children||this.props.initialScrollPosition!==n.initialScrollPosition||this.props.className!==n.className||this.state.stickyTopHeight!==t.stickyTopHeight||this.state.stickyBottomHeight!==t.stickyBottomHeight||this.state.scrollbarWidth!==t.scrollbarWidth||this.state.scrollbarHeight!==t.scrollbarHeight},s.prototype.componentDidUpdate=function(n,t){var i=this.props.initialScrollPosition;this.contentContainer&&typeof i=="number"&&n.initialScrollPosition!==i&&(this.contentContainer.scrollTop=i),(t.stickyTopHeight!==this.state.stickyTopHeight||t.stickyBottomHeight!==this.state.stickyBottomHeight)&&this.notifySubscribers(),this._async.setTimeout(this._onWindowResize,0)},s.prototype.render=function(){var n=this.props,t=n.className,i=n.theme,d=n.styles,c=this.state,u=c.stickyTopHeight,h=c.stickyBottomHeight,g=yI(d,{theme:i,className:t,scrollbarVisibility:this.props.scrollbarVisibility});return M.createElement("div",F({},pt(this.props,Yn),{ref:this._root,className:g.root}),M.createElement("div",{ref:this._stickyAboveRef,className:g.stickyAbove,style:this._getStickyContainerStyle(u,!0)}),M.createElement("div",{ref:this._contentContainer,className:g.contentContainer,"data-is-scrollable":!0},M.createElement(_I.Provider,{value:this._getScrollablePaneContext()},this.props.children)),M.createElement("div",{className:g.stickyBelow,style:this._getStickyContainerStyle(h,!1)},M.createElement("div",{ref:this._stickyBelowRef,className:g.stickyBelowItems})))},s.prototype.setStickiesDistanceFromTop=function(){var n=this;this.contentContainer&&this._stickies.forEach(function(t){t.setDistanceFromTop(n.contentContainer)})},s.prototype.forceLayoutUpdate=function(){this._onWindowResize()},s.prototype._checkStickyStatus=function(n){this.stickyAbove&&this.stickyBelow&&this.contentContainer&&n.nonStickyContent&&(n.state.isStickyTop||n.state.isStickyBottom?(n.state.isStickyTop&&!this.stickyAbove.contains(n.nonStickyContent)&&n.stickyContentTop&&n.addSticky(n.stickyContentTop),n.state.isStickyBottom&&!this.stickyBelow.contains(n.nonStickyContent)&&n.stickyContentBottom&&n.addSticky(n.stickyContentBottom)):this.contentContainer.contains(n.nonStickyContent)||n.resetSticky())},s.prototype._getScrollbarWidth=function(){var n=this.contentContainer;return n?n.offsetWidth-n.clientWidth:0},s.prototype._getScrollbarHeight=function(){var n=this.contentContainer;return n?n.offsetHeight-n.clientHeight:0},s})(M.Component),vI=Ze(wI,gI,void 0,{scope:"ScrollablePane"}),xI=Je(),bI="SearchBox",SI=(function(o){Ne(s,o);function s(n){var t=o.call(this,n)||this;return t._rootElement=M.createRef(),t._inputElement=M.createRef(),t._onClickFocus=function(){var i=t._inputElement.current;i&&(t.focus(),i.selectionStart=i.selectionEnd=0)},t._onFocusCapture=function(i){t.setState({hasFocus:!0}),t.props.onFocus&&t.props.onFocus(i)},t._onClearClick=function(i){var d=t.props.clearButtonProps;d&&d.onClick&&d.onClick(i),i.defaultPrevented||t._onClear(i)},t._onKeyDown=function(i){switch(i.which){case ke.escape:t.props.onEscape&&t.props.onEscape(i),t.state.value&&!i.defaultPrevented&&t._onClear(i);break;case ke.enter:t.props.onSearch&&(t.props.onSearch(t.state.value),i.preventDefault(),i.stopPropagation());break;default:t.props.onKeyDown&&t.props.onKeyDown(i),i.defaultPrevented&&i.stopPropagation();break}},t._onBlur=function(i){t.setState({hasFocus:!1}),t.props.onBlur&&t.props.onBlur(i)},t._onInputChange=function(i){var d=i.target.value;d!==t._latestValue&&(t._latestValue=d,t.setState({value:d}),t._callOnChange(i,d))},St(t),t._latestValue=n.value||"",t._fallbackId=zt(bI),t.state={value:t._latestValue,hasFocus:!1},t}return s.prototype.UNSAFE_componentWillReceiveProps=function(n){n.value!==void 0&&(this._latestValue=n.value,this.setState({value:n.value||""}))},s.prototype.render=function(){var n=this.props,t=n.ariaLabel,i=n.placeholder,d=n.className,c=n.disabled,u=n.underlined,h=n.styles,g=n.labelText,w=n.theme,m=n.clearButtonProps,x=n.disableAnimation,_=n.iconProps,v=n.role,b=n.id,C=b===void 0?this._fallbackId:b,k=this.state,L=k.value,T=k.hasFocus,N=i!==void 0?i:g,Y=xI(h,{theme:w,className:d,underlined:u,hasFocus:T,disabled:c,hasInput:L.length>0,disableAnimation:x}),A=pt(this.props,ah,["className","placeholder","onFocus","onBlur","value","role"]);return M.createElement("div",{role:v,ref:this._rootElement,className:Y.root,onFocusCapture:this._onFocusCapture},M.createElement("div",{className:Y.iconContainer,onClick:this._onClickFocus,"aria-hidden":!0},M.createElement(ze,F({iconName:"Search"},_,{className:Y.icon}))),M.createElement("input",F({},A,{id:C,className:Y.field,placeholder:N,onChange:this._onInputChange,onInput:this._onInputChange,onBlur:this._onBlur,onKeyDown:this._onKeyDown,value:L,disabled:c,role:"searchbox","aria-label":t,ref:this._inputElement})),L.length>0&&M.createElement("div",{className:Y.clearButton},M.createElement(Ke,F({onBlur:this._onBlur,styles:{root:{height:"auto"},icon:{fontSize:"12px"}},iconProps:{iconName:"Clear"}},m,{onClick:this._onClearClick}))))},s.prototype.focus=function(){this._inputElement.current&&this._inputElement.current.focus()},s.prototype.hasFocus=function(){return!!this.state.hasFocus},s.prototype._onClear=function(n){this.props.onClear&&this.props.onClear(n),n.defaultPrevented||(this._latestValue="",this.setState({value:""}),this._callOnChange(void 0,""),n.stopPropagation(),n.preventDefault(),this.focus())},s.prototype._callOnChange=function(n,t){var i=this.props,d=i.onChange,c=i.onChanged;c&&c(t),d&&d(n,t)},s.defaultProps={disableAnimation:!1,clearButtonProps:{ariaLabel:"Clear text"}},s})(M.Component),CI={root:"ms-SearchBox",iconContainer:"ms-SearchBox-iconContainer",icon:"ms-SearchBox-icon",clearButton:"ms-SearchBox-clearButton",field:"ms-SearchBox-field"};function kI(o){var s,n,t,i,d=o.theme,c=o.underlined,u=o.disabled,h=o.hasFocus,g=o.className,w=o.hasInput,m=o.disableAnimation,x=d.palette,_=d.fonts,v=d.semanticColors,b=d.effects,C=it(CI,d),k={color:v.inputPlaceholderText,opacity:1},L=x.neutralSecondary,T=x.neutralPrimary,N=x.neutralLighter,Y=x.neutralLighter,A=x.neutralLighter;return{root:[C.root,_.medium,cd,{color:v.inputText,backgroundColor:v.inputBackground,display:"flex",flexDirection:"row",flexWrap:"nowrap",alignItems:"stretch",padding:"1px 0 1px 4px",borderRadius:b.roundedCorner2,border:"1px solid "+v.inputBorder,height:32,selectors:(s={},s[_e]={borderColor:"WindowText"},s[":hover"]={borderColor:v.inputBorderHovered,selectors:(n={},n[_e]={borderColor:"Highlight"},n)},s[":hover ."+C.iconContainer]={color:v.inputIconHovered},s)},!h&&w&&{selectors:(t={},t[":hover ."+C.iconContainer]={width:4},t[":hover ."+C.icon]={opacity:0,pointerEvents:"none"},t)},h&&["is-active",{position:"relative"},_y(v.inputFocusBorderAlt,c?0:b.roundedCorner2,c?"borderBottom":"border")],u&&["is-disabled",{borderColor:N,backgroundColor:A,pointerEvents:"none",cursor:"default",selectors:(i={},i[_e]={borderColor:"GrayText"},i)}],c&&["is-underlined",{borderWidth:"0 0 1px 0",borderRadius:0,padding:"1px 0 1px 8px"}],c&&u&&{backgroundColor:"transparent"},w&&"can-clear",g],iconContainer:[C.iconContainer,{display:"flex",flexDirection:"column",justifyContent:"center",flexShrink:0,fontSize:16,width:32,textAlign:"center",color:v.inputIcon,cursor:"text"},h&&{width:4},u&&{color:v.inputIconDisabled},!m&&{transition:"width "+ms.durationValue1}],icon:[C.icon,{opacity:1},h&&{opacity:0,pointerEvents:"none"},!m&&{transition:"opacity "+ms.durationValue1+" 0s"}],clearButton:[C.clearButton,{display:"flex",flexDirection:"row",alignItems:"stretch",cursor:"pointer",flexBasis:"32px",flexShrink:0,padding:0,margin:"-1px 0px",selectors:{"&:hover .ms-Button":{backgroundColor:Y},"&:hover .ms-Button-icon":{color:T},".ms-Button":{borderRadius:Tt(d)?"1px 0 0 1px":"0 1px 1px 0"},".ms-Button-icon":{color:L}}}],field:[C.field,cd,wy(k),{backgroundColor:"transparent",border:"none",outline:"none",fontWeight:"inherit",fontFamily:"inherit",fontSize:"inherit",color:v.inputText,flex:"1 1 0px",minWidth:"0px",overflow:"hidden",textOverflow:"ellipsis",paddingBottom:.5,selectors:{"::-ms-clear":{display:"none"}}},u&&{color:v.disabledText}]}}var MI=Ze(SI,kI,void 0,{scope:"SearchBox"}),jI=Je(),LI=function(o){var s=o.styles,n=o.theme,t=o.className,i=o.vertical,d=o.alignContent,c=jI(s,{theme:n,className:t,alignContent:d,vertical:i});return M.createElement("div",{className:c.root},M.createElement("div",{className:c.content,role:"separator","aria-orientation":i?"vertical":"horizontal"},o.children))},EI=function(o){var s,n,t=o.theme,i=o.alignContent,d=o.vertical,c=o.className,u=i==="start",h=i==="center",g=i==="end";return{root:[t.fonts.medium,{position:"relative"},i&&{textAlign:i},!i&&{textAlign:"center"},d&&(h||!i)&&{verticalAlign:"middle"},d&&u&&{verticalAlign:"top"},d&&g&&{verticalAlign:"bottom"},d&&{padding:"0 4px",height:"inherit",display:"table-cell",zIndex:1,selectors:{":after":(s={backgroundColor:t.palette.neutralLighter,width:"1px",content:'""',position:"absolute",top:"0",bottom:"0",left:"50%",right:"0",zIndex:-1},s[_e]={backgroundColor:"WindowText"},s)}},!d&&{padding:"4px 0",selectors:{":before":(n={backgroundColor:t.palette.neutralLighter,height:"1px",content:'""',display:"block",position:"absolute",top:"50%",bottom:"0",left:"0",right:"0"},n[_e]={backgroundColor:"WindowText"},n)}},c],content:[{position:"relative",display:"inline-block",padding:"0 12px",color:t.semanticColors.bodyText,background:t.semanticColors.bodyBackground},d&&{padding:"12px 0"}]}},zb=Ze(LI,EI,void 0,{scope:"Separator"});zb.displayName="Separator";var DI={root:"ms-Shimmer-container",shimmerWrapper:"ms-Shimmer-shimmerWrapper",shimmerGradient:"ms-Shimmer-shimmerGradient",dataWrapper:"ms-Shimmer-dataWrapper"},Qp="100%",II=Et(function(){return yn({"0%":{transform:"translateX(-"+Qp+")"},"100%":{transform:"translateX("+Qp+")"}})}),TI=Et(function(){return yn({"100%":{transform:"translateX(-"+Qp+")"},"0%":{transform:"translateX("+Qp+")"}})});function AI(o){var s,n=o.isDataLoaded,t=o.className,i=o.theme,d=o.transitionAnimationInterval,c=o.shimmerColor,u=o.shimmerWaveColor,h=i.semanticColors,g=it(DI,i),w=Tt(i);return{root:[g.root,i.fonts.medium,{position:"relative",height:"auto"},t],shimmerWrapper:[g.shimmerWrapper,{position:"relative",overflow:"hidden",transform:"translateZ(0)",backgroundColor:c||h.disabledBackground,transition:"opacity "+d+"ms",selectors:(s={"> *":{transform:"translateZ(0)"}},s[_e]=F({background:`WindowText
                        linear-gradient(
                          to right,
                          transparent 0%,
                          Window 50%,
                          transparent 100%)
                        0 0 / 90% 100%
                        no-repeat`},bt()),s)},n&&{opacity:"0",position:"absolute",top:"0",bottom:"0",left:"0",right:"0"}],shimmerGradient:[g.shimmerGradient,{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:(c||h.disabledBackground)+`
                      linear-gradient(
                        to right,
                        `+(c||h.disabledBackground)+` 0%,
                        `+(u||h.bodyDivider)+` 50%,
                        `+(c||h.disabledBackground)+` 100%)
                      0 0 / 90% 100%
                      no-repeat`,transform:"translateX(-"+Qp+")",animationDuration:"2s",animationTimingFunction:"ease-in-out",animationDirection:"normal",animationIterationCount:"infinite",animationName:w?TI():II()}],dataWrapper:[g.dataWrapper,{position:"absolute",top:"0",bottom:"0",left:"0",right:"0",opacity:"0",background:"none",backgroundColor:"transparent",border:"none",transition:"opacity "+d+"ms"},n&&{opacity:"1",position:"static"}],screenReaderText:wd}}var nr;(function(o){o[o.line=1]="line",o[o.circle=2]="circle",o[o.gap=3]="gap"})(nr||(nr={}));var zc;(function(o){o[o.line=16]="line",o[o.gap=16]="gap",o[o.circle=24]="circle"})(zc||(zc={}));var PI=Je(),RI=function(o){var s=o.height,n=o.styles,t=o.width,i=t===void 0?"100%":t,d=o.borderStyle,c=o.theme,u=PI(n,{theme:c,height:s,borderStyle:d});return M.createElement("div",{style:{width:i,minWidth:typeof i=="number"?i+"px":"auto"},className:u.root},M.createElement("svg",{width:"2",height:"2",className:u.topLeftCorner},M.createElement("path",{d:"M0 2 A 2 2, 0, 0, 1, 2 0 L 0 0 Z"})),M.createElement("svg",{width:"2",height:"2",className:u.topRightCorner},M.createElement("path",{d:"M0 0 A 2 2, 0, 0, 1, 2 2 L 2 0 Z"})),M.createElement("svg",{width:"2",height:"2",className:u.bottomRightCorner},M.createElement("path",{d:"M2 0 A 2 2, 0, 0, 1, 0 2 L 2 2 Z"})),M.createElement("svg",{width:"2",height:"2",className:u.bottomLeftCorner},M.createElement("path",{d:"M2 2 A 2 2, 0, 0, 1, 0 0 L 0 2 Z"})))},FI={root:"ms-ShimmerLine-root",topLeftCorner:"ms-ShimmerLine-topLeftCorner",topRightCorner:"ms-ShimmerLine-topRightCorner",bottomLeftCorner:"ms-ShimmerLine-bottomLeftCorner",bottomRightCorner:"ms-ShimmerLine-bottomRightCorner"};function NI(o){var s,n=o.height,t=o.borderStyle,i=o.theme,d=i.semanticColors,c=it(FI,i),u=t||{},h={position:"absolute",fill:d.bodyBackground};return{root:[c.root,i.fonts.medium,{height:n+"px",boxSizing:"content-box",position:"relative",borderTopStyle:"solid",borderBottomStyle:"solid",borderColor:d.bodyBackground,borderWidth:0,selectors:(s={},s[_e]={borderColor:"Window",selectors:{"> *":{fill:"Window"}}},s)},u],topLeftCorner:[c.topLeftCorner,{top:"0",left:"0"},h],topRightCorner:[c.topRightCorner,{top:"0",right:"0"},h],bottomRightCorner:[c.bottomRightCorner,{bottom:"0",right:"0"},h],bottomLeftCorner:[c.bottomLeftCorner,{bottom:"0",left:"0"},h]}}var ax=Ze(RI,NI,void 0,{scope:"ShimmerLine"}),OI=Je(),YI=function(o){var s=o.height,n=o.styles,t=o.width,i=t===void 0?"10px":t,d=o.borderStyle,c=o.theme,u=OI(n,{theme:c,height:s,borderStyle:d});return M.createElement("div",{style:{width:i,minWidth:typeof i=="number"?i+"px":"auto"},className:u.root})},WI={root:"ms-ShimmerGap-root"};function BI(o){var s,n=o.height,t=o.borderStyle,i=o.theme,d=i.semanticColors,c=it(WI,i),u=t||{};return{root:[c.root,i.fonts.medium,{backgroundColor:d.bodyBackground,height:n+"px",boxSizing:"content-box",borderTopStyle:"solid",borderBottomStyle:"solid",borderColor:d.bodyBackground,selectors:(s={},s[_e]={backgroundColor:"Window",borderColor:"Window"},s)},u]}}var HI=Ze(YI,BI,void 0,{scope:"ShimmerGap"}),zI={root:"ms-ShimmerCircle-root",svg:"ms-ShimmerCircle-svg"};function UI(o){var s,n,t=o.height,i=o.borderStyle,d=o.theme,c=d.semanticColors,u=it(zI,d),h=i||{};return{root:[u.root,d.fonts.medium,{width:t+"px",height:t+"px",minWidth:t+"px",boxSizing:"content-box",borderTopStyle:"solid",borderBottomStyle:"solid",borderColor:c.bodyBackground,selectors:(s={},s[_e]={borderColor:"Window"},s)},h],svg:[u.svg,{display:"block",fill:c.bodyBackground,selectors:(n={},n[_e]={fill:"Window"},n)}]}}var VI=Je(),GI=function(o){var s=o.height,n=o.styles,t=o.borderStyle,i=o.theme,d=VI(n,{theme:i,height:s,borderStyle:t});return M.createElement("div",{className:d.root},M.createElement("svg",{viewBox:"0 0 10 10",width:s,height:s,className:d.svg},M.createElement("path",{d:"M0,0 L10,0 L10,10 L0,10 L0,0 Z M0,5 C0,7.76142375 2.23857625,10 5,10 C7.76142375,10 10,7.76142375 10,5 C10,2.23857625 7.76142375,2.22044605e-16 5,0 C2.23857625,-2.22044605e-16 0,2.23857625 0,5 L0,5 Z"})))},$I=Ze(GI,UI,void 0,{scope:"ShimmerCircle"}),KI=Je(),qI=function(o){var s=o.styles,n=o.width,t=n===void 0?"auto":n,i=o.shimmerElements,d=o.rowHeight,c=d===void 0?XI(i||[]):d,u=o.flexWrap,h=u===void 0?!1:u,g=o.theme,w=o.backgroundColor,m=KI(s,{theme:g,flexWrap:h});return M.createElement("div",{style:{width:t},className:m.root},JI(i,w,c))};function JI(o,s,n){var t=o?o.map(function(i,d){var c=i.type,u=mo(i,["type"]),h=u.verticalAlign,g=u.height,w=ZI(h,c,g,s,n);switch(i.type){case nr.circle:return M.createElement($I,F({key:d},u,{styles:w}));case nr.gap:return M.createElement(HI,F({key:d},u,{styles:w}));case nr.line:return M.createElement(ax,F({key:d},u,{styles:w}))}}):M.createElement(ax,{height:zc.line});return t}var ZI=Et(function(o,s,n,t,i){var d=i&&n?i-n:0,c;if(!o||o==="center"?c={borderBottomWidth:(d?Math.floor(d/2):0)+"px",borderTopWidth:(d?Math.ceil(d/2):0)+"px"}:o&&o==="top"?c={borderBottomWidth:d+"px",borderTopWidth:"0px"}:o&&o==="bottom"&&(c={borderBottomWidth:"0px",borderTopWidth:d+"px"}),t)switch(s){case nr.circle:return{root:F(F({},c),{borderColor:t}),svg:{fill:t}};case nr.gap:return{root:F(F({},c),{borderColor:t,backgroundColor:t})};case nr.line:return{root:F(F({},c),{borderColor:t}),topLeftCorner:{fill:t},topRightCorner:{fill:t},bottomLeftCorner:{fill:t},bottomRightCorner:{fill:t}}}return{root:c}});function XI(o){var s=o.map(function(t){switch(t.type){case nr.circle:t.height||(t.height=zc.circle);break;case nr.line:t.height||(t.height=zc.line);break;case nr.gap:t.height||(t.height=zc.gap);break}return t}),n=s.reduce(function(t,i){return i.height&&i.height>t?i.height:t},0);return n}var QI={root:"ms-ShimmerElementsGroup-root"};function eT(o){var s=o.flexWrap,n=o.theme,t=it(QI,n);return{root:[t.root,n.fonts.medium,{display:"flex",alignItems:"center",flexWrap:s?"wrap":"nowrap",position:"relative"}]}}var Rf=Ze(qI,eT,void 0,{scope:"ShimmerElementsGroup"}),lx=200,tT=Je(),nT=(function(o){Ne(s,o);function s(n){var t=o.call(this,n)||this;return St(t),t.state={contentLoaded:n.isDataLoaded},t._async=new Wn(t),t}return s.prototype.componentDidUpdate=function(n){var t=this,i=this.props.isDataLoaded;i!==n.isDataLoaded&&(this._async.clearTimeout(this._lastTimeoutId),i?this._lastTimeoutId=this._async.setTimeout(function(){t.setState({contentLoaded:i})},lx):this.setState({contentLoaded:i}))},s.prototype.componentWillUnmount=function(){this._async.dispose()},s.prototype.render=function(){var n=this.props,t=n.styles,i=n.shimmerElements,d=n.children,c=n.isDataLoaded,u=n.width,h=n.className,g=n.customElementsGroup,w=n.theme,m=n.ariaLabel,x=n.shimmerColors,_=this.state.contentLoaded;this._classNames=tT(t,{theme:w,isDataLoaded:c,className:h,transitionAnimationInterval:lx,shimmerColor:x&&x.shimmer,shimmerWaveColor:x&&x.shimmerWave});var v=pt(this.props,Yn);return M.createElement("div",F({},v,{className:this._classNames.root}),!_&&M.createElement("div",{style:{width:u||"100%"},className:this._classNames.shimmerWrapper},M.createElement("div",{className:this._classNames.shimmerGradient}),g||M.createElement(Rf,{shimmerElements:i,backgroundColor:x&&x.background})),d&&M.createElement("div",{className:this._classNames.dataWrapper},d),m&&!c&&M.createElement("div",{role:"status","aria-live":"polite"},M.createElement(og,null,M.createElement("div",{className:this._classNames.screenReaderText},m))))},s.defaultProps={isDataLoaded:!1},s})(M.Component),rT=Ze(nT,AI,void 0,{scope:"Shimmer"}),oT=Je(),sT=10,iT=7,dx=.95,aT=(function(o){Ne(s,o);function s(n){var t=o.call(this,n)||this;return t._onRenderShimmerPlaceholder=function(i,d){var c=t.props.onRenderCustomPlaceholder,u=c?c(d,i,t._renderDefaultShimmerPlaceholder):t._renderDefaultShimmerPlaceholder(d);return M.createElement(rT,{customElementsGroup:u})},t._renderDefaultShimmerPlaceholder=function(i){var d=i.columns,c=i.compact,u=i.selectionMode,h=i.checkboxVisibility,g=i.cellStyleProps,w=g===void 0?Si:g,m=gd.rowHeight,x=gd.compactRowHeight,_=c?x:m+1,v=[],b=u!==st.none&&h!==Yo.hidden;return b&&v.push(M.createElement(Rf,{key:"checkboxGap",shimmerElements:[{type:nr.gap,width:"40px",height:_}]})),d.forEach(function(C,k){var L=[],T=w.cellLeftPadding+w.cellRightPadding+C.calculatedWidth+(C.isPadded?w.cellExtraRightPadding:0);L.push({type:nr.gap,width:w.cellLeftPadding,height:_}),C.isIconOnly?(L.push({type:nr.line,width:C.calculatedWidth,height:C.calculatedWidth}),L.push({type:nr.gap,width:w.cellRightPadding,height:_})):(L.push({type:nr.line,width:C.calculatedWidth*dx,height:iT}),L.push({type:nr.gap,width:w.cellRightPadding+(C.calculatedWidth-C.calculatedWidth*dx)+(C.isPadded?w.cellExtraRightPadding:0),height:_})),v.push(M.createElement(Rf,{key:k,width:T+"px",shimmerElements:L}))}),v.push(M.createElement(Rf,{key:"endGap",width:"100%",shimmerElements:[{type:nr.gap,width:"100%",height:_}]})),M.createElement("div",{style:{display:"flex"}},v)},t._shimmerItems=n.shimmerLines?new Array(n.shimmerLines):new Array(sT),t}return s.prototype.render=function(){var n=this.props,t=n.detailsListStyles,i=n.enableShimmer,d=n.items,c=n.listProps;n.onRenderCustomPlaceholder;var u=n.removeFadingOverlay;n.shimmerLines;var h=n.styles,g=n.theme,w=n.ariaLabelForGrid,m=n.ariaLabelForShimmer,x=mo(n,["detailsListStyles","enableShimmer","items","listProps","onRenderCustomPlaceholder","removeFadingOverlay","shimmerLines","styles","theme","ariaLabelForGrid","ariaLabelForShimmer"]),_=c&&c.className;this._classNames=oT(h,{theme:g});var v=F(F({},c),{className:i&&!u?on(this._classNames.root,_):_});return M.createElement(U1,F({},x,{styles:t,items:i?this._shimmerItems:d,isPlaceholderData:i,ariaLabelForGrid:i&&m||w,onRenderMissingItem:this._onRenderShimmerPlaceholder,listProps:v}))},s})(M.Component),Ub=Ze(aT,V1,void 0,{scope:"ShimmeredDetailsList"}),rw=F;function Ff(o,s){for(var n=[],t=2;t<arguments.length;t++)n[t-2]=arguments[t];var i=o;return i.isSlot?(n=M.Children.toArray(n),n.length===0?i(s):i(F(F({},s),{children:n}))):M.createElement.apply(Ux,Nn([o,s],n))}function Vb(o,s){s===void 0&&(s={});var n=s.defaultProp,t=n===void 0?"children":n,i=function(d,c,u,h,g){if(M.isValidElement(c))return c;var w=dT(t,c),m=cT(h,g,d,w);if(u){if(u.component){var x=u.component;return M.createElement(x,F({},m))}if(u.render)return u.render(m,o)}return M.createElement(o,F({},m))};return i}var lT=Et(function(o){return Vb(o)});function Gb(o,s){var n={},t=o,i=function(c){if(s.hasOwnProperty(c)){var u=function(h){for(var g=[],w=1;w<arguments.length;w++)g[w-1]=arguments[w];if(g.length>0)throw new Error("Any module using getSlots must use withSlots. Please see withSlots javadoc for more info.");return uT(s[c],h,t[c],t.slots&&t.slots[c],t._defaultStyles&&t._defaultStyles[c],t.theme)};u.isSlot=!0,n[c]=u}};for(var d in s)i(d);return n}function dT(o,s){var n,t;return typeof s=="string"||typeof s=="number"||typeof s=="boolean"?t=(n={},n[o]=s,n):t=s,t}function cT(o,s){for(var n=[],t=2;t<arguments.length;t++)n[t-2]=arguments[t];for(var i={},d=[],c=0,u=n;c<u.length;c++){var h=u[c];d.push(h&&h.className),rw(i,h)}return i.className=A0([o,d],{rtl:Tt(s)}),i}function uT(o,s,n,t,i,d){return o.create!==void 0?o.create(s,n,t,i):lT(o)(s,n,t,i,d)}function $b(o,s){s===void 0&&(s={});var n=s.factoryOptions,t=n===void 0?{}:n,i=t.defaultProp,d=function(c){var u=hT(s.displayName,M.useContext(Wp),s.fields),h=s.state;h&&(c=F(F({},c),h(c)));var g=c.theme||u.theme,w=Kb(c,g,s.tokens,u.tokens,c.tokens),m=pT(c,g,w,s.styles,u.styles,c.styles),x=F(F({},c),{styles:m,tokens:w,_defaultStyles:m,theme:g});return o(x)};return d.displayName=s.displayName||o.name,i&&(d.create=Vb(d,{defaultProp:i})),rw(d,s.statics),d}function pT(o,s,n){for(var t=[],i=3;i<arguments.length;i++)t[i-3]=arguments[i];return Vs.apply(void 0,t.map(function(d){return typeof d=="function"?d(o,s,n):d}))}function Kb(o,s){for(var n=[],t=2;t<arguments.length;t++)n[t-2]=arguments[t];for(var i={},d=0,c=n;d<c.length;d++){var u=c[d];u&&(u=typeof u=="function"?u(o,s):u,Array.isArray(u)&&(u=Kb.apply(void 0,Nn([o,s],u))),rw(i,u))}return i}function hT(o,s,n){var t=["theme","styles","tokens"];return fs.getSettings(n||t,o,s.customizations)}var mT={root:"ms-StackItem"},fT={start:"flex-start",end:"flex-end"},gT=function(o,s,n){var t=o.grow,i=o.shrink,d=o.disableShrink,c=o.align,u=o.verticalFill,h=o.order,g=o.className,w=it(mT,s);return{root:[s.fonts.medium,w.root,{margin:n.margin,padding:n.padding,height:u?"100%":"auto",width:"auto"},t&&{flexGrow:t===!0?1:t},(d||!t&&!i)&&{flexShrink:0},i&&!d&&{flexShrink:1},c&&{alignSelf:fT[c]||c},h&&{order:h},g]}},_T=function(o){var s=o.children,n=pt(o,sn);if(M.Children.count(s)<1)return null;var t=Gb(o,{root:"div"});return Ff(t.root,F({},n),s)},qb=$b(_T,{displayName:"StackItem",styles:gT}),Uc=function(o,s){return s.spacing.hasOwnProperty(o)?s.spacing[o]:o},ey=function(o){var s=parseFloat(o),n=isNaN(s)?0:s,t=isNaN(s)?"":s.toString(),i=o.substring(t.toString().length);return{value:n,unit:i||"px"}},yT=function(o,s){if(o===void 0||o==="")return{rowGap:{value:0,unit:"px"},columnGap:{value:0,unit:"px"}};if(typeof o=="number")return{rowGap:{value:o,unit:"px"},columnGap:{value:o,unit:"px"}};var n=o.split(" ");if(n.length>2)return{rowGap:{value:0,unit:"px"},columnGap:{value:0,unit:"px"}};if(n.length===2)return{rowGap:ey(Uc(n[0],s)),columnGap:ey(Uc(n[1],s))};var t=ey(Uc(o,s));return{rowGap:t,columnGap:t}},cx=function(o,s){if(o===void 0||typeof o=="number"||o==="")return o;var n=o.split(" ");return n.length<2?Uc(o,s):n.reduce(function(t,i){return Uc(t,s)+" "+Uc(i,s)})},Ic={start:"flex-start",end:"flex-end"},wT={root:"ms-Stack",inner:"ms-Stack-inner"},vT=function(o,s,n){var t,i,d,c,u,h,g,w=o.verticalFill,m=o.horizontal,x=o.reversed,_=o.grow,v=o.wrap,b=o.horizontalAlign,C=o.verticalAlign,k=o.disableShrink,L=o.className,T=it(wT,s),N=n&&n.childrenGap?n.childrenGap:o.gap,Y=n&&n.maxHeight?n.maxHeight:o.maxHeight,A=n&&n.maxWidth?n.maxWidth:o.maxWidth,I=n&&n.padding?n.padding:o.padding,R=yT(N,s),H=R.rowGap,W=R.columnGap,K=""+-.5*W.value+W.unit,Z=""+-.5*H.value+H.unit,Q={textOverflow:"ellipsis"},B={"> *:not(.ms-StackItem)":{flexShrink:k?0:1}};return v?{root:[T.root,{flexWrap:"wrap",maxWidth:A,maxHeight:Y,width:"auto",overflow:"visible",height:"100%"},b&&(t={},t[m?"justifyContent":"alignItems"]=Ic[b]||b,t),C&&(i={},i[m?"alignItems":"justifyContent"]=Ic[C]||C,i),L,{display:"flex"},m&&{height:w?"100%":"auto"}],inner:[T.inner,{display:"flex",flexWrap:"wrap",marginLeft:K,marginRight:K,marginTop:Z,marginBottom:Z,overflow:"visible",boxSizing:"border-box",padding:cx(I,s),width:W.value===0?"100%":"calc(100% + "+W.value+W.unit+")",maxWidth:"100vw",selectors:F({"> *":F({margin:""+.5*H.value+H.unit+" "+.5*W.value+W.unit},Q)},B)},b&&(d={},d[m?"justifyContent":"alignItems"]=Ic[b]||b,d),C&&(c={},c[m?"alignItems":"justifyContent"]=Ic[C]||C,c),m&&{flexDirection:x?"row-reverse":"row",height:H.value===0?"100%":"calc(100% + "+H.value+H.unit+")",selectors:{"> *":{maxWidth:W.value===0?"100%":"calc(100% - "+W.value+W.unit+")"}}},!m&&{flexDirection:x?"column-reverse":"column",height:"calc(100% + "+H.value+H.unit+")",selectors:{"> *":{maxHeight:H.value===0?"100%":"calc(100% - "+H.value+H.unit+")"}}}]}:{root:[T.root,{display:"flex",flexDirection:m?x?"row-reverse":"row":x?"column-reverse":"column",flexWrap:"nowrap",width:"auto",height:w?"100%":"auto",maxWidth:A,maxHeight:Y,padding:cx(I,s),boxSizing:"border-box",selectors:F((u={"> *":Q},u[x?"> *:not(:last-child)":"> *:not(:first-child)"]=[m&&{marginLeft:""+W.value+W.unit},!m&&{marginTop:""+H.value+H.unit}],u),B)},_&&{flexGrow:_===!0?1:_},b&&(h={},h[m?"justifyContent":"alignItems"]=Ic[b]||b,h),C&&(g={},g[m?"alignItems":"justifyContent"]=Ic[C]||C,g),L]}},xT=function(o){var s=o.as,n=s===void 0?"div":s,t=o.disableShrink,i=o.wrap,d=mo(o,["as","disableShrink","wrap"]),c=M.Children.map(o.children,function(g,w){if(!g)return null;if(bT(g)){var m={shrink:!t};return M.cloneElement(g,F(F({},m),g.props))}return g}),u=pt(d,sn),h=Gb(o,{root:n,inner:"div"});return i?Ff(h.root,F({},u),Ff(h.inner,null,c)):Ff(h.root,F({},u),c)};function bT(o){return!!o&&typeof o=="object"&&!!o.type&&o.type.displayName===qb.displayName}var ST={Item:qb},U=$b(xT,{displayName:"Stack",styles:vT,statics:ST}),CT=Je(),kT=(function(o){Ne(s,o);function s(n){var t=o.call(this,n)||this;return t.rootElement=M.createRef(),t._onKeyDown=function(i){t.props.onDismiss&&i.which===ke.escape&&t.props.onDismiss()},St(t),t.state={},t}return s.prototype.componentDidMount=function(){this.props.onDismiss&&document.addEventListener("keydown",this._onKeyDown,!1)},s.prototype.componentWillUnmount=function(){this.props.onDismiss&&document.removeEventListener("keydown",this._onKeyDown)},s.prototype.focus=function(){this.rootElement.current&&this.rootElement.current.focus()},s.prototype.render=function(){var n=this.props,t=n.children,i=n.illustrationImage,d=n.primaryButtonProps,c=n.secondaryButtonProps,u=n.headline,h=n.hasCondensedHeadline,g=n.hasCloseButton,w=g===void 0?this.props.hasCloseIcon:g,m=n.onDismiss,x=n.closeButtonAriaLabel,_=n.hasSmallHeadline,v=n.isWide,b=n.styles,C=n.theme,k=n.ariaDescribedBy,L=n.ariaLabelledBy,T=n.footerContent,N=n.focusTrapZoneProps,Y,A,I,R,H,W=CT(b,{theme:C,hasCondensedHeadline:h,hasSmallHeadline:_,hasCloseButton:w,hasHeadline:!!u,isWide:v,primaryButtonClassName:d?d.className:void 0,secondaryButtonClassName:c?c.className:void 0});if(i&&i.src&&(Y=M.createElement("div",{className:W.imageContent},M.createElement(Vp,F({},i)))),u){var K=typeof u=="string"?"p":"div";A=M.createElement("div",{className:W.header},M.createElement(K,{role:"heading","aria-level":3,className:W.headline,id:L},u))}if(t){var Z=typeof t=="string"?"p":"div";I=M.createElement("div",{className:W.body},M.createElement(Z,{className:W.subText,id:k},t))}return(d||c||T)&&(R=M.createElement(U,{className:W.footer,horizontal:!0,horizontalAlign:T?"space-between":"end"},M.createElement(U.Item,{align:"center"},M.createElement("span",null,T)),M.createElement(U.Item,null,c&&M.createElement(et,F({},c,{className:W.secondaryButton})),d&&M.createElement(dt,F({},d,{className:W.primaryButton}))))),w&&(H=M.createElement(Ke,{className:W.closeButton,iconProps:{iconName:"Cancel"},title:x,ariaLabel:x,onClick:m})),M.createElement("div",{className:W.content,ref:this.rootElement,role:"dialog",tabIndex:-1,"aria-labelledby":L,"aria-describedby":k,"data-is-focusable":!0},Y,M.createElement(ru,F({isClickableOutsideFocusTrap:!0},N),M.createElement("div",{className:W.bodyContent},A,I,R,H)))},s})(M.Component),MT={root:"ms-TeachingBubble",body:"ms-TeachingBubble-body",bodyContent:"ms-TeachingBubble-bodycontent",closeButton:"ms-TeachingBubble-closebutton",content:"ms-TeachingBubble-content",footer:"ms-TeachingBubble-footer",header:"ms-TeachingBubble-header",headerIsCondensed:"ms-TeachingBubble-header--condensed",headerIsSmall:"ms-TeachingBubble-header--small",headerIsLarge:"ms-TeachingBubble-header--large",headline:"ms-TeachingBubble-headline",image:"ms-TeachingBubble-image",primaryButton:"ms-TeachingBubble-primaryButton",secondaryButton:"ms-TeachingBubble-secondaryButton",subText:"ms-TeachingBubble-subText",button:"ms-Button",buttonLabel:"ms-Button-label"},jT=Et(function(){return yn({"0%":{opacity:0,animationTimingFunction:ms.easeFunction1,transform:"scale3d(.90,.90,.90)"},"100%":{opacity:1,transform:"scale3d(1,1,1)"}})}),ux=function(o,s){var n=s||{},t=n.calloutWidth,i=n.calloutMaxWidth;return[{display:"block",maxWidth:364,border:0,outline:"transparent",width:t||"calc(100% + 1px)",animationName:""+jT(),animationDuration:"300ms",animationTimingFunction:"linear",animationFillMode:"both"},o&&{maxWidth:i||456}]},LT=function(o,s,n){return s?[o.headerIsCondensed,{marginBottom:14}]:[n&&o.headerIsSmall,!n&&o.headerIsLarge,{selectors:{":not(:last-child)":{marginBottom:14}}}]},Jb=function(o){var s,n,t,i=o.hasCondensedHeadline,d=o.hasSmallHeadline,c=o.hasCloseButton,u=o.hasHeadline,h=o.isWide,g=o.primaryButtonClassName,w=o.secondaryButtonClassName,m=o.theme,x=o.calloutProps,_=x===void 0?{className:void 0}:x,v=!i&&!d,b=m.palette,C=m.semanticColors,k=m.fonts,L=it(MT,m),T=On(m,{outlineColor:"transparent",borderColor:"transparent"});return{root:[L.root,k.medium,_.className],body:[L.body,c&&!u&&{marginRight:24},{selectors:{":not(:last-child)":{marginBottom:20}}}],bodyContent:[L.bodyContent,{padding:"20px 24px 20px 24px"}],closeButton:[L.closeButton,{position:"absolute",right:0,top:0,margin:"15px 15px 0 0",borderRadius:0,color:b.white,fontSize:k.small.fontSize,selectors:{":hover":{background:b.themeDarkAlt,color:b.white},":active":{background:b.themeDark,color:b.white},":focus":{border:"1px solid "+C.variantBorder}}}],content:Nn([L.content],ux(h),[h&&{display:"flex"}]),footer:[L.footer,{display:"flex",flex:"auto",alignItems:"center",color:b.white,selectors:(s={},s["."+L.button+":not(:first-child)"]={marginLeft:10},s)}],header:Nn([L.header],LT(L,i,d),[c&&{marginRight:24},(i||d)&&[k.medium,{fontWeight:Lt.semibold}]]),headline:[L.headline,{margin:0,color:b.white,fontWeight:Lt.semibold},v&&[{fontSize:k.xLarge.fontSize}]],imageContent:[L.header,L.image,h&&{display:"flex",alignItems:"center",maxWidth:154}],primaryButton:[L.primaryButton,g,T,{backgroundColor:b.white,borderColor:b.white,color:b.themePrimary,whiteSpace:"nowrap",selectors:(n={},n["."+L.buttonLabel]=k.medium,n[":hover"]={backgroundColor:b.themeLighter,borderColor:b.themeLighter,color:b.themePrimary},n[":focus"]={backgroundColor:b.themeLighter,border:"1px solid "+b.black,outline:"1px solid "+b.white,outlineOffset:"-2px"},n[":active"]={backgroundColor:b.white,borderColor:b.white,color:b.themePrimary},n)}],secondaryButton:[L.secondaryButton,w,{backgroundColor:b.themePrimary,borderColor:b.white,whiteSpace:"nowrap",selectors:(t={},t["."+L.buttonLabel]=[k.medium,{color:b.white}],t[":hover"]={backgroundColor:b.themeDarkAlt,borderColor:b.white},t[":focus"]={backgroundColor:b.themeDark,border:"1px solid "+b.black,outline:"1px solid "+b.white,outlineOffset:"-2px"},t[":active"]={backgroundColor:b.themePrimary,borderColor:b.white},t)}],subText:[L.subText,{margin:0,fontSize:k.medium.fontSize,color:b.white,fontWeight:Lt.regular}],subComponentStyles:{callout:{root:Nn(ux(h,_),[k.medium]),beak:[{background:b.themePrimary}],calloutMain:[{background:b.themePrimary}]}}}},ET=Ze(kT,Jb,void 0,{scope:"TeachingBubbleContent"}),DT=Je(),IT=(function(o){Ne(s,o);function s(n){var t=o.call(this,n)||this;return t.rootElement=M.createRef(),St(t),t.state={},t._defaultCalloutProps={beakWidth:16,gapSpace:0,setInitialFocus:!0,doNotLayer:!1,directionalHint:Ot.rightCenter},t}return s.prototype.focus=function(){this.rootElement.current&&this.rootElement.current.focus()},s.prototype.render=function(){var n=this.props,t=n.calloutProps,i=n.targetElement,d=n.onDismiss,c=n.hasCloseButton,u=c===void 0?this.props.hasCloseIcon:c,h=n.isWide,g=n.styles,w=n.theme,m=n.target,x=F(F({},this._defaultCalloutProps),t),_={theme:w,isWide:h,calloutProps:F(F({},x),{theme:x.theme}),hasCloseButton:u},v=DT(g,_),b=v.subComponentStyles?v.subComponentStyles.callout:void 0;return M.createElement(ch,F({target:m||i,onDismiss:d},x,{className:v.root,styles:b,hideOverflow:!0}),M.createElement("div",{ref:this.rootElement},M.createElement(ET,F({},this.props))))},s.defaultProps={calloutProps:{beakWidth:16,gapSpace:0,setInitialFocus:!0,doNotLayer:!1,directionalHint:Ot.rightCenter}},s})(M.Component),TT=Ze(IT,Jb,void 0,{scope:"TeachingBubble"}),AT=Je(),PT=(function(o){Ne(s,o);function s(n){var t=o.call(this,n)||this;return t._toggleButton=M.createRef(),t._onClick=function(i){var d=t.props,c=d.disabled,u=d.checked,h=d.onChange,g=d.onChanged,w=d.onClick,m=t.state.checked;c||(u===void 0&&t.setState({checked:!m}),h&&h(i,!m),g&&g(!m),w&&w(i))},St(t),t.state={checked:!!(n.checked||n.defaultChecked)},t._id=zt("Toggle"),t}return s.getDerivedStateFromProps=function(n,t){return n.checked===void 0?null:{checked:!!n.checked}},Object.defineProperty(s.prototype,"checked",{get:function(){return this.state.checked},enumerable:!0,configurable:!0}),s.prototype.render=function(){var n=this,t=this.props,i=t.as,d=i===void 0?"div":i,c=t.className,u=t.theme,h=t.disabled,g=t.keytipProps,w=t.id,m=t.label,x=t.ariaLabel,_=t.onAriaLabel,v=t.offAriaLabel,b=t.offText,C=t.onText,k=t.styles,L=t.inlineLabel,T=this.state.checked,N=T?C:b,Y=T?_:v,A=pt(this.props,ah,["defaultChecked"]),I=AT(k,{theme:u,className:c,disabled:h,checked:T,inlineLabel:L,onOffMissing:!C&&!b}),R=w||this._id,H=R+"-label",W=R+"-stateText",K=void 0;!x&&!Y&&(m&&(K=H),N&&(K=K?K+" "+W:W));var Z=this.props.role?this.props.role:"switch",Q=function(P){return P===void 0&&(P={}),M.createElement("button",F({},A,P,{className:I.pill,disabled:h,id:R,type:"button",role:Z,ref:n._toggleButton,"aria-disabled":h,"aria-checked":T,"aria-label":x||Y,"data-is-focusable":!0,onChange:n._noop,onClick:n._onClick,"aria-labelledby":K}),M.createElement("span",{className:I.thumb}))},B=g?M.createElement(ra,{keytipProps:g,ariaDescribedBy:A["aria-describedby"],disabled:h},function(P){return Q(P)}):Q();return M.createElement(d,{className:I.root,hidden:A.hidden},m&&M.createElement(fd,{htmlFor:R,className:I.label,id:H},m),M.createElement("div",{className:I.container},B,N&&M.createElement(fd,{htmlFor:R,className:I.text,id:W},N)),M.createElement(tu,null))},s.prototype.focus=function(){this._toggleButton.current&&this._toggleButton.current.focus()},s.prototype._noop=function(){},s})(M.Component),RT=40,px=20,ty=12,FT=function(o){var s,n,t,i,d,c,u,h=o.theme,g=o.className,w=o.disabled,m=o.checked,x=o.inlineLabel,_=o.onOffMissing,v=h.semanticColors,b=h.palette,C=v.bodyBackground,k=v.inputBackgroundChecked,L=v.inputBackgroundCheckedHovered,T=b.neutralDark,N=v.disabledBodySubtext,Y=v.smallInputBorder,A=v.inputForegroundChecked,I=v.disabledBodySubtext,R=v.disabledBackground,H=v.smallInputBorder,W=v.inputBorderHovered,K=v.disabledBodySubtext,Z=v.disabledText;return{root:["ms-Toggle",m&&"is-checked",!w&&"is-enabled",w&&"is-disabled",h.fonts.medium,{marginBottom:"8px"},x&&{display:"flex",alignItems:"center"},g],label:["ms-Toggle-label",{display:"inline-block"},w&&{color:Z,selectors:(s={},s[_e]={color:"GrayText"},s)},x&&!_&&{marginRight:16},_&&x&&{order:1,marginLeft:16},x&&{wordBreak:"break-all"}],container:["ms-Toggle-innerContainer",{display:"flex",position:"relative"}],pill:["ms-Toggle-background",On(h,{inset:-3}),{fontSize:"20px",boxSizing:"border-box",width:RT,height:px,borderRadius:px/2,transition:"all 0.1s ease",border:"1px solid "+H,background:C,cursor:"pointer",display:"flex",alignItems:"center",padding:"0 3px"},!w&&[!m&&{selectors:{":hover":[{borderColor:W}],":hover .ms-Toggle-thumb":[{backgroundColor:T,selectors:(n={},n[_e]={borderColor:"Highlight"},n)}]}},m&&[{background:k,borderColor:"transparent",justifyContent:"flex-end"},{selectors:(t={":hover":[{backgroundColor:L,borderColor:"transparent",selectors:(i={},i[_e]={backgroundColor:"Highlight"},i)}]},t[_e]=F({backgroundColor:"Highlight"},bt()),t)}]],w&&[{cursor:"default"},!m&&[{borderColor:K}],m&&[{backgroundColor:N,borderColor:"transparent",justifyContent:"flex-end"}]],!w&&{selectors:{"&:hover":{selectors:(d={},d[_e]={borderColor:"Highlight"},d)}}}],thumb:["ms-Toggle-thumb",{display:"block",width:ty,height:ty,borderRadius:"50%",transition:"all 0.1s ease",backgroundColor:Y,borderColor:"transparent",borderWidth:ty/2,borderStyle:"solid",boxSizing:"border-box"},!w&&m&&[{backgroundColor:A,selectors:(c={},c[_e]={backgroundColor:"Window",borderColor:"Window"},c)}],w&&[!m&&[{backgroundColor:I}],m&&[{backgroundColor:R}]]],text:["ms-Toggle-stateText",{selectors:{"&&":{padding:"0",margin:"0 8px",userSelect:"none",fontWeight:Lt.regular}}},w&&{selectors:{"&&":{color:Z,selectors:(u={},u[_e]={color:"GrayText"},u)}}}]}},Mn=Ze(PT,FT,void 0,{scope:"Toggle"}),ny={exports:{}},hx;function NT(){return hx||(hx=1,(function(o,s){(function(n,t){o.exports=t()})(window,function(){return(function(n){var t={};function i(d){if(t[d])return t[d].exports;var c=t[d]={i:d,l:!1,exports:{}};return n[d].call(c.exports,c,c.exports,i),c.l=!0,c.exports}return i.m=n,i.c=t,i.d=function(d,c,u){i.o(d,c)||Object.defineProperty(d,c,{enumerable:!0,get:u})},i.r=function(d){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})},i.t=function(d,c){if(1&c&&(d=i(d)),8&c||4&c&&typeof d=="object"&&d&&d.__esModule)return d;var u=Object.create(null);if(i.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:d}),2&c&&typeof d!="string")for(var h in d)i.d(u,h,function(g){return d[g]}.bind(null,h));return u},i.n=function(d){var c=d&&d.__esModule?function(){return d.default}:function(){return d};return i.d(c,"a",c),c},i.o=function(d,c){return Object.prototype.hasOwnProperty.call(d,c)},i.p="",i(i.s=10)})([function(n,t,i){var d=i(2),c=i(12),u=Object.prototype.toString;function h(x){return u.call(x)==="[object Array]"}function g(x){return x!==null&&typeof x=="object"}function w(x){return u.call(x)==="[object Function]"}function m(x,_){if(x!=null)if(typeof x!="object"&&(x=[x]),h(x))for(var v=0,b=x.length;v<b;v++)_.call(null,x[v],v,x);else for(var C in x)Object.prototype.hasOwnProperty.call(x,C)&&_.call(null,x[C],C,x)}n.exports={isArray:h,isArrayBuffer:function(x){return u.call(x)==="[object ArrayBuffer]"},isBuffer:c,isFormData:function(x){return typeof FormData<"u"&&x instanceof FormData},isArrayBufferView:function(x){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(x):x&&x.buffer&&x.buffer instanceof ArrayBuffer},isString:function(x){return typeof x=="string"},isNumber:function(x){return typeof x=="number"},isObject:g,isUndefined:function(x){return x===void 0},isDate:function(x){return u.call(x)==="[object Date]"},isFile:function(x){return u.call(x)==="[object File]"},isBlob:function(x){return u.call(x)==="[object Blob]"},isFunction:w,isStream:function(x){return g(x)&&w(x.pipe)},isURLSearchParams:function(x){return typeof URLSearchParams<"u"&&x instanceof URLSearchParams},isStandardBrowserEnv:function(){return(typeof navigator>"u"||navigator.product!=="ReactNative"&&navigator.product!=="NativeScript"&&navigator.product!=="NS")&&typeof window<"u"&&typeof document<"u"},forEach:m,merge:function x(){var _={};function v(k,L){typeof _[L]=="object"&&typeof k=="object"?_[L]=x(_[L],k):_[L]=k}for(var b=0,C=arguments.length;b<C;b++)m(arguments[b],v);return _},deepMerge:function x(){var _={};function v(k,L){typeof _[L]=="object"&&typeof k=="object"?_[L]=x(_[L],k):_[L]=typeof k=="object"?x({},k):k}for(var b=0,C=arguments.length;b<C;b++)m(arguments[b],v);return _},extend:function(x,_,v){return m(_,function(b,C){x[C]=v&&typeof b=="function"?d(b,v):b}),x},trim:function(x){return x.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(n,t,i){n.exports=i(11)},function(n,t,i){n.exports=function(d,c){return function(){for(var u=new Array(arguments.length),h=0;h<u.length;h++)u[h]=arguments[h];return d.apply(c,u)}}},function(n,t,i){var d=i(0);function c(u){return encodeURIComponent(u).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}n.exports=function(u,h,g){if(!h)return u;var w;if(g)w=g(h);else if(d.isURLSearchParams(h))w=h.toString();else{var m=[];d.forEach(h,function(_,v){_!=null&&(d.isArray(_)?v+="[]":_=[_],d.forEach(_,function(b){d.isDate(b)?b=b.toISOString():d.isObject(b)&&(b=JSON.stringify(b)),m.push(c(v)+"="+c(b))}))}),w=m.join("&")}if(w){var x=u.indexOf("#");x!==-1&&(u=u.slice(0,x)),u+=(u.indexOf("?")===-1?"?":"&")+w}return u}},function(n,t,i){n.exports=function(d){return!(!d||!d.__CANCEL__)}},function(n,t,i){(function(d){var c=i(0),u=i(18),h={"Content-Type":"application/x-www-form-urlencoded"};function g(m,x){!c.isUndefined(m)&&c.isUndefined(m["Content-Type"])&&(m["Content-Type"]=x)}var w={adapter:(function(){var m;return(d!==void 0&&Object.prototype.toString.call(d)==="[object process]"||typeof XMLHttpRequest<"u")&&(m=i(6)),m})(),transformRequest:[function(m,x){return u(x,"Accept"),u(x,"Content-Type"),c.isFormData(m)||c.isArrayBuffer(m)||c.isBuffer(m)||c.isStream(m)||c.isFile(m)||c.isBlob(m)?m:c.isArrayBufferView(m)?m.buffer:c.isURLSearchParams(m)?(g(x,"application/x-www-form-urlencoded;charset=utf-8"),m.toString()):c.isObject(m)?(g(x,"application/json;charset=utf-8"),JSON.stringify(m)):m}],transformResponse:[function(m){if(typeof m=="string")try{m=JSON.parse(m)}catch{}return m}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(m){return m>=200&&m<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};c.forEach(["delete","get","head"],function(m){w.headers[m]={}}),c.forEach(["post","put","patch"],function(m){w.headers[m]=c.merge(h)}),n.exports=w}).call(this,i(17))},function(n,t,i){var d=i(0),c=i(19),u=i(3),h=i(21),g=i(22),w=i(7);n.exports=function(m){return new Promise(function(x,_){var v=m.data,b=m.headers;d.isFormData(v)&&delete b["Content-Type"];var C=new XMLHttpRequest;if(m.auth){var k=m.auth.username||"",L=m.auth.password||"";b.Authorization="Basic "+btoa(k+":"+L)}if(C.open(m.method.toUpperCase(),u(m.url,m.params,m.paramsSerializer),!0),C.timeout=m.timeout,C.onreadystatechange=function(){if(C&&C.readyState===4&&(C.status!==0||C.responseURL&&C.responseURL.indexOf("file:")===0)){var Y="getAllResponseHeaders"in C?h(C.getAllResponseHeaders()):null,A={data:m.responseType&&m.responseType!=="text"?C.response:C.responseText,status:C.status,statusText:C.statusText,headers:Y,config:m,request:C};c(x,_,A),C=null}},C.onabort=function(){C&&(_(w("Request aborted",m,"ECONNABORTED",C)),C=null)},C.onerror=function(){_(w("Network Error",m,null,C)),C=null},C.ontimeout=function(){_(w("timeout of "+m.timeout+"ms exceeded",m,"ECONNABORTED",C)),C=null},d.isStandardBrowserEnv()){var T=i(23),N=(m.withCredentials||g(m.url))&&m.xsrfCookieName?T.read(m.xsrfCookieName):void 0;N&&(b[m.xsrfHeaderName]=N)}if("setRequestHeader"in C&&d.forEach(b,function(Y,A){v===void 0&&A.toLowerCase()==="content-type"?delete b[A]:C.setRequestHeader(A,Y)}),m.withCredentials&&(C.withCredentials=!0),m.responseType)try{C.responseType=m.responseType}catch(Y){if(m.responseType!=="json")throw Y}typeof m.onDownloadProgress=="function"&&C.addEventListener("progress",m.onDownloadProgress),typeof m.onUploadProgress=="function"&&C.upload&&C.upload.addEventListener("progress",m.onUploadProgress),m.cancelToken&&m.cancelToken.promise.then(function(Y){C&&(C.abort(),_(Y),C=null)}),v===void 0&&(v=null),C.send(v)})}},function(n,t,i){var d=i(20);n.exports=function(c,u,h,g,w){var m=new Error(c);return d(m,u,h,g,w)}},function(n,t,i){var d=i(0);n.exports=function(c,u){u=u||{};var h={};return d.forEach(["url","method","params","data"],function(g){u[g]!==void 0&&(h[g]=u[g])}),d.forEach(["headers","auth","proxy"],function(g){d.isObject(u[g])?h[g]=d.deepMerge(c[g],u[g]):u[g]!==void 0?h[g]=u[g]:d.isObject(c[g])?h[g]=d.deepMerge(c[g]):c[g]!==void 0&&(h[g]=c[g])}),d.forEach(["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"],function(g){u[g]!==void 0?h[g]=u[g]:c[g]!==void 0&&(h[g]=c[g])}),h}},function(n,t,i){function d(c){this.message=c}d.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},d.prototype.__CANCEL__=!0,n.exports=d},function(n,t,i){n.exports=i(28)},function(n,t,i){var d=i(0),c=i(2),u=i(13),h=i(8);function g(m){var x=new u(m),_=c(u.prototype.request,x);return d.extend(_,u.prototype,x),d.extend(_,x),_}var w=g(i(5));w.Axios=u,w.create=function(m){return g(h(w.defaults,m))},w.Cancel=i(9),w.CancelToken=i(26),w.isCancel=i(4),w.all=function(m){return Promise.all(m)},w.spread=i(27),n.exports=w,n.exports.default=w},function(n,t){/*!
 * Determine if an object is a Buffer
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */n.exports=function(i){return i!=null&&i.constructor!=null&&typeof i.constructor.isBuffer=="function"&&i.constructor.isBuffer(i)}},function(n,t,i){var d=i(0),c=i(3),u=i(14),h=i(15),g=i(8);function w(m){this.defaults=m,this.interceptors={request:new u,response:new u}}w.prototype.request=function(m){typeof m=="string"?(m=arguments[1]||{}).url=arguments[0]:m=m||{},(m=g(this.defaults,m)).method=m.method?m.method.toLowerCase():"get";var x=[h,void 0],_=Promise.resolve(m);for(this.interceptors.request.forEach(function(v){x.unshift(v.fulfilled,v.rejected)}),this.interceptors.response.forEach(function(v){x.push(v.fulfilled,v.rejected)});x.length;)_=_.then(x.shift(),x.shift());return _},w.prototype.getUri=function(m){return m=g(this.defaults,m),c(m.url,m.params,m.paramsSerializer).replace(/^\?/,"")},d.forEach(["delete","get","head","options"],function(m){w.prototype[m]=function(x,_){return this.request(d.merge(_||{},{method:m,url:x}))}}),d.forEach(["post","put","patch"],function(m){w.prototype[m]=function(x,_,v){return this.request(d.merge(v||{},{method:m,url:x,data:_}))}}),n.exports=w},function(n,t,i){var d=i(0);function c(){this.handlers=[]}c.prototype.use=function(u,h){return this.handlers.push({fulfilled:u,rejected:h}),this.handlers.length-1},c.prototype.eject=function(u){this.handlers[u]&&(this.handlers[u]=null)},c.prototype.forEach=function(u){d.forEach(this.handlers,function(h){h!==null&&u(h)})},n.exports=c},function(n,t,i){var d=i(0),c=i(16),u=i(4),h=i(5),g=i(24),w=i(25);function m(x){x.cancelToken&&x.cancelToken.throwIfRequested()}n.exports=function(x){return m(x),x.baseURL&&!g(x.url)&&(x.url=w(x.baseURL,x.url)),x.headers=x.headers||{},x.data=c(x.data,x.headers,x.transformRequest),x.headers=d.merge(x.headers.common||{},x.headers[x.method]||{},x.headers||{}),d.forEach(["delete","get","head","post","put","patch","common"],function(_){delete x.headers[_]}),(x.adapter||h.adapter)(x).then(function(_){return m(x),_.data=c(_.data,_.headers,x.transformResponse),_},function(_){return u(_)||(m(x),_&&_.response&&(_.response.data=c(_.response.data,_.response.headers,x.transformResponse))),Promise.reject(_)})}},function(n,t,i){var d=i(0);n.exports=function(c,u,h){return d.forEach(h,function(g){c=g(c,u)}),c}},function(n,t){var i,d,c=n.exports={};function u(){throw new Error("setTimeout has not been defined")}function h(){throw new Error("clearTimeout has not been defined")}function g(L){if(i===setTimeout)return setTimeout(L,0);if((i===u||!i)&&setTimeout)return i=setTimeout,setTimeout(L,0);try{return i(L,0)}catch{try{return i.call(null,L,0)}catch{return i.call(this,L,0)}}}(function(){try{i=typeof setTimeout=="function"?setTimeout:u}catch{i=u}try{d=typeof clearTimeout=="function"?clearTimeout:h}catch{d=h}})();var w,m=[],x=!1,_=-1;function v(){x&&w&&(x=!1,w.length?m=w.concat(m):_=-1,m.length&&b())}function b(){if(!x){var L=g(v);x=!0;for(var T=m.length;T;){for(w=m,m=[];++_<T;)w&&w[_].run();_=-1,T=m.length}w=null,x=!1,(function(N){if(d===clearTimeout)return clearTimeout(N);if((d===h||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(N);try{d(N)}catch{try{return d.call(null,N)}catch{return d.call(this,N)}}})(L)}}function C(L,T){this.fun=L,this.array=T}function k(){}c.nextTick=function(L){var T=new Array(arguments.length-1);if(arguments.length>1)for(var N=1;N<arguments.length;N++)T[N-1]=arguments[N];m.push(new C(L,T)),m.length!==1||x||g(b)},C.prototype.run=function(){this.fun.apply(null,this.array)},c.title="browser",c.browser=!0,c.env={},c.argv=[],c.version="",c.versions={},c.on=k,c.addListener=k,c.once=k,c.off=k,c.removeListener=k,c.removeAllListeners=k,c.emit=k,c.prependListener=k,c.prependOnceListener=k,c.listeners=function(L){return[]},c.binding=function(L){throw new Error("process.binding is not supported")},c.cwd=function(){return"/"},c.chdir=function(L){throw new Error("process.chdir is not supported")},c.umask=function(){return 0}},function(n,t,i){var d=i(0);n.exports=function(c,u){d.forEach(c,function(h,g){g!==u&&g.toUpperCase()===u.toUpperCase()&&(c[u]=h,delete c[g])})}},function(n,t,i){var d=i(7);n.exports=function(c,u,h){var g=h.config.validateStatus;!g||g(h.status)?c(h):u(d("Request failed with status code "+h.status,h.config,null,h.request,h))}},function(n,t,i){n.exports=function(d,c,u,h,g){return d.config=c,u&&(d.code=u),d.request=h,d.response=g,d.isAxiosError=!0,d.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},d}},function(n,t,i){var d=i(0),c=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];n.exports=function(u){var h,g,w,m={};return u&&d.forEach(u.split(`
`),function(x){if(w=x.indexOf(":"),h=d.trim(x.substr(0,w)).toLowerCase(),g=d.trim(x.substr(w+1)),h){if(m[h]&&c.indexOf(h)>=0)return;m[h]=h==="set-cookie"?(m[h]?m[h]:[]).concat([g]):m[h]?m[h]+", "+g:g}}),m}},function(n,t,i){var d=i(0);n.exports=d.isStandardBrowserEnv()?(function(){var c,u=/(msie|trident)/i.test(navigator.userAgent),h=document.createElement("a");function g(w){var m=w;return u&&(h.setAttribute("href",m),m=h.href),h.setAttribute("href",m),{href:h.href,protocol:h.protocol?h.protocol.replace(/:$/,""):"",host:h.host,search:h.search?h.search.replace(/^\?/,""):"",hash:h.hash?h.hash.replace(/^#/,""):"",hostname:h.hostname,port:h.port,pathname:h.pathname.charAt(0)==="/"?h.pathname:"/"+h.pathname}}return c=g(window.location.href),function(w){var m=d.isString(w)?g(w):w;return m.protocol===c.protocol&&m.host===c.host}})():function(){return!0}},function(n,t,i){var d=i(0);n.exports=d.isStandardBrowserEnv()?{write:function(c,u,h,g,w,m){var x=[];x.push(c+"="+encodeURIComponent(u)),d.isNumber(h)&&x.push("expires="+new Date(h).toGMTString()),d.isString(g)&&x.push("path="+g),d.isString(w)&&x.push("domain="+w),m===!0&&x.push("secure"),document.cookie=x.join("; ")},read:function(c){var u=document.cookie.match(new RegExp("(^|;\\s*)("+c+")=([^;]*)"));return u?decodeURIComponent(u[3]):null},remove:function(c){this.write(c,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(n,t,i){n.exports=function(d){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(d)}},function(n,t,i){n.exports=function(d,c){return c?d.replace(/\/+$/,"")+"/"+c.replace(/^\/+/,""):d}},function(n,t,i){var d=i(9);function c(u){if(typeof u!="function")throw new TypeError("executor must be a function.");var h;this.promise=new Promise(function(w){h=w});var g=this;u(function(w){g.reason||(g.reason=new d(w),h(g.reason))})}c.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},c.source=function(){var u;return{token:new c(function(h){u=h}),cancel:u}},n.exports=c},function(n,t,i){n.exports=function(d){return function(c){return d.apply(null,c)}}},function(n,t,i){i.r(t);var d=i(1),c=i.n(d),u=(function(){var b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,k){C.__proto__=k}||function(C,k){for(var L in k)k.hasOwnProperty(L)&&(C[L]=k[L])};return function(C,k){function L(){this.constructor=C}b(C,k),C.prototype=k===null?Object.create(k):(L.prototype=k.prototype,new L)}})(),h=function(b,C,k,L){return new(k||(k=Promise))(function(T,N){function Y(R){try{I(L.next(R))}catch(H){N(H)}}function A(R){try{I(L.throw(R))}catch(H){N(H)}}function I(R){R.done?T(R.value):new k(function(H){H(R.value)}).then(Y,A)}I((L=L.apply(b,[])).next())})},g=function(b,C){var k,L,T,N,Y={label:0,sent:function(){if(1&T[0])throw T[1];return T[1]},trys:[],ops:[]};return N={next:A(0),throw:A(1),return:A(2)},typeof Symbol=="function"&&(N[Symbol.iterator]=function(){return this}),N;function A(I){return function(R){return(function(H){if(k)throw new TypeError("Generator is already executing.");for(;Y;)try{if(k=1,L&&(T=2&H[0]?L.return:H[0]?L.throw||((T=L.return)&&T.call(L),0):L.next)&&!(T=T.call(L,H[1])).done)return T;switch(L=0,T&&(H=[2&H[0],T.value]),H[0]){case 0:case 1:T=H;break;case 4:return Y.label++,{value:H[1],done:!1};case 5:Y.label++,L=H[1],H=[0];continue;case 7:H=Y.ops.pop(),Y.trys.pop();continue;default:if(!(T=(T=Y.trys).length>0&&T[T.length-1])&&(H[0]===6||H[0]===2)){Y=0;continue}if(H[0]===3&&(!T||H[1]>T[0]&&H[1]<T[3])){Y.label=H[1];break}if(H[0]===6&&Y.label<T[1]){Y.label=T[1],T=H;break}if(T&&Y.label<T[2]){Y.label=T[2],Y.ops.push(H);break}T[2]&&Y.ops.pop(),Y.trys.pop();continue}H=C.call(b,Y)}catch(W){H=[6,W],L=0}finally{k=T=0}if(5&H[0])throw H[1];return{value:H[0]?H[1]:void 0,done:!0}})([I,R])}}},w=(function(){function b(){var C=localStorage.getItem("pintraTokenCache");C&&(b.tokens=JSON.parse(C))}return b.clearTokenCache=function(){localStorage.removeItem("pintraTokenCache"),b.tokens=[]},b.getToken=function(C,k){return h(this,void 0,void 0,function(){var L,T,N,Y,A,I,R,H,W,K,Z;return g(this,function(Q){switch(Q.label){case 0:for(b.instance==null&&(b.instance=new b),L=0,T=b.tokens;L<T.length;L++)if((H=T[L]).name==C.name&&H.expires>Date.now())return console.info("INFO: Getting cached token"),[2,H];(N=new FormData).append("action","get_tokencache"),N.append("resource",C.resource),N.append("nonce",k.nonce),Q.label=1;case 1:return Q.trys.push([1,3,,4]),[4,c.a.post(k.wpAjaxAdminUrl,N)];case 2:return Y=Q.sent(),[3,4];case 3:return A=Q.sent(),(I=new m(A.message)).data={status:"NOK",error_codes:"-1",message:A.message,result:null},[2,I];case 4:if(console.info(Y),Y.status==200){if(Y.data.status=="OK"){for(R=JSON.parse(Y.data.result),H={name:C.name,expires:1e3*parseInt(R.expiry),bearer:R.accessToken},W=b.tokens.length-1;W>=0;W--)b.tokens[W].name==C.name&&b.tokens.splice(W,1);return b.tokens.push(H),localStorage.setItem("pintraTokenCache",JSON.stringify(b.tokens)),[2,H]}return(K=new m(Y.data.message)).data=Y.data,[2,K]}return(Z=new m("Response status: "+Y.status)).data={status:"NOK",error_codes:"-1",message:"Unknown error occurred",result:null},[2,Z]}})})},b.getTokenV2=function(C,k){return h(this,void 0,void 0,function(){var L,T,N,Y,A,I,R,H,W,K,Z;return g(this,function(Q){switch(Q.label){case 0:for(b.instance==null&&(b.instance=new b),L=0,T=b.tokens;L<T.length;L++)if((H=T[L]).name==C.name&&H.expires>Date.now())return console.info("INFO: Getting cached token"),[2,H];(N=new FormData).append("action","get_tokencache"),N.append("scope",C.scope),N.append("nonce",k.nonce),Q.label=1;case 1:return Q.trys.push([1,3,,4]),[4,c.a.post(k.wpAjaxAdminUrl,N)];case 2:return Y=Q.sent(),[3,4];case 3:return A=Q.sent(),(I=new m(A.message)).data={status:"NOK",error_codes:"-1",message:A.message,result:null},[2,I];case 4:if(console.info(Y),Y.status==200){if(Y.data.status=="OK"){for(R=JSON.parse(Y.data.result),H={name:C.name,expires:1e3*parseInt(R.expiry),bearer:R.accessToken},W=b.tokens.length-1;W>=0;W--)b.tokens[W].name==C.name&&b.tokens.splice(W,1);return b.tokens.push(H),localStorage.setItem("pintraTokenCache",JSON.stringify(b.tokens)),[2,H]}return(K=new m(Y.data.message)).data=Y.data,[2,K]}return(Z=new m("Response status: "+Y.status)).data={status:"NOK",error_codes:"-1",message:"Unknown error occurred",result:null},[2,Z]}})})},b.tokens=[],b.instance=null,b})(),m=(function(b){function C(k){var L=b.call(this,k)||this;return Object.setPrototypeOf(L,C.prototype),L}return u(C,b),C})(Error),x=(function(){function b(C,k){this.name=C,this.resource=k}return b.prototype.toString=function(){return this.name+","+this.resource},b})(),_=(function(){function b(C,k){this.name=C,this.scope=k}return b.prototype.toString=function(){return this.name+","+this.scope},b})(),v=(function(){function b(){}return b.getReactDomConfig=function(){var C=document.getElementsByTagName("script"),k=C[C.length-1],L=k.getAttribute("src"),T="";L&&(T=""+L.substr(0,L.lastIndexOf("/")+1));var N=document.createElement("div"),Y=Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5);return N.setAttribute("id",Y),k.parentNode.appendChild(N),{rootId:Y,env:{nonce:k.getAttribute("data-nonce"),wpAjaxAdminUrl:k.getAttribute("data-wpajaxadminurl"),scriptContextUrl:T,props:k.getAttribute("data-props")?JSON.parse(k.getAttribute("data-props")):{}}}},b})();i.d(t,"TokenCache",function(){return w}),i.d(t,"TokenRequest",function(){return x}),i.d(t,"TokenRequestV2",function(){return _}),i.d(t,"TokenRequestError",function(){return m}),i.d(t,"AppLauncher",function(){return v})}])})})(ny)),ny.exports}var eh=NT();const OT="_wpo365WzIconButton_p7p1e_47",YT="_wpo365WzSectionButton_p7p1e_56",WT="_wpo365WzRowifier_p7p1e_67",BT="_wpo365WzColumnifier_p7p1e_81",HT="_wpo365WzPage_p7p1e_96",zT="_wpo365WzP_p7p1e_96",UT="_wpo365WzLabelFor_p7p1e_111",VT="_wpo365WzCheckbox_p7p1e_127",GT="_wpo365WzSupportMenuRowifier_p7p1e_131",$T="_wpo365WzPageTitle_p7p1e_150",KT="_wpo365WzHidePremiumOptionsToggle_p7p1e_156",qT="_wpo365WzError_p7p1e_159",JT="_wpo365WzMain_p7p1e_162",ZT="_wpo365WzTable_p7p1e_170",XT="_wpo365WzSectionTitle_p7p1e_183",QT="_wpo365WzTextArea_p7p1e_191",eA="_jsonEditor_p7p1e_197",tA="_jsonTextArea_p7p1e_211",nA="_jsonErrorNotice_p7p1e_215",rA="_jsonInfoNotice_p7p1e_218",oA="_toolbarItem_p7p1e_222",sA="_selfTest_p7p1e_229",iA="_passed_p7p1e_242",aA="_failed_p7p1e_245",lA="_subText_p7p1e_248",dA="_title_p7p1e_253",cA="_header_p7p1e_259",uA="_modal_p7p1e_265",pA="_deprecated_p7p1e_286",hA="_borderedContent_p7p1e_291",mA="_content_p7p1e_308",fA="_wpo365WzUserSyncJobEditorContainer_p7p1e_312",gA="_wpo365WzModalContainer_p7p1e_319",_A="_wpo365WzModalContainerScrollable_p7p1e_326",yA="_wpo365WzConstrainedResultsList_p7p1e_330",wA="_wpo365Badge_p7p1e_439",vA="_wpo365LastMessage_p7p1e_439",xA="___error_p7p1e_448",bA="___info_p7p1e_452",SA="___warning_p7p1e_456",CA="___success_p7p1e_460",kA="_wpo365TextSmall_p7p1e_468",MA="_wpo365InfoBox_p7p1e_473",jA="_wpo365InfoBoxIcon_p7p1e_477",LA="_wpo365AppsTab_p7p1e_490",EA="_wpo365AppsHeading_p7p1e_490",DA="_wpo365YourApps_p7p1e_499",IA="_wpo365AppPreview_p7p1e_503",TA="_wpo365AppPreviewMenu_p7p1e_507",AA="_wpo365AppsCatalog_p7p1e_517",PA="_wpo365AppsCatalogItem_p7p1e_520",RA="_wpo365AppsIcon_p7p1e_525",FA="_wpo365AppsDisplayName_p7p1e_532",NA="_wpo365AppsTable_p7p1e_535",OA="_wpo365AppsTableIcon_p7p1e_549",YA="_wpo365AppsShortcode_p7p1e_556",j={wpo365WzIconButton:OT,wpo365WzSectionButton:YT,wpo365WzRowifier:WT,wpo365WzColumnifier:BT,wpo365WzPage:HT,wpo365WzP:zT,wpo365WzLabelFor:UT,wpo365WzCheckbox:VT,wpo365WzSupportMenuRowifier:GT,wpo365WzPageTitle:$T,wpo365WzHidePremiumOptionsToggle:KT,wpo365WzError:qT,wpo365WzMain:JT,wpo365WzTable:ZT,wpo365WzSectionTitle:XT,wpo365WzTextArea:QT,jsonEditor:eA,jsonTextArea:tA,jsonErrorNotice:nA,jsonInfoNotice:rA,toolbarItem:oA,selfTest:sA,passed:iA,failed:aA,subText:lA,title:dA,header:cA,modal:uA,deprecated:pA,borderedContent:hA,content:mA,wpo365WzUserSyncJobEditorContainer:fA,wpo365WzModalContainer:gA,wpo365WzModalContainerScrollable:_A,wpo365WzConstrainedResultsList:yA,"wpo365-mssignin-wrapper":"_wpo365-mssignin-wrapper_p7p1e_335","wpo365-mssignin-spacearound":"_wpo365-mssignin-spacearound_p7p1e_355","wpo365-mssignin-select":"_wpo365-mssignin-select_p7p1e_362","wpo365-mssignin-button":"_wpo365-mssignin-button_p7p1e_371","wpo365-mssignin-button-zoom":"_wpo365-mssignin-button-zoom_p7p1e_372","wpo365-mssignin-logo":"_wpo365-mssignin-logo_p7p1e_402","wpo365-mssignin-label":"_wpo365-mssignin-label_p7p1e_423",wpo365Badge:wA,wpo365LastMessage:vA,__error:xA,__info:bA,__warning:SA,__success:CA,wpo365TextSmall:kA,wpo365InfoBox:MA,wpo365InfoBoxIcon:jA,wpo365AppsTab:LA,wpo365AppsHeading:EA,wpo365YourApps:DA,wpo365AppPreview:IA,wpo365AppPreviewMenu:TA,wpo365AppsCatalog:AA,wpo365AppsCatalogItem:PA,wpo365AppsIcon:RA,wpo365AppsDisplayName:FA,wpo365AppsTable:NA,wpo365AppsTableIcon:OA,wpo365AppsShortcode:YA};class WA extends D.Component{constructor(s){super(s),this.state={deleting:!1,errorInfo:void 0,errorMessage:void 0,hasError:!1,lastError:void 0,settingsDeleted:!1}}static getDerivedStateFromError(s){return{deleting:!1,errorInfo:void 0,errorMessage:void 0,hasError:!0,lastError:void 0,settingsDeleted:!1}}componentDidCatch(s,n){console.log(`The following error was caught by the Wizard.ErrorBoundary [${s.message}].`),console.debug(`Error caught [${JSON.stringify(n)}].`),this.setState({errorInfo:n,errorMessage:s.message})}render(){return this.state.hasError?e.jsxs(e.Fragment,{children:[e.jsx("h1",{children:"Oops, fatal error occurred"}),e.jsxs("p",{children:["The WPO365 plugin's wizard encountered the following fatal error: ",e.jsx("strong",{children:this.state.errorMessage})]}),e.jsx("p",{children:"If you believe this error may be the result of malformed settings then you can choose to delete the current settings by clicking the button below."}),e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx(et,{onClick:()=>this.deleteSettings(),children:"Delete settings"})," ",this.state.deleting&&e.jsx(Oe,{size:Te.small})]}),e.jsxs("p",{children:["Sorry for any inconvenience and please feel free to report this error to ",e.jsx("a",{href:"mailto:support@wpo365.com",children:"support@wpo365.com"})," ","(please include a screenshot)."]}),e.jsx("p",{children:e.jsx("strong",{children:"Error details"})}),e.jsx("p",{children:JSON.stringify(this.state.errorInfo)}),e.jsxs("p",{children:["- Marco van Wieren | Downloads by van Wieren | ",e.jsx("a",{href:"https://www.wpo365.com/",children:"https://www.wpo365.com/"})]})]}):this.props.children}deleteSettings=async()=>{const{env:s}=this.props;this.setState({deleting:!0,lastError:void 0,settingsDeleted:!1}),eh.TokenCache.clearTokenCache();const n=new FormData;n.append("action","wpo365_delete_settings"),n.append("nonce",s.nonce),n.append("ina",window.wpo365.wizard.props.ina);let t;try{t=await Ee.post(s.wpAjaxAdminUrl,n)}catch(i){this.setState({deleting:!1,lastError:`Failed to delete settings [${i.message}].`});return}if(t.status==200&&t.data&&t.data.status&&t.data.status=="OK"){this.setState({deleting:!1,settingsDeleted:!0}),window.location.reload();return}this.setState({deleting:!1,lastError:"Unknown error occurred [server did not report success]"})}}var l=(o=>(o.mailIntegration="mailIntegration",o.wpo365Essentials="wpo365Essentials",o.wpo365Apps="wpo365Apps",o.wpo365Avatar="wpo365Avatar",o.wpo365Customers="wpo365Customers",o.wpo365CustomFields="wpo365CustomFields",o.wpo365Groups="wpo365Groups",o.wpo365Intranet5y="wpo365Intranet5y",o.wpo365Login="wpo365Login",o.wpo365LoginIntranet="wpo365LoginIntranet",o.wpo365LoginPlus="wpo365LoginPlus",o.wpo365LoginPremium="wpo365LoginPremium",o.wpo365LoginProfessional="wpo365LoginProfessional",o.wpo365Mail="wpo365Mail",o.wpo365MsGraphMailer="wpo365MsGraphMailer",o.wpo365RolesAccess="wpo365RolesAccess",o.wpo365Scim="wpo365Scim",o.wpo365Sync5y="wpo365Sync5y",o.wpo365Integrate="wpo365Integrate",o.wpo365Pro="wpo365Pro",o))(l||{}),Ip=(o=>(o.mailIntegration="mail_integration_365/mail_integration_365.php",o.wpo365Essentials="wpo365-essentials/wpo365-essentials.php",o.wpo365Apps="wpo365-apps/wpo365-apps.php",o.wpo365Avatar="wpo365-avatar/wpo365-avatar.php",o.wpo365Customers="wpo365-customers/wpo365-customers.php",o.wpo365CustomFields="wpo365-custom-fields/wpo365-custom-fields.php",o.wpo365Groups="wpo365-groups/wpo365-groups.php",o.wpo365Integrate="wpo365-integrate/wpo365-integrate.php",o.wpo365Intranet5y="wpo365-intranet-5y/wpo365-intranet-5y.php",o.wpo365Login="wpo365-login/wpo365-login.php",o.wpo365LoginIntranet="wpo365-login-intranet/wpo365-login.php",o.wpo365LoginPlus="wpo365-login-plus/wpo365-login.php",o.wpo365LoginPremium="wpo365-login-premium/wpo365-login.php",o.wpo365LoginProfessional="wpo365-login-professional/wpo365-login.php",o.wpo365Mail="wpo365-mail/wpo365-mail.php",o.wpo365MsGraphMailer="wpo365-msgraphmailer/wpo365-msgraphmailer.php",o.wpo365Pro="wpo365-pro/wpo365-pro.php",o.wpo365RolesAccess="wpo365-roles-access/wpo365-roles-access.php",o.wpo365Scim="wpo365-scim/wpo365-scim.php",o.wpo365Sync5y="wpo365-sync-5y/wpo365-sync-5y.php",o))(Ip||{});const Np={wpo365Essentials:{name:"ESSENTIALS",url:"https://www.wpo365.com/downloads/wpo365-essentials/"},wpo365Apps:{name:"M365 APPS",url:"https://www.wpo365.com/downloads/wpo365-microsoft-365-apps/"},wpo365Avatar:{name:"AVATAR",url:"https://www.wpo365.com/downloads/wpo365-avatar/"},wpo365Customers:{name:"CUSTOMERS",url:"https://www.wpo365.com/downloads/wpo365-customers/"},wpo365CustomFields:{name:"CUSTOM USER FIELDS",url:"https://www.wpo365.com/downloads/wpo365-custom-user-fields/"},wpo365Groups:{name:"(itthinx) GROUPS",url:"https://www.wpo365.com/downloads/wpo365-groups/"},wpo365Login:{name:"LOGIN",url:"https://wordpress.org/plugins/wpo365-login/"},wpo365LoginIntranet:{name:"INTRANET",url:"https://www.wpo365.com/downloads/wordpress-office-365-login-intranet/"},wpo365LoginPlus:{name:"PROFILE+",url:"https://www.wpo365.com/downloads/wordpress-office-365-login-plus/"},wpo365LoginPremium:{name:"SYNC",url:"https://www.wpo365.com/downloads/wordpress-office-365-login-premium/"},wpo365LoginProfessional:{name:"LOGIN+",url:"https://www.wpo365.com/downloads/wordpress-office-365-login-professional/"},wpo365Mail:{name:"MAIL",url:"https://www.wpo365.com/downloads/wpo365-mail/"},wpo365RolesAccess:{name:"ROLES + ACCESS",url:"https://www.wpo365.com/downloads/wpo365-roles-access/"},wpo365Scim:{name:"SCIM",url:"https://www.wpo365.com/downloads/wpo365-scim/"},wpo365Sync5y:{name:"SYNC | 5Y",url:"https://www.wpo365.com/downloads/wordpress-office-365-login-premium-5y/"},wpo365Intranet5y:{name:"INTRANET | 5Y",url:"https://www.wpo365.com/downloads/wordpress-office-365-login-intranet-5y/"},wpo365Integrate:{name:"INTEGRATE",url:"https://www.wpo365.com/downloads/wpo365-integrate/"},wpo365Pro:{name:"PROFESSIONAL",url:"https://www.wpo365.com/downloads/wpo365-professional/"}};var Zb=(o=>(o.current="current",o.beta="beta",o))(Zb||{}),pd=(o=>(o.locally="locally",o.remotely="remotely",o.both="both",o))(pd||{}),Gr=(o=>(o.internet="internet",o.intranet="intranet",o.internetAuthOnly="internetAuthOnly",o.intranetAuthOnly="intranetAuthOnly",o))(Gr||{}),Kr=(o=>(o.graph="graph",o.idToken="idToken",o.samlResponse="samlResponse",o.scim="scim",o))(Kr||{}),Xb=(o=>(o.replace="replace",o.add="add",o.skip="skip",o))(Xb||{}),Va=(o=>(o[o.initial=0]="initial",o[o.error=1]="error",o[o.success=2]="success",o))(Va||{}),Ys=(o=>(o[o.initial=0]="initial",o[o.testing=1]="testing",o[o.tested=2]="tested",o[o.error=3]="error",o[o.success=4]="success",o))(Ys||{}),we=(o=>(o[o.initial=0]="initial",o[o.saving=1]="saving",o[o.saved=2]="saved",o[o.error=3]="error",o[o.success=4]="success",o))(we||{}),Me=(o=>(o.apps="apps",o.calendarConfigurator="calendarConfigurator",o.cbsConfigurator="cbsConfigurator",o.dashboard="dashboard",o.debug="debug",o.listConfigurator="listConfigurator",o.edConfigurator="edConfigurator",o.errors="errors",o.importExport="importExport",o.insights="insights",o.integration="integration",o.loginLogout="loginLogout",o.mail="mail",o.mailLogViewer="mailLogViewer",o.miscellaneous="miscellaneous",o.pbiConfigurator="pbiConfigurator",o.rolesAccess="rolesAccess",o.selfTest="selfTest",o.singleSignOn="singleSignOn",o.translations="translations",o.userRegistration="userRegistration",o.userSync="userSync",o.yammer="yammer",o))(Me||{}),Op=(o=>(o.signedInWithMicrosoft="signedInWithMicrosoft",o.signedIn="signedIn",o.anonymous="anonymous",o))(Op||{}),kr=(o=>(o.hybrid="hybrid",o.code="code",o))(kr||{}),qf=(o=>(o.form_post="form_post",o.query="query",o))(qf||{}),sd=(o=>(o.displayName="displayName",o.givenNameSurname="givenNameSurname",o.skip="skip",o.surnameGivenName="surnameGivenName",o.surnameGivenNameNoComma="surnameGivenNameNoComma",o))(sd||{}),er=(o=>(o.application="application",o.auto="auto",o.delegated="delegated",o.personal="personal",o.rbac="rbac",o))(er||{});class Lr extends Error{errorFor;errorCode;constructor(s,n,t){super(n),this.errorFor=s,this.errorCode=t}}const he={empty:"",errDirectoryIdMustBeGuid:"Directory ID must be a valid GUID.",errApplicationIdMustBeGuid:"Application ID must be a valid GUID.",errAadSGroupIdMustBeGuid:"Entra ID Group ID must be a valid GUID.",errSessionDurationMustBeNumeric:"Session duration must a number.",errAvatarUpdatedMustBeNumeric:"Avatar updated must a number.",errRedirectUriMustBeUrl:"Redirect URI must be a valid URL and start with http:// or https:// and end with a trailing slash.",errProxyEndpoint:"A proxy-type request must start with https://",errDomainHintCannotStartWith:"Domain hint cannot start with http.",errCustomDomainCannotStartWith:"A Custom Domain cannot start with http",errAuthenticationTestFailed:"Popup window should close automatically.",errGotoAfterSignonUrlMustStartWith:"Goto after sign-on URL must start with http.",errErrorPageUrlMustStartWith:"Error Page URL must start with http(s).",errCustomLoginUrlMustStartWith:"Custom Login Page URL must start with http(s).",errLoadingTemplateUrlMustStartWith:"URL must be relative, start with / and end with .html",errWelcomePageUrlMustStartWith:"Welcome Page URL must start with http(s).",errPostSignoutUrlMustStartWith:"Goto after sign-on URL must start with http.",errGroupsXGotoAfterKey:"Entra ID Group ID must be a valid GUID",errGroupsXGotoAfterValue:"Goto after login must start with http:// or https://",errAppOnlyApplicationIdMustBeGuid:"Application ID must be a valid GUID.",errMustBeUrl:"Must be a valid URL and start with http:// or https://",errMustBeWithoutDots:"Only enter the first domain segment without .onmicrosoft.com",errMustNotBeEmptyOrContainWhitespace:"Cannot be empty or contain white spaces",okSettingsUpdated:"Configuration saved successfully.",okTokensDeleted:"Deleted all access and refresh tokens.",errLeewayMustBeNumeric:"Leeway must be a number",errPasswordLengthMustBeNumeric:"Password length must be a number",errMustBeValidEmail:"Input must be a valid email address",infoAiInstrumentationKey:"e.g. 9eb73a5a-92e5-409c-b421-8bf8f91ff2d7",infoDirectoryId:"e.g. 8f7b8a33-f550-4197-80ea-5617865ac2cb",infoApplicationId:"e.g. 8f7b8a33-f550-4197-80ea-5617865ac2cb",infoProxyEndpoint:"e.g. https://graph.microsoft.com/v1.0/users",infoRedirectUri:"e.g. https://www.mycompany.com/",infoDomainHint:"e.g. mycompany.com",infoSessionDuration:"e.g. 3480",infoAvatarUpdated:"e.g. 259200",infoCustomDomain:"e.g. mycompany.com",infoWordPressRole:"WP Role",infoLeeway:"e.g. 300",infoPasswordLength:"e.g. 16",infoMailFrom:"e.g. john.doe@example.com",infoTestMailTo:"e.g. john.doe@example.com",infoUserMatchOrder:"e.g. oid, upn, preferred_username, email",infoGotoAfterSignonUrl:"e.g. https://www.mycompany.com/",infoErrorPageUrl:"e.g. https://www.mycompany.com/login-error/",infoCustomLoginUrl:"e.g. https://www.mycompany.com/login/",infoLoadingTemplateUrl:"e.g. /wp-content/uploads/2020/10/loading-template.html",infoGroupsXGotoAfterKey:"e.g. 8f7b8a33-f550-4197-80ea-5617865ac2cb",infoGroupsXGotoAfterValue:"e.g. https://subsite.mycompany.com/",infoPostSignoutUrl:"e.g. https://www.wpo365.com/",infoExtraUserFieldsKey:"Graph property e.g. jobTitle",infoScimAttributeMappingsKey:'SCIM property path e.g. phoneNumbers[type eq "mobile"].value',infoScimAttributeMappingsValue:"Entra ID property name e.g. mobilePhone",infoNewUserMailSubject:"e.g. [__##BLOG_NAME##__] New user registration",infoNewUserMailTitle:"e.g. NEW USER REGISTRATION",infoNewUserMailSalutation:"e.g. Dear __##USER_DISPLAY_NAME##__",infoAppOnlyApplicationId:"e.g. 8f7b8a33-f550-4197-80ea-5617865ac2cb",infoUrl:"e.g. https://www.mycompany.com/",infoB2cDomainName:"e.g. wpo365connect",infoB2cPolicyName:"e.g. B2C_1_signup_signin_1",wpoErrorCheckLog:"Please contact your System Administrator and check log file.",wpoErrorDeactivated:"Account deactivated.",wpoErrorNotConfigured:"SSO integration with Microsoft is not configured yet. Please contact your System Administrator.",wpoErrorNotInGroup:"User not in group. Please contact your System Administrator.",wpoErrorTamperedWith:"Your login might be tampered with. Please contact your System Administrator.",wpoErrorUserNotFound:"Could not create or retrieve your login. Please contact your System Administrator.",wpoErrorIdTokenError:"Your ID token could not be processed. Please contact your System Administrator.",wpoErrorIdTokenAud:"The ID token is intended for a different audience. Please contact your System Administrator.",wpoErrorDualLogin:'Alternatively, you can click the following link to sign into this website with your corporate <a href="__##OAUTH_URL##__">network login (Microsoft 365)</a>',wpoErrorDualLoginV2:'Alternatively, you can click the following link to sign into this website with your corporate <span class="wpo365-dual-login-notice" style="cursor: pointer; text-decoration: underline; color: #000CD" onclick="window.wpo365.pintraRedirect.toMsOnline()">network login (Microsoft 365)</span>',wpoErrorLoggedOut:"You are now logged out.",wpoErrorPrivatePage:"The page you requested requires you to sign in first.",wpoErrorNotFromDomain:"Access Denied. Please contact your System Administrator.",wpoErrorSaml2Error:"SAML authentication error.",wpoErrorNoIdpSelected:"Please select an Identity Provider from the list below to sign in to the website.",wpoTitleM365ProfileInfo:"Microsoft 365 Profile Information",capCopyShortcodeButton:"Copy shortcode to clipboard",capCopyShortcodeButtonSuccess:"Shortcode copied to clipboard!",capCancelButton:"Cancel",titleUseSaml:"Important",subTextUseSaml:`The default implemenation of the WPO365 plugin relies on the <strong>OpenID Connect</strong> 
    protocol for single sign-on. For various reasons (see <a target="_blank" 
    href="https://learn.microsoft.com/en-us/entra/identity-platform/authentication-vs-authorization">this article</a>)
    companies may decide to use <strong>SAML 2.0</strong> instead.<br><br>Please consult the 
    <a target="_blank" href="https://docs.wpo365.com/article/100-configure-single-sign-on-with-saml-2-0">online 
    documentation</a> for pros and cons of using the WPO365 implemenation of <strong>SAML 2.0</strong>.  
    Most importantly, when using <strong>SAML 2.0</strong> for single sign-on, the WPO365 plugin does 
    not support retrieving personal access tokens for a user. However, many functions such as retrieving a user
    profile image, additional user profile field and user synchronization also will work as expected when
    you configure <a target="_blank" href="https://tutorials.wpo365.com/courses/integration-application-permissions/">app-only permissions</a>.`,titleUseB2c:"Important",subTextUseB2c:`If you are in doubt whether you should select Entra ID (default) or AAD B2C / Entra External ID (AAD for Customers) then select Entra ID. 
    For those interested in AAD B2C / Entra Exteral ID (AAD for Customers) please consult the <a href="https://docs.wpo365.com/article/130-azure-ad-b2c-based-single-sign-on-for-wordpress" 
    target="_blank">corresponding configuration guide</a>. Others are recommended to follow the steps provided in the <a href="https://docs.wpo365.com/article/154-aad-single-sign-for-wordpress-using-auth-code-flow" 
    target="_blank">default guide to configure SSO</a>.`,titleUseGcc:"Important",subTextUseGcc:'Selecting Government GCC (High) will change the TLD for most endpoints addressed by WPO365 from ".com" to ".us" (see <a href="https://learn.microsoft.com/en-us/microsoft-365/enterprise/microsoft-365-u-s-government-gcc-high-endpoints?view=o365-worldwide" target="_blank">Microsoft 365 U.S. Government GCC High endpoints</a>).',titleBeforeSave:"Important",subTextBeforeSaveIntranet:`Depending on your WordPress hosting setup you may need to manually 
    purge the (server-side) cache  for changed settings to take effect immediately!
    <br/><br/>As soon as you click <strong>Confirm</strong> the <a target="_blank" 
    href="#selfTest">Plugin self-test</a> page will load. To test your configuration click <em>Start 
    self-test</em>. The plugin may ask you to sign in with Microsoft (if you haven't done so already).`,subTextBeforeSaveInternet:`Depending on your WordPress hosting setup you may need to manually 
    purge the (server-side) cache  for changed settings to take effect immediately!
    <br/><br/>As soon as you click <strong>Confirm</strong> the <a target="_blank" 
    href="#selfTest">Plugin self-test</a> page will load. To test your configuration click <em>Start 
    self-test</em>. The plugin may ask you to sign in with Microsoft (if you haven't done so already).`,titleUseAvatar:"Important",subTextUseAvatar:`When checking <strong>Use O365 Avatar</strong>, you also must configure 
    the <strong>Custom domains</strong> option on the <strong>
    User registration</strong> tab or else the plugin is not able to identify users that belong to your
    tenant (and hence it cannot decide whether or not it should retrieve a user's O365 profile image).`,titleAddUserSyncJob:"Important",subTextAddUserSyncJob:`Please note that when you configure more than one job to synchronize users,
    the plugin will skip the (soft) deletion of WordPress users.`,titleUseBpAvatar:"Important",subTextUseBpAvatar:`When checking <strong>Use O365 Avatar (Buddy Press)</strong>, you also must configure 
    <strong>Use O365 Avatar</strong> or else the Microsoft 365 profile image may not be available in the first place.
    <br><br>Also, when checking this option, you understand that the Microsoft 365 profile image will be shown whenever 
    one is found and that this avatar will also be used, even when the user has uploaded his own Buddy Press
    profile image.`,titleHideSsoLink:"Notice",subTextHideSsoLink:`This setting will only suppress the Single Sign-on link that is otherwise shown if
    you checked <strong>Redirect to login</strong>. If you didn't check this option, the SSO won't be shown
    in the first place.`,titleUseIdTokenParserV2:"Important",subTextUseIdTokenParserV2:`Only check this option if the plugin reports ID token errors after you updated the plugin
    to v14 or higher. Please also contact <a target="_blank" href="https://www.wpo365.com/contact/">support</> and 
    describe your issue, as this may also affect others.`,titleUseSingleAppRegistration:"Important",subTextUseSingleAppRegistration:`Checking this option will configure the plugin so it will expect <em>application</em> (as opposed to 
    <em>delegated</em>) permissions to be granted to the same <em>App registration</em> that you have configured to enable <em>Microsoft
    based single sign-on</em>.<br/>
    Please note that changing this option will automatically update the current configuration for the (App-only) Application (client) ID and secret.<br/><br/>
    <a href="https://tutorials.wpo365.com/courses/integration-application-permissions/" target="_blank">Read more...</a>.`};class Fe{aadResourceUri="00000002-0000-0000-c000-000000000000";addCreateAccountPrompt=!1;addSelectAccountPrompt=!1;aiInstrumentationKey="";allGroupMemberships=!1;allowedTenants=[];allowReactivation=!1;alwaysUseGotoAfter=!1;applicationId="";applicationSecret="";appOnlyApplicationId="";appOnlyApplicationSecret="";appRolesXWpRoles=[];audiences=[];audiencesExcludedPostTypes=[];audiencesExcludedRoles=[];audiencesPrivatePostTypes=[];audiencesPrivatePageResponse="notFound";audiencesXPostTypes=[];authScenario=Gr.intranet;avatarHookPriority=1;avatarUpdated=259200;avatarSkipSaveDefault=!1;avatarTemplate='<img src="__##AVATAR_URL##__" width="__##AVATAR_SIZE##__" height="__##AVATAR_SIZE##__" class="ui avatar image">';b2cAllowMultiplePolicies=!1;b2cCustomDomain="";b2cDomainName="";b2cEnableSignup=!1;b2cPolicyName="";b2cSignupPolicy="";blockDirectMediaAccess=!1;blockEmailChange=!0;blockPasswordChange=!0;bounceToAdmin=!1;buttonConfig=[];createAndAddUsers=!0;curlLoggingEnabled=!1;customDomain=[];customFieldsXItthinxGroups=[];customFieldsXRoles=[];customLoginUrl="";debugLog=!1;debugLogLocation=pd.locally;debugLogIdToken=!1;defaultDomain="";defaultRoleAsFallback=!0;domainBlockedList=!1;domainHint="";domainWhitelist=[];domainsXRoles=[];enableAudiences=!1;enableAudiencesMetaBox=!0;enableAudiencesRest=!1;enableCustomLogScim=!1;enableCustomLogSync=!1;enableGraphApi=!1;enableGraphProxy=!1;enableNonceCheck=!1;enableScim=!1;enableSingleSignOut=!1;enableTokenService=!1;enableUserSync=!1;exitOnAudienceError=!1;expressLogin=!1;extraUserFields=[];extraUserFieldsSource=Kr.graph;errorPageUrl="";gotoAfterSignonUrl="";graphAllowAllEndpoints=!1;graphAllowTokenRetrieval=!1;graphAllowedEndpoints=[];graphDisplayNameFormat=sd.displayName;graphPermissionLevel=Op.signedIn;graphSelectProperties=[];graphUserDetails=!1;graphVersion=Zb.current;groupsWhitelist=[];groupsXRoles=[];groupsXGroupsGroups=[];groupsXGotoAfter=[];hideAdminBarRoles=[];hideDocTb=!1;hideErrorNotice=!1;hideLoginButton=!1;hideNewUserApp=!1;hidePremiumOptions=!1;hideSsoLink=!1;insightsAlertsEnabled=!1;insightsAlertsLogin=!1;insightsAlertsMail=!1;insightsAlertsNoSensitiveData=!0;insightsAlertsUserCreation=!1;insightsEnabled=!1;insightsAnonymized=!1;insightsWidgetHidden=!1;interceptWpLogin=!1;ldCourseAssignments=[];ldCourseAssignmentsByDomain=[];ldDefaultCourseAssignments=[];ldDefaultGroupAssignments=[];ldGroupAssignments=[];ldGroupAssignmentsByDomain=[];leeway=300;licenseKey="";loadingTemplateUrl="";logoutFromO365=!1;mailAllowFrom=!1;mailApplicationId="";mailApplicationSecret="";mailAuthorizationScenario=er.auto;mailAutoRetry=!1;mailDefaultRecipient="";mailFixLocalhost=!1;mailFrom="";mailIntervals=[3600,7200,14400];mailLog=!1;mailLogRetention=90;mailMimeType="Html";mailMultiTenanted=!1;mailRedirectUrl="";mailReplyTo="";mailSaveToSentItems=!1;mailSendAs=!1;mailSendAsFrom="";mailSendShared=!1;mailSendSharedFrom="";mailSendToBcc=!1;mailSkipAllChecks=!1;mailStagingMode=!1;mailTenantId="";mailThrottlingEnabled=!1;mailThreshold=20;mailTld=".com";muAddNewUserSite=!1;muNewUserSiteUseUsername=!1;muAddUserToAllSites=!1;muGroupsXSuperAdmins=[];multiTenanted=!1;multiTenantedApiPermissions=[];muNewUsrDefaultRole="subscriber";muRevokeSuperAdmin=!1;newUsrDefaultRole="subscriber";newUsrSendMail=!1;newUsrSendMailAdminOnly=!1;newUsrSendMailCustom=!1;newUsrMailSubject="[__##BLOG_NAME##__] New user registration";newUsrMailTitle="NEW USER REGISTRATION";newUsrMailSalutation="Dear __##USER_DISPLAY_NAME##__";newUsrMailBody='The website <strong><a href="__##BLOG_URL##__">__##BLOG_NAME##__</a></strong> has been shared with you. You can now sign in using your Entra ID account <strong>__##USER_LOGIN_NAME##__</strong>.';newUsrMailFooter='Powered by <a href="https://www.wpo365.com/" target="_blank">WPO365 - Connecting Wordpress and Entra ID / Microsoft 365</a>';nonceSecret=Zt(16);noSso=!1;oidcFlow=kr.code;oidcResponseMode=qf.form_post;pagesBlacklist=["wp-login.php","/login/","wp-cron.php","admin-ajax.php","xmlrpc.php"];passwordLength=16;postSignoutUrl="";preventNonAdminLogin=!1;preventSendEmailChangeEmail=!1;preventSendPasswordChangeEmail=!1;privatePages=[];publicHomepage=!1;redirectUrl="";redirectUrlStrict=!1;redirectOnLogin=!1;redirectOnLoginSecret=Zt(32);redirectOnLoginReferrers=[];redirectOnPrivatePage=!1;redirectToLogin=!1;redirectToLoginV2=!1;rememberUser=!1;replaceOrUpdateUserRoles=Xb.skip;replaceOrUpdateWpmuUserRoles=!1;samlClaimMappings=[];samlEnableRequestedAuthnContext=!1;samlForceAuthn=!1;samlStrict=!0;samlBaseUrl="";samlSpEntityId="";samlSpAcsUrl="";samlSpAcsBinding="";samlSpSlsUrl="";samlSpSlsBinding="";samlIdpEntityId="";samlIdpMetaDataUrl="";samlIdpSsosUrl="";samlIdpSsosBinding="";samlIdpSlsUrl="";samlIdpSlsBinding="";samlX509Cert="";scimAttributeMappings=[];scimReassignPostsTo="";scimReassignPostsToId=0;scimSecretToken="";sessionDuration=0;skipAddUserToSubsite=!1;skipApiBasicAuthRequest=!1;skipAvatarForOthers=!1;skipHostVerification=!0;skipIdTokenVerification=!1;skipIps=[];skipNonceVerification=!1;skipPasswordCredentialsExpiredCheck=!0;skipUserRegisterAction=!1;skipWpAdmin=!1;skipWpLoginAction=!1;signInMultiPlaceholder="Select your Identity Provider";signInWithMicrosoft="Sign in with Microsoft";tenantId="";testAccessToken=!0;testConfiguration=!0;testIdToken=!0;tld=".com";updateAdmins=!1;upgradeActions=[];useAlternativeCdn=!1;useAppOnlyToken=!1;useAvatar=!1;useB2c=!1;useBpAvatar=!1;useBpExtended=!1;useCiam=!1;useGcc=!1;useGraphMailer=!1;useShortLoginName=!1;useSingleAppRegistration=!1;useIdTokenParserV1=!1;useIdTokenParserV2=!1;useLoaderV1=!1;useLoginButtonV1=!1;useMsTeamsSsoV1=!1;useNoTeamsSso=!1;usePkce=!1;userNameClaim="";userNamePreference="default";userNameAadProperty="";userNameScimClaim="";userSyncJobs=[];useTeams=!1;useSaml=!1;useV2=!0;useWpCli=!0;useWpConfig=!1;useWpConfigFrags=!1;useWpContent=!1;useWpRestAad=!1;useWpRestCookies=!1;userMatchOrder=[];userSyncQuery="myorganization/users?$filter=accountEnabled+eq+true+and+userType+eq+%27member%27&$top=10";userSyncAllowDelete=!1;validateOnPluginsLoaded=!1;welcomePageUrl="";wpo365LoginDownloadLink="";wpoErrorCheckLog=he.wpoErrorCheckLog;wpoErrorDeactivated=he.wpoErrorDeactivated;wpoErrorDualLogin=he.wpoErrorDualLogin;wpoErrorDualLoginV2=he.wpoErrorDualLoginV2;wpoErrorIdTokenError=he.wpoErrorIdTokenError;wpoErrorIdTokenAud=he.wpoErrorIdTokenAud;wpoErrorLoggedOut=he.wpoErrorLoggedOut;wpoErrorPrivatePage=he.wpoErrorPrivatePage;wpoErrorNotConfigured=he.wpoErrorNotConfigured;wpoErrorNotFromDomain=he.wpoErrorNotFromDomain;wpoErrorNotInGroup=he.wpoErrorNotInGroup;wpoErrorTamperedWith=he.wpoErrorTamperedWith;wpoErrorSaml2Error=he.wpoErrorSaml2Error;wpoErrorUserNotFound=he.wpoErrorUserNotFound;wpoErrorNoIdpSelected=he.wpoErrorNoIdpSelected;wpoTitleM365ProfileInfo=he.wpoTitleM365ProfileInfo;wpRestAadApplicationId="";wpRestAadApplicationIdUri="";wpRestAadProtectedEndpoints=[];wpRestAadUseAppRoles=!1;wpRestBlock=!1;wpRestCookiesProtectedEndpoints=[];wpRestSetCookies=!1;wpToAadCreateUsers=!1;wpToAadCustomerEndpoint="";wpToAadEmailNotifications="userNotPresent";wpToAadExcludedRoles=[];wpToAadExitOnFailure=!1;wpToAadForceChangePasswordNextSignIn=!1;wpToAadIdentityProvider=void 0;wpToAadPasswordReset=!1;wpToAadUpdateSensitiveProps=!1;wpToAadUpdateUsers=!1;wpToAadUserAttributeMappings=[];name=void 0;configurations=[];constructor(s){this.redirectUrl=s.props.siteUrl.slice(-1)!="/"?s.props.siteUrl+"/":s.props.siteUrl,this.mailRedirectUrl=this.redirectUrl,this.samlBaseUrl=this.redirectUrl}static async getSettings(s){const n=new FormData;n.append("action","wpo365_get_settings"),n.append("nonce",s.nonce),n.append("ina",window.wpo365.wizard.props.ina);let t;try{t=await Ee.post(s.wpAjaxAdminUrl,n)}catch(i){return console.log(i),null}if(t.status==200&&t.data&&t.data.status&&t.data.status=="OK")try{const i=JSON.parse(t.data.result),d=new Fe(s);return Object.keys(d).forEach(c=>{typeof i[c]<"u"&&i[c]!==null&&(d[c]=i[c])}),Object.keys(i).forEach(c=>{c.indexOf("license_")===0&&(d[c]=i[c])}),d}catch(i){return console.log(i),null}return null}static async updateSettings(s,n,t=!1){if(n.name){const h=Ja(n.configurations,w=>w.name==n.name),g=JSON.parse(JSON.stringify(n));delete g.configurations,h>-1?n.configurations[h]=g:n.configurations.push(g)}function i(h){return new Promise((g,w)=>{const m=new FileReader;m.onloadend=()=>{const x=m.result,_=x.indexOf(",");_>-1?g(x.substring(_+1)):(console.warn("Settings::blobToBase64 -> Could not split the dataURL into "),g(x))},m.readAsDataURL(h)})}const d=await i(new Blob([JSON.stringify(n)],{type:"application/json"})),c=new FormData;c.append("action","wpo365_update_settings"),c.append("nonce",s.nonce),c.append("ina",window.wpo365.wizard.props.ina),c.append("settings",d),t&&c.append("reset","true");let u;try{u=await Ee.post(s.wpAjaxAdminUrl,c)}catch(h){return h}return u.status==200&&u.data&&u.data.status?u.data.status=="OK"?{error:null,message:he.empty,success:!0}:{error:new Lr(null,u.data.message),message:he.empty,success:!1}:{error:new Lr(null,u.message),message:he.empty,success:!1}}update(){return null}validate(){return null}}const Ye=D.createContext({addOnNavigateHandler:null,appStatus:"initial",env:void 0,lastErrorMessage:null,onNavigateHandlers:[],removeOnNavigateHandler:null,settings:void 0,showWpoHealthMessages:!1,setShowWpoHealthMessages:o=>{},updateAppStatus:o=>{},updateLastErrorMessage:o=>{},updateSettings:o=>{},wpoHealthMessagesDismissed:()=>{},wpoHealthMessagesUpdated:o=>{}}),BA=o=>{const{children:s}=o,[n,t]=D.useState("initial"),[i,d]=D.useState(o.env),[c,u]=D.useState(null),[h,g]=D.useState(void 0),[w,m]=D.useState(!1),[x,_]=D.useState([]),v=D.useRef();D.useMemo(()=>{v.current=[],Fe.getSettings(i).then(T=>g(T))},[]);const b=T=>{Ja(v.current,Y=>Y.toString()==T.toString())==-1&&(v.current=[...v.current,T],_(v.current))},C=T=>{const N=Ja(v.current,Y=>Y.toString()==T.toString());N>-1&&(v.current.splice(N,1),_(v.current))},k=()=>{const T={...i};T.props.wpoHealthMessages="false",d(T)},L=T=>{if(T){const N={...i};N.props.wpoHealthMessages=T,d(N)}};return e.jsx(Ye.Provider,{value:{addOnNavigateHandler:b,appStatus:n,env:i,lastErrorMessage:c,onNavigateHandlers:x,removeOnNavigateHandler:C,settings:h,showWpoHealthMessages:w,setShowWpoHealthMessages:m,updateAppStatus:t,updateLastErrorMessage:u,updateSettings:g,wpoHealthMessagesDismissed:k,wpoHealthMessagesUpdated:L},children:h?s:e.jsx("div",{style:{position:"absolute",top:"50%",left:"50%",marginTop:"-14px",marginLeft:"-14px",width:"100px",height:"100px;"},children:e.jsx(Oe,{size:Te.large})})})},Bo=o=>{const{onDismiss:s,onCancel:n,onConfirm:t,title:i,subText:d}=o;return e.jsx(D.Fragment,{children:e.jsxs(Xp,{hidden:!1,onDismiss:s,dialogContentProps:{type:Hs.normal,title:i,subText:""},modalProps:{isBlocking:!1},children:[e.jsx("div",{dangerouslySetInnerHTML:{__html:d}}),e.jsxs(wg,{children:[!!n&&e.jsx(et,{onClick:n,text:he.capCancelButton}),e.jsx(dt,{onClick:t,text:"Close"})]})]})})},fe=o=>{const{bound:s,disabled:n,errorMessage:t,isValid:i,onError:d,onValid:c,password:u,placeholder:h,style:g,value:w}=o,m=D.useRef(),[x,_]=D.useState(!0),[v,b]=D.useState(w||""),[C,k]=D.useState(!1),L=D.useMemo(()=>Zt(12),[]),T=()=>{const Y=i?i(v,v):!0;_(Y),c&&Y&&c(v),d&&!Y&&d(t)};D.useEffect(()=>{w!==v&&(b(w),k(!0))},[w]),D.useEffect(()=>{C&&(m.current&&clearTimeout(m.current),m.current=setTimeout(T,400),k(!1))},[C]);const N=D.useMemo(()=>{const Y=g?{...g}:{};return Y.border=x?"1px solid #dadada":"1px solid red",Y.padding="10px",Y.height="30px",Y.lineHeight="30px",Y.border="1px solid",Y.width="100%",Y.maxWidth="400px",Y.flexGrow=1,n&&(Y.color="#000000",Y.background="#dadada"),Y},[x,n]);return e.jsxs(U,{tokens:{childrenGap:10},horizontalAlign:"start",style:{width:"100%"},children:[e.jsxs(U,{horizontal:!0,verticalAlign:"center",style:{width:"100%"},children:[e.jsx("input",{type:u?"password":"text",onChange:Y=>{b(Y.target.value),k(!0)},value:v,style:N,disabled:n,placeholder:h||null,id:L}),o.children]}),!s&&!x&&e.jsx("div",{style:{lineHeight:"30px",color:"#cc0000"},children:t})]})},Ws=o=>{const{list:s,onListChanged:n,onAdd:t,placeholder:i,isValid:d,errorMessage:c,disabled:u}=o,[h,g]=D.useState(s?[...s]:[]),[w,m]=D.useState(""),[x,_]=D.useState("");return D.useEffect(()=>{JSON.stringify(s)!==JSON.stringify(h)&&n([...h])},[h]),e.jsxs(U,{tokens:{childrenGap:10},horizontalAlign:"start",style:{width:"400px"},children:[!u&&e.jsxs(U,{tokens:{childrenGap:10},horizontal:!0,verticalAlign:"center",style:{width:"100%"},children:[e.jsx(fe,{bound:!0,disabled:u,errorMessage:c,isValid:(v,b)=>(x&&_(""),d&&b?d.test(b):!0),onError:v=>_(v),onValid:v=>{m(v)},placeholder:i||void 0,value:w}),e.jsx(Ke,{onClick:()=>{if(!w){_("This setting requires a value");return}if(t&&!t(w)){m("");return}const v=[...h];v.push(w),g([...v]),m("")},iconProps:{iconName:"Add"},title:"Add",ariaLabel:"Click to add this item",style:{fontSize:"12px",lineHeight:"30px",height:"30px",width:"30px",padding:0,marginLeft:"10px",cursor:"pointer"}})]}),x&&e.jsx("div",{style:{lineHeight:"30px",color:"#cc0000"},children:x}),!u&&h.length>0&&e.jsx("div",{style:{width:"400px",height:"1px",backgroundColor:"black"}}),h.map((v,b)=>e.jsx(e.Fragment,{children:e.jsxs(U,{tokens:{childrenGap:10},horizontal:!0,verticalAlign:"center",style:{width:"100%"},children:[e.jsx(fe,{bound:!1,disabled:!0,value:v}),e.jsx(Ke,{onClick:()=>{const C=[...h];C.splice(b,1),g(C)},iconProps:{iconName:"Delete"},title:"Delete",ariaLabel:"Click to delete this item",style:{fontSize:"12px",lineHeight:"30px",height:"30px",width:"30px",padding:0,marginLeft:"10px",cursor:"pointer"}})]},btoa(v))}))]})},Ho=o=>e.jsxs("div",{children:["WPO365 Online Resources •"," ",e.jsx("a",{href:"https://www.wpo365.com/contact/",target:"_blank",children:"Contact"})," ","•"," ",e.jsx("a",{href:"https://www.youtube.com/@wpo365",target:"_blank",children:"Videos"})," ","•"," ",e.jsx("a",{href:"https://docs.wpo365.com/",target:"_blank",children:"Documentation"})," ","•"," ",e.jsx("a",{href:"https://wordpress.org/support/plugin/wpo365-login/reviews",target:"_blank",children:"Review"})," ","•"," ",e.jsx("a",{href:"https://www.wpo365.com/how-to-get-support/",target:"_blank",children:"Support"})," ","•"," ",e.jsx("a",{href:"https://www.wpo365.com/change-log/",target:"_blank",children:"Change log"})," ","•"," ",e.jsx("a",{href:"https://www.wpo365.com/downloads/",target:"_blank",children:"Upgrade"})," ","•"," ",e.jsx("a",{href:"https://www.linkedin.com/company/downloads-by-van-wieren",target:"_blank",children:"Follow us"})]}),re=o=>{const{extensions:s,targets:n,children:t}=o,[i,d]=D.useState(!0),c=D.useMemo(()=>[l.wpo365LoginPlus,l.wpo365Essentials,l.wpo365Mail,l.wpo365RolesAccess,l.wpo365Pro,l.wpo365Integrate,l.wpo365Customers,l.wpo365Scim,l.wpo365Apps].filter(u=>n.indexOf(u)>-1),[]);return s.some(u=>n.indexOf(u)>-1)?e.jsx(e.Fragment,{children:t}):i?e.jsxs("div",{className:j.wpo365WzRowifier,style:{cursor:"pointer"},onClick:()=>d(!1),children:[e.jsx(Ke,{className:j.wpo365WzIconButton,iconProps:{iconName:"Lock"},title:"Locked"})," ",e.jsx("span",{children:e.jsx("em",{children:"Click for details"})})]}):e.jsx(e.Fragment,{children:e.jsxs("span",{children:["Available for:  ",c.filter(u=>u in Np).map(u=>e.jsxs(e.Fragment,{children:[e.jsx("a",{href:Np[u].url,target:"_blank",children:Np[u].name})," "]}))]})})},de=o=>{const{info:s}=o,[n,t]=D.useState(!1),[i,d]=D.useState(!1),c=D.useMemo(()=>Zt(6),[]);return e.jsxs("div",{children:[e.jsx("div",{style:{display:"flex",fontSize:"12px",lineHeight:"30px",height:"30px",zIndex:99},onClick:()=>t(!0),id:c,children:e.jsx(ze,{iconName:"Info",title:"Click for instant help",style:{color:"#0066CC",fontSize:"16px",lineHeight:"30px",height:"30px",width:"30px",margin:"0px 0px 0px 15px",padding:0,cursor:"pointer"}})}),s&&n&&e.jsx(ch,{role:"alertdialog",gapSpace:0,target:`#${c}`,onDismiss:()=>t(!1),setInitialFocus:!0,hidden:!n,children:e.jsxs("div",{style:{display:"flex",flexDirection:"column",flexWrap:"wrap",margin:"5px",paddingTop:"15px"},children:[e.jsxs("div",{style:{flexGrow:1,flexShrink:0,width:"100%",padding:"0.5rem 1rem"},children:[!i&&e.jsx(Hb,{}),e.jsx("iframe",{style:{width:"50vw",height:"50vh"},src:s.readMore.url,onLoad:()=>d(!0)})]}),e.jsx("div",{style:{flexGrow:1,flexShrink:0,width:"100%",padding:"0.5rem 1rem 1rem 1rem"},children:e.jsx("a",{href:s.readMore.url,target:"_blank",children:s.readMore.title})})]})})]})},HA="_wpoMiniCta_83qv1_1",zA="_wpoMiniCta__icon_83qv1_29",UA="_wpoMiniCta__content_83qv1_43",VA="_wpoMiniCta__title_83qv1_46",GA="_wpoMiniCta__desc_83qv1_55",$A="_wpoMiniCta__links_83qv1_65",KA="_wpoMiniCta__link_83qv1_65",qA="_wpoMiniCta__divider_83qv1_83",Ji={wpoMiniCta:HA,wpoMiniCta__icon:zA,wpoMiniCta__content:UA,wpoMiniCta__title:VA,wpoMiniCta__desc:GA,wpoMiniCta__links:$A,wpoMiniCta__link:KA,wpoMiniCta__divider:qA},ou=o=>{const{buttons:s,cols:n=2}=o;return e.jsx("div",{style:{gridTemplateColumns:`repeat(${n}, 1fr)`,display:"grid",gridAutoRows:"1fr",gap:"10px",margin:"16px 0px"},children:s.map(t=>e.jsxs("a",{className:Ji.wpoMiniCta,href:"#","aria-labelledby":"mini-cta-title","aria-describedby":"mini-cta-desc",children:[e.jsx("div",{className:Ji.wpoMiniCta__icon,"aria-hidden":"true",children:e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 100 100",children:[e.jsx("path",{fill:"#c7ede6",d:"M87.2,56.7c1.1-2.2,1.8-4.6,1.8-7.2c0-6.6-4.2-12.3-10-14.5c0,0,0,0,0,0c0-11.6-9.4-21-21-21 c-9.8,0-18,6.7-20.3,15.8c-1.5-0.5-3-0.8-4.7-0.8c-7.7,0-14,5.8-14.9,13.3C12.9,43.4,9,48,9,53.5C9,59.9,14.1,65,20.5,65 c0.2,0,0.4,0,0.5,0c0,0.2,0,0.3,0,0.5C21,76.8,30.2,86,41.5,86c6.4,0,12.2-3,15.9-7.6c2.2,2.2,5.2,3.6,8.6,3.6 c4.7,0,8.7-2.7,10.7-6.5c1.1,0.3,2.2,0.5,3.3,0.5c6.1,0,11-4.9,11-11C91,61.7,89.5,58.7,87.2,56.7z"}),e.jsx("path",{fill:"#fdfcef",d:"M79.9,60.5c0,0,3.6,0,6.1,0s4.5-2,4.5-4.5c0-2.3-1.8-4.2-4.1-4.5c0-0.2,0.1-0.4,0.1-0.5c0-2.5-2-4.5-4.5-4.5 c-1.4,0-2.7,0.7-3.5,1.7c-0.1-2.6-2.3-4.7-5-4.7c-2.8,0-5,2.2-5,5c0,0.4,0.1,0.9,0.2,1.3C68,49,67.1,48.5,66,48.5 c-1.8,0-3.2,1.3-3.5,3.1c-0.2,0-0.4-0.1-0.5-0.1c-2.5,0-4.5,2-4.5,4.5s2,4.5,4.5,4.5s9.5,0,9.5,0h5.4V61h3V60.5z"}),e.jsx("path",{fill:"#472b29",d:"M73.5,43c-3,0-5.5,2.5-5.5,5.5c0,0,0,0,0,0c-0.6-0.4-1.3-0.5-2-0.5c-1.8,0-3.4,1.3-3.9,3c0,0-0.1,0-0.1,0 c-2.8,0-5,2.2-5,5s2.2,5,5,5h14.9c0.3,0,0.5-0.2,0.5-0.5S77.2,60,76.9,60H62c-2.2,0-4-1.8-4-4s1.8-4,4-4c0.1,0,0.2,0,0.3,0l0.1,0 c0,0,0,0,0.1,0c0.2,0,0.5-0.2,0.5-0.4c0.2-1.5,1.5-2.6,3-2.6c0.9,0,1.7,0.4,2.3,1.1c0.1,0.1,0.2,0.2,0.4,0.2c0.1,0,0.2,0,0.2-0.1 c0.2-0.1,0.3-0.3,0.3-0.6c-0.1-0.4-0.2-0.8-0.2-1.2c0-2.5,2-4.5,4.5-4.5c2.4,0,4.3,1.9,4.5,4.3c0,0.2,0.2,0.4,0.3,0.5 c0.1,0,0.1,0,0.2,0c0.2,0,0.3-0.1,0.4-0.2c0.8-1,1.9-1.5,3.1-1.5c2.2,0,4,1.8,4,4c0,0.1,0,0.2,0,0.3l0,0.1c0,0.1,0,0.3,0.1,0.4 s0.2,0.2,0.3,0.2c2.1,0.2,3.6,1.9,3.6,4c0,2.2-1.8,4-4,4h-6.1c-0.3,0-0.5,0.2-0.5,0.5s0.2,0.5,0.5,0.5H86c2.8,0,5-2.2,5-5 c0-2.4-1.7-4.4-4-4.9c0,0,0-0.1,0-0.1c0-2.8-2.2-5-5-5c-1.2,0-2.3,0.4-3.2,1.2C78.2,44.8,76.1,43,73.5,43L73.5,43z"}),e.jsx("path",{fill:"#472b29",d:"M72 50c-1.4 0-2.6 1-2.9 2.3-.4-.2-.8-.3-1.2-.3-1.2 0-2.2.9-2.4 2.1-.2 0-.4-.1-.6-.1-1.5 0-2.8 1.2-2.9 2.7 0 .1.1.3.2.3 0 0 0 0 0 0 .1 0 .2-.1.2-.2.1-1.3 1.2-2.3 2.4-2.3.2 0 .5 0 .7.1 0 0 0 0 .1 0 .1 0 .1 0 .2-.1.1 0 .1-.1.1-.2 0-1 .8-1.9 1.9-1.9.4 0 .9.2 1.2.5 0 0 .1.1.2.1 0 0 .1 0 .1 0 .1 0 .1-.1.2-.2.1-1.3 1.2-2.3 2.5-2.3.2 0 .4 0 .7.1 0 0 0 0 .1 0 .1 0 .2-.1.2-.2 0-.1 0-.3-.2-.3C72.5 50 72.3 50 72 50L72 50zM85.9 51.5c-1.3 0-2.5.9-2.9 2.2 0 .1 0 .3.2.3 0 0 0 0 .1 0 .1 0 .2-.1.2-.2.3-1.1 1.3-1.8 2.4-1.8.1 0 .2 0 .3 0 0 0 0 0 0 0 .1 0 .2-.1.2-.2 0-.1-.1-.3-.2-.3C86.2 51.5 86 51.5 85.9 51.5L85.9 51.5z"}),e.jsx("path",{fill:"#fff",d:"M15.4 51H5.5C5.2 51 5 50.8 5 50.5S5.2 50 5.5 50h9.9c.3 0 .5.2.5.5S15.7 51 15.4 51zM18.5 51h-1c-.3 0-.5-.2-.5-.5s.2-.5.5-.5h1c.3 0 .5.2.5.5S18.8 51 18.5 51zM23.5 53h-9c-.3 0-.5-.2-.5-.5s.2-.5.5-.5h9c.3 0 .5.2.5.5S23.8 53 23.5 53zM12.5 53h-1c-.3 0-.5-.2-.5-.5s.2-.5.5-.5h1c.3 0 .5.2.5.5S12.8 53 12.5 53zM9.5 53h-2C7.2 53 7 52.8 7 52.5S7.2 52 7.5 52h2c.3 0 .5.2.5.5S9.8 53 9.5 53zM15.5 55h-2c-.3 0-.5-.2-.5-.5s.2-.5.5-.5h2c.3 0 .5.2.5.5S15.8 55 15.5 55zM18.5 46c-.2 0-.8 0-1 0-.3 0-.5.2-.5.5s.2.5.5.5c.2 0 .8 0 1 0 .3 0 .5-.2.5-.5S18.8 46 18.5 46zM18.5 48c-.2 0-4.8 0-5 0-.3 0-.5.2-.5.5s.2.5.5.5c.2 0 4.8 0 5 0 .3 0 .5-.2.5-.5S18.8 48 18.5 48zM23.5 50c-.2 0-2.8 0-3 0-.3 0-.5.2-.5.5s.2.5.5.5c.2 0 2.8 0 3 0 .3 0 .5-.2.5-.5S23.8 50 23.5 50z"}),e.jsx("g",{children:e.jsx("path",{fill:"#fff",d:"M72.5 24h-10c-.3 0-.5-.2-.5-.5s.2-.5.5-.5h10c.3 0 .5.2.5.5S72.8 24 72.5 24zM76.5 24h-2c-.3 0-.5-.2-.5-.5s.2-.5.5-.5h2c.3 0 .5.2.5.5S76.8 24 76.5 24zM81.5 26h-10c-.3 0-.5-.2-.5-.5s.2-.5.5-.5h10c.3 0 .5.2.5.5S81.8 26 81.5 26zM69.5 26h-1c-.3 0-.5-.2-.5-.5s.2-.5.5-.5h1c.3 0 .5.2.5.5S69.8 26 69.5 26zM66.4 26h-1.9c-.3 0-.5-.2-.5-.5s.2-.5.5-.5h1.9c.3 0 .5.2.5.5S66.7 26 66.4 26zM75.5 22h-5c-.3 0-.5-.2-.5-.5s.2-.5.5-.5h5c.3 0 .5.2.5.5S75.8 22 75.5 22zM72.5 28h-2c-.3 0-.5-.2-.5-.5s.2-.5.5-.5h2c.3 0 .5.2.5.5S72.8 28 72.5 28z"})}),e.jsxs("g",{children:[e.jsx("path",{fill:"#78a2d2",d:"M37,71.3c-4,0-7.3-3.3-7.3-7.3V36c0-4,3.3-7.3,7.3-7.3h28c4,0,7.3,3.3,7.3,7.3v28c0,4-3.3,7.3-7.3,7.3H37z"}),e.jsx("path",{fill:"#472b29",d:"M65,29.4c3.6,0,6.6,3,6.6,6.6v28c0,3.6-3,6.6-6.6,6.6H37c-3.6,0-6.6-3-6.6-6.6V36c0-3.6,3-6.6,6.6-6.6H65 M65,28H37c-4.4,0-8,3.6-8,8v28c0,4.4,3.6,8,8,8h28c4.4,0,8-3.6,8-8V36C73,31.6,69.4,28,65,28L65,28z"})]}),e.jsx("g",{children:e.jsx("path",{fill:"#472b29",d:"M68.4,47.5c-0.3,0-0.5-0.2-0.5-0.5v-3.7c0-0.3,0.2-0.5,0.5-0.5s0.5,0.2,0.5,0.5V47 C68.9,47.3,68.7,47.5,68.4,47.5z"})}),e.jsx("g",{children:e.jsx("path",{fill:"#472b29",d:"M68.5,41.1c-0.3,0-0.5-0.2-0.5-0.5v-1.9c0-0.3,0.2-0.5,0.5-0.5s0.5,0.2,0.5,0.5v1.9 C69,40.8,68.8,41.1,68.5,41.1z"})}),e.jsx("g",{children:e.jsx("path",{fill:"#472b29",d:"M64.3,67.9H37.8c-2.6,0-4.7-2.1-4.7-4.7V36.7c0-2.6,2.1-4.7,4.7-4.7h24c0.3,0,0.5,0.2,0.5,0.5S62,33,61.8,33 h-24c-2.1,0-3.7,1.7-3.7,3.7v26.4c0,2.1,1.7,3.7,3.7,3.7h26.4c2.1,0,3.7-1.7,3.7-3.7V49.6c0-0.3,0.2-0.5,0.5-0.5s0.5,0.2,0.5,0.5 v13.6C69,65.8,66.9,67.9,64.3,67.9z"})}),e.jsxs("g",{children:[e.jsx("path",{fill:"#fdfcee",d:"M53.2,58.3c0,0.9,0.9,1.4,2.9,1.4v1.8H45.9v-1.8c1.9,0,2.8-0.5,2.8-1.4v-9.4c0-0.9-0.9-1.4-2.8-1.4v-1.8h7.3 C53.2,45.8,53.2,58.3,53.2,58.3z M53.6,40.6c0,0.7-0.3,1.3-0.8,1.9c-0.5,0.5-1.2,0.8-2,0.8c-0.4,0-0.8-0.1-1.1-0.2 c-0.3-0.1-0.6-0.3-0.9-0.6c-0.3-0.2-0.5-0.5-0.6-0.8c-0.2-0.3-0.2-0.7-0.2-1c0-0.7,0.3-1.4,0.8-1.9c0.6-0.5,1.2-0.8,2-0.8 c0.8,0,1.4,0.3,2,0.8C53.4,39.2,53.6,39.8,53.6,40.6z"}),e.jsx("path",{fill:"#472b29",d:"M56.6,62H45.4v-2.8h0.5c1.1,0,2.3-0.2,2.3-0.9v-9.4c0-0.6-0.8-0.9-2.3-0.9h-0.5v-2.8h8.3l0,13.1 c0,0.2,0,0.3,0.1,0.4c0.2,0.2,0.7,0.5,2.2,0.5h0.5V62z M46.4,61h9.2v-0.8c-1.2-0.1-2-0.3-2.5-0.8c-0.3-0.3-0.4-0.7-0.4-1.1V46.3 h-6.3V47c1.9,0.1,2.8,0.7,2.8,1.9v9.4c0,1.2-1,1.8-2.8,1.9V61z M50.8,43.7c-0.5,0-0.9-0.1-1.3-0.3c-0.4-0.2-0.7-0.4-1-0.7 c-0.3-0.3-0.5-0.6-0.7-1c-0.2-0.4-0.3-0.8-0.3-1.3c0-0.9,0.3-1.6,1-2.2c0.7-0.6,1.4-0.9,2.3-0.9c0.9,0,1.7,0.3,2.3,0.9 c0.7,0.6,1,1.4,1,2.2c0,0.9-0.3,1.6-1,2.2C52.5,43.4,51.8,43.7,50.8,43.7z M50.8,38.4c-0.6,0-1.2,0.2-1.7,0.6 c-0.5,0.4-0.7,0.9-0.7,1.5c0,0.3,0.1,0.6,0.2,0.8c0.1,0.3,0.3,0.5,0.5,0.7c0.2,0.2,0.5,0.4,0.7,0.5c0.3,0.1,0.6,0.2,0.9,0.2 c0.7,0,1.2-0.2,1.6-0.6c0.4-0.4,0.7-0.9,0.7-1.5c0-0.6-0.2-1.1-0.7-1.5C52,38.6,51.5,38.4,50.8,38.4z"})]}),e.jsxs("g",{children:[e.jsx("path",{fill:"#fdfcef",d:"M36.5,73.5c0,0,1.6,0,3.5,0s3.5-1.6,3.5-3.5c0-1.8-1.3-3.2-3.1-3.5c0-0.2,0.1-0.4,0.1-0.5 c0-1.9-1.6-3.5-3.5-3.5c-1,0-2,0.5-2.6,1.2c-0.4-1.8-2-3.2-3.9-3.2c-2.2,0-4,1.8-4,4c0,0.2,0,0.4,0.1,0.6c-0.4-0.3-1-0.6-1.6-0.6 c-1.2,0-2.2,0.9-2.5,2.1c-0.2,0-0.4-0.1-0.5-0.1c-1.9,0-3.5,1.6-3.5,3.5s1.6,3.5,3.5,3.5s7.5,0,7.5,0V74h7V73.5z"}),e.jsx("path",{fill:"#472b29",d:"M38.3 69c-.1 0-.3-.1-.3-.3 0-1.2 1-2.2 2.2-2.2 0 0 .7 0 1.2.1.1 0 .2.2.2.3 0 .1-.2.2-.3.2C40.9 67 40.2 67 40.2 67c-.9 0-1.7.8-1.7 1.7C38.5 68.9 38.4 69 38.3 69zM31.5 73A.5.5 0 1 0 31.5 74 .5.5 0 1 0 31.5 73z"}),e.jsx("path",{fill:"#472b29",d:"M40,74h-3.5c-0.3,0-0.5-0.2-0.5-0.5s0.2-0.5,0.5-0.5H40c1.7,0,3-1.3,3-3c0-1.5-1.1-2.8-2.6-3 c-0.1,0-0.3-0.1-0.3-0.2s-0.1-0.2-0.1-0.4c0-0.2,0-0.3,0-0.5c0-1.7-1.3-3-3-3c-0.8,0-1.6,0.4-2.2,1c-0.1,0.1-0.3,0.2-0.5,0.1 c-0.2,0-0.3-0.2-0.4-0.4c-0.3-1.6-1.8-2.8-3.4-2.8c-1.9,0-3.5,1.6-3.5,3.5c0,0.1,0,0.3,0,0.4c0,0.2-0.1,0.4-0.2,0.5 s-0.4,0.1-0.6,0C25.9,65.2,25.4,65,25,65c-1,0-1.8,0.7-2,1.6c0,0.3-0.3,0.4-0.6,0.4c-0.2,0-0.3,0-0.5,0c-1.7,0-3,1.3-3,3 s1.3,3,3,3h7.5c0.3,0,0.5,0.2,0.5,0.5S29.8,74,29.5,74H22c-2.2,0-4-1.8-4-4s1.8-4,4-4c0.1,0,0.1,0,0.2,0c0.4-1.2,1.5-2,2.8-2 c0.3,0,0.7,0.1,1,0.2c0.2-2.3,2.1-4.2,4.5-4.2c1.8,0,3.5,1.1,4.2,2.8c0.7-0.5,1.5-0.8,2.3-0.8c2.2,0,4,1.8,4,4c0,0,0,0.1,0,0.1 c1.7,0.4,3,2,3,3.9C44,72.2,42.2,74,40,74z"}),e.jsx("path",{fill:"#472b29",d:"M34.5,73c-0.2,0-0.8,0-1,0c-0.3,0-0.5,0.2-0.5,0.5s0.2,0.5,0.5,0.5c0.2,0,0.8,0,1,0c0.3,0,0.5-0.2,0.5-0.5 S34.8,73,34.5,73z"})]})]})}),e.jsxs(U,{horizontalAlign:"start",tokens:{childrenGap:10},className:Ji.wpoMiniCta__content,children:[e.jsx("div",{id:"mini-cta-title",className:Ji.wpoMiniCta__title,children:t.title}),e.jsx("div",{id:"mini-cta-desc",className:Ji.wpoMiniCta__desc,children:t.callToAction}),e.jsxs("div",{className:Ji.wpoMiniCta__links,"aria-label":"Related resources",children:[t.info&&e.jsx("a",{className:Ji.wpoMiniCta__link,href:t.info,target:"_blank",children:"More info"}),t.info&&t.tutorial&&e.jsx("span",{className:Ji.wpoMiniCta__divider,"aria-hidden":"true",children:"•"}),t.tutorial&&e.jsx("a",{className:Ji.wpoMiniCta__link,href:t.tutorial,target:"_blank",children:"Tutorial"})]})]})]}))})},mx={maxWidth:"400px",color:"#cc0000"},JA={padding:"0px 10px",background:"#c8c6c4",borderRadius:"2px"},ZA=o=>{const{env:s,env:{props:{extensions:n,availablePostTypes:t,wpConfigAad:i,wpConfigMultiple:d}},settings:c,settings:{hidePremiumOptions:u},updateSettings:h}=D.useContext(Ye);D.useMemo(()=>Object.keys(Xr(t,[])),[]);const[g]=D.useState(s.props.addOns&&Object.keys(s.props.addOns).length>0),w=G=>({addCreateAccountPrompt:G.addCreateAccountPrompt,addSelectAccountPrompt:G.addSelectAccountPrompt,applicationId:G.applicationId,applicationSecret:G.applicationSecret,appOnlyApplicationId:G.appOnlyApplicationId,appOnlyApplicationSecret:G.appOnlyApplicationSecret,authScenario:G.authScenario,b2cAllowMultiplePolicies:G.b2cAllowMultiplePolicies,b2cCustomDomain:G.b2cCustomDomain,b2cDomainName:G.b2cDomainName,b2cEnableSignup:G.b2cEnableSignup,b2cPolicyName:G.b2cPolicyName,buttonConfig:G.buttonConfig,buttonLabel:G.signInWithMicrosoft,cacheKey:Zt(6),directoryId:G.tenantId,domainHint:G.domainHint,exitOnAudienceError:G.exitOnAudienceError,extraUserFieldsSource:G.extraUserFieldsSource,mailRedirectUrl:G.mailRedirectUrl,mailTenantId:G.mailTenantId,mailApplicationId:G.mailApplicationId,mailApplicationSecret:G.mailApplicationSecret,multiTenanted:G.multiTenanted,multiTenantedApiPermissions:G.multiTenantedApiPermissions,noSso:G.noSso,oidcFlow:G.oidcFlow,oidcResponseMode:G.oidcResponseMode,redirectUrl:G.redirectUrl,redirectUrlStrict:G.redirectUrlStrict,rememberUser:G.rememberUser,samlBaseUrl:G.samlBaseUrl,samlClaimMappings:G.samlClaimMappings,samlEnableRequestedAuthnContext:G.samlEnableRequestedAuthnContext,samlForceAuthn:G.samlForceAuthn,samlIdpEntityId:G.samlIdpEntityId,samlIdpMetaDataUrl:G.samlIdpMetaDataUrl,samlIdpSlsBinding:G.samlIdpSlsBinding,samlIdpSlsUrl:G.samlIdpSlsUrl,samlIdpSsosBinding:G.samlIdpSsosBinding,samlIdpSsosUrl:G.samlIdpSsosUrl,samlSpAcsBinding:G.samlSpAcsBinding,samlSpAcsUrl:G.samlSpAcsUrl,samlSpEntityId:G.samlSpEntityId,samlSpSlsBinding:G.samlSpSlsBinding,samlSpSlsUrl:G.samlSpSlsUrl,samlStrict:G.samlStrict,samlX509Cert:G.samlX509Cert,sessionDuration:G.sessionDuration,tld:G.tld,skipApiBasicAuthRequest:G.skipApiBasicAuthRequest,skipIdTokenVerification:G.skipIdTokenVerification,useAppOnlyToken:G.useAppOnlyToken,useB2c:G.useB2c,useCiam:G.useCiam,useGcc:G.useGcc,userMatchOrder:G.userMatchOrder,useSaml:G.useSaml,useSingleAppRegistration:G.useSingleAppRegistration,useTeams:G.useTeams,useV2:G.useV2,useWpConfig:G.useWpConfig,wpRestAadApplicationId:G.wpRestAadApplicationId,wpRestAadApplicationIdUri:G.wpRestAadApplicationIdUri,wpToAadCreateUsers:G.wpToAadCreateUsers,wpToAadIdentityProvider:G.wpToAadIdentityProvider,wpToAadUserAttributeMappings:G.wpToAadUserAttributeMappings});D.useEffect(()=>{x(w(c))},[c]);const[m,x]=D.useState(w(c)),[_,v]=D.useState(null),[b,C]=D.useState([]),[k,L]=D.useState(we.initial),[T,N]=D.useState(Ys.initial),[Y,A]=D.useState(null),[I,R]=D.useState(!!c.b2cCustomDomain),[H,W]=D.useState({status:"initial"}),[K,Z]=D.useState({status:"initial"}),Q=D.useRef(),[B,P]=D.useState(null),[X,$]=D.useState("");D.useEffect(()=>{Q.current&&B&&B.dataUrl&&(Q.current.click(),B.dataUrl=null)},[B]);const ie=(G,ne,Ue,Ge)=>{if(G){ne(!1);return}v({title:Ue,subText:Ge,onDismiss:()=>v(null),onCancel:()=>v(null),onConfirm:()=>{v(null),ne(!0)}})},le=(G,ne,Ue)=>{v({title:ne,subText:Ue,onDismiss:()=>v(null),onCancel:()=>v(null),onConfirm:()=>{v(null),G()}})},V=async()=>{C([]),L(we.saving);const G={...c};G.addCreateAccountPrompt=m.addCreateAccountPrompt,G.addSelectAccountPrompt=m.addSelectAccountPrompt,G.applicationId=m.applicationId,G.applicationSecret=m.applicationSecret,G.appOnlyApplicationId=m.appOnlyApplicationId,G.appOnlyApplicationSecret=m.appOnlyApplicationSecret,G.b2cAllowMultiplePolicies=m.b2cAllowMultiplePolicies,G.b2cCustomDomain=m.b2cCustomDomain,G.b2cDomainName=m.b2cDomainName,G.b2cEnableSignup=m.b2cEnableSignup,G.b2cPolicyName=m.b2cPolicyName,G.buttonConfig=m.buttonConfig,G.domainHint=m.domainHint,G.exitOnAudienceError=m.exitOnAudienceError,G.extraUserFieldsSource=m.extraUserFieldsSource,G.mailApplicationId=m.mailApplicationId,G.mailApplicationSecret=m.mailApplicationSecret,G.mailRedirectUrl=m.mailRedirectUrl,G.mailTenantId=m.mailTenantId,G.multiTenanted=m.multiTenanted,G.multiTenantedApiPermissions=m.multiTenantedApiPermissions,G.noSso=m.noSso,G.oidcFlow=m.oidcFlow,G.oidcResponseMode=m.oidcResponseMode,G.redirectUrl=m.redirectUrl,G.redirectUrlStrict=m.redirectUrlStrict,G.rememberUser=m.rememberUser,G.samlBaseUrl=m.samlBaseUrl,G.samlClaimMappings=m.samlClaimMappings,G.samlEnableRequestedAuthnContext=m.samlEnableRequestedAuthnContext,G.samlForceAuthn=m.samlForceAuthn,G.samlIdpEntityId=m.samlIdpEntityId,G.samlIdpMetaDataUrl=m.samlIdpMetaDataUrl,G.samlIdpSlsBinding=m.samlIdpSlsBinding,G.samlIdpSlsUrl=m.samlIdpSlsUrl,G.samlIdpSsosBinding=m.samlIdpSsosBinding,G.samlIdpSsosUrl=m.samlIdpSsosUrl,G.samlSpAcsBinding=m.samlSpAcsBinding,G.samlSpAcsUrl=m.samlSpAcsUrl,G.samlSpEntityId=m.samlSpEntityId,G.samlSpSlsBinding=m.samlSpSlsBinding,G.samlSpSlsUrl=m.samlSpSlsUrl,G.samlStrict=m.samlStrict,G.samlX509Cert=m.samlX509Cert,G.sessionDuration=m.sessionDuration,G.signInWithMicrosoft=m.buttonLabel,G.skipApiBasicAuthRequest=m.skipApiBasicAuthRequest,G.skipIdTokenVerification=m.skipIdTokenVerification,G.tenantId=m.directoryId,G.tld=m.tld,G.useAppOnlyToken=m.useAppOnlyToken,G.useB2c=m.useB2c,G.useCiam=m.useCiam,G.useGcc=m.useGcc,G.userMatchOrder=m.userMatchOrder,G.useSaml=m.useSaml,G.useSingleAppRegistration=m.useSingleAppRegistration,G.useTeams=m.useTeams,G.useV2=m.useV2,G.useWpConfig=m.useWpConfig,G.wpToAadCreateUsers=m.wpToAadCreateUsers,G.wpToAadIdentityProvider=m.wpToAadIdentityProvider,G.wpToAadUserAttributeMappings=m.wpToAadUserAttributeMappings;try{const ne=await Fe.updateSettings(s,G);if(ne.success){const Ue=await Fe.getSettings(s);h(Ue),C([]),N(Ys.initial),L(we.success)}else C([...b,new Lr("saveConfiguration",ne.message,2e3)]),Ys.initial,L(we.error)}catch{C([...b,new Lr("saveConfiguration","Unknown error occured whilst updating settings [check F12 > console for technical details]",2e3)]),L(we.error)}},z=async()=>{m.samlIdpMetaDataUrl?W({status:"importing"}):W({status:"error",message:"App Federation Metadata URL not found"}),await V();const G=new FormData;G.append("action","wpo365_import_idp_meta"),G.append("nonce",s.nonce),G.append("ina",window.wpo365.wizard.props.ina);let ne;try{ne=await Ee.post(s.wpAjaxAdminUrl,G)}catch(Ue){W({status:"error",message:Ue.message});return}if(ne.status>=200&&ne.status<300&&ne.data&&ne.data.status){if(ne.data.status=="OK"){h(JSON.parse(ne.data.result)),W({status:"initial"});return}W({status:"error",message:ne.data.message});return}W({status:"error",message:`Error occured (HTTP status ${ne.status})`})},J=async()=>{Z({status:"exporting"}),await V();const G=new FormData;G.append("action","wpo365_export_sp_meta"),G.append("nonce",s.nonce),G.append("ina",window.wpo365.wizard.props.ina);let ne;try{ne=await Ee.post(s.wpAjaxAdminUrl,G)}catch(Ue){Z({status:"error",message:Ue.message});return}if(ne.status>=200&&ne.status<300&&ne.data&&ne.data.status){if(ne.data.status=="OK"){"xml"in ne.data.result&&P({dataUrl:`data:application/xml;charset=utf-8,${encodeURIComponent(atob(ne.data.result.xml))}`,fileName:"saml-2-0-service-provider.xml"}),"settings"in ne.data.result&&h(JSON.parse(ne.data.result.settings)),Z({status:"initial"});return}Z({status:"error",message:ne.data.message});return}Z({status:"error",message:`Error occured (HTTP status ${ne.status})`})},ee=(G,ne)=>{const Ue=ne?"<p>You are enabling Microsoft based single sign-on and can now continue to configure OpenID Connect, SAML 2.0 or AAD B2C based SSO.</p>":`<p>You have chosen to disable Microsoft based single sign-on. You can still configure and use other features of the WPO365 plugin e.g.
         <ul style="list-style: intial; padding: 0px 0px 0px 20px">
          <li>Sending email using Microsoft Graph</li>
          <li>Synchronizing users from Entra ID to WordPress using <em>application-level</em> permissions</li>
          <li>Embedding Power BI content when the <em>application owns the data</em></li>
          <li>Embedding a SharePoint Library using <em>application-level</em> permissions</li>
         </ul>
         </p>
         <p><strong>Important</strong> <em>Your exising WPO365 configuration will be deleted</em></p>
         `;ie(m.noSso,async Ge=>{x(Ge?{...m,applicationId:"",applicationSecret:"",authScenario:Gr.internet,b2cAllowMultiplePolicies:!1,b2cCustomDomain:"",b2cDomainName:"",b2cEnableSignup:!1,b2cPolicyName:"",domainHint:"",multiTenanted:!1,multiTenantedApiPermissions:[],noSso:!0,redirectUrl:"",rememberUser:!1,samlBaseUrl:"",samlClaimMappings:[],samlForceAuthn:!1,samlIdpEntityId:"",samlIdpSlsBinding:"",samlIdpSlsUrl:"",samlIdpSsosBinding:"",samlIdpSsosUrl:"",samlSpAcsBinding:"",useAppOnlyToken:!1,useB2c:!1,useSaml:!1,useCiam:!1,useSingleAppRegistration:!1,wpToAadCreateUsers:!1,wpToAadUserAttributeMappings:[],wpToAadIdentityProvider:void 0}:{...m,noSso:!1,redirectUrl:s.props.siteUrl.slice(-1)!="/"?s.props.siteUrl+"/":s.props.siteUrl}),A("noSso")},"Confirm",Ue)},me=async()=>{const G=new FormData;G.append("action","wpo365_block_direct_media_access"),G.append("nonce",s.nonce),G.append("ina",window.wpo365.wizard.props.ina);const ne=await Ee.post(s.wpAjaxAdminUrl,G);if(ne.status<200&&ne.status>299)throw ne.data?.message?new Error(ne.data.message):ne.statusText?new Error(ne.statusText):new Error("Unknown error occurred whilst trying to update your site's .htaccess. Please check the online documentation for instructions to update it manually instead.");if(ne.data?.status==="NOK")throw new Error(ne.data.message)};D.useEffect(()=>{Y=="noSso"&&V().then(()=>{A(null)}),Y=="obfuscate"&&V().then(()=>{A(null)}),Y==="blockDirectMediaAccess"&&($(""),V().then(()=>{me().then(G=>A(null)).catch(G=>{$(G.message),Fe.getSettings(s).then(ne=>{h(ne),A(null)}).catch(ne=>{A(null)})})}))},[Y]);const te=D.useMemo(()=>{const G=["oid","upn","preferred_username","email","login"];return c.userNamePreference=="custom"&&c.userNameClaim&&G.push("custom"),G},[]);return e.jsxs("div",{className:j.wpo365WzMain,children:[e.jsxs("table",{className:j.wpo365WzTable,children:[e.jsxs("colgroup",{children:[e.jsx("col",{width:"50%"}),e.jsx("col",{width:"50%"})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsxs("h3",{className:j.wpo365WzSectionTitle,children:[e.jsx("span",{style:{color:"#CE5708"},children:"Getting started"})," with Single Sign-On"]})})}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx(ou,{buttons:[{callToAction:"Configure OpenID Connect based SSO",info:"https://www.wpo365.com/feature/entra-id-based-single-sign-on-for-wordpress/",title:"OpenID Connect",tutorial:"https://tutorials.wpo365.com/courses/single-sign-on-openid-connect/"},{callToAction:"Configure SAML 2.0 based SSO",info:"https://www.wpo365.com/feature/entra-id-based-single-sign-on-for-wordpress/",title:"SAML 2.0",tutorial:"https://tutorials.wpo365.com/courses/single-sign-on-saml-2-0/"},{callToAction:"Configure Azure AD B2C SSO",info:"https://www.wpo365.com/feature/integrate-wordpress-with-azure-ad-b2c/",title:"AAD B2C",tutorial:"https://docs.wpo365.com/article/130-azure-ad-b2c-based-single-sign-on-for-wordpress"},{callToAction:"Configure Entra Ext. ID based SSO",info:"https://www.wpo365.com/feature/integrate-wordpress-with-entra-external-id/",title:"Entra Ext. ID",tutorial:"https://docs.wpo365.com/article/192-entra-external-id-azure-ad-for-customers-based-single-sign-on-for-wordpress"}]})})}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsxs("strong",{children:["Single Sign-on is ",m.noSso?"disabled":"enabled"]})})}),e.jsx("td",{children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",style:{height:"30px"},children:[e.jsx(Mn,{styles:{root:{marginBottom:"0px",marginRight:"10px"}},checked:!m.noSso,onChange:ee}),Y=="noSso"&&e.jsx(Oe,{size:Te.small})]})})]}),!m.noSso&&e.jsxs(e.Fragment,{children:[e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Microsoft Entra ID"})})}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Select Identity Provider (IdP)"}),e.jsx(de,{info:{title:"Select Identity Provider IdP",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/158-select-identity-provider-idp"}}})]})}),e.jsx("td",{children:e.jsx(qe,{onChange:(G,ne)=>{ne.key=="aadB2c"?ie(m.useB2c,()=>x({...m,applicationId:"",applicationSecret:"",appOnlyApplicationId:"",appOnlyApplicationSecret:"",b2cAllowMultiplePolicies:!1,b2cCustomDomain:"",b2cDomainName:"",b2cEnableSignup:!1,b2cPolicyName:"",directoryId:"",domainHint:"",extraUserFieldsSource:Kr.idToken,multiTenanted:!1,multiTenantedApiPermissions:[],oidcFlow:kr.code,tld:".com",useAppOnlyToken:!1,useB2c:!0,useCiam:!1,useGcc:!1,useSaml:!1,useSingleAppRegistration:!1,wpToAadCreateUsers:!1,wpToAadIdentityProvider:void 0,wpToAadUserAttributeMappings:[]}),he.titleUseB2c,he.subTextUseB2c):ne.key=="aadCiam"?ie(m.useCiam,()=>x({...m,applicationId:"",applicationSecret:"",appOnlyApplicationId:"",appOnlyApplicationSecret:"",b2cAllowMultiplePolicies:!1,b2cCustomDomain:"",b2cDomainName:"",b2cEnableSignup:!1,b2cPolicyName:"",directoryId:"",domainHint:"",extraUserFieldsSource:Kr.idToken,multiTenanted:!1,multiTenantedApiPermissions:[],oidcFlow:kr.code,tld:".com",useAppOnlyToken:!1,useB2c:!1,useCiam:!0,useGcc:!1,useSingleAppRegistration:!1,wpToAadCreateUsers:!1,wpToAadIdentityProvider:void 0,wpToAadUserAttributeMappings:[]}),he.titleUseB2c,he.subTextUseB2c):ne.key=="gcc"?ie(!1,()=>x({...m,applicationId:"",applicationSecret:"",appOnlyApplicationId:"",appOnlyApplicationSecret:"",b2cAllowMultiplePolicies:!1,b2cCustomDomain:"",b2cDomainName:"",b2cEnableSignup:!1,b2cPolicyName:"",directoryId:"",domainHint:"",extraUserFieldsSource:Kr.idToken,multiTenanted:!1,multiTenantedApiPermissions:[],oidcFlow:kr.code,tld:".us",useAppOnlyToken:!1,useB2c:!1,useCiam:!1,useGcc:!0,useSingleAppRegistration:!1,wpToAadCreateUsers:!1,wpToAadIdentityProvider:void 0,wpToAadUserAttributeMappings:[]}),he.titleUseGcc,he.subTextUseGcc):x({...m,applicationId:"",applicationSecret:"",appOnlyApplicationId:"",appOnlyApplicationSecret:"",b2cAllowMultiplePolicies:!1,b2cCustomDomain:"",b2cDomainName:"",b2cEnableSignup:!1,b2cPolicyName:"",directoryId:"",extraUserFieldsSource:Kr.graph,multiTenanted:!1,multiTenantedApiPermissions:[],oidcFlow:kr.code,tld:".com",useAppOnlyToken:!1,useB2c:!1,useCiam:!1,useGcc:!1,useSaml:!1,useSingleAppRegistration:!1,wpToAadCreateUsers:!1,wpToAadIdentityProvider:void 0,wpToAadUserAttributeMappings:[]})},placeholder:"Select an option",options:[{key:"aad",text:"Entra ID (default)"},{key:"aadB2c",text:"AAD B2C",disabled:m.useSaml},{key:"aadCiam",text:"Entra External ID (AAD for Customers)",disabled:m.useSaml},{key:"gcc",text:"Government - GCC (High)"}],style:{maxWidth:"400px"},selectedKey:m.useB2c?"aadB2c":m.useCiam?"aadCiam":m.useGcc?"gcc":"aad",disabled:i||d})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Select SSO-protocol"}),e.jsx(de,{info:{title:"Select SSO protocol",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/159-select-sso-protocol"}}})]})}),e.jsx("td",{children:e.jsx(qe,{onChange:(G,ne)=>{ne.key=="saml"?ie(m.useSaml,()=>x({...m,useSaml:!0,useB2c:!1,useSingleAppRegistration:!1,extraUserFieldsSource:Kr.samlResponse}),he.titleUseSaml,he.subTextUseSaml):x({...m,useSaml:!1,useB2c:!1,useSingleAppRegistration:!1,extraUserFieldsSource:m.useB2c||m.useCiam?Kr.idToken:Kr.graph})},placeholder:"Select an option",options:[{key:"oidc",text:"OpenID Connect (default)"},{key:"saml",text:"SAML 2.0",disabled:m.useB2c}],style:{maxWidth:"400px"},selectedKey:m.useSaml?"saml":"oidc",disabled:i||d})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Select authentication scenario"})," ",e.jsx(de,{info:{title:"Authentication scenario",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/36-authentication-scenario"}}})]})}),e.jsx("td",{children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx("span",{style:JA,children:c.authScenario[0].toUpperCase()+c.authScenario.slice(1)}),e.jsx(ze,{iconName:"Warning",style:{paddingRight:"5px",color:"#0078D4"}}),e.jsxs("span",{style:{color:"#0078D4"},children:["Can be changed on the ",e.jsx("a",{href:"#rolesAccess",children:"Roles + Access"})," page"]})]})})]}),!m.useSaml&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Select OpenID Connect flow"}),e.jsx(de,{info:{title:"Select OpenID Connect flow",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/156-why-the-authorization-code-user-flow-is-now-recommended"}}})]})}),e.jsx("td",{children:e.jsx(qe,{onChange:(G,ne)=>{ne.key==kr.hybrid?le(()=>x({...m,oidcFlow:kr.hybrid}),"Important","When you select the hybrid flow, you must check the option <em>ID tokens (used for implicit and hybrid flows)</em> for your Entra ID App registration on the <em>Authentication</em> page. Click the <em>i</em> for further details."):le(()=>x({...m,oidcFlow:kr.code}),"Important","When you select the authorization code flow, you must created a <em>Client secret</em> for your Entra ID App registration on the <em>Certificates & secrets</em> page. Click the <em>i</em> for further details.")},placeholder:"Select an option",options:[{key:kr.hybrid,text:"Hybrid flow"},{key:kr.code,text:"Auth.-code flow (recommended)"}],style:{maxWidth:"400px"},selectedKey:m.oidcFlow})})]}),!m.useSaml&&m.oidcFlow==kr.code&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Select OIDC response mode"})," ",e.jsx(de,{info:{title:"Select OIDC response mode",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/208-select-oidc-response-mode"}}})]})}),e.jsx("td",{children:e.jsx(qe,{onChange:(G,ne)=>{x({...m,oidcResponseMode:ne.key})},placeholder:"Select an option",options:[{key:qf.query,text:"query"},{key:qf.form_post,text:"form_post"}],style:{maxWidth:"400px"},selectedKey:m.oidcResponseMode})})]}),(!u||n.some(G=>[l.wpo365Customers,l.wpo365Mail,l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Avatar,l.wpo365CustomFields,l.wpo365LoginPlus,l.wpo365RolesAccess,l.wpo365Scim,l.wpo365Integrate,l.wpo365Pro].some(ne=>ne==G)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Obfuscate Entra ID options"})," ",e.jsx(de,{info:{title:"Use WP-Config(.php) for Entra ID secrets",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/137-use-wp-config-for-aad-secrets"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365Mail,l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Avatar,l.wpo365CustomFields,l.wpo365LoginPlus,l.wpo365RolesAccess,l.wpo365Scim,l.wpo365Integrate,l.wpo365Pro],children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",style:{height:"30px"},children:[e.jsx(Mn,{styles:{root:{marginBottom:"0px",marginRight:"10px"}},checked:m.useWpConfig,disabled:!m.useWpConfig&&!i&&!d,onChange:(G,ne)=>{x({...m,useWpConfig:ne}),A("obfuscate")}}),Y=="obfuscate"&&e.jsx(Oe,{size:Te.small})]})})})]}),m.useSaml&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx("span",{style:{color:"#0078d4"},children:"SAML 2.0 Service Provider Metadata"})}),e.jsx("td",{})]}),e.jsxs("tr",{children:[e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"SP - Base URL"})," ",e.jsx(de,{info:{title:"Generate SAML 2.0 Service Provider metadata",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/100-single-sign-on-with-saml-2-0-for-wordpress"}}})]}),e.jsx("td",{children:e.jsxs(U,{tokens:{childrenGap:10},children:[e.jsxs(U,{horizontal:!0,tokens:{childrenGap:10},children:[e.jsx(fe,{isValid:(G,ne)=>g&&m.useWpConfig?!0:/^(http|https):\/\//i.test(ne),onValid:G=>x({...m,samlBaseUrl:G}),bound:!1,errorMessage:he.errMustBeUrl,value:m.samlBaseUrl,placeholder:he.infoUrl,disabled:i||d}),e.jsx(et,{onClick:()=>J(),styles:{root:{maxHeight:"30px",maxWidth:"90px"}},disabled:i||d,children:"Generate"}),K.status=="exporting"&&e.jsx(Oe,{size:Te.small})]}),K.status=="error"&&e.jsx("p",{style:mx,dangerouslySetInnerHTML:{__html:K.message?K.message:"Unknown error occurred"}})]})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"SP - Entity ID"}),e.jsx("td",{children:e.jsx(fe,{isValid:(G,ne)=>g&&m.useWpConfig?!0:/^(http|https):\/\//i.test(ne),onValid:G=>x({...m,samlSpEntityId:G}),bound:!1,errorMessage:he.errMustBeUrl,value:m.samlSpEntityId,placeholder:he.infoUrl,disabled:i||d})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"SP - Assertion Consumer Service URL"}),e.jsx("td",{children:e.jsx(fe,{isValid:(G,ne)=>g&&m.useWpConfig?!0:/^(http|https):\/\//i.test(ne),onValid:G=>x({...m,samlSpAcsUrl:G}),bound:!1,errorMessage:he.errMustBeUrl,value:m.samlSpAcsUrl,placeholder:he.infoUrl,disabled:i||d})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"SP - Single Logout Service URL"}),e.jsx("td",{children:e.jsx(fe,{isValid:(G,ne)=>g&&m.useWpConfig?!0:/^(http|https):\/\//i.test(ne),onValid:G=>x({...m,samlSpSlsUrl:G}),bound:!1,errorMessage:he.errMustBeUrl,value:m.samlSpSlsUrl,placeholder:he.infoUrl,disabled:i||d})})]}),e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx("span",{style:{color:"#0078d4"},children:"SAML 2.0 IdP Metadata"})}),e.jsx("td",{})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"IdP - App Federation Metadata URL"})," ",e.jsx(de,{info:{title:"Import SAML 2.0 IdP metadata",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/100-single-sign-on-with-saml-2-0-for-wordpress"}}})]})}),e.jsx("td",{children:e.jsxs(U,{tokens:{childrenGap:10},children:[e.jsxs(U,{horizontal:!0,tokens:{childrenGap:10},children:[e.jsx(fe,{isValid:(G,ne)=>g&&m.useWpConfig?!0:!ne||/^(http|https):\/\//i.test(ne),onValid:G=>x({...m,samlIdpMetaDataUrl:G}),errorMessage:"A URL must start with https://",bound:!1,value:m.samlIdpMetaDataUrl,placeholder:"e.g. https://login.microsoftonline.com/<tenant identifier>/federationmetadata/2007-06/federationmetadata.xml?appid=<application identifier>",disabled:i||d}),e.jsx(et,{onClick:()=>z(),styles:{root:{maxHeight:"30px",maxWidth:"90px"}},disabled:!m.samlIdpMetaDataUrl||i||d,children:"Import"}),H.status=="importing"&&e.jsx(Oe,{size:Te.small})]}),H.status=="error"&&e.jsx("p",{style:mx,dangerouslySetInnerHTML:{__html:H.message?H.message:"Unknown error occurred"}})]})})]})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:`${m.useSaml?"IdP - ":""}Directory (tenant) ID`}),e.jsx(de,{info:{title:"Directory ID",readMore:{title:"Read more",url:"https://docs.wpo365.com/article/32-azure-ad-tenant-id"}}})]})}),e.jsx("td",{children:e.jsx(fe,{isValid:(G,ne)=>g&&m.useWpConfig?!0:/^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(ne),onValid:G=>x({...m,directoryId:G}),bound:!1,errorMessage:he.errDirectoryIdMustBeGuid,value:m.directoryId,placeholder:he.infoDirectoryId,disabled:g&&m.useWpConfig||i||d})})]}),!m.useSaml&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Application (Client) ID"})," ",m.applicationId&&(!g||!m.useWpConfig)&&e.jsx("em",{children:e.jsx("a",{href:`https://entra.microsoft.com/#view/Microsoft_AAD_RegisteredApps/ApplicationMenuBlade/~/Overview/appId/${m.applicationId}/isMSAApp/`,target:"_blank",children:"View in Entra Portal"})}),e.jsx(de,{info:{title:"Entra ID Application ID",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/33-azure-ad-application-id"}}})]})}),e.jsx("td",{children:e.jsx(fe,{isValid:(G,ne)=>/^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(ne),onValid:G=>x({...m,applicationId:G}),bound:!1,errorMessage:he.errApplicationIdMustBeGuid,value:m.applicationId,placeholder:he.infoApplicationId,disabled:g&&m.useWpConfig||i||d})})]}),m.oidcFlow==kr.code&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Application (Client) Secret"}),e.jsx(de,{info:{title:"Application (Client) Secret",readMore:{title:"Read more",url:"https://docs.wpo365.com/article/66-application-secret"}}})]})}),e.jsx("td",{children:e.jsx(fe,{isValid:(G,ne)=>ne?!/^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(ne):m.oidcFlow!=kr.code,onValid:G=>{m.useSingleAppRegistration||m.applicationId===c.appOnlyApplicationId?x({...m,applicationSecret:G,appOnlyApplicationSecret:G}):x({...m,applicationSecret:G})},errorMessage:"Please enter a valid secret's Value (not its (GU)ID)",bound:!1,value:m.applicationSecret,disabled:g&&m.useWpConfig||i||d,password:!0})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Skip check for Application (Client) Secret expiration"})," ",e.jsx(de,{info:{title:"Skip check for App registration secret expiration",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/203-skip-check-for-aad-app-registration-secret-expiration"}}})]})}),e.jsx("td",{children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx(ce,{checked:c.skipPasswordCredentialsExpiredCheck,disabled:!0}),e.jsx(ze,{iconName:"Warning",style:{paddingRight:"5px",color:"#0078D4"}}),e.jsxs("span",{style:{color:"#0078D4"},children:["Can be changed on the ",e.jsx("a",{href:"#integration",children:"Integration"})," page"]})]})})]})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Redirect URI"})," ",m.redirectUrl&&(!g||!m.useWpConfig)&&e.jsx("em",{children:e.jsx("a",{href:`https://entra.microsoft.com/#view/Microsoft_AAD_RegisteredApps/ApplicationMenuBlade/~/Authentication/appId/${m.applicationId}/isMSAApp/`,target:"_blank",children:"View in Entra Portal"})}),e.jsx(de,{info:{title:"Redirect URI",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/34-redirect-uri"}}})]})}),e.jsx("td",{children:e.jsx(fe,{isValid:(G,ne)=>g&&m.useWpConfig?!0:m.redirectUrlStrict?/^(http|https):\/\/.*\/{1}$/i.test(ne)&&ne.length>s.props.siteUrl.length+2:/^(http|https):\/\/.*\/{1}$/i.test(ne),onValid:G=>x({...m,redirectUrl:G}),bound:!1,errorMessage:m.redirectUrlStrict?'Redirect URI cannot be equal to the site address when "strict mode" is selected and must start with http(s):// and end with a trailing slash':he.errRedirectUriMustBeUrl,value:m.redirectUrl,placeholder:he.infoRedirectUri,disabled:g&&m.useWpConfig||i||d})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Enable strict mode for Redirect URI"}),e.jsx(de,{info:{title:"Enable strict mode for Redirect URI",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/204-enable-strict-mode-for-redirect-uri"}}})]})}),e.jsx("td",{children:e.jsxs(U,{tokens:{childrenGap:10},children:[e.jsx(ce,{onChange:(G,ne)=>x({...m,redirectUrlStrict:ne}),checked:m.redirectUrlStrict,disabled:d}),m.redirectUrlStrict&&(!/^(http|https):\/\/.*\/{1}$/i.test(m.redirectUrl)||m.redirectUrl.length<=s.props.siteUrl.length+2)&&e.jsx("div",{style:{lineHeight:"30px",color:"#cc0000"},children:'Redirect URI cannot be equal to the site address when "strict mode" is selected and must start with http(s):// and end with a trailing slash'})]})})]}),!m.useSaml&&!m.multiTenanted&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Skip ID token verification"}),e.jsx(de,{info:{title:"Skip ID token verification",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/179-id-token-verification"}}})]})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(G,ne)=>{ne?ie(m.skipIdTokenVerification,()=>x({...m,skipIdTokenVerification:!0}),"Important",'Disabling the ID token check is not recommend. Please make sure that you have read the <a href="https://docs.wpo365.com/article/179-id-token-verification" target="_blank">online documentation</a> and are aware of the severe risks.'):x({...m,skipIdTokenVerification:ne})},checked:m.skipIdTokenVerification})})})]}),(!u||n.some(G=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(ne=>ne==G)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Ignore 3rd party ID tokens"}),e.jsx(de,{info:{title:"Do not process 3rd party ID tokens",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/180-do-not-process-3rd-party-id-tokens"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(G,ne)=>{x(ne?{...m,exitOnAudienceError:ne}:{...m,exitOnAudienceError:ne})},checked:m.exitOnAudienceError})})})})]})]})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Enable silent authentication for Teams"}),e.jsx(de,{info:{title:"Use client-side redirect",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/223-use-client-side-redirect"}}})]})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(G,ne)=>x({...m,useTeams:ne}),checked:m.useTeams})})})]}),(m.useB2c||m.useCiam)&&(!u||n.some(G=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(ne=>ne==G)))&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Use custom domain for AAD B2C / Entra Ext. ID"}),e.jsx(de,{info:{title:"Use custom domain for AAD B2C / Entra Ext. ID",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/167-use-custom-domain-for-b2c-login"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(G,ne)=>R(ne),checked:I,disabled:i||d})})})})]}),I&&e.jsxs("tr",{children:[e.jsx("th",{children:"Custom domain for AAD B2C / Entra Ext. ID"}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx(fe,{isValid:(G,ne)=>!/^((http|https):\/\/)([a-zA-Z0-9@:%._\-\+~#?&\/\$=]*)$/.test(ne),onValid:G=>x({...m,b2cCustomDomain:G}),bound:!1,errorMessage:"Custom domain for for AAD B2C / Entra Ext. ID should not start with https://",value:m.b2cCustomDomain,placeholder:"e.g. login.contoso.com"})})})]})]}),(m.useB2c||m.useCiam)&&e.jsxs("tr",{children:[e.jsx("th",{children:"AAD B2C / Entra Ext. ID domain name"}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx(fe,{isValid:(G,ne)=>g&&m.useWpConfig?!0:/^[^.]+$/i.test(ne),onValid:G=>x({...m,b2cDomainName:G}),bound:!1,errorMessage:he.errMustBeWithoutDots,value:m.b2cDomainName,placeholder:he.infoB2cDomainName,children:e.jsxs("div",{children:[" ",".onmicrosoft.com"]})})})})]}),m.useB2c&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Sign-in B2C policy / user flow name"}),e.jsx(de,{info:{title:"Default B2C policy name",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/169-default-b2c-policy-name"}}})]})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx(fe,{isValid:(G,ne)=>g&&m.useWpConfig?!0:!/^$|\s+/i.test(ne),onValid:G=>x({...m,b2cPolicyName:G}),bound:!1,errorMessage:he.errMustNotBeEmptyOrContainWhitespace,value:m.b2cPolicyName,placeholder:he.infoB2cPolicyName})})})]}),m.useB2c&&(!u||n.some(G=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(ne=>ne==G)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Allow multiple B2C policies"}),e.jsx(de,{info:{title:"Allow multiple B2C policies",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/168-allow-multiple-b2c-policies"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(G,ne)=>x({...m,b2cAllowMultiplePolicies:ne}),checked:m.b2cAllowMultiplePolicies,disabled:d})})})})]}),m.useSaml&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:"IdP - Entity ID"}),e.jsx("td",{children:e.jsx(fe,{isValid:(G,ne)=>g&&m.useWpConfig?!0:/^(http|https):\/\//i.test(ne),onValid:G=>x({...m,samlIdpEntityId:G}),bound:!1,errorMessage:he.errMustBeUrl,value:m.samlIdpEntityId,placeholder:he.infoUrl,disabled:i||d})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"IdP - Single Sign-on Service URL"}),e.jsx("td",{children:e.jsx(fe,{isValid:(G,ne)=>g&&m.useWpConfig?!0:/^(http|https):\/\//i.test(ne),onValid:G=>x({...m,samlIdpSsosUrl:G}),bound:!1,errorMessage:he.errMustBeUrl,value:m.samlIdpSsosUrl,placeholder:he.infoUrl,disabled:i||d})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"IdP - Single Logout Service URL"}),e.jsx("td",{children:e.jsx(fe,{isValid:(G,ne)=>g&&m.useWpConfig?!0:/^(http|https):\/\//i.test(ne),onValid:G=>x({...m,samlIdpSlsUrl:G}),bound:!1,errorMessage:he.errMustBeUrl,value:m.samlIdpSlsUrl,placeholder:he.infoUrl,disabled:i||d})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"IdP - X509 Certificate"}),e.jsx("td",{children:e.jsx("textarea",{className:j.wpo365WzTextArea,defaultValue:m.samlX509Cert,value:m.samlX509Cert,onChange:G=>x({...m,samlX509Cert:G.target.value}),style:{maxWidth:"400px"},disabled:g&&m.useWpConfig||i||d})})]}),e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx("span",{style:{color:"#0078d4"},children:"SSO related options"})}),e.jsx("td",{})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Enable requested authn. context"})," ",e.jsx(de,{info:{title:"Enable requested authn. context",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/206-enable-requested-authn-context"}}})]})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(G,ne)=>x({...m,samlEnableRequestedAuthnContext:ne}),checked:m.samlEnableRequestedAuthnContext})})})]}),(!u||n.some(G=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(ne=>ne==G)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Force re-authentication"})," ",e.jsx(de,{info:{title:"Use SAML 2.0",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/100-configure-single-sign-on-with-saml-2-0"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(G,ne)=>x({...m,samlForceAuthn:ne}),checked:m.samlForceAuthn})})})})]})]}),(!u||n.some(G=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(ne=>ne==G)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Allow users from other tenants"}),e.jsx(de,{info:{title:"Allow users from other tenants",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/50-allow-users-from-other-tenants"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(G,ne)=>{x(ne?{...m,multiTenanted:ne}:{...m,multiTenanted:ne,multiTenantedApiPermissions:[]})},checked:m.multiTenanted,disabled:m.useB2c})})})})]}),!m.useSaml&&m.multiTenanted&&(!u||n.some(G=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(ne=>ne==G)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Multi-tenant API Permissions"}),e.jsx(de,{info:{title:"Multi-tenant API Permissions",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/155-multi-tenant-api-permissions"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsxs("div",{className:j.wpo365WzColumnifier,children:[e.jsx(Ws,{list:m.multiTenantedApiPermissions,onListChanged:G=>x({...m,multiTenantedApiPermissions:G}),placeholder:"e.g. https://graph.microsoft.com/User.Read"}),e.jsxs("span",{className:j.wpo365WzRowifier,style:{color:"#0078D4"},children:[e.jsx(ze,{iconName:"Warning",style:{paddingRight:"5px"}}),e.jsx("em",{children:"openid"}),", ",e.jsx("em",{children:"email"})," and ",e.jsx("em",{children:"profile"})," will be requested by default"]})]})})})]}),!m.useSaml&&!m.useB2c&&!m.useCiam&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Domain hint"})," ",e.jsx("em",{children:e.jsx("a",{href:"https://entra.microsoft.com/#view/Microsoft_AAD_IAM/DomainsManagementMenuBlade/~/CustomDomainNames",target:"_blank",children:"View Custom domain names"})}),e.jsx(de,{info:{title:"Domain hint",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/35-domain-hint"}}})]})}),e.jsx("td",{children:e.jsx(fe,{isValid:(G,ne)=>!/^http/i.test(ne),onValid:G=>x({...m,domainHint:G}),bound:!1,errorMessage:he.errDomainHintCannotStartWith,value:m.domainHint,placeholder:he.infoDomainHint})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Add prompt=select_account parameter"})," ",e.jsx(de,{info:{title:"Add prompt=select_account parameter",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/112-add-prompt-selectaccount-parameter"}}})]})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(G,ne)=>x({...m,addSelectAccountPrompt:ne,addCreateAccountPrompt:ne?!1:m.addCreateAccountPrompt}),checked:m.addSelectAccountPrompt})})})]})]}),(!u||n.some(G=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(ne=>ne==G)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Order for matching users"})," ",e.jsx(de,{info:{title:"Update order for matching users",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/109-update-order-for-matching-users"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsxs("div",{className:j.wpo365WzColumnifier,style:{width:"100%"},children:[e.jsx(fe,{bound:!1,disabled:!0,value:m.userMatchOrder.join(", "),placeholder:he.infoUserMatchOrder}),e.jsx("div",{className:j.wpo365WzColumnifier,children:te.map(G=>e.jsx("div",{style:{paddingTop:"10px"},children:e.jsx(et,{toggle:!0,checked:m.userMatchOrder.indexOf(G)>=0,text:G,iconProps:m.userMatchOrder.indexOf(G)>=0?{iconName:"Delete"}:{iconName:"Add"},onClick:()=>{const ne=m.userMatchOrder.indexOf(G);let Ue=[...m.userMatchOrder];ne>=0?Ue.splice(ne,1):Ue.push(G),x({...m,userMatchOrder:Ue})}})}))})]})})})})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Session duration"})})}),(!u||n.some(G=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(ne=>ne==G)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Remember (WordPress) user"})," ",e.jsx(de,{info:{title:"Remember user",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/45-remember-user"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(G,ne)=>x({...m,rememberUser:ne}),checked:m.rememberUser})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Session Duration (use 0 to disable)"})," ",e.jsx(de,{info:{title:"Duration of a session",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/46-session-duration"}}})]})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx(fe,{isValid:(G,ne)=>/^\d+$/.test(ne),onValid:G=>x({...m,sessionDuration:parseInt(G)}),bound:!1,errorMessage:he.errSessionDurationMustBeNumeric,value:String(m.sessionDuration),placeholder:he.infoSessionDuration})})})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Configuration"})})}),e.jsxs("tr",{children:[e.jsx("th",{}),e.jsx("td",{children:e.jsxs("div",{className:j.wpo365WzColumnifier,children:[e.jsx(dt,{onClick:()=>ie(!1,async()=>{try{await V(),location.hash="selfTest"}catch{C([new Lr("saveConfiguration",he.errAuthenticationTestFailed,2e3)]),N(Ys.error),L(we.error)}},he.titleBeforeSave,m.authScenario==Gr.intranet?he.subTextBeforeSaveIntranet:he.subTextBeforeSaveInternet),iconProps:{iconName:k==we.success?"Like":void 0},style:{minWidth:"400px",maxWidth:"400px",minHeight:"30px",alignSelf:"start"},disabled:b.length>0||k==we.saving,children:"Save configuration"}),e.jsx("div",{className:j.wpo365WzLabelFor,children:yd(b,"saveConfiguration").map(G=>e.jsx("p",{className:j.wpo365WzP,children:G.message}))}),k==we.success?e.jsx("p",{style:{color:"#378805"},children:he.okSettingsUpdated}):null]})})]})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx(Ho,{})})}),_&&e.jsx(Bo,{onCancel:_.onCancel,onConfirm:_.onConfirm,onDismiss:_.onDismiss,title:_.title,subText:_.subText})]}),B&&B.dataUrl&&e.jsx("a",{style:{opacity:0},ref:Q,href:B.dataUrl,download:B.fileName})]})},Qb=o=>o.slice(-1)=="/"?o:`${o}/`;var ow=(o=>(o.delete="delete",o.get="get",o.patch="patch",o.post="post",o.put="put",o))(ow||{});const eS=async o=>{let s=null,n=null,t=!1;try{s=window.wpo365.blocks.nonce,n=window.wpo365.blocks.apiUrl,t=!0}catch(i){const d=`[FetchUtil::fromGraph] Cannot continue because prerequistes nonce and / or apiUrl are undefined [${i.message}]`;throw console.log(d),d}try{const i=await Ee.post(`${Qb(n)}${o.endpoint}`,{query:o.query,scope:o.scope,application:o.application,binary:!!o.binary,data:o.data?o.data:""},{headers:{Accept:"application/json",ContentType:"application/json; odata=verbose","X-WP-Nonce":s}});if(i.status<200||i.status>299)throw`Unexpected: Response from WPO365 Graph API -> ${i.status} [${i.data?JSON.stringify(i.data):"Check WPO365 log for errors"}]`;if(!i.data||typeof i.data!="object")throw"Unexpected: Response from WPO365 Graph API does not has data";return i.data}catch(i){throw i.response&&i.response.data?JSON.stringify(i.response.data):i.message?i.message:i.toString()}},XA=async o=>{let s=null,n=null,t=!1;try{s=window.wpo365.blocks.nonce,n=window.wpo365.blocks.apiUrl,t=!0}catch(i){const d=`[FetchUtil::fromProxy] Cannot continue because prerequistes nonce and / or apiUrl are undefined [${i.message}]`;throw console.log(d),d}try{const i=await Ee.post(`${Qb(n)}${o.endpoint}`,{application:o.application,url:o.url,scope:o.scope,binary:!!o.binary,data:o.data?o.data:"",method:o.method?o.method:ow.get,headers:o.headers?o.headers:{Accept:"application/json",ContentType:"application/json; odata=verbose"}},{headers:{"X-WP-Nonce":s}});if(i.status<200||i.status>299)throw`Unexpected: Response from WPO365 Proxy API -> ${i.status} [${i.data?JSON.stringify(i.data):"Check WPO365 log for errors"}]`;if(!i.data)throw"Unexpected: Response from WPO365 Proxy API does not has data";return typeof i.data!="object"?JSON.parse(i.data):i.data}catch(i){throw i.response&&i.response.data?JSON.stringify(i.response.data):i.message?i.message:i.toString()}},tS=(o,s,n=!1)=>{const t=o.split("/");t.splice(0,4),t[t.length-1]||t.pop();let i="",d="";try{if(t.length>1)i=t.shift(),d=t.join("/");else{const c=t[0].split("?");i=c[0],d=c.length==2?`?${c[1]}`:""}}catch{console.error(`Unexpected: Could not convert URL into IGraphRequest [url -> ${o}]`)}return{endpoint:i,query:d,scope:s,application:n}},mf={minWidth:"400px",minHeight:"100px",padding:"2px",fontSize:"80%"},ff={width:"400px"},fx={search:"Search",hasResults:"Found {0} results for '{1}'",hasNoResults:"No results"},QA=o=>{const{env:s,env:{props:{extensions:n,wpConfigMultiple:t}},settings:i,settings:{hidePremiumOptions:d},updateSettings:c}=D.useContext(Ye),[u,h]=D.useState({additionalInfo:null,addWildcard:!1,autoSearch:!1,cacheKey:Zt(6),dontScroll:!0,emailProperty:"WorkEmail",fixing:null,getUserPhoto:!1,hideContactActionButtons:!0,hideMessageBar:!1,hidePaging:!1,hideSearchBox:!1,imProperty:"UserName",metaHtml:"Modified: __##lastModified##__",minQueryLength:3,mobilePhoneProperty:"MobilePhone",pageSize:10,primaryHtml:"__##Title##__",queryTemplate:"{searchterms}",resultSourceId:"8413cd39-2156-4e00-b54d-11efd9abdb89",resultSourceIdReadOnly:!0,scriptSrc:Ao("wizard.js").replace("wpo365-login/apps/dist/wizard.js",s.props.extensions.some(_=>_==l.wpo365LoginIntranet||_==l.wpo365Intranet5y||_==l.wpo365Apps||_==l.wpo365Integrate)?`wpo365-${s.props.extensions.some(_=>_==l.wpo365LoginIntranet)?"login-intranet":s.props.extensions.some(_=>_==l.wpo365Intranet5y)?"intranet-5y":s.props.extensions.some(_=>_==l.wpo365Integrate)?"integrate":"apps"}/apps/dist/cbs.js`:"wpo365-login/apps/dist/cbsBasic.js"),secondaryHtml:"__##HitHighlightedSummary##__",selectProperties:"",sharePointHome:"",sharePointHomeError:!1,showContactActionButtons:!0,sortList:"Rank:descending",templateUrl:Ao("wizard.js").replace("wpo365-login/apps/dist/wizard.js",s.props.extensions.some(_=>_==l.wpo365LoginIntranet||_==l.wpo365Intranet5y||_==l.wpo365Apps||_==l.wpo365Integrate)?`wpo365-${s.props.extensions.some(_=>_==l.wpo365LoginIntranet)?"login-intranet":s.props.extensions.some(_=>_==l.wpo365Intranet5y)?"intranet-5y":s.props.extensions.some(_=>_==l.wpo365Integrate)?"integrate":"apps"}/apps/dist/templates/cbs.intranet.list.template.html`:""),tertiaryHtml:"",translations:fx,uri:"?queryText='{searchterms}'&clienttype='ContentSearchRegular'&properties='ClientFunction:AllResults,EnableDynamicGroups:true'&selectProperties='HitHighlightedSummary,Author,Title,Description,Path,ContentClass,FileExtension,LastModifiedTime,IsDocument,ContentTypeId,ServerRedirectedURL'&sortlist='rank:descending'",useTeams:!0,useTemplate:s.props.extensions.some(_=>_==l.wpo365LoginIntranet||_==l.wpo365Intranet5y||_==l.wpo365Apps||_==l.wpo365Integrate),useV2:!0,useWizard:!0,workPhoneProperty:"WorkPhone",copyButtonCaption:he.capCopyShortcodeButton});let g=D.useRef(null);D.useEffect(()=>{let _=null,v=null;try{eS(tS("https://graph.microsoft.com/v1.0/sites/root","https://graph.microsoft.com/Sites.Read.All")).then(b=>{v=b,b.webUrl&&h({...u,sharePointHome:b.webUrl,sharePointHomeError:!1})}).catch(b=>{_=b});return}catch(b){_=b}console.error(_),console.error(v),h({...u,sharePointHome:"",sharePointHomeError:!0})},[]);const w=_=>{var v=fx;const b=()=>{h({...u,additionalInfo:null})};try{v=JSON.parse(_)}catch{h({...u,additionalInfo:{title:"Error",subText:"Your translations are not properly formatted as JSON and your changes have been reverted.",onDismiss:()=>b,onConfirm:()=>b}}),g.current.value=JSON.stringify(v,null,2),g.current.style.backgroundColor="initial",g.current.focus()}h({...u,translations:v})},m=async _=>{await Fe.updateSettings(s,_);const v=await Fe.getSettings(s);c(v),h({...u,cacheKey:Zt(6)})},x=()=>{document.getElementsByClassName("pintraSpoShortCode")[0].select(),document.execCommand("copy"),h({...u,copyButtonCaption:he.capCopyShortcodeButtonSuccess}),setTimeout(()=>h({...u,copyButtonCaption:he.capCopyShortcodeButton}),3e3)};return e.jsx(e.Fragment,{children:e.jsx("div",{className:j.wpo365WzMain,children:e.jsxs("table",{className:j.wpo365WzTable,children:[e.jsxs("colgroup",{children:[e.jsx("col",{width:"50%"}),e.jsx("col",{width:"50%"})]}),e.jsxs("tbody",{children:[e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("div",{dangerouslySetInnerHTML:{__html:`<p>To create the shortcode you can use this generator. Simply configure the options and copy the shortcode to the clipboard. Then all 
                             you need to do is to add the shortcode to a page and you're ready!</p>
                             <p>Please consult the online documentation 
                             <a href="https://www.wpo365.com/content-by-search/" target="_blank">https://www.wpo365.com/content-by-search/</a> for instructions on 
                             how to generate a shortcode and place it on any WordPress post or page.</p>`}})})}),t?e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("div",{style:{width:"50%"},children:e.jsx(Jr,{messageBarType:Be.blocked,isMultiline:!0,truncated:!0,overflowButtonAriaLabel:"Read more",children:"It appears that you have configured multiple Identity Providers. Embedding content from a Microsoft 365 service for the logged-in user will not work as expected."})})})}):e.jsxs(e.Fragment,{children:[e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"The SharePoint Query"})})}),e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:"Your SharePoint Home URL"}),e.jsx("td",{children:e.jsxs("div",{className:j.wpo365WzColumnifier,children:[u.sharePointHomeError&&e.jsx(Jr,{messageBarType:Be.warning,isMultiline:!1,dismissButtonAriaLabel:"Close",children:"Please enter the your SharePoint Home URL e.g. https://yourtenantname.sharepoint.com/ manually."}),e.jsx(fe,{bound:!1,isValid:(_,v)=>v.indexOf("https://")===0,onValid:_=>{h({...u,sharePointHome:_})},errorMessage:"SharePoint Home must start with https e.g. https://your-tenant.sharepoint.com",value:u.sharePointHome,disabled:u.sharePointHomeError})]})})]}),(!d||n.some(_=>[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate].some(v=>v==_)))&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:"Add wildcard to each search term"}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(_,v)=>h({...u,addWildcard:v}),checked:u.addWildcard})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Results per page"}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx(fe,{bound:!1,isValid:(_,v)=>{const b=parseInt(v);return v===b.toString()&&b>0&&b<50},onValid:_=>h({...u,pageSize:parseInt(_)}),errorMessage:"pageSize must be number greater than 0 and smaller than 50",value:String(u.pageSize)})})})]}),e.jsxs("tr",{children:[e.jsxs("th",{children:["Write the query yourself"," ",e.jsx("a",{href:"https://docs.microsoft.com/en-us/sharepoint/dev/general-development/sharepoint-search-rest-api-overview",target:"_blank",children:"[Overview]"})]}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(_,v)=>h({...u,useWizard:!v}),checked:!u.useWizard})})})})]}),!u.useWizard&&e.jsxs("tr",{children:[e.jsx("th",{children:"Request for SharePoint Search REST API"}),e.jsx("td",{children:e.jsxs(re,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:[e.jsx("p",{children:`${u.sharePointHome}/_api/search/query`}),e.jsx("textarea",{style:mf,value:u.uri,onChange:_=>h({...u,uri:_.target.value})})]})})]}),u.useWizard&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:"Select result source"}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx(qe,{style:{width:"400px"},placeHolder:"Please select a result source from the list",options:[{key:"8413cd39-2156-4e00-b54d-11efd9abdb89",text:"Local SharePoint Results"},{key:"b09a7990-05ea-4af9-81ef-edfab16c4e31",text:"Local People Results"},{key:"other",text:"Enter manually"}],onChange:(_,v)=>{const b=v.key.toString(),C=b=="8413cd39-2156-4e00-b54d-11efd9abdb89",k=b=="b09a7990-05ea-4af9-81ef-edfab16c4e31";h({...u,resultSourceIdReadOnly:b!="other",primaryHtml:C?"__##Title##__":k?"__##PreferredName##__":"",secondaryHtml:C?"__##HitHighlightedSummary##__":k?"__##JobTitle##__":"",tertiaryHtml:C?"":k?"__##Department##__":"",metaHtml:C?"Modified: __##lastModified##__":"",resultSourceId:v.key=="other"?"":v.key.toString(),selectProperties:k?"UserName|JobTitle|Department|WorkPhone|WorkEmail|MobilePhone":"",hideContactActionButtons:!k})}})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Result source ID"}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx(fe,{bound:!1,isValid:(_,v)=>!0,onValid:_=>h({...u,resultSourceId:_}),value:u.resultSourceId,disabled:u.resultSourceIdReadOnly})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Query template"}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx(fe,{bound:!1,isValid:(_,v)=>!0,onValid:_=>h({...u,queryTemplate:_}),value:u.queryTemplate})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Select properties"}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx(fe,{bound:!1,isValid:(_,v)=>!0,onValid:_=>h({...u,selectProperties:_}),value:u.selectProperties})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Sort list"}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx(fe,{bound:!1,isValid:(_,v)=>!0,onValid:_=>h({...u,sortList:_}),value:u.sortList})})})]})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Template"})})}),e.jsxs("tr",{children:[e.jsxs("th",{children:["Use (",e.jsx("a",{href:"https://handlebarsjs.com/",target:"_blank",children:"Handlebars"}),") template"]}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(_,v)=>h({...u,useTemplate:v}),checked:u.useTemplate})})})})]}),u.useTemplate&&e.jsxs("tr",{children:[e.jsx("th",{children:"Template"}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx(fe,{bound:!1,isValid:(_,v)=>!0,onValid:_=>h({...u,templateUrl:_}),value:u.templateUrl})})})]}),!u.useTemplate&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:"Primary text"}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx(fe,{bound:!1,isValid:(_,v)=>!0,onValid:_=>h({...u,primaryHtml:_}),value:u.primaryHtml})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Secondary text"}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx(fe,{bound:!1,isValid:(_,v)=>!0,onValid:_=>h({...u,secondaryHtml:_}),value:u.secondaryHtml})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Tertiary text"}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx(fe,{bound:!1,isValid:(_,v)=>!0,onValid:_=>h({...u,tertiaryHtml:_}),value:u.tertiaryHtml})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Meta text"}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx(fe,{bound:!1,isValid:(_,v)=>!0,onValid:_=>h({...u,metaHtml:_}),value:u.metaHtml})})})]})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Try retrieve user photo"}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(_,v)=>h({...u,getUserPhoto:v}),checked:u.getUserPhoto})})})})]}),!u.hideContactActionButtons&&!u.useTemplate&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:"Show contact action buttons"}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(_,v)=>h({...u,showContactActionButtons:v}),checked:u.showContactActionButtons})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Mobile phone property"}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx(fe,{bound:!1,isValid:(_,v)=>!0,onValid:_=>h({...u,mobilePhoneProperty:_}),value:u.mobilePhoneProperty})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Work phone property"}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx(fe,{bound:!1,isValid:(_,v)=>!0,onValid:_=>h({...u,workPhoneProperty:_}),value:u.workPhoneProperty})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Email property"}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx(fe,{bound:!1,isValid:(_,v)=>!0,onValid:_=>h({...u,emailProperty:_}),value:u.emailProperty})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"IM property"}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx(fe,{bound:!1,isValid:(_,v)=>!0,onValid:_=>h({...u,imProperty:_}),value:u.imProperty})})})]}),!u.useTeams&&e.jsxs("tr",{children:[e.jsx("th",{children:"Show contact action buttons"}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(_,v)=>h({...u,useTeams:v}),checked:u.useTeams})})})})]})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Hide search box"}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(_,v)=>h({...u,hideSearchBox:v}),checked:u.hideSearchBox})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Hide message bar"}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(_,v)=>h({...u,hideMessageBar:v}),checked:u.hideMessageBar})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Hide paging"}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(_,v)=>h({...u,hidePaging:v}),checked:u.hidePaging})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Translations"}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("textarea",{style:mf,ref:_=>g.current=_,defaultValue:JSON.stringify(u.translations,null,2),onBlur:_=>w(_.target.value),onChange:_=>{try{JSON.parse(_.target.value),_.target.style.backgroundColor="initial"}catch{_.target.style.backgroundColor="#FFCCCC"}}})})})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Triggers"})})}),e.jsxs("tr",{children:[e.jsx("th",{children:"Auto search"}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(_,v)=>h({...u,autoSearch:v}),checked:u.autoSearch})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Min. input length"}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx(fe,{bound:!1,isValid:(_,v)=>{const b=parseInt(v);return v===b.toString()&&b>0&&b<5},onValid:_=>h({...u,minQueryLength:parseInt(_)}),errorMessage:"minQueryLength must be number greater than 0 and smaller than 5",value:String(u.minQueryLength)})})})]})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Shortcode"})})}),e.jsxs("tr",{children:[e.jsx("th",{children:"Shortcode"}),e.jsxs("td",{children:[n.some(_=>[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate].some(v=>v==_))&&e.jsx("textarea",{style:mf,readOnly:!0,value:`[pintra props="useV2,true;use64,true;useUri,${u.useWizard?"false":"true"};uri,${u.uri?btoa(u.uri):""};resource,${u.sharePointHome};pageSize,${u.pageSize};minQueryLength,${u.minQueryLength};addWildcard,${u.addWildcard?"true":"false"};autoSearch,${u.autoSearch?"true":"false"};hideMessageBar,${u.hideMessageBar?"true":"false"};hideSearchBox,${u.hideSearchBox?"true":"false"};hidePaging,${u.hidePaging?"true":"false"};dontScroll,${u.dontScroll?"true":"false"};resultSourceId,${u.resultSourceId};queryTemplate,${u.queryTemplate?btoa(u.queryTemplate):""};primaryHtml,${u.primaryHtml};secondaryHtml,${u.secondaryHtml};tertiaryHtml,${u.tertiaryHtml};metaHtml,${u.metaHtml};sortList,${u.sortList};selectProperties,${u.selectProperties};showContactActionButtons,${u.showContactActionButtons?"true":"false"};workPhoneProperty,${u.workPhoneProperty};mobilePhoneProperty,${u.mobilePhoneProperty};emailProperty,${u.emailProperty};imProperty,${u.imProperty};getUserPhoto,${u.getUserPhoto?"true":"false"};useTeams,${u.useTeams?"true":"false"};home,${u.sharePointHome};useTemplate,${u.useTemplate?"true":"false"};templateUrl,${u.templateUrl};translations,${encodeURIComponent(JSON.stringify(u.translations))}" script_url="${u.scriptSrc}"]`,className:"pintraSpoShortCode"}),!n.some(_=>[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate].some(v=>v==_))&&e.jsx("textarea",{style:mf,readOnly:!0,value:`[pintra props="useV2,true;resource,${u.sharePointHome};home,${u.sharePointHome};translations,${encodeURIComponent(JSON.stringify(u.translations))};useTeams,${u.useTeams?"true":"false"}" script_url="${u.scriptSrc}"]`,className:"pintraSpoShortCode"})]})]}),u.useV2&&!i.enableGraphApi&&e.jsxs("tr",{children:[e.jsx("th",{}),e.jsx("td",{children:e.jsxs("div",{className:j.wpo365WzColumnifier,style:ff,children:[e.jsxs("p",{children:["Please enable the ",e.jsx("em",{children:"WPO365 API for Microsoft Graph"})," by checking the corresponding option on the"," ",e.jsx("a",{href:"#integration",children:"Integration"})," page or by clicking the ",e.jsx("em",{children:"Fix now!"})," button below."]}),e.jsx("div",{className:j.wpo365WzRowifier}),e.jsx(et,{onClick:async()=>{h({...u,fixing:"graphApi"}),await m({...i,enableGraphApi:!0}),h({...u,fixing:null})},style:{minWidth:"400px",minHeight:"30px"},children:"Fix now!"}),u.fixing=="graphApi"&&e.jsx(Oe,{size:Te.small}),e.jsx("div",{className:j.wpo365WzRowifier})]})})]}),u.useV2&&i.pagesBlacklist.filter(_=>_.indexOf("/wp-json/wpo365/v1")>-1).length===0&&e.jsxs("tr",{children:[e.jsx("th",{}),e.jsx("td",{children:e.jsxs("div",{className:j.wpo365WzColumnifier,style:ff,children:[e.jsxs("p",{children:["Please add the ",e.jsx("em",{children:"WPO365 API for Microsoft Graph"})," path '/wp-json/wpo365/v1/' to the list of pages freed from authentication on the ",e.jsx("a",{href:"#singleSignOn",children:"Single Sign-on"})," page or click the ",e.jsx("em",{children:"Fix now!"})," button below."]}),e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx(et,{onClick:async()=>{h({...u,fixing:"allowListGraphApiPath"});const _=i.pagesBlacklist.filter(v=>!0);_.push("/wp-json/wpo365/v1/"),await m({...i,pagesBlacklist:_}),h({...u,fixing:null})},style:{minWidth:"400px",minHeight:"30px"},children:"Fix now!"}),u.fixing=="allowListGraphApiPath"&&e.jsx(Oe,{size:Te.small})]})]})})]}),u.useV2&&!i.enableGraphProxy&&e.jsxs("tr",{children:[e.jsx("th",{}),e.jsx("td",{children:e.jsxs("div",{className:j.wpo365WzColumnifier,style:ff,children:[e.jsxs("p",{children:["Please enable ",e.jsx("em",{children:"Microsoft Graph proxy-type requests"})," by checking the corresponding option on the"," ",e.jsx("a",{href:"#integration",children:"Integration"})," page or by clicking the ",e.jsx("em",{children:"Fix now!"})," button below."]}),e.jsx("div",{className:j.wpo365WzRowifier}),e.jsx(et,{onClick:async()=>{h({...u,fixing:"graphProxy"}),await m({...i,enableGraphProxy:!0}),h({...u,fixing:null})},style:{minWidth:"400px",minHeight:"30px"},children:"Fix now!"}),u.fixing=="graphProxy"&&e.jsx(Oe,{size:Te.small}),e.jsx("div",{className:j.wpo365WzRowifier})]})})]}),u.useV2&&!!u.sharePointHome&&!i.graphAllowAllEndpoints&&i.graphAllowedEndpoints.filter(_=>_.key.indexOf(u.sharePointHome)>-1).length===0&&e.jsxs("tr",{children:[e.jsx("th",{}),e.jsx("td",{children:e.jsxs("div",{className:j.wpo365WzColumnifier,style:ff,children:[e.jsxs("p",{children:["Please add your ",e.jsx("em",{children:"SharePoint Home URL"})," to the list of allowed proxy-type request endpoints on the"," ",e.jsx("a",{href:"#integration",children:"Integration"})," page or click the ",e.jsx("em",{children:"Fix now!"})," button below."]}),e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx(et,{onClick:async()=>{h({...u,fixing:"allowListEndpoint"});const _=i.graphAllowedEndpoints.filter(v=>!0);_.push({key:u.sharePointHome,boolVal:!1}),await m({...i,graphAllowedEndpoints:_}),h({...u,fixing:null})},style:{minWidth:"400px",minHeight:"30px"},children:"Fix now!"}),u.fixing=="allowListEndpoint"&&e.jsx(Oe,{size:Te.small})]})]})})]}),!u.useV2||u.useV2&&!!u.sharePointHome&&i.enableGraphApi&&i.pagesBlacklist.filter(_=>_.indexOf("/wp-json/wpo365/v1/")>-1).length>0&&(i.graphAllowAllEndpoints||i.graphAllowedEndpoints.filter(_=>_.key.indexOf(u.sharePointHome)>-1).length>0)&&e.jsxs("tr",{children:[e.jsx("th",{}),e.jsx("td",{children:e.jsx(et,{onClick:x,iconProps:{iconName:"Copy"},style:{minWidth:"400px",minHeight:"30px"},children:u.copyButtonCaption})})]})]})]})]}),e.jsx("tbody",{children:e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx(Ho,{})})})})]})})})},Qr={background:"#ffffff",border:"1px solid #cccccc",boxSizing:"border-box",fontSize:"13px",height:"400px",maxHeight:"400px",maxWidth:"350px",minHeight:"400px",minWidth:"300px",position:"relative"},zo={backgroundColor:"#f9f9f9",borderBottom:"1px solid #cccccc",display:"block",padding:"15px"},gx={backgroundColor:"#448fd5",border:"2px solid #ffffff",display:"block",padding:"15px"},eo={display:"block",margin:"15px",overflowY:"auto",overflowX:"hidden"},Uo={root:{overflowX:"hidden",overflowY:"auto"}},Vo={backgroundColor:"#f9f9f9",borderTop:"1px solid #cccccc",display:"block",padding:"15px",height:"45px",lineHeight:"45px"},Kt={fontSize:"13px"},sw={color:"#0078d4",fontWeight:600},nS={color:"#0078d4",marginBottom:"1px",fontWeight:400,marginLeft:"20px",cursor:"pointer"},rS={color:"#0078d4",paddingTop:"1px",marginLeft:"20px"},ol=o=>{const{text:s}=o;return e.jsxs(U,{horizontal:!0,tokens:{childrenGap:10},styles:{root:{alignItems:"center"}},children:[e.jsx("h3",{children:s}),e.jsx("span",{style:rS,children:e.jsx(ze,{iconName:"Diamond",title:"Premium Feature",ariaLabel:"Premium Feature"})}),e.jsx("span",{children:"premium"})]})},oa=o=>{const{alwaysOn:s,checked:n,labelOff:t,labelOn:i,onChange:d,page:c,targets:u}=o,{env:{props:{extensions:h}}}=D.useContext(Ye),g=u.some(v=>h.some(b=>b===v)),w=[],m=D.useMemo(()=>[l.wpo365LoginPlus,l.wpo365Essentials,l.wpo365Mail,l.wpo365RolesAccess,l.wpo365Pro,l.wpo365Integrate,l.wpo365Customers,l.wpo365Scim,l.wpo365Apps].filter(v=>u.indexOf(v)>-1),[]);g||u.map(v=>{const b=v in Np?Np[v]:{name:"NOT FOUND",url:"https://www.wpo365.com/"};m.indexOf(v)>-1&&w.push({key:b.url,text:b.name})});const x=v=>{window.open(v,"_blank")},_=g?e.jsxs(U,{horizontal:!0,tokens:{childrenGap:10},styles:{root:{alignItems:"center"}},children:[e.jsx("span",{children:n?i||"Enabled":t||"Disabled"}),c&&n&&e.jsxs("span",{style:nS,onClick:v=>{window.location.hash=c,v.preventDefault(),v.stopPropagation()},children:["configure ",e.jsx(ze,{iconName:"NavigateExternalInline",title:"Configure",ariaLabel:"Configure"})]})]}):e.jsxs(U,{horizontal:!0,tokens:{childrenGap:10},styles:{root:{alignItems:"center"}},children:[e.jsx("span",{children:"Plugins: "}),e.jsx(qe,{onChange:(v,b)=>x(b.key),styles:{root:{width:"150px"}},options:w,placeholder:"Select"})]});return e.jsx(Mn,{disabled:!g||s,styles:{root:{maxHeight:"45px",marginBottom:"0px"},label:{color:"unset"}},onChange:d,checked:n,inlineLabel:!0,label:_})},eP=o=>{const{env:s,settings:n,env:{props:{extensions:t}},updateSettings:i}=D.useContext(Ye),d=[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],c=d.some(x=>t.some(_=>_===x));if(n.hidePremiumOptions&&!c)return null;const[u,h]=D.useState(n.enableAudiences),[g,w]=D.useState("initial");D.useEffect(()=>{h(n.enableAudiences)},[n.enableAudiences]),D.useEffect(()=>{g=="dirty"&&(w("loading"),Fe.updateSettings(s,{...n,enableAudiences:u}).then(x=>{x.success?Fe.getSettings(s).then(_=>{i(_),w("initial")}).catch(_=>{console.error(_),w("errors")}):w("errors")}).catch(x=>{console.error(x),w("errors")}))},[u]);const m=(x,_)=>{w("dirty"),h(_)};return e.jsxs(U,{style:Qr,children:[e.jsx(U.Item,{grow:0,children:e.jsx("div",{style:zo,children:e.jsx(ol,{text:"AUDIENCES"})})}),e.jsx(U.Item,{grow:1,styles:Uo,children:e.jsx("div",{style:eo,children:e.jsx(U,{tokens:{childrenGap:10},children:e.jsxs(e.Fragment,{children:[e.jsx("p",{style:Kt,children:"If enabled, admins can restrict access to WordPress posts and pages by requiring that a user is:"}),e.jsxs("ul",{style:Kt,children:[e.jsx("li",{children:"Logged in to the website"}),e.jsxs("li",{children:["A member of a specific ",e.jsx("em",{children:"audience"})," (a group of users that is dynamically populated with members of one or more Entra ID groups)"]})]})]})})})}),e.jsx(U.Item,{grow:0,children:e.jsx("div",{style:Vo,children:e.jsxs(U,{horizontal:!0,tokens:{childrenGap:10},children:[e.jsx(oa,{checked:u,labelOff:"Disabled",labelOn:"Enabled",onChange:m,page:Me.rolesAccess,targets:d}),g=="loading"&&e.jsx(Oe,{size:Te.small}),g=="errors"&&e.jsx(xn,{content:e.jsx("span",{children:"Could not save your changes. Please try again or check the Developer Console (F12) for errors."}),id:`tooltip_${Zt(4)}`,calloutProps:{gapSpace:0},styles:{root:{display:"inline-block"}},children:e.jsx(kt,{"aria-label":"Error",iconName:"Error",style:{fontSize:14,color:"red"}})})]})})})]})},tP=o=>{const{env:s,settings:n,env:{props:{extensions:t}},updateSettings:i}=D.useContext(Ye),d=[l.wpo365Avatar,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Pro,l.wpo365Integrate,l.wpo365Customers],c=d.some(x=>t.some(_=>_===x));if(n.hidePremiumOptions&&!c)return null;const[u,h]=D.useState(n.useAvatar),[g,w]=D.useState("initial");D.useEffect(()=>{h(n.useAvatar)},[n.useAvatar]),D.useEffect(()=>{g=="dirty"&&(w("loading"),Fe.updateSettings(s,{...n,useAvatar:u}).then(x=>{x.success?Fe.getSettings(s).then(_=>{i(_),w("initial")}).catch(_=>{console.error(_),w("errors")}):w("errors")}).catch(x=>{console.error(x),w("errors")}))},[u]);const m=(x,_)=>{w("dirty"),h(_)};return e.jsxs(U,{style:Qr,children:[e.jsx(U.Item,{grow:0,children:e.jsx("div",{style:zo,children:e.jsx(ol,{text:"AVATAR"})})}),e.jsx(U.Item,{grow:1,styles:Uo,children:e.jsx("div",{style:eo,children:e.jsx(U,{tokens:{childrenGap:10},children:e.jsxs(e.Fragment,{children:[e.jsx("p",{style:Kt,children:"If enabled, the plugin will try and replace a WordPress user's avatar with the user's profile picture from Entra ID. The following features are supported:"}),e.jsxs("ul",{style:Kt,children:[e.jsx("li",{children:"Optionally, update the BuddyPress avatar"}),e.jsx("li",{children:"Customize the avatar template"}),e.jsx("li",{children:"Configure the refresh rate"})]})]})})})}),e.jsx(U.Item,{grow:0,children:e.jsx("div",{style:Vo,children:e.jsxs(U,{horizontal:!0,tokens:{childrenGap:10},children:[e.jsx(oa,{checked:u,labelOff:"Disabled",labelOn:"Enabled",onChange:m,page:Me.userSync,targets:d}),g=="loading"&&e.jsx(Oe,{size:Te.small}),g=="errors"&&e.jsx(xn,{content:e.jsx("span",{children:"Could not save your changes. Please try again or check the Developer Console (F12) for errors."}),id:`tooltip_${Zt(4)}`,calloutProps:{gapSpace:0},styles:{root:{display:"inline-block"}},children:e.jsx(kt,{"aria-label":"Error",iconName:"Error",style:{fontSize:14,color:"red"}})})]})})})]})},nP=o=>{const{settings:s,env:{props:{extensions:n}}}=D.useContext(Ye),t=[l.wpo365CustomFields,l.wpo365LoginProfessional,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365RolesAccess,l.wpo365Integrate,l.wpo365Pro],i=t.some(d=>n.some(c=>c===d));return s.hidePremiumOptions&&!i?null:e.jsxs(U,{style:Qr,children:[e.jsx(U.Item,{grow:0,children:e.jsx("div",{style:zo,children:e.jsx(ol,{text:"CUSTOM USER FIELDS"})})}),e.jsx(U.Item,{grow:1,styles:Uo,children:e.jsx("div",{style:eo,children:e.jsx(U,{tokens:{childrenGap:10},children:e.jsxs(e.Fragment,{children:[e.jsx("p",{style:Kt,children:"If installed, admins can enrich WordPress user profiles with Entra ID user attributes:"}),e.jsxs("ul",{style:Kt,children:[e.jsx("li",{children:"Retrieved from Microsoft Graph (OIDC)"}),e.jsx("li",{children:"Received as custom SAML 2.0 claims (SAML)"}),e.jsx("li",{children:"Received as custom ID token claims"})]})]})})})}),e.jsx(U.Item,{grow:0,children:e.jsx("div",{style:Vo,children:e.jsx(oa,{alwaysOn:!0,checked:!0,labelOff:"Disabled",labelOn:"Enabled",onChange:()=>{},page:Me.userSync,targets:t})})})]})},rP=o=>{const{settings:s,env:{props:{extensions:n}}}=D.useContext(Ye),t=[l.wpo365Customers];return s.hidePremiumOptions&&!t.some(i=>n.some(d=>d===i))?null:e.jsxs(U,{style:Qr,children:[e.jsx(U.Item,{grow:0,children:e.jsx("div",{style:zo,children:e.jsx(ol,{text:"CUSTOMERS"})})}),e.jsx(U.Item,{grow:1,styles:Uo,children:e.jsx("div",{style:eo,children:e.jsx(U,{tokens:{childrenGap:10},children:e.jsxs(e.Fragment,{children:[e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},style:sw,children:[e.jsx(ze,{iconName:"Cake",title:"Highlight"}),e.jsx("div",{children:"Supporting Entra External ID"})]}),e.jsx("p",{style:Kt,children:"If installed, WPO365 will support seamless-integration scenarios for AAD B2C / Entra Ext. ID:"}),e.jsxs("ul",{style:Kt,children:[e.jsx("li",{children:"Bi-directional user synchronization"}),e.jsx("li",{children:"Force users to change their password on next signin"}),e.jsx("li",{children:"Send new customer notifications (incl. temp. pwd)"}),e.jsx("li",{children:"Update WordPress user fields from (custom) claims"}),e.jsx("li",{children:"Support for custom login domain / embedded login"}),e.jsx("li",{children:"Force user to sign in with Microsoft"})]})]})})})}),e.jsx(U.Item,{grow:0,children:e.jsx("div",{style:Vo,children:e.jsx(oa,{alwaysOn:!0,checked:n.some(i=>i===l.wpo365Customers),labelOff:"Disabled",labelOn:"Enabled",onChange:(i,d)=>{},targets:t})})})]})},hh=o=>{const{alwaysOn:s,checked:n,labelOff:t,labelOn:i,onChange:d,page:c}=o,u=e.jsxs(U,{horizontal:!0,tokens:{childrenGap:10},styles:{root:{alignItems:"center"}},children:[e.jsx("span",{children:n?i||"Enabled":t||"Disabled"}),c&&n&&e.jsxs("span",{style:nS,onClick:h=>{window.location.hash=c,h.preventDefault(),h.stopPropagation()},children:["configure ",e.jsx(ze,{iconName:"NavigateExternalInline",title:"Configure",ariaLabel:"Configure"})]})]});return e.jsx(Mn,{disabled:s,styles:{root:{maxHeight:"45px",marginBottom:"0px"},label:{color:"unset"}},onChange:d,checked:n,inlineLabel:!0,label:u})},oP=o=>{const{env:s,settings:n,updateSettings:t}=D.useContext(Ye),[i,d]=D.useState(n.useGraphMailer),[c,u]=D.useState("initial");D.useEffect(()=>{d(n.useGraphMailer)},[n.useGraphMailer]),D.useEffect(()=>{c=="dirty"&&(u("loading"),Fe.updateSettings(s,{...n,useGraphMailer:i}).then(g=>{g.success?Fe.getSettings(s).then(w=>{t(w),u("initial")}).catch(w=>{console.error(w),u("errors")}):u("errors")}).catch(g=>{console.error(g),u("errors")}))},[i]);const h=(g,w)=>{u("dirty"),d(w)};return e.jsxs(U,{style:Qr,children:[e.jsx(U.Item,{grow:0,children:e.jsx("div",{style:zo,children:e.jsx("h3",{children:"MAIL"})})}),e.jsx(U.Item,{grow:1,styles:Uo,children:e.jsx("div",{style:eo,children:e.jsx(U,{tokens:{childrenGap:10},children:e.jsxs(e.Fragment,{children:[e.jsx("p",{style:Kt,children:"If enabled, admins can re-configure WordPress to send emails using Microsoft Graph (instead of SMTP). The following features are supported:"}),e.jsxs("ul",{style:Kt,children:[e.jsx("li",{children:"Send mail as HTML"}),e.jsx("li",{children:"Save to Sent Items"}),e.jsx("li",{children:"Send WordPress files as attachments"})]})]})})})}),e.jsx(U.Item,{grow:0,children:e.jsx("div",{style:Vo,children:e.jsxs(U,{horizontal:!0,tokens:{childrenGap:10},children:[e.jsx(hh,{checked:i,labelOff:"Disabled",labelOn:"Enabled",onChange:h,page:Me.mail}),c=="loading"&&e.jsx(Oe,{size:Te.small}),c=="errors"&&e.jsx(xn,{content:e.jsx("span",{children:"Could not save your changes. Please try again or check the Developer Console (F12) for errors."}),id:`tooltip_${Zt(4)}`,calloutProps:{gapSpace:0},styles:{root:{display:"inline-block"}},children:e.jsx(kt,{"aria-label":"Error",iconName:"Error",style:{fontSize:14,color:"red"}})})]})})})]})},sP=o=>{const{settings:s,env:{props:{extensions:n}},updateSettings:t}=D.useContext(Ye),i=[l.wpo365Mail,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers];return s.hidePremiumOptions&&!i.some(d=>n.some(c=>c===d))?null:e.jsxs(U,{style:Qr,children:[e.jsx(U.Item,{grow:0,children:e.jsx("div",{style:zo,children:e.jsx(ol,{text:"MAIL"})})}),e.jsx(U.Item,{grow:1,styles:Uo,children:e.jsx("div",{style:eo,children:e.jsx(U,{tokens:{childrenGap:20},children:e.jsxs(e.Fragment,{children:[e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},style:sw,children:[e.jsx(ze,{iconName:"Cake",title:"Highlight"}),e.jsx("div",{children:"New with auto-resend"})]}),e.jsx("p",{style:Kt,children:"If installed, admins can configure the following additional MAIL options:"}),e.jsxs("ul",{style:Kt,children:[e.jsx("li",{children:"Auto-resend on failure"}),e.jsx("li",{children:"Mail audit / Resend"}),e.jsx("li",{children:"Send large attachments (> 3 Mb) "}),e.jsx("li",{children:"Send from Shared Mailbox"}),e.jsx("li",{children:"Throttle emails / minute"}),e.jsx("li",{children:"Default Reply-To"}),e.jsx("li",{children:"Send to BCC"})]})]})})})}),e.jsx(U.Item,{grow:0,children:e.jsx("div",{style:Vo,children:n.some(d=>d==l.wpo365MsGraphMailer)?e.jsx(oa,{alwaysOn:!0,checked:s.useGraphMailer,labelOff:"Disabled",labelOn:"Enabled",onChange:(d,c)=>{},page:Me.mail,targets:[l.wpo365Mail]}):e.jsx(oa,{alwaysOn:!0,checked:s.useGraphMailer,labelOff:"Disabled",labelOn:"Enabled",onChange:(d,c)=>{},page:Me.mail,targets:i})})})]})},iP=o=>{const{env:{props:{extensions:s}},updateSettings:n}=D.useContext(Ye),i=[l.wpo365Apps,l.wpo365LoginIntranet,l.wpo365Intranet5y,,l.wpo365Integrate].some(d=>s.some(c=>c===d));return e.jsxs(U,{style:Qr,children:[e.jsx(U.Item,{grow:0,children:e.jsx("div",{style:zo,children:e.jsx("h3",{children:"M365 APPS"})})}),e.jsx(U.Item,{grow:1,styles:Uo,children:e.jsx("div",{style:eo,children:e.jsx(U,{tokens:{childrenGap:10},children:e.jsxs(e.Fragment,{children:[e.jsx("p",{style:Kt,children:"Use these apps to embed Microsoft services and content such as Power BI, SharePoint Online and Yammer in a WordPress page or post using a simple WordPress shortcode."}),e.jsx("p",{style:Kt,children:e.jsxs("em",{children:["Please note that each app also has a"," ",e.jsx("a",{href:"https://www.wpo365.com/downloads/wpo365-microsoft-365-apps/",target:"_blank",children:"premium alternative"})," ","offering advanced features."]})}),e.jsxs("ul",{style:Kt,children:[e.jsxs("li",{children:["Embed Power BI reports, dashboards, etc."," ",e.jsx("a",{style:{marginTop:"5px"},href:`#${Me.apps}`,children:"Configure"})]}),e.jsxs("li",{children:["Embed a SharePoint / OneDrive Library or List"," ",e.jsx("a",{style:{marginTop:"5px"},href:`#${Me.apps}`,children:"Configure"})]}),e.jsxs("li",{children:["Embed an Outlook / Exchange Calendar"," ",e.jsx("a",{style:{marginTop:"5px"},href:`#${Me.apps}`,children:"Configure"})]}),e.jsxs("li",{children:["Embed SharePoint Online search"," ",e.jsx("a",{style:{marginTop:"5px"},href:`#${Me.cbsConfigurator}`,children:"Configure"})]}),e.jsxs("li",{children:["Embed an Entra ID based Employee Directory"," ",e.jsx("a",{style:{marginTop:"5px"},href:`#${Me.edConfigurator}`,children:"Configure"})]}),e.jsxs("li",{children:["Embed a Yammer Feed"," ",i?e.jsx("a",{style:{marginTop:"5px"},href:`#${Me.yammer}`,children:"Configure"}):e.jsx("span",{style:{...rS,paddingLeft:"10px"},children:e.jsx(ze,{iconName:"Diamond",title:"Premium Feature",ariaLabel:"Premium Feature"})})]})]})]})})})}),e.jsx(U.Item,{grow:0,children:e.jsx("div",{style:Vo,children:e.jsx(hh,{alwaysOn:!0,checked:!0,labelOff:"Disabled",labelOn:"Enabled",onChange:(d,c)=>{}})})})]})},aP=o=>{const{settings:s,env:{props:{extensions:n}}}=D.useContext(Ye),t=[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],i=t.some(d=>n.some(c=>c===d));return s.hidePremiumOptions&&!i?null:e.jsxs(U,{style:Qr,children:[e.jsx(U.Item,{grow:0,children:e.jsx("div",{style:zo,children:e.jsx(ol,{text:"ROLES + ACCESS"})})}),e.jsx(U.Item,{grow:1,styles:Uo,children:e.jsx("div",{style:eo,children:e.jsx(U,{tokens:{childrenGap:10},children:e.jsxs(e.Fragment,{children:[e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},style:sw,children:[e.jsx(ze,{iconName:"Cake",title:"Highlight"}),e.jsx("div",{children:"New with LearnDash integration"})]}),e.jsx("p",{style:Kt,children:"If installed, admins can restrict access to the WordPress website by requiring that a user is:"}),e.jsxs("ul",{style:Kt,children:[e.jsx("li",{children:"Member of a specific Entra ID Group"}),e.jsx("li",{children:"Member of a specific login domain"})]}),e.jsx("p",{style:Kt,children:"Alternatively, admins can dynamically assign WordPress roles based on a user's:"}),e.jsxs("ul",{style:Kt,children:[e.jsx("li",{children:"Entra ID Group memberships"}),e.jsx("li",{children:"Login domains"}),e.jsx("li",{children:"Specific Entra ID user profile attributes"})]}),e.jsx("p",{style:Kt,children:"Plus, admins can dynamically enroll users into LearnDash courses and groups based on a user's:"}),e.jsxs("ul",{style:Kt,children:[e.jsx("li",{children:"Entra ID Group memberships"}),e.jsx("li",{children:"Defaults"})]})]})})})}),e.jsx(U.Item,{grow:0,children:e.jsx("div",{style:Vo,children:e.jsx(oa,{alwaysOn:!0,checked:!0,labelOff:"Disabled",labelOn:"Enabled",onChange:()=>{},page:Me.rolesAccess,targets:t})})})]})},lP=o=>{const{env:s,settings:n,env:{props:{extensions:t}},updateSettings:i}=D.useContext(Ye),c=[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Scim,l.wpo365Integrate].some(x=>t.some(_=>_===x)),[u,h]=D.useState(n.enableScim),[g,w]=D.useState("initial");D.useEffect(()=>{h(n.enableScim)},[n.enableScim]),D.useEffect(()=>{g=="dirty"&&(w("loading"),Fe.updateSettings(s,{...n,enableScim:u}).then(x=>{x.success?Fe.getSettings(s).then(_=>{i(_),w("initial")}).catch(_=>{console.error(_),w("errors")}):w("errors")}).catch(x=>{console.error(x),w("errors")}))},[u]);const m=(x,_)=>{w("dirty"),h(_)};return e.jsxs(U,{style:Qr,children:[e.jsx(U.Item,{grow:0,children:e.jsx("div",{style:zo,children:e.jsx("h3",{children:"SCIM"})})}),e.jsx(U.Item,{grow:1,styles:Uo,children:e.jsx("div",{style:eo,children:e.jsx(U,{tokens:{childrenGap:10},children:e.jsxs(e.Fragment,{children:[e.jsxs("p",{style:Kt,children:["If enabled, admins can connect to"," ",e.jsx("a",{href:"https://learn.microsoft.com/en-us/entra/identity/app-provisioning/user-provisioning",target:"_blank",children:"Entra ID Application / User Provisioning (SCIM)"})," ","to sync users to WordPress."]}),!c&&e.jsxs(e.Fragment,{children:[e.jsxs("p",{children:["Unlock any of the following functionality by activating one of the following premium plugins:"," ",e.jsx("a",{href:"https://www.wpo365.com/downloads/wpo365-integrate/",target:"_blank",children:"WPO365 | SCIM"})," ","or"," ",e.jsx("a",{href:"https://www.wpo365.com/downloads/wpo365-scim/",target:"_blank",children:"WPO365 | INTEGRATE"}),"."]}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"(Soft) Delete Users"})," Delete users from WordPress when their account is disabled / deleted permanently in Entra ID."]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Update Users"})," Update user attributes when their properties are updated in Entra ID."]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Map User Attributes"})," Receive user attributes beyond name and email and store as WordPress user meta."]})]})]})]})})})}),e.jsx(U.Item,{grow:0,children:e.jsx("div",{style:Vo,children:e.jsxs(U,{horizontal:!0,tokens:{childrenGap:10},children:[e.jsx(hh,{checked:u,labelOff:"Disabled",labelOn:"Enabled",onChange:m,page:Me.userSync}),g=="loading"&&e.jsx(Oe,{size:Te.small}),g=="errors"&&e.jsx(xn,{content:e.jsx("span",{children:"Could not save your changes. Please try again or check the Developer Console (F12) for errors."}),id:`tooltip_${Zt(4)}`,calloutProps:{gapSpace:0},styles:{root:{display:"inline-block"}},children:e.jsx(kt,{"aria-label":"Error",iconName:"Error",style:{fontSize:14,color:"red"}})})]})})})]})},dP=o=>{const{env:s,settings:n,updateSettings:t}=D.useContext(Ye),[i,d]=D.useState(null),[c,u]=D.useState(n.noSso),[h,g]=D.useState("initial");D.useEffect(()=>{u(n.noSso)},[n.noSso]),D.useEffect(()=>{if(h!="dirty")return;g("loading");const x=c?{...n,applicationId:"",applicationSecret:"",authScenario:Gr.internet,b2cAllowMultiplePolicies:!1,b2cCustomDomain:"",b2cDomainName:"",b2cEnableSignup:!1,b2cPolicyName:"",domainHint:"",multiTenanted:!1,multiTenantedApiPermissions:[],noSso:!0,publicHomepage:!1,redirectUrl:"",rememberUser:!1,samlBaseUrl:"",samlClaimMappings:[],samlForceAuthn:!1,samlIdpEntityId:"",samlIdpSlsBinding:"",samlIdpSlsUrl:"",samlIdpSsosBinding:"",samlIdpSsosUrl:"",samlSpAcsBinding:"",useAppOnlyToken:!1,useB2c:!1,useSaml:!1,useCiam:!1,useSingleAppRegistration:!1,wpToAadCreateUsers:!1,wpToAadUserAttributeMappings:[],wpToAadIdentityProvider:void 0}:{...n,noSso:c,redirectUrl:s.props.siteUrl.slice(-1)!="/"?s.props.siteUrl+"/":s.props.siteUrl};Fe.updateSettings(s,x).then(_=>{_.success?Fe.getSettings(s).then(v=>{t(v),g("initial")}).catch(v=>{console.error(v),g("errors")}):g("errors")}).catch(_=>{console.error(_),g("errors")})},[c]);const w=(x,_,v,b)=>{d({title:v,subText:b,onDismiss:()=>d(null),onCancel:()=>d(null),onConfirm:()=>{d(null),_(!x)}})},m=(x,_)=>{w(!c,b=>{g("dirty"),u(!b)},"Confirm",_?"<p>You are enabling Microsoft based single sign-on and can now continue to configure OpenID Connect, SAML 2.0 or AAD B2C / Entra Ext. ID based SSO.</p>":`<p>You have chosen to disable Microsoft based single sign-on. You can still configure and use other features of the WPO365 plugin e.g.
         <ul style="list-style: intial; padding: 0px 0px 0px 20px">
          <li>Sending email using Microsoft Graph</li>
          <li>Synchronizing users from Entra ID to WordPress using <em>application-level</em> permissions</li>
          <li>Embedding Power BI content when the <em>application owns the data</em></li>
          <li>Embedding a SharePoint Library using <em>application-level</em> permissions</li>
         </ul>
         </p>
         <p><strong>Important</strong> <em>Your exising WPO365 configuration will be deleted</em></p>
         `)};return e.jsxs(e.Fragment,{children:[e.jsxs(U,{style:Qr,children:[e.jsx(U.Item,{grow:0,children:e.jsx("div",{style:zo,children:e.jsx("h3",{children:"SINGLE SIGN-ON (SSO)"})})}),e.jsx(U.Item,{grow:1,styles:Uo,children:e.jsx("div",{style:eo,children:e.jsxs(U,{tokens:{childrenGap:10},children:[e.jsx("p",{children:"If enabled, WordPress users can sign into the website using their Microsoft Entra ID account: No password needed. The following features are supported:"}),e.jsxs("ul",{style:Kt,children:[e.jsx("li",{children:"OpenID Connect based SSO"}),e.jsx("li",{children:"SAML 2.0 based SSO"}),e.jsx("li",{children:"Support for Azure AD B2C"}),e.jsx("li",{children:"Support for Entra External ID"}),e.jsxs("li",{children:["Support for multi-tenancy ",e.jsx(ze,{iconName:"Diamond",title:"Premium Feature",ariaLabel:"Premium Feature"})]})]})]})})}),e.jsx(U.Item,{grow:0,children:e.jsx("div",{style:Vo,children:e.jsxs(U,{horizontal:!0,tokens:{childrenGap:10},children:[e.jsx(hh,{checked:!c,labelOff:"Disabled",labelOn:"Enabled",onChange:m,page:Me.singleSignOn}),h=="loading"&&e.jsx(Oe,{size:Te.small}),h=="errors"&&e.jsx(xn,{content:e.jsx("span",{children:"Could not save your changes. Please try again or check the Developer Console (F12) for errors."}),id:`tooltip_${Zt(4)}`,calloutProps:{gapSpace:0},styles:{root:{display:"inline-block"}},children:e.jsx(kt,{"aria-label":"Error",iconName:"Error",style:{fontSize:14,color:"red"}})})]})})})]}),i&&e.jsx(Bo,{onCancel:i.onCancel,onConfirm:i.onConfirm,onDismiss:i.onDismiss,title:i.title,subText:i.subText})]})},cP=o=>{const{env:s,settings:n,env:{props:{extensions:t}},updateSettings:i}=D.useContext(Ye),d=[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Customers,l.wpo365Integrate],c=d.some(x=>t.some(_=>_===x));if(n.hidePremiumOptions&&!c)return null;const[u,h]=D.useState(n.enableUserSync),[g,w]=D.useState("initial");D.useEffect(()=>{h(n.enableUserSync)},[n.enableUserSync]),D.useEffect(()=>{g=="dirty"&&(w("loading"),Fe.updateSettings(s,{...n,enableUserSync:u}).then(x=>{x.success?Fe.getSettings(s).then(_=>{i(_),w("initial")}).catch(_=>{console.error(_),w("errors")}):w("errors")}).catch(x=>{console.error(x),w("errors")}))},[u]);const m=(x,_)=>{w("dirty"),h(_)};return e.jsxs(U,{style:Qr,children:[e.jsx(U.Item,{grow:0,children:e.jsx("div",{style:zo,children:e.jsx(ol,{text:"SYNC"})})}),e.jsx(U.Item,{grow:1,styles:Uo,children:e.jsx("div",{style:eo,children:e.jsx(U,{tokens:{childrenGap:10},children:e.jsxs(e.Fragment,{children:[e.jsx("p",{style:Kt,children:"If enabled, admins can configure the plugin to synchronize (pull) users from Entra ID to WordPress. The following features are supported:"}),e.jsxs("ul",{style:Kt,children:[e.jsx("li",{children:"On-demand or scheduled user synchronization"}),e.jsx("li",{children:"Actions to create, update, de-activate or delete users"}),e.jsx("li",{children:"Audit log"}),e.jsx("li",{children:"Mail notification for admins"})]})]})})})}),e.jsx(U.Item,{grow:0,children:e.jsx("div",{style:Vo,children:e.jsxs(U,{horizontal:!0,tokens:{childrenGap:10},children:[e.jsx(oa,{checked:u,labelOff:"Disabled",labelOn:"Enabled",onChange:m,page:Me.userSync,targets:d}),g=="loading"&&e.jsx(Oe,{size:Te.small}),g=="errors"&&e.jsx(xn,{content:e.jsx("span",{children:"Could not save your changes. Please try again or check the Developer Console (F12) for errors."}),id:`tooltip_${Zt(4)}`,calloutProps:{gapSpace:0},styles:{root:{display:"inline-block"}},children:e.jsx(kt,{"aria-label":"Error",iconName:"Error",style:{fontSize:14,color:"red"}})})]})})})]})},uP=o=>{const{env:s,settings:n,updateSettings:t}=D.useContext(Ye),[i,d]=D.useState(n.useWpRestCookies),[c,u]=D.useState("initial");D.useEffect(()=>{d(n.useWpRestCookies)},[n.useWpRestCookies]),D.useEffect(()=>{c=="dirty"&&(u("loading"),Fe.updateSettings(s,{...n,useWpRestCookies:i}).then(g=>{g.success?Fe.getSettings(s).then(w=>{t(w),u("initial")}).catch(w=>{console.error(w),u("errors")}):u("errors")}).catch(g=>{console.error(g),u("errors")}))},[i]);const h=(g,w)=>{u("dirty"),d(w)};return e.jsxs(U,{style:Qr,children:[e.jsx(U.Item,{grow:0,children:e.jsx("div",{style:zo,children:e.jsx("h3",{children:"WP REST API"})})}),e.jsx(U.Item,{grow:1,styles:Uo,children:e.jsx("div",{style:eo,children:e.jsx(U,{tokens:{childrenGap:10},children:e.jsxs(e.Fragment,{children:[e.jsx("p",{style:Kt,children:"If enabled, admins can protect the WordPress REST API with a combination of a WordPress authentication cookie and a nonce and configure the following options:"}),e.jsxs("ul",{style:Kt,children:[e.jsx("li",{children:"Enable protection for specific endpoints"}),e.jsx("li",{children:"Impersonate the current user"}),e.jsx("li",{children:"Optionally block requests to all other endpoints"})]})]})})})}),e.jsx(U.Item,{grow:0,children:e.jsx("div",{style:Vo,children:e.jsxs(U,{horizontal:!0,tokens:{childrenGap:10},children:[e.jsx(hh,{checked:i,labelOff:"Disabled",labelOn:"Enabled",onChange:h,page:Me.integration}),c=="loading"&&e.jsx(Oe,{size:Te.small}),c=="errors"&&e.jsx(xn,{content:e.jsx("span",{children:"Could not save your changes. Please try again or check the Developer Console (F12) for errors."}),id:`tooltip_${Zt(4)}`,calloutProps:{gapSpace:0},styles:{root:{display:"inline-block"}},children:e.jsx(kt,{"aria-label":"Error",iconName:"Error",style:{fontSize:14,color:"red"}})})]})})})]})},pP=o=>{const{env:s,settings:n,env:{props:{extensions:t}},updateSettings:i}=D.useContext(Ye),d=[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro];if(n.hidePremiumOptions&&!d.some(m=>t.some(x=>x===m)))return null;const[c,u]=D.useState(n.useWpRestAad),[h,g]=D.useState("initial");D.useEffect(()=>{u(n.useWpRestAad)},[n.useWpRestAad]),D.useEffect(()=>{h=="dirty"&&(g("loading"),Fe.updateSettings(s,{...n,useWpRestAad:c}).then(m=>{m.success?Fe.getSettings(s).then(x=>{i(x),g("initial")}).catch(x=>{console.error(x),g("errors")}):g("errors")}).catch(m=>{console.error(m),g("errors")}))},[c]);const w=(m,x)=>{g("dirty"),u(x)};return e.jsxs(U,{style:Qr,children:[e.jsx(U.Item,{grow:0,children:e.jsx("div",{style:zo,children:e.jsx(ol,{text:"WP REST API"})})}),e.jsx(U.Item,{grow:1,styles:Uo,children:e.jsx("div",{style:eo,children:e.jsx(U,{tokens:{childrenGap:20},children:e.jsxs(e.Fragment,{children:[e.jsx("p",{style:Kt,children:"If enabled, admins can protect the WP REST API with access tokens generated by Entra ID en configure the following options:"}),e.jsxs("ul",{style:Kt,children:[e.jsx("li",{children:"Enable protection for specific endpoints"}),e.jsx("li",{children:"Impersonate the current user"}),e.jsx("li",{children:"Optionally block requests to all other endpoints"}),e.jsx("li",{children:"Set a WordPress authentication cookie"})]})]})})})}),e.jsx(U.Item,{grow:0,children:e.jsx("div",{style:Vo,children:e.jsxs(U,{horizontal:!0,tokens:{childrenGap:10},children:[e.jsx(oa,{checked:c,labelOff:"Disabled",labelOn:"Enabled",onChange:w,page:Me.integration,targets:d}),h=="loading"&&e.jsx(Oe,{size:Te.small}),h=="errors"&&e.jsx(xn,{content:e.jsx("span",{children:"Could not save your changes. Please try again or check the Developer Console (F12) for errors."}),id:`tooltip_${Zt(4)}`,calloutProps:{gapSpace:0},styles:{root:{display:"inline-block"}},children:e.jsx(kt,{"aria-label":"Error",iconName:"Error",style:{fontSize:14,color:"red"}})})]})})})]})},hP=o=>{const{mailDashboard:s}=o;return e.jsxs(U,{children:[e.jsxs("div",{style:{lineHeight:"1.2rem",marginTop:"1rem",marginBottom:"1.8rem",width:"80%"},children:[e.jsx("strong",{children:"See what matters, when it happens"})," Track key WPO365 events like logins, sent emails and user creation and updates with"," ",e.jsx("a",{href:"#insights",children:"WPO365 Insights"})]}),e.jsxs(U,{horizontal:!0,wrap:!0,tokens:{childrenGap:15},children:[!s&&e.jsx(dP,{}),e.jsx(oP,{}),e.jsx(sP,{}),!s&&e.jsxs(e.Fragment,{children:[e.jsx(rP,{}),e.jsx(aP,{}),e.jsx(eP,{}),e.jsx(lP,{}),e.jsx(cP,{}),e.jsx(iP,{}),e.jsx(nP,{}),e.jsx(tP,{}),e.jsx(uP,{}),e.jsx(pP,{})]})]})]})},mP=o=>{const{env:s,env:{nonce:n,wpAjaxAdminUrl:t,props:{addOns:i,extensions:d}},settings:c,settings:{hidePremiumOptions:u},updateSettings:h}=D.useContext(Ye),[g,w]=D.useState({insightsAlertsEnabled:c.insightsAlertsEnabled,insightsAlertsLogin:c.insightsAlertsLogin,insightsAlertsMail:c.insightsAlertsMail,insightsAlertsNoSensitiveData:c.insightsAlertsNoSensitiveData,insightsAlertsUserCreation:c.insightsAlertsUserCreation}),[m,x]=D.useState("initial"),[_,v]=D.useState(""),[b,C]=D.useState(""),[k,L]=D.useState("initial"),[T,N]=D.useState(!1),Y=async()=>{v(null),L("saving");const I={...c};I.insightsAlertsEnabled=g.insightsAlertsEnabled,I.insightsAlertsLogin=g.insightsAlertsLogin,I.insightsAlertsMail=g.insightsAlertsMail,I.insightsAlertsNoSensitiveData=g.insightsAlertsNoSensitiveData,I.insightsAlertsUserCreation=g.insightsAlertsUserCreation;try{const R=await Fe.updateSettings(s,I);if(R.success){const H=await Fe.getSettings(s);h(H),v(null),L("initial")}else v(R.message)}catch{v("Unknown error occured whilst updating settings [check F12 > console for technical details]")}L("initial")};D.useEffect(()=>{T&&Y().then(()=>N(!1))},[T]),D.useEffect(()=>{(c.insightsAlertsEnabled!=g.insightsAlertsEnabled||c.insightsAlertsLogin!=g.insightsAlertsLogin||c.insightsAlertsMail!=g.insightsAlertsMail||c.insightsAlertsNoSensitiveData!=g.insightsAlertsNoSensitiveData||c.insightsAlertsUserCreation!=g.insightsAlertsUserCreation)&&N(!0)},[g]);const A=async()=>{C(""),x("saving");const I=new FormData;I.append("action","wpo365_send_test_alert"),I.append("nonce",n),I.append("ina",window.wpo365.wizard.props.ina);let R;try{R=await Ee.post(t,I)}catch(H){x("initial"),C(H.message);return}if(x("initial"),R.status>=200&&R.status<300&&R.data&&R.data.status){if(R.data.status=="OK")return;C(R.data.message);return}C(`Error occured (HTTP status ${R.status})`)};return e.jsxs(U,{tokens:{childrenGap:10},children:[e.jsx("p",{children:e.jsx("strong",{children:"See what matters, when it happens"})}),e.jsx("p",{children:"Track key WPO365 events like logins, sent emails and user creation and updates - and get alerted when critical errors occur."}),e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},style:{marginBottom:"10px"},children:[e.jsx("div",{style:{fontSize:"13px"},children:"Enable alerts"}),e.jsx(Mn,{styles:{root:{marginBottom:"0px",marginRight:"10px"},label:{fontWeight:400}},checked:g.insightsAlertsEnabled,onChange:(I,R)=>w({...g,insightsAlertsEnabled:R}),inlineLabel:!0}),k==="saving"&&e.jsx(Oe,{size:Te.small})]}),_&&e.jsx("p",{style:{color:"#ff0000"},children:_}),g.insightsAlertsEnabled&&e.jsxs(e.Fragment,{children:[e.jsxs(U,{style:{marginBottom:"10px"},tokens:{childrenGap:10},children:[e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx(ce,{checked:g.insightsAlertsNoSensitiveData,onChange:(I,R)=>w({...g,insightsAlertsNoSensitiveData:R})}),e.jsx("div",{style:{fontSize:"13px"},children:"No sensitive data"})]}),c.useGraphMailer&&e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx(ce,{checked:g.insightsAlertsMail,onChange:(I,R)=>w({...g,insightsAlertsMail:R})}),e.jsx("div",{style:{fontSize:"13px"},children:"Email sending issues"})]}),!c.noSso&&e.jsxs(e.Fragment,{children:[e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx(ce,{checked:g.insightsAlertsLogin,onChange:(I,R)=>w({...g,insightsAlertsLogin:R})}),e.jsx("div",{style:{fontSize:"13px"},children:"Unsuccessful logins"})]}),e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx(ce,{checked:g.insightsAlertsUserCreation,onChange:(I,R)=>w({...g,insightsAlertsUserCreation:R})}),e.jsx("div",{style:{fontSize:"13px"},children:"Failed user creation"})]})]})]}),e.jsxs("p",{children:["Enabling WPO365 Alerts implies your acceptance of the"," ",e.jsx("a",{href:"https://docs.wpo365.com/article/210-wpo365-insights#tandc",target:"_blank",children:"Terms and Conditions"}),", including the limited and purpose-specific processing of data in line with GDPR."]}),e.jsx("p",{children:"To send alerts, make sure you're using a premium WPO365 plugin - version 38.0 or later."}),e.jsx("p",{children:'To ensure successful delivery of future alerts, please add "insights@wpo365.com" to your allow list and verify that messages from this address are not marked as spam.'}),e.jsx("p",{children:"Please note that your alert may be placed in a queue. As a result, delivery may be delayed."}),e.jsxs(U,{style:{marginBottom:"10px"},horizontal:!0,tokens:{childrenGap:10},children:[e.jsx(et,{onClick:()=>A(),children:"Send test alert"}),e.jsx("div",{style:{minWidth:"50px"},children:m==="saving"&&e.jsx(Oe,{size:Te.small})})]}),b&&e.jsx("p",{style:{color:"#ff0000"},children:b}),e.jsx("p",{children:'After sending a test alert, please refresh the page, and check for "Alerst (not) submitted successfully".'})]})]})},_x=tl({root:{background:"rgba(0, 0, 0, 0.2)",bottom:"0",left:"0",position:"fixed",right:"0",top:"0"},content:{background:"white",left:"50%",maxWidth:"400px",padding:"0 2em 2em",position:"absolute",top:"50%",transform:"translate(-50%, -50%)"}}),fP=o=>{const{toggleUpgradePopup:s}=o;return e.jsx(vd,{children:e.jsxs(dh,{role:"dialog","aria-modal":"true",onDismiss:()=>s(!1),className:_x.root,children:[e.jsx(yg,{onClick:()=>s(!1)}),e.jsx(ru,{children:e.jsxs("div",{role:"document",className:_x.content,children:[e.jsx("h2",{children:"Upgrade Notice"}),e.jsxs("p",{children:["To be able to configure ",e.jsx("strong",{children:"WPO365 Alerts"}),", please"," ",e.jsx("a",{href:"https://www.wpo365.com/wordpress-plugins/",target:"_blank",children:"upgrade to any premium license"}),"."]}),e.jsx(et,{onClick:()=>s(!1),children:"Close"})]})})]})})},gP={background:"#ffffff",border:"1px solid #cccccc",boxSizing:"border-box",fontSize:"13px",height:"400px",maxHeight:"400px",minHeight:"400px",minWidth:"400px",position:"relative",width:"100%"},_P={backgroundColor:"#f9f9f9",borderBottom:"1px solid #cccccc",display:"block",padding:"15px"},yP={display:"block",padding:"15px"},wP={root:{overflowX:"auto",overflowY:"auto"}},vP={backgroundColor:"#f9f9f9",borderTop:"1px solid #cccccc",display:"block",padding:"15px",height:"45px",lineHeight:"45px"},xP={fontWeight:600},yx=tl({root:{background:"rgba(0, 0, 0, 0.2)",bottom:"0",left:"0",position:"fixed",right:"0",top:"0"},content:{background:"white",left:"50%",maxWidth:"400px",padding:"0 2em 2em",position:"absolute",top:"50%",transform:"translate(-50%, -50%)"}}),oS=o=>{const{toggleUpgradePopup:s}=o;return e.jsx(vd,{children:e.jsxs(dh,{role:"dialog","aria-modal":"true",onDismiss:()=>s(!1),className:yx.root,children:[e.jsx(yg,{onClick:()=>s(!1)}),e.jsx(ru,{children:e.jsxs("div",{role:"document",className:yx.content,children:[e.jsx("h2",{children:"Upgrade Notice"}),e.jsxs("p",{children:["To expand ",e.jsx("strong",{children:"WPO365 Insights"})," and to change the period to ",e.jsx("strong",{children:"MTD"})," or ",e.jsx("strong",{children:"YTD"})," are premium features. Please"," ",e.jsx("a",{href:"https://www.wpo365.com/wordpress-plugins/",target:"_blank",children:"upgrade to any premium license"}),"."]}),e.jsx(et,{onClick:()=>s(!1),children:"Close"})]})})]})})},Xn=o=>{const{action:s,category:n,status:t,period:i,summaryValue:d,title:c}=o,{settings:u,env:{nonce:h,wpAjaxAdminUrl:g,props:{addOns:w,extensions:m}},updateSettings:x}=D.useContext(Ye),[_,v]=D.useState(!0),[b,C]=D.useState(we.initial),[k,L]=D.useState(""),[T,N]=D.useState([]),[Y,A]=D.useState([]),[I,R]=D.useState(0),[H]=D.useState(25),[W,K]=D.useState(!1),[Z,Q]=D.useState(void 0),B=async()=>{C(we.saving);const $=new FormData;$.append("action","wpo365_get_insights"),$.append("period",i),$.append("event_action",s),$.append("event_category",n),$.append("event_status",t),$.append("start_row",(I*H).toString()),$.append("nonce",h),$.append("ina",window.wpo365.wizard.props.ina);let ie;try{ie=await Ee.post(g,$)}catch(le){C(we.initial),L(le.message);return}if(C(we.initial),ie.status>=200&&ie.status<300&&ie.data&&ie.data.status){if(ie.data.status=="OK"&&ie.data.result&&Array.isArray(ie.data.result)){const le=ie.data.result.map(V=>("event_user"in V&&(V.event_user=JSON.parse(V.event_user)),V));if(le.length>0){const V=[...T].concat(le);N(V),A(V.slice(I*H)),R(I+1)}return}L(ie.data.message);return}L(`Error occured (HTTP status ${ie.status})`)},P=()=>{const $=T.length/H;return Math.ceil($)==I&&Math.floor($)!=$},X=async($="prev")=>{if($=="prev"&&I>1){const ie=I-1,le=(ie-1)*H,V=le+25;A(T.slice(le,V)),R(ie);return}if($=="next"){const ie=T.length/H;if(P())return;if(Math.ceil(ie)>I){const le=I+1,V=(le-1)*H,z=V+25;A(T.slice(V,z)),R(le);return}B()}};return D.useEffect(()=>{_||(w&&Object.keys(w).length>0?T.length==0&&b==we.initial&&B():(K(!0),v(!0)))},[_]),D.useEffect(()=>{T&&T.length==0&&(A([]),R(0))},[T]),e.jsxs(e.Fragment,{children:[e.jsx("table",{children:e.jsxs("tbody",{children:[e.jsxs("tr",{children:[e.jsx("td",{style:{maxWidth:"35px"},children:b==we.saving?e.jsx(Oe,{size:Te.medium}):e.jsx(Ke,{onClick:()=>v(!_),iconProps:{iconName:_?"ChevronRight":"ChevronDown"}})}),e.jsx("th",{style:xP,children:c}),e.jsx("td",{style:{maxWidth:"35px"},children:d})]}),k&&e.jsx("tr",{children:e.jsx("td",{colSpan:3,children:k})})]})}),!_&&e.jsx("table",{style:{fontSize:"11px",paddingLeft:"47px"},children:e.jsxs("tbody",{children:[e.jsxs("tr",{children:[e.jsx("th",{children:"Date"}),e.jsx("th",{children:"User"}),e.jsx("th",{children:"Data"}),e.jsx("th",{children:"Error / Info"})]}),Y.length>0?Y.map($=>e.jsxs("tr",{children:[e.jsx("td",{children:$.event_timestamp}),e.jsx("td",{style:{whiteSpace:"nowrap"},children:$.event_user.mail?$.event_user.mail:$.event_user.wp_user_login?$.event_user.wp_user_login:$.event_user.display_name?$.event_user.display_name:""}),e.jsx("td",{style:{whiteSpace:"nowrap"},children:$.event_data?e.jsx("a",{href:"javascript: void(0)",onClick:()=>{const ie=Xr($.event_data,{});Q(ie)},children:"View"}):null}),e.jsx("td",{children:$.event_error})]})):w&&Object.keys(w).length>0?e.jsx("tr",{children:e.jsx("td",{colSpan:3,children:"No insights available"})}):null,e.jsx("tr",{children:e.jsx("td",{colSpan:3,children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx(et,{primary:!0,onClick:()=>X("prev"),disabled:I<=1,children:"Previous"}),e.jsx("div",{style:{padding:"0px 20px",fontSize:"13px",fontWeight:600,backgroundColor:"#e1e1e1"},children:I}),e.jsx(et,{primary:!0,onClick:()=>X("next"),disabled:P(),children:"Next"})]})})})]})}),W&&e.jsx(oS,{toggleUpgradePopup:K}),Z&&e.jsx(Zc,{isOpen:!!Z,onDismiss:()=>Q(void 0),isBlocking:!0,children:e.jsxs("div",{className:j.modal,children:[e.jsx("div",{style:{alignSelf:"flex-end",padding:"10px 20px 10px 10px"},children:e.jsx("a",{href:"javascript: void(0)",onClick:()=>Q(void 0),children:"Close"})}),e.jsx("table",{style:{border:"1px solid black",borderCollapse:"collapse",fontSize:"11px"},children:Object.keys(Z).map($=>e.jsxs("tr",{children:[e.jsx("th",{style:{border:"1px solid black",borderCollapse:"collapse",padding:"5px"},children:$}),e.jsx("td",{style:{border:"1px solid black",borderCollapse:"collapse",padding:"5px"},children:$ in Z?$=="imageUri"?e.jsx("img",{src:Z[$]}):JSON.stringify(Z[$]):"null"})]}))})]})})]})};var wt=(o=>(o.ALERT="ALERT",o.MAIL="MAIL",o.SCIM="SCIM",o.SSO="SSO",o.SYNC="SYNC",o.WP="WP",o))(wt||{}),vt=(o=>(o.NOK="NOK",o.OK="OK",o))(vt||{}),xt=(o=>(o["wpo365/alert/submitted"]="wpo365/alert/submitted",o["wpo365/mail/sent"]="wpo365/mail/sent",o["wpo365/user/created"]="wpo365/user/created",o["wpo365/user/loggedin"]="wpo365/user/loggedin",o["wpo365/user/updated"]="wpo365/user/updated",o))(xt||{}),Po=(o=>(o.alerts="alerts",o.login="login",o.mail="mail",o.users="users",o))(Po||{}),To=(o=>(o.TODAY="TODAY",o.WTD="WTD",o.MTD="MTD",o.YTD="YTD",o))(To||{});const bP=o=>{const{env:{props:{addOns:s,extensions:n}}}=D.useContext(Ye),{period:t,getInsightsSummary:i,saveStatus:d}=o,[c,u]=D.useState(!1),h=g=>{if([To.MTD,To.YTD].indexOf(g)>-1&&!(s&&Object.keys(s).length>0)){u(!0);return}i(g)};return e.jsxs(e.Fragment,{children:[e.jsxs(U,{styles:{root:{marginBottom:"20px"}},horizontal:!0,verticalAlign:"center",tokens:{childrenGap:20},children:[e.jsx(et,{primary:t==To.TODAY,onClick:()=>h(To.TODAY),children:"Today"}),e.jsx(et,{primary:t==To.WTD,onClick:()=>h(To.WTD),children:"WTD"}),e.jsx(et,{primary:t==To.MTD,onClick:()=>h(To.MTD),children:"MTD"}),e.jsx(et,{primary:t==To.YTD,onClick:()=>h(To.YTD),children:"YTD"}),d==we.saving&&e.jsx(Oe,{size:Te.medium})]}),c&&e.jsx(oS,{toggleUpgradePopup:u})]})},Qn=(o,s,n,t)=>{const i=o.filter(d=>d.event_action===s&&d.event_category===n&&d.event_status===t);return i.length===1?i[0].event_count:0},gf=o=>{const{eventType:s,title:n}=o,{settings:t,env:{nonce:i,wpAjaxAdminUrl:d,props:{addOns:c,extensions:u}}}=D.useContext(Ye),[h,g]=D.useState([]),[w,m]=D.useState(we.initial),[x,_]=D.useState(null),[v,b]=D.useState(To.TODAY),[C,k]=D.useState(!1),[L,T]=D.useState(!1),[N,Y]=D.useState(!1),A=async(I=To.TODAY)=>{m(we.saving),b(I);const R=new FormData;R.append("action","wpo365_get_insights_summary"),R.append("period",I.toString()),R.append("group",s.toString()),R.append("nonce",i),R.append("ina",window.wpo365.wizard.props.ina);let H;try{H=await Ee.post(d,R)}catch(W){m(we.initial),_(W.message);return}if(m(we.initial),H.status>=200&&H.status<300&&H.data&&H.data.status){if(H.data.status=="OK"&&H.data.result&&Array.isArray(H.data.result)){g(H.data.result);return}_(H.data.message);return}_(`Error occured (HTTP status ${H.status})`)};return D.useMemo(()=>{A()},[]),e.jsxs(e.Fragment,{children:[e.jsxs(U,{style:gP,children:[e.jsx(U.Item,{grow:0,children:e.jsx("div",{style:_P,children:s===Po.alerts?e.jsxs(U,{horizontal:!0,tokens:{childrenGap:10},children:[e.jsxs("h3",{style:{flexGrow:1,display:"flex",alignItems:"center"},children:[n,!t.insightsAlertsEnabled&&e.jsx("span",{style:{fontSize:"0.8rem",paddingLeft:"1rem",color:"#0078D4"},children:"Not enabled"})]}),e.jsx(el,{style:{alignSelf:"center"},iconProps:{iconName:"Settings"},onClick:()=>{if(!(c&&Object.keys(c).length>0)){Y(!0);return}k(!0)},children:"Configure"})]}):e.jsx("h3",{children:n})})}),e.jsx(U.Item,{grow:1,styles:wP,children:e.jsxs("div",{style:yP,children:[e.jsx(bP,{getInsightsSummary:A,period:v,saveStatus:w}),s==Po.alerts&&e.jsxs(e.Fragment,{children:[e.jsx(Xn,{action:xt["wpo365/alert/submitted"],category:wt.ALERT,status:vt.OK,period:v,title:"Alerts submitted successfully",summaryValue:Qn(h,xt["wpo365/alert/submitted"],wt.ALERT,vt.OK)},"keyIndicator_1"),e.jsx(Xn,{action:xt["wpo365/alert/submitted"],category:wt.ALERT,status:vt.NOK,period:v,title:"Alerts not submitted successfully",summaryValue:Qn(h,xt["wpo365/alert/submitted"],wt.ALERT,vt.NOK)},"keyIndicator_2")]}),s==Po.login&&e.jsxs(e.Fragment,{children:[e.jsx(Xn,{action:xt["wpo365/user/loggedin"],category:wt.WP,status:vt.OK,period:v,title:"WP User logged-in successfully",summaryValue:Qn(h,xt["wpo365/user/loggedin"],wt.WP,vt.OK)},"keyIndicator_3"),e.jsx(Xn,{action:xt["wpo365/user/loggedin"],category:wt.WP,status:vt.NOK,period:v,title:"WP User not logged-in successfully",summaryValue:Qn(h,xt["wpo365/user/loggedin"],wt.WP,vt.NOK)},"keyIndicator_4")]}),s==Po.login&&!t.noSso&&e.jsxs(e.Fragment,{children:[e.jsx(Xn,{action:xt["wpo365/user/loggedin"],category:wt.SSO,status:vt.OK,period:v,title:"SSO User logged-in successfully",summaryValue:Qn(h,xt["wpo365/user/loggedin"],wt.SSO,vt.OK)},"keyIndicator_5"),e.jsx(Xn,{action:xt["wpo365/user/loggedin"],category:wt.SSO,status:vt.NOK,period:v,title:"SSO User not logged-in successfully",summaryValue:Qn(h,xt["wpo365/user/loggedin"],wt.SSO,vt.NOK)},"keyIndicator_6")]}),s==Po.mail&&(t.useGraphMailer||u.some(I=>I==l.wpo365MsGraphMailer))&&e.jsxs(e.Fragment,{children:[e.jsx(Xn,{action:xt["wpo365/mail/sent"],category:wt.MAIL,status:vt.OK,period:v,title:"Emails sent successfully",summaryValue:Qn(h,xt["wpo365/mail/sent"],wt.MAIL,vt.OK)},"keyIndicator_7"),e.jsx(Xn,{action:xt["wpo365/mail/sent"],category:wt.MAIL,status:vt.NOK,period:v,title:"Emails not sent successfully",summaryValue:Qn(h,xt["wpo365/mail/sent"],wt.MAIL,vt.NOK)},"keyIndicator_8")]}),s==Po.users&&!t.noSso&&t.createAndAddUsers&&e.jsxs(e.Fragment,{children:[e.jsx(Xn,{action:xt["wpo365/user/created"],category:wt.SSO,status:vt.OK,period:v,title:"Users created successfully (SSO)",summaryValue:Qn(h,xt["wpo365/user/created"],wt.SSO,vt.OK)},"keyIndicator_9"),e.jsx(Xn,{action:xt["wpo365/user/created"],category:wt.SSO,status:vt.NOK,period:v,title:"Users not created successfully (SSO)",summaryValue:Qn(h,xt["wpo365/user/created"],wt.SSO,vt.NOK)},"keyIndicator_10")]}),s==Po.users&&t.enableUserSync&&e.jsxs(e.Fragment,{children:[e.jsx(Xn,{action:xt["wpo365/user/created"],category:wt.SYNC,status:vt.OK,period:v,title:"Users created successfully (SYNC)",summaryValue:Qn(h,xt["wpo365/user/created"],wt.SYNC,vt.OK)},"keyIndicator_11"),e.jsx(Xn,{action:xt["wpo365/user/created"],category:wt.SYNC,status:vt.NOK,period:v,title:"Users not created successfully (SYNC)",summaryValue:Qn(h,xt["wpo365/user/created"],wt.SYNC,vt.NOK)},"keyIndicator_12"),e.jsx(Xn,{action:xt["wpo365/user/updated"],category:wt.SYNC,status:vt.OK,period:v,title:"Users updated successfully (SYNC)",summaryValue:Qn(h,xt["wpo365/user/updated"],wt.SYNC,vt.OK)},"keyIndicator_13"),e.jsx(Xn,{action:xt["wpo365/user/updated"],category:wt.SYNC,status:vt.NOK,period:v,title:"Users not updated successfully (SYNC)",summaryValue:Qn(h,xt["wpo365/user/updated"],wt.SYNC,vt.NOK)},"keyIndicator_14")]}),s==Po.users&&t.enableScim&&e.jsxs(e.Fragment,{children:[e.jsx(Xn,{action:xt["wpo365/user/created"],category:wt.SCIM,status:vt.OK,period:v,title:"Users created successfully (SCIM)",summaryValue:Qn(h,xt["wpo365/user/created"],wt.SCIM,vt.OK)},"keyIndicator_15"),e.jsx(Xn,{action:xt["wpo365/user/created"],category:wt.SCIM,status:vt.NOK,period:v,title:"Users not created successfully (SCIM)",summaryValue:Qn(h,xt["wpo365/user/created"],wt.SCIM,vt.NOK)},"keyIndicator_16"),e.jsx(Xn,{action:xt["wpo365/user/updated"],category:wt.SCIM,status:vt.OK,period:v,title:"Users updated successfully (SCIM)",summaryValue:Qn(h,xt["wpo365/user/updated"],wt.SCIM,vt.OK)},"keyIndicator_17"),e.jsx(Xn,{action:xt["wpo365/user/updated"],category:wt.SCIM,status:vt.NOK,period:v,title:"Users not updated successfully (SCIM)",summaryValue:Qn(h,xt["wpo365/user/updated"],wt.SCIM,vt.NOK)},"keyIndicator_18")]})]})}),e.jsx(U.Item,{grow:0,children:e.jsxs("div",{style:vP,children:[e.jsx("strong",{children:"Disclaimer"})," No claims can be made based on this information."]})})]}),e.jsx(vg,{headerText:"Configure WPO365 Alerts",isOpen:C,onDismiss:()=>k(!1),closeButtonAriaLabel:"Close",children:e.jsx(mP,{})}),N&&e.jsx(fP,{toggleUpgradePopup:Y})]})},SP={maxWidth:"400px",color:"#cc0000"},CP=o=>{const{env:s,env:{props:{extensions:n}},settings:t,settings:{hidePremiumOptions:i},updateSettings:d}=D.useContext(Ye),[c,u]=D.useState({insightsEnabled:t.insightsEnabled,insightsAnonymized:t.insightsAnonymized,insightsWidgetHidden:t.insightsWidgetHidden}),[h,g]=D.useState(null),[w,m]=D.useState(we.initial),[x,_]=D.useState(!1),v=async()=>{g(null),m(we.saving);const C={...t};C.insightsEnabled=c.insightsEnabled,C.insightsAnonymized=c.insightsAnonymized,C.insightsWidgetHidden=c.insightsWidgetHidden;try{const k=await Fe.updateSettings(s,C);if(k.success){const L=await Fe.getSettings(s);d(L),g(null),m(we.success)}else g(k.message)}catch{g("Unknown error occured whilst updating settings [check F12 > console for technical details]"),m(we.error)}},b=async()=>{m(we.saving);const C=new FormData;C.append("action","wpo365_truncate_insights_data"),C.append("nonce",s.nonce),C.append("ina",window.wpo365.wizard.props.ina);let k;try{k=await Ee.post(s.wpAjaxAdminUrl,C)}catch(L){m(we.initial),g(L.message);return}if(m(we.initial),k.status>=200&&k.status<300&&k.data&&k.data.status){k.data.status=="NOK"&&g(k.data.message);return}g(`Error occured (HTTP status ${k.status})`)};return D.useEffect(()=>{x&&v().then(()=>_(!1))},[x]),D.useEffect(()=>{(t.insightsEnabled!=c.insightsEnabled||t.insightsAnonymized!=c.insightsAnonymized||t.insightsWidgetHidden!=c.insightsWidgetHidden)&&_(!0)},[c]),e.jsxs(U,{tokens:{childrenGap:15},styles:{root:{marginRight:"80px"}},children:[e.jsxs("div",{style:{lineHeight:"1.2rem",marginTop:"1rem",marginBottom:"0.6rem",width:"80%"},children:[e.jsx("strong",{children:"See what matters, when it happens"})," Track key WPO365 events like logins, sent emails and user creation and updates."," ",e.jsx("a",{href:"https://docs.wpo365.com/article/210-wpo365-insights",target:"_blank",children:"Read more"})]}),e.jsxs("div",{children:[e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},children:[e.jsx(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},children:e.jsx("div",{children:"Enable"})}),e.jsx(Mn,{styles:{root:{marginBottom:"0px",marginRight:"10px"},label:{fontWeight:400}},checked:c.insightsEnabled,onChange:(C,k)=>u({...c,insightsEnabled:k}),inlineLabel:!0}),c.insightsEnabled&&e.jsxs(e.Fragment,{children:[e.jsx(ce,{onChange:(C,k)=>u({...c,insightsAnonymized:k}),checked:c.insightsAnonymized}),e.jsx("span",{children:"Anonymize"})]}),e.jsx(el,{iconProps:{iconName:"Delete"},onClick:b,children:"Truncate"}),e.jsx(ce,{onChange:(C,k)=>u({...c,insightsWidgetHidden:k}),checked:c.insightsWidgetHidden}),e.jsx("span",{children:"Hide Widget"}),w==we.saving&&e.jsx(Oe,{size:Te.small})]}),!!h&&e.jsx("span",{style:SP,children:h})]}),t.insightsEnabled&&e.jsxs(U,{horizontal:!0,wrap:!0,tokens:{childrenGap:15},children:[e.jsx(gf,{eventType:Po.alerts,title:"ALERTS"},"insightsCard_1"),(t.useGraphMailer||n.some(C=>l.wpo365MsGraphMailer))&&e.jsx(gf,{eventType:Po.mail,title:"MAIL"},"insightsCard_2"),n.some(C=>C==l.wpo365Login)&&e.jsx(gf,{eventType:Po.login,title:"LOGIN"},"insightsCard_2"),(!t.noSso&&t.createAndAddUsers||t.enableUserSync||t.enableScim)&&e.jsx(gf,{eventType:Po.users,title:"USERS"},"insightsCard_3")]})]})},_f=o=>{const{isGraphMailer:s,showInsights:n}=o,{showWpoHealthMessages:t,setShowWpoHealthMessages:i}=D.useContext(Ye),[d,c]=D.useState(""),[u,h]=D.useState("");return D.useEffect(()=>{Bw("latest-news",!0).then(g=>{if(g instanceof Error){console.log(g.message);return}c(g)}),Bw("change-log",!0).then(g=>{if(g instanceof Error){console.log(g.message);return}h(g)})},[]),e.jsx(e.Fragment,{children:e.jsx("div",{className:j.wpo365WzMain,children:e.jsxs("table",{className:j.wpo365WzTable,style:{width:"unset"},children:[e.jsxs("colgroup",{children:[e.jsx("col",{style:{width:"64%"}}),e.jsx("col",{style:{width:"32%"}})]}),e.jsxs("tbody",{children:[e.jsxs("tr",{style:{height:"43px"},children:[e.jsx("td",{style:{display:"flex"},children:e.jsxs(U,{styles:{root:{marginBottom:"7px"}},horizontal:!0,tokens:{childrenGap:15},children:[e.jsx(et,{primary:!n,text:"Features",onClick:g=>{location.hash="#/dashboard",g.preventDefault(),g.stopPropagation()}}),e.jsx(et,{primary:!!n,text:"Insights",onClick:g=>{location.hash="#/insights",g.preventDefault(),g.stopPropagation()}}),e.jsx(et,{text:"WPO365 Health Messages",onClick:()=>i(!t)})]})}),e.jsx("td",{rowSpan:2,children:e.jsxs(U,{tokens:{childrenGap:15},children:[e.jsxs(U,{style:Qr,children:[e.jsx("div",{style:gx,children:e.jsx("h3",{style:{color:"white",textAlign:"center"},children:"NEWS"})}),e.jsx("div",{style:eo,dangerouslySetInnerHTML:{__html:d}})]}),e.jsxs(U,{style:Qr,children:[e.jsx("div",{style:gx,children:e.jsx("h3",{style:{color:"white",textAlign:"center"},children:"CHANGE LOG"})}),e.jsx("div",{style:eo,dangerouslySetInnerHTML:{__html:u}})]})]})})]}),e.jsx("tr",{children:e.jsx("td",{children:n?e.jsx(CP,{}):e.jsx(hP,{mailDashboard:s})})}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx(Ho,{})})})]})]})})})},wx={search:"Search",hasResults:"About {0} results",hasNoResults:"No results",moreResults:"More results",directReports:"People reporting to",noDirectReports:"has no direct reports"},yf={minWidth:"400px",minHeight:"100px",padding:"2px",fontSize:"80%"},vx={width:"400px"},kP=o=>{const{env:s,env:{props:{extensions:n,wpConfigMultiple:t}},settings:i,settings:{hidePremiumOptions:d},updateSettings:c}=D.useContext(Ye),[u,h]=D.useState({additionalInfo:null,autoSearch:!1,autoSearchQuery:"/users?$filter=accountEnabled eq true and userType eq 'member'",cacheKey:Zt(6),copyButtonCaption:he.capCopyShortcodeButton,emailProperty:"mail",getUserPhoto:!0,hideMessageBar:!1,hidePaging:!1,hideSearchBox:!1,imProperty:"imAddresses",metaHtml:"",minQueryLength:2,mobilePhoneProperty:"mobilePhone",pageSize:10,primaryHtml:"__##displayName##__",query:`/users?$count=true&$search="displayName:{searchterms}" OR "department:{searchterms}" OR "mail:{searchterms}"&$filter=accountEnabled eq true and userType eq 'member'`,queryTemplate:"",scriptSrc:Ao("wizard.js").replace("wpo365-login/apps/dist/wizard.js",s.props.extensions.some(_=>_==l.wpo365LoginIntranet||_==l.wpo365Intranet5y||_==l.wpo365Apps||_==l.wpo365Integrate)?`wpo365-${s.props.extensions.some(_=>_==l.wpo365LoginIntranet)?"login-intranet":s.props.extensions.some(_=>_==l.wpo365Intranet5y)?"intranet-5y":s.props.extensions.some(_=>_==l.wpo365Integrate)?"integrate":"apps"}/apps/dist/contacts.js`:"wpo365-login/apps/dist/edBasic.js"),secondaryHtml:"__##jobTitle##__",selectProperties:"",sharePointHome:"",sharePointHomeError:!1,sharePointQuery:"?querytext='{searchterms}'&sourceid='b09a7990-05ea-4af9-81ef-edfab16c4e31'&clienttype='ContentSearchRegular'",showContactActionButtons:!0,templateUrl:Ao("wizard.js").replace("wpo365-login/apps/dist/wizard.js",s.props.extensions.some(_=>_==l.wpo365LoginIntranet||_==l.wpo365Intranet5y||_==l.wpo365Apps||_==l.wpo365Integrate)?`wpo365-${s.props.extensions.some(_=>_==l.wpo365LoginIntranet)?"login-intranet":s.props.extensions.some(_=>_==l.wpo365Intranet5y)?"intranet-5y":s.props.extensions.some(_=>_==l.wpo365Integrate)?"integrate":"apps"}/apps/dist/templates/contacts-v2.intranet.list.template.html`:""),tertiaryHtml:"__##department##__",translations:wx,useBasicEdTemplate:!1,useDefaultSelectProperties:!0,useSharePoint:!1,useTeams:!0,useTemplate:s.props.extensions.some(_=>_==l.wpo365LoginIntranet||_==l.wpo365Intranet5y||_==l.wpo365Apps||_==l.wpo365Integrate),useV2:!0,workPhoneProperty:"businessPhones"});let g=D.useRef(null);D.useEffect(()=>{if(!u.useSharePoint||u.sharePointHome)return;let _=null,v=null;try{eS(tS("https://graph.microsoft.com/v1.0/sites/root","https://graph.microsoft.com/Sites.Read.All")).then(b=>{v=b,b.webUrl&&h({...u,sharePointHome:b.webUrl,sharePointHomeError:!1})}).catch(b=>{_=b});return}catch(b){_=b}console.error(_),console.error(v),h({...u,sharePointHome:"",sharePointHomeError:!0})},[u.useSharePoint]);const w=_=>{var v=wx;const b=()=>{h({...u,additionalInfo:null})};try{v=JSON.parse(_)}catch{h({...u,additionalInfo:{title:"Error",subText:"Your translations are not properly formatted as JSON and your changes have been reverted.",onDismiss:()=>b,onConfirm:()=>b}}),g.current.value=JSON.stringify(v,null,2),g.current.style.backgroundColor="initial",g.current.focus()}h({...u,translations:v})},m=async _=>{await Fe.updateSettings(s,_);const v=await Fe.getSettings(s);c(v),h({...u,cacheKey:Zt(6)})},x=()=>{document.getElementsByClassName("pintraEdShortCode")[0].select(),document.execCommand("copy"),h({...u,copyButtonCaption:he.capCopyShortcodeButtonSuccess}),setTimeout(()=>h({...u,copyButtonCaption:he.capCopyShortcodeButton}),3e3)};return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:j.wpo365WzMain,children:e.jsxs("table",{className:j.wpo365WzTable,children:[e.jsxs("colgroup",{children:[e.jsx("col",{width:"50%"}),e.jsx("col",{width:"50%"})]}),e.jsxs("tbody",{children:[e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("div",{dangerouslySetInnerHTML:{__html:`<p>To create the shortcode you can use this generator. Simply configure the options and copy the shortcode to the clipboard. Then all 
                             you need to do is to add the shortcode to a page and you're ready!</p>
                             <p>Please consult the <a href="https://docs.wpo365.com/article/111-employee-directory-and-contacts" target="_blank">online documentation</a>
                             for instructions on how to generate a shortcode and place it on any WordPress post or page.</p>`}})})}),t&&e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("p",{style:{width:"50%"},children:e.jsx(Jr,{messageBarType:Be.blocked,isMultiline:!0,truncated:!0,overflowButtonAriaLabel:"Read more",children:"It appears that you have configured multiple Identity Providers. Embedding content from a Microsoft 365 service for the logged-in user will not work as expected, unless you configure support for anonymous users (premium)."})})})}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsxs("h3",{className:j.wpo365WzSectionTitle,children:["The ",e.jsx("em",{children:"Users"})," Query"]})})}),e.jsx(e.Fragment,{children:(!d||n.some(_=>[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate].some(v=>v==_)))&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:"Use SharePoint People Search (instead of Microsoft Graph)"}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(_,v)=>h({...u,useSharePoint:v}),checked:u.useSharePoint})})})})]}),!u.useSharePoint&&e.jsx(e.Fragment,{children:e.jsxs("tr",{children:[e.jsx("th",{children:"Microsoft Graph Query"}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzColumnifier,children:e.jsx(fe,{bound:!1,isValid:(_,v)=>v.indexOf("/users")==0||v.indexOf("/groups")==0,onValid:_=>h({...u,query:_}),value:u.query,errorMessage:"Must start with /users or /groups",placeholder:'e.g. /users?$count=true&$search="displayName:{searchTerms}"'})})})})]})}),u.useSharePoint&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:"Your SharePoint Home URL"}),e.jsx("td",{children:e.jsxs("div",{className:j.wpo365WzColumnifier,children:[u.sharePointHomeError&&e.jsx(Jr,{messageBarType:Be.warning,isMultiline:!1,dismissButtonAriaLabel:"Close",children:"Please enter the your SharePoint Home URL e.g. https://yourtenantname.sharepoint.com/ manually."}),e.jsx(fe,{bound:!1,isValid:(_,v)=>v.indexOf("https://")===0,onValid:_=>{h({...u,sharePointHome:_})},errorMessage:"SharePoint Home must start with https e.g. https://your-tenant.sharepoint.com",value:u.sharePointHome,disabled:u.sharePointHomeError})]})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Request for SharePoint Search REST API"}),e.jsx("td",{children:e.jsxs(re,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:[e.jsx("p",{children:`${u.sharePointHome}/_api/search/query`}),e.jsx("textarea",{style:yf,value:u.sharePointQuery,onChange:_=>h({...u,sharePointQuery:_.target.value})})]})})]})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Results per page"}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzColumnifier,children:e.jsx(fe,{bound:!1,isValid:(_,v)=>{const b=parseInt(v);return v===b.toString()&&b>0&&b<50},onValid:_=>h({...u,pageSize:parseInt(_)}),errorMessage:"pageSize must be number greater than 0 and smaller than 50",value:String(u.pageSize)})})})})]}),!u.useDefaultSelectProperties&&e.jsxs("tr",{children:[e.jsxs("th",{children:["Select"," ",e.jsx("a",{href:"https://docs.microsoft.com/en-us/graph/api/resources/user?view=graph-rest-beta#properties",target:"_blank",children:"properties"})]}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzColumnifier,children:e.jsx(fe,{bound:!1,isValid:(_,v)=>!v||/(^([a-z]+)$)|(^([a-z]+)(,[a-z]+)*(,[a-z]+)$)/i.test(v),onValid:_=>h({...u,selectProperties:_}),value:u.selectProperties,errorMessage:"Comma seperated properties without a space",placeholder:"e.g. givenName,surname,jobTitle,department"})})})})]})]})}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Template"})})}),(!d||n.some(_=>[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate].some(v=>v==_)))&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsxs("th",{children:["Use (",e.jsx("a",{href:"https://handlebarsjs.com/",target:"_blank",children:"Handlebars"}),") template"]}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(_,v)=>{h({...u,useTemplate:v,scriptSrc:v?Ao("wizard.js").replace("wpo365-login/apps/dist/wizard.js",`wpo365-${n.some(b=>b==l.wpo365LoginIntranet)?"login-intranet":n.some(b=>b==l.wpo365Intranet5y)?"intranet-5y":n.some(b=>b==l.wpo365Integrate)?"integrate":"apps"}/apps/dist/contacts.js`):Ao("wizard.js").replace("wpo365-login/apps/dist/wizard.js",`wpo365-${n.some(b=>b==l.wpo365LoginIntranet)?"login-intranet":n.some(b=>b==l.wpo365Intranet5y)?"intranet-5y":n.some(b=>b==l.wpo365Integrate)?"integrate":"apps"}/apps/dist/ed.js`),templateUrl:v?Ao("wizard.js").replace("wpo365-login/apps/dist/wizard.js",`wpo365-${n.some(b=>b==l.wpo365LoginIntranet)?"login-intranet":n.some(b=>b==l.wpo365Intranet5y)?"intranet-5y":n.some(b=>b==l.wpo365Integrate)?"integrate":"apps"}/apps/dist/templates/contacts-v2.intranet.list.template.html`):""})},checked:u.useTemplate})})})})]}),u.useTemplate&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:"Use basic Employee Directory template"}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(_,v)=>{h({...u,useBasicEdTemplate:v,scriptSrc:v?Ao("wizard.js").replace("wpo365-login/apps/dist/wizard.js",`wpo365-${n.some(b=>b==l.wpo365LoginIntranet)?"login-intranet":n.some(b=>b==l.wpo365Intranet5y)?"intranet-5y":n.some(b=>b==l.wpo365Integrate)?"integrate":"apps"}/apps/dist/ed.js`):Ao("wizard.js").replace("wpo365-login/apps/dist/wizard.js",`wpo365-${n.some(b=>b==l.wpo365LoginIntranet)?"login-intranet":n.some(b=>b==l.wpo365Intranet5y)?"intranet-5y":n.some(b=>b==l.wpo365Integrate)?"integrate":"apps"}/apps/dist/contacts.js`),templateUrl:v?Ao("wizard.js").replace("wpo365-login/apps/dist/wizard.js",`wpo365-${n.some(b=>b==l.wpo365LoginIntranet)?"login-intranet":n.some(b=>b==l.wpo365Intranet5y)?"intranet-5y":n.some(b=>b==l.wpo365Integrate)?"integrate":"apps"}/apps/dist/templates/ed.intranet.list.template.html`):Ao("wizard.js").replace("wpo365-login/apps/dist/wizard.js",`wpo365-${n.some(b=>b==l.wpo365LoginIntranet)?"login-intranet":n.some(b=>b==l.wpo365Intranet5y)?"intranet-5y":n.some(b=>b==l.wpo365Integrate)?"integrate":"apps"}/apps/dist/templates/contacts-v2.intranet.list.template.html`)})},checked:u.useBasicEdTemplate})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Template"}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzColumnifier,children:e.jsx(fe,{bound:!1,isValid:(_,v)=>!0,onValid:_=>h({...u,templateUrl:_}),value:u.templateUrl})})})})]})]}),!u.useTemplate&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:"Primary text"}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzColumnifier,children:e.jsx(fe,{bound:!1,isValid:(_,v)=>!0,onValid:_=>h({...u,primaryHtml:_}),value:u.primaryHtml})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Secondary text"}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzColumnifier,children:e.jsx(fe,{bound:!1,isValid:(_,v)=>!0,onValid:_=>h({...u,secondaryHtml:_}),value:u.secondaryHtml})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Tertiary text"}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzColumnifier,children:e.jsx(fe,{bound:!1,isValid:(_,v)=>!0,onValid:_=>h({...u,tertiaryHtml:_}),value:u.tertiaryHtml})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Meta text"}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzColumnifier,children:e.jsx(fe,{bound:!1,isValid:(_,v)=>!0,onValid:_=>h({...u,metaHtml:_}),value:u.metaHtml})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Include contact action buttons"}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(_,v)=>h({...u,showContactActionButtons:v}),checked:u.showContactActionButtons})})})})]}),u.showContactActionButtons&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:"Mobile phone property"}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzColumnifier,children:e.jsx(fe,{bound:!1,isValid:(_,v)=>!0,onValid:_=>h({...u,mobilePhoneProperty:_}),value:u.mobilePhoneProperty})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Work phone property"}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzColumnifier,children:e.jsx(fe,{bound:!1,isValid:(_,v)=>!0,onValid:_=>h({...u,workPhoneProperty:_}),value:u.workPhoneProperty})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"IM property"}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzColumnifier,children:e.jsx(fe,{bound:!1,isValid:(_,v)=>!0,onValid:_=>h({...u,imProperty:_}),value:u.imProperty})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Email property"}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzColumnifier,children:e.jsx(fe,{bound:!1,isValid:(_,v)=>!0,onValid:_=>h({...u,emailProperty:_}),value:u.emailProperty})})})})]})]})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Try retrieve user photo"}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(_,v)=>h({...u,getUserPhoto:v}),checked:u.getUserPhoto})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Hide search box"}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(_,v)=>h({...u,hideSearchBox:v}),checked:u.hideSearchBox})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Hide message bar"}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(_,v)=>h({...u,hideMessageBar:v}),checked:u.hideMessageBar})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Hide paging"}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(_,v)=>h({...u,hidePaging:v}),checked:u.hidePaging})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Translations"}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("textarea",{style:yf,ref:_=>g.current=_,defaultValue:JSON.stringify(u.translations,null,2),onBlur:_=>w(_.target.value),onChange:_=>{try{JSON.parse(_.target.value),_.target.style.backgroundColor="initial"}catch{_.target.style.backgroundColor="#FFCCCC"}}})})})]})]}),!u.useTemplate&&e.jsxs("tr",{children:[e.jsx("th",{children:"Use Teams instead of Skype (IM)"}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(_,v)=>h({...u,useTeams:v}),checked:u.useTeams})})})})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Triggers"})})}),(!d||n.some(_=>[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate].some(v=>v==_)))&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:"Auto search"}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(_,v)=>h({...u,autoSearch:v}),checked:u.autoSearch})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Min. input length"}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzColumnifier,children:e.jsx(fe,{bound:!1,isValid:(_,v)=>{const b=parseInt(v);return v===b.toString()&&b>0&&b<5},onValid:_=>h({...u,minQueryLength:parseInt(_)}),errorMessage:"minQueryLength must be number greater than 0 and smaller than 5",value:String(u.minQueryLength)})})})})]})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Shortcode"})})}),e.jsxs("tr",{children:[e.jsx("th",{children:"Shortcode"}),e.jsxs("td",{children:[n.some(_=>[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate].some(v=>v==_))&&e.jsx("textarea",{style:yf,readOnly:!0,value:`[pintra props="useV2,${u.useV2?"true":"false"};useSharePoint,${u.useSharePoint?"true":"false"};sharePointHome,${u.sharePointHome};sharePointQuery,${encodeURI(u.sharePointQuery)};pageSize,${u.pageSize};minQueryLength,${u.minQueryLength};hideMessageBar,${u.hideMessageBar?"true":"false"};hideSearchBox,${u.hideSearchBox?"true":"false"};hidePaging,${u.hidePaging?"true":"false"};primaryHtml,${u.primaryHtml};secondaryHtml,${u.secondaryHtml};tertiaryHtml,${u.tertiaryHtml};metaHtml,${u.metaHtml};showContactActionButtons,${u.showContactActionButtons?"true":"false"};workPhoneProperty,${u.workPhoneProperty};mobilePhoneProperty,${u.mobilePhoneProperty};emailProperty,${u.emailProperty};imProperty,${u.imProperty};getUserPhoto,${u.getUserPhoto?"true":"false"};useTeams,${u.useTeams?"true":"false"};query,${encodeURI(u.query)};autoSearchQuery,${encodeURI(u.autoSearchQuery)};queryTemplate,${u.queryTemplate};selectProperties,${u.useDefaultSelectProperties?"":u.selectProperties.trim().split(",").join("|")};autoSearch,${u.autoSearch?"true":"false"};useTemplate,${u.useTemplate?"true":"false"};templateUrl,${u.templateUrl};translations,${encodeURIComponent(JSON.stringify(u.translations))}" script_url="${u.scriptSrc}"]`,className:"pintraEdShortCode"}),!n.some(_=>[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate].some(v=>v==_))&&e.jsx("textarea",{style:yf,readOnly:!0,value:`[pintra props="useV2,${u.useV2?"true":"false"};useTeams,${u.useTeams?"true":"false"};translations,${encodeURIComponent(JSON.stringify(u.translations))}" script_url="${u.scriptSrc}"]`,className:"pintraEdShortCode"})]})]}),u.useV2&&!i.enableGraphApi&&e.jsxs("tr",{children:[e.jsx("th",{}),e.jsx("td",{children:e.jsxs("div",{className:j.wpo365WzColumnifier,style:vx,children:[e.jsxs("p",{children:["Please enable the ",e.jsx("em",{children:"WPO365 API for Microsoft Graph"})," by checking the corresponding option on the"," ",e.jsx("a",{href:"#integration",children:"Integration"})," page or by clicking the ",e.jsx("em",{children:"Fix now!"})," button below."]}),e.jsx("div",{className:j.wpo365WzRowifier}),e.jsx(et,{onClick:async()=>{h({...u,fixing:"graphApi"}),await m({...i,enableGraphApi:!0}),h({...u,fixing:null})},style:{minWidth:"400px",minHeight:"30px"},children:"Fix now!"}),u.fixing=="graphApi"&&e.jsx(Oe,{size:Te.small}),e.jsx("div",{className:j.wpo365WzRowifier})]})})]}),u.useV2&&i.pagesBlacklist.filter(_=>_.indexOf("/wp-json/wpo365/v1")>-1).length===0&&e.jsxs("tr",{children:[e.jsx("th",{}),e.jsx("td",{children:e.jsxs("div",{className:j.wpo365WzColumnifier,style:vx,children:[e.jsxs("p",{children:["Please add the ",e.jsx("em",{children:"WPO365 API for Microsoft Graph"})," path '/wp-json/wpo365/v1/' to the list of pages freed from authentication on the ",e.jsx("a",{href:"#singleSignOn",children:"Single Sign-on"})," page or click the ",e.jsx("em",{children:"Fix now!"})," button below."]}),e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx(et,{onClick:async()=>{h({...u,fixing:"allowListGraphApiPath"});const _=i.pagesBlacklist.filter(v=>!0);_.push("/wp-json/wpo365/v1/"),await m({...i,pagesBlacklist:_}),h({...u,fixing:null})},style:{minWidth:"400px",minHeight:"30px"},children:"Fix now!"}),u.fixing=="allowListGraphApiPath"&&e.jsx(Oe,{size:Te.small})]})]})})]}),!u.useV2||u.useV2&&i.enableGraphApi&&i.pagesBlacklist.filter(_=>_.indexOf("/wp-json/wpo365/v1/")>-1).length>0&&e.jsxs("tr",{children:[e.jsx("th",{}),e.jsx("td",{children:e.jsx(et,{onClick:x,iconProps:{iconName:"Copy"},style:{minWidth:"400px",minHeight:"30px"},children:u.copyButtonCaption})})]})]}),e.jsx("tbody",{children:e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx(Ho,{})})})})]})}),u.additionalInfo&&e.jsx(Bo,{onCancel:u.additionalInfo.onCancel,onConfirm:u.additionalInfo.onConfirm,onDismiss:u.additionalInfo.onDismiss,title:u.additionalInfo.title,subText:u.additionalInfo.subText})]})},MP=o=>{const{dismiss:s}=o,{env:n,env:{props:{extensions:t}},settings:i,settings:{hidePremiumOptions:d},updateSettings:c}=D.useContext(Ye),u=R=>{const H=JSON.parse(JSON.stringify(R));return delete H.name,delete H.configurations,H},[h,g]=D.useState(void 0),[w,m]=D.useState(!1),[x,_]=D.useState(JSON.stringify(u(i),null,2));D.useEffect(()=>{_(JSON.stringify(u(i),null,2))},[i]);const[v,b]=D.useState(void 0),[C,k]=D.useState(we.initial),[L,T]=D.useState(!1),N=D.useRef(void 0),Y=R=>{let H=null;try{H=JSON.parse(R),b(void 0)}catch(W){b(`Could not parse the configuration as JSON [${W}]`)}return JSON.stringify(H)},A=async()=>{if(!t.some(H=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(W=>W==H))){T(!0);return}k(we.saving),b(void 0),Y(x);const R=JSON.parse(x);if(v){k(we.initial);return}try{if(R.name=h||i.name,R.configurations=i.configurations,(await Fe.updateSettings(n,R,!0)).success){const W=await Fe.getSettings(n);c(W),b(void 0),k(we.success),g(void 0),m(!1)}else throw"Unknown error occured whilst updating configuration [check F12 > console for technical details]"}catch(H){b(`Could not save the configuration [${H.message}]`),k(we.initial)}s&&setTimeout(()=>{s()},500)},I=()=>{try{N.current.select(),document.execCommand("copy"),N.current.focus()}catch(R){b(`Could not copy configuration to clipboard [${R.message}]`)}};return e.jsxs("div",{className:j.jsonEditor,children:[e.jsx(Kp,{className:j.jsonTextArea,multiline:!0,rows:10,label:"Configuration source",style:{backgroundColor:v?"#FFCCCC":"initial"},value:x,onChange:(R,H)=>{H!=x&&(Y(H),_(H))},componentRef:N}),e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("div",{className:j.toolbarItem,children:e.jsx(et,{disabled:!!v,onClick:()=>I(),children:"Copy to clipboard"})}),!t.some(R=>[l.wpo365MsGraphMailer].some(H=>H==R))&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:j.toolbarItem,children:e.jsx(et,{disabled:!!v||!t.some(R=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(H=>H==R)),onClick:()=>t.some(R=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(H=>H==R))&&m(!w),children:w?"Cancel":"Save as"})}),w&&e.jsx("div",{className:j.toolbarItem,children:e.jsx(Kp,{styles:{fieldGroup:{width:"144px"}},disabled:!!v||!t.some(R=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(H=>H==R)),placeholder:"Enter name for configuration",value:h,onChange:(R,H)=>g(H)})}),e.jsx("div",{className:j.toolbarItem,children:e.jsx(et,{disabled:!!v,onClick:()=>A(),children:"Save"})}),s&&e.jsx("div",{className:j.toolbarItem,children:e.jsx(et,{disabled:!!v,onClick:()=>s(),children:"Cancel"})}),C==we.saving&&e.jsx("div",{style:{paddingLeft:"10px"},children:e.jsx(Oe,{size:Te.small})})]})]}),v&&e.jsx("div",{children:e.jsx("span",{className:j.wpo365WzError,children:v})}),C==we.success&&e.jsx("div",{children:e.jsx("span",{children:"Configuration was saved successfully"})}),L&&e.jsx("div",{className:j.toolbarItem,children:e.jsxs("span",{children:["Available for:"," ",e.jsx("a",{href:"https://www.wpo365.com/downloads/wordpress-office-365-login-premium/",target:"_blank",children:"SYNC"})," ",e.jsx("a",{href:"https://www.wpo365.com/downloads/wordpress-office-365-login-intranet/",target:"_blank",children:"INTRANET"})]})})]})},jP=o=>{const{env:s,env:{props:{extensions:n,wpmu:t,wpConfigMultiple:i,wpConfigAad:d,wpConfigOverrides:c}},settings:u,settings:{hidePremiumOptions:h},updateSettings:g}=D.useContext(Ye),[w,m]=D.useState(null),[x,_]=D.useState(void 0),[v,b]=D.useState(we.initial),[C,k]=D.useState(void 0),[L,T]=D.useState(we.initial),[N,Y]=D.useState({status:we.initial,options:null}),[A,I]=D.useState(null),[R,H]=D.useState(null),[W,K]=D.useState(null),[Z,Q]=D.useState(we.initial),[B,P]=D.useState(void 0),X=async()=>{eh.TokenCache.clearTokenCache();const z=new FormData;z.append("action","wpo365_delete_tokens"),z.append("nonce",s.nonce),z.append("ina",window.wpo365.wizard.props.ina);let J;try{J=await Ee.post(s.wpAjaxAdminUrl,z)}catch(ee){throw ee}if(!(J.status==200&&J.data&&J.data.status&&J.data.status=="OK"))throw"Unknown error occurred whilst deleting the access and refresh tokens for Microsoft Graph."},$=async(z,J)=>{if(k(void 0),u.name&&u.name==J.key)return;if(T(we.saving),!Array.isArray(u.configurations)){k("There are no configurations to choose from."),T(we.initial);return}const ee=Ja(u.configurations,te=>te.name&&te.name==J.key);if(ee==-1){k("Could not find the requested configuration."),T(we.initial);return}const me={...u.configurations[ee]};me.configurations=[...u.configurations];try{await Fe.updateSettings(s,me,!0);const te=await Fe.getSettings(s);g(te);const G=await X();k(void 0),T(we.success)}catch(te){k(`Failed to update the configuration [${te.message}].`),T(we.initial);return}},ie=async()=>{m({title:"Important",subText:"You are about to delete the WPO365 configuration. This action is irreversible. After deleting the settings you can re-configure the plugin.",onDismiss:()=>m(null),onCancel:()=>m(null),onConfirm:async()=>{if(_(void 0),b(we.saving),Array.isArray(u.configurations)&&u.configurations.length>1&&u.name){const me=Ja(u.configurations,te=>te.name==u.name);if(me>-1){const te=[...u.configurations];te.splice(me,1);const G={...te[0]};G.configurations=te;try{const ne=await Fe.updateSettings(s,G);window.location.reload();return}catch(ne){m(null),_(`Failed to delete settings [${ne.message}].`),b(we.initial);return}}}eh.TokenCache.clearTokenCache();const J=new FormData;J.append("action","wpo365_delete_settings"),J.append("nonce",s.nonce),J.append("ina",window.wpo365.wizard.props.ina);let ee;try{ee=await Ee.post(s.wpAjaxAdminUrl,J)}catch(me){m(null),_(`Failed to delete settings [${me.message}].`),b(we.initial);return}if(ee.status==200&&ee.data&&ee.data.status&&ee.data.status=="OK"){window.location.reload();return}m(null),_("Unknown error occurred [server did not report success]"),b(we.initial)}})},le=async(z=!1)=>{Y({status:we.saving,options:z?"aad":"overrides"}),I(null);const J=new FormData;J.append("action","wpo365_get_parseable_options"),J.append("nonce",s.nonce),J.append("aad_options_only",z.toString()),J.append("ina",window.wpo365.wizard.props.ina);let ee;try{ee=await Ee.post(s.wpAjaxAdminUrl,J)}catch(me){Y({status:we.initial,options:z?"aad":"overrides"}),I(me.message);return}if(Y({status:we.initial,options:z?"aad":"overrides"}),ee.status>=200&&ee.status<300&&ee.data&&ee.data.status){if(ee.data.status=="OK"&&ee.data.result){z?K(atob(ee.data.result)):H(atob(ee.data.result));return}I(ee.data.message);return}I(`Error occured (HTTP status ${ee.status})`)},V=async()=>{Q(we.saving),P(void 0);const z=new FormData;z.append("action","wpo365_copy_main_site_options"),z.append("nonce",s.nonce),z.append("ina",window.wpo365.wizard.props.ina);let J;try{if(J=await Ee.post(s.wpAjaxAdminUrl,z),J.status>=200&&J.status<300&&J.data.status=="OK"){const ee=await Fe.getSettings(s);g(ee),Q(we.initial);return}throw"Unknown error occurred when trying to copy the WPO365 from WPMU Network Admin"}catch(ee){P(ee.message)}Q(we.initial)};return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:j.wpo365WzMain,children:e.jsxs("table",{className:j.wpo365WzTable,children:[e.jsxs("colgroup",{children:[e.jsx("col",{width:"50%"}),e.jsx("col",{width:"50%"})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Manage configuration(s)"})})}),e.jsx("tr",{children:e.jsxs("td",{colSpan:2,children:["Depending on purchased bundles this page allows you to:",e.jsxs("ul",{children:[e.jsx("li",{children:"Copy the current configuration to the clipboard."}),e.jsx("li",{children:"Save the current configuration under a new name and by doing so create multiple configurations that can be changed independently from one another."}),e.jsx("li",{children:"Change the current configuration by selecting one of the previously saved configurations."}),e.jsx("li",{children:"Edit the configuration's JSON and save it."}),e.jsx("li",{children:"Delete all configurations."})]})]})}),(!h||n.some(z=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(J=>J==z)))&&e.jsxs("tr",{children:[e.jsx("th",{children:"Select current configuration"}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx(qe,{options:u.configurations?u.configurations.map(z=>({key:z.name,text:z.name})):[],selectedKey:u.name?u.name:void 0,onChange:$,placeholder:"Select current configuration",style:{maxWidth:"400px"}}),L==we.saving&&e.jsx("div",{style:{paddingLeft:"10px"},children:e.jsx(Oe,{size:Te.small})})]})})})]}),C&&e.jsxs("tr",{children:[e.jsx("td",{}),e.jsx("td",{children:e.jsx("span",{className:j.wpo365WzError,children:C})})]}),e.jsxs("tr",{children:[e.jsx("td",{children:"Copy / Edit configuration(s)"}),e.jsx("td",{children:e.jsx(MP,{})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Delete current configuration"}),e.jsx("td",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx(et,{onClick:ie,style:{minWidth:"400px",minHeight:"30px"},children:"Delete WPO365 configuration"}),v==we.saving&&e.jsx("div",{style:{paddingLeft:"10px"},children:e.jsx(Oe,{size:Te.small})})]})})]}),x&&e.jsxs("tr",{children:[e.jsx("td",{}),e.jsx("td",{children:e.jsx("span",{className:j.wpo365WzError,children:x})})]}),t=="wpmuDedicated"&&location.href.indexOf("/network/")==-1&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:"Copy central WPO365 configuration (WordPress multisite)"}),e.jsx("td",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx(et,{onClick:V,style:{minWidth:"400px",minHeight:"30px"},children:"Copy options"}),Z==we.saving&&e.jsx("div",{style:{paddingLeft:"10px"},children:e.jsx(Oe,{size:Te.small})})]})})]}),B&&e.jsxs("tr",{children:[e.jsx("td",{}),e.jsx("td",{children:e.jsx("span",{className:j.wpo365WzError,children:B})})]})]}),(!h||n.some(z=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365CustomFields,l.wpo365LoginPlus,l.wpo365Mail,l.wpo365RolesAccess,l.wpo365Scim,l.wpo365Integrate,l.wpo365Pro].some(J=>J==z)))&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:"Export configuration (wp-config.php | WPO_AAD_1)"}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsxs(re,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365CustomFields,l.wpo365LoginPlus,l.wpo365Mail,l.wpo365RolesAccess,l.wpo365Scim,l.wpo365Integrate,l.wpo365Pro],children:[e.jsx(et,{disabled:d||i,onClick:()=>le(!0),style:{minWidth:"400px",minHeight:"30px"},children:"Export configuration"}),N.status==we.saving&&N.options=="aad"&&e.jsx("div",{style:{paddingLeft:"10px"},children:e.jsx(Oe,{size:Te.small})})]})})})]}),W&&e.jsxs("tr",{children:[e.jsx("td",{}),e.jsx("td",{children:e.jsx("a",{href:"data:text/json;charset=utf-8,"+encodeURIComponent(W),download:"wpo365-parseable-aad-options.txt",children:"Download parseable Entra ID options"})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Export configuration (wp-config.php | WPO_OVERRIDES_1)"}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsxs(re,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365CustomFields,l.wpo365LoginPlus,l.wpo365Mail,l.wpo365RolesAccess,l.wpo365Scim,l.wpo365Integrate,l.wpo365Pro],children:[e.jsx(et,{disabled:c,onClick:()=>le(),style:{minWidth:"400px",minHeight:"30px"},children:"Export configuration"}),N.status==we.saving&&N.options=="overrides"&&e.jsx("div",{style:{paddingLeft:"10px"},children:e.jsx(Oe,{size:Te.small})})]})})})]}),R&&e.jsxs("tr",{children:[e.jsx("td",{}),e.jsx("td",{children:e.jsx("a",{href:"data:text/json;charset=utf-8,"+encodeURIComponent(R),download:"wpo365-parseable-overrides.txt",children:"Download parseable options (overrides)"})})]}),A&&e.jsxs("tr",{children:[e.jsx("td",{}),e.jsx("td",{children:e.jsx("span",{className:j.wpo365WzError,children:A})})]})]})]})}),w&&e.jsx(Bo,{onCancel:w.onCancel,onConfirm:w.onConfirm,onDismiss:w.onDismiss,title:w.title,subText:w.subText})]})},LP=o=>{const{disabled:s,errorMessage:n,isValid:t,list:i,onListChanged:d,placeholder:c}=o,[u,h]=D.useState(i?[...i]:[]),[g,w]=D.useState(""),[m,x]=D.useState(!1),[_,v]=D.useState("");return D.useEffect(()=>{JSON.stringify(u)!==JSON.stringify(i)&&d(u)},[u]),e.jsxs(U,{tokens:{childrenGap:10},horizontalAlign:"start",style:{width:"400px"},children:[!s&&e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},style:{width:"100%"},children:[e.jsx(fe,{value:g,bound:!0,isValid:(b,C)=>(_&&v(""),t&&C?t.test(C):!0),onError:b=>v(b),onValid:b=>{w(b)},errorMessage:n,placeholder:c||void 0}),e.jsx(ce,{onChange:(b,C)=>x(C),checked:m}),e.jsx(Ke,{onClick:()=>{if(!g){v("This setting requires a value");return}const b=[...u];b.push({key:g,boolVal:m}),h([...b]),w(""),x(!1)},iconProps:{iconName:"Add"},title:"Add",ariaLabel:"Click to add this item",style:{fontSize:"12px",lineHeight:"30px",height:"30px",width:"30px",padding:0,marginLeft:"10px",cursor:"pointer"}})]}),_&&e.jsx("div",{style:{lineHeight:"30px",color:"#cc0000"},children:_}),!s&&u.length>0&&e.jsx("div",{style:{width:"400px",height:"1px",backgroundColor:"black"}}),u.map((b,C)=>e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},style:{width:"100%"},children:[e.jsx(fe,{value:b.key,disabled:!0,bound:!1}),e.jsx(ce,{checked:b.boolVal,disabled:!0}),e.jsx(Ke,{onClick:()=>{const k=[...u];k.splice(C,1),h(k)},iconProps:{iconName:"Delete"},title:"Delete",ariaLabel:"Click to delete this item",style:{fontSize:"12px",lineHeight:"30px",height:"30px",width:"30px",padding:0,marginLeft:"10px",cursor:"pointer"}})]},btoa(b.key)))]})};class xx{strA="";strB="";strC=""}const EP={maxWidth:"400px"},DP=o=>{const{list:s,onListChanged:n,strA_Label:t,strA_Placeholder:i,strA_IsValid:d,strA_ErrorMessage:c,strB_Label:u,strB_Placeholder:h,strB_IsValid:g,strB_ErrorMessage:w,strC_Label:m,strC_Placeholder:x,strC_IsValid:_,strC_ErrorMessage:v,vertical:b}=o,[C,k]=D.useState(Array.isArray(s)?[...s]:[]),[L,T]=D.useState(new xx),[N,Y]=D.useState(!1),A=D.useMemo(()=>Zt(6),[]);return D.useEffect(()=>{L.strA&&d(L.strA)&&L.strB&&g(L.strB)&&L.strC&&_(L.strC)?Y(!0):Y(!1)},[L]),D.useEffect(()=>{n([...C])},[C]),e.jsx("div",{style:EP,children:e.jsxs(U,{tokens:{childrenGap:"15px"},children:[C.map((I,R)=>e.jsxs(U,{horizontal:!0,verticalAlign:"end",children:[e.jsxs(U,{tokens:{childrenGap:"3px"},children:[e.jsx(fe,{bound:!1,value:I.strA,disabled:!0,id:`wpo_ste_a_${A}_${R}`}),e.jsx(fe,{bound:!1,value:I.strB,disabled:!0,id:`wpo_ste_b_${A}_${R}`}),e.jsx(fe,{bound:!1,value:I.strC,disabled:!0,id:`wpo_ste_c_${A}_${R}`})]}),e.jsx(Ke,{onClick:()=>{const H=[...C];H.splice(R,1),k(H)},iconProps:{iconName:"Delete"},title:"Delete",ariaLabel:"Click to delete this item",style:{fontSize:"12px",lineHeight:"30px",height:"30px",width:"30px",padding:0,cursor:"pointer"}})]})),e.jsxs(U,{horizontal:!0,verticalAlign:"end",children:[e.jsxs(U,{tokens:{childrenGap:"3px"},children:[e.jsx(fe,{isValid:(I,R)=>d?d(R):!0,onValid:I=>{T({...L,strA:I})},bound:!1,errorMessage:c,value:L.strA,placeholder:i,id:`wpo_ste_a_${A}_${C.length}`}),e.jsx(fe,{isValid:(I,R)=>g?g(R):!0,onValid:I=>{T({...L,strB:I})},bound:!1,errorMessage:w,value:L.strB,placeholder:h,id:`wpo_ste_b_${A}_${C.length}`}),e.jsx(fe,{isValid:(I,R)=>_?_(R):!0,onValid:I=>{T({...L,strC:I})},bound:!1,errorMessage:v,value:L.strC,placeholder:x,id:`wpo_ste_c_${A}_${C.length}`})]}),e.jsx(Ke,{onClick:()=>{k([...C,{...L}]),T(new xx)},iconProps:{iconName:"Add"},title:"Add",ariaLabel:"Click to add a new item",disabled:!N,style:{fontSize:"12px",lineHeight:"30px",height:"30px",width:"30px",padding:0,cursor:"pointer"}})]})]})})},iw=o=>{const{keyErrorMessage:s,keyIsValid:n,keyPlaceholder:t,list:i,onListChanged:d,valueErrorMessage:c,valueIsValid:u,valuePlaceholder:h}=o,[g,w]=D.useState(i?[...i]:[]),[m,x]=D.useState(""),[_,v]=D.useState(""),[b,C]=D.useState(""),[k,L]=D.useState(""),[T,N]=D.useState("");return D.useEffect(()=>{JSON.stringify(g)!==JSON.stringify(i)&&d(g)},[g]),e.jsxs(U,{tokens:{childrenGap:10},horizontalAlign:"start",style:{width:"400px"},children:[e.jsxs(U,{horizontalAlign:"start",tokens:{childrenGap:10},style:{width:"100%"},children:[e.jsxs(U,{tokens:{childrenGap:10},horizontal:!0,verticalAlign:"center",style:{width:"100%"},children:[e.jsx(fe,{bound:!0,errorMessage:s,isValid:(Y,A)=>{if(b&&C(""),T&&N(""),n&&A){if(typeof n=="function")return n(A);if(n instanceof RegExp)return n.test(A);console.warn("No valid method provided to validate the key.")}return!0},onError:Y=>C(Y),onValid:Y=>{x(Y)},placeholder:t||void 0,value:m}),e.jsx("div",{style:{width:"30px",height:"30px",padding:0}})]}),e.jsxs(U,{tokens:{childrenGap:10},horizontal:!0,verticalAlign:"center",style:{width:"100%"},children:[e.jsx(fe,{bound:!0,errorMessage:c,isValid:(Y,A)=>{if(k&&L(""),T&&N(""),u&&A){if(typeof u=="function")return u(A);if(u instanceof RegExp)return u.test(A);console.warn("No valid method provided to validate the value.")}return!0},onError:Y=>L(Y),onValid:Y=>{v(Y)},placeholder:h||void 0,value:_}),e.jsx(Ke,{onClick:()=>{if(!m||!_){N("This setting requires a value");return}const Y=[...g];Y.push({key:m,value:_}),w([...Y]),v(""),x("")},iconProps:{iconName:"Add"},title:"Add",ariaLabel:"Click to add this item",style:{fontSize:"12px",lineHeight:"30px",height:"30px",width:"30px",padding:0,marginLeft:"10px",cursor:"pointer"}})]})]}),b&&e.jsx("div",{style:{lineHeight:"30px",color:"#cc0000"},children:b}),k&&e.jsx("div",{style:{lineHeight:"30px",color:"#cc0000"},children:k}),T&&e.jsx("div",{style:{lineHeight:"30px",color:"#cc0000"},children:T}),g.length>0&&e.jsx("div",{style:{width:"400px",height:"1px",backgroundColor:"black"}}),g.map((Y,A)=>e.jsxs(U,{horizontalAlign:"start",tokens:{childrenGap:10},style:{width:"100%",marginBottom:"20px"},children:[e.jsxs(U,{tokens:{childrenGap:10},horizontal:!0,verticalAlign:"center",style:{width:"100%"},children:[e.jsx(fe,{bound:!1,value:Y.key,disabled:!0}),e.jsx("div",{style:{width:"30px",height:"30px",padding:0}})]}),e.jsxs(U,{tokens:{childrenGap:10},horizontal:!0,verticalAlign:"center",style:{width:"100%"},children:[e.jsx(fe,{bound:!1,value:Y.value,disabled:!0}),e.jsx(Ke,{onClick:()=>{const I=[...g];I.splice(A,1),w(I)},iconProps:{iconName:"Delete"},title:"Delete",ariaLabel:"Click to delete this item",style:{fontSize:"12px",lineHeight:"30px",height:"30px",width:"30px",padding:0,marginLeft:"10px",cursor:"pointer"}})]})]},`${btoa(Y.key)}-${btoa(Y.value)}`))]})},IP=o=>{const{env:s,env:{props:{extensions:n,wpConfigAad:t,wpConfigMultiple:i}},settings:d,settings:{hidePremiumOptions:c},updateSettings:u}=D.useContext(Ye),[h]=D.useState(s.props.addOns&&Object.keys(s.props.addOns).length>0),[g,w]=D.useState({applicationId:d.applicationId,applicationSecret:d.applicationSecret,appOnlyApplicationId:d.appOnlyApplicationId,appOnlyApplicationSecret:d.appOnlyApplicationSecret,cacheKey:Zt(6),directoryId:d.tenantId,enableGraphApi:d.enableGraphApi,enableGraphProxy:d.enableGraphProxy,enableNonceCheck:d.enableNonceCheck,enableTokenService:d.enableTokenService,graphAllowAllEndpoints:d.graphAllowAllEndpoints,graphAllowedEndpoints:d.graphAllowedEndpoints,graphAllowTokenRetrieval:d.graphAllowTokenRetrieval,graphPermissionLevel:d.graphPermissionLevel,graphVersion:d.graphVersion,mailTenantId:d.mailTenantId,mailApplicationId:d.mailApplicationId,mailApplicationSecret:d.mailApplicationSecret,mailRedirectUrl:d.mailRedirectUrl,useAlternativeCdn:d.useAlternativeCdn,useAppOnlyToken:d.useAppOnlyToken,usePkce:d.usePkce,useSingleAppRegistration:d.useSingleAppRegistration,useWpConfig:d.useWpConfig,useWpRestAad:d.useWpRestAad,useWpRestCookies:d.useWpRestCookies,redirectUrl:d.redirectUrl,samlX509Cert:d.samlX509Cert,skipPasswordCredentialsExpiredCheck:d.skipPasswordCredentialsExpiredCheck,wpRestAadApplicationId:d.wpRestAadApplicationId,wpRestAadApplicationIdUri:d.wpRestAadApplicationIdUri,wpRestAadProtectedEndpoints:d.wpRestAadProtectedEndpoints,wpRestAadUseAppRoles:d.wpRestAadUseAppRoles,wpRestBlock:d.wpRestBlock,wpRestCookiesProtectedEndpoints:d.wpRestCookiesProtectedEndpoints,wpRestSetCookies:d.wpRestSetCookies}),[m,x]=D.useState(null),[_,v]=D.useState(null),[b,C]=D.useState([]),[k,L]=D.useState(we.initial),[T,N]=D.useState(Va.initial),Y=D.useRef(g.appOnlyApplicationSecret),A=(W,K,Z,Q)=>{if(W){K(!1);return}v({title:Z,subText:Q,onDismiss:()=>v(null),onCancel:()=>v(null),onConfirm:()=>{v(null),K(!0)}})},I=async()=>{if(!confirm(["You are about to delete the server-side cached O365 access and refresh tokens for all users.","After deleting all tokens, users need to log in interactively for the plugin to be able to retrieve","(a) new access token(s) once their current token(s) expire."].join(" ")))return;eh.TokenCache.clearTokenCache();const W=new FormData;W.append("action","wpo365_delete_tokens"),W.append("nonce",s.nonce),W.append("ina",window.wpo365.wizard.props.ina);let K;try{K=await Ee.post(s.wpAjaxAdminUrl,W)}catch{N(Va.error);return}if(K.status==200&&K.data&&K.data.status&&K.data.status=="OK"){N(Va.success);return}N(Va.error)},R=async()=>{C([]),L(we.saving);const W={...d};W.applicationId=g.applicationId,W.applicationSecret=g.applicationSecret,W.appOnlyApplicationId=g.appOnlyApplicationId,W.appOnlyApplicationSecret=g.appOnlyApplicationSecret,W.tenantId=g.directoryId,W.enableGraphApi=g.enableGraphApi,W.enableGraphProxy=g.enableGraphProxy,W.enableNonceCheck=g.enableNonceCheck,W.enableTokenService=g.enableTokenService,W.graphAllowAllEndpoints=g.graphAllowAllEndpoints,W.graphAllowedEndpoints=g.graphAllowedEndpoints,W.graphAllowTokenRetrieval=g.graphAllowTokenRetrieval,W.graphPermissionLevel=g.graphPermissionLevel,W.graphVersion=g.graphVersion,W.redirectUrl=g.redirectUrl,W.samlX509Cert=g.samlX509Cert,W.skipPasswordCredentialsExpiredCheck=g.skipPasswordCredentialsExpiredCheck,W.useAlternativeCdn=g.useAlternativeCdn,W.useAppOnlyToken=g.useAppOnlyToken,W.usePkce=g.usePkce,W.useSingleAppRegistration=g.useSingleAppRegistration,W.useWpConfig=g.useWpConfig,W.useWpRestAad=g.useWpRestAad,W.useWpRestCookies=g.useWpRestCookies,W.wpRestAadApplicationId=g.wpRestAadApplicationId,W.wpRestAadApplicationIdUri=g.wpRestAadApplicationIdUri,W.wpRestAadProtectedEndpoints=[...g.wpRestAadProtectedEndpoints],W.wpRestAadUseAppRoles=g.wpRestAadUseAppRoles,W.wpRestBlock=g.wpRestBlock,W.wpRestCookiesProtectedEndpoints=[...g.wpRestCookiesProtectedEndpoints],W.wpRestSetCookies=g.wpRestSetCookies;try{const K=await Fe.updateSettings(s,W);if(K.success){const Z=await Fe.getSettings(s);u(Z),C([]),L(we.success)}else C([new Lr("saveConfiguration",K.message,2e3)]),L(we.error)}catch{C([new Lr("saveConfiguration","Unknown error occured whilst updating settings [check F12 > console for technical details]",2e3)]),L(we.error)}},H=D.useMemo(()=>{const W=[{key:"select",text:"Select",itemType:Rt.Header}];return d.applicationId&&W.push({key:d.applicationId,text:d.applicationId,itemType:Rt.Normal}),g.appOnlyApplicationId&&g.appOnlyApplicationId!=d.applicationId&&W.push({key:g.appOnlyApplicationId,text:g.appOnlyApplicationId,itemType:Rt.Normal}),W},[d.applicationId,g.appOnlyApplicationId]);return D.useEffect(()=>{m=="obfuscate"&&R().then(()=>{x(null)})},[m]),e.jsx(e.Fragment,{children:e.jsx("div",{className:j.wpo365WzMain,children:e.jsxs("table",{className:j.wpo365WzTable,children:[e.jsxs("colgroup",{children:[e.jsx("col",{width:"50%"}),e.jsx("col",{width:"50%"})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Delegated Access"})})}),e.jsx("tr",{children:e.jsxs("td",{colSpan:2,children:[e.jsx("em",{children:"Access Microsoft 365 services and APIs as the signed-in user when they log in. Required for any of the use cases below."}),e.jsxs("ul",{children:[e.jsxs("li",{children:["Synchronization of a user's attributes, profile picture and roles whenever they log in (but only if you do choose not to configure"," ",e.jsx("strong",{children:"application access"})," below)."]}),e.jsx("li",{children:"Embeddeding M365 services for your organization (e.g. Power BI or SharePoint)"})]})]})}),d.useSaml&&e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsxs("div",{children:["Not available since you have chosen to use ",e.jsx("strong",{children:"SAML 2.0"}),"."]})})}),d.noSso&&e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("div",{children:"Not available since you have chosen not to configure Microsoft based single sign-on."})})}),!d.useSaml&&!d.noSso&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:"SSO Application (Client) ID"}),e.jsx("td",{children:e.jsx(fe,{bound:!1,value:g.applicationId,placeholder:he.infoApplicationId,disabled:!0})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[d.oidcFlow==kr.code&&"SSO ","Application (Client) Secret "]})}),e.jsx("td",{children:e.jsx(fe,{isValid:(W,K)=>!0,onValid:W=>{g.useSingleAppRegistration?w({...g,applicationSecret:W,appOnlyApplicationSecret:W}):w({...g,applicationSecret:W})},bound:!1,value:g.applicationSecret,disabled:h&&d.useWpConfig||d.oidcFlow==kr.code||t||i,password:!0})})]})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Application Access"})})}),e.jsx("tr",{children:e.jsxs("td",{colSpan:2,children:[e.jsx("em",{children:"Access Microsoft 365 services and APIs as itself / without user context. Required for the use cases below:"}),e.jsxs("ul",{children:[e.jsx("li",{children:"Synchronization of users, their attributes, profile picture and roles at scheduled intervals."}),e.jsx("li",{children:"Embeddeding M365 services for customers (e.g. Power BI or SharePoint)"})]})]})}),d.noSso&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Directory (tenant) ID"})," ",e.jsx(de,{info:{title:"Directory ID",readMore:{title:"Read more",url:"https://docs.wpo365.com/article/32-azure-ad-tenant-id"}}})]})}),e.jsx("td",{children:e.jsx(fe,{isValid:(W,K)=>/^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(K),onValid:W=>w({...g,directoryId:W}),bound:!1,errorMessage:he.errDirectoryIdMustBeGuid,value:g.directoryId,placeholder:he.infoDirectoryId,disabled:h&&g.useWpConfig||t||i})})]}),(!c||n.some(W=>[l.wpo365Mail,l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(K=>K==W)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Obfuscate Entra ID options"})," ",e.jsx(de,{info:{title:"Use WP-Config(.php) for Entra ID secrets",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/137-use-wp-config-for-aad-secrets"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365Mail,l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",style:{height:"30px"},children:[e.jsx(Mn,{styles:{root:{marginBottom:"0px",marginRight:"10px"}},checked:g.useWpConfig,disabled:!g.useWpConfig&&!t&&!i,onChange:(W,K)=>{w({...g,useWpConfig:K}),x("obfuscate")}}),m=="obfuscate"&&e.jsx(Oe,{size:Te.small})]})})})]})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Enable application access"}),e.jsx(de,{info:{title:"Use app-only token",readMore:{title:"Read online",url:"https://tutorials.wpo365.com/courses/integration-application-permissions/"}}})]})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(W,K)=>w({...g,useAppOnlyToken:K}),checked:g.useAppOnlyToken,disabled:i})})})]}),g.useAppOnlyToken&&e.jsxs(e.Fragment,{children:[!d.useSaml&&!d.noSso&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Use existing SSO App registration"})})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(W,K)=>A(g.useSingleAppRegistration,Z=>{w({...g,useSingleAppRegistration:Z,appOnlyApplicationId:Z?d.applicationId:"",appOnlyApplicationSecret:Z?d.applicationSecret:""})},he.titleUseSingleAppRegistration,he.subTextUseSingleAppRegistration),checked:g.useSingleAppRegistration,disabled:t||i})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"(App-only) Application (Client) ID"})," ",g.appOnlyApplicationId&&(!h||!d.useWpConfig)&&e.jsx("em",{children:e.jsx("a",{href:`https://entra.microsoft.com/#view/Microsoft_AAD_RegisteredApps/ApplicationMenuBlade/~/Overview/appId/${g.appOnlyApplicationId}/isMSAApp/`,target:"_blank",children:"View in Entra Portal"})})]})}),e.jsx("td",{children:e.jsx(fe,{isValid:(W,K)=>!K||/^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(K),onValid:W=>w({...g,appOnlyApplicationId:W}),bound:!1,errorMessage:he.errAppOnlyApplicationIdMustBeGuid,value:g.appOnlyApplicationId,placeholder:he.infoAppOnlyApplicationId,disabled:g.useSingleAppRegistration||h&&d.useWpConfig||t||i})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"(App-Only) Application (Client) secret"})})}),e.jsx("td",{children:e.jsx(fe,{isValid:(W,K)=>(Y.current=K,K?!/^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(K):!g.useAppOnlyToken),onValid:W=>w({...g,appOnlyApplicationSecret:W}),errorMessage:Y.current?"You seem to have entered the secret's ID instead of the Value":"Please fill out this mandatory field",bound:!1,value:g.appOnlyApplicationSecret,disabled:g.useSingleAppRegistration||h&&d.useWpConfig||t||i,password:!0})})]})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Microsoft 365 Apps"})})}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("em",{children:"Control whether applications can access the built-in REST API and define how they may request data from Microsoft Graph."})})}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},style:{color:"#0078D4",lineHeight:"24px"},children:[e.jsx(ze,{iconName:"Warning",style:{paddingRight:"5px"}}),e.jsxs("div",{children:["Please take a moment and carefully read the  ",e.jsx("a",{href:"https://docs.wpo365.com/article/144-wpo365-rest-api-for-microsoft-graph",target:"_blank",children:"online documentation"})," ","for the WPO365 REST API for Microsoft Graph before enabling it."]})]})})}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Enable WPO365 REST API for Microsoft Graph"})})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(W,K)=>w({...g,enableGraphApi:K}),checked:g.enableGraphApi})})})]}),g.enableGraphApi&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Require users to sign-in to use the WPO365 REST API for Microsoft Graph"})})}),e.jsx("td",{children:e.jsx(qe,{options:[{key:"select",text:"Select",itemType:Rt.Header},{key:Op.signedInWithMicrosoft,text:"Users must be signed in with Microsoft"},{key:Op.signedIn,text:"Users must be signed in"},{key:Op.anonymous,text:"Allow anonymous access"}],selectedKey:g.graphPermissionLevel,onChange:(W,K)=>w({...g,graphPermissionLevel:K.key}),style:{maxWidth:"400px"}})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Allow apps to request any Microsoft Graph endpoint"})})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(W,K)=>w({...g,graphAllowAllEndpoints:K}),checked:g.graphAllowAllEndpoints})})})]}),!g.graphAllowAllEndpoints&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzColumnifier,children:[e.jsx("div",{children:"Allowed endpoints"}),e.jsx("span",{style:{color:"#0078D4"},children:"Check the box if apps may use application-level permissions (if applicable / configured)"})]})}),e.jsx("td",{children:e.jsx(LP,{list:g.graphAllowedEndpoints,onListChanged:W=>w({...g,graphAllowedEndpoints:W}),placeholder:he.infoProxyEndpoint,isValid:new RegExp(/^(http|https):\/\//i),errorMessage:he.errProxyEndpoint})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Apps may request (delegated) oauth access tokens"})})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(W,K)=>w({...g,graphAllowTokenRetrieval:K}),checked:g.graphAllowTokenRetrieval})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Allow Microsoft Graph proxy-type requests"})})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(W,K)=>w({...g,enableGraphProxy:K}),checked:g.enableGraphProxy})})})]})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Enable token service"}),e.jsx(de,{info:{title:"Enable token service",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/68-enable-token-service"}}})]})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(W,K)=>w({...g,enableTokenService:K}),checked:g.enableTokenService})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Check nonce"}),e.jsx(de,{info:{title:"Check nonce",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/69-check-nonce"}}})]})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(W,K)=>w({...g,enableNonceCheck:K}),checked:g.enableNonceCheck})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Use alternative CDN"}),e.jsx(de,{info:{title:"Use alternative CDN for JavaScript libraries",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/163-use-alternative-cdn-for-javascript-libraries"}}})]})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(W,K)=>w({...g,useAlternativeCdn:K}),checked:g.useAlternativeCdn})})})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Microsoft Graph"})})}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Graph version"}),e.jsx(de,{info:{title:"Microsoft Graph version",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/67-microsoft-graph-version"}}})]})}),e.jsx("td",{children:e.jsx(qe,{options:[{key:"select",text:"Select",itemType:Rt.Header},{key:"current",text:"v1.0"},{key:"beta",text:"beta"}],selectedKey:g.graphVersion,onChange:(W,K)=>w({...g,graphVersion:K.key}),style:{maxWidth:"400px"}})})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"General options"})})}),(!c||n.some(W=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(K=>K==W)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Require Proof Key for Code Exchange (PKCE)"})," ",e.jsx(de,{info:{title:"Require Proof Key for Code Exchange (PKCE)",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/149-require-proof-key-for-code-exchange-pkce"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(W,K)=>w({...g,usePkce:K}),checked:g.usePkce,disabled:!g.usePkce&&(d.useB2c||d.useSaml)})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Skip check for Application (Client) Secret expiration"})," ",e.jsx(de,{info:{title:"Skip check for App registration secret expiration",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/203-skip-check-for-aad-app-registration-secret-expiration"}}})]})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(W,K)=>w({...g,skipPasswordCredentialsExpiredCheck:K}),checked:g.skipPasswordCredentialsExpiredCheck})})})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"WordPress cookie based protection for the WordPress REST API"})})}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},style:{color:"#0078D4",lineHeight:"24px"},children:[e.jsx(ze,{iconName:"Warning",style:{paddingRight:"5px"}}),e.jsxs("div",{children:["Please take a moment and carefully read the  ",e.jsx("a",{href:"https://docs.wpo365.com/article/151-wordpress-cookies-based-protection-for-the-wordpress-rest-api",target:"_blank",children:"online documentation"})," ","to protect the WordPress REST API with WordPress (nonce based) authentication cookies."]})]})})}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Enable cookie based WordPress REST API protection"})})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(W,K)=>w({...g,useWpRestCookies:K}),checked:g.useWpRestCookies})})})]}),g.useWpRestCookies&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:"WordPress REST API protected endpoints"}),e.jsx("td",{children:e.jsx(iw,{list:g.wpRestCookiesProtectedEndpoints,onListChanged:W=>w({...g,wpRestCookiesProtectedEndpoints:W}),keyPlaceholder:"Path e.g. /wp-json/wp/v2/posts",keyIsValid:new RegExp("(^/)|(^$)"),keyErrorMessage:"Path must start with '/' e.g. /wp-json/wp/v2/posts",valuePlaceholder:"Method e.g. GET or POST or GET, POST",valueIsValid:W=>!W||W.split(",").filter(K=>["get","post","patch","delete","put"].indexOf(K.trim().toLowerCase())>-1).length===W.split(",").length,valueErrorMessage:"Must be string with all supported HTTP methods e.g. GET, POST"})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Block all other WordPress REST endpoints"}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(W,K)=>w({...g,wpRestBlock:K}),checked:g.wpRestBlock})})})]})]}),!d.useB2c&&e.jsxs(e.Fragment,{children:[e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Entra ID based protection for the WordPress REST API"})})}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},style:{color:"#0078D4",lineHeight:"24px"},children:[e.jsx(ze,{iconName:"Warning",style:{paddingRight:"5px"}}),e.jsxs("div",{children:["Please take a moment and carefully read the"," ",e.jsx("a",{href:"https://docs.wpo365.com/article/147-azure-ad-based-protection-for-the-wordpress-rest-api",target:"_blank",children:"online documentation"})," ","to protect the WordPress REST API with Entra ID Oauth tokens."]})]})})}),(!c||n.some(W=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(K=>K==W)))&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Enable Entra ID based WordPress REST API protection"})})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(W,K)=>w({...g,useWpRestAad:K}),checked:g.useWpRestAad})})})})]}),g.useWpRestAad&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:"Entra ID Application"}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx(qe,{options:H,selectedKey:g.wpRestAadApplicationId,onChange:(W,K)=>w({...g,wpRestAadApplicationId:K.key}),style:{maxWidth:"400px"},disabled:h&&g.useWpConfig})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Entra ID Application ID URI"})," ",g.wpRestAadApplicationId&&e.jsx("em",{children:e.jsx("a",{href:`https://entra.microsoft.com/#view/Microsoft_AAD_RegisteredApps/ApplicationMenuBlade/~/ProtectAnAPI/appId/${g.wpRestAadApplicationId}/isMSAApp/`,target:"_blank",children:"'Expose an API' in Entra Portal"})})]})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx(fe,{bound:!1,isValid:(W,K)=>h&&g.useWpConfig?!0:K!=he.empty?/^api:\/\//i.test(K):!0,onValid:W=>w({...g,wpRestAadApplicationIdUri:W}),errorMessage:"Entra ID Application ID URI must start with api://",value:g.wpRestAadApplicationIdUri,placeholder:`e.g. api://your-website.com/${g.wpRestAadApplicationId}`,disabled:h&&g.useWpConfig})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Use App Roles"})," ",g.wpRestAadApplicationId&&e.jsx("em",{children:e.jsx("a",{href:`https://entra.microsoft.com/#view/Microsoft_AAD_RegisteredApps/ApplicationMenuBlade/~/AppRoles/appId/${g.wpRestAadApplicationId}/isMSAApp/`,target:"_blank",children:'View "App Roles" in Entra Portal'})})]})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx(ce,{onChange:(W,K)=>w({...g,wpRestAadUseAppRoles:K}),checked:g.wpRestAadUseAppRoles})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"WordPress REST API protected endpoints"}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx(DP,{list:g.wpRestAadProtectedEndpoints,onListChanged:W=>w({...g,wpRestAadProtectedEndpoints:W}),strA_Placeholder:"Path e.g. /wp-json/wp/v2/posts",strA_IsValid:W=>!W||W.indexOf("/")===0,strA_ErrorMessage:"Path must start with '/' e.g. /wp-json/wp/v2/posts",strB_Placeholder:"Method e.g. GET or POST or GET, POST",strB_IsValid:W=>!W||W.split(",").filter(K=>["get","post","patch","delete","put"].indexOf(K.trim().toLowerCase())>-1).length===W.split(",").length,strB_ErrorMessage:"Must be string with all supported HTTP methods e.g. GET, POST",strC_Placeholder:"Scope e.g. api://your-website.com/xxx/access_as_user",strC_IsValid:W=>!W||W.toLowerCase().indexOf(g.wpRestAadApplicationIdUri.toLowerCase())>-1,strC_ErrorMessage:`Must start with Entra ID Application ID URI ${g.wpRestAadApplicationIdUri}`})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Block all other WordPress REST endpoints"}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(W,K)=>w({...g,wpRestBlock:K}),checked:g.wpRestBlock})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Set (WordPress) authentication cookies"}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(W,K)=>w({...g,wpRestSetCookies:K}),checked:g.wpRestSetCookies})})})})]})]})]})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Configuration"})})}),e.jsxs("tr",{children:[e.jsx("th",{}),e.jsx("td",{children:e.jsxs("div",{className:j.wpo365WzColumnifier,children:[e.jsx(et,{onClick:I,iconProps:{iconName:T==Va.success?"Like":void 0},style:{minWidth:"400px",maxWidth:"400px",minHeight:"30px"},children:"Delete tokens"}),e.jsxs("div",{className:j.wpo365WzLabelFor,children:[T==Va.error?e.jsx("p",{children:"Could not delete tokens"}):null,T==Va.success?e.jsx("p",{children:he.okTokensDeleted}):null]})]})})]}),e.jsxs("tr",{children:[e.jsx("th",{}),e.jsx("td",{children:e.jsxs("div",{className:j.wpo365WzColumnifier,children:[e.jsx(dt,{onClick:()=>A(!1,async()=>{try{await R(),location.hash="selfTest"}catch{C([new Lr("saveConfiguration",he.errAuthenticationTestFailed,2e3)]),L(we.error)}},he.titleBeforeSave,d.authScenario==Gr.intranet?he.subTextBeforeSaveIntranet:he.subTextBeforeSaveInternet),iconProps:{iconName:k==we.success?"Like":void 0},style:{minWidth:"400px",maxWidth:"400px",minHeight:"30px",alignSelf:"start"},disabled:k==we.saving,children:"Save configuration"}),e.jsx("div",{className:j.wpo365WzLabelFor,children:yd(b,"saveConfiguration").map(W=>e.jsx("p",{className:j.wpo365WzP,children:W.message}))}),k==we.success?e.jsx("p",{style:{color:"#378805"},children:he.okSettingsUpdated}):null]})})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx(Ho,{})})}),_&&e.jsx(Bo,{onCancel:_.onCancel,onConfirm:_.onConfirm,onDismiss:_.onDismiss,title:_.title,subText:_.subText})]})})})},Vc=o=>{const{disabled:s,list:n,onListChanged:t,options:i,placeholder:d}=o,[c,u]=D.useState(n?[...n]:[]),[h,g]=D.useState(null);return D.useEffect(()=>{JSON.stringify(c)!==JSON.stringify(n)&&t(c)},[c]),e.jsxs(U,{tokens:{childrenGap:10},horizontalAlign:"start",style:{width:"400px"},children:[!s&&e.jsx(qe,{placeholder:d||void 0,options:i.map(w=>({key:w,text:w})),onChange:(w,m)=>{const x=[...c];x.push(String(m.key)),u(x)},selectedKey:h,styles:{root:{flexGrow:1,flexShrink:0,maxWidth:"400px",width:"400px"}},disabled:s}),!s&&c.length>0&&e.jsx("div",{style:{width:"400px",height:"1px",backgroundColor:"black"}}),c.map((w,m)=>e.jsxs(U,{tokens:{childrenGap:10},horizontal:!0,verticalAlign:"center",style:{width:"100%"},children:[e.jsx(fe,{value:w,bound:!1,disabled:!0}),e.jsx(Ke,{onClick:()=>{const x=[...c];x.splice(m,1),u(x)},iconProps:{iconName:"Delete"},title:"Delete",ariaLabel:"Click to delete this item",style:{fontSize:"12px",lineHeight:"30px",height:"30px",width:"30px",padding:0,marginLeft:"10px",cursor:"pointer"}})]},btoa(w)))]})},Eo=(o,s,n)=>{const t=o.filter(i=>i.key==s);return t.length==1?t[0].value:n},TP=o=>{const{buttonConfig:s,buttonLabel:n}=o,[t,i]=D.useState(Eo(s,"buttonBackgroundColor","#ffffff")),[d,c]=D.useState(Eo(s,"buttonBorderColor","#8c8c8c")),[u,h]=D.useState(Eo(s,"buttonForegroundColor","#5e5e5e")),[g,w]=D.useState(Eo(s,"buttonHideBorder",!1)),[m,x]=D.useState(Eo(s,"buttonHideLogo",!1)),[_,v]=D.useState(Eo(s,"buttonLabel","Sign in with Microsoft")),[b,C]=D.useState(Eo(s,"buttonDontZoom",!1));return D.useEffect(()=>{i(Eo(s,"buttonBackgroundColor","#ffffff")),c(Eo(s,"buttonBorderColor","#8c8c8c")),h(Eo(s,"buttonForegroundColor","#5e5e5e")),w(Eo(s,"buttonHideBorder",!1)),x(Eo(s,"buttonHideLogo",!1)),C(Eo(s,"buttonDontZoom",!1))},[s]),D.useEffect(()=>{v(n)},[n]),e.jsx("div",{className:j["wpo365-mssignin-spacearound"],children:e.jsxs("button",{className:b?j["wpo365-mssignin-button"]:j["wpo365-mssignin-button-zoom"],type:"button",style:{border:g?"0px solid":`1px solid ${d}`,color:u,backgroundColor:t},children:[!m&&e.jsx("div",{className:j["wpo365-mssignin-logo"],children:e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"21",height:"21",viewBox:"0 0 21 21",children:[e.jsx("title",{children:"MS-SymbolLockup"}),e.jsx("rect",{x:"1",y:"1",width:"9",height:"9",fill:"#f25022"}),e.jsx("rect",{x:"1",y:"11",width:"9",height:"9",fill:"#00a4ef"}),e.jsx("rect",{x:"11",y:"1",width:"9",height:"9",fill:"#7fba00"}),e.jsx("rect",{x:"11",y:"11",width:"9",height:"9",fill:"#ffb900"})]})}),e.jsx("div",{className:j["wpo365-mssignin-label"],children:_})]})})},nd=(o,s,n)=>{const t=o.filter(i=>i.key==s);return t.length==1?t[0].value:n},Tc=(o,s,n)=>{const t=[...o];for(let i=0;i<t.length;i++)if(t[i].key==s)return t[i].value=n,t;return t.push({key:s,value:n}),t},AP=(o,s)=>{function n(d){let c=d.toLowerCase();return c.slice(-1)==="/"&&(c=c.slice(0,-1)),c}const t=n(o),i=n(s);return!!t&&t===i},PP=o=>{const{env:s,env:{props:{extensions:n,availableRoles:t,wpConfigMultiple:i}},settings:d,settings:{hidePremiumOptions:c},updateSettings:u}=D.useContext(Ye),[h]=D.useState(s.props.addOns&&Object.keys(s.props.addOns).length>0),g=D.useMemo(()=>Object.keys(Xr(t,[])),[]),[w,m]=D.useState({alwaysUseGotoAfter:d.alwaysUseGotoAfter,buttonConfig:d.buttonConfig,buttonLabel:d.signInWithMicrosoft,customLoginUrl:d.customLoginUrl,defaultLandingPage:d.gotoAfterSignonUrl&&d.gotoAfterSignonUrl!=s.props.adminUrl.replace(/\/?$/,"/")&&d.gotoAfterSignonUrl!=s.props.siteUrl.replace(/\/?$/,"/")?"custom":d.gotoAfterSignonUrl,enableSingleSignOut:d.enableSingleSignOut,errorPageUrl:d.errorPageUrl,expressLogin:d.expressLogin,gotoAfterSignonUrl:d.gotoAfterSignonUrl,groupsXGotoAfter:d.groupsXGotoAfter,hideAdminBarRoles:d.hideAdminBarRoles,hideLoginButton:d.hideLoginButton,hideSsoLink:d.hideSsoLink,interceptWpLogin:d.interceptWpLogin,loadingTemplateUrl:d.loadingTemplateUrl,logoutFromO365:d.logoutFromO365,postSignoutUrl:d.postSignoutUrl,redirectOnLogin:d.redirectOnLogin,redirectOnLoginSecret:d.redirectOnLoginSecret,redirectOnLoginReferrers:d.redirectOnLoginReferrers,redirectOnPrivatePage:d.redirectOnPrivatePage,redirectToLogin:d.redirectToLogin,redirectToLoginV2:d.redirectToLoginV2,skipWpAdmin:d.skipWpAdmin,useTeams:d.useTeams}),[x,_]=D.useState(null),[v,b]=D.useState([]),[C,k]=D.useState(we.initial),L=D.useRef(null),T=(A,I,R,H)=>{if(A){I(!1);return}_({title:R,subText:H,onDismiss:()=>_(null),onCancel:()=>_(null),onConfirm:()=>{_(null),I(!0)}})},N=async()=>{b([]),k(we.saving);const A={...d};A.alwaysUseGotoAfter=w.alwaysUseGotoAfter,A.buttonConfig=w.buttonConfig,A.customLoginUrl=w.customLoginUrl,A.enableSingleSignOut=w.enableSingleSignOut,A.errorPageUrl=w.errorPageUrl,A.expressLogin=w.expressLogin,A.gotoAfterSignonUrl=w.gotoAfterSignonUrl,A.groupsXGotoAfter=w.groupsXGotoAfter,A.hideAdminBarRoles=w.hideAdminBarRoles,A.hideLoginButton=w.hideLoginButton,A.hideSsoLink=w.hideSsoLink,A.interceptWpLogin=w.interceptWpLogin,A.loadingTemplateUrl=w.loadingTemplateUrl,A.logoutFromO365=w.logoutFromO365,A.postSignoutUrl=w.postSignoutUrl,A.redirectOnLogin=w.redirectOnLogin,A.redirectOnLoginSecret=w.redirectOnLoginSecret,A.redirectOnLoginReferrers=w.redirectOnLoginReferrers,A.redirectOnPrivatePage=w.redirectOnPrivatePage,A.redirectToLogin=w.redirectToLogin,A.redirectToLoginV2=w.redirectToLoginV2,A.signInWithMicrosoft=w.buttonLabel,A.skipWpAdmin=w.skipWpAdmin,A.useTeams=w.useTeams;try{const I=await Fe.updateSettings(s,A);if(I.success){const R=await Fe.getSettings(s);u(R),b([]),k(we.success)}else b([...v,new Lr("saveConfiguration",I.message,2e3)]),k(we.error)}catch{b([...v,new Lr("saveConfiguration","Unknown error occured whilst updating settings [check F12 > console for technical details]",2e3)]),k(we.error)}},Y=D.useMemo(()=>Zt(32),[]);return e.jsx("div",{className:j.wpo365WzMain,children:e.jsxs("table",{className:j.wpo365WzTable,children:[e.jsxs("colgroup",{children:[e.jsx("col",{width:"50%"}),e.jsx("col",{width:"50%"})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsxs("h3",{className:j.wpo365WzSectionTitle,children:[e.jsx("span",{style:{color:"#CE5708"},children:"Getting started"})," with User Registration"]})})}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx(ou,{buttons:[{callToAction:"Create a custom SSO button",tutorial:"https://docs.wpo365.com/article/224-add-single-sign-on-button-anywhere-shortcode",title:"SSO Button"},{callToAction:"Force SSO, new-user email and more ...",info:"https://www.wpo365.com/feature/advanced-login-options/",title:"Essential Login Options"}]})})}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Login Experience"})})}),(!c||n.some(A=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(I=>I==A)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Do not force SSO for WP Admin"})," ",e.jsx(de,{info:{title:"Do not force SSO for WP Admin",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/221-do-not-force-sso-for-wp-admin"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx(ce,{onChange:(A,I)=>m({...w,skipWpAdmin:I}),checked:w.skipWpAdmin}),w.skipWpAdmin&&(w.redirectOnLogin||w.redirectToLoginV2)&&e.jsx(xn,{content:e.jsxs("span",{children:["Ensure ",e.jsx("em",{children:"Dual Login"})," and ",e.jsx("em",{children:"Force SSO for WP Login"})," are not checked"]}),id:"tooltip_skip_wp_admin_error",calloutProps:{gapSpace:0},styles:{root:{display:"inline-block",cursor:"pointer",color:"#CC0000",height:"27px"}},children:e.jsx(ze,{iconName:"Warning"})})]})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Hide WP Admin Bar for roles"}),e.jsx(de,{info:{title:"Hide WP Admin Bar for roles",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/150-hide-wp-admin-bar-for-roles"}}})]})}),e.jsx("td",{children:e.jsx(Vc,{list:[...w.hideAdminBarRoles],onListChanged:A=>m({...w,hideAdminBarRoles:[...A]}),options:g,placeholder:he.infoWordPressRole})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Default landing page after login:"})," ",e.jsx(de,{info:{title:"Landing page after login",readMore:{title:"Read more",url:"https://docs.wpo365.com/article/78-goto-after"}}})]})}),e.jsx("td",{children:e.jsx(qe,{options:[{key:"select",text:"Select",itemType:Rt.Header},{key:"backend",text:s.props.adminUrl.replace(/\/?$/,"/")},{key:"frontend",text:s.props.siteUrl.replace(/\/?$/,"/")},{key:"custom",text:"Custom (enter below)",disabled:!n.some(A=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].indexOf(A)>-1)}],selectedKey:w.defaultLandingPage&&w.defaultLandingPage==s.props.adminUrl.replace(/\/?$/,"/")?"backend":!w.defaultLandingPage||w.defaultLandingPage==s.props.siteUrl.replace(/\/?$/,"/")?"frontend":"custom",onChange:(A,I)=>I.key!="custom"&&/^(http|https):\/\//i.test(I.text)?m({...w,defaultLandingPage:I.text,gotoAfterSignonUrl:I.text}):m({...w,defaultLandingPage:I.key.toString()}),style:{maxWidth:"400px"}})})]}),(!c||n.some(A=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(I=>I==A)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Custom landing page after login:"})," ",e.jsx(de,{info:{title:"Goto after",readMore:{title:"Read more",url:"https://docs.wpo365.com/article/78-goto-after"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx(fe,{isValid:(A,I)=>I!=he.empty?/^(http|https):\/\//i.test(I):!0,onValid:A=>m({...w,gotoAfterSignonUrl:A}),bound:!1,errorMessage:he.errGotoAfterSignonUrlMustStartWith,value:w.gotoAfterSignonUrl,placeholder:he.infoGotoAfterSignonUrl,disabled:w.defaultLandingPage!="custom"})})})]}),(!c||n.some(A=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(I=>I==A)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Always send user to default / custom landing page"}),e.jsx(de,{info:{title:"Always go to after",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/79-always-goto-after"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(A,I)=>m({...w,alwaysUseGotoAfter:I}),checked:w.alwaysUseGotoAfter})})})})]}),(!c||n.some(A=>[l.wpo365Avatar,l.wpo365CustomFields,l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Scim,l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365Integrate,l.wpo365Pro].some(I=>I==A)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsxs("span",{children:["Express login (see ",e.jsx("em",{children:"i"})," for details)"]}),e.jsx(de,{info:{title:"Express login",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/61-express-login"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365Avatar,l.wpo365LoginPlus,l.wpo365CustomFields,l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Scim,l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(A,I)=>m({...w,expressLogin:I}),checked:w.expressLogin})})})})]}),(!c||n.some(A=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(I=>I==A)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Force SSO for the default / custom login page"})," ",e.jsx(de,{info:{title:"Force SSO for the default / custom login page",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/120-force-sso-for-the-default-custom-login-page"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx(ce,{onChange:(A,I)=>m({...w,redirectOnLogin:I}),checked:w.redirectOnLogin,disabled:i}),w.redirectOnLogin&&(w.skipWpAdmin||w.redirectToLoginV2)&&e.jsx(xn,{content:e.jsxs("span",{children:["Ensure ",e.jsx("em",{children:"Dual Login"})," and ",e.jsx("em",{children:"Do not force SSO for WP Admin"})," are not checked"]}),id:"tooltip_skip_wp_admin_error",calloutProps:{gapSpace:0},styles:{root:{display:"inline-block",cursor:"pointer",color:"#CC0000",height:"27px"}},children:e.jsx(ze,{iconName:"Warning"})})]})})})]}),(!c||n.some(A=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(I=>I==A)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Secret key to bypass SSO"})," ",e.jsx(de,{info:{title:"Force SSO for the default / custom login page",readMore:{title:"Read more",url:"https://docs.wpo365.com/article/120-force-sso-for-the-default-custom-login-page"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx(fe,{isValid:(A,I)=>h&&d.useWpConfig?!0:I!=""?/^[a-zA-Z0-9_.-\s]{1,}$/i.test(I)&&I.length>=32:!0,onValid:A=>m({...w,redirectOnLoginSecret:A}),bound:!1,errorMessage:"The secret must at least contain 32 alphanumeric characters",value:w.redirectOnLoginSecret,placeholder:`e.g. ${Y}`,disabled:i})})})]}),(!c||n.some(A=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(I=>I==A)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Referrers allowed to bypass SSO"}),e.jsx(de,{info:{title:"Force SSO for the default / custom login page",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/120-force-sso-for-the-default-custom-login-page"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx(Ws,{list:w.redirectOnLoginReferrers,onListChanged:A=>m({...w,redirectOnLoginReferrers:A}),placeholder:"e.g. https://website.tld/referrer/",isValid:new RegExp(/^(http|https):\/\//i),errorMessage:"A referrer must start with http(s)://"})})})]}),(!c||n.some(A=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(I=>I==A)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Error / Logged out page"})," ",e.jsx(de,{info:{title:"Error page URL",readMore:{title:"Read more",url:"https://docs.wpo365.com/article/88-error-page"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx(fe,{isValid:(A,I)=>I!=he.empty?/^(http|https):\/\//i.test(I):!0,onValid:A=>m({...w,errorPageUrl:A}),bound:!1,errorMessage:he.errErrorPageUrlMustStartWith,value:w.errorPageUrl,placeholder:he.infoErrorPageUrl}),AP(w.customLoginUrl,w.errorPageUrl)===!0&&e.jsx(xn,{content:e.jsxs("span",{children:["The ",e.jsx("em",{children:"Custom login URL"})," and ",e.jsx("em",{children:"Error / Logged out page"})," should not be the same"]}),id:"tooltip_login_and_error_url_error",calloutProps:{gapSpace:0},styles:{root:{display:"inline-block",cursor:"pointer",color:"#CC0000",height:"27px"}},children:e.jsx(ze,{iconName:"Warning"})})]})})})]}),(!c||n.some(A=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(I=>I==A)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Custom login URL"})," ",e.jsx(de,{info:{title:"Custom login URL",readMore:{title:"Read more",url:"https://docs.wpo365.com/article/92-custom-login-url"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx(fe,{isValid:(A,I)=>I!=he.empty?/^(http|https):\/\//i.test(I):!0,onValid:A=>m({...w,customLoginUrl:A}),bound:!1,errorMessage:he.errCustomLoginUrlMustStartWith,value:w.customLoginUrl,placeholder:he.infoCustomLoginUrl})})})]}),!d.useB2c&&!d.useCiam&&(!c||n.some(A=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(I=>I==A)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Intercept manual login attempts"})," ",e.jsx(de,{info:{title:"Intercept manual logins",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/77-intercept-manual-logins"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(A,I)=>m({...w,interceptWpLogin:I}),checked:w.interceptWpLogin})})})})]}),(!c||n.some(A=>[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(I=>I==A)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Entra ID group-based redirect after successful login"})," ",e.jsx(de,{info:{title:"Entra ID Group Membership Redirection",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/121-redirect-wordpress-user-based-on-azure-ad-group-membership"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx(iw,{list:w.groupsXGotoAfter,onListChanged:A=>m({...w,groupsXGotoAfter:A}),keyPlaceholder:he.infoGroupsXGotoAfterKey,keyIsValid:new RegExp(/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i),keyErrorMessage:he.errGroupsXGotoAfterKey,valuePlaceholder:he.infoGroupsXGotoAfterValue,valueIsValid:new RegExp(/^(http|https):\/\//i),valueErrorMessage:he.errGroupsXGotoAfterValue})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Use client-side redirect"}),e.jsx(de,{info:{title:"Use client-side redirect",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/223-use-client-side-redirect"}}})]})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(A,I)=>m({...w,useTeams:I}),checked:w.useTeams})})})]}),w.useTeams&&(!c||n.some(A=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(I=>I==A)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Custom loading template URL"})," ",e.jsx(de,{info:{title:"Loading Template URL",readMore:{title:"Read more",url:"https://docs.wpo365.com/article/114-customize-the-loading-template"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx(fe,{isValid:(A,I)=>I!=he.empty?/^(?!http).*(\.html$)/i.test(I):!0,onValid:A=>m({...w,loadingTemplateUrl:A}),bound:!1,errorMessage:he.errLoadingTemplateUrlMustStartWith,value:w.loadingTemplateUrl,placeholder:he.infoLoadingTemplateUrl})})})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Customize Login Button"})})}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Preview"})})}),e.jsx("td",{children:e.jsx(TP,{buttonConfig:w.buttonConfig,buttonLabel:w.buttonLabel})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsxs("span",{children:["Hide ",e.jsx("em",{children:"Sign in with Microsoft"})," button on login page"]})," ",e.jsx(de,{info:{title:'Hide "Sign in with Microsoft button"',readMore:{title:"Read online",url:"https://docs.wpo365.com/article/81-enable-dual-login"}}})]})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(A,I)=>m({...w,hideLoginButton:I}),checked:w.hideLoginButton})})})]}),(!c||n.some(A=>[l.wpo365Customers,l.wpo365Essentials,l.wpo365Integrate,l.wpo365Intranet5y,l.wpo365LoginIntranet,l.wpo365LoginPremium,l.wpo365LoginProfessional,l.wpo365Pro,l.wpo365Sync5y].some(I=>I==A)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Hide Microsoft logo"})})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(re,{extensions:n,targets:[l.wpo365Customers,l.wpo365Essentials,l.wpo365Integrate,l.wpo365Intranet5y,l.wpo365LoginIntranet,l.wpo365LoginPremium,l.wpo365LoginProfessional,l.wpo365Pro,l.wpo365Sync5y],children:e.jsx(ce,{onChange:(A,I)=>{const R=Tc(w.buttonConfig,"buttonHideLogo",I);m({...w,buttonConfig:R})},checked:nd(w.buttonConfig,"buttonHideLogo",!1)})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Display text"})})}),e.jsx("td",{children:e.jsx(fe,{isValid:(A,I)=>I.length>0&&I.length<25,onValid:A=>m({...w,buttonLabel:A}),bound:!1,errorMessage:"Length must be great than 0 and less than 25",value:w.buttonLabel,placeholder:"Sign in with Microsoft"})})]}),(!c||n.some(A=>[l.wpo365Customers,l.wpo365Essentials,l.wpo365Integrate,l.wpo365Intranet5y,l.wpo365LoginIntranet,l.wpo365LoginPremium,l.wpo365LoginProfessional,l.wpo365Pro,l.wpo365Sync5y].some(I=>I==A)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Foreground color"})})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365Customers,l.wpo365Essentials,l.wpo365Integrate,l.wpo365Intranet5y,l.wpo365LoginIntranet,l.wpo365LoginPremium,l.wpo365LoginProfessional,l.wpo365Pro,l.wpo365Sync5y],children:e.jsx(fe,{isValid:(A,I)=>!I||/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(I),onValid:A=>{const I=Tc(w.buttonConfig,"buttonForegroundColor",A);m({...w,buttonConfig:I})},bound:!1,errorMessage:"Must be a Hexadecimal Color Code",value:nd(w.buttonConfig,"buttonForegroundColor",""),placeholder:"e.g. #5E5E5E"})})})]}),(!c||n.some(A=>[l.wpo365Customers,l.wpo365Essentials,l.wpo365Integrate,l.wpo365Intranet5y,l.wpo365LoginIntranet,l.wpo365LoginPremium,l.wpo365LoginProfessional,l.wpo365Pro,l.wpo365Sync5y].some(I=>I==A)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Background color"})})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365Customers,l.wpo365Essentials,l.wpo365Integrate,l.wpo365Intranet5y,l.wpo365LoginIntranet,l.wpo365LoginPremium,l.wpo365LoginProfessional,l.wpo365Pro,l.wpo365Sync5y],children:e.jsx(fe,{isValid:(A,I)=>!I||/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(I),onValid:A=>{const I=Tc(w.buttonConfig,"buttonBackgroundColor",A);m({...w,buttonConfig:I})},bound:!1,errorMessage:"Must be a Hexadecimal Color Code",value:nd(w.buttonConfig,"buttonBackgroundColor",""),placeholder:"e.g. #FFFFFF"})})})]}),(!c||n.some(A=>[l.wpo365Customers,l.wpo365Essentials,l.wpo365Integrate,l.wpo365Intranet5y,l.wpo365LoginIntranet,l.wpo365LoginPremium,l.wpo365LoginProfessional,l.wpo365Pro,l.wpo365Sync5y].some(I=>I==A)))&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Hide border"})})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(re,{extensions:n,targets:[l.wpo365Customers,l.wpo365Essentials,l.wpo365Integrate,l.wpo365Intranet5y,l.wpo365LoginIntranet,l.wpo365LoginPremium,l.wpo365LoginProfessional,l.wpo365Pro,l.wpo365Sync5y],children:e.jsx(ce,{onChange:(A,I)=>{const R=Tc(w.buttonConfig,"buttonHideBorder",I);m({...w,buttonConfig:R})},checked:nd(w.buttonConfig,"buttonHideBorder",!1)})})})})]}),!nd(w.buttonConfig,"buttonHideBorder",!1)&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Border color"})})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365Customers,l.wpo365Essentials,l.wpo365Integrate,l.wpo365Intranet5y,l.wpo365LoginIntranet,l.wpo365LoginPremium,l.wpo365LoginProfessional,l.wpo365Pro,l.wpo365Sync5y],children:e.jsx(fe,{isValid:(A,I)=>!I||/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(I),onValid:A=>{const I=Tc(w.buttonConfig,"buttonBorderColor",A);m({...w,buttonConfig:I})},bound:!1,errorMessage:"Must be a Hexadecimal Color Code",value:nd(w.buttonConfig,"buttonBorderColor",""),placeholder:"e.g. #8C8C8C"})})})]})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"No visual effects"})})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(A,I)=>{const R=Tc(w.buttonConfig,"buttonDontZoom",I);m({...w,buttonConfig:R})},checked:nd(w.buttonConfig,"buttonDontZoom",!1)})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"WP Shortcode"})})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsxs(U,{tokens:{childrenGap:10},children:[e.jsx("div",{style:{border:"1px solid",borderRadius:"3px",padding:"0px 10px",backgroundColor:"#e2e2e2"},ref:L,onClick:()=>{const A=document.createRange();A.selectNodeContents(L.current);const I=window.getSelection();I.removeAllRanges(),I.addRange(A)},children:"[wpo365-sso-button]"}),e.jsx("div",{style:{color:"#0078D4"},children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx(ze,{iconName:"Info"}),e.jsx("span",{children:"Click once to select, then copy to clipboard"})]})})]})})})]}),e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:e.jsxs("span",{style:{color:"#0078D4"},children:["Or create your own custom SSO button ",e.jsx("a",{href:"https://docs.wpo365.com/article/74-add-sign-in-with-microsoft-button-to-a-wordpress-login-form",target:"_blank",children:e.jsx(ze,{iconName:"NavigateExternalInline"})})]})})}),e.jsx("td",{children:e.jsx("div",{})})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Dual Login Experience"})})}),(!c||n.some(A=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(I=>I==A)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsxs("span",{children:["Enable ",e.jsx("em",{children:"Dual login"})]})," ",e.jsx(de,{info:{title:"Redirect to login V2",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/81-enable-dual-login"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx(ce,{onChange:(A,I)=>m({...w,redirectToLoginV2:I}),checked:w.redirectToLoginV2,disabled:i}),w.redirectToLoginV2&&(w.skipWpAdmin||w.redirectOnLogin)&&e.jsx(xn,{content:e.jsxs("span",{children:["Ensure ",e.jsx("em",{children:"Do not force SSO for WP Admin"})," and ",e.jsx("em",{children:"Force SSO for WP Login"})," are not checked"]}),id:"tooltip_skip_wp_admin_error",calloutProps:{gapSpace:0},styles:{root:{display:"inline-block",cursor:"pointer",color:"#CC0000",height:"27px"}},children:e.jsx(ze,{iconName:"Warning"})})]})})})]}),(!c||n.some(A=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(I=>I==A)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsxs("span",{children:["Hide ",e.jsx("em",{children:"Dual Login"})," notification / link"]})," ",e.jsx(de,{info:{title:"Hide SSO link",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/81-enable-dual-login"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(A,I)=>T(w.hideSsoLink,R=>m({...w,hideSsoLink:R}),he.titleHideSsoLink,he.subTextHideSsoLink),checked:w.hideSsoLink,disabled:i})})})})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Logout Experience"})})}),(!c||n.some(A=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(I=>I==A)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Enable support for Single Sign-Out (logout without confirmation)"})," ",e.jsx(de,{info:{title:"Enable logout without confirmation",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/90-single-sign-out"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(A,I)=>m({...w,enableSingleSignOut:I}),checked:w.enableSingleSignOut})})})})]}),(!c||n.some(A=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(I=>I==A)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Logout from O365 when logging out from WordPress"})," ",e.jsx(de,{info:{title:"Logout from O365",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/89-microsoft-365-logout"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(A,I)=>m({...w,logoutFromO365:I}),checked:w.logoutFromO365})})})})]}),(!c||n.some(A=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(I=>I==A)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"URL to redirect user to after logging out from WordPress"})," ",e.jsx(de,{info:{title:"Post sign-out URL",readMore:{title:"Read more",url:"https://docs.wpo365.com/article/89-microsoft-365-logout"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx(fe,{isValid:(A,I)=>I!=he.empty?/^(http|https):\/\//i.test(I):!0,onValid:A=>m({...w,postSignoutUrl:A}),bound:!1,errorMessage:he.errPostSignoutUrlMustStartWith,value:w.postSignoutUrl,placeholder:he.infoPostSignoutUrl})})})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Configuration"})})}),e.jsxs("tr",{children:[e.jsx("th",{}),e.jsx("td",{children:e.jsxs("div",{className:j.wpo365WzColumnifier,children:[e.jsx(dt,{onClick:()=>N(),iconProps:{iconName:C==we.success?"Like":void 0},style:{minWidth:"400px",maxWidth:"400px",minHeight:"30px",alignSelf:"start"},disabled:C==we.saving,children:"Save configuration"}),e.jsx("div",{className:j.wpo365WzLabelFor,children:yd(v,"saveConfiguration").map(A=>e.jsx("p",{className:j.wpo365WzP,children:A.message}))}),C==we.success?e.jsx("p",{style:{color:"#378805"},children:he.okSettingsUpdated}):null]})})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx(Ho,{})})}),x&&e.jsx(Bo,{onCancel:x.onCancel,onConfirm:x.onConfirm,onDismiss:x.onDismiss,title:x.title,subText:x.subText})]})})},RP=o=>Array.isArray(o)?o.map(s=>({id:s.id?parseInt(s.id):-1,mail_attachments:s.mail_attachments?JSON.parse(s.mail_attachments):[],mail_error:s.mail_error?s.mail_error:"",mail_body:s.mail_body?s.mail_body:"",mail_headers:s.mail_headers?JSON.parse(s.mail_headers):[],mail_sent:s.mail_sent?s.mail_sent:s.mail_last_attempt?s.mail_last_attempt:"TIMESTAMP N/A",mail_subject:s.mail_subject?s.mail_subject:"",mail_success:s.mail_success?parseInt(s.mail_success)===1:!1,mail_to:s.mail_to?JSON.parse(s.mail_to):[],mail_attempts:s.mail_attempts?parseInt(s.mail_attempts):1})):[],bx={label:{fontSize:"120%",fontWeight:600,textDecoration:"underline",textDecorationColor:"#0078D4"}},Sx={label:{fontSize:"120%",fontWeight:400,textDecoration:"none"}},FP={whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontSize:"12px",width:"inherit"},NP=[{key:"mail_success",name:"",iconName:"Error",isIconOnly:!0,minWidth:16,maxWidth:16,isResizable:!0,onRender:(o,s,n)=>o.mail_success!==!0?e.jsx("div",{className:j.wpo365WzRowifier,style:{justifyContent:"center",height:"100%",cursor:"pointer"},children:e.jsx(xn,{content:e.jsx("span",{dangerouslySetInnerHTML:{__html:o.mail_error?o.mail_error:"No error details available"}}),id:`tooltip_${n.key}_${s}`,calloutProps:{gapSpace:0},styles:{root:{display:"inline-block"}},children:e.jsx(kt,{"aria-label":"Error",iconName:"Error",style:{fontSize:18,color:"red"}})})}):null},{key:"mail_attachments",name:"",iconName:"Attach",isIconOnly:!0,minWidth:16,maxWidth:16,isResizable:!0,onRender:(o,s,n)=>Array.isArray(o.mail_attachments)&&o.mail_attachments.length>0?e.jsx("div",{className:j.wpo365WzRowifier,style:{justifyContent:"center",height:"100%",cursor:"pointer"},children:e.jsx(xn,{content:o.mail_attachments.map(t=>e.jsx("span",{children:t.trim()?t.trim():"No attachment details available"})),id:`tooltip_${n.key}_${s}`,calloutProps:{gapSpace:0},styles:{root:{display:"inline-block"}},children:e.jsx(kt,{"aria-label":"Attachment",iconName:"Attach",style:{fontSize:18,color:"red"}})})}):null},{key:"mail",name:"Content",minWidth:300,isResizable:!0,onRender:(o,s,n)=>{const t=document.createElement("DIV");t.innerHTML=o.mail_body;const i=t.innerText.trim().substring(0,t.innerText.length<80?t.innerText.length:80);return e.jsxs(U,{tokens:{childrenGap:"10px"},children:[e.jsxs(U,{horizontal:!0,horizontalAlign:"space-between",verticalAlign:"center",children:[e.jsx("div",{style:{fontSize:"110%",fontWeight:600,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:`To: ${o.mail_to?Array.isArray(o.mail_to)?o.mail_to.join(", "):o.mail_to:""}`}),e.jsx("div",{style:{fontSize:"110%",fontWeight:600,minWidth:"160px"},children:o.mail_sent})]}),e.jsx("div",{style:{fontWeight:600,color:"#0078D4",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:`${o.id} :: ${o.mail_subject}`}),e.jsx("div",{style:{fontSize:"90%",color:"#b1b1b1",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:i})]})}}],OP=[{key:5,text:"5"},{key:10,text:"10"},{key:25,text:"25"},{key:50,text:"50"},{key:100,text:"100"},{key:500,text:"500"}],YP=(o,s,n)=>n.onRender?n.onRender(o,s,n):e.jsx("span",{style:FP,children:o[n.key]}),WP=()=>{const{env:{props:{nonce:o},wpAjaxAdminUrl:s},settings:n}=D.useContext(Ye),[t,i]=D.useState(null),[d,c]=D.useState("all"),[u,h]=D.useState(null),[g,w]=D.useState("initial"),[m,x]=D.useState([]),[_,v]=D.useState(25),[b,C]=D.useState(0),[k,L]=D.useState(0),T=async A=>{h(null),w("loading");const I=new FormData;I.append("action","wpo365_get_mail_log"),I.append("nonce",o),I.append("ina",window.wpo365.wizard.props.ina),I.append("start_row",A.toString()),I.append("filter",d),I.append("page_size",_.toString());let R;try{R=await Ee.post(s,I)}catch(H){console.error(H),w("error"),h({type:Be.error,message:H.message?H.message:"Unknown error occurred. Please check the Developer Tools > Console for technical details."});return}if(R.status>=200&&R.status<300&&R.data&&R.data.status&&R.data.status=="OK"&&R.data.result){const H=RP(JSON.parse(R.data.result));x(H),w("finished");return}w("error"),h({type:Be.error,message:"Unknown error occurred. Please check the Developer Tools > Console for technical details."})},N=async A=>{console.log(`Sending email with ID ${A} again`),h(null),w("sending");const I=new FormData;I.append("action","wpo365_send_mail_again"),I.append("nonce",o),I.append("ina",window.wpo365.wizard.props.ina),I.append("id",A.toString());let R;try{R=await Ee.post(s,I)}catch(H){console.error(H),w("error"),h({type:Be.error,message:H.message?H.message:"Unknown error occurred. Please check the Developer Tools > Console for technical details."});return}if(R.status>=200&&R.status<300&&R.data&&R.data.status&&R.data.status=="OK"){if(w("initial"),R.data.result){const H=JSON.parse(R.data.result);if(H.mail_success&&H.mail_success===!0){h({type:Be.success,message:"Mail was sent successfully!"});return}}h({type:Be.error,message:"Attempt to send mail again failed. Please check the log for details."});return}w("error"),h({type:Be.error,message:"Unknown error occurred. Please check the Developer Tools > Console for technical details."})},Y=async()=>{h(null),w("loading");const A=new FormData;A.append("action","wpo365_truncate_mail_log"),A.append("nonce",o),A.append("ina",window.wpo365.wizard.props.ina);let I;try{I=await Ee.post(s,A)}catch(R){console.error(R),w("error"),h({type:Be.error,message:R.message?R.message:"Unknown error occurred. Please check the Developer Tools > Console for technical details."});return}if(I.status>=200&&I.status<300&&I.data&&I.data.status&&I.data.status=="OK"){if(w("initial"),I.data.result){const R=JSON.parse(I.data.result);if(R.mail_success&&R.mail_success===!0){h({type:Be.success,message:"Mail log was deleted successfully!"}),x([]);return}}h({type:Be.error,message:"Attempt to delete mail log failed. Please check the log for details."});return}w("error"),h({type:Be.error,message:"Unknown error occurred. Please check the Developer Tools > Console for technical details."})};return D.useEffect(()=>{!Array.isArray(m)||m.length==0||(C(m[m.length-1].id),k===0&&L(m[0].id))},[m]),D.useEffect(()=>{L(0),C(0),T(0)},[_,d]),D.useEffect(()=>{i(null)},[m]),e.jsx(e.Fragment,{children:e.jsx("div",{className:j.wpo365WzMain,children:e.jsxs(U,{children:[e.jsx(U,{horizontal:!0,horizontalAlign:"end",tokens:{childrenGap:"10px"},children:e.jsx("div",{style:{padding:"0px 0px 10px 0px"},children:e.jsx(Ke,{iconProps:{iconName:"ChromeClose"},onClick:()=>{location.hash=`/${Me.mail}`}})})}),u&&e.jsx(Jr,{messageBarType:Be.error,isMultiline:!1,onDismiss:()=>h(null),children:u.message}),e.jsxs(U,{horizontal:!0,children:[e.jsxs(U,{tokens:{childrenGap:"15px"},style:{width:"50%",minWidth:"450px",margin:"0px 5px 0px 0px",background:"#fff",padding:"10px",border:"1px solid #d1d1d1"},children:[e.jsxs(U,{horizontal:!0,tokens:{childrenGap:"10px"},children:[e.jsx(Dn,{text:"All",styles:d=="all"?bx:Sx,onClick:()=>c("all")}),e.jsx(Dn,{text:"Errors only",styles:d=="error"?bx:Sx,onClick:()=>c("error")}),g=="loading"&&e.jsx(Oe,{size:Te.small})]}),e.jsx("div",{style:{height:"50vh",position:"relative",maxHeight:"50vh",marginRight:"20px"},children:e.jsx(vI,{children:e.jsx(Ub,{checkButtonAriaLabel:"Select item",items:m,columns:NP,selectionMode:st.single,onRenderItemColumn:YP,enableShimmer:!m,listProps:{renderedWindowsAhead:0,renderedWindowsBehind:0},onShouldVirtualize:()=>!1,onActiveItemChanged:(A,I)=>i(A),layoutMode:qc.justified})})}),e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:"15px"},children:[e.jsx(dt,{onClick:()=>T(b+2*_),iconProps:{iconName:"PlayReverse"},disabled:m.length===0||m[0].id===k,ariaLabel:"Newer"}),e.jsx(qe,{selectedKey:_,placeholder:"Items per page",options:OP,onChange:(A,I)=>{v(I.key)}}),e.jsx(dt,{onClick:()=>T(b),iconProps:{iconName:"Play"},disabled:k===0||m.length<_,ariaLabel:"Older"}),e.jsx(dt,{onClick:()=>{L(0),C(0),T(0)},iconProps:{iconName:"Refresh"},ariaLabel:"Refresh"}),e.jsx(dt,{onClick:()=>Y(),iconProps:{iconName:"Delete"},ariaLabel:"Delete log",children:"Delete log"})]})]}),e.jsx(U,{tokens:{childrenGap:"10px"},style:{width:"50%",minWidth:"450px",margin:"0px 0px 0px 5px",padding:"10px",border:"1px solid #d1d1d1"},children:t?e.jsx(e.Fragment,{children:e.jsx("table",{className:"wpo365MailViewerTable",style:{tableLayout:"fixed",width:"100%"},children:e.jsxs("tbody",{children:[e.jsx("tr",{children:e.jsx("th",{colSpan:3,style:{padding:"10px",fontSize:"130%",textAlign:"center"},children:"Mail Preview"})}),e.jsx("tr",{children:e.jsx("td",{colSpan:3,children:e.jsx("hr",{})})}),e.jsxs("tr",{children:[e.jsx("th",{children:"Subject"}),e.jsx("td",{colSpan:2,children:t.mail_subject})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"To"}),e.jsx("td",{colSpan:2,children:t.mail_to&&(Array.isArray(t.mail_to)?t.mail_to.map(A=>e.jsxs("div",{children:[e.jsx("span",{style:{fontWeight:600,paddingRight:"10px"},children:"To"}),e.jsx("span",{children:A})]})):e.jsxs("div",{children:[e.jsx("span",{style:{fontWeight:600,paddingRight:"10px"},children:"To"}),e.jsx("span",{children:t.mail_to})]}))})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Sent"}),e.jsx("td",{colSpan:2,children:t.mail_sent})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Success"}),e.jsx("td",{colSpan:2,children:t.mail_success?"Yes":"No"})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Attempts"}),e.jsx("td",{colSpan:2,children:"mail_attempts"in t?`${t.mail_attempts}/${n.mailAutoRetry?"4":"1"}`:"1"})]}),t.mail_error?e.jsxs("tr",{children:[e.jsx("th",{children:"Info"}),e.jsx("td",{colSpan:2,children:e.jsx("div",{dangerouslySetInnerHTML:{__html:t.mail_error}})})]}):e.jsxs("tr",{children:[e.jsx("th",{children:"Info"}),e.jsx("td",{colSpan:2,children:"-"})]}),Array.isArray(t.mail_headers)&&t.mail_headers.length>0?e.jsx(e.Fragment,{children:t.mail_headers.map((A,I)=>{const R=A.split(":");return R.length==2?e.jsxs("tr",{children:[e.jsx("th",{children:`${I==0?"Headers":""}`}),e.jsx("td",{children:R[0]}),e.jsx("td",{children:R[1]})]}):e.jsxs("tr",{children:[e.jsx("th",{children:"Headers"}),e.jsx("td",{colSpan:2,children:"-"})]})})}):e.jsxs("tr",{children:[e.jsx("th",{children:"Headers"}),e.jsx("td",{colSpan:2,children:"-"})]}),Array.isArray(t.mail_attachments)&&t.mail_attachments.length>0?e.jsx(e.Fragment,{children:t.mail_attachments.map((A,I)=>e.jsxs("tr",{children:[e.jsx("th",{children:`${I==0?"Attachments":""}`}),e.jsx("td",{colSpan:2,children:A})]}))}):e.jsxs("tr",{children:[e.jsx("th",{children:"Attachments"}),e.jsx("td",{colSpan:2,children:"-"})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:3,children:e.jsx("hr",{})})}),e.jsx("tr",{children:e.jsx("td",{colSpan:3,children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:"15px"},children:[e.jsx(dt,{style:{minWidth:"150px"},onClick:()=>N(t.id),iconProps:{iconName:"Send"},children:"Send again"}),g=="sending"&&e.jsx(Oe,{size:Te.small})]})})}),e.jsx("tr",{children:e.jsx("td",{colSpan:3,children:e.jsx("div",{dangerouslySetInnerHTML:{__html:t.mail_body}})})})]})})}):e.jsx("div",{className:j.wpo365WzRowifier,style:{justifyContent:"center",paddingTop:"50px"},children:e.jsx("div",{children:e.jsx("em",{children:"No preview available"})})})})]})]})})})},Ht=o=>{const{children:s,requiredVersions:n}=o,{env:{props:{addOns:t}}}=D.useContext(Ye);return n.some(i=>i.addOn in Ip&&Ip[i.addOn]in t&&t[Ip[i.addOn]].activated&&parseFloat(t[Ip[i.addOn]].version)>=i.minVersion)?e.jsx(e.Fragment,{children:s}):e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},style:{color:"#0078D4"},children:[e.jsx(Ke,{className:j.wpo365WzIconButton,iconProps:{iconName:"CloudDownload"},title:"Install latest version"}),e.jsx("span",{children:"Please update your WPO365 premium extension"})]})},BP={maxWidth:"400px",color:"#cc0000"},HP=o=>{const{env:s,env:{props:{autoRetryOk:n,extensions:t,ssoConfigured:i,wpConfigAad:d,wpConfigMultiple:c}},settings:u,settings:{hidePremiumOptions:h},updateSettings:g}=D.useContext(Ye),w=()=>({applicationId:u.applicationId,applicationSecret:u.applicationSecret,appOnlyApplicationId:u.appOnlyApplicationId,appOnlyApplicationSecret:u.appOnlyApplicationSecret,mailAllowFrom:u.mailAllowFrom,mailApplicationId:u.mailApplicationId,mailApplicationSecret:u.mailApplicationSecret,mailAuthorizationScenario:u.mailAuthorizationScenario,mailAutoRetry:u.mailAutoRetry,mailDefaultRecipient:u.mailDefaultRecipient,mailFixLocalhost:u.mailFixLocalhost,mailFrom:u.mailFrom,mailIntervals:u.mailIntervals,mailLog:u.mailLog,mailLogRetention:u.mailLogRetention,mailMimeType:u.mailMimeType,mailMultiTenanted:u.mailMultiTenanted,mailRedirectUrl:u.mailRedirectUrl,mailReplyTo:u.mailReplyTo,mailSaveToSentItems:u.mailSaveToSentItems,mailSendAs:u.mailSendAs,mailSendAsFrom:u.mailSendAsFrom,mailSendShared:u.mailSendShared,mailSendSharedFrom:u.mailSendSharedFrom,mailSendToBcc:u.mailSendToBcc,mailSkipAllChecks:u.mailSkipAllChecks,mailStagingMode:u.mailStagingMode,mailTenantId:u.mailTenantId,mailThreshold:u.mailThreshold,mailThrottlingEnabled:u.mailThrottlingEnabled,mailTld:u.mailTld,redirectUrl:u.redirectUrl,redirectUrlStrict:u.redirectUrlStrict,samlX509Cert:u.samlX509Cert,skipPasswordCredentialsExpiredCheck:u.skipPasswordCredentialsExpiredCheck,tenantId:u.tenantId,useGraphMailer:u.useGraphMailer,useWpConfig:u.useWpConfig,wpRestAadApplicationId:u.wpRestAadApplicationId,wpRestAadApplicationIdUri:u.wpRestAadApplicationIdUri}),[m,x]=D.useState(w()),[_]=D.useState(s.props.addOns&&Object.keys(s.props.addOns).length>0),[v,b]=D.useState(null),[C,k]=D.useState(),[L,T]=D.useState(!1),[N,Y]=D.useState("unauthorized"),[A,I]=D.useState([]),[R,H]=D.useState(we.initial),[W,K]=D.useState(""),[Z,Q]=D.useState(""),[B,P]=D.useState(""),[X,$]=D.useState(!1),[ie,le]=D.useState(Ys.initial),[V,z]=D.useState(null),[J,ee]=D.useState(null),[me,te]=D.useState("initial"),[G,ne]=D.useState(""),[Ue,Ge]=D.useState("copyDelete"),[Ut,ht]=D.useState("hidden"),[Le,je]=D.useState(n),[$e,Ct]=D.useState(null),At=D.useRef(),Mt=D.useRef("unauthorized"),Wt=ge=>{Y(ge),Mt.current=ge},Xt=(ge,se)=>{switch(ge){case"tenantId":return _&&m.useWpConfig||se&&/^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(se);case"applicationId":return _&&m.useWpConfig||se&&/^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(se);case"applicationSecret":return _&&m.useWpConfig||se&&!/^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(se);case"redirectUri":return _&&m.useWpConfig||se&&(/^(http|https):\/\/.*\/{1}$/i.test(se)||se.indexOf("=mail-integration-365-settings")>0);case"redirectUriStrict":return!m.redirectUrlStrict||_&&m.useWpConfig||se&&se.length>s.props.siteUrl.length+2;case"mailFrom":return se&&/^(?:[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+\.)*[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+@(?:(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!\.)){0,61}[a-zA-Z0-9]?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!$)){0,61}[a-zA-Z0-9]?)|(?:\[(?:(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\]))$/.test(se);default:return!1}},[ys,an]=D.useState(u.redirectUrlStrict?Xt("redirectUriStrict",u.mailRedirectUrl):!0),fo=ge=>ge.indexOf("AADSTS7000215")>=0?"WPO365 could not retrieve application-level permissions to send emails using Microsoft Graph. If you intend to authorize a single user account using delegated permissions, then you can safely ignore this warning. [Orginal error: AADSTS7000215: Invalid client secret provided. Ensure the secret being sent in the request is the client secret value, not the client secret  [...]]":ge.indexOf("does not has the role requested")?`WPO365 could not retrieve application-level permissions to send emails using Microsoft Graph. If you intend to authorize a single user account using delegated permissions, then you can safely ignore this warning. [Orginal error: ${ge}]`:ge,Hn=(ge,se,Ae,gt)=>{if(ge){se(!1);return}b({title:Ae,subText:gt,onDismiss:()=>b(null),onCancel:()=>b(null),onConfirm:()=>{b(null),se(!0)}})},ki=async()=>{if(!W)return{message:"Please enter a valid email address to send a test email to.",success:!1};if(!m.mailFrom)return{message:'Please enter a valid email address for "(Default) From".',success:!1};const ge=new FormData;ge.append("action","wpo365_send_test_mail"),ge.append("nonce",s.nonce),ge.append("ina",window.wpo365.wizard.props.ina),ge.append("to",JSON.stringify(W.split(","))),ge.append("cc",JSON.stringify(Z.split(","))),ge.append("bcc",JSON.stringify(B.split(","))),ge.append("attachment",JSON.stringify(X));let se;try{se=await Ee.post(s.wpAjaxAdminUrl,ge)}catch(Ae){return{success:!1,message:Ae.message}}return se.status>=200&&se.status<300&&se.data&&se.data.status?se.data.status=="OK"?{message:he.empty,success:!0}:{message:se.data.message,success:!1}:{message:`Error occured (HTTP status ${se.status})`,success:!1}},rr=async(ge=!1,se=!1)=>{k(""),Wt("authorizing");const Ae=await or(!0);if(Ae){k(`${Ae}.`),Wt("unauthorized");return}const gt=new FormData;gt.append("action","wpo365_get_mail_auth_configuration"),gt.append("deleteDelegated",ge||u.mailFrom!=m.mailFrom?"true":"false"),gt.append("deleteAppOnly",se?"true":"false"),gt.append("nonce",s.nonce),gt.append("ina",window.wpo365.wizard.props.ina);let Bt;try{Bt=await Ee.post(s.wpAjaxAdminUrl,gt)}catch(sr){k(`${sr.message}.`),Wt("unauthorized");return}if(Bt.status>=200&&Bt.status<300&&Bt.data&&Bt.data.status){if(Bt.data.status=="OK"){if(ee(Bt.data.result),Bt.data.result.delegated_authorized){Wt("authorized"),Bt.data.result.has_refresh_token||k("Refresh token is missing [Check documentation].");return}if(Bt.data.result.app_only_authorized){Wt("authorized");return}Wt("unauthorized");return}k(`The following error occurred: [${Bt.status}] ${Bt.data.message}.`),Wt("unauthorized");return}k("An unknown error occurred [Check your browser's developer console for details]."),Wt("unauthorized")},Ft=async()=>{if(Wt("authorizing"),k(null),!m.mailFrom){k('Cannot start authorization when no "From" User Mailbox / Account has been specified.'),Wt("unauthorized");return}if(!m.mailTenantId){k("Cannot start authorization when no directory (tenant) ID has been specified."),Wt("unauthorized");return}if(!m.mailApplicationId){k("Cannot start authorization when no application (client) ID has been specified."),Wt("unauthorized");return}if(!m.mailApplicationSecret){k("Cannot start authorization when no aplication (client) secret has been specified."),Wt("unauthorized");return}if(!m.mailRedirectUrl){k("Cannot start authorization when no redirect URL has been specified."),Wt("unauthorized");return}const ge=await or(!0);if(ge){k(`${ge}.`),Wt("unauthorized");return}(J.delegated_authorized||J.app_only_authorized)&&await rr(!0,!0);const se=new FormData;se.append("action","wpo365_get_mail_authorization_url"),se.append("nonce",s.nonce),se.append("ina",window.wpo365.wizard.props.ina);let Ae;try{Ae=await Ee.post(s.wpAjaxAdminUrl,se)}catch(gt){k(`${gt.message}.`),Wt("unauthorized");return}if(Ae.status>=200&&Ae.status<300&&Ae.data&&Ae.data.status){if(Ae.data.status=="OK"){location.href=Ae.data.result;return}k(`The following error occurred: [${Ae.status}] ${Ae.data.message}.`),Wt("unauthorized");return}k("An unknown error occurred [Check your browser's developer console for details]."),Wt("unauthorized")},Go=async()=>{ee(null),ne(""),te("copying");const ge=new FormData;ge.append("action","wpo365_try_migrate_mail_app_principal_info"),ge.append("nonce",s.nonce),ge.append("ina",window.wpo365.wizard.props.ina),ge.append("copyMode",Ue);let se;try{if(se=await Ee.post(s.wpAjaxAdminUrl,ge),se&&se.data&&se.data.status&&se.data.status=="NOK")throw se.data.message;window.location.reload()}catch(Ae){console.error(Ae),ne(Ae.message?Ae.message:Ae)}te("initial")},or=async(ge=!1)=>{ge||(I([]),H(we.saving),le(Ys.testing));const se={...u};se.applicationId=m.applicationId,se.applicationSecret=m.applicationSecret,se.appOnlyApplicationId=m.appOnlyApplicationId,se.appOnlyApplicationSecret=m.appOnlyApplicationSecret,se.mailAllowFrom=m.mailAllowFrom,se.mailApplicationId=m.mailApplicationId,se.mailApplicationSecret=m.mailApplicationSecret,se.mailAuthorizationScenario=m.mailAuthorizationScenario,se.mailAutoRetry=m.mailAutoRetry,se.mailDefaultRecipient=m.mailDefaultRecipient,se.mailFixLocalhost=m.mailFixLocalhost,se.mailFrom=m.mailFrom,se.mailIntervals=m.mailIntervals,se.mailLog=m.mailLog,se.mailLogRetention=m.mailLogRetention,se.mailMimeType=m.mailMimeType,se.mailMultiTenanted=m.mailMultiTenanted,se.mailRedirectUrl=m.mailRedirectUrl,se.mailReplyTo=m.mailReplyTo,se.mailSaveToSentItems=m.mailSaveToSentItems,se.mailSendAs=m.mailSendAs,se.mailSendAsFrom=m.mailSendAsFrom,se.mailSendShared=m.mailSendShared,se.mailSendSharedFrom=m.mailSendSharedFrom,se.mailSendToBcc=m.mailSendToBcc,se.mailSkipAllChecks=m.mailSkipAllChecks,se.mailStagingMode=m.mailStagingMode,se.mailTenantId=m.mailTenantId,se.mailThreshold=m.mailThreshold,se.mailThrottlingEnabled=m.mailThrottlingEnabled,se.mailTld=m.mailTld,se.redirectUrl=m.redirectUrl,se.redirectUrlStrict=m.redirectUrlStrict,se.samlX509Cert=m.samlX509Cert,se.skipPasswordCredentialsExpiredCheck=m.skipPasswordCredentialsExpiredCheck,se.tenantId=m.tenantId,se.useGraphMailer=m.useGraphMailer,se.useWpConfig=m.useWpConfig;try{const Ae=await Fe.updateSettings(s,se);if(Ae.success){const gt=await Fe.getSettings(s);if(g(gt),ge)return null;I([]),H(we.success);const Bt=await ki();Bt&&"success"in Bt&&Bt.success?le(Ys.success):(I([`Failed to send a test email [Reason: ${Bt.message?Bt.message:"No error details available."}]. Also check the <a href="#debug">Debug Log</a> for possible warnings / errors.`]),H(we.error),le(Ys.error))}else{const gt=`Could not save your configuration (${Ae.message})`;if(ge)return gt;I([gt]),H(we.error)}}catch{const gt="Unknown error occured whilst updating settings [check F12 > console for technical details]";if(ge)return gt;I([gt]),H(we.error)}},$o=async(ge=!1)=>{Ct(null);const se=new FormData;se.append("action","wpo365_mail_auto_retry"),se.append("nonce",s.nonce),se.append("ina",window.wpo365.wizard.props.ina),se.append("unschedule",ge?"1":"0");let Ae;try{Ae=await Ee.post(s.wpAjaxAdminUrl,se)}catch(gt){je(!1),Ct(gt);return}if(Ae.status<200||Ae.status>=300||Ae&&Ae.data&&Ae.data.status&&Ae.data.status=="NOK"){Ae.data&&Ae.data.message?Ct(Ae.data.message):Ct("Unknown error occurred whilst trying to create the WP Cron Job that automatically resends failed emails."),je(!1);return}je(!0)},Pt=()=>{Hn(m.mailMultiTenanted,ge=>{x({...m,mailMultiTenanted:ge,mailSkipAllChecks:ge?!0:m.mailSkipAllChecks}),ge&&At.current&&clearTimeout(At.current)},"Important",`You indicated that you wish to authorize a personal Microsoft account (e.g. Hotmail.com or 
       Outlook.com). Please read the <a href="https://tutorials.wpo365.com/courses/email-configure-microsoft-graph-mailer/lessons/send-email-from-a-personal-microsoft-account-e-g-hotmail-com/" 
       target="_blank">online documentation</a> to ensure that you have enabled multi-tenancy 
       support for your "App Registration" (in Entra ID) and selected the option "Accounts in 
       any organizational directory (Any Microsoft Entra ID tenant - Multitenant) and personal 
       Microsoft accounts (e.g. Skype, Xbox)" for "Supported account types" on its "Authentication" 
       page.`)};return D.useEffect(()=>{m.useGraphMailer&&rr(!1,!1)},[]),D.useEffect(()=>{V&&(V=="useGraphMailer"?rr(!0,!0).then(()=>z(null)).catch(()=>z(null)):V=="stagingMode"?or(!0).then(async ge=>{ge||(await $o(!m.mailAutoRetry),location.reload()),z(null)}).catch(()=>z(null)):V=="autoRetry"?or(!0).then(async ge=>{ge||await $o(!m.mailAutoRetry),z(null)}).catch(()=>z(null)):(V=="obfuscate"||V=="useGcc")&&or(!0).then(async ge=>{z(null)}).catch(()=>z(null)))},[V]),D.useEffect(()=>{T((J||N!="authorizing")&&(_&&m.useWpConfig||Xt("tenantId",m.mailTenantId)&&Xt("applicationId",m.mailApplicationId)&&Xt("applicationSecret",m.mailApplicationSecret)&&Xt("redirectUri",m.mailRedirectUrl)&&Xt("mailFrom",m.mailFrom))),!(m.mailFrom==u.mailFrom&&m.useWpConfig==u.useWpConfig&&u.mailRedirectUrl==m.mailRedirectUrl&&u.mailTenantId==m.mailTenantId&&u.mailApplicationId==m.mailApplicationId&&u.mailApplicationSecret==m.mailApplicationSecret)&&m.mailTenantId&&m.mailApplicationId&&m.mailApplicationSecret&&m.mailRedirectUrl&&(At.current&&clearTimeout(At.current),At.current=setTimeout(()=>Mt.current!="authorizing"&&ht("deleteBoth"),4e3))},[J,m.mailFrom,m.useWpConfig,m.mailTenantId,m.mailApplicationId,m.mailApplicationSecret,m.mailRedirectUrl]),D.useEffect(()=>{(u.mailTenantId!=m.mailTenantId||u.mailApplicationId!=m.mailApplicationId||u.mailRedirectUrl!=m.mailRedirectUrl||u.mailApplicationSecret!=m.mailApplicationSecret||u.useWpConfig!=m.useWpConfig)&&x(w())},[u]),D.useEffect(()=>{an(Xt("redirectUriStrict",m.mailRedirectUrl))},[m.redirectUrlStrict,m.mailRedirectUrl]),D.useEffect(()=>{!m.mailMultiTenanted&&m.mailFrom&&m.mailFrom!=u.mailFrom&&["hotmail","outlook"].forEach(se=>{m.mailFrom.indexOf(`@${se}`)>-1&&Pt()})},[m.mailFrom]),e.jsxs(e.Fragment,{children:[e.jsx("div",{className:j.wpo365WzMain,children:e.jsxs("table",{className:j.wpo365WzTable,children:[e.jsxs("colgroup",{children:[e.jsx("col",{width:"50%"}),e.jsx("col",{width:"50%"})]}),e.jsxs("tbody",{children:[e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsxs("h3",{className:j.wpo365WzSectionTitle,children:[e.jsx("span",{style:{color:"#CE5708"},children:"Getting started"})," with Email"]})})}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx(ou,{buttons:[{callToAction:"Send WP emails from any M365 Mailbox",info:"https://www.wpo365.com/feature/send-wordpress-emails-using-microsoft-graph/",title:"Email",tutorial:"https://tutorials.wpo365.com/courses/email-configure-microsoft-graph-mailer/"}]})})}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsxs("strong",{children:["Sending emails with Microsoft Graph is ",m.useGraphMailer?"enabled":"disabled"]})})}),e.jsx("td",{children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",style:{height:"30px"},children:[e.jsx(Mn,{styles:{root:{marginBottom:"0px",marginRight:"10px"}},checked:m.useGraphMailer,onChange:(ge,se)=>Hn(m.useGraphMailer,Ae=>{x(Ae?{...m,useGraphMailer:Ae}:{...m,useGraphMailer:Ae,mailAllowFrom:!1,mailApplicationId:"",mailApplicationSecret:"",mailAutoRetry:!1,mailDefaultRecipient:"",mailFixLocalhost:!1,mailFrom:"",mailIntervals:[3600,7200,14400],mailLog:!1,mailMimeType:"Html",mailRedirectUrl:u.redirectUrl,mailReplyTo:"",mailSaveToSentItems:!1,mailSendAs:!1,mailSendAsFrom:"",mailSendShared:!1,mailSendSharedFrom:"",mailSendToBcc:!1,mailStagingMode:!1,mailTenantId:"",mailThreshold:20,mailThrottlingEnabled:!1}),z("useGraphMailer")},"Important",`<p>You are configuring the <strong>WPO365</strong> plugin to send your WordPress transactional emails from a Microsoft 365 / Exchange Online Mail enabled account
                           using Microsoft Graph.</p><p>Please make sure that you have read the <a href="${t.indexOf(l.wpo365Login)==-1?"https://docs.wpo365.com/article/141-send-email-using-microsoft-graph-mailer":"https://docs.wpo365.com/article/108-sending-wordpress-emails-using-microsoft-graph"}" 
                           target="_blank">online documentation</a>.</p>`)}),V=="useGraphMailer"&&e.jsx(Oe,{size:Te.small})]})})]}),m.useGraphMailer&&e.jsxs(e.Fragment,{children:[t.some(ge=>ge==l.mailIntegration)&&e.jsxs(e.Fragment,{children:[e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsxs("h3",{className:j.wpo365WzSectionTitle,style:{backgroundColor:"#0078d4",color:"#ffffff"},children:["Import Tool for ",e.jsx("em",{children:"Mail Integration for Office 365 / Outlook"})," settings"]})})}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsxs("span",{style:{color:"#CC0000"},children:[e.jsx(ze,{iconName:"Warning",style:{paddingRight:"5px"}}),"Please take a moment and carefully read the  ",e.jsx("a",{href:"https://docs.wpo365.com/article/165-migrate-from-mail-integration-for-office-365-outlook-to-wpo365-microsoft-graph-mailer",target:"_blank",children:"migration guide"})," ","  before you click ",e.jsx("strong",{children:"Import"}),"."]})})}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Import mode"})})}),e.jsx("td",{children:e.jsx(qe,{options:[{key:"select",text:"Select",itemType:Rt.Header},{key:"copy",text:"Import"},{key:"copyDelete",text:"Import, Delete"}],selectedKey:Ue,onChange:(ge,se)=>Ge(se.key),style:{maxWidth:"400px"},disabled:me!="initial"||!J})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsxs("span",{children:["Import OAUTH settings from ",e.jsx("strong",{children:"Mail Integration for Office 365 / Outlook"})]})})}),e.jsx("td",{children:e.jsxs(U,{horizontal:!0,tokens:{childrenGap:10},children:[e.jsx(et,{onClick:Go,styles:{root:{maxHeight:"30px",maxWidth:"90px"}},disabled:me!="initial"||!J,children:"Import"}),me=="copying"&&e.jsx(Oe,{size:Te.small}),G&&e.jsx("div",{style:{color:"#cc0000"},children:G})]})})]})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Entra ID Integration"})})}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Directory (tenant) ID"})," "]})}),e.jsx("td",{children:e.jsx(fe,{isValid:(ge,se)=>Xt("tenantId",se),onValid:ge=>x({...m,mailTenantId:ge}),bound:!1,errorMessage:he.errDirectoryIdMustBeGuid,value:m.mailTenantId,placeholder:he.infoDirectoryId,disabled:!J||_&&m.useWpConfig||N=="authorizing"||d||c})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"GCC High Tenant (Microsoft 365 Gov)"})})}),e.jsx("td",{children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",style:{height:"30px"},children:[e.jsx(Mn,{styles:{root:{marginBottom:"0px",marginRight:"10px"}},checked:m.mailTld===".us",onChange:(ge,se)=>Hn(m.mailTld===".us",Ae=>{x({...m,mailTld:Ae?".us":".com"}),z("useGcc")},"Important",`<p>Only check this option if you have made sure that your organization is using
                                    a so-called GCC High Tenant, which is a specialized cloud environment offered
                                    by Microsoft to meet the stringent compliance and security requirements of the 
                                    United States Department of Defense (DoD) and contractors handling Controlled 
                                    Unclassified Information (CUI) or subject to International Traffic in Arms 
                                    Regulations (ITAR). </p>`),disabled:m.mailStagingMode}),V=="useGcc"&&e.jsx(Oe,{size:Te.small})]})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Application (Client) ID"})," ",m.mailApplicationId&&(!_||!m.useWpConfig)&&e.jsx("em",{children:e.jsx("a",{href:`https://entra.microsoft.com/#view/Microsoft_AAD_RegisteredApps/ApplicationMenuBlade/~/Overview/appId/${m.mailApplicationId}/isMSAApp/`,target:"_blank",children:"View in Entra Portal"})})]})}),e.jsx("td",{children:e.jsx(fe,{isValid:(ge,se)=>Xt("applicationId",se),onValid:ge=>x({...m,mailApplicationId:ge}),bound:!1,errorMessage:he.errAppOnlyApplicationIdMustBeGuid,value:m.mailApplicationId,placeholder:he.infoAppOnlyApplicationId,disabled:!J||_&&m.useWpConfig||N=="authorizing"||d||c})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Application (Client) secret"})})}),e.jsx("td",{children:e.jsx(fe,{isValid:(ge,se)=>Xt("applicationSecret",se),onValid:ge=>x({...m,mailApplicationSecret:ge}),bound:!1,errorMessage:"The application (client) secret is mandatory and may not be a GUID",value:m.mailApplicationSecret,disabled:!J||_&&m.useWpConfig||N=="authorizing"||d||c,password:!0})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Skip check for Application (Client) Secret expiration"})," ",e.jsx(de,{info:{title:"Skip check for App registration secret expiration",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/203-skip-check-for-aad-app-registration-secret-expiration"}}})]})}),e.jsx("td",{children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx(ce,{onChange:(ge,se)=>x({...m,skipPasswordCredentialsExpiredCheck:se}),checked:m.skipPasswordCredentialsExpiredCheck,disabled:!t.some(ge=>ge===l.wpo365MsGraphMailer)}),!t.some(ge=>ge===l.wpo365MsGraphMailer)&&e.jsxs(e.Fragment,{children:[e.jsx(ze,{iconName:"Warning",style:{paddingRight:"5px",color:"#0078D4"}}),e.jsxs("span",{style:{color:"#0078D4"},children:["Can be changed on the ",e.jsx("a",{href:"#integration",children:"Integration"})," page"]})]})]})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Redirect URI"})})}),e.jsx("td",{children:e.jsxs(U,{tokens:{childrenGap:0},children:[e.jsx(fe,{isValid:(ge,se)=>Xt("redirectUri",se),onValid:ge=>x({...m,mailRedirectUrl:ge}),bound:!1,errorMessage:'Redirect URI must be a valid URL and start with "http(s)://" and end with "/".',value:m.mailRedirectUrl,placeholder:he.infoRedirectUri,disabled:!J||_&&m.useWpConfig||N=="authorizing"||d||c}),!ys&&e.jsx("label",{style:{lineHeight:"30px",color:"#cc0000"},children:'Redirect URI cannot be equal to the site address when "strict mode" is selected'})]})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Enable strict mode for Redirect URI"}),e.jsx(de,{info:{title:"Enable strict mode for Redirect URI",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/204-enable-strict-mode-for-redirect-uri"}}})]})}),e.jsx("td",{children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{checked:m.redirectUrlStrict,onChange:(ge,se)=>x({...m,redirectUrlStrict:se}),disabled:i&&!u.useSaml||d||c})}),(i&&!u.useSaml||d||c)&&e.jsxs("span",{className:j.wpo365WzRowifier,style:{color:"#0078D4"},children:[e.jsx(ze,{iconName:"Warning",style:{paddingRight:"5px"}}),"Can be changed on the ",e.jsx("a",{href:"#singleSignOn",children:"Single Sign-on"})," page"]})]})})]}),(!h||t.some(ge=>[l.wpo365Mail,l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Customers,l.wpo365Integrate,l.wpo365Pro].some(se=>se==ge)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Obfuscate Entra ID options"})," ",e.jsx(de,{info:{title:"Use WP-Config(.php) for AAD secrets",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/137-use-wp-config-for-aad-secrets"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:t,targets:[l.wpo365Mail,l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Customers,l.wpo365Integrate,l.wpo365Pro],children:e.jsxs(U,{tokens:{childrenGap:10},children:[e.jsxs(U,{horizontal:!0,verticalAlign:"center",style:{height:"30px"},children:[e.jsx(Mn,{styles:{root:{marginBottom:"0px",marginRight:"10px"}},checked:m.useWpConfig,disabled:!u.noSso||!J||N=="authorizing"||!m.useWpConfig&&!d&&!c,onChange:(ge,se)=>{x({...m,useWpConfig:se}),z("obfuscate")}}),V=="obfuscate"&&e.jsx(Oe,{size:Te.small})]}),!u.noSso&&(m.useWpConfig||d||c)&&e.jsxs("span",{className:j.wpo365WzRowifier,style:{color:"#0078D4"},children:[e.jsx(ze,{iconName:"Warning",style:{paddingRight:"5px"}}),"Can be changed on the ",e.jsx("a",{href:"#singleSignOn",children:"Single Sign-on"})," page"]})]})})})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Mail account configuration"})})}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Desired Authorization Scenario"}),e.jsx(de,{info:{title:"Desired Authorization Scenario",readMore:{title:"Read online",url:"https://tutorials.wpo365.com/courses/email-configure-microsoft-graph-mailer/lessons/select-authorization-scenario/"}}})]})}),e.jsx("td",{children:e.jsx(qe,{onChange:(ge,se)=>{const Ae={...m};Ae.mailAuthorizationScenario=se.key,se.key===er.personal?(Ae.mailMultiTenanted=!0,Ae.mailSkipAllChecks=!0):Ae.mailMultiTenanted=!1,x(Ae),ht("deleteBoth")},placeholder:"Select your desired scenario",options:[{key:er.auto,text:"Please select one"},{key:er.delegated,text:"Send as a user (delegated permissions)"},{key:er.personal,text:"Send from a personal Microsoft account e.g. Outlook.com"},{key:er.application,text:"Send as any user (application permissions)"},{key:er.rbac,text:"Send as any user (RBAC for EXO)"}],style:{maxWidth:"400px"},selectedKey:m.mailAuthorizationScenario})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx("span",{children:"Detected authorization status"}),e.jsx(el,{iconProps:{iconName:"Refresh"},title:"Refresh",ariaLabel:"Refresh",onClick:()=>ht("deleteAppOnly"),disabled:N=="authorizing",styles:{label:{fontSize:"13px",color:"#2271b1",textDecoration:"underline"}},children:"Check again"})]})}),e.jsx("td",{children:e.jsxs(U,{tokens:{childrenGap:10},children:[e.jsxs(U,{horizontal:!0,tokens:{childrenGap:10},children:[e.jsx(ce,{checked:J&&J.app_only_authorized,label:"Application permissions",disabled:!0,styles:{root:{marginRight:"10px"}}}),J&&J.app_only_last_error&&e.jsx(xn,{content:e.jsx("span",{children:fo(J.app_only_last_error)}),id:"tooltip_app_only_last_error",calloutProps:{gapSpace:0},styles:{root:{display:"inline-block",cursor:"pointer",color:"red",height:"27px"}},children:e.jsx(ze,{iconName:"Error"})})]}),e.jsx(ce,{onChange:(ge,se)=>!se&&ht("deleteDelegated"),checked:J&&J.delegated_authorized,label:"Delegated permissions",disabled:!J||!J.delegated_authorized}),J&&J.app_only_authorized&&[er.auto,er.delegated,er.personal].indexOf(m.mailAuthorizationScenario)>-1&&e.jsxs(U,{children:[e.jsxs(U,{horizontal:!0,tokens:{childrenGap:10},children:[e.jsx("span",{children:e.jsx(ze,{iconName:"Warning"})}),e.jsxs("span",{style:{color:"#CC0000"},children:["Unnecessary ",e.jsx("strong",{children:"Application Permissions"})," detected"]})]}),e.jsx("span",{style:{maxWidth:"400px",color:"#0078D4"},dangerouslySetInnerHTML:{__html:`You have configured <strong>Application Permissions</strong> for <em>Mail.Send</em> but have 
                                           selected an <em>Authorization scenario</em> that only requires <strong>Delegated Permissions</strong>.
                                           Therefore it is recommended that you remove those <strong>Application Permissions</strong>. To do so,
                                           please visit <a href="https://entra.microsoft.com/#view/Microsoft_AAD_RegisteredApps/ApplicationMenuBlade/~/CallAnAPI/appId/${m.mailApplicationId}/isMSAApp~/false" target="_blank">Entra Portal</a>`}})]})]})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{dangerouslySetInnerHTML:{__html:`Authorized ${m.mailAuthorizationScenario===er.personal&&J&&!J.app_only_authorized?"personal Microsoft account":"Microsoft 365 account"}</em>`}})})}),e.jsx("td",{children:e.jsxs(U,{tokens:{childrenGap:10},children:[e.jsxs(U,{horizontal:!0,tokens:{childrenGap:10},children:[e.jsx(fe,{isValid:(ge,se)=>Xt("mailFrom",se),onValid:ge=>x({...m,mailFrom:ge}),errorMessage:"Please enter a valid email address",bound:!1,value:m.mailFrom,placeholder:he.infoMailFrom}),[er.auto,er.delegated,er.personal].indexOf(m.mailAuthorizationScenario)>-1&&e.jsx(et,{onClick:()=>Ft(),styles:{root:{maxHeight:"30px",maxWidth:"90px"}},disabled:!L,children:"Authorize"}),N=="authorized"&&e.jsx("div",{style:{color:"#378805"},children:"Authorized!"}),N=="authorizing"&&e.jsx(U.Item,{align:"start",styles:{root:{marginTop:"7px"}},children:e.jsx(Oe,{size:Te.small})}),J&&!J.app_only_authorized&&N=="unauthorized"&&e.jsx("div",{style:{color:"#cc0000"},children:"Unauthorized!"})]}),C&&e.jsx("p",{style:BP,dangerouslySetInnerHTML:{__html:C}})]})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Skip all checks"})," ",e.jsx(de,{info:{title:"Skip all checks",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/209-skip-all-mail-checks"}}})]})}),e.jsx("td",{children:e.jsx(ce,{onChange:(ge,se)=>{x({...m,mailSkipAllChecks:se})},checked:m.mailSkipAllChecks,disabled:m.mailMultiTenanted})})]}),!m.mailMultiTenanted&&e.jsxs(e.Fragment,{children:[(!h||t.some(ge=>[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Mail,l.wpo365Customers,l.wpo365Integrate,l.wpo365Pro].some(se=>se==ge)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Send from a Shared Mailbox"}),e.jsx(de,{info:{title:"Send from a Shared Mailbox",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/175-send-from-a-shared-mailbox"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:t,targets:[l.wpo365Mail,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Customers,l.wpo365Integrate,l.wpo365Pro],children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx(ce,{onChange:(ge,se)=>{x(se?{...m,mailSendShared:se,mailSendAs:!1,mailSendAsFrom:""}:{...m,mailSendShared:se})},checked:m.mailSendShared,disabled:m.mailSendAs}),m.mailSendAs&&e.jsxs("em",{children:["Uncheck ",e.jsx("strong",{children:"Send as / Send on behalf of"})," to enable"]})]})})})]}),m.mailSendShared&&(!h||t.some(ge=>[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Mail,l.wpo365Customers,l.wpo365Integrate,l.wpo365Pro].some(se=>se==ge)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Shared Mailbox"})})}),e.jsx("td",{children:e.jsx(re,{extensions:t,targets:[l.wpo365Mail,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Customers,l.wpo365Integrate,l.wpo365Pro],children:e.jsx(fe,{isValid:(ge,se)=>!0,onValid:ge=>x({...m,mailSendSharedFrom:ge}),bound:!1,value:m.mailSendSharedFrom,placeholder:he.infoMailFrom,disabled:m.mailSendAs})})})]}),(!h||t.some(ge=>[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Mail,l.wpo365Customers,l.wpo365Integrate,l.wpo365Pro].some(se=>se==ge)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Send as / Send on behalf of"}),e.jsx(de,{info:{title:"Send as / Send on behalf of",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/176-send-as-send-on-behalf-of"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:t,targets:[l.wpo365Mail,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Customers,l.wpo365Integrate,l.wpo365Pro],children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx(ce,{onChange:(ge,se)=>{x(se?{...m,mailSendAs:se,mailSendShared:!1,mailSendSharedFrom:""}:{...m,mailSendAs:se})},checked:m.mailSendAs,disabled:m.mailSendShared}),m.mailSendShared&&e.jsxs("em",{children:["Uncheck ",e.jsx("strong",{children:"Send from a Shared Mailbox"})," to enable"]})]})})})]}),m.mailSendAs&&(!h||t.some(ge=>[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Mail,l.wpo365Customers,l.wpo365Integrate,l.wpo365Pro].some(se=>se==ge)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Send as / Send on behalf of Mailbox"})})}),e.jsx("td",{children:e.jsx(re,{extensions:t,targets:[l.wpo365Mail,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Customers,l.wpo365Integrate,l.wpo365Pro],children:e.jsx(fe,{isValid:(ge,se)=>!0,onValid:ge=>x({...m,mailSendAsFrom:ge}),bound:!1,value:m.mailSendAsFrom,placeholder:he.infoMailFrom,disabled:m.mailSendShared})})})]}),(!h||t.some(ge=>[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Mail,l.wpo365Customers,l.wpo365Integrate,l.wpo365Pro].some(se=>se==ge)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Allow sending from other mailboxes"}),e.jsx(de,{info:{title:"Allow sending from other mailboxes",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/177-allow-forms-to-override-from-address"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:t,targets:[l.wpo365Mail,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Customers,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(ge,se)=>x({...m,mailAllowFrom:se}),checked:m.mailAllowFrom})})})})]})]}),(!h||t.some(ge=>[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Mail,l.wpo365Customers,l.wpo365Integrate,l.wpo365Pro].some(se=>se==ge)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Reply-to"})})}),e.jsx("td",{children:e.jsx(re,{extensions:t,targets:[l.wpo365Mail,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Customers,l.wpo365Integrate,l.wpo365Pro],children:e.jsx(fe,{isValid:(ge,se)=>!se||/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/i.test(se),onValid:ge=>x({...m,mailReplyTo:ge}),bound:!1,value:m.mailReplyTo,placeholder:he.infoMailFrom,errorMessage:he.errMustBeValidEmail})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Send email formatted as HTML"})})}),e.jsx("td",{children:e.jsx(qe,{options:[{key:"select",text:"Select",itemType:Rt.Header},{key:"Text",text:"Text"},{key:"Html",text:"Html"}],selectedKey:m.mailMimeType,onChange:(ge,se)=>x({...m,mailMimeType:se.key}),style:{maxWidth:"400px"}})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Save to Sent Items"})})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(ge,se)=>x({...m,mailSaveToSentItems:se}),checked:m.mailSaveToSentItems})})})]}),(!h||t.some(ge=>[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Mail,l.wpo365Customers,l.wpo365Integrate,l.wpo365Pro].some(se=>se==ge)))&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Send to Bcc instead"})})}),e.jsx("td",{children:e.jsx(re,{extensions:t,targets:[l.wpo365Mail,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Customers,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(ge,se)=>x({...m,mailSendToBcc:se}),checked:m.mailSendToBcc})})})})]}),m.mailSendToBcc&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Default To: recipient"})})}),e.jsx("td",{children:e.jsx(re,{extensions:t,targets:[l.wpo365Mail,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Customers,l.wpo365Integrate,l.wpo365Pro],children:e.jsx(fe,{isValid:(ge,se)=>!0,onValid:ge=>x({...m,mailDefaultRecipient:ge}),bound:!1,value:m.mailDefaultRecipient,placeholder:he.infoMailFrom})})})]})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Test configuration"})})}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Send test email to recipients"})})}),e.jsx("td",{children:e.jsx(fe,{isValid:(ge,se)=>!0,onValid:ge=>K(ge),bound:!1,value:W,placeholder:he.infoTestMailTo})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Send test email to CC recipients"})})}),e.jsx("td",{children:e.jsx(fe,{isValid:(ge,se)=>!0,onValid:ge=>Q(ge),bound:!1,value:Z,placeholder:he.infoTestMailTo})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Send test email BCC recipients"})})}),e.jsx("td",{children:e.jsx(fe,{isValid:(ge,se)=>!0,onValid:ge=>P(ge),bound:!1,value:B,placeholder:he.infoTestMailTo})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Send test email with attachment"})})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(ge,se)=>$(se),checked:X})})})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Mail Audit"})})}),!u.insightsEnabled&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Enable WPO365 Insights"}),e.jsx(de,{info:{title:"WPO365 Insights",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/210-wpo365-insights"}}})]})}),e.jsx("td",{children:e.jsx("a",{href:"#insights",children:"Visit Dashboard → Insights"})})]}),(!h||t.some(ge=>[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Mail,l.wpo365Customers,l.wpo365Integrate,l.wpo365Pro].some(se=>se==ge)))&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Enable Mail Staging Mode"}),e.jsx(de,{info:{title:"Enable Mail Staging Mode",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/171-mail-staging-mode"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:t,targets:[l.wpo365Mail,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Customers,l.wpo365Integrate,l.wpo365Pro],children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",style:{height:"30px"},children:[e.jsx(Mn,{styles:{root:{marginBottom:"0px",marginRight:"10px"}},checked:m.mailStagingMode,onChange:(ge,se)=>Hn(m.mailStagingMode,Ae=>{x({...m,mailStagingMode:Ae,mailLog:se?!0:m.mailLog,mailAutoRetry:se?!1:m.mailAutoRetry,mailThrottlingEnabled:se?!1:m.mailThrottlingEnabled}),z("stagingMode")},"Important",`<p>By checking this option, the <strong>WPO365</strong> plugin will no 
                                   longer send emails using Microsoft Graph but instead will log the email that 
                                   was intended to be sent. This makes especially sense for a staging environment.</p>
                                   <p>Please make sure that you have read the <a href="https://docs.wpo365.com/article/171-mail-staging-mode"
                                   target="_blank">online documentation</a>.</p>`)}),V=="stagingMode"&&e.jsx(Oe,{size:Te.small})]})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Log all emails sent"})})}),e.jsx("td",{children:e.jsx(re,{extensions:t,targets:[l.wpo365Mail,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Customers,l.wpo365Integrate,l.wpo365Pro],children:e.jsxs("div",{className:`${j.wpo365WzCheckbox} ${j.wpo365WzRowifier}`,children:[e.jsx(ce,{onChange:(ge,se)=>x({...m,mailLog:se}),checked:m.mailLog,disabled:m.mailStagingMode}),m.mailLog&&e.jsx("span",{style:{paddingLeft:"20px"},children:e.jsx("a",{href:"#mailLogViewer",children:"View logs"})})]})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Mail log retention"}),e.jsx(de,{info:{title:"Mail log retention",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/217-mail-log-retention"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:t,targets:[l.wpo365Mail,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Customers,l.wpo365Integrate,l.wpo365Pro],children:e.jsx(fe,{isValid:(ge,se)=>!isNaN(parseInt(se)),onValid:ge=>{x({...m,mailLogRetention:parseInt(ge)})},bound:!1,errorMessage:"Only numeric input is accepted",value:m.mailLogRetention.toString(),placeholder:"e.g. 45"})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Throttle # of emails / minute"}),e.jsx(de,{info:{title:"Throttle number of emails sent per minute",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/182-throttle-the-number-of-emails-sent-per-minute"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:t,targets:[l.wpo365Mail,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Customers,l.wpo365Integrate,l.wpo365Pro],children:e.jsx(Ht,{requiredVersions:[{addOn:l.wpo365Mail,minVersion:24},{addOn:l.wpo365LoginPremium,minVersion:24},{addOn:l.wpo365Sync5y,minVersion:24},{addOn:l.wpo365LoginIntranet,minVersion:24},{addOn:l.wpo365Integrate,minVersion:24},{addOn:l.wpo365Pro,minVersion:24},{addOn:l.wpo365Intranet5y,minVersion:24},{addOn:l.wpo365Customers,minVersion:24}],children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},style:{height:"30px"},children:[e.jsx(Mn,{styles:{root:{marginBottom:"0px",marginRight:"10px"}},checked:m.mailThrottlingEnabled,onChange:(ge,se)=>Hn(m.mailThrottlingEnabled,Ae=>{x({...m,mailThrottlingEnabled:Ae,mailAutoRetry:se?!0:m.mailAutoRetry,mailLog:se?!0:m.mailLog}),z("autoRetry")},"Important",`<p>Checking this option will automatically enable the plugin's ability to resend failed emails automatically. And it is for
                                    that reason that the plugin will add a new WP-Cron job to your system. It is your responsibility to ensure that WP-Cron jobs 
                                    are running frequently. Please check <a href="https://docs.wpo365.com/article/135-hooking-wp-cron-into-a-task-scheduling-service"
                                    target="_blank">our online documentation</a> how you can improve the stability of WP-Cron and simulate a situation in which
                                    WP-Cron is running continiously.</p>`),disabled:m.mailStagingMode}),m.mailThrottlingEnabled&&e.jsx(qe,{options:[{key:"2",text:"2"},{key:"10",text:"10"},{key:"20",text:"20"},{key:"30",text:"30"}],selectedKey:m.mailThreshold.toString(),onChange:(ge,se)=>x({...m,mailThreshold:parseInt(se.key)})})]})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Resending failed emails automatically"}),e.jsx(de,{info:{title:"Resending failed emails automatically",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/183-resending-failed-emails-automatically"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:t,targets:[l.wpo365Mail,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Customers,l.wpo365Integrate,l.wpo365Pro],children:e.jsx(Ht,{requiredVersions:[{addOn:l.wpo365Mail,minVersion:24},{addOn:l.wpo365LoginPremium,minVersion:24},{addOn:l.wpo365Sync5y,minVersion:24},{addOn:l.wpo365LoginIntranet,minVersion:24},{addOn:l.wpo365Intranet5y,minVersion:24},{addOn:l.wpo365Customers,minVersion:24},{addOn:l.wpo365Integrate,minVersion:24},{addOn:l.wpo365Pro,minVersion:24}],children:e.jsxs(U,{tokens:{childrenGap:0},children:[e.jsxs(U,{horizontal:!0,verticalAlign:"center",style:{height:"30px"},children:[e.jsx(Mn,{styles:{root:{marginBottom:"0px",marginRight:"10px"}},checked:m.mailAutoRetry,onChange:(ge,se)=>Hn(m.mailAutoRetry,Ae=>{x({...m,mailAutoRetry:Ae,mailLog:se?!0:m.mailLog}),z("autoRetry")},"Important",`<p>Checking this option will add a new WP-Cron job to your system. It is your responsibility to ensure that WP-Cron jobs are
                                    running frequently. Please check <a href="https://docs.wpo365.com/article/135-hooking-wp-cron-into-a-task-scheduling-service"
                                    target="_blank">our online documentation</a> how you can improve the stability of WP-Cron and simulate a situation in which
                                    WP-Cron is running continuously.</p>`),disabled:m.mailStagingMode}),V=="autoRetry"&&e.jsx(Oe,{size:Te.small}),m.mailAutoRetry&&!Le&&e.jsx(xn,{content:e.jsx("span",{children:"This feature did not correctly initialize. Please try to reactivate it."}),id:"tooltip_mail_auto_retry_error",calloutProps:{gapSpace:0},styles:{root:{display:"inline-block",cursor:"pointer",color:"#CC0000",height:"27px"}},children:e.jsx(ze,{iconName:"Warning"})})]}),$e&&e.jsx("div",{style:{color:"#cc0000"},children:$e})]})})})})]}),m.mailAutoRetry&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Interval in seconds between first, second and last attempt"})})}),e.jsx("td",{children:e.jsx(re,{extensions:t,targets:[l.wpo365Mail,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Customers,l.wpo365Integrate,l.wpo365Pro],children:e.jsx(Ht,{requiredVersions:[{addOn:l.wpo365Mail,minVersion:24},{addOn:l.wpo365LoginPremium,minVersion:24},{addOn:l.wpo365Sync5y,minVersion:24},{addOn:l.wpo365LoginIntranet,minVersion:24},{addOn:l.wpo365Intranet5y,minVersion:24},{addOn:l.wpo365Customers,minVersion:24},{addOn:l.wpo365Integrate,minVersion:24},{addOn:l.wpo365Pro,minVersion:24}],children:e.jsx(U,{tokens:{childrenGap:10},children:m.mailIntervals.map((ge,se)=>e.jsx(fe,{isValid:(Ae,gt)=>!isNaN(parseInt(gt)),onValid:Ae=>{const gt=[...m.mailIntervals];gt[se]=parseInt(Ae),x({...m,mailIntervals:gt})},bound:!1,errorMessage:"Only numeric input is accepted",value:m.mailIntervals[se].toString(),placeholder:"e.g. 3600"}))})})})})]})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Configuration"})})}),e.jsxs("tr",{children:[e.jsx("th",{}),e.jsx("td",{children:e.jsxs("div",{className:j.wpo365WzColumnifier,children:[e.jsxs(U,{horizontal:!0,tokens:{childrenGap:10},children:[e.jsx(dt,{onClick:()=>or(),iconProps:{iconName:R==we.success?"Like":void 0},style:{minWidth:"400px",maxWidth:"400px",minHeight:"30px",alignSelf:"start"},disabled:R==we.saving||N!="authorized",children:"Save configuration + send test email"}),ie===Ys.testing&&e.jsx(Oe,{size:Te.small})]}),e.jsxs("div",{className:j.wpo365WzLabelFor,children:[N=="unauthorized"&&e.jsxs("p",{className:j.wpo365WzP,children:["You must first complete the ",e.jsx("strong",{children:"Authorization"})," before you can send a ",e.jsx("em",{children:"test email"})]}),R==we.success?e.jsx("p",{style:{color:"#378805"},children:he.okSettingsUpdated}):null,A.map(ge=>e.jsx("p",{className:j.wpo365WzP,dangerouslySetInnerHTML:{__html:ge}})),ie==Ys.success&&e.jsxs("p",{className:j.wpo365WzP,style:{color:"#378805"},children:["Test email was sent successfully (but still you should check the ",e.jsx("a",{href:"#debug",children:"Debug Log"})," for possible warnings / errors)"]})]})]})})]})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx(Ho,{})})}),v&&e.jsx(Bo,{onCancel:v.onCancel,onConfirm:v.onConfirm,onDismiss:v.onDismiss,title:v.title,subText:v.subText})]})]})}),e.jsxs(Xp,{hidden:Ut=="hidden",onDismiss:()=>ht("hidden"),dialogContentProps:{type:Hs.normal,title:"Status check mail authorization"},modalProps:{isBlocking:!0,styles:{main:{maxWidth:"600px !important"}}},children:[Ut=="deleteAppOnly"&&e.jsxs("p",{children:["Let's check the status of the mail authorization. A new mail authorization with ",e.jsx("em",{children:"Application permissions"})," will be requested. An existing mail authorization with ",e.jsx("em",{children:"Delegated permissions"})," (if found) will not be deleted."]}),Ut=="deleteDelegated"&&e.jsxs("p",{children:["Let's check the status of the mail authorization. An existing mail authorization with ",e.jsx("em",{children:"Delegated permissions"})," (if found) will be deleted."]}),Ut=="deleteBoth"&&e.jsxs("p",{children:["Let's check the status of the mail authorization. All existing mail authorizations with both ",e.jsx("em",{children:"Application permissions"})," and / or"," ",e.jsx("em",{children:"Delegated permissions"})," (if found) will be deleted."]}),e.jsxs("p",{children:["Once the test completes you can read the status from the two checkbox status indicators for ",e.jsx("em",{children:"Application permissions"})," and"," ",e.jsx("em",{children:"Delegated permissions"}),"."]}),e.jsxs("p",{children:["If ",e.jsx("em",{children:"Application permissions"})," is checked, it means that application-level permissions have been detected. The plugin is now ready to send email using Microsoft Graph using these permissions. If you want to add / remove application-level permissions, then please make sure that you have added / removed application-level ",e.jsx("em",{children:"Mail.Send"})," permisisons from the ",e.jsx("em",{children:"App registration"}),"'s"," ",e.jsxs("a",{href:`https://entra.microsoft.com/#view/Microsoft_AAD_RegisteredApps/ApplicationMenuBlade/~/CallAnAPI/appId/${m.mailApplicationId}/isMSAApp/`,target:"_blank",children:[e.jsx("em",{children:"API Permissions"})," page"]})," ","in ",e.jsx("em",{children:"Entra ID"})," and wait a few minutes before checking again."]}),e.jsxs("p",{children:["If ",e.jsx("em",{children:"Delegated permissions"})," is checked, it means that user-level permissions have been detected. The plugin is now ready to send emails using Microsoft Graph using these permissions. If you want to remove user-level permissions, then simply remove the check from the status checkbox."]}),e.jsxs("p",{children:["To configure user-level permissions, enter a ",e.jsx("em",{children:"(Default) From"})," and click the ",e.jsx("em",{children:"Authorize"})," button."]}),e.jsx(wg,{children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx(U.Item,{grow:!1,children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx(et,{onClick:()=>ht("hidden"),text:"Cancel"}),e.jsx(dt,{onClick:()=>{const ge=Ut&&Ut!="deleteAppOnly",se=Ut&&Ut!="deleteDelegated";rr(ge,se),ht("hidden")},text:"Check status"})]})}),e.jsx(U.Item,{grow:!0,children:e.jsx(U,{horizontal:!0,verticalAlign:"center",horizontalAlign:"end",tokens:{childrenGap:10},children:[er.auto,er.delegated,er.personal].indexOf(m.mailAuthorizationScenario)>-1&&e.jsx(dt,{onClick:()=>Ft(),styles:{root:{maxHeight:"30px",maxWidth:"90px"}},disabled:!L,children:"Authorize"})})})]})})]})]})},zP=o=>{const{appStatus:s,env:n,env:{props:{extensions:t}},settings:i,settings:{hidePremiumOptions:d},updateAppStatus:c,updateLastErrorMessage:u,updateSettings:h}=D.useContext(Ye),[g,w]=D.useState(void 0),[m,x]=D.useState([]),[_,v]=D.useState([]),[b,C]=D.useState(null),[k,L]=D.useState(!1),[T,N]=D.useState(!1),[Y,A]=D.useState(null),[I,R]=D.useState(we.initial),[H,W]=D.useState([]),[K,Z]=D.useState(we.initial),[Q,B]=D.useState(""),[P,X]=D.useState(null);D.useEffect(()=>{if(!m)return;let le="";const V=[];let z=-1;m.map(J=>{if(J.category!=le){const ee=Ja(V,me=>me.some(te=>te.category==J.category));ee==-1?z=V.push([])-1:z=ee,le=J.category}V[z].push(J)}),v(V)},[m]),D.useMemo(async()=>{const le=new FormData;le.append("action","wpo365_get_self_test_results"),le.append("nonce",n.nonce),le.append("ina",window.wpo365.wizard.props.ina);let V;try{V=await Ee.post(n.wpAjaxAdminUrl,le)}catch(z){c("errors"),u(`Failed to get test results from the server [${z.message}].`);return}if(V.status==200&&V.data&&V.data.status&&V.data.status=="OK")try{x(JSON.parse(V.data.result))}catch(z){c("errors"),u(`Failed to process test results from the server [${z.message}].`)}},[]),D.useMemo(async()=>{R(we.saving);const le=new FormData;le.append("action","wpo365_is_wpo365_configured"),le.append("nonce",n.nonce),le.append("ina",window.wpo365.wizard.props.ina);let V;try{V=await Ee.post(n.wpAjaxAdminUrl,le)}catch{R(we.initial),A("Failed to check status of the WPO365 configuration");return}if(R(we.initial),V.status==200&&V.data&&V.data.status&&V.data.status=="OK")try{N(!0);return}catch{}A("The configuration of WPO365 is not yet complete and therefore the self-test cannot be started.")},[]),D.useMemo(async()=>{Z(we.saving);const le=new FormData;le.append("action","wpo365_get_multiple_idps"),le.append("nonce",n.nonce),le.append("ina",window.wpo365.wizard.props.ina);let V;try{V=await Ee.post(n.wpAjaxAdminUrl,le)}catch{Z(we.initial),B("Failed to retrieve a list of IdPs");return}if(Z(we.initial),V.status==200&&V.data&&V.data.status&&V.data.status=="OK"&&V.data.result)try{W(JSON.parse(V.data.result));return}catch{}B("Failed to retrieve a list of IdPs")},[]);const $=async(le=null)=>{u(void 0),c("working"),eh.TokenCache.clearTokenCache();const V=new FormData;V.append("action","wpo365_delete_tokens"),V.append("nonce",n.nonce),V.append("ina",window.wpo365.wizard.props.ina);let z;try{if(z=await Ee.post(n.wpAjaxAdminUrl,V),z.status==200)z.data&&z.data.status&&z.data.status=="OK"&&console.log("Deletion of tokens successful");else throw"Invalid response received."}catch(te){u(`Failed to clear the token cache [${te.message}].`),c("errors");return}const J=le?{...le}:{...i};J.testAccessToken=!0,J.testConfiguration=!0;try{const te=await Fe.updateSettings(n,J);if(te.success)h(J);else{u(`Failed to update the settings [${te.message}].`),c("errors");return}}catch(te){u(`Failed to update the settings [${te.message}].`),c("errors");return}const ee=window.location.href.split("#")[0].replace("page=wpo365-wizard","mode=selfTest&page=wpo365-wizard"),me=k?"&flushPermaLinks=true":"";if(i.noSso){const te=encodeURIComponent(`${ee}#selfTest`);window.location.href=`${ee}${me}&upn=${b}&redirect_to=${te}`}else{const te=window;te.wpo365=te.wpo365||{};const G=document.createElement("div");G.id="wpo365OpenIdRedirect",document.body.appendChild(G);const ne=`${ee}${me}#selfTest`;try{te.wpo365.pintraRedirect.toMsOnline("",ne,"","",!1,P)}catch(Ue){u(`Failed to start the plugin self test [${Ue.message}].`),c("errors");return}}u(void 0),c("initial")},ie=async le=>{u(void 0),c("working");const V={...i};le.forEach(z=>{if("op"in z){const J=Object.keys(z.value)[0];z.op=="replace"&&(V[J]=z.value[J]),z.op=="add"&&V[J].push(z.value[J])}}),$(V)};return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:j.wpo365WzMain,children:[e.jsxs("table",{className:j.wpo365WzTable,children:[e.jsxs("colgroup",{children:[e.jsx("col",{width:"50%"}),e.jsx("col",{width:"50%"})]}),e.jsxs("tbody",{children:[e.jsx("tr",{children:e.jsxs("td",{colSpan:2,children:["Use this tab to test the plugin and its ability to sign you / your users in with Microsoft and integrate with the many Microsoft 365 services. As soon as you click",e.jsx("strong",{children:"Start self-test"}),` the plugin will try to redirect the current user to Microsoft's login page. When redirected back to your website the plugin will intercept the authentication response (ID token) and analyze its contents. Furthermore the plugin may request access tokens and will analyze the assigned static permissions needed for the most common integration scenarios. Last but not least some essential configuration validation checks will be performed. As soon as the test is completed the plugin will automatically de-activate "Test mode".`,e.jsx("br",{}),e.jsx("strong",{children:"Please note"}),e.jsxs("ul",{children:[e.jsx("li",{children:"During the self-test the plugin is not protecting your website"}),e.jsx("li",{children:"Also, this or other pages may be reloaded"}),e.jsxs("li",{children:["If you have set the ",e.jsx("strong",{children:"Authentication scenario"})," to ",e.jsx("i",{children:"Internet"})," you may not be automatically redirected to this page - especially if you updated your ",e.jsx("i",{children:"wp-config.php"})," and added the line ",e.jsx("i",{children:"define( 'WPO_AUTH_SCENARIO', 'internet' );"})," ","(see"," ",e.jsx("a",{href:"https://docs.wpo365.com/article/36-authentication-scenario",target:"_blank",children:"this article"})," ","for more information on optimizing for perfomance). In those cases, however, you should be able, however, to navigate back to this page yourself."]}),e.jsx("li",{children:"The Plugin self-test tests probably more than you need. Therefore you can safely ignore unsuccessful tests that seem irrelevant to you in the first place."})]})]})}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Plugin self-test"})})}),i.noSso&&e.jsxs("tr",{children:[e.jsx("td",{style:{paddingRight:"100px"},children:e.jsx("span",{children:"Entra ID / Microsoft 365 user name used to conduct some of the tests"})}),e.jsx("td",{children:e.jsx("div",{className:j.toolbarItem,children:e.jsx(fe,{isValid:(le,V)=>!0,bound:!1,value:b,onValid:le=>C(le),placeholder:"e.g. john.doe@your-tenant.com"})})})]}),e.jsxs("tr",{children:[e.jsx("td",{style:{paddingRight:"100px"},children:e.jsx("span",{children:"Flush perma-links"})}),e.jsx("td",{children:e.jsx(ce,{onChange:(le,V)=>L(V),checked:k})})]}),e.jsxs("tr",{children:[e.jsx("td",{children:"Start test and download results afterwards"}),e.jsx("td",{children:e.jsxs(U,{horizontalAlign:"start",tokens:{childrenGap:15},children:[Array.isArray(H)&&H.length>0&&e.jsx(qe,{placeholder:"Select an Identity Provider",onChange:(le,V)=>{V.key&&X(V.key.toString())},options:H.map(le=>({key:le.id,text:le.title})),style:{maxWidth:"400px"}}),e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},children:[e.jsx(dt,{onClick:()=>$(),style:{minWidth:"400px",minHeight:"30px"},disabled:s=="working"||i.noSso&&!b||!T,children:"Start self-test"}),I==we.saving&&e.jsx(Oe,{size:Te.medium})]}),Y&&e.jsx("div",{style:{color:"#cc0000"},children:Y}),Array.isArray(m)&&m.length>0&&e.jsx("div",{style:{width:"400px",textAlign:"center",boxSizing:"border-box"},children:e.jsx("a",{href:"data:text/json;charset=utf-8,"+encodeURIComponent(JSON.stringify(m,null,2)),download:"wpo365-selftest.json",children:"Download as JSON"})})]})}),e.jsx("td",{})]})]})]}),e.jsxs("table",{className:`${j.wpo365WzTable} ${j.selfTest}`,children:[e.jsxs("colgroup",{children:[e.jsx("col",{width:"70%"}),e.jsx("col",{width:"10%"}),e.jsx("col",{width:"20%"})]}),_&&_.map(le=>e.jsxs(e.Fragment,{children:[e.jsxs("thead",{children:[e.jsx("tr",{className:j.title,children:e.jsx("th",{colSpan:3,children:le[0].category})}),e.jsxs("tr",{className:j.header,children:[e.jsx("th",{children:"Test / Result"}),e.jsx("th",{children:"Data"}),e.jsx("th",{children:"Timestamp"})]})]}),le.map(V=>e.jsxs(e.Fragment,{children:[e.jsxs("tbody",{children:[e.jsxs("tr",{className:V.passed?j.passed:j.failed,children:[e.jsxs("th",{children:[e.jsx("span",{dangerouslySetInnerHTML:{__html:V.title}})," ",e.jsx("span",{className:j.subText,children:V.severity})]}),e.jsx("td",{children:V.data?e.jsx("a",{href:"javascript:return false",onClick:()=>w(V.data),children:"view"}):""}),e.jsx("td",{children:e.jsx("span",{className:j.subText,children:V.timestamp})})]}),e.jsxs("tr",{className:V.passed?j.passed:j.failed,children:[e.jsx("td",{children:e.jsx("span",{dangerouslySetInnerHTML:{__html:V.message?V.message:V.passed?"OK":"NOK"}})}),e.jsx("td",{}),e.jsx("td",{children:V.more_info&&e.jsx("a",{href:V.more_info,target:"_blank",children:"Read more ..."})})]})]}),!V.passed&&!!V.fix&&V.fix.length>0&&e.jsx("tbody",{style:{border:0},children:e.jsx("tr",{className:V.passed?j.passed:j.failed,children:e.jsx("td",{colSpan:2,children:e.jsx(et,{onClick:()=>ie(V.fix),style:{minWidth:"400px",minHeight:"30px"},children:"Fix it!"})})})})]}))]}))]})]}),g&&e.jsx(Zc,{isOpen:!!g,onDismiss:()=>w(void 0),isBlocking:!0,children:e.jsxs("div",{className:j.modal,children:[e.jsx("div",{style:{alignSelf:"flex-end",padding:"10px 20px 10px 10px"},children:e.jsx("a",{href:"javascript: return false",onClick:()=>w(void 0),children:"Close"})}),e.jsx("table",{children:Object.keys(g).map(le=>e.jsxs("tr",{children:[e.jsx("th",{children:le}),e.jsx("td",{children:le in g?le=="imageUri"?e.jsx("img",{src:g[le]}):JSON.stringify(g[le]):"null"})]}))})]})})]})},UP=o=>{const{env:s,env:{props:{extensions:n}},settings:t,settings:{hidePremiumOptions:i},updateSettings:d}=D.useContext(Ye),[c,u]=D.useState({signInMultiPlaceholder:t.signInMultiPlaceholder,signInWithMicrosoft:t.signInWithMicrosoft,wpoErrorCheckLog:t.wpoErrorCheckLog,wpoErrorDeactivated:t.wpoErrorDeactivated,wpoErrorDualLogin:t.wpoErrorDualLogin,wpoErrorDualLoginV2:t.wpoErrorDualLoginV2,wpoErrorIdTokenError:t.wpoErrorIdTokenError,wpoErrorIdTokenAud:t.wpoErrorIdTokenAud,wpoErrorLoggedOut:t.wpoErrorLoggedOut,wpoErrorPrivatePage:t.wpoErrorPrivatePage,wpoErrorNotConfigured:t.wpoErrorNotConfigured,wpoErrorNotFromDomain:t.wpoErrorNotFromDomain,wpoErrorNotInGroup:t.wpoErrorNotInGroup,wpoErrorTamperedWith:t.wpoErrorTamperedWith,wpoErrorSaml2Error:t.wpoErrorSaml2Error,wpoErrorUserNotFound:t.wpoErrorUserNotFound,wpoErrorNoIdpSelected:t.wpoErrorNoIdpSelected,wpoTitleM365ProfileInfo:t.wpoTitleM365ProfileInfo}),[h,g]=D.useState([]),[w,m]=D.useState(we.initial),x=async()=>{g([]),m(we.saving);const _={...t};_.signInMultiPlaceholder=c.signInMultiPlaceholder,_.signInWithMicrosoft=c.signInWithMicrosoft,_.wpoErrorCheckLog=c.wpoErrorCheckLog,_.wpoErrorDeactivated=c.wpoErrorDeactivated,_.wpoErrorDualLogin=c.wpoErrorDualLogin,_.wpoErrorDualLoginV2=c.wpoErrorDualLoginV2,_.wpoErrorIdTokenError=c.wpoErrorIdTokenError,_.wpoErrorIdTokenAud=c.wpoErrorIdTokenAud,_.wpoErrorLoggedOut=c.wpoErrorLoggedOut,_.wpoErrorPrivatePage=c.wpoErrorPrivatePage,_.wpoErrorNotConfigured=c.wpoErrorNotConfigured,_.wpoErrorNotFromDomain=c.wpoErrorNotFromDomain,_.wpoErrorNotInGroup=c.wpoErrorNotInGroup,_.wpoErrorTamperedWith=c.wpoErrorTamperedWith,_.wpoErrorSaml2Error=c.wpoErrorSaml2Error,_.wpoErrorUserNotFound=c.wpoErrorUserNotFound,_.wpoTitleM365ProfileInfo=c.wpoTitleM365ProfileInfo;try{const v=await Fe.updateSettings(s,_);if(v.success){const b=await Fe.getSettings(s);d(b),g([]),m(we.success)}else g([...h,new Lr("saveConfiguration",v.message,2e3)]),m(we.error)}catch{g([...h,new Lr("saveConfiguration","Unknown error occured whilst updating settings [check F12 > console for technical details]",2e3)]),m(we.error)}};return e.jsx(e.Fragment,{children:e.jsx("div",{className:j.wpo365WzMain,children:e.jsxs("table",{className:j.wpo365WzTable,children:[e.jsxs("colgroup",{children:[e.jsx("col",{width:"50%"}),e.jsx("col",{width:"50%"})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Translations"})})}),e.jsxs("tr",{children:[e.jsx("th",{children:"Sign in with Microsoft"}),e.jsx("td",{children:e.jsx("textarea",{className:j.wpo365WzTextArea,value:c.signInWithMicrosoft,onChange:_=>u({...c,signInWithMicrosoft:_.target.value})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Select your Identity Provider"}),e.jsx("td",{children:e.jsx("textarea",{className:j.wpo365WzTextArea,value:c.signInMultiPlaceholder,onChange:_=>u({...c,signInMultiPlaceholder:_.target.value})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"No IdP selected"}),e.jsx("td",{children:e.jsx("textarea",{className:j.wpo365WzTextArea,value:c.wpoErrorNoIdpSelected,onChange:_=>u({...c,wpoErrorNoIdpSelected:_.target.value})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Check log"}),e.jsx("td",{children:e.jsx("textarea",{className:j.wpo365WzTextArea,value:c.wpoErrorCheckLog,onChange:_=>u({...c,wpoErrorCheckLog:_.target.value})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Microsoft 365 Profile Information"}),e.jsx("td",{children:e.jsx("textarea",{className:j.wpo365WzTextArea,value:c.wpoTitleM365ProfileInfo,onChange:_=>u({...c,wpoTitleM365ProfileInfo:_.target.value})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Logged out"}),e.jsx("td",{children:e.jsx("textarea",{className:j.wpo365WzTextArea,value:c.wpoErrorLoggedOut,onChange:_=>u({...c,wpoErrorLoggedOut:_.target.value})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Private page"}),e.jsx("td",{children:e.jsx("textarea",{className:j.wpo365WzTextArea,value:c.wpoErrorPrivatePage,onChange:_=>u({...c,wpoErrorPrivatePage:_.target.value})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"User not in O365 group"}),e.jsx("td",{children:e.jsx("textarea",{className:j.wpo365WzTextArea,value:c.wpoErrorNotInGroup,onChange:_=>u({...c,wpoErrorNotInGroup:_.target.value})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"User not from allowed domain"}),e.jsx("td",{children:e.jsx("textarea",{className:j.wpo365WzTextArea,value:c.wpoErrorNotFromDomain,onChange:_=>u({...c,wpoErrorNotFromDomain:_.target.value})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Tampered with"}),e.jsx("td",{children:e.jsx("textarea",{className:j.wpo365WzTextArea,value:c.wpoErrorTamperedWith,onChange:_=>u({...c,wpoErrorTamperedWith:_.target.value})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Deactivated"}),e.jsx("td",{children:e.jsx("textarea",{className:j.wpo365WzTextArea,value:c.wpoErrorDeactivated,onChange:_=>u({...c,wpoErrorDeactivated:_.target.value})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"User not found"}),e.jsx("td",{children:e.jsx("textarea",{className:j.wpo365WzTextArea,value:c.wpoErrorUserNotFound,onChange:_=>u({...c,wpoErrorUserNotFound:_.target.value})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"ID token error"}),e.jsx("td",{children:e.jsx("textarea",{className:j.wpo365WzTextArea,value:c.wpoErrorIdTokenError,onChange:_=>u({...c,wpoErrorIdTokenError:_.target.value})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"ID token audience"}),e.jsx("td",{children:e.jsx("textarea",{className:j.wpo365WzTextArea,value:c.wpoErrorIdTokenAud,onChange:_=>u({...c,wpoErrorIdTokenAud:_.target.value})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"SAML 2.0"}),e.jsx("td",{children:e.jsx("textarea",{className:j.wpo365WzTextArea,value:c.wpoErrorSaml2Error,onChange:_=>u({...c,wpoErrorSaml2Error:_.target.value})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Dual login"}),e.jsx("td",{children:e.jsx("textarea",{className:j.wpo365WzTextArea,value:c.wpoErrorDualLoginV2,onChange:_=>u({...c,wpoErrorDualLoginV2:_.target.value})})})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Configuration"})})}),e.jsxs("tr",{children:[e.jsx("th",{}),e.jsx("td",{children:e.jsxs("div",{className:j.wpo365WzColumnifier,children:[e.jsx(dt,{onClick:()=>x(),iconProps:{iconName:w==we.success?"Like":void 0},style:{minWidth:"400px",maxWidth:"400px",minHeight:"30px",alignSelf:"start"},disabled:w==we.saving,children:"Save configuration"}),e.jsx("div",{className:j.wpo365WzLabelFor,children:yd(h,"saveConfiguration").map(_=>e.jsx("p",{className:j.wpo365WzP,children:_.message}))}),w==we.success?e.jsx("p",{style:{color:"#378805"},children:he.okSettingsUpdated}):null]})})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx(Ho,{})})})]})})})},yi=o=>{const{choice:s,choicePlaceholder:n,disabled:t,errorMessage:i,isValid:d,list:c,onListChanged:u,placeholder:h}=o,[g,w]=D.useState(c?[...c]:[]),[m,x]=D.useState(""),[_,v]=D.useState(""),[b,C]=D.useState("");return D.useEffect(()=>{JSON.stringify(g)!==JSON.stringify(c)&&u(g)},[g]),e.jsxs(U,{tokens:{childrenGap:10},horizontalAlign:"start",style:{width:"400px"},children:[e.jsxs(U,{horizontalAlign:"start",tokens:{childrenGap:10},style:{width:"100%"},children:[e.jsxs(U,{tokens:{childrenGap:10},horizontal:!0,verticalAlign:"center",style:{width:"100%"},children:[e.jsx(qe,{placeholder:n||void 0,options:s.map(k=>({key:k,text:k})),onChange:(k,L)=>{C(""),v(String(L.key))},selectedKey:_,styles:{root:{flexGrow:1,flexShrink:0,maxWidth:"400px",width:"400px"}},disabled:t}),e.jsx("div",{style:{width:"30px",height:"30px",padding:0}})]}),e.jsxs(U,{tokens:{childrenGap:10},horizontal:!0,verticalAlign:"center",style:{width:"100%"},children:[e.jsx(fe,{bound:!0,disabled:t,errorMessage:i,isValid:(k,L)=>(b&&C(""),d&&L?d.test(L):!0),onError:k=>C(k),onValid:k=>{x(k)},placeholder:h||void 0,value:m}),e.jsx(Ke,{disabled:t,onClick:()=>{if(!_||!m){C("This setting requires a value");return}const k=[...g];k.push({key:_,value:m}),w([...k]),x(""),v(null)},iconProps:{iconName:"Add"},title:"Add",ariaLabel:"Click to add this item",style:{fontSize:"12px",lineHeight:"30px",height:"30px",width:"30px",padding:0,cursor:"pointer"}})]})]}),b&&e.jsx("div",{style:{lineHeight:"30px",color:"#cc0000"},children:b}),g.length>0&&e.jsx("div",{style:{width:"400px",height:"1px",backgroundColor:"black"}}),g.map((k,L)=>e.jsxs(U,{horizontalAlign:"start",tokens:{childrenGap:10},style:{width:"100%",marginBottom:"20px"},children:[e.jsxs(U,{tokens:{childrenGap:10},horizontal:!0,verticalAlign:"center",style:{width:"100%"},children:[e.jsx(fe,{bound:!0,disabled:!0,value:k.key}),e.jsx("div",{style:{width:"30px",height:"30px",padding:0}})]}),e.jsxs(U,{tokens:{childrenGap:10},horizontal:!0,verticalAlign:"center",style:{width:"100%"},children:[e.jsx(fe,{bound:!0,disabled:!0,value:k.value}),e.jsx(Ke,{onClick:()=>{const T=[...g];T.splice(L,1),w(T)},iconProps:{iconName:"Delete"},title:"Delete",ariaLabel:"Click to delete this item",style:{fontSize:"12px",lineHeight:"30px",height:"30px",width:"30px",padding:0,marginLeft:"10px",cursor:"pointer"}})]})]},`${btoa(k.key)}-${btoa(k.value)}`))]})},VP=o=>{const{env:s,env:{props:{extensions:n,availableRoles:t,ldCourses:i,ldGroups:d,wpmu:c,wpConfigMultiple:u,wpConfigAad:h}},settings:g,settings:{hidePremiumOptions:w},updateSettings:m}=D.useContext(Ye),x=D.useMemo(()=>Object.keys(Xr(t,[])),[]),_=D.useMemo(()=>Xr(i,[]).map(P=>`${P.id} | ${P.title}`),[]),v=D.useMemo(()=>Xr(d,[]).map(P=>`${P.id} | ${P.title}`),[]),[b,C]=D.useState({addCreateAccountPrompt:g.addCreateAccountPrompt,addSelectAccountPrompt:g.addSelectAccountPrompt,allowedTenants:g.allowedTenants,b2cEnableSignup:g.b2cEnableSignup,b2cSignupPolicy:g.b2cSignupPolicy,blockEmailChange:g.blockEmailChange,blockPasswordChange:g.blockPasswordChange,createAndAddUsers:g.createAndAddUsers,customDomain:Array.isArray(g.customDomain)?g.customDomain:[],defaultDomain:g.defaultDomain,hideNewUserApp:g.hideNewUserApp,ldCourseAssignments:g.ldCourseAssignments,ldCourseAssignmentsByDomain:g.ldCourseAssignmentsByDomain,ldDefaultCourseAssignments:g.ldDefaultCourseAssignments,ldDefaultGroupAssignments:g.ldDefaultGroupAssignments,ldGroupAssignments:g.ldGroupAssignments,ldGroupAssignmentsByDomain:g.ldGroupAssignmentsByDomain,multiTenanted:g.multiTenanted,muAddNewUserSite:g.muAddNewUserSite,muNewUserSiteUseUsername:g.muNewUserSiteUseUsername,muAddUserToAllSites:g.muAddUserToAllSites,newUsrDefaultRole:g.newUsrDefaultRole,newUsrMailBody:g.newUsrMailBody,newUsrMailFooter:g.newUsrMailFooter,newUsrMailSalutation:g.newUsrMailSalutation,newUsrMailSubject:g.newUsrMailSubject,newUsrMailTitle:g.newUsrMailTitle,newUsrSendMail:g.newUsrSendMail,newUsrSendMailAdminOnly:g.newUsrSendMailAdminOnly,newUsrSendMailCustom:g.newUsrSendMailCustom,preventNonAdminLogin:g.preventNonAdminLogin,skipAddUserToSubsite:g.skipAddUserToSubsite,userNameClaim:g.userNameClaim,useShortLoginName:g.useShortLoginName,userNamePreference:g.userNamePreference,userNameAadProperty:g.userNameAadProperty,userNameScimClaim:g.userNameScimClaim,welcomePageUrl:g.welcomePageUrl,wpToAadCreateUsers:g.wpToAadCreateUsers,wpToAadCustomerEndpoint:g.wpToAadCustomerEndpoint,wpToAadEmailNotifications:g.wpToAadEmailNotifications,wpToAadExcludedRoles:g.wpToAadExcludedRoles,wpToAadExitOnFailure:g.wpToAadExitOnFailure,wpToAadForceChangePasswordNextSignIn:g.wpToAadForceChangePasswordNextSignIn,wpToAadIdentityProvider:g.wpToAadIdentityProvider,wpToAadPasswordReset:g.wpToAadPasswordReset,wpToAadUpdateUsers:g.wpToAadUpdateUsers});D.useEffect(()=>{if(b.defaultDomain){const B={...b,defaultDomain:"",customDomain:b.customDomain.concat(g.defaultDomain)};C(B)}},[]);const[k,L]=D.useState(null),[T,N]=D.useState([]),[Y,A]=D.useState(we.initial),[I,R]=D.useState(null),[H,W]=D.useState(null),K=async()=>{N([]),A(we.saving);const B={...g};B.addCreateAccountPrompt=b.addCreateAccountPrompt,B.addSelectAccountPrompt=b.addSelectAccountPrompt,B.allowedTenants=b.allowedTenants,B.b2cEnableSignup=b.b2cEnableSignup,B.b2cSignupPolicy=b.b2cSignupPolicy,B.blockEmailChange=b.blockEmailChange,B.blockPasswordChange=b.blockPasswordChange,B.createAndAddUsers=b.createAndAddUsers,B.customDomain=b.customDomain,B.defaultDomain=b.defaultDomain,B.hideNewUserApp=b.hideNewUserApp,B.ldCourseAssignments=b.ldCourseAssignments,B.ldCourseAssignmentsByDomain=b.ldCourseAssignmentsByDomain,B.ldDefaultCourseAssignments=b.ldDefaultCourseAssignments,B.ldDefaultGroupAssignments=b.ldDefaultGroupAssignments,B.ldGroupAssignments=b.ldGroupAssignments,B.ldGroupAssignmentsByDomain=b.ldGroupAssignmentsByDomain,B.multiTenanted=b.multiTenanted,B.muAddNewUserSite=b.muAddNewUserSite,B.muNewUserSiteUseUsername=b.muNewUserSiteUseUsername,B.muAddUserToAllSites=b.muAddUserToAllSites,B.newUsrDefaultRole=b.newUsrDefaultRole,B.newUsrSendMail=b.newUsrSendMail,B.newUsrSendMailAdminOnly=b.newUsrSendMailAdminOnly,B.newUsrSendMailCustom=b.newUsrSendMailCustom,B.newUsrMailSubject=b.newUsrMailSubject,B.newUsrMailTitle=b.newUsrMailTitle,B.newUsrMailSalutation=b.newUsrMailSalutation,B.newUsrMailBody=b.newUsrMailBody,B.newUsrMailFooter=b.newUsrMailFooter,B.preventNonAdminLogin=b.preventNonAdminLogin,B.skipAddUserToSubsite=b.skipAddUserToSubsite,B.userNameClaim=b.userNameClaim,B.userNameAadProperty=b.userNameAadProperty,B.userNameScimClaim=b.userNameScimClaim,B.useShortLoginName=b.useShortLoginName,B.userNamePreference=b.userNamePreference,B.welcomePageUrl=b.welcomePageUrl,B.wpToAadCreateUsers=b.wpToAadCreateUsers,B.wpToAadCustomerEndpoint=b.wpToAadCustomerEndpoint,B.wpToAadEmailNotifications=b.wpToAadEmailNotifications,B.wpToAadExcludedRoles=b.wpToAadExcludedRoles,B.wpToAadExitOnFailure=b.wpToAadExitOnFailure,B.wpToAadForceChangePasswordNextSignIn=b.wpToAadForceChangePasswordNextSignIn,B.wpToAadIdentityProvider=b.wpToAadIdentityProvider,B.wpToAadPasswordReset=b.wpToAadPasswordReset,B.wpToAadUpdateUsers=b.wpToAadUpdateUsers;try{const P=await Fe.updateSettings(s,B);if(P.success){const X=await Fe.getSettings(s);m(X),N([]),A(we.success)}else N([...T,new Lr("saveConfiguration",P.message,2e3)]),A(we.error)}catch{N([...T,new Lr("saveConfiguration","Unknown error occured whilst updating settings [check F12 > console for technical details]",2e3)]),A(we.error)}},Z=B=>Array.isArray(B)?B.map(P=>({key:P.value,value:P.key})):[],Q=async()=>{W(null);const B=new FormData;B.append("action","wpo365_switch_wpmu_mode"),B.append("nonce",s.nonce),B.append("ina",window.wpo365.wizard.props.ina);let P;try{if(P=await Ee.post(s.wpAjaxAdminUrl,B),P.status>=200&&P.status<300&&P.data.status=="OK"){location.reload();return}throw"Unknown error occurred when trying to switch WPO365 WPMU Support Mode"}catch(X){W(X.message)}};return D.useEffect(()=>{(I=="enableAudiences"||I=="allowBlockDomains")&&K().then(()=>{R(null)}),I==="switchWpmuMode"&&Q().then(()=>R(null))},[I]),e.jsx("div",{className:j.wpo365WzMain,children:e.jsxs("table",{className:j.wpo365WzTable,children:[e.jsxs("colgroup",{children:[e.jsx("col",{width:"50%"}),e.jsx("col",{width:"50%"})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsxs("h3",{className:j.wpo365WzSectionTitle,children:[e.jsx("span",{style:{color:"#CE5708"},children:"Getting started"})," with User Registration"]})})}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx(ou,{buttons:[{callToAction:"Create / update users in B2C / Ext. ID from WP",tutorial:"https://docs.wpo365.com/article/185-create-users-in-azure-ad-b2c-entra-external-id-from-wordpress",title:"AAD B2C / Entra Ext. ID",info:"https://www.wpo365.com/feature/integrate-wordpress-with-azure-ad-b2c/"},{callToAction:"Entra ID group based auto-enrollment",tutorial:"https://docs.wpo365.com/article/184-learndash-integration",title:"LearnDash",info:"https://www.wpo365.com/feature/entra-id-based-learndash-integration/"}]})})}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"New User Experience (WordPress)"})})}),!g.useB2c&&!g.useCiam&&e.jsx(e.Fragment,{children:e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Custom domains"})," ",e.jsx("em",{children:e.jsx("a",{href:"https://entra.microsoft.com/#view/Microsoft_AAD_IAM/DomainsManagementMenuBlade/~/CustomDomainNames",target:"_blank",children:"View Custom domain names"})}),e.jsx(de,{info:{title:"Your (own) domain",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/48-custom-domains"}}})]})}),e.jsx("td",{children:e.jsx(Ws,{list:b.customDomain,onListChanged:B=>C({...b,customDomain:B}),placeholder:he.infoCustomDomain,isValid:new RegExp(/^(?!http)/i),errorMessage:he.errCustomDomainCannotStartWith})})]})}),c!=="wpmuShared"&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Create new users in WordPress"}),e.jsx(de,{info:{title:"Create new users",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/51-create-new-users"}}})]})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(B,P)=>C({...b,createAndAddUsers:P}),checked:b.createAndAddUsers})})})]}),(!w||n.some(B=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(P=>P==B)))&&e.jsx(e.Fragment,{children:e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsxs("span",{children:['Hide "Add from Entra / AAD" on'," ",e.jsx("a",{href:window.location.href.substring(0,window.location.href.replace("/userRegistration","").lastIndexOf("/")+1)+"user-new.php",children:"Add User page"})]}),e.jsx(de,{info:{title:"Add new WordPress user from Entra / AAD",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/228-add-new-wordpress-user-from-entra-aad"}}})]})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx(Ht,{requiredVersions:[{addOn:l.wpo365LoginProfessional,minVersion:39},{addOn:l.wpo365Essentials,minVersion:39},{addOn:l.wpo365Customers,minVersion:39},{addOn:l.wpo365LoginPremium,minVersion:39},{addOn:l.wpo365Sync5y,minVersion:39},{addOn:l.wpo365LoginIntranet,minVersion:39},{addOn:l.wpo365Intranet5y,minVersion:39},{addOn:l.wpo365Integrate,minVersion:39},{addOn:l.wpo365Pro,minVersion:39}],children:e.jsx(ce,{onChange:(B,P)=>C({...b,hideNewUserApp:P}),checked:b.hideNewUserApp})})})})})]})}),(!w||n.some(B=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(P=>P==B)))&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Username preference"}),e.jsx(de,{info:{title:"Username preference",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/187-username-preference"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Scim,l.wpo365Integrate,l.wpo365Pro],children:e.jsx(Ht,{requiredVersions:[{addOn:l.wpo365LoginProfessional,minVersion:24},{addOn:l.wpo365Essentials,minVersion:29},{addOn:l.wpo365Customers,minVersion:24},{addOn:l.wpo365LoginPremium,minVersion:24},{addOn:l.wpo365Sync5y,minVersion:24},{addOn:l.wpo365LoginIntranet,minVersion:24},{addOn:l.wpo365Intranet5y,minVersion:24},{addOn:l.wpo365Scim,minVersion:24},{addOn:l.wpo365Integrate,minVersion:24},{addOn:l.wpo365Pro,minVersion:24}],children:e.jsx(qe,{options:[{key:"select",text:"Select username preference ...",itemType:Rt.Header},{key:"default",text:"Default"},{key:"short",text:"Short"},{key:"custom",text:"Custom"}],selectedKey:b.useShortLoginName?"short":b.userNamePreference,onChange:(B,P)=>{const X=P.key=="custom"?b.userNameClaim:"",$=P.key=="custom"?b.userNameAadProperty:"",ie=P.key=="custom"?b.userNameScimClaim:"",le=P.key=="short";C({...b,userNamePreference:P.key,userNameClaim:X,userNameAadProperty:$,userNameScimClaim:ie,useShortLoginName:le})},style:{maxWidth:"400px"}})})})})]}),b.userNamePreference=="custom"&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Custom username claim (ID token / SAML response)"})})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Scim,l.wpo365Integrate,l.wpo365Pro],children:e.jsx(Ht,{requiredVersions:[{addOn:l.wpo365LoginProfessional,minVersion:24},{addOn:l.wpo365Essentials,minVersion:24},{addOn:l.wpo365Customers,minVersion:24},{addOn:l.wpo365LoginPremium,minVersion:24},{addOn:l.wpo365Sync5y,minVersion:24},{addOn:l.wpo365LoginIntranet,minVersion:24},{addOn:l.wpo365Intranet5y,minVersion:24},{addOn:l.wpo365Scim,minVersion:24},{addOn:l.wpo365Integrate,minVersion:24},{addOn:l.wpo365Pro,minVersion:24}],children:e.jsx(fe,{bound:!1,isValid:(B,P)=>!0,onValid:B=>C({...b,userNameClaim:B}),value:b.userNameClaim,placeholder:"e.g. upn"})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Custom username property (AAD)"})})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Scim,l.wpo365Integrate,l.wpo365Pro],children:e.jsx(Ht,{requiredVersions:[{addOn:l.wpo365LoginProfessional,minVersion:24},{addOn:l.wpo365Essentials,minVersion:29},{addOn:l.wpo365Customers,minVersion:24},{addOn:l.wpo365LoginPremium,minVersion:24},{addOn:l.wpo365Sync5y,minVersion:24},{addOn:l.wpo365LoginIntranet,minVersion:24},{addOn:l.wpo365Intranet5y,minVersion:24},{addOn:l.wpo365Scim,minVersion:24},{addOn:l.wpo365Integrate,minVersion:24},{addOn:l.wpo365Pro,minVersion:24}],children:e.jsx(fe,{bound:!1,isValid:(B,P)=>!0,onValid:B=>C({...b,userNameAadProperty:B}),value:b.userNameAadProperty,placeholder:"e.g. userPrincipalName"})})})})]}),g.enableScim&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Custom username property (SCIM)"})})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Scim,l.wpo365Integrate],children:e.jsx(Ht,{requiredVersions:[{addOn:l.wpo365LoginIntranet,minVersion:24},{addOn:l.wpo365Intranet5y,minVersion:24},{addOn:l.wpo365Scim,minVersion:24},{addOn:l.wpo365Integrate,minVersion:24}],children:e.jsx(fe,{bound:!1,isValid:(B,P)=>!0,onValid:B=>C({...b,userNameScimClaim:B}),value:b.userNameScimClaim,placeholder:"e.g. urn:ietf:params:[...]:objectId"})})})})]})]})]}),(!w||n.some(B=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(P=>P==B)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Welcome page for first-time users"}),e.jsx(de,{info:{title:"Welcome Page",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/54-welcome-page"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx(fe,{isValid:(B,P)=>P!=he.empty?/^(http|https):\/\//i.test(P):!0,onValid:B=>C({...b,welcomePageUrl:B}),bound:!1,errorMessage:he.errWelcomePageUrlMustStartWith,value:b.welcomePageUrl})})})]}),(!w||n.some(B=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(P=>P==B)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:'Send "new user" notification'}),e.jsx(de,{info:{title:"New user notification email",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/75-new-user-notification-and-welcome-emails"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(B,P)=>{const X=P?b.newUsrSendMailAdminOnly:!1,$=P?b.newUsrSendMailCustom:!1;C({...b,newUsrSendMail:P,newUsrSendMailAdminOnly:X,newUsrSendMailCustom:$})},checked:b.newUsrSendMail})})})})]}),(!w||n.some(B=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(P=>P==B)))&&e.jsxs("tr",{children:[e.jsx("th",{children:"Send only to admin"}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(B,P)=>{const X=P?!1:b.newUsrSendMailCustom;C({...b,newUsrSendMailAdminOnly:P,newUsrSendMailCustom:X})},disabled:!b.newUsrSendMail,checked:b.newUsrSendMailAdminOnly})})})})]}),(!w||n.some(B=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(P=>P==B)))&&e.jsxs("tr",{children:[e.jsx("th",{children:"Send using custom template"}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(B,P)=>{C({...b,newUsrSendMailCustom:P})},disabled:!b.newUsrSendMail||b.newUsrSendMailAdminOnly,checked:b.newUsrSendMailCustom})})})})]}),(!w||n.some(B=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(P=>P==B)))&&e.jsxs("tr",{children:[e.jsx("th",{children:"New user notification subject"}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx(fe,{isValid:(B,P)=>!0,onValid:B=>C({...b,newUsrMailSubject:B}),bound:!1,value:b.newUsrMailSubject,placeholder:he.infoNewUserMailSubject,disabled:!b.newUsrSendMailCustom})})})]}),(!w||n.some(B=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(P=>P==B)))&&e.jsxs("tr",{children:[e.jsx("th",{children:"New user notification title"}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx(fe,{isValid:(B,P)=>!0,onValid:B=>C({...b,newUsrMailTitle:B}),bound:!1,value:b.newUsrMailTitle,placeholder:he.infoNewUserMailTitle,disabled:!b.newUsrSendMailCustom})})})]}),(!w||n.some(B=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(P=>P==B)))&&e.jsxs("tr",{children:[e.jsx("th",{children:"New user notification salutation"}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx(fe,{isValid:(B,P)=>!0,onValid:B=>C({...b,newUsrMailSalutation:B}),bound:!1,value:b.newUsrMailSalutation,placeholder:he.infoNewUserMailSalutation,disabled:!b.newUsrSendMailCustom})})})]}),(!w||n.some(B=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(P=>P==B)))&&e.jsxs("tr",{children:[e.jsx("th",{children:"New user notification body"}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("textarea",{className:j.wpo365WzTextArea,value:b.newUsrMailBody,onChange:B=>C({...b,newUsrMailBody:B.target.value}),disabled:!b.newUsrSendMailCustom,style:{maxWidth:"400px"}})})})]}),(!w||n.some(B=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(P=>P==B)))&&e.jsxs("tr",{children:[e.jsx("th",{children:"New user notification footer"}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("textarea",{style:{width:"400px",minHeight:"100px",padding:"2px"},value:b.newUsrMailFooter,onChange:B=>C({...b,newUsrMailFooter:B.target.value}),disabled:!b.newUsrSendMailCustom})})})]}),(g.useB2c||g.useCiam)&&e.jsxs(e.Fragment,{children:[e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"New User Experience AAD B2C / Entra External ID (AAD for Customers)"})})}),(!w||n.some(B=>[l.wpo365Customers].some(P=>P==B)))&&e.jsxs(e.Fragment,{children:[n.some(B=>[l.wpo365Customers].some(P=>P==B))&&(!g.useAppOnlyToken||!g.appOnlyApplicationId||!g.appOnlyApplicationSecret)?e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("div",{style:{width:"50%"},children:e.jsxs(Jr,{messageBarType:Be.blocked,isMultiline:!0,truncated:!0,overflowButtonAriaLabel:"Read more",children:["You have not (yet) configured ",e.jsx("strong",{children:"app-only permissions"})," i.e. ",e.jsx("em",{children:"application"})," type permissions. With"," ",e.jsx("em",{children:"application"})," type permissions the plugin can get authorization to access Microsoft Graph without a logged-in user being present. You must configure ",e.jsx("em",{children:"application"})," type permissions for ",e.jsx("strong",{children:"User.ReadWrite.All"})," or else WPO365 cannot create / update users in AAD B2C / Entra External ID. Please follow the steps presented in this article"," ",e.jsx("a",{href:"https://tutorials.wpo365.com/courses/integration-application-permissions/",target:"_blank",children:"https://tutorials.wpo365.com/courses/integration-application-permissions/"})," ","to configure app-only integration."]})})})}):e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Create users in AAD B2C / Entra Ext. ID from WordPress"}),e.jsx(de,{info:{title:"Create users in AAD B2C / Entra Ext. ID (Entra for Customers) from WordPress",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/185-create-users-in-azure-ad-b2c-from-wordpress"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365Customers],children:e.jsx(Ht,{requiredVersions:[{addOn:l.wpo365Customers,minVersion:24}],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(B,P)=>C({...b,wpToAadCreateUsers:P}),checked:b.wpToAadCreateUsers})})})})})]}),b.wpToAadCreateUsers&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Exit user registration on failure"}),e.jsx(de,{info:{title:"Exit user registration on failure",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/199-exit-user-registration-on-failure"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365Customers],children:e.jsx(Ht,{requiredVersions:[{addOn:l.wpo365Customers,minVersion:24}],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(B,P)=>C({...b,wpToAadExitOnFailure:P}),checked:b.wpToAadExitOnFailure})})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Password configuration for customers"}),e.jsx(de,{info:{title:"Password configuration for customers",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/200-password-configuration-for-customers"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365Customers],children:e.jsx(Ht,{requiredVersions:[{addOn:l.wpo365Customers,minVersion:24}],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(qe,{options:[{key:"select",text:"Select when to force user to change pwd on next sign-in ...",itemType:Rt.Header},{key:"userNotPresent",text:"Non-interactive registration: User did not enter pwd"},{key:"always",text:"Always"}],selectedKey:b.wpToAadForceChangePasswordNextSignIn?"always":"userNotPresent",onChange:(B,P)=>C({...b,wpToAadForceChangePasswordNextSignIn:P.key=="always"}),placeholder:"Select IdP / Auth. method ...",style:{maxWidth:"400px"}})})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Email notifications for customers"}),e.jsx(de,{info:{title:"Email notifications for customers",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/201-email-notifications-for-customers"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365Customers],children:e.jsx(Ht,{requiredVersions:[{addOn:l.wpo365Customers,minVersion:24}],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(qe,{options:[{key:"select",text:"Select when email notifications are sent ...",itemType:Rt.Header},{key:"never",text:"Never"},{key:"userNotPresent",text:"When user is forced to change pwd on next sign-in"},{key:"always",text:"Always"}],selectedKey:b.wpToAadEmailNotifications,onChange:(B,P)=>C({...b,wpToAadEmailNotifications:P.key}),placeholder:"Select IdP / Auth. method ...",style:{maxWidth:"400px"}})})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Customer landing page / area"}),e.jsx(de,{info:{title:"Customer landing page / area",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/202-customer-landing-page-area"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365Customers],children:e.jsx(Ht,{requiredVersions:[{addOn:l.wpo365Customers,minVersion:24}],children:e.jsx(fe,{isValid:(B,P)=>P!=he.empty?/^(http|https):\/\//i.test(P):!0,onValid:B=>C({...b,wpToAadCustomerEndpoint:B}),bound:!1,errorMessage:"Customer landing Page URL must start with http(s).",placeholder:"e.g. https://www.your-site.com/your-account/",value:b.wpToAadCustomerEndpoint})})})})]})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Update users in AAD B2C / Entra Ext. ID from WordPress"}),e.jsx(de,{info:{title:"Update users in AAD B2C / Entra External ID (Entra for Customers) from WordPress",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/185-create-users-in-azure-ad-b2c-from-wordpress"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365Customers],children:e.jsx(Ht,{requiredVersions:[{addOn:l.wpo365Customers,minVersion:24}],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(B,P)=>C({...b,wpToAadUpdateUsers:P}),checked:b.wpToAadUpdateUsers})})})})})]}),b.wpToAadCreateUsers&&g.useCiam&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Identity Provider (Authentication method)"}),e.jsx(de,{info:{title:"https://docs.wpo365.com/article/193-select-authentication-method",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/193-select-authentication-method"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365Customers],children:e.jsx(Ht,{requiredVersions:[{addOn:l.wpo365Customers,minVersion:24}],children:e.jsx(qe,{options:[{key:"select",text:"Select IdP / Auth. method ...",itemType:Rt.Header},{key:"emailOtp",text:"Email one-time passcode"},{key:"emailPassword",text:"Email with password"}],selectedKey:b.wpToAadIdentityProvider,onChange:(B,P)=>C({...b,wpToAadIdentityProvider:P.key}),placeholder:"Select IdP / Auth. method ...",style:{maxWidth:"400px"}})})})})]}),b.wpToAadCreateUsers&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Always reset the password of new WordPress users"}),e.jsx(de,{info:{title:"Always reset the password of new WordPress users",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/194-always-reset-password-for-new-users"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365Customers],children:e.jsx(Ht,{requiredVersions:[{addOn:l.wpo365Customers,minVersion:24}],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(B,P)=>C({...b,wpToAadPasswordReset:P}),checked:b.wpToAadPasswordReset})})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Excluded roles"}),e.jsx(de,{info:{title:"Excluded roles",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/195-excluded-roles"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365Customers],children:e.jsx(Ht,{requiredVersions:[{addOn:l.wpo365Customers,minVersion:24}],children:e.jsx(Vc,{list:[...b.wpToAadExcludedRoles],onListChanged:B=>C({...b,wpToAadExcludedRoles:[...B]}),options:x,placeholder:he.infoWordPressRole})})})})]})]})]}),g.useB2c&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Enable AAD B2C signup for anyone"}),e.jsx(de,{info:{title:"Enable AAD B2C signup for anyone",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/188-enable-azure-ad-b2c-signup-for-anyone"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365Customers],children:e.jsx(Ht,{requiredVersions:[{addOn:l.wpo365Customers,minVersion:24}],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(B,P)=>{C(P?{...b,b2cEnableSignup:P}:{...b,b2cEnableSignup:P,b2cSignupPolicy:""})},checked:b.b2cEnableSignup,disabled:u})})})})})]}),b.b2cEnableSignup&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"AAD B2C sign-up policy"})})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365Customers],children:e.jsx(Ht,{requiredVersions:[{addOn:l.wpo365Customers,minVersion:24}],children:e.jsx(fe,{isValid:(B,P)=>!0,onValid:B=>C({...b,b2cSignupPolicy:B}),bound:!1,value:b.b2cSignupPolicy,placeholder:"e.g. B2C_1_signup_1"})})})})]})]})]}),!g.useB2c&&!g.useCiam&&e.jsxs(e.Fragment,{children:[e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"New User Experience (AD B2B / Multi-tenancy)"})})}),(!w||n.some(B=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(P=>P==B)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Allow users from other tenants"}),e.jsx(de,{info:{title:"Allow users from other tenants",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/50-allow-users-from-other-tenants"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx(ce,{onChange:(B,P)=>C({...b,multiTenanted:P}),checked:b.multiTenanted,disabled:!0}),e.jsx(ze,{iconName:"Warning",style:{paddingRight:"5px",color:"#0078D4"}}),e.jsxs("span",{style:{color:"#0078D4"},children:["Can be changed on the ",e.jsx("a",{href:"#singleSignOn",children:"Single Sign-on"})," page"]})]})})})]}),(!w||n.some(B=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(P=>P==B)))&&b.multiTenanted&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:'Allowed "other" tenants'}),e.jsx(de,{info:{title:'Allowed "other" tenants',readMore:{title:"Read online",url:"https://docs.wpo365.com/article/205-allowed-other-tenants"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx(Ws,{list:b.allowedTenants,onListChanged:B=>C({...b,allowedTenants:B}),placeholder:"e.g. 0cf16bbf-944d-4d04-9b83-a198e5d7b9e5",isValid:new RegExp(/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i),errorMessage:"Tenant ID must be formatted as a GUID"})})})]}),(!w||n.some(B=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(P=>P==B)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Add prompt=create parameter"}),e.jsx(de,{info:{title:"Add prompt=create parameter",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/116-add-prompt-create-parameter"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(B,P)=>C({...b,addCreateAccountPrompt:P,addSelectAccountPrompt:P?!1:b.addSelectAccountPrompt}),checked:b.addCreateAccountPrompt})})})})]})]}),c!=="wpmuNone"&&e.jsxs(e.Fragment,{children:[e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"New User Experience (WordPress Multisite)"})})}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"WPMU support mode"}),e.jsx(de,{info:{title:"Support for WordPress Multisite WPMU",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/29-support-for-wordpress-multisite-wpmu"}}})]})}),e.jsx("td",{children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},style:{lineHeight:"initial",height:"30px"},children:[e.jsx(Mn,{styles:{root:{marginBottom:"0px",marginRight:"10px"}},checked:c==="wpmuDedicated",onChange:(B,P)=>{R("switchWpmuMode")},onText:"Dedicated",offText:"Shared",disabled:!window.wpo365.wizard.props.ina}),I=="switchWpmuMode"&&e.jsx(Oe,{size:Te.small}),!window.wpo365.wizard.props.ina&&e.jsxs(e.Fragment,{children:[e.jsx(ze,{iconName:"Warning",style:{paddingRight:"5px",color:"#0078D4"}}),e.jsxs("span",{style:{color:"#0078D4"},children:["Change this here ",e.jsx("em",{children:"My Sites > Network Admin > WPO365"})]})]})]})})]}),c=="wpmuShared"&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Add users to WPMU main site"}),e.jsx(de,{info:{title:"Create new users",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/51-create-new-users"}}})]})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(B,P)=>C({...b,createAndAddUsers:P}),checked:b.createAndAddUsers})})})]}),c=="wpmuShared"&&(!w||n.some(B=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(P=>P==B)))&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Do not add user to WPMU subsite"}),e.jsx(de,{info:{title:"Do not add user to WPMU subsite",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/123-do-not-add-user-to-wpmu-subsite"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(B,P)=>C({...b,skipAddUserToSubsite:P,muAddUserToAllSites:P?!1:b.muAddUserToAllSites}),checked:b.skipAddUserToSubsite,disabled:b.muAddUserToAllSites})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Always add all users to all WPMU subsites"}),e.jsx(de,{info:{title:"Always add all users to all WPMU subsites",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/215-always-add-all-users-to-all-wpmu-subsites"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(B,P)=>C({...b,muAddUserToAllSites:P,skipAddUserToSubsite:P?!1:b.skipAddUserToSubsite}),checked:b.muAddUserToAllSites,disabled:b.skipAddUserToSubsite})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Create new WPMU subsite for each new user"}),e.jsx(de,{info:{title:"Create a new WPMU subsite for each new user",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/226-create-a-new-wpmu-blog-upon-first-login"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(B,P)=>C({...b,muAddNewUserSite:P}),checked:b.muAddNewUserSite})})})})]}),b.muAddNewUserSite&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Use email username as name for user blog"}),e.jsx(de,{info:{title:"Create a new WPMU subsite for each new user",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/226-create-a-new-wpmu-blog-upon-first-login"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(B,P)=>C({...b,muNewUserSiteUseUsername:P}),checked:b.muNewUserSiteUseUsername})})})})]})]})]}),e.jsxs(e.Fragment,{children:[e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Existing User Experience"})})}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Only WPO_ADMINS can sign in locally"}),e.jsx(de,{info:{title:"Only WPO_ADMINS can sign in locally",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/216-only-wpoadmins-can-sign-in-locally"}}})]})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(B,P)=>C({...b,preventNonAdminLogin:P}),checked:b.preventNonAdminLogin})})})]}),(!w||n.some(B=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(P=>P==B)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"User cannot change email address"}),e.jsx(de,{info:{title:"User cannot change email address",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/55-user-cannot-change-email-address"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(B,P)=>C({...b,blockEmailChange:P}),checked:b.blockEmailChange})})})})]}),(!w||n.some(B=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(P=>P==B)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"User cannot change password"}),e.jsx(de,{info:{title:"User cannot change password",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/56-user-cannot-change-password"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(B,P)=>C({...b,blockPasswordChange:P}),checked:b.blockPasswordChange})})})})]})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"LearnDash Enrollment"})})}),_.length==0&&v.length==0?e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("div",{style:{width:"50%"},children:e.jsx(Jr,{messageBarType:Be.blocked,isMultiline:!0,truncated:!0,overflowButtonAriaLabel:"Read more",children:"It appears that LearnDash is not installed on your system. Therefore these configuration options are not available."})})})}):e.jsxs(e.Fragment,{children:[(!w||n.some(B=>[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers].some(P=>P==B)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs(U,{tokens:{childrenGap:10},children:[e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Entra ID Group based user enrollment into LD courses"}),e.jsx(de,{info:{title:"LearnDash integration",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/184-learndash-integration"}}})]}),n.some(B=>[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers].some(P=>P==B))&&e.jsx("div",{children:e.jsx("em",{style:{color:"#0078d4"},children:'You must click "+" to add the current item.'})})]})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],children:e.jsx(Ht,{requiredVersions:[{addOn:l.wpo365RolesAccess,minVersion:24},{addOn:l.wpo365Customers,minVersion:24},{addOn:l.wpo365LoginPremium,minVersion:24},{addOn:l.wpo365Sync5y,minVersion:24},{addOn:l.wpo365LoginIntranet,minVersion:24},{addOn:l.wpo365Intranet5y,minVersion:24},{addOn:l.wpo365Integrate,minVersion:24},{addOn:l.wpo365Pro,minVersion:24}],children:e.jsx(yi,{placeholder:"e.g. 8f7b8a33-f550-4197-80ea-5617865ac2cb",choice:_,choicePlaceholder:"Select a LearnDash Course ...",list:Z(b.ldCourseAssignments),onListChanged:B=>C({...b,ldCourseAssignments:Z(B)}),isValid:new RegExp(/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i),errorMessage:he.errAadSGroupIdMustBeGuid})})})})]}),(!w||n.some(B=>[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers].some(P=>P==B)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Entra ID Group based user allocation to LD User Groups"}),e.jsx(de,{info:{title:"LearnDash integration",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/184-learndash-integration"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],children:e.jsx(Ht,{requiredVersions:[{addOn:l.wpo365RolesAccess,minVersion:24},{addOn:l.wpo365Customers,minVersion:24},{addOn:l.wpo365LoginPremium,minVersion:24},{addOn:l.wpo365Sync5y,minVersion:24},{addOn:l.wpo365LoginIntranet,minVersion:24},{addOn:l.wpo365Intranet5y,minVersion:24},{addOn:l.wpo365Integrate,minVersion:24},{addOn:l.wpo365Pro,minVersion:24}],children:e.jsx(yi,{placeholder:"e.g. 8f7b8a33-f550-4197-80ea-5617865ac2cb",choice:v,choicePlaceholder:"Select a LearnDash Group ...",list:Z(b.ldGroupAssignments),onListChanged:B=>C({...b,ldGroupAssignments:Z(B)}),isValid:new RegExp(/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i),errorMessage:he.errAadSGroupIdMustBeGuid})})})})]}),(!w||n.some(B=>[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers].some(P=>P==B)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Domain based user enrollment into LD User Courses"}),e.jsx(de,{info:{title:"LearnDash integration",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/184-learndash-integration"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],children:e.jsx(Ht,{requiredVersions:[{addOn:l.wpo365RolesAccess,minVersion:28},{addOn:l.wpo365Customers,minVersion:28},{addOn:l.wpo365LoginPremium,minVersion:28},{addOn:l.wpo365Sync5y,minVersion:28},{addOn:l.wpo365LoginIntranet,minVersion:28},{addOn:l.wpo365Intranet5y,minVersion:28},{addOn:l.wpo365Integrate,minVersion:24},{addOn:l.wpo365Pro,minVersion:24}],children:e.jsx(yi,{placeholder:"e.g. example.com",choice:_,choicePlaceholder:"Select a LearnDash Course ...",list:Z(b.ldCourseAssignmentsByDomain),onListChanged:B=>C({...b,ldCourseAssignmentsByDomain:Z(B)}),isValid:new RegExp(/^(?!http)/i),errorMessage:"Domain cannot start with http(s)://"})})})})]}),(!w||n.some(B=>[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers].some(P=>P==B)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Domain based user allocation to LD User Groups"}),e.jsx(de,{info:{title:"LearnDash integration",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/184-learndash-integration"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],children:e.jsx(Ht,{requiredVersions:[{addOn:l.wpo365RolesAccess,minVersion:28},{addOn:l.wpo365Customers,minVersion:28},{addOn:l.wpo365LoginPremium,minVersion:28},{addOn:l.wpo365Sync5y,minVersion:28},{addOn:l.wpo365LoginIntranet,minVersion:28},{addOn:l.wpo365Intranet5y,minVersion:28},{addOn:l.wpo365Integrate,minVersion:24},{addOn:l.wpo365Pro,minVersion:24}],children:e.jsx(yi,{placeholder:"e.g. example.com",choice:v,choicePlaceholder:"Select a LearnDash Group ...",list:Z(b.ldGroupAssignmentsByDomain),onListChanged:B=>C({...b,ldGroupAssignmentsByDomain:Z(B)}),isValid:new RegExp(/^(?!http)/i),errorMessage:"Domain cannot start with http(s)://"})})})})]}),(!w||n.some(B=>[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers].some(P=>P==B)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Default LD courses for new users"}),e.jsx(de,{info:{title:"LearnDash integration",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/184-learndash-integration"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],children:e.jsx(Ht,{requiredVersions:[{addOn:l.wpo365RolesAccess,minVersion:24},{addOn:l.wpo365Customers,minVersion:24},{addOn:l.wpo365LoginPremium,minVersion:24},{addOn:l.wpo365Sync5y,minVersion:24},{addOn:l.wpo365LoginIntranet,minVersion:24},{addOn:l.wpo365Intranet5y,minVersion:24},{addOn:l.wpo365Integrate,minVersion:24},{addOn:l.wpo365Pro,minVersion:24}],children:e.jsx(Vc,{list:[...b.ldDefaultCourseAssignments],onListChanged:B=>C({...b,ldDefaultCourseAssignments:[...B]}),options:_,placeholder:"Select a LearnDash course ..."})})})})]}),(!w||n.some(B=>[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers].some(P=>P==B)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Default LD User Groups for new users"}),e.jsx(de,{info:{title:"LearnDash integration",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/184-learndash-integration"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:n,targets:[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],children:e.jsx(Ht,{requiredVersions:[{addOn:l.wpo365RolesAccess,minVersion:24},{addOn:l.wpo365Customers,minVersion:24},{addOn:l.wpo365LoginPremium,minVersion:24},{addOn:l.wpo365Sync5y,minVersion:24},{addOn:l.wpo365LoginIntranet,minVersion:24},{addOn:l.wpo365Intranet5y,minVersion:24},{addOn:l.wpo365Integrate,minVersion:24},{addOn:l.wpo365Pro,minVersion:24}],children:e.jsx(Vc,{list:[...b.ldDefaultGroupAssignments],onListChanged:B=>C({...b,ldDefaultGroupAssignments:[...B]}),options:v,placeholder:"Select a LearnDash group ..."})})})})]})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Configuration"})})}),e.jsxs("tr",{children:[e.jsx("th",{}),e.jsx("td",{children:e.jsxs("div",{className:j.wpo365WzColumnifier,children:[e.jsx(dt,{onClick:()=>K(),iconProps:{iconName:Y==we.success?"Like":void 0},style:{minWidth:"400px",maxWidth:"400px",minHeight:"30px",alignSelf:"start"},disabled:Y==we.saving,children:"Save configuration"}),e.jsx("div",{className:j.wpo365WzLabelFor,children:yd(T,"saveConfiguration").map(B=>e.jsx("p",{className:j.wpo365WzP,children:B.message}))}),Y==we.success?e.jsx("p",{style:{color:"#378805"},children:he.okSettingsUpdated}):null]})})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx(Ho,{})})}),k&&e.jsx(Bo,{onCancel:k.onCancel,onConfirm:k.onConfirm,onDismiss:k.onDismiss,title:k.title,subText:k.subText})]})})};function GP(o){throw new Error('Could not dynamically require "'+o+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Nf={exports:{}},$P=Nf.exports,Cx;function KP(){return Cx||(Cx=1,(function(o,s){(function(n,t){o.exports=t()})($P,(function(){var n;function t(){return n.apply(null,arguments)}function i(r){n=r}function d(r){return r instanceof Array||Object.prototype.toString.call(r)==="[object Array]"}function c(r){return r!=null&&Object.prototype.toString.call(r)==="[object Object]"}function u(r,a){return Object.prototype.hasOwnProperty.call(r,a)}function h(r){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(r).length===0;var a;for(a in r)if(u(r,a))return!1;return!0}function g(r){return r===void 0}function w(r){return typeof r=="number"||Object.prototype.toString.call(r)==="[object Number]"}function m(r){return r instanceof Date||Object.prototype.toString.call(r)==="[object Date]"}function x(r,a){var f=[],y,S=r.length;for(y=0;y<S;++y)f.push(a(r[y],y));return f}function _(r,a){for(var f in a)u(a,f)&&(r[f]=a[f]);return u(a,"toString")&&(r.toString=a.toString),u(a,"valueOf")&&(r.valueOf=a.valueOf),r}function v(r,a,f,y){return jh(r,a,f,y,!0).utc()}function b(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function C(r){return r._pf==null&&(r._pf=b()),r._pf}var k;Array.prototype.some?k=Array.prototype.some:k=function(r){var a=Object(this),f=a.length>>>0,y;for(y=0;y<f;y++)if(y in a&&r.call(this,a[y],y,a))return!0;return!1};function L(r){var a=null,f=!1,y=r._d&&!isNaN(r._d.getTime());if(y&&(a=C(r),f=k.call(a.parsedDateParts,function(S){return S!=null}),y=a.overflow<0&&!a.empty&&!a.invalidEra&&!a.invalidMonth&&!a.invalidWeekday&&!a.weekdayMismatch&&!a.nullInput&&!a.invalidFormat&&!a.userInvalidated&&(!a.meridiem||a.meridiem&&f),r._strict&&(y=y&&a.charsLeftOver===0&&a.unusedTokens.length===0&&a.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(r))r._isValid=y;else return y;return r._isValid}function T(r){var a=v(NaN);return r!=null?_(C(a),r):C(a).userInvalidated=!0,a}var N=t.momentProperties=[],Y=!1;function A(r,a){var f,y,S,E=N.length;if(g(a._isAMomentObject)||(r._isAMomentObject=a._isAMomentObject),g(a._i)||(r._i=a._i),g(a._f)||(r._f=a._f),g(a._l)||(r._l=a._l),g(a._strict)||(r._strict=a._strict),g(a._tzm)||(r._tzm=a._tzm),g(a._isUTC)||(r._isUTC=a._isUTC),g(a._offset)||(r._offset=a._offset),g(a._pf)||(r._pf=C(a)),g(a._locale)||(r._locale=a._locale),E>0)for(f=0;f<E;f++)y=N[f],S=a[y],g(S)||(r[y]=S);return r}function I(r){A(this,r),this._d=new Date(r._d!=null?r._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Y===!1&&(Y=!0,t.updateOffset(this),Y=!1)}function R(r){return r instanceof I||r!=null&&r._isAMomentObject!=null}function H(r){t.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+r)}function W(r,a){var f=!0;return _(function(){if(t.deprecationHandler!=null&&t.deprecationHandler(null,r),f){var y=[],S,E,O,q=arguments.length;for(E=0;E<q;E++){if(S="",typeof arguments[E]=="object"){S+=`
[`+E+"] ";for(O in arguments[0])u(arguments[0],O)&&(S+=O+": "+arguments[0][O]+", ");S=S.slice(0,-2)}else S=arguments[E];y.push(S)}H(r+`
Arguments: `+Array.prototype.slice.call(y).join("")+`
`+new Error().stack),f=!1}return a.apply(this,arguments)},a)}var K={};function Z(r,a){t.deprecationHandler!=null&&t.deprecationHandler(r,a),K[r]||(H(a),K[r]=!0)}t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;function Q(r){return typeof Function<"u"&&r instanceof Function||Object.prototype.toString.call(r)==="[object Function]"}function B(r){var a,f;for(f in r)u(r,f)&&(a=r[f],Q(a)?this[f]=a:this["_"+f]=a);this._config=r,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function P(r,a){var f=_({},r),y;for(y in a)u(a,y)&&(c(r[y])&&c(a[y])?(f[y]={},_(f[y],r[y]),_(f[y],a[y])):a[y]!=null?f[y]=a[y]:delete f[y]);for(y in r)u(r,y)&&!u(a,y)&&c(r[y])&&(f[y]=_({},f[y]));return f}function X(r){r!=null&&this.set(r)}var $;Object.keys?$=Object.keys:$=function(r){var a,f=[];for(a in r)u(r,a)&&f.push(a);return f};var ie={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function le(r,a,f){var y=this._calendar[r]||this._calendar.sameElse;return Q(y)?y.call(a,f):y}function V(r,a,f){var y=""+Math.abs(r),S=a-y.length,E=r>=0;return(E?f?"+":"":"-")+Math.pow(10,Math.max(0,S)).toString().substr(1)+y}var z=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,J=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ee={},me={};function te(r,a,f,y){var S=y;typeof y=="string"&&(S=function(){return this[y]()}),r&&(me[r]=S),a&&(me[a[0]]=function(){return V(S.apply(this,arguments),a[1],a[2])}),f&&(me[f]=function(){return this.localeData().ordinal(S.apply(this,arguments),r)})}function G(r){return r.match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"")}function ne(r){var a=r.match(z),f,y;for(f=0,y=a.length;f<y;f++)me[a[f]]?a[f]=me[a[f]]:a[f]=G(a[f]);return function(S){var E="",O;for(O=0;O<y;O++)E+=Q(a[O])?a[O].call(S,r):a[O];return E}}function Ue(r,a){return r.isValid()?(a=Ge(a,r.localeData()),ee[a]=ee[a]||ne(a),ee[a](r)):r.localeData().invalidDate()}function Ge(r,a){var f=5;function y(S){return a.longDateFormat(S)||S}for(J.lastIndex=0;f>=0&&J.test(r);)r=r.replace(J,y),J.lastIndex=0,f-=1;return r}var Ut={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function ht(r){var a=this._longDateFormat[r],f=this._longDateFormat[r.toUpperCase()];return a||!f?a:(this._longDateFormat[r]=f.match(z).map(function(y){return y==="MMMM"||y==="MM"||y==="DD"||y==="dddd"?y.slice(1):y}).join(""),this._longDateFormat[r])}var Le="Invalid date";function je(){return this._invalidDate}var $e="%d",Ct=/\d{1,2}/;function At(r){return this._ordinal.replace("%d",r)}var Mt={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Wt(r,a,f,y){var S=this._relativeTime[f];return Q(S)?S(r,a,f,y):S.replace(/%d/i,r)}function Xt(r,a){var f=this._relativeTime[r>0?"future":"past"];return Q(f)?f(a):f.replace(/%s/i,a)}var ys={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function an(r){return typeof r=="string"?ys[r]||ys[r.toLowerCase()]:void 0}function fo(r){var a={},f,y;for(y in r)u(r,y)&&(f=an(y),f&&(a[f]=r[y]));return a}var Hn={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function ki(r){var a=[],f;for(f in r)u(r,f)&&a.push({unit:f,priority:Hn[f]});return a.sort(function(y,S){return y.priority-S.priority}),a}var rr=/\d/,Ft=/\d\d/,Go=/\d{3}/,or=/\d{4}/,$o=/[+-]?\d{6}/,Pt=/\d\d?/,ge=/\d\d\d\d?/,se=/\d\d\d\d\d\d?/,Ae=/\d{1,3}/,gt=/\d{1,4}/,Bt=/[+-]?\d{1,6}/,sr=/\d+/,go=/[+-]?\d+/,Sd=/Z|[+-]\d\d:?\d\d/gi,Gs=/Z|[+-]\d\d(?::?\d\d)?/gi,sl=/[+-]?\d+(\.\d{1,3})?/,$s=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,_o=/^[1-9]\d?/,Mi=/^([1-9]\d|\d)/,Ko;Ko={};function Ie(r,a,f){Ko[r]=Q(a)?a:function(y,S){return y&&f?f:a}}function qo(r,a){return u(Ko,r)?Ko[r](a._strict,a._locale):new RegExp(to(r))}function to(r){return Er(r.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(a,f,y,S,E){return f||y||S||E}))}function Er(r){return r.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function pn(r){return r<0?Math.ceil(r)||0:Math.floor(r)}function Qe(r){var a=+r,f=0;return a!==0&&isFinite(a)&&(f=pn(a)),f}var Ks={};function _t(r,a){var f,y=a,S;for(typeof r=="string"&&(r=[r]),w(a)&&(y=function(E,O){O[a]=Qe(E)}),S=r.length,f=0;f<S;f++)Ks[r[f]]=y}function yo(r,a){_t(r,function(f,y,S,E){S._w=S._w||{},a(f,S._w,S,E)})}function Cd(r,a,f){a!=null&&u(Ks,r)&&Ks[r](a,f._a,f,r)}function _r(r){return r%4===0&&r%100!==0||r%400===0}var ln=0,ir=1,Dr=2,Vt=3,ar=4,lr=5,wo=6,qs=7,sa=8;te("Y",0,0,function(){var r=this.year();return r<=9999?V(r,4):"+"+r}),te(0,["YY",2],0,function(){return this.year()%100}),te(0,["YYYY",4],0,"year"),te(0,["YYYYY",5],0,"year"),te(0,["YYYYYY",6,!0],0,"year"),Ie("Y",go),Ie("YY",Pt,Ft),Ie("YYYY",gt,or),Ie("YYYYY",Bt,$o),Ie("YYYYYY",Bt,$o),_t(["YYYYY","YYYYYY"],ln),_t("YYYY",function(r,a){a[ln]=r.length===2?t.parseTwoDigitYear(r):Qe(r)}),_t("YY",function(r,a){a[ln]=t.parseTwoDigitYear(r)}),_t("Y",function(r,a){a[ln]=parseInt(r,10)});function Jo(r){return _r(r)?366:365}t.parseTwoDigitYear=function(r){return Qe(r)+(Qe(r)>68?1900:2e3)};var ia=Zo("FullYear",!0);function aa(){return _r(this.year())}function Zo(r,a){return function(f){return f!=null?(no(this,r,f),t.updateOffset(this,a),this):Js(this,r)}}function Js(r,a){if(!r.isValid())return NaN;var f=r._d,y=r._isUTC;switch(a){case"Milliseconds":return y?f.getUTCMilliseconds():f.getMilliseconds();case"Seconds":return y?f.getUTCSeconds():f.getSeconds();case"Minutes":return y?f.getUTCMinutes():f.getMinutes();case"Hours":return y?f.getUTCHours():f.getHours();case"Date":return y?f.getUTCDate():f.getDate();case"Day":return y?f.getUTCDay():f.getDay();case"Month":return y?f.getUTCMonth():f.getMonth();case"FullYear":return y?f.getUTCFullYear():f.getFullYear();default:return NaN}}function no(r,a,f){var y,S,E,O,q;if(!(!r.isValid()||isNaN(f))){switch(y=r._d,S=r._isUTC,a){case"Milliseconds":return void(S?y.setUTCMilliseconds(f):y.setMilliseconds(f));case"Seconds":return void(S?y.setUTCSeconds(f):y.setSeconds(f));case"Minutes":return void(S?y.setUTCMinutes(f):y.setMinutes(f));case"Hours":return void(S?y.setUTCHours(f):y.setHours(f));case"Date":return void(S?y.setUTCDate(f):y.setDate(f));case"FullYear":break;default:return}E=f,O=r.month(),q=r.date(),q=q===29&&O===1&&!_r(E)?28:q,S?y.setUTCFullYear(E,O,q):y.setFullYear(E,O,q)}}function il(r){return r=an(r),Q(this[r])?this[r]():this}function kd(r,a){if(typeof r=="object"){r=fo(r);var f=ki(r),y,S=f.length;for(y=0;y<S;y++)this[f[y].unit](r[f[y].unit])}else if(r=an(r),Q(this[r]))return this[r](a);return this}function al(r,a){return(r%a+a)%a}var Qt;Array.prototype.indexOf?Qt=Array.prototype.indexOf:Qt=function(r){var a;for(a=0;a<this.length;++a)if(this[a]===r)return a;return-1};function ji(r,a){if(isNaN(r)||isNaN(a))return NaN;var f=al(a,12);return r+=(a-f)/12,f===1?_r(r)?29:28:31-f%7%2}te("M",["MM",2],"Mo",function(){return this.month()+1}),te("MMM",0,0,function(r){return this.localeData().monthsShort(this,r)}),te("MMMM",0,0,function(r){return this.localeData().months(this,r)}),Ie("M",Pt,_o),Ie("MM",Pt,Ft),Ie("MMM",function(r,a){return a.monthsShortRegex(r)}),Ie("MMMM",function(r,a){return a.monthsRegex(r)}),_t(["M","MM"],function(r,a){a[ir]=Qe(r)-1}),_t(["MMM","MMMM"],function(r,a,f,y){var S=f._locale.monthsParse(r,y,f._strict);S!=null?a[ir]=S:C(f).invalidMonth=r});var la="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),da="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ll=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,dl=$s,cl=$s;function Ir(r,a){return r?d(this._months)?this._months[r.month()]:this._months[(this._months.isFormat||ll).test(a)?"format":"standalone"][r.month()]:d(this._months)?this._months:this._months.standalone}function Xo(r,a){return r?d(this._monthsShort)?this._monthsShort[r.month()]:this._monthsShort[ll.test(a)?"format":"standalone"][r.month()]:d(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Qo(r,a,f){var y,S,E,O=r.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],y=0;y<12;++y)E=v([2e3,y]),this._shortMonthsParse[y]=this.monthsShort(E,"").toLocaleLowerCase(),this._longMonthsParse[y]=this.months(E,"").toLocaleLowerCase();return f?a==="MMM"?(S=Qt.call(this._shortMonthsParse,O),S!==-1?S:null):(S=Qt.call(this._longMonthsParse,O),S!==-1?S:null):a==="MMM"?(S=Qt.call(this._shortMonthsParse,O),S!==-1?S:(S=Qt.call(this._longMonthsParse,O),S!==-1?S:null)):(S=Qt.call(this._longMonthsParse,O),S!==-1?S:(S=Qt.call(this._shortMonthsParse,O),S!==-1?S:null))}function at(r,a,f){var y,S,E;if(this._monthsParseExact)return Qo.call(this,r,a,f);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),y=0;y<12;y++){if(S=v([2e3,y]),f&&!this._longMonthsParse[y]&&(this._longMonthsParse[y]=new RegExp("^"+this.months(S,"").replace(".","")+"$","i"),this._shortMonthsParse[y]=new RegExp("^"+this.monthsShort(S,"").replace(".","")+"$","i")),!f&&!this._monthsParse[y]&&(E="^"+this.months(S,"")+"|^"+this.monthsShort(S,""),this._monthsParse[y]=new RegExp(E.replace(".",""),"i")),f&&a==="MMMM"&&this._longMonthsParse[y].test(r))return y;if(f&&a==="MMM"&&this._shortMonthsParse[y].test(r))return y;if(!f&&this._monthsParse[y].test(r))return y}}function Nt(r,a){if(!r.isValid())return r;if(typeof a=="string"){if(/^\d+$/.test(a))a=Qe(a);else if(a=r.localeData().monthsParse(a),!w(a))return r}var f=a,y=r.date();return y=y<29?y:Math.min(y,ji(r.year(),f)),r._isUTC?r._d.setUTCMonth(f,y):r._d.setMonth(f,y),r}function jt(r){return r!=null?(Nt(this,r),t.updateOffset(this,!0),this):Js(this,"Month")}function wn(){return ji(this.year(),this.month())}function Tr(r){return this._monthsParseExact?(u(this,"_monthsRegex")||ul.call(this),r?this._monthsShortStrictRegex:this._monthsShortRegex):(u(this,"_monthsShortRegex")||(this._monthsShortRegex=dl),this._monthsShortStrictRegex&&r?this._monthsShortStrictRegex:this._monthsShortRegex)}function Li(r){return this._monthsParseExact?(u(this,"_monthsRegex")||ul.call(this),r?this._monthsStrictRegex:this._monthsRegex):(u(this,"_monthsRegex")||(this._monthsRegex=cl),this._monthsStrictRegex&&r?this._monthsStrictRegex:this._monthsRegex)}function ul(){function r(ae,Se){return Se.length-ae.length}var a=[],f=[],y=[],S,E,O,q;for(S=0;S<12;S++)E=v([2e3,S]),O=Er(this.monthsShort(E,"")),q=Er(this.months(E,"")),a.push(O),f.push(q),y.push(q),y.push(O);a.sort(r),f.sort(r),y.sort(r),this._monthsRegex=new RegExp("^("+y.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+f.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Ei(r,a,f,y,S,E,O){var q;return r<100&&r>=0?(q=new Date(r+400,a,f,y,S,E,O),isFinite(q.getFullYear())&&q.setFullYear(r)):q=new Date(r,a,f,y,S,E,O),q}function Zs(r){var a,f;return r<100&&r>=0?(f=Array.prototype.slice.call(arguments),f[0]=r+400,a=new Date(Date.UTC.apply(null,f)),isFinite(a.getUTCFullYear())&&a.setUTCFullYear(r)):a=new Date(Date.UTC.apply(null,arguments)),a}function Md(r,a,f){var y=7+a-f,S=(7+Zs(r,0,y).getUTCDay()-a)%7;return-S+y-1}function pl(r,a,f,y,S){var E=(7+f-y)%7,O=Md(r,y,S),q=1+7*(a-1)+E+O,ae,Se;return q<=0?(ae=r-1,Se=Jo(ae)+q):q>Jo(r)?(ae=r+1,Se=q-Jo(r)):(ae=r,Se=q),{year:ae,dayOfYear:Se}}function ca(r,a,f){var y=Md(r.year(),a,f),S=Math.floor((r.dayOfYear()-y-1)/7)+1,E,O;return S<1?(O=r.year()-1,E=S+ws(O,a,f)):S>ws(r.year(),a,f)?(E=S-ws(r.year(),a,f),O=r.year()+1):(O=r.year(),E=S),{week:E,year:O}}function ws(r,a,f){var y=Md(r,a,f),S=Md(r+1,a,f);return(Jo(r)-y+S)/7}te("w",["ww",2],"wo","week"),te("W",["WW",2],"Wo","isoWeek"),Ie("w",Pt,_o),Ie("ww",Pt,Ft),Ie("W",Pt,_o),Ie("WW",Pt,Ft),yo(["w","ww","W","WW"],function(r,a,f,y){a[y.substr(0,1)]=Qe(r)});function hl(r){return ca(r,this._week.dow,this._week.doy).week}var mh={dow:0,doy:6};function jd(){return this._week.dow}function ua(){return this._week.doy}function su(r){var a=this.localeData().week(this);return r==null?a:this.add((r-a)*7,"d")}function fh(r){var a=ca(this,1,4).week;return r==null?a:this.add((r-a)*7,"d")}te("d",0,"do","day"),te("dd",0,0,function(r){return this.localeData().weekdaysMin(this,r)}),te("ddd",0,0,function(r){return this.localeData().weekdaysShort(this,r)}),te("dddd",0,0,function(r){return this.localeData().weekdays(this,r)}),te("e",0,0,"weekday"),te("E",0,0,"isoWeekday"),Ie("d",Pt),Ie("e",Pt),Ie("E",Pt),Ie("dd",function(r,a){return a.weekdaysMinRegex(r)}),Ie("ddd",function(r,a){return a.weekdaysShortRegex(r)}),Ie("dddd",function(r,a){return a.weekdaysRegex(r)}),yo(["dd","ddd","dddd"],function(r,a,f,y){var S=f._locale.weekdaysParse(r,y,f._strict);S!=null?a.d=S:C(f).invalidWeekday=r}),yo(["d","e","E"],function(r,a,f,y){a[y]=Qe(r)});function Ld(r,a){return typeof r!="string"?r:isNaN(r)?(r=a.weekdaysParse(r),typeof r=="number"?r:null):parseInt(r,10)}function gh(r,a){return typeof r=="string"?a.weekdaysParse(r)%7||7:isNaN(r)?null:r}function Ed(r,a){return r.slice(a,7).concat(r.slice(0,a))}var _h="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),iu="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),yh="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),au=$s,xg=$s,lu=$s;function bg(r,a){var f=d(this._weekdays)?this._weekdays:this._weekdays[r&&r!==!0&&this._weekdays.isFormat.test(a)?"format":"standalone"];return r===!0?Ed(f,this._week.dow):r?f[r.day()]:f}function qt(r){return r===!0?Ed(this._weekdaysShort,this._week.dow):r?this._weekdaysShort[r.day()]:this._weekdaysShort}function pa(r){return r===!0?Ed(this._weekdaysMin,this._week.dow):r?this._weekdaysMin[r.day()]:this._weekdaysMin}function Sg(r,a,f){var y,S,E,O=r.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],y=0;y<7;++y)E=v([2e3,1]).day(y),this._minWeekdaysParse[y]=this.weekdaysMin(E,"").toLocaleLowerCase(),this._shortWeekdaysParse[y]=this.weekdaysShort(E,"").toLocaleLowerCase(),this._weekdaysParse[y]=this.weekdays(E,"").toLocaleLowerCase();return f?a==="dddd"?(S=Qt.call(this._weekdaysParse,O),S!==-1?S:null):a==="ddd"?(S=Qt.call(this._shortWeekdaysParse,O),S!==-1?S:null):(S=Qt.call(this._minWeekdaysParse,O),S!==-1?S:null):a==="dddd"?(S=Qt.call(this._weekdaysParse,O),S!==-1||(S=Qt.call(this._shortWeekdaysParse,O),S!==-1)?S:(S=Qt.call(this._minWeekdaysParse,O),S!==-1?S:null)):a==="ddd"?(S=Qt.call(this._shortWeekdaysParse,O),S!==-1||(S=Qt.call(this._weekdaysParse,O),S!==-1)?S:(S=Qt.call(this._minWeekdaysParse,O),S!==-1?S:null)):(S=Qt.call(this._minWeekdaysParse,O),S!==-1||(S=Qt.call(this._weekdaysParse,O),S!==-1)?S:(S=Qt.call(this._shortWeekdaysParse,O),S!==-1?S:null))}function Cg(r,a,f){var y,S,E;if(this._weekdaysParseExact)return Sg.call(this,r,a,f);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),y=0;y<7;y++){if(S=v([2e3,1]).day(y),f&&!this._fullWeekdaysParse[y]&&(this._fullWeekdaysParse[y]=new RegExp("^"+this.weekdays(S,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[y]=new RegExp("^"+this.weekdaysShort(S,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[y]=new RegExp("^"+this.weekdaysMin(S,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[y]||(E="^"+this.weekdays(S,"")+"|^"+this.weekdaysShort(S,"")+"|^"+this.weekdaysMin(S,""),this._weekdaysParse[y]=new RegExp(E.replace(".",""),"i")),f&&a==="dddd"&&this._fullWeekdaysParse[y].test(r))return y;if(f&&a==="ddd"&&this._shortWeekdaysParse[y].test(r))return y;if(f&&a==="dd"&&this._minWeekdaysParse[y].test(r))return y;if(!f&&this._weekdaysParse[y].test(r))return y}}function ml(r){if(!this.isValid())return r!=null?this:NaN;var a=Js(this,"Day");return r!=null?(r=Ld(r,this.localeData()),this.add(r-a,"d")):a}function wh(r){if(!this.isValid())return r!=null?this:NaN;var a=(this.day()+7-this.localeData()._week.dow)%7;return r==null?a:this.add(r-a,"d")}function Dd(r){if(!this.isValid())return r!=null?this:NaN;if(r!=null){var a=gh(r,this.localeData());return this.day(this.day()%7?a:a-7)}else return this.day()||7}function ha(r){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||es.call(this),r?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=au),this._weekdaysStrictRegex&&r?this._weekdaysStrictRegex:this._weekdaysRegex)}function du(r){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||es.call(this),r?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=xg),this._weekdaysShortStrictRegex&&r?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Id(r){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||es.call(this),r?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=lu),this._weekdaysMinStrictRegex&&r?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function es(){function r(He,xe){return xe.length-He.length}var a=[],f=[],y=[],S=[],E,O,q,ae,Se;for(E=0;E<7;E++)O=v([2e3,1]).day(E),q=Er(this.weekdaysMin(O,"")),ae=Er(this.weekdaysShort(O,"")),Se=Er(this.weekdays(O,"")),a.push(q),f.push(ae),y.push(Se),S.push(q),S.push(ae),S.push(Se);a.sort(r),f.sort(r),y.sort(r),S.sort(r),this._weekdaysRegex=new RegExp("^("+S.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+y.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+f.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function cu(){return this.hours()%12||12}function kg(){return this.hours()||24}te("H",["HH",2],0,"hour"),te("h",["hh",2],0,cu),te("k",["kk",2],0,kg),te("hmm",0,0,function(){return""+cu.apply(this)+V(this.minutes(),2)}),te("hmmss",0,0,function(){return""+cu.apply(this)+V(this.minutes(),2)+V(this.seconds(),2)}),te("Hmm",0,0,function(){return""+this.hours()+V(this.minutes(),2)}),te("Hmmss",0,0,function(){return""+this.hours()+V(this.minutes(),2)+V(this.seconds(),2)});function vh(r,a){te(r,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),a)})}vh("a",!0),vh("A",!1);function xh(r,a){return a._meridiemParse}Ie("a",xh),Ie("A",xh),Ie("H",Pt,Mi),Ie("h",Pt,_o),Ie("k",Pt,_o),Ie("HH",Pt,Ft),Ie("hh",Pt,Ft),Ie("kk",Pt,Ft),Ie("hmm",ge),Ie("hmmss",se),Ie("Hmm",ge),Ie("Hmmss",se),_t(["H","HH"],Vt),_t(["k","kk"],function(r,a,f){var y=Qe(r);a[Vt]=y===24?0:y}),_t(["a","A"],function(r,a,f){f._isPm=f._locale.isPM(r),f._meridiem=r}),_t(["h","hh"],function(r,a,f){a[Vt]=Qe(r),C(f).bigHour=!0}),_t("hmm",function(r,a,f){var y=r.length-2;a[Vt]=Qe(r.substr(0,y)),a[ar]=Qe(r.substr(y)),C(f).bigHour=!0}),_t("hmmss",function(r,a,f){var y=r.length-4,S=r.length-2;a[Vt]=Qe(r.substr(0,y)),a[ar]=Qe(r.substr(y,2)),a[lr]=Qe(r.substr(S)),C(f).bigHour=!0}),_t("Hmm",function(r,a,f){var y=r.length-2;a[Vt]=Qe(r.substr(0,y)),a[ar]=Qe(r.substr(y))}),_t("Hmmss",function(r,a,f){var y=r.length-4,S=r.length-2;a[Vt]=Qe(r.substr(0,y)),a[ar]=Qe(r.substr(y,2)),a[lr]=Qe(r.substr(S))});function Mg(r){return(r+"").toLowerCase().charAt(0)==="p"}var Td=/[ap]\.?m?\.?/i,jg=Zo("Hours",!0);function Lg(r,a,f){return r>11?f?"pm":"PM":f?"am":"AM"}var Ad={calendar:ie,longDateFormat:Ut,invalidDate:Le,ordinal:$e,dayOfMonthOrdinalParse:Ct,relativeTime:Mt,months:la,monthsShort:da,week:mh,weekdays:_h,weekdaysMin:yh,weekdaysShort:iu,meridiemParse:Td},Jt={},ro={},Di;function Pd(r,a){var f,y=Math.min(r.length,a.length);for(f=0;f<y;f+=1)if(r[f]!==a[f])return f;return y}function uu(r){return r&&r.toLowerCase().replace("_","-")}function Rd(r){for(var a=0,f,y,S,E;a<r.length;){for(E=uu(r[a]).split("-"),f=E.length,y=uu(r[a+1]),y=y?y.split("-"):null;f>0;){if(S=fl(E.slice(0,f).join("-")),S)return S;if(y&&y.length>=f&&Pd(E,y)>=f-1)break;f--}a++}return Di}function Fd(r){return!!(r&&r.match("^[^/\\\\]*$"))}function fl(r){var a=null,f;if(Jt[r]===void 0&&o&&o.exports&&Fd(r))try{a=Di._abbr,f=GP,f("./locale/"+r),vn(a)}catch{Jt[r]=null}return Jt[r]}function vn(r,a){var f;return r&&(g(a)?f=Ar(r):f=Xs(r,a),f?Di=f:typeof console<"u"&&console.warn&&console.warn("Locale "+r+" not found. Did you forget to load it?")),Di._abbr}function Xs(r,a){if(a!==null){var f,y=Ad;if(a.abbr=r,Jt[r]!=null)Z("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),y=Jt[r]._config;else if(a.parentLocale!=null)if(Jt[a.parentLocale]!=null)y=Jt[a.parentLocale]._config;else if(f=fl(a.parentLocale),f!=null)y=f._config;else return ro[a.parentLocale]||(ro[a.parentLocale]=[]),ro[a.parentLocale].push({name:r,config:a}),null;return Jt[r]=new X(P(y,a)),ro[r]&&ro[r].forEach(function(S){Xs(S.name,S.config)}),vn(r),Jt[r]}else return delete Jt[r],null}function pu(r,a){if(a!=null){var f,y,S=Ad;Jt[r]!=null&&Jt[r].parentLocale!=null?Jt[r].set(P(Jt[r]._config,a)):(y=fl(r),y!=null&&(S=y._config),a=P(S,a),y==null&&(a.abbr=r),f=new X(a),f.parentLocale=Jt[r],Jt[r]=f),vn(r)}else Jt[r]!=null&&(Jt[r].parentLocale!=null?(Jt[r]=Jt[r].parentLocale,r===vn()&&vn(r)):Jt[r]!=null&&delete Jt[r]);return Jt[r]}function Ar(r){var a;if(r&&r._locale&&r._locale._abbr&&(r=r._locale._abbr),!r)return Di;if(!d(r)){if(a=fl(r),a)return a;r=[r]}return Rd(r)}function Eg(){return $(Jt)}function gl(r){var a,f=r._a;return f&&C(r).overflow===-2&&(a=f[ir]<0||f[ir]>11?ir:f[Dr]<1||f[Dr]>ji(f[ln],f[ir])?Dr:f[Vt]<0||f[Vt]>24||f[Vt]===24&&(f[ar]!==0||f[lr]!==0||f[wo]!==0)?Vt:f[ar]<0||f[ar]>59?ar:f[lr]<0||f[lr]>59?lr:f[wo]<0||f[wo]>999?wo:-1,C(r)._overflowDayOfYear&&(a<ln||a>Dr)&&(a=Dr),C(r)._overflowWeeks&&a===-1&&(a=qs),C(r)._overflowWeekday&&a===-1&&(a=sa),C(r).overflow=a),r}var hu=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,_l=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Nd=/Z|[+-]\d\d(?::?\d\d)?/,yl=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],mu=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Dg=/^\/?Date\((-?\d+)/i,Ig=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,fu={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function bh(r){var a,f,y=r._i,S=hu.exec(y)||_l.exec(y),E,O,q,ae,Se=yl.length,He=mu.length;if(S){for(C(r).iso=!0,a=0,f=Se;a<f;a++)if(yl[a][1].exec(S[1])){O=yl[a][0],E=yl[a][2]!==!1;break}if(O==null){r._isValid=!1;return}if(S[3]){for(a=0,f=He;a<f;a++)if(mu[a][1].exec(S[3])){q=(S[2]||" ")+mu[a][0];break}if(q==null){r._isValid=!1;return}}if(!E&&q!=null){r._isValid=!1;return}if(S[4])if(Nd.exec(S[4]))ae="Z";else{r._isValid=!1;return}r._f=O+(q||"")+(ae||""),gu(r)}else r._isValid=!1}function Tg(r,a,f,y,S,E){var O=[Ag(r),da.indexOf(a),parseInt(f,10),parseInt(y,10),parseInt(S,10)];return E&&O.push(parseInt(E,10)),O}function Ag(r){var a=parseInt(r,10);return a<=49?2e3+a:a<=999?1900+a:a}function Pg(r){return r.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Rg(r,a,f){if(r){var y=iu.indexOf(r),S=new Date(a[0],a[1],a[2]).getDay();if(y!==S)return C(f).weekdayMismatch=!0,f._isValid=!1,!1}return!0}function Sh(r,a,f){if(r)return fu[r];if(a)return 0;var y=parseInt(f,10),S=y%100,E=(y-S)/100;return E*60+S}function Ch(r){var a=Ig.exec(Pg(r._i)),f;if(a){if(f=Tg(a[4],a[3],a[2],a[5],a[6],a[7]),!Rg(a[1],f,r))return;r._a=f,r._tzm=Sh(a[8],a[9],a[10]),r._d=Zs.apply(null,r._a),r._d.setUTCMinutes(r._d.getUTCMinutes()-r._tzm),C(r).rfc2822=!0}else r._isValid=!1}function Fg(r){var a=Dg.exec(r._i);if(a!==null){r._d=new Date(+a[1]);return}if(bh(r),r._isValid===!1)delete r._isValid;else return;if(Ch(r),r._isValid===!1)delete r._isValid;else return;r._strict?r._isValid=!1:t.createFromInputFallback(r)}t.createFromInputFallback=W("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(r){r._d=new Date(r._i+(r._useUTC?" UTC":""))});function ma(r,a,f){return r??a??f}function Ng(r){var a=new Date(t.now());return r._useUTC?[a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()]:[a.getFullYear(),a.getMonth(),a.getDate()]}function wl(r){var a,f,y=[],S,E,O;if(!r._d){for(S=Ng(r),r._w&&r._a[Dr]==null&&r._a[ir]==null&&Og(r),r._dayOfYear!=null&&(O=ma(r._a[ln],S[ln]),(r._dayOfYear>Jo(O)||r._dayOfYear===0)&&(C(r)._overflowDayOfYear=!0),f=Zs(O,0,r._dayOfYear),r._a[ir]=f.getUTCMonth(),r._a[Dr]=f.getUTCDate()),a=0;a<3&&r._a[a]==null;++a)r._a[a]=y[a]=S[a];for(;a<7;a++)r._a[a]=y[a]=r._a[a]==null?a===2?1:0:r._a[a];r._a[Vt]===24&&r._a[ar]===0&&r._a[lr]===0&&r._a[wo]===0&&(r._nextDay=!0,r._a[Vt]=0),r._d=(r._useUTC?Zs:Ei).apply(null,y),E=r._useUTC?r._d.getUTCDay():r._d.getDay(),r._tzm!=null&&r._d.setUTCMinutes(r._d.getUTCMinutes()-r._tzm),r._nextDay&&(r._a[Vt]=24),r._w&&typeof r._w.d<"u"&&r._w.d!==E&&(C(r).weekdayMismatch=!0)}}function Og(r){var a,f,y,S,E,O,q,ae,Se;a=r._w,a.GG!=null||a.W!=null||a.E!=null?(E=1,O=4,f=ma(a.GG,r._a[ln],ca(en(),1,4).year),y=ma(a.W,1),S=ma(a.E,1),(S<1||S>7)&&(ae=!0)):(E=r._locale._week.dow,O=r._locale._week.doy,Se=ca(en(),E,O),f=ma(a.gg,r._a[ln],Se.year),y=ma(a.w,Se.week),a.d!=null?(S=a.d,(S<0||S>6)&&(ae=!0)):a.e!=null?(S=a.e+E,(a.e<0||a.e>6)&&(ae=!0)):S=E),y<1||y>ws(f,E,O)?C(r)._overflowWeeks=!0:ae!=null?C(r)._overflowWeekday=!0:(q=pl(f,y,S,E,O),r._a[ln]=q.year,r._dayOfYear=q.dayOfYear)}t.ISO_8601=function(){},t.RFC_2822=function(){};function gu(r){if(r._f===t.ISO_8601){bh(r);return}if(r._f===t.RFC_2822){Ch(r);return}r._a=[],C(r).empty=!0;var a=""+r._i,f,y,S,E,O,q=a.length,ae=0,Se,He;for(S=Ge(r._f,r._locale).match(z)||[],He=S.length,f=0;f<He;f++)E=S[f],y=(a.match(qo(E,r))||[])[0],y&&(O=a.substr(0,a.indexOf(y)),O.length>0&&C(r).unusedInput.push(O),a=a.slice(a.indexOf(y)+y.length),ae+=y.length),me[E]?(y?C(r).empty=!1:C(r).unusedTokens.push(E),Cd(E,y,r)):r._strict&&!y&&C(r).unusedTokens.push(E);C(r).charsLeftOver=q-ae,a.length>0&&C(r).unusedInput.push(a),r._a[Vt]<=12&&C(r).bigHour===!0&&r._a[Vt]>0&&(C(r).bigHour=void 0),C(r).parsedDateParts=r._a.slice(0),C(r).meridiem=r._meridiem,r._a[Vt]=Yg(r._locale,r._a[Vt],r._meridiem),Se=C(r).era,Se!==null&&(r._a[ln]=r._locale.erasConvertYear(Se,r._a[ln])),wl(r),gl(r)}function Yg(r,a,f){var y;return f==null?a:r.meridiemHour!=null?r.meridiemHour(a,f):(r.isPM!=null&&(y=r.isPM(f),y&&a<12&&(a+=12),!y&&a===12&&(a=0)),a)}function kh(r){var a,f,y,S,E,O,q=!1,ae=r._f.length;if(ae===0){C(r).invalidFormat=!0,r._d=new Date(NaN);return}for(S=0;S<ae;S++)E=0,O=!1,a=A({},r),r._useUTC!=null&&(a._useUTC=r._useUTC),a._f=r._f[S],gu(a),L(a)&&(O=!0),E+=C(a).charsLeftOver,E+=C(a).unusedTokens.length*10,C(a).score=E,q?E<y&&(y=E,f=a):(y==null||E<y||O)&&(y=E,f=a,O&&(q=!0));_(r,f||a)}function Wg(r){if(!r._d){var a=fo(r._i),f=a.day===void 0?a.date:a.day;r._a=x([a.year,a.month,f,a.hour,a.minute,a.second,a.millisecond],function(y){return y&&parseInt(y,10)}),wl(r)}}function Bg(r){var a=new I(gl(Mh(r)));return a._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function Mh(r){var a=r._i,f=r._f;return r._locale=r._locale||Ar(r._l),a===null||f===void 0&&a===""?T({nullInput:!0}):(typeof a=="string"&&(r._i=a=r._locale.preparse(a)),R(a)?new I(gl(a)):(m(a)?r._d=a:d(f)?kh(r):f?gu(r):Hg(r),L(r)||(r._d=null),r))}function Hg(r){var a=r._i;g(a)?r._d=new Date(t.now()):m(a)?r._d=new Date(a.valueOf()):typeof a=="string"?Fg(r):d(a)?(r._a=x(a.slice(0),function(f){return parseInt(f,10)}),wl(r)):c(a)?Wg(r):w(a)?r._d=new Date(a):t.createFromInputFallback(r)}function jh(r,a,f,y,S){var E={};return(a===!0||a===!1)&&(y=a,a=void 0),(f===!0||f===!1)&&(y=f,f=void 0),(c(r)&&h(r)||d(r)&&r.length===0)&&(r=void 0),E._isAMomentObject=!0,E._useUTC=E._isUTC=S,E._l=f,E._i=r,E._f=a,E._strict=y,Bg(E)}function en(r,a,f,y){return jh(r,a,f,y,!1)}var zg=W("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var r=en.apply(null,arguments);return this.isValid()&&r.isValid()?r<this?this:r:T()}),_u=W("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var r=en.apply(null,arguments);return this.isValid()&&r.isValid()?r>this?this:r:T()});function fa(r,a){var f,y;if(a.length===1&&d(a[0])&&(a=a[0]),!a.length)return en();for(f=a[0],y=1;y<a.length;++y)(!a[y].isValid()||a[y][r](f))&&(f=a[y]);return f}function Ug(){var r=[].slice.call(arguments,0);return fa("isBefore",r)}function Lh(){var r=[].slice.call(arguments,0);return fa("isAfter",r)}var Eh=function(){return Date.now?Date.now():+new Date},ga=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Dh(r){var a,f=!1,y,S=ga.length;for(a in r)if(u(r,a)&&!(Qt.call(ga,a)!==-1&&(r[a]==null||!isNaN(r[a]))))return!1;for(y=0;y<S;++y)if(r[ga[y]]){if(f)return!1;parseFloat(r[ga[y]])!==Qe(r[ga[y]])&&(f=!0)}return!0}function Ih(){return this._isValid}function _a(){return vo(NaN)}function Od(r){var a=fo(r),f=a.year||0,y=a.quarter||0,S=a.month||0,E=a.week||a.isoWeek||0,O=a.day||0,q=a.hour||0,ae=a.minute||0,Se=a.second||0,He=a.millisecond||0;this._isValid=Dh(a),this._milliseconds=+He+Se*1e3+ae*6e4+q*1e3*60*60,this._days=+O+E*7,this._months=+S+y*3+f*12,this._data={},this._locale=Ar(),this._bubble()}function Yd(r){return r instanceof Od}function yu(r){return r<0?Math.round(-1*r)*-1:Math.round(r)}function Th(r,a,f){var y=Math.min(r.length,a.length),S=Math.abs(r.length-a.length),E=0,O;for(O=0;O<y;O++)Qe(r[O])!==Qe(a[O])&&E++;return E+S}function wu(r,a){te(r,0,0,function(){var f=this.utcOffset(),y="+";return f<0&&(f=-f,y="-"),y+V(~~(f/60),2)+a+V(~~f%60,2)})}wu("Z",":"),wu("ZZ",""),Ie("Z",Gs),Ie("ZZ",Gs),_t(["Z","ZZ"],function(r,a,f){f._useUTC=!0,f._tzm=Ii(Gs,r)});var vl=/([\+\-]|\d\d)/gi;function Ii(r,a){var f=(a||"").match(r),y,S,E;return f===null?null:(y=f[f.length-1]||[],S=(y+"").match(vl)||["-",0,0],E=+(S[1]*60)+Qe(S[2]),E===0?0:S[0]==="+"?E:-E)}function vu(r,a){var f,y;return a._isUTC?(f=a.clone(),y=(R(r)||m(r)?r.valueOf():en(r).valueOf())-f.valueOf(),f._d.setTime(f._d.valueOf()+y),t.updateOffset(f,!1),f):en(r).local()}function ya(r){return-Math.round(r._d.getTimezoneOffset())}t.updateOffset=function(){};function Vg(r,a,f){var y=this._offset||0,S;if(!this.isValid())return r!=null?this:NaN;if(r!=null){if(typeof r=="string"){if(r=Ii(Gs,r),r===null)return this}else Math.abs(r)<16&&!f&&(r=r*60);return!this._isUTC&&a&&(S=ya(this)),this._offset=r,this._isUTC=!0,S!=null&&this.add(S,"m"),y!==r&&(!a||this._changeInProgress?ku(this,vo(r-y,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?y:ya(this)}function Ah(r,a){return r!=null?(typeof r!="string"&&(r=-r),this.utcOffset(r,a),this):-this.utcOffset()}function xu(r){return this.utcOffset(0,r)}function bu(r){return this._isUTC&&(this.utcOffset(0,r),this._isUTC=!1,r&&this.subtract(ya(this),"m")),this}function Ph(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var r=Ii(Sd,this._i);r!=null?this.utcOffset(r):this.utcOffset(0,!0)}return this}function Rh(r){return this.isValid()?(r=r?en(r).utcOffset():0,(this.utcOffset()-r)%60===0):!1}function Fh(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Gg(){if(!g(this._isDSTShifted))return this._isDSTShifted;var r={},a;return A(r,this),r=Mh(r),r._a?(a=r._isUTC?v(r._a):en(r._a),this._isDSTShifted=this.isValid()&&Th(r._a,a.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function $g(){return this.isValid()?!this._isUTC:!1}function Kg(){return this.isValid()?this._isUTC:!1}function Nh(){return this.isValid()?this._isUTC&&this._offset===0:!1}var qg=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,oo=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function vo(r,a){var f=r,y=null,S,E,O;return Yd(r)?f={ms:r._milliseconds,d:r._days,M:r._months}:w(r)||!isNaN(+r)?(f={},a?f[a]=+r:f.milliseconds=+r):(y=qg.exec(r))?(S=y[1]==="-"?-1:1,f={y:0,d:Qe(y[Dr])*S,h:Qe(y[Vt])*S,m:Qe(y[ar])*S,s:Qe(y[lr])*S,ms:Qe(yu(y[wo]*1e3))*S}):(y=oo.exec(r))?(S=y[1]==="-"?-1:1,f={y:xo(y[2],S),M:xo(y[3],S),w:xo(y[4],S),d:xo(y[5],S),h:xo(y[6],S),m:xo(y[7],S),s:xo(y[8],S)}):f==null?f={}:typeof f=="object"&&("from"in f||"to"in f)&&(O=Oh(en(f.from),en(f.to)),f={},f.ms=O.milliseconds,f.M=O.months),E=new Od(f),Yd(r)&&u(r,"_locale")&&(E._locale=r._locale),Yd(r)&&u(r,"_isValid")&&(E._isValid=r._isValid),E}vo.fn=Od.prototype,vo.invalid=_a;function xo(r,a){var f=r&&parseFloat(r.replace(",","."));return(isNaN(f)?0:f)*a}function Su(r,a){var f={};return f.months=a.month()-r.month()+(a.year()-r.year())*12,r.clone().add(f.months,"M").isAfter(a)&&--f.months,f.milliseconds=+a-+r.clone().add(f.months,"M"),f}function Oh(r,a){var f;return r.isValid()&&a.isValid()?(a=vu(a,r),r.isBefore(a)?f=Su(r,a):(f=Su(a,r),f.milliseconds=-f.milliseconds,f.months=-f.months),f):{milliseconds:0,months:0}}function Cu(r,a){return function(f,y){var S,E;return y!==null&&!isNaN(+y)&&(Z(a,"moment()."+a+"(period, number) is deprecated. Please use moment()."+a+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),E=f,f=y,y=E),S=vo(f,y),ku(this,S,r),this}}function ku(r,a,f,y){var S=a._milliseconds,E=yu(a._days),O=yu(a._months);r.isValid()&&(y=y??!0,O&&Nt(r,Js(r,"Month")+O*f),E&&no(r,"Date",Js(r,"Date")+E*f),S&&r._d.setTime(r._d.valueOf()+S*f),y&&t.updateOffset(r,E||O))}var Mu=Cu(1,"add"),Jg=Cu(-1,"subtract");function Ti(r){return typeof r=="string"||r instanceof String}function ju(r){return R(r)||m(r)||Ti(r)||w(r)||Lu(r)||xl(r)||r===null||r===void 0}function xl(r){var a=c(r)&&!h(r),f=!1,y=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],S,E,O=y.length;for(S=0;S<O;S+=1)E=y[S],f=f||u(r,E);return a&&f}function Lu(r){var a=d(r),f=!1;return a&&(f=r.filter(function(y){return!w(y)&&Ti(r)}).length===0),a&&f}function Yh(r){var a=c(r)&&!h(r),f=!1,y=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],S,E;for(S=0;S<y.length;S+=1)E=y[S],f=f||u(r,E);return a&&f}function Wh(r,a){var f=r.diff(a,"days",!0);return f<-6?"sameElse":f<-1?"lastWeek":f<0?"lastDay":f<1?"sameDay":f<2?"nextDay":f<7?"nextWeek":"sameElse"}function Eu(r,a){arguments.length===1&&(arguments[0]?ju(arguments[0])?(r=arguments[0],a=void 0):Yh(arguments[0])&&(a=arguments[0],r=void 0):(r=void 0,a=void 0));var f=r||en(),y=vu(f,this).startOf("day"),S=t.calendarFormat(this,y)||"sameElse",E=a&&(Q(a[S])?a[S].call(this,f):a[S]);return this.format(E||this.localeData().calendar(S,this,en(f)))}function bl(){return new I(this)}function Zg(r,a){var f=R(r)?r:en(r);return this.isValid()&&f.isValid()?(a=an(a)||"millisecond",a==="millisecond"?this.valueOf()>f.valueOf():f.valueOf()<this.clone().startOf(a).valueOf()):!1}function Bh(r,a){var f=R(r)?r:en(r);return this.isValid()&&f.isValid()?(a=an(a)||"millisecond",a==="millisecond"?this.valueOf()<f.valueOf():this.clone().endOf(a).valueOf()<f.valueOf()):!1}function Hh(r,a,f,y){var S=R(r)?r:en(r),E=R(a)?a:en(a);return this.isValid()&&S.isValid()&&E.isValid()?(y=y||"()",(y[0]==="("?this.isAfter(S,f):!this.isBefore(S,f))&&(y[1]===")"?this.isBefore(E,f):!this.isAfter(E,f))):!1}function tn(r,a){var f=R(r)?r:en(r),y;return this.isValid()&&f.isValid()?(a=an(a)||"millisecond",a==="millisecond"?this.valueOf()===f.valueOf():(y=f.valueOf(),this.clone().startOf(a).valueOf()<=y&&y<=this.clone().endOf(a).valueOf())):!1}function zh(r,a){return this.isSame(r,a)||this.isAfter(r,a)}function Uh(r,a){return this.isSame(r,a)||this.isBefore(r,a)}function Vh(r,a,f){var y,S,E;if(!this.isValid())return NaN;if(y=vu(r,this),!y.isValid())return NaN;switch(S=(y.utcOffset()-this.utcOffset())*6e4,a=an(a),a){case"year":E=Sl(this,y)/12;break;case"month":E=Sl(this,y);break;case"quarter":E=Sl(this,y)/3;break;case"second":E=(this-y)/1e3;break;case"minute":E=(this-y)/6e4;break;case"hour":E=(this-y)/36e5;break;case"day":E=(this-y-S)/864e5;break;case"week":E=(this-y-S)/6048e5;break;default:E=this-y}return f?E:pn(E)}function Sl(r,a){if(r.date()<a.date())return-Sl(a,r);var f=(a.year()-r.year())*12+(a.month()-r.month()),y=r.clone().add(f,"months"),S,E;return a-y<0?(S=r.clone().add(f-1,"months"),E=(a-y)/(y-S)):(S=r.clone().add(f+1,"months"),E=(a-y)/(S-y)),-(f+E)||0}t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Gh(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Cl(r){if(!this.isValid())return null;var a=r!==!0,f=a?this.clone().utc():this;return f.year()<0||f.year()>9999?Ue(f,a?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Q(Date.prototype.toISOString)?a?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Ue(f,"Z")):Ue(f,a?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Wd(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var r="moment",a="",f,y,S,E;return this.isLocal()||(r=this.utcOffset()===0?"moment.utc":"moment.parseZone",a="Z"),f="["+r+'("]',y=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",S="-MM-DD[T]HH:mm:ss.SSS",E=a+'[")]',this.format(f+y+S+E)}function wa(r){r||(r=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var a=Ue(this,r);return this.localeData().postformat(a)}function $h(r,a){return this.isValid()&&(R(r)&&r.isValid()||en(r).isValid())?vo({to:this,from:r}).locale(this.locale()).humanize(!a):this.localeData().invalidDate()}function Bd(r){return this.from(en(),r)}function Du(r,a){return this.isValid()&&(R(r)&&r.isValid()||en(r).isValid())?vo({from:this,to:r}).locale(this.locale()).humanize(!a):this.localeData().invalidDate()}function Iu(r){return this.to(en(),r)}function Tu(r){var a;return r===void 0?this._locale._abbr:(a=Ar(r),a!=null&&(this._locale=a),this)}var Hd=W("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(r){return r===void 0?this.localeData():this.locale(r)});function Au(){return this._locale}var zd=1e3,Qs=60*zd,vs=60*Qs,Pu=(365*400+97)*24*vs;function ei(r,a){return(r%a+a)%a}function Kh(r,a,f){return r<100&&r>=0?new Date(r+400,a,f)-Pu:new Date(r,a,f).valueOf()}function kl(r,a,f){return r<100&&r>=0?Date.UTC(r+400,a,f)-Pu:Date.UTC(r,a,f)}function ti(r){var a,f;if(r=an(r),r===void 0||r==="millisecond"||!this.isValid())return this;switch(f=this._isUTC?kl:Kh,r){case"year":a=f(this.year(),0,1);break;case"quarter":a=f(this.year(),this.month()-this.month()%3,1);break;case"month":a=f(this.year(),this.month(),1);break;case"week":a=f(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":a=f(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":a=f(this.year(),this.month(),this.date());break;case"hour":a=this._d.valueOf(),a-=ei(a+(this._isUTC?0:this.utcOffset()*Qs),vs);break;case"minute":a=this._d.valueOf(),a-=ei(a,Qs);break;case"second":a=this._d.valueOf(),a-=ei(a,zd);break}return this._d.setTime(a),t.updateOffset(this,!0),this}function Ud(r){var a,f;if(r=an(r),r===void 0||r==="millisecond"||!this.isValid())return this;switch(f=this._isUTC?kl:Kh,r){case"year":a=f(this.year()+1,0,1)-1;break;case"quarter":a=f(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":a=f(this.year(),this.month()+1,1)-1;break;case"week":a=f(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":a=f(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":a=f(this.year(),this.month(),this.date()+1)-1;break;case"hour":a=this._d.valueOf(),a+=vs-ei(a+(this._isUTC?0:this.utcOffset()*Qs),vs)-1;break;case"minute":a=this._d.valueOf(),a+=Qs-ei(a,Qs)-1;break;case"second":a=this._d.valueOf(),a+=zd-ei(a,zd)-1;break}return this._d.setTime(a),t.updateOffset(this,!0),this}function va(){return this._d.valueOf()-(this._offset||0)*6e4}function qh(){return Math.floor(this.valueOf()/1e3)}function Ai(){return new Date(this.valueOf())}function Ml(){var r=this;return[r.year(),r.month(),r.date(),r.hour(),r.minute(),r.second(),r.millisecond()]}function xa(){var r=this;return{years:r.year(),months:r.month(),date:r.date(),hours:r.hours(),minutes:r.minutes(),seconds:r.seconds(),milliseconds:r.milliseconds()}}function Vd(){return this.isValid()?this.toISOString():null}function Jh(){return L(this)}function Ru(){return _({},C(this))}function ba(){return C(this).overflow}function ni(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}te("N",0,0,"eraAbbr"),te("NN",0,0,"eraAbbr"),te("NNN",0,0,"eraAbbr"),te("NNNN",0,0,"eraName"),te("NNNNN",0,0,"eraNarrow"),te("y",["y",1],"yo","eraYear"),te("y",["yy",2],0,"eraYear"),te("y",["yyy",3],0,"eraYear"),te("y",["yyyy",4],0,"eraYear"),Ie("N",$d),Ie("NN",$d),Ie("NNN",$d),Ie("NNNN",Kd),Ie("NNNNN",Xh),_t(["N","NN","NNN","NNNN","NNNNN"],function(r,a,f,y){var S=f._locale.erasParse(r,y,f._strict);S?C(f).era=S:C(f).invalidEra=r}),Ie("y",sr),Ie("yy",sr),Ie("yyy",sr),Ie("yyyy",sr),Ie("yo",Fu),_t(["y","yy","yyy","yyyy"],ln),_t(["yo"],function(r,a,f,y){var S;f._locale._eraYearOrdinalRegex&&(S=r.match(f._locale._eraYearOrdinalRegex)),f._locale.eraYearOrdinalParse?a[ln]=f._locale.eraYearOrdinalParse(r,S):a[ln]=parseInt(r,10)});function nn(r,a){var f,y,S,E=this._eras||Ar("en")._eras;for(f=0,y=E.length;f<y;++f){switch(typeof E[f].since){case"string":S=t(E[f].since).startOf("day"),E[f].since=S.valueOf();break}switch(typeof E[f].until){case"undefined":E[f].until=1/0;break;case"string":S=t(E[f].until).startOf("day").valueOf(),E[f].until=S.valueOf();break}}return E}function dn(r,a,f){var y,S,E=this.eras(),O,q,ae;for(r=r.toUpperCase(),y=0,S=E.length;y<S;++y)if(O=E[y].name.toUpperCase(),q=E[y].abbr.toUpperCase(),ae=E[y].narrow.toUpperCase(),f)switch(a){case"N":case"NN":case"NNN":if(q===r)return E[y];break;case"NNNN":if(O===r)return E[y];break;case"NNNNN":if(ae===r)return E[y];break}else if([O,q,ae].indexOf(r)>=0)return E[y]}function ri(r,a){var f=r.since<=r.until?1:-1;return a===void 0?t(r.since).year():t(r.since).year()+(a-r.offset)*f}function zn(){var r,a,f,y=this.localeData().eras();for(r=0,a=y.length;r<a;++r)if(f=this.clone().startOf("day").valueOf(),y[r].since<=f&&f<=y[r].until||y[r].until<=f&&f<=y[r].since)return y[r].name;return""}function yr(){var r,a,f,y=this.localeData().eras();for(r=0,a=y.length;r<a;++r)if(f=this.clone().startOf("day").valueOf(),y[r].since<=f&&f<=y[r].until||y[r].until<=f&&f<=y[r].since)return y[r].narrow;return""}function Pi(){var r,a,f,y=this.localeData().eras();for(r=0,a=y.length;r<a;++r)if(f=this.clone().startOf("day").valueOf(),y[r].since<=f&&f<=y[r].until||y[r].until<=f&&f<=y[r].since)return y[r].abbr;return""}function Sa(){var r,a,f,y,S=this.localeData().eras();for(r=0,a=S.length;r<a;++r)if(f=S[r].since<=S[r].until?1:-1,y=this.clone().startOf("day").valueOf(),S[r].since<=y&&y<=S[r].until||S[r].until<=y&&y<=S[r].since)return(this.year()-t(S[r].since).year())*f+S[r].offset;return this.year()}function wr(r){return u(this,"_erasNameRegex")||xs.call(this),r?this._erasNameRegex:this._erasRegex}function Gd(r){return u(this,"_erasAbbrRegex")||xs.call(this),r?this._erasAbbrRegex:this._erasRegex}function Zh(r){return u(this,"_erasNarrowRegex")||xs.call(this),r?this._erasNarrowRegex:this._erasRegex}function $d(r,a){return a.erasAbbrRegex(r)}function Kd(r,a){return a.erasNameRegex(r)}function Xh(r,a){return a.erasNarrowRegex(r)}function Fu(r,a){return a._eraYearOrdinalRegex||sr}function xs(){var r=[],a=[],f=[],y=[],S,E,O,q,ae,Se=this.eras();for(S=0,E=Se.length;S<E;++S)O=Er(Se[S].name),q=Er(Se[S].abbr),ae=Er(Se[S].narrow),a.push(O),r.push(q),f.push(ae),y.push(O),y.push(q),y.push(ae);this._erasRegex=new RegExp("^("+y.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+a.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+f.join("|")+")","i")}te(0,["gg",2],0,function(){return this.weekYear()%100}),te(0,["GG",2],0,function(){return this.isoWeekYear()%100});function qd(r,a){te(0,[r,r.length],0,a)}qd("gggg","weekYear"),qd("ggggg","weekYear"),qd("GGGG","isoWeekYear"),qd("GGGGG","isoWeekYear"),Ie("G",go),Ie("g",go),Ie("GG",Pt,Ft),Ie("gg",Pt,Ft),Ie("GGGG",gt,or),Ie("gggg",gt,or),Ie("GGGGG",Bt,$o),Ie("ggggg",Bt,$o),yo(["gggg","ggggg","GGGG","GGGGG"],function(r,a,f,y){a[y.substr(0,2)]=Qe(r)}),yo(["gg","GG"],function(r,a,f,y){a[y]=t.parseTwoDigitYear(r)});function Nu(r){return jl.call(this,r,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Ou(r){return jl.call(this,r,this.isoWeek(),this.isoWeekday(),1,4)}function Xg(){return ws(this.year(),1,4)}function Qh(){return ws(this.isoWeekYear(),1,4)}function Yu(){var r=this.localeData()._week;return ws(this.year(),r.dow,r.doy)}function Qg(){var r=this.localeData()._week;return ws(this.weekYear(),r.dow,r.doy)}function jl(r,a,f,y,S){var E;return r==null?ca(this,y,S).year:(E=ws(r,y,S),a>E&&(a=E),em.call(this,r,a,f,y,S))}function em(r,a,f,y,S){var E=pl(r,a,f,y,S),O=Zs(E.year,0,E.dayOfYear);return this.year(O.getUTCFullYear()),this.month(O.getUTCMonth()),this.date(O.getUTCDate()),this}te("Q",0,"Qo","quarter"),Ie("Q",rr),_t("Q",function(r,a){a[ir]=(Qe(r)-1)*3});function tm(r){return r==null?Math.ceil((this.month()+1)/3):this.month((r-1)*3+this.month()%3)}te("D",["DD",2],"Do","date"),Ie("D",Pt,_o),Ie("DD",Pt,Ft),Ie("Do",function(r,a){return r?a._dayOfMonthOrdinalParse||a._ordinalParse:a._dayOfMonthOrdinalParseLenient}),_t(["D","DD"],Dr),_t("Do",function(r,a){a[Dr]=Qe(r.match(Pt)[0])});var Wu=Zo("Date",!0);te("DDD",["DDDD",3],"DDDo","dayOfYear"),Ie("DDD",Ae),Ie("DDDD",Go),_t(["DDD","DDDD"],function(r,a,f){f._dayOfYear=Qe(r)});function nm(r){var a=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return r==null?a:this.add(r-a,"d")}te("m",["mm",2],0,"minute"),Ie("m",Pt,Mi),Ie("mm",Pt,Ft),_t(["m","mm"],ar);var Bu=Zo("Minutes",!1);te("s",["ss",2],0,"second"),Ie("s",Pt,Mi),Ie("ss",Pt,Ft),_t(["s","ss"],lr);var e_=Zo("Seconds",!1);te("S",0,0,function(){return~~(this.millisecond()/100)}),te(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),te(0,["SSS",3],0,"millisecond"),te(0,["SSSS",4],0,function(){return this.millisecond()*10}),te(0,["SSSSS",5],0,function(){return this.millisecond()*100}),te(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),te(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),te(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),te(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),Ie("S",Ae,rr),Ie("SS",Ae,Ft),Ie("SSS",Ae,Go);var Un,Ll;for(Un="SSSS";Un.length<=9;Un+="S")Ie(Un,sr);function Hu(r,a){a[wo]=Qe(("0."+r)*1e3)}for(Un="S";Un.length<=9;Un+="S")_t(Un,Hu);Ll=Zo("Milliseconds",!1),te("z",0,0,"zoneAbbr"),te("zz",0,0,"zoneName");function rm(){return this._isUTC?"UTC":""}function Vn(){return this._isUTC?"Coordinated Universal Time":""}var Ce=I.prototype;Ce.add=Mu,Ce.calendar=Eu,Ce.clone=bl,Ce.diff=Vh,Ce.endOf=Ud,Ce.format=wa,Ce.from=$h,Ce.fromNow=Bd,Ce.to=Du,Ce.toNow=Iu,Ce.get=il,Ce.invalidAt=ba,Ce.isAfter=Zg,Ce.isBefore=Bh,Ce.isBetween=Hh,Ce.isSame=tn,Ce.isSameOrAfter=zh,Ce.isSameOrBefore=Uh,Ce.isValid=Jh,Ce.lang=Hd,Ce.locale=Tu,Ce.localeData=Au,Ce.max=_u,Ce.min=zg,Ce.parsingFlags=Ru,Ce.set=kd,Ce.startOf=ti,Ce.subtract=Jg,Ce.toArray=Ml,Ce.toObject=xa,Ce.toDate=Ai,Ce.toISOString=Cl,Ce.inspect=Wd,typeof Symbol<"u"&&Symbol.for!=null&&(Ce[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Ce.toJSON=Vd,Ce.toString=Gh,Ce.unix=qh,Ce.valueOf=va,Ce.creationData=ni,Ce.eraName=zn,Ce.eraNarrow=yr,Ce.eraAbbr=Pi,Ce.eraYear=Sa,Ce.year=ia,Ce.isLeapYear=aa,Ce.weekYear=Nu,Ce.isoWeekYear=Ou,Ce.quarter=Ce.quarters=tm,Ce.month=jt,Ce.daysInMonth=wn,Ce.week=Ce.weeks=su,Ce.isoWeek=Ce.isoWeeks=fh,Ce.weeksInYear=Yu,Ce.weeksInWeekYear=Qg,Ce.isoWeeksInYear=Xg,Ce.isoWeeksInISOWeekYear=Qh,Ce.date=Wu,Ce.day=Ce.days=ml,Ce.weekday=wh,Ce.isoWeekday=Dd,Ce.dayOfYear=nm,Ce.hour=Ce.hours=jg,Ce.minute=Ce.minutes=Bu,Ce.second=Ce.seconds=e_,Ce.millisecond=Ce.milliseconds=Ll,Ce.utcOffset=Vg,Ce.utc=xu,Ce.local=bu,Ce.parseZone=Ph,Ce.hasAlignedHourOffset=Rh,Ce.isDST=Fh,Ce.isLocal=$g,Ce.isUtcOffset=Kg,Ce.isUtc=Nh,Ce.isUTC=Nh,Ce.zoneAbbr=rm,Ce.zoneName=Vn,Ce.dates=W("dates accessor is deprecated. Use date instead.",Wu),Ce.months=W("months accessor is deprecated. Use month instead",jt),Ce.years=W("years accessor is deprecated. Use year instead",ia),Ce.zone=W("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Ah),Ce.isDSTShifted=W("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Gg);function om(r){return en(r*1e3)}function Ri(){return en.apply(null,arguments).parseZone()}function Ca(r){return r}var lt=X.prototype;lt.calendar=le,lt.longDateFormat=ht,lt.invalidDate=je,lt.ordinal=At,lt.preparse=Ca,lt.postformat=Ca,lt.relativeTime=Wt,lt.pastFuture=Xt,lt.set=B,lt.eras=nn,lt.erasParse=dn,lt.erasConvertYear=ri,lt.erasAbbrRegex=Gd,lt.erasNameRegex=wr,lt.erasNarrowRegex=Zh,lt.months=Ir,lt.monthsShort=Xo,lt.monthsParse=at,lt.monthsRegex=Li,lt.monthsShortRegex=Tr,lt.week=hl,lt.firstDayOfYear=ua,lt.firstDayOfWeek=jd,lt.weekdays=bg,lt.weekdaysMin=pa,lt.weekdaysShort=qt,lt.weekdaysParse=Cg,lt.weekdaysRegex=ha,lt.weekdaysShortRegex=du,lt.weekdaysMinRegex=Id,lt.isPM=Mg,lt.meridiem=Lg;function El(r,a,f,y){var S=Ar(),E=v().set(y,a);return S[f](E,r)}function sm(r,a,f){if(w(r)&&(a=r,r=void 0),r=r||"",a!=null)return El(r,a,f,"month");var y,S=[];for(y=0;y<12;y++)S[y]=El(r,y,f,"month");return S}function Pr(r,a,f,y){typeof r=="boolean"?(w(a)&&(f=a,a=void 0),a=a||""):(a=r,f=a,r=!1,w(a)&&(f=a,a=void 0),a=a||"");var S=Ar(),E=r?S._week.dow:0,O,q=[];if(f!=null)return El(a,(f+E)%7,y,"day");for(O=0;O<7;O++)q[O]=El(a,(O+E)%7,y,"day");return q}function Jd(r,a){return sm(r,a,"months")}function Zd(r,a){return sm(r,a,"monthsShort")}function ka(r,a,f){return Pr(r,a,f,"weekdays")}function Xd(r,a,f){return Pr(r,a,f,"weekdaysShort")}function zu(r,a,f){return Pr(r,a,f,"weekdaysMin")}vn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(r){var a=r%10,f=Qe(r%100/10)===1?"th":a===1?"st":a===2?"nd":a===3?"rd":"th";return r+f}}),t.lang=W("moment.lang is deprecated. Use moment.locale instead.",vn),t.langData=W("moment.langData is deprecated. Use moment.localeData instead.",Ar);var bo=Math.abs;function im(){var r=this._data;return this._milliseconds=bo(this._milliseconds),this._days=bo(this._days),this._months=bo(this._months),r.milliseconds=bo(r.milliseconds),r.seconds=bo(r.seconds),r.minutes=bo(r.minutes),r.hours=bo(r.hours),r.months=bo(r.months),r.years=bo(r.years),this}function Fi(r,a,f,y){var S=vo(a,f);return r._milliseconds+=y*S._milliseconds,r._days+=y*S._days,r._months+=y*S._months,r._bubble()}function so(r,a){return Fi(this,r,a,1)}function oi(r,a){return Fi(this,r,a,-1)}function Qd(r){return r<0?Math.floor(r):Math.ceil(r)}function am(){var r=this._milliseconds,a=this._days,f=this._months,y=this._data,S,E,O,q,ae;return r>=0&&a>=0&&f>=0||r<=0&&a<=0&&f<=0||(r+=Qd(ts(f)+a)*864e5,a=0,f=0),y.milliseconds=r%1e3,S=pn(r/1e3),y.seconds=S%60,E=pn(S/60),y.minutes=E%60,O=pn(E/60),y.hours=O%24,a+=pn(O/24),ae=pn(bs(a)),f+=ae,a-=Qd(ts(ae)),q=pn(f/12),f%=12,y.days=a,y.months=f,y.years=q,this}function bs(r){return r*4800/146097}function ts(r){return r*146097/4800}function lm(r){if(!this.isValid())return NaN;var a,f,y=this._milliseconds;if(r=an(r),r==="month"||r==="quarter"||r==="year")switch(a=this._days+y/864e5,f=this._months+bs(a),r){case"month":return f;case"quarter":return f/3;case"year":return f/12}else switch(a=this._days+Math.round(ts(this._months)),r){case"week":return a/7+y/6048e5;case"day":return a+y/864e5;case"hour":return a*24+y/36e5;case"minute":return a*1440+y/6e4;case"second":return a*86400+y/1e3;case"millisecond":return Math.floor(a*864e5)+y;default:throw new Error("Unknown unit "+r)}}function Rr(r){return function(){return this.as(r)}}var Uu=Rr("ms"),dm=Rr("s"),ec=Rr("m"),tc=Rr("h"),cm=Rr("d"),um=Rr("w"),pm=Rr("M"),Vu=Rr("Q"),nc=Rr("y"),Dl=Uu;function rc(){return vo(this)}function hm(r){return r=an(r),this.isValid()?this[r+"s"]():NaN}function ns(r){return function(){return this.isValid()?this._data[r]:NaN}}var mm=ns("milliseconds"),Il=ns("seconds"),rs=ns("minutes"),Tl=ns("hours"),Al=ns("days"),Ni=ns("months"),Gu=ns("years");function Ma(){return pn(this.days()/7)}var os=Math.round,si={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function cn(r,a,f,y,S){return S.relativeTime(a||1,!!f,r,y)}function oc(r,a,f,y){var S=vo(r).abs(),E=os(S.as("s")),O=os(S.as("m")),q=os(S.as("h")),ae=os(S.as("d")),Se=os(S.as("M")),He=os(S.as("w")),xe=os(S.as("y")),Pe=E<=f.ss&&["s",E]||E<f.s&&["ss",E]||O<=1&&["m"]||O<f.m&&["mm",O]||q<=1&&["h"]||q<f.h&&["hh",q]||ae<=1&&["d"]||ae<f.d&&["dd",ae];return f.w!=null&&(Pe=Pe||He<=1&&["w"]||He<f.w&&["ww",He]),Pe=Pe||Se<=1&&["M"]||Se<f.M&&["MM",Se]||xe<=1&&["y"]||["yy",xe],Pe[2]=a,Pe[3]=+r>0,Pe[4]=y,cn.apply(null,Pe)}function Ss(r){return r===void 0?os:typeof r=="function"?(os=r,!0):!1}function ii(r,a){return si[r]===void 0?!1:a===void 0?si[r]:(si[r]=a,r==="s"&&(si.ss=a-1),!0)}function ss(r,a){if(!this.isValid())return this.localeData().invalidDate();var f=!1,y=si,S,E;return typeof r=="object"&&(a=r,r=!1),typeof r=="boolean"&&(f=r),typeof a=="object"&&(y=Object.assign({},si,a),a.s!=null&&a.ss==null&&(y.ss=a.s-1)),S=this.localeData(),E=oc(this,!f,y,S),f&&(E=S.pastFuture(+this,E)),S.postformat(E)}var sc=Math.abs;function Oi(r){return(r>0)-(r<0)||+r}function ja(){if(!this.isValid())return this.localeData().invalidDate();var r=sc(this._milliseconds)/1e3,a=sc(this._days),f=sc(this._months),y,S,E,O,q=this.asSeconds(),ae,Se,He,xe;return q?(y=pn(r/60),S=pn(y/60),r%=60,y%=60,E=pn(f/12),f%=12,O=r?r.toFixed(3).replace(/\.?0+$/,""):"",ae=q<0?"-":"",Se=Oi(this._months)!==Oi(q)?"-":"",He=Oi(this._days)!==Oi(q)?"-":"",xe=Oi(this._milliseconds)!==Oi(q)?"-":"",ae+"P"+(E?Se+E+"Y":"")+(f?Se+f+"M":"")+(a?He+a+"D":"")+(S||y||r?"T":"")+(S?xe+S+"H":"")+(y?xe+y+"M":"")+(r?xe+O+"S":"")):"P0D"}var yt=Od.prototype;yt.isValid=Ih,yt.abs=im,yt.add=so,yt.subtract=oi,yt.as=lm,yt.asMilliseconds=Uu,yt.asSeconds=dm,yt.asMinutes=ec,yt.asHours=tc,yt.asDays=cm,yt.asWeeks=um,yt.asMonths=pm,yt.asQuarters=Vu,yt.asYears=nc,yt.valueOf=Dl,yt._bubble=am,yt.clone=rc,yt.get=hm,yt.milliseconds=mm,yt.seconds=Il,yt.minutes=rs,yt.hours=Tl,yt.days=Al,yt.weeks=Ma,yt.months=Ni,yt.years=Gu,yt.humanize=ss,yt.toISOString=ja,yt.toString=ja,yt.toJSON=ja,yt.locale=Tu,yt.localeData=Au,yt.toIsoString=W("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ja),yt.lang=Hd,te("X",0,0,"unix"),te("x",0,0,"valueOf"),Ie("x",go),Ie("X",sl),_t("X",function(r,a,f){f._d=new Date(parseFloat(r)*1e3)}),_t("x",function(r,a,f){f._d=new Date(Qe(r))});//! moment.js
t.version="2.30.1",i(en),t.fn=Ce,t.min=Ug,t.max=Lh,t.now=Eh,t.utc=v,t.unix=om,t.months=Jd,t.isDate=m,t.locale=vn,t.invalid=T,t.duration=vo,t.isMoment=R,t.weekdays=ka,t.parseZone=Ri,t.localeData=Ar,t.isDuration=Yd,t.monthsShort=Zd,t.weekdaysMin=zu,t.defineLocale=Xs,t.updateLocale=pu,t.locales=Eg,t.weekdaysShort=Xd,t.normalizeUnits=an,t.relativeTimeRounding=Ss,t.relativeTimeThreshold=ii,t.calendarFormat=Wh,t.prototype=Ce,t.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};//! moment.js locale configuration
t.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(r){return/^nm$/i.test(r)},meridiem:function(r,a,f){return r<12?f?"vm":"VM":f?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(r){return r+(r===1||r===8||r>=20?"ste":"de")},week:{dow:1,doy:4}});//! moment.js locale configuration
var Pl=function(r){return r===0?0:r===1?1:r===2?2:r%100>=3&&r%100<=10?3:r%100>=11?4:5},$u={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},Tn=function(r){return function(a,f,y,S){var E=Pl(a),O=$u[r][Pl(a)];return E===2&&(O=O[f?0:1]),O.replace(/%d/i,a)}},ic=["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];t.defineLocale("ar-dz",{months:ic,monthsShort:ic,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(r){return r==="م"},meridiem:function(r,a,f){return r<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:Tn("s"),ss:Tn("s"),m:Tn("m"),mm:Tn("m"),h:Tn("h"),hh:Tn("h"),d:Tn("d"),dd:Tn("d"),M:Tn("M"),MM:Tn("M"),y:Tn("y"),yy:Tn("y")},postformat:function(r){return r.replace(/,/g,"،")},week:{dow:0,doy:4}});//! moment.js locale configuration
t.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}});//! moment.js locale configuration
var Rl={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},Fr=function(r){return r===0?0:r===1?1:r===2?2:r%100>=3&&r%100<=10?3:r%100>=11?4:5},Fl={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},Dt=function(r){return function(a,f,y,S){var E=Fr(a),O=Fl[r][Fr(a)];return E===2&&(O=O[f?0:1]),O.replace(/%d/i,a)}},An=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];t.defineLocale("ar-ly",{months:An,monthsShort:An,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(r){return r==="م"},meridiem:function(r,a,f){return r<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:Dt("s"),ss:Dt("s"),m:Dt("m"),mm:Dt("m"),h:Dt("h"),hh:Dt("h"),d:Dt("d"),dd:Dt("d"),M:Dt("M"),MM:Dt("M"),y:Dt("y"),yy:Dt("y")},preparse:function(r){return r.replace(/،/g,",")},postformat:function(r){return r.replace(/\d/g,function(a){return Rl[a]}).replace(/,/g,"،")},week:{dow:6,doy:12}});//! moment.js locale configuration
t.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}});//! moment.js locale configuration
var Pn={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},Nl={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};t.defineLocale("ar-ps",{months:"كانون الثاني_شباط_آذار_نيسان_أيّار_حزيران_تمّوز_آب_أيلول_تشري الأوّل_تشرين الثاني_كانون الأوّل".split("_"),monthsShort:"ك٢_شباط_آذار_نيسان_أيّار_حزيران_تمّوز_آب_أيلول_ت١_ت٢_ك١".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(r){return r==="م"},meridiem:function(r,a,f){return r<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(r){return r.replace(/[٣٤٥٦٧٨٩٠]/g,function(a){return Nl[a]}).split("").reverse().join("").replace(/[١٢](?![\u062a\u0643])/g,function(a){return Nl[a]}).split("").reverse().join("").replace(/،/g,",")},postformat:function(r){return r.replace(/\d/g,function(a){return Pn[a]}).replace(/,/g,"،")},week:{dow:0,doy:6}});//! moment.js locale configuration
var Ol={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},vr={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};t.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(r){return r==="م"},meridiem:function(r,a,f){return r<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(r){return r.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(a){return vr[a]}).replace(/،/g,",")},postformat:function(r){return r.replace(/\d/g,function(a){return Ol[a]}).replace(/,/g,"،")},week:{dow:0,doy:6}});//! moment.js locale configuration
t.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}});//! moment.js locale configuration
var Ku={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},qu={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},ai=function(r){return r===0?0:r===1?1:r===2?2:r%100>=3&&r%100<=10?3:r%100>=11?4:5},Yi={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},hn=function(r){return function(a,f,y,S){var E=ai(a),O=Yi[r][ai(a)];return E===2&&(O=O[f?0:1]),O.replace(/%d/i,a)}},La=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];t.defineLocale("ar",{months:La,monthsShort:La,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(r){return r==="م"},meridiem:function(r,a,f){return r<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:hn("s"),ss:hn("s"),m:hn("m"),mm:hn("m"),h:hn("h"),hh:hn("h"),d:hn("d"),dd:hn("d"),M:hn("M"),MM:hn("M"),y:hn("y"),yy:hn("y")},preparse:function(r){return r.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(a){return qu[a]}).replace(/،/g,",")},postformat:function(r){return r.replace(/\d/g,function(a){return Ku[a]}).replace(/,/g,"،")},week:{dow:6,doy:12}});//! moment.js locale configuration
var Wi={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};t.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"bir neçə saniyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(r){return/^(gündüz|axşam)$/.test(r)},meridiem:function(r,a,f){return r<4?"gecə":r<12?"səhər":r<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(r){if(r===0)return r+"-ıncı";var a=r%10,f=r%100-a,y=r>=100?100:null;return r+(Wi[a]||Wi[f]||Wi[y])},week:{dow:1,doy:7}});//! moment.js locale configuration
function fm(r,a){var f=r.split("_");return a%10===1&&a%100!==11?f[0]:a%10>=2&&a%10<=4&&(a%100<10||a%100>=20)?f[1]:f[2]}function li(r,a,f){var y={ss:a?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:a?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:a?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"};return f==="m"?a?"хвіліна":"хвіліну":f==="h"?a?"гадзіна":"гадзіну":r+" "+fm(y[f],+r)}t.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:li,mm:li,h:li,hh:li,d:"дзень",dd:li,M:"месяц",MM:li,y:"год",yy:li},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(r){return/^(дня|вечара)$/.test(r)},meridiem:function(r,a,f){return r<4?"ночы":r<12?"раніцы":r<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(r,a){switch(a){case"M":case"d":case"DDD":case"w":case"W":return(r%10===2||r%10===3)&&r%100!==12&&r%100!==13?r+"-і":r+"-ы";case"D":return r+"-га";default:return r}},week:{dow:1,doy:7}});//! moment.js locale configuration
t.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Миналата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[Миналия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",w:"седмица",ww:"%d седмици",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(r){var a=r%10,f=r%100;return r===0?r+"-ев":f===0?r+"-ен":f>10&&f<20?r+"-ти":a===1?r+"-ви":a===2?r+"-ри":a===7||a===8?r+"-ми":r+"-ти"},week:{dow:1,doy:7}});//! moment.js locale configuration
t.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},calendar:{sameDay:"[Bi lɛrɛ] LT",nextDay:"[Sini lɛrɛ] LT",nextWeek:"dddd [don lɛrɛ] LT",lastDay:"[Kunu lɛrɛ] LT",lastWeek:"dddd [tɛmɛnen lɛrɛ] LT",sameElse:"L"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}});//! moment.js locale configuration
var gm={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},Yl={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};t.defineLocale("bn-bd",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(r){return r.replace(/[১২৩৪৫৬৭৮৯০]/g,function(a){return Yl[a]})},postformat:function(r){return r.replace(/\d/g,function(a){return gm[a]})},meridiemParse:/রাত|ভোর|সকাল|দুপুর|বিকাল|সন্ধ্যা|রাত/,meridiemHour:function(r,a){if(r===12&&(r=0),a==="রাত")return r<4?r:r+12;if(a==="ভোর")return r;if(a==="সকাল")return r;if(a==="দুপুর")return r>=3?r:r+12;if(a==="বিকাল")return r+12;if(a==="সন্ধ্যা")return r+12},meridiem:function(r,a,f){return r<4?"রাত":r<6?"ভোর":r<12?"সকাল":r<15?"দুপুর":r<18?"বিকাল":r<20?"সন্ধ্যা":"রাত"},week:{dow:0,doy:6}});//! moment.js locale configuration
var ac={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},_m={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};t.defineLocale("bn",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(r){return r.replace(/[১২৩৪৫৬৭৮৯০]/g,function(a){return _m[a]})},postformat:function(r){return r.replace(/\d/g,function(a){return ac[a]})},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(r,a){return r===12&&(r=0),a==="রাত"&&r>=4||a==="দুপুর"&&r<5||a==="বিকাল"?r+12:r},meridiem:function(r,a,f){return r<4?"রাত":r<10?"সকাল":r<17?"দুপুর":r<20?"বিকাল":"রাত"},week:{dow:0,doy:6}});//! moment.js locale configuration
var lc={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},Ju={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};t.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12".split("_"),monthsShortRegex:/^(ཟླ་\d{1,2})/,monthsParseExact:!0,weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(r){return r.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,function(a){return Ju[a]})},postformat:function(r){return r.replace(/\d/g,function(a){return lc[a]})},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(r,a){return r===12&&(r=0),a==="མཚན་མོ"&&r>=4||a==="ཉིན་གུང"&&r<5||a==="དགོང་དག"?r+12:r},meridiem:function(r,a,f){return r<4?"མཚན་མོ":r<10?"ཞོགས་ཀས":r<17?"ཉིན་གུང":r<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}});//! moment.js locale configuration
function Wl(r,a,f){var y={mm:"munutenn",MM:"miz",dd:"devezh"};return r+" "+wm(y[f],r)}function ym(r){switch(Bl(r)){case 1:case 3:case 4:case 5:case 9:return r+" bloaz";default:return r+" vloaz"}}function Bl(r){return r>9?Bl(r%10):r}function wm(r,a){return a===2?vm(r):r}function vm(r){var a={m:"v",b:"v",d:"z"};return a[r.charAt(0)]===void 0?r:a[r.charAt(0)]+r.substring(1)}var dc=[/^gen/i,/^c[ʼ\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],cc=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,xm=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,bm=/^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,t_=[/^sul/i,/^lun/i,/^meurzh/i,/^merc[ʼ\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],Zu=[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],Hl=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];t.defineLocale("br",{months:"Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:Hl,fullWeekdaysParse:t_,shortWeekdaysParse:Zu,minWeekdaysParse:Hl,monthsRegex:cc,monthsShortRegex:cc,monthsStrictRegex:xm,monthsShortStrictRegex:bm,monthsParse:dc,longMonthsParse:dc,shortMonthsParse:dc,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warcʼhoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Decʼh da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s ʼzo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:Wl,h:"un eur",hh:"%d eur",d:"un devezh",dd:Wl,M:"ur miz",MM:Wl,y:"ur bloaz",yy:ym},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(r){var a=r===1?"añ":"vet";return r+a},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(r){return r==="g.m."},meridiem:function(r,a,f){return r<12?"a.m.":"g.m."}});//! moment.js locale configuration
function n_(r,a,f,y){switch(f){case"m":return a?"jedna minuta":y?"jednu minutu":"jedne minute"}}function Bi(r,a,f){var y=r+" ";switch(f){case"ss":return r===1?y+="sekunda":r===2||r===3||r===4?y+="sekunde":y+="sekundi",y;case"mm":return r===1?y+="minuta":r===2||r===3||r===4?y+="minute":y+="minuta",y;case"h":return"jedan sat";case"hh":return r===1?y+="sat":r===2||r===3||r===4?y+="sata":y+="sati",y;case"dd":return r===1?y+="dan":y+="dana",y;case"MM":return r===1?y+="mjesec":r===2||r===3||r===4?y+="mjeseca":y+="mjeseci",y;case"yy":return r===1?y+="godina":r===2||r===3||r===4?y+="godine":y+="godina",y}}t.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:Bi,m:n_,mm:Bi,h:Bi,hh:Bi,d:"dan",dd:Bi,M:"mjesec",MM:Bi,y:"godinu",yy:Bi},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});//! moment.js locale configuration
t.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(this.hours()!==1?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(this.hours()!==1?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(this.hours()!==1?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(this.hours()!==1?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(this.hours()!==1?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(r,a){var f=r===1?"r":r===2?"n":r===3?"r":r===4?"t":"è";return(a==="w"||a==="W")&&(f="a"),r+f},week:{dow:1,doy:4}});//! moment.js locale configuration
var r_={standalone:"leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),format:"ledna_února_března_dubna_května_června_července_srpna_září_října_listopadu_prosince".split("_"),isFormat:/DD?[o.]?(\[[^\[\]]*\]|\s)+MMMM/},o_="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),Nr=[/^led/i,/^úno/i,/^bře/i,/^dub/i,/^kvě/i,/^(čvn|červen$|června)/i,/^(čvc|červenec|července)/i,/^srp/i,/^zář/i,/^říj/i,/^lis/i,/^pro/i],dr=/^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;function Hi(r){return r>1&&r<5&&~~(r/10)!==1}function Or(r,a,f,y){var S=r+" ";switch(f){case"s":return a||y?"pár sekund":"pár sekundami";case"ss":return a||y?S+(Hi(r)?"sekundy":"sekund"):S+"sekundami";case"m":return a?"minuta":y?"minutu":"minutou";case"mm":return a||y?S+(Hi(r)?"minuty":"minut"):S+"minutami";case"h":return a?"hodina":y?"hodinu":"hodinou";case"hh":return a||y?S+(Hi(r)?"hodiny":"hodin"):S+"hodinami";case"d":return a||y?"den":"dnem";case"dd":return a||y?S+(Hi(r)?"dny":"dní"):S+"dny";case"M":return a||y?"měsíc":"měsícem";case"MM":return a||y?S+(Hi(r)?"měsíce":"měsíců"):S+"měsíci";case"y":return a||y?"rok":"rokem";case"yy":return a||y?S+(Hi(r)?"roky":"let"):S+"lety"}}t.defineLocale("cs",{months:r_,monthsShort:o_,monthsRegex:dr,monthsShortRegex:dr,monthsStrictRegex:/^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,monthsParse:Nr,longMonthsParse:Nr,shortMonthsParse:Nr,weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:Or,ss:Or,m:Or,mm:Or,h:Or,hh:Or,d:Or,dd:Or,M:Or,MM:Or,y:Or,yy:Or},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});//! moment.js locale configuration
t.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(r){var a=/сехет$/i.exec(r)?"рен":/ҫул$/i.exec(r)?"тан":"ран";return r+a},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}});//! moment.js locale configuration
t.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(r){var a=r,f="",y=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"];return a>20?a===40||a===50||a===60||a===80||a===100?f="fed":f="ain":a>0&&(f=y[a]),r+f},week:{dow:1,doy:4}});//! moment.js locale configuration
t.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});//! moment.js locale configuration
function is(r,a,f,y){var S={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[r+" Tage",r+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[r+" Monate",r+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[r+" Jahre",r+" Jahren"]};return a?S[f][0]:S[f][1]}t.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:is,mm:"%d Minuten",h:is,hh:"%d Stunden",d:is,dd:is,w:is,ww:"%d Wochen",M:is,MM:is,y:is,yy:is},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});//! moment.js locale configuration
function So(r,a,f,y){var S={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[r+" Tage",r+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[r+" Monate",r+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[r+" Jahre",r+" Jahren"]};return a?S[f][0]:S[f][1]}t.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:So,mm:"%d Minuten",h:So,hh:"%d Stunden",d:So,dd:So,w:So,ww:"%d Wochen",M:So,MM:So,y:So,yy:So},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});//! moment.js locale configuration
function as(r,a,f,y){var S={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[r+" Tage",r+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[r+" Monate",r+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[r+" Jahre",r+" Jahren"]};return a?S[f][0]:S[f][1]}t.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:as,mm:"%d Minuten",h:as,hh:"%d Stunden",d:as,dd:as,w:as,ww:"%d Wochen",M:as,MM:as,y:as,yy:as},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});//! moment.js locale configuration
var uc=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],Xu=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];t.defineLocale("dv",{months:uc,monthsShort:uc,weekdays:Xu,weekdaysShort:Xu,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(r){return r==="މފ"},meridiem:function(r,a,f){return r<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(r){return r.replace(/،/g,",")},postformat:function(r){return r.replace(/,/g,"،")},week:{dow:7,doy:12}});//! moment.js locale configuration
function Qu(r){return typeof Function<"u"&&r instanceof Function||Object.prototype.toString.call(r)==="[object Function]"}t.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(r,a){return r?typeof a=="string"&&/D/.test(a.substring(0,a.indexOf("MMMM")))?this._monthsGenitiveEl[r.month()]:this._monthsNominativeEl[r.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(r,a,f){return r>11?f?"μμ":"ΜΜ":f?"πμ":"ΠΜ"},isPM:function(r){return(r+"").toLowerCase()[0]==="μ"},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(r,a){var f=this._calendarEl[r],y=a&&a.hours();return Qu(f)&&(f=f.apply(a)),f.replace("{}",y%12===1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}});//! moment.js locale configuration
t.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(r){var a=r%10,f=~~(r%100/10)===1?"th":a===1?"st":a===2?"nd":a===3?"rd":"th";return r+f},week:{dow:0,doy:4}});//! moment.js locale configuration
t.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(r){var a=r%10,f=~~(r%100/10)===1?"th":a===1?"st":a===2?"nd":a===3?"rd":"th";return r+f}});//! moment.js locale configuration
t.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(r){var a=r%10,f=~~(r%100/10)===1?"th":a===1?"st":a===2?"nd":a===3?"rd":"th";return r+f},week:{dow:1,doy:4}});//! moment.js locale configuration
t.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(r){var a=r%10,f=~~(r%100/10)===1?"th":a===1?"st":a===2?"nd":a===3?"rd":"th";return r+f},week:{dow:1,doy:4}});//! moment.js locale configuration
t.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(r){var a=r%10,f=~~(r%100/10)===1?"th":a===1?"st":a===2?"nd":a===3?"rd":"th";return r+f}});//! moment.js locale configuration
t.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(r){var a=r%10,f=~~(r%100/10)===1?"th":a===1?"st":a===2?"nd":a===3?"rd":"th";return r+f},week:{dow:0,doy:6}});//! moment.js locale configuration
t.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(r){var a=r%10,f=~~(r%100/10)===1?"th":a===1?"st":a===2?"nd":a===3?"rd":"th";return r+f},week:{dow:1,doy:4}});//! moment.js locale configuration
t.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(r){var a=r%10,f=~~(r%100/10)===1?"th":a===1?"st":a===2?"nd":a===3?"rd":"th";return r+f},week:{dow:1,doy:4}});//! moment.js locale configuration
t.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(r){return r.charAt(0).toLowerCase()==="p"},meridiem:function(r,a,f){return r>11?f?"p.t.m.":"P.T.M.":f?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}});//! moment.js locale configuration
var ep="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),pc="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),hc=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],tp=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;t.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(r,a){return r?/-MMM-/.test(a)?pc[r.month()]:ep[r.month()]:ep},monthsRegex:tp,monthsShortRegex:tp,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:hc,longMonthsParse:hc,shortMonthsParse:hc,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(this.hours()!==1?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(this.hours()!==1?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(this.hours()!==1?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(this.hours()!==1?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(this.hours()!==1?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});//! moment.js locale configuration
var np="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),Sm="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),mc=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],fc=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;t.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(r,a){return r?/-MMM-/.test(a)?Sm[r.month()]:np[r.month()]:np},monthsRegex:fc,monthsShortRegex:fc,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:mc,longMonthsParse:mc,shortMonthsParse:mc,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(this.hours()!==1?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(this.hours()!==1?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(this.hours()!==1?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(this.hours()!==1?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(this.hours()!==1?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:4},invalidDate:"Fecha inválida"});//! moment.js locale configuration
var rp="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),Cs="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),gc=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],_c=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;t.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(r,a){return r?/-MMM-/.test(a)?Cs[r.month()]:rp[r.month()]:rp},monthsRegex:_c,monthsShortRegex:_c,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:gc,longMonthsParse:gc,shortMonthsParse:gc,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(this.hours()!==1?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(this.hours()!==1?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(this.hours()!==1?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(this.hours()!==1?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(this.hours()!==1?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}});//! moment.js locale configuration
var op="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),Cm="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),zi=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],km=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;t.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(r,a){return r?/-MMM-/.test(a)?Cm[r.month()]:op[r.month()]:op},monthsRegex:km,monthsShortRegex:km,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:zi,longMonthsParse:zi,shortMonthsParse:zi,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(this.hours()!==1?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(this.hours()!==1?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(this.hours()!==1?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(this.hours()!==1?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(this.hours()!==1?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4},invalidDate:"Fecha inválida"});//! moment.js locale configuration
function Co(r,a,f,y){var S={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[r+"sekundi",r+"sekundit"],m:["ühe minuti","üks minut"],mm:[r+" minuti",r+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[r+" tunni",r+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[r+" kuu",r+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[r+" aasta",r+" aastat"]};return a?S[f][2]?S[f][2]:S[f][1]:y?S[f][0]:S[f][1]}t.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:Co,ss:Co,m:Co,mm:Co,h:Co,hh:Co,d:Co,dd:"%d päeva",M:Co,MM:Co,y:Co,yy:Co},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});//! moment.js locale configuration
t.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});//! moment.js locale configuration
var sp={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},ip={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};t.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(r){return/بعد از ظهر/.test(r)},meridiem:function(r,a,f){return r<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"%d ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(r){return r.replace(/[۰-۹]/g,function(a){return ip[a]}).replace(/،/g,",")},postformat:function(r){return r.replace(/\d/g,function(a){return sp[a]}).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}});//! moment.js locale configuration
var yc="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),Mm=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",yc[7],yc[8],yc[9]];function Yr(r,a,f,y){var S="";switch(f){case"s":return y?"muutaman sekunnin":"muutama sekunti";case"ss":S=y?"sekunnin":"sekuntia";break;case"m":return y?"minuutin":"minuutti";case"mm":S=y?"minuutin":"minuuttia";break;case"h":return y?"tunnin":"tunti";case"hh":S=y?"tunnin":"tuntia";break;case"d":return y?"päivän":"päivä";case"dd":S=y?"päivän":"päivää";break;case"M":return y?"kuukauden":"kuukausi";case"MM":S=y?"kuukauden":"kuukautta";break;case"y":return y?"vuoden":"vuosi";case"yy":S=y?"vuoden":"vuotta";break}return S=s_(r,y)+" "+S,S}function s_(r,a){return r<10?a?Mm[r]:yc[r]:r}t.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:Yr,ss:Yr,m:Yr,mm:Yr,h:Yr,hh:Yr,d:Yr,dd:Yr,M:Yr,MM:Yr,y:Yr,yy:Yr},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});//! moment.js locale configuration
t.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(r){return r},week:{dow:1,doy:4}});//! moment.js locale configuration
t.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaður",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});//! moment.js locale configuration
t.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(r,a){switch(a){default:case"M":case"Q":case"D":case"DDD":case"d":return r+(r===1?"er":"e");case"w":case"W":return r+(r===1?"re":"e")}}});//! moment.js locale configuration
t.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(r,a){switch(a){default:case"M":case"Q":case"D":case"DDD":case"d":return r+(r===1?"er":"e");case"w":case"W":return r+(r===1?"re":"e")}},week:{dow:1,doy:4}});//! moment.js locale configuration
var jm=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,i_=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,Lm=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,wc=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i];t.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsRegex:Lm,monthsShortRegex:Lm,monthsStrictRegex:jm,monthsShortStrictRegex:i_,monthsParse:wc,longMonthsParse:wc,shortMonthsParse:wc,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(r,a){switch(a){case"D":return r+(r===1?"er":"");default:case"M":case"Q":case"DDD":case"d":return r+(r===1?"er":"e");case"w":case"W":return r+(r===1?"re":"e")}},week:{dow:1,doy:4}});//! moment.js locale configuration
var ap="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),Em="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");t.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(r,a){return r?/-MMM-/.test(a)?Em[r.month()]:ap[r.month()]:ap},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(r){return r+(r===1||r===8||r>=20?"ste":"de")},week:{dow:1,doy:4}});//! moment.js locale configuration
var Dm=["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Meitheamh","Iúil","Lúnasa","Meán Fómhair","Deireadh Fómhair","Samhain","Nollaig"],Im=["Ean","Feabh","Márt","Aib","Beal","Meith","Iúil","Lún","M.F.","D.F.","Samh","Noll"],lp=["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Sathairn"],dp=["Domh","Luan","Máirt","Céad","Déar","Aoine","Sath"],Tm=["Do","Lu","Má","Cé","Dé","A","Sa"];t.defineLocale("ga",{months:Dm,monthsShort:Im,monthsParseExact:!0,weekdays:lp,weekdaysShort:dp,weekdaysMin:Tm,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Amárach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inné ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s ó shin",s:"cúpla soicind",ss:"%d soicind",m:"nóiméad",mm:"%d nóiméad",h:"uair an chloig",hh:"%d uair an chloig",d:"lá",dd:"%d lá",M:"mí",MM:"%d míonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(r){var a=r===1?"d":r%10===2?"na":"mh";return r+a},week:{dow:1,doy:4}});//! moment.js locale configuration
var cp=["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],Am=["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],a_=["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],l_=["Did","Dil","Dim","Dic","Dia","Dih","Dis"],vc=["Dò","Lu","Mà","Ci","Ar","Ha","Sa"];t.defineLocale("gd",{months:cp,monthsShort:Am,monthsParseExact:!0,weekdays:a_,weekdaysShort:l_,weekdaysMin:vc,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(r){var a=r===1?"d":r%10===2?"na":"mh";return r+a},week:{dow:1,doy:4}});//! moment.js locale configuration
t.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(this.hours()!==1?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(this.hours()!==1?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(this.hours()!==1?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(this.hours()!==1?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(this.hours()!==1?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(r){return r.indexOf("un")===0?"n"+r:"en "+r},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});//! moment.js locale configuration
function xr(r,a,f,y){var S={s:["थोडया सॅकंडांनी","थोडे सॅकंड"],ss:[r+" सॅकंडांनी",r+" सॅकंड"],m:["एका मिणटान","एक मिनूट"],mm:[r+" मिणटांनी",r+" मिणटां"],h:["एका वरान","एक वर"],hh:[r+" वरांनी",r+" वरां"],d:["एका दिसान","एक दीस"],dd:[r+" दिसांनी",r+" दीस"],M:["एका म्हयन्यान","एक म्हयनो"],MM:[r+" म्हयन्यानी",r+" म्हयने"],y:["एका वर्सान","एक वर्स"],yy:[r+" वर्सांनी",r+" वर्सां"]};return y?S[f][0]:S[f][1]}t.defineLocale("gom-deva",{months:{standalone:"जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),format:"जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार".split("_"),weekdaysShort:"आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.".split("_"),weekdaysMin:"आ_सो_मं_बु_ब्रे_सु_शे".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [वाजतां]",LTS:"A h:mm:ss [वाजतां]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [वाजतां]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [वाजतां]",llll:"ddd, D MMM YYYY, A h:mm [वाजतां]"},calendar:{sameDay:"[आयज] LT",nextDay:"[फाल्यां] LT",nextWeek:"[फुडलो] dddd[,] LT",lastDay:"[काल] LT",lastWeek:"[फाटलो] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s आदीं",s:xr,ss:xr,m:xr,mm:xr,h:xr,hh:xr,d:xr,dd:xr,M:xr,MM:xr,y:xr,yy:xr},dayOfMonthOrdinalParse:/\d{1,2}(वेर)/,ordinal:function(r,a){switch(a){case"D":return r+"वेर";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return r}},week:{dow:0,doy:3},meridiemParse:/राती|सकाळीं|दनपारां|सांजे/,meridiemHour:function(r,a){if(r===12&&(r=0),a==="राती")return r<4?r:r+12;if(a==="सकाळीं")return r;if(a==="दनपारां")return r>12?r:r+12;if(a==="सांजे")return r+12},meridiem:function(r,a,f){return r<4?"राती":r<12?"सकाळीं":r<16?"दनपारां":r<20?"सांजे":"राती"}});//! moment.js locale configuration
function Ve(r,a,f,y){var S={s:["thoddea sekondamni","thodde sekond"],ss:[r+" sekondamni",r+" sekond"],m:["eka mintan","ek minut"],mm:[r+" mintamni",r+" mintam"],h:["eka voran","ek vor"],hh:[r+" voramni",r+" voram"],d:["eka disan","ek dis"],dd:[r+" disamni",r+" dis"],M:["eka mhoinean","ek mhoino"],MM:[r+" mhoineamni",r+" mhoine"],y:["eka vorsan","ek voros"],yy:[r+" vorsamni",r+" vorsam"]};return y?S[f][0]:S[f][1]}t.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:Ve,ss:Ve,m:Ve,mm:Ve,h:Ve,hh:Ve,d:Ve,dd:Ve,M:Ve,MM:Ve,y:Ve,yy:Ve},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(r,a){switch(a){case"D":return r+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return r}},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(r,a){if(r===12&&(r=0),a==="rati")return r<4?r:r+12;if(a==="sokallim")return r;if(a==="donparam")return r>12?r:r+12;if(a==="sanje")return r+12},meridiem:function(r,a,f){return r<4?"rati":r<12?"sokallim":r<16?"donparam":r<20?"sanje":"rati"}});//! moment.js locale configuration
var cr={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},Sn={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"};t.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પહેલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(r){return r.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,function(a){return Sn[a]})},postformat:function(r){return r.replace(/\d/g,function(a){return cr[a]})},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(r,a){if(r===12&&(r=0),a==="રાત")return r<4?r:r+12;if(a==="સવાર")return r;if(a==="બપોર")return r>=10?r:r+12;if(a==="સાંજ")return r+12},meridiem:function(r,a,f){return r<4?"રાત":r<10?"સવાર":r<17?"બપોર":r<20?"સાંજ":"રાત"},week:{dow:0,doy:6}});//! moment.js locale configuration
t.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(r){return r===2?"שעתיים":r+" שעות"},d:"יום",dd:function(r){return r===2?"יומיים":r+" ימים"},M:"חודש",MM:function(r){return r===2?"חודשיים":r+" חודשים"},y:"שנה",yy:function(r){return r===2?"שנתיים":r%10===0&&r!==10?r+" שנה":r+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(r){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(r)},meridiem:function(r,a,f){return r<5?"לפנות בוקר":r<10?"בבוקר":r<12?f?'לפנה"צ':"לפני הצהריים":r<18?f?'אחה"צ':"אחרי הצהריים":"בערב"}});//! moment.js locale configuration
var Gn={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},Ui={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},xc=[/^जन/i,/^फ़र|फर/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सितं|सित/i,/^अक्टू/i,/^नव|नवं/i,/^दिसं|दिस/i],Rn=[/^जन/i,/^फ़र/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सित/i,/^अक्टू/i,/^नव/i,/^दिस/i];t.defineLocale("hi",{months:{format:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),standalone:"जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर".split("_")},monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},monthsParse:xc,longMonthsParse:xc,shortMonthsParse:Rn,monthsRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsShortRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsStrictRegex:/^(जनवरी?|फ़रवरी|फरवरी?|मार्च?|अप्रैल?|मई?|जून?|जुलाई?|अगस्त?|सितम्बर|सितंबर|सित?\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर?|दिसम्बर|दिसंबर?)/i,monthsShortStrictRegex:/^(जन\.?|फ़र\.?|मार्च?|अप्रै\.?|मई?|जून?|जुल\.?|अग\.?|सित\.?|अक्टू\.?|नव\.?|दिस\.?)/i,calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(r){return r.replace(/[१२३४५६७८९०]/g,function(a){return Ui[a]})},postformat:function(r){return r.replace(/\d/g,function(a){return Gn[a]})},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(r,a){if(r===12&&(r=0),a==="रात")return r<4?r:r+12;if(a==="सुबह")return r;if(a==="दोपहर")return r>=10?r:r+12;if(a==="शाम")return r+12},meridiem:function(r,a,f){return r<4?"रात":r<10?"सुबह":r<17?"दोपहर":r<20?"शाम":"रात"},week:{dow:0,doy:6}});//! moment.js locale configuration
function ko(r,a,f){var y=r+" ";switch(f){case"ss":return r===1?y+="sekunda":r===2||r===3||r===4?y+="sekunde":y+="sekundi",y;case"m":return a?"jedna minuta":"jedne minute";case"mm":return r===1?y+="minuta":r===2||r===3||r===4?y+="minute":y+="minuta",y;case"h":return a?"jedan sat":"jednog sata";case"hh":return r===1?y+="sat":r===2||r===3||r===4?y+="sata":y+="sati",y;case"dd":return r===1?y+="dan":y+="dana",y;case"MM":return r===1?y+="mjesec":r===2||r===3||r===4?y+="mjeseca":y+="mjeseci",y;case"yy":return r===1?y+="godina":r===2||r===3||r===4?y+="godine":y+="godina",y}}t.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:return"[prošlu] [nedjelju] [u] LT";case 3:return"[prošlu] [srijedu] [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:ko,m:ko,mm:ko,h:ko,hh:ko,d:"dan",dd:ko,M:"mjesec",MM:ko,y:"godinu",yy:ko},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});//! moment.js locale configuration
var Ea="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function $n(r,a,f,y){var S=r;switch(f){case"s":return y||a?"néhány másodperc":"néhány másodperce";case"ss":return S+(y||a)?" másodperc":" másodperce";case"m":return"egy"+(y||a?" perc":" perce");case"mm":return S+(y||a?" perc":" perce");case"h":return"egy"+(y||a?" óra":" órája");case"hh":return S+(y||a?" óra":" órája");case"d":return"egy"+(y||a?" nap":" napja");case"dd":return S+(y||a?" nap":" napja");case"M":return"egy"+(y||a?" hónap":" hónapja");case"MM":return S+(y||a?" hónap":" hónapja");case"y":return"egy"+(y||a?" év":" éve");case"yy":return S+(y||a?" év":" éve")}return""}function Vi(r){return(r?"":"[múlt] ")+"["+Ea[this.day()]+"] LT[-kor]"}t.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(r){return r.charAt(1).toLowerCase()==="u"},meridiem:function(r,a,f){return r<12?f===!0?"de":"DE":f===!0?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return Vi.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return Vi.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:$n,ss:$n,m:$n,mm:$n,h:$n,hh:$n,d:$n,dd:$n,M:$n,MM:$n,y:$n,yy:$n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});//! moment.js locale configuration
t.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",ss:"%d վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(r){return/^(ցերեկվա|երեկոյան)$/.test(r)},meridiem:function(r){return r<4?"գիշերվա":r<12?"առավոտվա":r<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(r,a){switch(a){case"DDD":case"w":case"W":case"DDDo":return r===1?r+"-ին":r+"-րդ";default:return r}},week:{dow:1,doy:7}});//! moment.js locale configuration
t.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(r,a){if(r===12&&(r=0),a==="pagi")return r;if(a==="siang")return r>=11?r:r+12;if(a==="sore"||a==="malam")return r+12},meridiem:function(r,a,f){return r<11?"pagi":r<15?"siang":r<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}});//! moment.js locale configuration
function di(r){return r%100===11?!0:r%10!==1}function Wr(r,a,f,y){var S=r+" ";switch(f){case"s":return a||y?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return di(r)?S+(a||y?"sekúndur":"sekúndum"):S+"sekúnda";case"m":return a?"mínúta":"mínútu";case"mm":return di(r)?S+(a||y?"mínútur":"mínútum"):a?S+"mínúta":S+"mínútu";case"hh":return di(r)?S+(a||y?"klukkustundir":"klukkustundum"):S+"klukkustund";case"d":return a?"dagur":y?"dag":"degi";case"dd":return di(r)?a?S+"dagar":S+(y?"daga":"dögum"):a?S+"dagur":S+(y?"dag":"degi");case"M":return a?"mánuður":y?"mánuð":"mánuði";case"MM":return di(r)?a?S+"mánuðir":S+(y?"mánuði":"mánuðum"):a?S+"mánuður":S+(y?"mánuð":"mánuði");case"y":return a||y?"ár":"ári";case"yy":return di(r)?S+(a||y?"ár":"árum"):S+(a||y?"ár":"ári")}}t.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:Wr,ss:Wr,m:Wr,mm:Wr,h:"klukkustund",hh:Wr,d:Wr,dd:Wr,M:Wr,MM:Wr,y:Wr,yy:Wr},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});//! moment.js locale configuration
t.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(r){return(/^[0-9].+$/.test(r)?"tra":"in")+" "+r},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});//! moment.js locale configuration
t.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT"},lastWeek:function(){switch(this.day()){case 0:return"[La scorsa] dddd [a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT";default:return"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT"}},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});//! moment.js locale configuration
t.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"令和",narrow:"㋿",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"平成",narrow:"㍻",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"昭和",narrow:"㍼",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"大正",narrow:"㍽",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"明治",narrow:"㍾",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"西暦",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"紀元前",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(元|\d+)年/,eraYearOrdinalParse:function(r,a){return a[1]==="元"?1:parseInt(a[1]||r,10)},months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(r){return r==="午後"},meridiem:function(r,a,f){return r<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(r){return r.week()!==this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(r){return this.week()!==r.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(r,a){switch(a){case"y":return r===1?"元年":r+"年";case"d":case"D":case"DDD":return r+"日";default:return r}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}});//! moment.js locale configuration
t.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(r,a){if(r===12&&(r=0),a==="enjing")return r;if(a==="siyang")return r>=11?r:r+12;if(a==="sonten"||a==="ndalu")return r+12},meridiem:function(r,a,f){return r<11?"enjing":r<15?"siyang":r<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}});//! moment.js locale configuration
t.defineLocale("ka",{months:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(r){return r.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/,function(a,f,y){return y==="ი"?f+"ში":f+y+"ში"})},past:function(r){return/(წამი|წუთი|საათი|დღე|თვე)/.test(r)?r.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(r)?r.replace(/წელი$/,"წლის წინ"):r},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(r){return r===0?r:r===1?r+"-ლი":r<20||r<=100&&r%20===0||r%100===0?"მე-"+r:r+"-ე"},week:{dow:1,doy:7}});//! moment.js locale configuration
var zl={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};t.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(r){var a=r%10,f=r>=100?100:null;return r+(zl[r]||zl[a]||zl[f])},week:{dow:1,doy:7}});//! moment.js locale configuration
var up={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},Da={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"};t.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysMin:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ព្រឹក|ល្ងាច/,isPM:function(r){return r==="ល្ងាច"},meridiem:function(r,a,f){return r<12?"ព្រឹក":"ល្ងាច"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},dayOfMonthOrdinalParse:/ទី\d{1,2}/,ordinal:"ទី%d",preparse:function(r){return r.replace(/[១២៣៤៥៦៧៨៩០]/g,function(a){return Da[a]})},postformat:function(r){return r.replace(/\d/g,function(a){return up[a]})},week:{dow:1,doy:4}});//! moment.js locale configuration
var Re={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},bc={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"};t.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(r){return r.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,function(a){return bc[a]})},postformat:function(r){return r.replace(/\d/g,function(a){return Re[a]})},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(r,a){if(r===12&&(r=0),a==="ರಾತ್ರಿ")return r<4?r:r+12;if(a==="ಬೆಳಿಗ್ಗೆ")return r;if(a==="ಮಧ್ಯಾಹ್ನ")return r>=10?r:r+12;if(a==="ಸಂಜೆ")return r+12},meridiem:function(r,a,f){return r<4?"ರಾತ್ರಿ":r<10?"ಬೆಳಿಗ್ಗೆ":r<17?"ಮಧ್ಯಾಹ್ನ":r<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(r){return r+"ನೇ"},week:{dow:0,doy:6}});//! moment.js locale configuration
t.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(r,a){switch(a){case"d":case"D":case"DDD":return r+"일";case"M":return r+"월";case"w":case"W":return r+"주";default:return r}},meridiemParse:/오전|오후/,isPM:function(r){return r==="오후"},meridiem:function(r,a,f){return r<12?"오전":"오후"}});//! moment.js locale configuration
function Kn(r,a,f,y){var S={s:["çend sanîye","çend sanîyeyan"],ss:[r+" sanîye",r+" sanîyeyan"],m:["deqîqeyek","deqîqeyekê"],mm:[r+" deqîqe",r+" deqîqeyan"],h:["saetek","saetekê"],hh:[r+" saet",r+" saetan"],d:["rojek","rojekê"],dd:[r+" roj",r+" rojan"],w:["hefteyek","hefteyekê"],ww:[r+" hefte",r+" hefteyan"],M:["mehek","mehekê"],MM:[r+" meh",r+" mehan"],y:["salek","salekê"],yy:[r+" sal",r+" salan"]};return a?S[f][0]:S[f][1]}function ls(r){r=""+r;var a=r.substring(r.length-1),f=r.length>1?r.substring(r.length-2):"";return!(f==12||f==13)&&(a=="2"||a=="3"||f=="50"||a=="70"||a=="80")?"yê":"ê"}t.defineLocale("ku-kmr",{months:"Rêbendan_Sibat_Adar_Nîsan_Gulan_Hezîran_Tîrmeh_Tebax_Îlon_Cotmeh_Mijdar_Berfanbar".split("_"),monthsShort:"Rêb_Sib_Ada_Nîs_Gul_Hez_Tîr_Teb_Îlo_Cot_Mij_Ber".split("_"),monthsParseExact:!0,weekdays:"Yekşem_Duşem_Sêşem_Çarşem_Pêncşem_În_Şemî".split("_"),weekdaysShort:"Yek_Du_Sê_Çar_Pên_În_Şem".split("_"),weekdaysMin:"Ye_Du_Sê_Ça_Pê_În_Şe".split("_"),meridiem:function(r,a,f){return r<12?f?"bn":"BN":f?"pn":"PN"},meridiemParse:/bn|BN|pn|PN/,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM[a] YYYY[an]",LLL:"Do MMMM[a] YYYY[an] HH:mm",LLLL:"dddd, Do MMMM[a] YYYY[an] HH:mm",ll:"Do MMM[.] YYYY[an]",lll:"Do MMM[.] YYYY[an] HH:mm",llll:"ddd[.], Do MMM[.] YYYY[an] HH:mm"},calendar:{sameDay:"[Îro di saet] LT [de]",nextDay:"[Sibê di saet] LT [de]",nextWeek:"dddd [di saet] LT [de]",lastDay:"[Duh di saet] LT [de]",lastWeek:"dddd[a borî di saet] LT [de]",sameElse:"L"},relativeTime:{future:"di %s de",past:"berî %s",s:Kn,ss:Kn,m:Kn,mm:Kn,h:Kn,hh:Kn,d:Kn,dd:Kn,w:Kn,ww:Kn,M:Kn,MM:Kn,y:Kn,yy:Kn},dayOfMonthOrdinalParse:/\d{1,2}(?:yê|ê|\.)/,ordinal:function(r,a){var f=a.toLowerCase();return f.includes("w")||f.includes("m")?r+".":r+ls(r)},week:{dow:1,doy:4}});//! moment.js locale configuration
var ci={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},Ul={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},Ia=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"];t.defineLocale("ku",{months:Ia,monthsShort:Ia,weekdays:"یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌".split("_"),weekdaysShort:"یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌".split("_"),weekdaysMin:"ی_د_س_چ_پ_ه_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ئێواره‌|به‌یانی/,isPM:function(r){return/ئێواره‌/.test(r)},meridiem:function(r,a,f){return r<12?"به‌یانی":"ئێواره‌"},calendar:{sameDay:"[ئه‌مرۆ كاتژمێر] LT",nextDay:"[به‌یانی كاتژمێر] LT",nextWeek:"dddd [كاتژمێر] LT",lastDay:"[دوێنێ كاتژمێر] LT",lastWeek:"dddd [كاتژمێر] LT",sameElse:"L"},relativeTime:{future:"له‌ %s",past:"%s",s:"چه‌ند چركه‌یه‌ك",ss:"چركه‌ %d",m:"یه‌ك خوله‌ك",mm:"%d خوله‌ك",h:"یه‌ك كاتژمێر",hh:"%d كاتژمێر",d:"یه‌ك ڕۆژ",dd:"%d ڕۆژ",M:"یه‌ك مانگ",MM:"%d مانگ",y:"یه‌ك ساڵ",yy:"%d ساڵ"},preparse:function(r){return r.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(a){return Ul[a]}).replace(/،/g,",")},postformat:function(r){return r.replace(/\d/g,function(a){return ci[a]}).replace(/,/g,"،")},week:{dow:6,doy:12}});//! moment.js locale configuration
var Vl={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"};t.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кечээ саат] LT",lastWeek:"[Өткөн аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",ss:"%d секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(r){var a=r%10,f=r>=100?100:null;return r+(Vl[r]||Vl[a]||Vl[f])},week:{dow:1,doy:7}});//! moment.js locale configuration
function Gi(r,a,f,y){var S={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return a?S[f][0]:S[f][1]}function ks(r){var a=r.substr(0,r.indexOf(" "));return ui(a)?"a "+r:"an "+r}function Gl(r){var a=r.substr(0,r.indexOf(" "));return ui(a)?"viru "+r:"virun "+r}function ui(r){if(r=parseInt(r,10),isNaN(r))return!1;if(r<0)return!0;if(r<10)return 4<=r&&r<=7;if(r<100){var a=r%10,f=r/10;return ui(a===0?f:a)}else if(r<1e4){for(;r>=10;)r=r/10;return ui(r)}else return r=r/1e3,ui(r)}t.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:ks,past:Gl,s:"e puer Sekonnen",ss:"%d Sekonnen",m:Gi,mm:"%d Minutten",h:Gi,hh:"%d Stonnen",d:Gi,dd:"%d Deeg",M:Gi,MM:"%d Méint",y:Gi,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});//! moment.js locale configuration
t.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(r){return r==="ຕອນແລງ"},meridiem:function(r,a,f){return r<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",ss:"%d ວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(ທີ່)\d{1,2}/,ordinal:function(r){return"ທີ່"+r}});//! moment.js locale configuration
var Sc={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function Ms(r,a,f,y){return a?"kelios sekundės":y?"kelių sekundžių":"kelias sekundes"}function js(r,a,f,y){return a?Mo(f)[0]:y?Mo(f)[1]:Mo(f)[2]}function Ta(r){return r%10===0||r>10&&r<20}function Mo(r){return Sc[r].split("_")}function Ln(r,a,f,y){var S=r+" ";return r===1?S+js(r,a,f[0],y):a?S+(Ta(r)?Mo(f)[1]:Mo(f)[0]):y?S+Mo(f)[1]:S+(Ta(r)?Mo(f)[1]:Mo(f)[2])}t.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:Ms,ss:Ln,m:js,mm:Ln,h:js,hh:Ln,d:js,dd:Ln,M:js,MM:Ln,y:js,yy:Ln},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(r){return r+"-oji"},week:{dow:1,doy:4}});//! moment.js locale configuration
var Ls={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function Es(r,a,f){return f?a%10===1&&a%100!==11?r[2]:r[3]:a%10===1&&a%100!==11?r[0]:r[1]}function Ds(r,a,f){return r+" "+Es(Ls[f],r,a)}function qn(r,a,f){return Es(Ls[f],r,a)}function Pm(r,a){return a?"dažas sekundes":"dažām sekundēm"}t.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:Pm,ss:Ds,m:qn,mm:Ds,h:qn,hh:Ds,d:qn,dd:Ds,M:qn,MM:Ds,y:qn,yy:Ds},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});//! moment.js locale configuration
var ur={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(r,a){return r===1?a[0]:r>=2&&r<=4?a[1]:a[2]},translate:function(r,a,f){var y=ur.words[f];return f.length===1?a?y[0]:y[1]:r+" "+ur.correctGrammaticalCase(r,y)}};t.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){var r=["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"];return r[this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:ur.translate,m:ur.translate,mm:ur.translate,h:ur.translate,hh:ur.translate,d:"dan",dd:ur.translate,M:"mjesec",MM:ur.translate,y:"godinu",yy:ur.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});//! moment.js locale configuration
t.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",ss:"%d hēkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});//! moment.js locale configuration
t.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"за %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"една минута",mm:"%d минути",h:"еден час",hh:"%d часа",d:"еден ден",dd:"%d дена",M:"еден месец",MM:"%d месеци",y:"една година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(r){var a=r%10,f=r%100;return r===0?r+"-ев":f===0?r+"-ен":f>10&&f<20?r+"-ти":a===1?r+"-ви":a===2?r+"-ри":a===7||a===8?r+"-ми":r+"-ти"},week:{dow:1,doy:7}});//! moment.js locale configuration
t.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(r,a){return r===12&&(r=0),a==="രാത്രി"&&r>=4||a==="ഉച്ച കഴിഞ്ഞ്"||a==="വൈകുന്നേരം"?r+12:r},meridiem:function(r,a,f){return r<4?"രാത്രി":r<12?"രാവിലെ":r<17?"ഉച്ച കഴിഞ്ഞ്":r<20?"വൈകുന്നേരം":"രാത്രി"}});//! moment.js locale configuration
function br(r,a,f,y){switch(f){case"s":return a?"хэдхэн секунд":"хэдхэн секундын";case"ss":return r+(a?" секунд":" секундын");case"m":case"mm":return r+(a?" минут":" минутын");case"h":case"hh":return r+(a?" цаг":" цагийн");case"d":case"dd":return r+(a?" өдөр":" өдрийн");case"M":case"MM":return r+(a?" сар":" сарын");case"y":case"yy":return r+(a?" жил":" жилийн");default:return r}}t.defineLocale("mn",{months:"Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар".split("_"),monthsShort:"1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар".split("_"),monthsParseExact:!0,weekdays:"Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба".split("_"),weekdaysShort:"Ням_Дав_Мяг_Лха_Пүр_Баа_Бям".split("_"),weekdaysMin:"Ня_Да_Мя_Лх_Пү_Ба_Бя".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY оны MMMMын D",LLL:"YYYY оны MMMMын D HH:mm",LLLL:"dddd, YYYY оны MMMMын D HH:mm"},meridiemParse:/ҮӨ|ҮХ/i,isPM:function(r){return r==="ҮХ"},meridiem:function(r,a,f){return r<12?"ҮӨ":"ҮХ"},calendar:{sameDay:"[Өнөөдөр] LT",nextDay:"[Маргааш] LT",nextWeek:"[Ирэх] dddd LT",lastDay:"[Өчигдөр] LT",lastWeek:"[Өнгөрсөн] dddd LT",sameElse:"L"},relativeTime:{future:"%s дараа",past:"%s өмнө",s:br,ss:br,m:br,mm:br,h:br,hh:br,d:br,dd:br,M:br,MM:br,y:br,yy:br},dayOfMonthOrdinalParse:/\d{1,2} өдөр/,ordinal:function(r,a){switch(a){case"d":case"D":case"DDD":return r+" өдөр";default:return r}}});//! moment.js locale configuration
var d_={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},Rm={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function Br(r,a,f,y){var S="";if(a)switch(f){case"s":S="काही सेकंद";break;case"ss":S="%d सेकंद";break;case"m":S="एक मिनिट";break;case"mm":S="%d मिनिटे";break;case"h":S="एक तास";break;case"hh":S="%d तास";break;case"d":S="एक दिवस";break;case"dd":S="%d दिवस";break;case"M":S="एक महिना";break;case"MM":S="%d महिने";break;case"y":S="एक वर्ष";break;case"yy":S="%d वर्षे";break}else switch(f){case"s":S="काही सेकंदां";break;case"ss":S="%d सेकंदां";break;case"m":S="एका मिनिटा";break;case"mm":S="%d मिनिटां";break;case"h":S="एका तासा";break;case"hh":S="%d तासां";break;case"d":S="एका दिवसा";break;case"dd":S="%d दिवसां";break;case"M":S="एका महिन्या";break;case"MM":S="%d महिन्यां";break;case"y":S="एका वर्षा";break;case"yy":S="%d वर्षां";break}return S.replace(/%d/i,r)}t.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:Br,ss:Br,m:Br,mm:Br,h:Br,hh:Br,d:Br,dd:Br,M:Br,MM:Br,y:Br,yy:Br},preparse:function(r){return r.replace(/[१२३४५६७८९०]/g,function(a){return Rm[a]})},postformat:function(r){return r.replace(/\d/g,function(a){return d_[a]})},meridiemParse:/पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,meridiemHour:function(r,a){if(r===12&&(r=0),a==="पहाटे"||a==="सकाळी")return r;if(a==="दुपारी"||a==="सायंकाळी"||a==="रात्री")return r>=12?r:r+12},meridiem:function(r,a,f){return r>=0&&r<6?"पहाटे":r<12?"सकाळी":r<17?"दुपारी":r<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}});//! moment.js locale configuration
t.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(r,a){if(r===12&&(r=0),a==="pagi")return r;if(a==="tengahari")return r>=11?r:r+12;if(a==="petang"||a==="malam")return r+12},meridiem:function(r,a,f){return r<11?"pagi":r<15?"tengahari":r<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}});//! moment.js locale configuration
t.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(r,a){if(r===12&&(r=0),a==="pagi")return r;if(a==="tengahari")return r>=11?r:r+12;if(a==="petang"||a==="malam")return r+12},meridiem:function(r,a,f){return r<11?"pagi":r<15?"tengahari":r<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}});//! moment.js locale configuration
t.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});//! moment.js locale configuration
var Cc={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},pp={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};t.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",ss:"%d စက္ကန့်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(r){return r.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,function(a){return pp[a]})},postformat:function(r){return r.replace(/\d/g,function(a){return Cc[a]})},week:{dow:1,doy:4}});//! moment.js locale configuration
t.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"én time",hh:"%d timer",d:"én dag",dd:"%d dager",w:"én uke",ww:"%d uker",M:"én måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});//! moment.js locale configuration
var Aa={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},Fm={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};t.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(r){return r.replace(/[१२३४५६७८९०]/g,function(a){return Fm[a]})},postformat:function(r){return r.replace(/\d/g,function(a){return Aa[a]})},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(r,a){if(r===12&&(r=0),a==="राति")return r<4?r:r+12;if(a==="बिहान")return r;if(a==="दिउँसो")return r>=10?r:r+12;if(a==="साँझ")return r+12},meridiem:function(r,a,f){return r<3?"राति":r<12?"बिहान":r<16?"दिउँसो":r<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}});//! moment.js locale configuration
var hp="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),$l="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),mp=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],Nm=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;t.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(r,a){return r?/-MMM-/.test(a)?$l[r.month()]:hp[r.month()]:hp},monthsRegex:Nm,monthsShortRegex:Nm,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:mp,longMonthsParse:mp,shortMonthsParse:mp,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(r){return r+(r===1||r===8||r>=20?"ste":"de")},week:{dow:1,doy:4}});//! moment.js locale configuration
var fp="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),Om="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),Is=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],Ym=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;t.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(r,a){return r?/-MMM-/.test(a)?Om[r.month()]:fp[r.month()]:fp},monthsRegex:Ym,monthsShortRegex:Ym,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:Is,longMonthsParse:Is,shortMonthsParse:Is,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",w:"één week",ww:"%d weken",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(r){return r+(r===1||r===8||r>=20?"ste":"de")},week:{dow:1,doy:4}});//! moment.js locale configuration
t.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._må._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_må_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});//! moment.js locale configuration
t.defineLocale("oc-lnc",{months:{standalone:"genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre".split("_"),format:"de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[uèi a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[ièr a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(r,a){var f=r===1?"r":r===2?"n":r===3?"r":r===4?"t":"è";return(a==="w"||a==="W")&&(f="a"),r+f},week:{dow:1,doy:4}});//! moment.js locale configuration
var c_={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},pi={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"};t.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"[ਅਗਲਾ] dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(r){return r.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,function(a){return pi[a]})},postformat:function(r){return r.replace(/\d/g,function(a){return c_[a]})},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(r,a){if(r===12&&(r=0),a==="ਰਾਤ")return r<4?r:r+12;if(a==="ਸਵੇਰ")return r;if(a==="ਦੁਪਹਿਰ")return r>=10?r:r+12;if(a==="ਸ਼ਾਮ")return r+12},meridiem:function(r,a,f){return r<4?"ਰਾਤ":r<10?"ਸਵੇਰ":r<17?"ਦੁਪਹਿਰ":r<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}});//! moment.js locale configuration
var Wm="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),Bm="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),gp=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^paź/i,/^lis/i,/^gru/i];function $i(r){return r%10<5&&r%10>1&&~~(r/10)%10!==1}function pr(r,a,f){var y=r+" ";switch(f){case"ss":return y+($i(r)?"sekundy":"sekund");case"m":return a?"minuta":"minutę";case"mm":return y+($i(r)?"minuty":"minut");case"h":return a?"godzina":"godzinę";case"hh":return y+($i(r)?"godziny":"godzin");case"ww":return y+($i(r)?"tygodnie":"tygodni");case"MM":return y+($i(r)?"miesiące":"miesięcy");case"yy":return y+($i(r)?"lata":"lat")}}t.defineLocale("pl",{months:function(r,a){return r?/D MMMM/.test(a)?Bm[r.month()]:Wm[r.month()]:Wm},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),monthsParse:gp,longMonthsParse:gp,shortMonthsParse:gp,weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:pr,m:pr,mm:pr,h:pr,hh:pr,d:"1 dzień",dd:"%d dni",w:"tydzień",ww:pr,M:"miesiąc",MM:pr,y:"rok",yy:pr},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});//! moment.js locale configuration
t.defineLocale("pt-br",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"do_2ª_3ª_4ª_5ª_6ª_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return this.day()===0||this.day()===6?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",invalidDate:"Data inválida"});//! moment.js locale configuration
t.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return this.day()===0||this.day()===6?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});//! moment.js locale configuration
function Ki(r,a,f){var y={ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"săptămâni",MM:"luni",yy:"ani"},S=" ";return(r%100>=20||r>=100&&r%100===0)&&(S=" de "),r+S+y[f]}t.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:Ki,m:"un minut",mm:Ki,h:"o oră",hh:Ki,d:"o zi",dd:Ki,w:"o săptămână",ww:Ki,M:"o lună",MM:Ki,y:"un an",yy:Ki},week:{dow:1,doy:7}});//! moment.js locale configuration
function u_(r,a){var f=r.split("_");return a%10===1&&a%100!==11?f[0]:a%10>=2&&a%10<=4&&(a%100<10||a%100>=20)?f[1]:f[2]}function Ts(r,a,f){var y={ss:a?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:a?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",ww:"неделя_недели_недель",MM:"месяц_месяца_месяцев",yy:"год_года_лет"};return f==="m"?a?"минута":"минуту":r+" "+u_(y[f],+r)}var _p=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];t.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:_p,longMonthsParse:_p,shortMonthsParse:_p,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(r){if(r.week()!==this.week())switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}else return this.day()===2?"[Во] dddd, [в] LT":"[В] dddd, [в] LT"},lastWeek:function(r){if(r.week()!==this.week())switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}else return this.day()===2?"[Во] dddd, [в] LT":"[В] dddd, [в] LT"},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:Ts,m:Ts,mm:Ts,h:"час",hh:Ts,d:"день",dd:Ts,w:"неделя",ww:Ts,M:"месяц",MM:Ts,y:"год",yy:Ts},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(r){return/^(дня|вечера)$/.test(r)},meridiem:function(r,a,f){return r<4?"ночи":r<12?"утра":r<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(r,a){switch(a){case"M":case"d":case"DDD":return r+"-й";case"D":return r+"-го";case"w":case"W":return r+"-я";default:return r}},week:{dow:1,doy:4}});//! moment.js locale configuration
var Hr=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],Kl=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];t.defineLocale("sd",{months:Hr,monthsShort:Hr,weekdays:Kl,weekdaysShort:Kl,weekdaysMin:Kl,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(r){return r==="شام"},meridiem:function(r,a,f){return r<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(r){return r.replace(/،/g,",")},postformat:function(r){return r.replace(/,/g,"،")},week:{dow:1,doy:4}});//! moment.js locale configuration
t.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});//! moment.js locale configuration
t.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} වැනි/,ordinal:function(r){return r+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(r){return r==="ප.ව."||r==="පස් වරු"},meridiem:function(r,a,f){return r>11?f?"ප.ව.":"පස් වරු":f?"පෙ.ව.":"පෙර වරු"}});//! moment.js locale configuration
var p_="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),hi="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function As(r){return r>1&&r<5}function Fn(r,a,f,y){var S=r+" ";switch(f){case"s":return a||y?"pár sekúnd":"pár sekundami";case"ss":return a||y?S+(As(r)?"sekundy":"sekúnd"):S+"sekundami";case"m":return a?"minúta":y?"minútu":"minútou";case"mm":return a||y?S+(As(r)?"minúty":"minút"):S+"minútami";case"h":return a?"hodina":y?"hodinu":"hodinou";case"hh":return a||y?S+(As(r)?"hodiny":"hodín"):S+"hodinami";case"d":return a||y?"deň":"dňom";case"dd":return a||y?S+(As(r)?"dni":"dní"):S+"dňami";case"M":return a||y?"mesiac":"mesiacom";case"MM":return a||y?S+(As(r)?"mesiace":"mesiacov"):S+"mesiacmi";case"y":return a||y?"rok":"rokom";case"yy":return a||y?S+(As(r)?"roky":"rokov"):S+"rokmi"}}t.defineLocale("sk",{months:p_,monthsShort:hi,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:Fn,ss:Fn,m:Fn,mm:Fn,h:Fn,hh:Fn,d:Fn,dd:Fn,M:Fn,MM:Fn,y:Fn,yy:Fn},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});//! moment.js locale configuration
function Sr(r,a,f,y){var S=r+" ";switch(f){case"s":return a||y?"nekaj sekund":"nekaj sekundami";case"ss":return r===1?S+=a?"sekundo":"sekundi":r===2?S+=a||y?"sekundi":"sekundah":r<5?S+=a||y?"sekunde":"sekundah":S+="sekund",S;case"m":return a?"ena minuta":"eno minuto";case"mm":return r===1?S+=a?"minuta":"minuto":r===2?S+=a||y?"minuti":"minutama":r<5?S+=a||y?"minute":"minutami":S+=a||y?"minut":"minutami",S;case"h":return a?"ena ura":"eno uro";case"hh":return r===1?S+=a?"ura":"uro":r===2?S+=a||y?"uri":"urama":r<5?S+=a||y?"ure":"urami":S+=a||y?"ur":"urami",S;case"d":return a||y?"en dan":"enim dnem";case"dd":return r===1?S+=a||y?"dan":"dnem":r===2?S+=a||y?"dni":"dnevoma":S+=a||y?"dni":"dnevi",S;case"M":return a||y?"en mesec":"enim mesecem";case"MM":return r===1?S+=a||y?"mesec":"mesecem":r===2?S+=a||y?"meseca":"mesecema":r<5?S+=a||y?"mesece":"meseci":S+=a||y?"mesecev":"meseci",S;case"y":return a||y?"eno leto":"enim letom";case"yy":return r===1?S+=a||y?"leto":"letom":r===2?S+=a||y?"leti":"letoma":r<5?S+=a||y?"leta":"leti":S+=a||y?"let":"leti",S}}t.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:Sr,ss:Sr,m:Sr,mm:Sr,h:Sr,hh:Sr,d:Sr,dd:Sr,M:Sr,MM:Sr,y:Sr,yy:Sr},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});//! moment.js locale configuration
t.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(r){return r.charAt(0)==="M"},meridiem:function(r,a,f){return r<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});//! moment.js locale configuration
var hr={words:{ss:["секунда","секунде","секунди"],m:["један минут","једног минута"],mm:["минут","минута","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],d:["један дан","једног дана"],dd:["дан","дана","дана"],M:["један месец","једног месеца"],MM:["месец","месеца","месеци"],y:["једну годину","једне године"],yy:["годину","године","година"]},correctGrammaticalCase:function(r,a){return r%10>=1&&r%10<=4&&(r%100<10||r%100>=20)?r%10===1?a[0]:a[1]:a[2]},translate:function(r,a,f,y){var S=hr.words[f],E;return f.length===1?f==="y"&&a?"једна година":y||a?S[0]:S[1]:(E=hr.correctGrammaticalCase(r,S),f==="yy"&&a&&E==="годину"?r+" година":r+" "+E)}};t.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){var r=["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"];return r[this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:hr.translate,m:hr.translate,mm:hr.translate,h:hr.translate,hh:hr.translate,d:hr.translate,dd:hr.translate,M:hr.translate,MM:hr.translate,y:hr.translate,yy:hr.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});//! moment.js locale configuration
var mr={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(r,a){return r%10>=1&&r%10<=4&&(r%100<10||r%100>=20)?r%10===1?a[0]:a[1]:a[2]},translate:function(r,a,f,y){var S=mr.words[f],E;return f.length===1?f==="y"&&a?"jedna godina":y||a?S[0]:S[1]:(E=mr.correctGrammaticalCase(r,S),f==="yy"&&a&&E==="godinu"?r+" godina":r+" "+E)}};t.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){var r=["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"];return r[this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:mr.translate,m:mr.translate,mm:mr.translate,h:mr.translate,hh:mr.translate,d:mr.translate,dd:mr.translate,M:mr.translate,MM:mr.translate,y:mr.translate,yy:mr.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});//! moment.js locale configuration
t.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(r,a,f){return r<11?"ekuseni":r<15?"emini":r<19?"entsambama":"ebusuku"},meridiemHour:function(r,a){if(r===12&&(r=0),a==="ekuseni")return r;if(a==="emini")return r>=11?r:r+12;if(a==="entsambama"||a==="ebusuku")return r===0?0:r+12},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}});//! moment.js locale configuration
t.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(r){var a=r%10,f=~~(r%100/10)===1?":e":a===1||a===2?":a":":e";return r+f},week:{dow:1,doy:4}});//! moment.js locale configuration
t.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}});//! moment.js locale configuration
var h_={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},m_={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"};t.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}வது/,ordinal:function(r){return r+"வது"},preparse:function(r){return r.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,function(a){return m_[a]})},postformat:function(r){return r.replace(/\d/g,function(a){return h_[a]})},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(r,a,f){return r<2?" யாமம்":r<6?" வைகறை":r<10?" காலை":r<14?" நண்பகல்":r<18?" எற்பாடு":r<22?" மாலை":" யாமம்"},meridiemHour:function(r,a){return r===12&&(r=0),a==="யாமம்"?r<2?r:r+12:a==="வைகறை"||a==="காலை"||a==="நண்பகல்"&&r>=10?r:r+12},week:{dow:0,doy:6}});//! moment.js locale configuration
t.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(r,a){if(r===12&&(r=0),a==="రాత్రి")return r<4?r:r+12;if(a==="ఉదయం")return r;if(a==="మధ్యాహ్నం")return r>=10?r:r+12;if(a==="సాయంత్రం")return r+12},meridiem:function(r,a,f){return r<4?"రాత్రి":r<10?"ఉదయం":r<17?"మధ్యాహ్నం":r<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}});//! moment.js locale configuration
t.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(r){var a=r%10,f=~~(r%100/10)===1?"th":a===1?"st":a===2?"nd":a===3?"rd":"th";return r+f},week:{dow:1,doy:4}});//! moment.js locale configuration
var Pa={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"};t.defineLocale("tg",{months:{format:"январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри".split("_"),standalone:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_")},monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Фардо соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(r,a){if(r===12&&(r=0),a==="шаб")return r<4?r:r+12;if(a==="субҳ")return r;if(a==="рӯз")return r>=11?r:r+12;if(a==="бегоҳ")return r+12},meridiem:function(r,a,f){return r<4?"шаб":r<11?"субҳ":r<16?"рӯз":r<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(r){var a=r%10,f=r>=100?100:null;return r+(Pa[r]||Pa[a]||Pa[f])},week:{dow:1,doy:7}});//! moment.js locale configuration
t.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(r){return r==="หลังเที่ยง"},meridiem:function(r,a,f){return r<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",w:"1 สัปดาห์",ww:"%d สัปดาห์",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}});//! moment.js locale configuration
var ql={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'ünji",4:"'ünji",100:"'ünji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};t.defineLocale("tk",{months:"Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr".split("_"),monthsShort:"Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek".split("_"),weekdays:"Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe".split("_"),weekdaysShort:"Ýek_Duş_Siş_Çar_Pen_Ann_Şen".split("_"),weekdaysMin:"Ýk_Dş_Sş_Çr_Pn_An_Şn".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[düýn] LT",lastWeek:"[geçen] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s soň",past:"%s öň",s:"birnäçe sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir gün",dd:"%d gün",M:"bir aý",MM:"%d aý",y:"bir ýyl",yy:"%d ýyl"},ordinal:function(r,a){switch(a){case"d":case"D":case"Do":case"DD":return r;default:if(r===0)return r+"'unjy";var f=r%10,y=r%100-f,S=r>=100?100:null;return r+(ql[f]||ql[y]||ql[S])}},week:{dow:1,doy:7}});//! moment.js locale configuration
t.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(r){return r},week:{dow:1,doy:4}});//! moment.js locale configuration
var kc="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function yp(r){var a=r;return a=r.indexOf("jaj")!==-1?a.slice(0,-3)+"leS":r.indexOf("jar")!==-1?a.slice(0,-3)+"waQ":r.indexOf("DIS")!==-1?a.slice(0,-3)+"nem":a+" pIq",a}function f_(r){var a=r;return a=r.indexOf("jaj")!==-1?a.slice(0,-3)+"Hu’":r.indexOf("jar")!==-1?a.slice(0,-3)+"wen":r.indexOf("DIS")!==-1?a.slice(0,-3)+"ben":a+" ret",a}function mi(r,a,f,y){var S=Jl(r);switch(f){case"ss":return S+" lup";case"mm":return S+" tup";case"hh":return S+" rep";case"dd":return S+" jaj";case"MM":return S+" jar";case"yy":return S+" DIS"}}function Jl(r){var a=Math.floor(r%1e3/100),f=Math.floor(r%100/10),y=r%10,S="";return a>0&&(S+=kc[a]+"vatlh"),f>0&&(S+=(S!==""?" ":"")+kc[f]+"maH"),y>0&&(S+=(S!==""?" ":"")+kc[y]),S===""?"pagh":S}t.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:yp,past:f_,s:"puS lup",ss:mi,m:"wa’ tup",mm:mi,h:"wa’ rep",hh:mi,d:"wa’ jaj",dd:mi,M:"wa’ jar",MM:mi,y:"wa’ DIS",yy:mi},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});//! moment.js locale configuration
var wp={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};t.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_Çar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),meridiem:function(r,a,f){return r<12?f?"öö":"ÖÖ":f?"ös":"ÖS"},meridiemParse:/öö|ÖÖ|ös|ÖS/,isPM:function(r){return r==="ös"||r==="ÖS"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(r,a){switch(a){case"d":case"D":case"Do":case"DD":return r;default:if(r===0)return r+"'ıncı";var f=r%10,y=r%100-f,S=r>=100?100:null;return r+(wp[f]||wp[y]||wp[S])}},week:{dow:1,doy:7}});//! moment.js locale configuration
t.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(r){return r.toLowerCase()==="d'o"},meridiem:function(r,a,f){return r>11?f?"d'o":"D'O":f?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:fr,ss:fr,m:fr,mm:fr,h:fr,hh:fr,d:fr,dd:fr,M:fr,MM:fr,y:fr,yy:fr},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});function fr(r,a,f,y){var S={s:["viensas secunds","'iensas secunds"],ss:[r+" secunds",""+r+" secunds"],m:["'n míut","'iens míut"],mm:[r+" míuts",""+r+" míuts"],h:["'n þora","'iensa þora"],hh:[r+" þoras",""+r+" þoras"],d:["'n ziua","'iensa ziua"],dd:[r+" ziuas",""+r+" ziuas"],M:["'n mes","'iens mes"],MM:[r+" mesen",""+r+" mesen"],y:["'n ar","'iens ar"],yy:[r+" ars",""+r+" ars"]};return y||a?S[f][0]:S[f][1]}//! moment.js locale configuration
t.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}});//! moment.js locale configuration
t.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",ss:"%d ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}});//! moment.js locale configuration
t.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,meridiemHour:function(r,a){return r===12&&(r=0),a==="يېرىم كېچە"||a==="سەھەر"||a==="چۈشتىن بۇرۇن"?r:a==="چۈشتىن كېيىن"||a==="كەچ"?r+12:r>=11?r:r+12},meridiem:function(r,a,f){var y=r*100+a;return y<600?"يېرىم كېچە":y<900?"سەھەر":y<1130?"چۈشتىن بۇرۇن":y<1230?"چۈش":y<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(r,a){switch(a){case"d":case"D":case"DDD":return r+"-كۈنى";case"w":case"W":return r+"-ھەپتە";default:return r}},preparse:function(r){return r.replace(/،/g,",")},postformat:function(r){return r.replace(/,/g,"،")},week:{dow:1,doy:7}});//! moment.js locale configuration
function Hm(r,a){var f=r.split("_");return a%10===1&&a%100!==11?f[0]:a%10>=2&&a%10<=4&&(a%100<10||a%100>=20)?f[1]:f[2]}function qi(r,a,f){var y={ss:a?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:a?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:a?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"};return f==="m"?a?"хвилина":"хвилину":f==="h"?a?"година":"годину":r+" "+Hm(y[f],+r)}function Zl(r,a){var f={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")},y;return r===!0?f.nominative.slice(1,7).concat(f.nominative.slice(0,1)):r?(y=/(\[[ВвУу]\]) ?dddd/.test(a)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(a)?"genitive":"nominative",f[y][r.day()]):f.nominative}function Ra(r){return function(){return r+"о"+(this.hours()===11?"б":"")+"] LT"}}t.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:Zl,weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:Ra("[Сьогодні "),nextDay:Ra("[Завтра "),lastDay:Ra("[Вчора "),nextWeek:Ra("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return Ra("[Минулої] dddd [").call(this);case 1:case 2:case 4:return Ra("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:qi,m:qi,mm:qi,h:"годину",hh:qi,d:"день",dd:qi,M:"місяць",MM:qi,y:"рік",yy:qi},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(r){return/^(дня|вечора)$/.test(r)},meridiem:function(r,a,f){return r<4?"ночі":r<12?"ранку":r<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(r,a){switch(a){case"M":case"d":case"DDD":case"w":case"W":return r+"-й";case"D":return r+"-го";default:return r}},week:{dow:1,doy:7}});//! moment.js locale configuration
var Xl=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],p=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];t.defineLocale("ur",{months:Xl,monthsShort:Xl,weekdays:p,weekdaysShort:p,weekdaysMin:p,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(r){return r==="شام"},meridiem:function(r,a,f){return r<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(r){return r.replace(/،/g,",")},postformat:function(r){return r.replace(/,/g,"،")},week:{dow:1,doy:4}});//! moment.js locale configuration
t.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}});//! moment.js locale configuration
t.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}});//! moment.js locale configuration
t.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(r){return/^ch$/i.test(r)},meridiem:function(r,a,f){return r<12?f?"sa":"SA":f?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần trước lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",w:"một tuần",ww:"%d tuần",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(r){return r},week:{dow:1,doy:4}});//! moment.js locale configuration
t.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(r){var a=r%10,f=~~(r%100/10)===1?"th":a===1?"st":a===2?"nd":a===3?"rd":"th";return r+f},week:{dow:1,doy:4}});//! moment.js locale configuration
t.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}});//! moment.js locale configuration
t.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(r,a){return r===12&&(r=0),a==="凌晨"||a==="早上"||a==="上午"?r:a==="下午"||a==="晚上"?r+12:r>=11?r:r+12},meridiem:function(r,a,f){var y=r*100+a;return y<600?"凌晨":y<900?"早上":y<1130?"上午":y<1230?"中午":y<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(r){return r.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(r){return this.week()!==r.week()?"[上]dddLT":"[本]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(r,a){switch(a){case"d":case"D":case"DDD":return r+"日";case"M":return r+"月";case"w":case"W":return r+"周";default:return r}},relativeTime:{future:"%s后",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",w:"1 周",ww:"%d 周",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}});//! moment.js locale configuration
t.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(r,a){if(r===12&&(r=0),a==="凌晨"||a==="早上"||a==="上午")return r;if(a==="中午")return r>=11?r:r+12;if(a==="下午"||a==="晚上")return r+12},meridiem:function(r,a,f){var y=r*100+a;return y<600?"凌晨":y<900?"早上":y<1200?"上午":y===1200?"中午":y<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(r,a){switch(a){case"d":case"D":case"DDD":return r+"日";case"M":return r+"月";case"w":case"W":return r+"週";default:return r}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}});//! moment.js locale configuration
t.defineLocale("zh-mo",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"D/M/YYYY",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(r,a){if(r===12&&(r=0),a==="凌晨"||a==="早上"||a==="上午")return r;if(a==="中午")return r>=11?r:r+12;if(a==="下午"||a==="晚上")return r+12},meridiem:function(r,a,f){var y=r*100+a;return y<600?"凌晨":y<900?"早上":y<1130?"上午":y<1230?"中午":y<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(r,a){switch(a){case"d":case"D":case"DDD":return r+"日";case"M":return r+"月";case"w":case"W":return r+"週";default:return r}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}});//! moment.js locale configuration
return t.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(r,a){if(r===12&&(r=0),a==="凌晨"||a==="早上"||a==="上午")return r;if(a==="中午")return r>=11?r:r+12;if(a==="下午"||a==="晚上")return r+12},meridiem:function(r,a,f){var y=r*100+a;return y<600?"凌晨":y<900?"早上":y<1130?"上午":y<1230?"中午":y<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(r,a){switch(a){case"d":case"D":case"DDD":return r+"日";case"M":return r+"月";case"w":case"W":return r+"週";default:return r}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}}),t.locale("en"),t}))})(Nf)),Nf.exports}var qP=KP();const Gc=zx(qP),JP={height:"30px",width:"100%",zIndex:1},ZP={position:"relative",top:"-30px",fontWeight:600,height:"30px",lineHeight:"30px",textAlign:"center",width:"100%",zIndex:2},XP={border:"0",borderCollapse:"collapse",height:"30px",padding:"0px",tableLayout:"fixed",width:"100%"},QP={backgroundColor:"#0078D4",height:"30px",padding:"0px"},eR={backgroundColor:"#DADADA",height:"30px",padding:"0px"},sS=o=>{const{processed:s,total:n}=o,t=D.useMemo(()=>Math.floor(100*(s/n)),[s,n]);return e.jsxs(e.Fragment,{children:[e.jsx("div",{style:JP,children:e.jsxs("table",{style:XP,children:[e.jsxs("colgroup",{children:[e.jsx("col",{width:`${t}%`}),e.jsx("col",{width:`${100-Math.floor(100*(s/n))}%`})]}),e.jsxs("tr",{children:[e.jsx("td",{style:QP}),e.jsx("td",{style:eR})]})]})}),e.jsx("div",{style:ZP,children:`${t}% [${s} / ${n}]`})]})},tR={fontWeight:600,color:"red"},Ha={color:"#0078D4"},nR={whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontSize:"12px",width:"inherit"},rR=[{key:"wp_id",name:"WP ID",minWidth:20,maxWidth:50,isResizable:!0},{key:"upn",name:"User Principal Name",minWidth:120,maxWidth:150,isResizable:!0},{key:"email",name:"Email",minWidth:120,maxWidth:150,isResizable:!0},{key:"record_type",name:"Type",minWidth:50,maxWidth:80,isResizable:!0},{key:"sync_job_status",name:"Status",minWidth:40,maxWidth:60,isResizable:!0},{key:"full_name",name:"Name",minWidth:50,maxWidth:80,isResizable:!0},{key:"notes",name:"Notes",minWidth:120,maxWidth:150,isResizable:!0}],oR=[{key:5,text:"5"},{key:10,text:"10"},{key:25,text:"25"},{key:50,text:"50"},{key:100,text:"100"},{key:500,text:"500"}],sR=(o,s,n)=>e.jsx(xn,{content:e.jsx("span",{children:o[n.key]}),id:`tooltip_${n.key}_${s}`,calloutProps:{gapSpace:0},styles:{root:{display:"inline-block"}},children:e.jsx("span",{style:nR,children:o[n.key]})}),iR=o=>{const{closeModal:s,job:n}=o,{env:{props:{restNonce:t,siteUrl:i}}}=D.useContext(Ye),[d,c]=D.useState([]),[u,h]=D.useState(null),[g,w]=D.useState(null),[m,x]=D.useState("initial"),[_,v]=D.useState("all"),[b,C]=D.useState(null),[k,L]=D.useState(10),[T,N]=D.useState(0),[Y,A]=D.useState(0),I=async()=>{N(0),x("loading");let W;try{if(!n.last||!n.last.id)throw"ID of the current / last run of this job not found.";const K=`${i.replace(new RegExp("[/]+$"),"")}/wp-json/wpo365/v1/sync/results/summary`,Z={jobId:n.last.id,keyword:b,status:_=="all"?null:_};W=await Ee.post(K,Z,{headers:{Accept:"application/json",ContentType:"application/json; odata=verbose","X-WP-Nonce":t}})}catch(K){if(x("errors"),K.response&&K.response.data){w(JSON.stringify(K.response.data));return}w(`Failed to retrieve summarized results for the current / last run of this job [${K.message?K.message:K.toString()}]`);return}x("initial"),h(W.data),W.data&&W.data.all&&A(parseInt(W.data.all))},R=async()=>{x("loading");let W;try{if(!n.last||!n.last.id)throw"ID of the current / last run of this job not found.";const K=`${i.replace(new RegExp("[/]+$"),"")}/wp-json/wpo365/v1/sync/results`,Z={jobId:n.last.id,pageSize:k,offset:T,keyword:b,status:_=="all"?null:_};W=await Ee.post(K,Z,{headers:{Accept:"application/json",ContentType:"application/json; odata=verbose","X-WP-Nonce":t}})}catch(K){x("errors"),K.response&&K.response.data&&w(JSON.stringify(K.response.data)),w(`Failed to retrieve results for the current / last run of this job [${K.message?K.message:K.toString()}]`);return}x("initial"),c(W.data)},H=(W=!1)=>{if(W&&T-k<0||!W&&Y-T-k<=0)return;const K=W?T-k:T+k;N(K)};return D.useEffect(()=>{I().then(()=>R())},[k,b,_]),D.useEffect(()=>{R()},[T]),e.jsxs(U,{tokens:{childrenGap:"15px"},children:[e.jsxs(U,{horizontal:!0,horizontalAlign:"space-between",verticalAlign:"center",children:[e.jsxs(U,{horizontal:!0,tokens:{childrenGap:"10px"},children:[e.jsx(Dn,{text:`All (${u?u.all:"0"})`,style:_=="all"?Ha:void 0,onClick:()=>v("all")}),e.jsx("span",{children:"|"}),e.jsx(Dn,{text:`Created (${u?u.created:"0"})`,style:_=="created"?Ha:void 0,onClick:()=>v("created")}),e.jsx("span",{children:"|"}),e.jsx(Dn,{text:`Updated (${u?u.updated:"0"})`,style:_=="updated"?Ha:void 0,onClick:()=>v("updated")}),e.jsx("span",{children:"|"}),e.jsx(Dn,{text:`Deactivated (${u?u.deactivated:"0"})`,style:_=="deactivated"?Ha:void 0,onClick:()=>v("deactivated")}),e.jsx("span",{children:"|"}),e.jsx(Dn,{text:`Deleted (${u?u.deleted:"0"})`,style:_=="deleted"?Ha:void 0,onClick:()=>v("deleted")}),e.jsx("span",{children:"|"}),e.jsx(Dn,{text:`Error (${u?u.error:"0"})`,style:_=="error"?Ha:void 0,onClick:()=>v("error")}),e.jsx("span",{children:"|"}),e.jsx(Dn,{text:`Logged (${u?u.logged:"0"})`,style:_=="logged"?Ha:void 0,onClick:()=>v("logged")}),e.jsx("span",{children:"|"}),e.jsx(Dn,{text:`Skipped (${u?u.skipped:"0"})`,style:_=="skipped"?Ha:void 0,onClick:()=>v("skipped")})]}),e.jsx(Ke,{iconProps:{iconName:"ChromeClose"},onClick:s})]}),e.jsx(Ub,{items:d,columns:rR,selectionMode:st.none,onRenderItemColumn:sR,enableShimmer:!d,listProps:{renderedWindowsAhead:0,renderedWindowsBehind:0},onShouldVirtualize:()=>!1,className:j.wpo365WzConstrainedResultsList}),e.jsx("div",{style:tR,children:g||""}),e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:"15px"},children:[e.jsx(dt,{onClick:()=>H(!0),iconProps:{iconName:"PlayReverse"},disabled:T-k<0,children:"Previous"}),e.jsx(qe,{selectedKey:k,placeholder:"Items per page",options:oR,onChange:(W,K)=>L(K.key)}),e.jsx(dt,{onClick:()=>H(),iconProps:{iconName:"Play"},disabled:Y-T-k<=0,children:"Next"}),e.jsx(MI,{styles:{root:{width:400}},placeholder:"Press enter to search by Entra ID User Principal Name",onSearch:W=>W&&W.length>=2?C(W):{},onClear:()=>C(null)}),m=="loading"&&e.jsx(Oe,{size:Te.small})]})]})},aR={fontWeight:600,color:"red"},lR=o=>{const{closeModal:s,job:n}=o,{env:t,env:{props:{restNonce:i,siteUrl:d}},settings:c}=D.useContext(Ye),[u,h]=D.useState(null),[g,w]=D.useState(null),[m,x]=D.useState(null),[_,v]=D.useState("initial"),b=L=>(L=L.indexOf("$count=true")>-1?L:`${L}${L.indexOf("?")>-1?"&":"?"}$count=true`,L=L.indexOf("$top=")>-1?L:`${L}${L.indexOf("?")>-1?"&":"?"}$top=10`,L),C=async()=>{v("loading");const{result:L}=o,T=n.query.indexOf("/"),N=n.query.indexOf("?"),Y=n.query.substring(0,T>-1?T:N>-1?N:void 0);`${d.replace(new RegExp("[/]+$"),"")}${Y}`;const A=m?m.substring(m.indexOf(`/${Y}`)+Y.length+2):k0(decodeURIComponent(b(n.query.substring(T>-1?T+1:N>-1?N:Y.length)))),I=new FormData;I.append("action","wpo365_test_sync_query"),I.append("nonce",t.nonce),I.append("ina",window.wpo365.wizard.props.ina),I.append("query",encodeURIComponent(A)),I.append("endpoint",encodeURIComponent(Y)),I.append("scope",encodeURIComponent("https://graph.microsoft.com/User.Read.All"));let R;try{if(R=await Ee.post(t.wpAjaxAdminUrl,I),v("initial"),R.data.status=="NOK"){w(`Failed to execute query "${n.query}" [${R.data.message}]`),L(parseInt(R.data.error_codes));return}return x(R.data.result&&typeof R.data.result=="object"&&"@odata.nextLink"in R.data.result?R.data.result["@odata.nextLink"]:null),L(parseInt(R.data.error_codes)),JSON.stringify(R.data.result,null,2)}catch(H){if(v("initial"),H.response&&H.response.data)return L(500),JSON.stringify(H.response.data);if(H.response&&H.response.status&&H.response.status==404){w("Could not connect to the WPO365 API for Microsoft Graph. Did you forget to enable the WPO365 API for Microsoft Graph or are you using a none-existing endpoint?"),L(404);return}w(`Failed to execute query "${n.query}" [${H.message?H.message:H.toString()}]`),L(500);return}},k=()=>{C().then(L=>h(L))};return D.useEffect(()=>{k()},[]),e.jsxs(U,{tokens:{childrenGap:"15px"},children:[e.jsxs(U,{horizontal:!0,horizontalAlign:"space-between",verticalAlign:"center",children:[e.jsxs(U,{horizontal:!0,tokens:{childrenGap:"10px"},children:[e.jsx(fd,{style:{fontWeight:600},children:"Query"}),e.jsx(fd,{children:b(decodeURIComponent(n.query))})]}),e.jsx(Ke,{iconProps:{iconName:"ChromeClose"},onClick:s})]}),e.jsx(Kp,{multiline:!0,style:{height:"calc(80vh - 200px)"},label:"Query Result",value:u||"No data received (yet)"}),e.jsx("div",{style:aR,children:g||""}),e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:"15px"},children:[e.jsx(dt,{onClick:()=>k(),iconProps:{iconName:"Play"},disabled:!m,children:"More"}),_=="loading"&&e.jsx(Oe,{size:Te.small})]})]})};var gr=(o=>(o.error="error",o.info="info",o.success="success",o))(gr||{});const Zr=o=>e.jsx("span",{className:`${j.wpo365Badge} ${j["__"+o.type]}`,children:o.children}),Ac={fontWeight:600,color:"red"},dR=o=>[{key:"runManually",text:"Run manually"},{key:"externalLink",text:"External link (start only)",disabled:!o},{key:"externalCron",text:"External link (start and continue)",disabled:!o},{key:"schedule",text:"WordPress CRON",disabled:!o}],cR=[{key:7,text:"Every day of the week"},{key:1,text:"Weekly, on Monday"},{key:2,text:"Weekly, on Tuesday"},{key:3,text:"Weekly, on Wednesday"},{key:4,text:"Weekly, on Thursday"},{key:5,text:"Weekly, on Friday"},{key:6,text:"Weekly, on Saturday"},{key:0,text:"Weekly, on Sunday"}],uR=[{key:0,text:"Now"},{key:1,text:"01:00 AM"},{key:7,text:"07:00 AM"},{key:13,text:"01:00 PM"},{key:19,text:"07:00 PM"}],kx=o=>{const s=[];return o.name||s.push("name"),(!o.query||!o.queryTested)&&s.push("query"),o.trigger&&o.trigger=="schedule"&&!o.schedule&&s.push("schedule"),o.sendLog&&!o.sendLogTo&&s.push("sendLogTo"),o.actionDeleteUser&&!o.softDeleteUsers&&o.reassignPostsToId==0&&s.push("reassignPostsToId"),s},Mx=o=>!!o&&o.charAt(0)!="/"&&o.charAt(o.length-1)!="/",jx=o=>{const s="You are synchronizing users. Please wait until the synchronization completes before leaving this page.";return o.preventDefault(),o.returnValue=s,s},Lx=o=>o&&o.last&&!o.last.stopped&&!o.last.error&&o.last.processed<o.last.total,pR=o=>{const{refreshSettings:s,saveUserSyncJobs:n}=o,{addOnNavigateHandler:t,appStatus:i,env:d,env:{props:{adminUrl:c,restNonce:u,siteUrl:h}},removeOnNavigateHandler:g,settings:w,updateAppStatus:m,updateLastErrorMessage:x}=D.useContext(Ye),[_,v]=D.useState({...o.job}),[b,C]=D.useState(Mx(o.job.query)),[k,L]=D.useState(kx(_)),[T,N]=D.useState(!1),[Y,A]=D.useState("initial"),[I,R]=D.useState(!1),[H,W]=D.useState(!1),[K,Z]=D.useState(null),[Q,B]=D.useState(!1),[P,X]=D.useState(Lx(_)),$=D.useRef(!1),ie=D.useRef(-1),le=D.useRef(P),V=D.useRef(Q),z=D.useRef(_);D.useEffect(()=>{v(o.job)},[o.refreshKey]);const J=Le=>new Promise((je,$e)=>{const Ct={title:"Important",subText:'You are navigating away whilst a manually started user synchronization is still being processed. If you click "OK" the requested page will load and user synchronization will not continue. Otherwise click "Cancel"',onDismiss:()=>{history.replaceState(null,null,document.location.pathname+document.location.search+"#userSync"),Z(null),je(!1)},onCancel:()=>{history.replaceState(null,null,document.location.pathname+document.location.search+"#userSync"),Z(null),je(!1)},onConfirm:()=>{g(J),Z(null),je(!0)}};Le!=Me.userSync&&Z(Ct)}),ee=async()=>{B(!0),await Ee.get(`${c.replace("wp-admin","").replace(new RegExp("[/]+$"),"")}/wp-cron.php`),await s(!0),setTimeout(()=>{le.current===!0?ee():B(!1)},1e3)};D.useEffect(()=>{const Le=setInterval(()=>{z.current.trigger=="runManually"&&le.current===!0&&V.current===!1&&ee()},1e4);return()=>clearInterval(Le)},[]),D.useEffect(()=>{L(kx(_)),X(Lx(_)),z.current=_},[_]),D.useEffect(()=>{Q?(t(J),window.addEventListener("beforeunload",jx,!0)):(g(J),window.removeEventListener("beforeunload",jx,!0)),V.current!=Q&&(V.current=Q)},[Q]),D.useEffect(()=>{le.current!=P&&(le.current=P)});const me=(Le="start")=>`${h}?wpo365_sync_run=${Le}&job_id=${_.id}`,te=(Le,je)=>{const $e=je.key=="schedule"?_.schedule:null;v({..._,trigger:je.key,schedule:$e})},G=async(Le=!1,je=null)=>{m("working");const $e=[...w.userSyncJobs];let Ct=Ja($e,At=>At.id==(je?je.id:_.id));Le?$e.splice(Ct,1):Ct==-1?$e.push(je||{..._}):$e[Ct]=je||{..._};try{if(Le){const At=`${h.replace(new RegExp("[/]+$"),"")}/wp-json/wpo365/v1/sync/delete`,Mt={jobId:je?je.id:_.id};await Ee.post(At,Mt,{headers:{Accept:"application/json",ContentType:"application/json; odata=verbose","X-WP-Nonce":u}})}await n($e)}catch(At){m("errors"),x(At.message||At);return}m("initial"),x(null)},ne=(Le,je)=>{const $e=_.schedule?_.schedule:{scheduledOn:7,scheduledAt:0};je=="scheduledOn"&&($e.scheduledOn=Le),je=="scheduledAt"&&($e.scheduledAt=Le),v({..._,schedule:$e})},Ue=async(Le,je)=>{if(m("working"),!Le){m("errors"),x("Please enter a valid email address");return}const $e=`${h.replace(new RegExp("[/]+$"),"")}/wp-json/wpo365/v1/users/search/unique`,Ct={keyword:Le};let At;try{if(At=await Ee.post($e,Ct,{headers:{Accept:"application/json",ContentType:"application/json; odata=verbose","X-WP-Nonce":u}}),!At.data)throw At.message?At.message:"Unknown error occurred. Please retry or check for technical details the Developer Tools > Console."}catch(Mt){if(m("errors"),Mt.response&&Mt.response.data){x(Mt.response.data.message);return}x(Mt.message||Mt);return}je&&je(At),m("initial"),x(null)},Ge=async()=>{if(m("working"),await G(!1,{..._,last:null}),k.length>0){m("errors"),x("The job is invalid. Please first update the configuration of this job before trying to run it.");return}B(!0);const Le=`${h.replace(new RegExp("[/]+$"),"")}/wp-json/wpo365/v1/sync/start`,je={jobId:_.id};let $e;try{$e=await Ee.post(Le,je,{headers:{Accept:"application/json",ContentType:"application/json; odata=verbose","X-WP-Nonce":u}}),ie.current=-1,await ee()}catch(Ct){if(await s(!0),m("errors"),Ct.response&&Ct.response.data){x(Ct.response.data.message);return}x(Ct.message||Ct);return}m("initial"),x(null)},Ut=async()=>{m("working");const Le=`${h.replace(new RegExp("[/]+$"),"")}/wp-json/wpo365/v1/sync/stop`,je={jobId:_.id};try{await Ee.post(Le,je,{headers:{Accept:"application/json",ContentType:"application/json; odata=verbose","X-WP-Nonce":u}}),await s(!0)}catch($e){if(m("errors"),$e.response&&$e.response.data){x($e.response.data.message);return}x($e.message||$e);return}m("initial"),x(null)},ht=async()=>{if(await G(),m("working"),k.length>0){m("errors"),x("The job is invalid. Please first update the configuration of this job before trying to schedule it.");return}const Le=`${h.replace(new RegExp("[/]+$"),"")}/wp-json/wpo365/v1/sync/schedule`,je={jobId:_.id};try{await Ee.post(Le,je,{headers:{Accept:"application/json",ContentType:"application/json; odata=verbose","X-WP-Nonce":u}}),await s(!0)}catch($e){if(m("errors"),$e.response&&$e.response.data){x($e.response.data.message);return}x($e.message||$e);return}await s(),m("initial"),x(null)};return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:j.wpo365WzUserSyncJobEditorContainer,children:e.jsxs("table",{className:j.wpo365WzTable,style:{tableLayout:"fixed"},children:[e.jsxs("colgroup",{children:[e.jsx("col",{width:"50%"}),e.jsx("col",{width:"50%"})]}),e.jsx("tbody",{children:e.jsxs("tr",{children:[e.jsx("td",{children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:"15px"},children:[e.jsx(Ke,{iconProps:{iconName:T?"ChevronDown":"ChevronRight"},onClick:()=>N(!T)}),e.jsx("span",{style:{fontWeight:600,cursor:"pointer"},onClick:()=>N(!T),children:_.name?_.name:_.id})]})}),e.jsx("td",{children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:"15px"},children:[e.jsxs("span",{children:[_.last&&e.jsx("span",{children:`Last run: ${Gc(new Date(_.last.date*1e3)).format("l LT")}`}),!_.last&&e.jsx("em",{children:"This job has never run"})]}),e.jsx(Ke,{iconProps:{iconName:"Refresh"},title:"Refresh",ariaLabel:"Refresh",onClick:async()=>await s()})]})})]})}),T&&e.jsxs("tbody",{children:[e.jsxs("tr",{children:[e.jsx("td",{children:"Type"}),e.jsx("td",{children:"Entra ID -> WordPress"})]}),e.jsxs("tr",{children:[e.jsx("td",{style:k.indexOf("name")>-1?Ac:void 0,children:"Name"}),e.jsx("td",{children:e.jsx(fe,{isValid:(Le,je)=>!0,onValid:Le=>v({..._,name:Le}),bound:!1,value:_.name,disabled:Q||P})})]}),e.jsxs("tr",{children:[e.jsx("td",{children:"ID"}),e.jsx("td",{children:_.id})]}),e.jsxs("tr",{children:[e.jsx("td",{style:k.indexOf("query")>-1?Ac:void 0,children:"Query"}),e.jsx("td",{children:e.jsx(fe,{isValid:(Le,je)=>{const $e=Mx(je);return C($e),$e},onValid:Le=>v({..._,query:k0(Le)}),errorMessage:'Microsoft Graph Query should not start or end with "/"',bound:!1,value:_.query?decodeURIComponent(_.query):"",disabled:Q||P})})]}),e.jsxs("tr",{children:[e.jsx("td",{}),e.jsx("td",{children:e.jsxs(U,{horizontal:!0,tokens:{childrenGap:"15px"},style:{alignItems:"center"},children:[e.jsx(dt,{onClick:()=>{A("testing")},iconProps:{iconName:"Filter"},disabled:!_.query||Q||P||!b,children:"Test query"}),e.jsx(ce,{disabled:!0,checked:_.queryTested,label:_.queryTested?"Query tested successfully":"Query not tested successfully"})]})})]}),e.jsxs("tr",{children:[e.jsx("td",{}),e.jsx("td",{children:e.jsxs("div",{style:{maxWidth:"400px"},children:[e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:"15px"},children:[e.jsx(Ke,{iconProps:{iconName:I?"ChevronDown":"ChevronRight"},onClick:()=>R(!I)}),e.jsx("span",{style:{fontWeight:600,cursor:"pointer"},onClick:()=>R(!I),children:"Show sample queries"})]}),I&&e.jsxs(U,{tokens:{childrenGap:"5px"},children:[e.jsxs(U,{tokens:{childrenGap:"0px"},children:[e.jsxs("span",{style:{fontWeight:600},children:["Get all non-disabled ",e.jsx("em",{children:"internal"})," users from Entra ID."]}),e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:"15px"},children:[e.jsx("span",{children:"myorganization/users?$filter=accountEnabled eq true and userType eq 'member'&$top=10"}),e.jsx(Ke,{iconProps:{iconName:"Add"},onClick:()=>v({..._,query:"myorganization/users?$filter=accountEnabled%20eq%20true%20and%20userType%20eq%20%27member%27&$top=10"}),disabled:Q||P})]})]}),e.jsxs(U,{tokens:{childrenGap:"0px"},children:[e.jsx("span",{style:{fontWeight:600},children:"Get all (nested) members from an Entra ID group."}),e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:"15px"},children:[e.jsx("span",{children:"groups/---Your Entra ID Group ID goes here---/transitiveMembers?$top=10"}),e.jsx(Ke,{iconProps:{iconName:"Add"},onClick:()=>v({..._,query:"groups/---Your Entra ID Group ID goes here---/transitiveMembers?$top=10"}),disabled:Q||P})]})]})]})]})})]}),e.jsxs("tr",{children:[e.jsx("td",{children:"Actions"}),e.jsx("td",{children:e.jsxs(U,{tokens:{childrenGap:"5px"},children:[e.jsx(ce,{label:"Create users",checked:_.actionCreateUser,onChange:(Le,je)=>v({..._,actionCreateUser:je}),disabled:Q||P}),e.jsx(ce,{label:"Update users",checked:_.actionUpdateUser,onChange:(Le,je)=>v({..._,actionUpdateUser:je}),disabled:Q||P}),e.jsx(ce,{disabled:w.userSyncJobs.length>1||Q||P,label:"Delete users",checked:_.actionDeleteUser,onChange:(Le,je)=>v({..._,actionDeleteUser:je})}),_.actionDeleteUser&&e.jsx(ce,{disabled:w.userSyncJobs.length>1||Q||P,label:"Soft-delete users",checked:_.softDeleteUsers,onChange:(Le,je)=>v({..._,softDeleteUsers:je})})]})})]}),_.actionDeleteUser&&!_.softDeleteUsers&&e.jsxs("tr",{children:[e.jsx("td",{style:k.indexOf("reassignPostsToId")>-1?Ac:void 0,children:"Re-assign posts to"}),e.jsx("td",{children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:"15px"},children:[e.jsx(fe,{disabled:w.userSyncJobs.length>1||Q||P,isValid:(Le,je)=>!0,onValid:Le=>{$.current?$.current=!1:v({..._,reassignPostsTo:Le,reassignPostsToId:0})},bound:!1,value:_.reassignPostsTo}),e.jsx(dt,{disabled:i!="initial"||_.reassignPostsToId>0||Q||P,iconProps:{iconName:"UserFollowed"},onClick:async()=>Ue(_.reassignPostsTo,Le=>{$.current=!0,v({..._,reassignPostsTo:Le.data.user_login,reassignPostsToId:parseInt(""+Le.data.ID)})}),children:"Check user"})]})})]}),e.jsxs("tr",{children:[e.jsx("td",{children:"External identities"}),e.jsx("td",{children:e.jsx(ce,{label:"Ignore external identities",checked:_.membersOnly,onChange:(Le,je)=>v({..._,membersOnly:je}),disabled:Q||P})})]}),e.jsxs("tr",{children:[e.jsx("td",{children:"Custom domains"}),e.jsx("td",{children:e.jsx(ce,{label:"Skip domain check",checked:_.skipDomainCheck,onChange:(Le,je)=>v({..._,skipDomainCheck:je}),disabled:Q||P})})]}),e.jsxs("tr",{children:[e.jsx("td",{children:"Trigger"}),e.jsx("td",{children:e.jsx(_g,{defaultSelectedKey:_.trigger,options:dR(w.useAppOnlyToken&&!!w.appOnlyApplicationId&&!!w.appOnlyApplicationSecret),onChange:te,required:!0,disabled:Q||P})})]}),_.trigger=="schedule"&&e.jsxs("tr",{children:[e.jsx("td",{style:k.indexOf("schedule")>-1?Ac:void 0,children:"Schedule"}),e.jsx("td",{children:e.jsxs(U,{horizontal:!0,tokens:{childrenGap:"5px"},children:[e.jsx(qe,{options:cR,selectedKey:_.schedule?_.schedule.scheduledOn:null,onChange:(Le,je)=>ne(je.key,"scheduledOn"),style:{width:"300px"},disabled:Q||P}),e.jsx(qe,{options:uR,selectedKey:_.schedule?_.schedule.scheduledAt:null,onChange:(Le,je)=>ne(je.key,"scheduledAt"),style:{width:"95px"},disabled:Q||P})]})})]}),(_.trigger=="externalLink"||_.trigger=="externalCron")&&e.jsxs("tr",{children:[e.jsx("td",{children:"External link to start user synchronization"}),e.jsx("td",{children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:"15px"},children:[e.jsx("span",{children:me()}),e.jsx(Ke,{iconProps:{iconName:"Copy"},onClick:()=>navigator.clipboard.writeText(me())})]})})]}),_.trigger=="externalCron"&&e.jsxs("tr",{children:[e.jsx("td",{children:"External link to process subsequent batches"}),e.jsx("td",{children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:"15px"},children:[e.jsx("span",{children:me("next")}),e.jsx(Ke,{iconProps:{iconName:"Copy"},onClick:()=>navigator.clipboard.writeText(me("next"))})]})})]}),e.jsxs("tr",{children:[e.jsx("td",{children:"Last / Current run"}),e.jsxs("td",{children:[_.last&&e.jsxs("table",{children:[e.jsxs("colgroup",{children:[e.jsx("col",{width:"100px"}),e.jsx("col",{width:"300px"})]}),e.jsxs("tbody",{children:[e.jsxs("tr",{children:[e.jsx("th",{children:"ID"}),e.jsx("td",{children:_.last.id})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Started"}),e.jsx("td",{children:Gc(new Date(_.last.date*1e3)).format("l LT")})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Status"}),e.jsxs("td",{children:[_.last.stopped&&e.jsx(Zr,{type:_.last.error?gr.error:gr.success,children:"Stopped"}),P&&e.jsx(Zr,{type:gr.info,children:"Processing"})]})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Total"}),e.jsx("td",{children:_.last.total})]}),e.jsxs("tr",{children:[e.jsx("th",{style:{lineHeight:"40px"},children:"Progress"}),e.jsx("td",{children:e.jsx(sS,{processed:_.last.processed,total:_.last.total})})]}),_.last.error&&e.jsxs("tr",{children:[e.jsx("th",{children:"Last error"}),e.jsx("td",{children:_.last.error})]})]})]}),!_.last&&e.jsx("em",{children:"This job has never run"})]})]}),e.jsxs("tr",{children:[e.jsx("td",{children:"Next run"}),e.jsxs("td",{children:[_.next&&e.jsx("span",{children:Gc((_.next+new Date().getTimezoneOffset()*60)*1e3).format("l LT")}),!_.next&&e.jsx("em",{children:"This job has not been scheduled yet"})]})]}),e.jsxs("tr",{children:[e.jsx("td",{children:"Send log"}),e.jsx("td",{children:e.jsx(ce,{checked:_.sendLog,onChange:(Le,je)=>v({..._,sendLog:je}),disabled:Q||P})})]}),_.sendLog&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("td",{style:k.indexOf("sendLogTo")>-1?Ac:void 0,children:"Send email to"}),e.jsx("td",{children:e.jsx(fe,{isValid:(Le,je)=>!0,onValid:Le=>v({..._,sendLogTo:Le}),bound:!1,value:_.sendLogTo,disabled:Q||P})})]}),e.jsxs("tr",{children:[e.jsx("td",{children:"Only send log on failure"}),e.jsx("td",{children:e.jsx(Ht,{requiredVersions:[{addOn:l.wpo365LoginPremium,minVersion:24},{addOn:l.wpo365Sync5y,minVersion:24},{addOn:l.wpo365LoginIntranet,minVersion:24},{addOn:l.wpo365Intranet5y,minVersion:24},{addOn:l.wpo365Customers,minVersion:24},{addOn:l.wpo365Integrate,minVersion:24}],children:e.jsx(ce,{checked:_.sendLogOnError,onChange:(Le,je)=>v({..._,sendLogOnError:je}),disabled:Q||P})})})]})]}),e.jsx("tr",{children:e.jsx("td",{style:{height:"10px"},children:" "})}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsxs(U,{horizontal:!0,tokens:{childrenGap:"10px"},children:[e.jsx(dt,{onClick:async()=>G(),iconProps:{iconName:"Save"},disabled:k.length!=0||i=="working"||Q||P,children:"Save"}),_.trigger=="runManually"&&e.jsx(dt,{onClick:Ge,iconProps:{iconName:"Play"},disabled:k.length!=0||i=="working"||Q||P,children:"Save + Run now"}),e.jsx(dt,{onClick:Ut,iconProps:{iconName:"Stop"},disabled:i=="working"||!P,children:"Stop"}),_.trigger=="schedule"&&e.jsx(dt,{onClick:ht,iconProps:{iconName:"Clock"},disabled:k.length!=0||i=="working"||!w.useAppOnlyToken||!w.appOnlyApplicationId||!w.appOnlyApplicationSecret||Q||P,children:"Save + Schedule"}),e.jsx(dt,{onClick:()=>W(!0),iconProps:{iconName:"ShowResults"},disabled:!_.last||i=="working"||Q,children:"View results"}),e.jsx(dt,{onClick:()=>G(!0),iconProps:{iconName:"Delete"},disabled:i=="working"||Q,children:"Delete"}),Q&&e.jsx(Oe,{size:Te.small})]})})}),k.length>0&&e.jsx("tr",{children:e.jsx("td",{children:e.jsx("ul",{style:{paddingLeft:0,listStyle:"none"},children:k.map(Le=>{let je="";return Le=="name"&&(je="Please enter a name for this job"),Le=="query"&&(je="Please test the query for this job"),Le=="schedule"&&(je="Please enter a valid WP CRON schedule"),Le=="sendLogTo"&&(je="Please enter a valid email address to send the log file"),Le=="reassignPostsToId"&&(je="Please enter a user who posts will be re-assigned to"),e.jsx("li",{style:Ac,children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:"5px"},children:[e.jsx(ze,{iconName:"Warning"}),e.jsx("span",{children:je})]})})})})})})]})]})}),e.jsx(Zc,{scrollableContentClassName:j.wpo365WzModalContainerScrollable,containerClassName:j.wpo365WzModalContainer,isOpen:H,onDismiss:()=>W(!1),children:e.jsx(iR,{job:_,closeModal:()=>W(!1)})}),e.jsx(Zc,{containerClassName:j.wpo365WzModalContainer,isOpen:Y=="testing",onDismiss:()=>A("initial"),children:e.jsx(lR,{job:_,closeModal:()=>A("initial"),result:Le=>v({..._,queryTested:Le>=200&&Le<300})})}),K&&e.jsx(Bo,{onCancel:K.onCancel,onConfirm:K.onConfirm,onDismiss:K.onDismiss,title:K.title,subText:K.subText})]})},Ex=()=>({actionCreateUser:!1,actionDeleteUser:!1,actionUpdateUser:!1,externalLink:null,id:Zt(32),last:null,membersOnly:!0,name:null,next:null,query:"myorganization/users?$filter=accountEnabled%20eq%20true%20and%20userType%20eq%20%27member%27&$top=10",queryTested:!1,reassignPostsTo:null,reassignPostsToId:0,schedule:null,sendLog:!1,sendLogTo:null,sendLogOnError:!1,skipDomainCheck:!0,softDeleteUsers:!0,status:"initial",trigger:"runManually",type:"default"}),hR=()=>({actionCreateUser:!1,actionDeleteUser:!1,actionUpdateUser:!1,externalLink:null,id:Zt(32),last:null,membersOnly:!1,name:null,next:null,query:null,queryTested:!1,reassignPostsTo:null,reassignPostsToId:0,schedule:null,sendLog:!1,sendLogOnError:!1,sendLogTo:null,skipDomainCheck:!0,softDeleteUsers:!0,status:"initial",trigger:"runManually",type:"wpToAad"}),mR={maxWidth:400},za=o=>{if(!o)return["",""];const s=o.lastIndexOf("::");return s===-1?[void 0,o]:[o.slice(0,s+2),o.slice(s+2)]},Dx=o=>{const{vertical:s,triplets:n,onChanged:t}=o,[i,d]=D.useState(n.map(_=>_.map(v=>({...v})))),[c,u]=D.useState(o.newTriplet.map(_=>({..._}))),[h,g]=D.useState("");D.useEffect(()=>{JSON.stringify(n)!=JSON.stringify(i)&&t([...i])},[i]);const w=()=>{for(let v=0;v<c.length;v++)if(!c[v].value){g("Please make sure to fill in all the fields"),setTimeout(()=>g(""),3e3);return}const _=[...i];_.push(c.map(v=>({...v}))),d(_),u(o.newTriplet.map(v=>({...v})))},m=_=>{const v=i.filter(b=>!0);v.splice(_,1),d(v)},x=D.useMemo(()=>Zt(6),[]);return e.jsx("div",{style:mR,children:e.jsxs(U,{tokens:{childrenGap:"10px"},children:[i.map((_,v)=>e.jsxs(e.Fragment,{children:[_.map((b,C)=>Array.isArray(c[C].prefixes)&&c[C].prefixes.length>0?e.jsxs(U,{horizontal:!0,tokens:{childrenGap:10},verticalAlign:"center",children:[e.jsx(qe,{style:{maxWidth:"80px"},options:c[C].prefixes.map(k=>({key:k,text:k})),onChange:(k,L)=>{const T=String(b.value),N=za(T),Y=`${String(L.key)}${N[1]}`,A=[...i];A[v][C].value=Y,d(A)},selectedKey:za(String(b.value))[0],placeholder:"Select"}),e.jsx(fe,{placeholder:b.placeholder?b.placeholder:c[C].placeholder,bound:!1,value:za(String(b.value))[1],onValid:k=>{const L=[...i],T=za(String(b.value));L[v][C].value=`${T[0]}${k}`,d(L)},id:`wpo_te_${x}_${v}_${C}`})]}):c[C].options&&c[C].options.length>0?e.jsx(qe,{style:{maxWidth:"400px"},options:c[C].options.map(k=>({key:k,text:k})),onChange:(k,L)=>{const T=[...i];T[v][C].value=L.key,d(T)},selectedKey:String(b.value),placeholder:b.placeholder?b.placeholder:c[C].placeholder}):e.jsx(fe,{placeholder:b.placeholder?b.placeholder:c[C].placeholder,bound:!1,value:String(b.value.toString()),onValid:k=>{const L=[...i];L[v][C].value=k,d(L)},id:`wpo_te_${x}_${v}_${C}`})),e.jsx(U.Item,{align:"end",children:e.jsx(Ke,{onClick:()=>m(v),iconProps:{iconName:"Delete"},title:"Delete",ariaLabel:"Click to delete this item",style:{fontSize:"12px",lineHeight:"30px",height:"30px",width:"30px",margin:"0px 0px 0px -30px",padding:0,cursor:"pointer"}})})]})),c.map((_,v)=>Array.isArray(_.prefixes)&&_.prefixes.length>0?e.jsxs(U,{horizontal:!0,tokens:{childrenGap:10},verticalAlign:"center",children:[e.jsx(qe,{style:{maxWidth:"80px"},options:_.prefixes.map(b=>({key:b,text:b})),onChange:(b,C)=>{const k=c.map(Y=>({...Y})),L=String(_.value),T=za(L),N=`${String(C.key)}${T[1]}`;console.debug(`Prefix for newTriplet: ${N}`),k[v].value=N,u(k)},selectedKey:za(String(_.value))[0],placeholder:"Select"}),e.jsx(fe,{placeholder:_.placeholder?_.placeholder:c[v].placeholder,bound:!1,value:za(_.value)[1],onValid:b=>{const C=c.map(L=>({...L})),k=za(String(_.value));C[v].value=`${k[0]}${b}`,u(C)},id:`wpo_te_${x}_${i.length}_${v}`})]}):_.options&&_.options.length>0?e.jsx(qe,{style:{maxWidth:"400px"},options:_.options.map(b=>({key:b,text:b})),onChange:(b,C)=>{const k=c.map(L=>({...L}));k[v].value=C.key.toString(),u(k)},selectedKey:_.value.toString(),placeholder:_.placeholder?_.placeholder:c[v].placeholder}):e.jsx(fe,{placeholder:_.placeholder,bound:!1,value:_.value.toString(),onValid:b=>{const C=c.map(k=>({...k}));C[v].value=b,u(C)},id:`wpo_te_${x}_${i.length}_${v}`})),h&&e.jsx("div",{children:e.jsx("span",{style:{paddingLeft:"15px",lineHeight:"30px",color:"#cc0000"},children:h})}),e.jsx(U.Item,{align:"end",children:e.jsx(Ke,{onClick:w,iconProps:{iconName:"Add"},title:"Add",ariaLabel:"Click to add this item",style:{fontSize:"12px",lineHeight:"30px",height:"30px",width:"30px",margin:"0px 0px 0px -30px",padding:0,cursor:"pointer"}})})]})})},Lp={fontWeight:600,color:"red"},fR={fontWeight:600,color:"#378805"},gR={fontSize:"6px"},_R=o=>[{key:"runManually",text:"Run manually"},{key:"externalLink",text:"External link",disabled:!o},{key:"schedule",text:"WordPress CRON",disabled:!o}],yR=[{key:7,text:"Every day of the week"},{key:1,text:"Weekly, on Monday"},{key:2,text:"Weekly, on Tuesday"},{key:3,text:"Weekly, on Wednesday"},{key:4,text:"Weekly, on Thursday"},{key:5,text:"Weekly, on Friday"},{key:6,text:"Weekly, on Saturday"},{key:0,text:"Weekly, on Sunday"}],wR=[{key:0,text:"Now"},{key:1,text:"01:00 AM"},{key:7,text:"07:00 AM"},{key:13,text:"01:00 PM"},{key:19,text:"07:00 PM"}],Ix=o=>{const s=[];return o.name||s.push("name"),o.trigger&&o.trigger=="schedule"&&!o.schedule&&s.push("schedule"),o.sendLog&&!o.sendLogTo&&s.push("sendLogTo"),s},Tx=o=>{const s="You are synchronizing users. Please wait until the synchronization completes before leaving this page.";return o.preventDefault(),o.returnValue=s,s},Ax=o=>o&&o.last&&!o.last.stopped&&!o.last.error&&o.last.processed<o.last.total,vR=o=>{const{refreshSettings:s,saveUserSyncJobs:n,availableRoles:t}=o,{addOnNavigateHandler:i,appStatus:d,env:c,env:{props:{adminUrl:u,restNonce:h,siteUrl:g}},removeOnNavigateHandler:w,settings:m,updateAppStatus:x,updateLastErrorMessage:_}=D.useContext(Ye),[v,b]=D.useState({...o.job}),[C,k]=D.useState(Ix(v)),[L,T]=D.useState(!1),[N,Y]=D.useState(null),[A,I]=D.useState(!1),[R,H]=D.useState(Ax(v)),W=D.useRef(-1),K=D.useRef(R),Z=D.useRef(A),Q=D.useRef(v);D.useEffect(()=>{b(o.job)},[o.refreshKey]);const B=ee=>new Promise((me,te)=>{const G={title:"Important",subText:'You are navigating away whilst a manually started user synchronization is still being processed. If you click "OK" the requested page will load and user synchronization will not continue. Otherwise click "Cancel"',onDismiss:()=>{history.replaceState(null,null,document.location.pathname+document.location.search+"#userSync"),Y(null),me(!1)},onCancel:()=>{history.replaceState(null,null,document.location.pathname+document.location.search+"#userSync"),Y(null),me(!1)},onConfirm:()=>{w(B),Y(null),me(!0)}};ee!=Me.userSync&&Y(G)}),P=async()=>{I(!0),await Ee.get(`${u.replace("wp-admin","").replace(new RegExp("[/]+$"),"")}/wp-cron.php`),await s(!0),setTimeout(()=>{K.current===!0?P():I(!1)},1e3)};D.useEffect(()=>{const ee=setInterval(()=>{Q.current.trigger=="runManually"&&K.current===!0&&Z.current===!1&&(console.log("Triggering cron ..."),P())},1e4);return()=>clearInterval(ee)},[]),D.useEffect(()=>{k(Ix(v)),H(Ax(v)),Q.current=v},[v]),D.useEffect(()=>{A?(i(B),window.addEventListener("beforeunload",Tx,!0)):(w(B),window.removeEventListener("beforeunload",Tx,!0)),Z.current!=A&&(Z.current=A)},[A]),D.useEffect(()=>{K.current!=R&&(K.current=R)});const X=()=>`${g}?wpo365_sync_run=start&job_id=${v.id}&type=wpToAad`,$=(ee,me)=>{const te=me.key=="schedule"?v.schedule:null,G=me.key=="externalLink"&&v.externalLink?v.externalLink:X();b({...v,trigger:me.key,schedule:te,externalLink:G})},ie=async(ee=!1,me=null)=>{x("working");const te=[...m.userSyncJobs];let G=Ja(te,ne=>ne.id==(me?me.id:v.id));ee?te.splice(G,1):G==-1?te.push(me||{...v}):te[G]=me||{...v};try{if(ee){const ne=`${g.replace(new RegExp("[/]+$"),"")}/wp-json/wpo365/v1/sync/delete`,Ue={jobId:me?me.id:v.id,type:"wpToAad"};await Ee.post(ne,Ue,{headers:{Accept:"application/json",ContentType:"application/json; odata=verbose","X-WP-Nonce":h}})}await n(te)}catch(ne){x("errors"),_(ne.message||ne);return}x("initial"),_(null)},le=(ee,me)=>{const te=v.schedule?v.schedule:{scheduledOn:7,scheduledAt:0};me=="scheduledOn"&&(te.scheduledOn=ee),me=="scheduledAt"&&(te.scheduledAt=ee),b({...v,schedule:te})},V=async()=>{if(x("working"),await ie(!1,{...v,last:null}),C.length>0){x("errors"),_("The job is invalid. Please first update the configuration of this job before trying to run it.");return}I(!0);const ee=`${g.replace(new RegExp("[/]+$"),"")}/wp-json/wpo365/v1/sync/start`,me={jobId:v.id,type:"wpToAad"};let te;try{te=await Ee.post(ee,me,{headers:{Accept:"application/json",ContentType:"application/json; odata=verbose","X-WP-Nonce":h}}),W.current=-1,await P()}catch(G){if(await s(!0),x("errors"),G.response&&G.response.data){_(G.response.data.message);return}_(G.message||G);return}x("initial"),_(null)},z=async()=>{x("working");const ee=`${g.replace(new RegExp("[/]+$"),"")}/wp-json/wpo365/v1/sync/stop`,me={jobId:v.id,type:"wpToAad"};try{await Ee.post(ee,me,{headers:{Accept:"application/json",ContentType:"application/json; odata=verbose","X-WP-Nonce":h}}),await s(!0)}catch(te){if(x("errors"),te.response&&te.response.data){_(te.response.data.message);return}_(te.message||te);return}x("initial"),_(null)},J=async()=>{if(await ie(),x("working"),C.length>0){x("errors"),_("The job is invalid. Please first update the configuration of this job before trying to schedule it.");return}const ee=`${g.replace(new RegExp("[/]+$"),"")}/wp-json/wpo365/v1/sync/schedule`,me={jobId:v.id,type:"wpToAad"};try{await Ee.post(ee,me,{headers:{Accept:"application/json",ContentType:"application/json; odata=verbose","X-WP-Nonce":h}}),await s(!0)}catch(te){if(x("errors"),te.response&&te.response.data){_(te.response.data.message);return}_(te.message||te);return}await s(),x("initial"),_(null)};return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:j.wpo365WzUserSyncJobEditorContainer,children:e.jsxs("table",{className:j.wpo365WzTable,style:{tableLayout:"fixed"},children:[e.jsxs("colgroup",{children:[e.jsx("col",{width:"50%"}),e.jsx("col",{width:"50%"})]}),e.jsx("tbody",{children:e.jsxs("tr",{children:[e.jsx("td",{children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:"15px"},children:[e.jsx(Ke,{iconProps:{iconName:L?"ChevronDown":"ChevronRight"},onClick:()=>T(!L)}),e.jsx("span",{style:{fontWeight:600,cursor:"pointer"},onClick:()=>T(!L),children:v.name?v.name:v.id})]})}),e.jsx("td",{children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:"15px"},children:[e.jsxs("span",{children:[v.last&&e.jsx("span",{children:`Last run: ${Gc(new Date(v.last.date*1e3)).format("l LT")}`}),!v.last&&e.jsx("em",{children:"This job has never run"})]}),e.jsx(Ke,{iconProps:{iconName:"Refresh"},title:"Refresh",ariaLabel:"Refresh",onClick:async()=>await s()})]})})]})}),L&&e.jsxs("tbody",{children:[e.jsxs("tr",{children:[e.jsx("td",{children:"Type"}),e.jsx("td",{children:"WordPress -> AAD B2C"})]}),e.jsxs("tr",{children:[e.jsx("td",{style:C.indexOf("name")>-1?Lp:void 0,children:"Name"}),e.jsx("td",{children:e.jsx(fe,{isValid:(ee,me)=>!0,onValid:ee=>b({...v,name:ee}),bound:!1,value:v.name,disabled:A||R})})]}),e.jsxs("tr",{children:[e.jsx("td",{children:"ID"}),e.jsx("td",{children:v.id})]}),e.jsxs("tr",{children:[e.jsx("td",{children:"Actions"}),e.jsx("td",{children:e.jsxs(U,{tokens:{childrenGap:"5px"},children:[e.jsx(ce,{label:"Create users",checked:!0,onChange:()=>{},disabled:!0}),e.jsx(ce,{label:"Update users",checked:v.actionUpdateUser,onChange:(ee,me)=>b({...v,actionUpdateUser:me}),disabled:A||R}),e.jsx(ce,{label:"Reset password for WP users",checked:v.data&&"passwordReset"in v.data&&v.data.passwordReset.toLowerCase()=="true",onChange:(ee,me)=>{const te=me?"true":"false",G=v.data?{...v.data,passwordReset:te}:{passwordReset:te};b({...v,data:G})},disabled:A||R})]})})]}),e.jsxs("tr",{children:[e.jsx("td",{children:"Page size"}),e.jsx("td",{children:e.jsx(qe,{onChange:(ee,me)=>b({...v,pageSize:parseInt(me.key)}),placeholder:"Select a page size",options:[{key:"2",text:"2"},{key:"5",text:"5"},{key:"10",text:"10"},{key:"25",text:"25"},{key:"50",text:"50"},{key:"100",text:"100"}],style:{maxWidth:"400px"},selectedKey:v.pageSize?v.pageSize.toString():"25"})})]}),e.jsxs("tr",{children:[e.jsx("td",{children:"Excluded roles"}),e.jsx("td",{children:e.jsx(Vc,{list:v.excludedRoles?[...v.excludedRoles]:[],onListChanged:ee=>b({...v,excludedRoles:[...ee]}),options:t,placeholder:he.infoWordPressRole})})]}),e.jsxs("tr",{children:[e.jsx("td",{children:"Trigger"}),e.jsx("td",{children:e.jsx(_g,{defaultSelectedKey:v.trigger,options:_R(m.useAppOnlyToken&&!!m.appOnlyApplicationId&&!!m.appOnlyApplicationSecret),onChange:$,required:!0,disabled:A||R})})]}),v.trigger=="schedule"&&e.jsxs("tr",{children:[e.jsx("td",{style:C.indexOf("schedule")>-1?Lp:void 0,children:"Schedule"}),e.jsx("td",{children:e.jsxs(U,{horizontal:!0,tokens:{childrenGap:"5px"},children:[e.jsx(qe,{options:yR,selectedKey:v.schedule?v.schedule.scheduledOn:null,onChange:(ee,me)=>le(me.key,"scheduledOn"),style:{width:"300px"},disabled:A||R}),e.jsx(qe,{options:wR,selectedKey:v.schedule?v.schedule.scheduledAt:null,onChange:(ee,me)=>le(me.key,"scheduledAt"),style:{width:"95px"},disabled:A||R})]})})]}),v.trigger=="externalLink"&&e.jsxs("tr",{children:[e.jsx("td",{children:"External link"}),e.jsx("td",{children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:"15px"},children:[e.jsx("span",{children:v.externalLink?v.externalLink:""}),v.externalLink&&e.jsx(Ke,{iconProps:{iconName:"Copy"},onClick:()=>navigator.clipboard.writeText(v.externalLink)})]})})]}),e.jsxs("tr",{children:[e.jsx("td",{children:"Last / Current run"}),e.jsxs("td",{children:[v.last&&e.jsxs("table",{children:[e.jsxs("colgroup",{children:[e.jsx("col",{width:"100px"}),e.jsx("col",{width:"300px"})]}),e.jsxs("tbody",{children:[e.jsxs("tr",{children:[e.jsx("th",{children:"ID"}),e.jsx("td",{children:v.last.id})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Started"}),e.jsx("td",{children:Gc(new Date(v.last.date*1e3)).format("l LT")})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Status"}),e.jsxs("td",{children:[v.last.stopped&&e.jsx("span",{style:Lp,children:"Stopped"}),R&&e.jsx("span",{style:fR,children:"Processing"})]})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Total"}),e.jsxs("td",{children:[v.last.total," ",v.last.total>0&&e.jsx("a",{href:`${c.props.adminUrl}/users.php?wpo365_jobid=${v.last.id}`,children:"View"})]})]}),"errors"in v.last&&e.jsxs("tr",{children:[e.jsx("th",{children:"Errors"}),e.jsxs("td",{children:[v.last.errors.toString()," ",v.last.errors>0&&e.jsx("a",{href:`${c.props.adminUrl}/users.php?wpo365_filter=wpo365_send_to_azure_nok&wpo365_jobid=${v.last.id}`,children:"View"})]})]}),e.jsxs("tr",{children:[e.jsx("th",{style:{lineHeight:"40px"},children:"Progress"}),e.jsx("td",{children:e.jsx(sS,{processed:v.last.processed,total:v.last.total})})]}),v.last.error&&e.jsxs("tr",{children:[e.jsx("th",{children:"Last error"}),e.jsx("td",{children:v.last.error})]})]})]}),!v.last&&e.jsx("em",{children:"This job has never run"})]})]}),e.jsxs("tr",{children:[e.jsx("td",{children:"Next run"}),e.jsxs("td",{children:[v.next&&e.jsx("span",{children:Gc((v.next+new Date().getTimezoneOffset()*60)*1e3).format("l LT")}),!v.next&&e.jsx("em",{children:"This job has not been scheduled yet"})]})]}),e.jsxs("tr",{children:[e.jsx("td",{children:"Send log"}),e.jsx("td",{children:e.jsx(ce,{checked:v.sendLog,onChange:(ee,me)=>b({...v,sendLog:me}),disabled:A||R})})]}),v.sendLog&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("td",{style:C.indexOf("sendLogTo")>-1?Lp:void 0,children:"Send email to"}),e.jsx("td",{children:e.jsx(fe,{isValid:(ee,me)=>!0,onValid:ee=>b({...v,sendLogTo:ee}),bound:!1,value:v.sendLogTo,disabled:A||R})})]}),e.jsxs("tr",{children:[e.jsx("td",{children:"Only send log on failure"}),e.jsx("td",{children:e.jsx(ce,{checked:v.sendLogOnError,onChange:(ee,me)=>b({...v,sendLogOnError:me}),disabled:A||R})})]})]}),e.jsx("tr",{children:e.jsx("td",{style:{height:"10px"},children:" "})}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsxs(U,{horizontal:!0,tokens:{childrenGap:"10px"},children:[e.jsx(dt,{onClick:async()=>ie(),iconProps:{iconName:"Save"},disabled:C.length!=0||d=="working"||A||R,children:"Save"}),v.trigger=="runManually"&&e.jsx(dt,{onClick:V,iconProps:{iconName:"Play"},disabled:C.length!=0||d=="working"||A||R,children:"Save + Run now"}),e.jsx(dt,{onClick:z,iconProps:{iconName:"Stop"},disabled:d=="working"||!R,children:"Stop"}),v.trigger=="schedule"&&e.jsx(dt,{onClick:J,iconProps:{iconName:"Clock"},disabled:C.length!=0||d=="working"||!m.useAppOnlyToken||!m.appOnlyApplicationId||!m.appOnlyApplicationSecret||A||R,children:"Save + Schedule"}),e.jsx(dt,{onClick:()=>ie(!0),iconProps:{iconName:"Delete"},disabled:d=="working"||A,children:"Delete"}),A&&e.jsx(Oe,{size:Te.small})]})})}),C.length>0&&e.jsx("tr",{children:e.jsx("td",{children:e.jsx("ul",{style:{paddingLeft:0,listStyle:"none"},children:C.map(ee=>{let me="";return ee=="name"&&(me="Please enter a name for this job"),ee=="schedule"&&(me="Please enter a valid WP CRON schedule"),ee=="sendLogTo"&&(me="Please enter a valid email address to send the log file"),e.jsx("li",{style:Lp,children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:"5px"},children:[e.jsx(ze,{iconName:"Warning"}),e.jsx("span",{children:me})]})})})})})}),A&&e.jsx("tr",{children:e.jsx("td",{children:e.jsx("span",{style:gR,children:"running (true)"})})})]})]})}),N&&e.jsx(Bo,{onCancel:N.onCancel,onConfirm:N.onConfirm,onDismiss:N.onDismiss,title:N.title,subText:N.subText})]})},xR=o=>{const{appStatus:s,env:n,env:{props:{availableRoles:t,extensions:i,siteUrl:d,restNonce:c}},settings:u,settings:{hidePremiumOptions:h},updateAppStatus:g,updateLastErrorMessage:w,updateSettings:m}=D.useContext(Ye),x=()=>({allowReactivation:u.allowReactivation,avatarHookPriority:u.avatarHookPriority,avatarSkipSaveDefault:u.avatarSkipSaveDefault,avatarTemplate:u.avatarTemplate,avatarUpdated:u.avatarUpdated,enableScim:u.enableScim,enableUserSync:u.enableUserSync,extraUserFields:[...u.extraUserFields],extraUserFieldsSource:u.extraUserFieldsSource,graphDisplayNameFormat:u.graphDisplayNameFormat,graphSelectProperties:[...u.graphSelectProperties],graphUserDetails:u.graphUserDetails,scimAttributeMappings:[...u.scimAttributeMappings],scimReassignPostsTo:u.scimReassignPostsTo,scimReassignPostsToId:u.scimReassignPostsToId,scimSecretToken:u.scimSecretToken,showGraphSelectProperties:Array.isArray(u.graphSelectProperties)&&u.graphSelectProperties.length>0,skipAvatarForOthers:u.skipAvatarForOthers,useAvatar:u.useAvatar,useBpAvatar:u.useBpAvatar,useBpExtended:u.useBpExtended,userSyncAllowDelete:u.userSyncAllowDelete,userSyncQuery:u.userSyncQuery,wpToAadUpdateSensitiveProps:u.wpToAadUpdateSensitiveProps,wpToAadUserAttributeMappings:u.wpToAadUserAttributeMappings}),[_,v]=D.useState(x()),[b,C]=D.useState(null),[k,L]=D.useState([]),[T,N]=D.useState(Zt(6)),[Y,A]=D.useState(null),[I,R]=D.useState(null),[H,W]=D.useState(we.initial),K=D.useMemo(()=>Object.keys(Xr(t,[])),[]);D.useEffect(()=>{v(x()),L([...u.userSyncJobs]),N(Zt(6))},[u]),D.useEffect(()=>{_.scimReassignPostsTo!=u.scimReassignPostsTo&&v({..._,scimReassignPostsToId:0})},[_.scimReassignPostsTo]);const Z=(V,z,J,ee)=>{if(V){z(!1);return}C({title:J,subText:ee,onDismiss:()=>C(null),onCancel:()=>C(null),onConfirm:()=>{C(null),z(!0)}})},Q=async V=>{w(void 0),g("working"),W(we.saving);const z=V?{...V}:{..._},J={...u};J.allowReactivation=z.allowReactivation,J.avatarHookPriority=z.avatarHookPriority,J.avatarSkipSaveDefault=z.avatarSkipSaveDefault,J.avatarTemplate=z.avatarTemplate,J.avatarUpdated=z.avatarUpdated,J.enableScim=z.enableScim,J.enableUserSync=z.enableUserSync,J.extraUserFields=[...z.extraUserFields],J.extraUserFieldsSource=z.extraUserFieldsSource,J.graphDisplayNameFormat=z.graphDisplayNameFormat,J.graphSelectProperties=[...z.graphSelectProperties],J.graphUserDetails=z.graphUserDetails,J.scimAttributeMappings=[...z.scimAttributeMappings],J.scimReassignPostsTo=z.scimReassignPostsTo,J.scimReassignPostsToId=z.scimReassignPostsToId,J.scimSecretToken=z.scimSecretToken,J.skipAvatarForOthers=z.skipAvatarForOthers,J.useAvatar=z.useAvatar,J.useBpAvatar=z.useBpAvatar,J.useBpExtended=z.useBpExtended,J.userSyncAllowDelete=z.userSyncAllowDelete,J.userSyncQuery=z.userSyncQuery,J.wpToAadUpdateSensitiveProps=u.wpToAadUpdateSensitiveProps,J.wpToAadUserAttributeMappings=z.wpToAadUserAttributeMappings;try{const ee=await Fe.updateSettings(n,J);if(ee.success){const me=await Fe.getSettings(n);m(me),g("initial"),W(we.success)}else w(ee.error.message),g("errors"),W(we.error)}catch{w("Unknown error occured whilst updating settings [check F12 > console for technical details]"),g("errors"),W(we.error)}},B=async(V=!1)=>{V||g("working");try{const z=await Fe.getSettings(n);return m(z),V||(g("initial"),w(null)),z}catch(z){V||(g("errors"),w(z.message||z))}},P=async V=>{const z={...u};z.userSyncJobs=V;const J=await Fe.updateSettings(n,z);if(J.success)await B();else throw J.message},X=async(V,z)=>{if(g("working"),!V){g("errors"),w("Please enter a valid email address");return}const J=`${d.replace(new RegExp("[/]+$"),"")}/wp-json/wpo365/v1/users/search/unique`,ee={keyword:V};let me;try{if(me=await Ee.post(J,ee,{headers:{Accept:"application/json",ContentType:"application/json; odata=verbose","X-WP-Nonce":c}}),!me.data)throw me.message?me.message:"Unknown error occurred. Please retry or check for technical details the Developer Tools > Console."}catch(te){if(g("errors"),te.response&&te.response.data){w(te.response.data.message);return}w(te.message||te);return}z&&z(me),g("initial"),w(null)},$=async()=>{g("working");const V=new FormData;V.append("action","wpo365_generate_scim_secret_token"),V.append("nonce",n.nonce),V.append("ina",window.wpo365.wizard.props.ina);let z;try{if(z=await Ee.post(n.wpAjaxAdminUrl,V),z.status<200||z.status>=300||!z.data.result)throw z.data&&z.data.message?"response.data.message":"Unknown error occurred when generating a new SCIM secret token";const J=await Fe.getSettings(n);m(J)}catch(J){if(g("errors"),J.response&&J.response.data){w(J.response.data.message);return}w(J.message||J);return}g("initial"),w(null)},ie=()=>{if(!Array.isArray(_.scimAttributeMappings)||!Array.isArray(_.extraUserFields))return;const V={..._};V.scimAttributeMappings.forEach(z=>{V.extraUserFields.some(J=>J.key.toLowerCase().indexOf(z.key.toLowerCase())>-1)||(V.extraUserFields=[...V.extraUserFields,{key:`${z.key};#${z.value}`,value:"Title not set"}])}),V.scimAttributeMappings=[],V.extraUserFieldsSource=Kr.scim,Q(V)},le=()=>{C({title:"Important",subText:`If you migrate your <strong>Optional SCIM attribute mappings</strong> to <strong>
        SCIM attribute to WordPress user meta mappings</strong> (see section <strong>
        Custom User Fields</strong>) the <strong>Source for custom user fields
        <strong> will also change to <strong>SCIM</strong>.`,onDismiss:()=>C(null),onCancel:()=>C(null),onConfirm:async()=>{ie(),C(null)}})};return e.jsx(e.Fragment,{children:e.jsx("div",{className:j.wpo365WzMain,children:e.jsxs("table",{className:j.wpo365WzTable,children:[e.jsxs("colgroup",{children:[e.jsx("col",{width:"50%"}),e.jsx("col",{width:"50%"})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsxs("h3",{className:j.wpo365WzSectionTitle,children:[e.jsx("span",{style:{color:"#CE5708"},children:"Getting started"})," with User Synchronization"]})})}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx(ou,{buttons:[{callToAction:"Scheduled user synchronization",info:"https://www.wpo365.com/feature/synchronize-users-from-entra-id-to-wordpress/",title:"WPO365 User Synchronization",tutorial:"https://tutorials.wpo365.com/courses/synchronize-users-from-azure-ad-to-wordpress/"},{callToAction:"Incremental SCIM based user sync",info:"https://www.wpo365.com/feature/connect-wordpress-to-entra-id-application-user-provisioning-scim/",title:"Entra Application Provisioning",tutorial:"https://tutorials.wpo365.com/courses/sync-entra-user-provisioning-scim/"},{callToAction:"Map Entra ID attributes to WP profiles",info:"https://www.wpo365.com/feature/map-entra-id-user-attributes-to-wordpress-user-profiles/",title:"Custom User Fields",tutorial:"https://docs.wpo365.com/article/98-synchronize-microsoft-365-azure-ad-profile-fields"},{callToAction:"Microsoft 365 profile pic as WP avatar",info:"https://www.wpo365.com/feature/map-entra-id-profile-pictures-to-wordpress-avatars/",title:"Avatar",tutorial:"https://docs.wpo365.com/article/96-microsoft-365-profile-picture-as-wp-avatar"}]})})}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"User synchronization"})})})})}),(!h||i.some(V=>[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Customers,l.wpo365Integrate].some(z=>z==V)))&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Enable user synchronization"}),e.jsx(de,{info:{title:"User Synchronization",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/62-enable-user-sync"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:i,targets:[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Customers,l.wpo365Integrate],children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",style:{height:"30px"},children:[e.jsx(Mn,{styles:{root:{marginBottom:"0px",marginRight:"10px"}},checked:_.enableUserSync,onChange:(V,z)=>{A("enableUserSync"),Q({..._,enableUserSync:z}).then(J=>A(null))}}),Y=="enableUserSync"&&e.jsx(Oe,{size:Te.small})]})})})]}),_.enableUserSync&&e.jsx(e.Fragment,{children:i.some(V=>[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Customers,l.wpo365Integrate].some(z=>z==V))&&(!u.useAppOnlyToken||!u.appOnlyApplicationId||!u.appOnlyApplicationSecret)?e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("div",{style:{width:"50%"},children:e.jsxs(Jr,{messageBarType:Be.blocked,isMultiline:!0,truncated:!0,overflowButtonAriaLabel:"Read more",children:["You have not (yet) configured ",e.jsx("strong",{children:"app-only permissions"})," i.e. ",e.jsx("em",{children:"application"})," permissions. With"," ",e.jsx("em",{children:"application"})," permissions the plugin can get authorization to access Microsoft Graph without a logged-in user being present. You must configure ",e.jsx("em",{children:"application"})," type permissions for ",e.jsx("strong",{children:"User.Read.All"})," or else WPO365 cannot retrieve users from Microsoft Graph / Entra ID / AAD B2C / Entra Ext. ID. Please follow the steps presented in this article"," ",e.jsx("a",{href:"https://tutorials.wpo365.com/courses/integration-application-permissions/",target:"_blank",children:"https://tutorials.wpo365.com/courses/integration-application-permissions/"})," ","to configure app-only integration."]})})})}):e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:"Add new User synchronization job"}),e.jsx("td",{children:e.jsx(re,{extensions:i,targets:[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Customers,l.wpo365Integrate],children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx(qe,{styles:{root:{minWidth:"250px",boxSizing:"content-box"}},onChange:(V,z)=>{R(z.key.toString())},placeholder:"Select type of job to add",options:[{key:"default",text:"Entra ID -> WordPress"},{key:"wpToAad",text:"WordPress -> AAD B2C / Entra Ext. ID",disabled:!u.useB2c&&!u.useCiam||!i.some(V=>[l.wpo365Customers].some(z=>z==V))}],style:{maxWidth:"400px"}}),e.jsx(dt,{iconProps:{iconName:"Add"},style:{marginLeft:"15px"},disabled:!I,onClick:()=>{if(I=="default")if(k.some(V=>!V.type||V.type=="default")){const V={title:he.titleAddUserSyncJob,subText:he.subTextAddUserSyncJob,onDismiss:()=>C(null),onCancel:()=>C(null),onConfirm:async()=>{const z=[...k];for(let J=0;J<z.length;J++)z[J].actionDeleteUser=!1,z[J].softDeleteUsers=!1,z[J].reassignPostsTo=null,z[J].reassignPostsToId=0;z.push(Ex()),P(z),C(null)}};C(V)}else P([...k,Ex()]);else if(I=="wpToAad")if(k.some(V=>V.type&&V.type=="wpToAad")){const V={title:he.titleAddUserSyncJob,subText:'You cannot add more than one "User sync job" of type "WordPress -> AAD B2C / Entra Ext. ID"',onDismiss:()=>C(null),onCancel:()=>C(null),onConfirm:()=>C(null)};C(V)}else P([...k,hR()]);R(null)},children:"Add"})]})})})]}),k.length>0&&e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:k.map(V=>!V.type||V.type=="default"?e.jsx(pR,{job:{...V},refreshSettings:B,saveUserSyncJobs:P,refreshKey:T}):e.jsx(vR,{job:{...V},refreshSettings:B,saveUserSyncJobs:P,refreshKey:T,availableRoles:K}))})}),k.length==0&&e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("em",{children:"You have not defined any user synchronization jobs"})})}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Enable user re-activation"}),e.jsx(de,{info:{title:"Enable user re-activation",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/134-enable-user-re-activation"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:i,targets:[l.wpo365Scim,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Customers,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(V,z)=>v({..._,allowReactivation:z}),checked:_.allowReactivation})})})})]})]})})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"User provisioning (SCIM)"})})}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Enable user provisioning (SCIM)"}),e.jsx(de,{info:{title:"WordPress user provisioning with Entra ID Application Provisioning (SCIM)",readMore:{title:"Read online",url:"https://tutorials.wpo365.com/courses/sync-entra-user-provisioning-scim/"}}})]})}),e.jsx("td",{children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",style:{height:"30px"},children:[e.jsx(Mn,{styles:{root:{marginBottom:"0px",marginRight:"10px"}},checked:_.enableScim,onChange:(V,z)=>{A("enableScim"),Q({..._,enableScim:z}).then(J=>A(null))}}),Y=="enableScim"&&e.jsx(Oe,{size:Te.small})]})})]}),_.enableScim&&e.jsxs(e.Fragment,{children:[Array.isArray(_.scimAttributeMappings)&&_.scimAttributeMappings.length>0&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Optional SCIM attribute mappings"}),e.jsx(de,{info:{title:"SCIM attribute mappings",readMore:{title:"Read online",url:"https://tutorials.wpo365.com/courses/sync-entra-user-provisioning-scim/lessons/configure-mandatory-user-attribute-mappings/"}}})]})}),e.jsx("td",{children:e.jsx(iw,{list:_.scimAttributeMappings,onListChanged:V=>v({..._,scimAttributeMappings:V}),keyPlaceholder:he.infoScimAttributeMappingsKey,valuePlaceholder:he.infoScimAttributeMappingsValue})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Migrate optional SCIM attribute mappings"}),e.jsx(de,{info:{title:"Migrate SCIM attribute mappings",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/59-wordpress-user-provisioning-with-azure-ad-scim"}}})]})}),e.jsx("td",{children:e.jsxs(U,{horizontalAlign:"start",tokens:{childrenGap:10},children:[e.jsx(U.Item,{grow:0,children:e.jsx(et,{onClick:le,children:"Migrate settings"})}),e.jsxs("span",{style:{color:"#0078D4"},children:[e.jsx(ze,{iconName:"Warning",style:{paddingRight:"5px"}}),"Migration is mandatory to remain compatible with future versions"]})]})})]})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Admin Credentials > Secret Token"})})}),e.jsx("td",{children:e.jsxs(U,{tokens:{childrenGap:0},children:[e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:"15px"},children:[e.jsx(fe,{disabled:n.props.scimSecretDefined,isValid:(V,z)=>!0,onValid:V=>v({..._,scimSecretToken:V}),bound:!1,value:_.scimSecretToken}),e.jsx(dt,{disabled:n.props.scimSecretDefined,iconProps:{iconName:"Refresh"},onClick:async()=>$(),children:"Generate"}),_.scimSecretToken&&e.jsx(Ke,{iconProps:{iconName:"Copy"},title:"Copy to clipboard",ariaLabel:"Copy to clipboard",onClick:()=>{navigator.clipboard.writeText(_.scimSecretToken)}})]}),n.props.scimSecretDefined&&e.jsx("div",{children:e.jsx("span",{style:{color:"#0078d4"},children:"Remove or update the SCIM Secret Token found in wp-config.php instead"})})]})})]}),(!h||i.some(V=>[l.wpo365Integrate,l.wpo365Intranet5y,l.wpo365LoginIntranet,l.wpo365Scim].some(z=>z==V)))&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx("span",{style:{color:"#0078d4"},children:"When a user is deleted ..."})}),e.jsx("td",{})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Re-assign posts to"})})}),e.jsx("td",{children:e.jsx(re,{extensions:i,targets:[l.wpo365Integrate,l.wpo365Intranet5y,l.wpo365LoginIntranet,l.wpo365Scim],children:e.jsxs(U,{tokens:{childrenGap:0},children:[e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:"15px"},children:[e.jsx(fe,{disabled:_.userSyncAllowDelete,isValid:(V,z)=>!0,onValid:V=>v({..._,scimReassignPostsTo:V}),bound:!1,value:_.scimReassignPostsTo}),e.jsx(dt,{disabled:_.userSyncAllowDelete,iconProps:{iconName:"UserFollowed"},onClick:async()=>X(_.scimReassignPostsTo,V=>{v({..._,scimReassignPostsTo:V.data.user_login,scimReassignPostsToId:parseInt(""+V.data.ID)})}),children:"Check user"})]}),e.jsx("div",{children:e.jsx("span",{style:{color:_.scimReassignPostsTo&&_.scimReassignPostsToId===0?"#dc3545":"#0078d4"},children:`Selected user: ${_.scimReassignPostsToId>0?_.scimReassignPostsTo+" ["+_.scimReassignPostsToId+"]":"N/A"}`})})]})})})]}),e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx("span",{style:{color:"#0078d4"},children:"Or, instead ..."})}),e.jsx("td",{})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Soft-delete users"})})}),e.jsx("td",{children:e.jsx(re,{extensions:i,targets:[l.wpo365Integrate,l.wpo365Intranet5y,l.wpo365LoginIntranet,l.wpo365Scim],children:e.jsx(ce,{checked:_.userSyncAllowDelete,onChange:(V,z)=>v({..._,userSyncAllowDelete:z,scimReassignPostsTo:z?"":_.scimReassignPostsTo,scimReassignPostsToId:z?0:_.scimReassignPostsToId})})})})]})]})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Custom user fields (Entra ID -> WordPress)"})})}),(!h||i.some(V=>[l.wpo365CustomFields,l.wpo365LoginProfessional,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(z=>z==V)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Preferred WordPress user profile display name format"}),e.jsx(de,{info:{title:"Preferred WordPress user profile display name format",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/143-preferred-wordpress-user-profile-display-name-format"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:i,targets:[l.wpo365CustomFields,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365LoginProfessional,l.wpo365Customers,l.wpo365Integrate,l.wpo365Pro],children:e.jsx(qe,{options:[{key:"select",text:"Select",itemType:Rt.Header},{key:sd.displayName,text:"Display name e.g. John Doe"},{key:sd.givenNameSurname,text:"Given name + surname e.g. John Doe"},{key:sd.surnameGivenName,text:"Surname, given name e.g. Doe, John"},{key:sd.surnameGivenNameNoComma,text:"Surname given name e.g. Doe John"},{key:sd.skip,text:"Do not update"}],selectedKey:_.graphDisplayNameFormat,onChange:(V,z)=>v({..._,graphDisplayNameFormat:z.key}),style:{maxWidth:"400px"}})})})]}),(!h||i.some(V=>[l.wpo365CustomFields,l.wpo365LoginProfessional,l.wpo365Customers,l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(z=>z==V)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Show Entra ID user attributes in a WordPress user profile"}),e.jsx(de,{info:{title:"Show Entra ID user attributes in a WordPress user profile",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/98-synchronize-microsoft-365-azure-ad-profile-fields"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:i,targets:[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365CustomFields,l.wpo365LoginProfessional,l.wpo365Customers,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(V,z)=>v({..._,graphUserDetails:z}),checked:_.graphUserDetails})})})})]}),(!h||i.some(V=>[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365CustomFields,l.wpo365Integrate,l.wpo365Pro,l.wpo365LoginProfessional].some(z=>z==V)))&&_.graphUserDetails&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Update BuddyPress Extended Profile Fields instead"}),e.jsx(de,{info:{title:"Update BuddyPress Extended Profile Fields",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/73-update-matching-buddypress-extended-profile-fields"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:i,targets:[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365CustomFields,l.wpo365Integrate,l.wpo365Pro,l.wpo365LoginProfessional],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(V,z)=>v({..._,useBpExtended:z}),checked:_.useBpExtended})})})})]}),(!h||i.some(V=>[l.wpo365Customers,l.wpo365CustomFields,l.wpo365Essentials,l.wpo365Integrate,l.wpo365Intranet5y,l.wpo365LoginIntranet,l.wpo365LoginPlus,l.wpo365LoginPremium,l.wpo365LoginProfessional,l.wpo365Pro,l.wpo365RolesAccess,l.wpo365Scim,l.wpo365Sync5y].some(z=>z==V)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{children:e.jsx("span",{children:"Retrieve user attributes from Microsoft Graph"})})}),e.jsx("td",{children:e.jsx(re,{extensions:i,targets:[l.wpo365Customers,l.wpo365CustomFields,l.wpo365Essentials,l.wpo365Integrate,l.wpo365Intranet5y,l.wpo365LoginIntranet,l.wpo365LoginPlus,l.wpo365LoginPremium,l.wpo365LoginProfessional,l.wpo365Pro,l.wpo365RolesAccess,l.wpo365Scim,l.wpo365Sync5y],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(V,z)=>v({..._,extraUserFieldsSource:z?Kr.graph:u.useSaml?Kr.samlResponse:Kr.idToken}),checked:_.extraUserFieldsSource==Kr.graph})})})})]}),(!h||i.some(V=>[l.wpo365Customers,l.wpo365CustomFields,l.wpo365Essentials,l.wpo365Integrate,l.wpo365Intranet5y,l.wpo365LoginIntranet,l.wpo365LoginPlus,l.wpo365LoginPremium,l.wpo365LoginProfessional,l.wpo365Pro,l.wpo365RolesAccess,l.wpo365Scim,l.wpo365Sync5y].some(z=>z==V)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsxs("span",{children:["Express Login (see ",e.jsx("em",{children:"i"})," for details)"]}),e.jsx(de,{info:{title:"Express login",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/61-express-login"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:i,targets:[l.wpo365Customers,l.wpo365CustomFields,l.wpo365Essentials,l.wpo365Integrate,l.wpo365Intranet5y,l.wpo365LoginIntranet,l.wpo365LoginPlus,l.wpo365LoginPremium,l.wpo365LoginProfessional,l.wpo365Pro,l.wpo365RolesAccess,l.wpo365Scim,l.wpo365Sync5y],children:e.jsxs("div",{className:j.wpo365WzColumnifier,children:[e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{checked:u.expressLogin,disabled:!0})}),e.jsxs("span",{className:j.wpo365WzRowifier,style:{color:"#0078D4"},children:[e.jsx(ze,{iconName:"Warning",style:{paddingRight:"5px"}}),"Can be changed on the ",e.jsx("a",{href:"#loginLogout",children:"Login / Logout"})," page"]})]})})})]}),(!h||i.some(V=>[l.wpo365Customers,l.wpo365CustomFields,l.wpo365Integrate,l.wpo365Intranet5y,l.wpo365LoginIntranet,l.wpo365LoginPremium,l.wpo365LoginProfessional,l.wpo365Pro,l.wpo365RolesAccess,l.wpo365Scim,l.wpo365Sync5y].some(z=>z==V)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{children:[e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Mappings to save claims / properties as WP user meta"}),e.jsx(de,{info:{title:"Mappings to save claims / properties as WP user meta",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/98-synchronize-microsoft-365-azure-ad-profile-fields"}}})]}),e.jsx("em",{style:{color:"#0078d4"},children:'You must click "+" to add the current item.'})]})}),e.jsx("td",{children:e.jsx(re,{extensions:i,targets:[l.wpo365Customers,l.wpo365CustomFields,l.wpo365Integrate,l.wpo365Intranet5y,l.wpo365LoginIntranet,l.wpo365LoginPremium,l.wpo365LoginProfessional,l.wpo365Pro,l.wpo365RolesAccess,l.wpo365Scim,l.wpo365Sync5y],children:e.jsx(Dx,{newTriplet:[{value:"",defaultValue:"",placeholder:"Claim / property (check documentation) ...",prefixes:["scim::","graph::","saml::","oidc::"]},{value:"",defaultValue:"",placeholder:"WordPress usermeta key e.g. entraJobTitle"},{value:"",defaultValue:"",placeholder:"Custom title e.g. Job title"}],onChanged:V=>{const z=[];V.map(J=>{z.push({key:`${J[0].value};#${J[1].value}`,value:J[2].value})}),v({..._,extraUserFields:z})},triplets:_.extraUserFields.map(V=>{const z=(V.key.indexOf(";#")>-1?V.key:`${V.key};#`).split(";#");return[{value:z[0],defaultValue:z[0]},{value:z[1],defaultValue:z[1]},{value:V.value,defaultValue:V.value}]})})})})]}),_.extraUserFieldsSource==Kr.graph&&(!h||i.some(V=>[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365CustomFields,l.wpo365LoginProfessional,l.wpo365Customers,l.wpo365RolesAccess,l.wpo365Integrate,l.wpo365Pro].some(z=>z==V)))&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Show advanced $select properties configuration"}),e.jsx(de,{info:{title:"Additional $select properties",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/142-additional-select-properties"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:i,targets:[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365CustomFields,l.wpo365LoginProfessional,l.wpo365Customers,l.wpo365RolesAccess,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(V,z)=>{if(_.showGraphSelectProperties){v({..._,showGraphSelectProperties:!1});return}C({title:"Important",subText:`Please only specify additional $select properties if you have specific requirements for 
                                        Microsoft Graph User Resource properties that are not included by default.`,onDismiss:()=>C(null),onCancel:()=>C(null),onConfirm:()=>{C(null),v({..._,showGraphSelectProperties:!0})}})},checked:_.showGraphSelectProperties})})})})]}),_.showGraphSelectProperties&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Additional $select properties"}),e.jsx(de,{info:{title:"Additional $select properties",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/142-additional-select-properties"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:i,targets:[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365CustomFields,l.wpo365LoginProfessional,l.wpo365Customers,l.wpo365RolesAccess,l.wpo365Integrate,l.wpo365Pro],children:e.jsx(Ws,{list:_.graphSelectProperties,onListChanged:V=>v({..._,graphSelectProperties:V}),placeholder:he.infoExtraUserFieldsKey})})})]})]}),(u.useB2c||u.useCiam)&&e.jsxs(e.Fragment,{children:[e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Custom user fields (WordPress -> AAD B2C / Entra Ext. ID"})})}),i.some(V=>[l.wpo365Customers].some(z=>z==V))&&!u.wpToAadCreateUsers&&!u.wpToAadUpdateUsers?e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("div",{style:{width:"50%"},children:e.jsxs(Jr,{messageBarType:Be.blocked,isMultiline:!0,truncated:!0,overflowButtonAriaLabel:"Read more",children:["It appears that you have not configured WPO365 to create / update users in AAD B2C / Entra Ext. ID (on the plugin's"," ",e.jsx("a",{href:"#userRegistration",children:"User registration"})," tab). Therefore these configuration options are not available."]})})})}):e.jsx(e.Fragment,{children:(!h||i.some(V=>[l.wpo365Customers].some(z=>z==V)))&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{children:[e.jsx("span",{children:"WordPress user (meta) to AAD B2C / Entra Ext. ID user attributes mappings"}),e.jsx("br",{}),e.jsx("em",{style:{color:"#0078d4"},children:'You must click "+" to add the current item.'})]})}),e.jsx("td",{children:e.jsx(re,{extensions:i,targets:[l.wpo365Customers],children:e.jsx(Dx,{newTriplet:[{value:"",defaultValue:"",placeholder:"Source for this user attribute",options:["WP_User","usermeta"]},{value:"",defaultValue:"",placeholder:"WordPress user (meta) key e.g. display_name"},{value:"",defaultValue:"",placeholder:"AAD B2C / Entra Ext. ID attribute e.g. name"}],onChanged:V=>{const z=[];V.map(J=>{J.length==3&&z.push({strA:J[0].value,strB:J[1].value,strC:J[2].value})}),v({..._,wpToAadUserAttributeMappings:z})},triplets:_.wpToAadUserAttributeMappings.map(V=>[{value:V.strA,defaultValue:V.strA},{value:V.strB,defaultValue:V.strB},{value:V.strC,defaultValue:V.strC}])})})})]}),_.wpToAadUserAttributeMappings.length>0&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Update sensitive properties in AAD B2C / Entra External ID (Entra for Customers)"}),e.jsx(de,{info:{title:"Update sensitive properties in AAD B2C / Entra External ID (Entra for Customers)",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/190-update-sensitive-properties-in-azure-ad-b2c-for-customers"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:i,targets:[l.wpo365Customers],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(V,z)=>{if(_.wpToAadUpdateSensitiveProps){v({..._,wpToAadUpdateSensitiveProps:!1});return}C({title:"Important",subText:`If you check this option you must assign the role of <strong>Privileged Authentication Administrator</strong> or <strong>Global Administrator</strong> to your registered application's <strong>service principal</strong>. Refer to the <a href="https://docs.wpo365.com/article/190-update-sensitive-properties-in-azure-ad-b2c-for-customers" target="_blank">online documentation</a> for further details.`,onDismiss:()=>C(null),onCancel:()=>C(null),onConfirm:()=>{C(null),v({..._,wpToAadUpdateSensitiveProps:!0})}})},checked:_.wpToAadUpdateSensitiveProps})})})})]})]})})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Avatar"})})}),(!h||i.some(V=>[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Avatar,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers].some(z=>z==V)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Use Microsoft 365 Avatar"}),e.jsx(de,{info:{title:"Use O365 Avatar",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/96-microsoft-365-profile-picture-as-wp-avatar"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:i,targets:[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Avatar,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",style:{height:"30px"},children:[e.jsx(Mn,{styles:{root:{marginBottom:"0px",marginRight:"10px"}},checked:_.useAvatar,onChange:(V,z)=>{if(A("useAvatar"),_.useAvatar)Q({..._,useAvatar:!1,skipAvatarForOthers:!1,useBpAvatar:!1}).then(J=>A(null));else{const J={title:he.titleUseAvatar,subText:he.subTextUseAvatar,onDismiss:()=>{C(null),A(null)},onCancel:()=>{C(null),A(null)},onConfirm:()=>{C(null),Q({..._,useAvatar:!0}).then(ee=>A(null))}};C(J)}}}),Y=="useAvatar"&&e.jsx(Oe,{size:Te.small})]})})})]}),(!h||i.some(V=>[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Avatar,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers].some(z=>z==V)))&&_.useAvatar&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Only refresh avatar for logged-in user"}),e.jsx(de,{info:{title:"Only refresh avatar for logged-in user",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/110-only-refresh-avatar-for-logged-in-user"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:i,targets:[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Avatar,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(V,z)=>v({..._,skipAvatarForOthers:z}),checked:_.skipAvatarForOthers})})})})]}),(!h||i.some(V=>[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Avatar,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers].some(z=>z==V)))&&_.useAvatar&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Do not save default WP avatar"}),e.jsx(de,{info:{title:"Do not save default WP avatar",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/212-do-not-save-default-wp-avatar"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:i,targets:[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Avatar,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(V,z)=>v({..._,avatarSkipSaveDefault:z}),checked:_.avatarSkipSaveDefault})})})})]}),(!h||i.some(V=>[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Avatar,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers].some(z=>z==V)))&&_.useAvatar&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Use Microsoft 365 Avatar for BuddyPress"}),e.jsx(de,{info:{title:"Use O365 Avatar (Buddy Press)",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/96-microsoft-365-profile-picture-as-wp-avatar"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:i,targets:[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Avatar,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(V,z)=>Z(_.useBpAvatar,J=>v({..._,useBpAvatar:z}),he.titleUseBpAvatar,he.subTextUseBpAvatar),checked:_.useBpAvatar})})})})]}),(!h||i.some(V=>[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Avatar,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers].some(z=>z==V)))&&_.useAvatar&&e.jsxs("tr",{children:[e.jsx("th",{children:"Avatar template"}),e.jsx("td",{children:e.jsx(re,{extensions:i,targets:[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Avatar,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],children:e.jsx(fe,{isValid:(V,z)=>!0,onValid:V=>v({..._,avatarTemplate:V}),bound:!1,value:_.avatarTemplate,placeholder:_.avatarTemplate})})})]}),(!h||i.some(V=>[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Avatar,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers].some(z=>z==V)))&&_.useAvatar&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Avatar refresh"}),e.jsx(de,{info:{title:"Avatar refresh",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/122-avatar-refresh"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:i,targets:[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Avatar,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],children:e.jsx(fe,{isValid:(V,z)=>/^\d+$/.test(z),onValid:V=>v({..._,avatarUpdated:parseInt(V)}),bound:!1,errorMessage:he.errAvatarUpdatedMustBeNumeric,value:_.avatarUpdated.toString(),placeholder:he.infoAvatarUpdated})})})]}),(!h||i.some(V=>[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Avatar,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers].some(z=>z==V)))&&_.useAvatar&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Avatar hook priority"}),e.jsx(de,{info:{title:"Avatar hook priority",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/161-avatar-hook-priority"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:i,targets:[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Avatar,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],children:e.jsx(fe,{isValid:(V,z)=>/^\d+$/.test(z),onValid:V=>v({..._,avatarHookPriority:parseInt(V)}),bound:!1,errorMessage:"The priority must be number between 1 and 99999",value:_.avatarHookPriority.toString(),placeholder:"Priority for the get_avatar hook"})})})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Configuration"})})}),e.jsxs("tr",{children:[e.jsx("th",{}),e.jsx("td",{children:e.jsxs("div",{className:j.wpo365WzColumnifier,children:[e.jsx(dt,{onClick:()=>Q(),iconProps:{iconName:H==we.success?"Like":void 0},style:{minWidth:"400px",maxWidth:"400px",minHeight:"30px",alignSelf:"start"},disabled:["errors","working","loading"].indexOf(s)>=0,children:"Save configuration"}),H==we.success?e.jsx("p",{style:{color:"#378805"},children:he.okSettingsUpdated}):null]})})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx(Ho,{})})}),b&&e.jsx(Bo,{onCancel:b.onCancel,onConfirm:b.onConfirm,onDismiss:b.onDismiss,title:b.title,subText:b.subText})]})})})},jn=D.createContext({appInstances:[],isDirty:!1,isPremium:!1,lastMessage:null,lastModified:null,panelChild:null,saveStatus:"initial",selectedAppInstance:null,setAppInstances:o=>{},setIsDirty:o=>{},setLastMessage:o=>{},setLastModified:o=>{},setPanelChild:o=>{},setSaveStatus:o=>{},setSelectedAppInstance:o=>{},setShowPreview:o=>{},showPreview:!1}),bR=()=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"35",height:"35",viewBox:"0 0 48 48",children:[e.jsx("path",{fill:"#ffc107",d:"M40,41H8c-2.206,0-4-1.794-4-4V11c0-2.206,1.794-4,4-4h32c2.206,0,4,1.794,4,4v26	C44,39.206,42.206,41,40,41z"}),e.jsx("path",{fill:"#212121",d:"M34,12.98H14.02c-2.2,0-4,1.79-4,4V30c0,1.86,1.27,3.42,2.98,3.86v-2.14	c-0.59-0.35-0.98-0.99-0.98-1.72V16.98c0-1.1,0.9-2,2-2H34c1.1,0,2,0.9,2,2V30c0,0.74-0.4,1.38-1,1.73v2.14c1.73-0.44,3-2.01,3-3.87	V16.98C38,14.77,36.21,12.98,34,12.98z"}),e.jsx("path",{fill:"#212121",d:"M16.5,28L16.5,28c0.828,0,1.5,0.672,1.5,1.5v5c0,0.828-0.672,1.5-1.5,1.5l0,0	c-0.828,0-1.5-0.672-1.5-1.5v-5C15,28.672,15.672,28,16.5,28z"}),e.jsx("path",{fill:"#212121",d:"M21.5,22L21.5,22c0.828,0,1.5,0.672,1.5,1.5v11c0,0.828-0.672,1.5-1.5,1.5l0,0	c-0.828,0-1.5-0.672-1.5-1.5v-11C20,22.672,20.672,22,21.5,22z"}),e.jsx("path",{fill:"#212121",d:"M26.5,25L26.5,25c0.828,0,1.5,0.672,1.5,1.5v8c0,0.828-0.672,1.5-1.5,1.5l0,0	c-0.828,0-1.5-0.672-1.5-1.5v-8C25,25.672,25.672,25,26.5,25z"}),e.jsx("path",{fill:"#212121",d:"M31.5,18L31.5,18c0.828,0,1.5,0.672,1.5,1.5v15c0,0.828-0.672,1.5-1.5,1.5l0,0	c-0.828,0-1.5-0.672-1.5-1.5v-15C30,18.672,30.672,18,31.5,18z"})]}),SR=()=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"35",height:"35",viewBox:"0 0 48 48",children:[e.jsx("path",{fill:"#1976d2",d:"M28,13h14.533C43.343,13,44,13.657,44,14.467v19.066C44,34.343,43.343,35,42.533,35H28V13z"}),e.jsx("rect",{width:"14",height:"15.542",x:"28",y:"17.958",fill:"#fff"}),e.jsx("polygon",{fill:"#1976d2",points:"27,44 4,39.5 4,8.5 27,4"}),e.jsx("path",{fill:"#fff",d:"M15.25,16.5c-3.176,0-5.75,3.358-5.75,7.5s2.574,7.5,5.75,7.5S21,28.142,21,24	S18.426,16.5,15.25,16.5z M15,28.5c-1.657,0-3-2.015-3-4.5s1.343-4.5,3-4.5s3,2.015,3,4.5S16.657,28.5,15,28.5z"}),e.jsx("rect",{width:"2.7",height:"2.9",x:"28.047",y:"29.737",fill:"#1976d2"}),e.jsx("rect",{width:"2.7",height:"2.9",x:"31.448",y:"29.737",fill:"#1976d2"}),e.jsx("rect",{width:"2.7",height:"2.9",x:"34.849",y:"29.737",fill:"#1976d2"}),e.jsx("rect",{width:"2.7",height:"2.9",x:"28.047",y:"26.159",fill:"#1976d2"}),e.jsx("rect",{width:"2.7",height:"2.9",x:"31.448",y:"26.159",fill:"#1976d2"}),e.jsx("rect",{width:"2.7",height:"2.9",x:"34.849",y:"26.159",fill:"#1976d2"}),e.jsx("rect",{width:"2.7",height:"2.9",x:"38.25",y:"26.159",fill:"#1976d2"}),e.jsx("rect",{width:"2.7",height:"2.9",x:"28.047",y:"22.706",fill:"#1976d2"}),e.jsx("rect",{width:"2.7",height:"2.9",x:"31.448",y:"22.706",fill:"#1976d2"}),e.jsx("rect",{width:"2.7",height:"2.9",x:"34.849",y:"22.706",fill:"#1976d2"}),e.jsx("rect",{width:"2.7",height:"2.9",x:"38.25",y:"22.706",fill:"#1976d2"}),e.jsx("rect",{width:"2.7",height:"2.9",x:"31.448",y:"19.112",fill:"#1976d2"}),e.jsx("rect",{width:"2.7",height:"2.9",x:"34.849",y:"19.112",fill:"#1976d2"}),e.jsx("rect",{width:"2.7",height:"2.9",x:"38.25",y:"19.112",fill:"#1976d2"})]}),CR=()=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"35",height:"35",viewBox:"0 0 48 48",children:[e.jsx("path",{fill:"#13504f",d:"M23 4A12 12 0 1 0 23 28A12 12 0 1 0 23 4Z"}),e.jsx("path",{fill:"#13a3a9",d:"M33.5 16A10.5 10.5 0 1 0 33.5 37A10.5 10.5 0 1 0 33.5 16Z"}),e.jsx("path",{fill:"#1ddaea",d:"M24 28A8 8 0 1 0 24 44A8 8 0 1 0 24 28Z"}),e.jsx("path",{fill:"#027178",d:"M22.319,34H5.681C4.753,34,4,33.247,4,32.319V15.681C4,14.753,4.753,14,5.681,14h16.638 C23.247,14,24,14.753,24,15.681v16.638C24,33.247,23.247,34,22.319,34z"}),e.jsx("path",{fill:"#fff",d:"M10.432,28.75v-2.298c0.426,0.349,2.391,1.048,2.9,1.048c0.299,0,2.138,0.088,2.138-1.041 c0-1.633-5.082-1.494-5.082-4.725c0-0.536,0.066-3.059,4.133-3.059c1.041,0,2.271,0.261,2.628,0.395v2.147 c-0.176-0.12-0.89-0.718-2.496-0.718c-1.877,0-2.04,0.883-2.04,1.041c0,1.359,4.998,1.544,4.998,4.711 c0,3.172-3.614,3.074-4.177,3.074C12.857,29.325,10.814,28.942,10.432,28.75z"})]}),kR=()=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"35",height:"35",viewBox:"0 0 48 48",children:[e.jsx("path",{fill:"#1365be",d:"M19.216,32.504l10.418,10.347c0.522,0.519,1.373,0.48,1.847-0.083 c1.948-2.314,6.382-8.132,6.382-13.154l-15.989-4.2L19.216,32.504z"}),e.jsx("path",{fill:"#18a7ed",d:"M19.062,15.513L29.705,4.87c0.429-0.429,1.123-0.423,1.537,0.02c1.601,1.712,5.237,6.149,6.66,12.434 L19.524,22.14L19.062,15.513z"}),e.jsx("path",{fill:"#0a84f0",d:"M22.76,20.714l18.68-5.035c0.597-0.161,1.208,0.19,1.361,0.789c0.342,1.347,0.841,3.927,0.841,7.521 c0,3.597-0.516,6.178-0.87,7.524c-0.157,0.598-0.771,0.943-1.367,0.778L19.023,26.07L22.76,20.714z"}),e.jsx("path",{fill:"#03509a",d:"M22.319,34H5.681C4.753,34,4,33.247,4,32.319V15.681C4,14.753,4.753,14,5.681,14h16.638 C23.247,14,24,14.753,24,15.681v16.638C24,33.247,23.247,34,22.319,34z"}),e.jsx("path",{fill:"#fff",d:"M17.824,18.619c-0.475-0.258-1.068-0.082-1.326,0.392l-2.447,4.577l-2.549-4.577 c-0.258-0.475-0.852-0.65-1.326-0.392c-0.475,0.258-0.65,0.852-0.392,1.326l3.074,5.584v2.883c0,0.601,0.488,1.089,1.089,1.089 c0.601,0,1.089-0.488,1.089-1.089v-2.669l3.181-5.798C18.474,19.47,18.299,18.877,17.824,18.619z"})]}),MR=()=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"35",height:"35",viewBox:"0 0 48 48",children:[e.jsx("path",{fill:"#084593",d:"M24.5 8A14.5 14.5 0 1 0 24.5 37A14.5 14.5 0 1 0 24.5 8Z"}),e.jsx("path",{fill:"#0556ab",d:"M16.155,15.972c-1.32-0.505-2.753-0.781-4.25-0.781C5.33,15.191,0,20.521,0,27.096 c0,2.476,0.757,4.774,2.05,6.678c0.061-0.026,16.445-6.889,26.406-10.888C22.952,19.568,17.903,16.641,16.155,15.972z"}),e.jsx("path",{fill:"#18b0ff",d:"M48,29.373c0-5.317-4.31-9.627-9.627-9.627c-0.997,0-1.958,0.152-2.863,0.433 c-0.996,0.31-3.652,1.342-7.054,2.708c8.377,5.05,17.79,10.996,18.252,11.288C47.525,32.76,48,31.123,48,29.373z"}),e.jsx("path",{fill:"#2cceff",d:"M46.709,34.175c-0.463-0.292-9.875-6.238-18.252-11.288C18.495,26.885,2.111,33.748,2.05,33.774 C2.467,34.388,5.627,39,11.904,39c5.03,0,16.176,0,26.354,0C43.669,39,46.148,35.146,46.709,34.175z"})]}),jR=()=>e.jsx("div",{style:{width:"35px",height:"35px",backgroundImage:"url(data:image/png;base64, )",backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundSize:"contain"}}),LR=()=>e.jsxs("svg",{id:"uuid-f8d4d392-7c12-4bd9-baff-66fbf7814b91","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",width:"35px",height:"35px",viewBox:"0 0 18 18",children:[e.jsx("path",{d:"m3.802,14.032c.388.242,1.033.511,1.715.511.621,0,1.198-.18,1.676-.487,0,0,.001,0,.002-.001l1.805-1.128v4.073c-.286,0-.574-.078-.824-.234l-4.374-2.734Z",fill:"#225086"}),e.jsx("path",{d:"m7.853,1.507L.353,9.967c-.579.654-.428,1.642.323,2.111,0,0,2.776,1.735,3.126,1.954.388.242,1.033.511,1.715.511.621,0,1.198-.18,1.676-.487,0,0,.001,0,.002-.001l1.805-1.128-4.364-2.728,4.365-4.924V1s0,0,0,0c-.424,0-.847.169-1.147.507Z",fill:"#6df"}),e.jsx("polygon",{points:"4.636 10.199 4.688 10.231 9 12.927 9.001 12.927 9.001 12.927 9.001 5.276 9 5.275 4.636 10.199",fill:"#cbf8ff"}),e.jsx("path",{d:"m17.324,12.078c.751-.469.902-1.457.323-2.111l-4.921-5.551c-.397-.185-.842-.291-1.313-.291-.925,0-1.752.399-2.302,1.026l-.109.123h0s4.364,4.924,4.364,4.924h0s0,0,0,0l-4.365,2.728v4.073c.287,0,.573-.078.823-.234l7.5-4.688Z",fill:"#074793"}),e.jsx("path",{d:"m9.001,1v4.275s.109-.123.109-.123c.55-.627,1.377-1.026,2.302-1.026.472,0,.916.107,1.313.291l-2.579-2.909c-.299-.338-.723-.507-1.146-.507Z",fill:"#0294e4"}),e.jsx("polygon",{points:"13.365 10.199 13.365 10.199 13.365 10.199 9.001 5.276 9.001 12.926 13.365 10.199",fill:"#96bcc2"})]});var Oc=(o=>(o.list="list",o.table="table",o.cards="cards",o))(Oc||{}),En=(o=>(o.Aad="Aad",o.reportInGroup="reportInGroup",o.dashboardInGroup="dashboardInGroup",o.tileInGroup="tileInGroup",o))(En||{}),Ro=(o=>(o.dashboard="dashboard",o.paginatedReport="paginatedReport",o.report="report",o.tile="tile",o))(Ro||{}),iS=(o=>(o.Off="Off",o.ReadOnly="ReadOnly",o))(iS||{}),Vr=(o=>(o.users="users",o.groups="groups",o.current="current",o.shared="shared",o))(Vr||{}),aw=(o=>(o.custom="custom",o.today="today",o.currentWeek="currentWeek",o.currentMonth="currentMonth",o.currentYear="currentYear",o))(aw||{}),aS=(o=>(o.day="day",o.week="week",o.month="month",o.year="year",o))(aS||{}),ho=(o=>(o.error="error",o.info="info",o.warning="warning",o))(ho||{});const ta=()=>{const{env:{props:{siteUrl:o,restNonce:s}}}=D.useContext(Ye),{setLastMessage:n}=D.useContext(jn),[t,i]=D.useState(null),[d,c]=D.useState(!1),[u,h]=D.useState(!1),[g,w]=D.useState(!1),m=(v,b)=>{const k=`${v.response?.data?.error_message||v.response?.data?.message||v.message||(typeof v=="string"?v:`Status: ${v.status} ${v.statusText||""}`)}${v.status?" | Status: "+v.status:""} | Url: ${b}]`;n({type:ho.error,message:k})},x=(v,b="get",C)=>{h(!0),i(null),c(!1),w(!1);const k=`${o.replace(new RegExp("[/]+$"),"")}/wp-json/wpo365/v1/${v}`;!b||b==="get"?Ee.get(k,{headers:{Accept:"application/json","X-WP-Nonce":s}}).then(L=>{if(L.status<200||L.status>=300)throw"data"in L&&"error_message"in L.data?L.data.error_message:L.statusText;i(L.data)}).catch(L=>{m(L,k)}).finally(()=>h(!1)):b==="post"?Ee.post(k,C||{},{headers:{Accept:"application/json","Content-Type":"application/json","X-WP-Nonce":s}}).then(L=>{if(L.status<200||L.status>=300)throw"data"in L&&"error_message"in L.data?L.data.error_message:L.statusText;i(L.data)}).catch(L=>{m(L,k)}).finally(()=>h(!1)):b==="delete"?Ee.delete(k,{headers:{Accept:"application/json","Content-Type":"application/json","X-WP-Nonce":s}}).then(L=>{if(L.status!==204)throw"data"in L&&"error_message"in L.data?L.data.error_message:L.statusText;c(!0)}).catch(L=>{m(L,k)}).finally(()=>h(!1)):b==="put"&&Ee.put(k,C,{headers:{Accept:"application/json","Content-Type":"application/json","X-WP-Nonce":s}}).then(L=>{if(L.status===200)i(L.data);else if(L.status===204)w(!0);else throw"data"in L&&"error_message"in L.data?L.data.error_message:L.statusText}).catch(L=>{m(L,k)}).finally(()=>h(!1))},_=()=>{i(null)};return D.useMemo(()=>({apiFetch:x,data:t,deleted:d,loading:u,updated:g,reset:_}),[t,d,u,g])},bd=()=>{const{selectedAppInstance:o,setIsDirty:s,setLastMessage:n,setLastModified:t,setSaveStatus:i,setSelectedAppInstance:d}=D.useContext(jn),{env:c,updateSettings:u}=D.useContext(Ye),h=D.useRef(void 0),g=D.useRef(void 0),[w,m]=D.useState(0),{apiFetch:x,data:_,loading:v}=ta();D.useEffect(()=>{o&&t(new Intl.DateTimeFormat(navigator.language,{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}).format(new Date(o.modified)))},[o]);const b=()=>{g.current&&(x(`apps/instance/${g.current.id}`,"put",{appInstance:{...g.current}}),s(!1))};return D.useEffect(()=>{i(v?"saving":"initial")},[v]),D.useEffect(()=>{w!==0&&(h.current&&(clearTimeout(h.current),h.current=void 0),h.current=setTimeout(b,2e3),s(!0))},[w]),D.useEffect(()=>{_&&(d(_),Fe.getSettings(c).then(L=>{u(L)}).catch(L=>n({type:ho.error,message:"FFailed to refresh locally cached WPO365 configuration. Please try and refresh the current page instead."})))},[_]),{autoSaving:v,saveNow:L=>{g.current=L,h.current&&(clearTimeout(h.current),h.current=void 0),b()},shouldSave:L=>{g.current=L,m(w+1)}}},Px=[{key:"00",text:"January"},{key:"01",text:"February"},{key:"02",text:"March"},{key:"03",text:"April"},{key:"04",text:"Mai"},{key:"05",text:"June"},{key:"06",text:"July"},{key:"07",text:"August"},{key:"08",text:"September"},{key:"09",text:"October"},{key:"10",text:"November"},{key:"11",text:"December"}],ER=o=>{const{settings:s}=D.useContext(Ye),{isPremium:n,selectedAppInstance:t,setLastMessage:i}=D.useContext(jn),{shouldSave:d}=bd(),[c,u]=D.useState(t?{...t}:null),[h,g]=D.useState(c?.config?.start?c.config.start.slice(5,7):""),[w,m]=D.useState(c?.config?.start?c.config.start.slice(0,4):""),[x,_]=D.useState(c?.config?.stop?c.config.stop.slice(5,7):""),[v,b]=D.useState(c?.config?.stop?c.config.stop.slice(0,4):"");return D.useEffect(()=>{h&&w&&u({...c,config:{...c.config,start:new Date(Date.UTC(parseInt(w),parseInt(h),1)).toISOString()}})},[h,w]),D.useEffect(()=>{x&&v&&u({...c,config:{...c.config,stop:new Date(Date.UTC(parseInt(v),parseInt(x),1)).toISOString()}})},[x,v]),D.useEffect(()=>{c&&JSON.stringify(c)!==JSON.stringify(t)&&d(c)},[c]),e.jsxs(U,{tokens:{childrenGap:15},children:[e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx("div",{className:j.wpo365AppsIcon,children:Ci(t.appType)}),e.jsx(Zr,{type:gr.info,children:t.appType}),e.jsx("h3",{style:{paddingLeft:"15px"},children:"Edit Form"})]}),!n&&e.jsx("div",{dangerouslySetInnerHTML:{__html:'Disabled options require a premium license e.g. <a href="https://www.wpo365.com/downloads/wpo365-microsoft-365-apps/" target="_blank">WPO365 | APPS</a> or <a href="https://www.wpo365.com/downloads/wpo365-integrate/" target="_blank">WPO365 | INTEGRATE</a>'},style:{color:"#0078D4"}}),(s.noSso||!s.applicationId||s.useSaml)&&e.jsxs(U,{className:j.wpo365InfoBox,horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},children:[e.jsx(kt,{className:j.wpo365InfoBoxIcon,iconName:"Lightbulb"}),e.jsx(U,{tokens:{childrenGap:15},children:e.jsxs("div",{children:["Please complete the configuration for"," ",e.jsx("a",{href:"https://tutorials.wpo365.com/courses/single-sign-on-openid-connect/",target:"_blank",rel:"noreferrer",children:"OpenID Connect based Single Sign-on"})," ","first. Following the instructions will help you create an ",e.jsx("strong",{children:"App Registration"})," that WPO365 can then use to connect to Microsoft Graph and the Power BI service on behalf of the logged-in user."]})})]}),e.jsx("span",{children:"Enter a user friendly name for this app."}),e.jsx(fe,{isValid:(C,k)=>k?.length<21,onValid:C=>{u({...c,title:C})},bound:!1,errorMessage:"Please shorten to 20 characters.",value:t.title,placeholder:'Display name e.g. "Sales Dashboard"'}),e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Allow anonymous users to interact with this app."}),e.jsx(ce,{checked:c?.appliedRequirements?.userRequirements?.appOnlyAccess,onChange:(C,k)=>{u({...c,config:{...c.config,calendarSource:k?Vr.users:c.config?.calendarSource||Vr.users},appliedRequirements:{...c.appliedRequirements,userRequirements:{...c.appliedRequirements.userRequirements,appOnlyAccess:k},appOnly:{...c.appliedRequirements.appOnly,endpoints:k?["https://graph.microsoft.com/_/users"]:[],permissions:k?["Calendars.Read"]:[]},delegated:{...c.appliedRequirements.delegated,endpoints:k?[]:["https://graph.microsoft.com/_/users"],permissions:k?[""]:["Calendars.Read"]}}})},disabled:!n})]}),e.jsxs(U,{className:j.wpo365InfoBox,horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},children:[e.jsx(kt,{className:j.wpo365InfoBoxIcon,iconName:"Lightbulb"}),e.jsxs(U,{tokens:{childrenGap:15},children:[e.jsx("h4",{style:{margin:"10px 0px 0px 0px"},children:"Permissions"}),e.jsxs("div",{children:["Please ensure that you have granted the following permissions to the"," ",e.jsx("a",{href:`https://entra.microsoft.com/#view/Microsoft_AAD_RegisteredApps/ApplicationMenuBlade/~/CallAnAPI/appId/${c?.appliedRequirements?.userRequirements?.appOnlyAccess?s.appOnlyApplicationId:s.applicationId}/isMSAApp~/false`,target:"_blank",rel:"noreferrer",children:"App Registration"}),` with ID ${c?.appliedRequirements?.userRequirements?.appOnlyAccess?s.appOnlyApplicationId:s.applicationId}.`]}),e.jsx("ul",{style:{marginBottom:"0px"},children:c?.appliedRequirements?.userRequirements?.appOnlyAccess?c?.appliedRequirements?.appOnly?.permissions?.map(C=>e.jsxs("li",{children:["Application permissions > ",C]})):c?.appliedRequirements?.delegated?.permissions?.map(C=>e.jsxs("li",{children:["Delegated permissions > ",C]}))})]})]}),e.jsxs(U,{className:j.wpo365InfoBox,horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},children:[e.jsx(kt,{className:j.wpo365InfoBoxIcon,iconName:"Lightbulb"}),e.jsxs(U,{tokens:{childrenGap:15},children:[e.jsx("h4",{style:{margin:"10px 0px 0px 0px"},children:"Endpoints"}),e.jsx("div",{children:"WPO365 will automatically allow apps to request data from the following endpoints provided by its custom WordPress REST API for Microsoft Graph / M365 Services."}),e.jsx("ul",{className:"wpo-ul mt-1 mb-1 small text-primary",children:c?.appliedRequirements?.userRequirements?.appOnlyAccess?c?.appliedRequirements?.appOnly?.endpoints?.map(C=>e.jsx("li",{children:`${C} | application-only access: yes}`})):c?.appliedRequirements?.delegated?.endpoints?.map(C=>e.jsx("li",{children:`${C} | application-only access: no}`}))})]})]}),e.jsx("span",{children:"Select a source for the calendar."}),e.jsx(qe,{placeholder:"Select an option",style:{maxWidth:"400px"},selectedKey:c?.config?.calendarSource,options:[{key:"current",text:"Logged-in User",disabled:!n||c?.appliedRequirements?.userRequirements?.appOnlyAccess},{key:"shared",text:"Shared Calendar",disabled:!n||c?.appliedRequirements?.userRequirements?.appOnlyAccess},{key:"users",text:"Specific User"},{key:"groups",text:"Specific Group",disabled:c?.appliedRequirements?.userRequirements?.appOnlyAccess}],onChange:(C,k)=>{u({...c,config:{...c.config,calendarSource:k.key},appliedRequirements:{...c.appliedRequirements,appOnly:{...c.appliedRequirements.appOnly,permissions:k.key===Vr.users&&c.appliedRequirements.userRequirements.appOnlyAccess?["Calendars.Read"]:[],endpoints:k.key===Vr.users&&c.appliedRequirements.userRequirements.appOnlyAccess?["https://graph.microsoft.com/_/users"]:[]},delegated:{...c.appliedRequirements.delegated,permissions:c.appliedRequirements.userRequirements.appOnlyAccess?[]:k.key===Vr.shared?["Calendars.Read.Shared"]:k.key===Vr.groups?["Group.Read.All"]:["Calendars.Read"],endpoints:c.appliedRequirements.userRequirements.appOnlyAccess?[]:k.key===Vr.current?["https://graph.microsoft.com/_/me"]:k.key===Vr.groups?["https://graph.microsoft.com/_/groups"]:["https://graph.microsoft.com/_/users"]}}})}}),c?.config?.calendarSource!==Vr.current&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:c?.config?.calendarSource===Vr.shared||c?.config?.calendarSource===Vr.users?"User principal name or Object ID":"Group Object ID"}),e.jsx(fe,{bound:!1,placeholder:c?.config?.calendarSource===Vr.shared||c?.config?.calendarSource===Vr.users?"e.g. user@domain":"e.g. 8f7b8a33-f550-4197-80ea-5617865ac2cb",isValid:(C,k)=>/^(?:[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+\.)*[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+@(?:(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!\.)){0,61}[a-zA-Z0-9]?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!$)){0,61}[a-zA-Z0-9]?)|(?:\[(?:(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\]))$/.test(k)||/^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(k),onValid:C=>u({...c,config:{...c.config,id:C}}),errorMessage:"Calendar identifier must be a valid user principal name or an Object ID (GUID)",value:c?.config?.id||""})]}),e.jsx("span",{children:"Choose how calendar events are grouped."}),e.jsx(qe,{placeholder:"Select an option",style:{maxWidth:"400px"},selectedKey:c?.config?.groupBy,options:[{key:"day",text:"By day"},{key:"week",text:"By week"},{key:"month",text:"By month"},{key:"year",text:"By year"}],onChange:(C,k)=>{u({...c,config:{...c.config,groupBy:k.key}})},disabled:!n}),e.jsx("span",{children:"Configure date range for displayed events."}),e.jsx(qe,{placeholder:"Select an option",style:{maxWidth:"400px"},selectedKey:c?.config?.range,options:[{key:"custom",text:"Custom"},{key:"today",text:"Today"},{key:"currentWeek",text:"This week"},{key:"currentMonth",text:"This month"},{key:"currentYear",text:"This year"}],onChange:(C,k)=>{u({...c,config:{...c.config,range:k.key}})},disabled:!n}),c?.config?.range===aw.custom&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Custom range: Start"}),e.jsx(ce,{onChange:(C,k)=>{const L=k?!!c.config?.oneYear:!1;u({...c,config:{...c.config,startToday:k,oneYear:L}})},checked:c?.config?.startToday,label:"Today (rolling)"}),!c?.config?.startToday&&e.jsxs(U,{horizontal:!0,horizontalAlign:"start",tokens:{childrenGap:10},children:[e.jsx(qe,{placeholder:"Select first month",style:{maxWidth:"200px"},selectedKey:h,options:Px,onChange:(C,k)=>g(String(k.key))}),e.jsx(fe,{bound:!1,isValid:(C,k)=>{const L=parseInt(k);return!isNaN(L)&&L>1900&&L<2099},onValid:C=>m(C),value:w,placeholder:"Year e.g. 2024"})]}),e.jsx("span",{children:"Custom range: Stop"}),!!c?.config?.startToday&&e.jsx(ce,{onChange:(C,k)=>u({...c,config:{...c.config,oneYear:k}}),checked:c?.config?.oneYear,label:"Show events for the upcoming year."}),!c?.config?.oneYear&&e.jsxs(U,{horizontal:!0,horizontalAlign:"start",tokens:{childrenGap:10},children:[e.jsx(qe,{placeholder:"Select last month",style:{maxWidth:"200px"},selectedKey:x,options:Px,onChange:(C,k)=>_(String(k.key))}),e.jsx(fe,{bound:!1,isValid:(C,k)=>{const L=parseInt(k);return!isNaN(L)&&L>1900&&L<2099},onValid:C=>b(C),value:v,placeholder:"Year e.g. 2024"})]})]})]})},DR="modulepreload",IR=function(o,s){return new URL(o,s).href},Rx={},lw=function(s,n,t){let i=Promise.resolve();if(n&&n.length>0){let g=function(w){return Promise.all(w.map(m=>Promise.resolve(m).then(x=>({status:"fulfilled",value:x}),x=>({status:"rejected",reason:x}))))};const c=document.getElementsByTagName("link"),u=document.querySelector("meta[property=csp-nonce]"),h=u?.nonce||u?.getAttribute("nonce");i=g(n.map(w=>{if(w=IR(w,t),w in Rx)return;Rx[w]=!0;const m=w.endsWith(".css"),x=m?'[rel="stylesheet"]':"";if(!!t)for(let b=c.length-1;b>=0;b--){const C=c[b];if(C.href===w&&(!m||C.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${w}"]${x}`))return;const v=document.createElement("link");if(v.rel=m?"stylesheet":DR,m||(v.as="script"),v.crossOrigin="",v.href=w,h&&v.setAttribute("nonce",h),document.head.appendChild(v),m)return new Promise((b,C)=>{v.addEventListener("load",b),v.addEventListener("error",()=>C(new Error(`Unable to preload CSS for ${w}`)))})}))}function d(c){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=c,window.dispatchEvent(u),!u.defaultPrevented)throw c}return i.then(c=>{for(const u of c||[])u.status==="rejected"&&d(u.reason);return s().catch(d)})},lS=o=>{const{appInstance:s,updateAppInstance:n}=o,[t,i]=D.useState({});return D.useEffect(()=>i(s?.config?.translations||{}),[]),e.jsxs(U,{tokens:{childrenGap:15},children:[e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx("div",{className:j.wpo365AppsIcon,children:Ci(s.appType)}),e.jsx(Zr,{type:gr.info,children:s.appType}),e.jsx("h3",{style:{paddingLeft:"15px"},children:"Edit translations"})]}),Object.keys(t).sort().map(d=>e.jsxs(U,{tokens:{childrenGap:5},children:[e.jsx("div",{children:e.jsx("strong",{children:d})}),e.jsx(fe,{value:t[d],isValid:()=>!0,onValid:c=>{if(c===t[d])return;const u={...t};u[d]=c,i(u),n({...s,config:{...s.config,translations:{...u}}})},bound:!1})]}))]})},TR=o=>{const{appInstance:s,updateAppInstance:n}=o,{isPremium:t}=D.useContext(jn),{env:{props:{extensions:i,pluginsUrl:d,siteUrl:c}}}=D.useContext(Ye),[u,h]=D.useState(!1),g=D.useMemo(()=>{if(!t)return"";const x=d||`${c}/wp-content/plugins`,_=t?i.find(b=>[l.wpo365Apps,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate].indexOf(b)>-1):"wpo365Login";let v="";switch(_){case l.wpo365Apps:v="wpo365-apps";break;case l.wpo365LoginIntranet:v="wpo365-login-intranet";break;case l.wpo365Intranet5y:v="wpo365-intranet-5y";break;case l.wpo365Integrate:v="wpo365-integrate";break;default:v="wpo365-login"}return`${x}/${v}/apps/dist/templates/calendar.template.html`},[]),[w,m]=D.useState(structuredClone(s));return D.useEffect(()=>{u&&(h(!1),n(structuredClone(w)))},[w]),e.jsxs(U,{tokens:{childrenGap:15},children:[e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx("div",{className:j.wpo365AppsIcon,children:Ci(s.appType)}),e.jsx(Zr,{type:gr.info,children:s.appType}),e.jsx("h3",{style:{paddingLeft:"15px"},children:"Edit template"})]}),!t&&e.jsx("div",{dangerouslySetInnerHTML:{__html:'Disabled options require a premium license e.g. <a href="https://www.wpo365.com/downloads/wpo365-microsoft-365-apps/" target="_blank">WPO365 | APPS</a> or <a href="https://www.wpo365.com/downloads/wpo365-integrate/" target="_blank">WPO365 | INTEGRATE</a>'},style:{color:"#0078D4",alignSelf:"center"}}),e.jsx("span",{children:"Use calendar picker."}),e.jsx(ce,{checked:w?.config?.template?.usePicker,onChange:(x,_)=>{h(!0),m({...w,config:{...w.config,template:{...w.config.template,usePicker:_}}})},disabled:!t}),!!w?.config?.template?.usePicker&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Max. columns to display (0 for responsive)."}),e.jsx(fe,{bound:!1,isValid:(x,_)=>{const v=parseInt(_);return!isNaN(v)&&v>=0&&v<10},onValid:x=>{h(!0),m({...w,config:{...w.config,template:{...w.config.template,maxCols:parseInt(x)}}})},value:String(w?.config?.template?.maxCols||0),errorMessage:"Value must be between 0 and 10.",placeholder:"e.g. 3 (max 10)"}),e.jsx("span",{children:'Items added on each "Load more".'}),e.jsx(fe,{bound:!1,isValid:(x,_)=>{const v=parseInt(_);return!isNaN(v)&&v>=1&&v<999},onValid:x=>{h(!0),m({...w,config:{...w.config,template:{...w.config.template,loadMore:parseInt(x)}}})},value:String(w?.config?.template?.loadMore||4),errorMessage:"Value must be between 1 and 999.",placeholder:"e.g. 4 (max 999)"}),e.jsx("span",{children:"Disable event detail popups."}),e.jsx(ce,{checked:w?.config?.template?.disablePopups,onChange:(x,_)=>{h(!0),m({...w,config:{...w.config,template:{...w.config.template,disablePopups:_}}})},disabled:!t}),e.jsx("span",{children:"Hide separator."}),e.jsx(ce,{checked:w?.config?.template?.hideSeparator,onChange:(x,_)=>{h(!0),m({...w,config:{...w.config,template:{...w.config.template,hideSeparator:_}}})},disabled:!t}),e.jsx("span",{children:"Hide preview of the body."}),e.jsx(ce,{checked:w?.config?.template?.hideBodyPreview,onChange:(x,_)=>{h(!0),m({...w,config:{...w.config,template:{...w.config.template,hideBodyPreview:_}}})},disabled:!t})]}),e.jsx("span",{children:"Use a custom Event template (popup)."}),e.jsx(ce,{checked:w?.config?.template?.useTemplate,onChange:(x,_)=>{h(!0),m({...w,config:{...w.config,template:{...w.config.template,useTemplate:_,templateUrl:_?g:""}}})},disabled:!t}),e.jsx("span",{children:"Template URL."}),e.jsx(fe,{isValid:(x,_)=>!_||/^(https?:\/\/)([^\s$.?#].[^\s]*)$/i.test(_),onValid:x=>{h(!0),m({...w,config:{...w.config,template:{...w.config.template,templateUrl:x}}})},bound:!1,errorMessage:"A valid URL must start with http(s)://.",value:s?.config?.template?.templateUrl||g,placeholder:"e.g. https://url/template.html",disabled:!t||!w.config.template.useTemplate})]})},Fx={root:{minWidth:0,padding:"10px",alignSelf:"stretch",height:"auto",backgroundColor:"#f1f1f1"},rootHovered:{backgroundColor:"#f4f4f4"}},AR=D.lazy(()=>lw(()=>import("./wizard-chunk-BRhoq-bR.js"),[],import.meta.url)),PR=()=>{const{isPremium:o,selectedAppInstance:s,setPanelChild:n,setSelectedAppInstance:t,setShowPreview:i,showPreview:d}=D.useContext(jn),{env:{nonce:c,props:{extensions:u,pluginsUrl:h,siteUrl:g},wpAjaxAdminUrl:w}}=D.useContext(Ye),[m,x]=D.useState(s?structuredClone(s):null),{shouldSave:_}=bd();D.useEffect(()=>{m&&JSON.stringify(m)!==JSON.stringify(s)&&_(m)},[m]);const v=D.useMemo(()=>{const b=Date.now().toString(16),C=Math.floor(Math.random()*1048575).toString(16);return b+C},[m]);return D.useEffect(()=>{if(m&&d){window.wpo365=window.wpo365||{},window.wpo365.appConfigs=window.wpo365.appConfigs||{},window.wpo365.appConfigs[`_${m.id}`]={config:m.config,nonce:c,userRequirements:m.appliedRequirements?.userRequirements,wpAjaxAdminUrl:w};const b=()=>{const C=h||`${g}/wp-content/plugins`,k=o?u.find(Y=>[l.wpo365Apps,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate].indexOf(Y)>-1):"wpo365Login";let L="";switch(k){case l.wpo365Apps:L="wpo365-apps";break;case l.wpo365LoginIntranet:L="wpo365-login-intranet";break;case l.wpo365Intranet5y:L="wpo365-intranet-5y";break;case l.wpo365Integrate:L="wpo365-integrate";break;default:L="wpo365-login"}let T="";switch(m.appType){case"cal":T=o?"calendar":"calendarBasic";break}const N=document.createElement("script");N.src=`${C}/${L}/apps/dist/${T}.js?rootId=${v}&appId=${m.id}`,N.type="module",N.onload=onload,document.head.appendChild(N)};if(document.getElementById("wpo365React"))b();else{const C=document.createElement("script");C.id="wpo365React",C.src="https://cdnjs.cloudflare.com/ajax/libs/react/16.14.0/umd/react.production.min.js",C.onload=()=>{const k=document.createElement("script");k.id="wpo365ReactDom",k.src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/16.14.0/umd/react-dom.production.min.js",k.onload=b,document.head.appendChild(k)},document.head.appendChild(C)}}},[d,m]),e.jsxs(U,{className:j.wpo365AppPreview,tokens:{childrenGap:15},children:[e.jsx("h3",{className:j.wpo365AppsHeading,children:"App preview"}),e.jsx(ph,{className:j.wpo365AppPreviewMenu,items:[{key:"close",name:"Close",icon:"Cancel",onClick:()=>{i(!1),t(null)}},{disabled:!o,key:"editColumns",icon:"Edit",name:"Columns",onClick:()=>{n({elem:e.jsx(D.Suspense,{fallback:e.jsx("div",{children:"Loading..."}),children:e.jsx(AR,{appInstance:m,updateAppInstance:x,configPropName:"columns",standAlone:!0})}),onDismiss:()=>{}})}},{disabled:!o,key:"editTranslations",icon:"Edit",name:"Translations",onClick:()=>{n({elem:e.jsx(lS,{appInstance:m,updateAppInstance:x}),onDismiss:()=>{}})}},{key:"editTemplate",icon:"Edit",name:"Template",onClick:()=>{n({elem:e.jsx(TR,{appInstance:{...m},updateAppInstance:x}),onDismiss:()=>{}})}}],onRenderOverflowButton:b=>e.jsx(Dn,{styles:Fx,text:"Edit options",iconProps:{iconName:"More"},menuProps:{items:b}}),onRenderItem:b=>b.onRender?b.onRender(b):e.jsx(Dn,{disabled:b.disabled,iconProps:{iconName:b.icon},menuProps:b.subMenuProps,text:b.name,onClick:b.onClick,styles:Fx})}),!o&&e.jsx("div",{dangerouslySetInnerHTML:{__html:'Disabled options require a premium license e.g. <a href="https://www.wpo365.com/downloads/wpo365-microsoft-365-apps/" target="_blank">WPO365 | APPS</a> or <a href="https://www.wpo365.com/downloads/wpo365-integrate/" target="_blank">WPO365 | INTEGRATE</a>'},style:{color:"#0078D4",alignSelf:"center"}}),e.jsx("div",{id:v})]})},dS=o=>{for(var s=0,n=0,t=o.length;n<t;)s=(s<<5)-s+o.charCodeAt(n++)<<0;return(s+2147483647+1).toString()},RR=(o,s)=>{const n=sessionStorage.getItem("pbiEmbedUrlCache");if(n===null)return null;const t=JSON.parse(n),i=dS(`${o}_${s}`),d=Object.keys(t);let c=null;for(let u=d.length-1;u>=0;u--)if(d[u]===i)if(t[d[u]].expiration&&t[d[u]].expiration>Date.now()){c=t[d[u]].embedUrl;continue}else delete t[d[u]];return sessionStorage.setItem("pbiEmbedUrlCache",JSON.stringify(t)),c||null},FR=(o,s,n)=>{const t=sessionStorage.getItem("pbiEmbedUrlCache"),i=t==null?{}:JSON.parse(t),d=dS(`${o}_${s}`);i[d]={embedUrl:n,expiration:Date.now()+36e5},sessionStorage.setItem("pbiEmbedUrlCache",JSON.stringify(i))},NR=()=>{const{setLastMessage:o}=D.useContext(jn);return{getSrcEmbed:async i=>{const{contentType:d,groupId:c,reportId:u,dashboardId:h,tileId:g,tokenType:w}=i,m={type:d===Ro.paginatedReport?"report":d,tokenType:w===En.Aad?0:1,accessToken:"__## WILL BE AUTOMATICALLY SET BY THE APP ##__",settings:{}};if(d===Ro.paginatedReport||d===Ro.report){if(!c||!u)return o({message:"Workspace and / or report ID are empty. Please update the token-request and embed-configuration manually.",type:ho.error}),m;m.id=u;const x=RR(c,u);if(x)return m.embedUrl=x,m;let _;try{_=await XA({endpoint:"proxy",headers:{Accept:"application/json;odata=nometadata","Content-Type":"application/json"},scope:w!=En.Aad?"https://analysis.windows.net/powerbi/api/.default":"https://analysis.windows.net/powerbi/api/Report.Read.All",url:`https://api.powerbi.com/v1.0/myorg/groups/${c}/reports/${u}`,method:ow.get,application:w!=En.Aad})}catch(v){const b=typeof v=="string"?v:v.response?.message||v.response?.statusText||v.message;return o({message:`Failed to retrieve the embedUrl. Please update the "embedUrl" manually in the embed-configuration. [Error: ${b}]`,type:ho.error}),m}return _&&"embedUrl"in _?(FR(c,u,_.embedUrl),m.embedUrl=_.embedUrl,m):(o({message:'Failed to retrieve the embedUrl. Please update the "embedUrl" manually in the embed-configuration. [Unexpected response]',type:ho.error}),m)}else d===Ro.dashboard?(m.id=h,m.embedUrl=`https://app.powerbi.com/dashboardEmbed?dashboardId=${h}&groupId=${c}`):d===Ro.tile&&(m.id=g,m.embedUrl=`https://app.powerbi.com/embed?dashboardId=${h}&tileId=${g}&groupId=${c}`,m.dashboardId=h);return m},getTokenRequest:i=>{const{tokenType:d,groupId:c,reportId:u,datasetIds:h,datasetXmlaPermission:g,reportAllowEdit:w}=i;if(d==En.Aad)return{};const m={accessLevel:"View"};switch(d){case En.reportInGroup:delete m.accessLevel,c&&(m.targetWorkspaces=[{id:`${c}`}]),u&&(m.reports=[{id:`${u}`,allowEdit:w}]),h&&(m.datasets=h.map(x=>({id:`${x}`,xmlaPermissions:`${g}`})));break;case En.dashboardInGroup:break;case En.tileInGroup:break}return m},getTokenRequestUrl:i=>{const{tokenType:d,groupId:c,reportId:u,dashboardId:h,tileId:g}=i;switch(d){case En.reportInGroup:return"https://api.powerbi.com/v1.0/myorg/GenerateToken";case En.dashboardInGroup:return`https://api.powerbi.com/v1.0/myorg/groups/${c}/dashboards/${h}/GenerateToken`;case En.tileInGroup:return`https://api.powerbi.com/v1.0/myorg/groups/${c}/dashboards/${h}/tiles/${g}/GenerateToken`;default:return""}}}},wf=D.lazy(()=>lw(()=>import("./wizard-chunk-BRhoq-bR.js"),[],import.meta.url)),OR=o=>{const{settings:s}=D.useContext(Ye),{isPremium:n,selectedAppInstance:t,setLastMessage:i}=D.useContext(jn),{shouldSave:d}=bd(),[c,u]=D.useState(t?{...t}:null),[h,g]=D.useState(!1),[w,m]=D.useState(!1),[x,_]=D.useState(Zt(6)),{getSrcEmbed:v,getTokenRequest:b,getTokenRequestUrl:C}=NR();return D.useEffect(()=>{c===null&&t&&u({...t})},[t]),D.useEffect(()=>{c&&JSON.stringify(c)!==JSON.stringify(t)&&d(c),Object.keys(c?.config?.embedConfig||{}).length>0&&g(!0)},[c]),D.useEffect(()=>{w&&(m(!1),h?v(c.config).then(k=>{u({...c,config:{...c.config,tokenRequestUrl:C(c.config),tokenRequest:b(c.config),filterConfig:c.config.filterConfig,embedConfig:{...k}}}),_(Zt(6))}).catch(k=>i({message:typeof k=="string"?k:k.message,type:ho.error})):u({...c,config:{...c.config,tokenRequestUrl:"",tokenRequest:{},filterConfig:{},embedConfig:{}}}))},[w]),e.jsxs(U,{tokens:{childrenGap:15},children:[e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx("div",{className:j.wpo365AppsIcon,children:Ci(t.appType)}),e.jsx(Zr,{type:gr.info,children:t.appType}),e.jsx("h3",{style:{paddingLeft:"15px"},children:"Edit Form"})]}),!n&&e.jsx("div",{dangerouslySetInnerHTML:{__html:'Disabled options require a premium license e.g. <a href="https://www.wpo365.com/downloads/wpo365-microsoft-365-apps/" target="_blank">WPO365 | APPS</a> or <a href="https://www.wpo365.com/downloads/wpo365-integrate/" target="_blank">WPO365 | INTEGRATE</a>'},style:{color:"#0078D4"}}),!c?.appliedRequirements?.userRequirements?.appOnlyAccess&&(s.noSso||!s.applicationId||s.useSaml)&&e.jsxs(U,{className:j.wpo365InfoBox,horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},children:[e.jsx(kt,{className:j.wpo365InfoBoxIcon,iconName:"Lightbulb"}),e.jsx(U,{tokens:{childrenGap:15},children:e.jsxs("div",{children:["Please complete the configuration for"," ",e.jsx("a",{href:"https://tutorials.wpo365.com/courses/single-sign-on-openid-connect/",target:"_blank",rel:"noreferrer",children:"OpenID Connect based Single Sign-on"})," ","first. Following the instructions will help you create an ",e.jsx("strong",{children:"App Registration"})," that WPO365 can then use to connect to Microsoft Graph and the Power BI service on behalf of the logged-in user."]})})]}),c?.appliedRequirements?.userRequirements?.appOnlyAccess&&s.noSso&&!s.appOnlyApplicationId&&e.jsxs(U,{className:j.wpo365InfoBox,horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},children:[e.jsx(kt,{className:j.wpo365InfoBoxIcon,iconName:"Lightbulb"}),e.jsx(U,{tokens:{childrenGap:15},children:e.jsxs("div",{children:["Please complete the configuration for"," ",e.jsx("a",{href:"https://tutorials.wpo365.com/courses/integration-application-permissions/",target:"_blank",rel:"noreferrer",children:"Integration Application Permissions"})," ","first. Following the instructions will help you create an ",e.jsx("strong",{children:"App Registration"})," that WPO365 can then use to embed Power BI content for your customers that do not bring a valid Power BI Pro license."]})})]}),e.jsx("span",{children:"Enter a user friendly name for this app."}),e.jsx(fe,{isValid:(k,L)=>L?.length<21,onValid:k=>{u({...c,title:k})},bound:!1,errorMessage:"Please shorten to 20 characters.",value:t.title,placeholder:'Display name e.g. "Sales Dashboard"'}),e.jsx("span",{children:"Power BI content to embed."}),e.jsx(qe,{options:[{key:"report",text:"Report"},{key:"paginatedReport",text:"Paginated Report",disabled:!n},{key:"dashboard",text:"Dashboard"},{key:"tile",text:"Tile"}],selectedKey:c?.config?.contentType,onChange:(k,L)=>u({...c,config:{...c.config,contentType:L.key}}),style:{maxWidth:"400px"}}),c?.config?.contentType&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Select your embed scenario (token type)."}),e.jsx(qe,{options:[{key:"organization",text:"For your organization | Power BI Pro license"},{key:"customers",text:"For your customers | Premium capacity / PPU",disabled:!n}],selectedKey:c?.config?.tokenType!==En.Aad?"customers":"organization",onChange:(k,L)=>u({...c,appliedRequirements:{...c.appliedRequirements,userRequirements:{...c.appliedRequirements.userRequirements,appOnlyAccess:L.key==="customers"}},config:{...c.config,tokenType:L.key==="organization"?En.Aad:c.config.contentType===Ro.dashboard?En.dashboardInGroup:c.config.contentType===Ro.tile?En.tileInGroup:En.reportInGroup}}),style:{maxWidth:"400px"}})]}),c?.config?.contentType&&c?.config?.tokenType===En.Aad&&e.jsxs(U,{className:j.wpo365InfoBox,horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},children:[e.jsx(kt,{className:j.wpo365InfoBoxIcon,iconName:"Lightbulb"}),e.jsxs(U,{tokens:{childrenGap:15},children:[e.jsx("h4",{style:{margin:"10px 0px 0px 0px"},children:"Permissions"}),e.jsxs("div",{children:["Since you are embedding for your organization, you must ensure that you have granted the following permissions to the"," ",e.jsx("a",{href:`https://entra.microsoft.com/#view/Microsoft_AAD_RegisteredApps/ApplicationMenuBlade/~/CallAnAPI/appId/${s.applicationId}/isMSAApp~/false`,target:"_blank",rel:"noreferrer",children:"App Registration"}),` with ID ${s.applicationId}.`]}),e.jsx("ul",{style:{marginBottom:"0px"},children:c?.appliedRequirements?.delegated?.permissions.map(k=>e.jsxs("li",{children:["Delegated permissions > ",k]}))})]})]}),c?.config?.contentType&&c?.config?.tokenType!==En.Aad&&e.jsxs(U,{className:j.wpo365InfoBox,horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},children:[e.jsx(kt,{className:j.wpo365InfoBoxIcon,iconName:"Lightbulb"}),e.jsxs(U,{tokens:{childrenGap:15},children:[e.jsx("h4",{style:{margin:"10px 0px 0px 0px"},children:"Permissions"}),e.jsxs("div",{children:["Since you are embedding for your customers, you do not need to have granted any permissions to the"," ",e.jsx("a",{href:`https://entra.microsoft.com/#view/Microsoft_AAD_RegisteredApps/ApplicationMenuBlade/~/CallAnAPI/appId/${s.appOnlyApplicationId}/isMSAApp~/false`,target:"_blank",rel:"noreferrer",children:"App Registration"}),` with ID ${s.appOnlyApplicationId}. Instead, you must give the Service Principal (admin) access to the workspace.`]})]})]}),c?.appliedRequirements?.userRequirements?.appOnlyAccess&&c?.appliedRequirements?.appOnly?.endpoints?.length>0||!c?.appliedRequirements?.userRequirements?.appOnlyAccess&&c?.appliedRequirements?.delegated?.endpoints?.length>0&&e.jsxs(U,{className:j.wpo365InfoBox,horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},children:[e.jsx(kt,{className:j.wpo365InfoBoxIcon,iconName:"Lightbulb"}),e.jsxs(U,{tokens:{childrenGap:15},children:[e.jsx("h4",{style:{margin:"10px 0px 0px 0px"},children:"Endpoints"}),e.jsx("div",{children:"WPO365 will automatically allow apps to request data from the following endpoints provided by its custom WordPress REST API for Microsoft Graph / M365 Services."}),e.jsx("ul",{className:"wpo-ul mt-1 mb-1 small text-primary",children:c?.appliedRequirements?.userRequirements?.appOnlyAccess?c?.appliedRequirements?.appOnly?.endpoints.map(k=>e.jsx("li",{children:`${k} | application-only access: yes`})):c?.appliedRequirements?.delegated?.endpoints.map(k=>e.jsx("li",{children:`${k} | application-only access: no`}))})]})]}),(c?.appliedRequirements?.userRequirements?.appOnlyAccess&&c?.appliedRequirements?.appOnly?.token||!c?.appliedRequirements?.userRequirements?.appOnlyAccess&&c?.appliedRequirements?.delegated?.token)&&e.jsxs(U,{className:j.wpo365InfoBox,horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},children:[e.jsx(kt,{className:j.wpo365InfoBoxIcon,iconName:"Lightbulb"}),e.jsxs(U,{tokens:{childrenGap:15},children:[e.jsx("h4",{style:{margin:"10px 0px 0px 0px"},children:"Request tokens"}),e.jsx("div",{children:"WPO365 will allow apps to request (delegated) OAuth access tokens."})]})]}),(c?.appliedRequirements?.userRequirements?.appOnlyAccess&&c?.appliedRequirements?.appOnly?.proxy||!c?.appliedRequirements?.userRequirements?.appOnlyAccess&&c?.appliedRequirements?.delegated?.proxy)&&e.jsxs(U,{className:j.wpo365InfoBox,horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},children:[e.jsx(kt,{className:j.wpo365InfoBoxIcon,iconName:"Lightbulb"}),e.jsxs(U,{tokens:{childrenGap:15},children:[e.jsx("h4",{style:{margin:"10px 0px 0px 0px"},children:"Proxy request"}),e.jsx("div",{children:"WPO365 allows applications to issue requests, which it then transparently proxies to Microsoft Graph."})]})]}),c?.config?.contentType&&c?.config?.tokenType&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Workspace / Group ID."}),e.jsx(fe,{isValid:(k,L)=>/^\s*\{?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\}?(\s*,\s*\{?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\}?)*\s*$/i.test(L),onValid:k=>{u({...c,config:{...c.config,groupId:k}}),h&&t?.config?.groupId!==k&&m(!0)},bound:!1,errorMessage:"Please enter a valid GUID.",value:t?.config?.groupId,placeholder:'ID of the workspace e.g. "123e4567-e89b-12d3-a456-426614174000"'})]}),[Ro.paginatedReport,Ro.report].indexOf(c?.config?.contentType)>-1&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Report ID."}),e.jsx(fe,{isValid:(k,L)=>/^\s*\{?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\}?(\s*,\s*\{?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\}?)*\s*$/i.test(L),onValid:k=>{u({...c,config:{...c.config,reportId:k}}),h&&t?.config?.reportId!==k&&m(!0)},bound:!1,errorMessage:"Please enter a valid GUID.",value:t?.config?.reportId,placeholder:'ID of the report e.g. "123e4567-e89b-12d3-a456-426614174000"'})]}),c?.config?.contentType===Ro.dashboard&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Dashboard ID."}),e.jsx(fe,{isValid:(k,L)=>/^\s*\{?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\}?(\s*,\s*\{?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\}?)*\s*$/i.test(L),onValid:k=>{u({...c,config:{...c.config,dashboardId:k}}),h&&t?.config?.dashboardId!==k&&m(!0)},bound:!1,errorMessage:"Please enter a valid GUID.",value:t?.config?.dashboardId,placeholder:'ID of the dashboard e.g. "123e4567-e89b-12d3-a456-426614174000"'})]}),c?.config?.contentType===Ro.tile&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Tile ID."}),e.jsx(fe,{isValid:(k,L)=>/^\s*\{?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\}?(\s*,\s*\{?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\}?)*\s*$/i.test(L),onValid:k=>{u({...c,config:{...c.config,tileId:k}}),h&&t?.config?.tileId!==k&&m(!0)},bound:!1,errorMessage:"Please enter a valid GUID.",value:t?.config?.tileId,placeholder:'ID of the tile e.g. "123e4567-e89b-12d3-a456-426614174000"'})]}),e.jsx("span",{children:"Dataset ID(s)."}),e.jsx(fe,{isValid:(k,L)=>/^\s*\{?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\}?(\s*,\s*\{?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\}?)*\s*$/i.test(L),onValid:k=>{u({...c,config:{...c.config,datasetIds:k.split(",").map(L=>L.trim().replace(/^\{|\}$/g,"")).filter(Boolean)}}),h&&(t?.config?.datasetIds||[]).join(", ")!==k&&m(!0)},bound:!1,errorMessage:"Please enter one (or more comma-separated) valid GUID(s).",value:t?.config?.datasetIds.join(", "),placeholder:'ID of the dataset e.g. "123e4567-e89b-12d3-a456-426614174000"'}),e.jsx("span",{children:"Advanced JSON-edit options."}),e.jsx("div",{children:e.jsx(et,{toggle:!0,onClick:k=>{g(!h),m(!0)},text:h?"Edit config visually":"Edit embed-config manually (JSON)",iconProps:h?{iconName:"PageEdit"}:{iconName:"CodeEdit"},style:{minWidth:"400px",minHeight:"30px"},disabled:!n})}),h&&e.jsxs(e.Fragment,{children:[c?.config?.tokenType!==En.Aad&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Token request endpoint / URL."}),e.jsx("div",{children:e.jsx(D.Suspense,{fallback:e.jsx("div",{children:"Loading..."}),children:e.jsx(wf,{appInstance:{...c},updateAppInstance:u,configPropName:"tokenRequestUrl",cacheKey:x})})}),e.jsx("span",{children:"Token request (JSON)."}),e.jsx("div",{children:e.jsx(D.Suspense,{fallback:e.jsx("div",{children:"Loading..."}),children:e.jsx(wf,{appInstance:{...c},updateAppInstance:u,configPropName:"tokenRequest",cacheKey:x})})})]}),e.jsx("span",{children:"Embed configuration (JSON)."}),e.jsx("div",{children:e.jsx(D.Suspense,{fallback:e.jsx("div",{children:"Loading..."}),children:e.jsx(wf,{appInstance:{...c},updateAppInstance:u,configPropName:"embedConfig",cacheKey:x})})}),e.jsx("span",{children:"Filter configuration (JSON)."}),e.jsx("div",{children:e.jsx(D.Suspense,{fallback:e.jsx("div",{children:"Loading..."}),children:e.jsx(wf,{appInstance:{...c},updateAppInstance:u,configPropName:"filterConfig",cacheKey:x})})})]}),e.jsxs(U,{className:j.wpo365InfoBox,horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},children:[e.jsx(kt,{className:j.wpo365InfoBoxIcon,iconName:"Lightbulb"}),e.jsx(U,{tokens:{childrenGap:15},children:e.jsxs("div",{children:["To continue editing your app e.g. to edit the template, width, height or add a splash-image, please close this panel and click the"," ",e.jsx("strong",{children:"Preview"})," icon for the app in the ",e.jsx("strong",{children:"Your apps"})," overview."]})})]})]})},YR=o=>{const{appInstance:s,updateAppInstance:n}=o,{isPremium:t}=D.useContext(jn),[i,d]=D.useState(null);return D.useEffect(()=>{s&&d(JSON.parse(JSON.stringify(s)))},[s]),D.useEffect(()=>{i?.config?.template&&JSON.stringify(i.config.template)!==JSON.stringify(s?.config?.template||{})&&n(structuredClone(i))},[i]),e.jsxs(U,{tokens:{childrenGap:15},children:[e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx("div",{className:j.wpo365AppsIcon,children:Ci(s.appType)}),e.jsx(Zr,{type:gr.info,children:s.appType}),e.jsx("h3",{style:{paddingLeft:"15px"},children:"Edit template"})]}),!t&&e.jsx("div",{dangerouslySetInnerHTML:{__html:'Disabled options require a premium license e.g. <a href="https://www.wpo365.com/downloads/wpo365-microsoft-365-apps/" target="_blank">WPO365 | APPS</a> or <a href="https://www.wpo365.com/downloads/wpo365-integrate/" target="_blank">WPO365 | INTEGRATE</a>'},style:{color:"#0078D4",alignSelf:"center"}}),e.jsx("span",{children:"Width."}),e.jsx(fe,{isValid:(c,u)=>u?.length<20,onValid:c=>{d({...i,config:{...i.config,template:{...i.config.template,width:c}}})},bound:!1,errorMessage:"Please shorten to 20 characters.",value:s?.config?.template?.width,placeholder:"e.g. 50vw or 500px"}),e.jsx("span",{children:"Height."}),e.jsx(fe,{isValid:(c,u)=>u?.length<20,onValid:c=>{d({...i,config:{...i.config,template:{...i.config.template,height:c}}})},bound:!1,errorMessage:"Please shorten to 20 characters.",value:s?.config?.template?.height,placeholder:"e.g. 60vh or 600px"}),e.jsx("span",{children:"Splash screen image URL."}),e.jsx(fe,{isValid:(c,u)=>!u||/^(https?:\/\/)([^\s$.?#].[^\s]*)$/i.test(u),onValid:c=>{d({...i,config:{...i.config,template:{...i.config.template,splashScreenImgUrl:c}}})},bound:!1,errorMessage:"A valid URL must start with http(s)://.",value:s?.config?.template?.splashScreenImgUrl,placeholder:"e.g. https://url/img.png",disabled:!t})]})},Nx={root:{minWidth:0,padding:"10px",alignSelf:"stretch",height:"auto",backgroundColor:"#f1f1f1"},rootHovered:{backgroundColor:"#f4f4f4"}},WR=()=>{const{isPremium:o,selectedAppInstance:s,setLastMessage:n,setPanelChild:t,setSelectedAppInstance:i,setShowPreview:d,showPreview:c}=D.useContext(jn),{env:{nonce:u,props:{extensions:h,pluginsUrl:g,siteUrl:w},wpAjaxAdminUrl:m}}=D.useContext(Ye),[x,_]=D.useState(s?{...s}:null),{shouldSave:v}=bd();D.useEffect(()=>{x&&JSON.stringify(x)!==JSON.stringify(s)&&v(x)},[x]);const b=D.useMemo(()=>{const C=Date.now().toString(16),k=Math.floor(Math.random()*1048575).toString(16);return C+k},[x]);return D.useEffect(()=>{if(x&&c){window.wpo365=window.wpo365||{},window.wpo365.appConfigs=window.wpo365.appConfigs||{},window.wpo365.appConfigs[`_${x.id}`]={config:x.config,nonce:u,userRequirements:x.appliedRequirements?.userRequirements,wpAjaxAdminUrl:m};const C=()=>{const k=g||`${w}/wp-content/plugins`,L=o?h.find(A=>[l.wpo365Apps,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate].indexOf(A)>-1):"wpo365Login";let T="";switch(L){case l.wpo365Apps:T="wpo365-apps";break;case l.wpo365LoginIntranet:T="wpo365-login-intranet";break;case l.wpo365Intranet5y:T="wpo365-intranet-5y";break;case l.wpo365Integrate:T="wpo365-integrate";break;default:T="wpo365-login"}let N="";switch(x.appType){case"pbi":N=o?"pbi":"pbiBasic";break}const Y=document.createElement("script");Y.src=`${k}/${T}/apps/dist/${N}.js?rootId=${b}&appId=${x.id}`,Y.type="module",Y.onload=onload,document.head.appendChild(Y)};if(document.getElementById("wpo365React"))C();else{const k=document.createElement("script");k.id="wpo365React",k.src="https://cdnjs.cloudflare.com/ajax/libs/react/16.14.0/umd/react.production.min.js",k.onload=()=>{const L=document.createElement("script");L.id="wpo365ReactDom",L.src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/16.14.0/umd/react-dom.production.min.js",L.onload=C,document.head.appendChild(L)},document.head.appendChild(k)}}},[c,x]),e.jsxs(U,{className:j.wpo365AppPreview,tokens:{childrenGap:15},children:[e.jsx("h3",{className:j.wpo365AppsHeading,children:"App preview"}),e.jsx(ph,{className:j.wpo365AppPreviewMenu,items:[{key:"close",name:"Close",icon:"Cancel",onClick:()=>{d(!1),i(null)}},{key:"editTemplate",icon:"Edit",name:"Template",onClick:()=>{t({elem:e.jsx(YR,{appInstance:x,updateAppInstance:_}),onDismiss:()=>{}})}}],onRenderOverflowButton:C=>e.jsx(Dn,{styles:Nx,text:"Edit options",iconProps:{iconName:"More"},menuProps:{items:C}}),onRenderItem:C=>C.onRender?C.onRender(C):e.jsx(Dn,{disabled:C.disabled,iconProps:{iconName:C.icon},menuProps:C.subMenuProps,text:C.name,onClick:C.onClick,styles:Nx})}),!o&&e.jsx("div",{dangerouslySetInnerHTML:{__html:'Disabled options require a premium license e.g. <a href="https://www.wpo365.com/downloads/wpo365-microsoft-365-apps/" target="_blank">WPO365 | APPS</a> or <a href="https://www.wpo365.com/downloads/wpo365-integrate/" target="_blank">WPO365 | INTEGRATE</a>'},style:{color:"#0078D4",alignSelf:"center"}}),e.jsx("div",{id:b})]})},BR=()=>{const{setShowPreview:o,setSelectedAppInstance:s}=D.useContext(jn);return e.jsx("div",{style:{width:"60%"},children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",horizontalAlign:"center",children:[e.jsx("p",{style:{textAlign:"center"},children:"Oops - Couldn't load a preview for the selected app instance ..."}),e.jsx(Ke,{iconProps:{iconName:"Cancel"},onClick:()=>{o(!1),s(null)}})]})})},Ox={root:{maxWidth:"400px"},fieldGroup:{maxWidth:"400px",paddingRight:80,position:"relative"},field:{paddingRight:80,border:"0px !important"}},HR=o=>{const{localAppInstance:s,setLocalAppInstance:n}=o,{settings:t}=D.useContext(Ye),{isPremium:i,saveStatus:d,setSaveStatus:c}=D.useContext(jn),[u,h]=D.useState(""),[g,w]=D.useState(!1),[m,x]=D.useState(""),{apiFetch:_,data:v,loading:b}=ta(),{apiFetch:C,data:k,loading:L,reset:T}=ta(),{apiFetch:N,data:Y,loading:A,reset:I}=ta(),{apiFetch:R,data:H,loading:W}=ta(),{apiFetch:K,data:Z,loading:Q}=ta();return D.useEffect(()=>{s?.appType==="lib"?!L&&k===null&&s?.config?.siteInfo?.id&&!s?.config?.driveInfo&&C("graph/sites","post",{query:`${s.config.siteInfo.id}/drives`,method:"get",scope:"https://graph.microsoft.com/Sites.Read.All"}):s?.appType==="lis"&&!A&&Y===null&&s?.config?.siteInfo?.id&&!s?.config?.listInfo&&N("graph/sites","post",{query:`${s.config.siteInfo.id}/lists`,method:"get",scope:"https://graph.microsoft.com/Sites.Read.All"}),s?.config&&(s.config.listInfo?.folderPath?x(s.config.listInfo.folderPath):s.config.driveInfo?.folderPath&&x(s.config.driveInfo.folderPath))},[s?.config]),D.useEffect(()=>{Y&&s?.appType==="lib"&&"displayName"in Y&&n({...s,config:{...s.config,listInfo:{displayName:Y.displayName,id:Y.id,folderPath:null,url:Y.webUrl}}})},[Y]),D.useEffect(()=>{W?c("saving"):d!=="initial"&&c("initial")},[W]),D.useEffect(()=>{H!==null&&n({...s,config:{...s.config,driveInfo:{...s.config.driveInfo,folderPath:m}}})},[H]),e.jsxs(e.Fragment,{children:[i&&t.noSso&&e.jsxs(e.Fragment,{children:[e.jsxs(U,{className:j.wpo365InfoBox,horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},children:[e.jsx(kt,{className:j.wpo365InfoBoxIcon,iconName:"Lightbulb"}),e.jsxs(U,{tokens:{childrenGap:15},children:[e.jsx("h4",{style:{margin:"10px 0px 0px 0px"},children:"No delegated access"}),e.jsx("div",{children:"The currently logged-in user does not have delegated access to Microsoft Graph, so WPO365 can’t guide you through configuring the target library or list. Please provide the required site and library identifiers manually."})]})]}),e.jsx("span",{children:"SharePoint Online Root Site."}),e.jsx(fe,{bound:!1,placeholder:"e.g. your-tenant.sharepoint.com",isValid:(B,P)=>!/^(http)|(\/$)/.test(P),onValid:B=>n({...s,config:{...s.config,legacy:s.config.legacy?{...s.config.legacy,hostname:B}:{hostname:B,allowAnonymous:!0,libraryRelativeFolderPath:"",listTitle:"",serverRelativePath:""}}}),errorMessage:"Hostname can not start with http or end with /",value:s?.config?.legacy?.hostname||""}),e.jsx("span",{children:"Server-relative URL of the site collection."}),e.jsx(fe,{bound:!1,placeholder:"e.g. sites/contoso",isValid:(B,P)=>!/^\/|\/$/.test(P),onValid:B=>n({...s,config:{...s.config,legacy:s.config.legacy?{...s.config.legacy,serverRelativePath:B}:{hostname:"",allowAnonymous:!0,libraryRelativeFolderPath:"",listTitle:"",serverRelativePath:B}}}),errorMessage:"Hostname can not start with http or end with /",value:s?.config?.legacy?.serverRelativePath||""}),e.jsx("span",{children:s.appType==="lib"?"Library title":"List title"}),e.jsx(fe,{bound:!1,placeholder:"e.g. Documents",isValid:(B,P)=>!/^\/|\/$/.test(P),onValid:B=>n({...s,config:{...s.config,legacy:s.config.legacy?{...s.config.legacy,listTitle:B}:{hostname:"",allowAnonymous:!0,libraryRelativeFolderPath:"",listTitle:B,serverRelativePath:""}}}),errorMessage:"Hostname can not start with http or end with /",value:s?.config?.legacy?.listTitle||""}),e.jsx("span",{children:"Folder path (or empty for root)."}),e.jsx(fe,{bound:!1,placeholder:"e.g. HR/Guidelines",isValid:(B,P)=>!/^\/|\/$/.test(P),onValid:B=>n({...s,config:{...s.config,legacy:s.config.legacy?{...s.config.legacy,libraryRelativeFolderPath:B}:{hostname:"",allowAnonymous:!0,libraryRelativeFolderPath:B,listTitle:"",serverRelativePath:""}}}),errorMessage:"Hostname can not start with http or end with /",value:s?.config?.legacy?.libraryRelativeFolderPath||""}),e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},children:[e.jsx(el,{iconProps:void 0,title:"Enable application-level access",ariaLabel:"Enable application-level access",onClick:()=>{K(`apps/requirements/apponly/${s?.id}`,"post")},styles:{label:{fontSize:"13px",color:"#2271b1",textDecoration:"underline"}},children:"Enable application-level access"}),Q&&e.jsx(Oe,{size:Te.small}),Z&&e.jsx(ze,{iconName:"Accept"})]})]}),!t.noSso&&!s?.config?.siteInfo&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Search for the SharePoint site where the library / list is located."}),e.jsx(U,{style:{maxWidth:"400px"},children:e.jsxs("div",{style:{position:"relative"},children:[e.jsx(Kp,{value:u,onChange:(B,P)=>{h(P||""),setTimeout(()=>{w(!0)},500)},styles:Ox,placeholder:"Type exact title of the site"}),e.jsx(et,{text:"Search",onClick:()=>{u&&(_("graph/sites","post",{query:`?search=${encodeURIComponent(u)}`,method:"get",scope:"https://graph.microsoft.com/Sites.Read.All"}),w(!1))},styles:{root:{position:"absolute",right:2,top:"50%",transform:"translateY(-50%)",height:"28px",padding:"0 12px",zIndex:1,border:"0px"}}})]})}),v!==null&&Array.isArray(v?.value)&&v.value.length>0&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Select a SharePoint site."}),e.jsx(qe,{options:v.value.map(B=>({key:B.id,text:B.displayName})),selectedKey:s?.config?.siteInfo?.id,onChange:(B,P)=>{const X=v.value.find($=>$.id===P.key);n({...s,config:{...s.config,siteInfo:{id:X.id,displayName:X.displayName,url:X.webUrl}}})},style:{maxWidth:"400px"}})]}),!g&&v!==null&&Array.isArray(v?.value)&&v.value.length===0&&e.jsx("em",{children:`No results for ${u}`})]}),!t.noSso&&s.config.siteInfo&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Selected SharePoint site."}),e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},children:[e.jsx(Zr,{type:gr.info,children:s.config.siteInfo.displayName}),e.jsx(Ke,{iconProps:{iconName:"Delete"},onClick:()=>{T(),I(),n({...s,config:{...s.config,siteInfo:null,driveInfo:null,listInfo:null}})}}),s?.appliedRequirements?.userRequirements?.appOnlyAccess&&e.jsxs(e.Fragment,{children:[e.jsx(el,{iconProps:void 0,title:"Enable application-level access",ariaLabel:"Enable application-level access",onClick:()=>{K(`apps/requirements/apponly/${s?.id}`,"post")},styles:{label:{fontSize:"13px",color:"#2271b1",textDecoration:"underline"}},children:"Enable application-level access"}),Q&&e.jsx(Oe,{size:Te.small}),Z&&e.jsx(ze,{iconName:"Accept"})]})]})]}),s?.appType==="lib"&&s?.config?.siteInfo?.id&&!s?.config?.driveInfo?.id?e.jsxs(e.Fragment,{children:[k!==null&&Array.isArray(k?.value)&&k.value.length>0&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Select a SharePoint Library."}),e.jsx(qe,{options:k.value.map(B=>({key:B.id,text:B.name})),selectedKey:s?.config?.driveInfo?.id,onChange:(B,P)=>{const X=k.value.find($=>$.id===P.key);n({...s,config:{...s.config,driveInfo:{id:X.id,displayName:X.name,url:X.webUrl,folderPath:""}}}),N("graph/sites","post",{query:`${s.config.siteInfo.id}/lists/${X.name}`,method:"get",scope:"https://graph.microsoft.com/Sites.Read.All"})},style:{maxWidth:"400px"}})]}),k!==null&&Array.isArray(k?.value)&&k.value.length===0&&e.jsx("em",{children:`No library found for site with title ${s?.config?.siteInfo?.displayName}`})]}):e.jsx(e.Fragment,{children:!!s?.config?.driveInfo?.id&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Selected SharePoint library."}),e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},children:[e.jsx(Zr,{type:gr.info,children:s.config.driveInfo.displayName}),e.jsx(Ke,{iconProps:{iconName:"Delete"},onClick:()=>{T(),I(),n({...s,config:{...s.config,driveInfo:null,listInfo:null}})}})]})]})}),s?.appType==="lis"&&s?.config?.siteInfo?.id&&!s?.config?.listInfo?.id?e.jsxs(e.Fragment,{children:[Y!==null&&Array.isArray(Y?.value)&&Y.value.length>0&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Select a SharePoint List."}),e.jsx(qe,{options:Y.value.filter(B=>B.list?.hidden===!1&&B.list?.template!=="documentLibrary").map(B=>({key:B.id,text:B.displayName})),selectedKey:s?.config?.listInfo?.id,onChange:(B,P)=>{const X=Y.value.find($=>$.id===P.key);n({...s,config:{...s.config,listInfo:{id:X.id,displayName:X.name,url:X.webUrl,folderPath:""}}})},style:{maxWidth:"400px"}})]}),Y!==null&&Array.isArray(Y?.value)&&Y.value.length===0&&e.jsx("em",{children:`No lists found for site with title ${s?.config?.siteInfo?.displayName}`})]}):e.jsx(e.Fragment,{children:s?.appType==="lis"&&!!s?.config?.listInfo?.id&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Selected SharePoint list."}),e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},children:[e.jsx(Zr,{type:gr.info,children:s.config.listInfo.displayName}),e.jsx(Ke,{iconProps:{iconName:"Delete"},onClick:()=>{T(),I(),n({...s,config:{...s.config,listInfo:null}})}})]})]})}),!!s?.config?.siteInfo?.id&&!!s?.config?.driveInfo?.id&&e.jsx(e.Fragment,{children:s.config.driveInfo.folderPath?e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Configured library-relative folder path."}),e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},children:[e.jsx(Zr,{type:gr.info,children:s.config.driveInfo.folderPath}),e.jsx(Ke,{iconProps:{iconName:"Delete"},onClick:()=>{n({...s,config:{...s.config,driveInfo:{...s.config.driveInfo,folderPath:null}}}),x("")}})]})]}):e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Enter library-relative folder path."}),e.jsx(U,{style:{maxWidth:"400px"},children:e.jsxs("div",{style:{position:"relative"},children:[e.jsx(Kp,{value:m,onChange:(B,P)=>x(P),styles:Ox,placeholder:'e.g. "general/HR Guidelines"',disabled:!i}),i&&e.jsx(et,{text:"Test",onClick:()=>{const B=s?.appliedRequirements?.userRequirements?.appOnlyAccess,P=`${s?.config?.driveInfo?.id}/root${m?":/"+encodeURIComponent(m)+":":""}/children?$expand=listItem&$top=1`;R("graph/drives","post",{query:P,scope:B?"Sites.Selected":"Sites.Read.All",application:B})},styles:{root:{position:"absolute",right:2,top:"50%",transform:"translateY(-50%)",height:"28px",padding:"0 12px",zIndex:1,border:"0px"}}})]})})]})}),!!s?.config?.siteInfo?.id&&(!!s?.config?.driveInfo?.id||!!s?.config?.listInfo?.id)&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Page size."}),e.jsx(fe,{isValid:(B,P)=>String(parseInt(P))===P,onValid:B=>n({...s,config:{...s.config,pageSize:parseInt(B)}}),bound:!1,errorMessage:"Please enter a numeric value.",value:String(s?.config?.pageSize),placeholder:'Enter a numeric value e.g. "50"'})]})]})},zR=o=>{const{settings:s}=D.useContext(Ye),{isPremium:n,selectedAppInstance:t,setLastMessage:i}=D.useContext(jn),{shouldSave:d}=bd(),[c,u]=D.useState(t?{...t}:null);return D.useEffect(()=>{c===null&&t&&u({...t})},[t]),D.useEffect(()=>{c&&JSON.stringify(c)!==JSON.stringify(t)&&d(c)},[c]),e.jsxs(U,{tokens:{childrenGap:15},children:[e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx("div",{className:j.wpo365AppsIcon,children:Ci(t.appType)}),e.jsx(Zr,{type:gr.info,children:t.appType}),e.jsx("h3",{style:{paddingLeft:"15px"},children:"Edit Form"})]}),!n&&e.jsx("div",{dangerouslySetInnerHTML:{__html:'Disabled options require a premium license e.g. <a href="https://www.wpo365.com/downloads/wpo365-microsoft-365-apps/" target="_blank">WPO365 | APPS</a> or <a href="https://www.wpo365.com/downloads/wpo365-integrate/" target="_blank">WPO365 | INTEGRATE</a>'},style:{color:"#0078D4"}}),e.jsx("span",{children:"Enter a user friendly name for this app."}),e.jsx(fe,{isValid:(h,g)=>g?.length<21,onValid:h=>{u({...c,title:h})},bound:!1,errorMessage:"Please shorten to 20 characters.",value:t.title,placeholder:'Display name e.g. "Marketing Collateral"'}),!c?.appliedRequirements?.userRequirements?.appOnlyAccess&&(s.noSso||!s.applicationId||s.useSaml)&&e.jsxs(U,{className:j.wpo365InfoBox,horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},children:[e.jsx(kt,{className:j.wpo365InfoBoxIcon,iconName:"Lightbulb"}),e.jsxs(U,{tokens:{childrenGap:15},children:[e.jsx("h4",{style:{margin:"10px 0px 0px 0px"},children:"Configuration"}),e.jsxs("div",{children:["Please complete the configuration for"," ",e.jsx("a",{href:"https://tutorials.wpo365.com/courses/single-sign-on-openid-connect/",target:"_blank",rel:"noreferrer",children:"OpenID Connect based Single Sign-on"})," ","first. Following the instructions will help you create an ",e.jsx("strong",{children:"App Registration"})," that WPO365 can then use to connect to Microsoft Graph / M365 Services on behalf of the logged-in user."]})]})]}),c?.appliedRequirements?.userRequirements?.appOnlyAccess&&s.noSso&&!s.appOnlyApplicationId&&e.jsxs(U,{className:j.wpo365InfoBox,horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},children:[e.jsx(kt,{className:j.wpo365InfoBoxIcon,iconName:"Lightbulb"}),e.jsxs(U,{tokens:{childrenGap:15},children:[e.jsx("h4",{style:{margin:"10px 0px 0px 0px"},children:"Configuration"}),e.jsxs("div",{children:["Please complete the configuration for"," ",e.jsx("a",{href:"https://tutorials.wpo365.com/courses/integration-application-permissions/",target:"_blank",rel:"noreferrer",children:"Integration Application Permissions"})," ","first. Following the instructions will help you create an ",e.jsx("strong",{children:"App Registration"})," that WPO365 can then use to connect to Microsoft Graph / M365 Services with application permissions."]})]})]}),(c?.appType==="lib"||c?.appType==="list")&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Allow anonymous users to interact with this app."}),e.jsx(ce,{checked:c?.appliedRequirements?.userRequirements?.appOnlyAccess,onChange:(h,g)=>{u({...c,appliedRequirements:{...c.appliedRequirements,userRequirements:{...c.appliedRequirements.userRequirements,appOnlyAccess:g}}})},disabled:!n})]}),e.jsxs(U,{className:j.wpo365InfoBox,horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},children:[e.jsx(kt,{className:j.wpo365InfoBoxIcon,iconName:"Lightbulb"}),e.jsxs(U,{tokens:{childrenGap:15},children:[e.jsx("h4",{style:{margin:"10px 0px 0px 0px"},children:"Permissions"}),e.jsxs("div",{children:["Please ensure that you have granted the following permissions to the"," ",e.jsx("a",{href:`https://entra.microsoft.com/#view/Microsoft_AAD_RegisteredApps/ApplicationMenuBlade/~/CallAnAPI/appId/${c?.appliedRequirements?.userRequirements?.appOnlyAccess?s.appOnlyApplicationId:s.applicationId}/isMSAApp~/false`,target:"_blank",rel:"noreferrer",children:"App Registration"}),` with ID ${c?.appliedRequirements?.userRequirements?.appOnlyAccess?s.appOnlyApplicationId:s.applicationId}.`]}),e.jsx("ul",{style:{marginBottom:"0px"},children:c?.appliedRequirements?.userRequirements?.appOnlyAccess?c?.appliedRequirements?.appOnly?.permissions.map(h=>e.jsxs("li",{children:["Application permissions > ",h]})):c?.appliedRequirements?.delegated?.permissions.map(h=>e.jsxs("li",{children:["Delegated permissions > ",h]}))})]})]}),e.jsxs(U,{className:j.wpo365InfoBox,horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},children:[e.jsx(kt,{className:j.wpo365InfoBoxIcon,iconName:"Lightbulb"}),e.jsxs(U,{tokens:{childrenGap:15},children:[e.jsx("h4",{style:{margin:"10px 0px 0px 0px"},children:"Endpoints"}),e.jsx("div",{children:"WPO365 will automatically allow apps to request data from the following endpoints provided by its custom WordPress REST API for Microsoft Graph / M365 Services."}),e.jsx("ul",{className:"wpo-ul mt-1 mb-1 small text-primary",children:c?.appliedRequirements?.userRequirements?.appOnlyAccess?c?.appliedRequirements?.appOnly?.endpoints.map(h=>e.jsx("li",{children:`${h} | application-only access: yes}`})):c?.appliedRequirements?.delegated?.endpoints.map(h=>e.jsx("li",{children:`${h} | application-only access: no}`}))})]})]}),(c?.appType==="lib"||c?.appType==="lis")&&e.jsx(HR,{localAppInstance:c,setLocalAppInstance:u}),e.jsxs(U,{className:j.wpo365InfoBox,horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},children:[e.jsx(kt,{className:j.wpo365InfoBoxIcon,iconName:"Lightbulb"}),e.jsx(U,{tokens:{childrenGap:15},children:e.jsxs("div",{children:["To continue editing your app e.g. to edit the columns, translation labels and template, please close this panel and click the"," ",e.jsx("strong",{children:"Preview"})," icon for the app in the ",e.jsx("strong",{children:"Your apps"})," overview."]})})]})]})},UR=o=>{const{appInstance:s,updateAppInstance:n}=o,{isPremium:t}=D.useContext(jn),[i,d]=D.useState(structuredClone(s)),c=D.useRef(s?.config?.template?{...s.config.template}:{});D.useEffect(()=>{JSON.stringify(i.config.template||{})!==JSON.stringify(c)&&(n(structuredClone(i)),c.current=i.config.template)},[i]);const u=(h,g)=>{const w=i.config.template?.breakpoints?{...i.config.template.breakpoints}:{};w[h]=g,d({...i,config:{...i.config,template:{...i.config.template,breakpoints:w}}})};return e.jsxs(U,{tokens:{childrenGap:15},children:[e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx("div",{className:j.wpo365AppsIcon,children:Ci(s.appType)}),e.jsx(Zr,{type:gr.info,children:s.appType}),e.jsx("h3",{style:{paddingLeft:"15px"},children:"Edit template"})]}),!t&&e.jsx("div",{dangerouslySetInnerHTML:{__html:'Disabled options require a premium license e.g. <a href="https://www.wpo365.com/downloads/wpo365-microsoft-365-apps/" target="_blank">WPO365 | APPS</a> or <a href="https://www.wpo365.com/downloads/wpo365-integrate/" target="_blank">WPO365 | INTEGRATE</a>'},style:{color:"#0078D4",alignSelf:"center"}}),e.jsx("span",{children:"Select template."}),e.jsx(qe,{options:[{key:"list",text:"List (default)"},{key:"table",text:"HTML Table",disabled:!t},{key:"cards",text:"Cards",disabled:!t}],selectedKey:i?.config?.template?.name||null,onChange:(h,g)=>{d({...i,config:{...i.config,template:i.config.template?{...i.config.template,name:g.key}:{name:g.key}}})},style:{maxWidth:"400px"}}),i?.config?.template?.name===Oc.cards&&e.jsxs(e.Fragment,{children:[i.appType==="lib"&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Hand-pick (up to 20) documents for embedding."}),e.jsx(ce,{onChange:(h,g)=>{const w=structuredClone(i);g?w.config.template.batch=[]:delete w.config.template.batch,d(structuredClone(w))},checked:Array.isArray(i.config.template.batch)})]}),e.jsx("span",{children:"Select nr. of columns for each breakpoint."}),e.jsx(U,{tokens:{childrenGap:10},children:[576,768,992,1200].map((h,g)=>e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},children:[g<3?e.jsx("span",{dangerouslySetInnerHTML:{__html:`&le; ${h}px`}}):e.jsx("span",{children:"> 992px"}),e.jsx(fe,{isValid:(w,m)=>!isNaN(parseInt(String(m))),onValid:w=>u(`bp${h}`,parseInt(w)),bound:!1,errorMessage:"Value must be a number",value:String(i?.config?.template?.breakpoints?.[`bp${h}`]||2+g),placeholder:"Enter a number e.g. 2"})]}))})]})]})},Yx={root:{minWidth:0,padding:"10px",alignSelf:"stretch",height:"auto",backgroundColor:"#f1f1f1"},rootHovered:{backgroundColor:"#f4f4f4"}},vf={root:{backgroundColor:"initial",padding:"10px"}},VR=D.lazy(()=>lw(()=>import("./wizard-chunk-BRhoq-bR.js"),[],import.meta.url)),GR=o=>{const{isPremium:s,selectedAppInstance:n,setLastMessage:t,setPanelChild:i,setSelectedAppInstance:d,setShowPreview:c,showPreview:u}=D.useContext(jn),{env:{nonce:h,props:{extensions:g,pluginsUrl:w,siteUrl:m},wpAjaxAdminUrl:x}}=D.useContext(Ye),[_,v]=D.useState(n?structuredClone(n):null),{shouldSave:b}=bd();D.useEffect(()=>{_&&JSON.stringify(_)!==JSON.stringify(n)&&b(_)},[_]);const C=D.useMemo(()=>{const T=Date.now().toString(16),N=Math.floor(Math.random()*1048575).toString(16);return T+N},[_]);D.useEffect(()=>{if(_&&u){window.wpo365=window.wpo365||{},window.wpo365.appConfigs=window.wpo365.appConfigs||{},window.wpo365.appConfigs[`_${_.id}`]={config:_.config,nonce:h,userRequirements:_.appliedRequirements?.userRequirements,wpAjaxAdminUrl:x};const T=()=>{const N=w||`${m}/wp-content/plugins`,Y=s?g.find(H=>[l.wpo365Apps,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate].indexOf(H)>-1):"wpo365Login";let A="";switch(Y){case l.wpo365Apps:A="wpo365-apps";break;case l.wpo365LoginIntranet:A="wpo365-login-intranet";break;case l.wpo365Intranet5y:A="wpo365-intranet-5y";break;case l.wpo365Integrate:A="wpo365-integrate";break;default:A="wpo365-login"}let I=["lis","lib","one","rec"].indexOf(_.appType)>-1?s?"list":"listBasic":"unknown";const R=document.createElement("script");R.src=`${N}/${A}/apps/dist/${I}.js?rootId=${C}&appId=${_.id}`,R.type="module",document.head.appendChild(R)};if(document.getElementById("wpo365React"))T();else{const N=document.createElement("script");N.id="wpo365React",N.src="https://cdnjs.cloudflare.com/ajax/libs/react/16.14.0/umd/react.production.min.js",N.onload=()=>{const Y=document.createElement("script");Y.id="wpo365ReactDom",Y.src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/16.14.0/umd/react-dom.production.min.js",Y.onload=T,document.head.appendChild(Y)},document.head.appendChild(N)}}},[u,_]),D.useEffect(()=>{_&&(window.wpo365=window.wpo365||{},window.wpo365.batchSelect=T=>{if(!_?.config?.template){t({message:"Cannot select item. Please configure the app first.",type:ho.error});return}if(!Array.isArray(_?.config?.template?.batch)){t({message:'Batch select has not been enabled. Preview the app, choose "Edit options" and check "Hand-pick for embedding".',type:ho.error});return}const N=[..._?.config?.template?.batch||[]],Y=N.indexOf(T);if(_.config.template.batch.length>19&&Y===-1){t({message:"You cannot select more than 20 items for embedding.",type:ho.error});return}Y>-1?N.splice(Y,1):N.push(T),v({..._,config:{..._.config,template:{..._.config.template,batch:N}}})})},[_]);const k=()=>{const T=[{key:"close",name:"Close",icon:"Cancel",onClick:()=>{c(!1),d(null)}}];return n?.config?.appType!=="rec"&&T.push({disabled:!s||_?.config?.oneDrive,key:"editColumns",icon:"Edit",name:"Columns",onClick:()=>{i({elem:e.jsx(D.Suspense,{fallback:e.jsx("div",{children:"Loading..."}),children:e.jsx(VR,{appInstance:_,updateAppInstance:v,configPropName:"columns",standAlone:!0})}),onDismiss:()=>{}})}}),T.push({disabled:!s,key:"editTranslations",icon:"Edit",name:"Translations",onClick:()=>{i({elem:e.jsx(lS,{appInstance:_,updateAppInstance:v}),onDismiss:()=>{}})}}),n?.config?.appType!=="rec"&&T.push({key:"editTemplate",icon:"Edit",name:"Template",onClick:()=>{i({elem:e.jsx(UR,{appInstance:_,updateAppInstance:v}),onDismiss:()=>{}})}}),T},L=()=>{if(_.appType==="rec")return[];const T=[{key:"spSearch",onRender:()=>e.jsx(ce,{disabled:!s,label:"Enable search",checked:_.config?.enableSearch,styles:vf,onChange:(N,Y)=>{v({..._,config:{..._.config,enableSearch:Y}})}})},{key:"spLink",onRender:()=>e.jsx(ce,{disabled:!s,label:'Show "Open Folder" link',checked:_.config?.showOpenInSpLink,styles:vf,onChange:(N,Y)=>{v({..._,config:{..._.config,showOpenInSpLink:Y}})}})},{key:"useQueryString",onRender:()=>e.jsx(ce,{disabled:!s||_?.config?.oneDrive,label:"Use query string for configuration",checked:_.config?.useQueryString,styles:vf,onChange:(N,Y)=>{v({..._,config:{..._.config,useQueryString:Y}})}})}];return(n.appType==="lib"||n.appType==="one")&&T.splice(1,0,{key:"spUpload",onRender:()=>e.jsx(ce,{disabled:!s,label:"Enable upload",checked:_.config?.enableUpload,styles:vf,onChange:(N,Y)=>{v({..._,config:{..._.config,enableUpload:Y}})}})}),T};return e.jsxs(U,{className:j.wpo365AppPreview,tokens:{childrenGap:15},children:[e.jsx("h3",{className:j.wpo365AppsHeading,children:"App preview"}),e.jsx(ph,{className:j.wpo365AppPreviewMenu,items:k(),overflowItems:L(),onRenderOverflowButton:T=>e.jsx(Dn,{styles:Yx,text:"Edit options",iconProps:{iconName:"More"},menuProps:{items:T}}),onRenderItem:T=>T.onRender?T.onRender(T):e.jsx(Dn,{disabled:T.disabled,iconProps:{iconName:T.icon},menuProps:T.subMenuProps,text:T.name,onClick:T.onClick,styles:Yx})}),!s&&e.jsx("div",{dangerouslySetInnerHTML:{__html:'Disabled options require a premium license e.g. <a href="https://www.wpo365.com/downloads/wpo365-microsoft-365-apps/" target="_blank">WPO365 | APPS</a> or <a href="https://www.wpo365.com/downloads/wpo365-integrate/" target="_blank">WPO365 | INTEGRATE</a>'},style:{color:"#0078D4",alignSelf:"center"}}),e.jsx("div",{id:C})]})},$R=()=>{const{selectedAppInstance:o}=D.useContext(jn),{shouldSave:s}=bd(),[n,t]=D.useState(o?{...o}:null);return D.useEffect(()=>{n===null&&o&&t({...o})},[o]),D.useEffect(()=>{n&&JSON.stringify(n)!==JSON.stringify(o)&&s(n)},[n]),e.jsxs(U,{tokens:{childrenGap:15},children:[e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx("div",{className:j.wpo365AppsIcon,children:Ci(o.appType)}),e.jsx(Zr,{type:gr.info,children:o.appType}),e.jsx("h3",{style:{paddingLeft:"15px"},children:"Edit Form"})]}),e.jsxs(U,{className:j.wpo365InfoBox,horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},children:[e.jsx(kt,{className:j.wpo365InfoBoxIcon,iconName:"Lightbulb"}),e.jsx(U,{tokens:{childrenGap:15},children:e.jsx("div",{children:"There are no settings for this app."})})]}),e.jsx("span",{children:"Enter a user friendly name for this app."}),e.jsx(fe,{isValid:(i,d)=>d?.length<21,onValid:i=>{t({...n,title:i})},bound:!1,errorMessage:"Please shorten to 20 characters.",value:o.title,placeholder:'Display name e.g. "Marketing Collateral"'}),e.jsx("span",{children:"Nr. of results to fetch."}),e.jsx(fe,{isValid:(i,d)=>String(parseInt(d))===d,onValid:i=>t({...n,config:{...n.config,pageSize:parseInt(i)}}),bound:!1,errorMessage:"Please enter a numeric value.",value:String(n?.config?.pageSize),placeholder:'Enter a numeric value e.g. "50"'})]})},Ci=o=>["lib","lis","sea","doc"].indexOf(o)>-1?CR():o==="one"?MR():o==="yam"?kR():o==="pbi"?bR():o==="cal"?SR():o==="rec"?jR():o==="emp"?LR():e.jsx("pre",{children:"[x]"}),cS=o=>o==="lib"||o==="lis"||o==="one"?e.jsx(zR,{}):o==="pbi"?e.jsx(OR,{}):o==="rec"?e.jsx($R,{}):o==="cal"?e.jsx(ER,{}):e.jsx("p",{children:"Oops - Couldn't find an edit form for the selected app instance ..."}),KR=o=>o==="lib"||o==="one"||o==="lis"||o==="rec"?e.jsx(GR,{}):o==="pbi"?e.jsx(WR,{}):o==="cal"?e.jsx(PR,{}):e.jsx(BR,{}),pN=o=>{try{return JSON.parse(o)}catch(s){console.error(`Failed to parse Json. [Error: ${s}]`)}return null},hN=o=>{try{return JSON.stringify(o,null,2)}catch(s){console.error(`Failed to stringify Json. [Error: ${s}]`)}return null},qR="_toastLayer_1qra7_15",JR="_toastDialog_1qra7_22",ZR="_toastHeader_1qra7_45",XR="_toastClose_1qra7_57",QR="_toastSummary_1qra7_68",eF="_toastActions_1qra7_81",tF="_toastLink_1qra7_87",nF="_toastDetails_1qra7_90",rF="_toastPre_1qra7_98",Zi={toastLayer:qR,toastDialog:JR,toastHeader:ZR,toastClose:XR,toastSummary:QR,toastActions:eF,toastLink:tF,toastDetails:nF,toastPre:rF},oF=o=>{const{type:s,message:n,raw:t,onClose:i}=o,[d,c]=D.useState(!1);return e.jsx("div",{className:Zi.toastLayer,children:e.jsxs("section",{className:Zi.toastDialog,role:"alertdialog","aria-labelledby":"toast-title","aria-describedby":"toast-desc","aria-modal":"false",children:[e.jsxs("div",{className:Zi.toastHeader,children:[e.jsx("h2",{id:"toastTitle",style:{borderColor:s==="info"?"#0dcaf0":"#dc3545"},children:s==="info"?"Important information":"Something went wrong"}),e.jsx("button",{className:Zi.toastClose,"aria-label":"Close",onClick:i,children:"✕"})]}),e.jsx("p",{id:"toastDesc",className:Zi.toastSummary,dangerouslySetInnerHTML:{__html:n}}),!!t&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:Zi.toastActions,children:e.jsx(Sb,{className:Zi.toastLink,onClick:()=>c(!d),children:d?"Hide details":"Show details"})}),d&&e.jsx("div",{className:Zi.toastDetails,children:e.jsx("pre",{className:Zi.toastPre,children:t})})]})]})})},sF=o=>{const{instance:s,deleteAppInstance:n,getAppInstances:t}=o,{setLastModified:i,setPanelChild:d,setSelectedAppInstance:c,setShowPreview:u}=D.useContext(jn);return e.jsxs("tr",{children:[e.jsx("td",{children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx("div",{className:j.wpo365AppsTableIcon,children:Ci(s.appType)}),e.jsx(Zr,{type:gr.info,children:s.appType})]})}),e.jsx("td",{children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:5},children:[e.jsx(xn,{content:"Edit",calloutProps:{gapSpace:0},styles:{root:{display:"inline-block"}},children:e.jsx(Ke,{iconProps:{iconName:"Edit"},onClick:()=>{c(s),d({elem:cS(s.appType),onDismiss:()=>{c(null),i(null),t()}})}})}),e.jsx(xn,{content:"Preview",calloutProps:{gapSpace:0},styles:{root:{display:"inline-block"}},children:e.jsx(Ke,{iconProps:{iconName:"View"},onClick:()=>{c(s),u(!0)}})}),e.jsx(xn,{content:"Delete",calloutProps:{gapSpace:0},styles:{root:{display:"inline-block"}},children:e.jsx(Ke,{iconProps:{iconName:"Delete"},onClick:()=>n(s.id)})})]})}),e.jsx("td",{children:s.title}),e.jsx("td",{children:e.jsxs(U,{tokens:{childrenGap:0},children:[e.jsx("div",{style:{whiteSpace:"nowrap"},children:s.authorDisplayName}),e.jsx("div",{style:{whiteSpace:"nowrap"},children:new Intl.DateTimeFormat(navigator.language).format(new Date(s.created))})]})}),e.jsx("td",{children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},children:[e.jsx("pre",{className:j.wpo365AppsShortcode,children:`[wpo365-app id="${s.id}"]`}),e.jsx(Ke,{iconProps:{iconName:"Copy"},onClick:()=>navigator.clipboard.writeText(`[wpo365-app id="${s.id}"]`)})]})})]},s.id)};var wi=(o=>(o.date="date",o.icon="icon",o.item="item",o.link="link",o.name="name",o.number="number",o.text="text",o))(wi||{});const iF=[{field:"fields.Title",hrefTarget:"_blank",isResizable:!0,minWidth:100,title:"Title",type:wi.item,css:{lineHeight:"32px",textDecoration:"underline",color:"blue",fontSize:"14px",cursor:"pointer"}}],Wx=[{type:wi.icon,isResizable:!0,minWidth:32,maxWidth:50},{field:"name",hrefField:"webUrl",hrefTarget:"_blank",isResizable:!0,minWidth:100,title:"Name",type:wi.name,css:{lineHeight:"32px",textDecoration:"underline",color:"blue",fontSize:"14px",cursor:"pointer"}},{field:"lastModifiedDateTime",formatStringDate:"l LT",isResizable:!0,minWidth:100,title:"Modified",type:wi.date,css:{lineHeight:"32px",fontSize:"14px"}},{field:"lastModifiedBy.user.displayName",isResizable:!0,minWidth:120,title:"Modified by",type:wi.text,css:{lineHeight:"32px",fontSize:"14px"}},{field:"size",formatStringNumber:"0.0 b",isResizable:!0,isCollapsible:!0,minWidth:70,title:"Size",type:wi.number,css:{lineHeight:"32px",fontSize:"14px"}}],aF=[{field:"subject",isResizable:!0,title:"Subject",type:wi.item,css:{lineHeight:"32px",textDecoration:"underline",color:"blue",fontSize:"14px",cursor:"pointer"}},{field:"start.dateTime",formatStringDate:"L LT",isResizable:!1,minWidth:140,title:"Start",type:wi.date,css:{lineHeight:"32px",fontSize:"14px"}},{field:"end.dateTime",formatStringDate:"L LT",isCollapsible:!0,isResizable:!1,minWidth:140,title:"End",type:wi.date,css:{lineHeight:"32px",fontSize:"14px"}}],lF={close:"Close",error:"Oops, something went wrong. Check the Developer Console (F12) for details about this error and contact your administrator.",eventDetails:"Event details",from:"From",joinOnlineMeeting:"Join online meeting",multiDayEvent:"Multi-day event",noDetails:"No details available for this event",noEvents:"There are no events to show",onlineMeeting:"Online meeting",to:"To",unknownLocation:"Unknown location",week:"Week"},xf={chooseFile:"Choose file",error:"Oops, something went wrong. Check the Developer Console (F12) for details about this error and contact your administrator.",fileTooLarge:"Files size exceeds maximum of 3MB.",fileUploadOk:"Upload completed",noFiles:"No results",notSupported:'To support folder navigation please upgrade to the <a href="https://www.wpo365.com/wordpress-plugins/" target="_blank">INTRANET or M365 APPS</a> edition',openInSharePoint:"View online",recentColumnTitle:"Title",recentColumnLastActivity:"Last activity",search:"Search",searchKeyword:"Keyword",searchPlaceholder:"Search in this location",uploadFile:"Upload file"},dF={},cF={lib:{appType:"lib",columns:[...Wx],enableSearch:!1,enableUpload:!1,driveInfo:null,hideMessageBar:!1,listInfo:null,oneDrive:!1,pageSize:50,recent:!1,showOpenInSpLink:!1,siteInfo:null,template:{name:Oc.list},translations:{...xf},useQueryString:!1},lis:{appType:"lis",columns:[...iF],driveInfo:null,enableSearch:!1,enableUpload:!1,hideMessageBar:!1,listInfo:null,oneDrive:!1,pageSize:50,recent:!1,showOpenInSpLink:!1,siteInfo:null,template:{name:Oc.list},translations:{...xf},useQueryString:!1},rec:{appType:"rec",columns:[],driveInfo:null,enableSearch:!1,enableUpload:!1,hideMessageBar:!1,listInfo:null,oneDrive:!1,pageSize:50,recent:!0,showOpenInSpLink:!1,siteInfo:null,template:{name:Oc.list},translations:{...xf},useQueryString:!1},one:{appType:"one",columns:[...Wx],enableSearch:!1,enableUpload:!1,driveInfo:null,hideMessageBar:!1,listInfo:null,oneDrive:!0,pageSize:50,recent:!1,showOpenInSpLink:!1,siteInfo:null,template:{name:Oc.list},translations:{...xf},useQueryString:!1},pbi:{appType:"pbi",contentType:Ro.report,dashboardId:"",datasetIds:[],datasetXmlaPermission:iS.Off,embedConfig:{},filterConfig:{},groupId:"",reportAllowEdit:!1,reportId:"",template:{width:"50vw",height:"50vh",splashScreenImgUrl:""},tileId:"",tokenRequest:{},tokenRequestUrl:"",tokenType:En.Aad,translations:{...dF}},cal:{appType:"cal",calendarSource:Vr.users,columns:aF,groupBy:aS.month,id:"",pageSize:50,range:aw.currentYear,start:"",startToday:!1,stop:"",translations:lF,template:{useTemplate:!1,templateUrl:""}}},Ey={pbi:{displayName:"Power BI",documentation:"https://tutorials.wpo365.com/courses/embed-power-bi-content-in-wordpress/",requirements:{appOnly:{ajax:!1,endpoints:["https://api.powerbi.com/"],permissions:[],proxy:!0,token:!1},delegated:{ajax:!1,endpoints:[],permissions:["https://analysis.windows.net/powerbi/api/Dashboard.Read.All","https://analysis.windows.net/powerbi/api/Dataset.Read.All","https://analysis.windows.net/powerbi/api/Report.Read.All","https://analysis.windows.net/powerbi/api/Workspace.Read.All"],proxy:!1,token:!0},delegatedOnly:!1,userRequirements:{appOnlyAccess:!1}},type:"pbi"},lib:{displayName:"SharePoint Library",documentation:"https://tutorials.wpo365.com/courses/embed-a-sharepoint-library-in-wordpress/",requirements:{appOnly:{ajax:!1,endpoints:["https://graph.microsoft.com/_/sites","https://graph.microsoft.com/_/drives"],permissions:["Sites.Selected"],proxy:!1,token:!1},delegated:{ajax:!1,endpoints:["https://graph.microsoft.com/_/sites","https://graph.microsoft.com/_/drives"],permissions:["Sites.Read.All"],proxy:!1,token:!1},delegatedOnly:!1,userRequirements:{appOnlyAccess:!1}},type:"lib"},one:{displayName:"Personal OneDrive",documentation:"https://tutorials.wpo365.com/courses/xxx/",requirements:{delegated:{ajax:!1,endpoints:["https://graph.microsoft.com/_/sites","https://graph.microsoft.com/_/drives"],permissions:["Sites.Read.All"],proxy:!1,token:!1},delegatedOnly:!0,userRequirements:{appOnlyAccess:!1}},type:"one"},lis:{displayName:"SharePoint List",documentation:"https://tutorials.wpo365.com/courses/embed-a-sharepoint-list-in-wordpress/",requirements:{appOnly:{ajax:!1,endpoints:["https://graph.microsoft.com/_/sites","https://graph.microsoft.com/_/drives","https://graph.microsoft.com/_/search"],permissions:["Sites.Selected"],proxy:!1,token:!1},delegated:{ajax:!1,endpoints:["https://graph.microsoft.com/_/sites","https://graph.microsoft.com/_/drives","https://graph.microsoft.com/_/search"],permissions:["Sites.Read.All"],proxy:!1,token:!1},delegatedOnly:!1,userRequirements:{appOnlyAccess:!1}},type:"lis"},emp:{displayName:"Entra ID / Employee Directory",documentation:"https://docs.wpo365.com/article/111-employee-directory-and-contacts",requirements:{appOnly:{ajax:!1,endpoints:["https://graph.microsoft.com/_/users"],permissions:["User.Read.All"],proxy:!1,token:!1},delegated:{ajax:!1,endpoints:["https://graph.microsoft.com/_/users"],permissions:["User.Read.All"],proxy:!1,token:!1},delegatedOnly:!1,userRequirements:{appOnlyAccess:!1}},type:"emp"},rec:{displayName:"Recent Items",documentation:"https://tutorials.wpo365.com/courses/xxx/",requirements:{delegated:{ajax:!1,endpoints:["https://graph.microsoft.com/_/me"],permissions:["Sites.Read.All"],proxy:!1,token:!1},delegatedOnly:!0,userRequirements:{appOnlyAccess:!1}},type:"rec"},sea:{displayName:"SharePoint Search",documentation:"https://docs.wpo365.com/article/125-sharepoint-search-for-wordpress",requirements:{delegated:{ajax:!1,endpoints:["https://[sharepoint-home]"],permissions:["https://[sharepoint-home]/Sites.Search.All"],proxy:!1,token:!1},delegatedOnly:!0,userRequirements:{appOnlyAccess:!1}},type:"sea"},cal:{displayName:"Calendar",documentation:"https://tutorials.wpo365.com/courses/embed-an-exchange-calendar-in-wordpress/",requirements:{appOnly:{ajax:!1,endpoints:[],permissions:[],proxy:!1,token:!1},delegated:{ajax:!1,endpoints:["https://graph.microsoft.com/_/users"],permissions:["Calendars.Read"],proxy:!1,token:!1},delegatedOnly:!1,userRequirements:{appOnlyAccess:!1}},type:"cal"},yam:{displayName:"Viva Engage / Yammer",documentation:"https://docs.wpo365.com/article/85-yammer-for-wordpress",requirements:{delegated:{ajax:!0,endpoints:["https://www.yammer.com"],permissions:["https://api.yammer.com/user_impersonation"],proxy:!0,token:!1},delegatedOnly:!0,userRequirements:{appOnlyAccess:!1}},type:"yam"}},uF=o=>{const{data:s,getAppInstances:n}=o,{showPreview:t,setLastMessage:i,setLastModified:d,setPanelChild:c,setSelectedAppInstance:u,setShowPreview:h}=D.useContext(jn),{env:g,updateSettings:w}=D.useContext(Ye),m=D.useMemo(()=>{if(g?.props?.addOns){const b=Object.keys(g.props.addOns),C=["wpo365-integrate/wpo365-integrate.php","wpo365-apps/wpo365-apps.php","wpo365-login-intranet/wpo365-login.php","wpo365-intranet-5y/wpo365-intranet-5y.php"];return b.some(k=>C.indexOf(k)>-1)}},[g]),{apiFetch:x,data:_,loading:v}=ta();return D.useEffect(()=>{_&&(u(_),n(),Fe.getSettings(g).then(b=>{w(b)}).catch(b=>i({type:ho.error,message:"Failed to refresh locally cached WPO365 configuration. Please try and refresh the current page instead."})))},[_]),e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},className:j.wpo365AppsCatalogItem,children:[e.jsx("div",{className:j.wpo365AppsIcon,children:Ci(s.type)}),e.jsx("div",{className:j.wpo365AppsDisplayName,children:s.displayName}),e.jsx("div",{style:{flexGrow:1}}),e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:5},children:[e.jsx(el,{iconProps:void 0,title:"Tutorial",ariaLabel:"Tutorial",onClick:()=>window.open(s.documentation,"_blank"),styles:{label:{fontSize:"13px",color:"#2271b1",textDecoration:"underline"}},children:"Tutorial"}),e.jsx(el,{disabled:["one","rec","yam"].indexOf(s.type)>-1&&!m,iconProps:void 0,title:"Add",ariaLabel:"Add",onClick:()=>{switch(u(null),t&&h(!1),s.type){case"emp":location.hash=`/${Me.edConfigurator}`;break;case"sea":location.hash=`/${Me.cbsConfigurator}`;break;case"yam":location.hash=`/${Me.yammer}`;break;default:x("apps/instance","post",{appInstance:{title:s.displayName,appType:s.type,appliedRequirements:{...Ey[s.type].requirements},config:{...cF[s.type]}}}),c({elem:cS(s.type),onDismiss:()=>{n(),u(null),d(null)}})}},styles:{label:{fontSize:"13px",color:"#2271b1",textDecoration:"underline"},labelDisabled:{color:"#c1c1c1",textDecoration:"none"}},children:"Add"})]})]})},pF="_toastLayer_1qra7_15",hF="_toastDialog_1qra7_22",mF="_toastHeader_1qra7_45",fF="_toastClose_1qra7_57",gF="_toastSummary_1qra7_68",Ep={toastLayer:pF,toastDialog:hF,toastHeader:mF,toastClose:fF,toastSummary:gF},_F=o=>{const{onClose:s}=o,{env:n,settings:t,updateLastErrorMessage:i,updateSettings:d}=D.useContext(Ye),[c,u]=D.useState(!1),h=async()=>{u(!0);const g={...t};g.enableGraphApi=!0;const w=await Fe.updateSettings(n,g);try{if(w.success){const m=await Fe.getSettings(n);d(m)}}catch(m){const x=m.response?.data?.error_message||m.response?.data?.message||m.message||(typeof m=="string"?m:`Status: ${m.status} ${m.statusText||""}`);i(x)}u(!1),s()};return e.jsx("div",{className:Ep.toastLayer,children:e.jsxs("section",{className:Ep.toastDialog,role:"alertdialog","aria-labelledby":"toast-title","aria-describedby":"toast-desc","aria-modal":"false",children:[e.jsxs("div",{className:Ep.toastHeader,children:[e.jsx("h2",{id:"toastTitle",style:{borderColor:"#0dcaf0"},children:"Getting started"}),e.jsx("button",{className:Ep.toastClose,"aria-label":"Close",onClick:s,children:"✕"})]}),e.jsx("p",{id:"toastDesc",className:Ep.toastSummary,children:"To start enjoying all the benefits of WPO365 apps for embedding Microsoft 365 and Power BI content in WordPress, simply click the button below."}),e.jsx("div",{children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},children:[e.jsx(et,{onClick:h,children:"Enable WPO365 for Apps"}),c&&e.jsx(Oe,{size:Te.small})]})})]})})},yF=()=>{const{setAppInstances:o,setLastMessage:s}=D.useContext(jn),{data:n,apiFetch:t}=ta(),i=()=>{t("apps/instance")};return D.useEffect(()=>{if(n){if(Array.isArray(n)){o([...n]);return}s({message:"Failed to retrieve app instances. [Error: Invalid data received]",type:ho.error})}},[n]),D.useMemo(()=>({getAppInstances:i}),[n])},wF=()=>{const{setLastMessage:o}=D.useContext(jn),[s,n]=D.useState(!1),[t,i]=D.useState(!1),d=c=>{if(!s){i(!0);try{Ee.get(c,{validateStatus:()=>!0}).then(u=>{u.status!==404?(i(!1),n(!0)):o({type:ho.error,message:`It looks as if you have not configured WordPress Permalinks and for that reason the WordPress REST API is not available at ${c}. Please go to WP Admin > Settings > Permalinks and change it to anything else than "Plain" and return here.`})})}catch(u){i(!1);const g=`${u.response?.data?.message||u.message||(typeof u=="string"?u:`Status: ${u.status} ${u.statusText||""}`)}${u.status?" | Status: "+u.status:""} | Url: ${c}]`;o({type:ho.error,message:g})}}};return D.useMemo(()=>({exists:s,urlExists:d,testing:t}),[s])},vF=o=>{const{appInstances:s,isDirty:n,lastMessage:t,lastModified:i,panelChild:d,saveStatus:c,selectedAppInstance:u,setLastMessage:h,setPanelChild:g,showPreview:w}=D.useContext(jn),{env:{props:{siteUrl:m}},settings:{enableGraphApi:x}}=D.useContext(Ye),[_,v]=D.useState(!1),{getAppInstances:b}=yF(),{apiFetch:C,deleted:k}=ta(),{exists:L,urlExists:T,testing:N}=wF();return D.useEffect(()=>{if(!x)v(!0);else if(L)b();else{const Y=`${m.replace(new RegExp("[/]+$"),"")}/wp-json/wpo365/v1/apps/instance`;T(Y)}},[_,x,L]),D.useEffect(()=>{k&&b()},[k]),e.jsxs(e.Fragment,{children:[e.jsx("div",{className:j.wpo365WzMain,children:e.jsxs(U,{horizontal:!0,tokens:{childrenGap:"1.5rem"},className:j.wpo365AppsTab,children:[w?KR(u?u.appType:""):e.jsxs("div",{className:j.wpo365YourApps,children:[e.jsx("h3",{className:j.wpo365AppsHeading,children:"Your apps"}),e.jsxs("table",{className:j.wpo365AppsTable,children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{children:"Type"}),e.jsx("th",{children:"Actions"}),e.jsx("th",{children:"Name"}),e.jsx("th",{children:"Author / Created"}),e.jsx("th",{children:"Shortcode"})]})}),e.jsx("tbody",{children:s.map(Y=>sF({instance:Y,deleteAppInstance:A=>C(`apps/instance/${A}`,"delete"),getAppInstances:b}))})]})]}),e.jsxs("div",{className:j.wpo365AppsCatalog,children:[e.jsx("h3",{className:j.wpo365AppsHeading,children:"Apps you can add"}),e.jsx(U,{tokens:{childrenGap:15},children:Object.keys(Ey).map(Y=>uF({data:Ey[Y],getAppInstances:b}))})]})]})}),e.jsx(vg,{type:In.medium,hasCloseButton:!1,isOpen:d!==null,onDismiss:()=>{d.onDismiss(),g(null)},closeButtonAriaLabel:"Close",onRenderFooterContent:()=>e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx(xn,{content:n?"Auto-saving - Please wait ...":"Close panel",calloutProps:{gapSpace:0},styles:{root:{display:"inline-block"}},children:e.jsx(dt,{onClick:()=>{d.onDismiss(),g(null)},disabled:n,children:"Close"})}),c==="saving"&&e.jsx(Oe,{size:Te.medium}),e.jsx("div",{style:{flexGrow:1}}),e.jsx("div",{className:j.wpo365TextSmall,children:i!==null?`Last saved at ${i}`:""})]}),isFooterAtBottom:!0,children:u?d===null?e.jsx(Oe,{size:Te.medium}):d.elem:e.jsx(Oe,{size:Te.medium})}),!!t&&e.jsx(oF,{message:t.message,type:t.type,onClose:()=>h(null)}),_&&e.jsx(_F,{onClose:()=>v(!1)})]})},xF=()=>{const{env:{props:{extensions:o}}}=D.useContext(Ye),[s,n]=D.useState([]),[t,i]=D.useState(!1),[d,c]=D.useState(null),[u,h]=D.useState(null),[g,w]=D.useState(null),[m,x]=D.useState("initial"),[_,v]=D.useState(!1),[b,C]=D.useState(null),k=D.useMemo(()=>o.some(L=>[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Apps].some(T=>T==L)),[]);return e.jsx(jn.Provider,{value:{appInstances:s,isDirty:t,isPremium:k,lastMessage:d,lastModified:u,panelChild:g,saveStatus:m,selectedAppInstance:b,setAppInstances:n,setIsDirty:i,setLastMessage:c,setLastModified:h,setPanelChild:w,setSaveStatus:x,setSelectedAppInstance:C,setShowPreview:v,showPreview:_},children:e.jsx(vF,{})})};class bf{static async getLog(s){const n=new FormData;n.append("action","wpo365_get_log"),n.append("nonce",s.nonce),n.append("ina",window.wpo365.wizard.props.ina);let t;try{t=await Ee.post(s.wpAjaxAdminUrl,n)}catch(i){return console.log(i),null}if(t.status==200&&t.data&&t.data.status&&t.data.status=="OK")try{return JSON.parse(t.data.result)}catch(i){return console.log(i),null}return null}}const uS={root:{minWidth:0,padding:"10px",alignSelf:"stretch",height:"auto",backgroundColor:"#f1f1f1"},rootHovered:{backgroundColor:"#f4f4f4"}},bF=[{key:pd.locally,text:"Locally (on the server)"},{key:pd.remotely,text:"Remotely (ApplicationInsights)"},{key:pd.both,text:"Both"}],SF=(o,s)=>e.jsxs(U,{tokens:{childrenGap:10},children:[e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},style:{maxWidth:"600px"},children:[e.jsx("div",{style:{padding:"2px",whiteSpace:"nowrap"},dangerouslySetInnerHTML:{__html:o.now}}),e.jsx("div",{style:{padding:"2px",whiteSpace:"nowrap"},dangerouslySetInnerHTML:{__html:o.level}})]}),e.jsx("div",{style:{padding:"2px",wordWrap:"break-word",overflow:"auto"},dangerouslySetInnerHTML:{__html:o.body}})]}),CF=o=>o.onRender?o.onRender(o):e.jsx(Dn,{iconProps:{iconName:o.icon},menuProps:o.subMenuProps,text:o.name,onClick:o.onClick,styles:uS}),kF=o=>e.jsx(Dn,{styles:uS,menuIconProps:{iconName:"More"},menuProps:{items:o}}),MF=o=>{const{env:s,env:{props:{extensions:n}},settings:t,updateSettings:i}=D.useContext(Ye),d=D.useRef(""),[c,u]=D.useState({aiInstrumentationKey:t.aiInstrumentationKey,curlLoggingEnabled:t.curlLoggingEnabled,debugLog:t.debugLog,debugLogIdToken:t.debugLogIdToken,debugLogLocation:t.debugLogLocation,enableCustomLogScim:t.enableCustomLogScim,enableCustomLogSync:t.enableCustomLogSync,hideErrorNotice:t.hideErrorNotice}),[h,g]=D.useState([]),[w,m]=D.useState(we.initial),[x,_]=D.useState([]),[v,b]=D.useState([]),[C,k]=D.useState(!0),[L,T]=D.useState(!1);D.useEffect(()=>{L&&(T(!1),N(R=>R.level=="ERROR"||R.level=="WARN"))},[L]),D.useEffect(()=>{k(!0),bf.getLog(s).then(R=>{_(R),T(!0)}).catch(R=>alert(R.message)).finally(()=>k(!1))},[]),D.useEffect(()=>{const R=JSON.stringify(t);d.current.length>0&&JSON.stringify(d)!==R&&(u({aiInstrumentationKey:t.aiInstrumentationKey,curlLoggingEnabled:t.curlLoggingEnabled,debugLog:t.debugLog,debugLogIdToken:t.debugLogIdToken,debugLogLocation:t.debugLogLocation,enableCustomLogScim:t.enableCustomLogScim,enableCustomLogSync:t.enableCustomLogSync,hideErrorNotice:t.hideErrorNotice}),g([]),b([]),k(!1),_([]),m(we.initial)),d.current=R},[t]);const N=R=>{const H=Array.isArray(x)?x.filter(R):[];H.length===0&&H.push({now:"",level:"",request_id:"",php_version:"",body:"<strong>No result</strong> <i>Try another filter...</i>"}),b(H)},Y=R=>{const H=[{key:"filterErrors",name:"Errors / Warnings",icon:"Filter",ariaLabel:"Filter: Errors",onClick:()=>N(W=>W.level=="ERROR"||W.level=="WARN")},{key:"filterDebug",name:"Debug",icon:"Filter",ariaLabel:"Filter: Debug",onClick:()=>N(W=>W.level=="DEBUG")},{key:"deleteFilter",name:"All",icon:"ClearFilter",ariaLabel:"Delete filters",onClick:()=>b([...R])},{key:"refresh",name:"Refresh",icon:"Refresh",ariaLabel:"Refresh log",onClick:()=>{k(!0),bf.getLog(s).then(W=>{_(W),T(!0)}).catch(W=>alert(W.message)).finally(()=>k(!1))}}];return t.curlLoggingEnabled&&H.splice(1,0,{key:"filterCurl",name:"cURL",icon:"Filter",ariaLabel:"Filter: cURL",onClick:()=>N(W=>W.level=="CURL")}),H},A=()=>{k(!0),u({...c,curlLoggingEnabled:!c.curlLoggingEnabled}),bf.getLog(s).then(R=>{_(R),T(!0)}).catch(R=>alert(R.message)).finally(()=>k(!1))},I=async()=>{m(we.saving);const R={...t};R.aiInstrumentationKey=c.aiInstrumentationKey,R.curlLoggingEnabled=c.curlLoggingEnabled,R.debugLog=c.debugLog,R.debugLogIdToken=c.debugLogIdToken,R.debugLogLocation=c.debugLogLocation,R.enableCustomLogScim=c.enableCustomLogScim,R.enableCustomLogSync=c.enableCustomLogSync,R.hideErrorNotice=c.hideErrorNotice;const H=await Fe.updateSettings(s,R);H.success?(Fe.getSettings(s).then(W=>{i(W),k(!0),bf.getLog(s).then(K=>{_(K),T(!0)}).catch(K=>alert(K.message)).finally(()=>k(!1))}),g([]),m(we.success)):(g([...h,new Lr("saveConfiguration",H.message,2e3)]),m(we.error))};return e.jsx("div",{className:j.wpo365WzMain,children:e.jsxs("table",{className:j.wpo365WzTable,children:[e.jsxs("colgroup",{children:[e.jsx("col",{width:"50%"}),e.jsx("col",{width:"50%"})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Debug"})})}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("div",{dangerouslySetInnerHTML:{__html:`<strong>Use this tab to</strong>
                <ul>
                <li>Enable / Disable the plugin's debug log</li>
                <li>Enable / Disable logging of the Open ID Connect information (ID Token)</li>
                <li>Copy the debug log to your clipboard e.g. to send it to WPO365 support when requested to do so</li>
                </ul>
                <strong>Important</strong><br/><br/>
                Disable logging if the plugin is working as expected, as it will require additional resources e.g. 
                database requests and I/O operations and unnecessarily impact your web application's performance.
                `}})})}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Enable debug log"}),e.jsx(de,{info:{title:"Debug log",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/19-enable-debug-log"}}})]})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(R,H)=>u({...c,debugLog:H}),checked:c.debugLog})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Log location"}),e.jsx(de,{info:{title:"Log location",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/60-log-location"}}})]})}),e.jsx("td",{children:e.jsx(_g,{defaultSelectedKey:c.debugLogLocation,options:bF,onChange:(R,H)=>u({...c,debugLogLocation:H.key})})})]}),(c.debugLogLocation==pd.remotely||c.debugLogLocation==pd.both)&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"ApplicationInsights Instrumentation Key"}),e.jsx(de,{info:{title:"Use ApplicationInsights",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/60-log-location"}}})]})}),e.jsx("td",{children:e.jsx(fe,{bound:!1,value:c.aiInstrumentationKey,isValid:(R,H)=>!0,onValid:R=>{u({...c,aiInstrumentationKey:R})},placeholder:he.infoAiInstrumentationKey})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Hide error notice"}),e.jsx(de,{info:{title:"Hide error notice",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/64-hide-error-notice"}}})]})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(R,H)=>u({...c,hideErrorNotice:H}),checked:c.hideErrorNotice})})})]}),n.indexOf(l.wpo365Login)>-1&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Log ID token"}),e.jsx(de,{info:{title:"Log ID token",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/65-log-id-token"}}})]})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(R,H)=>u({...c,debugLogIdToken:H}),checked:c.debugLogIdToken})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Enable cURL verbose"}),e.jsx(de,{info:{title:"Enable cURL verbose",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/214-enable-curl-verbose"}}})]})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:A,checked:c.curlLoggingEnabled})})})]}),t.enableScim&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Log incoming SCIM requests (debug)"}),e.jsx(de,{info:{title:"Protect sensitive logged data",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/227-protect-sensitive-data-stored-in-server-logs"}}})]})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(R,H)=>u({...c,enableCustomLogScim:H}),checked:c.enableCustomLogScim})})})]}),t.enableUserSync&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Log user-sync events (debug)"}),e.jsx(de,{info:{title:"Protect sensitive logged data",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/227-protect-sensitive-data-stored-in-server-logs"}}})]})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(R,H)=>u({...c,enableCustomLogSync:H}),checked:c.enableCustomLogSync})})})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Configuration"})})}),e.jsxs("tr",{children:[e.jsx("th",{}),e.jsx("td",{children:e.jsxs("div",{className:j.wpo365WzColumnifier,children:[e.jsx(dt,{onClick:I,iconProps:{iconName:w==we.success?"Like":void 0},style:{minWidth:"400px",maxWidth:"400px",minHeight:"30px",alignSelf:"start"},disabled:h.length>0||w==we.saving,children:"Save configuration"}),e.jsx("div",{className:j.wpo365WzLabelFor,children:yd(h,"saveConfiguration").map(R=>e.jsx("p",{className:j.wpo365WzP,children:R.message}))}),w==we.success?e.jsx("p",{style:{color:"#378805"},children:he.okSettingsUpdated}):null]})})]}),e.jsxs("tr",{style:{marginBottom:"1rem"},children:[e.jsx("th",{}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("div",{style:{width:"400px",border:"1px solid",textAlign:"center",boxSizing:"border-box",height:"30px",lineHeight:"28px"},children:e.jsx("a",{href:"data:text/json;charset=utf-8,"+encodeURIComponent(JSON.stringify(x,null,2)),download:"wpo365-log.json",children:"Download as JSON"})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Debug Log:"}),e.jsx("td",{style:{maxWidth:"400px"},children:e.jsxs(U,{style:{maxWidth:"650px"},children:[e.jsx(ph,{items:Y(x),overflowItems:[],onRenderOverflowButton:kF,onRenderItem:CF}),C?e.jsxs(U,{horizontal:!0,verticalAlign:"center",style:{paddingTop:"20px"},children:[e.jsx("div",{style:{width:"400px",textAlign:"center"},children:e.jsx(Oe,{size:Te.small})}),e.jsx("div",{})]}):e.jsx(qp,{items:v,onRenderCell:SF})]})})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx(Ho,{})})})]})})},jF=o=>{const{env:s,settings:n,updateSettings:t}=D.useContext(Ye),i={bounceToAdmin:n.bounceToAdmin,leeway:n.leeway,passwordLength:n.passwordLength,preventSendEmailChangeEmail:n.preventSendEmailChangeEmail,preventSendPasswordChangeEmail:n.preventSendPasswordChangeEmail,skipHostVerification:n.skipHostVerification,skipNonceVerification:n.skipNonceVerification,skipUserRegisterAction:n.skipUserRegisterAction,skipWpLoginAction:n.skipWpLoginAction,useIdTokenParserV2:n.useIdTokenParserV2,useLoaderV1:n.useLoaderV1,useLoginButtonV1:n.useLoginButtonV1,useMsTeamsSsoV1:n.useMsTeamsSsoV1,useNoTeamsSso:n.useNoTeamsSso,useWpCli:n.useWpCli,useWpConfigFrags:n.useWpConfigFrags,validateOnPluginsLoaded:n.validateOnPluginsLoaded},[d,c]=D.useState(i),[u,h]=D.useState(null),[g,w]=D.useState(we.initial),[m,x]=D.useState([]),_=()=>{const{useIdTokenParserV2:C}=d;if(C){c({...d,useIdTokenParserV2:!1});return}const k={title:he.titleUseIdTokenParserV2,subText:he.subTextUseIdTokenParserV2,onDismiss:()=>h(null),onCancel:()=>h(null),onConfirm:()=>{c({...d,useIdTokenParserV2:!0}),h(null)}};h(k)},v=()=>{const{useNoTeamsSso:C}=d;if(C){c({...d,useNoTeamsSso:!1});return}h({title:"Important",subText:"If you check this option to enable support for IE 11, integration with Microsoft Teams is no longer possible.",onDismiss:()=>h(null),onCancel:()=>h(null),onConfirm:()=>{c({...d,useNoTeamsSso:!0}),h(null)}})},b=async()=>{w(we.saving);const C={...n};C.leeway=d.leeway,C.bounceToAdmin=d.bounceToAdmin,C.passwordLength=d.passwordLength,C.preventSendEmailChangeEmail=d.preventSendEmailChangeEmail,C.preventSendPasswordChangeEmail=d.preventSendPasswordChangeEmail,C.skipHostVerification=d.skipHostVerification,C.skipNonceVerification=d.skipNonceVerification,C.skipUserRegisterAction=d.skipUserRegisterAction,C.skipWpLoginAction=d.skipWpLoginAction,C.useIdTokenParserV2=d.useIdTokenParserV2,C.useLoaderV1=d.useLoaderV1,C.useLoginButtonV1=d.useLoginButtonV1,C.useMsTeamsSsoV1=d.useMsTeamsSsoV1,C.useNoTeamsSso=d.useNoTeamsSso,C.useWpCli=d.useWpCli,C.useWpConfigFrags=d.useWpConfigFrags,C.validateOnPluginsLoaded=d.validateOnPluginsLoaded;const k=await Fe.updateSettings(s,C);k.success?(Fe.getSettings(s).then(L=>t(L)),x([]),w(we.success)):(x([...m,new Lr("saveConfiguration",k.message,2e3)]),w(we.error))};return e.jsx("div",{className:j.wpo365WzMain,children:e.jsxs("table",{className:j.wpo365WzTable,children:[e.jsxs("colgroup",{children:[e.jsx("col",{width:"50%"}),e.jsx("col",{width:"50%"})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Miscellaneous"})})}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs(U,{tokens:{childrenGap:10},horizontal:!0,verticalAlign:"center",children:[e.jsx("div",{children:"Skip authentication for WP-CLI"}),e.jsx(de,{info:{title:"Skip authentication for WP-CLI",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/173-skip-authentication-for-wp-cli"}}})]})}),e.jsx("td",{style:{verticalAlign:"middle"},children:e.jsx(ce,{onChange:(C,k)=>c({...d,useWpCli:k}),checked:d.useWpCli})})]}),s.props.extensions.indexOf(l.wpo365Login)>-1&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs(U,{tokens:{childrenGap:10},horizontal:!0,verticalAlign:"center",children:[e.jsx("div",{children:"Don't fire wp-login action"}),e.jsx(de,{info:{title:"Don't fire wp-login action",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/95-skip-wplogin-action"}}})]})}),e.jsx("td",{style:{verticalAlign:"middle"},children:e.jsx(ce,{onChange:(C,k)=>c({...d,skipWpLoginAction:k}),checked:d.skipWpLoginAction})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs(U,{tokens:{childrenGap:10},horizontal:!0,verticalAlign:"center",children:[e.jsx("div",{children:'Prevent WordPress to send "email changed" emails'}),e.jsx(de,{info:{title:'Prevent WordPress to send "email changed" email',readMore:{title:"Read online",url:"https://docs.wpo365.com/article/115-prevent-wordpress-to-send-email-changed-email"}}})]})}),e.jsx("td",{style:{verticalAlign:"middle"},children:e.jsx(ce,{onChange:(C,k)=>c({...d,preventSendEmailChangeEmail:k}),checked:d.preventSendEmailChangeEmail})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs(U,{tokens:{childrenGap:10},horizontal:!0,verticalAlign:"center",children:[e.jsx("div",{children:'Prevent WordPress to send "password changed" emails'}),e.jsx(de,{info:{title:'Prevent WordPress to send "password changed" email',readMore:{title:"Read online",url:"https://docs.wpo365.com/article/148-prevent-wordpress-to-send-password-changed-email"}}})]})}),e.jsx("td",{style:{verticalAlign:"middle"},children:e.jsx(ce,{onChange:(C,k)=>c({...d,preventSendPasswordChangeEmail:k}),checked:d.preventSendPasswordChangeEmail})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs(U,{tokens:{childrenGap:10},horizontal:!0,verticalAlign:"center",children:[e.jsx("div",{children:"Don't fire user_register action"}),e.jsx(de,{info:{title:"Don't fire user_register action",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/91-skip-userregister-action"}}})]})}),e.jsx("td",{style:{verticalAlign:"middle"},children:e.jsx(ce,{onChange:(C,k)=>c({...d,skipUserRegisterAction:k}),checked:d.skipUserRegisterAction})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{children:"Use Firebase\\JWT instead of phpseclib"})}),e.jsx("td",{style:{verticalAlign:"middle"},children:e.jsx(ce,{onChange:_,checked:d.useIdTokenParserV2})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{children:"Use loader animation V1 (bars)"})}),e.jsx("td",{style:{verticalAlign:"middle"},children:e.jsx(ce,{onChange:(C,k)=>c({...d,useLoaderV1:k}),checked:d.useLoaderV1})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs(U,{tokens:{childrenGap:10},horizontal:!0,verticalAlign:"center",children:[e.jsx("div",{children:"Use Microsoft Teams SSO V1"}),e.jsx(de,{info:{title:"Use Microsoft Teams SSO V1",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/70-adding-a-wordpress-tab-to-microsoft-teams-and-use-single-sign-on"}}})]})}),e.jsx("td",{style:{verticalAlign:"middle"},children:e.jsx(ce,{onChange:(C,k)=>c({...d,useMsTeamsSsoV1:k}),checked:d.useMsTeamsSsoV1})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{children:"Use login-button template V1"})}),e.jsx("td",{style:{verticalAlign:"middle"},children:e.jsx(ce,{onChange:(C,k)=>c({...d,useLoginButtonV1:k}),checked:d.useLoginButtonV1})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{children:"IE 11 compatibility mode"})}),e.jsx("td",{style:{verticalAlign:"middle"},children:e.jsx(ce,{onChange:v,checked:d.useNoTeamsSso})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs(U,{tokens:{childrenGap:10},horizontal:!0,verticalAlign:"center",children:[e.jsx("div",{children:"Use admin URL to initiate authentication"}),e.jsx(de,{info:{title:"Use admin URL to initiate authentication",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/219-use-admin-url-to-initiate-authentication"}}})]})}),e.jsx("td",{style:{verticalAlign:"middle"},children:e.jsx(ce,{onChange:(C,k)=>c({...d,bounceToAdmin:k}),checked:d.bounceToAdmin})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs(U,{tokens:{childrenGap:10},horizontal:!0,verticalAlign:"center",children:[e.jsx("div",{children:"Password length"}),e.jsx(de,{info:{title:"Password length",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/138-password-length"}}})]})}),e.jsx("td",{style:{verticalAlign:"middle"},children:e.jsx(fe,{isValid:(C,k)=>/^\d+$/.test(k),onValid:C=>c({...d,passwordLength:parseInt(C)}),bound:!1,errorMessage:he.errPasswordLengthMustBeNumeric,value:d.passwordLength.toString(),placeholder:he.infoPasswordLength})})]})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs(U,{tokens:{childrenGap:10},horizontal:!0,verticalAlign:"center",children:[e.jsx("div",{children:"Skip NONCE verification"}),e.jsx(de,{info:{title:"Skip NONCE verification",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/97-skip-nonce-verification"}}})]})}),e.jsx("td",{style:{verticalAlign:"middle"},children:e.jsx(ce,{onChange:(C,k)=>c({...d,skipNonceVerification:k}),checked:d.skipNonceVerification})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs(U,{tokens:{childrenGap:10},horizontal:!0,verticalAlign:"center",children:[e.jsx("div",{children:"(cURL) Skip SSL host verification"}),e.jsx(de,{info:{title:"Skip SSL host verification",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/102-skip-ssl-host-verification"}}})]})}),e.jsx("td",{style:{verticalAlign:"middle"},children:e.jsx(ce,{onChange:(C,k)=>c({...d,skipHostVerification:k}),checked:d.skipHostVerification})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs(U,{tokens:{childrenGap:10},horizontal:!0,verticalAlign:"center",children:[e.jsx("div",{children:"Leeway"}),e.jsx(de,{info:{title:"Leeway time",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/157-leeway"}}})]})}),e.jsx("td",{style:{verticalAlign:"middle"},children:e.jsx(fe,{isValid:(C,k)=>/^\d+$/.test(k),onValid:C=>c({...d,leeway:parseInt(C)}),bound:!1,errorMessage:he.errLeewayMustBeNumeric,value:d.leeway.toString(),placeholder:he.infoLeeway})})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Configuration"})})}),e.jsxs("tr",{children:[e.jsx("th",{}),e.jsx("td",{children:e.jsxs(U,{tokens:{childrenGap:10},style:{maxWidth:"400px"},children:[e.jsx(dt,{onClick:()=>b(),iconProps:{iconName:g==we.success?"Like":void 0},style:{minWidth:"400px",minHeight:"30px"},disabled:g==we.saving,children:"Save configuration"}),e.jsx("div",{className:j.wpo365WzLabelFor,children:yd(m,"saveConfiguration").map(C=>e.jsx("p",{className:j.wpo365WzP,children:C.message}))}),g==we.success?e.jsx("p",{style:{color:"#378805"},children:he.okSettingsUpdated}):null]})})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx(Ho,{})})}),u&&e.jsx(Bo,{onCancel:u.onCancel,onConfirm:u.onConfirm,onDismiss:u.onDismiss,title:u.title,subText:u.subText})]})})},Bx=(o,s)=>{const n=s.filter(t=>t.key==o);return n.length===1?n[0].option:o},Hx=o=>{const{choicesA:s,choicesAPlaceholder:n,choicesB:t,choicesBPlaceholder:i,disabled:d,list:c,onListChanged:u,prefixA:h,prefixB:g}=o,[w,m]=D.useState(c?[...c]:[]),[x,_]=D.useState(""),[v,b]=D.useState(""),[C,k]=D.useState("");return D.useEffect(()=>{JSON.stringify(w)!==JSON.stringify(c)&&u(w)},[w]),e.jsxs(U,{tokens:{childrenGap:10},horizontalAlign:"start",style:{width:"400px"},children:[e.jsxs(U,{horizontalAlign:"start",tokens:{childrenGap:10},style:{width:"100%"},children:[e.jsxs(U,{tokens:{childrenGap:10},horizontal:!0,verticalAlign:"center",style:{width:"100%"},children:[e.jsx(qe,{placeholder:n||void 0,options:s.map(L=>({key:L.key,text:L.option})),onChange:(L,T)=>{_(""),b(String(T.key))},selectedKey:v,styles:{root:{flexGrow:1,flexShrink:0,maxWidth:"400px",width:"400px"}},disabled:d}),e.jsx("div",{style:{width:"30px",height:"30px",padding:0}})]}),e.jsxs(U,{tokens:{childrenGap:10},horizontal:!0,verticalAlign:"center",style:{width:"100%"},children:[e.jsx(qe,{placeholder:i||void 0,options:t.map(L=>({key:L.key,text:L.option})),onChange:(L,T)=>{_(""),k(String(T.key))},selectedKey:C,styles:{root:{flexGrow:1,flexShrink:0,maxWidth:"400px",width:"400px"}},disabled:d}),e.jsx(Ke,{disabled:d,onClick:()=>{if(!v||!C){_("This setting requires a value");return}const L=[...w];L.push({key:v,value:C}),m([...L]),b(null),k(null)},iconProps:{iconName:"Add"},title:"Add",ariaLabel:"Click to add this item",style:{fontSize:"12px",lineHeight:"30px",height:"30px",width:"30px",padding:0,marginLeft:"10px",cursor:"pointer"}})]})]}),x&&e.jsx("div",{style:{lineHeight:"30px",color:"#cc0000"},children:x}),w.length>0&&e.jsx("div",{style:{width:"400px",height:"1px",backgroundColor:"black"}}),w.map((L,T)=>e.jsxs(U,{horizontalAlign:"start",tokens:{childrenGap:10},style:{width:"100%",marginBottom:"20px"},children:[e.jsxs(U,{tokens:{childrenGap:10},horizontal:!0,verticalAlign:"center",style:{width:"100%"},children:[e.jsx(fe,{bound:!0,disabled:!0,value:`${h}${Bx(L.key,s)}`}),e.jsx("div",{style:{width:"30px",height:"30px",padding:0}})]}),e.jsxs(U,{tokens:{childrenGap:10},horizontal:!0,verticalAlign:"center",style:{width:"100%"},children:[e.jsx(fe,{bound:!0,disabled:!0,value:`${g}${Bx(L.value,t)}`}),e.jsx(Ke,{onClick:()=>{const N=[...w];N.splice(T,1),m(N)},iconProps:{iconName:"Delete"},title:"Delete",ariaLabel:"Click to delete this item",style:{fontSize:"12px",lineHeight:"30px",height:"30px",width:"30px",padding:0,marginLeft:"10px",cursor:"pointer"}})]})]},`${btoa(L.key)}-${btoa(L.value)}`))]})},LF=o=>{const{keyErrorMessage:s,keyIsValid:n,keyPlaceholder:t,list:i,onListChanged:d,titleErrorMessage:c,titleIsValid:u,titlePlaceholder:h,valueErrorMessage:g,valueIsValid:w,valuePlaceholder:m}=o,[x,_]=D.useState(""),[v,b]=D.useState(""),[C,k]=D.useState([]),[L,T]=D.useState(""),[N,Y]=D.useState(""),[A,I]=D.useState(""),[R,H]=D.useState(i?[...i]:[]);return D.useEffect(()=>{JSON.stringify(R)!==JSON.stringify(i)&&d(R)},[R]),D.useEffect(()=>{if(!v)return;if(C.indexOf(v)>-1){I("Entra ID already added to the list");return}const W=[...C];W.push(v),k(W),b("")},[v]),e.jsxs(U,{tokens:{childrenGap:10},horizontalAlign:"start",style:{width:"400px"},children:[e.jsxs(U,{horizontalAlign:"start",tokens:{childrenGap:10},style:{width:"100%"},children:[e.jsxs(U,{tokens:{childrenGap:10},horizontal:!0,verticalAlign:"center",style:{width:"100%"},children:[e.jsx(fe,{bound:!0,errorMessage:c,isValid:(W,K)=>(L&&T(""),A&&I(""),u&&K?u.test(K):!0),onError:W=>T(W),onValid:W=>{_(W)},placeholder:h||void 0,value:x}),e.jsx(Ke,{onClick:()=>{if(!x||C.length===0){I("This setting requires a value");return}const W=[...R];W.push({title:x,key:Zt(12),values:[...C]}),H([...W]),_(""),b(""),k([])},iconProps:{iconName:"Add"},title:"Add",ariaLabel:"Click to add this item",style:{fontSize:"12px",lineHeight:"30px",height:"30px",width:"30px",padding:0,marginLeft:"10px",cursor:"pointer"}})]}),e.jsxs(U,{horizontalAlign:"start",tokens:{childrenGap:10},style:{width:"100%"},children:[e.jsxs(U,{tokens:{childrenGap:10},horizontal:!0,verticalAlign:"center",style:{width:"100%"},children:[e.jsx(fe,{bound:!0,errorMessage:g,isValid:(W,K)=>(N&&Y(""),A&&I(""),w&&K?w.test(K):!0),onError:W=>Y(W),onValid:W=>{b(W)},placeholder:m||void 0,value:v}),e.jsx("div",{style:{width:"30px",height:"30px",padding:0}})]}),C.map((W,K)=>e.jsxs(U,{tokens:{childrenGap:20},horizontal:!0,verticalAlign:"center",style:{width:"100%"},children:[e.jsx(fe,{bound:!0,disabled:!0,value:W}),e.jsx(Ke,{onClick:()=>{const Z=[...C];Z.splice(K,1),k(Z)},iconProps:{iconName:"Delete"},title:"Delete",ariaLabel:"Click to delete this item",style:{fontSize:"12px",lineHeight:"30px",height:"30px",width:"30px",padding:0,marginLeft:"10px",cursor:"pointer"}})]},`nvl_${btoa(W)}`))]})]}),L&&e.jsx("div",{style:{lineHeight:"30px",color:"#cc0000"},children:L}),N&&e.jsx("div",{style:{lineHeight:"30px",color:"#cc0000"},children:N}),A&&e.jsx("div",{style:{lineHeight:"30px",color:"#cc0000"},children:A}),R.length>0&&e.jsx("div",{style:{width:"400px",height:"1px",backgroundColor:"black"}}),R.map((W,K)=>e.jsxs(U,{horizontalAlign:"start",tokens:{childrenGap:10},style:{width:"100%",marginBottom:"20px"},children:[e.jsxs(U,{tokens:{childrenGap:10},horizontal:!0,verticalAlign:"center",style:{width:"100%"},children:[e.jsx("div",{style:{width:"100%",height:"30px"},children:`ID: ${W.key}`}),e.jsx(Ke,{onClick:()=>{const Z=[...R];Z.splice(K,1),H(Z)},iconProps:{iconName:"Delete"},title:"Delete",ariaLabel:"Click to delete this item",style:{fontSize:"12px",lineHeight:"30px",height:"30px",width:"30px",padding:0,marginLeft:"10px",cursor:"pointer"}})]}),e.jsxs(U,{tokens:{childrenGap:10},horizontal:!0,verticalAlign:"center",style:{width:"100%"},children:[e.jsx(fe,{bound:!0,disabled:!0,value:W.title}),e.jsx("div",{style:{width:"30px",height:"30px",padding:0}})]}),W.values.map((Z,Q)=>e.jsxs(U,{tokens:{childrenGap:10},horizontal:!0,verticalAlign:"center",style:{width:"100%"},children:[e.jsx(fe,{bound:!0,disabled:!0,value:Z}),e.jsx("div",{style:{width:"30px",height:"30px",padding:0}})]},btoa(Z)))]},btoa(W.key)))]})},EF=()=>{const{env:o,updateAppStatus:s,updateLastErrorMessage:n,updateSettings:t}=D.useContext(Ye),[i,d]=D.useState(null),c=D.useCallback(u=>{n(""),s("working"),d(null),Fe.updateSettings(o,u).then(h=>{if(h.success)Fe.getSettings(o).then(g=>{d("OK"),t(g),s("initial")}).catch(g=>{d("NOK"),n(`Failed to get updated settings. [Error: ${g.message||"Unknown error"}]`)}).finally(()=>s("initial"));else throw new Error(`Failed to get updated settings. [Error: ${h.error.message||"Unknown error"}]`)}).catch(h=>{n(`Failed to update settings. [Error: ${h.message||"Unknown error"}]`),d("NOK")}).finally(()=>s("initial"))},[]);return D.useMemo(()=>({saveStatus:i,saveOptions:c}),[i])},DF=o=>{const s=o.some(t=>[l.wpo365Customers,l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(i=>i==t));return[{key:"select",text:"Select",itemType:Rt.Header},{key:"intranet",text:"Intranet"},{key:"internet",text:"Internet"},{key:"internetAuthOnly",text:"Internet (auth. only)",disabled:!s},{key:"intranetAuthOnly",text:"Intranet (auth. only)",disabled:!s}]},IF=()=>{const o=/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,s=/^(([0-9a-fA-F]{1,4}:){7}([0-9a-fA-F]{1,4}|:)|(([0-9a-fA-F]{1,4}:){1,6}|:):(([0-9a-fA-F]{1,4}:){1,5}|:):(([0-9a-fA-F]{1,4}:){1,4}|:):(([0-9a-fA-F]{1,4}:){1,3}|:):(([0-9a-fA-F]{1,4}:){1,2}|:):([0-9a-fA-F]{1,4}|:):(([0-9a-fA-F]{1,4}:){1,1}|:):([0-9a-fA-F]{1,4}|:):([0-9a-fA-F]{1,4}|:))$/;return new RegExp(`${o.source}|${s.source}`)},cs=o=>Array.isArray(o)?o.map(s=>({key:s.value,value:s.key})):[],TF=()=>{const{appStatus:o,env:s,env:{nonce:n,props:{addOns:t,availableGroups:i,availablePostTypes:d,availableRoles:c,extensions:u,wpmu:h,wpConfigMultiple:g},wpAjaxAdminUrl:w},settings:m,settings:{hidePremiumOptions:x},updateAppStatus:_,updateSettings:v}=D.useContext(Ye),b=D.useMemo(()=>Xr(i,[]),[]),C=D.useMemo(()=>Object.keys(Xr(d,[])),[]),k=D.useMemo(()=>Object.keys(Xr(c,[])),[]),[L,T]=D.useState(null),[N,Y]=D.useState(null),[A,I]=D.useState(""),[R,H]=D.useState({authScenario:m.authScenario||Gr.intranet,blockDirectMediaAccess:m.blockDirectMediaAccess,pagesBlacklist:m.pagesBlacklist,skipIps:m.skipIps,privatePages:m.privatePages,publicHomepage:m.publicHomepage,domainWhitelist:m.domainWhitelist,domainBlockedList:m.domainBlockedList,groupsWhitelist:m.groupsWhitelist,allGroupMemberships:m.allGroupMemberships,muNewUsrDefaultRole:m.muNewUsrDefaultRole,newUsrDefaultRole:m.newUsrDefaultRole,replaceOrUpdateUserRoles:m.replaceOrUpdateUserRoles,defaultRoleAsFallback:m.defaultRoleAsFallback,updateAdmins:m.updateAdmins,replaceOrUpdateWpmuUserRoles:m.replaceOrUpdateWpmuUserRoles,groupsXRoles:m.groupsXRoles,muGroupsXSuperAdmins:m.muGroupsXSuperAdmins,muRevokeSuperAdmin:m.muRevokeSuperAdmin,customFieldsXRoles:m.customFieldsXRoles,appRolesXWpRoles:m.appRolesXWpRoles,groupsXGroupsGroups:m.groupsXGroupsGroups,customFieldsXItthinxGroups:m.customFieldsXItthinxGroups,domainsXRoles:m.domainsXRoles,enableAudiences:m.enableAudiences,audiences:m.audiences,audiencesExcludedPostTypes:m.audiencesExcludedPostTypes,audiencesExcludedRoles:m.audiencesExcludedRoles,audiencesPrivatePageResponse:m.audiencesPrivatePageResponse,audiencesPrivatePostTypes:m.audiencesPrivatePostTypes,audiencesXPostTypes:m.audiencesXPostTypes,enableAudiencesRest:m.enableAudiencesRest}),{saveStatus:W,saveOptions:K}=EF();D.useEffect(()=>{N!==null&&Z()},[N]),D.useEffect(()=>{W==="OK"&&N==="blockDirectMediaAccess"&&(I(""),Q().catch(P=>{I(P.message),Fe.getSettings(s).then(X=>{v(X)})})),W!==null&&Y(null)},[W]);const Z=()=>{_("working");const P={...m};Object.keys(R).forEach($=>{$ in P&&(P[$]=R[$])}),K(P)},Q=async()=>{const P=new FormData;P.append("action","wpo365_block_direct_media_access"),P.append("nonce",n),P.append("ina",window.wpo365.wizard.props.ina);const X=await Ee.post(w,P);if(X.status<200&&X.status>299)throw X.data?.message?new Error(X.data.message):X.statusText?new Error(X.statusText):new Error("Unknown error occurred whilst trying to update your site's .htaccess. Please check the online documentation for instructions to update it manually instead.");if(X.data?.status==="NOK")throw new Error(X.data.message)},B=(P,X,$,ie)=>{T({title:$,subText:ie,onDismiss:()=>T(null),onCancel:()=>T(null),onConfirm:()=>{T(null)}})};return e.jsxs("div",{className:j.wpo365WzMain,children:[e.jsxs("table",{className:j.wpo365WzTable,children:[e.jsxs("colgroup",{children:[e.jsx("col",{width:"50%"}),e.jsx("col",{width:"50%"})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsxs("h3",{className:j.wpo365WzSectionTitle,children:[e.jsx("span",{style:{color:"#CE5708"},children:"Getting started"})," with Roles + Access"]})})}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx(ou,{buttons:[{callToAction:"Entra ID based roles and access control",info:"https://www.wpo365.com/feature/entra-id-based-roles-and-access-control-for-wordpress/",title:"Roles + Access",tutorial:"https://tutorials.wpo365.com/courses/ra-dynamically-assign-wordpress-roles-based-on-azure-ad-group-memberships/"},{callToAction:"Control access to specific post and pages",info:"https://www.wpo365.com/feature/entra-id-based-single-sign-on-for-wordpress/",title:"Audiences",tutorial:"https://tutorials.wpo365.com/courses/ra-use-wpo365-audiences-to-restrict-gate-access-to-content/"},{callToAction:"Restrict access and require authentication",tutorial:"https://docs.wpo365.com/article/36-authentication-scenario",title:"Authencation Scenario"},{callToAction:"Require login for the WordPress Media Folder",tutorial:"https://docs.wpo365.com/article/229-require-login-for-the-wordpress-media-folder",title:"Protect Media Files"}]})})}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Protection"})})}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Authentication scenario"})," ",e.jsx(de,{info:{title:"Authentication scenario",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/36-authentication-scenario"}}})]})}),e.jsx("td",{children:e.jsxs("div",{className:j.wpo365WzColumnifier,children:[e.jsx(qe,{options:DF(u),selectedKey:R.authScenario,onChange:(P,X)=>{H({...R,authScenario:X.key})},style:{maxWidth:"400px"}}),(R.authScenario==Gr.intranet||R.authScenario==Gr.intranetAuthOnly)&&e.jsxs("span",{className:j.wpo365WzRowifier,style:{color:"#0078D4"},children:[e.jsx(ze,{iconName:"Warning",style:{paddingRight:"5px"}}),"Please take a moment and review the  ",e.jsx("a",{href:"https://docs.wpo365.com/article/36-authentication-scenario",target:"_blank",children:"online documentation"})]})]})})]}),(!x||u.some(P=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(X=>X==P)))&&(R.authScenario==Gr.intranet||R.authScenario==Gr.intranetAuthOnly)&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Require login for wp-content/uploads"})," ",e.jsx(de,{info:{title:"Require login for the Media Folder",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/229-require-login-for-the-wordpress-media-folder"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:u,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsxs(U,{tokens:{childrenGap:10},children:[e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},style:{height:"30px"},children:[e.jsx(Mn,{styles:{root:{marginBottom:"0px",marginRight:"10px"}},checked:R.blockDirectMediaAccess,onChange:(P,X)=>{H({...R,blockDirectMediaAccess:X}),Y("blockDirectMediaAccess")}}),N==="blockDirectMediaAccess"&&e.jsx(Oe,{size:Te.small})]}),A&&e.jsx("div",{style:{color:"#dc3545",maxWidth:"400px"},children:A})]})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Pages freed from authentication"})," ",e.jsx(de,{info:{title:"Pages freed from authentication",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/37-pages-blacklist"}}})]})}),e.jsx("td",{children:e.jsx(Ws,{list:R.pagesBlacklist,onListChanged:P=>H({...R,pagesBlacklist:P}),isValid:new RegExp(/^((?!http|\/wp-admin|wp-admin))/i),errorMessage:"A Pages Blacklist entry cannot start with http or (/)wp-admin",placeholder:"e.g. /wp-json/wp/v2/posts"})})]}),(!x||t)&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"IP addresses freed from authentication"})," ",e.jsx(de,{info:{title:"IP addresses freed from authentication",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/220-ip-adresses-freed-from-authentication"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:u,targets:[l.wpo365Essentials,l.wpo365Customers,l.wpo365Integrate,l.wpo365Intranet5y,l.wpo365LoginIntranet,l.wpo365LoginPremium,l.wpo365LoginProfessional,l.wpo365Pro,l.wpo365RolesAccess,l.wpo365Scim,l.wpo365Sync5y],children:e.jsx(Ws,{list:R.skipIps,onListChanged:P=>H({...R,skipIps:P}),placeholder:"e.g. 69.89.31.225",isValid:IF(),errorMessage:"You must enter a valid IPv4 or IPv6 address"})})})]}),(!x||u.some(P=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(X=>X==P)))&&(R.authScenario==Gr.internet||R.authScenario==Gr.internetAuthOnly)&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Private pages"})," ",e.jsx(de,{info:{title:"Private Pages",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/38-private-pages"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:u,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx(Ws,{list:R.privatePages,onListChanged:P=>H({...R,privatePages:P}),placeholder:"e.g. https://www.mycompany.com/private-page/",isValid:new RegExp(/^(http|https):\/\//i),errorMessage:"Each private page must start with http.",onAdd:P=>(B(!1,()=>!1,"Deprecated",`This feature is no longer supported. Please use the <strong>Private page</strong> functionality that is provided by the <strong>Audiences</strong> feature. You can configure <strong>Audiences</strong> on the plugin's <a href="#userRegistration">User registration</a> configuration page.`),!1)})})})]}),(!x||u.some(P=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(X=>X==P)))&&(R.authScenario==Gr.intranet||R.authScenario==Gr.intranetAuthOnly)&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Public homepage"})," ",e.jsx(de,{info:{title:"Public homepage",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/42-public-homepage"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:u,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(P,X)=>H({...R,publicHomepage:X}),checked:R.publicHomepage})})})})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Roles + Access"})})}),(!x||u.some(P=>[l.wpo365RolesAccess,l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(X=>X==P)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Allowed / Blocked (login) domains"})," ",e.jsx(de,{info:{title:"Allowed / Blocked (login) domains",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/43-domain-whitelist"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:u,targets:[l.wpo365RolesAccess,l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsxs(U,{horizontalAlign:"start",tokens:{childrenGap:10},children:[e.jsx(Mn,{styles:{root:{marginBottom:"0px",marginRight:"10px"}},checked:R.domainBlockedList,onChange:(P,X)=>{H({...R,domainBlockedList:X}),Y("allowBlockDomains")},inlineLabel:!0,label:`Listed domains will be ${R.domainBlockedList?"blocked from":"allowed to"} login`}),e.jsx(Ws,{list:R.domainWhitelist,onListChanged:P=>H({...R,domainWhitelist:P}),placeholder:"e.g. mycompany.com",isValid:new RegExp(/^(?!http)/i),errorMessage:"A Domain Whitelist entry cannot start with http"})]})})})]}),(!x||u.some(P=>[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers].some(X=>X==P)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Allowed Entra ID Groups"}),e.jsx(de,{info:{title:"Allowed Entra ID Groups",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/40-restrict-access-to-members-of-specific-azure-ad-groups"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:u,targets:[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],children:e.jsx(Ws,{list:R.groupsWhitelist,onListChanged:P=>H({...R,groupsWhitelist:P}),placeholder:"e.g. 8f7b8a33-f550-4197-80ea-5617865ac2cb",isValid:new RegExp(/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i),errorMessage:"Entra ID Group ID must be a valid GUID"})})})]}),(!x||u.some(P=>[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers].some(X=>X==P)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Retrieve all Entra ID + M365 groups"}),e.jsx(de,{info:{title:"Retrieve all group memberships",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/93-all-group-memberships"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:u,targets:[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(P,X)=>H({...R,allGroupMemberships:X}),checked:R.allGroupMemberships})})})})]}),(!x||u.some(P=>[l.wpo365Avatar,l.wpo365Customers,l.wpo365CustomFields,l.wpo365Essentials,l.wpo365Integrate,l.wpo365Intranet5y,l.wpo365LoginIntranet,l.wpo365LoginPlus,l.wpo365LoginPremium,l.wpo365LoginProfessional,l.wpo365Mail,l.wpo365Pro,l.wpo365RolesAccess,l.wpo365Scim,l.wpo365Sync5y].some(X=>X==P)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Default role (main site)"}),e.jsx(de,{info:{title:"Default role main site",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/52-default-role-main-site"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:u,targets:[l.wpo365Avatar,l.wpo365Customers,l.wpo365Essentials,l.wpo365Integrate,l.wpo365Intranet5y,l.wpo365LoginIntranet,l.wpo365LoginPlus,l.wpo365LoginPremium,l.wpo365LoginProfessional,l.wpo365Mail,l.wpo365Pro,l.wpo365RolesAccess,l.wpo365Scim,l.wpo365Sync5y,l.wpo365CustomFields],children:e.jsx(qe,{options:[{key:"select",text:"Select",itemType:Rt.Header}].concat(k.map((P,X)=>{const $=P.toLocaleLowerCase();return{key:$,text:$,itemType:Rt.Normal}})),selectedKey:R.newUsrDefaultRole,onChange:(P,X)=>H({...R,newUsrDefaultRole:X.key}),placeholder:"e.g. author",style:{maxWidth:"400px"}})})})]}),h&&(h=="wpmuShared"||h=="wpmuDedicated")&&(!x||u.some(P=>[l.wpo365RolesAccess,l.wpo365LoginPlus,l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Mail].some(X=>X==P)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Default role (wpmu sub site)"}),e.jsx(de,{info:{title:"Default role sub site",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/53-default-role-sub-site"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:u,targets:[l.wpo365RolesAccess,l.wpo365LoginPlus,l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx(qe,{options:[{key:"select",text:"Select",itemType:Rt.Header}].concat(k.map((P,X)=>{const $=P.toLocaleLowerCase();return{key:$,text:$,itemType:Rt.Normal}})),selectedKey:R.muNewUsrDefaultRole,onChange:(P,X)=>H({...R,muNewUsrDefaultRole:X.key}),placeholder:"e.g. subscriber",style:{maxWidth:"400px"}})})})]}),R.replaceOrUpdateUserRoles!="skip"&&(!x||u.some(P=>[l.wpo365LoginPlus,l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Scim,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers].some(X=>X==P)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Default role as fallback"}),e.jsx(de,{info:{title:"Default role as fallback",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/39-map-between-azure-ad-groups-and-wordpress-roles"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:u,targets:[l.wpo365LoginPlus,l.wpo365RolesAccess,l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Scim,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(P,X)=>H({...R,defaultRoleAsFallback:X}),checked:R.defaultRoleAsFallback})})})})]}),(!x||u.some(P=>[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Scim,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers].some(X=>X==P)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Update administrator accounts"}),e.jsx(de,{info:{title:"Update administrator accounts",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/132-update-administrator-accounts"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:u,targets:[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Scim,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(P,X)=>H({...R,updateAdmins:X}),checked:R.updateAdmins})})})})]}),(!x||u.some(P=>[l.wpo365LoginPlus,l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Scim,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers].some(X=>X==P)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"WP role(s) update scenario"}),e.jsx(de,{info:{title:"WP role(s) update scenario",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/39-map-between-azure-ad-groups-and-wordpress-roles"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:u,targets:[l.wpo365LoginPlus,l.wpo365RolesAccess,l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Scim,l.wpo365Integrate,l.wpo365Pro],children:e.jsx(qe,{options:[{key:"select",text:"Select",itemType:Rt.Header},{key:"add",text:"Add"},{key:"replace",text:"Replace"},{key:"skip",text:"Skip"}],selectedKey:R.replaceOrUpdateUserRoles,onChange:(P,X)=>H({...R,replaceOrUpdateUserRoles:X.key}),style:{maxWidth:"400px"}})})})]}),R.replaceOrUpdateUserRoles!="skip"&&e.jsxs(e.Fragment,{children:[h==="wpmuShared"&&(!x||u.some(P=>[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Scim,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers].some(X=>X==P)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Synchronize WP role(s) across all sub sites"}),e.jsx(de,{info:{title:"Synchronize WP role(s) across all subsites",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/230-synchronize-wp-roles-across-all-sub-sites"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:u,targets:[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Scim,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(P,X)=>H({...R,replaceOrUpdateWpmuUserRoles:X}),checked:R.replaceOrUpdateWpmuUserRoles})})})})]}),(!x||u.some(P=>[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers].some(X=>X==P)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Entra ID Group to WP Role mappings"}),e.jsx(de,{info:{title:"Entra ID Group to WP Role mappings",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/39-map-between-azure-ad-groups-and-wordpress-roles"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:u,targets:[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],children:e.jsx(yi,{placeholder:"e.g. 8f7b8a33-f550-4197-80ea-5617865ac2cb",choice:k,choicePlaceholder:"Select a WP role",list:cs(R.groupsXRoles),onListChanged:P=>H({...R,groupsXRoles:cs(P)}),isValid:new RegExp(/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i),errorMessage:"Entra ID Group ID must be a valid GUID."})})})]}),h&&(h=="wpmuShared"||h=="wpmuDedicated")&&(!x||u.some(P=>[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers].some(X=>X==P)))&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Entra ID Group to Super Admin (WPMU) mappings"}),e.jsx(de,{info:{title:"Entra ID Group to Super Admin (WPMU) mappings",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/133-azure-ad-group-to-super-admin-wpmu-mappings"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:u,targets:[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],children:e.jsx(Ws,{list:R.muGroupsXSuperAdmins,onListChanged:P=>H({...R,muGroupsXSuperAdmins:P}),placeholder:"e.g. 8f7b8a33-f550-4197-80ea-5617865ac2cb",isValid:new RegExp(/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i),errorMessage:"Entra ID Group ID must be a valid GUID."})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Revoke Super Admin privileges"}),e.jsx(de,{info:{title:"Revoke Super Admin privileges",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/133-azure-ad-group-to-super-admin-wpmu-mappings"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:u,targets:[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],children:e.jsx(ce,{onChange:(P,X)=>H({...R,muRevokeSuperAdmin:X}),checked:R.muRevokeSuperAdmin})})})]})]}),(!x||u.some(P=>[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers].some(X=>X==P)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Mappings to assign WP role(s) based on user claims / properties"}),e.jsx(de,{info:{title:"Mappings to assign WP role(s) based on user claims / properties",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/106-map-between-azure-ad-user-properties-and-wordpress-roles"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:u,targets:[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],children:e.jsx(yi,{placeholder:"propertyName:value e.g. department:Communications",choice:k,choicePlaceholder:"Select a WP role",list:cs(R.customFieldsXRoles),onListChanged:P=>H({...R,customFieldsXRoles:cs(P)}),isValid:new RegExp(/(.|\s)*\S(.|\s)*/i),errorMessage:"Custom fields must contain a property and its value, separated by a semicolon"})})})]}),(!x||u.some(P=>[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers].some(X=>X==P)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"App Role to WP Role mappings"}),e.jsx(de,{info:{title:"App Role to WP Role mappings",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/213-map-between-app-roles-and-wordpress-roles"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:u,targets:[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],children:e.jsx(yi,{placeholder:'App role (value) e.g. "author"',choice:k,choicePlaceholder:"Select a WP role",list:cs(R.appRolesXWpRoles),onListChanged:P=>H({...R,appRolesXWpRoles:cs(P)}),isValid:new RegExp(/^[a-zA-Z0-9_.-\s]{1,}$/i),errorMessage:"Only alphanumeric characters are allowed for the app role name"})})})]}),(!x||u.some(P=>[l.wpo365Groups,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365RolesAccess,l.wpo365Customers].some(X=>X==P)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Entra ID Group to (itthinx) Group mappings"}),e.jsx(de,{info:{title:"Entra ID Group to (itthinx) Group mappings",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/86-map-between-azure-ad-groups-and-itthinx-groups"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:u,targets:[l.wpo365Groups,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365RolesAccess,l.wpo365Customers],children:e.jsx(yi,{choice:b,choicePlaceholder:"Select a Group",list:cs(R.groupsXGroupsGroups),onListChanged:P=>H({...R,groupsXGroupsGroups:cs(P)}),isValid:new RegExp(/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i),errorMessage:"Entra ID Group ID must be a valid GUID",placeholder:"e.g. 8f7b8a33-f550-4197-80ea-5617865ac2cb"})})})]}),(!x||u.some(P=>[l.wpo365Groups,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365RolesAccess,l.wpo365Customers].some(X=>X==P)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Entra ID user property to (itthinx) Group mappings"}),e.jsx(de,{info:{title:"Entra ID User property to (itthinx) Group mappings",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/107-map-between-azure-ad-user-properties-and-itthinx-groups"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:u,targets:[l.wpo365Groups,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365RolesAccess,l.wpo365Customers],children:e.jsx(yi,{choice:b,choicePlaceholder:"Select a Group",list:cs(R.customFieldsXItthinxGroups),onListChanged:P=>H({...R,customFieldsXItthinxGroups:cs(P)}),isValid:new RegExp(/^(\S+.*\S+:\S+.*\S+)$/i),errorMessage:"Custom fields must contain a property and its value, separated by a semicolon",placeholder:"propertyName:value e.g. department:Communications"})})})]}),(!x||u.some(P=>[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers].some(X=>X==P)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"(Domain) Role mappings"}),e.jsx(de,{info:{title:"(Domain) role mappings",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/76-map-between-domains-and-wordpress-roles"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:u,targets:[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],children:e.jsx(yi,{placeholder:"e.g. mydomain.com or my-tenant.onmicrosoft.com",choice:k,choicePlaceholder:"Select a WP role",list:cs(R.domainsXRoles),onListChanged:P=>H({...R,domainsXRoles:cs(P)}),isValid:new RegExp(/^(?!http)/i),errorMessage:"Domain cannot start with http"})})})]})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Audiences"})})}),(!x||u.some(P=>[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers].some(X=>X==P)))&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Enable audiences"}),e.jsx(de,{info:{title:"Audiences",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/139-audiences"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:u,targets:[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",style:{height:"30px"},children:[e.jsx(Mn,{styles:{root:{marginBottom:"0px",marginRight:"10px"}},checked:R.enableAudiences,onChange:(P,X)=>{H({...R,enableAudiences:X}),Y("enableAudiences")}}),N=="enableAudiences"&&e.jsx(Oe,{size:Te.small})]})})})]}),R.enableAudiences&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Audiences"}),e.jsx(de,{info:{title:"Audiences",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/139-audiences"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:u,targets:[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],children:e.jsx(LF,{titleIsValid:new RegExp(/^(?=.{0,20}$).*([a-zA-Z0-9]|[\s])$/),titleErrorMessage:"Max 20 characters, digits and spaces are allowed",titlePlaceholder:"Audience name e.g. Employees",list:R.audiences,onListChanged:P=>H({...R,audiences:P}),valueErrorMessage:"ID of an Entra Group must be a valid GUID",valueIsValid:new RegExp(/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i),valuePlaceholder:"e.g. 8f7b8a33-f550-4197-80ea-5617865ac2cb"})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Audience based restrictions for post types"}),e.jsx(de,{info:{title:"Audience based restrictions for post types",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/195-excluded-roles"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:u,targets:[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],children:e.jsx(Ht,{requiredVersions:[{addOn:l.wpo365RolesAccess,minVersion:24},{addOn:l.wpo365Customers,minVersion:24},{addOn:l.wpo365LoginPremium,minVersion:24},{addOn:l.wpo365Sync5y,minVersion:24},{addOn:l.wpo365LoginIntranet,minVersion:24},{addOn:l.wpo365Intranet5y,minVersion:24},{addOn:l.wpo365Integrate,minVersion:24},{addOn:l.wpo365Pro,minVersion:24}],children:e.jsx(Hx,{choicesA:R.audiences.map(P=>({key:P.key,option:P.title})),choicesAPlaceholder:"Select an Audience",prefixA:"[Audience] ",choicesB:C.map(P=>({key:P,option:P})),choicesBPlaceholder:"Select a post type",prefixB:"[Post type] ",list:R.audiencesXPostTypes,onListChanged:P=>H({...R,audiencesXPostTypes:P})})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Post types that require a logged-in user"})," ",e.jsx(de,{info:{title:"Post types that require a logged-in user",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/197-post-types-that-require-a-logged-in-user"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:u,targets:[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],children:e.jsx(Ht,{requiredVersions:[{addOn:l.wpo365RolesAccess,minVersion:24},{addOn:l.wpo365Customers,minVersion:24},{addOn:l.wpo365LoginPremium,minVersion:24},{addOn:l.wpo365Sync5y,minVersion:24},{addOn:l.wpo365LoginIntranet,minVersion:24},{addOn:l.wpo365Intranet5y,minVersion:24},{addOn:l.wpo365Integrate,minVersion:24},{addOn:l.wpo365Pro,minVersion:24}],children:e.jsx(Vc,{list:[...R.audiencesPrivatePostTypes],onListChanged:P=>H({...R,audiencesPrivatePostTypes:[...P]}),options:C,placeholder:"Select a post type"})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Response for visitors requesting a page that requires a logged-in user"}),e.jsx(de,{info:{title:"Response for visitors requesting a private page",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/197-post-types-that-require-a-logged-in-user"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:u,targets:[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],children:e.jsx(Ht,{requiredVersions:[{addOn:l.wpo365RolesAccess,minVersion:24},{addOn:l.wpo365Customers,minVersion:24},{addOn:l.wpo365LoginPremium,minVersion:24},{addOn:l.wpo365Sync5y,minVersion:24},{addOn:l.wpo365LoginIntranet,minVersion:24},{addOn:l.wpo365Intranet5y,minVersion:24},{addOn:l.wpo365Integrate,minVersion:24},{addOn:l.wpo365Pro,minVersion:24}],children:e.jsx(qe,{options:[{key:"notFound",text:"404 Not found",itemType:Rt.Normal},{key:"loginPage",text:"Redirect to login page",itemType:Rt.Normal},{key:"microsoft",text:"Redirect to Microsoft",itemType:Rt.Normal,disabled:g}],selectedKey:R.audiencesPrivatePageResponse,onChange:(P,X)=>H({...R,audiencesPrivatePageResponse:X.key}),placeholder:"Select response",style:{maxWidth:"400px"}})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Excluded roles"}),e.jsx(de,{info:{title:"Audiences",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/139-audiences"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:u,targets:[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],children:e.jsx(Ht,{requiredVersions:[{addOn:l.wpo365RolesAccess,minVersion:34},{addOn:l.wpo365LoginPremium,minVersion:34},{addOn:l.wpo365Sync5y,minVersion:34},{addOn:l.wpo365LoginIntranet,minVersion:34},{addOn:l.wpo365Intranet5y,minVersion:34},{addOn:l.wpo365Integrate,minVersion:34},{addOn:l.wpo365Pro,minVersion:34},{addOn:l.wpo365Customers,minVersion:34}],children:e.jsx(Hx,{choicesA:k.map(P=>({key:P,option:P})),choicesAPlaceholder:"Select role to exclude",prefixA:"[WP Role] ",choicesB:[{key:"any",option:"All Post Types"}].concat(C.map(P=>({key:P,option:P}))),choicesBPlaceholder:"Select a post type",prefixB:"[Post type] ",list:R.audiencesExcludedRoles.map(P=>{const X=P.split("|");return{key:X[0],value:X.length===1?"any":X[1]}}),onListChanged:P=>H({...R,audiencesExcludedRoles:P.map(X=>`${X.key}|${X.value}`)})})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Enable audiences for WP-REST"}),e.jsx(de,{info:{title:"Audiences",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/139-audiences"}}})]})}),e.jsx("td",{children:e.jsx(re,{extensions:u,targets:[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(P,X)=>H({...R,enableAudiencesRest:X}),checked:R.enableAudiencesRest})})})})]})]})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Configuration"})})}),e.jsxs("tr",{children:[e.jsx("th",{}),e.jsx("td",{children:e.jsxs("div",{className:j.wpo365WzColumnifier,children:[e.jsx(dt,{onClick:()=>Z(),style:{minWidth:"400px",maxWidth:"400px",minHeight:"30px",alignSelf:"start"},disabled:o!=="initial",children:"Save configuration"}),W==="OK"?e.jsx("p",{style:{color:"#378805"},children:"Configuration saved successfully."}):null]})})]})]}),L&&e.jsx(Bo,{onCancel:L.onCancel,onConfirm:L.onConfirm,onDismiss:L.onDismiss,title:L.title,subText:L.subText})]})},AF=o=>{const{env:{props:{licNotices:s}}}=D.useContext(Ye),{dismiss:n}=o,t=()=>{sessionStorage.setItem("wpo365HideLicenseNotice","hide"),n()},i=D.useMemo(()=>Xr(s,["No license notices found"]),[]),d=200,c=.02,[u,h]=D.useState(0);return D.useEffect(()=>{if(u<=1){const g=setInterval(()=>{h(c+u)},d);return()=>{clearInterval(g)}}}),e.jsx("div",{style:{background:"#f0f0f1"},children:e.jsxs(U,{tokens:{childrenGap:10},children:[e.jsx(Hb,{percentComplete:u}),Array.isArray(i)&&i.map(g=>e.jsx("div",{style:{background:"#ffffff",padding:"20px 40px",border:"1px solid #c3c4c7",margin:"20px 40px",borderLeftWidth:"4px",boxShadow:"0 1px 1px rgba(0,0,0,.04)",borderLeftColor:"#d63638",borderStyle:"solid"},children:e.jsx("p",{dangerouslySetInnerHTML:{__html:g}})})),e.jsx(U.Item,{align:"end",children:e.jsx(dt,{styles:{root:{marginRight:"40px",marginBottom:"20px"}},onClick:t,disabled:u<1,children:"Remind me later"})})]})})},PF=o=>{var s=document.createRange();s.selectNode(document.getElementById(o)),window.getSelection().removeAllRanges(),window.getSelection().addRange(s),document.execCommand("copy"),window.getSelection().removeAllRanges()},RF=o=>{const{env:{props:{wpoHealthMessages:s}}}=D.useContext(Ye),{refreshWpoHealthMessages:n}=o,t=D.useMemo(()=>Xr(s,[]),[s]);return D.useEffect(()=>{n()},[]),e.jsxs(U,{styles:{root:{marginTop:"25px"}},tokens:{childrenGap:10},children:[Array.isArray(t)&&t.map((i,d)=>e.jsxs(e.Fragment,{children:[d===0&&e.jsxs(U,{horizontal:!0,verticalAlign:"center",styles:{root:{padding:"20px",backgroundColor:"#448fd521"}},children:[e.jsx(U,{horizontalAlign:"stretch",styles:{root:{minWidth:"35px"}},children:e.jsx(ze,{styles:{root:{fontSize:"24px",color:"#0078d4"}},iconName:"Lightbulb"})}),e.jsxs("div",{children:[e.jsx("p",{children:"WPO365 has detected the following issues and recommends that you implement measures to resolve those issues."}),e.jsxs("p",{children:["Please check the"," ",e.jsx("a",{href:"https://docs.wpo365.com/",target:"_blank",children:"online documentation"})," ","or contact"," ",e.jsx("a",{href:"https://www.wpo365.com/contact/",target:"_blank",children:"WPO365 support"})," ","for help."]})]})]}),e.jsx(zb,{children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx("span",{children:i.now?i.now:"Date / time unknown"}),e.jsx(Ke,{onClick:()=>PF(`wpoHealthMessage_${d.toString()}`),iconProps:{iconName:"Copy"},styles:{root:{fontSize:"16px",color:"#0078d4"}}})]})}),e.jsx(U,{styles:{root:{width:"100%"}},tokens:{childrenGap:10},children:e.jsxs(U,{horizontal:!0,verticalAlign:"start",children:[e.jsx(ze,{styles:{root:{fontSize:"24px",color:"#cc0000",minWidth:"35px",marginTop:"7px"}},iconName:i.level=="ERROR"?"Error":i.level=="WARN"?"Warn":"Bug"}),e.jsx("div",{id:`wpoHealthMessage_${d.toString()}`,style:{fontSize:"13px"},dangerouslySetInnerHTML:{__html:i.body?i.body:"No further information"}})]})})]})),(!Array.isArray(t)||t.length===0)&&e.jsx("span",{children:"No WPO365 Health Messages found."})]})},FF=o=>{const{env:s,env:{props:{extensions:n}},settings:t,updateSettings:i}=D.useContext(Ye),d=c=>{const u={...t};u.hidePremiumOptions=c,Fe.updateSettings(s,u).then(h=>{h.success&&Fe.getSettings(s).then(g=>i(g))}).catch(h=>console.error(h))};return Array.isArray(n)&&e.jsx("div",{className:j.wpo365WzHidePremiumOptionsToggle,children:e.jsx(Mn,{styles:{root:{marginBottom:"0px"}},checked:!t.hidePremiumOptions,onText:"Premium options are visible",offText:"Premium options are hidden",onClick:()=>d(!t.hidePremiumOptions)})})},NF={gapSpace:0},OF={root:{display:"inline-block"}},YF=o=>o.saving?e.jsx(Oe,{size:Te.xSmall}):e.jsx(xn,{content:o.name,id:`${o.key}_id`,calloutProps:NF,styles:OF,children:e.jsx(Dn,{id:o.id,role:"menuitem","aria-label":o.name,styles:{root:{padding:"10px",background:"#ffffff"}},iconProps:{iconName:o.icon},onClick:o.onClick})}),WF=o=>e.jsx(Dn,{role:"menuitem",title:"More items",styles:{root:{padding:"10px"},menuIcon:{fontSize:"16px"}},menuIconProps:{iconName:"More"},menuProps:{items:o}}),BF=o=>{const{env:s,settings:n,updateSettings:t}=D.useContext(Ye),[i,d]=D.useState(window.location.hash.indexOf("#singleSignOn")>-1&&!n.hideDocTb),[c,u]=D.useState(!1),h=()=>{u(!0);const g={...n,hideDocTb:!0};Fe.updateSettings(s,g).then(w=>{if(w.success)Fe.getSettings(s).then(m=>{t(m),u(!1)}).catch(m=>{console.error(m),u(!1)});else throw"Updating settings failed"}).catch(w=>{console.error(w),u(!1)})};return D.useEffect(()=>{c&&d(!1)},[c]),e.jsxs(e.Fragment,{children:[e.jsx(ph,{"aria-label":"Support menu",role:"menubar",items:[{id:"btnWebsite",key:"website",icon:"Website",name:"Website",ariaLabel:"Website",onClick:()=>window.open("https://www.wpo365.com/")},{id:"btnContact",key:"contact",icon:"Feedback",name:"Ask a question",ariaLabel:"Ask a question",onClick:()=>window.open("https://www.wpo365.com/contact/")},{saving:c,id:"btnDocumentation",key:"documentation",icon:"Documentation",name:"Documentation",ariaLabel:"Documentation",onClick:()=>window.open("https://docs.wpo365.com/")},{id:"btnVideos",key:"videos",icon:"VideoSearch",name:"Videos",ariaLabel:"Videos",onClick:()=>window.open("https://www.youtube.com/@wpo365")},{id:"btnHistory",key:"history",icon:"FullHistory",name:"Change Log",ariaLabel:"Change Log",onClick:()=>window.open("https://www.wpo365.com/change-log/")},{id:"btnReview",key:"review",icon:"AddFavorite",name:"Review",ariaLabel:"Review",onClick:()=>window.open("https://wordpress.org/support/plugin/wpo365-login/reviews")},{id:"btnFollow",key:"follow",icon:"FollowUser",name:"LinkedIn",ariaLabel:"LinkedIn",onClick:()=>window.open("https://www.linkedin.com/company/downloads-by-van-wieren")}],onRenderOverflowButton:WF,onRenderItem:YF}),s.props.wpoHealthMessages=="false"&&i&&e.jsxs(TT,{calloutProps:{directionalHint:Ot.bottomCenter},closeButtonAriaLabel:"Close",hasCloseButton:!0,isWide:!0,headline:"Getting started",illustrationImage:{src:"https://www.wpo365.com/wp-content/uploads/2021/07/icon-128x128-1-128x128.png"},onDismiss:()=>d(!1),primaryButtonProps:{children:"Don't show again",onClick:h},target:"#btnDocumentation",children:["Make sure to visit"," ",e.jsx("a",{style:{color:"white"},href:"https://docs.wpo365.com/",target:"_blank",children:"https://docs.wpo365.com/"})," ","for the latest guides and support articles."]})]})},HF=o=>{const{isMsGraphMailer:s}=o,{env:{props:{extensions:n}},settings:t}=D.useContext(Ye),i=D.useMemo(()=>n.some(C=>[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365Customers,l.wpo365Integrate,l.wpo365Mail,l.wpo365Pro].some(k=>k==C)),[n]),d=D.useRef(null),[c,u]=D.useState(!1),[h,g]=D.useState(!1),[w,m]=D.useState(""),x=D.useCallback(C=>{C.preventDefault(),u(!1),g(!0)},[]),_=D.useCallback(C=>{C.preventDefault(),g(!1)},[]);D.useEffect(()=>{setTimeout(()=>u(!0),1e3)},[]);const v=Xx();D.useEffect(()=>{switch(v.pathname){case"/":m("DASHBOARD");break;case"/dashboard":m("DASHBOARD");break;case"/singleSignOn":m("SINGLE SIGN-ON");break;case"/userRegistration":m("USER REGISTRATION");break;case"/loginLogout":m("LOGIN / LOGOUT");break;case"/mail":m("MAIL");break;case"/userSync":m("USER SYNC");break;case"/apps":m("M*365 APPS");break;case"/cbsConfigurator":m("EMBED SHAREPOINT SEARCH");break;case"/listConfigurator":m("EMBED SHAREPOINT LIST");break;case"/edConfigurator":m("EMBED EMPLOYEE DIRECTORY");break;case"/pbiConfigurator":m("EMBED POWER BI");break;case"/calendarConfigurator":m("EMBED CALENDAR");break;case"/yammer":m("EMBED VIVA ENGAGE");break;case"/integration":m("INTEGRATION");break;case"/selfTest":m("PLUGIN SELF-TEST");break;case"/debug":m("DEBUG");break;case"/miscellaneous":m("MISCELLANEOUS");break;case"/translations":m("TRANSLATIONS");break;case"/importExport":m("IMPORT / EXPORT");break;case"/mailLogViewer":m("MAIL LOG VIEWER");break;case"/rolesAccess":m("ROLES + ACCESS");break;case"/insights":m("INSIGHTS");break;default:m("UNKNOWN")}},[v]);const b=D.useMemo(()=>s?[{key:Me.dashboard,text:"Dashboard",onClick:()=>{location.hash=`/${Me.dashboard}`},itemProps:{styles:{label:{fontWeight:600}}}},{key:"divider_before_features",itemType:tr.Divider},{key:"wpo365Mail",text:"Mail",subMenuProps:{items:[{key:Me.mail,text:"Mail",onClick:()=>{location.hash=`/${Me.mail}`}},{key:Me.mailLogViewer,text:"Mail Log Viewer",onClick:()=>{location.hash=`/${Me.mailLogViewer}`},disabled:!i||!t.useGraphMailer||!t.mailLog}]}},{key:"divider_after_features",itemType:tr.Divider},{key:Me.debug,text:"Debug",onClick:()=>{location.hash=`/${Me.debug}`}},{key:Me.miscellaneous,text:"Miscellaneous",onClick:()=>{location.hash=`/${Me.miscellaneous}`}},{key:Me.importExport,text:"Import / Export",onClick:()=>{location.hash=`/${Me.importExport}`}}]:[{key:Me.dashboard,text:"Dashboard",onClick:()=>{location.hash=`/${Me.dashboard}`},itemProps:{styles:{label:{fontWeight:600}}}},{key:"divider_before_features",itemType:tr.Divider},{key:Me.singleSignOn,text:"Single Sign-on",onClick:()=>{location.hash=`/${Me.singleSignOn}`}},{key:"wpo365Mail",text:"Mail",subMenuProps:{items:[{key:Me.mail,text:"Mail",onClick:()=>{location.hash=`/${Me.mail}`}},{key:Me.mailLogViewer,text:"Mail Log Viewer",onClick:()=>{location.hash=`/${Me.mailLogViewer}`},disabled:!i||!t.useGraphMailer||!t.mailLog}]}},{key:Me.apps,text:"M*365 Apps",onClick:()=>{location.hash=`/${Me.apps}`},itemProps:{styles:{label:{fontWeight:600,color:"#0078d4"}}}},{key:Me.rolesAccess,text:"Roles + Access",onClick:()=>{location.hash=`/${Me.rolesAccess}`}},{key:Me.userSync,text:"User Sync",onClick:()=>{location.hash=`/${Me.userSync}`}},{key:Me.userRegistration,text:"User Registration",onClick:()=>{location.hash=`/${Me.userRegistration}`}},{key:Me.loginLogout,text:"Login / Logout",onClick:()=>{location.hash=`/${Me.loginLogout}`}},{key:Me.integration,text:"Integration",onClick:()=>{location.hash=`/${Me.integration}`}},{key:Me.selfTest,text:"Plugin self-test",onClick:()=>{location.hash=`/${Me.selfTest}`},itemProps:{styles:{label:{fontWeight:600}}}},{key:"divider_after_features",itemType:tr.Divider},{key:Me.debug,text:"Debug",onClick:()=>{location.hash=`/${Me.debug}`}},{key:Me.miscellaneous,text:"Miscellaneous",onClick:()=>{location.hash=`/${Me.miscellaneous}`}},{key:Me.importExport,text:"Import / Export",onClick:()=>{location.hash=`/${Me.importExport}`}},{key:Me.translations,text:"Translations",onClick:()=>{location.hash=`/${Me.translations}`}}],[n,t]);return e.jsxs(e.Fragment,{children:[e.jsxs(U,{horizontal:!0,verticalAlign:"center",horizontalAlign:"space-between",tokens:{childrenGap:15},children:[e.jsxs(U,{horizontal:!0,verticalAlign:"center",children:[e.jsx("div",{ref:d,style:{paddingLeft:"20px"},children:e.jsx(Ke,{iconProps:{iconName:h?"Cancel":"GlobalNavButton"},onClick:h?_:x,styles:{icon:{fontSize:"28px"},rootHovered:{backgroundColor:"#fafafa"},rootPressed:{backgroundColor:"#fafafa"}}})}),e.jsx("div",{className:j.wpo365WzPageTitle,children:e.jsx("h3",{children:`WPO365 | ${w}`})})]}),e.jsx(FF,{}),e.jsx(BF,{})]}),e.jsx(ky,{items:b,hidden:!h,target:d,onItemClick:_,onDismiss:_}),c&&e.jsx(z6,{target:d.current,positioningContainerProps:{directionalHint:Ot.bottomCenter,doNotLayer:!1}})]})};tI();const zF=o=>{const{env:s,env:{props:{addOns:n,licNotices:t,wpConfigAad:i,wpConfigMultiple:d,wpConfigOverrides:c,wpmu:u,wpoHealthMessages:h},nonce:g,wpAjaxAdminUrl:w},appStatus:m,lastErrorMessage:x,settings:_,showWpoHealthMessages:v,setShowWpoHealthMessages:b,updateAppStatus:C,updateLastErrorMessage:k,wpoHealthMessagesDismissed:L,wpoHealthMessagesUpdated:T}=D.useContext(Ye),[N,Y]=D.useState(""),[A,I]=D.useState(we.initial),[R,H]=D.useState(!1),W=()=>{Y(""),I(we.initial),H(t&&!!Xr(t,!1)&&!sessionStorage.getItem("wpo365HideLicenseNotice")),b(h&&!!Xr(h,!1))};D.useEffect(()=>{_&&W()},[_]);const K=async()=>{I(we.saving);const Q=new FormData;Q.append("action","wpo365_dismiss_wpo_health_messages"),Q.append("nonce",g),Q.append("ina",window.wpo365.wizard.props.ina);let B;try{B=await Ee.post(w,Q)}catch(P){Y(P.message);return}if(B.status>=200&&B.status<300&&B.data&&B.data.status){if(B.data.status=="OK"){I(we.initial),b(!1),L();return}Y(B.data.message);return}Y(`Error occured (HTTP status ${B.status})`)},Z=async()=>{I(we.saving);const Q=new FormData;Q.append("action","wpo365_get_wpo_health_messages"),Q.append("nonce",g),Q.append("ina",window.wpo365.wizard.props.ina);let B;try{B=await Ee.post(w,Q)}catch(P){Y(P.message);return}if(B.status>=200&&B.status<300&&B.data&&B.data.status){if(B.data.status=="OK"){I(we.initial),B.data.result&&T(B.data.result);return}Y(B.data.message);return}Y(`Error occured (HTTP status ${B.status})`)};return e.jsxs(e.Fragment,{children:[window.location.href.indexOf("/network/")>-1&&e.jsx("div",{style:{width:"calc(100% - 35px)",margin:"15px 15px 15px 0px"},children:e.jsx(Jr,{messageBarType:Be.warning,isMultiline:!1,onDismiss:()=>{},dismissButtonAriaLabel:"Close",children:"You are editing the central WPO365 network configuration."})}),u=="wpmuDedicated"&&window.location.href.indexOf("/network/")==-1&&e.jsx("div",{style:{width:"calc(100% - 35px)",margin:"15px 15px 15px 0px"},children:e.jsxs(Jr,{messageBarType:Be.warning,isMultiline:!1,onDismiss:()=>{},dismissButtonAriaLabel:"Close",children:["You are editing the WPO365 configuration for a subsite. Go to the ",e.jsx("a",{href:"#importExport",children:"Import / Export"})," tab to replace it with a copy of the central WPO365 configuration."]})}),Object.keys(n).length>0&&i&&e.jsx("div",{style:{width:"calc(100% - 35px)",margin:"15px 15px 15px 0px"},children:e.jsxs(Jr,{messageBarType:Be.warning,isMultiline:!1,onDismiss:()=>{},dismissButtonAriaLabel:"Close",children:["Entra ID options defined in WP-config.php will be used instead. See"," ",e.jsx("a",{href:"https://tutorials.wpo365.com/courses/wp-config-php-single-identity-provider-idp/",target:"_blank",children:"online documentation"})," ","for details."]})}),Object.keys(n).length>0&&c&&e.jsx("div",{style:{width:"calc(100% - 35px)",margin:"15px 15px 15px 0px"},children:e.jsxs(Jr,{messageBarType:Be.warning,isMultiline:!1,onDismiss:()=>{},dismissButtonAriaLabel:"Close",children:["WPO365 non-AAD options defined in WP-config.php will be used instead. See"," ",e.jsx("a",{href:"https://tutorials.wpo365.com/courses/wp-config-php-configuration-w-o-idps/",target:"_blank",children:"online documentation"})," ","for details."]})}),Object.keys(n).length>0&&d&&e.jsx("div",{style:{width:"calc(100% - 35px)",margin:"15px 15px 15px 0px"},children:e.jsxs(Jr,{messageBarType:Be.warning,isMultiline:!1,onDismiss:()=>{},dismissButtonAriaLabel:"Close",children:["Multiple Identity Providers defined in WP-config.php will be used instead. See"," ",e.jsx("a",{href:"https://tutorials.wpo365.com/courses/wp-config-php-multiple-identity-providers-idps/",target:"_blank",children:"online documentation"})," ","for details."]})}),e.jsxs(U,{tokens:{childrenGap:15},children:[e.jsxs("div",{className:j.wpo365WzPage,children:[e.jsx(HF,{isMsGraphMailer:o.isMsGraphMailer}),e.jsx(oC,{})]}),e.jsxs(Xp,{hidden:m!="working",dialogContentProps:{type:Hs.normal,title:"Working ..."},modalProps:{isBlocking:!0,styles:{main:{maxWidth:450}}},children:[e.jsx("br",{}),e.jsx(Oe,{size:Te.medium})]}),e.jsx(Xp,{hidden:m!="errors",onDismiss:()=>{C("initial"),k(null)},dialogContentProps:{type:Hs.normal,title:"Error",subText:x},modalProps:{isBlocking:!0,styles:{main:{maxWidth:450}}},children:e.jsx(wg,{children:e.jsx(dt,{onClick:()=>{C("initial"),k(null)},text:"Close"})})}),e.jsx(Zc,{isOpen:R,isBlocking:!0,styles:{main:{width:"50vw"}},children:e.jsx(AF,{dismiss:()=>H(!1)})})]}),e.jsx(vg,{type:In.medium,isOpen:v,onDismiss:()=>b(!1),headerText:"WPO365 Health Messages",closeButtonAriaLabel:"Close",onRenderFooterContent:()=>e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx(dt,{onClick:()=>b(!1),children:"Close"}),e.jsx(et,{onClick:K,children:"Dismiss all"}),A==we.saving&&e.jsx(Oe,{size:Te.medium})]}),isFooterAtBottom:!0,children:e.jsx(RF,{refreshWpoHealthMessages:()=>Z(),dismiss:()=>b(!1)})})]})},UF=[{key:"following",text:"Following"},{key:"my_feed",text:"My feed"}],VF=o=>{const{env:s}=D.useContext(Ye),n={feed:"following",hideImages:!1,hidePaging:!1,pageSize:3,templateUrl:Ao("wizard.js").replace("wpo365-login/apps/dist/wizard.js",`wpo365-${s.props.extensions.some(g=>g==l.wpo365LoginIntranet)?"login-intranet":s.props.extensions.some(g=>g==l.wpo365Intranet5y)?"intranet-5y":s.props.extensions.some(g=>g==l.wpo365Integrate)?"integrate":"apps"}/apps/dist/templates/yammer.feed.template.html`)},[t,i]=D.useState(n),d=D.useMemo(()=>Ao("wizard.js").replace("wpo365-login/apps/dist/wizard.js",`wpo365-${s.props.extensions.some(g=>g==l.wpo365LoginIntranet)?"login-intranet":s.props.extensions.some(g=>g==l.wpo365Intranet5y)?"intranet-5y":s.props.extensions.some(g=>g==l.wpo365Integrate)?"integrate":"apps"}/apps/dist/yammer.js`),[]),[c,u]=D.useState(he.capCopyShortcodeButton),h=()=>{const g=document.querySelector("#pintraYammerShortCode");navigator.clipboard.writeText(g.value).then(()=>{u(he.capCopyShortcodeButtonSuccess),setTimeout(()=>u(he.capCopyShortcodeButton),3e3)})};return e.jsx("div",{className:j.wpo365WzMain,children:e.jsxs("table",{className:j.wpo365WzTable,children:[e.jsxs("colgroup",{children:[e.jsx("col",{width:"50%"}),e.jsx("col",{width:"50%"})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Viva Engage / Yammer shortcode generator"})})}),e.jsx("tr",{children:e.jsxs("td",{colSpan:2,children:[e.jsx("p",{children:"To create the shortcode you can use this generator. Simply configure the options and copy the shortcode to the clipboard. Then all you need to do is to add the shortcode to a page and you're ready!"}),e.jsxs("p",{children:["Please consult the online documentation"," ",e.jsx("a",{href:"https://www.wpo365.com/yammer-for-wordpress/",target:"_blank",children:"https://www.wpo365.com/yammer-for-wordpress/"})," ","for instructions on how to generate a shortcode and place it on any WordPress post or page."]}),s.props.wpConfigMultiple&&e.jsx("p",{style:{width:"50%"},children:e.jsx(Jr,{messageBarType:Be.blocked,isMultiline:!0,truncated:!0,overflowButtonAriaLabel:"Read more",children:"It appears that you have configured multiple Identity Providers. Embedding content from a Microsoft 365 service for the logged-in user may not work as expected."})})]})}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Feed"})})}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{children:"Feed type"})}),e.jsx("td",{style:{verticalAlign:"middle"},children:e.jsx(_g,{defaultSelectedKey:t.feed,options:UF,onChange:(g,w)=>i({...t,feed:w.key})})})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Template"})})}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{children:"Template"})}),e.jsx("td",{style:{verticalAlign:"middle"},children:e.jsx(fe,{bound:!1,isValid:(g,w)=>!0,onValid:g=>i({...t,templateUrl:g}),value:t.templateUrl})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{children:"Results per page"})}),e.jsx("td",{style:{verticalAlign:"middle"},children:e.jsx(fe,{bound:!1,isValid:(g,w)=>{const m=parseInt(w);return w===m.toString()&&m>0&&m<=20},onValid:g=>i({...t,pageSize:parseInt(g)}),errorMessage:"Value must be number greater than 0 and smaller or equal than 20",value:String(t.pageSize)})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{children:"Hide paging"})}),e.jsx("td",{style:{verticalAlign:"middle"},children:e.jsx(ce,{checked:t.hidePaging,onChange:(g,w)=>i({...t,hidePaging:w})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{children:"Hide images"})}),e.jsx("td",{style:{verticalAlign:"middle"},children:e.jsx(ce,{checked:t.hideImages,onChange:(g,w)=>i({...t,hideImages:w})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{children:"Shortcode"})}),e.jsx("td",{style:{verticalAlign:"middle"},children:e.jsx("textarea",{id:"pintraYammerShortCode",className:`${j.wpo365WzTextArea}`,readOnly:!0,value:`[pintra props="templateUrl,${t.templateUrl};feed,${t.feed};pageSize,${t.pageSize};hidePaging,${t.hidePaging};hideImages,${t.hideImages}" script_url="${d}"]`})})]}),e.jsxs("tr",{children:[e.jsx("th",{}),e.jsx("td",{children:e.jsx(et,{onClick:h,iconProps:{iconName:"Copy"},style:{minWidth:"400px",minHeight:"30px"},children:c})})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx(Ho,{})})})]})})},GF=o=>{const s=[{path:"",element:e.jsx(zF,{isMsGraphMailer:!1}),children:[{path:"",element:e.jsx(_f,{isGraphMailer:!1})},{path:"/",element:e.jsx(_f,{isGraphMailer:!1})},{path:`/${Me.dashboard}`,element:e.jsx(_f,{isGraphMailer:!1})},{path:`/${Me.insights}`,element:e.jsx(_f,{isGraphMailer:!1,showInsights:!0})},{path:`/${Me.singleSignOn}`,element:e.jsx(ZA,{})},{path:`/${Me.userRegistration}`,element:e.jsx(VP,{})},{path:`/${Me.loginLogout}`,element:e.jsx(PP,{})},{path:`/${Me.mail}`,element:e.jsx(HP,{})},{path:`/${Me.mailLogViewer}`,element:e.jsx(WP,{})},{path:`/${Me.userSync}`,element:e.jsx(xR,{})},{path:`/${Me.integration}`,element:e.jsx(IP,{})},{path:`/${Me.apps}`,element:e.jsx(xF,{})},{path:`/${Me.selfTest}`,element:e.jsx(zP,{})},{path:`/${Me.debug}`,element:e.jsx(MF,{})},{path:`/${Me.translations}`,element:e.jsx(UP,{})},{path:`/${Me.importExport}`,element:e.jsx(jP,{})},{path:`/${Me.cbsConfigurator}`,element:e.jsx(QA,{})},{path:`/${Me.edConfigurator}`,element:e.jsx(kP,{})},{path:`/${Me.yammer}`,element:e.jsx(VF,{})},{path:`/${Me.miscellaneous}`,element:e.jsx(jF,{})},{path:`/${Me.rolesAccess}`,element:e.jsx(TF,{})}]}];return $S(s)},mN=o=>{const s={nonce:window.wpo365.wizard.nonce,wpAjaxAdminUrl:window.wpo365.wizard.wpAjaxAdminUrl,props:{...window.wpo365.wizard.props,addOns:Xr(window.wpo365.wizard.props.addOns,{})}};return e.jsxs(WA,{env:s,children:[e.jsx(BA,{env:s,children:e.jsx(aC,{children:e.jsx(GF,{})})}),e.jsx(Rk,{})]})};export{jn as A,Zr as B,ho as M,D as R,U as S,mN as W,Iy as a,pN as b,$F as c,Ci as d,gr as e,zx as g,e as j,xS as r,j as s,hN as t};
//# sourceMappingURL=wizard-chunk-Bx7vf2wq.js.map
