mediacms/static/js/_commons.js

2 lines
671 KiB
JavaScript
Raw Normal View History

2020-12-16 12:48:37 +01:00
/*! For license information please see _commons.js.LICENSE.txt */
2022-03-23 18:04:59 +01:00
(self.webpackChunkmediacms_frontend=self.webpackChunkmediacms_frontend||[]).push([[431],{967:function(e,t,n){"use strict";var r=n(2790),i=n(1283);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a,l,s=n(7060).codes,u=s.ERR_AMBIGUOUS_ARGUMENT,c=s.ERR_INVALID_ARG_TYPE,f=s.ERR_INVALID_ARG_VALUE,d=s.ERR_INVALID_RETURN_VALUE,p=s.ERR_MISSING_ARGS,h=n(8715),m=n(3254).inspect,y=n(3254).types,v=y.isPromise,g=y.isRegExp,b=Object.assign?Object.assign:n(8970).assign,w=Object.is?Object.is:n(2042);function S(){var e=n(7503);a=e.isDeepEqual,l=e.isDeepStrictEqual}new Map;var E=!1,k=e.exports=x,P={};function _(e){if(e.message instanceof Error)throw e.message;throw new h(e)}function O(e,t,n,r){if(!n){var i=!1;if(0===t)i=!0,r="No value argument passed to `assert.ok()`";else if(r instanceof Error)throw r;var o=new h({actual:n,expected:!0,message:r,operator:"==",stackStartFn:e});throw o.generatedMessage=i,o}}function x(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];O.apply(void 0,[x,t.length].concat(t))}k.fail=function e(t,n,o,a,l){var s,u=arguments.length;if(0===u)s="Failed";else if(1===u)o=t,t=void 0;else{if(!1===E){E=!0;var c=r.emitWarning?r.emitWarning:i.warn.bind(i);c("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}2===u&&(a="!=")}if(o instanceof Error)throw o;var f={actual:t,expected:n,operator:void 0===a?"fail":a,stackStartFn:l||e};void 0!==o&&(f.message=o);var d=new h(f);throw s&&(d.message=s,d.generatedMessage=!0),d},k.AssertionError=h,k.ok=x,k.equal=function e(t,n,r){if(arguments.length<2)throw new p("actual","expected");t!=n&&_({actual:t,expected:n,message:r,operator:"==",stackStartFn:e})},k.notEqual=function e(t,n,r){if(arguments.length<2)throw new p("actual","expected");t==n&&_({actual:t,expected:n,message:r,operator:"!=",stackStartFn:e})},k.deepEqual=function e(t,n,r){if(arguments.length<2)throw new p("actual","expected");void 0===a&&S(),a(t,n)||_({actual:t,expected:n,message:r,operator:"deepEqual",stackStartFn:e})},k.notDeepEqual=function e(t,n,r){if(arguments.length<2)throw new p("actual","expected");void 0===a&&S(),a(t,n)&&_({actual:t,expected:n,message:r,operator:"notDeepEqual",stackStartFn:e})},k.deepStrictEqual=function e(t,n,r){if(arguments.length<2)throw new p("actual","expected");void 0===a&&S(),l(t,n)||_({actual:t,expected:n,message:r,operator:"deepStrictEqual",stackStartFn:e})},k.notDeepStrictEqual=function e(t,n,r){if(arguments.length<2)throw new p("actual","expected");void 0===a&&S(),l(t,n)&&_({actual:t,expected:n,message:r,operator:"notDeepStrictEqual",stackStartFn:e})},k.strictEqual=function e(t,n,r){if(arguments.length<2)throw new p("actual","expected");w(t,n)||_({actual:t,expected:n,message:r,operator:"strictEqual",stackStartFn:e})},k.notStrictEqual=function e(t,n,r){if(arguments.length<2)throw new p("actual","expected");w(t,n)&&_({actual:t,expected:n,message:r,operator:"notStrictEqual",stackStartFn:e})};var C=function e(t,n,r){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n.forEach((function(e){e in t&&(void 0!==r&&"string"==typeof r[e]&&g(t[e])&&t[e].test(r[e])?i[e]=r[e]:i[e]=t[e])}))};function A(e,t,n,r,i,o){if(!(n in e)||!l(e[n],t[n])){if(!r){var a=new C(e,i),s=new C(t,i,e),u=new h({actual:a,expected:s,operator:"deepStrictEqual",stackStartFn:o});throw u.actual=e,u.expected=t,u.operator=o.name,u}_({actual:e,expected:t,message:r,operator:o.name,stackStartFn:o})}}function T(e,t,n,r){if("function"!=typeof t){if(g(t))return t.test(e);if(2===arguments.length)throw new c("expected",["Function","RegExp"],t);if("object"!==o(e)||null===e){var i=new h({actual:e,expected:t,message:n,operator:"deepStrictEqual",stackStartFn:r});throw i.operator=r.name,i}var l=Object.keys(t);if(t instanceof Error)l.push("name","message");else if(0===l.length)t