svgedit/dist/editor/system/extensions/ext-xdomain-messaging/ext-xdomain-messaging.js

2 lines
13 KiB
JavaScript
Raw Normal View History

2020-09-08 23:35:47 +00:00
System.register([],(function(t){"use strict";return{execute:function(){var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function createCommonjsModule(t,r,n){return t(n={path:r,exports:{},require:function(t,r){return function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==r&&n.path)}},n.exports),n.exports}var check=function(t){return t&&t.Math==Math&&t},n=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof r&&r)||Function("return this")(),fails=function(t){try{return!!t()}catch(t){return!0}},e=!fails((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),o={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,u={f:i&&!o.call({1:2},1)?function propertyIsEnumerable(t){var r=i(this,t);return!!r&&r.enumerable}:o},createPropertyDescriptor=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}},c={}.toString,classofRaw=function(t){return c.call(t).slice(8,-1)},a="".split,f=fails((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==classofRaw(t)?a.call(t,""):Object(t)}:Object,requireObjectCoercible=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},toIndexedObject=function(t){return f(requireObjectCoercible(t))},isObject=function(t){return"object"==typeof t?null!==t:"function"==typeof t},toPrimitive=function(t,r){if(!isObject(t))return t;var n,e;if(r&&"function"==typeof(n=t.toString)&&!isObject(e=n.call(t)))return e;if("function"==typeof(n=t.valueOf)&&!isObject(e=n.call(t)))return e;if(!r&&"function"==typeof(n=t.toString)&&!isObject(e=n.call(t)))return e;throw TypeError("Can't convert object to primitive value")},l={}.hasOwnProperty,has=function(t,r){return l.call(t,r)},s=n.document,p=isObject(s)&&isObject(s.createElement),documentCreateElement=function(t){return p?s.createElement(t):{}},y=!e&&!fails((function(){return 7!=Object.defineProperty(documentCreateElement("div"),"a",{get:function(){return 7}}).a})),d=Object.getOwnPropertyDescriptor,g={f:e?d:function getOwnPropertyDescriptor(t,r){if(t=toIndexedObject(t),r=toPrimitive(r,!0),y)try{return d(t,r)}catch(t){}if(has(t,r))return createPropertyDescriptor(!u.f.call(t,r),t[r])}},anObject=function(t){if(!isObject(t))throw TypeError(String(t)+" is not an object");return t},m=Object.defineProperty,h={f:e?m:function defineProperty(t,r,n){if(anObject(t),r=toPrimitive(r,!0),anObject(n),y)try{return m(t,r,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[r]=n.value),t}},v=e?function(t,r,n){return h.f(t,r,createPropertyDescriptor(1,n))}:function(t,r,n){return t[r]=n,t},setGlobal=function(t,r){try{v(n,t,r)}catch(e){n[t]=r}return r},b="__core-js_shared__",S=n[b]||setGlobal(b,{}),w=Function.toString;"function"!=typeof S.inspectSource&&(S.inspectSource=function(t){return w.call(t)});var O,j,A,E=S.inspectSource,T=n.WeakMap,_="function"==typeof T&&/native code/.test(E(T)),P=createCommonjsModule((function(t){(t.exports=function(t,r){return S[t]||(S[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),C=0,x=Math.random(),uid=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++C+x).toString(36)},M=P("keys"),sharedKey=function(t){return M[t]||(M[t]=uid(t))},I={},k=n.WeakMap;if(_){var L=new k,F=L.get,N=L.has,R=L.set;O=function(t,r){return R.call(L,t,r),r},j=function(t){return F.call(L,t)||{}},A=function(t){return N.call(L,t)}}else{var D=sharedKey("state");I[D]=!0,O=function(t,r){return v(t,D,r),r},j=function(t){return has(t,D)?t[D]:{}},A=function(t){return has(t,D)}}var W,q,z={set:O,get:j,has:A,enforce:function(t){return A(t)?j(t):O(t,{})},getterFor:function(t){return function(r){var n;if(!isObject(r)||(n=j(r)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},G=