define("50f380a6-e5b2-4257-afa1-6d3a1c0ca358_0.0.1",["@microsoft/sp-property-pane","ReactNewsWebpartStrings","@microsoft/sp-lodash-subset","@microsoft/sp-core-library","@microsoft/sp-webpart-base","react","react-dom","@microsoft/sp-http","PropertyControlStrings"],function(e,t,n,o,r,i,a,s,l){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="GlSv")}({"/A2d":function(e,t,n){"use strict";var o=this&&this.__awaiter||function(e,t,n,o){return new(n||(n=Promise))(function(r,i){function a(e){try{l(o.next(e))}catch(e){i(e)}}function s(e){try{l(o.throw(e))}catch(e){i(e)}}function l(e){e.done?r(e.value):new n(function(t){t(e.value)}).then(a,s)}l((o=o.apply(e,t||[])).next())})},r=this&&this.__generator||function(e,t){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]0&&(n=60*this.defaultTimeoutMinutes),t=l(new Date,"second",n)}return y({pnp:1,expiration:t,value:e})},e.prototype.cacheExpirationHandler=function(){var e=this;this.deleteExpired().then(function(t){setTimeout(s(e,e.cacheExpirationHandler),P.cacheExpirationIntervalMilliseconds)}).catch(function(e){console.error(e)})},e}(),O=function(){function e(e){void 0===e&&(e=new Map),this._store=e}return Object.defineProperty(e.prototype,"length",{get:function(){return this._store.size},enumerable:!0,configurable:!0}),e.prototype.clear=function(){this._store.clear()},e.prototype.getItem=function(e){return this._store.get(e)},e.prototype.key=function(e){return Array.from(this._store)[e][0]},e.prototype.removeItem=function(e){this._store.delete(e)},e.prototype.setItem=function(e,t){this._store.set(e,t)},e}(),N=function(){function e(e,t){void 0===e&&(e=null),void 0===t&&(t=null),this._local=e,this._session=t}return Object.defineProperty(e.prototype,"local",{get:function(){return null===this._local&&(this._local=this.getStore("local")),this._local},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"session",{get:function(){return null===this._session&&(this._session=this.getStore("session")),this._session},enumerable:!0,configurable:!0}),e.prototype.getStore=function(e){return new k("local"===e?"undefined"==typeof localStorage?new O:localStorage:"undefined"==typeof sessionStorage?new O:sessionStorage)},e}()}).call(this,n("yLpj"))},"4Qvb":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var o={};function r(e,t){if("undefined"!=typeof window){var n=window.__packages__=window.__packages__||{};n[e]&&o[e]||(o[e]=t,(n[e]=n[e]||[]).push(t))}}},"5AgF":function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return l});var o,r=function(){return(r=Object.assign||function(e){for(var t,n=1,o=arguments.length;n0&&(void 0===(i=1)&&(i=3),3!==i&&2!==i||(u(s.registeredStyles),s.registeredStyles=[]),3!==i&&1!==i||(u(s.registeredThemableStyles),s.registeredThemableStyles=[]),r=[].concat.apply([],e),s.loadStyles?s.loadStyles(c(r).styleString,r):function(e){if("undefined"!=typeof document){var t=document.getElementsByTagName("head")[0],n=document.createElement("style"),o=c(e),r=o.styleString,i=o.themable;n.setAttribute("data-load-themed-styles","true"),a&&n.setAttribute("nonce",a),n.appendChild(document.createTextNode(r)),s.perf.count++,t.appendChild(n);var l=document.createEvent("HTMLEvents");l.initEvent("styleinsert",!0,!1),l.args={newStyle:n},document.dispatchEvent(l);var u={styleElement:n,themableStyle:e};i?s.registeredThemableStyles.push(u):s.registeredStyles.push(u)}}(r))}var r,i}()}function u(e){e.forEach(function(e){var t=e&&e.styleElement;t&&t.parentElement&&t.parentElement.removeChild(t)})}function c(e){var t=s.theme,n=!1;return{styleString:(e||[]).map(function(e){var o=e.theme;if(o){n=!0;var r=t?t[o]:void 0,i=e.defaultValue||"inherit";return t&&!r&&console,r||i}return e.rawString}).join(""),themable:n}}}).call(this,n("yLpj"))},"5UI3":function(e,t,n){"use strict";(function(e){n.d(t,"c",function(){return Xt}),n.d(t,"b",function(){return Ct}),n.d(t,"a",function(){return bt});var o=n("2m/F"),r=n("uQ29"),i=n("AAI4"),a=n("5UI3"),s=function(e,t){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function l(e,t){function n(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function u(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function c(e,t,n,o){return new(n||(n=Promise))(function(r,i){function a(e){try{l(o.next(e))}catch(e){i(e)}}function s(e){try{l(o.throw(e))}catch(e){i(e)}}function l(e){e.done?r(e.value):new n(function(t){t(e.value)}).then(a,s)}l((o=o.apply(e,t||[])).next())})}function d(e,t){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]-1?e.substr(0,t):e}function h(e){var t=[],n=["odata.type","odata.editLink","__metadata","odata.metadata"];return Object(o.j)(e,n[0])&&"SP.Web"===e[n[0]]?Object(o.j)(e,n[1])?t.push(e[n[1]]):Object(o.j)(e,n[2])&&t.push(e.__metadata.uri):Object(o.j)(e,n[3])&&Object(o.j)(e,n[1])?t.push(p(e[n[3]]),"_api",e[n[1]]):Object(o.j)(e,n[1])?t.push("_api",e[n[1]]):Object(o.j)(e,n[2])&&t.push(e.__metadata.uri),t.length<1?(r.a.write("No uri information found in ODataEntity parsing, chaining will fail for this object.",2),""):o.d.apply(void 0,t)}var f=function(e){function t(t){var n=e.call(this)||this;return n.factory=t,n.hydrate=function(e){var t=new n.factory(h(e),null);return Object(o.f)(t,e)},n}return l(t,e),t.prototype.parse=function(t){var n=this;return e.prototype.parse.call(this,t).then(function(e){var t=new n.factory(h(e),null);return Object(o.f)(t,e)})},t}(i.g);!function(e){function t(t){var n=e.call(this)||this;return n.factory=t,n.hydrate=function(e){return e.map(function(e){var t=new n.factory(h(e),null);return Object(o.f)(t,e)})},n}l(t,e),t.prototype.parse=function(t){var n=this;return e.prototype.parse.call(this,t).then(function(e){return e.map(function(e){var t=new n.factory(h(e),null);return Object(o.f)(t,e)})})}}(i.g);var m=new(function(){function e(){}return Object.defineProperty(e.prototype,"headers",{get:function(){var e=o.c.get("sp");return void 0!==e&&void 0!==e.headers?e.headers:{}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"baseUrl",{get:function(){var e=o.c.get("sp");return void 0!==e&&void 0!==e.baseUrl?e.baseUrl:void 0!==o.c.spfxContext&&null!==o.c.spfxContext?o.c.spfxContext.pageContext.web.absoluteUrl:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fetchClientFactory",{get:function(){var e=o.c.get("sp");return void 0!==e&&void 0!==e.fetchClientFactory?e.fetchClientFactory:function(){return new o.a}},enumerable:!0,configurable:!0}),e}()),g=function(){},y=new Map,v=function(){function e(e,t){void 0===t&&(t=y),this._httpClient=e,this._digests=t}return e.prototype.getDigest=function(e){var t=this,n=this._digests.get(e);if(void 0!==n&&new Date0)return t(Object(o.d)(n.substr(0,i),e))})}return t(e)})}function C(e){return{__metadata:{type:e}}}var w=function(e){function t(t,n){var r=e.call(this)||this;if(r._forceCaching=!1,"string"==typeof t)if(Object(o.m)(t)||t.lastIndexOf("/")<0)r._parentUrl=t,r._url=Object(o.d)(t,n);else if(t.lastIndexOf("/")>t.lastIndexOf("(")){var i=t.lastIndexOf("/");r._parentUrl=t.slice(0,i),n=Object(o.d)(t.slice(i),n),r._url=Object(o.d)(r._parentUrl,n)}else i=t.lastIndexOf("("),r._parentUrl=t.slice(0,i),r._url=Object(o.d)(t,n);else{r.extend(t,n);var a=t.query.get("@target");void 0!==a&&r.query.set("@target",a)}return r}return l(t,e),t.prototype.as=function(e){var t=new e(this._url,null);return Object(o.f)(t,this,!0)},t.prototype.toUrlAndQuery=function(){var e=new Map(this.query),t=this.toUrl().replace(/'!(@.*?)::(.*?)'/gi,function(t,n,o){return r.a.write("Rewriting aliased parameter from match "+t+" to label: "+n+" value: "+o,0),e.set(n,"'"+o+"'"),n});if(e.size>0){var n=t.indexOf("?")>-1?"&":"?";t+=""+n+Array.from(e).map(function(e){return e[0]+"="+e[1]}).join("&")}return t},t.prototype.select=function(){for(var e=[],t=0;t0&&this.query.set("$select",e.join(",")),this},t.prototype.expand=function(){for(var e=[],t=0;t0&&this.query.set("$expand",e.join(",")),this},t.prototype.getParent=function(e,t,n,o){void 0===t&&(t=this.parentUrl);var r=new e(t,n).configureFrom(this),i="@target";return this.query.has(i)&&r.query.set(i,this.query.get(i)),void 0!==o&&(r=r.inBatch(o)),r},t.prototype.clone=function(t,n,o){void 0===o&&(o=!0);var r=e.prototype._clone.call(this,new t(this,n),{includeBatch:o}),i="@target";return this.query.has(i)&&r.query.set(i,this.query.get(i)),r},t.prototype.toRequestContext=function(e,t,n,r){var i=this;void 0===t&&(t={});var a=this.hasBatch?this._batchDependency:function(){};return S(this.toUrlAndQuery()).then(function(s){return Object(o.p)(t,i._options),{batch:i.batch,batchDependency:a,cachingOptions:i._cachingOptions,clientFactory:function(){return new b},isBatched:i.hasBatch,isCached:i._forceCaching||i._useCaching&&/^get$/i.test(e),options:t,parser:n,pipeline:r,requestAbsoluteUrl:s,requestId:Object(o.h)(),verb:e}})},t}(i.h),T=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.filter=function(e){return this.query.set("$filter",e),this},t.prototype.orderBy=function(e,t){void 0===t&&(t=!0);var n="$orderby",o=this.query.has(n)?this.query.get(n).split(","):[];return o.push(e+" "+(t?"asc":"desc")),this.query.set(n,o.join(",")),this},t.prototype.skip=function(e){return this.query.set("$skip",e.toString()),this},t.prototype.top=function(e){return this.query.set("$top",e.toString()),this},t}(w),I=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype._update=function(e,t){var n=this;return function(r){return n.postCore({body:Object(o.n)(Object(o.f)(C(e),r)),headers:{"X-HTTP-Method":"MERGE"}}).then(function(e){return t(e,r)})}},t.prototype._delete=function(){return this.postCore({headers:{"X-HTTP-Method":"DELETE"}})},t.prototype._deleteWithETag=function(e){return void 0===e&&(e="*"),this.postCore({headers:{"IF-Match":e,"X-HTTP-Method":"DELETE"}})},t}(w);function E(e){return function(t){return function(t){function n(){for(var n=[],o=0;o1&&void 0!==n[1]?n[1]:e)||this}return l(n,t),n}(t)}}var x,P=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return l(t,e),n=t,t.prototype.getById=function(e){return new O(this,"getById("+e+")")},t.prototype.getByEmail=function(e){return new O(this,"getByEmail('"+e+"')")},t.prototype.getByLoginName=function(e){var t=new O(this);return t.concat("('!@v::"+encodeURIComponent(e)+"')"),t},t.prototype.removeById=function(e){return this.clone(n,"removeById("+e+")").postCore()},t.prototype.removeByLoginName=function(e){var t=this.clone(n,"removeByLoginName(@v)");return t.query.set("@v","'"+encodeURIComponent(e)+"'"),t.postCore()},t.prototype.add=function(e){var t=this;return this.clone(n,null).postCore({body:Object(o.n)(Object(o.f)(C("SP.User"),{LoginName:e}))}).then(function(){return t.getByLoginName(e)})},n=u([E("siteusers")],t)}(T),k=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),Object.defineProperty(t.prototype,"groups",{get:function(){return new $(this,"groups")},enumerable:!0,configurable:!0}),t}(I),O=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.update=t._update("SP.User",function(e){return{data:e,user:t}}),t.delete=t._delete,t}return l(t,e),t}(k),N=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),u([E("currentuser")],t)}(k);!function(e){e[e.None=0]="None",e[e.User=1]="User",e[e.DistributionList=2]="DistributionList",e[e.SecurityGroup=4]="SecurityGroup",e[e.SharePointGroup=8]="SharePointGroup",e[e.All=15]="All"}(x||(x={}));var R,D,M,F,L,A,B,j,U,W,H,G,z,K,q,V,Q,X,Y,J,Z,$=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return l(t,e),n=t,t.prototype.getById=function(e){var t=new ee(this);return t.concat("("+e+")"),t},t.prototype.add=function(e){var t=this,n=Object(o.n)(Object(o.f)(C("SP.Group"),e));return this.postCore({body:n}).then(function(e){return{data:e,group:t.getById(e.Id)}})},t.prototype.getByName=function(e){return new ee(this,"getByName('"+e+"')")},t.prototype.removeById=function(e){return this.clone(n,"removeById('"+e+"')").postCore()},t.prototype.removeByLoginName=function(e){return this.clone(n,"removeByLoginName('"+e+"')").postCore()},n=u([E("sitegroups")],t)}(T),ee=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.update=n._update("SP.Group",function(e,r){var i=n;return Object(o.j)(r,"Title")&&(i=n.getParent(t,n.parentUrl,"getByName('"+r.Title+"')")),{data:e,group:i}}),n}return l(t,e),Object.defineProperty(t.prototype,"users",{get:function(){return new P(this,"users")},enumerable:!0,configurable:!0}),t.prototype.setUserAsOwner=function(e){return c(this,void 0,void 0,function(){return d(this,function(n){return[2,this.clone(t,"SetUserAsOwner("+e+")").postCore()]})})},t}(I),te=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return l(t,e),n=t,t.prototype.getById=function(e){var t=new ne(this);return t.concat("("+e+")"),t},t.prototype.add=function(e,t){return this.clone(n,"addroleassignment(principalid="+e+", roledefid="+t+")").postCore()},t.prototype.remove=function(e,t){return this.clone(n,"removeroleassignment(principalid="+e+", roledefid="+t+")").postCore()},n=u([E("roleassignments")],t)}(T),ne=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.delete=t._delete,t}return l(t,e),Object.defineProperty(t.prototype,"groups",{get:function(){return new $(this,"groups")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bindings",{get:function(){return new ie(this)},enumerable:!0,configurable:!0}),t}(I),oe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.getById=function(e){return new re(this,"getById("+e+")")},t.prototype.getByName=function(e){return new re(this,"getbyname('"+e+"')")},t.prototype.getByType=function(e){return new re(this,"getbytype("+e+")")},t.prototype.add=function(e,t,n,r){var i=this,a=Object(o.n)({BasePermissions:{High:r.High.toString(),Low:r.Low.toString()},Description:t,Name:e,Order:n,__metadata:{type:"SP.RoleDefinition"}});return this.postCore({body:a}).then(function(e){return{data:e,definition:i.getById(e.Id)}})},u([E("roledefinitions")],t)}(T),re=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.delete=t._delete,t}return l(t,e),t.prototype.update=function(e){var t=this;void 0!==Object(o.j)(e,"BasePermissions")&&(e.BasePermissions=Object(o.f)({__metadata:{type:"SP.BasePermissions"}},{High:e.BasePermissions.High.toString(),Low:e.BasePermissions.Low.toString()}));var n=Object(o.n)(Object(o.f)(C("SP.RoleDefinition"),e));return this.postCore({body:n,headers:{"X-HTTP-Method":"MERGE"}}).then(function(n){var r=t;return Object(o.j)(e,"Name")&&(r=t.getParent(oe,t.parentUrl,"").getByName(e.Name)),{data:n,definition:r}})},t}(I),ie=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),u([E("roledefinitionbindings")],t)}(T);!function(e){e[e.Display=1]="Display",e[e.Edit=2]="Edit",e[e.New=3]="New"}(R||(R={})),function(e){e[e.Invalid=0]="Invalid",e[e.Integer=1]="Integer",e[e.Text=2]="Text",e[e.Note=3]="Note",e[e.DateTime=4]="DateTime",e[e.Counter=5]="Counter",e[e.Choice=6]="Choice",e[e.Lookup=7]="Lookup",e[e.Boolean=8]="Boolean",e[e.Number=9]="Number",e[e.Currency=10]="Currency",e[e.URL=11]="URL",e[e.Computed=12]="Computed",e[e.Threading=13]="Threading",e[e.Guid=14]="Guid",e[e.MultiChoice=15]="MultiChoice",e[e.GridChoice=16]="GridChoice",e[e.Calculated=17]="Calculated",e[e.File=18]="File",e[e.Attachments=19]="Attachments",e[e.User=20]="User",e[e.Recurrence=21]="Recurrence",e[e.CrossProjectLink=22]="CrossProjectLink",e[e.ModStat=23]="ModStat",e[e.Error=24]="Error",e[e.ContentTypeId=25]="ContentTypeId",e[e.PageSeparator=26]="PageSeparator",e[e.ThreadIndex=27]="ThreadIndex",e[e.WorkflowStatus=28]="WorkflowStatus",e[e.AllDayEvent=29]="AllDayEvent",e[e.WorkflowEventType=30]="WorkflowEventType"}(D||(D={})),function(e){e[e.DateOnly=0]="DateOnly",e[e.DateTime=1]="DateTime"}(M||(M={})),function(e){e[e.Unspecified=0]="Unspecified",e[e.Disabled=1]="Disabled",e[e.Relative=2]="Relative"}(F||(F={})),function(e){e[e.DefaultValue=0]="DefaultValue",e[e.AddToDefaultContentType=1]="AddToDefaultContentType",e[e.AddToNoContentType=2]="AddToNoContentType",e[e.AddToAllContentTypes=4]="AddToAllContentTypes",e[e.AddFieldInternalNameHint=8]="AddFieldInternalNameHint",e[e.AddFieldToDefaultView=16]="AddFieldToDefaultView",e[e.AddFieldCheckDisplayName=32]="AddFieldCheckDisplayName"}(L||(L={})),function(e){e[e.Gregorian=1]="Gregorian",e[e.Japan=3]="Japan",e[e.Taiwan=4]="Taiwan",e[e.Korea=5]="Korea",e[e.Hijri=6]="Hijri",e[e.Thai=7]="Thai",e[e.Hebrew=8]="Hebrew",e[e.GregorianMEFrench=9]="GregorianMEFrench",e[e.GregorianArabic=10]="GregorianArabic",e[e.GregorianXLITEnglish=11]="GregorianXLITEnglish",e[e.GregorianXLITFrench=12]="GregorianXLITFrench",e[e.KoreaJapanLunar=14]="KoreaJapanLunar",e[e.ChineseLunar=15]="ChineseLunar",e[e.SakaEra=16]="SakaEra",e[e.UmAlQura=23]="UmAlQura"}(A||(A={})),function(e){e[e.Hyperlink=0]="Hyperlink",e[e.Image=1]="Image"}(B||(B={})),function(e){e[e.EmptyMask=0]="EmptyMask",e[e.ViewListItems=1]="ViewListItems",e[e.AddListItems=2]="AddListItems",e[e.EditListItems=3]="EditListItems",e[e.DeleteListItems=4]="DeleteListItems",e[e.ApproveItems=5]="ApproveItems",e[e.OpenItems=6]="OpenItems",e[e.ViewVersions=7]="ViewVersions",e[e.DeleteVersions=8]="DeleteVersions",e[e.CancelCheckout=9]="CancelCheckout",e[e.ManagePersonalViews=10]="ManagePersonalViews",e[e.ManageLists=12]="ManageLists",e[e.ViewFormPages=13]="ViewFormPages",e[e.AnonymousSearchAccessList=14]="AnonymousSearchAccessList",e[e.Open=17]="Open",e[e.ViewPages=18]="ViewPages",e[e.AddAndCustomizePages=19]="AddAndCustomizePages",e[e.ApplyThemeAndBorder=20]="ApplyThemeAndBorder",e[e.ApplyStyleSheets=21]="ApplyStyleSheets",e[e.ViewUsageData=22]="ViewUsageData",e[e.CreateSSCSite=23]="CreateSSCSite",e[e.ManageSubwebs=24]="ManageSubwebs",e[e.CreateGroups=25]="CreateGroups",e[e.ManagePermissions=26]="ManagePermissions",e[e.BrowseDirectories=27]="BrowseDirectories",e[e.BrowseUserInfo=28]="BrowseUserInfo",e[e.AddDelPrivateWebParts=29]="AddDelPrivateWebParts",e[e.UpdatePersonalWebParts=30]="UpdatePersonalWebParts",e[e.ManageWeb=31]="ManageWeb",e[e.AnonymousSearchAccessWebLists=32]="AnonymousSearchAccessWebLists",e[e.UseClientIntegration=37]="UseClientIntegration",e[e.UseRemoteAPIs=38]="UseRemoteAPIs",e[e.ManageAlerts=39]="ManageAlerts",e[e.CreateAlerts=40]="CreateAlerts",e[e.EditMyUserInfo=41]="EditMyUserInfo",e[e.EnumeratePermissions=63]="EnumeratePermissions",e[e.FullMask=65]="FullMask"}(j||(j={})),function(e){e[e.None=0]="None",e[e.User=1]="User",e[e.DistributionList=2]="DistributionList",e[e.SecurityGroup=4]="SecurityGroup",e[e.SharePointGroup=8]="SharePointGroup",e[e.All=15]="All"}(U||(U={})),function(e){e[e.None=0]="None",e[e.UserInfoList=1]="UserInfoList",e[e.Windows=2]="Windows",e[e.MembershipProvider=4]="MembershipProvider",e[e.RoleProvider=8]="RoleProvider",e[e.All=15]="All"}(W||(W={})),function(e){e[e.None=0]="None",e[e.Guest=1]="Guest",e[e.Reader=2]="Reader",e[e.Contributor=3]="Contributor",e[e.WebDesigner=4]="WebDesigner",e[e.Administrator=5]="Administrator"}(H||(H={})),function(e){e[e.Invalid=-1]="Invalid",e[e.DefaultView=0]="DefaultView",e[e.NormalView=1]="NormalView",e[e.DialogView=2]="DialogView",e[e.View=3]="View",e[e.DisplayForm=4]="DisplayForm",e[e.DisplayFormDialog=5]="DisplayFormDialog",e[e.EditForm=6]="EditForm",e[e.EditFormDialog=7]="EditFormDialog",e[e.NewForm=8]="NewForm",e[e.NewFormDialog=9]="NewFormDialog",e[e.SolutionForm=10]="SolutionForm",e[e.PAGE_MAXITEMS=11]="PAGE_MAXITEMS"}(G||(G={})),function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Direct=1]="Direct",e[e.OrganizationView=2]="OrganizationView",e[e.OrganizationEdit=3]="OrganizationEdit",e[e.AnonymousView=4]="AnonymousView",e[e.AnonymousEdit=5]="AnonymousEdit",e[e.Flexible=6]="Flexible"}(z||(z={})),function(e){e[e.None=0]="None",e[e.View=1]="View",e[e.Edit=2]="Edit",e[e.Owner=3]="Owner"}(K||(K={})),function(e){e[e.CompletedSuccessfully=0]="CompletedSuccessfully",e[e.AccessRequestsQueued=1]="AccessRequestsQueued",e[e.NoResolvedUsers=-1]="NoResolvedUsers",e[e.AccessDenied=-2]="AccessDenied",e[e.CrossSiteRequestNotSupported=-3]="CrossSiteRequestNotSupported",e[e.UnknowError=-4]="UnknowError",e[e.EmailBodyTooLong=-5]="EmailBodyTooLong",e[e.ListUniqueScopesExceeded=-6]="ListUniqueScopesExceeded",e[e.CapabilityDisabled=-7]="CapabilityDisabled",e[e.ObjectNotSupported=-8]="ObjectNotSupported",e[e.NestedGroupsNotSupported=-9]="NestedGroupsNotSupported"}(q||(q={})),function(e){e[e.Unknown=0]="Unknown",e[e.File=1]="File",e[e.Folder=2]="Folder",e[e.Item=3]="Item",e[e.List=4]="List",e[e.Web=5]="Web",e[e.Max=6]="Max"}(V||(V={})),function(e){e[e.None=0]="None",e[e.AllowList=1]="AllowList",e[e.BlockList=2]="BlockList"}(Q||(Q={})),function(e){e[e.None=0]="None",e[e.ContextInfo=1]="ContextInfo",e[e.ListData=2]="ListData",e[e.ListSchema=4]="ListSchema",e[e.MenuView=8]="MenuView",e[e.ListContentType=16]="ListContentType",e[e.FileSystemItemId=32]="FileSystemItemId",e[e.ClientFormSchema=64]="ClientFormSchema",e[e.QuickLaunch=128]="QuickLaunch",e[e.Spotlight=256]="Spotlight",e[e.Visualization=512]="Visualization",e[e.ViewMetadata=1024]="ViewMetadata",e[e.DisableAutoHyperlink=2048]="DisableAutoHyperlink",e[e.EnableMediaTAUrls=4096]="EnableMediaTAUrls",e[e.ParentInfo=8192]="ParentInfo",e[e.PageContextInfo=16384]="PageContextInfo",e[e.ClientSideComponentManifest=32768]="ClientSideComponentManifest"}(X||(X={})),function(e){e[e.PeopleAndGroups=1]="PeopleAndGroups",e[e.PeopleOnly=0]="PeopleOnly"}(Y||(Y={})),function(e){e[e.Dropdown=0]="Dropdown",e[e.RadioButtons=1]="RadioButtons"}(J||(J={})),function(e){e[e.DefaultZone=0]="DefaultZone",e[e.Intranet=1]="Intranet",e[e.Internet=2]="Internet",e[e.Custom=3]="Custom",e[e.Extranet=4]="Extranet"}(Z||(Z={}));var ae,se,le,ue,ce=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),Object.defineProperty(t.prototype,"roleAssignments",{get:function(){return new te(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstUniqueAncestorSecurableObject",{get:function(){return new I(this,"FirstUniqueAncestorSecurableObject")},enumerable:!0,configurable:!0}),t.prototype.getUserEffectivePermissions=function(e){var t=this.clone(w,"getUserEffectivePermissions(@user)");return t.query.set("@user","'"+encodeURIComponent(e)+"'"),t.get().then(function(e){return Object(o.j)(e,"GetUserEffectivePermissions")?e.GetUserEffectivePermissions:e})},t.prototype.getCurrentUserEffectivePermissions=function(){return this.clone(w,"EffectiveBasePermissions").get().then(function(e){return Object(o.j)(e,"EffectiveBasePermissions")?e.EffectiveBasePermissions:e})},t.prototype.breakRoleInheritance=function(e,n){return void 0===e&&(e=!1),void 0===n&&(n=!1),this.clone(t,"breakroleinheritance(copyroleassignments="+e+", clearsubscopes="+n+")").postCore()},t.prototype.resetRoleInheritance=function(){return this.clone(t,"resetroleinheritance").postCore()},t.prototype.userHasPermissions=function(e,t){var n=this;return this.getUserEffectivePermissions(e).then(function(e){return n.hasPermissions(e,t)})},t.prototype.currentUserHasPermissions=function(e){var t=this;return this.getCurrentUserEffectivePermissions().then(function(n){return t.hasPermissions(n,e)})},t.prototype.hasPermissions=function(e,t){if(!t)return!0;if(t===j.FullMask)return 32767==(32767&e.High)&&65535===e.Low;var n=1;return(t-=1)>=0&&t<32?(n<<=t,0!=(e.Low&n)):t>=32&&t<64&&(n<<=t-32,0!=(e.High&n))},t}(I),de=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.getShareLink=function(e,n){void 0===n&&(n=null);var r=null!==n?n.toISOString():null;return this.clone(t,"shareLink").postCore({body:Object(o.n)({request:{createLink:!0,emailData:null,settings:{expiration:r,linkKind:e}}})})},t.prototype.shareWith=function(e,n,r,i,a){var s=this;void 0===r&&(r=!1),void 0===i&&(i=!1),Array.isArray(e)||(e=[e]);var l=Object(o.n)(e.map(function(e){return{Key:e}})),u=n===K.Edit?H.Contributor:H.Reader;return new T("_api/web","roledefinitions").select("Id").filter("RoleTypeKind eq "+u).get().then(function(e){if(!Array.isArray(e)||e.length<1)throw Error("Could not locate a role defintion with RoleTypeKind "+u);var n={includeAnonymousLinkInEmail:r,peoplePickerInput:l,propagateAcl:i,roleValue:"role:"+e[0].Id,useSimplifiedRoles:!0};return void 0!==a&&(n=Object(o.f)(n,{emailBody:a.body,emailSubject:void 0!==a.subject?a.subject:"",sendEmail:!0})),s.clone(t,"shareObject").postCore({body:Object(o.n)(n)})})},t.prototype.shareObject=function(e,t){var n=this;return void 0===t&&(t=!1),t?this.sendShareObjectRequest(e):(e=Object(o.f)(e,{group:null,includeAnonymousLinkInEmail:!1,propagateAcl:!1,useSimplifiedRoles:!0},!0),this.getRoleValue(e.role,e.group).then(function(t){Array.isArray(e.loginNames)||(e.loginNames=[e.loginNames]);var r={peoplePickerInput:Object(o.n)(e.loginNames.map(function(e){return{Key:e}})),roleValue:t,url:e.url};return void 0!==e.emailData&&null!==e.emailData&&(r=Object(o.f)(r,{emailBody:e.emailData.body,emailSubject:void 0!==e.emailData.subject?e.emailData.subject:"Shared with you.",sendEmail:!0})),n.sendShareObjectRequest(r)}))},t.prototype.unshareObjectWeb=function(e){return this.clone(t,"unshareObject").postCore({body:Object(o.n)({url:e})})},t.prototype.checkPermissions=function(e){return this.clone(t,"checkPermissions").postCore({body:Object(o.n)({recipients:e})})},t.prototype.getSharingInformation=function(e,n){void 0===e&&(e=null);var r=this.clone(t,"getSharingInformation");return r.expand.apply(r,n).postCore({body:Object(o.n)({request:e})})},t.prototype.getObjectSharingSettings=function(e){return void 0===e&&(e=!0),this.clone(t,"getObjectSharingSettings").postCore({body:Object(o.n)({useSimplifiedRoles:e})})},t.prototype.unshareObject=function(){return this.clone(t,"unshareObject").postCore()},t.prototype.deleteLinkByKind=function(e){return this.clone(t,"deleteLinkByKind").postCore({body:Object(o.n)({linkKind:e})})},t.prototype.unshareLink=function(e,n){return void 0===n&&(n="00000000-0000-0000-0000-000000000000"),this.clone(t,"unshareLink").postCore({body:Object(o.n)({linkKind:e,shareId:n})})},t.prototype.getRoleValue=function(e,t){if(null==t){var n=e===K.Edit?H.Contributor:H.Reader;return new T("_api/web","roledefinitions").select("Id").top(1).filter("RoleTypeKind eq "+n).get().then(function(e){if(e.length<1)throw Error("Could not locate associated role definition for supplied role. Edit and View are supported");return"role: "+e[0].Id})}switch(t){case H.Contributor:return new I("_api/web","associatedmembergroup").select("Id").get().then(function(e){return"group: "+e.Id});case H.Reader:case H.Guest:return new I("_api/web","associatedvisitorgroup").select("Id").get().then(function(e){return"group: "+e.Id});default:throw Error("Could not determine role value for supplied value. Contributor, Reader, and Guest are supported")}},t.prototype.getShareObjectWeb=function(e){return Promise.resolve(new I(p(e),"/_api/SP.Web.ShareObject"))},t.prototype.sendShareObjectRequest=function(e){return this.getShareObjectWeb(this.toUrl()).then(function(n){return n.expand("UsersWithAccessRequests","GroupsSharedWith").as(t).postCore({body:Object(o.n)(e)})})},t}(w),pe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.shareWith=function(e,t,n){var r=this;void 0===t&&(t=K.View);var i=this.addBatchDependency();return new I(p(this.toUrl()),"/_api/web/url").get().then(function(a){return i(),r.shareObject(Object(o.d)(a,"/_layouts/15/aclinv.aspx?forSharing=1&mbypass=1"),e,t,n)})},t.prototype.shareObject=function(e,t,n,o,r,i,a,s){return void 0===i&&(i=!1),void 0===a&&(a=!1),void 0===s&&(s=!0),this.clone(de,null).shareObject({emailData:o,group:r,includeAnonymousLinkInEmail:a,loginNames:t,propagateAcl:i,role:n,url:e,useSimplifiedRoles:s})},t.prototype.shareObjectRaw=function(e){return this.clone(de,null).shareObject(e,!0)},t.prototype.unshareObject=function(e){return this.clone(de,null).unshareObjectWeb(e)},t}(ce),he=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.getShareLink=function(e,t){return void 0===e&&(e=z.OrganizationView),void 0===t&&(t=null),this.clone(de,null).getShareLink(e,t)},t.prototype.shareWith=function(e,t,n,o){return void 0===t&&(t=K.View),void 0===n&&(n=!1),this.clone(de,null).shareWith(e,t,n,!1,o)},t.prototype.checkSharingPermissions=function(e){return this.clone(de,null).checkPermissions(e)},t.prototype.getSharingInformation=function(e,t){return void 0===e&&(e=null),this.clone(de,null).getSharingInformation(e,t)},t.prototype.getObjectSharingSettings=function(e){return void 0===e&&(e=!0),this.clone(de,null).getObjectSharingSettings(e)},t.prototype.unshare=function(){return this.clone(de,null).unshareObject()},t.prototype.deleteSharingLinkByKind=function(e){return this.clone(de,null).deleteLinkByKind(e)},t.prototype.unshareLink=function(e,t){return this.clone(de,null).unshareLink(e,t)},t}(ce),fe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.getShareLink=function(e,t){void 0===e&&(e=z.OrganizationView),void 0===t&&(t=null);var n=this.addBatchDependency();return this.getShareable().then(function(o){return n(),o.getShareLink(e,t)})},t.prototype.checkSharingPermissions=function(e){var t=this.addBatchDependency();return this.getShareable().then(function(n){return t(),n.checkPermissions(e)})},t.prototype.getSharingInformation=function(e,t){void 0===e&&(e=null);var n=this.addBatchDependency();return this.getShareable().then(function(o){return n(),o.getSharingInformation(e,t)})},t.prototype.getObjectSharingSettings=function(e){void 0===e&&(e=!0);var t=this.addBatchDependency();return this.getShareable().then(function(n){return t(),n.getObjectSharingSettings(e)})},t.prototype.unshare=function(){var e=this.addBatchDependency();return this.getShareable().then(function(t){return e(),t.unshareObject()})},t.prototype.deleteSharingLinkByKind=function(e){var t=this.addBatchDependency();return this.getShareable().then(function(n){return t(),n.deleteLinkByKind(e)})},t.prototype.unshareLink=function(e,t){var n=this.addBatchDependency();return this.getShareable().then(function(o){return n(),o.unshareLink(e,t)})},t.prototype.getShareable=function(){var e=this;return this.clone(me,"listItemAllFields",!1).select("odata.id").get().then(function(t){var n=new de(h(t));return e.hasBatch&&(n=n.inBatch(e.batch)),n})},t}(I),me=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.shareWith=function(e,t,n,o){void 0===t&&(t=K.View),void 0===n&&(n=!1);var r=this.addBatchDependency();return this.getShareable().then(function(i){return r(),i.shareWith(e,t,n,!1,o)})},t}(fe),ge=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.shareWith=function(e,t,n,o,r){void 0===t&&(t=K.View),void 0===n&&(n=!1),void 0===o&&(o=!1);var i=this.addBatchDependency();return this.getShareable().then(function(a){return i(),a.shareWith(e,t,n,o,r)})},t}(fe),ye=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),Object.defineProperty(t.prototype,"webparts",{get:function(){return new ve(this,"webparts")},enumerable:!0,configurable:!0}),t.prototype.export=function(e){return this.clone(t,"ExportWebPart").postCore({body:Object(o.n)({webPartId:e})})},t.prototype.import=function(e){return this.clone(t,"ImportWebPart").postCore({body:Object(o.n)({webPartXml:e})})},t}(w),ve=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.getById=function(e){return new be(this,"getbyid('"+e+"')")},t.prototype.getByControlId=function(e){return new be(this,"getByControlId('"+e+"')")},t}(T),be=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),Object.defineProperty(t.prototype,"webpart",{get:function(){return new _e(this)},enumerable:!0,configurable:!0}),t.prototype.saveChanges=function(){return this.clone(t,"SaveWebPartChanges").postCore()},t.prototype.moveTo=function(e,n){return this.clone(t,"MoveWebPartTo(zoneID='"+e+"', zoneIndex="+n+")").postCore()},t.prototype.close=function(){return this.clone(t,"CloseWebPart").postCore()},t.prototype.open=function(){return this.clone(t,"OpenWebPart").postCore()},t.prototype.delete=function(){return this.clone(t,"DeleteWebPart").postCore()},t}(I),_e=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),u([E("webpart")],t)}(I),Se=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return l(t,e),n=t,t.prototype.getByName=function(e){var t=new Ce(this);return t.concat("('"+e+"')"),t},t.prototype.add=function(e){var t=this;return this.clone(n,"add('"+e+"')").postCore().then(function(n){return{data:n,folder:t.getByName(e)}})},t.prototype.addUsingPath=function(e,t){var o=this;return void 0===t&&(t=!1),this.clone(n,"addUsingPath(DecodedUrl='"+e+"',overwrite="+t+")").postCore().then(function(t){return{data:t,folder:new Ce(p(o.toUrl()),"_api/web/getFolderByServerRelativePath(decodedUrl='"+e+"')")}})},n=u([E("folders")],t)}(T),Ce=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.update=t._update("SP.Folder",function(e){return{data:e,folder:t}}),t}return l(t,e),Object.defineProperty(t.prototype,"contentTypeOrder",{get:function(){return new T(this,"contentTypeOrder")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"files",{get:function(){return new Ze(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"folders",{get:function(){return new Se(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"listItemAllFields",{get:function(){return new I(this,"listItemAllFields")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentFolder",{get:function(){return new t(this,"parentFolder")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"properties",{get:function(){return new I(this,"properties")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"serverRelativeUrl",{get:function(){return new w(this,"serverRelativeUrl")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"uniqueContentTypeOrder",{get:function(){return new T(this,"uniqueContentTypeOrder")},enumerable:!0,configurable:!0}),t.prototype.delete=function(e){return void 0===e&&(e="*"),this.clone(t,null).postCore({headers:{"IF-Match":e,"X-HTTP-Method":"DELETE"}})},t.prototype.recycle=function(){return this.clone(t,"recycle").postCore()},t.prototype.getItem=function(){for(var e=[],t=0;t0&&r.forEach(function(e,t){return a.query.set(t,e)}),a.postCore({body:Object(o.n)(i)})},t.prototype.renderListFormData=function(e,n,r){return this.clone(t,"renderlistformdata(itemid="+e+", formid='"+n+"', mode='"+r+"')").postCore().then(function(e){return JSON.parse(Object(o.j)(e,"RenderListFormData")?e.RenderListFormData:e)})},t.prototype.reserveListItemId=function(){return this.clone(t,"reservelistitemid").postCore().then(function(e){return Object(o.j)(e,"ReserveListItemId")?e.ReserveListItemId:e})},t.prototype.getListItemEntityTypeFullName=function(){return this.clone(t,null,!1).select("ListItemEntityTypeFullName").get().then(function(e){return e.ListItemEntityTypeFullName})},t.prototype.addValidateUpdateItemUsingPath=function(e,n,r,i){return void 0===r&&(r=!1),this.clone(t,"AddValidateUpdateItemUsingPath()").postCore({body:Object(o.n)({bNewDocumentUpdate:r,checkInComment:i,formValues:e,listItemCreateInfo:{FolderPath:{DecodedUrl:n,__metadata:{type:"SP.ResourcePath"}},__metadata:{type:"SP.ListItemCreationInformationUsingPath"}}})}).then(function(e){return void 0!==e.AddValidateUpdateItemUsingPath?e.AddValidateUpdateItemUsingPath.results:e})},t.prototype.getSiteScript=function(){return c(this,void 0,void 0,function(){var e;return d(this,function(n){switch(n.label){case 0:return[4,this.clone(t).rootFolder.select("ServerRelativeUrl").get()];case 1:return[4,S(n.sent().ServerRelativeUrl)];case 2:return e=n.sent(),[2,new a.a(this,"").getSiteScriptFromList(e)]}})})},t}(ce),He=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return l(t,e),n=t,t.prototype.add=function(e){var t=this;"string"==typeof e&&(e={text:e});var r=Object(o.n)(Object(o.f)(C("Microsoft.SharePoint.Comments.comment"),e));return this.clone(n,null).postCore({body:r}).then(function(e){return Object(o.f)(t.getById(e.id),e)})},t.prototype.getById=function(e){var t=new Ge(this);return t.concat("("+e+")"),t},t.prototype.clear=function(){return this.clone(n,"DeleteAll").postCore()},n=u([E("comments")],t)}(T),Ge=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),Object.defineProperty(t.prototype,"replies",{get:function(){return new ze(this)},enumerable:!0,configurable:!0}),t.prototype.like=function(){return this.clone(t,"Like").postCore()},t.prototype.unlike=function(){return this.clone(t,"Unlike").postCore()},t.prototype.delete=function(){return this.deleteCore()},t}(I),ze=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return l(t,e),n=t,t.prototype.add=function(e){"string"==typeof e&&(e={text:e});var t=Object(o.n)(Object(o.f)(C("Microsoft.SharePoint.Comments.comment"),e));return this.clone(n,null).postCore({body:t}).then(function(e){return Object(o.f)(new Ge(h(e)),e)})},n=u([E("replies")],t)}(T),Ke=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return l(t,e),n=t,t.prototype.getById=function(e){var t=new qe(this);return t.concat("("+e+")"),t},t.prototype.getItemByStringId=function(e){return new qe(this.parentUrl,"getItemByStringId('"+e+"')")},t.prototype.skip=function(e,t){return void 0===t&&(t=!1),t?this.query.set("$skiptoken",encodeURIComponent("Paged=TRUE&PagedPrev=TRUE&p_ID="+e)):this.query.set("$skiptoken",encodeURIComponent("Paged=TRUE&p_ID="+e)),this},t.prototype.getPaged=function(e){return void 0===e&&(e=new i.f),this.get(new Ye(this,e))},t.prototype.getAll=function(e,t){void 0===e&&(e=2e3),void 0===t&&(t="application/json;odata=nometadata"),r.a.write("Calling items.getAll should be done sparingly. Ensure this is the correct choice. If you are unsure, it is not.",2);var o=new n(this,"").top(e).configure({headers:{Accept:t}});return this.query.forEach(function(e,t){/^\$select|filter|top|expand$/i.test(t)&&o.query.set(t,e)}),new Promise(function(e,t){var n=[],r=function(o){[].push.apply(n,o.results),o.hasNext?o.getNext().then(r).catch(t):e(n)};o.getPaged().then(r).catch(t)})},t.prototype.add=function(e,t){var r=this;void 0===e&&(e={}),void 0===t&&(t=null);var i=this.addBatchDependency();return this.ensureListItemEntityTypeName(t).then(function(t){var a=Object(o.n)(Object(o.f)(C(t),e)),s=r.clone(n,"").postCore({body:a}).then(function(e){return{data:e,item:r.getById(e.Id)}});return i(),s})},t.prototype.ensureListItemEntityTypeName=function(e){return e?Promise.resolve(e):this.getParent(We).getListItemEntityTypeFullName()},n=u([E("items")],t)}(T),qe=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.delete=t._deleteWithETag,t}return l(t,e),Object.defineProperty(t.prototype,"attachmentFiles",{get:function(){return new xe(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"contentType",{get:function(){return new Te(this,"ContentType")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"comments",{get:function(){return new He(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"effectiveBasePermissions",{get:function(){return new w(this,"EffectiveBasePermissions")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"effectiveBasePermissionsForUI",{get:function(){return new w(this,"EffectiveBasePermissionsForUI")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fieldValuesAsHTML",{get:function(){return new I(this,"FieldValuesAsHTML")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fieldValuesAsText",{get:function(){return new I(this,"FieldValuesAsText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fieldValuesForEdit",{get:function(){return new I(this,"FieldValuesForEdit")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"folder",{get:function(){return new Ce(this,"folder")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"file",{get:function(){return new $e(this,"file")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"versions",{get:function(){return new Ve(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"list",{get:function(){return this.getParent(We,this.parentUrl.substr(0,this.parentUrl.lastIndexOf("/")))},enumerable:!0,configurable:!0}),t.prototype.update=function(e,t,n){var r=this;return void 0===t&&(t="*"),void 0===n&&(n=null),new Promise(function(i,a){var s=r.addBatchDependency();return r.ensureListItemEntityTypeName(n).then(function(n){var a=Object(o.n)(Object(o.f)(C(n),e));return s(),r.postCore({body:a,headers:{"IF-Match":t,"X-HTTP-Method":"MERGE"}},new Je).then(function(e){i({data:e,item:r})})}).catch(function(e){return a(e)})})},t.prototype.getLikedBy=function(){return this.clone(t,"likedBy").postCore()},t.prototype.like=function(){return this.clone(t,"like").postCore()},t.prototype.unlike=function(){return this.clone(t,"unlike").postCore()},t.prototype.recycle=function(){return this.clone(t,"recycle").postCore()},t.prototype.getWopiFrameUrl=function(e){void 0===e&&(e=0);var n=this.clone(t,"getWOPIFrameUrl(@action)");return n.query.set("@action",e),n.postCore().then(function(e){return Object(o.j)(e,"GetWOPIFrameUrl")?e.GetWOPIFrameUrl:e})},t.prototype.validateUpdateListItem=function(e,n){return void 0===n&&(n=!1),this.clone(t,"validateupdatelistitem").postCore({body:Object(o.n)({formValues:e,bNewDocumentUpdate:n})})},t.prototype.getLikedByInformation=function(){return this.clone(t,"likedByInformation").expand("likedby").getCore()},t.prototype.ensureListItemEntityTypeName=function(e){return e?Promise.resolve(e):this.list.getListItemEntityTypeFullName()},t}(he),Ve=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.getById=function(e){var t=new Qe(this);return t.concat("("+e+")"),t},u([E("versions")],t)}(T),Qe=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.delete=t._deleteWithETag,t}return l(t,e),t}(I),Xe=function(){function e(e,t,n,o){this.parent=e,this.nextUrl=t,this.results=n,this.innerParser=o}return Object.defineProperty(e.prototype,"hasNext",{get:function(){return"string"==typeof this.nextUrl&&this.nextUrl.length>0},enumerable:!0,configurable:!0}),e.prototype.getNext=function(){return this.hasNext?new Ke(this.nextUrl,null).configureFrom(this.parent).getPaged(this.innerParser):new Promise(function(e){return e(null)})},e}(),Ye=function(e){function t(t,n){var o=e.call(this)||this;return o._parent=t,o.innerParser=n,o}return l(t,e),t.prototype.parse=function(e){var t=this;return this.innerParser.parse(e).then(function(e){return c(t,void 0,void 0,function(){var t,n;return d(this,function(r){return t=this.innerParser.rawJson,n=Object(o.j)(t,"d")&&Object(o.j)(t.d,"__next")?t.d.__next:t["odata.nextLink"],[2,new Xe(this._parent,n,e,this.innerParser)]})})})},t}(i.g),Je=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.parse=function(e){return c(this,void 0,void 0,function(){var t=this;return d(this,function(n){return[2,new Promise(function(n,o){t.handleError(e,o)&&n({"odata.etag":e.headers.get("etag")})})]})})},t}(i.g),Ze=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return l(t,e),n=t,t.prototype.getByName=function(e){var t=new $e(this);return t.concat("('"+e+"')"),t},t.prototype.add=function(e,t,o){var r=this;return void 0===o&&(o=!0),new n(this,"add(overwrite="+o+",url='"+e+"')").postCore({body:t}).then(function(t){return{data:t,file:r.getByName(e)}})},t.prototype.addUsingPath=function(e,t,r){var i=this;void 0===r&&(r={Overwrite:!1});var a=["AddUsingPath(decodedurl='"+e+"'"];return r&&(r.Overwrite&&a.push(",Overwrite=true"),r.AutoCheckoutOnInvalidData&&a.push(",AutoCheckoutOnInvalidData=true"),Object(o.r)(r.XorHash)||a.push(",XorHash="+r.XorHash)),a.push(")"),new n(this,a.join("")).postCore({body:t}).then(function(t){return{data:t,file:i.getByName(e)}})},t.prototype.addChunked=function(e,t,o,r,i){var a=this;return void 0===r&&(r=!0),void 0===i&&(i=10485760),this.clone(n,"add(overwrite = "+r+", url = '"+e+"')",!1).postCore().then(function(){return a.getByName(e)}).then(function(e){return e.setContentChunked(t,o,i)})},t.prototype.addTemplateFile=function(e,t){var o=this;return this.clone(n,"addTemplateFile(urloffile = '"+e+"', templatefiletype = "+t+")",!1).postCore().then(function(t){return{data:t,file:o.getByName(e)}})},n=u([E("files")],t)}(T),$e=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),Object.defineProperty(t.prototype,"listItemAllFields",{get:function(){return new I(this,"listItemAllFields")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"versions",{get:function(){return new et(this)},enumerable:!0,configurable:!0}),t.prototype.approve=function(e){return void 0===e&&(e=""),this.clone(t,"approve(comment = '"+e+"')").postCore()},t.prototype.cancelUpload=function(e){return this.clone(t,"cancelUpload(uploadId = guid'"+e+"')",!1).postCore()},t.prototype.checkin=function(e,n){if(void 0===e&&(e=""),void 0===n&&(n=ae.Major),e.length>1023)throw Error("The maximum comment length is 1023 characters.");return this.clone(t,"checkin(comment = '"+e+"', checkintype = "+n+")").postCore()},t.prototype.checkout=function(){return this.clone(t,"checkout").postCore()},t.prototype.copyTo=function(e,n){return void 0===n&&(n=!0),this.clone(t,"copyTo(strnewurl = '"+e+"', boverwrite = "+n+")").postCore()},t.prototype.delete=function(e){return void 0===e&&(e="*"),this.clone(t,null).postCore({headers:{"IF-Match":e,"X-HTTP-Method":"DELETE"}})},t.prototype.deny=function(e){if(void 0===e&&(e=""),e.length>1023)throw Error("The maximum comment length is 1023 characters.");return this.clone(t,"deny(comment = '"+e+"')").postCore()},t.prototype.getLimitedWebPartManager=function(e){return void 0===e&&(e=se.Shared),new ye(this,"getLimitedWebPartManager(scope = "+e+")")},t.prototype.moveTo=function(e,n){return void 0===n&&(n=le.Overwrite),this.clone(t,"moveTo(newurl = '"+e+"', flags = "+n+")").postCore()},t.prototype.publish=function(e){if(void 0===e&&(e=""),e.length>1023)throw Error("The maximum comment length is 1023 characters.");return this.clone(t,"publish(comment = '"+e+"')").postCore()},t.prototype.recycle=function(){return this.clone(t,"recycle").postCore()},t.prototype.undoCheckout=function(){return this.clone(t,"undoCheckout").postCore()},t.prototype.unpublish=function(e){if(void 0===e&&(e=""),e.length>1023)throw Error("The maximum comment length is 1023 characters.");return this.clone(t,"unpublish(comment = '"+e+"')").postCore()},t.prototype.getText=function(){return this.clone(t,"$value",!1).get(new i.i,{headers:{binaryStringResponseBody:"true"}})},t.prototype.getBlob=function(){return this.clone(t,"$value",!1).get(new i.a,{headers:{binaryStringResponseBody:"true"}})},t.prototype.getBuffer=function(){return this.clone(t,"$value",!1).get(new i.b,{headers:{binaryStringResponseBody:"true"}})},t.prototype.getJSON=function(){return this.clone(t,"$value",!1).get(new i.d,{headers:{binaryStringResponseBody:"true"}})},t.prototype.setContent=function(e){var n=this;return this.clone(t,"$value",!1).postCore({body:e,headers:{"X-HTTP-Method":"PUT"}}).then(function(e){return new t(n)})},t.prototype.getItem=function(){for(var e=this,t=[],n=0;n0?"tenantappcatalog":"sitecollectionappcatalog";return new t(p(this.toUrl()),"_api/web/"+r+"/add(overwrite="+o+",url='"+e+"')").postCore({body:n}).then(function(e){return{data:e,file:new $e(h(e))}})},t}(T),rt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.deploy=function(e){return void 0===e&&(e=!1),this.clone(t,"Deploy("+e+")").postCore()},t.prototype.retract=function(){return this.clone(t,"Retract").postCore()},t.prototype.install=function(){return this.clone(t,"Install").postCore()},t.prototype.uninstall=function(){return this.clone(t,"Uninstall").postCore()},t.prototype.upgrade=function(){return this.clone(t,"Upgrade").postCore()},t.prototype.remove=function(){return this.clone(t,"Remove").postCore()},t}(I),it=function(e){function t(t){var n=e.call(this)||this;return n.baseUrl=t,n}return l(t,e),t.ParseResponse=function(e){return new Promise(function(t,n){for(var o,r,i=[],a=new RegExp("^HTTP/[0-9.]+ +([0-9]+) +(.*)","i"),s=e.split("\n"),l="batch",u=0;u0&&(a.push("--changeset_"+s+"--\n\n"),s=""),a.push("--batch_"+e.batchId+"\n")):(s.length<1&&(s=Object(o.h)(),a.push("--batch_"+e.batchId+"\n"),a.push('Content-Type: multipart/mixed; boundary="changeset_'+s+'"\n\n')),a.push("--changeset_"+s+"\n")),a.push("Content-Type: application/http\n"),a.push("Content-Transfer-Encoding: binary\n\n");var c=new Headers,d=Object(o.m)(u.url)?u.url:Object(o.d)(i,u.url);if(r.a.write("["+e.batchId+"] ("+(new Date).getTime()+") Adding request "+u.method+" "+d+" to batch.",0),"GET"!==u.method){var p=u.method,h=u.options.headers;Object(o.j)(u,"options")&&Object(o.j)(u.options,"headers")&&void 0!==h["X-HTTP-Method"]&&(p=h["X-HTTP-Method"],delete h["X-HTTP-Method"]),a.push(p+" "+d+" HTTP/1.1\n"),c.set("Content-Type","application/json;odata=verbose;charset=utf-8")}else a.push(u.method+" "+d+" HTTP/1.1\n");Object(o.o)(c,m.headers),u.options&&Object(o.o)(c,u.options.headers),c.has("Accept")||c.append("Accept","application/json"),c.has("Content-Type")||c.append("Content-Type","application/json;odata=verbose;charset=utf-8"),c.has("X-ClientService-ClientTag")||c.append("X-ClientService-ClientTag","PnPCoreJS:@pnp-1.3.11"),c.forEach(function(e,t){a.push(t+": "+e+"\n")}),a.push("\n"),u.options.body&&a.push(u.options.body+"\n\n")}s.length>0&&(a.push("--changeset_"+s+"--\n\n"),s=""),a.push("--batch_"+e.batchId+"--\n");var f={body:a.join(""),headers:{"Content-Type":"multipart/mixed; boundary=batch_"+e.batchId},method:"POST"};return r.a.write("["+e.batchId+"] ("+(new Date).getTime()+") Sending batch request.",1),n.fetch(Object(o.d)(i,"/_api/$batch"),f).then(function(e){return e.text()}).then(t.ParseResponse).then(function(t){if(t.length!==e.requests.length)throw Error("Could not properly parse responses to match requests in batch.");return r.a.write("["+e.batchId+"] ("+(new Date).getTime()+") Resolving batched requests.",1),t.reduce(function(t,n,o){var i=e.requests[o];return r.a.write("["+i.id+"] ("+(new Date).getTime()+") Resolving request in batch "+e.batchId+".",1),t.then(function(e){return i.parser.parse(n).then(i.resolve).catch(i.reject)})},Promise.resolve())})})},t}(i.e),at=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return l(t,e),n=t,t.prototype.add=function(e,t){var r=this;return void 0===t&&(t=!1),this.clone(n,"add").postCore({body:Object(o.n)({featdefScope:0,featureId:e,force:t})}).then(function(t){return{data:t,feature:r.getById(e)}})},t.prototype.getById=function(e){var t=new st(this);return t.concat("('"+e+"')"),t},t.prototype.remove=function(e,t){return void 0===t&&(t=!1),this.clone(n,"remove").postCore({body:Object(o.n)({featureId:e,force:t})})},n=u([E("features")],t)}(T),st=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.deactivate=function(e){var n=this;void 0===e&&(e=!1);var o=this.addBatchDependency();return new t(this).select("DefinitionId").get().then(function(t){var r=n.getParent(at,n.parentUrl,"",n.batch).remove(t.DefinitionId,e);return o(),r})},t}(I),lt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return l(t,e),n=t,Object.defineProperty(t.prototype,"rootWeb",{get:function(){return new Ct(this,"rootweb")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"features",{get:function(){return new at(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"userCustomActions",{get:function(){return new Be(this)},enumerable:!0,configurable:!0}),t.prototype.getRootWeb=function(){return this.rootWeb.select("Url").get().then(function(e){return new Ct(e.Url)})},t.prototype.getContextInfo=function(){return new n(this.parentUrl,"_api/contextinfo").postCore().then(function(e){if(Object(o.j)(e,"GetContextWebInformation")){var t=e.GetContextWebInformation;return t.SupportedSchemaVersions=t.SupportedSchemaVersions.results,t}return e})},t.prototype.getDocumentLibraries=function(e){var t=new w("","_api/sp.web.getdocumentlibraries(@v)");return t.query.set("@v","'"+e+"'"),t.get().then(function(e){return Object(o.j)(e,"GetDocumentLibraries")?e.GetDocumentLibraries:e})},t.prototype.getWebUrlFromPageUrl=function(e){var t=new w("","_api/sp.web.getweburlfrompageurl(@v)");return t.query.set("@v","'"+e+"'"),t.get().then(function(e){return Object(o.j)(e,"GetWebUrlFromPageUrl")?e.GetWebUrlFromPageUrl:e})},t.prototype.getChanges=function(e){var t=Object(o.n)({query:Object(o.f)({__metadata:{type:"SP.ChangeQuery"}},e)});return this.clone(n,"getchanges").postCore({body:t})},t.prototype.delete=function(){return c(this,void 0,void 0,function(){var e;return d(this,function(t){switch(t.label){case 0:return[4,this.clone(n,"").select("Id").get()];case 1:return e=t.sent(),[4,new n(this.parentUrl,"_api/SPSiteManager/Delete").postCore({body:Object(o.n)({siteId:e.Id})})];case 2:return t.sent(),[2]}})})},t.prototype.createBatch=function(){return new it(this.parentUrl)},t.prototype.openWebById=function(e){return this.clone(n,"openWebById('"+e+"')").postCore().then(function(e){return{data:e,web:Ct.fromUrl(e["odata.id"]||e.__metadata.uri)}})},t.prototype.joinHubSite=function(e){return this.clone(n,"joinHubSite('"+e+"')").postCore()},t.prototype.registerHubSite=function(){return this.clone(n,"registerHubSite").postCore()},t.prototype.unRegisterHubSite=function(){return this.clone(n,"unRegisterHubSite").postCore()},t.prototype.createCommunicationSite=function(e,t,n,r,i,a,s,l,u){var p=this;void 0===t&&(t=1033),void 0===n&&(n=!1),void 0===i&&(i=""),void 0===a&&(a=""),void 0===s&&(s="00000000-0000-0000-0000-000000000000"),void 0===l&&(l="00000000-0000-0000-0000-000000000000");var h={Classification:a,Description:i,HubSiteId:l,Lcid:t,Owner:u,ShareByEmailEnabled:n,SiteDesignId:s,Title:e,Url:r,WebTemplate:"SITEPAGEPUBLISHING#0",WebTemplateExtensionId:"00000000-0000-0000-0000-000000000000"},f=Object(o.n)({request:Object(o.f)({__metadata:{type:"Microsoft.SharePoint.Portal.SPSiteCreationRequest"}},h)});return this.getRootWeb().then(function(e){return c(p,void 0,void 0,function(){var t,n;return d(this,function(r){return t=new b,n=e.parentUrl+"/_api/SPSiteManager/Create",[2,t.post(n,{body:f,headers:{Accept:"application/json;odata=verbose","Content-Type":"application/json;odata=verbose;charset=utf-8"}}).then(function(e){return e.json()}).then(function(e){if(Object(o.j)(e,"error"))throw e;return Object(o.j)(e,"d")&&Object(o.j)(e.d,"Create")?e.d.Create:e})]})})})},t.prototype.createModernTeamSite=function(e,t,n,r,i,a,s,l,u){var p=this;void 0===n&&(n=!0),void 0===r&&(r=1033),void 0===i&&(i=""),void 0===a&&(a=""),void 0===l&&(l="00000000-0000-0000-0000-000000000000");var h={alias:t,displayName:e,isPublic:n,optionalParams:{Classification:a,CreationOptions:{results:["SPSiteLanguage:"+r,"HubSiteId:"+l]},Description:i,Owners:{results:s||[]}}};return u&&h.optionalParams.CreationOptions.results.push("implicit_formula_292aa8a00786498a87a5ca52d9f4214a_"+u),this.getRootWeb().then(function(e){return c(p,void 0,void 0,function(){var t,n;return d(this,function(r){return t=new b,n=e.parentUrl+"/_api/GroupSiteManager/CreateGroupEx",[2,t.post(n,{body:Object(o.n)(h),headers:{Accept:"application/json;odata=verbose","Content-Type":"application/json;odata=verbose;charset=utf-8"}}).then(function(e){return e.json()})]})})})},n=u([E("_api/site")],t)}(I),ut=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.getById=function(e){var t=new ct(this);return t.concat("("+e+")"),t},t.prototype.add=function(e,n,r){var i=this;void 0===r&&(r=!0);var a=Object(o.n)(Object(o.f)(C("SP.NavigationNode"),{IsVisible:r,Title:e,Url:n}));return this.clone(t,null).postCore({body:a}).then(function(e){return{data:e,node:i.getById(e.Id)}})},t.prototype.moveAfter=function(e,n){var r=Object(o.n)({nodeId:e,previousNodeId:n});return this.clone(t,"MoveAfter").postCore({body:r})},t}(T),ct=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),Object.defineProperty(t.prototype,"children",{get:function(){return new ut(this,"Children")},enumerable:!0,configurable:!0}),t.prototype.delete=function(){return e.prototype.deleteCore.call(this)},t.prototype.update=function(e){var t=this,n=Object(o.n)(Object(o.f)({__metadata:{type:"SP.NavigationNode"}},e));return this.postCore({body:n,headers:{"X-HTTP-Method":"MERGE"}}).then(function(e){return{data:e,node:t}})},t}(I),dt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),Object.defineProperty(t.prototype,"quicklaunch",{get:function(){return new ut(this,"quicklaunch")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"topNavigationBar",{get:function(){return new ut(this,"topnavigationbar")},enumerable:!0,configurable:!0}),u([E("navigation")],t)}(w),pt=function(e){function t(t,n){return void 0===n&&(n=null),e.call(this,t,n)||this}return l(t,e),t.prototype.getMenuState=function(e,n,r,i){return void 0===e&&(e=null),void 0===n&&(n=10),void 0===r&&(r=null),void 0===i&&(i=null),new t(this,"_api/navigation/MenuState").postCore({body:Object(o.n)({customProperties:i,depth:n,mapProviderName:r,menuNodeKey:e})})},t.prototype.getMenuNodeKey=function(e,n){return void 0===n&&(n=null),new t(this,"_api/navigation/MenuNodeKey").postCore({body:Object(o.n)({currentUrl:e,mapProviderName:n})})},t}(w),ht=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return l(t,e),n=t,t.FromUrl=function(e){if(null===e)return new n("");var t=e.indexOf("_api/");return new n(t>-1?e.substr(0,t):e)},t.prototype.getRelatedItems=function(e,t){var r=this.clone(n,null);return r.concat(".GetRelatedItems"),r.postCore({body:Object(o.n)({SourceItemID:t,SourceListName:e})})},t.prototype.getPageOneRelatedItems=function(e,t){var r=this.clone(n,null);return r.concat(".GetPageOneRelatedItems"),r.postCore({body:Object(o.n)({SourceItemID:t,SourceListName:e})})},t.prototype.addSingleLink=function(e,t,r,i,a,s,l){void 0===l&&(l=!1);var u=this.clone(n,null);return u.concat(".AddSingleLink"),u.postCore({body:Object(o.n)({SourceItemID:t,SourceListName:e,SourceWebUrl:r,TargetItemID:a,TargetListName:i,TargetWebUrl:s,TryAddReverseLink:l})})},t.prototype.addSingleLinkToUrl=function(e,t,r,i){void 0===i&&(i=!1);var a=this.clone(n,null);return a.concat(".AddSingleLinkToUrl"),a.postCore({body:Object(o.n)({SourceItemID:t,SourceListName:e,TargetItemUrl:r,TryAddReverseLink:i})})},t.prototype.addSingleLinkFromUrl=function(e,t,r,i){void 0===i&&(i=!1);var a=this.clone(n,null);return a.concat(".AddSingleLinkFromUrl"),a.postCore({body:Object(o.n)({SourceItemUrl:e,TargetItemID:r,TargetListName:t,TryAddReverseLink:i})})},t.prototype.deleteSingleLink=function(e,t,r,i,a,s,l){void 0===l&&(l=!1);var u=this.clone(n,null);return u.concat(".DeleteSingleLink"),u.postCore({body:Object(o.n)({SourceItemID:t,SourceListName:e,SourceWebUrl:r,TargetItemID:a,TargetListName:i,TargetWebUrl:s,TryDeleteReverseLink:l})})},n=u([E("_api/SP.RelatedItemManager")],t)}(w),ft=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),Object.defineProperty(t.prototype,"installedLanguages",{get:function(){return new mt(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"globalInstalledLanguages",{get:function(){return new mt(this,"globalinstalledlanguages")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"timeZone",{get:function(){return new gt(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"timeZones",{get:function(){return new yt(this)},enumerable:!0,configurable:!0}),u([E("regionalsettings")],t)}(I),mt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),u([E("installedlanguages")],t)}(T),gt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return l(t,e),n=t,t.prototype.utcToLocalTime=function(e){var t;return t="string"==typeof e?e:e.toISOString(),this.clone(n,"utctolocaltime('"+t+"')").postCore().then(function(e){return Object(o.j)(e,"UTCToLocalTime")?e.UTCToLocalTime:e})},t.prototype.localTimeToUTC=function(e){var t;return t="string"==typeof e?e:Object(o.e)(e,"minute",-1*e.getTimezoneOffset()).toISOString(),this.clone(n,"localtimetoutc('"+t+"')").postCore().then(function(e){return Object(o.j)(e,"LocalTimeToUTC")?e.LocalTimeToUTC:e})},n=u([E("timezone")],t)}(I),yt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return l(t,e),n=t,t.prototype.getById=function(e){return this.clone(n,"GetById("+e+")").postCore({},new f(gt))},n=u([E("timezones")],t)}(T),vt=function(e){function t(n,o){return e.call(this,t.getBaseUrl(n),"_api/Microsoft.Sharepoint.Utilities.WebTemplateExtensions.SiteScriptUtility."+o)||this}return l(t,e),t.getBaseUrl=function(e){if("string"==typeof e)return e;var t=e.toUrl(),n=t.indexOf("_api/");return n<0?t:t.substr(0,n)},t.prototype.execute=function(e){return this.postCore({body:JSON.stringify(e),headers:{"Content-Type":"application/json;charset=utf-8"}})},t.prototype.createSiteDesign=function(e){return c(this,void 0,void 0,function(){return d(this,function(n){switch(n.label){case 0:return[4,this.clone(t,"CreateSiteDesign").execute({info:e})];case 1:return[2,n.sent()]}})})},t.prototype.applySiteDesign=function(e,n){return c(this,void 0,void 0,function(){return d(this,function(o){switch(o.label){case 0:return[4,this.clone(t,"ApplySiteDesign").execute({siteDesignId:e,webUrl:n})];case 1:return[2,o.sent()]}})})},t.prototype.getSiteDesigns=function(){return c(this,void 0,void 0,function(){return d(this,function(e){switch(e.label){case 0:return[4,this.clone(t,"GetSiteDesigns").execute({})];case 1:return[2,e.sent()]}})})},t.prototype.getSiteDesignMetadata=function(e){return c(this,void 0,void 0,function(){return d(this,function(n){switch(n.label){case 0:return[4,this.clone(t,"GetSiteDesignMetadata").execute({id:e})];case 1:return[2,n.sent()]}})})},t.prototype.updateSiteDesign=function(e){return c(this,void 0,void 0,function(){return d(this,function(n){switch(n.label){case 0:return[4,this.clone(t,"UpdateSiteDesign").execute({updateInfo:e})];case 1:return[2,n.sent()]}})})},t.prototype.deleteSiteDesign=function(e){return c(this,void 0,void 0,function(){return d(this,function(n){switch(n.label){case 0:return[4,this.clone(t,"DeleteSiteDesign").execute({id:e})];case 1:return[2,n.sent()]}})})},t.prototype.getSiteDesignRights=function(e){return c(this,void 0,void 0,function(){return d(this,function(n){switch(n.label){case 0:return[4,this.clone(t,"GetSiteDesignRights").execute({id:e})];case 1:return[2,n.sent()]}})})},t.prototype.grantSiteDesignRights=function(e,n,o){return void 0===o&&(o=1),c(this,void 0,void 0,function(){return d(this,function(r){switch(r.label){case 0:return[4,this.clone(t,"GrantSiteDesignRights").execute({grantedRights:o.toString(),id:e,principalNames:n})];case 1:return[2,r.sent()]}})})},t.prototype.revokeSiteDesignRights=function(e,n){return c(this,void 0,void 0,function(){return d(this,function(o){switch(o.label){case 0:return[4,this.clone(t,"RevokeSiteDesignRights").execute({id:e,principalNames:n})];case 1:return[2,o.sent()]}})})},t.prototype.addSiteDesignTask=function(e,n){return c(this,void 0,void 0,function(){return d(this,function(o){switch(o.label){case 0:return[4,this.clone(t,"AddSiteDesignTask").execute({webUrl:e,siteDesignId:n})];case 1:return[2,o.sent()]}})})},t.prototype.addSiteDesignTaskToCurrentWeb=function(e){return c(this,void 0,void 0,function(){return d(this,function(n){switch(n.label){case 0:return[4,this.clone(t,"AddSiteDesignTaskToCurrentWeb").execute({siteDesignId:e})];case 1:return[2,n.sent()]}})})},t.prototype.getSiteDesignTask=function(e){return c(this,void 0,void 0,function(){var n;return d(this,function(r){switch(r.label){case 0:return[4,this.clone(t,"GetSiteDesignTask").execute({taskId:e})];case 1:return n=r.sent(),[2,Object(o.j)(n,"ID")?n:null]}})})},t.prototype.getSiteDesignRun=function(e,n){return c(this,void 0,void 0,function(){return d(this,function(o){switch(o.label){case 0:return[4,this.clone(t,"GetSiteDesignRun").execute({webUrl:e,siteDesignId:n})];case 1:return[2,o.sent()]}})})},t.prototype.getSiteDesignRunStatus=function(e,n){return c(this,void 0,void 0,function(){return d(this,function(o){switch(o.label){case 0:return[4,this.clone(t,"GetSiteDesignRunStatus").execute({webUrl:e,runId:n})];case 1:return[2,o.sent()]}})})},t}(w),bt=function(e){function t(n,o){return e.call(this,t.getBaseUrl(n),"_api/Microsoft.Sharepoint.Utilities.WebTemplateExtensions.SiteScriptUtility."+o)||this}return l(t,e),t.getBaseUrl=function(e){if("string"==typeof e)return e;var t=e.toUrl(),n=t.indexOf("_api/");return n<0?t:t.substr(0,n)},t.prototype.execute=function(e){return this.postCore({body:JSON.stringify(e)})},t.prototype.getSiteScripts=function(){return this.clone(t,"GetSiteScripts",!0).execute({})},t.prototype.createSiteScript=function(e,n,o){return c(this,void 0,void 0,function(){return d(this,function(r){switch(r.label){case 0:return[4,this.clone(t,"CreateSiteScript(Title=@title,Description=@desc)?@title='"+encodeURIComponent(e)+"'&@desc='"+encodeURIComponent(n)+"'").execute(o)];case 1:return[2,r.sent()]}})})},t.prototype.getSiteScriptMetadata=function(e){return c(this,void 0,void 0,function(){return d(this,function(n){switch(n.label){case 0:return[4,this.clone(t,"GetSiteScriptMetadata").execute({id:e})];case 1:return[2,n.sent()]}})})},t.prototype.deleteSiteScript=function(e){return c(this,void 0,void 0,function(){return d(this,function(n){switch(n.label){case 0:return[4,this.clone(t,"DeleteSiteScript").execute({id:e})];case 1:return n.sent(),[2]}})})},t.prototype.updateSiteScript=function(e,n){return c(this,void 0,void 0,function(){return d(this,function(o){switch(o.label){case 0:return n&&(e.Content=JSON.stringify(n)),[4,this.clone(t,"UpdateSiteScript").execute({updateInfo:e})];case 1:return[2,o.sent()]}})})},t.prototype.getSiteScriptFromList=function(e){return c(this,void 0,void 0,function(){return d(this,function(n){switch(n.label){case 0:return[4,this.clone(t,"GetSiteScriptFromList").execute({listUrl:e})];case 1:return[2,n.sent()]}})})},t.prototype.getSiteScriptFromWeb=function(e,n){return c(this,void 0,void 0,function(){return d(this,function(o){switch(o.label){case 0:return[4,this.clone(t,"getSiteScriptFromWeb").execute({webUrl:e,info:n})];case 1:return[2,o.sent()]}})})},t}(w),_t=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return l(t,e),n=t,t.prototype.add=function(e,t,r,i,a,s){void 0===r&&(r=""),void 0===i&&(i="STS"),void 0===a&&(a=1033),void 0===s&&(s=!0);var l={Description:r,Language:a,Title:e,Url:t,UseSamePermissionsAsParentSite:s,WebTemplate:i},u=Object(o.n)({parameters:Object(o.f)({__metadata:{type:"SP.WebCreationInformation"}},l)});return this.clone(n,"add").postCore({body:u}).then(function(e){return{data:e,web:new Ct(h(e).replace(/_api\/web\/?/i,""))}})},n=u([E("webs")],t)}(T),St=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),u([E("webinfos")],t)}(T),Ct=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return l(t,e),n=t,t.fromUrl=function(e,t){return new n(p(e),t)},Object.defineProperty(t.prototype,"webs",{get:function(){return new _t(this)},enumerable:!0,configurable:!0}),t.prototype.getParentWeb=function(){var e=this;return this.select("ParentWeb/Id").expand("ParentWeb").get().then(function(t){var n=t.ParentWeb;return n?new lt(e.parentUrl).openWebById(n.Id):null})},t.prototype.getSubwebsFilteredForCurrentUser=function(e,t){return void 0===e&&(e=-1),void 0===t&&(t=-1),this.clone(_t,"getSubwebsFilteredForCurrentUser(nWebTemplateFilter="+e+",nConfigurationFilter="+t+")")},Object.defineProperty(t.prototype,"allProperties",{get:function(){return this.clone(I,"allproperties")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"webinfos",{get:function(){return new St(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"contentTypes",{get:function(){return new we(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lists",{get:function(){return new Ue(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fields",{get:function(){return new Re(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"features",{get:function(){return new at(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"availablefields",{get:function(){return new Re(this,"availablefields")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"navigation",{get:function(){return new dt(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"siteUsers",{get:function(){return new P(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"siteGroups",{get:function(){return new $(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"siteUserInfoList",{get:function(){return new We(this,"siteuserinfolist")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"regionalSettings",{get:function(){return new ft(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentUser",{get:function(){return new N(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"folders",{get:function(){return new Se(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"userCustomActions",{get:function(){return new Be(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"roleDefinitions",{get:function(){return new oe(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"relatedItems",{get:function(){return ht.FromUrl(this.toUrl())},enumerable:!0,configurable:!0}),t.prototype.createBatch=function(){return new it(this.parentUrl)},Object.defineProperty(t.prototype,"rootFolder",{get:function(){return new Ce(this,"rootFolder")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"associatedOwnerGroup",{get:function(){return new ee(this,"associatedownergroup")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"associatedMemberGroup",{get:function(){return new ee(this,"associatedmembergroup")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"associatedVisitorGroup",{get:function(){return new ee(this,"associatedvisitorgroup")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"defaultDocumentLibrary",{get:function(){return new We(this,"DefaultDocumentLibrary")},enumerable:!0,configurable:!0}),t.prototype.getFolderById=function(e){return new Ce(this,"getFolderById('"+e+"')")},t.prototype.getFolderByServerRelativeUrl=function(e){return new Ce(this,"getFolderByServerRelativeUrl('"+e+"')")},t.prototype.getFolderByServerRelativePath=function(e){return new Ce(this,"getFolderByServerRelativePath(decodedUrl='"+e+"')")},t.prototype.getFileById=function(e){return new $e(this,"getFileById('"+e+"')")},t.prototype.getFileByServerRelativeUrl=function(e){return new $e(this,"getFileByServerRelativeUrl('"+e+"')")},t.prototype.getFileByServerRelativePath=function(e){return new $e(this,"getFileByServerRelativePath(decodedUrl='"+e+"')")},t.prototype.getList=function(e){return new We(this,"getList('"+e+"')")},t.prototype.update=function(e){var t=this,n=Object(o.n)(Object(o.f)({__metadata:{type:"SP.Web"}},e));return this.postCore({body:n,headers:{"X-HTTP-Method":"MERGE"}}).then(function(e){return{data:e,web:t}})},t.prototype.delete=function(){return e.prototype.deleteCore.call(this)},t.prototype.applyTheme=function(e,t,r,i){var a=Object(o.n)({backgroundImageUrl:r,colorPaletteUrl:e,fontSchemeUrl:t,shareGenerated:i});return this.clone(n,"applytheme").postCore({body:a})},t.prototype.applyWebTemplate=function(e){var t=this.clone(n,"applywebtemplate");return t.concat("(@t)"),t.query.set("@t",e),t.postCore()},t.prototype.ensureUser=function(e){var t=Object(o.n)({logonName:e});return this.clone(n,"ensureuser").postCore({body:t}).then(function(e){return{data:e,user:new O(h(e))}})},t.prototype.availableWebTemplates=function(e,t){return void 0===e&&(e=1033),void 0===t&&(t=!0),new T(this,"getavailablewebtemplates(lcid="+e+", doincludecrosslanguage="+t+")")},t.prototype.getCatalog=function(e){return this.clone(n,"getcatalog("+e+")").select("Id").get().then(function(e){return new We(h(e))})},t.prototype.getChanges=function(e){var t=Object(o.n)({query:Object(o.f)({__metadata:{type:"SP.ChangeQuery"}},e)});return this.clone(n,"getchanges").postCore({body:t})},Object.defineProperty(t.prototype,"customListTemplate",{get:function(){return new T(this,"getcustomlisttemplates")},enumerable:!0,configurable:!0}),t.prototype.getUserById=function(e){return new O(this,"getUserById("+e+")")},t.prototype.mapToIcon=function(e,t,o){return void 0===t&&(t=0),void 0===o&&(o=""),this.clone(n,"maptoicon(filename='"+e+"', progid='"+o+"', size="+t+")").get()},t.prototype.getStorageEntity=function(e){return this.clone(n,"getStorageEntity('"+e+"')").get()},t.prototype.setStorageEntity=function(e,t,r,i){return void 0===r&&(r=""),void 0===i&&(i=""),this.clone(n,"setStorageEntity").postCore({body:Object(o.n)({comments:i,description:r,key:e,value:t})})},t.prototype.removeStorageEntity=function(e){return this.clone(n,"removeStorageEntity('"+e+"')").postCore()},t.prototype.getAppCatalog=function(e){return new ot(e||this)},t.prototype.getSiteCollectionAppCatalog=function(e){return new ot(e||this,"_api/web/sitecollectionappcatalog/AvailableApps")},t.prototype.getClientSideWebParts=function(){return this.clone(T,"GetClientSideWebParts").get()},t.prototype.addClientSidePage=function(e,t){return void 0===t&&(t=e.replace(/\.[^/.]+$/,"")),It.create(this,e,t)},t.prototype.addClientSidePageByPath=function(e,t){return void 0===t&&(t=e.replace(/\.[^/.]+$/,"")),It.create(this,e,t)},t.prototype.createDefaultAssociatedGroups=function(e,t,o){var r=this.clone(n,"createDefaultAssociatedGroups(userLogin=@u,userLogin2=@v,groupNameSeed=@s)");return r.query.set("@u","'"+encodeURIComponent(e||"")+"'"),r.query.set("@v","'"+encodeURIComponent(t||"")+"'"),r.query.set("@s","'"+encodeURIComponent(o||"")+"'"),r.postCore()},t.prototype.hubSiteData=function(e){return void 0===e&&(e=!1),c(this,void 0,void 0,function(){return d(this,function(t){return[2,this.clone(n,"hubSiteData("+e+")").get().then(function(e){return JSON.parse(e)})]})})},t.prototype.syncHubSiteTheme=function(){return this.clone(n,"syncHubSiteTheme").postCore()},t.prototype.getSiteDesignRuns=function(e){return new vt(this,"").getSiteDesignRun(void 0,e)},t.prototype.getSiteScript=function(e){return new bt(this,"").getSiteScriptFromWeb(void 0,e)},t.prototype.addSiteDesignTask=function(e){return new vt(this,"").addSiteDesignTaskToCurrentWeb(e)},t.prototype.getSiteDesignRunStatus=function(e){return new vt(this,"").getSiteDesignRunStatus(void 0,e)},n=u([E("_api/web")],t)}(pe);function wt(e){return e.length<1?1:Math.max.apply(null,e.map(function(e){return e.order}))+1}function Tt(e){for(var t=0;t-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"verticalSection",{get:function(){return this.hasVerticalSection?this.addVerticalSection():null},enumerable:!0,configurable:!0}),t.prototype.addSection=function(){var e=new Et(this,wt(this.sections),1);return this.sections.push(e),e},t.prototype.addVerticalSection=function(){var e=this.sections.findIndex(function(e){return 2===e.layoutIndex});if(e>-1)return this.sections[e];var t=new Et(this,wt(this.sections),2);return this.sections.push(t),t},t.prototype.fromJSON=function(e){this.json=e;var t=JSON.parse(e.CanvasContent1),n=JSON.parse(e.LayoutWebpartsContent);return n&&n.length>0&&(this._layoutPart=n[0]),this.setControls(t),this},t.prototype.load=function(){var e=this;return this.getItem("Id","CommentsDisabled").then(function(t){return new w(e,"_api/sitepages/pages("+t.Id+")").get().then(function(n){return e.commentsDisabled=t.CommentsDisabled,e.fromJSON(n)})})},t.prototype.save=function(e){var n=this;if(void 0===e&&(e=!0),null===this.json.Id)throw Error("The id for this page is null. If you want to create a new page, please use ClientSidePage.Create");var r=Promise.resolve({});return this._bannerImageDirty&&(r=r.then(function(e){return new Promise(function(e,t){var r=n.json.BannerImageUrl;Object(o.m)(r)&&(r=r.replace(/^https?:\/\/[a-z0-9\.]*?\.[a-z]{2,3}\//i,"/"));var i=new lt(p(n.toUrl())),a=new Ct(p(n.toUrl())),s=a.getFileByServerRelativePath(r),l="",u="",c="",d="",h="";Promise.all([i.select("Id","Url").get().then(function(e){return l=e.Id}),a.select("Id","Url").get().then(function(e){u=e.Id,h=e.Url}),s.listItemAllFields.select("UniqueId","ParentList/Id").expand("ParentList").get().then(function(e){c=e.UniqueId,d=e.ParentList.Id})]).then(function(){var t=new w(h,"_layouts/15/getpreview.ashx");t.query.set("guidSite",""+l),t.query.set("guidWeb",""+u),t.query.set("guidFile",""+c),n.bannerImageUrl=t.toUrlAndQuery(),Object(o.q)(n._layoutPart.serverProcessedContent)||(n._layoutPart.serverProcessedContent={}),n._layoutPart.serverProcessedContent.imageSources={imageSource:r},Object(o.q)(n._layoutPart.serverProcessedContent.customMetadata)||(n._layoutPart.serverProcessedContent.customMetadata={}),n._layoutPart.serverProcessedContent.customMetadata.imageSource={listId:d,siteId:l,uniqueId:c,webId:u},n._layoutPart.properties.webId=u,n._layoutPart.properties.siteId=l,n._layoutPart.properties.listId=d,n._layoutPart.properties.uniqueId=c,e()}).catch(t)})})),this.json.IsPageCheckedOutToCurrentUser||(r=r.then(function(e){return t.initFrom(n,"_api/sitepages/pages("+n.json.Id+")/checkoutpage").postCore()})),r=r.then(function(e){var r=Object.assign(C("SP.Publishing.SitePage"),{AuthorByline:n.json.AuthorByline||[],BannerImageUrl:n.bannerImageUrl,CanvasContent1:n.getCanvasContent1(),LayoutWebpartsContent:n.getLayoutWebpartsContent(),Title:n.title,TopicHeader:n.topicHeader}),i=t.initFrom(n,"_api/sitepages/pages("+n.json.Id+")/savepage");return i.configure({headers:{"if-match":"*"}}),i.postCore({body:Object(o.n)(r)})}),e&&(r=r.then(function(e){return t.initFrom(n,"_api/sitepages/pages("+n.json.Id+")/publish").postCore()}).then(function(e){e&&(n.json.IsPageCheckedOutToCurrentUser=!1)})),r.then(function(e){n._bannerImageDirty=!1})},t.prototype.discardPageCheckout=function(){return c(this,void 0,void 0,function(){var e;return d(this,function(n){switch(n.label){case 0:if(null===this.json.Id)throw Error("The id for this page is null. If you want to create a new page, please use ClientSidePage.Create");return[4,t.initFrom(this,"_api/sitepages/pages("+this.json.Id+")/discardPage").postCore({body:Object(o.n)(C("SP.Publishing.SitePage"))})];case 1:return e=n.sent(),this.fromJSON(e),[2]}})})},t.prototype.promoteToNews=function(){return c(this,void 0,void 0,function(){return d(this,function(e){return[2,this.promoteNewsImpl("promoteToNews")]})})},t.prototype.enableComments=function(){var e=this;return this.setCommentsOn(!0).then(function(t){return e.commentsDisabled=!1,t})},t.prototype.disableComments=function(){var e=this;return this.setCommentsOn(!1).then(function(t){return e.commentsDisabled=!0,t})},t.prototype.findControlById=function(e){return this.findControl(function(t){return t.id===e})},t.prototype.findControl=function(e){for(var t=0;t3?{}:{zoneEmphasis:e}},t.prototype.setCommentsOn=function(e){return this.getItem().then(function(t){return new qe(t,"SetCommentsDisabled("+!e+")").update({})})},t.prototype.promoteNewsImpl=function(e){return c(this,void 0,void 0,function(){return d(this,function(n){switch(n.label){case 0:return Object(o.r)(this.json.VersionInfo.LastVersionCreatedBy)&&new Date(this.json.VersionInfo.LastVersionCreated).getFullYear()<2e3?[4,this.save(!0)]:[3,2];case 1:n.sent(),n.label=2;case 2:if(null===this.json.Id)throw Error("The id for this page is null. If you want to create a new page, please use ClientSidePage.Create");return[4,t.initFrom(this,"_api/sitepages/pages("+this.json.Id+")/"+e).postCore({body:Object(o.n)(C("SP.Publishing.SitePage"))})];case 3:return[2,n.sent()]}})})},t.prototype.mergePartToTree=function(e,t){var n=null,r=12,i=0,a=0,s=1;t&&(Object(o.j)(t,"zoneIndex")&&(a=t.zoneIndex),Object(o.j)(t,"sectionIndex")&&(i=t.sectionIndex),Object(o.j)(t,"sectionFactor")&&(r=t.sectionFactor),Object(o.j)(t,"layoutIndex")&&(s=t.layoutIndex));var l=e.data&&e.data.emphasis&&e.data.emphasis.zoneEmphasis?e.data.emphasis.zoneEmphasis:0,u=this.getOrCreateSection(a,s,l),c=u.columns.filter(function(e){return e.order===i});n=c.length<1?u.addColumn(r,s):c[0],e.column=n,n.addControl(e)},t.prototype.mergeColumnToTree=function(e){var t=Object(o.j)(e.data,"position")&&Object(o.j)(e.data.position,"zoneIndex")?e.data.position.zoneIndex:0,n=Object(o.j)(e.data,"position")&&Object(o.j)(e.data.position,"layoutIndex")?e.data.position.layoutIndex:1,r=this.getOrCreateSection(t,n,e.data.emphasis.zoneEmphasis||0);e.section=r,r.columns.push(e)},t.prototype.getOrCreateSection=function(e,t,n){var o=null,r=this.sections.filter(function(n){return n.order===e&&n.layoutIndex===t});return r.length<1?((o=2===t?this.addVerticalSection():this.addSection()).order=e,o.emphasis=n):o=r[0],o},t.prototype.getItem=function(){for(var e=this,n=[],r=0;r")||(e="

"+e+"

"),this.data.innerHTML=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"order",{get:function(){return this.data.position.controlIndex},set:function(e){this.data.position.controlIndex=e},enumerable:!0,configurable:!0}),t.prototype.onColumnChange=function(e){this.data.position.sectionFactor=e.factor,this.data.position.controlIndex=wt(e.controls),this.data.position.zoneIndex=e.data.position.zoneIndex,this.data.position.sectionIndex=e.order,this.data.position.layoutIndex=e.data.position.layoutIndex},t.Default={addedFromPersistedData:!1,anchorComponentId:"",controlType:4,displayMode:2,editorType:"CKEditor",emphasis:{},id:"",innerHTML:"",position:{controlIndex:1,layoutIndex:1,sectionFactor:12,sectionIndex:1,zoneIndex:1}},t}(Pt),Ot=function(e){function t(n){return void 0===n&&(n=JSON.parse(JSON.stringify(t.Default))),e.call(this,n)||this}return l(t,e),t.fromComponentDef=function(e){var n=new t;return n.import(e),n},Object.defineProperty(t.prototype,"title",{get:function(){return this.data.webPartData.title},set:function(e){this.data.webPartData.title=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"description",{get:function(){return this.data.webPartData.description},set:function(e){this.data.webPartData.description=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"order",{get:function(){return this.data.position.controlIndex},set:function(e){this.data.position.controlIndex=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.data.reservedHeight},set:function(e){this.data.reservedHeight=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.data.reservedWidth},set:function(e){this.data.reservedWidth=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dataVersion",{get:function(){return this.data.webPartData.dataVersion},set:function(e){this.data.webPartData.dataVersion=e},enumerable:!0,configurable:!0}),t.prototype.setProperties=function(e){return this.data.webPartData.properties=Object(o.f)(this.data.webPartData.properties,e),this},t.prototype.getProperties=function(){return this.data.webPartData.properties},t.prototype.onColumnChange=function(e){this.data.position={controlIndex:wt(e.controls),layoutIndex:e.data.position.layoutIndex,sectionFactor:e.factor,sectionIndex:e.data.position.sectionIndex,zoneIndex:e.data.position.zoneIndex}},t.prototype.import=function(e){var t=Object(o.h)(),n=e.Id.replace(/^\{|\}$/g,"").toLowerCase(),r=JSON.parse(e.Manifest).preconfiguredEntries[0];this.setData(Object.assign({},this.data,{id:t,webPartData:{dataVersion:"1.0",description:r.description.default,id:n,instanceId:t,properties:r.properties,title:r.title.default},webPartId:n}))},t.Default={addedFromPersistedData:!1,controlType:3,displayMode:2,emphasis:{},id:null,position:{controlIndex:1,layoutIndex:1,sectionFactor:12,sectionIndex:1,zoneIndex:1},reservedHeight:500,reservedWidth:500,webPartData:null,webPartId:null},t}(Pt);new Map([["text","Querytext"],["template","QueryTemplate"],["sourceId","SourceId"],["trimDuplicatesIncludeId",""],["startRow",""],["rowLimit",""],["rankingModelId",""],["rowsPerPage",""],["selectProperties",""],["culture",""],["timeZoneId",""],["refinementFilters",""],["refiners",""],["hiddenConstraints",""],["sortList",""],["timeout",""],["hithighlightedProperties",""],["clientType",""],["personalizationData",""],["resultsURL",""],["queryTag",""],["properties",""],["queryTemplatePropertiesUrl",""],["reorderingRules",""],["hitHighlightedMultivaluePropertyLimit",""],["collapseSpecification",""],["uiLanguage",""],["desiredSnippetLength",""],["maxSnippetLength",""],["summaryLength",""]]),new Map([]);var Nt,Rt,Dt,Mt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.execute=function(e){var t=this,n=this.parseQuery(e),r=Object(o.n)({request:Object(o.f)(C("Microsoft.Office.Server.Search.REST.SearchRequest"),Object.assign({},n,{HitHighlightedProperties:this.fixArrProp(n.HitHighlightedProperties),Properties:this.fixArrProp(n.Properties),RefinementFilters:this.fixArrProp(n.RefinementFilters),ReorderingRules:this.fixArrProp(n.ReorderingRules),SelectProperties:this.fixArrProp(n.SelectProperties),SortList:this.fixArrProp(n.SortList)}))});if(this._useCaching){this._forceCaching=!0;var a="PnPjs.SearchWithCaching("+Object(o.i)(r)+")";Object(o.q)(this._cachingOptions)?/\/_api\/search\/postquery$/i.test(this._cachingOptions.key)&&(this._cachingOptions.key=a):this._cachingOptions=new i.c(a)}return this.postCore({body:r}).then(function(e){return new Ft(e,t.toUrl(),n)})},t.prototype.fixArrProp=function(e){return void 0===e?{results:[]}:(e=Object(o.k)(e)?e:[e],Object(o.j)(e,"results")?e:{results:e})},t.prototype.parseQuery=function(e){return"string"==typeof e?{Querytext:e}:e.toSearchQuery?e.toSearchQuery():e},u([E("_api/search/postquery")],t)}(I),Ft=function(){function e(e,t,n,o,r){void 0===o&&(o=null),void 0===r&&(r=null),this._url=t,this._query=n,this._raw=o,this._primary=r,this._raw=e.postquery?e.postquery:e}return Object.defineProperty(e.prototype,"ElapsedTime",{get:function(){return this.RawSearchResults.ElapsedTime},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"RowCount",{get:function(){return this.RawSearchResults.PrimaryQueryResult.RelevantResults.RowCount},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"TotalRows",{get:function(){return this.RawSearchResults.PrimaryQueryResult.RelevantResults.TotalRows},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"TotalRowsIncludingDuplicates",{get:function(){return this.RawSearchResults.PrimaryQueryResult.RelevantResults.TotalRowsIncludingDuplicates},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"RawSearchResults",{get:function(){return this._raw},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"PrimarySearchResults",{get:function(){return null===this._primary&&(this._primary=this.formatSearchResults(this._raw.PrimaryQueryResult.RelevantResults.Table.Rows)),this._primary},enumerable:!0,configurable:!0}),e.prototype.getPage=function(e,t){if(this.TotalRowsthis.TotalRows?Promise.resolve(null):new Mt(this._url,null).execute(r)},e.prototype.formatSearchResults=function(e){for(var t=new Array,n=0,o=e.results?e.results:e;n0&&(n.properties=Object(o.f)(n.properties,{To:{results:e.To}})),e.CC&&e.CC.length>0&&(n.properties=Object(o.f)(n.properties,{CC:{results:e.CC}})),e.BCC&&e.BCC.length>0&&(n.properties=Object(o.f)(n.properties,{BCC:{results:e.BCC}})),e.AdditionalHeaders&&(n.properties=Object(o.f)(n.properties,{AdditionalHeaders:e.AdditionalHeaders})),this.clone(t,"SendEmail",!0).excute(n)},t.prototype.getCurrentUserEmailAddresses=function(){return this.clone(t,"GetCurrentUserEmailAddresses",!0).excute({}).then(function(e){return Object(o.j)(e,"GetCurrentUserEmailAddresses")?e.GetCurrentUserEmailAddresses:e})},t.prototype.resolvePrincipal=function(e,n,r,i,a,s){void 0===s&&(s=!1);var l={addToUserInfoList:a,input:e,inputIsEmailOnly:i,matchUserInfoList:s,scopes:n,sources:r};return this.clone(t,"ResolvePrincipalInCurrentContext",!0).excute(l).then(function(e){return Object(o.j)(e,"ResolvePrincipalInCurrentContext")?e.ResolvePrincipalInCurrentContext:e})},t.prototype.searchPrincipals=function(e,n,r,i,a){var s={groupName:i,input:e,maxCount:a,scopes:n,sources:r};return this.clone(t,"SearchPrincipalsUsingContextWeb",!0).excute(s).then(function(e){return Object(o.j)(e,"SearchPrincipalsUsingContextWeb")?e.SearchPrincipalsUsingContextWeb:e})},t.prototype.createEmailBodyForInvitation=function(e){var n={pageAddress:e};return this.clone(t,"CreateEmailBodyForInvitation",!0).excute(n).then(function(e){return Object(o.j)(e,"CreateEmailBodyForInvitation")?e.CreateEmailBodyForInvitation:e})},t.prototype.expandGroupsToPrincipals=function(e,n){void 0===n&&(n=30);var r={inputs:e,maxCount:n};return this.clone(t,"ExpandGroupsToPrincipals",!0).excute(r).then(function(e){return Object(o.j)(e,"ExpandGroupsToPrincipals")?e.ExpandGroupsToPrincipals:e})},t.prototype.createWikiPage=function(e){return this.clone(t,"CreateWikiPageInContextWeb",!0).excute({parameters:e}).then(function(e){return{data:Object(o.j)(e,"CreateWikiPageInContextWeb")?e.CreateWikiPageInContextWeb:e,file:new $e(h(e))}})},t.prototype.containsInvalidFileFolderChars=function(e,n){return void 0===n&&(n=!1),n?(t.InvalidFileFolderNameCharsOnPremiseRegex.lastIndex=0,t.InvalidFileFolderNameCharsOnPremiseRegex.test(e)):(t.InvalidFileFolderNameCharsOnlineRegex.lastIndex=0,t.InvalidFileFolderNameCharsOnlineRegex.test(e))},t.prototype.stripInvalidFileFolderChars=function(e,n,o){return void 0===n&&(n=""),void 0===o&&(o=!1),o?e.replace(t.InvalidFileFolderNameCharsOnPremiseRegex,n):e.replace(t.InvalidFileFolderNameCharsOnlineRegex,n)},t.InvalidFileFolderNameCharsOnlineRegex=/["*:<>?/\\|\x00-\x1f\x7f-\x9f]/g,t.InvalidFileFolderNameCharsOnPremiseRegex=/["#%*:<>?/\\|\x00-\x1f\x7f-\x9f]/g,t}(w),Vt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.getById=function(e){return new Qt(this,"GetById?hubSiteId='"+e+"'")},u([E("_api/hubsites")],t)}(T),Qt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t}(I),Xt=new(function(){function e(e,t){void 0===e&&(e={}),void 0===t&&(t=""),this._options=e,this._baseUrl=t}return e.prototype.configure=function(t,n){return void 0===n&&(n=""),new e(t,n)},e.prototype.setup=function(e){!function(e){o.c.extend(e)}(e)},e.prototype.searchSuggest=function(e){var t;return t="string"==typeof e?{querytext:e}:e,this.create(Ut).execute(t)},e.prototype.search=function(e){return this.create(Mt).execute(e)},e.prototype.searchWithCaching=function(e,t){return this.create(Mt).usingCaching(t).execute(e)},Object.defineProperty(e.prototype,"site",{get:function(){return this.create(lt)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"web",{get:function(){return this.create(Ct)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"profiles",{get:function(){return this.create(Wt)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"social",{get:function(){return this.create(zt)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"navigation",{get:function(){return this.create(pt)},enumerable:!0,configurable:!0}),e.prototype.createBatch=function(){return this.web.createBatch()},Object.defineProperty(e.prototype,"utility",{get:function(){return this.create(qt,"")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"siteScripts",{get:function(){return this.create(bt,"")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"siteDesigns",{get:function(){return this.create(vt,"")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hubSites",{get:function(){return this.create(Vt)},enumerable:!0,configurable:!0}),e.prototype.getTenantAppCatalogWeb=function(){var e=this;return this.create(Ct,"_api/SP_TenantSettings_Current").get().then(function(t){return new Ct(t.CorporateCatalogUrl).configure(e._options)})},e.prototype.create=function(e,t){return new e(this._baseUrl,t).configure(this._options)},e}())}).call(this,n("yLpj"))},AAI4:function(e,t,n){"use strict";n.d(t,"c",function(){return i}),n.d(t,"g",function(){return d}),n.d(t,"f",function(){return p}),n.d(t,"i",function(){return h}),n.d(t,"a",function(){return f}),n.d(t,"d",function(){return m}),n.d(t,"b",function(){return g}),n.d(t,"h",function(){return S}),n.d(t,"e",function(){return C});var o=n("2m/F"),r=n("uQ29"),i=function(){function e(e){this.key=e,this.expiration=Object(o.e)(new Date,"second",o.c.defaultCachingTimeoutSeconds),this.storeName=o.c.defaultCachingStore}return Object.defineProperty(e.prototype,"store",{get:function(){return"local"===this.storeName?e.storage.local:e.storage.session},enumerable:!0,configurable:!0}),e.storage=new o.b,e}(),a=function(){function e(e,t){this.parser=e,this.cacheOptions=t}return e.prototype.parse=function(e){var t=this;return this.parser.parse(e).then(function(e){return t.cacheData(e)})},e.prototype.cacheData=function(e){return null!==this.cacheOptions.store&&this.cacheOptions.store.put(this.cacheOptions.key,e,this.cacheOptions.expiration),e},e}(),s=function(e,t){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function l(e,t){function n(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function u(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}var c=function(e){function t(t,n,o,r){void 0===o&&(o=n.status),void 0===r&&(r=n.statusText);var i=e.call(this,t)||this;return i.response=n,i.status=o,i.statusText=r,i.isHttpRequestError=!0,i}return l(t,e),t.init=function(e){return e.clone().text().then(function(n){return new t("Error making HttpClient request in queryable ["+e.status+"] "+e.statusText+" ::> "+n,e.clone())})},t}(Error),d=function(){function e(){this.rawJson={}}return e.prototype.parse=function(e){var t=this;return new Promise(function(n,o){t.handleError(e,o)&&t.parseImpl(e,n,o)})},e.prototype.parseImpl=function(e,t,n){var o=this;e.headers.has("Content-Length")&&0===parseFloat(e.headers.get("Content-Length"))||204===e.status?t({}):e.text().then(function(e){return e.replace(/\s/gi,"").length>0?JSON.parse(e):{}}).then(function(e){return t(o.parseODataJSON(e))}).catch(function(e){return n(e)})},e.prototype.handleError=function(e,t){return e.ok||c.init(e).then(t),e.ok},e.prototype.parseODataJSON=function(e){this.rawJson=e;var t=e;return Object(o.j)(e,"d")?t=Object(o.j)(e.d,"results")?e.d.results:e.d:Object(o.j)(e,"value")&&(t=e.value),t},e}(),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t}(d),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.parseImpl=function(e,t){e.text().then(t)},t}(d),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.parseImpl=function(e,t){e.blob().then(t)},t}(d),m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.parseImpl=function(e,t){e.json().then(t)},t}(d),g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.parseImpl=function(e,t){Object(o.l)(e.arrayBuffer)?e.arrayBuffer().then(t):e.buffer().then(t)},t}(d);function y(e,t){return new Promise(function(n){e.result=t,e.hasResult=!0,n(e)})}function v(e){return e.pipeline.length>0?e.pipeline.shift()(e):Promise.resolve(e)}function b(e){return void 0===e&&(e=!1),function(t,n,i){var a=i.value;i.value=function(){for(var i=[],s=0;s0&&Object(o.j)(i[0],"hasResult")&&i[0].hasResult?(r.a.write("["+i[0].requestId+"] ("+(new Date).getTime()+") Skipping request pipeline method "+n+", existing result in pipeline.",0),Promise.resolve(i[0])):(r.a.write("["+i[0].requestId+"] ("+(new Date).getTime()+") Calling request pipeline method "+n+".",0),a.apply(t,i).then(function(e){return v(e)}))}}}!function(e){function t(t){var n=e.call(this)||this;return n.parser=t,n}l(t,e),t.prototype.parseImpl=function(e,t){this.parser(e).then(t)}}(d);var _=function(){function e(){}return e.logStart=function(e){return new Promise(function(t){r.a.log({data:1===r.a.activeLogLevel?{}:e,level:1,message:"["+e.requestId+"] ("+(new Date).getTime()+") Beginning "+e.verb+" request ("+e.requestAbsoluteUrl+")"}),t(e)})},e.caching=function(e){return new Promise(function(t){if(e.isCached){r.a.write("["+e.requestId+"] ("+(new Date).getTime()+") Caching is enabled for request, checking cache...",1);var n=new i(e.requestAbsoluteUrl.toLowerCase());if(void 0!==e.cachingOptions&&(n=Object(o.f)(n,e.cachingOptions)),null!==n.store){var s=n.store.get(n.key);if(null!==s)return r.a.log({data:1===r.a.activeLogLevel?{}:s,level:1,message:"["+e.requestId+"] ("+(new Date).getTime()+") Value returned from cache."}),Object(o.l)(e.batchDependency)&&e.batchDependency(),Object(o.j)(e.parser,"hydrate")&&(s=e.parser.hydrate(s)),y(e,s).then(function(e){return t(e)})}r.a.write("["+e.requestId+"] ("+(new Date).getTime()+") Value not found in cache.",1),e.parser=new a(e.parser,n)}return t(e)})},e.send=function(e){return new Promise(function(t,n){if(e.isBatched){var i=e.batch.add(e.requestAbsoluteUrl,e.verb,e.options,e.parser,e.requestId);Object(o.l)(e.batchDependency)&&e.batchDependency(),r.a.write("["+e.requestId+"] ("+(new Date).getTime()+") Batching request in batch "+e.batch.batchId+".",1),t(y(e,i))}else{r.a.write("["+e.requestId+"] ("+(new Date).getTime()+") Sending request.",1);var a=e.clientFactory(),s=Object(o.f)(e.options||{},{method:e.verb});a.fetch(e.requestAbsoluteUrl,s).then(function(t){return e.parser.parse(t)}).then(function(t){return y(e,t)}).then(function(e){return t(e)}).catch(function(e){return n(e)})}})},e.logEnd=function(e){return new Promise(function(t){e.isBatched?r.a.log({data:1===r.a.activeLogLevel?{}:e,level:1,message:"["+e.requestId+"] ("+(new Date).getTime()+") "+e.verb+" request will complete in batch "+e.batch.batchId+"."}):r.a.log({data:1===r.a.activeLogLevel?{}:e,level:1,message:"["+e.requestId+"] ("+(new Date).getTime()+") Completing "+e.verb+" request."}),t(e)})},u([b(!0)],e,"logStart",null),u([b()],e,"caching",null),u([b()],e,"send",null),u([b(!0)],e,"logEnd",null),e}(),S=function(e){function t(){var t=e.call(this)||this;return t._batch=null,t._batchDependency=null,t}return l(t,e),t.prototype.inBatch=function(e){if(null!==this.batch)throw Error("This query is already part of a batch.");return Object(o.q)(e)&&(this._batch=e),this},t.prototype.toUrl=function(){return this._url},t.prototype.get=function(e,t){return void 0===e&&(e=new p),void 0===t&&(t={}),this.getCore(e,t)},t.prototype.getCore=function(t,n){return void 0===t&&(t=new p),void 0===n&&(n={}),e.prototype.getCore.call(this,t,n)},t.prototype.postCore=function(t,n){return void 0===t&&(t={}),void 0===n&&(n=new p),e.prototype.postCore.call(this,t,n)},t.prototype.patchCore=function(t,n){return void 0===t&&(t={}),void 0===n&&(n=new p),e.prototype.patchCore.call(this,t,n)},t.prototype.deleteCore=function(t,n){return void 0===t&&(t={}),void 0===n&&(n=new p),e.prototype.deleteCore.call(this,t,n)},t.prototype.putCore=function(t,n){return void 0===t&&(t={}),void 0===n&&(n=new p),e.prototype.putCore.call(this,t,n)},t.prototype.reqImpl=function(t,n,o){return void 0===n&&(n={}),this.hasBatch&&(this._batchDependency=this.addBatchDependency()),e.prototype.reqImpl.call(this,t,n,o)},t.prototype.addBatchDependency=function(){return null!==this._batch?this._batch.addDependency():function(){return null}},Object.defineProperty(t.prototype,"hasBatch",{get:function(){return Object(o.q)(this._batch)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"batch",{get:function(){return this.hasBatch?this._batch:null},enumerable:!0,configurable:!0}),t.prototype._clone=function(t,n){return t=e.prototype._clone.call(this,t,n),n.includeBatch&&(t=t.inBatch(this._batch)),t},t}(function(){function e(){this._query=new Map,this._options={},this._url="",this._parentUrl="",this._useCaching=!1,this._cachingOptions=null,this._cloneParentWasCaching=!1,this._cloneParentCacheOptions=null,this._requestPipeline=null}return e.prototype.toUrl=function(){return this._url},e.prototype.concat=function(e){return this._url+=e,this},Object.defineProperty(e.prototype,"query",{get:function(){return this._query},enumerable:!0,configurable:!0}),e.prototype.configure=function(e){return Object(o.p)(this._options,e),this},e.prototype.configureFrom=function(e){return Object(o.p)(this._options,e._options),this},e.prototype.usingCaching=function(e){return o.c.globalCacheDisable||(this._useCaching=!0,void 0!==e&&(this._cachingOptions=e)),this},e.prototype.withPipeline=function(e){return this._requestPipeline=e.slice(0),this},e.prototype.getCore=function(e,t){return void 0===e&&(e=new m),void 0===t&&(t={}),this._cloneParentWasCaching&&this.usingCaching(this._cloneParentCacheOptions),this.reqImpl("GET",t,e)},e.prototype.postCore=function(e,t){return void 0===e&&(e={}),void 0===t&&(t=new m),this.reqImpl("POST",e,t)},e.prototype.patchCore=function(e,t){return void 0===e&&(e={}),void 0===t&&(t=new m),this.reqImpl("PATCH",e,t)},e.prototype.deleteCore=function(e,t){return void 0===e&&(e={}),void 0===t&&(t=new m),this.reqImpl("DELETE",e,t)},e.prototype.putCore=function(e,t){return void 0===e&&(e={}),void 0===t&&(t=new m),this.reqImpl("PUT",e,t)},e.prototype.reqImpl=function(e,t,n){var o=this;return void 0===t&&(t={}),this.getRequestPipeline(e,t,n).then(function(r){return o.toRequestContext(e,t,n,r)}).then(function(e){return function(e){e.pipeline.length<1&&r.a.write("["+e.requestId+"] ("+(new Date).getTime()+") Request pipeline contains no methods!",2);var t=v(e).then(function(e){return function(e){return r.a.log({data:0===r.a.activeLogLevel?e.result:{},level:1,message:"["+e.requestId+"] ("+(new Date).getTime()+") Returning result from pipeline. Set logging to verbose to see data."}),Promise.resolve(e.result)}(e)}).catch(function(e){throw r.a.error(e),e});return e.isBatched&&e.batch.addResolveBatchDependency(t),t}(e)})},e.prototype.append=function(e){this._url=Object(o.d)(this._url,e)},Object.defineProperty(e.prototype,"parentUrl",{get:function(){return this._parentUrl},enumerable:!0,configurable:!0}),e.prototype.extend=function(e,t){this._parentUrl=e._url,this._url=Object(o.d)(this._parentUrl,t||""),this.configureFrom(e)},e.prototype._clone=function(e,t){return e.configureFrom(this),this._useCaching&&(e._cloneParentWasCaching=!0,e._cloneParentCacheOptions=this._cachingOptions),e},e.prototype.getRequestPipeline=function(e,t,n){var r=this;return void 0===t&&(t={}),new Promise(function(e){Object(o.q)(r._requestPipeline)&&Object(o.k)(r._requestPipeline)?e(r._requestPipeline):e([_.logStart,_.caching,_.send,_.logEnd].slice(0))})},e}()),C=function(){function e(e){void 0===e&&(e=Object(o.h)()),this._batchId=e,this._reqs=[],this._deps=[],this._rDeps=[]}return Object.defineProperty(e.prototype,"batchId",{get:function(){return this._batchId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"requests",{get:function(){return this._reqs},enumerable:!0,configurable:!0}),e.prototype.add=function(e,t,n,o,r){var i={id:r,method:t.toUpperCase(),options:n,parser:o,reject:null,resolve:null,url:e},a=new Promise(function(e,t){i.resolve=e,i.reject=t});return this._reqs.push(i),a},e.prototype.addDependency=function(){var e=function(){};return this._deps.push(new Promise(function(t){e=t})),e},e.prototype.addResolveBatchDependency=function(e){this._rDeps.push(e)},e.prototype.execute=function(){var e=this;return Promise.all(this._deps).then(function(){return Promise.all(e._deps)}).then(function(){return e.executeImpl()}).then(function(){return Promise.all(e._rDeps)}).then(function(){})},e}()},CQME:function(e,n){e.exports=t},FQkj:function(e,t,n){var o=n("WdKl"),r=n("ruv1");"string"==typeof o&&(o=[[e.i,o]]);for(var i=0;i=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function f(){for(var e=0,t=0,n=arguments.length;t0){n.subComponentStyles={};var p=n.subComponentStyles,h=function(e){if(o.hasOwnProperty(e)){var t=o[e];p[e]=function(e){return m.apply(void 0,t.map(function(t){return"function"==typeof t?t(e):t}))}}};for(var u in o)h(u)}return n}var g=void 0;try{g=window}catch(e){}function y(e){if(void 0!==g){var t=e;return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:g}}var v=0,b=function(){function e(){}return e.getValue=function(e,t){var n=_();return void 0===n[e]&&(n[e]="function"==typeof t?t():t),n[e]},e.setValue=function(e,t){var n=_(),o=n.__callbacks__,r=n[e];if(t!==r){n[e]=t;var i={oldValue:r,value:t,key:e};for(var a in o)o.hasOwnProperty(a)&&o[a](i)}return t},e.addChangeListener=function(e){var t=e.__id__,n=S();t||(t=e.__id__=String(v++)),n[t]=e},e.removeChangeListener=function(e){delete S()[e.__id__]},e}();function _(){var e,t=y()||{};return t.__globalSettings__||(t.__globalSettings__=((e={}).__callbacks__={},e)),t.__globalSettings__}function S(){return _().__callbacks__}var C,w={settings:{},scopedSettings:{},inCustomizerContext:!1},T=b.getValue("customizations",{settings:{},scopedSettings:{},inCustomizerContext:!1}),I=[],E=function(){function e(){}return e.reset=function(){T.settings={},T.scopedSettings={}},e.applySettings=function(t){T.settings=d({},T.settings,t),e._raiseChange()},e.applyScopedSettings=function(t,n){T.scopedSettings[t]=d({},T.scopedSettings[t],n),e._raiseChange()},e.getSettings=function(e,t,n){void 0===n&&(n=w);for(var o={},r=t&&n.scopedSettings[t]||{},i=t&&T.scopedSettings[t]||{},a=0,s=e;a=0)i(s.split(" "));else{var l=r.argsFromClassName(s);l?i(l):-1===n.indexOf(s)&&n.push(s)}else Array.isArray(s)?i(s):"object"==typeof s&&o.push(s)}}return i(e),{classes:n,objects:o}}var M,F={MozOsxFontSmoothing:"-moz-osx-font-smoothing",MsHighContrastAdjust:"-ms-high-contrast-adjust",WebkitFontSmoothing:"-webkit-font-smoothing",WebkitOverflowScrolling:"-webkit-overflow-scrolling",WebkitTapHighlightColor:"-webkit-tap-highlight-color",alignContent:"align-content",alignItems:"align-items",alignSelf:"align-self",animation:"animation",animationDelay:"animation-delay",animationDirection:"animation-direction",animationDuration:"animation-duration",animationFillMode:"animation-fill-mode",animationIterationCount:"animation-iteration-count",animationName:"animation-name",animationTimingFunction:"animation-timing-function",background:"background",backgroundClip:"background-clip",backgroundColor:"background-color",backgroundImage:"background-image",backgroundPosition:"background-position",border:"border",borderBottom:"border-bottom",borderBottomColor:"border-bottom-color",borderBottomStyle:"border-bottom-style",borderBottomWidth:"border-bottom-width",borderCollapse:"border-collapse",borderColor:"border-color",borderLeft:"border-left",borderRadius:"border-radius",borderRight:"border-right",borderStyle:"border-style",borderTop:"border-top",borderTopColor:"border-top-color",borderTopLeftRadius:"border-top-left-radius",borderTopRightRadius:"border-top-right-radius",borderTopStyle:"border-top-style",borderTopWidth:"border-top-width",borderWidth:"border-width",bordercolor:"bordercolor",bottom:"bottom",boxShadow:"box-shadow",boxSizing:"box-sizing",clear:"clear",color:"color",content:"content",cursor:"cursor",display:"display",fill:"fill",flex:"flex",flexBasis:"flex-basis",flexDirection:"flex-direction",flexGrow:"flex-grow",flexShrink:"flex-shrink",flexWrap:"flex-wrap",float:"float",font:"font",fontFamily:"font-family",fontSize:"font-size",fontStyle:"font-style",fontWeight:"font-weight",height:"height",justifyContent:"justify-content",left:"left",lineHeight:"line-height",listStyle:"list-style",listStyleType:"list-style-type",marginBottom:"margin-bottom",marginLeft:"margin-left",marginRight:"margin-right",marginTop:"margin-top",maxHeight:"max-height",maxWidth:"max-width",minHeight:"min-height",minWidth:"min-width",mozOsxFontSmoothing:"moz-osx-font-smoothing",objectFit:"object-fit",opacity:"opacity",order:"order",outline:"outline",outlineColor:"outline-color",outlineOffset:"outline-offset",overflow:"overflow",overflowWrap:"overflow-wrap",overflowX:"overflow-x",overflowY:"overflow-y",paddingBottom:"padding-bottom",paddingLeft:"padding-left",paddingRight:"padding-right",paddingTop:"padding-top",perspective:"perspective",pointerEvents:"pointer-events",position:"position",resize:"resize",right:"right",speak:"speak",src:"src",tableLayout:"table-layout",textAlign:"text-align",textDecoration:"text-decoration",textOverflow:"text-overflow",textTransform:"text-transform",top:"top",transform:"transform",transformOrigin:"transform-origin",transition:"transition",transitionDelay:"transition-delay",transitionDuration:"transition-duration",transitionProperty:"transition-property",transitionTimingFunction:"transition-timing-function",userSelect:"user-select",verticalAlign:"vertical-align",visibility:"visibility",webkitFontSmoothing:"webkit-font-smoothing",whiteSpace:"white-space",width:"width",wordBreak:"word-break",wordWrap:"word-wrap",zIndex:"z-index"},L={"user-select":1};function A(e,t){var n=function(){if(!M){var e="undefined"!=typeof document?document:void 0,t="undefined"!=typeof navigator?navigator:void 0,n=t?t.userAgent.toLowerCase():void 0;M=e?{isWebkit:!(!e||!("WebkitAppearance"in e.documentElement.style)),isMoz:!!(n&&n.indexOf("firefox")>-1),isOpera:!!(n&&n.indexOf("opera")>-1),isMs:!(!t||!/rv:11.0/i.test(t.userAgent)&&!/Edge\/\d./i.test(navigator.userAgent))}:{isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return M}(),o=e[t];if(L[o]){var r=e[t+1];L[o]&&(n.isWebkit&&e.push("-webkit-"+o,r),n.isMoz&&e.push("-moz-"+o,r),n.isMs&&e.push("-ms-"+o,r),n.isOpera&&e.push("-o-"+o,r))}}var B=["column-count","font-weight","flex-basis","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function j(e,t){var n=e[t],o=e[t+1];if("number"==typeof o){var r=-1===B.indexOf(n)?"px":"";e[t+1]=""+o+r}}var U,W="left",H="right",G=((U={})[W]=H,U[H]=W,U),z={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"},K=q();function q(){return void 0===K&&(K="undefined"!=typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),K}function V(e,t){if(q()){var n=e[t];if(!n)return;var o=e[t+1];if("string"==typeof o&&o.indexOf("@noflip")>=0)e[t+1]=o.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(n.indexOf(W)>=0)e[t]=n.replace(W,H);else if(n.indexOf(H)>=0)e[t]=n.replace(H,W);else if(String(o).indexOf(W)>=0)e[t+1]=o.replace(W,H);else if(String(o).indexOf(H)>=0)e[t+1]=o.replace(H,W);else if(G[n])e[t]=G[n];else if(z[o])e[t+1]=z[o];else switch(n){case"margin":case"padding":e[t+1]=function(e){if("string"==typeof e){var t=e.split(" ");if(4===t.length)return t[0]+" "+t[3]+" "+t[2]+" "+t[1]}return e}(o);break;case"box-shadow":e[t+1]=function(e,t){var n=e.split(" "),o=parseInt(n[0],10);return n[0]=n[0].replace(String(o),String(-1*o)),n.join(" ")}(o)}}}function Q(e){var t=e&&e["&"];return t?t.displayName:void 0}var X=/\:global\((.+?)\)/g;function Y(e){if(!X.test(e))return e;for(var t=[],n=/\:global\((.+?)\)/g,o=null;o=n.exec(e);)o[1].indexOf(",")>-1&&t.push([o.index,o.index+o[0].length,o[1].split(",").map(function(e){return":global("+e.trim()+")"}).join(", ")]);return t.reverse().reduce(function(e,t){var n=t[0],o=t[1],r=t[2];return e.slice(0,n)+r+e.slice(o)},e)}function J(e,t){return e.indexOf(":global(")>=0?e.replace(X,"$1"):0===e.indexOf(":")?t+e:e.indexOf("&")<0?t+" "+e:e}function Z(e,t,n){void 0===t&&(t={__order:[]}),void 0===n&&(n="&");var o=R.getInstance(),r=t[n];r||(r={},t[n]=r,t.__order.push(n));for(var i=0,a=e;i-1?Z([p],t,Y(d).split(/,/g).map(function(e){return e.trim()}).map(function(e){return J(e,n)}).join(", ")):Z([p],t,J(d,n))}}else void 0!==s[u]&&("margin"===u||"padding"===u?$(r,u,s[u]):r[u]=s[u])}return t}function $(e,t,n){var o="string"==typeof n?n.split(" "):[n];e[t+"Top"]=o[0],e[t+"Right"]=o[1]||o[0],e[t+"Bottom"]=o[2]||o[0],e[t+"Left"]=o[3]||o[1]||o[0]}function ee(e){for(var t=[],n=!1,o=0,r=e.__order;o50&&(t.clear(),n=0,e.disableCaching=!0),a.__retval__}}function le(e,t){return t=function(e){switch(e){case void 0:return"__undefined__";case null:return"__null__";default:return e}}(t),e.has(t)||e.set(t,new Map),e.get(t)}function ue(e,t){if("function"==typeof t&&t.__cachedInputs__)for(var n=0,o=t.__cachedInputs__;n=0)},{},e)}!function(e){e[e.center=0]="center",e[e.contain=1]="contain",e[e.cover=2]="cover",e[e.none=3]="none",e[e.centerCover=4]="centerCover",e[e.centerContain=5]="centerContain"}(pe||(pe={})),function(e){e[e.landscape=0]="landscape",e[e.portrait=1]="portrait"}(he||(he={})),function(e){e[e.notLoaded=0]="notLoaded",e[e.loaded=1]="loaded",e[e.error=2]="error",e[e.errorLoaded=3]="errorLoaded"}(fe||(fe={}));var be=se(),_e=function(e){function t(t){var n=e.call(this,t)||this;return n._coverStyle=he.portrait,n._imageElement=o.createRef(),n._frameElement=o.createRef(),n._onImageLoaded=function(e){var t=n.props,o=t.src,r=t.onLoad;r&&r(e),n._computeCoverStyle(n.props),o&&n.setState({loadState:fe.loaded})},n._onImageError=function(e){n.props.onError&&n.props.onError(e),n.setState({loadState:fe.error})},n.state={loadState:fe.notLoaded},n}return c(t,e),t.prototype.componentWillReceiveProps=function(e){e.src!==this.props.src?this.setState({loadState:fe.notLoaded}):this.state.loadState===fe.loaded&&this._computeCoverStyle(e)},t.prototype.componentDidUpdate=function(e,t){this._checkImageLoaded(),this.props.onLoadingStateChange&&t.loadState!==this.state.loadState&&this.props.onLoadingStateChange(this.state.loadState)},t.prototype.render=function(){var e=ve(this.props,ye,["width","height"]),t=this.props,n=t.src,r=t.alt,i=t.width,a=t.height,s=t.shouldFadeIn,l=t.shouldStartVisible,u=t.className,c=t.imageFit,p=t.role,h=t.maximizeFrame,f=t.styles,m=t.theme,g=this.state.loadState,y=void 0!==this.props.coverStyle?this.props.coverStyle:this._coverStyle,v=be(f,{theme:m,className:u,width:i,height:a,maximizeFrame:h,shouldFadeIn:s,shouldStartVisible:l,isLoaded:g===fe.loaded||g===fe.notLoaded&&this.props.shouldStartVisible,isLandscape:y===he.landscape,isCenter:c===pe.center,isCenterContain:c===pe.centerContain,isCenterCover:c===pe.centerCover,isContain:c===pe.contain,isCover:c===pe.cover,isNone:c===pe.none,isError:g===fe.error,isNotImageFit:void 0===c});return o.createElement("div",{className:v.root,style:{width:i,height:a},ref:this._frameElement},o.createElement("img",d({},e,{onLoad:this._onImageLoaded,onError:this._onImageError,key:"fabricImage"+this.props.src||"",className:v.image,ref:this._imageElement,src:n,alt:r,role:p})))},t.prototype._checkImageLoaded=function(){var e=this.props.src;this.state.loadState===fe.notLoaded&&this._imageElement.current&&(e&&this._imageElement.current.naturalWidth>0&&this._imageElement.current.naturalHeight>0||this._imageElement.current.complete&&t._svgRegex.test(e))&&(this._computeCoverStyle(this.props),this.setState({loadState:fe.loaded}))},t.prototype._computeCoverStyle=function(e){var t=e.imageFit,n=e.width,o=e.height;if((t===pe.cover||t===pe.contain||t===pe.centerContain||t===pe.centerCover)&&void 0===this.props.coverStyle&&this._imageElement.current&&this._frameElement.current){var r;r=n&&o&&t!==pe.centerContain&&t!==pe.centerCover?n/o:this._frameElement.current.clientWidth/this._frameElement.current.clientHeight;var i=this._imageElement.current.naturalWidth/this._imageElement.current.naturalHeight;this._coverStyle=i>r?he.landscape:he.portrait}},t.defaultProps={shouldFadeIn:!0},t._svgRegex=/\.svg$/i,t}(o.Component);function Se(){for(var e=[],t=0;t0&&o>t)&&(n=Ut(),o=0,r=Ft),s=n;for(var l=0;l-1;e[o]=i?r:Gt(e[o]||{},r,n)}else e[o]=r}return n.pop(),e}var zt,Kt={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"},qt=(n("5AgF"),{elevation4:"0 0 5px 0 rgba(0,0,0,.4)",elevation8:"0 0 5px 0 rgba(0,0,0,.4)",elevation16:"0 0 5px 0 rgba(0,0,0,.4)",elevation64:"0 0 5px 0 rgba(0,0,0,.4)",roundedCorner2:"0px"}),Vt=Xt({palette:mt,semanticColors:Yt(mt,!1,!1),fonts:Nt,isInverted:!1,disableGlobalClassNames:!1});if(!E.getSettings(["theme"]).theme){var Qt=y();Qt&&Qt.FabricConfig&&Qt.FabricConfig.theme&&(Vt=Xt(Qt.FabricConfig.theme)),E.applySettings(((zt={}).theme=Vt,zt))}function Xt(e,t){void 0===t&&(t=!1);var n=d({},mt,e.palette);e.palette&&e.palette.accent||(n.accent=n.themePrimary);var o=d({},Yt(n,!!e.isInverted,t),e.semanticColors),r=d({},Nt);if(e.defaultFontStyle)for(var i=0,a=Object.keys(r);io&&nn&&r0&&t<4&&e.push(n)}),this.setState({RenderedNews:e,Next:3,Count:1,UpdateCount:0})},t.prototype.componentDidUpdate=function(e){var t=[],n=0;return e.News!==this.props.News?(this.props.News.map(function(e){(n+=1)>0&&n<4&&t.push(e)}),this.setState({RenderedNews:t,Next:3,Count:1,UpdateCount:0}),!0):this.props.News.length>0&&this.props.News.length>this.state.RenderedNews.length&&this.state.UpdateCount<4?(this.props.News.map(function(e){(n+=1)>0&&n<4&&t.push(e)}),this.setState({RenderedNews:t,Next:3,Count:1,UpdateCount:this.state.UpdateCount+1}),!0):void 0},t.prototype.render=function(){var e,t=this;switch(this.state.RenderedNews.length){case 1:e="246px";break;case 2:e="435px";break;case 3:e="624px"}return o.createElement("div",{className:"SingleStyle_d4a3edcf"},o.createElement("div",{className:"SingleStyleContainer_d4a3edcf",style:{height:e}},o.createElement("div",null,this.state.RenderedNews.map(function(e){return o.createElement("div",{className:"NewsContainer_d4a3edcf",style:{boxShadow:"rgb(0 0 0 / 16%) 0px 1px 4px, rgb(0 0 0 / 10%) 0px 0px 1px"}},o.createElement("div",{className:"ImgContainer_d4a3edcf"},o.createElement("img",{src:e.Thumbnail,className:"Image_d4a3edcf"})),o.createElement("div",{className:"NewsBody_d4a3edcf"},o.createElement("div",{className:"TitleContainer_d4a3edcf"},o.createElement("a",{className:"TitleStyling_d4a3edcf",href:e.Url},e.Title)),o.createElement("div",{className:"DescriptionContainer_d4a3edcf"},e.Description),o.createElement("div",{className:"IconContainer_d4a3edcf"},o.createElement(an,{className:ln,iconName:"Like"}),o.createElement("label",{className:"IconLabelStyling_d4a3edcf"},e.Likes),o.createElement(an,{style:{marginLeft:"10px"},className:ln,iconName:"Comment"}),o.createElement("label",{className:"IconLabelStyling_d4a3edcf"},e.Comments)),o.createElement("div",{className:"AuthorContainer_d4a3edcf"},t.props.AuthorToggle?o.createElement(o.Fragment,null):e.Author," Created ",e.Created)))})),o.createElement("div",{className:"NavigationContainer_d4a3edcf"},o.createElement("button",{disabled:3===this.state.Next,style:{boxShadow:"0 1px 4px rgb(0 0 0 / 30%), 0 0 40px rgb(0 0 0 / 10%)"},className:"NavigationLeftButtonStyling_d4a3edcf",onClick:function(){return t.Back(t.props.News)}},"Back"),o.createElement("button",{disabled:this.state.Next>=this.props.News.length,style:{boxShadow:"0 1px 4px rgb(0 0 0 / 30%), 0 0 40px rgb(0 0 0 / 10%)"},className:"NavigationRightButtonStyling_d4a3edcf",onClick:function(){return t.Next(t.props.News)}},"Next"),o.createElement("div",{className:"NavigationPageNumStyling_d4a3edcf"},this.state.Count," out of ",Math.ceil(this.props.News.length/3)))))},t}(o.Component),cn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),dn=Se({fontSize:15,height:15,width:15}),pn=function(e){function t(t){var n=e.call(this,t)||this;return n.state={News:[],RenderedNews:[],UpdateCount:0,Next:3,Count:1,Reload:!0},n}return cn(t,e),t.prototype.Next=function(e){var t=[],n=0,o=this.state.Next,r=o+4;e.map(function(e){(n+=1)>o&&nn&&r0&&t<4&&e.push(n)}),this.setState({RenderedNews:e,Next:3,Count:1,UpdateCount:0})},t.prototype.componentDidUpdate=function(e){var t=[],n=0;return e.News!==this.props.News?(this.props.News.map(function(e){(n+=1)>0&&n<4&&t.push(e)}),this.setState({RenderedNews:t,Next:3,Count:1,UpdateCount:0}),!0):this.props.News.length>0&&this.props.News.length>this.state.RenderedNews.length&&this.state.UpdateCount<4?(this.props.News.map(function(e){(n+=1)>0&&n<4&&t.push(e)}),this.setState({RenderedNews:t,Next:3,Count:1,UpdateCount:this.state.UpdateCount+1}),!0):void 0},t.prototype.render=function(){var e=this,t=0;return o.createElement("div",{className:"StackStyle_d4a3edcf"},o.createElement("div",{className:"StackStyleContainer_d4a3edcf"},o.createElement("div",null,this.state.RenderedNews.map(function(n){return t+=1,o.createElement("div",{className:"NewsContainer_d4a3edcf",style:{boxShadow:"rgb(0 0 0 / 13%) 0px 1.6px 3.6px 0px, rgb(0 0 0 / 11%) 0px 0.3px 0.9px 0px",marginRight:3===t?"0px":"7px"}},o.createElement("div",{className:"ImgContainer_d4a3edcf"},o.createElement("img",{src:n.Thumbnail,className:"Image_d4a3edcf"})),o.createElement("div",{className:"NewsBody_d4a3edcf"},o.createElement("div",{className:"TitleContainer_d4a3edcf"},o.createElement("a",{className:"TitleStyling_d4a3edcf",href:n.Url},n.Title)),o.createElement("div",{className:"DescriptionContainer_d4a3edcf"},n.Description?n.Description.substring(0,182)+"…":"…"),o.createElement("div",{className:"AuthorContainer_d4a3edcf"},e.props.AuthorToggle?o.createElement(o.Fragment,null):o.createElement("div",null," ",n.Author," ",o.createElement("br",null)," ")," ",n.Created),o.createElement("div",{className:"IconContainer_d4a3edcf"},o.createElement(an,{className:dn,iconName:"Like"}),o.createElement("label",{className:"IconLabelStyling_d4a3edcf"},n.Likes),o.createElement(an,{style:{marginLeft:"10px"},className:dn,iconName:"Comment"}),o.createElement("label",{className:"IconLabelStyling_d4a3edcf"},n.Comments))))})),o.createElement("br",null),o.createElement("div",{className:"NavigationContainer_d4a3edcf"},o.createElement("button",{disabled:3===this.state.Next,style:{boxShadow:"0 1px 4px rgb(0 0 0 / 30%), 0 0 40px rgb(0 0 0 / 10%)"},className:"NavigationLeftButtonStyling_d4a3edcf",onClick:function(){return e.Back(e.props.News)}},"Back"),o.createElement("button",{disabled:this.state.Next>=this.props.News.length,style:{boxShadow:"0 1px 4px rgb(0 0 0 / 30%), 0 0 40px rgb(0 0 0 / 10%)"},className:"NavigationRightButtonStyling_d4a3edcf",onClick:function(){return e.Next(e.props.News)}},"Next"),o.createElement("div",{className:"NavigationPageNumStyling_d4a3edcf"},this.state.Count," out of ",Math.ceil(this.props.News.length/3)))))},t}(o.Component),hn=n("5UI3"),fn=function(e,t,n,o){return new(n||(n=Promise))(function(r,i){function a(e){try{l(o.next(e))}catch(e){i(e)}}function s(e){try{l(o.throw(e))}catch(e){i(e)}}function l(e){e.done?r(e.value):new n(function(t){t(e.value)}).then(a,s)}l((o=o.apply(e,t||[])).next())})},mn=function(e,t){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]0?this.Get("Update"):this.Get("Default"),this.setState({Reload:!this.state.Reload}))},t.prototype.Get=function(e){return vn(this,void 0,void 0,function(){var t,n,o=this;return bn(this,function(r){switch(r.label){case 0:return t=[],void 0===this.props.Site||this.props.Site.length<1||"Default"===e&&this.props.Site.length<1?(n=this.props.context.pageContext.web.absoluteUrl,[4,this._spservices.getInfo(n)]):[3,2];case 1:return r.sent().map(function(e){return vn(o,void 0,void 0,function(){var o,r;return bn(this,function(i){switch(i.label){case 0:return[4,this._spservices.getComments(n,e.Id)];case 1:return o=i.sent(),[4,this._spservices.getLikes(n,e.Id)];case 2:return r=i.sent(),t.push({Author:e.Author,Title:e.Title,Description:e.Description,Id:e.Id,Created:e.Created,Thumbnail:e.BannerImageUrl,Url:e.Url,Comments:o,Likes:r}),!0===this.state.Reload?this.setState({News:t,Reload:!1}):this.setState({News:t}),[2]}})})}),[3,3];case 2:this.props.Site.map(function(e){return vn(o,void 0,void 0,function(){var o=this;return bn(this,function(r){switch(r.label){case 0:return n=e.url,[4,this._spservices.getInfo(n)];case 1:return r.sent().map(function(n){return vn(o,void 0,void 0,function(){var o,r;return bn(this,function(i){switch(i.label){case 0:return[4,this._spservices.getComments(e.url,n.Id)];case 1:return o=i.sent(),[4,this._spservices.getLikes(e.url,n.Id)];case 2:return r=i.sent(),t.push({Author:n.Author,Title:n.Title,Description:n.Description,Id:n.Id,Created:n.Created,Thumbnail:n.BannerImageUrl,Url:n.Url,Comments:o,Likes:r}),!0===this.state.Reload?this.setState({News:t,Reload:!1}):this.setState({News:t}),[2]}})})}),[2]}})})}),r.label=3;case 3:return this.setState({News:t}),[2]}})})},t.prototype.render=function(){return o.createElement("div",{style:{height:"100%",width:"100%"}},this.props.StyleToggle?o.createElement(pn,{News:this.state.News,AuthorToggle:this.props.AuthorToggle,Reload:this.state.Reload}):o.createElement(un,{News:this.state.News,AuthorToggle:this.props.AuthorToggle,Reload:this.state.Reload}))},t}(o.Component),Sn=n("vlQI"),Cn=function(){function e(){}return e.searchPeople=function(t,n){return new Promise(function(t){t(e._results)})},e._results=[],e}(),wn=function(){function e(){}return e.prototype.searchSites=function(e,t){if(i.Environment.type===i.EnvironmentType.Local)return this.searchSitesFromMock(e,t);var n=e.pageContext.web.absoluteUrl;"/"!==e.pageContext.web.serverRelativeUrl&&(n=e.pageContext.web.absoluteUrl.replace(e.pageContext.web.serverRelativeUrl,""));var o=e.pageContext.web.absoluteUrl+"/_api/search/query?querytext='contentclass:STS_Site contentclass:STS_Web Title:"+t+"* Path:"+n+"*'&selectproperties='SiteId,SiteID,WebId,Title,Path'&rowlimit=5";return e.spHttpClient.get(o,Sn.SPHttpClient.configurations.v1).then(function(e){return e.json().then(function(e){return e.PrimaryQueryResult.RelevantResults.Table.Rows.map(function(e){var t={};return e.Cells.forEach(function(e){switch(e.Key){case"Title":t.title=e.Value;break;case"Path":t.url=e.Value;break;case"SiteId":case"SiteID":t.id=e.Value;break;case"WebId":t.webId=e.Value}}),t})})})},e.prototype.searchSitesFromMock=function(e,t){return Cn.searchPeople(e.pageContext.web.absoluteUrl).then(function(){return[{title:"Contoso Site",id:"611453e1-5b5d-45ec-94aa-a180a02df897",url:e.pageContext.web.absoluteUrl}]})},e}();n("Mmr5");function Tn(){for(var e=[],t=0;t0){n.subComponentStyles={};var p=n.subComponentStyles,h=function(e){if(o.hasOwnProperty(e)){var t=o[e];p[e]=function(e){return Tn.apply(void 0,t.map(function(t){return"function"==typeof t?t(e):t}))}}};for(var u in o)h(u)}return n}function In(e){for(var t=[],n=1;n=0)i(s.split(" "));else{var l=r.argsFromClassName(s);l?i(l):-1===n.indexOf(s)&&n.push(s)}else Array.isArray(s)?i(s):"object"==typeof s&&o.push(s)}}return i(e),{classes:n,objects:o}}function qn(e){Gn!==e&&(Gn=e)}function Vn(){return void 0===Gn&&(Gn="undefined"!=typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),Gn}function Qn(){return{rtl:Vn()}}Gn=Vn();var Xn,Yn={},Jn={"user-select":1};function Zn(e,t){var n=function(){if(!Xn){var e="undefined"!=typeof document?document:void 0,t="undefined"!=typeof navigator?navigator:void 0,n=t?t.userAgent.toLowerCase():void 0;Xn=e?{isWebkit:!(!e||!("WebkitAppearance"in e.documentElement.style)),isMoz:!!(n&&n.indexOf("firefox")>-1),isOpera:!!(n&&n.indexOf("opera")>-1),isMs:!(!t||!/rv:11.0/i.test(t.userAgent)&&!/Edge\/\d./i.test(navigator.userAgent))}:{isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return Xn}(),o=e[t];if(Jn[o]){var r=e[t+1];Jn[o]&&(n.isWebkit&&e.push("-webkit-"+o,r),n.isMoz&&e.push("-moz-"+o,r),n.isMs&&e.push("-ms-"+o,r),n.isOpera&&e.push("-o-"+o,r))}}var $n,eo=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function to(e,t){var n=e[t],o=e[t+1];if("number"==typeof o){var r=eo.indexOf(n)>-1,i=n.indexOf("--")>-1,a=r||i?"":"px";e[t+1]=""+o+a}}var no=(($n={}).left="right",$n.right="left",$n),oo={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function ro(e,t,n){if(e.rtl){var o=t[n];if(!o)return;var r=t[n+1];if("string"==typeof r&&r.indexOf("@noflip")>=0)t[n+1]=r.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(o.indexOf("left")>=0)t[n]=o.replace("left","right");else if(o.indexOf("right")>=0)t[n]=o.replace("right","left");else if(String(r).indexOf("left")>=0)t[n+1]=r.replace("left","right");else if(String(r).indexOf("right")>=0)t[n+1]=r.replace("right","left");else if(no[o])t[n]=no[o];else if(oo[r])t[n+1]=oo[r];else switch(o){case"margin":case"padding":t[n+1]=function(e){if("string"==typeof e){var t=e.split(" ");if(4===t.length)return t[0]+" "+t[3]+" "+t[2]+" "+t[1]}return e}(r);break;case"box-shadow":t[n+1]=function(e,t){var n=e.split(" "),o=parseInt(n[0],10);return n[0]=n[0].replace(String(o),String(-1*o)),n.join(" ")}(r)}}}function io(e){var t=e&&e["&"];return t?t.displayName:void 0}var ao,so=/\:global\((.+?)\)/g;function lo(e,t){return e.indexOf(":global(")>=0?e.replace(so,"$1"):0===e.indexOf(":")?t+e:e.indexOf("&")<0?t+" "+e:e}function uo(e,t,n,o){void 0===t&&(t={__order:[]}),0===n.indexOf("@")?co([o],t,n=n+"{"+e):n.indexOf(",")>-1?function(e){if(!so.test(e))return e;for(var t=[],n=/\:global\((.+?)\)/g,o=null;o=n.exec(e);)o[1].indexOf(",")>-1&&t.push([o.index,o.index+o[0].length,o[1].split(",").map(function(e){return":global("+e.trim()+")"}).join(", ")]);return t.reverse().reduce(function(e,t){var n=t[0],o=t[1],r=t[2];return e.slice(0,n)+r+e.slice(o)},e)}(n).split(",").map(function(e){return e.trim()}).forEach(function(n){return co([o],t,lo(n,e))}):co([o],t,lo(n,e))}function co(e,t,n){void 0===t&&(t={__order:[]}),void 0===n&&(n="&");var o=zn.getInstance(),r=t[n];r||(r={},t[n]=r,t.__order.push(n));for(var i=0,a=e;i(e.cacheSize||50)&&((null===(l=null===(s=xn())||void 0===s?void 0:s.FabricConfig)||void 0===l?void 0:l.enableClassNameCacheFullWarning)&&(console.warn("Styles are being recalculated too frequently. Cache miss rate is "+n+"/"+o+"."),console.trace()),t.clear(),n=0,e.disableCaching=!0),u.__retval__}}function Eo(e,t){return t=function(e){switch(e){case void 0:return"__undefined__";case null:return"__null__";default:return e}}(t),e.has(t)||e.set(t,new Map),e.get(t)}function xo(e,t){if("function"==typeof t)if(t.__cachedInputs__)for(var n=0,o=t.__cachedInputs__;n=0||0===l.indexOf("data-")||0===l.indexOf("aria-"))||n&&-1!==(null===(o=n)||void 0===o?void 0:o.indexOf(l))||(i[l]=e[l])}return i}!function(e){e[e.center=0]="center",e[e.contain=1]="contain",e[e.cover=2]="cover",e[e.none=3]="none",e[e.centerCover=4]="centerCover",e[e.centerContain=5]="centerContain"}(Po||(Po={})),function(e){e[e.landscape=0]="landscape",e[e.portrait=1]="portrait"}(ko||(ko={})),function(e){e[e.notLoaded=0]="notLoaded",e[e.loaded=1]="loaded",e[e.error=2]="error",e[e.errorLoaded=3]="errorLoaded"}(Oo||(Oo={}));var Ho=Io(),Go=function(e){function t(t){var n=e.call(this,t)||this;return n._coverStyle=ko.portrait,n._imageElement=o.createRef(),n._frameElement=o.createRef(),n._onImageLoaded=function(e){var t=n.props,o=t.src,r=t.onLoad;r&&r(e),n._computeCoverStyle(n.props),o&&n.setState({loadState:Oo.loaded})},n._onImageError=function(e){n.props.onError&&n.props.onError(e),n.setState({loadState:Oo.error})},n.state={loadState:Oo.notLoaded},n}return c(t,e),t.prototype.UNSAFE_componentWillReceiveProps=function(e){e.src!==this.props.src?this.setState({loadState:Oo.notLoaded}):this.state.loadState===Oo.loaded&&this._computeCoverStyle(e)},t.prototype.componentDidUpdate=function(e,t){this._checkImageLoaded(),this.props.onLoadingStateChange&&t.loadState!==this.state.loadState&&this.props.onLoadingStateChange(this.state.loadState)},t.prototype.render=function(){var e=Wo(this.props,jo,["width","height"]),t=this.props,n=t.src,r=t.alt,i=t.width,a=t.height,s=t.shouldFadeIn,l=t.shouldStartVisible,u=t.className,c=t.imageFit,p=t.role,h=t.maximizeFrame,f=t.styles,m=t.theme,g=this.state.loadState,y=void 0!==this.props.coverStyle?this.props.coverStyle:this._coverStyle,v=Ho(f,{theme:m,className:u,width:i,height:a,maximizeFrame:h,shouldFadeIn:s,shouldStartVisible:l,isLoaded:g===Oo.loaded||g===Oo.notLoaded&&this.props.shouldStartVisible,isLandscape:y===ko.landscape,isCenter:c===Po.center,isCenterContain:c===Po.centerContain,isCenterCover:c===Po.centerCover,isContain:c===Po.contain,isCover:c===Po.cover,isNone:c===Po.none,isError:g===Oo.error,isNotImageFit:void 0===c});return o.createElement("div",{className:v.root,style:{width:i,height:a},ref:this._frameElement},o.createElement("img",d({},e,{onLoad:this._onImageLoaded,onError:this._onImageError,key:"fabricImage"+this.props.src||"",className:v.image,ref:this._imageElement,src:n,alt:r,role:p})))},t.prototype._checkImageLoaded=function(){var e=this.props.src;this.state.loadState===Oo.notLoaded&&this._imageElement.current&&(e&&this._imageElement.current.naturalWidth>0&&this._imageElement.current.naturalHeight>0||this._imageElement.current.complete&&t._svgRegex.test(e))&&(this._computeCoverStyle(this.props),this.setState({loadState:Oo.loaded}))},t.prototype._computeCoverStyle=function(e){var t=e.imageFit,n=e.width,o=e.height;if((t===Po.cover||t===Po.contain||t===Po.centerContain||t===Po.centerCover)&&void 0===this.props.coverStyle&&this._imageElement.current&&this._frameElement.current){var r;r="number"==typeof n&&"number"==typeof o&&t!==Po.centerContain&&t!==Po.centerCover?n/o:this._frameElement.current.clientWidth/this._frameElement.current.clientHeight;var i=this._imageElement.current.naturalWidth/this._imageElement.current.naturalHeight;this._coverStyle=i>r?ko.landscape:ko.portrait}},t.defaultProps={shouldFadeIn:!0},t._svgRegex=/\.svg$/i,t}(o.Component);function zo(){for(var e=[],t=0;t0&&i>t)&&(r=Zr(),i=0,a=Kr),l=r;for(var u=0;u-1;e[o]=i?r:gi(e[o]||{},r,n)}}return n.pop(),e}function yi(e,t,n,o,r){return void 0===r&&(r=!1),function(e,t){var n="";return!0===t&&(n=" /* @deprecated */"),e.listTextColor=e.listText+n,e.menuItemBackgroundChecked+=n,e.warningHighlight+=n,e.warningText=e.messageText+n,e.successText+=n,e}(vi(e,t,d({primaryButtonBorder:"transparent",errorText:o?"#F1707B":"#a4262c",messageText:o?"#F3F2F1":"#323130",messageLink:o?"#6CB8F6":"#005A9E",messageLinkHovered:o?"#82C7FF":"#004578",infoIcon:o?"#C8C6C4":"#605e5c",errorIcon:o?"#F1707B":"#A80000",blockingIcon:o?"#442726":"#FDE7E9",warningIcon:o?"#C8C6C4":"#797775",severeWarningIcon:o?"#FCE100":"#D83B01",successIcon:o?"#92C353":"#107C10",infoBackground:o?"#323130":"#f3f2f1",errorBackground:o?"#442726":"#FDE7E9",blockingBackground:o?"#442726":"#FDE7E9",warningBackground:o?"#433519":"#FFF4CE",severeWarningBackground:o?"#4F2A0F":"#FED9CC",successBackground:o?"#393D1B":"#DFF6DD",warningHighlight:o?"#fff100":"#ffb900",successText:o?"#92c353":"#107C10"},n),o),r)}function vi(e,t,n,o,r){var i,a,s;void 0===r&&(r=!1);var l={},u=e||{},c=u.white,p=u.black,h=u.themePrimary,f=u.themeDark,m=u.themeDarker,g=u.themeDarkAlt,y=u.themeLighter,v=u.neutralLight,b=u.neutralLighter,_=u.neutralDark,S=u.neutralQuaternary,C=u.neutralQuaternaryAlt,w=u.neutralPrimary,T=u.neutralSecondary,I=u.neutralSecondaryAlt,E=u.neutralTertiary,x=u.neutralTertiaryAlt,P=u.neutralLighterAlt,k=u.accent;return c&&(l.bodyBackground=c,l.bodyFrameBackground=c,l.accentButtonText=c,l.buttonBackground=c,l.primaryButtonText=c,l.primaryButtonTextHovered=c,l.primaryButtonTextPressed=c,l.inputBackground=c,l.inputForegroundChecked=c,l.listBackground=c,l.menuBackground=c,l.cardStandoutBackground=c),p&&(l.bodyTextChecked=p,l.buttonTextCheckedHovered=p),h&&(l.link=h,l.primaryButtonBackground=h,l.inputBackgroundChecked=h,l.inputIcon=h,l.inputFocusBorderAlt=h,l.menuIcon=h,l.menuHeader=h,l.accentButtonBackground=h),f&&(l.primaryButtonBackgroundPressed=f,l.inputBackgroundCheckedHovered=f,l.inputIconHovered=f),m&&(l.linkHovered=m),g&&(l.primaryButtonBackgroundHovered=g),y&&(l.inputPlaceholderBackgroundChecked=y),v&&(l.bodyBackgroundChecked=v,l.bodyFrameDivider=v,l.bodyDivider=v,l.variantBorder=v,l.buttonBackgroundCheckedHovered=v,l.buttonBackgroundPressed=v,l.listItemBackgroundChecked=v,l.listHeaderBackgroundPressed=v,l.menuItemBackgroundPressed=v,l.menuItemBackgroundChecked=v),b&&(l.bodyBackgroundHovered=b,l.buttonBackgroundHovered=b,l.buttonBackgroundDisabled=b,l.buttonBorderDisabled=b,l.primaryButtonBackgroundDisabled=b,l.disabledBackground=b,l.listItemBackgroundHovered=b,l.listHeaderBackgroundHovered=b,l.menuItemBackgroundHovered=b),S&&(l.primaryButtonTextDisabled=S,l.disabledSubtext=S),C&&(l.listItemBackgroundCheckedHovered=C),E&&(l.disabledBodyText=E,l.variantBorderHovered=(null===(i=n)||void 0===i?void 0:i.variantBorderHovered)||E,l.buttonTextDisabled=E,l.inputIconDisabled=E,l.disabledText=E),w&&(l.bodyText=w,l.actionLink=w,l.buttonText=w,l.inputBorderHovered=w,l.inputText=w,l.listText=w,l.menuItemText=w),P&&(l.bodyStandoutBackground=P,l.defaultStateBackground=P),_&&(l.actionLinkHovered=_,l.buttonTextHovered=_,l.buttonTextChecked=_,l.buttonTextPressed=_,l.inputTextHovered=_,l.menuItemTextHovered=_),T&&(l.bodySubtext=T,l.focusBorder=T,l.inputBorder=T,l.smallInputBorder=T,l.inputPlaceholderText=T),I&&(l.buttonBorder=I),x&&(l.disabledBodySubtext=x,l.disabledBorder=x,l.buttonBackgroundChecked=x,l.menuDivider=x),k&&(l.accentButtonBackground=k),(null===(a=t)||void 0===a?void 0:a.elevation4)&&(l.cardShadow=t.elevation4),!o&&(null===(s=t)||void 0===s?void 0:s.elevation8)?l.cardShadowHovered=t.elevation8:l.variantBorderHovered&&(l.cardShadowHovered="0 0 1px "+l.variantBorderHovered),d(d({},l),n)}!function(e){if(e){var t=e+"/fonts";fi(t,Or.Thai,"leelawadeeui-thai","leelawadeeui"),fi(t,Or.Arabic,"segoeui-arabic"),fi(t,Or.Cyrillic,"segoeui-cyrillic"),fi(t,Or.EastEuropean,"segoeui-easteuropean"),fi(t,Or.Greek,"segoeui-greek"),fi(t,Or.Hebrew,"segoeui-hebrew"),fi(t,Or.Vietnamese,"segoeui-vietnamese"),fi(t,Or.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),fi(t,Nr.Selawik,"selawik","selawik"),fi(t,Or.Armenian,"segoeui-armenian"),fi(t,Or.Georgian,"segoeui-georgian"),hi("Leelawadee UI Web",t+"/leelawadeeui-thai/leelawadeeui-semilight",Dr.light),hi("Leelawadee UI Web",t+"/leelawadeeui-thai/leelawadeeui-bold",Dr.semibold)}}(null!=(di=null===(ci=null===(ui=xn())||void 0===ui?void 0:ui.FabricConfig)||void 0===ci?void 0:ci.fontBaseUrl)?di:"https://static2.sharepointonline.com/files/fabric/assets");var bi={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"};function _i(e,t){void 0===e&&(e={}),void 0===t&&(t=!1);var n=!!e.isInverted;return function(e,t){var n,o,r,i;void 0===t&&(t={});var a=mi({},e,t,{semanticColors:vi(t.palette,t.effects,t.semanticColors,void 0===t.isInverted?e.isInverted:t.isInverted)});if((null===(n=t.palette)||void 0===n?void 0:n.themePrimary)&&!(null===(o=t.palette)||void 0===o?void 0:o.accent)&&(a.palette.accent=t.palette.themePrimary),t.defaultFontStyle)for(var s=0,l=Object.keys(a.fonts);s10?" (+ "+(Oi.length-10)+" more)":"")),Ni=void 0,Oi=[]},2e3)))}var Di=n("S/Ex");Object(Di.a)("@uifabric/styling","7.18.1"),Ci();var Mi={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"},Fi=jn(Go,function(e){var t=e.className,n=e.width,o=e.height,r=e.maximizeFrame,i=e.isLoaded,a=e.shouldFadeIn,s=e.shouldStartVisible,l=e.isLandscape,u=e.isCenter,c=e.isContain,d=e.isCover,p=e.isCenterContain,h=e.isCenterCover,f=e.isNone,m=e.isError,g=e.isNotImageFit,y=e.theme,v=ei(Mi,y),b={position:"absolute",left:"50% /* @noflip */",top:"50%",transform:"translate(-50%,-50%)"},_=xn(),S=void 0!==_&&void 0===_.navigator.msMaxTouchPoints,C=c&&l||d&&!l?{width:"100%",height:"auto"}:{width:"auto",height:"100%"};return{root:[v.root,y.fonts.medium,{overflow:"hidden"},r&&[v.rootMaximizeFrame,{height:"100%",width:"100%"}],i&&a&&!s&&Fr.fadeIn400,(u||c||d||p||h)&&{position:"relative"},t],image:[v.image,{display:"block",opacity:0},i&&["is-loaded",{opacity:1}],u&&[v.imageCenter,b],c&&[v.imageContain,S&&{width:"100%",height:"100%",objectFit:"contain"},!S&&C,b],d&&[v.imageCover,S&&{width:"100%",height:"100%",objectFit:"cover"},!S&&C,b],p&&[v.imageCenterContain,l&&{maxWidth:"100%"},!l&&{maxHeight:"100%"},b],h&&[v.imageCenterCover,l&&{maxHeight:"100%"},!l&&{maxWidth:"100%"},b],f&&[v.imageNone,{width:"auto",height:"auto"}],g&&[!!n&&!o&&{height:"auto",width:"100%"},!n&&!!o&&{height:"100%",width:"auto"},!!n&&!!o&&{height:"100%",width:"100%"}],l&&v.imageLandscape,!l&&v.imagePortrait,!i&&"is-notLoaded",a&&"is-fadeIn",m&&"is-error"]}},void 0,{scope:"Image"},!0),Li=vo({root:{display:"inline-block"},placeholder:["ms-Icon-placeHolder",{width:"1em"}],image:["ms-Icon-imageContainer",{overflow:"hidden"}]});function Ai(){for(var e=[],t=0;t=a&&(!t||s)?(u=n,c&&(o.clearTimeout(c),c=null),r=e.apply(o._parent,i)):null===c&&l&&(c=o.setTimeout(d,h)),r};return function(){for(var e=[],t=0;t=s&&(n=!0),d=t);var r=t-d,a=s-r,f=t-p,y=!1;return null!==c&&(f>=c&&h?y=!0:a=Math.min(a,c-f)),r>=s||y||n?m(t):null!==h&&e||!u||(h=o.setTimeout(g,a)),i},y=function(){return!!h},v=function(){for(var e=[],t=0;t-1)for(var a=n.split(/[ ,]+/),s=0;s1?e[1]:""}return this.__className},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_disposables",{get:function(){return this.__disposables||(this.__disposables=[]),this.__disposables},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_async",{get:function(){return this.__async||(this.__async=new la(this),this._disposables.push(this.__async)),this.__async},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_events",{get:function(){return this.__events||(this.__events=new ha(this),this._disposables.push(this.__events)),this.__events},enumerable:!0,configurable:!0}),t.prototype._resolveRef=function(e){var t=this;return this.__resolves||(this.__resolves={}),this.__resolves[e]||(this.__resolves[e]=function(n){return t[e]=n}),this.__resolves[e]},t.prototype._updateComponentRef=function(e,t){void 0===t&&(t={}),e&&t&&e.componentRef!==t.componentRef&&(this._setComponentRef(e.componentRef,null),this._setComponentRef(t.componentRef,this))},t.prototype._warnDeprecations=function(e){this.className,this.props},t.prototype._warnMutuallyExclusive=function(e){this.className,this.props},t.prototype._warnConditionallyRequiredProps=function(e,t,n){this.className,this.props},t.prototype._setComponentRef=function(e,t){!this._skipComponentRefResolution&&e&&("function"==typeof e&&e(t),"object"==typeof e&&(e.current=t))}}(o.Component);var ga=((pa={})[38]=1,pa[40]=1,pa[37]=1,pa[39]=1,pa[36]=1,pa[35]=1,pa[9]=1,pa[33]=1,pa[34]=1,pa),ya=new WeakMap;function va(e,t){var n,o=ya.get(e);return n=o?o+t:1,ya.set(e,n),n}var ba=function(e){var t;return t=e.rootRef,o.useEffect(function(){var e,n,o=xn(null===(e=t)||void 0===e?void 0:e.current);if(o&&!0!==(null===(n=o.FabricConfig)||void 0===n?void 0:n.disableFocusRects)){var r=va(o,1);return r<=1&&(o.addEventListener("mousedown",_a,!0),o.addEventListener("pointerdown",Sa,!0),o.addEventListener("keydown",Ca,!0)),function(){var e;o&&!0!==(null===(e=o.FabricConfig)||void 0===e?void 0:e.disableFocusRects)&&0===(r=va(o,-1))&&(o.removeEventListener("mousedown",_a,!0),o.removeEventListener("pointerdown",Sa,!0),o.removeEventListener("keydown",Ca,!0))}}},[t]),null};function _a(e){Ur(!1,e.target)}function Sa(e){"mouse"!==e.pointerType&&Ur(!1,e.target)}function Ca(e){var t;t=e.which,ga[t]&&Ur(!0,e.target)}function wa(){for(var e=[],t=0;t=0,a=!!e&&"false"!==r&&("A"===e.tagName||"BUTTON"===e.tagName||"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||"true"===r||i);return t?-1!==n&&a:a}function Fa(e){return!!(e&&e.getAttribute&&e.getAttribute("data-focuszone-id"))}function La(e){return!(!e||!e.getAttribute||"true"!==e.getAttribute("data-is-sub-focuszone"))}function Aa(e,t){return"true"!==function(e,t){var n=aa(e,function(e){return e.hasAttribute(t)});return n&&n.getAttribute(t)}(e,t)}!function(e){e[e.Normal=0]="Normal",e[e.Divider=1]="Divider",e[e.Header=2]="Header",e[e.Section=3]="Section"}(Ia||(Ia={})),function(e){e[e.vertical=0]="vertical",e[e.horizontal=1]="horizontal",e[e.bidirectional=2]="bidirectional",e[e.domOrder=3]="domOrder"}(Ea||(Ea={}));var Ba,ja,Ua=void 0;function Wa(e){var t=function(e){var t;return"function"==typeof Event?t=new Event("MouseEvents"):(t=document.createEvent("Event")).initEvent("MouseEvents",!0,!0),t}();t.initEvent("click",!0,!0),e.dispatchEvent(t)}function Ha(){if(void 0===Ba){var e=document.createElement("div");e.style.setProperty("width","100px"),e.style.setProperty("height","100px"),e.style.setProperty("overflow","scroll"),e.style.setProperty("position","absolute"),e.style.setProperty("top","-9999px"),document.body.appendChild(e),Ba=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return Ba}zo({overflow:"hidden !important"});var Ga,za={},Ka=new Set,qa=["text","number","password","email","tel","url","search"],Va=function(e){function t(t){var n=e.call(this,t)||this;return n._root=o.createRef(),n._mergedRef=Pa(),n._onFocus=function(e){if(!n._portalContainsElement(e.target)){var t,o=n.props,r=o.onActiveElementChanged,i=o.doNotAllowFocusEventToPropagate,a=o.stopFocusPropagation,s=o.onFocusNotification,l=o.onFocus,u=o.shouldFocusInnerElementWhenReceivedFocus,c=o.defaultTabbableElement,d=n._isImmediateDescendantOfZone(e.target);if(d)t=e.target;else for(var p=e.target;p&&p!==n._root.current;){if(Ma(p)&&n._isImmediateDescendantOfZone(p)){t=p;break}p=ia(p,!1)}if(u&&e.target===n._root.current){var h=c&&"function"==typeof c&&c(n._root.current);h&&Ma(h)?(t=h,h.focus()):(n.focus(!0),n._activeElement&&(t=null))}var f=!n._activeElement;t&&t!==n._activeElement&&((d||f)&&n._setFocusAlignment(t,!0,!0),n._activeElement=t,f&&n._updateTabIndexes()),r&&r(n._activeElement,e),(a||i)&&e.stopPropagation(),l?l(e):s&&s()}},n._onBlur=function(){n._setParkedFocus(!1)},n._onMouseDown=function(e){if(!n._portalContainsElement(e.target)&&!n.props.disabled){for(var t=e.target,o=[];t&&t!==n._root.current;)o.push(t),t=ia(t,!1);for(;o.length&&((t=o.pop())&&Ma(t)&&n._setActiveElement(t,!0),!Fa(t)););}},n._onKeyDown=function(e,t){if(!n._portalContainsElement(e.target)){var o=n.props,r=o.direction,i=o.disabled,a=o.isInnerZoneKeystroke,s=o.pagingSupportDisabled,l=o.shouldEnterInnerZone;if(!(i||(n.props.onKeyDown&&n.props.onKeyDown(e),e.isDefaultPrevented()||n._getDocument().activeElement===n._root.current&&n._isInnerZone))){if((l&&l(e)||a&&a(e))&&n._isImmediateDescendantOfZone(e.target)){var u=n._getFirstInnerZone();if(u){if(!u.focus(!0))return}else{if(!La(e.target))return;if(!n.focusElement(Ra(e.target,e.target.firstChild,!0)))return}}else{if(e.altKey)return;switch(e.which){case 32:if(n._tryInvokeClickForFocusable(e.target))break;return;case 37:if(r!==Ea.vertical&&(n._preventDefaultWhenHandled(e),n._moveFocusLeft(t)))break;return;case 39:if(r!==Ea.vertical&&(n._preventDefaultWhenHandled(e),n._moveFocusRight(t)))break;return;case 38:if(r!==Ea.horizontal&&(n._preventDefaultWhenHandled(e),n._moveFocusUp()))break;return;case 40:if(r!==Ea.horizontal&&(n._preventDefaultWhenHandled(e),n._moveFocusDown()))break;return;case 34:if(!s&&n._moveFocusPaging(!0))break;return;case 33:if(!s&&n._moveFocusPaging(!1))break;return;case 9:if(n.props.allowTabKey||1===n.props.handleTabKey||2===n.props.handleTabKey&&n._isElementInput(e.target)){var c;if(n._processingTabKey=!0,c=r!==Ea.vertical&&n._shouldWrapFocus(n._activeElement,"data-no-horizontal-wrap")?(Co(t)?!e.shiftKey:e.shiftKey)?n._moveFocusLeft(t):n._moveFocusRight(t):e.shiftKey?n._moveFocusUp():n._moveFocusDown(),n._processingTabKey=!1,c)break;n.props.shouldResetActiveElementWhenTabFromZone&&(n._activeElement=null)}return;case 36:if(n._isContentEditableElement(e.target)||n._isElementInput(e.target)&&!n._shouldInputLoseFocus(e.target,!1))return!1;var d=n._root.current&&n._root.current.firstChild;if(n._root.current&&d&&n.focusElement(Ra(n._root.current,d,!0)))break;return;case 35:if(n._isContentEditableElement(e.target)||n._isElementInput(e.target)&&!n._shouldInputLoseFocus(e.target,!0))return!1;var p=n._root.current&&n._root.current.lastChild;if(n._root.current&&n.focusElement(Na(n._root.current,p,!0,!0,!0)))break;return;case 13:if(n._tryInvokeClickForFocusable(e.target))break;return;default:return}}e.preventDefault(),e.stopPropagation()}}},n._getHorizontalDistanceFromCenter=function(e,t,o){var r=n._focusAlignment.left||n._focusAlignment.x||0,i=Math.floor(o.top),a=Math.floor(t.bottom),s=Math.floor(o.bottom),l=Math.floor(t.top);return e&&i>a||!e&&s=o.left&&r<=o.left+o.width?0:Math.abs(o.left+o.width/2-r):n._shouldWrapFocus(n._activeElement,"data-no-vertical-wrap")?999999999:-999999999},Yi(n),n._id=oa("FocusZone"),n._focusAlignment={left:0,top:0},n._processingTabKey=!1,n}return c(t,e),t.getOuterZones=function(){return Ka.size},t._onKeyDownCapture=function(e){9===e.which&&Ka.forEach(function(e){return e._updateTabIndexes()})},t.prototype.componentDidMount=function(){var e=this._root.current;if(za[this._id]=this,e){this._windowElement=xn(e);for(var n=ia(e,!1);n&&n!==this._getDocument().body&&1===n.nodeType;){if(Fa(n)){this._isInnerZone=!0;break}n=ia(n,!1)}this._isInnerZone||(Ka.add(this),this._windowElement&&1===Ka.size&&this._windowElement.addEventListener("keydown",t._onKeyDownCapture,!0)),this._root.current&&this._root.current.addEventListener("blur",this._onBlur,!0),this._updateTabIndexes(),this.props.defaultTabbableElement&&"string"==typeof this.props.defaultTabbableElement?this._activeElement=this._getDocument().querySelector(this.props.defaultTabbableElement):this.props.defaultActiveElement&&(this._activeElement=this._getDocument().querySelector(this.props.defaultActiveElement)),this.props.shouldFocusOnMount&&this.focus()}},t.prototype.componentDidUpdate=function(){var e=this._root.current,t=this._getDocument();if(t&&this._lastIndexPath&&(t.activeElement===t.body||null===t.activeElement||!this.props.preventFocusRestoration&&t.activeElement===e)){var n=function(e,t){for(var n=e,o=0,r=t;o-1&&(-1===i||c=0&&c<0)break}}while(r);if(a&&a!==this._activeElement)s=!0,this.focusElement(a);else if(this.props.isCircularNavigation&&o)return e?this.focusElement(Ra(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(Na(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return s},t.prototype._moveFocusDown=function(){var e=this,t=-1,n=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!0,function(o,r){var i=-1,a=Math.floor(r.top),s=Math.floor(o.bottom);return a=s||a===t)&&(t=a,i=n>=r.left&&n<=r.left+r.width?0:Math.abs(r.left+r.width/2-n)),i)})&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},t.prototype._moveFocusUp=function(){var e=this,t=-1,n=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!1,function(o,r){var i=-1,a=Math.floor(r.bottom),s=Math.floor(r.top),l=Math.floor(o.top);return a>l?e._shouldWrapFocus(e._activeElement,"data-no-vertical-wrap")?999999999:-999999999:((-1===t&&a<=l||s===t)&&(t=s,i=n>=r.left&&n<=r.left+r.width?0:Math.abs(r.left+r.width/2-n)),i)})&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},t.prototype._moveFocusLeft=function(e){var t=this,n=this._shouldWrapFocus(this._activeElement,"data-no-horizontal-wrap");return!!this._moveFocus(Co(e),function(o,r){var i=-1;return(Co(e)?parseFloat(r.top.toFixed(3))parseFloat(o.top.toFixed(3)))&&r.right<=o.right&&t.props.direction!==Ea.vertical?i=o.right-r.right:n||(i=-999999999),i},void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},t.prototype._moveFocusRight=function(e){var t=this,n=this._shouldWrapFocus(this._activeElement,"data-no-horizontal-wrap");return!!this._moveFocus(!Co(e),function(o,r){var i=-1;return(Co(e)?parseFloat(r.bottom.toFixed(3))>parseFloat(o.top.toFixed(3)):parseFloat(r.top.toFixed(3))=o.left&&t.props.direction!==Ea.vertical?i=r.left-o.left:n||(i=-999999999),i},void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},t.prototype._moveFocusPaging=function(e,t){void 0===t&&(t=!0);var n=this._activeElement;if(!n||!this._root.current)return!1;if(this._isElementInput(n)&&!this._shouldInputLoseFocus(n,e))return!1;var o=function(e){for(var t=e,n=_o(e);t&&t!==n.body;){if("true"===t.getAttribute("data-is-scrollable"))return t;t=t.parentElement}for(t=e;t&&t!==n.body;){if("false"!==t.getAttribute("data-is-scrollable")){var o=getComputedStyle(t),r=o?o.getPropertyValue("overflow-y"):"";if(r&&("scroll"===r||"auto"===r))return t}t=t.parentElement}return t&&t!==n.body||(t=xn(e)),t}(n);if(!o)return!1;var r=-1,i=void 0,a=-1,s=-1,l=o.clientHeight,u=n.getBoundingClientRect();do{if(n=e?Ra(this._root.current,n):Na(this._root.current,n)){var c=n.getBoundingClientRect(),d=Math.floor(c.top),p=Math.floor(u.bottom),h=Math.floor(c.bottom),f=Math.floor(u.top),m=this._getHorizontalDistanceFromCenter(e,u,c);if(e&&d>p+l||!e&&h-1&&(e&&d>a?(a=d,r=m,i=n):!e&&h-1){var n=e.selectionStart,o=n!==e.selectionEnd,r=e.value,i=e.readOnly;if(o||n>0&&!t&&!i||n!==r.length&&t&&!i||this.props.handleTabKey&&(!this.props.shouldInputLoseFocusOnArrowKey||!this.props.shouldInputLoseFocusOnArrowKey(e)))return!1}return!0},t.prototype._shouldWrapFocus=function(e,t){return!this.props.checkForNoWrap||Aa(e,t)},t.prototype._portalContainsElement=function(e){return e&&!!this._root.current&&sa(e,this._root.current)},t.prototype._getDocument=function(){return _o(this._root.current)},t.defaultProps={isCircularNavigation:!1,direction:Ea.bidirectional,shouldRaiseClicks:!0},t}(o.Component);function Qa(e){if(void 0===Ga||e){var t=xn(),n=t&&t.navigator.userAgent;Ga=!!n&&-1!==n.indexOf("Macintosh")}return!!Ga}var Xa=function(){return!!(window&&window.navigator&&window.navigator.userAgent)&&/iPad|iPhone|iPod/i.test(window.navigator.userAgent)};function Ya(e){return e.canCheck?!(!e.isChecked&&!e.checked):"boolean"==typeof e.isChecked?e.isChecked:"boolean"==typeof e.checked?e.checked:null}function Ja(e){return!(!e.subMenuProps&&!e.items)}function Za(e){return!(!e.isDisabled&&!e.disabled)}function $a(e){return null!==Ya(e)?"menuitemcheckbox":"menuitem"}var es=["setState","render","componentWillMount","UNSAFE_componentWillMount","componentDidMount","componentWillReceiveProps","UNSAFE_componentWillReceiveProps","shouldComponentUpdate","componentWillUpdate","getSnapshotBeforeUpdate","UNSAFE_componentWillUpdate","componentDidUpdate","componentWillUnmount"],ts=function(e){function t(t){var n=e.call(this,t)||this;return n._updateComposedComponentRef=n._updateComposedComponentRef.bind(n),n}return c(t,e),t.prototype._updateComposedComponentRef=function(e){var t;this._composedComponentInstance=e,e?this._hoisted=function(e,t,n){void 0===n&&(n=es);var o=[],r=function(r){"function"!=typeof t[r]||void 0!==e[r]||n&&-1!==n.indexOf(r)||(o.push(r),e[r]=function(){for(var e=[],n=0;nls[t];)t++}catch(e){t=us()}return is=t,t}(n.context.window);e!==n.state.responsiveMode&&n.setState({responsiveMode:e})},n._events=new ha(n),n._updateComposedComponentRef=n._updateComposedComponentRef.bind(n),n.state={responsiveMode:us()},n}return c(n,t),n.prototype.componentDidMount=function(){this._events.on(this.context.window,"resize",this._onResize),this._onResize()},n.prototype.componentWillUnmount=function(){this._events.dispose()},n.prototype.render=function(){var t=this.state.responsiveMode;return t===os.unknown?null:o.createElement(e,d({ref:this._updateComposedComponentRef,responsiveMode:t},this.props))},n}(ts)).contextType=rs,t);return ns(e,n)}function ds(e,t,n,o){return e.addEventListener(t,n,o),function(){return e.removeEventListener(t,n,o)}}!function(e){e[e.top=1]="top",e[e.bottom=-1]="bottom",e[e.left=2]="left",e[e.right=-2]="right"}(as||(as={})),function(e){e[e.top=0]="top",e[e.bottom=1]="bottom",e[e.start=2]="start",e[e.end=3]="end"}(ss||(ss={}));var ps,hs=function(){function e(e,t,n,o){void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=0),void 0===o&&(o=0),this.top=n,this.bottom=o,this.left=e,this.right=t}return Object.defineProperty(e.prototype,"width",{get:function(){return this.right-this.left},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.bottom-this.top},enumerable:!0,configurable:!0}),e.prototype.equals=function(e){return parseFloat(this.top.toFixed(4))===parseFloat(e.top.toFixed(4))&&parseFloat(this.bottom.toFixed(4))===parseFloat(e.bottom.toFixed(4))&&parseFloat(this.left.toFixed(4))===parseFloat(e.left.toFixed(4))&&parseFloat(this.right.toFixed(4))===parseFloat(e.right.toFixed(4))},e}();function fs(e,t,n){return{targetEdge:e,alignmentEdge:t,isAuto:n}}var ms=((ps={})[0]=fs(as.top,as.left),ps[1]=fs(as.top),ps[2]=fs(as.top,as.right),ps[3]=fs(as.top,void 0,!0),ps[4]=fs(as.bottom,as.left),ps[5]=fs(as.bottom),ps[6]=fs(as.bottom,as.right),ps[7]=fs(as.bottom,void 0,!0),ps[8]=fs(as.left,as.top),ps[9]=fs(as.left),ps[10]=fs(as.left,as.bottom),ps[11]=fs(as.right,as.top),ps[12]=fs(as.right),ps[13]=fs(as.right,as.bottom),ps);function gs(e,t){return!(e.topt.bottom||e.leftt.right)}function ys(e,t){var n=[];return e.topt.bottom&&n.push(as.bottom),e.leftt.right&&n.push(as.right),n}function vs(e,t){return e[as[t]]}function bs(e,t,n){return e[as[t]]=n,e}function _s(e,t){var n=Os(t);return(vs(e,n.positiveEdge)+vs(e,n.negativeEdge))/2}function Ss(e,t){return e>0?t:-1*t}function Cs(e,t){return Ss(e,vs(t,e))}function ws(e,t,n){return Ss(n,vs(e,n)-vs(t,n))}function Ts(e,t,n){var o=vs(e,t)-n;return e=bs(e,t,n),bs(e,-1*t,vs(e,-1*t)-o)}function Is(e,t,n,o){return void 0===o&&(o=0),Ts(e,n,vs(t,n)+Ss(n,o))}function Es(e,t,n){return Cs(n,e)>Cs(n,t)}function xs(e,t,n){for(var o=0,r=e;oMath.abs(ws(e,n,-1*t))?-1*t:t}function Rs(e,t,n){var o=_s(t,e),r=_s(n,e),i=Os(e),a=i.positiveEdge,s=i.negativeEdge;return o<=r?a:s}function Ds(e){var t=e.getBoundingClientRect();return new hs(t.left,t.right,t.top,t.bottom)}function Ms(e){return new hs(e.left,e.right,e.top,e.bottom)}function Fs(e,t,n,o){var r=e.gapSpace?e.gapSpace:0,i=function(e,t){var n;if(t){if(t.preventDefault){var o=t;n=new hs(o.clientX,o.clientX,o.clientY,o.clientY)}else if(t.getBoundingClientRect)n=Ds(t);else{var r=t,i=r.left||r.x,a=r.top||r.y;n=new hs(i,i,a,a)}if(!gs(n,e))for(var s=0,l=ys(n,e);s0&&(i.indexOf(-1*s)>-1?s*=-1:(l=s,s=i.slice(-1)[0]),a=ks(e,t,{targetEdge:s,alignmentEdge:l},r))}return{elementRectangle:e,targetEdge:o.targetEdge,alignmentEdge:o.alignmentEdge}}(e,t,n,o,r));var c=ys(e,n);if(l){if(u.alignmentEdge&&c.indexOf(-1*u.alignmentEdge)>-1){var d=function(e,t,n,o){var r=e.alignmentEdge,i=e.targetEdge,a=-1*r;return{elementRectangle:ks(e.elementRectangle,t,{targetEdge:i,alignmentEdge:a},n,o),targetEdge:i,alignmentEdge:a}}(u,t,r,a);if(gs(d.elementRectangle,n))return d;u=xs(ys(d.elementRectangle,n),u,n)}}else u=xs(c,u,n);return u}(e,t,n,o,r,i,a)}(Ds(t),i,n,a,r,e.directionalHintFixed,e.coverTarget);return d(d({},s),{targetRectangle:i})}function Ls(e,t,n,o,r){var i=e.isBeakVisible&&e.beakWidth||0,a=function(e){return Math.sqrt(e*e*2)}(i)/2+(e.gapSpace?e.gapSpace:0),s=e;s.gapSpace=a;var l=e.bounds?Ms(e.bounds):new hs(0,window.innerWidth-Ha(),0,window.innerHeight),u=Fs(s,n,l,o),c=function(e,t,n){var o=-1*e.targetEdge,r=new hs(0,e.elementRectangle.width,0,e.elementRectangle.height),i={},a=Ns(e.elementRectangle,e.alignmentEdge?e.alignmentEdge:Os(o).positiveEdge,n);return i[as[o]]=vs(t,o),i[as[a]]=ws(t,r,a),{elementPosition:d({},i),closestEdge:Rs(e.targetEdge,t,r),targetEdge:o}}(u,function(e,t){var n=t.targetRectangle,o=Os(t.targetEdge),r=o.positiveEdge,i=o.negativeEdge,a=_s(n,t.targetEdge),s=new hs(e/2,t.elementRectangle.width-e/2,e/2,t.elementRectangle.height-e/2),l=new hs(0,e,0,e);return Es(l=Ps(l=Ts(l,-1*t.targetEdge,-e/2),-1*t.targetEdge,a-Cs(r,t.elementRectangle)),s,r)?Es(l,s,i)||(l=Is(l,s,i)):l=Is(l,s,r),l}(i,u),l);return d(d({},function(e,t,n,o,r){return{elementPosition:function(e,t,n,o,r,i,a){var s={},l=Ds(t),u=i?n:-1*n,c=as[u],d=r||Os(n).positiveEdge;return a||(d=Ns(e,d,o)),s[c]=ws(e,l,u),s[as[d]]=ws(e,l,d),s}(e.elementRectangle,t,e.targetEdge,n,e.alignmentEdge,o,r),targetEdge:e.targetEdge,alignmentEdge:e.alignmentEdge}}(u,t,l,e.coverTarget,r)),{beakPosition:c})}var As,Bs=function(e){function t(t){var n=e.call(this,t)||this;return n._root=o.createRef(),n._disposables=[],n._onKeyDown=function(e){switch(e.which){case 27:n.props.onDismiss&&(n.props.onDismiss(e),e.preventDefault(),e.stopPropagation())}},n._onFocus=function(){n._containsFocus=!0},n._onBlur=function(e){n._root.current&&e.relatedTarget&&!Oa(n._root.current,e.relatedTarget)&&(n._containsFocus=!1)},n._async=new la(n),n.state={needsVerticalScrollBar:!1},n}return c(t,e),t.prototype.UNSAFE_componentWillMount=function(){this._originalFocusedElement=_o().activeElement},t.prototype.componentDidMount=function(){if(this._root.current){this._disposables.push(ds(this._root.current,"focus",this._onFocus,!0),ds(this._root.current,"blur",this._onBlur,!0));var e=xn(this._root.current);e&&this._disposables.push(ds(e,"keydown",this._onKeyDown)),function(e){var t=_o(e),n=t&&t.activeElement;return!(!n||!Oa(e,n))}(this._root.current)&&(this._containsFocus=!0)}this._updateScrollBarAsync()},t.prototype.componentDidUpdate=function(){this._updateScrollBarAsync(),this._async.dispose()},t.prototype.componentWillUnmount=function(){var e;if(this._disposables.forEach(function(e){return e()}),this.props.shouldRestoreFocus){var t=this.props.onRestoreFocus;(void 0===t?js:t)({originalElement:this._originalFocusedElement,containsFocus:this._containsFocus,documentContainsFocus:(null===(e=_o())||void 0===e?void 0:e.hasFocus())||!1})}delete this._originalFocusedElement},t.prototype.render=function(){var e=this.props,t=e.role,n=e.className,r=e.ariaLabel,i=e.ariaLabelledBy,a=e.ariaDescribedBy,s=e.style;return o.createElement("div",d({ref:this._root},Wo(this.props,Uo),{className:n,role:t,"aria-label":r,"aria-labelledby":i,"aria-describedby":a,onKeyDown:this._onKeyDown,style:d({overflowY:this.state.needsVerticalScrollBar?"scroll":void 0,outline:"none"},s)}),this.props.children)},t.prototype._updateScrollBarAsync=function(){var e=this;this._async.requestAnimationFrame(function(){e._getScrollBar()})},t.prototype._getScrollBar=function(){if(!this.props.style||!this.props.style.overflowY){var e=!1;if(this._root&&this._root.current&&this._root.current.firstElementChild){var t=this._root.current.clientHeight,n=this._root.current.firstElementChild.clientHeight;t>0&&n>t&&(e=n-t>1)}this.state.needsVerticalScrollBar!==e&&this.setState({needsVerticalScrollBar:e})}},t.defaultProps={shouldRestoreFocus:!0},t}(o.Component);function js(e){var t=e.originalElement,n=e.containsFocus;t&&n&&t!==window&&t.focus&&t.focus()}var Us=((As={})[as.top]=Fr.slideUpIn10,As[as.bottom]=Fr.slideDownIn10,As[as.left]=Fr.slideLeftIn10,As[as.right]=Fr.slideRightIn10,As),Ws=Io({disableCaching:!0}),Hs={opacity:0,filter:"opacity(0)",pointerEvents:"none"},Gs=["role","aria-roledescription"],zs=function(e){function t(t){var n=e.call(this,t)||this;return n._hostElement=o.createRef(),n._calloutElement=o.createRef(),n._hasListeners=!1,n._disposables=[],n.dismiss=function(e){var t=n.props.onDismiss;t&&t(e)},n._dismissOnScroll=function(e){var t=n.props,o=t.preventDismissOnEvent,r=t.preventDismissOnScroll;n.state.positions&&(o&&!o(e)||!o&&!r)&&n._dismissOnClickOrScroll(e)},n._dismissOnResize=function(e){var t=n.props,o=t.preventDismissOnEvent,r=t.preventDismissOnResize;(o&&!o(e)||!o&&!r)&&n.dismiss(e)},n._dismissOnLostFocus=function(e){var t=n.props,o=t.preventDismissOnEvent,r=t.preventDismissOnLostFocus;(o&&!o(e)||!o&&!r)&&n._dismissOnClickOrScroll(e)},n._setInitialFocus=function(){n.props.setInitialFocus&&!n._didSetInitialFocus&&n.state.positions&&n._calloutElement.current&&(n._didSetInitialFocus=!0,n._async.requestAnimationFrame(function(){return!!(t=Ra(e=n._calloutElement.current,e,!0,!1,!1,!0))&&(function(e){if(e){if(Ua)return void(Ua=e);Ua=e;var t=xn(e);t&&t.requestAnimationFrame(function(){var e=Ua;Ua=void 0,e&&(e.getAttribute&&"true"===e.getAttribute("data-is-focusable")&&(e.getAttribute("tabindex")||e.setAttribute("tabindex","0")),e.focus())})}}(t),!0);var e,t},n._calloutElement.current))},n._onComponentDidMount=function(){n._addListeners(),n.props.onLayerMounted&&n.props.onLayerMounted(),n._updateAsyncPosition(),n._setHeightOffsetEveryFrame()},n._dismissOnTargetWindowBlur=function(e){var t=n.props,o=t.preventDismissOnEvent,r=t.preventDismissOnLostFocus;t.shouldDismissOnWindowFocus&&((!o||o(e))&&(o||r)||n._targetWindow.document.hasFocus()||null!==e.relatedTarget||n.dismiss(e))},n._mouseDownOnPopup=function(){n._isMouseDownOnPopup=!0},n._mouseUpOnPopup=function(){n._isMouseDownOnPopup=!1},n._async=new la(n),n._didSetInitialFocus=!1,n.state={positions:void 0,slideDirectionalClassName:void 0,calloutElementRect:void 0,heightOffset:0},n._positionAttempts=0,n}return c(t,e),t.prototype.componentDidUpdate=function(){this.props.hidden?this._hasListeners&&this._removeListeners():(this._setInitialFocus(),this._hasListeners||this._addListeners(),this._updateAsyncPosition())},t.prototype.shouldComponentUpdate=function(e,t){return!(!e.shouldUpdateWhenHidden&&this.props.hidden&&e.hidden||ua(this.props,e)&&ua(this.state,t))},t.prototype.UNSAFE_componentWillMount=function(){this._setTargetWindowAndElement(this._getTarget())},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._disposables.forEach(function(e){return e()})},t.prototype.UNSAFE_componentWillUpdate=function(e){var t=this._getTarget(e);(t!==this._getTarget()||"string"==typeof t||t instanceof String)&&!this._blockResetHeight&&(this._maxHeight=void 0,this._setTargetWindowAndElement(t)),e.gapSpace===this.props.gapSpace&&this.props.beakWidth===e.beakWidth||(this._maxHeight=void 0),e.finalHeight!==this.props.finalHeight&&this._setHeightOffsetEveryFrame(),this._didPositionPropsChange(e,this.props)&&(this._maxHeight=void 0,this._setTargetWindowAndElement(t),this.setState({positions:void 0}),this._didSetInitialFocus=!1,this._bounds=void 0),this._blockResetHeight=!1},t.prototype.componentDidMount=function(){this.props.hidden||this._onComponentDidMount()},t.prototype.render=function(){if(!this._targetWindow)return null;var e=this.props.target,t=this.props,n=t.styles,r=t.style,i=t.ariaLabel,a=t.ariaDescribedBy,s=t.ariaLabelledBy,l=t.className,u=t.isBeakVisible,c=t.children,p=t.beakWidth,h=t.calloutWidth,f=t.calloutMaxWidth,m=t.finalHeight,g=t.hideOverflow,y=void 0===g?!!m:g,v=t.backgroundColor,b=t.calloutMaxHeight,_=t.onScroll,S=t.shouldRestoreFocus,C=void 0===S||S;e=this._getTarget();var w=this.state.positions,T=this._getMaxHeight()?this._getMaxHeight()+this.state.heightOffset:void 0,I=b&&T&&b0&&(this._positionAttempts=0,this.props.onPositioned&&this.props.onPositioned(this.state.positions))}},t.prototype._getBounds=function(){if(!this._bounds){var e=this.props.bounds,t="function"==typeof e?e(this.props.target,this._targetWindow):e;t||(t={top:(t=function(e,t){var n=void 0;if(t.getWindowSegments&&(n=t.getWindowSegments()),void 0===n||n.length<=1)return{top:0,left:0,right:t.innerWidth,bottom:t.innerHeight,width:t.innerWidth,height:t.innerHeight};var o=0,r=0;if(null!==e&&e.getBoundingClientRect){var i=e.getBoundingClientRect();o=(i.left+i.right)/2,r=(i.top+i.bottom)/2}else null!==e&&(o=e.left||e.x,r=e.top||e.y);for(var a={top:0,left:0,right:0,bottom:0,width:0,height:0},s=0,l=n;s=o&&r&&u.top<=r&&u.bottom>=r&&(a={top:u.top,left:u.left,right:u.right,bottom:u.bottom,width:u.width,height:u.height})}return a}(this._target,this._targetWindow)).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-2*this.props.minPagePadding,height:t.height-2*this.props.minPagePadding}),this._bounds=t}return this._bounds},t.prototype._getMaxHeight=function(){var e=this;if(!this._maxHeight)if(this.props.directionalHintFixed&&this._target){var t=this.props.isBeakVisible?this.props.beakWidth:0,n=(this.props.gapSpace?this.props.gapSpace:0)+t;this._async.requestAnimationFrame(function(){e._target&&(e._maxHeight=function(e,t,n,o,r){void 0===n&&(n=0);var i=e,a=e,s=e,l=o?Ms(o):new hs(0,window.innerWidth-Ha(),0,window.innerHeight),u=s.left||s.x,c=s.top||s.y;return function(e,t,n,o,r){var i,a=ms[t],s=r?-1*a.targetEdge:a.targetEdge;return(i=s===as.top?vs(e,a.targetEdge)-o.top-n:s===as.bottom?o.bottom-vs(e,a.targetEdge)-n:o.bottom-e.top-n)>0?i:o.height}(i.stopPropagation?new hs(i.clientX,i.clientX,i.clientY,i.clientY):void 0!==u&&void 0!==c?new hs(u,u,c,c):Ds(a),t,n,l,r)}(e._target,e.props.directionalHint,n,e._getBounds(),e.props.coverTarget),e._blockResetHeight=!0,e.forceUpdate())},this._target)}else this._maxHeight=this._getBounds().height;return this._maxHeight},t.prototype._arePositionsEqual=function(e,t){return this._comparePositions(e.elementPosition,t.elementPosition)&&this._comparePositions(e.beakPosition.elementPosition,t.beakPosition.elementPosition)},t.prototype._comparePositions=function(e,t){for(var n in t)if(t.hasOwnProperty(n)){var o=e[n],r=t[n];if(void 0===o||void 0===r)return!1;if(o.toFixed(2)!==r.toFixed(2))return!1}return!0},t.prototype._setTargetWindowAndElement=function(e){var t=this._calloutElement.current;if(e)if("string"==typeof e){var n=_o(t);this._target=n?n.querySelector(e):null,this._targetWindow=xn(t)}else if(e.stopPropagation)this._targetWindow=xn(e.target),this._target=e;else if(e.getBoundingClientRect){var o=e;this._targetWindow=xn(o),this._target=o}else void 0!==e.current?(this._target=e.current,this._targetWindow=xn(this._target)):(this._targetWindow=xn(t),this._target=e);else this._targetWindow=xn(t)},t.prototype._setHeightOffsetEveryFrame=function(){var e=this;this._calloutElement.current&&this.props.finalHeight&&(this._setHeightOffsetTimer=this._async.requestAnimationFrame(function(){var t=e._calloutElement.current&&e._calloutElement.current.lastChild;if(t){var n=t.scrollHeight-t.offsetHeight;e.setState({heightOffset:e.state.heightOffset+n}),t.offsetHeight-1&&r._virtual.children.splice(i,1)}n._virtual.parent=o||void 0,o&&(o._virtual||(o._virtual={children:[]}),o._virtual.children.push(n))}function rl(e,t,n){return function(r){var i,a=((i=function(i){function a(e){var t=i.call(this,e)||this;return t._styleCache={},t._onSettingChanged=t._onSettingChanged.bind(t),t}return c(a,i),a.prototype.componentDidMount=function(){Ln.observe(this._onSettingChanged)},a.prototype.componentWillUnmount=function(){Ln.unobserve(this._onSettingChanged)},a.prototype.render=function(){var i=this;return o.createElement(An.Consumer,null,function(a){var s=Ln.getSettings(t,e,a.customizations),l=i.props;if(s.styles&&"function"==typeof s.styles&&(s.styles=s.styles(d(d({},s),l))),n&&s.styles){if(i._styleCache.default!==s.styles||i._styleCache.component!==l.styles){var u=Tn(s.styles,l.styles);i._styleCache.default=s.styles,i._styleCache.component=l.styles,i._styleCache.merged=u}return o.createElement(r,d({},s,l,{styles:i._styleCache.merged}))}return o.createElement(r,d({},s,l))})},a.prototype._onSettingChanged=function(){this.forceUpdate()},a}(o.Component)).displayName="Customized"+e,i);return ns(r,a)}}var il,al,sl={},ll=Io(),ul=function(e){function t(t){var n=e.call(this,t)||this;return n._rootRef=o.createRef(),n._createLayerElement=function(){var e=n.props.hostId,t=_o(n._rootRef.current),o=n._getHost();if(t&&o){n._removeLayerElement();var r=t.createElement("div"),i=n._getClassNames();r.className=i.root,r.setAttribute("data-portal-element","true"),ol(r,n._rootRef.current),n.props.insertFirst?o.insertBefore(r,o.firstChild):o.appendChild(r),n.setState({hostId:e,layerElement:r},function(){var e=n.props,t=e.onLayerDidMount,o=e.onLayerMounted;o&&o(),t&&t()})}},n.state={},n}return c(t,e),t.prototype.componentDidMount=function(){var e=this.props.hostId;this._createLayerElement(),e&&function(e,t){sl[e]||(sl[e]=[]),sl[e].push(t)}(e,this._createLayerElement)},t.prototype.render=function(){var e=this.state.layerElement,t=this._getClassNames(),n=this.props.eventBubblingEnabled;return o.createElement("span",{className:"ms-layer",ref:this._rootRef},e&&r.createPortal(o.createElement(nl,d({},!n&&(il||(il={},["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(e){return il[e]=cl})),il),{className:t.content}),this.props.children),e))},t.prototype.componentDidUpdate=function(){this.props.hostId!==this.state.hostId&&this._createLayerElement()},t.prototype.componentWillUnmount=function(){var e=this.props.hostId;this._removeLayerElement(),e&&function(e,t){if(sl[e]){var n=sl[e].indexOf(t);n>=0&&(sl[e].splice(n,1),0===sl[e].length&&delete sl[e])}}(e,this._createLayerElement)},t.prototype._removeLayerElement=function(){var e=this.props.onLayerWillUnmount,t=this.state.layerElement;if(t&&ol(t,null),e&&e(),t&&t.parentNode){var n=t.parentNode;n&&n.removeChild(t)}},t.prototype._getClassNames=function(){var e=this.props,t=e.className,n=e.styles,o=e.theme;return ll(n,{theme:o,className:t,isNotHost:!this.props.hostId})},t.prototype._getHost=function(){var e=this.props.hostId,t=_o(this._rootRef.current);if(t)return e?t.getElementById(e):t.body},t.defaultProps={onLayerDidMount:function(){},onLayerWillUnmount:function(){}},h([rl("Layer",["theme","hostId"])],t)}(o.Component),cl=function(e){e.eventPhase===Event.BUBBLING_PHASE&&"mouseenter"!==e.type&&"mouseleave"!==e.type&&"touchstart"!==e.type&&"touchend"!==e.type&&e.stopPropagation()},dl={root:"ms-Layer",rootNoHost:"ms-Layer--fixed",content:"ms-Layer-content"},pl=jn(ul,function(e){var t=e.className,n=e.isNotHost,o=e.theme,r=ei(dl,o);return{root:[r.root,o.fonts.medium,n&&[r.rootNoHost,{position:"fixed",zIndex:Lr.Layer,top:0,left:0,bottom:0,right:0,visibility:"hidden"}],t],content:[r.content,{visibility:"visible"}]}},void 0,{scope:"Layer",fields:["hostId","theme","styles"]}),hl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.layerProps,n=p(e,["layerProps"]),r=o.createElement(Vs,d({},n));return this.props.doNotLayer?r:o.createElement(pl,d({},t),r)},t}(o.Component),fl=function(e){var t=e.item,n=e.hasIcons,r=e.classNames,i=t.iconProps;return n?t.onRenderIcon?t.onRenderIcon(e):o.createElement(Wi,d({},i,{className:r.icon})):null},ml=function(e){var t=e.onCheckmarkClick,n=e.item,r=e.classNames,i=Ya(n);return t?o.createElement(Wi,{iconName:!1!==n.canCheck&&i?"CheckMark":"",className:r.checkmarkIcon,onClick:function(e){return t(n,e)}}):null},gl=function(e){var t=e.item,n=e.classNames;return t.text||t.name?o.createElement("span",{className:n.label},t.text||t.name):null},yl=function(e){var t=e.item,n=e.classNames;return t.secondaryText?o.createElement("span",{className:n.secondaryText},t.secondaryText):null},vl=function(e){var t=e.item,n=e.classNames,r=e.theme;return Ja(t)?o.createElement(Wi,d({iconName:Co(r)?"ChevronLeft":"ChevronRight"},t.submenuIconProps,{className:n.subMenuIcon})):null},bl=function(e){function t(t){var n=e.call(this,t)||this;return n.openSubMenu=function(){var e=n.props,t=e.item,o=e.openSubMenu,r=e.getSubmenuTarget;if(r){var i=r();Ja(t)&&o&&i&&o(t,i)}},n.dismissSubMenu=function(){var e=n.props,t=e.item,o=e.dismissSubMenu;Ja(t)&&o&&o()},n.dismissMenu=function(e){var t=n.props.dismissMenu;t&&t(void 0,e)},Yi(n),n}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.item,n=e.classNames,r=t.onRenderContent||this._renderLayout;return o.createElement("div",{className:t.split?n.linkContentMenu:n.linkContent},r(this.props,{renderCheckMarkIcon:ml,renderItemIcon:fl,renderItemName:gl,renderSecondaryText:yl,renderSubMenuIcon:vl}))},t.prototype._renderLayout=function(e,t){return o.createElement(o.Fragment,null,t.renderCheckMarkIcon(e),t.renderItemIcon(e),t.renderItemName(e),t.renderSecondaryText(e),t.renderSubMenuIcon(e))},t}(o.Component),_l=Yr(function(e){return vo({wrapper:{display:"inline-flex",height:"100%",alignItems:"center"},divider:{width:1,height:"100%",backgroundColor:e.palette.neutralTertiaryAlt}})}),Sl=Br(0,639),Cl=Yr(function(){var e;return{selectors:(e={},e[Ar]={backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText",MsHighContrastAdjust:"none"},e)}}),wl=Yr(function(e){var t,n,o,r,i,a,s,l=e.semanticColors,u=e.fonts,c=e.palette,p=l.menuItemBackgroundHovered,h=l.menuItemTextHovered,f=l.menuItemBackgroundPressed,m=l.bodyDivider;return Tn({item:[u.medium,{color:l.bodyText,position:"relative",boxSizing:"border-box"}],divider:{display:"block",height:"1px",backgroundColor:m,position:"relative"},root:[Wr(e),u.medium,{color:l.bodyText,backgroundColor:"transparent",border:"none",width:"100%",height:36,lineHeight:36,display:"block",cursor:"pointer",padding:"0px 8px 0 4px",textAlign:"left"}],rootDisabled:{color:l.disabledBodyText,cursor:"default",pointerEvents:"none",selectors:d((t={},t[Ar]={color:"GrayText",opacity:1},t),jr())},rootHovered:d({backgroundColor:p,color:h,selectors:{".ms-ContextualMenu-icon":{color:c.themeDarkAlt},".ms-ContextualMenu-submenuIcon":{color:c.neutralPrimary}}},Cl()),rootFocused:d({backgroundColor:c.white},Cl()),rootChecked:d({selectors:{".ms-ContextualMenu-checkmarkIcon":{color:c.neutralPrimary}}},Cl()),rootPressed:d({backgroundColor:f,selectors:{".ms-ContextualMenu-icon":{color:c.themeDark},".ms-ContextualMenu-submenuIcon":{color:c.neutralPrimary}}},Cl()),rootExpanded:d({backgroundColor:f,color:l.bodyTextChecked},Cl()),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:e.palette.neutralSecondary,paddingLeft:"20px",textAlign:"right"},icon:{display:"inline-block",minHeight:"1px",maxHeight:36,fontSize:Mr.medium,width:Mr.medium,margin:"0 4px",verticalAlign:"middle",flexShrink:"0",selectors:(n={},n[Sl]={fontSize:Mr.large,width:Mr.large},n)},iconColor:{color:l.menuIcon,selectors:(o={},o[Ar]={color:"inherit"},o["$root:hover &"]={selectors:(r={},r[Ar]={color:"HighlightText"},r)},o["$root:focus &"]={selectors:(i={},i[Ar]={color:"HighlightText"},i)},o)},iconDisabled:{color:l.disabledBodyText},checkmarkIcon:{color:l.bodySubtext,selectors:(a={},a[Ar]={color:"HighlightText"},a)},subMenuIcon:{height:36,lineHeight:36,color:c.neutralSecondary,textAlign:"center",display:"inline-block",verticalAlign:"middle",flexShrink:"0",fontSize:Mr.small,selectors:(s={":hover":{color:c.neutralPrimary},":active":{color:c.neutralPrimary}},s[Sl]={fontSize:Mr.medium},s[Ar]={color:"HighlightText"},s)},splitButtonFlexContainer:[Wr(e),{display:"flex",height:36,flexWrap:"nowrap",justifyContent:"center",alignItems:"flex-start"}]})}),Tl=Br(0,639),Il=Yr(function(e){var t;return vo(_l(e),{wrapper:{position:"absolute",right:28,selectors:(t={},t[Tl]={right:32},t)},divider:{height:16,width:1}})}),El={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"},xl=Yr(function(e,t,n,o,r,i,a,s,l,u,c,d){var p,h,f,m,g=wl(e),y=ei(El,e);return vo({item:[y.item,g.item,a],divider:[y.divider,g.divider,s],root:[y.root,g.root,o&&[y.isChecked,g.rootChecked],r&&g.anchorLink,n&&[y.isExpanded,g.rootExpanded],t&&[y.isDisabled,g.rootDisabled],!t&&!n&&[{selectors:(p={":hover":g.rootHovered,":active":g.rootPressed},p[".ms-Fabric--isFocusVisible &:focus, .ms-Fabric--isFocusVisible &:focus:hover"]=g.rootFocused,p[".ms-Fabric--isFocusVisible &:hover"]={background:"inherit;"},p)}],d],splitPrimary:[g.root,{width:"calc(100% - 28px)"},o&&["is-checked",g.rootChecked],(t||c)&&["is-disabled",g.rootDisabled],!(t||c)&&!o&&[{selectors:(h={":hover":g.rootHovered},h[":hover ~ ."+y.splitMenu]=g.rootHovered,h[":active"]=g.rootPressed,h[".ms-Fabric--isFocusVisible &:focus, .ms-Fabric--isFocusVisible &:focus:hover"]=g.rootFocused,h[".ms-Fabric--isFocusVisible &:hover"]={background:"inherit;"},h)}]],splitMenu:[y.splitMenu,g.root,{flexBasis:"0",padding:"0 8px",minWidth:"28px"},n&&["is-expanded",g.rootExpanded],t&&["is-disabled",g.rootDisabled],!t&&!n&&[{selectors:(f={":hover":g.rootHovered,":active":g.rootPressed},f[".ms-Fabric--isFocusVisible &:focus, .ms-Fabric--isFocusVisible &:focus:hover"]=g.rootFocused,f[".ms-Fabric--isFocusVisible &:hover"]={background:"inherit;"},f)}]],anchorLink:g.anchorLink,linkContent:[y.linkContent,g.linkContent],linkContentMenu:[y.linkContentMenu,g.linkContent,{justifyContent:"center"}],icon:[y.icon,i&&g.iconColor,g.icon,l,t&&[y.isDisabled,g.iconDisabled]],iconColor:g.iconColor,checkmarkIcon:[y.checkmarkIcon,i&&g.checkmarkIcon,g.icon,l],subMenuIcon:[y.subMenuIcon,g.subMenuIcon,u,n&&{color:e.palette.neutralPrimary},t&&[g.iconDisabled]],label:[y.label,g.label],secondaryText:[y.secondaryText,g.secondaryText],splitContainer:[g.splitButtonFlexContainer,!t&&!o&&[{selectors:(m={},m[".ms-Fabric--isFocusVisible &:focus, .ms-Fabric--isFocusVisible &:focus:hover"]=g.rootFocused,m)}]],screenReaderText:[y.screenReaderText,g.screenReaderText,Gr,{visibility:"hidden"}]})}),Pl=function(e){var t=e.theme,n=e.disabled,o=e.expanded,r=e.checked,i=e.isAnchorLink,a=e.knownIcon,s=e.itemClassName,l=e.dividerClassName,u=e.iconClassName,c=e.subMenuClassName,d=e.primaryDisabled,p=e.className;return xl(t,n,o,r,i,a,s,l,u,c,d,p)},kl=jn(bl,Pl,void 0,{scope:"ContextualMenuItem"}),Ol=function(e){function t(t){var n=e.call(this,t)||this;return n._onItemMouseEnter=function(e){var t=n.props,o=t.item,r=t.onItemMouseEnter;r&&r(o,e,e.currentTarget)},n._onItemClick=function(e){var t=n.props,o=t.item,r=t.onItemClickBase;r&&r(o,e,e.currentTarget)},n._onItemMouseLeave=function(e){var t=n.props,o=t.item,r=t.onItemMouseLeave;r&&r(o,e)},n._onItemKeyDown=function(e){var t=n.props,o=t.item,r=t.onItemKeyDown;r&&r(o,e)},n._onItemMouseMove=function(e){var t=n.props,o=t.item,r=t.onItemMouseMove;r&&r(o,e,e.currentTarget)},n._getSubMenuId=function(e){var t=n.props.getSubMenuId;if(t)return t(e)},n._getSubmenuTarget=function(){},Yi(n),n}return c(t,e),t.prototype.shouldComponentUpdate=function(e){return!ua(e,this.props)},t}(o.Component);!function(e){e.KEYTIP_ADDED="keytipAdded",e.KEYTIP_REMOVED="keytipRemoved",e.KEYTIP_UPDATED="keytipUpdated",e.PERSISTED_KEYTIP_ADDED="persistedKeytipAdded",e.PERSISTED_KEYTIP_REMOVED="persistedKeytipRemoved",e.PERSISTED_KEYTIP_EXECUTE="persistedKeytipExecute",e.ENTER_KEYTIP_MODE="enterKeytipMode",e.EXIT_KEYTIP_MODE="exitKeytipMode"}(al||(al={}));var Nl=function(){function e(){this.keytips={},this.persistedKeytips={},this.sequenceMapping={},this.inKeytipMode=!1,this.shouldEnterKeytipMode=!0,this.delayUpdatingKeytipChange=!1}return e.getInstance=function(){return this._instance},e.prototype.init=function(e){this.delayUpdatingKeytipChange=e},e.prototype.register=function(e,t){void 0===t&&(t=!1);var n=e;t||(n=this.addParentOverflow(e),this.sequenceMapping[n.keySequences.toString()]=n);var o=this._getUniqueKtp(n);if(t?this.persistedKeytips[o.uniqueID]=o:this.keytips[o.uniqueID]=o,this.inKeytipMode||!this.delayUpdatingKeytipChange){var r=t?al.PERSISTED_KEYTIP_ADDED:al.KEYTIP_ADDED;ha.raise(this,r,{keytip:n,uniqueID:o.uniqueID})}return o.uniqueID},e.prototype.update=function(e,t){var n=this.addParentOverflow(e),o=this._getUniqueKtp(n,t),r=this.keytips[t];r&&(o.keytip.visible=r.keytip.visible,this.keytips[t]=o,delete this.sequenceMapping[r.keytip.keySequences.toString()],this.sequenceMapping[o.keytip.keySequences.toString()]=o.keytip,!this.inKeytipMode&&this.delayUpdatingKeytipChange||ha.raise(this,al.KEYTIP_UPDATED,{keytip:o.keytip,uniqueID:o.uniqueID}))},e.prototype.unregister=function(e,t,n){void 0===n&&(n=!1),n?delete this.persistedKeytips[t]:delete this.keytips[t],!n&&delete this.sequenceMapping[e.keySequences.toString()];var o=n?al.PERSISTED_KEYTIP_REMOVED:al.KEYTIP_REMOVED;!this.inKeytipMode&&this.delayUpdatingKeytipChange||ha.raise(this,o,{keytip:e,uniqueID:t})},e.prototype.enterKeytipMode=function(){ha.raise(this,al.ENTER_KEYTIP_MODE)},e.prototype.exitKeytipMode=function(){ha.raise(this,al.EXIT_KEYTIP_MODE)},e.prototype.getKeytips=function(){var e=this;return Object.keys(this.keytips).map(function(t){return e.keytips[t].keytip})},e.prototype.addParentOverflow=function(e){var t=f(e.keySequences);if(t.pop(),0!==t.length){var n=this.sequenceMapping[t.toString()];if(n&&n.overflowSetSequence)return d(d({},e),{overflowSetSequence:n.overflowSetSequence})}return e},e.prototype.menuExecute=function(e,t){ha.raise(this,al.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:e,keytipSequences:t})},e.prototype._getUniqueKtp=function(e,t){return void 0===t&&(t=oa()),{keytip:d({},e),uniqueID:t}},e._instance=new e,e}();function Rl(e){return e.reduce(function(e,t){return e+"-"+t.split("").join("-")},"ktp")}var Dl=function(e){var t,n=e.children,r=function(e){var t,n,r,i,a=o.useRef(),s=e.keytipProps?d({disabled:e.disabled},e.keytipProps):void 0,l=(r=Nl.getInstance(),void 0===(i=o.useRef()).current&&(i.current={value:"function"==typeof r?r():r}),i.current.value);o.useEffect(function(){return s&&(a.current=l.register(s)),function(){s&&l.unregister(s,a.current)}},[]);var u=function(e){var t=Object(o.useRef)();return Object(o.useEffect)(function(){t.current=e}),t.current}(e);a.current&&s&&((null===(t=u)||void 0===t?void 0:t.keytipProps)!==e.keytipProps||(null===(n=u)||void 0===n?void 0:n.disabled)!==e.disabled)&&l.update(s,a.current);var c={ariaDescribedBy:void 0,keytipId:void 0};return s&&(c=function(e,t,n){var o=e.addParentOverflow(t),r=wa(n,function(e){return e.length?" ktp-layer-id "+Rl(e):" ktp-layer-id"}(o.keySequences)),i=f(o.keySequences);return o.overflowSetSequence&&(i=function(e,t){var n,o,r;return n=t.length-1,o=f(t).pop(),(r=f(e).slice()).splice(n,0,o),r}(i,o.overflowSetSequence)),{ariaDescribedBy:r,keytipId:Rl(i)}}(l,s,e.ariaDescribedBy)),c}(p(e,["children"])),i=r.keytipId,a=r.ariaDescribedBy;return n(((t={})["data-ktp-target"]=i,t["data-ktp-execute-target"]=i,t["aria-describedby"]=a,t))},Ml=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._anchor=o.createRef(),t._getMemoizedMenuButtonKeytipProps=Yr(function(e){return d(d({},e),{hasMenu:!0})}),t._getSubmenuTarget=function(){return t._anchor.current?t._anchor.current:void 0},t._onItemClick=function(e){var n=t.props,o=n.item,r=n.onItemClick;r&&r(o,e)},t._renderAriaDescription=function(e,n){return e?o.createElement("span",{id:t._ariaDescriptionId,className:n},e):null},t}return c(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.item,r=t.classNames,i=t.index,a=t.focusableElementIndex,s=t.totalItemCount,l=t.hasCheckmarks,u=t.hasIcons,c=t.contextualMenuItemAs,p=void 0===c?kl:c,h=t.expandedMenuItemKey,f=t.onItemClick,m=t.openSubMenu,g=t.dismissSubMenu,y=t.dismissMenu,v=n.rel;n.target&&"_blank"===n.target.toLowerCase()&&(v=v||"nofollow noopener noreferrer");var b=this._getSubMenuId(n),_=Ja(n),S=Wo(n,Lo),C=Za(n),w=n.itemProps,T=n.ariaDescription,I=n.keytipProps;return I&&_&&(I=this._getMemoizedMenuButtonKeytipProps(I)),T&&(this._ariaDescriptionId=oa()),o.createElement("div",null,o.createElement(Dl,{keytipProps:n.keytipProps,ariaDescribedBy:S["aria-describedby"],disabled:C},function(t){return o.createElement("a",d({},S,t,{ref:e._anchor,href:n.href,target:n.target,rel:v,className:r.root,role:"menuitem","aria-owns":n.key===h?b:void 0,"aria-haspopup":_||void 0,"aria-expanded":_?n.key===h:void 0,"aria-posinset":a+1,"aria-setsize":s,"aria-disabled":Za(n),"aria-describedby":wa(T?e._ariaDescriptionId:void 0,t?t["aria-describedby"]:void 0),style:n.style,onClick:e._onItemClick,onMouseEnter:e._onItemMouseEnter,onMouseLeave:e._onItemMouseLeave,onMouseMove:e._onItemMouseMove,onKeyDown:_?e._onItemKeyDown:void 0}),o.createElement(p,d({componentRef:n.componentRef,item:n,classNames:r,index:i,onCheckmarkClick:l&&f?f:void 0,hasIcons:u,openSubMenu:m,dismissSubMenu:g,dismissMenu:y,getSubmenuTarget:e._getSubmenuTarget},w)),e._renderAriaDescription(T,r.screenReaderText))}))},t}(Ol),Fl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._btn=o.createRef(),t._getMemoizedMenuButtonKeytipProps=Yr(function(e){return d(d({},e),{hasMenu:!0})}),t._renderAriaDescription=function(e,n){return e?o.createElement("span",{id:t._ariaDescriptionId,className:n},e):null},t._getSubmenuTarget=function(){return t._btn.current?t._btn.current:void 0},t}return c(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.item,r=t.classNames,i=t.index,a=t.focusableElementIndex,s=t.totalItemCount,l=t.hasCheckmarks,u=t.hasIcons,c=t.contextualMenuItemAs,p=void 0===c?kl:c,h=t.expandedMenuItemKey,f=t.onItemMouseDown,m=t.onItemClick,g=t.openSubMenu,y=t.dismissSubMenu,v=t.dismissMenu,b=this._getSubMenuId(n),_=Ya(n),S=null!==_,C=$a(n),w=Ja(n),T=n.itemProps,I=n.ariaLabel,E=n.ariaDescription,x=Wo(n,Ao);delete x.disabled;var P=n.role||C;E&&(this._ariaDescriptionId=oa());var k=E?this._ariaDescriptionId:void 0,O={className:r.root,onClick:this._onItemClick,onKeyDown:w?this._onItemKeyDown:void 0,onMouseEnter:this._onItemMouseEnter,onMouseLeave:this._onItemMouseLeave,onMouseDown:function(e){return f?f(n,e):void 0},onMouseMove:this._onItemMouseMove,href:n.href,title:n.title,"aria-label":I,"aria-describedby":k,"aria-haspopup":w||void 0,"aria-owns":n.key===h?b:void 0,"aria-expanded":w?n.key===h:void 0,"aria-posinset":a+1,"aria-setsize":s,"aria-disabled":Za(n),"aria-checked":"menuitemcheckbox"!==P&&"menuitemradio"!==P||!S?void 0:!!_,"aria-selected":"menuitem"===P&&S?!!_:void 0,role:P,style:n.style},N=n.keytipProps;return N&&w&&(N=this._getMemoizedMenuButtonKeytipProps(N)),o.createElement(Dl,{keytipProps:N,ariaDescribedBy:x["aria-describedby"],disabled:Za(n)},function(t){return o.createElement("button",d({ref:e._btn},x,O,t,{"aria-describedby":wa(O["aria-describedby"],t?t["aria-describedby"]:void 0)}),o.createElement(p,d({componentRef:n.componentRef,item:n,classNames:r,index:i,onCheckmarkClick:l&&m?m:void 0,hasIcons:u,openSubMenu:g,dismissSubMenu:y,dismissMenu:v,getSubmenuTarget:e._getSubmenuTarget},T)),e._renderAriaDescription(E,r.screenReaderText))})},t}(Ol),Ll=Io(),Al=function(e){var t=e.styles,n=e.theme,r=e.getClassNames,i=e.className,a=Ll(t,{theme:n,getClassNames:r,className:i});return o.createElement("span",{className:a.wrapper},o.createElement("span",{className:a.divider}))};Al.displayName="VerticalDividerBase";var Bl=jn(Al,function(e){var t=e.theme,n=e.getClassNames,o=e.className;if(!t)throw new Error("Theme is undefined or null.");if(n){var r=n(t);return{wrapper:[r.wrapper],divider:[r.divider]}}return{wrapper:[{display:"inline-flex",height:"100%",alignItems:"center"},o],divider:[{width:1,height:"100%",backgroundColor:t.palette.neutralTertiaryAlt}]}},void 0,{scope:"VerticalDivider"}),jl=function(e){function t(t){var n=e.call(this,t)||this;return n._getMemoizedMenuButtonKeytipProps=Yr(function(e){return d(d({},e),{hasMenu:!0})}),n._renderAriaDescription=function(e,t){return e?o.createElement("span",{id:n._ariaDescriptionId,className:t},e):null},n._onItemKeyDown=function(e){var t=n.props,o=t.item,r=t.onItemKeyDown;13===e.which?(n._executeItemClick(e),e.preventDefault(),e.stopPropagation()):r&&r(o,e)},n._getSubmenuTarget=function(){return n._splitButton},n._onItemMouseEnterPrimary=function(e){var t=n.props,o=t.item,r=t.onItemMouseEnter;r&&r(d(d({},o),{subMenuProps:void 0,items:void 0}),e,n._splitButton)},n._onItemMouseEnterIcon=function(e){var t=n.props,o=t.item,r=t.onItemMouseEnter;r&&r(o,e,n._splitButton)},n._onItemMouseMovePrimary=function(e){var t=n.props,o=t.item,r=t.onItemMouseMove;r&&r(d(d({},o),{subMenuProps:void 0,items:void 0}),e,n._splitButton)},n._onItemMouseMoveIcon=function(e){var t=n.props,o=t.item,r=t.onItemMouseMove;r&&r(o,e,n._splitButton)},n._onIconItemClick=function(e){var t=n.props,o=t.item,r=t.onItemClickBase;r&&r(o,e,n._splitButton?n._splitButton:e.currentTarget)},n._executeItemClick=function(e){var t=n.props,o=t.item,r=t.executeItemClick,i=t.onItemClick;if(!o.disabled&&!o.isDisabled)return n._processingTouch&&i?i(o,e):void(r&&r(o,e))},n._onTouchStart=function(e){n._splitButton&&!("onpointerdown"in n._splitButton)&&n._handleTouchAndPointerEvent(e)},n._onPointerDown=function(e){"touch"===e.pointerType&&(n._handleTouchAndPointerEvent(e),e.preventDefault(),e.stopImmediatePropagation())},n._async=new la(n),n._events=new ha(n),n}return c(t,e),t.prototype.componentDidMount=function(){this._splitButton&&"onpointerdown"in this._splitButton&&this._events.on(this._splitButton,"pointerdown",this._onPointerDown,!0)},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.render=function(){var e=this,t=this.props,n=t.item,r=t.classNames,i=t.index,a=t.focusableElementIndex,s=t.totalItemCount,l=t.hasCheckmarks,u=t.hasIcons,c=t.onItemMouseLeave,p=t.expandedMenuItemKey,h=Ja(n),f=n.keytipProps;f&&(f=this._getMemoizedMenuButtonKeytipProps(f));var m=n.ariaDescription;return m&&(this._ariaDescriptionId=oa()),o.createElement(Dl,{keytipProps:f,disabled:Za(n)},function(t){return o.createElement("div",{"data-ktp-target":t["data-ktp-target"],ref:function(t){return e._splitButton=t},role:$a(n),"aria-label":n.ariaLabel,className:r.splitContainer,"aria-disabled":Za(n),"aria-expanded":h?n.key===p:void 0,"aria-haspopup":!0,"aria-describedby":wa(m?e._ariaDescriptionId:void 0,t["aria-describedby"]),"aria-checked":n.isChecked||n.checked,"aria-posinset":a+1,"aria-setsize":s,onMouseEnter:e._onItemMouseEnterPrimary,onMouseLeave:c?c.bind(e,d(d({},n),{subMenuProps:null,items:null})):void 0,onMouseMove:e._onItemMouseMovePrimary,onKeyDown:e._onItemKeyDown,onClick:e._executeItemClick,onTouchStart:e._onTouchStart,tabIndex:0,"data-is-focusable":!0,"aria-roledescription":n["aria-roledescription"]},e._renderSplitPrimaryButton(n,r,i,l,u),e._renderSplitDivider(n),e._renderSplitIconButton(n,r,i,t),e._renderAriaDescription(m,r.screenReaderText))})},t.prototype._renderSplitPrimaryButton=function(e,t,n,r,i){var a=this.props,s=a.contextualMenuItemAs,l=void 0===s?kl:s,u=a.onItemClick,c={key:e.key,disabled:Za(e)||e.primaryDisabled,name:e.name,text:e.text||e.name,secondaryText:e.secondaryText,className:t.splitPrimary,canCheck:e.canCheck,isChecked:e.isChecked,checked:e.checked,iconProps:e.iconProps,onRenderIcon:e.onRenderIcon,data:e.data,"data-is-focusable":!1},p=e.itemProps;return o.createElement("button",d({},Wo(c,Ao)),o.createElement(l,d({"data-is-focusable":!1,item:c,classNames:t,index:n,onCheckmarkClick:r&&u?u:void 0,hasIcons:i},p)))},t.prototype._renderSplitDivider=function(e){var t=e.getSplitButtonVerticalDividerClassNames||Il;return o.createElement(Bl,{getClassNames:t})},t.prototype._renderSplitIconButton=function(e,t,n,r){var i=this.props,a=i.contextualMenuItemAs,s=void 0===a?kl:a,l=i.onItemMouseLeave,u=i.onItemMouseDown,c=i.openSubMenu,p=i.dismissSubMenu,h=i.dismissMenu,f={onClick:this._onIconItemClick,disabled:Za(e),className:t.splitMenu,subMenuProps:e.subMenuProps,submenuIconProps:e.submenuIconProps,split:!0,key:e.key},m=d(d({},Wo(f,Ao)),{onMouseEnter:this._onItemMouseEnterIcon,onMouseLeave:l?l.bind(this,e):void 0,onMouseDown:function(t){return u?u(e,t):void 0},onMouseMove:this._onItemMouseMoveIcon,"data-is-focusable":!1,"data-ktp-execute-target":r["data-ktp-execute-target"],"aria-hidden":!0}),g=e.itemProps;return o.createElement("button",d({},m),o.createElement(s,d({componentRef:e.componentRef,item:f,classNames:t,index:n,hasIcons:!1,openSubMenu:c,dismissSubMenu:p,dismissMenu:h,getSubmenuTarget:this._getSubmenuTarget},g)))},t.prototype._handleTouchAndPointerEvent=function(e){var t=this,n=this.props.onTap;n&&n(e),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},500)},t}(Ol),Ul=Io(),Wl=Io();function Hl(e){return e.subMenuProps?e.subMenuProps.items:e.items}var Gl=Yr(function(){for(var e=[],t=0;t0){for(var U=0,W=0,H=r;W0?o.createElement("li",{role:"presentation",key:l.key||e.key||"section-"+n},o.createElement("div",d({},c),o.createElement("ul",{className:this._classNames.list},l.topDivider&&this._renderSeparator(n,t,!0,!0),u&&this._renderListItem(u,e.key||n,t,e.title),l.items.map(function(e,t){return s._renderMenuItem(e,t,t,l.items.length,r,i)}),l.bottomDivider&&this._renderSeparator(n,t,!1,!0)))):void 0}},t.prototype._renderListItem=function(e,t,n,r){return o.createElement("li",{role:"presentation",title:r,key:t,className:n.item},e)},t.prototype._renderSeparator=function(e,t,n,r){return r||e>0?o.createElement("li",{role:"separator",key:"separator-"+e+(void 0===n?"":n?"-top":"-bottom"),className:t.divider,"aria-hidden":"true"}):null},t.prototype._renderNormalItem=function(e,t,n,o,r,i,a){return e.onRender?e.onRender(d({"aria-posinset":o+1,"aria-setsize":r},e),this.dismiss):e.href?this._renderAnchorMenuItem(e,t,n,o,r,i,a):e.split&&Ja(e)?this._renderSplitButton(e,t,n,o,r,i,a):this._renderButtonItem(e,t,n,o,r,i,a)},t.prototype._renderHeaderMenuItem=function(e,t,n,r,i){var a=this.props.contextualMenuItemAs,s=void 0===a?kl:a,l=e.itemProps,u=e.id,c=l&&Wo(l,Uo);return o.createElement("div",d({id:u,className:this._classNames.header},c,{style:e.style}),o.createElement(s,d({item:e,classNames:t,index:n,onCheckmarkClick:r?this._onItemClick:void 0,hasIcons:i},l)))},t.prototype._renderAnchorMenuItem=function(e,t,n,r,i,a,s){var l=this.props.contextualMenuItemAs,u=this.state.expandedMenuItemKey;return o.createElement(Ml,{item:e,classNames:t,index:n,focusableElementIndex:r,totalItemCount:i,hasCheckmarks:a,hasIcons:s,contextualMenuItemAs:l,onItemMouseEnter:this._onItemMouseEnterBase,onItemMouseLeave:this._onMouseItemLeave,onItemMouseMove:this._onItemMouseMoveBase,onItemMouseDown:this._onItemMouseDown,executeItemClick:this._executeItemClick,onItemClick:this._onAnchorClick,onItemKeyDown:this._onItemKeyDown,getSubMenuId:this._getSubMenuId,expandedMenuItemKey:u,openSubMenu:this._onItemSubMenuExpand,dismissSubMenu:this._onSubMenuDismiss,dismissMenu:this.dismiss})},t.prototype._renderButtonItem=function(e,t,n,r,i,a,s){var l=this.props.contextualMenuItemAs,u=this.state.expandedMenuItemKey;return o.createElement(Fl,{item:e,classNames:t,index:n,focusableElementIndex:r,totalItemCount:i,hasCheckmarks:a,hasIcons:s,contextualMenuItemAs:l,onItemMouseEnter:this._onItemMouseEnterBase,onItemMouseLeave:this._onMouseItemLeave,onItemMouseMove:this._onItemMouseMoveBase,onItemMouseDown:this._onItemMouseDown,executeItemClick:this._executeItemClick,onItemClick:this._onItemClick,onItemClickBase:this._onItemClickBase,onItemKeyDown:this._onItemKeyDown,getSubMenuId:this._getSubMenuId,expandedMenuItemKey:u,openSubMenu:this._onItemSubMenuExpand,dismissSubMenu:this._onSubMenuDismiss,dismissMenu:this.dismiss})},t.prototype._renderSplitButton=function(e,t,n,r,i,a,s){var l=this.props.contextualMenuItemAs,u=this.state.expandedMenuItemKey;return o.createElement(jl,{item:e,classNames:t,index:n,focusableElementIndex:r,totalItemCount:i,hasCheckmarks:a,hasIcons:s,contextualMenuItemAs:l,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:u,onTap:this._onPointerAndTouchEvent})},t.prototype._isAltOrMeta=function(e){return 18===e.which||"Meta"===e.key},t.prototype._shouldIgnoreMouseEvent=function(){return!this._isScrollIdle||!this._gotMouseMove},t.prototype._updateFocusOnMouseEvent=function(e,t,n){var o=this,r=n||t.currentTarget,i=this.props.subMenuHoverDelay,a=void 0===i?250:i;e.key!==this.state.expandedMenuItemKey&&(void 0!==this._enterTimerId&&(this._async.clearTimeout(this._enterTimerId),this._enterTimerId=void 0),void 0===this.state.expandedMenuItemKey&&r.focus(),Ja(e)?(t.stopPropagation(),this._enterTimerId=this._async.setTimeout(function(){r.focus(),o.setState({expandedByMouseClick:!0}),o._onItemSubMenuExpand(e,r),o._enterTimerId=void 0},a)):this._enterTimerId=this._async.setTimeout(function(){o._onSubMenuDismiss(t),r.focus(),o._enterTimerId=void 0},a))},t.prototype._getSubmenuProps=function(){var e=this.state,t=e.submenuTarget,n=e.expandedMenuItemKey,o=this._findItemByKey(n),r=null;return o&&(r={items:Hl(o),target:t,onDismiss:this._onSubMenuDismiss,isSubMenu:!0,id:this.state.subMenuId,shouldFocusOnMount:!0,shouldFocusOnContainer:this.state.expandedByMouseClick,directionalHint:Co(this.props.theme)?8:11,className:this.props.className,gapSpace:0,isBeakVisible:!1},o.subMenuProps&&ca(r,o.subMenuProps)),r},t.prototype._findItemByKey=function(e){var t=this.props.items;return this._findItemByKeyFromItems(e,t)},t.prototype._findItemByKeyFromItems=function(e,t){for(var n=0,o=t;n *":{position:"relative",left:0,top:0}}}],rootDisabled:[Wr(e,{inset:1,highContrastStyle:u,borderColor:"transparent"}),{backgroundColor:s,borderColor:s,color:l,cursor:"default",pointerEvents:"none",selectors:{":hover":tu,":focus":tu}}],iconDisabled:{color:l,selectors:(t={},t[Ar]={color:"GrayText"},t)},menuIconDisabled:{color:l,selectors:(n={},n[Ar]={color:"GrayText"},n)},flexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},description:{display:"block"},textContainer:{flexGrow:1,display:"block"},icon:nu(i.mediumPlus.fontSize),menuIcon:nu(i.small.fontSize),label:{margin:"0 4px",lineHeight:"100%",display:"block"},screenReaderText:Gr}}),ru=Yr(function(e,t){var n,o,r,i,a,s,l,u,c,p,h,f,m=e.effects,g=e.palette,y=e.semanticColors,v={position:"absolute",width:1,right:31,top:8,bottom:8};return Tn({splitButtonContainer:[Wr(e,{highContrastStyle:{left:-2,top:-2,bottom:-2,right:-2,border:"none"},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[Ar]={color:"WindowText",backgroundColor:"Window",border:"1px solid WindowText",borderRightWidth:"0",MsHighContrastAdjust:"none"},n)},".ms-Button--primary + .ms-Button":{border:"none",selectors:(o={},o[Ar]={border:"1px solid WindowText",borderLeftWidth:"0"},o)}}}],splitButtonContainerHovered:{selectors:{".ms-Button--primary":{selectors:(r={},r[Ar]={color:"Window",backgroundColor:"Highlight"},r)},".ms-Button.is-disabled":{color:y.buttonTextDisabled,selectors:(i={},i[Ar]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},i)}}},splitButtonContainerChecked:{selectors:{".ms-Button--primary":{selectors:(a={},a[Ar]={color:"Window",backgroundColor:"WindowText",MsHighContrastAdjust:"none"},a)}}},splitButtonContainerCheckedHovered:{selectors:{".ms-Button--primary":{selectors:(s={},s[Ar]={color:"Window",backgroundColor:"WindowText",MsHighContrastAdjust:"none"},s)}}},splitButtonContainerFocused:{outline:"none!important"},splitButtonMenuButton:{padding:6,height:"auto",boxSizing:"border-box",borderRadius:0,borderTopRightRadius:m.roundedCorner2,borderBottomRightRadius:m.roundedCorner2,border:"1px solid "+g.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},splitButtonDivider:d(d({},v),{selectors:(l={},l[Ar]={backgroundColor:"WindowText"},l)}),splitButtonDividerDisabled:d(d({},v),{selectors:(u={},u[Ar]={backgroundColor:"GrayText"},u)}),splitButtonMenuButtonDisabled:{pointerEvents:"none",border:"none",selectors:(c={":hover":{cursor:"default"},".ms-Button--primary":{selectors:(p={},p[Ar]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},p)},".ms-Button-menuIcon":{selectors:(h={},h[Ar]={color:"GrayText"},h)}},c[Ar]={color:"GrayText",border:"1px solid GrayText",backgroundColor:"Window"},c)},splitButtonFlexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},splitButtonContainerDisabled:{outline:"none",border:"none",selectors:d((f={},f[Ar]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},f),jr())}},t)}),iu=Yr(function(e,t){var n,o=ou(e),r=ru(e),i=e.palette;return Tn(o,{root:{padding:"0 4px",width:"32px",height:"32px",backgroundColor:"transparent",border:"none",color:e.semanticColors.link},rootHovered:{color:i.themeDarkAlt,backgroundColor:i.neutralLighter,selectors:(n={},n[Ar]={borderColor:"Highlight",color:"Highlight"},n)},rootHasMenu:{width:"auto"},rootPressed:{color:i.themeDark,backgroundColor:i.neutralLight},rootExpanded:{color:i.themeDark,backgroundColor:i.neutralLight},rootChecked:{color:i.themeDark,backgroundColor:i.neutralLight},rootCheckedHovered:{color:i.themeDark,backgroundColor:i.neutralQuaternaryAlt},rootDisabled:{color:i.neutralTertiaryAlt}},r,t)}),au=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,n=e.theme;return o.createElement(eu,d({},this.props,{variantClassName:"ms-Button--icon",styles:iu(n,t),onRenderText:ma,onRenderDescription:ma}))},h([rl("IconButton",["theme","styles"],!0)],t)}(o.Component),su=Io(),lu=function(e){function t(t){var n=e.call(this,t)||this;return n._rootElement=o.createRef(),n._inputElement=o.createRef(),n._onClickFocus=function(){var e=n._inputElement.current;e&&(n.focus(),e.selectionStart=e.selectionEnd=0)},n._onFocusCapture=function(e){n.setState({hasFocus:!0}),n.props.onFocus&&n.props.onFocus(e)},n._onClearClick=function(e){var t=n.props.clearButtonProps;t&&t.onClick&&t.onClick(e),e.defaultPrevented||n._onClear(e)},n._onKeyDown=function(e){switch(e.which){case 27:n.props.onEscape&&n.props.onEscape(e),n.state.value&&!e.defaultPrevented&&n._onClear(e);break;case 13:n.props.onSearch&&(n.props.onSearch(n.state.value),e.preventDefault(),e.stopPropagation());break;default:n.props.onKeyDown&&n.props.onKeyDown(e),e.defaultPrevented&&e.stopPropagation()}},n._onBlur=function(e){n.setState({hasFocus:!1}),n.props.onBlur&&n.props.onBlur(e)},n._onInputChange=function(e){var t=e.target.value;t!==n._latestValue&&(n._latestValue=t,n.setState({value:t}),n._callOnChange(e,t))},Yi(n),n._latestValue=t.value||"",n._fallbackId=oa("SearchBox"),n.state={value:n._latestValue,hasFocus:!1},n}return c(t,e),t.prototype.UNSAFE_componentWillReceiveProps=function(e){void 0!==e.value&&(this._latestValue=e.value,this.setState({value:e.value||""}))},t.prototype.render=function(){var e=this.props,t=e.ariaLabel,n=e.placeholder,r=e.className,i=e.disabled,a=e.underlined,s=e.styles,l=e.labelText,u=e.theme,c=e.clearButtonProps,p=e.disableAnimation,h=e.iconProps,f=e.role,m=e.id,g=void 0===m?this._fallbackId:m,y=this.state,v=y.value,b=y.hasFocus,_=void 0!==n?n:l,S=su(s,{theme:u,className:r,underlined:a,hasFocus:b,disabled:i,hasInput:v.length>0,disableAnimation:p}),C=Wo(this.props,Bo,["className","placeholder","onFocus","onBlur","value","role"]);return o.createElement("div",{role:f,ref:this._rootElement,className:S.root,onFocusCapture:this._onFocusCapture},o.createElement("div",{className:S.iconContainer,onClick:this._onClickFocus,"aria-hidden":!0},o.createElement(Wi,d({iconName:"Search"},h,{className:S.icon}))),o.createElement("input",d({},C,{id:g,className:S.field,placeholder:_,onChange:this._onInputChange,onInput:this._onInputChange,onBlur:this._onBlur,onKeyDown:this._onKeyDown,value:v,disabled:i,role:"searchbox","aria-label":t,ref:this._inputElement})),v.length>0&&o.createElement("div",{className:S.clearButton},o.createElement(au,d({onBlur:this._onBlur,styles:{root:{height:"auto"},icon:{fontSize:"12px"}},iconProps:{iconName:"Clear"}},c,{onClick:this._onClearClick}))))},t.prototype.focus=function(){this._inputElement.current&&this._inputElement.current.focus()},t.prototype.hasFocus=function(){return!!this.state.hasFocus},t.prototype._onClear=function(e){this.props.onClear&&this.props.onClear(e),e.defaultPrevented||(this._latestValue="",this.setState({value:""}),this._callOnChange(void 0,""),e.stopPropagation(),e.preventDefault(),this.focus())},t.prototype._callOnChange=function(e,t){var n=this.props,o=n.onChange,r=n.onChanged;r&&r(t),o&&o(e,t)},t.defaultProps={disableAnimation:!1,clearButtonProps:{ariaLabel:"Clear text"}},t}(o.Component),uu={root:"ms-SearchBox",iconContainer:"ms-SearchBox-iconContainer",icon:"ms-SearchBox-icon",clearButton:"ms-SearchBox-clearButton",field:"ms-SearchBox-field"},cu=jn(lu,function(e){var t,n,o,r,i,a=e.theme,s=e.underlined,l=e.disabled,u=e.hasFocus,c=e.className,d=e.hasInput,p=e.disableAnimation,h=a.palette,f=a.fonts,m=a.semanticColors,g=a.effects,y=ei(uu,a),v={color:m.inputPlaceholderText,opacity:1},b=h.neutralSecondary,_=h.neutralPrimary,S=h.neutralLighter,C=h.neutralLighter,w=h.neutralLighter;return{root:[y.root,f.medium,wi,{color:m.inputText,backgroundColor:m.inputBackground,display:"flex",flexDirection:"row",flexWrap:"nowrap",alignItems:"stretch",padding:"1px 0 1px 4px",borderRadius:g.roundedCorner2,border:"1px solid "+m.inputBorder,height:32,selectors:(t={},t[Ar]={borderColor:"WindowText"},t[":hover"]={borderColor:m.inputBorderHovered,selectors:(n={},n[Ar]={borderColor:"Highlight"},n)},t[":hover ."+y.iconContainer]={color:m.inputIconHovered},t)},!u&&d&&{selectors:(o={},o[":hover ."+y.iconContainer]={width:4},o[":hover ."+y.icon]={opacity:0},o)},u&&["is-active",{position:"relative"},Hr(m.inputFocusBorderAlt,s?0:g.roundedCorner2,s?"borderBottom":"border")],l&&["is-disabled",{borderColor:S,backgroundColor:w,pointerEvents:"none",cursor:"default",selectors:(r={},r[Ar]={borderColor:"GrayText"},r)}],s&&["is-underlined",{borderWidth:"0 0 1px 0",borderRadius:0,padding:"1px 0 1px 8px"}],s&&l&&{backgroundColor:"transparent"},d&&"can-clear",c],iconContainer:[y.iconContainer,{display:"flex",flexDirection:"column",justifyContent:"center",flexShrink:0,fontSize:16,width:32,textAlign:"center",color:m.inputIcon,cursor:"text"},u&&{width:4},l&&{color:m.inputIconDisabled},!p&&{transition:"width 0.167s"}],icon:[y.icon,{opacity:1},u&&{opacity:0},!p&&{transition:"opacity 0.167s 0s"}],clearButton:[y.clearButton,{display:"flex",flexDirection:"row",alignItems:"stretch",cursor:"pointer",flexBasis:"32px",flexShrink:0,padding:0,margin:"-1px 0px",selectors:{"&:hover .ms-Button":{backgroundColor:C},"&:hover .ms-Button-icon":{color:_},".ms-Button":{borderRadius:Co(a)?"1px 0 0 1px":"0 1px 1px 0"},".ms-Button-icon":{color:b}}}],field:[y.field,wi,(i=v,{selectors:{"::placeholder":i,":-ms-input-placeholder":i,"::-ms-input-placeholder":i}}),{backgroundColor:"transparent",border:"none",outline:"none",fontWeight:"inherit",fontFamily:"inherit",fontSize:"inherit",color:m.inputText,flex:"1 1 0px",minWidth:"0px",overflow:"hidden",textOverflow:"ellipsis",paddingBottom:.5,selectors:{"::-ms-clear":{display:"none"}}},l&&{color:m.disabledText}]}},void 0,{scope:"SearchBox"}),du=n("zwa+");!function(e){e[e.xSmall=0]="xSmall",e[e.small=1]="small",e[e.medium=2]="medium",e[e.large=3]="large"}(Vl||(Vl={})),function(e){e[e.normal=0]="normal",e[e.large=1]="large"}(Ql||(Ql={}));var pu=function(e){function t(t){var n=e.call(this,t)||this;return n.state={isRendered:!1},n}return c(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props.delay;this._timeoutId=window.setTimeout(function(){e.setState({isRendered:!0})},t)},t.prototype.componentWillUnmount=function(){this._timeoutId&&clearTimeout(this._timeoutId)},t.prototype.render=function(){return this.state.isRendered?o.Children.only(this.props.children):null},t.defaultProps={delay:0},t}(o.Component),hu=Io(),fu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.type,n=e.size,r=e.ariaLabel,i=e.ariaLive,a=e.styles,s=e.label,l=e.theme,u=e.className,c=e.labelPosition,p=r,h=Wo(this.props,Uo,["size"]),f=n;void 0===f&&void 0!==t&&(f=t===Ql.large?Vl.large:Vl.medium);var m=hu(a,{theme:l,size:f,className:u,labelPosition:c});return o.createElement("div",d({},h,{className:m.root}),o.createElement("div",{className:m.circle}),s&&o.createElement("div",{className:m.label},s),p&&o.createElement("div",{role:"status","aria-live":i},o.createElement(pu,null,o.createElement("div",{className:m.screenReaderText},p))))},t.defaultProps={size:Vl.medium,ariaLive:"polite",labelPosition:"bottom"},t}(o.Component),mu={root:"ms-Spinner",circle:"ms-Spinner-circle",label:"ms-Spinner-label"},gu=Yr(function(){return qo({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}})}),yu=jn(fu,function(e){var t,n=e.theme,o=e.size,r=e.className,i=e.labelPosition,a=n.palette,s=ei(mu,n);return{root:[s.root,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},"top"===i&&{flexDirection:"column-reverse"},"right"===i&&{flexDirection:"row"},"left"===i&&{flexDirection:"row-reverse"},r],circle:[s.circle,{boxSizing:"border-box",borderRadius:"50%",border:"1.5px solid "+a.themeLight,borderTopColor:a.themePrimary,animationName:gu(),animationDuration:"1.3s",animationIterationCount:"infinite",animationTimingFunction:"cubic-bezier(.53,.21,.29,.67)",selectors:d((t={},t[Ar]={borderTopColor:"Highlight"},t),jr())},o===Vl.xSmall&&["ms-Spinner--xSmall",{width:12,height:12}],o===Vl.small&&["ms-Spinner--small",{width:16,height:16}],o===Vl.medium&&["ms-Spinner--medium",{width:20,height:20}],o===Vl.large&&["ms-Spinner--large",{width:28,height:28}]],label:[s.label,n.fonts.small,{color:a.themePrimary,margin:"8px 0 0",textAlign:"center"},"top"===i&&{margin:"0 0 8px"},"right"===i&&{margin:"0 0 0 8px"},"left"===i&&{margin:"0 8px 0 0"}],screenReaderText:Gr}},void 0,{scope:"Spinner"}),vu=Io(),bu=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r._checkBox=o.createRef(),r._renderContent=function(e,t,n){void 0===n&&(n={});var i=r.props,a=i.disabled,s=i.inputProps,l=i.name,u=i.ariaLabel,c=i.ariaLabelledBy,p=i.ariaDescribedBy,h=i.onRenderLabel,f=void 0===h?r._onRenderLabel:h,m=i.checkmarkIconProps,g=i.ariaPositionInSet,y=i.ariaSetSize,v=i.title,b=i.label;return o.createElement("div",{className:r._classNames.root,title:v},o.createElement(ba,null),o.createElement("input",d({type:"checkbox"},s,{"data-ktp-execute-target":n["data-ktp-execute-target"],checked:e,disabled:a,className:r._classNames.input,ref:r._checkBox,name:l,id:r._id,title:v,onChange:r._onChange,onFocus:r._onFocus,onBlur:r._onBlur,"aria-disabled":a,"aria-label":u||b,"aria-labelledby":c,"aria-describedby":wa(p,n["aria-describedby"]),"aria-posinset":g,"aria-setsize":y,"aria-checked":t?"mixed":e?"true":"false"})),o.createElement("label",{className:r._classNames.label,htmlFor:r._id},o.createElement("div",{className:r._classNames.checkbox,"data-ktp-target":n["data-ktp-target"]},o.createElement(Wi,d({iconName:"CheckMark"},m,{className:r._classNames.checkmark}))),f(r.props,r._onRenderLabel)))},r._onFocus=function(e){var t=r.props.inputProps;t&&t.onFocus&&t.onFocus(e)},r._onBlur=function(e){var t=r.props.inputProps;t&&t.onBlur&&t.onBlur(e)},r._onChange=function(e){var t=r.props.onChange,n=r.state,o=n.isChecked;n.isIndeterminate?(t&&t(e,o),void 0===r.props.indeterminate&&r.setState({isIndeterminate:!1})):(t&&t(e,!o),void 0===r.props.checked&&r.setState({isChecked:!o}))},r._onRenderLabel=function(e){var t=e.label,n=e.title;return t?o.createElement("span",{"aria-hidden":"true",className:r._classNames.text,title:n},t):null},Yi(r),r._id=r.props.id||oa("checkbox-"),r.state={isChecked:!!(void 0!==t.checked?t.checked:t.defaultChecked),isIndeterminate:!!(void 0!==t.indeterminate?t.indeterminate:t.defaultIndeterminate)},r}return c(t,e),t.getDerivedStateFromProps=function(e,t){var n={};return void 0!==e.indeterminate&&(n.isIndeterminate=!!e.indeterminate),void 0!==e.checked&&(n.isChecked=!!e.checked),Object.keys(n).length?n:null},t.prototype.render=function(){var e=this,t=this.props,n=t.className,r=t.disabled,i=t.boxSide,a=t.theme,s=t.styles,l=t.onRenderLabel,u=void 0===l?this._onRenderLabel:l,c=t.keytipProps,d=this.state,p=d.isChecked,h=d.isIndeterminate;return this._classNames=vu(s,{theme:a,className:n,disabled:r,indeterminate:h,checked:p,reversed:"start"!==i,isUsingCustomLabelRender:u!==this._onRenderLabel}),c?o.createElement(Dl,{keytipProps:c,disabled:r},function(t){return e._renderContent(p,h,t)}):this._renderContent(p,h)},Object.defineProperty(t.prototype,"indeterminate",{get:function(){return!!this.state.isIndeterminate},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"checked",{get:function(){return!!this.state.isChecked},enumerable:!0,configurable:!0}),t.prototype.focus=function(){this._checkBox.current&&this._checkBox.current.focus()},t.defaultProps={boxSide:"start"},t}(o.Component),_u={root:"ms-Checkbox",label:"ms-Checkbox-label",checkbox:"ms-Checkbox-checkbox",checkmark:"ms-Checkbox-checkmark",text:"ms-Checkbox-text"},Su=jn(bu,function(e){var t,n,o,r,i,a,s,l,u,c,p,h,f,m,g,y,v,b,_=e.className,S=e.theme,C=e.reversed,w=e.checked,T=e.disabled,I=e.isUsingCustomLabelRender,E=e.indeterminate,x=S.semanticColors,P=S.effects,k=S.palette,O=S.fonts,N=ei(_u,S),R=x.inputForegroundChecked,D=k.neutralSecondary,M=k.neutralPrimary,F=x.inputBackgroundChecked,L=x.inputBackgroundChecked,A=x.disabledBodySubtext,B=x.inputBorderHovered,j=x.inputBackgroundCheckedHovered,U=x.inputBackgroundChecked,W=x.inputBackgroundCheckedHovered,H=x.inputBackgroundCheckedHovered,G=x.inputTextHovered,z=x.disabledBodySubtext,K=x.bodyText,q=x.disabledText,V=[(t={content:'""',borderRadius:P.roundedCorner2,position:"absolute",width:10,height:10,top:4,left:4,boxSizing:"border-box",borderWidth:5,borderStyle:"solid",borderColor:T?A:F,transitionProperty:"border-width, border, border-color",transitionDuration:"200ms",transitionTimingFunction:"cubic-bezier(.4, 0, .23, 1)"},t[Ar]={borderColor:"WindowText"},t)];return{root:[N.root,{position:"relative",display:"flex"},C&&"reversed",w&&"is-checked",!T&&"is-enabled",T&&"is-disabled",!T&&[!w&&(n={},n[":hover ."+N.checkbox]=(o={borderColor:B},o[Ar]={borderColor:"Highlight"},o),n[":focus ."+N.checkbox]={borderColor:B},n[":hover ."+N.checkmark]=(r={color:D,opacity:"1"},r[Ar]={color:"Highlight"},r),n),w&&!E&&(i={},i[":hover ."+N.checkbox]={background:W,borderColor:H},i[":focus ."+N.checkbox]={background:W,borderColor:H},i[Ar]=(a={},a[":hover ."+N.checkbox]={background:"Highlight",borderColor:"Highlight"},a[":focus ."+N.checkbox]={background:"Highlight"},a[":focus:hover ."+N.checkbox]={background:"Highlight"},a[":focus:hover ."+N.checkmark]={color:"Window"},a[":hover ."+N.checkmark]={color:"Window"},a),i),E&&(s={},s[":hover ."+N.checkbox+", :hover ."+N.checkbox+":after"]=(l={borderColor:j},l[Ar]={borderColor:"WindowText"},l),s[":focus ."+N.checkbox]={borderColor:j},s[":hover ."+N.checkmark]={opacity:"0"},s),(u={},u[":hover ."+N.text+", :focus ."+N.text]=(c={color:G},c[Ar]={color:T?"GrayText":"WindowText"},c),u)],_],input:(p={position:"absolute",background:"none",opacity:0},p[".ms-Fabric--isFocusVisible &:focus + label::before"]=(h={outline:"1px solid "+S.palette.neutralSecondary,outlineOffset:"2px"},h[Ar]={outline:"1px solid ActiveBorder"},h),p),label:[N.label,S.fonts.medium,{display:"flex",alignItems:I?"center":"flex-start",cursor:T?"default":"pointer",position:"relative",userSelect:"none"},C&&{flexDirection:"row-reverse",justifyContent:"flex-end"},{"&::before":{position:"absolute",left:0,right:0,top:0,bottom:0,content:'""',pointerEvents:"none"}}],checkbox:[N.checkbox,d((f={position:"relative",display:"flex",flexShrink:0,alignItems:"center",justifyContent:"center",height:"20px",width:"20px",border:"1px solid "+M,borderRadius:P.roundedCorner2,boxSizing:"border-box",transitionProperty:"background, border, border-color",transitionDuration:"200ms",transitionTimingFunction:"cubic-bezier(.4, 0, .23, 1)",overflow:"hidden",":after":E?V:null},f[Ar]={borderColor:"WindowText"},f),jr()),E&&{borderColor:F},C?{marginLeft:4}:{marginRight:4},!T&&!E&&w&&(m={background:U,borderColor:L},m[Ar]={background:"Highlight",borderColor:"Highlight"},m),T&&(g={borderColor:A},g[Ar]={borderColor:"GrayText"},g),w&&T&&(y={background:z,borderColor:A},y[Ar]={background:"Window"},y)],checkmark:[N.checkmark,(v={opacity:w?"1":"0",color:R},v[Ar]={color:T?"GrayText":"Window",MsHighContrastAdjust:"none"},v)],text:[N.text,d((b={color:T?q:K,fontSize:O.medium.fontSize,lineHeight:"20px"},b[Ar]={color:T?"GrayText":"WindowText"},b),jr()),C?{marginRight:4}:{marginLeft:4}]}},void 0,{scope:"Checkbox"});n("m08b");var Cu={name:"",numberFormat:{CurrencyDecimalDigits:2,CurrencyDecimalSeparator:".",IsReadOnly:!0,CurrencyGroupSizes:[3],NumberGroupSizes:[3],PercentGroupSizes:[3],CurrencyGroupSeparator:",",CurrencySymbol:"¤",NaNSymbol:"NaN",CurrencyNegativePattern:0,NumberNegativePattern:1,PercentPositivePattern:0,PercentNegativePattern:0,NegativeInfinitySymbol:"-Infinity",NegativeSign:"-",NumberDecimalDigits:2,NumberDecimalSeparator:".",NumberGroupSeparator:",",CurrencyPositivePattern:0,PositiveInfinitySymbol:"Infinity",PositiveSign:"+",PercentDecimalDigits:2,PercentDecimalSeparator:".",PercentGroupSeparator:",",PercentSymbol:"%",PerMilleSymbol:"‰",NativeDigits:["0","1","2","3","4","5","6","7","8","9"],DigitSubstitution:1},dateTimeFormat:{AMDesignator:"AM",Calendar:{MinSupportedDateTime:"@-62135568000000@",MaxSupportedDateTime:"@253402300799999@",AlgorithmType:1,CalendarType:1,Eras:[1],TwoDigitYearMax:2029,IsReadOnly:!0},DateSeparator:"/",FirstDayOfWeek:0,CalendarWeekRule:0,FullDateTimePattern:"dddd, dd MMMM yyyy HH:mm:ss",LongDatePattern:"dddd, dd MMMM yyyy",LongTimePattern:"HH:mm:ss",MonthDayPattern:"MMMM dd",PMDesignator:"PM",RFC1123Pattern:"ddd, dd MMM yyyy HH':'mm':'ss 'GMT'",ShortDatePattern:"MM/dd/yyyy",ShortTimePattern:"HH:mm",SortableDateTimePattern:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",TimeSeparator:":",UniversalSortableDateTimePattern:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",YearMonthPattern:"yyyy MMMM",AbbreviatedDayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],ShortestDayNames:["Su","Mo","Tu","We","Th","Fr","Sa"],DayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],AbbreviatedMonthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],MonthNames:["January","February","March","April","May","June","July","August","September","October","November","December",""],IsReadOnly:!0,NativeCalendarName:"Gregorian Calendar",AbbreviatedMonthGenitiveNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],MonthGenitiveNames:["January","February","March","April","May","June","July","August","September","October","November","December",""],eras:[1,"A.D.",null,0]}};String.prototype.parseNumberInvariant=function(){return this._parseNumber(window.Sys&&window.Sys.CultureInfo&&window.Sys.CultureInfo.InvariantCulture||Cu)},String.prototype._parseNumber=function(e){var t=""+this;if((t=t.trim()).match(/^[+-]?infinity$/i))return parseFloat(t);if(t.match(/^0x[a-f0-9]+$/i))return parseInt(t);var n,o,r=e.numberFormat,i=t._parseNumberNegativePattern(r,r.NumberNegativePattern),a=i[0],s=i[1];""===a&&1!==r.NumberNegativePattern&&(a=(i=t._parseNumberNegativePattern(r,1))[0],s=i[1]),""===a&&(a="+");var l,u,c=s.indexOf("e");c<0&&(c=s.indexOf("E")),c<0?(o=s,n=null):(o=s.substr(0,c),n=s.substr(c+1));var d=o.indexOf(r.NumberDecimalSeparator);d<0?(l=o,u=null):(l=o.substr(0,d),u=o.substr(d+r.NumberDecimalSeparator.length)),l=l.split(r.NumberGroupSeparator).join("");var p=r.NumberGroupSeparator.replace(/\u00A0/g," ");r.NumberGroupSeparator!==p&&(l=l.split(p).join(""));var h=a+l;if(null!==u&&(h+="."+u),null!==n){var f=n._parseNumberNegativePattern(r,1);""===f[0]&&(f[0]="+"),h+="e"+f[0]+f[1]}return h.match(/^[+-]?\d*\.?\d*(e[+-]?\d+)?$/)?parseFloat(h):Number.NaN},String.prototype._parseNumberNegativePattern=function(e,t){var n=e.NegativeSign,o=e.PositiveSign;switch(t){case 4:n=" "+n,o=" "+o;break;case 3:if(this.endsWith(n))return["-",this.substr(0,this.length-n.length)];if(this.endsWith(o))return["+",this.substr(0,this.length-o.length)];break;case 2:n+=" ",o+=" ";break;case 1:if(this.startsWith(n))return["-",this.substr(n.length)];if(this.startsWith(o))return["+",this.substr(o.length)];break;case 0:if(this.startsWith("(")&&this.endsWith(")"))return["-",this.substr(1,this.length-2)]}return["",this]},n("Pk8u"),function(){function e(){}e.trimSlash=function(e){return e.lastIndexOf("/")===e.length-1?e.slice(0,-1):e},e.encodeText=function(e){return e?e.replace(/[<>&'"\\]/g,this._getEncodedChar):""},e.getRelativeDateTimeString=function(e){var t=e.split("|"),n=null,o=null;if("0"===t[0])return e.substring(2);var r="1"===t[1],i=t[2],a=t.length>=4?t[3]:null,s=t.length>=5?t[4]:null;switch(i){case"1":n=r?du.DateTime.L_RelativeDateTime_AFewSecondsFuture:du.DateTime.L_RelativeDateTime_AFewSeconds;break;case"2":n=r?du.DateTime.L_RelativeDateTime_AboutAMinuteFuture:du.DateTime.L_RelativeDateTime_AboutAMinute;break;case"3":o=this.getLocalizedCountValue(r?du.DateTime.L_RelativeDateTime_XMinutesFuture:du.DateTime.L_RelativeDateTime_XMinutes,r?du.DateTime.L_RelativeDateTime_XMinutesFutureIntervals:du.DateTime.L_RelativeDateTime_XMinutesIntervals,Number(a));break;case"4":n=r?du.DateTime.L_RelativeDateTime_AboutAnHourFuture:du.DateTime.L_RelativeDateTime_AboutAnHour;break;case"5":null===a?n=r?du.DateTime.L_RelativeDateTime_Tomorrow:du.DateTime.L_RelativeDateTime_Yesterday:o=r?du.DateTime.L_RelativeDateTime_TomorrowAndTime:du.DateTime.L_RelativeDateTime_YesterdayAndTime;break;case"6":o=this.getLocalizedCountValue(r?du.DateTime.L_RelativeDateTime_XHoursFuture:du.DateTime.L_RelativeDateTime_XHours,r?du.DateTime.L_RelativeDateTime_XHoursFutureIntervals:du.DateTime.L_RelativeDateTime_XHoursIntervals,Number(a));break;case"7":null===s?n=a:o=du.DateTime.L_RelativeDateTime_DayAndTime;break;case"8":o=this.getLocalizedCountValue(r?du.DateTime.L_RelativeDateTime_XDaysFuture:du.DateTime.L_RelativeDateTime_XDays,r?du.DateTime.L_RelativeDateTime_XDaysFutureIntervals:du.DateTime.L_RelativeDateTime_XDaysIntervals,Number(a));break;case"9":n=du.DateTime.L_RelativeDateTime_Today}return null!==o&&(n=o.replace("{0}",a),null!==s&&(n=n.replace("{1}",s))),n},e.getLocalizedCountValue=function(e,t,n){if(void 0===e||void 0===t||void 0===n)return null;for(var o="",r=-1,i=t.split("||"),a=0,s=i.length;a=f){if(""===h[1]){r=a;break}if(isNaN(h[1].parseNumberInvariant()))continue;if(n<=parseInt(h[1])){r=a;break}}}else if(n===parseInt(p)){r=a;break}}if(-1!==r)break}}if(-1!==r){var m=e.split("||");null!==m&&null!==m[r]&&""!==m[r]&&(o=m[r])}return o},e.getTextFromHTML=function(e){var t=e,n="(?:[^\"'>]|\"[^\"]*\"|'[^']*')*",o=new RegExp("<(?:!--(?:(?:-*[^->])*--+|-?)|script\\b"+n+">[\\s\\S]*?[\\s\\S]*?","gi");do{t=t.replace(o,"")}while(t!=t);return t},e.isDefined=function(e){return null!=e},e.parseXml=function(e){return(new DOMParser).parseFromString(e,"text/xml")},e.getAbsoluteDomainUrl=function(e){if(void 0!==e){var t=new URL(e.toLowerCase());return t.protocol+"//"+t.host}},e.getFileFromBlob=function(e,t){var n=null;try{n=new File([e],t)}catch(o){(n=e).fileName=t}return n},e.formatBytes=function(e,t){if(0===e)return du.EmptyFileSize;var n=t<=0?0:t||2,o=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,o)).toFixed(n))+" "+du.SizeUnit[o]},e.getFileNameWithoutExtension=function(t){return e.getFileNameFromUrl(t).split(".")[0]},e.getFileNameFromUrl=function(e){var t=e.split("?")[0].split("/");return t[t.length-1]},e.isImage=function(t){var n=".gif,.jpg,.jpeg,.bmp,.dib,.tif,.tiff,.ico,.png,.jxr,.svg".split(","),o=e.getFileExtension(t);return n.indexOf(o)>-1},e.getFileExtension=function(e){var t=e.toLowerCase().split(".").pop();if(-1!==t.indexOf("?")){var n=t.split("?");t=n[0]}return"."+t},e._getEncodedChar=function(e){return{"<":"<",">":">","&":"&",'"':""","'":"'","\\":"\"}[e]}}();var wu=function(e){var t,n=e.site,r=e.checked;return o.createElement("li",{className:"siteListItem_0979a690",key:n.url},o.createElement(Su,{className:"checkbox_0979a690",checked:r,onChange:function(t,o){return e.handleCheckboxChange(n,o)}}),o.createElement("div",{className:"content_0979a690"},o.createElement("span",{className:"title_0979a690",title:n.title},n.title),o.createElement("span",{className:"url_0979a690",title:n.url},(t=n.url)?t.replace(/^(?:\/\/|[^/]+)*\//,"/"):"")))};n("VSd+");function Tu(e,t){void 0===e&&(e=""),Pi({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons"',src:"url('"+e+"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:""}},t)}function Iu(e,t){void 0===e&&(e=""),Pi({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-0"',src:"url('"+e+"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:""}},t)}function Eu(e,t){void 0===e&&(e=""),Pi({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-1"',src:"url('"+e+"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:""}},t)}function xu(e,t){void 0===e&&(e=""),Pi({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-2"',src:"url('"+e+"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:""}},t)}function Pu(e,t){void 0===e&&(e=""),Pi({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-3"',src:"url('"+e+"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:""}},t)}function ku(e,t){void 0===e&&(e=""),Pi({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-4"',src:"url('"+e+"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:""}},t)}function Ou(e,t){void 0===e&&(e=""),Pi({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-5"',src:"url('"+e+"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:""}},t)}function Nu(e,t){void 0===e&&(e=""),Pi({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-6"',src:"url('"+e+"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:""}},t)}function Ru(e,t){void 0===e&&(e=""),Pi({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-7"',src:"url('"+e+"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:""}},t)}function Du(e,t){void 0===e&&(e=""),Pi({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-8"',src:"url('"+e+"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:""}},t)}function Mu(e,t){void 0===e&&(e=""),Pi({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-9"',src:"url('"+e+"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:""}},t)}function Fu(e,t){void 0===e&&(e=""),Pi({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-10"',src:"url('"+e+"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:""}},t)}function Lu(e,t){void 0===e&&(e=""),Pi({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-11"',src:"url('"+e+"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:""}},t)}function Au(e,t){void 0===e&&(e=""),Pi({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-12"',src:"url('"+e+"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:""}},t)}function Bu(e,t){void 0===e&&(e=""),Pi({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-13"',src:"url('"+e+"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:""}},t)}function ju(e,t){void 0===e&&(e=""),Pi({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-14"',src:"url('"+e+"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:""}},t)}function Uu(e,t){void 0===e&&(e=""),Pi({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-15"',src:"url('"+e+"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:""}},t)}function Wu(e,t){void 0===e&&(e=""),Pi({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-16"',src:"url('"+e+"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:""}},t)}function Hu(e,t){void 0===e&&(e=""),Pi({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-17"',src:"url('"+e+"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:""}},t)}Object(Di.a)("@uifabric/icons","7.5.16");var Gu=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),zu=function(e){function t(t){var n,o,r=e.call(this,t)||this;return r.onSearchFieldChange=function(e){return t=r,void 0,o=function(){var t,n;return function(e,t){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]2))return[3,6];this.setState({isLoading:!0}),o.label=1;case 1:return o.trys.push([1,3,4,5]),[4,this.searchService.searchSites(this.props.context,e)];case 2:return t=o.sent(),this.setState({siteSearchResults:t}),[3,5];case 3:return n=o.sent(),this.setState({errorMessage:n}),[3,5];case 4:return this.setState({isLoading:!1}),[7];case 5:return[3,7];case 6:this.setState({siteSearchResults:[]}),o.label=7;case 7:return[2]}})},new((n=void 0)||(n=Promise))(function(e,r){function i(e){try{s(o.next(e))}catch(e){r(e)}}function a(e){try{s(o.throw(e))}catch(e){r(e)}}function s(t){var o;t.done?e(t.value):(o=t.value,o instanceof n?o:new n(function(e){e(o)})).then(i,a)}s((o=o.apply(t,[])).next())});var t,n,o},r.handleCheckboxChange=function(e,t){var n=function(){for(var e=0,t=0,n=arguments.length;t0&&o.createElement("ul",{className:"siteList_fe3404bf"},r.map(function(t){return o.createElement(wu,{key:t.url,checked:i.filter(function(e){return e.url===t.url}).length>0,handleCheckboxChange:e.handleCheckboxChange,site:t})})),0===r.length&&o.createElement(Qi,null,du.SitePickerNoResults)),i&&i.length>0&&o.createElement("div",null,o.createElement(Qi,{className:"bold_fe3404bf"},i.length," ",du.SitePickerSitesChosen),o.createElement("ul",{className:"siteList_fe3404bf"},i.map(function(t){return o.createElement(wu,{key:t.url,checked:i.filter(function(e){return e.url===t.url}).length>0,handleCheckboxChange:e.handleCheckboxChange,site:t})}))),o.createElement(Gi,{errorMessage:this.state.errorMessage}))},t}(o.Component),Ku=function(){return(Ku=Object.assign||function(e){for(var t,n=1,o=arguments.length;n0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]-1},o.prototype.getCachedToken=function(e){if(!this._hasResource(e))return null;var t=this._getItem(this.CONSTANTS.STORAGE.ACCESS_TOKEN_KEY+e),n=this._getItem(this.CONSTANTS.STORAGE.EXPIRATION_KEY+e),o=this.config.expireOffsetSeconds||300;return n&&n>this._now()+o?t:(this._saveItem(this.CONSTANTS.STORAGE.ACCESS_TOKEN_KEY+e,""),this._saveItem(this.CONSTANTS.STORAGE.EXPIRATION_KEY+e,0),null)},o.prototype.getCachedUser=function(){if(this._user)return this._user;var e=this._getItem(this.CONSTANTS.STORAGE.IDTOKEN);return this._user=this._createUser(e),this._user},o.prototype.registerCallback=function(e,t,n){this._activeRenewals[t]=e,this._callBacksMappedToRenewStates[e]||(this._callBacksMappedToRenewStates[e]=[]);var o=this;this._callBacksMappedToRenewStates[e].push(n),this._callBackMappedToRenewStates[e]||(this._callBackMappedToRenewStates[e]=function(n,r,i,a){o._activeRenewals[t]=null;for(var s=0;s-1)){var t=this._user.profile.upn.split("@");e+="&domain_hint="+encodeURIComponent(t[t.length-1])}return e},o.prototype._createUser=function(e){var t=null,n=this._extractIdToken(e);return n&&n.hasOwnProperty("aud")&&(n.aud.toLowerCase()===this.config.clientId.toLowerCase()?(t={userName:"",profile:n},n.hasOwnProperty("upn")?t.userName=n.upn:n.hasOwnProperty("email")&&(t.userName=n.email)):this.warn("IdToken has invalid aud field")),t},o.prototype._getHash=function(e){return e.indexOf("#/")>-1?e=e.substring(e.indexOf("#/")+2):e.indexOf("#")>-1&&(e=e.substring(1)),e},o.prototype.isCallback=function(e){e=this._getHash(e);var t=this._deserialize(e);return t.hasOwnProperty(this.CONSTANTS.ERROR_DESCRIPTION)||t.hasOwnProperty(this.CONSTANTS.ACCESS_TOKEN)||t.hasOwnProperty(this.CONSTANTS.ID_TOKEN)},o.prototype.getLoginError=function(){return this._getItem(this.CONSTANTS.STORAGE.LOGIN_ERROR)},o.prototype.getRequestInfo=function(e){e=this._getHash(e);var t=this._deserialize(e),n={valid:!1,parameters:{},stateMatch:!1,stateResponse:"",requestType:this.REQUEST_TYPE.UNKNOWN};if(t&&(n.parameters=t,t.hasOwnProperty(this.CONSTANTS.ERROR_DESCRIPTION)||t.hasOwnProperty(this.CONSTANTS.ACCESS_TOKEN)||t.hasOwnProperty(this.CONSTANTS.ID_TOKEN))){var o;if(n.valid=!0,!t.hasOwnProperty("state"))return this.warn("No state returned"),n;if(this.verbose("State: "+t.state),o=t.state,n.stateResponse=o,this._matchState(n))return n;if(!n.stateMatch&&window.parent){n.requestType=this._requestType;for(var r=this._renewStates,i=0;i-1&&t+1-1)return null;if(this.config&&this.config.endpoints)for(var n in this.config.endpoints)if(e.indexOf(n)>-1)return this.config.endpoints[n];return e.indexOf("http://")>-1||e.indexOf("https://")>-1?this._getHostFromUri(e)===this._getHostFromUri(this.config.redirectUri)?this.config.loginResource:null:this.config.loginResource},o.prototype._getHostFromUri=function(e){return String(e).replace(/^(https?:)\/\//,"").split("/")[0]},o.prototype.handleWindowCallback=function(e){if(null==e&&(e=window.location.hash),this.isCallback(e)){var t=null,n=!1;this._openedWindows.length>0&&this._openedWindows[this._openedWindows.length-1].opener&&this._openedWindows[this._openedWindows.length-1].opener._adalInstance?(t=this._openedWindows[this._openedWindows.length-1].opener._adalInstance,n=!0):window.parent&&window.parent._adalInstance&&(t=window.parent._adalInstance);var o,r,i=t.getRequestInfo(e),a=null;r=n||window.parent!==window?t._callBackMappedToRenewStates[i.stateResponse]:t.callback,t.info("Returned from redirect url"),t.saveTokenFromHash(i),i.requestType===this.REQUEST_TYPE.RENEW_TOKEN&&window.parent?(window.parent!==window?t.verbose("Window is in iframe, acquiring token silently"):t.verbose("acquiring token interactive in progress"),o=i.parameters[t.CONSTANTS.ACCESS_TOKEN]||i.parameters[t.CONSTANTS.ID_TOKEN],a=t.CONSTANTS.ACCESS_TOKEN):i.requestType===this.REQUEST_TYPE.LOGIN&&(o=i.parameters[t.CONSTANTS.ID_TOKEN],a=t.CONSTANTS.ID_TOKEN);var s=i.parameters[t.CONSTANTS.ERROR_DESCRIPTION],l=i.parameters[t.CONSTANTS.ERROR];try{r&&r(s,o,l,a)}catch(e){t.error("Error occurred in user defined callback function: "+e)}window.parent!==window||n||(t.config.navigateToLoginRequestUrl?window.location.href=t._getItem(t.CONSTANTS.STORAGE.LOGIN_REQUEST):window.location.hash="")}},o.prototype._getNavigateUrl=function(e,t){var n="common";this.config.tenant&&(n=this.config.tenant);var o=this.instance+n+"/oauth2/authorize"+this._serialize(e,this.config,t)+this._addLibMetadata();return this.info("Navigate url:"+o),o},o.prototype._extractIdToken=function(e){var t=this._decodeJwt(e);if(!t)return null;try{var n=t.JWSPayload,o=this._base64DecodeStringUrlSafe(n);return o?JSON.parse(o):(this.info("The returned id_token could not be base64 url safe decoded."),null)}catch(e){this.error("The returned id_token could not be decoded",e)}return null},o.prototype._base64DecodeStringUrlSafe=function(e){return e=e.replace(/-/g,"+").replace(/_/g,"/"),window.atob?decodeURIComponent(escape(window.atob(e))):decodeURIComponent(escape(this._decode(e)))},o.prototype._decode=function(e){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n=(e=String(e).replace(/=+$/,"")).length;if(n%4==1)throw new Error("The token to be decoded is not correctly encoded.");for(var o,r,i,a,s,l,u,c,d="",p=0;p>16&255,u=s>>8&255,d+=String.fromCharCode(l,u);break}if(p+1===n-1){l=(s=o<<18|r<<12)>>16&255,d+=String.fromCharCode(l);break}l=(s=o<<18|r<<12|i<<6|a)>>16&255,u=s>>8&255,c=255&s,d+=String.fromCharCode(l,u,c)}return d},o.prototype._decodeJwt=function(e){if(this._isEmpty(e))return null;var t=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/.exec(e);return!t||t.length<4?(this.warn("The returned id_token is not parseable."),null):{header:t[1],JWSPayload:t[2],JWSSig:t[3]}},o.prototype._convertUrlSafeToRegularBase64EncodedString=function(e){return e.replace("-","+").replace("_","/")},o.prototype._serialize=function(e,t,n){var o=[];if(null!==t){o.push("?response_type="+e),o.push("client_id="+encodeURIComponent(t.clientId)),n&&o.push("resource="+encodeURIComponent(n)),o.push("redirect_uri="+encodeURIComponent(t.redirectUri)),o.push("state="+encodeURIComponent(t.state)),t.hasOwnProperty("slice")&&o.push("slice="+encodeURIComponent(t.slice)),t.hasOwnProperty("extraQueryParameter")&&o.push(t.extraQueryParameter);var r=t.correlationId?t.correlationId:this._guid();o.push("client-request-id="+encodeURIComponent(r))}return o.join("&")},o.prototype._deserialize=function(e){var t,n=/\+/g,o=/([^&=]+)=([^&]*)/g,r=function(e){return decodeURIComponent(e.replace(n," "))},i={};for(t=o.exec(e);t;)i[r(t[1])]=r(t[2]),t=o.exec(e);return i},o.prototype._decimalToHex=function(e){for(var t=e.toString(16);t.length<2;)t="0"+t;return t},o.prototype._guid=function(){var e=window.crypto||window.msCrypto;if(e&&e.getRandomValues){var t=new Uint8Array(16);return e.getRandomValues(t),t[6]|=64,t[6]&=79,t[8]|=128,t[8]&=191,this._decimalToHex(t[0])+this._decimalToHex(t[1])+this._decimalToHex(t[2])+this._decimalToHex(t[3])+"-"+this._decimalToHex(t[4])+this._decimalToHex(t[5])+"-"+this._decimalToHex(t[6])+this._decimalToHex(t[7])+"-"+this._decimalToHex(t[8])+this._decimalToHex(t[9])+"-"+this._decimalToHex(t[10])+this._decimalToHex(t[11])+this._decimalToHex(t[12])+this._decimalToHex(t[13])+this._decimalToHex(t[14])+this._decimalToHex(t[15])}for(var n="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",o="0123456789abcdef",r=0,i="",a=0;a<36;a++)"-"!==n[a]&&"4"!==n[a]&&(r=16*Math.random()|0),"x"===n[a]?i+=o[r]:"y"===n[a]?(r&=3,i+=o[r|=8]):i+=n[a];return i},o.prototype._expiresIn=function(e){return e||(e=3599),this._now()+parseInt(e,10)},o.prototype._now=function(){return Math.round((new Date).getTime()/1e3)},o.prototype._addAdalFrame=function(e){if(void 0!==e){this.info("Add adal frame to document:"+e);var t=document.getElementById(e);if(!t){if(document.createElement&&document.documentElement&&(window.opera||-1===window.navigator.userAgent.indexOf("MSIE 5.0"))){var n=document.createElement("iframe");n.setAttribute("id",e),n.setAttribute("aria-hidden","true"),n.style.visibility="hidden",n.style.position="absolute",n.style.width=n.style.height=n.borderWidth="0px",t=document.getElementsByTagName("body")[0].appendChild(n)}else document.body&&document.body.insertAdjacentHTML&&document.body.insertAdjacentHTML("beforeEnd",'');window.frames&&window.frames[e]&&(t=window.frames[e])}return t}},o.prototype._saveItem=function(e,t,n){if(this.config&&this.config.cacheLocation&&"localStorage"===this.config.cacheLocation){if(!this._supportsLocalStorage())return this.info("Local storage is not supported"),!1;if(n){var o=this._getItem(e)||"";localStorage.setItem(e,o+t+this.CONSTANTS.CACHE_DELIMETER)}else localStorage.setItem(e,t);return!0}return this._supportsSessionStorage()?(sessionStorage.setItem(e,t),!0):(this.info("Session storage is not supported"),!1)},o.prototype._getItem=function(e){return this.config&&this.config.cacheLocation&&"localStorage"===this.config.cacheLocation?this._supportsLocalStorage()?localStorage.getItem(e):(this.info("Local storage is not supported"),null):this._supportsSessionStorage()?sessionStorage.getItem(e):(this.info("Session storage is not supported"),null)},o.prototype._supportsLocalStorage=function(){try{return!!window.localStorage&&(window.localStorage.setItem("storageTest","A"),"A"==window.localStorage.getItem("storageTest")&&(window.localStorage.removeItem("storageTest"),!window.localStorage.getItem("storageTest")))}catch(e){return!1}},o.prototype._supportsSessionStorage=function(){try{return!!window.sessionStorage&&(window.sessionStorage.setItem("storageTest","A"),"A"==window.sessionStorage.getItem("storageTest")&&(window.sessionStorage.removeItem("storageTest"),!window.sessionStorage.getItem("storageTest")))}catch(e){return!1}},o.prototype._cloneConfig=function(e){if(null===e||"object"!=typeof e)return e;var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},o.prototype._addLibMetadata=function(){return"&x-client-SKU=Js&x-client-Ver="+this._libVersion()},o.prototype.log=function(e,t,n,o){if(e<=Logging.level){if(!Logging.piiLoggingEnabled&&o)return;var r=(new Date).toUTCString(),i="";i=this.config.correlationId?r+":"+this.config.correlationId+"-"+this._libVersion()+"-"+this.CONSTANTS.LEVEL_STRING_MAP[e]+" "+t:r+":"+this._libVersion()+"-"+this.CONSTANTS.LEVEL_STRING_MAP[e]+" "+t,n&&(i+="\nstack:\n"+n.stack),Logging.log(i)}},o.prototype.error=function(e,t){this.log(this.CONSTANTS.LOGGING_LEVEL.ERROR,e,t)},o.prototype.warn=function(e){this.log(this.CONSTANTS.LOGGING_LEVEL.WARN,e,null)},o.prototype.info=function(e){this.log(this.CONSTANTS.LOGGING_LEVEL.INFO,e,null)},o.prototype.verbose=function(e){this.log(this.CONSTANTS.LOGGING_LEVEL.VERBOSE,e,null)},o.prototype.errorPii=function(e,t){this.log(this.CONSTANTS.LOGGING_LEVEL.ERROR,e,t,!0)},o.prototype.warnPii=function(e){this.log(this.CONSTANTS.LOGGING_LEVEL.WARN,e,null,!0)},o.prototype.infoPii=function(e){this.log(this.CONSTANTS.LOGGING_LEVEL.INFO,e,null,!0)},o.prototype.verbosePii=function(e){this.log(this.CONSTANTS.LOGGING_LEVEL.VERBOSE,e,null,!0)},o.prototype._libVersion=function(){return"1.0.17"},e.exports&&(e.exports=o,e.exports.inject=function(e){return new o(e)}),o}()},eP0N:function(e,t){!function(e){"use strict";if(!e.fetch){var t="URLSearchParams"in e,n="Symbol"in e&&"iterator"in Symbol,o="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),r="FormData"in e,i="ArrayBuffer"in e;if(i)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],s=function(e){return e&&DataView.prototype.isPrototypeOf(e)},l=ArrayBuffer.isView||function(e){return e&&a.indexOf(Object.prototype.toString.call(e))>-1};f.prototype.append=function(e,t){e=d(e),t=p(t);var n=this.map[e];this.map[e]=n?n+","+t:t},f.prototype.delete=function(e){delete this.map[d(e)]},f.prototype.get=function(e){return e=d(e),this.has(e)?this.map[e]:null},f.prototype.has=function(e){return this.map.hasOwnProperty(d(e))},f.prototype.set=function(e,t){this.map[d(e)]=p(t)},f.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},f.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),h(e)},f.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),h(e)},f.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),h(e)},n&&(f.prototype[Symbol.iterator]=f.prototype.entries);var u=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},b.call(_.prototype),b.call(C.prototype),C.prototype.clone=function(){return new C(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},C.error=function(){var e=new C(null,{status:0,statusText:""});return e.type="error",e};var c=[301,302,303,307,308];C.redirect=function(e,t){if(-1===c.indexOf(t))throw new RangeError("Invalid status code");return new C(null,{status:t,headers:{location:e}})},e.Headers=f,e.Request=_,e.Response=C,e.fetch=function(e,t){return new Promise(function(n,r){var i=new _(e,t),a=new XMLHttpRequest;a.onload=function(){var e,t,o={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",t=new f,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(e){var n=e.split(":"),o=n.shift().trim();if(o){var r=n.join(":").trim();t.append(o,r)}}),t)};o.url="responseURL"in a?a.responseURL:o.headers.get("X-Request-URL");var r="response"in a?a.response:a.responseText;n(new C(r,o))},a.onerror=function(){r(new TypeError("Network request failed"))},a.ontimeout=function(){r(new TypeError("Network request failed"))},a.open(i.method,i.url,!0),"include"===i.credentials?a.withCredentials=!0:"omit"===i.credentials&&(a.withCredentials=!1),"responseType"in a&&o&&(a.responseType="blob"),i.headers.forEach(function(e,t){a.setRequestHeader(t,e)}),a.send(void 0===i._bodyInit?null:i._bodyInit)})},e.fetch.polyfill=!0}function d(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function p(e){return"string"!=typeof e&&(e=String(e)),e}function h(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return n&&(t[Symbol.iterator]=function(){return t}),t}function f(e){this.map={},e instanceof f?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function m(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function g(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function y(e){var t=new FileReader,n=g(t);return t.readAsArrayBuffer(e),n}function v(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e)if("string"==typeof e)this._bodyText=e;else if(o&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(r&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(i&&o&&s(e))this._bodyArrayBuffer=v(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!i||!ArrayBuffer.prototype.isPrototypeOf(e)&&!l(e))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=v(e)}else this._bodyText="";this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):t&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var e=m(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?m(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(y)}),this.text=function(){var e,t,n,o=m(this);if(o)return o;if(this._bodyBlob)return e=this._bodyBlob,n=g(t=new FileReader),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),o=0;o-1?o:n),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function S(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),o=n.shift().replace(/\+/g," "),r=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(o),decodeURIComponent(r))}}),t}function C(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new f(t.headers),this.url=t.url||"",this._initBody(e)}}("undefined"!=typeof self?self:this)},faye:function(e,t){e.exports=a},m08b:function(e,t,n){var o=n("Itfc"),r=n("ruv1");"string"==typeof o&&(o=[[e.i,o]]);for(var i=0;i0&&d(t)})}function d(e,t){a.loadStyles?a.loadStyles(f(e).styleString,e):function(e){if("undefined"!=typeof document){var t=document.getElementsByTagName("head")[0],n=document.createElement("style"),o=f(e),r=o.styleString,s=o.themable;n.setAttribute("data-load-themed-styles","true"),i&&n.setAttribute("nonce",i),n.appendChild(document.createTextNode(r)),a.perf.count++,t.appendChild(n);var l=document.createEvent("HTMLEvents");l.initEvent("styleinsert",!0,!1),l.args={newStyle:n},document.dispatchEvent(l);var u={styleElement:n,themableStyle:e};s?a.registeredThemableStyles.push(u):a.registeredStyles.push(u)}}(e)}function p(e){void 0===e&&(e=3),3!==e&&2!==e||(h(a.registeredStyles),a.registeredStyles=[]),3!==e&&1!==e||(h(a.registeredThemableStyles),a.registeredThemableStyles=[])}function h(e){e.forEach(function(e){var t=e&&e.styleElement;t&&t.parentElement&&t.parentElement.removeChild(t)})}function f(e){var t=a.theme,n=!1;return{styleString:(e||[]).map(function(e){var o=e.theme;if(o){n=!0;var r=t?t[o]:void 0,i=e.defaultValue||"inherit";return t&&!r&&console,r||i}return e.rawString}).join(""),themable:n}}function m(e){var t=[];if(e){for(var n=0,o=void 0;o=s.exec(e);){var r=o.index;r>n&&t.push({rawString:e.substring(n,r)}),t.push({theme:o[1],defaultValue:o[2]}),n=s.lastIndex}t.push({rawString:e.substring(n)})}return t}t.loadStyles=function(e,t){void 0===t&&(t=!1),u(function(){var n=Array.isArray(e)?e:m(e),o=a.runState,r=o.mode,i=o.buffer,s=o.flushTimer;t||1===r?(i.push(n),s||(a.runState.flushTimer=setTimeout(function(){a.runState.flushTimer=0,c()},0))):d(n)})},t.configureLoadStyles=function(e){a.loadStyles=e},t.configureRunMode=function(e){a.runState.mode=e},t.flush=c,t.loadTheme=function(e){a.theme=e,function(){if(a.theme){for(var e=[],t=0,n=a.registeredThemableStyles;t0&&(p(1),d([].concat.apply([],e)))}}()},t.clearStyles=p,t.detokenize=function(e){return e&&(e=f(m(e)).styleString),e},t.splitStyles=m}).call(this,n("yLpj"))},uQ29:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var o,r=function(){function e(){}return Object.defineProperty(e,"activeLogLevel",{get:function(){return e.instance.activeLogLevel},set:function(t){e.instance.activeLogLevel=t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"instance",{get:function(){return void 0!==e._instance&&null!==e._instance||(e._instance=new i),e._instance},enumerable:!0,configurable:!0}),e.subscribe=function(){for(var t=[],n=0;n