/
githubmirror
/
drawio
Обзор
Документация
Войти
/
githubmirror
/
drawio
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
src/main/webapp/js/onedrive/OneDrive.js
14 строк
58 KB
David Benson
28.2.0 release
05 сен 2025, 20:29
05 сен 2025, 20:29
947271f
Код
Авторство
О чём код?
//Edited to allow accessToken with sharepoint sites //2:12920 added case n.default.filesV2:case n.default.msa: //2:13101 changed case n.default.filesV2 to case 'n.default.filesV2' AND case n.default.msa to case 'n.default.msa' //! Copyright (c) Microsoft Corporation. All rights reserved. var __extends=this&&this.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function i(){this.constructor=e}i.prototype=t.prototype;e.prototype=new i};!function(e){if("object"==t … [Строка слишком длинная. Вы можете скачать файл] /*! * @overview es6-promise - a tiny implementation of Promises/A+. * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald) * @license Licensed under MIT license * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE * @version 3.3.1 */ r=this,i=function(){"use strict";function l(e){return"function"==typeof e}var r=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},i=0,t=void 0,n=void 0,s=function(e,t){p[i]=e;p[i+1]=t;2===(i+=2)&&(n?n(f):h())};var e="undefined"!=typeof window?window:void 0,o=e||{},a=o.MutationObserver||o.WebKitMutationObserver,u="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),d="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function c(){var e=setTimeout;return function(){return e(f,1)}}var p=new Array(1e3);function f(){for(var e=0;e<i;e+=2){(0,p[e])(p[e+1]);p[e]=void 0;p[e+1]=void 0}i=0}var h=void 0;h=u?function(){return process.nextTick(f)}:a?function(){var e=0,t=new a(f),r=document.createTextNode("");t.observe(r,{characterData:!0});return function(){r.data=e=++e%2}}():d?function(){var e=new MessageChannel;e.port1.onmessage=f;return function(){return e.port2.postMessage(0)}}():void 0===e&&"function"==typeof x?function(){try{var e=x("vertx");t=e.runOnLoop||e.runOnContext;return function(){t(f)}}catch(e){return c()}}():c();function v(e,t){var r=arguments,i=this,n=new this.constructor(y);void 0===n[g]&&M(n);var o,a=i._state;a?(o=r[a-1],s(function(){return H(a,n,o,i._result)})):S(i,n,e,t);return n}function m(e){if(e&&"object"==typeof e&&e.constructor===this)return e;var t=new this(y);k(t,e);return t}var g=Math.random().toString(36).substring(16);function y(){}var _=void 0,E=1,w=2,T=new I;function b(e){try{return e.then}catch(e){T.error=e;return T}}function P(e,t,r){t.constructor===e.constructor&&r===v&&t.constructor.resolve===m?(o=e,(a=t)._state===E?U(o,a._result):a._state===w?C(o,a._result):S(a,void 0,function(e){return k(o,e)},function(e){return C(o,e)})):r===T?C(e,T.error):void 0===r?U(e,t):l(r)?(i=t,n=r,s(function(t){var r=!1,e=function(e,t,r,i){try{e.call(t,r,i)}catch(e){return e}}(n,i,function(e){if(!r){r=!0;i!==e?k(t,e):U(t,e)}},function(e){if(!r){r=!0;C(t,e)}},t._label);if(!r&&e){r=!0;C(t,e)}},e)):U(e,t);var i,n,o,a}function k(e,t){e===t?C(e,new TypeError("You cannot resolve a promise with itself")):"function"==typeof(r=t)||"object"==typeof r&&null!==r?P(e,t,b(t)):U(e,t);var r}function O(e){e._onerror&&e._onerror(e._result);A(e)}function U(e,t){if(e._state===_){e._result=t;e._state=E;0!==e._subscribers.length&&s(A,e)}}function C(e,t){if(e._state===_){e._state=w;e._result=t;s(O,e)}}function S(e,t,r,i){var n=e._subscribers,o=n.length;e._onerror=null;n[o]=t;n[o+E]=r;n[o+w]=i;0===o&&e._state&&s(A,e)}function A(e){var t=e._subscribers,r=e._state;if(0!==t.length){for(var i=void 0,n=void 0,o=e._result,a=0;a<t.length;a+=3){i=t[a];n=t[a+r];i?H(r,i,n,o):n(o)}e._subscribers.length=0}}function I(){this.error=null}var R=new I;function H(e,t,r,i){var n=l(r),o=void 0,a=void 0,s=void 0,u=void 0;if(n){if((o=function(e,t){try{return e(t)}catch(e){R.error=e;return R}}(r,i))===R){u=!0;a=o.error;o=null}else s=!0;if(t===o){C(t,new TypeError("A promises callback cannot return that same promise."));return}}else{o=i;s=!0}t._state!==_||(n&&s?k(t,o):u?C(t,a):e===E?U(t,o):e===w&&C(t,o))}var D=0;function M(e){e[g]=D++;e._state=void 0;e._result=void 0;e._subscribers=[]}function q(e,t){this._instanceConstructor=e;this.promise=new e(y);this.promise[g]||M(this.promise);if(r(t)){this._input=t;this.length=t.length;this._remaining=t.length;this._result=new Array(this.length);if(0===this.length)U(this.promise,this._result);else{this.length=this.length||0;this._enumerate();0===this._remaining&&U(this.promise,this._result)}}else C(this.promise,new Error("Array Methods must be provided an Array"))}q.prototype._enumerate=function(){for(var e=this.length,t=this._input,r=0;this._state===_&&r<e;r++)this._eachEntry(t[r],r)};q.prototype._eachEntry=function(t,e){var r=this._instanceConstructor,i=r.resolve;if(i===m){var n=b(t);if(n===v&&t._state!==_)this._settledAt(t._state,e,t._result);else if("function"!=typeof n){this._remaining--;this._result[e]=t}else if(r===L){var o=new r(y);P(o,t,n);this._willSettleAt(o,e)}else this._willSettleAt(new r(function(e){return e(t)}),e)}else this._willSettleAt(i(t),e)};q.prototype._settledAt=function(e,t,r){var i=this.promise;if(i._state===_){this._remaining--;e===w?C(i,r):this._result[t]=r}0===this._remaining&&U(i,this._result)};q.prototype._willSettleAt=function(e,t){var r=this;S(e,void 0,function(e){return r._settledAt(E,t,e)},function(e){return r._settledAt(w,t,e)})};function L(e){this[g]=D++;this._result=this._state=void 0;this._subscribers=[];if(y!==e){"function"!=typeof e&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}();this instanceof L?function(t,e){try{e(function(e){k(t,e)},function(e){C(t,e)})}catch(e){C(t,e)}}(this,e):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}()}}L.all=function(e){return new q(this,e).promise};L.race=function(n){var o=this;return r(n)?new o(function(e,t){for(var r=n.length,i=0;i<r;i++)o.resolve(n[i]).then(e,t)}):new o(function(e,t){return t(new TypeError("You must pass an array to race."))})};L.resolve=m;L.reject=function(e){var t=new this(y);C(t,e);return t};L._setScheduler=function(e){n=e};L._setAsap=function(e){s=e};L._asap=s;L.prototype={constructor:L,then:v,catch:function(e){return this.then(null,e)}};function N(){var e=void 0;if("undefined"!=typeof global)e=global;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===r&&!t.cast)return}e.Promise=L}N();L.polyfill=N;return L.Promise=L},"object"==typeof t&&void 0!==e?e.exports=i():r.ES6Promise=i();var r,i},{}]},{},[2])(2)});