@haxtheweb/haxcms-nodejs
Version:
HAXcms single and multisite nodejs server, api, and administration
10 lines • 11.2 kB
JavaScript
/**
@license @nocompile
Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
(function(){function aa(t){var n=0;return function(){return n<t.length?{done:!1,value:t[n++]}:{done:!0}}}var t="function"==typeof Object.defineProperties?Object.defineProperty:function(t,n,r){return t==Array.prototype||t==Object.prototype||(t[n]=r.value),t};var n,r=function ba(t){t=["object"==typeof globalThis&&globalThis,t,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var n=0;n<t.length;++n){var r=t[n];if(r&&r.Math==Math)return r}throw Error("Cannot find global object")}(this);function A(n,e){if(e)t:{var o=r;n=n.split(".");for(var i=0;i<n.length-1;i++){var u=n[i];if(!(u in o))break t;o=o[u]}(e=e(i=o[n=n[n.length-1]]))!=i&&null!=e&&t(o,n,{configurable:!0,writable:!0,value:e})}}function ca(t){return(t={next:t})[Symbol.iterator]=function(){return this},t}if(A("Symbol",(function(n){function c(n,r){this.g=n,t(this,"description",{configurable:!0,writable:!0,value:r})}if(n)return n;c.prototype.toString=function(){return this.g};var r=0;return function b(t){if(this instanceof b)throw new TypeError("Symbol is not a constructor");return new c("jscomp_symbol_"+(t||"")+"_"+r++,t)}})),A("Symbol.iterator",(function(n){if(n)return n;n=Symbol("Symbol.iterator");for(var e="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),o=0;o<e.length;o++){var i=r[e[o]];"function"==typeof i&&"function"!=typeof i.prototype[n]&&t(i.prototype,n,{configurable:!0,writable:!0,value:function(){return ca(aa(this))}})}return n})),"function"==typeof Object.setPrototypeOf)n=Object.setPrototypeOf;else{var e;t:{var o={};try{o.__proto__={a:!0},e=o.a;break t}catch(a){}e=!1}n=e?function(t,n){if(t.__proto__=n,t.__proto__!==n)throw new TypeError(t+" is not extensible");return t}:null}var i=n;function K(){this.o=!1,this.h=null,this.A=void 0,this.g=1,this.v=0,this.m=null}function L(t){if(t.o)throw new TypeError("Generator is already running");t.o=!0}function M(t,n){t.m={B:n,C:!0},t.g=t.v}function N(t,n){return t.g=3,{value:n}}function ja(t){this.g=new K,this.h=t}function O(t,n,r,e){try{var o=n.call(t.g.h,r);if(!(o instanceof Object))throw new TypeError("Iterator result "+o+" is not an object");if(!o.done)return t.g.o=!1,o;var i=o.value}catch(n){return t.g.h=null,M(t.g,n),P(t)}return t.g.h=null,e.call(t.g,i),P(t)}function P(t){for(;t.g.g;)try{var n=t.h(t.g);if(n)return t.g.o=!1,{value:n.value,done:!1}}catch(n){t.g.A=void 0,M(t.g,n)}if(t.g.o=!1,t.g.m){if(n=t.g.m,t.g.m=null,n.C)throw n.B;return{value:n.return,done:!0}}return{value:void 0,done:!0}}function la(t){this.next=function(n){return L(t.g),t.g.h?n=O(t,t.g.h.next,n,t.g.s):(t.g.s(n),n=P(t)),n},this.throw=function(n){return L(t.g),t.g.h?n=O(t,t.g.h.throw,n,t.g.s):(M(t.g,n),n=P(t)),n},this.return=function(n){return function ka(t,n){L(t.g);var r=t.g.h;return r?O(t,"return"in r?r.return:function(t){return{value:t,done:!0}},n,t.g.return):(t.g.return(n),P(t))}(t,n)},this[Symbol.iterator]=function(){return this}}function Q(t,n){return n=new la(new ja(n)),i&&t.prototype&&i(n,t.prototype),n}K.prototype.s=function(t){this.A=t},K.prototype.return=function(t){this.m={return:t},this.g=this.v},Array.from||(Array.from=function(t){return[].slice.call(t)}),Object.assign||(Object.assign=function(t){for(var n,r=[].slice.call(arguments,1),e=0;e<r.length;e++)if(n=r[e])for(var o=t,i=Object.keys(n),u=0;u<i.length;u++){var a=i[u];o[a]=n[a]}return t});var u=setTimeout;function na(){}function R(t){if(!(this instanceof R))throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this.i=0,this.u=!1,this.j=void 0,this.l=[],pa(t,this)}function qa(t,n){for(;3===t.i;)t=t.j;0===t.i?t.l.push(n):(t.u=!0,y((function(){var r=1===t.i?n.D:n.F;if(null===r)(1===t.i?T:W)(n.promise,t.j);else{try{var e=r(t.j)}catch(t){return void W(n.promise,t)}T(n.promise,e)}})))}function T(t,n){try{if(n===t)throw new TypeError("A promise cannot be resolved with itself.");if(n&&("object"==typeof n||"function"==typeof n)){var r=n.then;if(n instanceof R)return t.i=3,t.j=n,void X(t);if("function"==typeof r)return void pa(function oa(t,n){return function(){t.apply(n,arguments)}}(r,n),t)}t.i=1,t.j=n,X(t)}catch(n){W(t,n)}}function W(t,n){t.i=2,t.j=n,X(t)}function X(t){2===t.i&&0===t.l.length&&y((function(){t.u||"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t.j)}));for(var n=0,r=t.l.length;n<r;n++)qa(t,t.l[n]);t.l=null}function ra(t,n,r){this.D="function"==typeof t?t:null,this.F="function"==typeof n?n:null,this.promise=r}function pa(t,n){var r=!1;try{t((function(t){r||(r=!0,T(n,t))}),(function(t){r||(r=!0,W(n,t))}))}catch(t){r||(r=!0,W(n,t))}}function ta(t){return t&&"object"==typeof t&&t.constructor===R?t:new R((function(n){n(t)}))}R.prototype.catch=function(t){return this.then(null,t)},R.prototype.then=function(t,n){var r=new this.constructor(na);return qa(this,new ra(t,n,r)),r},R.prototype.finally=function(t){var n=this.constructor;return this.then((function(r){return n.resolve(t()).then((function(){return r}))}),(function(r){return n.resolve(t()).then((function(){return n.reject(r)}))}))};var a,l,f,s,h,p,y="function"==typeof setImmediate&&function(t){setImmediate(t)}||function(t){u(t,0)};if(!window.Promise){window.Promise=R,R.prototype.then=R.prototype.then,R.all=function sa(t){return new R((function(n,r){function d(t,i){try{if(i&&("object"==typeof i||"function"==typeof i)){var u=i.then;if("function"==typeof u)return void u.call(i,(function(n){d(t,n)}),r)}e[t]=i,0==--o&&n(e)}catch(t){r(t)}}if(!t||void 0===t.length)return r(new TypeError("Promise.all accepts an array"));var e=Array.prototype.slice.call(t);if(0===e.length)return n([]);for(var o=e.length,i=0;i<e.length;i++)d(i,e[i])}))},R.race=function va(t){return new R((function(n,r){if(!t||void 0===t.length)return r(new TypeError("Promise.race accepts an array"));for(var e=0,o=t.length;e<o;e++)ta(t[e]).then(n,r)}))},R.resolve=ta,R.reject=function ua(t){return new R((function(n,r){r(t)}))};var g=document.createTextNode(""),v=[];new MutationObserver((function(){for(var t=v.length,n=0;n<t;n++)v[n]();v.splice(0,t)})).observe(g,{characterData:!0}),y=function(t){v.push(t),g.textContent=0<g.textContent.length?"":"a"}}!function(t,n){if(!(n in t)){var r=typeof global==typeof r?window:global,e=0,o=String(Math.random()),i="__symbol@@"+o,u=t.getOwnPropertyNames,a=t.getOwnPropertyDescriptor,l=t.create,f=t.keys,s=t.freeze||t,h=t.defineProperty,p=t.defineProperties,y=a(t,"getOwnPropertyNames"),g=t.prototype,v=g.hasOwnProperty,m=g.propertyIsEnumerable,w=g.toString,da=function(t,n,r){v.call(t,i)||h(t,i,{enumerable:!1,configurable:!1,writable:!1,value:{}}),t[i]["@@"+n]=r},Aa=function(){},ea=function(t){return t!=i&&!v.call(S,t)},C=function(t){return t!=i&&v.call(S,t)},F=function(t){var n=String(t);return C(n)?v.call(this,n)&&!!this[i]&&this[i]["@@"+n]:m.call(this,t)},fa=function(n){return h(g,n,{enumerable:!1,configurable:!0,get:Aa,set:function(t){E(this,n,{enumerable:!1,configurable:!0,writable:!0,value:t}),da(this,n,!0)}}),S[n]=h(t(n),"constructor",_),s(S[n])},j=function k(t){if(this instanceof k)throw new TypeError("Symbol is not a constructor");return fa("__symbol:".concat(t||"",o,++e))},S=l(null),_={value:j},Ca=function(t){return S[t]},U=function(t,n,r){var e=String(n);if(C(e)){if(n=E,r.enumerable){var o=l(r);o.enumerable=!1}else o=r;n(t,e,o),da(t,e,!!r.enumerable)}else h(t,n,r);return t},ha=function(t){return u(t).filter(C).map(Ca)};y.value=U,h(t,"defineProperty",y),y.value=ha,h(t,n,y),y.value=function(t){return u(t).filter(ea)},h(t,"getOwnPropertyNames",y),y.value=function(t,n){var r=ha(n);return r.length?f(n).concat(r).forEach((function(r){F.call(n,r)&&U(t,r,n[r])})):p(t,n),t},h(t,"defineProperties",y),y.value=F,h(g,"propertyIsEnumerable",y),y.value=j,h(r,"Symbol",y),y.value=function(t){return(t="__symbol:".concat("__symbol:",t,o))in g?S[t]:fa(t)},h(j,"for",y),y.value=function(t){if(ea(t))throw new TypeError(t+" is not a symbol");if(v.call(S,t)&&("__symbol:"===(t=t.slice(10)).slice(0,10)&&(t=t.slice(10))!==o))return 0<(t=t.slice(0,t.length-o.length)).length?t:void 0},h(j,"keyFor",y),y.value=function(t,n){var r=a(t,n);return r&&C(n)&&(r.enumerable=F.call(t,n)),r},h(t,"getOwnPropertyDescriptor",y),y.value=function(t,n){return 1===arguments.length||void 0===n?l(t):function(t,n){var r=l(t);return u(n).forEach((function(t){F.call(n,t)&&U(r,t,n[t])})),r}(t,n)},h(t,"create",y),y.value=function(){var t=w.call(this);return"[object String]"===t&&C(this)?"[object Symbol]":t},h(g,"toString",y);try{if(!0!==l(h({},"__symbol:",{get:function(){return h(this,"__symbol:",{value:!0})["__symbol:"]}}))["__symbol:"])throw"IE11";var E=h}catch(t){E=function(t,n,r){var e=a(g,n);delete g[n],h(t,n,r),h(g,n,e)}}}}(Object,"getOwnPropertySymbols"),a=Object,l=Symbol,s=a.defineProperty,h=a.prototype,p=h.toString,"iterator match replace search split hasInstance isConcatSpreadable unscopables species toPrimitive toStringTag".split(" ").forEach((function(t){t in l||(s(l,t,{value:l(t)}),"toStringTag"===t&&((f=a.getOwnPropertyDescriptor(h,"toString")).value=function(){var t=p.call(this),n=null==this?this:this[l.toStringTag];return null==n?t:"[object "+n+"]"},s(h,"toString",f)))})),function(t,n,r){function d(){return this}n[t]||(n[t]=function(){var n=0,r=this,e={next:function(){var t=r.length<=n;return t?{done:t}:{done:t,value:r[n++]}}};return e[t]=d,e}),r[t]||(r[t]=function(){var n=String.fromCodePoint,r=this,e=0,o=r.length,i={next:function(){var t=o<=e,i=t?"":n(r.codePointAt(e));return e+=i.length,t?{done:t}:{done:t,value:i}}};return i[t]=d,i})}(Symbol.iterator,Array.prototype,String.prototype);var m=Object.prototype.toString;Object.prototype.toString=function(){return void 0===this?"[object Undefined]":null===this?"[object Null]":m.call(this)},Object.keys=function(t){return Object.getOwnPropertyNames(t).filter((function(n){return(n=Object.getOwnPropertyDescriptor(t,n))&&n.enumerable}))},String.prototype[Symbol.iterator]&&String.prototype.codePointAt||(String.prototype[Symbol.iterator]=function Ea(){var t,n=this;return Q(Ea,(function(r){if(1==r.g&&(t=0),3!=r.g)return t<n.length?r=N(r,n[t]):(r.g=0,r=void 0),r;t++,r.g=2}))}),Set.prototype[Symbol.iterator]||(Set.prototype[Symbol.iterator]=function Fa(){var t,n,r=this;return Q(Fa,(function(e){if(1==e.g&&(t=[],r.forEach((function(n){t.push(n)})),n=0),3!=e.g)return n<t.length?e=N(e,t[n]):(e.g=0,e=void 0),e;n++,e.g=2}))}),Map.prototype[Symbol.iterator]||(Map.prototype[Symbol.iterator]=function Ga(){var t,n,r=this;return Q(Ga,(function(e){if(1==e.g&&(t=[],r.forEach((function(n,r){t.push([r,n])})),n=0),3!=e.g)return n<t.length?e=N(e,t[n]):(e.g=0,e=void 0),e;n++,e.g=2}))})}).call(this);