diff --git a/asset-manifest.json b/asset-manifest.json
index 770c745..1870fdc 100644
--- a/asset-manifest.json
+++ b/asset-manifest.json
@@ -1,15 +1,15 @@
{
"files": {
"main.css": "/AlgoVerse/static/css/main.1641d0be.css",
- "main.js": "/AlgoVerse/static/js/main.52392206.js",
+ "main.js": "/AlgoVerse/static/js/main.91ba8d2b.js",
"static/js/787.ab98c072.chunk.js": "/AlgoVerse/static/js/787.ab98c072.chunk.js",
"index.html": "/AlgoVerse/index.html",
"main.1641d0be.css.map": "/AlgoVerse/static/css/main.1641d0be.css.map",
- "main.52392206.js.map": "/AlgoVerse/static/js/main.52392206.js.map",
+ "main.91ba8d2b.js.map": "/AlgoVerse/static/js/main.91ba8d2b.js.map",
"787.ab98c072.chunk.js.map": "/AlgoVerse/static/js/787.ab98c072.chunk.js.map"
},
"entrypoints": [
"static/css/main.1641d0be.css",
- "static/js/main.52392206.js"
+ "static/js/main.91ba8d2b.js"
]
}
\ No newline at end of file
diff --git a/index.html b/index.html
index f1dff8d..f44ba23 100644
--- a/index.html
+++ b/index.html
@@ -1 +1 @@
-
React App
\ No newline at end of file
+React App
\ No newline at end of file
diff --git a/static/js/main.52392206.js b/static/js/main.91ba8d2b.js
similarity index 92%
rename from static/js/main.52392206.js
rename to static/js/main.91ba8d2b.js
index 7b71ad0..1ee968f 100644
--- a/static/js/main.52392206.js
+++ b/static/js/main.91ba8d2b.js
@@ -1,3 +1,3 @@
-/*! For license information please see main.52392206.js.LICENSE.txt */
-!function(){var t={1694:function(t,e){var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var t=[],e=0;e-1}},2683:function(t){t.exports=function(t,e,n){for(var r=-1,i=null==t?0:t.length;++r=200&&(h=l,d=!1,e=new r(e));t:for(;++c0&&o(c)?n>1?t(c,n-1,o,a,s):r(s,c):a||(s[s.length]=c)}return s}},5099:function(t,e,n){var r=n(372)();t.exports=r},8667:function(t,e,n){var r=n(3082),i=n(9793);t.exports=function(t,e){for(var n=0,o=(e=r(e,t)).length;null!=t&&n1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),e=Object(e);++r1&&T.reverse(),w&&mc))return!1;var d=l.get(t),f=l.get(e);if(d&&f)return d==e&&f==t;var p=-1,v=!0,y=2&n?new r:void 0;for(l.set(t,e),l.set(e,t);++p1?"& ":"")+n[i],n=n.join(r>2?", ":" "),t.replace(e,"{\n/* [wrapped with "+n+"] */\n")}},3529:function(t,e,n){var r=n(7197),i=n(4963),o=n(3629),a=r?r.isConcatSpreadable:void 0;t.exports=function(t){return o(t)||i(t)||!!(a&&t&&t[a])}},6800:function(t){var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t-1}},7109:function(t,e,n){var r=n(7112);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},4086:function(t,e,n){var r=n(9676),i=n(8384),o=n(5797);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},9255:function(t,e,n){var r=n(2799);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},9186:function(t,e,n){var r=n(2799);t.exports=function(t){return r(this,t).get(t)}},3423:function(t,e,n){var r=n(2799);t.exports=function(t){return r(this,t).has(t)}},3739:function(t,e,n){var r=n(2799);t.exports=function(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},234:function(t){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}},284:function(t){t.exports=function(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}},4634:function(t,e,n){var r=n(9151);t.exports=function(t){var e=r(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}},7935:function(t,e,n){var r=n(6557),i=n(449),o=n(2784),a="__lodash_placeholder__",s=128,l=Math.min;t.exports=function(t,e){var n=t[1],u=e[1],c=n|u,h=c<131,d=u==s&&8==n||u==s&&256==n&&t[7].length<=e[8]||384==u&&e[7].length<=e[8]&&8==n;if(!h&&!d)return t;1&u&&(t[2]=e[2],c|=1&n?0:4);var f=e[3];if(f){var p=t[3];t[3]=p?r(p,f,e[4]):f,t[4]=p?o(t[3],a):e[4]}return(f=e[5])&&(p=t[5],t[5]=p?i(p,f,e[6]):f,t[6]=p?o(t[5],a):e[6]),(f=e[7])&&(t[7]=f),u&s&&(t[8]=null==t[8]?e[8]:l(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=c,t}},1921:function(t,e,n){var r=n(7091),i=r&&new r;t.exports=i},9620:function(t,e,n){var r=n(8136)(Object,"create");t.exports=r},5964:function(t,e,n){var r=n(2709)(Object.keys,Object);t.exports=r},4221:function(t){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},9494:function(t,e,n){t=n.nmd(t);var r=n(1032),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i&&r.process,s=function(){try{var t=o&&o.require&&o.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(e){}}();t.exports=s},3581:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},2709:function(t){t.exports=function(t,e){return function(n){return t(e(n))}}},4262:function(t,e,n){var r=n(3665),i=Math.max;t.exports=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,a=-1,s=i(o.length-e,0),l=Array(s);++a0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}},511:function(t,e,n){var r=n(8384);t.exports=function(){this.__data__=new r,this.size=0}},835:function(t){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},707:function(t){t.exports=function(t){return this.__data__.get(t)}},8832:function(t){t.exports=function(t){return this.__data__.has(t)}},5077:function(t,e,n){var r=n(8384),i=n(5797),o=n(8059);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(t,e),this.size=n.size,this}},7167:function(t){t.exports=function(t,e,n){for(var r=n-1,i=t.length;++r2?e-2:1,r&&r<=e?n:a(n,e)):n}},mixin:function(t){return function(e){var n=this;if(!C(n))return t(n,Object(e));var r=[];return E(P(e),(function(t){C(e[t])&&r.push([t,n.prototype[t]])})),t(n,Object(e)),E(r,(function(t){var e=t[1];C(e)?n.prototype[t[0]]=e:delete n.prototype[t[0]]})),n}},nthArg:function(t){return function(e){var n=e<0?1:I(e)+1;return _(t(e),n)}},rearg:function(t){return function(e,n){var r=n?n.length:0;return _(t(e,n),r)}},runInContext:function(n){return function(r){return t(e,n(r),c)}}};function M(t,e){if(f.cap){var n=r.iterateeRearg[t];if(n)return function(t,e){return B(t,(function(t){var n=e.length;return function(t,e){return 2==e?function(e,n){return t.apply(void 0,arguments)}:function(e){return t.apply(void 0,arguments)}}(j(a(t,n),e),n)}))}(e,n);var i=!h&&r.iterateeAry[t];if(i)return function(t,e){return B(t,(function(t){return"function"==typeof t?a(t,e):t}))}(e,i)}return e}function F(t,e,n){if(f.fixed&&(y||!r.skipFixed[t])){var i=r.methodSpread[t],a=i&&i.start;return void 0===a?w(e,n):function(t,e){return function(){for(var n=arguments.length,r=n-1,i=Array(n);n--;)i[n]=arguments[n];var a=i[e],s=i.slice(0,e);return a&&o.apply(s,a),e!=r&&o.apply(s,i.slice(e+1)),t.apply(this,s)}}(e,a)}return e}function R(t,e,n){return f.rearg&&n>1&&(g||!r.skipRearg[t])?j(e,r.methodRearg[t]||r.aryRearg[n]):e}function z(t,e){for(var n=-1,r=(e=N(e)).length,i=r-1,o=k(Object(t)),a=o;null!=a&&++n1?_(e,n):e}(0,i=M(o,i),t),!1}})),!i})),i||(i=a),i==e&&(i=v?_(i,1):function(){return e.apply(this,arguments)}),i.convert=L(o,e),i.placeholder=e.placeholder=n,i}if(!d)return W(n,u,p);var H=u,U=[];return E(A,(function(t){E(r.aryMethod[t],(function(t){var e=H[r.remap[t]||t];e&&U.push([t,W(t,e,H)])}))})),E(P(H),(function(t){var e=H[t];if("function"==typeof e){for(var n=U.length;n--;)if(U[n][0]==t)return;e.convert=L(t,e),U.push([t,e])}})),E(U,(function(t){H[t[0]]=t[1]})),H.convert=function(t){return H.runInContext.convert(t)(void 0)},H.placeholder=H,E(P(H),(function(t){E(r.realToAlias[t]||[],(function(e){H[e]=H[t]}))})),H}},767:function(t,e){e.aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},e.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},e.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},e.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},e.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},e.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},e.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},e.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},e.realToAlias=function(){var t=Object.prototype.hasOwnProperty,n=e.aliasToReal,r={};for(var i in n){var o=n[i];t.call(r,o)?r[o].push(i):r[o]=[i]}return r}(),e.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},e.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},e.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}},2635:function(t,e,n){t.exports={ary:n(9991),assign:n(1855),clone:n(8787),curry:n(5129),forEach:n(4550),isArray:n(3629),isError:n(3908),isFunction:n(4786),isWeakMap:n(5183),iteratee:n(8608),keys:n(3654),rearg:n(1968),toInteger:n(9753),toPath:n(168)}},1294:function(t,e,n){var r=n(4717),i=n(2635);t.exports=function(t,e,n){return r(i,t,e,n)}},1640:function(t,e,n){var r=n(1294)("defaultsDeep",n(4521));r.placeholder=n(8485),t.exports=r},8485:function(t){t.exports={}},6181:function(t,e,n){var r=n(8667);t.exports=function(t,e,n){var i=null==t?void 0:r(t,e);return void 0===i?n:i}},5658:function(t,e,n){var r=n(529),i=n(6417);t.exports=function(t,e){return null!=t&&i(t,e,r)}},2100:function(t){t.exports=function(t){return t}},4963:function(t,e,n){var r=n(4906),i=n(3141),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(t){return i(t)&&a.call(t,"callee")&&!s.call(t,"callee")};t.exports=l},3629:function(t){var e=Array.isArray;t.exports=e},1473:function(t,e,n){var r=n(4786),i=n(4635);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},6279:function(t,e,n){var r=n(1473),i=n(3141);t.exports=function(t){return i(t)&&r(t)}},5174:function(t,e,n){t=n.nmd(t);var r=n(7009),i=n(9488),o=e&&!e.nodeType&&e,a=o&&t&&!t.nodeType&&t,s=a&&a.exports===o?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||i;t.exports=l},8111:function(t,e,n){var r=n(1848);t.exports=function(t,e){return r(t,e)}},3908:function(t,e,n){var r=n(9066),i=n(3141),o=n(3977);t.exports=function(t){if(!i(t))return!1;var e=r(t);return"[object Error]"==e||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!o(t)}},4786:function(t,e,n){var r=n(9066),i=n(8092);t.exports=function(t){if(!i(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},4635:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},103:function(t,e,n){var r=n(3085),i=n(6194),o=n(9494),a=o&&o.isMap,s=a?i(a):r;t.exports=s},8092:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},3141:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},3977:function(t,e,n){var r=n(9066),i=n(1137),o=n(3141),a=Function.prototype,s=Object.prototype,l=a.toString,u=s.hasOwnProperty,c=l.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var e=i(t);if(null===e)return!0;var n=u.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==c}},6995:function(t,e,n){var r=n(8680),i=n(6194),o=n(9494),a=o&&o.isSet,s=a?i(a):r;t.exports=s},152:function(t,e,n){var r=n(9066),i=n(3141);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},9102:function(t,e,n){var r=n(8150),i=n(6194),o=n(9494),a=o&&o.isTypedArray,s=a?i(a):r;t.exports=s},5183:function(t,e,n){var r=n(8383),i=n(3141);t.exports=function(t){return i(t)&&"[object WeakMap]"==r(t)}},8608:function(t,e,n){var r=n(1905),i=n(6025);t.exports=function(t){return i("function"==typeof t?t:r(t,1))}},2742:function(t,e,n){var r=n(7538),i=n(3654),o=n(1473);t.exports=function(t){return o(t)?r(t):i(t)}},3961:function(t,e,n){var r=n(7538),i=n(8664),o=n(1473);t.exports=function(t){return o(t)?r(t,!0):i(t)}},5727:function(t){t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},9151:function(t,e,n){var r=n(8059);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function n(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,t.exports=i},2617:function(t,e,n){var r=n(4173),i=n(9934)((function(t,e,n,i){r(t,e,n,i)}));t.exports=i},9694:function(t){t.exports=function(){}},38:function(t,e,n){var r=n(9586),i=n(4084),o=n(5823),a=n(9793);t.exports=function(t){return o(t)?r(a(t)):i(t)}},1968:function(t,e,n){var r=n(1121),i=n(7038),o=i((function(t,e){return r(t,256,void 0,void 0,void 0,e)}));t.exports=o},8174:function(t){t.exports=function(){return[]}},9488:function(t){t.exports=function(){return!1}},1495:function(t,e,n){var r=n(2582),i=1/0;t.exports=function(t){return t?(t=r(t))===i||t===-1/0?17976931348623157e292*(t<0?-1:1):t===t?t:0:0===t?t:0}},9753:function(t,e,n){var r=n(1495);t.exports=function(t){var e=r(t),n=e%1;return e===e?n?e-n:e:0}},2582:function(t,e,n){var r=n(821),i=n(8092),o=n(152),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=s.test(t);return n||l.test(t)?u(t.slice(2),n?2:8):a.test(t)?NaN:+t}},168:function(t,e,n){var r=n(8950),i=n(291),o=n(3629),a=n(152),s=n(170),l=n(9793),u=n(3518);t.exports=function(t){return o(t)?r(t,l):a(t)?[t]:i(s(u(t)))}},6576:function(t,e,n){var r=n(4503),i=n(3961);t.exports=function(t){return r(t,i(t))}},3518:function(t,e,n){var r=n(2446);t.exports=function(t){return null==t?"":r(t)}},2857:function(t,e,n){var r=n(2492),i=n(5598),o=n(8807),a=n(3629),s=n(3141),l=n(8878),u=Object.prototype.hasOwnProperty;function c(t){if(s(t)&&!a(t)&&!(t instanceof r)){if(t instanceof i)return t;if(u.call(t,"__wrapped__"))return l(t)}return new i(t)}c.prototype=o.prototype,c.prototype.constructor=c,t.exports=c},888:function(t,e,n){"use strict";var r=n(9047);function i(){}function o(){}o.resetWarningCache=i,t.exports=function(){function t(t,e,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function e(){return t}t.isRequired=t;var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},2007:function(t,e,n){t.exports=n(888)()},9047:function(t){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4463:function(t,e,n){"use strict";var r=n(2791),i=n(5296);function o(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;ne}return!1}(e,n,i,r)&&(n=null),r||null===i?function(t){return!!h.call(p,t)||!h.call(f,t)&&(d.test(t)?p[t]=!0:(f[t]=!0,!1))}(e)&&(null===n?t.removeAttribute(e):t.setAttribute(e,""+n)):i.mustUseProperty?t[i.propertyName]=null===n?3!==i.type&&"":n:(e=i.attributeName,r=i.attributeNamespace,null===n?t.removeAttribute(e):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?t.setAttributeNS(r,e,n):t.setAttribute(e,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(t){var e=t.replace(g,m);y[e]=new v(e,1,!1,t,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(t){var e=t.replace(g,m);y[e]=new v(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(t){var e=t.replace(g,m);y[e]=new v(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(t){y[t]=new v(t,1,!1,t.toLowerCase(),null,!1,!1)})),y.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(t){y[t]=new v(t,1,!1,t.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=Symbol.for("react.element"),k=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),C=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),N=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var A=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var D=Symbol.iterator;function M(t){return null===t||"object"!==typeof t?null:"function"===typeof(t=D&&t[D]||t["@@iterator"])?t:null}var F,R=Object.assign;function z(t){if(void 0===F)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);F=e&&e[1]||""}return"\n"+F+t}var L=!1;function B(t,e){if(!t||L)return"";L=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(e,[])}catch(u){var r=u}Reflect.construct(t,[],e)}else{try{e.call()}catch(u){r=u}t.call(e.prototype)}else{try{throw Error()}catch(u){r=u}t()}}catch(u){if(u&&r&&"string"===typeof u.stack){for(var i=u.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var l="\n"+i[a].replace(" at new "," at ");return t.displayName&&l.includes("")&&(l=l.replace("",t.displayName)),l}}while(1<=a&&0<=s);break}}}finally{L=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?z(t):""}function W(t){switch(t.tag){case 5:return z(t.type);case 16:return z("Lazy");case 13:return z("Suspense");case 19:return z("SuspenseList");case 0:case 2:case 15:return t=B(t.type,!1);case 11:return t=B(t.type.render,!1);case 1:return t=B(t.type,!0);default:return""}}function H(t){if(null==t)return null;if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t;switch(t){case _:return"Fragment";case k:return"Portal";case S:return"Profiler";case E:return"StrictMode";case P:return"Suspense";case j:return"SuspenseList"}if("object"===typeof t)switch(t.$$typeof){case C:return(t.displayName||"Context")+".Consumer";case O:return(t._context.displayName||"Context")+".Provider";case T:var e=t.render;return(t=t.displayName)||(t=""!==(t=e.displayName||e.name||"")?"ForwardRef("+t+")":"ForwardRef"),t;case I:return null!==(e=t.displayName||null)?e:H(t.type)||"Memo";case N:e=t._payload,t=t._init;try{return H(t(e))}catch(n){}}return null}function U(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=(t=e.render).displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return H(e);case 8:return e===E?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e}return null}function V(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":case"object":return t;default:return""}}function q(t){var e=t.type;return(t=t.nodeName)&&"input"===t.toLowerCase()&&("checkbox"===e||"radio"===e)}function G(t){t._valueTracker||(t._valueTracker=function(t){var e=q(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(t){r=""+t,o.call(this,t)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(t){r=""+t},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}(t))}function Y(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=q(t)?t.checked?"true":"false":t.value),(t=r)!==n&&(e.setValue(t),!0)}function $(t){if("undefined"===typeof(t=t||("undefined"!==typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}function X(t,e){var n=e.checked;return R({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:t._wrapperState.initialChecked})}function K(t,e){var n=null==e.defaultValue?"":e.defaultValue,r=null!=e.checked?e.checked:e.defaultChecked;n=V(null!=e.value?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===e.type||"radio"===e.type?null!=e.checked:null!=e.value}}function Q(t,e){null!=(e=e.checked)&&b(t,"checked",e,!1)}function J(t,e){Q(t,e);var n=V(e.value),r=e.type;if(null!=n)"number"===r?(0===n&&""===t.value||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if("submit"===r||"reset"===r)return void t.removeAttribute("value");e.hasOwnProperty("value")?tt(t,e.type,n):e.hasOwnProperty("defaultValue")&&tt(t,e.type,V(e.defaultValue)),null==e.checked&&null!=e.defaultChecked&&(t.defaultChecked=!!e.defaultChecked)}function Z(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!("submit"!==r&&"reset"!==r||void 0!==e.value&&null!==e.value))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}""!==(n=t.name)&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,""!==n&&(t.name=n)}function tt(t,e,n){"number"===e&&$(t.ownerDocument)===t||(null==n?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var et=Array.isArray;function nt(t,e,n,r){if(t=t.options,e){e={};for(var i=0;i"+e.valueOf().toString()+"",e=ut.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,e,n,r){MSApp.execUnsafeLocalFunction((function(){return ct(t,e)}))}:ct);function dt(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&3===n.nodeType)return void(n.nodeValue=e)}t.textContent=e}var ft={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pt=["Webkit","ms","Moz","O"];function vt(t,e,n){return null==e||"boolean"===typeof e||""===e?"":n||"number"!==typeof e||0===e||ft.hasOwnProperty(t)&&ft[t]?(""+e).trim():e+"px"}function yt(t,e){for(var n in t=t.style,e)if(e.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=vt(n,e[n],r);"float"===n&&(n="cssFloat"),r?t.setProperty(n,i):t[n]=i}}Object.keys(ft).forEach((function(t){pt.forEach((function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),ft[e]=ft[t]}))}));var gt=R({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function mt(t,e){if(e){if(gt[t]&&(null!=e.children||null!=e.dangerouslySetInnerHTML))throw Error(o(137,t));if(null!=e.dangerouslySetInnerHTML){if(null!=e.children)throw Error(o(60));if("object"!==typeof e.dangerouslySetInnerHTML||!("__html"in e.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=e.style&&"object"!==typeof e.style)throw Error(o(62))}}function bt(t,e){if(-1===t.indexOf("-"))return"string"===typeof e.is;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var wt=null;function xt(t){return(t=t.target||t.srcElement||window).correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}var kt=null,_t=null,Et=null;function St(t){if(t=bi(t)){if("function"!==typeof kt)throw Error(o(280));var e=t.stateNode;e&&(e=xi(e),kt(t.stateNode,t.type,e))}}function Ot(t){_t?Et?Et.push(t):Et=[t]:_t=t}function Ct(){if(_t){var t=_t,e=Et;if(Et=_t=null,St(t),e)for(t=0;t>>=0,0===t?32:31-(se(t)/le|0)|0},se=Math.log,le=Math.LN2;var ue=64,ce=4194304;function he(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&t;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&t;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function de(t,e){var n=t.pendingLanes;if(0===n)return 0;var r=0,i=t.suspendedLanes,o=t.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=he(s):0!==(o&=a)&&(r=he(o))}else 0!==(a=n&~i)?r=he(a):0!==o&&(r=he(o));if(0===r)return 0;if(0!==e&&e!==r&&0===(e&i)&&((i=r&-r)>=(o=e&-e)||16===i&&0!==(4194240&o)))return e;if(0!==(4&r)&&(r|=16&n),0!==(e=t.entangledLanes))for(t=t.entanglements,e&=r;0n;n++)e.push(t);return e}function ge(t,e,n){t.pendingLanes|=e,536870912!==e&&(t.suspendedLanes=0,t.pingedLanes=0),(t=t.eventTimes)[e=31-ae(e)]=n}function me(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var r=31-ae(n),i=1<=Mn),zn=String.fromCharCode(32),Ln=!1;function Bn(t,e){switch(t){case"keyup":return-1!==An.indexOf(e.keyCode);case"keydown":return 229!==e.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wn(t){return"object"===typeof(t=t.detail)&&"data"in t?t.data:null}var Hn=!1;var Un={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Vn(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return"input"===e?!!Un[t.type]:"textarea"===e}function qn(t,e,n,r){Ot(r),0<(e=Gr(e,"onChange")).length&&(n=new cn("onChange","change",null,n,r),t.push({event:n,listeners:e}))}var Gn=null,Yn=null;function $n(t){zr(t,0)}function Xn(t){if(Y(wi(t)))return t}function Kn(t,e){if("change"===t)return e}var Qn=!1;if(c){var Jn;if(c){var Zn="oninput"in document;if(!Zn){var tr=document.createElement("div");tr.setAttribute("oninput","return;"),Zn="function"===typeof tr.oninput}Jn=Zn}else Jn=!1;Qn=Jn&&(!document.documentMode||9=e)return{node:r,offset:e-t};t=n}t:{for(;r;){if(r.nextSibling){r=r.nextSibling;break t}r=r.parentNode}r=void 0}r=ur(r)}}function hr(t,e){return!(!t||!e)&&(t===e||(!t||3!==t.nodeType)&&(e&&3===e.nodeType?hr(t,e.parentNode):"contains"in t?t.contains(e):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(e))))}function dr(){for(var t=window,e=$();e instanceof t.HTMLIFrameElement;){try{var n="string"===typeof e.contentWindow.location.href}catch(r){n=!1}if(!n)break;e=$((t=e.contentWindow).document)}return e}function fr(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&("input"===e&&("text"===t.type||"search"===t.type||"tel"===t.type||"url"===t.type||"password"===t.type)||"textarea"===e||"true"===t.contentEditable)}function pr(t){var e=dr(),n=t.focusedElem,r=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&hr(n.ownerDocument.documentElement,n)){if(null!==r&&fr(n))if(e=r.start,void 0===(t=r.end)&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if((t=(e=n.ownerDocument||document)&&e.defaultView||window).getSelection){t=t.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!t.extend&&o>r&&(i=r,r=o,o=i),i=cr(n,o);var a=cr(n,r);i&&a&&(1!==t.rangeCount||t.anchorNode!==i.node||t.anchorOffset!==i.offset||t.focusNode!==a.node||t.focusOffset!==a.offset)&&((e=e.createRange()).setStart(i.node,i.offset),t.removeAllRanges(),o>r?(t.addRange(e),t.extend(a.node,a.offset)):(e.setEnd(a.node,a.offset),t.addRange(e)))}for(e=[],t=n;t=t.parentNode;)1===t.nodeType&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n=document.documentMode,yr=null,gr=null,mr=null,br=!1;function wr(t,e,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==yr||yr!==$(r)||("selectionStart"in(r=yr)&&fr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},mr&&lr(mr,r)||(mr=r,0<(r=Gr(gr,"onSelect")).length&&(e=new cn("onSelect","select",null,e,n),t.push({event:e,listeners:r}),e.target=yr)))}function xr(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var kr={animationend:xr("Animation","AnimationEnd"),animationiteration:xr("Animation","AnimationIteration"),animationstart:xr("Animation","AnimationStart"),transitionend:xr("Transition","TransitionEnd")},_r={},Er={};function Sr(t){if(_r[t])return _r[t];if(!kr[t])return t;var e,n=kr[t];for(e in n)if(n.hasOwnProperty(e)&&e in Er)return _r[t]=n[e];return t}c&&(Er=document.createElement("div").style,"AnimationEvent"in window||(delete kr.animationend.animation,delete kr.animationiteration.animation,delete kr.animationstart.animation),"TransitionEvent"in window||delete kr.transitionend.transition);var Or=Sr("animationend"),Cr=Sr("animationiteration"),Tr=Sr("animationstart"),Pr=Sr("transitionend"),jr=new Map,Ir="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Nr(t,e){jr.set(t,e),l(e,[t])}for(var Ar=0;Ar_i||(t.current=ki[_i],ki[_i]=null,_i--)}function Oi(t,e){_i++,ki[_i]=t.current,t.current=e}var Ci={},Ti=Ei(Ci),Pi=Ei(!1),ji=Ci;function Ii(t,e){var n=t.type.contextTypes;if(!n)return Ci;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=e[i];return r&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=o),o}function Ni(t){return null!==(t=t.childContextTypes)&&void 0!==t}function Ai(){Si(Pi),Si(Ti)}function Di(t,e,n){if(Ti.current!==Ci)throw Error(o(168));Oi(Ti,e),Oi(Pi,n)}function Mi(t,e,n){var r=t.stateNode;if(e=e.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(o(108,U(t)||"Unknown",i));return R({},n,r)}function Fi(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Ci,ji=Ti.current,Oi(Ti,t),Oi(Pi,Pi.current),!0}function Ri(t,e,n){var r=t.stateNode;if(!r)throw Error(o(169));n?(t=Mi(t,e,ji),r.__reactInternalMemoizedMergedChildContext=t,Si(Pi),Si(Ti),Oi(Ti,t)):Si(Pi),Oi(Pi,n)}var zi=null,Li=!1,Bi=!1;function Wi(t){null===zi?zi=[t]:zi.push(t)}function Hi(){if(!Bi&&null!==zi){Bi=!0;var t=0,e=be;try{var n=zi;for(be=1;t>=a,i-=a,Ki=1<<32-ae(e)+i|n<v?(y=h,h=null):y=h.sibling;var g=f(i,h,s[v],l);if(null===g){null===h&&(h=y);break}t&&h&&null===g.alternate&&e(i,h),o=a(g,o,v),null===c?u=g:c.sibling=g,c=g,h=y}if(v===s.length)return n(i,h),io&&Ji(i,v),u;if(null===h){for(;vy?(g=v,v=null):g=v.sibling;var b=f(i,v,m.value,u);if(null===b){null===v&&(v=g);break}t&&v&&null===b.alternate&&e(i,v),s=a(b,s,y),null===h?c=b:h.sibling=b,h=b,v=g}if(m.done)return n(i,v),io&&Ji(i,y),c;if(null===v){for(;!m.done;y++,m=l.next())null!==(m=d(i,m.value,u))&&(s=a(m,s,y),null===h?c=m:h.sibling=m,h=m);return io&&Ji(i,y),c}for(v=r(i,v);!m.done;y++,m=l.next())null!==(m=p(v,i,y,m.value,u))&&(t&&null!==m.alternate&&v.delete(null===m.key?y:m.key),s=a(m,s,y),null===h?c=m:h.sibling=m,h=m);return t&&v.forEach((function(t){return e(i,t)})),io&&Ji(i,y),c}return function t(r,o,a,l){if("object"===typeof a&&null!==a&&a.type===_&&null===a.key&&(a=a.props.children),"object"===typeof a&&null!==a){switch(a.$$typeof){case x:t:{for(var u=a.key,c=o;null!==c;){if(c.key===u){if((u=a.type)===_){if(7===c.tag){n(r,c.sibling),(o=i(c,a.props.children)).return=r,r=o;break t}}else if(c.elementType===u||"object"===typeof u&&null!==u&&u.$$typeof===N&&Xo(u)===c.type){n(r,c.sibling),(o=i(c,a.props)).ref=Yo(r,c,a),o.return=r,r=o;break t}n(r,c);break}e(r,c),c=c.sibling}a.type===_?((o=Fu(a.props.children,r.mode,l,a.key)).return=r,r=o):((l=Mu(a.type,a.key,a.props,null,r.mode,l)).ref=Yo(r,o,a),l.return=r,r=l)}return s(r);case k:t:{for(c=a.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(r,o.sibling),(o=i(o,a.children||[])).return=r,r=o;break t}n(r,o);break}e(r,o),o=o.sibling}(o=Lu(a,r.mode,l)).return=r,r=o}return s(r);case N:return t(r,o,(c=a._init)(a._payload),l)}if(et(a))return v(r,o,a,l);if(M(a))return y(r,o,a,l);$o(r,a)}return"string"===typeof a&&""!==a||"number"===typeof a?(a=""+a,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,a)).return=r,r=o):(n(r,o),(o=zu(a,r.mode,l)).return=r,r=o),s(r)):n(r,o)}}var Qo=Ko(!0),Jo=Ko(!1),Zo={},ta=Ei(Zo),ea=Ei(Zo),na=Ei(Zo);function ra(t){if(t===Zo)throw Error(o(174));return t}function ia(t,e){switch(Oi(na,e),Oi(ea,t),Oi(ta,Zo),t=e.nodeType){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:lt(null,"");break;default:e=lt(e=(t=8===t?e.parentNode:e).namespaceURI||null,t=t.tagName)}Si(ta),Oi(ta,e)}function oa(){Si(ta),Si(ea),Si(na)}function aa(t){ra(na.current);var e=ra(ta.current),n=lt(e,t.type);e!==n&&(Oi(ea,t),Oi(ta,n))}function sa(t){ea.current===t&&(Si(ta),Si(ea))}var la=Ei(0);function ua(t){for(var e=t;null!==e;){if(13===e.tag){var n=e.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return e}else if(19===e.tag&&void 0!==e.memoizedProps.revealOrder){if(0!==(128&e.flags))return e}else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var ca=[];function ha(){for(var t=0;tn?n:4,t(!0);var r=fa.transition;fa.transition={};try{t(!1),e()}finally{be=n,fa.transition=r}}function ts(){return Ca().memoizedState}function es(t,e,n){var r=nu(t);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rs(t))is(e,n);else if(null!==(n=Po(t,e,n,r))){ru(n,t,r,eu()),os(n,e,r)}}function ns(t,e,n){var r=nu(t),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rs(t))is(e,i);else{var o=t.alternate;if(0===t.lanes&&(null===o||0===o.lanes)&&null!==(o=e.lastRenderedReducer))try{var a=e.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,sr(s,a)){var l=e.interleaved;return null===l?(i.next=i,To(e)):(i.next=l.next,l.next=i),void(e.interleaved=i)}}catch(u){}null!==(n=Po(t,e,i,r))&&(ru(n,t,r,i=eu()),os(n,e,r))}}function rs(t){var e=t.alternate;return t===va||null!==e&&e===va}function is(t,e){ba=ma=!0;var n=t.pending;null===n?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function os(t,e,n){if(0!==(4194240&n)){var r=e.lanes;n|=r&=t.pendingLanes,e.lanes=n,me(t,n)}}var as={readContext:Oo,useCallback:ka,useContext:ka,useEffect:ka,useImperativeHandle:ka,useInsertionEffect:ka,useLayoutEffect:ka,useMemo:ka,useReducer:ka,useRef:ka,useState:ka,useDebugValue:ka,useDeferredValue:ka,useTransition:ka,useMutableSource:ka,useSyncExternalStore:ka,useId:ka,unstable_isNewReconciler:!1},ss={readContext:Oo,useCallback:function(t,e){return Oa().memoizedState=[t,void 0===e?null:e],t},useContext:Oo,useEffect:Ua,useImperativeHandle:function(t,e,n){return n=null!==n&&void 0!==n?n.concat([t]):null,Wa(4194308,4,Ya.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Wa(4194308,4,t,e)},useInsertionEffect:function(t,e){return Wa(4,2,t,e)},useMemo:function(t,e){var n=Oa();return e=void 0===e?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=Oa();return e=void 0!==n?n(e):e,r.memoizedState=r.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},r.queue=t,t=t.dispatch=es.bind(null,va,t),[r.memoizedState,t]},useRef:function(t){return t={current:t},Oa().memoizedState=t},useState:za,useDebugValue:Xa,useDeferredValue:function(t){return Oa().memoizedState=t},useTransition:function(){var t=za(!1),e=t[0];return t=Za.bind(null,t[1]),Oa().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var r=va,i=Oa();if(io){if(void 0===n)throw Error(o(407));n=n()}else{if(n=e(),null===jl)throw Error(o(349));0!==(30&pa)||Aa(r,e,n)}i.memoizedState=n;var a={value:n,getSnapshot:e};return i.queue=a,Ua(Ma.bind(null,r,a,t),[t]),r.flags|=2048,La(9,Da.bind(null,r,a,n,e),void 0,null),n},useId:function(){var t=Oa(),e=jl.identifierPrefix;if(io){var n=Qi;e=":"+e+"R"+(n=(Ki&~(1<<32-ae(Ki)-1)).toString(32)+n),0<(n=wa++)&&(e+="H"+n.toString(32)),e+=":"}else e=":"+e+"r"+(n=xa++).toString(32)+":";return t.memoizedState=e},unstable_isNewReconciler:!1},ls={readContext:Oo,useCallback:Ka,useContext:Oo,useEffect:Va,useImperativeHandle:$a,useInsertionEffect:qa,useLayoutEffect:Ga,useMemo:Qa,useReducer:Pa,useRef:Ba,useState:function(){return Pa(Ta)},useDebugValue:Xa,useDeferredValue:function(t){return Ja(Ca(),ya.memoizedState,t)},useTransition:function(){return[Pa(Ta)[0],Ca().memoizedState]},useMutableSource:Ia,useSyncExternalStore:Na,useId:ts,unstable_isNewReconciler:!1},us={readContext:Oo,useCallback:Ka,useContext:Oo,useEffect:Va,useImperativeHandle:$a,useInsertionEffect:qa,useLayoutEffect:Ga,useMemo:Qa,useReducer:ja,useRef:Ba,useState:function(){return ja(Ta)},useDebugValue:Xa,useDeferredValue:function(t){var e=Ca();return null===ya?e.memoizedState=t:Ja(e,ya.memoizedState,t)},useTransition:function(){return[ja(Ta)[0],Ca().memoizedState]},useMutableSource:Ia,useSyncExternalStore:Na,useId:ts,unstable_isNewReconciler:!1};function cs(t,e){try{var n="",r=e;do{n+=W(r),r=r.return}while(r);var i=n}catch(o){i="\nError generating stack: "+o.message+"\n"+o.stack}return{value:t,source:e,stack:i,digest:null}}function hs(t,e,n){return{value:t,source:null,stack:null!=n?n:null,digest:null!=e?e:null}}function ds(t,e){try{console.error(e.value)}catch(n){setTimeout((function(){throw n}))}}var fs="function"===typeof WeakMap?WeakMap:Map;function ps(t,e,n){(n=Do(-1,n)).tag=3,n.payload={element:null};var r=e.value;return n.callback=function(){ql||(ql=!0,Gl=r),ds(0,e)},n}function vs(t,e,n){(n=Do(-1,n)).tag=3;var r=t.type.getDerivedStateFromError;if("function"===typeof r){var i=e.value;n.payload=function(){return r(i)},n.callback=function(){ds(0,e)}}var o=t.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(n.callback=function(){ds(0,e),"function"!==typeof r&&(null===Yl?Yl=new Set([this]):Yl.add(this));var t=e.stack;this.componentDidCatch(e.value,{componentStack:null!==t?t:""})}),n}function ys(t,e,n){var r=t.pingCache;if(null===r){r=t.pingCache=new fs;var i=new Set;r.set(e,i)}else void 0===(i=r.get(e))&&(i=new Set,r.set(e,i));i.has(n)||(i.add(n),t=Ou.bind(null,t,e,n),e.then(t,t))}function gs(t){do{var e;if((e=13===t.tag)&&(e=null===(e=t.memoizedState)||null!==e.dehydrated),e)return t;t=t.return}while(null!==t);return null}function ms(t,e,n,r,i){return 0===(1&t.mode)?(t===e?t.flags|=65536:(t.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((e=Do(-1,1)).tag=2,Mo(n,e,1))),n.lanes|=1),t):(t.flags|=65536,t.lanes=i,t)}var bs=w.ReactCurrentOwner,ws=!1;function xs(t,e,n,r){e.child=null===t?Jo(e,null,n,r):Qo(e,t.child,n,r)}function ks(t,e,n,r,i){n=n.render;var o=e.ref;return So(e,i),r=Ea(t,e,n,r,o,i),n=Sa(),null===t||ws?(io&&n&&to(e),e.flags|=1,xs(t,e,r,i),e.child):(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,qs(t,e,i))}function _s(t,e,n,r,i){if(null===t){var o=n.type;return"function"!==typeof o||Au(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((t=Mu(n.type,null,r,e,e.mode,i)).ref=e.ref,t.return=e,e.child=t):(e.tag=15,e.type=o,Es(t,e,o,r,i))}if(o=t.child,0===(t.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(a,r)&&t.ref===e.ref)return qs(t,e,i)}return e.flags|=1,(t=Du(o,r)).ref=e.ref,t.return=e,e.child=t}function Es(t,e,n,r,i){if(null!==t){var o=t.memoizedProps;if(lr(o,r)&&t.ref===e.ref){if(ws=!1,e.pendingProps=r=o,0===(t.lanes&i))return e.lanes=t.lanes,qs(t,e,i);0!==(131072&t.flags)&&(ws=!0)}}return Cs(t,e,n,r,i)}function Ss(t,e,n){var r=e.pendingProps,i=r.children,o=null!==t?t.memoizedState:null;if("hidden"===r.mode)if(0===(1&e.mode))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},Oi(Dl,Al),Al|=n;else{if(0===(1073741824&n))return t=null!==o?o.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,Oi(Dl,Al),Al|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,Oi(Dl,Al),Al|=r}else null!==o?(r=o.baseLanes|n,e.memoizedState=null):r=n,Oi(Dl,Al),Al|=r;return xs(t,e,i,n),e.child}function Os(t,e){var n=e.ref;(null===t&&null!==n||null!==t&&t.ref!==n)&&(e.flags|=512,e.flags|=2097152)}function Cs(t,e,n,r,i){var o=Ni(n)?ji:Ti.current;return o=Ii(e,o),So(e,i),n=Ea(t,e,n,r,o,i),r=Sa(),null===t||ws?(io&&r&&to(e),e.flags|=1,xs(t,e,n,i),e.child):(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,qs(t,e,i))}function Ts(t,e,n,r,i){if(Ni(n)){var o=!0;Fi(e)}else o=!1;if(So(e,i),null===e.stateNode)Vs(t,e),Vo(e,n,r),Go(e,n,r,i),r=!0;else if(null===t){var a=e.stateNode,s=e.memoizedProps;a.props=s;var l=a.context,u=n.contextType;"object"===typeof u&&null!==u?u=Oo(u):u=Ii(e,u=Ni(n)?ji:Ti.current);var c=n.getDerivedStateFromProps,h="function"===typeof c||"function"===typeof a.getSnapshotBeforeUpdate;h||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||l!==u)&&qo(e,a,r,u),Io=!1;var d=e.memoizedState;a.state=d,zo(e,r,a,i),l=e.memoizedState,s!==r||d!==l||Pi.current||Io?("function"===typeof c&&(Wo(e,n,c,r),l=e.memoizedState),(s=Io||Uo(e,n,s,r,d,l,u))?(h||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(e.flags|=4194308)):("function"===typeof a.componentDidMount&&(e.flags|=4194308),e.memoizedProps=r,e.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"===typeof a.componentDidMount&&(e.flags|=4194308),r=!1)}else{a=e.stateNode,Ao(t,e),s=e.memoizedProps,u=e.type===e.elementType?s:go(e.type,s),a.props=u,h=e.pendingProps,d=a.context,"object"===typeof(l=n.contextType)&&null!==l?l=Oo(l):l=Ii(e,l=Ni(n)?ji:Ti.current);var f=n.getDerivedStateFromProps;(c="function"===typeof f||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==h||d!==l)&&qo(e,a,r,l),Io=!1,d=e.memoizedState,a.state=d,zo(e,r,a,i);var p=e.memoizedState;s!==h||d!==p||Pi.current||Io?("function"===typeof f&&(Wo(e,n,f,r),p=e.memoizedState),(u=Io||Uo(e,n,u,r,d,p,l)||!1)?(c||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,l),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,l)),"function"===typeof a.componentDidUpdate&&(e.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(e.flags|=1024)):("function"!==typeof a.componentDidUpdate||s===t.memoizedProps&&d===t.memoizedState||(e.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===t.memoizedProps&&d===t.memoizedState||(e.flags|=1024),e.memoizedProps=r,e.memoizedState=p),a.props=r,a.state=p,a.context=l,r=u):("function"!==typeof a.componentDidUpdate||s===t.memoizedProps&&d===t.memoizedState||(e.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===t.memoizedProps&&d===t.memoizedState||(e.flags|=1024),r=!1)}return Ps(t,e,n,r,o,i)}function Ps(t,e,n,r,i,o){Os(t,e);var a=0!==(128&e.flags);if(!r&&!a)return i&&Ri(e,n,!1),qs(t,e,o);r=e.stateNode,bs.current=e;var s=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return e.flags|=1,null!==t&&a?(e.child=Qo(e,t.child,null,o),e.child=Qo(e,null,s,o)):xs(t,e,s,o),e.memoizedState=r.state,i&&Ri(e,n,!0),e.child}function js(t){var e=t.stateNode;e.pendingContext?Di(0,e.pendingContext,e.pendingContext!==e.context):e.context&&Di(0,e.context,!1),ia(t,e.containerInfo)}function Is(t,e,n,r,i){return po(),vo(i),e.flags|=256,xs(t,e,n,r),e.child}var Ns,As,Ds,Ms,Fs={dehydrated:null,treeContext:null,retryLane:0};function Rs(t){return{baseLanes:t,cachePool:null,transitions:null}}function zs(t,e,n){var r,i=e.pendingProps,a=la.current,s=!1,l=0!==(128&e.flags);if((r=l)||(r=(null===t||null!==t.memoizedState)&&0!==(2&a)),r?(s=!0,e.flags&=-129):null!==t&&null===t.memoizedState||(a|=1),Oi(la,1&a),null===t)return uo(e),null!==(t=e.memoizedState)&&null!==(t=t.dehydrated)?(0===(1&e.mode)?e.lanes=1:"$!"===t.data?e.lanes=8:e.lanes=1073741824,null):(l=i.children,t=i.fallback,s?(i=e.mode,s=e.child,l={mode:"hidden",children:l},0===(1&i)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=Ru(l,i,0,null),t=Fu(t,i,n,null),s.return=e,t.return=e,s.sibling=t,e.child=s,e.child.memoizedState=Rs(n),e.memoizedState=Fs,t):Ls(e,l));if(null!==(a=t.memoizedState)&&null!==(r=a.dehydrated))return function(t,e,n,r,i,a,s){if(n)return 256&e.flags?(e.flags&=-257,Bs(t,e,s,r=hs(Error(o(422))))):null!==e.memoizedState?(e.child=t.child,e.flags|=128,null):(a=r.fallback,i=e.mode,r=Ru({mode:"visible",children:r.children},i,0,null),(a=Fu(a,i,s,null)).flags|=2,r.return=e,a.return=e,r.sibling=a,e.child=r,0!==(1&e.mode)&&Qo(e,t.child,null,s),e.child.memoizedState=Rs(s),e.memoizedState=Fs,a);if(0===(1&e.mode))return Bs(t,e,s,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var l=r.dgst;return r=l,Bs(t,e,s,r=hs(a=Error(o(419)),r,void 0))}if(l=0!==(s&t.childLanes),ws||l){if(null!==(r=jl)){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!==(i&(r.suspendedLanes|s))?0:i)&&i!==a.retryLane&&(a.retryLane=i,jo(t,i),ru(r,t,i,-1))}return yu(),Bs(t,e,s,r=hs(Error(o(421))))}return"$?"===i.data?(e.flags|=128,e.child=t.child,e=Tu.bind(null,t),i._reactRetry=e,null):(t=a.treeContext,ro=ui(i.nextSibling),no=e,io=!0,oo=null,null!==t&&(Yi[$i++]=Ki,Yi[$i++]=Qi,Yi[$i++]=Xi,Ki=t.id,Qi=t.overflow,Xi=e),e=Ls(e,r.children),e.flags|=4096,e)}(t,e,l,i,r,a,n);if(s){s=i.fallback,l=e.mode,r=(a=t.child).sibling;var u={mode:"hidden",children:i.children};return 0===(1&l)&&e.child!==a?((i=e.child).childLanes=0,i.pendingProps=u,e.deletions=null):(i=Du(a,u)).subtreeFlags=14680064&a.subtreeFlags,null!==r?s=Du(r,s):(s=Fu(s,l,n,null)).flags|=2,s.return=e,i.return=e,i.sibling=s,e.child=i,i=s,s=e.child,l=null===(l=t.child.memoizedState)?Rs(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=t.childLanes&~n,e.memoizedState=Fs,i}return t=(s=t.child).sibling,i=Du(s,{mode:"visible",children:i.children}),0===(1&e.mode)&&(i.lanes=n),i.return=e,i.sibling=null,null!==t&&(null===(n=e.deletions)?(e.deletions=[t],e.flags|=16):n.push(t)),e.child=i,e.memoizedState=null,i}function Ls(t,e){return(e=Ru({mode:"visible",children:e},t.mode,0,null)).return=t,t.child=e}function Bs(t,e,n,r){return null!==r&&vo(r),Qo(e,t.child,null,n),(t=Ls(e,e.pendingProps.children)).flags|=2,e.memoizedState=null,t}function Ws(t,e,n){t.lanes|=e;var r=t.alternate;null!==r&&(r.lanes|=e),Eo(t.return,e,n)}function Hs(t,e,n,r,i){var o=t.memoizedState;null===o?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=e,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Us(t,e,n){var r=e.pendingProps,i=r.revealOrder,o=r.tail;if(xs(t,e,r.children,n),0!==(2&(r=la.current)))r=1&r|2,e.flags|=128;else{if(null!==t&&0!==(128&t.flags))t:for(t=e.child;null!==t;){if(13===t.tag)null!==t.memoizedState&&Ws(t,n,e);else if(19===t.tag)Ws(t,n,e);else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;null===t.sibling;){if(null===t.return||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}r&=1}if(Oi(la,r),0===(1&e.mode))e.memoizedState=null;else switch(i){case"forwards":for(n=e.child,i=null;null!==n;)null!==(t=n.alternate)&&null===ua(t)&&(i=n),n=n.sibling;null===(n=i)?(i=e.child,e.child=null):(i=n.sibling,n.sibling=null),Hs(e,!1,i,n,o);break;case"backwards":for(n=null,i=e.child,e.child=null;null!==i;){if(null!==(t=i.alternate)&&null===ua(t)){e.child=i;break}t=i.sibling,i.sibling=n,n=i,i=t}Hs(e,!0,n,null,o);break;case"together":Hs(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function Vs(t,e){0===(1&e.mode)&&null!==t&&(t.alternate=null,e.alternate=null,e.flags|=2)}function qs(t,e,n){if(null!==t&&(e.dependencies=t.dependencies),Rl|=e.lanes,0===(n&e.childLanes))return null;if(null!==t&&e.child!==t.child)throw Error(o(153));if(null!==e.child){for(n=Du(t=e.child,t.pendingProps),e.child=n,n.return=e;null!==t.sibling;)t=t.sibling,(n=n.sibling=Du(t,t.pendingProps)).return=e;n.sibling=null}return e.child}function Gs(t,e){if(!io)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;null!==e;)null!==e.alternate&&(n=e),e=e.sibling;null===n?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?e||null===t.tail?t.tail=null:t.tail.sibling=null:r.sibling=null}}function Ys(t){var e=null!==t.alternate&&t.alternate.child===t.child,n=0,r=0;if(e)for(var i=t.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=t,i=i.sibling;else for(i=t.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=t,i=i.sibling;return t.subtreeFlags|=r,t.childLanes=n,e}function $s(t,e,n){var r=e.pendingProps;switch(eo(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ys(e),null;case 1:case 17:return Ni(e.type)&&Ai(),Ys(e),null;case 3:return r=e.stateNode,oa(),Si(Pi),Si(Ti),ha(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==t&&null!==t.child||(ho(e)?e.flags|=4:null===t||t.memoizedState.isDehydrated&&0===(256&e.flags)||(e.flags|=1024,null!==oo&&(su(oo),oo=null))),As(t,e),Ys(e),null;case 5:sa(e);var i=ra(na.current);if(n=e.type,null!==t&&null!=e.stateNode)Ds(t,e,n,r,i),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!r){if(null===e.stateNode)throw Error(o(166));return Ys(e),null}if(t=ra(ta.current),ho(e)){r=e.stateNode,n=e.type;var a=e.memoizedProps;switch(r[di]=e,r[fi]=a,t=0!==(1&e.mode),n){case"dialog":Lr("cancel",r),Lr("close",r);break;case"iframe":case"object":case"embed":Lr("load",r);break;case"video":case"audio":for(i=0;i<\/script>",t=t.removeChild(t.firstChild)):"string"===typeof r.is?t=l.createElement(n,{is:r.is}):(t=l.createElement(n),"select"===n&&(l=t,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):t=l.createElementNS(t,n),t[di]=e,t[fi]=r,Ns(t,e,!1,!1),e.stateNode=t;t:{switch(l=bt(n,r),n){case"dialog":Lr("cancel",t),Lr("close",t),i=r;break;case"iframe":case"object":case"embed":Lr("load",t),i=r;break;case"video":case"audio":for(i=0;iUl&&(e.flags|=128,r=!0,Gs(a,!1),e.lanes=4194304)}else{if(!r)if(null!==(t=ua(l))){if(e.flags|=128,r=!0,null!==(n=t.updateQueue)&&(e.updateQueue=n,e.flags|=4),Gs(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!io)return Ys(e),null}else 2*Qt()-a.renderingStartTime>Ul&&1073741824!==n&&(e.flags|=128,r=!0,Gs(a,!1),e.lanes=4194304);a.isBackwards?(l.sibling=e.child,e.child=l):(null!==(n=a.last)?n.sibling=l:e.child=l,a.last=l)}return null!==a.tail?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=Qt(),e.sibling=null,n=la.current,Oi(la,r?1&n|2:1&n),e):(Ys(e),null);case 22:case 23:return du(),r=null!==e.memoizedState,null!==t&&null!==t.memoizedState!==r&&(e.flags|=8192),r&&0!==(1&e.mode)?0!==(1073741824&Al)&&(Ys(e),6&e.subtreeFlags&&(e.flags|=8192)):Ys(e),null;case 24:case 25:return null}throw Error(o(156,e.tag))}function Xs(t,e){switch(eo(e),e.tag){case 1:return Ni(e.type)&&Ai(),65536&(t=e.flags)?(e.flags=-65537&t|128,e):null;case 3:return oa(),Si(Pi),Si(Ti),ha(),0!==(65536&(t=e.flags))&&0===(128&t)?(e.flags=-65537&t|128,e):null;case 5:return sa(e),null;case 13:if(Si(la),null!==(t=e.memoizedState)&&null!==t.dehydrated){if(null===e.alternate)throw Error(o(340));po()}return 65536&(t=e.flags)?(e.flags=-65537&t|128,e):null;case 19:return Si(la),null;case 4:return oa(),null;case 10:return _o(e.type._context),null;case 22:case 23:return du(),null;default:return null}}Ns=function(t,e){for(var n=e.child;null!==n;){if(5===n.tag||6===n.tag)t.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},As=function(){},Ds=function(t,e,n,r){var i=t.memoizedProps;if(i!==r){t=e.stateNode,ra(ta.current);var o,a=null;switch(n){case"input":i=X(t,i),r=X(t,r),a=[];break;case"select":i=R({},i,{value:void 0}),r=R({},r,{value:void 0}),a=[];break;case"textarea":i=rt(t,i),r=rt(t,r),a=[];break;default:"function"!==typeof i.onClick&&"function"===typeof r.onClick&&(t.onclick=Zr)}for(c in mt(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var l=i[c];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(s.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var u=r[c];if(l=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(o in l)!l.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&l[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(a||(a=[]),a.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(a=a||[]).push(c,u)):"children"===c?"string"!==typeof u&&"number"!==typeof u||(a=a||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(s.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Lr("scroll",t),a||l===u||(a=[])):(a=a||[]).push(c,u))}n&&(a=a||[]).push("style",n);var c=a;(e.updateQueue=c)&&(e.flags|=4)}},Ms=function(t,e,n,r){n!==r&&(e.flags|=4)};var Ks=!1,Qs=!1,Js="function"===typeof WeakSet?WeakSet:Set,Zs=null;function tl(t,e){var n=t.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){Su(t,e,r)}else n.current=null}function el(t,e,n){try{n()}catch(r){Su(t,e,r)}}var nl=!1;function rl(t,e,n){var r=e.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&t)===t){var o=i.destroy;i.destroy=void 0,void 0!==o&&el(e,n,o)}i=i.next}while(i!==r)}}function il(t,e){if(null!==(e=null!==(e=e.updateQueue)?e.lastEffect:null)){var n=e=e.next;do{if((n.tag&t)===t){var r=n.create;n.destroy=r()}n=n.next}while(n!==e)}}function ol(t){var e=t.ref;if(null!==e){var n=t.stateNode;t.tag,t=n,"function"===typeof e?e(t):e.current=t}}function al(t){var e=t.alternate;null!==e&&(t.alternate=null,al(e)),t.child=null,t.deletions=null,t.sibling=null,5===t.tag&&(null!==(e=t.stateNode)&&(delete e[di],delete e[fi],delete e[vi],delete e[yi],delete e[gi])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function sl(t){return 5===t.tag||3===t.tag||4===t.tag}function ll(t){t:for(;;){for(;null===t.sibling;){if(null===t.return||sl(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;5!==t.tag&&6!==t.tag&&18!==t.tag;){if(2&t.flags)continue t;if(null===t.child||4===t.tag)continue t;t.child.return=t,t=t.child}if(!(2&t.flags))return t.stateNode}}function ul(t,e,n){var r=t.tag;if(5===r||6===r)t=t.stateNode,e?8===n.nodeType?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(8===n.nodeType?(e=n.parentNode).insertBefore(t,n):(e=n).appendChild(t),null!==(n=n._reactRootContainer)&&void 0!==n||null!==e.onclick||(e.onclick=Zr));else if(4!==r&&null!==(t=t.child))for(ul(t,e,n),t=t.sibling;null!==t;)ul(t,e,n),t=t.sibling}function cl(t,e,n){var r=t.tag;if(5===r||6===r)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(4!==r&&null!==(t=t.child))for(cl(t,e,n),t=t.sibling;null!==t;)cl(t,e,n),t=t.sibling}var hl=null,dl=!1;function fl(t,e,n){for(n=n.child;null!==n;)pl(t,e,n),n=n.sibling}function pl(t,e,n){if(oe&&"function"===typeof oe.onCommitFiberUnmount)try{oe.onCommitFiberUnmount(ie,n)}catch(s){}switch(n.tag){case 5:Qs||tl(n,e);case 6:var r=hl,i=dl;hl=null,fl(t,e,n),dl=i,null!==(hl=r)&&(dl?(t=hl,n=n.stateNode,8===t.nodeType?t.parentNode.removeChild(n):t.removeChild(n)):hl.removeChild(n.stateNode));break;case 18:null!==hl&&(dl?(t=hl,n=n.stateNode,8===t.nodeType?li(t.parentNode,n):1===t.nodeType&&li(t,n),He(t)):li(hl,n.stateNode));break;case 4:r=hl,i=dl,hl=n.stateNode.containerInfo,dl=!0,fl(t,e,n),hl=r,dl=i;break;case 0:case 11:case 14:case 15:if(!Qs&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(0!==(2&o)||0!==(4&o))&&el(n,e,a),i=i.next}while(i!==r)}fl(t,e,n);break;case 1:if(!Qs&&(tl(n,e),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Su(n,e,s)}fl(t,e,n);break;case 21:fl(t,e,n);break;case 22:1&n.mode?(Qs=(r=Qs)||null!==n.memoizedState,fl(t,e,n),Qs=r):fl(t,e,n);break;default:fl(t,e,n)}}function vl(t){var e=t.updateQueue;if(null!==e){t.updateQueue=null;var n=t.stateNode;null===n&&(n=t.stateNode=new Js),e.forEach((function(e){var r=Pu.bind(null,t,e);n.has(e)||(n.add(e),e.then(r,r))}))}}function yl(t,e){var n=e.deletions;if(null!==n)for(var r=0;ri&&(i=s),r&=~a}if(r=i,10<(r=(120>(r=Qt()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Sl(r/1960))-r)){t.timeoutHandle=ri(ku.bind(null,t,Wl,Vl),r);break}ku(t,Wl,Vl);break;default:throw Error(o(329))}}}return iu(t,Qt()),t.callbackNode===n?ou.bind(null,t):null}function au(t,e){var n=Bl;return t.current.memoizedState.isDehydrated&&(fu(t,e).flags|=256),2!==(t=gu(t,e))&&(e=Wl,Wl=n,null!==e&&su(e)),t}function su(t){null===Wl?Wl=t:Wl.push.apply(Wl,t)}function lu(t,e){for(e&=~Ll,e&=~zl,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0t?16:t,null===Xl)var r=!1;else{if(t=Xl,Xl=null,Kl=0,0!==(6&Pl))throw Error(o(331));var i=Pl;for(Pl|=4,Zs=t.current;null!==Zs;){var a=Zs,s=a.child;if(0!==(16&Zs.flags)){var l=a.deletions;if(null!==l){for(var u=0;uQt()-Hl?fu(t,0):Ll|=n),iu(t,e)}function Cu(t,e){0===e&&(0===(1&t.mode)?e=1:(e=ce,0===(130023424&(ce<<=1))&&(ce=4194304)));var n=eu();null!==(t=jo(t,e))&&(ge(t,e,n),iu(t,n))}function Tu(t){var e=t.memoizedState,n=0;null!==e&&(n=e.retryLane),Cu(t,n)}function Pu(t,e){var n=0;switch(t.tag){case 13:var r=t.stateNode,i=t.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=t.stateNode;break;default:throw Error(o(314))}null!==r&&r.delete(e),Cu(t,n)}function ju(t,e){return Yt(t,e)}function Iu(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Nu(t,e,n,r){return new Iu(t,e,n,r)}function Au(t){return!(!(t=t.prototype)||!t.isReactComponent)}function Du(t,e){var n=t.alternate;return null===n?((n=Nu(t.tag,e,t.key,t.mode)).elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&t.flags,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function Mu(t,e,n,r,i,a){var s=2;if(r=t,"function"===typeof t)Au(t)&&(s=1);else if("string"===typeof t)s=5;else t:switch(t){case _:return Fu(n.children,i,a,e);case E:s=8,i|=8;break;case S:return(t=Nu(12,n,e,2|i)).elementType=S,t.lanes=a,t;case P:return(t=Nu(13,n,e,i)).elementType=P,t.lanes=a,t;case j:return(t=Nu(19,n,e,i)).elementType=j,t.lanes=a,t;case A:return Ru(n,i,a,e);default:if("object"===typeof t&&null!==t)switch(t.$$typeof){case O:s=10;break t;case C:s=9;break t;case T:s=11;break t;case I:s=14;break t;case N:s=16,r=null;break t}throw Error(o(130,null==t?t:typeof t,""))}return(e=Nu(s,n,e,i)).elementType=t,e.type=r,e.lanes=a,e}function Fu(t,e,n,r){return(t=Nu(7,t,r,e)).lanes=n,t}function Ru(t,e,n,r){return(t=Nu(22,t,r,e)).elementType=A,t.lanes=n,t.stateNode={isHidden:!1},t}function zu(t,e,n){return(t=Nu(6,t,null,e)).lanes=n,t}function Lu(t,e,n){return(e=Nu(4,null!==t.children?t.children:[],t.key,e)).lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function Bu(t,e,n,r,i){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ye(0),this.expirationTimes=ye(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ye(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Wu(t,e,n,r,i,o,a,s,l){return t=new Bu(t,e,n,s,l),1===e?(e=1,!0===o&&(e|=8)):e=0,o=Nu(3,null,null,e),t.current=o,o.stateNode=t,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},No(o),t}function Hu(t){if(!t)return Ci;t:{if(Ht(t=t._reactInternals)!==t||1!==t.tag)throw Error(o(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break t;case 1:if(Ni(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break t}}e=e.return}while(null!==e);throw Error(o(171))}if(1===t.tag){var n=t.type;if(Ni(n))return Mi(t,n,e)}return e}function Uu(t,e,n,r,i,o,a,s,l){return(t=Wu(n,r,!0,t,0,o,0,s,l)).context=Hu(null),n=t.current,(o=Do(r=eu(),i=nu(n))).callback=void 0!==e&&null!==e?e:null,Mo(n,o,i),t.current.lanes=i,ge(t,i,r),iu(t,r),t}function Vu(t,e,n,r){var i=e.current,o=eu(),a=nu(i);return n=Hu(n),null===e.context?e.context=n:e.pendingContext=n,(e=Do(o,a)).payload={element:t},null!==(r=void 0===r?null:r)&&(e.callback=r),null!==(t=Mo(i,e,a))&&(ru(t,i,a,o),Fo(t,i,a)),a}function qu(t){return(t=t.current).child?(t.child.tag,t.child.stateNode):null}function Gu(t,e){if(null!==(t=t.memoizedState)&&null!==t.dehydrated){var n=t.retryLane;t.retryLane=0!==n&&n>>((3&e)<<3)&255;return a}}t.exports=r},5633:function(t,e,n){for(var r=n(8855),i=[],o={},a=0;a<256;a++)i[a]=(a+256).toString(16).substr(1),o[i[a]]=a;function s(t,e){var n=e||0,r=i;return r[t[n++]]+r[t[n++]]+r[t[n++]]+r[t[n++]]+"-"+r[t[n++]]+r[t[n++]]+"-"+r[t[n++]]+r[t[n++]]+"-"+r[t[n++]]+r[t[n++]]+"-"+r[t[n++]]+r[t[n++]]+r[t[n++]]+r[t[n++]]+r[t[n++]]+r[t[n++]]}var l=r(),u=[1|l[0],l[1],l[2],l[3],l[4],l[5]],c=16383&(l[6]<<8|l[7]),h=0,d=0;function f(t,e,n){var i=e&&n||0;"string"==typeof t&&(e="binary"==t?new Array(16):null,t=null);var o=(t=t||{}).random||(t.rng||r)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e)for(var a=0;a<16;a++)e[i+a]=o[a];return e||s(o)}var p=f;p.v1=function(t,e,n){var r=e&&n||0,i=e||[],o=void 0!==(t=t||{}).clockseq?t.clockseq:c,a=void 0!==t.msecs?t.msecs:(new Date).getTime(),l=void 0!==t.nsecs?t.nsecs:d+1,f=a-h+(l-d)/1e4;if(f<0&&void 0===t.clockseq&&(o=o+1&16383),(f<0||a>h)&&void 0===t.nsecs&&(l=0),l>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");h=a,d=l,c=o;var p=(1e4*(268435455&(a+=122192928e5))+l)%4294967296;i[r++]=p>>>24&255,i[r++]=p>>>16&255,i[r++]=p>>>8&255,i[r++]=255&p;var v=a/4294967296*1e4&268435455;i[r++]=v>>>8&255,i[r++]=255&v,i[r++]=v>>>24&15|16,i[r++]=v>>>16&255,i[r++]=o>>>8|128,i[r++]=255&o;for(var y=t.node||u,g=0;g<6;g++)i[r+g]=y[g];return e||s(i)},p.v4=f,p.parse=function(t,e,n){var r=e&&n||0,i=0;for(e=e||[],t.toLowerCase().replace(/[0-9a-f]{2}/g,(function(t){i<16&&(e[r+i++]=o[t])}));i<16;)e[r+i++]=0;return e},p.unparse=s,t.exports=p},6374:function(t,e,n){"use strict";var r=n(2791),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(t,e,n){var r,o={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==e.key&&(u=""+e.key),void 0!==e.ref&&(c=e.ref),e)a.call(e,r)&&!l.hasOwnProperty(r)&&(o[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps)void 0===o[r]&&(o[r]=e[r]);return{$$typeof:i,type:t,key:u,ref:c,props:o,_owner:s.current}}e.Fragment=o,e.jsx=u,e.jsxs=u},9117:function(t,e){"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.iterator;var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,y={};function g(t,e,n){this.props=t,this.context=e,this.refs=y,this.updater=n||p}function m(){}function b(t,e,n){this.props=t,this.context=e,this.refs=y,this.updater=n||p}g.prototype.isReactComponent={},g.prototype.setState=function(t,e){if("object"!==typeof t&&"function"!==typeof t&&null!=t)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")},g.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},m.prototype=g.prototype;var w=b.prototype=new m;w.constructor=b,v(w,g.prototype),w.isPureReactComponent=!0;var x=Array.isArray,k=Object.prototype.hasOwnProperty,_={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function S(t,e,r){var i,o={},a=null,s=null;if(null!=e)for(i in void 0!==e.ref&&(s=e.ref),void 0!==e.key&&(a=""+e.key),e)k.call(e,i)&&!E.hasOwnProperty(i)&&(o[i]=e[i]);var l=arguments.length-2;if(1===l)o.children=r;else if(1>>1,i=t[r];if(!(0>>1;ro(l,n))uo(c,l)?(t[r]=c,t[u]=n,r=u):(t[r]=l,t[s]=n,r=s);else{if(!(uo(c,n)))break t;t[r]=c,t[u]=n,r=u}}}return e}function o(t,e){var n=t.sortIndex-e.sortIndex;return 0!==n?n:t.id-e.id}if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;e.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var u=[],c=[],h=1,d=null,f=3,p=!1,v=!1,y=!1,g="function"===typeof setTimeout?setTimeout:null,m="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function w(t){for(var e=r(c);null!==e;){if(null===e.callback)i(c);else{if(!(e.startTime<=t))break;i(c),e.sortIndex=e.expirationTime,n(u,e)}e=r(c)}}function x(t){if(y=!1,w(t),!v)if(null!==r(u))v=!0,A(k);else{var e=r(c);null!==e&&D(x,e.startTime-t)}}function k(t,n){v=!1,y&&(y=!1,m(O),O=-1),p=!0;var o=f;try{for(w(n),d=r(u);null!==d&&(!(d.expirationTime>n)||t&&!P());){var a=d.callback;if("function"===typeof a){d.callback=null,f=d.priorityLevel;var s=a(d.expirationTime<=n);n=e.unstable_now(),"function"===typeof s?d.callback=s:d===r(u)&&i(u),w(n)}else i(u);d=r(u)}if(null!==d)var l=!0;else{var h=r(c);null!==h&&D(x,h.startTime-n),l=!1}return l}finally{d=null,f=o,p=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var _,E=!1,S=null,O=-1,C=5,T=-1;function P(){return!(e.unstable_now()-Tt||125a?(t.sortIndex=o,n(c,t),null===r(u)&&t===r(c)&&(y?(m(O),O=-1):y=!0,D(x,o-a))):(t.sortIndex=s,n(u,t),v||p||(v=!0,A(k))),t},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(t){var e=f;return function(){var n=f;f=e;try{return t.apply(this,arguments)}finally{f=n}}}},5296:function(t,e,n){"use strict";t.exports=n(6813)},8637:function(t,e,n){"use strict";var r=n(2791);var i="function"===typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t===1/e)||t!==t&&e!==e},o=r.useSyncExternalStore,a=r.useRef,s=r.useEffect,l=r.useMemo,u=r.useDebugValue;e.useSyncExternalStoreWithSelector=function(t,e,n,r,c){var h=a(null);if(null===h.current){var d={hasValue:!1,value:null};h.current=d}else d=h.current;h=l((function(){function t(t){if(!s){if(s=!0,o=t,t=r(t),void 0!==c&&d.hasValue){var e=d.value;if(c(e,t))return a=e}return a=t}if(e=a,i(o,t))return e;var n=r(t);return void 0!==c&&c(e,n)?e:(o=t,a=n)}var o,a,s=!1,l=void 0===n?null:n;return[function(){return t(e())},null===l?void 0:function(){return t(l())}]}),[e,n,r,c]);var f=o(t,h[0],h[1]);return s((function(){d.hasValue=!0,d.value=f}),[f]),u(f),f}},7995:function(t,e,n){"use strict";t.exports=n(8637)},4876:function(t,e,n){var r=n(8416).default;!function(t){function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var i="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{};function o(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var a={exports:{}},s=function(t){return t&&t.Math===Math&&t},l=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof i&&i)||function(){return this}()||i||Function("return this")(),u=function(t){try{return!!t()}catch(e){return!0}},c=!u((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),h=c,d=Function.prototype,f=d.apply,p=d.call,v="object"==typeof Reflect&&Reflect.apply||(h?p.bind(f):function(){return p.apply(f,arguments)}),y=c,g=Function.prototype,m=g.call,b=y&&g.bind.bind(m,m),w=y?b:function(t){return function(){return m.apply(t,arguments)}},x=w,k=x({}.toString),_=x("".slice),E=function(t){return _(k(t),8,-1)},S=E,O=w,C=function(t){if("Function"===S(t))return O(t)},T="object"==typeof document&&document.all,P="undefined"==typeof T&&void 0!==T,j={all:T,IS_HTMLDDA:P},I=j,N=I.all,A=I.IS_HTMLDDA?function(t){return"function"==typeof t||t===N}:function(t){return"function"==typeof t},D={},M=!u((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),F=c,R=Function.prototype.call,z=F?R.bind(R):function(){return R.apply(R,arguments)},L={},B={}.propertyIsEnumerable,W=Object.getOwnPropertyDescriptor,H=W&&!B.call({1:2},1);L.f=H?function(t){var e=W(this,t);return!!e&&e.enumerable}:B;var U,V,q=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},G=u,Y=E,$=Object,X=w("".split),K=G((function(){return!$("z").propertyIsEnumerable(0)}))?function(t){return"String"===Y(t)?X(t,""):$(t)}:$,Q=function(t){return null===t||void 0===t},J=Q,Z=TypeError,tt=function(t){if(J(t))throw new Z("Can't call method on "+t);return t},et=K,nt=tt,rt=function(t){return et(nt(t))},it=A,ot=j,at=ot.all,st=ot.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:it(t)||t===at}:function(t){return"object"==typeof t?null!==t:it(t)},lt={},ut=lt,ct=l,ht=A,dt=function(t){return ht(t)?t:void 0},ft=function(t,e){return arguments.length<2?dt(ut[t])||dt(ct[t]):ut[t]&&ut[t][e]||ct[t]&&ct[t][e]},pt=w({}.isPrototypeOf),vt="undefined"!=typeof navigator&&String(navigator.userAgent)||"",yt=l,gt=vt,mt=yt.process,bt=yt.Deno,wt=mt&&mt.versions||bt&&bt.version,xt=wt&&wt.v8;xt&&(V=(U=xt.split("."))[0]>0&&U[0]<4?1:+(U[0]+U[1])),!V&>&&(!(U=gt.match(/Edge\/(\d+)/))||U[1]>=74)&&(U=gt.match(/Chrome\/(\d+)/))&&(V=+U[1]);var kt=V,_t=kt,Et=u,St=l.String,Ot=!!Object.getOwnPropertySymbols&&!Et((function(){var t=Symbol("symbol detection");return!St(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&_t&&_t<41})),Ct=Ot&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Tt=ft,Pt=A,jt=pt,It=Object,Nt=Ct?function(t){return"symbol"==typeof t}:function(t){var e=Tt("Symbol");return Pt(e)&&jt(e.prototype,It(t))},At=String,Dt=function(t){try{return At(t)}catch(e){return"Object"}},Mt=A,Ft=Dt,Rt=TypeError,zt=function(t){if(Mt(t))return t;throw new Rt(Ft(t)+" is not a function")},Lt=zt,Bt=Q,Wt=function(t,e){var n=t[e];return Bt(n)?void 0:Lt(n)},Ht=z,Ut=A,Vt=st,qt=TypeError,Gt=function(t,e){var n,r;if("string"===e&&Ut(n=t.toString)&&!Vt(r=Ht(n,t)))return r;if(Ut(n=t.valueOf)&&!Vt(r=Ht(n,t)))return r;if("string"!==e&&Ut(n=t.toString)&&!Vt(r=Ht(n,t)))return r;throw new qt("Can't convert object to primitive value")},Yt={exports:{}},$t=!0,Xt=l,Kt=Object.defineProperty,Qt=function(t,e){try{Kt(Xt,t,{value:e,configurable:!0,writable:!0})}catch(n){Xt[t]=e}return e},Jt="__core-js_shared__",Zt=l[Jt]||Qt(Jt,{}),te=Zt;(Yt.exports=function(t,e){return te[t]||(te[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.33.2",mode:"pure",copyright:"\xa9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.2/LICENSE",source:"https://github.com/zloirock/core-js"});var ee=Yt.exports,ne=tt,re=Object,ie=function(t){return re(ne(t))},oe=ie,ae=w({}.hasOwnProperty),se=Object.hasOwn||function(t,e){return ae(oe(t),e)},le=w,ue=0,ce=Math.random(),he=le(1..toString),de=function(t){return"Symbol("+(void 0===t?"":t)+")_"+he(++ue+ce,36)},fe=ee,pe=se,ve=de,ye=Ot,ge=Ct,me=l.Symbol,be=fe("wks"),we=ge?me.for||me:me&&me.withoutSetter||ve,xe=function(t){return pe(be,t)||(be[t]=ye&&pe(me,t)?me[t]:we("Symbol."+t)),be[t]},ke=z,_e=st,Ee=Nt,Se=Wt,Oe=Gt,Ce=TypeError,Te=xe("toPrimitive"),Pe=function(t,e){if(!_e(t)||Ee(t))return t;var n,r=Se(t,Te);if(r){if(void 0===e&&(e="default"),n=ke(r,t,e),!_e(n)||Ee(n))return n;throw new Ce("Can't convert object to primitive value")}return void 0===e&&(e="number"),Oe(t,e)},je=Nt,Ie=function(t){var e=Pe(t,"string");return je(e)?e:e+""},Ne=st,Ae=l.document,De=Ne(Ae)&&Ne(Ae.createElement),Me=function(t){return De?Ae.createElement(t):{}},Fe=u,Re=Me,ze=!M&&!Fe((function(){return 7!==Object.defineProperty(Re("div"),"a",{get:function(){return 7}}).a})),Le=M,Be=z,We=L,He=q,Ue=rt,Ve=Ie,qe=se,Ge=ze,Ye=Object.getOwnPropertyDescriptor;D.f=Le?Ye:function(t,e){if(t=Ue(t),e=Ve(e),Ge)try{return Ye(t,e)}catch(n){}if(qe(t,e))return He(!Be(We.f,t,e),t[e])};var $e=u,Xe=A,Ke=/#|\.prototype\./,Qe=function(t,e){var n=Ze[Je(t)];return n===en||n!==tn&&(Xe(e)?$e(e):!!e)},Je=Qe.normalize=function(t){return String(t).replace(Ke,".").toLowerCase()},Ze=Qe.data={},tn=Qe.NATIVE="N",en=Qe.POLYFILL="P",nn=Qe,rn=zt,on=c,an=C(C.bind),sn=function(t,e){return rn(t),void 0===e?t:on?an(t,e):function(){return t.apply(e,arguments)}},ln={},un=u,cn=M&&un((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),hn=st,dn=String,fn=TypeError,pn=function(t){if(hn(t))return t;throw new fn(dn(t)+" is not an object")},vn=M,yn=ze,gn=cn,mn=pn,bn=Ie,wn=TypeError,xn=Object.defineProperty,kn=Object.getOwnPropertyDescriptor,_n="enumerable",En="configurable",Sn="writable";ln.f=vn?gn?function(t,e,n){if(mn(t),e=bn(e),mn(n),"function"===typeof t&&"prototype"===e&&"value"in n&&Sn in n&&!n[Sn]){var r=kn(t,e);r&&r[Sn]&&(t[e]=n.value,n={configurable:En in n?n[En]:r[En],enumerable:_n in n?n[_n]:r[_n],writable:!1})}return xn(t,e,n)}:xn:function(t,e,n){if(mn(t),e=bn(e),mn(n),yn)try{return xn(t,e,n)}catch(r){}if("get"in n||"set"in n)throw new wn("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var On=ln,Cn=q,Tn=M?function(t,e,n){return On.f(t,e,Cn(1,n))}:function(t,e,n){return t[e]=n,t},Pn=l,jn=v,In=C,Nn=A,An=D.f,Dn=nn,Mn=lt,Fn=sn,Rn=Tn,zn=se,Ln=function(t){var e=function e(n,r,i){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,i)}return jn(t,this,arguments)};return e.prototype=t.prototype,e},Bn=function(t,e){var n,r,i,o,a,s,l,u,c,h=t.target,d=t.global,f=t.stat,p=t.proto,v=d?Pn:f?Pn[h]:(Pn[h]||{}).prototype,y=d?Mn:Mn[h]||Rn(Mn,h,{})[h],g=y.prototype;for(o in e)r=!(n=Dn(d?o:h+(f?".":"#")+o,t.forced))&&v&&zn(v,o),s=y[o],r&&(l=t.dontCallGetSet?(c=An(v,o))&&c.value:v[o]),a=r&&l?l:e[o],r&&typeof s==typeof a||(u=t.bind&&r?Fn(a,Pn):t.wrap&&r?Ln(a):p&&Nn(a)?In(a):a,(t.sham||a&&a.sham||s&&s.sham)&&Rn(u,"sham",!0),Rn(y,o,u),p&&(zn(Mn,i=h+"Prototype")||Rn(Mn,i,{}),Rn(Mn[i],o,a),t.real&&g&&(n||!g[o])&&Rn(g,o,a)))},Wn=Bn,Hn=M,Un=ln.f;Wn({target:"Object",stat:!0,forced:Object.defineProperty!==Un,sham:!Hn},{defineProperty:Un});var Vn=lt.Object,qn=a.exports=function(t,e,n){return Vn.defineProperty(t,e,n)};Vn.defineProperty.sham&&(qn.sham=!0);var Gn=a.exports,Yn=Gn,$n=o(Yn),Xn=E,Kn=Array.isArray||function(t){return"Array"===Xn(t)},Qn=Math.ceil,Jn=Math.floor,Zn=Math.trunc||function(t){var e=+t;return(e>0?Jn:Qn)(e)},tr=function(t){var e=+t;return e!==e||0===e?0:Zn(e)},er=tr,nr=Math.min,rr=function(t){return t>0?nr(er(t),9007199254740991):0},ir=function(t){return rr(t.length)},or=TypeError,ar=9007199254740991,sr=function(t){if(t>ar)throw or("Maximum allowed index exceeded");return t},lr=Ie,ur=ln,cr=q,hr=function(t,e,n){var r=lr(e);r in t?ur.f(t,r,cr(0,n)):t[r]=n},dr=xe("toStringTag"),fr={};fr[dr]="z";var pr="[object z]"===String(fr),vr=pr,yr=A,gr=E,mr=xe("toStringTag"),br=Object,wr="Arguments"===gr(function(){return arguments}()),xr=function(t,e){try{return t[e]}catch(n){}},kr=vr?gr:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=xr(e=br(t),mr))?n:wr?gr(e):"Object"===(r=gr(e))&&yr(e.callee)?"Arguments":r},_r=A,Er=Zt,Sr=w(Function.toString);_r(Er.inspectSource)||(Er.inspectSource=function(t){return Sr(t)});var Or=Er.inspectSource,Cr=w,Tr=u,Pr=A,jr=kr,Ir=Or,Nr=function(){},Ar=[],Dr=ft("Reflect","construct"),Mr=/^\s*(?:class|function)\b/,Fr=Cr(Mr.exec),Rr=!Mr.test(Nr),zr=function(t){if(!Pr(t))return!1;try{return Dr(Nr,Ar,t),!0}catch(e){return!1}},Lr=function(t){if(!Pr(t))return!1;switch(jr(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Rr||!!Fr(Mr,Ir(t))}catch(e){return!0}};Lr.sham=!0;var Br=!Dr||Tr((function(){var t;return zr(zr.call)||!zr(Object)||!zr((function(){t=!0}))||t}))?Lr:zr,Wr=Kn,Hr=Br,Ur=st,Vr=xe("species"),qr=Array,Gr=function(t){var e;return Wr(t)&&(e=t.constructor,(Hr(e)&&(e===qr||Wr(e.prototype))||Ur(e)&&null===(e=e[Vr]))&&(e=void 0)),void 0===e?qr:e},Yr=function(t,e){return new(Gr(t))(0===e?0:e)},$r=u,Xr=kt,Kr=xe("species"),Qr=function(t){return Xr>=51||!$r((function(){var e=[];return(e.constructor={})[Kr]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Jr=Bn,Zr=u,ti=Kn,ei=st,ni=ie,ri=ir,ii=sr,oi=hr,ai=Yr,si=Qr,li=kt,ui=xe("isConcatSpreadable"),ci=li>=51||!Zr((function(){var t=[];return t[ui]=!1,t.concat()[0]!==t})),hi=function(t){if(!ei(t))return!1;var e=t[ui];return void 0!==e?!!e:ti(t)},di=!ci||!si("concat");Jr({target:"Array",proto:!0,arity:1,forced:di},{concat:function(t){var e,n,r,i,o,a=ni(this),s=ai(a,0),l=0;for(e=-1,r=arguments.length;es;)if((i=o[s++])!==i)return!0}else for(;a>s;s++)if((t||s in o)&&o[s]===n)return t||s||0;return!t&&-1}},Si={includes:Ei(!0),indexOf:Ei(!1)},Oi={},Ci=w,Ti=se,Pi=rt,ji=Si.indexOf,Ii=Oi,Ni=Ci([].push),Ai=function(t,e){var n,r=Pi(t),i=0,o=[];for(n in r)!Ti(Ii,n)&&Ti(r,n)&&Ni(o,n);for(;e.length>i;)Ti(r,n=e[i++])&&(~ji(o,n)||Ni(o,n));return o},Di=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Mi=Ai,Fi=Di,Ri=Object.keys||function(t){return Mi(t,Fi)},zi=M,Li=cn,Bi=ln,Wi=pn,Hi=rt,Ui=Ri;yi.f=zi&&!Li?Object.defineProperties:function(t,e){Wi(t);for(var n,r=Hi(e),i=Ui(e),o=i.length,a=0;o>a;)Bi.f(t,n=i[a++],r[n]);return t};var Vi,qi=ft("document","documentElement"),Gi=de,Yi=ee("keys"),$i=function(t){return Yi[t]||(Yi[t]=Gi(t))},Xi=pn,Ki=yi,Qi=Di,Ji=Oi,Zi=qi,to=Me,eo=">",no="<",ro="prototype",io="script",oo=$i("IE_PROTO"),ao=function(){},so=function(t){return no+io+eo+t+no+"/"+io+eo},lo=function(t){t.write(so("")),t.close();var e=t.parentWindow.Object;return t=null,e},uo=function(){var t,e=to("iframe"),n="java"+io+":";return e.style.display="none",Zi.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(so("document.F=Object")),t.close(),t.F},co=function(){try{Vi=new ActiveXObject("htmlfile")}catch(e){}co="undefined"!=typeof document?document.domain&&Vi?lo(Vi):uo():lo(Vi);for(var t=Qi.length;t--;)delete co[ro][Qi[t]];return co()};Ji[oo]=!0;var ho=Object.create||function(t,e){var n;return null!==t?(ao[ro]=Xi(t),n=new ao,ao[ro]=null,n[oo]=t):n=co(),void 0===e?n:Ki.f(n,e)},fo={},po=Ai,vo=Di.concat("length","prototype");fo.f=Object.getOwnPropertyNames||function(t){return po(t,vo)};var yo={},go=wi,mo=ir,bo=hr,wo=Array,xo=Math.max,ko=function(t,e,n){for(var r=mo(t),i=go(e,r),o=go(void 0===n?r:n,r),a=wo(xo(o-i,0)),s=0;im;m++)if((s||m in v)&&(f=y(d=v[m],m,p),t))if(e)w[m]=f;else if(f)switch(t){case 3:return!0;case 5:return d;case 6:return m;case 2:Ca(w,d)}else switch(t){case 4:return!1;case 7:Ca(w,d)}return o?-1:r||i?i:w}},Pa={forEach:Ta(0),map:Ta(1),filter:Ta(2),some:Ta(3),every:Ta(4),find:Ta(5),findIndex:Ta(6),filterReject:Ta(7)},ja=Bn,Ia=l,Na=z,Aa=w,Da=M,Ma=Ot,Fa=u,Ra=se,za=pt,La=pn,Ba=rt,Wa=Ie,Ha=vi,Ua=q,Va=ho,qa=Ri,Ga=fo,Ya=yo,$a=Po,Xa=D,Ka=ln,Qa=yi,Ja=L,Za=Io,ts=Ao,es=ee,ns=$i,rs=Oi,is=de,os=xe,as=Do,ss=Uo,ls=$o,us=ra,cs=xa,hs=Pa.forEach,ds=ns("hidden"),fs="Symbol",ps="prototype",vs=cs.set,ys=cs.getterFor(fs),gs=Object[ps],ms=Ia.Symbol,bs=ms&&ms[ps],ws=Ia.RangeError,xs=Ia.TypeError,ks=Ia.QObject,_s=Xa.f,Es=Ka.f,Ss=Ya.f,Os=Ja.f,Cs=Aa([].push),Ts=es("symbols"),Ps=es("op-symbols"),js=es("wks"),Is=!ks||!ks[ps]||!ks[ps].findChild,Ns=function(t,e,n){var r=_s(gs,e);r&&delete gs[e],Es(t,e,n),r&&t!==gs&&Es(gs,e,r)},As=Da&&Fa((function(){return 7!==Va(Es({},"a",{get:function(){return Es(this,"a",{value:7}).a}})).a}))?Ns:Es,Ds=function(t,e){var n=Ts[t]=Va(bs);return vs(n,{type:fs,tag:t,description:e}),Da||(n.description=e),n},Ms=function(t,e,n){t===gs&&Ms(Ps,e,n),La(t);var r=Wa(e);return La(n),Ra(Ts,r)?(n.enumerable?(Ra(t,ds)&&t[ds][r]&&(t[ds][r]=!1),n=Va(n,{enumerable:Ua(0,!1)})):(Ra(t,ds)||Es(t,ds,Ua(1,{})),t[ds][r]=!0),As(t,r,n)):Es(t,r,n)},Fs=function(t,e){La(t);var n=Ba(e),r=qa(n).concat(Ws(n));return hs(r,(function(e){Da&&!Na(zs,n,e)||Ms(t,e,n[e])})),t},Rs=function(t,e){return void 0===e?Va(t):Fs(Va(t),e)},zs=function(t){var e=Wa(t),n=Na(Os,this,e);return!(this===gs&&Ra(Ts,e)&&!Ra(Ps,e))&&(!(n||!Ra(this,e)||!Ra(Ts,e)||Ra(this,ds)&&this[ds][e])||n)},Ls=function(t,e){var n=Ba(t),r=Wa(e);if(n!==gs||!Ra(Ts,r)||Ra(Ps,r)){var i=_s(n,r);return!i||!Ra(Ts,r)||Ra(n,ds)&&n[ds][r]||(i.enumerable=!0),i}},Bs=function(t){var e=Ss(Ba(t)),n=[];return hs(e,(function(t){Ra(Ts,t)||Ra(rs,t)||Cs(n,t)})),n},Ws=function(t){var e=t===gs,n=Ss(e?Ps:Ba(t)),r=[];return hs(n,(function(t){!Ra(Ts,t)||e&&!Ra(gs,t)||Cs(r,Ts[t])})),r};Ma||(ms=function(){if(za(bs,this))throw new xs("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?Ha(arguments[0]):void 0,e=is(t),n=function t(n){var r=void 0===this?Ia:this;r===gs&&Na(t,Ps,n),Ra(r,ds)&&Ra(r[ds],e)&&(r[ds][e]=!1);var i=Ua(1,n);try{As(r,e,i)}catch(o){if(!(o instanceof ws))throw o;Ns(r,e,i)}};return Da&&Is&&As(gs,e,{configurable:!0,set:n}),Ds(e,t)},Za(bs=ms[ps],"toString",(function(){return ys(this).tag})),Za(ms,"withoutSetter",(function(t){return Ds(is(t),t)})),Ja.f=zs,Ka.f=Ms,Qa.f=Fs,Xa.f=Ls,Ga.f=Ya.f=Bs,$a.f=Ws,as.f=function(t){return Ds(os(t),t)},Da&&ts(bs,"description",{configurable:!0,get:function(){return ys(this).description}})),ja({global:!0,constructor:!0,wrap:!0,forced:!Ma,sham:!Ma},{Symbol:ms}),hs(qa(js),(function(t){ss(t)})),ja({target:fs,stat:!0,forced:!Ma},{useSetter:function(){Is=!0},useSimple:function(){Is=!1}}),ja({target:"Object",stat:!0,forced:!Ma,sham:!Da},{create:Rs,defineProperty:Ms,defineProperties:Fs,getOwnPropertyDescriptor:Ls}),ja({target:"Object",stat:!0,forced:!Ma},{getOwnPropertyNames:Bs}),ls(),us(ms,fs),rs[ds]=!0;var Hs=Ot&&!!Symbol.for&&!!Symbol.keyFor,Us=Bn,Vs=ft,qs=se,Gs=vi,Ys=ee,$s=Hs,Xs=Ys("string-to-symbol-registry"),Ks=Ys("symbol-to-string-registry");Us({target:"Symbol",stat:!0,forced:!$s},{for:function(t){var e=Gs(t);if(qs(Xs,e))return Xs[e];var n=Vs("Symbol")(e);return Xs[e]=n,Ks[n]=e,n}});var Qs=Bn,Js=se,Zs=Nt,tl=Dt,el=Hs,nl=ee("symbol-to-string-registry");Qs({target:"Symbol",stat:!0,forced:!el},{keyFor:function(t){if(!Zs(t))throw new TypeError(tl(t)+" is not a symbol");if(Js(nl,t))return nl[t]}});var rl=w([].slice),il=Kn,ol=A,al=E,sl=vi,ll=w([].push),ul=Bn,cl=ft,hl=v,dl=z,fl=w,pl=u,vl=A,yl=Nt,gl=rl,ml=function(t){if(ol(t))return t;if(il(t)){for(var e=t.length,n=[],r=0;r=e.length)return t.target=void 0,ic(void 0,!0);switch(t.kind){case"keys":return ic(n,!1);case"values":return ic(e[n],!1)}return ic([n,e[n]],!1)}),"values"),ec.Arguments=ec.Array;var lc={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},uc=l,cc=kr,hc=Tn,dc=Gl,fc=xe("toStringTag");for(var pc in lc){var vc=uc[pc],yc=vc&&vc.prototype;yc&&cc(yc)!==fc&&hc(yc,fc,pc),dc[pc]=dc.Array}var gc=ql,mc=xe,bc=ln.f,wc=mc("metadata"),xc=Function.prototype;void 0===xc[wc]&&bc(xc,wc,{value:null}),Uo("asyncDispose"),Uo("dispose"),Uo("metadata");var kc=gc,_c=w,Ec=ft("Symbol"),Sc=Ec.keyFor,Oc=_c(Ec.prototype.valueOf),Cc=Ec.isRegisteredSymbol||function(t){try{return void 0!==Sc(Oc(t))}catch(e){return!1}};Bn({target:"Symbol",stat:!0},{isRegisteredSymbol:Cc});for(var Tc=ee,Pc=ft,jc=w,Ic=Nt,Nc=xe,Ac=Pc("Symbol"),Dc=Ac.isWellKnownSymbol,Mc=Pc("Object","getOwnPropertyNames"),Fc=jc(Ac.prototype.valueOf),Rc=Tc("wks"),zc=0,Lc=Mc(Ac),Bc=Lc.length;zc=s?t?"":void 0:(r=Kc(o,a))<55296||r>56319||a+1===s||(i=Kc(o,a+1))<56320||i>57343?t?Xc(o,a):r:t?Qc(o,a,a+2):i-56320+(r-55296<<10)+65536}},Zc=(Jc(!1),Jc(!0)),th=vi,eh=xa,nh=Ju,rh=Zu,ih="String Iterator",oh=eh.set,ah=eh.getterFor(ih);nh(String,"String",(function(t){oh(this,{type:ih,string:th(t),index:0})}),(function(){var t,e=ah(this),n=e.string,r=e.index;return r>=n.length?rh(void 0,!0):(t=Zc(n,r),e.index+=t.length,rh(t,!1))}));var sh=Do.f("iterator"),lh=sh,uh=o(lh);function ch(t){return ch="function"==typeof Vc&&"symbol"==typeof uh?function(t){return typeof t}:function(t){return t&&"function"==typeof Vc&&t.constructor===Vc&&t!==Vc.prototype?"symbol":typeof t},ch(t)}var hh=o(Do.f("toPrimitive"));function dh(t,e){if("object"!==ch(t)||null===t)return t;var n=t[hh];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==ch(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function fh(t){var e=dh(t,"string");return"symbol"===ch(e)?e:String(e)}function ph(t,e){for(var n=0;n=0:s>l;l+=u)l in a&&(i=n(i,a[l],l,o));return i}},qh={left:Vh(!1),right:Vh(!0)},Gh=u,Yh=function(t,e){var n=[][t];return!!n&&Gh((function(){n.call(null,e||function(){return 1},1)}))},$h="process"===E(l.process),Xh=Bn,Kh=qh.left,Qh=Yh,Jh=kt,Zh=!$h&&Jh>79&&Jh<83||!Qh("reduce");Xh({target:"Array",proto:!0,forced:Zh},{reduce:function(t){var e=arguments.length;return Kh(this,t,e,e>1?arguments[1]:void 0)}});var td=Nh("Array","reduce"),ed=pt,nd=td,rd=Array.prototype,id=o((function(t){var e=t.reduce;return t===rd||ed(rd,t)&&e===rd.reduce?nd:e})),od=Bn,ad=Pa.filter,sd=Qr("filter");od({target:"Array",proto:!0,forced:!sd},{filter:function(t){return ad(this,t,arguments.length>1?arguments[1]:void 0)}});var ld=Nh("Array","filter"),ud=pt,cd=ld,hd=Array.prototype,dd=o((function(t){var e=t.filter;return t===hd||ud(hd,t)&&e===hd.filter?cd:e})),fd=Bn,pd=Pa.map,vd=Qr("map");fd({target:"Array",proto:!0,forced:!vd},{map:function(t){return pd(this,t,arguments.length>1?arguments[1]:void 0)}});var yd=Nh("Array","map"),gd=pt,md=yd,bd=Array.prototype,wd=o((function(t){var e=t.map;return t===bd||gd(bd,t)&&e===bd.map?md:e})),xd=Kn,kd=ir,_d=sr,Ed=sn,Sd=function t(e,n,r,i,o,a,s,l){for(var u,c=o,h=0,d=!!s&&Ed(s,l);h0&&xd(u)?c=t(e,n,u,kd(u),c,a-1)-1:(_d(c+1),e[c]=u),c++),h++;return c},Od=zt,Cd=ie,Td=ir,Pd=Yr;Bn({target:"Array",proto:!0},{flatMap:function(t){var e,n=Cd(this),r=Td(n);return Od(t),(e=Pd(n,0)).length=Sd(e,n,n,r,0,1,t,arguments.length>1?arguments[1]:void 0),e}});var jd=Nh("Array","flatMap"),Id=pt,Nd=jd,Ad=Array.prototype,Dd=o((function(t){var e=t.flatMap;return t===Ad||Id(Ad,t)&&e===Ad.flatMap?Nd:e}));function Md(t){return new Rd(t)}var Fd=function(){function t(n,r,i){var o,a,s;e(this,t),yh(this,"_listeners",{add:zh(o=this._add).call(o,this),remove:zh(a=this._remove).call(a,this),update:zh(s=this._update).call(s,this)}),this._source=n,this._transformers=r,this._target=i}return vh(t,[{key:"all",value:function(){return this._target.update(this._transformItems(this._source.get())),this}},{key:"start",value:function(){return this._source.on("add",this._listeners.add),this._source.on("remove",this._listeners.remove),this._source.on("update",this._listeners.update),this}},{key:"stop",value:function(){return this._source.off("add",this._listeners.add),this._source.off("remove",this._listeners.remove),this._source.off("update",this._listeners.update),this}},{key:"_transformItems",value:function(t){var e;return id(e=this._transformers).call(e,(function(t,e){return e(t)}),t)}},{key:"_add",value:function(t,e){null!=e&&this._target.add(this._transformItems(this._source.get(e.items)))}},{key:"_update",value:function(t,e){null!=e&&this._target.update(this._transformItems(this._source.get(e.items)))}},{key:"_remove",value:function(t,e){null!=e&&this._target.remove(this._transformItems(e.oldData))}}]),t}(),Rd=function(){function t(n){e(this,t),yh(this,"_transformers",[]),this._source=n}return vh(t,[{key:"filter",value:function(t){return this._transformers.push((function(e){return dd(e).call(e,t)})),this}},{key:"map",value:function(t){return this._transformers.push((function(e){return wd(e).call(e,t)})),this}},{key:"flatMap",value:function(t){return this._transformers.push((function(e){return Dd(e).call(e,t)})),this}},{key:"to",value:function(t){return new Fd(this._source,this._transformers,t)}}]),t}(),zd=z,Ld=pn,Bd=Wt,Wd=function(t,e,n){var r,i;Ld(t);try{if(!(r=Bd(t,"return"))){if("throw"===e)throw n;return n}r=zd(r,t)}catch(jT){i=!0,r=jT}if("throw"===e)throw n;if(i)throw r;return Ld(r),n},Hd=pn,Ud=Wd,Vd=function(t,e,n,r){try{return r?e(Hd(n)[0],n[1]):e(n)}catch(jT){Ud(t,"throw",jT)}},qd=Gl,Gd=xe("iterator"),Yd=Array.prototype,$d=function(t){return void 0!==t&&(qd.Array===t||Yd[Gd]===t)},Xd=kr,Kd=Wt,Qd=Q,Jd=Gl,Zd=xe("iterator"),tf=function(t){if(!Qd(t))return Kd(t,Zd)||Kd(t,"@@iterator")||Jd[Xd(t)]},ef=z,nf=zt,rf=pn,of=Dt,af=tf,sf=TypeError,lf=function(t,e){var n=arguments.length<2?af(t):e;if(nf(n))return rf(ef(n,t));throw new sf(of(t)+" is not iterable")},uf=sn,cf=z,hf=ie,df=Vd,ff=$d,pf=Br,vf=ir,yf=hr,gf=lf,mf=tf,bf=Array,wf=function(t){var e=hf(t),n=pf(this),r=arguments.length,i=r>1?arguments[1]:void 0,o=void 0!==i;o&&(i=uf(i,r>2?arguments[2]:void 0));var a,s,l,u,c,h,d=mf(e),f=0;if(!d||this===bf&&ff(d))for(a=vf(e),s=n?new this(a):bf(a);a>f;f++)h=o?i(e[f],f):e[f],yf(s,f,h);else for(c=(u=gf(e,d)).next,s=n?new this:[];!(l=cf(c,u)).done;f++)h=o?df(u,i,[l.value,f],!0):l.value,yf(s,f,h);return s.length=f,s},xf=xe("iterator"),kf=!1;try{var _f=0,Ef={next:function(){return{done:!!_f++}},return:function(){kf=!0}};Ef[xf]=function(){return this},Array.from(Ef,(function(){throw 2}))}catch(jT){}var Sf=function(t,e){try{if(!e&&!kf)return!1}catch(jT){return!1}var n=!1;try{var r={};r[xf]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(jT){}return n},Of=Bn,Cf=wf,Tf=!Sf((function(t){Array.from(t)}));Of({target:"Array",stat:!0,forced:Tf},{from:Cf});var Pf=lt.Array.from,jf=o(Pf),If=tf,Nf=o(If),Af=o(If);Bn({target:"Array",stat:!0},{isArray:Kn});var Df=lt.Array.isArray,Mf=o(Df);function Ff(t){if(Mf(t))return t}var Rf=M,zf=Kn,Lf=TypeError,Bf=Object.getOwnPropertyDescriptor,Wf=Rf&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(jT){return jT instanceof TypeError}}()?function(t,e){if(zf(t)&&!Bf(t,"length").writable)throw new Lf("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},Hf=Bn,Uf=ie,Vf=ir,qf=Wf,Gf=sr,Yf=u((function(){return 4294967297!==[].push.call({length:4294967296},1)})),$f=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(jT){return jT instanceof TypeError}},Xf=Yf||!$f();Hf({target:"Array",proto:!0,arity:1,forced:Xf},{push:function(t){var e=Uf(this),n=Vf(e),r=arguments.length;Gf(n+r);for(var i=0;it.length)&&(e=t.length);for(var n=0,r=new Array(e);n1?arguments[1]:void 0)};Bn({target:"Array",proto:!0,forced:[].forEach!==tv},{forEach:tv});var ev=Nh("Array","forEach"),nv=kr,rv=se,iv=pt,ov=ev,av=Array.prototype,sv={DOMTokenList:!0,NodeList:!0},lv=function(t){var e=t.forEach;return t===av||iv(av,t)&&e===av.forEach||rv(sv,nv(t))?ov:e},uv=o(lv),cv=Bn,hv=Kn,dv=w([].reverse),fv=[1,2];cv({target:"Array",proto:!0,forced:String(fv)===String(fv.reverse())},{reverse:function(){return hv(this)&&(this.length=this.length),dv(this)}});var pv=Nh("Array","reverse"),vv=pt,yv=pv,gv=Array.prototype,mv=function(t){var e=t.reverse;return t===gv||vv(gv,t)&&e===gv.reverse?yv:e},bv=o(mv),wv=Dt,xv=TypeError,kv=function(t,e){if(!delete t[e])throw new xv("Cannot delete property "+wv(e)+" of "+wv(t))},_v=Bn,Ev=ie,Sv=wi,Ov=tr,Cv=ir,Tv=Wf,Pv=sr,jv=Yr,Iv=hr,Nv=kv,Av=Qr("splice"),Dv=Math.max,Mv=Math.min;_v({target:"Array",proto:!0,forced:!Av},{splice:function(t,e){var n,r,i,o,a,s,l=Ev(this),u=Cv(l),c=Sv(t,u),h=arguments.length;for(0===h?n=r=0:1===h?(n=0,r=u-c):(n=h-2,r=Mv(Dv(Ov(e),0),u-c)),Pv(u+n-r),i=jv(l,r),o=0;ou-r+n;o--)Nv(l,o-1)}else if(n>r)for(o=u-r;o>c;o--)s=o+n-1,(a=o+r-1)in l?l[s]=l[a]:Nv(l,s);for(o=0;oi;)for(var s,l=Xv(arguments[i++]),u=o?Jv(qv(l),o(l)):qv(l),c=u.length,h=0;c>h;)s=u[h++],Wv&&!Uv(a,l,s)||(n[s]=l[s]);return n}:Kv,ty=Zv;Bn({target:"Object",stat:!0,arity:2,forced:Object.assign!==ty},{assign:ty});var ey=o(lt.Object.assign),ny=Bn,ry=ie,iy=uu,oy=eu,ay=u((function(){iy(1)}));ny({target:"Object",stat:!0,forced:ay,sham:!oy},{getPrototypeOf:function(t){return iy(ry(t))}});var sy=lt.Object.getPrototypeOf;Bn({target:"Object",stat:!0,sham:!M},{create:ho});var ly=lt.Object,uy=function(t,e){return ly.create(t,e)},cy=o(uy),hy=lt,dy=v;hy.JSON||(hy.JSON={stringify:JSON.stringify});var fy=function(t,e,n){return dy(hy.JSON.stringify,null,arguments)},py=o(fy),vy="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,yy=TypeError,gy=function(t,e){if(tn,a=wy(r)?r:Sy(r),s=o?_y(arguments,n):[],l=o?function(){by(a,this,s)}:a;return e?t(l,i):t(l)}:t},Ty=Bn,Py=l,jy=Cy(Py.setInterval,!0);Ty({global:!0,bind:!0,forced:Py.setInterval!==jy},{setInterval:jy});var Iy=Bn,Ny=l,Ay=Cy(Ny.setTimeout,!0);Iy({global:!0,bind:!0,forced:Ny.setTimeout!==Ay},{setTimeout:Ay});var Dy=o(lt.setTimeout),My={exports:{}};!function(t){function e(t){if(t)return n(t)}function n(t){for(var n in e.prototype)t[n]=e.prototype[n];return t}t.exports=e,e.prototype.on=e.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},e.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+t];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var i=0;i-1}function Ng(t){if(Ig(t,ng))return ng;var e=Ig(t,rg),n=Ig(t,ig);return e&&n?ng:e||n?e?rg:ig:Ig(t,eg)?eg:tg}var Ag=function(){function t(t,e){this.manager=t,this.set(e)}var e=t.prototype;return e.set=function(t){t===Zy&&(t=this.compute()),Qy&&this.manager.element.style&&og[t]&&(this.manager.element.style[Ky]=t),this.actions=t.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var t=[];return Pg(this.manager.recognizers,(function(e){jg(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),Ng(t.join(" "))},e.preventDefaults=function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var r=this.actions,i=Ig(r,ng)&&!og[ng],o=Ig(r,ig)&&!og[ig],a=Ig(r,rg)&&!og[rg];if(i){var s=1===t.pointers.length,l=t.distance<2,u=t.deltaTime<250;if(s&&l&&u)return}if(!a||!o)return i||o&&n&Eg||a&&n&Sg?this.preventSrc(e):void 0}},e.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},t}();function Dg(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function Mg(t){var e=t.length;if(1===e)return{x:Gy(t[0].clientX),y:Gy(t[0].clientY)};for(var n=0,r=0,i=0;i=Yy(e)?t<0?wg:xg:e<0?kg:_g}function Bg(t,e){var n=e.center,r=t.offsetDelta||{},i=t.prevDelta||{},o=t.prevInput||{};e.eventType!==vg&&o.eventType!==gg||(i=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=i.x+(n.x-r.x),e.deltaY=i.y+(n.y-r.y)}function Wg(t,e,n){return{x:e/t||0,y:n/t||0}}function Hg(t,e){return Rg(e[0],e[1],Tg)/Rg(t[0],t[1],Tg)}function Ug(t,e){return zg(e[1],e[0],Tg)+zg(t[1],t[0],Tg)}function Vg(t,e){var n,r,i,o,a=t.lastInterval||e,s=e.timeStamp-a.timeStamp;if(e.eventType!==mg&&(s>pg||void 0===a.velocity)){var l=e.deltaX-a.deltaX,u=e.deltaY-a.deltaY,c=Wg(s,l,u);r=c.x,i=c.y,n=Yy(c.x)>Yy(c.y)?c.x:c.y,o=Lg(l,u),t.lastInterval=e}else n=a.velocity,r=a.velocityX,i=a.velocityY,o=a.direction;e.velocity=n,e.velocityX=r,e.velocityY=i,e.direction=o}function qg(t,e){var n=t.session,r=e.pointers,i=r.length;n.firstInput||(n.firstInput=Fg(e)),i>1&&!n.firstMultiple?n.firstMultiple=Fg(e):1===i&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,s=a?a.center:o.center,l=e.center=Mg(r);e.timeStamp=$y(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=zg(s,l),e.distance=Rg(s,l),Bg(n,e),e.offsetDirection=Lg(e.deltaX,e.deltaY);var u=Wg(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=u.x,e.overallVelocityY=u.y,e.overallVelocity=Yy(u.x)>Yy(u.y)?u.x:u.y,e.scale=a?Hg(a.pointers,r):1,e.rotation=a?Ug(a.pointers,r):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,Vg(n,e);var c,h=t.element,d=e.srcEvent;Dg(c=d.composedPath?d.composedPath()[0]:d.path?d.path[0]:d.target,h)&&(h=c),e.target=h}function Gg(t,e,n){var r=n.pointers.length,i=n.changedPointers.length,o=e&vg&&r-i===0,a=e&(gg|mg)&&r-i===0;n.isFirst=!!o,n.isFinal=!!a,o&&(t.session={}),n.eventType=e,qg(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function Yg(t){return t.trim().split(/\s+/g)}function $g(t,e,n){Pg(Yg(e),(function(e){t.addEventListener(e,n,!1)}))}function Xg(t,e,n){Pg(Yg(e),(function(e){t.removeEventListener(e,n,!1)}))}function Kg(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var Qg=function(){function t(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){jg(t.options.enable,[t])&&n.handler(e)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&$g(this.element,this.evEl,this.domHandler),this.evTarget&&$g(this.target,this.evTarget,this.domHandler),this.evWin&&$g(Kg(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&Xg(this.element,this.evEl,this.domHandler),this.evTarget&&Xg(this.target,this.evTarget,this.domHandler),this.evWin&&Xg(Kg(this.element),this.evWin,this.domHandler)},t}();function Jg(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var r=0;rn[e]})):r.sort()),r}var am={touchstart:vg,touchmove:yg,touchend:gg,touchcancel:mg},sm="touchstart touchmove touchend touchcancel",lm=function(t){function e(){var n;return e.prototype.evTarget=sm,(n=t.apply(this,arguments)||this).targetIds={},n}return Ly(e,t),e.prototype.handler=function(t){var e=am[t.type],n=um.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:cg,srcEvent:t})},e}(Qg);function um(t,e){var n,r,i=im(t.touches),o=this.targetIds;if(e&(vg|yg)&&1===i.length)return o[i[0].identifier]=!0,[i,i];var a=im(t.changedTouches),s=[],l=this.target;if(r=i.filter((function(t){return Dg(t.target,l)})),e===vg)for(n=0;n-1&&r.splice(t,1)};setTimeout(i,pm)}}function gm(t,e){t&vg?(this.primaryTouch=e.changedPointers[0].identifier,ym.call(this,e)):t&(gg|mg)&&ym.call(this,e)}function mm(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,r=0;r-1&&this.requireFail.splice(e,1),this},e.hasRequireFailures=function(){return this.requireFail.length>0},e.canRecognizeWith=function(t){return!!this.simultaneous[t.id]},e.emit=function(t){var e=this,n=this.state;function r(n){e.manager.emit(n,t)}n=Sm&&r(e.options.event+Nm(n))},e.tryEmit=function(t){if(this.canEmit())return this.emit(t);this.state=Tm},e.canEmit=function(){for(var t=0;te.threshold&&i&e.direction},n.attrTest=function(t){return Mm.prototype.attrTest.call(this,t)&&(this.state&_m||!(this.state&_m)&&this.directionTest(t))},n.emit=function(e){this.pX=e.deltaX,this.pY=e.deltaY;var n=Fm(e.direction);n&&(e.additionalEvent=this.options.event+n),t.prototype.emit.call(this,e)},e}(Mm),zm=function(t){function e(e){return void 0===e&&(e={}),t.call(this,zy({event:"swipe",threshold:10,velocity:.3,direction:Eg|Sg,pointers:1},e))||this}Ly(e,t);var n=e.prototype;return n.getTouchAction=function(){return Rm.prototype.getTouchAction.call(this)},n.attrTest=function(e){var n,r=this.options.direction;return r&(Eg|Sg)?n=e.overallVelocity:r&Eg?n=e.overallVelocityX:r&Sg&&(n=e.overallVelocityY),t.prototype.attrTest.call(this,e)&&r&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers===this.options.pointers&&Yy(n)>this.options.velocity&&e.eventType&gg},n.emit=function(t){var e=Fm(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)},e}(Mm),Lm=function(t){function e(e){return void 0===e&&(e={}),t.call(this,zy({event:"pinch",threshold:0,pointers:2},e))||this}Ly(e,t);var n=e.prototype;return n.getTouchAction=function(){return[ng]},n.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||this.state&_m)},n.emit=function(e){if(1!==e.scale){var n=e.scale<1?"in":"out";e.additionalEvent=this.options.event+n}t.prototype.emit.call(this,e)},e}(Mm),Bm=function(t){function e(e){return void 0===e&&(e={}),t.call(this,zy({event:"rotate",threshold:0,pointers:2},e))||this}Ly(e,t);var n=e.prototype;return n.getTouchAction=function(){return[ng]},n.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||this.state&_m)},e}(Mm),Wm=function(t){function e(e){var n;return void 0===e&&(e={}),(n=t.call(this,zy({event:"press",pointers:1,time:251,threshold:9},e))||this)._timer=null,n._input=null,n}Ly(e,t);var n=e.prototype;return n.getTouchAction=function(){return[tg]},n.process=function(t){var e=this,n=this.options,r=t.pointers.length===n.pointers,i=t.distancen.time;if(this._input=t,!i||!r||t.eventType&(gg|mg)&&!o)this.reset();else if(t.eventType&vg)this.reset(),this._timer=setTimeout((function(){e.state=Om,e.tryEmit()}),n.time);else if(t.eventType&gg)return Om;return Tm},n.reset=function(){clearTimeout(this._timer)},n.emit=function(t){this.state===Om&&(t&&t.eventType&gg?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=$y(),this.manager.emit(this.options.event,this._input)))},e}(Am),Hm={domEvents:!1,touchAction:Zy,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Um=[[Bm,{enable:!1}],[Lm,{enable:!1},["rotate"]],[zm,{direction:Eg}],[Rm,{direction:Eg},["swipe"]],[Dm],[Dm,{event:"doubletap",taps:2},["tap"]],[Wm]],Vm=1,qm=2;function Gm(t,e){var n,r=t.element;r.style&&(Pg(t.options.cssProps,(function(i,o){n=Xy(r.style,o),e?(t.oldCssProps[n]=r.style[n],r.style[n]=i):r.style[n]=t.oldCssProps[n]||""})),e||(t.oldCssProps={}))}function Ym(t,e){var n=document.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}var $m=function(){function t(t,e){var n=this;this.options=Hy({},Hm,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=wm(this),this.touchAction=new Ag(this,this.options.touchAction),Gm(this,!0),Pg(this.options.recognizers,(function(t){var e=n.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}var e=t.prototype;return e.set=function(t){return Hy(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},e.stop=function(t){this.session.stopped=t?qm:Vm},e.recognize=function(t){var e=this.session;if(!e.stopped){var n;this.touchAction.preventDefaults(t);var r=this.recognizers,i=e.curRecognizer;(!i||i&&i.state&Om)&&(e.curRecognizer=null,i=null);for(var o=0;o\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",i=window.console&&(window.console.warn||window.console.log);return i&&i.call(window.console,r,n),t.apply(this,arguments)}}var eb=tb((function(t,e,n){for(var r=Object.keys(e),i=0;i=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function sb(t,e){var n;if(t){if("string"===typeof t)return lb(t,e);var r=Lp(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?jf(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?lb(t,e):void 0}}function lb(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1?n-1:0),i=1;i2)return db.apply(void 0,zp(r=[hb(e[0],e[1])]).call(r,Np(Lp(e).call(e,2))));var i=e[0],o=e[1];if(i instanceof Date&&o instanceof Date)return i.setTime(o.getTime()),i;var a,s=ab(Gp(o));try{for(s.s();!(a=s.n()).done;){var l=a.value;Object.prototype.propertyIsEnumerable.call(o,l)&&(o[l]===ub?delete i[l]:null===i[l]||null===o[l]||"object"!==typeof i[l]||"object"!==typeof o[l]||Yp(i[l])||Yp(o[l])?i[l]=fb(o[l]):i[l]=db(i[l],o[l]))}}catch(u){s.e(u)}finally{s.f()}return i}function fb(t){return Yp(t)?wd(t).call(t,(function(t){return fb(t)})):"object"===typeof t&&null!==t?t instanceof Date?new Date(t.getTime()):db({},t):t}function pb(t){for(var e=0,n=Jp(t);es;)void 0!==(n=i(r,e=o[s++]))&&Jb(a,e,n);return a}});var Zb=o(lt.Object.getOwnPropertyDescriptors),tw={exports:{}},ew=Bn,nw=M,rw=yi.f;ew({target:"Object",stat:!0,forced:Object.defineProperties!==rw,sham:!nw},{defineProperties:rw});var iw=lt.Object,ow=tw.exports=function(t,e){return iw.defineProperties(t,e)};iw.defineProperties.sham&&(ow.sham=!0);var aw=o(tw.exports),sw=o(Gn);function lw(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var uw=uy,cw=o(uw);Bn({target:"Object",stat:!0},{setPrototypeOf:Du});var hw=lt.Object.setPrototypeOf,dw=o(hw),fw=o(Rh);function pw(t,e){var n;return pw=dw?fw(n=dw).call(n):function(t,e){return t.__proto__=e,t},pw(t,e)}function vw(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=cw(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),$n(t,"prototype",{writable:!1}),e&&pw(t,e)}function yw(t,e){if(e&&("object"===ch(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return lw(t)}var gw=sy,mw=o(gw);function bw(t){var e;return bw=dw?fw(e=mw).call(e):function(t){return t.__proto__||mw(t)},bw(t)}var ww={exports:{}},xw={exports:{}};!function(t){var e=Uc,n=lh;function r(i){return t.exports=r="function"==typeof e&&"symbol"==typeof n?function(t){return typeof t}:function(t){return t&&"function"==typeof e&&t.constructor===e&&t!==e.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,r(i)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}(xw);var kw=xw.exports,_w=lv,Ew=se,Sw=qp,Ow=D,Cw=ln,Tw=function(t,e,n){for(var r=Sw(e),i=Cw.f,o=Ow.f,a=0;ao;o++)if((s=g(t[o]))&&Qw(rx,s))return s;return new nx(!1)}r=Jw(t,i)}for(l=d?t.next:r.next;!(u=Gw(l,r)).done;){try{s=g(u.value)}catch(jT){tx(r,"throw",jT)}if("object"==typeof s&&s&&Qw(rx,s))return s}return new nx(!1)},ox=vi,ax=function(t,e){return void 0===t?arguments.length<2?"":e:ox(t)},sx=Bn,lx=pt,ux=uu,cx=Du,hx=Tw,dx=ho,fx=Tn,px=q,vx=Iw,yx=Vw,gx=ix,mx=ax,bx=xe("toStringTag"),wx=Error,xx=[].push,kx=function(t,e){var n,r=lx(_x,this);cx?n=cx(new wx,r?ux(this):_x):(n=r?this:dx(_x),fx(n,bx,"Error")),void 0!==e&&fx(n,"message",mx(e)),yx(n,kx,n.stack,1),arguments.length>2&&vx(n,arguments[2]);var i=[];return gx(t,xx,{that:i}),fx(n,"errors",i),n};cx?cx(kx,wx):hx(kx,wx,{name:!0});var _x=kx.prototype=dx(wx.prototype,{constructor:px(1,kx),message:px(1,""),name:px(1,"AggregateError")});sx({global:!0,constructor:!0,arity:2},{AggregateError:kx});var Ex,Sx,Ox,Cx,Tx=ft,Px=Ao,jx=M,Ix=xe("species"),Nx=function(t){var e=Tx(t);jx&&e&&!e[Ix]&&Px(e,Ix,{configurable:!0,get:function(){return this}})},Ax=pt,Dx=TypeError,Mx=function(t,e){if(Ax(e,t))return t;throw new Dx("Incorrect invocation")},Fx=pn,Rx=kb,zx=Q,Lx=xe("species"),Bx=function(t,e){var n,r=Fx(t).constructor;return void 0===r||zx(n=Fx(r)[Lx])?e:Rx(n)},Wx=/(?:ipad|iphone|ipod).*applewebkit/i.test(vt),Hx=l,Ux=v,Vx=sn,qx=A,Gx=se,Yx=u,$x=qi,Xx=rl,Kx=Me,Qx=gy,Jx=Wx,Zx=$h,tk=Hx.setImmediate,ek=Hx.clearImmediate,nk=Hx.process,rk=Hx.Dispatch,ik=Hx.Function,ok=Hx.MessageChannel,ak=Hx.String,sk=0,lk={},uk="onreadystatechange";Yx((function(){Ex=Hx.location}));var ck=function(t){if(Gx(lk,t)){var e=lk[t];delete lk[t],e()}},hk=function(t){return function(){ck(t)}},dk=function(t){ck(t.data)},fk=function(t){Hx.postMessage(ak(t),Ex.protocol+"//"+Ex.host)};tk&&ek||(tk=function(t){Qx(arguments.length,1);var e=qx(t)?t:ik(t),n=Xx(arguments,1);return lk[++sk]=function(){Ux(e,void 0,n)},Sx(sk),sk},ek=function(t){delete lk[t]},Zx?Sx=function(t){nk.nextTick(hk(t))}:rk&&rk.now?Sx=function(t){rk.now(hk(t))}:ok&&!Jx?(Cx=(Ox=new ok).port2,Ox.port1.onmessage=dk,Sx=Vx(Cx.postMessage,Cx)):Hx.addEventListener&&qx(Hx.postMessage)&&!Hx.importScripts&&Ex&&"file:"!==Ex.protocol&&!Yx(fk)?(Sx=fk,Hx.addEventListener("message",dk,!1)):Sx=uk in Kx("script")?function(t){$x.appendChild(Kx("script"))[uk]=function(){$x.removeChild(this),ck(t)}}:function(t){setTimeout(hk(t),0)});var pk={set:tk,clear:ek},vk=function(){this.head=null,this.tail=null};vk.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var yk,gk,mk,bk,wk,xk=vk,kk=/ipad|iphone|ipod/i.test(vt)&&"undefined"!=typeof Pebble,_k=/web0s(?!.*chrome)/i.test(vt),Ek=l,Sk=sn,Ok=D.f,Ck=pk.set,Tk=xk,Pk=Wx,jk=kk,Ik=_k,Nk=$h,Ak=Ek.MutationObserver||Ek.WebKitMutationObserver,Dk=Ek.document,Mk=Ek.process,Fk=Ek.Promise,Rk=Ok(Ek,"queueMicrotask"),zk=Rk&&Rk.value;if(!zk){var Lk=new Tk,Bk=function(){var t,e;for(Nk&&(t=Mk.domain)&&t.exit();e=Lk.get();)try{e()}catch(jT){throw Lk.head&&yk(),jT}t&&t.enter()};Pk||Nk||Ik||!Ak||!Dk?!jk&&Fk&&Fk.resolve?((bk=Fk.resolve(void 0)).constructor=Fk,wk=Sk(bk.then,bk),yk=function(){wk(Bk)}):Nk?yk=function(){Mk.nextTick(Bk)}:(Ck=Sk(Ck,Ek),yk=function(){Ck(Bk)}):(gk=!0,mk=Dk.createTextNode(""),new Ak(Bk).observe(mk,{characterData:!0}),yk=function(){mk.data=gk=!gk}),zk=function(t){Lk.head||yk(),Lk.add(t)}}var Wk=zk,Hk=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(jT){}},Uk=function(t){try{return{error:!1,value:t()}}catch(jT){return{error:!0,value:jT}}},Vk=l.Promise,qk="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,Gk=$h,Yk=!qk&&!Gk&&"object"==typeof window&&"object"==typeof document,$k=l,Xk=Vk,Kk=A,Qk=nn,Jk=Or,Zk=xe,t_=Yk,e_=qk,n_=kt,r_=Xk&&Xk.prototype,i_=Zk("species"),o_=!1,a_=Kk($k.PromiseRejectionEvent),s_={CONSTRUCTOR:Qk("Promise",(function(){var t=Jk(Xk),e=t!==String(Xk);if(!e&&66===n_)return!0;if(!r_.catch||!r_.finally)return!0;if(!n_||n_<51||!/native code/.test(t)){var n=new Xk((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((n.constructor={})[i_]=r,!(o_=n.then((function(){}))instanceof r))return!0}return!e&&(t_||e_)&&!a_})),REJECTION_EVENT:a_,SUBCLASSING:o_},l_={},u_=zt,c_=TypeError,h_=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw new c_("Bad Promise constructor");e=t,n=r})),this.resolve=u_(e),this.reject=u_(n)};l_.f=function(t){return new h_(t)};var d_=Bn,f_=$h,p_=l,v_=z,y_=Io,g_=ra,m_=Nx,b_=zt,w_=A,x_=st,k_=Mx,__=Bx,E_=pk.set,S_=Wk,O_=Hk,C_=Uk,T_=xk,P_=xa,j_=Vk,I_=s_,N_=l_,A_="Promise",D_=I_.CONSTRUCTOR,M_=I_.REJECTION_EVENT;I_.SUBCLASSING;var F_,R_,z_,L_=P_.getterFor(A_),B_=P_.set,W_=j_&&j_.prototype,H_=j_,U_=W_,V_=p_.TypeError,q_=p_.document,G_=p_.process,Y_=N_.f,$_=Y_,X_=!!(q_&&q_.createEvent&&p_.dispatchEvent),K_="unhandledrejection",Q_="rejectionhandled",J_=0,Z_=1,tE=2,eE=1,nE=2,rE=function(t){var e;return!(!x_(t)||!w_(e=t.then))&&e},iE=function(t,e){var n,r,i,o=e.value,a=e.state===Z_,s=a?t.ok:t.fail,l=t.resolve,u=t.reject,c=t.domain;try{s?(a||(e.rejection===nE&&uE(e),e.rejection=eE),!0===s?n=o:(c&&c.enter(),n=s(o),c&&(c.exit(),i=!0)),n===t.promise?u(new V_("Promise-chain cycle")):(r=rE(n))?v_(r,n,l,u):l(n)):u(o)}catch(jT){c&&!i&&c.exit(),u(jT)}},oE=function(t,e){t.notified||(t.notified=!0,S_((function(){for(var n,r=t.reactions;n=r.get();)iE(n,t);t.notified=!1,e&&!t.rejection&&sE(t)})))},aE=function(t,e,n){var r,i;X_?((r=q_.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),p_.dispatchEvent(r)):r={promise:e,reason:n},!M_&&(i=p_["on"+t])?i(r):t===K_&&O_("Unhandled promise rejection",n)},sE=function(t){v_(E_,p_,(function(){var e,n=t.facade,r=t.value;if(lE(t)&&(e=C_((function(){f_?G_.emit("unhandledRejection",r,n):aE(K_,n,r)})),t.rejection=f_||lE(t)?nE:eE,e.error))throw e.value}))},lE=function(t){return t.rejection!==eE&&!t.parent},uE=function(t){v_(E_,p_,(function(){var e=t.facade;f_?G_.emit("rejectionHandled",e):aE(Q_,e,t.value)}))},cE=function(t,e,n){return function(r){t(e,r,n)}},hE=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=tE,oE(t,!0))},dE=function t(e,n,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===n)throw new V_("Promise can't be resolved itself");var i=rE(n);i?S_((function(){var r={done:!1};try{v_(i,n,cE(t,r,e),cE(hE,r,e))}catch(jT){hE(r,jT,e)}})):(e.value=n,e.state=Z_,oE(e,!1))}catch(jT){hE({done:!1},jT,e)}}};D_&&(U_=(H_=function(t){k_(this,U_),b_(t),v_(F_,this);var e=L_(this);try{t(cE(dE,e),cE(hE,e))}catch(jT){hE(e,jT)}}).prototype,(F_=function(t){B_(this,{type:A_,done:!1,notified:!1,parent:!1,reactions:new T_,rejection:!1,state:J_,value:void 0})}).prototype=y_(U_,"then",(function(t,e){var n=L_(this),r=Y_(__(this,H_));return n.parent=!0,r.ok=!w_(t)||t,r.fail=w_(e)&&e,r.domain=f_?G_.domain:void 0,n.state===J_?n.reactions.add(r):S_((function(){iE(r,n)})),r.promise})),R_=function(){var t=new F_,e=L_(t);this.promise=t,this.resolve=cE(dE,e),this.reject=cE(hE,e)},N_.f=Y_=function(t){return t===H_||t===z_?new R_(t):$_(t)}),d_({global:!0,constructor:!0,wrap:!0,forced:D_},{Promise:H_}),g_(H_,A_,!1,!0),m_(A_);var fE=Vk,pE=Sf,vE=s_.CONSTRUCTOR||!pE((function(t){fE.all(t).then(void 0,(function(){}))})),yE=z,gE=zt,mE=l_,bE=Uk,wE=ix;Bn({target:"Promise",stat:!0,forced:vE},{all:function(t){var e=this,n=mE.f(e),r=n.resolve,i=n.reject,o=bE((function(){var n=gE(e.resolve),o=[],a=0,s=1;wE(t,(function(t){var l=a++,u=!1;s++,yE(n,e,t).then((function(t){u||(u=!0,o[l]=t,--s||r(o))}),i)})),--s||r(o)}));return o.error&&i(o.value),n.promise}});var xE=Bn,kE=s_.CONSTRUCTOR,_E=Vk;_E&&_E.prototype,xE({target:"Promise",proto:!0,forced:kE,real:!0},{catch:function(t){return this.then(void 0,t)}});var EE=z,SE=zt,OE=l_,CE=Uk,TE=ix;Bn({target:"Promise",stat:!0,forced:vE},{race:function(t){var e=this,n=OE.f(e),r=n.reject,i=CE((function(){var i=SE(e.resolve);TE(t,(function(t){EE(i,e,t).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var PE=Bn,jE=z,IE=l_,NE=s_.CONSTRUCTOR;PE({target:"Promise",stat:!0,forced:NE},{reject:function(t){var e=IE.f(this);return jE(e.reject,void 0,t),e.promise}});var AE=pn,DE=st,ME=l_,FE=function(t,e){if(AE(t),DE(e)&&e.constructor===t)return e;var n=ME.f(t);return(0,n.resolve)(e),n.promise},RE=Bn,zE=ft,LE=$t,BE=Vk,WE=s_.CONSTRUCTOR,HE=FE,UE=zE("Promise"),VE=!WE;RE({target:"Promise",stat:!0,forced:LE},{resolve:function(t){return HE(VE&&this===UE?BE:this,t)}});var qE=z,GE=zt,YE=l_,$E=Uk,XE=ix;Bn({target:"Promise",stat:!0,forced:vE},{allSettled:function(t){var e=this,n=YE.f(e),r=n.resolve,i=n.reject,o=$E((function(){var n=GE(e.resolve),i=[],o=0,a=1;XE(t,(function(t){var s=o++,l=!1;a++,qE(n,e,t).then((function(t){l||(l=!0,i[s]={status:"fulfilled",value:t},--a||r(i))}),(function(t){l||(l=!0,i[s]={status:"rejected",reason:t},--a||r(i))}))})),--a||r(i)}));return o.error&&i(o.value),n.promise}});var KE=z,QE=zt,JE=ft,ZE=l_,tS=Uk,eS=ix,nS="No one promise resolved";Bn({target:"Promise",stat:!0,forced:vE},{any:function(t){var e=this,n=JE("AggregateError"),r=ZE.f(e),i=r.resolve,o=r.reject,a=tS((function(){var r=QE(e.resolve),a=[],s=0,l=1,u=!1;eS(t,(function(t){var c=s++,h=!1;l++,KE(r,e,t).then((function(t){h||u||(u=!0,i(t))}),(function(t){h||u||(h=!0,a[c]=t,--l||o(new n(a,nS)))}))})),--l||o(new n(a,nS))}));return a.error&&o(a.value),r.promise}});var rS=Bn,iS=Vk,oS=u,aS=ft,sS=A,lS=Bx,uS=FE,cS=iS&&iS.prototype,hS=!!iS&&oS((function(){cS.finally.call({then:function(){}},(function(){}))}));rS({target:"Promise",proto:!0,real:!0,forced:hS},{finally:function(t){var e=lS(this,aS("Promise")),n=sS(t);return this.then(n?function(n){return uS(e,t()).then((function(){return n}))}:t,n?function(n){return uS(e,t()).then((function(){throw n}))}:t)}});var dS=lt.Promise,fS=l_;Bn({target:"Promise",stat:!0},{withResolvers:function(){var t=fS.f(this);return{promise:t.promise,resolve:t.resolve,reject:t.reject}}});var pS=dS,vS=l_,yS=Uk;Bn({target:"Promise",stat:!0,forced:!0},{try:function(t){var e=vS.f(this),n=yS(t);return(n.error?e.reject:e.resolve)(n.value),e.promise}});var gS=pS,mS=mv;!function(t){var e=kw.default,n=Yn,r=Uc,i=uw,o=gw,a=_w,s=tp,l=hw,u=gS,c=mS,h=kp;function d(){t.exports=d=function(){return p},t.exports.__esModule=!0,t.exports.default=t.exports;var f,p={},v=Object.prototype,y=v.hasOwnProperty,g=n||function(t,e,n){t[e]=n.value},m="function"==typeof r?r:{},b=m.iterator||"@@iterator",w=m.asyncIterator||"@@asyncIterator",x=m.toStringTag||"@@toStringTag";function k(t,e,r){return n(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{k({},"")}catch(f){k=function(t,e,n){return t[e]=n}}function _(t,e,n,r){var o=e&&e.prototype instanceof j?e:j,a=i(o.prototype),s=new H(r||[]);return g(a,"_invoke",{value:z(t,n,s)}),a}function E(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}p.wrap=_;var S="suspendedStart",O="suspendedYield",C="executing",T="completed",P={};function j(){}function I(){}function N(){}var A={};k(A,b,(function(){return this}));var D=o&&o(o(U([])));D&&D!==v&&y.call(D,b)&&(A=D);var M=N.prototype=j.prototype=i(A);function F(t){var e;a(e=["next","throw","return"]).call(e,(function(e){k(t,e,(function(t){return this._invoke(e,t)}))}))}function R(t,n){function r(i,o,a,s){var l=E(t[i],t,o);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==e(c)&&y.call(c,"__await")?n.resolve(c.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):n.resolve(c).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,s)}))}s(l.arg)}var i;g(this,"_invoke",{value:function(t,e){function o(){return new n((function(n,i){r(t,e,n,i)}))}return i=i?i.then(o,o):o()}})}function z(t,e,n){var r=S;return function(i,o){if(r===C)throw new Error("Generator is already running");if(r===T){if("throw"===i)throw o;return{value:f,done:!0}}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=L(a,n);if(s){if(s===P)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===S)throw r=T,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=C;var l=E(t,e,n);if("normal"===l.type){if(r=n.done?T:O,l.arg===P)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=T,n.method="throw",n.arg=l.arg)}}}function L(t,e){var n=e.method,r=t.iterator[n];if(r===f)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=f,L(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),P;var i=E(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,P;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=f),e.delegate=null,P):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,P)}function B(t){var e,n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),s(e=this.tryEntries).call(e,n)}function W(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function H(t){this.tryEntries=[{tryLoc:"root"}],a(t).call(t,B,this),this.reset(!0)}function U(t){if(t||""===t){var n=t[b];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r=0;--r){var i=this.tryEntries[r],o=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var a=y.call(i,"catchLoc"),s=y.call(i,"finallyLoc");if(a&&s){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&y.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),W(n),P}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;W(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:U(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=f),P}},p}t.exports=d,t.exports.__esModule=!0,t.exports.default=t.exports}(ww);var bS=(0,ww.exports)(),wS=bS;try{regeneratorRuntime=bS}catch(IT){"object"===typeof globalThis?globalThis.regeneratorRuntime=bS:Function("r","regeneratorRuntime = r")(bS)}var xS=o(wS),kS={exports:{}},_S=u((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),ES=u,SS=st,OS=E,CS=_S,TS=Object.isExtensible,PS=ES((function(){TS(1)}))||CS?function(t){return!!SS(t)&&(!CS||"ArrayBuffer"!==OS(t))&&(!TS||TS(t))}:TS,jS=!u((function(){return Object.isExtensible(Object.preventExtensions({}))})),IS=Bn,NS=w,AS=Oi,DS=st,MS=se,FS=ln.f,RS=fo,zS=yo,LS=PS,BS=jS,WS=!1,HS=de("meta"),US=0,VS=function(t){FS(t,HS,{value:{objectID:"O"+US++,weakData:{}}})},qS=function(t,e){if(!DS(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!MS(t,HS)){if(!LS(t))return"F";if(!e)return"E";VS(t)}return t[HS].objectID},GS=function(t,e){if(!MS(t,HS)){if(!LS(t))return!0;if(!e)return!1;VS(t)}return t[HS].weakData},YS=function(t){return BS&&WS&&LS(t)&&!MS(t,HS)&&VS(t),t},$S=function(){XS.enable=function(){},WS=!0;var t=RS.f,e=NS([].splice),n={};n[HS]=1,t(n).length&&(RS.f=function(n){for(var r=t(n),i=0,o=r.length;i1?arguments[1]:void 0);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!l(this,t)}}),mO(o,n?{get:function(t){var e=l(this,t);return e&&e.value},set:function(t,e){return s(this,0===t?0:t,e)}}:{add:function(t){return s(this,t=0===t?0:t,t)}}),OO&&gO(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(t,e,n){var r=e+" Iterator",i=jO(e),o=jO(r);_O(t,e,(function(t,e){PO(this,{type:r,target:t,state:i(t),kind:e,last:void 0})}),(function(){for(var t=o(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?EO("keys"===e?n.key:"values"===e?n.value:[n.key,n.value],!1):(t.target=void 0,EO(void 0,!0))}),n?"entries":"values",!n,!0),SO(e)}};pO("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),IO);var NO=o(lt.Map),AO=Bn,DO=Pa.some,MO=Yh("some");AO({target:"Array",proto:!0,forced:!MO},{some:function(t){return DO(this,t,arguments.length>1?arguments[1]:void 0)}});var FO=Nh("Array","some"),RO=pt,zO=FO,LO=Array.prototype,BO=o((function(t){var e=t.some;return t===LO||RO(LO,t)&&e===LO.some?zO:e})),WO=Nh("Array","keys"),HO=kr,UO=se,VO=pt,qO=WO,GO=Array.prototype,YO={DOMTokenList:!0,NodeList:!0},$O=o((function(t){var e=t.keys;return t===GO||VO(GO,t)&&e===GO.keys||UO(YO,HO(t))?qO:e})),XO=ko,KO=Math.floor,QO=function t(e,n){var r=e.length,i=KO(r/2);return r<8?JO(e,n):ZO(e,t(XO(e,0,i),n),t(XO(e,i),n),n)},JO=function(t,e){for(var n,r,i=t.length,o=1;o0;)t[r]=t[--r];r!==o++&&(t[r]=n)}return t},ZO=function(t,e,n,r){for(var i=e.length,o=n.length,a=0,s=0;a3)){if(gC)return!0;if(bC)return bC<603;var t,e,n,r,i="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)wC.push({k:e+r,v:n})}for(wC.sort((function(t,e){return e.v-t.v})),r=0;rdC(n)?1:-1}};aC({target:"Array",proto:!0,forced:_C||!EC||!SC||!OC},{sort:function(t){void 0!==t&&lC(t);var e=uC(this);if(OC)return void 0===t?xC(e):xC(e,t);var n,r,i=[],o=cC(e);for(r=0;r1&&void 0!==arguments[1]?arguments[1]:0;return ZC[t[e+0]]+ZC[t[e+1]]+ZC[t[e+2]]+ZC[t[e+3]]+"-"+ZC[t[e+4]]+ZC[t[e+5]]+"-"+ZC[t[e+6]]+ZC[t[e+7]]+"-"+ZC[t[e+8]]+ZC[t[e+9]]+"-"+ZC[t[e+10]]+ZC[t[e+11]]+ZC[t[e+12]]+ZC[t[e+13]]+ZC[t[e+14]]+ZC[t[e+15]]}var nT={randomUUID:"undefined"!==typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function rT(t,e,n){if(nT.randomUUID&&!e&&!t)return nT.randomUUID();var r=(t=t||{}).random||(t.rng||JC)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e){n=n||0;for(var i=0;i<16;++i)e[n+i]=r[i];return e}return eT(r)}function iT(t){return"string"===typeof t||"number"===typeof t}var oT=function(){function t(n){e(this,t),yh(this,"_queue",[]),yh(this,"_timeout",null),yh(this,"_extended",null),this.delay=null,this.max=1/0,this.setOptions(n)}return vh(t,[{key:"setOptions",value:function(t){t&&"undefined"!==typeof t.delay&&(this.delay=t.delay),t&&"undefined"!==typeof t.max&&(this.max=t.max),this._flushIfNeeded()}},{key:"destroy",value:function(){if(this.flush(),this._extended){for(var t=this._extended.object,e=this._extended.methods,n=0;nthis.max&&this.flush(),null!=this._timeout&&(clearTimeout(this._timeout),this._timeout=null),this.queue.length>0&&"number"===typeof this.delay&&(this._timeout=Dy((function(){t.flush()}),this.delay))}},{key:"flush",value:function(){var t,e;uv(t=Bv(e=this._queue).call(e,0)).call(t,(function(t){t.fn.apply(t.context||t.fn,t.args||[])}))}}],[{key:"extend",value:function(e,n){var r=new t(n);if(void 0!==e.flush)throw new Error("Target object already has a property flush");e.flush=function(){r.flush()};var i=[{name:"flush",original:void 0}];if(n&&n.replace)for(var o=0;o=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function cT(t,e){var n;if(t){if("string"===typeof t)return hT(t,e);var r=Lp(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?jf(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?hT(t,e):void 0}}function hT(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);ni&&(i=l,r=s)}return r}},{key:"min",value:function(t){var e=lT(this._pairs),n=e.next();if(n.done)return null;for(var r=n.value[1],i=t(n.value[1],n.value[0]);!(n=e.next()).done;){var o=Tp(n.value,2),a=o[0],s=o[1],l=t(s,a);l=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function yT(t,e){var n;if(t){if("string"===typeof t)return gT(t,e);var r=Lp(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?jf(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?gT(t,e):void 0}}function gT(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);ni?1:ri)&&(r=a,i=s)}}catch(l){o.e(l)}finally{o.f()}return r||null}},{key:"min",value:function(t){var e,n,r=null,i=null,o=vT(WC(e=this._data).call(e));try{for(o.s();!(n=o.n()).done;){var a=n.value,s=a[t];"number"===typeof s&&(null==i||s=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function _T(t,e){var n;if(t){if("string"===typeof t)return ET(t,e);var r=Lp(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?jf(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ET(t,e):void 0}}function ET(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&W[0]<4?1:+(W[0]+W[1])),!H&&pt&&(!(W=pt.match(/Edge\/(\d+)/))||W[1]>=74)&&(W=pt.match(/Chrome\/(\d+)/))&&(H=+W[1]);var bt=H,wt=bt,xt=u,kt=l.String,_t=!!Object.getOwnPropertySymbols&&!xt((function(){var t=Symbol("symbol detection");return!kt(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&wt&&wt<41})),Et=_t&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,St=ct,Ot=I,Ct=ht,Tt=Object,Pt=Et?function(t){return"symbol"==typeof t}:function(t){var e=St("Symbol");return Ot(e)&&Ct(e.prototype,Tt(t))},jt=String,It=function(t){try{return jt(t)}catch(t){return"Object"}},Nt=I,At=It,Dt=TypeError,Mt=function(t){if(Nt(t))return t;throw new Dt(At(t)+" is not a function")},Ft=Mt,Rt=X,zt=function(t,e){var n=t[e];return Rt(n)?void 0:Ft(n)},Lt=F,Bt=I,Wt=it,Ht=TypeError,Ut={exports:{}},Vt=l,qt=Object.defineProperty,Gt=function(t,e){try{qt(Vt,t,{value:e,configurable:!0,writable:!0})}catch(i){Vt[t]=e}return e},Yt="__core-js_shared__",$t=l[Yt]||Gt(Yt,{}),Xt=$t;(Ut.exports=function(t,e){return Xt[t]||(Xt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.33.2",mode:"pure",copyright:"\xa9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.2/LICENSE",source:"https://github.com/zloirock/core-js"});var Kt=Ut.exports,Qt=J,Jt=Object,Zt=function(t){return Jt(Qt(t))},te=Zt,ee=w({}.hasOwnProperty),ne=Object.hasOwn||function(t,e){return ee(te(t),e)},re=w,ie=0,oe=Math.random(),ae=re(1..toString),se=function(t){return"Symbol("+(void 0===t?"":t)+")_"+ae(++ie+oe,36)},le=Kt,ue=ne,ce=se,he=_t,de=Et,fe=l.Symbol,pe=le("wks"),ve=de?fe.for||fe:fe&&fe.withoutSetter||ce,ye=function(t){return ue(pe,t)||(pe[t]=he&&ue(fe,t)?fe[t]:ve("Symbol."+t)),pe[t]},ge=F,me=it,be=Pt,we=zt,xe=function(t,e){var n,r;if("string"===e&&Bt(n=t.toString)&&!Wt(r=Lt(n,t)))return r;if(Bt(n=t.valueOf)&&!Wt(r=Lt(n,t)))return r;if("string"!==e&&Bt(n=t.toString)&&!Wt(r=Lt(n,t)))return r;throw new Ht("Can't convert object to primitive value")},ke=TypeError,_e=ye("toPrimitive"),Ee=function(t,e){if(!me(t)||be(t))return t;var n,r=we(t,_e);if(r){if(void 0===e&&(e="default"),n=ge(r,t,e),!me(n)||be(n))return n;throw new ke("Can't convert object to primitive value")}return void 0===e&&(e="number"),xe(t,e)},Se=Pt,Oe=function(t){var e=Ee(t,"string");return Se(e)?e:e+""},Ce=it,Te=l.document,Pe=Ce(Te)&&Ce(Te.createElement),je=function(t){return Pe?Te.createElement(t):{}},Ie=je,Ne=!A&&!u((function(){return 7!==Object.defineProperty(Ie("div"),"a",{get:function(){return 7}}).a})),Ae=A,De=F,Me=R,Fe=U,Re=et,ze=Oe,Le=ne,Be=Ne,We=Object.getOwnPropertyDescriptor;N.f=Ae?We:function(t,e){if(t=Re(t),e=ze(e),Be)try{return We(t,e)}catch(t){}if(Le(t,e))return Fe(!De(Me.f,t,e),t[e])};var He=u,Ue=I,Ve=/#|\.prototype\./,qe=function(t,e){var n=Ye[Ge(t)];return n===Xe||n!==$e&&(Ue(e)?He(e):!!e)},Ge=qe.normalize=function(t){return String(t).replace(Ve,".").toLowerCase()},Ye=qe.data={},$e=qe.NATIVE="N",Xe=qe.POLYFILL="P",Ke=qe,Qe=Mt,Je=c,Ze=C(C.bind),tn=function(t,e){return Qe(t),void 0===e?t:Je?Ze(t,e):function(){return t.apply(e,arguments)}},en={},nn=A&&u((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),rn=it,on=String,an=TypeError,sn=function(t){if(rn(t))return t;throw new an(on(t)+" is not an object")},ln=A,un=Ne,cn=nn,hn=sn,dn=Oe,fn=TypeError,pn=Object.defineProperty,vn=Object.getOwnPropertyDescriptor,yn="enumerable",gn="configurable",mn="writable";en.f=ln?cn?function(t,e,n){if(hn(t),e=dn(e),hn(n),"function"==typeof t&&"prototype"===e&&"value"in n&&mn in n&&!n[mn]){var r=vn(t,e);r&&r[mn]&&(t[e]=n.value,n={configurable:gn in n?n[gn]:r[gn],enumerable:yn in n?n[yn]:r[yn],writable:!1})}return pn(t,e,n)}:pn:function(t,e,n){if(hn(t),e=dn(e),hn(n),un)try{return pn(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new fn("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var bn=en,wn=U,xn=A?function(t,e,n){return bn.f(t,e,wn(1,n))}:function(t,e,n){return t[e]=n,t},kn=l,_n=v,En=C,Sn=I,On=N.f,Cn=Ke,Tn=ot,Pn=tn,jn=xn,In=ne,Nn=function(t){var e=function e(n,r,i){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,i)}return _n(t,this,arguments)};return e.prototype=t.prototype,e},An=function(t,e){var n,r,i,o,a,s,l,u,c,h=t.target,d=t.global,f=t.stat,p=t.proto,v=d?kn:f?kn[h]:(kn[h]||{}).prototype,y=d?Tn:Tn[h]||jn(Tn,h,{})[h],g=y.prototype;for(o in e)r=!(n=Cn(d?o:h+(f?".":"#")+o,t.forced))&&v&&In(v,o),s=y[o],r&&(l=t.dontCallGetSet?(c=On(v,o))&&c.value:v[o]),a=r&&l?l:e[o],r&&typeof s==typeof a||(u=t.bind&&r?Pn(a,kn):t.wrap&&r?Nn(a):p&&Sn(a)?En(a):a,(t.sham||a&&a.sham||s&&s.sham)&&jn(u,"sham",!0),jn(y,o,u),p&&(In(Tn,i=h+"Prototype")||jn(Tn,i,{}),jn(Tn[i],o,a),t.real&&g&&(n||!g[o])&&jn(g,o,a)))},Dn=An,Mn=A,Fn=en.f;Dn({target:"Object",stat:!0,forced:Object.defineProperty!==Fn,sham:!Mn},{defineProperty:Fn});var Rn=ot.Object,zn=a.exports=function(t,e,n){return Rn.defineProperty(t,e,n)};Rn.defineProperty.sham&&(zn.sham=!0);var Ln=a.exports,Bn=Ln,Wn=o(Bn),Hn=E,Un=Array.isArray||function(t){return"Array"===Hn(t)},Vn=Math.ceil,qn=Math.floor,Gn=Math.trunc||function(t){var e=+t;return(e>0?qn:Vn)(e)},Yn=function(t){var e=+t;return e!=e||0===e?0:Gn(e)},$n=Yn,Xn=Math.min,Kn=function(t){return t>0?Xn($n(t),9007199254740991):0},Qn=function(t){return Kn(t.length)},Jn=TypeError,Zn=function(t){if(t>9007199254740991)throw Jn("Maximum allowed index exceeded");return t},tr=Oe,er=en,nr=U,rr=function(t,e,n){var r=tr(e);r in t?er.f(t,r,nr(0,n)):t[r]=n},ir={};ir[ye("toStringTag")]="z";var or="[object z]"===String(ir),ar=or,sr=I,lr=E,ur=ye("toStringTag"),cr=Object,hr="Arguments"===lr(function(){return arguments}()),dr=ar?lr:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=cr(t),ur))?n:hr?lr(e):"Object"===(r=lr(e))&&sr(e.callee)?"Arguments":r},fr=I,pr=$t,vr=w(Function.toString);fr(pr.inspectSource)||(pr.inspectSource=function(t){return vr(t)});var yr=pr.inspectSource,gr=w,mr=u,br=I,wr=dr,xr=yr,kr=function(){},_r=[],Er=ct("Reflect","construct"),Sr=/^\s*(?:class|function)\b/,Or=gr(Sr.exec),Cr=!Sr.test(kr),Tr=function(t){if(!br(t))return!1;try{return Er(kr,_r,t),!0}catch(t){return!1}},Pr=function(t){if(!br(t))return!1;switch(wr(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Cr||!!Or(Sr,xr(t))}catch(t){return!0}};Pr.sham=!0;var jr=!Er||mr((function(){var t;return Tr(Tr.call)||!Tr(Object)||!Tr((function(){t=!0}))||t}))?Pr:Tr,Ir=Un,Nr=jr,Ar=it,Dr=ye("species"),Mr=Array,Fr=function(t){var e;return Ir(t)&&(e=t.constructor,(Nr(e)&&(e===Mr||Ir(e.prototype))||Ar(e)&&null===(e=e[Dr]))&&(e=void 0)),void 0===e?Mr:e},Rr=function(t,e){return new(Fr(t))(0===e?0:e)},zr=u,Lr=bt,Br=ye("species"),Wr=function(t){return Lr>=51||!zr((function(){var e=[];return(e.constructor={})[Br]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Hr=An,Ur=u,Vr=Un,qr=it,Gr=Zt,Yr=Qn,$r=Zn,Xr=rr,Kr=Rr,Qr=Wr,Jr=bt,Zr=ye("isConcatSpreadable"),ti=Jr>=51||!Ur((function(){var t=[];return t[Zr]=!1,t.concat()[0]!==t})),ei=function(t){if(!qr(t))return!1;var e=t[Zr];return void 0!==e?!!e:Vr(t)};Hr({target:"Array",proto:!0,arity:1,forced:!ti||!Qr("concat")},{concat:function(t){var e,n,r,i,o,a=Gr(this),s=Kr(a,0),l=0;for(e=-1,r=arguments.length;es;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((t||s in o)&&o[s]===n)return t||s||0;return!t&&-1}},pi={includes:fi(!0),indexOf:fi(!1)},vi={},yi=ne,gi=et,mi=pi.indexOf,bi=vi,wi=w([].push),xi=function(t,e){var n,r=gi(t),i=0,o=[];for(n in r)!yi(bi,n)&&yi(r,n)&&wi(o,n);for(;e.length>i;)yi(r,n=e[i++])&&(~mi(o,n)||wi(o,n));return o},ki=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],_i=xi,Ei=ki,Si=Object.keys||function(t){return _i(t,Ei)},Oi=A,Ci=nn,Ti=en,Pi=sn,ji=et,Ii=Si;oi.f=Oi&&!Ci?Object.defineProperties:function(t,e){Pi(t);for(var n,r=ji(e),i=Ii(e),o=i.length,a=0;o>a;)Ti.f(t,n=i[a++],r[n]);return t};var Ni,Ai=ct("document","documentElement"),Di=se,Mi=Kt("keys"),Fi=function(t){return Mi[t]||(Mi[t]=Di(t))},Ri=sn,zi=oi,Li=ki,Bi=vi,Wi=Ai,Hi=je,Ui="prototype",Vi="script",qi=Fi("IE_PROTO"),Gi=function(){},Yi=function(t){return"<"+Vi+">"+t+""+Vi+">"},$i=function(t){t.write(Yi("")),t.close();var e=t.parentWindow.Object;return t=null,e},Xi=function(){try{Ni=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;Xi="undefined"!=typeof document?document.domain&&Ni?$i(Ni):(e=Hi("iframe"),n="java"+Vi+":",e.style.display="none",Wi.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(Yi("document.F=Object")),t.close(),t.F):$i(Ni);for(var r=Li.length;r--;)delete Xi[Ui][Li[r]];return Xi()};Bi[qi]=!0;var Ki=Object.create||function(t,e){var n;return null!==t?(Gi[Ui]=Ri(t),n=new Gi,Gi[Ui]=null,n[qi]=t):n=Xi(),void 0===e?n:zi.f(n,e)},Qi={},Ji=xi,Zi=ki.concat("length","prototype");Qi.f=Object.getOwnPropertyNames||function(t){return Ji(t,Zi)};var to={},eo=ui,no=Qn,ro=rr,io=Array,oo=Math.max,ao=function(t,e,n){for(var r=no(t),i=eo(e,r),o=eo(void 0===n?r:n,r),a=io(oo(o-i,0)),s=0;im;m++)if((s||m in v)&&(f=y(d=v[m],m,p),t))if(e)w[m]=f;else if(f)switch(t){case 3:return!0;case 5:return d;case 6:return m;case 2:ua(w,d)}else switch(t){case 4:return!1;case 7:ua(w,d)}return o?-1:r||i?i:w}},ha={forEach:ca(0),map:ca(1),filter:ca(2),some:ca(3),every:ca(4),find:ca(5),findIndex:ca(6),filterReject:ca(7)},da=An,fa=l,pa=F,va=w,ya=A,ga=_t,ma=u,ba=ne,wa=ht,xa=sn,ka=et,_a=Oe,Ea=ii,Sa=U,Oa=Ki,Ca=Si,Ta=Qi,Pa=to,ja=fo,Ia=N,Na=en,Aa=oi,Da=R,Ma=vo,Fa=go,Ra=Kt,za=vi,La=se,Ba=ye,Wa=mo,Ha=Co,Ua=No,Va=Wo,qa=ra,Ga=ha.forEach,Ya=Fi("hidden"),$a="Symbol",Xa="prototype",Ka=qa.set,Qa=qa.getterFor($a),Ja=Object[Xa],Za=fa.Symbol,ts=Za&&Za[Xa],es=fa.RangeError,ns=fa.TypeError,rs=fa.QObject,is=Ia.f,os=Na.f,as=Pa.f,ss=Da.f,ls=va([].push),us=Ra("symbols"),cs=Ra("op-symbols"),hs=Ra("wks"),ds=!rs||!rs[Xa]||!rs[Xa].findChild,fs=function(t,e,n){var r=is(Ja,e);r&&delete Ja[e],os(t,e,n),r&&t!==Ja&&os(Ja,e,r)},ps=ya&&ma((function(){return 7!==Oa(os({},"a",{get:function(){return os(this,"a",{value:7}).a}})).a}))?fs:os,vs=function(t,e){var n=us[t]=Oa(ts);return Ka(n,{type:$a,tag:t,description:e}),ya||(n.description=e),n},ys=function t(e,n,r){e===Ja&&t(cs,n,r),xa(e);var i=_a(n);return xa(r),ba(us,i)?(r.enumerable?(ba(e,Ya)&&e[Ya][i]&&(e[Ya][i]=!1),r=Oa(r,{enumerable:Sa(0,!1)})):(ba(e,Ya)||os(e,Ya,Sa(1,{})),e[Ya][i]=!0),ps(e,i,r)):os(e,i,r)},gs=function(t,e){xa(t);var n=ka(e),r=Ca(n).concat(xs(n));return Ga(r,(function(e){ya&&!pa(ms,n,e)||ys(t,e,n[e])})),t},ms=function(t){var e=_a(t),n=pa(ss,this,e);return!(this===Ja&&ba(us,e)&&!ba(cs,e))&&(!(n||!ba(this,e)||!ba(us,e)||ba(this,Ya)&&this[Ya][e])||n)},bs=function(t,e){var n=ka(t),r=_a(e);if(n!==Ja||!ba(us,r)||ba(cs,r)){var i=is(n,r);return!i||!ba(us,r)||ba(n,Ya)&&n[Ya][r]||(i.enumerable=!0),i}},ws=function(t){var e=as(ka(t)),n=[];return Ga(e,(function(t){ba(us,t)||ba(za,t)||ls(n,t)})),n},xs=function(t){var e=t===Ja,n=as(e?cs:ka(t)),r=[];return Ga(n,(function(t){!ba(us,t)||e&&!ba(Ja,t)||ls(r,us[t])})),r};ga||(Za=function(){if(wa(ts,this))throw new ns("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?Ea(arguments[0]):void 0,e=La(t),n=function t(n){var r=void 0===this?fa:this;r===Ja&&pa(t,cs,n),ba(r,Ya)&&ba(r[Ya],e)&&(r[Ya][e]=!1);var i=Sa(1,n);try{ps(r,e,i)}catch(n){if(!(n instanceof es))throw n;fs(r,e,i)}};return ya&&ds&&ps(Ja,e,{configurable:!0,set:n}),vs(e,t)},Ma(ts=Za[Xa],"toString",(function(){return Qa(this).tag})),Ma(Za,"withoutSetter",(function(t){return vs(La(t),t)})),Da.f=ms,Na.f=ys,Aa.f=gs,Ia.f=bs,Ta.f=Pa.f=ws,ja.f=xs,Wa.f=function(t){return vs(Ba(t),t)},ya&&Fa(ts,"description",{configurable:!0,get:function(){return Qa(this).description}})),da({global:!0,constructor:!0,wrap:!0,forced:!ga,sham:!ga},{Symbol:Za}),Ga(Ca(hs),(function(t){Ha(t)})),da({target:$a,stat:!0,forced:!ga},{useSetter:function(){ds=!0},useSimple:function(){ds=!1}}),da({target:"Object",stat:!0,forced:!ga,sham:!ya},{create:function(t,e){return void 0===e?Oa(t):gs(Oa(t),e)},defineProperty:ys,defineProperties:gs,getOwnPropertyDescriptor:bs}),da({target:"Object",stat:!0,forced:!ga},{getOwnPropertyNames:ws}),Ua(),Va(Za,$a),za[Ya]=!0;var ks=_t&&!!Symbol.for&&!!Symbol.keyFor,_s=An,Es=ct,Ss=ne,Os=ii,Cs=Kt,Ts=ks,Ps=Cs("string-to-symbol-registry"),js=Cs("symbol-to-string-registry");_s({target:"Symbol",stat:!0,forced:!Ts},{for:function(t){var e=Os(t);if(Ss(Ps,e))return Ps[e];var n=Es("Symbol")(e);return Ps[e]=n,js[n]=e,n}});var Is=An,Ns=ne,As=Pt,Ds=It,Ms=ks,Fs=Kt("symbol-to-string-registry");Is({target:"Symbol",stat:!0,forced:!Ms},{keyFor:function(t){if(!As(t))throw new TypeError(Ds(t)+" is not a symbol");if(Ns(Fs,t))return Fs[t]}});var Rs=w([].slice),zs=Un,Ls=I,Bs=E,Ws=ii,Hs=w([].push),Us=An,Vs=ct,qs=v,Gs=F,Ys=w,$s=u,Xs=I,Ks=Pt,Qs=Rs,Js=function(t){if(Ls(t))return t;if(zs(t)){for(var e=t.length,n=[],r=0;r=e.length)return t.target=void 0,Iu(void 0,!0);switch(t.kind){case"keys":return Iu(n,!1);case"values":return Iu(e[n],!1)}return Iu([n,e[n]],!1)}),"values"),Tu.Arguments=Tu.Array;var Mu={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Fu=l,Ru=dr,zu=xn,Lu=_l,Bu=ye("toStringTag");for(var Wu in Mu){var Hu=Fu[Wu],Uu=Hu&&Hu.prototype;Uu&&Ru(Uu)!==Bu&&zu(Uu,Bu,Wu),Lu[Wu]=Lu.Array}var Vu=kl,qu=ye,Gu=en.f,Yu=qu("metadata"),$u=Function.prototype;void 0===$u[Yu]&&Gu($u,Yu,{value:null}),Co("asyncDispose"),Co("dispose"),Co("metadata");var Xu=Vu,Ku=w,Qu=ct("Symbol"),Ju=Qu.keyFor,Zu=Ku(Qu.prototype.valueOf),tc=Qu.isRegisteredSymbol||function(t){try{return void 0!==Ju(Zu(t))}catch(t){return!1}};An({target:"Symbol",stat:!0},{isRegisteredSymbol:tc});for(var ec=Kt,nc=ct,rc=w,ic=Pt,oc=ye,ac=nc("Symbol"),sc=ac.isWellKnownSymbol,lc=nc("Object","getOwnPropertyNames"),uc=rc(ac.prototype.valueOf),cc=ec("wks"),hc=0,dc=lc(ac),fc=dc.length;hc=s?t?"":void 0:(r=_c(o,a))<55296||r>56319||a+1===s||(i=_c(o,a+1))<56320||i>57343?t?kc(o,a):r:t?Ec(o,a,a+2):i-56320+(r-55296<<10)+65536}},Oc=(Sc(!1),Sc(!0)),Cc=ii,Tc=ra,Pc=Su,jc=Ou,Ic="String Iterator",Nc=Tc.set,Ac=Tc.getterFor(Ic);Pc(String,"String",(function(t){Nc(this,{type:Ic,string:Cc(t),index:0})}),(function(){var t,e=Ac(this),n=e.string,r=e.index;return r>=n.length?jc(void 0,!0):(t=Oc(n,r),e.index+=t.length,jc(t,!1))}));var Dc=mo.f("iterator"),Mc=Dc,Fc=o(Mc);function Rc(t){return Rc="function"==typeof gc&&"symbol"==typeof Fc?function(t){return typeof t}:function(t){return t&&"function"==typeof gc&&t.constructor===gc&&t!==gc.prototype?"symbol":typeof t},Rc(t)}var zc=o(mo.f("toPrimitive"));function Lc(t){var e=function(t,e){if("object"!==Rc(t)||null===t)return t;var n=t[zc];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Rc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Rc(e)?e:String(e)}function Bc(t,e){for(var n=0;n=0:s>l;l+=u)l in a&&(i=n(i,a[l],l,o));return i}},yh={left:vh(!1),right:vh(!0)},gh=u,mh=function(t,e){var n=[][t];return!!n&&gh((function(){n.call(null,e||function(){return 1},1)}))},bh="process"===E(l.process),wh=yh.left;An({target:"Array",proto:!0,forced:!bh&&bt>79&&bt<83||!mh("reduce")},{reduce:function(t){var e=arguments.length;return wh(this,t,e,e>1?arguments[1]:void 0)}});var xh=rh("Array","reduce"),kh=ht,_h=xh,Eh=Array.prototype,Sh=o((function(t){var e=t.reduce;return t===Eh||kh(Eh,t)&&e===Eh.reduce?_h:e})),Oh=ha.filter;An({target:"Array",proto:!0,forced:!Wr("filter")},{filter:function(t){return Oh(this,t,arguments.length>1?arguments[1]:void 0)}});var Ch=rh("Array","filter"),Th=ht,Ph=Ch,jh=Array.prototype,Ih=o((function(t){var e=t.filter;return t===jh||Th(jh,t)&&e===jh.filter?Ph:e})),Nh=ha.map;An({target:"Array",proto:!0,forced:!Wr("map")},{map:function(t){return Nh(this,t,arguments.length>1?arguments[1]:void 0)}});var Ah=rh("Array","map"),Dh=ht,Mh=Ah,Fh=Array.prototype,Rh=o((function(t){var e=t.map;return t===Fh||Dh(Fh,t)&&e===Fh.map?Mh:e})),zh=Un,Lh=Qn,Bh=Zn,Wh=tn,Hh=function t(e,n,r,i,o,a,s,l){for(var u,c=o,h=0,d=!!s&&Wh(s,l);h0&&zh(u)?c=t(e,n,u,Lh(u),c,a-1)-1:(Bh(c+1),e[c]=u),c++),h++;return c},Uh=Hh,Vh=Mt,qh=Zt,Gh=Qn,Yh=Rr;An({target:"Array",proto:!0},{flatMap:function(t){var e,n=qh(this),r=Gh(n);return Vh(t),(e=Yh(n,0)).length=Uh(e,n,n,r,0,1,t,arguments.length>1?arguments[1]:void 0),e}});var $h=rh("Array","flatMap"),Xh=ht,Kh=$h,Qh=Array.prototype,Jh=o((function(t){var e=t.flatMap;return t===Qh||Xh(Qh,t)&&e===Qh.flatMap?Kh:e})),Zh=function(){function t(n,r,i){var o,a,s;e(this,t),Hc(this,"_listeners",{add:uh(o=this._add).call(o,this),remove:uh(a=this._remove).call(a,this),update:uh(s=this._update).call(s,this)}),this._source=n,this._transformers=r,this._target=i}return Wc(t,[{key:"all",value:function(){return this._target.update(this._transformItems(this._source.get())),this}},{key:"start",value:function(){return this._source.on("add",this._listeners.add),this._source.on("remove",this._listeners.remove),this._source.on("update",this._listeners.update),this}},{key:"stop",value:function(){return this._source.off("add",this._listeners.add),this._source.off("remove",this._listeners.remove),this._source.off("update",this._listeners.update),this}},{key:"_transformItems",value:function(t){var e;return Sh(e=this._transformers).call(e,(function(t,e){return e(t)}),t)}},{key:"_add",value:function(t,e){null!=e&&this._target.add(this._transformItems(this._source.get(e.items)))}},{key:"_update",value:function(t,e){null!=e&&this._target.update(this._transformItems(this._source.get(e.items)))}},{key:"_remove",value:function(t,e){null!=e&&this._target.remove(this._transformItems(e.oldData))}}]),t}(),td=function(){function t(n){e(this,t),Hc(this,"_transformers",[]),this._source=n}return Wc(t,[{key:"filter",value:function(t){return this._transformers.push((function(e){return Ih(e).call(e,t)})),this}},{key:"map",value:function(t){return this._transformers.push((function(e){return Rh(e).call(e,t)})),this}},{key:"flatMap",value:function(t){return this._transformers.push((function(e){return Jh(e).call(e,t)})),this}},{key:"to",value:function(t){return new Zh(this._source,this._transformers,t)}}]),t}(),ed=F,nd=sn,rd=zt,id=function(t,e,n){var r,i;nd(t);try{if(!(r=rd(t,"return"))){if("throw"===e)throw n;return n}r=ed(r,t)}catch(t){i=!0,r=t}if("throw"===e)throw n;if(i)throw r;return nd(r),n},od=sn,ad=id,sd=_l,ld=ye("iterator"),ud=Array.prototype,cd=function(t){return void 0!==t&&(sd.Array===t||ud[ld]===t)},hd=dr,dd=zt,fd=X,pd=_l,vd=ye("iterator"),yd=function(t){if(!fd(t))return dd(t,vd)||dd(t,"@@iterator")||pd[hd(t)]},gd=F,md=Mt,bd=sn,wd=It,xd=yd,kd=TypeError,_d=function(t,e){var n=arguments.length<2?xd(t):e;if(md(n))return bd(gd(n,t));throw new kd(wd(t)+" is not iterable")},Ed=tn,Sd=F,Od=Zt,Cd=function(t,e,n,r){try{return r?e(od(n)[0],n[1]):e(n)}catch(e){ad(t,"throw",e)}},Td=cd,Pd=jr,jd=Qn,Id=rr,Nd=_d,Ad=yd,Dd=Array,Md=ye("iterator"),Fd=!1;try{var Rd=0,zd={next:function(){return{done:!!Rd++}},return:function(){Fd=!0}};zd[Md]=function(){return this},Array.from(zd,(function(){throw 2}))}catch(t){}var Ld=function(t,e){try{if(!e&&!Fd)return!1}catch(t){return!1}var n=!1;try{var r={};r[Md]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n},Bd=function(t){var e=Od(t),n=Pd(this),r=arguments.length,i=r>1?arguments[1]:void 0,o=void 0!==i;o&&(i=Ed(i,r>2?arguments[2]:void 0));var a,s,l,u,c,h,d=Ad(e),f=0;if(!d||this===Dd&&Td(d))for(a=jd(e),s=n?new this(a):Dd(a);a>f;f++)h=o?i(e[f],f):e[f],Id(s,f,h);else for(c=(u=Nd(e,d)).next,s=n?new this:[];!(l=Sd(c,u)).done;f++)h=o?Cd(u,i,[l.value,f],!0):l.value,Id(s,f,h);return s.length=f,s};An({target:"Array",stat:!0,forced:!Ld((function(t){Array.from(t)}))},{from:Bd});var Wd=ot.Array.from,Hd=o(Wd),Ud=yd,Vd=o(Ud),qd=o(Ud);An({target:"Array",stat:!0},{isArray:Un});var Gd=ot.Array.isArray,Yd=o(Gd),$d=A,Xd=Un,Kd=TypeError,Qd=Object.getOwnPropertyDescriptor,Jd=$d&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}()?function(t,e){if(Xd(t)&&!Qd(t,"length").writable)throw new Kd("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},Zd=Zt,tf=Qn,ef=Jd,nf=Zn;An({target:"Array",proto:!0,arity:1,forced:u((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var e=Zd(this),n=tf(e),r=arguments.length;nf(n+r);for(var i=0;it.length)&&(e=t.length);for(var n=0,r=new Array(e);n1?arguments[1]:void 0)};An({target:"Array",proto:!0,forced:[].forEach!==ep},{forEach:ep});var np=rh("Array","forEach"),rp=dr,ip=ne,op=ht,ap=np,sp=Array.prototype,lp={DOMTokenList:!0,NodeList:!0},up=function(t){var e=t.forEach;return t===sp||op(sp,t)&&e===sp.forEach||ip(lp,rp(t))?ap:e},cp=o(up),hp=An,dp=Un,fp=w([].reverse),pp=[1,2];hp({target:"Array",proto:!0,forced:String(pp)===String(pp.reverse())},{reverse:function(){return dp(this)&&(this.length=this.length),fp(this)}});var vp=rh("Array","reverse"),yp=ht,gp=vp,mp=Array.prototype,bp=function(t){var e=t.reverse;return t===mp||yp(mp,t)&&e===mp.reverse?gp:e},wp=o(bp),xp=It,kp=TypeError,_p=function(t,e){if(!delete t[e])throw new kp("Cannot delete property "+xp(e)+" of "+xp(t))},Ep=An,Sp=Zt,Op=ui,Cp=Yn,Tp=Qn,Pp=Jd,jp=Zn,Ip=Rr,Np=rr,Ap=_p,Dp=Wr("splice"),Mp=Math.max,Fp=Math.min;Ep({target:"Array",proto:!0,forced:!Dp},{splice:function(t,e){var n,r,i,o,a,s,l=Sp(this),u=Tp(l),c=Op(t,u),h=arguments.length;for(0===h?n=r=0:1===h?(n=0,r=u-c):(n=h-2,r=Fp(Mp(Cp(e),0),u-c)),jp(u+n-r),i=Ip(l,r),o=0;ou-r+n;o--)Ap(l,o-1)}else if(n>r)for(o=u-r;o>c;o--)s=o+n-1,(a=o+r-1)in l?l[s]=l[a]:Ap(l,s);for(o=0;oi;)for(var s,l=Kp(arguments[i++]),u=o?Zp(Gp(l),o(l)):Gp(l),c=u.length,h=0;c>h;)s=u[h++],Hp&&!Vp(a,l,s)||(n[s]=l[s]);return n}:Qp,ev=tv;An({target:"Object",stat:!0,arity:2,forced:Object.assign!==ev},{assign:ev});var nv=o(ot.Object.assign),rv=Zt,iv=zl,ov=jl;An({target:"Object",stat:!0,forced:u((function(){iv(1)})),sham:!ov},{getPrototypeOf:function(t){return iv(rv(t))}});var av=ot.Object.getPrototypeOf;An({target:"Object",stat:!0,sham:!A},{create:Ki});var sv=ot.Object,lv=function(t,e){return sv.create(t,e)},uv=o(lv),cv=ot,hv=v;cv.JSON||(cv.JSON={stringify:JSON.stringify});var dv=function(t,e,n){return hv(cv.JSON.stringify,null,arguments)},fv=o(dv),pv="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,vv=TypeError,yv=function(t,e){if(tn,a=bv(r)?r:Ev(r),s=o?kv(arguments,n):[],l=o?function(){mv(a,this,s)}:a;return e?t(l,i):t(l)}:t},Cv=An,Tv=l,Pv=Ov(Tv.setInterval,!0);Cv({global:!0,bind:!0,forced:Tv.setInterval!==Pv},{setInterval:Pv});var jv=An,Iv=l,Nv=Ov(Iv.setTimeout,!0);jv({global:!0,bind:!0,forced:Iv.setTimeout!==Nv},{setTimeout:Nv});var Av=o(ot.setTimeout),Dv={exports:{}};!function(t){function e(t){if(t)return function(t){for(var n in e.prototype)t[n]=e.prototype[n];return t}(t)}t.exports=e,e.prototype.on=e.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},e.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+t];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var i=0;i-1}var Sy=function(){function t(t,e){this.manager=t,this.set(e)}var e=t.prototype;return e.set=function(t){t===Kv&&(t=this.compute()),Xv&&this.manager.element.style&&ny[t]&&(this.manager.element.style[$v]=t),this.actions=t.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var t=[];return ky(this.manager.recognizers,(function(e){_y(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(Ey(t,Zv))return Zv;var e=Ey(t,ty),n=Ey(t,ey);return e&&n?Zv:e||n?e?ty:ey:Ey(t,Jv)?Jv:Qv}(t.join(" "))},e.preventDefaults=function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var r=this.actions,i=Ey(r,Zv)&&!ny[Zv],o=Ey(r,ey)&&!ny[ey],a=Ey(r,ty)&&!ny[ty];if(i){var s=1===t.pointers.length,l=t.distance<2,u=t.deltaTime<250;if(s&&l&&u)return}if(!a||!o)return i||o&&n&gy||a&&n&my?this.preventSrc(e):void 0}},e.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},t}();function Oy(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function Cy(t){var e=t.length;if(1===e)return{x:Vv(t[0].clientX),y:Vv(t[0].clientY)};for(var n=0,r=0,i=0;i=qv(e)?t<0?fy:py:e<0?vy:yy}function Ny(t,e,n){return{x:e/t||0,y:n/t||0}}function Ay(t,e){var n=t.session,r=e.pointers,i=r.length;n.firstInput||(n.firstInput=Ty(e)),i>1&&!n.firstMultiple?n.firstMultiple=Ty(e):1===i&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,s=a?a.center:o.center,l=e.center=Cy(r);e.timeStamp=Gv(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=jy(s,l),e.distance=Py(s,l),function(t,e){var n=e.center,r=t.offsetDelta||{},i=t.prevDelta||{},o=t.prevInput||{};e.eventType!==uy&&o.eventType!==cy||(i=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=i.x+(n.x-r.x),e.deltaY=i.y+(n.y-r.y)}(n,e),e.offsetDirection=Iy(e.deltaX,e.deltaY);var u,c,h=Ny(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=h.x,e.overallVelocityY=h.y,e.overallVelocity=qv(h.x)>qv(h.y)?h.x:h.y,e.scale=a?(u=a.pointers,Py((c=r)[0],c[1],xy)/Py(u[0],u[1],xy)):1,e.rotation=a?function(t,e){return jy(e[1],e[0],xy)+jy(t[1],t[0],xy)}(a.pointers,r):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(t,e){var n,r,i,o,a=t.lastInterval||e,s=e.timeStamp-a.timeStamp;if(e.eventType!==hy&&(s>ly||void 0===a.velocity)){var l=e.deltaX-a.deltaX,u=e.deltaY-a.deltaY,c=Ny(s,l,u);r=c.x,i=c.y,n=qv(c.x)>qv(c.y)?c.x:c.y,o=Iy(l,u),t.lastInterval=e}else n=a.velocity,r=a.velocityX,i=a.velocityY,o=a.direction;e.velocity=n,e.velocityX=r,e.velocityY=i,e.direction=o}(n,e);var d,f=t.element,p=e.srcEvent;Oy(d=p.composedPath?p.composedPath()[0]:p.path?p.path[0]:p.target,f)&&(f=d),e.target=f}function Dy(t,e,n){var r=n.pointers.length,i=n.changedPointers.length,o=e&uy&&r-i==0,a=e&(cy|hy)&&r-i==0;n.isFirst=!!o,n.isFinal=!!a,o&&(t.session={}),n.eventType=e,Ay(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function My(t){return t.trim().split(/\s+/g)}function Fy(t,e,n){ky(My(e),(function(e){t.addEventListener(e,n,!1)}))}function Ry(t,e,n){ky(My(e),(function(e){t.removeEventListener(e,n,!1)}))}function zy(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var Ly=function(){function t(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){_y(t.options.enable,[t])&&n.handler(e)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&Fy(this.element,this.evEl,this.domHandler),this.evTarget&&Fy(this.target,this.evTarget,this.domHandler),this.evWin&&Fy(zy(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&Ry(this.element,this.evEl,this.domHandler),this.evTarget&&Ry(this.target,this.evTarget,this.domHandler),this.evWin&&Ry(zy(this.element),this.evWin,this.domHandler)},t}();function By(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var r=0;rn[e]})):r.sort()),r}var $y={touchstart:uy,touchmove:2,touchend:cy,touchcancel:hy},Xy=function(t){function e(){var n;return e.prototype.evTarget="touchstart touchmove touchend touchcancel",(n=t.apply(this,arguments)||this).targetIds={},n}return zv(e,t),e.prototype.handler=function(t){var e=$y[t.type],n=Ky.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:ay,srcEvent:t})},e}(Ly);function Ky(t,e){var n,r,i=Gy(t.touches),o=this.targetIds;if(e&(2|uy)&&1===i.length)return o[i[0].identifier]=!0,[i,i];var a=Gy(t.changedTouches),s=[],l=this.target;if(r=i.filter((function(t){return Oy(t.target,l)})),e===uy)for(n=0;n-1&&r.splice(t,1)}),Zy)}}function eg(t,e){t&uy?(this.primaryTouch=e.changedPointers[0].identifier,tg.call(this,e)):t&(cy|hy)&&tg.call(this,e)}function ng(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,r=0;r-1&&this.requireFail.splice(e,1),this},e.hasRequireFailures=function(){return this.requireFail.length>0},e.canRecognizeWith=function(t){return!!this.simultaneous[t.id]},e.emit=function(t){var e=this,n=this.state;function r(n){e.manager.emit(n,t)}n<8&&r(e.options.event+lg(n)),r(e.options.event),t.additionalEvent&&r(t.additionalEvent),n>=8&&r(e.options.event+lg(n))},e.tryEmit=function(t){if(this.canEmit())return this.emit(t);this.state=og},e.canEmit=function(){for(var t=0;te.threshold&&i&e.direction},n.attrTest=function(t){return hg.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},n.emit=function(e){this.pX=e.deltaX,this.pY=e.deltaY;var n=dg(e.direction);n&&(e.additionalEvent=this.options.event+n),t.prototype.emit.call(this,e)},e}(hg),pg=function(t){function e(e){return void 0===e&&(e={}),t.call(this,Rv({event:"swipe",threshold:10,velocity:.3,direction:gy|my,pointers:1},e))||this}zv(e,t);var n=e.prototype;return n.getTouchAction=function(){return fg.prototype.getTouchAction.call(this)},n.attrTest=function(e){var n,r=this.options.direction;return r&(gy|my)?n=e.overallVelocity:r&gy?n=e.overallVelocityX:r&my&&(n=e.overallVelocityY),t.prototype.attrTest.call(this,e)&&r&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers===this.options.pointers&&qv(n)>this.options.velocity&&e.eventType&cy},n.emit=function(t){var e=dg(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)},e}(hg),vg=function(t){function e(e){return void 0===e&&(e={}),t.call(this,Rv({event:"pinch",threshold:0,pointers:2},e))||this}zv(e,t);var n=e.prototype;return n.getTouchAction=function(){return[Zv]},n.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},n.emit=function(e){if(1!==e.scale){var n=e.scale<1?"in":"out";e.additionalEvent=this.options.event+n}t.prototype.emit.call(this,e)},e}(hg),yg=function(t){function e(e){return void 0===e&&(e={}),t.call(this,Rv({event:"rotate",threshold:0,pointers:2},e))||this}zv(e,t);var n=e.prototype;return n.getTouchAction=function(){return[Zv]},n.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)},e}(hg),gg=function(t){function e(e){var n;return void 0===e&&(e={}),(n=t.call(this,Rv({event:"press",pointers:1,time:251,threshold:9},e))||this)._timer=null,n._input=null,n}zv(e,t);var n=e.prototype;return n.getTouchAction=function(){return[Qv]},n.process=function(t){var e=this,n=this.options,r=t.pointers.length===n.pointers,i=t.distancen.time;if(this._input=t,!i||!r||t.eventType&(cy|hy)&&!o)this.reset();else if(t.eventType&uy)this.reset(),this._timer=setTimeout((function(){e.state=8,e.tryEmit()}),n.time);else if(t.eventType&cy)return 8;return og},n.reset=function(){clearTimeout(this._timer)},n.emit=function(t){8===this.state&&(t&&t.eventType&cy?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=Gv(),this.manager.emit(this.options.event,this._input)))},e}(ug),mg={domEvents:!1,touchAction:Kv,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},bg=[[yg,{enable:!1}],[vg,{enable:!1},["rotate"]],[pg,{direction:gy}],[fg,{direction:gy},["swipe"]],[cg],[cg,{event:"doubletap",taps:2},["tap"]],[gg]];function wg(t,e){var n,r=t.element;r.style&&(ky(t.options.cssProps,(function(i,o){n=Yv(r.style,o),e?(t.oldCssProps[n]=r.style[n],r.style[n]=i):r.style[n]=t.oldCssProps[n]||""})),e||(t.oldCssProps={}))}var xg=function(){function t(t,e){var n,r=this;this.options=Wv({},mg,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((n=this).options.inputClass||(iy?qy:oy?Xy:ry?rg:Jy))(n,Dy),this.touchAction=new Sy(this,this.options.touchAction),wg(this,!0),ky(this.options.recognizers,(function(t){var e=r.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}var e=t.prototype;return e.set=function(t){return Wv(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},e.stop=function(t){this.session.stopped=t?2:1},e.recognize=function(t){var e=this.session;if(!e.stopped){var n;this.touchAction.preventDefaults(t);var r=this.recognizers,i=e.curRecognizer;(!i||i&&8&i.state)&&(e.curRecognizer=null,i=null);for(var o=0;o\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",i=window.console&&(window.console.warn||window.console.log);return i&&i.call(window.console,r,n),t.apply(this,arguments)}}var Og=Sg((function(t,e,n){for(var r=Object.keys(e),i=0;i=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Ng(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n2)return Mg.apply(void 0,Wf(r=[Dg(e[0],e[1])]).call(r,Mf(Hf(e).call(e,2))));var i=e[0],o=e[1];if(i instanceof Date&&o instanceof Date)return i.setTime(o.getTime()),i;var a,s=Ig(Xf(o));try{for(s.s();!(a=s.n()).done;){var l=a.value;Object.prototype.propertyIsEnumerable.call(o,l)&&(o[l]===Ag?delete i[l]:null===i[l]||null===o[l]||"object"!=typeof i[l]||"object"!=typeof o[l]||Kf(i[l])||Kf(o[l])?i[l]=Fg(o[l]):i[l]=Mg(i[l],o[l]))}}catch(t){s.e(t)}finally{s.f()}return i}function Fg(t){return Kf(t)?Rh(t).call(t,(function(t){return Fg(t)})):"object"==typeof t&&null!==t?t instanceof Date?new Date(t.getTime()):Mg({},t):t}function Rg(t){for(var e=0,n=Zf(t);es;)void 0!==(n=i(r,e=o[s++]))&&mm(a,e,n);return a}});var bm=o(ot.Object.getOwnPropertyDescriptors),wm={exports:{}},xm=An,km=A,_m=oi.f;xm({target:"Object",stat:!0,forced:Object.defineProperties!==_m,sham:!km},{defineProperties:_m});var Em=ot.Object,Sm=wm.exports=function(t,e){return Em.defineProperties(t,e)};Em.defineProperties.sham&&(Sm.sham=!0);var Om=o(wm.exports),Cm=o(Ln);function Tm(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var Pm=lv,jm=o(Pm);An({target:"Object",stat:!0},{setPrototypeOf:uu});var Im=ot.Object.setPrototypeOf,Nm=o(Im),Am=o(lh);function Dm(t,e){var n;return Dm=Nm?Am(n=Nm).call(n):function(t,e){return t.__proto__=e,t},Dm(t,e)}function Mm(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=jm(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Wn(t,"prototype",{writable:!1}),e&&Dm(t,e)}function Fm(t,e){if(e&&("object"===Rc(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Tm(t)}var Rm=av,zm=o(Rm);function Lm(t){var e;return Lm=Nm?Am(e=zm).call(e):function(t){return t.__proto__||zm(t)},Lm(t)}var Bm={exports:{}},Wm={exports:{}};!function(t){var e=yc,n=Mc;function r(i){return t.exports=r="function"==typeof e&&"symbol"==typeof n?function(t){return typeof t}:function(t){return t&&"function"==typeof e&&t.constructor===e&&t!==e.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,r(i)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}(Wm);var Hm=Wm.exports,Um=up,Vm=ne,qm=$f,Gm=N,Ym=en,$m=it,Xm=xn,Km=Error,Qm=w("".replace),Jm=String(new Km("zxcasd").stack),Zm=/\n\s*at [^:]*:[^\n]*/,tb=Zm.test(Jm),eb=U,nb=!u((function(){var t=new Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",eb(1,7)),7!==t.stack)})),rb=xn,ib=function(t,e){if(tb&&"string"==typeof t&&!Km.prepareStackTrace)for(;e--;)t=Qm(t,Zm,"");return t},ob=nb,ab=Error.captureStackTrace,sb=tn,lb=F,ub=sn,cb=It,hb=cd,db=Qn,fb=ht,pb=_d,vb=yd,yb=id,gb=TypeError,mb=function(t,e){this.stopped=t,this.result=e},bb=mb.prototype,wb=function(t,e,n){var r,i,o,a,s,l,u,c=n&&n.that,h=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_RECORD),f=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),v=sb(e,c),y=function(t){return r&&yb(r,"normal",t),new mb(!0,t)},g=function(t){return h?(ub(t),p?v(t[0],t[1],y):v(t[0],t[1])):p?v(t,y):v(t)};if(d)r=t.iterator;else if(f)r=t;else{if(!(i=vb(t)))throw new gb(cb(t)+" is not iterable");if(hb(i)){for(o=0,a=db(t);a>o;o++)if((s=g(t[o]))&&fb(bb,s))return s;return new mb(!1)}r=pb(t,i)}for(l=d?t.next:r.next;!(u=lb(l,r)).done;){try{s=g(u.value)}catch(t){yb(r,"throw",t)}if("object"==typeof s&&s&&fb(bb,s))return s}return new mb(!1)},xb=ii,kb=An,_b=ht,Eb=zl,Sb=uu,Ob=function(t,e,n){for(var r=qm(e),i=Ym.f,o=Gm.f,a=0;a2&&jb(r,arguments[2]);var o=[];return Nb(e,Fb,{that:o}),Tb(r,"errors",o),r};Sb?Sb(Rb,Mb):Ob(Rb,Mb,{name:!0});var zb=Rb.prototype=Cb(Mb.prototype,{constructor:Pb(1,Rb),message:Pb(1,""),name:Pb(1,"AggregateError")});kb({global:!0,constructor:!0,arity:2},{AggregateError:Rb});var Lb,Bb,Wb,Hb,Ub=ct,Vb=go,qb=A,Gb=ye("species"),Yb=function(t){var e=Ub(t);qb&&e&&!e[Gb]&&Vb(e,Gb,{configurable:!0,get:function(){return this}})},$b=ht,Xb=TypeError,Kb=function(t,e){if($b(e,t))return t;throw new Xb("Incorrect invocation")},Qb=sn,Jb=Ug,Zb=X,tw=ye("species"),ew=function(t,e){var n,r=Qb(t).constructor;return void 0===r||Zb(n=Qb(r)[tw])?e:Jb(n)},nw=/(?:ipad|iphone|ipod).*applewebkit/i.test(dt),rw=l,iw=v,ow=tn,aw=I,sw=ne,lw=u,uw=Ai,cw=Rs,hw=je,dw=yv,fw=nw,pw=bh,vw=rw.setImmediate,yw=rw.clearImmediate,gw=rw.process,mw=rw.Dispatch,bw=rw.Function,ww=rw.MessageChannel,xw=rw.String,kw=0,_w={},Ew="onreadystatechange";lw((function(){Lb=rw.location}));var Sw=function(t){if(sw(_w,t)){var e=_w[t];delete _w[t],e()}},Ow=function(t){return function(){Sw(t)}},Cw=function(t){Sw(t.data)},Tw=function(t){rw.postMessage(xw(t),Lb.protocol+"//"+Lb.host)};vw&&yw||(vw=function(t){dw(arguments.length,1);var e=aw(t)?t:bw(t),n=cw(arguments,1);return _w[++kw]=function(){iw(e,void 0,n)},Bb(kw),kw},yw=function(t){delete _w[t]},pw?Bb=function(t){gw.nextTick(Ow(t))}:mw&&mw.now?Bb=function(t){mw.now(Ow(t))}:ww&&!fw?(Hb=(Wb=new ww).port2,Wb.port1.onmessage=Cw,Bb=ow(Hb.postMessage,Hb)):rw.addEventListener&&aw(rw.postMessage)&&!rw.importScripts&&Lb&&"file:"!==Lb.protocol&&!lw(Tw)?(Bb=Tw,rw.addEventListener("message",Cw,!1)):Bb=Ew in hw("script")?function(t){uw.appendChild(hw("script"))[Ew]=function(){uw.removeChild(this),Sw(t)}}:function(t){setTimeout(Ow(t),0)});var Pw={set:vw,clear:yw},jw=function(){this.head=null,this.tail=null};jw.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var Iw,Nw,Aw,Dw,Mw,Fw=jw,Rw=/ipad|iphone|ipod/i.test(dt)&&"undefined"!=typeof Pebble,zw=/web0s(?!.*chrome)/i.test(dt),Lw=l,Bw=tn,Ww=N.f,Hw=Pw.set,Uw=Fw,Vw=nw,qw=Rw,Gw=zw,Yw=bh,$w=Lw.MutationObserver||Lw.WebKitMutationObserver,Xw=Lw.document,Kw=Lw.process,Qw=Lw.Promise,Jw=Ww(Lw,"queueMicrotask"),Zw=Jw&&Jw.value;if(!Zw){var tx=new Uw,ex=function(){var t,e;for(Yw&&(t=Kw.domain)&&t.exit();e=tx.get();)try{e()}catch(t){throw tx.head&&Iw(),t}t&&t.enter()};Vw||Yw||Gw||!$w||!Xw?!qw&&Qw&&Qw.resolve?((Dw=Qw.resolve(void 0)).constructor=Qw,Mw=Bw(Dw.then,Dw),Iw=function(){Mw(ex)}):Yw?Iw=function(){Kw.nextTick(ex)}:(Hw=Bw(Hw,Lw),Iw=function(){Hw(ex)}):(Nw=!0,Aw=Xw.createTextNode(""),new $w(ex).observe(Aw,{characterData:!0}),Iw=function(){Aw.data=Nw=!Nw}),Zw=function(t){tx.head||Iw(),tx.add(t)}}var nx=Zw,rx=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},ix=l.Promise,ox="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,ax=!ox&&!bh&&"object"==typeof window&&"object"==typeof document,sx=l,lx=ix,ux=I,cx=Ke,hx=yr,dx=ye,fx=ax,px=ox,vx=bt,yx=lx&&lx.prototype,gx=dx("species"),mx=!1,bx=ux(sx.PromiseRejectionEvent),wx=cx("Promise",(function(){var t=hx(lx),e=t!==String(lx);if(!e&&66===vx)return!0;if(!yx.catch||!yx.finally)return!0;if(!vx||vx<51||!/native code/.test(t)){var n=new lx((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((n.constructor={})[gx]=r,!(mx=n.then((function(){}))instanceof r))return!0}return!e&&(fx||px)&&!bx})),xx={CONSTRUCTOR:wx,REJECTION_EVENT:bx,SUBCLASSING:mx},kx={},_x=Mt,Ex=TypeError,Sx=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw new Ex("Bad Promise constructor");e=t,n=r})),this.resolve=_x(e),this.reject=_x(n)};kx.f=function(t){return new Sx(t)};var Ox,Cx,Tx=An,Px=bh,jx=l,Ix=F,Nx=vo,Ax=Wo,Dx=Yb,Mx=Mt,Fx=I,Rx=it,zx=Kb,Lx=ew,Bx=Pw.set,Wx=nx,Hx=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}},Ux=rx,Vx=Fw,qx=ra,Gx=ix,Yx=xx,$x=kx,Xx="Promise",Kx=Yx.CONSTRUCTOR,Qx=Yx.REJECTION_EVENT,Jx=qx.getterFor(Xx),Zx=qx.set,tk=Gx&&Gx.prototype,ek=Gx,nk=tk,rk=jx.TypeError,ik=jx.document,ok=jx.process,ak=$x.f,sk=ak,lk=!!(ik&&ik.createEvent&&jx.dispatchEvent),uk="unhandledrejection",ck=function(t){var e;return!(!Rx(t)||!Fx(e=t.then))&&e},hk=function(t,e){var n,r,i,o=e.value,a=1===e.state,s=a?t.ok:t.fail,l=t.resolve,u=t.reject,c=t.domain;try{s?(a||(2===e.rejection&&yk(e),e.rejection=1),!0===s?n=o:(c&&c.enter(),n=s(o),c&&(c.exit(),i=!0)),n===t.promise?u(new rk("Promise-chain cycle")):(r=ck(n))?Ix(r,n,l,u):l(n)):u(o)}catch(t){c&&!i&&c.exit(),u(t)}},dk=function(t,e){t.notified||(t.notified=!0,Wx((function(){for(var n,r=t.reactions;n=r.get();)hk(n,t);t.notified=!1,e&&!t.rejection&&pk(t)})))},fk=function(t,e,n){var r,i;lk?((r=ik.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),jx.dispatchEvent(r)):r={promise:e,reason:n},!Qx&&(i=jx["on"+t])?i(r):t===uk&&Hx("Unhandled promise rejection",n)},pk=function(t){Ix(Bx,jx,(function(){var e,n=t.facade,r=t.value;if(vk(t)&&(e=Ux((function(){Px?ok.emit("unhandledRejection",r,n):fk(uk,n,r)})),t.rejection=Px||vk(t)?2:1,e.error))throw e.value}))},vk=function(t){return 1!==t.rejection&&!t.parent},yk=function(t){Ix(Bx,jx,(function(){var e=t.facade;Px?ok.emit("rejectionHandled",e):fk("rejectionhandled",e,t.value)}))},gk=function(t,e,n){return function(r){t(e,r,n)}},mk=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,dk(t,!0))},bk=function t(e,n,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===n)throw new rk("Promise can't be resolved itself");var i=ck(n);i?Wx((function(){var r={done:!1};try{Ix(i,n,gk(t,r,e),gk(mk,r,e))}catch(n){mk(r,n,e)}})):(e.value=n,e.state=1,dk(e,!1))}catch(n){mk({done:!1},n,e)}}};Kx&&(nk=(ek=function(t){zx(this,nk),Mx(t),Ix(Ox,this);var e=Jx(this);try{t(gk(bk,e),gk(mk,e))}catch(t){mk(e,t)}}).prototype,(Ox=function(t){Zx(this,{type:Xx,done:!1,notified:!1,parent:!1,reactions:new Vx,rejection:!1,state:0,value:void 0})}).prototype=Nx(nk,"then",(function(t,e){var n=Jx(this),r=ak(Lx(this,ek));return n.parent=!0,r.ok=!Fx(t)||t,r.fail=Fx(e)&&e,r.domain=Px?ok.domain:void 0,0===n.state?n.reactions.add(r):Wx((function(){hk(r,n)})),r.promise})),Cx=function(){var t=new Ox,e=Jx(t);this.promise=t,this.resolve=gk(bk,e),this.reject=gk(mk,e)},$x.f=ak=function(t){return t===ek||void 0===t?new Cx(t):sk(t)}),Tx({global:!0,constructor:!0,wrap:!0,forced:Kx},{Promise:ek}),Ax(ek,Xx,!1,!0),Dx(Xx);var wk=ix,xk=xx.CONSTRUCTOR||!Ld((function(t){wk.all(t).then(void 0,(function(){}))})),kk=F,_k=Mt,Ek=kx,Sk=rx,Ok=wb;An({target:"Promise",stat:!0,forced:xk},{all:function(t){var e=this,n=Ek.f(e),r=n.resolve,i=n.reject,o=Sk((function(){var n=_k(e.resolve),o=[],a=0,s=1;Ok(t,(function(t){var l=a++,u=!1;s++,kk(n,e,t).then((function(t){u||(u=!0,o[l]=t,--s||r(o))}),i)})),--s||r(o)}));return o.error&&i(o.value),n.promise}});var Ck=An,Tk=xx.CONSTRUCTOR;ix&&ix.prototype,Ck({target:"Promise",proto:!0,forced:Tk,real:!0},{catch:function(t){return this.then(void 0,t)}});var Pk=F,jk=Mt,Ik=kx,Nk=rx,Ak=wb;An({target:"Promise",stat:!0,forced:xk},{race:function(t){var e=this,n=Ik.f(e),r=n.reject,i=Nk((function(){var i=jk(e.resolve);Ak(t,(function(t){Pk(i,e,t).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var Dk=F,Mk=kx;An({target:"Promise",stat:!0,forced:xx.CONSTRUCTOR},{reject:function(t){var e=Mk.f(this);return Dk(e.reject,void 0,t),e.promise}});var Fk=sn,Rk=it,zk=kx,Lk=function(t,e){if(Fk(t),Rk(e)&&e.constructor===t)return e;var n=zk.f(t);return(0,n.resolve)(e),n.promise},Bk=An,Wk=ix,Hk=xx.CONSTRUCTOR,Uk=Lk,Vk=ct("Promise"),qk=!Hk;Bk({target:"Promise",stat:!0,forced:!0},{resolve:function(t){return Uk(qk&&this===Vk?Wk:this,t)}});var Gk=F,Yk=Mt,$k=kx,Xk=rx,Kk=wb;An({target:"Promise",stat:!0,forced:xk},{allSettled:function(t){var e=this,n=$k.f(e),r=n.resolve,i=n.reject,o=Xk((function(){var n=Yk(e.resolve),i=[],o=0,a=1;Kk(t,(function(t){var s=o++,l=!1;a++,Gk(n,e,t).then((function(t){l||(l=!0,i[s]={status:"fulfilled",value:t},--a||r(i))}),(function(t){l||(l=!0,i[s]={status:"rejected",reason:t},--a||r(i))}))})),--a||r(i)}));return o.error&&i(o.value),n.promise}});var Qk=F,Jk=Mt,Zk=ct,t_=kx,e_=rx,n_=wb,r_="No one promise resolved";An({target:"Promise",stat:!0,forced:xk},{any:function(t){var e=this,n=Zk("AggregateError"),r=t_.f(e),i=r.resolve,o=r.reject,a=e_((function(){var r=Jk(e.resolve),a=[],s=0,l=1,u=!1;n_(t,(function(t){var c=s++,h=!1;l++,Qk(r,e,t).then((function(t){h||u||(u=!0,i(t))}),(function(t){h||u||(h=!0,a[c]=t,--l||o(new n(a,r_)))}))})),--l||o(new n(a,r_))}));return a.error&&o(a.value),r.promise}});var i_=An,o_=ix,a_=u,s_=ct,l_=I,u_=ew,c_=Lk,h_=o_&&o_.prototype;i_({target:"Promise",proto:!0,real:!0,forced:!!o_&&a_((function(){h_.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=u_(this,s_("Promise")),n=l_(t);return this.then(n?function(n){return c_(e,t()).then((function(){return n}))}:t,n?function(n){return c_(e,t()).then((function(){throw n}))}:t)}});var d_=ot.Promise,f_=kx;An({target:"Promise",stat:!0},{withResolvers:function(){var t=f_.f(this);return{promise:t.promise,resolve:t.resolve,reject:t.reject}}});var p_=d_,v_=kx,y_=rx;An({target:"Promise",stat:!0,forced:!0},{try:function(t){var e=v_.f(this),n=y_(t);return(n.error?e.reject:e.resolve)(n.value),e.promise}});var g_=p_,m_=bp;!function(t){var e=Hm.default,n=Bn,r=yc,i=Pm,o=Rm,a=Um,s=lf,l=Im,u=g_,c=m_,h=Pf;function d(){t.exports=d=function(){return p},t.exports.__esModule=!0,t.exports.default=t.exports;var f,p={},v=Object.prototype,y=v.hasOwnProperty,g=n||function(t,e,n){t[e]=n.value},m="function"==typeof r?r:{},b=m.iterator||"@@iterator",w=m.asyncIterator||"@@asyncIterator",x=m.toStringTag||"@@toStringTag";function k(t,e,r){return n(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{k({},"")}catch(f){k=function(t,e,n){return t[e]=n}}function _(t,e,n,r){var o=e&&e.prototype instanceof j?e:j,a=i(o.prototype),s=new H(r||[]);return g(a,"_invoke",{value:z(t,n,s)}),a}function E(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}p.wrap=_;var S="suspendedStart",O="suspendedYield",C="executing",T="completed",P={};function j(){}function I(){}function N(){}var A={};k(A,b,(function(){return this}));var D=o&&o(o(U([])));D&&D!==v&&y.call(D,b)&&(A=D);var M=N.prototype=j.prototype=i(A);function F(t){var e;a(e=["next","throw","return"]).call(e,(function(e){k(t,e,(function(t){return this._invoke(e,t)}))}))}function R(t,n){function r(i,o,a,s){var l=E(t[i],t,o);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==e(c)&&y.call(c,"__await")?n.resolve(c.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):n.resolve(c).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,s)}))}s(l.arg)}var i;g(this,"_invoke",{value:function(t,e){function o(){return new n((function(n,i){r(t,e,n,i)}))}return i=i?i.then(o,o):o()}})}function z(t,e,n){var r=S;return function(i,o){if(r===C)throw new Error("Generator is already running");if(r===T){if("throw"===i)throw o;return{value:f,done:!0}}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=L(a,n);if(s){if(s===P)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===S)throw r=T,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=C;var l=E(t,e,n);if("normal"===l.type){if(r=n.done?T:O,l.arg===P)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=T,n.method="throw",n.arg=l.arg)}}}function L(t,e){var n=e.method,r=t.iterator[n];if(r===f)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=f,L(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),P;var i=E(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,P;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=f),e.delegate=null,P):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,P)}function B(t){var e,n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),s(e=this.tryEntries).call(e,n)}function W(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function H(t){this.tryEntries=[{tryLoc:"root"}],a(t).call(t,B,this),this.reset(!0)}function U(t){if(t||""===t){var n=t[b];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r=0;--r){var i=this.tryEntries[r],o=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var a=y.call(i,"catchLoc"),s=y.call(i,"finallyLoc");if(a&&s){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&y.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),W(n),P}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;W(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:U(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=f),P}},p}t.exports=d,t.exports.__esModule=!0,t.exports.default=t.exports}(Bm);var b_=(0,Bm.exports)(),w_=b_;try{regeneratorRuntime=b_}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=b_:Function("r","regeneratorRuntime = r")(b_)}var x_=o(w_),k_={exports:{}},__=u((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),E_=u,S_=it,O_=E,C_=__,T_=Object.isExtensible,P_=E_((function(){T_(1)}))||C_?function(t){return!!S_(t)&&(!C_||"ArrayBuffer"!==O_(t))&&(!T_||T_(t))}:T_,j_=!u((function(){return Object.isExtensible(Object.preventExtensions({}))})),I_=An,N_=w,A_=vi,D_=it,M_=ne,F_=en.f,R_=Qi,z_=to,L_=P_,B_=j_,W_=!1,H_=se("meta"),U_=0,V_=function(t){F_(t,H_,{value:{objectID:"O"+U_++,weakData:{}}})},q_=k_.exports={enable:function(){q_.enable=function(){},W_=!0;var t=R_.f,e=N_([].splice),n={};n[H_]=1,t(n).length&&(R_.f=function(n){for(var r=t(n),i=0,o=r.length;i1?arguments[1]:void 0);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!l(this,t)}}),fE(o,n?{get:function(t){var e=l(this,t);return e&&e.value},set:function(t,e){return s(this,0===t?0:t,e)}}:{add:function(t){return s(this,t=0===t?0:t,t)}}),xE&&dE(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(t,e,n){var r=e+" Iterator",i=EE(e),o=EE(r);mE(t,e,(function(t,e){_E(this,{type:r,target:t,state:i(t),kind:e,last:void 0})}),(function(){for(var t=o(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?bE("keys"===e?n.key:"values"===e?n.value:[n.key,n.value],!1):(t.target=void 0,bE(void 0,!0))}),n?"entries":"values",!n,!0),wE(e)}};uE("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),SE);var OE=o(ot.Map),CE=ha.some;An({target:"Array",proto:!0,forced:!mh("some")},{some:function(t){return CE(this,t,arguments.length>1?arguments[1]:void 0)}});var TE=rh("Array","some"),PE=ht,jE=TE,IE=Array.prototype,NE=o((function(t){var e=t.some;return t===IE||PE(IE,t)&&e===IE.some?jE:e})),AE=rh("Array","keys"),DE=dr,ME=ne,FE=ht,RE=AE,zE=Array.prototype,LE={DOMTokenList:!0,NodeList:!0},BE=o((function(t){var e=t.keys;return t===zE||FE(zE,t)&&e===zE.keys||ME(LE,DE(t))?RE:e})),WE=ao,HE=Math.floor,UE=function t(e,n){var r=e.length,i=HE(r/2);return r<8?VE(e,n):qE(e,t(WE(e,0,i),n),t(WE(e,i),n),n)},VE=function(t,e){for(var n,r,i=t.length,o=1;o0;)t[r]=t[--r];r!==o++&&(t[r]=n)}return t},qE=function(t,e,n,r){for(var i=e.length,o=n.length,a=0,s=0;a3)){if(uS)return!0;if(hS)return hS<603;var t,e,n,r,i="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)dS.push({k:e+r,v:n})}for(dS.sort((function(t,e){return e.v-t.v})),r=0;riS(n)?1:-1}}(t)),n=nS(i),r=0;r1&&void 0!==arguments[1]?arguments[1]:0;return VS[t[e+0]]+VS[t[e+1]]+VS[t[e+2]]+VS[t[e+3]]+"-"+VS[t[e+4]]+VS[t[e+5]]+"-"+VS[t[e+6]]+VS[t[e+7]]+"-"+VS[t[e+8]]+VS[t[e+9]]+"-"+VS[t[e+10]]+VS[t[e+11]]+VS[t[e+12]]+VS[t[e+13]]+VS[t[e+14]]+VS[t[e+15]]}(r)}function $S(t){return"string"==typeof t||"number"==typeof t}var XS=function(){function t(n){e(this,t),Hc(this,"_queue",[]),Hc(this,"_timeout",null),Hc(this,"_extended",null),this.delay=null,this.max=1/0,this.setOptions(n)}return Wc(t,[{key:"setOptions",value:function(t){t&&void 0!==t.delay&&(this.delay=t.delay),t&&void 0!==t.max&&(this.max=t.max),this._flushIfNeeded()}},{key:"destroy",value:function(){if(this.flush(),this._extended){for(var t=this._extended.object,e=this._extended.methods,n=0;nthis.max&&this.flush(),null!=this._timeout&&(clearTimeout(this._timeout),this._timeout=null),this.queue.length>0&&"number"==typeof this.delay&&(this._timeout=Av((function(){t.flush()}),this.delay))}},{key:"flush",value:function(){var t,e;cp(t=Wp(e=this._queue).call(e,0)).call(t,(function(t){t.fn.apply(t.context||t.fn,t.args||[])}))}}],[{key:"extend",value:function(e,n){var r=new t(n);if(void 0!==e.flush)throw new Error("Target object already has a property flush");e.flush=function(){r.flush()};var i=[{name:"flush",original:void 0}];if(n&&n.replace)for(var o=0;o=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function tO(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);ni&&(i=l,r=s)}return r}},{key:"min",value:function(t){var e=JS(this._pairs),n=e.next();if(n.done)return null;for(var r=n.value[1],i=t(n.value[1],n.value[0]);!(n=e.next()).done;){var o=Df(n.value,2),a=o[0],s=o[1],l=t(s,a);l=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function oO(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1?n-1:0),i=1;ii?1:ri)&&(r=a,i=s)}}catch(t){o.e(t)}finally{o.f()}return r||null}},{key:"min",value:function(t){var e,n,r=null,i=null,o=iO(NS(e=this._data).call(e));try{for(o.s();!(n=o.n()).done;){var a=n.value,s=a[t];"number"==typeof s&&(null==i||s=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function uO(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&L[0]<4?1:+(L[0]+L[1])),!B&&dt&&(!(L=dt.match(/Edge\/(\d+)/))||L[1]>=74)&&(L=dt.match(/Chrome\/(\d+)/))&&(B=+L[1]);var gt=B,mt=gt,bt=s,wt=a.String,xt=!!Object.getOwnPropertySymbols&&!bt((function(){var t=Symbol("symbol detection");return!wt(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&mt&&mt<41})),kt=xt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,_t=lt,Et=P,St=ut,Ot=Object,Ct=kt?function(t){return"symbol"==typeof t}:function(t){var e=_t("Symbol");return Et(e)&&St(e.prototype,Ot(t))},Tt=String,Pt=function(t){try{return Tt(t)}catch(t){return"Object"}},jt=P,It=Pt,Nt=TypeError,At=function(t){if(jt(t))return t;throw new Nt(It(t)+" is not a function")},Dt=At,Mt=Y,Ft=function(t,e){var n=t[e];return Mt(n)?void 0:Dt(n)},Rt=D,zt=P,Lt=nt,Bt=TypeError,Wt={exports:{}},Ht=a,Ut=Object.defineProperty,Vt=function(t,e){try{Ut(Ht,t,{value:e,configurable:!0,writable:!0})}catch(r){Ht[t]=e}return e},qt="__core-js_shared__",Gt=a[qt]||Vt(qt,{}),Yt=Gt;(Wt.exports=function(t,e){return Yt[t]||(Yt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.33.0",mode:"pure",copyright:"\xa9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"});var $t=Wt.exports,Xt=K,Kt=Object,Qt=function(t){return Kt(Xt(t))},Jt=Qt,Zt=m({}.hasOwnProperty),te=Object.hasOwn||function(t,e){return Zt(Jt(t),e)},ee=m,ne=0,re=Math.random(),ie=ee(1..toString),oe=function(t){return"Symbol("+(void 0===t?"":t)+")_"+ie(++ne+re,36)},ae=$t,se=te,le=oe,ue=xt,ce=kt,he=a.Symbol,de=ae("wks"),fe=ce?he.for||he:he&&he.withoutSetter||le,pe=function(t){return se(de,t)||(de[t]=ue&&se(he,t)?he[t]:fe("Symbol."+t)),de[t]},ve=D,ye=nt,ge=Ct,me=Ft,be=function(t,e){var n,r;if("string"===e&&zt(n=t.toString)&&!Lt(r=Rt(n,t)))return r;if(zt(n=t.valueOf)&&!Lt(r=Rt(n,t)))return r;if("string"!==e&&zt(n=t.toString)&&!Lt(r=Rt(n,t)))return r;throw new Bt("Can't convert object to primitive value")},we=TypeError,xe=pe("toPrimitive"),ke=function(t,e){if(!ye(t)||ge(t))return t;var n,r=me(t,xe);if(r){if(void 0===e&&(e="default"),n=ve(r,t,e),!ye(n)||ge(n))return n;throw new we("Can't convert object to primitive value")}return void 0===e&&(e="number"),be(t,e)},_e=Ct,Ee=function(t){var e=ke(t,"string");return _e(e)?e:e+""},Se=nt,Oe=a.document,Ce=Se(Oe)&&Se(Oe.createElement),Te=function(t){return Ce?Oe.createElement(t):{}},Pe=Te,je=!I&&!s((function(){return 7!==Object.defineProperty(Pe("div"),"a",{get:function(){return 7}}).a})),Ie=I,Ne=D,Ae=M,De=W,Me=Z,Fe=Ee,Re=te,ze=je,Le=Object.getOwnPropertyDescriptor;j.f=Ie?Le:function(t,e){if(t=Me(t),e=Fe(e),ze)try{return Le(t,e)}catch(t){}if(Re(t,e))return De(!Ne(Ae.f,t,e),t[e])};var Be=s,We=P,He=/#|\.prototype\./,Ue=function(t,e){var n=qe[Ve(t)];return n===Ye||n!==Ge&&(We(e)?Be(e):!!e)},Ve=Ue.normalize=function(t){return String(t).replace(He,".").toLowerCase()},qe=Ue.data={},Ge=Ue.NATIVE="N",Ye=Ue.POLYFILL="P",$e=Ue,Xe=At,Ke=l,Qe=S(S.bind),Je=function(t,e){return Xe(t),void 0===e?t:Ke?Qe(t,e):function(){return t.apply(e,arguments)}},Ze={},tn=I&&s((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),en=nt,nn=String,rn=TypeError,on=function(t){if(en(t))return t;throw new rn(nn(t)+" is not an object")},an=I,sn=je,ln=tn,un=on,cn=Ee,hn=TypeError,dn=Object.defineProperty,fn=Object.getOwnPropertyDescriptor,pn="enumerable",vn="configurable",yn="writable";Ze.f=an?ln?function(t,e,n){if(un(t),e=cn(e),un(n),"function"==typeof t&&"prototype"===e&&"value"in n&&yn in n&&!n[yn]){var r=fn(t,e);r&&r[yn]&&(t[e]=n.value,n={configurable:vn in n?n[vn]:r[vn],enumerable:pn in n?n[pn]:r[pn],writable:!1})}return dn(t,e,n)}:dn:function(t,e,n){if(un(t),e=cn(e),un(n),sn)try{return dn(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new hn("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var gn=Ze,mn=W,bn=I?function(t,e,n){return gn.f(t,e,mn(1,n))}:function(t,e,n){return t[e]=n,t},wn=a,xn=f,kn=S,_n=P,En=j.f,Sn=$e,On=rt,Cn=Je,Tn=bn,Pn=te,jn=function(t){var e=function e(n,r,i){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,i)}return xn(t,this,arguments)};return e.prototype=t.prototype,e},In=function(t,e){var n,r,i,o,a,s,l,u,c,h=t.target,d=t.global,f=t.stat,p=t.proto,v=d?wn:f?wn[h]:(wn[h]||{}).prototype,y=d?On:On[h]||Tn(On,h,{})[h],g=y.prototype;for(o in e)r=!(n=Sn(d?o:h+(f?".":"#")+o,t.forced))&&v&&Pn(v,o),s=y[o],r&&(l=t.dontCallGetSet?(c=En(v,o))&&c.value:v[o]),a=r&&l?l:e[o],r&&typeof s==typeof a||(u=t.bind&&r?Cn(a,wn):t.wrap&&r?jn(a):p&&_n(a)?kn(a):a,(t.sham||a&&a.sham||s&&s.sham)&&Tn(u,"sham",!0),Tn(y,o,u),p&&(Pn(On,i=h+"Prototype")||Tn(On,i,{}),Tn(On[i],o,a),t.real&&g&&(n||!g[o])&&Tn(g,o,a)))},Nn=Math.ceil,An=Math.floor,Dn=Math.trunc||function(t){var e=+t;return(e>0?An:Nn)(e)},Mn=function(t){var e=+t;return e!=e||0===e?0:Dn(e)},Fn=Mn,Rn=Math.max,zn=Math.min,Ln=function(t,e){var n=Fn(t);return n<0?Rn(n+e,0):zn(n,e)},Bn=Mn,Wn=Math.min,Hn=function(t){return t>0?Wn(Bn(t),9007199254740991):0},Un=function(t){return Hn(t.length)},Vn=Z,qn=Ln,Gn=Un,Yn=function(t){return function(e,n,r){var i,o=Vn(e),a=Gn(o),s=qn(r,a);if(t&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((t||s in o)&&o[s]===n)return t||s||0;return!t&&-1}},$n={includes:Yn(!0),indexOf:Yn(!1)},Xn={},Kn=te,Qn=Z,Jn=$n.indexOf,Zn=Xn,tr=m([].push),er=function(t,e){var n,r=Qn(t),i=0,o=[];for(n in r)!Kn(Zn,n)&&Kn(r,n)&&tr(o,n);for(;e.length>i;)Kn(r,n=e[i++])&&(~Jn(o,n)||tr(o,n));return o},nr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],rr=er,ir=nr,or=Object.keys||function(t){return rr(t,ir)},ar={};ar.f=Object.getOwnPropertySymbols;var sr=I,lr=m,ur=D,cr=s,hr=or,dr=ar,fr=M,pr=Qt,vr=G,yr=Object.assign,gr=Object.defineProperty,mr=lr([].concat),br=!yr||cr((function(){if(sr&&1!==yr({b:1},yr(gr({},"a",{enumerable:!0,get:function(){gr(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol("assign detection"),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!==yr({},t)[n]||hr(yr({},e)).join("")!==r}))?function(t,e){for(var n=pr(t),r=arguments.length,i=1,o=dr.f,a=fr.f;r>i;)for(var s,l=vr(arguments[i++]),u=o?mr(hr(l),o(l)):hr(l),c=u.length,h=0;c>h;)s=u[h++],sr&&!ur(a,l,s)||(n[s]=l[s]);return n}:yr,wr=br;In({target:"Object",stat:!0,arity:2,forced:Object.assign!==wr},{assign:wr});var xr=i(rt.Object.assign),kr=m([].slice),_r=m,Er=At,Sr=nt,Or=te,Cr=kr,Tr=l,Pr=Function,jr=_r([].concat),Ir=_r([].join),Nr={},Ar=Tr?Pr.bind:function(t){var e=Er(this),n=e.prototype,r=Cr(arguments,1),i=function n(){var i=jr(r,Cr(arguments));return this instanceof n?function(t,e,n){if(!Or(Nr,e)){for(var r=[],i=0;i=.1;)(p=+o[h++%a])>c&&(p=c),f=Math.sqrt(p*p/(1+u*u)),e+=f=s<0?-f:f,n+=u*f,!0===d?t.lineTo(e,n):t.moveTo(e,n),c-=p,d=!d}var Xr={circle:Vr,dashedLine:$r,database:Yr,diamond:function(t,e,n,r){t.beginPath(),t.lineTo(e,n+r),t.lineTo(e+r,n),t.lineTo(e,n-r),t.lineTo(e-r,n),t.closePath()},ellipse:Gr,ellipse_vis:Gr,hexagon:function(t,e,n,r){t.beginPath();var i=2*Math.PI/6;t.moveTo(e+r,n);for(var o=1;o<6;o++)t.lineTo(e+r*Math.cos(i*o),n+r*Math.sin(i*o));t.closePath()},roundRect:qr,square:function(t,e,n,r){t.beginPath(),t.rect(e-r,n-r,2*r,2*r),t.closePath()},star:function(t,e,n,r){t.beginPath(),n+=.1*(r*=.82);for(var i=0;i<10;i++){var o=i%2==0?1.3*r:.5*r;t.lineTo(e+o*Math.sin(2*i*Math.PI/10),n-o*Math.cos(2*i*Math.PI/10))}t.closePath()},triangle:function(t,e,n,r){t.beginPath(),n+=.275*(r*=1.15);var i=2*r,o=i/2,a=Math.sqrt(3)/6*i,s=Math.sqrt(i*i-o*o);t.moveTo(e,n-(s-a)),t.lineTo(e+o,n+a),t.lineTo(e-o,n+a),t.lineTo(e,n-(s-a)),t.closePath()},triangleDown:function(t,e,n,r){t.beginPath(),n-=.275*(r*=1.15);var i=2*r,o=i/2,a=Math.sqrt(3)/6*i,s=Math.sqrt(i*i-o*o);t.moveTo(e,n+(s-a)),t.lineTo(e+o,n-a),t.lineTo(e-o,n-a),t.lineTo(e,n+(s-a)),t.closePath()}},Kr={exports:{}};!function(t){function e(t){if(t)return function(t){for(var n in e.prototype)t[n]=e.prototype[n];return t}(t)}t.exports=e,e.prototype.on=e.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},e.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+t];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var i=0;i=s?t?"":void 0:(r=mi(o,a))<55296||r>56319||a+1===s||(i=mi(o,a+1))<56320||i>57343?t?gi(o,a):r:t?bi(o,a,a+2):i-56320+(r-55296<<10)+65536}},xi={codeAt:wi(!1),charAt:wi(!0)},ki=P,_i=a.WeakMap,Ei=ki(_i)&&/native code/.test(String(_i)),Si=oe,Oi=$t("keys"),Ci=function(t){return Oi[t]||(Oi[t]=Si(t))},Ti=Ei,Pi=a,ji=nt,Ii=bn,Ni=te,Ai=Gt,Di=Ci,Mi=Xn,Fi="Object already initialized",Ri=Pi.TypeError,zi=Pi.WeakMap;if(Ti||Ai.state){var Li=Ai.state||(Ai.state=new zi);Li.get=Li.get,Li.has=Li.has,Li.set=Li.set,Zr=function(t,e){if(Li.has(t))throw new Ri(Fi);return e.facade=t,Li.set(t,e),e},ti=function(t){return Li.get(t)||{}},ei=function(t){return Li.has(t)}}else{var Bi=Di("state");Mi[Bi]=!0,Zr=function(t,e){if(Ni(t,Bi))throw new Ri(Fi);return e.facade=t,Ii(t,Bi,e),e},ti=function(t){return Ni(t,Bi)?t[Bi]:{}},ei=function(t){return Ni(t,Bi)}}var Wi={set:Zr,get:ti,has:ei,enforce:function(t){return ei(t)?ti(t):Zr(t,{})},getterFor:function(t){return function(e){var n;if(!ji(e)||(n=ti(e)).type!==t)throw new Ri("Incompatible receiver, "+t+" required");return n}}},Hi=I,Ui=te,Vi=Function.prototype,qi=Hi&&Object.getOwnPropertyDescriptor,Gi=Ui(Vi,"name"),Yi={EXISTS:Gi,PROPER:Gi&&"something"===function(){}.name,CONFIGURABLE:Gi&&(!Hi||Hi&&qi(Vi,"name").configurable)},$i={},Xi=I,Ki=tn,Qi=Ze,Ji=on,Zi=Z,to=or;$i.f=Xi&&!Ki?Object.defineProperties:function(t,e){Ji(t);for(var n,r=Zi(e),i=to(e),o=i.length,a=0;o>a;)Qi.f(t,n=i[a++],r[n]);return t};var eo,no=lt("document","documentElement"),ro=on,io=$i,oo=nr,ao=Xn,so=no,lo=Te,uo="prototype",co="script",ho=Ci("IE_PROTO"),fo=function(){},po=function(t){return"<"+co+">"+t+""+co+">"},vo=function(t){t.write(po("")),t.close();var e=t.parentWindow.Object;return t=null,e},yo=function(){try{eo=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;yo="undefined"!=typeof document?document.domain&&eo?vo(eo):(e=lo("iframe"),n="java"+co+":",e.style.display="none",so.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(po("document.F=Object")),t.close(),t.F):vo(eo);for(var r=oo.length;r--;)delete yo[uo][oo[r]];return yo()};ao[ho]=!0;var go,mo,bo,wo=Object.create||function(t,e){var n;return null!==t?(fo[uo]=ro(t),n=new fo,fo[uo]=null,n[ho]=t):n=yo(),void 0===e?n:io.f(n,e)},xo=!s((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),ko=te,_o=P,Eo=Qt,So=xo,Oo=Ci("IE_PROTO"),Co=Object,To=Co.prototype,Po=So?Co.getPrototypeOf:function(t){var e=Eo(t);if(ko(e,Oo))return e[Oo];var n=e.constructor;return _o(n)&&e instanceof n?n.prototype:e instanceof Co?To:null},jo=bn,Io=function(t,e,n,r){return r&&r.enumerable?t[e]=n:jo(t,e,n),t},No=s,Ao=P,Do=nt,Mo=wo,Fo=Po,Ro=Io,zo=pe("iterator"),Lo=!1;[].keys&&("next"in(bo=[].keys())?(mo=Fo(Fo(bo)))!==Object.prototype&&(go=mo):Lo=!0);var Bo=!Do(go)||No((function(){var t={};return go[zo].call(t)!==t}));Ao((go=Bo?{}:Mo(go))[zo])||Ro(go,zo,(function(){return this}));var Wo={IteratorPrototype:go,BUGGY_SAFARI_ITERATORS:Lo},Ho=ui,Uo=ni?{}.toString:function(){return"[object "+Ho(this)+"]"},Vo=ni,qo=Ze.f,Go=bn,Yo=te,$o=Uo,Xo=pe("toStringTag"),Ko=function(t,e,n,r){if(t){var i=n?t:t.prototype;Yo(i,Xo)||qo(i,Xo,{configurable:!0,value:e}),r&&!Vo&&Go(i,"toString",$o)}},Qo={},Jo=Wo.IteratorPrototype,Zo=wo,ta=W,ea=Ko,na=Qo,ra=function(){return this},ia=m,oa=At,aa=P,sa=String,la=TypeError,ua=function(t,e,n){try{return ia(oa(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}},ca=on,ha=function(t){if("object"==typeof t||aa(t))return t;throw new la("Can't set "+sa(t)+" as a prototype")},da=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=ua(Object.prototype,"__proto__","set"))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return ca(n),ha(r),e?t(n,r):n.__proto__=r,n}}():void 0),fa=In,pa=D,va=function(t,e,n,r){var i=e+" Iterator";return t.prototype=Zo(Jo,{next:ta(+!r,n)}),ea(t,i,!1,!0),na[i]=ra,t},ya=Po,ga=Ko,ma=Io,ba=Qo,wa=Wo,xa=Yi.PROPER,ka=wa.BUGGY_SAFARI_ITERATORS,_a=pe("iterator"),Ea="keys",Sa="values",Oa="entries",Ca=function(){return this},Ta=function(t,e,n,r,i,o,a){va(n,e,r);var s,l,u,c=function(t){if(t===i&&v)return v;if(!ka&&t&&t in f)return f[t];switch(t){case Ea:case Sa:case Oa:return function(){return new n(this,t)}}return function(){return new n(this)}},h=e+" Iterator",d=!1,f=t.prototype,p=f[_a]||f["@@iterator"]||i&&f[i],v=!ka&&p||c(i),y="Array"===e&&f.entries||p;if(y&&(s=ya(y.call(new t)))!==Object.prototype&&s.next&&(ga(s,h,!0,!0),ba[h]=Ca),xa&&i===Sa&&p&&p.name!==Sa&&(d=!0,v=function(){return pa(p,this)}),i)if(l={values:c(Sa),keys:o?v:c(Ea),entries:c(Oa)},a)for(u in l)(ka||d||!(u in f))&&ma(f,u,l[u]);else fa({target:e,proto:!0,forced:ka||d},l);return a&&f[_a]!==v&&ma(f,_a,v,{name:i}),ba[e]=v,l},Pa=function(t,e){return{value:t,done:e}},ja=xi.charAt,Ia=di,Na=Wi,Aa=Ta,Da=Pa,Ma="String Iterator",Fa=Na.set,Ra=Na.getterFor(Ma);Aa(String,"String",(function(t){Fa(this,{type:Ma,string:Ia(t),index:0})}),(function(){var t,e=Ra(this),n=e.string,r=e.index;return r>=n.length?Da(void 0,!0):(t=ja(n,r),e.index+=t.length,Da(t,!1))}));var za=D,La=on,Ba=Ft,Wa=function(t,e,n){var r,i;La(t);try{if(!(r=Ba(t,"return"))){if("throw"===e)throw n;return n}r=za(r,t)}catch(t){i=!0,r=t}if("throw"===e)throw n;if(i)throw r;return La(r),n},Ha=on,Ua=Wa,Va=Qo,qa=pe("iterator"),Ga=Array.prototype,Ya=function(t){return void 0!==t&&(Va.Array===t||Ga[qa]===t)},$a=P,Xa=Gt,Ka=m(Function.toString);$a(Xa.inspectSource)||(Xa.inspectSource=function(t){return Ka(t)});var Qa=Xa.inspectSource,Ja=m,Za=s,ts=P,es=ui,ns=Qa,rs=function(){},is=[],os=lt("Reflect","construct"),as=/^\s*(?:class|function)\b/,ss=Ja(as.exec),ls=!as.test(rs),us=function(t){if(!ts(t))return!1;try{return os(rs,is,t),!0}catch(t){return!1}},cs=function(t){if(!ts(t))return!1;switch(es(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ls||!!ss(as,ns(t))}catch(t){return!0}};cs.sham=!0;var hs=!os||Za((function(){var t;return us(us.call)||!us(Object)||!us((function(){t=!0}))||t}))?cs:us,ds=Ee,fs=Ze,ps=W,vs=function(t,e,n){var r=ds(e);r in t?fs.f(t,r,ps(0,n)):t[r]=n},ys=ui,gs=Ft,ms=Y,bs=Qo,ws=pe("iterator"),xs=function(t){if(!ms(t))return gs(t,ws)||gs(t,"@@iterator")||bs[ys(t)]},ks=D,_s=At,Es=on,Ss=Pt,Os=xs,Cs=TypeError,Ts=function(t,e){var n=arguments.length<2?Os(t):e;if(_s(n))return Es(ks(n,t));throw new Cs(Ss(t)+" is not iterable")},Ps=Je,js=D,Is=Qt,Ns=function(t,e,n,r){try{return r?e(Ha(n)[0],n[1]):e(n)}catch(e){Ua(t,"throw",e)}},As=Ya,Ds=hs,Ms=Un,Fs=vs,Rs=Ts,zs=xs,Ls=Array,Bs=pe("iterator"),Ws=!1;try{var Hs=0,Us={next:function(){return{done:!!Hs++}},return:function(){Ws=!0}};Us[Bs]=function(){return this},Array.from(Us,(function(){throw 2}))}catch(t){}var Vs=function(t){var e=Is(t),n=Ds(this),r=arguments.length,i=r>1?arguments[1]:void 0,o=void 0!==i;o&&(i=Ps(i,r>2?arguments[2]:void 0));var a,s,l,u,c,h,d=zs(e),f=0;if(!d||this===Ls&&As(d))for(a=Ms(e),s=n?new this(a):Ls(a);a>f;f++)h=o?i(e[f],f):e[f],Fs(s,f,h);else for(c=(u=Rs(e,d)).next,s=n?new this:[];!(l=js(c,u)).done;f++)h=o?Ns(u,i,[l.value,f],!0):l.value,Fs(s,f,h);return s.length=f,s},qs=function(t,e){try{if(!e&&!Ws)return!1}catch(t){return!1}var n=!1;try{var r={};r[Bs]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n};In({target:"Array",stat:!0,forced:!qs((function(t){Array.from(t)}))},{from:Vs});var Gs=rt.Array.from,Ys=i(Gs),$s=Z,Xs=Qo,Ks=Wi;Ze.f;var Qs=Ta,Js=Pa,Zs="Array Iterator",tl=Ks.set,el=Ks.getterFor(Zs);Qs(Array,"Array",(function(t,e){tl(this,{type:Zs,target:$s(t),index:0,kind:e})}),(function(){var t=el(this),e=t.target,n=t.kind,r=t.index++;if(!e||r>=e.length)return t.target=void 0,Js(void 0,!0);switch(n){case"keys":return Js(r,!1);case"values":return Js(e[r],!1)}return Js([r,e[r]],!1)}),"values"),Xs.Arguments=Xs.Array;var nl=xs,rl={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},il=a,ol=ui,al=bn,sl=Qo,ll=pe("toStringTag");for(var ul in rl){var cl=il[ul],hl=cl&&cl.prototype;hl&&ol(hl)!==ll&&al(hl,ll,ul),sl[ul]=sl.Array}var dl=nl,fl=i(dl),pl=i(dl);function vl(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var yl={exports:{}},gl=In,ml=I,bl=Ze.f;gl({target:"Object",stat:!0,forced:Object.defineProperty!==bl,sham:!ml},{defineProperty:bl});var wl=rt.Object,xl=yl.exports=function(t,e,n){return wl.defineProperty(t,e,n)};wl.defineProperty.sham&&(xl.sham=!0);var kl=yl.exports,_l=i(kl),El=k,Sl=Array.isArray||function(t){return"Array"===El(t)},Ol=TypeError,Cl=function(t){if(t>9007199254740991)throw Ol("Maximum allowed index exceeded");return t},Tl=Sl,Pl=hs,jl=nt,Il=pe("species"),Nl=Array,Al=function(t){var e;return Tl(t)&&(e=t.constructor,(Pl(e)&&(e===Nl||Tl(e.prototype))||jl(e)&&null===(e=e[Il]))&&(e=void 0)),void 0===e?Nl:e},Dl=function(t,e){return new(Al(t))(0===e?0:e)},Ml=s,Fl=gt,Rl=pe("species"),zl=function(t){return Fl>=51||!Ml((function(){var e=[];return(e.constructor={})[Rl]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Ll=In,Bl=s,Wl=Sl,Hl=nt,Ul=Qt,Vl=Un,ql=Cl,Gl=vs,Yl=Dl,$l=zl,Xl=gt,Kl=pe("isConcatSpreadable"),Ql=Xl>=51||!Bl((function(){var t=[];return t[Kl]=!1,t.concat()[0]!==t})),Jl=function(t){if(!Hl(t))return!1;var e=t[Kl];return void 0!==e?!!e:Wl(t)};Ll({target:"Array",proto:!0,arity:1,forced:!Ql||!$l("concat")},{concat:function(t){var e,n,r,i,o,a=Ul(this),s=Yl(a,0),l=0;for(e=-1,r=arguments.length;em;m++)if((s||m in v)&&(f=y(d=v[m],m,p),t))if(e)w[m]=f;else if(f)switch(t){case 3:return!0;case 5:return d;case 6:return m;case 2:Au(w,d)}else switch(t){case 4:return!1;case 7:Au(w,d)}return o?-1:r||i?i:w}},Mu={forEach:Du(0),map:Du(1),filter:Du(2),some:Du(3),every:Du(4),find:Du(5),findIndex:Du(6),filterReject:Du(7)},Fu=In,Ru=a,zu=D,Lu=m,Bu=I,Wu=xt,Hu=s,Uu=te,Vu=ut,qu=on,Gu=Z,Yu=Ee,$u=di,Xu=W,Ku=wo,Qu=or,Ju=Zl,Zu=nu,tc=ar,ec=j,nc=Ze,rc=$i,ic=M,oc=Io,ac=vu,sc=$t,lc=Xn,uc=oe,cc=pe,hc=yu,dc=ku,fc=Cu,pc=Ko,vc=Wi,yc=Mu.forEach,gc=Ci("hidden"),mc="Symbol",bc="prototype",wc=vc.set,xc=vc.getterFor(mc),kc=Object[bc],_c=Ru.Symbol,Ec=_c&&_c[bc],Sc=Ru.RangeError,Oc=Ru.TypeError,Cc=Ru.QObject,Tc=ec.f,Pc=nc.f,jc=Zu.f,Ic=ic.f,Nc=Lu([].push),Ac=sc("symbols"),Dc=sc("op-symbols"),Mc=sc("wks"),Fc=!Cc||!Cc[bc]||!Cc[bc].findChild,Rc=function(t,e,n){var r=Tc(kc,e);r&&delete kc[e],Pc(t,e,n),r&&t!==kc&&Pc(kc,e,r)},zc=Bu&&Hu((function(){return 7!==Ku(Pc({},"a",{get:function(){return Pc(this,"a",{value:7}).a}})).a}))?Rc:Pc,Lc=function(t,e){var n=Ac[t]=Ku(Ec);return wc(n,{type:mc,tag:t,description:e}),Bu||(n.description=e),n},Bc=function t(e,n,r){e===kc&&t(Dc,n,r),qu(e);var i=Yu(n);return qu(r),Uu(Ac,i)?(r.enumerable?(Uu(e,gc)&&e[gc][i]&&(e[gc][i]=!1),r=Ku(r,{enumerable:Xu(0,!1)})):(Uu(e,gc)||Pc(e,gc,Xu(1,{})),e[gc][i]=!0),zc(e,i,r)):Pc(e,i,r)},Wc=function(t,e){qu(t);var n=Gu(e),r=Qu(n).concat(qc(n));return yc(r,(function(e){Bu&&!zu(Hc,n,e)||Bc(t,e,n[e])})),t},Hc=function(t){var e=Yu(t),n=zu(Ic,this,e);return!(this===kc&&Uu(Ac,e)&&!Uu(Dc,e))&&(!(n||!Uu(this,e)||!Uu(Ac,e)||Uu(this,gc)&&this[gc][e])||n)},Uc=function(t,e){var n=Gu(t),r=Yu(e);if(n!==kc||!Uu(Ac,r)||Uu(Dc,r)){var i=Tc(n,r);return!i||!Uu(Ac,r)||Uu(n,gc)&&n[gc][r]||(i.enumerable=!0),i}},Vc=function(t){var e=jc(Gu(t)),n=[];return yc(e,(function(t){Uu(Ac,t)||Uu(lc,t)||Nc(n,t)})),n},qc=function(t){var e=t===kc,n=jc(e?Dc:Gu(t)),r=[];return yc(n,(function(t){!Uu(Ac,t)||e&&!Uu(kc,t)||Nc(r,Ac[t])})),r};Wu||(_c=function(){if(Vu(Ec,this))throw new Oc("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?$u(arguments[0]):void 0,e=uc(t),n=function t(n){this===kc&&zu(t,Dc,n),Uu(this,gc)&&Uu(this[gc],e)&&(this[gc][e]=!1);var r=Xu(1,n);try{zc(this,e,r)}catch(n){if(!(n instanceof Sc))throw n;Rc(this,e,r)}};return Bu&&Fc&&zc(kc,e,{configurable:!0,set:n}),Lc(e,t)},oc(Ec=_c[bc],"toString",(function(){return xc(this).tag})),oc(_c,"withoutSetter",(function(t){return Lc(uc(t),t)})),ic.f=Hc,nc.f=Bc,rc.f=Wc,ec.f=Uc,Ju.f=Zu.f=Vc,tc.f=qc,hc.f=function(t){return Lc(cc(t),t)},Bu&&ac(Ec,"description",{configurable:!0,get:function(){return xc(this).description}})),Fu({global:!0,constructor:!0,wrap:!0,forced:!Wu,sham:!Wu},{Symbol:_c}),yc(Qu(Mc),(function(t){dc(t)})),Fu({target:mc,stat:!0,forced:!Wu},{useSetter:function(){Fc=!0},useSimple:function(){Fc=!1}}),Fu({target:"Object",stat:!0,forced:!Wu,sham:!Bu},{create:function(t,e){return void 0===e?Ku(t):Wc(Ku(t),e)},defineProperty:Bc,defineProperties:Wc,getOwnPropertyDescriptor:Uc}),Fu({target:"Object",stat:!0,forced:!Wu},{getOwnPropertyNames:Vc}),fc(),pc(_c,mc),lc[gc]=!0;var Gc=xt&&!!Symbol.for&&!!Symbol.keyFor,Yc=In,$c=lt,Xc=te,Kc=di,Qc=$t,Jc=Gc,Zc=Qc("string-to-symbol-registry"),th=Qc("symbol-to-string-registry");Yc({target:"Symbol",stat:!0,forced:!Jc},{for:function(t){var e=Kc(t);if(Xc(Zc,e))return Zc[e];var n=$c("Symbol")(e);return Zc[e]=n,th[n]=e,n}});var eh=In,nh=te,rh=Ct,ih=Pt,oh=Gc,ah=$t("symbol-to-string-registry");eh({target:"Symbol",stat:!0,forced:!oh},{keyFor:function(t){if(!rh(t))throw new TypeError(ih(t)+" is not a symbol");if(nh(ah,t))return ah[t]}});var sh=Sl,lh=P,uh=k,ch=di,hh=m([].push),dh=In,fh=lt,ph=f,vh=D,yh=m,gh=s,mh=P,bh=Ct,wh=kr,xh=function(t){if(lh(t))return t;if(sh(t)){for(var e=t.length,n=[],r=0;rt.length)&&(e=t.length);for(var n=0,r=new Array(e);n1?arguments[1]:void 0)}});var Cf=Fr("Array").map,Tf=ut,Pf=Cf,jf=Array.prototype,If=function(t){var e=t.map;return t===jf||Tf(jf,t)&&e===jf.map?Pf:e},Nf=i(If),Af=Qt,Df=or;In({target:"Object",stat:!0,forced:s((function(){Df(1)}))},{keys:function(t){return Df(Af(t))}});var Mf=i(rt.Object.keys),Ff=In,Rf=Date,zf=m(Rf.prototype.getTime);Ff({target:"Date",stat:!0},{now:function(){return zf(new Rf)}});var Lf=i(rt.Date.now),Bf=s,Wf=function(t,e){var n=[][t];return!!n&&Bf((function(){n.call(null,e||function(){return 1},1)}))},Hf=Mu.forEach,Uf=Wf("forEach")?[].forEach:function(t){return Hf(this,t,arguments.length>1?arguments[1]:void 0)};In({target:"Array",proto:!0,forced:[].forEach!==Uf},{forEach:Uf});var Vf=Fr("Array").forEach,qf=ui,Gf=te,Yf=ut,$f=Vf,Xf=Array.prototype,Kf={DOMTokenList:!0,NodeList:!0},Qf=function(t){var e=t.forEach;return t===Xf||Yf(Xf,t)&&e===Xf.forEach||Gf(Kf,qf(t))?$f:e},Jf=i(Qf),Zf=In,tp=Sl,ep=m([].reverse),np=[1,2];Zf({target:"Array",proto:!0,forced:String(np)===String(np.reverse())},{reverse:function(){return tp(this)&&(this.length=this.length),ep(this)}});var rp=Fr("Array").reverse,ip=ut,op=rp,ap=Array.prototype,sp=function(t){var e=t.reverse;return t===ap||ip(ap,t)&&e===ap.reverse?op:e},lp=i(sp),up=Pt,cp=TypeError,hp=function(t,e){if(!delete t[e])throw new cp("Cannot delete property "+up(e)+" of "+up(t))},dp=In,fp=Qt,pp=Ln,vp=Mn,yp=Un,gp=Cd,mp=Cl,bp=Dl,wp=vs,xp=hp,kp=zl("splice"),_p=Math.max,Ep=Math.min;dp({target:"Array",proto:!0,forced:!kp},{splice:function(t,e){var n,r,i,o,a,s,l=fp(this),u=yp(l),c=pp(t,u),h=arguments.length;for(0===h?n=r=0:1===h?(n=0,r=u-c):(n=h-2,r=Ep(_p(vp(e),0),u-c)),mp(u+n-r),i=bp(l,r),o=0;ou-r+n;o--)xp(l,o-1)}else if(n>r)for(o=u-r;o>c;o--)s=o+n-1,(a=o+r-1)in l?l[s]=l[a]:xp(l,s);for(o=0;o1?arguments[1]:void 0)}});var Np=Fr("Array").includes,Ap=nt,Dp=k,Mp=pe("match"),Fp=function(t){var e;return Ap(t)&&(void 0!==(e=t[Mp])?!!e:"RegExp"===Dp(t))},Rp=TypeError,zp=pe("match"),Lp=In,Bp=function(t){if(Fp(t))throw new Rp("The method doesn't accept regular expressions");return t},Wp=K,Hp=di,Up=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[zp]=!1,"/./"[t](e)}catch(t){}}return!1},Vp=m("".indexOf);Lp({target:"String",proto:!0,forced:!Up("includes")},{includes:function(t){return!!~Vp(Hp(Wp(this)),Hp(Bp(t)),arguments.length>1?arguments[1]:void 0)}});var qp=Fr("String").includes,Gp=ut,Yp=Np,$p=qp,Xp=Array.prototype,Kp=String.prototype,Qp=function(t){var e=t.includes;return t===Xp||Gp(Xp,t)&&e===Xp.includes?Yp:"string"==typeof t||t===Kp||Gp(Kp,t)&&e===Kp.includes?$p:e},Jp=i(Qp),Zp=Qt,tv=Po,ev=xo;In({target:"Object",stat:!0,forced:s((function(){tv(1)})),sham:!ev},{getPrototypeOf:function(t){return tv(Zp(t))}});var nv=rt.Object.getPrototypeOf,rv=i(nv),iv=Mu.filter;In({target:"Array",proto:!0,forced:!zl("filter")},{filter:function(t){return iv(this,t,arguments.length>1?arguments[1]:void 0)}});var ov=Fr("Array").filter,av=ut,sv=ov,lv=Array.prototype,uv=function(t){var e=t.filter;return t===lv||av(lv,t)&&e===lv.filter?sv:e},cv=i(uv),hv="\t\n\v\f\r \xa0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff",dv=K,fv=di,pv=hv,vv=m("".replace),yv=RegExp("^["+pv+"]+"),gv=RegExp("(^|[^"+pv+"])["+pv+"]+$"),mv=function(t){return function(e){var n=fv(dv(e));return 1&t&&(n=vv(n,yv,"")),2&t&&(n=vv(n,gv,"$1")),n}},bv={start:mv(1),end:mv(2),trim:mv(3)},wv=a,xv=s,kv=m,_v=di,Ev=bv.trim,Sv=hv,Ov=wv.parseInt,Cv=wv.Symbol,Tv=Cv&&Cv.iterator,Pv=/^[+-]?0x/i,jv=kv(Pv.exec),Iv=8!==Ov(Sv+"08")||22!==Ov(Sv+"0x16")||Tv&&!xv((function(){Ov(Object(Tv))}))?function(t,e){var n=Ev(_v(t));return Ov(n,e>>>0||(jv(Pv,n)?16:10))}:Ov;In({global:!0,forced:parseInt!==Iv},{parseInt:Iv});var Nv=i(rt.parseInt),Av=In,Dv=$n.indexOf,Mv=Wf,Fv=S([].indexOf),Rv=!!Fv&&1/Fv([1],1,-0)<0;Av({target:"Array",proto:!0,forced:Rv||!Mv("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return Rv?Fv(this,t,e)||0:Dv(this,t,e)}});var zv=Fr("Array").indexOf,Lv=ut,Bv=zv,Wv=Array.prototype,Hv=function(t){var e=t.indexOf;return t===Wv||Lv(Wv,t)&&e===Wv.indexOf?Bv:e},Uv=i(Hv);In({target:"Object",stat:!0,sham:!I},{create:wo});var Vv=rt.Object,qv=function(t,e){return Vv.create(t,e)},Gv=i(qv),Yv=rt,$v=f;Yv.JSON||(Yv.JSON={stringify:JSON.stringify});var Xv=function(t,e,n){return $v(Yv.JSON.stringify,null,arguments)},Kv=i(Xv),Qv="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,Jv=TypeError,Zv=a,ty=f,ey=P,ny=Qv,ry=ct,iy=kr,oy=function(t,e){if(tn,a=ey(r)?r:ay(r),s=o?iy(arguments,n):[],l=o?function(){ty(a,this,s)}:a;return e?t(l,i):t(l)}:t},uy=In,cy=a,hy=ly(cy.setInterval,!0);uy({global:!0,bind:!0,forced:cy.setInterval!==hy},{setInterval:hy});var dy=In,fy=a,py=ly(fy.setTimeout,!0);dy({global:!0,bind:!0,forced:fy.setTimeout!==py},{setTimeout:py});var vy=i(rt.setTimeout),yy=Qt,gy=Ln,my=Un,by=function(t){for(var e=yy(this),n=my(e),r=arguments.length,i=gy(r>1?arguments[1]:void 0,n),o=r>2?arguments[2]:void 0,a=void 0===o?n:gy(o,n);a>i;)e[i++]=t;return e};In({target:"Array",proto:!0},{fill:by});var wy,xy=Fr("Array").fill,ky=ut,_y=xy,Ey=Array.prototype,Sy=function(t){var e=t.fill;return t===Ey||ky(Ey,t)&&e===Ey.fill?_y:e},Oy=i(Sy);function Cy(){return Cy=Object.assign||function(t){for(var e=1;e-1}var vg=function(){function t(t,e){this.manager=t,this.set(e)}var e=t.prototype;return e.set=function(t){t===By&&(t=this.compute()),Ly&&this.manager.element.style&&Gy[t]&&(this.manager.element.style[zy]=t),this.actions=t.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var t=[];return dg(this.manager.recognizers,(function(e){fg(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(pg(t,Uy))return Uy;var e=pg(t,Vy),n=pg(t,qy);return e&&n?Uy:e||n?e?Vy:qy:pg(t,Hy)?Hy:Wy}(t.join(" "))},e.preventDefaults=function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var r=this.actions,i=pg(r,Uy)&&!Gy[Uy],o=pg(r,qy)&&!Gy[qy],a=pg(r,Vy)&&!Gy[Vy];if(i){var s=1===t.pointers.length,l=t.distance<2,u=t.deltaTime<250;if(s&&l&&u)return}if(!a||!o)return i||o&&n&sg||a&&n&lg?this.preventSrc(e):void 0}},e.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},t}();function yg(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function gg(t){var e=t.length;if(1===e)return{x:Dy(t[0].clientX),y:Dy(t[0].clientY)};for(var n=0,r=0,i=0;i=My(e)?t<0?rg:ig:e<0?og:ag}function kg(t,e,n){return{x:e/t||0,y:n/t||0}}function _g(t,e){var n=t.session,r=e.pointers,i=r.length;n.firstInput||(n.firstInput=mg(e)),i>1&&!n.firstMultiple?n.firstMultiple=mg(e):1===i&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,s=a?a.center:o.center,l=e.center=gg(r);e.timeStamp=Fy(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=wg(s,l),e.distance=bg(s,l),function(t,e){var n=e.center,r=t.offsetDelta||{},i=t.prevDelta||{},o=t.prevInput||{};e.eventType!==Zy&&o.eventType!==tg||(i=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=i.x+(n.x-r.x),e.deltaY=i.y+(n.y-r.y)}(n,e),e.offsetDirection=xg(e.deltaX,e.deltaY);var u,c,h=kg(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=h.x,e.overallVelocityY=h.y,e.overallVelocity=My(h.x)>My(h.y)?h.x:h.y,e.scale=a?(u=a.pointers,bg((c=r)[0],c[1],hg)/bg(u[0],u[1],hg)):1,e.rotation=a?function(t,e){return wg(e[1],e[0],hg)+wg(t[1],t[0],hg)}(a.pointers,r):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(t,e){var n,r,i,o,a=t.lastInterval||e,s=e.timeStamp-a.timeStamp;if(e.eventType!==eg&&(s>Jy||void 0===a.velocity)){var l=e.deltaX-a.deltaX,u=e.deltaY-a.deltaY,c=kg(s,l,u);r=c.x,i=c.y,n=My(c.x)>My(c.y)?c.x:c.y,o=xg(l,u),t.lastInterval=e}else n=a.velocity,r=a.velocityX,i=a.velocityY,o=a.direction;e.velocity=n,e.velocityX=r,e.velocityY=i,e.direction=o}(n,e);var d,f=t.element,p=e.srcEvent;yg(d=p.composedPath?p.composedPath()[0]:p.path?p.path[0]:p.target,f)&&(f=d),e.target=f}function Eg(t,e,n){var r=n.pointers.length,i=n.changedPointers.length,o=e&Zy&&r-i==0,a=e&(tg|eg)&&r-i==0;n.isFirst=!!o,n.isFinal=!!a,o&&(t.session={}),n.eventType=e,_g(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function Sg(t){return t.trim().split(/\s+/g)}function Og(t,e,n){dg(Sg(e),(function(e){t.addEventListener(e,n,!1)}))}function Cg(t,e,n){dg(Sg(e),(function(e){t.removeEventListener(e,n,!1)}))}function Tg(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var Pg=function(){function t(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){fg(t.options.enable,[t])&&n.handler(e)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&Og(this.element,this.evEl,this.domHandler),this.evTarget&&Og(this.target,this.evTarget,this.domHandler),this.evWin&&Og(Tg(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&Cg(this.element,this.evEl,this.domHandler),this.evTarget&&Cg(this.target,this.evTarget,this.domHandler),this.evWin&&Cg(Tg(this.element),this.evWin,this.domHandler)},t}();function jg(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var r=0;rn[e]})):r.sort()),r}var zg={touchstart:Zy,touchmove:2,touchend:tg,touchcancel:eg},Lg=function(t){function e(){var n;return e.prototype.evTarget="touchstart touchmove touchend touchcancel",(n=t.apply(this,arguments)||this).targetIds={},n}return Ty(e,t),e.prototype.handler=function(t){var e=zg[t.type],n=Bg.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:Ky,srcEvent:t})},e}(Pg);function Bg(t,e){var n,r,i=Fg(t.touches),o=this.targetIds;if(e&(2|Zy)&&1===i.length)return o[i[0].identifier]=!0,[i,i];var a=Fg(t.changedTouches),s=[],l=this.target;if(r=i.filter((function(t){return yg(t.target,l)})),e===Zy)for(n=0;n-1&&r.splice(t,1)}),Ug)}}function qg(t,e){t&Zy?(this.primaryTouch=e.changedPointers[0].identifier,Vg.call(this,e)):t&(tg|eg)&&Vg.call(this,e)}function Gg(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,r=0;r-1&&this.requireFail.splice(e,1),this},e.hasRequireFailures=function(){return this.requireFail.length>0},e.canRecognizeWith=function(t){return!!this.simultaneous[t.id]},e.emit=function(t){var e=this,n=this.state;function r(n){e.manager.emit(n,t)}n<8&&r(e.options.event+Jg(n)),r(e.options.event),t.additionalEvent&&r(t.additionalEvent),n>=8&&r(e.options.event+Jg(n))},e.tryEmit=function(t){if(this.canEmit())return this.emit(t);this.state=Xg},e.canEmit=function(){for(var t=0;te.threshold&&i&e.direction},n.attrTest=function(t){return em.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},n.emit=function(e){this.pX=e.deltaX,this.pY=e.deltaY;var n=nm(e.direction);n&&(e.additionalEvent=this.options.event+n),t.prototype.emit.call(this,e)},e}(em),im=function(t){function e(e){return void 0===e&&(e={}),t.call(this,Cy({event:"swipe",threshold:10,velocity:.3,direction:sg|lg,pointers:1},e))||this}Ty(e,t);var n=e.prototype;return n.getTouchAction=function(){return rm.prototype.getTouchAction.call(this)},n.attrTest=function(e){var n,r=this.options.direction;return r&(sg|lg)?n=e.overallVelocity:r&sg?n=e.overallVelocityX:r&lg&&(n=e.overallVelocityY),t.prototype.attrTest.call(this,e)&&r&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers===this.options.pointers&&My(n)>this.options.velocity&&e.eventType&tg},n.emit=function(t){var e=nm(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)},e}(em),om=function(t){function e(e){return void 0===e&&(e={}),t.call(this,Cy({event:"pinch",threshold:0,pointers:2},e))||this}Ty(e,t);var n=e.prototype;return n.getTouchAction=function(){return[Uy]},n.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},n.emit=function(e){if(1!==e.scale){var n=e.scale<1?"in":"out";e.additionalEvent=this.options.event+n}t.prototype.emit.call(this,e)},e}(em),am=function(t){function e(e){return void 0===e&&(e={}),t.call(this,Cy({event:"rotate",threshold:0,pointers:2},e))||this}Ty(e,t);var n=e.prototype;return n.getTouchAction=function(){return[Uy]},n.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)},e}(em),sm=function(t){function e(e){var n;return void 0===e&&(e={}),(n=t.call(this,Cy({event:"press",pointers:1,time:251,threshold:9},e))||this)._timer=null,n._input=null,n}Ty(e,t);var n=e.prototype;return n.getTouchAction=function(){return[Wy]},n.process=function(t){var e=this,n=this.options,r=t.pointers.length===n.pointers,i=t.distancen.time;if(this._input=t,!i||!r||t.eventType&(tg|eg)&&!o)this.reset();else if(t.eventType&Zy)this.reset(),this._timer=setTimeout((function(){e.state=8,e.tryEmit()}),n.time);else if(t.eventType&tg)return 8;return Xg},n.reset=function(){clearTimeout(this._timer)},n.emit=function(t){8===this.state&&(t&&t.eventType&tg?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=Fy(),this.manager.emit(this.options.event,this._input)))},e}(Zg),lm={domEvents:!1,touchAction:By,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},um=[[am,{enable:!1}],[om,{enable:!1},["rotate"]],[im,{direction:sg}],[rm,{direction:sg},["swipe"]],[tm],[tm,{event:"doubletap",taps:2},["tap"]],[sm]];function cm(t,e){var n,r=t.element;r.style&&(dg(t.options.cssProps,(function(i,o){n=Ry(r.style,o),e?(t.oldCssProps[n]=r.style[n],r.style[n]=i):r.style[n]=t.oldCssProps[n]||""})),e||(t.oldCssProps={}))}var hm=function(){function t(t,e){var n,r=this;this.options=Iy({},lm,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((n=this).options.inputClass||($y?Mg:Xy?Lg:Yy?Yg:Hg))(n,Eg),this.touchAction=new vg(this,this.options.touchAction),cm(this,!0),dg(this.options.recognizers,(function(t){var e=r.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}var e=t.prototype;return e.set=function(t){return Iy(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},e.stop=function(t){this.session.stopped=t?2:1},e.recognize=function(t){var e=this.session;if(!e.stopped){var n;this.touchAction.preventDefaults(t);var r=this.recognizers,i=e.curRecognizer;(!i||i&&8&i.state)&&(e.curRecognizer=null,i=null);for(var o=0;o\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",i=window.console&&(window.console.warn||window.console.log);return i&&i.call(window.console,r,n),t.apply(this,arguments)}}var ym=vm((function(t,e,n){for(var r=Object.keys(e),i=0;i=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function _m(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n>>0,t=(i*=t)>>>0,t+=4294967296*(i-=t)}return 2.3283064365386963e-10*(t>>>0)}}(),e=t(" "),n=t(" "),r=t(" "),i=0;i2&&void 0!==arguments[2]&&arguments[2];for(var r in t)if(void 0!==e[r])if(null===e[r]||"object"!==yd(e[r]))Dm(t,e,r,n);else{var i=t[r],o=e[r];Am(i)&&Am(o)&&Mm(i,o,n)}}function Fm(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(Sf(n))throw new TypeError("Arrays are not supported by deepExtend");for(var i=0;i3&&void 0!==arguments[3]&&arguments[3];if(Sf(n))throw new TypeError("Arrays are not supported by deepExtend");for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)&&!Jp(t).call(t,i))if(n[i]&&n[i].constructor===Object)void 0===e[i]&&(e[i]={}),e[i].constructor===Object?zm(e[i],n[i]):Dm(e,n,i,r);else if(Sf(n[i])){e[i]=[];for(var o=0;o2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)||!0===n)if("object"===yd(e[i])&&null!==e[i]&&rv(e[i])===Object.prototype)void 0===t[i]?t[i]=zm({},e[i],n):"object"===yd(t[i])&&null!==t[i]&&rv(t[i])===Object.prototype?zm(t[i],e[i],n):Dm(t,e,i,r);else if(Sf(e[i])){var o;t[i]=mf(o=e[i]).call(o)}else Dm(t,e,i,r);return t}function Lm(t,e){var n;return gf(n=[]).call(n,cf(t),[e])}function Bm(t){return t.getBoundingClientRect().top}function Wm(t,e){if(Sf(t))for(var n=t.length,r=0;r3&&void 0!==arguments[3]?arguments[3]:{},i=function(t){return null!=t},o=function(t){return null!==t&&"object"===yd(t)};if(!o(t))throw new Error("Parameter mergeTarget must be an object");if(!o(e))throw new Error("Parameter options must be an object");if(!i(n))throw new Error("Parameter option must have a value");if(!o(r))throw new Error("Parameter globalOptions must be an object");var a=e[n],s=o(r)&&!function(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}(r)?r[n]:void 0,l=s?s.enabled:void 0;if(void 0!==a){if("boolean"==typeof a)return o(t[n])||(t[n]={}),void(t[n].enabled=a);if(null===a&&!o(t[n])){if(!i(s))return;t[n]=Gv(s)}if(o(a)){var u=!0;void 0!==a.enabled?u=a.enabled:void 0!==l&&(u=s.enabled),function(t,e,n){o(t[n])||(t[n]={});var r=e[n],i=t[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])}(t,e,n),t[n].enabled=u}}}var Zm={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return t*(2-t)},easeInOutQuad:function(t){return t<.5?2*t*t:(4-2*t)*t-1},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return--t*t*t+1},easeInOutCubic:function(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return 1- --t*t*t*t},easeInOutQuart:function(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return 1+--t*t*t*t*t},easeInOutQuint:function(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t}};function tb(t,e){var n;Sf(e)||(e=[e]);var r,i=km(t);try{for(i.s();!(r=i.n()).done;){var o=r.value;if(o){n=o[e[0]];for(var a=1;a0&&void 0!==arguments[0]?arguments[0]:1;vl(this,t),this.pixelRatio=e,this.generated=!1,this.centerCoordinates={x:144.5,y:144.5},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=function(){},this.closeCallback=function(){},this._create()}return wd(t,[{key:"insertTo",value:function(t){void 0!==this.hammer&&(this.hammer.destroy(),this.hammer=void 0),this.container=t,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:"setUpdateCallback",value:function(t){if("function"!=typeof t)throw new Error("Function attempted to set as colorPicker update callback is not a function.");this.updateCallback=t}},{key:"setCloseCallback",value:function(t){if("function"!=typeof t)throw new Error("Function attempted to set as colorPicker closing callback is not a function.");this.closeCallback=t}},{key:"_isColorString",value:function(t){if("string"==typeof t)return eb[t]}},{key:"setColor",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if("none"!==t){var n,r=this._isColorString(t);if(void 0!==r&&(t=r),!0===Nm(t)){if(!0===Km(t)){var i=t.substr(4).substr(0,t.length-5).split(",");n={r:i[0],g:i[1],b:i[2],a:1}}else if(!0===function(t){return jm.test(t)}(t)){var o=t.substr(5).substr(0,t.length-6).split(",");n={r:o[0],g:o[1],b:o[2],a:o[3]}}else if(!0===Xm(t)){var a=Hm(t);n={r:a.r,g:a.g,b:a.b,a:1}}}else if(t instanceof Object&&void 0!==t.r&&void 0!==t.g&&void 0!==t.b){var s=void 0!==t.a?t.a:"1.0";n={r:t.r,g:t.g,b:t.b,a:s}}if(void 0===n)throw new Error("Unknown color passed to the colorPicker. Supported are strings: rgb, hex, rgba. Object: rgb ({r:r,g:g,b:b,[a:a]}). Supplied: "+Kv(t));this._setColor(n,e)}}},{key:"show",value:function(){void 0!==this.closeCallback&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}},{key:"_hide",value:function(){var t=this;!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&(this.previousColor=xr({},this.color)),!0===this.applied&&this.updateCallback(this.initialColor),this.frame.style.display="none",vy((function(){void 0!==t.closeCallback&&(t.closeCallback(),t.closeCallback=void 0)}),0)}},{key:"_save",value:function(){this.updateCallback(this.color),this.applied=!1,this._hide()}},{key:"_apply",value:function(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}},{key:"_loadLast",value:function(){void 0!==this.previousColor?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}},{key:"_setColor",value:function(t){!0===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&(this.initialColor=xr({},t)),this.color=t;var e=Gm(t.r,t.g,t.b),n=2*Math.PI,r=this.r*e.s,i=this.centerCoordinates.x+r*Math.sin(n*e.h),o=this.centerCoordinates.y+r*Math.cos(n*e.h);this.colorPickerSelector.style.left=i-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=o-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(t)}},{key:"_setOpacity",value:function(t){this.color.a=t/100,this._updatePicker(this.color)}},{key:"_setBrightness",value:function(t){var e=Gm(this.color.r,this.color.g,this.color.b);e.v=t/100;var n=Ym(e.h,e.s,e.v);n.a=this.color.a,this.color=n,this._updatePicker()}},{key:"_updatePicker",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.color,e=Gm(t.r,t.g,t.b),n=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(n.webkitBackingStorePixelRatio||n.mozBackingStorePixelRatio||n.msBackingStorePixelRatio||n.oBackingStorePixelRatio||n.backingStorePixelRatio||1)),n.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var r=this.colorPickerCanvas.clientWidth,i=this.colorPickerCanvas.clientHeight;n.clearRect(0,0,r,i),n.putImageData(this.hueCircle,0,0),n.fillStyle="rgba(0,0,0,"+(1-e.v)+")",n.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),Oy(n).call(n),this.brightnessRange.value=100*e.v,this.opacityRange.value=100*t.a,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}},{key:"_setSize",value:function(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}},{key:"_create",value:function(){var t,e,n,r;if(this.frame=document.createElement("div"),this.frame.className="vis-color-picker",this.colorPickerDiv=document.createElement("div"),this.colorPickerSelector=document.createElement("div"),this.colorPickerSelector.className="vis-selector",this.colorPickerDiv.appendChild(this.colorPickerSelector),this.colorPickerCanvas=document.createElement("canvas"),this.colorPickerDiv.appendChild(this.colorPickerCanvas),this.colorPickerCanvas.getContext){var i=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(i.webkitBackingStorePixelRatio||i.mozBackingStorePixelRatio||i.msBackingStorePixelRatio||i.oBackingStorePixelRatio||i.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var o=document.createElement("DIV");o.style.color="red",o.style.fontWeight="bold",o.style.padding="10px",o.innerText="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(o)}this.colorPickerDiv.className="vis-color",this.opacityDiv=document.createElement("div"),this.opacityDiv.className="vis-opacity",this.brightnessDiv=document.createElement("div"),this.brightnessDiv.className="vis-brightness",this.arrowDiv=document.createElement("div"),this.arrowDiv.className="vis-arrow",this.opacityRange=document.createElement("input");try{this.opacityRange.type="range",this.opacityRange.min="0",this.opacityRange.max="100"}catch(t){}this.opacityRange.value="100",this.opacityRange.className="vis-range",this.brightnessRange=document.createElement("input");try{this.brightnessRange.type="range",this.brightnessRange.min="0",this.brightnessRange.max="100"}catch(t){}this.brightnessRange.value="100",this.brightnessRange.className="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);var a=this;this.opacityRange.onchange=function(){a._setOpacity(this.value)},this.opacityRange.oninput=function(){a._setOpacity(this.value)},this.brightnessRange.onchange=function(){a._setBrightness(this.value)},this.brightnessRange.oninput=function(){a._setBrightness(this.value)},this.brightnessLabel=document.createElement("div"),this.brightnessLabel.className="vis-label vis-brightness",this.brightnessLabel.innerText="brightness:",this.opacityLabel=document.createElement("div"),this.opacityLabel.className="vis-label vis-opacity",this.opacityLabel.innerText="opacity:",this.newColorDiv=document.createElement("div"),this.newColorDiv.className="vis-new-color",this.newColorDiv.innerText="new",this.initialColorDiv=document.createElement("div"),this.initialColorDiv.className="vis-initial-color",this.initialColorDiv.innerText="initial",this.cancelButton=document.createElement("div"),this.cancelButton.className="vis-button vis-cancel",this.cancelButton.innerText="cancel",this.cancelButton.onclick=Ur(t=this._hide).call(t,this,!1),this.applyButton=document.createElement("div"),this.applyButton.className="vis-button vis-apply",this.applyButton.innerText="apply",this.applyButton.onclick=Ur(e=this._apply).call(e,this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerText="save",this.saveButton.onclick=Ur(n=this._save).call(n,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerText="load last",this.loadButton.onclick=Ur(r=this._loadLast).call(r,this),this.frame.appendChild(this.colorPickerDiv),this.frame.appendChild(this.arrowDiv),this.frame.appendChild(this.brightnessLabel),this.frame.appendChild(this.brightnessDiv),this.frame.appendChild(this.opacityLabel),this.frame.appendChild(this.opacityDiv),this.frame.appendChild(this.newColorDiv),this.frame.appendChild(this.initialColorDiv),this.frame.appendChild(this.cancelButton),this.frame.appendChild(this.applyButton),this.frame.appendChild(this.saveButton),this.frame.appendChild(this.loadButton)}},{key:"_bindHammer",value:function(){var t=this;this.drag={},this.pinch={},this.hammer=new Sm(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.on("hammer.input",(function(e){e.isFirst&&t._moveSelector(e)})),this.hammer.on("tap",(function(e){t._moveSelector(e)})),this.hammer.on("panstart",(function(e){t._moveSelector(e)})),this.hammer.on("panmove",(function(e){t._moveSelector(e)})),this.hammer.on("panend",(function(e){t._moveSelector(e)}))}},{key:"_generateHueCircle",value:function(){if(!1===this.generated){var t=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)),t.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var e,n,r,i,o=this.colorPickerCanvas.clientWidth,a=this.colorPickerCanvas.clientHeight;t.clearRect(0,0,o,a),this.centerCoordinates={x:.5*o,y:.5*a},this.r=.49*o;var s,l=2*Math.PI/360,u=1/this.r;for(r=0;r<360;r++)for(i=0;i3&&void 0!==arguments[3]?arguments[3]:1,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){return!1};vl(this,t),this.parent=e,this.changedOptions=[],this.container=n,this.allowCreation=!1,this.hideOption=o,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},xr(this.options,this.defaultOptions),this.configureOptions=r,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new nb(i),this.wrapper=void 0}return wd(t,[{key:"setOptions",value:function(t){if(void 0!==t){this.popupHistory={},this._removePopup();var e=!0;if("string"==typeof t)this.options.filter=t;else if(Sf(t))this.options.filter=t.join();else if("object"===yd(t)){if(null==t)throw new TypeError("options cannot be null");void 0!==t.container&&(this.options.container=t.container),void 0!==cv(t)&&(this.options.filter=cv(t)),void 0!==t.showButton&&(this.options.showButton=t.showButton),void 0!==t.enabled&&(e=t.enabled)}else"boolean"==typeof t?(this.options.filter=!0,e=t):"function"==typeof t&&(this.options.filter=t,e=!0);!1===cv(this.options)&&(e=!1),this.options.enabled=e}this._clean()}},{key:"setModuleOptions",value:function(t){this.moduleOptions=t,!0===this.options.enabled&&(this._clean(),void 0!==this.options.container&&(this.container=this.options.container),this._create())}},{key:"_create",value:function(){this._clean(),this.changedOptions=[];var t=cv(this.options),e=0,n=!1;for(var r in this.configureOptions)Object.prototype.hasOwnProperty.call(this.configureOptions,r)&&(this.allowCreation=!1,n=!1,"function"==typeof t?n=(n=t(r,[]))||this._handleObject(this.configureOptions[r],[r],!0):!0!==t&&-1===Uv(t).call(t,r)||(n=!0),!1!==n&&(this.allowCreation=!0,e>0&&this._makeItem([]),this._makeHeader(r),this._handleObject(this.configureOptions[r],[r])),e++);this._makeButton(),this._push()}},{key:"_push",value:function(){this.wrapper=document.createElement("div"),this.wrapper.className="vis-configuration-wrapper",this.container.appendChild(this.wrapper);for(var t=0;t1?n-1:0),i=1;i2&&void 0!==arguments[2]&&arguments[2],r=document.createElement("div");if(r.className="vis-configuration vis-config-label vis-config-s"+e.length,!0===n){for(;r.firstChild;)r.removeChild(r.firstChild);r.appendChild(rb("i","b",t))}else r.innerText=t+":";return r}},{key:"_makeDropdown",value:function(t,e,n){var r=document.createElement("select");r.className="vis-configuration vis-config-select";var i=0;void 0!==e&&-1!==Uv(t).call(t,e)&&(i=Uv(t).call(t,e));for(var o=0;oo&&1!==o&&(s.max=Math.ceil(e*c),u=s.max,l="range increased"),s.value=e}else s.value=r;var h=document.createElement("input");h.className="vis-configuration vis-config-rangeinput",h.value=s.value;var d=this;s.onchange=function(){h.value=this.value,d._update(Number(this.value),n)},s.oninput=function(){h.value=this.value};var f=this._makeLabel(n[n.length-1],n),p=this._makeItem(n,f,s,h);""!==l&&this.popupHistory[p]!==u&&(this.popupHistory[p]=u,this._setupPopup(l,p))}},{key:"_makeButton",value:function(){var t=this;if(!0===this.options.showButton){var e=document.createElement("div");e.className="vis-configuration vis-config-button",e.innerText="generate options",e.onclick=function(){t._printOptions()},e.onmouseover=function(){e.className="vis-configuration vis-config-button hover"},e.onmouseout=function(){e.className="vis-configuration vis-config-button"},this.optionsContainer=document.createElement("div"),this.optionsContainer.className="vis-configuration vis-config-option-container",this.domElements.push(this.optionsContainer),this.domElements.push(e)}}},{key:"_setupPopup",value:function(t,e){var n=this;if(!0===this.initialized&&!0===this.allowCreation&&this.popupCounter1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!1,i=cv(this.options),o=!1;for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a)){r=!0;var s=t[a],l=Lm(e,a);if("function"==typeof i&&!1===(r=i(a,e))&&!Sf(s)&&"string"!=typeof s&&"boolean"!=typeof s&&s instanceof Object&&(this.allowCreation=!1,r=this._handleObject(s,l,!0),this.allowCreation=!1===n),!1!==r){o=!0;var u=this._getValue(l);if(Sf(s))this._handleArray(s,u,l);else if("string"==typeof s)this._makeTextInput(s,u,l);else if("boolean"==typeof s)this._makeCheckbox(s,u,l);else if(s instanceof Object){if(!this.hideOption(e,a,this.moduleOptions))if(void 0!==s.enabled){var c=Lm(l,"enabled"),h=this._getValue(c);if(!0===h){var d=this._makeLabel(a,l,!0);this._makeItem(l,d),o=this._handleObject(s,l)||o}else this._makeCheckbox(s,h,l)}else{var f=this._makeLabel(a,l,!0);this._makeItem(l,f),o=this._handleObject(s,l)||o}}else console.error("dont know how to handle",s,a,l)}}return o}},{key:"_handleArray",value:function(t,e,n){"string"==typeof t[0]&&"color"===t[0]?(this._makeColorField(t,e,n),t[1]!==e&&this.changedOptions.push({path:n,value:e})):"string"==typeof t[0]?(this._makeDropdown(t,e,n),t[0]!==e&&this.changedOptions.push({path:n,value:e})):"number"==typeof t[0]&&(this._makeRange(t,e,n),t[0]!==e&&this.changedOptions.push({path:n,value:Number(e)}))}},{key:"_update",value:function(t,e){var n=this._constructOptions(t,e);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",n),this.initialized=!0,this.parent.setOptions(n)}},{key:"_constructOptions",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n;t="false"!==(t="true"===t||t)&&t;for(var i=0;ii-this.padding&&(s=!0),o=s?this.x-n:this.x,a=l?this.y-e:this.y}else(a=this.y-e)+e+this.padding>r&&(a=r-e-this.padding),ai&&(o=i-n-this.padding),oa.distance?" in "+t.printLocation(o.path,e,"")+"Perhaps it was misplaced? Matching option found at: "+t.printLocation(a.path,a.closestMatch,""):o.distance<=8?'. Did you mean "'+o.closestMatch+'"?'+t.printLocation(o.path,e):". Did you mean one of these: "+t.print(Mf(n))+t.printLocation(r,e),console.error('%cUnknown option detected: "'+e+'"'+i,lb),sb=!0}},{key:"findInOptions",value:function(e,n,r){var i,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=1e9,s="",l=[],u=e.toLowerCase(),c=void 0;for(var h in n){var d=void 0;if(void 0!==n[h].__type__&&!0===o){var f=t.findInOptions(e,n[h],Lm(r,h));a>f.distance&&(s=f.closestMatch,l=f.path,a=f.distance,c=f.indexMatch)}else{var p;-1!==Uv(p=h.toLowerCase()).call(p,u)&&(c=h),a>(d=t.levenshteinDistance(e,h))&&(s=h,l=mf(i=r).call(i),a=d)}}return{closestMatch:s,path:l,distance:a,indexMatch:c}}},{key:"printLocation",value:function(t,e){for(var n="\n\n"+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Problem value found at: \n")+"options = {\n",r=0;r":!0,"--":!0},xb="",kb=0,_b="",Eb="",Sb=bb.NULL;function Ob(){kb++,_b=xb.charAt(kb)}function Cb(){return xb.charAt(kb+1)}function Tb(t){var e=t.charCodeAt(0);return e<47?35===e||46===e:e<59?e>47:e<91?e>64:e<96?95===e:e<123&&e>96}function Pb(t,e){if(t||(t={}),e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function jb(t,e,n){for(var r=e.split("."),i=t;r.length;){var o=r.shift();r.length?(i[o]||(i[o]={}),i=i[o]):i[o]=n}}function Ib(t,e){for(var n,r,i=null,o=[t],a=t;a.parent;)o.push(a.parent),a=a.parent;if(a.nodes)for(n=0,r=a.nodes.length;n=0;n--){var s,l=o[n];l.nodes||(l.nodes=[]),-1===Uv(s=l.nodes).call(s,i)&&l.nodes.push(i)}e.attr&&(i.attr=Pb(i.attr,e.attr))}function Nb(t,e){if(t.edges||(t.edges=[]),t.edges.push(e),t.edge){var n=Pb({},t.edge);e.attr=Pb(n,e.attr)}}function Ab(t,e,n,r,i){var o={from:e,to:n,type:r};return t.edge&&(o.attr=Pb({},t.edge)),o.attr=Pb(o.attr||{},i),null!=i&&i.hasOwnProperty("arrows")&&null!=i.arrows&&(o.arrows={to:{enabled:!0,type:i.arrows.type}},i.arrows=null),o}function Db(){for(Sb=bb.NULL,Eb="";" "===_b||"\t"===_b||"\n"===_b||"\r"===_b;)Ob();do{var t=!1;if("#"===_b){for(var e=kb-1;" "===xb.charAt(e)||"\t"===xb.charAt(e);)e--;if("\n"===xb.charAt(e)||""===xb.charAt(e)){for(;""!=_b&&"\n"!=_b;)Ob();t=!0}}if("/"===_b&&"/"===Cb()){for(;""!=_b&&"\n"!=_b;)Ob();t=!0}if("/"===_b&&"*"===Cb()){for(;""!=_b;){if("*"===_b&&"/"===Cb()){Ob(),Ob();break}Ob()}t=!0}for(;" "===_b||"\t"===_b||"\n"===_b||"\r"===_b;)Ob()}while(t);if(""!==_b){var n=_b+Cb();if(wb[n])return Sb=bb.DELIMITER,Eb=n,Ob(),void Ob();if(wb[_b])return Sb=bb.DELIMITER,Eb=_b,void Ob();if(Tb(_b)||"-"===_b){for(Eb+=_b,Ob();Tb(_b);)Eb+=_b,Ob();return"false"===Eb?Eb=!1:"true"===Eb?Eb=!0:isNaN(Number(Eb))||(Eb=Number(Eb)),void(Sb=bb.IDENTIFIER)}if('"'===_b){for(Ob();""!=_b&&('"'!=_b||'"'===_b&&'"'===Cb());)'"'===_b?(Eb+=_b,Ob()):"\\"===_b&&"n"===Cb()?(Eb+="\n",Ob()):Eb+=_b,Ob();if('"'!=_b)throw Bb('End of string " expected');return Ob(),void(Sb=bb.IDENTIFIER)}for(Sb=bb.UNKNOWN;""!=_b;)Eb+=_b,Ob();throw new SyntaxError('Syntax error in part "'+Wb(Eb,30)+'"')}Sb=bb.DELIMITER}function Mb(t){for(;""!==Eb&&"}"!=Eb;)Fb(t),";"===Eb&&Db()}function Fb(t){var e=Rb(t);if(e)zb(t,e);else{var n=function(t){return"node"===Eb?(Db(),t.node=Lb(),"node"):"edge"===Eb?(Db(),t.edge=Lb(),"edge"):"graph"===Eb?(Db(),t.graph=Lb(),"graph"):null}(t);if(!n){if(Sb!=bb.IDENTIFIER)throw Bb("Identifier expected");var r=Eb;if(Db(),"="===Eb){if(Db(),Sb!=bb.IDENTIFIER)throw Bb("Identifier expected");t[r]=Eb,Db()}else!function(t,e){var n={id:e},r=Lb();r&&(n.attr=r),Ib(t,n),zb(t,e)}(t,r)}}}function Rb(t){var e=null;if("subgraph"===Eb&&((e={}).type="subgraph",Db(),Sb===bb.IDENTIFIER&&(e.id=Eb,Db())),"{"===Eb){if(Db(),e||(e={}),e.parent=t,e.node=t.node,e.edge=t.edge,e.graph=t.graph,Mb(e),"}"!=Eb)throw Bb("Angle bracket } expected");Db(),delete e.node,delete e.edge,delete e.graph,delete e.parent,t.subgraphs||(t.subgraphs=[]),t.subgraphs.push(e)}return e}function zb(t,e){for(;"->"===Eb||"--"===Eb;){var n,r=Eb;Db();var i=Rb(t);if(i)n=i;else{if(Sb!=bb.IDENTIFIER)throw Bb("Identifier or subgraph expected");Ib(t,{id:n=Eb}),Db()}Nb(t,Ab(t,e,n,r,Lb())),e=n}}function Lb(){for(var t,e,n=null,r={dashed:!0,solid:!1,dotted:[1,5]},i={dot:"circle",box:"box",crow:"crow",curve:"curve",icurve:"inv_curve",normal:"triangle",inv:"inv_triangle",diamond:"diamond",tee:"bar",vee:"vee"},o=new Array,a=new Array;"["===Eb;){for(Db(),n={};""!==Eb&&"]"!=Eb;){if(Sb!=bb.IDENTIFIER)throw Bb("Attribute name expected");var s=Eb;if(Db(),"="!=Eb)throw Bb("Equal sign = expected");if(Db(),Sb!=bb.IDENTIFIER)throw Bb("Attribute value expected");var l=Eb;"style"===s&&(l=r[l]),"arrowhead"===s&&(s="arrows",l={to:{enabled:!0,type:i[l]}}),"arrowtail"===s&&(s="arrows",l={from:{enabled:!0,type:i[l]}}),o.push({attr:n,name:s,value:l}),a.push(s),Db(),","==Eb&&Db()}if("]"!=Eb)throw Bb("Bracket ] expected");Db()}if(Jp(a).call(a,"dir")){var u={arrows:{}};for(t=0;t"===t.type&&(e.arrows="to"),e};Jf(i=n.edges).call(i,(function(t){var e,n,i,a,s,l,u;e=t.from instanceof Object?t.from.nodes:{id:t.from},n=t.to instanceof Object?t.to.nodes:{id:t.to},t.from instanceof Object&&t.from.edges&&Jf(i=t.from.edges).call(i,(function(t){var e=o(t);r.edges.push(e)})),s=n,l=function(e,n){var i=Ab(r,e.id,n.id,t.type,t.attr),a=o(i);r.edges.push(a)},Sf(a=e)?Jf(a).call(a,(function(t){Sf(s)?Jf(s).call(s,(function(e){l(t,e)})):l(t,s)})):Sf(s)?Jf(s).call(s,(function(t){l(a,t)})):l(a,s),t.to instanceof Object&&t.to.edges&&Jf(u=t.to.edges).call(u,(function(t){var e=o(t);r.edges.push(e)}))}))}return n.attr&&(r.options=n.attr),r}var qb=Object.freeze({__proto__:null,DOTToGraph:Vb,parseDOT:yb});function Gb(t,e){var n,r={edges:{inheritColor:!1},nodes:{fixed:!1,parseColor:!1}};null!=e&&(null!=e.fixed&&(r.nodes.fixed=e.fixed),null!=e.parseColor&&(r.nodes.parseColor=e.parseColor),null!=e.inheritColor&&(r.edges.inheritColor=e.inheritColor));var i=t.edges,o=Nf(i).call(i,(function(t){var e={from:t.source,id:t.id,to:t.target};return null!=t.attributes&&(e.attributes=t.attributes),null!=t.label&&(e.label=t.label),null!=t.attributes&&null!=t.attributes.title&&(e.title=t.attributes.title),"Directed"===t.type&&(e.arrows="to"),t.color&&!1===r.edges.inheritColor&&(e.color=t.color),e}));return{nodes:Nf(n=t.nodes).call(n,(function(t){var e={id:t.id,fixed:r.nodes.fixed&&null!=t.x&&null!=t.y};return null!=t.attributes&&(e.attributes=t.attributes),null!=t.label&&(e.label=t.label),null!=t.size&&(e.size=t.size),null!=t.attributes&&null!=t.attributes.title&&(e.title=t.attributes.title),null!=t.title&&(e.title=t.title),null!=t.x&&(e.x=t.x),null!=t.y&&(e.y=t.y),null!=t.color&&(!0===r.nodes.parseColor?e.color=t.color:e.color={background:t.color,border:t.color,highlight:{background:t.color,border:t.color},hover:{background:t.color,border:t.color}}),e})),edges:o}}var Yb=Object.freeze({__proto__:null,parseGephi:Gb}),$b=Object.freeze({__proto__:null,cn:{addDescription:"\u5355\u51fb\u7a7a\u767d\u5904\u653e\u7f6e\u65b0\u8282\u70b9\u3002",addEdge:"\u6dfb\u52a0\u8fde\u63a5\u7ebf",addNode:"\u6dfb\u52a0\u8282\u70b9",back:"\u8fd4\u56de",close:"\u95dc\u9589",createEdgeError:"\u65e0\u6cd5\u5c06\u8fde\u63a5\u7ebf\u8fde\u63a5\u5230\u7fa4\u96c6\u3002",del:"\u5220\u9664\u9009\u5b9a",deleteClusterError:"\u65e0\u6cd5\u5220\u9664\u7fa4\u96c6\u3002",edgeDescription:"\u5355\u51fb\u67d0\u4e2a\u8282\u70b9\u5e76\u5c06\u8be5\u8fde\u63a5\u7ebf\u62d6\u52a8\u5230\u53e6\u4e00\u4e2a\u8282\u70b9\u4ee5\u8fde\u63a5\u5b83\u4eec\u3002",edit:"\u7f16\u8f91",editClusterError:"\u65e0\u6cd5\u7f16\u8f91\u7fa4\u96c6\u3002",editEdge:"\u7f16\u8f91\u8fde\u63a5\u7ebf",editEdgeDescription:"\u5355\u51fb\u63a7\u5236\u8282\u70b9\u5e76\u5c06\u5b83\u4eec\u62d6\u5230\u8282\u70b9\u4e0a\u8fde\u63a5\u3002",editNode:"\u7f16\u8f91\u8282\u70b9"},cs:{addDescription:"Kluknut\xedm do pr\xe1zdn\xe9ho prostoru m\u016f\u017eete p\u0159idat nov\xfd vrchol.",addEdge:"P\u0159idat hranu",addNode:"P\u0159idat vrchol",back:"Zp\u011bt",close:"Zav\u0159\xedt",createEdgeError:"Nelze p\u0159ipojit hranu ke shluku.",del:"Smazat v\xfdb\u011br",deleteClusterError:"Nelze mazat shluky.",edgeDescription:"P\u0159eta\u017een\xedm z jednoho vrcholu do druh\xe9ho m\u016f\u017eete spojit tyto vrcholy novou hranou.",edit:"Upravit",editClusterError:"Nelze upravovat shluky.",editEdge:"Upravit hranu",editEdgeDescription:"P\u0159eta\u017een\xedm kontroln\xedho vrcholu hrany ji m\u016f\u017eete p\u0159ipojit k jin\xe9mu vrcholu.",editNode:"Upravit vrchol"},de:{addDescription:"Klicke auf eine freie Stelle, um einen neuen Knoten zu plazieren.",addEdge:"Kante hinzuf\xfcgen",addNode:"Knoten hinzuf\xfcgen",back:"Zur\xfcck",close:"Schlie\xdfen",createEdgeError:"Es ist nicht m\xf6glich, Kanten mit Clustern zu verbinden.",del:"L\xf6sche Auswahl",deleteClusterError:"Cluster k\xf6nnen nicht gel\xf6scht werden.",edgeDescription:"Klicke auf einen Knoten und ziehe die Kante zu einem anderen Knoten, um diese zu verbinden.",edit:"Editieren",editClusterError:"Cluster k\xf6nnen nicht editiert werden.",editEdge:"Kante editieren",editEdgeDescription:"Klicke auf die Verbindungspunkte und ziehe diese auf einen Knoten, um sie zu verbinden.",editNode:"Knoten editieren"},en:{addDescription:"Click in an empty space to place a new node.",addEdge:"Add Edge",addNode:"Add Node",back:"Back",close:"Close",createEdgeError:"Cannot link edges to a cluster.",del:"Delete selected",deleteClusterError:"Clusters cannot be deleted.",edgeDescription:"Click on a node and drag the edge to another node to connect them.",edit:"Edit",editClusterError:"Clusters cannot be edited.",editEdge:"Edit Edge",editEdgeDescription:"Click on the control points and drag them to a node to connect to it.",editNode:"Edit Node"},es:{addDescription:"Haga clic en un lugar vac\xedo para colocar un nuevo nodo.",addEdge:"A\xf1adir arista",addNode:"A\xf1adir nodo",back:"Atr\xe1s",close:"Cerrar",createEdgeError:"No se puede conectar una arista a un grupo.",del:"Eliminar selecci\xf3n",deleteClusterError:"No es posible eliminar grupos.",edgeDescription:"Haga clic en un nodo y arrastre la arista hacia otro nodo para conectarlos.",edit:"Editar",editClusterError:"No es posible editar grupos.",editEdge:"Editar arista",editEdgeDescription:"Haga clic en un punto de control y arrastrelo a un nodo para conectarlo.",editNode:"Editar nodo"},fr:{addDescription:"Cliquez dans un endroit vide pour placer un n\u0153ud.",addEdge:"Ajouter un lien",addNode:"Ajouter un n\u0153ud",back:"Retour",close:"Fermer",createEdgeError:"Impossible de cr\xe9er un lien vers un cluster.",del:"Effacer la s\xe9lection",deleteClusterError:"Les clusters ne peuvent pas \xeatre effac\xe9s.",edgeDescription:"Cliquez sur un n\u0153ud et glissez le lien vers un autre n\u0153ud pour les connecter.",edit:"\xc9diter",editClusterError:"Les clusters ne peuvent pas \xeatre \xe9dit\xe9s.",editEdge:"\xc9diter le lien",editEdgeDescription:"Cliquez sur les points de contr\xf4le et glissez-les pour connecter un n\u0153ud.",editNode:"\xc9diter le n\u0153ud"},it:{addDescription:"Clicca per aggiungere un nuovo nodo",addEdge:"Aggiungi un vertice",addNode:"Aggiungi un nodo",back:"Indietro",close:"Chiudere",createEdgeError:"Non si possono collegare vertici ad un cluster",del:"Cancella la selezione",deleteClusterError:"I cluster non possono essere cancellati",edgeDescription:"Clicca su un nodo e trascinalo ad un altro nodo per connetterli.",edit:"Modifica",editClusterError:"I clusters non possono essere modificati.",editEdge:"Modifica il vertice",editEdgeDescription:"Clicca sui Punti di controllo e trascinali ad un nodo per connetterli.",editNode:"Modifica il nodo"},nl:{addDescription:"Klik op een leeg gebied om een nieuwe node te maken.",addEdge:"Link toevoegen",addNode:"Node toevoegen",back:"Terug",close:"Sluiten",createEdgeError:"Kan geen link maken naar een cluster.",del:"Selectie verwijderen",deleteClusterError:"Clusters kunnen niet worden verwijderd.",edgeDescription:"Klik op een node en sleep de link naar een andere node om ze te verbinden.",edit:"Wijzigen",editClusterError:"Clusters kunnen niet worden aangepast.",editEdge:"Link wijzigen",editEdgeDescription:"Klik op de verbindingspunten en sleep ze naar een node om daarmee te verbinden.",editNode:"Node wijzigen"},pt:{addDescription:"Clique em um espa\xe7o em branco para adicionar um novo n\xf3",addEdge:"Adicionar aresta",addNode:"Adicionar n\xf3",back:"Voltar",close:"Fechar",createEdgeError:"N\xe3o foi poss\xedvel linkar arestas a um cluster.",del:"Remover selecionado",deleteClusterError:"Clusters n\xe3o puderam ser removidos.",edgeDescription:"Clique em um n\xf3 e arraste a aresta at\xe9 outro n\xf3 para conect\xe1-los",edit:"Editar",editClusterError:"Clusters n\xe3o puderam ser editados.",editEdge:"Editar aresta",editEdgeDescription:"Clique nos pontos de controle e os arraste para um n\xf3 para conect\xe1-los",editNode:"Editar n\xf3"},ru:{addDescription:"\u041a\u043b\u0438\u043a\u043d\u0438\u0442\u0435 \u0432 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0435 \u043c\u0435\u0441\u0442\u043e, \u0447\u0442\u043e\u0431\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043d\u043e\u0432\u044b\u0439 \u0443\u0437\u0435\u043b.",addEdge:"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0440\u0435\u0431\u0440\u043e",addNode:"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0443\u0437\u0435\u043b",back:"\u041d\u0430\u0437\u0430\u0434",close:"\u0417\u0430\u043a\u0440\u044b\u0432\u0430\u0442\u044c",createEdgeError:"\u041d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0435\u0434\u0438\u043d\u0438\u0442\u044c \u0440\u0435\u0431\u0440\u0430 \u0432 \u043a\u043b\u0430\u0441\u0442\u0435\u0440.",del:"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u0435",deleteClusterError:"\u041a\u043b\u0430\u0441\u0442\u0435\u0440\u044b \u043d\u0435 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0443\u0434\u0430\u043b\u0435\u043d\u044b",edgeDescription:"\u041a\u043b\u0438\u043a\u043d\u0438\u0442\u0435 \u043d\u0430 \u0443\u0437\u0435\u043b \u0438 \u043f\u0440\u043e\u0442\u044f\u043d\u0438\u0442\u0435 \u0440\u0435\u0431\u0440\u043e \u043a \u0434\u0440\u0443\u0433\u043e\u043c\u0443 \u0443\u0437\u043b\u0443, \u0447\u0442\u043e\u0431\u044b \u0441\u043e\u0435\u0434\u0438\u043d\u0438\u0442\u044c \u0438\u0445.",edit:"\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c",editClusterError:"\u041a\u043b\u0430\u0441\u0442\u0435\u0440\u044b \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0434\u043b\u044f \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f.",editEdge:"\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0440\u0435\u0431\u0440\u043e",editEdgeDescription:"\u041a\u043b\u0438\u043a\u043d\u0438\u0442\u0435 \u043d\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c\u043d\u044b\u0435 \u0442\u043e\u0447\u043a\u0438 \u0438 \u043f\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u0435 \u0438\u0445 \u0432 \u0443\u0437\u0435\u043b, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043a \u043d\u0435\u043c\u0443.",editNode:"\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0443\u0437\u0435\u043b"},uk:{addDescription:"K\u043b\u0456\u043a\u043d\u0456\u0442\u044c \u043d\u0430 \u0432\u0456\u043b\u044c\u043d\u0435 \u043c\u0456\u0441\u0446\u0435, \u0449\u043e\u0431 \u0434\u043e\u0434\u0430\u0442\u0438 \u043d\u043e\u0432\u0438\u0439 \u0432\u0443\u0437\u043e\u043b.",addEdge:"\u0414\u043e\u0434\u0430\u0442\u0438 \u043a\u0440\u0430\u0439",addNode:"\u0414\u043e\u0434\u0430\u0442\u0438 \u0432\u0443\u0437\u043e\u043b",back:"\u041d\u0430\u0437\u0430\u0434",close:"\u0417\u0430\u043a\u0440\u0438\u0442\u0438",createEdgeError:"\u041d\u0435 \u043c\u043e\u0436\u043b\u0438\u0432\u043e \u043e\u0431'\u0454\u0434\u043d\u0430\u0442\u0438 \u043a\u0440\u0430\u0457 \u0432 \u0433\u0440\u0443\u043f\u0443.",del:"\u0412\u0438\u0434\u0430\u043b\u0438\u0442\u0438 \u043e\u0431\u0440\u0430\u043d\u0435",deleteClusterError:"\u0413\u0440\u0443\u043f\u0438 \u043d\u0435 \u043c\u043e\u0436\u0443\u0442\u044c \u0431\u0443\u0442\u0438 \u0432\u0438\u0434\u0430\u043b\u0435\u043d\u0456.",edgeDescription:"\u041a\u043b\u0456\u043a\u043d\u0456\u0442\u044c \u043d\u0430 \u0432\u0443\u0437\u043e\u043b \u0456 \u043f\u0435\u0440\u0435\u0442\u044f\u0433\u043d\u0456\u0442\u044c \u043a\u0440\u0430\u0439 \u0434\u043e \u0456\u043d\u0448\u043e\u0433\u043e \u0432\u0443\u0437\u043b\u0430, \u0449\u043e\u0431 \u0457\u0445 \u0437'\u0454\u0434\u043d\u0430\u0442\u0438.",edit:"\u0420\u0435\u0434\u0430\u0433\u0443\u0432\u0430\u0442\u0438",editClusterError:"\u0413\u0440\u0443\u043f\u0438 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0456 \u0434\u043b\u044f \u0440\u0435\u0434\u0430\u0433\u0443\u0432\u0430\u043d\u043d\u044f.",editEdge:"\u0420\u0435\u0434\u0430\u0433\u0443\u0432\u0430\u0442\u0438 \u043a\u0440\u0430\u0439",editEdgeDescription:"\u041a\u043b\u0456\u043a\u043d\u0456\u0442\u044c \u043d\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c\u043d\u0456 \u0442\u043e\u0447\u043a\u0438 \u0456 \u043f\u0435\u0440\u0435\u0442\u044f\u0433\u043d\u0456\u0442\u044c \u0457\u0445 \u0443 \u0432\u0443\u0437\u043e\u043b, \u0449\u043e\u0431 \u043f\u0456\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u0438\u0441\u044f \u0434\u043e \u043d\u044c\u043e\u0433\u043e.",editNode:"\u0420\u0435\u0434\u0430\u0433\u0443\u0432\u0430\u0442\u0438 \u0432\u0443\u0437\u043e\u043b"}}),Xb=function(){function t(){vl(this,t),this.NUM_ITERATIONS=4,this.image=new Image,this.canvas=document.createElement("canvas")}return wd(t,[{key:"init",value:function(){if(!this.initialized()){this.src=this.image.src;var t=this.image.width,e=this.image.height;this.width=t,this.height=e;var n=Math.floor(e/2),r=Math.floor(e/4),i=Math.floor(e/8),o=Math.floor(e/16),a=Math.floor(t/2),s=Math.floor(t/4),l=Math.floor(t/8),u=Math.floor(t/16);this.canvas.width=3*s,this.canvas.height=n,this.coordinates=[[0,0,a,n],[a,0,s,r],[a,r,l,i],[5*l,r,u,o]],this._fillMipMap()}}},{key:"initialized",value:function(){return void 0!==this.coordinates}},{key:"_fillMipMap",value:function(){var t=this.canvas.getContext("2d"),e=this.coordinates[0];t.drawImage(this.image,e[0],e[1],e[2],e[3]);for(var n=1;n2){e*=.5;for(var a=0;e>2&&a=this.NUM_ITERATIONS&&(a=this.NUM_ITERATIONS-1);var s=this.coordinates[a];t.drawImage(this.canvas,s[0],s[1],s[2],s[3],n,r,i,o)}else t.drawImage(this.image,n,r,i,o)}}]),t}(),Kb=function(){function t(e){vl(this,t),this.images={},this.imageBroken={},this.callback=e}return wd(t,[{key:"_tryloadBrokenUrl",value:function(t,e,n){void 0!==t&&void 0!==n&&(void 0!==e?(n.image.onerror=function(){console.error("Could not load brokenImage:",e)},n.image.src=e):console.warn("No broken url image defined"))}},{key:"_redrawWithImage",value:function(t){this.callback&&this.callback(t)}},{key:"load",value:function(t,e){var n=this,r=this.images[t];if(r)return r;var i=new Xb;return this.images[t]=i,i.image.onload=function(){n._fixImageCoordinates(i.image),i.init(),n._redrawWithImage(i)},i.image.onerror=function(){console.error("Could not load image:",t),n._tryloadBrokenUrl(t,e,i)},i.image.src=t,i}},{key:"_fixImageCoordinates",value:function(t){0===t.width&&(document.body.appendChild(t),t.width=t.offsetWidth,t.height=t.offsetHeight,document.body.removeChild(t))}}]),t}(),Qb={exports:{}},Jb=s((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),Zb=s,tw=nt,ew=k,nw=Jb,rw=Object.isExtensible,iw=Zb((function(){rw(1)}))||nw?function(t){return!!tw(t)&&(!nw||"ArrayBuffer"!==ew(t))&&(!rw||rw(t))}:rw,ow=!s((function(){return Object.isExtensible(Object.preventExtensions({}))})),aw=In,sw=m,lw=Xn,uw=nt,cw=te,hw=Ze.f,dw=Zl,fw=nu,pw=iw,vw=ow,yw=!1,gw=oe("meta"),mw=0,bw=function(t){hw(t,gw,{value:{objectID:"O"+mw++,weakData:{}}})},ww=Qb.exports={enable:function(){ww.enable=function(){},yw=!0;var t=dw.f,e=sw([].splice),n={};n[gw]=1,t(n).length&&(dw.f=function(n){for(var r=t(n),i=0,o=r.length;io;o++)if((s=g(t[o]))&&Tw(Dw,s))return s;return new Aw(!1)}r=Pw(t,i)}for(l=d?t.next:r.next;!(u=_w(l,r)).done;){try{s=g(u.value)}catch(t){Iw(r,"throw",t)}if("object"==typeof s&&s&&Tw(Dw,s))return s}return new Aw(!1)},Fw=ut,Rw=TypeError,zw=function(t,e){if(Fw(e,t))return t;throw new Rw("Incorrect invocation")},Lw=In,Bw=a,Ww=xw,Hw=s,Uw=bn,Vw=Mw,qw=zw,Gw=P,Yw=nt,$w=Y,Xw=Ko,Kw=Ze.f,Qw=Mu.forEach,Jw=I,Zw=Wi.set,tx=Wi.getterFor,ex=function(t,e,n){var r,i=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),a=i?"set":"add",s=Bw[t],l=s&&s.prototype,u={};if(Jw&&Gw(s)&&(o||l.forEach&&!Hw((function(){(new s).entries().next()})))){var c=(r=e((function(e,n){Zw(qw(e,c),{type:t,collection:new s}),$w(n)||Vw(n,e[a],{that:e,AS_ENTRIES:i})}))).prototype,h=tx(t);Qw(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(t){var e="add"===t||"set"===t;!(t in l)||o&&"clear"===t||Uw(c,t,(function(n,r){var i=h(this).collection;if(!e&&o&&!Yw(n))return"get"===t&&void 0;var a=i[t](0===n?0:n,r);return e?this:a}))})),o||Kw(c,"size",{configurable:!0,get:function(){return h(this).collection.size}})}else r=n.getConstructor(e,t,i,a),Ww.enable();return Xw(r,t,!1,!0),u[t]=r,Lw({global:!0,forced:!0},u),o||n.setStrong(r,t,i),r},nx=Io,rx=function(t,e,n){for(var r in e)n&&n.unsafe&&t[r]?t[r]=e[r]:nx(t,r,e[r],n);return t},ix=lt,ox=vu,ax=I,sx=pe("species"),lx=wo,ux=vu,cx=rx,hx=Je,dx=zw,fx=Y,px=Mw,vx=Ta,yx=Pa,gx=function(t){var e=ix(t);ax&&e&&!e[sx]&&ox(e,sx,{configurable:!0,get:function(){return this}})},mx=I,bx=xw.fastKey,wx=Wi.set,xx=Wi.getterFor,kx={getConstructor:function(t,e,n,r){var i=t((function(t,i){dx(t,o),wx(t,{type:e,index:lx(null),first:void 0,last:void 0,size:0}),mx||(t.size=0),fx(i)||px(i,t[r],{that:t,AS_ENTRIES:n})})),o=i.prototype,a=xx(e),s=function(t,e,n){var r,i,o=a(t),s=l(t,e);return s?s.value=n:(o.last=s={index:i=bx(e,!0),key:e,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=s),r&&(r.next=s),mx?o.size++:t.size++,"F"!==i&&(o.index[i]=s)),t},l=function(t,e){var n,r=a(t),i=bx(e);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key===e)return n};return cx(o,{clear:function(){for(var t=a(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,mx?t.size=0:this.size=0},delete:function(t){var e=this,n=a(e),r=l(e,t);if(r){var i=r.next,o=r.previous;delete n.index[r.index],r.removed=!0,o&&(o.next=i),i&&(i.previous=o),n.first===r&&(n.first=i),n.last===r&&(n.last=o),mx?n.size--:e.size--}return!!r},forEach:function(t){for(var e,n=a(this),r=hx(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!l(this,t)}}),cx(o,n?{get:function(t){var e=l(this,t);return e&&e.value},set:function(t,e){return s(this,0===t?0:t,e)}}:{add:function(t){return s(this,t=0===t?0:t,t)}}),mx&&ux(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(t,e,n){var r=e+" Iterator",i=xx(e),o=xx(r);vx(t,e,(function(t,e){wx(this,{type:r,target:t,state:i(t),kind:e,last:void 0})}),(function(){for(var t=o(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?yx("keys"===e?n.key:"values"===e?n.value:[n.key,n.value],!1):(t.target=void 0,yx(void 0,!0))}),n?"entries":"values",!n,!0),gx(e)}};ex("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),kx);var _x=i(rt.Map),Ex=function(){function t(){vl(this,t),this.clear(),this._defaultIndex=0,this._groupIndex=0,this._defaultGroups=[{border:"#2B7CE9",background:"#97C2FC",highlight:{border:"#2B7CE9",background:"#D2E5FF"},hover:{border:"#2B7CE9",background:"#D2E5FF"}},{border:"#FFA500",background:"#FFFF00",highlight:{border:"#FFA500",background:"#FFFFA3"},hover:{border:"#FFA500",background:"#FFFFA3"}},{border:"#FA0A10",background:"#FB7E81",highlight:{border:"#FA0A10",background:"#FFAFB1"},hover:{border:"#FA0A10",background:"#FFAFB1"}},{border:"#41A906",background:"#7BE141",highlight:{border:"#41A906",background:"#A1EC76"},hover:{border:"#41A906",background:"#A1EC76"}},{border:"#E129F0",background:"#EB7DF4",highlight:{border:"#E129F0",background:"#F0B3F5"},hover:{border:"#E129F0",background:"#F0B3F5"}},{border:"#7C29F0",background:"#AD85E4",highlight:{border:"#7C29F0",background:"#D3BDF0"},hover:{border:"#7C29F0",background:"#D3BDF0"}},{border:"#C37F00",background:"#FFA807",highlight:{border:"#C37F00",background:"#FFCA66"},hover:{border:"#C37F00",background:"#FFCA66"}},{border:"#4220FB",background:"#6E6EFD",highlight:{border:"#4220FB",background:"#9B9BFD"},hover:{border:"#4220FB",background:"#9B9BFD"}},{border:"#FD5A77",background:"#FFC0CB",highlight:{border:"#FD5A77",background:"#FFD1D9"},hover:{border:"#FD5A77",background:"#FFD1D9"}},{border:"#4AD63A",background:"#C2FABC",highlight:{border:"#4AD63A",background:"#E6FFE3"},hover:{border:"#4AD63A",background:"#E6FFE3"}},{border:"#990000",background:"#EE0000",highlight:{border:"#BB0000",background:"#FF3333"},hover:{border:"#BB0000",background:"#FF3333"}},{border:"#FF6000",background:"#FF6000",highlight:{border:"#FF6000",background:"#FF6000"},hover:{border:"#FF6000",background:"#FF6000"}},{border:"#97C2FC",background:"#2B7CE9",highlight:{border:"#D2E5FF",background:"#2B7CE9"},hover:{border:"#D2E5FF",background:"#2B7CE9"}},{border:"#399605",background:"#255C03",highlight:{border:"#399605",background:"#255C03"},hover:{border:"#399605",background:"#255C03"}},{border:"#B70054",background:"#FF007E",highlight:{border:"#B70054",background:"#FF007E"},hover:{border:"#B70054",background:"#FF007E"}},{border:"#AD85E4",background:"#7C29F0",highlight:{border:"#D3BDF0",background:"#7C29F0"},hover:{border:"#D3BDF0",background:"#7C29F0"}},{border:"#4557FA",background:"#000EA1",highlight:{border:"#6E6EFD",background:"#000EA1"},hover:{border:"#6E6EFD",background:"#000EA1"}},{border:"#FFC0CB",background:"#FD5A77",highlight:{border:"#FFD1D9",background:"#FD5A77"},hover:{border:"#FFD1D9",background:"#FD5A77"}},{border:"#C2FABC",background:"#74D66A",highlight:{border:"#E6FFE3",background:"#74D66A"},hover:{border:"#E6FFE3",background:"#74D66A"}},{border:"#EE0000",background:"#990000",highlight:{border:"#FF3333",background:"#BB0000"},hover:{border:"#FF3333",background:"#BB0000"}}],this.options={},this.defaultOptions={useDefaultGroups:!0},xr(this.options,this.defaultOptions)}return wd(t,[{key:"setOptions",value:function(t){var e=["useDefaultGroups"];if(void 0!==t)for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&-1===Uv(e).call(e,n)){var r=t[n];this.add(n,r)}}},{key:"clear",value:function(){this._groups=new _x,this._groupNames=[]}},{key:"get",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this._groups.get(t);if(void 0===n&&e)if(!1===this.options.useDefaultGroups&&this._groupNames.length>0){var r=this._groupIndex%this._groupNames.length;++this._groupIndex,(n={}).color=this._groups.get(this._groupNames[r]),this._groups.set(t,n)}else{var i=this._defaultIndex%this._defaultGroups.length;this._defaultIndex++,(n={}).color=this._defaultGroups[i],this._groups.set(t,n)}return n}},{key:"add",value:function(t,e){return this._groups.has(t)||this._groupNames.push(t),this._groups.set(t,e),e}}]),t}();In({target:"Number",stat:!0},{isNaN:function(t){return t!=t}});var Sx=i(rt.Number.isNaN),Ox=a.isFinite,Cx=Number.isFinite||function(t){return"number"==typeof t&&Ox(t)};In({target:"Number",stat:!0},{isFinite:Cx});var Tx=i(rt.Number.isFinite),Px=Mu.some;In({target:"Array",proto:!0,forced:!Wf("some")},{some:function(t){return Px(this,t,arguments.length>1?arguments[1]:void 0)}});var jx=Fr("Array").some,Ix=ut,Nx=jx,Ax=Array.prototype,Dx=function(t){var e=t.some;return t===Ax||Ix(Ax,t)&&e===Ax.some?Nx:e},Mx=i(Dx),Fx=i(rt.Object.getOwnPropertySymbols),Rx={exports:{}},zx=In,Lx=s,Bx=Z,Wx=j.f,Hx=I;zx({target:"Object",stat:!0,forced:!Hx||Lx((function(){Wx(1)})),sham:!Hx},{getOwnPropertyDescriptor:function(t,e){return Wx(Bx(t),e)}});var Ux=rt.Object,Vx=Rx.exports=function(t,e){return Ux.getOwnPropertyDescriptor(t,e)};Ux.getOwnPropertyDescriptor.sham&&(Vx.sham=!0);var qx=Rx.exports,Gx=i(qx),Yx=Ef,$x=Z,Xx=j,Kx=vs;In({target:"Object",stat:!0,sham:!I},{getOwnPropertyDescriptors:function(t){for(var e,n,r=$x(t),i=Xx.f,o=Yx(r),a={},s=0;o.length>s;)void 0!==(n=i(r,e=o[s++]))&&Kx(a,e,n);return a}});var Qx=i(rt.Object.getOwnPropertyDescriptors),Jx={exports:{}},Zx=In,tk=I,ek=$i.f;Zx({target:"Object",stat:!0,forced:Object.defineProperties!==ek,sham:!tk},{defineProperties:ek});var nk=rt.Object,rk=Jx.exports=function(t,e){return nk.defineProperties(t,e)};nk.defineProperties.sham&&(rk.sham=!0);var ik=i(Jx.exports),ok=i(kl);function ak(t,e,n){return(e=md(e))in t?_l(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var sk=a,lk=s,uk=di,ck=bv.trim,hk=hv,dk=m("".charAt),fk=sk.parseFloat,pk=sk.Symbol,vk=pk&&pk.iterator,yk=1/fk(hk+"-0")!=-1/0||vk&&!lk((function(){fk(Object(vk))}))?function(t){var e=ck(uk(t)),n=fk(e);return 0===n&&"-"===dk(e,0)?-0:n}:fk;In({global:!0,forced:parseFloat!==yk},{parseFloat:yk});var gk=i(rt.parseFloat),mk=In,bk=s,wk=nu.f;mk({target:"Object",stat:!0,forced:bk((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:wk});var xk=rt.Object,kk=function(t){return xk.getOwnPropertyNames(t)},_k=i(kk);function Ek(t,e){var n=["node","edge","label"],r=!0,i=tb(e,"chosen");if("boolean"==typeof i)r=i;else if("object"===yd(i)){if(-1===Uv(n).call(n,t))throw new Error("choosify: subOption '"+t+"' should be one of '"+n.join("', '")+"'");var o=tb(e,["chosen",t]);"boolean"!=typeof o&&"function"!=typeof o||(r=o)}return r}function Sk(t,e,n){if(t.width<=0||t.height<=0)return!1;if(void 0!==n){var r={x:e.x-n.x,y:e.y-n.y};if(0!==n.angle){var i=-n.angle;e={x:Math.cos(i)*r.x-Math.sin(i)*r.y,y:Math.sin(i)*r.x+Math.cos(i)*r.y}}else e=r}var o=t.x+t.width,a=t.y+t.width;return t.lefte.x&&t.tope.y}function Ok(t){return"string"==typeof t&&""!==t}function Ck(t,e,n,r){var i=r.x,o=r.y;if("function"==typeof r.distanceToBorder){var a=r.distanceToBorder(t,e),s=Math.sin(e)*a,l=Math.cos(e)*a;l===a?(i+=a,o=r.y):s===a?(i=r.x,o-=a):(i+=l,o-=s)}else r.shape.width>r.shape.height?(i=r.x+.5*r.shape.width,o=r.y-n):(i=r.x+n,o=r.y-.5*r.shape.height);return{x:i,y:o}}var Tk=Fr("Array").values,Pk=ui,jk=te,Ik=ut,Nk=Tk,Ak=Array.prototype,Dk={DOMTokenList:!0,NodeList:!0},Mk=function(t){var e=t.values;return t===Ak||Ik(Ak,t)&&e===Ak.values||jk(Dk,Pk(t))?Nk:e},Fk=i(Mk),Rk=function(){function t(e){vl(this,t),this.measureText=e,this.current=0,this.width=0,this.height=0,this.lines=[]}return wd(t,[{key:"_add",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"normal";void 0===this.lines[t]&&(this.lines[t]={width:0,height:0,blocks:[]});var r=e;void 0!==e&&""!==e||(r=" ");var i=this.measureText(r,n),o=xr({},Fk(i));o.text=e,o.width=i.width,o.mod=n,void 0!==e&&""!==e||(o.width=0),this.lines[t].blocks.push(o),this.lines[t].width+=o.width}},{key:"curWidth",value:function(){var t=this.lines[this.current];return void 0===t?0:t.width}},{key:"append",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"normal";this._add(this.current,t,e)}},{key:"newLine",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"normal";this._add(this.current,t,e),this.current++}},{key:"determineLineHeights",value:function(){for(var t=0;tt&&(t=r.width),e+=r.height}this.width=t,this.height=e}},{key:"removeEmptyBlocks",value:function(){for(var t=[],e=0;e"://,""://,""://,"
":/<\/b>/,"":/<\/i>/,"":/<\/code>/,"*":/\*/,_:/_/,"`":/`/,afterBold:/[^*]/,afterItal:/[^_]/,afterMono:/[^`]/},Lk=function(){function t(e){vl(this,t),this.text=e,this.bold=!1,this.ital=!1,this.mono=!1,this.spacing=!1,this.position=0,this.buffer="",this.modStack=[],this.blocks=[]}return wd(t,[{key:"mod",value:function(){return 0===this.modStack.length?"normal":this.modStack[0]}},{key:"modName",value:function(){return 0===this.modStack.length?"normal":"mono"===this.modStack[0]?"mono":this.bold&&this.ital?"boldital":this.bold?"bold":this.ital?"ital":void 0}},{key:"emitBlock",value:function(){this.spacing&&(this.add(" "),this.spacing=!1),this.buffer.length>0&&(this.blocks.push({text:this.buffer,mod:this.modName()}),this.buffer="")}},{key:"add",value:function(t){" "===t&&(this.spacing=!0),this.spacing&&(this.buffer+=" ",this.spacing=!1)," "!=t&&(this.buffer+=t)}},{key:"parseWS",value:function(t){return!!/[ \t]/.test(t)&&(this.mono?this.add(t):this.spacing=!0,!0)}},{key:"setTag",value:function(t){this.emitBlock(),this[t]=!0,this.modStack.unshift(t)}},{key:"unsetTag",value:function(t){this.emitBlock(),this[t]=!1,this.modStack.shift()}},{key:"parseStartTag",value:function(t,e){return!(this.mono||this[t]||!this.match(e))&&(this.setTag(t),!0)}},{key:"match",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=uf(this.prepareRegExp(t),2),r=n[0],i=n[1],o=r.test(this.text.substr(this.position,i));return o&&e&&(this.position+=i-1),o}},{key:"parseEndTag",value:function(t,e,n){var r=this.mod()===t;return!(!(r="mono"===t?r&&this.mono:r&&!this.mono)||!this.match(e))&&(void 0!==n?(this.position===this.text.length-1||this.match(n,!1))&&this.unsetTag(t):this.unsetTag(t),!0)}},{key:"replace",value:function(t,e){return!!this.match(t)&&(this.add(e),this.position+=length-1,!0)}},{key:"prepareRegExp",value:function(t){var e,n;if(t instanceof RegExp)n=t,e=1;else{var r=zk[t];n=void 0!==r?r:new RegExp(t),e=t.length}return[n,e]}}]),t}(),Bk=function(){function t(e,n,r,i){var o=this;vl(this,t),this.ctx=e,this.parent=n,this.selected=r,this.hover=i,this.lines=new Rk((function(t,n){if(void 0===t)return 0;var a=o.parent.getFormattingValues(e,r,i,n),s=0;return""!==t&&(s=o.ctx.measureText(t).width),{width:s,values:a}}))}return wd(t,[{key:"process",value:function(t){if(!Ok(t))return this.lines.finalize();var e=this.parent.fontOptions;t=(t=t.replace(/\r\n/g,"\n")).replace(/\r/g,"\n");var n=String(t).split("\n"),r=n.length;if(e.multi)for(var i=0;i0)for(var a=0;a0)for(var d=0;d")||e.parseStartTag("ital","")||e.parseStartTag("mono","")||e.parseEndTag("bold","")||e.parseEndTag("ital","
")||e.parseEndTag("mono",""))||n(r)||e.add(r),e.position++}return e.emitBlock(),e.blocks}},{key:"splitMarkdownBlocks",value:function(t){for(var e=this,n=new Lk(t),r=!0,i=function(t){return!!/\\/.test(t)&&(n.positionthis.parent.fontOptions.maxWdt}},{key:"getLongestFit",value:function(t){for(var e="",n=0;n1&&void 0!==arguments[1]?arguments[1]:"normal",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.parent.getFormattingValues(this.ctx,this.selected,this.hover,e);for(var r=(t=(t=t.replace(/^( +)/g,"$1\r")).replace(/([^\r][^ ]*)( +)/g,"$1\r$2\r")).split("\r");r.length>0;){var i=this.getLongestFit(r);if(0===i){var o=r[0],a=this.getLongestFitWord(o);this.lines.newLine(mf(o).call(o,0,a),e),r[0]=mf(o).call(o,a)}else{var s=i;" "===r[i-1]?i--:" "===r[s]&&s++;var l=mf(r).call(r,0,i).join("");i==r.length&&n?this.lines.append(l,e):this.lines.newLine(l,e),r=mf(r).call(r,s)}}}}]),t}(),Wk=["bold","ital","boldital","mono"],Hk=function(){function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];vl(this,t),this.body=e,this.pointToSelf=!1,this.baseSize=void 0,this.fontOptions={},this.setOptions(n),this.size={top:0,left:0,width:0,height:0,yLine:0},this.isEdgeLabel=r}return wd(t,[{key:"setOptions",value:function(t){if(this.elementOptions=t,this.initFontOptions(t.font),Ok(t.label)?this.labelDirty=!0:t.label=void 0,void 0!==t.font&&null!==t.font)if("string"==typeof t.font)this.baseSize=this.fontOptions.size;else if("object"===yd(t.font)){var e=t.font.size;void 0!==e&&(this.baseSize=e)}}},{key:"initFontOptions",value:function(e){var n=this;Wm(Wk,(function(t){n.fontOptions[t]={}})),t.parseFontString(this.fontOptions,e)?this.fontOptions.vadjust=0:Wm(e,(function(t,e){null!=t&&"object"!==yd(t)&&(n.fontOptions[e]=t)}))}},{key:"constrain",value:function(t){var e={constrainWidth:!1,maxWdt:-1,minWdt:-1,constrainHeight:!1,minHgt:-1,valign:"middle"},n=tb(t,"widthConstraint");if("number"==typeof n)e.maxWdt=Number(n),e.minWdt=Number(n);else if("object"===yd(n)){var r=tb(t,["widthConstraint","maximum"]);"number"==typeof r&&(e.maxWdt=Number(r));var i=tb(t,["widthConstraint","minimum"]);"number"==typeof i&&(e.minWdt=Number(i))}var o=tb(t,"heightConstraint");if("number"==typeof o)e.minHgt=Number(o);else if("object"===yd(o)){var a=tb(t,["heightConstraint","minimum"]);"number"==typeof a&&(e.minHgt=Number(a));var s=tb(t,["heightConstraint","valign"]);"string"==typeof s&&("top"!==s&&"bottom"!==s||(e.valign=s))}return e}},{key:"update",value:function(t,e){this.setOptions(t,!0),this.propagateFonts(e),zm(this.fontOptions,this.constrain(e)),this.fontOptions.chooser=Ek("label",e)}},{key:"adjustSizes",value:function(t){var e=t?t.right+t.left:0;this.fontOptions.constrainWidth&&(this.fontOptions.maxWdt-=e,this.fontOptions.minWdt-=e);var n=t?t.top+t.bottom:0;this.fontOptions.constrainHeight&&(this.fontOptions.minHgt-=n)}},{key:"addFontOptionsToPile",value:function(t,e){for(var n=0;n5&&void 0!==arguments[5]?arguments[5]:"middle";if(void 0!==this.elementOptions.label){var a=this.fontOptions.size*this.body.view.scale;this.elementOptions.label&&a=this.elementOptions.scaling.label.maxVisible&&(a=Number(this.elementOptions.scaling.label.maxVisible)/this.body.view.scale),this.calculateLabelSize(t,r,i,e,n,o),this._drawBackground(t),this._drawText(t,e,this.size.yLine,o,a))}}},{key:"_drawBackground",value:function(t){if(void 0!==this.fontOptions.background&&"none"!==this.fontOptions.background){t.fillStyle=this.fontOptions.background;var e=this.getSize();t.fillRect(e.left,e.top,e.width,e.height)}}},{key:"_drawText",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"middle",i=arguments.length>4?arguments[4]:void 0,o=uf(this._setAlignment(t,e,n,r),2);e=o[0],n=o[1],t.textAlign="left",e-=this.size.width/2,this.fontOptions.valign&&this.size.height>this.size.labelHeight&&("top"===this.fontOptions.valign&&(n-=(this.size.height-this.size.labelHeight)/2),"bottom"===this.fontOptions.valign&&(n+=(this.size.height-this.size.labelHeight)/2));for(var a=0;a0&&(t.lineWidth=c.strokeWidth,t.strokeStyle=f,t.lineJoin="round"),t.fillStyle=d,c.strokeWidth>0&&t.strokeText(c.text,e+l,n+c.vadjust),t.fillText(c.text,e+l,n+c.vadjust),l+=c.width}n+=s.height}}}},{key:"_setAlignment",value:function(t,e,n,r){return this.isEdgeLabel&&"horizontal"!==this.fontOptions.align&&!1===this.pointToSelf?(e=0,n=0,"top"===this.fontOptions.align?(t.textBaseline="alphabetic",n-=4):"bottom"===this.fontOptions.align?(t.textBaseline="hanging",n+=4):t.textBaseline="middle"):t.textBaseline=r,[e,n]}},{key:"_getColor",value:function(t,e,n){var r=t||"#000000",i=n||"#ffffff";if(e<=this.elementOptions.scaling.label.drawThreshold){var o=Math.max(0,Math.min(1,1-(this.elementOptions.scaling.label.drawThreshold-e)));r=Um(r,o),i=Um(i,o)}return[r,i]}},{key:"getTextSize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this._processLabel(t,e,n),{width:this.size.width,height:this.size.height,lineCount:this.lineCount}}},{key:"getSize",value:function(){var t=this.size.left,e=this.size.top-1;if(this.isEdgeLabel){var n=.5*-this.size.width;switch(this.fontOptions.align){case"middle":t=n,e=.5*-this.size.height;break;case"top":t=n,e=-(this.size.height+2);break;case"bottom":t=n,e=2}}return{left:t,top:e,width:this.size.width,height:this.size.height}}},{key:"calculateLabelSize",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"middle";this._processLabel(t,e,n),this.size.left=r-.5*this.size.width,this.size.top=i-.5*this.size.height,this.size.yLine=i+.5*(1-this.lineCount)*this.fontOptions.size,"hanging"===o&&(this.size.top+=.5*this.fontOptions.size,this.size.top+=4,this.size.yLine+=4)}},{key:"getFormattingValues",value:function(t,e,n,r){var i=function(t,e,n){return"normal"===e?"mod"===n?"":t[n]:void 0!==t[e][n]?t[e][n]:t[n]},o={color:i(this.fontOptions,r,"color"),size:i(this.fontOptions,r,"size"),face:i(this.fontOptions,r,"face"),mod:i(this.fontOptions,r,"mod"),vadjust:i(this.fontOptions,r,"vadjust"),strokeWidth:this.fontOptions.strokeWidth,strokeColor:this.fontOptions.strokeColor};(e||n)&&("normal"===r&&!0===this.fontOptions.chooser&&this.elementOptions.labelHighlightBold?o.mod="bold":"function"==typeof this.fontOptions.chooser&&this.fontOptions.chooser(o,this.elementOptions.id,e,n));var a="";return void 0!==o.mod&&""!==o.mod&&(a+=o.mod+" "),a+=o.size+"px "+o.face,t.font=a.replace(/"/g,""),o.font=t.font,o.height=o.size,o}},{key:"differentState",value:function(t,e){return t!==this.selectedState||e!==this.hoverState}},{key:"_processLabelText",value:function(t,e,n,r){return new Bk(t,this,e,n).process(r)}},{key:"_processLabel",value:function(t,e,n){if(!1!==this.labelDirty||this.differentState(e,n)){var r=this._processLabelText(t,e,n,this.elementOptions.label);this.fontOptions.minWdt>0&&r.width0&&r.height0&&(this.enableBorderDashes(t,e),t.stroke(),this.disableBorderDashes(t,e)),t.restore()}},{key:"performFill",value:function(t,e){t.save(),t.fillStyle=e.color,this.enableShadow(t,e),Oy(t).call(t),this.disableShadow(t,e),t.restore(),this.performStroke(t,e)}},{key:"_addBoundingBoxMargin",value:function(t){this.boundingBox.left-=t,this.boundingBox.top-=t,this.boundingBox.bottom+=t,this.boundingBox.right+=t}},{key:"_updateBoundingBox",value:function(t,e,n,r,i){void 0!==n&&this.resize(n,r,i),this.left=t-this.width/2,this.top=e-this.height/2,this.boundingBox.left=this.left,this.boundingBox.top=this.top,this.boundingBox.bottom=this.top+this.height,this.boundingBox.right=this.left+this.width}},{key:"updateBoundingBox",value:function(t,e,n,r,i){this._updateBoundingBox(t,e,n,r,i)}},{key:"getDimensionsFromLabel",value:function(t,e,n){this.textSize=this.labelModule.getTextSize(t,e,n);var r=this.textSize.width,i=this.textSize.height;return 0===r&&(r=14,i=14),{width:r,height:i}}}]),t}();function y_(t){var e=function(){if("undefined"==typeof Reflect||!a_)return!1;if(a_.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(a_(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p_(t);if(e){var i=p_(this).constructor;n=a_(r,arguments,i)}else n=r.apply(this,arguments);return d_(this,n)}}var g_=function(t){h_(n,t);var e=y_(n);function n(t,r,i){var o;return vl(this,n),(o=e.call(this,t,r,i))._setMargins(i),o}return wd(n,[{key:"resize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover;if(this.needsRefresh(e,n)){var r=this.getDimensionsFromLabel(t,e,n);this.width=r.width+this.margin.right+this.margin.left,this.height=r.height+this.margin.top+this.margin.bottom,this.radius=this.width/2}}},{key:"draw",value:function(t,e,n,r,i,o){this.resize(t,r,i),this.left=e-this.width/2,this.top=n-this.height/2,this.initContextForDraw(t,o),qr(t,this.left,this.top,this.width,this.height,o.borderRadius),this.performFill(t,o),this.updateBoundingBox(e,n,t,r,i),this.labelModule.draw(t,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,r,i)}},{key:"updateBoundingBox",value:function(t,e,n,r,i){this._updateBoundingBox(t,e,n,r,i);var o=this.options.shapeProperties.borderRadius;this._addBoundingBoxMargin(o)}},{key:"distanceToBorder",value:function(t,e){t&&this.resize(t);var n=this.options.borderWidth;return Math.min(Math.abs(this.width/2/Math.cos(e)),Math.abs(this.height/2/Math.sin(e)))+n}}]),n}(v_);function m_(t){var e=function(){if("undefined"==typeof Reflect||!a_)return!1;if(a_.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(a_(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p_(t);if(e){var i=p_(this).constructor;n=a_(r,arguments,i)}else n=r.apply(this,arguments);return d_(this,n)}}var b_=function(t){h_(n,t);var e=m_(n);function n(t,r,i){var o;return vl(this,n),(o=e.call(this,t,r,i)).labelOffset=0,o.selected=!1,o}return wd(n,[{key:"setOptions",value:function(t,e,n){this.options=t,void 0===e&&void 0===n||this.setImages(e,n)}},{key:"setImages",value:function(t,e){e&&this.selected?(this.imageObj=e,this.imageObjAlt=t):(this.imageObj=t,this.imageObjAlt=e)}},{key:"switchImages",value:function(t){var e=t&&!this.selected||!t&&this.selected;if(this.selected=t,void 0!==this.imageObjAlt&&e){var n=this.imageObj;this.imageObj=this.imageObjAlt,this.imageObjAlt=n}}},{key:"_getImagePadding",value:function(){var t={top:0,right:0,bottom:0,left:0};if(this.options.imagePadding){var e=this.options.imagePadding;"object"==yd(e)?(t.top=e.top,t.right=e.right,t.bottom=e.bottom,t.left=e.left):(t.top=e,t.right=e,t.bottom=e,t.left=e)}return t}},{key:"_resizeImage",value:function(){var t,e;if(!1===this.options.shapeProperties.useImageSize){var n=1,r=1;this.imageObj.width&&this.imageObj.height&&(this.imageObj.width>this.imageObj.height?n=this.imageObj.width/this.imageObj.height:r=this.imageObj.height/this.imageObj.width),t=2*this.options.size*n,e=2*this.options.size*r}else{var i=this._getImagePadding();t=this.imageObj.width+i.left+i.right,e=this.imageObj.height+i.top+i.bottom}this.width=t,this.height=e,this.radius=.5*this.width}},{key:"_drawRawCircle",value:function(t,e,n,r){this.initContextForDraw(t,r),Vr(t,e,n,r.size),this.performFill(t,r)}},{key:"_drawImageAtPosition",value:function(t,e){if(0!=this.imageObj.width){t.globalAlpha=void 0!==e.opacity?e.opacity:1,this.enableShadow(t,e);var n=1;!0===this.options.shapeProperties.interpolation&&(n=this.imageObj.width/this.width/this.body.view.scale);var r=this._getImagePadding(),i=this.left+r.left,o=this.top+r.top,a=this.width-r.left-r.right,s=this.height-r.top-r.bottom;this.imageObj.drawImageAtPosition(t,n,i,o,a,s),this.disableShadow(t,e)}}},{key:"_drawImageLabel",value:function(t,e,n,r,i){var o=0;if(void 0!==this.height){o=.5*this.height;var a=this.labelModule.getTextSize(t,r,i);a.lineCount>=1&&(o+=a.height/2)}var s=n+o;this.options.label&&(this.labelOffset=o),this.labelModule.draw(t,e,s,r,i,"hanging")}}]),n}(v_);function w_(t){var e=function(){if("undefined"==typeof Reflect||!a_)return!1;if(a_.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(a_(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p_(t);if(e){var i=p_(this).constructor;n=a_(r,arguments,i)}else n=r.apply(this,arguments);return d_(this,n)}}var x_=function(t){h_(n,t);var e=w_(n);function n(t,r,i){var o;return vl(this,n),(o=e.call(this,t,r,i))._setMargins(i),o}return wd(n,[{key:"resize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover;if(this.needsRefresh(e,n)){var r=this.getDimensionsFromLabel(t,e,n),i=Math.max(r.width+this.margin.right+this.margin.left,r.height+this.margin.top+this.margin.bottom);this.options.size=i/2,this.width=i,this.height=i,this.radius=this.width/2}}},{key:"draw",value:function(t,e,n,r,i,o){this.resize(t,r,i),this.left=e-this.width/2,this.top=n-this.height/2,this._drawRawCircle(t,e,n,o),this.updateBoundingBox(e,n),this.labelModule.draw(t,this.left+this.textSize.width/2+this.margin.left,n,r,i)}},{key:"updateBoundingBox",value:function(t,e){this.boundingBox.top=e-this.options.size,this.boundingBox.left=t-this.options.size,this.boundingBox.right=t+this.options.size,this.boundingBox.bottom=e+this.options.size}},{key:"distanceToBorder",value:function(t){return t&&this.resize(t),.5*this.width}}]),n}(b_);function k_(t){var e=function(){if("undefined"==typeof Reflect||!a_)return!1;if(a_.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(a_(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p_(t);if(e){var i=p_(this).constructor;n=a_(r,arguments,i)}else n=r.apply(this,arguments);return d_(this,n)}}var __=function(t){h_(n,t);var e=k_(n);function n(t,r,i,o,a){var s;return vl(this,n),(s=e.call(this,t,r,i)).setImages(o,a),s}return wd(n,[{key:"resize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover;if(void 0===this.imageObj.src||void 0===this.imageObj.width||void 0===this.imageObj.height){var r=2*this.options.size;return this.width=r,this.height=r,void(this.radius=.5*this.width)}this.needsRefresh(e,n)&&this._resizeImage()}},{key:"draw",value:function(t,e,n,r,i,o){this.switchImages(r),this.resize();var a=e,s=n;"top-left"===this.options.shapeProperties.coordinateOrigin?(this.left=e,this.top=n,a+=this.width/2,s+=this.height/2):(this.left=e-this.width/2,this.top=n-this.height/2),this._drawRawCircle(t,a,s,o),t.save(),t.clip(),this._drawImageAtPosition(t,o),t.restore(),this._drawImageLabel(t,a,s,r,i),this.updateBoundingBox(e,n)}},{key:"updateBoundingBox",value:function(t,e){"top-left"===this.options.shapeProperties.coordinateOrigin?(this.boundingBox.top=e,this.boundingBox.left=t,this.boundingBox.right=t+2*this.options.size,this.boundingBox.bottom=e+2*this.options.size):(this.boundingBox.top=e-this.options.size,this.boundingBox.left=t-this.options.size,this.boundingBox.right=t+this.options.size,this.boundingBox.bottom=e+this.options.size),this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelOffset)}},{key:"distanceToBorder",value:function(t){return t&&this.resize(t),.5*this.width}}]),n}(b_);function E_(t){var e=function(){if("undefined"==typeof Reflect||!a_)return!1;if(a_.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(a_(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p_(t);if(e){var i=p_(this).constructor;n=a_(r,arguments,i)}else n=r.apply(this,arguments);return d_(this,n)}}var S_=function(t){h_(n,t);var e=E_(n);function n(t,r,i){return vl(this,n),e.call(this,t,r,i)}return wd(n,[{key:"resize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{size:this.options.size};if(this.needsRefresh(e,n)){var i,o;this.labelModule.getTextSize(t,e,n);var a=2*r.size;this.width=null!==(i=this.customSizeWidth)&&void 0!==i?i:a,this.height=null!==(o=this.customSizeHeight)&&void 0!==o?o:a,this.radius=.5*this.width}}},{key:"_drawShape",value:function(t,e,n,r,i,o,a,s){var l,u=this;return this.resize(t,o,a,s),this.left=r-this.width/2,this.top=i-this.height/2,this.initContextForDraw(t,s),(l=e,Object.prototype.hasOwnProperty.call(Xr,l)?Xr[l]:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r0&&(this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelModule.size.height))}}]),n}(v_);function O_(t,e){var n=Mf(t);if(Fx){var r=Fx(t);e&&(r=cv(r).call(r,(function(e){return Gx(t,e).enumerable}))),n.push.apply(n,r)}return n}function C_(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:this.selected,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover;if(this.needsRefresh(e,n)){var r=this.getDimensionsFromLabel(t,e,n);this.height=2*r.height,this.width=r.width+r.height,this.radius=.5*this.width}}},{key:"draw",value:function(t,e,n,r,i,o){this.resize(t,r,i),this.left=e-.5*this.width,this.top=n-.5*this.height,this.initContextForDraw(t,o),Gr(t,this.left,this.top,this.width,this.height),this.performFill(t,o),this.updateBoundingBox(e,n,t,r,i),this.labelModule.draw(t,e,n,r,i)}},{key:"distanceToBorder",value:function(t,e){t&&this.resize(t);var n=.5*this.width,r=.5*this.height,i=Math.sin(e)*n,o=Math.cos(e)*r;return n*r/Math.sqrt(i*i+o*o)}}]),n}(v_);function z_(t){var e=function(){if("undefined"==typeof Reflect||!a_)return!1;if(a_.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(a_(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p_(t);if(e){var i=p_(this).constructor;n=a_(r,arguments,i)}else n=r.apply(this,arguments);return d_(this,n)}}var L_=function(t){h_(n,t);var e=z_(n);function n(t,r,i){var o;return vl(this,n),(o=e.call(this,t,r,i))._setMargins(i),o}return wd(n,[{key:"resize",value:function(t,e,n){this.needsRefresh(e,n)&&(this.iconSize={width:Number(this.options.icon.size),height:Number(this.options.icon.size)},this.width=this.iconSize.width+this.margin.right+this.margin.left,this.height=this.iconSize.height+this.margin.top+this.margin.bottom,this.radius=.5*this.width)}},{key:"draw",value:function(t,e,n,r,i,o){var a=this;return this.resize(t,r,i),this.options.icon.size=this.options.icon.size||50,this.left=e-this.width/2,this.top=n-this.height/2,this._icon(t,e,n,r,i,o),{drawExternalLabel:function(){void 0!==a.options.label&&a.labelModule.draw(t,a.left+a.iconSize.width/2+a.margin.left,n+a.height/2+5,r),a.updateBoundingBox(e,n)}}}},{key:"updateBoundingBox",value:function(t,e){this.boundingBox.top=e-.5*this.options.icon.size,this.boundingBox.left=t-.5*this.options.icon.size,this.boundingBox.right=t+.5*this.options.icon.size,this.boundingBox.bottom=e+.5*this.options.icon.size,void 0!==this.options.label&&this.labelModule.size.width>0&&(this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelModule.size.height+5))}},{key:"_icon",value:function(t,e,n,r,i,o){var a=Number(this.options.icon.size);void 0!==this.options.icon.code?(t.font=[null!=this.options.icon.weight?this.options.icon.weight:r?"bold":"",(null!=this.options.icon.weight&&r?5:0)+a+"px",this.options.icon.face].join(" "),t.fillStyle=this.options.icon.color||"black",t.textAlign="center",t.textBaseline="middle",this.enableShadow(t,o),t.fillText(this.options.icon.code,e,n),this.disableShadow(t,o)):console.error("When using the icon shape, you need to define the code in the icon options object. This can be done per node or globally.")}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),n}(v_);function B_(t){var e=function(){if("undefined"==typeof Reflect||!a_)return!1;if(a_.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(a_(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p_(t);if(e){var i=p_(this).constructor;n=a_(r,arguments,i)}else n=r.apply(this,arguments);return d_(this,n)}}var W_=function(t){h_(n,t);var e=B_(n);function n(t,r,i,o,a){var s;return vl(this,n),(s=e.call(this,t,r,i)).setImages(o,a),s}return wd(n,[{key:"resize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover;if(void 0===this.imageObj.src||void 0===this.imageObj.width||void 0===this.imageObj.height){var r=2*this.options.size;return this.width=r,void(this.height=r)}this.needsRefresh(e,n)&&this._resizeImage()}},{key:"draw",value:function(t,e,n,r,i,o){t.save(),this.switchImages(r),this.resize();var a=e,s=n;if("top-left"===this.options.shapeProperties.coordinateOrigin?(this.left=e,this.top=n,a+=this.width/2,s+=this.height/2):(this.left=e-this.width/2,this.top=n-this.height/2),!0===this.options.shapeProperties.useBorderWithImage){var l=this.options.borderWidth,u=this.options.borderWidthSelected||2*this.options.borderWidth,c=(r?u:l)/this.body.view.scale;t.lineWidth=Math.min(this.width,c),t.beginPath();var h=r?this.options.color.highlight.border:i?this.options.color.hover.border:this.options.color.border,d=r?this.options.color.highlight.background:i?this.options.color.hover.background:this.options.color.background;void 0!==o.opacity&&(h=Um(h,o.opacity),d=Um(d,o.opacity)),t.strokeStyle=h,t.fillStyle=d,t.rect(this.left-.5*t.lineWidth,this.top-.5*t.lineWidth,this.width+t.lineWidth,this.height+t.lineWidth),Oy(t).call(t),this.performStroke(t,o),t.closePath()}this._drawImageAtPosition(t,o),this._drawImageLabel(t,a,s,r,i),this.updateBoundingBox(e,n),t.restore()}},{key:"updateBoundingBox",value:function(t,e){this.resize(),"top-left"===this.options.shapeProperties.coordinateOrigin?(this.left=t,this.top=e):(this.left=t-this.width/2,this.top=e-this.height/2),this.boundingBox.left=this.left,this.boundingBox.top=this.top,this.boundingBox.bottom=this.top+this.height,this.boundingBox.right=this.left+this.width,void 0!==this.options.label&&this.labelModule.size.width>0&&(this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelOffset))}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),n}(b_);function H_(t){var e=function(){if("undefined"==typeof Reflect||!a_)return!1;if(a_.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(a_(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p_(t);if(e){var i=p_(this).constructor;n=a_(r,arguments,i)}else n=r.apply(this,arguments);return d_(this,n)}}var U_=function(t){h_(n,t);var e=H_(n);function n(t,r,i){return vl(this,n),e.call(this,t,r,i)}return wd(n,[{key:"draw",value:function(t,e,n,r,i,o){return this._drawShape(t,"square",2,e,n,r,i,o)}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),n}(S_);function V_(t){var e=function(){if("undefined"==typeof Reflect||!a_)return!1;if(a_.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(a_(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p_(t);if(e){var i=p_(this).constructor;n=a_(r,arguments,i)}else n=r.apply(this,arguments);return d_(this,n)}}var q_=function(t){h_(n,t);var e=V_(n);function n(t,r,i){return vl(this,n),e.call(this,t,r,i)}return wd(n,[{key:"draw",value:function(t,e,n,r,i,o){return this._drawShape(t,"hexagon",4,e,n,r,i,o)}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),n}(S_);function G_(t){var e=function(){if("undefined"==typeof Reflect||!a_)return!1;if(a_.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(a_(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p_(t);if(e){var i=p_(this).constructor;n=a_(r,arguments,i)}else n=r.apply(this,arguments);return d_(this,n)}}var Y_=function(t){h_(n,t);var e=G_(n);function n(t,r,i){return vl(this,n),e.call(this,t,r,i)}return wd(n,[{key:"draw",value:function(t,e,n,r,i,o){return this._drawShape(t,"star",4,e,n,r,i,o)}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),n}(S_);function $_(t){var e=function(){if("undefined"==typeof Reflect||!a_)return!1;if(a_.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(a_(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p_(t);if(e){var i=p_(this).constructor;n=a_(r,arguments,i)}else n=r.apply(this,arguments);return d_(this,n)}}var X_=function(t){h_(n,t);var e=$_(n);function n(t,r,i){var o;return vl(this,n),(o=e.call(this,t,r,i))._setMargins(i),o}return wd(n,[{key:"resize",value:function(t,e,n){this.needsRefresh(e,n)&&(this.textSize=this.labelModule.getTextSize(t,e,n),this.width=this.textSize.width+this.margin.right+this.margin.left,this.height=this.textSize.height+this.margin.top+this.margin.bottom,this.radius=.5*this.width)}},{key:"draw",value:function(t,e,n,r,i,o){this.resize(t,r,i),this.left=e-this.width/2,this.top=n-this.height/2,this.enableShadow(t,o),this.labelModule.draw(t,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,r,i),this.disableShadow(t,o),this.updateBoundingBox(e,n,t,r,i)}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),n}(v_);function K_(t){var e=function(){if("undefined"==typeof Reflect||!a_)return!1;if(a_.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(a_(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p_(t);if(e){var i=p_(this).constructor;n=a_(r,arguments,i)}else n=r.apply(this,arguments);return d_(this,n)}}var Q_=function(t){h_(n,t);var e=K_(n);function n(t,r,i){return vl(this,n),e.call(this,t,r,i)}return wd(n,[{key:"draw",value:function(t,e,n,r,i,o){return this._drawShape(t,"triangle",3,e,n,r,i,o)}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),n}(S_);function J_(t){var e=function(){if("undefined"==typeof Reflect||!a_)return!1;if(a_.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(a_(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p_(t);if(e){var i=p_(this).constructor;n=a_(r,arguments,i)}else n=r.apply(this,arguments);return d_(this,n)}}var Z_=function(t){h_(n,t);var e=J_(n);function n(t,r,i){return vl(this,n),e.call(this,t,r,i)}return wd(n,[{key:"draw",value:function(t,e,n,r,i,o){return this._drawShape(t,"triangleDown",3,e,n,r,i,o)}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),n}(S_);function tE(t,e){var n=Mf(t);if(Fx){var r=Fx(t);e&&(r=cv(r).call(r,(function(e){return Gx(t,e).enumerable}))),n.push.apply(n,r)}return n}function eE(t){for(var e=1;et.left&&this.shape.topt.top}},{key:"isBoundingBoxOverlappingWith",value:function(t){return this.shape.boundingBox.leftt.left&&this.shape.boundingBox.topt.top}}],[{key:"checkOpacity",value:function(t){return 0<=t&&t<=1}},{key:"checkCoordinateOrigin",value:function(t){return void 0===t||"center"===t||"top-left"===t}},{key:"updateGroupOptions",value:function(e,n,r){var i;if(void 0!==r){var o=e.group;if(void 0!==n&&void 0!==n.group&&o!==n.group)throw new Error("updateGroupOptions: group values in options don't match.");if("number"==typeof o||"string"==typeof o&&""!=o){var a=r.get(o);void 0!==a.opacity&&void 0===n.opacity&&(t.checkOpacity(a.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+a.opacity),a.opacity=void 0));var s=cv(i=_k(n)).call(i,(function(t){return null!=n[t]}));s.push("font"),Rm(s,e,a),e.color=qm(e.color)}}}},{key:"parseOptions",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4?arguments[4]:void 0;if(Rm(["color","fixed","shadow"],e,n,r),t.checkMass(n),void 0!==e.opacity&&(t.checkOpacity(e.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+e.opacity),e.opacity=void 0)),void 0!==n.opacity&&(t.checkOpacity(n.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+n.opacity),n.opacity=void 0)),n.shapeProperties&&!t.checkCoordinateOrigin(n.shapeProperties.coordinateOrigin)&&console.error("Invalid option for node coordinateOrigin, found: "+n.shapeProperties.coordinateOrigin),Jm(e,n,"shadow",i),void 0!==n.color&&null!==n.color){var a=qm(n.color);Mm(e.color,a)}else!0===r&&null===n.color&&(e.color=Qm(i.color));void 0!==n.fixed&&null!==n.fixed&&("boolean"==typeof n.fixed?(e.fixed.x=n.fixed,e.fixed.y=n.fixed):(void 0!==n.fixed.x&&"boolean"==typeof n.fixed.x&&(e.fixed.x=n.fixed.x),void 0!==n.fixed.y&&"boolean"==typeof n.fixed.y&&(e.fixed.y=n.fixed.y))),!0===r&&null===n.font&&(e.font=Qm(i.font)),t.updateGroupOptions(e,n,o),void 0!==n.scaling&&Jm(e.scaling,n.scaling,"label",i.scaling)}},{key:"checkMass",value:function(t,e){if(void 0!==t.mass&&t.mass<=0){var n="";void 0!==e&&(n=" in node id: "+e),console.error("%cNegative or zero mass disallowed"+n+", setting mass to 1.",pb),t.mass=1}}}]),t}();function rE(t,e){var n=void 0!==hf&&pl(t)||t["@@iterator"];if(!n){if(Sf(t)||(n=function(t,e){var n;if(t){if("string"==typeof t)return iE(t,e);var r=mf(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Ys(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?iE(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function iE(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1?console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+t.opacity):this.options.opacity=t.opacity),void 0!==t.shape)for(var e in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,e)&&this.body.nodes[e].updateShape();if(void 0!==t.font||void 0!==t.widthConstraint||void 0!==t.heightConstraint)for(var n=0,r=Mf(this.body.nodes);n1&&void 0!==arguments[1]&&arguments[1],r=this.body.data.nodes;if(e.isDataViewLike("id",t))this.body.data.nodes=t;else if(Sf(t))this.body.data.nodes=new e.DataSet,this.body.data.nodes.add(t);else{if(t)throw new TypeError("Array or DataSet expected");this.body.data.nodes=new e.DataSet}if(r&&Wm(this.nodesListeners,(function(t,e){r.off(e,t)})),this.body.nodes={},this.body.data.nodes){var i=this;Wm(this.nodesListeners,(function(t,e){i.body.data.nodes.on(e,t)}));var o=this.body.data.nodes.getIds();this.add(o,!0)}!1===n&&this.body.emitter.emit("_dataChanged")}},{key:"add",value:function(t){for(var e,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=[],i=0;i1&&void 0!==arguments[1]?arguments[1]:nE)(t,this.body,this.images,this.groups,this.options,this.defaultOptions)}},{key:"refresh",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Wm(this.body.nodes,(function(n,r){var i=t.body.data.nodes.get(r);void 0!==i&&(!0===e&&n.setOptions({x:null,y:null}),n.setOptions({fixed:!1}),n.setOptions(i))}))}},{key:"getPositions",value:function(t){var e={};if(void 0!==t){if(!0===Sf(t)){for(var n=0;n0?(r=n/s)*r:n;return s===1/0?1/0:s*bE(i)}});var wE=i(rt.Math.hypot);function xE(t){var e=function(){if("undefined"==typeof Reflect||!a_)return!1;if(a_.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(a_(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p_(t);if(e){var i=p_(this).constructor;n=a_(r,arguments,i)}else n=r.apply(this,arguments);return d_(this,n)}}var kE=function(){function t(){vl(this,t)}return wd(t,null,[{key:"transform",value:function(t,e){Sf(t)||(t=[t]);for(var n=e.point.x,r=e.point.y,i=e.angle,o=e.length,a=0;a4&&void 0!==arguments[4]?arguments[4]:this.getViaNode();t.strokeStyle=this.getColor(t,e),t.lineWidth=e.width,!1!==e.dashes?this._drawDashedLine(t,e,i):this._drawLine(t,e,i)}},{key:"_drawLine",value:function(t,e,n,r,i){if(this.from!=this.to)this._line(t,e,n,r,i);else{var o=uf(this._getCircleData(t),3),a=o[0],s=o[1],l=o[2];this._circle(t,e,a,s,l)}}},{key:"_drawDashedLine",value:function(t,e,n,r,i){t.lineCap="round";var o=Sf(e.dashes)?e.dashes:[5,5];if(void 0!==t.setLineDash){if(t.save(),t.setLineDash(o),t.lineDashOffset=0,this.from!=this.to)this._line(t,e,n);else{var a=uf(this._getCircleData(t),3),s=a[0],l=a[1],u=a[2];this._circle(t,e,s,l,u)}t.setLineDash([0]),t.lineDashOffset=0,t.restore()}else{if(this.from!=this.to)$r(t,this.from.x,this.from.y,this.to.x,this.to.y,o);else{var c=uf(this._getCircleData(t),3),h=c[0],d=c[1],f=c[2];this._circle(t,e,h,d,f)}this.enableShadow(t,e),t.stroke(),this.disableShadow(t,e)}}},{key:"findBorderPosition",value:function(t,e,n){return this.from!=this.to?this._findBorderPosition(t,e,n):this._findBorderPositionCircle(t,e,n)}},{key:"findBorderPositions",value:function(t){if(this.from!=this.to)return{from:this._findBorderPosition(this.from,t),to:this._findBorderPosition(this.to,t)};var e,n=uf(mf(e=this._getCircleData(t)).call(e,0,2),2),r=n[0],i=n[1];return{from:this._findBorderPositionCircle(this.from,t,{x:r,y:i,low:.25,high:.6,direction:-1}),to:this._findBorderPositionCircle(this.from,t,{x:r,y:i,low:.6,high:.8,direction:1})}}},{key:"_getCircleData",value:function(t){var e=this.options.selfReference.size;void 0!==t&&void 0===this.from.shape.width&&this.from.shape.resize(t);var n=Ck(t,this.options.selfReference.angle,e,this.from);return[n.x,n.y,e]}},{key:"_pointOnCircle",value:function(t,e,n,r){var i=2*r*Math.PI;return{x:t+n*Math.cos(i),y:e-n*Math.sin(i)}}},{key:"_findBorderPositionCircle",value:function(t,e,n){var r,i=n.x,o=n.y,a=n.low,s=n.high,l=n.direction,u=this.options.selfReference.size,c=.5*(a+s),h=0;!0===this.options.arrowStrikethrough&&(-1===l?h=this.options.endPointOffset.from:1===l&&(h=this.options.endPointOffset.to));var d=0;do{c=.5*(a+s),r=this._pointOnCircle(i,o,u,c);var f=Math.atan2(t.y-r.y,t.x-r.x),p=t.distanceToBorder(e,f)+h-Math.sqrt(Math.pow(r.x-t.x,2)+Math.pow(r.y-t.y,2));if(Math.abs(p)<.05)break;p>0?l>0?a=c:s=c:l>0?s=c:a=c,++d}while(a<=s&&d<10);return RE(RE({},r),{},{t:c})}},{key:"getLineWidth",value:function(t,e){return!0===t?Math.max(this.selectionWidth,.3/this._body.view.scale):!0===e?Math.max(this.hoverWidth,.3/this._body.view.scale):Math.max(this.options.width,.3/this._body.view.scale)}},{key:"getColor",value:function(t,e){if(!1!==e.inheritsColor){if("both"===e.inheritsColor&&this.from.id!==this.to.id){var n=t.createLinearGradient(this.from.x,this.from.y,this.to.x,this.to.y),r=this.from.options.color.highlight.border,i=this.to.options.color.highlight.border;return!1===this.from.selected&&!1===this.to.selected?(r=Um(this.from.options.color.border,e.opacity),i=Um(this.to.options.color.border,e.opacity)):!0===this.from.selected&&!1===this.to.selected?i=this.to.options.color.border:!1===this.from.selected&&!0===this.to.selected&&(r=this.from.options.color.border),n.addColorStop(0,r),n.addColorStop(1,i),n}return"to"===e.inheritsColor?Um(this.to.options.color.border,e.opacity):Um(this.from.options.color.border,e.opacity)}return Um(e.color,e.opacity)}},{key:"_circle",value:function(t,e,n,r,i){this.enableShadow(t,e);var o=0,a=2*Math.PI;if(!this.options.selfReference.renderBehindTheNode){var s=this.options.selfReference.angle,l=this.options.selfReference.angle+Math.PI,u=this._findBorderPositionCircle(this.from,t,{x:n,y:r,low:s,high:l,direction:-1}),c=this._findBorderPositionCircle(this.from,t,{x:n,y:r,low:s,high:l,direction:1});o=Math.atan2(u.y-r,u.x-n),a=Math.atan2(c.y-r,c.x-n)}t.beginPath(),t.arc(n,r,i,o,a,!1),t.stroke(),this.disableShadow(t,e)}},{key:"getDistanceToEdge",value:function(t,e,n,r,i,o){if(this.from!=this.to)return this._getDistanceToEdge(t,e,n,r,i,o);var a=uf(this._getCircleData(void 0),3),s=a[0],l=a[1],u=a[2],c=s-i,h=l-o;return Math.abs(Math.sqrt(c*c+h*h)-u)}},{key:"_getDistanceToLine",value:function(t,e,n,r,i,o){var a=n-t,s=r-e,l=((i-t)*a+(o-e)*s)/(a*a+s*s);l>1?l=1:l<0&&(l=0);var u=t+l*a-i,c=e+l*s-o;return Math.sqrt(u*u+c*c)}},{key:"getArrowData",value:function(t,e,n,r,i,o){var a,s,l,u,c,h,d,f=o.width;"from"===e?(l=this.from,u=this.to,c=o.fromArrowScale<0,h=Math.abs(o.fromArrowScale),d=o.fromArrowType):"to"===e?(l=this.to,u=this.from,c=o.toArrowScale<0,h=Math.abs(o.toArrowScale),d=o.toArrowType):(l=this.to,u=this.from,c=o.middleArrowScale<0,h=Math.abs(o.middleArrowScale),d=o.middleArrowType);var p=15*h+3*f;if(l!=u){var v=p/wE(l.x-u.x,l.y-u.y);if("middle"!==e)if(!0===this.options.smooth.enabled){var y=this._findBorderPosition(l,t,{via:n}),g=this.getPoint(y.t+v*("from"===e?1:-1),n);a=Math.atan2(y.y-g.y,y.x-g.x),s=y}else a=Math.atan2(l.y-u.y,l.x-u.x),s=this._findBorderPosition(l,t);else{var m=(c?-v:v)/2,b=this.getPoint(.5+m,n),w=this.getPoint(.5-m,n);a=Math.atan2(b.y-w.y,b.x-w.x),s=this.getPoint(.5,n)}}else{var x=uf(this._getCircleData(t),3),k=x[0],_=x[1],E=x[2];if("from"===e){var S=this.options.selfReference.angle,O=this.options.selfReference.angle+Math.PI,C=this._findBorderPositionCircle(this.from,t,{x:k,y:_,low:S,high:O,direction:-1});a=-2*C.t*Math.PI+1.5*Math.PI+.1*Math.PI,s=C}else if("to"===e){var T=this.options.selfReference.angle,P=this.options.selfReference.angle+Math.PI,j=this._findBorderPositionCircle(this.from,t,{x:k,y:_,low:T,high:P,direction:1});a=-2*j.t*Math.PI+1.5*Math.PI-1.1*Math.PI,s=j}else{var I=this.options.selfReference.angle/(2*Math.PI);s=this._pointOnCircle(k,_,E,I),a=-2*I*Math.PI+1.5*Math.PI+.1*Math.PI}}return{point:s,core:{x:s.x-.9*p*Math.cos(a),y:s.y-.9*p*Math.sin(a)},angle:a,length:p,type:d}}},{key:"drawArrowHead",value:function(t,e,n,r,i){t.strokeStyle=this.getColor(t,e),t.fillStyle=t.strokeStyle,t.lineWidth=e.width,ME.draw(t,i)&&(this.enableShadow(t,e),Oy(t).call(t),this.disableShadow(t,e))}},{key:"enableShadow",value:function(t,e){!0===e.shadow&&(t.shadowColor=e.shadowColor,t.shadowBlur=e.shadowSize,t.shadowOffsetX=e.shadowX,t.shadowOffsetY=e.shadowY)}},{key:"disableShadow",value:function(t,e){!0===e.shadow&&(t.shadowColor="rgba(0,0,0,0)",t.shadowBlur=0,t.shadowOffsetX=0,t.shadowOffsetY=0)}},{key:"drawBackground",value:function(t,e){if(!1!==e.background){var n={strokeStyle:t.strokeStyle,lineWidth:t.lineWidth,dashes:t.dashes};t.strokeStyle=e.backgroundColor,t.lineWidth=e.backgroundSize,this.setStrokeDashed(t,e.backgroundDashes),t.stroke(),t.strokeStyle=n.strokeStyle,t.lineWidth=n.lineWidth,t.dashes=n.dashes,this.setStrokeDashed(t,e.dashes)}}},{key:"setStrokeDashed",value:function(t,e){if(!1!==e)if(void 0!==t.setLineDash){var n=Sf(e)?e:[5,5];t.setLineDash(n)}else console.warn("setLineDash is not supported in this browser. The dashed stroke cannot be used.");else void 0!==t.setLineDash?t.setLineDash([]):console.warn("setLineDash is not supported in this browser. The dashed stroke cannot be used.")}}]),t}();function LE(t,e){var n=Mf(t);if(Fx){var r=Fx(t);e&&(r=cv(r).call(r,(function(e){return Gx(t,e).enumerable}))),n.push.apply(n,r)}return n}function BE(t){for(var e=1;e2&&void 0!==arguments[2]?arguments[2]:this._getViaCoordinates(),o=!1,a=1,s=0,l=this.to,u=this.options.endPointOffset?this.options.endPointOffset.to:0;t.id===this.from.id&&(l=this.from,o=!0,u=this.options.endPointOffset?this.options.endPointOffset.from:0),!1===this.options.arrowStrikethrough&&(u=0);var c=0;do{r=.5*(s+a),n=this.getPoint(r,i);var h=Math.atan2(l.y-n.y,l.x-n.x),d=l.distanceToBorder(e,h)+u-Math.sqrt(Math.pow(n.x-l.x,2)+Math.pow(n.y-l.y,2));if(Math.abs(d)<.2)break;d<0?!1===o?s=r:a=r:!1===o?a=r:s=r,++c}while(s<=a&&c<10);return BE(BE({},n),{},{t:r})}},{key:"_getDistanceToBezierEdge",value:function(t,e,n,r,i,o,a){var s,l,u,c,h,d=1e9,f=t,p=e;for(l=1;l<10;l++)u=.1*l,c=Math.pow(1-u,2)*t+2*u*(1-u)*a.x+Math.pow(u,2)*n,h=Math.pow(1-u,2)*e+2*u*(1-u)*a.y+Math.pow(u,2)*r,l>0&&(d=(s=this._getDistanceToLine(f,p,c,h,i,o))1&&void 0!==arguments[1]?arguments[1]:this.via;if(this.from===this.to){var n=uf(this._getCircleData(),3),r=n[0],i=n[1],o=n[2],a=2*Math.PI*(1-t);return{x:r+o*Math.sin(a),y:i+o-o*(1-Math.cos(a))}}return{x:Math.pow(1-t,2)*this.fromPoint.x+2*t*(1-t)*e.x+Math.pow(t,2)*this.toPoint.x,y:Math.pow(1-t,2)*this.fromPoint.y+2*t*(1-t)*e.y+Math.pow(t,2)*this.toPoint.y}}},{key:"_findBorderPosition",value:function(t,e){return this._findBorderPositionBezier(t,e,this.via)}},{key:"_getDistanceToEdge",value:function(t,e,n,r,i,o){return this._getDistanceToBezierEdge(t,e,n,r,i,o,this.via)}}]),n}(HE);function qE(t){var e=function(){if("undefined"==typeof Reflect||!a_)return!1;if(a_.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(a_(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p_(t);if(e){var i=p_(this).constructor;n=a_(r,arguments,i)}else n=r.apply(this,arguments);return d_(this,n)}}var GE=function(t){h_(n,t);var e=qE(n);function n(t,r,i){return vl(this,n),e.call(this,t,r,i)}return wd(n,[{key:"_line",value:function(t,e,n){this._bezierCurve(t,e,n)}},{key:"getViaNode",value:function(){return this._getViaCoordinates()}},{key:"_getViaCoordinates",value:function(){var t,e,n=this.options.smooth.roundness,r=this.options.smooth.type,i=Math.abs(this.from.x-this.to.x),o=Math.abs(this.from.y-this.to.y);if("discrete"===r||"diagonalCross"===r){var a,s;a=s=i<=o?n*o:n*i,this.from.x>this.to.x&&(a=-a),this.from.y>=this.to.y&&(s=-s);var l=this.from.x+a,u=this.from.y+s;return"discrete"===r&&(i<=o?l=ithis.to.x&&(t=-t),this.from.y>=this.to.y&&(e=-e);var w=this.from.x+t,x=this.from.y+e;return i<=o?w=this.from.x<=this.to.x?this.to.xw?this.to.x:w:x=this.from.y>=this.to.y?this.to.y>x?this.to.y:x:this.to.y2&&void 0!==arguments[2]?arguments[2]:{};return this._findBorderPositionBezier(t,e,n.via)}},{key:"_getDistanceToEdge",value:function(t,e,n,r,i,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:this._getViaCoordinates();return this._getDistanceToBezierEdge(t,e,n,r,i,o,a)}},{key:"getPoint",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._getViaCoordinates(),n=t;return{x:Math.pow(1-n,2)*this.fromPoint.x+2*n*(1-n)*e.x+Math.pow(n,2)*this.toPoint.x,y:Math.pow(1-n,2)*this.fromPoint.y+2*n*(1-n)*e.y+Math.pow(n,2)*this.toPoint.y}}}]),n}(HE);function YE(t){var e=function(){if("undefined"==typeof Reflect||!a_)return!1;if(a_.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(a_(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p_(t);if(e){var i=p_(this).constructor;n=a_(r,arguments,i)}else n=r.apply(this,arguments);return d_(this,n)}}var $E=function(t){h_(n,t);var e=YE(n);function n(t,r,i){return vl(this,n),e.call(this,t,r,i)}return wd(n,[{key:"_getDistanceToBezierEdge2",value:function(t,e,n,r,i,o,a,s){for(var l=1e9,u=t,c=e,h=[0,0,0,0],d=1;d<10;d++){var f=.1*d;h[0]=Math.pow(1-f,3),h[1]=3*f*Math.pow(1-f,2),h[2]=3*Math.pow(f,2)*(1-f),h[3]=Math.pow(f,3);var p=h[0]*t+h[1]*a.x+h[2]*s.x+h[3]*n,v=h[0]*e+h[1]*a.y+h[2]*s.y+h[3]*r;if(d>0){var y=this._getDistanceToLine(u,c,p,v,i,o);l=yMath.abs(o)||!0===this.options.smooth.forceDirection||"horizontal"===this.options.smooth.forceDirection)&&"vertical"!==this.options.smooth.forceDirection?(e=this.from.y,r=this.to.y,t=this.from.x-a*i,n=this.to.x+a*i):(e=this.from.y-a*o,r=this.to.y+a*o,t=this.from.x,n=this.to.x),[{x:t,y:e},{x:n,y:r}]}},{key:"getViaNode",value:function(){return this._getViaCoordinates()}},{key:"_findBorderPosition",value:function(t,e){return this._findBorderPositionBezier(t,e)}},{key:"_getDistanceToEdge",value:function(t,e,n,r,i,o){var a=uf(arguments.length>6&&void 0!==arguments[6]?arguments[6]:this._getViaCoordinates(),2),s=a[0],l=a[1];return this._getDistanceToBezierEdge2(t,e,n,r,i,o,s,l)}},{key:"getPoint",value:function(t){var e=uf(arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._getViaCoordinates(),2),n=e[0],r=e[1],i=t,o=[Math.pow(1-i,3),3*i*Math.pow(1-i,2),3*Math.pow(i,2)*(1-i),Math.pow(i,3)];return{x:o[0]*this.fromPoint.x+o[1]*n.x+o[2]*r.x+o[3]*this.toPoint.x,y:o[0]*this.fromPoint.y+o[1]*n.y+o[2]*r.y+o[3]*this.toPoint.y}}}]),n}($E);function QE(t){var e=function(){if("undefined"==typeof Reflect||!a_)return!1;if(a_.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(a_(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p_(t);if(e){var i=p_(this).constructor;n=a_(r,arguments,i)}else n=r.apply(this,arguments);return d_(this,n)}}var JE=function(t){h_(n,t);var e=QE(n);function n(t,r,i){return vl(this,n),e.call(this,t,r,i)}return wd(n,[{key:"_line",value:function(t,e){t.beginPath(),t.moveTo(this.fromPoint.x,this.fromPoint.y),t.lineTo(this.toPoint.x,this.toPoint.y),this.enableShadow(t,e),t.stroke(),this.disableShadow(t,e)}},{key:"getViaNode",value:function(){}},{key:"getPoint",value:function(t){return{x:(1-t)*this.fromPoint.x+t*this.toPoint.x,y:(1-t)*this.fromPoint.y+t*this.toPoint.y}}},{key:"_findBorderPosition",value:function(t,e){var n=this.to,r=this.from;t.id===this.from.id&&(n=this.from,r=this.to);var i=Math.atan2(n.y-r.y,n.x-r.x),o=n.x-r.x,a=n.y-r.y,s=Math.sqrt(o*o+a*a),l=(s-t.distanceToBorder(e,i))/s;return{x:(1-l)*r.x+l*n.x,y:(1-l)*r.y+l*n.y,t:0}}},{key:"_getDistanceToEdge",value:function(t,e,n,r,i,o){return this._getDistanceToLine(t,e,n,r,i,o)}}]),n}(zE),ZE=function(){function t(e,n,r,i,o){if(vl(this,t),void 0===n)throw new Error("No body provided");this.options=Qm(i),this.globalOptions=i,this.defaultOptions=o,this.body=n,this.imagelist=r,this.id=void 0,this.fromId=void 0,this.toId=void 0,this.selected=!1,this.hover=!1,this.labelDirty=!0,this.baseWidth=this.options.width,this.baseFontSize=this.options.font.size,this.from=void 0,this.to=void 0,this.edgeType=void 0,this.connected=!1,this.labelModule=new Hk(this.body,this.options,!0),this.setOptions(e)}return wd(t,[{key:"setOptions",value:function(e){if(e){var n=void 0!==e.physics&&this.options.physics!==e.physics||void 0!==e.hidden&&(this.options.hidden||!1)!==(e.hidden||!1)||void 0!==e.from&&this.options.from!==e.from||void 0!==e.to&&this.options.to!==e.to;t.parseOptions(this.options,e,!0,this.globalOptions),void 0!==e.id&&(this.id=e.id),void 0!==e.from&&(this.fromId=e.from),void 0!==e.to&&(this.toId=e.to),void 0!==e.title&&(this.title=e.title),void 0!==e.value&&(e.value=gk(e.value));var r=[e,this.options,this.defaultOptions];return this.chooser=Ek("edge",r),this.updateLabelModule(e),n=this.updateEdgeType()||n,this._setInteractionWidths(),this.connect(),n}}},{key:"getFormattingValues",value:function(){var t=!0===this.options.arrows.to||!0===this.options.arrows.to.enabled,e=!0===this.options.arrows.from||!0===this.options.arrows.from.enabled,n=!0===this.options.arrows.middle||!0===this.options.arrows.middle.enabled,r=this.options.color.inherit,i={toArrow:t,toArrowScale:this.options.arrows.to.scaleFactor,toArrowType:this.options.arrows.to.type,toArrowSrc:this.options.arrows.to.src,toArrowImageWidth:this.options.arrows.to.imageWidth,toArrowImageHeight:this.options.arrows.to.imageHeight,middleArrow:n,middleArrowScale:this.options.arrows.middle.scaleFactor,middleArrowType:this.options.arrows.middle.type,middleArrowSrc:this.options.arrows.middle.src,middleArrowImageWidth:this.options.arrows.middle.imageWidth,middleArrowImageHeight:this.options.arrows.middle.imageHeight,fromArrow:e,fromArrowScale:this.options.arrows.from.scaleFactor,fromArrowType:this.options.arrows.from.type,fromArrowSrc:this.options.arrows.from.src,fromArrowImageWidth:this.options.arrows.from.imageWidth,fromArrowImageHeight:this.options.arrows.from.imageHeight,arrowStrikethrough:this.options.arrowStrikethrough,color:r?void 0:this.options.color.color,inheritsColor:r,opacity:this.options.color.opacity,hidden:this.options.hidden,length:this.options.length,shadow:this.options.shadow.enabled,shadowColor:this.options.shadow.color,shadowSize:this.options.shadow.size,shadowX:this.options.shadow.x,shadowY:this.options.shadow.y,dashes:this.options.dashes,width:this.options.width,background:this.options.background.enabled,backgroundColor:this.options.background.color,backgroundSize:this.options.background.size,backgroundDashes:this.options.background.dashes};if(this.selected||this.hover)if(!0===this.chooser){if(this.selected){var o=this.options.selectionWidth;"function"==typeof o?i.width=o(i.width):"number"==typeof o&&(i.width+=o),i.width=Math.max(i.width,.3/this.body.view.scale),i.color=this.options.color.highlight,i.shadow=this.options.shadow.enabled}else if(this.hover){var a=this.options.hoverWidth;"function"==typeof a?i.width=a(i.width):"number"==typeof a&&(i.width+=a),i.width=Math.max(i.width,.3/this.body.view.scale),i.color=this.options.color.hover,i.shadow=this.options.shadow.enabled}}else"function"==typeof this.chooser&&(this.chooser(i,this.options.id,this.selected,this.hover),void 0!==i.color&&(i.inheritsColor=!1),!1===i.shadow&&(i.shadowColor===this.options.shadow.color&&i.shadowSize===this.options.shadow.size&&i.shadowX===this.options.shadow.x&&i.shadowY===this.options.shadow.y||(i.shadow=!0)));else i.shadow=this.options.shadow.enabled,i.width=Math.max(i.width,.3/this.body.view.scale);return i}},{key:"updateLabelModule",value:function(t){var e=[t,this.options,this.globalOptions,this.defaultOptions];this.labelModule.update(this.options,e),void 0!==this.labelModule.baseSize&&(this.baseFontSize=this.labelModule.baseSize)}},{key:"updateEdgeType",value:function(){var t=this.options.smooth,e=!1,n=!0;return void 0!==this.edgeType&&((this.edgeType instanceof VE&&!0===t.enabled&&"dynamic"===t.type||this.edgeType instanceof KE&&!0===t.enabled&&"cubicBezier"===t.type||this.edgeType instanceof GE&&!0===t.enabled&&"dynamic"!==t.type&&"cubicBezier"!==t.type||this.edgeType instanceof JE&&!1===t.type.enabled)&&(n=!1),!0===n&&(e=this.cleanup())),!0===n?!0===t.enabled?"dynamic"===t.type?(e=!0,this.edgeType=new VE(this.options,this.body,this.labelModule)):"cubicBezier"===t.type?this.edgeType=new KE(this.options,this.body,this.labelModule):this.edgeType=new GE(this.options,this.body,this.labelModule):this.edgeType=new JE(this.options,this.body,this.labelModule):this.edgeType.setOptions(this.options),e}},{key:"connect",value:function(){this.disconnect(),this.from=this.body.nodes[this.fromId]||void 0,this.to=this.body.nodes[this.toId]||void 0,this.connected=void 0!==this.from&&void 0!==this.to,!0===this.connected?(this.from.attachEdge(this),this.to.attachEdge(this)):(this.from&&this.from.detachEdge(this),this.to&&this.to.detachEdge(this)),this.edgeType.connect()}},{key:"disconnect",value:function(){this.from&&(this.from.detachEdge(this),this.from=void 0),this.to&&(this.to.detachEdge(this),this.to=void 0),this.connected=!1}},{key:"getTitle",value:function(){return this.title}},{key:"isSelected",value:function(){return this.selected}},{key:"getValue",value:function(){return this.options.value}},{key:"setValueRange",value:function(t,e,n){if(void 0!==this.options.value){var r=this.options.scaling.customScalingFunction(t,e,n,this.options.value),i=this.options.scaling.max-this.options.scaling.min;if(!0===this.options.scaling.label.enabled){var o=this.options.scaling.label.max-this.options.scaling.label.min;this.options.font.size=this.options.scaling.label.min+r*o}this.options.width=this.options.scaling.min+r*i}else this.options.width=this.baseWidth,this.options.font.size=this.baseFontSize;this._setInteractionWidths(),this.updateLabelModule()}},{key:"_setInteractionWidths",value:function(){"function"==typeof this.options.hoverWidth?this.edgeType.hoverWidth=this.options.hoverWidth(this.options.width):this.edgeType.hoverWidth=this.options.hoverWidth+this.options.width,"function"==typeof this.options.selectionWidth?this.edgeType.selectionWidth=this.options.selectionWidth(this.options.width):this.edgeType.selectionWidth=this.options.selectionWidth+this.options.width}},{key:"draw",value:function(t){var e=this.getFormattingValues();if(!e.hidden){var n=this.edgeType.getViaNode();this.edgeType.drawLine(t,e,this.selected,this.hover,n),this.drawLabel(t,n)}}},{key:"drawArrows",value:function(t){var e=this.getFormattingValues();if(!e.hidden){var n=this.edgeType.getViaNode(),r={};this.edgeType.fromPoint=this.edgeType.from,this.edgeType.toPoint=this.edgeType.to,e.fromArrow&&(r.from=this.edgeType.getArrowData(t,"from",n,this.selected,this.hover,e),!1===e.arrowStrikethrough&&(this.edgeType.fromPoint=r.from.core),e.fromArrowSrc&&(r.from.image=this.imagelist.load(e.fromArrowSrc)),e.fromArrowImageWidth&&(r.from.imageWidth=e.fromArrowImageWidth),e.fromArrowImageHeight&&(r.from.imageHeight=e.fromArrowImageHeight)),e.toArrow&&(r.to=this.edgeType.getArrowData(t,"to",n,this.selected,this.hover,e),!1===e.arrowStrikethrough&&(this.edgeType.toPoint=r.to.core),e.toArrowSrc&&(r.to.image=this.imagelist.load(e.toArrowSrc)),e.toArrowImageWidth&&(r.to.imageWidth=e.toArrowImageWidth),e.toArrowImageHeight&&(r.to.imageHeight=e.toArrowImageHeight)),e.middleArrow&&(r.middle=this.edgeType.getArrowData(t,"middle",n,this.selected,this.hover,e),e.middleArrowSrc&&(r.middle.image=this.imagelist.load(e.middleArrowSrc)),e.middleArrowImageWidth&&(r.middle.imageWidth=e.middleArrowImageWidth),e.middleArrowImageHeight&&(r.middle.imageHeight=e.middleArrowImageHeight)),e.fromArrow&&this.edgeType.drawArrowHead(t,e,this.selected,this.hover,r.from),e.middleArrow&&this.edgeType.drawArrowHead(t,e,this.selected,this.hover,r.middle),e.toArrow&&this.edgeType.drawArrowHead(t,e,this.selected,this.hover,r.to)}}},{key:"drawLabel",value:function(t,e){if(void 0!==this.options.label){var n,r=this.from,i=this.to;if(this.labelModule.differentState(this.selected,this.hover)&&this.labelModule.getTextSize(t,this.selected,this.hover),r.id!=i.id){this.labelModule.pointToSelf=!1,n=this.edgeType.getPoint(.5,e),t.save();var o=this._getRotation(t);0!=o.angle&&(t.translate(o.x,o.y),t.rotate(o.angle)),this.labelModule.draw(t,n.x,n.y,this.selected,this.hover),t.restore()}else{this.labelModule.pointToSelf=!0;var a=Ck(t,this.options.selfReference.angle,this.options.selfReference.size,r);n=this._pointOnCircle(a.x,a.y,this.options.selfReference.size,this.options.selfReference.angle),this.labelModule.draw(t,n.x,n.y,this.selected,this.hover)}}}},{key:"getItemsOnPoint",value:function(t){var e=[];if(this.labelModule.visible()){var n=this._getRotation();Sk(this.labelModule.getSize(),t,n)&&e.push({edgeId:this.id,labelId:0})}var r={left:t.x,top:t.y};return this.isOverlappingWith(r)&&e.push({edgeId:this.id}),e}},{key:"isOverlappingWith",value:function(t){if(this.connected){var e=this.from.x,n=this.from.y,r=this.to.x,i=this.to.y,o=t.left,a=t.top;return this.edgeType.getDistanceToEdge(e,n,r,i,o,a)<10}return!1}},{key:"_getRotation",value:function(t){var e=this.edgeType.getViaNode(),n=this.edgeType.getPoint(.5,e);void 0!==t&&this.labelModule.calculateLabelSize(t,this.selected,this.hover,n.x,n.y);var r={x:n.x,y:this.labelModule.size.yLine,angle:0};if(!this.labelModule.visible())return r;if("horizontal"===this.options.font.align)return r;var i=this.from.y-this.to.y,o=this.from.x-this.to.x,a=Math.atan2(i,o);return(a<-1&&o<0||a>0&&o<0)&&(a+=Math.PI),r.angle=a,r}},{key:"_pointOnCircle",value:function(t,e,n,r){return{x:t+n*Math.cos(r),y:e-n*Math.sin(r)}}},{key:"select",value:function(){this.selected=!0}},{key:"unselect",value:function(){this.selected=!1}},{key:"cleanup",value:function(){return this.edgeType.cleanup()}},{key:"remove",value:function(){this.cleanup(),this.disconnect(),delete this.body.edges[this.id]}},{key:"endPointsValid",value:function(){return void 0!==this.body.nodes[this.fromId]&&void 0!==this.body.nodes[this.toId]}}],[{key:"parseOptions",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(Fm(["endPointOffset","arrowStrikethrough","id","from","hidden","hoverWidth","labelHighlightBold","length","line","opacity","physics","scaling","selectionWidth","selfReferenceSize","selfReference","to","title","value","width","font","chosen","widthConstraint"],t,e,n),void 0!==e.endPointOffset&&void 0!==e.endPointOffset.from&&(Tx(e.endPointOffset.from)?t.endPointOffset.from=e.endPointOffset.from:(t.endPointOffset.from=void 0!==r.endPointOffset.from?r.endPointOffset.from:0,console.error("endPointOffset.from is not a valid number"))),void 0!==e.endPointOffset&&void 0!==e.endPointOffset.to&&(Tx(e.endPointOffset.to)?t.endPointOffset.to=e.endPointOffset.to:(t.endPointOffset.to=void 0!==r.endPointOffset.to?r.endPointOffset.to:0,console.error("endPointOffset.to is not a valid number"))),Ok(e.label)?t.label=e.label:Ok(t.label)||(t.label=void 0),Jm(t,e,"smooth",r),Jm(t,e,"shadow",r),Jm(t,e,"background",r),void 0!==e.dashes&&null!==e.dashes?t.dashes=e.dashes:!0===n&&null===e.dashes&&(t.dashes=Gv(r.dashes)),void 0!==e.scaling&&null!==e.scaling?(void 0!==e.scaling.min&&(t.scaling.min=e.scaling.min),void 0!==e.scaling.max&&(t.scaling.max=e.scaling.max),Jm(t.scaling,e.scaling,"label",r.scaling)):!0===n&&null===e.scaling&&(t.scaling=Gv(r.scaling)),void 0!==e.arrows&&null!==e.arrows)if("string"==typeof e.arrows){var o=e.arrows.toLowerCase();t.arrows.to.enabled=-1!=Uv(o).call(o,"to"),t.arrows.middle.enabled=-1!=Uv(o).call(o,"middle"),t.arrows.from.enabled=-1!=Uv(o).call(o,"from")}else{if("object"!==yd(e.arrows))throw new Error("The arrow newOptions can only be an object or a string. Refer to the documentation. You used:"+Kv(e.arrows));Jm(t.arrows,e.arrows,"to",r.arrows),Jm(t.arrows,e.arrows,"middle",r.arrows),Jm(t.arrows,e.arrows,"from",r.arrows)}else!0===n&&null===e.arrows&&(t.arrows=Gv(r.arrows));if(void 0!==e.color&&null!==e.color){var a=Nm(e.color)?{color:e.color,highlight:e.color,hover:e.color,inherit:!1,opacity:1}:e.color,s=t.color;if(i)zm(s,r.color,!1,n);else for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&delete s[l];if(Nm(s))s.color=s,s.highlight=s,s.hover=s,s.inherit=!1,void 0===a.opacity&&(s.opacity=1);else{var u=!1;void 0!==a.color&&(s.color=a.color,u=!0),void 0!==a.highlight&&(s.highlight=a.highlight,u=!0),void 0!==a.hover&&(s.hover=a.hover,u=!0),void 0!==a.inherit&&(s.inherit=a.inherit),void 0!==a.opacity&&(s.opacity=Math.min(1,Math.max(0,a.opacity))),!0===u?s.inherit=!1:void 0===s.inherit&&(s.inherit="from")}}else!0===n&&null===e.color&&(t.color=Qm(r.color));!0===n&&null===e.font&&(t.font=Qm(r.font)),Object.prototype.hasOwnProperty.call(e,"selfReferenceSize")&&(console.warn("The selfReferenceSize property has been deprecated. Please use selfReference property instead. The selfReference can be set like thise selfReference:{size:30, angle:Math.PI / 4}"),t.selfReference.size=e.selfReferenceSize)}}]),t}(),tS=function(){function t(e,n,r){var i,o=this;vl(this,t),this.body=e,this.images=n,this.groups=r,this.body.functions.createEdge=Ur(i=this.create).call(i,this),this.edgesListeners={add:function(t,e){o.add(e.items)},update:function(t,e){o.update(e.items)},remove:function(t,e){o.remove(e.items)}},this.options={},this.defaultOptions={arrows:{to:{enabled:!1,scaleFactor:1,type:"arrow"},middle:{enabled:!1,scaleFactor:1,type:"arrow"},from:{enabled:!1,scaleFactor:1,type:"arrow"}},endPointOffset:{from:0,to:0},arrowStrikethrough:!0,color:{color:"#848484",highlight:"#848484",hover:"#848484",inherit:"from",opacity:1},dashes:!1,font:{color:"#343434",size:14,face:"arial",background:"none",strokeWidth:2,strokeColor:"#ffffff",align:"horizontal",multi:!1,vadjust:0,bold:{mod:"bold"},boldital:{mod:"bold italic"},ital:{mod:"italic"},mono:{mod:"",size:15,face:"courier new",vadjust:2}},hidden:!1,hoverWidth:1.5,label:void 0,labelHighlightBold:!0,length:void 0,physics:!0,scaling:{min:1,max:15,label:{enabled:!0,min:14,max:30,maxVisible:30,drawThreshold:5},customScalingFunction:function(t,e,n,r){if(e===t)return.5;var i=1/(e-t);return Math.max(0,(r-t)*i)}},selectionWidth:1.5,selfReference:{size:20,angle:Math.PI/4,renderBehindTheNode:!0},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:10,x:5,y:5},background:{enabled:!1,color:"rgba(111,111,111,1)",size:10,dashes:!1},smooth:{enabled:!0,type:"dynamic",forceDirection:"none",roundness:.5},title:void 0,width:1,value:void 0},zm(this.options,this.defaultOptions),this.bindEventListeners()}return wd(t,[{key:"bindEventListeners",value:function(){var t,e,n=this;this.body.emitter.on("_forceDisableDynamicCurves",(function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];"dynamic"===t&&(t="continuous");var r=!1;for(var i in n.body.edges)if(Object.prototype.hasOwnProperty.call(n.body.edges,i)){var o=n.body.edges[i],a=n.body.data.edges.get(i);if(null!=a){var s=a.smooth;void 0!==s&&!0===s.enabled&&"dynamic"===s.type&&(void 0===t?o.setOptions({smooth:!1}):o.setOptions({smooth:{type:t}}),r=!0)}}!0===e&&!0===r&&n.body.emitter.emit("_dataChanged")})),this.body.emitter.on("_dataUpdated",(function(){n.reconnectEdges()})),this.body.emitter.on("refreshEdges",Ur(t=this.refresh).call(t,this)),this.body.emitter.on("refresh",Ur(e=this.refresh).call(e,this)),this.body.emitter.on("destroy",(function(){Wm(n.edgesListeners,(function(t,e){n.body.data.edges&&n.body.data.edges.off(e,t)})),delete n.body.functions.createEdge,delete n.edgesListeners.add,delete n.edgesListeners.update,delete n.edgesListeners.remove,delete n.edgesListeners}))}},{key:"setOptions",value:function(t){if(void 0!==t){ZE.parseOptions(this.options,t,!0,this.defaultOptions,!0);var e=!1;if(void 0!==t.smooth)for(var n in this.body.edges)Object.prototype.hasOwnProperty.call(this.body.edges,n)&&(e=this.body.edges[n].updateEdgeType()||e);if(void 0!==t.font)for(var r in this.body.edges)Object.prototype.hasOwnProperty.call(this.body.edges,r)&&this.body.edges[r].updateLabelModule();void 0===t.hidden&&void 0===t.physics&&!0!==e||this.body.emitter.emit("_dataChanged")}}},{key:"setData",value:function(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.body.data.edges;if(e.isDataViewLike("id",t))this.body.data.edges=t;else if(Sf(t))this.body.data.edges=new e.DataSet,this.body.data.edges.add(t);else{if(t)throw new TypeError("Array or DataSet expected");this.body.data.edges=new e.DataSet}if(i&&Wm(this.edgesListeners,(function(t,e){i.off(e,t)})),this.body.edges={},this.body.data.edges){Wm(this.edgesListeners,(function(t,e){n.body.data.edges.on(e,t)}));var o=this.body.data.edges.getIds();this.add(o,!0)}this.body.emitter.emit("_adjustEdgesForHierarchicalLayout"),!1===r&&this.body.emitter.emit("_dataChanged")}},{key:"add",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.body.edges,r=this.body.data.edges,i=0;i1&&void 0!==arguments[1])||arguments[1];if(0!==t.length){var n=this.body.edges;Wm(t,(function(t){var e=n[t];void 0!==e&&e.remove()})),e&&this.body.emitter.emit("_dataChanged")}}},{key:"refresh",value:function(){var t=this;Wm(this.body.edges,(function(e,n){var r=t.body.data.edges.get(n);void 0!==r&&e.setOptions(r)}))}},{key:"create",value:function(t){return new ZE(t,this.body,this.images,this.options,this.defaultOptions)}},{key:"reconnectEdges",value:function(){var t,e=this.body.nodes,n=this.body.edges;for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&(e[t].edges=[]);for(t in n)if(Object.prototype.hasOwnProperty.call(n,t)){var r=n[t];r.from=null,r.to=null,r.connect()}}},{key:"getConnectedNodes",value:function(t){var e=[];if(void 0!==this.body.edges[t]){var n=this.body.edges[t];void 0!==n.fromId&&e.push(n.fromId),void 0!==n.toId&&e.push(n.toId)}return e}},{key:"_updateState",value:function(){this._addMissingEdges(),this._removeInvalidEdges()}},{key:"_removeInvalidEdges",value:function(){var t=this,e=[];Wm(this.body.edges,(function(n,r){var i=t.body.nodes[n.toId],o=t.body.nodes[n.fromId];void 0!==i&&!0===i.isCluster||void 0!==o&&!0===o.isCluster||void 0!==i&&void 0!==o||e.push(r)})),this.remove(e,!1)}},{key:"_addMissingEdges",value:function(){var t=this.body.data.edges;if(null!=t){var e=this.body.edges,n=[];Jf(t).call(t,(function(t,r){void 0===e[r]&&n.push(r)})),this.add(n,!0)}}}]),t}(),eS=function(){function t(e,n,r){vl(this,t),this.body=e,this.physicsBody=n,this.barnesHutTree,this.setOptions(r),this._rng=Em("BARNES HUT SOLVER")}return wd(t,[{key:"setOptions",value:function(t){this.options=t,this.thetaInversed=1/this.options.theta,this.overlapAvoidanceFactor=1-Math.max(0,Math.min(1,this.options.avoidOverlap))}},{key:"solve",value:function(){if(0!==this.options.gravitationalConstant&&this.physicsBody.physicsNodeIndices.length>0){var t,e=this.body.nodes,n=this.physicsBody.physicsNodeIndices,r=n.length,i=this._formBarnesHutTree(e,n);this.barnesHutTree=i;for(var o=0;o0&&this._getForceContributions(i.root,t)}}},{key:"_getForceContributions",value:function(t,e){this._getForceContribution(t.children.NW,e),this._getForceContribution(t.children.NE,e),this._getForceContribution(t.children.SW,e),this._getForceContribution(t.children.SE,e)}},{key:"_getForceContribution",value:function(t,e){if(t.childrenCount>0){var n=t.centerOfMass.x-e.x,r=t.centerOfMass.y-e.y,i=Math.sqrt(n*n+r*r);i*t.calcSize>this.thetaInversed?this._calculateForces(i,n,r,e,t):4===t.childrenCount?this._getForceContributions(t,e):t.children.data.id!=e.id&&this._calculateForces(i,n,r,e,t)}}},{key:"_calculateForces",value:function(t,e,n,r,i){0===t&&(e=t=.1),this.overlapAvoidanceFactor<1&&r.shape.radius&&(t=Math.max(.1+this.overlapAvoidanceFactor*r.shape.radius,t-r.shape.radius));var o=this.options.gravitationalConstant*i.mass*r.options.mass/Math.pow(t,3),a=e*o,s=n*o;this.physicsBody.forces[r.id].x+=a,this.physicsBody.forces[r.id].y+=s}},{key:"_formBarnesHutTree",value:function(t,e){for(var n,r=e.length,i=t[e[0]].x,o=t[e[0]].y,a=t[e[0]].x,s=t[e[0]].y,l=1;l0&&(ca&&(a=c),hs&&(s=h))}var d=Math.abs(a-i)-Math.abs(s-o);d>0?(o-=.5*d,s+=.5*d):(i+=.5*d,a-=.5*d);var f=Math.max(1e-5,Math.abs(a-i)),p=.5*f,v=.5*(i+a),y=.5*(o+s),g={root:{centerOfMass:{x:0,y:0},mass:0,range:{minX:v-p,maxX:v+p,minY:y-p,maxY:y+p},size:f,calcSize:1/f,children:{data:null},maxWidth:0,level:0,childrenCount:4}};this._splitBranch(g.root);for(var m=0;m0&&this._placeInTree(g.root,n);return g}},{key:"_updateBranchMass",value:function(t,e){var n=t.centerOfMass,r=t.mass+e.options.mass,i=1/r;n.x=n.x*t.mass+e.x*e.options.mass,n.x*=i,n.y=n.y*t.mass+e.y*e.options.mass,n.y*=i,t.mass=r;var o=Math.max(Math.max(e.height,e.radius),e.width);t.maxWidth=t.maxWidthe.x?i.maxY>e.y?"NW":"SW":i.maxY>e.y?"NE":"SE",this._placeInRegion(t,e,r)}},{key:"_placeInRegion",value:function(t,e,n){var r=t.children[n];switch(r.childrenCount){case 0:r.children.data=e,r.childrenCount=1,this._updateBranchMass(r,e);break;case 1:r.children.data.x===e.x&&r.children.data.y===e.y?(e.x+=this._rng(),e.y+=this._rng()):(this._splitBranch(r),this._placeInTree(r,e));break;case 4:this._placeInTree(r,e)}}},{key:"_splitBranch",value:function(t){var e=null;1===t.childrenCount&&(e=t.children.data,t.mass=0,t.centerOfMass.x=0,t.centerOfMass.y=0),t.childrenCount=4,t.children.data=null,this._insertRegion(t,"NW"),this._insertRegion(t,"NE"),this._insertRegion(t,"SW"),this._insertRegion(t,"SE"),null!=e&&this._placeInTree(t,e)}},{key:"_insertRegion",value:function(t,e){var n,r,i,o,a=.5*t.size;switch(e){case"NW":n=t.range.minX,r=t.range.minX+a,i=t.range.minY,o=t.range.minY+a;break;case"NE":n=t.range.minX+a,r=t.range.maxX,i=t.range.minY,o=t.range.minY+a;break;case"SW":n=t.range.minX,r=t.range.minX+a,i=t.range.minY+a,o=t.range.maxY;break;case"SE":n=t.range.minX+a,r=t.range.maxX,i=t.range.minY+a,o=t.range.maxY}t.children[e]={centerOfMass:{x:0,y:0},mass:0,range:{minX:n,maxX:r,minY:i,maxY:o},size:.5*t.size,calcSize:2*t.calcSize,children:{data:null},maxWidth:0,level:t.level+1,childrenCount:0}}},{key:"_debug",value:function(t,e){void 0!==this.barnesHutTree&&(t.lineWidth=1,this._drawBranch(this.barnesHutTree.root,t,e))}},{key:"_drawBranch",value:function(t,e,n){void 0===n&&(n="#FF0000"),4===t.childrenCount&&(this._drawBranch(t.children.NW,e),this._drawBranch(t.children.NE,e),this._drawBranch(t.children.SE,e),this._drawBranch(t.children.SW,e)),e.strokeStyle=n,e.beginPath(),e.moveTo(t.range.minX,t.range.minY),e.lineTo(t.range.maxX,t.range.minY),e.stroke(),e.beginPath(),e.moveTo(t.range.maxX,t.range.minY),e.lineTo(t.range.maxX,t.range.maxY),e.stroke(),e.beginPath(),e.moveTo(t.range.maxX,t.range.maxY),e.lineTo(t.range.minX,t.range.maxY),e.stroke(),e.beginPath(),e.moveTo(t.range.minX,t.range.maxY),e.lineTo(t.range.minX,t.range.minY),e.stroke()}}]),t}(),nS=function(){function t(e,n,r){vl(this,t),this._rng=Em("REPULSION SOLVER"),this.body=e,this.physicsBody=n,this.setOptions(r)}return wd(t,[{key:"setOptions",value:function(t){this.options=t}},{key:"solve",value:function(){for(var t,e,n,r,i,o,a,s,l=this.body.nodes,u=this.physicsBody.physicsNodeIndices,c=this.physicsBody.forces,h=this.options.nodeDistance,d=-2/3/h,f=0;f0){var o=i.edges.length+1,a=this.options.centralGravity*o*i.options.mass;r[i.id].x=e*a,r[i.id].y=n*a}}}]),n}(aS),dS=function(){function t(e){vl(this,t),this.body=e,this.physicsBody={physicsNodeIndices:[],physicsEdgeIndices:[],forces:{},velocities:{}},this.physicsEnabled=!0,this.simulationInterval=1e3/60,this.requiresTimeout=!0,this.previousStates={},this.referenceState={},this.freezeCache={},this.renderTimer=void 0,this.adaptiveTimestep=!1,this.adaptiveTimestepEnabled=!1,this.adaptiveCounter=0,this.adaptiveInterval=3,this.stabilized=!1,this.startedStabilization=!1,this.stabilizationIterations=0,this.ready=!1,this.options={},this.defaultOptions={enabled:!0,barnesHut:{theta:.5,gravitationalConstant:-2e3,centralGravity:.3,springLength:95,springConstant:.04,damping:.09,avoidOverlap:0},forceAtlas2Based:{theta:.5,gravitationalConstant:-50,centralGravity:.01,springConstant:.08,springLength:100,damping:.4,avoidOverlap:0},repulsion:{centralGravity:.2,springLength:200,springConstant:.05,nodeDistance:100,damping:.09,avoidOverlap:0},hierarchicalRepulsion:{centralGravity:0,springLength:100,springConstant:.01,nodeDistance:120,damping:.09},maxVelocity:50,minVelocity:.75,solver:"barnesHut",stabilization:{enabled:!0,iterations:1e3,updateInterval:50,onlyDynamicEdges:!1,fit:!0},timestep:.5,adaptiveTimestep:!0,wind:{x:0,y:0}},xr(this.options,this.defaultOptions),this.timestep=.5,this.layoutFailed=!1,this.bindEventListeners()}return wd(t,[{key:"bindEventListeners",value:function(){var t=this;this.body.emitter.on("initPhysics",(function(){t.initPhysics()})),this.body.emitter.on("_layoutFailed",(function(){t.layoutFailed=!0})),this.body.emitter.on("resetPhysics",(function(){t.stopSimulation(),t.ready=!1})),this.body.emitter.on("disablePhysics",(function(){t.physicsEnabled=!1,t.stopSimulation()})),this.body.emitter.on("restorePhysics",(function(){t.setOptions(t.options),!0===t.ready&&t.startSimulation()})),this.body.emitter.on("startSimulation",(function(){!0===t.ready&&t.startSimulation()})),this.body.emitter.on("stopSimulation",(function(){t.stopSimulation()})),this.body.emitter.on("destroy",(function(){t.stopSimulation(!1),t.body.emitter.off()})),this.body.emitter.on("_dataChanged",(function(){t.updatePhysicsData()}))}},{key:"setOptions",value:function(t){if(void 0!==t)if(!1===t)this.options.enabled=!1,this.physicsEnabled=!1,this.stopSimulation();else if(!0===t)this.options.enabled=!0,this.physicsEnabled=!0,this.startSimulation();else{this.physicsEnabled=!0,Rm(["stabilization"],this.options,t),Jm(this.options,t,"stabilization"),void 0===t.enabled&&(this.options.enabled=!0),!1===this.options.enabled&&(this.physicsEnabled=!1,this.stopSimulation());var e=this.options.wind;e&&(("number"!=typeof e.x||Sx(e.x))&&(e.x=0),("number"!=typeof e.y||Sx(e.y))&&(e.y=0)),this.timestep=this.options.timestep}this.init()}},{key:"init",value:function(){var t;"forceAtlas2Based"===this.options.solver?(t=this.options.forceAtlas2Based,this.nodesSolver=new lS(this.body,this.physicsBody,t),this.edgesSolver=new iS(this.body,this.physicsBody,t),this.gravitySolver=new hS(this.body,this.physicsBody,t)):"repulsion"===this.options.solver?(t=this.options.repulsion,this.nodesSolver=new nS(this.body,this.physicsBody,t),this.edgesSolver=new iS(this.body,this.physicsBody,t),this.gravitySolver=new aS(this.body,this.physicsBody,t)):"hierarchicalRepulsion"===this.options.solver?(t=this.options.hierarchicalRepulsion,this.nodesSolver=new rS(this.body,this.physicsBody,t),this.edgesSolver=new oS(this.body,this.physicsBody,t),this.gravitySolver=new aS(this.body,this.physicsBody,t)):(t=this.options.barnesHut,this.nodesSolver=new eS(this.body,this.physicsBody,t),this.edgesSolver=new iS(this.body,this.physicsBody,t),this.gravitySolver=new aS(this.body,this.physicsBody,t)),this.modelOptions=t}},{key:"initPhysics",value:function(){!0===this.physicsEnabled&&!0===this.options.enabled?!0===this.options.stabilization.enabled?this.stabilize():(this.stabilized=!1,this.ready=!0,this.body.emitter.emit("fit",{},this.layoutFailed),this.startSimulation()):(this.ready=!0,this.body.emitter.emit("fit"))}},{key:"startSimulation",value:function(){var t;!0===this.physicsEnabled&&!0===this.options.enabled?(this.stabilized=!1,this.adaptiveTimestep=!1,this.body.emitter.emit("_resizeNodes"),void 0===this.viewFunction&&(this.viewFunction=Ur(t=this.simulationStep).call(t,this),this.body.emitter.on("initRedraw",this.viewFunction),this.body.emitter.emit("_startRendering"))):this.body.emitter.emit("_redraw")}},{key:"stopSimulation",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.stabilized=!0,!0===t&&this._emitStabilized(),void 0!==this.viewFunction&&(this.body.emitter.off("initRedraw",this.viewFunction),this.viewFunction=void 0,!0===t&&this.body.emitter.emit("_stopRendering"))}},{key:"simulationStep",value:function(){var t=Lf();this.physicsTick(),(Lf()-t<.4*this.simulationInterval||!0===this.runDoubleSpeed)&&!1===this.stabilized&&(this.physicsTick(),this.runDoubleSpeed=!0),!0===this.stabilized&&this.stopSimulation()}},{key:"_emitStabilized",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.stabilizationIterations;(this.stabilizationIterations>1||!0===this.startedStabilization)&&vy((function(){t.body.emitter.emit("stabilized",{iterations:e}),t.startedStabilization=!1,t.stabilizationIterations=0}),0)}},{key:"physicsStep",value:function(){this.gravitySolver.solve(),this.nodesSolver.solve(),this.edgesSolver.solve(),this.moveNodes()}},{key:"adjustTimeStep",value:function(){!0===this._evaluateStepQuality()?this.timestep=1.2*this.timestep:this.timestep/1.2.3))return!1;return!0}},{key:"moveNodes",value:function(){for(var t=this.physicsBody.physicsNodeIndices,e=0,n=0,r=0;rr&&(t=t>0?r:-r),t}},{key:"_performStep",value:function(t){var e=this.body.nodes[t],n=this.physicsBody.forces[t];this.options.wind&&(n.x+=this.options.wind.x,n.y+=this.options.wind.y);var r=this.physicsBody.velocities[t];return this.previousStates[t]={x:e.x,y:e.y,vx:r.x,vy:r.y},!1===e.options.fixed.x?(r.x=this.calculateComponentVelocity(r.x,n.x,e.options.mass),e.x+=r.x*this.timestep):(n.x=0,r.x=0),!1===e.options.fixed.y?(r.y=this.calculateComponentVelocity(r.y,n.y,e.options.mass),e.y+=r.y*this.timestep):(n.y=0,r.y=0),Math.sqrt(Math.pow(r.x,2)+Math.pow(r.y,2))}},{key:"_freezeNodes",value:function(){var t=this.body.nodes;for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&t[e].x&&t[e].y){var n=t[e].options.fixed;this.freezeCache[e]={x:n.x,y:n.y},n.x=!0,n.y=!0}}},{key:"_restoreFrozenNodes",value:function(){var t=this.body.nodes;for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&void 0!==this.freezeCache[e]&&(t[e].options.fixed.x=this.freezeCache[e].x,t[e].options.fixed.y=this.freezeCache[e].y);this.freezeCache={}}},{key:"stabilize",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.stabilization.iterations;"number"!=typeof e&&(e=this.options.stabilization.iterations,console.error("The stabilize method needs a numeric amount of iterations. Switching to default: ",e)),0!==this.physicsBody.physicsNodeIndices.length?(this.adaptiveTimestep=this.options.adaptiveTimestep,this.body.emitter.emit("_resizeNodes"),this.stopSimulation(),this.stabilized=!1,this.body.emitter.emit("_blockRedraw"),this.targetIterations=e,!0===this.options.stabilization.onlyDynamicEdges&&this._freezeNodes(),this.stabilizationIterations=0,vy((function(){return t._stabilizationBatch()}),0)):this.ready=!0}},{key:"_startStabilizing",value:function(){return!0!==this.startedStabilization&&(this.body.emitter.emit("startStabilizing"),this.startedStabilization=!0,!0)}},{key:"_stabilizationBatch",value:function(){var t=this,e=function(){return!1===t.stabilized&&t.stabilizationIterations1&&void 0!==arguments[1]?arguments[1]:0;return vS[t[e+0]]+vS[t[e+1]]+vS[t[e+2]]+vS[t[e+3]]+"-"+vS[t[e+4]]+vS[t[e+5]]+"-"+vS[t[e+6]]+vS[t[e+7]]+"-"+vS[t[e+8]]+vS[t[e+9]]+"-"+vS[t[e+10]]+vS[t[e+11]]+vS[t[e+12]]+vS[t[e+13]]+vS[t[e+14]]+vS[t[e+15]]}(r)}var bS=function(){function t(){vl(this,t)}return wd(t,null,[{key:"getRange",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=1e9,i=-1e9,o=1e9,a=-1e9;if(n.length>0)for(var s=0;s(e=t[n[s]]).shape.boundingBox.left&&(o=e.shape.boundingBox.left),ae.shape.boundingBox.top&&(r=e.shape.boundingBox.top),i1&&void 0!==arguments[1]?arguments[1]:[],r=1e9,i=-1e9,o=1e9,a=-1e9;if(n.length>0)for(var s=0;s(e=t[n[s]]).x&&(o=e.x),ae.y&&(r=e.y),i=t&&n.push(i.id)}for(var o=0;o0&&void 0!==arguments[0]?arguments[0]:{},n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(void 0===e.joinCondition)throw new Error("Cannot call clusterByNodeData without a joinCondition function in the options.");e=this._checkOptions(e);var r={},i={};Wm(this.body.nodes,(function(n,o){n.options&&!0===e.joinCondition(n.options)&&(r[o]=n,Wm(n.edges,(function(e){void 0===t.clusteredEdges[e.id]&&(i[e.id]=e)})))})),this._cluster(r,i,e,n)}},{key:"clusterByEdgeCount",value:function(t,e){var n=this,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];e=this._checkOptions(e);for(var i,o,a,s=[],l={},u=function(){var r={},u={},h=n.body.nodeIndices[c],d=n.body.nodes[h];if(void 0===l[h]){a=0,o=[];for(var f=0;f0&&Mf(u).length>0&&!0===v){var m=function(){for(var t=0;t1&&void 0!==arguments[1])||arguments[1];this.clusterByEdgeCount(1,t,e)}},{key:"clusterBridges",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.clusterByEdgeCount(2,t,e)}},{key:"clusterByConnection",value:function(t,e){var n,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(void 0===t)throw new Error("No nodeId supplied to clusterByConnection!");if(void 0===this.body.nodes[t])throw new Error("The nodeId given to clusterByConnection does not exist!");var i=this.body.nodes[t];void 0===(e=this._checkOptions(e,i)).clusterNodeProperties.x&&(e.clusterNodeProperties.x=i.x),void 0===e.clusterNodeProperties.y&&(e.clusterNodeProperties.y=i.y),void 0===e.clusterNodeProperties.fixed&&(e.clusterNodeProperties.fixed={},e.clusterNodeProperties.fixed.x=i.options.fixed.x,e.clusterNodeProperties.fixed.y=i.options.fixed.y);var o={},a={},s=i.id,l=bS.cloneOptions(i);o[s]=i;for(var u=0;u-1&&(a[g.id]=g)}this._cluster(o,a,e,r)}},{key:"_createClusterEdges",value:function(t,e,n,r){for(var i,o,a,s,l,u,c=Mf(t),h=[],d=0;d0&&void 0!==arguments[0]?arguments[0]:{};return void 0===t.clusterEdgeProperties&&(t.clusterEdgeProperties={}),void 0===t.clusterNodeProperties&&(t.clusterNodeProperties={}),t}},{key:"_cluster",value:function(t,e,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=[];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&void 0!==this.clusteredNodes[o]&&i.push(o);for(var a=0;ai?e.x:i,o=e.ya?e.y:a;return{x:.5*(r+i),y:.5*(o+a)}}},{key:"openCluster",value:function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(void 0===t)throw new Error("No clusterNodeId supplied to openCluster.");var r=this.body.nodes[t];if(void 0===r)throw new Error("The clusterNodeId supplied to openCluster does not exist.");if(!0!==r.isCluster||void 0===r.containedNodes||void 0===r.containedEdges)throw new Error("The node:"+t+" is not a valid cluster.");var i=this.findNode(t),o=Uv(i).call(i,t)-1;if(o>=0){var a=i[o];return this.body.nodes[a]._openChildCluster(t),delete this.body.nodes[t],void(!0===n&&this.body.emitter.emit("_dataChanged"))}var s=r.containedNodes,l=r.containedEdges;if(void 0!==e&&void 0!==e.releaseFunction&&"function"==typeof e.releaseFunction){var u={},c={x:r.x,y:r.y};for(var h in s)if(Object.prototype.hasOwnProperty.call(s,h)){var d=this.body.nodes[h];u[h]={x:d.x,y:d.y}}var f=e.releaseFunction(c,u);for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p)){var v=this.body.nodes[p];void 0!==f[p]&&(v.x=void 0===f[p].x?r.x:f[p].x,v.y=void 0===f[p].y?r.y:f[p].y)}}else Wm(s,(function(t){!1===t.options.fixed.x&&(t.x=r.x),!1===t.options.fixed.y&&(t.y=r.y)}));for(var y in s)if(Object.prototype.hasOwnProperty.call(s,y)){var g=this.body.nodes[y];g.vx=r.vx,g.vy=r.vy,g.setOptions({physics:!0}),delete this.clusteredNodes[y]}for(var m=[],b=0;b0&&i<100;){var o=e.pop();if(void 0!==o){var a=this.body.edges[o];if(void 0!==a){i++;var s=a.clusteringEdgeReplacingIds;if(void 0===s)r.push(o);else for(var l=0;lr&&(r=o.edges.length),t+=o.edges.length,e+=Math.pow(o.edges.length,2),n+=1}t/=n;var a=(e/=n)-Math.pow(t,2),s=Math.sqrt(a),l=Math.floor(t+2*s);return l>r&&(l=r),l}},{key:"_createClusteredEdge",value:function(t,e,n,r,i){var o=bS.cloneOptions(n,"edge");zm(o,r),o.from=t,o.to=e,o.id="clusterEdge:"+mS(),void 0!==i&&zm(o,i);var a=this.body.functions.createEdge(o);return a.clusteringEdgeReplacingIds=[n.id],a.connect(),this.body.edges[a.id]=a,a}},{key:"_clusterEdges",value:function(t,e,n,r){if(e instanceof ZE){var i=e,o={};o[i.id]=i,e=o}if(t instanceof nE){var a=t,s={};s[a.id]=a,t=s}if(null==n)throw new Error("_clusterEdges: parameter clusterNode required");for(var l in void 0===r&&(r=n.clusterEdgeProperties),this._createClusterEdges(t,e,n,r),e)if(Object.prototype.hasOwnProperty.call(e,l)&&void 0!==this.body.edges[l]){var u=this.body.edges[l];this._backupEdgeOptions(u),u.setOptions({physics:!1})}for(var c in t)Object.prototype.hasOwnProperty.call(t,c)&&(this.clusteredNodes[c]={clusterId:n.id,node:this.body.nodes[c]},this.body.nodes[c].setOptions({physics:!1}))}},{key:"_getClusterNodeForNode",value:function(t){if(void 0!==t){var e=this.clusteredNodes[t];if(void 0!==e){var n=e.clusterId;if(void 0!==n)return this.body.nodes[n]}}}},{key:"_filter",value:function(t,e){var n=[];return Wm(t,(function(t){e(t)&&n.push(t)})),n}},{key:"_updateState",value:function(){var t,e=this,n=[],r={},i=function(t){Wm(e.body.nodes,(function(e){!0===e.isCluster&&t(e)}))};for(t in this.clusteredNodes)Object.prototype.hasOwnProperty.call(this.clusteredNodes,t)&&void 0===this.body.nodes[t]&&n.push(t);i((function(t){for(var e=0;e0}t.endPointsValid()&&i||(r[n]=n)})),i((function(t){Wm(r,(function(n){delete t.containedEdges[n],Wm(t.edges,(function(i,o){i.id!==n?i.clusteringEdgeReplacingIds=e._filter(i.clusteringEdgeReplacingIds,(function(t){return!r[t]})):t.edges[o]=null})),t.edges=e._filter(t.edges,(function(t){return null!==t}))}))})),Wm(r,(function(t){delete e.clusteredEdges[t]})),Wm(r,(function(t){delete e.body.edges[t]})),Wm(Mf(this.body.edges),(function(t){var n=e.body.edges[t],r=e._isClusteredNode(n.fromId)||e._isClusteredNode(n.toId);if(r!==e._isClusteredEdge(n.id))if(r){var i=e._getClusterNodeForNode(n.fromId);void 0!==i&&e._clusterEdges(e.body.nodes[n.fromId],n,i);var o=e._getClusterNodeForNode(n.toId);void 0!==o&&e._clusterEdges(e.body.nodes[n.toId],n,o)}else delete e._clusterEdges[t],e._restoreEdge(n)}));for(var a=!1,s=!0,l=function(){var t=[];i((function(e){var n=Mf(e.containedNodes).length,r=!0===e.options.allowSingleNodeCluster;(r&&n<1||!r&&n<2)&&t.push(e.id)}));for(var n=0;n0,a=a||s};s;)l();a&&this._updateState()}},{key:"_isClusteredNode",value:function(t){return void 0!==this.clusteredNodes[t]}},{key:"_isClusteredEdge",value:function(t){return void 0!==this.clusteredEdges[t]}}]),t}(),_S=function(){function t(e,n){var r;vl(this,t),void 0!==window&&(r=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame),window.requestAnimationFrame=void 0===r?function(t){t()}:r,this.body=e,this.canvas=n,this.redrawRequested=!1,this.renderTimer=void 0,this.requiresTimeout=!0,this.renderingActive=!1,this.renderRequests=0,this.allowRedraw=!0,this.dragging=!1,this.zooming=!1,this.options={},this.defaultOptions={hideEdgesOnDrag:!1,hideEdgesOnZoom:!1,hideNodesOnDrag:!1},xr(this.options,this.defaultOptions),this._determineBrowserMethod(),this.bindEventListeners()}return wd(t,[{key:"bindEventListeners",value:function(){var t,e=this;this.body.emitter.on("dragStart",(function(){e.dragging=!0})),this.body.emitter.on("dragEnd",(function(){e.dragging=!1})),this.body.emitter.on("zoom",(function(){e.zooming=!0,window.clearTimeout(e.zoomTimeoutId),e.zoomTimeoutId=vy((function(){var t;e.zooming=!1,Ur(t=e._requestRedraw).call(t,e)()}),250)})),this.body.emitter.on("_resizeNodes",(function(){e._resizeNodes()})),this.body.emitter.on("_redraw",(function(){!1===e.renderingActive&&e._redraw()})),this.body.emitter.on("_blockRedraw",(function(){e.allowRedraw=!1})),this.body.emitter.on("_allowRedraw",(function(){e.allowRedraw=!0,e.redrawRequested=!1})),this.body.emitter.on("_requestRedraw",Ur(t=this._requestRedraw).call(t,this)),this.body.emitter.on("_startRendering",(function(){e.renderRequests+=1,e.renderingActive=!0,e._startRendering()})),this.body.emitter.on("_stopRendering",(function(){e.renderRequests-=1,e.renderingActive=e.renderRequests>0,e.renderTimer=void 0})),this.body.emitter.on("destroy",(function(){e.renderRequests=0,e.allowRedraw=!1,e.renderingActive=!1,!0===e.requiresTimeout?clearTimeout(e.renderTimer):window.cancelAnimationFrame(e.renderTimer),e.body.emitter.off()}))}},{key:"setOptions",value:function(t){void 0!==t&&Fm(["hideEdgesOnDrag","hideEdgesOnZoom","hideNodesOnDrag"],this.options,t)}},{key:"_requestNextFrame",value:function(t,e){if("undefined"!=typeof window){var n,r=window;return!0===this.requiresTimeout?n=vy(t,e):r.requestAnimationFrame&&(n=r.requestAnimationFrame(t)),n}}},{key:"_startRendering",value:function(){var t;!0===this.renderingActive&&void 0===this.renderTimer&&(this.renderTimer=this._requestNextFrame(Ur(t=this._renderStep).call(t,this),this.simulationInterval))}},{key:"_renderStep",value:function(){!0===this.renderingActive&&(this.renderTimer=void 0,!0===this.requiresTimeout&&this._startRendering(),this._redraw(),!1===this.requiresTimeout&&this._startRendering())}},{key:"redraw",value:function(){this.body.emitter.emit("setSize"),this._redraw()}},{key:"_requestRedraw",value:function(){var t=this;!0!==this.redrawRequested&&!1===this.renderingActive&&!0===this.allowRedraw&&(this.redrawRequested=!0,this._requestNextFrame((function(){t._redraw(!1)}),0))}},{key:"_redraw",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!0===this.allowRedraw){this.body.emitter.emit("initRedraw"),this.redrawRequested=!1;var e={drawExternalLabels:null};0!==this.canvas.frame.canvas.width&&0!==this.canvas.frame.canvas.height||this.canvas.setSize(),this.canvas.setTransform();var n=this.canvas.getContext(),r=this.canvas.frame.canvas.clientWidth,i=this.canvas.frame.canvas.clientHeight;if(n.clearRect(0,0,r,i),0===this.canvas.frame.clientWidth)return;if(n.save(),n.translate(this.body.view.translation.x,this.body.view.translation.y),n.scale(this.body.view.scale,this.body.view.scale),n.beginPath(),this.body.emitter.emit("beforeDrawing",n),n.closePath(),!1===t&&(!1===this.dragging||!0===this.dragging&&!1===this.options.hideEdgesOnDrag)&&(!1===this.zooming||!0===this.zooming&&!1===this.options.hideEdgesOnZoom)&&this._drawEdges(n),!1===this.dragging||!0===this.dragging&&!1===this.options.hideNodesOnDrag){var o=this._drawNodes(n,t).drawExternalLabels;e.drawExternalLabels=o}!1===t&&(!1===this.dragging||!0===this.dragging&&!1===this.options.hideEdgesOnDrag)&&(!1===this.zooming||!0===this.zooming&&!1===this.options.hideEdgesOnZoom)&&this._drawArrows(n),null!=e.drawExternalLabels&&e.drawExternalLabels(),!1===t&&this._drawSelectionBox(n),n.beginPath(),this.body.emitter.emit("afterDrawing",n),n.closePath(),n.restore(),!0===t&&n.clearRect(0,0,r,i)}}},{key:"_resizeNodes",value:function(){this.canvas.setTransform();var t=this.canvas.getContext();t.save(),t.translate(this.body.view.translation.x,this.body.view.translation.y),t.scale(this.body.view.scale,this.body.view.scale);var e,n=this.body.nodes;for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&((e=n[r]).resize(t),e.updateBoundingBox(t,e.selected));t.restore()}},{key:"_drawNodes",value:function(t){for(var e,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.body.nodes,o=this.body.nodeIndices,a=[],s=[],l=this.canvas.DOMtoCanvas({x:-20,y:-20}),u=this.canvas.DOMtoCanvas({x:this.canvas.frame.canvas.clientWidth+20,y:this.canvas.frame.canvas.clientHeight+20}),c={top:l.y,left:l.x,bottom:u.y,right:u.x},h=[],d=0;d0&&void 0!==arguments[0]?arguments[0]:this.pixelRatio;!0===this.initialized&&(this.cameraState.previousWidth=this.frame.canvas.width/t,this.cameraState.previousHeight=this.frame.canvas.height/t,this.cameraState.scale=this.body.view.scale,this.cameraState.position=this.DOMtoCanvas({x:.5*this.frame.canvas.width/t,y:.5*this.frame.canvas.height/t}))}},{key:"_setCameraState",value:function(){if(void 0!==this.cameraState.scale&&0!==this.frame.canvas.clientWidth&&0!==this.frame.canvas.clientHeight&&0!==this.pixelRatio&&this.cameraState.previousWidth>0&&this.cameraState.previousHeight>0){var t=this.frame.canvas.width/this.pixelRatio/this.cameraState.previousWidth,e=this.frame.canvas.height/this.pixelRatio/this.cameraState.previousHeight,n=this.cameraState.scale;1!=t&&1!=e?n=.5*this.cameraState.scale*(t+e):1!=t?n=this.cameraState.scale*t:1!=e&&(n=this.cameraState.scale*e),this.body.view.scale=n;var r=this.DOMtoCanvas({x:.5*this.frame.canvas.clientWidth,y:.5*this.frame.canvas.clientHeight}),i={x:r.x-this.cameraState.position.x,y:r.y-this.cameraState.position.y};this.body.view.translation.x+=i.x*this.body.view.scale,this.body.view.translation.y+=i.y*this.body.view.scale}}},{key:"_prepareValue",value:function(t){if("number"==typeof t)return t+"px";if("string"==typeof t){if(-1!==Uv(t).call(t,"%")||-1!==Uv(t).call(t,"px"))return t;if(-1===Uv(t).call(t,"%"))return t+"px"}throw new Error("Could not use the value supplied for width or height:"+t)}},{key:"_create",value:function(){for(;this.body.container.hasChildNodes();)this.body.container.removeChild(this.body.container.firstChild);if(this.frame=document.createElement("div"),this.frame.className="vis-network",this.frame.style.position="relative",this.frame.style.overflow="hidden",this.frame.tabIndex=0,this.frame.canvas=document.createElement("canvas"),this.frame.canvas.style.position="relative",this.frame.appendChild(this.frame.canvas),this.frame.canvas.getContext)this._setPixelRatio(),this.setTransform();else{var t=document.createElement("DIV");t.style.color="red",t.style.fontWeight="bold",t.style.padding="10px",t.innerText="Error: your browser does not support HTML canvas",this.frame.canvas.appendChild(t)}this.body.container.appendChild(this.frame),this.body.view.scale=1,this.body.view.translation={x:.5*this.frame.canvas.clientWidth,y:.5*this.frame.canvas.clientHeight},this._bindHammer()}},{key:"_bindHammer",value:function(){var t=this;void 0!==this.hammer&&this.hammer.destroy(),this.drag={},this.pinch={},this.hammer=new db(this.frame.canvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.get("pan").set({threshold:5,direction:db.DIRECTION_ALL}),SS(this.hammer,(function(e){t.body.eventListeners.onTouch(e)})),this.hammer.on("tap",(function(e){t.body.eventListeners.onTap(e)})),this.hammer.on("doubletap",(function(e){t.body.eventListeners.onDoubleTap(e)})),this.hammer.on("press",(function(e){t.body.eventListeners.onHold(e)})),this.hammer.on("panstart",(function(e){t.body.eventListeners.onDragStart(e)})),this.hammer.on("panmove",(function(e){t.body.eventListeners.onDrag(e)})),this.hammer.on("panend",(function(e){t.body.eventListeners.onDragEnd(e)})),this.hammer.on("pinch",(function(e){t.body.eventListeners.onPinch(e)})),this.frame.canvas.addEventListener("wheel",(function(e){t.body.eventListeners.onMouseWheel(e)})),this.frame.canvas.addEventListener("mousemove",(function(e){t.body.eventListeners.onMouseMove(e)})),this.frame.canvas.addEventListener("contextmenu",(function(e){t.body.eventListeners.onContext(e)})),this.hammerFrame=new db(this.frame),OS(this.hammerFrame,(function(e){t.body.eventListeners.onRelease(e)}))}},{key:"setSize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.width,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.options.height;t=this._prepareValue(t),e=this._prepareValue(e);var n=!1,r=this.frame.canvas.width,i=this.frame.canvas.height,o=this.pixelRatio;if(this._setPixelRatio(),t!=this.options.width||e!=this.options.height||this.frame.style.width!=t||this.frame.style.height!=e)this._getCameraState(o),this.frame.style.width=t,this.frame.style.height=e,this.frame.canvas.style.width="100%",this.frame.canvas.style.height="100%",this.frame.canvas.width=Math.round(this.frame.canvas.clientWidth*this.pixelRatio),this.frame.canvas.height=Math.round(this.frame.canvas.clientHeight*this.pixelRatio),this.options.width=t,this.options.height=e,this.canvasViewCenter={x:.5*this.frame.clientWidth,y:.5*this.frame.clientHeight},n=!0;else{var a=Math.round(this.frame.canvas.clientWidth*this.pixelRatio),s=Math.round(this.frame.canvas.clientHeight*this.pixelRatio);this.frame.canvas.width===a&&this.frame.canvas.height===s||this._getCameraState(o),this.frame.canvas.width!==a&&(this.frame.canvas.width=a,n=!0),this.frame.canvas.height!==s&&(this.frame.canvas.height=s,n=!0)}return!0===n&&(this.body.emitter.emit("resize",{width:Math.round(this.frame.canvas.width/this.pixelRatio),height:Math.round(this.frame.canvas.height/this.pixelRatio),oldWidth:Math.round(r/this.pixelRatio),oldHeight:Math.round(i/this.pixelRatio)}),this._setCameraState()),this.initialized=!0,n}},{key:"getContext",value:function(){return this.frame.canvas.getContext("2d")}},{key:"_determinePixelRatio",value:function(){var t=this.getContext();if(void 0===t)throw new Error("Could not get canvax context");var e=1;return"undefined"!=typeof window&&(e=window.devicePixelRatio||1),e/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)}},{key:"_setPixelRatio",value:function(){this.pixelRatio=this._determinePixelRatio()}},{key:"setTransform",value:function(){var t=this.getContext();if(void 0===t)throw new Error("Could not get canvax context");t.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}},{key:"_XconvertDOMtoCanvas",value:function(t){return(t-this.body.view.translation.x)/this.body.view.scale}},{key:"_XconvertCanvasToDOM",value:function(t){return t*this.body.view.scale+this.body.view.translation.x}},{key:"_YconvertDOMtoCanvas",value:function(t){return(t-this.body.view.translation.y)/this.body.view.scale}},{key:"_YconvertCanvasToDOM",value:function(t){return t*this.body.view.scale+this.body.view.translation.y}},{key:"canvasToDOM",value:function(t){return{x:this._XconvertCanvasToDOM(t.x),y:this._YconvertCanvasToDOM(t.y)}}},{key:"DOMtoCanvas",value:function(t){return{x:this._XconvertDOMtoCanvas(t.x),y:this._YconvertDOMtoCanvas(t.y)}}}]),t}(),TS=function(){function t(e,n){var r,i,o=this;vl(this,t),this.body=e,this.canvas=n,this.animationSpeed=1/this.renderRefreshRate,this.animationEasingFunction="easeInOutQuint",this.easingTime=0,this.sourceScale=0,this.targetScale=0,this.sourceTranslation=0,this.targetTranslation=0,this.lockedOnNodeId=void 0,this.lockedOnNodeOffset=void 0,this.touchTime=0,this.viewFunction=void 0,this.body.emitter.on("fit",Ur(r=this.fit).call(r,this)),this.body.emitter.on("animationFinished",(function(){o.body.emitter.emit("_stopRendering")})),this.body.emitter.on("unlockNode",Ur(i=this.releaseNode).call(i,this))}return wd(t,[{key:"setOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.options=t}},{key:"fit",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=function(t,e){var n=xr({nodes:e,minZoomLevel:Number.MIN_VALUE,maxZoomLevel:1},null!=t?t:{});if(!Sf(n.nodes))throw new TypeError("Nodes has to be an array of ids.");if(0===n.nodes.length&&(n.nodes=e),!("number"==typeof n.minZoomLevel&&n.minZoomLevel>0))throw new TypeError("Min zoom level has to be a number higher than zero.");if(!("number"==typeof n.maxZoomLevel&&n.minZoomLevel<=n.maxZoomLevel))throw new TypeError("Max zoom level has to be a number higher than min zoom level.");return n}(t,this.body.nodeIndices);var n,r,i=this.canvas.frame.canvas.clientWidth,o=this.canvas.frame.canvas.clientHeight;if(0===i||0===o)r=1,n=bS.getRange(this.body.nodes,t.nodes);else if(!0===e){var a=0;for(var s in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,s)&&!0===this.body.nodes[s].predefinedPosition&&(a+=1);if(a>.5*this.body.nodeIndices.length)return void this.fit(t,!1);n=bS.getRange(this.body.nodes,t.nodes),r=12.662/(this.body.nodeIndices.length+7.4147)+.0964822,r*=Math.min(i/600,o/600)}else{this.body.emitter.emit("_resizeNodes"),n=bS.getRange(this.body.nodes,t.nodes);var l=i/(1.1*Math.abs(n.maxX-n.minX)),u=o/(1.1*Math.abs(n.maxY-n.minY));r=l<=u?l:u}r>t.maxZoomLevel?r=t.maxZoomLevel:r1&&void 0!==arguments[1]?arguments[1]:{};if(void 0!==this.body.nodes[t]){var n={x:this.body.nodes[t].x,y:this.body.nodes[t].y};e.position=n,e.lockedOnNode=t,this.moveTo(e)}else console.error("Node: "+t+" cannot be found.")}},{key:"moveTo",value:function(t){if(void 0!==t){if(null!=t.offset){if(null!=t.offset.x){if(t.offset.x=+t.offset.x,!Tx(t.offset.x))throw new TypeError('The option "offset.x" has to be a finite number.')}else t.offset.x=0;if(null!=t.offset.y){if(t.offset.y=+t.offset.y,!Tx(t.offset.y))throw new TypeError('The option "offset.y" has to be a finite number.')}else t.offset.x=0}else t.offset={x:0,y:0};if(null!=t.position){if(null!=t.position.x){if(t.position.x=+t.position.x,!Tx(t.position.x))throw new TypeError('The option "position.x" has to be a finite number.')}else t.position.x=0;if(null!=t.position.y){if(t.position.y=+t.position.y,!Tx(t.position.y))throw new TypeError('The option "position.y" has to be a finite number.')}else t.position.x=0}else t.position=this.getViewPosition();if(null!=t.scale){if(t.scale=+t.scale,!(t.scale>0))throw new TypeError('The option "scale" has to be a number greater than zero.')}else t.scale=this.body.view.scale;void 0===t.animation&&(t.animation={duration:0}),!1===t.animation&&(t.animation={duration:0}),!0===t.animation&&(t.animation={}),void 0===t.animation.duration&&(t.animation.duration=1e3),void 0===t.animation.easingFunction&&(t.animation.easingFunction="easeInOutQuad"),this.animateView(t)}else t={}}},{key:"animateView",value:function(t){if(void 0!==t){this.animationEasingFunction=t.animation.easingFunction,this.releaseNode(),!0===t.locked&&(this.lockedOnNodeId=t.lockedOnNode,this.lockedOnNodeOffset=t.offset),0!=this.easingTime&&this._transitionRedraw(!0),this.sourceScale=this.body.view.scale,this.sourceTranslation=this.body.view.translation,this.targetScale=t.scale,this.body.view.scale=this.targetScale;var e,n,r=this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight}),i=r.x-t.position.x,o=r.y-t.position.y;this.targetTranslation={x:this.sourceTranslation.x+i*this.targetScale+t.offset.x,y:this.sourceTranslation.y+o*this.targetScale+t.offset.y},0===t.animation.duration?null!=this.lockedOnNodeId?(this.viewFunction=Ur(e=this._lockedRedraw).call(e,this),this.body.emitter.on("initRedraw",this.viewFunction)):(this.body.view.scale=this.targetScale,this.body.view.translation=this.targetTranslation,this.body.emitter.emit("_requestRedraw")):(this.animationSpeed=1/(60*t.animation.duration*.001)||1/60,this.animationEasingFunction=t.animation.easingFunction,this.viewFunction=Ur(n=this._transitionRedraw).call(n,this),this.body.emitter.on("initRedraw",this.viewFunction),this.body.emitter.emit("_startRendering"))}}},{key:"_lockedRedraw",value:function(){var t=this.body.nodes[this.lockedOnNodeId].x,e=this.body.nodes[this.lockedOnNodeId].y,n=this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight}),r=n.x-t,i=n.y-e,o=this.body.view.translation,a={x:o.x+r*this.body.view.scale+this.lockedOnNodeOffset.x,y:o.y+i*this.body.view.scale+this.lockedOnNodeOffset.y};this.body.view.translation=a}},{key:"releaseNode",value:function(){void 0!==this.lockedOnNodeId&&void 0!==this.viewFunction&&(this.body.emitter.off("initRedraw",this.viewFunction),this.lockedOnNodeId=void 0,this.lockedOnNodeOffset=void 0)}},{key:"_transitionRedraw",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.easingTime+=this.animationSpeed,this.easingTime=!0===t?1:this.easingTime;var e,n=Zm[this.animationEasingFunction](this.easingTime);this.body.view.scale=this.sourceScale+(this.targetScale-this.sourceScale)*n,this.body.view.translation={x:this.sourceTranslation.x+(this.targetTranslation.x-this.sourceTranslation.x)*n,y:this.sourceTranslation.y+(this.targetTranslation.y-this.sourceTranslation.y)*n},this.easingTime>=1&&(this.body.emitter.off("initRedraw",this.viewFunction),this.easingTime=0,null!=this.lockedOnNodeId&&(this.viewFunction=Ur(e=this._lockedRedraw).call(e,this),this.body.emitter.on("initRedraw",this.viewFunction)),this.body.emitter.emit("animationFinished"))}},{key:"getScale",value:function(){return this.body.view.scale}},{key:"getViewPosition",value:function(){return this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight})}}]),t}();function PS(t){var e,n=t&&t.preventDefault||!1,r=t&&t.container||window,i={},o={keydown:{},keyup:{}},a={};for(e=97;e<=122;e++)a[String.fromCharCode(e)]={code:e-97+65,shift:!1};for(e=65;e<=90;e++)a[String.fromCharCode(e)]={code:e,shift:!0};for(e=0;e<=9;e++)a[""+e]={code:48+e,shift:!1};for(e=1;e<=12;e++)a["F"+e]={code:111+e,shift:!1};for(e=0;e<=9;e++)a["num"+e]={code:96+e,shift:!1};a["num*"]={code:106,shift:!1},a["num+"]={code:107,shift:!1},a["num-"]={code:109,shift:!1},a["num/"]={code:111,shift:!1},a["num."]={code:110,shift:!1},a.left={code:37,shift:!1},a.up={code:38,shift:!1},a.right={code:39,shift:!1},a.down={code:40,shift:!1},a.space={code:32,shift:!1},a.enter={code:13,shift:!1},a.shift={code:16,shift:void 0},a.esc={code:27,shift:!1},a.backspace={code:8,shift:!1},a.tab={code:9,shift:!1},a.ctrl={code:17,shift:!1},a.alt={code:18,shift:!1},a.delete={code:46,shift:!1},a.pageup={code:33,shift:!1},a.pagedown={code:34,shift:!1},a["="]={code:187,shift:!1},a["-"]={code:189,shift:!1},a["]"]={code:221,shift:!1},a["["]={code:219,shift:!1};var s=function(t){u(t,"keydown")},l=function(t){u(t,"keyup")},u=function(t,e){if(void 0!==o[e][t.keyCode]){for(var r=o[e][t.keyCode],i=0;i700&&(this.body.emitter.emit("fit",{duration:700}),this.touchTime=(new Date).valueOf())}},{key:"_stopMovement",value:function(){for(var t in this.boundFunctions)Object.prototype.hasOwnProperty.call(this.boundFunctions,t)&&(this.body.emitter.off("initRedraw",this.boundFunctions[t]),this.body.emitter.emit("_stopRendering"));this.boundFunctions={}}},{key:"_moveUp",value:function(){this.body.view.translation.y+=this.options.keyboard.speed.y}},{key:"_moveDown",value:function(){this.body.view.translation.y-=this.options.keyboard.speed.y}},{key:"_moveLeft",value:function(){this.body.view.translation.x+=this.options.keyboard.speed.x}},{key:"_moveRight",value:function(){this.body.view.translation.x-=this.options.keyboard.speed.x}},{key:"_zoomIn",value:function(){var t=this.body.view.scale,e=this.body.view.scale*(1+this.options.keyboard.speed.zoom),n=this.body.view.translation,r=e/t,i=(1-r)*this.canvas.canvasViewCenter.x+n.x*r,o=(1-r)*this.canvas.canvasViewCenter.y+n.y*r;this.body.view.scale=e,this.body.view.translation={x:i,y:o},this.body.emitter.emit("zoom",{direction:"+",scale:this.body.view.scale,pointer:null})}},{key:"_zoomOut",value:function(){var t=this.body.view.scale,e=this.body.view.scale/(1+this.options.keyboard.speed.zoom),n=this.body.view.translation,r=e/t,i=(1-r)*this.canvas.canvasViewCenter.x+n.x*r,o=(1-r)*this.canvas.canvasViewCenter.y+n.y*r;this.body.view.scale=e,this.body.view.translation={x:i,y:o},this.body.emitter.emit("zoom",{direction:"-",scale:this.body.view.scale,pointer:null})}},{key:"configureKeyboardBindings",value:function(){var t,e,n,r,i,o,a,s,l,u,c,h,d,f,p,v,y,g,m,b,w,x,k,_,E=this;void 0!==this.keycharm&&this.keycharm.destroy(),!0===this.options.keyboard.enabled&&(!0===this.options.keyboard.bindToWindow?this.keycharm=PS({container:window,preventDefault:!0}):this.keycharm=PS({container:this.canvas.frame,preventDefault:!0}),this.keycharm.reset(),!0===this.activated&&(Ur(t=this.keycharm).call(t,"up",(function(){E.bindToRedraw("_moveUp")}),"keydown"),Ur(e=this.keycharm).call(e,"down",(function(){E.bindToRedraw("_moveDown")}),"keydown"),Ur(n=this.keycharm).call(n,"left",(function(){E.bindToRedraw("_moveLeft")}),"keydown"),Ur(r=this.keycharm).call(r,"right",(function(){E.bindToRedraw("_moveRight")}),"keydown"),Ur(i=this.keycharm).call(i,"=",(function(){E.bindToRedraw("_zoomIn")}),"keydown"),Ur(o=this.keycharm).call(o,"num+",(function(){E.bindToRedraw("_zoomIn")}),"keydown"),Ur(a=this.keycharm).call(a,"num-",(function(){E.bindToRedraw("_zoomOut")}),"keydown"),Ur(s=this.keycharm).call(s,"-",(function(){E.bindToRedraw("_zoomOut")}),"keydown"),Ur(l=this.keycharm).call(l,"[",(function(){E.bindToRedraw("_zoomOut")}),"keydown"),Ur(u=this.keycharm).call(u,"]",(function(){E.bindToRedraw("_zoomIn")}),"keydown"),Ur(c=this.keycharm).call(c,"pageup",(function(){E.bindToRedraw("_zoomIn")}),"keydown"),Ur(h=this.keycharm).call(h,"pagedown",(function(){E.bindToRedraw("_zoomOut")}),"keydown"),Ur(d=this.keycharm).call(d,"up",(function(){E.unbindFromRedraw("_moveUp")}),"keyup"),Ur(f=this.keycharm).call(f,"down",(function(){E.unbindFromRedraw("_moveDown")}),"keyup"),Ur(p=this.keycharm).call(p,"left",(function(){E.unbindFromRedraw("_moveLeft")}),"keyup"),Ur(v=this.keycharm).call(v,"right",(function(){E.unbindFromRedraw("_moveRight")}),"keyup"),Ur(y=this.keycharm).call(y,"=",(function(){E.unbindFromRedraw("_zoomIn")}),"keyup"),Ur(g=this.keycharm).call(g,"num+",(function(){E.unbindFromRedraw("_zoomIn")}),"keyup"),Ur(m=this.keycharm).call(m,"num-",(function(){E.unbindFromRedraw("_zoomOut")}),"keyup"),Ur(b=this.keycharm).call(b,"-",(function(){E.unbindFromRedraw("_zoomOut")}),"keyup"),Ur(w=this.keycharm).call(w,"[",(function(){E.unbindFromRedraw("_zoomOut")}),"keyup"),Ur(x=this.keycharm).call(x,"]",(function(){E.unbindFromRedraw("_zoomIn")}),"keyup"),Ur(k=this.keycharm).call(k,"pageup",(function(){E.unbindFromRedraw("_zoomIn")}),"keyup"),Ur(_=this.keycharm).call(_,"pagedown",(function(){E.unbindFromRedraw("_zoomOut")}),"keyup")))}}]),t}();function IS(t,e){var n=void 0!==hf&&pl(t)||t["@@iterator"];if(!n){if(Sf(t)||(n=function(t,e){var n;if(t){if("string"==typeof t)return NS(t,e);var r=mf(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Ys(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?NS(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function NS(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n50&&(this.drag.pointer=this.getPointer(t.center),this.drag.pinched=!1,this.pinch.scale=this.body.view.scale,this.touchTime=(new Date).valueOf())}},{key:"onTap",value:function(t){var e=this.getPointer(t.center),n=this.selectionHandler.options.multiselect&&(t.changedPointers[0].ctrlKey||t.changedPointers[0].metaKey);this.checkSelectionChanges(e,n),this.selectionHandler.commitAndEmit(e,t),this.selectionHandler.generateClickEvent("click",t,e)}},{key:"onDoubleTap",value:function(t){var e=this.getPointer(t.center);this.selectionHandler.generateClickEvent("doubleClick",t,e)}},{key:"onHold",value:function(t){var e=this.getPointer(t.center),n=this.selectionHandler.options.multiselect;this.checkSelectionChanges(e,n),this.selectionHandler.commitAndEmit(e,t),this.selectionHandler.generateClickEvent("click",t,e),this.selectionHandler.generateClickEvent("hold",t,e)}},{key:"onRelease",value:function(t){if((new Date).valueOf()-this.touchTime>10){var e=this.getPointer(t.center);this.selectionHandler.generateClickEvent("release",t,e),this.touchTime=(new Date).valueOf()}}},{key:"onContext",value:function(t){var e=this.getPointer({x:t.clientX,y:t.clientY});this.selectionHandler.generateClickEvent("oncontext",t,e)}},{key:"checkSelectionChanges",value:function(t){!0===(arguments.length>1&&void 0!==arguments[1]&&arguments[1])?this.selectionHandler.selectAdditionalOnPoint(t):this.selectionHandler.selectOnPoint(t)}},{key:"_determineDifference",value:function(t,e){var n=function(t,e){for(var n=[],r=0;r=i.minX&&n.x<=i.maxX&&n.y>=i.minY&&n.y<=i.maxY}));Jf(o).call(o,(function(t){return e.selectionHandler.selectObject(e.body.nodes[t])}));var a=this.getPointer(t.center);this.selectionHandler.commitAndEmit(a,t),this.selectionHandler.generateClickEvent("dragEnd",t,this.getPointer(t.center),void 0,!0),this.body.emitter.emit("_requestRedraw")}else{var s=this.drag.selection;s&&s.length?(Jf(s).call(s,(function(t){t.node.options.fixed.x=t.xFixed,t.node.options.fixed.y=t.yFixed})),this.selectionHandler.generateClickEvent("dragEnd",t,this.getPointer(t.center)),this.body.emitter.emit("startSimulation")):(this.selectionHandler.generateClickEvent("dragEnd",t,this.getPointer(t.center),void 0,!0),this.body.emitter.emit("_requestRedraw"))}}},{key:"onPinch",value:function(t){var e=this.getPointer(t.center);this.drag.pinched=!0,void 0===this.pinch.scale&&(this.pinch.scale=1);var n=this.pinch.scale*t.scale;this.zoom(n,e)}},{key:"zoom",value:function(t,e){if(!0===this.options.zoomView){var n=this.body.view.scale;t<1e-5&&(t=1e-5),t>10&&(t=10);var r=void 0;void 0!==this.drag&&!0===this.drag.dragging&&(r=this.canvas.DOMtoCanvas(this.drag.pointer));var i=this.body.view.translation,o=t/n,a=(1-o)*e.x+i.x*o,s=(1-o)*e.y+i.y*o;if(this.body.view.scale=t,this.body.view.translation={x:a,y:s},null!=r){var l=this.canvas.canvasToDOM(r);this.drag.pointer.x=l.x,this.drag.pointer.y=l.y}this.body.emitter.emit("_requestRedraw"),n0&&(this.popupObj=u[c[c.length-1]],o=!0)}if(void 0===this.popupObj&&!1===o){for(var d,f=this.body.edgeIndices,p=this.body.edges,v=[],y=0;y0&&(this.popupObj=p[v[v.length-1]],a="edge")}void 0!==this.popupObj?this.popupObj.id!==i&&(void 0===this.popup&&(this.popup=new fb(this.canvas.frame)),this.popup.popupTargetType=a,this.popup.popupTargetId=this.popupObj.id,this.popup.setPosition(t.x+3,t.y-5),this.popup.setText(this.popupObj.getTitle()),this.popup.show(),this.body.emitter.emit("showPopup",this.popupObj.id)):void 0!==this.popup&&(this.popup.hide(),this.body.emitter.emit("hidePopup"))}},{key:"_checkHidePopup",value:function(t){var e=this.selectionHandler._pointerToPositionObject(t),n=!1;if("node"===this.popup.popupTargetType){if(void 0!==this.body.nodes[this.popup.popupTargetId]&&!0===(n=this.body.nodes[this.popup.popupTargetId].isOverlappingWith(e))){var r=this.selectionHandler.getNodeAt(t);n=void 0!==r&&r.id===this.popup.popupTargetId}}else void 0===this.selectionHandler.getNodeAt(t)&&void 0!==this.body.edges[this.popup.popupTargetId]&&(n=this.body.edges[this.popup.popupTargetId].isOverlappingWith(e));!1===n&&(this.popupObj=void 0,this.popup.hide(),this.body.emitter.emit("hidePopup"))}}]),t}();ex("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),kx);var DS=i(rt.Set),MS=m,FS=rx,RS=xw.getWeakData,zS=zw,LS=on,BS=Y,WS=nt,HS=Mw,US=te,VS=Wi.set,qS=Wi.getterFor,GS=Mu.find,YS=Mu.findIndex,$S=MS([].splice),XS=0,KS=function(t){return t.frozen||(t.frozen=new QS)},QS=function(){this.entries=[]},JS=function(t,e){return GS(t.entries,(function(t){return t[0]===e}))};QS.prototype={get:function(t){var e=JS(this,t);if(e)return e[1]},has:function(t){return!!JS(this,t)},set:function(t,e){var n=JS(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=YS(this.entries,(function(e){return e[0]===t}));return~e&&$S(this.entries,e,1),!!~e}};var ZS,tO={getConstructor:function(t,e,n,r){var i=t((function(t,i){zS(t,o),VS(t,{type:e,id:XS++,frozen:void 0}),BS(i)||HS(i,t[r],{that:t,AS_ENTRIES:n})})),o=i.prototype,a=qS(e),s=function(t,e,n){var r=a(t),i=RS(LS(e),!0);return!0===i?KS(r).set(e,n):i[r.id]=n,t};return FS(o,{delete:function(t){var e=a(this);if(!WS(t))return!1;var n=RS(t);return!0===n?KS(e).delete(t):n&&US(n,e.id)&&delete n[e.id]},has:function(t){var e=a(this);if(!WS(t))return!1;var n=RS(t);return!0===n?KS(e).has(t):n&&US(n,e.id)}}),FS(o,n?{get:function(t){var e=a(this);if(WS(t)){var n=RS(t);return!0===n?KS(e).get(t):n?n[e.id]:void 0}},set:function(t,e){return s(this,t,e)}}:{add:function(t){return s(this,t,!0)}}),i}},eO=ow,nO=a,rO=m,iO=rx,oO=xw,aO=ex,sO=tO,lO=nt,uO=Wi.enforce,cO=s,hO=Ei,dO=Object,fO=Array.isArray,pO=dO.isExtensible,vO=dO.isFrozen,yO=dO.isSealed,gO=dO.freeze,mO=dO.seal,bO={},wO={},xO=!nO.ActiveXObject&&"ActiveXObject"in nO,kO=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},_O=aO("WeakMap",kO,sO),EO=_O.prototype,SO=rO(EO.set);if(hO)if(xO){ZS=sO.getConstructor(kO,"WeakMap",!0),oO.enable();var OO=rO(EO.delete),CO=rO(EO.has),TO=rO(EO.get);iO(EO,{delete:function(t){if(lO(t)&&!pO(t)){var e=uO(this);return e.frozen||(e.frozen=new ZS),OO(this,t)||e.frozen.delete(t)}return OO(this,t)},has:function(t){if(lO(t)&&!pO(t)){var e=uO(this);return e.frozen||(e.frozen=new ZS),CO(this,t)||e.frozen.has(t)}return CO(this,t)},get:function(t){if(lO(t)&&!pO(t)){var e=uO(this);return e.frozen||(e.frozen=new ZS),CO(this,t)?TO(this,t):e.frozen.get(t)}return TO(this,t)},set:function(t,e){if(lO(t)&&!pO(t)){var n=uO(this);n.frozen||(n.frozen=new ZS),CO(this,t)?SO(this,t,e):n.frozen.set(t,e)}else SO(this,t,e);return this}})}else eO&&cO((function(){var t=gO([]);return SO(new _O,t,1),!vO(t)}))&&iO(EO,{set:function(t,e){var n;return fO(t)&&(vO(t)?n=bO:yO(t)&&(n=wO)),SO(this,t,e),n===bO&&gO(t),n===wO&&mO(t),this}});var PO,jO,IO,NO,AO,DO=i(rt.WeakMap);function MO(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)}function FO(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n}function RO(t,e){var n=void 0!==hf&&pl(t)||t["@@iterator"];if(!n){if(Sf(t)||(n=function(t,e){var n;if(t){if("string"==typeof t)return zO(t,e);var r=mf(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Ys(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?zO(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function zO(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:function(){};vl(this,t),IO.set(this,new BO),NO.set(this,new BO),AO.set(this,void 0),FO(this,AO,e,"f")}return wd(t,[{key:"sizeNodes",get:function(){return MO(this,IO,"f").size}},{key:"sizeEdges",get:function(){return MO(this,NO,"f").size}},{key:"getNodes",value:function(){return MO(this,IO,"f").getSelection()}},{key:"getEdges",value:function(){return MO(this,NO,"f").getSelection()}},{key:"addNodes",value:function(){var t;(t=MO(this,IO,"f")).add.apply(t,arguments)}},{key:"addEdges",value:function(){var t;(t=MO(this,NO,"f")).add.apply(t,arguments)}},{key:"deleteNodes",value:function(t){MO(this,IO,"f").delete(t)}},{key:"deleteEdges",value:function(t){MO(this,NO,"f").delete(t)}},{key:"clear",value:function(){MO(this,IO,"f").clear(),MO(this,NO,"f").clear()}},{key:"commit",value:function(){for(var t,e,n={nodes:MO(this,IO,"f").commit(),edges:MO(this,NO,"f").commit()},r=arguments.length,i=new Array(r),o=0;o=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function UO(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n4&&void 0!==arguments[4]&&arguments[4],o=this._initBaseEvent(e,n);if(!0===i)o.nodes=[],o.edges=[];else{var a=this.getSelection();o.nodes=a.nodes,o.edges=a.edges}void 0!==r&&(o.previousSelection=r),"click"==t&&(o.items=this.getClickedItems(n)),void 0!==e.controlEdge&&(o.controlEdge=e.controlEdge),this.body.emitter.emit(t,o)}},{key:"selectObject",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.options.selectConnectedEdges;return void 0!==t&&(t instanceof nE?(!0===n&&(e=this._selectionAccumulator).addEdges.apply(e,cf(t.edges)),this._selectionAccumulator.addNodes(t)):this._selectionAccumulator.addEdges(t),!0)}},{key:"deselectObject",value:function(t){!0===t.isSelected()&&(t.selected=!1,this._removeFromSelection(t))}},{key:"_getAllNodesOverlappingWith",value:function(t){for(var e=[],n=this.body.nodes,r=0;r1&&void 0!==arguments[1])||arguments[1],n=this._pointerToPositionObject(t),r=this._getAllNodesOverlappingWith(n);return r.length>0?!0===e?this.body.nodes[r[r.length-1]]:r[r.length-1]:void 0}},{key:"_getEdgesOverlappingWith",value:function(t,e){for(var n=this.body.edges,r=0;r1&&void 0!==arguments[1])||arguments[1],n=this.canvas.DOMtoCanvas(t),r=10,i=null,o=this.body.edges,a=0;a0&&(this.generateClickEvent("deselectEdge",e,t,i),n=!0),r.nodes.deleted.length>0&&(this.generateClickEvent("deselectNode",e,t,i),n=!0),r.nodes.added.length>0&&(this.generateClickEvent("selectNode",e,t),n=!0),r.edges.added.length>0&&(this.generateClickEvent("selectEdge",e,t),n=!0),!0===n&&this.generateClickEvent("select",e,t)}},{key:"getSelection",value:function(){return{nodes:this.getSelectedNodeIds(),edges:this.getSelectedEdgeIds()}}},{key:"getSelectedNodes",value:function(){return this._selectionAccumulator.getNodes()}},{key:"getSelectedEdges",value:function(){return this._selectionAccumulator.getEdges()}},{key:"getSelectedNodeIds",value:function(){var t;return Nf(t=this._selectionAccumulator.getNodes()).call(t,(function(t){return t.id}))}},{key:"getSelectedEdgeIds",value:function(){var t;return Nf(t=this._selectionAccumulator.getEdges()).call(t,(function(t){return t.id}))}},{key:"setSelection",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t||!t.nodes&&!t.edges)throw new TypeError("Selection must be an object with nodes and/or edges properties");if((e.unselectAll||void 0===e.unselectAll)&&this.unselectAll(),t.nodes){var n,r=HO(t.nodes);try{for(r.s();!(n=r.n()).done;){var i=n.value,o=this.body.nodes[i];if(!o)throw new RangeError('Node with id "'+i+'" not found');this.selectObject(o,e.highlightEdges)}}catch(t){r.e(t)}finally{r.f()}}if(t.edges){var a,s=HO(t.edges);try{for(s.s();!(a=s.n()).done;){var l=a.value,u=this.body.edges[l];if(!u)throw new RangeError('Edge with id "'+l+'" not found');this.selectObject(u)}}catch(t){s.e(t)}finally{s.f()}}this.body.emitter.emit("_requestRedraw"),this._selectionAccumulator.commit()}},{key:"selectNodes",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!t||void 0===t.length)throw"Selection must be an array with ids";this.setSelection({nodes:t},{highlightEdges:e})}},{key:"selectEdges",value:function(t){if(!t||void 0===t.length)throw"Selection must be an array with ids";this.setSelection({edges:t})}},{key:"updateSelection",value:function(){for(var t in this._selectionAccumulator.getNodes())Object.prototype.hasOwnProperty.call(this.body.nodes,t.id)||this._selectionAccumulator.deleteNodes(t);for(var e in this._selectionAccumulator.getEdges())Object.prototype.hasOwnProperty.call(this.body.edges,e.id)||this._selectionAccumulator.deleteEdges(e)}},{key:"getClickedItems",value:function(t){for(var e=this.canvas.DOMtoCanvas(t),n=[],r=this.body.nodeIndices,i=this.body.nodes,o=r.length-1;o>=0;o--){var a=i[r[o]].getItemsOnPoint(e);n.push.apply(n,a)}for(var s=this.body.edgeIndices,l=this.body.edges,u=s.length-1;u>=0;u--){var c=l[s[u]].getItemsOnPoint(e);n.push.apply(n,c)}return n}}]),t}(),qO=lu,GO=Math.floor,YO=function t(e,n){var r=e.length,i=GO(r/2);return r<8?$O(e,n):XO(e,t(qO(e,0,i),n),t(qO(e,i),n),n)},$O=function(t,e){for(var n,r,i=t.length,o=1;o0;)t[r]=t[--r];r!==o++&&(t[r]=n)}return t},XO=function(t,e,n,r){for(var i=e.length,o=n.length,a=0,s=0;a3)){if(fC)return!0;if(vC)return vC<603;var t,e,n,r,i="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)yC.push({k:e+r,v:n})}for(yC.sort((function(t,e){return e.v-t.v})),r=0;rlC(n)?1:-1}}(t)),n=aC(i),r=0;r=0:s>l;l+=u)l in a&&(i=n(i,a[l],l,o));return i}},MC={left:DC(!1),right:DC(!0)},FC="process"===k(a.process),RC=MC.left;In({target:"Array",proto:!0,forced:!FC&>>79&><83||!Wf("reduce")},{reduce:function(t){var e=arguments.length;return RC(this,t,e,e>1?arguments[1]:void 0)}});var zC=Fr("Array").reduce,LC=ut,BC=zC,WC=Array.prototype,HC=function(t){var e=t.reduce;return t===WC||LC(WC,t)&&e===WC.reduce?BC:e},UC=i(HC);function VC(t){var e=function(){if("undefined"==typeof Reflect||!a_)return!1;if(a_.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(a_(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p_(t);if(e){var i=p_(this).constructor;n=a_(r,arguments,i)}else n=r.apply(this,arguments);return d_(this,n)}}var qC=function(){function t(){vl(this,t)}return wd(t,[{key:"abstract",value:function(){throw new Error("Can't instantiate abstract class!")}},{key:"fake_use",value:function(){}},{key:"curveType",value:function(){return this.abstract()}},{key:"getPosition",value:function(t){return this.fake_use(t),this.abstract()}},{key:"setPosition",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;this.fake_use(t,e,n),this.abstract()}},{key:"getTreeSize",value:function(t){return this.fake_use(t),this.abstract()}},{key:"sort",value:function(t){this.fake_use(t),this.abstract()}},{key:"fix",value:function(t,e){this.fake_use(t,e),this.abstract()}},{key:"shift",value:function(t,e){this.fake_use(t,e),this.abstract()}}]),t}(),GC=function(t){h_(n,t);var e=VC(n);function n(t){var r;return vl(this,n),(r=e.call(this)).layout=t,r}return wd(n,[{key:"curveType",value:function(){return"horizontal"}},{key:"getPosition",value:function(t){return t.x}},{key:"setPosition",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;void 0!==n&&this.layout.hierarchical.addToOrdering(t,n),t.x=e}},{key:"getTreeSize",value:function(t){var e=this.layout.hierarchical.getTreeSize(this.layout.body.nodes,t);return{min:e.min_x,max:e.max_x}}},{key:"sort",value:function(t){TC(t).call(t,(function(t,e){return t.x-e.x}))}},{key:"fix",value:function(t,e){t.y=this.layout.options.hierarchical.levelSeparation*e,t.options.fixed.y=!0}},{key:"shift",value:function(t,e){this.layout.body.nodes[t].x+=e}}]),n}(qC),YC=function(t){h_(n,t);var e=VC(n);function n(t){var r;return vl(this,n),(r=e.call(this)).layout=t,r}return wd(n,[{key:"curveType",value:function(){return"vertical"}},{key:"getPosition",value:function(t){return t.y}},{key:"setPosition",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;void 0!==n&&this.layout.hierarchical.addToOrdering(t,n),t.y=e}},{key:"getTreeSize",value:function(t){var e=this.layout.hierarchical.getTreeSize(this.layout.body.nodes,t);return{min:e.min_y,max:e.max_y}}},{key:"sort",value:function(t){TC(t).call(t,(function(t,e){return t.y-e.y}))}},{key:"fix",value:function(t,e){t.x=this.layout.options.hierarchical.levelSeparation*e,t.options.fixed.x=!0}},{key:"shift",value:function(t,e){this.layout.body.nodes[t].y+=e}}]),n}(qC),$C=Mu.every;In({target:"Array",proto:!0,forced:!Wf("every")},{every:function(t){return $C(this,t,arguments.length>1?arguments[1]:void 0)}});var XC=Fr("Array").every,KC=ut,QC=XC,JC=Array.prototype,ZC=function(t){var e=t.every;return t===JC||KC(JC,t)&&e===JC.every?QC:e},tT=i(ZC);function eT(t,e){var n=void 0!==hf&&pl(t)||t["@@iterator"];if(!n){if(Sf(t)||(n=function(t,e){var n;if(t){if("string"==typeof t)return nT(t,e);var r=mf(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Ys(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?nT(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function nT(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=e[r])&&(e[r]=e[n]+1)})),e}function iT(t,e,n,r){var i,o,a=Gv(null),s=UC(i=cf(Fk(r).call(r))).call(i,(function(t,e){return t+1+e.edges.length}),0),l=n+"Id",u="to"===n?1:-1,c=eT(r);try{var h,d=function(){var i=uf(o.value,2),c=i[0],h=i[1];if(!r.has(c)||!t(h))return 0;a[c]=0;for(var d,f,p=[h],v=0,y=function(){var t,i;if(!r.has(c))return 0;var o=a[d.id]+u;if(Jf(t=cv(i=d.edges).call(i,(function(t){return t.connected&&t.to!==t.from&&t[n]!==d&&r.has(t.toId)&&r.has(t.fromId)}))).call(t,(function(t){var r=t[l],i=a[r];(null==i||e(o,i))&&(a[r]=o,p.push(t[n]))})),v>s)return{v:{v:rT(r,a)}};++v};d=p.pop();)if(0!==(f=y())&&f)return f.v};for(c.s();!(o=c.n()).done;)if(0!==(h=d())&&h)return h.v}catch(t){c.e(t)}finally{c.f()}return a}var oT=function(){function t(){vl(this,t),this.childrenReference={},this.parentReference={},this.trees={},this.distributionOrdering={},this.levels={},this.distributionIndex={},this.isTree=!1,this.treeIndex=-1}return wd(t,[{key:"addRelation",value:function(t,e){void 0===this.childrenReference[t]&&(this.childrenReference[t]=[]),this.childrenReference[t].push(e),void 0===this.parentReference[e]&&(this.parentReference[e]=[]),this.parentReference[e].push(t)}},{key:"checkIfTree",value:function(){for(var t in this.parentReference)if(this.parentReference[t].length>1)return void(this.isTree=!1);this.isTree=!0}},{key:"numTrees",value:function(){return this.treeIndex+1}},{key:"setTreeIndex",value:function(t,e){void 0!==e&&void 0===this.trees[t.id]&&(this.trees[t.id]=e,this.treeIndex=Math.max(e,this.treeIndex))}},{key:"ensureLevel",value:function(t){void 0===this.levels[t]&&(this.levels[t]=0)}},{key:"getMaxLevel",value:function(t){var e=this,n={};return function t(r){if(void 0!==n[r])return n[r];var i=e.levels[r];if(e.childrenReference[r]){var o=e.childrenReference[r];if(o.length>0)for(var a=0;a0&&(n.levelSeparation*=-1):n.levelSeparation<0&&(n.levelSeparation*=-1),this.setDirectionStrategy(),this.body.emitter.emit("_resetHierarchicalLayout"),this.adaptAllOptionsForHierarchicalLayout(e);if(!0===r)return this.body.emitter.emit("refresh"),zm(e,this.optionsBackup)}return e}},{key:"_resetRNG",value:function(t){this.initialRandomSeed=t,this._rng=Em(this.initialRandomSeed)}},{key:"adaptAllOptionsForHierarchicalLayout",value:function(t){if(!0===this.options.hierarchical.enabled){var e=this.optionsBackup.physics;void 0===t.physics||!0===t.physics?(t.physics={enabled:void 0===e.enabled||e.enabled,solver:"hierarchicalRepulsion"},e.enabled=void 0===e.enabled||e.enabled,e.solver=e.solver||"barnesHut"):"object"===yd(t.physics)?(e.enabled=void 0===t.physics.enabled||t.physics.enabled,e.solver=t.physics.solver||"barnesHut",t.physics.solver="hierarchicalRepulsion"):!1!==t.physics&&(e.solver="barnesHut",t.physics={solver:"hierarchicalRepulsion"});var n=this.direction.curveType();if(void 0===t.edges)this.optionsBackup.edges={smooth:{enabled:!0,type:"dynamic"}},t.edges={smooth:!1};else if(void 0===t.edges.smooth)this.optionsBackup.edges={smooth:{enabled:!0,type:"dynamic"}},t.edges.smooth=!1;else if("boolean"==typeof t.edges.smooth)this.optionsBackup.edges={smooth:t.edges.smooth},t.edges.smooth={enabled:t.edges.smooth,type:n};else{var r=t.edges.smooth;void 0!==r.type&&"dynamic"!==r.type&&(n=r.type),this.optionsBackup.edges={smooth:{enabled:void 0===r.enabled||r.enabled,type:void 0===r.type?"dynamic":r.type,roundness:void 0===r.roundness?.5:r.roundness,forceDirection:void 0!==r.forceDirection&&r.forceDirection}},t.edges.smooth={enabled:void 0===r.enabled||r.enabled,type:n,roundness:void 0===r.roundness?.5:r.roundness,forceDirection:void 0!==r.forceDirection&&r.forceDirection}}this.body.emitter.emit("_forceDisableDynamicCurves",n)}return t}},{key:"positionInitially",value:function(t){if(!0!==this.options.hierarchical.enabled){this._resetRNG(this.initialRandomSeed);for(var e=t.length+50,n=0;ni){for(var a=t.length;t.length>i&&r<=10;){r+=1;var s=t.length;if(r%3==0?this.body.modules.clustering.clusterBridges(o):this.body.modules.clustering.clusterOutliers(o),s==t.length&&r%3!=0)return this._declusterAll(),this.body.emitter.emit("_layoutFailed"),void console.info("This network could not be positioned by this version of the improved layout algorithm. Please disable improvedLayout for better performance.")}this.body.modules.kamadaKawai.setOptions({springLength:Math.max(150,2*a)})}r>10&&console.info("The clustering didn't succeed within the amount of interations allowed, progressing with partial result."),this.body.modules.kamadaKawai.solve(t,this.body.edgeIndices,!0),this._shiftToCenter();for(var l=0;l0){var t,e,n=!1,r=!1;for(e in this.lastNodeOnLevel={},this.hierarchical=new oT,this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,e)&&(void 0!==(t=this.body.nodes[e]).options.level?(n=!0,this.hierarchical.levels[e]=t.options.level):r=!0);if(!0===r&&!0===n)throw new Error("To use the hierarchical layout, nodes require either no predefined levels or levels have to be defined for all nodes.");if(!0===r){var i=this.options.hierarchical.sortMethod;"hubsize"===i?this._determineLevelsByHubsize():"directed"===i?this._determineLevelsDirected():"custom"===i&&this._determineLevelsCustomCallback()}for(var o in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,o)&&this.hierarchical.ensureLevel(o);var a=this._getDistribution();this._generateMap(),this._placeNodesByHierarchy(a),this._condenseHierarchy(),this._shiftToCenter()}}},{key:"_condenseHierarchy",value:function(){var t=this,e=!1,n={},r=function(e,n){var r=t.hierarchical.trees;for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&r[i]===e&&t.direction.shift(i,n)},i=function(){for(var e=[],n=0;n0)for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:1e9,r=1e9,i=1e9,o=1e9,a=-1e9;for(var s in e)if(Object.prototype.hasOwnProperty.call(e,s)){var l=t.body.nodes[s],u=t.hierarchical.levels[l.id],c=t.direction.getPosition(l),h=uf(t._getSpaceAroundNode(l,e),2),d=h[0],f=h[1];r=Math.min(d,r),i=Math.min(f,i),u<=n&&(o=Math.min(c,o),a=Math.max(c,a))}return[o,a,r,i]},s=function(e,n,r){for(var i=t.hierarchical,o=0;o1)for(var l=0;l2&&void 0!==arguments[2]&&arguments[2],s=t.direction.getPosition(n),l=t.direction.getPosition(r),u=Math.abs(l-s),c=t.options.hierarchical.nodeSpacing;if(u>c){var h={},d={};o(n,h),o(r,d);var f=function(e,n){var r=t.hierarchical.getMaxLevel(e.id),i=t.hierarchical.getMaxLevel(n.id);return Math.min(r,i)}(n,r),p=a(h,f),v=a(d,f),y=p[1],g=v[0],m=v[2];if(Math.abs(y-g)>c){var b=y-g+c;b<-m+c&&(b=-m+c),b<0&&(t._shiftBlock(r.id,b),e=!0,!0===i&&t._centerParent(r))}}},u=function(r,i){for(var s=i.id,l=i.edges,u=t.hierarchical.levels[i.id],c=t.options.hierarchical.levelSeparation*t.options.hierarchical.levelSeparation,h={},d=[],f=0;f0?f=Math.min(d,h-t.options.hierarchical.nodeSpacing):d<0&&(f=-Math.min(-d,c-t.options.hierarchical.nodeSpacing)),0!=f&&(t._shiftBlock(i.id,f),e=!0)}(b),function(n){var r=t.direction.getPosition(i),o=uf(t._getSpaceAroundNode(i),2),a=o[0],s=o[1],l=n-r,u=r;l>0?u=Math.min(r+(s-t.options.hierarchical.nodeSpacing),n):l<0&&(u=Math.max(r-(a-t.options.hierarchical.nodeSpacing),n)),u!==r&&(t.direction.setPosition(i,u),e=!0)}(b=m(r,l))};!0===this.options.hierarchical.blockShifting&&(function(n){var r=t.hierarchical.getLevels();r=lp(r).call(r);for(var i=0;i0&&Math.abs(h)0&&(l=this.direction.getPosition(r[o-1])+s),this.direction.setPosition(a,l,e),this._validatePositionAndContinue(a,e,l),i++}}}}},{key:"_placeBranchNodes",value:function(t,e){var n,r=this.hierarchical.childrenReference[t];if(void 0!==r){for(var i=[],o=0;oe&&void 0===this.positionedNodes[s.id]))return;var u=this.options.hierarchical.nodeSpacing,c=void 0;c=0===a?this.direction.getPosition(this.body.nodes[t]):this.direction.getPosition(i[a-1])+u,this.direction.setPosition(s,c,l),this._validatePositionAndContinue(s,l,c)}var h=this._getCenterPosition(i);this.direction.setPosition(this.body.nodes[t],h,e)}}},{key:"_validatePositionAndContinue",value:function(t,e,n){if(this.hierarchical.isTree){if(void 0!==this.lastNodeOnLevel[e]){var r=this.direction.getPosition(this.body.nodes[this.lastNodeOnLevel[e]]);if(n-rt}),"from",t)}(n),this.hierarchical.setMinLevelToZero(this.body.nodes)}},{key:"_generateMap",value:function(){var t=this;this._crawlNetwork((function(e,n){t.hierarchical.levels[n.id]>t.hierarchical.levels[e.id]&&t.hierarchical.addRelation(e.id,n.id)})),this.hierarchical.checkIfTree()}},{key:"_crawlNetwork",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},n=arguments.length>1?arguments[1]:void 0,r={},i=function n(i,o){if(void 0===r[i.id]){var a;t.hierarchical.setTreeIndex(i,o),r[i.id]=!0;for(var s=t._getActiveEdges(i),l=0;l=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function lT(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&!1!==this.options.deleteNode||0===n&&!1!==this.options.deleteEdge)&&(!0===a&&this._createSeperator(4),this._createDeleteButton(o)),this._bindElementEvents(this.closeDiv,Ur(t=this.toggleEditMode).call(t,this)),this._temporaryBindEvent("select",Ur(e=this.showManipulatorToolbar).call(e,this))}this.body.emitter.emit("_redraw")}},{key:"addNodeMode",value:function(){var t;if(!0!==this.editMode&&this.enableEditMode(),this._clean(),this.inMode="addNode",!0===this.guiEnabled){var e,n=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(n),this._createSeperator(),this._createDescription(n.addDescription||this.options.locales.en.addDescription),this._bindElementEvents(this.closeDiv,Ur(e=this.toggleEditMode).call(e,this))}this._temporaryBindEvent("click",Ur(t=this._performAddNode).call(t,this))}},{key:"editNode",value:function(){var t=this;!0!==this.editMode&&this.enableEditMode(),this._clean();var e=this.selectionHandler.getSelectedNodes()[0];if(void 0!==e){if(this.inMode="editNode","function"!=typeof this.options.editNode)throw new Error("No function has been configured to handle the editing of nodes.");if(!0!==e.isCluster){var n=zm({},e.options,!1);if(n.x=e.x,n.y=e.y,2!==this.options.editNode.length)throw new Error("The function for edit does not support two arguments (data, callback)");this.options.editNode(n,(function(e){null!=e&&"editNode"===t.inMode&&t.body.data.nodes.getDataSet().update(e),t.showManipulatorToolbar()}))}else alert(this.options.locales[this.options.locale].editClusterError||this.options.locales.en.editClusterError)}else this.showManipulatorToolbar()}},{key:"addEdgeMode",value:function(){var t,e,n,r,i;if(!0!==this.editMode&&this.enableEditMode(),this._clean(),this.inMode="addEdge",!0===this.guiEnabled){var o,a=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(a),this._createSeperator(),this._createDescription(a.edgeDescription||this.options.locales.en.edgeDescription),this._bindElementEvents(this.closeDiv,Ur(o=this.toggleEditMode).call(o,this))}this._temporaryBindUI("onTouch",Ur(t=this._handleConnect).call(t,this)),this._temporaryBindUI("onDragEnd",Ur(e=this._finishConnect).call(e,this)),this._temporaryBindUI("onDrag",Ur(n=this._dragControlNode).call(n,this)),this._temporaryBindUI("onRelease",Ur(r=this._finishConnect).call(r,this)),this._temporaryBindUI("onDragStart",Ur(i=this._dragStartEdge).call(i,this)),this._temporaryBindUI("onHold",(function(){}))}},{key:"editEdgeMode",value:function(){if(!0!==this.editMode&&this.enableEditMode(),this._clean(),this.inMode="editEdge","object"!==yd(this.options.editEdge)||"function"!=typeof this.options.editEdge.editWithoutDrag||(this.edgeBeingEditedId=this.selectionHandler.getSelectedEdgeIds()[0],void 0===this.edgeBeingEditedId)){if(!0===this.guiEnabled){var t,e=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(e),this._createSeperator(),this._createDescription(e.editEdgeDescription||this.options.locales.en.editEdgeDescription),this._bindElementEvents(this.closeDiv,Ur(t=this.toggleEditMode).call(t,this))}if(this.edgeBeingEditedId=this.selectionHandler.getSelectedEdgeIds()[0],void 0!==this.edgeBeingEditedId){var n,r,i,o,a=this.body.edges[this.edgeBeingEditedId],s=this._getNewTargetNode(a.from.x,a.from.y),l=this._getNewTargetNode(a.to.x,a.to.y);this.temporaryIds.nodes.push(s.id),this.temporaryIds.nodes.push(l.id),this.body.nodes[s.id]=s,this.body.nodeIndices.push(s.id),this.body.nodes[l.id]=l,this.body.nodeIndices.push(l.id),this._temporaryBindUI("onTouch",Ur(n=this._controlNodeTouch).call(n,this)),this._temporaryBindUI("onTap",(function(){})),this._temporaryBindUI("onHold",(function(){})),this._temporaryBindUI("onDragStart",Ur(r=this._controlNodeDragStart).call(r,this)),this._temporaryBindUI("onDrag",Ur(i=this._controlNodeDrag).call(i,this)),this._temporaryBindUI("onDragEnd",Ur(o=this._controlNodeDragEnd).call(o,this)),this._temporaryBindUI("onMouseMove",(function(){})),this._temporaryBindEvent("beforeDrawing",(function(t){var e=a.edgeType.findBorderPositions(t);!1===s.selected&&(s.x=e.from.x,s.y=e.from.y),!1===l.selected&&(l.x=e.to.x,l.y=e.to.y)})),this.body.emitter.emit("_redraw")}else this.showManipulatorToolbar()}else{var u=this.body.edges[this.edgeBeingEditedId];this._performEditEdge(u.from.id,u.to.id)}}},{key:"deleteSelected",value:function(){var t=this;!0!==this.editMode&&this.enableEditMode(),this._clean(),this.inMode="delete";var e=this.selectionHandler.getSelectedNodeIds(),n=this.selectionHandler.getSelectedEdgeIds(),r=void 0;if(e.length>0){for(var i=0;i0&&"function"==typeof this.options.deleteEdge&&(r=this.options.deleteEdge);if("function"==typeof r){var o={nodes:e,edges:n};if(2!==r.length)throw new Error("The function for delete does not support two arguments (data, callback)");r(o,(function(e){null!=e&&"delete"===t.inMode?(t.body.data.edges.getDataSet().remove(e.edges),t.body.data.nodes.getDataSet().remove(e.nodes),t.body.emitter.emit("startSimulation"),t.showManipulatorToolbar()):(t.body.emitter.emit("startSimulation"),t.showManipulatorToolbar())}))}else this.body.data.edges.getDataSet().remove(n),this.body.data.nodes.getDataSet().remove(e),this.body.emitter.emit("startSimulation"),this.showManipulatorToolbar()}},{key:"_setup",value:function(){!0===this.options.enabled?(this.guiEnabled=!0,this._createWrappers(),!1===this.editMode?this._createEditButton():this.showManipulatorToolbar()):(this._removeManipulationDOM(),this.guiEnabled=!1)}},{key:"_createWrappers",value:function(){var t,e;void 0===this.manipulationDiv&&(this.manipulationDiv=document.createElement("div"),this.manipulationDiv.className="vis-manipulation",!0===this.editMode?this.manipulationDiv.style.display="block":this.manipulationDiv.style.display="none",this.canvas.frame.appendChild(this.manipulationDiv)),void 0===this.editModeDiv&&(this.editModeDiv=document.createElement("div"),this.editModeDiv.className="vis-edit-mode",!0===this.editMode?this.editModeDiv.style.display="none":this.editModeDiv.style.display="block",this.canvas.frame.appendChild(this.editModeDiv)),void 0===this.closeDiv&&(this.closeDiv=document.createElement("button"),this.closeDiv.className="vis-close",this.closeDiv.setAttribute("aria-label",null!==(t=null===(e=this.options.locales[this.options.locale])||void 0===e?void 0:e.close)&&void 0!==t?t:this.options.locales.en.close),this.closeDiv.style.display=this.manipulationDiv.style.display,this.canvas.frame.appendChild(this.closeDiv))}},{key:"_getNewTargetNode",value:function(t,e){var n=zm({},this.options.controlNodeStyle);n.id="targetNode"+mS(),n.hidden=!1,n.physics=!1,n.x=t,n.y=e;var r=this.body.functions.createNode(n);return r.shape.boundingBox={left:t,right:t,top:e,bottom:e},r}},{key:"_createEditButton",value:function(){var t;this._clean(),this.manipulationDOM={},Im(this.editModeDiv);var e=this.options.locales[this.options.locale],n=this._createButton("editMode","vis-edit vis-edit-mode",e.edit||this.options.locales.en.edit);this.editModeDiv.appendChild(n),this._bindElementEvents(n,Ur(t=this.toggleEditMode).call(t,this))}},{key:"_clean",value:function(){this.inMode=!1,!0===this.guiEnabled&&(Im(this.editModeDiv),Im(this.manipulationDiv),this._cleanupDOMEventListeners()),this._cleanupTemporaryNodesAndEdges(),this._unbindTemporaryUIs(),this._unbindTemporaryEvents(),this.body.emitter.emit("restorePhysics")}},{key:"_cleanupDOMEventListeners",value:function(){var t,e,n=sT(jp(t=this._domEventListenerCleanupQueue).call(t,0));try{for(n.s();!(e=n.n()).done;)(0,e.value)()}catch(t){n.e(t)}finally{n.f()}}},{key:"_removeManipulationDOM",value:function(){this._clean(),Im(this.manipulationDiv),Im(this.editModeDiv),Im(this.closeDiv),this.manipulationDiv&&this.canvas.frame.removeChild(this.manipulationDiv),this.editModeDiv&&this.canvas.frame.removeChild(this.editModeDiv),this.closeDiv&&this.canvas.frame.removeChild(this.closeDiv),this.manipulationDiv=void 0,this.editModeDiv=void 0,this.closeDiv=void 0}},{key:"_createSeperator",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.manipulationDOM["seperatorLineDiv"+t]=document.createElement("div"),this.manipulationDOM["seperatorLineDiv"+t].className="vis-separator-line",this.manipulationDiv.appendChild(this.manipulationDOM["seperatorLineDiv"+t])}},{key:"_createAddNodeButton",value:function(t){var e,n=this._createButton("addNode","vis-add",t.addNode||this.options.locales.en.addNode);this.manipulationDiv.appendChild(n),this._bindElementEvents(n,Ur(e=this.addNodeMode).call(e,this))}},{key:"_createAddEdgeButton",value:function(t){var e,n=this._createButton("addEdge","vis-connect",t.addEdge||this.options.locales.en.addEdge);this.manipulationDiv.appendChild(n),this._bindElementEvents(n,Ur(e=this.addEdgeMode).call(e,this))}},{key:"_createEditNodeButton",value:function(t){var e,n=this._createButton("editNode","vis-edit",t.editNode||this.options.locales.en.editNode);this.manipulationDiv.appendChild(n),this._bindElementEvents(n,Ur(e=this.editNode).call(e,this))}},{key:"_createEditEdgeButton",value:function(t){var e,n=this._createButton("editEdge","vis-edit",t.editEdge||this.options.locales.en.editEdge);this.manipulationDiv.appendChild(n),this._bindElementEvents(n,Ur(e=this.editEdgeMode).call(e,this))}},{key:"_createDeleteButton",value:function(t){var e,n;n=this.options.rtl?"vis-delete-rtl":"vis-delete";var r=this._createButton("delete",n,t.del||this.options.locales.en.del);this.manipulationDiv.appendChild(r),this._bindElementEvents(r,Ur(e=this.deleteSelected).call(e,this))}},{key:"_createBackButton",value:function(t){var e,n=this._createButton("back","vis-back",t.back||this.options.locales.en.back);this.manipulationDiv.appendChild(n),this._bindElementEvents(n,Ur(e=this.showManipulatorToolbar).call(e,this))}},{key:"_createButton",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"vis-label";return this.manipulationDOM[t+"Div"]=document.createElement("button"),this.manipulationDOM[t+"Div"].className="vis-button "+e,this.manipulationDOM[t+"Label"]=document.createElement("div"),this.manipulationDOM[t+"Label"].className=r,this.manipulationDOM[t+"Label"].innerText=n,this.manipulationDOM[t+"Div"].appendChild(this.manipulationDOM[t+"Label"]),this.manipulationDOM[t+"Div"]}},{key:"_createDescription",value:function(t){this.manipulationDOM.descriptionLabel=document.createElement("div"),this.manipulationDOM.descriptionLabel.className="vis-none",this.manipulationDOM.descriptionLabel.innerText=t,this.manipulationDiv.appendChild(this.manipulationDOM.descriptionLabel)}},{key:"_temporaryBindEvent",value:function(t,e){this.temporaryEventFunctions.push({event:t,boundFunction:e}),this.body.emitter.on(t,e)}},{key:"_temporaryBindUI",value:function(t,e){if(void 0===this.body.eventListeners[t])throw new Error("This UI function does not exist. Typo? You tried: "+t+" possible are: "+Kv(Mf(this.body.eventListeners)));this.temporaryUIFunctions[t]=this.body.eventListeners[t],this.body.eventListeners[t]=e}},{key:"_unbindTemporaryUIs",value:function(){for(var t in this.temporaryUIFunctions)Object.prototype.hasOwnProperty.call(this.temporaryUIFunctions,t)&&(this.body.eventListeners[t]=this.temporaryUIFunctions[t],delete this.temporaryUIFunctions[t]);this.temporaryUIFunctions={}}},{key:"_unbindTemporaryEvents",value:function(){for(var t=0;t=0;a--)if(i[a]!==this.selectedControlNode.id){o=this.body.nodes[i[a]];break}if(void 0!==o&&void 0!==this.selectedControlNode)if(!0===o.isCluster)alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError);else{var s=this.body.nodes[this.temporaryIds.nodes[0]];this.selectedControlNode.id===s.id?this._performEditEdge(o.id,r.to.id):this._performEditEdge(r.from.id,o.id)}else r.updateEdgeType(),this.body.emitter.emit("restorePhysics");this.body.emitter.emit("_redraw")}}},{key:"_handleConnect",value:function(t){if((new Date).valueOf()-this.touchTime>100){this.lastTouch=this.body.functions.getPointer(t.center),this.lastTouch.translation=xr({},this.body.view.translation),this.interactionHandler.drag.pointer=this.lastTouch,this.interactionHandler.drag.translation=this.lastTouch.translation;var e=this.lastTouch,n=this.selectionHandler.getNodeAt(e);if(void 0!==n)if(!0===n.isCluster)alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError);else{var r=this._getNewTargetNode(n.x,n.y);this.body.nodes[r.id]=r,this.body.nodeIndices.push(r.id);var i=this.body.functions.createEdge({id:"connectionEdge"+mS(),from:n.id,to:r.id,physics:!1,smooth:{enabled:!0,type:"continuous",roundness:.5}});this.body.edges[i.id]=i,this.body.edgeIndices.push(i.id),this.temporaryIds.nodes.push(r.id),this.temporaryIds.edges.push(i.id)}this.touchTime=(new Date).valueOf()}}},{key:"_dragControlNode",value:function(t){var e=this.body.functions.getPointer(t.center),n=this.selectionHandler._pointerToPositionObject(e),r=void 0;void 0!==this.temporaryIds.edges[0]&&(r=this.body.edges[this.temporaryIds.edges[0]].fromId);for(var i=this.selectionHandler._getAllNodesOverlappingWith(n),o=void 0,a=i.length-1;a>=0;a--){var s;if(-1===Uv(s=this.temporaryIds.nodes).call(s,i[a])){o=this.body.nodes[i[a]];break}}if(t.controlEdge={from:r,to:o?o.id:void 0},this.selectionHandler.generateClickEvent("controlNodeDragging",t,e),void 0!==this.temporaryIds.nodes[0]){var l=this.body.nodes[this.temporaryIds.nodes[0]];l.x=this.canvas._XconvertDOMtoCanvas(e.x),l.y=this.canvas._YconvertDOMtoCanvas(e.y),this.body.emitter.emit("_redraw")}else this.interactionHandler.onDrag(t)}},{key:"_finishConnect",value:function(t){var e=this.body.functions.getPointer(t.center),n=this.selectionHandler._pointerToPositionObject(e),r=void 0;void 0!==this.temporaryIds.edges[0]&&(r=this.body.edges[this.temporaryIds.edges[0]].fromId);for(var i=this.selectionHandler._getAllNodesOverlappingWith(n),o=void 0,a=i.length-1;a>=0;a--){var s;if(-1===Uv(s=this.temporaryIds.nodes).call(s,i[a])){o=this.body.nodes[i[a]];break}}this._cleanupTemporaryNodesAndEdges(),void 0!==o&&(!0===o.isCluster?alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError):void 0!==this.body.nodes[r]&&void 0!==this.body.nodes[o.id]&&this._performAddEdge(r,o.id)),t.controlEdge={from:r,to:o?o.id:void 0},this.selectionHandler.generateClickEvent("controlNodeDragEnd",t,e),this.body.emitter.emit("_redraw")}},{key:"_dragStartEdge",value:function(t){var e=this.lastTouch;this.selectionHandler.generateClickEvent("dragStart",t,e,void 0,!0)}},{key:"_performAddNode",value:function(t){var e=this,n={id:mS(),x:t.pointer.canvas.x,y:t.pointer.canvas.y,label:"new"};if("function"==typeof this.options.addNode){if(2!==this.options.addNode.length)throw this.showManipulatorToolbar(),new Error("The function for add does not support two arguments (data,callback)");this.options.addNode(n,(function(t){null!=t&&"addNode"===e.inMode&&e.body.data.nodes.getDataSet().add(t),e.showManipulatorToolbar()}))}else this.body.data.nodes.getDataSet().add(n),this.showManipulatorToolbar()}},{key:"_performAddEdge",value:function(t,e){var n=this,r={from:t,to:e};if("function"==typeof this.options.addEdge){if(2!==this.options.addEdge.length)throw new Error("The function for connect does not support two arguments (data,callback)");this.options.addEdge(r,(function(t){null!=t&&"addEdge"===n.inMode&&(n.body.data.edges.getDataSet().add(t),n.selectionHandler.unselectAll(),n.showManipulatorToolbar())}))}else this.body.data.edges.getDataSet().add(r),this.selectionHandler.unselectAll(),this.showManipulatorToolbar()}},{key:"_performEditEdge",value:function(t,e){var n=this,r={id:this.edgeBeingEditedId,from:t,to:e,label:this.body.data.edges.get(this.edgeBeingEditedId).label},i=this.options.editEdge;if("object"===yd(i)&&(i=i.editWithoutDrag),"function"==typeof i){if(2!==i.length)throw new Error("The function for edit does not support two arguments (data, callback)");i(r,(function(t){null==t||"editEdge"!==n.inMode?(n.body.edges[r.id].updateEdgeType(),n.body.emitter.emit("_redraw"),n.showManipulatorToolbar()):(n.body.data.edges.getDataSet().update(t),n.selectionHandler.unselectAll(),n.showManipulatorToolbar())}))}else this.body.data.edges.getDataSet().update(r),this.selectionHandler.unselectAll(),this.showManipulatorToolbar()}}]),t}(),cT="string",hT="boolean",dT="number",fT="array",pT="object",vT=["arrow","bar","box","circle","crow","curve","diamond","image","inv_curve","inv_triangle","triangle","vee"],yT={borderWidth:{number:dT},borderWidthSelected:{number:dT,undefined:"undefined"},brokenImage:{string:cT,undefined:"undefined"},chosen:{label:{boolean:hT,function:"function"},node:{boolean:hT,function:"function"},__type__:{object:pT,boolean:hT}},color:{border:{string:cT},background:{string:cT},highlight:{border:{string:cT},background:{string:cT},__type__:{object:pT,string:cT}},hover:{border:{string:cT},background:{string:cT},__type__:{object:pT,string:cT}},__type__:{object:pT,string:cT}},opacity:{number:dT,undefined:"undefined"},fixed:{x:{boolean:hT},y:{boolean:hT},__type__:{object:pT,boolean:hT}},font:{align:{string:cT},color:{string:cT},size:{number:dT},face:{string:cT},background:{string:cT},strokeWidth:{number:dT},strokeColor:{string:cT},vadjust:{number:dT},multi:{boolean:hT,string:cT},bold:{color:{string:cT},size:{number:dT},face:{string:cT},mod:{string:cT},vadjust:{number:dT},__type__:{object:pT,string:cT}},boldital:{color:{string:cT},size:{number:dT},face:{string:cT},mod:{string:cT},vadjust:{number:dT},__type__:{object:pT,string:cT}},ital:{color:{string:cT},size:{number:dT},face:{string:cT},mod:{string:cT},vadjust:{number:dT},__type__:{object:pT,string:cT}},mono:{color:{string:cT},size:{number:dT},face:{string:cT},mod:{string:cT},vadjust:{number:dT},__type__:{object:pT,string:cT}},__type__:{object:pT,string:cT}},group:{string:cT,number:dT,undefined:"undefined"},heightConstraint:{minimum:{number:dT},valign:{string:cT},__type__:{object:pT,boolean:hT,number:dT}},hidden:{boolean:hT},icon:{face:{string:cT},code:{string:cT},size:{number:dT},color:{string:cT},weight:{string:cT,number:dT},__type__:{object:pT}},id:{string:cT,number:dT},image:{selected:{string:cT,undefined:"undefined"},unselected:{string:cT,undefined:"undefined"},__type__:{object:pT,string:cT}},imagePadding:{top:{number:dT},right:{number:dT},bottom:{number:dT},left:{number:dT},__type__:{object:pT,number:dT}},label:{string:cT,undefined:"undefined"},labelHighlightBold:{boolean:hT},level:{number:dT,undefined:"undefined"},margin:{top:{number:dT},right:{number:dT},bottom:{number:dT},left:{number:dT},__type__:{object:pT,number:dT}},mass:{number:dT},physics:{boolean:hT},scaling:{min:{number:dT},max:{number:dT},label:{enabled:{boolean:hT},min:{number:dT},max:{number:dT},maxVisible:{number:dT},drawThreshold:{number:dT},__type__:{object:pT,boolean:hT}},customScalingFunction:{function:"function"},__type__:{object:pT}},shadow:{enabled:{boolean:hT},color:{string:cT},size:{number:dT},x:{number:dT},y:{number:dT},__type__:{object:pT,boolean:hT}},shape:{string:["custom","ellipse","circle","database","box","text","image","circularImage","diamond","dot","star","triangle","triangleDown","square","icon","hexagon"]},ctxRenderer:{function:"function"},shapeProperties:{borderDashes:{boolean:hT,array:fT},borderRadius:{number:dT},interpolation:{boolean:hT},useImageSize:{boolean:hT},useBorderWithImage:{boolean:hT},coordinateOrigin:{string:["center","top-left"]},__type__:{object:pT}},size:{number:dT},title:{string:cT,dom:"dom",undefined:"undefined"},value:{number:dT,undefined:"undefined"},widthConstraint:{minimum:{number:dT},maximum:{number:dT},__type__:{object:pT,boolean:hT,number:dT}},x:{number:dT},y:{number:dT},__type__:{object:pT}},gT={configure:{enabled:{boolean:hT},filter:{boolean:hT,string:cT,array:fT,function:"function"},container:{dom:"dom"},showButton:{boolean:hT},__type__:{object:pT,boolean:hT,string:cT,array:fT,function:"function"}},edges:{arrows:{to:{enabled:{boolean:hT},scaleFactor:{number:dT},type:{string:vT},imageHeight:{number:dT},imageWidth:{number:dT},src:{string:cT},__type__:{object:pT,boolean:hT}},middle:{enabled:{boolean:hT},scaleFactor:{number:dT},type:{string:vT},imageWidth:{number:dT},imageHeight:{number:dT},src:{string:cT},__type__:{object:pT,boolean:hT}},from:{enabled:{boolean:hT},scaleFactor:{number:dT},type:{string:vT},imageWidth:{number:dT},imageHeight:{number:dT},src:{string:cT},__type__:{object:pT,boolean:hT}},__type__:{string:["from","to","middle"],object:pT}},endPointOffset:{from:{number:dT},to:{number:dT},__type__:{object:pT,number:dT}},arrowStrikethrough:{boolean:hT},background:{enabled:{boolean:hT},color:{string:cT},size:{number:dT},dashes:{boolean:hT,array:fT},__type__:{object:pT,boolean:hT}},chosen:{label:{boolean:hT,function:"function"},edge:{boolean:hT,function:"function"},__type__:{object:pT,boolean:hT}},color:{color:{string:cT},highlight:{string:cT},hover:{string:cT},inherit:{string:["from","to","both"],boolean:hT},opacity:{number:dT},__type__:{object:pT,string:cT}},dashes:{boolean:hT,array:fT},font:{color:{string:cT},size:{number:dT},face:{string:cT},background:{string:cT},strokeWidth:{number:dT},strokeColor:{string:cT},align:{string:["horizontal","top","middle","bottom"]},vadjust:{number:dT},multi:{boolean:hT,string:cT},bold:{color:{string:cT},size:{number:dT},face:{string:cT},mod:{string:cT},vadjust:{number:dT},__type__:{object:pT,string:cT}},boldital:{color:{string:cT},size:{number:dT},face:{string:cT},mod:{string:cT},vadjust:{number:dT},__type__:{object:pT,string:cT}},ital:{color:{string:cT},size:{number:dT},face:{string:cT},mod:{string:cT},vadjust:{number:dT},__type__:{object:pT,string:cT}},mono:{color:{string:cT},size:{number:dT},face:{string:cT},mod:{string:cT},vadjust:{number:dT},__type__:{object:pT,string:cT}},__type__:{object:pT,string:cT}},hidden:{boolean:hT},hoverWidth:{function:"function",number:dT},label:{string:cT,undefined:"undefined"},labelHighlightBold:{boolean:hT},length:{number:dT,undefined:"undefined"},physics:{boolean:hT},scaling:{min:{number:dT},max:{number:dT},label:{enabled:{boolean:hT},min:{number:dT},max:{number:dT},maxVisible:{number:dT},drawThreshold:{number:dT},__type__:{object:pT,boolean:hT}},customScalingFunction:{function:"function"},__type__:{object:pT}},selectionWidth:{function:"function",number:dT},selfReferenceSize:{number:dT},selfReference:{size:{number:dT},angle:{number:dT},renderBehindTheNode:{boolean:hT},__type__:{object:pT}},shadow:{enabled:{boolean:hT},color:{string:cT},size:{number:dT},x:{number:dT},y:{number:dT},__type__:{object:pT,boolean:hT}},smooth:{enabled:{boolean:hT},type:{string:["dynamic","continuous","discrete","diagonalCross","straightCross","horizontal","vertical","curvedCW","curvedCCW","cubicBezier"]},roundness:{number:dT},forceDirection:{string:["horizontal","vertical","none"],boolean:hT},__type__:{object:pT,boolean:hT}},title:{string:cT,undefined:"undefined"},width:{number:dT},widthConstraint:{maximum:{number:dT},__type__:{object:pT,boolean:hT,number:dT}},value:{number:dT,undefined:"undefined"},__type__:{object:pT}},groups:{useDefaultGroups:{boolean:hT},__any__:yT,__type__:{object:pT}},interaction:{dragNodes:{boolean:hT},dragView:{boolean:hT},hideEdgesOnDrag:{boolean:hT},hideEdgesOnZoom:{boolean:hT},hideNodesOnDrag:{boolean:hT},hover:{boolean:hT},keyboard:{enabled:{boolean:hT},speed:{x:{number:dT},y:{number:dT},zoom:{number:dT},__type__:{object:pT}},bindToWindow:{boolean:hT},autoFocus:{boolean:hT},__type__:{object:pT,boolean:hT}},multiselect:{boolean:hT},navigationButtons:{boolean:hT},selectable:{boolean:hT},selectConnectedEdges:{boolean:hT},hoverConnectedEdges:{boolean:hT},tooltipDelay:{number:dT},zoomView:{boolean:hT},zoomSpeed:{number:dT},__type__:{object:pT}},layout:{randomSeed:{undefined:"undefined",number:dT,string:cT},improvedLayout:{boolean:hT},clusterThreshold:{number:dT},hierarchical:{enabled:{boolean:hT},levelSeparation:{number:dT},nodeSpacing:{number:dT},treeSpacing:{number:dT},blockShifting:{boolean:hT},edgeMinimization:{boolean:hT},parentCentralization:{boolean:hT},direction:{string:["UD","DU","LR","RL"]},sortMethod:{string:["hubsize","directed"]},shakeTowards:{string:["leaves","roots"]},__type__:{object:pT,boolean:hT}},__type__:{object:pT}},manipulation:{enabled:{boolean:hT},initiallyActive:{boolean:hT},addNode:{boolean:hT,function:"function"},addEdge:{boolean:hT,function:"function"},editNode:{function:"function"},editEdge:{editWithoutDrag:{function:"function"},__type__:{object:pT,boolean:hT,function:"function"}},deleteNode:{boolean:hT,function:"function"},deleteEdge:{boolean:hT,function:"function"},controlNodeStyle:yT,__type__:{object:pT,boolean:hT}},nodes:yT,physics:{enabled:{boolean:hT},barnesHut:{theta:{number:dT},gravitationalConstant:{number:dT},centralGravity:{number:dT},springLength:{number:dT},springConstant:{number:dT},damping:{number:dT},avoidOverlap:{number:dT},__type__:{object:pT}},forceAtlas2Based:{theta:{number:dT},gravitationalConstant:{number:dT},centralGravity:{number:dT},springLength:{number:dT},springConstant:{number:dT},damping:{number:dT},avoidOverlap:{number:dT},__type__:{object:pT}},repulsion:{centralGravity:{number:dT},springLength:{number:dT},springConstant:{number:dT},nodeDistance:{number:dT},damping:{number:dT},__type__:{object:pT}},hierarchicalRepulsion:{centralGravity:{number:dT},springLength:{number:dT},springConstant:{number:dT},nodeDistance:{number:dT},damping:{number:dT},avoidOverlap:{number:dT},__type__:{object:pT}},maxVelocity:{number:dT},minVelocity:{number:dT},solver:{string:["barnesHut","repulsion","hierarchicalRepulsion","forceAtlas2Based"]},stabilization:{enabled:{boolean:hT},iterations:{number:dT},updateInterval:{number:dT},onlyDynamicEdges:{boolean:hT},fit:{boolean:hT},__type__:{object:pT,boolean:hT}},timestep:{number:dT},adaptiveTimestep:{boolean:hT},wind:{x:{number:dT},y:{number:dT},__type__:{object:pT}},__type__:{object:pT,boolean:hT}},autoResize:{boolean:hT},clickToUse:{boolean:hT},locale:{string:cT},locales:{__any__:{any:"any"},__type__:{object:pT}},height:{string:cT},width:{string:cT},__type__:{object:pT}},mT={nodes:{borderWidth:[1,0,10,1],borderWidthSelected:[2,0,10,1],color:{border:["color","#2B7CE9"],background:["color","#97C2FC"],highlight:{border:["color","#2B7CE9"],background:["color","#D2E5FF"]},hover:{border:["color","#2B7CE9"],background:["color","#D2E5FF"]}},opacity:[0,0,1,.1],fixed:{x:!1,y:!1},font:{color:["color","#343434"],size:[14,0,100,1],face:["arial","verdana","tahoma"],background:["color","none"],strokeWidth:[0,0,50,1],strokeColor:["color","#ffffff"]},hidden:!1,labelHighlightBold:!0,physics:!0,scaling:{min:[10,0,200,1],max:[30,0,200,1],label:{enabled:!1,min:[14,0,200,1],max:[30,0,200,1],maxVisible:[30,0,200,1],drawThreshold:[5,0,20,1]}},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:[10,0,20,1],x:[5,-30,30,1],y:[5,-30,30,1]},shape:["ellipse","box","circle","database","diamond","dot","square","star","text","triangle","triangleDown","hexagon"],shapeProperties:{borderDashes:!1,borderRadius:[6,0,20,1],interpolation:!0,useImageSize:!1},size:[25,0,200,1]},edges:{arrows:{to:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"},middle:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"},from:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"}},endPointOffset:{from:[0,-10,10,1],to:[0,-10,10,1]},arrowStrikethrough:!0,color:{color:["color","#848484"],highlight:["color","#848484"],hover:["color","#848484"],inherit:["from","to","both",!0,!1],opacity:[1,0,1,.05]},dashes:!1,font:{color:["color","#343434"],size:[14,0,100,1],face:["arial","verdana","tahoma"],background:["color","none"],strokeWidth:[2,0,50,1],strokeColor:["color","#ffffff"],align:["horizontal","top","middle","bottom"]},hidden:!1,hoverWidth:[1.5,0,5,.1],labelHighlightBold:!0,physics:!0,scaling:{min:[1,0,100,1],max:[15,0,100,1],label:{enabled:!0,min:[14,0,200,1],max:[30,0,200,1],maxVisible:[30,0,200,1],drawThreshold:[5,0,20,1]}},selectionWidth:[1.5,0,5,.1],selfReferenceSize:[20,0,200,1],selfReference:{size:[20,0,200,1],angle:[Math.PI/2,-6*Math.PI,6*Math.PI,Math.PI/8],renderBehindTheNode:!0},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:[10,0,20,1],x:[5,-30,30,1],y:[5,-30,30,1]},smooth:{enabled:!0,type:["dynamic","continuous","discrete","diagonalCross","straightCross","horizontal","vertical","curvedCW","curvedCCW","cubicBezier"],forceDirection:["horizontal","vertical","none"],roundness:[.5,0,1,.05]},width:[1,0,30,1]},layout:{hierarchical:{enabled:!1,levelSeparation:[150,20,500,5],nodeSpacing:[100,20,500,5],treeSpacing:[200,20,500,5],blockShifting:!0,edgeMinimization:!0,parentCentralization:!0,direction:["UD","DU","LR","RL"],sortMethod:["hubsize","directed"],shakeTowards:["leaves","roots"]}},interaction:{dragNodes:!0,dragView:!0,hideEdgesOnDrag:!1,hideEdgesOnZoom:!1,hideNodesOnDrag:!1,hover:!1,keyboard:{enabled:!1,speed:{x:[10,0,40,1],y:[10,0,40,1],zoom:[.02,0,.1,.005]},bindToWindow:!0,autoFocus:!0},multiselect:!1,navigationButtons:!1,selectable:!0,selectConnectedEdges:!0,hoverConnectedEdges:!0,tooltipDelay:[300,0,1e3,25],zoomView:!0,zoomSpeed:[1,.1,2,.1]},manipulation:{enabled:!1,initiallyActive:!1},physics:{enabled:!0,barnesHut:{theta:[.5,.1,1,.05],gravitationalConstant:[-2e3,-3e4,0,50],centralGravity:[.3,0,10,.05],springLength:[95,0,500,5],springConstant:[.04,0,1.2,.005],damping:[.09,0,1,.01],avoidOverlap:[0,0,1,.01]},forceAtlas2Based:{theta:[.5,.1,1,.05],gravitationalConstant:[-50,-500,0,1],centralGravity:[.01,0,1,.005],springLength:[95,0,500,5],springConstant:[.08,0,1.2,.005],damping:[.4,0,1,.01],avoidOverlap:[0,0,1,.01]},repulsion:{centralGravity:[.2,0,10,.05],springLength:[200,0,500,5],springConstant:[.05,0,1.2,.005],nodeDistance:[100,0,500,5],damping:[.09,0,1,.01]},hierarchicalRepulsion:{centralGravity:[.2,0,10,.05],springLength:[100,0,500,5],springConstant:[.01,0,1.2,.005],nodeDistance:[120,0,500,5],damping:[.09,0,1,.01],avoidOverlap:[0,0,1,.01]},maxVelocity:[50,0,150,1],minVelocity:[.1,.01,.5,.01],solver:["barnesHut","forceAtlas2Based","repulsion","hierarchicalRepulsion"],timestep:[.5,.01,1,.01],wind:{x:[0,-10,10,.1],y:[0,-10,10,.1]}}},bT=function(t,e,n){var r;return!(!Jp(t).call(t,"physics")||!Jp(r=mT.physics.solver).call(r,e)||n.physics.solver===e||"wind"===e)},wT=Object.freeze({__proto__:null,allOptions:gT,configuratorHideOption:bT,configureOptions:mT}),xT=function(){function t(){vl(this,t)}return wd(t,[{key:"getDistances",value:function(t,e,n){for(var r={},i=t.edges,o=0;o2&&void 0!==arguments[2]&&arguments[2],r=this.distanceSolver.getDistances(this.body,t,e);this._createL_matrix(r),this._createK_matrix(r),this._createE_matrix();for(var i=0,o=Math.max(1e3,Math.min(10*this.body.nodeIndices.length,6e3)),a=1e9,s=0,l=0,u=0,c=0,h=0;a>.01&&i1&&h<5;){h+=1,this._moveNode(s,l,u);var f=uf(this._getEnergy(s),3);c=f[0],l=f[1],u=f[2]}}}},{key:"_getHighestEnergyNode",value:function(t){for(var e=this.body.nodeIndices,n=this.body.nodes,r=0,i=e[0],o=0,a=0,s=0;st.length)&&(e=t.length);for(var n=0,r=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){l=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw o}}}}function O(){return O=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0&&(e.hash=t.substr(n),t=t.substr(0,n));var r=t.indexOf("?");r>=0&&(e.search=t.substr(r),t=t.substr(0,r)),t&&(e.pathname=t)}return e}function M(e,n,r,i){void 0===i&&(i={});var o=i,a=o.window,s=void 0===a?document.defaultView:a,l=o.v5Compat,u=void 0!==l&&l,c=s.history,h=t.Pop,d=null,f=p();function p(){return(c.state||{idx:null}).idx}function v(){h=t.Pop;var e=p(),n=null==e?null:e-f;f=e,d&&d({action:h,location:g.location,delta:n})}function y(t){var e="null"!==s.location.origin?s.location.origin:s.location.href,n="string"===typeof t?t:A(t);return P(e,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,e)}null==f&&(f=0,c.replaceState(O({},c.state,{idx:f}),""));var g={get action(){return h},get location(){return e(s,c)},listen:function(t){if(d)throw new Error("A history only accepts one active listener");return s.addEventListener(T,v),d=t,function(){s.removeEventListener(T,v),d=null}},createHref:function(t){return n(s,t)},createURL:y,encodeLocation:function(t){var e=y(t);return{pathname:e.pathname,search:e.search,hash:e.hash}},push:function(e,n){h=t.Push;var i=N(g.location,e,n);r&&r(i,e);var o=I(i,f=p()+1),a=g.createHref(i);try{c.pushState(o,"",a)}catch(l){if(l instanceof DOMException&&"DataCloneError"===l.name)throw l;s.location.assign(a)}u&&d&&d({action:h,location:g.location,delta:1})},replace:function(e,n){h=t.Replace;var i=N(g.location,e,n);r&&r(i,e);var o=I(i,f=p()),a=g.createHref(i);c.replaceState(o,"",a),u&&d&&d({action:h,location:g.location,delta:0})},go:function(t){return c.go(t)}};return g}!function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"}(C||(C={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function F(t,e,n){void 0===n&&(n="/");var r=K(("string"===typeof e?D(e):e).pathname||"/",n);if(null==r)return null;var i=R(t);!function(t){t.sort((function(t,e){return t.score!==e.score?e.score-t.score:function(t,e){var n=t.length===e.length&&t.slice(0,-1).every((function(t,n){return t===e[n]}));return n?t[t.length-1]-e[e.length-1]:0}(t.routesMeta.map((function(t){return t.childrenIndex})),e.routesMeta.map((function(t){return t.childrenIndex})))}))}(i);for(var o=null,a=0;null==o&&a0&&(P(!0!==t.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),R(t.children,e,l,s)),(null!=t.path||t.index)&&e.push({path:s,score:G(s,t.index),routesMeta:l})};return t.forEach((function(t,e){var n;if(""!==t.path&&null!=(n=t.path)&&n.includes("?")){var r,o=S(z(t.path));try{for(o.s();!(r=o.n()).done;){var a=r.value;i(t,e,a)}}catch(s){o.e(s)}finally{o.f()}}else i(t,e)})),e}function z(t){var e=t.split("/");if(0===e.length)return[];var n,r=o(n=e)||c(n)||s(n)||l(),i=r[0],a=r.slice(1),u=i.endsWith("?"),d=i.replace(/\?$/,"");if(0===a.length)return u?[d,""]:[d];var f=z(a.join("/")),p=[];return p.push.apply(p,h(f.map((function(t){return""===t?d:[d,t].join("/")})))),u&&p.push.apply(p,h(f)),p.map((function(e){return t.startsWith("/")&&""===e?"/":e}))}var L=/^:\w+$/,B=3,W=2,H=1,U=10,V=-2,q=function(t){return"*"===t};function G(t,e){var n=t.split("/"),r=n.length;return n.some(q)&&(r+=V),e&&(r+=W),n.filter((function(t){return!q(t)})).reduce((function(t,e){return t+(L.test(e)?B:""===e?H:U)}),r)}function Y(t,e){for(var n=t.routesMeta,r={},i="/",o=[],a=0;a and the router will parse it for you.'}function J(t){return t.filter((function(t,e){return 0===e||t.route.path&&t.route.path.length>0}))}function Z(t,e,n,r){var i;void 0===r&&(r=!1),"string"===typeof t?i=D(t):(P(!(i=O({},t)).pathname||!i.pathname.includes("?"),Q("?","pathname","search",i)),P(!i.pathname||!i.pathname.includes("#"),Q("#","pathname","hash",i)),P(!i.search||!i.search.includes("#"),Q("#","search","hash",i)));var o,a=""===t||""===i.pathname,s=a?"/":i.pathname;if(r||null==s)o=n;else{var l=e.length-1;if(s.startsWith("..")){for(var u=s.split("/");".."===u[0];)u.shift(),l-=1;i.pathname=u.join("/")}o=l>=0?e[l]:"/"}var c=function(t,e){void 0===e&&(e="/");var n="string"===typeof t?D(t):t,r=n.pathname,i=n.search,o=void 0===i?"":i,a=n.hash,s=void 0===a?"":a,l=r?r.startsWith("/")?r:function(t,e){var n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach((function(t){".."===t?n.length>1&&n.pop():"."!==t&&n.push(t)})),n.length>1?n.join("/"):"/"}(r,e):e;return{pathname:l,search:nt(o),hash:rt(s)}}(i,o),h=s&&"/"!==s&&s.endsWith("/"),d=(a||"."===s)&&n.endsWith("/");return c.pathname.endsWith("/")||!h&&!d||(c.pathname+="/"),c}var tt=function(t){return t.join("/").replace(/\/\/+/g,"/")},et=function(t){return t.replace(/\/+$/,"").replace(/^\/*/,"/")},nt=function(t){return t&&"?"!==t?t.startsWith("?")?t:"?"+t:""},rt=function(t){return t&&"#"!==t?t.startsWith("#")?t:"#"+t:""},it=function(t){m(n,t);var e=k(n);function n(){return d(this,n),e.apply(this,arguments)}return y(n)}(E(Error));function ot(t){return null!=t&&"number"===typeof t.status&&"string"===typeof t.statusText&&"boolean"===typeof t.internal&&"data"in t}var at=["post","put","patch","delete"],st=(new Set(at),["get"].concat(at));new Set(st),new Set([301,302,303,307,308]),new Set([307,308]);Symbol("deferred");function lt(){return lt=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0||P(!1),a=a.slice(0,Math.min(a.length,l+1))}return a.reduceRight((function(t,i,o){var l=i.route.id?null==s?void 0:s[i.route.id]:null,u=null;r&&(u=i.route.errorElement||_t);var c=n.concat(a.slice(0,o+1)),h=function(){var n;return n=l?u:i.route.Component?e.createElement(i.route.Component,null):i.route.element?i.route.element:t,e.createElement(St,{match:i,routeContext:{outlet:t,matches:c,isDataRoute:null!=r},children:n})};return r&&(i.route.ErrorBoundary||i.route.errorElement||0===o)?e.createElement(Et,{location:r.location,revalidation:r.revalidation,component:u,error:l,children:h(),routeContext:{outlet:null,matches:c,isDataRoute:!0}}):h()}),null)}var Ct=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(Ct||{}),Tt=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(Tt||{});function Pt(t){var n=e.useContext(ut);return n||P(!1),n}function jt(t){var n=e.useContext(ct);return n||P(!1),n}function It(t){var n=function(t){var n=e.useContext(pt);return n||P(!1),n}(),r=n.matches[n.matches.length-1];return r.route.id||P(!1),r.route.id}r.startTransition;function Nt(t){P(!1)}function At(n){var r=n.basename,i=void 0===r?"/":r,o=n.children,a=void 0===o?null:o,s=n.location,l=n.navigationType,u=void 0===l?t.Pop:l,c=n.navigator,h=n.static,d=void 0!==h&&h;yt()&&P(!1);var f=i.replace(/^\/*/,"/"),p=e.useMemo((function(){return{basename:f,navigator:c,static:d}}),[f,c,d]);"string"===typeof s&&(s=D(s));var v=s,y=v.pathname,g=void 0===y?"/":y,m=v.search,b=void 0===m?"":m,w=v.hash,x=void 0===w?"":w,k=v.state,_=void 0===k?null:k,E=v.key,S=void 0===E?"default":E,O=e.useMemo((function(){var t=K(g,f);return null==t?null:{location:{pathname:t,search:b,hash:x,state:_,key:S},navigationType:u}}),[f,g,b,x,_,S,u]);return null==O?null:e.createElement(dt.Provider,{value:p},e.createElement(ft.Provider,{children:a,value:O}))}function Dt(t){var e=t.children,n=t.location;return xt(Rt(e),n)}var Mt=function(t){return t[t.pending=0]="pending",t[t.success=1]="success",t[t.error=2]="error",t}(Mt||{}),Ft=new Promise((function(){}));e.Component;function Rt(t,n){void 0===n&&(n=[]);var r=[];return e.Children.forEach(t,(function(t,i){if(e.isValidElement(t)){var o=[].concat(h(n),[i]);if(t.type!==e.Fragment){t.type!==Nt&&P(!1),t.props.index&&t.props.children&&P(!1);var a={id:t.props.id||o.join("-"),caseSensitive:t.props.caseSensitive,element:t.props.element,Component:t.props.Component,index:t.props.index,path:t.props.path,loader:t.props.loader,action:t.props.action,errorElement:t.props.errorElement,ErrorBoundary:t.props.ErrorBoundary,hasErrorBoundary:null!=t.props.ErrorBoundary||null!=t.props.errorElement,shouldRevalidate:t.props.shouldRevalidate,handle:t.props.handle,lazy:t.props.lazy};t.props.children&&(a.children=Rt(t.props.children,o)),r.push(a)}else r.push.apply(r,Rt(t.props.children,o))}})),r}function zt(){return zt=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0||(i[n]=t[n]);return i}function Bt(t){return void 0===t&&(t=""),new URLSearchParams("string"===typeof t||Array.isArray(t)||t instanceof URLSearchParams?t:Object.keys(t).reduce((function(e,n){var r=t[n];return e.concat(Array.isArray(r)?r.map((function(t){return[n,t]})):[[n,r]])}),[]))}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);var Wt=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"];var Ht=r.startTransition;function Ut(t){var n=t.basename,r=t.children,i=t.future,o=t.window,a=e.useRef();null==a.current&&(a.current=function(t){return void 0===t&&(t={}),M((function(t,e){var n=t.location;return N("",{pathname:n.pathname,search:n.search,hash:n.hash},e.state&&e.state.usr||null,e.state&&e.state.key||"default")}),(function(t,e){return"string"===typeof e?e:A(e)}),null,t)}({window:o,v5Compat:!0}));var s=a.current,l=u(e.useState({action:s.action,location:s.location}),2),c=l[0],h=l[1],d=(i||{}).v7_startTransition,f=e.useCallback((function(t){d&&Ht?Ht((function(){return h(t)})):h(t)}),[h,d]);return e.useLayoutEffect((function(){return s.listen(f)}),[s,f]),e.createElement(At,{basename:n,children:r,location:c.location,navigationType:c.action,navigator:s})}var Vt="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement,qt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Gt=e.forwardRef((function(t,n){var r,i=t.onClick,o=t.relative,a=t.reloadDocument,s=t.replace,l=t.state,u=t.target,c=t.to,h=t.preventScrollReset,d=t.unstable_viewTransition,f=Lt(t,Wt),p=e.useContext(dt).basename,v=!1;if("string"===typeof c&&qt.test(c)&&(r=c,Vt))try{var y=new URL(window.location.href),g=c.startsWith("//")?new URL(y.protocol+c):new URL(c),m=K(g.pathname,p);g.origin===y.origin&&null!=m?c=m+g.search+g.hash:v=!0}catch(x){}var b=function(t,n){var r=(void 0===n?{}:n).relative;yt()||P(!1);var i=e.useContext(dt),o=i.basename,a=i.navigator,s=wt(t,{relative:r}),l=s.hash,u=s.pathname,c=s.search,h=u;return"/"!==o&&(h="/"===u?o:tt([o,u])),a.createHref({pathname:h,search:c,hash:l})}(c,{relative:o}),w=function(t,n){var r=void 0===n?{}:n,i=r.target,o=r.replace,a=r.state,s=r.preventScrollReset,l=r.relative,u=r.unstable_viewTransition,c=bt(),h=gt(),d=wt(t,{relative:l});return e.useCallback((function(e){if(function(t,e){return 0===t.button&&(!e||"_self"===e)&&!function(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}(t)}(e,i)){e.preventDefault();var n=void 0!==o?o:A(h)===A(d);c(t,{replace:n,state:a,preventScrollReset:s,relative:l,unstable_viewTransition:u})}}),[h,c,d,o,a,i,t,s,l,u])}(c,{replace:s,state:l,target:u,preventScrollReset:h,relative:o,unstable_viewTransition:d});return e.createElement("a",zt({},f,{href:r||b,onClick:v||a?i:function(t){i&&i(t),t.defaultPrevented||w(t)},ref:n,target:u}))}));var Yt,$t;function Xt(t){var n=e.useRef(Bt(t)),r=e.useRef(!1),i=gt(),o=e.useMemo((function(){return function(t,e){var n=Bt(t);return e&&e.forEach((function(t,r){n.has(r)||e.getAll(r).forEach((function(t){n.append(r,t)}))})),n}(i.search,r.current?null:n.current)}),[i.search]),a=bt(),s=e.useCallback((function(t,e){var n=Bt("function"===typeof t?t(o):t);r.current=!0,a("?"+n,e)}),[a,o]);return[o,s]}(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(Yt||(Yt={})),function(t){t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"}($t||($t={}));var Kt=n(184);var Qt=function(){return(0,Kt.jsx)(Kt.Fragment,{children:(0,Kt.jsx)(Gt,{to:"/AlgoVerse",children:(0,Kt.jsx)("img",{src:"/AlgoVerse/images/algo.svg",alt:"Logo",className:"HomeLogo"})})})};var Jt=function(){var t=u((0,e.useState)(!1),2),n=t[0],r=t[1],i=u((0,e.useState)(null),2),o=i[0],a=i[1],s=function(t,e){t.preventDefault(),a(o===e?null:e)};return(0,Kt.jsx)("div",{className:"container",children:(0,Kt.jsxs)("nav",{className:"side-bar ".concat(n?"hidden":""),children:[(0,Kt.jsx)(Qt,{}),(0,Kt.jsx)("button",{className:"menu-btn",onClick:function(){r(!n)},children:(0,Kt.jsxs)("div",{className:"menu-icon",children:[(0,Kt.jsx)("div",{className:"menu-line"}),(0,Kt.jsx)("div",{className:"menu-line"}),(0,Kt.jsx)("div",{className:"menu-line"})]})}),(0,Kt.jsxs)("ul",{className:"algo-list",children:[(0,Kt.jsxs)("li",{className:"algo-items",children:[(0,Kt.jsxs)("div",{className:"change-flex-dir",children:[(0,Kt.jsx)("div",{className:"algo-side-icon",children:(0,Kt.jsx)("img",{src:"/AlgoVerse/images/PathFinding-img.png",alt:"pathfinding-icon"})}),(0,Kt.jsxs)(Gt,{onClick:function(t){return s(t,"pathfinding")},children:["Pathfinding",(0,Kt.jsx)("div",{className:"arrow-container",children:(0,Kt.jsx)("i",{className:"arrow ".concat("pathfinding"===o?"up":"down")})})]})]}),(0,Kt.jsxs)("div",{className:"accordion-content ".concat("pathfinding"===o?"open":""),children:[(0,Kt.jsx)("div",{className:"vertical-line"}),(0,Kt.jsxs)("ul",{className:"accordion-list",children:[(0,Kt.jsx)("li",{children:(0,Kt.jsx)("a",{href:"/AlgoVerse/pathfinding?algorithm=Dijkstra",children:"Dijkstra"})}),(0,Kt.jsx)("li",{children:(0,Kt.jsx)("a",{href:"/AlgoVerse/pathfinding?algorithm=BFS",children:"BFS"})}),(0,Kt.jsx)("li",{children:(0,Kt.jsx)("a",{href:"/AlgoVerse/pathfinding?algorithm=DFS",children:"DFS"})}),(0,Kt.jsx)("li",{children:(0,Kt.jsx)("a",{href:"/AlgoVerse/pathfinding?algorithm=AStar",children:"A*"})})]})]})]}),(0,Kt.jsxs)("li",{className:"algo-items",children:[(0,Kt.jsxs)("div",{className:"change-flex-dir",children:[(0,Kt.jsx)("div",{className:"algo-side-icon",children:(0,Kt.jsx)("img",{src:"/AlgoVerse/images/Sorting-img.png",alt:"sort-icon"})}),(0,Kt.jsx)(Gt,{to:"/",onClick:function(t){return s(t,"sorting")},children:"Sorting"}),(0,Kt.jsx)("div",{className:"arrow-container",children:(0,Kt.jsx)("i",{className:"arrow ".concat("sorting"===o?"up":"down")})})]}),(0,Kt.jsxs)("div",{className:"accordion-content ".concat("sorting"===o?"open":""),children:[(0,Kt.jsx)("div",{className:"vertical-line"}),(0,Kt.jsxs)("ul",{className:"accordion-list",children:[(0,Kt.jsx)("li",{children:(0,Kt.jsx)("a",{href:"/AlgoVerse/sorting?algorithm=MergeSort",children:"MergeSort"})}),(0,Kt.jsx)("li",{children:(0,Kt.jsx)("a",{href:"/AlgoVerse/sorting?algorithm=SelectionSort",children:"SelectionSort"})}),(0,Kt.jsx)("li",{children:(0,Kt.jsx)("a",{href:"/AlgoVerse/sorting?algorithm=BubbleSort",children:"BubbleSort"})}),(0,Kt.jsx)("li",{children:(0,Kt.jsx)("a",{href:"/AlgoVerse/sorting?algorithm=InsertionSort",children:"InsertionSort"})}),(0,Kt.jsx)("li",{children:(0,Kt.jsx)("a",{href:"/AlgoVerse/sorting?algorithm=QuickSort",children:"QuickSort"})})]})]})]}),(0,Kt.jsxs)("li",{className:"algo-items",children:[(0,Kt.jsxs)("div",{className:"change-flex-dir",children:[(0,Kt.jsx)("div",{className:"algo-side-icon tree",children:(0,Kt.jsx)("img",{src:"/AlgoVerse/images/TreeSearch-img.png",alt:"treesearch-icon"})}),(0,Kt.jsxs)(Gt,{onClick:function(t){return s(t,"treesearch")},children:["Trees",(0,Kt.jsx)("div",{className:"arrow-container",children:(0,Kt.jsx)("i",{className:"arrow ".concat("treesearch"===o?"up":"down")})})]})]}),(0,Kt.jsxs)("div",{className:"accordion-content ".concat("treesearch"===o?"open":""),children:[(0,Kt.jsx)("div",{className:"vertical-line"}),(0,Kt.jsx)("ul",{className:"accordion-list",children:(0,Kt.jsx)("li",{children:(0,Kt.jsx)("a",{href:"/AlgoVerse/Tree?algorithm=BinaryTree",children:"Binary Search Tree"})})})]})]})]})]})})},Zt={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},te=e.createContext&&e.createContext(Zt),ee=function(){return ee=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0&&n.push(e[i-1][r]);i0&&n.push(e[i][r-1]);r0&&n.push(e[i-1][r]),i0&&n.push(e[i][r-1]),r0&&n.push(e[i-1][r]),i0&&n.push(e[i][r-1]),r0&&n.push(e[i-1][r]),i0&&n.push(e[i][r-1]),r= right THEN",["RETURN"],"ENDIF","Recursive case: divide the array into two halves and sort them recursively","Find the middle index of the array","mid = (left + right) / 2","Sort the left half","mergeSort(array, left, mid)","Sort the right half","mergeSort(array, mid + 1, right)","Merge the two sorted halves","merge(array, left, mid, right)"],"ENDFUNCTION"]]},"SelectionSort":{"description":"Sorts an array by repeatedly finding the smallest element and swapping it with the first unsorted element","steps":["Loop through the array from left to right:",["for i from 0 to length of array - 1:",["Find the index of the smallest element in the subarray starting from i:",["min_index = i","for j from i + 1 to length of array - 1:",["if array[j] < array[min_index] then:",["min_index = j"]]],"Swap the smallest element with the first unsorted element:",["temp = array[i]","array[i] = array[min_index]","array[min_index] = temp"]]],"Return the sorted array:",["return array"]]},"BubbleSort":{"description":"Sorts an array by repeatedly swapping the adjacent elements if they are in the wrong order","steps":["Loop through the array multiple times:",["for i from 0 to length of array - 1:",["Loop through the unsorted part of the array:",["for j from 0 to length of array - 2 - i:",["Compare the adjacent elements and swap them if they are in the wrong order:",["if array[j] > array[j + 1] then:",["temp = array[j]","array[j] = array[j + 1]","array[j + 1] = temp"]]]]]],"Return the sorted array:",["return array"]]},"InsertionSort":{"description":"Sorts an array by repeatedly inserting the next element into the correct position in the sorted part","steps":["Loop through the array from left to right:",["for i from 1 to length of array - 1:",["Store the current element as key:",["key = array[i]"],"Find the correct position for the key in the sorted part:",["j = i - 1","while j >= 0 and array[j] > key:",["Shift the element at j to the right by one position:",["array[j + 1] = array[j]"],"Decrement j by one:",["j = j - 1"]]],"Insert the key at the correct position:",["array[j + 1] = key"]]],"Return the sorted array:",["return array"]]},"QuickSort":{"description":"Sorts an array by recursively choosing a pivot element and partitioning the array around the pivot","steps":["Define a function to partition the array:",["FUNCTION partition(array, low, high)",["Choose the last element as the pivot:",["pivot = array[high]"],"Initialize a variable to track the index of the smaller elements:",["i = low - 1"],"Loop through the array from low to high:",["for j from low to high - 1:",["If the current element is less than or equal to the pivot:",["Increment i by one:",["i = i + 1"],"Swap the current element with the element at i:",["temp = array[i]","array[i] = array[j]","array[j] = temp"]]]],"Swap the pivot with the element at i + 1:",["temp = array[i + 1]","array[i + 1] = array[high]","array[high] = temp"],"Return the index of the pivot:",["return i + 1"]],"ENDFUNCTION"],"Define a function to sort the array using quick sort:",["FUNCTION quickSort(array, low, high)",["Base case: if the array has only one element or is empty, return:",["if low >= high then:",["return"]],"Recursive case: partition the array and sort the subarrays:",["Find the index of the pivot after partitioning:",["pi = partition(array, low, high)"],"Sort the left subarray:",["quickSort(array, low, pi - 1)"],"Sort the right subarray:",["quickSort(array, pi + 1, high)"]]],"ENDFUNCTION"]]},"Binary-add":{"description":"Insert new node to binary tree.","steps":["Function for Binary insert(root, n)","Input: root , n (insert node)","If n is root_key",["return"],"Else If n < root_key",["If LEFT(root) is null",["LEFT(root) < n"],"Else",["insert(LEFT(root),n)"]],"Else If n > root_key",["If RIGHT(root) is null",["RIGHT(root) < n"],"Else",["insert(RIGHT(root),n)"]]]},"Binary-delete":{"description":"Delete a node from binary tree.","steps":["Function for Binary delete_node(root,key)","min_value_node : node that has smallest value in right sub-tree","Input: root, key(target)","If root is null",["Return null"],"If key < root_key",["delete_node(LEFT(root), key"],"Else If key> root_key",["delete_node(RIGHT(root), key)"],"Else If ",["If LEFT(root) and RIGHT(root) =null",["delete(root)"],"Else If LEFT(root) or RIGHT(root) =null",["temp < LEFT or RIGHT (root)","root < LEFT or RIGHT (root)","delete(temp)"],"Else If",["search min_value_node(root)","root < min_value_node","delete(min_value_node)"]]]},"Binary-search":{"description":"Explore the bianry tree.","steps":["Function for Binary search(root,key)","Input: root, key(target)","If root is null",["Return null"],"If key = root_key",["Return root"],"Else If key < root_key",["Return search(LEFT(root), key)"],"Else If key> root_key",["Return search(RIGHT(root), key)"],"Return null"]},"BinaryTree":{"description":"Tree algorithm that has maximum two child, right child has bigger value then parent\'s, left child has smaller value then parent\'s.","steps":["Node Structure:","struct Node:",["key : Data or value stored in the node","left :Reference to the left child node","right : Reference to the right child node"],"Binary Tree Initialization:",["root = null : Represents an empty tree"],"Binary Tree Node Creation:",["createNode(value):",["newNode = new Node","newNode.key = value","newNode.left = null","newNode.right = null","Return newNode"]]]}}');var Ce=function(){var t,e=u(Xt(),1)[0].get("algorithm"),n=(null===(t=Oe[e])||void 0===t?void 0:t.steps)||"Default";function r(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Array.isArray(t)?(0,Kt.jsx)("ul",{className:"nestedList",children:t.map((function(t,n){return r(t,e+1)}))},e):(0,Kt.jsx)("li",{className:"nestedListItem",style:{marginLeft:"".concat(20*e,"px")},children:t},e)}return(0,Kt.jsx)(Kt.Fragment,{children:(0,Kt.jsxs)("div",{className:"pseudoCodeContainer",children:[(0,Kt.jsx)("h1",{children:" PseudoCode "}),(0,Kt.jsx)("ul",{children:n.map((function(t,e){return r(t,0)}))})]})})},Te=JSON.parse('{"Dijkstra":{"description":"Finds the shortest paths from a source to all vertices in the given graph","applications":["Pathfinding in Games","Geographical Mapping","Network Routing"]},"BFS":{"description":"Finds the shortest paths from a source to all vertices in the given graph","applications":["Shortest Path in Unweighted Graphs","Social Networking Features","Peer-to-Peer Networks","Garbage Collection Algorithms"]},"DFS":{"description":"Finds the shortest paths from a source to all vertices in the given graph","applications":["Topological Sorting","Path Finding in Sparse Graphs","Finding Strongly Connected Components","Generating Permutations"]},"AStar":{"description":"Finds the shortest paths from a source to all vertices in the given graph","applications":["GPS and Route Planning","Game Development","Network Routing","Urban Planning and Geographic Information Systems (GIS)","Machine Learning"]},"MergeSort":{"description":"Merge sort is a divide-and-conquer algorithm that works by dividing an array into smaller subarrays, sorting each subarray, and then merging the sorted subarrays back together to form the final sorted array","applications":["E-commerce Product Recommendation","Medical Imaging","Stock Market Analysis","E-commerce Search Results","Stock Portfolio Management"],"bigO":"Always performs at: O(n log(n))]"},"SelectionSort":{"description":"Selection sort is a simple sorting algorithm that works by iterating through an array and selecting the smallest element in the unsorted portion of the array and swapping it with the first element of the unsorted portion.","applications":["Embedded Systems","Data Storage","Computer Graphics"],"bigO":"Depending on the used data structure: [O(n); O(n\xb2)]"},"BubbleSort":{"description":"Bubble sort is a simple sorting algorithm that repeatedly steps through the list, compares adjacent elements and swaps them if they are in the wrong order.","applications":["Error Detection in Computer Graphics","Education","Data Analysis"],"bigO":"Depending on the used data structure: [O(n); O(n\xb2)]"},"InsertionSort":{"description":"Insertion sort is a simple sorting algorithm that works by iterating through an array and inserting each element into its proper position in a new sorted array.","applications":["Embedded Systems","Flash Memory","Error Detection in Computer Graphics"],"bigO":"Always performs at: [O(n\xb2)]"},"QuickSort":{"description":"Quick sort is a divide-and-conquer algorithm that works by selecting an element as a pivot, partitioning the other elements into two sub-arrays based on whether they are less than or greater than the pivot, and then recursively sorting the sub-arrays.","applications":["Commercial Computing","Information Searching","Event-driven Simulation"],"bigO":"Depending on the used data structure: [O(n log(n); O(n\xb2)]"},"Binary-add":{"description":"Tree algorithm that has maximum two child, right child has bigger value then parent\'s, left child has smaller value then parent\'s.","applications":["Database Indexing","Syntax Trees in Compilers","File Systems","Network Routing Algorithms"],"bigO":"O(logn) = O(log(n\u22121)), root node depth = 0"},"Binary-delete":{"description":"Tree algorithm that has maximum two child, right child has bigger value then parent\'s, left child has smaller value then parent\'s.","applications":["Database Indexing","Syntax Trees in Compilers","File Systems","Network Routing Algorithms"],"bigO":"O(logn) = O(log(n\u22121)), root node depth = 0"},"Binary-search":{"description":"Tree algorithm that has maximum two child, right child has bigger value then parent\'s, left child has smaller value then parent\'s.","applications":["Database Indexing","Syntax Trees in Compilers","File Systems","Network Routing Algorithms"],"bigO":"O(logn) = O(log(n\u22121)), root node depth = 0"},"BinaryTree":{"description":"Tree algorithm that has maximum two child, right child has bigger value then parent\'s, left child has smaller value then parent\'s.","applications":["Database Indexing","Syntax Trees in Compilers","File Systems","Network Routing Algorithms"],"bigO":"O(logn) = O(log(n\u22121)), root node depth = 0"}}');var Pe=function(){var t,e,n=u(Xt(),1)[0].get("algorithm"),r=(null===(t=Te[n])||void 0===t?void 0:t.applications)||"Default",i=(null===(e=Te[n])||void 0===e?void 0:e.bigO)||"Default";return(0,Kt.jsx)(Kt.Fragment,{children:(0,Kt.jsxs)("div",{className:"applicationsContainer",children:[(0,Kt.jsx)("h1",{children:" Useful Applications "}),r.map((function(t,e){return(0,Kt.jsx)("p",{children:t},e)})),(0,Kt.jsx)("h1",{children:"Computational Complexity in O Notation"}),(0,Kt.jsx)("p",{children:i})]})})};var je,Ie=function(){return(0,Kt.jsx)("div",{className:"body",children:(0,Kt.jsxs)("div",{className:"cutbody",children:[(0,Kt.jsx)(Se,{}),(0,Kt.jsxs)("div",{className:"infoContainer",children:[(0,Kt.jsx)(Pe,{}),(0,Kt.jsx)(Ce,{})]})]})})},Ne=n(7995),Ae=e,De=Symbol.for("react-redux-context"),Me="undefined"!==typeof globalThis?globalThis:{};function Fe(){var t;if(!Ae.createContext)return{};var e=null!==(t=Me[De])&&void 0!==t?t:Me[De]=new Map,n=e.get(Ae.createContext);return n||(n=Ae.createContext(null),e.set(Ae.createContext,n)),n}var Re=Fe(),ze=function(){throw new Error("uSES not initialized!")};function Le(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Re;return function(){return Ae.useContext(t)}}var Be=Le(),We=ze,He=function(t,e){return t===e};function Ue(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Re,e=t===Re?Be:Le(t);return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r="function"===typeof n?{equalityFn:n}:n,i=r.equalityFn,o=void 0===i?He:i,a=r.devModeChecks,s=void 0===a?{}:a;var l=e(),u=l.store,c=l.subscription,h=l.getServerState,d=l.stabilityCheck,f=(l.identityFunctionCheck,Ae.useRef(!0),Ae.useCallback(ce({},t.name,(function(e){return t(e)}))[t.name],[t,d,s.stabilityCheck])),p=We(c.addNestedSub,u.getState,h||u.getState,f,o);return Ae.useDebugValue(p),p}}var Ve=Ue(),qe=(Symbol.for("react.element"),Symbol.for("react.portal"),Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler"),Symbol.for("react.provider"),Symbol.for("react.context"),Symbol.for("react.server_context"),Symbol.for("react.forward_ref")),Ge=(Symbol.for("react.suspense"),Symbol.for("react.suspense_list"),Symbol.for("react.memo")),Ye=(Symbol.for("react.lazy"),Symbol.for("react.offscreen"),Symbol.for("react.client.reference"),qe),$e=Ge;function Xe(t){t()}var Ke={notify:function(){},get:function(){return[]}};function Qe(t,e){var n,r=Ke,i=0,o=!1;function a(){u.onStateChange&&u.onStateChange()}function s(){i++,n||(n=e?e.addNestedSub(a):t.subscribe(a),r=function(){var t=null,e=null;return{clear:function(){t=null,e=null},notify:function(){Xe((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(n){var r=!0,i=e={callback:n,next:null,prev:e};return i.prev?i.prev.next=i:t=i,function(){r&&null!==t&&(r=!1,i.next?i.next.prev=i.prev:e=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}())}function l(){i--,n&&0===i&&(n(),n=void 0,r.clear(),r=Ke)}var u={addNestedSub:function(t){s();var e=r.subscribe(t),n=!1;return function(){n||(n=!0,e(),l())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return o},trySubscribe:function(){o||(o=!0,s())},tryUnsubscribe:function(){o&&(o=!1,l())},getListeners:function(){return r}};return u}var Je=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement)?Ae.useLayoutEffect:Ae.useEffect;var Ze={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};ce(je={},Ye,{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0}),ce(je,$e,Ze);Object.defineProperty,Object.getOwnPropertyNames,Object.getOwnPropertySymbols,Object.getOwnPropertyDescriptor,Object.getPrototypeOf,Object.prototype;var tn=function(t){var e=t.store,n=t.context,r=t.children,i=t.serverState,o=t.stabilityCheck,a=void 0===o?"once":o,s=t.identityFunctionCheck,l=void 0===s?"once":s,u=Ae.useMemo((function(){var t=Qe(e);return{store:e,subscription:t,getServerState:i?function(){return i}:void 0,stabilityCheck:a,identityFunctionCheck:l}}),[e,i,a,l]),c=Ae.useMemo((function(){return e.getState()}),[e]);Je((function(){var t=u.subscription;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),c!==e.getState()&&t.notifyNestedSubs(),function(){t.tryUnsubscribe(),t.onStateChange=void 0}}),[u,c]);var h=n||Re;return Ae.createElement(h.Provider,{value:u},r)};function en(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Re,e=t===Re?Be:Le(t);return function(){return e().store}}var nn=en();function rn(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Re,e=t===Re?nn:en(t);return function(){return e().dispatch}}var on,an=rn();on=Ne.useSyncExternalStoreWithSelector,We=on,function(t){t}(e.useSyncExternalStore);var sn=function(){var t=Ve((function(t){return t.updateProps})),n=an(),r=t.values.map((function(t){return t[0]})),i=t.values.map((function(t){return t[1]}));return(0,e.useEffect)((function(){"bubble"===t.algorithm&&t.play&&function(){for(var e=function(e){setTimeout((function(){for(var n=function(e){setTimeout((function(){if(document.getElementById(i[e]).childNodes[1].style.backgroundColor="black",document.getElementById(i[e-1]).childNodes[1].style.backgroundColor="black",setTimeout((function(){document.getElementById(i[e]).childNodes[1].style.backgroundColor=t.color,document.getElementById(i[e-1]).childNodes[1].style.backgroundColor=t.color}),t.speed-10),r[e]0;a+=o-1,o--)e(o);setTimeout((function(){n({type:"PLAY_PAUSE",_play:!1}),n({type:"UPDATE_COLOR",color:"rgb(0, 182, 0)"})}),(t.values.length-1)*t.values.length/2*t.speed+50)}()}),[t.play]),(0,Kt.jsx)(Kt.Fragment,{})},ln=function(){for(var t=Ve((function(t){return t.updateProps})),n=an(),r=t.values.map((function(t){return t[0]})),i=t.values.map((function(t){return t[1]})),o=0,a=0,s=new Map,l=0;l0&&r[u]0&&r[s]=a)){var s=Math.floor((o+a)/2);e(n,r,i-1,o,s),e(n,r,i-1,s+1,a),setTimeout((function(){for(var t=[],e=0;e<3;e++)t.push(Math.floor(200*Math.random()));for(var i=o;i<=a;i++)document.getElementById(r[i]).childNodes[1].style.backgroundColor="rgb(".concat(t[0],",").concat(t[1],",").concat(t[2],")");for(var s=o;s<=a;s++)for(var l=s+1;l<=a;l++)if(n[s]>n[l]){var u=[n[l],n[s]];n[s]=u[0],n[l]=u[1];var c=[r[l],r[s]];r[s]=c[0],r[l]=c[1];var d=h(r);document.getElementById(d[s]).style.transform="translateX(".concat(11*s,"px)"),document.getElementById(d[l]).style.transform="translateX(".concat(11*l,"px)")}}),i*t.speed*5)}},a=function(){o(r,i,Math.ceil(Math.log(r.length+1)),0,r.length-1),setTimeout((function(){n({type:"PLAY_PAUSE",_play:!1}),n({type:"UPDATE_COLOR",color:"rgb(0, 182, 0)"})}),5*t.speed*(1+Math.ceil(Math.log(r.length+1)))+50)};return(0,e.useEffect)((function(){"merge"===t.algorithm&&t.play&&a()}),[t.play]),(0,Kt.jsx)(Kt.Fragment,{})},hn=function(){var t=Ve((function(t){return t.updateProps})),n=an(),r=t.values.map((function(t){return t[0]})),i=t.values.map((function(t){return t[1]}));return(0,e.useEffect)((function(){"selection"===t.algorithm&&t.play&&function(){for(var e=r.length,o=function(n){setTimeout((function(){for(var o=n,a=n;ar[a]&&(o=a);var s=r[n];r[n]=r[o],r[o]=s,s=i[n],i[n]=i[o],i[o]=s,document.getElementById(i[n]).style.transform="translateX(".concat(11*n,"px)"),document.getElementById(i[o]).style.transform="translateX(".concat(11*o,"px)"),document.getElementById(i[n]).childNodes[1].style.backgroundColor="black",setTimeout((function(){document.getElementById(i[n]).childNodes[1].style.backgroundColor=t.color}),2*t.speed)}),n*t.speed*3)},a=0;a=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(l&&u){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;j(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:N(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function gn(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,i)}function mn(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var bn=n(1694),wn=n.n(bn),xn=n(2007),kn=n.n(xn),_n=["as","className","type","tooltip"],En={type:kn().string,tooltip:kn().bool,as:kn().elementType},Sn=e.forwardRef((function(t,e){var n=t.as,r=void 0===n?"div":n,i=t.className,o=t.type,a=void 0===o?"valid":o,s=t.tooltip,l=void 0!==s&&s,u=mn(t,_n);return(0,Kt.jsx)(r,de(de({},u),{},{ref:e,className:wn()(i,"".concat(a,"-").concat(l?"tooltip":"feedback"))}))}));Sn.displayName="Feedback",Sn.propTypes=En;var On=Sn,Cn=e.createContext({}),Tn=["xxl","xl","lg","md","sm","xs"],Pn=e.createContext({prefixes:{},breakpoints:Tn,minBreakpoint:"xs"});Pn.Consumer,Pn.Provider;function jn(t,n){var r=(0,e.useContext)(Pn).prefixes;return t||r[n]||n}function In(){return(0,e.useContext)(Pn).breakpoints}function Nn(){return(0,e.useContext)(Pn).minBreakpoint}var An=["id","bsPrefix","className","type","isValid","isInvalid","as"],Dn=e.forwardRef((function(t,n){var r=t.id,i=t.bsPrefix,o=t.className,a=t.type,s=void 0===a?"checkbox":a,l=t.isValid,u=void 0!==l&&l,c=t.isInvalid,h=void 0!==c&&c,d=t.as,f=void 0===d?"input":d,p=mn(t,An),v=(0,e.useContext)(Cn).controlId;return i=jn(i,"form-check-input"),(0,Kt.jsx)(f,de(de({},p),{},{ref:n,type:s,id:r||v,className:wn()(o,i,u&&"is-valid",h&&"is-invalid")}))}));Dn.displayName="FormCheckInput";var Mn=Dn,Fn=["bsPrefix","className","htmlFor"],Rn=e.forwardRef((function(t,n){var r=t.bsPrefix,i=t.className,o=t.htmlFor,a=mn(t,Fn),s=(0,e.useContext)(Cn).controlId;return r=jn(r,"form-check-label"),(0,Kt.jsx)("label",de(de({},a),{},{ref:n,htmlFor:o||s,className:wn()(i,r)}))}));Rn.displayName="FormCheckLabel";var zn=Rn;var Ln=["id","bsPrefix","bsSwitchPrefix","inline","reverse","disabled","isValid","isInvalid","feedbackTooltip","feedback","feedbackType","className","style","title","type","label","children","as"],Bn=e.forwardRef((function(t,n){var r=t.id,i=t.bsPrefix,o=t.bsSwitchPrefix,a=t.inline,s=void 0!==a&&a,l=t.reverse,u=void 0!==l&&l,c=t.disabled,h=void 0!==c&&c,d=t.isValid,f=void 0!==d&&d,p=t.isInvalid,v=void 0!==p&&p,y=t.feedbackTooltip,g=void 0!==y&&y,m=t.feedback,b=t.feedbackType,w=t.className,x=t.style,k=t.title,_=void 0===k?"":k,E=t.type,S=void 0===E?"checkbox":E,O=t.label,C=t.children,T=t.as,P=void 0===T?"input":T,j=mn(t,Ln);i=jn(i,"form-check"),o=jn(o,"form-switch");var I=(0,e.useContext)(Cn).controlId,N=(0,e.useMemo)((function(){return{controlId:r||I}}),[I,r]),A=!C&&null!=O&&!1!==O||function(t,n){return e.Children.toArray(t).some((function(t){return e.isValidElement(t)&&t.type===n}))}(C,zn),D=(0,Kt.jsx)(Mn,de(de({},j),{},{type:"switch"===S?"checkbox":S,ref:n,isValid:f,isInvalid:v,disabled:h,as:P}));return(0,Kt.jsx)(Cn.Provider,{value:N,children:(0,Kt.jsx)("div",{style:x,className:wn()(w,A&&i,s&&"".concat(i,"-inline"),u&&"".concat(i,"-reverse"),"switch"===S&&o),children:C||(0,Kt.jsxs)(Kt.Fragment,{children:[D,A&&(0,Kt.jsx)(zn,{title:_,children:O}),m&&(0,Kt.jsx)(On,{type:b,tooltip:g,children:m})]})})})}));Bn.displayName="FormCheck";var Wn=Object.assign(Bn,{Input:Mn,Label:zn}),Hn=(n(2391),["bsPrefix","type","size","htmlSize","id","className","isValid","isInvalid","plaintext","readOnly","as"]),Un=e.forwardRef((function(t,n){var r=t.bsPrefix,i=t.type,o=t.size,a=t.htmlSize,s=t.id,l=t.className,u=t.isValid,c=void 0!==u&&u,h=t.isInvalid,d=void 0!==h&&h,f=t.plaintext,p=t.readOnly,v=t.as,y=void 0===v?"input":v,g=mn(t,Hn),m=(0,e.useContext)(Cn).controlId;return r=jn(r,"form-control"),(0,Kt.jsx)(y,de(de({},g),{},{type:i,size:a,ref:n,readOnly:p,id:s||m,className:wn()(l,f?"".concat(r,"-plaintext"):r,o&&"".concat(r,"-").concat(o),"color"===i&&"".concat(r,"-color"),c&&"is-valid",d&&"is-invalid")}))}));Un.displayName="FormControl";var Vn=Object.assign(Un,{Feedback:On}),qn=["className","bsPrefix","as"],Gn=e.forwardRef((function(t,e){var n=t.className,r=t.bsPrefix,i=t.as,o=void 0===i?"div":i,a=mn(t,qn);return r=jn(r,"form-floating"),(0,Kt.jsx)(o,de({ref:e,className:wn()(n,r)},a))}));Gn.displayName="FormFloating";var Yn=Gn,$n=["controlId","as"],Xn=e.forwardRef((function(t,n){var r=t.controlId,i=t.as,o=void 0===i?"div":i,a=mn(t,$n),s=(0,e.useMemo)((function(){return{controlId:r}}),[r]);return(0,Kt.jsx)(Cn.Provider,{value:s,children:(0,Kt.jsx)(o,de(de({},a),{},{ref:n}))})}));Xn.displayName="FormGroup";var Kn=Xn,Qn=["as","bsPrefix","className"],Jn=["className"];var Zn=e.forwardRef((function(t,e){var n=function(t){var e=t.as,n=t.bsPrefix,r=t.className,i=mn(t,Qn);n=jn(n,"col");var o=In(),a=Nn(),s=[],l=[];return o.forEach((function(t){var e,r,o,u=i[t];delete i[t],"object"===typeof u&&null!=u?(e=u.span,r=u.offset,o=u.order):e=u;var c=t!==a?"-".concat(t):"";e&&s.push(!0===e?"".concat(n).concat(c):"".concat(n).concat(c,"-").concat(e)),null!=o&&l.push("order".concat(c,"-").concat(o)),null!=r&&l.push("offset".concat(c,"-").concat(r))})),[de(de({},i),{},{className:wn().apply(void 0,[r].concat(s,l))}),{as:e,bsPrefix:n,spans:s}]}(t),r=u(n,2),i=r[0],o=i.className,a=mn(i,Jn),s=r[1],l=s.as,c=void 0===l?"div":l,h=s.bsPrefix,d=s.spans;return(0,Kt.jsx)(c,de(de({},a),{},{ref:e,className:wn()(o,!d.length&&h)}))}));Zn.displayName="Col";var tr=Zn,er=["as","bsPrefix","column","visuallyHidden","className","htmlFor"],nr=e.forwardRef((function(t,n){var r=t.as,i=void 0===r?"label":r,o=t.bsPrefix,a=t.column,s=void 0!==a&&a,l=t.visuallyHidden,u=void 0!==l&&l,c=t.className,h=t.htmlFor,d=mn(t,er),f=(0,e.useContext)(Cn).controlId;o=jn(o,"form-label");var p="col-form-label";"string"===typeof s&&(p="".concat(p," ").concat(p,"-").concat(s));var v=wn()(c,o,u&&"visually-hidden",s&&p);return h=h||f,s?(0,Kt.jsx)(tr,de({ref:n,as:"label",className:v,htmlFor:h},d)):(0,Kt.jsx)(i,de({ref:n,className:v,htmlFor:h},d))}));nr.displayName="FormLabel";var rr=nr,ir=["bsPrefix","className","id"],or=e.forwardRef((function(t,n){var r=t.bsPrefix,i=t.className,o=t.id,a=mn(t,ir),s=(0,e.useContext)(Cn).controlId;return r=jn(r,"form-range"),(0,Kt.jsx)("input",de(de({},a),{},{type:"range",ref:n,className:wn()(i,r),id:o||s}))}));or.displayName="FormRange";var ar=or,sr=["bsPrefix","size","htmlSize","className","isValid","isInvalid","id"],lr=e.forwardRef((function(t,n){var r=t.bsPrefix,i=t.size,o=t.htmlSize,a=t.className,s=t.isValid,l=void 0!==s&&s,u=t.isInvalid,c=void 0!==u&&u,h=t.id,d=mn(t,sr),f=(0,e.useContext)(Cn).controlId;return r=jn(r,"form-select"),(0,Kt.jsx)("select",de(de({},d),{},{size:o,ref:n,className:wn()(a,r,i&&"".concat(r,"-").concat(i),l&&"is-valid",c&&"is-invalid"),id:h||f}))}));lr.displayName="FormSelect";var ur=lr,cr=["bsPrefix","className","as","muted"],hr=e.forwardRef((function(t,e){var n=t.bsPrefix,r=t.className,i=t.as,o=void 0===i?"small":i,a=t.muted,s=mn(t,cr);return n=jn(n,"form-text"),(0,Kt.jsx)(o,de(de({},s),{},{ref:e,className:wn()(r,n,a&&"text-muted")}))}));hr.displayName="FormText";var dr=hr,fr=e.forwardRef((function(t,e){return(0,Kt.jsx)(Wn,de(de({},t),{},{ref:e,type:"switch"}))}));fr.displayName="Switch";var pr=Object.assign(fr,{Input:Wn.Input,Label:Wn.Label}),vr=["bsPrefix","className","children","controlId","label"],yr=e.forwardRef((function(t,e){var n=t.bsPrefix,r=t.className,i=t.children,o=t.controlId,a=t.label,s=mn(t,vr);return n=jn(n,"form-floating"),(0,Kt.jsxs)(Kn,de(de({ref:e,className:wn()(r,n),controlId:o},s),{},{children:[i,(0,Kt.jsx)("label",{htmlFor:o,children:a})]}))}));yr.displayName="FloatingLabel";var gr=yr,mr=["className","validated","as"],br={_ref:kn().any,validated:kn().bool,as:kn().elementType},wr=e.forwardRef((function(t,e){var n=t.className,r=t.validated,i=t.as,o=void 0===i?"form":i,a=mn(t,mr);return(0,Kt.jsx)(o,de(de({},a),{},{ref:e,className:wn()(n,r&&"was-validated")}))}));wr.displayName="Form",wr.propTypes=br;var xr=Object.assign(wr,{Group:Kn,Control:Vn,Floating:Yn,Check:Wn,Switch:pr,Label:rr,Text:dr,Range:ar,Select:ur,FloatingLabel:gr}),kr=["bsPrefix","className","as"],_r=e.forwardRef((function(t,e){var n=t.bsPrefix,r=t.className,i=t.as,o=void 0===i?"div":i,a=mn(t,kr),s=jn(n,"row"),l=In(),u=Nn(),c="".concat(s,"-cols"),h=[];return l.forEach((function(t){var e,n=a[t];delete a[t],e=null!=n&&"object"===typeof n?n.cols:n;var r=t!==u?"-".concat(t):"";null!=e&&h.push("".concat(c).concat(r,"-").concat(e))})),(0,Kt.jsx)(o,de(de({ref:e},a),{},{className:wn().apply(void 0,[r,s].concat(h))}))}));_r.displayName="Row";var Er=_r,Sr=function(t){var n=t.tree,r=u((0,e.useState)(!1),2),i=r[0],o=r[1],a=bt(),s=function(t){a("?algorithm=".concat(t))},l=function(){var e=function(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){gn(o,r,i,a,s,"next",t)}function s(t){gn(o,r,i,a,s,"throw",t)}a(void 0)}))}}(yn().mark((function e(r){var i,a,l,u,c,h,d;return yn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=r.nativeEvent.submitter.className,r.preventDefault(),!i.includes("add-btn")){e.next=10;break}s("Binary-add"),n.insert(r.target.input.value.toLowerCase()),n.all_clear(),r.target.input.value="",t.update(n.toGraph()),e.next=72;break;case 10:if(!i.includes("delete-btn")){e.next=17;break}s("Binary-delete"),n.delete(r.target.input.value.toLowerCase()),r.target.input.value="",t.update(n.toGraph()),e.next=72;break;case 17:if(!i.includes("binary-select-btn")){e.next=36;break}if(s("Binary-search"),n.all_clear(),""===(a=r.target.input.value.toLowerCase()).trim()){e.next=34;break}l=n.binarySearch(a),console.log(l);case 24:if(-1!==l){e.next=32;break}return r.target.input.value="",t.update(n.toGraph()),e.next=29,new Promise((function(t){return setTimeout(t,500)}));case 29:l=n.binarySearch(a),e.next=24;break;case 32:r.target.input.value="",t.update(n.toGraph());case 34:e.next=72;break;case 36:if(!i.includes("bfs-select-btn")){e.next=55;break}if(s("BFS"),n.all_clear(),""===(u=r.target.input.value.toLowerCase()).trim()){e.next=53;break}c=n.bfsSearch(u),console.log(c);case 43:if(-1!==c){e.next=51;break}return r.target.input.value="",t.update(n.toGraph()),e.next=48,new Promise((function(t){return setTimeout(t,500)}));case 48:c=n.bfsSearch(u),e.next=43;break;case 51:r.target.input.value="",t.update(n.toGraph());case 53:e.next=72;break;case 55:if(!i.includes("dfs-select-btn")){e.next=72;break}if(s("DFS"),n.all_clear(),""===(h=r.target.input.value.toLowerCase()).trim()){e.next=72;break}d=n.dfsSearch(h),console.log(d);case 62:if(-1!==d){e.next=70;break}return r.target.input.value="",t.update(n.toGraph()),e.next=67,new Promise((function(t){return setTimeout(t,500)}));case 67:d=n.dfsSearch(h),e.next=62;break;case 70:r.target.input.value="",t.update(n.toGraph());case 72:o(!1);case 73:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,Kt.jsx)("div",{className:"center",children:(0,Kt.jsxs)(xr,{onSubmit:function(t){return l(t)},className:"form",children:[(0,Kt.jsx)(rr,{className:"noticebar center",htmlFor:"input",children:"Enter word or number"}),(0,Kt.jsxs)(Er,{children:[(0,Kt.jsxs)(tr,{className:"col-1",children:[(0,Kt.jsx)("input",{className:"form-control",type:"text",id:"input",placeholder:" ex. 10 or desk",onChange:function(t){t.preventDefault();var e=t.target.value.toLowerCase();o(0!==e.length)}}),(0,Kt.jsx)("input",{type:"submit",className:"btn btn-primary add-btn",value:"Insert",disabled:!i}),(0,Kt.jsx)("input",{type:"submit",className:"btn btn-primary delete-btn",value:"Delete",disabled:!i})]}),(0,Kt.jsxs)(tr,{className:"col-2",children:[(0,Kt.jsx)("input",{type:"submit",className:"btn btn-primary select binary-select-btn",value:"Binary Search"}),(0,Kt.jsx)("input",{type:"submit",className:"btn btn-primary select dfs-select-btn",value:"DFS Search"}),(0,Kt.jsx)("input",{type:"submit",className:"btn btn-primary select bfs-select-btn",value:"BFS Search"})]})]})]})})},Or=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;d(this,t),this.id=t.counter,t.counter++,this.parent=n,this.value=e,this.left=null,this.right=null,this.valid=1,this.visited=!1,this.found=!1,this.dfsvisited=0}return y(t,[{key:"_convert",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return isNaN(t)?parseInt(t.charCodeAt(e),10):parseInt(t,10)}},{key:"isroot",value:function(){return null===this.parent?1:0}},{key:"all_clear",value:function(){this.visited=!1,this.found=!1,this.left&&this.left.all_clear(),this.right&&this.right.all_clear()}},{key:"_handleEqual",value:function(t,e,n){if(isNaN(t)){for(var r=1;e===n;){if(e=this._convert(t,r),n=this._convert(this.value,r),++r>=this.value.length)return void this.addRightChild(t);if(r>=t.length)return void this.addLeftChild(t)}e===n?this.addLeftChild(t):this._compareValues(t,e,n)}else this.addLeftChild(t)}},{key:"_compareValues",value:function(t,e,n){en?this.right?this.right.insert(t):this.addRightChild(t):console.log("Value already exists in the tree")}},{key:"toSearchGraph",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=this.parent?[{from:this.parent.id,to:this.id}]:[],n=this.value?[{id:this.id,label:this.value,shape:t?"box":pn.nodes.shape,color:this.visited?"pink":pn.nodes.color}]:[];if(this.left){var r=this.left.toSearchGraph(!1);e=[].concat(h(e),h(r.edges)),n=[].concat(h(n),h(r.nodes))}if(this.right){var i=this.right.toSearchGraph(!1);e=[].concat(h(e),h(i.edges)),n=[].concat(h(n),h(i.nodes))}return{nodes:n,edges:e}}},{key:"addLeftChild",value:function(e){this.visited=!0,this.left?this.left.insert(e):this.left=new t(e,this)}},{key:"addRightChild",value:function(e){this.visited=!0,this.right?this.right.insert(e):this.right=new t(e,this)}},{key:"insert",value:function(t){var e=this._convert(t);if(this.visted=!0,this.value){var n=this._convert(this.value);this._compareValues(t,e,n)}else this.value=t}},{key:"delete",value:function(t){var e=this._convert(t);if(!this.value)return this;var n=this._convert(this.value);if(en&&this.right)this.right=this.right.delete(t),this.right&&(this.right.parent=this);else if(e===n)if(this.left||this.right)if(this.left)if(this.right){var r=this._findMinNode(this.right);this.value=r.value,this.right=this.right.delete(r.value),this.right&&(this.right.parent=this)}else{if(1!==this.isroot())return this.left;this.value=this.left.value,this.left=this.left.delete(this.left.value),this.left&&(this.left.parent=this)}else{if(1!==this.isroot())return this.right;this.value=this.right.value,this.right=this.right.delete(this.right.value),this.right&&(this.right.parent=this)}else{if(1!==this.isroot())return null;this.value=null,this.parent&&(this.parent=null)}return this}},{key:"_findMinNode",value:function(t){for(;t.left;)t=t.left;return t}},{key:"toGraph",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=null;!0===this.found?e="skyblue":!0===this.visited&&(e="pink");var n=this.parent?[{from:this.parent.id,to:this.id}]:[],r=this.value?[{id:this.id,label:this.value,shape:t?"box":pn.nodes.shape,color:e||pn.nodes.color}]:[];if(this.left){var i=this.left.toGraph(!1);n=[].concat(h(n),h(i.edges)),r=[].concat(h(r),h(i.nodes))}if(this.right){var o=this.right.toGraph(!1);n=[].concat(h(n),h(o.edges)),r=[].concat(h(r),h(o.nodes))}return{nodes:r,edges:n}}},{key:"delay",value:function(t){return new Promise((function(e){return setTimeout(e,t)}))}},{key:"binarySearch",value:function(t){var e=this._convert(t),n=this._convert(this.value);return this.visited?n>e?(console.log("to right"),this.left?this.left.binarySearch(t):1):n0&&void 0!==arguments[0]?arguments[0]:Br,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"UPDATE_RANGE":for(var n=[],r=0;r0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;if(o)throw o;for(var r=!1,i={},s=0;s-1}},2683:function(t){t.exports=function(t,e,n){for(var r=-1,i=null==t?0:t.length;++r=200&&(h=l,d=!1,e=new r(e));t:for(;++c0&&o(c)?n>1?t(c,n-1,o,a,s):r(s,c):a||(s[s.length]=c)}return s}},5099:function(t,e,n){var r=n(372)();t.exports=r},8667:function(t,e,n){var r=n(3082),i=n(9793);t.exports=function(t,e){for(var n=0,o=(e=r(e,t)).length;null!=t&&n1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),e=Object(e);++r1&&T.reverse(),w&&mc))return!1;var d=l.get(t),f=l.get(e);if(d&&f)return d==e&&f==t;var p=-1,v=!0,y=2&n?new r:void 0;for(l.set(t,e),l.set(e,t);++p1?"& ":"")+n[i],n=n.join(r>2?", ":" "),t.replace(e,"{\n/* [wrapped with "+n+"] */\n")}},3529:function(t,e,n){var r=n(7197),i=n(4963),o=n(3629),a=r?r.isConcatSpreadable:void 0;t.exports=function(t){return o(t)||i(t)||!!(a&&t&&t[a])}},6800:function(t){var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t-1}},7109:function(t,e,n){var r=n(7112);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},4086:function(t,e,n){var r=n(9676),i=n(8384),o=n(5797);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},9255:function(t,e,n){var r=n(2799);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},9186:function(t,e,n){var r=n(2799);t.exports=function(t){return r(this,t).get(t)}},3423:function(t,e,n){var r=n(2799);t.exports=function(t){return r(this,t).has(t)}},3739:function(t,e,n){var r=n(2799);t.exports=function(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},234:function(t){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}},284:function(t){t.exports=function(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}},4634:function(t,e,n){var r=n(9151);t.exports=function(t){var e=r(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}},7935:function(t,e,n){var r=n(6557),i=n(449),o=n(2784),a="__lodash_placeholder__",s=128,l=Math.min;t.exports=function(t,e){var n=t[1],u=e[1],c=n|u,h=c<131,d=u==s&&8==n||u==s&&256==n&&t[7].length<=e[8]||384==u&&e[7].length<=e[8]&&8==n;if(!h&&!d)return t;1&u&&(t[2]=e[2],c|=1&n?0:4);var f=e[3];if(f){var p=t[3];t[3]=p?r(p,f,e[4]):f,t[4]=p?o(t[3],a):e[4]}return(f=e[5])&&(p=t[5],t[5]=p?i(p,f,e[6]):f,t[6]=p?o(t[5],a):e[6]),(f=e[7])&&(t[7]=f),u&s&&(t[8]=null==t[8]?e[8]:l(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=c,t}},1921:function(t,e,n){var r=n(7091),i=r&&new r;t.exports=i},9620:function(t,e,n){var r=n(8136)(Object,"create");t.exports=r},5964:function(t,e,n){var r=n(2709)(Object.keys,Object);t.exports=r},4221:function(t){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},9494:function(t,e,n){t=n.nmd(t);var r=n(1032),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i&&r.process,s=function(){try{var t=o&&o.require&&o.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(e){}}();t.exports=s},3581:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},2709:function(t){t.exports=function(t,e){return function(n){return t(e(n))}}},4262:function(t,e,n){var r=n(3665),i=Math.max;t.exports=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,a=-1,s=i(o.length-e,0),l=Array(s);++a0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}},511:function(t,e,n){var r=n(8384);t.exports=function(){this.__data__=new r,this.size=0}},835:function(t){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},707:function(t){t.exports=function(t){return this.__data__.get(t)}},8832:function(t){t.exports=function(t){return this.__data__.has(t)}},5077:function(t,e,n){var r=n(8384),i=n(5797),o=n(8059);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(t,e),this.size=n.size,this}},7167:function(t){t.exports=function(t,e,n){for(var r=n-1,i=t.length;++r2?e-2:1,r&&r<=e?n:a(n,e)):n}},mixin:function(t){return function(e){var n=this;if(!C(n))return t(n,Object(e));var r=[];return E(P(e),(function(t){C(e[t])&&r.push([t,n.prototype[t]])})),t(n,Object(e)),E(r,(function(t){var e=t[1];C(e)?n.prototype[t[0]]=e:delete n.prototype[t[0]]})),n}},nthArg:function(t){return function(e){var n=e<0?1:I(e)+1;return _(t(e),n)}},rearg:function(t){return function(e,n){var r=n?n.length:0;return _(t(e,n),r)}},runInContext:function(n){return function(r){return t(e,n(r),c)}}};function M(t,e){if(f.cap){var n=r.iterateeRearg[t];if(n)return function(t,e){return B(t,(function(t){var n=e.length;return function(t,e){return 2==e?function(e,n){return t.apply(void 0,arguments)}:function(e){return t.apply(void 0,arguments)}}(j(a(t,n),e),n)}))}(e,n);var i=!h&&r.iterateeAry[t];if(i)return function(t,e){return B(t,(function(t){return"function"==typeof t?a(t,e):t}))}(e,i)}return e}function F(t,e,n){if(f.fixed&&(y||!r.skipFixed[t])){var i=r.methodSpread[t],a=i&&i.start;return void 0===a?w(e,n):function(t,e){return function(){for(var n=arguments.length,r=n-1,i=Array(n);n--;)i[n]=arguments[n];var a=i[e],s=i.slice(0,e);return a&&o.apply(s,a),e!=r&&o.apply(s,i.slice(e+1)),t.apply(this,s)}}(e,a)}return e}function R(t,e,n){return f.rearg&&n>1&&(g||!r.skipRearg[t])?j(e,r.methodRearg[t]||r.aryRearg[n]):e}function z(t,e){for(var n=-1,r=(e=N(e)).length,i=r-1,o=k(Object(t)),a=o;null!=a&&++n1?_(e,n):e}(0,i=M(o,i),t),!1}})),!i})),i||(i=a),i==e&&(i=v?_(i,1):function(){return e.apply(this,arguments)}),i.convert=L(o,e),i.placeholder=e.placeholder=n,i}if(!d)return W(n,u,p);var H=u,U=[];return E(A,(function(t){E(r.aryMethod[t],(function(t){var e=H[r.remap[t]||t];e&&U.push([t,W(t,e,H)])}))})),E(P(H),(function(t){var e=H[t];if("function"==typeof e){for(var n=U.length;n--;)if(U[n][0]==t)return;e.convert=L(t,e),U.push([t,e])}})),E(U,(function(t){H[t[0]]=t[1]})),H.convert=function(t){return H.runInContext.convert(t)(void 0)},H.placeholder=H,E(P(H),(function(t){E(r.realToAlias[t]||[],(function(e){H[e]=H[t]}))})),H}},767:function(t,e){e.aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},e.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},e.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},e.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},e.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},e.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},e.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},e.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},e.realToAlias=function(){var t=Object.prototype.hasOwnProperty,n=e.aliasToReal,r={};for(var i in n){var o=n[i];t.call(r,o)?r[o].push(i):r[o]=[i]}return r}(),e.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},e.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},e.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}},2635:function(t,e,n){t.exports={ary:n(9991),assign:n(1855),clone:n(8787),curry:n(5129),forEach:n(4550),isArray:n(3629),isError:n(3908),isFunction:n(4786),isWeakMap:n(5183),iteratee:n(8608),keys:n(3654),rearg:n(1968),toInteger:n(9753),toPath:n(168)}},1294:function(t,e,n){var r=n(4717),i=n(2635);t.exports=function(t,e,n){return r(i,t,e,n)}},1640:function(t,e,n){var r=n(1294)("defaultsDeep",n(4521));r.placeholder=n(8485),t.exports=r},8485:function(t){t.exports={}},6181:function(t,e,n){var r=n(8667);t.exports=function(t,e,n){var i=null==t?void 0:r(t,e);return void 0===i?n:i}},5658:function(t,e,n){var r=n(529),i=n(6417);t.exports=function(t,e){return null!=t&&i(t,e,r)}},2100:function(t){t.exports=function(t){return t}},4963:function(t,e,n){var r=n(4906),i=n(3141),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(t){return i(t)&&a.call(t,"callee")&&!s.call(t,"callee")};t.exports=l},3629:function(t){var e=Array.isArray;t.exports=e},1473:function(t,e,n){var r=n(4786),i=n(4635);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},6279:function(t,e,n){var r=n(1473),i=n(3141);t.exports=function(t){return i(t)&&r(t)}},5174:function(t,e,n){t=n.nmd(t);var r=n(7009),i=n(9488),o=e&&!e.nodeType&&e,a=o&&t&&!t.nodeType&&t,s=a&&a.exports===o?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||i;t.exports=l},8111:function(t,e,n){var r=n(1848);t.exports=function(t,e){return r(t,e)}},3908:function(t,e,n){var r=n(9066),i=n(3141),o=n(3977);t.exports=function(t){if(!i(t))return!1;var e=r(t);return"[object Error]"==e||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!o(t)}},4786:function(t,e,n){var r=n(9066),i=n(8092);t.exports=function(t){if(!i(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},4635:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},103:function(t,e,n){var r=n(3085),i=n(6194),o=n(9494),a=o&&o.isMap,s=a?i(a):r;t.exports=s},8092:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},3141:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},3977:function(t,e,n){var r=n(9066),i=n(1137),o=n(3141),a=Function.prototype,s=Object.prototype,l=a.toString,u=s.hasOwnProperty,c=l.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var e=i(t);if(null===e)return!0;var n=u.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==c}},6995:function(t,e,n){var r=n(8680),i=n(6194),o=n(9494),a=o&&o.isSet,s=a?i(a):r;t.exports=s},152:function(t,e,n){var r=n(9066),i=n(3141);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},9102:function(t,e,n){var r=n(8150),i=n(6194),o=n(9494),a=o&&o.isTypedArray,s=a?i(a):r;t.exports=s},5183:function(t,e,n){var r=n(8383),i=n(3141);t.exports=function(t){return i(t)&&"[object WeakMap]"==r(t)}},8608:function(t,e,n){var r=n(1905),i=n(6025);t.exports=function(t){return i("function"==typeof t?t:r(t,1))}},2742:function(t,e,n){var r=n(7538),i=n(3654),o=n(1473);t.exports=function(t){return o(t)?r(t):i(t)}},3961:function(t,e,n){var r=n(7538),i=n(8664),o=n(1473);t.exports=function(t){return o(t)?r(t,!0):i(t)}},5727:function(t){t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},9151:function(t,e,n){var r=n(8059);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function n(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,t.exports=i},2617:function(t,e,n){var r=n(4173),i=n(9934)((function(t,e,n,i){r(t,e,n,i)}));t.exports=i},9694:function(t){t.exports=function(){}},38:function(t,e,n){var r=n(9586),i=n(4084),o=n(5823),a=n(9793);t.exports=function(t){return o(t)?r(a(t)):i(t)}},1968:function(t,e,n){var r=n(1121),i=n(7038),o=i((function(t,e){return r(t,256,void 0,void 0,void 0,e)}));t.exports=o},8174:function(t){t.exports=function(){return[]}},9488:function(t){t.exports=function(){return!1}},1495:function(t,e,n){var r=n(2582),i=1/0;t.exports=function(t){return t?(t=r(t))===i||t===-1/0?17976931348623157e292*(t<0?-1:1):t===t?t:0:0===t?t:0}},9753:function(t,e,n){var r=n(1495);t.exports=function(t){var e=r(t),n=e%1;return e===e?n?e-n:e:0}},2582:function(t,e,n){var r=n(821),i=n(8092),o=n(152),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=s.test(t);return n||l.test(t)?u(t.slice(2),n?2:8):a.test(t)?NaN:+t}},168:function(t,e,n){var r=n(8950),i=n(291),o=n(3629),a=n(152),s=n(170),l=n(9793),u=n(3518);t.exports=function(t){return o(t)?r(t,l):a(t)?[t]:i(s(u(t)))}},6576:function(t,e,n){var r=n(4503),i=n(3961);t.exports=function(t){return r(t,i(t))}},3518:function(t,e,n){var r=n(2446);t.exports=function(t){return null==t?"":r(t)}},2857:function(t,e,n){var r=n(2492),i=n(5598),o=n(8807),a=n(3629),s=n(3141),l=n(8878),u=Object.prototype.hasOwnProperty;function c(t){if(s(t)&&!a(t)&&!(t instanceof r)){if(t instanceof i)return t;if(u.call(t,"__wrapped__"))return l(t)}return new i(t)}c.prototype=o.prototype,c.prototype.constructor=c,t.exports=c},888:function(t,e,n){"use strict";var r=n(9047);function i(){}function o(){}o.resetWarningCache=i,t.exports=function(){function t(t,e,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function e(){return t}t.isRequired=t;var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},2007:function(t,e,n){t.exports=n(888)()},9047:function(t){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4463:function(t,e,n){"use strict";var r=n(2791),i=n(5296);function o(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;ne}return!1}(e,n,i,r)&&(n=null),r||null===i?function(t){return!!h.call(p,t)||!h.call(f,t)&&(d.test(t)?p[t]=!0:(f[t]=!0,!1))}(e)&&(null===n?t.removeAttribute(e):t.setAttribute(e,""+n)):i.mustUseProperty?t[i.propertyName]=null===n?3!==i.type&&"":n:(e=i.attributeName,r=i.attributeNamespace,null===n?t.removeAttribute(e):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?t.setAttributeNS(r,e,n):t.setAttribute(e,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(t){var e=t.replace(g,m);y[e]=new v(e,1,!1,t,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(t){var e=t.replace(g,m);y[e]=new v(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(t){var e=t.replace(g,m);y[e]=new v(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(t){y[t]=new v(t,1,!1,t.toLowerCase(),null,!1,!1)})),y.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(t){y[t]=new v(t,1,!1,t.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=Symbol.for("react.element"),k=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),C=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),N=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var A=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var D=Symbol.iterator;function M(t){return null===t||"object"!==typeof t?null:"function"===typeof(t=D&&t[D]||t["@@iterator"])?t:null}var F,R=Object.assign;function z(t){if(void 0===F)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);F=e&&e[1]||""}return"\n"+F+t}var L=!1;function B(t,e){if(!t||L)return"";L=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(e,[])}catch(u){var r=u}Reflect.construct(t,[],e)}else{try{e.call()}catch(u){r=u}t.call(e.prototype)}else{try{throw Error()}catch(u){r=u}t()}}catch(u){if(u&&r&&"string"===typeof u.stack){for(var i=u.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var l="\n"+i[a].replace(" at new "," at ");return t.displayName&&l.includes("")&&(l=l.replace("",t.displayName)),l}}while(1<=a&&0<=s);break}}}finally{L=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?z(t):""}function W(t){switch(t.tag){case 5:return z(t.type);case 16:return z("Lazy");case 13:return z("Suspense");case 19:return z("SuspenseList");case 0:case 2:case 15:return t=B(t.type,!1);case 11:return t=B(t.type.render,!1);case 1:return t=B(t.type,!0);default:return""}}function H(t){if(null==t)return null;if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t;switch(t){case _:return"Fragment";case k:return"Portal";case S:return"Profiler";case E:return"StrictMode";case P:return"Suspense";case j:return"SuspenseList"}if("object"===typeof t)switch(t.$$typeof){case C:return(t.displayName||"Context")+".Consumer";case O:return(t._context.displayName||"Context")+".Provider";case T:var e=t.render;return(t=t.displayName)||(t=""!==(t=e.displayName||e.name||"")?"ForwardRef("+t+")":"ForwardRef"),t;case I:return null!==(e=t.displayName||null)?e:H(t.type)||"Memo";case N:e=t._payload,t=t._init;try{return H(t(e))}catch(n){}}return null}function U(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=(t=e.render).displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return H(e);case 8:return e===E?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e}return null}function V(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":case"object":return t;default:return""}}function q(t){var e=t.type;return(t=t.nodeName)&&"input"===t.toLowerCase()&&("checkbox"===e||"radio"===e)}function G(t){t._valueTracker||(t._valueTracker=function(t){var e=q(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(t){r=""+t,o.call(this,t)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(t){r=""+t},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}(t))}function Y(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=q(t)?t.checked?"true":"false":t.value),(t=r)!==n&&(e.setValue(t),!0)}function $(t){if("undefined"===typeof(t=t||("undefined"!==typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}function X(t,e){var n=e.checked;return R({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:t._wrapperState.initialChecked})}function K(t,e){var n=null==e.defaultValue?"":e.defaultValue,r=null!=e.checked?e.checked:e.defaultChecked;n=V(null!=e.value?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===e.type||"radio"===e.type?null!=e.checked:null!=e.value}}function Q(t,e){null!=(e=e.checked)&&b(t,"checked",e,!1)}function J(t,e){Q(t,e);var n=V(e.value),r=e.type;if(null!=n)"number"===r?(0===n&&""===t.value||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if("submit"===r||"reset"===r)return void t.removeAttribute("value");e.hasOwnProperty("value")?tt(t,e.type,n):e.hasOwnProperty("defaultValue")&&tt(t,e.type,V(e.defaultValue)),null==e.checked&&null!=e.defaultChecked&&(t.defaultChecked=!!e.defaultChecked)}function Z(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!("submit"!==r&&"reset"!==r||void 0!==e.value&&null!==e.value))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}""!==(n=t.name)&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,""!==n&&(t.name=n)}function tt(t,e,n){"number"===e&&$(t.ownerDocument)===t||(null==n?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var et=Array.isArray;function nt(t,e,n,r){if(t=t.options,e){e={};for(var i=0;i"+e.valueOf().toString()+"",e=ut.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,e,n,r){MSApp.execUnsafeLocalFunction((function(){return ct(t,e)}))}:ct);function dt(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&3===n.nodeType)return void(n.nodeValue=e)}t.textContent=e}var ft={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pt=["Webkit","ms","Moz","O"];function vt(t,e,n){return null==e||"boolean"===typeof e||""===e?"":n||"number"!==typeof e||0===e||ft.hasOwnProperty(t)&&ft[t]?(""+e).trim():e+"px"}function yt(t,e){for(var n in t=t.style,e)if(e.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=vt(n,e[n],r);"float"===n&&(n="cssFloat"),r?t.setProperty(n,i):t[n]=i}}Object.keys(ft).forEach((function(t){pt.forEach((function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),ft[e]=ft[t]}))}));var gt=R({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function mt(t,e){if(e){if(gt[t]&&(null!=e.children||null!=e.dangerouslySetInnerHTML))throw Error(o(137,t));if(null!=e.dangerouslySetInnerHTML){if(null!=e.children)throw Error(o(60));if("object"!==typeof e.dangerouslySetInnerHTML||!("__html"in e.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=e.style&&"object"!==typeof e.style)throw Error(o(62))}}function bt(t,e){if(-1===t.indexOf("-"))return"string"===typeof e.is;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var wt=null;function xt(t){return(t=t.target||t.srcElement||window).correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}var kt=null,_t=null,Et=null;function St(t){if(t=bi(t)){if("function"!==typeof kt)throw Error(o(280));var e=t.stateNode;e&&(e=xi(e),kt(t.stateNode,t.type,e))}}function Ot(t){_t?Et?Et.push(t):Et=[t]:_t=t}function Ct(){if(_t){var t=_t,e=Et;if(Et=_t=null,St(t),e)for(t=0;t