g6/f2a9cacf-worker.18c7c06d.js
2024-11-28 09:15:47 +00:00

2 lines
22 KiB
JavaScript

!function(){var e={"67db8238":"67db8238-async.87f4eca1.js",f33b63c2:"f33b63c2-async.7ea8deed.js",vendors_1:"vendors_1-async.dc04a108.js"},t={vendors_1:"vendors_1-async.1fb74ee7.css"},r={f2a9cacf:0},n="undefined"!=typeof globalThis?globalThis:self,o=function(n,o,i){var a,u,c,s={};function f(e){var t=s[e];if(void 0!==t)return t.exports;var r={id:e,exports:{}};s[e]=r;var o={id:e,module:r,factory:n[e],require:f};return f.requireInterceptors.forEach(function(e){e(o);}),o.factory.call(o.module.exports,o.module,o.module.exports,o.require),r.exports;}f.requireInterceptors=[],f.e=function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]});},f.d=Object.defineProperty.bind(Object),f.dr=function(e,t){return function(){var r=t();return r&&("object"==typeof r||"function"==typeof r)&&"function"==typeof r.then?r.then(function(t){return e(t);}):e(r);};},f.chunkEnsures={},f.ensure=function(e){return Promise.all(Object.keys(f.chunkEnsures).reduce(function(t,r){return f.chunkEnsures[r](e,t),t;},[]));},f.jsonpInstalled={},a=f.jsonpInstalled,f.chunkEnsures.jsonp=function(t,r){var n=a[t];if(0!==n){if(n)r.push(n[2]);else{var o=new Promise(function(e,r){n=a[t]=[e,r];});r.push(n[2]=o);var i=f.publicPath+e[t],u=Error();return f.loadScript(i,function(e){if(0!==(n=a[t])&&(a[t]=void 0),n){var r=e&&e.type,o=e&&e.target&&e.target.src;u.message="Loading chunk "+t+" failed. ("+r+" : "+o+")",u.name="ChunkLoadError",u.type=r,n[1](u);}},"chunk-"+t),o;}}},f.cssInstalled=r,f.findStylesheet=function(e){try{u||(u=new URL(f.publicPath.replace(/^(\/\/)/,"https:$1")).pathname);}catch(e){}return Array.from(document.querySelectorAll("link[href][rel=stylesheet]")).find(function(t){var r=t.getAttribute("href").split("?")[0];return r===e||r===f.publicPath+e||u&&r===u+e;});},f.createStylesheet=function(e,t,n,o,i){var a=document.createElement("link");return a.rel="stylesheet",a.type="text/css",a.href=t,a.onerror=a.onload=function(t){if(a.onerror=a.onload=null,"load"===t.type)r[e]=0,o();else{delete r[e];var n=t&&t.type,u=t&&t.target&&t.target.href,c=Error("Loading CSS chunk "+e+" failed.\n("+u+")");c.code="CSS_CHUNK_LOAD_FAILED",c.type=n,c.request=u,a.parentNode.removeChild(a),i(c);}},n?n.parentNode.insertBefore(a,n.nextSibling):document.head.appendChild(a),a;},f.chunkEnsures.css=function(e,n){if(r[e])n.push(r[e]);else if(0!==r[e]&&t[e])return r[e]=new Promise(function(r,n){var o=t[e],i=f.publicPath+o;f.findStylesheet(o)?r():f.createStylesheet(e,i,null,r,n);}),n.push(r[e]),n;},c={},f.loadScript=function(e,t,r){if(!self.document)return importScripts(e),t();if(c[e])return c[e].push(t);var n=document.querySelector('script[src="'+e+'"], script[data-mako="@antv/g6-site:'+r+'"]');n||((n=document.createElement("script")).timeout=120,n.src=e),c[e]=[t];var o=function(t,r){clearTimeout(i);var o=c[e];if(delete c[e],n.parentNode&&n.parentNode.removeChild(n),o&&o.forEach(function(e){return e(r);}),t)return t(r);},i=setTimeout(o.bind(null,void 0,{type:"timeout",target:n}),12e4);n.onerror=o.bind(null,n.onerror),n.onload=o.bind(null,n.onload),document.head.appendChild(n);};var l=function(e){for(var t in e)n[t]=e[t];},p=function(e){var t=f.jsonpInstalled,r=e[0],n=e[1];r.some(function(e){return 0!==t[e];})&&l(n);for(var o=0;o<r.length;o++){var i=r[o];t[i]&&t[i][0](),t[i]=0;}},d=i["makoChunk_@antv/g6-site"]=i["makoChunk_@antv/g6-site"]||[];return d.forEach(p.bind(null)),d.push=(function(e,t){e(t),p(t);}).bind(null,d.push.bind(d)),f.publicPath="/",l({"777fffbe":function(e,t,r){function n(e){return e&&e.__esModule?e:{default:e};}r.d(t,"__esModule",{value:!0}),r.e(t,{_interop_require_default:function(){return n;},_:function(){return n;}});},"852bbaa9":function(e,t,r){function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t;})(e);}function o(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(o,a,u):o[a]=e[a];}return o.default=e,r&&r.set(e,o),o;}r.d(t,"__esModule",{value:!0}),r.e(t,{_interop_require_wildcard:function(){return o;},_:function(){return o;}});},d1751d7c:function(e,t,r){function n(e,t){return Object.keys(e).forEach(function(r){"default"===r||Object.prototype.hasOwnProperty.call(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[r];}});}),e;}r.d(t,"__esModule",{value:!0}),r.e(t,{_export_star:function(){return n;},_:function(){return n;}});}}),f._interopreRequireWasm=(e,t,r)=>{let n=fetch(t);return"function"==typeof WebAssembly.instantiateStreaming?WebAssembly.instantiateStreaming(n,r).then(t=>Object.assign(e,t.instance.exports)):n.then(e=>e.arrayBuffer()).then(e=>WebAssembly.instantiate(e,r)).then(t=>Object.assign(e,t.instance.exports));},i.__mako_require_module__=f,i.__mako_chunk_load__=f.ensure,f(o),{requireModule:f,_jsonpCallback:p};}({a14e80da:function(e,t,r){"use strict";r.d(t,"__esModule",{value:!0}),r.e(t,{__addDisposableResource:function(){return L;},__assign:function(){return i;},__asyncDelegator:function(){return P;},__asyncGenerator:function(){return E;},__asyncValues:function(){return S;},__await:function(){return O;},__awaiter:function(){return y;},__classPrivateFieldGet:function(){return M;},__classPrivateFieldIn:function(){return R;},__classPrivateFieldSet:function(){return I;},__createBinding:function(){return b;},__decorate:function(){return u;},__disposeResources:function(){return D;},__esDecorate:function(){return s;},__exportStar:function(){return v;},__extends:function(){return o;},__generator:function(){return h;},__importDefault:function(){return A;},__importStar:function(){return C;},__makeTemplateObject:function(){return k;},__metadata:function(){return d;},__param:function(){return c;},__propKey:function(){return l;},__read:function(){return m;},__rest:function(){return a;},__rewriteRelativeImportExtension:function(){return N;},__runInitializers:function(){return f;},__setFunctionName:function(){return p;},__spread:function(){return g;},__spreadArray:function(){return j;},__spreadArrays:function(){return w;},__values:function(){return _;},default:function(){return z;}});var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);})(e,t);};function o(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e;}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r);}var i=function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e;}).apply(this,arguments);};function a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r;}function u(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var u=e.length-1;u>=0;u--)(o=e[u])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a;}function c(e,t){return function(r,n){t(r,n,e);};}function s(e,t,r,n,o,i){function a(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e;}for(var u,c=n.kind,s="getter"===c?"get":"setter"===c?"set":"value",f=!t&&e?n.static?e:e.prototype:null,l=t||(f?Object.getOwnPropertyDescriptor(f,n.name):{}),p=!1,d=r.length-1;d>=0;d--){var y={};for(var h in n)y[h]="access"===h?{}:n[h];for(var h in n.access)y.access[h]=n.access[h];y.addInitializer=function(e){if(p)throw TypeError("Cannot add initializers after decoration has completed");i.push(a(e||null));};var b=(0,r[d])("accessor"===c?{get:l.get,set:l.set}:l[s],y);if("accessor"===c){if(void 0===b)continue;if(null===b||"object"!=typeof b)throw TypeError("Object expected");(u=a(b.get))&&(l.get=u),(u=a(b.set))&&(l.set=u),(u=a(b.init))&&o.unshift(u);}else(u=a(b))&&("field"===c?o.unshift(u):l[s]=u);}f&&Object.defineProperty(f,n.name,l),p=!0;}function f(e,t,r){for(var n=arguments.length>2,o=0;o<t.length;o++)r=n?t[o].call(e,r):t[o].call(e);return n?r:void 0;}function l(e){return"symbol"==typeof e?e:"".concat(e);}function p(e,t,r){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t});}function d(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);}function y(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e));}catch(e){i(e);}}function u(e){try{c(n.throw(e));}catch(e){i(e);}}function c(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(a,u);}c((n=n.apply(e,t||[])).next());});}function h(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1];},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=u(0),a.throw=u(1),a.return=u(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this;}),a;function u(u){return function(c){return function(u){if(r)throw TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&u[0]?n.return:u[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,u[1])).done)return o;switch(n=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,n=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){i=0;continue;}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break;}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break;}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break;}o[2]&&i.ops.pop(),i.trys.pop();continue;}u=t.call(e,i);}catch(e){u=[6,e],n=0;}finally{r=o=0;}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0};}([u,c]);};}}var b=Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r];}}),Object.defineProperty(e,n,o);}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];};function v(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||b(t,e,r);}function _(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e};}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.");}function m(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value);}catch(e){o={error:e};}finally{try{n&&!n.done&&(r=i.return)&&r.call(i);}finally{if(o)throw o.error;}}return a;}function g(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(m(arguments[t]));return e;}function w(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),o=0,t=0;t<r;t++)for(var i=arguments[t],a=0,u=i.length;a<u;a++,o++)n[o]=i[a];return n;}function j(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t));}function O(e){return this instanceof O?(this.v=e,this):new O(e);}function E(e,t,r){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),i=[];return n=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",function(e){return function(t){return Promise.resolve(t).then(e,s);};}),n[Symbol.asyncIterator]=function(){return this;},n;function a(e,t){o[e]&&(n[e]=function(t){return new Promise(function(r,n){i.push([e,t,r,n])>1||u(e,t);});},t&&(n[e]=t(n[e])));}function u(e,t){try{var r;(r=o[e](t)).value instanceof O?Promise.resolve(r.value.v).then(c,s):f(i[0][2],r);}catch(e){f(i[0][3],e);}}function c(e){u("next",e);}function s(e){u("throw",e);}function f(e,t){e(t),i.shift(),i.length&&u(i[0][0],i[0][1]);}}function P(e){var t,r;return t={},n("next"),n("throw",function(e){throw e;}),n("return"),t[Symbol.iterator]=function(){return this;},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:O(e[n](t)),done:!1}:o?o(t):t;}:o;}}function S(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=_(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this;},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,o){!function(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r});},t);}(n,o,(t=e[r](t)).done,t.value);});};}}function k(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e;}var x=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;},T=function(e){return(T=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t;})(e);};function C(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=T(e),n=0;n<r.length;n++)"default"!==r[n]&&b(t,e,r[n]);return x(t,e),t;}function A(e){return e&&e.__esModule?e:{default:e};}function M(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e);}function I(e,t,r,n,o){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!o)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r;}function R(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t);}function L(e,t,r){if(null!=t){var n,o;if("object"!=typeof t&&"function"!=typeof t)throw TypeError("Object expected.");if(r){if(!Symbol.asyncDispose)throw TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose];}if(void 0===n){if(!Symbol.dispose)throw TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(o=n);}if("function"!=typeof n)throw TypeError("Object not disposable.");o&&(n=function(){try{o.call(this);}catch(e){return Promise.reject(e);}}),e.stack.push({value:t,dispose:n,async:r});}else r&&e.stack.push({async:!0});return t;}var q="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n;};function D(e){function t(t){e.error=e.hasError?new q(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0;}var r,n=0;return function o(){for(;r=e.stack.pop();)try{if(!r.async&&1===n)return n=0,e.stack.push(r),Promise.resolve().then(o);if(r.dispose){var i=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(i).then(o,function(e){return t(e),o();});}else n|=1;}catch(e){t(e);}if(1===n)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error;}();}function N(e,t){return"string"==typeof e&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(e,r,n,o,i){return r?t?".jsx":".js":!n||o&&i?n+o+"."+i.toLowerCase()+"js":e;}):e;}var z={__extends:o,__assign:i,__rest:a,__decorate:u,__param:c,__esDecorate:s,__runInitializers:f,__propKey:l,__setFunctionName:p,__metadata:d,__awaiter:y,__generator:h,__createBinding:b,__exportStar:v,__values:_,__read:m,__spread:g,__spreadArrays:w,__spreadArray:j,__await:O,__asyncGenerator:E,__asyncDelegator:P,__asyncValues:S,__makeTemplateObject:k,__importStar:C,__importDefault:A,__classPrivateFieldGet:M,__classPrivateFieldSet:I,__classPrivateFieldIn:R,__addDisposableResource:L,__disposeResources:D,__rewriteRelativeImportExtension:N};},f2a9cacf:function(e,t,r){"use strict";var n=r("852bbaa9")._;r.d(t,"__esModule",{value:!0});var o=r("852bbaa9"),i=r("a14e80da"),a=o._(r("fc3e0d2a")),u={dimensions:2,chunk_size:256,min_movement:.4,distance_threshold_mode:0,ka:0,kg:0,kr:0,speed:0,prevent_overlapping:!1,kr_prime:0,node_radius:0,strong_gravity:!1,lin_log:!1,dissuade_hubs:!1,edge_strength:0,link_distance:0,node_strength:0,coulomb_dis_scale:0,factor:0,interval:0,damping:0,center:[0,0],max_speed:0,max_distance:100},c=function(e,t){return function(r){var n=(0,i.__assign)((0,i.__assign)({name:e},u),r);if(2===e){var o=n.width*n.height,c=Math.sqrt(o)/10,s=Math.sqrt(o/(n.nodes.length+1));n.ka=s,n.interval=.99,n.damping=c;}var f=t(n);return{nodes:a.transfer(f,[f])};};};function s(e){var t=e.force,r=e.dagre;return{forceatlas2:c(0,t),force2:c(1,t),fruchterman:c(2,t),dagre:function(e){var t=r(e),n=t.nodes,o=t.edges;return{nodes:a.transfer(n,[n]),edges:a.transfer(o,[o])};}};}a.expose(function(e){return(0,i.__awaiter)(this,void 0,void 0,function(){var t,o;return(0,i.__generator)(this,function(i){switch(i.label){case 0:if(!e)return[3,4];return[4,Promise.all([r.ensure("vendors_1"),r.ensure("67db8238")]).then(r.dr(n,r.bind(r,"67db8238")))];case 1:return[4,(t=i.sent()).default()];case 2:return i.sent(),[4,t.initThreadPool(navigator.hardwareConcurrency)];case 3:return i.sent(),[2,a.proxy(s(t))];case 4:return[4,Promise.all([r.ensure("f33b63c2")]).then(r.dr(n,r.bind(r,"f33b63c2")))];case 5:return[4,(o=i.sent()).default()];case 6:return i.sent(),[2,a.proxy(s(o))];}});});});},fc3e0d2a:function(e,t,r){"use strict";r.d(t,"__esModule",{value:!0}),r.e(t,{expose:function(){return f;},proxy:function(){return g;},releaseProxy:function(){return i;},transfer:function(){return m;},wrap:function(){return p;}});let n=Symbol("Comlink.proxy"),o=Symbol("Comlink.endpoint"),i=Symbol("Comlink.releaseProxy"),a=Symbol("Comlink.finalizer"),u=Symbol("Comlink.thrown"),c=e=>"object"==typeof e&&null!==e||"function"==typeof e,s=new Map([["proxy",{canHandle:e=>c(e)&&e[n],serialize(e){let{port1:t,port2:r}=new MessageChannel;return f(e,t),[r,[r]];},deserialize:e=>(e.start(),p(e))}],["throw",{canHandle:e=>c(e)&&u in e,serialize:({value:e})=>[e instanceof Error?{isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:{isError:!1,value:e},[]],deserialize(e){if(e.isError)throw Object.assign(Error(e.value.message),e.value);throw e.value;}}]]);function f(e,t=globalThis,r=["*"]){t.addEventListener("message",function n(o){let i;if(!o||!o.data)return;if(!function(e,t){for(let r of e)if(t===r||"*"===r||r instanceof RegExp&&r.test(t))return!0;return!1;}(r,o.origin)){console.warn(`Invalid origin '${o.origin}' for comlink proxy`);return;}let{id:c,type:s,path:p}=Object.assign({path:[]},o.data),d=(o.data.argumentList||[]).map(j);try{let t=p.slice(0,-1).reduce((e,t)=>e[t],e),r=p.reduce((e,t)=>e[t],e);switch(s){case"GET":i=r;break;case"SET":t[p.slice(-1)[0]]=j(o.data.value),i=!0;break;case"APPLY":i=r.apply(t,d);break;case"CONSTRUCT":{let e=new r(...d);i=g(e);}break;case"ENDPOINT":{let{port1:t,port2:r}=new MessageChannel;f(e,r),i=m(t,[t]);}break;case"RELEASE":i=void 0;break;default:return;}}catch(e){i={value:e,[u]:0};}Promise.resolve(i).catch(e=>({value:e,[u]:0})).then(r=>{let[o,i]=w(r);t.postMessage(Object.assign(Object.assign({},o),{id:c}),i),"RELEASE"===s&&(t.removeEventListener("message",n),l(t),a in e&&"function"==typeof e[a]&&e[a]());}).catch(e=>{let[r,n]=w({value:TypeError("Unserializable return value"),[u]:0});t.postMessage(Object.assign(Object.assign({},r),{id:c}),n);});}),t.start&&t.start();}function l(e){"MessagePort"===e.constructor.name&&e.close();}function p(e,t){let r=new Map;return e.addEventListener("message",function(e){let{data:t}=e;if(!t||!t.id)return;let n=r.get(t.id);if(n)try{n(t);}finally{r.delete(t.id);}}),function e(t,r,n=[],a=function(){}){let u=!1,c=new Proxy(a,{get(o,a){if(d(u),a===i)return()=>{b&&b.unregister(c),y(t),r.clear(),u=!0;};if("then"===a){if(0===n.length)return{then:()=>c};let e=O(t,r,{type:"GET",path:n.map(e=>e.toString())}).then(j);return e.then.bind(e);}return e(t,r,[...n,a]);},set(e,o,i){d(u);let[a,c]=w(i);return O(t,r,{type:"SET",path:[...n,o].map(e=>e.toString()),value:a},c).then(j);},apply(i,a,c){d(u);let s=n[n.length-1];if(s===o)return O(t,r,{type:"ENDPOINT"}).then(j);if("bind"===s)return e(t,r,n.slice(0,-1));let[f,l]=v(c);return O(t,r,{type:"APPLY",path:n.map(e=>e.toString()),argumentList:f},l).then(j);},construct(e,o){d(u);let[i,a]=v(o);return O(t,r,{type:"CONSTRUCT",path:n.map(e=>e.toString()),argumentList:i},a).then(j);}});return function(e,t){let r=(h.get(t)||0)+1;h.set(t,r),b&&b.register(e,t,e);}(c,t),c;}(e,r,[],t);}function d(e){if(e)throw Error("Proxy has been released and is not useable");}function y(e){return O(e,new Map,{type:"RELEASE"}).then(()=>{l(e);});}let h=new WeakMap,b="FinalizationRegistry"in globalThis&&new FinalizationRegistry(e=>{let t=(h.get(e)||0)-1;h.set(e,t),0===t&&y(e);});function v(e){var t;let r=e.map(w);return[r.map(e=>e[0]),(t=r.map(e=>e[1]),Array.prototype.concat.apply([],t))];}let _=new WeakMap;function m(e,t){return _.set(e,t),e;}function g(e){return Object.assign(e,{[n]:!0});}function w(e){for(let[t,r]of s)if(r.canHandle(e)){let[n,o]=r.serialize(e);return[{type:"HANDLER",name:t,value:n},o];}return[{type:"RAW",value:e},_.get(e)||[]];}function j(e){switch(e.type){case"HANDLER":return s.get(e.name).deserialize(e.value);case"RAW":return e.value;}}function O(e,t,r,n){return new Promise(o=>{let i=[,,,,].fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-");t.set(i,o),e.start&&e.start(),e.postMessage(Object.assign({id:i},r),n);});}}},"f2a9cacf",n);n.jsonpCallback=o._jsonpCallback;}();
//# sourceMappingURL=f2a9cacf-worker.18c7c06d.js.map