You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
RELOG/0.6/casebuilder/static/js/main.dde913fd.js

3 lines
615 KiB

/*! For license information please see main.dde913fd.js.LICENSE.txt */
!function(){var e={7228:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports},2858:function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},3646:function(e,t,n){var r=n(7228);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},1506:function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},8926:function(e){function t(e,t,n,r,o,a,i){try{var u=e[a](i),s=u.value}catch(c){return void n(c)}u.done?t(s):Promise.resolve(s).then(r,o)}e.exports=function(e){return function(){var n=this,r=arguments;return new Promise((function(o,a){var i=e.apply(n,r);function u(e){t(i,o,a,u,s,"next",e)}function s(e){t(i,o,a,u,s,"throw",e)}u(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports},4575:function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},9100:function(e,t,n){var r=n(9489),o=n(7067);function a(t,n,i){return o()?(e.exports=a=Reflect.construct,e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=a=function(e,t,n){var o=[null];o.push.apply(o,t);var a=new(Function.bind.apply(e,o));return n&&r(a,n.prototype),a},e.exports.__esModule=!0,e.exports.default=e.exports),a.apply(null,arguments)}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports},3913:function(e){function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},3269:function(e,t,n){var r=n(3323);e.exports=function(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=r(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var o=0,a=function(){};return{s:a,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:a}}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 i,u=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return u=e.done,e},e:function(e){s=!0,i=e},f:function(){try{u||null==n.return||n.return()}finally{if(s)throw i}}}},e.exports.__esModule=!0,e.exports.default=e.exports},9842:function(e,t,n){var r=n(9754),o=n(7067),a=n(8585);e.exports=function(e){var t=o();return function(){var n,o=r(e);if(t){var i=r(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return a(this,n)}},e.exports.__esModule=!0,e.exports.default=e.exports},9713:function(e){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},6525:function(e,t,n){var r=n(8331);function o(){return"undefined"!==typeof Reflect&&Reflect.get?(e.exports=o=Reflect.get,e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=o=function(e,t,n){var o=r(e,t);if(o){var a=Object.getOwnPropertyDescriptor(o,t);return a.get?a.get.call(arguments.length<3?e:n):a.value}},e.exports.__esModule=!0,e.exports.default=e.exports),o.apply(this,arguments)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},9754:function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},2205:function(e,t,n){var r=n(9489);e.exports=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},430:function(e){e.exports=function(e){return-1!==Function.toString.call(e).indexOf("[native code]")},e.exports.__esModule=!0,e.exports.default=e.exports},7067:function(e){e.exports=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}},e.exports.__esModule=!0,e.exports.default=e.exports},6860:function(e){e.exports=function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},3884:function(e){e.exports=function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,u=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(s){u=!0,o=s}finally{try{i||null==n.return||n.return()}finally{if(u)throw o}}return a}},e.exports.__esModule=!0,e.exports.default=e.exports},521:function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},8206:function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},1109:function(e,t,n){var r=n(9713);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e},e.exports.__esModule=!0,e.exports.default=e.exports},8585:function(e,t,n){var r=n(8).default,o=n(1506);e.exports=function(e,t){if(t&&("object"===r(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return o(e)},e.exports.__esModule=!0,e.exports.default=e.exports},9489:function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},3038:function(e,t,n){var r=n(2858),o=n(3884),a=n(3323),i=n(521);e.exports=function(e,t){return r(e)||o(e,t)||a(e,t)||i()},e.exports.__esModule=!0,e.exports.default=e.exports},8331:function(e,t,n){var r=n(9754);e.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=r(e)););return e},e.exports.__esModule=!0,e.exports.default=e.exports},8655:function(e){e.exports=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))},e.exports.__esModule=!0,e.exports.default=e.exports},319:function(e,t,n){var r=n(3646),o=n(6860),a=n(3323),i=n(8206);e.exports=function(e){return r(e)||o(e)||a(e)||i()},e.exports.__esModule=!0,e.exports.default=e.exports},8:function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},3323:function(e,t,n){var r=n(7228);e.exports=function(e,t){if(e){if("string"===typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},5957:function(e,t,n){var r=n(9754),o=n(9489),a=n(430),i=n(9100);function u(t){var n="function"===typeof Map?new Map:void 0;return e.exports=u=function(e){if(null===e||!a(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return i(e,arguments,r(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),o(t,e)},e.exports.__esModule=!0,e.exports.default=e.exports,u(t)}e.exports=u,e.exports.__esModule=!0,e.exports.default=e.exports},7757:function(e,t,n){e.exports=n(9727)},2080:function(e,t,n){"use strict";var r=n(4575).default,o=n(3913).default,a=n(6525).default,i=n(9754).default,u=n(2205).default,s=n(9842).default;Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var c=n(6422),l=n(1783),f=n(5184),d=n(98),p=["/properties"],h="http://json-schema.org/draft-07/schema",v=function(e){u(n,e);var t=s(n);function n(){return r(this,n),t.apply(this,arguments)}return o(n,[{key:"_addVocabularies",value:function(){var e=this;a(i(n.prototype),"_addVocabularies",this).call(this),l.default.forEach((function(t){return e.addVocabulary(t)})),this.opts.discriminator&&this.addKeyword(f.default)}},{key:"_addDefaultMetaSchema",value:function(){if(a(i(n.prototype),"_addDefaultMetaSchema",this).call(this),this.opts.meta){var e=this.opts.$data?this.$dataMetaSchema(d,p):d;this.addMetaSchema(e,h,!1),this.refs["http://json-schema.org/schema"]=h}}},{key:"defaultMeta",value:function(){return this.opts.defaultMeta=a(i(n.prototype),"defaultMeta",this).call(this)||(this.getSchema(h)?h:void 0)}}]),n}(c.default);e.exports=t=v,Object.defineProperty(t,"__esModule",{value:!0}),t.default=v;var m=n(2262);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return m.KeywordCxt}});var y=n(4105);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return y._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return y.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return y.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return y.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return y.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return y.CodeGen}})},9716:function(e,t,n){"use strict";var r,o,a=n(8655).default,i=n(319).default,u=n(9713).default,s=n(2205).default,c=n(9842).default,l=n(3913).default,f=n(4575).default;Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;var d=l((function e(){f(this,e)}));t._CodeOrName=d,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var p=function(e){s(r,e);var n=c(r);function r(e){var o;if(f(this,r),o=n.call(this),!t.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");return o.str=e,o}return l(r,[{key:"toString",value:function(){return this.str}},{key:"emptyStr",value:function(){return!1}},{key:"names",get:function(){return u({},this.str,1)}}]),r}(d);t.Name=p;var h=function(e){s(n,e);var t=c(n);function n(e){var r;return f(this,n),(r=t.call(this))._items="string"===typeof e?[e]:e,r}return l(n,[{key:"toString",value:function(){return this.str}},{key:"emptyStr",value:function(){if(this._items.length>1)return!1;var e=this._items[0];return""===e||'""'===e}},{key:"str",get:function(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce((function(e,t){return"".concat(e).concat(t)}),"")}},{key:"names",get:function(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce((function(e,t){return t instanceof p&&(e[t.str]=(e[t.str]||0)+1),e}),{})}}]),n}(d);function v(e){for(var t=[e[0]],n=0,r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];for(;n<o.length;)g(t,o[n]),t.push(e[++n]);return new h(t)}t._Code=h,t.nil=new h(""),t._=v;var m=new h("+");function y(e){for(var t=[_(e[0])],n=0,r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];for(;n<o.length;)t.push(m),g(t,o[n]),t.push(m,_(e[++n]));return b(t),new h(t)}function g(e,t){var n;t instanceof h?e.push.apply(e,i(t._items)):t instanceof p?e.push(t):e.push("number"==typeof(n=t)||"boolean"==typeof n||null===n?n:_(Array.isArray(n)?n.join(","):n))}function b(e){for(var t=1;t<e.length-1;){if(e[t]===m){var n=w(e[t-1],e[t+1]);if(void 0!==n){e.splice(t-1,3,n);continue}e[t++]="+"}t++}}function w(e,t){if('""'===t)return e;if('""'===e)return t;if("string"==typeof e){if(t instanceof p||'"'!==e[e.length-1])return;return"string"!=typeof t?"".concat(e.slice(0,-1)).concat(t,'"'):'"'===t[0]?e.slice(0,-1)+t.slice(1):void 0}return"string"!=typeof t||'"'!==t[0]||e instanceof p?void 0:'"'.concat(e).concat(t.slice(1))}function _(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}t.str=y,t.addCodeArg=g,t.strConcat=function(e,t){return t.emptyStr()?e:e.emptyStr()?t:y(r||(r=a(["","",""])),e,t)},t.stringify=function(e){return new h(_(e))},t.safeStringify=_,t.getProperty=function(e){return"string"==typeof e&&t.IDENTIFIER.test(e)?new h(".".concat(e)):v(o||(o=a(["[","]"])),e)},t.getEsmExportName=function(e){if("string"==typeof e&&t.IDENTIFIER.test(e))return new h("".concat(e));throw new Error("CodeGen: invalid export name: ".concat(e,", use explicit $id name mapping"))},t.regexpCode=function(e){return new h(e.toString())}},4105:function(e,t,n){"use strict";var r,o,a,i,u,s,c=n(8655).default,l=n(3038).default,f=n(6525).default,d=n(9754).default,p=n(319).default,h=n(1109).default,v=n(2205).default,m=n(9842).default,y=n(4575).default,g=n(3913).default;Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;var b=n(9716),w=n(8718),_=n(9716);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return _._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return _.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return _.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return _.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return _.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return _.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return _.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return _.Name}});var x=n(8718);Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return x.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return x.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return x.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return x.varKinds}}),t.operators={GT:new b._Code(">"),GTE:new b._Code(">="),LT:new b._Code("<"),LTE:new b._Code("<="),EQ:new b._Code("==="),NEQ:new b._Code("!=="),NOT:new b._Code("!"),OR:new b._Code("||"),AND:new b._Code("&&"),ADD:new b._Code("+")};var E=function(){function e(){y(this,e)}return g(e,[{key:"optimizeNodes",value:function(){return this}},{key:"optimizeNames",value:function(e,t){return this}}]),e}(),k=function(e){v(n,e);var t=m(n);function n(e,r,o){var a;return y(this,n),(a=t.call(this)).varKind=e,a.name=r,a.rhs=o,a}return g(n,[{key:"render",value:function(e){var t=e.es5,n=e._n,r=t?w.varKinds.var:this.varKind,o=void 0===this.rhs?"":" = ".concat(this.rhs);return"".concat(r," ").concat(this.name).concat(o,";")+n}},{key:"optimizeNames",value:function(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=X(this.rhs,e,t)),this}},{key:"names",get:function(){return this.rhs instanceof b._CodeOrName?this.rhs.names:{}}}]),n}(E),S=function(e){v(n,e);var t=m(n);function n(e,r,o){var a;return y(this,n),(a=t.call(this)).lhs=e,a.rhs=r,a.sideEffects=o,a}return g(n,[{key:"render",value:function(e){var t=e._n;return"".concat(this.lhs," = ").concat(this.rhs,";")+t}},{key:"optimizeNames",value:function(e,t){if(!(this.lhs instanceof b.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=X(this.rhs,e,t),this}},{key:"names",get:function(){return G(this.lhs instanceof b.Name?{}:h({},this.lhs.names),this.rhs)}}]),n}(E),O=function(e){v(n,e);var t=m(n);function n(e,r,o,a){var i;return y(this,n),(i=t.call(this,e,o,a)).op=r,i}return g(n,[{key:"render",value:function(e){var t=e._n;return"".concat(this.lhs," ").concat(this.op,"= ").concat(this.rhs,";")+t}}]),n}(S),P=function(e){v(n,e);var t=m(n);function n(e){var r;return y(this,n),(r=t.call(this)).label=e,r.names={},r}return g(n,[{key:"render",value:function(e){var t=e._n;return"".concat(this.label,":")+t}}]),n}(E),C=function(e){v(n,e);var t=m(n);function n(e){var r;return y(this,n),(r=t.call(this)).label=e,r.names={},r}return g(n,[{key:"render",value:function(e){var t=e._n,n=this.label?" ".concat(this.label):"";return"break".concat(n,";")+t}}]),n}(E),N=function(e){v(n,e);var t=m(n);function n(e){var r;return y(this,n),(r=t.call(this)).error=e,r}return g(n,[{key:"render",value:function(e){var t=e._n;return"throw ".concat(this.error,";")+t}},{key:"names",get:function(){return this.error.names}}]),n}(E),j=function(e){v(n,e);var t=m(n);function n(e){var r;return y(this,n),(r=t.call(this)).code=e,r}return g(n,[{key:"render",value:function(e){var t=e._n;return"".concat(this.code,";")+t}},{key:"optimizeNodes",value:function(){return"".concat(this.code)?this:void 0}},{key:"optimizeNames",value:function(e,t){return this.code=X(this.code,e,t),this}},{key:"names",get:function(){return this.code instanceof b._CodeOrName?this.code.names:{}}}]),n}(E),M=function(e){v(n,e);var t=m(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return y(this,n),(e=t.call(this)).nodes=r,e}return g(n,[{key:"render",value:function(e){return this.nodes.reduce((function(t,n){return t+n.render(e)}),"")}},{key:"optimizeNodes",value:function(){for(var e=this.nodes,t=e.length;t--;){var n=e[t].optimizeNodes();Array.isArray(n)?e.splice.apply(e,[t,1].concat(p(n))):n?e[t]=n:e.splice(t,1)}return e.length>0?this:void 0}},{key:"optimizeNames",value:function(e,t){for(var n=this.nodes,r=n.length;r--;){var o=n[r];o.optimizeNames(e,t)||(K(e,o.names),n.splice(r,1))}return n.length>0?this:void 0}},{key:"names",get:function(){return this.nodes.reduce((function(e,t){return Y(e,t.names)}),{})}}]),n}(E),T=function(e){v(n,e);var t=m(n);function n(){return y(this,n),t.apply(this,arguments)}return g(n,[{key:"render",value:function(e){return"{"+e._n+f(d(n.prototype),"render",this).call(this,e)+"}"+e._n}}]),n}(M),D=function(e){v(n,e);var t=m(n);function n(){return y(this,n),t.apply(this,arguments)}return g(n)}(M),I=function(e){v(n,e);var t=m(n);function n(){return y(this,n),t.apply(this,arguments)}return g(n)}(T);I.kind="else";var A=function(e){v(n,e);var t=m(n);function n(e,r){var o;return y(this,n),(o=t.call(this,r)).condition=e,o}return g(n,[{key:"render",value:function(e){var t="if(".concat(this.condition,")")+f(d(n.prototype),"render",this).call(this,e);return this.else&&(t+="else "+this.else.render(e)),t}},{key:"optimizeNodes",value:function(){f(d(n.prototype),"optimizeNodes",this).call(this);var e=this.condition;if(!0===e)return this.nodes;var t=this.else;if(t){var r=t.optimizeNodes();t=this.else=Array.isArray(r)?new I(r):r}return t?!1===e?t instanceof n?t:t.nodes:this.nodes.length?this:new n(W(e),t instanceof n?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}},{key:"optimizeNames",value:function(e,t){var r;if(this.else=null===(r=this.else)||void 0===r?void 0:r.optimizeNames(e,t),f(d(n.prototype),"optimizeNames",this).call(this,e,t)||this.else)return this.condition=X(this.condition,e,t),this}},{key:"names",get:function(){var e=f(d(n.prototype),"names",this);return G(e,this.condition),this.else&&Y(e,this.else.names),e}}]),n}(T);A.kind="if";var R=function(e){v(n,e);var t=m(n);function n(){return y(this,n),t.apply(this,arguments)}return g(n)}(T);R.kind="for";var L=function(e){v(n,e);var t=m(n);function n(e){var r;return y(this,n),(r=t.call(this)).iteration=e,r}return g(n,[{key:"render",value:function(e){return"for(".concat(this.iteration,")")+f(d(n.prototype),"render",this).call(this,e)}},{key:"optimizeNames",value:function(e,t){if(f(d(n.prototype),"optimizeNames",this).call(this,e,t))return this.iteration=X(this.iteration,e,t),this}},{key:"names",get:function(){return Y(f(d(n.prototype),"names",this),this.iteration.names)}}]),n}(R),z=function(e){v(n,e);var t=m(n);function n(e,r,o,a){var i;return y(this,n),(i=t.call(this)).varKind=e,i.name=r,i.from=o,i.to=a,i}return g(n,[{key:"render",value:function(e){var t=e.es5?w.varKinds.var:this.varKind,r=this.name,o=this.from,a=this.to;return"for(".concat(t," ").concat(r,"=").concat(o,"; ").concat(r,"<").concat(a,"; ").concat(r,"++)")+f(d(n.prototype),"render",this).call(this,e)}},{key:"names",get:function(){var e=G(f(d(n.prototype),"names",this),this.from);return G(e,this.to)}}]),n}(R),$=function(e){v(n,e);var t=m(n);function n(e,r,o,a){var i;return y(this,n),(i=t.call(this)).loop=e,i.varKind=r,i.name=o,i.iterable=a,i}return g(n,[{key:"render",value:function(e){return"for(".concat(this.varKind," ").concat(this.name," ").concat(this.loop," ").concat(this.iterable,")")+f(d(n.prototype),"render",this).call(this,e)}},{key:"optimizeNames",value:function(e,t){if(f(d(n.prototype),"optimizeNames",this).call(this,e,t))return this.iterable=X(this.iterable,e,t),this}},{key:"names",get:function(){return Y(f(d(n.prototype),"names",this),this.iterable.names)}}]),n}(R),F=function(e){v(n,e);var t=m(n);function n(e,r,o){var a;return y(this,n),(a=t.call(this)).name=e,a.args=r,a.async=o,a}return g(n,[{key:"render",value:function(e){var t=this.async?"async ":"";return"".concat(t,"function ").concat(this.name,"(").concat(this.args,")")+f(d(n.prototype),"render",this).call(this,e)}}]),n}(T);F.kind="func";var U=function(e){v(n,e);var t=m(n);function n(){return y(this,n),t.apply(this,arguments)}return g(n,[{key:"render",value:function(e){return"return "+f(d(n.prototype),"render",this).call(this,e)}}]),n}(M);U.kind="return";var B=function(e){v(n,e);var t=m(n);function n(){return y(this,n),t.apply(this,arguments)}return g(n,[{key:"render",value:function(e){var t="try"+f(d(n.prototype),"render",this).call(this,e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}},{key:"optimizeNodes",value:function(){var e,t;return f(d(n.prototype),"optimizeNodes",this).call(this),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}},{key:"optimizeNames",value:function(e,t){var r,o;return f(d(n.prototype),"optimizeNames",this).call(this,e,t),null===(r=this.catch)||void 0===r||r.optimizeNames(e,t),null===(o=this.finally)||void 0===o||o.optimizeNames(e,t),this}},{key:"names",get:function(){var e=f(d(n.prototype),"names",this);return this.catch&&Y(e,this.catch.names),this.finally&&Y(e,this.finally.names),e}}]),n}(T),V=function(e){v(n,e);var t=m(n);function n(e){var r;return y(this,n),(r=t.call(this)).error=e,r}return g(n,[{key:"render",value:function(e){return"catch(".concat(this.error,")")+f(d(n.prototype),"render",this).call(this,e)}}]),n}(T);V.kind="catch";var H=function(e){v(n,e);var t=m(n);function n(){return y(this,n),t.apply(this,arguments)}return g(n,[{key:"render",value:function(e){return"finally"+f(d(n.prototype),"render",this).call(this,e)}}]),n}(T);H.kind="finally";var q=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};y(this,e),this._values={},this._blockStarts=[],this._constants={},this.opts=h(h({},n),{},{_n:n.lines?"\n":""}),this._extScope=t,this._scope=new w.Scope({parent:t}),this._nodes=[new D]}return g(e,[{key:"toString",value:function(){return this._root.render(this.opts)}},{key:"name",value:function(e){return this._scope.name(e)}},{key:"scopeName",value:function(e){return this._extScope.name(e)}},{key:"scopeValue",value:function(e,t){var n=this._extScope.value(e,t);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}},{key:"getScopeValue",value:function(e,t){return this._extScope.getValue(e,t)}},{key:"scopeRefs",value:function(e){return this._extScope.scopeRefs(e,this._values)}},{key:"scopeCode",value:function(){return this._extScope.scopeCode(this._values)}},{key:"_def",value:function(e,t,n,r){var o=this._scope.toName(t);return void 0!==n&&r&&(this._constants[o.str]=n),this._leafNode(new k(e,o,n)),o}},{key:"const",value:function(e,t,n){return this._def(w.varKinds.const,e,t,n)}},{key:"let",value:function(e,t,n){return this._def(w.varKinds.let,e,t,n)}},{key:"var",value:function(e,t,n){return this._def(w.varKinds.var,e,t,n)}},{key:"assign",value:function(e,t,n){return this._leafNode(new S(e,t,n))}},{key:"add",value:function(e,n){return this._leafNode(new O(e,t.operators.ADD,n))}},{key:"code",value:function(e){return"function"==typeof e?e():e!==b.nil&&this._leafNode(new j(e)),this}},{key:"object",value:function(){for(var e=["{"],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(var o=0,a=n;o<a.length;o++){var i=l(a[o],2),u=i[0],s=i[1];e.length>1&&e.push(","),e.push(u),(u!==s||this.opts.es5)&&(e.push(":"),(0,b.addCodeArg)(e,s))}return e.push("}"),new b._Code(e)}},{key:"if",value:function(e,t,n){if(this._blockNode(new A(e)),t&&n)this.code(t).else().code(n).endIf();else if(t)this.code(t).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}},{key:"elseIf",value:function(e){return this._elseNode(new A(e))}},{key:"else",value:function(){return this._elseNode(new I)}},{key:"endIf",value:function(){return this._endBlockNode(A,I)}},{key:"_for",value:function(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}},{key:"for",value:function(e,t){return this._for(new L(e),t)}},{key:"forRange",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.opts.es5?w.varKinds.var:w.varKinds.let,a=this._scope.toName(e);return this._for(new z(o,a,t,n),(function(){return r(a)}))}},{key:"forOf",value:function(e,t,n){var a=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:w.varKinds.const,u=this._scope.toName(e);if(this.opts.es5){var s=t instanceof b.Name?t:this.var("_arr",t);return this.forRange("_i",0,(0,b._)(r||(r=c(["",".length"])),s),(function(e){a.var(u,(0,b._)(o||(o=c(["","[","]"])),s,e)),n(u)}))}return this._for(new $("of",i,u,t),(function(){return n(u)}))}},{key:"forIn",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.opts.es5?w.varKinds.var:w.varKinds.const;if(this.opts.ownProperties)return this.forOf(e,(0,b._)(a||(a=c(["Object.keys(",")"])),t),n);var o=this._scope.toName(e);return this._for(new $("in",r,o,t),(function(){return n(o)}))}},{key:"endFor",value:function(){return this._endBlockNode(R)}},{key:"label",value:function(e){return this._leafNode(new P(e))}},{key:"break",value:function(e){return this._leafNode(new C(e))}},{key:"return",value:function(e){var t=new U;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(U)}},{key:"try",value:function(e,t,n){if(!t&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');var r=new B;if(this._blockNode(r),this.code(e),t){var o=this.name("e");this._currNode=r.catch=new V(o),t(o)}return n&&(this._currNode=r.finally=new H,this.code(n)),this._endBlockNode(V,H)}},{key:"throw",value:function(e){return this._leafNode(new N(e))}},{key:"block",value:function(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}},{key:"endBlock",value:function(e){var t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");var n=this._nodes.length-t;if(n<0||void 0!==e&&n!==e)throw new Error("CodeGen: wrong number of nodes: ".concat(n," vs ").concat(e," expected"));return this._nodes.length=t,this}},{key:"func",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.nil,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;return this._blockNode(new F(e,t,n)),r&&this.code(r).endFunc(),this}},{key:"endFunc",value:function(){return this._endBlockNode(F)}},{key:"optimize",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}},{key:"_leafNode",value:function(e){return this._currNode.nodes.push(e),this}},{key:"_blockNode",value:function(e){this._currNode.nodes.push(e),this._nodes.push(e)}},{key:"_endBlockNode",value:function(e,t){var n=this._currNode;if(n instanceof e||t&&n instanceof t)return this._nodes.pop(),this;throw new Error('CodeGen: not in block "'.concat(t?"".concat(e.kind,"/").concat(t.kind):e.kind,'"'))}},{key:"_elseNode",value:function(e){var t=this._currNode;if(!(t instanceof A))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}},{key:"_root",get:function(){return this._nodes[0]}},{key:"_currNode",get:function(){var e=this._nodes;return e[e.length-1]},set:function(e){var t=this._nodes;t[t.length-1]=e}}]),e}();function Y(e,t){for(var n in t)e[n]=(e[n]||0)+(t[n]||0);return e}function G(e,t){return t instanceof b._CodeOrName?Y(e,t.names):e}function X(e,t,n){return e instanceof b.Name?o(e):(r=e)instanceof b._Code&&r._items.some((function(e){return e instanceof b.Name&&1===t[e.str]&&void 0!==n[e.str]}))?new b._Code(e._items.reduce((function(e,t){return t instanceof b.Name&&(t=o(t)),t instanceof b._Code?e.push.apply(e,p(t._items)):e.push(t),e}),[])):e;var r;function o(e){var r=n[e.str];return void 0===r||1!==t[e.str]?e:(delete t[e.str],r)}}function K(e,t){for(var n in t)e[n]=(e[n]||0)-(t[n]||0)}function W(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:(0,b._)(i||(i=c(["!",""])),ee(e))}t.CodeGen=q,t.not=W;var Q=J(t.operators.AND);t.and=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(Q)};var Z=J(t.operators.OR);function J(e){return function(t,n){return t===b.nil?n:n===b.nil?t:(0,b._)(u||(u=c([""," "," ",""])),ee(t),e,ee(n))}}function ee(e){return e instanceof b.Name?e:(0,b._)(s||(s=c(["(",")"])),e)}t.or=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(Z)}},8718:function(e,t,n){"use strict";var r,o,a,i,u,s=n(1109).default,c=n(8655).default,l=n(3913).default,f=n(4575).default,d=n(2205).default,p=n(9842).default,h=n(5957).default;Object.defineProperty(t,"__esModule",{value:!0}),t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;var v,m=n(9716),y=function(e){d(n,e);var t=p(n);function n(e){var r;return f(this,n),(r=t.call(this,'CodeGen: "code" for '.concat(e," not defined"))).value=e.value,r}return l(n)}(h(Error));!function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"}(v=t.UsedValueState||(t.UsedValueState={})),t.varKinds={const:new m.Name("const"),let:new m.Name("let"),var:new m.Name("var")};var g=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.prefixes,r=t.parent;f(this,e),this._names={},this._prefixes=n,this._parent=r}return l(e,[{key:"toName",value:function(e){return e instanceof m.Name?e:this.name(e)}},{key:"name",value:function(e){return new m.Name(this._newName(e))}},{key:"_newName",value:function(e){var t=this._names[e]||this._nameGroup(e);return"".concat(e).concat(t.index++)}},{key:"_nameGroup",value:function(e){var t,n;if((null===(n=null===(t=this._parent)||void 0===t?void 0:t._prefixes)||void 0===n?void 0:n.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error('CodeGen: prefix "'.concat(e,'" is not allowed in this scope'));return this._names[e]={prefix:e,index:0}}}]),e}();t.Scope=g;var b=function(e){d(n,e);var t=p(n);function n(e,r){var o;return f(this,n),(o=t.call(this,r)).prefix=e,o}return l(n,[{key:"setValue",value:function(e,t){var n=t.property,o=t.itemIndex;this.value=e,this.scopePath=(0,m._)(r||(r=c([".","[","]"])),new m.Name(n),o)}}]),n}(m.Name);t.ValueScopeName=b;var w=(0,m._)(o||(o=c(["\n"],["\\n"]))),_=function(e){d(r,e);var n=p(r);function r(e){var t;return f(this,r),(t=n.call(this,e))._values={},t._scope=e.scope,t.opts=s(s({},e),{},{_n:e.lines?w:m.nil}),t}return l(r,[{key:"get",value:function(){return this._scope}},{key:"name",value:function(e){return new b(e,this._newName(e))}},{key:"value",value:function(e,t){var n;if(void 0===t.ref)throw new Error("CodeGen: ref must be passed in value");var r=this.toName(e),o=r.prefix,a=null!==(n=t.key)&&void 0!==n?n:t.ref,i=this._values[o];if(i){var u=i.get(a);if(u)return u}else i=this._values[o]=new Map;i.set(a,r);var s=this._scope[o]||(this._scope[o]=[]),c=s.length;return s[c]=t.ref,r.setValue(t,{property:o,itemIndex:c}),r}},{key:"getValue",value:function(e,t){var n=this._values[e];if(n)return n.get(t)}},{key:"scopeRefs",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._values;return this._reduceValues(t,(function(t){if(void 0===t.scopePath)throw new Error('CodeGen: name "'.concat(t,'" has no value'));return(0,m._)(a||(a=c(["","",""])),e,t.scopePath)}))}},{key:"scopeCode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._values,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return this._reduceValues(e,(function(e){if(void 0===e.value)throw new Error('CodeGen: name "'.concat(e,'" has no value'));return e.value.code}),t,n)}},{key:"_reduceValues",value:function(e,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,s=m.nil,l=function(l){var f=e[l];if(!f)return"continue";var d=o[l]=o[l]||new Map;f.forEach((function(e){if(!d.has(e)){d.set(e,v.Started);var o=n(e);if(o){var l=r.opts.es5?t.varKinds.var:t.varKinds.const;s=(0,m._)(i||(i=c(["",""," "," = ",";",""])),s,l,e,o,r.opts._n)}else{if(!(o=null===a||void 0===a?void 0:a(e)))throw new y(e);s=(0,m._)(u||(u=c(["","","",""])),s,o,r.opts._n)}d.set(e,v.Completed)}}))};for(var f in e)l(f);return s}}]),r}(g);t.ValueScope=_},5:function(e,t,n){"use strict";var r,o,a,i,u,s,c,l,f,d,p,h,v,m,y,g,b,w,_,x,E,k,S,O,P,C=n(8655).default;Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;var N=n(4105),j=n(4648),M=n(8317);function T(e,t){var n=e.const("err",t);e.if((0,N._)(m||(m=C([""," === null"])),M.default.vErrors),(function(){return e.assign(M.default.vErrors,(0,N._)(y||(y=C(["[","]"])),n))}),(0,N._)(g||(g=C(["",".push(",")"])),M.default.vErrors,n)),e.code((0,N._)(b||(b=C(["","++"])),M.default.errors))}function D(e,t){var n=e.gen,r=e.validateName;e.schemaEnv.$async?n.throw((0,N._)(w||(w=C(["new ","(",")"])),e.ValidationError,t)):(n.assign((0,N._)(_||(_=C(["",".errors"])),r),t),n.return(!1))}t.keywordError={message:function(e){var t=e.keyword;return(0,N.str)(r||(r=C(['must pass "','" keyword validation'])),t)}},t.keyword$DataError={message:function(e){var t=e.keyword,n=e.schemaType;return n?(0,N.str)(o||(o=C(['"','" keyword must be '," ($data)"])),t,n):(0,N.str)(a||(a=C(['"','" keyword is invalid ($data)'])),t)}},t.reportError=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.keywordError,r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,a=e.it,u=a.gen,s=a.compositeRule,c=a.allErrors,l=A(e,n,r);(null!==o&&void 0!==o?o:s||c)?T(u,l):D(a,(0,N._)(i||(i=C(["[","]"])),l))},t.reportExtraError=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.keywordError,r=arguments.length>2?arguments[2]:void 0,o=e.it,a=o.gen,i=o.compositeRule,u=o.allErrors,s=A(e,n,r);T(a,s),i||u||D(o,M.default.vErrors)},t.resetErrorsCount=function(e,t){e.assign(M.default.errors,t),e.if((0,N._)(u||(u=C([""," !== null"])),M.default.vErrors),(function(){return e.if(t,(function(){return e.assign((0,N._)(s||(s=C(["",".length"])),M.default.vErrors),t)}),(function(){return e.assign(M.default.vErrors,null)}))}))},t.extendErrors=function(e){var t=e.gen,n=e.keyword,r=e.schemaValue,o=e.data,a=e.errsCount,i=e.it;if(void 0===a)throw new Error("ajv implementation error");var u=t.name("err");t.forRange("i",a,M.default.errors,(function(e){t.const(u,(0,N._)(c||(c=C(["","[","]"])),M.default.vErrors,e)),t.if((0,N._)(l||(l=C(["",".instancePath === undefined"])),u),(function(){return t.assign((0,N._)(f||(f=C(["",".instancePath"])),u),(0,N.strConcat)(M.default.instancePath,i.errorPath))})),t.assign((0,N._)(d||(d=C(["",".schemaPath"])),u),(0,N.str)(p||(p=C(["","/",""])),i.errSchemaPath,n)),i.opts.verbose&&(t.assign((0,N._)(h||(h=C(["",".schema"])),u),r),t.assign((0,N._)(v||(v=C(["",".data"])),u),o))}))};var I={keyword:new N.Name("keyword"),schemaPath:new N.Name("schemaPath"),params:new N.Name("params"),propertyName:new N.Name("propertyName"),message:new N.Name("message"),schema:new N.Name("schema"),parentSchema:new N.Name("parentSchema")};function A(e,t,n){return!1===e.it.createErrors?(0,N._)(x||(x=C(["{}"]))):function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.gen,o=[R(e.it,n),L(e,n)];return z(e,t,o),r.object.apply(r,o)}(e,t,n)}function R(e,t){var n=e.errorPath,r=t.instancePath,o=r?(0,N.str)(E||(E=C(["","",""])),n,(0,j.getErrorPath)(r,j.Type.Str)):n;return[M.default.instancePath,(0,N.strConcat)(M.default.instancePath,o)]}function L(e,t){var n=e.keyword,r=e.it.errSchemaPath,o=t.schemaPath,a=t.parentSchema?r:(0,N.str)(k||(k=C(["","/",""])),r,n);return o&&(a=(0,N.str)(S||(S=C(["","",""])),a,(0,j.getErrorPath)(o,j.Type.Str))),[I.schemaPath,a]}function z(e,t,n){var r=t.params,o=t.message,a=e.keyword,i=e.data,u=e.schemaValue,s=e.it,c=s.opts,l=s.propertyName,f=s.topSchemaRef,d=s.schemaPath;n.push([I.keyword,a],[I.params,"function"==typeof r?r(e):r||(0,N._)(O||(O=C(["{}"])))]),c.messages&&n.push([I.message,"function"==typeof o?o(e):o]),c.verbose&&n.push([I.schema,u],[I.parentSchema,(0,N._)(P||(P=C(["","",""])),f,d)],[M.default.data,i]),l&&n.push([I.propertyName,l])}},8393:function(e,t,n){"use strict";var r,o,a=n(3269).default,i=n(8655).default,u=n(3913).default,s=n(4575).default;Object.defineProperty(t,"__esModule",{value:!0}),t.resolveSchema=t.getCompilingSchema=t.resolveRef=t.compileSchema=t.SchemaEnv=void 0;var c=n(4105),l=n(5522),f=n(8317),d=n(2225),p=n(4648),h=n(2262),v=u((function e(t){var n,r;s(this,e),this.refs={},this.dynamicAnchors={},"object"==typeof t.schema&&(r=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=null!==(n=t.baseId)&&void 0!==n?n:(0,d.normalizeId)(null===r||void 0===r?void 0:r[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=null===r||void 0===r?void 0:r.$async,this.refs={}}));function m(e){var t=g.call(this,e);if(t)return t;var n,a=(0,d.getFullPath)(this.opts.uriResolver,e.root.baseId),u=this.opts.code,s=u.es5,p=u.lines,v=this.opts.ownProperties,m=new c.CodeGen(this.scope,{es5:s,lines:p,ownProperties:v});e.$async&&(n=m.scopeValue("Error",{ref:l.default,code:(0,c._)(r||(r=i(['require("ajv/dist/runtime/validation_error").default'])))}));var y=m.scopeName("validate");e.validateName=y;var b,w={gen:m,allErrors:this.opts.allErrors,data:f.default.data,parentData:f.default.parentData,parentDataProperty:f.default.parentDataProperty,dataNames:[f.default.data],dataPathArr:[c.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:m.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,c.stringify)(e.schema)}:{ref:e.schema}),validateName:y,ValidationError:n,schema:e.schema,schemaEnv:e,rootId:a,baseId:e.baseId||a,schemaPath:c.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,c._)(o||(o=i(['""']))),opts:this.opts,self:this};try{this._compilations.add(e),(0,h.validateFunctionCode)(w),m.optimize(this.opts.code.optimize);var _=m.toString();b="".concat(m.scopeRefs(f.default.scope),"return ").concat(_),this.opts.code.process&&(b=this.opts.code.process(b,e));var x=new Function("".concat(f.default.self),"".concat(f.default.scope),b)(this,this.scope.get());if(this.scope.value(y,{ref:x}),x.errors=null,x.schema=e.schema,x.schemaEnv=e,e.$async&&(x.$async=!0),!0===this.opts.code.source&&(x.source={validateName:y,validateCode:_,scopeValues:m._values}),this.opts.unevaluated){var E=w.props,k=w.items;x.evaluated={props:E instanceof c.Name?void 0:E,items:k instanceof c.Name?void 0:k,dynamicProps:E instanceof c.Name,dynamicItems:k instanceof c.Name},x.source&&(x.source.evaluated=(0,c.stringify)(x.evaluated))}return e.validate=x,e}catch(S){throw delete e.validate,delete e.validateName,b&&this.logger.error("Error compiling schema, function code:",b),S}finally{this._compilations.delete(e)}}function y(e){return(0,d.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:m.call(this,e)}function g(e){var t,n,r,o=a(this._compilations);try{for(o.s();!(t=o.n()).done;){var i=t.value;if(r=e,(n=i).schema===r.schema&&n.root===r.root&&n.baseId===r.baseId)return i}}catch(u){o.e(u)}finally{o.f()}}function b(e,t){for(var n;"string"==typeof(n=this.refs[t]);)t=n;return n||this.schemas[t]||w.call(this,e,t)}function w(e,t){var n=this.opts.uriResolver.parse(t),r=(0,d._getFullPath)(this.opts.uriResolver,n),o=(0,d.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&r===o)return x.call(this,n,e);var a=(0,d.normalizeId)(r),i=this.refs[a]||this.schemas[a];if("string"==typeof i){var u=w.call(this,e,i);if("object"!==typeof(null===u||void 0===u?void 0:u.schema))return;return x.call(this,n,u)}if("object"===typeof(null===i||void 0===i?void 0:i.schema)){if(i.validate||m.call(this,i),a===(0,d.normalizeId)(t)){var s=i.schema,c=this.opts.schemaId,l=s[c];return l&&(o=(0,d.resolveUrl)(this.opts.uriResolver,o,l)),new v({schema:s,schemaId:c,root:e,baseId:o})}return x.call(this,n,i)}}t.SchemaEnv=v,t.compileSchema=m,t.resolveRef=function(e,t,n){var r;n=(0,d.resolveUrl)(this.opts.uriResolver,t,n);var o=e.refs[n];if(o)return o;var a=b.call(this,e,n);if(void 0===a){var i=null===(r=e.localRefs)||void 0===r?void 0:r[n],u=this.opts.schemaId;i&&(a=new v({schema:i,schemaId:u,root:e,baseId:t}))}return void 0!==a?e.refs[n]=y.call(this,a):void 0},t.getCompilingSchema=g,t.resolveSchema=w;var _=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function x(e,t){var n,r=t.baseId,o=t.schema,i=t.root;if("/"===(null===(n=e.fragment)||void 0===n?void 0:n[0])){var u,s,c=a(e.fragment.slice(1).split("/"));try{for(c.s();!(u=c.n()).done;){var l=u.value;if("boolean"===typeof o)return;var f=o[(0,p.unescapeFragment)(l)];if(void 0===f)return;var h="object"===typeof(o=f)&&o[this.opts.schemaId];!_.has(l)&&h&&(r=(0,d.resolveUrl)(this.opts.uriResolver,r,h))}}catch(g){c.e(g)}finally{c.f()}if("boolean"!=typeof o&&o.$ref&&!(0,p.schemaHasRulesButRef)(o,this.RULES)){var m=(0,d.resolveUrl)(this.opts.uriResolver,r,o.$ref);s=w.call(this,i,m)}var y=this.opts.schemaId;return(s=s||new v({schema:o,schemaId:y,root:i,baseId:r})).schema!==s.root.schema?s:void 0}}},8317:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4105),o={data:new r.Name("data"),valCxt:new r.Name("valCxt"),instancePath:new r.Name("instancePath"),parentData:new r.Name("parentData"),parentDataProperty:new r.Name("parentDataProperty"),rootData:new r.Name("rootData"),dynamicAnchors:new r.Name("dynamicAnchors"),vErrors:new r.Name("vErrors"),errors:new r.Name("errors"),this:new r.Name("this"),self:new r.Name("self"),scope:new r.Name("scope"),json:new r.Name("json"),jsonPos:new r.Name("jsonPos"),jsonLen:new r.Name("jsonLen"),jsonPart:new r.Name("jsonPart")};t.default=o},1145:function(e,t,n){"use strict";var r=n(3913).default,o=n(4575).default,a=n(2205).default,i=n(9842).default,u=n(5957).default;Object.defineProperty(t,"__esModule",{value:!0});var s=n(2225),c=function(e){a(n,e);var t=i(n);function n(e,r,a,i){var u;return o(this,n),(u=t.call(this,i||"can't resolve reference ".concat(a," from id ").concat(r))).missingRef=(0,s.resolveUrl)(e,r,a),u.missingSchema=(0,s.normalizeId)((0,s.getFullPath)(e,u.missingRef)),u}return r(n)}(u(Error));t.default=c},2225:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSchemaRefs=t.resolveUrl=t.normalizeId=t._getFullPath=t.getFullPath=t.inlineRef=void 0;var r=n(4648),o=n(8262),a=n(7204),i=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);t.inlineRef=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return"boolean"==typeof e||(!0===t?!s(e):!!t&&c(e)<=t)};var u=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function s(e){for(var t in e){if(u.has(t))return!0;var n=e[t];if(Array.isArray(n)&&n.some(s))return!0;if("object"==typeof n&&s(n))return!0}return!1}function c(e){var t=0;for(var n in e){if("$ref"===n)return 1/0;if(t++,!i.has(n)&&("object"==typeof e[n]&&(0,r.eachItem)(e[n],(function(e){return t+=c(e)})),t===1/0))return 1/0}return t}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0;!1!==n&&(t=p(t));var r=e.parse(t);return f(e,r)}function f(e,t){return e.serialize(t).split("#")[0]+"#"}t.getFullPath=l,t._getFullPath=f;var d=/#\/?$/;function p(e){return e?e.replace(d,""):""}t.normalizeId=p,t.resolveUrl=function(e,t,n){return n=p(n),e.resolve(t,n)};var h=/^[a-z_][-a-z0-9._]*$/i;t.getSchemaRefs=function(e,t){var n=this;if("boolean"==typeof e)return{};var r=this.opts,i=r.schemaId,u=r.uriResolver,s=p(e[i]||t),c={"":s},f=l(u,s,!1),d={},v=new Set;return a(e,{allKeys:!0},(function(e,t,r,o){if(void 0!==o){var a=f+t,u=c[o];"string"==typeof e[i]&&(u=s.call(n,e[i])),l.call(n,e.$anchor),l.call(n,e.$dynamicAnchor),c[t]=u}function s(t){var n=this.opts.uriResolver.resolve;if(t=p(u?n(u,t):t),v.has(t))throw y(t);v.add(t);var r=this.refs[t];return"string"==typeof r&&(r=this.refs[r]),"object"==typeof r?m(e,r.schema,t):t!==p(a)&&("#"===t[0]?(m(e,d[t],t),d[t]=e):this.refs[t]=a),t}function l(e){if("string"==typeof e){if(!h.test(e))throw new Error('invalid anchor "'.concat(e,'"'));s.call(this,"#".concat(e))}}})),d;function m(e,t,n){if(void 0!==t&&!o(e,t))throw y(n)}function y(e){return new Error('reference "'.concat(e,'" resolves to more than one schema'))}}},4091:function(e,t,n){"use strict";var r=n(1109).default;Object.defineProperty(t,"__esModule",{value:!0}),t.getRules=t.isJSONType=void 0;var o=new Set(["string","number","integer","boolean","null","object","array"]);t.isJSONType=function(e){return"string"==typeof e&&o.has(e)},t.getRules=function(){var e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:r(r({},e),{},{integer:!0,boolean:!0,null:!0}),rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}},4648:function(e,t,n){"use strict";var r,o,a,i,u,s,c,l,f,d,p,h,v,m,y,g,b,w,_=n(1109).default,x=n(8655).default,E=n(3269).default;Object.defineProperty(t,"__esModule",{value:!0}),t.checkStrictMode=t.getErrorPath=t.Type=t.useFunc=t.setEvaluated=t.evaluatedPropsToName=t.mergeEvaluated=t.eachItem=t.unescapeJsonPointer=t.escapeJsonPointer=t.escapeFragment=t.unescapeFragment=t.schemaRefOrVal=t.schemaHasRulesButRef=t.schemaHasRules=t.checkUnknownRules=t.alwaysValidSchema=t.toHash=void 0;var k=n(4105),S=n(9716);function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.schema,n=e.opts,r=e.self;if(n.strictSchema&&"boolean"!==typeof t){var o=r.RULES.keywords;for(var a in t)o[a]||A(e,'unknown keyword: "'.concat(a,'"'))}}function P(e,t){if("boolean"==typeof e)return!e;for(var n in e)if(t[n])return!0;return!1}function C(e){return"number"==typeof e?"".concat(e):e.replace(/~/g,"~0").replace(/\//g,"~1")}function N(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function j(e){var t=e.mergeNames,n=e.mergeToName,r=e.mergeValues,o=e.resultToName;return function(e,a,i,u){var s=void 0===i?a:i instanceof k.Name?(a instanceof k.Name?t(e,a,i):n(e,a,i),i):a instanceof k.Name?(n(e,i,a),a):r(a,i);return u!==k.Name||s instanceof k.Name?s:o(e,s)}}function M(e,t){if(!0===t)return e.var("props",!0);var n=e.var("props",(0,k._)(v||(v=x(["{}"]))));return void 0!==t&&T(e,n,t),n}function T(e,t,n){Object.keys(n).forEach((function(n){return e.assign((0,k._)(m||(m=x(["","",""])),t,(0,k.getProperty)(n)),!0)}))}t.toHash=function(e){var t,n={},r=E(e);try{for(r.s();!(t=r.n()).done;){n[t.value]=!0}}catch(o){r.e(o)}finally{r.f()}return n},t.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(O(e,t),!P(t,e.self.RULES.all))},t.checkUnknownRules=O,t.schemaHasRules=P,t.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(var n in e)if("$ref"!==n&&t.all[n])return!0;return!1},t.schemaRefOrVal=function(e,t,n,a){var i=e.topSchemaRef,u=e.schemaPath;if(!a){if("number"==typeof t||"boolean"==typeof t)return t;if("string"==typeof t)return(0,k._)(r||(r=x(["",""])),t)}return(0,k._)(o||(o=x(["","","",""])),i,u,(0,k.getProperty)(n))},t.unescapeFragment=function(e){return N(decodeURIComponent(e))},t.escapeFragment=function(e){return encodeURIComponent(C(e))},t.escapeJsonPointer=C,t.unescapeJsonPointer=N,t.eachItem=function(e,t){if(Array.isArray(e)){var n,r=E(e);try{for(r.s();!(n=r.n()).done;){t(n.value)}}catch(o){r.e(o)}finally{r.f()}}else t(e)},t.mergeEvaluated={props:j({mergeNames:function(e,t,n){return e.if((0,k._)(a||(a=x([""," !== true && "," !== undefined"])),n,t),(function(){e.if((0,k._)(i||(i=x([""," === true"])),t),(function(){return e.assign(n,!0)}),(function(){return e.assign(n,(0,k._)(u||(u=x([""," || {}"])),n)).code((0,k._)(s||(s=x(["Object.assign(",", ",")"])),n,t))}))}))},mergeToName:function(e,t,n){return e.if((0,k._)(c||(c=x([""," !== true"])),n),(function(){!0===t?e.assign(n,!0):(e.assign(n,(0,k._)(l||(l=x([""," || {}"])),n)),T(e,n,t))}))},mergeValues:function(e,t){return!0===e||_(_({},e),t)},resultToName:M}),items:j({mergeNames:function(e,t,n){return e.if((0,k._)(f||(f=x([""," !== true && "," !== undefined"])),n,t),(function(){return e.assign(n,(0,k._)(d||(d=x([""," === true ? true : "," > "," ? "," : ",""])),t,n,t,n,t))}))},mergeToName:function(e,t,n){return e.if((0,k._)(p||(p=x([""," !== true"])),n),(function(){return e.assign(n,!0===t||(0,k._)(h||(h=x([""," > "," ? "," : ",""])),n,t,n,t))}))},mergeValues:function(e,t){return!0===e||Math.max(e,t)},resultToName:function(e,t){return e.var("items",t)}})},t.evaluatedPropsToName=M,t.setEvaluated=T;var D,I={};function A(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.opts.strictSchema;if(n){if(t="strict mode: ".concat(t),!0===n)throw new Error(t);e.self.logger.warn(t)}}t.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:I[t.code]||(I[t.code]=new S._Code(t.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(D=t.Type||(t.Type={})),t.getErrorPath=function(e,t,n){if(e instanceof k.Name){var r=t===D.Num;return n?r?(0,k._)(y||(y=x(['"[" + ',' + "]"'])),e):(0,k._)(g||(g=x(['"[\'" + ',' + "\']"'])),e):r?(0,k._)(b||(b=x(['"/" + ',""])),e):(0,k._)(w||(w=x(['"/" + ','.replace(/~/g, "~0").replace(/\\//g, "~1")'],['"/" + ','.replace(/~/g, "~0").replace(/\\\\//g, "~1")'])),e)}return n?(0,k.getProperty)(e).toString():"/"+C(e)},t.checkStrictMode=A},9763:function(e,t){"use strict";function n(e,t){return t.rules.some((function(t){return r(e,t)}))}function r(e,t){var n;return void 0!==e[t.keyword]||(null===(n=t.definition.implements)||void 0===n?void 0:n.some((function(t){return void 0!==e[t]})))}Object.defineProperty(t,"__esModule",{value:!0}),t.shouldUseRule=t.shouldUseGroup=t.schemaHasRulesForType=void 0,t.schemaHasRulesForType=function(e,t){var r=e.schema,o=e.self.RULES.types[t];return o&&!0!==o&&n(r,o)},t.shouldUseGroup=n,t.shouldUseRule=r},1421:function(e,t,n){"use strict";var r,o=n(8655).default;Object.defineProperty(t,"__esModule",{value:!0}),t.boolOrEmptySchema=t.topBoolOrEmptySchema=void 0;var a=n(5),i=n(4105),u=n(8317),s={message:"boolean schema is false"};function c(e,t){var n={gen:e.gen,keyword:"false schema",data:e.data,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,a.reportError)(n,s,void 0,t)}t.topBoolOrEmptySchema=function(e){var t=e.gen,n=e.schema,a=e.validateName;!1===n?c(e,!1):"object"==typeof n&&!0===n.$async?t.return(u.default.data):(t.assign((0,i._)(r||(r=o(["",".errors"])),a),null),t.return(!0))},t.boolOrEmptySchema=function(e,t){var n=e.gen;!1===e.schema?(n.var(t,!1),c(e)):n.var(t,!0)}},2093:function(e,t,n){"use strict";var r,o,a,i,u,s,c,l,f,d,p,h,v,m,y,g,b,w,_,x,E,k,S,O,P,C,N,j,M,T,D,I,A,R=n(3269).default,L=n(8655).default;Object.defineProperty(t,"__esModule",{value:!0}),t.reportTypeError=t.checkDataTypes=t.checkDataType=t.coerceAndCheckDataType=t.getJSONTypes=t.getSchemaTypes=t.DataType=void 0;var z,$=n(4091),F=n(9763),U=n(5),B=n(4105),V=n(4648);function H(e){var t=Array.isArray(e)?e:e?[e]:[];if(t.every($.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}!function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"}(z=t.DataType||(t.DataType={})),t.getSchemaTypes=function(e){var t=H(e.type);if(t.includes("null")){if(!1===e.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw new Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},t.getJSONTypes=H,t.coerceAndCheckDataType=function(e,t){var n=e.gen,S=e.data,O=e.opts,P=function(e,t){return t?e.filter((function(e){return q.has(e)||"array"===t&&"array"===e})):[]}(t,O.coerceTypes),C=t.length>0&&!(0===P.length&&1===t.length&&(0,F.schemaHasRulesForType)(e,t[0]));if(C){var N=G(t,S,O.strictNumbers,z.Wrong);n.if(N,(function(){P.length?function(e,t,n){var S=e.gen,O=e.data,P=e.opts,C=S.let("dataType",(0,B._)(r||(r=L(["typeof ",""])),O)),N=S.let("coerced",(0,B._)(o||(o=L(["undefined"]))));"array"===P.coerceTypes&&S.if((0,B._)(a||(a=L([""," == 'object' && Array.isArray(",") && ",".length == 1"])),C,O,O),(function(){return S.assign(O,(0,B._)(i||(i=L(["","[0]"])),O)).assign(C,(0,B._)(u||(u=L(["typeof ",""])),O)).if(G(t,O,P.strictNumbers),(function(){return S.assign(N,O)}))}));S.if((0,B._)(s||(s=L([""," !== undefined"])),N));var j,M=R(n);try{for(M.s();!(j=M.n()).done;){var T=j.value;(q.has(T)||"array"===T&&"array"===P.coerceTypes)&&D(T)}}catch(I){M.e(I)}finally{M.f()}function D(e){switch(e){case"string":return void S.elseIf((0,B._)(l||(l=L(["",' == "number" || ',' == "boolean"'])),C,C)).assign(N,(0,B._)(f||(f=L(['"" + ',""])),O)).elseIf((0,B._)(d||(d=L([""," === null"])),O)).assign(N,(0,B._)(p||(p=L(['""']))));case"number":return void S.elseIf((0,B._)(h||(h=L(["",' == "boolean" || '," === null\n || (",' == "string" && '," && "," == +",")"])),C,O,C,O,O,O)).assign(N,(0,B._)(v||(v=L(["+",""])),O));case"integer":return void S.elseIf((0,B._)(m||(m=L(["",' === "boolean" || '," === null\n || (",' === "string" && '," && "," == +"," && !("," % 1))"])),C,O,C,O,O,O,O)).assign(N,(0,B._)(y||(y=L(["+",""])),O));case"boolean":return void S.elseIf((0,B._)(g||(g=L(["",' === "false" || '," === 0 || "," === null"])),O,O,O)).assign(N,!1).elseIf((0,B._)(b||(b=L(["",' === "true" || '," === 1"])),O,O)).assign(N,!0);case"null":return S.elseIf((0,B._)(w||(w=L(["",' === "" || '," === 0 || "," === false"])),O,O,O)),void S.assign(N,null);case"array":S.elseIf((0,B._)(_||(_=L(["",' === "string" || ',' === "number"\n || ',' === "boolean" || '," === null"])),C,C,C,O)).assign(N,(0,B._)(x||(x=L(["[","]"])),O))}}S.else(),K(e),S.endIf(),S.if((0,B._)(c||(c=L([""," !== undefined"])),N),(function(){S.assign(O,N),function(e,t){var n=e.gen,r=e.parentData,o=e.parentDataProperty;n.if((0,B._)(E||(E=L([""," !== undefined"])),r),(function(){return n.assign((0,B._)(k||(k=L(["","[","]"])),r,o),t)}))}(e,N)}))}(e,t,P):K(e)}))}return C};var q=new Set(["string","number","integer","boolean","null"]);function Y(e,t,n){var r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:z.Correct,a=o===z.Correct?B.operators.EQ:B.operators.NEQ;switch(e){case"null":return(0,B._)(S||(S=L([""," "," null"])),t,a);case"array":r=(0,B._)(O||(O=L(["Array.isArray(",")"])),t);break;case"object":r=(0,B._)(P||(P=L([""," && typeof ",' == "object" && !Array.isArray(',")"])),t,t,t);break;case"integer":r=i((0,B._)(C||(C=L(["!("," % 1) && !isNaN(",")"])),t,t));break;case"number":r=i();break;default:return(0,B._)(N||(N=L(["typeof "," "," ",""])),t,a,e)}return o===z.Correct?r:(0,B.not)(r);function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:B.nil;return(0,B.and)((0,B._)(j||(j=L(["typeof ",' == "number"'])),t),e,n?(0,B._)(M||(M=L(["isFinite(",")"])),t):B.nil)}}function G(e,t,n,r){if(1===e.length)return Y(e[0],t,n,r);var o,a=(0,V.toHash)(e);if(a.array&&a.object){var i=(0,B._)(T||(T=L(["typeof ",' != "object"'])),t);o=a.null?i:(0,B._)(D||(D=L(["!"," || ",""])),t,i),delete a.null,delete a.array,delete a.object}else o=B.nil;for(var u in a.number&&delete a.integer,a)o=(0,B.and)(o,Y(u,t,n,r));return o}t.checkDataType=Y,t.checkDataTypes=G;var X={message:function(e){var t=e.schema;return"must be ".concat(t)},params:function(e){var t=e.schema,n=e.schemaValue;return"string"==typeof t?(0,B._)(I||(I=L(["{type: ","}"])),t):(0,B._)(A||(A=L(["{type: ","}"])),n)}};function K(e){var t=function(e){var t=e.gen,n=e.data,r=e.schema,o=(0,V.schemaRefOrVal)(e,r,"type");return{gen:t,keyword:"type",data:n,schema:r.type,schemaCode:o,schemaValue:o,parentSchema:r,params:{},it:e}}(e);(0,U.reportError)(t,X)}t.reportTypeError=K},9540:function(e,t,n){"use strict";var r,o,a,i,u=n(8655).default;Object.defineProperty(t,"__esModule",{value:!0}),t.assignDefaults=void 0;var s=n(4105),c=n(4648);function l(e,t,n){var l=e.gen,f=e.compositeRule,d=e.data,p=e.opts;if(void 0!==n){var h=(0,s._)(r||(r=u(["","",""])),d,(0,s.getProperty)(t));if(f)(0,c.checkStrictMode)(e,"default is ignored for: ".concat(h));else{var v=(0,s._)(o||(o=u([""," === undefined"])),h);"empty"===p.useDefaults&&(v=(0,s._)(a||(a=u([""," || "," === null || ",' === ""'])),v,h,h)),l.if(v,(0,s._)(i||(i=u([""," = ",""])),h,(0,s.stringify)(n)))}}}t.assignDefaults=function(e,t){var n=e.schema,r=n.properties,o=n.items;if("object"===t&&r)for(var a in r)l(e,a,r[a].default);else"array"===t&&Array.isArray(o)&&o.forEach((function(t,n){return l(e,n,t.default)}))}},2262:function(e,t,n){"use strict";var r,o,a,i,u,s,c,l,f,d,p,h,v,m,y,g,b,w,_,x,E,k,S,O,P,C,N,j,M,T,D,I,A,R,L,z,$,F,U,B=n(1109).default,V=n(4575).default,H=n(3913).default,q=n(3269).default,Y=n(8655).default;Object.defineProperty(t,"__esModule",{value:!0}),t.getData=t.KeywordCxt=t.validateFunctionCode=void 0;var G=n(1421),X=n(2093),K=n(9763),W=n(2093),Q=n(9540),Z=n(5470),J=n(5579),ee=n(4105),te=n(8317),ne=n(2225),re=n(4648),oe=n(5);function ae(e,t){var n=e.gen,y=e.validateName,g=e.schema,b=e.schemaEnv,w=e.opts;w.code.es5?n.func(y,(0,ee._)(r||(r=Y(["",", ",""])),te.default.data,te.default.valCxt),b.$async,(function(){n.code((0,ee._)(o||(o=Y(['"use strict"; ',""])),ie(g,w))),function(e,t){e.if(te.default.valCxt,(function(){e.var(te.default.instancePath,(0,ee._)(s||(s=Y(["",".",""])),te.default.valCxt,te.default.instancePath)),e.var(te.default.parentData,(0,ee._)(c||(c=Y(["",".",""])),te.default.valCxt,te.default.parentData)),e.var(te.default.parentDataProperty,(0,ee._)(l||(l=Y(["",".",""])),te.default.valCxt,te.default.parentDataProperty)),e.var(te.default.rootData,(0,ee._)(f||(f=Y(["",".",""])),te.default.valCxt,te.default.rootData)),t.dynamicRef&&e.var(te.default.dynamicAnchors,(0,ee._)(d||(d=Y(["",".",""])),te.default.valCxt,te.default.dynamicAnchors))}),(function(){e.var(te.default.instancePath,(0,ee._)(p||(p=Y(['""'])))),e.var(te.default.parentData,(0,ee._)(h||(h=Y(["undefined"])))),e.var(te.default.parentDataProperty,(0,ee._)(v||(v=Y(["undefined"])))),e.var(te.default.rootData,te.default.data),t.dynamicRef&&e.var(te.default.dynamicAnchors,(0,ee._)(m||(m=Y(["{}"]))))}))}(n,w),n.code(t)})):n.func(y,(0,ee._)(a||(a=Y(["",", ",""])),te.default.data,function(e){return(0,ee._)(i||(i=Y(["{",'="", ',", ",", ","=","","}={}"])),te.default.instancePath,te.default.parentData,te.default.parentDataProperty,te.default.rootData,te.default.data,e.dynamicRef?(0,ee._)(u||(u=Y([", ","={}"])),te.default.dynamicAnchors):ee.nil)}(w)),b.$async,(function(){return n.code(ie(g,w)).code(t)}))}function ie(e,t){var n="object"==typeof e&&e[t.schemaId];return n&&(t.code.source||t.code.process)?(0,ee._)(k||(k=Y(["/*# sourceURL="," */"])),n):ee.nil}function ue(e,t){ce(e)&&(le(e),se(e))?function(e,t){var n=e.schema,r=e.gen;e.opts.$comment&&n.$comment&&de(e);(function(e){var t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,ne.resolveUrl)(e.opts.uriResolver,e.baseId,t))})(e),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}(e);var o=r.const("_errs",te.default.errors);fe(e,o),r.var(t,(0,ee._)(S||(S=Y([""," === ",""])),o,te.default.errors))}(e,t):(0,G.boolOrEmptySchema)(e,t)}function se(e){var t=e.schema,n=e.self;if("boolean"==typeof t)return!t;for(var r in t)if(n.RULES.all[r])return!0;return!1}function ce(e){return"boolean"!=typeof e.schema}function le(e){(0,re.checkUnknownRules)(e),function(e){var t=e.schema,n=e.errSchemaPath,r=e.opts,o=e.self;t.$ref&&r.ignoreKeywordsWithRef&&(0,re.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn('$ref: keywords ignored in schema at path "'.concat(n,'"'))}(e)}function fe(e,t){if(e.opts.jtd)return pe(e,[],!1,t);var n=(0,X.getSchemaTypes)(e.schema);pe(e,n,!(0,X.coerceAndCheckDataType)(e,n),t)}function de(e){var t=e.gen,n=e.schemaEnv,r=e.schema,o=e.errSchemaPath,a=e.opts,i=r.$comment;if(!0===a.$comment)t.code((0,ee._)(O||(O=Y(["",".logger.log(",")"])),te.default.self,i));else if("function"==typeof a.$comment){var u=(0,ee.str)(P||(P=Y(["","/$comment"])),o),s=t.scopeValue("root",{ref:n.root});t.code((0,ee._)(C||(C=Y(["",".opts.$comment(",", ",", ",".schema)"])),te.default.self,i,u,s))}}function pe(e,t,n,r){var o=e.gen,a=e.schema,i=e.data,u=e.allErrors,s=e.opts,c=e.self.RULES;function l(c){(0,K.shouldUseGroup)(a,c)&&(c.type?(o.if((0,W.checkDataType)(c.type,i,s.strictNumbers)),he(e,c),1===t.length&&t[0]===c.type&&n&&(o.else(),(0,W.reportTypeError)(e)),o.endIf()):he(e,c),u||o.if((0,ee._)(A||(A=Y([""," === ",""])),te.default.errors,r||0)))}!a.$ref||!s.ignoreKeywordsWithRef&&(0,re.schemaHasRulesButRef)(a,c)?(s.jtd||function(e,t){if(e.schemaEnv.meta||!e.opts.strictTypes)return;(function(e,t){if(!t.length)return;if(!e.dataTypes.length)return void(e.dataTypes=t);t.forEach((function(t){me(e.dataTypes,t)||ye(e,'type "'.concat(t,'" not allowed by context "').concat(e.dataTypes.join(","),'"'))})),e.dataTypes=e.dataTypes.filter((function(e){return me(t,e)}))})(e,t),e.opts.allowUnionTypes||function(e,t){t.length>1&&(2!==t.length||!t.includes("null"))&&ye(e,"use allowUnionTypes to allow union type keyword")}(e,t);!function(e,t){var n=e.self.RULES.all;for(var r in n){var o=n[r];if("object"==typeof o&&(0,K.shouldUseRule)(e.schema,o)){var a=o.definition.type;a.length&&!a.some((function(e){return ve(t,e)}))&&ye(e,'missing type "'.concat(a.join(","),'" for keyword "').concat(r,'"'))}}}(e,e.dataTypes)}(e,t),o.block((function(){var e,t=q(c.rules);try{for(t.s();!(e=t.n()).done;){l(e.value)}}catch(n){t.e(n)}finally{t.f()}l(c.post)}))):o.block((function(){return be(e,"$ref",c.all.$ref.definition)}))}function he(e,t){var n=e.gen,r=e.schema;e.opts.useDefaults&&(0,Q.assignDefaults)(e,t.type),n.block((function(){var n,o=q(t.rules);try{for(o.s();!(n=o.n()).done;){var a=n.value;(0,K.shouldUseRule)(r,a)&&be(e,a.keyword,a.definition,t.type)}}catch(i){o.e(i)}finally{o.f()}}))}function ve(e,t){return e.includes(t)||"number"===t&&e.includes("integer")}function me(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function ye(e,t){var n=e.schemaEnv.baseId+e.errSchemaPath;t+=' at "'.concat(n,'" (strictTypes)'),(0,re.checkStrictMode)(e,t,e.opts.strictTypes)}t.validateFunctionCode=function(e){ce(e)&&(le(e),se(e))?function(e){var t=e.schema,n=e.opts,r=e.gen;ae(e,(function(){n.$comment&&t.$comment&&de(e),function(e){var t=e.schema,n=e.opts;void 0!==t.default&&n.useDefaults&&n.strictSchema&&(0,re.checkStrictMode)(e,"default is ignored in the schema root")}(e),r.let(te.default.vErrors,null),r.let(te.default.errors,0),n.unevaluated&&function(e){var t=e.gen,n=e.validateName;e.evaluated=t.const("evaluated",(0,ee._)(y||(y=Y(["",".evaluated"])),n)),t.if((0,ee._)(g||(g=Y(["",".dynamicProps"])),e.evaluated),(function(){return t.assign((0,ee._)(b||(b=Y(["",".props"])),e.evaluated),(0,ee._)(w||(w=Y(["undefined"]))))})),t.if((0,ee._)(_||(_=Y(["",".dynamicItems"])),e.evaluated),(function(){return t.assign((0,ee._)(x||(x=Y(["",".items"])),e.evaluated),(0,ee._)(E||(E=Y(["undefined"]))))}))}(e),fe(e),function(e){var t=e.gen,n=e.schemaEnv,r=e.validateName,o=e.ValidationError,a=e.opts;n.$async?t.if((0,ee._)(N||(N=Y([""," === 0"])),te.default.errors),(function(){return t.return(te.default.data)}),(function(){return t.throw((0,ee._)(j||(j=Y(["new ","(",")"])),o,te.default.vErrors))})):(t.assign((0,ee._)(M||(M=Y(["",".errors"])),r),te.default.vErrors),a.unevaluated&&function(e){var t=e.gen,n=e.evaluated,r=e.props,o=e.items;r instanceof ee.Name&&t.assign((0,ee._)(D||(D=Y(["",".props"])),n),r);o instanceof ee.Name&&t.assign((0,ee._)(I||(I=Y(["",".items"])),n),o)}(e),t.return((0,ee._)(T||(T=Y([""," === 0"])),te.default.errors)))}(e)}))}(e):ae(e,(function(){return(0,G.topBoolOrEmptySchema)(e)}))};var ge=function(){function e(t,n,r){if(V(this,e),(0,Z.validateKeywordUsage)(t,n,r),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=r,this.data=t.data,this.schema=t.schema[r],this.$data=n.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,re.schemaRefOrVal)(t,this.schema,r,this.$data),this.schemaType=n.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=n,this.$data)this.schemaCode=t.gen.const("vSchema",xe(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Z.validSchemaType)(this.schema,n.schemaType,n.allowUndefined))throw new Error("".concat(r," value must be ").concat(JSON.stringify(n.schemaType)));("code"in n?n.trackErrors:!1!==n.errors)&&(this.errsCount=t.gen.const("_errs",te.default.errors))}return H(e,[{key:"result",value:function(e,t,n){this.failResult((0,ee.not)(e),t,n)}},{key:"failResult",value:function(e,t,n){this.gen.if(e),n?n():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}},{key:"pass",value:function(e,t){this.failResult((0,ee.not)(e),void 0,t)}},{key:"fail",value:function(e){if(void 0===e)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}},{key:"fail$data",value:function(e){if(!this.$data)return this.fail(e);var t=this.schemaCode;this.fail((0,ee._)(R||(R=Y([""," !== undefined && (",")"])),t,(0,ee.or)(this.invalid$data(),e)))}},{key:"error",value:function(e,t,n){if(t)return this.setParams(t),this._error(e,n),void this.setParams({});this._error(e,n)}},{key:"_error",value:function(e,t){(e?oe.reportExtraError:oe.reportError)(this,this.def.error,t)}},{key:"$dataError",value:function(){(0,oe.reportError)(this,this.def.$dataError||oe.keyword$DataError)}},{key:"reset",value:function(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,oe.resetErrorsCount)(this.gen,this.errsCount)}},{key:"ok",value:function(e){this.allErrors||this.gen.if(e)}},{key:"setParams",value:function(e,t){t?Object.assign(this.params,e):this.params=e}},{key:"block$data",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ee.nil;this.gen.block((function(){n.check$data(e,r),t()}))}},{key:"check$data",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ee.nil,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ee.nil;if(this.$data){var n=this.gen,r=this.schemaCode,o=this.schemaType,a=this.def;n.if((0,ee.or)((0,ee._)(L||(L=Y([""," === undefined"])),r),t)),e!==ee.nil&&n.assign(e,!0),(o.length||a.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),e!==ee.nil&&n.assign(e,!1)),n.else()}}},{key:"invalid$data",value:function(){var e=this.gen,t=this.schemaCode,n=this.schemaType,r=this.def,o=this.it;return(0,ee.or)(function(){if(n.length){if(!(t instanceof ee.Name))throw new Error("ajv implementation error");var e=Array.isArray(n)?n:[n];return(0,ee._)(z||(z=Y(["",""])),(0,W.checkDataTypes)(e,t,o.opts.strictNumbers,W.DataType.Wrong))}return ee.nil}(),function(){if(r.validateSchema){var n=e.scopeValue("validate$data",{ref:r.validateSchema});return(0,ee._)($||($=Y(["!","(",")"])),n,t)}return ee.nil}())}},{key:"subschema",value:function(e,t){var n=(0,J.getSubschema)(this.it,e);(0,J.extendSubschemaData)(n,this.it,e),(0,J.extendSubschemaMode)(n,e);var r=B(B(B({},this.it),n),{},{items:void 0,props:void 0});return ue(r,t),r}},{key:"mergeEvaluated",value:function(e,t){var n=this.it,r=this.gen;n.opts.unevaluated&&(!0!==n.props&&void 0!==e.props&&(n.props=re.mergeEvaluated.props(r,e.props,n.props,t)),!0!==n.items&&void 0!==e.items&&(n.items=re.mergeEvaluated.items(r,e.items,n.items,t)))}},{key:"mergeValidEvaluated",value:function(e,t){var n=this,r=this.it,o=this.gen;if(r.opts.unevaluated&&(!0!==r.props||!0!==r.items))return o.if(t,(function(){return n.mergeEvaluated(e,ee.Name)})),!0}}]),e}();function be(e,t,n,r){var o=new ge(e,n,t);"code"in n?n.code(o,r):o.$data&&n.validate?(0,Z.funcKeywordCode)(o,n):"macro"in n?(0,Z.macroKeywordCode)(o,n):(n.compile||n.validate)&&(0,Z.funcKeywordCode)(o,n)}t.KeywordCxt=ge;var we=/^\/(?:[^~]|~0|~1)*$/,_e=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function xe(e,t){var n,r,o=t.dataLevel,a=t.dataNames,i=t.dataPathArr;if(""===e)return te.default.rootData;if("/"===e[0]){if(!we.test(e))throw new Error("Invalid JSON-pointer: ".concat(e));n=e,r=te.default.rootData}else{var u=_e.exec(e);if(!u)throw new Error("Invalid JSON-pointer: ".concat(e));var s=+u[1];if("#"===(n=u[2])){if(s>=o)throw new Error(h("property/index",s));return i[o-s]}if(s>o)throw new Error(h("data",s));if(r=a[o-s],!n)return r}var c,l=r,f=n.split("/"),d=q(f);try{for(d.s();!(c=d.n()).done;){var p=c.value;p&&(r=(0,ee._)(F||(F=Y(["","",""])),r,(0,ee.getProperty)((0,re.unescapeJsonPointer)(p))),l=(0,ee._)(U||(U=Y([""," && ",""])),l,r))}}catch(v){d.e(v)}finally{d.f()}return l;function h(e,t){return"Cannot access ".concat(e," ").concat(t," levels up, current level is ").concat(o)}}t.getData=xe},5470:function(e,t,n){"use strict";var r,o,a,i,u,s,c,l,f,d,p=n(8655).default;Object.defineProperty(t,"__esModule",{value:!0}),t.validateKeywordUsage=t.validSchemaType=t.funcKeywordCode=t.macroKeywordCode=void 0;var h=n(4105),v=n(8317),m=n(1580),y=n(5);function g(e){var t=e.gen,n=e.data,r=e.it;t.if(r.parentData,(function(){return t.assign(n,(0,h._)(c||(c=p(["","[","]"])),r.parentData,r.parentDataProperty))}))}function b(e,t,n){if(void 0===n)throw new Error('keyword "'.concat(t,'" failed to compile'));return e.scopeValue("keyword","function"==typeof n?{ref:n}:{ref:n,code:(0,h.stringify)(n)})}t.macroKeywordCode=function(e,t){var n=e.gen,r=e.keyword,o=e.schema,a=e.parentSchema,i=e.it,u=t.macro.call(i.self,o,a,i),s=b(n,r,u);!1!==i.opts.validateSchema&&i.self.validateSchema(u,!0);var c=n.name("valid");e.subschema({schema:u,schemaPath:h.nil,errSchemaPath:"".concat(i.errSchemaPath,"/").concat(r),topSchemaRef:s,compositeRule:!0},c),e.pass(c,(function(){return e.error(!0)}))},t.funcKeywordCode=function(e,t){var n,c=e.gen,w=e.keyword,_=e.schema,x=e.parentSchema,E=e.$data,k=e.it;!function(e,t){var n=e.schemaEnv;if(t.async&&!n.$async)throw new Error("async keyword in sync schema")}(k,t);var S=!E&&t.compile?t.compile.call(k.self,_,x,k):t.validate,O=b(c,w,S),P=c.let("valid");function C(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.async?(0,h._)(u||(u=p(["await "]))):h.nil,r=k.opts.passContext?v.default.this:v.default.self,o=!("compile"in t&&!E||!1===t.schema);c.assign(P,(0,h._)(s||(s=p(["","",""])),n,(0,m.callValidateCode)(e,O,r,o)),t.modifying)}function N(e){var n;c.if((0,h.not)(null!==(n=t.valid)&&void 0!==n?n:P),e)}e.block$data(P,(function(){if(!1===t.errors)C(),t.modifying&&g(e),N((function(){return e.error()}));else{var n=t.async?function(){var e=c.let("ruleErrs",null);return c.try((function(){return C((0,h._)(r||(r=p(["await "]))))}),(function(t){return c.assign(P,!1).if((0,h._)(o||(o=p([""," instanceof ",""])),t,k.ValidationError),(function(){return c.assign(e,(0,h._)(a||(a=p(["",".errors"])),t))}),(function(){return c.throw(t)}))})),e}():function(){var e=(0,h._)(i||(i=p(["",".errors"])),O);return c.assign(e,null),C(h.nil),e}();t.modifying&&g(e),N((function(){return function(e,t){var n=e.gen;n.if((0,h._)(l||(l=p(["Array.isArray(",")"])),t),(function(){n.assign(v.default.vErrors,(0,h._)(f||(f=p([""," === null ? "," : ",".concat(",")"])),v.default.vErrors,t,v.default.vErrors,t)).assign(v.default.errors,(0,h._)(d||(d=p(["",".length"])),v.default.vErrors)),(0,y.extendErrors)(e)}),(function(){return e.error()}))}(e,n)}))}})),e.ok(null!==(n=t.valid)&&void 0!==n?n:P)},t.validSchemaType=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!t.length||t.some((function(t){return"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||n&&"undefined"==typeof e}))},t.validateKeywordUsage=function(e,t,n){var r=e.schema,o=e.opts,a=e.self,i=e.errSchemaPath;if(Array.isArray(t.keyword)?!t.keyword.includes(n):t.keyword!==n)throw new Error("ajv implementation error");var u=t.dependencies;if(null===u||void 0===u?void 0:u.some((function(e){return!Object.prototype.hasOwnProperty.call(r,e)})))throw new Error("parent schema must have dependencies of ".concat(n,": ").concat(u.join(",")));if(t.validateSchema&&!t.validateSchema(r[n])){var s='keyword "'.concat(n,'" value is invalid at path "').concat(i,'": ')+a.errorsText(t.validateSchema.errors);if("log"!==o.validateSchema)throw new Error(s);a.logger.error(s)}}},5579:function(e,t,n){"use strict";var r,o,a,i,u,s=n(319).default,c=n(8655).default;Object.defineProperty(t,"__esModule",{value:!0}),t.extendSubschemaMode=t.extendSubschemaData=t.getSubschema=void 0;var l=n(4105),f=n(4648);t.getSubschema=function(e,t){var n=t.keyword,a=t.schemaProp,i=t.schema,u=t.schemaPath,s=t.errSchemaPath,d=t.topSchemaRef;if(void 0!==n&&void 0!==i)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==n){var p=e.schema[n];return void 0===a?{schema:p,schemaPath:(0,l._)(r||(r=c(["","",""])),e.schemaPath,(0,l.getProperty)(n)),errSchemaPath:"".concat(e.errSchemaPath,"/").concat(n)}:{schema:p[a],schemaPath:(0,l._)(o||(o=c(["","","",""])),e.schemaPath,(0,l.getProperty)(n),(0,l.getProperty)(a)),errSchemaPath:"".concat(e.errSchemaPath,"/").concat(n,"/").concat((0,f.escapeFragment)(a))}}if(void 0!==i){if(void 0===u||void 0===s||void 0===d)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:i,schemaPath:u,topSchemaRef:d,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')},t.extendSubschemaData=function(e,t,n){var r=n.dataProp,o=n.dataPropType,d=n.data,p=n.dataTypes,h=n.propertyName;if(void 0!==d&&void 0!==r)throw new Error('both "data" and "dataProp" passed, only one allowed');var v=t.gen;if(void 0!==r){var m=t.errorPath,y=t.dataPathArr,g=t.opts;b(v.let("data",(0,l._)(a||(a=c(["","",""])),t.data,(0,l.getProperty)(r)),!0)),e.errorPath=(0,l.str)(i||(i=c(["","",""])),m,(0,f.getErrorPath)(r,o,g.jsPropertySyntax)),e.parentDataProperty=(0,l._)(u||(u=c(["",""])),r),e.dataPathArr=[].concat(s(y),[e.parentDataProperty])}function b(n){e.data=n,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[].concat(s(t.dataNames),[n])}void 0!==d&&(b(d instanceof l.Name?d:v.let("data",d,!0)),void 0!==h&&(e.propertyName=h)),p&&(e.dataTypes=p)},t.extendSubschemaMode=function(e,t){var n=t.jtdDiscriminator,r=t.jtdMetadata,o=t.compositeRule,a=t.createErrors,i=t.allErrors;void 0!==o&&(e.compositeRule=o),void 0!==a&&(e.createErrors=a),void 0!==i&&(e.allErrors=i),e.jtdDiscriminator=n,e.jtdMetadata=r}},6422:function(e,t,n){"use strict";var r=n(3269).default,o=n(7757),a=n(8926).default,i=n(4575).default,u=n(3913).default,s=n(1109).default;Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var c=n(2262);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var l=n(4105);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return l._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return l.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return l.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return l.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return l.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return l.CodeGen}});var f=n(5522),d=n(1145),p=n(4091),h=n(8393),v=n(4105),m=n(2225),y=n(2093),g=n(4648),b=n(4775),w=n(8012),_=function(e,t){return new RegExp(e,t)};_.code="new RegExp";var x=["removeAdditional","useDefaults","coerceTypes"],E=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),k={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},S={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function O(e){var t,n,r,o,a,i,u,c,l,f,d,p,h,v,m,y,g,b,x,E,k,S,O,P,C,N=e.strict,j=null===(t=e.code)||void 0===t?void 0:t.optimize,M=!0===j||void 0===j?1:j||0,T=null!==(r=null===(n=e.code)||void 0===n?void 0:n.regExp)&&void 0!==r?r:_,D=null!==(o=e.uriResolver)&&void 0!==o?o:w.default;return{strictSchema:null===(i=null!==(a=e.strictSchema)&&void 0!==a?a:N)||void 0===i||i,strictNumbers:null===(c=null!==(u=e.strictNumbers)&&void 0!==u?u:N)||void 0===c||c,strictTypes:null!==(f=null!==(l=e.strictTypes)&&void 0!==l?l:N)&&void 0!==f?f:"log",strictTuples:null!==(p=null!==(d=e.strictTuples)&&void 0!==d?d:N)&&void 0!==p?p:"log",strictRequired:null!==(v=null!==(h=e.strictRequired)&&void 0!==h?h:N)&&void 0!==v&&v,code:e.code?s(s({},e.code),{},{optimize:M,regExp:T}):{optimize:M,regExp:T},loopRequired:null!==(m=e.loopRequired)&&void 0!==m?m:200,loopEnum:null!==(y=e.loopEnum)&&void 0!==y?y:200,meta:null===(g=e.meta)||void 0===g||g,messages:null===(b=e.messages)||void 0===b||b,inlineRefs:null===(x=e.inlineRefs)||void 0===x||x,schemaId:null!==(E=e.schemaId)&&void 0!==E?E:"$id",addUsedSchema:null===(k=e.addUsedSchema)||void 0===k||k,validateSchema:null===(S=e.validateSchema)||void 0===S||S,validateFormats:null===(O=e.validateFormats)||void 0===O||O,unicodeRegExp:null===(P=e.unicodeRegExp)||void 0===P||P,int32range:null===(C=e.int32range)||void 0===C||C,uriResolver:D}}var P=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(this,e),this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts=s(s({},t),O(t));var n=this.opts.code,r=n.es5,o=n.lines;this.scope=new v.ValueScope({scope:{},prefixes:E,es5:r,lines:o}),this.logger=A(t.logger);var a=t.validateFormats;t.validateFormats=!1,this.RULES=(0,p.getRules)(),C.call(this,k,t,"NOT SUPPORTED"),C.call(this,S,t,"DEPRECATED","warn"),this._metaOpts=D.call(this),t.formats&&M.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&T.call(this,t.keywords),"object"==typeof t.meta&&this.addMetaSchema(t.meta),j.call(this),t.validateFormats=a}return u(e,[{key:"_addVocabularies",value:function(){this.addKeyword("$async")}},{key:"_addDefaultMetaSchema",value:function(){var e=this.opts,t=e.$data,n=e.meta,r=e.schemaId,o=b;"id"===r&&((o=s({},b)).id=o.$id,delete o.$id),n&&t&&this.addMetaSchema(o,o[r],!1)}},{key:"defaultMeta",value:function(){var e=this.opts,t=e.meta,n=e.schemaId;return this.opts.defaultMeta="object"==typeof t?t[n]||t:void 0}},{key:"validate",value:function(e,t){var n;if("string"==typeof e){if(!(n=this.getSchema(e)))throw new Error('no schema with key or ref "'.concat(e,'"'))}else n=this.compile(e);var r=n(t);return"$async"in n||(this.errors=n.errors),r}},{key:"compile",value:function(e,t){var n=this._addSchema(e,t);return n.validate||this._compileSchemaEnv(n)}},{key:"compileAsync",value:function(e,t){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");var n=this.opts.loadSchema;return r.call(this,e,t);function r(e,t){return i.apply(this,arguments)}function i(){return(i=a(o.mark((function e(t,n){var r;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,u.call(this,t.$schema);case 2:return r=this._addSchema(t,n),e.abrupt("return",r.validate||c.call(this,r));case 4:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}function u(e){return s.apply(this,arguments)}function s(){return(s=a(o.mark((function e(t){return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t||this.getSchema(t)){e.next=3;break}return e.next=3,r.call(this,{$ref:t},!0);case 3:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}function c(e){return l.apply(this,arguments)}function l(){return(l=a(o.mark((function e(t){return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.abrupt("return",this._compileSchemaEnv(t));case 4:if(e.prev=4,e.t0=e.catch(0),e.t0 instanceof d.default){e.next=8;break}throw e.t0;case 8:return f.call(this,e.t0),e.next=11,p.call(this,e.t0.missingSchema);case 11:return e.abrupt("return",c.call(this,t));case 12:case"end":return e.stop()}}),e,this,[[0,4]])})))).apply(this,arguments)}function f(e){var t=e.missingSchema,n=e.missingRef;if(this.refs[t])throw new Error("AnySchema ".concat(t," is loaded but ").concat(n," cannot be resolved"))}function p(e){return h.apply(this,arguments)}function h(){return(h=a(o.mark((function e(n){var r;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,v.call(this,n);case 2:if(r=e.sent,this.refs[n]){e.next=6;break}return e.next=6,u.call(this,r.$schema);case 6:this.refs[n]||this.addSchema(r,n,t);case 7:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}function v(e){return m.apply(this,arguments)}function m(){return(m=a(o.mark((function e(t){var r;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r=this._loading[t])){e.next=3;break}return e.abrupt("return",r);case 3:return e.prev=3,e.next=6,this._loading[t]=n(t);case 6:return e.abrupt("return",e.sent);case 7:return e.prev=7,delete this._loading[t],e.finish(7);case 10:case"end":return e.stop()}}),e,this,[[3,,7,10]])})))).apply(this,arguments)}}},{key:"addSchema",value:function(e,t,n){var o,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.opts.validateSchema;if(Array.isArray(e)){var i,u=r(e);try{for(u.s();!(i=u.n()).done;){var s=i.value;this.addSchema(s,void 0,n,a)}}catch(l){u.e(l)}finally{u.f()}return this}if("object"===typeof e){var c=this.opts.schemaId;if(void 0!==(o=e[c])&&"string"!=typeof o)throw new Error("schema ".concat(c," must be string"))}return t=(0,m.normalizeId)(t||o),this._checkUnique(t),this.schemas[t]=this._addSchema(e,n,t,a,!0),this}},{key:"addMetaSchema",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.opts.validateSchema;return this.addSchema(e,t,!0,n),this}},{key:"validateSchema",value:function(e,t){if("boolean"==typeof e)return!0;var n;if(void 0!==(n=e.$schema)&&"string"!=typeof n)throw new Error("$schema must be a string");if(!(n=n||this.opts.defaultMeta||this.defaultMeta()))return this.logger.warn("meta-schema not available"),this.errors=null,!0;var r=this.validate(n,e);if(!r&&t){var o="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(o);this.logger.error(o)}return r}},{key:"getSchema",value:function(e){for(var t;"string"==typeof(t=N.call(this,e));)e=t;if(void 0===t){var n=this.opts.schemaId,r=new h.SchemaEnv({schema:{},schemaId:n});if(!(t=h.resolveSchema.call(this,r,e)))return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}},{key:"removeSchema",value:function(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":var t=N.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this;case"object":var n=e;this._cache.delete(n);var r=e[this.opts.schemaId];return r&&(r=(0,m.normalizeId)(r),delete this.schemas[r],delete this.refs[r]),this;default:throw new Error("ajv.removeSchema: invalid parameter")}}},{key:"addVocabulary",value:function(e){var t,n=r(e);try{for(n.s();!(t=n.n()).done;){var o=t.value;this.addKeyword(o)}}catch(a){n.e(a)}finally{n.f()}return this}},{key:"addKeyword",value:function(e,t){var n,r=this;if("string"==typeof e)n=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=n);else{if("object"!=typeof e||void 0!==t)throw new Error("invalid addKeywords parameters");if(n=(t=e).keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(L.call(this,n,t),!t)return(0,g.eachItem)(n,(function(e){return z.call(r,e)})),this;F.call(this,t);var o=s(s({},t),{},{type:(0,y.getJSONTypes)(t.type),schemaType:(0,y.getJSONTypes)(t.schemaType)});return(0,g.eachItem)(n,0===o.type.length?function(e){return z.call(r,e,o)}:function(e){return o.type.forEach((function(t){return z.call(r,e,o,t)}))}),this}},{key:"getKeyword",value:function(e){var t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}},{key:"removeKeyword",value:function(e){var t=this.RULES;delete t.keywords[e],delete t.all[e];var n,o=r(t.rules);try{for(o.s();!(n=o.n()).done;){var a=n.value,i=a.rules.findIndex((function(t){return t.keyword===e}));i>=0&&a.rules.splice(i,1)}}catch(u){o.e(u)}finally{o.f()}return this}},{key:"addFormat",value:function(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}},{key:"errorsText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.errors,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.separator,r=void 0===n?", ":n,o=t.dataVar,a=void 0===o?"data":o;return e&&0!==e.length?e.map((function(e){return"".concat(a).concat(e.instancePath," ").concat(e.message)})).reduce((function(e,t){return e+r+t})):"No errors"}},{key:"$dataMetaSchema",value:function(e,t){var n=this.RULES.all;e=JSON.parse(JSON.stringify(e));var o,a=r(t);try{for(a.s();!(o=a.n()).done;){var i,u=o.value.split("/").slice(1),s=e,c=r(u);try{for(c.s();!(i=c.n()).done;){s=s[i.value]}}catch(h){c.e(h)}finally{c.f()}for(var l in n){var f=n[l];if("object"==typeof f){var d=f.definition.$data,p=s[l];d&&p&&(s[l]=B(p))}}}}catch(h){a.e(h)}finally{a.f()}return e}},{key:"_removeAllSchemas",value:function(e,t){for(var n in e){var r=e[n];t&&!t.test(n)||("string"==typeof r?delete e[n]:r&&!r.meta&&(this._cache.delete(r.schema),delete e[n]))}}},{key:"_addSchema",value:function(e,t,n){var r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.opts.validateSchema,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.opts.addUsedSchema,i=this.opts.schemaId;if("object"==typeof e)r=e[i];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof e)throw new Error("schema must be object or boolean")}var u=this._cache.get(e);if(void 0!==u)return u;n=(0,m.normalizeId)(r||n);var s=m.getSchemaRefs.call(this,e,n);return u=new h.SchemaEnv({schema:e,schemaId:i,meta:t,baseId:n,localRefs:s}),this._cache.set(u.schema,u),a&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=u),o&&this.validateSchema(e,!0),u}},{key:"_checkUnique",value:function(e){if(this.schemas[e]||this.refs[e])throw new Error('schema with key or id "'.concat(e,'" already exists'))}},{key:"_compileSchemaEnv",value:function(e){if(e.meta?this._compileMetaSchema(e):h.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}},{key:"_compileMetaSchema",value:function(e){var t=this.opts;this.opts=this._metaOpts;try{h.compileSchema.call(this,e)}finally{this.opts=t}}}]),e}();function C(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"error";for(var o in e){var a=o;a in t&&this.logger[r]("".concat(n,": option ").concat(o,". ").concat(e[a]))}}function N(e){return e=(0,m.normalizeId)(e),this.schemas[e]||this.refs[e]}function j(){var e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(var t in e)this.addSchema(e[t],t)}function M(){for(var e in this.opts.formats){var t=this.opts.formats[e];t&&this.addFormat(e,t)}}function T(e){if(Array.isArray(e))this.addVocabulary(e);else for(var t in this.logger.warn("keywords option as map is deprecated, pass array"),e){var n=e[t];n.keyword||(n.keyword=t),this.addKeyword(n)}}function D(){var e,t=s({},this.opts),n=r(x);try{for(n.s();!(e=n.n()).done;){delete t[e.value]}}catch(o){n.e(o)}finally{n.f()}return t}t.default=P,P.ValidationError=f.default,P.MissingRefError=d.default;var I={log:function(){},warn:function(){},error:function(){}};function A(e){if(!1===e)return I;if(void 0===e)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}var R=/^[a-z_$][a-z0-9_$:-]*$/i;function L(e,t){var n=this.RULES;if((0,g.eachItem)(e,(function(e){if(n.keywords[e])throw new Error("Keyword ".concat(e," is already defined"));if(!R.test(e))throw new Error("Keyword ".concat(e," has invalid name"))})),t&&t.$data&&!("code"in t)&&!("validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function z(e,t,n){var r,o=this,a=null===t||void 0===t?void 0:t.post;if(n&&a)throw new Error('keyword with "post" flag cannot have "type"');var i=this.RULES,u=a?i.post:i.rules.find((function(e){return e.type===n}));if(u||(u={type:n,rules:[]},i.rules.push(u)),i.keywords[e]=!0,t){var c={keyword:e,definition:s(s({},t),{},{type:(0,y.getJSONTypes)(t.type),schemaType:(0,y.getJSONTypes)(t.schemaType)})};t.before?$.call(this,u,c,t.before):u.rules.push(c),i.all[e]=c,null===(r=t.implements)||void 0===r||r.forEach((function(e){return o.addKeyword(e)}))}}function $(e,t,n){var r=e.rules.findIndex((function(e){return e.keyword===n}));r>=0?e.rules.splice(r,0,t):(e.rules.push(t),this.logger.warn("rule ".concat(n," is not defined")))}function F(e){var t=e.metaSchema;void 0!==t&&(e.$data&&this.opts.$data&&(t=B(t)),e.validateSchema=this.compile(t,!0))}var U={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function B(e){return{anyOf:[e,U]}}},8089:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(8262);r.code='require("ajv/dist/runtime/equal").default',t.default=r},3759:function(e,t){"use strict";function n(e){for(var t,n=e.length,r=0,o=0;o<n;)r++,(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<n&&56320===(64512&(t=e.charCodeAt(o)))&&o++;return r}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,n.code='require("ajv/dist/runtime/ucs2length").default'},8012:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(23);r.code='require("ajv/dist/runtime/uri").default',t.default=r},5522:function(e,t,n){"use strict";var r=n(3913).default,o=n(4575).default,a=n(2205).default,i=n(9842).default,u=n(5957).default;Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){a(n,e);var t=i(n);function n(e){var r;return o(this,n),(r=t.call(this,"validation failed")).errors=e,r.ajv=r.validation=!0,r}return r(n)}(u(Error));t.default=s},8875:function(e,t,n){"use strict";var r,o,a,i,u,s=n(8655).default;Object.defineProperty(t,"__esModule",{value:!0}),t.validateAdditionalItems=void 0;var c=n(4105),l=n(4648),f={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:function(e){var t=e.params.len;return(0,c.str)(r||(r=s(["must NOT have more than "," items"])),t)},params:function(e){var t=e.params.len;return(0,c._)(o||(o=s(["{limit: ","}"])),t)}},code:function(e){var t=e.parentSchema,n=e.it,r=t.items;Array.isArray(r)?d(e,r):(0,l.checkStrictMode)(n,'"additionalItems" is ignored when "items" is not an array of schemas')}};function d(e,t){var n=e.gen,r=e.schema,o=e.data,f=e.keyword,d=e.it;d.items=!0;var p=n.const("len",(0,c._)(a||(a=s(["",".length"])),o));if(!1===r)e.setParams({len:t.length}),e.pass((0,c._)(i||(i=s([""," <= ",""])),p,t.length));else if("object"==typeof r&&!(0,l.alwaysValidSchema)(d,r)){var h=n.var("valid",(0,c._)(u||(u=s([""," <= ",""])),p,t.length));n.if((0,c.not)(h),(function(){return function(r){n.forRange("i",t.length,p,(function(t){e.subschema({keyword:f,dataProp:t,dataPropType:l.Type.Num},r),d.allErrors||n.if((0,c.not)(r),(function(){return n.break()}))}))}(h)})),e.ok(h)}}t.validateAdditionalItems=d,t.default=f},9279:function(e,t,n){"use strict";var r,o,a,i,u,s=n(319).default,c=n(8655).default;Object.defineProperty(t,"__esModule",{value:!0});var l=n(1580),f=n(4105),d=n(8317),p=n(4648),h={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:function(e){var t=e.params;return(0,f._)(r||(r=c(["{additionalProperty: ","}"])),t.additionalProperty)}},code:function(e){var t=e.gen,n=e.schema,r=e.parentSchema,h=e.data,v=e.errsCount,m=e.it;if(!v)throw new Error("ajv implementation error");var y=m.allErrors,g=m.opts;if(m.props=!0,"all"===g.removeAdditional||!(0,p.alwaysValidSchema)(m,n)){var b=(0,l.allSchemaProperties)(r.properties),w=(0,l.allSchemaProperties)(r.patternProperties);t.forIn("key",h,(function(n){b.length||w.length?t.if(function(n){var o;if(b.length>8){var u=(0,p.schemaRefOrVal)(m,r.properties,"properties");o=(0,l.isOwnProperty)(t,u,n)}else o=b.length?f.or.apply(void 0,s(b.map((function(e){return(0,f._)(a||(a=c([""," === ",""])),n,e)})))):f.nil;return w.length&&(o=f.or.apply(void 0,[o].concat(s(w.map((function(t){return(0,f._)(i||(i=c(["",".test(",")"])),(0,l.usePattern)(e,t),n)})))))),(0,f.not)(o)}(n),(function(){return x(n)})):x(n)})),e.ok((0,f._)(o||(o=c([""," === ",""])),v,d.default.errors))}function _(e){t.code((0,f._)(u||(u=c(["delete ","[","]"])),h,e))}function x(r){if("all"===g.removeAdditional||g.removeAdditional&&!1===n)_(r);else{if(!1===n)return e.setParams({additionalProperty:r}),e.error(),void(y||t.break());if("object"==typeof n&&!(0,p.alwaysValidSchema)(m,n)){var o=t.name("valid");"failing"===g.removeAdditional?(E(r,o,!1),t.if((0,f.not)(o),(function(){e.reset(),_(r)}))):(E(r,o),y||t.if((0,f.not)(o),(function(){return t.break()})))}}}function E(t,n,r){var o={keyword:"additionalProperties",dataProp:t,dataPropType:p.Type.Str};!1===r&&Object.assign(o,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(o,n)}}};t.default=h},8955:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4648),o={keyword:"allOf",schemaType:"array",code:function(e){var t=e.gen,n=e.schema,o=e.it;if(!Array.isArray(n))throw new Error("ajv implementation error");var a=t.name("valid");n.forEach((function(t,n){if(!(0,r.alwaysValidSchema)(o,t)){var i=e.subschema({keyword:"allOf",schemaProp:n},a);e.ok(a),e.mergeEvaluated(i)}}))}};t.default=o},7182:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:n(1580).validateUnion,error:{message:"must match a schema in anyOf"}};t.default=r},4497:function(e,t,n){"use strict";var r,o,a,i,u,s,c,l,f,d,p,h,v=n(8655).default;Object.defineProperty(t,"__esModule",{value:!0});var m=n(4105),y=n(4648),g={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:function(e){var t=e.params,n=t.min,a=t.max;return void 0===a?(0,m.str)(r||(r=v(["must contain at least "," valid item(s)"])),n):(0,m.str)(o||(o=v(["must contain at least "," and no more than "," valid item(s)"])),n,a)},params:function(e){var t=e.params,n=t.min,r=t.max;return void 0===r?(0,m._)(a||(a=v(["{minContains: ","}"])),n):(0,m._)(i||(i=v(["{minContains: ",", maxContains: ","}"])),n,r)}},code:function(e){var t,n,r=e.gen,o=e.schema,a=e.parentSchema,i=e.data,g=e.it,b=a.minContains,w=a.maxContains;g.opts.next?(t=void 0===b?1:b,n=w):t=1;var _=r.const("len",(0,m._)(u||(u=v(["",".length"])),i));if(e.setParams({min:t,max:n}),void 0!==n||0!==t){if(void 0!==n&&t>n)return(0,y.checkStrictMode)(g,'"minContains" > "maxContains" is always invalid'),void e.fail();if((0,y.alwaysValidSchema)(g,o)){var x=(0,m._)(s||(s=v([""," >= ",""])),_,t);return void 0!==n&&(x=(0,m._)(c||(c=v([""," && "," <= ",""])),x,_,n)),void e.pass(x)}g.items=!0;var E=r.name("valid");void 0===n&&1===t?S(E,(function(){return r.if(E,(function(){return r.break()}))})):0===t?(r.let(E,!0),void 0!==n&&r.if((0,m._)(l||(l=v(["",".length > 0"])),i),k)):(r.let(E,!1),k()),e.result(E,(function(){return e.reset()}))}else(0,y.checkStrictMode)(g,'"minContains" == 0 without "maxContains": "contains" keyword ignored');function k(){var e=r.name("_valid"),o=r.let("count",0);S(e,(function(){return r.if(e,(function(){return function(e){r.code((0,m._)(f||(f=v(["","++"])),e)),void 0===n?r.if((0,m._)(d||(d=v([""," >= ",""])),e,t),(function(){return r.assign(E,!0).break()})):(r.if((0,m._)(p||(p=v([""," > ",""])),e,n),(function(){return r.assign(E,!1).break()})),1===t?r.assign(E,!0):r.if((0,m._)(h||(h=v([""," >= ",""])),e,t),(function(){return r.assign(E,!0)})))}(o)}))}))}function S(t,n){r.forRange("i",0,_,(function(r){e.subschema({keyword:"contains",dataProp:r,dataPropType:y.Type.Num,compositeRule:!0},t),n()}))}}};t.default=g},9031:function(e,t,n){"use strict";var r,o,a,i=n(3269).default,u=n(3038).default,s=n(8655).default;Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;var c=n(4105),l=n(4648),f=n(1580);t.error={message:function(e){var t=e.params,n=t.property,o=t.depsCount,a=t.deps,i=1===o?"property":"properties";return(0,c.str)(r||(r=s(["must have "," "," when property "," is present"])),i,a,n)},params:function(e){var t=e.params,n=t.property,r=t.depsCount,a=t.deps,i=t.missingProperty;return(0,c._)(o||(o=s(["{property: ",",\n missingProperty: ",",\n depsCount: ",",\n deps: ","}"])),n,i,r,a)}};var d={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code:function(e){var t=function(e){var t=e.schema,n={},r={};for(var o in t){if("__proto__"!==o)(Array.isArray(t[o])?n:r)[o]=t[o]}return[n,r]}(e),n=u(t,2),r=n[0],o=n[1];p(e,r),h(e,o)}};function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.schema,n=e.gen,r=e.data,o=e.it;if(0!==Object.keys(t).length){var u=n.let("missing"),l=function(l){var d=t[l];if(0===d.length)return"continue";var p=(0,f.propertyInData)(n,r,l,o.opts.ownProperties);e.setParams({property:l,depsCount:d.length,deps:d.join(", ")}),o.allErrors?n.if(p,(function(){var t,n=i(d);try{for(n.s();!(t=n.n()).done;){var r=t.value;(0,f.checkReportMissingProp)(e,r)}}catch(o){n.e(o)}finally{n.f()}})):(n.if((0,c._)(a||(a=s([""," && (",")"])),p,(0,f.checkMissingProp)(e,d,u))),(0,f.reportMissingProp)(e,u),n.else())};for(var d in t)l(d)}}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.schema,n=e.gen,r=e.data,o=e.keyword,a=e.it,i=n.name("valid"),u=function(u){if((0,l.alwaysValidSchema)(a,t[u]))return"continue";n.if((0,f.propertyInData)(n,r,u,a.opts.ownProperties),(function(){var t=e.subschema({keyword:o,schemaProp:u},i);e.mergeValidEvaluated(t,i)}),(function(){return n.var(i,!0)})),e.ok(i)};for(var s in t)u(s)}t.validatePropertyDeps=p,t.validateSchemaDeps=h,t.default=d},2890:function(e,t,n){"use strict";var r,o,a,i=n(8655).default;Object.defineProperty(t,"__esModule",{value:!0});var u=n(4105),s=n(4648),c={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:function(e){var t=e.params;return(0,u.str)(r||(r=i(['must match "','" schema'])),t.ifClause)},params:function(e){var t=e.params;return(0,u._)(o||(o=i(["{failingKeyword: ","}"])),t.ifClause)}},code:function(e){var t=e.gen,n=e.parentSchema,r=e.it;void 0===n.then&&void 0===n.else&&(0,s.checkStrictMode)(r,'"if" without "then" and "else" is ignored');var o=l(r,"then"),c=l(r,"else");if(o||c){var f=t.let("valid",!0),d=t.name("_valid");if(function(){var t=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},d);e.mergeEvaluated(t)}(),e.reset(),o&&c){var p=t.let("ifClause");e.setParams({ifClause:p}),t.if(d,h("then",p),h("else",p))}else o?t.if(d,h("then")):t.if((0,u.not)(d),h("else"));e.pass(f,(function(){return e.error(!0)}))}function h(n,r){return function(){var o=e.subschema({keyword:n},d);t.assign(f,d),e.mergeValidEvaluated(o,f),r?t.assign(r,(0,u._)(a||(a=i(["",""])),n)):e.setParams({ifClause:n})}}}};function l(e,t){var n=e.schema[t];return void 0!==n&&!(0,s.alwaysValidSchema)(e,n)}t.default=c},7040:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(8875),o=n(304),a=n(3318),i=n(6216),u=n(4497),s=n(9031),c=n(274),l=n(9279),f=n(5144),d=n(9137),p=n(691),h=n(7182),v=n(4234),m=n(8955),y=n(2890),g=n(2464);t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=[p.default,h.default,v.default,m.default,y.default,g.default,c.default,l.default,s.default,f.default,d.default];return e?t.push(o.default,i.default):t.push(r.default,a.default),t.push(u.default),t}},3318:function(e,t,n){"use strict";var r,o,a=n(8655).default;Object.defineProperty(t,"__esModule",{value:!0}),t.validateTuple=void 0;var i=n(4105),u=n(4648),s=n(1580),c={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code:function(e){var t=e.schema,n=e.it;if(Array.isArray(t))return l(e,"additionalItems",t);n.items=!0,(0,u.alwaysValidSchema)(n,t)||e.ok((0,s.validateArray)(e))}};function l(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.schema,s=e.gen,c=e.parentSchema,l=e.data,f=e.keyword,d=e.it;v(c),d.opts.unevaluated&&n.length&&!0!==d.items&&(d.items=u.mergeEvaluated.items(s,n.length,d.items));var p=s.name("valid"),h=s.const("len",(0,i._)(r||(r=a(["",".length"])),l));function v(e){var r=d.opts,o=d.errSchemaPath,a=n.length,i=a===e.minItems&&(a===e.maxItems||!1===e[t]);if(r.strictTuples&&!i){var s='"'.concat(f,'" is ').concat(a,"-tuple, but minItems or maxItems/").concat(t,' are not specified or different at path "').concat(o,'"');(0,u.checkStrictMode)(d,s,r.strictTuples)}}n.forEach((function(t,n){(0,u.alwaysValidSchema)(d,t)||(s.if((0,i._)(o||(o=a([""," > ",""])),h,n),(function(){return e.subschema({keyword:f,schemaProp:n,dataProp:n},p)})),e.ok(p))}))}t.validateTuple=l,t.default=c},6216:function(e,t,n){"use strict";var r,o,a=n(8655).default;Object.defineProperty(t,"__esModule",{value:!0});var i=n(4105),u=n(4648),s=n(1580),c=n(8875),l={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:function(e){var t=e.params.len;return(0,i.str)(r||(r=a(["must NOT have more than "," items"])),t)},params:function(e){var t=e.params.len;return(0,i._)(o||(o=a(["{limit: ","}"])),t)}},code:function(e){var t=e.schema,n=e.parentSchema,r=e.it,o=n.prefixItems;r.items=!0,(0,u.alwaysValidSchema)(r,t)||(o?(0,c.validateAdditionalItems)(e,o):e.ok((0,s.validateArray)(e)))}};t.default=l},691:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4648),o={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code:function(e){var t=e.gen,n=e.schema,o=e.it;if((0,r.alwaysValidSchema)(o,n))e.fail();else{var a=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},a),e.failResult(a,(function(){return e.reset()}),(function(){return e.error()}))}},error:{message:"must NOT be valid"}};t.default=o},4234:function(e,t,n){"use strict";var r,o,a,i=n(8655).default;Object.defineProperty(t,"__esModule",{value:!0});var u=n(4105),s=n(4648),c={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:function(e){var t=e.params;return(0,u._)(r||(r=i(["{passingSchemas: ","}"])),t.passing)}},code:function(e){var t=e.gen,n=e.schema,r=e.parentSchema,c=e.it;if(!Array.isArray(n))throw new Error("ajv implementation error");if(!c.opts.discriminator||!r.discriminator){var l=n,f=t.let("valid",!1),d=t.let("passing",null),p=t.name("_valid");e.setParams({passing:d}),t.block((function(){l.forEach((function(n,r){var l;(0,s.alwaysValidSchema)(c,n)?t.var(p,!0):l=e.subschema({keyword:"oneOf",schemaProp:r,compositeRule:!0},p),r>0&&t.if((0,u._)(o||(o=i([""," && ",""])),p,f)).assign(f,!1).assign(d,(0,u._)(a||(a=i(["[",", ","]"])),d,r)).else(),t.if(p,(function(){t.assign(f,!0),t.assign(d,r),l&&e.mergeEvaluated(l,u.Name)}))}))})),e.result(f,(function(){return e.reset()}),(function(){return e.error(!0)}))}}};t.default=c},9137:function(e,t,n){"use strict";var r,o,a=n(8655).default,i=n(3269).default;Object.defineProperty(t,"__esModule",{value:!0});var u=n(1580),s=n(4105),c=n(4648),l=n(4648),f={keyword:"patternProperties",type:"object",schemaType:"object",code:function(e){var t=e.gen,n=e.schema,f=e.data,d=e.parentSchema,p=e.it,h=p.opts,v=(0,u.allSchemaProperties)(n),m=v.filter((function(e){return(0,c.alwaysValidSchema)(p,n[e])}));if(0!==v.length&&(m.length!==v.length||p.opts.unevaluated&&!0!==p.props)){var y=h.strictSchema&&!h.allowMatchingProperties&&d.properties,g=t.name("valid");!0===p.props||p.props instanceof s.Name||(p.props=(0,l.evaluatedPropsToName)(t,p.props));var b=p.props;!function(){var e,n=i(v);try{for(n.s();!(e=n.n()).done;){var r=e.value;y&&w(r),p.allErrors?_(r):(t.var(g,!0),_(r),t.if(g))}}catch(o){n.e(o)}finally{n.f()}}()}function w(e){for(var t in y)new RegExp(e).test(t)&&(0,c.checkStrictMode)(p,"property ".concat(t," matches pattern ").concat(e," (use allowMatchingProperties)"))}function _(n){t.forIn("key",f,(function(i){t.if((0,s._)(r||(r=a(["",".test(",")"])),(0,u.usePattern)(e,n),i),(function(){var r=m.includes(n);r||e.subschema({keyword:"patternProperties",schemaProp:n,dataProp:i,dataPropType:l.Type.Str},g),p.opts.unevaluated&&!0!==b?t.assign((0,s._)(o||(o=a(["","[","]"])),b,i),!0):r||p.allErrors||t.if((0,s.not)(g),(function(){return t.break()}))}))}))}}};t.default=f},304:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3318),o={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:function(e){return(0,r.validateTuple)(e,"items")}};t.default=o},5144:function(e,t,n){"use strict";var r=n(3269).default;Object.defineProperty(t,"__esModule",{value:!0});var o=n(2262),a=n(1580),i=n(4648),u=n(9279),s={keyword:"properties",type:"object",schemaType:"object",code:function(e){var t=e.gen,n=e.schema,s=e.parentSchema,c=e.data,l=e.it;"all"===l.opts.removeAdditional&&void 0===s.additionalProperties&&u.default.code(new o.KeywordCxt(l,u.default,"additionalProperties"));var f,d=(0,a.allSchemaProperties)(n),p=r(d);try{for(p.s();!(f=p.n()).done;){var h=f.value;l.definedProperties.add(h)}}catch(x){p.e(x)}finally{p.f()}l.opts.unevaluated&&d.length&&!0!==l.props&&(l.props=i.mergeEvaluated.props(t,(0,i.toHash)(d),l.props));var v=d.filter((function(e){return!(0,i.alwaysValidSchema)(l,n[e])}));if(0!==v.length){var m,y=t.name("valid"),g=r(v);try{for(g.s();!(m=g.n()).done;){var b=m.value;w(b)?_(b):(t.if((0,a.propertyInData)(t,c,b,l.opts.ownProperties)),_(b),l.allErrors||t.else().var(y,!0),t.endIf()),e.it.definedProperties.add(b),e.ok(y)}}catch(x){g.e(x)}finally{g.f()}}function w(e){return l.opts.useDefaults&&!l.compositeRule&&void 0!==n[e].default}function _(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},y)}}};t.default=s},274:function(e,t,n){"use strict";var r,o=n(8655).default;Object.defineProperty(t,"__esModule",{value:!0});var a=n(4105),i=n(4648),u={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:function(e){var t=e.params;return(0,a._)(r||(r=o(["{propertyName: ","}"])),t.propertyName)}},code:function(e){var t=e.gen,n=e.schema,r=e.data,o=e.it;if(!(0,i.alwaysValidSchema)(o,n)){var u=t.name("valid");t.forIn("key",r,(function(n){e.setParams({propertyName:n}),e.subschema({keyword:"propertyNames",data:n,dataTypes:["string"],propertyName:n,compositeRule:!0},u),t.if((0,a.not)(u),(function(){e.error(!0),o.allErrors||t.break()}))})),e.ok(u)}}};t.default=u},2464:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4648),o={keyword:["then","else"],schemaType:["object","boolean"],code:function(e){var t=e.keyword,n=e.parentSchema,o=e.it;void 0===n.if&&(0,r.checkStrictMode)(o,'"'.concat(t,'" without "if" is ignored'))}};t.default=o},1580:function(e,t,n){"use strict";var r,o,a,i,u,s,c,l,f,d,p,h,v,m,y,g=n(319).default,b=n(8655).default;Object.defineProperty(t,"__esModule",{value:!0}),t.validateUnion=t.validateArray=t.usePattern=t.callValidateCode=t.schemaProperties=t.allSchemaProperties=t.noPropertyInData=t.propertyInData=t.isOwnProperty=t.hasPropFunc=t.reportMissingProp=t.checkMissingProp=t.checkReportMissingProp=void 0;var w=n(4105),_=n(4648),x=n(8317),E=n(4648);function k(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,w._)(a||(a=b(["Object.prototype.hasOwnProperty"])))})}function S(e,t,n){return(0,w._)(i||(i=b(["",".call(",", ",")"])),k(e),t,n)}function O(e,t,n,r){var o=(0,w._)(c||(c=b(["",""," === undefined"])),t,(0,w.getProperty)(n));return r?(0,w.or)(o,(0,w.not)(S(e,t,n))):o}function P(e){return e?Object.keys(e).filter((function(e){return"__proto__"!==e})):[]}t.checkReportMissingProp=function(e,t){var n=e.gen,o=e.data,a=e.it;n.if(O(n,o,t,a.opts.ownProperties),(function(){e.setParams({missingProperty:(0,w._)(r||(r=b(["",""])),t)},!0),e.error()}))},t.checkMissingProp=function(e,t,n){var r=e.gen,a=e.data,i=e.it.opts;return w.or.apply(void 0,g(t.map((function(e){return(0,w.and)(O(r,a,e,i.ownProperties),(0,w._)(o||(o=b([""," = ",""])),n,e))}))))},t.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},t.hasPropFunc=k,t.isOwnProperty=S,t.propertyInData=function(e,t,n,r){var o=(0,w._)(u||(u=b(["",""," !== undefined"])),t,(0,w.getProperty)(n));return r?(0,w._)(s||(s=b([""," && ",""])),o,S(e,t,n)):o},t.noPropertyInData=O,t.allSchemaProperties=P,t.schemaProperties=function(e,t){return P(t).filter((function(n){return!(0,_.alwaysValidSchema)(e,t[n])}))},t.callValidateCode=function(e,t,n,r){var o=e.schemaCode,a=e.data,i=e.it,u=i.gen,s=i.topSchemaRef,c=i.schemaPath,h=i.errorPath,v=e.it,m=r?(0,w._)(l||(l=b(["",", ",", ","",""])),o,a,s,c):a,y=[[x.default.instancePath,(0,w.strConcat)(x.default.instancePath,h)],[x.default.parentData,v.parentData],[x.default.parentDataProperty,v.parentDataProperty],[x.default.rootData,x.default.rootData]];v.opts.dynamicRef&&y.push([x.default.dynamicAnchors,x.default.dynamicAnchors]);var g=(0,w._)(f||(f=b(["",", ",""])),m,u.object.apply(u,y));return n!==w.nil?(0,w._)(d||(d=b(["",".call(",", ",")"])),t,n,g):(0,w._)(p||(p=b(["","(",")"])),t,g)};var C=(0,w._)(h||(h=b(["new RegExp"])));t.usePattern=function(e,t){var n=e.gen,r=e.it.opts,o=r.unicodeRegExp?"u":"",a=r.code.regExp,i=a(t,o);return n.scopeValue("pattern",{key:i.toString(),ref:i,code:(0,w._)(v||(v=b(["","(",", ",")"])),"new RegExp"===a.code?C:(0,E.useFunc)(n,a),t,o)})},t.validateArray=function(e){var t=e.gen,n=e.data,r=e.keyword,o=e.it,a=t.name("valid");if(o.allErrors){var i=t.let("valid",!0);return u((function(){return t.assign(i,!1)})),i}return t.var(a,!0),u((function(){return t.break()})),a;function u(o){var i=t.const("len",(0,w._)(m||(m=b(["",".length"])),n));t.forRange("i",0,i,(function(n){e.subschema({keyword:r,dataProp:n,dataPropType:_.Type.Num},a),t.if((0,w.not)(a),o)}))}},t.validateUnion=function(e){var t=e.gen,n=e.schema,r=e.keyword,o=e.it;if(!Array.isArray(n))throw new Error("ajv implementation error");if(!n.some((function(e){return(0,_.alwaysValidSchema)(o,e)}))||o.opts.unevaluated){var a=t.let("valid",!1),i=t.name("_valid");t.block((function(){return n.forEach((function(n,o){var u=e.subschema({keyword:r,schemaProp:o,compositeRule:!0},i);t.assign(a,(0,w._)(y||(y=b([""," || ",""])),a,i)),e.mergeValidEvaluated(u,i)||t.if((0,w.not)(a))}))})),e.result(a,(function(){return e.reset()}),(function(){return e.error(!0)}))}}},2860:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={keyword:"id",code:function(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};t.default=n},2007:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2860),o=n(7992),a=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",r.default,o.default];t.default=a},7992:function(e,t,n){"use strict";var r,o,a,i,u,s,c,l,f,d=n(8655).default;Object.defineProperty(t,"__esModule",{value:!0}),t.callRef=t.getValidate=void 0;var p=n(1145),h=n(1580),v=n(4105),m=n(8317),y=n(8393),g=n(4648),b={keyword:"$ref",schemaType:"string",code:function(e){var t=e.gen,n=e.schema,o=e.it,a=o.baseId,i=o.schemaEnv,u=o.validateName,s=o.opts,c=o.self,l=i.root;if(("#"===n||"#/"===n)&&a===l.baseId)return function(){if(i===l)return _(e,u,i,i.$async);var n=t.scopeValue("root",{ref:l});return _(e,(0,v._)(r||(r=d(["",".validate"])),n),l,l.$async)}();var f=y.resolveRef.call(c,l,a,n);if(void 0===f)throw new p.default(o.opts.uriResolver,a,n);return f instanceof y.SchemaEnv?function(t){var n=w(e,t);_(e,n,t,t.$async)}(f):function(r){var o=t.scopeValue("schema",!0===s.code.source?{ref:r,code:(0,v.stringify)(r)}:{ref:r}),a=t.name("valid"),i=e.subschema({schema:r,dataTypes:[],schemaPath:v.nil,topSchemaRef:o,errSchemaPath:n},a);e.mergeEvaluated(i),e.ok(a)}(f)}};function w(e,t){var n=e.gen;return t.validate?n.scopeValue("validate",{ref:t.validate}):(0,v._)(o||(o=d(["",".validate"])),n.scopeValue("wrapper",{ref:t}))}function _(e,t,n,r){var o=e.gen,p=e.it,y=p.allErrors,b=p.schemaEnv,w=p.opts.passContext?m.default.this:v.nil;function _(e){var t=(0,v._)(u||(u=d(["",".errors"])),e);o.assign(m.default.vErrors,(0,v._)(s||(s=d([""," === null ? "," : ",".concat(",")"])),m.default.vErrors,t,m.default.vErrors,t)),o.assign(m.default.errors,(0,v._)(c||(c=d(["",".length"])),m.default.vErrors))}function x(e){var t;if(p.opts.unevaluated){var r=null===(t=null===n||void 0===n?void 0:n.validate)||void 0===t?void 0:t.evaluated;if(!0!==p.props)if(r&&!r.dynamicProps)void 0!==r.props&&(p.props=g.mergeEvaluated.props(o,r.props,p.props));else{var a=o.var("props",(0,v._)(l||(l=d(["",".evaluated.props"])),e));p.props=g.mergeEvaluated.props(o,a,p.props,v.Name)}if(!0!==p.items)if(r&&!r.dynamicItems)void 0!==r.items&&(p.items=g.mergeEvaluated.items(o,r.items,p.items));else{var i=o.var("items",(0,v._)(f||(f=d(["",".evaluated.items"])),e));p.items=g.mergeEvaluated.items(o,i,p.items,v.Name)}}}r?function(){if(!b.$async)throw new Error("async schema referenced by sync schema");var n=o.let("valid");o.try((function(){o.code((0,v._)(a||(a=d(["await ",""])),(0,h.callValidateCode)(e,t,w))),x(t),y||o.assign(n,!0)}),(function(e){o.if((0,v._)(i||(i=d(["!("," instanceof ",")"])),e,p.ValidationError),(function(){return o.throw(e)})),_(e),y||o.assign(n,!1)})),e.ok(n)}():e.result((0,h.callValidateCode)(e,t,w),(function(){return x(t)}),(function(){return _(t)}))}t.getValidate=w,t.callRef=_,t.default=b},5184:function(e,t,n){"use strict";var r,o,a,i,u=n(3269).default,s=n(8655).default;Object.defineProperty(t,"__esModule",{value:!0});var c=n(4105),l=n(5930),f=n(8393),d=n(4648),p={keyword:"discriminator",type:"object",schemaType:"object",error:{message:function(e){var t=e.params,n=t.discrError,r=t.tagName;return n===l.DiscrError.Tag?'tag "'.concat(r,'" must be string'):'value of tag "'.concat(r,'" must be in oneOf')},params:function(e){var t=e.params,n=t.discrError,o=t.tag,a=t.tagName;return(0,c._)(r||(r=s(["{error: ",", tag: ",", tagValue: ","}"])),n,a,o)}},code:function(e){var t=e.gen,n=e.data,r=e.schema,p=e.parentSchema,h=e.it,v=p.oneOf;if(!h.opts.discriminator)throw new Error("discriminator: requires discriminator option");var m=r.propertyName;if("string"!=typeof m)throw new Error("discriminator: requires propertyName");if(r.mapping)throw new Error("discriminator: mapping is not supported");if(!v)throw new Error("discriminator: requires oneOf keyword");var y=t.let("valid",!1),g=t.const("tag",(0,c._)(o||(o=s(["","",""])),n,(0,c.getProperty)(m)));function b(n){var r=t.name("valid"),o=e.subschema({keyword:"oneOf",schemaProp:n},r);return e.mergeEvaluated(o,c.Name),r}t.if((0,c._)(a||(a=s(["typeof ",' == "string"'])),g),(function(){return function(){var n=function(){for(var e,t={},n=s(p),r=!0,o=0;o<v.length;o++){var a=v[o];(null===a||void 0===a?void 0:a.$ref)&&!(0,d.schemaHasRulesButRef)(a,h.self.RULES)&&(a=f.resolveRef.call(h.self,h.schemaEnv.root,h.baseId,null===a||void 0===a?void 0:a.$ref))instanceof f.SchemaEnv&&(a=a.schema);var i=null===(e=null===a||void 0===a?void 0:a.properties)||void 0===e?void 0:e[m];if("object"!=typeof i)throw new Error('discriminator: oneOf subschemas (or referenced schemas) must have "properties/'.concat(m,'"'));r=r&&(n||s(a)),c(i,o)}if(!r)throw new Error('discriminator: "'.concat(m,'" must be required'));return t;function s(e){var t=e.required;return Array.isArray(t)&&t.includes(m)}function c(e,t){if(e.const)l(e.const,t);else{if(!e.enum)throw new Error('discriminator: "properties/'.concat(m,'" must have "const" or "enum"'));var n,r=u(e.enum);try{for(r.s();!(n=r.n()).done;){l(n.value,t)}}catch(o){r.e(o)}finally{r.f()}}}function l(e,n){if("string"!=typeof e||e in t)throw new Error('discriminator: "'.concat(m,'" values must be unique strings'));t[e]=n}}();for(var r in t.if(!1),n)t.elseIf((0,c._)(i||(i=s([""," === ",""])),g,r)),t.assign(y,b(n[r]));t.else(),e.error(!1,{discrError:l.DiscrError.Mapping,tag:g,tagName:m}),t.endIf()}()}),(function(){return e.error(!1,{discrError:l.DiscrError.Tag,tag:g,tagName:m})})),e.ok(y)}};t.default=p},5930:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DiscrError=void 0,function(e){e.Tag="tag",e.Mapping="mapping"}(t.DiscrError||(t.DiscrError={}))},1783:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2007),o=n(9110),a=n(7040),i=n(1502),u=n(884),s=[r.default,o.default,(0,a.default)(),i.default,u.metadataVocabulary,u.contentVocabulary];t.default=s},6616:function(e,t,n){"use strict";var r,o,a,i,u,s,c,l,f,d,p,h,v,m,y,g,b,w=n(3038).default,_=n(8655).default;Object.defineProperty(t,"__esModule",{value:!0});var x=n(4105),E={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:function(e){var t=e.schemaCode;return(0,x.str)(r||(r=_(['must match format "','"'])),t)},params:function(e){var t=e.schemaCode;return(0,x._)(o||(o=_(["{format: ","}"])),t)}},code:function(e,t){var n=e.gen,r=e.data,o=e.$data,E=e.schema,k=e.schemaCode,S=e.it,O=S.opts,P=S.errSchemaPath,C=S.schemaEnv,N=S.self;O.validateFormats&&(o?function(){var o=n.scopeValue("formats",{ref:N.formats,code:O.code.formats}),v=n.const("fDef",(0,x._)(a||(a=_(["","[","]"])),o,k)),m=n.let("fType"),y=n.let("format");n.if((0,x._)(i||(i=_(["typeof ",' == "object" && !('," instanceof RegExp)"])),v,v),(function(){return n.assign(m,(0,x._)(u||(u=_(["",'.type || "string"'])),v)).assign(y,(0,x._)(s||(s=_(["",".validate"])),v))}),(function(){return n.assign(m,(0,x._)(c||(c=_(['"string"'])))).assign(y,v)})),e.fail$data((0,x.or)(!1===O.strictSchema?x.nil:(0,x._)(l||(l=_([""," && !",""])),k,y),function(){var e=C.$async?(0,x._)(f||(f=_(["(",".async ? await ","(",") : ","(","))"])),v,y,r,y,r):(0,x._)(d||(d=_(["","(",")"])),y,r),n=(0,x._)(p||(p=_(["(typeof ",' == "function" ? '," : ",".test(","))"])),y,e,y,r);return(0,x._)(h||(h=_([""," && "," !== true && "," === "," && !",""])),y,y,m,t,n)}()))}():function(){var o=N.formats[E];if(!o)return void function(){if(!1===O.strictSchema)return void N.logger.warn(e());throw new Error(e());function e(){return'unknown format "'.concat(E,'" ignored in schema at path "').concat(P,'"')}}();if(!0===o)return;var a=function(e){var t=e instanceof RegExp?(0,x.regexpCode)(e):O.code.formats?(0,x._)(v||(v=_(["","",""])),O.code.formats,(0,x.getProperty)(E)):void 0,r=n.scopeValue("formats",{key:E,ref:e,code:t});if("object"==typeof e&&!(e instanceof RegExp))return[e.type||"string",e.validate,(0,x._)(m||(m=_(["",".validate"])),r)];return["string",e,r]}(o),i=w(a,3),u=i[0],s=i[1],c=i[2];u===t&&e.pass(function(){if("object"==typeof o&&!(o instanceof RegExp)&&o.async){if(!C.$async)throw new Error("async format in sync schema");return(0,x._)(y||(y=_(["await ","(",")"])),c,r)}return"function"==typeof s?(0,x._)(g||(g=_(["","(",")"])),c,r):(0,x._)(b||(b=_(["",".test(",")"])),c,r)}())}())}};t.default=E},1502:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=[n(6616).default];t.default=r},884:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.contentVocabulary=t.metadataVocabulary=void 0,t.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],t.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]},3605:function(e,t,n){"use strict";var r,o,a,i=n(8655).default;Object.defineProperty(t,"__esModule",{value:!0});var u=n(4105),s=n(4648),c=n(8089),l={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:function(e){var t=e.schemaCode;return(0,u._)(r||(r=i(["{allowedValue: ","}"])),t)}},code:function(e){var t=e.gen,n=e.data,r=e.$data,l=e.schemaCode,f=e.schema;r||f&&"object"==typeof f?e.fail$data((0,u._)(o||(o=i(["!","(",", ",")"])),(0,s.useFunc)(t,c.default),n,l)):e.fail((0,u._)(a||(a=i([""," !== ",""])),f,n))}};t.default=l},9525:function(e,t,n){"use strict";var r,o,a,i,u=n(319).default,s=n(8655).default;Object.defineProperty(t,"__esModule",{value:!0});var c=n(4105),l=n(4648),f=n(8089),d={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:function(e){var t=e.schemaCode;return(0,c._)(r||(r=s(["{allowedValues: ","}"])),t)}},code:function(e){var t=e.gen,n=e.data,r=e.$data,d=e.schema,p=e.schemaCode,h=e.it;if(!r&&0===d.length)throw new Error("enum must have non-empty array");var v,m,y=d.length>=h.opts.loopEnum,g=function(){return null!==v&&void 0!==v?v:v=(0,l.useFunc)(t,f.default)};if(y||r)m=t.let("valid"),e.block$data(m,(function(){t.assign(m,!1),t.forOf("v",p,(function(e){return t.if((0,c._)(o||(o=s(["","(",", ",")"])),g(),n,e),(function(){return t.assign(m,!0).break()}))}))}));else{if(!Array.isArray(d))throw new Error("ajv implementation error");var b=t.const("vSchema",p);m=c.or.apply(void 0,u(d.map((function(e,t){return function(e,t){var r=d[t];return"object"===typeof r&&null!==r?(0,c._)(a||(a=s(["","(",", ","[","])"])),g(),n,e,t):(0,c._)(i||(i=s([""," === ",""])),n,r)}(b,t)}))))}e.pass(m)}};t.default=d},9110:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6694),o=n(273),a=n(7254),i=n(2991),u=n(6245),s=n(6006),c=n(6755),l=n(7140),f=n(3605),d=n(9525),p=[r.default,o.default,a.default,i.default,u.default,s.default,c.default,l.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},f.default,d.default];t.default=p},6755:function(e,t,n){"use strict";var r,o,a,i=n(8655).default;Object.defineProperty(t,"__esModule",{value:!0});var u=n(4105),s={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message:function(e){var t=e.keyword,n=e.schemaCode,o="maxItems"===t?"more":"fewer";return(0,u.str)(r||(r=i(["must NOT have "," than "," items"])),o,n)},params:function(e){var t=e.schemaCode;return(0,u._)(o||(o=i(["{limit: ","}"])),t)}},code:function(e){var t=e.keyword,n=e.data,r=e.schemaCode,o="maxItems"===t?u.operators.GT:u.operators.LT;e.fail$data((0,u._)(a||(a=i(["",".length "," ",""])),n,o,r))}};t.default=s},7254:function(e,t,n){"use strict";var r,o,a,i,u,s=n(8655).default;Object.defineProperty(t,"__esModule",{value:!0});var c=n(4105),l=n(4648),f=n(3759),d={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message:function(e){var t=e.keyword,n=e.schemaCode,o="maxLength"===t?"more":"fewer";return(0,c.str)(r||(r=s(["must NOT have "," than "," characters"])),o,n)},params:function(e){var t=e.schemaCode;return(0,c._)(o||(o=s(["{limit: ","}"])),t)}},code:function(e){var t=e.keyword,n=e.data,r=e.schemaCode,o=e.it,d="maxLength"===t?c.operators.GT:c.operators.LT,p=!1===o.opts.unicode?(0,c._)(a||(a=s(["",".length"])),n):(0,c._)(i||(i=s(["","(",")"])),(0,l.useFunc)(e.gen,f.default),n);e.fail$data((0,c._)(u||(u=s([""," "," ",""])),p,d,r))}};t.default=d},6694:function(e,t,n){"use strict";var r,o,a,i=n(8655).default;Object.defineProperty(t,"__esModule",{value:!0});var u=n(4105),s=u.operators,c={maximum:{okStr:"<=",ok:s.LTE,fail:s.GT},minimum:{okStr:">=",ok:s.GTE,fail:s.LT},exclusiveMaximum:{okStr:"<",ok:s.LT,fail:s.GTE},exclusiveMinimum:{okStr:">",ok:s.GT,fail:s.LTE}},l={message:function(e){var t=e.keyword,n=e.schemaCode;return(0,u.str)(r||(r=i(["must be "," ",""])),c[t].okStr,n)},params:function(e){var t=e.keyword,n=e.schemaCode;return(0,u._)(o||(o=i(["{comparison: ",", limit: ","}"])),c[t].okStr,n)}},f={keyword:Object.keys(c),type:"number",schemaType:"number",$data:!0,error:l,code:function(e){var t=e.keyword,n=e.data,r=e.schemaCode;e.fail$data((0,u._)(a||(a=i([""," "," "," || isNaN(",")"])),n,c[t].fail,r,n))}};t.default=f},6245:function(e,t,n){"use strict";var r,o,a,i=n(8655).default;Object.defineProperty(t,"__esModule",{value:!0});var u=n(4105),s={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message:function(e){var t=e.keyword,n=e.schemaCode,o="maxProperties"===t?"more":"fewer";return(0,u.str)(r||(r=i(["must NOT have "," than "," properties"])),o,n)},params:function(e){var t=e.schemaCode;return(0,u._)(o||(o=i(["{limit: ","}"])),t)}},code:function(e){var t=e.keyword,n=e.data,r=e.schemaCode,o="maxProperties"===t?u.operators.GT:u.operators.LT;e.fail$data((0,u._)(a||(a=i(["Object.keys(",").length "," ",""])),n,o,r))}};t.default=s},273:function(e,t,n){"use strict";var r,o,a,i,u,s=n(8655).default;Object.defineProperty(t,"__esModule",{value:!0});var c=n(4105),l={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:function(e){var t=e.schemaCode;return(0,c.str)(r||(r=s(["must be multiple of ",""])),t)},params:function(e){var t=e.schemaCode;return(0,c._)(o||(o=s(["{multipleOf: ","}"])),t)}},code:function(e){var t=e.gen,n=e.data,r=e.schemaCode,o=e.it.opts.multipleOfPrecision,l=t.let("res"),f=o?(0,c._)(a||(a=s(["Math.abs(Math.round(",") - ",") > 1e-",""])),l,l,o):(0,c._)(i||(i=s([""," !== parseInt(",")"])),l,l);e.fail$data((0,c._)(u||(u=s(["("," === 0 || ("," = ","/",", ","))"])),r,l,n,r,f))}};t.default=l},2991:function(e,t,n){"use strict";var r,o,a,i,u=n(8655).default;Object.defineProperty(t,"__esModule",{value:!0});var s=n(1580),c=n(4105),l={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:function(e){var t=e.schemaCode;return(0,c.str)(r||(r=u(['must match pattern "','"'])),t)},params:function(e){var t=e.schemaCode;return(0,c._)(o||(o=u(["{pattern: ","}"])),t)}},code:function(e){var t=e.data,n=e.$data,r=e.schema,o=e.schemaCode,l=e.it.opts.unicodeRegExp?"u":"",f=n?(0,c._)(a||(a=u(["(new RegExp(",", ","))"])),o,l):(0,s.usePattern)(e,r);e.fail$data((0,c._)(i||(i=u(["!",".test(",")"])),f,t))}};t.default=l},6006:function(e,t,n){"use strict";var r,o,a=n(3269).default,i=n(8655).default;Object.defineProperty(t,"__esModule",{value:!0});var u=n(1580),s=n(4105),c=n(4648),l={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:function(e){var t=e.params.missingProperty;return(0,s.str)(r||(r=i(["must have required property '","'"])),t)},params:function(e){var t=e.params.missingProperty;return(0,s._)(o||(o=i(["{missingProperty: ","}"])),t)}},code:function(e){var t=e.gen,n=e.schema,r=e.schemaCode,o=e.data,i=e.$data,l=e.it,f=l.opts;if(i||0!==n.length){var d=n.length>=f.loopRequired;if(l.allErrors?function(){if(d||i)e.block$data(s.nil,w);else{var t,r=a(n);try{for(r.s();!(t=r.n()).done;){var o=t.value;(0,u.checkReportMissingProp)(e,o)}}catch(c){r.e(c)}finally{r.f()}}}():function(){var a=t.let("missing");if(d||i){var c=t.let("valid",!0);e.block$data(c,(function(){return function(n,a){e.setParams({missingProperty:n}),t.forOf(n,r,(function(){t.assign(a,(0,u.propertyInData)(t,o,n,f.ownProperties)),t.if((0,s.not)(a),(function(){e.error(),t.break()}))}),s.nil)}(a,c)})),e.ok(c)}else t.if((0,u.checkMissingProp)(e,n,a)),(0,u.reportMissingProp)(e,a),t.else()}(),f.strictRequired){var p,h=e.parentSchema.properties,v=e.it.definedProperties,m=a(n);try{for(m.s();!(p=m.n()).done;){var y=p.value;if(void 0===(null===h||void 0===h?void 0:h[y])&&!v.has(y)){var g=l.schemaEnv.baseId+l.errSchemaPath,b='required property "'.concat(y,'" is not defined at "').concat(g,'" (strictRequired)');(0,c.checkStrictMode)(l,b,l.opts.strictRequired)}}}catch(_){m.e(_)}finally{m.f()}}}function w(){t.forOf("prop",r,(function(n){e.setParams({missingProperty:n}),t.if((0,u.noPropertyInData)(t,o,n,f.ownProperties),(function(){return e.error()}))}))}}};t.default=l},7140:function(e,t,n){"use strict";var r,o,a,i,u,s,c,l,f,d,p,h,v,m,y,g,b,w=n(8655).default;Object.defineProperty(t,"__esModule",{value:!0});var _=n(2093),x=n(4105),E=n(4648),k=n(8089),S={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:function(e){var t=e.params,n=t.i,o=t.j;return(0,x.str)(r||(r=w(["must NOT have duplicate items (items ## "," and "," are identical)"])),o,n)},params:function(e){var t=e.params,n=t.i,r=t.j;return(0,x._)(o||(o=w(["{i: ",", j: ","}"])),n,r)}},code:function(e){var t=e.gen,n=e.data,r=e.$data,o=e.schema,S=e.parentSchema,O=e.schemaCode,P=e.it;if(r||o){var C=t.let("valid"),N=S.items?(0,_.getSchemaTypes)(S.items):[];e.block$data(C,(function(){var r=t.let("i",(0,x._)(i||(i=w(["",".length"])),n)),o=t.let("j");e.setParams({i:r,j:o}),t.assign(C,!0),t.if((0,x._)(u||(u=w([""," > 1"])),r),(function(){return(N.length>0&&!N.some((function(e){return"object"===e||"array"===e}))?j:M)(r,o)}))}),(0,x._)(a||(a=w([""," === false"])),O)),e.ok(C)}function j(r,o){var a=t.name("item"),i=(0,_.checkDataTypes)(N,a,P.opts.strictNumbers,_.DataType.Wrong),u=t.const("indices",(0,x._)(s||(s=w(["{}"]))));t.for((0,x._)(c||(c=w([";","--;"])),r),(function(){t.let(a,(0,x._)(l||(l=w(["","[","]"])),n,r)),t.if(i,(0,x._)(f||(f=w(["continue"])))),N.length>1&&t.if((0,x._)(d||(d=w(["typeof ",' == "string"'])),a),(0,x._)(p||(p=w(["",' += "_"'])),a)),t.if((0,x._)(h||(h=w(["typeof ","[",'] == "number"'])),u,a),(function(){t.assign(o,(0,x._)(v||(v=w(["","[","]"])),u,a)),e.error(),t.assign(C,!1).break()})).code((0,x._)(m||(m=w(["","[","] = ",""])),u,a,r))}))}function M(r,o){var a=(0,E.useFunc)(t,k.default),i=t.name("outer");t.label(i).for((0,x._)(y||(y=w([";","--;"])),r),(function(){return t.for((0,x._)(g||(g=w([""," = ","; ","--;"])),o,r,o),(function(){return t.if((0,x._)(b||(b=w(["","(","[","], ","[","])"])),a,n,r,n,o),(function(){e.error(),t.assign(C,!1).break(i)}))}))}))}}};t.default=S},9790:function(e,t,n){e.exports={graphlib:n(2990),layout:n(6456),debug:n(7920),util:{time:n(8392).time,notime:n(8392).notime},version:n(6206)}},2212:function(e,t,n){"use strict";var r=n(8899),o=n(3857);e.exports={run:function(e){var t="greedy"===e.graph().acyclicer?o(e,function(e){return function(t){return e.edge(t).weight}}(e)):function(e){var t=[],n={},o={};function a(i){r.has(o,i)||(o[i]=!0,n[i]=!0,r.forEach(e.outEdges(i),(function(e){r.has(n,e.w)?t.push(e):a(e.w)})),delete n[i])}return r.forEach(e.nodes(),a),t}(e);r.forEach(t,(function(t){var n=e.edge(t);e.removeEdge(t),n.forwardName=t.name,n.reversed=!0,e.setEdge(t.w,t.v,n,r.uniqueId("rev"))}))},undo:function(e){r.forEach(e.edges(),(function(t){var n=e.edge(t);if(n.reversed){e.removeEdge(t);var r=n.forwardName;delete n.reversed,delete n.forwardName,e.setEdge(t.w,t.v,n,r)}}))}}},4093:function(e,t,n){var r=n(8899),o=n(8392);function a(e,t,n,r,a,i){var u={width:0,height:0,rank:i,borderType:t},s=a[t][i-1],c=o.addDummyNode(e,"border",u,n);a[t][i]=c,e.setParent(c,r),s&&e.setEdge(s,c,{weight:1})}e.exports=function(e){r.forEach(e.children(),(function t(n){var o=e.children(n),i=e.node(n);if(o.length&&r.forEach(o,t),r.has(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var u=i.minRank,s=i.maxRank+1;u<s;++u)a(e,"borderLeft","_bl",n,i,u),a(e,"borderRight","_br",n,i,u)}}))}},5384:function(e,t,n){"use strict";var r=n(8899);function o(e){r.forEach(e.nodes(),(function(t){a(e.node(t))})),r.forEach(e.edges(),(function(t){a(e.edge(t))}))}function a(e){var t=e.width;e.width=e.height,e.height=t}function i(e){e.y=-e.y}function u(e){var t=e.x;e.x=e.y,e.y=t}e.exports={adjust:function(e){var t=e.graph().rankdir.toLowerCase();"lr"!==t&&"rl"!==t||o(e)},undo:function(e){var t=e.graph().rankdir.toLowerCase();"bt"!==t&&"rl"!==t||function(e){r.forEach(e.nodes(),(function(t){i(e.node(t))})),r.forEach(e.edges(),(function(t){var n=e.edge(t);r.forEach(n.points,i),r.has(n,"y")&&i(n)}))}(e);"lr"!==t&&"rl"!==t||(!function(e){r.forEach(e.nodes(),(function(t){u(e.node(t))})),r.forEach(e.edges(),(function(t){var n=e.edge(t);r.forEach(n.points,u),r.has(n,"x")&&u(n)}))}(e),o(e))}}},5639:function(e){function t(){var e={};e._next=e._prev=e,this._sentinel=e}function n(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function r(e,t){if("_next"!==e&&"_prev"!==e)return t}e.exports=t,t.prototype.dequeue=function(){var e=this._sentinel,t=e._prev;if(t!==e)return n(t),t},t.prototype.enqueue=function(e){var t=this._sentinel;e._prev&&e._next&&n(e),e._next=t._next,t._next._prev=e,t._next=e,e._prev=t},t.prototype.toString=function(){for(var e=[],t=this._sentinel,n=t._prev;n!==t;)e.push(JSON.stringify(n,r)),n=n._prev;return"["+e.join(", ")+"]"}},7920:function(e,t,n){var r=n(8899),o=n(8392),a=n(2990).Graph;e.exports={debugOrdering:function(e){var t=o.buildLayerMatrix(e),n=new a({compound:!0,multigraph:!0}).setGraph({});return r.forEach(e.nodes(),(function(t){n.setNode(t,{label:t}),n.setParent(t,"layer"+e.node(t).rank)})),r.forEach(e.edges(),(function(e){n.setEdge(e.v,e.w,{},e.name)})),r.forEach(t,(function(e,t){var o="layer"+t;n.setNode(o,{rank:"same"}),r.reduce(e,(function(e,t){return n.setEdge(e,t,{style:"invis"}),t}))})),n}}},2990:function(e,t,n){var r;try{r=n(6118)}catch(o){}r||(r=window.graphlib),e.exports=r},3857:function(e,t,n){var r=n(8899),o=n(2990).Graph,a=n(5639);e.exports=function(e,t){if(e.nodeCount()<=1)return[];var n=function(e,t){var n=new o,i=0,u=0;r.forEach(e.nodes(),(function(e){n.setNode(e,{v:e,in:0,out:0})})),r.forEach(e.edges(),(function(e){var r=n.edge(e.v,e.w)||0,o=t(e),a=r+o;n.setEdge(e.v,e.w,a),u=Math.max(u,n.node(e.v).out+=o),i=Math.max(i,n.node(e.w).in+=o)}));var c=r.range(u+i+3).map((function(){return new a})),l=i+1;return r.forEach(n.nodes(),(function(e){s(c,l,n.node(e))})),{graph:n,buckets:c,zeroIdx:l}}(e,t||i),c=function(e,t,n){var r,o=[],a=t[t.length-1],i=t[0];for(;e.nodeCount();){for(;r=i.dequeue();)u(e,t,n,r);for(;r=a.dequeue();)u(e,t,n,r);if(e.nodeCount())for(var s=t.length-2;s>0;--s)if(r=t[s].dequeue()){o=o.concat(u(e,t,n,r,!0));break}}return o}(n.graph,n.buckets,n.zeroIdx);return r.flatten(r.map(c,(function(t){return e.outEdges(t.v,t.w)})),!0)};var i=r.constant(1);function u(e,t,n,o,a){var i=a?[]:void 0;return r.forEach(e.inEdges(o.v),(function(r){var o=e.edge(r),u=e.node(r.v);a&&i.push({v:r.v,w:r.w}),u.out-=o,s(t,n,u)})),r.forEach(e.outEdges(o.v),(function(r){var o=e.edge(r),a=r.w,i=e.node(a);i.in-=o,s(t,n,i)})),e.removeNode(o.v),i}function s(e,t,n){n.out?n.in?e[n.out-n.in+t].enqueue(n):e[e.length-1].enqueue(n):e[0].enqueue(n)}},6456:function(e,t,n){"use strict";var r=n(8899),o=n(2212),a=n(1898),i=n(6744),u=n(8392).normalizeRanks,s=n(7652),c=n(8392).removeEmptyRanks,l=n(1652),f=n(4093),d=n(5384),p=n(7348),h=n(3090),v=n(8392),m=n(2990).Graph;e.exports=function(e,t){var n=t&&t.debugTiming?v.time:v.notime;n("layout",(function(){var t=n(" buildLayoutGraph",(function(){return function(e){var t=new m({multigraph:!0,compound:!0}),n=O(e.graph());return t.setGraph(r.merge({},g,S(n,y),r.pick(n,b))),r.forEach(e.nodes(),(function(n){var o=O(e.node(n));t.setNode(n,r.defaults(S(o,w),_)),t.setParent(n,e.parent(n))})),r.forEach(e.edges(),(function(n){var o=O(e.edge(n));t.setEdge(n,r.merge({},E,S(o,x),r.pick(o,k)))})),t}(e)}));n(" runLayout",(function(){!function(e,t){t(" makeSpaceForEdgeLabels",(function(){!function(e){var t=e.graph();t.ranksep/=2,r.forEach(e.edges(),(function(n){var r=e.edge(n);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===t.rankdir||"BT"===t.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)}))}(e)})),t(" removeSelfEdges",(function(){!function(e){r.forEach(e.edges(),(function(t){if(t.v===t.w){var n=e.node(t.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}}))}(e)})),t(" acyclic",(function(){o.run(e)})),t(" nestingGraph.run",(function(){l.run(e)})),t(" rank",(function(){i(v.asNonCompoundGraph(e))})),t(" injectEdgeLabelProxies",(function(){!function(e){r.forEach(e.edges(),(function(t){var n=e.edge(t);if(n.width&&n.height){var r=e.node(t.v),o={rank:(e.node(t.w).rank-r.rank)/2+r.rank,e:t};v.addDummyNode(e,"edge-proxy",o,"_ep")}}))}(e)})),t(" removeEmptyRanks",(function(){c(e)})),t(" nestingGraph.cleanup",(function(){l.cleanup(e)})),t(" normalizeRanks",(function(){u(e)})),t(" assignRankMinMax",(function(){!function(e){var t=0;r.forEach(e.nodes(),(function(n){var o=e.node(n);o.borderTop&&(o.minRank=e.node(o.borderTop).rank,o.maxRank=e.node(o.borderBottom).rank,t=r.max(t,o.maxRank))})),e.graph().maxRank=t}(e)})),t(" removeEdgeLabelProxies",(function(){!function(e){r.forEach(e.nodes(),(function(t){var n=e.node(t);"edge-proxy"===n.dummy&&(e.edge(n.e).labelRank=n.rank,e.removeNode(t))}))}(e)})),t(" normalize.run",(function(){a.run(e)})),t(" parentDummyChains",(function(){s(e)})),t(" addBorderSegments",(function(){f(e)})),t(" order",(function(){p(e)})),t(" insertSelfEdges",(function(){!function(e){var t=v.buildLayerMatrix(e);r.forEach(t,(function(t){var n=0;r.forEach(t,(function(t,o){var a=e.node(t);a.order=o+n,r.forEach(a.selfEdges,(function(t){v.addDummyNode(e,"selfedge",{width:t.label.width,height:t.label.height,rank:a.rank,order:o+ ++n,e:t.e,label:t.label},"_se")})),delete a.selfEdges}))}))}(e)})),t(" adjustCoordinateSystem",(function(){d.adjust(e)})),t(" position",(function(){h(e)})),t(" positionSelfEdges",(function(){!function(e){r.forEach(e.nodes(),(function(t){var n=e.node(t);if("selfedge"===n.dummy){var r=e.node(n.e.v),o=r.x+r.width/2,a=r.y,i=n.x-o,u=r.height/2;e.setEdge(n.e,n.label),e.removeNode(t),n.label.points=[{x:o+2*i/3,y:a-u},{x:o+5*i/6,y:a-u},{x:o+i,y:a},{x:o+5*i/6,y:a+u},{x:o+2*i/3,y:a+u}],n.label.x=n.x,n.label.y=n.y}}))}(e)})),t(" removeBorderNodes",(function(){!function(e){r.forEach(e.nodes(),(function(t){if(e.children(t).length){var n=e.node(t),o=e.node(n.borderTop),a=e.node(n.borderBottom),i=e.node(r.last(n.borderLeft)),u=e.node(r.last(n.borderRight));n.width=Math.abs(u.x-i.x),n.height=Math.abs(a.y-o.y),n.x=i.x+n.width/2,n.y=o.y+n.height/2}})),r.forEach(e.nodes(),(function(t){"border"===e.node(t).dummy&&e.removeNode(t)}))}(e)})),t(" normalize.undo",(function(){a.undo(e)})),t(" fixupEdgeLabelCoords",(function(){!function(e){r.forEach(e.edges(),(function(t){var n=e.edge(t);if(r.has(n,"x"))switch("l"!==n.labelpos&&"r"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}}))}(e)})),t(" undoCoordinateSystem",(function(){d.undo(e)})),t(" translateGraph",(function(){!function(e){var t=Number.POSITIVE_INFINITY,n=0,o=Number.POSITIVE_INFINITY,a=0,i=e.graph(),u=i.marginx||0,s=i.marginy||0;function c(e){var r=e.x,i=e.y,u=e.width,s=e.height;t=Math.min(t,r-u/2),n=Math.max(n,r+u/2),o=Math.min(o,i-s/2),a=Math.max(a,i+s/2)}r.forEach(e.nodes(),(function(t){c(e.node(t))})),r.forEach(e.edges(),(function(t){var n=e.edge(t);r.has(n,"x")&&c(n)})),t-=u,o-=s,r.forEach(e.nodes(),(function(n){var r=e.node(n);r.x-=t,r.y-=o})),r.forEach(e.edges(),(function(n){var a=e.edge(n);r.forEach(a.points,(function(e){e.x-=t,e.y-=o})),r.has(a,"x")&&(a.x-=t),r.has(a,"y")&&(a.y-=o)})),i.width=n-t+u,i.height=a-o+s}(e)})),t(" assignNodeIntersects",(function(){!function(e){r.forEach(e.edges(),(function(t){var n,r,o=e.edge(t),a=e.node(t.v),i=e.node(t.w);o.points?(n=o.points[0],r=o.points[o.points.length-1]):(o.points=[],n=i,r=a),o.points.unshift(v.intersectRect(a,n)),o.points.push(v.intersectRect(i,r))}))}(e)})),t(" reversePoints",(function(){!function(e){r.forEach(e.edges(),(function(t){var n=e.edge(t);n.reversed&&n.points.reverse()}))}(e)})),t(" acyclic.undo",(function(){o.undo(e)}))}(t,n)})),n(" updateInputGraph",(function(){!function(e,t){r.forEach(e.nodes(),(function(n){var r=e.node(n),o=t.node(n);r&&(r.x=o.x,r.y=o.y,t.children(n).length&&(r.width=o.width,r.height=o.height))})),r.forEach(e.edges(),(function(n){var o=e.edge(n),a=t.edge(n);o.points=a.points,r.has(a,"x")&&(o.x=a.x,o.y=a.y)})),e.graph().width=t.graph().width,e.graph().height=t.graph().height}(e,t)}))}))};var y=["nodesep","edgesep","ranksep","marginx","marginy"],g={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},b=["acyclicer","ranker","rankdir","align"],w=["width","height"],_={width:0,height:0},x=["minlen","weight","width","height","labeloffset"],E={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},k=["labelpos"];function S(e,t){return r.mapValues(r.pick(e,t),Number)}function O(e){var t={};return r.forEach(e,(function(e,n){t[n.toLowerCase()]=e})),t}},8899:function(e,t,n){var r;try{r={cloneDeep:n(8121),constant:n(1547),defaults:n(6933),each:n(9430),filter:n(86),find:n(1211),flatten:n(5506),forEach:n(6514),forIn:n(9144),has:n(7805),isUndefined:n(2530),last:n(5727),map:n(2034),mapValues:n(7702),max:n(9627),merge:n(9286),min:n(6452),minBy:n(3638),now:n(72),pick:n(6460),range:n(6222),reduce:n(5080),sortBy:n(4286),uniqueId:n(804),values:n(2063),zipObject:n(4827)}}catch(o){}r||(r=window._),e.exports=r},1652:function(e,t,n){var r=n(8899),o=n(8392);function a(e,t,n,i,u,s,c){var l=e.children(c);if(l.length){var f=o.addBorderNode(e,"_bt"),d=o.addBorderNode(e,"_bb"),p=e.node(c);e.setParent(f,c),p.borderTop=f,e.setParent(d,c),p.borderBottom=d,r.forEach(l,(function(r){a(e,t,n,i,u,s,r);var o=e.node(r),l=o.borderTop?o.borderTop:r,p=o.borderBottom?o.borderBottom:r,h=o.borderTop?i:2*i,v=l!==p?1:u-s[c]+1;e.setEdge(f,l,{weight:h,minlen:v,nestingEdge:!0}),e.setEdge(p,d,{weight:h,minlen:v,nestingEdge:!0})})),e.parent(c)||e.setEdge(t,f,{weight:0,minlen:u+s[c]})}else c!==t&&e.setEdge(t,c,{weight:0,minlen:n})}e.exports={run:function(e){var t=o.addDummyNode(e,"root",{},"_root"),n=function(e){var t={};function n(o,a){var i=e.children(o);i&&i.length&&r.forEach(i,(function(e){n(e,a+1)})),t[o]=a}return r.forEach(e.children(),(function(e){n(e,1)})),t}(e),i=r.max(r.values(n))-1,u=2*i+1;e.graph().nestingRoot=t,r.forEach(e.edges(),(function(t){e.edge(t).minlen*=u}));var s=function(e){return r.reduce(e.edges(),(function(t,n){return t+e.edge(n).weight}),0)}(e)+1;r.forEach(e.children(),(function(r){a(e,t,u,s,i,n,r)})),e.graph().nodeRankFactor=u},cleanup:function(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,r.forEach(e.edges(),(function(t){e.edge(t).nestingEdge&&e.removeEdge(t)}))}}},1898:function(e,t,n){"use strict";var r=n(8899),o=n(8392);e.exports={run:function(e){e.graph().dummyChains=[],r.forEach(e.edges(),(function(t){!function(e,t){var n,r,a,i=t.v,u=e.node(i).rank,s=t.w,c=e.node(s).rank,l=t.name,f=e.edge(t),d=f.labelRank;if(c===u+1)return;for(e.removeEdge(t),a=0,++u;u<c;++a,++u)f.points=[],r={width:0,height:0,edgeLabel:f,edgeObj:t,rank:u},n=o.addDummyNode(e,"edge",r,"_d"),u===d&&(r.width=f.width,r.height=f.height,r.dummy="edge-label",r.labelpos=f.labelpos),e.setEdge(i,n,{weight:f.weight},l),0===a&&e.graph().dummyChains.push(n),i=n;e.setEdge(i,s,{weight:f.weight},l)}(e,t)}))},undo:function(e){r.forEach(e.graph().dummyChains,(function(t){var n,r=e.node(t),o=r.edgeLabel;for(e.setEdge(r.edgeObj,o);r.dummy;)n=e.successors(t)[0],e.removeNode(t),o.points.push({x:r.x,y:r.y}),"edge-label"===r.dummy&&(o.x=r.x,o.y=r.y,o.width=r.width,o.height=r.height),t=n,r=e.node(t)}))}}},4388:function(e,t,n){var r=n(8899);e.exports=function(e,t,n){var o,a={};r.forEach(n,(function(n){for(var r,i,u=e.parent(n);u;){if((r=e.parent(u))?(i=a[r],a[r]=u):(i=o,o=u),i&&i!==u)return void t.setEdge(i,u);u=r}}))}},5213:function(e,t,n){var r=n(8899);e.exports=function(e,t){return r.map(t,(function(t){var n=e.inEdges(t);if(n.length){var o=r.reduce(n,(function(t,n){var r=e.edge(n),o=e.node(n.v);return{sum:t.sum+r.weight*o.order,weight:t.weight+r.weight}}),{sum:0,weight:0});return{v:t,barycenter:o.sum/o.weight,weight:o.weight}}return{v:t}}))}},1386:function(e,t,n){var r=n(8899),o=n(2990).Graph;e.exports=function(e,t,n){var a=function(e){var t;for(;e.hasNode(t=r.uniqueId("_root")););return t}(e),i=new o({compound:!0}).setGraph({root:a}).setDefaultNodeLabel((function(t){return e.node(t)}));return r.forEach(e.nodes(),(function(o){var u=e.node(o),s=e.parent(o);(u.rank===t||u.minRank<=t&&t<=u.maxRank)&&(i.setNode(o),i.setParent(o,s||a),r.forEach(e[n](o),(function(t){var n=t.v===o?t.w:t.v,a=i.edge(n,o),u=r.isUndefined(a)?0:a.weight;i.setEdge(n,o,{weight:e.edge(t).weight+u})})),r.has(u,"minRank")&&i.setNode(o,{borderLeft:u.borderLeft[t],borderRight:u.borderRight[t]}))})),i}},3862:function(e,t,n){"use strict";var r=n(8899);function o(e,t,n){for(var o=r.zipObject(n,r.map(n,(function(e,t){return t}))),a=r.flatten(r.map(t,(function(t){return r.sortBy(r.map(e.outEdges(t),(function(t){return{pos:o[t.w],weight:e.edge(t).weight}})),"pos")})),!0),i=1;i<n.length;)i<<=1;var u=2*i-1;i-=1;var s=r.map(new Array(u),(function(){return 0})),c=0;return r.forEach(a.forEach((function(e){var t=e.pos+i;s[t]+=e.weight;for(var n=0;t>0;)t%2&&(n+=s[t+1]),s[t=t-1>>1]+=e.weight;c+=e.weight*n}))),c}e.exports=function(e,t){for(var n=0,r=1;r<t.length;++r)n+=o(e,t[r-1],t[r]);return n}},7348:function(e,t,n){"use strict";var r=n(8899),o=n(5586),a=n(3862),i=n(3616),u=n(1386),s=n(4388),c=n(2990).Graph,l=n(8392);function f(e,t,n){return r.map(t,(function(t){return u(e,t,n)}))}function d(e,t){var n=new c;r.forEach(e,(function(e){var o=e.graph().root,a=i(e,o,n,t);r.forEach(a.vs,(function(t,n){e.node(t).order=n})),s(e,n,a.vs)}))}function p(e,t){r.forEach(t,(function(t){r.forEach(t,(function(t,n){e.node(t).order=n}))}))}e.exports=function(e){var t=l.maxRank(e),n=f(e,r.range(1,t+1),"inEdges"),i=f(e,r.range(t-1,-1,-1),"outEdges"),u=o(e);p(e,u);for(var s,c=Number.POSITIVE_INFINITY,h=0,v=0;v<4;++h,++v){d(h%2?n:i,h%4>=2),u=l.buildLayerMatrix(e);var m=a(e,u);m<c&&(v=0,s=r.cloneDeep(u),c=m)}p(e,s)}},5586:function(e,t,n){"use strict";var r=n(8899);e.exports=function(e){var t={},n=r.filter(e.nodes(),(function(t){return!e.children(t).length})),o=r.max(r.map(n,(function(t){return e.node(t).rank}))),a=r.map(r.range(o+1),(function(){return[]}));var i=r.sortBy(n,(function(t){return e.node(t).rank}));return r.forEach(i,(function n(o){if(r.has(t,o))return;t[o]=!0;var i=e.node(o);a[i.rank].push(o),r.forEach(e.successors(o),n)})),a}},1982:function(e,t,n){"use strict";var r=n(8899);e.exports=function(e,t){var n={};return r.forEach(e,(function(e,t){var o=n[e.v]={indegree:0,in:[],out:[],vs:[e.v],i:t};r.isUndefined(e.barycenter)||(o.barycenter=e.barycenter,o.weight=e.weight)})),r.forEach(t.edges(),(function(e){var t=n[e.v],o=n[e.w];r.isUndefined(t)||r.isUndefined(o)||(o.indegree++,t.out.push(n[e.w]))})),function(e){var t=[];function n(e){return function(t){t.merged||(r.isUndefined(t.barycenter)||r.isUndefined(e.barycenter)||t.barycenter>=e.barycenter)&&function(e,t){var n=0,r=0;e.weight&&(n+=e.barycenter*e.weight,r+=e.weight);t.weight&&(n+=t.barycenter*t.weight,r+=t.weight);e.vs=t.vs.concat(e.vs),e.barycenter=n/r,e.weight=r,e.i=Math.min(t.i,e.i),t.merged=!0}(e,t)}}function o(t){return function(n){n.in.push(t),0===--n.indegree&&e.push(n)}}for(;e.length;){var a=e.pop();t.push(a),r.forEach(a.in.reverse(),n(a)),r.forEach(a.out,o(a))}return r.map(r.filter(t,(function(e){return!e.merged})),(function(e){return r.pick(e,["vs","i","barycenter","weight"])}))}(r.filter(n,(function(e){return!e.indegree})))}},3616:function(e,t,n){var r=n(8899),o=n(5213),a=n(1982),i=n(4929);e.exports=function e(t,n,u,s){var c=t.children(n),l=t.node(n),f=l?l.borderLeft:void 0,d=l?l.borderRight:void 0,p={};f&&(c=r.filter(c,(function(e){return e!==f&&e!==d})));var h=o(t,c);r.forEach(h,(function(n){if(t.children(n.v).length){var o=e(t,n.v,u,s);p[n.v]=o,r.has(o,"barycenter")&&(a=n,i=o,r.isUndefined(a.barycenter)?(a.barycenter=i.barycenter,a.weight=i.weight):(a.barycenter=(a.barycenter*a.weight+i.barycenter*i.weight)/(a.weight+i.weight),a.weight+=i.weight))}var a,i}));var v=a(h,u);!function(e,t){r.forEach(e,(function(e){e.vs=r.flatten(e.vs.map((function(e){return t[e]?t[e].vs:e})),!0)}))}(v,p);var m=i(v,s);if(f&&(m.vs=r.flatten([f,m.vs,d],!0),t.predecessors(f).length)){var y=t.node(t.predecessors(f)[0]),g=t.node(t.predecessors(d)[0]);r.has(m,"barycenter")||(m.barycenter=0,m.weight=0),m.barycenter=(m.barycenter*m.weight+y.order+g.order)/(m.weight+2),m.weight+=2}return m}},4929:function(e,t,n){var r=n(8899),o=n(8392);function a(e,t,n){for(var o;t.length&&(o=r.last(t)).i<=n;)t.pop(),e.push(o.vs),n++;return n}e.exports=function(e,t){var n=o.partition(e,(function(e){return r.has(e,"barycenter")})),i=n.lhs,u=r.sortBy(n.rhs,(function(e){return-e.i})),s=[],c=0,l=0,f=0;i.sort((d=!!t,function(e,t){return e.barycenter<t.barycenter?-1:e.barycenter>t.barycenter?1:d?t.i-e.i:e.i-t.i})),f=a(s,u,f),r.forEach(i,(function(e){f+=e.vs.length,s.push(e.vs),c+=e.barycenter*e.weight,l+=e.weight,f=a(s,u,f)}));var d;var p={vs:r.flatten(s,!0)};l&&(p.barycenter=c/l,p.weight=l);return p}},7652:function(e,t,n){var r=n(8899);e.exports=function(e){var t=function(e){var t={},n=0;function o(a){var i=n;r.forEach(e.children(a),o),t[a]={low:i,lim:n++}}return r.forEach(e.children(),o),t}(e);r.forEach(e.graph().dummyChains,(function(n){for(var r=e.node(n),o=r.edgeObj,a=function(e,t,n,r){var o,a,i=[],u=[],s=Math.min(t[n].low,t[r].low),c=Math.max(t[n].lim,t[r].lim);o=n;do{o=e.parent(o),i.push(o)}while(o&&(t[o].low>s||c>t[o].lim));a=o,o=r;for(;(o=e.parent(o))!==a;)u.push(o);return{path:i.concat(u.reverse()),lca:a}}(e,t,o.v,o.w),i=a.path,u=a.lca,s=0,c=i[s],l=!0;n!==o.w;){if(r=e.node(n),l){for(;(c=i[s])!==u&&e.node(c).maxRank<r.rank;)s++;c===u&&(l=!1)}if(!l){for(;s<i.length-1&&e.node(c=i[s+1]).minRank<=r.rank;)s++;c=i[s]}e.setParent(n,c),n=e.successors(n)[0]}}))}},6137:function(e,t,n){"use strict";var r=n(8899),o=n(2990).Graph,a=n(8392);function i(e,t){var n={};return r.reduce(t,(function(t,o){var a=0,i=0,u=t.length,c=r.last(o);return r.forEach(o,(function(t,l){var f=function(e,t){if(e.node(t).dummy)return r.find(e.predecessors(t),(function(t){return e.node(t).dummy}))}(e,t),d=f?e.node(f).order:u;(f||t===c)&&(r.forEach(o.slice(i,l+1),(function(t){r.forEach(e.predecessors(t),(function(r){var o=e.node(r),i=o.order;!(i<a||d<i)||o.dummy&&e.node(t).dummy||s(n,r,t)}))})),i=l+1,a=d)})),o})),n}function u(e,t){var n={};function o(t,o,a,i,u){var c;r.forEach(r.range(o,a),(function(o){c=t[o],e.node(c).dummy&&r.forEach(e.predecessors(c),(function(t){var r=e.node(t);r.dummy&&(r.order<i||r.order>u)&&s(n,t,c)}))}))}return r.reduce(t,(function(t,n){var a,i=-1,u=0;return r.forEach(n,(function(r,s){if("border"===e.node(r).dummy){var c=e.predecessors(r);c.length&&(a=e.node(c[0]).order,o(n,u,s,i,a),u=s,i=a)}o(n,u,n.length,a,t.length)})),n})),n}function s(e,t,n){if(t>n){var r=t;t=n,n=r}var o=e[t];o||(e[t]=o={}),o[n]=!0}function c(e,t,n){if(t>n){var o=t;t=n,n=o}return r.has(e[t],n)}function l(e,t,n,o){var a={},i={},u={};return r.forEach(t,(function(e){r.forEach(e,(function(e,t){a[e]=e,i[e]=e,u[e]=t}))})),r.forEach(t,(function(e){var t=-1;r.forEach(e,(function(e){var s=o(e);if(s.length){s=r.sortBy(s,(function(e){return u[e]}));for(var l=(s.length-1)/2,f=Math.floor(l),d=Math.ceil(l);f<=d;++f){var p=s[f];i[e]===e&&t<u[p]&&!c(n,e,p)&&(i[p]=e,i[e]=a[e]=a[p],t=u[p])}}}))})),{root:a,align:i}}function f(e,t,n,a,i){var u={},s=function(e,t,n,a){var i=new o,u=e.graph(),s=function(e,t,n){return function(o,a,i){var u,s=o.node(a),c=o.node(i),l=0;if(l+=s.width/2,r.has(s,"labelpos"))switch(s.labelpos.toLowerCase()){case"l":u=-s.width/2;break;case"r":u=s.width/2}if(u&&(l+=n?u:-u),u=0,l+=(s.dummy?t:e)/2,l+=(c.dummy?t:e)/2,l+=c.width/2,r.has(c,"labelpos"))switch(c.labelpos.toLowerCase()){case"l":u=c.width/2;break;case"r":u=-c.width/2}return u&&(l+=n?u:-u),u=0,l}}(u.nodesep,u.edgesep,a);return r.forEach(t,(function(t){var o;r.forEach(t,(function(t){var r=n[t];if(i.setNode(r),o){var a=n[o],u=i.edge(a,r);i.setEdge(a,r,Math.max(s(e,t,o),u||0))}o=t}))})),i}(e,t,n,i),c=i?"borderLeft":"borderRight";function l(e,t){for(var n=s.nodes(),r=n.pop(),o={};r;)o[r]?e(r):(o[r]=!0,n.push(r),n=n.concat(t(r))),r=n.pop()}return l((function(e){u[e]=s.inEdges(e).reduce((function(e,t){return Math.max(e,u[t.v]+s.edge(t))}),0)}),s.predecessors.bind(s)),l((function(t){var n=s.outEdges(t).reduce((function(e,t){return Math.min(e,u[t.w]-s.edge(t))}),Number.POSITIVE_INFINITY),r=e.node(t);n!==Number.POSITIVE_INFINITY&&r.borderType!==c&&(u[t]=Math.max(u[t],n))}),s.successors.bind(s)),r.forEach(a,(function(e){u[e]=u[n[e]]})),u}function d(e,t){return r.minBy(r.values(t),(function(t){var n=Number.NEGATIVE_INFINITY,o=Number.POSITIVE_INFINITY;return r.forIn(t,(function(t,r){var a=function(e,t){return e.node(t).width}(e,r)/2;n=Math.max(t+a,n),o=Math.min(t-a,o)})),n-o}))}function p(e,t){var n=r.values(t),o=r.min(n),a=r.max(n);r.forEach(["u","d"],(function(n){r.forEach(["l","r"],(function(i){var u,s=n+i,c=e[s];if(c!==t){var l=r.values(c);(u="l"===i?o-r.min(l):a-r.max(l))&&(e[s]=r.mapValues(c,(function(e){return e+u})))}}))}))}function h(e,t){return r.mapValues(e.ul,(function(n,o){if(t)return e[t.toLowerCase()][o];var a=r.sortBy(r.map(e,o));return(a[1]+a[2])/2}))}e.exports={positionX:function(e){var t,n=a.buildLayerMatrix(e),o=r.merge(i(e,n),u(e,n)),s={};r.forEach(["u","d"],(function(a){t="u"===a?n:r.values(n).reverse(),r.forEach(["l","r"],(function(n){"r"===n&&(t=r.map(t,(function(e){return r.values(e).reverse()})));var i=("u"===a?e.predecessors:e.successors).bind(e),u=l(e,t,o,i),c=f(e,t,u.root,u.align,"r"===n);"r"===n&&(c=r.mapValues(c,(function(e){return-e}))),s[a+n]=c}))}));var c=d(e,s);return p(s,c),h(s,e.graph().align)},findType1Conflicts:i,findType2Conflicts:u,addConflict:s,hasConflict:c,verticalAlignment:l,horizontalCompaction:f,alignCoordinates:p,findSmallestWidthAlignment:d,balance:h}},3090:function(e,t,n){"use strict";var r=n(8899),o=n(8392),a=n(6137).positionX;e.exports=function(e){(function(e){var t=o.buildLayerMatrix(e),n=e.graph().ranksep,a=0;r.forEach(t,(function(t){var o=r.max(r.map(t,(function(t){return e.node(t).height})));r.forEach(t,(function(t){e.node(t).y=a+o/2})),a+=o+n}))})(e=o.asNonCompoundGraph(e)),r.forEach(a(e),(function(t,n){e.node(n).x=t}))}},5378:function(e,t,n){"use strict";var r=n(8899),o=n(2990).Graph,a=n(4441).slack;function i(e,t){return r.forEach(e.nodes(),(function n(o){r.forEach(t.nodeEdges(o),(function(r){var i=r.v,u=o===i?r.w:i;e.hasNode(u)||a(t,r)||(e.setNode(u,{}),e.setEdge(o,u,{}),n(u))}))})),e.nodeCount()}function u(e,t){return r.minBy(t.edges(),(function(n){if(e.hasNode(n.v)!==e.hasNode(n.w))return a(t,n)}))}function s(e,t,n){r.forEach(e.nodes(),(function(e){t.node(e).rank+=n}))}e.exports=function(e){var t,n,r=new o({directed:!1}),c=e.nodes()[0],l=e.nodeCount();r.setNode(c,{});for(;i(r,e)<l;)t=u(r,e),n=r.hasNode(t.v)?a(e,t):-a(e,t),s(r,e,n);return r}},6744:function(e,t,n){"use strict";var r=n(4441).longestPath,o=n(5378),a=n(7986);e.exports=function(e){switch(e.graph().ranker){case"network-simplex":default:u(e);break;case"tight-tree":!function(e){r(e),o(e)}(e);break;case"longest-path":i(e)}};var i=r;function u(e){a(e)}},7986:function(e,t,n){"use strict";var r=n(8899),o=n(5378),a=n(4441).slack,i=n(4441).longestPath,u=n(2990).alg.preorder,s=n(2990).alg.postorder,c=n(8392).simplify;function l(e){e=c(e),i(e);var t,n=o(e);for(p(n),f(n,e);t=v(n);)y(n,e,t,m(n,e,t))}function f(e,t){var n=s(e,e.nodes());n=n.slice(0,n.length-1),r.forEach(n,(function(n){!function(e,t,n){var r=e.node(n).parent;e.edge(n,r).cutvalue=d(e,t,n)}(e,t,n)}))}function d(e,t,n){var o=e.node(n).parent,a=!0,i=t.edge(n,o),u=0;return i||(a=!1,i=t.edge(o,n)),u=i.weight,r.forEach(t.nodeEdges(n),(function(r){var i,s,c=r.v===n,l=c?r.w:r.v;if(l!==o){var f=c===a,d=t.edge(r).weight;if(u+=f?d:-d,i=n,s=l,e.hasEdge(i,s)){var p=e.edge(n,l).cutvalue;u+=f?-p:p}}})),u}function p(e,t){arguments.length<2&&(t=e.nodes()[0]),h(e,{},1,t)}function h(e,t,n,o,a){var i=n,u=e.node(o);return t[o]=!0,r.forEach(e.neighbors(o),(function(a){r.has(t,a)||(n=h(e,t,n,a,o))})),u.low=i,u.lim=n++,a?u.parent=a:delete u.parent,n}function v(e){return r.find(e.edges(),(function(t){return e.edge(t).cutvalue<0}))}function m(e,t,n){var o=n.v,i=n.w;t.hasEdge(o,i)||(o=n.w,i=n.v);var u=e.node(o),s=e.node(i),c=u,l=!1;u.lim>s.lim&&(c=s,l=!0);var f=r.filter(t.edges(),(function(t){return l===g(e,e.node(t.v),c)&&l!==g(e,e.node(t.w),c)}));return r.minBy(f,(function(e){return a(t,e)}))}function y(e,t,n,o){var a=n.v,i=n.w;e.removeEdge(a,i),e.setEdge(o.v,o.w,{}),p(e),f(e,t),function(e,t){var n=r.find(e.nodes(),(function(e){return!t.node(e).parent})),o=u(e,n);o=o.slice(1),r.forEach(o,(function(n){var r=e.node(n).parent,o=t.edge(n,r),a=!1;o||(o=t.edge(r,n),a=!0),t.node(n).rank=t.node(r).rank+(a?o.minlen:-o.minlen)}))}(e,t)}function g(e,t,n){return n.low<=t.lim&&t.lim<=n.lim}e.exports=l,l.initLowLimValues=p,l.initCutValues=f,l.calcCutValue=d,l.leaveEdge=v,l.enterEdge=m,l.exchangeEdges=y},4441:function(e,t,n){"use strict";var r=n(8899);e.exports={longestPath:function(e){var t={};r.forEach(e.sources(),(function n(o){var a=e.node(o);if(r.has(t,o))return a.rank;t[o]=!0;var i=r.min(r.map(e.outEdges(o),(function(t){return n(t.w)-e.edge(t).minlen})));return i!==Number.POSITIVE_INFINITY&&void 0!==i&&null!==i||(i=0),a.rank=i}))},slack:function(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}}},8392:function(e,t,n){"use strict";var r=n(8899),o=n(2990).Graph;function a(e,t,n,o){var a;do{a=r.uniqueId(o)}while(e.hasNode(a));return n.dummy=t,e.setNode(a,n),a}function i(e){return r.max(r.map(e.nodes(),(function(t){var n=e.node(t).rank;if(!r.isUndefined(n))return n})))}e.exports={addDummyNode:a,simplify:function(e){var t=(new o).setGraph(e.graph());return r.forEach(e.nodes(),(function(n){t.setNode(n,e.node(n))})),r.forEach(e.edges(),(function(n){var r=t.edge(n.v,n.w)||{weight:0,minlen:1},o=e.edge(n);t.setEdge(n.v,n.w,{weight:r.weight+o.weight,minlen:Math.max(r.minlen,o.minlen)})})),t},asNonCompoundGraph:function(e){var t=new o({multigraph:e.isMultigraph()}).setGraph(e.graph());return r.forEach(e.nodes(),(function(n){e.children(n).length||t.setNode(n,e.node(n))})),r.forEach(e.edges(),(function(n){t.setEdge(n,e.edge(n))})),t},successorWeights:function(e){var t=r.map(e.nodes(),(function(t){var n={};return r.forEach(e.outEdges(t),(function(t){n[t.w]=(n[t.w]||0)+e.edge(t).weight})),n}));return r.zipObject(e.nodes(),t)},predecessorWeights:function(e){var t=r.map(e.nodes(),(function(t){var n={};return r.forEach(e.inEdges(t),(function(t){n[t.v]=(n[t.v]||0)+e.edge(t).weight})),n}));return r.zipObject(e.nodes(),t)},intersectRect:function(e,t){var n,r,o=e.x,a=e.y,i=t.x-o,u=t.y-a,s=e.width/2,c=e.height/2;if(!i&&!u)throw new Error("Not possible to find intersection inside of the rectangle");Math.abs(u)*s>Math.abs(i)*c?(u<0&&(c=-c),n=c*i/u,r=c):(i<0&&(s=-s),n=s,r=s*u/i);return{x:o+n,y:a+r}},buildLayerMatrix:function(e){var t=r.map(r.range(i(e)+1),(function(){return[]}));return r.forEach(e.nodes(),(function(n){var o=e.node(n),a=o.rank;r.isUndefined(a)||(t[a][o.order]=n)})),t},normalizeRanks:function(e){var t=r.min(r.map(e.nodes(),(function(t){return e.node(t).rank})));r.forEach(e.nodes(),(function(n){var o=e.node(n);r.has(o,"rank")&&(o.rank-=t)}))},removeEmptyRanks:function(e){var t=r.min(r.map(e.nodes(),(function(t){return e.node(t).rank}))),n=[];r.forEach(e.nodes(),(function(r){var o=e.node(r).rank-t;n[o]||(n[o]=[]),n[o].push(r)}));var o=0,a=e.graph().nodeRankFactor;r.forEach(n,(function(t,n){r.isUndefined(t)&&n%a!==0?--o:o&&r.forEach(t,(function(t){e.node(t).rank+=o}))}))},addBorderNode:function(e,t,n,r){var o={width:0,height:0};arguments.length>=4&&(o.rank=n,o.order=r);return a(e,"border",o,t)},maxRank:i,partition:function(e,t){var n={lhs:[],rhs:[]};return r.forEach(e,(function(e){t(e)?n.lhs.push(e):n.rhs.push(e)})),n},time:function(e,t){var n=r.now();try{return t()}finally{console.log(e+" time: "+(r.now()-n)+"ms")}},notime:function(e,t){return t()}}},6206:function(e){e.exports="0.8.5"},8262:function(e){"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,a;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!==o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(a=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!==o--;)if(!Object.prototype.hasOwnProperty.call(n,a[o]))return!1;for(o=r;0!==o--;){var i=a[o];if(!e(t[i],n[i]))return!1}return!0}return t!==t&&n!==n}},6118:function(e,t,n){var r=n(5828);e.exports={Graph:r.Graph,json:n(5710),alg:n(5280),version:r.version}},6666:function(e,t,n){var r=n(980);e.exports=function(e){var t,n={},o=[];function a(o){r.has(n,o)||(n[o]=!0,t.push(o),r.each(e.successors(o),a),r.each(e.predecessors(o),a))}return r.each(e.nodes(),(function(e){t=[],a(e),t.length&&o.push(t)})),o}},672:function(e,t,n){var r=n(980);function o(e,t,n,a,i,u){r.has(a,t)||(a[t]=!0,n||u.push(t),r.each(i(t),(function(t){o(e,t,n,a,i,u)})),n&&u.push(t))}e.exports=function(e,t,n){r.isArray(t)||(t=[t]);var a=(e.isDirected()?e.successors:e.neighbors).bind(e),i=[],u={};return r.each(t,(function(t){if(!e.hasNode(t))throw new Error("Graph does not have node: "+t);o(e,t,"post"===n,u,a,i)})),i}},9919:function(e,t,n){var r=n(4871),o=n(980);e.exports=function(e,t,n){return o.transform(e.nodes(),(function(o,a){o[a]=r(e,a,t,n)}),{})}},4871:function(e,t,n){var r=n(980),o=n(6071);e.exports=function(e,t,n,r){return function(e,t,n,r){var a,i,u={},s=new o,c=function(e){var t=e.v!==a?e.v:e.w,r=u[t],o=n(e),c=i.distance+o;if(o<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+e+" Weight: "+o);c<r.distance&&(r.distance=c,r.predecessor=a,s.decrease(t,c))};e.nodes().forEach((function(e){var n=e===t?0:Number.POSITIVE_INFINITY;u[e]={distance:n},s.add(e,n)}));for(;s.size()>0&&(a=s.removeMin(),(i=u[a]).distance!==Number.POSITIVE_INFINITY);)r(a).forEach(c);return u}(e,String(t),n||a,r||function(t){return e.outEdges(t)})};var a=r.constant(1)},6050:function(e,t,n){var r=n(980),o=n(8172);e.exports=function(e){return r.filter(o(e),(function(t){return t.length>1||1===t.length&&e.hasEdge(t[0],t[0])}))}},5053:function(e,t,n){var r=n(980);e.exports=function(e,t,n){return function(e,t,n){var r={},o=e.nodes();return o.forEach((function(e){r[e]={},r[e][e]={distance:0},o.forEach((function(t){e!==t&&(r[e][t]={distance:Number.POSITIVE_INFINITY})})),n(e).forEach((function(n){var o=n.v===e?n.w:n.v,a=t(n);r[e][o]={distance:a,predecessor:e}}))})),o.forEach((function(e){var t=r[e];o.forEach((function(n){var a=r[n];o.forEach((function(n){var r=a[e],o=t[n],i=a[n],u=r.distance+o.distance;u<i.distance&&(i.distance=u,i.predecessor=o.predecessor)}))}))})),r}(e,t||o,n||function(t){return e.outEdges(t)})};var o=r.constant(1)},5280:function(e,t,n){e.exports={components:n(6666),dijkstra:n(4871),dijkstraAll:n(9919),findCycles:n(6050),floydWarshall:n(5053),isAcyclic:n(810),postorder:n(1189),preorder:n(6743),prim:n(9863),tarjan:n(8172),topsort:n(1731)}},810:function(e,t,n){var r=n(1731);e.exports=function(e){try{r(e)}catch(t){if(t instanceof r.CycleException)return!1;throw t}return!0}},1189:function(e,t,n){var r=n(672);e.exports=function(e,t){return r(e,t,"post")}},6743:function(e,t,n){var r=n(672);e.exports=function(e,t){return r(e,t,"pre")}},9863:function(e,t,n){var r=n(980),o=n(1311),a=n(6071);e.exports=function(e,t){var n,i=new o,u={},s=new a;function c(e){var r=e.v===n?e.w:e.v,o=s.priority(r);if(void 0!==o){var a=t(e);a<o&&(u[r]=n,s.decrease(r,a))}}if(0===e.nodeCount())return i;r.each(e.nodes(),(function(e){s.add(e,Number.POSITIVE_INFINITY),i.setNode(e)})),s.decrease(e.nodes()[0],0);var l=!1;for(;s.size()>0;){if(n=s.removeMin(),r.has(u,n))i.setEdge(n,u[n]);else{if(l)throw new Error("Input graph is not connected: "+e);l=!0}e.nodeEdges(n).forEach(c)}return i}},8172:function(e,t,n){var r=n(980);e.exports=function(e){var t=0,n=[],o={},a=[];function i(u){var s=o[u]={onStack:!0,lowlink:t,index:t++};if(n.push(u),e.successors(u).forEach((function(e){r.has(o,e)?o[e].onStack&&(s.lowlink=Math.min(s.lowlink,o[e].index)):(i(e),s.lowlink=Math.min(s.lowlink,o[e].lowlink))})),s.lowlink===s.index){var c,l=[];do{c=n.pop(),o[c].onStack=!1,l.push(c)}while(u!==c);a.push(l)}}return e.nodes().forEach((function(e){r.has(o,e)||i(e)})),a}},1731:function(e,t,n){var r=n(980);function o(e){var t={},n={},o=[];if(r.each(e.sinks(),(function i(u){if(r.has(n,u))throw new a;r.has(t,u)||(n[u]=!0,t[u]=!0,r.each(e.predecessors(u),i),delete n[u],o.push(u))})),r.size(t)!==e.nodeCount())throw new a;return o}function a(){}e.exports=o,o.CycleException=a,a.prototype=new Error},6071:function(e,t,n){var r=n(980);function o(){this._arr=[],this._keyIndices={}}e.exports=o,o.prototype.size=function(){return this._arr.length},o.prototype.keys=function(){return this._arr.map((function(e){return e.key}))},o.prototype.has=function(e){return r.has(this._keyIndices,e)},o.prototype.priority=function(e){var t=this._keyIndices[e];if(void 0!==t)return this._arr[t].priority},o.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},o.prototype.add=function(e,t){var n=this._keyIndices;if(e=String(e),!r.has(n,e)){var o=this._arr,a=o.length;return n[e]=a,o.push({key:e,priority:t}),this._decrease(a),!0}return!1},o.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var e=this._arr.pop();return delete this._keyIndices[e.key],this._heapify(0),e.key},o.prototype.decrease=function(e,t){var n=this._keyIndices[e];if(t>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+e+" Old: "+this._arr[n].priority+" New: "+t);this._arr[n].priority=t,this._decrease(n)},o.prototype._heapify=function(e){var t=this._arr,n=2*e,r=n+1,o=e;n<t.length&&(o=t[n].priority<t[o].priority?n:o,r<t.length&&(o=t[r].priority<t[o].priority?r:o),o!==e&&(this._swap(e,o),this._heapify(o)))},o.prototype._decrease=function(e){for(var t,n=this._arr,r=n[e].priority;0!==e&&!(n[t=e>>1].priority<r);)this._swap(e,t),e=t},o.prototype._swap=function(e,t){var n=this._arr,r=this._keyIndices,o=n[e],a=n[t];n[e]=a,n[t]=o,r[a.key]=e,r[o.key]=t}},1311:function(e,t,n){"use strict";var r=n(980);e.exports=a;var o="\0";function a(e){this._isDirected=!r.has(e,"directed")||e.directed,this._isMultigraph=!!r.has(e,"multigraph")&&e.multigraph,this._isCompound=!!r.has(e,"compound")&&e.compound,this._label=void 0,this._defaultNodeLabelFn=r.constant(void 0),this._defaultEdgeLabelFn=r.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children["\0"]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function i(e,t){e[t]?e[t]++:e[t]=1}function u(e,t){--e[t]||delete e[t]}function s(e,t,n,o){var a=""+t,i=""+n;if(!e&&a>i){var u=a;a=i,i=u}return a+"\x01"+i+"\x01"+(r.isUndefined(o)?"\0":o)}function c(e,t,n,r){var o=""+t,a=""+n;if(!e&&o>a){var i=o;o=a,a=i}var u={v:o,w:a};return r&&(u.name=r),u}function l(e,t){return s(e,t.v,t.w,t.name)}a.prototype._nodeCount=0,a.prototype._edgeCount=0,a.prototype.isDirected=function(){return this._isDirected},a.prototype.isMultigraph=function(){return this._isMultigraph},a.prototype.isCompound=function(){return this._isCompound},a.prototype.setGraph=function(e){return this._label=e,this},a.prototype.graph=function(){return this._label},a.prototype.setDefaultNodeLabel=function(e){return r.isFunction(e)||(e=r.constant(e)),this._defaultNodeLabelFn=e,this},a.prototype.nodeCount=function(){return this._nodeCount},a.prototype.nodes=function(){return r.keys(this._nodes)},a.prototype.sources=function(){var e=this;return r.filter(this.nodes(),(function(t){return r.isEmpty(e._in[t])}))},a.prototype.sinks=function(){var e=this;return r.filter(this.nodes(),(function(t){return r.isEmpty(e._out[t])}))},a.prototype.setNodes=function(e,t){var n=arguments,o=this;return r.each(e,(function(e){n.length>1?o.setNode(e,t):o.setNode(e)})),this},a.prototype.setNode=function(e,t){return r.has(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=o,this._children[e]={},this._children["\0"][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)},a.prototype.node=function(e){return this._nodes[e]},a.prototype.hasNode=function(e){return r.has(this._nodes,e)},a.prototype.removeNode=function(e){var t=this;if(r.has(this._nodes,e)){var n=function(e){t.removeEdge(t._edgeObjs[e])};delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],r.each(this.children(e),(function(e){t.setParent(e)})),delete this._children[e]),r.each(r.keys(this._in[e]),n),delete this._in[e],delete this._preds[e],r.each(r.keys(this._out[e]),n),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this},a.prototype.setParent=function(e,t){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(t))t=o;else{for(var n=t+="";!r.isUndefined(n);n=this.parent(n))if(n===e)throw new Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this},a.prototype._removeFromParentsChildList=function(e){delete this._children[this._parent[e]][e]},a.prototype.parent=function(e){if(this._isCompound){var t=this._parent[e];if(t!==o)return t}},a.prototype.children=function(e){if(r.isUndefined(e)&&(e=o),this._isCompound){var t=this._children[e];if(t)return r.keys(t)}else{if(e===o)return this.nodes();if(this.hasNode(e))return[]}},a.prototype.predecessors=function(e){var t=this._preds[e];if(t)return r.keys(t)},a.prototype.successors=function(e){var t=this._sucs[e];if(t)return r.keys(t)},a.prototype.neighbors=function(e){var t=this.predecessors(e);if(t)return r.union(t,this.successors(e))},a.prototype.isLeaf=function(e){return 0===(this.isDirected()?this.successors(e):this.neighbors(e)).length},a.prototype.filterNodes=function(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var n=this;r.each(this._nodes,(function(n,r){e(r)&&t.setNode(r,n)})),r.each(this._edgeObjs,(function(e){t.hasNode(e.v)&&t.hasNode(e.w)&&t.setEdge(e,n.edge(e))}));var o={};function a(e){var r=n.parent(e);return void 0===r||t.hasNode(r)?(o[e]=r,r):r in o?o[r]:a(r)}return this._isCompound&&r.each(t.nodes(),(function(e){t.setParent(e,a(e))})),t},a.prototype.setDefaultEdgeLabel=function(e){return r.isFunction(e)||(e=r.constant(e)),this._defaultEdgeLabelFn=e,this},a.prototype.edgeCount=function(){return this._edgeCount},a.prototype.edges=function(){return r.values(this._edgeObjs)},a.prototype.setPath=function(e,t){var n=this,o=arguments;return r.reduce(e,(function(e,r){return o.length>1?n.setEdge(e,r,t):n.setEdge(e,r),r})),this},a.prototype.setEdge=function(){var e,t,n,o,a=!1,u=arguments[0];"object"===typeof u&&null!==u&&"v"in u?(e=u.v,t=u.w,n=u.name,2===arguments.length&&(o=arguments[1],a=!0)):(e=u,t=arguments[1],n=arguments[3],arguments.length>2&&(o=arguments[2],a=!0)),e=""+e,t=""+t,r.isUndefined(n)||(n=""+n);var l=s(this._isDirected,e,t,n);if(r.has(this._edgeLabels,l))return a&&(this._edgeLabels[l]=o),this;if(!r.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this._edgeLabels[l]=a?o:this._defaultEdgeLabelFn(e,t,n);var f=c(this._isDirected,e,t,n);return e=f.v,t=f.w,Object.freeze(f),this._edgeObjs[l]=f,i(this._preds[t],e),i(this._sucs[e],t),this._in[t][l]=f,this._out[e][l]=f,this._edgeCount++,this},a.prototype.edge=function(e,t,n){var r=1===arguments.length?l(this._isDirected,arguments[0]):s(this._isDirected,e,t,n);return this._edgeLabels[r]},a.prototype.hasEdge=function(e,t,n){var o=1===arguments.length?l(this._isDirected,arguments[0]):s(this._isDirected,e,t,n);return r.has(this._edgeLabels,o)},a.prototype.removeEdge=function(e,t,n){var r=1===arguments.length?l(this._isDirected,arguments[0]):s(this._isDirected,e,t,n),o=this._edgeObjs[r];return o&&(e=o.v,t=o.w,delete this._edgeLabels[r],delete this._edgeObjs[r],u(this._preds[t],e),u(this._sucs[e],t),delete this._in[t][r],delete this._out[e][r],this._edgeCount--),this},a.prototype.inEdges=function(e,t){var n=this._in[e];if(n){var o=r.values(n);return t?r.filter(o,(function(e){return e.v===t})):o}},a.prototype.outEdges=function(e,t){var n=this._out[e];if(n){var o=r.values(n);return t?r.filter(o,(function(e){return e.w===t})):o}},a.prototype.nodeEdges=function(e,t){var n=this.inEdges(e,t);if(n)return n.concat(this.outEdges(e,t))}},5828:function(e,t,n){e.exports={Graph:n(1311),version:n(4161)}},5710:function(e,t,n){var r=n(980),o=n(1311);function a(e){return r.map(e.nodes(),(function(t){var n=e.node(t),o=e.parent(t),a={v:t};return r.isUndefined(n)||(a.value=n),r.isUndefined(o)||(a.parent=o),a}))}function i(e){return r.map(e.edges(),(function(t){var n=e.edge(t),o={v:t.v,w:t.w};return r.isUndefined(t.name)||(o.name=t.name),r.isUndefined(n)||(o.value=n),o}))}e.exports={write:function(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:a(e),edges:i(e)};r.isUndefined(e.graph())||(t.value=r.clone(e.graph()));return t},read:function(e){var t=new o(e.options).setGraph(e.value);return r.each(e.nodes,(function(e){t.setNode(e.v,e.value),e.parent&&t.setParent(e.v,e.parent)})),r.each(e.edges,(function(e){t.setEdge({v:e.v,w:e.w,name:e.name},e.value)})),t}}},980:function(e,t,n){var r;try{r={clone:n(8787),constant:n(1547),each:n(9430),filter:n(86),has:n(7805),isArray:n(3629),isEmpty:n(6364),isFunction:n(4786),isUndefined:n(2530),keys:n(2742),map:n(2034),reduce:n(5080),size:n(9467),transform:n(5653),union:n(6310),values:n(2063)}}catch(o){}r||(r=window._),e.exports=r},4161:function(e){e.exports="2.1.8"},7204:function(e){"use strict";var t=e.exports=function(e,t,r){"function"==typeof t&&(r=t,t={}),n(t,"function"==typeof(r=t.cb||r)?r:r.pre||function(){},r.post||function(){},e,"",e)};function n(e,r,o,a,i,u,s,c,l,f){if(a&&"object"==typeof a&&!Array.isArray(a)){for(var d in r(a,i,u,s,c,l,f),a){var p=a[d];if(Array.isArray(p)){if(d in t.arrayKeywords)for(var h=0;h<p.length;h++)n(e,r,o,p[h],i+"/"+d+"/"+h,u,i,d,a,h)}else if(d in t.propsKeywords){if(p&&"object"==typeof p)for(var v in p)n(e,r,o,p[v],i+"/"+d+"/"+v.replace(/~/g,"~0").replace(/\//g,"~1"),u,i,d,a,v)}else(d in t.keywords||e.allKeys&&!(d in t.skipKeywords))&&n(e,r,o,p,i+"/"+d,u,i,d,a)}o(a,i,u,s,c,l,f)}}t.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},t.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},t.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},t.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0}},908:function(e,t,n){var r=n(8136)(n(7009),"DataView");e.exports=r},9676:function(e,t,n){var r=n(5403),o=n(2747),a=n(6037),i=n(4154),u=n(7728);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=a,s.prototype.has=i,s.prototype.set=u,e.exports=s},8384:function(e,t,n){var r=n(3894),o=n(8699),a=n(4957),i=n(7184),u=n(7109);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=a,s.prototype.has=i,s.prototype.set=u,e.exports=s},5797:function(e,t,n){var r=n(8136)(n(7009),"Map");e.exports=r},8059:function(e,t,n){var r=n(4086),o=n(9255),a=n(9186),i=n(3423),u=n(3739);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=a,s.prototype.has=i,s.prototype.set=u,e.exports=s},8319:function(e,t,n){var r=n(8136)(n(7009),"Promise");e.exports=r},3924:function(e,t,n){var r=n(8136)(n(7009),"Set");e.exports=r},692:function(e,t,n){var r=n(8059),o=n(5774),a=n(1596);function i(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}i.prototype.add=i.prototype.push=o,i.prototype.has=a,e.exports=i},2854:function(e,t,n){var r=n(8384),o=n(511),a=n(835),i=n(707),u=n(8832),s=n(5077);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=a,c.prototype.get=i,c.prototype.has=u,c.prototype.set=s,e.exports=c},7197:function(e,t,n){var r=n(7009).Symbol;e.exports=r},6219:function(e,t,n){var r=n(7009).Uint8Array;e.exports=r},7091:function(e,t,n){var r=n(8136)(n(7009),"WeakMap");e.exports=r},3665:function(e){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},4550:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},4903:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,a=[];++n<r;){var i=e[n];t(i,n,e)&&(a[o++]=i)}return a}},9055:function(e,t,n){var r=n(4842);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},2683:function(e){e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}},7538:function(e,t,n){var r=n(6478),o=n(4963),a=n(3629),i=n(5174),u=n(6800),s=n(9102),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=a(e),l=!n&&o(e),f=!n&&!l&&i(e),d=!n&&!l&&!f&&s(e),p=n||l||f||d,h=p?r(e.length,String):[],v=h.length;for(var m in e)!t&&!c.call(e,m)||p&&("length"==m||f&&("offset"==m||"parent"==m)||d&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||u(m,v))||h.push(m);return h}},8950:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},1705:function(e){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},2095:function(e){e.exports=function(e,t,n,r){var o=-1,a=null==e?0:e.length;for(r&&a&&(n=e[++o]);++o<a;)n=t(n,e[o],o,e);return n}},7897:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},405:function(e,t,n){var r=n(9586)("length");e.exports=r},8002:function(e,t,n){var r=n(2526),o=n(9231);e.exports=function(e,t,n){(void 0!==n&&!o(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},8463:function(e,t,n){var r=n(2526),o=n(9231),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var i=e[t];a.call(e,t)&&o(i,n)&&(void 0!==n||t in e)||r(e,t,n)}},7112:function(e,t,n){var r=n(9231);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},1855:function(e,t,n){var r=n(4503),o=n(2742);e.exports=function(e,t){return e&&r(t,o(t),e)}},5076:function(e,t,n){var r=n(4503),o=n(3961);e.exports=function(e,t){return e&&r(t,o(t),e)}},2526:function(e,t,n){var r=n(8528);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},1905:function(e,t,n){var r=n(2854),o=n(4550),a=n(8463),i=n(1855),u=n(5076),s=n(4523),c=n(291),l=n(2455),f=n(7636),d=n(8248),p=n(5341),h=n(8383),v=n(9243),m=n(9759),y=n(548),g=n(3629),b=n(5174),w=n(103),_=n(8092),x=n(6995),E=n(2742),k=n(3961),S="[object Arguments]",O="[object Function]",P="[object Object]",C={};C[S]=C["[object Array]"]=C["[object ArrayBuffer]"]=C["[object DataView]"]=C["[object Boolean]"]=C["[object Date]"]=C["[object Float32Array]"]=C["[object Float64Array]"]=C["[object Int8Array]"]=C["[object Int16Array]"]=C["[object Int32Array]"]=C["[object Map]"]=C["[object Number]"]=C[P]=C["[object RegExp]"]=C["[object Set]"]=C["[object String]"]=C["[object Symbol]"]=C["[object Uint8Array]"]=C["[object Uint8ClampedArray]"]=C["[object Uint16Array]"]=C["[object Uint32Array]"]=!0,C["[object Error]"]=C[O]=C["[object WeakMap]"]=!1,e.exports=function e(t,n,N,j,M,T){var D,I=1&n,A=2&n,R=4&n;if(N&&(D=M?N(t,j,M,T):N(t)),void 0!==D)return D;if(!_(t))return t;var L=g(t);if(L){if(D=v(t),!I)return c(t,D)}else{var z=h(t),$=z==O||"[object GeneratorFunction]"==z;if(b(t))return s(t,I);if(z==P||z==S||$&&!M){if(D=A||$?{}:y(t),!I)return A?f(t,u(D,t)):l(t,i(D,t))}else{if(!C[z])return M?t:{};D=m(t,z,I)}}T||(T=new r);var F=T.get(t);if(F)return F;T.set(t,D),x(t)?t.forEach((function(r){D.add(e(r,n,N,r,t,T))})):w(t)&&t.forEach((function(r,o){D.set(o,e(r,n,N,o,t,T))}));var U=L?void 0:(R?A?p:d:A?k:E)(t);return o(U||t,(function(r,o){U&&(r=t[o=r]),a(D,o,e(r,n,N,o,t,T))})),D}},5763:function(e,t,n){var r=n(8092),o=Object.create,a=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=a},7927:function(e,t,n){var r=n(5358),o=n(7056)(r);e.exports=o},3079:function(e,t,n){var r=n(152);e.exports=function(e,t,n){for(var o=-1,a=e.length;++o<a;){var i=e[o],u=t(i);if(null!=u&&(void 0===s?u===u&&!r(u):n(u,s)))var s=u,c=i}return c}},7523:function(e,t,n){var r=n(7927);e.exports=function(e,t){var n=[];return r(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}},2045:function(e){e.exports=function(e,t,n,r){for(var o=e.length,a=n+(r?1:-1);r?a--:++a<o;)if(t(e[a],a,e))return a;return-1}},5182:function(e,t,n){var r=n(1705),o=n(3529);e.exports=function e(t,n,a,i,u){var s=-1,c=t.length;for(a||(a=o),u||(u=[]);++s<c;){var l=t[s];n>0&&a(l)?n>1?e(l,n-1,a,i,u):r(u,l):i||(u[u.length]=l)}return u}},5099:function(e,t,n){var r=n(372)();e.exports=r},5358:function(e,t,n){var r=n(5099),o=n(2742);e.exports=function(e,t){return e&&r(e,t,o)}},8667:function(e,t,n){var r=n(3082),o=n(9793);e.exports=function(e,t){for(var n=0,a=(t=r(t,e)).length;null!=e&&n<a;)e=e[o(t[n++])];return n&&n==a?e:void 0}},1986:function(e,t,n){var r=n(1705),o=n(3629);e.exports=function(e,t,n){var a=t(e);return o(e)?a:r(a,n(e))}},9066:function(e,t,n){var r=n(7197),o=n(1587),a=n(3581),i=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":i&&i in Object(e)?o(e):a(e)}},1954:function(e){e.exports=function(e,t){return e>t}},7852:function(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e,n){return null!=e&&t.call(e,n)}},529:function(e){e.exports=function(e,t){return null!=e&&t in Object(e)}},4842:function(e,t,n){var r=n(2045),o=n(505),a=n(7167);e.exports=function(e,t,n){return t===t?a(e,t,n):r(e,o,n)}},4906:function(e,t,n){var r=n(9066),o=n(3141);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},1848:function(e,t,n){var r=n(3355),o=n(3141);e.exports=function e(t,n,a,i,u){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!==t&&n!==n:r(t,n,a,i,e,u))}},3355:function(e,t,n){var r=n(2854),o=n(5305),a=n(2206),i=n(8078),u=n(8383),s=n(3629),c=n(5174),l=n(9102),f="[object Arguments]",d="[object Array]",p="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,v,m,y){var g=s(e),b=s(t),w=g?d:u(e),_=b?d:u(t),x=(w=w==f?p:w)==p,E=(_=_==f?p:_)==p,k=w==_;if(k&&c(e)){if(!c(t))return!1;g=!0,x=!1}if(k&&!x)return y||(y=new r),g||l(e)?o(e,t,n,v,m,y):a(e,t,w,n,v,m,y);if(!(1&n)){var S=x&&h.call(e,"__wrapped__"),O=E&&h.call(t,"__wrapped__");if(S||O){var P=S?e.value():e,C=O?t.value():t;return y||(y=new r),m(P,C,n,v,y)}}return!!k&&(y||(y=new r),i(e,t,n,v,m,y))}},3085:function(e,t,n){var r=n(8383),o=n(3141);e.exports=function(e){return o(e)&&"[object Map]"==r(e)}},8856:function(e,t,n){var r=n(2854),o=n(1848);e.exports=function(e,t,n,a){var i=n.length,u=i,s=!a;if(null==e)return!u;for(e=Object(e);i--;){var c=n[i];if(s&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++i<u;){var l=(c=n[i])[0],f=e[l],d=c[1];if(s&&c[2]){if(void 0===f&&!(l in e))return!1}else{var p=new r;if(a)var h=a(f,d,l,e,t,p);if(!(void 0===h?o(d,f,3,a,p):h))return!1}}return!0}},505:function(e){e.exports=function(e){return e!==e}},6703:function(e,t,n){var r=n(4786),o=n(257),a=n(8092),i=n(7907),u=/^\[object .+?Constructor\]$/,s=Function.prototype,c=Object.prototype,l=s.toString,f=c.hasOwnProperty,d=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||o(e))&&(r(e)?d:u).test(i(e))}},8680:function(e,t,n){var r=n(8383),o=n(3141);e.exports=function(e){return o(e)&&"[object Set]"==r(e)}},8150:function(e,t,n){var r=n(9066),o=n(4635),a=n(3141),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,e.exports=function(e){return a(e)&&o(e.length)&&!!i[r(e)]}},6025:function(e,t,n){var r=n(7080),o=n(4322),a=n(2100),i=n(3629),u=n(38);e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?i(e)?o(e[0],e[1]):r(e):u(e)}},3654:function(e,t,n){var r=n(2936),o=n(8836),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))a.call(e,n)&&"constructor"!=n&&t.push(n);return t}},8664:function(e,t,n){var r=n(8092),o=n(2936),a=n(4221),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return a(e);var t=o(e),n=[];for(var u in e)("constructor"!=u||!t&&i.call(e,u))&&n.push(u);return n}},2580:function(e){e.exports=function(e,t){return e<t}},3849:function(e,t,n){var r=n(7927),o=n(1473);e.exports=function(e,t){var n=-1,a=o(e)?Array(e.length):[];return r(e,(function(e,r,o){a[++n]=t(e,r,o)})),a}},7080:function(e,t,n){var r=n(8856),o=n(9091),a=n(284);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},4322:function(e,t,n){var r=n(1848),o=n(6181),a=n(5658),i=n(5823),u=n(5072),s=n(284),c=n(9793);e.exports=function(e,t){return i(e)&&u(t)?s(c(e),t):function(n){var i=o(n,e);return void 0===i&&i===t?a(n,e):r(t,i,3)}}},4173:function(e,t,n){var r=n(2854),o=n(8002),a=n(5099),i=n(9216),u=n(8092),s=n(3961),c=n(5906);e.exports=function e(t,n,l,f,d){t!==n&&a(n,(function(a,s){if(d||(d=new r),u(a))i(t,n,s,l,e,f,d);else{var p=f?f(c(t,s),a,s+"",t,n,d):void 0;void 0===p&&(p=a),o(t,s,p)}}),s)}},9216:function(e,t,n){var r=n(8002),o=n(4523),a=n(613),i=n(291),u=n(548),s=n(4963),c=n(3629),l=n(6279),f=n(5174),d=n(4786),p=n(8092),h=n(3977),v=n(9102),m=n(5906),y=n(6576);e.exports=function(e,t,n,g,b,w,_){var x=m(e,n),E=m(t,n),k=_.get(E);if(k)r(e,n,k);else{var S=w?w(x,E,n+"",e,t,_):void 0,O=void 0===S;if(O){var P=c(E),C=!P&&f(E),N=!P&&!C&&v(E);S=E,P||C||N?c(x)?S=x:l(x)?S=i(x):C?(O=!1,S=o(E,!0)):N?(O=!1,S=a(E,!0)):S=[]:h(E)||s(E)?(S=x,s(x)?S=y(x):p(x)&&!d(x)||(S=u(E))):O=!1}O&&(_.set(E,S),b(S,E,g,w,_),_.delete(E)),r(e,n,S)}}},3226:function(e,t,n){var r=n(8950),o=n(8667),a=n(6025),i=n(3849),u=n(9179),s=n(6194),c=n(4480),l=n(2100),f=n(3629);e.exports=function(e,t,n){t=t.length?r(t,(function(e){return f(e)?function(t){return o(t,1===e.length?e[0]:e)}:e})):[l];var d=-1;t=r(t,s(a));var p=i(e,(function(e,n,o){return{criteria:r(t,(function(t){return t(e)})),index:++d,value:e}}));return u(p,(function(e,t){return c(e,t,n)}))}},4980:function(e,t,n){var r=n(2591),o=n(5658);e.exports=function(e,t){return r(e,t,(function(t,n){return o(e,n)}))}},2591:function(e,t,n){var r=n(8667),o=n(379),a=n(3082);e.exports=function(e,t,n){for(var i=-1,u=t.length,s={};++i<u;){var c=t[i],l=r(e,c);n(l,c)&&o(s,a(c,e),l)}return s}},9586:function(e){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},4084:function(e,t,n){var r=n(8667);e.exports=function(e){return function(t){return r(t,e)}}},7255:function(e){var t=Math.ceil,n=Math.max;e.exports=function(e,r,o,a){for(var i=-1,u=n(t((r-e)/(o||1)),0),s=Array(u);u--;)s[a?u:++i]=e,e+=o;return s}},750:function(e){e.exports=function(e,t,n,r,o){return o(e,(function(e,o,a){n=r?(r=!1,e):t(n,e,o,a)})),n}},8794:function(e,t,n){var r=n(2100),o=n(4262),a=n(9156);e.exports=function(e,t){return a(o(e,t,r),e+"")}},379:function(e,t,n){var r=n(8463),o=n(3082),a=n(6800),i=n(8092),u=n(9793);e.exports=function(e,t,n,s){if(!i(e))return e;for(var c=-1,l=(t=o(t,e)).length,f=l-1,d=e;null!=d&&++c<l;){var p=u(t[c]),h=n;if("__proto__"===p||"constructor"===p||"prototype"===p)return e;if(c!=f){var v=d[p];void 0===(h=s?s(v,p,d):void 0)&&(h=i(v)?v:a(t[c+1])?[]:{})}r(d,p,h),d=d[p]}return e}},7532:function(e,t,n){var r=n(1547),o=n(8528),a=n(2100),i=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:a;e.exports=i},9179:function(e){e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},6478:function(e){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},2446:function(e,t,n){var r=n(7197),o=n(8950),a=n(3629),i=n(152),u=r?r.prototype:void 0,s=u?u.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(a(t))return o(t,e)+"";if(i(t))return s?s.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n}},821:function(e,t,n){var r=n(5627),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},6194:function(e){e.exports=function(e){return function(t){return e(t)}}},9602:function(e,t,n){var r=n(692),o=n(9055),a=n(2683),i=n(75),u=n(7730),s=n(2230);e.exports=function(e,t,n){var c=-1,l=o,f=e.length,d=!0,p=[],h=p;if(n)d=!1,l=a;else if(f>=200){var v=t?null:u(e);if(v)return s(v);d=!1,l=i,h=new r}else h=t?[]:p;e:for(;++c<f;){var m=e[c],y=t?t(m):m;if(m=n||0!==m?m:0,d&&y===y){for(var g=h.length;g--;)if(h[g]===y)continue e;t&&h.push(y),p.push(m)}else l(h,y,n)||(h!==p&&h.push(y),p.push(m))}return p}},8019:function(e,t,n){var r=n(8950);e.exports=function(e,t){return r(t,(function(t){return e[t]}))}},2971:function(e){e.exports=function(e,t,n){for(var r=-1,o=e.length,a=t.length,i={};++r<o;){var u=r<a?t[r]:void 0;n(i,e[r],u)}return i}},75:function(e){e.exports=function(e,t){return e.has(t)}},3410:function(e,t,n){var r=n(2100);e.exports=function(e){return"function"==typeof e?e:r}},3082:function(e,t,n){var r=n(3629),o=n(5823),a=n(170),i=n(3518);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:a(i(e))}},7010:function(e,t,n){var r=n(6219);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},4523:function(e,t,n){e=n.nmd(e);var r=n(7009),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o?r.Buffer:void 0,u=i?i.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=u?u(n):new e.constructor(n);return e.copy(r),r}},1022:function(e,t,n){var r=n(7010);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},8503:function(e){var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},4720:function(e,t,n){var r=n(7197),o=r?r.prototype:void 0,a=o?o.valueOf:void 0;e.exports=function(e){return a?Object(a.call(e)):{}}},613:function(e,t,n){var r=n(7010);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},8558:function(e,t,n){var r=n(152);e.exports=function(e,t){if(e!==t){var n=void 0!==e,o=null===e,a=e===e,i=r(e),u=void 0!==t,s=null===t,c=t===t,l=r(t);if(!s&&!l&&!i&&e>t||i&&u&&c&&!s&&!l||o&&u&&c||!n&&c||!a)return 1;if(!o&&!i&&!l&&e<t||l&&n&&a&&!o&&!i||s&&n&&a||!u&&a||!c)return-1}return 0}},4480:function(e,t,n){var r=n(8558);e.exports=function(e,t,n){for(var o=-1,a=e.criteria,i=t.criteria,u=a.length,s=n.length;++o<u;){var c=r(a[o],i[o]);if(c)return o>=s?c:c*("desc"==n[o]?-1:1)}return e.index-t.index}},291:function(e){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},4503:function(e,t,n){var r=n(8463),o=n(2526);e.exports=function(e,t,n,a){var i=!n;n||(n={});for(var u=-1,s=t.length;++u<s;){var c=t[u],l=a?a(n[c],e[c],c,n,e):void 0;void 0===l&&(l=e[c]),i?o(n,c,l):r(n,c,l)}return n}},2455:function(e,t,n){var r=n(4503),o=n(5918);e.exports=function(e,t){return r(e,o(e),t)}},7636:function(e,t,n){var r=n(4503),o=n(8487);e.exports=function(e,t){return r(e,o(e),t)}},5525:function(e,t,n){var r=n(7009)["__core-js_shared__"];e.exports=r},9934:function(e,t,n){var r=n(8794),o=n(3195);e.exports=function(e){return r((function(t,n){var r=-1,a=n.length,i=a>1?n[a-1]:void 0,u=a>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(a--,i):void 0,u&&o(n[0],n[1],u)&&(i=a<3?void 0:i,a=1),t=Object(t);++r<a;){var s=n[r];s&&e(t,s,r,i)}return t}))}},7056:function(e,t,n){var r=n(1473);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var a=n.length,i=t?a:-1,u=Object(n);(t?i--:++i<a)&&!1!==o(u[i],i,u););return n}}},372:function(e){e.exports=function(e){return function(t,n,r){for(var o=-1,a=Object(t),i=r(t),u=i.length;u--;){var s=i[e?u:++o];if(!1===n(a[s],s,a))break}return t}}},5481:function(e,t,n){var r=n(6025),o=n(1473),a=n(2742);e.exports=function(e){return function(t,n,i){var u=Object(t);if(!o(t)){var s=r(n,3);t=a(t),n=function(e){return s(u[e],e,u)}}var c=e(t,n,i);return c>-1?u[s?t[c]:c]:void 0}}},6381:function(e,t,n){var r=n(7255),o=n(3195),a=n(1495);e.exports=function(e){return function(t,n,i){return i&&"number"!=typeof i&&o(t,n,i)&&(n=i=void 0),t=a(t),void 0===n?(n=t,t=0):n=a(n),i=void 0===i?t<n?1:-1:a(i),r(t,n,i,e)}}},7730:function(e,t,n){var r=n(3924),o=n(9694),a=n(2230),i=r&&1/a(new r([,-0]))[1]==1/0?function(e){return new r(e)}:o;e.exports=i},8528:function(e,t,n){var r=n(8136),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=o},5305:function(e,t,n){var r=n(692),o=n(7897),a=n(75);e.exports=function(e,t,n,i,u,s){var c=1&n,l=e.length,f=t.length;if(l!=f&&!(c&&f>l))return!1;var d=s.get(e),p=s.get(t);if(d&&p)return d==t&&p==e;var h=-1,v=!0,m=2&n?new r:void 0;for(s.set(e,t),s.set(t,e);++h<l;){var y=e[h],g=t[h];if(i)var b=c?i(g,y,h,t,e,s):i(y,g,h,e,t,s);if(void 0!==b){if(b)continue;v=!1;break}if(m){if(!o(t,(function(e,t){if(!a(m,t)&&(y===e||u(y,e,n,i,s)))return m.push(t)}))){v=!1;break}}else if(y!==g&&!u(y,g,n,i,s)){v=!1;break}}return s.delete(e),s.delete(t),v}},2206:function(e,t,n){var r=n(7197),o=n(6219),a=n(9231),i=n(5305),u=n(234),s=n(2230),c=r?r.prototype:void 0,l=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,f,d){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!f(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return a(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=u;case"[object Set]":var h=1&r;if(p||(p=s),e.size!=t.size&&!h)return!1;var v=d.get(e);if(v)return v==t;r|=2,d.set(e,t);var m=i(p(e),p(t),r,c,f,d);return d.delete(e),m;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},8078:function(e,t,n){var r=n(8248),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,a,i,u){var s=1&n,c=r(e),l=c.length;if(l!=r(t).length&&!s)return!1;for(var f=l;f--;){var d=c[f];if(!(s?d in t:o.call(t,d)))return!1}var p=u.get(e),h=u.get(t);if(p&&h)return p==t&&h==e;var v=!0;u.set(e,t),u.set(t,e);for(var m=s;++f<l;){var y=e[d=c[f]],g=t[d];if(a)var b=s?a(g,y,d,t,e,u):a(y,g,d,e,t,u);if(!(void 0===b?y===g||i(y,g,n,a,u):b)){v=!1;break}m||(m="constructor"==d)}if(v&&!m){var w=e.constructor,_=t.constructor;w==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof _&&_ instanceof _||(v=!1)}return u.delete(e),u.delete(t),v}},7038:function(e,t,n){var r=n(5506),o=n(4262),a=n(9156);e.exports=function(e){return a(o(e,void 0,r),e+"")}},1032:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},8248:function(e,t,n){var r=n(1986),o=n(5918),a=n(2742);e.exports=function(e){return r(e,a,o)}},5341:function(e,t,n){var r=n(1986),o=n(8487),a=n(3961);e.exports=function(e){return r(e,a,o)}},2799:function(e,t,n){var r=n(5964);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},9091:function(e,t,n){var r=n(5072),o=n(2742);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var a=t[n],i=e[a];t[n]=[a,i,r(i)]}return t}},8136:function(e,t,n){var r=n(6703),o=n(40);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},1137:function(e,t,n){var r=n(2709)(Object.getPrototypeOf,Object);e.exports=r},1587:function(e,t,n){var r=n(7197),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,u=r?r.toStringTag:void 0;e.exports=function(e){var t=a.call(e,u),n=e[u];try{e[u]=void 0;var r=!0}catch(s){}var o=i.call(e);return r&&(t?e[u]=n:delete e[u]),o}},5918:function(e,t,n){var r=n(4903),o=n(8174),a=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,u=i?function(e){return null==e?[]:(e=Object(e),r(i(e),(function(t){return a.call(e,t)})))}:o;e.exports=u},8487:function(e,t,n){var r=n(1705),o=n(1137),a=n(5918),i=n(8174),u=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,a(e)),e=o(e);return t}:i;e.exports=u},8383:function(e,t,n){var r=n(908),o=n(5797),a=n(8319),i=n(3924),u=n(7091),s=n(9066),c=n(7907),l="[object Map]",f="[object Promise]",d="[object Set]",p="[object WeakMap]",h="[object DataView]",v=c(r),m=c(o),y=c(a),g=c(i),b=c(u),w=s;(r&&w(new r(new ArrayBuffer(1)))!=h||o&&w(new o)!=l||a&&w(a.resolve())!=f||i&&w(new i)!=d||u&&w(new u)!=p)&&(w=function(e){var t=s(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case v:return h;case m:return l;case y:return f;case g:return d;case b:return p}return t}),e.exports=w},40:function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},6417:function(e,t,n){var r=n(3082),o=n(4963),a=n(3629),i=n(6800),u=n(4635),s=n(9793);e.exports=function(e,t,n){for(var c=-1,l=(t=r(t,e)).length,f=!1;++c<l;){var d=s(t[c]);if(!(f=null!=e&&n(e,d)))break;e=e[d]}return f||++c!=l?f:!!(l=null==e?0:e.length)&&u(l)&&i(d,l)&&(a(e)||o(e))}},7302:function(e){var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},5403:function(e,t,n){var r=n(9620);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},2747:function(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},6037:function(e,t,n){var r=n(9620),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},4154:function(e,t,n){var r=n(9620),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},7728:function(e,t,n){var r=n(9620);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},9243:function(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},9759:function(e,t,n){var r=n(7010),o=n(1022),a=n(8503),i=n(4720),u=n(613);e.exports=function(e,t,n){var s=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new s(+e);case"[object DataView]":return o(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return u(e,n);case"[object Map]":case"[object Set]":return new s;case"[object Number]":case"[object String]":return new s(e);case"[object RegExp]":return a(e);case"[object Symbol]":return i(e)}}},548:function(e,t,n){var r=n(5763),o=n(1137),a=n(2936);e.exports=function(e){return"function"!=typeof e.constructor||a(e)?{}:r(o(e))}},3529:function(e,t,n){var r=n(7197),o=n(4963),a=n(3629),i=r?r.isConcatSpreadable:void 0;e.exports=function(e){return a(e)||o(e)||!!(i&&e&&e[i])}},6800:function(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},3195:function(e,t,n){var r=n(9231),o=n(1473),a=n(6800),i=n(8092);e.exports=function(e,t,n){if(!i(n))return!1;var u=typeof t;return!!("number"==u?o(n)&&a(t,n.length):"string"==u&&t in n)&&r(n[t],e)}},5823:function(e,t,n){var r=n(3629),o=n(152),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||(i.test(e)||!a.test(e)||null!=t&&e in Object(t))}},5964:function(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},257:function(e,t,n){var r=n(5525),o=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!o&&o in e}},2936:function(e){var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},5072:function(e,t,n){var r=n(8092);e.exports=function(e){return e===e&&!r(e)}},3894:function(e){e.exports=function(){this.__data__=[],this.size=0}},8699:function(e,t,n){var r=n(7112),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},4957:function(e,t,n){var r=n(7112);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},7184:function(e,t,n){var r=n(7112);e.exports=function(e){return r(this.__data__,e)>-1}},7109:function(e,t,n){var r=n(7112);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},4086:function(e,t,n){var r=n(9676),o=n(8384),a=n(5797);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||o),string:new r}}},9255:function(e,t,n){var r=n(2799);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},9186:function(e,t,n){var r=n(2799);e.exports=function(e){return r(this,e).get(e)}},3423:function(e,t,n){var r=n(2799);e.exports=function(e){return r(this,e).has(e)}},3739:function(e,t,n){var r=n(2799);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},234:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},284:function(e){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},4634:function(e,t,n){var r=n(9151);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},9620:function(e,t,n){var r=n(8136)(Object,"create");e.exports=r},8836:function(e,t,n){var r=n(2709)(Object.keys,Object);e.exports=r},4221:function(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},9494:function(e,t,n){e=n.nmd(e);var r=n(1032),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o&&r.process,u=function(){try{var e=a&&a.require&&a.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(t){}}();e.exports=u},3581:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},2709:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},4262:function(e,t,n){var r=n(3665),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var a=arguments,i=-1,u=o(a.length-t,0),s=Array(u);++i<u;)s[i]=a[t+i];i=-1;for(var c=Array(t+1);++i<t;)c[i]=a[i];return c[t]=n(s),r(e,this,c)}}},7009:function(e,t,n){var r=n(1032),o="object"==typeof self&&self&&self.Object===Object&&self,a=r||o||Function("return this")();e.exports=a},5906:function(e){e.exports=function(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}},5774:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},1596:function(e){e.exports=function(e){return this.__data__.has(e)}},2230:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},9156:function(e,t,n){var r=n(7532),o=n(3197)(r);e.exports=o},3197:function(e){var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var o=t(),a=16-(o-r);if(r=o,a>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},511:function(e,t,n){var r=n(8384);e.exports=function(){this.__data__=new r,this.size=0}},835:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},707:function(e){e.exports=function(e){return this.__data__.get(e)}},8832:function(e){e.exports=function(e){return this.__data__.has(e)}},5077:function(e,t,n){var r=n(8384),o=n(5797),a=n(8059);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var i=n.__data__;if(!o||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(i)}return n.set(e,t),this.size=n.size,this}},7167:function(e){e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}},4651:function(e,t,n){var r=n(405),o=n(7302),a=n(3007);e.exports=function(e){return o(e)?a(e):r(e)}},170:function(e,t,n){var r=n(4634),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,i=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(a,"$1"):n||e)})),t}));e.exports=i},9793:function(e,t,n){var r=n(152);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}},7907:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(n){}try{return e+""}catch(n){}}return""}},5627:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},3007:function(e){var t="[\\ud800-\\udfff]",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\\ud83c[\\udffb-\\udfff]",o="[^\\ud800-\\udfff]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",i="[\\ud800-\\udbff][\\udc00-\\udfff]",u="(?:"+n+"|"+r+")"+"?",s="[\\ufe0e\\ufe0f]?",c=s+u+("(?:\\u200d(?:"+[o,a,i].join("|")+")"+s+u+")*"),l="(?:"+[o+n+"?",n,a,i,t].join("|")+")",f=RegExp(r+"(?="+r+")|"+l+c,"g");e.exports=function(e){for(var t=f.lastIndex=0;f.test(e);)++t;return t}},8787:function(e,t,n){var r=n(1905);e.exports=function(e){return r(e,4)}},8121:function(e,t,n){var r=n(1905);e.exports=function(e){return r(e,5)}},1547:function(e){e.exports=function(e){return function(){return e}}},6933:function(e,t,n){var r=n(8794),o=n(9231),a=n(3195),i=n(3961),u=Object.prototype,s=u.hasOwnProperty,c=r((function(e,t){e=Object(e);var n=-1,r=t.length,c=r>2?t[2]:void 0;for(c&&a(t[0],t[1],c)&&(r=1);++n<r;)for(var l=t[n],f=i(l),d=-1,p=f.length;++d<p;){var h=f[d],v=e[h];(void 0===v||o(v,u[h])&&!s.call(e,h))&&(e[h]=l[h])}return e}));e.exports=c},9430:function(e,t,n){e.exports=n(6514)},9231:function(e){e.exports=function(e,t){return e===t||e!==e&&t!==t}},86:function(e,t,n){var r=n(4903),o=n(7523),a=n(6025),i=n(3629);e.exports=function(e,t){return(i(e)?r:o)(e,a(t,3))}},1211:function(e,t,n){var r=n(5481)(n(1475));e.exports=r},1475:function(e,t,n){var r=n(2045),o=n(6025),a=n(9753),i=Math.max;e.exports=function(e,t,n){var u=null==e?0:e.length;if(!u)return-1;var s=null==n?0:a(n);return s<0&&(s=i(u+s,0)),r(e,o(t,3),s)}},5506:function(e,t,n){var r=n(5182);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},6514:function(e,t,n){var r=n(4550),o=n(7927),a=n(3410),i=n(3629);e.exports=function(e,t){return(i(e)?r:o)(e,a(t))}},9144:function(e,t,n){var r=n(5099),o=n(3410),a=n(3961);e.exports=function(e,t){return null==e?e:r(e,o(t),a)}},6181:function(e,t,n){var r=n(8667);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},7805:function(e,t,n){var r=n(7852),o=n(6417);e.exports=function(e,t){return null!=e&&o(e,t,r)}},5658:function(e,t,n){var r=n(529),o=n(6417);e.exports=function(e,t){return null!=e&&o(e,t,r)}},2100:function(e){e.exports=function(e){return e}},4963:function(e,t,n){var r=n(4906),o=n(3141),a=Object.prototype,i=a.hasOwnProperty,u=a.propertyIsEnumerable,s=r(function(){return arguments}())?r:function(e){return o(e)&&i.call(e,"callee")&&!u.call(e,"callee")};e.exports=s},3629:function(e){var t=Array.isArray;e.exports=t},1473:function(e,t,n){var r=n(4786),o=n(4635);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},6279:function(e,t,n){var r=n(1473),o=n(3141);e.exports=function(e){return o(e)&&r(e)}},5174:function(e,t,n){e=n.nmd(e);var r=n(7009),o=n(9488),a=t&&!t.nodeType&&t,i=a&&e&&!e.nodeType&&e,u=i&&i.exports===a?r.Buffer:void 0,s=(u?u.isBuffer:void 0)||o;e.exports=s},6364:function(e,t,n){var r=n(3654),o=n(8383),a=n(4963),i=n(3629),u=n(1473),s=n(5174),c=n(2936),l=n(9102),f=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(u(e)&&(i(e)||"string"==typeof e||"function"==typeof e.splice||s(e)||l(e)||a(e)))return!e.length;var t=o(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(c(e))return!r(e).length;for(var n in e)if(f.call(e,n))return!1;return!0}},4786:function(e,t,n){var r=n(9066),o=n(8092);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},4635:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},103:function(e,t,n){var r=n(3085),o=n(6194),a=n(9494),i=a&&a.isMap,u=i?o(i):r;e.exports=u},8092:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},3141:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},3977:function(e,t,n){var r=n(9066),o=n(1137),a=n(3141),i=Function.prototype,u=Object.prototype,s=i.toString,c=u.hasOwnProperty,l=s.call(Object);e.exports=function(e){if(!a(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&s.call(n)==l}},6995:function(e,t,n){var r=n(8680),o=n(6194),a=n(9494),i=a&&a.isSet,u=i?o(i):r;e.exports=u},6769:function(e,t,n){var r=n(9066),o=n(3629),a=n(3141);e.exports=function(e){return"string"==typeof e||!o(e)&&a(e)&&"[object String]"==r(e)}},152:function(e,t,n){var r=n(9066),o=n(3141);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},9102:function(e,t,n){var r=n(8150),o=n(6194),a=n(9494),i=a&&a.isTypedArray,u=i?o(i):r;e.exports=u},2530:function(e){e.exports=function(e){return void 0===e}},2742:function(e,t,n){var r=n(7538),o=n(3654),a=n(1473);e.exports=function(e){return a(e)?r(e):o(e)}},3961:function(e,t,n){var r=n(7538),o=n(8664),a=n(1473);e.exports=function(e){return a(e)?r(e,!0):o(e)}},5727:function(e){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},2034:function(e,t,n){var r=n(8950),o=n(6025),a=n(3849),i=n(3629);e.exports=function(e,t){return(i(e)?r:a)(e,o(t,3))}},7702:function(e,t,n){var r=n(2526),o=n(5358),a=n(6025);e.exports=function(e,t){var n={};return t=a(t,3),o(e,(function(e,o,a){r(n,o,t(e,o,a))})),n}},9627:function(e,t,n){var r=n(3079),o=n(1954),a=n(2100);e.exports=function(e){return e&&e.length?r(e,a,o):void 0}},9151:function(e,t,n){var r=n(8059);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function n(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},9286:function(e,t,n){var r=n(4173),o=n(9934)((function(e,t,n){r(e,t,n)}));e.exports=o},6452:function(e,t,n){var r=n(3079),o=n(2580),a=n(2100);e.exports=function(e){return e&&e.length?r(e,a,o):void 0}},3638:function(e,t,n){var r=n(3079),o=n(6025),a=n(2580);e.exports=function(e,t){return e&&e.length?r(e,o(t,2),a):void 0}},9694:function(e){e.exports=function(){}},72:function(e,t,n){var r=n(7009);e.exports=function(){return r.Date.now()}},6460:function(e,t,n){var r=n(4980),o=n(7038)((function(e,t){return null==e?{}:r(e,t)}));e.exports=o},38:function(e,t,n){var r=n(9586),o=n(4084),a=n(5823),i=n(9793);e.exports=function(e){return a(e)?r(i(e)):o(e)}},6222:function(e,t,n){var r=n(6381)();e.exports=r},5080:function(e,t,n){var r=n(2095),o=n(7927),a=n(6025),i=n(750),u=n(3629);e.exports=function(e,t,n){var s=u(e)?r:i,c=arguments.length<3;return s(e,a(t,4),n,c,o)}},9467:function(e,t,n){var r=n(3654),o=n(8383),a=n(1473),i=n(6769),u=n(4651);e.exports=function(e){if(null==e)return 0;if(a(e))return i(e)?u(e):e.length;var t=o(e);return"[object Map]"==t||"[object Set]"==t?e.size:r(e).length}},4286:function(e,t,n){var r=n(5182),o=n(3226),a=n(8794),i=n(3195),u=a((function(e,t){if(null==e)return[];var n=t.length;return n>1&&i(e,t[0],t[1])?t=[]:n>2&&i(t[0],t[1],t[2])&&(t=[t[0]]),o(e,r(t,1),[])}));e.exports=u},8174:function(e){e.exports=function(){return[]}},9488:function(e){e.exports=function(){return!1}},1495:function(e,t,n){var r=n(2582),o=1/0;e.exports=function(e){return e?(e=r(e))===o||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}},9753:function(e,t,n){var r=n(1495);e.exports=function(e){var t=r(e),n=t%1;return t===t?n?t-n:t:0}},2582:function(e,t,n){var r=n(821),o=n(8092),a=n(152),i=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=u.test(e);return n||s.test(e)?c(e.slice(2),n?2:8):i.test(e)?NaN:+e}},6576:function(e,t,n){var r=n(4503),o=n(3961);e.exports=function(e){return r(e,o(e))}},3518:function(e,t,n){var r=n(2446);e.exports=function(e){return null==e?"":r(e)}},5653:function(e,t,n){var r=n(4550),o=n(5763),a=n(5358),i=n(6025),u=n(1137),s=n(3629),c=n(5174),l=n(4786),f=n(8092),d=n(9102);e.exports=function(e,t,n){var p=s(e),h=p||c(e)||d(e);if(t=i(t,4),null==n){var v=e&&e.constructor;n=h?p?new v:[]:f(e)&&l(v)?o(u(e)):{}}return(h?r:a)(e,(function(e,r,o){return t(n,e,r,o)})),n}},6310:function(e,t,n){var r=n(5182),o=n(8794),a=n(9602),i=n(6279),u=o((function(e){return a(r(e,1,i,!0))}));e.exports=u},804:function(e,t,n){var r=n(3518),o=0;e.exports=function(e){var t=++o;return r(e)+t}},2063:function(e,t,n){var r=n(8019),o=n(2742);e.exports=function(e){return null==e?[]:r(e,o(e))}},4827:function(e,t,n){var r=n(8463),o=n(2971);e.exports=function(e,t){return o(e||[],t||[],r)}},1725:function(e){"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(o){return!1}}()?Object.assign:function(e,a){for(var i,u,s=o(e),c=1;c<arguments.length;c++){for(var l in i=Object(arguments[c]))n.call(i,l)&&(s[l]=i[l]);if(t){u=t(i);for(var f=0;f<u.length;f++)r.call(i,u[f])&&(s[u[f]]=i[u[f]])}}return s}},4463:function(e,t,n){"use strict";var r=n(2791),o=n(1725),a=n(5296);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(i(227));var u=new Set,s={};function c(e,t){l(e,t),l(e+"Capture",t)}function l(e,t){for(s[e]=t,e=0;e<t.length;e++)u.add(t[e])}var f=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p=Object.prototype.hasOwnProperty,h={},v={};function m(e,t,n,r,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var y={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){y[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];y[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){y[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){y[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){y[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){y[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){y[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){y[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){y[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var g=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function w(e,t,n,r){var o=y.hasOwnProperty(t)?y[t]:null;(null!==o?0===o.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!p.call(v,e)||!p.call(h,e)&&(d.test(e)?v[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,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(e){var t=e.replace(g,b);y[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(g,b);y[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(g,b);y[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){y[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),y.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){y[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var _=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=60103,E=60106,k=60107,S=60108,O=60114,P=60109,C=60110,N=60112,j=60113,M=60120,T=60115,D=60116,I=60121,A=60128,R=60129,L=60130,z=60131;if("function"===typeof Symbol&&Symbol.for){var $=Symbol.for;x=$("react.element"),E=$("react.portal"),k=$("react.fragment"),S=$("react.strict_mode"),O=$("react.profiler"),P=$("react.provider"),C=$("react.context"),N=$("react.forward_ref"),j=$("react.suspense"),M=$("react.suspense_list"),T=$("react.memo"),D=$("react.lazy"),I=$("react.block"),$("react.scope"),A=$("react.opaque.id"),R=$("react.debug_trace_mode"),L=$("react.offscreen"),z=$("react.legacy_hidden")}var F,U="function"===typeof Symbol&&Symbol.iterator;function B(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=U&&e[U]||e["@@iterator"])?e:null}function V(e){if(void 0===F)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);F=t&&t[1]||""}return"\n"+F+e}var H=!1;function q(e,t){if(!e||H)return"";H=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(s){var r=s}Reflect.construct(e,[],t)}else{try{t.call()}catch(s){r=s}e.call(t.prototype)}else{try{throw Error()}catch(s){r=s}e()}}catch(s){if(s&&r&&"string"===typeof s.stack){for(var o=s.stack.split("\n"),a=r.stack.split("\n"),i=o.length-1,u=a.length-1;1<=i&&0<=u&&o[i]!==a[u];)u--;for(;1<=i&&0<=u;i--,u--)if(o[i]!==a[u]){if(1!==i||1!==u)do{if(i--,0>--u||o[i]!==a[u])return"\n"+o[i].replace(" at new "," at ")}while(1<=i&&0<=u);break}}}finally{H=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?V(e):""}function Y(e){switch(e.tag){case 5:return V(e.type);case 16:return V("Lazy");case 13:return V("Suspense");case 19:return V("SuspenseList");case 0:case 2:case 15:return e=q(e.type,!1);case 11:return e=q(e.type.render,!1);case 22:return e=q(e.type._render,!1);case 1:return e=q(e.type,!0);default:return""}}function G(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case k:return"Fragment";case E:return"Portal";case O:return"Profiler";case S:return"StrictMode";case j:return"Suspense";case M:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case C:return(e.displayName||"Context")+".Consumer";case P:return(e._context.displayName||"Context")+".Provider";case N:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case T:return G(e.type);case I:return G(e._render);case D:t=e._payload,e=e._init;try{return G(e(t))}catch(n){}}return null}function X(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function K(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function W(e){e._valueTracker||(e._valueTracker=function(e){var t=K(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=K(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Z(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function J(e,t){var n=t.checked;return o({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=X(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&w(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=X(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?oe(e,t.type,n):t.hasOwnProperty("defaultValue")&&oe(e,t.type,X(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function oe(e,t,n){"number"===t&&Z(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ae(e,t){return e=o({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function ie(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+X(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function ue(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function se(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:X(n)}}function ce(e,t){var n=X(t.value),r=X(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function le(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var fe="http://www.w3.org/1999/xhtml",de="http://www.w3.org/2000/svg";function pe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function he(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?pe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ve,me,ye=(me=function(e,t){if(e.namespaceURI!==de||"innerHTML"in e)e.innerHTML=t;else{for((ve=ve||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ve.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return me(e,t)}))}:me);function ge(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var be={animationIterationCount:!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},we=["Webkit","ms","Moz","O"];function _e(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||be.hasOwnProperty(e)&&be[e]?(""+t).trim():t+"px"}function xe(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=_e(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(be).forEach((function(e){we.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),be[t]=be[e]}))}));var Ee=o({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 ke(e,t){if(t){if(Ee[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(i(62))}}function Se(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){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}}function Oe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Pe=null,Ce=null,Ne=null;function je(e){if(e=ro(e)){if("function"!==typeof Pe)throw Error(i(280));var t=e.stateNode;t&&(t=ao(t),Pe(e.stateNode,e.type,t))}}function Me(e){Ce?Ne?Ne.push(e):Ne=[e]:Ce=e}function Te(){if(Ce){var e=Ce,t=Ne;if(Ne=Ce=null,je(e),t)for(e=0;e<t.length;e++)je(t[e])}}function De(e,t){return e(t)}function Ie(e,t,n,r,o){return e(t,n,r,o)}function Ae(){}var Re=De,Le=!1,ze=!1;function $e(){null===Ce&&null===Ne||(Ae(),Te())}function Fe(e,t){var n=e.stateNode;if(null===n)return null;var r=ao(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(i(231,t,typeof n));return n}var Ue=!1;if(f)try{var Be={};Object.defineProperty(Be,"passive",{get:function(){Ue=!0}}),window.addEventListener("test",Be,Be),window.removeEventListener("test",Be,Be)}catch(me){Ue=!1}function Ve(e,t,n,r,o,a,i,u,s){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(l){this.onError(l)}}var He=!1,qe=null,Ye=!1,Ge=null,Xe={onError:function(e){He=!0,qe=e}};function Ke(e,t,n,r,o,a,i,u,s){He=!1,qe=null,Ve.apply(Xe,arguments)}function We(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Qe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ze(e){if(We(e)!==e)throw Error(i(188))}function Je(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=We(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return Ze(o),e;if(a===r)return Ze(o),t;a=a.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=a;else{for(var u=!1,s=o.child;s;){if(s===n){u=!0,n=o,r=a;break}if(s===r){u=!0,r=o,n=a;break}s=s.sibling}if(!u){for(s=a.child;s;){if(s===n){u=!0,n=a,r=o;break}if(s===r){u=!0,r=a,n=o;break}s=s.sibling}if(!u)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function et(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var tt,nt,rt,ot,at=!1,it=[],ut=null,st=null,ct=null,lt=new Map,ft=new Map,dt=[],pt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ht(e,t,n,r,o){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:o,targetContainers:[r]}}function vt(e,t){switch(e){case"focusin":case"focusout":ut=null;break;case"dragenter":case"dragleave":st=null;break;case"mouseover":case"mouseout":ct=null;break;case"pointerover":case"pointerout":lt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ft.delete(t.pointerId)}}function mt(e,t,n,r,o,a){return null===e||e.nativeEvent!==a?(e=ht(t,n,r,o,a),null!==t&&(null!==(t=ro(t))&&nt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function yt(e){var t=no(e.target);if(null!==t){var n=We(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Qe(n)))return e.blockedOn=t,void ot(e.lanePriority,(function(){a.unstable_runWithPriority(e.priority,(function(){rt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function gt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=ro(n))&&nt(t),e.blockedOn=n,!1;t.shift()}return!0}function bt(e,t,n){gt(e)&&n.delete(t)}function wt(){for(at=!1;0<it.length;){var e=it[0];if(null!==e.blockedOn){null!==(e=ro(e.blockedOn))&&tt(e);break}for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&it.shift()}null!==ut&&gt(ut)&&(ut=null),null!==st&&gt(st)&&(st=null),null!==ct&&gt(ct)&&(ct=null),lt.forEach(bt),ft.forEach(bt)}function _t(e,t){e.blockedOn===t&&(e.blockedOn=null,at||(at=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,wt)))}function xt(e){function t(t){return _t(t,e)}if(0<it.length){_t(it[0],e);for(var n=1;n<it.length;n++){var r=it[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==ut&&_t(ut,e),null!==st&&_t(st,e),null!==ct&&_t(ct,e),lt.forEach(t),ft.forEach(t),n=0;n<dt.length;n++)(r=dt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<dt.length&&null===(n=dt[0]).blockedOn;)yt(n),null===n.blockedOn&&dt.shift()}function Et(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var kt={animationend:Et("Animation","AnimationEnd"),animationiteration:Et("Animation","AnimationIteration"),animationstart:Et("Animation","AnimationStart"),transitionend:Et("Transition","TransitionEnd")},St={},Ot={};function Pt(e){if(St[e])return St[e];if(!kt[e])return e;var t,n=kt[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ot)return St[e]=n[t];return e}f&&(Ot=document.createElement("div").style,"AnimationEvent"in window||(delete kt.animationend.animation,delete kt.animationiteration.animation,delete kt.animationstart.animation),"TransitionEvent"in window||delete kt.transitionend.transition);var Ct=Pt("animationend"),Nt=Pt("animationiteration"),jt=Pt("animationstart"),Mt=Pt("transitionend"),Tt=new Map,Dt=new Map,It=["abort","abort",Ct,"animationEnd",Nt,"animationIteration",jt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Mt,"transitionEnd","waiting","waiting"];function At(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],o=e[n+1];o="on"+(o[0].toUpperCase()+o.slice(1)),Dt.set(r,t),Tt.set(r,o),c(o,[r])}}(0,a.unstable_now)();var Rt=8;function Lt(e){if(0!==(1&e))return Rt=15,1;if(0!==(2&e))return Rt=14,2;if(0!==(4&e))return Rt=13,4;var t=24&e;return 0!==t?(Rt=12,t):0!==(32&e)?(Rt=11,32):0!==(t=192&e)?(Rt=10,t):0!==(256&e)?(Rt=9,256):0!==(t=3584&e)?(Rt=8,t):0!==(4096&e)?(Rt=7,4096):0!==(t=4186112&e)?(Rt=6,t):0!==(t=62914560&e)?(Rt=5,t):67108864&e?(Rt=4,67108864):0!==(134217728&e)?(Rt=3,134217728):0!==(t=805306368&e)?(Rt=2,t):0!==(1073741824&e)?(Rt=1,1073741824):(Rt=8,e)}function zt(e,t){var n=e.pendingLanes;if(0===n)return Rt=0;var r=0,o=0,a=e.expiredLanes,i=e.suspendedLanes,u=e.pingedLanes;if(0!==a)r=a,o=Rt=15;else if(0!==(a=134217727&n)){var s=a&~i;0!==s?(r=Lt(s),o=Rt):0!==(u&=a)&&(r=Lt(u),o=Rt)}else 0!==(a=n&~i)?(r=Lt(a),o=Rt):0!==u&&(r=Lt(u),o=Rt);if(0===r)return 0;if(r=n&((0>(r=31-Ht(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0===(t&i)){if(Lt(t),o<=Rt)return t;Rt=o}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-Ht(t)),r|=e[n],t&=~o;return r}function $t(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Ft(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Ut(24&~t))?Ft(10,t):e;case 10:return 0===(e=Ut(192&~t))?Ft(8,t):e;case 8:return 0===(e=Ut(3584&~t))&&(0===(e=Ut(4186112&~t))&&(e=512)),e;case 2:return 0===(t=Ut(805306368&~t))&&(t=268435456),t}throw Error(i(358,e))}function Ut(e){return e&-e}function Bt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Vt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Ht(t)]=n}var Ht=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(qt(e)/Yt|0)|0},qt=Math.log,Yt=Math.LN2;var Gt=a.unstable_UserBlockingPriority,Xt=a.unstable_runWithPriority,Kt=!0;function Wt(e,t,n,r){Le||Ae();var o=Zt,a=Le;Le=!0;try{Ie(o,e,t,n,r)}finally{(Le=a)||$e()}}function Qt(e,t,n,r){Xt(Gt,Zt.bind(null,e,t,n,r))}function Zt(e,t,n,r){var o;if(Kt)if((o=0===(4&t))&&0<it.length&&-1<pt.indexOf(e))e=ht(null,e,t,n,r),it.push(e);else{var a=Jt(e,t,n,r);if(null===a)o&&vt(e,r);else{if(o){if(-1<pt.indexOf(e))return e=ht(a,e,t,n,r),void it.push(e);if(function(e,t,n,r,o){switch(t){case"focusin":return ut=mt(ut,e,t,n,r,o),!0;case"dragenter":return st=mt(st,e,t,n,r,o),!0;case"mouseover":return ct=mt(ct,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return lt.set(a,mt(lt.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,ft.set(a,mt(ft.get(a)||null,e,t,n,r,o)),!0}return!1}(a,e,t,n,r))return;vt(e,r)}Ar(e,t,r,null,n)}}}function Jt(e,t,n,r){var o=Oe(r);if(null!==(o=no(o))){var a=We(o);if(null===a)o=null;else{var i=a.tag;if(13===i){if(null!==(o=Qe(a)))return o;o=null}else if(3===i){if(a.stateNode.hydrate)return 3===a.tag?a.stateNode.containerInfo:null;o=null}else a!==o&&(o=null)}}return Ar(e,t,r,o,n),null}var en=null,tn=null,nn=null;function rn(){if(nn)return nn;var e,t,n=tn,r=n.length,o="value"in en?en.value:en.textContent,a=o.length;for(e=0;e<r&&n[e]===o[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===o[a-t];t++);return nn=o.slice(e,1<t?1-t:void 0)}function on(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function an(){return!0}function un(){return!1}function sn(e){function t(t,n,r,o,a){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(o):o[i]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?an:un,this.isPropagationStopped=un,this}return o(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=an)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=an)},persist:function(){},isPersistent:an}),t}var cn,ln,fn,dn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pn=sn(dn),hn=o({},dn,{view:0,detail:0}),vn=sn(hn),mn=o({},hn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==fn&&(fn&&"mousemove"===e.type?(cn=e.screenX-fn.screenX,ln=e.screenY-fn.screenY):ln=cn=0,fn=e),cn)},movementY:function(e){return"movementY"in e?e.movementY:ln}}),yn=sn(mn),gn=sn(o({},mn,{dataTransfer:0})),bn=sn(o({},hn,{relatedTarget:0})),wn=sn(o({},dn,{animationName:0,elapsedTime:0,pseudoElement:0})),_n=o({},dn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),xn=sn(_n),En=sn(o({},dn,{data:0})),kn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},On={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Pn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=On[e])&&!!t[e]}function Cn(){return Pn}var Nn=o({},hn,{key:function(e){if(e.key){var t=kn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=on(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Sn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?on(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?on(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),jn=sn(Nn),Mn=sn(o({},mn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Tn=sn(o({},hn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),Dn=sn(o({},dn,{propertyName:0,elapsedTime:0,pseudoElement:0})),In=o({},mn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),An=sn(In),Rn=[9,13,27,32],Ln=f&&"CompositionEvent"in window,zn=null;f&&"documentMode"in document&&(zn=document.documentMode);var $n=f&&"TextEvent"in window&&!zn,Fn=f&&(!Ln||zn&&8<zn&&11>=zn),Un=String.fromCharCode(32),Bn=!1;function Vn(e,t){switch(e){case"keyup":return-1!==Rn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var qn=!1;var Yn={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 Gn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Yn[e.type]:"textarea"===t}function Xn(e,t,n,r){Me(r),0<(t=Lr(t,"onChange")).length&&(n=new pn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Kn=null,Wn=null;function Qn(e){Nr(e,0)}function Zn(e){if(Q(oo(e)))return e}function Jn(e,t){if("change"===e)return t}var er=!1;if(f){var tr;if(f){var nr="oninput"in document;if(!nr){var rr=document.createElement("div");rr.setAttribute("oninput","return;"),nr="function"===typeof rr.oninput}tr=nr}else tr=!1;er=tr&&(!document.documentMode||9<document.documentMode)}function or(){Kn&&(Kn.detachEvent("onpropertychange",ar),Wn=Kn=null)}function ar(e){if("value"===e.propertyName&&Zn(Wn)){var t=[];if(Xn(t,Wn,e,Oe(e)),e=Qn,Le)e(t);else{Le=!0;try{De(e,t)}finally{Le=!1,$e()}}}}function ir(e,t,n){"focusin"===e?(or(),Wn=n,(Kn=t).attachEvent("onpropertychange",ar)):"focusout"===e&&or()}function ur(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Zn(Wn)}function sr(e,t){if("click"===e)return Zn(t)}function cr(e,t){if("input"===e||"change"===e)return Zn(t)}var lr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},fr=Object.prototype.hasOwnProperty;function dr(e,t){if(lr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!fr.call(t,n[r])||!lr(e[n[r]],t[n[r]]))return!1;return!0}function pr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function hr(e,t){var n,r=pr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=pr(r)}}function vr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?vr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function mr(){for(var e=window,t=Z();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=Z((e=t.contentWindow).document)}return t}function yr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var gr=f&&"documentMode"in document&&11>=document.documentMode,br=null,wr=null,_r=null,xr=!1;function Er(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;xr||null==br||br!==Z(r)||("selectionStart"in(r=br)&&yr(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},_r&&dr(_r,r)||(_r=r,0<(r=Lr(wr,"onSelect")).length&&(t=new pn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=br)))}At("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),At("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),At(It,2);for(var kr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Sr=0;Sr<kr.length;Sr++)Dt.set(kr[Sr],0);l("onMouseEnter",["mouseout","mouseover"]),l("onMouseLeave",["mouseout","mouseover"]),l("onPointerEnter",["pointerout","pointerover"]),l("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Or="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Pr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Or));function Cr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,u,s,c){if(Ke.apply(this,arguments),He){if(!He)throw Error(i(198));var l=qe;He=!1,qe=null,Ye||(Ye=!0,Ge=l)}}(r,t,void 0,e),e.currentTarget=null}function Nr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var i=r.length-1;0<=i;i--){var u=r[i],s=u.instance,c=u.currentTarget;if(u=u.listener,s!==a&&o.isPropagationStopped())break e;Cr(o,u,c),a=s}else for(i=0;i<r.length;i++){if(s=(u=r[i]).instance,c=u.currentTarget,u=u.listener,s!==a&&o.isPropagationStopped())break e;Cr(o,u,c),a=s}}}if(Ye)throw e=Ge,Ye=!1,Ge=null,e}function jr(e,t){var n=io(t),r=e+"__bubble";n.has(r)||(Ir(t,e,2,!1),n.add(r))}var Mr="_reactListening"+Math.random().toString(36).slice(2);function Tr(e){e[Mr]||(e[Mr]=!0,u.forEach((function(t){Pr.has(t)||Dr(t,!1,e,null),Dr(t,!0,e,null)})))}function Dr(e,t,n,r){var o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,a=n;if("selectionchange"===e&&9!==n.nodeType&&(a=n.ownerDocument),null!==r&&!t&&Pr.has(e)){if("scroll"!==e)return;o|=2,a=r}var i=io(a),u=e+"__"+(t?"capture":"bubble");i.has(u)||(t&&(o|=4),Ir(a,e,o,t),i.add(u))}function Ir(e,t,n,r){var o=Dt.get(t);switch(void 0===o?2:o){case 0:o=Wt;break;case 1:o=Qt;break;default:o=Zt}n=o.bind(null,t,n,e),o=void 0,!Ue||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Ar(e,t,n,r,o){var a=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var u=r.stateNode.containerInfo;if(u===o||8===u.nodeType&&u.parentNode===o)break;if(4===i)for(i=r.return;null!==i;){var s=i.tag;if((3===s||4===s)&&((s=i.stateNode.containerInfo)===o||8===s.nodeType&&s.parentNode===o))return;i=i.return}for(;null!==u;){if(null===(i=no(u)))return;if(5===(s=i.tag)||6===s){r=a=i;continue e}u=u.parentNode}}r=r.return}!function(e,t,n){if(ze)return e(t,n);ze=!0;try{Re(e,t,n)}finally{ze=!1,$e()}}((function(){var r=a,o=Oe(n),i=[];e:{var u=Tt.get(e);if(void 0!==u){var s=pn,c=e;switch(e){case"keypress":if(0===on(n))break e;case"keydown":case"keyup":s=jn;break;case"focusin":c="focus",s=bn;break;case"focusout":c="blur",s=bn;break;case"beforeblur":case"afterblur":s=bn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=yn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Tn;break;case Ct:case Nt:case jt:s=wn;break;case Mt:s=Dn;break;case"scroll":s=vn;break;case"wheel":s=An;break;case"copy":case"cut":case"paste":s=xn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Mn}var l=0!==(4&t),f=!l&&"scroll"===e,d=l?null!==u?u+"Capture":null:u;l=[];for(var p,h=r;null!==h;){var v=(p=h).stateNode;if(5===p.tag&&null!==v&&(p=v,null!==d&&(null!=(v=Fe(h,d))&&l.push(Rr(h,v,p)))),f)break;h=h.return}0<l.length&&(u=new s(u,c,null,n,o),i.push({event:u,listeners:l}))}}if(0===(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(u="mouseover"===e||"pointerover"===e)||0!==(16&t)||!(c=n.relatedTarget||n.fromElement)||!no(c)&&!c[eo])&&(s||u)&&(u=o.window===o?o:(u=o.ownerDocument)?u.defaultView||u.parentWindow:window,s?(s=r,null!==(c=(c=n.relatedTarget||n.toElement)?no(c):null)&&(c!==(f=We(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(s=null,c=r),s!==c)){if(l=yn,v="onMouseLeave",d="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(l=Mn,v="onPointerLeave",d="onPointerEnter",h="pointer"),f=null==s?u:oo(s),p=null==c?u:oo(c),(u=new l(v,h+"leave",s,n,o)).target=f,u.relatedTarget=p,v=null,no(o)===r&&((l=new l(d,h+"enter",c,n,o)).target=p,l.relatedTarget=f,v=l),f=v,s&&c)e:{for(d=c,h=0,p=l=s;p;p=zr(p))h++;for(p=0,v=d;v;v=zr(v))p++;for(;0<h-p;)l=zr(l),h--;for(;0<p-h;)d=zr(d),p--;for(;h--;){if(l===d||null!==d&&l===d.alternate)break e;l=zr(l),d=zr(d)}l=null}else l=null;null!==s&&$r(i,u,s,l,!1),null!==c&&null!==f&&$r(i,f,c,l,!0)}if("select"===(s=(u=r?oo(r):window).nodeName&&u.nodeName.toLowerCase())||"input"===s&&"file"===u.type)var m=Jn;else if(Gn(u))if(er)m=cr;else{m=ur;var y=ir}else(s=u.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===u.type||"radio"===u.type)&&(m=sr);switch(m&&(m=m(e,r))?Xn(i,m,n,o):(y&&y(e,u,r),"focusout"===e&&(y=u._wrapperState)&&y.controlled&&"number"===u.type&&oe(u,"number",u.value)),y=r?oo(r):window,e){case"focusin":(Gn(y)||"true"===y.contentEditable)&&(br=y,wr=r,_r=null);break;case"focusout":_r=wr=br=null;break;case"mousedown":xr=!0;break;case"contextmenu":case"mouseup":case"dragend":xr=!1,Er(i,n,o);break;case"selectionchange":if(gr)break;case"keydown":case"keyup":Er(i,n,o)}var g;if(Ln)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else qn?Vn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Fn&&"ko"!==n.locale&&(qn||"onCompositionStart"!==b?"onCompositionEnd"===b&&qn&&(g=rn()):(tn="value"in(en=o)?en.value:en.textContent,qn=!0)),0<(y=Lr(r,b)).length&&(b=new En(b,e,null,n,o),i.push({event:b,listeners:y}),g?b.data=g:null!==(g=Hn(n))&&(b.data=g))),(g=$n?function(e,t){switch(e){case"compositionend":return Hn(t);case"keypress":return 32!==t.which?null:(Bn=!0,Un);case"textInput":return(e=t.data)===Un&&Bn?null:e;default:return null}}(e,n):function(e,t){if(qn)return"compositionend"===e||!Ln&&Vn(e,t)?(e=rn(),nn=tn=en=null,qn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Fn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Lr(r,"onBeforeInput")).length&&(o=new En("onBeforeInput","beforeinput",null,n,o),i.push({event:o,listeners:r}),o.data=g))}Nr(i,t)}))}function Rr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Lr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,a=o.stateNode;5===o.tag&&null!==a&&(o=a,null!=(a=Fe(e,n))&&r.unshift(Rr(e,a,o)),null!=(a=Fe(e,t))&&r.push(Rr(e,a,o))),e=e.return}return r}function zr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function $r(e,t,n,r,o){for(var a=t._reactName,i=[];null!==n&&n!==r;){var u=n,s=u.alternate,c=u.stateNode;if(null!==s&&s===r)break;5===u.tag&&null!==c&&(u=c,o?null!=(s=Fe(n,a))&&i.unshift(Rr(n,s,u)):o||null!=(s=Fe(n,a))&&i.push(Rr(n,s,u))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}function Fr(){}var Ur=null,Br=null;function Vr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Hr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var qr="function"===typeof setTimeout?setTimeout:void 0,Yr="function"===typeof clearTimeout?clearTimeout:void 0;function Gr(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function Xr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Kr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Wr=0;var Qr=Math.random().toString(36).slice(2),Zr="__reactFiber$"+Qr,Jr="__reactProps$"+Qr,eo="__reactContainer$"+Qr,to="__reactEvents$"+Qr;function no(e){var t=e[Zr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[eo]||n[Zr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Kr(e);null!==e;){if(n=e[Zr])return n;e=Kr(e)}return t}n=(e=n).parentNode}return null}function ro(e){return!(e=e[Zr]||e[eo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function oo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function ao(e){return e[Jr]||null}function io(e){var t=e[to];return void 0===t&&(t=e[to]=new Set),t}var uo=[],so=-1;function co(e){return{current:e}}function lo(e){0>so||(e.current=uo[so],uo[so]=null,so--)}function fo(e,t){so++,uo[so]=e.current,e.current=t}var po={},ho=co(po),vo=co(!1),mo=po;function yo(e,t){var n=e.type.contextTypes;if(!n)return po;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in n)a[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function go(e){return null!==(e=e.childContextTypes)&&void 0!==e}function bo(){lo(vo),lo(ho)}function wo(e,t,n){if(ho.current!==po)throw Error(i(168));fo(ho,t),fo(vo,n)}function _o(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var a in r=r.getChildContext())if(!(a in e))throw Error(i(108,G(t)||"Unknown",a));return o({},n,r)}function xo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||po,mo=ho.current,fo(ho,e),fo(vo,vo.current),!0}function Eo(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=_o(e,t,mo),r.__reactInternalMemoizedMergedChildContext=e,lo(vo),lo(ho),fo(ho,e)):lo(vo),fo(vo,n)}var ko=null,So=null,Oo=a.unstable_runWithPriority,Po=a.unstable_scheduleCallback,Co=a.unstable_cancelCallback,No=a.unstable_shouldYield,jo=a.unstable_requestPaint,Mo=a.unstable_now,To=a.unstable_getCurrentPriorityLevel,Do=a.unstable_ImmediatePriority,Io=a.unstable_UserBlockingPriority,Ao=a.unstable_NormalPriority,Ro=a.unstable_LowPriority,Lo=a.unstable_IdlePriority,zo={},$o=void 0!==jo?jo:function(){},Fo=null,Uo=null,Bo=!1,Vo=Mo(),Ho=1e4>Vo?Mo:function(){return Mo()-Vo};function qo(){switch(To()){case Do:return 99;case Io:return 98;case Ao:return 97;case Ro:return 96;case Lo:return 95;default:throw Error(i(332))}}function Yo(e){switch(e){case 99:return Do;case 98:return Io;case 97:return Ao;case 96:return Ro;case 95:return Lo;default:throw Error(i(332))}}function Go(e,t){return e=Yo(e),Oo(e,t)}function Xo(e,t,n){return e=Yo(e),Po(e,t,n)}function Ko(){if(null!==Uo){var e=Uo;Uo=null,Co(e)}Wo()}function Wo(){if(!Bo&&null!==Fo){Bo=!0;var e=0;try{var t=Fo;Go(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Fo=null}catch(n){throw null!==Fo&&(Fo=Fo.slice(e+1)),Po(Do,Ko),n}finally{Bo=!1}}}var Qo=_.ReactCurrentBatchConfig;function Zo(e,t){if(e&&e.defaultProps){for(var n in t=o({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Jo=co(null),ea=null,ta=null,na=null;function ra(){na=ta=ea=null}function oa(e){var t=Jo.current;lo(Jo),e.type._context._currentValue=t}function aa(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function ia(e,t){ea=e,na=ta=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(Li=!0),e.firstContext=null)}function ua(e,t){if(na!==e&&!1!==t&&0!==t)if("number"===typeof t&&1073741823!==t||(na=e,t=1073741823),t={context:e,observedBits:t,next:null},null===ta){if(null===ea)throw Error(i(308));ta=t,ea.dependencies={lanes:0,firstContext:t,responders:null}}else ta=ta.next=t;return e._currentValue}var sa=!1;function ca(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function la(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function fa(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function da(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function pa(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?o=a=i:a=a.next=i,n=n.next}while(null!==n);null===a?o=a=t:a=a.next=t}else o=a=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ha(e,t,n,r){var a=e.updateQueue;sa=!1;var i=a.firstBaseUpdate,u=a.lastBaseUpdate,s=a.shared.pending;if(null!==s){a.shared.pending=null;var c=s,l=c.next;c.next=null,null===u?i=l:u.next=l,u=c;var f=e.alternate;if(null!==f){var d=(f=f.updateQueue).lastBaseUpdate;d!==u&&(null===d?f.firstBaseUpdate=l:d.next=l,f.lastBaseUpdate=c)}}if(null!==i){for(d=a.baseState,u=0,f=l=c=null;;){s=i.lane;var p=i.eventTime;if((r&s)===s){null!==f&&(f=f.next={eventTime:p,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var h=e,v=i;switch(s=t,p=n,v.tag){case 1:if("function"===typeof(h=v.payload)){d=h.call(p,d,s);break e}d=h;break e;case 3:h.flags=-4097&h.flags|64;case 0:if(null===(s="function"===typeof(h=v.payload)?h.call(p,d,s):h)||void 0===s)break e;d=o({},d,s);break e;case 2:sa=!0}}null!==i.callback&&(e.flags|=32,null===(s=a.effects)?a.effects=[i]:s.push(i))}else p={eventTime:p,lane:s,tag:i.tag,payload:i.payload,callback:i.callback,next:null},null===f?(l=f=p,c=d):f=f.next=p,u|=s;if(null===(i=i.next)){if(null===(s=a.shared.pending))break;i=s.next,s.next=null,a.lastBaseUpdate=s,a.shared.pending=null}}null===f&&(c=d),a.baseState=c,a.firstBaseUpdate=l,a.lastBaseUpdate=f,Uu|=u,e.lanes=u,e.memoizedState=d}}function va(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!==typeof o)throw Error(i(191,o));o.call(r)}}}var ma=(new r.Component).refs;function ya(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:o({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ga={isMounted:function(e){return!!(e=e._reactInternals)&&We(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ds(),o=ps(e),a=fa(r,o);a.payload=t,void 0!==n&&null!==n&&(a.callback=n),da(e,a),hs(e,o,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ds(),o=ps(e),a=fa(r,o);a.tag=1,a.payload=t,void 0!==n&&null!==n&&(a.callback=n),da(e,a),hs(e,o,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ds(),r=ps(e),o=fa(n,r);o.tag=2,void 0!==t&&null!==t&&(o.callback=t),da(e,o),hs(e,r,n)}};function ba(e,t,n,r,o,a,i){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,i):!t.prototype||!t.prototype.isPureReactComponent||(!dr(n,r)||!dr(o,a))}function wa(e,t,n){var r=!1,o=po,a=t.contextType;return"object"===typeof a&&null!==a?a=ua(a):(o=go(t)?mo:ho.current,a=(r=null!==(r=t.contextTypes)&&void 0!==r)?yo(e,o):po),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ga,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function _a(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ga.enqueueReplaceState(t,t.state,null)}function xa(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=ma,ca(e);var a=t.contextType;"object"===typeof a&&null!==a?o.context=ua(a):(a=go(t)?mo:ho.current,o.context=yo(e,a)),ha(e,n,o,r),o.state=e.memoizedState,"function"===typeof(a=t.getDerivedStateFromProps)&&(ya(e,t,a,n),o.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof o.getSnapshotBeforeUpdate||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||(t=o.state,"function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&ga.enqueueReplaceState(o,o.state,null),ha(e,n,o,r),o.state=e.memoizedState),"function"===typeof o.componentDidMount&&(e.flags|=4)}var Ea=Array.isArray;function ka(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var o=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=r.refs;t===ma&&(t=r.refs={}),null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!==typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function Sa(e,t){if("textarea"!==e.type)throw Error(i(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function Oa(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Ys(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function u(t){return e&&null===t.alternate&&(t.flags=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Ws(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){return null!==t&&t.elementType===n.type?((r=o(t,n.props)).ref=ka(e,t,n),r.return=e,r):((r=Gs(n.type,n.key,n.props,null,e.mode,r)).ref=ka(e,t,n),r.return=e,r)}function l(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Qs(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function f(e,t,n,r,a){return null===t||7!==t.tag?((t=Xs(n,e.mode,r,a)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"===typeof t||"number"===typeof t)return(t=Ws(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case x:return(n=Gs(t.type,t.key,t.props,null,e.mode,n)).ref=ka(e,null,t),n.return=e,n;case E:return(t=Qs(t,e.mode,n)).return=e,t}if(Ea(t)||B(t))return(t=Xs(t,e.mode,n,null)).return=e,t;Sa(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"===typeof n||"number"===typeof n)return null!==o?null:s(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case x:return n.key===o?n.type===k?f(e,t,n.props.children,r,o):c(e,t,n,r):null;case E:return n.key===o?l(e,t,n,r):null}if(Ea(n)||B(n))return null!==o?null:f(e,t,n,r,null);Sa(e,n)}return null}function h(e,t,n,r,o){if("string"===typeof r||"number"===typeof r)return s(t,e=e.get(n)||null,""+r,o);if("object"===typeof r&&null!==r){switch(r.$$typeof){case x:return e=e.get(null===r.key?n:r.key)||null,r.type===k?f(t,e,r.props.children,o,r.key):c(t,e,r,o);case E:return l(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(Ea(r)||B(r))return f(t,e=e.get(n)||null,r,o,null);Sa(t,r)}return null}function v(o,i,u,s){for(var c=null,l=null,f=i,v=i=0,m=null;null!==f&&v<u.length;v++){f.index>v?(m=f,f=null):m=f.sibling;var y=p(o,f,u[v],s);if(null===y){null===f&&(f=m);break}e&&f&&null===y.alternate&&t(o,f),i=a(y,i,v),null===l?c=y:l.sibling=y,l=y,f=m}if(v===u.length)return n(o,f),c;if(null===f){for(;v<u.length;v++)null!==(f=d(o,u[v],s))&&(i=a(f,i,v),null===l?c=f:l.sibling=f,l=f);return c}for(f=r(o,f);v<u.length;v++)null!==(m=h(f,o,v,u[v],s))&&(e&&null!==m.alternate&&f.delete(null===m.key?v:m.key),i=a(m,i,v),null===l?c=m:l.sibling=m,l=m);return e&&f.forEach((function(e){return t(o,e)})),c}function m(o,u,s,c){var l=B(s);if("function"!==typeof l)throw Error(i(150));if(null==(s=l.call(s)))throw Error(i(151));for(var f=l=null,v=u,m=u=0,y=null,g=s.next();null!==v&&!g.done;m++,g=s.next()){v.index>m?(y=v,v=null):y=v.sibling;var b=p(o,v,g.value,c);if(null===b){null===v&&(v=y);break}e&&v&&null===b.alternate&&t(o,v),u=a(b,u,m),null===f?l=b:f.sibling=b,f=b,v=y}if(g.done)return n(o,v),l;if(null===v){for(;!g.done;m++,g=s.next())null!==(g=d(o,g.value,c))&&(u=a(g,u,m),null===f?l=g:f.sibling=g,f=g);return l}for(v=r(o,v);!g.done;m++,g=s.next())null!==(g=h(v,o,m,g.value,c))&&(e&&null!==g.alternate&&v.delete(null===g.key?m:g.key),u=a(g,u,m),null===f?l=g:f.sibling=g,f=g);return e&&v.forEach((function(e){return t(o,e)})),l}return function(e,r,a,s){var c="object"===typeof a&&null!==a&&a.type===k&&null===a.key;c&&(a=a.props.children);var l="object"===typeof a&&null!==a;if(l)switch(a.$$typeof){case x:e:{for(l=a.key,c=r;null!==c;){if(c.key===l){if(7===c.tag){if(a.type===k){n(e,c.sibling),(r=o(c,a.props.children)).return=e,e=r;break e}}else if(c.elementType===a.type){n(e,c.sibling),(r=o(c,a.props)).ref=ka(e,c,a),r.return=e,e=r;break e}n(e,c);break}t(e,c),c=c.sibling}a.type===k?((r=Xs(a.props.children,e.mode,s,a.key)).return=e,e=r):((s=Gs(a.type,a.key,a.props,null,e.mode,s)).ref=ka(e,r,a),s.return=e,e=s)}return u(e);case E:e:{for(c=a.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),(r=o(r,a.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Qs(a,e.mode,s)).return=e,e=r}return u(e)}if("string"===typeof a||"number"===typeof a)return a=""+a,null!==r&&6===r.tag?(n(e,r.sibling),(r=o(r,a)).return=e,e=r):(n(e,r),(r=Ws(a,e.mode,s)).return=e,e=r),u(e);if(Ea(a))return v(e,r,a,s);if(B(a))return m(e,r,a,s);if(l&&Sa(e,a),"undefined"===typeof a&&!c)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(i(152,G(e.type)||"Component"))}return n(e,r)}}var Pa=Oa(!0),Ca=Oa(!1),Na={},ja=co(Na),Ma=co(Na),Ta=co(Na);function Da(e){if(e===Na)throw Error(i(174));return e}function Ia(e,t){switch(fo(Ta,t),fo(Ma,e),fo(ja,Na),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:he(null,"");break;default:t=he(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}lo(ja),fo(ja,t)}function Aa(){lo(ja),lo(Ma),lo(Ta)}function Ra(e){Da(Ta.current);var t=Da(ja.current),n=he(t,e.type);t!==n&&(fo(Ma,e),fo(ja,n))}function La(e){Ma.current===e&&(lo(ja),lo(Ma))}var za=co(0);function $a(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Fa=null,Ua=null,Ba=!1;function Va(e,t){var n=Hs(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Ha(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function qa(e){if(Ba){var t=Ua;if(t){var n=t;if(!Ha(e,t)){if(!(t=Xr(n.nextSibling))||!Ha(e,t))return e.flags=-1025&e.flags|2,Ba=!1,void(Fa=e);Va(Fa,n)}Fa=e,Ua=Xr(t.firstChild)}else e.flags=-1025&e.flags|2,Ba=!1,Fa=e}}function Ya(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Fa=e}function Ga(e){if(e!==Fa)return!1;if(!Ba)return Ya(e),Ba=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Hr(t,e.memoizedProps))for(t=Ua;t;)Va(e,t),t=Xr(t.nextSibling);if(Ya(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Ua=Xr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Ua=null}}else Ua=Fa?Xr(e.stateNode.nextSibling):null;return!0}function Xa(){Ua=Fa=null,Ba=!1}var Ka=[];function Wa(){for(var e=0;e<Ka.length;e++)Ka[e]._workInProgressVersionPrimary=null;Ka.length=0}var Qa=_.ReactCurrentDispatcher,Za=_.ReactCurrentBatchConfig,Ja=0,ei=null,ti=null,ni=null,ri=!1,oi=!1;function ai(){throw Error(i(321))}function ii(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lr(e[n],t[n]))return!1;return!0}function ui(e,t,n,r,o,a){if(Ja=a,ei=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Qa.current=null===e||null===e.memoizedState?Di:Ii,e=n(r,o),oi){a=0;do{if(oi=!1,!(25>a))throw Error(i(301));a+=1,ni=ti=null,t.updateQueue=null,Qa.current=Ai,e=n(r,o)}while(oi)}if(Qa.current=Ti,t=null!==ti&&null!==ti.next,Ja=0,ni=ti=ei=null,ri=!1,t)throw Error(i(300));return e}function si(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ni?ei.memoizedState=ni=e:ni=ni.next=e,ni}function ci(){if(null===ti){var e=ei.alternate;e=null!==e?e.memoizedState:null}else e=ti.next;var t=null===ni?ei.memoizedState:ni.next;if(null!==t)ni=t,ti=e;else{if(null===e)throw Error(i(310));e={memoizedState:(ti=e).memoizedState,baseState:ti.baseState,baseQueue:ti.baseQueue,queue:ti.queue,next:null},null===ni?ei.memoizedState=ni=e:ni=ni.next=e}return ni}function li(e,t){return"function"===typeof t?t(e):t}function fi(e){var t=ci(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=ti,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var u=o.next;o.next=a.next,a.next=u}r.baseQueue=o=a,n.pending=null}if(null!==o){o=o.next,r=r.baseState;var s=u=a=null,c=o;do{var l=c.lane;if((Ja&l)===l)null!==s&&(s=s.next={lane:0,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),r=c.eagerReducer===e?c.eagerState:e(r,c.action);else{var f={lane:l,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===s?(u=s=f,a=r):s=s.next=f,ei.lanes|=l,Uu|=l}c=c.next}while(null!==c&&c!==o);null===s?a=r:s.next=u,lr(r,t.memoizedState)||(Li=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=s,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function di(e){var t=ci(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var u=o=o.next;do{a=e(a,u.action),u=u.next}while(u!==o);lr(a,t.memoizedState)||(Li=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function pi(e,t,n){var r=t._getVersion;r=r(t._source);var o=t._workInProgressVersionPrimary;if(null!==o?e=o===r:(e=e.mutableReadLanes,(e=(Ja&e)===e)&&(t._workInProgressVersionPrimary=r,Ka.push(t))),e)return n(t._source);throw Ka.push(t),Error(i(350))}function hi(e,t,n,r){var o=Du;if(null===o)throw Error(i(349));var a=t._getVersion,u=a(t._source),s=Qa.current,c=s.useState((function(){return pi(o,t,n)})),l=c[1],f=c[0];c=ni;var d=e.memoizedState,p=d.refs,h=p.getSnapshot,v=d.source;d=d.subscribe;var m=ei;return e.memoizedState={refs:p,source:t,subscribe:r},s.useEffect((function(){p.getSnapshot=n,p.setSnapshot=l;var e=a(t._source);if(!lr(u,e)){e=n(t._source),lr(f,e)||(l(e),e=ps(m),o.mutableReadLanes|=e&o.pendingLanes),e=o.mutableReadLanes,o.entangledLanes|=e;for(var r=o.entanglements,i=e;0<i;){var s=31-Ht(i),c=1<<s;r[s]|=e,i&=~c}}}),[n,t,r]),s.useEffect((function(){return r(t._source,(function(){var e=p.getSnapshot,n=p.setSnapshot;try{n(e(t._source));var r=ps(m);o.mutableReadLanes|=r&o.pendingLanes}catch(a){n((function(){throw a}))}}))}),[t,r]),lr(h,n)&&lr(v,t)&&lr(d,r)||((e={pending:null,dispatch:null,lastRenderedReducer:li,lastRenderedState:f}).dispatch=l=Mi.bind(null,ei,e),c.queue=e,c.baseQueue=null,f=pi(o,t,n),c.memoizedState=c.baseState=f),f}function vi(e,t,n){return hi(ci(),e,t,n)}function mi(e){var t=si();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:li,lastRenderedState:e}).dispatch=Mi.bind(null,ei,e),[t.memoizedState,e]}function yi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ei.updateQueue)?(t={lastEffect:null},ei.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function gi(e){return e={current:e},si().memoizedState=e}function bi(){return ci().memoizedState}function wi(e,t,n,r){var o=si();ei.flags|=e,o.memoizedState=yi(1|t,n,void 0,void 0===r?null:r)}function _i(e,t,n,r){var o=ci();r=void 0===r?null:r;var a=void 0;if(null!==ti){var i=ti.memoizedState;if(a=i.destroy,null!==r&&ii(r,i.deps))return void yi(t,n,a,r)}ei.flags|=e,o.memoizedState=yi(1|t,n,a,r)}function xi(e,t){return wi(516,4,e,t)}function Ei(e,t){return _i(516,4,e,t)}function ki(e,t){return _i(4,2,e,t)}function Si(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Oi(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,_i(4,2,Si.bind(null,t,e),n)}function Pi(){}function Ci(e,t){var n=ci();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ii(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ni(e,t){var n=ci();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ii(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ji(e,t){var n=qo();Go(98>n?98:n,(function(){e(!0)})),Go(97<n?97:n,(function(){var n=Za.transition;Za.transition=1;try{e(!1),t()}finally{Za.transition=n}}))}function Mi(e,t,n){var r=ds(),o=ps(e),a={lane:o,action:n,eagerReducer:null,eagerState:null,next:null},i=t.pending;if(null===i?a.next=a:(a.next=i.next,i.next=a),t.pending=a,i=e.alternate,e===ei||null!==i&&i===ei)oi=ri=!0;else{if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var u=t.lastRenderedState,s=i(u,n);if(a.eagerReducer=i,a.eagerState=s,lr(s,u))return}catch(c){}hs(e,o,r)}}var Ti={readContext:ua,useCallback:ai,useContext:ai,useEffect:ai,useImperativeHandle:ai,useLayoutEffect:ai,useMemo:ai,useReducer:ai,useRef:ai,useState:ai,useDebugValue:ai,useDeferredValue:ai,useTransition:ai,useMutableSource:ai,useOpaqueIdentifier:ai,unstable_isNewReconciler:!1},Di={readContext:ua,useCallback:function(e,t){return si().memoizedState=[e,void 0===t?null:t],e},useContext:ua,useEffect:xi,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,wi(4,2,Si.bind(null,t,e),n)},useLayoutEffect:function(e,t){return wi(4,2,e,t)},useMemo:function(e,t){var n=si();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=si();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Mi.bind(null,ei,e),[r.memoizedState,e]},useRef:gi,useState:mi,useDebugValue:Pi,useDeferredValue:function(e){var t=mi(e),n=t[0],r=t[1];return xi((function(){var t=Za.transition;Za.transition=1;try{r(e)}finally{Za.transition=t}}),[e]),n},useTransition:function(){var e=mi(!1),t=e[0];return gi(e=ji.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=si();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},hi(r,e,t,n)},useOpaqueIdentifier:function(){if(Ba){var e=!1,t=function(e){return{$$typeof:A,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Wr++).toString(36))),Error(i(355))})),n=mi(t)[1];return 0===(2&ei.mode)&&(ei.flags|=516,yi(5,(function(){n("r:"+(Wr++).toString(36))}),void 0,null)),t}return mi(t="r:"+(Wr++).toString(36)),t},unstable_isNewReconciler:!1},Ii={readContext:ua,useCallback:Ci,useContext:ua,useEffect:Ei,useImperativeHandle:Oi,useLayoutEffect:ki,useMemo:Ni,useReducer:fi,useRef:bi,useState:function(){return fi(li)},useDebugValue:Pi,useDeferredValue:function(e){var t=fi(li),n=t[0],r=t[1];return Ei((function(){var t=Za.transition;Za.transition=1;try{r(e)}finally{Za.transition=t}}),[e]),n},useTransition:function(){var e=fi(li)[0];return[bi().current,e]},useMutableSource:vi,useOpaqueIdentifier:function(){return fi(li)[0]},unstable_isNewReconciler:!1},Ai={readContext:ua,useCallback:Ci,useContext:ua,useEffect:Ei,useImperativeHandle:Oi,useLayoutEffect:ki,useMemo:Ni,useReducer:di,useRef:bi,useState:function(){return di(li)},useDebugValue:Pi,useDeferredValue:function(e){var t=di(li),n=t[0],r=t[1];return Ei((function(){var t=Za.transition;Za.transition=1;try{r(e)}finally{Za.transition=t}}),[e]),n},useTransition:function(){var e=di(li)[0];return[bi().current,e]},useMutableSource:vi,useOpaqueIdentifier:function(){return di(li)[0]},unstable_isNewReconciler:!1},Ri=_.ReactCurrentOwner,Li=!1;function zi(e,t,n,r){t.child=null===e?Ca(t,null,n,r):Pa(t,e.child,n,r)}function $i(e,t,n,r,o){n=n.render;var a=t.ref;return ia(t,o),r=ui(e,t,n,r,a,o),null===e||Li?(t.flags|=1,zi(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,au(e,t,o))}function Fi(e,t,n,r,o,a){if(null===e){var i=n.type;return"function"!==typeof i||qs(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Gs(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Ui(e,t,i,r,o,a))}return i=e.child,0===(o&a)&&(o=i.memoizedProps,(n=null!==(n=n.compare)?n:dr)(o,r)&&e.ref===t.ref)?au(e,t,a):(t.flags|=1,(e=Ys(i,r)).ref=t.ref,e.return=t,t.child=e)}function Ui(e,t,n,r,o,a){if(null!==e&&dr(e.memoizedProps,r)&&e.ref===t.ref){if(Li=!1,0===(a&o))return t.lanes=e.lanes,au(e,t,a);0!==(16384&e.flags)&&(Li=!0)}return Hi(e,t,n,r,a)}function Bi(e,t,n){var r=t.pendingProps,o=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0===(4&t.mode))t.memoizedState={baseLanes:0},xs(t,n);else{if(0===(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},xs(t,e),null;t.memoizedState={baseLanes:0},xs(t,null!==a?a.baseLanes:n)}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,xs(t,r);return zi(e,t,o,n),t.child}function Vi(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Hi(e,t,n,r,o){var a=go(n)?mo:ho.current;return a=yo(t,a),ia(t,o),n=ui(e,t,n,r,a,o),null===e||Li?(t.flags|=1,zi(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,au(e,t,o))}function qi(e,t,n,r,o){if(go(n)){var a=!0;xo(t)}else a=!1;if(ia(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),wa(t,n,r),xa(t,n,r,o),r=!0;else if(null===e){var i=t.stateNode,u=t.memoizedProps;i.props=u;var s=i.context,c=n.contextType;"object"===typeof c&&null!==c?c=ua(c):c=yo(t,c=go(n)?mo:ho.current);var l=n.getDerivedStateFromProps,f="function"===typeof l||"function"===typeof i.getSnapshotBeforeUpdate;f||"function"!==typeof i.UNSAFE_componentWillReceiveProps&&"function"!==typeof i.componentWillReceiveProps||(u!==r||s!==c)&&_a(t,i,r,c),sa=!1;var d=t.memoizedState;i.state=d,ha(t,r,i,o),s=t.memoizedState,u!==r||d!==s||vo.current||sa?("function"===typeof l&&(ya(t,n,l,r),s=t.memoizedState),(u=sa||ba(t,n,u,r,d,s,c))?(f||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||("function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"===typeof i.componentDidMount&&(t.flags|=4)):("function"===typeof i.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=s),i.props=r,i.state=s,i.context=c,r=u):("function"===typeof i.componentDidMount&&(t.flags|=4),r=!1)}else{i=t.stateNode,la(e,t),u=t.memoizedProps,c=t.type===t.elementType?u:Zo(t.type,u),i.props=c,f=t.pendingProps,d=i.context,"object"===typeof(s=n.contextType)&&null!==s?s=ua(s):s=yo(t,s=go(n)?mo:ho.current);var p=n.getDerivedStateFromProps;(l="function"===typeof p||"function"===typeof i.getSnapshotBeforeUpdate)||"function"!==typeof i.UNSAFE_componentWillReceiveProps&&"function"!==typeof i.componentWillReceiveProps||(u!==f||d!==s)&&_a(t,i,r,s),sa=!1,d=t.memoizedState,i.state=d,ha(t,r,i,o);var h=t.memoizedState;u!==f||d!==h||vo.current||sa?("function"===typeof p&&(ya(t,n,p,r),h=t.memoizedState),(c=sa||ba(t,n,c,r,d,h,s))?(l||"function"!==typeof i.UNSAFE_componentWillUpdate&&"function"!==typeof i.componentWillUpdate||("function"===typeof i.componentWillUpdate&&i.componentWillUpdate(r,h,s),"function"===typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,h,s)),"function"===typeof i.componentDidUpdate&&(t.flags|=4),"function"===typeof i.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!==typeof i.componentDidUpdate||u===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof i.getSnapshotBeforeUpdate||u===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=h),i.props=r,i.state=h,i.context=s,r=c):("function"!==typeof i.componentDidUpdate||u===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof i.getSnapshotBeforeUpdate||u===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),r=!1)}return Yi(e,t,n,r,a,o)}function Yi(e,t,n,r,o,a){Vi(e,t);var i=0!==(64&t.flags);if(!r&&!i)return o&&Eo(t,n,!1),au(e,t,a);r=t.stateNode,Ri.current=t;var u=i&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=Pa(t,e.child,null,a),t.child=Pa(t,null,u,a)):zi(e,t,u,a),t.memoizedState=r.state,o&&Eo(t,n,!0),t.child}function Gi(e){var t=e.stateNode;t.pendingContext?wo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&wo(0,t.context,!1),Ia(e,t.containerInfo)}var Xi,Ki,Wi,Qi={dehydrated:null,retryLane:0};function Zi(e,t,n){var r,o=t.pendingProps,a=za.current,i=!1;return(r=0!==(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!==(2&a)),r?(i=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(a|=1),fo(za,1&a),null===e?(void 0!==o.fallback&&qa(t),e=o.children,a=o.fallback,i?(e=Ji(t,e,a,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Qi,e):"number"===typeof o.unstable_expectedLoadTime?(e=Ji(t,e,a,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Qi,t.lanes=33554432,e):((n=Ks({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,i?(o=tu(e,t,o.children,o.fallback,n),i=t.child,a=e.child.memoizedState,i.memoizedState=null===a?{baseLanes:n}:{baseLanes:a.baseLanes|n},i.childLanes=e.childLanes&~n,t.memoizedState=Qi,o):(n=eu(e,t,o.children,n),t.memoizedState=null,n))}function Ji(e,t,n,r){var o=e.mode,a=e.child;return t={mode:"hidden",children:t},0===(2&o)&&null!==a?(a.childLanes=0,a.pendingProps=t):a=Ks(t,o,0,null),n=Xs(n,o,r,null),a.return=e,n.return=e,a.sibling=n,e.child=a,n}function eu(e,t,n,r){var o=e.child;return e=o.sibling,n=Ys(o,{mode:"visible",children:n}),0===(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function tu(e,t,n,r,o){var a=t.mode,i=e.child;e=i.sibling;var u={mode:"hidden",children:n};return 0===(2&a)&&t.child!==i?((n=t.child).childLanes=0,n.pendingProps=u,null!==(i=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=i,i.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Ys(i,u),null!==e?r=Ys(e,r):(r=Xs(r,a,o,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function nu(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),aa(e.return,t)}function ru(e,t,n,r,o,a){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o,lastEffect:a}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o,i.lastEffect=a)}function ou(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(zi(e,t,r.children,n),0!==(2&(r=za.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!==(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&nu(e,n);else if(19===e.tag)nu(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(fo(za,r),0===(2&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===$a(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),ru(t,!1,o,n,a,t.lastEffect);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===$a(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}ru(t,!0,n,null,a,t.lastEffect);break;case"together":ru(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function au(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Uu|=t.lanes,0!==(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Ys(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ys(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function iu(e,t){if(!Ba)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function uu(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return go(t.type)&&bo(),null;case 3:return Aa(),lo(vo),lo(ho),Wa(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Ga(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:La(t);var a=Da(Ta.current);if(n=t.type,null!==e&&null!=t.stateNode)Ki(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(i(166));return null}if(e=Da(ja.current),Ga(t)){r=t.stateNode,n=t.type;var u=t.memoizedProps;switch(r[Zr]=t,r[Jr]=u,n){case"dialog":jr("cancel",r),jr("close",r);break;case"iframe":case"object":case"embed":jr("load",r);break;case"video":case"audio":for(e=0;e<Or.length;e++)jr(Or[e],r);break;case"source":jr("error",r);break;case"img":case"image":case"link":jr("error",r),jr("load",r);break;case"details":jr("toggle",r);break;case"input":ee(r,u),jr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!u.multiple},jr("invalid",r);break;case"textarea":se(r,u),jr("invalid",r)}for(var c in ke(n,u),e=null,u)u.hasOwnProperty(c)&&(a=u[c],"children"===c?"string"===typeof a?r.textContent!==a&&(e=["children",a]):"number"===typeof a&&r.textContent!==""+a&&(e=["children",""+a]):s.hasOwnProperty(c)&&null!=a&&"onScroll"===c&&jr("scroll",r));switch(n){case"input":W(r),re(r,u,!0);break;case"textarea":W(r),le(r);break;case"select":case"option":break;default:"function"===typeof u.onClick&&(r.onclick=Fr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(c=9===a.nodeType?a:a.ownerDocument,e===fe&&(e=pe(n)),e===fe?"script"===n?((e=c.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=c.createElement(n,{is:r.is}):(e=c.createElement(n),"select"===n&&(c=e,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):e=c.createElementNS(e,n),e[Zr]=t,e[Jr]=r,Xi(e,t),t.stateNode=e,c=Se(n,r),n){case"dialog":jr("cancel",e),jr("close",e),a=r;break;case"iframe":case"object":case"embed":jr("load",e),a=r;break;case"video":case"audio":for(a=0;a<Or.length;a++)jr(Or[a],e);a=r;break;case"source":jr("error",e),a=r;break;case"img":case"image":case"link":jr("error",e),jr("load",e),a=r;break;case"details":jr("toggle",e),a=r;break;case"input":ee(e,r),a=J(e,r),jr("invalid",e);break;case"option":a=ae(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},a=o({},r,{value:void 0}),jr("invalid",e);break;case"textarea":se(e,r),a=ue(e,r),jr("invalid",e);break;default:a=r}ke(n,a);var l=a;for(u in l)if(l.hasOwnProperty(u)){var f=l[u];"style"===u?xe(e,f):"dangerouslySetInnerHTML"===u?null!=(f=f?f.__html:void 0)&&ye(e,f):"children"===u?"string"===typeof f?("textarea"!==n||""!==f)&&ge(e,f):"number"===typeof f&&ge(e,""+f):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?null!=f&&"onScroll"===u&&jr("scroll",e):null!=f&&w(e,u,f,c))}switch(n){case"input":W(e),re(e,r,!1);break;case"textarea":W(e),le(e);break;case"option":null!=r.value&&e.setAttribute("value",""+X(r.value));break;case"select":e.multiple=!!r.multiple,null!=(u=r.value)?ie(e,!!r.multiple,u,!1):null!=r.defaultValue&&ie(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof a.onClick&&(e.onclick=Fr)}Vr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Wi(0,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(i(166));n=Da(Ta.current),Da(ja.current),Ga(t)?(r=t.stateNode,n=t.memoizedProps,r[Zr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Zr]=t,t.stateNode=r)}return null;case 13:return lo(za),r=t.memoizedState,0!==(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Ga(t):n=null!==e.memoizedState,r&&!n&&0!==(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!==(1&za.current)?0===zu&&(zu=3):(0!==zu&&3!==zu||(zu=4),null===Du||0===(134217727&Uu)&&0===(134217727&Bu)||gs(Du,Au))),(r||n)&&(t.flags|=4),null);case 4:return Aa(),null===e&&Tr(t.stateNode.containerInfo),null;case 10:return oa(t),null;case 19:if(lo(za),null===(r=t.memoizedState))return null;if(u=0!==(64&t.flags),null===(c=r.rendering))if(u)iu(r,!1);else{if(0!==zu||null!==e&&0!==(64&e.flags))for(e=t.child;null!==e;){if(null!==(c=$a(e))){for(t.flags|=64,iu(r,!1),null!==(u=c.updateQueue)&&(t.updateQueue=u,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(u=n).flags&=2,u.nextEffect=null,u.firstEffect=null,u.lastEffect=null,null===(c=u.alternate)?(u.childLanes=0,u.lanes=e,u.child=null,u.memoizedProps=null,u.memoizedState=null,u.updateQueue=null,u.dependencies=null,u.stateNode=null):(u.childLanes=c.childLanes,u.lanes=c.lanes,u.child=c.child,u.memoizedProps=c.memoizedProps,u.memoizedState=c.memoizedState,u.updateQueue=c.updateQueue,u.type=c.type,e=c.dependencies,u.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return fo(za,1&za.current|2),t.child}e=e.sibling}null!==r.tail&&Ho()>Yu&&(t.flags|=64,u=!0,iu(r,!1),t.lanes=33554432)}else{if(!u)if(null!==(e=$a(c))){if(t.flags|=64,u=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),iu(r,!0),null===r.tail&&"hidden"===r.tailMode&&!c.alternate&&!Ba)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Ho()-r.renderingStartTime>Yu&&1073741824!==n&&(t.flags|=64,u=!0,iu(r,!1),t.lanes=33554432);r.isBackwards?(c.sibling=t.child,t.child=c):(null!==(n=r.last)?n.sibling=c:t.child=c,r.last=c)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Ho(),n.sibling=null,t=za.current,fo(za,u?1&t|2:1&t),n):null;case 23:case 24:return Es(),null!==e&&null!==e.memoizedState!==(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(i(156,t.tag))}function su(e){switch(e.tag){case 1:go(e.type)&&bo();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Aa(),lo(vo),lo(ho),Wa(),0!==(64&(t=e.flags)))throw Error(i(285));return e.flags=-4097&t|64,e;case 5:return La(e),null;case 13:return lo(za),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return lo(za),null;case 4:return Aa(),null;case 10:return oa(e),null;case 23:case 24:return Es(),null;default:return null}}function cu(e,t){try{var n="",r=t;do{n+=Y(r),r=r.return}while(r);var o=n}catch(a){o="\nError generating stack: "+a.message+"\n"+a.stack}return{value:e,source:t,stack:o}}function lu(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}Xi=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ki=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,Da(ja.current);var i,u=null;switch(n){case"input":a=J(e,a),r=J(e,r),u=[];break;case"option":a=ae(e,a),r=ae(e,r),u=[];break;case"select":a=o({},a,{value:void 0}),r=o({},r,{value:void 0}),u=[];break;case"textarea":a=ue(e,a),r=ue(e,r),u=[];break;default:"function"!==typeof a.onClick&&"function"===typeof r.onClick&&(e.onclick=Fr)}for(f in ke(n,r),n=null,a)if(!r.hasOwnProperty(f)&&a.hasOwnProperty(f)&&null!=a[f])if("style"===f){var c=a[f];for(i in c)c.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==f&&"children"!==f&&"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(s.hasOwnProperty(f)?u||(u=[]):(u=u||[]).push(f,null));for(f in r){var l=r[f];if(c=null!=a?a[f]:void 0,r.hasOwnProperty(f)&&l!==c&&(null!=l||null!=c))if("style"===f)if(c){for(i in c)!c.hasOwnProperty(i)||l&&l.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in l)l.hasOwnProperty(i)&&c[i]!==l[i]&&(n||(n={}),n[i]=l[i])}else n||(u||(u=[]),u.push(f,n)),n=l;else"dangerouslySetInnerHTML"===f?(l=l?l.__html:void 0,c=c?c.__html:void 0,null!=l&&c!==l&&(u=u||[]).push(f,l)):"children"===f?"string"!==typeof l&&"number"!==typeof l||(u=u||[]).push(f,""+l):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&(s.hasOwnProperty(f)?(null!=l&&"onScroll"===f&&jr("scroll",e),u||c===l||(u=[])):"object"===typeof l&&null!==l&&l.$$typeof===A?l.toString():(u=u||[]).push(f,l))}n&&(u=u||[]).push("style",n);var f=u;(t.updateQueue=f)&&(t.flags|=4)}},Wi=function(e,t,n,r){n!==r&&(t.flags|=4)};var fu="function"===typeof WeakMap?WeakMap:Map;function du(e,t,n){(n=fa(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Wu||(Wu=!0,Qu=r),lu(0,t)},n}function pu(e,t,n){(n=fa(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var o=t.value;n.payload=function(){return lu(0,t),r(o)}}var a=e.stateNode;return null!==a&&"function"===typeof a.componentDidCatch&&(n.callback=function(){"function"!==typeof r&&(null===Zu?Zu=new Set([this]):Zu.add(this),lu(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var hu="function"===typeof WeakSet?WeakSet:Set;function vu(e){var t=e.ref;if(null!==t)if("function"===typeof t)try{t(null)}catch(n){Fs(e,n)}else t.current=null}function mu(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Zo(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Gr(t.stateNode.containerInfo))}throw Error(i(163))}function yu(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3===(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var o=e;r=o.next,0!==(4&(o=o.tag))&&0!==(1&o)&&(Ls(n,e),Rs(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Zo(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&va(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}va(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Vr(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&xt(n)))))}throw Error(i(163))}function gu(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"===typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var o=n.memoizedProps.style;o=void 0!==o&&null!==o&&o.hasOwnProperty("display")?o.display:null,r.style.display=_e("display",o)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&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}}function bu(e,t){if(So&&"function"===typeof So.onCommitFiberUnmount)try{So.onCommitFiberUnmount(ko,t)}catch(a){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,o=r.destroy;if(r=r.tag,void 0!==o)if(0!==(4&r))Ls(t,n);else{r=t;try{o()}catch(a){Fs(r,a)}}n=n.next}while(n!==e)}break;case 1:if(vu(t),"function"===typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(a){Fs(t,a)}break;case 5:vu(t);break;case 4:Su(e,t)}}function wu(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function _u(e){return 5===e.tag||3===e.tag||4===e.tag}function xu(e){e:{for(var t=e.return;null!==t;){if(_u(t))break e;t=t.return}throw Error(i(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(i(161))}16&n.flags&&(ge(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||_u(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?Eu(e,n,t):ku(e,n,t)}function Eu(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Fr));else if(4!==r&&null!==(e=e.child))for(Eu(e,t,n),e=e.sibling;null!==e;)Eu(e,t,n),e=e.sibling}function ku(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ku(e,t,n),e=e.sibling;null!==e;)ku(e,t,n),e=e.sibling}function Su(e,t){for(var n,r,o=t,a=!1;;){if(!a){a=o.return;e:for(;;){if(null===a)throw Error(i(160));switch(n=a.stateNode,a.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}a=a.return}a=!0}if(5===o.tag||6===o.tag){e:for(var u=e,s=o,c=s;;)if(bu(u,c),null!==c.child&&4!==c.tag)c.child.return=c,c=c.child;else{if(c===s)break e;for(;null===c.sibling;){if(null===c.return||c.return===s)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}r?(u=n,s=o.stateNode,8===u.nodeType?u.parentNode.removeChild(s):u.removeChild(s)):n.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){n=o.stateNode.containerInfo,r=!0,o.child.return=o,o=o.child;continue}}else if(bu(e,o),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(a=!1)}o.sibling.return=o.return,o=o.sibling}}function Ou(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3===(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:case 12:case 17:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var o=null!==e?e.memoizedProps:r;e=t.type;var a=t.updateQueue;if(t.updateQueue=null,null!==a){for(n[Jr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),Se(e,o),t=Se(e,r),o=0;o<a.length;o+=2){var u=a[o],s=a[o+1];"style"===u?xe(n,s):"dangerouslySetInnerHTML"===u?ye(n,s):"children"===u?ge(n,s):w(n,u,s,t)}switch(e){case"input":ne(n,r);break;case"textarea":ce(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(a=r.value)?ie(n,!!r.multiple,a,!1):e!==!!r.multiple&&(null!=r.defaultValue?ie(n,!!r.multiple,r.defaultValue,!0):ie(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(i(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,xt(n.containerInfo)));case 13:return null!==t.memoizedState&&(qu=Ho(),gu(t.child,!0)),void Pu(t);case 19:return void Pu(t);case 23:case 24:return void gu(t,null!==t.memoizedState)}throw Error(i(163))}function Pu(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new hu),t.forEach((function(t){var r=Bs.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Cu(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var Nu=Math.ceil,ju=_.ReactCurrentDispatcher,Mu=_.ReactCurrentOwner,Tu=0,Du=null,Iu=null,Au=0,Ru=0,Lu=co(0),zu=0,$u=null,Fu=0,Uu=0,Bu=0,Vu=0,Hu=null,qu=0,Yu=1/0;function Gu(){Yu=Ho()+500}var Xu,Ku=null,Wu=!1,Qu=null,Zu=null,Ju=!1,es=null,ts=90,ns=[],rs=[],os=null,as=0,is=null,us=-1,ss=0,cs=0,ls=null,fs=!1;function ds(){return 0!==(48&Tu)?Ho():-1!==us?us:us=Ho()}function ps(e){if(0===(2&(e=e.mode)))return 1;if(0===(4&e))return 99===qo()?1:2;if(0===ss&&(ss=Fu),0!==Qo.transition){0!==cs&&(cs=null!==Hu?Hu.pendingLanes:0),e=ss;var t=4186112&~cs;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=qo(),0!==(4&Tu)&&98===e?e=Ft(12,ss):e=Ft(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),ss),e}function hs(e,t,n){if(50<as)throw as=0,is=null,Error(i(185));if(null===(e=vs(e,t)))return null;Vt(e,t,n),e===Du&&(Bu|=t,4===zu&&gs(e,Au));var r=qo();1===t?0!==(8&Tu)&&0===(48&Tu)?bs(e):(ms(e,n),0===Tu&&(Gu(),Ko())):(0===(4&Tu)||98!==r&&99!==r||(null===os?os=new Set([e]):os.add(e)),ms(e,n)),Hu=e}function vs(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function ms(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,o=e.pingedLanes,a=e.expirationTimes,u=e.pendingLanes;0<u;){var s=31-Ht(u),c=1<<s,l=a[s];if(-1===l){if(0===(c&r)||0!==(c&o)){l=t,Lt(c);var f=Rt;a[s]=10<=f?l+250:6<=f?l+5e3:-1}}else l<=t&&(e.expiredLanes|=c);u&=~c}if(r=zt(e,e===Du?Au:0),t=Rt,0===r)null!==n&&(n!==zo&&Co(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==zo&&Co(n)}15===t?(n=bs.bind(null,e),null===Fo?(Fo=[n],Uo=Po(Do,Wo)):Fo.push(n),n=zo):14===t?n=Xo(99,bs.bind(null,e)):(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(i(358,e))}}(t),n=Xo(n,ys.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function ys(e){if(us=-1,cs=ss=0,0!==(48&Tu))throw Error(i(327));var t=e.callbackNode;if(As()&&e.callbackNode!==t)return null;var n=zt(e,e===Du?Au:0);if(0===n)return null;var r=n,o=Tu;Tu|=16;var a=Os();for(Du===e&&Au===r||(Gu(),ks(e,r));;)try{Ns();break}catch(s){Ss(e,s)}if(ra(),ju.current=a,Tu=o,null!==Iu?r=0:(Du=null,Au=0,r=zu),0!==(Fu&Bu))ks(e,0);else if(0!==r){if(2===r&&(Tu|=64,e.hydrate&&(e.hydrate=!1,Gr(e.containerInfo)),0!==(n=$t(e))&&(r=Ps(e,n))),1===r)throw t=$u,ks(e,0),gs(e,n),ms(e,Ho()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(i(345));case 2:case 5:Ts(e);break;case 3:if(gs(e,n),(62914560&n)===n&&10<(r=qu+500-Ho())){if(0!==zt(e,0))break;if(((o=e.suspendedLanes)&n)!==n){ds(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=qr(Ts.bind(null,e),r);break}Ts(e);break;case 4:if(gs(e,n),(4186112&n)===n)break;for(r=e.eventTimes,o=-1;0<n;){var u=31-Ht(n);a=1<<u,(u=r[u])>o&&(o=u),n&=~a}if(n=o,10<(n=(120>(n=Ho()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Nu(n/1960))-n)){e.timeoutHandle=qr(Ts.bind(null,e),n);break}Ts(e);break;default:throw Error(i(329))}}return ms(e,Ho()),e.callbackNode===t?ys.bind(null,e):null}function gs(e,t){for(t&=~Vu,t&=~Bu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ht(t),r=1<<n;e[n]=-1,t&=~r}}function bs(e){if(0!==(48&Tu))throw Error(i(327));if(As(),e===Du&&0!==(e.expiredLanes&Au)){var t=Au,n=Ps(e,t);0!==(Fu&Bu)&&(n=Ps(e,t=zt(e,t)))}else n=Ps(e,t=zt(e,0));if(0!==e.tag&&2===n&&(Tu|=64,e.hydrate&&(e.hydrate=!1,Gr(e.containerInfo)),0!==(t=$t(e))&&(n=Ps(e,t))),1===n)throw n=$u,ks(e,0),gs(e,t),ms(e,Ho()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ts(e),ms(e,Ho()),null}function ws(e,t){var n=Tu;Tu|=1;try{return e(t)}finally{0===(Tu=n)&&(Gu(),Ko())}}function _s(e,t){var n=Tu;Tu&=-2,Tu|=8;try{return e(t)}finally{0===(Tu=n)&&(Gu(),Ko())}}function xs(e,t){fo(Lu,Ru),Ru|=t,Fu|=t}function Es(){Ru=Lu.current,lo(Lu)}function ks(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Yr(n)),null!==Iu)for(n=Iu.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&bo();break;case 3:Aa(),lo(vo),lo(ho),Wa();break;case 5:La(r);break;case 4:Aa();break;case 13:case 19:lo(za);break;case 10:oa(r);break;case 23:case 24:Es()}n=n.return}Du=e,Iu=Ys(e.current,null),Au=Ru=Fu=t,zu=0,$u=null,Vu=Bu=Uu=0}function Ss(e,t){for(;;){var n=Iu;try{if(ra(),Qa.current=Ti,ri){for(var r=ei.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ri=!1}if(Ja=0,ni=ti=ei=null,oi=!1,Mu.current=null,null===n||null===n.return){zu=1,$u=t,Iu=null;break}e:{var a=e,i=n.return,u=n,s=t;if(t=Au,u.flags|=2048,u.firstEffect=u.lastEffect=null,null!==s&&"object"===typeof s&&"function"===typeof s.then){var c=s;if(0===(2&u.mode)){var l=u.alternate;l?(u.updateQueue=l.updateQueue,u.memoizedState=l.memoizedState,u.lanes=l.lanes):(u.updateQueue=null,u.memoizedState=null)}var f=0!==(1&za.current),d=i;do{var p;if(p=13===d.tag){var h=d.memoizedState;if(null!==h)p=null!==h.dehydrated;else{var v=d.memoizedProps;p=void 0!==v.fallback&&(!0!==v.unstable_avoidThisFallback||!f)}}if(p){var m=d.updateQueue;if(null===m){var y=new Set;y.add(c),d.updateQueue=y}else m.add(c);if(0===(2&d.mode)){if(d.flags|=64,u.flags|=16384,u.flags&=-2981,1===u.tag)if(null===u.alternate)u.tag=17;else{var g=fa(-1,1);g.tag=2,da(u,g)}u.lanes|=1;break e}s=void 0,u=t;var b=a.pingCache;if(null===b?(b=a.pingCache=new fu,s=new Set,b.set(c,s)):void 0===(s=b.get(c))&&(s=new Set,b.set(c,s)),!s.has(u)){s.add(u);var w=Us.bind(null,a,c,u);c.then(w,w)}d.flags|=4096,d.lanes=t;break e}d=d.return}while(null!==d);s=Error((G(u.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==zu&&(zu=2),s=cu(s,u),d=i;do{switch(d.tag){case 3:a=s,d.flags|=4096,t&=-t,d.lanes|=t,pa(d,du(0,a,t));break e;case 1:a=s;var _=d.type,x=d.stateNode;if(0===(64&d.flags)&&("function"===typeof _.getDerivedStateFromError||null!==x&&"function"===typeof x.componentDidCatch&&(null===Zu||!Zu.has(x)))){d.flags|=4096,t&=-t,d.lanes|=t,pa(d,pu(d,a,t));break e}}d=d.return}while(null!==d)}Ms(n)}catch(E){t=E,Iu===n&&null!==n&&(Iu=n=n.return);continue}break}}function Os(){var e=ju.current;return ju.current=Ti,null===e?Ti:e}function Ps(e,t){var n=Tu;Tu|=16;var r=Os();for(Du===e&&Au===t||ks(e,t);;)try{Cs();break}catch(o){Ss(e,o)}if(ra(),Tu=n,ju.current=r,null!==Iu)throw Error(i(261));return Du=null,Au=0,zu}function Cs(){for(;null!==Iu;)js(Iu)}function Ns(){for(;null!==Iu&&!No();)js(Iu)}function js(e){var t=Xu(e.alternate,e,Ru);e.memoizedProps=e.pendingProps,null===t?Ms(e):Iu=t,Mu.current=null}function Ms(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(2048&t.flags)){if(null!==(n=uu(n,t,Ru)))return void(Iu=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!==(1073741824&Ru)||0===(4&n.mode)){for(var r=0,o=n.child;null!==o;)r|=o.lanes|o.childLanes,o=o.sibling;n.childLanes=r}null!==e&&0===(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=su(t)))return n.flags&=2047,void(Iu=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Iu=t);Iu=t=e}while(null!==t);0===zu&&(zu=5)}function Ts(e){var t=qo();return Go(99,Ds.bind(null,e,t)),null}function Ds(e,t){do{As()}while(null!==es);if(0!==(48&Tu))throw Error(i(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null;var r=n.lanes|n.childLanes,o=r,a=e.pendingLanes&~o;e.pendingLanes=o,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=o,e.mutableReadLanes&=o,e.entangledLanes&=o,o=e.entanglements;for(var u=e.eventTimes,s=e.expirationTimes;0<a;){var c=31-Ht(a),l=1<<c;o[c]=0,u[c]=-1,s[c]=-1,a&=~l}if(null!==os&&0===(24&r)&&os.has(e)&&os.delete(e),e===Du&&(Iu=Du=null,Au=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(o=Tu,Tu|=32,Mu.current=null,Ur=Kt,yr(u=mr())){if("selectionStart"in u)s={start:u.selectionStart,end:u.selectionEnd};else e:if(s=(s=u.ownerDocument)&&s.defaultView||window,(l=s.getSelection&&s.getSelection())&&0!==l.rangeCount){s=l.anchorNode,a=l.anchorOffset,c=l.focusNode,l=l.focusOffset;try{s.nodeType,c.nodeType}catch(O){s=null;break e}var f=0,d=-1,p=-1,h=0,v=0,m=u,y=null;t:for(;;){for(var g;m!==s||0!==a&&3!==m.nodeType||(d=f+a),m!==c||0!==l&&3!==m.nodeType||(p=f+l),3===m.nodeType&&(f+=m.nodeValue.length),null!==(g=m.firstChild);)y=m,m=g;for(;;){if(m===u)break t;if(y===s&&++h===a&&(d=f),y===c&&++v===l&&(p=f),null!==(g=m.nextSibling))break;y=(m=y).parentNode}m=g}s=-1===d||-1===p?null:{start:d,end:p}}else s=null;s=s||{start:0,end:0}}else s=null;Br={focusedElem:u,selectionRange:s},Kt=!1,ls=null,fs=!1,Ku=r;do{try{Is()}catch(O){if(null===Ku)throw Error(i(330));Fs(Ku,O),Ku=Ku.nextEffect}}while(null!==Ku);ls=null,Ku=r;do{try{for(u=e;null!==Ku;){var b=Ku.flags;if(16&b&&ge(Ku.stateNode,""),128&b){var w=Ku.alternate;if(null!==w){var _=w.ref;null!==_&&("function"===typeof _?_(null):_.current=null)}}switch(1038&b){case 2:xu(Ku),Ku.flags&=-3;break;case 6:xu(Ku),Ku.flags&=-3,Ou(Ku.alternate,Ku);break;case 1024:Ku.flags&=-1025;break;case 1028:Ku.flags&=-1025,Ou(Ku.alternate,Ku);break;case 4:Ou(Ku.alternate,Ku);break;case 8:Su(u,s=Ku);var x=s.alternate;wu(s),null!==x&&wu(x)}Ku=Ku.nextEffect}}catch(O){if(null===Ku)throw Error(i(330));Fs(Ku,O),Ku=Ku.nextEffect}}while(null!==Ku);if(_=Br,w=mr(),b=_.focusedElem,u=_.selectionRange,w!==b&&b&&b.ownerDocument&&vr(b.ownerDocument.documentElement,b)){null!==u&&yr(b)&&(w=u.start,void 0===(_=u.end)&&(_=w),"selectionStart"in b?(b.selectionStart=w,b.selectionEnd=Math.min(_,b.value.length)):(_=(w=b.ownerDocument||document)&&w.defaultView||window).getSelection&&(_=_.getSelection(),s=b.textContent.length,x=Math.min(u.start,s),u=void 0===u.end?x:Math.min(u.end,s),!_.extend&&x>u&&(s=u,u=x,x=s),s=hr(b,x),a=hr(b,u),s&&a&&(1!==_.rangeCount||_.anchorNode!==s.node||_.anchorOffset!==s.offset||_.focusNode!==a.node||_.focusOffset!==a.offset)&&((w=w.createRange()).setStart(s.node,s.offset),_.removeAllRanges(),x>u?(_.addRange(w),_.extend(a.node,a.offset)):(w.setEnd(a.node,a.offset),_.addRange(w))))),w=[];for(_=b;_=_.parentNode;)1===_.nodeType&&w.push({element:_,left:_.scrollLeft,top:_.scrollTop});for("function"===typeof b.focus&&b.focus(),b=0;b<w.length;b++)(_=w[b]).element.scrollLeft=_.left,_.element.scrollTop=_.top}Kt=!!Ur,Br=Ur=null,e.current=n,Ku=r;do{try{for(b=e;null!==Ku;){var E=Ku.flags;if(36&E&&yu(b,Ku.alternate,Ku),128&E){w=void 0;var k=Ku.ref;if(null!==k){var S=Ku.stateNode;Ku.tag,w=S,"function"===typeof k?k(w):k.current=w}}Ku=Ku.nextEffect}}catch(O){if(null===Ku)throw Error(i(330));Fs(Ku,O),Ku=Ku.nextEffect}}while(null!==Ku);Ku=null,$o(),Tu=o}else e.current=n;if(Ju)Ju=!1,es=e,ts=t;else for(Ku=r;null!==Ku;)t=Ku.nextEffect,Ku.nextEffect=null,8&Ku.flags&&((E=Ku).sibling=null,E.stateNode=null),Ku=t;if(0===(r=e.pendingLanes)&&(Zu=null),1===r?e===is?as++:(as=0,is=e):as=0,n=n.stateNode,So&&"function"===typeof So.onCommitFiberRoot)try{So.onCommitFiberRoot(ko,n,void 0,64===(64&n.current.flags))}catch(O){}if(ms(e,Ho()),Wu)throw Wu=!1,e=Qu,Qu=null,e;return 0!==(8&Tu)||Ko(),null}function Is(){for(;null!==Ku;){var e=Ku.alternate;fs||null===ls||(0!==(8&Ku.flags)?et(Ku,ls)&&(fs=!0):13===Ku.tag&&Cu(e,Ku)&&et(Ku,ls)&&(fs=!0));var t=Ku.flags;0!==(256&t)&&mu(e,Ku),0===(512&t)||Ju||(Ju=!0,Xo(97,(function(){return As(),null}))),Ku=Ku.nextEffect}}function As(){if(90!==ts){var e=97<ts?97:ts;return ts=90,Go(e,zs)}return!1}function Rs(e,t){ns.push(t,e),Ju||(Ju=!0,Xo(97,(function(){return As(),null})))}function Ls(e,t){rs.push(t,e),Ju||(Ju=!0,Xo(97,(function(){return As(),null})))}function zs(){if(null===es)return!1;var e=es;if(es=null,0!==(48&Tu))throw Error(i(331));var t=Tu;Tu|=32;var n=rs;rs=[];for(var r=0;r<n.length;r+=2){var o=n[r],a=n[r+1],u=o.destroy;if(o.destroy=void 0,"function"===typeof u)try{u()}catch(c){if(null===a)throw Error(i(330));Fs(a,c)}}for(n=ns,ns=[],r=0;r<n.length;r+=2){o=n[r],a=n[r+1];try{var s=o.create;o.destroy=s()}catch(c){if(null===a)throw Error(i(330));Fs(a,c)}}for(s=e.current.firstEffect;null!==s;)e=s.nextEffect,s.nextEffect=null,8&s.flags&&(s.sibling=null,s.stateNode=null),s=e;return Tu=t,Ko(),!0}function $s(e,t,n){da(e,t=du(0,t=cu(n,t),1)),t=ds(),null!==(e=vs(e,1))&&(Vt(e,1,t),ms(e,t))}function Fs(e,t){if(3===e.tag)$s(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){$s(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"===typeof n.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Zu||!Zu.has(r))){var o=pu(n,e=cu(t,e),1);if(da(n,o),o=ds(),null!==(n=vs(n,1)))Vt(n,1,o),ms(n,o);else if("function"===typeof r.componentDidCatch&&(null===Zu||!Zu.has(r)))try{r.componentDidCatch(t,e)}catch(a){}break}}n=n.return}}function Us(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ds(),e.pingedLanes|=e.suspendedLanes&n,Du===e&&(Au&n)===n&&(4===zu||3===zu&&(62914560&Au)===Au&&500>Ho()-qu?ks(e,0):Vu|=n),ms(e,t)}function Bs(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0===(2&(t=e.mode))?t=1:0===(4&t)?t=99===qo()?1:2:(0===ss&&(ss=Fu),0===(t=Ut(62914560&~ss))&&(t=4194304))),n=ds(),null!==(e=vs(e,t))&&(Vt(e,t,n),ms(e,n))}function Vs(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Hs(e,t,n,r){return new Vs(e,t,n,r)}function qs(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ys(e,t){var n=e.alternate;return null===n?((n=Hs(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Gs(e,t,n,r,o,a){var u=2;if(r=e,"function"===typeof e)qs(e)&&(u=1);else if("string"===typeof e)u=5;else e:switch(e){case k:return Xs(n.children,o,a,t);case R:u=8,o|=16;break;case S:u=8,o|=1;break;case O:return(e=Hs(12,n,t,8|o)).elementType=O,e.type=O,e.lanes=a,e;case j:return(e=Hs(13,n,t,o)).type=j,e.elementType=j,e.lanes=a,e;case M:return(e=Hs(19,n,t,o)).elementType=M,e.lanes=a,e;case L:return Ks(n,o,a,t);case z:return(e=Hs(24,n,t,o)).elementType=z,e.lanes=a,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case P:u=10;break e;case C:u=9;break e;case N:u=11;break e;case T:u=14;break e;case D:u=16,r=null;break e;case I:u=22;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Hs(u,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function Xs(e,t,n,r){return(e=Hs(7,e,r,t)).lanes=n,e}function Ks(e,t,n,r){return(e=Hs(23,e,r,t)).elementType=L,e.lanes=n,e}function Ws(e,t,n){return(e=Hs(6,e,null,t)).lanes=n,e}function Qs(e,t,n){return(t=Hs(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Zs(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Bt(0),this.expirationTimes=Bt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bt(0),this.mutableSourceEagerHydrationData=null}function Js(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:E,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function ec(e,t,n,r){var o=t.current,a=ds(),u=ps(o);e:if(n){t:{if(We(n=n._reactInternals)!==n||1!==n.tag)throw Error(i(170));var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(go(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);throw Error(i(171))}if(1===n.tag){var c=n.type;if(go(c)){n=_o(n,c,s);break e}}n=s}else n=po;return null===t.context?t.context=n:t.pendingContext=n,(t=fa(a,u)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),da(o,t),hs(o,u,a),u}function tc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function nc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function rc(e,t){nc(e,t),(e=e.alternate)&&nc(e,t)}function oc(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Zs(e,t,null!=n&&!0===n.hydrate),t=Hs(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,ca(t),e[eo]=n.current,Tr(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var o=(t=r[e])._getVersion;o=o(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,o]:n.mutableSourceEagerHydrationData.push(t,o)}this._internalRoot=n}function ac(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function ic(e,t,n,r,o){var a=n._reactRootContainer;if(a){var i=a._internalRoot;if("function"===typeof o){var u=o;o=function(){var e=tc(i);u.call(e)}}ec(t,i,e,o)}else{if(a=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new oc(e,0,t?{hydrate:!0}:void 0)}(n,r),i=a._internalRoot,"function"===typeof o){var s=o;o=function(){var e=tc(i);s.call(e)}}_s((function(){ec(t,i,e,o)}))}return tc(i)}function uc(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!ac(t))throw Error(i(200));return Js(e,t,null,n)}Xu=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||vo.current)Li=!0;else{if(0===(n&r)){switch(Li=!1,t.tag){case 3:Gi(t),Xa();break;case 5:Ra(t);break;case 1:go(t.type)&&xo(t);break;case 4:Ia(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var o=t.type._context;fo(Jo,o._currentValue),o._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(n&t.child.childLanes)?Zi(e,t,n):(fo(za,1&za.current),null!==(t=au(e,t,n))?t.sibling:null);fo(za,1&za.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(64&e.flags)){if(r)return ou(e,t,n);t.flags|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),fo(za,za.current),r)break;return null;case 23:case 24:return t.lanes=0,Bi(e,t,n)}return au(e,t,n)}Li=0!==(16384&e.flags)}else Li=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=yo(t,ho.current),ia(t,n),o=ui(null,t,r,e,o,n),t.flags|=1,"object"===typeof o&&null!==o&&"function"===typeof o.render&&void 0===o.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,go(r)){var a=!0;xo(t)}else a=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,ca(t);var u=r.getDerivedStateFromProps;"function"===typeof u&&ya(t,r,u,e),o.updater=ga,t.stateNode=o,o._reactInternals=t,xa(t,r,e,n),t=Yi(null,t,r,!0,a,n)}else t.tag=0,zi(null,t,o,n),t=t.child;return t;case 16:o=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=(a=o._init)(o._payload),t.type=o,a=t.tag=function(e){if("function"===typeof e)return qs(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===N)return 11;if(e===T)return 14}return 2}(o),e=Zo(o,e),a){case 0:t=Hi(null,t,o,e,n);break e;case 1:t=qi(null,t,o,e,n);break e;case 11:t=$i(null,t,o,e,n);break e;case 14:t=Fi(null,t,o,Zo(o.type,e),r,n);break e}throw Error(i(306,o,""))}return t;case 0:return r=t.type,o=t.pendingProps,Hi(e,t,r,o=t.elementType===r?o:Zo(r,o),n);case 1:return r=t.type,o=t.pendingProps,qi(e,t,r,o=t.elementType===r?o:Zo(r,o),n);case 3:if(Gi(t),r=t.updateQueue,null===e||null===r)throw Error(i(282));if(r=t.pendingProps,o=null!==(o=t.memoizedState)?o.element:null,la(e,t),ha(t,r,null,n),(r=t.memoizedState.element)===o)Xa(),t=au(e,t,n);else{if((a=(o=t.stateNode).hydrate)&&(Ua=Xr(t.stateNode.containerInfo.firstChild),Fa=t,a=Ba=!0),a){if(null!=(e=o.mutableSourceEagerHydrationData))for(o=0;o<e.length;o+=2)(a=e[o])._workInProgressVersionPrimary=e[o+1],Ka.push(a);for(n=Ca(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else zi(e,t,r,n),Xa();t=t.child}return t;case 5:return Ra(t),null===e&&qa(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,u=o.children,Hr(r,o)?u=null:null!==a&&Hr(r,a)&&(t.flags|=16),Vi(e,t),zi(e,t,u,n),t.child;case 6:return null===e&&qa(t),null;case 13:return Zi(e,t,n);case 4:return Ia(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Pa(t,null,r,n):zi(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,$i(e,t,r,o=t.elementType===r?o:Zo(r,o),n);case 7:return zi(e,t,t.pendingProps,n),t.child;case 8:case 12:return zi(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,o=t.pendingProps,u=t.memoizedProps,a=o.value;var s=t.type._context;if(fo(Jo,s._currentValue),s._currentValue=a,null!==u)if(s=u.value,0===(a=lr(s,a)?0:0|("function"===typeof r._calculateChangedBits?r._calculateChangedBits(s,a):1073741823))){if(u.children===o.children&&!vo.current){t=au(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var c=s.dependencies;if(null!==c){u=s.child;for(var l=c.firstContext;null!==l;){if(l.context===r&&0!==(l.observedBits&a)){1===s.tag&&((l=fa(-1,n&-n)).tag=2,da(s,l)),s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),aa(s.return,n),c.lanes|=n;break}l=l.next}}else u=10===s.tag&&s.type===t.type?null:s.child;if(null!==u)u.return=s;else for(u=s;null!==u;){if(u===t){u=null;break}if(null!==(s=u.sibling)){s.return=u.return,u=s;break}u=u.return}s=u}zi(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=(a=t.pendingProps).children,ia(t,n),r=r(o=ua(o,a.unstable_observedBits)),t.flags|=1,zi(e,t,r,n),t.child;case 14:return a=Zo(o=t.type,t.pendingProps),Fi(e,t,o,a=Zo(o.type,a),r,n);case 15:return Ui(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Zo(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,go(r)?(e=!0,xo(t)):e=!1,ia(t,n),wa(t,r,o),xa(t,r,o,n),Yi(null,t,r,!0,e,n);case 19:return ou(e,t,n);case 23:case 24:return Bi(e,t,n)}throw Error(i(156,t.tag))},oc.prototype.render=function(e){ec(e,this._internalRoot,null,null)},oc.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;ec(null,e,null,(function(){t[eo]=null}))},tt=function(e){13===e.tag&&(hs(e,4,ds()),rc(e,4))},nt=function(e){13===e.tag&&(hs(e,67108864,ds()),rc(e,67108864))},rt=function(e){if(13===e.tag){var t=ds(),n=ps(e);hs(e,n,t),rc(e,n)}},ot=function(e,t){return t()},Pe=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=ao(r);if(!o)throw Error(i(90));Q(r),ne(r,o)}}}break;case"textarea":ce(e,n);break;case"select":null!=(t=n.value)&&ie(e,!!n.multiple,t,!1)}},De=ws,Ie=function(e,t,n,r,o){var a=Tu;Tu|=4;try{return Go(98,e.bind(null,t,n,r,o))}finally{0===(Tu=a)&&(Gu(),Ko())}},Ae=function(){0===(49&Tu)&&(function(){if(null!==os){var e=os;os=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,ms(e,Ho())}))}Ko()}(),As())},Re=function(e,t){var n=Tu;Tu|=2;try{return e(t)}finally{0===(Tu=n)&&(Gu(),Ko())}};var sc={Events:[ro,oo,ao,Me,Te,As,{current:!1}]},cc={findFiberByHostInstance:no,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},lc={bundleType:cc.bundleType,version:cc.version,rendererPackageName:cc.rendererPackageName,rendererConfig:cc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:_.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Je(e))?null:e.stateNode},findFiberByHostInstance:cc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var fc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!fc.isDisabled&&fc.supportsFiber)try{ko=fc.inject(lc),So=fc}catch(me){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sc,t.createPortal=uc,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(i(188));throw Error(i(268,Object.keys(e)))}return e=null===(e=Je(t))?null:e.stateNode},t.flushSync=function(e,t){var n=Tu;if(0!==(48&n))return e(t);Tu|=1;try{if(e)return Go(99,e.bind(null,t))}finally{Tu=n,Ko()}},t.hydrate=function(e,t,n){if(!ac(t))throw Error(i(200));return ic(null,e,t,!0,n)},t.render=function(e,t,n){if(!ac(t))throw Error(i(200));return ic(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!ac(e))throw Error(i(40));return!!e._reactRootContainer&&(_s((function(){ic(null,null,e,!1,(function(){e._reactRootContainer=null,e[eo]=null}))})),!0)},t.unstable_batchedUpdates=ws,t.unstable_createPortal=function(e,t){return uc(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ac(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return ic(e,t,n,!1,r)},t.version="17.0.2"},4164:function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(4463)},6374:function(e,t,n){"use strict";n(1725);var r=n(2791),o=60103;if(t.Fragment=60107,"function"===typeof Symbol&&Symbol.for){var a=Symbol.for;o=a("react.element"),t.Fragment=a("react.fragment")}var i=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u=Object.prototype.hasOwnProperty,s={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,a={},c=null,l=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(l=t.ref),t)u.call(t,r)&&!s.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:l,props:a,_owner:i.current}}t.jsx=c,t.jsxs=c},9117:function(e,t,n){"use strict";var r=n(1725),o=60103,a=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var i=60109,u=60110,s=60112;t.Suspense=60113;var c=60115,l=60116;if("function"===typeof Symbol&&Symbol.for){var f=Symbol.for;o=f("react.element"),a=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),i=f("react.provider"),u=f("react.context"),s=f("react.forward_ref"),t.Suspense=f("react.suspense"),c=f("react.memo"),l=f("react.lazy")}var d="function"===typeof Symbol&&Symbol.iterator;function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v={};function m(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||h}function y(){}function g(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||h}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error(p(85));this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=m.prototype;var b=g.prototype=new y;b.constructor=g,r(b,m.prototype),b.isPureReactComponent=!0;var w={current:null},_=Object.prototype.hasOwnProperty,x={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,n){var r,a={},i=null,u=null;if(null!=t)for(r in void 0!==t.ref&&(u=t.ref),void 0!==t.key&&(i=""+t.key),t)_.call(t,r)&&!x.hasOwnProperty(r)&&(a[r]=t[r]);var s=arguments.length-2;if(1===s)a.children=n;else if(1<s){for(var c=Array(s),l=0;l<s;l++)c[l]=arguments[l+2];a.children=c}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===a[r]&&(a[r]=s[r]);return{$$typeof:o,type:e,key:i,ref:u,props:a,_owner:w.current}}function k(e){return"object"===typeof e&&null!==e&&e.$$typeof===o}var S=/\/+/g;function O(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function P(e,t,n,r,i){var u=typeof e;"undefined"!==u&&"boolean"!==u||(e=null);var s=!1;if(null===e)s=!0;else switch(u){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case o:case a:s=!0}}if(s)return i=i(s=e),e=""===r?"."+O(s,0):r,Array.isArray(i)?(n="",null!=e&&(n=e.replace(S,"$&/")+"/"),P(i,t,n,"",(function(e){return e}))):null!=i&&(k(i)&&(i=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(S,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=""===r?".":r+":",Array.isArray(e))for(var c=0;c<e.length;c++){var l=r+O(u=e[c],c);s+=P(u,t,n,l,i)}else if(l=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e),"function"===typeof l)for(e=l.call(e),c=0;!(u=e.next()).done;)s+=P(u=u.value,t,n,l=r+O(u,c++),i);else if("object"===u)throw t=""+e,Error(p(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return s}function C(e,t,n){if(null==e)return e;var r=[],o=0;return P(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function N(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var j={current:null};function M(){var e=j.current;if(null===e)throw Error(p(321));return e}var T={ReactCurrentDispatcher:j,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:C,forEach:function(e,t,n){C(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return C(e,(function(){t++})),t},toArray:function(e){return C(e,(function(e){return e}))||[]},only:function(e){if(!k(e))throw Error(p(143));return e}},t.Component=m,t.PureComponent=g,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T,t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error(p(267,e));var a=r({},e.props),i=e.key,u=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(u=t.ref,s=w.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(l in t)_.call(t,l)&&!x.hasOwnProperty(l)&&(a[l]=void 0===t[l]&&void 0!==c?c[l]:t[l])}var l=arguments.length-2;if(1===l)a.children=n;else if(1<l){c=Array(l);for(var f=0;f<l;f++)c[f]=arguments[f+2];a.children=c}return{$$typeof:o,type:e.type,key:i,ref:u,props:a,_owner:s}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:u,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:i,_context:e},e.Consumer=e},t.createElement=E,t.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:s,render:e}},t.isValidElement=k,t.lazy=function(e){return{$$typeof:l,_payload:{_status:-1,_result:e},_init:N}},t.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return M().useCallback(e,t)},t.useContext=function(e,t){return M().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return M().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return M().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return M().useLayoutEffect(e,t)},t.useMemo=function(e,t){return M().useMemo(e,t)},t.useReducer=function(e,t,n){return M().useReducer(e,t,n)},t.useRef=function(e){return M().useRef(e)},t.useState=function(e){return M().useState(e)},t.version="17.0.2"},2791:function(e,t,n){"use strict";e.exports=n(9117)},184:function(e,t,n){"use strict";e.exports=n(6374)},9727:function(e){var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(M){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof m?t:m,a=Object.create(o.prototype),i=new C(r||[]);return a._invoke=function(e,t,n){var r=f;return function(o,a){if(r===p)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw a;return j()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var u=S(i,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var s=l(e,t,n);if("normal"===s.type){if(r=n.done?h:d,s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r=h,n.method="throw",n.arg=s.arg)}}}(e,n,i),a}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(M){return{type:"throw",arg:M}}}e.wrap=c;var f="suspendedStart",d="suspendedYield",p="executing",h="completed",v={};function m(){}function y(){}function g(){}var b={};s(b,a,(function(){return this}));var w=Object.getPrototypeOf,_=w&&w(w(N([])));_&&_!==n&&r.call(_,a)&&(b=_);var x=g.prototype=m.prototype=Object.create(b);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function n(o,a,i,u){var s=l(e[o],e,a);if("throw"!==s.type){var c=s.arg,f=c.value;return f&&"object"===typeof f&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,i,u)}),(function(e){n("throw",e,i,u)})):t.resolve(f).then((function(e){c.value=e,i(c)}),(function(e){return n("throw",e,i,u)}))}u(s.arg)}var o;this._invoke=function(e,r){function a(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(a,a):a()}}function S(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,S(e,n),"throw"===n.method))return v;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=l(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function N(e){if(e){var n=e[a];if(n)return n.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}return{next:j}}function j(){return{value:t,done:!0}}return y.prototype=g,s(x,"constructor",g),s(g,"constructor",y),y.displayName=s(g,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,s(e,u,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},E(k.prototype),s(k.prototype,i,(function(){return this})),e.AsyncIterator=k,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new k(c(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},E(x),s(x,u,"Generator"),s(x,a,(function(){return this})),s(x,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=N,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return u.type="throw",u.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],u=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,v):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}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),v}},e}(e.exports);try{regeneratorRuntime=t}catch(n){"object"===typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},6813:function(e,t){"use strict";var n,r,o,a;if("object"===typeof performance&&"function"===typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var u=Date,s=u.now();t.unstable_now=function(){return u.now()-s}}if("undefined"===typeof window||"function"!==typeof MessageChannel){var c=null,l=null,f=function e(){if(null!==c)try{var n=t.unstable_now();c(!0,n),c=null}catch(r){throw setTimeout(e,0),r}};n=function(e){null!==c?setTimeout(n,0,e):(c=e,setTimeout(f,0))},r=function(e,t){l=setTimeout(e,t)},o=function(){clearTimeout(l)},t.unstable_shouldYield=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var d=window.setTimeout,p=window.clearTimeout;if("undefined"!==typeof console){var h=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!==typeof h&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var v=!1,m=null,y=-1,g=5,b=0;t.unstable_shouldYield=function(){return t.unstable_now()>=b},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):g=0<e?Math.floor(1e3/e):5};var w=new MessageChannel,_=w.port2;w.port1.onmessage=function(){if(null!==m){var e=t.unstable_now();b=e+g;try{m(!0,e)?_.postMessage(null):(v=!1,m=null)}catch(n){throw _.postMessage(null),n}}else v=!1},n=function(e){m=e,v||(v=!0,_.postMessage(null))},r=function(e,n){y=d((function(){e(t.unstable_now())}),n)},o=function(){p(y),y=-1}}function x(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,o=e[r];if(!(void 0!==o&&0<S(o,t)))break e;e[r]=t,e[n]=o,n=r}}function E(e){return void 0===(e=e[0])?null:e}function k(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var a=2*(r+1)-1,i=e[a],u=a+1,s=e[u];if(void 0!==i&&0>S(i,n))void 0!==s&&0>S(s,i)?(e[r]=s,e[u]=n,r=u):(e[r]=i,e[a]=n,r=a);else{if(!(void 0!==s&&0>S(s,n)))break e;e[r]=s,e[u]=n,r=u}}}return t}return null}function S(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var O=[],P=[],C=1,N=null,j=3,M=!1,T=!1,D=!1;function I(e){for(var t=E(P);null!==t;){if(null===t.callback)k(P);else{if(!(t.startTime<=e))break;k(P),t.sortIndex=t.expirationTime,x(O,t)}t=E(P)}}function A(e){if(D=!1,I(e),!T)if(null!==E(O))T=!0,n(R);else{var t=E(P);null!==t&&r(A,t.startTime-e)}}function R(e,n){T=!1,D&&(D=!1,o()),M=!0;var a=j;try{for(I(n),N=E(O);null!==N&&(!(N.expirationTime>n)||e&&!t.unstable_shouldYield());){var i=N.callback;if("function"===typeof i){N.callback=null,j=N.priorityLevel;var u=i(N.expirationTime<=n);n=t.unstable_now(),"function"===typeof u?N.callback=u:N===E(O)&&k(O),I(n)}else k(O);N=E(O)}if(null!==N)var s=!0;else{var c=E(P);null!==c&&r(A,c.startTime-n),s=!1}return s}finally{N=null,j=a,M=!1}}var L=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){T||M||(T=!0,n(R))},t.unstable_getCurrentPriorityLevel=function(){return j},t.unstable_getFirstCallbackNode=function(){return E(O)},t.unstable_next=function(e){switch(j){case 1:case 2:case 3:var t=3;break;default:t=j}var n=j;j=t;try{return e()}finally{j=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=L,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=j;j=e;try{return t()}finally{j=n}},t.unstable_scheduleCallback=function(e,a,i){var u=t.unstable_now();switch("object"===typeof i&&null!==i?i="number"===typeof(i=i.delay)&&0<i?u+i:u:i=u,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:C++,callback:a,priorityLevel:e,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>u?(e.sortIndex=i,x(P,e),null===E(O)&&e===E(P)&&(D?o():D=!0,r(A,i-u))):(e.sortIndex=s,x(O,e),T||M||(T=!0,n(R))),e},t.unstable_wrapCallback=function(e){var t=j;return function(){var n=j;j=t;try{return e.apply(this,arguments)}finally{j=n}}}},5296:function(e,t,n){"use strict";e.exports=n(6813)},23:function(e,t){!function(e){"use strict";function t(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t.length>1){t[0]=t[0].slice(0,-1);for(var r=t.length-1,o=1;o<r;++o)t[o]=t[o].slice(1,-1);return t[r]=t[r].slice(1),t.join("")}return t[0]}function n(e){return"(?:"+e+")"}function r(e){return void 0===e?"undefined":null===e?"null":Object.prototype.toString.call(e).split(" ").pop().split("]").shift().toLowerCase()}function o(e){return e.toUpperCase()}function a(e){return void 0!==e&&null!==e?e instanceof Array?e:"number"!==typeof e.length||e.split||e.setInterval||e.call?[e]:Array.prototype.slice.call(e):[]}function i(e,t){var n=e;if(t)for(var r in t)n[r]=t[r];return n}function u(e){var r="[A-Za-z]",o="[0-9]",a=t(o,"[A-Fa-f]"),i=n(n("%[EFef]"+a+"%"+a+a+"%"+a+a)+"|"+n("%[89A-Fa-f]"+a+"%"+a+a)+"|"+n("%"+a+a)),u="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",s=t("[\\:\\/\\?\\#\\[\\]\\@]",u),c=e?"[\\uE000-\\uF8FF]":"[]",l=t(r,o,"[\\-\\.\\_\\~]",e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]"),f=n(r+t(r,o,"[\\+\\-\\.]")+"*"),d=n(n(i+"|"+t(l,u,"[\\:]"))+"*"),p=(n(n("25[0-5]")+"|"+n("2[0-4]"+o)+"|"+n("1"+o+o)+"|"+n("[1-9]"+o)+"|"+o),n(n("25[0-5]")+"|"+n("2[0-4]"+o)+"|"+n("1"+o+o)+"|"+n("0?[1-9]"+o)+"|0?0?"+o)),h=n(p+"\\."+p+"\\."+p+"\\."+p),v=n(a+"{1,4}"),m=n(n(v+"\\:"+v)+"|"+h),y=n(n(v+"\\:")+"{6}"+m),g=n("\\:\\:"+n(v+"\\:")+"{5}"+m),b=n(n(v)+"?\\:\\:"+n(v+"\\:")+"{4}"+m),w=n(n(n(v+"\\:")+"{0,1}"+v)+"?\\:\\:"+n(v+"\\:")+"{3}"+m),_=n(n(n(v+"\\:")+"{0,2}"+v)+"?\\:\\:"+n(v+"\\:")+"{2}"+m),x=n(n(n(v+"\\:")+"{0,3}"+v)+"?\\:\\:"+v+"\\:"+m),E=n(n(n(v+"\\:")+"{0,4}"+v)+"?\\:\\:"+m),k=n(n(n(v+"\\:")+"{0,5}"+v)+"?\\:\\:"+v),S=n(n(n(v+"\\:")+"{0,6}"+v)+"?\\:\\:"),O=n([y,g,b,w,_,x,E,k,S].join("|")),P=n(n(l+"|"+i)+"+"),C=(n(O+"\\%25"+P),n(O+n("\\%25|\\%(?!"+a+"{2})")+P)),N=n("[vV]"+a+"+\\."+t(l,u,"[\\:]")+"+"),j=n("\\["+n(C+"|"+O+"|"+N)+"\\]"),M=n(n(i+"|"+t(l,u))+"*"),T=n(j+"|"+h+"(?!"+M+")|"+M),D=n(o+"*"),I=n(n(d+"@")+"?"+T+n("\\:"+D)+"?"),A=n(i+"|"+t(l,u,"[\\:\\@]")),R=n(A+"*"),L=n(A+"+"),z=n(n(i+"|"+t(l,u,"[\\@]"))+"+"),$=n(n("\\/"+R)+"*"),F=n("\\/"+n(L+$)+"?"),U=n(z+$),B=n(L+$),V="(?!"+A+")",H=(n($+"|"+F+"|"+U+"|"+B+"|"+V),n(n(A+"|"+t("[\\/\\?]",c))+"*")),q=n(n(A+"|[\\/\\?]")+"*"),Y=n(n("\\/\\/"+I+$)+"|"+F+"|"+B+"|"+V),G=n(f+"\\:"+Y+n("\\?"+H)+"?"+n("\\#"+q)+"?"),X=n(n("\\/\\/"+I+$)+"|"+F+"|"+U+"|"+V),K=n(X+n("\\?"+H)+"?"+n("\\#"+q)+"?");return n(G+"|"+K),n(f+"\\:"+Y+n("\\?"+H)+"?"),n(n("\\/\\/("+n("("+d+")@")+"?("+T+")"+n("\\:("+D+")")+"?)")+"?("+$+"|"+F+"|"+B+"|"+V+")"),n("\\?("+H+")"),n("\\#("+q+")"),n(n("\\/\\/("+n("("+d+")@")+"?("+T+")"+n("\\:("+D+")")+"?)")+"?("+$+"|"+F+"|"+U+"|"+V+")"),n("\\?("+H+")"),n("\\#("+q+")"),n(n("\\/\\/("+n("("+d+")@")+"?("+T+")"+n("\\:("+D+")")+"?)")+"?("+$+"|"+F+"|"+B+"|"+V+")"),n("\\?("+H+")"),n("\\#("+q+")"),n("("+d+")@"),n("\\:("+D+")"),{NOT_SCHEME:new RegExp(t("[^]",r,o,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(t("[^\\%\\:]",l,u),"g"),NOT_HOST:new RegExp(t("[^\\%\\[\\]\\:]",l,u),"g"),NOT_PATH:new RegExp(t("[^\\%\\/\\:\\@]",l,u),"g"),NOT_PATH_NOSCHEME:new RegExp(t("[^\\%\\/\\@]",l,u),"g"),NOT_QUERY:new RegExp(t("[^\\%]",l,u,"[\\:\\@\\/\\?]",c),"g"),NOT_FRAGMENT:new RegExp(t("[^\\%]",l,u,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(t("[^]",l,u),"g"),UNRESERVED:new RegExp(l,"g"),OTHER_CHARS:new RegExp(t("[^\\%]",l,s),"g"),PCT_ENCODED:new RegExp(i,"g"),IPV4ADDRESS:new RegExp("^("+h+")$"),IPV6ADDRESS:new RegExp("^\\[?("+O+")"+n(n("\\%25|\\%(?!"+a+"{2})")+"("+P+")")+"?\\]?$")}}var s=u(!1),c=u(!0),l=function(){function e(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(r=(i=u.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(s){o=!0,a=s}finally{try{!r&&u.return&&u.return()}finally{if(o)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),f=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)},d=2147483647,p=36,h=1,v=26,m=38,y=700,g=72,b=128,w="-",_=/^xn--/,x=/[^\0-\x7E]/,E=/[\x2E\u3002\uFF0E\uFF61]/g,k={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},S=p-h,O=Math.floor,P=String.fromCharCode;function C(e){throw new RangeError(k[e])}function N(e,t){for(var n=[],r=e.length;r--;)n[r]=t(e[r]);return n}function j(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+N((e=e.replace(E,".")).split("."),t).join(".")}function M(e){for(var t=[],n=0,r=e.length;n<r;){var o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){var a=e.charCodeAt(n++);56320==(64512&a)?t.push(((1023&o)<<10)+(1023&a)+65536):(t.push(o),n--)}else t.push(o)}return t}var T=function(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:p},D=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},I=function(e,t,n){var r=0;for(e=n?O(e/y):e>>1,e+=O(e/t);e>S*v>>1;r+=p)e=O(e/S);return O(r+(S+1)*e/(e+m))},A=function(e){var t=[],n=e.length,r=0,o=b,a=g,i=e.lastIndexOf(w);i<0&&(i=0);for(var u=0;u<i;++u)e.charCodeAt(u)>=128&&C("not-basic"),t.push(e.charCodeAt(u));for(var s=i>0?i+1:0;s<n;){for(var c=r,l=1,f=p;;f+=p){s>=n&&C("invalid-input");var m=T(e.charCodeAt(s++));(m>=p||m>O((d-r)/l))&&C("overflow"),r+=m*l;var y=f<=a?h:f>=a+v?v:f-a;if(m<y)break;var _=p-y;l>O(d/_)&&C("overflow"),l*=_}var x=t.length+1;a=I(r-c,x,0==c),O(r/x)>d-o&&C("overflow"),o+=O(r/x),r%=x,t.splice(r++,0,o)}return String.fromCodePoint.apply(String,t)},R=function(e){var t=[],n=(e=M(e)).length,r=b,o=0,a=g,i=!0,u=!1,s=void 0;try{for(var c,l=e[Symbol.iterator]();!(i=(c=l.next()).done);i=!0){var f=c.value;f<128&&t.push(P(f))}}catch(Y){u=!0,s=Y}finally{try{!i&&l.return&&l.return()}finally{if(u)throw s}}var m=t.length,y=m;for(m&&t.push(w);y<n;){var _=d,x=!0,E=!1,k=void 0;try{for(var S,N=e[Symbol.iterator]();!(x=(S=N.next()).done);x=!0){var j=S.value;j>=r&&j<_&&(_=j)}}catch(Y){E=!0,k=Y}finally{try{!x&&N.return&&N.return()}finally{if(E)throw k}}var T=y+1;_-r>O((d-o)/T)&&C("overflow"),o+=(_-r)*T,r=_;var A=!0,R=!1,L=void 0;try{for(var z,$=e[Symbol.iterator]();!(A=(z=$.next()).done);A=!0){var F=z.value;if(F<r&&++o>d&&C("overflow"),F==r){for(var U=o,B=p;;B+=p){var V=B<=a?h:B>=a+v?v:B-a;if(U<V)break;var H=U-V,q=p-V;t.push(P(D(V+H%q,0))),U=O(H/q)}t.push(P(D(U,0))),a=I(o,T,y==m),o=0,++y}}}catch(Y){R=!0,L=Y}finally{try{!A&&$.return&&$.return()}finally{if(R)throw L}}++o,++r}return t.join("")},L=function(e){return j(e,(function(e){return _.test(e)?A(e.slice(4).toLowerCase()):e}))},z=function(e){return j(e,(function(e){return x.test(e)?"xn--"+R(e):e}))},$={version:"2.1.0",ucs2:{decode:M,encode:function(e){return String.fromCodePoint.apply(String,f(e))}},decode:A,encode:R,toASCII:z,toUnicode:L},F={};function U(e){var t=e.charCodeAt(0);return t<16?"%0"+t.toString(16).toUpperCase():t<128?"%"+t.toString(16).toUpperCase():t<2048?"%"+(t>>6|192).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase():"%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase()}function B(e){for(var t="",n=0,r=e.length;n<r;){var o=parseInt(e.substr(n+1,2),16);if(o<128)t+=String.fromCharCode(o),n+=3;else if(o>=194&&o<224){if(r-n>=6){var a=parseInt(e.substr(n+4,2),16);t+=String.fromCharCode((31&o)<<6|63&a)}else t+=e.substr(n,6);n+=6}else if(o>=224){if(r-n>=9){var i=parseInt(e.substr(n+4,2),16),u=parseInt(e.substr(n+7,2),16);t+=String.fromCharCode((15&o)<<12|(63&i)<<6|63&u)}else t+=e.substr(n,9);n+=9}else t+=e.substr(n,3),n+=3}return t}function V(e,t){function n(e){var n=B(e);return n.match(t.UNRESERVED)?n:e}return e.scheme&&(e.scheme=String(e.scheme).replace(t.PCT_ENCODED,n).toLowerCase().replace(t.NOT_SCHEME,"")),void 0!==e.userinfo&&(e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,n).replace(t.NOT_USERINFO,U).replace(t.PCT_ENCODED,o)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,n).toLowerCase().replace(t.NOT_HOST,U).replace(t.PCT_ENCODED,o)),void 0!==e.path&&(e.path=String(e.path).replace(t.PCT_ENCODED,n).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,U).replace(t.PCT_ENCODED,o)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,n).replace(t.NOT_QUERY,U).replace(t.PCT_ENCODED,o)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,n).replace(t.NOT_FRAGMENT,U).replace(t.PCT_ENCODED,o)),e}function H(e){return e.replace(/^0*(.*)/,"$1")||"0"}function q(e,t){var n=e.match(t.IPV4ADDRESS)||[],r=l(n,2)[1];return r?r.split(".").map(H).join("."):e}function Y(e,t){var n=e.match(t.IPV6ADDRESS)||[],r=l(n,3),o=r[1],a=r[2];if(o){for(var i=o.toLowerCase().split("::").reverse(),u=l(i,2),s=u[0],c=u[1],f=c?c.split(":").map(H):[],d=s.split(":").map(H),p=t.IPV4ADDRESS.test(d[d.length-1]),h=p?7:8,v=d.length-h,m=Array(h),y=0;y<h;++y)m[y]=f[y]||d[v+y]||"";p&&(m[h-1]=q(m[h-1],t));var g=m.reduce((function(e,t,n){if(!t||"0"===t){var r=e[e.length-1];r&&r.index+r.length===n?r.length++:e.push({index:n,length:1})}return e}),[]).sort((function(e,t){return t.length-e.length}))[0],b=void 0;if(g&&g.length>1){var w=m.slice(0,g.index),_=m.slice(g.index+g.length);b=w.join(":")+"::"+_.join(":")}else b=m.join(":");return a&&(b+="%"+a),b}return e}var G=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,X=void 0==="".match(/(){0}/)[1];function K(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={},r=!1!==t.iri?c:s;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var o=e.match(G);if(o){X?(n.scheme=o[1],n.userinfo=o[3],n.host=o[4],n.port=parseInt(o[5],10),n.path=o[6]||"",n.query=o[7],n.fragment=o[8],isNaN(n.port)&&(n.port=o[5])):(n.scheme=o[1]||void 0,n.userinfo=-1!==e.indexOf("@")?o[3]:void 0,n.host=-1!==e.indexOf("//")?o[4]:void 0,n.port=parseInt(o[5],10),n.path=o[6]||"",n.query=-1!==e.indexOf("?")?o[7]:void 0,n.fragment=-1!==e.indexOf("#")?o[8]:void 0,isNaN(n.port)&&(n.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?o[4]:void 0)),n.host&&(n.host=Y(q(n.host,r),r)),void 0!==n.scheme||void 0!==n.userinfo||void 0!==n.host||void 0!==n.port||n.path||void 0!==n.query?void 0===n.scheme?n.reference="relative":void 0===n.fragment?n.reference="absolute":n.reference="uri":n.reference="same-document",t.reference&&"suffix"!==t.reference&&t.reference!==n.reference&&(n.error=n.error||"URI is not a "+t.reference+" reference.");var a=F[(t.scheme||n.scheme||"").toLowerCase()];if(t.unicodeSupport||a&&a.unicodeSupport)V(n,r);else{if(n.host&&(t.domainHost||a&&a.domainHost))try{n.host=$.toASCII(n.host.replace(r.PCT_ENCODED,B).toLowerCase())}catch(i){n.error=n.error||"Host's domain name can not be converted to ASCII via punycode: "+i}V(n,s)}a&&a.parse&&a.parse(n,t)}else n.error=n.error||"URI can not be parsed.";return n}function W(e,t){var n=!1!==t.iri?c:s,r=[];return void 0!==e.userinfo&&(r.push(e.userinfo),r.push("@")),void 0!==e.host&&r.push(Y(q(String(e.host),n),n).replace(n.IPV6ADDRESS,(function(e,t,n){return"["+t+(n?"%25"+n:"")+"]"}))),"number"!==typeof e.port&&"string"!==typeof e.port||(r.push(":"),r.push(String(e.port))),r.length?r.join(""):void 0}var Q=/^\.\.?\//,Z=/^\/\.(\/|$)/,J=/^\/\.\.(\/|$)/,ee=/^\/?(?:.|\n)*?(?=\/|$)/;function te(e){for(var t=[];e.length;)if(e.match(Q))e=e.replace(Q,"");else if(e.match(Z))e=e.replace(Z,"/");else if(e.match(J))e=e.replace(J,"/"),t.pop();else if("."===e||".."===e)e="";else{var n=e.match(ee);if(!n)throw new Error("Unexpected dot segment condition");var r=n[0];e=e.slice(r.length),t.push(r)}return t.join("")}function ne(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.iri?c:s,r=[],o=F[(t.scheme||e.scheme||"").toLowerCase()];if(o&&o.serialize&&o.serialize(e,t),e.host)if(n.IPV6ADDRESS.test(e.host));else if(t.domainHost||o&&o.domainHost)try{e.host=t.iri?$.toUnicode(e.host):$.toASCII(e.host.replace(n.PCT_ENCODED,B).toLowerCase())}catch(u){e.error=e.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+u}V(e,n),"suffix"!==t.reference&&e.scheme&&(r.push(e.scheme),r.push(":"));var a=W(e,t);if(void 0!==a&&("suffix"!==t.reference&&r.push("//"),r.push(a),e.path&&"/"!==e.path.charAt(0)&&r.push("/")),void 0!==e.path){var i=e.path;t.absolutePath||o&&o.absolutePath||(i=te(i)),void 0===a&&(i=i.replace(/^\/\//,"/%2F")),r.push(i)}return void 0!==e.query&&(r.push("?"),r.push(e.query)),void 0!==e.fragment&&(r.push("#"),r.push(e.fragment)),r.join("")}function re(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={};return arguments[3]||(e=K(ne(e,n),n),t=K(ne(t,n),n)),!(n=n||{}).tolerant&&t.scheme?(r.scheme=t.scheme,r.userinfo=t.userinfo,r.host=t.host,r.port=t.port,r.path=te(t.path||""),r.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(r.userinfo=t.userinfo,r.host=t.host,r.port=t.port,r.path=te(t.path||""),r.query=t.query):(t.path?("/"===t.path.charAt(0)?r.path=te(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?r.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:r.path=t.path:r.path="/"+t.path,r.path=te(r.path)),r.query=t.query):(r.path=e.path,void 0!==t.query?r.query=t.query:r.query=e.query),r.userinfo=e.userinfo,r.host=e.host,r.port=e.port),r.scheme=e.scheme),r.fragment=t.fragment,r}function oe(e,t,n){var r=i({scheme:"null"},n);return ne(re(K(e,r),K(t,r),r,!0),r)}function ae(e,t){return"string"===typeof e?e=ne(K(e,t),t):"object"===r(e)&&(e=K(ne(e,t),t)),e}function ie(e,t,n){return"string"===typeof e?e=ne(K(e,n),n):"object"===r(e)&&(e=ne(e,n)),"string"===typeof t?t=ne(K(t,n),n):"object"===r(t)&&(t=ne(t,n)),e===t}function ue(e,t){return e&&e.toString().replace(t&&t.iri?c.ESCAPE:s.ESCAPE,U)}function se(e,t){return e&&e.toString().replace(t&&t.iri?c.PCT_ENCODED:s.PCT_ENCODED,B)}var ce={scheme:"http",domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,t){var n="https"===String(e.scheme).toLowerCase();return e.port!==(n?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}},le={scheme:"https",domainHost:ce.domainHost,parse:ce.parse,serialize:ce.serialize};function fe(e){return"boolean"===typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}var de={scheme:"ws",domainHost:!0,parse:function(e,t){var n=e;return n.secure=fe(n),n.resourceName=(n.path||"/")+(n.query?"?"+n.query:""),n.path=void 0,n.query=void 0,n},serialize:function(e,t){if(e.port!==(fe(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"===typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){var n=e.resourceName.split("?"),r=l(n,2),o=r[0],a=r[1];e.path=o&&"/"!==o?o:void 0,e.query=a,e.resourceName=void 0}return e.fragment=void 0,e}},pe={scheme:"wss",domainHost:de.domainHost,parse:de.parse,serialize:de.serialize},he={},ve="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",me="[0-9A-Fa-f]",ye=n(n("%[EFef]"+me+"%"+me+me+"%"+me+me)+"|"+n("%[89A-Fa-f]"+me+"%"+me+me)+"|"+n("%"+me+me)),ge="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",be=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),we="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",_e=new RegExp(ve,"g"),xe=new RegExp(ye,"g"),Ee=new RegExp(t("[^]",ge,"[\\.]",'[\\"]',be),"g"),ke=new RegExp(t("[^]",ve,we),"g"),Se=ke;function Oe(e){var t=B(e);return t.match(_e)?t:e}var Pe={scheme:"mailto",parse:function(e,t){var n=e,r=n.to=n.path?n.path.split(","):[];if(n.path=void 0,n.query){for(var o=!1,a={},i=n.query.split("&"),u=0,s=i.length;u<s;++u){var c=i[u].split("=");switch(c[0]){case"to":for(var l=c[1].split(","),f=0,d=l.length;f<d;++f)r.push(l[f]);break;case"subject":n.subject=se(c[1],t);break;case"body":n.body=se(c[1],t);break;default:o=!0,a[se(c[0],t)]=se(c[1],t)}}o&&(n.headers=a)}n.query=void 0;for(var p=0,h=r.length;p<h;++p){var v=r[p].split("@");if(v[0]=se(v[0]),t.unicodeSupport)v[1]=se(v[1],t).toLowerCase();else try{v[1]=$.toASCII(se(v[1],t).toLowerCase())}catch(m){n.error=n.error||"Email address's domain name can not be converted to ASCII via punycode: "+m}r[p]=v.join("@")}return n},serialize:function(e,t){var n=e,r=a(e.to);if(r){for(var i=0,u=r.length;i<u;++i){var s=String(r[i]),c=s.lastIndexOf("@"),l=s.slice(0,c).replace(xe,Oe).replace(xe,o).replace(Ee,U),f=s.slice(c+1);try{f=t.iri?$.toUnicode(f):$.toASCII(se(f,t).toLowerCase())}catch(v){n.error=n.error||"Email address's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+v}r[i]=l+"@"+f}n.path=r.join(",")}var d=e.headers=e.headers||{};e.subject&&(d.subject=e.subject),e.body&&(d.body=e.body);var p=[];for(var h in d)d[h]!==he[h]&&p.push(h.replace(xe,Oe).replace(xe,o).replace(ke,U)+"="+d[h].replace(xe,Oe).replace(xe,o).replace(Se,U));return p.length&&(n.query=p.join("&")),n}},Ce=/^([^\:]+)\:(.*)/,Ne={scheme:"urn",parse:function(e,t){var n=e.path&&e.path.match(Ce),r=e;if(n){var o=t.scheme||r.scheme||"urn",a=n[1].toLowerCase(),i=n[2],u=o+":"+(t.nid||a),s=F[u];r.nid=a,r.nss=i,r.path=void 0,s&&(r=s.parse(r,t))}else r.error=r.error||"URN can not be parsed.";return r},serialize:function(e,t){var n=t.scheme||e.scheme||"urn",r=e.nid,o=n+":"+(t.nid||r),a=F[o];a&&(e=a.serialize(e,t));var i=e,u=e.nss;return i.path=(r||t.nid)+":"+u,i}},je=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Me={scheme:"urn:uuid",parse:function(e,t){var n=e;return n.uuid=n.nss,n.nss=void 0,t.tolerant||n.uuid&&n.uuid.match(je)||(n.error=n.error||"UUID is not valid."),n},serialize:function(e,t){var n=e;return n.nss=(e.uuid||"").toLowerCase(),n}};F[ce.scheme]=ce,F[le.scheme]=le,F[de.scheme]=de,F[pe.scheme]=pe,F[Pe.scheme]=Pe,F[Ne.scheme]=Ne,F[Me.scheme]=Me,e.SCHEMES=F,e.pctEncChar=U,e.pctDecChars=B,e.parse=K,e.removeDotSegments=te,e.serialize=ne,e.resolveComponents=re,e.resolve=oe,e.normalize=ae,e.equal=ie,e.escapeComponent=ue,e.unescapeComponent=se,Object.defineProperty(e,"__esModule",{value:!0})}(t)},4775:function(e){"use strict";e.exports=JSON.parse('{"$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON AnySchema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},98:function(e){"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.loaded=!0,a.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},function(){"use strict";var e=n(2791),t=n(4164);function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function o(e,t){if(e){if("string"===typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}function a(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||o(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t,n,r,o,a,i){try{var u=e[a](i),s=u.value}catch(c){return void n(c)}u.done?t(s):Promise.resolve(s).then(r,o)}function u(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function u(e){i(a,r,o,u,s,"next",e)}function s(e){i(a,r,o,u,s,"throw",e)}u(void 0)}))}}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,u=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(s){u=!0,o=s}finally{try{i||null==n.return||n.return()}finally{if(u)throw o}}return a}}(e,t)||o(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var d,p,h=n(7757),v=n.n(h);var m=new WeakMap,y=new WeakMap,g=new WeakMap,b=new WeakMap,w=new WeakMap;var _={get:function(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return y.get(e);if("objectStoreNames"===t)return e.objectStoreNames||g.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return k(e[t])},set:function(e,t,n){return e[t]=n,!0},has:function(e,t){return e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e}};function x(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(p||(p=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.apply(S(this),n),k(m.get(this))}:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return k(e.apply(S(this),n))}:function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var a=e.call.apply(e,[S(this),t].concat(r));return g.set(a,t.sort?t.sort():[t]),k(a)}}function E(e){return"function"===typeof e?x(e):(e instanceof IDBTransaction&&function(e){if(!y.has(e)){var t=new Promise((function(t,n){var r=function(){e.removeEventListener("complete",o),e.removeEventListener("error",a),e.removeEventListener("abort",a)},o=function(){t(),r()},a=function(){n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",o),e.addEventListener("error",a),e.addEventListener("abort",a)}));y.set(e,t)}}(e),t=e,(d||(d=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])).some((function(e){return t instanceof e}))?new Proxy(e,_):e);var t}function k(e){if(e instanceof IDBRequest)return function(e){var t=new Promise((function(t,n){var r=function(){e.removeEventListener("success",o),e.removeEventListener("error",a)},o=function(){t(k(e.result)),r()},a=function(){n(e.error),r()};e.addEventListener("success",o),e.addEventListener("error",a)}));return t.then((function(t){t instanceof IDBCursor&&m.set(t,e)})).catch((function(){})),w.set(t,e),t}(e);if(b.has(e))return b.get(e);var t=E(e);return t!==e&&(b.set(e,t),w.set(t,e)),t}var S=function(e){return w.get(e)};function O(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.blocked,o=n.upgrade,a=n.blocking,i=n.terminated,u=indexedDB.open(e,t),s=k(u);return o&&u.addEventListener("upgradeneeded",(function(e){o(k(u.result),e.oldVersion,e.newVersion,k(u.transaction))})),r&&u.addEventListener("blocked",(function(){return r()})),s.then((function(e){i&&e.addEventListener("close",(function(){return i()})),a&&e.addEventListener("versionchange",(function(){return a()}))})).catch((function(){})),s}var P=["get","getKey","getAll","getAllKeys","count"],C=["put","add","delete","clear"],N=new Map;function j(e,t){if(e instanceof IDBDatabase&&!(t in e)&&"string"===typeof t){if(N.get(t))return N.get(t);var n=t.replace(/FromIndex$/,""),r=t!==n,o=C.includes(n);if(n in(r?IDBIndex:IDBObjectStore).prototype&&(o||P.includes(n))){var a=function(){var e=u(v().mark((function e(t){var a,i,u,s,c,l,f=arguments;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(i=this.transaction(t,o?"readwrite":"readonly"),u=i.store,s=f.length,c=new Array(s>1?s-1:0),l=1;l<s;l++)c[l-1]=f[l];return r&&(u=u.index(c.shift())),e.next=6,Promise.all([(a=u)[n].apply(a,c),o&&i.done]);case 6:return e.abrupt("return",e.sent[0]);case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}();return N.set(t,a),a}}}function M(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=o(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}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 i,u=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return u=e.done,e},e:function(e){s=!0,i=e},f:function(){try{u||null==n.return||n.return()}finally{if(s)throw i}}}}_=function(e){return l(l({},e),{},{get:function(t,n,r){return j(t,n)||e.get(t,n,r)},has:function(t,n){return!!j(t,n)||e.has(t,n)}})}(_);var T=v().mark(Hr);function D(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function A(e){if("string"===typeof e||"number"===typeof e)return""+e;var t="";if(Array.isArray(e))for(var n,r=0;r<e.length;r++)""!==(n=A(e[r]))&&(t+=(t&&" ")+n);else for(var o in e)e[o]&&(t+=(t&&" ")+o);return t}function R(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var L="function"===typeof Symbol&&Symbol.observable||"@@observable",z=function(){return Math.random().toString(36).substring(7).split("").join(".")},$={INIT:"@@redux/INIT"+z(),REPLACE:"@@redux/REPLACE"+z(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+z()}};function F(e){if("object"!==typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function U(e,t,n){var r;if("function"===typeof t&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error(R(0));if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error(R(1));return n(U)(e,t)}if("function"!==typeof e)throw new Error(R(2));var o=e,a=t,i=[],u=i,s=!1;function c(){u===i&&(u=i.slice())}function l(){if(s)throw new Error(R(3));return a}function f(e){if("function"!==typeof e)throw new Error(R(4));if(s)throw new Error(R(5));var t=!0;return c(),u.push(e),function(){if(t){if(s)throw new Error(R(6));t=!1,c();var n=u.indexOf(e);u.splice(n,1),i=null}}}function d(e){if(!F(e))throw new Error(R(7));if("undefined"===typeof e.type)throw new Error(R(8));if(s)throw new Error(R(9));try{s=!0,a=o(a,e)}finally{s=!1}for(var t=i=u,n=0;n<t.length;n++){(0,t[n])()}return e}function p(e){if("function"!==typeof e)throw new Error(R(10));o=e,d({type:$.REPLACE})}function h(){var e,t=f;return(e={subscribe:function(e){if("object"!==typeof e||null===e)throw new Error(R(11));function n(){e.next&&e.next(l())}return n(),{unsubscribe:t(n)}}})[L]=function(){return this},e}return d({type:$.INIT}),(r={dispatch:d,subscribe:f,getState:l,replaceReducer:p})[L]=h,r}function B(e,t){return function(){return t(e.apply(this,arguments))}}function V(e,t){if("function"===typeof e)return B(e,t);if("object"!==typeof e||null===e)throw new Error(R(16));var n={};for(var r in e){var o=e[r];"function"===typeof o&&(n[r]=B(o,t))}return n}function H(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})})),t}var q={exports:{}},Y={exports:{}},G={},X="function"===typeof Symbol&&Symbol.for,K=X?Symbol.for("react.element"):60103,W=X?Symbol.for("react.portal"):60106,Q=X?Symbol.for("react.fragment"):60107,Z=X?Symbol.for("react.strict_mode"):60108,J=X?Symbol.for("react.profiler"):60114,ee=X?Symbol.for("react.provider"):60109,te=X?Symbol.for("react.context"):60110,ne=X?Symbol.for("react.async_mode"):60111,re=X?Symbol.for("react.concurrent_mode"):60111,oe=X?Symbol.for("react.forward_ref"):60112,ae=X?Symbol.for("react.suspense"):60113,ie=X?Symbol.for("react.suspense_list"):60120,ue=X?Symbol.for("react.memo"):60115,se=X?Symbol.for("react.lazy"):60116,ce=X?Symbol.for("react.block"):60121,le=X?Symbol.for("react.fundamental"):60117,fe=X?Symbol.for("react.responder"):60118,de=X?Symbol.for("react.scope"):60119;function pe(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case K:switch(e=e.type){case ne:case re:case Q:case J:case Z:case ae:return e;default:switch(e=e&&e.$$typeof){case te:case oe:case se:case ue:case ee:return e;default:return t}}case W:return t}}}function he(e){return pe(e)===re}G.AsyncMode=ne,G.ConcurrentMode=re,G.ContextConsumer=te,G.ContextProvider=ee,G.Element=K,G.ForwardRef=oe,G.Fragment=Q,G.Lazy=se,G.Memo=ue,G.Portal=W,G.Profiler=J,G.StrictMode=Z,G.Suspense=ae,G.isAsyncMode=function(e){return he(e)||pe(e)===ne},G.isConcurrentMode=he,G.isContextConsumer=function(e){return pe(e)===te},G.isContextProvider=function(e){return pe(e)===ee},G.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===K},G.isForwardRef=function(e){return pe(e)===oe},G.isFragment=function(e){return pe(e)===Q},G.isLazy=function(e){return pe(e)===se},G.isMemo=function(e){return pe(e)===ue},G.isPortal=function(e){return pe(e)===W},G.isProfiler=function(e){return pe(e)===J},G.isStrictMode=function(e){return pe(e)===Z},G.isSuspense=function(e){return pe(e)===ae},G.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===Q||e===re||e===J||e===Z||e===ae||e===ie||"object"===typeof e&&null!==e&&(e.$$typeof===se||e.$$typeof===ue||e.$$typeof===ee||e.$$typeof===te||e.$$typeof===oe||e.$$typeof===le||e.$$typeof===fe||e.$$typeof===de||e.$$typeof===ce)},G.typeOf=pe,Y.exports=G;var ve=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable;function ge(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(a){return!1}})()&&Object.assign,Function.call.bind(Object.prototype.hasOwnProperty);function be(e,t,n,r,o){}be.resetWarningCache=function(){0};Y.exports;function we(){}function _e(){}_e.resetWarningCache=we;q.exports=function(){function e(e,t,n,r,o,a){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==a){var i=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 i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:_e,resetWarningCache:we};return n.PropTypes=n,n}();q.exports;var xe=e.createContext(null);var Ee=function(e){e()},ke=function(){return Ee};var Se={notify:function(){},get:function(){return[]}};function Oe(e,t){var n,r=Se;function o(){i.onStateChange&&i.onStateChange()}function a(){n||(n=t?t.addNestedSub(o):e.subscribe(o),r=function(){var e=ke(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((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(e){var r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())}var i={addNestedSub:function(e){return a(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:o,isSubscribed:function(){return Boolean(n)},trySubscribe:a,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=Se)},getListeners:function(){return r}};return i}var Pe="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?e.useLayoutEffect:e.useEffect;function Ce(t){var n=t.store,r=t.context,o=t.children,a=(0,e.useMemo)((function(){var e=Oe(n);return e.onStateChange=e.notifyNestedSubs,{store:n,subscription:e}}),[n]),i=(0,e.useMemo)((function(){return n.getState()}),[n]);Pe((function(){var e=a.subscription;return e.trySubscribe(),i!==n.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[a,i]);var u=r||xe;return e.createElement(u.Provider,{value:a},o)}var Ne=Y.exports,je={};je[Ne.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},je[Ne.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};var Me={},Te=60103,De=60106,Ie=60107,Ae=60108,Re=60114,Le=60109,ze=60110,$e=60112,Fe=60113,Ue=60120,Be=60115,Ve=60116,He=60121,qe=60122,Ye=60117,Ge=60129,Xe=60131;if("function"===typeof Symbol&&Symbol.for){var Ke=Symbol.for;Te=Ke("react.element"),De=Ke("react.portal"),Ie=Ke("react.fragment"),Ae=Ke("react.strict_mode"),Re=Ke("react.profiler"),Le=Ke("react.provider"),ze=Ke("react.context"),$e=Ke("react.forward_ref"),Fe=Ke("react.suspense"),Ue=Ke("react.suspense_list"),Be=Ke("react.memo"),Ve=Ke("react.lazy"),He=Ke("react.block"),qe=Ke("react.server.block"),Ye=Ke("react.fundamental"),Ge=Ke("react.debug_trace_mode"),Xe=Ke("react.legacy_hidden")}function We(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case Te:switch(e=e.type){case Ie:case Re:case Ae:case Fe:case Ue:return e;default:switch(e=e&&e.$$typeof){case ze:case $e:case Ve:case Be:case Le:return e;default:return t}}case De:return t}}}var Qe=Le,Ze=Te,Je=$e,et=Ie,tt=Ve,nt=Be,rt=De,ot=Re,at=Ae,it=Fe;function ut(){return(0,e.useContext)(xe)}function st(t){void 0===t&&(t=xe);var n=t===xe?ut:function(){return(0,e.useContext)(t)};return function(){return n().store}}Me.ContextConsumer=ze,Me.ContextProvider=Qe,Me.Element=Ze,Me.ForwardRef=Je,Me.Fragment=et,Me.Lazy=tt,Me.Memo=nt,Me.Portal=rt,Me.Profiler=ot,Me.StrictMode=at,Me.Suspense=it,Me.isAsyncMode=function(){return!1},Me.isConcurrentMode=function(){return!1},Me.isContextConsumer=function(e){return We(e)===ze},Me.isContextProvider=function(e){return We(e)===Le},Me.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===Te},Me.isForwardRef=function(e){return We(e)===$e},Me.isFragment=function(e){return We(e)===Ie},Me.isLazy=function(e){return We(e)===Ve},Me.isMemo=function(e){return We(e)===Be},Me.isPortal=function(e){return We(e)===De},Me.isProfiler=function(e){return We(e)===Re},Me.isStrictMode=function(e){return We(e)===Ae},Me.isSuspense=function(e){return We(e)===Fe},Me.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===Ie||e===Re||e===Ge||e===Ae||e===Fe||e===Ue||e===Xe||"object"===typeof e&&null!==e&&(e.$$typeof===Ve||e.$$typeof===Be||e.$$typeof===Le||e.$$typeof===ze||e.$$typeof===$e||e.$$typeof===Ye||e.$$typeof===He||e[0]===qe)},Me.typeOf=We;var ct=st();function lt(e){void 0===e&&(e=xe);var t=e===xe?ct:st(e);return function(){return t().dispatch}}var ft=lt(),dt=function(e,t){return e===t};function pt(t){void 0===t&&(t=xe);var n=t===xe?ut:function(){return(0,e.useContext)(t)};return function(t,r){void 0===r&&(r=dt);var o=n(),a=function(t,n,r,o){var a,i=(0,e.useReducer)((function(e){return e+1}),0)[1],u=(0,e.useMemo)((function(){return Oe(r,o)}),[r,o]),s=(0,e.useRef)(),c=(0,e.useRef)(),l=(0,e.useRef)(),f=(0,e.useRef)(),d=r.getState();try{if(t!==c.current||d!==l.current||s.current){var p=t(d);a=void 0!==f.current&&n(p,f.current)?f.current:p}else a=f.current}catch(h){throw s.current&&(h.message+="\nThe error may be correlated with this previous error:\n"+s.current.stack+"\n\n"),h}return Pe((function(){c.current=t,l.current=d,f.current=a,s.current=void 0})),Pe((function(){function e(){try{var e=r.getState();if(e===l.current)return;var t=c.current(e);if(n(t,f.current))return;f.current=t,l.current=e}catch(h){s.current=h}i()}return u.onStateChange=e,u.trySubscribe(),e(),function(){return u.tryUnsubscribe()}}),[r,u]),a}(t,r,o.store,o.subscription);return(0,e.useDebugValue)(a),a}}var ht,vt=pt();function mt(e,t){return{type:e,payload:t}}ht=t.unstable_batchedUpdates,Ee=ht;var yt="SET_ON_CONNECT",gt="SET_ON_CONNECT_START",bt="SET_ON_CONNECT_STOP",wt="SET_ON_CONNECT_END",_t="SET_ELEMENTS",xt="UPDATE_NODE_DIMENSIONS",Et="UPDATE_NODE_POS",kt="UPDATE_NODE_POS_DIFF",St="SET_USER_SELECTION",Ot="UPDATE_USER_SELECTION",Pt="UNSET_USER_SELECTION",Ct="UNSET_NODES_SELECTION",Nt="SET_SELECTED_ELEMENTS",jt="RESET_SELECTED_ELEMENTS",Mt="ADD_SELECTED_ELEMENTS",Tt="UPDATE_TRANSFORM",Dt="UPDATE_SIZE",It="INIT_D3ZOOM",At="SET_MINZOOM",Rt="SET_MAXZOOM",Lt="SET_TRANSLATEEXTENT",zt="SET_CONNECTION_POSITION",$t="SET_CONNECTION_NODEID",Ft="SET_SNAPTOGRID",Ut="SET_SNAPGRID",Bt="SET_INTERACTIVE",Vt="SET_NODES_DRAGGABLE",Ht="SET_NODES_CONNECTABLE",qt="SET_ELEMENTS_SELECTABLE",Yt="SET_MULTI_SELECTION_ACTIVE",Gt="SET_CONNECTION_MODE",Xt="SET_NODE_EXTENT",Kt=Object.freeze({__proto__:null,setOnConnect:function(e){return mt(yt,{onConnect:e})},setOnConnectStart:function(e){return mt(gt,{onConnectStart:e})},setOnConnectStop:function(e){return mt(bt,{onConnectStop:e})},setOnConnectEnd:function(e){return mt(wt,{onConnectEnd:e})},setElements:function(e){return mt(_t,e)},updateNodeDimensions:function(e){return mt(xt,e)},updateNodePos:function(e){return mt(Et,e)},updateNodePosDiff:function(e){return mt(kt,e)},setUserSelection:function(e){return mt(St,e)},updateUserSelection:function(e){return mt(Ot,e)},unsetUserSelection:function(){return mt(Pt)},setSelection:function(e){return mt("SET_SELECTION",{selectionActive:e})},unsetNodesSelection:function(){return mt(Ct,{nodesSelectionActive:!1})},resetSelectedElements:function(){return mt(jt,{selectedElements:null})},setSelectedElements:function(e){return mt(Nt,e)},addSelectedElements:function(e){return mt(Mt,e)},updateTransform:function(e){return mt(Tt,{transform:e})},updateSize:function(e){return mt(Dt,{width:e.width||500,height:e.height||500})},initD3Zoom:function(e){return mt(It,e)},setMinZoom:function(e){return mt(At,e)},setMaxZoom:function(e){return mt(Rt,e)},setTranslateExtent:function(e){return mt(Lt,e)},setConnectionPosition:function(e){return mt(zt,{connectionPosition:e})},setConnectionNodeId:function(e){return mt($t,e)},setSnapToGrid:function(e){return mt(Ft,{snapToGrid:e})},setSnapGrid:function(e){return mt(Ut,{snapGrid:e})},setInteractive:function(e){return mt(Bt,{nodesDraggable:e,nodesConnectable:e,elementsSelectable:e})},setNodesDraggable:function(e){return mt(Vt,{nodesDraggable:e})},setNodesConnectable:function(e){return mt(Ht,{nodesConnectable:e})},setElementsSelectable:function(e){return mt(qt,{elementsSelectable:e})},setMultiSelectionActive:function(e){return mt(Yt,{multiSelectionActive:e})},setConnectionMode:function(e){return mt(Gt,{connectionMode:e})},setNodeExtent:function(e){return mt(Xt,e)}});function Wt(t){var n=ft(),r=t(Kt);return(0,e.useMemo)((function(){return V(r,n)}),[n,r])}var Qt=vt,Zt=function(){return ct()};function Jt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function en(e,t){if(e){if("string"===typeof e)return Jt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Jt(e,t):void 0}}function tn(e){return function(e){if(Array.isArray(e))return Jt(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||en(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,u=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(s){u=!0,o=s}finally{try{i||null==n.return||n.return()}finally{if(u)throw o}}return a}}(e,t)||en(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var rn=function(e){var t=null===e||void 0===e?void 0:e.target;return["INPUT","SELECT","TEXTAREA","BUTTON"].includes(null===t||void 0===t?void 0:t.nodeName)||(null===t||void 0===t?void 0:t.hasAttribute("contenteditable"))},on=function(e){return{width:e.offsetWidth,height:e.offsetHeight}},an=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(e,t),n)},un=function(e,t){return{x:an(e.x,t[0][0],t[1][0]),y:an(e.y,t[0][1],t[1][1])}},sn=function(t){var n=nn((0,e.useState)(!1),2),r=n[0],o=n[1];return(0,e.useEffect)((function(){if("undefined"!==typeof t){var e=function(e){rn(e)||e.key!==t&&e.keyCode!==t||(e.preventDefault(),o(!0))},n=function(e){rn(e)||e.key!==t&&e.keyCode!==t||o(!1)},r=function(){return o(!1)};return window.addEventListener("keydown",e),window.addEventListener("keyup",n),window.addEventListener("blur",r),function(){window.removeEventListener("keydown",e),window.removeEventListener("keyup",n),window.removeEventListener("blur",r)}}}),[t,o]),r};function cn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ln(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cn(Object(n),!0).forEach((function(t){D(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var fn=function(e){return"id"in e&&"source"in e&&"target"in e},dn=function(e){return"id"in e&&!("source"in e)&&!("target"in e)},pn=function(e,t,n,r){var o=e.x,a=e.y,i=nn(t,3),u=i[0],s=i[1],c=i[2],l=nn(r,2),f=l[0],d=l[1],p={x:(o-u)/c,y:(a-s)/c};return n?{x:f*Math.round(p.x/f),y:d*Math.round(p.y/d)}:p},hn=function(e){return function(t){var n=e.getState(),r=n.transform,o=n.snapToGrid,a=n.snapGrid;return pn(t,r,o,a)}},vn=function(e,t){var n,r;return ln(ln({},e),{},{id:e.id.toString(),type:e.type||"default",__rf:{position:un(e.position,t),width:(null===(n=e.style)||void 0===n?void 0:n.width)||null,height:(null===(r=e.style)||void 0===r?void 0:r.height)||null,handleBounds:{},isDragging:!1}})},mn=function(e){return ln(ln({},e),{},{source:e.source.toString(),target:e.target.toString(),sourceHandle:e.sourceHandle?e.sourceHandle.toString():null,targetHandle:e.targetHandle?e.targetHandle.toString():null,id:e.id.toString(),type:e.type||"default"})},yn=function(e,t){return{x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x2,t.x2),y2:Math.max(e.y2,t.y2)}},gn=function(e){var t=e.x,n=e.y;return{x:t,y:n,x2:t+e.width,y2:n+e.height}},bn=function(e){var t=e.x,n=e.y;return{x:t,y:n,width:e.x2-t,height:e.y2-n}},wn=function(e){var t=e.reduce((function(e,t){var n=t.__rf,r=(n=void 0===n?{}:n).position,o=n.width,a=n.height;return yn(e,gn(ln(ln({},r),{},{width:o,height:a})))}),{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return bn(t)},_n=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[0,0,1],r=nn(n,3),o=r[0],a=r[1],i=r[2],u=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=arguments.length>4&&void 0!==arguments[4]&&arguments[4],c=gn({x:(t.x-o)/i,y:(t.y-a)/i,width:t.width/i,height:t.height/i});return e.filter((function(e){var t=e.selectable,n=void 0===t||t,r=e.__rf,o=r.position,a=r.width,i=r.height,l=r.isDragging;if(s&&!n)return!1;var f=gn(ln(ln({},o),{},{width:a,height:i})),d=Math.max(0,Math.min(c.x2,f.x2)-Math.max(c.x,f.x)),p=Math.max(0,Math.min(c.y2,f.y2)-Math.max(c.y,f.y)),h=Math.ceil(d*p);return!(null!==a&&null!==i&&!l)||(u?h>0:h>=a*i)}))},xn=function(e,t){var n=e.map((function(e){return e.id}));return t.filter((function(e){return n.includes(e.source)||n.includes(e.target)}))},En=function(e,t){return[].concat(tn(e.map((function(e){var t=ln({},e);return t.position=t.__rf.position,delete t.__rf,t}))),tn(t.map((function(e){return ln({},e)}))))},kn=function(e){return function(){var t=e.getState(),n=t.nodes,r=void 0===n?[]:n,o=t.edges;return En(r,void 0===o?[]:o)}},Sn=function(e){return function(){var t=e.getState(),n=t.nodes,r=void 0===n?[]:n,o=t.edges,a=void 0===o?[]:o,i=t.transform;return{elements:En(r,a),position:[i[0],i[1]],zoom:i[2]}}},On=function(e,t,n,r,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:.1,i=t/(e.width*(1+a)),u=n/(e.height*(1+a)),s=Math.min(i,u),c=an(s,r,o),l=e.x+e.width/2,f=e.y+e.height/2,d=t/2-l*c,p=n/2-f*c;return[d,p,c]},Pn={value:function(){}};function Cn(){for(var e,t=0,n=arguments.length,r={};t<n;++t){if(!(e=arguments[t]+"")||e in r||/[\s.]/.test(e))throw new Error("illegal type: "+e);r[e]=[]}return new Nn(r)}function Nn(e){this._=e}function jn(e,t){return e.trim().split(/^|\s+/).map((function(e){var n="",r=e.indexOf(".");if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:n}}))}function Mn(e,t){for(var n,r=0,o=e.length;r<o;++r)if((n=e[r]).name===t)return n.value}function Tn(e,t,n){for(var r=0,o=e.length;r<o;++r)if(e[r].name===t){e[r]=Pn,e=e.slice(0,r).concat(e.slice(r+1));break}return null!=n&&e.push({name:t,value:n}),e}Nn.prototype=Cn.prototype={constructor:Nn,on:function(e,t){var n,r=this._,o=jn(e+"",r),a=-1,i=o.length;if(!(arguments.length<2)){if(null!=t&&"function"!==typeof t)throw new Error("invalid callback: "+t);for(;++a<i;)if(n=(e=o[a]).type)r[n]=Tn(r[n],e.name,t);else if(null==t)for(n in r)r[n]=Tn(r[n],e.name,null);return this}for(;++a<i;)if((n=(e=o[a]).type)&&(n=Mn(r[n],e.name)))return n},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new Nn(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,r,o=new Array(n),a=0;a<n;++a)o[a]=arguments[a+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=0,n=(r=this._[e]).length;a<n;++a)r[a].value.apply(t,o)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],o=0,a=r.length;o<a;++o)r[o].value.apply(t,n)}};var Dn="http://www.w3.org/1999/xhtml",In={svg:"http://www.w3.org/2000/svg",xhtml:Dn,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function An(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),In.hasOwnProperty(t)?{space:In[t],local:e}:e}function Rn(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Dn&&t.documentElement.namespaceURI===Dn?t.createElement(e):t.createElementNS(n,e)}}function Ln(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function zn(e){var t=An(e);return(t.local?Ln:Rn)(t)}function $n(){}function Fn(e){return null==e?$n:function(){return this.querySelector(e)}}function Un(e){return null==e?[]:Array.isArray(e)?e:Array.from(e)}function Bn(){return[]}function Vn(e){return null==e?Bn:function(){return this.querySelectorAll(e)}}function Hn(e){return function(){return this.matches(e)}}function qn(e){return function(t){return t.matches(e)}}var Yn=Array.prototype.find;function Gn(){return this.firstElementChild}var Xn=Array.prototype.filter;function Kn(){return Array.from(this.children)}function Wn(e){return new Array(e.length)}function Qn(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function Zn(e){return function(){return e}}function Jn(e,t,n,r,o,a){for(var i,u=0,s=t.length,c=a.length;u<c;++u)(i=t[u])?(i.__data__=a[u],r[u]=i):n[u]=new Qn(e,a[u]);for(;u<s;++u)(i=t[u])&&(o[u]=i)}function er(e,t,n,r,o,a,i){var u,s,c,l=new Map,f=t.length,d=a.length,p=new Array(f);for(u=0;u<f;++u)(s=t[u])&&(p[u]=c=i.call(s,s.__data__,u,t)+"",l.has(c)?o[u]=s:l.set(c,s));for(u=0;u<d;++u)c=i.call(e,a[u],u,a)+"",(s=l.get(c))?(r[u]=s,s.__data__=a[u],l.delete(c)):n[u]=new Qn(e,a[u]);for(u=0;u<f;++u)(s=t[u])&&l.get(p[u])===s&&(o[u]=s)}function tr(e){return e.__data__}function nr(e){return"object"===typeof e&&"length"in e?e:Array.from(e)}function rr(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function or(e){return function(){this.removeAttribute(e)}}function ar(e){return function(){this.removeAttributeNS(e.space,e.local)}}function ir(e,t){return function(){this.setAttribute(e,t)}}function ur(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function sr(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function cr(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function lr(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function fr(e){return function(){this.style.removeProperty(e)}}function dr(e,t,n){return function(){this.style.setProperty(e,t,n)}}function pr(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function hr(e,t){return e.style.getPropertyValue(t)||lr(e).getComputedStyle(e,null).getPropertyValue(t)}function vr(e){return function(){delete this[e]}}function mr(e,t){return function(){this[e]=t}}function yr(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function gr(e){return e.trim().split(/^|\s+/)}function br(e){return e.classList||new wr(e)}function wr(e){this._node=e,this._names=gr(e.getAttribute("class")||"")}function _r(e,t){for(var n=br(e),r=-1,o=t.length;++r<o;)n.add(t[r])}function xr(e,t){for(var n=br(e),r=-1,o=t.length;++r<o;)n.remove(t[r])}function Er(e){return function(){_r(this,e)}}function kr(e){return function(){xr(this,e)}}function Sr(e,t){return function(){(t.apply(this,arguments)?_r:xr)(this,e)}}function Or(){this.textContent=""}function Pr(e){return function(){this.textContent=e}}function Cr(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function Nr(){this.innerHTML=""}function jr(e){return function(){this.innerHTML=e}}function Mr(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function Tr(){this.nextSibling&&this.parentNode.appendChild(this)}function Dr(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Ir(){return null}function Ar(){var e=this.parentNode;e&&e.removeChild(this)}function Rr(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Lr(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function zr(e){return e.trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}function $r(e){return function(){var t=this.__on;if(t){for(var n,r=0,o=-1,a=t.length;r<a;++r)n=t[r],e.type&&n.type!==e.type||n.name!==e.name?t[++o]=n:this.removeEventListener(n.type,n.listener,n.options);++o?t.length=o:delete this.__on}}}function Fr(e,t,n){return function(){var r,o=this.__on,a=function(e){return function(t){e.call(this,t,this.__data__)}}(t);if(o)for(var i=0,u=o.length;i<u;++i)if((r=o[i]).type===e.type&&r.name===e.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=a,r.options=n),void(r.value=t);this.addEventListener(e.type,a,n),r={type:e.type,name:e.name,value:t,listener:a,options:n},o?o.push(r):this.__on=[r]}}function Ur(e,t,n){var r=lr(e),o=r.CustomEvent;"function"===typeof o?o=new o(t,n):(o=r.document.createEvent("Event"),n?(o.initEvent(t,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function Br(e,t){return function(){return Ur(this,e,t)}}function Vr(e,t){return function(){return Ur(this,e,t.apply(this,arguments))}}function Hr(){var e,t,n,r,o,a,i;return v().wrap((function(u){for(;;)switch(u.prev=u.next){case 0:e=this._groups,t=0,n=e.length;case 1:if(!(t<n)){u.next=13;break}r=e[t],o=0,a=r.length;case 3:if(!(o<a)){u.next=10;break}if(!(i=r[o])){u.next=7;break}return u.next=7,i;case 7:++o,u.next=3;break;case 10:++t,u.next=1;break;case 13:case"end":return u.stop()}}),T,this)}Qn.prototype={constructor:Qn,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}},wr.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var qr=[null];function Yr(e,t){this._groups=e,this._parents=t}function Gr(){return new Yr([[document.documentElement]],qr)}function Xr(e){return"string"===typeof e?new Yr([[document.querySelector(e)]],[document.documentElement]):new Yr([[e]],qr)}function Kr(e,t){if(e=function(e){for(var t;t=e.sourceEvent;)e=t;return e}(e),void 0===t&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}if(t.getBoundingClientRect){var o=t.getBoundingClientRect();return[e.clientX-o.left-t.clientLeft,e.clientY-o.top-t.clientTop]}}return[e.pageX,e.pageY]}Yr.prototype=Gr.prototype=s({constructor:Yr,select:function(e){"function"!==typeof e&&(e=Fn(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var a,i,u=t[o],s=u.length,c=r[o]=new Array(s),l=0;l<s;++l)(a=u[l])&&(i=e.call(a,a.__data__,l,u))&&("__data__"in a&&(i.__data__=a.__data__),c[l]=i);return new Yr(r,this._parents)},selectAll:function(e){e="function"===typeof e?function(e){return function(){return Un(e.apply(this,arguments))}}(e):Vn(e);for(var t=this._groups,n=t.length,r=[],o=[],a=0;a<n;++a)for(var i,u=t[a],s=u.length,c=0;c<s;++c)(i=u[c])&&(r.push(e.call(i,i.__data__,c,u)),o.push(i));return new Yr(r,o)},selectChild:function(e){return this.select(null==e?Gn:function(e){return function(){return Yn.call(this.children,e)}}("function"===typeof e?e:qn(e)))},selectChildren:function(e){return this.selectAll(null==e?Kn:function(e){return function(){return Xn.call(this.children,e)}}("function"===typeof e?e:qn(e)))},filter:function(e){"function"!==typeof e&&(e=Hn(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var a,i=t[o],u=i.length,s=r[o]=[],c=0;c<u;++c)(a=i[c])&&e.call(a,a.__data__,c,i)&&s.push(a);return new Yr(r,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,tr);var n=t?er:Jn,r=this._parents,o=this._groups;"function"!==typeof e&&(e=Zn(e));for(var a=o.length,i=new Array(a),u=new Array(a),s=new Array(a),c=0;c<a;++c){var l=r[c],f=o[c],d=f.length,p=nr(e.call(l,l&&l.__data__,c,r)),h=p.length,v=u[c]=new Array(h),m=i[c]=new Array(h),y=s[c]=new Array(d);n(l,f,v,m,y,p,t);for(var g,b,w=0,_=0;w<h;++w)if(g=v[w]){for(w>=_&&(_=w+1);!(b=m[_])&&++_<h;);g._next=b||null}}return(i=new Yr(i,r))._enter=u,i._exit=s,i},enter:function(){return new Yr(this._enter||this._groups.map(Wn),this._parents)},exit:function(){return new Yr(this._exit||this._groups.map(Wn),this._parents)},join:function(e,t,n){var r=this.enter(),o=this,a=this.exit();return"function"===typeof e?(r=e(r))&&(r=r.selection()):r=r.append(e+""),null!=t&&(o=t(o))&&(o=o.selection()),null==n?a.remove():n(a),r&&o?r.merge(o).order():o},merge:function(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,o=n.length,a=r.length,i=Math.min(o,a),u=new Array(o),s=0;s<i;++s)for(var c,l=n[s],f=r[s],d=l.length,p=u[s]=new Array(d),h=0;h<d;++h)(c=l[h]||f[h])&&(p[h]=c);for(;s<o;++s)u[s]=n[s];return new Yr(u,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,o=e[t],a=o.length-1,i=o[a];--a>=0;)(r=o[a])&&(i&&4^r.compareDocumentPosition(i)&&i.parentNode.insertBefore(r,i),i=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=rr);for(var n=this._groups,r=n.length,o=new Array(r),a=0;a<r;++a){for(var i,u=n[a],s=u.length,c=o[a]=new Array(s),l=0;l<s;++l)(i=u[l])&&(c[l]=i);c.sort(t)}return new Yr(o,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],o=0,a=r.length;o<a;++o){var i=r[o];if(i)return i}return null},size:function(){var e,t=0,n=M(this);try{for(n.s();!(e=n.n()).done;){e.value;++t}}catch(r){n.e(r)}finally{n.f()}return t},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var o,a=t[n],i=0,u=a.length;i<u;++i)(o=a[i])&&e.call(o,o.__data__,i,a);return this},attr:function(e,t){var n=An(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?ar:or:"function"===typeof t?n.local?cr:sr:n.local?ur:ir)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?fr:"function"===typeof t?pr:dr)(e,t,null==n?"":n)):hr(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?vr:"function"===typeof t?yr:mr)(e,t)):this.node()[e]},classed:function(e,t){var n=gr(e+"");if(arguments.length<2){for(var r=br(this.node()),o=-1,a=n.length;++o<a;)if(!r.contains(n[o]))return!1;return!0}return this.each(("function"===typeof t?Sr:t?Er:kr)(n,t))},text:function(e){return arguments.length?this.each(null==e?Or:("function"===typeof e?Cr:Pr)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?Nr:("function"===typeof e?Mr:jr)(e)):this.node().innerHTML},raise:function(){return this.each(Tr)},lower:function(){return this.each(Dr)},append:function(e){var t="function"===typeof e?e:zn(e);return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"===typeof e?e:zn(e),r=null==t?Ir:"function"===typeof t?t:Fn(t);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(Ar)},clone:function(e){return this.select(e?Lr:Rr)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,o,a=zr(e+""),i=a.length;if(!(arguments.length<2)){for(u=t?Fr:$r,r=0;r<i;++r)this.each(u(a[r],t,n));return this}var u=this.node().__on;if(u)for(var s,c=0,l=u.length;c<l;++c)for(r=0,s=u[c];r<i;++r)if((o=a[r]).type===s.type&&o.name===s.name)return s.value},dispatch:function(e,t){return this.each(("function"===typeof t?Vr:Br)(e,t))}},Symbol.iterator,Hr);var Wr={capture:!0,passive:!1};function Qr(e){e.preventDefault(),e.stopImmediatePropagation()}function Zr(e){var t=e.document.documentElement,n=Xr(e).on("dragstart.drag",Qr,Wr);"onselectstart"in t?n.on("selectstart.drag",Qr,Wr):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function Jr(e,t){var n=e.document.documentElement,r=Xr(e).on("dragstart.drag",null);t&&(r.on("click.drag",Qr,Wr),setTimeout((function(){r.on("click.drag",null)}),0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function eo(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function to(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function no(){}var ro=.7,oo=1/ro,ao="\\s*([+-]?\\d+)\\s*",io="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",uo="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",so=/^#([0-9a-f]{3,8})$/,co=new RegExp("^rgb\\("+[ao,ao,ao]+"\\)$"),lo=new RegExp("^rgb\\("+[uo,uo,uo]+"\\)$"),fo=new RegExp("^rgba\\("+[ao,ao,ao,io]+"\\)$"),po=new RegExp("^rgba\\("+[uo,uo,uo,io]+"\\)$"),ho=new RegExp("^hsl\\("+[io,uo,uo]+"\\)$"),vo=new RegExp("^hsla\\("+[io,uo,uo,io]+"\\)$"),mo={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function yo(){return this.rgb().formatHex()}function go(){return this.rgb().formatRgb()}function bo(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=so.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?wo(t):3===n?new ko(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?_o(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?_o(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=co.exec(e))?new ko(t[1],t[2],t[3],1):(t=lo.exec(e))?new ko(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=fo.exec(e))?_o(t[1],t[2],t[3],t[4]):(t=po.exec(e))?_o(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=ho.exec(e))?Co(t[1],t[2]/100,t[3]/100,1):(t=vo.exec(e))?Co(t[1],t[2]/100,t[3]/100,t[4]):mo.hasOwnProperty(e)?wo(mo[e]):"transparent"===e?new ko(NaN,NaN,NaN,0):null}function wo(e){return new ko(e>>16&255,e>>8&255,255&e,1)}function _o(e,t,n,r){return r<=0&&(e=t=n=NaN),new ko(e,t,n,r)}function xo(e){return e instanceof no||(e=bo(e)),e?new ko((e=e.rgb()).r,e.g,e.b,e.opacity):new ko}function Eo(e,t,n,r){return 1===arguments.length?xo(e):new ko(e,t,n,null==r?1:r)}function ko(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function So(){return"#"+Po(this.r)+Po(this.g)+Po(this.b)}function Oo(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function Po(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Co(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new jo(e,t,n,r)}function No(e){if(e instanceof jo)return new jo(e.h,e.s,e.l,e.opacity);if(e instanceof no||(e=bo(e)),!e)return new jo;if(e instanceof jo)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),a=Math.max(t,n,r),i=NaN,u=a-o,s=(a+o)/2;return u?(i=t===a?(n-r)/u+6*(n<r):n===a?(r-t)/u+2:(t-n)/u+4,u/=s<.5?a+o:2-a-o,i*=60):u=s>0&&s<1?0:i,new jo(i,u,s,e.opacity)}function jo(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Mo(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}eo(no,bo,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:yo,formatHex:yo,formatHsl:function(){return No(this).formatHsl()},formatRgb:go,toString:go}),eo(ko,Eo,to(no,{brighter:function(e){return e=null==e?oo:Math.pow(oo,e),new ko(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?ro:Math.pow(ro,e),new ko(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:So,formatHex:So,formatRgb:Oo,toString:Oo})),eo(jo,(function(e,t,n,r){return 1===arguments.length?No(e):new jo(e,t,n,null==r?1:r)}),to(no,{brighter:function(e){return e=null==e?oo:Math.pow(oo,e),new jo(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?ro:Math.pow(ro,e),new jo(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new ko(Mo(e>=240?e-240:e+120,o,r),Mo(e,o,r),Mo(e<120?e+240:e-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var To=function(e){return function(){return e}};function Do(e){return 1===(e=+e)?Io:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):To(isNaN(t)?n:t)}}function Io(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):To(isNaN(e)?t:e)}var Ao=function e(t){var n=Do(t);function r(e,t){var r=n((e=Eo(e)).r,(t=Eo(t)).r),o=n(e.g,t.g),a=n(e.b,t.b),i=Io(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=a(t),e.opacity=i(t),e+""}}return r.gamma=e,r}(1);function Ro(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var Lo=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,zo=new RegExp(Lo.source,"g");function $o(e,t){var n,r,o,a=Lo.lastIndex=zo.lastIndex=0,i=-1,u=[],s=[];for(e+="",t+="";(n=Lo.exec(e))&&(r=zo.exec(t));)(o=r.index)>a&&(o=t.slice(a,o),u[i]?u[i]+=o:u[++i]=o),(n=n[0])===(r=r[0])?u[i]?u[i]+=r:u[++i]=r:(u[++i]=null,s.push({i:i,x:Ro(n,r)})),a=zo.lastIndex;return a<t.length&&(o=t.slice(a),u[i]?u[i]+=o:u[++i]=o),u.length<2?s[0]?function(e){return function(t){return e(t)+""}}(s[0].x):function(e){return function(){return e}}(t):(t=s.length,function(e){for(var n,r=0;r<t;++r)u[(n=s[r]).i]=n.x(e);return u.join("")})}var Fo,Uo=180/Math.PI,Bo={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Vo(e,t,n,r,o,a){var i,u,s;return(i=Math.sqrt(e*e+t*t))&&(e/=i,t/=i),(s=e*n+t*r)&&(n-=e*s,r-=t*s),(u=Math.sqrt(n*n+r*r))&&(n/=u,r/=u,s/=u),e*r<t*n&&(e=-e,t=-t,s=-s,i=-i),{translateX:o,translateY:a,rotate:Math.atan2(t,e)*Uo,skewX:Math.atan(s)*Uo,scaleX:i,scaleY:u}}function Ho(e,t,n,r){function o(e){return e.length?e.pop()+" ":""}return function(a,i){var u=[],s=[];return a=e(a),i=e(i),function(e,r,o,a,i,u){if(e!==o||r!==a){var s=i.push("translate(",null,t,null,n);u.push({i:s-4,x:Ro(e,o)},{i:s-2,x:Ro(r,a)})}else(o||a)&&i.push("translate("+o+t+a+n)}(a.translateX,a.translateY,i.translateX,i.translateY,u,s),function(e,t,n,a){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(o(n)+"rotate(",null,r)-2,x:Ro(e,t)})):t&&n.push(o(n)+"rotate("+t+r)}(a.rotate,i.rotate,u,s),function(e,t,n,a){e!==t?a.push({i:n.push(o(n)+"skewX(",null,r)-2,x:Ro(e,t)}):t&&n.push(o(n)+"skewX("+t+r)}(a.skewX,i.skewX,u,s),function(e,t,n,r,a,i){if(e!==n||t!==r){var u=a.push(o(a)+"scale(",null,",",null,")");i.push({i:u-4,x:Ro(e,n)},{i:u-2,x:Ro(t,r)})}else 1===n&&1===r||a.push(o(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,i.scaleX,i.scaleY,u,s),a=i=null,function(e){for(var t,n=-1,r=s.length;++n<r;)u[(t=s[n]).i]=t.x(e);return u.join("")}}}var qo=Ho((function(e){var t=new("function"===typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Bo:Vo(t.a,t.b,t.c,t.d,t.e,t.f)}),"px, ","px)","deg)"),Yo=Ho((function(e){return null==e?Bo:(Fo||(Fo=document.createElementNS("http://www.w3.org/2000/svg","g")),Fo.setAttribute("transform",e),(e=Fo.transform.baseVal.consolidate())?Vo((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):Bo)}),", ",")",")");function Go(e){return((e=Math.exp(e))+1/e)/2}var Xo,Ko,Wo=function e(t,n,r){function o(e,o){var a,i,u=e[0],s=e[1],c=e[2],l=o[0],f=o[1],d=o[2],p=l-u,h=f-s,v=p*p+h*h;if(v<1e-12)i=Math.log(d/c)/t,a=function(e){return[u+e*p,s+e*h,c*Math.exp(t*e*i)]};else{var m=Math.sqrt(v),y=(d*d-c*c+r*v)/(2*c*n*m),g=(d*d-c*c-r*v)/(2*d*n*m),b=Math.log(Math.sqrt(y*y+1)-y),w=Math.log(Math.sqrt(g*g+1)-g);i=(w-b)/t,a=function(e){var r=e*i,o=Go(b),a=c/(n*m)*(o*function(e){return((e=Math.exp(2*e))-1)/(e+1)}(t*r+b)-function(e){return((e=Math.exp(e))-1/e)/2}(b));return[u+a*p,s+a*h,c*o/Go(t*r+b)]}}return a.duration=1e3*i*t/Math.SQRT2,a}return o.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},o}(Math.SQRT2,2,4),Qo=0,Zo=0,Jo=0,ea=0,ta=0,na=0,ra="object"===typeof performance&&performance.now?performance:Date,oa="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function aa(){return ta||(oa(ia),ta=ra.now()+na)}function ia(){ta=0}function ua(){this._call=this._time=this._next=null}function sa(e,t,n){var r=new ua;return r.restart(e,t,n),r}function ca(){ta=(ea=ra.now())+na,Qo=Zo=0;try{!function(){aa(),++Qo;for(var e,t=Xo;t;)(e=ta-t._time)>=0&&t._call.call(void 0,e),t=t._next;--Qo}()}finally{Qo=0,function(){var e,t,n=Xo,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:Xo=t);Ko=e,fa(r)}(),ta=0}}function la(){var e=ra.now(),t=e-ea;t>1e3&&(na-=t,ea=e)}function fa(e){Qo||(Zo&&(Zo=clearTimeout(Zo)),e-ta>24?(e<1/0&&(Zo=setTimeout(ca,e-ra.now()-na)),Jo&&(Jo=clearInterval(Jo))):(Jo||(ea=ra.now(),Jo=setInterval(la,1e3)),Qo=1,oa(ca)))}function da(e,t,n){var r=new ua;return t=null==t?0:+t,r.restart((function(n){r.stop(),e(n+t)}),t,n),r}ua.prototype=sa.prototype={constructor:ua,restart:function(e,t,n){if("function"!==typeof e)throw new TypeError("callback is not a function");n=(null==n?aa():+n)+(null==t?0:+t),this._next||Ko===this||(Ko?Ko._next=this:Xo=this,Ko=this),this._call=e,this._time=n,fa()},stop:function(){this._call&&(this._call=null,this._time=1/0,fa())}};var pa=Cn("start","end","cancel","interrupt"),ha=[];function va(e,t,n,r,o,a){var i=e.__transition;if(i){if(n in i)return}else e.__transition={};!function(e,t,n){var r,o=e.__transition;function a(e){n.state=1,n.timer.restart(i,n.delay,n.time),n.delay<=e&&i(e-n.delay)}function i(a){var c,l,f,d;if(1!==n.state)return s();for(c in o)if((d=o[c]).name===n.name){if(3===d.state)return da(i);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",e,e.__data__,d.index,d.group),delete o[c]):+c<t&&(d.state=6,d.timer.stop(),d.on.call("cancel",e,e.__data__,d.index,d.group),delete o[c])}if(da((function(){3===n.state&&(n.state=4,n.timer.restart(u,n.delay,n.time),u(a))})),n.state=2,n.on.call("start",e,e.__data__,n.index,n.group),2===n.state){for(n.state=3,r=new Array(f=n.tween.length),c=0,l=-1;c<f;++c)(d=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(r[++l]=d);r.length=l+1}}function u(t){for(var o=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(s),n.state=5,1),a=-1,i=r.length;++a<i;)r[a].call(e,o);5===n.state&&(n.on.call("end",e,e.__data__,n.index,n.group),s())}function s(){for(var r in n.state=6,n.timer.stop(),delete o[t],o)return;delete e.__transition}o[t]=n,n.timer=sa(a,0,n.time)}(e,n,{name:t,index:r,group:o,on:pa,tween:ha,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function ma(e,t){var n=ga(e,t);if(n.state>0)throw new Error("too late; already scheduled");return n}function ya(e,t){var n=ga(e,t);if(n.state>3)throw new Error("too late; already running");return n}function ga(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function ba(e,t){var n,r,o,a=e.__transition,i=!0;if(a){for(o in t=null==t?null:t+"",a)(n=a[o]).name===t?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete a[o]):i=!1;i&&delete e.__transition}}function wa(e,t){var n,r;return function(){var o=ya(this,e),a=o.tween;if(a!==n)for(var i=0,u=(r=n=a).length;i<u;++i)if(r[i].name===t){(r=r.slice()).splice(i,1);break}o.tween=r}}function _a(e,t,n){var r,o;if("function"!==typeof n)throw new Error;return function(){var a=ya(this,e),i=a.tween;if(i!==r){o=(r=i).slice();for(var u={name:t,value:n},s=0,c=o.length;s<c;++s)if(o[s].name===t){o[s]=u;break}s===c&&o.push(u)}a.tween=o}}function xa(e,t,n){var r=e._id;return e.each((function(){var e=ya(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)})),function(e){return ga(e,r).value[t]}}function Ea(e,t){var n;return("number"===typeof t?Ro:t instanceof bo?Ao:(n=bo(t))?(t=n,Ao):$o)(e,t)}function ka(e){return function(){this.removeAttribute(e)}}function Sa(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Oa(e,t,n){var r,o,a=n+"";return function(){var i=this.getAttribute(e);return i===a?null:i===r?o:o=t(r=i,n)}}function Pa(e,t,n){var r,o,a=n+"";return function(){var i=this.getAttributeNS(e.space,e.local);return i===a?null:i===r?o:o=t(r=i,n)}}function Ca(e,t,n){var r,o,a;return function(){var i,u,s=n(this);if(null!=s)return(i=this.getAttribute(e))===(u=s+"")?null:i===r&&u===o?a:(o=u,a=t(r=i,s));this.removeAttribute(e)}}function Na(e,t,n){var r,o,a;return function(){var i,u,s=n(this);if(null!=s)return(i=this.getAttributeNS(e.space,e.local))===(u=s+"")?null:i===r&&u===o?a:(o=u,a=t(r=i,s));this.removeAttributeNS(e.space,e.local)}}function ja(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Ma(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function Ta(e,t){var n,r;function o(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&Ma(e,o)),n}return o._value=t,o}function Da(e,t){var n,r;function o(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&ja(e,o)),n}return o._value=t,o}function Ia(e,t){return function(){ma(this,e).delay=+t.apply(this,arguments)}}function Aa(e,t){return t=+t,function(){ma(this,e).delay=t}}function Ra(e,t){return function(){ya(this,e).duration=+t.apply(this,arguments)}}function La(e,t){return t=+t,function(){ya(this,e).duration=t}}function za(e,t){if("function"!==typeof t)throw new Error;return function(){ya(this,e).ease=t}}function $a(e,t,n){var r,o,a=function(e){return(e+"").trim().split(/^|\s+/).every((function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?ma:ya;return function(){var i=a(this,e),u=i.on;u!==r&&(o=(r=u).copy()).on(t,n),i.on=o}}var Fa=Gr.prototype.constructor;function Ua(e){return function(){this.style.removeProperty(e)}}function Ba(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function Va(e,t,n){var r,o;function a(){var a=t.apply(this,arguments);return a!==o&&(r=(o=a)&&Ba(e,a,n)),r}return a._value=t,a}function Ha(e){return function(t){this.textContent=e.call(this,t)}}function qa(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&Ha(r)),t}return r._value=e,r}var Ya=0;function Ga(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Xa(){return++Ya}var Ka=Gr.prototype;Ga.prototype=s({constructor:Ga,select:function(e){var t=this._name,n=this._id;"function"!==typeof e&&(e=Fn(e));for(var r=this._groups,o=r.length,a=new Array(o),i=0;i<o;++i)for(var u,s,c=r[i],l=c.length,f=a[i]=new Array(l),d=0;d<l;++d)(u=c[d])&&(s=e.call(u,u.__data__,d,c))&&("__data__"in u&&(s.__data__=u.__data__),f[d]=s,va(f[d],t,n,d,f,ga(u,n)));return new Ga(a,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id;"function"!==typeof e&&(e=Vn(e));for(var r=this._groups,o=r.length,a=[],i=[],u=0;u<o;++u)for(var s,c=r[u],l=c.length,f=0;f<l;++f)if(s=c[f]){for(var d,p=e.call(s,s.__data__,f,c),h=ga(s,n),v=0,m=p.length;v<m;++v)(d=p[v])&&va(d,t,n,v,p,h);a.push(p),i.push(s)}return new Ga(a,i,t,n)},selectChild:Ka.selectChild,selectChildren:Ka.selectChildren,filter:function(e){"function"!==typeof e&&(e=Hn(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var a,i=t[o],u=i.length,s=r[o]=[],c=0;c<u;++c)(a=i[c])&&e.call(a,a.__data__,c,i)&&s.push(a);return new Ga(r,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,o=n.length,a=Math.min(r,o),i=new Array(r),u=0;u<a;++u)for(var s,c=t[u],l=n[u],f=c.length,d=i[u]=new Array(f),p=0;p<f;++p)(s=c[p]||l[p])&&(d[p]=s);for(;u<r;++u)i[u]=t[u];return new Ga(i,this._parents,this._name,this._id)},selection:function(){return new Fa(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=Xa(),r=this._groups,o=r.length,a=0;a<o;++a)for(var i,u=r[a],s=u.length,c=0;c<s;++c)if(i=u[c]){var l=ga(i,t);va(i,e,n,c,u,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new Ga(r,this._parents,e,n)},call:Ka.call,nodes:Ka.nodes,node:Ka.node,size:Ka.size,empty:Ka.empty,each:Ka.each,on:function(e,t){var n=this._id;return arguments.length<2?ga(this.node(),n).on.on(e):this.each($a(n,e,t))},attr:function(e,t){var n=An(e),r="transform"===n?Yo:Ea;return this.attrTween(e,"function"===typeof t?(n.local?Na:Ca)(n,r,xa(this,"attr."+e,t)):null==t?(n.local?Sa:ka)(n):(n.local?Pa:Oa)(n,r,t))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!==typeof t)throw new Error;var r=An(e);return this.tween(n,(r.local?Ta:Da)(r,t))},style:function(e,t,n){var r="transform"===(e+="")?qo:Ea;return null==t?this.styleTween(e,function(e,t){var n,r,o;return function(){var a=hr(this,e),i=(this.style.removeProperty(e),hr(this,e));return a===i?null:a===n&&i===r?o:o=t(n=a,r=i)}}(e,r)).on("end.style."+e,Ua(e)):"function"===typeof t?this.styleTween(e,function(e,t,n){var r,o,a;return function(){var i=hr(this,e),u=n(this),s=u+"";return null==u&&(this.style.removeProperty(e),s=u=hr(this,e)),i===s?null:i===r&&s===o?a:(o=s,a=t(r=i,u))}}(e,r,xa(this,"style."+e,t))).each(function(e,t){var n,r,o,a,i="style."+t,u="end."+i;return function(){var s=ya(this,e),c=s.on,l=null==s.value[i]?a||(a=Ua(t)):void 0;c===n&&o===l||(r=(n=c).copy()).on(u,o=l),s.on=r}}(this._id,e)):this.styleTween(e,function(e,t,n){var r,o,a=n+"";return function(){var i=hr(this,e);return i===a?null:i===r?o:o=t(r=i,n)}}(e,r,t),n).on("end.style."+e,null)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!==typeof t)throw new Error;return this.tween(r,Va(e,t,null==n?"":n))},text:function(e){return this.tween("text","function"===typeof e?function(e){return function(){var t=e(this);this.textContent=null==t?"":t}}(xa(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!==typeof e)throw new Error;return this.tween(t,qa(e))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,o=ga(this.node(),n).tween,a=0,i=o.length;a<i;++a)if((r=o[a]).name===e)return r.value;return null}return this.each((null==t?wa:_a)(n,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"===typeof e?Ia:Aa)(t,e)):ga(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"===typeof e?Ra:La)(t,e)):ga(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(za(t,e)):ga(this.node(),t).ease},easeVarying:function(e){if("function"!==typeof e)throw new Error;return this.each(function(e,t){return function(){var n=t.apply(this,arguments);if("function"!==typeof n)throw new Error;ya(this,e).ease=n}}(this._id,e))},end:function(){var e,t,n=this,r=n._id,o=n.size();return new Promise((function(a,i){var u={value:i},s={value:function(){0===--o&&a()}};n.each((function(){var n=ya(this,r),o=n.on;o!==e&&((t=(e=o).copy())._.cancel.push(u),t._.interrupt.push(u),t._.end.push(s)),n.on=t})),0===o&&a()}))}},Symbol.iterator,Ka[Symbol.iterator]);var Wa={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}};function Qa(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error("transition ".concat(t," not found"));return n}Gr.prototype.interrupt=function(e){return this.each((function(){ba(this,e)}))},Gr.prototype.transition=function(e){var t,n;e instanceof Ga?(t=e._id,e=e._name):(t=Xa(),(n=Wa).time=aa(),e=null==e?null:e+"");for(var r=this._groups,o=r.length,a=0;a<o;++a)for(var i,u=r[a],s=u.length,c=0;c<s;++c)(i=u[c])&&va(i,e,t,c,u,n||Qa(i,t));return new Ga(r,this._parents,e,t)};var Za=function(e){return function(){return e}};function Ja(e,t){var n=t.sourceEvent,r=t.target,o=t.transform,a=t.dispatch;Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:a}})}function ei(e,t,n){this.k=e,this.x=t,this.y=n}ei.prototype={constructor:ei,scale:function(e){return 1===e?this:new ei(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new ei(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var ti=new ei(1,0,0);function ni(e){e.stopImmediatePropagation()}function ri(e){e.preventDefault(),e.stopImmediatePropagation()}function oi(e){return(!e.ctrlKey||"wheel"===e.type)&&!e.button}function ai(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e).hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]:[[0,0],[e.clientWidth,e.clientHeight]]}function ii(){return this.__zoom||ti}function ui(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function si(){return navigator.maxTouchPoints||"ontouchstart"in this}function ci(e,t,n){var r=e.invertX(t[0][0])-n[0][0],o=e.invertX(t[1][0])-n[1][0],a=e.invertY(t[0][1])-n[0][1],i=e.invertY(t[1][1])-n[1][1];return e.translate(o>r?(r+o)/2:Math.min(0,r)||Math.max(0,o),i>a?(a+i)/2:Math.min(0,a)||Math.max(0,i))}var li,fi,di,pi,hi,vi;!function(e){e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom"}(li||(li={})),function(e){e.Arrow="arrow",e.ArrowClosed="arrowclosed"}(fi||(fi={})),function(e){e.Lines="lines",e.Dots="dots"}(di||(di={})),function(e){e.Strict="strict",e.Loose="loose"}(pi||(pi={})),function(e){e.Bezier="default",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep"}(hi||(hi={})),function(e){e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal"}(vi||(vi={}));var mi=function(e){return{x:e.x,y:e.y,zoom:e.k}},yi=function(e){return e.target.closest(".nowheel")},gi=function(t){var n=t.onMove,r=t.onMoveStart,o=t.onMoveEnd,a=t.zoomOnScroll,i=void 0===a||a,u=t.zoomOnPinch,s=void 0===u||u,c=t.panOnScroll,l=void 0!==c&&c,f=t.panOnScrollSpeed,d=void 0===f?.5:f,p=t.panOnScrollMode,h=void 0===p?vi.Free:p,v=t.zoomOnDoubleClick,m=void 0===v||v,y=t.selectionKeyPressed,g=t.elementsSelectable,b=t.paneMoveable,w=void 0===b||b,_=t.defaultPosition,x=void 0===_?[0,0]:_,E=t.defaultZoom,k=void 0===E?1:E,S=t.translateExtent,O=t.zoomActivationKeyCode,P=t.preventScrolling,C=void 0===P||P,N=t.children,j=(0,e.useRef)(null),M=(0,e.useRef)({x:0,y:0,zoom:0}),T=Zt(),D=Qt((function(e){return e.d3Zoom})),I=Qt((function(e){return e.d3Selection})),A=Qt((function(e){return e.d3ZoomHandler})),R=Wt((function(e){return e.initD3Zoom})),L=Wt((function(e){return e.updateTransform})),z=sn(O);return function(t){var n=Wt((function(e){return e.updateSize}));(0,e.useEffect)((function(){var e,r=function(){if(t.current){var e=on(t.current);0!==e.height&&0!==e.width||console.warn("The React Flow parent container needs a width and a height to render the graph."),n(e)}};return r(),window.onresize=r,t.current&&(e=new ResizeObserver((function(){return r()}))).observe(t.current),function(){window.onresize=null,e&&t.current&&e.unobserve(t.current)}}),[])}(j),(0,e.useEffect)((function(){if(j.current){var e=T.getState(),t="undefined"!==typeof S?S:e.translateExtent,n=function(){var e,t,n,r=oi,o=ai,a=ci,i=ui,u=si,s=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],l=250,f=Wo,d=Cn("start","zoom","end"),p=500,h=0,v=10;function m(e){e.property("__zoom",ii).on("wheel.zoom",E,{passive:!1}).on("mousedown.zoom",k).on("dblclick.zoom",S).filter(u).on("touchstart.zoom",O).on("touchmove.zoom",P).on("touchend.zoom touchcancel.zoom",C).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function y(e,t){return(t=Math.max(s[0],Math.min(s[1],t)))===e.k?e:new ei(t,e.x,e.y)}function g(e,t,n){var r=t[0]-n[0]*e.k,o=t[1]-n[1]*e.k;return r===e.x&&o===e.y?e:new ei(e.k,r,o)}function b(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function w(e,t,n,r){e.on("start.zoom",(function(){_(this,arguments).event(r).start()})).on("interrupt.zoom end.zoom",(function(){_(this,arguments).event(r).end()})).tween("zoom",(function(){var e=this,a=arguments,i=_(e,a).event(r),u=o.apply(e,a),s=null==n?b(u):"function"===typeof n?n.apply(e,a):n,c=Math.max(u[1][0]-u[0][0],u[1][1]-u[0][1]),l=e.__zoom,d="function"===typeof t?t.apply(e,a):t,p=f(l.invert(s).concat(c/l.k),d.invert(s).concat(c/d.k));return function(e){if(1===e)e=d;else{var t=p(e),n=c/t[2];e=new ei(n,s[0]-t[0]*n,s[1]-t[1]*n)}i.zoom(null,e)}}))}function _(e,t,n){return!n&&e.__zooming||new x(e,t)}function x(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=o.apply(e,t),this.taps=0}function E(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];if(r.apply(this,arguments)){var u=_(this,n).event(e),l=this.__zoom,f=Math.max(s[0],Math.min(s[1],l.k*Math.pow(2,i.apply(this,arguments)))),d=Kr(e);if(u.wheel)u.mouse[0][0]===d[0]&&u.mouse[0][1]===d[1]||(u.mouse[1]=l.invert(u.mouse[0]=d)),clearTimeout(u.wheel);else{if(l.k===f)return;u.mouse=[d,l.invert(d)],ba(this),u.start()}ri(e),u.wheel=setTimeout(p,150),u.zoom("mouse",a(g(y(l,f),u.mouse[0],u.mouse[1]),u.extent,c))}function p(){u.wheel=null,u.end()}}function k(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];if(!n&&r.apply(this,arguments)){var u=e.currentTarget,s=_(this,o,!0).event(e),l=Xr(e.view).on("mousemove.zoom",v,!0).on("mouseup.zoom",m,!0),f=Kr(e,u),d=e.clientX,p=e.clientY;Zr(e.view),ni(e),s.mouse=[f,this.__zoom.invert(f)],ba(this),s.start()}function v(e){if(ri(e),!s.moved){var t=e.clientX-d,n=e.clientY-p;s.moved=t*t+n*n>h}s.event(e).zoom("mouse",a(g(s.that.__zoom,s.mouse[0]=Kr(e,u),s.mouse[1]),s.extent,c))}function m(e){l.on("mousemove.zoom mouseup.zoom",null),Jr(e.view,s.moved),ri(e),s.event(e).end()}}function S(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];if(r.apply(this,arguments)){var u=this.__zoom,s=Kr(e.changedTouches?e.changedTouches[0]:e,this),f=u.invert(s),d=u.k*(e.shiftKey?.5:2),p=a(g(y(u,d),s,f),o.apply(this,n),c);ri(e),l>0?Xr(this).transition().duration(l).call(w,p,s,e):Xr(this).call(m.transform,p,s,e)}}function O(n){for(var o=arguments.length,a=new Array(o>1?o-1:0),i=1;i<o;i++)a[i-1]=arguments[i];if(r.apply(this,arguments)){var u,s,c,l,f=n.touches,d=f.length,h=_(this,a,n.changedTouches.length===d).event(n);for(ni(n),s=0;s<d;++s)l=[l=Kr(c=f[s],this),this.__zoom.invert(l),c.identifier],h.touch0?h.touch1||h.touch0[2]===l[2]||(h.touch1=l,h.taps=0):(h.touch0=l,u=!0,h.taps=1+!!e);e&&(e=clearTimeout(e)),u&&(h.taps<2&&(t=l[0],e=setTimeout((function(){e=null}),p)),ba(this),h.start())}}function P(e){if(this.__zooming){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o,i,u,s,l=_(this,n).event(e),f=e.changedTouches,d=f.length;for(ri(e),o=0;o<d;++o)u=Kr(i=f[o],this),l.touch0&&l.touch0[2]===i.identifier?l.touch0[0]=u:l.touch1&&l.touch1[2]===i.identifier&&(l.touch1[0]=u);if(i=l.that.__zoom,l.touch1){var p=l.touch0[0],h=l.touch0[1],v=l.touch1[0],m=l.touch1[1],b=(b=v[0]-p[0])*b+(b=v[1]-p[1])*b,w=(w=m[0]-h[0])*w+(w=m[1]-h[1])*w;i=y(i,Math.sqrt(b/w)),u=[(p[0]+v[0])/2,(p[1]+v[1])/2],s=[(h[0]+m[0])/2,(h[1]+m[1])/2]}else{if(!l.touch0)return;u=l.touch0[0],s=l.touch0[1]}l.zoom("touch",a(g(i,u,s),l.extent,c))}}function C(e){for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];if(this.__zooming){var i,u,s=_(this,o).event(e),c=e.changedTouches,l=c.length;for(ni(e),n&&clearTimeout(n),n=setTimeout((function(){n=null}),p),i=0;i<l;++i)u=c[i],s.touch0&&s.touch0[2]===u.identifier?delete s.touch0:s.touch1&&s.touch1[2]===u.identifier&&delete s.touch1;if(s.touch1&&!s.touch0&&(s.touch0=s.touch1,delete s.touch1),s.touch0)s.touch0[1]=this.__zoom.invert(s.touch0[0]);else if(s.end(),2===s.taps&&(u=Kr(u,this),Math.hypot(t[0]-u[0],t[1]-u[1])<v)){var f=Xr(this).on("dblclick.zoom");f&&f.apply(this,arguments)}}}return m.transform=function(e,t,n,r){var o=e.selection?e.selection():e;o.property("__zoom",ii),e!==o?w(e,t,n,r):o.interrupt().each((function(){_(this,arguments).event(r).start().zoom(null,"function"===typeof t?t.apply(this,arguments):t).end()}))},m.scaleBy=function(e,t,n,r){m.scaleTo(e,(function(){return this.__zoom.k*("function"===typeof t?t.apply(this,arguments):t)}),n,r)},m.scaleTo=function(e,t,n,r){m.transform(e,(function(){var e=o.apply(this,arguments),r=this.__zoom,i=null==n?b(e):"function"===typeof n?n.apply(this,arguments):n,u=r.invert(i),s="function"===typeof t?t.apply(this,arguments):t;return a(g(y(r,s),i,u),e,c)}),n,r)},m.translateBy=function(e,t,n,r){m.transform(e,(function(){return a(this.__zoom.translate("function"===typeof t?t.apply(this,arguments):t,"function"===typeof n?n.apply(this,arguments):n),o.apply(this,arguments),c)}),null,r)},m.translateTo=function(e,t,n,r,i){m.transform(e,(function(){var e=o.apply(this,arguments),i=this.__zoom,u=null==r?b(e):"function"===typeof r?r.apply(this,arguments):r;return a(ti.translate(u[0],u[1]).scale(i.k).translate("function"===typeof t?-t.apply(this,arguments):-t,"function"===typeof n?-n.apply(this,arguments):-n),e,c)}),r,i)},x.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return 1===++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(e,t){return this.mouse&&"mouse"!==e&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&"touch"!==e&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&"touch"!==e&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit("zoom"),this},end:function(){return 0===--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(e){var t=Xr(this.that).datum();d.call(e,this.that,new Ja(e,{sourceEvent:this.sourceEvent,target:m,type:e,transform:this.that.__zoom,dispatch:d}),t)}},m.wheelDelta=function(e){return arguments.length?(i="function"===typeof e?e:Za(+e),m):i},m.filter=function(e){return arguments.length?(r="function"===typeof e?e:Za(!!e),m):r},m.touchable=function(e){return arguments.length?(u="function"===typeof e?e:Za(!!e),m):u},m.extent=function(e){return arguments.length?(o="function"===typeof e?e:Za([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),m):o},m.scaleExtent=function(e){return arguments.length?(s[0]=+e[0],s[1]=+e[1],m):[s[0],s[1]]},m.translateExtent=function(e){return arguments.length?(c[0][0]=+e[0][0],c[1][0]=+e[1][0],c[0][1]=+e[0][1],c[1][1]=+e[1][1],m):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},m.constrain=function(e){return arguments.length?(a=e,m):a},m.duration=function(e){return arguments.length?(l=+e,m):l},m.interpolate=function(e){return arguments.length?(f=e,m):f},m.on=function(){var e=d.on.apply(d,arguments);return e===d?m:e},m.clickDistance=function(e){return arguments.length?(h=(e=+e)*e,m):Math.sqrt(h)},m.tapDistance=function(e){return arguments.length?(v=+e,m):v},m}().scaleExtent([e.minZoom,e.maxZoom]).translateExtent(t),r=Xr(j.current).call(n),o=an(x[0],t[0][0],t[1][0]),a=an(x[1],t[0][1],t[1][1]),i=an(k,e.minZoom,e.maxZoom),u=ti.translate(o,a).scale(i);n.transform(r,u),R({d3Zoom:n,d3Selection:r,d3ZoomHandler:r.on("wheel.zoom"),transform:[o,a,i]})}}),[]),(0,e.useEffect)((function(){I&&D&&(l&&!z?I.on("wheel",(function(e){if(yi(e))return!1;e.preventDefault(),e.stopImmediatePropagation();var t=I.property("__zoom").k||1;if(e.ctrlKey&&s){var n=Kr(e),r=-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*10,o=t*Math.pow(2,r);D.scaleTo(I,o,n)}else{var a=1===e.deltaMode?20:1,i=h===vi.Vertical?0:e.deltaX*a,u=h===vi.Horizontal?0:e.deltaY*a;D.translateBy(I,-i/t*d,-u/t*d)}})).on("wheel.zoom",null):"undefined"!==typeof A&&I.on("wheel",(function(e){if(!C||yi(e))return null;e.preventDefault()})).on("wheel.zoom",A))}),[l,h,I,D,A,z,s,C]),(0,e.useEffect)((function(){D&&(y?D.on("zoom",null):D.on("zoom",(function(e){if(L([e.transform.x,e.transform.y,e.transform.k]),n){var t=mi(e.transform);n(t)}})))}),[y,D,L,n]),(0,e.useEffect)((function(){D&&(r?D.on("start",(function(e){var t=mi(e.transform);M.current=t,r(t)})):D.on("start",null))}),[D,r]),(0,e.useEffect)((function(){D&&(o?D.on("end",(function(e){if(function(e,t){return e.x!==t.x||e.y!==t.y||e.zoom!==t.k}(M.current,e.transform)){var t=mi(e.transform);M.current=t,o(t)}})):D.on("end",null))}),[D,o]),(0,e.useEffect)((function(){D&&D.filter((function(e){var t=z||i,n=s&&e.ctrlKey;return!!(w||t||l||m||s)&&(!y&&(!(!m&&"dblclick"===e.type)&&((!yi(e)||"wheel"!==e.type)&&((!e.target.closest(".react-flow__node")&&!e.target.closest(".react-flow__edge")||"wheel"===e.type)&&((!e.target.closest(".react-flow__nodesselection")||"wheel"===e.type)&&(!(!s&&e.ctrlKey&&"wheel"===e.type)&&(!!(t||l||n||"wheel"!==e.type)&&(!!(w||"mousedown"!==e.type&&"touchstart"!==e.type)&&((!e.ctrlKey||"wheel"===e.type)&&!e.button)))))))))}))}),[D,i,s,l,m,w,y,g,z]),e.createElement("div",{className:"react-flow__renderer react-flow__zoompane",ref:j},N)};function bi(e){var t=e.target.closest(".react-flow");if(t){var n=t.getBoundingClientRect();return{x:e.clientX-n.left,y:e.clientY-n.top}}}var wi=function(){var t=Qt((function(e){return e.userSelectionRect}));return t.draw?e.createElement("div",{className:"react-flow__selection",style:{width:t.width,height:t.height,transform:"translate(".concat(t.x,"px, ").concat(t.y,"px)")}}):null},_i=(0,e.memo)((function(t){var n=t.selectionKeyPressed,r=Qt((function(e){return e.selectionActive})),o=Qt((function(e){return e.elementsSelectable})),a=Wt((function(e){return e.setUserSelection})),i=Wt((function(e){return e.updateUserSelection})),u=Wt((function(e){return e.unsetUserSelection})),s=Wt((function(e){return e.unsetNodesSelection}));if(!o||!(r||n))return null;return e.createElement("div",{className:"react-flow__selectionpane",onMouseDown:function(e){var t=bi(e);t&&a(t)},onMouseMove:function(e){if(n&&r){var t=bi(e);t&&i(t)}},onMouseUp:function(){return u()},onMouseLeave:function(){u(),s()}},e.createElement(wi,null))})),xi={exports:{}},Ei={};function ki(e){var t,n,r="";if("string"===typeof e||"number"===typeof e)r+=e;else if("object"===typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=ki(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}var Si=Object.freeze({__proto__:null,default:function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=ki(e))&&(r&&(r+=" "),r+=t);return r}}),Oi=H(Si),Pi={},Ci={};Object.defineProperty(Ci,"__esModule",{value:!0}),Ci.findInArray=function(e,t){for(var n=0,r=e.length;n<r;n++)if(t.apply(t,[e[n],n,e]))return e[n]},Ci.isFunction=function(e){return"function"===typeof e||"[object Function]"===Object.prototype.toString.call(e)},Ci.isNum=function(e){return"number"===typeof e&&!isNaN(e)},Ci.int=function(e){return parseInt(e,10)},Ci.dontSetMe=function(e,t,n){if(e[t])return new Error("Invalid prop ".concat(t," passed to ").concat(n," - do not set this, set it on the child."))};var Ni={};Object.defineProperty(Ni,"__esModule",{value:!0}),Ni.getPrefix=Mi,Ni.browserPrefixToKey=Ti,Ni.browserPrefixToStyle=function(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e},Ni.default=void 0;var ji=["Moz","Webkit","O","ms"];function Mi(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"===typeof window)return"";var r=null===(e=window.document)||void 0===e||null===(t=e.documentElement)||void 0===t?void 0:t.style;if(!r)return"";if(n in r)return"";for(var o=0;o<ji.length;o++)if(Ti(n,ji[o])in r)return ji[o];return""}function Ti(e,t){return t?"".concat(t).concat(function(e){for(var t="",n=!0,r=0;r<e.length;r++)n?(t+=e[r].toUpperCase(),n=!1):"-"===e[r]?n=!0:t+=e[r];return t}(e)):e}var Di=Mi();function Ii(e){return Ii="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ii(e)}Ni.default=Di,Object.defineProperty(Pi,"__esModule",{value:!0}),Pi.matchesSelector=Bi,Pi.matchesSelectorAndParentsTo=function(e,t,n){var r=e;do{if(Bi(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1},Pi.addEvent=function(e,t,n,r){if(!e)return;var o=$i({capture:!0},r);e.addEventListener?e.addEventListener(t,n,o):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n},Pi.removeEvent=function(e,t,n,r){if(!e)return;var o=$i({capture:!0},r);e.removeEventListener?e.removeEventListener(t,n,o):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null},Pi.outerHeight=function(e){var t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,Ai.int)(n.borderTopWidth),t+=(0,Ai.int)(n.borderBottomWidth)},Pi.outerWidth=function(e){var t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,Ai.int)(n.borderLeftWidth),t+=(0,Ai.int)(n.borderRightWidth)},Pi.innerHeight=function(e){var t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,Ai.int)(n.paddingTop),t-=(0,Ai.int)(n.paddingBottom)},Pi.innerWidth=function(e){var t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,Ai.int)(n.paddingLeft),t-=(0,Ai.int)(n.paddingRight)},Pi.offsetXYFromParent=function(e,t,n){var r=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),o=(e.clientX+t.scrollLeft-r.left)/n,a=(e.clientY+t.scrollTop-r.top)/n;return{x:o,y:a}},Pi.createCSSTransform=function(e,t){var n=Vi(e,t,"px");return Fi({},(0,Ri.browserPrefixToKey)("transform",Ri.default),n)},Pi.createSVGTransform=function(e,t){return Vi(e,t,"")},Pi.getTranslation=Vi,Pi.getTouch=function(e,t){return e.targetTouches&&(0,Ai.findInArray)(e.targetTouches,(function(e){return t===e.identifier}))||e.changedTouches&&(0,Ai.findInArray)(e.changedTouches,(function(e){return t===e.identifier}))},Pi.getTouchIdentifier=function(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier},Pi.addUserSelectStyles=function(e){if(!e)return;var t=e.getElementById("react-draggable-style-el");t||((t=e.createElement("style")).type="text/css",t.id="react-draggable-style-el",t.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",t.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",e.getElementsByTagName("head")[0].appendChild(t));e.body&&Hi(e.body,"react-draggable-transparent-selection")},Pi.removeUserSelectStyles=function(e){if(!e)return;try{if(e.body&&qi(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{var t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch(Ae){}},Pi.addClassName=Hi,Pi.removeClassName=qi;var Ai=Ci,Ri=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==Ii(e)&&"function"!==typeof e)return{default:e};var n=Li(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(Ni);function Li(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(Li=function(e){return e?n:t})(e)}function zi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zi(Object(n),!0).forEach((function(t){Fi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ui="";function Bi(e,t){return Ui||(Ui=(0,Ai.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],(function(t){return(0,Ai.isFunction)(e[t])}))),!!(0,Ai.isFunction)(e[Ui])&&e[Ui](t)}function Vi(e,t,n){var r=e.x,o=e.y,a="translate(".concat(r).concat(n,",").concat(o).concat(n,")");if(t){var i="".concat("string"===typeof t.x?t.x:t.x+n),u="".concat("string"===typeof t.y?t.y:t.y+n);a="translate(".concat(i,", ").concat(u,")")+a}return a}function Hi(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(e.className+=" ".concat(t))}function qi(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)"),"g"),"")}var Yi={};Object.defineProperty(Yi,"__esModule",{value:!0}),Yi.getBoundPosition=function(e,t,n){if(!e.props.bounds)return[t,n];var r=e.props.bounds;r="string"===typeof r?r:function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}(r);var o=Ki(e);if("string"===typeof r){var a,i=o.ownerDocument,u=i.defaultView;if(!((a="parent"===r?o.parentNode:i.querySelector(r))instanceof u.HTMLElement))throw new Error('Bounds selector "'+r+'" could not find an element.');var s=a,c=u.getComputedStyle(o),l=u.getComputedStyle(s);r={left:-o.offsetLeft+(0,Gi.int)(l.paddingLeft)+(0,Gi.int)(c.marginLeft),top:-o.offsetTop+(0,Gi.int)(l.paddingTop)+(0,Gi.int)(c.marginTop),right:(0,Xi.innerWidth)(s)-(0,Xi.outerWidth)(o)-o.offsetLeft+(0,Gi.int)(l.paddingRight)-(0,Gi.int)(c.marginRight),bottom:(0,Xi.innerHeight)(s)-(0,Xi.outerHeight)(o)-o.offsetTop+(0,Gi.int)(l.paddingBottom)-(0,Gi.int)(c.marginBottom)}}(0,Gi.isNum)(r.right)&&(t=Math.min(t,r.right));(0,Gi.isNum)(r.bottom)&&(n=Math.min(n,r.bottom));(0,Gi.isNum)(r.left)&&(t=Math.max(t,r.left));(0,Gi.isNum)(r.top)&&(n=Math.max(n,r.top));return[t,n]},Yi.snapToGrid=function(e,t,n){var r=Math.round(t/e[0])*e[0],o=Math.round(n/e[1])*e[1];return[r,o]},Yi.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},Yi.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},Yi.getControlPosition=function(e,t,n){var r="number"===typeof t?(0,Xi.getTouch)(e,t):null;if("number"===typeof t&&!r)return null;var o=Ki(n),a=n.props.offsetParent||o.offsetParent||o.ownerDocument.body;return(0,Xi.offsetXYFromParent)(r||e,a,n.props.scale)},Yi.createCoreData=function(e,t,n){var r=e.state,o=!(0,Gi.isNum)(r.lastX),a=Ki(e);return o?{node:a,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:a,deltaX:t-r.lastX,deltaY:n-r.lastY,lastX:r.lastX,lastY:r.lastY,x:t,y:n}},Yi.createDraggableData=function(e,t){var n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}};var Gi=Ci,Xi=Pi;function Ki(e){var t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}var Wi={},Qi={};function Zi(e){return Zi="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zi(e)}Object.defineProperty(Qi,"__esModule",{value:!0}),Qi.default=function(){},Object.defineProperty(Wi,"__esModule",{value:!0}),Wi.default=void 0;var Ji=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==Zi(e)&&"function"!==typeof e)return{default:e};var n=uu(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(e),eu=iu(q.exports),tu=iu(t),nu=Pi,ru=Yi,ou=Ci,au=iu(Qi);function iu(e){return e&&e.__esModule?e:{default:e}}function uu(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(uu=function(e){return e?n:t})(e)}function su(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,u=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(s){u=!0,o=s}finally{try{i||null==n.return||n.return()}finally{if(u)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return cu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cu(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function cu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function lu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function du(e,t){return du=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},du(e,t)}function pu(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(Ae){return!1}}();return function(){var n,r=mu(e);if(t){var o=mu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return hu(this,n)}}function hu(e,t){if(t&&("object"===Zi(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return vu(e)}function vu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mu(e){return mu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},mu(e)}function yu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gu={start:"touchstart",move:"touchmove",stop:"touchend"},bu={start:"mousedown",move:"mousemove",stop:"mouseup"},wu=bu,_u=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&du(e,t)}(a,e);var t,n,r,o=pu(a);function a(){var e;lu(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return yu(vu(e=o.call.apply(o,[this].concat(n))),"state",{dragging:!1,lastX:NaN,lastY:NaN,touchIdentifier:null}),yu(vu(e),"mounted",!1),yu(vu(e),"handleDragStart",(function(t){if(e.props.onMouseDown(t),!e.props.allowAnyClick&&"number"===typeof t.button&&0!==t.button)return!1;var n=e.findDOMNode();if(!n||!n.ownerDocument||!n.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");var r=n.ownerDocument;if(!(e.props.disabled||!(t.target instanceof r.defaultView.Node)||e.props.handle&&!(0,nu.matchesSelectorAndParentsTo)(t.target,e.props.handle,n)||e.props.cancel&&(0,nu.matchesSelectorAndParentsTo)(t.target,e.props.cancel,n))){"touchstart"===t.type&&t.preventDefault();var o=(0,nu.getTouchIdentifier)(t);e.setState({touchIdentifier:o});var a=(0,ru.getControlPosition)(t,o,vu(e));if(null!=a){var i=a.x,u=a.y,s=(0,ru.createCoreData)(vu(e),i,u);(0,au.default)("DraggableCore: handleDragStart: %j",s),(0,au.default)("calling",e.props.onStart),!1!==e.props.onStart(t,s)&&!1!==e.mounted&&(e.props.enableUserSelectHack&&(0,nu.addUserSelectStyles)(r),e.setState({dragging:!0,lastX:i,lastY:u}),(0,nu.addEvent)(r,wu.move,e.handleDrag),(0,nu.addEvent)(r,wu.stop,e.handleDragStop))}}})),yu(vu(e),"handleDrag",(function(t){var n=(0,ru.getControlPosition)(t,e.state.touchIdentifier,vu(e));if(null!=n){var r=n.x,o=n.y;if(Array.isArray(e.props.grid)){var a=r-e.state.lastX,i=o-e.state.lastY,u=su((0,ru.snapToGrid)(e.props.grid,a,i),2);if(a=u[0],i=u[1],!a&&!i)return;r=e.state.lastX+a,o=e.state.lastY+i}var s=(0,ru.createCoreData)(vu(e),r,o);if((0,au.default)("DraggableCore: handleDrag: %j",s),!1!==e.props.onDrag(t,s)&&!1!==e.mounted)e.setState({lastX:r,lastY:o});else try{e.handleDragStop(new MouseEvent("mouseup"))}catch(l){var c=document.createEvent("MouseEvents");c.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),e.handleDragStop(c)}}})),yu(vu(e),"handleDragStop",(function(t){if(e.state.dragging){var n=(0,ru.getControlPosition)(t,e.state.touchIdentifier,vu(e));if(null!=n){var r=n.x,o=n.y,a=(0,ru.createCoreData)(vu(e),r,o);if(!1===e.props.onStop(t,a)||!1===e.mounted)return!1;var i=e.findDOMNode();i&&e.props.enableUserSelectHack&&(0,nu.removeUserSelectStyles)(i.ownerDocument),(0,au.default)("DraggableCore: handleDragStop: %j",a),e.setState({dragging:!1,lastX:NaN,lastY:NaN}),i&&((0,au.default)("DraggableCore: Removing handlers"),(0,nu.removeEvent)(i.ownerDocument,wu.move,e.handleDrag),(0,nu.removeEvent)(i.ownerDocument,wu.stop,e.handleDragStop))}}})),yu(vu(e),"onMouseDown",(function(t){return wu=bu,e.handleDragStart(t)})),yu(vu(e),"onMouseUp",(function(t){return wu=bu,e.handleDragStop(t)})),yu(vu(e),"onTouchStart",(function(t){return wu=gu,e.handleDragStart(t)})),yu(vu(e),"onTouchEnd",(function(t){return wu=gu,e.handleDragStop(t)})),e}return t=a,(n=[{key:"componentDidMount",value:function(){this.mounted=!0;var e=this.findDOMNode();e&&(0,nu.addEvent)(e,gu.start,this.onTouchStart,{passive:!1})}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var e=this.findDOMNode();if(e){var t=e.ownerDocument;(0,nu.removeEvent)(t,bu.move,this.handleDrag),(0,nu.removeEvent)(t,gu.move,this.handleDrag),(0,nu.removeEvent)(t,bu.stop,this.handleDragStop),(0,nu.removeEvent)(t,gu.stop,this.handleDragStop),(0,nu.removeEvent)(e,gu.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,nu.removeUserSelectStyles)(t)}}},{key:"findDOMNode",value:function(){var e,t,n;return null!==(e=null===(t=this.props)||void 0===t||null===(n=t.nodeRef)||void 0===n?void 0:n.current)&&void 0!==e?e:tu.default.findDOMNode(this)}},{key:"render",value:function(){return Ji.cloneElement(Ji.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}])&&fu(t.prototype,n),r&&fu(t,r),a}(Ji.Component);Wi.default=_u,yu(_u,"displayName","DraggableCore"),yu(_u,"propTypes",{allowAnyClick:eu.default.bool,disabled:eu.default.bool,enableUserSelectHack:eu.default.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:eu.default.arrayOf(eu.default.number),handle:eu.default.string,cancel:eu.default.string,nodeRef:eu.default.object,onStart:eu.default.func,onDrag:eu.default.func,onStop:eu.default.func,onMouseDown:eu.default.func,scale:eu.default.number,className:ou.dontSetMe,style:ou.dontSetMe,transform:ou.dontSetMe}),yu(_u,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),function(n){function r(e){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"DraggableCore",{enumerable:!0,get:function(){return f.default}}),n.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=v(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,n&&n.set(e,o);return o}(e),a=h(q.exports),i=h(t),u=h(Oi),s=Pi,c=Yi,l=Ci,f=h(Wi),d=h(Qi),p=["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"];function h(e){return e&&e.__esModule?e:{default:e}}function v(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(v=function(e){return e?n:t})(e)}function m(){return m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m.apply(this,arguments)}function y(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){C(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,u=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(s){u=!0,o=s}finally{try{i||null==n.return||n.return()}finally{if(u)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return _(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function x(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function E(e,t){return E=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},E(e,t)}function k(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(Ae){return!1}}();return function(){var n,r=P(e);if(t){var o=P(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return S(this,n)}}function S(e,t){if(t&&("object"===r(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return O(e)}function O(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function P(e){return P=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},P(e)}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var N=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&E(e,t)}(l,e);var t,n,r,a=k(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),C(O(t=a.call(this,e)),"onDragStart",(function(e,n){if((0,d.default)("Draggable: onDragStart: %j",n),!1===t.props.onStart(e,(0,c.createDraggableData)(O(t),n)))return!1;t.setState({dragging:!0,dragged:!0})})),C(O(t),"onDrag",(function(e,n){if(!t.state.dragging)return!1;(0,d.default)("Draggable: onDrag: %j",n);var r=(0,c.createDraggableData)(O(t),n),o={x:r.x,y:r.y};if(t.props.bounds){var a=o.x,i=o.y;o.x+=t.state.slackX,o.y+=t.state.slackY;var u=w((0,c.getBoundPosition)(O(t),o.x,o.y),2),s=u[0],l=u[1];o.x=s,o.y=l,o.slackX=t.state.slackX+(a-o.x),o.slackY=t.state.slackY+(i-o.y),r.x=o.x,r.y=o.y,r.deltaX=o.x-t.state.x,r.deltaY=o.y-t.state.y}if(!1===t.props.onDrag(e,r))return!1;t.setState(o)})),C(O(t),"onDragStop",(function(e,n){if(!t.state.dragging)return!1;if(!1===t.props.onStop(e,(0,c.createDraggableData)(O(t),n)))return!1;(0,d.default)("Draggable: onDragStop: %j",n);var r={dragging:!1,slackX:0,slackY:0};if(Boolean(t.props.position)){var o=t.props.position,a=o.x,i=o.y;r.x=a,r.y=i}t.setState(r)})),t.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:b({},e.position),slackX:0,slackY:0,isElementSVG:!1},!e.position||e.onDrag||e.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element."),t}return t=l,n=[{key:"componentDidMount",value:function(){"undefined"!==typeof window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}},{key:"componentWillUnmount",value:function(){this.setState({dragging:!1})}},{key:"findDOMNode",value:function(){var e,t,n;return null!==(e=null===(t=this.props)||void 0===t||null===(n=t.nodeRef)||void 0===n?void 0:n.current)&&void 0!==e?e:i.default.findDOMNode(this)}},{key:"render",value:function(){var e,t=this.props;t.axis,t.bounds;var n=t.children,r=t.defaultPosition,a=t.defaultClassName,i=t.defaultClassNameDragging,l=t.defaultClassNameDragged,d=t.position,h=t.positionOffset;t.scale;var v=y(t,p),g={},w=null,_=!Boolean(d)||this.state.dragging,x=d||r,E={x:(0,c.canDragX)(this)&&_?this.state.x:x.x,y:(0,c.canDragY)(this)&&_?this.state.y:x.y};this.state.isElementSVG?w=(0,s.createSVGTransform)(E,h):g=(0,s.createCSSTransform)(E,h);var k=(0,u.default)(n.props.className||"",a,(C(e={},i,this.state.dragging),C(e,l,this.state.dragged),e));return o.createElement(f.default,m({},v,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),o.cloneElement(o.Children.only(n),{className:k,style:b(b({},n.props.style),g),transform:w}))}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.position,r=t.prevPropsPosition;return!n||r&&n.x===r.x&&n.y===r.y?null:((0,d.default)("Draggable: getDerivedStateFromProps %j",{position:n,prevPropsPosition:r}),{x:n.x,y:n.y,prevPropsPosition:b({},n)})}}],n&&x(t.prototype,n),r&&x(t,r),l}(o.Component);n.default=N,C(N,"displayName","Draggable"),C(N,"propTypes",b(b({},f.default.propTypes),{},{axis:a.default.oneOf(["both","x","y","none"]),bounds:a.default.oneOfType([a.default.shape({left:a.default.number,right:a.default.number,top:a.default.number,bottom:a.default.number}),a.default.string,a.default.oneOf([!1])]),defaultClassName:a.default.string,defaultClassNameDragging:a.default.string,defaultClassNameDragged:a.default.string,defaultPosition:a.default.shape({x:a.default.number,y:a.default.number}),positionOffset:a.default.shape({x:a.default.oneOfType([a.default.number,a.default.string]),y:a.default.oneOfType([a.default.number,a.default.string])}),position:a.default.shape({x:a.default.number,y:a.default.number}),className:l.dontSetMe,style:l.dontSetMe,transform:l.dontSetMe})),C(N,"defaultProps",b(b({},f.default.defaultProps),{},{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))}(Ei);var xu=Ei.default,Eu=Ei.DraggableCore;xi.exports=xu,xi.exports.default=xu;var ku=xi.exports.DraggableCore=Eu,Su=xi.exports;function Ou(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ou(Object(n),!0).forEach((function(t){D(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ou(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Cu=function(t){var n=t.onSelectionDragStart,r=t.onSelectionDrag,o=t.onSelectionDragStop,a=t.onSelectionContextMenu,i=nn(Qt((function(e){return e.transform})),3),u=i[0],s=i[1],c=i[2],l=Qt((function(e){return e.selectedNodesBbox})),f=Qt((function(e){return e.selectionActive})),d=Qt((function(e){return e.selectedElements})),p=Qt((function(e){return e.snapToGrid})),h=Qt((function(e){return e.snapGrid})),v=Qt((function(e){return e.nodes})),m=Wt((function(e){return e.updateNodePosDiff})),y=(0,e.useRef)(null),g=(0,e.useMemo)((function(){return p?h:[1,1]}),[p,h]),b=(0,e.useMemo)((function(){return d?d.filter(dn).map((function(e){var t=v.find((function(t){return t.id===e.id}));return Pu(Pu({},t),{},{position:null===t||void 0===t?void 0:t.__rf.position})})):[]}),[d,v]),w=(0,e.useMemo)((function(){return{transform:"translate(".concat(u,"px,").concat(s,"px) scale(").concat(c,")")}}),[u,s,c]),_=(0,e.useMemo)((function(){return{width:l.width,height:l.height,top:l.y,left:l.x}}),[l]),x=(0,e.useCallback)((function(e){null===n||void 0===n||n(e,b)}),[n,b]),E=(0,e.useCallback)((function(e,t){r&&r(e,b),m({diff:{x:t.deltaX,y:t.deltaY},isDragging:!0})}),[r,b,m]),k=(0,e.useCallback)((function(e){m({isDragging:!1}),null===o||void 0===o||o(e,b)}),[b,o]),S=(0,e.useCallback)((function(e){var t=d?d.filter(dn).map((function(e){return v.find((function(t){return t.id===e.id}))})):[];null===a||void 0===a||a(e,t)}),[a]);return!d||f?null:e.createElement("div",{className:"react-flow__nodesselection",style:w},e.createElement(Su,{scale:c,grid:g,onStart:function(e){return x(e)},onDrag:function(e,t){return E(e,t)},onStop:function(e){return k(e)},nodeRef:y,enableUserSelectHack:!1},e.createElement("div",{ref:y,className:"react-flow__nodesselection-rect",onContextMenu:S,style:_})))},Nu=function(t){var n=t.children,r=t.onPaneClick,o=t.onPaneContextMenu,a=t.onPaneScroll,i=t.onElementsRemove,u=t.deleteKeyCode,s=t.onMove,c=t.onMoveStart,l=t.onMoveEnd,f=t.selectionKeyCode,d=t.multiSelectionKeyCode,p=t.zoomActivationKeyCode,h=t.elementsSelectable,v=t.zoomOnScroll,m=t.zoomOnPinch,y=t.panOnScroll,g=t.panOnScrollSpeed,b=t.panOnScrollMode,w=t.zoomOnDoubleClick,_=t.paneMoveable,x=t.defaultPosition,E=t.defaultZoom,k=t.translateExtent,S=t.preventScrolling,O=t.onSelectionDragStart,P=t.onSelectionDrag,C=t.onSelectionDragStop,N=t.onSelectionContextMenu,j=Wt((function(e){return e.unsetNodesSelection})),M=Wt((function(e){return e.resetSelectedElements})),T=Qt((function(e){return e.nodesSelectionActive})),D=sn(f);!function(t){var n=t.deleteKeyCode,r=t.multiSelectionKeyCode,o=t.onElementsRemove,a=Zt(),i=Wt((function(e){return e.unsetNodesSelection})),u=Wt((function(e){return e.setMultiSelectionActive})),s=Wt((function(e){return e.resetSelectedElements})),c=sn(n),l=sn(r);(0,e.useEffect)((function(){var e=a.getState(),t=e.edges,n=e.selectedElements;if(o&&c&&n){var r=n.filter(dn),u=xn(r,t),l=[].concat(tn(n),tn(u)).reduce((function(e,t){return e.set(t.id,t)}),new Map);o(Array.from(l.values())),i(),s()}}),[c]),(0,e.useEffect)((function(){u(l)}),[l])}({onElementsRemove:i,deleteKeyCode:u,multiSelectionKeyCode:d});var I=(0,e.useCallback)((function(e){null===r||void 0===r||r(e),j(),M()}),[r]),A=(0,e.useCallback)((function(e){null===o||void 0===o||o(e)}),[o]),R=(0,e.useCallback)((function(e){null===a||void 0===a||a(e)}),[a]);return e.createElement(gi,{onMove:s,onMoveStart:c,onMoveEnd:l,selectionKeyPressed:D,elementsSelectable:h,zoomOnScroll:v,zoomOnPinch:m,panOnScroll:y,panOnScrollSpeed:g,panOnScrollMode:b,zoomOnDoubleClick:w,paneMoveable:_,defaultPosition:x,defaultZoom:E,translateExtent:k,zoomActivationKeyCode:p,preventScrolling:S},n,e.createElement(_i,{selectionKeyPressed:D}),T&&e.createElement(Cu,{onSelectionDragStart:O,onSelectionDrag:P,onSelectionDragStop:C,onSelectionContextMenu:N}),e.createElement("div",{className:"react-flow__pane",onClick:I,onContextMenu:A,onWheel:R}))};Nu.displayName="FlowRenderer";var ju=(0,e.memo)(Nu),Mu=function(t){var n=Qt((function(e){return e.transform})),r=Qt((function(e){return e.selectedElements})),o=Qt((function(e){return e.nodesDraggable})),a=Qt((function(e){return e.nodesConnectable})),i=Qt((function(e){return e.elementsSelectable})),u=Qt((function(e){return e.width})),s=Qt((function(e){return e.height})),c=Qt((function(e){return e.nodes})),l=Wt((function(e){return e.updateNodeDimensions})),f=t.onlyRenderVisibleElements?_n(c,{x:0,y:0,width:u,height:s},n,!0):c,d=(0,e.useMemo)((function(){return{transform:"translate(".concat(n[0],"px,").concat(n[1],"px) scale(").concat(n[2],")")}}),[n[0],n[1],n[2]]),p=(0,e.useMemo)((function(){return"undefined"===typeof ResizeObserver?null:new ResizeObserver((function(e){var t=e.map((function(e){return{id:e.target.getAttribute("data-id"),nodeElement:e.target}}));l(t)}))}),[]);return e.createElement("div",{className:"react-flow__nodes",style:d},f.map((function(u){var s=u.type||"default",c=t.nodeTypes[s]||t.nodeTypes.default;t.nodeTypes[s]||console.warn('Node type "'.concat(s,'" not found. Using fallback type "default".'));var l=!!(u.draggable||o&&"undefined"===typeof u.draggable),f=!!(u.selectable||i&&"undefined"===typeof u.selectable),d=!!(u.connectable||a&&"undefined"===typeof u.connectable);return e.createElement(c,{key:u.id,id:u.id,className:u.className,style:u.style,type:s,data:u.data,sourcePosition:u.sourcePosition,targetPosition:u.targetPosition,isHidden:u.isHidden,xPos:u.__rf.position.x,yPos:u.__rf.position.y,isDragging:u.__rf.isDragging,isInitialized:null!==u.__rf.width&&null!==u.__rf.height,snapGrid:t.snapGrid,snapToGrid:t.snapToGrid,selectNodesOnDrag:t.selectNodesOnDrag,onClick:t.onElementClick,onMouseEnter:t.onNodeMouseEnter,onMouseMove:t.onNodeMouseMove,onMouseLeave:t.onNodeMouseLeave,onContextMenu:t.onNodeContextMenu,onNodeDoubleClick:t.onNodeDoubleClick,onNodeDragStart:t.onNodeDragStart,onNodeDrag:t.onNodeDrag,onNodeDragStop:t.onNodeDragStop,scale:n[2],selected:(null===r||void 0===r?void 0:r.some((function(e){return e.id===u.id})))||!1,isDraggable:l,isSelectable:f,isConnectable:d,resizeObserver:p,dragHandle:u.dragHandle})})))};Mu.displayName="NodeRenderer";var Tu=(0,e.memo)(Mu),Du=["x","y","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","children","className"];function Iu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Au=function(t){var n=t.x,r=t.y,o=t.label,a=t.labelStyle,i=void 0===a?{}:a,u=t.labelShowBg,s=void 0===u||u,c=t.labelBgStyle,l=void 0===c?{}:c,f=t.labelBgPadding,d=void 0===f?[2,4]:f,p=t.labelBgBorderRadius,h=void 0===p?2:p,v=t.children,m=t.className,y=I(t,Du),g=(0,e.useRef)(null),b=nn((0,e.useState)({x:0,y:0,width:0,height:0}),2),w=b[0],_=b[1],x=A(["react-flow__edge-textwrapper",m]);return(0,e.useEffect)((function(){if(g.current){var e=g.current.getBBox();_({x:e.x,y:e.y,width:e.width,height:e.height})}}),[o]),"undefined"!==typeof o&&o?e.createElement("g",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Iu(Object(n),!0).forEach((function(t){D(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Iu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({transform:"translate(".concat(n-w.width/2," ").concat(r-w.height/2,")"),className:x},y),s&&e.createElement("rect",{width:w.width+2*d[0],x:-d[0],y:-d[1],height:w.height+2*d[1],className:"react-flow__edge-textbg",style:l,rx:h,ry:h}),e.createElement("text",{className:"react-flow__edge-text",y:w.height/2,dy:"0.3em",ref:g,style:i},o),v):null},Ru=(0,e.memo)(Au),Lu=function(e,t){return"undefined"!==typeof t&&t?"url(#".concat(t,")"):"undefined"!==typeof e?"url(#react-flow__".concat(e,")"):"none"},zu=[li.Left,li.Right],$u=function(e){var t=e.sourceX,n=e.sourceY,r=e.targetX,o=e.targetY,a=e.sourcePosition,i=void 0===a?li.Bottom:a,u=e.targetPosition,s=void 0===u?li.Top:u,c=zu.includes(i),l=zu.includes(s);if(c&&!l||l&&!c){var f=c?Math.abs(r-t):0,d=t>r?t-f:t+f,p=c?0:Math.abs(o-n);return[d,n<o?n+p:n-p,f,p]}var h=Math.abs(r-t)/2,v=r<t?r+h:r-h,m=Math.abs(o-n)/2;return[v,o<n?o+m:o-m,h,m]};function Fu(e){var t=e.sourceX,n=e.sourceY,r=e.sourcePosition,o=void 0===r?li.Bottom:r,a=e.targetX,i=e.targetY,u=e.targetPosition,s=void 0===u?li.Top:u,c=e.centerX,l=e.centerY,f=nn($u({sourceX:t,sourceY:n,targetX:a,targetY:i}),2),d=f[0],p=f[1],h=[li.Left,li.Right],v="undefined"!==typeof c?c:d,m="undefined"!==typeof l?l:p,y="M".concat(t,",").concat(n," C").concat(t,",").concat(m," ").concat(a,",").concat(m," ").concat(a,",").concat(i);return h.includes(o)&&h.includes(s)?y="M".concat(t,",").concat(n," C").concat(v,",").concat(n," ").concat(v,",").concat(i," ").concat(a,",").concat(i):h.includes(s)?y="M".concat(t,",").concat(n," Q").concat(t,",").concat(i," ").concat(a,",").concat(i):h.includes(o)&&(y="M".concat(t,",").concat(n," Q").concat(a,",").concat(n," ").concat(a,",").concat(i)),y}var Uu=(0,e.memo)((function(t){var n=t.sourceX,r=t.sourceY,o=t.targetX,a=t.targetY,i=t.sourcePosition,u=void 0===i?li.Bottom:i,s=t.targetPosition,c=void 0===s?li.Top:s,l=t.label,f=t.labelStyle,d=t.labelShowBg,p=t.labelBgStyle,h=t.labelBgPadding,v=t.labelBgBorderRadius,m=t.style,y=t.arrowHeadType,g=t.markerEndId,b=nn($u({sourceX:n,sourceY:r,targetX:o,targetY:a,sourcePosition:u,targetPosition:c}),2),w=b[0],_=b[1],x=Fu({sourceX:n,sourceY:r,sourcePosition:u,targetX:o,targetY:a,targetPosition:c}),E=l?e.createElement(Ru,{x:w,y:_,label:l,labelStyle:f,labelShowBg:d,labelBgStyle:p,labelBgPadding:h,labelBgBorderRadius:v}):null,k=Lu(y,g);return e.createElement(e.Fragment,null,e.createElement("path",{style:m,d:x,className:"react-flow__edge-path",markerEnd:k}),E)})),Bu=function(e,t,n){return"L ".concat(e,",").concat(t-n,"Q ").concat(e,",").concat(t," ").concat(e+n,",").concat(t)},Vu=function(e,t,n){return"L ".concat(e+n,",").concat(t,"Q ").concat(e,",").concat(t," ").concat(e,",").concat(t-n)},Hu=function(e,t,n){return"L ".concat(e,",").concat(t-n,"Q ").concat(e,",").concat(t," ").concat(e-n,",").concat(t)},qu=function(e,t,n){return"L ".concat(e-n,",").concat(t,"Q ").concat(e,",").concat(t," ").concat(e,",").concat(t-n)},Yu=function(e,t,n){return"L ".concat(e+n,",").concat(t,"Q ").concat(e,",").concat(t," ").concat(e,",").concat(t+n)},Gu=function(e,t,n){return"L ".concat(e,",").concat(t+n,"Q ").concat(e,",").concat(t," ").concat(e+n,",").concat(t)},Xu=function(e,t,n){return"L ".concat(e,",").concat(t+n,"Q ").concat(e,",").concat(t," ").concat(e-n,",").concat(t)},Ku=function(e,t,n){return"L ".concat(e-n,",").concat(t,"Q ").concat(e,",").concat(t," ").concat(e,",").concat(t+n)};function Wu(e){var t=e.sourceX,n=e.sourceY,r=e.sourcePosition,o=void 0===r?li.Bottom:r,a=e.targetX,i=e.targetY,u=e.targetPosition,s=void 0===u?li.Top:u,c=e.borderRadius,l=void 0===c?5:c,f=e.centerX,d=e.centerY,p=nn($u({sourceX:t,sourceY:n,targetX:a,targetY:i}),4),h=p[0],v=p[1],m=p[2],y=p[3],g=Math.min(l,Math.abs(a-t)),b=Math.min(l,Math.abs(i-n)),w=Math.min(g,b,m,y),_=[li.Left,li.Right],x="undefined"!==typeof f?f:h,E="undefined"!==typeof d?d:v,k=null,S=null;return t<=a?(k=n<=i?Bu(t,E,w):Gu(t,E,w),S=n<=i?Ku(a,E,w):qu(a,E,w)):(k=n<i?Hu(t,E,w):Xu(t,E,w),S=n<i?Yu(a,E,w):Vu(a,E,w)),_.includes(o)&&_.includes(s)?t<=a?(k=n<=i?Ku(x,n,w):qu(x,n,w),S=n<=i?Bu(x,i,w):Gu(x,i,w)):(o===li.Right&&s===li.Left||o===li.Left&&s===li.Right||o===li.Left&&s===li.Left)&&(k=n<=i?Yu(x,n,w):Vu(x,n,w),S=n<=i?Hu(x,i,w):Xu(x,i,w)):_.includes(o)&&!_.includes(s)?(k=t<=a?n<=i?Ku(a,n,w):qu(a,n,w):n<=i?Yu(a,n,w):Vu(a,n,w),S=""):!_.includes(o)&&_.includes(s)&&(k=t<=a?n<=i?Bu(t,i,w):Gu(t,i,w):n<=i?Hu(t,i,w):Xu(t,i,w),S=""),"M ".concat(t,",").concat(n).concat(k).concat(S,"L ").concat(a,",").concat(i)}var Qu=(0,e.memo)((function(t){var n=t.sourceX,r=t.sourceY,o=t.targetX,a=t.targetY,i=t.label,u=t.labelStyle,s=t.labelShowBg,c=t.labelBgStyle,l=t.labelBgPadding,f=t.labelBgBorderRadius,d=t.style,p=t.sourcePosition,h=void 0===p?li.Bottom:p,v=t.targetPosition,m=void 0===v?li.Top:v,y=t.arrowHeadType,g=t.markerEndId,b=t.borderRadius,w=void 0===b?5:b,_=nn($u({sourceX:n,sourceY:r,targetX:o,targetY:a,sourcePosition:h,targetPosition:m}),2),x=_[0],E=_[1],k=Wu({sourceX:n,sourceY:r,sourcePosition:h,targetX:o,targetY:a,targetPosition:m,borderRadius:w}),S=Lu(y,g),O=i?e.createElement(Ru,{x:x,y:E,label:i,labelStyle:u,labelShowBg:s,labelBgStyle:c,labelBgPadding:l,labelBgBorderRadius:f}):null;return e.createElement(e.Fragment,null,e.createElement("path",{style:d,className:"react-flow__edge-path",d:k,markerEnd:S}),O)})),Zu=function(t){var n=t.connectionNodeId,r=t.connectionHandleId,o=t.connectionHandleType,a=t.connectionLineStyle,i=t.connectionPositionX,u=t.connectionPositionY,s=t.connectionLineType,c=void 0===s?hi.Bezier:s,l=t.nodes,f=void 0===l?[]:l,d=t.transform,p=t.isConnectable,h=t.CustomConnectionLineComponent,v=nn((0,e.useState)(null),2),m=v[0],y=v[1],g=n,b=r;if((0,e.useEffect)((function(){var e=f.find((function(e){return e.id===g}))||null;y(e)}),[]),!m||!p)return null;var w=function(e,t,n){var r="source"===n?"target":"source",o=t.__rf.handleBounds[n]||t.__rf.handleBounds[r];return e?o.find((function(t){return t.id===e})):o[0]}(b,m,o),_=w?w.x+w.width/2:m.__rf.width/2,x=w?w.y+w.height/2:m.__rf.height,E=m.__rf.position.x+_,k=m.__rf.position.y+x,S=(i-d[0])/d[2],O=(u-d[1])/d[2],P=(null===w||void 0===w?void 0:w.position)===li.Left||(null===w||void 0===w?void 0:w.position)===li.Right?li.Left:li.Top;if(h)return e.createElement("g",{className:"react-flow__connection"},e.createElement(h,{sourceX:E,sourceY:k,sourcePosition:null===w||void 0===w?void 0:w.position,targetX:S,targetY:O,targetPosition:P,connectionLineType:c,connectionLineStyle:a,sourceNode:m,sourceHandle:w}));var C="";return C=c===hi.Bezier?Fu({sourceX:E,sourceY:k,sourcePosition:null===w||void 0===w?void 0:w.position,targetX:S,targetY:O,targetPosition:P}):c===hi.Step?Wu({sourceX:E,sourceY:k,sourcePosition:null===w||void 0===w?void 0:w.position,targetX:S,targetY:O,targetPosition:P,borderRadius:0}):c===hi.SmoothStep?Wu({sourceX:E,sourceY:k,sourcePosition:null===w||void 0===w?void 0:w.position,targetX:S,targetY:O,targetPosition:P}):"M".concat(E,",").concat(k," ").concat(S,",").concat(O),e.createElement("g",{className:"react-flow__connection"},e.createElement("path",{d:C,className:"react-flow__connection-path",style:a}))},Ju=function(t){var n=t.id,r=t.children;return e.createElement("marker",{className:"react-flow__arrowhead",id:n,markerWidth:"12.5",markerHeight:"12.5",viewBox:"-10 -10 20 20",orient:"auto",refX:"0",refY:"0"},r)},es=function(t){var n=t.color;return e.createElement("defs",null,e.createElement(Ju,{id:"react-flow__arrowclosed"},e.createElement("polyline",{stroke:n,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1",fill:n,points:"-5,-4 0,0 -5,4 -5,-4"})),e.createElement(Ju,{id:"react-flow__arrow"},e.createElement("polyline",{stroke:n,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",fill:"none",points:"-5,-4 0,0 -5,4"})))};function ts(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ns(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ts(Object(n),!0).forEach((function(t){D(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ts(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}es.displayName="MarkerDefinitions";var rs=(0,e.memo)((function(t){return e.createElement(Qu,ns(ns({},t),{},{borderRadius:0}))})),os=(0,e.memo)((function(t){var n=t.sourceX,r=t.sourceY,o=t.targetX,a=t.targetY,i=t.label,u=t.labelStyle,s=t.labelShowBg,c=t.labelBgStyle,l=t.labelBgPadding,f=t.labelBgBorderRadius,d=t.style,p=t.arrowHeadType,h=t.markerEndId,v=Math.abs(a-r)/2,m=a<r?a+v:a-v,y=Math.abs(o-n)/2,g=o<n?o+y:o-y,b=Lu(p,h),w=i?e.createElement(Ru,{x:g,y:m,label:i,labelStyle:u,labelShowBg:s,labelBgStyle:c,labelBgPadding:l,labelBgBorderRadius:f}):null;return e.createElement(e.Fragment,null,e.createElement("path",{style:d,className:"react-flow__edge-path",d:"M ".concat(n,",").concat(r,"L ").concat(o,",").concat(a),markerEnd:b}),w)}));function as(e,t,n,r,o,a,i){var u=i.elementFromPoint(e.clientX,e.clientY),s=(null===u||void 0===u?void 0:u.classList.contains("target"))||!1,c=(null===u||void 0===u?void 0:u.classList.contains("source"))||!1,l={elementBelow:u,isValid:!1,connection:{source:null,target:null,sourceHandle:null,targetHandle:null},isHoveringHandle:!1};if(u&&(s||c)&&(l.isHoveringHandle=!0,t!==pi.Strict||(n&&c||!n&&s))){var f=u.getAttribute("data-nodeid"),d=u.getAttribute("data-handleid"),p=n?{source:f,sourceHandle:d,target:r,targetHandle:o}:{source:r,sourceHandle:o,target:f,targetHandle:d};l.connection=p,l.isValid=a(p)}return l}function is(e){null===e||void 0===e||e.classList.remove("react-flow__handle-valid"),null===e||void 0===e||e.classList.remove("react-flow__handle-connecting")}function us(e,t,n,r,o,a,i,u,s,c,l,f,d,p){var h=e.target.closest(".react-flow"),v=function(e){var t,n;return(null===(t=e.getRootNode)||void 0===t?void 0:t.call(e))||(null===(n=window)||void 0===n?void 0:n.document)}(e.target);if(v){var m=v.elementFromPoint(e.clientX,e.clientY),y=null===m||void 0===m?void 0:m.classList.contains("target"),g=null===m||void 0===m?void 0:m.classList.contains("source");if(h&&(y||g||c)){var b,w=c||(y?"target":"source"),_=h.getBoundingClientRect();o({x:e.clientX-_.left,y:e.clientY-_.top}),r({connectionNodeId:n,connectionHandleId:t,connectionHandleType:w}),null===f||void 0===f||f(e,{nodeId:n,handleId:t,handleType:w}),v.addEventListener("mousemove",x),v.addEventListener("mouseup",(function e(o){var f=as(o,s,i,n,t,u,v),h=f.connection,m=f.isValid;null===d||void 0===d||d(o),m&&(null===a||void 0===a||a(h)),null===p||void 0===p||p(o),c&&l&&l(o),is(b),r({connectionNodeId:null,connectionHandleId:null,connectionHandleType:null}),v.removeEventListener("mousemove",x),v.removeEventListener("mouseup",e)}))}}function x(e){o({x:e.clientX-_.left,y:e.clientY-_.top});var r=as(e,s,i,n,t,u,v),a=r.connection,c=r.elementBelow,l=r.isValid;if(!r.isHoveringHandle)return is(b);!(a.source===a.target)&&c&&(b=c,c.classList.add("react-flow__handle-connecting"),c.classList.toggle("react-flow__handle-valid",l))}}var ss=function(e,t,n){return n===li.Left?e-t:n===li.Right?e+t:e},cs=function(e,t,n){return n===li.Top?e-t:n===li.Bottom?e+t:e},ls=function(t){var n=t.className,r=t.position,o=t.centerX,a=t.centerY,i=t.radius,u=void 0===i?10:i;return e.createElement("circle",{className:A(["react-flow__edgeupdater",n]),cx:ss(o,u,r),cy:cs(a,u,r),r:u,stroke:"transparent",fill:"transparent"})},fs=function(t){var n=function(n){var r=n.id,o=n.className,a=n.type,i=n.data,u=n.onClick,s=n.onEdgeDoubleClick,c=n.selected,l=n.animated,f=n.label,d=n.labelStyle,p=n.labelShowBg,h=n.labelBgStyle,v=n.labelBgPadding,m=n.labelBgBorderRadius,y=n.style,g=n.arrowHeadType,b=n.source,w=n.target,_=n.sourceX,x=n.sourceY,E=n.targetX,k=n.targetY,S=n.sourcePosition,O=n.targetPosition,P=n.elementsSelectable,C=n.markerEndId,N=n.isHidden,j=n.sourceHandleId,M=n.targetHandleId,T=n.handleEdgeUpdate,D=n.onConnectEdge,I=n.onContextMenu,R=n.onMouseEnter,L=n.onMouseMove,z=n.onMouseLeave,$=n.edgeUpdaterRadius,F=n.onEdgeUpdateStart,U=n.onEdgeUpdateEnd,B=Wt((function(e){return e.addSelectedElements})),V=Wt((function(e){return e.setConnectionNodeId})),H=Wt((function(e){return e.unsetNodesSelection})),q=Wt((function(e){return e.setConnectionPosition})),Y=Qt((function(e){return e.connectionMode})),G=nn((0,e.useState)(!1),2),X=G[0],K=G[1],W=!P&&!u,Q=A(["react-flow__edge","react-flow__edge-".concat(a),o,{selected:c,animated:l,inactive:W,updating:X}]),Z=(0,e.useMemo)((function(){var e={id:r,source:b,target:w,type:a};return j&&(e.sourceHandle=j),M&&(e.targetHandle=M),"undefined"!==typeof i&&(e.data=i),e}),[r,b,w,a,j,M,i]),J=(0,e.useCallback)((function(e){P&&(H(),B(Z)),null===u||void 0===u||u(e,Z)}),[P,Z,u]),ee=(0,e.useCallback)((function(e){null===s||void 0===s||s(e,Z)}),[Z,s]),te=(0,e.useCallback)((function(e){null===I||void 0===I||I(e,Z)}),[Z,I]),ne=(0,e.useCallback)((function(e){null===R||void 0===R||R(e,Z)}),[Z,I]),re=(0,e.useCallback)((function(e){null===L||void 0===L||L(e,Z)}),[Z,I]),oe=(0,e.useCallback)((function(e){null===z||void 0===z||z(e,Z)}),[Z,I]),ae=(0,e.useCallback)((function(e,t){var n=t?w:b,r=t?M:j,o=t;null===F||void 0===F||F(e,Z),us(e,r,n,V,q,D,o,(function(){return!0}),Y,t?"target":"source",U?function(e){return U(e,Z)}:void 0)}),[r,b,w,a,j,M,V,q,Z,D]),ie=(0,e.useCallback)((function(e){ae(e,!0)}),[r,b,j,ae]),ue=(0,e.useCallback)((function(e){ae(e,!1)}),[r,w,M,ae]),se=(0,e.useCallback)((function(){return K(!0)}),[K]),ce=(0,e.useCallback)((function(){return K(!1)}),[K]);return N?null:e.createElement("g",{className:Q,onClick:J,onDoubleClick:ee,onContextMenu:te,onMouseEnter:ne,onMouseMove:re,onMouseLeave:oe},e.createElement(t,{id:r,source:b,target:w,selected:c,animated:l,label:f,labelStyle:d,labelShowBg:p,labelBgStyle:h,labelBgPadding:v,labelBgBorderRadius:m,data:i,style:y,arrowHeadType:g,sourceX:_,sourceY:x,targetX:E,targetY:k,sourcePosition:S,targetPosition:O,markerEndId:C,sourceHandleId:j,targetHandleId:M}),T&&e.createElement("g",{onMouseDown:ie,onMouseEnter:se,onMouseOut:ce},e.createElement(ls,{position:S,centerX:_,centerY:x,radius:$})),T&&e.createElement("g",{onMouseDown:ue,onMouseEnter:se,onMouseOut:ce},e.createElement(ls,{position:O,centerX:E,centerY:k,radius:$})))};return n.displayName="EdgeWrapper",(0,e.memo)(n)};function ds(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ps(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ds(Object(n),!0).forEach((function(t){D(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ds(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function hs(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=((null===n||void 0===n?void 0:n.x)||0)+t.__rf.position.x,o=((null===n||void 0===n?void 0:n.y)||0)+t.__rf.position.y,a=(null===n||void 0===n?void 0:n.width)||t.__rf.width,i=(null===n||void 0===n?void 0:n.height)||t.__rf.height;switch(e){case li.Top:return{x:r+a/2,y:o};case li.Right:return{x:r+a,y:o+i/2};case li.Bottom:return{x:r+a/2,y:o+i};case li.Left:return{x:r,y:o+i/2}}}function vs(e,t){if(!e)return null;var n=null;return 1!==e.length&&t?t&&(n=e.find((function(e){return e.id===t}))):n=e[0],"undefined"===typeof n?null:n}var ms=function(t){var n=t.edge,r=t.props,o=t.nodes,a=t.selectedElements,i=t.elementsSelectable,u=t.transform,s=t.width,c=t.height,l=t.onlyRenderVisibleElements,f=t.connectionMode,d=n.sourceHandle||null,p=n.targetHandle||null,h=function(e,t){return t.reduce((function(t,n){return n.id===e.source&&(t.sourceNode=n),n.id===e.target&&(t.targetNode=n),t}),{sourceNode:null,targetNode:null})}(n,o),v=h.sourceNode,m=h.targetNode,y=(0,e.useCallback)((function(e){var t;null===(t=r.onEdgeUpdate)||void 0===t||t.call(r,n,e)}),[n,r.onEdgeUpdate]);if(!v)return console.warn("couldn't create edge for source id: ".concat(n.source,"; edge id: ").concat(n.id)),null;if(!m)return console.warn("couldn't create edge for target id: ".concat(n.target,"; edge id: ").concat(n.id)),null;if(!v.__rf.width||!m.__rf.width)return null;var g=n.type||"default",b=r.edgeTypes[g]||r.edgeTypes.default,w=m.__rf.handleBounds,_=f===pi.Strict?w.target:w.target||w.source,x=vs(v.__rf.handleBounds.source,d),E=vs(_,p),k=x?x.position:li.Bottom,S=E?E.position:li.Top;if(!x)return console.warn("couldn't create edge for source handle id: ".concat(d,"; edge id: ").concat(n.id)),null;if(!E)return console.warn("couldn't create edge for target handle id: ".concat(p,"; edge id: ").concat(n.id)),null;var O=function(e,t,n,r,o,a){var i=hs(n,e,t),u=hs(a,r,o);return{sourceX:i.x,sourceY:i.y,targetX:u.x,targetY:u.y}}(v,x,k,m,E,S),P=O.sourceX,C=O.sourceY,N=O.targetX,j=O.targetY,M=!l||function(e){var t=e.sourcePos,n=e.targetPos,r=e.width,o=e.height,a=e.transform,i={x:Math.min(t.x,n.x),y:Math.min(t.y,n.y),x2:Math.max(t.x,n.x),y2:Math.max(t.y,n.y)};i.x===i.x2&&(i.x2+=1),i.y===i.y2&&(i.y2+=1);var u=gn({x:(0-a[0])/a[2],y:(0-a[1])/a[2],width:r/a[2],height:o/a[2]}),s=Math.max(0,Math.min(u.x2,i.x2)-Math.max(u.x,i.x)),c=Math.max(0,Math.min(u.y2,i.y2)-Math.max(u.y,i.y));return Math.ceil(s*c)>0}({sourcePos:{x:P,y:C},targetPos:{x:N,y:j},width:s,height:c,transform:u});if(!M)return null;var T=(null===a||void 0===a?void 0:a.some((function(e){return fn(e)&&e.id===n.id})))||!1;return e.createElement(b,{key:n.id,id:n.id,className:n.className,type:n.type,data:n.data,onClick:r.onElementClick,selected:T,animated:n.animated,label:n.label,labelStyle:n.labelStyle,labelShowBg:n.labelShowBg,labelBgStyle:n.labelBgStyle,labelBgPadding:n.labelBgPadding,labelBgBorderRadius:n.labelBgBorderRadius,style:n.style,arrowHeadType:n.arrowHeadType,source:n.source,target:n.target,sourceHandleId:d,targetHandleId:p,sourceX:P,sourceY:C,targetX:N,targetY:j,sourcePosition:k,targetPosition:S,elementsSelectable:i,markerEndId:r.markerEndId,isHidden:n.isHidden,onConnectEdge:y,handleEdgeUpdate:"undefined"!==typeof r.onEdgeUpdate,onContextMenu:r.onEdgeContextMenu,onMouseEnter:r.onEdgeMouseEnter,onMouseMove:r.onEdgeMouseMove,onMouseLeave:r.onEdgeMouseLeave,edgeUpdaterRadius:r.edgeUpdaterRadius,onEdgeDoubleClick:r.onEdgeDoubleClick,onEdgeUpdateStart:r.onEdgeUpdateStart,onEdgeUpdateEnd:r.onEdgeUpdateEnd})},ys=function(t){var n=Qt((function(e){return e.transform})),r=Qt((function(e){return e.nodes})),o=Qt((function(e){return e.edges})),a=Qt((function(e){return e.connectionNodeId})),i=Qt((function(e){return e.connectionHandleId})),u=Qt((function(e){return e.connectionHandleType})),s=Qt((function(e){return e.connectionPosition})),c=Qt((function(e){return e.selectedElements})),l=Qt((function(e){return e.nodesConnectable})),f=Qt((function(e){return e.elementsSelectable})),d=Qt((function(e){return e.width})),p=Qt((function(e){return e.height}));if(!d)return null;var h=t.connectionLineType,v=t.arrowHeadColor,m=t.connectionLineStyle,y=t.connectionLineComponent,g=t.onlyRenderVisibleElements,b="translate(".concat(n[0],"px,").concat(n[1],"px) scale(").concat(n[2],")"),w=a&&u;return e.createElement("svg",{width:d,height:p,className:"react-flow__edges"},e.createElement(es,{color:v}),e.createElement("g",{style:{transform:b}},o.map((function(o){return e.createElement(ms,{key:o.id,edge:o,props:t,nodes:r,selectedElements:c,elementsSelectable:f,transform:n,width:d,height:p,onlyRenderVisibleElements:g})})),w&&e.createElement(Zu,{nodes:r,connectionNodeId:a,connectionHandleId:i,connectionHandleType:u,connectionPositionX:s.x,connectionPositionY:s.y,transform:n,connectionLineStyle:m,connectionLineType:h,isConnectable:l,CustomConnectionLineComponent:y})))};ys.displayName="EdgeRenderer";var gs=(0,e.memo)(ys),bs=.1,ws={zoomIn:function(){},zoomOut:function(){},zoomTo:function(e){},transform:function(e){},fitView:function(){},setCenter:function(e,t){},fitBounds:function(e){},project:function(e){return e},initialized:!1},_s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e.transition().duration(t)},xs=function(){var t=Zt(),n=Qt((function(e){return e.d3Zoom})),r=Qt((function(e){return e.d3Selection})),o=(0,e.useMemo)((function(){return r&&n?{zoomIn:function(e){return n.scaleBy(_s(r,e),1.2)},zoomOut:function(e){return n.scaleBy(_s(r,e),1/1.2)},zoomTo:function(e,t){return n.scaleTo(_s(r,t),e)},transform:function(e,t){var o=ti.translate(e.x,e.y).scale(e.zoom);n.transform(_s(r,t),o)},fitView:function(){var e,o,a,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{padding:bs,includeHiddenNodes:!1,duration:0},u=t.getState(),s=u.nodes,c=u.width,l=u.height,f=u.minZoom,d=u.maxZoom;if(s.length){var p=wn(i.includeHiddenNodes?s:s.filter((function(e){return!e.isHidden}))),h=On(p,c,l,null!==(e=i.minZoom)&&void 0!==e?e:f,null!==(o=i.maxZoom)&&void 0!==o?o:d,null!==(a=i.padding)&&void 0!==a?a:bs),v=nn(h,3),m=v[0],y=v[1],g=v[2],b=ti.translate(m,y).scale(g);n.transform(_s(r,i.duration),b)}},setCenter:function(e,o,a,i){var u=t.getState(),s=u.width,c=u.height,l=u.maxZoom,f="undefined"!==typeof a?a:l,d=s/2-e*f,p=c/2-o*f,h=ti.translate(d,p).scale(f);n.transform(_s(r,i),h)},fitBounds:function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:bs,a=arguments.length>2?arguments[2]:void 0,i=t.getState(),u=i.width,s=i.height,c=i.minZoom,l=i.maxZoom,f=On(e,u,s,c,l,o),d=nn(f,3),p=d[0],h=d[1],v=d[2],m=ti.translate(p,h).scale(v);n.transform(_s(r,a),m)},project:function(e){var n=t.getState(),r=n.transform,o=n.snapToGrid,a=n.snapGrid;return pn(e,r,o,a)},initialized:!0}:ws}),[n,r]);return o},Es=function(t){var n=t.nodeTypes,r=t.edgeTypes,o=t.onMove,a=t.onMoveStart,i=t.onMoveEnd,u=t.onLoad,s=t.onElementClick,c=t.onNodeDoubleClick,l=t.onEdgeDoubleClick,f=t.onNodeMouseEnter,d=t.onNodeMouseMove,p=t.onNodeMouseLeave,h=t.onNodeContextMenu,v=t.onNodeDragStart,m=t.onNodeDrag,y=t.onNodeDragStop,g=t.onSelectionDragStart,b=t.onSelectionDrag,w=t.onSelectionDragStop,_=t.onSelectionContextMenu,x=t.connectionMode,E=t.connectionLineType,k=t.connectionLineStyle,S=t.connectionLineComponent,O=t.selectionKeyCode,P=t.multiSelectionKeyCode,C=t.zoomActivationKeyCode,N=t.onElementsRemove,j=t.deleteKeyCode,M=t.onConnect,T=t.onConnectStart,D=t.onConnectStop,I=t.onConnectEnd,A=t.snapToGrid,R=t.snapGrid,L=t.onlyRenderVisibleElements,z=t.nodesDraggable,$=t.nodesConnectable,F=t.elementsSelectable,U=t.selectNodesOnDrag,B=t.minZoom,V=t.maxZoom,H=t.defaultZoom,q=t.defaultPosition,Y=t.translateExtent,G=t.preventScrolling,X=t.nodeExtent,K=t.arrowHeadColor,W=t.markerEndId,Q=t.zoomOnScroll,Z=t.zoomOnPinch,J=t.panOnScroll,ee=t.panOnScrollSpeed,te=t.panOnScrollMode,ne=t.zoomOnDoubleClick,re=t.paneMoveable,oe=t.onPaneClick,ae=t.onPaneScroll,ie=t.onPaneContextMenu,ue=t.onEdgeUpdate,se=t.onEdgeContextMenu,ce=t.onEdgeMouseEnter,le=t.onEdgeMouseMove,fe=t.onEdgeMouseLeave,de=t.edgeUpdaterRadius,pe=t.onEdgeUpdateStart,he=t.onEdgeUpdateEnd,ve=(0,e.useRef)(!1),me=Wt((function(e){return e.setOnConnect})),ye=Wt((function(e){return e.setOnConnectStart})),ge=Wt((function(e){return e.setOnConnectStop})),be=Wt((function(e){return e.setOnConnectEnd})),we=Wt((function(e){return e.setSnapGrid})),_e=Wt((function(e){return e.setSnapToGrid})),xe=Wt((function(e){return e.setNodesDraggable})),Ee=Wt((function(e){return e.setNodesConnectable})),ke=Wt((function(e){return e.setElementsSelectable})),Se=Wt((function(e){return e.setMinZoom})),Oe=Wt((function(e){return e.setMaxZoom})),Pe=Wt((function(e){return e.setTranslateExtent})),Ce=Wt((function(e){return e.setNodeExtent})),Ne=Wt((function(e){return e.setConnectionMode})),je=Zt(),Me=xs(),Te=Me.zoomIn,De=Me.zoomOut,Ie=Me.zoomTo,Ae=Me.transform,Re=Me.fitView,Le=Me.initialized;return(0,e.useEffect)((function(){!ve.current&&Le&&(u&&u({fitView:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{padding:.1};return Re(e)},zoomIn:Te,zoomOut:De,zoomTo:Ie,setTransform:Ae,project:hn(je),getElements:kn(je),toObject:Sn(je)}),ve.current=!0)}),[u,Te,De,Ie,Ae,Re,Le]),(0,e.useEffect)((function(){M&&me(M)}),[M]),(0,e.useEffect)((function(){T&&ye(T)}),[T]),(0,e.useEffect)((function(){D&&ge(D)}),[D]),(0,e.useEffect)((function(){I&&be(I)}),[I]),(0,e.useEffect)((function(){"undefined"!==typeof A&&_e(A)}),[A]),(0,e.useEffect)((function(){"undefined"!==typeof R&&we(R)}),[R]),(0,e.useEffect)((function(){"undefined"!==typeof z&&xe(z)}),[z]),(0,e.useEffect)((function(){"undefined"!==typeof $&&Ee($)}),[$]),(0,e.useEffect)((function(){"undefined"!==typeof F&&ke(F)}),[F]),(0,e.useEffect)((function(){"undefined"!==typeof B&&Se(B)}),[B]),(0,e.useEffect)((function(){"undefined"!==typeof V&&Oe(V)}),[V]),(0,e.useEffect)((function(){"undefined"!==typeof Y&&Pe(Y)}),[Y]),(0,e.useEffect)((function(){"undefined"!==typeof X&&Ce(X)}),[X]),(0,e.useEffect)((function(){"undefined"!==typeof x&&Ne(x)}),[x]),e.createElement(ju,{onPaneClick:oe,onPaneContextMenu:ie,onPaneScroll:ae,onElementsRemove:N,deleteKeyCode:j,selectionKeyCode:O,multiSelectionKeyCode:P,zoomActivationKeyCode:C,elementsSelectable:F,onMove:o,onMoveStart:a,onMoveEnd:i,zoomOnScroll:Q,zoomOnPinch:Z,zoomOnDoubleClick:ne,panOnScroll:J,panOnScrollSpeed:ee,panOnScrollMode:te,paneMoveable:re,defaultPosition:q,defaultZoom:H,translateExtent:Y,onSelectionDragStart:g,onSelectionDrag:b,onSelectionDragStop:w,onSelectionContextMenu:_,preventScrolling:G},e.createElement(Tu,{nodeTypes:n,onElementClick:s,onNodeDoubleClick:c,onNodeMouseEnter:f,onNodeMouseMove:d,onNodeMouseLeave:p,onNodeContextMenu:h,onNodeDragStop:y,onNodeDrag:m,onNodeDragStart:v,selectNodesOnDrag:U,snapToGrid:A,snapGrid:R,onlyRenderVisibleElements:L}),e.createElement(gs,{edgeTypes:r,onElementClick:s,onEdgeDoubleClick:l,connectionLineType:E,connectionLineStyle:k,connectionLineComponent:S,connectionMode:x,arrowHeadColor:K,markerEndId:W,onEdgeUpdate:ue,onlyRenderVisibleElements:L,onEdgeContextMenu:se,onEdgeMouseEnter:ce,onEdgeMouseMove:le,onEdgeMouseLeave:fe,onEdgeUpdateStart:pe,onEdgeUpdateEnd:he,edgeUpdaterRadius:de}))};Es.displayName="GraphView";var ks=(0,e.memo)(Es),Ss=function(t){var n=t.elements,r=Wt((function(e){return e.setElements}));return(0,e.useEffect)((function(){r(n)}),[n]),null},Os=(0,e.createContext)(null),Ps=Os.Provider;Os.Consumer;var Cs=["type","position","isValidConnection","isConnectable","id","onConnect","children","className"];function Ns(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var js=function(){return!0},Ms=(0,e.forwardRef)((function(t,n){var r=t.type,o=void 0===r?"source":r,a=t.position,i=void 0===a?li.Top:a,u=t.isValidConnection,s=void 0===u?js:u,c=t.isConnectable,l=void 0===c||c,f=t.id,d=t.onConnect,p=t.children,h=t.className,v=I(t,Cs),m=(0,e.useContext)(Os),y=Wt((function(e){return e.setConnectionPosition})),g=Wt((function(e){return e.setConnectionNodeId})),b=Qt((function(e){return e.onConnect})),w=Qt((function(e){return e.onConnectStart})),_=Qt((function(e){return e.onConnectStop})),x=Qt((function(e){return e.onConnectEnd})),E=Qt((function(e){return e.connectionMode})),k=f||null,S="target"===o,O=(0,e.useCallback)((function(e){null===b||void 0===b||b(e),null===d||void 0===d||d(e)}),[b,d]),P=(0,e.useCallback)((function(e){us(e,k,m,g,y,O,S,s,E,void 0,void 0,w,_,x)}),[k,m,g,y,O,S,s,E,w,_,x]),C=A(["react-flow__handle","react-flow__handle-".concat(i),"nodrag",h,{source:!S,target:S,connectable:l}]);return e.createElement("div",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ns(Object(n),!0).forEach((function(t){D(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ns(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({"data-handleid":k,"data-nodeid":m,"data-handlepos":i,className:C,onMouseDown:P,ref:n},v),p)}));Ms.displayName="Handle";var Ts=(0,e.memo)(Ms),Ds=function(t){var n=t.data,r=t.isConnectable,o=t.targetPosition,a=void 0===o?li.Top:o,i=t.sourcePosition,u=void 0===i?li.Bottom:i;return e.createElement(e.Fragment,null,e.createElement(Ts,{type:"target",position:a,isConnectable:r}),n.label,e.createElement(Ts,{type:"source",position:u,isConnectable:r}))};Ds.displayName="DefaultNode";var Is=(0,e.memo)(Ds),As=function(t){var n=t.data,r=t.isConnectable,o=t.sourcePosition,a=void 0===o?li.Bottom:o;return e.createElement(e.Fragment,null,n.label,e.createElement(Ts,{type:"source",position:a,isConnectable:r}))};As.displayName="InputNode";var Rs=(0,e.memo)(As),Ls=function(t){var n=t.data,r=t.isConnectable,o=t.targetPosition,a=void 0===o?li.Top:o;return e.createElement(e.Fragment,null,e.createElement(Ts,{type:"target",position:a,isConnectable:r}),n.label)};Ls.displayName="OutputNode";var zs=(0,e.memo)(Ls);function $s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Fs=function(t){var n=function(n){var r=n.id,o=n.type,a=n.data,i=n.scale,u=n.xPos,s=n.yPos,c=n.selected,l=n.onClick,f=n.onMouseEnter,d=n.onMouseMove,p=n.onMouseLeave,h=n.onContextMenu,v=n.onNodeDoubleClick,m=n.onNodeDragStart,y=n.onNodeDrag,g=n.onNodeDragStop,b=n.style,w=n.className,_=n.isDraggable,x=n.isSelectable,E=n.isConnectable,k=n.selectNodesOnDrag,S=n.sourcePosition,O=n.targetPosition,P=n.isHidden,C=n.isInitialized,N=n.snapToGrid,j=n.snapGrid,M=n.isDragging,T=n.resizeObserver,I=n.dragHandle,R=Wt((function(e){return e.updateNodeDimensions})),L=Wt((function(e){return e.addSelectedElements})),z=Wt((function(e){return e.updateNodePosDiff})),$=Wt((function(e){return e.unsetNodesSelection})),F=(0,e.useRef)(null),U=(0,e.useMemo)((function(){return{id:r,type:o,position:{x:u,y:s},data:a}}),[r,o,u,s,a]),B=(0,e.useMemo)((function(){return N?j:[1,1]}),[N,j]),V=(0,e.useMemo)((function(){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$s(Object(n),!0).forEach((function(t){D(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({zIndex:c?10:3,transform:"translate(".concat(u,"px,").concat(s,"px)"),pointerEvents:x||_||l||f||d||p?"all":"none",opacity:C?1:0},b)}),[c,u,s,x,_,l,C,b,f,d,p]),H=(0,e.useMemo)((function(){if(f&&!M)return function(e){return f(e,U)}}),[f,M,U]),q=(0,e.useMemo)((function(){if(d&&!M)return function(e){return d(e,U)}}),[d,M,U]),Y=(0,e.useMemo)((function(){if(p&&!M)return function(e){return p(e,U)}}),[p,M,U]),G=(0,e.useMemo)((function(){if(h)return function(e){return h(e,U)}}),[h,U]),X=(0,e.useCallback)((function(e){_||(x&&($(),c||L(U)),null===l||void 0===l||l(e,U))}),[x,c,_,l,U]),K=(0,e.useCallback)((function(e){null===m||void 0===m||m(e,U),k&&x?($(),c||L(U)):k||c||!x||($(),L([]))}),[U,c,k,x,m]),W=(0,e.useCallback)((function(e,t){y&&(U.position.x+=t.deltaX,U.position.y+=t.deltaY,y(e,U)),z({id:r,diff:{x:t.deltaX,y:t.deltaY},isDragging:!0})}),[r,U,y]),Q=(0,e.useCallback)((function(e){if(!M)return!x||k||c||L(U),void(null===l||void 0===l||l(e,U));z({id:U.id,isDragging:!1}),null===g||void 0===g||g(e,U)}),[U,x,k,l,g,M,c]),Z=(0,e.useCallback)((function(e){null===v||void 0===v||v(e,U)}),[U,v]);if((0,e.useLayoutEffect)((function(){F.current&&!P&&R([{id:r,nodeElement:F.current,forceUpdate:!0}])}),[r,P,S,O]),(0,e.useEffect)((function(){if(F.current){var e=F.current;return null===T||void 0===T||T.observe(e),function(){return null===T||void 0===T?void 0:T.unobserve(e)}}}),[]),P)return null;var J=A(["react-flow__node","react-flow__node-".concat(o),w,{selected:c,selectable:x}]);return e.createElement(ku,{onStart:K,onDrag:W,onStop:Q,scale:i,disabled:!_,cancel:".nodrag",nodeRef:F,grid:B,enableUserSelectHack:!1,handle:I},e.createElement("div",{className:J,ref:F,style:V,onMouseEnter:H,onMouseMove:q,onMouseLeave:Y,onContextMenu:G,onClick:X,onDoubleClick:Z,"data-id":r},e.createElement(Ps,{value:r},e.createElement(t,{id:r,data:a,type:o,xPos:u,yPos:s,selected:c,isConnectable:E,sourcePosition:S,targetPosition:O,isDragging:M,dragHandle:I}))))};return n.displayName="NodeWrapper",(0,e.memo)(n)};function Us(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Us(Object(n),!0).forEach((function(t){D(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Us(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Vs=function(t){var n=t.onSelectionChange,r=Qt((function(e){return e.selectedElements}));return(0,e.useEffect)((function(){n(r)}),[r]),null},Hs=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,a;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!==o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(a=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!==o--;)if(!Object.prototype.hasOwnProperty.call(n,a[o]))return!1;for(o=r;0!==o--;){var i=a[o];if(!e(t[i],n[i]))return!1}return!0}return t!==t&&n!==n};function qs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Ys=function(e,t){var n=e.getBoundingClientRect();return{source:Gs(".source",e,n,t),target:Gs(".target",e,n,t)}},Gs=function(e,t,n,r){var o=t.querySelectorAll(e);return o&&o.length?Array.from(o).map((function(e){var t=e.getBoundingClientRect(),o=on(e);return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qs(Object(n),!0).forEach((function(t){D(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:e.getAttribute("data-handleid"),position:e.getAttribute("data-handlepos"),x:(t.left-n.left)/r,y:(t.top-n.top)/r},o)})):null};function Xs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ks(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xs(Object(n),!0).forEach((function(t){D(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ws(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Zs,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case _t:var n=t.payload,r={nextNodes:[],nextEdges:[]},o=n.reduce((function(t,n){if(dn(n)){var r=e.nodes.find((function(e){return e.id===n.id}));if(r){var o=Ks(Ks({},r),n);r.position.x===n.position.x&&r.position.y===n.position.y||(o.__rf.position=n.position),"undefined"!==typeof n.type&&n.type!==r.type&&(o.__rf.width=null),t.nextNodes.push(o)}else t.nextNodes.push(vn(n,e.nodeExtent))}else if(fn(n)){var a=e.edges.find((function(e){return e.id===n.id}));a?t.nextEdges.push(Ks(Ks({},a),n)):t.nextEdges.push(mn(n))}return t}),r),a=o.nextNodes,i=o.nextEdges;return Ks(Ks({},e),{},{nodes:a,edges:i});case xt:var u=e.nodes.map((function(n){var r=t.payload.find((function(e){return e.id===n.id}));if(r){var o=on(r.nodeElement);if(o.width&&o.height&&(n.__rf.width!==o.width||n.__rf.height!==o.height||r.forceUpdate)){var a=Ys(r.nodeElement,e.transform[2]);return Ks(Ks({},n),{},{__rf:Ks(Ks(Ks({},n.__rf),o),{},{handleBounds:a})})}}return n}));return Ks(Ks({},e),{},{nodes:u});case Et:var s=t.payload,c=s.id,l=s.pos,f=l;if(e.snapToGrid){var d=nn(e.snapGrid,2),p=d[0],h=d[1];f={x:p*Math.round(l.x/p),y:h*Math.round(l.y/h)}}var v=e.nodes.map((function(e){return e.id===c?Ks(Ks({},e),{},{__rf:Ks(Ks({},e.__rf),{},{position:f})}):e}));return Ks(Ks({},e),{},{nodes:v});case kt:var m=t.payload,y=m.id,g=m.diff,b=m.isDragging,w=e.nodes.map((function(t){var n;if(y===t.id||null!==(n=e.selectedElements)&&void 0!==n&&n.find((function(e){return e.id===t.id}))){var r=Ks(Ks({},t),{},{__rf:Ks(Ks({},t.__rf),{},{isDragging:b})});return g&&(r.__rf.position={x:t.__rf.position.x+g.x,y:t.__rf.position.y+g.y}),r}return t}));return Ks(Ks({},e),{},{nodes:w});case St:var _=t.payload;return Ks(Ks({},e),{},{selectionActive:!0,userSelectionRect:{width:0,height:0,startX:_.x,startY:_.y,x:_.x,y:_.y,draw:!0}});case Ot:var x,E,k=t.payload,S=null!==(x=e.userSelectionRect.startX)&&void 0!==x?x:0,O=null!==(E=e.userSelectionRect.startY)&&void 0!==E?E:0,P=Ks(Ks({},e.userSelectionRect),{},{x:k.x<S?k.x:S,y:k.y<O?k.y:O,width:Math.abs(k.x-S),height:Math.abs(k.y-O)}),C=_n(e.nodes,P,e.transform,!1,!0),N=xn(C,e.edges),j=[].concat(tn(C),tn(N)),M=!Hs(j,e.selectedElements),T=M?{selectedElements:j.length>0?j:null}:{};return Ks(Ks(Ks({},e),T),{},{userSelectionRect:P});case Pt:var D,I=null===(D=e.selectedElements)||void 0===D?void 0:D.filter((function(e){return dn(e)&&e.__rf})),A=Ks(Ks({},e),{},{selectionActive:!1,userSelectionRect:Ks(Ks({},e.userSelectionRect),{},{draw:!1})});if(I&&0!==I.length){var R=wn(I);A.selectedNodesBbox=R,A.nodesSelectionActive=!0}else A.selectedElements=null,A.nodesSelectionActive=!1;return A;case Nt:var L=t.payload,z=Array.isArray(L)?L:[L],$=!Hs(z,e.selectedElements),F=$?z:e.selectedElements;return Ks(Ks({},e),{},{selectedElements:F});case Mt:var U=e.multiSelectionActive,B=e.selectedElements,V=t.payload,H=Array.isArray(V)?V:[V],q=H;U&&(q=B?[].concat(tn(B),tn(H)):H);var Y=!Hs(q,e.selectedElements),G=Y?q:e.selectedElements;return Ks(Ks({},e),{},{selectedElements:G});case It:var X=t.payload,K=X.d3Zoom,W=X.d3Selection,Q=X.d3ZoomHandler,Z=X.transform;return Ks(Ks({},e),{},{d3Zoom:K,d3Selection:W,d3ZoomHandler:Q,transform:Z});case At:var J,ee=t.payload;return null===(J=e.d3Zoom)||void 0===J||J.scaleExtent([ee,e.maxZoom]),Ks(Ks({},e),{},{minZoom:ee});case Rt:var te,ne=t.payload;return null===(te=e.d3Zoom)||void 0===te||te.scaleExtent([e.minZoom,ne]),Ks(Ks({},e),{},{maxZoom:ne});case Lt:var re,oe=t.payload;return null===(re=e.d3Zoom)||void 0===re||re.translateExtent(oe),Ks(Ks({},e),{},{translateExtent:oe});case Xt:var ae=t.payload;return Ks(Ks({},e),{},{nodeExtent:ae,nodes:e.nodes.map((function(e){return Ks(Ks({},e),{},{__rf:Ks(Ks({},e.__rf),{},{position:un(e.__rf.position,ae)})})}))});case yt:case gt:case bt:case wt:case jt:case Ct:case Tt:case Dt:case zt:case $t:case Ft:case Ut:case Bt:case Vt:case Ht:case qt:case Yt:case Gt:return Ks(Ks({},e),t.payload);default:return e}}function Qs(e){return U(Ws,e)}var Zs={width:0,height:0,transform:[0,0,1],nodes:[],edges:[],selectedElements:null,selectedNodesBbox:{x:0,y:0,width:0,height:0},d3Zoom:null,d3Selection:null,d3ZoomHandler:void 0,minZoom:.5,maxZoom:2,translateExtent:[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],nodeExtent:[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],nodesSelectionActive:!1,selectionActive:!1,userSelectionRect:{startX:0,startY:0,x:0,y:0,width:0,height:0,draw:!1},connectionNodeId:null,connectionHandleId:null,connectionHandleType:"source",connectionPosition:{x:0,y:0},connectionMode:pi.Strict,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,elementsSelectable:!0,multiSelectionActive:!1,reactFlowVersion:"9.7.4"},Js=Qs(Zs),ec=function(t){var n=t.children,r=(0,e.useContext)(xe);return(0,e.useMemo)((function(){var e,t;return null===r||void 0===r||null===(e=r.store)||void 0===e||null===(t=e.getState())||void 0===t?void 0:t.reactFlowVersion}),[r])?e.createElement(e.Fragment,null,n):e.createElement(Ce,{store:Js},n)};function tc(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!==typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}ec.displayName="ReactFlowWrapper";tc(".react-flow{height:100%;overflow:hidden;position:relative;width:100%}.react-flow__pane,.react-flow__renderer,.react-flow__selectionpane{height:100%;left:0;position:absolute;top:0;width:100%}.react-flow__pane{z-index:1}.react-flow__renderer{z-index:4}.react-flow__selectionpane{z-index:5}.react-flow__edges,.react-flow__selection{left:0;position:absolute;top:0}.react-flow__edges{pointer-events:none;z-index:2}.react-flow__edge{pointer-events:visibleStroke}.react-flow__edge.inactive{pointer-events:none}@-webkit-keyframes dashdraw{0%{stroke-dashoffset:10}}@keyframes dashdraw{0%{stroke-dashoffset:10}}.react-flow__edge-path{fill:none}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;-webkit-animation:dashdraw .5s linear infinite;animation:dashdraw .5s linear infinite}.react-flow__connection-path{fill:none}.react-flow__nodes{height:100%;pointer-events:none;width:100%;z-index:3}.react-flow__node,.react-flow__nodes{position:absolute;transform-origin:0 0}.react-flow__node{pointer-events:all;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.react-flow__nodesselection{height:100%;left:0;pointer-events:none;position:absolute;top:0;transform-origin:left top;width:100%;z-index:3}.react-flow__nodesselection-rect{cursor:-webkit-grab;cursor:grab;pointer-events:all;position:absolute}.react-flow__handle{pointer-events:none}.react-flow__handle.connectable{pointer-events:all}.react-flow__handle-bottom{bottom:-4px;left:50%;top:auto;transform:translate(-50%)}.react-flow__handle-top{left:50%;top:-4px;transform:translate(-50%)}.react-flow__handle-left{left:-4px;top:50%;transform:translateY(-50%)}.react-flow__handle-right{right:-4px;top:50%;transform:translateY(-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__background{height:100%;left:0;position:absolute;top:0;width:100%}.react-flow__controls{bottom:10px;left:10px;position:absolute;z-index:5}.react-flow__controls-button{border:none;height:24px;width:24px}.react-flow__controls-button svg{width:100%}.react-flow__minimap{bottom:10px;position:absolute;right:10px;z-index:5}");tc(".react-flow__selection{background:rgba(0,89,220,.08);border:1px dotted rgba(0,89,220,.8)}.react-flow__edge.selected .react-flow__edge-path{stroke:#555}.react-flow__edge.animated path{stroke-dasharray:5;-webkit-animation:dashdraw .5s linear infinite;animation:dashdraw .5s linear infinite}.react-flow__edge.updating .react-flow__edge-path{stroke:#777}.react-flow__edge-path{stroke:#b1b1b7;stroke-width:1}.react-flow__edge-text{font-size:10px}.react-flow__edge-textbg{fill:#fff}.react-flow__connection-path{stroke:#b1b1b7;stroke-width:1}.react-flow__node{cursor:-webkit-grab;cursor:grab}.react-flow__node-default,.react-flow__node-input,.react-flow__node-output{border-radius:3px;border-style:solid;border-width:1px;color:#222;font-size:12px;padding:10px;text-align:center;width:150px}.react-flow__node-default.selectable:hover,.react-flow__node-input.selectable:hover,.react-flow__node-output.selectable:hover{box-shadow:0 1px 4px 1px rgba(0,0,0,.08)}.react-flow__node-input{background:#fff;border-color:#0041d0}.react-flow__node-input.selected,.react-flow__node-input.selected:hover{box-shadow:0 0 0 .5px #0041d0}.react-flow__node-input .react-flow__handle{background:#0041d0}.react-flow__node-default{background:#fff;border-color:#1a192b}.react-flow__node-default.selected,.react-flow__node-default.selected:hover{box-shadow:0 0 0 .5px #1a192b}.react-flow__node-default .react-flow__handle{background:#1a192b}.react-flow__node-output{background:#fff;border-color:#ff0072}.react-flow__node-output.selected,.react-flow__node-output.selected:hover{box-shadow:0 0 0 .5px #ff0072}.react-flow__node-output .react-flow__handle{background:#ff0072}.react-flow__nodesselection-rect{background:rgba(0,89,220,.08);border:1px dotted rgba(0,89,220,.8)}.react-flow__handle{background:#555;border:1px solid #fff;border-radius:100%;height:6px;position:absolute;width:6px}.react-flow__handle.connectable{cursor:crosshair}.react-flow__minimap{background-color:#fff}.react-flow__controls{box-shadow:0 0 2px 1px rgba(0,0,0,.08)}.react-flow__controls-button{align-items:center;background:#fefefe;border-bottom:1px solid #eee;box-sizing:content-box;cursor:pointer;display:flex;height:16px;justify-content:center;padding:5px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:16px}.react-flow__controls-button svg{max-height:12px;max-width:12px}.react-flow__controls-button:hover{background:#f4f4f4}");var nc=["elements","className","nodeTypes","edgeTypes","onElementClick","onLoad","onMove","onMoveStart","onMoveEnd","onElementsRemove","onConnect","onConnectStart","onConnectStop","onConnectEnd","onNodeMouseEnter","onNodeMouseMove","onNodeMouseLeave","onNodeContextMenu","onNodeDoubleClick","onNodeDragStart","onNodeDrag","onNodeDragStop","onSelectionChange","onSelectionDragStart","onSelectionDrag","onSelectionDragStop","onSelectionContextMenu","connectionMode","connectionLineType","connectionLineStyle","connectionLineComponent","deleteKeyCode","selectionKeyCode","multiSelectionKeyCode","zoomActivationKeyCode","snapToGrid","snapGrid","onlyRenderVisibleElements","selectNodesOnDrag","nodesDraggable","nodesConnectable","elementsSelectable","minZoom","maxZoom","defaultZoom","defaultPosition","translateExtent","preventScrolling","nodeExtent","arrowHeadColor","markerEndId","zoomOnScroll","zoomOnPinch","panOnScroll","panOnScrollSpeed","panOnScrollMode","zoomOnDoubleClick","paneMoveable","onPaneClick","onPaneScroll","onPaneContextMenu","children","onEdgeUpdate","onEdgeContextMenu","onEdgeDoubleClick","onEdgeMouseEnter","onEdgeMouseMove","onEdgeMouseLeave","onEdgeUpdateStart","onEdgeUpdateEnd","edgeUpdaterRadius","nodeTypesId","edgeTypesId"];function rc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rc(Object(n),!0).forEach((function(t){D(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ac={input:Rs,default:Is,output:zs},ic={default:Uu,straight:os,step:rs,smoothstep:Qu},uc=(0,e.forwardRef)((function(t,n){var r=t.elements,o=void 0===r?[]:r,a=t.className,i=t.nodeTypes,u=void 0===i?ac:i,s=t.edgeTypes,c=void 0===s?ic:s,l=t.onElementClick,f=t.onLoad,d=t.onMove,p=t.onMoveStart,h=t.onMoveEnd,v=t.onElementsRemove,m=t.onConnect,y=t.onConnectStart,g=t.onConnectStop,b=t.onConnectEnd,w=t.onNodeMouseEnter,_=t.onNodeMouseMove,x=t.onNodeMouseLeave,E=t.onNodeContextMenu,k=t.onNodeDoubleClick,S=t.onNodeDragStart,O=t.onNodeDrag,P=t.onNodeDragStop,C=t.onSelectionChange,N=t.onSelectionDragStart,j=t.onSelectionDrag,M=t.onSelectionDragStop,T=t.onSelectionContextMenu,D=t.connectionMode,R=void 0===D?pi.Strict:D,L=t.connectionLineType,z=void 0===L?hi.Bezier:L,$=t.connectionLineStyle,F=t.connectionLineComponent,U=t.deleteKeyCode,B=void 0===U?"Backspace":U,V=t.selectionKeyCode,H=void 0===V?"Shift":V,q=t.multiSelectionKeyCode,Y=void 0===q?"Meta":q,G=t.zoomActivationKeyCode,X=void 0===G?"Meta":G,K=t.snapToGrid,W=void 0!==K&&K,Q=t.snapGrid,Z=void 0===Q?[15,15]:Q,J=t.onlyRenderVisibleElements,ee=void 0!==J&&J,te=t.selectNodesOnDrag,ne=void 0===te||te,re=t.nodesDraggable,oe=t.nodesConnectable,ae=t.elementsSelectable,ie=t.minZoom,ue=t.maxZoom,se=t.defaultZoom,ce=void 0===se?1:se,le=t.defaultPosition,fe=void 0===le?[0,0]:le,de=t.translateExtent,pe=t.preventScrolling,he=void 0===pe||pe,ve=t.nodeExtent,me=t.arrowHeadColor,ye=void 0===me?"#b1b1b7":me,ge=t.markerEndId,be=t.zoomOnScroll,we=void 0===be||be,_e=t.zoomOnPinch,xe=void 0===_e||_e,Ee=t.panOnScroll,ke=void 0!==Ee&&Ee,Se=t.panOnScrollSpeed,Oe=void 0===Se?.5:Se,Pe=t.panOnScrollMode,Ce=void 0===Pe?vi.Free:Pe,Ne=t.zoomOnDoubleClick,je=void 0===Ne||Ne,Me=t.paneMoveable,Te=void 0===Me||Me,De=t.onPaneClick,Ie=t.onPaneScroll,Ae=t.onPaneContextMenu,Re=t.children,Le=t.onEdgeUpdate,ze=t.onEdgeContextMenu,$e=t.onEdgeDoubleClick,Fe=t.onEdgeMouseEnter,Ue=t.onEdgeMouseMove,Be=t.onEdgeMouseLeave,Ve=t.onEdgeUpdateStart,He=t.onEdgeUpdateEnd,qe=t.edgeUpdaterRadius,Ye=void 0===qe?10:qe,Ge=t.nodeTypesId,Xe=void 0===Ge?"1":Ge,Ke=t.edgeTypesId,We=void 0===Ke?"1":Ke,Qe=I(t,nc),Ze=(0,e.useMemo)((function(){return function(e){var t={input:Fs(e.input||Rs),default:Fs(e.default||Is),output:Fs(e.output||zs)},n=Object.keys(e).filter((function(e){return!["input","default","output"].includes(e)})).reduce((function(t,n){return t[n]=Fs(e[n]||Is),t}),{});return Bs(Bs({},t),n)}(u)}),[Xe]),Je=(0,e.useMemo)((function(){return function(e){var t={default:fs(e.default||Uu),straight:fs(e.bezier||os),step:fs(e.step||rs),smoothstep:fs(e.step||Qu)},n=Object.keys(e).filter((function(e){return!["default","bezier"].includes(e)})).reduce((function(t,n){return t[n]=fs(e[n]||Uu),t}),{});return ps(ps({},t),n)}(c)}),[We]),et=A(["react-flow",a]);return e.createElement("div",oc(oc({},Qe),{},{ref:n,className:et}),e.createElement(ec,null,e.createElement(ks,{onLoad:f,onMove:d,onMoveStart:p,onMoveEnd:h,onElementClick:l,onNodeMouseEnter:w,onNodeMouseMove:_,onNodeMouseLeave:x,onNodeContextMenu:E,onNodeDoubleClick:k,onNodeDragStart:S,onNodeDrag:O,onNodeDragStop:P,nodeTypes:Ze,edgeTypes:Je,connectionMode:R,connectionLineType:z,connectionLineStyle:$,connectionLineComponent:F,selectionKeyCode:H,onElementsRemove:v,deleteKeyCode:B,multiSelectionKeyCode:Y,zoomActivationKeyCode:X,onConnect:m,onConnectStart:y,onConnectStop:g,onConnectEnd:b,snapToGrid:W,snapGrid:Z,onlyRenderVisibleElements:ee,nodesDraggable:re,nodesConnectable:oe,elementsSelectable:ae,selectNodesOnDrag:ne,minZoom:ie,maxZoom:ue,defaultZoom:ce,defaultPosition:fe,translateExtent:de,preventScrolling:he,nodeExtent:ve,arrowHeadColor:ye,markerEndId:ge,zoomOnScroll:we,zoomOnPinch:xe,zoomOnDoubleClick:je,panOnScroll:ke,panOnScrollSpeed:Oe,panOnScrollMode:Ce,paneMoveable:Te,onPaneClick:De,onPaneScroll:Ie,onPaneContextMenu:Ae,onSelectionDragStart:N,onSelectionDrag:j,onSelectionDragStop:M,onSelectionContextMenu:T,onEdgeUpdate:Le,onEdgeContextMenu:ze,onEdgeDoubleClick:$e,onEdgeMouseEnter:Fe,onEdgeMouseMove:Ue,onEdgeMouseLeave:Be,onEdgeUpdateStart:Ve,onEdgeUpdateEnd:He,edgeUpdaterRadius:Ye}),e.createElement(Ss,{elements:o}),C&&e.createElement(Vs,{onSelectionChange:C}),Re))}));uc.displayName="ReactFlow";var sc=function(t){var n=t.x,r=t.y,o=t.width,a=t.height,i=t.style,u=t.color,s=t.strokeColor,c=t.strokeWidth,l=t.className,f=t.borderRadius,d=t.shapeRendering,p=i||{},h=p.background,v=p.backgroundColor,m=u||h||v;return e.createElement("rect",{className:A(["react-flow__minimap-node",l]),x:n,y:r,rx:f,ry:f,width:o,height:a,fill:m,stroke:s,strokeWidth:c,shapeRendering:d})};sc.displayName="MiniMapNode";var cc=(0,e.memo)(sc),lc=function(t){var n,r=t.style,o=t.className,a=t.nodeStrokeColor,i=void 0===a?"#555":a,u=t.nodeColor,s=void 0===u?"#fff":u,c=t.nodeClassName,l=void 0===c?"":c,f=t.nodeBorderRadius,d=void 0===f?5:f,p=t.nodeStrokeWidth,h=void 0===p?2:p,v=t.maskColor,m=void 0===v?"rgb(240, 242, 243, 0.7)":v,y=Qt((function(e){return e.width})),g=Qt((function(e){return e.height})),b=nn(Qt((function(e){return e.transform})),3),w=b[0],_=b[1],x=b[2],E=Qt((function(e){return e.nodes})),k=A(["react-flow__minimap",o]),S=(null===r||void 0===r?void 0:r.width)||200,O=(null===r||void 0===r?void 0:r.height)||150,P=s instanceof Function?s:function(){return s},C=i instanceof Function?i:function(){return i},N=l instanceof Function?l:function(){return l},j=E&&E.length,M=wn(E),T={x:-w/x,y:-_/x,width:y/x,height:g/x},D=j?(n=T,bn(yn(gn(M),gn(n)))):T,I=D.width/S,R=D.height/O,L=Math.max(I,R),z=L*S,$=L*O,F=5*L,U=D.x-(z-D.width)/2-F,B=D.y-($-D.height)/2-F,V=z+2*F,H=$+2*F,q="undefined"===typeof window||window.chrome?"crispEdges":"geometricPrecision";return e.createElement("svg",{width:S,height:O,viewBox:"".concat(U," ").concat(B," ").concat(V," ").concat(H),style:r,className:k},E.filter((function(e){return!e.isHidden})).map((function(t){return e.createElement(cc,{key:t.id,x:t.__rf.position.x,y:t.__rf.position.y,width:t.__rf.width,height:t.__rf.height,style:t.style,className:N(t),color:P(t),borderRadius:d,strokeColor:C(t),strokeWidth:h,shapeRendering:q})})),e.createElement("path",{className:"react-flow__minimap-mask",d:"M".concat(U-F,",").concat(B-F,"h").concat(V+2*F,"v").concat(H+2*F,"h").concat(-V-2*F,"z\n M").concat(T.x,",").concat(T.y,"h").concat(T.width,"v").concat(T.height,"h").concat(-T.width,"z"),fill:m,fillRule:"evenodd"}))};lc.displayName="MiniMap";var fc;function dc(){return dc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dc.apply(this,arguments)}var pc,hc=function(t){return e.createElement("svg",dc({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},t),fc||(fc=e.createElement("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})))};function vc(){return vc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vc.apply(this,arguments)}var mc,yc=function(t){return e.createElement("svg",vc({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5"},t),pc||(pc=e.createElement("path",{d:"M0 0h32v4.2H0z"})))};function gc(){return gc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gc.apply(this,arguments)}var bc,wc=function(t){return e.createElement("svg",gc({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30"},t),mc||(mc=e.createElement("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0 0 27.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94a.919.919 0 0 1-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"})))};function _c(){return _c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_c.apply(this,arguments)}var xc,Ec=function(t){return e.createElement("svg",_c({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32"},t),bc||(bc=e.createElement("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 0 0 0 13.714v15.238A3.056 3.056 0 0 0 3.048 32h18.285a3.056 3.056 0 0 0 3.048-3.048V13.714a3.056 3.056 0 0 0-3.048-3.047zM12.19 24.533a3.056 3.056 0 0 1-3.047-3.047 3.056 3.056 0 0 1 3.047-3.048 3.056 3.056 0 0 1 3.048 3.048 3.056 3.056 0 0 1-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"})))};function kc(){return kc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kc.apply(this,arguments)}var Sc=function(t){return e.createElement("svg",kc({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32"},t),xc||(xc=e.createElement("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 0 0 0 13.714v15.238A3.056 3.056 0 0 0 3.048 32h18.285a3.056 3.056 0 0 0 3.048-3.048V13.714a3.056 3.056 0 0 0-3.048-3.047zM12.19 24.533a3.056 3.056 0 0 1-3.047-3.047 3.056 3.056 0 0 1 3.047-3.048 3.056 3.056 0 0 1 3.048 3.048 3.056 3.056 0 0 1-3.048 3.047z"})))},Oc=["children","className"];function Pc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Cc=function(t){var n=t.children,r=t.className,o=I(t,Oc);return e.createElement("button",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pc(Object(n),!0).forEach((function(t){D(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({type:"button",className:A(["react-flow__controls-button",r])},o),n)},Nc=function(t){var n=t.style,r=t.showZoom,o=void 0===r||r,a=t.showFitView,i=void 0===a||a,u=t.showInteractive,s=void 0===u||u,c=t.fitViewParams,l=t.onZoomIn,f=t.onZoomOut,d=t.onFitView,p=t.onInteractiveChange,h=t.className,v=t.children,m=nn((0,e.useState)(!1),2),y=m[0],g=m[1],b=Wt((function(e){return e.setInteractive})),w=xs(),_=w.zoomIn,x=w.zoomOut,E=w.fitView,k=Qt((function(e){return e.nodesDraggable&&e.nodesConnectable&&e.elementsSelectable})),S=A(["react-flow__controls",h]),O=(0,e.useCallback)((function(){null===_||void 0===_||_(),null===l||void 0===l||l()}),[_,l]),P=(0,e.useCallback)((function(){null===x||void 0===x||x(),null===f||void 0===f||f()}),[x,f]),C=(0,e.useCallback)((function(){null===E||void 0===E||E(c),null===d||void 0===d||d()}),[E,c,d]),N=(0,e.useCallback)((function(){null===b||void 0===b||b(!k),null===p||void 0===p||p(!k)}),[k,b,p]);return(0,e.useEffect)((function(){g(!0)}),[]),y?e.createElement("div",{className:S,style:n},o&&e.createElement(e.Fragment,null,e.createElement(Cc,{onClick:O,className:"react-flow__controls-zoomin"},e.createElement(hc,null)),e.createElement(Cc,{onClick:P,className:"react-flow__controls-zoomout"},e.createElement(yc,null))),i&&e.createElement(Cc,{className:"react-flow__controls-fitview",onClick:C},e.createElement(wc,null)),s&&e.createElement(Cc,{className:"react-flow__controls-interactive",onClick:N},k?e.createElement(Sc,null):e.createElement(Ec,null)),v):null};Nc.displayName="Controls";var jc,Mc=(0,e.memo)(Nc);function Tc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Dc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tc(Object(n),!0).forEach((function(t){D(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ic=(D(jc={},di.Dots,"#81818a"),D(jc,di.Lines,"#eee"),jc),Ac=function(t){var n=t.variant,r=void 0===n?di.Dots:n,o=t.gap,a=void 0===o?15:o,i=t.size,u=void 0===i?.4:i,s=t.color,c=t.style,l=t.className,f=nn(Qt((function(e){return e.transform})),3),d=f[0],p=f[1],h=f[2],v=(0,e.useMemo)((function(){return"pattern-".concat(Math.floor(1e5*Math.random()))}),[]),m=A(["react-flow__background",l]),y=a*h,g=d%y,b=p%y,w=r===di.Lines,_=s||Ic[r],x=w?function(t,n,r){return e.createElement("path",{stroke:r,strokeWidth:n,d:"M".concat(t/2," 0 V").concat(t," M0 ").concat(t/2," H").concat(t)})}(y,u,_):function(t,n){return e.createElement("circle",{cx:t,cy:t,r:t,fill:n})}(u*h,_);return e.createElement("svg",{className:m,style:Dc(Dc({},c),{},{width:"100%",height:"100%"})},e.createElement("pattern",{id:v,x:g,y:b,width:y,height:y,patternUnits:"userSpaceOnUse"},x),e.createElement("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:"url(#".concat(v,")")}))};Ac.displayName="Background";var Rc=(0,e.memo)(Ac),Lc="Section_Section__TjDMz",zc=n(184),$c=function(e){return(0,zc.jsx)("h2",{className:Lc,children:e.title})},Fc="Card_Card__Z9gdG",Uc=function(e){return(0,zc.jsx)("div",{className:Fc,children:e.children})},Bc="Button_Button__T-41v",Vc="Button_inline__+XTDp",Hc="Button_tooltip__MAJLR",qc=function(e){var t=Bc;"inline"===e.kind&&(t+=" "+Vc);var n="";return void 0!==e.tooltip&&(n=(0,zc.jsx)("span",{className:Hc,children:e.tooltip})),(0,zc.jsxs)("button",{className:t,onClick:e.onClick,disabled:e.disabled,children:[n,e.label]})},Yc="PipelineBlock_PipelineBlock__uDJMa",Gc="PipelineBlock_PlantNode__Ms1c3",Xc="PipelineBlock_ProductNode__OA0PF",Kc=n(9790),Wc=n.n(Kc);window.nextX=15,window.nextY=15;var Qc=function(){return window.nextY+=60,window.nextY>=500&&(window.nextY=15,window.nextX+=150),[window.nextX,window.nextY]},Zc=function(t){for(var n=[],r={},o=!1,a=0,i=Object.entries(t.products);a<i.length;a++){var u=f(i[a],2),s=u[0],c=u[1];c.x&&c.y||(o=!0),r[s]="product",n.push({id:s,data:{label:s,type:"product"},position:{x:c.x,y:c.y},sourcePosition:"right",targetPosition:"left",className:Xc})}for(var l=0,d=Object.entries(t.plants);l<d.length;l++){var p=f(d[l],2),h=p[0],v=p[1];v.x&&v.y||(o=!0),r[h]="plant",n.push({id:h,data:{label:h,type:"plant"},position:{x:v.x,y:v.y},sourcePosition:"right",targetPosition:"left",className:Gc}),void 0!==v.input&&n.push({id:"".concat(v.input,"-").concat(h),source:v.input,target:h,animated:!0,style:{stroke:"black"},selectable:!1});for(var m=0,y=Object.entries(v["outputs (tonne/tonne)"]);m<y.length;m++){var g=f(y[m],1)[0];n.push({id:"".concat(h,"-").concat(g),source:h,target:g,animated:!0,style:{stroke:"black"},selectable:!1})}}var b=function(){var e=function(e){var t=new(Wc().graphlib.Graph);return t.setDefaultEdgeLabel((function(){return{}})),t.setGraph({rankdir:"LR"}),e.forEach((function(e){dn(e)?t.setNode(e.id,{width:125,height:45}):t.setEdge(e.source,e.target)})),Wc().layout(t),e.map((function(e){if(dn(e)){var n=t.node(e.id);e.position={x:15+n.x-62.5,y:15+n.y-22.5}}return e}))}(n);e.forEach((function(e){dn(e)&&("plant"===e.data.type?t.onMovePlant(e.data.label,e.position.x,e.position.y):t.onMoveProduct(e.data.label,e.position.x,e.position.y))}))};return(0,e.useEffect)((function(){o&&b()}),[o]),(0,zc.jsxs)(zc.Fragment,{children:[(0,zc.jsx)($c,{title:"Pipeline"}),(0,zc.jsxs)(Uc,{children:[(0,zc.jsx)("div",{className:Yc,children:(0,zc.jsxs)(uc,{elements:n,onNodeDoubleClick:function(e,n){var o=n.data.label,a=window.prompt("Enter new name",o);void 0!==a&&0!==a.length&&(a in r||("plant"===n.data.type?t.onRenamePlant(o,a):t.onRenameProduct(o,a)))},onNodeDragStop:function(e,n){"plant"===n.data.type?t.onMovePlant(n.data.label,n.position.x,n.position.y):t.onMoveProduct(n.data.label,n.position.x,n.position.y)},onConnect:function(e){var n=r[e.source],o=r[e.target];"product"===n&&"plant"===o?t.onSetPlantInput(e.target,e.source):"plant"===n&&"product"===o&&t.onAddPlantOutput(e.source,e.target)},onElementsRemove:function(e){e.forEach((function(e){e.id in r&&("plant"===e.data.type?t.onRemovePlant(e.data.label):t.onRemoveProduct(e.data.label))}))},deleteKeyCode:46,maxZoom:1.25,minZoom:.5,snapToGrid:!0,preventScrolling:!1,children:[(0,zc.jsx)(Rc,{}),(0,zc.jsx)(Mc,{showInteractive:!1})]})}),(0,zc.jsxs)("div",{style:{textAlign:"center"},children:[(0,zc.jsx)(qc,{label:"Add product",kind:"inline",onClick:t.onAddProduct}),(0,zc.jsx)(qc,{label:"Add plant",kind:"inline",onClick:t.onAddPlant}),(0,zc.jsx)(qc,{label:"Auto Layout",kind:"inline",onClick:b}),(0,zc.jsx)(qc,{label:"?",kind:"inline",tooltip:"Drag from one connector to another to create links between products and plants. Double click to rename an element. Click an element to select and move it. Press the [Delete] key to remove it."})]})]})]})},Jc={int:new RegExp("^[0-9]+$"),intList:new RegExp("[[0-9]*]$"),float:new RegExp("^[0-9]*\\.?[0-9]*$"),floatList:new RegExp("^[?[0-9,.]*]?$")},el=function(e,t){return!!Jc[e].test(t)},tl=function(e){return(0,zc.jsx)(zc.Fragment,{children:e.children})},nl="Form_FormRow__+cfai",rl="Form_FormRow_unit__gGptt",ol="Form_invalid__kTIKP",al=e.forwardRef((function(e,t){var n="";e.unit&&(n=(0,zc.jsxs)("span",{className:rl,children:["(",e.unit,")"]}));var r="";void 0!==e.tooltip&&(r=(0,zc.jsx)(qc,{label:"?",kind:"inline",tooltip:e.tooltip}));var o=!0;e.disabled||void 0===e.validate||(o=el(e.validate,e.value));var a="";return o||(a=ol),(0,zc.jsxs)("div",{className:nl,children:[(0,zc.jsxs)("label",{children:[e.label," ",n]}),(0,zc.jsx)("input",{type:"text",placeholder:e.default,disabled:e.disabled,value:e.value,className:a,onChange:function(t){return e.onChange(t.target.value)},ref:t}),r]})})),il=al,ul=function(e){var t=function(t,n){e.value[t]=n,e.onChange(e.value)};return(0,zc.jsxs)(zc.Fragment,{children:[(0,zc.jsx)($c,{title:"Parameters"}),(0,zc.jsx)(Uc,{children:(0,zc.jsxs)(tl,{children:[(0,zc.jsx)(il,{label:"Time horizon",unit:"years",tooltip:"Number of years in the simulation.",value:e.value["time horizon (years)"],onChange:function(e){return t("time horizon (years)",e)},validate:"int"}),(0,zc.jsx)(il,{label:"Building period",unit:"years",tooltip:"List of years in which we are allowed to open new plants. For example, if this parameter is set to [1,2,3], we can only open plants during the first three years. By default, this equals [1]; that is, plants can only be opened during the first year.",value:e.value["building period (years)"],onChange:function(e){return t("building period (years)",e)},validate:"intList"}),(0,zc.jsx)(il,{label:"Inflation rate",unit:"%",tooltip:"Rate at which costs change from one time period to the next. This is applied uniformly to all costs.",value:e.value["inflation rate (%)"],onChange:function(e){return t("inflation rate (%)",e)},validate:"float"})]})})]})},sl=function(t){var n="";void 0!==t.tooltip&&(n=(0,zc.jsx)(qc,{label:"?",kind:"inline",tooltip:t.tooltip}));var r=(0,e.useRef)();return(0,zc.jsxs)("div",{className:nl,children:[(0,zc.jsx)("label",{children:t.label}),(0,zc.jsx)("input",{type:"text",value:t.value,disabled:"disabled"}),(0,zc.jsx)(qc,{label:"Upload",kind:"inline",onClick:function(){r.current.click()}}),(0,zc.jsx)(qc,{label:"Download",kind:"inline",onClick:t.onDownload,disabled:t.disableDownload}),(0,zc.jsx)(qc,{label:"Clear",kind:"inline",onClick:t.onClear,disabled:t.disableClear}),(0,zc.jsx)(qc,{label:"Template",kind:"inline",onClick:t.onTemplate}),n,(0,zc.jsx)("input",{type:"file",ref:r,accept:t.accept,style:{display:"none"},onChange:function(){var e=r.current.files[0];if(e){var n=new FileReader;n.addEventListener("load",(function(){t.onFile(n.result)})),n.readAsText(e)}r.current.value=""}})]})};var cl=function(e){var t=l({},e.value);e.disableKeys||(t[""]="0");var n="";e.unit&&(n=(0,zc.jsxs)("span",{className:rl,children:["(",e.unit,")"]}));var r="";void 0!==e.tooltip&&(r=(0,zc.jsx)(qc,{label:"?",kind:"inline",tooltip:e.tooltip}));var o=function(n,r){var o=function(e,t,n){return Object.keys(e).reduce((function(r,o){return o===t?r[n]=e[t]:r[o]=e[o],r}),{})}(t,n,r);""in o||(o[""]=""),e.onChange(o)},a=[];return Object.keys(t).forEach((function(i,u){var s=(0,zc.jsxs)("span",{children:[e.label," ",n]});u>0&&(s="");var c=!0;void 0!==e.validate&&(c=el(e.validate,t[i]));var f="";c||(f=ol),a.push((0,zc.jsxs)("div",{className:nl,children:[(0,zc.jsx)("label",{children:s}),(0,zc.jsx)("input",{type:"text","data-index":u,value:i,placeholder:e.keyPlaceholder,disabled:e.disableKeys,onChange:function(e){return o(i,e.target.value)}}),(0,zc.jsx)("input",{type:"text","data-index":u,value:t[i],placeholder:e.valuePlaceholder,className:f,onChange:function(n){return function(n,r){var o=l({},t);o[n]=r,e.onChange(o)}(i,n.target.value)}}),r]},u))})),(0,zc.jsx)(zc.Fragment,{children:a})};function ll(){}function fl(e){return null==e?ll:function(){return this.querySelector(e)}}function dl(e){return null==e?[]:Array.isArray(e)?e:Array.from(e)}function pl(){return[]}function hl(e){return null==e?pl:function(){return this.querySelectorAll(e)}}function vl(e){return function(){return this.matches(e)}}function ml(e){return function(t){return t.matches(e)}}var yl=Array.prototype.find;function gl(){return this.firstElementChild}var bl=Array.prototype.filter;function wl(){return Array.from(this.children)}function _l(e){return new Array(e.length)}function xl(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function El(e){return function(){return e}}function kl(e,t,n,r,o,a){for(var i,u=0,s=t.length,c=a.length;u<c;++u)(i=t[u])?(i.__data__=a[u],r[u]=i):n[u]=new xl(e,a[u]);for(;u<s;++u)(i=t[u])&&(o[u]=i)}function Sl(e,t,n,r,o,a,i){var u,s,c,l=new Map,f=t.length,d=a.length,p=new Array(f);for(u=0;u<f;++u)(s=t[u])&&(p[u]=c=i.call(s,s.__data__,u,t)+"",l.has(c)?o[u]=s:l.set(c,s));for(u=0;u<d;++u)c=i.call(e,a[u],u,a)+"",(s=l.get(c))?(r[u]=s,s.__data__=a[u],l.delete(c)):n[u]=new xl(e,a[u]);for(u=0;u<f;++u)(s=t[u])&&l.get(p[u])===s&&(o[u]=s)}function Ol(e){return e.__data__}function Pl(e){return"object"===typeof e&&"length"in e?e:Array.from(e)}function Cl(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}xl.prototype={constructor:xl,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var Nl="http://www.w3.org/1999/xhtml",jl={svg:"http://www.w3.org/2000/svg",xhtml:Nl,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Ml(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),jl.hasOwnProperty(t)?{space:jl[t],local:e}:e}function Tl(e){return function(){this.removeAttribute(e)}}function Dl(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Il(e,t){return function(){this.setAttribute(e,t)}}function Al(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Rl(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function Ll(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function zl(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function $l(e){return function(){this.style.removeProperty(e)}}function Fl(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Ul(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Bl(e,t){return e.style.getPropertyValue(t)||zl(e).getComputedStyle(e,null).getPropertyValue(t)}function Vl(e){return function(){delete this[e]}}function Hl(e,t){return function(){this[e]=t}}function ql(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function Yl(e){return e.trim().split(/^|\s+/)}function Gl(e){return e.classList||new Xl(e)}function Xl(e){this._node=e,this._names=Yl(e.getAttribute("class")||"")}function Kl(e,t){for(var n=Gl(e),r=-1,o=t.length;++r<o;)n.add(t[r])}function Wl(e,t){for(var n=Gl(e),r=-1,o=t.length;++r<o;)n.remove(t[r])}function Ql(e){return function(){Kl(this,e)}}function Zl(e){return function(){Wl(this,e)}}function Jl(e,t){return function(){(t.apply(this,arguments)?Kl:Wl)(this,e)}}function ef(){this.textContent=""}function tf(e){return function(){this.textContent=e}}function nf(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function rf(){this.innerHTML=""}function of(e){return function(){this.innerHTML=e}}function af(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function uf(){this.nextSibling&&this.parentNode.appendChild(this)}function sf(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function cf(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Nl&&t.documentElement.namespaceURI===Nl?t.createElement(e):t.createElementNS(n,e)}}function lf(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function ff(e){var t=Ml(e);return(t.local?lf:cf)(t)}function df(){return null}function pf(){var e=this.parentNode;e&&e.removeChild(this)}function hf(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function vf(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function mf(e){return e.trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}function yf(e){return function(){var t=this.__on;if(t){for(var n,r=0,o=-1,a=t.length;r<a;++r)n=t[r],e.type&&n.type!==e.type||n.name!==e.name?t[++o]=n:this.removeEventListener(n.type,n.listener,n.options);++o?t.length=o:delete this.__on}}}function gf(e,t,n){return function(){var r,o=this.__on,a=function(e){return function(t){e.call(this,t,this.__data__)}}(t);if(o)for(var i=0,u=o.length;i<u;++i)if((r=o[i]).type===e.type&&r.name===e.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=a,r.options=n),void(r.value=t);this.addEventListener(e.type,a,n),r={type:e.type,name:e.name,value:t,listener:a,options:n},o?o.push(r):this.__on=[r]}}function bf(e,t,n){var r=zl(e),o=r.CustomEvent;"function"===typeof o?o=new o(t,n):(o=r.document.createEvent("Event"),n?(o.initEvent(t,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function wf(e,t){return function(){return bf(this,e,t)}}function _f(e,t){return function(){return bf(this,e,t.apply(this,arguments))}}Xl.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var xf=h.mark(Ef);function Ef(){var e,t,n,r,o,a,i;return h.wrap((function(u){for(;;)switch(u.prev=u.next){case 0:e=this._groups,t=0,n=e.length;case 1:if(!(t<n)){u.next=13;break}r=e[t],o=0,a=r.length;case 3:if(!(o<a)){u.next=10;break}if(!(i=r[o])){u.next=7;break}return u.next=7,i;case 7:++o,u.next=3;break;case 10:++t,u.next=1;break;case 13:case"end":return u.stop()}}),xf,this)}var kf=[null];function Sf(e,t){this._groups=e,this._parents=t}function Of(){return new Sf([[document.documentElement]],kf)}Sf.prototype=Of.prototype=s({constructor:Sf,select:function(e){"function"!==typeof e&&(e=fl(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var a,i,u=t[o],s=u.length,c=r[o]=new Array(s),l=0;l<s;++l)(a=u[l])&&(i=e.call(a,a.__data__,l,u))&&("__data__"in a&&(i.__data__=a.__data__),c[l]=i);return new Sf(r,this._parents)},selectAll:function(e){e="function"===typeof e?function(e){return function(){return dl(e.apply(this,arguments))}}(e):hl(e);for(var t=this._groups,n=t.length,r=[],o=[],a=0;a<n;++a)for(var i,u=t[a],s=u.length,c=0;c<s;++c)(i=u[c])&&(r.push(e.call(i,i.__data__,c,u)),o.push(i));return new Sf(r,o)},selectChild:function(e){return this.select(null==e?gl:function(e){return function(){return yl.call(this.children,e)}}("function"===typeof e?e:ml(e)))},selectChildren:function(e){return this.selectAll(null==e?wl:function(e){return function(){return bl.call(this.children,e)}}("function"===typeof e?e:ml(e)))},filter:function(e){"function"!==typeof e&&(e=vl(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var a,i=t[o],u=i.length,s=r[o]=[],c=0;c<u;++c)(a=i[c])&&e.call(a,a.__data__,c,i)&&s.push(a);return new Sf(r,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,Ol);var n=t?Sl:kl,r=this._parents,o=this._groups;"function"!==typeof e&&(e=El(e));for(var a=o.length,i=new Array(a),u=new Array(a),s=new Array(a),c=0;c<a;++c){var l=r[c],f=o[c],d=f.length,p=Pl(e.call(l,l&&l.__data__,c,r)),h=p.length,v=u[c]=new Array(h),m=i[c]=new Array(h),y=s[c]=new Array(d);n(l,f,v,m,y,p,t);for(var g,b,w=0,_=0;w<h;++w)if(g=v[w]){for(w>=_&&(_=w+1);!(b=m[_])&&++_<h;);g._next=b||null}}return(i=new Sf(i,r))._enter=u,i._exit=s,i},enter:function(){return new Sf(this._enter||this._groups.map(_l),this._parents)},exit:function(){return new Sf(this._exit||this._groups.map(_l),this._parents)},join:function(e,t,n){var r=this.enter(),o=this,a=this.exit();return"function"===typeof e?(r=e(r))&&(r=r.selection()):r=r.append(e+""),null!=t&&(o=t(o))&&(o=o.selection()),null==n?a.remove():n(a),r&&o?r.merge(o).order():o},merge:function(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,o=n.length,a=r.length,i=Math.min(o,a),u=new Array(o),s=0;s<i;++s)for(var c,l=n[s],f=r[s],d=l.length,p=u[s]=new Array(d),h=0;h<d;++h)(c=l[h]||f[h])&&(p[h]=c);for(;s<o;++s)u[s]=n[s];return new Sf(u,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,o=e[t],a=o.length-1,i=o[a];--a>=0;)(r=o[a])&&(i&&4^r.compareDocumentPosition(i)&&i.parentNode.insertBefore(r,i),i=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=Cl);for(var n=this._groups,r=n.length,o=new Array(r),a=0;a<r;++a){for(var i,u=n[a],s=u.length,c=o[a]=new Array(s),l=0;l<s;++l)(i=u[l])&&(c[l]=i);c.sort(t)}return new Sf(o,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],o=0,a=r.length;o<a;++o){var i=r[o];if(i)return i}return null},size:function(){var e,t=0,n=M(this);try{for(n.s();!(e=n.n()).done;){e.value;++t}}catch(r){n.e(r)}finally{n.f()}return t},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var o,a=t[n],i=0,u=a.length;i<u;++i)(o=a[i])&&e.call(o,o.__data__,i,a);return this},attr:function(e,t){var n=Ml(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?Dl:Tl:"function"===typeof t?n.local?Ll:Rl:n.local?Al:Il)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?$l:"function"===typeof t?Ul:Fl)(e,t,null==n?"":n)):Bl(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?Vl:"function"===typeof t?ql:Hl)(e,t)):this.node()[e]},classed:function(e,t){var n=Yl(e+"");if(arguments.length<2){for(var r=Gl(this.node()),o=-1,a=n.length;++o<a;)if(!r.contains(n[o]))return!1;return!0}return this.each(("function"===typeof t?Jl:t?Ql:Zl)(n,t))},text:function(e){return arguments.length?this.each(null==e?ef:("function"===typeof e?nf:tf)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?rf:("function"===typeof e?af:of)(e)):this.node().innerHTML},raise:function(){return this.each(uf)},lower:function(){return this.each(sf)},append:function(e){var t="function"===typeof e?e:ff(e);return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"===typeof e?e:ff(e),r=null==t?df:"function"===typeof t?t:fl(t);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(pf)},clone:function(e){return this.select(e?vf:hf)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,o,a=mf(e+""),i=a.length;if(!(arguments.length<2)){for(u=t?gf:yf,r=0;r<i;++r)this.each(u(a[r],t,n));return this}var u=this.node().__on;if(u)for(var s,c=0,l=u.length;c<l;++c)for(r=0,s=u[c];r<i;++r)if((o=a[r]).type===s.type&&o.name===s.name)return s.value},dispatch:function(e,t){return this.each(("function"===typeof t?_f:wf)(e,t))}},Symbol.iterator,Ef);var Pf=Of,Cf={value:function(){}};function Nf(){for(var e,t=0,n=arguments.length,r={};t<n;++t){if(!(e=arguments[t]+"")||e in r||/[\s.]/.test(e))throw new Error("illegal type: "+e);r[e]=[]}return new jf(r)}function jf(e){this._=e}function Mf(e,t){return e.trim().split(/^|\s+/).map((function(e){var n="",r=e.indexOf(".");if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:n}}))}function Tf(e,t){for(var n,r=0,o=e.length;r<o;++r)if((n=e[r]).name===t)return n.value}function Df(e,t,n){for(var r=0,o=e.length;r<o;++r)if(e[r].name===t){e[r]=Cf,e=e.slice(0,r).concat(e.slice(r+1));break}return null!=n&&e.push({name:t,value:n}),e}jf.prototype=Nf.prototype={constructor:jf,on:function(e,t){var n,r=this._,o=Mf(e+"",r),a=-1,i=o.length;if(!(arguments.length<2)){if(null!=t&&"function"!==typeof t)throw new Error("invalid callback: "+t);for(;++a<i;)if(n=(e=o[a]).type)r[n]=Df(r[n],e.name,t);else if(null==t)for(n in r)r[n]=Df(r[n],e.name,null);return this}for(;++a<i;)if((n=(e=o[a]).type)&&(n=Tf(r[n],e.name)))return n},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new jf(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,r,o=new Array(n),a=0;a<n;++a)o[a]=arguments[a+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=0,n=(r=this._[e]).length;a<n;++a)r[a].value.apply(t,o)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],o=0,a=r.length;o<a;++o)r[o].value.apply(t,n)}};var If,Af,Rf=Nf,Lf=0,zf=0,$f=0,Ff=0,Uf=0,Bf=0,Vf="object"===typeof performance&&performance.now?performance:Date,Hf="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function qf(){return Uf||(Hf(Yf),Uf=Vf.now()+Bf)}function Yf(){Uf=0}function Gf(){this._call=this._time=this._next=null}function Xf(e,t,n){var r=new Gf;return r.restart(e,t,n),r}function Kf(){Uf=(Ff=Vf.now())+Bf,Lf=zf=0;try{!function(){qf(),++Lf;for(var e,t=If;t;)(e=Uf-t._time)>=0&&t._call.call(void 0,e),t=t._next;--Lf}()}finally{Lf=0,function(){var e,t,n=If,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:If=t);Af=e,Qf(r)}(),Uf=0}}function Wf(){var e=Vf.now(),t=e-Ff;t>1e3&&(Bf-=t,Ff=e)}function Qf(e){Lf||(zf&&(zf=clearTimeout(zf)),e-Uf>24?(e<1/0&&(zf=setTimeout(Kf,e-Vf.now()-Bf)),$f&&($f=clearInterval($f))):($f||(Ff=Vf.now(),$f=setInterval(Wf,1e3)),Lf=1,Hf(Kf)))}function Zf(e,t,n){var r=new Gf;return t=null==t?0:+t,r.restart((function(n){r.stop(),e(n+t)}),t,n),r}Gf.prototype=Xf.prototype={constructor:Gf,restart:function(e,t,n){if("function"!==typeof e)throw new TypeError("callback is not a function");n=(null==n?qf():+n)+(null==t?0:+t),this._next||Af===this||(Af?Af._next=this:If=this,Af=this),this._call=e,this._time=n,Qf()},stop:function(){this._call&&(this._call=null,this._time=1/0,Qf())}};var Jf=Rf("start","end","cancel","interrupt"),ed=[];function td(e,t,n,r,o,a){var i=e.__transition;if(i){if(n in i)return}else e.__transition={};!function(e,t,n){var r,o=e.__transition;function a(e){n.state=1,n.timer.restart(i,n.delay,n.time),n.delay<=e&&i(e-n.delay)}function i(a){var c,l,f,d;if(1!==n.state)return s();for(c in o)if((d=o[c]).name===n.name){if(3===d.state)return Zf(i);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",e,e.__data__,d.index,d.group),delete o[c]):+c<t&&(d.state=6,d.timer.stop(),d.on.call("cancel",e,e.__data__,d.index,d.group),delete o[c])}if(Zf((function(){3===n.state&&(n.state=4,n.timer.restart(u,n.delay,n.time),u(a))})),n.state=2,n.on.call("start",e,e.__data__,n.index,n.group),2===n.state){for(n.state=3,r=new Array(f=n.tween.length),c=0,l=-1;c<f;++c)(d=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(r[++l]=d);r.length=l+1}}function u(t){for(var o=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(s),n.state=5,1),a=-1,i=r.length;++a<i;)r[a].call(e,o);5===n.state&&(n.on.call("end",e,e.__data__,n.index,n.group),s())}function s(){for(var r in n.state=6,n.timer.stop(),delete o[t],o)return;delete e.__transition}o[t]=n,n.timer=Xf(a,0,n.time)}(e,n,{name:t,index:r,group:o,on:Jf,tween:ed,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function nd(e,t){var n=od(e,t);if(n.state>0)throw new Error("too late; already scheduled");return n}function rd(e,t){var n=od(e,t);if(n.state>3)throw new Error("too late; already running");return n}function od(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function ad(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var id,ud=180/Math.PI,sd={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function cd(e,t,n,r,o,a){var i,u,s;return(i=Math.sqrt(e*e+t*t))&&(e/=i,t/=i),(s=e*n+t*r)&&(n-=e*s,r-=t*s),(u=Math.sqrt(n*n+r*r))&&(n/=u,r/=u,s/=u),e*r<t*n&&(e=-e,t=-t,s=-s,i=-i),{translateX:o,translateY:a,rotate:Math.atan2(t,e)*ud,skewX:Math.atan(s)*ud,scaleX:i,scaleY:u}}function ld(e,t,n,r){function o(e){return e.length?e.pop()+" ":""}return function(a,i){var u=[],s=[];return a=e(a),i=e(i),function(e,r,o,a,i,u){if(e!==o||r!==a){var s=i.push("translate(",null,t,null,n);u.push({i:s-4,x:ad(e,o)},{i:s-2,x:ad(r,a)})}else(o||a)&&i.push("translate("+o+t+a+n)}(a.translateX,a.translateY,i.translateX,i.translateY,u,s),function(e,t,n,a){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(o(n)+"rotate(",null,r)-2,x:ad(e,t)})):t&&n.push(o(n)+"rotate("+t+r)}(a.rotate,i.rotate,u,s),function(e,t,n,a){e!==t?a.push({i:n.push(o(n)+"skewX(",null,r)-2,x:ad(e,t)}):t&&n.push(o(n)+"skewX("+t+r)}(a.skewX,i.skewX,u,s),function(e,t,n,r,a,i){if(e!==n||t!==r){var u=a.push(o(a)+"scale(",null,",",null,")");i.push({i:u-4,x:ad(e,n)},{i:u-2,x:ad(t,r)})}else 1===n&&1===r||a.push(o(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,i.scaleX,i.scaleY,u,s),a=i=null,function(e){for(var t,n=-1,r=s.length;++n<r;)u[(t=s[n]).i]=t.x(e);return u.join("")}}}var fd=ld((function(e){var t=new("function"===typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?sd:cd(t.a,t.b,t.c,t.d,t.e,t.f)}),"px, ","px)","deg)"),dd=ld((function(e){return null==e?sd:(id||(id=document.createElementNS("http://www.w3.org/2000/svg","g")),id.setAttribute("transform",e),(e=id.transform.baseVal.consolidate())?cd((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):sd)}),", ",")",")");function pd(e,t){var n,r;return function(){var o=rd(this,e),a=o.tween;if(a!==n)for(var i=0,u=(r=n=a).length;i<u;++i)if(r[i].name===t){(r=r.slice()).splice(i,1);break}o.tween=r}}function hd(e,t,n){var r,o;if("function"!==typeof n)throw new Error;return function(){var a=rd(this,e),i=a.tween;if(i!==r){o=(r=i).slice();for(var u={name:t,value:n},s=0,c=o.length;s<c;++s)if(o[s].name===t){o[s]=u;break}s===c&&o.push(u)}a.tween=o}}function vd(e,t,n){var r=e._id;return e.each((function(){var e=rd(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)})),function(e){return od(e,r).value[t]}}function md(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function yd(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function gd(){}var bd=.7,wd=1/bd,_d="\\s*([+-]?\\d+)\\s*",xd="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ed="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",kd=/^#([0-9a-f]{3,8})$/,Sd=new RegExp("^rgb\\("+[_d,_d,_d]+"\\)$"),Od=new RegExp("^rgb\\("+[Ed,Ed,Ed]+"\\)$"),Pd=new RegExp("^rgba\\("+[_d,_d,_d,xd]+"\\)$"),Cd=new RegExp("^rgba\\("+[Ed,Ed,Ed,xd]+"\\)$"),Nd=new RegExp("^hsl\\("+[xd,Ed,Ed]+"\\)$"),jd=new RegExp("^hsla\\("+[xd,Ed,Ed,xd]+"\\)$"),Md={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Td(){return this.rgb().formatHex()}function Dd(){return this.rgb().formatRgb()}function Id(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=kd.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Ad(t):3===n?new $d(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Rd(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Rd(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Sd.exec(e))?new $d(t[1],t[2],t[3],1):(t=Od.exec(e))?new $d(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Pd.exec(e))?Rd(t[1],t[2],t[3],t[4]):(t=Cd.exec(e))?Rd(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Nd.exec(e))?Vd(t[1],t[2]/100,t[3]/100,1):(t=jd.exec(e))?Vd(t[1],t[2]/100,t[3]/100,t[4]):Md.hasOwnProperty(e)?Ad(Md[e]):"transparent"===e?new $d(NaN,NaN,NaN,0):null}function Ad(e){return new $d(e>>16&255,e>>8&255,255&e,1)}function Rd(e,t,n,r){return r<=0&&(e=t=n=NaN),new $d(e,t,n,r)}function Ld(e){return e instanceof gd||(e=Id(e)),e?new $d((e=e.rgb()).r,e.g,e.b,e.opacity):new $d}function zd(e,t,n,r){return 1===arguments.length?Ld(e):new $d(e,t,n,null==r?1:r)}function $d(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Fd(){return"#"+Bd(this.r)+Bd(this.g)+Bd(this.b)}function Ud(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function Bd(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Vd(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new qd(e,t,n,r)}function Hd(e){if(e instanceof qd)return new qd(e.h,e.s,e.l,e.opacity);if(e instanceof gd||(e=Id(e)),!e)return new qd;if(e instanceof qd)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),a=Math.max(t,n,r),i=NaN,u=a-o,s=(a+o)/2;return u?(i=t===a?(n-r)/u+6*(n<r):n===a?(r-t)/u+2:(t-n)/u+4,u/=s<.5?a+o:2-a-o,i*=60):u=s>0&&s<1?0:i,new qd(i,u,s,e.opacity)}function qd(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Yd(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function Gd(e,t,n,r,o){var a=e*e,i=a*e;return((1-3*e+3*a-i)*t+(4-6*a+3*i)*n+(1+3*e+3*a-3*i)*r+i*o)/6}md(gd,Id,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:Td,formatHex:Td,formatHsl:function(){return Hd(this).formatHsl()},formatRgb:Dd,toString:Dd}),md($d,zd,yd(gd,{brighter:function(e){return e=null==e?wd:Math.pow(wd,e),new $d(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?bd:Math.pow(bd,e),new $d(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Fd,formatHex:Fd,formatRgb:Ud,toString:Ud})),md(qd,(function(e,t,n,r){return 1===arguments.length?Hd(e):new qd(e,t,n,null==r?1:r)}),yd(gd,{brighter:function(e){return e=null==e?wd:Math.pow(wd,e),new qd(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?bd:Math.pow(bd,e),new qd(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new $d(Yd(e>=240?e-240:e+120,o,r),Yd(e,o,r),Yd(e<120?e+240:e-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var Xd=function(e){return function(){return e}};function Kd(e,t){return function(n){return e+n*t}}function Wd(e){return 1===(e=+e)?Qd:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Xd(isNaN(t)?n:t)}}function Qd(e,t){var n=t-e;return n?Kd(e,n):Xd(isNaN(e)?t:e)}var Zd=function e(t){var n=Wd(t);function r(e,t){var r=n((e=zd(e)).r,(t=zd(t)).r),o=n(e.g,t.g),a=n(e.b,t.b),i=Qd(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=a(t),e.opacity=i(t),e+""}}return r.gamma=e,r}(1);function Jd(e){return function(t){var n,r,o=t.length,a=new Array(o),i=new Array(o),u=new Array(o);for(n=0;n<o;++n)r=zd(t[n]),a[n]=r.r||0,i[n]=r.g||0,u[n]=r.b||0;return a=e(a),i=e(i),u=e(u),r.opacity=1,function(e){return r.r=a(e),r.g=i(e),r.b=u(e),r+""}}}Jd((function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),o=e[r],a=e[r+1],i=r>0?e[r-1]:2*o-a,u=r<t-1?e[r+2]:2*a-o;return Gd((n-r/t)*t,i,o,a,u)}})),Jd((function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),o=e[(r+t-1)%t],a=e[r%t],i=e[(r+1)%t],u=e[(r+2)%t];return Gd((n-r/t)*t,o,a,i,u)}}));var ep=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,tp=new RegExp(ep.source,"g");function np(e,t){var n,r,o,a=ep.lastIndex=tp.lastIndex=0,i=-1,u=[],s=[];for(e+="",t+="";(n=ep.exec(e))&&(r=tp.exec(t));)(o=r.index)>a&&(o=t.slice(a,o),u[i]?u[i]+=o:u[++i]=o),(n=n[0])===(r=r[0])?u[i]?u[i]+=r:u[++i]=r:(u[++i]=null,s.push({i:i,x:ad(n,r)})),a=tp.lastIndex;return a<t.length&&(o=t.slice(a),u[i]?u[i]+=o:u[++i]=o),u.length<2?s[0]?function(e){return function(t){return e(t)+""}}(s[0].x):function(e){return function(){return e}}(t):(t=s.length,function(e){for(var n,r=0;r<t;++r)u[(n=s[r]).i]=n.x(e);return u.join("")})}function rp(e,t){var n;return("number"===typeof t?ad:t instanceof Id?Zd:(n=Id(t))?(t=n,Zd):np)(e,t)}function op(e){return function(){this.removeAttribute(e)}}function ap(e){return function(){this.removeAttributeNS(e.space,e.local)}}function ip(e,t,n){var r,o,a=n+"";return function(){var i=this.getAttribute(e);return i===a?null:i===r?o:o=t(r=i,n)}}function up(e,t,n){var r,o,a=n+"";return function(){var i=this.getAttributeNS(e.space,e.local);return i===a?null:i===r?o:o=t(r=i,n)}}function sp(e,t,n){var r,o,a;return function(){var i,u,s=n(this);if(null!=s)return(i=this.getAttribute(e))===(u=s+"")?null:i===r&&u===o?a:(o=u,a=t(r=i,s));this.removeAttribute(e)}}function cp(e,t,n){var r,o,a;return function(){var i,u,s=n(this);if(null!=s)return(i=this.getAttributeNS(e.space,e.local))===(u=s+"")?null:i===r&&u===o?a:(o=u,a=t(r=i,s));this.removeAttributeNS(e.space,e.local)}}function lp(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function fp(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function dp(e,t){var n,r;function o(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&fp(e,o)),n}return o._value=t,o}function pp(e,t){var n,r;function o(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&lp(e,o)),n}return o._value=t,o}function hp(e,t){return function(){nd(this,e).delay=+t.apply(this,arguments)}}function vp(e,t){return t=+t,function(){nd(this,e).delay=t}}function mp(e,t){return function(){rd(this,e).duration=+t.apply(this,arguments)}}function yp(e,t){return t=+t,function(){rd(this,e).duration=t}}function gp(e,t){if("function"!==typeof t)throw new Error;return function(){rd(this,e).ease=t}}function bp(e,t,n){var r,o,a=function(e){return(e+"").trim().split(/^|\s+/).every((function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?nd:rd;return function(){var i=a(this,e),u=i.on;u!==r&&(o=(r=u).copy()).on(t,n),i.on=o}}var wp=Pf.prototype.constructor;function _p(e){return function(){this.style.removeProperty(e)}}function xp(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function Ep(e,t,n){var r,o;function a(){var a=t.apply(this,arguments);return a!==o&&(r=(o=a)&&xp(e,a,n)),r}return a._value=t,a}function kp(e){return function(t){this.textContent=e.call(this,t)}}function Sp(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&kp(r)),t}return r._value=e,r}var Op=0;function Pp(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Cp(){return++Op}var Np=Pf.prototype;Pp.prototype=function(e){return Pf().transition(e)}.prototype=s({constructor:Pp,select:function(e){var t=this._name,n=this._id;"function"!==typeof e&&(e=fl(e));for(var r=this._groups,o=r.length,a=new Array(o),i=0;i<o;++i)for(var u,s,c=r[i],l=c.length,f=a[i]=new Array(l),d=0;d<l;++d)(u=c[d])&&(s=e.call(u,u.__data__,d,c))&&("__data__"in u&&(s.__data__=u.__data__),f[d]=s,td(f[d],t,n,d,f,od(u,n)));return new Pp(a,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id;"function"!==typeof e&&(e=hl(e));for(var r=this._groups,o=r.length,a=[],i=[],u=0;u<o;++u)for(var s,c=r[u],l=c.length,f=0;f<l;++f)if(s=c[f]){for(var d,p=e.call(s,s.__data__,f,c),h=od(s,n),v=0,m=p.length;v<m;++v)(d=p[v])&&td(d,t,n,v,p,h);a.push(p),i.push(s)}return new Pp(a,i,t,n)},selectChild:Np.selectChild,selectChildren:Np.selectChildren,filter:function(e){"function"!==typeof e&&(e=vl(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var a,i=t[o],u=i.length,s=r[o]=[],c=0;c<u;++c)(a=i[c])&&e.call(a,a.__data__,c,i)&&s.push(a);return new Pp(r,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,o=n.length,a=Math.min(r,o),i=new Array(r),u=0;u<a;++u)for(var s,c=t[u],l=n[u],f=c.length,d=i[u]=new Array(f),p=0;p<f;++p)(s=c[p]||l[p])&&(d[p]=s);for(;u<r;++u)i[u]=t[u];return new Pp(i,this._parents,this._name,this._id)},selection:function(){return new wp(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=Cp(),r=this._groups,o=r.length,a=0;a<o;++a)for(var i,u=r[a],s=u.length,c=0;c<s;++c)if(i=u[c]){var l=od(i,t);td(i,e,n,c,u,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new Pp(r,this._parents,e,n)},call:Np.call,nodes:Np.nodes,node:Np.node,size:Np.size,empty:Np.empty,each:Np.each,on:function(e,t){var n=this._id;return arguments.length<2?od(this.node(),n).on.on(e):this.each(bp(n,e,t))},attr:function(e,t){var n=Ml(e),r="transform"===n?dd:rp;return this.attrTween(e,"function"===typeof t?(n.local?cp:sp)(n,r,vd(this,"attr."+e,t)):null==t?(n.local?ap:op)(n):(n.local?up:ip)(n,r,t))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!==typeof t)throw new Error;var r=Ml(e);return this.tween(n,(r.local?dp:pp)(r,t))},style:function(e,t,n){var r="transform"===(e+="")?fd:rp;return null==t?this.styleTween(e,function(e,t){var n,r,o;return function(){var a=Bl(this,e),i=(this.style.removeProperty(e),Bl(this,e));return a===i?null:a===n&&i===r?o:o=t(n=a,r=i)}}(e,r)).on("end.style."+e,_p(e)):"function"===typeof t?this.styleTween(e,function(e,t,n){var r,o,a;return function(){var i=Bl(this,e),u=n(this),s=u+"";return null==u&&(this.style.removeProperty(e),s=u=Bl(this,e)),i===s?null:i===r&&s===o?a:(o=s,a=t(r=i,u))}}(e,r,vd(this,"style."+e,t))).each(function(e,t){var n,r,o,a,i="style."+t,u="end."+i;return function(){var s=rd(this,e),c=s.on,l=null==s.value[i]?a||(a=_p(t)):void 0;c===n&&o===l||(r=(n=c).copy()).on(u,o=l),s.on=r}}(this._id,e)):this.styleTween(e,function(e,t,n){var r,o,a=n+"";return function(){var i=Bl(this,e);return i===a?null:i===r?o:o=t(r=i,n)}}(e,r,t),n).on("end.style."+e,null)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!==typeof t)throw new Error;return this.tween(r,Ep(e,t,null==n?"":n))},text:function(e){return this.tween("text","function"===typeof e?function(e){return function(){var t=e(this);this.textContent=null==t?"":t}}(vd(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!==typeof e)throw new Error;return this.tween(t,Sp(e))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,o=od(this.node(),n).tween,a=0,i=o.length;a<i;++a)if((r=o[a]).name===e)return r.value;return null}return this.each((null==t?pd:hd)(n,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"===typeof e?hp:vp)(t,e)):od(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"===typeof e?mp:yp)(t,e)):od(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(gp(t,e)):od(this.node(),t).ease},easeVarying:function(e){if("function"!==typeof e)throw new Error;return this.each(function(e,t){return function(){var n=t.apply(this,arguments);if("function"!==typeof n)throw new Error;rd(this,e).ease=n}}(this._id,e))},end:function(){var e,t,n=this,r=n._id,o=n.size();return new Promise((function(a,i){var u={value:i},s={value:function(){0===--o&&a()}};n.each((function(){var n=rd(this,r),o=n.on;o!==e&&((t=(e=o).copy())._.cancel.push(u),t._.interrupt.push(u),t._.end.push(s)),n.on=t})),0===o&&a()}))}},Symbol.iterator,Np[Symbol.iterator]);var jp={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}};function Mp(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error("transition ".concat(t," not found"));return n}Pf.prototype.interrupt=function(e){return this.each((function(){!function(e,t){var n,r,o,a=e.__transition,i=!0;if(a){for(o in t=null==t?null:t+"",a)(n=a[o]).name===t?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete a[o]):i=!1;i&&delete e.__transition}}(this,e)}))},Pf.prototype.transition=function(e){var t,n;e instanceof Pp?(t=e._id,e=e._name):(t=Cp(),(n=jp).time=qf(),e=null==e?null:e+"");for(var r=this._groups,o=r.length,a=0;a<o;++a)for(var i,u=r[a],s=u.length,c=0;c<s;++c)(i=u[c])&&td(i,e,t,c,u,n||Mp(i,t));return new Pp(r,this._parents,e,t)};Math.abs,Math.max,Math.min;function Tp(e){return[+e[0],+e[1]]}function Dp(e){return[Tp(e[0]),Tp(e[1])]}["w","e"].map(Ip),["n","s"].map(Ip),["n","w","e","s","nw","ne","sw","se"].map(Ip);function Ip(e){return{type:e}}var Ap={},Rp={};function Lp(e){return new Function("d","return {"+e.map((function(e,t){return JSON.stringify(e)+": d["+t+'] || ""'})).join(",")+"}")}function zp(e){var t=Object.create(null),n=[];return e.forEach((function(e){for(var r in e)r in t||n.push(t[r]=r)})),n}function $p(e,t){var n=e+"",r=n.length;return r<t?new Array(t-r+1).join(0)+n:n}function Fp(e){var t,n=e.getUTCHours(),r=e.getUTCMinutes(),o=e.getUTCSeconds(),a=e.getUTCMilliseconds();return isNaN(e)?"Invalid Date":((t=e.getUTCFullYear())<0?"-"+$p(-t,6):t>9999?"+"+$p(t,6):$p(t,4))+"-"+$p(e.getUTCMonth()+1,2)+"-"+$p(e.getUTCDate(),2)+(a?"T"+$p(n,2)+":"+$p(r,2)+":"+$p(o,2)+"."+$p(a,3)+"Z":o?"T"+$p(n,2)+":"+$p(r,2)+":"+$p(o,2)+"Z":r||n?"T"+$p(n,2)+":"+$p(r,2)+"Z":"")}var Up=function(e){var t=new RegExp('["'+e+"\n\r]"),n=e.charCodeAt(0);function r(e,t){var r,o=[],a=e.length,i=0,u=0,s=a<=0,c=!1;function l(){if(s)return Rp;if(c)return c=!1,Ap;var t,r,o=i;if(34===e.charCodeAt(o)){for(;i++<a&&34!==e.charCodeAt(i)||34===e.charCodeAt(++i););return(t=i)>=a?s=!0:10===(r=e.charCodeAt(i++))?c=!0:13===r&&(c=!0,10===e.charCodeAt(i)&&++i),e.slice(o+1,t-1).replace(/""/g,'"')}for(;i<a;){if(10===(r=e.charCodeAt(t=i++)))c=!0;else if(13===r)c=!0,10===e.charCodeAt(i)&&++i;else if(r!==n)continue;return e.slice(o,t)}return s=!0,e.slice(o,a)}for(10===e.charCodeAt(a-1)&&--a,13===e.charCodeAt(a-1)&&--a;(r=l())!==Rp;){for(var f=[];r!==Ap&&r!==Rp;)f.push(r),r=l();t&&null==(f=t(f,u++))||o.push(f)}return o}function o(t,n){return t.map((function(t){return n.map((function(e){return i(t[e])})).join(e)}))}function a(t){return t.map(i).join(e)}function i(e){return null==e?"":e instanceof Date?Fp(e):t.test(e+="")?'"'+e.replace(/"/g,'""')+'"':e}return{parse:function(e,t){var n,o,a=r(e,(function(e,r){if(n)return n(e,r-1);o=e,n=t?function(e,t){var n=Lp(e);return function(r,o){return t(n(r),o,e)}}(e,t):Lp(e)}));return a.columns=o||[],a},parseRows:r,format:function(t,n){return null==n&&(n=zp(t)),[n.map(i).join(e)].concat(o(t,n)).join("\n")},formatBody:function(e,t){return null==t&&(t=zp(e)),o(e,t).join("\n")},formatRows:function(e){return e.map(a).join("\n")},formatRow:a,formatValue:i}}(","),Bp=Up.parse,Vp=(Up.parseRows,Up.format);Up.formatBody,Up.formatRows,Up.formatRow,Up.formatValue;function Hp(e){for(var t in e){var n,r,o=e[t].trim();if(o)if("true"===o)o=!0;else if("false"===o)o=!1;else if("NaN"===o)o=NaN;else if(isNaN(n=+o)){if(!(r=o.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/)))continue;qp&&r[4]&&!r[7]&&(o=o.replace(/-/g,"/").replace(/T/," ")),o=new Date(o)}else o=n;else o=null;e[t]=o}return e}var qp=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours();function Yp(e,t,n){this.k=e,this.x=t,this.y=n}Yp.prototype={constructor:Yp,scale:function(e){return 1===e?this:new Yp(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new Yp(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};new Yp(1,0,0);Yp.prototype;var Gp=function(e){var t=e.contents,n=e.requiredCols,r=Bp(t,Hp);return n.forEach((function(e){if(!(e in r[0]))throw Error('Column "'.concat(e,'" not found in CSV file.'))})),r},Xp=function(e,t){for(var n=[],r=1;"".concat(t," ").concat(r)in e;r++)n.push(e["".concat(t," ").concat(r)]);return n},Kp=function(e){return Vp(e)},Wp=function(e,t){var n=document.createElement("a");n.setAttribute("href",URL.createObjectURL(new Blob([t]))),n.setAttribute("download",e),n.style.visibility="hidden",document.body.appendChild(n),n.click(),document.body.removeChild(n)},Qp=function(e){var t=function(t,n){var r=l({},e.value);r[t]=n,e.onChange(r)},n="Not initially available",r=!0,o=Object.keys(e.value["initial amounts"]).length;return o>0&&(n="".concat(o," collection centers"),r=!1),(0,zc.jsxs)(zc.Fragment,{children:[(0,zc.jsx)($c,{title:e.name}),(0,zc.jsx)(Uc,{children:(0,zc.jsxs)(tl,{children:[(0,zc.jsx)("h1",{children:"General Information"}),(0,zc.jsx)(sl,{value:n,label:"Initial amounts",tooltip:"A table indicating the amount of this product initially available at each collection center.",accept:".csv",onFile:function(e){var n=Gp({contents:e,requiredCols:["latitude (deg)","longitude (deg)","name"]}),r={};n.forEach((function(e){r[e.name]={"latitude (deg)":e["latitude (deg)"],"longitude (deg)":e["longitude (deg)"],"amount (tonne)":Xp(e,"amount")}})),t("initial amounts",r)},onDownload:function(){for(var t=[],n=function(){var e=f(o[r],2),n=e[0],a=e[1],i={name:n,"latitude (deg)":a["latitude (deg)"],"longitude (deg)":a["longitude (deg)"]};a["amount (tonne)"].forEach((function(e,t){i["amount ".concat(t+1)]=e})),t.push(i)},r=0,o=Object.entries(e.value["initial amounts"]);r<o.length;r++)n();Wp("Initial amounts - ".concat(e.name,".csv"),Vp(t))},onClear:function(){t("initial amounts",{})},onTemplate:function(){Wp("Initial amounts - Template.csv",Vp([{name:"Washakie County","latitude (deg)":"43.8356","longitude (deg)":"-107.6602","amount 1":"21902","amount 2":"6160","amount 3":"2721","amount 4":"12917","amount 5":"18048"},{name:"Platte County","latitude (deg)":"42.1314","longitude (deg)":"-104.9676","amount 1":"16723","amount 2":"8709","amount 3":"22584","amount 4":"12278","amount 5":"7196"},{name:"Park County","latitude (deg)":"44.4063","longitude (deg)":"-109.4153","amount 1":"14731","amount 2":"11729","amount 3":"15562","amount 4":"7703","amount 5":"23349"}]))},disableDownload:r,disableClear:r}),(0,zc.jsx)("h1",{style:{display:0==o?"none":"block"},children:"Disposal"}),(0,zc.jsxs)("div",{style:{display:0==o?"none":"block"},children:[(0,zc.jsx)(il,{label:"Disposal cost",unit:"$/tonne",tooltip:"The cost to dispose of one tonne of this product at a collection center, without further processing.",value:e.value["disposal cost ($/tonne)"],onChange:function(e){return t("disposal cost ($/tonne)",e)},validate:"floatList"}),(0,zc.jsx)(il,{label:"Disposal limit",unit:"tonne",tooltip:"The maximum amount (in tonnes) of this product that can be disposed of across all collection centers, without further processing.",value:e.value["disposal limit (tonne)"],onChange:function(e){return t("disposal limit (tonne)",e)},validate:"floatList",disabled:String(e.value["disposal limit (%)"]).length>0}),(0,zc.jsx)(il,{label:"Disposal limit",unit:"%",tooltip:"The maximum amount of this product that can be disposed of across all collection centers, without further processing, as a percentage of the total amount available.",value:e.value["disposal limit (%)"],onChange:function(e){return t("disposal limit (%)",e)},validate:"floatList",disabled:e.value["disposal limit (tonne)"].length>0})]}),(0,zc.jsx)("h1",{children:"Transportation"}),(0,zc.jsx)(il,{label:"Transportation cost",unit:"$/km/tonne",tooltip:"The cost to transport this product.",value:e.value["transportation cost ($/km/tonne)"],onChange:function(e){return t("transportation cost ($/km/tonne)",e)},validate:"floatList"}),(0,zc.jsx)(il,{label:"Transportation energy",unit:"J/km/tonne",tooltip:"The energy required to transport this product.",value:e.value["transportation energy (J/km/tonne)"],onChange:function(e){return t("transportation energy (J/km/tonne)",e)},validate:"floatList"}),(0,zc.jsx)(cl,{label:"Transportation emissions",unit:"tonne/km/tonne",tooltip:"A dictionary mapping the name of each greenhouse gas, produced to transport one tonne of this product along one kilometer, to the amount of gas produced.",keyPlaceholder:"Emission name",value:e.value["transportation emissions (tonne/km/tonne)"],onChange:function(e){return t("transportation emissions (tonne/km/tonne)",e)},validate:"floatList"})]})})]})},Zp=function(e){var t=function(t,n,r,o){var a=l({},e.value);void 0!==o?a[n][r][o]=t:void 0!==r?a[n][r]=t:a[n]=t,e.onChange(a)},n="No locations set",r=Object.keys(e.value.locations).length;r>0&&(n="".concat(r," locations"));var o=e.value["minimum capacity (tonne)"]===e.value["maximum capacity (tonne)"];return(0,zc.jsxs)(zc.Fragment,{children:[(0,zc.jsx)($c,{title:e.name}),(0,zc.jsx)(Uc,{children:(0,zc.jsxs)(tl,{children:[(0,zc.jsx)("h1",{children:"General information"}),(0,zc.jsx)(sl,{label:"Candidate locations",tooltip:"A table describing potential locations where plants can be built and their characteristics.",onTemplate:function(){Wp("Candidate locations - Template.csv",Kp([{name:"Washakie County","latitude (deg)":"43.8356","longitude (deg)":"-107.6602","area cost factor":"0.88"},{name:"Platte County","latitude (deg)":"42.1314","longitude (deg)":"-104.9676","area cost factor":"1.29"},{name:"Park County","latitude (deg)":"44.4063","longitude (deg)":"-109.4153","area cost factor":"0.99"},{name:"Goshen County","latitude (deg)":"42.0853","longitude (deg)":"-104.3534","area cost factor":"1"}]))},onFile:function(e){var n=Gp({contents:e,requiredCols:["name","latitude (deg)","longitude (deg)","area cost factor"]}),r={};n.forEach((function(e){r[e.name]={"latitude (deg)":e["latitude (deg)"],"longitude (deg)":e["longitude (deg)"],"area cost factor":e["area cost factor"]}})),t(r,"locations")},onDownload:function(){for(var t=[],n=0,r=Object.entries(e.value.locations);n<r.length;n++){var o=f(r[n],2),a=o[0],i=o[1];t.push({name:a,"latitude (deg)":i["latitude (deg)"],"longitude (deg)":i["longitude (deg)"],"area cost factor":i["area cost factor"]})}Wp("Candidate locations - ".concat(e.name,".csv"),Kp(t))},onClear:function(){t({},"locations")},value:n}),(0,zc.jsx)("h1",{children:"Inputs & Outputs"}),(0,zc.jsx)(il,{label:"Input",tooltip:"The name of the product that this plant takes as input.",disabled:"disabled",value:e.value.input}),(0,zc.jsx)(cl,{label:"Outputs",unit:"tonne/tonne",tooltip:"A dictionary specifying how many tonnes of each product is produced for each tonne of input.",value:e.value["outputs (tonne/tonne)"],onChange:function(e){return t(e,"outputs (tonne/tonne)")},disableKeys:!0,validate:"float"}),(0,zc.jsx)("h1",{children:"Capacity & Costs"}),(0,zc.jsx)(il,{label:"Minimum capacity",unit:"tonne",tooltip:"The minimum size of the plant.",value:e.value["minimum capacity (tonne)"],onChange:function(e){return t(e,"minimum capacity (tonne)")},validate:"float"}),(0,zc.jsx)(il,{label:"Opening cost (min capacity)",unit:"$",tooltip:"The cost to open the plant at minimum capacity.",value:e.value["opening cost (min capacity) ($)"],onChange:function(e){return t(e,"opening cost (min capacity) ($)")},validate:"float"}),(0,zc.jsx)(il,{label:"Fixed operating cost (min capacity)",unit:"$",tooltip:"The cost to keep the plant open, even if the plant doesn't process anything.",value:e.value["fixed operating cost (min capacity) ($)"],onChange:function(e){return t(e,"fixed operating cost (min capacity) ($)")},validate:"float"}),(0,zc.jsx)(il,{label:"Maximum capacity",unit:"tonne",tooltip:"The maximum size of the plant.",value:e.value["maximum capacity (tonne)"],onChange:function(e){return t(e,"maximum capacity (tonne)")},validate:"float"}),(0,zc.jsx)(il,{label:"Opening cost (max capacity)",unit:"$",tooltip:"The cost to open a plant of this size.",value:o?"":e.value["opening cost (max capacity) ($)"],onChange:function(e){return t(e,"opening cost (max capacity) ($)")},validate:"float",disabled:o}),(0,zc.jsx)(il,{label:"Fixed operating cost (max capacity)",unit:"$",tooltip:"The cost to keep the plant open, even if the plant doesn't process anything.",value:o?"":e.value["fixed operating cost (max capacity) ($)"],onChange:function(e){return t(e,"fixed operating cost (max capacity) ($)")},validate:"float",disabled:o}),(0,zc.jsx)(il,{label:"Variable operating cost",unit:"$/tonne",tooltip:"The cost that the plant incurs to process each tonne of input.",value:e.value["variable operating cost ($/tonne)"],onChange:function(e){return t(e,"variable operating cost ($/tonne)")},validate:"float"}),(0,zc.jsx)(il,{label:"Energy expenditure",unit:"GJ/tonne",tooltip:"The energy required to process one tonne of the input.",value:e.value["energy (GJ/tonne)"],onChange:function(e){return t(e,"energy (GJ/tonne)")},validate:"float"}),(0,zc.jsx)("h1",{children:"Storage"}),(0,zc.jsx)(il,{label:"Storage cost",unit:"$/tonne",tooltip:"The cost to store a tonne of input product for one time period.",value:e.value.storage["cost ($/tonne)"],onChange:function(e){return t(e,"storage","cost ($/tonne)")},validate:"float"}),(0,zc.jsx)(il,{label:"Storage limit",unit:"tonne",tooltip:"The maximum amount of input product this plant can have in storage at any given time.",value:e.value.storage["limit (tonne)"],onChange:function(e){return t(e,"storage","limit (tonne)")},validate:"float"}),(0,zc.jsx)("h1",{children:"Disposal"}),(0,zc.jsx)(cl,{label:"Disposal cost",unit:"$/tonne",tooltip:"The cost to dispose of the product.",value:e.value["disposal cost ($/tonne)"],onChange:function(e){return t(e,"disposal cost ($/tonne)")},disableKeys:!0,validate:"float"}),(0,zc.jsx)(cl,{label:"Disposal limit",unit:"tonne",tooltip:"The maximum amount that can be disposed of. If an unlimited amount can be disposed, leave blank.",value:e.value["disposal limit (tonne)"],onChange:function(e){return t(e,"disposal limit (tonne)")},disableKeys:!0,valuePlaceholder:"Unlimited",validate:"float"}),(0,zc.jsx)("h1",{children:"Emissions"}),(0,zc.jsx)(cl,{label:"Emissions",unit:"tonne/tonne",tooltip:"A dictionary mapping the name of each greenhouse gas, produced to process each tonne of input, to the amount of gas produced (in tonne).",value:e.value["emissions (tonne/tonne)"],onChange:function(e){return t(e,"emissions (tonne/tonne)")},keyPlaceholder:"Emission name",valuePlaceholder:"0",validate:"float"})]})})]})},Jp="Header_HeaderBox__1tBDX",eh="Header_HeaderContent__Ac8nl",th=function(e){return(0,zc.jsx)("div",{className:Jp,children:(0,zc.jsxs)("div",{className:eh,children:[(0,zc.jsx)("h1",{children:"RELOG"}),(0,zc.jsx)("h2",{children:e.title}),(0,zc.jsx)("div",{style:{float:"right",paddingTop:"5px"},children:e.children})]})})},nh="Footer_Footer__YUTTj",rh=function(){return(0,zc.jsxs)("div",{className:nh,children:[(0,zc.jsx)("p",{children:"RELOG: Reverse Logistics Optimization"}),(0,zc.jsx)("p",{children:"Copyright \xa9 2020\u20142022, UChicago Argonne, LLC. All Rights Reserved."})]})},oh={"initial amounts":{},"disposal cost ($/tonne)":"0","disposal limit (tonne)":"0","disposal limit (%)":"","transportation cost ($/km/tonne)":"0","transportation energy (J/km/tonne)":"0","transportation emissions (tonne/km/tonne)":{},x:0,y:0},ah={locations:{},"outputs (tonne/tonne)":{},"disposal cost ($/tonne)":{},"disposal limit (tonne)":{},"emissions (tonne/tonne)":{},storage:{"cost ($/tonne)":0,"limit (tonne)":0},"maximum capacity (tonne)":0,"minimum capacity (tonne)":0,"opening cost (max capacity) ($)":0,"opening cost (min capacity) ($)":0,"fixed operating cost (max capacity) ($)":0,"fixed operating cost (min capacity) ($)":0,"variable operating cost ($/tonne)":0,"energy (GJ/tonne)":0,x:0,y:0},ih={parameters:{"time horizon (years)":"1","building period (years)":"[1]","inflation rate (%)":"0"},products:{},plants:{}},uh=function(e){return String(e).length>0&&!isNaN(e)},sh=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(uh(e)){if(t){for(var r=parseFloat(e),o=[],a=0;a<t;a++)o.push(r),r*=n;return o}return parseFloat(e)}try{var i=JSON.parse(e);return i}catch(u){}return e},ch=function(e,t){for(var n={},r=0,o=Object.entries(e);r<o.length;r++){var a=f(o[r],2),i=a[0],u=a[1];0!==i.length&&(n[i]=sh(u,t))}return Object.keys(n).length>0?n:null},lh=function(e){for(var t=null,n=0,r=Object.values(e["initial amounts"]);n<r.length;n++){var o=r[n]["amount (tonne)"];if(t)for(var i=0;i<o.length;i++)t[i]+=o[i];else t=a(o)}return t},fh=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(void 0===e)return"";if(Array.isArray(e)&&e.length>0){for(var n=!0,r=1;r<e.length;r++)if(Math.abs(e[r-1]-e[r]/t)>.001){n=!1;break}return n?String(e[0]):JSON.stringify(e)}return e},dh=function(e){if(!e)return{};for(var t={},n=0,r=Object.entries(e);n<r.length;n++){var o=f(r[n],2),a=o[0],i=o[1];t[a]=fh(i)}return t},ph=function(e,t){for(var n=0;n<t.length;n++){var r=e[t[n]];if(Array.isArray(r)&&r.length>1&&uh(r[0])&&uh(r[1])&&Math.abs(r[0])>0)return[r[1]/r[0],r.length]}return[1,1]},hh=function(e,t){var n={},r=t["time horizon (years)"];r=uh(r)?parseInt(r):1;var o=t["inflation rate (%)"];return o=uh(o)?parseFloat(o)/100+1:1,n["initial amounts"]=e["initial amounts"],["disposal limit (tonne)","transportation energy (J/km/tonne)"].forEach((function(t){var o=sh(e[t],r);o.length>0&&(n[t]=o)})),["disposal cost ($/tonne)","transportation cost ($/km/tonne)"].forEach((function(t){var a=sh(e[t],r,o);a.length>0&&(n[t]=a)})),["transportation emissions (tonne/km/tonne)"].forEach((function(t){var o=ch(e[t],r);o&&(n[t]=o)})),uh(e["disposal limit (%)"])&&(n["disposal limit (tonne)"]=function(e){for(var t=e["disposal limit (%)"],n=lh(e),r=[],o=0;o<n.length;o++)r[o]=n[o]*t/100;return r}(e)),n},vh=function(e,t){var n={},r=t["time horizon (years)"];r=uh(r)?parseInt(r):1;var o=t["inflation rate (%)"];o=uh(o)?parseFloat(o)/100+1:1,["input"].forEach((function(t){n[t]=e[t]})),["energy (GJ/tonne)"].forEach((function(t){n[t]=sh(e[t],r),void 0===n[t]&&delete n[t]})),["outputs (tonne/tonne)"].forEach((function(t){var r=ch(e[t]);r&&(n[t]=r)})),["emissions (tonne/tonne)"].forEach((function(t){var o=ch(e[t],r);o&&(n[t]=o)}));var a=e["minimum capacity (tonne)"],i=e["maximum capacity (tonne)"];n.locations={};for(var u=function(){var t=f(c[s],2),u=t[0],l=t[1],d=n.locations[u]={},p=d["capacities (tonne)"]={},h=l["area cost factor"],v=function(e){var t=sh(e,r,o);return Array.isArray(t)?t.map((function(e){return e*h})):""};["latitude (deg)","longitude (deg)"].forEach((function(e){d[e]=l[e]})),p[a]={};for(var m=0,y=Object.entries({"opening cost ($)":"opening cost (min capacity) ($)","fixed operating cost ($)":"fixed operating cost (min capacity) ($)","variable operating cost ($/tonne)":"variable operating cost ($/tonne)"});m<y.length;m++){var g=f(y[m],2),b=g[0],w=g[1];p[a][b]=v(e[w])}if(i!==a){p[i]={};for(var _=0,x=Object.entries({"opening cost ($)":"opening cost (max capacity) ($)","fixed operating cost ($)":"fixed operating cost (max capacity) ($)","variable operating cost ($/tonne)":"variable operating cost ($/tonne)"});_<x.length;_++){var E=f(x[_],2),k=E[0],S=E[1];p[i][k]=v(e[S])}}d.disposal={};for(var O=0,P=Object.entries(e["disposal cost ($/tonne)"]);O<P.length;O++){var C=f(P[O],2),N=C[0],j=C[1];if(0!==N.length){var M=v(j);if(M){d.disposal[N]={"cost ($/tonne)":M};var T=e["disposal limit (tonne)"][N];uh(T)&&(d.disposal[N]["limit (tonne)"]=sh(T,r))}}}d.storage={"cost ($/tonne)":v(e.storage["cost ($/tonne)"])};var D=e.storage["limit (tonne)"];uh(D)&&(d.storage["limit (tonne)"]=sh(D))},s=0,c=Object.entries(e.locations);s<c.length;s++)u();return n},mh=function(e){var t={},n={};t["initial amounts"]=l({},e["initial amounts"]),["x","y"].forEach((function(e){t[e]=null})),["disposal limit (%)"].forEach((function(e){t[e]=""})),["transportation energy (J/km/tonne)","disposal limit (tonne)"].forEach((function(n){t[n]=fh(e[n])}));var r=f(ph(e,["transportation cost ($/km/tonne)","disposal cost ($/tonne)"]),2),o=r[0],a=r[1];return n["inflation rate (%)"]=String(100*(o-1)),n["time horizon (years)"]=String(a),["transportation cost ($/km/tonne)","disposal cost ($/tonne)"].forEach((function(n){t[n]=fh(e[n],o)})),["transportation emissions (tonne/km/tonne)"].forEach((function(n){t[n]=dh(e[n])})),function(e,t){if("disposal limit (tonne)"in e){var n=lh(e);if(n){for(var r=e["disposal limit (tonne)"],o=Math.round(r[0]/n[0]*1e6)/1e6,a=1;a<r.length;a++)if(Math.abs(r[a]/n[a]-o)>1e-5)return;t["disposal limit (tonne)"]="",t["disposal limit (%)"]=String(100*o)}}}(e,t),[t,n]},yh=function(e){var t={},n={};t.storage={},t.storage["cost ($/tonne)"]=0,t.storage["limit (tonne)"]=0,t["disposal cost ($/tonne)"]=0,t["disposal limit (tonne)"]=0,["x","y"].forEach((function(e){t[e]=null})),["input"].forEach((function(n){t[n]=e[n]})),["energy (GJ/tonne)"].forEach((function(n){t[n]=fh(e[n]),""===t[n]&&delete t[n]})),["outputs (tonne/tonne)","emissions (tonne/tonne)"].forEach((function(n){t[n]=dh(e[n])}));for(var r=!1,o=t.locations={},a=function(){var a=f(u[i],2),s=a[0],c=a[1];o[s]={},["latitude (deg)","longitude (deg)"].forEach((function(e){o[s][e]=c[e]}));var l=function(e){for(var t=[],n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];t.push(o)}return t}(c["capacities (tonne)"]),d=l.length-1,p=l[0],h=l[d],v=c["capacities (tonne)"][p],m=c["capacities (tonne)"][h];if("minimum capacity (tonne)"in t){if(t["minimum capacity (tonne)"]!==p||t["maximum capacity (tonne)"]!==h)throw"Data loss"}else t["minimum capacity (tonne)"]=p,t["maximum capacity (tonne)"]=h;var y=1;r&&(y=t["opening cost (max capacity) ($)"],Array.isArray(y)&&(y=y[0]),y=m["opening cost ($)"][0]/y),o[s]["area cost factor"]=y;var g=f(ph(m,["opening cost ($)","fixed operating cost ($)","variable operating cost ($/tonne)"]),2),b=g[0],w=g[1];n["inflation rate (%)"]=String(100*(b-1)),n["time horizon (years)"]=String(w);for(var _=function(e){return fh(e.map((function(e){return e/y})),b)},x=_(m["opening cost ($)"]),E=_(v["opening cost ($)"]),k=_(m["fixed operating cost ($)"]),S=_(v["fixed operating cost ($)"]),O=_(c.storage["cost ($/tonne)"]),P=String(c.storage["limit (tonne)"]),C=_(v["variable operating cost ($/tonne)"]),N={},j={},M=0,T=Object.keys(e["outputs (tonne/tonne)"]);M<T.length;M++){var D=T[M];if(N[D]="",j[D]="",D in c.disposal){var I=c.disposal[D];N[D]=_(I["cost ($/tonne)"]),"limit (tonne)"in I&&(j[D]=fh(I["limit (tonne)"]))}}var A=function(e,t){(uh(e)&&uh(t)?Math.abs(e-t)<1:e===t)||console.warn("Data loss detected: ".concat(s,", ").concat(e," != ").concat(t))};r?(A(t["opening cost (max capacity) ($)"],x),A(t["opening cost (min capacity) ($)"],E),A(t["fixed operating cost (max capacity) ($)"],k),A(t["fixed operating cost (min capacity) ($)"],S),A(t["variable operating cost ($/tonne)"],C),A(t.storage["cost ($/tonne)"],O),A(t.storage["limit (tonne)"],P),A(String(t["disposal cost ($/tonne)"]),String(N)),A(String(t["disposal limit (tonne)"]),String(j))):(r=!0,t["opening cost (max capacity) ($)"]=x,t["opening cost (min capacity) ($)"]=E,t["fixed operating cost (max capacity) ($)"]=k,t["fixed operating cost (min capacity) ($)"]=S,t["variable operating cost ($/tonne)"]=C,t.storage={},t.storage["cost ($/tonne)"]=O,t.storage["limit (tonne)"]=P,t["disposal cost ($/tonne)"]=N,t["disposal limit (tonne)"]=j,n["inflation rate (%)"]=String(100*(b-1)))},i=0,u=Object.entries(e.locations);i<u.length;i++)a();return[t,n]},gh=(new(n(2080))).compile({$schema:"http://json-schema.org/draft-07/schema#",$id:"https://anl-ceeesa.github.io/RELOG/input",title:"Schema for RELOG Input File",definitions:{TimeSeries:{type:"array",items:{type:"number"}},Parameters:{type:"object",properties:{"time horizon (years)":{type:"number"}},required:["time horizon (years)"]},Plant:{type:"object",additionalProperties:{type:"object",properties:{input:{type:"string"},"outputs (tonne/tonne)":{type:"object",additionalProperties:{type:"number"}},"energy (GJ/tonne)":{$ref:"#/definitions/TimeSeries"},"emissions (tonne/tonne)":{type:"object",additionalProperties:{$ref:"#/definitions/TimeSeries"}},locations:{$ref:"#/definitions/PlantLocation"}},required:["input","locations"]}},PlantLocation:{type:"object",additionalProperties:{type:"object",properties:{location:{type:"string"},"latitude (deg)":{type:"number"},"longitude (deg)":{type:"number"},disposal:{type:"object",additionalProperties:{type:"object",properties:{"cost ($/tonne)":{$ref:"#/definitions/TimeSeries"},"limit (tonne)":{$ref:"#/definitions/TimeSeries"}},required:["cost ($/tonne)"]}},storage:{type:"object",properties:{"cost ($/tonne)":{$ref:"#/definitions/TimeSeries"},"limit (tonne)":{type:"number"}},required:["cost ($/tonne)","limit (tonne)"]},"capacities (tonne)":{type:"object",additionalProperties:{type:"object",properties:{"variable operating cost ($/tonne)":{$ref:"#/definitions/TimeSeries"},"fixed operating cost ($)":{$ref:"#/definitions/TimeSeries"},"opening cost ($)":{$ref:"#/definitions/TimeSeries"}},required:["variable operating cost ($/tonne)","fixed operating cost ($)","opening cost ($)"]}}},required:["capacities (tonne)"]}},InitialAmount:{type:"object",additionalProperties:{type:"object",properties:{location:{type:"string"},"latitude (deg)":{type:"number"},"longitude (deg)":{type:"number"},"amount (tonne)":{$ref:"#/definitions/TimeSeries"}},required:["amount (tonne)"]}},Product:{type:"object",additionalProperties:{type:"object",properties:{"transportation cost ($/km/tonne)":{$ref:"#/definitions/TimeSeries"},"transportation energy (J/km/tonne)":{$ref:"#/definitions/TimeSeries"},"transportation emissions (tonne/km/tonne)":{type:"object",additionalProperties:{$ref:"#/definitions/TimeSeries"}},"initial amounts":{$ref:"#/definitions/InitialAmount"}},required:["transportation cost ($/km/tonne)"]}}},type:"object",properties:{parameters:{$ref:"#/definitions/Parameters"},plants:{$ref:"#/definitions/Plant"},products:{$ref:"#/definitions/Product"}},required:["parameters","plants","products"]}),bh=function(){var e=u(v().mark((function e(){var t;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,O("RELOG",1,{upgrade:function(e){e.createObjectStore("casebuilder")}});case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),wh=function(){var t=(0,e.useRef)(),n=f((0,e.useState)(ih),2),r=n[0],o=n[1],i=f((0,e.useState)([]),2),s=i[0],c=i[1],d=function(){var e=u(v().mark((function e(t){var n;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,bh();case 2:return n=e.sent,e.next=5,n.put("casebuilder",t,"data");case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();(0,e.useEffect)(u(v().mark((function e(){var t,n;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,bh();case 2:return t=e.sent,e.next=5,t.get("casebuilder","data");case 5:(n=e.sent)&&o(n);case 7:case"end":return e.stop()}}),e)}))),[]);for(var p=function(e){var t=prompt("Name");if(t&&0!==t.length&&!(t in e.products)&&!(t in e.plants))return t},h=function(e){var t=JSON.parse(e);if(gh(t)){var n=function(e){["parameters","plants","products"].forEach((function(t){if(!(t in e))throw"File not recognized."}));var t={};t.parameters=dh(e.parameters),["building period (years)"].forEach((function(n){t.parameters[n]=JSON.stringify(e.parameters[n])})),t.parameters["inflation rate (%)"]="0",t.products={};for(var n=0,r=Object.entries(e.products);n<r.length;n++){var o=f(r[n],2),a=o[0],i=o[1],u=f(mh(i),2),s=u[0],c=u[1];t.products[a]=s,t.parameters=l(l({},t.parameters),c)}t.plants={};for(var d=0,p=Object.entries(e.plants);d<p.length;d++){var h=f(p[d],2),v=h[0],m=h[1],y=f(yh(m),2),g=y[0],b=y[1];t.plants[v]=g,t.parameters=l(l({},t.parameters),b)}return t}(t);o(n),d(n)}else console.log(gh.errors),c([].concat(a(s),["File is corrupted and could not be loaded."]))},m=function(e,t,n){o((function(r){var o=l({},r);return void 0!==n?o[t][n]=e:o[t]=e,d(o),o}))},y=[],g=function(){var e=f(w[b],2),t=e[0],n=e[1];y.push((0,zc.jsx)(Qp,{name:t,value:n,onChange:function(e){return m(e,"products",t)}},t))},b=0,w=Object.entries(r.products);b<w.length;b++)g();for(var _=[],x=function(){var e=f(k[E],2),t=e[0],n=e[1];_.push((0,zc.jsx)(Zp,{name:t,value:n,onChange:function(e){return m(e,"plants",t)}},t))},E=0,k=Object.entries(r.plants);E<k.length;E++)x();for(var S=[],O=function(e){S.push((0,zc.jsxs)("div",{className:"message error",children:[(0,zc.jsx)("p",{children:s[e]}),(0,zc.jsx)(qc,{label:"Dismiss",onClick:function(){return t=e,void c([].concat(a(s.slice(0,t)),a(s.slice(t+1))));var t}})]},e))},P=0;P<s.length;P++)O(P);return(0,zc.jsxs)(zc.Fragment,{children:[(0,zc.jsxs)(th,{title:"Case Builder",children:[(0,zc.jsx)(qc,{label:"Clear",onClick:function(){var e=JSON.parse(JSON.stringify(ih));o(e),d(e)}}),(0,zc.jsx)(qc,{label:"Load",onClick:function(e){return t.current.click()}}),(0,zc.jsx)(qc,{label:"Save",onClick:function(){var e=function(e){var t={parameters:{},products:{},plants:{}};["time horizon (years)","building period (years)"].forEach((function(n){t.parameters[n]=sh(e.parameters[n])}));var n=t.parameters["time horizon (years)"];uh(n)||(n=1);for(var r=0,o=Object.entries(e.products);r<o.length;r++){var a=f(o[r],2),i=a[0],u=a[1];t.products[i]=hh(u,e.parameters)}for(var s=0,c=Object.entries(e.plants);s<c.length;s++){var l=f(c[s],2),d=l[0],p=l[1];t.plants[d]=vh(p,e.parameters)}return t}(r),t=gh(e);console.log(e),console.log(gh.errors),t?Wp("case.json",JSON.stringify(e,null,2)):c([].concat(a(s),["Data has validation errors and could not be saved."]))}}),(0,zc.jsx)("input",{type:"file",ref:t,accept:".json",style:{display:"none"},onChange:function(){var e=t.current.files[0];if(e){var n=new FileReader;n.addEventListener("load",(function(){h(n.result)})),n.readAsText(e)}t.current.value=""}})]}),(0,zc.jsxs)("div",{id:"content",children:[(0,zc.jsx)(Zc,{onAddPlant:function(){o((function(e){var t=p(e);if(void 0===t)return e;var n=l({},e),r=f(Qc(),2),o=r[0],a=r[1];return n.plants[t]=l(l({},ah),{},{x:o,y:a}),d(n),n}))},onAddPlantOutput:function(e,t){o((function(n){if(t in n.plants[e]["outputs (tonne/tonne)"])return n;var r=l({},n);return["outputs (tonne/tonne)","disposal cost ($/tonne)","disposal limit (tonne)"].forEach((function(n){r.plants[e][n]=l({},r.plants[e][n]),r.plants[e][n][t]=0})),d(r),r}))},onAddProduct:function(){o((function(e){var t=p(e);if(void 0===t)return e;var n=l({},e),r=f(Qc(),2),o=r[0],a=r[1];return console.log(o,a),n.products[t]=l(l({},oh),{},{x:o,y:a}),d(n),n}))},onMovePlant:function(e,t,n){o((function(r){var o=l({},r);return o.plants[e].x=t,o.plants[e].y=n,d(o),o}))},onMoveProduct:function(e,t,n){o((function(r){var o=l({},r);return o.products[e].x=t,o.products[e].y=n,d(o),o}))},onRenamePlant:function(e,t){o((function(n){var r=l({},n);return r.plants[t]=r.plants[e],delete r.plants[e],d(r),r}))},onRenameProduct:function(e,t){o((function(n){var r=l({},n);r.products[t]=r.products[e],delete r.products[e];for(var o=0,a=Object.entries(r.plants);o<a.length;o++){var i=f(a[o],2)[1];i.input===e&&(i.input=t);for(var u=!1,s=0,c=Object.entries(i["outputs (tonne/tonne)"]);s<c.length;s++){f(c[s],1)[0]===e&&(u=!0)}u&&(i["outputs (tonne/tonne)"][t]=i["outputs (tonne/tonne)"][e],delete i["outputs (tonne/tonne)"][e])}return d(r),r}))},onSetPlantInput:function(e,t){o((function(n){var r=l({},n);return r.plants[e].input=t,d(r),r}))},onRemovePlant:function(e){o((function(t){var n=l({},t);return delete n.plants[e],d(n),n}))},onRemoveProduct:function(e){o((function(t){var n=l({},t);delete n.products[e];for(var r=0,o=Object.entries(n.plants);r<o.length;r++){var a=f(o[r],2)[1];a.input===e&&delete a.input;for(var i=!1,u=0,s=Object.entries(a["outputs (tonne/tonne)"]);u<s.length;u++){f(s[u],1)[0]===e&&(i=!0)}i&&delete a["outputs (tonne/tonne)"][e]}return d(n),n}))},plants:r.plants,products:r.products}),(0,zc.jsx)(ul,{value:r.parameters,onChange:function(e){return m(e,"parameters")}}),y,_]}),(0,zc.jsx)("div",{id:"messageTray",children:S}),(0,zc.jsx)(rh,{})]})};t.render((0,zc.jsx)(e.StrictMode,{children:(0,zc.jsx)(wh,{})}),document.getElementById("root"))}()}();
//# sourceMappingURL=main.dde913fd.js.map