@proactive-as/pnp.vendor
Version:
PnP Vendor 1.3.7
39 lines • 293 kB
JavaScript
var pnp="object"==typeof pnp?pnp:{};pnp.vendor=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},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=7)}([
/*!*****************************************************!*\
!*** ./node_modules/@pnp/common/dist/common.es5.js ***!
\*****************************************************/
/*! exports provided: AdalClient, SPFxAdalClient, objectToMap, mergeMaps, setup, RuntimeConfigImpl, RuntimeConfig, mergeHeaders, mergeOptions, FetchClient, BearerTokenFetchClient, PnPClientStorageWrapper, PnPClientStorage, getCtxCallback, dateAdd, combine, getRandomString, getGUID, isFunc, objectDefinedNotNull, isArray, extend, isUrlAbsolute, stringIsNullOrEmpty, getAttrValueFromString, sanitizeGuid, jsS, hOP, getHashCode */
/*! all exports used */
/*! ModuleConcatenation bailout: Module uses injected variables (global) */function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"AdalClient",(function(){return _})),n.d(t,"SPFxAdalClient",(function(){return E})),n.d(t,"objectToMap",(function(){return R})),n.d(t,"mergeMaps",(function(){return A})),n.d(t,"setup",(function(){return x})),n.d(t,"RuntimeConfigImpl",(function(){return U})),n.d(t,"RuntimeConfig",(function(){return k})),n.d(t,"mergeHeaders",(function(){return T})),n.d(t,"mergeOptions",(function(){return C})),n.d(t,"FetchClient",(function(){return w})),n.d(t,"BearerTokenFetchClient",(function(){return I})),n.d(t,"PnPClientStorageWrapper",(function(){return L})),n.d(t,"PnPClientStorage",(function(){return F})),n.d(t,"getCtxCallback",(function(){return s})),n.d(t,"dateAdd",(function(){return a})),n.d(t,"combine",(function(){return c})),n.d(t,"getRandomString",(function(){return p})),n.d(t,"getGUID",(function(){return l})),n.d(t,"isFunc",(function(){return h})),n.d(t,"objectDefinedNotNull",(function(){return d})),n.d(t,"isArray",(function(){return f})),n.d(t,"extend",(function(){return y})),n.d(t,"isUrlAbsolute",(function(){return g})),n.d(t,"stringIsNullOrEmpty",(function(){return b})),n.d(t,"getAttrValueFromString",(function(){return m})),n.d(t,"sanitizeGuid",(function(){return v})),n.d(t,"jsS",(function(){return O})),n.d(t,"hOP",(function(){return S})),n.d(t,"getHashCode",(function(){return P}));var r=n(/*! adal-angular/dist/adal.min.js */6),o=function(e,t){return(o=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 i(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var u=void 0!==e?e:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function s(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){t.apply(e,n)}}function a(e,t,n){var r=new Date(e);switch(t.toLowerCase()){case"year":r.setFullYear(r.getFullYear()+n);break;case"quarter":r.setMonth(r.getMonth()+3*n);break;case"month":r.setMonth(r.getMonth()+n);break;case"week":r.setDate(r.getDate()+7*n);break;case"day":r.setDate(r.getDate()+n);break;case"hour":r.setTime(r.getTime()+36e5*n);break;case"minute":r.setTime(r.getTime()+6e4*n);break;case"second":r.setTime(r.getTime()+1e3*n);break;default:r=void 0}return r}function c(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter((function(e){return!b(e)})).map((function(e){return e.replace(/^[\\|\/]/,"").replace(/[\\|\/]$/,"")})).join("/").replace(/\\/g,"/")}function p(e){for(var t=new Array(e),n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=0;r<e;r++)t[r]=n.charAt(Math.floor(Math.random()*n.length));return t.join("")}function l(){var e=Date.now();return"undefined"!=typeof performance&&"function"==typeof performance.now&&(e+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?n:3&n|8).toString(16)}))}function h(e){return"function"==typeof e}function d(e){return null!=e}function f(e){return Array.isArray?Array.isArray(e):e&&"number"==typeof e.length&&e.constructor===Array}function y(e,t,n,r){if(void 0===n&&(n=!1),void 0===r&&(r=function(){return!0}),!d(t))return e;var o=n?function(e,t){return!(t in e)}:function(){return!0};return Object.getOwnPropertyNames(t).filter((function(t){return o(e,t)&&r(t)})).reduce((function(e,n){return e[n]=t[n],e}),e)}function g(e){return/^https?:\/\/|^\/\//i.test(e)}function b(e){return null==e||e.length<1}function m(e,t){e=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");var n=new RegExp(t+"\\s*?=\\s*?(\"|')([^\\1]*?)\\1","i").exec(e);return null!==n&&n.length>0?n[2]:null}function v(e){if(b(e))return e;var t=/([0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12})/i.exec(e);return null===t?e:t[1]}function O(e){return JSON.stringify(e)}function S(e,t){return Object.hasOwnProperty.call(e,t)}function P(e){var t=0;if(0===e.length)return t;for(var n=0;n<e.length;n++){t=(t<<5)-t+e.charCodeAt(n),t|=0}return t}function T(e,t){null!=t&&new Request("",{headers:t}).headers.forEach((function(t,n){e.append(n,t)}))}function C(e,t){if(d(t)){var n=y(e.headers||{},t.headers);(e=y(e,t)).headers=n}}var w=function(){function e(){}return e.prototype.fetch=function(e,t){return u.fetch(e,t)},e}(),I=function(e){function t(t){var n=e.call(this)||this;return n._token=t,n}return i(t,e),Object.defineProperty(t.prototype,"token",{get:function(){return this._token||""},set:function(e){this._token=e},enumerable:!0,configurable:!0}),t.prototype.fetch=function(t,n){void 0===n&&(n={});var r=new Headers;return T(r,n.headers),r.set("Authorization","Bearer "+this._token),n.headers=r,e.prototype.fetch.call(this,t,n)},t}(w);function j(e){var t=document.createElement("a");return t.href=e,t.protocol+"//"+t.hostname}var _=function(e){function t(t,n,r){var o=e.call(this,null)||this;return o.clientId=t,o.tenant=n,o.redirectUri=r,o._displayCallback=null,o._loginPromise=null,o}return i(t,e),t.fromSPFxContext=function(e){return new E(e)},t.prototype.fetch=function(t,n){var r=this;if(!g(t))throw Error("You must supply absolute urls to AdalClient.fetch.");return this.getToken(j(t)).then((function(o){return r.token=o,e.prototype.fetch.call(r,t,n)}))},t.prototype.getToken=function(e){var n=this;return new Promise((function(r,o){n.ensureAuthContext().then((function(e){return n.login()})).then((function(n){t._authContext.acquireToken(e,(function(e,t){if(e)return o(Error(e));r(t)}))})).catch(o)}))},t.prototype.ensureAuthContext=function(){var e=this;return new Promise((function(n){null===t._authContext&&(t._authContext=Object(r.inject)({clientId:e.clientId,displayCall:function(t){e._displayCallback&&e._displayCallback(t)},navigateToLoginRequestUrl:!1,redirectUri:e.redirectUri,tenant:e.tenant})),n()}))},t.prototype.login=function(){var e=this;return this._loginPromise?this._loginPromise:(this._loginPromise=new Promise((function(n,r){if(t._authContext.getCachedUser())return n();e._displayCallback=function(o){var i=window.open(o,"login","width=483, height=600");if(!i)return r(Error("Could not open pop-up window for auth. Likely pop-ups are blocked by the browser."));i&&i.focus&&i.focus();var u=window.setInterval((function(){i&&!i.closed&&void 0!==i.closed||window.clearInterval(u);try{-1!==i.document.URL.indexOf(e.redirectUri)&&(window.clearInterval(u),t._authContext.handleWindowCallback(i.location.hash),i.close(),n())}catch(e){r(e)}}),30)},e.ensureAuthContext().then((function(n){t._authContext._loginInProgress=!1,t._authContext.login(),e._displayCallback=null}))})),this._loginPromise)},t._authContext=null,t}(I),E=function(e){function t(t){var n=e.call(this,null)||this;return n.context=t,n}return i(t,e),t.prototype.fetch=function(t,n){var r=this;return this.getToken(j(t)).then((function(o){return r.token=o,e.prototype.fetch.call(r,t,n)}))},t.prototype.getToken=function(e){return this.context.aadTokenProviderFactory.getTokenProvider().then((function(t){return t.getToken(e)}))},t}(I),N=h(Object.entries)?Object.entries:function(e){return Object.keys(e).map((function(t){return[t,e[t]]}))};function R(e){return null!=e?new Map(N(e)):new Map}function A(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0;r<t.length;r++)t[r].forEach((function(t,n){e.set(n,t)}));return e}function x(e){k.extend(e)}var D=["defaultCachingStore","defaultCachingTimeoutSeconds","globalCacheDisable","enableCacheExpiration","cacheExpirationIntervalMilliseconds","spfxContext"],U=function(){function e(e){void 0===e&&(e=new Map),this._v=e,this._v.set(D[0],"session"),this._v.set(D[1],60),this._v.set(D[2],!1),this._v.set(D[3],!1),this._v.set(D[4],750),this._v.set(D[5],null)}return e.prototype.extend=function(e){this._v=A(this._v,R(e))},e.prototype.get=function(e){return this._v.get(e)},Object.defineProperty(e.prototype,"defaultCachingStore",{get:function(){return this.get(D[0])},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"defaultCachingTimeoutSeconds",{get:function(){return this.get(D[1])},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"globalCacheDisable",{get:function(){return this.get(D[2])},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enableCacheExpiration",{get:function(){return this.get(D[3])},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cacheExpirationIntervalMilliseconds",{get:function(){return this.get(D[4])},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"spfxContext",{get:function(){return this.get(D[5])},enumerable:!0,configurable:!0}),e}(),k=new U,L=function(){function e(e,t){void 0===t&&(t=-1),this.store=e,this.defaultTimeoutMinutes=t,this.enabled=this.test(),k.enableCacheExpiration&&this.cacheExpirationHandler()}return e.prototype.get=function(e){if(!this.enabled)return null;var t=this.store.getItem(e);if(!d(t))return null;var n=JSON.parse(t);return new Date(n.expiration)<=new Date?(this.delete(e),null):n.value},e.prototype.put=function(e,t,n){this.enabled&&this.store.setItem(e,this.createPersistable(t,n))},e.prototype.delete=function(e){this.enabled&&this.store.removeItem(e)},e.prototype.getOrPut=function(e,t,n){var r=this;if(!this.enabled)return t();var o=this.get(e);return null===o?t().then((function(t){return r.put(e,t,n),t})):Promise.resolve(o)},e.prototype.deleteExpired=function(){var e=this;return new Promise((function(t,n){e.enabled||t();try{for(var r=0;r<e.store.length;r++){var o=e.store.key(r);null!==o&&/["|']?pnp["|']? ?: ?1/i.test(e.store.getItem(o))&&e.get(o)}t()}catch(e){n(e)}}))},e.prototype.test=function(){try{return this.store.setItem("t","t"),this.store.removeItem("t"),!0}catch(e){return!1}},e.prototype.createPersistable=function(e,t){if(void 0===t){var n=k.defaultCachingTimeoutSeconds;this.defaultTimeoutMinutes>0&&(n=60*this.defaultTimeoutMinutes),t=a(new Date,"second",n)}return O({pnp:1,expiration:t,value:e})},e.prototype.cacheExpirationHandler=function(){var e=this;this.deleteExpired().then((function(t){setTimeout(s(e,e.cacheExpirationHandler),k.cacheExpirationIntervalMilliseconds)})).catch((function(e){console.error(e)}))},e}(),B=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}(),F=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 L("local"===e?"undefined"==typeof localStorage?new B:localStorage:"undefined"==typeof sessionStorage?new B:sessionStorage)},e}()}.call(this,n(/*! ./../../../webpack/buildin/global.js */5))},
/*!*****************************************************************!*\
!*** ./node_modules/@pnp/sp-clientsvc/dist/sp-clientsvc.es5.js ***!
\*****************************************************************/
/*! exports provided: ObjectPathBatch, ClientSvcQueryable, ObjectPath, opSetId, opSetPathId, opSetParentId, opSetPathParamId, ObjectPathQueue, objectPath, identityQuery, opQuery, setProperty, methodAction, objectProperties, property, staticMethod, staticProperty, objConstructor, MethodParams, method, ProcessQueryParser, writeObjectPathBody */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./Source/vendor.ts (referenced with cjs require) and by: DllPlugin */function(e,t,n){"use strict";n.r(t),n.d(t,"ObjectPathBatch",(function(){return R})),n.d(t,"ClientSvcQueryable",(function(){return N})),n.d(t,"ObjectPath",(function(){return P})),n.d(t,"opSetId",(function(){return T})),n.d(t,"opSetPathId",(function(){return C})),n.d(t,"opSetParentId",(function(){return w})),n.d(t,"opSetPathParamId",(function(){return I})),n.d(t,"ObjectPathQueue",(function(){return j})),n.d(t,"objectPath",(function(){return c})),n.d(t,"identityQuery",(function(){return p})),n.d(t,"opQuery",(function(){return l})),n.d(t,"setProperty",(function(){return h})),n.d(t,"methodAction",(function(){return d})),n.d(t,"objectProperties",(function(){return f})),n.d(t,"property",(function(){return y})),n.d(t,"staticMethod",(function(){return g})),n.d(t,"staticProperty",(function(){return b})),n.d(t,"objConstructor",(function(){return m})),n.d(t,"MethodParams",(function(){return v})),n.d(t,"method",(function(){return O})),n.d(t,"ProcessQueryParser",(function(){return _})),n.d(t,"writeObjectPathBody",(function(){return S}));var r=n(/*! @pnp/common */0),o=n(/*! @pnp/odata */3),i=n(/*! @pnp/sp */4),u=n(/*! @pnp/logging */2),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 a(e,t){function n(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function c(){return'<ObjectPath Id="$$ID$$" ObjectPathId="$$PATH_ID$$" />'}function p(){return'<ObjectIdentityQuery Id="$$ID$$" ObjectPathId="$$PATH_ID$$" />'}function l(e,t){void 0===e&&(e=null),void 0===t&&(t=null);var n=[];return n.push('<Query Id="$$ID$$" ObjectPathId="$$PATH_ID$$">'),null===e||e.length<1?(n.push('<Query SelectAllProperties="true" >'),n.push("<Properties />"),n.push("</Query >")):(n.push('<Query SelectAllProperties="false" >'),n.push("<Properties>"),[].push.apply(n,e.map((function(e){return'<Property Name="'+e+'" SelectAll="true" />'}))),n.push("</Properties>"),n.push("</Query >")),null!==t&&(t.length<1?(n.push('<ChildItemQuery SelectAllProperties="true" >'),n.push("<Properties />"),n.push("</ChildItemQuery >")):(n.push('<ChildItemQuery SelectAllProperties="false" >'),n.push("<Properties>"),[].push.apply(n,t.map((function(e){return'<Property Name="'+e+'" SelectAll="true" />'}))),n.push("</Properties>"),n.push("</ChildItemQuery >"))),n.push("</Query >"),n.join("")}function h(e,t,n){var r=[];return r.push('<SetProperty Id="$$ID$$" ObjectPathId="$$PATH_ID$$" Name="'+e+'">'),r.push('<Parameter Type="'+t+'">'+n+"</Parameter>"),r.push("</SetProperty>"),r.join("")}function d(e,t){var n=[];if(n.push('<Method Id="$$ID$$" ObjectPathId="$$PATH_ID$$" Name="'+e+'">'),null!==t){var r=t.toArray();r.length<1?n.push("<Parameters />"):(n.push("<Parameters>"),[].push.apply(n,r.map((function(e){return'<Parameter Type="'+e.type+'">'+e.value+"</Parameter>"}))),n.push("</Parameters>"))}return n.push("</Method>"),n.join("")}function f(e){return Object.getOwnPropertyNames(e).map((function(t){var n=e[t];return"boolean"==typeof n?h(t,"Boolean",""+n):"number"==typeof n?h(t,"Number",""+n):"string"==typeof n?h(t,"String",""+n):""}),[])}function y(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new P('<Property Id="$$ID$$" ParentId="$$PARENT_ID$$" Name="'+e+'" />',t)}function g(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return new P('<StaticMethod Id="$$ID$$" Name="'+e+'" TypeId="'+t+'" />',n)}function b(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return new P('<StaticProperty Id="$$ID$$" Name="'+e+'" TypeId="'+t+'" />',n)}function m(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new P('<Constructor Id="$$ID$$" TypeId="'+e+'" />',t)}var v=function(){function e(e){void 0===e&&(e=[]),this._p=e}return e.build=function(t){void 0===t&&(t=[]);var n=new e;return[].push.apply(n._p,t),n},e.prototype.string=function(e){return this.a("String",e)},e.prototype.number=function(e){return this.a("Number",e.toString())},e.prototype.boolean=function(e){return this.a("Boolean",e.toString())},e.prototype.strArray=function(e){return this.a("Array",e.map((function(e){return'<Object Type="String">'+e+"</Object>"})).join(""))},e.prototype.objectPath=function(e){return this.a("ObjectPath",e.toString())},e.prototype.toArray=function(){return this._p},e.prototype.a=function(e,t){return t=t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),this._p.push({type:e,value:t}),this},e}();function O(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=[];if(o.push('<Method Id="$$ID$$" ParentId="$$PARENT_ID$$" Name="'+e+'">'),null!==t){var i=t.toArray();i.length<1?o.push("<Parameters />"):(o.push("<Parameters>"),[].push.apply(o,i.map((function(e){return"ObjectPath"===e.type?'<Parameter ObjectPathId="$$OP_PARAM_ID_'+e.value+'$$" />':'<Parameter Type="'+e.type+'">'+e.value+"</Parameter>"}))),o.push("</Parameters>"))}return o.push("</Method>"),new P(o.join(""),n)}function S(e){var t=[],n=[];return e.forEach((function(e){n.push(e.path),t.push.apply(t,e.actions)})),['<Request xmlns="http://schemas.microsoft.com/sharepoint/clientquery/2009" SchemaVersion="15.0.0.0" LibraryVersion="16.0.0.0" ApplicationName="PnPjs">',"<Actions>",t.join(""),"</Actions>","<ObjectPaths>",n.join(""),"</ObjectPaths>","</Request>"].join("")}var P=function(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=-1),void 0===r&&(r=[]),this.path=e,this.actions=t,this.id=n,this.replaceAfter=r};function T(e,t){return t.replace(/\$\$ID\$\$/g,e)}function C(e,t){return t.replace(/\$\$PATH_ID\$\$/g,e)}function w(e,t){return t.replace(/\$\$PARENT_ID\$\$/g,e)}function I(e,t,n){void 0===n&&(n=function(e){return e});var r=/\$\$OP_PARAM_ID_(\d+)\$\$/gi.exec(t);if(null!==r)for(var o=1;o<r.length;o++){var i=parseInt(r[o],10),u=new RegExp("\\$\\$OP_PARAM_ID_"+i+"\\$\\$","ig");t=t.replace(u,e[n(i)].toString())}return t}var j=function(){function e(e,t){void 0===e&&(e=[]),void 0===t&&(t={}),this._paths=e,this._relationships=t,this._contextIndex=-1,this._siteIndex=-1,this._webIndex=-1}return e.prototype.add=function(e){return this.dirty(),this._paths.push(e),this.lastIndex},e.prototype.addChildRelationship=function(e,t){Object(r.objectDefinedNotNull)(this._relationships["_"+e])?this._relationships["_"+e].push(t):this._relationships["_"+e]=[t]},e.prototype.getChildRelationship=function(e){return Object(r.objectDefinedNotNull)(this._relationships["_"+e])?this._relationships["_"+e]:[]},e.prototype.getChildRelationships=function(){return this._relationships},e.prototype.appendAction=function(e,t){return this.dirty(),e.actions.push(t),this},e.prototype.appendActionToLast=function(e){return this.appendAction(this.last,e)},e.prototype.copy=function(){var t=new e(this.toArray(),Object(r.extend)({},this._relationships));return t._contextIndex=this._contextIndex,t._siteIndex=this._siteIndex,t._webIndex=this._webIndex,t},e.prototype.clone=function(){var t=new e(this.toArray().map((function(e){return Object.assign({},e)})),Object(r.extend)({},this._relationships));return t._contextIndex=this._contextIndex,t._siteIndex=this._siteIndex,t._webIndex=this._webIndex,t},e.prototype.toArray=function(){return this._paths.slice(0)},Object.defineProperty(e.prototype,"last",{get:function(){return this._paths.length<1?null:this._paths[this.lastIndex]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastIndex",{get:function(){return this._paths.length-1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"siteIndex",{get:function(){if(this._siteIndex<0){var e=this.contextIndex;this._siteIndex=this.add(y("Site",'<ObjectPath Id="$$ID$$" ObjectPathId="$$PATH_ID$$" />')),this.addChildRelationship(e,this._siteIndex)}return this._siteIndex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"webIndex",{get:function(){if(this._webIndex<0){var e=this.contextIndex;this._webIndex=this.add(y("Web",'<ObjectPath Id="$$ID$$" ObjectPathId="$$PATH_ID$$" />')),this.addChildRelationship(e,this._webIndex)}return this._webIndex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contextIndex",{get:function(){return this._contextIndex<0&&(this._contextIndex=this.add(b("Current","{3747adcd-a3c3-41b9-bfab-4a64dd2f1e0a}",'<ObjectPath Id="$$ID$$" ObjectPathId="$$PATH_ID$$" />'))),this._contextIndex},enumerable:!0,configurable:!0}),e.prototype.toBody=function(){return Object(r.objectDefinedNotNull)(this._xml)?this._xml:(this._xml=S(this.toIndexedTree()),this._xml)},e.prototype.toIndexedTree=function(){var e=this,t=-1,n=-1,r=[];return this.toArray().map((function(o,i,u){var s=++t;return r.push(s),o.path=I(r,T(s.toString(),o.path)),n>=0&&(o.path=w(n.toString(),o.path)),o.actions=o.actions.map((function(e){return T((++t).toString(),C(s.toString(),e))})),e.getChildRelationship(i).forEach((function(e){u[e].path=w(s.toString(),u[e].path)})),n=s,o}))},e.prototype.dirty=function(){this._xml=null},e}(),_=function(){function e(e){this.op=e}return e.prototype.parse=function(e){var t=this;return e.text().then((function(t){if(!e.ok)throw Error(t);try{return JSON.parse(t)}catch(e){throw Error(t)}})).then((function(e){if(e.length>0&&Object(r.hOP)(e[0],"ErrorInfo")&&null!==e[0].ErrorInfo)throw Error(Object(r.jsS)(e[0].ErrorInfo));return t.findResult(e)}))},e.prototype.findResult=function(e){for(var t=0;t<this.op.actions.length;t++){var n,o=this.op.actions[t];if(/^<ObjectPath /i.test(o))if(!(n=this.getParsedResultById(e,parseInt(Object(r.getAttrValueFromString)(o,"Id"),10)))||n&&n.IsNull)return Promise.resolve(null);if(/^<Query /i.test(o))return(n=this.getParsedResultById(e,parseInt(Object(r.getAttrValueFromString)(o,"Id"),10)))&&Object(r.hOP)(n,"_Child_Items_")?Promise.resolve(n._Child_Items_):Promise.resolve(n);if(t===this.op.actions.length-1&&/^<Method /i.test(o))return Promise.resolve(this.getParsedResultById(e,parseInt(Object(r.getAttrValueFromString)(o,"Id"),10)))}},e.prototype.getParsedResultById=function(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return e[n+1];return null},e}(),E="_vti_bin/client.svc/ProcessQuery",N=function(e){function t(t,n){void 0===t&&(t=""),void 0===n&&(n=null);var o=e.call(this)||this;return o._objectPaths=n,o._selects=[],o._batch=null,o._batchDependency=null,"string"==typeof t?(o._parentUrl=t,o._url=Object(r.combine)(t.replace(E,""),E),Object(r.objectDefinedNotNull)(o._objectPaths)||(o._objectPaths=new j)):(o._parentUrl=t._parentUrl,o._url=Object(r.combine)(t._parentUrl,E),Object(r.objectDefinedNotNull)(n)||(o._objectPaths=t._objectPaths.clone()),o.configureFrom(t)),o}return a(t,e),t.prototype.select=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return[].push.apply(this._selects,e),this},t.prototype.inBatch=function(e){if(null!==this.batch)throw Error("This query is already part of a batch.");return Object(r.objectDefinedNotNull)(e)&&(this._batch=e,this._batchDependency=e.addDependency()),this},t.prototype.toUrlAndQuery=function(){return e.prototype.toUrl.call(this)+"?"+Array.from(this.query).map((function(e){return e[0]+"="+e[1]})).join("&")},t.prototype.getSelects=function(){return Object(r.objectDefinedNotNull)(this._selects)?this._selects:[]},t.prototype.getChild=function(e,t,n){var r=this._objectPaths.copy();return r.add(O(t,n,'<ObjectPath Id="$$ID$$" ObjectPathId="$$PATH_ID$$" />')),new e(this,r)},t.prototype.getChildProperty=function(e,t){var n=this._objectPaths.copy();return n.add(y(t)),new e(this,n)},t.prototype.send=function(t,n,o){void 0===n&&(n={}),void 0===o&&(o=null);var i=t.clone();return Object(r.objectDefinedNotNull)(o)||(o=new _(i.last)),this.hasBatch?n=Object(r.extend)(n,{clientsvc_ObjectPaths:i}):Object(r.hOP)(n,"body")||(n=Object(r.extend)(n,{body:i.toBody()})),e.prototype.postCore.call(this,n,o)},t.prototype.sendGet=function(e){var t=this,n=this._objectPaths.copy().appendActionToLast(l(this.getSelects()));return this.send(n).then((function(n){return Object(r.extend)(new e(t),n)}))},t.prototype.sendGetCollection=function(e){var t=this._objectPaths.copy().appendActionToLast(l([],this.getSelects()));return this.send(t).then((function(t){return t.map((function(t){return Object(r.extend)(e(t),t)}))}))},t.prototype.invokeMethod=function(e,t){void 0===t&&(t=null);for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.invokeMethodImpl(e,t,n,l([],null))},t.prototype.invokeMethodAction=function(e,t){void 0===t&&(t=null);for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.invokeMethodImpl(e,t,n,null,!0)},t.prototype.invokeNonQuery=function(e,t){void 0===t&&(t=null);for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this._useCaching=!1,this.invokeMethodImpl(e,t,n,null,!0)},t.prototype.invokeMethodCollection=function(e,t){void 0===t&&(t=null);for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.invokeMethodImpl(e,t,n,l([],[]))},t.prototype.invokeUpdate=function(e,t){var n=this,o=this._objectPaths.copy();return f(e).map((function(e){return o.appendActionToLast(e)})),o.appendActionToLast(l([],null)),this.send(o).then((function(e){return Object(r.extend)(new t(n),e)}))},t.prototype.toRequestContext=function(e,t,n,u){var s=this;return Object(i.toAbsoluteUrl)(this.toUrlAndQuery()).then((function(a){Object(r.mergeOptions)(t,s._options);var c=new Headers;if(Object(r.mergeHeaders)(c,t.headers),Object(r.mergeHeaders)(c,{accept:"*/*","content-type":"text/xml"}),t=Object(r.extend)(t,{headers:c}),s._useCaching){var p=t.body;Object(r.stringIsNullOrEmpty)(p)&&(p=Object(r.hOP)(t,"clientsvc_ObjectPaths")?t.clientsvc_ObjectPaths.clone().toBody():"");var l="PnPjs.ProcessQueryClient("+Object(r.getHashCode)(p)+")";Object(r.objectDefinedNotNull)(s._cachingOptions)?/\/client\.svc\/ProcessQuery\?$/i.test(s._cachingOptions.key)&&(s._cachingOptions.key=l):s._cachingOptions=new o.CachingOptions(l)}var h=s.hasBatch?s._batchDependency:function(){};return{batch:s.batch,batchDependency:h,cachingOptions:s._cachingOptions,clientFactory:function(){return new i.SPHttpClient},isBatched:s.hasBatch,isCached:s._useCaching,options:t,parser:n,pipeline:u,requestAbsoluteUrl:a,requestId:Object(r.getGUID)(),verb:e}}))},t.prototype.addBatchDependency=function(){return null!==this._batch?this._batch.addDependency():function(){return null}},Object.defineProperty(t.prototype,"hasBatch",{get:function(){return Object(r.objectDefinedNotNull)(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.invokeMethodImpl=function(e,t,n,r,o){void 0===o&&(o=!1);var i=this._objectPaths.copy();return o?i.appendActionToLast(d(e,t)):i.add(O.apply(void 0,[e,t].concat(['<ObjectPath Id="$$ID$$" ObjectPathId="$$PATH_ID$$" />'].concat(n,[r])))),this.send(i)},t}(o.Queryable),R=function(e){function t(t,n){var r=e.call(this,n)||this;return r.parentUrl=t,r}return a(t,e),t.prototype.executeImpl=function(){if(this.requests.length<1)return u.Logger.write("Resolving empty batch.",1),Promise.resolve();var e=new A(this.parentUrl,this.batchId);return e.appendRequests(this.requests),e.execute()},t}(o.ODataBatch),A=function(e){function t(t,n){var r=e.call(this,t)||this;r.batchId=n,r._requests=[],r._builderIndex=1;var o=g("GetTaxonomySession","{981cbc68-9edc-4f8d-872f-71146fcbb84f}");return o.path=T("0",o.path),o.actions.push(T("1",C("0",'<ObjectPath Id="$$ID$$" ObjectPathId="$$PATH_ID$$" />'))),r._objectPaths.add(o),r}return a(t,e),t.prototype.appendRequests=function(e){var t=this;e.forEach((function(e){var n=e.options.clientsvc_ObjectPaths,r=n.toArray();if(!(r.length<0)){var i=function(e){return e};/GetTaxonomySession/i.test(r[0].path)&&((r=r.slice(1))[0].path=w("0",r[0].path),i=function(e){return e-1});var u=-1,s=[];r.map((function(e,r,o){var a=++t._builderIndex;s.push(a);var c=I(s,T(a.toString(),e.path),i);u>=0&&(c=w(u.toString(),c));var p=e.actions.map((function(e){return T((++t._builderIndex).toString(),C(a.toString(),e))}));return n.getChildRelationship(r+1).map((function(e){return e-1})).forEach((function(e){o[e].path=w(a.toString(),o[e].path)})),u=a,new P(c,p)})).forEach((function(e){return t._objectPaths.add(e)}));var a=t._objectPaths.toArray(),c=new _(a[a.length-1]);e.parser instanceof o.CachingParserWrapper?e.parser=new D(c,e.parser):e.parser=c,t._requests.push(e),delete e.options.clientsvc_ObjectPaths}}))},t.prototype.execute=function(){var t=this;u.Logger.write("["+this.batchId+"] ("+(new Date).getTime()+") Executing batch with "+this._requests.length+" requests.",1);var n={body:S(this._objectPaths.toArray())};return u.Logger.write("["+this.batchId+"] ("+(new Date).getTime()+") Sending batch request.",1),e.prototype.postCore.call(this,n,new x).then((function(e){return u.Logger.write("["+t.batchId+"] ("+(new Date).getTime()+") Resolving batched requests.",1),t._requests.reduce((function(n,r){return u.Logger.write("["+r.id+"] ("+(new Date).getTime()+") Resolving request in batch "+t.batchId+".",1),n.then((function(t){return r.parser.findResult(e).then(r.resolve).catch(r.reject)}))}),Promise.resolve())}))},t}(N),x=function(e){function t(){return e.call(this,null)||this}return a(t,e),t.prototype.findResult=function(e){return e},t}(_),D=function(e){function t(t,n){return e.call(this,t,n.cacheOptions)||this}return a(t,e),t.prototype.findResult=function(e){var t=this;return this.parser.findResult(e).then((function(e){return t.cacheData(e)}))},t}(o.CachingParserWrapper)},
/*!*******************************************************!*\
!*** ./node_modules/@pnp/logging/dist/logging.es5.js ***!
\*******************************************************/
/*! exports provided: Logger, LogLevel, ConsoleListener, FunctionListener */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./Source/vendor.ts (referenced with cjs require) and by: DllPlugin */function(e,t,n){"use strict";n.r(t),n.d(t,"Logger",(function(){return o})),n.d(t,"LogLevel",(function(){return r})),n.d(t,"ConsoleListener",(function(){return u})),n.d(t,"FunctionListener",(function(){return s}));
/**
* @license
* v1.3.7
* MIT (https://github.com/pnp/pnpjs/blob/master/LICENSE)
* Copyright (c) 2019 Microsoft
* docs: https://pnp.github.io/pnpjs/
* source: https://github.com/pnp/pnpjs
* bugs: https://github.com/pnp/pnpjs/issues
*/
var r,o=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<arguments.length;n++)t[n]=arguments[n];t.map((function(t){return e.instance.subscribe(t)}))},e.clearSubscribers=function(){return e.instance.clearSubscribers()},Object.defineProperty(e,"count",{get:function(){return e.instance.count},enumerable:!0,configurable:!0}),e.write=function(t,n){void 0===n&&(n=1),e.instance.log({level:n,message:t})},e.writeJSON=function(e,t){void 0===t&&(t=1),this.write(JSON.stringify(e),t)},e.log=function(t){e.instance.log(t)},e.error=function(t){e.instance.log({data:t,level:3,message:t.message})},e}(),i=function(){function e(e,t){void 0===e&&(e=2),void 0===t&&(t=[]),this.activeLogLevel=e,this.subscribers=t}return e.prototype.subscribe=function(e){this.subscribers.push(e)},e.prototype.clearSubscribers=function(){var e=this.subscribers.slice(0);return this.subscribers.length=0,e},Object.defineProperty(e.prototype,"count",{get:function(){return this.subscribers.length},enumerable:!0,configurable:!0}),e.prototype.write=function(e,t){void 0===t&&(t=1),this.log({level:t,message:e})},e.prototype.log=function(e){void 0!==e&&this.activeLogLevel<=e.level&&this.subscribers.map((function(t){return t.log(e)}))},e}();!function(e){e[e.Verbose=0]="Verbose",e[e.Info=1]="Info",e[e.Warning=2]="Warning",e[e.Error=3]="Error",e[e.Off=99]="Off"}(r||(r={}));var u=function(){function e(){}return e.prototype.log=function(e){var t=this.format(e);switch(e.level){case 0:case 1:console.log(t);break;case 2:console.warn(t);break;case 3:console.error(t)}},e.prototype.format=function(e){var t=[];if(t.push("Message: "+e.message),void 0!==e.data)try{t.push(" Data: "+JSON.stringify(e.data))}catch(e){t.push(" Data: Error in stringify of supplied data "+e)}return t.join("")},e}(),s=function(){function e(e){this.method=e}return e.prototype.log=function(e){this.method(e)},e}()},
/*!***************************************************!*\
!*** ./node_modules/@pnp/odata/dist/odata.es5.js ***!
\***************************************************/
/*! exports provided: CachingOptions, CachingParserWrapper, HttpRequestError, ODataParserBase, ODataDefaultParser, TextParser, BlobParser, JSONParser, BufferParser, LambdaParser, setResult, pipe, requestPipelineMethod, PipelineMethods, getDefaultPipeline, Queryable, ODataQueryable, ODataBatch */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./Source/vendor.ts (referenced with cjs require) and by: DllPlugin */function(e,t,n){"use strict";n.r(t),n.d(t,"CachingOptions",(function(){return i})),n.d(t,"CachingParserWrapper",(function(){return u})),n.d(t,"HttpRequestError",(function(){return p})),n.d(t,"ODataParserBase",(function(){return l})),n.d(t,"ODataDefaultParser",(function(){return h})),n.d(t,"TextParser",(function(){return d})),n.d(t,"BlobParser",(function(){return f})),n.d(t,"JSONParser",(function(){return y})),n.d(t,"BufferParser",(function(){return g})),n.d(t,"LambdaParser",(function(){return b})),n.d(t,"setResult",(function(){return m})),n.d(t,"pipe",(function(){return O})),n.d(t,"requestPipelineMethod",(function(){return S})),n.d(t,"PipelineMethods",(function(){return P})),n.d(t,"getDefaultPipeline",(function(){return T})),n.d(t,"Queryable",(function(){return C})),n.d(t,"ODataQueryable",(function(){return w})),n.d(t,"ODataBatch",(function(){return I}));var r=n(/*! @pnp/common */0),o=n(/*! @pnp/logging */2),i=function(){function e(e){this.key=e,this.expiration=Object(r.dateAdd)(new Date,"second",r.RuntimeConfig.defaultCachingTimeoutSeconds),this.storeName=r.RuntimeConfig.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 r.PnPClientStorage,e}(),u=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 a(e,t){function n(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function c(e,t,n,r){var o,i=arguments.length,u=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(u=(i<3?o(u):i>3?o(t,n,u):o(t,n))||u);return i>3&&u&&Object.defineProperty(t,n,u),u}var p=function(e){function t(t,n,r,o){void 0===r&&(r=n.status),void 0===o&&(o=n.statusText);var i=e.call(this,t)||this;return i.response=n,i.status=r,i.statusText=o,i.isHttpRequestError=!0,i}return a(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),l=function(){function e(){this.rawJson={}}return e.prototype.parse=function(e){var t=this;return new Promise((function(n,r){t.handleError(e,r)&&t.parseImpl(e,n,r)}))},e.prototype.parseImpl=function(e,t,n){var r=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(r.parseODataJSON(e))})).catch((function(e){return n(e)}))},e.prototype.handleError=function(e,t){return e.ok||p.init(e).then(t),e.ok},e.prototype.parseODataJSON=function(e){this.rawJson=e;var t=e;return Object(r.hOP)(e,"d")?t=Object(r.hOP)(e.d,"results")?e.d.results:e.d:Object(r.hOP)(e,"value")&&(t=e.value),t},e}(),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t}(l),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.parseImpl=function(e,t){e.text().then(t)},t}(l),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.parseImpl=function(e,t){e.blob().then(t)},t}(l),y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.parseImpl=function(e,t){e.json().then(t)},t}(l),g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.parseImpl=function(e,t){Object(r.isFunc)(e.arrayBuffer)?e.arrayBuffer().then(t):e.buffer().then(t)},t}(l),b=function(e){function t(t){var n=e.call(this)||this;return n.parser=t,n}return a(t,e),t.prototype.parseImpl=function(e,t){this.parser(e).then(t)},t}(l);function m(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 O(e){e.pipeline.length<1&&o.Logger.write("["+e.requestId+"] ("+(new Date).getTime()+") Request pipeline contains no methods!",2);var t=v(e).then((function(e){return function(e){return o.Logger.log({data:0===o.Logger.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 o.Logger.error(e),e}));return e.isBatched&&e.batch.addResolveBatchDependency(t),t}function S(e){return void 0===e&&(e=!1),function(t,n,i){var u=i.value;i.value=function(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return!e&&i.length>0&&Object(r.hOP)(i[0],"hasResult")&&i[0].hasResult?(o.Logger.write("["+i[0].requestId+"] ("+(new Date).getTime()+") Skipping request pipeline method "+n+", existing result in pipeline.",0),Promise.resolve(i[0])):(o.Logger.write("["+i[0].requestId+"] ("+(new Date).getTime()+") Calling request pipeline method "+n+".",0),u.apply(t,i).then((function(e){return v(e)})))}}}var P=function(){function e(){}return e.logStart=function(e){return new Promise((function(t){o.Logger.log({data:1===o.Logger.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){o.Logger.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(r.extend)(n,e.cachingOptions)),null!==n.store){var s=n.store.get(n.key);if(null!==s)return o.Logger.log({data:1===o.Logger.activeLogLevel?{}:s,level:1,message:"["+e.requestId+"] ("+(new Date).getTime()+") Value returned from cache."}),Object(r.isFunc)(e.batchDependency)&&e.batchDependency(),Object(r.hOP)(e.parser,"hydrate")&&(s=e.parser.hydrate(s)),m(e,s).then((function(e){return t(e)}))}o.Logger.write("["+e.requestId+"] ("+(new Date).getTime()+") Value not found in cache.",1),e.parser=new u(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(r.isFunc)(e.batchDependency)&&e.batchDependency(),o.Logger.write("["+e.requestId+"] ("+(new Date).getTime()+") Batching request in batch "+e.batch.batchId+".",1),t(m(e,i))}else{o.Logger.write("["+e.requestId+"] ("+(new Date).getTime()+") Sending request.",1);var u=e.clientFactory(),s=Object(r.extend)(e.options||{},{method:e.verb});u.fetch(e.requestAbsoluteUrl,s).then((function(t){return e.parser.parse(t)})).then((function(t){return m(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?o.Logger.log({data:1===o.Logger.activeLogLevel?{}:e,level:1,message:"["+e.requestId+"] ("+(new Date).getTime()+") "+e.verb+" request will complete in batch "+e.batch.batchId+"."}):o.Logger.log({data:1===o.Logger.activeLogLevel?{}:e,level:1,message:"["+e.requestId+"] ("+(new Date).getTime()+") Completing "+e.verb+" request."}),t(e)}))},c([S(!0)],e,"logStart",null),c([S()],e,"caching",null),c([S()],e,"send",null),c([S(!0)],e,"logEnd",null),e}();function T(){return[P.logStart,P.caching,P.send,P.logEnd].slice(0)}var C=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(r.mergeOptions)(this._options,e),this},e.prototype.configureFrom=function(e){return Object(r.mergeOptions)(this._options,e._options),this},e.prototype.usingCaching=function(e){return r.RuntimeConfig.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 y),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 y),this.reqImpl("POST",e,t)},e.prototype.patchCore=function(e,t){return void 0===e&&(e={}),void 0===t&&(t=new y),this.reqImpl("PATCH",e,t)},e.prototype.deleteCore=function(e,t){return void 0===e&&(e={}),void 0===t&&(t=new y),this.reqImpl("DELETE",e,t)},e.prototype.putCore=function(e,t){return void 0===e&&(e={}),void 0===t&&(t=new y),this.reqImpl("PUT",e,t)},e.prototype.reqImpl=function(e,t,n){var r=this;return void 0===t&&(t={}),this.getRequestPipeline(e,t,n).then((function(o){return r.toRequestContext(e,t,n,o)})).then((function(e){return O(e)}))},e.prototype.append=function(e){this._url=Object(r.combine)(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(r.combine)(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 o=this;return void 0===t&&(t={}),new Promise((function(e){Object(r.objectDefinedNotNull)(o._requestPipeline)&&Object(r.isArray)(o._requestPipeline)?e(o._requestPipeline):e(T())}))},e}(),w=function(e){function t(){var t=e.call(this)||this;return t._batch=null,t._batchDependency=null,t}return a(t,e),t.prototype.inBatch=function(e){if(null!==this.batch)throw Error("This query is already part of a batch.");return Object(r.objectDefinedNotNull)(e)&&(this._batch=e),this},t.prototype.toUrl=function(){return this._url},t.prototype.get=function(e,t){return void 0===e&&(e=new h),void 0===t&&(t={}),this.getCore(e,t)},t.prototype.getCore=function(t,n){return void 0===t&&(t=new h),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 h),e.prototype.postCore.call(this,t,n)},t.prototype.patchCore=function(t,n){return void 0===t&&(t={}),void 0===n&&(n=new h),e.prototype.patchCore.call(this,t,n)},t.prototype.deleteCore=function(t,n){return void 0===t&&(t={}),void 0===n&&(n=new h),e.prototype.deleteCore.call(this,t,n)},t.prototype.putCore=function(t,n){return void 0===t&&(t={}),void 0===n&&(n=new h),e.prototype.putCore.call(this,t,n)},t.prototype.reqImpl=function(t,n,r){return void 0===n&&(n={}),this.hasBatch&&(this._batchDependency=this.addBatchDependency()),e.prototype.reqImpl.call(this,t,n,r)},t.prototype.addBatchDependency=function(){return null!==this._batch?this._batch.addDependency():function(){return null}},Object.defineProperty(t.prototype,"hasBatch",{get:function(){return Object(r.objectDefinedNotNull)(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}(C),I=function(){function e(e){void 0===e&&(e=Object(r.getGUID)()),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,r,o){var i={id:o,method:t.toUpperCase(),options:n,parser:r,reject:null,resolve:null,url:e},u=new Promise((function(e,t){i.resolve=e,i.reject=t}));return this._reqs.push(i),u},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}()},
/*!*********************************************!*\
!*** ./node_modules/@pnp/sp/dist/sp.es5.js ***!
\*********************************************/
/*! exports provided: odataUrlFrom, spODataEntity, spODataEntityArray, SharePointQueryable, SharePointQueryableInstance, SharePointQueryableCollection, SharePointQueryableSecurable, FileFolderShared, SharePointQueryableShareable, SharePointQueryableShareableFile, SharePointQueryableShareableFolder, SharePointQueryableShareableItem, SharePointQueryableShareableWeb, AppCatalog, App, SPBatch, ContentType, ContentTypes, FieldLink, FieldLinks, Field, Fields, CheckinType, WebPartsPersonalizationScope, MoveOperations, TemplateFileType, File, Files, Folder, Folders, SPHttpClient, Item, Items, ItemVersion, ItemVersions, PagedItemCollection, NavigationNodes, NavigationNode, NavigationService, List, Lists, RegionalSettings, InstalledLanguages, TimeZone, TimeZones, sp, SPRest, RoleDefinitionBindings, Search, SearchQueryBuilder, SearchResults, SortDirection, ReorderingRuleMatchType, QueryPropertyValueType, SearchBuiltInSourceId, SearchSuggest, Site, UserProfileQuery, toAbsoluteUrl, extractWebUrl, UtilityMethod, View, Views, ViewFields, WebPartDefinitions, WebPartDefinition, WebPart, Web, SiteScripts, SiteDesigns, HubSite, HubSites, PromotedState, ClientSidePage, CanvasSection, CanvasColumn, ColumnControl, ClientSideText, ClientSideWebpart, Comments, Comment, Replies, SocialQuery, MySocialQuery, SocialActorType, SocialActorTypes, SocialFollowResult, SocialStatusCode, ControlMode, FieldTypes, DateTimeFieldFormatType, DateTimeFieldFriendlyFormatType, AddFieldOptions, CalendarType, UrlFieldFormatType, PermissionKind, PrincipalType, PrincipalSource, RoleType, PageType, SharingLinkKind, SharingRole, SharingOperationStatusCode, SPSharedObjectType, SharingDomainRestrictionMode, RenderListDataOptions, FieldUserSelection