web-input-material 0.0.311 → 0.0.314

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,361 @@
1
+ 'use strict';if(typeof module!=='undefined'&&module!==null&&eval('typeof require')!=='undefined'&&eval('require')!==null&&'main'in eval('require')&&eval('typeof require.main')!=='undefined'&&eval('require.main')!==null){var ORIGINAL_MAIN_MODULE=module;if(module!==eval('require.main')&&'paths'in module&&'paths'in eval('require.main')&&typeof __dirname!=='undefined'&&__dirname!==null)module.paths=eval('require.main.paths').concat(module.paths.filter(function(path){return eval('require.main.paths').includes(path)}))};if(typeof window==='undefined'||window===null)var window=(typeof global==='undefined'||global===null)?{}:global;!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(this,(function(){return function(){var __webpack_modules__=[function(e,t,n){"use strict";e.exports=n(101)},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(e){console.error(e)}}(),e.exports=n(103)},function(e){var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},function(e){var t=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=t)},function(e,t,n){e.exports=!n(16)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t){"use strict";t.Z=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";var r,i=n(66),o=(r=i)&&r.__esModule?r:{default:r};t.Z=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":(0,o.default)(t))&&"function"!=typeof t?e:t}},function(e,t,n){"use strict";var r=a(n(132)),i=a(n(133)),o=a(n(66));function a(e){return e&&e.__esModule?e:{default:e}}t.Z=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":(0,o.default)(t)));e.prototype=(0,i.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(r.default?(0,r.default)(e,t):e.__proto__=t)}},function(e){var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},function(e,t,n){var r=n(2),i=n(3),o=n(41),a=n(10),s=n(8),l=function(e,t,n){var u,c,d,f=e&l.F,h=e&l.G,p=e&l.S,m=e&l.P,g=e&l.B,v=e&l.W,b=h?i:i[t]||(i[t]={}),y=b.prototype,_=h?r:p?r[t]:(r[t]||{}).prototype;for(u in h&&(n=t),n)(c=!f&&_&&void 0!==_[u])&&s(b,u)||(d=c?_[u]:n[u],b[u]=h&&"function"!=typeof _[u]?n[u]:g&&c?o(d,r):v&&_[u]==d?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(d):m&&"function"==typeof d?o(Function.call,d):d,m&&((b.virtual||(b.virtual={}))[u]=d,e&l.R&&y&&!y[u]&&a(y,u,d)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t,n){var r=n(11),i=n(17);e.exports=n(4)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(15),i=n(42),o=n(24),a=Object.defineProperty;t.f=n(4)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(45),i=n(25);e.exports=function(e){return r(i(e))}},function(e,t,n){var r=n(28)("wks"),i=n(20),o=n(2).Symbol,a="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=r},function(e,t,n){var r=n(12);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(44),i=n(29);e.exports=Object.keys||function(e){return r(e,i)}},function(e){e.exports=!0},function(e){var t=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++t+n).toString(36))}},function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():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},function(e,t){var n;
2
+ /*!
3
+ Copyright (c) 2018 Jed Watson.
4
+ Licensed under the MIT License (MIT), see
5
+ http://jedwatson.github.io/classnames
6
+ */!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)){if(n.length){var a=i.apply(null,n);a&&e.push(a)}}else if("object"===o){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var s in n)r.call(n,s)&&n[s]&&e.push(s)}}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},function(e,t,n){var r=n(21);e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(12);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e){var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},function(e,t,n){var r=n(28)("keys"),i=n(20);e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,t,n){var r=n(3),i=n(2),o="__core-js_shared__",a=i[o]||(i[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(19)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var r=n(25);e.exports=function(e){return Object(r(e))}},function(e){e.exports={}},function(e,t,n){var r=n(15),i=n(85),o=n(29),a=n(27)("IE_PROTO"),s=function(){},l=function(){var e,t=n(43)("iframe"),r=o.length;for(t.style.display="none",n(86).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),l=e.F;r--;)delete l.prototype[o[r]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=r(e),n=new s,s.prototype=null,n[a]=e):n=l(),void 0===t?n:i(n,t)}},function(e,t,n){var r=n(11).f,i=n(8),o=n(14)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},function(e,t,n){var r=n(2),i=n(3),o=n(19),a=n(49),s=n(11).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():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},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(21),i=n(59);function o(t,n,a){return i()?(e.exports=o=Reflect.construct.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=o=function(e,t,n){var i=[null];i.push.apply(i,t);var o=new(Function.bind.apply(e,i));return n&&r(o,n.prototype),o},e.exports.__esModule=!0,e.exports.default=e.exports),o.apply(null,arguments)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(53),i=n(21),o=n(58),a=n(37);function s(t){var n="function"==typeof Map?new Map:void 0;return e.exports=s=function(e){if(null===e||!o(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return a(e,arguments,r(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),i(t,e)},e.exports.__esModule=!0,e.exports.default=e.exports,s(t)}e.exports=s,e.exports.__esModule=!0,e.exports.default=e.exports},function(e){function t(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}e.exports=function(e){return function(){var n=this,r=arguments;return new Promise((function(i,o){var a=e.apply(n,r);function s(e){t(a,i,o,s,l,"next",e)}function l(e){t(a,i,o,s,l,"throw",e)}s(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(54)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){var r=n(74);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){e.exports=!n(4)&&!n(16)((function(){return 7!=Object.defineProperty(n(43)("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(12),i=n(2).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t,n){var r=n(8),i=n(13),o=n(76)(!1),a=n(27)("IE_PROTO");e.exports=function(e,t){var n,s=i(e),l=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);for(;t.length>l;)r(s,n=t[l++])&&(~o(u,n)||u.push(n));return u}},function(e,t,n){var r=n(46);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){"use strict";var r=n(19),i=n(9),o=n(83),a=n(10),s=n(32),l=n(84),u=n(34),c=n(87),d=n(14)("iterator"),f=!([].keys&&"next"in[].keys()),h="keys",p="values",m=function(){return this};e.exports=function(e,t,n,g,v,b,y){l(n,t,g);var _,w,x,C=function(e){if(!f&&e in A)return A[e];switch(e){case h:case p:return function(){return new n(this,e)}}return function(){return new n(this,e)}},E=t+" Iterator",S=v==p,T=!1,A=e.prototype,k=A[d]||A["@@iterator"]||v&&A[v],O=k||C(v),I=v?S?C("entries"):O:void 0,L="Array"==t&&A.entries||k;if(L&&(x=c(L.call(new e)))!==Object.prototype&&x.next&&(u(x,E,!0),r||"function"==typeof x[d]||a(x,d,m)),S&&k&&k.name!==p&&(T=!0,O=function(){return k.call(this)}),r&&!y||!f&&!T&&A[d]||a(A,d,O),s[t]=O,s[E]=m,v)if(_={values:S?O:C(p),keys:b?O:C(h),entries:I},y)for(w in _)w in A||o(A,w,_[w]);else i(i.P+i.F*(f||T),t,_);return _}},function(e,t,n){t.f=n(14)},function(module,__unused_webpack_exports,__webpack_require__){"use strict";var __dirname="/",e,n,r;if(module=__webpack_require__.nmd(module),null!==module&&"undefined"!==eval("typeof require")&&null!==eval("require")&&"main"in eval("require")&&"undefined"!==eval("typeof require.main")&&null!==eval("require.main")){var ORIGINAL_MAIN_MODULE=module;module!==eval("require.main")&&"paths"in module&&"paths"in eval("require.main")&&null!=__dirname&&(module.paths=eval("require.main.paths").concat(module.paths.filter((function(path){return eval("require.main.paths").includes(path)}))))}if(null==window)var window=void 0===__webpack_require__.g||null===__webpack_require__.g?{}:__webpack_require__.g;module.exports=(e=__webpack_require__(23),n=__webpack_require__(38),r=__webpack_require__(57),function(){var t={0:function(t){t.exports=e},9:function(e){e.exports=n},10:function(e){e.exports=r}},i={};function o(e){var n=i[e];if(void 0!==n)return n.exports;var r=i[e]={exports:{}};return t[e](r,r.exports,o),r.exports}o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},o.d=function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return function(){o.r(a),o.d(a,{DummyTypes:function(){return h},NullSymbol:function(){return l},PropertyTypes:function(){return p},RealTypes:function(){return c},UndefinedSymbol:function(){return u},ValidationError:function(){return f},any:function(){return m},array:function(){return g},arrayOf:function(){return v},bool:function(){return b},boolean:function(){return y},createDummy:function(){return d},element:function(){return _},elementType:function(){return w},exact:function(){return x},func:function(){return C},instanceOf:function(){return E},node:function(){return S},number:function(){return T},object:function(){return A},objectOf:function(){return k},oneOf:function(){return O},oneOfType:function(){return I},shape:function(){return L},string:function(){return R},symbol:function(){return M}});var e=o(0),t=o.n(e),n=o(9),r=o.n(n),i=o(10),s=o.n(i),l=Symbol("null"),u=Symbol("undefined"),c={any:s().any,array:s().array,arrayOf:s().arrayOf,bool:s().bool,boolean:s().bool,element:s().element,elementType:s().elementType,exact:s().exact,func:s().func,instanceOf:s().instanceOf,node:s().node,number:s().number,object:s().object,objectOf:s().objectOf,oneOf:s().oneOf,oneOfType:s().oneOfType,shape:s().shape,string:s().string,symbol:s().symbol},d=function(e){void 0===e&&(e=null);var t=function(){return e};return t.isRequired=function(){return null},t},f=function(e){function n(){var t;return(t=e.call(this,"return null")||this).message="DummyErrorMessage",t}return t()(n,e),n}(r()(Function)),h={any:d(),array:d(),arrayOf:d(new f),bool:d(),boolean:d(),element:d(),elementType:d(new f),exact:d(),func:d(),instanceOf:d(new f),node:d(),number:d(),object:d(),objectOf:d(new f),oneOf:d(new f),oneOfType:d(new f),shape:d(new f),string:d(),symbol:d()},p=["debug","dev","development"].includes("production".trim().toLowerCase())?c:h,m=p.any,g=p.array,v=p.arrayOf,b=p.bool,y=p.bool,_=p.element,w=p.elementType,x=p.exact,C=p.func,E=p.instanceOf,S=p.node,T=p.number,A=p.object,k=p.objectOf,O=p.oneOf,I=p.oneOfType,L=p.shape,R=p.string,M=p.symbol;a.default=p}(),a}())},function(module,__unused_webpack_exports,__webpack_require__){"use strict";var __dirname="/",r;if(module=__webpack_require__.nmd(module),null!==module&&"undefined"!==eval("typeof require")&&null!==eval("require")&&"main"in eval("require")&&"undefined"!==eval("typeof require.main")&&null!==eval("require.main")){var ORIGINAL_MAIN_MODULE=module;module!==eval("require.main")&&"paths"in module&&"paths"in eval("require.main")&&null!=__dirname&&(module.paths=eval("require.main.paths").concat(module.paths.filter((function(path){return eval("require.main.paths").includes(path)}))))}if(null==window)var window=void 0===__webpack_require__.g||null===__webpack_require__.g?{}:__webpack_require__.g;r=function(__WEBPACK_EXTERNAL_MODULE__0__,__WEBPACK_EXTERNAL_MODULE__2__,__WEBPACK_EXTERNAL_MODULE__3__,__WEBPACK_EXTERNAL_MODULE__4__,__WEBPACK_EXTERNAL_MODULE__5__,__WEBPACK_EXTERNAL_MODULE__6__,__WEBPACK_EXTERNAL_MODULE__7__){return function(){var __webpack_modules__=[function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__0__},function(module,__webpack_exports__,__nested_webpack_require_2371__){__nested_webpack_require_2371__.r(__webpack_exports__),__nested_webpack_require_2371__.d(__webpack_exports__,{$:function(){return $},BoundTools:function(){return BoundTools},CloseEventNames:function(){return CloseEventNames},ConsoleOutputMethods:function(){return ConsoleOutputMethods},IgnoreNullAndUndefinedSymbol:function(){return IgnoreNullAndUndefinedSymbol},Lock:function(){return Lock},Semaphore:function(){return Semaphore},Tools:function(){return Tools},ValueCopySymbol:function(){return ValueCopySymbol},augment$:function(){return augment$},currentImport:function(){return currentImport},currentRequire:function(){return currentRequire},determine$:function(){return determine$},determineGlobalContext:function(){return determineGlobalContext},globalContext:function(){return globalContext},optionalRequire:function(){return optionalRequire},setGlobalContext:function(){return setGlobalContext}});var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__=__nested_webpack_require_2371__(0),_babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0___default=__nested_webpack_require_2371__.n(_babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_construct__WEBPACK_IMPORTED_MODULE_1__=__nested_webpack_require_2371__(2),_babel_runtime_helpers_construct__WEBPACK_IMPORTED_MODULE_1___default=__nested_webpack_require_2371__.n(_babel_runtime_helpers_construct__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__=__nested_webpack_require_2371__(3),_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default=__nested_webpack_require_2371__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__=__nested_webpack_require_2371__(4),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default=__nested_webpack_require_2371__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_4__=__nested_webpack_require_2371__(5),_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_4___default=__nested_webpack_require_2371__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5__=__nested_webpack_require_2371__(6),_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default=__nested_webpack_require_2371__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5__),_ref,_globalContext$fetch,_optionalRequire;function _createForOfIteratorHelperLoose(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(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)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(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}module=__nested_webpack_require_2371__.hmd(module);var CloseEventNames=["close","exit","SIGINT","SIGTERM","SIGQUIT","uncaughtException"],ConsoleOutputMethods=["debug","error","info","log","warn"],ValueCopySymbol=Symbol.for("clientnodeValue"),IgnoreNullAndUndefinedSymbol=Symbol.for("clientnodeIgnoreNullAndUndefined"),determineGlobalContext=function(){return"undefined"==typeof globalThis?void 0===window?void 0===__nested_webpack_require_2371__.g?module:__nested_webpack_require_2371__.g.window?__nested_webpack_require_2371__.g.window:__nested_webpack_require_2371__.g:window:globalThis},globalContext=determineGlobalContext(),setGlobalContext=function(e){globalContext=e},currentRequire=eval("typeof require === 'undefined' ? null : require"),currentOptionalImport=null;try{currentOptionalImport=eval("typeof import === 'undefined' ? null : import")}catch(e){}var currentImport=currentOptionalImport,optionalRequire=function(e){try{return currentRequire?currentRequire(e):null}catch(e){return null}};globalContext.fetch=null!==(_ref=null!==(_globalContext$fetch=globalContext.fetch)&&void 0!==_globalContext$fetch?_globalContext$fetch:null==(_optionalRequire=optionalRequire("node-fetch"))?void 0:_optionalRequire.default)&&void 0!==_ref?_ref:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return currentImport("node-fetch").then((function(e){var n;return null==e?void 0:(n=e).default.apply(n,t)}))};var _ref3=optionalRequire("fs")||{},_ref3$mkdirSync=_ref3.mkdirSync,mkdirSync=void 0===_ref3$mkdirSync?null:_ref3$mkdirSync,_ref3$readdirSync=_ref3.readdirSync,readdirSync=void 0===_ref3$readdirSync?null:_ref3$readdirSync,_ref3$readFileSync=_ref3.readFileSync,readFileSync=void 0===_ref3$readFileSync?null:_ref3$readFileSync,_ref3$statSync=_ref3.statSync,statSync=void 0===_ref3$statSync?null:_ref3$statSync,_ref3$writeFileSync=_ref3.writeFileSync,writeFileSync=void 0===_ref3$writeFileSync?null:_ref3$writeFileSync,_ref4=optionalRequire("fs/promises")||{},_ref4$mkdir=_ref4.mkdir,mkdir=void 0===_ref4$mkdir?null:_ref4$mkdir,_ref4$readdir=_ref4.readdir,readdir=void 0===_ref4$readdir?null:_ref4$readdir,_ref4$readFile=_ref4.readFile,readFile=void 0===_ref4$readFile?null:_ref4$readFile,_ref4$stat=_ref4.stat,stat=void 0===_ref4$stat?null:_ref4$stat,_ref4$writeFile=_ref4.writeFile,writeFile=void 0===_ref4$writeFile?null:_ref4$writeFile,_ref5=optionalRequire("path")||{},_ref5$basename=_ref5.basename,basename=void 0===_ref5$basename?null:_ref5$basename,_ref5$join=_ref5.join,join=void 0===_ref5$join?null:_ref5$join,_ref5$resolve=_ref5.resolve,resolve=void 0===_ref5$resolve?null:_ref5$resolve,determine$=function(){var e=function(){};if(globalContext.$&&null!==globalContext.$)e=globalContext.$;else{if(!globalContext.$&&globalContext.document)try{e=__nested_webpack_require_2371__(7)}catch(e){}if(null==e||"object"==typeof e&&0===Object.keys(e).length){var t,n=null!=(t=globalContext.document)&&t.querySelectorAll?globalContext.document.querySelectorAll.bind(globalContext.document):function(){return null};(e=function(t){var r=null;if("string"==typeof t?r=n(t):Array.isArray(t)?r=t:("object"==typeof HTMLElement&&t instanceof HTMLElement||1===(null==t?void 0:t.nodeType)&&"string"==typeof(null==t?void 0:t.nodeName))&&(r=[t]),r){if(e.fn)for(var i=0,o=Object.entries(e.fn);i<o.length;i++){var a=o[i],s=a[0],l=a[1];r[s]=l.bind(r)}return r.jquery="clientnode",r}return Tools.isFunction(t)&&globalContext.document&&globalContext.document.addEventListener("DOMContentLoaded",t),t}).fn={}}}return e.global||(e.global=globalContext),e.global.window&&(!e.document&&e.global.window.document&&(e.document=e.global.window.document),!e.location&&e.global.window.location&&(e.location=e.global.window.location)),e},$=determine$(),Lock=function(){function e(e){void 0===e&&(e={}),this.locks=void 0,this.locks=e}var t=e.prototype;return t.acquire=function(e,t,n){var r=this;return void 0===n&&(n=!1),new Promise((function(i){var o=function(e){var o,a;t&&(a=t(e));var s=function(t){return n&&r.release(e),i(t),t};return null!=(o=a)&&o.then?a.then(s):(s(e),a)};Object.prototype.hasOwnProperty.call(r.locks,e)?r.locks[e].push(o):(r.locks[e]=[],o(e))}))},t.release=function(){var e=_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_4___default()(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default().mark((function e(t){var n;return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Object.prototype.hasOwnProperty.call(this.locks,t)){e.next=9;break}if(void 0!==(n=this.locks[t].shift())){e.next=6;break}delete this.locks[t],e.next=9;break;case 6:return e.next=8,n(t);case 8:return e.abrupt("return",e.sent);case 9:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),e}(),Semaphore=function(){function e(e){void 0===e&&(e=2),this.queue=[],this.numberOfResources=void 0,this.numberOfFreeResources=void 0,this.numberOfResources=e,this.numberOfFreeResources=e}var t=e.prototype;return t.acquire=function(){var e=this;return new Promise((function(t){e.numberOfFreeResources<=0?e.queue.push(t):(e.numberOfFreeResources-=1,t(e.numberOfFreeResources))}))},t.release=function(){var e=this.queue.pop();void 0===e?this.numberOfFreeResources+=1:e(this.numberOfFreeResources)},e}(),Tools=function(){function Tools(e){var t=this;this.$domNode=null,this.options=void 0,this.stringNormalizeDomNodeSelector=function(e){var n="";return t.options.domNodeSelectorPrefix&&(n=t.options.domNodeSelectorPrefix+" "),e.startsWith(n)||e.trim().startsWith("<")||(e=n+e),e.trim()},this.sendToExternalURL=function(e,n,r,i){void 0===r&&(r="post"),void 0===i&&(i=!0);var o=$("<iframe>").attr("name",t.options.name.charAt(0).toLowerCase()+t.options.name.substring(1)+""+(new Date).getTime()).hide();return t.$domNode&&t.$domNode.append(o),Tools.sendToIFrame(o,e,n,r,i),o},this._bindEventHelper=function(e,n,r){void 0===n&&(n=!1),r||(r=n?"off":"on");var i=$(e[0]);if("object"===Tools.determineType(e[1])&&!n){for(var o=0,a=Object.entries(e[1]);o<a.length;o++){var s=a[o],l=s[0],u=s[1];t[r](i,l,u)}return i}return 0===(e=Tools.arrayMake(e).slice(1)).length&&e.push(""),e[0].includes(".")||(e[0]+="."+t.options.name),i[r].apply(i,e)},e&&(this.$domNode=e),this.options=Tools._defaultOptions,$.global.console||($.global.console={});for(var n,r=_createForOfIteratorHelperLoose(ConsoleOutputMethods);!(n=r()).done;){var i=n.value;i in $.global.console||($.global.console[i]=Tools.noop)}}var _proto3=Tools.prototype,e;return _proto3.destructor=function(){var e;return null!=(e=$.fn)&&e.off&&this.off("*"),this},_proto3.initialize=function(e){return void 0===e&&(e={}),this.options=Tools.extend(!0,{},Tools._defaultOptions,e),this.options.domNodeSelectorPrefix=Tools.stringFormat(this.options.domNodeSelectorPrefix,Tools.stringCamelCaseToDelimited(null===this.options.domNodeSelectorInfix?"":this.options.domNodeSelectorInfix||this.options.name)),this.renderJavaScriptDependentVisibility(),this},Tools.controller=function(e,t,n){void 0===n&&(n=null),"function"==typeof e&&((e=new e(n))instanceof Tools||(e=Tools.extend(!0,new Tools,e)));var r,i=Tools.arrayMake(t);if(i.length&&"string"==typeof i[0]&&i[0]in e)return Tools.isFunction(e[i[0]])?(r=e)[i[0]].apply(r,i.slice(1)):e[i[0]];if(0===i.length||"object"==typeof i[0]){var o,a,s=(o=e).initialize.apply(o,i),l=e.options.name||e.constructor.name;return null!=(a=n)&&a.data&&!n.data(l)&&n.data(l,e),s}if(i.length&&"string"==typeof i[0])throw new Error('Method "'+i[0]+'" does not exist on $-extended dom node "'+e+'".')},Tools.dateTimeFormat=function(e,t,n,r){void 0===e&&(e="full"),void 0===t&&(t=new Date),void 0===n&&(n={}),void 0===r&&(r=Tools.locales),"number"==typeof t&&(t*=1e3);var i=new Date(t);if(["full","long","medium","short"].includes(e))return new Intl.DateTimeFormat([].concat(r,"en-US"),_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({dateStyle:e,timeStyle:e},n)).format(i);for(var o,a={},s=_createForOfIteratorHelperLoose(["full","long","medium","short"]);!(o=s()).done;){var l=o.value;a[l+"Literals"]=[];var u=new Intl.DateTimeFormat([].concat(r,"en-US"),_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({dateStyle:l,timeStyle:l},n));a[l]=u.format(i);for(var c,d=_createForOfIteratorHelperLoose(u.formatToParts(i));!(c=d()).done;){var f=c.value;"literal"===f.type?a[l+"Literals"].push(f.value):a[""+l+Tools.stringCapitalize(f.type)]=f.value}}var h=Tools.stringEvaluate("`"+e+"`",a);if(h.error)throw new Error(h.error);return h.result},Tools.isNumeric=function(e){var t=Tools.determineType(e);return["number","string"].includes(t)&&!isNaN(e-parseFloat(e))},Tools.isWindow=function(e){return![null,void 0].includes(e)&&"object"==typeof e&&e===(null==e?void 0:e.window)},Tools.isArrayLike=function(e){var t;try{t=Boolean(e)&&e.length}catch(e){return!1}var n=Tools.determineType(e);if("function"===n||Tools.isWindow(e))return!1;if("array"===n||0===t)return!0;if("number"==typeof t&&t>0)try{return e[t-1],!0}catch(e){}return!1},Tools.isAnyMatching=function(e,t){for(var n,r=_createForOfIteratorHelperLoose(t);!(n=r()).done;){var i=n.value;if("string"==typeof i){if(i===e)return!0}else if(i.test(e))return!0}return!1},Tools.isObject=function(e){return null!==e&&"object"==typeof e},Tools.isPlainObject=function(e){return null!==e&&"object"==typeof e&&Tools.plainObjectPrototypes.includes(Object.getPrototypeOf(e))},Tools.isSet=function(e){return"set"===Tools.determineType(e)},Tools.isMap=function(e){return"map"===Tools.determineType(e)},Tools.isProxy=function(e){return Boolean(e.__target__)},Tools.isFunction=function(e){return Boolean(e)&&["[object AsyncFunction]","[object Function]"].includes({}.toString.call(e))},_proto3.log=function(e,t,n,r){if(void 0===t&&(t=!1),void 0===n&&(n=!1),void 0===r&&(r="info"),this.options.logging||t||["error","critical"].includes(r)){for(var i,o=arguments.length,a=new Array(o>4?o-4:0),s=4;s<o;s++)a[s-4]=arguments[s];if(n?i=e:"string"==typeof e?i=this.options.name+" ("+r+"): "+Tools.stringFormat.apply(Tools,[e].concat(a)):Tools.isNumeric(e)||"boolean"==typeof e?i=this.options.name+" ("+r+"): "+e.toString():(this.log(",--------------------------------------------,"),this.log(e,t,!0),this.log("'--------------------------------------------'")),i)if($.global.console&&r in $.global.console&&$.global.console[r]!==Tools.noop)$.global.console[r](i);else{var l;null!=(l=$.global.window)&&l.alert&&$.global.window.alert(i)}}},_proto3.info=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.log.apply(this,[e,!1,!1,"info"].concat(n))},_proto3.debug=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.log.apply(this,[e,!1,!1,"debug"].concat(n))},_proto3.error=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.log.apply(this,[e,!0,!1,"error"].concat(n))},_proto3.critical=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.log.apply(this,[e,!0,!1,"warn"].concat(n))},_proto3.warn=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.log.apply(this,[e,!1,!1,"warn"].concat(n))},Tools.show=function(e,t,n){void 0===t&&(t=3),void 0===n&&(n=0);var r="";if("object"===Tools.determineType(e)){for(var i=0,o=Object.entries(e);i<o.length;i++){var a=o[i],s=a[0],l=a[1];r+=s.toString()+": ",r+=n<=t?Tools.show(l,t,n+1):""+l,r+="\n"}return r.trim()}return(r=(""+e).trim())+' (Type: "'+Tools.determineType(e)+'")'},Tools.deleteCookie=function(e){$.document&&($.document.cookie=e+"=; Max-Age=-99999999;")},Tools.getCookie=function(e){if($.document){for(var t,n=e+"=",r=_createForOfIteratorHelperLoose(decodeURIComponent($.document.cookie).split(";"));!(t=r()).done;){for(var i=t.value;i.startsWith(" ");)i=i.substring(1);if(i.startsWith(n))return i.substring(n.length,i.length)}return""}return null},Tools.setCookie=function(e,t,n){if(void 0===n&&(n={}),$.document){var r,i=_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({domain:"",httpOnly:!1,minimal:!1,numberOfDaysUntilExpiration:365,path:"/",sameSite:"Lax",secure:!0},n),o=new Date;o.setTime(o.getTime()+24*i.numberOfDaysUntilExpiration*60*60*1e3),""===i.domain&&null!=(r=$.location)&&r.hostname&&(i.domain=$.location.hostname);var a=e+"="+t+(i.minimal?"":';Expires="'+o.toUTCString()+";Path="+i.path+";Domain="+i.domain+(i.sameSite?";SameSite="+i.sameSite:"")+(i.secure?";Secure":"")+(i.httpOnly?";HttpOnly":""));return $.document.cookie=a,!0}return!1},Tools.isEquivalentDOM=function(e,t,n){if(void 0===n&&(n=!1),e===t)return!0;if(e&&t){for(var r=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,i={first:e,second:t},o={first:$("<dummy>"),second:$("<dummy>")},a=0,s=Object.entries(i);a<s.length;a++){var l=s[a],u=l[0],c=l[1];if("string"==typeof c&&(n||c.startsWith("<")&&c.endsWith(">")&&c.length>=3||r.test(c)))o[u]=$("<div>"+c+"</div>");else try{var d=$(c).clone();if(!d.length)return!1;o[u]=$("<div>").append(d)}catch(e){return!1}}if(o.first.length&&o.first.length===o.second.length){o.first=o.first.Tools("normalizedClassNames").$domNode.Tools("normalizedStyles").$domNode,o.second=o.second.Tools("normalizedClassNames").$domNode.Tools("normalizedStyles").$domNode;for(var f=0,h=0,p=o.first;h<p.length;h++){if(!p[h].isEqualNode(o.second[f]))return!1;f+=1}return!0}}return!1},_proto3.getPositionRelativeToViewport=function(e){void 0===e&&(e={});var t=Tools.extend({bottom:0,left:0,right:0,top:0},e),n=this.$domNode;if($.global.window&&null!=n&&n.length&&n[0]&&"getBoundingClientRect"in n[0]){var r=$($.global.window),i=n[0].getBoundingClientRect();if(i){if(i.top&&i.top+t.top<0)return"above";if(i.left+t.left<0)return"left";var o=r.height();if("number"==typeof o&&o<i.bottom+t.bottom)return"below";var a=r.width();if("number"==typeof a&&a<i.right+t.right)return"right"}}return"in"},Tools.generateDirectiveSelector=function(e){var t=Tools.stringCamelCaseToDelimited(e);return t+", ."+t+", ["+t+"], [data-"+t+"], [x-"+t+"]"+(t.includes("-")?", ["+t.replace(/-/g,"\\:")+"], ["+t.replace(/-/g,"_")+"]":"")},_proto3.removeDirective=function(e){if(null===this.$domNode)return null;var t=Tools.stringCamelCaseToDelimited(e);return this.$domNode.removeClass(t).removeAttr(t).removeAttr("data-"+t).removeAttr("x-"+t).removeAttr(t.replace("-",":")).removeAttr(t.replace("-","_"))},_proto3.renderJavaScriptDependentVisibility=function(){!Tools._javaScriptDependentContentHandled&&$.document&&"filter"in $&&"hide"in $&&"show"in $&&($(this.options.domNodeSelectorPrefix+" "+this.options.domNodes.hideJavaScriptEnabled).filter((function(e,t){return!$(t).data("javaScriptDependentContentHide")})).data("javaScriptDependentContentHide",!0).hide(),$(this.options.domNodeSelectorPrefix+" "+this.options.domNodes.showJavaScriptEnabled).filter((function(e,t){return!$(t).data("javaScriptDependentContentShow")})).data("javaScriptDependentContentShow",!0).show(),Tools._javaScriptDependentContentHandled=!0)},Tools.getNormalizedDirectiveName=function(e){for(var t,n=_createForOfIteratorHelperLoose(["-",":","_"]);!(t=n()).done;){for(var r,i=t.value,o=!1,a=_createForOfIteratorHelperLoose(["data"+i,"x"+i]);!(r=a()).done;){var s=r.value;if(e.startsWith(s)){e=e.substring(s.length),o=!0;break}}if(o)break}for(var l,u=_createForOfIteratorHelperLoose(["-",":","_"]);!(l=u()).done;){var c=l.value;e=Tools.stringDelimitedToCamelCase(e,c)}return e},_proto3.getDirectiveValue=function(e){if(null===this.$domNode)return null;for(var t=Tools.stringCamelCaseToDelimited(e),n=0,r=[t,"data-"+t,"x-"+t,t.replace("-","\\:")];n<r.length;n++){var i=r[n],o=this.$domNode.attr(i);if("string"==typeof o)return o}return null},_proto3.sliceDomNodeSelectorPrefix=function(e){return this.options.domNodeSelectorPrefix&&e.startsWith(this.options.domNodeSelectorPrefix)?e.substring(this.options.domNodeSelectorPrefix.length).trim():e},Tools.getDomNodeName=function(e){var t=/^<?([a-zA-Z]+).*>?.*/.exec(e);return t?t[1]:null},_proto3.grabDomNodes=function(e,t){var n=this,r={};if(e)if(t)for(var i=$(t),o=0,a=Object.entries(e);o<a.length;o++){var s=a[o],l=s[0],u=s[1];r[l]=i.find(u)}else for(var c=0,d=Object.entries(e);c<d.length;c++){var f=d[c],h=f[0],p=f[1],m=/, */.exec(p);m&&(e[h]+=p.split(m[0]).map((function(e){return", "+n.stringNormalizeDomNodeSelector(e)})).join("")),r[h]=$(this.stringNormalizeDomNodeSelector(e[h]))}return this.options.domNodeSelectorPrefix&&(r.parent=$(this.options.domNodeSelectorPrefix)),$.global.window&&(r.window=$($.global.window),$.document&&(r.document=$($.document))),r},Tools.isolateScope=function(e,t){for(var n in void 0===t&&(t=[]),e)t.includes(n.charAt(0))||["constructor","prototype","this"].includes(n)||Object.prototype.hasOwnProperty.call(e,n)||(e[n]=void 0);return e},Tools.determineUniqueScopeName=function(e,t,n,r){if(void 0===e&&(e="callback"),void 0===t&&(t=""),void 0===n&&(n=$.global),void 0===r&&(r=""),r.length&&!(r in n))return r;for(var i=e+t;(i=e+""+Math.round(Math.random()*Math.pow(10,10))+t)in n;);return i},Tools.getParameterNames=function(e){var t=("string"==typeof e?e:e.toString()).replace(/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,"");if(t.startsWith("class"))return Tools.getParameterNames("function "+t.replace(/.*(constructor\([^)]+\))/m,"$1"));var n=/^function\s*[^(]*\(\s*([^)]*)\)/m.exec(t);null===n&&(n=/^[^(]*\(\s*([^)]*)\) *=>.*/m.exec(t)),null===n&&(n=/([^= ]+) *=>.*/m.exec(t));var r=[];if(n&&n.length>1&&n[1].trim().length){for(var i,o=_createForOfIteratorHelperLoose(n[1].split(","));!(i=o()).done;){var a=i.value;r.push(a.replace(/=.+$/g,"").trim())}return r}return r},Tools.identity=function(e){return e},Tools.invertArrayFilter=function(e){return function(t){if(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var o=e.apply(void 0,[t].concat(r)),a=[];if(o.length)for(var s,l=_createForOfIteratorHelperLoose(t);!(s=l()).done;){var u=s.value;o.includes(u)||a.push(u)}else a=t;return a}return t}},Tools.timeout=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r,i,o=Tools.noop,a=0,s=!1,l=0,u=t;l<u.length;l++){var c=u[l];"number"!=typeof c||isNaN(c)?"boolean"==typeof c?s=c:Tools.isFunction(c)&&(o=c):a=c}var d=new Promise((function(e,t){r=t,i=e})),f=function(){var e;(e=o).call.apply(e,[d].concat(t)),i(!1)},h=2147483647;if(a<=h)d.timeoutID=setTimeout(f,a);else{var p=Math.floor(a/h),m=a%h,g=function e(){p>0?(p-=1,d.timeoutID=setTimeout(e,h)):d.timeoutID=setTimeout(f,m)};g()}return d.clear=function(){d.timeoutID&&(clearTimeout(d.timeoutID),(s?r:i)(!0))},d},Tools.debounce=function(e,t){void 0===t&&(t=600);for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o,a,s=!1,l=null,u=new Promise((function(e,t){o=e,a=t}));return function(){for(var n=arguments.length,i=new Array(n),c=0;c<n;c++)i[c]=arguments[c];if(i=i.concat(r||[]),s)return l=i,u;s=!0;var d=u,f=o,h=a,p=e.apply(void 0,i);return null!=p&&p.then?p.then((function(e){return f(e)}),(function(e){return h(e)})):f(p),u=new Promise((function(n,r){o=n,a=r,Tools.timeout(t,(function(){if(s=!1,l){var t=e.apply(void 0,l);l=null,null!=t&&t.then?t.then((function(e){return n(e)}),(function(e){return r(e)})):n(t),u=new Promise((function(e,t){o=e,a=t}))}}))})),d}},_proto3.fireEvent=function(e,t,n){var r;void 0===t&&(t=!1),void 0===n&&(n=this);for(var i="on"+Tools.stringCapitalize(e),o=n,a=arguments.length,s=new Array(a>3?a-3:0),l=3;l<a;l++)s[l-3]=arguments[l];return t||(i in o?o[i].apply(o,s):"_"+i in o&&o["_"+i].apply(o,s)),!o.options||!(i in o.options)||o.options[i]===Tools.noop||(r=o.options[i]).call.apply(r,[this].concat(s))},_proto3.on=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this._bindEventHelper(t,!1)},_proto3.off=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this._bindEventHelper(t,!0)},Tools.addDynamicGetterAndSetter=function(e,t,n,r,i,o){if(void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r={}),void 0===i&&(i=!0),void 0===o&&(o=[Object]),i&&"object"==typeof e)if(Array.isArray(e))for(var a,s=0,l=_createForOfIteratorHelperLoose(e);!(a=l()).done;){var u=a.value;e[s]=Tools.addDynamicGetterAndSetter(u,t,n,r,i),s+=1}else if(Tools.isMap(e))for(var c,d=_createForOfIteratorHelperLoose(e);!(c=d()).done;){var f=c.value,h=f[0],p=f[1];e.set(h,Tools.addDynamicGetterAndSetter(p,t,n,r,i))}else if(Tools.isSet(e)){for(var m,g=[],v=_createForOfIteratorHelperLoose(e);!(m=v()).done;){var b=m.value;e.delete(b),g.push(Tools.addDynamicGetterAndSetter(b,t,n,r,i))}for(var y=0,_=g;y<_.length;y++){var w=_[y];e.add(w)}}else if(null!==e)for(var x=0,C=Object.entries(e);x<C.length;x++){var E=C[x],S=E[0],T=E[1];e[S]=Tools.addDynamicGetterAndSetter(T,t,n,r,i)}if(t||n)for(var A,k=_createForOfIteratorHelperLoose(o);!(A=k()).done;){var O=A.value;if(null!==e&&"object"==typeof e&&e instanceof O){var I=function(){var i=Tools.getProxyHandler(e,r),o=Tools.getProxyHandler(e,r);t&&(o.get=function(n,r){return"__target__"===r?e:"__revoke__"===r?function(){return l(),e}:"function"==typeof e[r]?e[r]:t(i.get(s,r),r,e)}),n&&(o.set=function(t,r,o){return i.set(s,r,n(r,o,e))});var a=Proxy.revocable({},o),s=a.proxy,l=a.revoke;return{v:s}}();if("object"==typeof I)return I.v}}return e},Tools.convertCircularObjectToJSON=function(e,t,n){void 0===t&&(t=function(e){return null!=e?e:"__circularReference__"}),void 0===n&&(n=0);var r=new Map;return function(e){return JSON.stringify(e,(function e(n,i){if(null!==i&&"object"==typeof i){var o,a;if(r.has(i))return t(null!==(o=r.get(i))&&void 0!==o?o:null,n,i,r);if(r.set(i,null),Array.isArray(i)){a=[];for(var s,l=_createForOfIteratorHelperLoose(i);!(s=l()).done;){var u=s.value;a.push(e(null,u))}}else{a={};for(var c=0,d=Object.entries(i);c<d.length;c++){var f=d[c],h=f[0],p=f[1];a[h]=e(h,p)}}return r.set(i,a),a}return i}),n)}(e)},Tools.convertMapToPlainObject=function(e,t){if(void 0===t&&(t=!0),"object"==typeof e){if(Tools.isMap(e)){for(var n,r={},i=_createForOfIteratorHelperLoose(e);!(n=i()).done;){var o=n.value,a=o[0],s=o[1];t&&(s=Tools.convertMapToPlainObject(s,t)),["number","string"].includes(typeof a)&&(r[""+a]=s)}return r}if(t)if(Tools.isPlainObject(e))for(var l=0,u=Object.entries(e);l<u.length;l++){var c=u[l],d=c[0],f=c[1];e[d]=Tools.convertMapToPlainObject(f,t)}else if(Array.isArray(e))for(var h=0,p=0,m=e;p<m.length;p++){var g=m[p];e[h]=Tools.convertMapToPlainObject(g,t),h+=1}else if(Tools.isSet(e)){for(var v,b=[],y=_createForOfIteratorHelperLoose(e);!(v=y()).done;){var _=v.value;e.delete(_),b.push(Tools.convertMapToPlainObject(_,t))}for(var w=0,x=b;w<x.length;w++){var C=x[w];e.add(C)}}}return e},Tools.convertPlainObjectToMap=function(e,t){if(void 0===t&&(t=!0),"object"==typeof e){if(Tools.isPlainObject(e)){for(var n=new Map,r=0,i=Object.entries(e);r<i.length;r++){var o=i[r],a=o[0],s=o[1];t&&(e[a]=Tools.convertPlainObjectToMap(s,t)),n.set(a,e[a])}return n}if(t)if(Array.isArray(e))for(var l=0,u=0,c=e;u<c.length;u++){var d=c[u];e[l]=Tools.convertPlainObjectToMap(d,t),l+=1}else if(Tools.isMap(e))for(var f,h=_createForOfIteratorHelperLoose(e);!(f=h()).done;){var p=f.value,m=p[0],g=p[1];e.set(m,Tools.convertPlainObjectToMap(g,t))}else if(Tools.isSet(e)){for(var v,b=[],y=_createForOfIteratorHelperLoose(e);!(v=y()).done;){var _=v.value;e.delete(_),b.push(Tools.convertPlainObjectToMap(_,t))}for(var w=0,x=b;w<x.length;w++){var C=x[w];e.add(C)}}}return e},Tools.convertSubstringInPlainObject=function(e,t,n){for(var r=0,i=Object.entries(e);r<i.length;r++){var o=i[r],a=o[0],s=o[1];Tools.isPlainObject(s)?e[a]=Tools.convertSubstringInPlainObject(s,t,n):"string"==typeof s&&(e[a]=s.replace(t,n))}return e},Tools.copy=function(e,t,n,r,i,o,a){if(void 0===t&&(t=-1),void 0===n&&(n=ValueCopySymbol),void 0===r&&(r=null),void 0===i&&(i=!1),void 0===o&&(o=[]),void 0===a&&(a=0),null!==e&&"object"==typeof e)if(r){if(e===r)throw new Error("Can't copy because source and destination are identical.");if(!i&&![void 0,null].includes(e)){var s=o.indexOf(e);if(-1!==s)return o[s];o.push(e)}var l=function(e){if(-1!==t&&t<a+1)return n===ValueCopySymbol?e:n;var r=Tools.copy(e,t,n,null,i,o,a+1);return i||[void 0,null].includes(e)||"object"!=typeof e||o.push(e),r};if(Array.isArray(e))for(var u,c=_createForOfIteratorHelperLoose(e);!(u=c()).done;){var d=u.value;r.push(l(d))}else if(e instanceof Map)for(var f,h=_createForOfIteratorHelperLoose(e);!(f=h()).done;){var p=f.value,m=p[0],g=p[1];r.set(m,l(g))}else if(e instanceof Set)for(var v,b=_createForOfIteratorHelperLoose(e);!(v=b()).done;){var y=v.value;r.add(l(y))}else for(var _=0,w=Object.entries(e);_<w.length;_++){var x=w[_],C=x[0],E=x[1];try{r[C]=l(E)}catch(e){throw new Error('Failed to copy property value object "'+C+'": '+Tools.represent(e))}}}else if(e){if(Array.isArray(e))return Tools.copy(e,t,n,[],i,o,a);if(e instanceof Map)return Tools.copy(e,t,n,new Map,i,o,a);if(e instanceof Set)return Tools.copy(e,t,n,new Set,i,o,a);if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){var S=/[^/]*$/.exec(e.toString());return(r=new RegExp(e.source,S?S[0]:void 0)).lastIndex=e.lastIndex,r}return"undefined"!=typeof Blob&&e instanceof Blob?e.slice(0,e.size,e.type):Tools.copy(e,t,n,{},i,o,a)}return r||e},Tools.determineType=function(e){if(void 0===e&&(e=void 0),[null,void 0].includes(e))return""+e;var t=typeof e;if(["function","object"].includes(t)&&e.toString){var n=Tools.classToTypeMapping.toString.call(e);if(Object.prototype.hasOwnProperty.call(Tools.classToTypeMapping,n))return Tools.classToTypeMapping[n]}return t},Tools.equals=function equals(firstValue,secondValue,givenOptions){void 0===givenOptions&&(givenOptions={});var options=_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({compareBlobs:!1,deep:-1,exceptionPrefixes:[],ignoreFunctions:!0,properties:null,returnReasonIfNotEqual:!1},givenOptions);if(options.ignoreFunctions&&Tools.isFunction(firstValue)&&Tools.isFunction(secondValue)||firstValue===secondValue||Tools.numberIsNotANumber(firstValue)&&Tools.numberIsNotANumber(secondValue)||firstValue instanceof RegExp&&secondValue instanceof RegExp&&firstValue.toString()===secondValue.toString()||firstValue instanceof Date&&secondValue instanceof Date&&(isNaN(firstValue.getTime())&&isNaN(secondValue.getTime())||!isNaN(firstValue.getTime())&&!isNaN(secondValue.getTime())&&firstValue.getTime()===secondValue.getTime())||options.compareBlobs&&"undefined"!==eval("typeof Buffer")&&eval("Buffer").isBuffer&&firstValue instanceof eval("Buffer")&&secondValue instanceof eval("Buffer")&&firstValue.toString("base64")===secondValue.toString("base64"))return!0;if(options.compareBlobs&&"undefined"!=typeof Blob&&firstValue instanceof Blob&&secondValue instanceof Blob)return new Promise((function(e){for(var t=[],n=0,r=[firstValue,secondValue];n<r.length;n++){var i=r[n],o=new FileReader;o.onload=function(n){null===n.target?t.push(null):t.push(n.target.result),2===t.length&&(t[0]===t[1]?e(!0):e(!!options.returnReasonIfNotEqual&&">>> Blob("+Tools.represent(t[0])+") !== Blob("+Tools.represent(t[1])+")"))},o.readAsDataURL(i)}}));if(Tools.isPlainObject(firstValue)&&Tools.isPlainObject(secondValue)&&!(firstValue instanceof RegExp||secondValue instanceof RegExp)||Array.isArray(firstValue)&&Array.isArray(secondValue)&&firstValue.length===secondValue.length||Tools.determineType(firstValue)===Tools.determineType(secondValue)&&["map","set"].includes(Tools.determineType(firstValue))&&firstValue.size===secondValue.size){for(var promises=[],_i22=0,_arr6=[[firstValue,secondValue],[secondValue,firstValue]];_i22<_arr6.length;_i22++){var _arr6$_i=_arr6[_i22],first=_arr6$_i[0],second=_arr6$_i[1],firstIsArray=Array.isArray(first);if(firstIsArray&&(!Array.isArray(second)||first.length!==second.length))return!!options.returnReasonIfNotEqual&&".length";var firstIsMap=Tools.isMap(first);if(firstIsMap&&(!Tools.isMap(second)||first.size!==second.size))return!!options.returnReasonIfNotEqual&&".size";var firstIsSet=Tools.isSet(first);if(firstIsSet&&(!Tools.isSet(second)||first.size!==second.size))return!!options.returnReasonIfNotEqual&&".size";if(firstIsArray)for(var index=0,_i23=0,_arr7=first;_i23<_arr7.length;_i23++){var value=_arr7[_i23];if(0!==options.deep){var _ret2=function(){var e=Tools.equals(value,second[index],_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({},options,{deep:options.deep-1}));if(!e)return{v:!1};var t=index,n=function(e){var n;return"string"==typeof e?"["+t+"]"+(null!==(n={"[":"",">":" "}[e[0]])&&void 0!==n?n:".")+e:e};return null!=e&&e.then&&promises.push(e.then(n)),"string"==typeof e?{v:n(e)}:void 0}();if("object"==typeof _ret2)return _ret2.v}index+=1}else if(firstIsMap)for(var _loop=function(){var e=_step23.value,t=e[0],n=e[1];if(0!==options.deep){var r=Tools.equals(n,second.get(t),_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({},options,{deep:options.deep-1}));if(!r)return{v:!1};var i=function(e){var n;return"string"==typeof e?"get("+Tools.represent(t)+")"+(null!==(n={"[":"",">":" "}[e[0]])&&void 0!==n?n:".")+e:e};if(null!=r&&r.then&&promises.push(r.then(i)),"string"==typeof r)return{v:i(r)}}},_iterator23=_createForOfIteratorHelperLoose(first),_step23;!(_step23=_iterator23()).done;){var _ret3=_loop();if("object"==typeof _ret3)return _ret3.v}else if(firstIsSet)for(var _loop2=function(){var e=_step24.value;if(0!==options.deep){for(var t,n=!1,r=[],i=_createForOfIteratorHelperLoose(second);!(t=i()).done;){var o=t.value,a=Tools.equals(e,o,_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({},options,{deep:options.deep-1}));if("boolean"==typeof a){if(a){n=!0;break}}else r.push(a)}var s=function(t){return!!t||!!options.returnReasonIfNotEqual&&">>> {-> "+Tools.represent(e)+" not found}"};return n?"continue":(r.length&&promises.push(new Promise((function(e){Promise.all(r).then((function(t){return e(s(t.some(Tools.identity)))}),Tools.noop)}))),{v:s(!1)})}},_iterator24=_createForOfIteratorHelperLoose(first),_step24;!(_step24=_iterator24()).done;){var _ret4=_loop2();if("continue"!==_ret4&&"object"==typeof _ret4)return _ret4.v}else for(var _loop3=function(){var e=_Object$entries13[_i24],t=e[0],n=e[1];if(options.properties&&!options.properties.includes(t))return"break";for(var r,i=!1,o=_createForOfIteratorHelperLoose(options.exceptionPrefixes);!(r=o()).done;){var a=r.value;if(t.toString().startsWith(a)){i=!0;break}}if(i)return"break";if(0!==options.deep){var s=Tools.equals(n,second[t],_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({},options,{deep:options.deep-1}));if(!s)return{v:!1};var l=function(e){var n;return"string"==typeof e?t+(null!==(n={"[":"",">":" "}[e[0]])&&void 0!==n?n:".")+e:e};if(null!=s&&s.then&&promises.push(s.then(l)),"string"==typeof s)return{v:l(s)}}},_i24=0,_Object$entries13=Object.entries(first);_i24<_Object$entries13.length;_i24++){var _ret5=_loop3();if("break"===_ret5)break;if("object"==typeof _ret5)return _ret5.v}}return!promises.length||new Promise((function(e){Promise.all(promises).then((function(t){for(var n,r=_createForOfIteratorHelperLoose(t);!(n=r()).done;){var i=n.value;if(!i||"string"==typeof i){e(i);break}}e(!0)}),Tools.noop)}))}return!!options.returnReasonIfNotEqual&&">>> "+Tools.represent(firstValue)+" !== "+Tools.represent(secondValue)},Tools.evaluateDynamicData=function(e,t,n,r,i){if(void 0===t&&(t={}),void 0===n&&(n="self"),void 0===r&&(r="__evaluate__"),void 0===i&&(i="__execute__"),"object"!=typeof e||null===e)return e;n in t||(t[n]=e);var o=function(e,n){void 0===n&&(n=r);var o=Tools.stringEvaluate(e,t,n===i);if(o.error)throw new Error(o.error);return o.result},a=function e(t){if(null!==t&&"object"==typeof t){if(Tools.isProxy(t)){for(var n=0,a=[r,i];n<a.length;n++){var s=a[n];if(Object.prototype.hasOwnProperty.call(t,s))return t[s]}t=t.__target__}for(var l=0,u=Object.entries(t);l<u.length;l++){var c=u[l],d=c[0],f=c[1];if([r,i].includes(d))return"undefined"==typeof Proxy?e(o(f)):f;t[d]=e(f)}}return t};if(t.resolve=a,null!==e&&"object"==typeof e){if(Object.prototype.hasOwnProperty.call(e,r))return o(e[r]);if(Object.prototype.hasOwnProperty.call(e,i))return o(e[i],i)}return function e(t){if(null!==t&&"object"==typeof t)for(var n=0,r=Object.entries(t);n<r.length;n++){var i=r[n],o=i[0],a=i[1];if("__target__"!==o&&null!==a&&["function","undefined"].includes(typeof a)){var s=a.__target__;void 0!==s&&(t[o]=s),e(a)}}return t}(a(function e(t){if("object"!=typeof t||null===t||"undefined"==typeof Proxy)return t;for(var n=0,s=Object.entries(t);n<s.length;n++){var l=s[n],u=l[0],c=l[1];if("__target__"!==u&&null!==c&&"object"==typeof c){var d=c;if(e(d),Object.prototype.hasOwnProperty.call(d,r)||Object.prototype.hasOwnProperty.call(d,i)){var f=d;t[u]=new Proxy(d,{get:function(e,t){if("__target__"===t)return e;if("hasOwnProperty"===t)return e[t];for(var n=0,s=[r,i];n<s.length;n++){var l=s[n];if(t===l&&"string"==typeof e[t])return a(o(e[t],l))}var u=a(e);if("toString"===t){var c=o(u);return c[t].bind(c)}if("string"!=typeof t){var d,f=o(u);return null!=(d=f[t])&&d.bind?f[t].bind(f):f[t]}for(var h=0,p=[r,i];h<p.length;h++){var m=p[h];if(Object.prototype.hasOwnProperty.call(e,m))return o(u,m)[t]}return u[t]},ownKeys:function(e){for(var t=0,n=[r,i];t<n.length;t++){var s=n[t];if(Object.prototype.hasOwnProperty.call(e,s))return Object.getOwnPropertyNames(a(o(e[s],s)))}return Object.getOwnPropertyNames(e)}}),t[u].__target__||(t[u].__target__=f)}}}return t}(e)))},Tools.removeKeysInEvaluation=function(e,t){void 0===t&&(t=["__evaluate__","__execute__"]);for(var n=0,r=Object.entries(e);n<r.length;n++){var i=r[n],o=i[0],a=i[1];!t.includes(o)&&t.some((function(t){return Object.prototype.hasOwnProperty.call(e,t)}))?delete e[o]:Tools.isPlainObject(a)&&Tools.removeKeysInEvaluation(a,t)}return e},Tools.extend=function(e,t){for(var n=!1,r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];var a,s=i;e===IgnoreNullAndUndefinedSymbol||"boolean"==typeof e?(n=e,a=t):(a=e,null!==t&&"object"==typeof t?s=[t].concat(s):void 0!==t&&(a=t));for(var l,u=function(e,t){return t===e?e:n&&t&&(Tools.isPlainObject(t)||Tools.isMap(t))?(r=Tools.isMap(t)?e&&Tools.isMap(e)?e:new Map:e&&Tools.isPlainObject(e)?e:{},Tools.extend(n,r,t)):t;var r},c=_createForOfIteratorHelperLoose(s);!(l=c()).done;){var d=l.value,f=typeof a,h=typeof d;if(Tools.isMap(a)&&(f+=" Map"),Tools.isMap(d)&&(h+=" Map"),f===h&&a!==d)if(Tools.isMap(a)&&Tools.isMap(d))for(var p,m=_createForOfIteratorHelperLoose(d);!(p=m()).done;){var g=p.value,v=g[0],b=g[1];a.set(v,u(a.get(v),b))}else if(null===a||Array.isArray(a)||"object"!=typeof a||null===d||Array.isArray(d)||"object"!=typeof d)a=d;else for(var y=0,_=Object.entries(d);y<_.length;y++){var w=_[y],x=w[0],C=w[1];n===IgnoreNullAndUndefinedSymbol&&[null,void 0].includes(C)||(a[x]=u(a[x],C))}else a=d}return a},Tools.getSubstructure=function(e,t,n,r){void 0===n&&(n=!0),void 0===r&&(r=".");for(var i,o=[],a=_createForOfIteratorHelperLoose([].concat(t));!(i=a()).done;){var s=i.value;if("string"==typeof s)for(var l,u=_createForOfIteratorHelperLoose(s.split(r));!(l=u()).done;){var c=l.value;if(c){var d=c.match(/(.*?)(\[[0-9]+\])/g);if(d)for(var f,h=_createForOfIteratorHelperLoose(d);!(f=h()).done;){var p=f.value,m=/(.*?)(\[[0-9]+\])/.exec(p),g=m[1],v=m[2];g&&o.push(g),o.push(v.substring(1,v.length-1))}else o.push(c)}}else o=o.concat(s)}for(var b,y=e,_=_createForOfIteratorHelperLoose(o);!(b=_()).done;){var w=b.value;if(null!==y&&"object"==typeof y){if("string"==typeof w&&Object.prototype.hasOwnProperty.call(y,w))y=y[w];else if(Tools.isFunction(w))y=w(y);else if(!n)return}else if(!n)return}return y},Tools.getProxyHandler=function(e,t){return void 0===t&&(t={}),t=_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({delete:"[]",get:"[]",has:"[]",set:"[]"},t),{deleteProperty:function(n,r){return"[]"!==t.delete||"string"!=typeof r?e[t.delete](r):(delete e[r],!0)},get:function(n,r){return"[]"===t.get&&"string"==typeof r?e[r]:e[t.get](r)},has:function(n,r){return"[]"===t.has?r in e:e[t.has](r)},set:function(n,r,i){return"[]"!==t.set||"string"!=typeof r?e[t.set](r,i):(e[r]=i,!0)}}},Tools.mask=function(e,t){if(!0===(t=_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({exclude:!1,include:!0},t)).exclude||!1===t.include||"object"!=typeof e)return{};var n={};if(Tools.isPlainObject(t.include))for(var r=0,i=Object.entries(t.include);r<i.length;r++){var o=i[r],a=o[0],s=o[1];Object.prototype.hasOwnProperty.call(e,a)&&(!0===s?n[a]=e[a]:Tools.isPlainObject(s)&&"object"==typeof e[a]&&(n[a]=Tools.mask(e[a],{include:s})))}else n=e;if(Tools.isPlainObject(t.exclude)){for(var l=!1,u=_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({},n),c=0,d=Object.entries(t.exclude);c<d.length;c++){var f=d[c],h=f[0],p=f[1];if(Object.prototype.hasOwnProperty.call(u,h))if(!0===p)l=!0,delete u[h];else if(Tools.isPlainObject(p)&&"object"==typeof u[h]){var m=u[h];u[h]=Tools.mask(u[h],{exclude:p}),u[h]!==m&&(l=!0)}}l&&(n=u)}return n},Tools.modifyObject=function(e,t,n,r,i,o,a,s,l){if(void 0===n&&(n="__remove__"),void 0===r&&(r="__prepend__"),void 0===i&&(i="__append__"),void 0===o&&(o="__"),void 0===a&&(a="__"),void 0===s&&(s=null),void 0===l&&(l=null),Tools.isMap(t)&&Tools.isMap(e))for(var u,c=_createForOfIteratorHelperLoose(t);!(u=c()).done;){var d=u.value,f=d[0],h=d[1];e.has(f)&&Tools.modifyObject(e.get(f),h,n,r,i,o,a,t,f)}else if(null!==t&&"object"==typeof t&&null!==e&&"object"==typeof e)for(var p=0,m=Object.entries(t);p<m.length;p++){var g=m[p],v=g[0],b=g[1];if([n,r,i].includes(v)){if(Array.isArray(e))if(v===n)for(var y,_=_createForOfIteratorHelperLoose([].concat(b));!(y=_()).done;){var w=y.value;"string"==typeof w&&w.startsWith(o)&&w.endsWith(a)?e.splice(parseInt(w.substring(o.length,w.length-a.length),10),1):e.includes(w)?e.splice(e.indexOf(w),1):"number"==typeof w&&w<e.length&&e.splice(w,1)}else e=v===r?[].concat(b).concat(e):e.concat(b);else if(v===n)for(var x,C=_createForOfIteratorHelperLoose([].concat(b));!(x=C()).done;){var E=x.value;"string"==typeof E&&Object.prototype.hasOwnProperty.call(e,E)&&delete e[E]}delete t[v],s&&"string"==typeof l&&delete s[l]}else null!==e&&Object.prototype.hasOwnProperty.call(e,v)&&(e[v]=Tools.modifyObject(e[v],b,n,r,i,o,a,t,v))}return e},Tools.normalizeDateTime=function(e,t){if(void 0===e&&(e=null),void 0===t&&(t=!0),null===e)return new Date;if("string"==typeof e)if(/^.*(?:(?:[0-9]{1,4}[^0-9]){2}|[0-9]{1,4}[^0-9.]).*$/.test(e)){if(null===(e=Tools.stringInterpretDateTime(e,t)))return e}else{var n=parseFloat(e);""+n===e&&(e=n)}if("number"==typeof e)return new Date(1e3*e);var r=new Date(e);return isNaN(r.getDate())?null:r},Tools.removeKeyPrefixes=function(e,t){void 0===t&&(t="#");var n=[].concat(t);if(Array.isArray(e))for(var r,i=0,o=_createForOfIteratorHelperLoose(e.slice());!(r=o()).done;){var a=r.value,s=!1;if("string"==typeof a){for(var l,u=_createForOfIteratorHelperLoose(n);!(l=u()).done;){var c=l.value;if(a.startsWith(c+":")){e.splice(i,1),s=!0;break}}if(s)continue}e[i]=Tools.removeKeyPrefixes(a,n),i+=1}else if(Tools.isSet(e))for(var d,f=_createForOfIteratorHelperLoose(new Set(e));!(d=f()).done;){var h=d.value,p=!1;if("string"==typeof h){for(var m,g=_createForOfIteratorHelperLoose(n);!(m=g()).done;){var v=m.value;if(h.startsWith(v+":")){e.delete(h),p=!0;break}}if(p)continue}Tools.removeKeyPrefixes(h,n)}else if(Tools.isMap(e))for(var b,y=_createForOfIteratorHelperLoose(new Map(e));!(b=y()).done;){var _=b.value,w=_[0],x=_[1],C=!1;if("string"==typeof w){for(var E,S=_createForOfIteratorHelperLoose(n);!(E=S()).done;){var T=E.value,A=Tools.stringEscapeRegularExpressions(T);if(new RegExp("^"+A+"[0-9]*$").test(w)){e.delete(w),C=!0;break}}if(C)continue}e.set(w,Tools.removeKeyPrefixes(x,n))}else if(null!==e&&"object"==typeof e)for(var k=0,O=Object.entries(Object.assign({},e));k<O.length;k++){for(var I,L=O[k],R=L[0],M=L[1],P=!1,$=_createForOfIteratorHelperLoose(n);!(I=$()).done;){var N=I.value,D=Tools.stringEscapeRegularExpressions(N);if(new RegExp("^"+D+"[0-9]*$").test(R)){delete e[R],P=!0;break}}P||(e[R]=Tools.removeKeyPrefixes(M,n))}return e},Tools.represent=function(e,t,n,r,i){if(void 0===t&&(t=" "),void 0===n&&(n=""),void 0===r&&(r="__maximum_number_of_levels_reached__"),void 0===i&&(i=8),0===i)return""+r;if(null===e)return"null";if(void 0===e)return"undefined";if("string"==typeof e)return'"'+e.replace(/\n/g,"\n"+n)+'"';if(Tools.isNumeric(e)||"boolean"==typeof e)return""+e;if(Array.isArray(e)){for(var o,a="[",s=!1,l=_createForOfIteratorHelperLoose(e);!(o=l()).done;){var u=o.value;s&&(a+=","),a+="\n"+n+t+Tools.represent(u,t,""+n+t,r,i-1),s=!0}return s&&(a+="\n"+n),a+"]"}if(Tools.isMap(e)){for(var c,d="",f=!1,h=_createForOfIteratorHelperLoose(e);!(c=h()).done;){var p=c.value,m=p[0],g=p[1];f&&(d+=",\n"+n+t),d+=Tools.represent(m,t,""+n+t,r,i-1)+" -> "+Tools.represent(g,t,""+n+t,r,i-1),f=!0}return f||(d="EmptyMap"),d}if(Tools.isSet(e)){for(var v,b="{",y=!1,_=_createForOfIteratorHelperLoose(e);!(v=_()).done;){var w=v.value;y&&(b+=","),b+="\n"+n+t+Tools.represent(w,t,""+n+t,r,i-1),y=!0}return y?b+="\n"+n+"}":b="EmptySet",b}for(var x,C="{",E=!1,S=_createForOfIteratorHelperLoose(Object.getOwnPropertyNames(e).sort());!(x=S()).done;){var T=x.value;E&&(C+=","),C+="\n"+n+t+T+": "+Tools.represent(e[T],t,""+n+t,r,i-1),E=!0}return E&&(C+="\n"+n),C+"}"},Tools.sort=function(e){var t=[];if(Array.isArray(e))for(var n=0;n<e.length;n++)t.push(n);else if("object"==typeof e)if(Tools.isMap(e))for(var r,i=_createForOfIteratorHelperLoose(e);!(r=i()).done;){var o=r.value;t.push(o[0])}else if(null!==e)for(var a=0,s=Object.keys(e);a<s.length;a++){var l=s[a];t.push(l)}return t.sort()},Tools.unwrapProxy=function(e,t){if(void 0===t&&(t=new Set),null!==e&&"object"==typeof e){if(t.has(e))return e;try{Tools.isFunction(e.__revoke__)&&(Tools.isProxy(e)&&(e=e.__target__),e.__revoke__())}catch(t){return e}finally{t.add(e)}if(Array.isArray(e))for(var n,r=0,i=_createForOfIteratorHelperLoose(e);!(n=i()).done;){var o=n.value;e[r]=Tools.unwrapProxy(o,t),r+=1}else if(Tools.isMap(e))for(var a,s=_createForOfIteratorHelperLoose(e);!(a=s()).done;){var l=a.value,u=l[0],c=l[1];e.set(u,Tools.unwrapProxy(c,t))}else if(Tools.isSet(e)){for(var d,f=[],h=_createForOfIteratorHelperLoose(e);!(d=h()).done;){var p=d.value;e.delete(p),f.push(Tools.unwrapProxy(p,t))}for(var m=0,g=f;m<g.length;m++){var v=g[m];e.add(v)}}else for(var b=0,y=Object.entries(e);b<y.length;b++){var _=y[b],w=_[0],x=_[1];e[w]=Tools.unwrapProxy(x,t)}}return e},Tools.arrayAggregatePropertyIfEqual=function(e,t,n){void 0===n&&(n="");var r=n;if(Array.isArray(e)&&e.length&&Object.prototype.hasOwnProperty.call(e[0],t)){r=e[0][t];for(var i,o=_createForOfIteratorHelperLoose(Tools.arrayMake(e));!(i=o()).done;)if(i.value[t]!==r)return n}return r},Tools.arrayDeleteEmptyItems=function(e,t){void 0===t&&(t=[]);for(var n,r=[],i=_createForOfIteratorHelperLoose(Tools.arrayMake(e));!(n=i()).done;){for(var o=n.value,a=!0,s=0,l=Object.entries(o);s<l.length;s++){var u=l[s],c=u[0],d=u[1];if(!["",null,void 0].includes(d)&&(!t.length||Tools.arrayMake(t).includes(c))){a=!1;break}}a||r.push(o)}return r},Tools.arrayExtract=function(e,t){for(var n,r=[],i=_createForOfIteratorHelperLoose(Tools.arrayMake(e));!(n=i()).done;){for(var o,a=n.value,s={},l=_createForOfIteratorHelperLoose(Tools.arrayMake(t));!(o=l()).done;){var u=o.value;Object.prototype.hasOwnProperty.call(a,u)&&(s[u]=a[u])}r.push(s)}return r},Tools.arrayExtractIfMatches=function(e,t){if(!t)return Tools.arrayMake(e);for(var n,r=[],i=_createForOfIteratorHelperLoose(Tools.arrayMake(e));!(n=i()).done;){var o=n.value;("string"==typeof t?new RegExp(t):t).test(o)&&r.push(o)}return r},Tools.arrayExtractIfPropertyExists=function(e,t){if(e&&t){for(var n,r=[],i=_createForOfIteratorHelperLoose(Tools.arrayMake(e));!(n=i()).done;){for(var o=n.value,a=!1,s=0,l=Object.entries(o);s<l.length;s++){var u=l[s],c=u[0],d=u[1];if(c===t&&![null,void 0].includes(d)){a=!0;break}}a&&r.push(o)}return r}return e},Tools.arrayExtractIfPropertyMatches=function(e,t){if(e&&t){for(var n,r=[],i=_createForOfIteratorHelperLoose(Tools.arrayMake(e));!(n=i()).done;){var o=n.value,a=!0;for(var s in t)if(!t[s]||!("string"==typeof t[s]?new RegExp(t[s]):t[s]).test(o[s])){a=!1;break}a&&r.push(o)}return r}return e},Tools.arrayIntersect=function(e,t,n,r){void 0===n&&(n=[]),void 0===r&&(r=!0);var i=[];t=Tools.arrayMake(t);for(var o,a=function(e,t,n,i,o,a){if(a?o&&(n=i):i=n,t[i]!==e[n]&&(r||![null,void 0].includes(t[i])||![null,void 0].includes(e[n])))return!1},s=_createForOfIteratorHelperLoose(Tools.arrayMake(e));!(o=s()).done;){var l=o.value;if(Tools.isPlainObject(l))for(var u=0,c=t;u<c.length;u++){var d=c[u],f=!0,h=void 0,p=Array.isArray(n);if(Tools.isPlainObject(n)||p&&n.length?h=!0:(h=!1,n=l),Array.isArray(n))for(var m,g=0,v=_createForOfIteratorHelperLoose(n);!(m=v()).done;){if(!1===a(l,d,g,m.value,p,h)){f=!1;break}g+=1}else for(var b=0,y=Object.entries(n);b<y.length;b++){var _=y[b];if(!1===a(l,d,_[0],_[1],p,h)){f=!1;break}}if(f){i.push(l);break}}else t.includes(l)&&i.push(l)}return i},Tools.arrayMake=function(e){var t=[];return[null,void 0].includes(e)||(Tools.isArrayLike(Object(e))?Tools.arrayMerge(t,"string"==typeof e?[e]:e):t.push(e)),t},Tools.arrayMakeRange=function(e,t,n){var r,i;if(void 0===t&&(t=1),void 0===n&&(n=!1),1===(e=[].concat(e)).length)r=0,i=parseInt(""+e[0],10);else{if(2!==e.length)return e;r=parseInt(""+e[0],10),i=parseInt(""+e[1],10)}if(i<r)return[];for(var o=[r];r<=i-t;)r+=t,(!n||r<=i-t)&&o.push(r);return o},Tools.arrayMerge=function(e,t){Array.isArray(t)||(t=Array.prototype.slice.call(t));for(var n,r=_createForOfIteratorHelperLoose(t);!(n=r()).done;){var i=n.value;e.push(i)}return e},Tools.arrayPaginate=function(e){void 0===e&&(e={});var t=e,n=t.boundaryCount,r=void 0===n?1:n,i=t.disabled,o=void 0!==i&&i,a=t.hideNextButton,s=void 0!==a&&a,l=t.hidePrevButton,u=void 0!==l&&l,c=t.page,d=void 0===c?1:c,f=t.pageSize,h=void 0===f?5:f,p=t.showFirstButton,m=void 0!==p&&p,g=t.showLastButton,v=void 0!==g&&g,b=t.siblingCount,y=void 0===b?4:b,_=t.total,w=void 0===_?100:_,x="number"!=typeof h||isNaN(h)?w:Math.ceil(w/h),C=Tools.arrayMakeRange([1,Math.min(r,x)]),E=Tools.arrayMakeRange([Math.max(x-r+1,r+1),x]),S=Math.max(Math.min(d-y,x-r-2*y-1),r+2),T=Math.min(Math.max(d+y,r+2*y+2),E.length>0?E[0]-2:x-1);return[].concat(m?["first"]:[],u?[]:["previous"],C,S>r+2?["start-ellipsis"]:r+1<x-r?[r+1]:[],Tools.arrayMakeRange([S,T]),T<x-r-1?["end-ellipsis"]:x-r>r?[x-r]:[],E,s?[]:["next"],v?["last"]:[]).map((function(e){var t;return"number"==typeof e?{disabled:o,page:e,selected:e===d,type:"page"}:_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({disabled:o||-1===e.indexOf("ellipsis")&&("next"===e||"last"===e?d>=x:d<=1),selected:!1,type:e},e.endsWith("-ellipsis")?{}:{page:(null!==(t={first:1,last:x}[e])&&void 0!==t?t:"next"===e)?Math.min(d+1,x):Math.max(d-1,1)})}))},Tools.arrayPermutate=function(e){var t=[];return function e(n,r){if(void 0===r&&(r=[]),0===n.length)t.push(r);else for(var i=0;i<n.length;i++){var o=n.slice();e(o,r.concat(o.splice(i,1)))}}(e),t},Tools.arrayPermutateLength=function(e,t){void 0===t&&(t=1);var n=[];if(0===e.length)return n;for(var r=function e(t,r,i){if(0!==t)for(var o=0;o<r.length;o++)e(t-1,r.slice(o+1),i.concat([r[o]]));else i.length>0&&(n[n.length]=i)},i=t;i<e.length;i++)r(i,e,[]);return n.push(e),n},Tools.arraySumUpProperty=function(e,t){var n=0;if(Array.isArray(e)&&e.length)for(var r,i=_createForOfIteratorHelperLoose(e);!(r=i()).done;){var o=r.value;Object.prototype.hasOwnProperty.call(o,t)&&(n+=parseFloat(o[t]||0))}return n},Tools.arrayAppendAdd=function(e,t,n,r){return void 0===r&&(r=!0),Object.prototype.hasOwnProperty.call(e,n)?r&&e[n].includes(t)||e[n].push(t):e[n]=[t],e},Tools.arrayRemove=function(e,t,n){void 0===n&&(n=!1);var r=e.indexOf(t);if(-1===r){if(n)throw new Error("Given target doesn't exists in given list.")}else e.splice(r,1);return e},Tools.arraySortTopological=function(e){for(var t=[],n=0,r=Object.entries(e);n<r.length;n++){var i=r[n],o=i[0],a=i[1];if(e[o]=[].concat(a),a.length>0)for(var s,l=_createForOfIteratorHelperLoose(Tools.arrayMake(a));!(s=l()).done;){var u=s.value;t.push([o,u])}else t.push([o])}for(var c=[],d=0,f=t;d<f.length;d++)for(var h,p=_createForOfIteratorHelperLoose(f[d]);!(h=p()).done;){var m=h.value;c.includes(m)||c.push(m)}for(var g=[],v=function e(n,r){if(0!==r.length&&r.includes(n))throw new Error('Cyclic dependency found. "'+n+'" is dependent of itself.\nDependency chain: "'+r.join('" -> "')+'" => "'+n+'".');var i=c.indexOf(n);if(-1!==i){var o;c[i]=null;for(var a,s=_createForOfIteratorHelperLoose(t);!(a=s()).done;){var l=a.value;l[0]===n&&(o=o||r.concat([n]),e(l[1],o))}g.push(n)}},b=0;b<c.length;b++){var y=c[b];if(y){c[b]=null;for(var _,w=_createForOfIteratorHelperLoose(t);!(_=w()).done;){var x=_.value;x[0]===y&&v(x[1],[y])}g.push(y)}}return g},Tools.arrayUnique=function(e){for(var t,n=[],r=_createForOfIteratorHelperLoose(Tools.arrayMake(e));!(t=r()).done;){var i=t.value;n.includes(i)||n.push(i)}return n},Tools.stringEscapeRegularExpressions=function(e,t){if(void 0===t&&(t=[]),1===e.length&&!Tools.specialRegexSequences.includes(e))return e;t.includes("\\")||e.replace(/\\/g,"\\\\");for(var n,r=_createForOfIteratorHelperLoose(Tools.specialRegexSequences);!(n=r()).done;){var i=n.value;t.includes(i)||(e=e.replace(new RegExp("\\"+i,"g"),"\\"+i))}return e},Tools.stringConvertToValidVariableName=function(e,t){return void 0===t&&(t="0-9a-zA-Z_$"),["class","default"].includes(e)?"_"+e:e.toString().replace(/^[^a-zA-Z_$]+/,"").replace(new RegExp("[^"+t+"]+([a-zA-Z0-9])","g"),(function(e,t){return t.toUpperCase()}))},Tools.stringEncodeURIComponent=function(e,t){return void 0===t&&(t=!1),encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,t?"%20":"+")},Tools.stringAddSeparatorToPath=function(e,t){return void 0===t&&(t="/"),(e=e.trim()).substr(-1)!==t&&e.length?e+t:e},Tools.stringHasPathPrefix=function(e,t,n){var r;return void 0===e&&(e="/admin"),void 0===t&&(t=(null==(r=$.location)?void 0:r.pathname)||""),void 0===n&&(n="/"),"string"==typeof e&&(e.endsWith(n)||(e+=n),t===e.substring(0,e.length-n.length)||t.startsWith(e))},Tools.stringGetDomainName=function(e,t){var n,r;void 0===e&&(e=(null==(n=$.location)?void 0:n.href)||""),void 0===t&&(t=(null==(r=$.location)?void 0:r.hostname)||"");var i=/^([a-z]*:?\/\/)?([^/]+?)(?::[0-9]+)?(?:\/.*|$)/i.exec(e);return i&&i.length>2&&i[1]&&i[2]?i[2]:t},Tools.stringGetPortNumber=function(e,t){var n,r,i;void 0===e&&(e=(null==(r=$.location)?void 0:r.href)||""),void 0===t&&(t=null!=(i=$.location)&&i.port?parseInt($.location.port):null);var o=/^(?:[a-z]*:?\/\/[^/]+?)?(?:[^/]+?):([0-9]+)/i.exec(e);return o&&o.length>1?parseInt(o[1],10):null!==t?t:null!=(n=$.location)&&n.port&&parseInt($.location.port,10)?parseInt($.location.port,10):"https"===Tools.stringGetProtocolName(e)?443:80},Tools.stringGetProtocolName=function(e,t){var n,r;void 0===e&&(e=(null==(n=$.location)?void 0:n.href)||""),void 0===t&&(t=(null==(r=$.location)?void 0:r.protocol)&&$.location.protocol.substring(0,$.location.protocol.length-1)||"");var i=/^([a-z]+):\/\//i.exec(e);return i&&i.length>1&&i[1]?i[1]:t},Tools.stringGetURLParameter=function(e,t,n,r,i,o,a){var s,l,u;void 0===e&&(e=null),void 0===t&&(t=!1),void 0===n&&(n=null),void 0===r&&(r="$"),void 0===i&&(i="!"),void 0===o&&(o=null),void 0===a&&(a=null!==(l=null==(u=$.location)?void 0:u.hash)&&void 0!==l?l:"");var c=null!==(s=a)&&void 0!==s?s:"#",d="";if(o)d=o;else if(i&&c.startsWith(i)){var f,h=c.indexOf("#");-1===h?(f=c.substring(i.length),c=""):(f=c.substring(i.length,h),c=c.substring(h));var p=f.indexOf("?");-1!==p&&(d=f.substring(p))}else $.location&&(d=$.location.search||"");var m=n||d,g="&"===m;if(g||"#"===m){var v="";try{v=decodeURIComponent(c)}catch(e){}var b=v.indexOf(r);-1===b?m="":(m=v.substring(b)).startsWith(r)&&(m=m.substring(r.length))}else m.startsWith("?")&&(m=m.substring("?".length));var y=m?m.split("&"):[];d=d.substring("?".length),g&&d&&(y=y.concat(d.split("&")));for(var _,w=[],x=_createForOfIteratorHelperLoose(y);!(_=x()).done;){var C=_.value,E=C.split("="),S=void 0;try{S=decodeURIComponent(E[0])}catch(e){S=""}try{C=decodeURIComponent(E[1])}catch(e){C=""}w.push(S),t?Object.prototype.hasOwnProperty.call(w,S)&&Array.isArray(w[S])?w[S].push(C):w[S]=[C]:w[S]=C}return e?Object.prototype.hasOwnProperty.call(w,e)?w[e]:null:w},Tools.stringServiceURLEquals=function(e,t){var n;void 0===t&&(t=(null==(n=$.location)?void 0:n.href)||"");var r=Tools.stringGetDomainName(e,""),i=Tools.stringGetProtocolName(e,""),o=Tools.stringGetPortNumber(e);return!(""!==r&&r!==Tools.stringGetDomainName(t)||""!==i&&i!==Tools.stringGetProtocolName(t)||null!==o&&o!==Tools.stringGetPortNumber(t))},Tools.stringNormalizeURL=function(e){return"string"==typeof e?(e=e.replace(/^:?\/+/,"").replace(/\/+$/,"").trim()).startsWith("http")?e:"http://"+e:""},Tools.stringRepresentURL=function(e){return"string"==typeof e?e.replace(/^(https?)?:?\/+/,"").replace(/\/+$/,"").trim():""},Tools.stringCamelCaseToDelimited=function(e,t,n){void 0===t&&(t="-"),void 0===n&&(n=null),n||(n=Tools.abbreviations);var r=Tools.stringGetRegularExpressionValidated(t);if(n.length){for(var i,o="",a=_createForOfIteratorHelperLoose(n);!(i=a()).done;)o&&(o+="|"),o+=i.value.toUpperCase();e=e.replace(new RegExp("("+o+")("+o+")","g"),"$1"+t+"$2")}return(e=e.replace(new RegExp("([^"+r+"])([A-Z][a-z]+)","g"),"$1"+t+"$2")).replace(/([a-z0-9])([A-Z])/g,"$1"+t+"$2").toLowerCase()},Tools.stringCapitalize=function(e){return e.charAt(0).toUpperCase()+e.substring(1)},Tools.stringCompressStyleValue=function(e){return e.replace(/ *([:;]) */g,"$1").replace(/ +/g," ").replace(/^;+/,"").replace(/;+$/,"").trim()},Tools.stringDecodeHTMLEntities=function(e){if($.document){var t=$.document.createElement("textarea");return t.innerHTML=e,t.value}return null},Tools.stringDelimitedToCamelCase=function(e,t,n,r,i){void 0===t&&(t="-"),void 0===n&&(n=null),void 0===r&&(r=!1),void 0===i&&(i=!1);var o,a=Tools.stringGetRegularExpressionValidated(t);if(n||(n=Tools.abbreviations),r)o=n.join("|");else{o="";for(var s,l=_createForOfIteratorHelperLoose(n);!(s=l()).done;){var u=s.value;o&&(o+="|"),o+=Tools.stringCapitalize(u)+"|"+u}}var c=e.startsWith(t);return c&&(e=e.substring(t.length)),e=e.replace(new RegExp("("+a+")("+o+")("+a+"|$)","g"),(function(e,t,n,r){return t+n.toUpperCase()+r})),i&&(a="(?:"+a+")+"),e=e.replace(new RegExp(a+"([a-zA-Z0-9])","g"),(function(e,t){return t.toUpperCase()})),c&&(e=t+e),e},Tools.stringCompile=function(e,t,n){var r,i;void 0===t&&(t=[]),void 0===n&&(n=!1);for(var o,a={error:null,originalScopeNames:Array.isArray(t)?t:"string"==typeof t?[t]:Object.keys(t),scopeNameMapping:{},scopeNames:[],templateFunction:function(){return null}},s=_createForOfIteratorHelperLoose(a.originalScopeNames);!(o=s()).done;){var l=o.value,u=Tools.stringConvertToValidVariableName(l);a.scopeNameMapping[l]=u,a.scopeNames.push(u)}if(0!==Tools.maximalSupportedInternetExplorerVersion)if(null!=(r=$.global.Babel)&&r.transform)e=null==(i=$.global.Babel)?void 0:i.transform("("+e+")",{plugins:["transform-template-literals"]}).code;else if(e.startsWith("`")&&e.endsWith("`")){var c="####",d="`"===(e=e.replace(/\\\$/g,c).replace(/^`\$\{([\s\S]+)\}`$/,"String($1)").replace(/^`([^']+)`$/,"'$1'").replace(/^`([^"]+)`$/,'"$1"')).charAt(0)?"'":e.charAt(0);e=e.replace(/\$\{((([^{]*{[^}]*}[^}]*})|[^{}]+)+)\}/g,d+"+($1)+"+d).replace(/^`([\s\S]+)`$/,d+"$1"+d).replace(/\n+/g,"").replace(new RegExp(c,"g"),"\\$")}try{a.templateFunction=_babel_runtime_helpers_construct__WEBPACK_IMPORTED_MODULE_1___default()(Function,a.scopeNames.concat([(n?"":"return ")+e]))}catch(t){a.error='Given expression "'+e+'" could not be compiled with given scope names "'+a.scopeNames.join('", "')+'": '+Tools.represent(t)}return a},Tools.stringEvaluate=function(e,t,n,r){void 0===t&&(t={}),void 0===n&&(n=!1);var i=Tools.stringCompile(e,t,n),o=i.error,a=i.originalScopeNames,s=i.scopeNames,l=i.templateFunction,u={compileError:null,error:null,result:null,runtimeError:null};if(o)return u.compileError=u.error=o,u;try{u.result=(r?l.bind(r):l).apply(void 0,a.map((function(e){return t[e]})))}catch(o){u.error=u.runtimeError='Given expression "'+e+'" could not be evaluated with given scope names "'+s.join('", "')+'": '+Tools.represent(o)}return u},Tools.stringFindNormalizedMatchRange=function(e,t,n,r){void 0===n&&(n=function(e){return(""+e).toLowerCase()}),void 0===r&&(r=["<",">"]);var i=n(t),o=n(e),a="string"==typeof e?e:o;if(o&&i)for(var s=!1,l=0;l<a.length;l+=1)if(s)a.charAt(l)===r[1]&&(s=!1);else if(Array.isArray(r)&&a.charAt(l)===r[0])s=!0;else if(n(a.substring(l)).startsWith(i)){if(1===i.length)return[l,l+1];for(var u=a.length;u>l;u-=1)if(!n(a.substring(l,u)).startsWith(i))return[l,u+1]}return null},Tools.stringFixKnownEncodingErrors=function(e){for(var t=0,n=Object.entries({"Ã\\x84":"Ä","Ã\\x96":"Ö","Ã\\x9c":"Ü","ä":"ä","ö":"ö","ü":"ü","Ã\\x9f":"ß","\\x96":"-"});t<n.length;t++){var r=n[t],i=r[0],o=r[1];e=e.replace(new RegExp(i,"g"),o)}return e},Tools.stringFormat=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];n.unshift(e);for(var i=0,o=0,a=n;o<a.length;o++){var s=a[o];e=e.replace(new RegExp("\\{"+i+"\\}","gm"),""+s),i+=1}return e},Tools.stringGetEditDistance=function(e,t){for(var n=Array(t.length+1).fill(null).map((function(){return Array(e.length+1).fill(null)})),r=0;r<=e.length;r++)n[0][r]=r;for(var i=0;i<=t.length;i++)n[i][0]=i;for(var o=1;o<=t.length;o++)for(var a=1;a<=e.length;a++){var s=e[a-1]===t[o-1]?0:1;n[o][a]=Math.min(n[o][a-1]+1,n[o-1][a]+1,n[o-1][a-1]+s)}return n[t.length][e.length]},Tools.stringGetRegularExpressionValidated=function(e){return e.replace(/([\\|.*$^+[\]()?\-{}])/g,"\\$1")},Tools.stringInterpretDateTime=function(e,t){if(void 0===t&&(t=!0),!Tools._dateTimePatternCache.length)for(var n,r="(?:0?[0-9])|(?:[1-5][0-9])|(?:60)",i="(?<second>"+r+")",o="(?<minute>"+r+")",a="(?<hour>(?:0?[0-9])|(?:1[0-9])|(?:2[0-4]))",s="(?<day>(?:0?[1-9])|(?:[1-2][0-9])|(?:3[01]))",l="(?<month>(?:0?[1-9])|(?:1[0-2]))",u="(?<year>(?:0?[1-9])|(?:[1-9][0-9]+))",c={},d=_createForOfIteratorHelperLoose(["t"," "]);!(n=d()).done;)for(var f,h=n.value,p=_createForOfIteratorHelperLoose([":","/","-"," "]);!(f=p()).done;)for(var m=f.value,g=0,v=[a+(m+"+")+o,a+(m+"+")+o+m+"+"+i,a+(m+"+")+o+m+"+"+i+m+"+(?<millisecond>(?:0{0,3}[0-9])|(?:0{0,2}[1-9]{2})|(?:0?[1-9]{3})|(?:1[1-9]{3}))",a];g<v.length;g++)for(var b=v[g],y=0,_=[{delimiter:["/","-"," "],pattern:[l+"${delimiter}"+s+"${delimiter}"+u,l+"${delimiter}"+s+" +"+u,u+"${delimiter}"+l+"${delimiter}"+s,u+" +"+l+"${delimiter}"+s,l+"${delimiter}"+s+"${delimiter}"+u+h+"+"+b,l+"${delimiter}"+s+" +"+u+h+"+"+b,b+(h+"+")+l+"${delimiter}"+s+"${delimiter}"+u,b+(h+"+")+l+"${delimiter}"+s+" +"+u,u+"${delimiter}"+l+"${delimiter}"+s+h+"+"+b,u+" +"+l+"${delimiter}"+s+h+"+"+b,b+(h+"+")+u+"${delimiter}"+l+"${delimiter}"+s,b+(h+"+")+u+" +"+l+"${delimiter}"+s]},{delimiter:"\\.",pattern:[s+"${delimiter}"+l+"${delimiter}"+u,s+"${delimiter}"+l+" +"+u,u+"${delimiter}"+s+"${delimiter}"+l,u+" +"+s+"${delimiter}"+l,s+"${delimiter}"+l+"${delimiter}"+u+h+"+"+b,s+"${delimiter}"+l+" +"+u+h+"+"+b,b+(h+"+")+s+"${delimiter}"+l+"${delimiter}"+u,b+(h+"+")+s+"${delimiter}"+l+" +"+u,u+"${delimiter}"+s+"${delimiter}"+l+h+"+"+b,u+" +"+s+"${delimiter}"+l+h+"+"+b,b+(h+"+")+u+"${delimiter}"+s+"${delimiter}"+l,b+(h+"+")+u+" +"+s+"${delimiter}"+l]},{pattern:b}];y<_.length;y++)for(var w,x=_[y],C=_createForOfIteratorHelperLoose([].concat(Object.prototype.hasOwnProperty.call(x,"delimiter")?x.delimiter:"-"));!(w=C()).done;)for(var E,S=w.value,T=_createForOfIteratorHelperLoose([].concat(x.pattern));!(E=T()).done;){var A=E.value;(A=Tools.stringEvaluate("`^"+A+"$`",{delimiter:S+"+"}).result)&&!Object.prototype.hasOwnProperty.call(c,A)&&(c[A]=!0,Tools._dateTimePatternCache.push(new RegExp(A)))}e=(e=e.toLowerCase()).replace(/([^0-9a-z])[^0-9a-z]+/g,"$1");for(var k=1,O=0,I=[["jan","january?","janvier"],["feb","february?","février"],["m(?:a|ae|ä)r","m(?:a|ae|ä)r(?:ch|s|z)"],["ap[rv]","a[pv]ril"],["ma[iy]"],["ju[ein]","jui?n[ei]?"],["jul","jul[iy]","juillet"],["aug","august","août"],["sep","septemb(?:er|re)"],["o[ck]t","o[ck]tob(?:er|re)"],["nov","novemb(?:er|re)"],["de[cz]","d[eé][cz]emb(?:er|re)"]];O<I.length;O++){for(var L,R=!1,M=_createForOfIteratorHelperLoose(I[O]);!(L=M()).done;){var P=L.value,$=new RegExp("(^|[^a-z])"+P+"([^a-z]|$)");if($.test(e)){e=e.replace($,"$1"+k+"$2"),R=!0;break}}if(R)break;k+=1}e=Tools.stringSliceWeekday(e);var N=/(.+)\+(.+)$/,D=N.exec(e);D&&(e=e.replace(N,"$1"));for(var j,F=_createForOfIteratorHelperLoose(["","Uhr","o'clock"]);!(j=F()).done;){var B=j.value;e=e.replace(B,"")}e=e.trim();for(var W,H=function(){var n=W.value,r=null;try{r=e.match(n)}catch(e){}if(r){var i=function(e,t){var n;return void 0===t&&(t=0),null!=(n=r)&&n.groups&&e in r.groups?parseInt(r.groups[e],10):t},o=[i("year",1970),i("month",1)-1,i("day",1),i("hour"),i("minute"),i("second"),i("millisecond")],a=null;if(D){var s=Tools.stringInterpretDateTime(D[2],!0);s&&(a=new Date(Date.UTC.apply(Date,o)-s.getTime()))}return a||(a=t?new Date(Date.UTC.apply(Date,o)):_babel_runtime_helpers_construct__WEBPACK_IMPORTED_MODULE_1___default()(Date,o)),isNaN(a.getDate())?{v:null}:{v:a}}},V=_createForOfIteratorHelperLoose(Tools._dateTimePatternCache);!(W=V()).done;){var U=H();if("object"==typeof U)return U.v}return null},Tools.stringLowerCase=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},Tools.stringMark=function(e,t,n){if(void 0===n&&(n={}),"string"==typeof e&&null!=t&&t.length){n=_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({marker:'<span class="tools-mark">{1}</span>',normalizer:function(e){return(""+e).toLowerCase()},skipTagDelimitedParts:["<",">"]},n),e=e.trim();for(var r,i=[],o=[].concat(t),a=0,s=_createForOfIteratorHelperLoose(o);!(r=s()).done;){var l=r.value;o[a]=n.normalizer(l).trim(),a+=1}for(var u=e,c=0;;){for(var d,f=null,h=null,p=_createForOfIteratorHelperLoose(o);!(d=p()).done;){var m=d.value;(h=Tools.stringFindNormalizedMatchRange(u,m,n.normalizer,n.skipTagDelimitedParts))&&(!f||h[0]<f[0])&&(f=h)}if(!f){u.length&&i.push(u);break}f[0]>0&&i.push(e.substring(c,c+f[0])),i.push("string"==typeof n.marker?Tools.stringFormat(n.marker,e.substring(c+f[0],c+f[1])):n.marker(e.substring(c+f[0],c+f[1]),i)),c+=f[1],u=e.substring(c)}return"string"==typeof n.marker?i.join(""):i}return e},Tools.stringMD5=function(e,t){void 0===t&&(t=!1);var n="0123456789abcdef".split(""),r=function(e,t){return e+t&4294967295},i=function(e,t,n,i,o,a){return t=r(r(t,e),r(i,a)),r(t<<o|t>>>32-o,n)},o=function(e,t,n,r,o,a,s){return i(t&n|~t&r,e,t,o,a,s)},a=function(e,t,n,r,o,a,s){return i(t&r|n&~r,e,t,o,a,s)},s=function(e,t,n,r,o,a,s){return i(t^n^r,e,t,o,a,s)},l=function(e,t,n,r,o,a,s){return i(n^(t|~r),e,t,o,a,s)},u=function(e,t){var n=e[0],i=e[1],u=e[2],c=e[3];return n=o(n,i,u,c,t[0],7,-680876936),c=o(c,n,i,u,t[1],12,-389564586),u=o(u,c,n,i,t[2],17,606105819),i=o(i,u,c,n,t[3],22,-1044525330),n=o(n,i,u,c,t[4],7,-176418897),c=o(c,n,i,u,t[5],12,1200080426),u=o(u,c,n,i,t[6],17,-1473231341),i=o(i,u,c,n,t[7],22,-45705983),n=o(n,i,u,c,t[8],7,1770035416),c=o(c,n,i,u,t[9],12,-1958414417),u=o(u,c,n,i,t[10],17,-42063),i=o(i,u,c,n,t[11],22,-1990404162),n=o(n,i,u,c,t[12],7,1804603682),c=o(c,n,i,u,t[13],12,-40341101),u=o(u,c,n,i,t[14],17,-1502002290),i=o(i,u,c,n,t[15],22,1236535329),n=a(n,i,u,c,t[1],5,-165796510),c=a(c,n,i,u,t[6],9,-1069501632),u=a(u,c,n,i,t[11],14,643717713),i=a(i,u,c,n,t[0],20,-373897302),n=a(n,i,u,c,t[5],5,-701558691),c=a(c,n,i,u,t[10],9,38016083),u=a(u,c,n,i,t[15],14,-660478335),i=a(i,u,c,n,t[4],20,-405537848),n=a(n,i,u,c,t[9],5,568446438),c=a(c,n,i,u,t[14],9,-1019803690),u=a(u,c,n,i,t[3],14,-187363961),i=a(i,u,c,n,t[8],20,1163531501),n=a(n,i,u,c,t[13],5,-1444681467),c=a(c,n,i,u,t[2],9,-51403784),u=a(u,c,n,i,t[7],14,1735328473),i=a(i,u,c,n,t[12],20,-1926607734),n=s(n,i,u,c,t[5],4,-378558),c=s(c,n,i,u,t[8],11,-2022574463),u=s(u,c,n,i,t[11],16,1839030562),i=s(i,u,c,n,t[14],23,-35309556),n=s(n,i,u,c,t[1],4,-1530992060),c=s(c,n,i,u,t[4],11,1272893353),u=s(u,c,n,i,t[7],16,-155497632),i=s(i,u,c,n,t[10],23,-1094730640),n=s(n,i,u,c,t[13],4,681279174),c=s(c,n,i,u,t[0],11,-358537222),u=s(u,c,n,i,t[3],16,-722521979),i=s(i,u,c,n,t[6],23,76029189),n=s(n,i,u,c,t[9],4,-640364487),c=s(c,n,i,u,t[12],11,-421815835),u=s(u,c,n,i,t[15],16,530742520),i=s(i,u,c,n,t[2],23,-995338651),n=l(n,i,u,c,t[0],6,-198630844),c=l(c,n,i,u,t[7],10,1126891415),u=l(u,c,n,i,t[14],15,-1416354905),i=l(i,u,c,n,t[5],21,-57434055),n=l(n,i,u,c,t[12],6,1700485571),c=l(c,n,i,u,t[3],10,-1894986606),u=l(u,c,n,i,t[10],15,-1051523),i=l(i,u,c,n,t[1],21,-2054922799),n=l(n,i,u,c,t[8],6,1873313359),c=l(c,n,i,u,t[15],10,-30611744),u=l(u,c,n,i,t[6],15,-1560198380),i=l(i,u,c,n,t[13],21,1309151649),n=l(n,i,u,c,t[4],6,-145523070),c=l(c,n,i,u,t[11],10,-1120210379),u=l(u,c,n,i,t[2],15,718787259),i=l(i,u,c,n,t[9],21,-343485551),e[0]=r(n,e[0]),e[1]=r(i,e[1]),e[2]=r(u,e[2]),e[3]=r(c,e[3]),e},c=function(e){for(var t="",r=0;r<4;r++)t+=n[e>>8*r+4&15]+n[e>>8*r&15];return t},d=function(e){for(var t=[],n=0;n<e.length;n++)t[n]=c(e[n]);return t.join("")},f=function(e){for(var t=[],n=0;n<64;n+=4)t[n>>2]=e.charCodeAt(n)+(e.charCodeAt(n+1)<<8)+(e.charCodeAt(n+2)<<16)+(e.charCodeAt(n+3)<<24);return t},h=function(e){var t,n=e.length,r=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)u(r,f(e.substring(t-64,t)));e=e.substring(t-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<e.length;t++)i[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(i[t>>2]|=128<<(t%4<<3),t>55){u(r,i);for(var o=0;o<16;o++)i[o]=0}return i[14]=8*n,u(r,i),r};return"5d41402abc4b2a76b9719d911017c592"!==d(h("hello"))&&(r=function(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}),d(h(t?e:unescape(encodeURIComponent(e))))},Tools.stringNormalizePhoneNumber=function(e,t){if(void 0===t&&(t=!0),"string"==typeof e||"number"==typeof e){var n=(""+e).trim();if(n=n.replace(/^[^0-9]*\+/,"00"),t)return n.replace(/[^0-9]+/g,"");n=(n=n.replace(new RegExp("^(.+?)(?:[ /\\-]+)?\\(0\\)(?:[ /\\-]+)?(.+)$"),"$1-$2")).replace(new RegExp("^(.+?)(?:[ /\\-]+)?\\((.+)\\)(?:[ /\\-]+)?(.+)$"),"$1-$2-$3");var r=new RegExp("^(00[0-9]+)(?:[ /\\-]+)([0-9]+)(?:[ /\\-]+)(.+)$");if(r.test(n))n=n.replace(r,(function(e,t,n,r){return t+"-"+n+"-"+Tools.stringSliceAllExceptNumberAndLastSeperator(r)}));else{var i=function(e,t,n){return t.replace(/ +/,"")+"-"+Tools.stringSliceAllExceptNumberAndLastSeperator(n)};n=(r=/^([0-9 ]+)[/-](.+)$/).test(n)?n.replace(r,i):n.replace(new RegExp("^([0-9]+)(?:[ /\\-]+)(.+)$"),i)}return n.replace(/[^0-9-]+/g,"")}return""},Tools.stringNormalizeZipCode=function(e){return"string"==typeof e||"number"==typeof e?(""+e).trim().replace(/[^0-9]+/g,""):""},Tools.stringParseEncodedObject=function stringParseEncodedObject(serializedObject,scope,name){var _Tools$stringEvaluate;void 0===scope&&(scope={}),void 0===name&&(name="scope"),serializedObject.endsWith(".json")&&Tools.isFileSync(serializedObject)&&(serializedObject=readFileSync(serializedObject,{encoding:"utf-8"})),serializedObject=serializedObject.trim(),serializedObject.startsWith("{")||(serializedObject=eval("Buffer").from(serializedObject,"base64").toString("utf8"));var result=Tools.stringEvaluate(serializedObject,(_Tools$stringEvaluate={},_Tools$stringEvaluate[name]=scope,_Tools$stringEvaluate));return"object"==typeof result.result?result.result:null},Tools.stringRepresentPhoneNumber=function(e){if(["number","string"].includes(Tools.determineType(e))&&e){var t=(""+e).replace(/^(00|\+)([0-9]+)-([0-9-]+)$/,"+$2 (0) $3");return(t=(t=t.replace(/^0([1-9][0-9-]+)$/,"+49 (0) $1")).replace(/^([^-]+)-([0-9-]+)$/,"$1 / $2")).replace(/^(.*?)([0-9]+)(-?[0-9]*)$/,(function(e,t,n,r){return t+(n.length%2==0?n.replace(/([0-9]{2})/g,"$1 "):n.replace(/^([0-9]{3})([0-9]+)$/,(function(e,t,n){return t+" "+n.replace(/([0-9]{2})/g,"$1 ").trim()}))+r).trim()})).trim()}return""},Tools.stringSliceAllExceptNumberAndLastSeperator=function(e){var t=/^(.*[0-9].*)-([0-9]+)$/;return t.test(e)?e.replace(t,(function(e,t,n){return t.replace(/[^0-9]+/g,"")+"-"+n})):e.replace(/[^0-9]+/g,"")},Tools.stringSliceWeekday=function(e){var t=/[a-z]{2}\.+ *([^ ].*)$/i;return t.exec(e)?e.replace(t,"$1"):e},Tools.numberGetUTCTimestamp=function(e,t){void 0===t&&(t=!1);var n=[null,void 0].includes(e)?new Date:new Date(e);return Date.UTC(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds(),n.getUTCMilliseconds())/(t?1:1e3)},Tools.numberIsNotANumber=function(e){return"number"===Tools.determineType(e)&&isNaN(e)},Tools.numberRound=function(e,t){return void 0===t&&(t=0),Math.round(e*Math.pow(10,t))/Math.pow(10,t)},Tools.numberCeil=function(e,t){return void 0===t&&(t=0),Math.ceil(e*Math.pow(10,t))/Math.pow(10,t)},Tools.numberFloor=function(e,t){return void 0===t&&(t=0),Math.floor(e*Math.pow(10,t))/Math.pow(10,t)},Tools.checkReachability=(e=_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_4___default()(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default().mark((function e(t,n){var r,i,o,a,s;return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===n&&(n={}),r=Tools.extend(!0,{wait:!1,statusCodes:200,timeoutInSeconds:10,pollIntervallInSeconds:.1,options:{},expectedIntermediateStatusCodes:[]},n),i=[].concat(r.statusCodes),o=[].concat(r.expectedIntermediateStatusCodes),a=function(e,t){return Boolean(null!==e&&"object"==typeof e&&"status"in e&&t.includes(e.status))},s=function(e){if(!a(e,i))throw new Error("Given status code "+e.status+" differs from "+i.join(", ")+".");return e},!r.wait){e.next=8;break}return e.abrupt("return",new Promise((function(e,n){var i=!1,l=Tools.timeout(1e3*r.timeoutInSeconds),u=function(e){return i||(d=Tools.timeout(1e3*r.pollIntervallInSeconds,c)).catch(Tools.noop),e},c=function(){var i=_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_4___default()(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default().mark((function i(){var c;return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,globalContext.fetch(t,r.options);case 3:c=i.sent,i.next=9;break;case 6:return i.prev=6,i.t0=i.catch(0),i.abrupt("return",u(i.t0));case 9:i.prev=9,e(s(c)),l.clear(),i.next=20;break;case 14:if(i.prev=14,i.t1=i.catch(9),!a(c,o)){i.next=18;break}return i.abrupt("return",u(i.t1));case 18:n(i.t1),l.clear();case 20:return i.abrupt("return",c);case 21:case"end":return i.stop()}}),i,null,[[0,6],[9,14]])})));return function(){return i.apply(this,arguments)}}(),d=Tools.timeout(c);l.then((function(){i=!0,d.clear(),n(new Error("Timeout of "+r.timeoutInSeconds+" seconds reached."))}),Tools.noop)})));case 8:return e.t0=s,e.next=11,globalContext.fetch(t,r.options);case 11:return e.t1=e.sent,e.abrupt("return",(0,e.t0)(e.t1));case 13:case"end":return e.stop()}}),e)}))),function(t,n){return e.apply(this,arguments)}),Tools.checkUnreachability=function(){var e=_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_4___default()(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default().mark((function e(t,n){var r,i,o;return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===n&&(n={}),r=Tools.extend(!0,{wait:!1,timeoutInSeconds:10,pollIntervallInSeconds:.1,statusCodes:[],options:{}},n),i=function(e){var n=[].concat(r.statusCodes);if(n.length){if(null!==e&&"object"==typeof e&&"status"in e&&n.includes(e.status))throw new Error('Given url "'+t+'" is reachable and responses with status code "'+e.status+'".');return new Error('Given status code is not "'+n.join(", ")+'".')}return null},!r.wait){e.next=5;break}return e.abrupt("return",new Promise((function(e,n){var o=!1,a=function(){var n=_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_4___default()(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default().mark((function n(){var u,c;return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,globalContext.fetch(t,r.options);case 3:if(u=n.sent,!o){n.next=6;break}return n.abrupt("return",u);case 6:if(!(c=i(u))){n.next=11;break}return l.clear(),e(c),n.abrupt("return",c);case 11:(s=Tools.timeout(1e3*r.pollIntervallInSeconds,a)).catch(Tools.noop),n.next=20;break;case 15:return n.prev=15,n.t0=n.catch(0),l.clear(),e(n.t0),n.abrupt("return",n.t0);case 20:return n.abrupt("return",null);case 21:case"end":return n.stop()}}),n,null,[[0,15]])})));return function(){return n.apply(this,arguments)}}(),s=Tools.timeout(a),l=Tools.timeout(1e3*r.timeoutInSeconds);l.then((function(){o=!0,s.clear(),n(new Error("Timeout of "+r.timeoutInSeconds+" seconds reached."))}),Tools.noop)})));case 5:return e.prev=5,e.t0=i,e.next=9,globalContext.fetch(t,r.options);case 9:if(e.t1=e.sent,!(o=(0,e.t0)(e.t1))){e.next=13;break}return e.abrupt("return",o);case 13:e.next=18;break;case 15:return e.prev=15,e.t2=e.catch(5),e.abrupt("return",e.t2);case 18:throw new Error('Given url "'+t+'" is reachable.');case 19:case"end":return e.stop()}}),e,null,[[5,15]])})));return function(t,n){return e.apply(this,arguments)}}(),Tools.sendToIFrame=function(e,t,n,r,i){void 0===r&&(r="post"),void 0===i&&(i=!1);for(var o=$("string"==typeof e?'iframe[name"'+e+'"]':e),a=$("<form>").attr({action:t,method:r,target:o.attr("name")}),s=0,l=Object.entries(n);s<l.length;s++){var u=l[s],c=u[0],d=u[1];a.append($("<input>").attr({name:c,type:"hidden",value:d}))}return i&&o.on("load",(function(){return o.remove()})),a.insertAfter(o),a[0].submit(),a.remove(),o},Tools.copyDirectoryRecursive=function(){var e=_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_4___default()(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default().mark((function e(t,n,r,i,o){var a,s,l,u,c;return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return void 0===r&&(r=Tools.noop),void 0===i&&(i={encoding:null,flag:"r"}),void 0===o&&(o={encoding:"utf8",flag:"w",mode:438}),t=resolve(t),e.next=6,Tools.isDirectory(n);case 6:if(!e.sent){e.next=8;break}n=resolve(n,basename(t));case 8:return e.prev=8,e.next=11,mkdir(n);case 11:e.next=17;break;case 13:if(e.prev=13,e.t0=e.catch(8),"EEXIST"===e.t0.code){e.next=17;break}throw e.t0;case 17:return e.t1=_createForOfIteratorHelperLoose,e.next=20,Tools.walkDirectoryRecursively(t,r);case 20:e.t2=e.sent,a=(0,e.t1)(e.t2);case 22:if((s=a()).done){e.next=41;break}if(u=s.value,c=join(n,u.path.substring(t.length)),null==(l=u.stats)||!l.isDirectory()){e.next=37;break}return e.prev=26,e.next=29,mkdir(c);case 29:e.next=35;break;case 31:if(e.prev=31,e.t3=e.catch(26),"EEXIST"===e.t3.code){e.next=35;break}throw e.t3;case 35:e.next=39;break;case 37:return e.next=39,Tools.copyFile(u.path,c,i,o);case 39:e.next=22;break;case 41:return e.abrupt("return",n);case 42:case"end":return e.stop()}}),e,null,[[8,13],[26,31]])})));return function(t,n,r,i,o){return e.apply(this,arguments)}}(),Tools.copyDirectoryRecursiveSync=function(e,t,n,r,i){void 0===n&&(n=Tools.noop),void 0===r&&(r={encoding:null,flag:"r"}),void 0===i&&(i={encoding:"utf8",flag:"w",mode:438}),e=resolve(e),Tools.isDirectorySync(t)&&(t=resolve(t,basename(e)));try{mkdirSync(t)}catch(e){if("EEXIST"!==e.code)throw e}for(var o,a=_createForOfIteratorHelperLoose(Tools.walkDirectoryRecursivelySync(e,n));!(o=a()).done;){var s,l=o.value,u=join(t,l.path.substring(e.length));if(null!=(s=l.stats)&&s.isDirectory())try{mkdirSync(u)}catch(e){if("EEXIST"!==e.code)throw e}else Tools.copyFileSync(l.path,u,r,i)}return t},Tools.copyFile=function(){var e=_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_4___default()(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default().mark((function e(t,n,r,i){return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return void 0===r&&(r={encoding:null,flag:"r"}),void 0===i&&(i={encoding:"utf8",flag:"w",mode:438}),e.next=4,Tools.isDirectory(n);case 4:if(!e.sent){e.next=6;break}n=resolve(n,basename(t));case 6:return e.t0=writeFile,e.t1=n,e.next=10,readFile(t,r);case 10:return e.t2=e.sent,e.t3=i,e.next=14,(0,e.t0)(e.t1,e.t2,e.t3);case 14:return e.abrupt("return",n);case 15:case"end":return e.stop()}}),e)})));return function(t,n,r,i){return e.apply(this,arguments)}}(),Tools.copyFileSync=function(e,t,n,r){return void 0===n&&(n={encoding:null,flag:"r"}),void 0===r&&(r={encoding:"utf8",flag:"w",mode:438}),Tools.isDirectorySync(t)&&(t=resolve(t,basename(e))),writeFileSync(t,readFileSync(e,n),r),t},Tools.isDirectory=function(){var e=_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_4___default()(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default().mark((function e(t){return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,stat(t);case 3:return e.abrupt("return",e.sent.isDirectory());case 6:if(e.prev=6,e.t0=e.catch(0),!Object.prototype.hasOwnProperty.call(e.t0,"code")||!["ENOENT","ENOTDIR"].includes(e.t0.code)){e.next=10;break}return e.abrupt("return",!1);case 10:throw e.t0;case 11:case"end":return e.stop()}}),e,null,[[0,6]])})));return function(t){return e.apply(this,arguments)}}(),Tools.isDirectorySync=function(e){try{return statSync(e).isDirectory()}catch(e){if(Object.prototype.hasOwnProperty.call(e,"code")&&["ENOENT","ENOTDIR"].includes(e.code))return!1;throw e}},Tools.isFile=function(){var e=_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_4___default()(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default().mark((function e(t){return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,stat(t);case 3:return e.abrupt("return",e.sent.isFile());case 6:if(e.prev=6,e.t0=e.catch(0),!Object.prototype.hasOwnProperty.call(e.t0,"code")||!["ENOENT","ENOTDIR"].includes(e.t0.code)){e.next=10;break}return e.abrupt("return",!1);case 10:throw e.t0;case 11:case"end":return e.stop()}}),e,null,[[0,6]])})));return function(t){return e.apply(this,arguments)}}(),Tools.isFileSync=function(e){try{return statSync(e).isFile()}catch(e){if(Object.prototype.hasOwnProperty.call(e,"code")&&["ENOENT","ENOTDIR"].includes(e.code))return!1;throw e}},Tools.walkDirectoryRecursively=function(){var e=_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_4___default()(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default().mark((function e(t,n,r){var i,o,a,s,l,u,c,d,f,h,p,m;return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return void 0===n&&(n=null),void 0===r&&(r="utf8"),i=[],e.t0=_createForOfIteratorHelperLoose,e.next=6,readdir(t,"string"==typeof r?{encoding:r,withFileTypes:!0}:_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({},r,{withFileTypes:!0}));case 6:e.t1=e.sent,o=(0,e.t0)(e.t1);case 8:if((a=o()).done){e.next=24;break}return s=a.value,l=resolve(t,s.name),u={directoryPath:t,directoryEntry:s,error:null,name:s.name,path:l,stats:null},e.prev=12,e.next=15,stat(l);case 15:u.stats=e.sent,e.next=21;break;case 18:e.prev=18,e.t2=e.catch(12),u.error=e.t2;case 21:i.push(u);case 22:e.next=8;break;case 24:n&&i.sort((function(e,t){var n,r,i;return null!=(n=e.stats)&&n.isDirectory()?null!=(i=t.stats)&&i.isDirectory()?0:-1:null!=(r=t.stats)&&r.isDirectory()?1:0})),c=[],d=0,f=i;case 27:if(!(d<f.length)){e.next=48;break}if(p=f[d],c.push(p),null!==(m=n?n(p):void 0)){e.next=33;break}return e.abrupt("break",48);case 33:if("object"!=typeof m||!("then"in m)){e.next=37;break}return e.next=36,m;case 36:m=e.sent;case 37:if(null!==m){e.next=39;break}return e.abrupt("break",48);case 39:if(!1===m||null==(h=p.stats)||!h.isDirectory()){e.next=45;break}return e.t3=c,e.next=43,Tools.walkDirectoryRecursively(p.path,n,r);case 43:e.t4=e.sent,c=e.t3.concat.call(e.t3,e.t4);case 45:d++,e.next=27;break;case 48:return e.abrupt("return",c);case 49:case"end":return e.stop()}}),e,null,[[12,18]])})));return function(t,n,r){return e.apply(this,arguments)}}(),Tools.walkDirectoryRecursivelySync=function(e,t,n){void 0===t&&(t=Tools.noop),void 0===n&&(n="utf8");for(var r,i=[],o=_createForOfIteratorHelperLoose(readdirSync(e,"string"==typeof n?{encoding:n,withFileTypes:!0}:_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({},n,{withFileTypes:!0})));!(r=o()).done;){var a=r.value,s=resolve(e,a.name),l={directoryPath:e,directoryEntry:a,error:null,name:a.name,path:s,stats:null};try{l.stats=statSync(s)}catch(e){l.error=e}i.push(l)}var u=[];if(t){i.sort((function(e,t){var n,r,i;return null!=(n=e.stats)&&n.isDirectory()?null!=(i=t.stats)&&i.isDirectory()?0:-1:null!=(r=t.stats)&&r.isDirectory()?1:0}));for(var c,d=_createForOfIteratorHelperLoose(i);!(c=d()).done;){var f,h=c.value;u.push(h);var p=t(h);if(null===p)break;!1!==p&&null!=(f=h.stats)&&f.isDirectory()&&(u=u.concat(Tools.walkDirectoryRecursivelySync(h.path,t,n)))}}return u},Tools.getProcessCloseHandler=function(e,t,n,r){void 0===n&&(n=null),void 0===r&&(r=Tools.noop);var i=!1;return function(o){if(i)i=!0;else{i=!0;for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];if("number"!=typeof o||0===o)r(),e({reason:n,parameters:s});else{var u=new Error("Task exited with error code "+o);u.returnCode=o,u.parameters=s,t(u)}}}},Tools.handleChildProcess=function(e){return e.stdout&&e.stdout.pipe(process.stdout),e.stderr&&e.stderr.pipe(process.stderr),e.on("close",(function(e){0!==e&&console.error("Task exited with error code "+e)})),e},_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default()(Tools,[{key:"normalizedClassNames",get:function(){if(this.$domNode){var e="class";this.$domNode.find("*").addBack().each((function(t,n){var r=$(n),i=r.attr(e);i?r.attr(e,(i.split(" ").sort()||[]).join(" ")):r.is("[class]")&&r.removeAttr(e)}))}return this}},{key:"normalizedStyles",get:function(){if(this.$domNode){var e="style";this.$domNode.find("*").addBack().each((function(t,n){var r=$(n),i=r.attr(e);i?r.attr(e,Tools.stringCompressStyleValue((Tools.stringCompressStyleValue(i).split(";").sort()||[]).map((function(e){return e.trim()})).join(";"))):r.is("[style]")&&r.removeAttr(e)}))}return this}},{key:"style",get:function(){var e={},t=this.$domNode;if(null!=t&&t.length){var n,r;if(null!=(n=$.global.window)&&n.getComputedStyle&&(r=$.global.window.getComputedStyle(t[0],null))){if("length"in r)for(var i=0;i<r.length;i+=1)e[Tools.stringDelimitedToCamelCase(r[i])]=r.getPropertyValue(r[i]);else for(var o=0,a=Object.entries(r);o<a.length;o++){var s=a[o],l=s[0],u=s[1];e[Tools.stringDelimitedToCamelCase(l)]=u||r.getPropertyValue(l)}return e}if(r=t[0].style)for(var c in r)"function"!=typeof r[c]&&(e[c]=r[c])}return e}},{key:"text",get:function(){return this.$domNode?this.$domNode.clone().children().remove().end().text():""}}]),Tools}();Tools.abbreviations=["html","id","url","us","de","api","href"],Tools.animationEndEventNames="animationend webkitAnimationEnd oAnimationEnd MSAnimationEnd",Tools.classToTypeMapping={"[object Array]":"array","[object Boolean]":"boolean","[object Date]":"date","[object Error]":"error","[object Function]":"function","[object Map]":"map","[object Number]":"number","[object Object]":"object","[object RegExp]":"regexp","[object Set]":"set","[object String]":"string"},Tools.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},Tools.locales=[],Tools.maximalSupportedInternetExplorerVersion=function(){if(!$.document)return 0;var e,t=$.document.createElement("div");for(e=0;e<10&&(t.innerHTML="\x3c!--[if gt IE "+e+"]><i></i><![endif]--\x3e",0!==t.getElementsByTagName("i").length);e++);if(0===e&&$.global.window.navigator){if(-1!==$.global.window.navigator.appVersion.indexOf("MSIE 10"))return 10;if(![$.global.window.navigator.userAgent.indexOf("Trident"),$.global.window.navigator.userAgent.indexOf("rv:11")].includes(-1))return 11}return e}(),Tools.noop=$.noop?$.noop:function(){},Tools.plainObjectPrototypes=[Object.prototype],Tools.specialRegexSequences=["-","[","]","(",")","^","$","*","+",".","{","}"],Tools.transitionEndEventNames="transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",Tools._dateTimePatternCache=[],Tools._defaultOptions={domNodes:{hideJavaScriptEnabled:".tools-hidden-on-javascript-enabled",showJavaScriptEnabled:".tools-visible-on-javascript-enabled"},domNodeSelectorInfix:"",domNodeSelectorPrefix:"body",logging:!1,name:"Tools"},Tools._javaScriptDependentContentHandled=!1;var BoundTools=function(e){function t(n){for(var r,i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];return(r=e.call.apply(e,[this,n].concat(o))||this).$domNode=void 0,r.self=t,r.$domNode=n,r}return _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0___default()(t,e),t}(Tools);__webpack_exports__.default=Tools;var augment$=function(e){if(($=e).global||($.global=globalContext),$.global.window&&(!$.document&&$.global.window.document&&($.document=$.global.window.document),!$.location&&$.global.window.location&&($.location=$.global.window.location)),$.fn&&($.fn.Tools=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Tools.controller(Tools,t,this)}),$.Tools=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Tools.controller(Tools,t)},$.Tools.class=Tools,$.fn){var t=$.fn.prop;$.fn.prop=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];if(r.length<2&&this.length&&["#text","#comment"].includes(this[0].nodeName.toLowerCase())&&e in this[0]){if(0===r.length)return this[0][e];if(1===r.length)return this[0][e]=r[0],this}return t.call.apply(t,[this,e].concat(r))}}};augment$($),$.readyException=function(e){if("string"!=typeof e||"canceled"!==e)throw e}},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__2__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__3__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__4__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__5__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__6__},function(e){if(void 0===__WEBPACK_EXTERNAL_MODULE__7__){var t=new Error("Cannot find module 'undefined'");throw t.code="MODULE_NOT_FOUND",t}e.exports=__WEBPACK_EXTERNAL_MODULE__7__}],__webpack_module_cache__={};function __nested_webpack_require_92785__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e](n,n.exports,__nested_webpack_require_92785__),n.loaded=!0,n.exports}__nested_webpack_require_92785__.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return __nested_webpack_require_92785__.d(t,{a:t}),t},__nested_webpack_require_92785__.d=function(e,t){for(var n in t)__nested_webpack_require_92785__.o(t,n)&&!__nested_webpack_require_92785__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__nested_webpack_require_92785__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__nested_webpack_require_92785__.hmd=function(e){return(e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e},__nested_webpack_require_92785__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},__nested_webpack_require_92785__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__=__nested_webpack_require_92785__(1);return __webpack_exports__}()},module.exports=r(__webpack_require__(23),__webpack_require__(37),__webpack_require__(36),__webpack_require__(60),__webpack_require__(39),__webpack_require__(40),function(){try{return __webpack_require__(102)}catch(e){}}())},function(e,t){"use strict";
7
+ /**
8
+ * @license React
9
+ * scheduler.production.min.js
10
+ *
11
+ * Copyright (c) Facebook, Inc. and its affiliates.
12
+ *
13
+ * This source code is licensed under the MIT license found in the
14
+ * LICENSE file in the root directory of this source tree.
15
+ */function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>o(l,n))u<i&&0>o(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(u<i&&0>o(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var u=[],c=[],d=1,f=null,h=3,p=!1,m=!1,g=!1,v="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function _(e){for(var t=r(c);null!==t;){if(null===t.callback)i(c);else{if(!(t.startTime<=e))break;i(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function w(e){if(g=!1,_(e),!m)if(null!==r(u))m=!0,M(x);else{var t=r(c);null!==t&&P(w,t.startTime-e)}}function x(e,n){m=!1,g&&(g=!1,b(T),T=-1),p=!0;var o=h;try{for(_(n),f=r(u);null!==f&&(!(f.expirationTime>n)||e&&!O());){var a=f.callback;if("function"==typeof a){f.callback=null,h=f.priorityLevel;var s=a(f.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?f.callback=s:f===r(u)&&i(u),_(n)}else i(u);f=r(u)}if(null!==f)var l=!0;else{var d=r(c);null!==d&&P(w,d.startTime-n),l=!1}return l}finally{f=null,h=o,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var C,E=!1,S=null,T=-1,A=5,k=-1;function O(){return!(t.unstable_now()-k<A)}function I(){if(null!==S){var e=t.unstable_now();k=e;var n=!0;try{n=S(!0,e)}finally{n?C():(E=!1,S=null)}}else E=!1}if("function"==typeof y)C=function(){y(I)};else if("undefined"!=typeof MessageChannel){var L=new MessageChannel,R=L.port2;L.port1.onmessage=I,C=function(){R.postMessage(null)}}else C=function(){v(I,0)};function M(e){S=e,E||(E=!0,C())}function P(e,n){T=v((function(){e(t.unstable_now())}),n)}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(){m||p||(m=!0,M(x))},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"):A=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return r(u)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},t.unstable_scheduleCallback=function(e,i,o){var a=t.unstable_now();switch("object"==typeof o&&null!==o?o="number"==typeof(o=o.delay)&&0<o?a+o:a:o=a,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:d++,callback:i,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>a?(e.sortIndex=o,n(c,e),null===r(u)&&e===r(c)&&(g?(b(T),T=-1):g=!0,P(w,o-a))):(e.sortIndex=s,n(u,e),m||p||(m=!0,M(x))),e},t.unstable_shouldYield=O,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():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},function(e,t,n){var r=n(55).default;function i(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=i=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},n=Object.prototype,o=n.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new T(r||[]);return o._invoke=function(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return k()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=C(a,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=f(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===h)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(e,n,a),o}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var h={};function p(){}function m(){}function g(){}var v={};c(v,s,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(A([])));y&&y!==n&&o.call(y,s)&&(v=y);var _=g.prototype=p.prototype=Object.create(v);function w(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(i,a,s,l){var u=f(e[i],e,a);if("throw"!==u.type){var c=u.arg,d=c.value;return d&&"object"==r(d)&&o.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,l)}),(function(e){n("throw",e,s,l)})):t.resolve(d).then((function(e){c.value=e,s(c)}),(function(e){return n("throw",e,s,l)}))}l(u.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function C(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,C(e,t),"throw"===t.method))return h;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var r=f(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,h;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function E(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 S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function A(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(o.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:k}}function k(){return{value:void 0,done:!0}}return m.prototype=g,c(_,"constructor",g),c(g,"constructor",m),m.displayName=c(g,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,c(e,u,"GeneratorFunction")),e.prototype=Object.create(_),e},t.awrap=function(e){return{__await:e}},w(x.prototype),c(x.prototype,l,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new x(d(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(_),c(_,u,"Generator"),c(_,s,(function(){return this})),c(_,"toString",(function(){return"[object Generator]"})),t.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}},t.values=A,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},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 t=this;function n(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=o.call(i,"catchLoc"),l=o.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},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),h},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),S(n),h}},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 i=r.arg;S(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:A(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},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},function(e,t,n){"use strict";var r,i=n(131),o=(r=i)&&r.__esModule?r:{default:r};t.Z=o.default||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}},function(e,t,n){e.exports=n(129)()},function(e){e.exports=function(e){return-1!==Function.toString.call(e).indexOf("[native code]")},e.exports.__esModule=!0,e.exports.default=e.exports},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},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},function(e){e.exports=function(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})},e.exports.__esModule=!0,e.exports.default=e.exports},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},function(e){e.exports=function(e,t,n,r,i){var o={};return Object.keys(r).forEach((function(e){o[e]=r[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o},e.exports.__esModule=!0,e.exports.default=e.exports},function(e){e.exports=function(e,t){throw new Error("Decorating class property failed. Please ensure that proposal-class-properties is enabled and runs after the decorators transform.")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e){e.exports=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";t.__esModule=!0;var r=a(n(80)),i=a(n(91)),o="function"==typeof i.default&&"symbol"==typeof r.default?function(e){return typeof e}:function(e){return e&&"function"==typeof i.default&&e.constructor===i.default&&e!==i.default.prototype?"symbol":typeof e};function a(e){return e&&e.__esModule?e:{default:e}}t.default="function"==typeof i.default&&"symbol"===o(r.default)?function(e){return void 0===e?"undefined":o(e)}:function(e){return e&&"function"==typeof i.default&&e.constructor===i.default&&e!==i.default.prototype?"symbol":void 0===e?"undefined":o(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r){function i(t){var r=new o.default(t);n.call(e,r)}if(e.addEventListener){var a=(s=!1,"object"==typeof r?s=r.capture||!1:"boolean"==typeof r&&(s=r),e.addEventListener(t,i,r||!1),{v:{remove:function(){e.removeEventListener(t,i,s)}}});if("object"==typeof a)return a.v}else if(e.attachEvent)return e.attachEvent("on"+t,i),{remove:function(){e.detachEvent("on"+t,i)}};var s};var r,i=n(68),o=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(71)),o=r(n(98)),a=!1,s=["altKey","bubbles","cancelable","ctrlKey","currentTarget","eventPhase","metaKey","shiftKey","target","timeStamp","view","type"];function l(e){return null==e}var u=[{reg:/^key/,props:["char","charCode","key","keyCode","which"],fix:function(e,t){l(e.which)&&(e.which=l(t.charCode)?t.keyCode:t.charCode),void 0===e.metaKey&&(e.metaKey=e.ctrlKey)}},{reg:/^touch/,props:["touches","changedTouches","targetTouches"]},{reg:/^hashchange$/,props:["newURL","oldURL"]},{reg:/^gesturechange$/i,props:["rotation","scale"]},{reg:/^(mousewheel|DOMMouseScroll)$/,props:[],fix:function(e,t){var n=void 0,r=void 0,i=void 0,o=t.wheelDelta,a=t.axis,s=t.wheelDeltaY,l=t.wheelDeltaX,u=t.detail;o&&(i=o/120),u&&(i=0-(u%3==0?u/3:u)),void 0!==a&&(a===e.HORIZONTAL_AXIS?(r=0,n=0-i):a===e.VERTICAL_AXIS&&(n=0,r=i)),void 0!==s&&(r=s/120),void 0!==l&&(n=-1*l/120),n||r||(r=i),void 0!==n&&(e.deltaX=n),void 0!==r&&(e.deltaY=r),void 0!==i&&(e.delta=i)}},{reg:/^mouse|contextmenu|click|mspointer|(^DOMMouseScroll$)/i,props:["buttons","clientX","clientY","button","offsetX","relatedTarget","which","fromElement","toElement","offsetY","pageX","pageY","screenX","screenY"],fix:function(e,t){var n=void 0,r=void 0,i=void 0,o=e.target,a=t.button;return o&&l(e.pageX)&&!l(t.clientX)&&(r=(n=o.ownerDocument||document).documentElement,i=n.body,e.pageX=t.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),e.which||void 0===a||(e.which=1&a?1:2&a?3:4&a?2:0),!e.relatedTarget&&e.fromElement&&(e.relatedTarget=e.fromElement===o?e.toElement:e.fromElement),e}}];function c(){return true}function d(){return a}function f(e){var t=e.type,n="function"==typeof e.stopPropagation||"boolean"==typeof e.cancelBubble;i.default.call(this),this.nativeEvent=e;var r=d;"defaultPrevented"in e?r=e.defaultPrevented?c:d:"getPreventDefault"in e?r=e.getPreventDefault()?c:d:"returnValue"in e&&(r=e.returnValue===a?c:d),this.isDefaultPrevented=r;var o=[],l=void 0,f=void 0,h=s.concat();for(u.forEach((function(e){t.match(e.reg)&&(h=h.concat(e.props),e.fix&&o.push(e.fix))})),l=h.length;l;)this[f=h[--l]]=e[f];for(!this.target&&n&&(this.target=e.srcElement||document),this.target&&3===this.target.nodeType&&(this.target=this.target.parentNode),l=o.length;l;)(0,o[--l])(this,e);this.timeStamp=e.timeStamp||Date.now()}var h=i.default.prototype;(0,o.default)(f.prototype,h,{constructor:f,preventDefault:function(){var e=this.nativeEvent;e.preventDefault?e.preventDefault():e.returnValue=a,h.preventDefault.call(this)},stopPropagation:function(){var e=this.nativeEvent;e.stopPropagation?e.stopPropagation():e.cancelBubble=true,h.stopPropagation.call(this)}}),t.default=f,e.exports=t.default},function(e,t,n){"use strict";var r,i=n(70),o=(r=i)&&r.__esModule?r:{default:r};t.Z=function(){function e(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),(0,o.default)(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()},function(e,t,n){e.exports={default:n(99),__esModule:!0}},function(e,t){"use strict";function n(){return!1}function r(){return!0}function i(){this.timeStamp=Date.now(),this.target=void 0,this.currentTarget=void 0}Object.defineProperty(t,"__esModule",{value:!0}),i.prototype={isEventObject:1,constructor:i,isDefaultPrevented:n,isPropagationStopped:n,isImmediatePropagationStopped:n,preventDefault:function(){this.isDefaultPrevented=r},stopPropagation:function(){this.isPropagationStopped=r},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=r,this.stopPropagation()},halt:function(e){e?this.stopImmediatePropagation():this.stopPropagation(),this.preventDefault()}},t.default=i,e.exports=t.default},function(e){e.exports=function(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0;n<e.length;++n)if(e[n]===t)return n;return-1}},function(e,t,n){e=n.nmd(e),function(){var e=function(){return this}();e||"undefined"==typeof window||(e=window);var t=function(e,n,r){"string"==typeof e?(2==arguments.length&&(r=n),t.modules[e]||(t.payloads[e]=r,t.modules[e]=null)):t.original?t.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace())};t.modules={},t.payloads={};var n,r,i=function(e,t,n){if("string"==typeof t){var r=s(e,t);if(null!=r)return n&&n(),r}else if("[object Array]"===Object.prototype.toString.call(t)){for(var i=[],a=0,l=t.length;a<l;++a){var u=s(e,t[a]);if(null==u&&o.original)return;i.push(u)}return n&&n.apply(null,i)||!0}},o=function(e,t){var n=i("",e,t);return null==n&&o.original?o.original.apply(this,arguments):n},a=function(e,t){if(-1!==t.indexOf("!")){var n=t.split("!");return a(e,n[0])+"!"+a(e,n[1])}if("."==t.charAt(0))for(t=e.split("/").slice(0,-1).join("/")+"/"+t;-1!==t.indexOf(".")&&r!=t;){var r=t;t=t.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}return t},s=function(e,n){n=a(e,n);var r=t.modules[n];if(!r){if("function"==typeof(r=t.payloads[n])){var o={},s={id:n,uri:"",exports:o,packaged:!0};o=r((function(e,t){return i(n,e,t)}),o,s)||s.exports,t.modules[n]=o,delete t.payloads[n]}r=t.modules[n]=o||r}return r};r=e,(n="ace")&&(e[n]||(e[n]={}),r=e[n]),r.define&&r.define.packaged||(t.original=r.define,r.define=t,r.define.packaged=!0),r.require&&r.require.packaged||(o.original=r.require,r.require=o,r.require.packaged=!0)}(),ace.define("ace/lib/es6-shim",["require","exports","module"],(function(e,t,n){function r(e,t,n){Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||r(String.prototype,"startsWith",(function(e,t){return t=t||0,this.lastIndexOf(e,t)===t})),String.prototype.endsWith||r(String.prototype,"endsWith",(function(e,t){var n=this;(void 0===t||t>n.length)&&(t=n.length),t-=e.length;var r=n.indexOf(e,t);return-1!==r&&r===t})),String.prototype.repeat||r(String.prototype,"repeat",(function(e){for(var t="",n=this;e>0;)1&e&&(t+=n),(e>>=1)&&(n+=n);return t})),String.prototype.includes||r(String.prototype,"includes",(function(e,t){return-1!=this.indexOf(e,t)})),Object.assign||(Object.assign=function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];null!=r&&Object.keys(r).forEach((function(e){t[e]=r[e]}))}return t}),Object.values||(Object.values=function(e){return Object.keys(e).map((function(t){return e[t]}))}),Array.prototype.find||r(Array.prototype,"find",(function(e){for(var t=this.length,n=arguments[1],r=0;r<t;r++){var i=this[r];if(e.call(n,i,r,this))return i}})),Array.prototype.findIndex||r(Array.prototype,"findIndex",(function(e){for(var t=this.length,n=arguments[1],r=0;r<t;r++){var i=this[r];if(e.call(n,i,r,this))return r}})),Array.prototype.includes||r(Array.prototype,"includes",(function(e,t){return-1!=this.indexOf(e,t)})),Array.prototype.fill||r(Array.prototype,"fill",(function(e){for(var t=this,n=t.length>>>0,r=arguments[1],i=r>>0,o=i<0?Math.max(n+i,0):Math.min(i,n),a=arguments[2],s=void 0===a?n:a>>0,l=s<0?Math.max(n+s,0):Math.min(s,n);o<l;)t[o]=e,o++;return t})),Array.of||r(Array,"of",(function(){return Array.prototype.slice.call(arguments)}))})),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],(function(e,t,n){"use strict";e("./es6-shim")})),ace.define("ace/lib/lang",["require","exports","module"],(function(e,t,n){"use strict";t.last=function(e){return e[e.length-1]},t.stringReverse=function(e){return e.split("").reverse().join("")},t.stringRepeat=function(e,t){for(var n="";t>0;)1&t&&(n+=e),(t>>=1)&&(e+=e);return n};var r=/^\s\s*/,i=/\s\s*$/;t.stringTrimLeft=function(e){return e.replace(r,"")},t.stringTrimRight=function(e){return e.replace(i,"")},t.copyObject=function(e){var t={};for(var n in e)t[n]=e[n];return t},t.copyArray=function(e){for(var t=[],n=0,r=e.length;n<r;n++)e[n]&&"object"==typeof e[n]?t[n]=this.copyObject(e[n]):t[n]=e[n];return t},t.deepCopy=function e(t){if("object"!=typeof t||!t)return t;var n;if(Array.isArray(t)){n=[];for(var r=0;r<t.length;r++)n[r]=e(t[r]);return n}if("[object Object]"!==Object.prototype.toString.call(t))return t;for(var r in n={},t)n[r]=e(t[r]);return n},t.arrayToMap=function(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=1;return t},t.createMap=function(e){var t=Object.create(null);for(var n in e)t[n]=e[n];return t},t.arrayRemove=function(e,t){for(var n=0;n<=e.length;n++)t===e[n]&&e.splice(n,1)},t.escapeRegExp=function(e){return e.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},t.escapeHTML=function(e){return(""+e).replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},t.getMatchOffsets=function(e,t){var n=[];return e.replace(t,(function(e){n.push({offset:arguments[arguments.length-2],length:e.length})})),n},t.deferredCall=function(e){var t=null,n=function(){t=null,e()},r=function(e){return r.cancel(),t=setTimeout(n,e||0),r};return r.schedule=r,r.call=function(){return this.cancel(),e(),r},r.cancel=function(){return clearTimeout(t),t=null,r},r.isPending=function(){return t},r},t.delayedCall=function(e,t){var n=null,r=function(){n=null,e()},i=function(e){null==n&&(n=setTimeout(r,e||t))};return i.delay=function(e){n&&clearTimeout(n),n=setTimeout(r,e||t)},i.schedule=i,i.call=function(){this.cancel(),e()},i.cancel=function(){n&&clearTimeout(n),n=null},i.isPending=function(){return n},i}})),ace.define("ace/lib/oop",["require","exports","module"],(function(e,t,n){"use strict";t.inherits=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})},t.mixin=function(e,t){for(var n in t)e[n]=t[n];return e},t.implement=function(e,n){t.mixin(e,n)}})),ace.define("ace/lib/useragent",["require","exports","module"],(function(e,t,n){"use strict";t.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},t.getOS=function(){return t.isMac?t.OS.MAC:t.isLinux?t.OS.LINUX:t.OS.WINDOWS};var r="object"==typeof navigator?navigator:{},i=(/mac|win|linux/i.exec(r.platform)||["other"])[0].toLowerCase(),o=r.userAgent||"",a=r.appName||"";t.isWin="win"==i,t.isMac="mac"==i,t.isLinux="linux"==i,t.isIE="Microsoft Internet Explorer"==a||a.indexOf("MSAppHost")>=0?parseFloat((o.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((o.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),t.isOldIE=t.isIE&&t.isIE<9,t.isGecko=t.isMozilla=o.match(/ Gecko\/\d+/),t.isOpera="object"==typeof opera&&"[object Opera]"==Object.prototype.toString.call(window.opera),t.isWebKit=parseFloat(o.split("WebKit/")[1])||void 0,t.isChrome=parseFloat(o.split(" Chrome/")[1])||void 0,t.isEdge=parseFloat(o.split(" Edge/")[1])||void 0,t.isAIR=o.indexOf("AdobeAIR")>=0,t.isAndroid=o.indexOf("Android")>=0,t.isChromeOS=o.indexOf(" CrOS ")>=0,t.isIOS=/iPad|iPhone|iPod/.test(o)&&!window.MSStream,t.isIOS&&(t.isMac=!0),t.isMobile=t.isIOS||t.isAndroid})),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],(function(e,t,n){"use strict";var r,i=e("./useragent");t.buildDom=function e(t,n,r){if("string"==typeof t&&t){var i=document.createTextNode(t);return n&&n.appendChild(i),i}if(!Array.isArray(t))return t&&t.appendChild&&n&&n.appendChild(t),t;if("string"!=typeof t[0]||!t[0]){for(var o=[],a=0;a<t.length;a++){var s=e(t[a],n,r);s&&o.push(s)}return o}var l=document.createElement(t[0]),u=t[1],c=1;u&&"object"==typeof u&&!Array.isArray(u)&&(c=2);for(a=c;a<t.length;a++)e(t[a],l,r);return 2==c&&Object.keys(u).forEach((function(e){var t=u[e];"class"===e?l.className=Array.isArray(t)?t.join(" "):t:"function"==typeof t||"value"==e||"$"==e[0]?l[e]=t:"ref"===e?r&&(r[t]=l):"style"===e?"string"==typeof t&&(l.style.cssText=t):null!=t&&l.setAttribute(e,t)})),n&&n.appendChild(l),l},t.getDocumentHead=function(e){return e||(e=document),e.head||e.getElementsByTagName("head")[0]||e.documentElement},t.createElement=function(e,t){return document.createElementNS?document.createElementNS(t||"http://www.w3.org/1999/xhtml",e):document.createElement(e)},t.removeChildren=function(e){e.innerHTML=""},t.createTextNode=function(e,t){return(t?t.ownerDocument:document).createTextNode(e)},t.createFragment=function(e){return(e?e.ownerDocument:document).createDocumentFragment()},t.hasCssClass=function(e,t){return-1!==(e.className+"").split(/\s+/g).indexOf(t)},t.addCssClass=function(e,n){t.hasCssClass(e,n)||(e.className+=" "+n)},t.removeCssClass=function(e,t){for(var n=e.className.split(/\s+/g);;){var r=n.indexOf(t);if(-1==r)break;n.splice(r,1)}e.className=n.join(" ")},t.toggleCssClass=function(e,t){for(var n=e.className.split(/\s+/g),r=!0;;){var i=n.indexOf(t);if(-1==i)break;r=!1,n.splice(i,1)}return r&&n.push(t),e.className=n.join(" "),r},t.setCssClass=function(e,n,r){r?t.addCssClass(e,n):t.removeCssClass(e,n)},t.hasCssString=function(e,t){var n,r=0;if(n=(t=t||document).querySelectorAll("style"))for(;r<n.length;)if(n[r++].id===e)return!0},t.removeElementById=function(e,t){(t=t||document).getElementById(e)&&t.getElementById(e).remove()};var o=[];function a(){var e=o;o=null,e&&e.forEach((function(e){s(e[0],e[1])}))}function s(e,n,i){if("undefined"!=typeof document){if(o)if(i)a();else if(!1===i)return o.push([e,n]);if(!r){var s=i;i&&i.getRootNode&&(s=i.getRootNode())&&s!=i||(s=document);var l=s.ownerDocument||s;if(n&&t.hasCssString(n,s))return null;n&&(e+="\n/*# sourceURL=ace/css/"+n+" */");var u=t.createElement("style");u.appendChild(l.createTextNode(e)),n&&(u.id=n),s==l&&(s=t.getDocumentHead(l)),s.insertBefore(u,s.firstChild)}}}if(t.useStrictCSP=function(e){r=e,0==e?a():o||(o=[])},t.importCssString=s,t.importCssStylsheet=function(e,n){t.buildDom(["link",{rel:"stylesheet",href:e}],t.getDocumentHead(n))},t.scrollbarWidth=function(e){var n=t.createElement("ace_inner");n.style.width="100%",n.style.minWidth="0px",n.style.height="200px",n.style.display="block";var r=t.createElement("ace_outer"),i=r.style;i.position="absolute",i.left="-10000px",i.overflow="hidden",i.width="200px",i.minWidth="0px",i.height="150px",i.display="block",r.appendChild(n);var o=e.documentElement;o.appendChild(r);var a=n.offsetWidth;i.overflow="scroll";var s=n.offsetWidth;return a==s&&(s=r.clientWidth),o.removeChild(r),a-s},t.computedStyle=function(e,t){return window.getComputedStyle(e,"")||{}},t.setStyle=function(e,t,n){e[t]!==n&&(e[t]=n)},t.HAS_CSS_ANIMATION=!1,t.HAS_CSS_TRANSFORMS=!1,t.HI_DPI=!i.isWin||"undefined"!=typeof window&&window.devicePixelRatio>=1.5,i.isChromeOS&&(t.HI_DPI=!1),"undefined"!=typeof document){var l=document.createElement("div");t.HI_DPI&&void 0!==l.style.transform&&(t.HAS_CSS_TRANSFORMS=!0),i.isEdge||void 0===l.style.animationName||(t.HAS_CSS_ANIMATION=!0),l=null}t.HAS_CSS_TRANSFORMS?t.translate=function(e,t,n){e.style.transform="translate("+Math.round(t)+"px, "+Math.round(n)+"px)"}:t.translate=function(e,t,n){e.style.top=Math.round(n)+"px",e.style.left=Math.round(t)+"px"}})),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],(function(e,t,n){
16
+ /*
17
+ * based on code from:
18
+ *
19
+ * @license RequireJS text 0.25.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
20
+ * Available via the MIT or new BSD license.
21
+ * see: http://github.com/jrburke/requirejs for details
22
+ */
23
+ "use strict";var r=e("./dom");t.get=function(e,t){var n=new XMLHttpRequest;n.open("GET",e,!0),n.onreadystatechange=function(){4===n.readyState&&t(n.responseText)},n.send(null)},t.loadScript=function(e,t){var n=r.getDocumentHead(),i=document.createElement("script");i.src=e,n.appendChild(i),i.onload=i.onreadystatechange=function(e,n){!n&&i.readyState&&"loaded"!=i.readyState&&"complete"!=i.readyState||(i=i.onload=i.onreadystatechange=null,n||t())}},t.qualifyURL=function(e){var t=document.createElement("a");return t.href=e,t.href}})),ace.define("ace/lib/event_emitter",["require","exports","module"],(function(e,t,n){"use strict";var r={},i=function(){this.propagationStopped=!0},o=function(){this.defaultPrevented=!0};r._emit=r._dispatchEvent=function(e,t){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var n=this._eventRegistry[e]||[],r=this._defaultHandlers[e];if(n.length||r){"object"==typeof t&&t||(t={}),t.type||(t.type=e),t.stopPropagation||(t.stopPropagation=i),t.preventDefault||(t.preventDefault=o),n=n.slice();for(var a=0;a<n.length&&(n[a](t,this),!t.propagationStopped);a++);return r&&!t.defaultPrevented?r(t,this):void 0}},r._signal=function(e,t){var n=(this._eventRegistry||{})[e];if(n){n=n.slice();for(var r=0;r<n.length;r++)n[r](t,this)}},r.once=function(e,t){var n=this;if(this.on(e,(function r(){n.off(e,r),t.apply(null,arguments)})),!t)return new Promise((function(e){t=e}))},r.setDefaultHandler=function(e,t){var n=this._defaultHandlers;if(n||(n=this._defaultHandlers={_disabled_:{}}),n[e]){var r=n[e],i=n._disabled_[e];i||(n._disabled_[e]=i=[]),i.push(r);var o=i.indexOf(t);-1!=o&&i.splice(o,1)}n[e]=t},r.removeDefaultHandler=function(e,t){var n=this._defaultHandlers;if(n){var r=n._disabled_[e];if(n[e]==t)r&&this.setDefaultHandler(e,r.pop());else if(r){var i=r.indexOf(t);-1!=i&&r.splice(i,1)}}},r.on=r.addEventListener=function(e,t,n){this._eventRegistry=this._eventRegistry||{};var r=this._eventRegistry[e];return r||(r=this._eventRegistry[e]=[]),-1==r.indexOf(t)&&r[n?"unshift":"push"](t),t},r.off=r.removeListener=r.removeEventListener=function(e,t){this._eventRegistry=this._eventRegistry||{};var n=this._eventRegistry[e];if(n){var r=n.indexOf(t);-1!==r&&n.splice(r,1)}},r.removeAllListeners=function(e){e||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[e]=void 0),this._defaultHandlers&&(this._defaultHandlers[e]=void 0)},t.EventEmitter=r})),ace.define("ace/lib/app_config",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],(function(e,t,n){var r=e("./oop"),i=e("./event_emitter").EventEmitter,o={setOptions:function(e){Object.keys(e).forEach((function(t){this.setOption(t,e[t])}),this)},getOptions:function(e){var t={};if(e)Array.isArray(e)||(t=e,e=Object.keys(t));else{var n=this.$options;e=Object.keys(n).filter((function(e){return!n[e].hidden}))}return e.forEach((function(e){t[e]=this.getOption(e)}),this),t},setOption:function(e,t){if(this["$"+e]!==t){var n=this.$options[e];if(!n)return a('misspelled option "'+e+'"');if(n.forwardTo)return this[n.forwardTo]&&this[n.forwardTo].setOption(e,t);n.handlesSet||(this["$"+e]=t),n&&n.set&&n.set.call(this,t)}},getOption:function(e){var t=this.$options[e];return t?t.forwardTo?this[t.forwardTo]&&this[t.forwardTo].getOption(e):t&&t.get?t.get.call(this):this["$"+e]:a('misspelled option "'+e+'"')}};function a(e){"undefined"!=typeof console&&console.warn&&console.warn.apply(console,arguments)}function s(e,t){var n=new Error(e);n.data=t,"object"==typeof console&&console.error&&console.error(n),setTimeout((function(){throw n}))}var l=function(){this.$defaultOptions={}};(function(){r.implement(this,i),this.defineOptions=function(e,t,n){return e.$options||(this.$defaultOptions[t]=e.$options={}),Object.keys(n).forEach((function(t){var r=n[t];"string"==typeof r&&(r={forwardTo:r}),r.name||(r.name=t),e.$options[r.name]=r,"initialValue"in r&&(e["$"+r.name]=r.initialValue)})),r.implement(e,o),this},this.resetOptions=function(e){Object.keys(e.$options).forEach((function(t){var n=e.$options[t];"value"in n&&e.setOption(t,n.value)}))},this.setDefaultValue=function(e,t,n){if(!e){for(e in this.$defaultOptions)if(this.$defaultOptions[e][t])break;if(!this.$defaultOptions[e][t])return!1}var r=this.$defaultOptions[e]||(this.$defaultOptions[e]={});r[t]&&(r.forwardTo?this.setDefaultValue(r.forwardTo,t,n):r[t].value=n)},this.setDefaultValues=function(e,t){Object.keys(t).forEach((function(n){this.setDefaultValue(e,n,t[n])}),this)},this.warn=a,this.reportError=s}).call(l.prototype),t.AppConfig=l})),ace.define("ace/theme/textmate.css",["require","exports","module"],(function(e,t,n){n.exports='.ace-tm .ace_gutter {\n background: #f0f0f0;\n color: #333;\n}\n\n.ace-tm .ace_print-margin {\n width: 1px;\n background: #e8e8e8;\n}\n\n.ace-tm .ace_fold {\n background-color: #6B72E6;\n}\n\n.ace-tm {\n background-color: #FFFFFF;\n color: black;\n}\n\n.ace-tm .ace_cursor {\n color: black;\n}\n \n.ace-tm .ace_invisible {\n color: rgb(191, 191, 191);\n}\n\n.ace-tm .ace_storage,\n.ace-tm .ace_keyword {\n color: blue;\n}\n\n.ace-tm .ace_constant {\n color: rgb(197, 6, 11);\n}\n\n.ace-tm .ace_constant.ace_buildin {\n color: rgb(88, 72, 246);\n}\n\n.ace-tm .ace_constant.ace_language {\n color: rgb(88, 92, 246);\n}\n\n.ace-tm .ace_constant.ace_library {\n color: rgb(6, 150, 14);\n}\n\n.ace-tm .ace_invalid {\n background-color: rgba(255, 0, 0, 0.1);\n color: red;\n}\n\n.ace-tm .ace_support.ace_function {\n color: rgb(60, 76, 114);\n}\n\n.ace-tm .ace_support.ace_constant {\n color: rgb(6, 150, 14);\n}\n\n.ace-tm .ace_support.ace_type,\n.ace-tm .ace_support.ace_class {\n color: rgb(109, 121, 222);\n}\n\n.ace-tm .ace_keyword.ace_operator {\n color: rgb(104, 118, 135);\n}\n\n.ace-tm .ace_string {\n color: rgb(3, 106, 7);\n}\n\n.ace-tm .ace_comment {\n color: rgb(76, 136, 107);\n}\n\n.ace-tm .ace_comment.ace_doc {\n color: rgb(0, 102, 255);\n}\n\n.ace-tm .ace_comment.ace_doc.ace_tag {\n color: rgb(128, 159, 191);\n}\n\n.ace-tm .ace_constant.ace_numeric {\n color: rgb(0, 0, 205);\n}\n\n.ace-tm .ace_variable {\n color: rgb(49, 132, 149);\n}\n\n.ace-tm .ace_xml-pe {\n color: rgb(104, 104, 91);\n}\n\n.ace-tm .ace_entity.ace_name.ace_function {\n color: #0000A2;\n}\n\n\n.ace-tm .ace_heading {\n color: rgb(12, 7, 255);\n}\n\n.ace-tm .ace_list {\n color:rgb(185, 6, 144);\n}\n\n.ace-tm .ace_meta.ace_tag {\n color:rgb(0, 22, 142);\n}\n\n.ace-tm .ace_string.ace_regex {\n color: rgb(255, 0, 0)\n}\n\n.ace-tm .ace_marker-layer .ace_selection {\n background: rgb(181, 213, 255);\n}\n.ace-tm.ace_multiselect .ace_selection.ace_start {\n box-shadow: 0 0 3px 0px white;\n}\n.ace-tm .ace_marker-layer .ace_step {\n background: rgb(252, 255, 0);\n}\n\n.ace-tm .ace_marker-layer .ace_stack {\n background: rgb(164, 229, 101);\n}\n\n.ace-tm .ace_marker-layer .ace_bracket {\n margin: -1px 0 0 -1px;\n border: 1px solid rgb(192, 192, 192);\n}\n\n.ace-tm .ace_marker-layer .ace_active-line {\n background: rgba(0, 0, 0, 0.07);\n}\n\n.ace-tm .ace_gutter-active-line {\n background-color : #dcdcdc;\n}\n\n.ace-tm .ace_marker-layer .ace_selected-word {\n background: rgb(250, 250, 255);\n border: 1px solid rgb(200, 200, 250);\n}\n\n.ace-tm .ace_indent-guide {\n background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;\n}\n\n.ace-tm .ace_indent-guide-active {\n background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;\n}\n'})),ace.define("ace/theme/textmate",["require","exports","module","ace/theme/textmate.css","ace/lib/dom"],(function(e,t,n){"use strict";t.isDark=!1,t.cssClass="ace-tm",t.cssText=e("./textmate.css"),t.$id="ace/theme/textmate",e("../lib/dom").importCssString(t.cssText,t.cssClass,!1)})),ace.define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/lib/net","ace/lib/dom","ace/lib/app_config","ace/theme/textmate"],(function(e,t,n){var r=e("./lib/lang"),i=(e("./lib/oop"),e("./lib/net")),o=e("./lib/dom"),a=e("./lib/app_config").AppConfig;n.exports=t=new a;var s={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};t.get=function(e){if(!s.hasOwnProperty(e))throw new Error("Unknown config key: "+e);return s[e]},t.set=function(e,t){if(s.hasOwnProperty(e))s[e]=t;else if(0==this.setDefaultValue("",e,t))throw new Error("Unknown config key: "+e);"useStrictCSP"==e&&o.useStrictCSP(t)},t.all=function(){return r.copyObject(s)},t.$modes={},t.moduleUrl=function(e,t){if(s.$moduleUrls[e])return s.$moduleUrls[e];var n=e.split("/"),r="snippets"==(t=t||n[n.length-2]||"")?"/":"-",i=n[n.length-1];if("worker"==t&&"-"==r){var o=new RegExp("^"+t+"[\\-_]|[\\-_]"+t+"$","g");i=i.replace(o,"")}(!i||i==t)&&n.length>1&&(i=n[n.length-2]);var a=s[t+"Path"];return null==a?a=s.basePath:"/"==r&&(t=r=""),a&&"/"!=a.slice(-1)&&(a+="/"),a+t+r+i+this.get("suffix")},t.setModuleUrl=function(e,t){return s.$moduleUrls[e]=t};var l=function(t,n){return"ace/theme/textmate"==t?n(null,e("./theme/textmate")):console.error("loader is not configured")};t.setLoader=function(e){l=e},t.$loading={},t.loadModule=function(n,r){var o,a;Array.isArray(n)&&(a=n[0],n=n[1]);try{o=e(n)}catch(e){}if(o&&!t.$loading[n])return r&&r(o);if(t.$loading[n]||(t.$loading[n]=[]),t.$loading[n].push(r),!(t.$loading[n].length>1)){var s=function(){l(n,(function(e,r){t._emit("load.module",{name:n,module:r});var i=t.$loading[n];t.$loading[n]=null,i.forEach((function(e){e&&e(r)}))}))};if(!t.get("packaged"))return s();i.loadScript(t.moduleUrl(n,a),s),u()}};var u=function(){s.basePath||s.workerPath||s.modePath||s.themePath||Object.keys(s.$moduleUrls).length||(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),u=function(){})};t.version="1.12.1"})),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],(function(e,t,r){"use strict";e("./lib/fixoldbrowsers");var i=e("./config");i.setLoader((function(t,n){e([t],(function(e){n(null,e)}))}));var o=function(){return this||"undefined"!=typeof window&&window}();function a(t){if(o&&o.document){i.set("packaged",t||e.packaged||r.packaged||o.define&&n.amdD.packaged);for(var a,s={},l="",u=document.currentScript||document._currentScript,c=(u&&u.ownerDocument||document).getElementsByTagName("script"),d=0;d<c.length;d++){var f=c[d],h=f.src||f.getAttribute("src");if(h){for(var p=f.attributes,m=0,g=p.length;m<g;m++){var v=p[m];0===v.name.indexOf("data-ace-")&&(s[(a=v.name.replace(/^data-ace-/,""),a.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=v.value)}var b=h.match(/^(.*)\/ace(\-\w+)?\.js(\?|$)/);b&&(l=b[1])}}for(var y in l&&(s.base=s.base||l,s.packaged=!0),s.basePath=s.base,s.workerPath=s.workerPath||s.base,s.modePath=s.modePath||s.base,s.themePath=s.themePath||s.base,delete s.base,s)void 0!==s[y]&&i.set(y,s[y])}}r.exports=function(t){i.init=a,t.require=e,t.define=n.amdD},a(!0)})),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],(function(e,t,n){
24
+ /*! @license
25
+ ==========================================================================
26
+ SproutCore -- JavaScript Application Framework
27
+ copyright 2006-2009, Sprout Systems Inc., Apple Inc. and contributors.
28
+
29
+ Permission is hereby granted, free of charge, to any person obtaining a
30
+ copy of this software and associated documentation files (the "Software"),
31
+ to deal in the Software without restriction, including without limitation
32
+ the rights to use, copy, modify, merge, publish, distribute, sublicense,
33
+ and/or sell copies of the Software, and to permit persons to whom the
34
+ Software is furnished to do so, subject to the following conditions:
35
+
36
+ The above copyright notice and this permission notice shall be included in
37
+ all copies or substantial portions of the Software.
38
+
39
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
40
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
41
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
42
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
43
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
44
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
45
+ DEALINGS IN THE SOFTWARE.
46
+
47
+ SproutCore and the SproutCore logo are trademarks of Sprout Systems, Inc.
48
+
49
+ For more information about SproutCore, visit http://www.sproutcore.com
50
+
51
+
52
+ ==========================================================================
53
+ @license */
54
+ "use strict";var r=e("./oop"),i=function(){var e,t,n={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8,control:1},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9","-13":"NumpadEnter",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"},PRINTABLE_KEYS:{32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}};for(t in n.FUNCTION_KEYS)e=n.FUNCTION_KEYS[t].toLowerCase(),n[e]=parseInt(t,10);for(t in n.PRINTABLE_KEYS)e=n.PRINTABLE_KEYS[t].toLowerCase(),n[e]=parseInt(t,10);return r.mixin(n,n.MODIFIER_KEYS),r.mixin(n,n.PRINTABLE_KEYS),r.mixin(n,n.FUNCTION_KEYS),n.enter=n.return,n.escape=n.esc,n.del=n.delete,n[173]="-",function(){for(var e=["cmd","ctrl","alt","shift"],t=Math.pow(2,e.length);t--;)n.KEY_MODS[t]=e.filter((function(e){return t&n.KEY_MODS[e]})).join("-")+"-"}(),n.KEY_MODS[0]="",n.KEY_MODS[-1]="input-",n}();r.mixin(t,i),t.keyCodeToString=function(e){var t=i[e];return"string"!=typeof t&&(t=String.fromCharCode(e)),t.toLowerCase()}})),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],(function(e,t,n){"use strict";var r,i=e("./keys"),o=e("./useragent"),a=null,s=0;function l(){return null==r&&function(){r=!1;try{document.createComment("").addEventListener("test",(function(){}),{get passive(){r={passive:!1}}})}catch(e){}}(),r}function u(e,t,n){this.elem=e,this.type=t,this.callback=n}u.prototype.destroy=function(){d(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var c=t.addListener=function(e,t,n,r){e.addEventListener(t,n,l()),r&&r.$toDestroy.push(new u(e,t,n))},d=t.removeListener=function(e,t,n){e.removeEventListener(t,n,l())};t.stopEvent=function(e){return t.stopPropagation(e),t.preventDefault(e),!1},t.stopPropagation=function(e){e.stopPropagation&&e.stopPropagation()},t.preventDefault=function(e){e.preventDefault&&e.preventDefault()},t.getButton=function(e){return"dblclick"==e.type?0:"contextmenu"==e.type||o.isMac&&e.ctrlKey&&!e.altKey&&!e.shiftKey?2:e.button},t.capture=function(e,t,n){var r=e&&e.ownerDocument||document;function i(e){t&&t(e),n&&n(e),d(r,"mousemove",t),d(r,"mouseup",i),d(r,"dragstart",i)}return c(r,"mousemove",t),c(r,"mouseup",i),c(r,"dragstart",i),i},t.addMouseWheelListener=function(e,t,n){c(e,"wheel",(function(e){var n=e.deltaX||0,r=e.deltaY||0;switch(e.deltaMode){case e.DOM_DELTA_PIXEL:e.wheelX=.15*n,e.wheelY=.15*r;break;case e.DOM_DELTA_LINE:e.wheelX=15*n,e.wheelY=15*r;break;case e.DOM_DELTA_PAGE:e.wheelX=150*n,e.wheelY=150*r}t(e)}),n)},t.addMultiMouseDownListener=function(e,n,r,i,a){var s,l,u,d=0,f={2:"dblclick",3:"tripleclick",4:"quadclick"};function h(e){if(0!==t.getButton(e)?d=0:e.detail>1?++d>4&&(d=1):d=1,o.isIE){var a=Math.abs(e.clientX-s)>5||Math.abs(e.clientY-l)>5;u&&!a||(d=1),u&&clearTimeout(u),u=setTimeout((function(){u=null}),n[d-1]||600),1==d&&(s=e.clientX,l=e.clientY)}if(e._clicks=d,r[i]("mousedown",e),d>4)d=0;else if(d>1)return r[i](f[d],e)}Array.isArray(e)||(e=[e]),e.forEach((function(e){c(e,"mousedown",h,a)}))};var f=function(e){return 0|(e.ctrlKey?1:0)|(e.altKey?2:0)|(e.shiftKey?4:0)|(e.metaKey?8:0)};function h(e,t,n){var r=f(t);if(!o.isMac&&a){if(t.getModifierState&&(t.getModifierState("OS")||t.getModifierState("Win"))&&(r|=8),a.altGr){if(3==(3&r))return;a.altGr=0}if(18===n||17===n){var l="location"in t?t.location:t.keyLocation;if(17===n&&1===l)1==a[n]&&(s=t.timeStamp);else if(18===n&&3===r&&2===l){t.timeStamp-s<50&&(a.altGr=!0)}}}if((n in i.MODIFIER_KEYS&&(n=-1),!r&&13===n)&&(3===(l="location"in t?t.location:t.keyLocation)&&(e(t,r,-n),t.defaultPrevented)))return;if(o.isChromeOS&&8&r){if(e(t,r,n),t.defaultPrevented)return;r&=-9}return!!(r||n in i.FUNCTION_KEYS||n in i.PRINTABLE_KEYS)&&e(t,r,n)}function p(){a=Object.create(null)}if(t.getModifierString=function(e){return i.KEY_MODS[f(e)]},t.addCommandKeyListener=function(e,n,r){if(o.isOldGecko||o.isOpera&&!("KeyboardEvent"in window)){var i=null;c(e,"keydown",(function(e){i=e.keyCode}),r),c(e,"keypress",(function(e){return h(n,e,i)}),r)}else{var s=null;c(e,"keydown",(function(e){a[e.keyCode]=(a[e.keyCode]||0)+1;var t=h(n,e,e.keyCode);return s=e.defaultPrevented,t}),r),c(e,"keypress",(function(e){s&&(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey)&&(t.stopEvent(e),s=null)}),r),c(e,"keyup",(function(e){a[e.keyCode]=null}),r),a||(p(),c(window,"focus",p))}},"object"==typeof window&&window.postMessage&&!o.isOldIE){var m=1;t.nextTick=function(e,n){n=n||window;var r="zero-timeout-message-"+m++,i=function(o){o.data==r&&(t.stopPropagation(o),d(n,"message",i),e())};c(n,"message",i),n.postMessage(r,"*")}}t.$idleBlocked=!1,t.onIdle=function(e,n){return setTimeout((function n(){t.$idleBlocked?setTimeout(n,100):e()}),n)},t.$idleBlockId=null,t.blockIdle=function(e){t.$idleBlockId&&clearTimeout(t.$idleBlockId),t.$idleBlocked=!0,t.$idleBlockId=setTimeout((function(){t.$idleBlocked=!1}),e||100)},t.nextFrame="object"==typeof window&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),t.nextFrame?t.nextFrame=t.nextFrame.bind(window):t.nextFrame=function(e){setTimeout(e,17)}})),ace.define("ace/range",["require","exports","module"],(function(e,t,n){"use strict";var r=function(e,t,n,r){this.start={row:e,column:t},this.end={row:n,column:r}};(function(){this.isEqual=function(e){return this.start.row===e.start.row&&this.end.row===e.end.row&&this.start.column===e.start.column&&this.end.column===e.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(e,t){return 0==this.compare(e,t)},this.compareRange=function(e){var t,n=e.end,r=e.start;return 1==(t=this.compare(n.row,n.column))?1==(t=this.compare(r.row,r.column))?2:0==t?1:0:-1==t?-2:-1==(t=this.compare(r.row,r.column))?-1:1==t?42:0},this.comparePoint=function(e){return this.compare(e.row,e.column)},this.containsRange=function(e){return 0==this.comparePoint(e.start)&&0==this.comparePoint(e.end)},this.intersects=function(e){var t=this.compareRange(e);return-1==t||0==t||1==t},this.isEnd=function(e,t){return this.end.row==e&&this.end.column==t},this.isStart=function(e,t){return this.start.row==e&&this.start.column==t},this.setStart=function(e,t){"object"==typeof e?(this.start.column=e.column,this.start.row=e.row):(this.start.row=e,this.start.column=t)},this.setEnd=function(e,t){"object"==typeof e?(this.end.column=e.column,this.end.row=e.row):(this.end.row=e,this.end.column=t)},this.inside=function(e,t){return 0==this.compare(e,t)&&(!this.isEnd(e,t)&&!this.isStart(e,t))},this.insideStart=function(e,t){return 0==this.compare(e,t)&&!this.isEnd(e,t)},this.insideEnd=function(e,t){return 0==this.compare(e,t)&&!this.isStart(e,t)},this.compare=function(e,t){return this.isMultiLine()||e!==this.start.row?e<this.start.row?-1:e>this.end.row?1:this.start.row===e?t>=this.start.column?0:-1:this.end.row===e?t<=this.end.column?0:1:0:t<this.start.column?-1:t>this.end.column?1:0},this.compareStart=function(e,t){return this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.compareEnd=function(e,t){return this.end.row==e&&this.end.column==t?1:this.compare(e,t)},this.compareInside=function(e,t){return this.end.row==e&&this.end.column==t?1:this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.clipRows=function(e,t){if(this.end.row>t)var n={row:t+1,column:0};else if(this.end.row<e)n={row:e,column:0};if(this.start.row>t)var i={row:t+1,column:0};else if(this.start.row<e)i={row:e,column:0};return r.fromPoints(i||this.start,n||this.end)},this.extend=function(e,t){var n=this.compare(e,t);if(0==n)return this;if(-1==n)var i={row:e,column:t};else var o={row:e,column:t};return r.fromPoints(i||this.start,o||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return r.fromPoints(this.start,this.end)},this.collapseRows=function(){return 0==this.end.column?new r(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new r(this.start.row,0,this.end.row,0)},this.toScreenRange=function(e){var t=e.documentToScreenPosition(this.start),n=e.documentToScreenPosition(this.end);return new r(t.row,t.column,n.row,n.column)},this.moveBy=function(e,t){this.start.row+=e,this.start.column+=t,this.end.row+=e,this.end.column+=t}}).call(r.prototype),r.fromPoints=function(e,t){return new r(e.row,e.column,t.row,t.column)},r.comparePoints=function(e,t){return e.row-t.row||e.column-t.column},r.comparePoints=function(e,t){return e.row-t.row||e.column-t.column},t.Range=r})),ace.define("ace/clipboard",["require","exports","module"],(function(e,t,n){"use strict";var r;n.exports={lineMode:!1,pasteCancelled:function(){return!!(r&&r>Date.now()-50)||(r=!1)},cancel:function(){r=Date.now()}}})),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],(function(e,t,n){"use strict";var r=e("../lib/event"),i=e("../lib/useragent"),o=e("../lib/dom"),a=e("../lib/lang"),s=e("../clipboard"),l=i.isChrome<18,u=i.isIE,c=i.isChrome>63,d=400,f=e("../lib/keys"),h=f.KEY_MODS,p=i.isIOS,m=p?/\s/:/\n/,g=i.isMobile;t.TextInput=function(e,t){var n=o.createElement("textarea");n.className="ace_text-input",n.setAttribute("wrap","off"),n.setAttribute("autocorrect","off"),n.setAttribute("autocapitalize","off"),n.setAttribute("spellcheck",!1),n.style.opacity="0",e.insertBefore(n,e.firstChild);var v=!1,b=!1,y=!1,_=!1,w="";g||(n.style.fontSize="1px");var x=!1,C=!1,E="",S=0,T=0,A=0;try{var k=document.activeElement===n}catch(e){}r.addListener(n,"blur",(function(e){C||(t.onBlur(e),k=!1)}),t),r.addListener(n,"focus",(function(e){if(!C){if(k=!0,i.isEdge)try{if(!document.hasFocus())return}catch(e){}t.onFocus(e),i.isEdge?setTimeout(O):O()}}),t),this.$focusScroll=!1,this.focus=function(){if(w||c||"browser"==this.$focusScroll)return n.focus({preventScroll:!0});var e=n.style.top;n.style.position="fixed",n.style.top="0px";try{var t=0!=n.getBoundingClientRect().top}catch(e){return}var r=[];if(t)for(var i=n.parentElement;i&&1==i.nodeType;)r.push(i),i.setAttribute("ace_nocontext",!0),i=!i.parentElement&&i.getRootNode?i.getRootNode().host:i.parentElement;n.focus({preventScroll:!0}),t&&r.forEach((function(e){e.removeAttribute("ace_nocontext")})),setTimeout((function(){n.style.position="","0px"==n.style.top&&(n.style.top=e)}),0)},this.blur=function(){n.blur()},this.isFocused=function(){return k},t.on("beforeEndOperation",(function(){var e=t.curOp,r=e&&e.command&&e.command.name;if("insertstring"!=r){var i=r&&(e.docChanged||e.selectionChanged);y&&i&&(E=n.value="",B()),O()}}));var O=p?function(e){if(k&&(!v||e)&&!_){e||(e="");var r="\n ab"+e+"cde fg\n";r!=n.value&&(n.value=E=r);var i=4+(e.length||(t.selection.isEmpty()?0:1));4==S&&T==i||n.setSelectionRange(4,i),S=4,T=i}}:function(){if(!y&&!_&&(k||L)){y=!0;var e=0,r=0,i="";if(t.session){var o=t.selection,a=o.getRange(),s=o.cursor.row;if(e=a.start.column,r=a.end.column,i=t.session.getLine(s),a.start.row!=s){var l=t.session.getLine(s-1);e=a.start.row<s-1?0:e,r+=l.length+1,i=l+"\n"+i}else if(a.end.row!=s){var u=t.session.getLine(s+1);r=a.end.row>s+1?u.length:r,r+=i.length+1,i=i+"\n"+u}else g&&s>0&&(i="\n"+i,r+=1,e+=1);i.length>d&&(e<d&&r<d?i=i.slice(0,d):(i="\n",e==r?e=r=0:(e=0,r=1)))}var c=i+"\n\n";if(c!=E&&(n.value=E=c,S=T=c.length),L&&(S=n.selectionStart,T=n.selectionEnd),T!=r||S!=e||n.selectionEnd!=T)try{n.setSelectionRange(e,r),S=e,T=r}catch(e){}y=!1}};this.resetSelection=O,k&&t.onFocus();var I=null;this.setInputHandler=function(e){I=e},this.getInputHandler=function(){return I};var L=!1,R=function(e,r){if(L&&(L=!1),b)return O(),e&&t.onPaste(e),b=!1,"";for(var o=n.selectionStart,a=n.selectionEnd,s=S,l=E.length-T,u=e,c=e.length-o,d=e.length-a,f=0;s>0&&E[f]==e[f];)f++,s--;for(u=u.slice(f),f=1;l>0&&E.length-f>S-1&&E[E.length-f]==e[e.length-f];)f++,l--;c-=f-1,d-=f-1;var h=u.length-f+1;if(h<0&&(s=-h,h=0),u=u.slice(0,h),!(r||u||c||s||l||d))return"";_=!0;var p=!1;return i.isAndroid&&". "==u&&(u=" ",p=!0),u&&!s&&!l&&!c&&!d||x?t.onTextInput(u):t.onTextInput(u,{extendLeft:s,extendRight:l,restoreStart:c,restoreEnd:d}),_=!1,E=e,S=o,T=a,A=d,p?"\n":u},M=function(e){if(y)return F();if(e&&e.inputType){if("historyUndo"==e.inputType)return t.execCommand("undo");if("historyRedo"==e.inputType)return t.execCommand("redo")}var r=n.value,i=R(r,!0);(r.length>500||m.test(i)||g&&S<1&&S==T)&&O()},P=function(e,t,n){var r=e.clipboardData||window.clipboardData;if(r&&!l){var i=u||n?"Text":"text/plain";try{return t?!1!==r.setData(i,t):r.getData(i)}catch(e){if(!n)return P(e,t,!0)}}},$=function(e,i){var o=t.getCopyText();if(!o)return r.preventDefault(e);P(e,o)?(p&&(O(o),v=o,setTimeout((function(){v=!1}),10)),i?t.onCut():t.onCopy(),r.preventDefault(e)):(v=!0,n.value=o,n.select(),setTimeout((function(){v=!1,O(),i?t.onCut():t.onCopy()})))},N=function(e){$(e,!0)},D=function(e){$(e,!1)},j=function(e){var o=P(e);s.pasteCancelled()||("string"==typeof o?(o&&t.onPaste(o,e),i.isIE&&setTimeout(O),r.preventDefault(e)):(n.value="",b=!0))};r.addCommandKeyListener(n,t.onCommandKey.bind(t),t),r.addListener(n,"select",(function(e){y||(v?v=!1:!function(e){return 0===e.selectionStart&&e.selectionEnd>=E.length&&e.value===E&&E&&e.selectionEnd!==T}(n)?g&&n.selectionStart!=S&&O():(t.selectAll(),O()))}),t),r.addListener(n,"input",M,t),r.addListener(n,"cut",N,t),r.addListener(n,"copy",D,t),r.addListener(n,"paste",j,t),"oncut"in n&&"oncopy"in n&&"onpaste"in n||r.addListener(e,"keydown",(function(e){if((!i.isMac||e.metaKey)&&e.ctrlKey)switch(e.keyCode){case 67:D(e);break;case 86:j(e);break;case 88:N(e)}}),t);var F=function(){if(y&&t.onCompositionUpdate&&!t.$readOnly){if(x)return W();if(y.useTextareaForIME)t.onCompositionUpdate(n.value);else{var e=n.value;R(e),y.markerRange&&(y.context&&(y.markerRange.start.column=y.selectionStart=y.context.compositionStartOffset),y.markerRange.end.column=y.markerRange.start.column+T-y.selectionStart+A)}}},B=function(e){t.onCompositionEnd&&!t.$readOnly&&(y=!1,t.onCompositionEnd(),t.off("mousedown",W),e&&M())};function W(){C=!0,n.blur(),n.focus(),C=!1}var H,V=a.delayedCall(F,50).schedule.bind(null,null);function U(){clearTimeout(H),H=setTimeout((function(){w&&(n.style.cssText=w,w=""),t.renderer.$isMousePressed=!1,t.renderer.$keepTextAreaAtCursor&&t.renderer.$moveTextAreaToCursor()}),0)}r.addListener(n,"compositionstart",(function(e){if(!y&&t.onCompositionStart&&!t.$readOnly&&(y={},!x)){e.data&&(y.useTextareaForIME=!1),setTimeout(F,0),t._signal("compositionStart"),t.on("mousedown",W);var r=t.getSelectionRange();r.end.row=r.start.row,r.end.column=r.start.column,y.markerRange=r,y.selectionStart=S,t.onCompositionStart(y),y.useTextareaForIME?(E=n.value="",S=0,T=0):(n.msGetInputContext&&(y.context=n.msGetInputContext()),n.getInputContext&&(y.context=n.getInputContext()))}}),t),r.addListener(n,"compositionupdate",F,t),r.addListener(n,"keyup",(function(e){27==e.keyCode&&n.value.length<n.selectionStart&&(y||(E=n.value),S=T=-1,O()),V()}),t),r.addListener(n,"keydown",V,t),r.addListener(n,"compositionend",B,t),this.getElement=function(){return n},this.setCommandMode=function(e){x=e,n.readOnly=!1},this.setReadOnly=function(e){x||(n.readOnly=e)},this.setCopyWithEmptySelection=function(e){},this.onContextMenu=function(e){L=!0,O(),t._emit("nativecontextmenu",{target:t,domEvent:e}),this.moveToMouse(e,!0)},this.moveToMouse=function(e,a){w||(w=n.style.cssText),n.style.cssText=(a?"z-index:100000;":"")+(i.isIE?"opacity:0.1;":"")+"text-indent: -"+(S+T)*t.renderer.characterWidth*.5+"px;";var s=t.container.getBoundingClientRect(),l=o.computedStyle(t.container),u=s.top+(parseInt(l.borderTopWidth)||0),c=s.left+(parseInt(s.borderLeftWidth)||0),d=s.bottom-u-n.clientHeight-2,f=function(e){o.translate(n,e.clientX-c-2,Math.min(e.clientY-u-2,d))};f(e),"mousedown"==e.type&&(t.renderer.$isMousePressed=!0,clearTimeout(H),i.isWin&&r.capture(t.container,f,U))},this.onContextMenuClose=U;var z=function(e){t.textInput.onContextMenu(e),U()};r.addListener(n,"mouseup",z,t),r.addListener(n,"mousedown",(function(e){e.preventDefault(),U()}),t),r.addListener(t.renderer.scroller,"contextmenu",z,t),r.addListener(n,"contextmenu",z,t),p&&function(e,t,n){var r=null,i=!1;n.addEventListener("keydown",(function(e){r&&clearTimeout(r),i=!0}),!0),n.addEventListener("keyup",(function(e){r=setTimeout((function(){i=!1}),100)}),!0);var o=function(e){if(document.activeElement===n&&!(i||y||t.$mouseHandler.isMousePressed||v)){var r=n.selectionStart,o=n.selectionEnd,a=null,s=0;if(0==r?a=f.up:1==r?a=f.home:o>T&&"\n"==E[o]?a=f.end:r<S&&" "==E[r-1]?(a=f.left,s=h.option):r<S||r==S&&T!=S&&r==o?a=f.left:o>T&&E.slice(0,o).split("\n").length>2?a=f.down:o>T&&" "==E[o-1]?(a=f.right,s=h.option):(o>T||o==T&&T!=S&&r==o)&&(a=f.right),r!==o&&(s|=h.shift),a){if(!t.onCommandKey({},s,a)&&t.commands){a=f.keyCodeToString(a);var l=t.commands.findKeyCommand(s,a);l&&t.execCommand(l)}S=r,T=o,O("")}}};document.addEventListener("selectionchange",o),t.on("destroy",(function(){document.removeEventListener("selectionchange",o)}))}(0,t,n),this.destroy=function(){n.parentElement&&n.parentElement.removeChild(n)}},t.$setUserAgentForTests=function(e,t){g=e,p=t}})),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],(function(e,t,n){"use strict";var r=e("../lib/useragent");function i(e){e.$clickSelection=null;var t=e.editor;t.setDefaultHandler("mousedown",this.onMouseDown.bind(e)),t.setDefaultHandler("dblclick",this.onDoubleClick.bind(e)),t.setDefaultHandler("tripleclick",this.onTripleClick.bind(e)),t.setDefaultHandler("quadclick",this.onQuadClick.bind(e)),t.setDefaultHandler("mousewheel",this.onMouseWheel.bind(e));["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"].forEach((function(t){e[t]=this[t]}),this),e.selectByLines=this.extendSelectionBy.bind(e,"getLineRange"),e.selectByWords=this.extendSelectionBy.bind(e,"getWordRange")}function o(e,t){if(e.start.row==e.end.row)var n=2*t.column-e.start.column-e.end.column;else if(e.start.row!=e.end.row-1||e.start.column||e.end.column)n=2*t.row-e.start.row-e.end.row;else var n=t.column-4;return n<0?{cursor:e.start,anchor:e.end}:{cursor:e.end,anchor:e.start}}(function(){this.onMouseDown=function(e){var t=e.inSelection(),n=e.getDocumentPosition();this.mousedownEvent=e;var i=this.editor,o=e.getButton();return 0!==o?((i.getSelectionRange().isEmpty()||1==o)&&i.selection.moveToPosition(n),void(2==o&&(i.textInput.onContextMenu(e.domEvent),r.isMozilla||e.preventDefault()))):(this.mousedownEvent.time=Date.now(),!t||i.isFocused()||(i.focus(),!this.$focusTimeout||this.$clickSelection||i.inMultiSelectMode)?(this.captureMouse(e),this.startSelect(n,e.domEvent._clicks>1),e.preventDefault()):(this.setState("focusWait"),void this.captureMouse(e)))},this.startSelect=function(e,t){e=e||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var n=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?n.selection.selectToPosition(e):t||n.selection.moveToPosition(e),t||this.select(),n.renderer.scroller.setCapture&&n.renderer.scroller.setCapture(),n.setStyle("ace_selecting"),this.setState("select"))},this.select=function(){var e,t=this.editor,n=t.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var r=this.$clickSelection.comparePoint(n);if(-1==r)e=this.$clickSelection.end;else if(1==r)e=this.$clickSelection.start;else{var i=o(this.$clickSelection,n);n=i.cursor,e=i.anchor}t.selection.setSelectionAnchor(e.row,e.column)}t.selection.selectToPosition(n),t.renderer.scrollCursorIntoView()},this.extendSelectionBy=function(e){var t,n=this.editor,r=n.renderer.screenToTextCoordinates(this.x,this.y),i=n.selection[e](r.row,r.column);if(this.$clickSelection){var a=this.$clickSelection.comparePoint(i.start),s=this.$clickSelection.comparePoint(i.end);if(-1==a&&s<=0)t=this.$clickSelection.end,i.end.row==r.row&&i.end.column==r.column||(r=i.start);else if(1==s&&a>=0)t=this.$clickSelection.start,i.start.row==r.row&&i.start.column==r.column||(r=i.end);else if(-1==a&&1==s)r=i.end,t=i.start;else{var l=o(this.$clickSelection,r);r=l.cursor,t=l.anchor}n.selection.setSelectionAnchor(t.row,t.column)}n.selection.selectToPosition(r),n.renderer.scrollCursorIntoView()},this.selectEnd=this.selectAllEnd=this.selectByWordsEnd=this.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting"),this.editor.renderer.scroller.releaseCapture&&this.editor.renderer.scroller.releaseCapture()},this.focusWait=function(){var e,t,n,r,i=(e=this.mousedownEvent.x,t=this.mousedownEvent.y,n=this.x,r=this.y,Math.sqrt(Math.pow(n-e,2)+Math.pow(r-t,2))),o=Date.now();(i>0||o-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},this.onDoubleClick=function(e){var t=e.getDocumentPosition(),n=this.editor,r=n.session.getBracketRange(t);r?(r.isEmpty()&&(r.start.column--,r.end.column++),this.setState("select")):(r=n.selection.getWordRange(t.row,t.column),this.setState("selectByWords")),this.$clickSelection=r,this.select()},this.onTripleClick=function(e){var t=e.getDocumentPosition(),n=this.editor;this.setState("selectByLines");var r=n.getSelectionRange();r.isMultiLine()&&r.contains(t.row,t.column)?(this.$clickSelection=n.selection.getLineRange(r.start.row),this.$clickSelection.end=n.selection.getLineRange(r.end.row).end):this.$clickSelection=n.selection.getLineRange(t.row),this.select()},this.onQuadClick=function(e){var t=this.editor;t.selectAll(),this.$clickSelection=t.getSelectionRange(),this.setState("selectAll")},this.onMouseWheel=function(e){if(!e.getAccelKey()){e.getShiftKey()&&e.wheelY&&!e.wheelX&&(e.wheelX=e.wheelY,e.wheelY=0);var t=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var n=this.$lastScroll,r=e.domEvent.timeStamp,i=r-n.t,o=i?e.wheelX/i:n.vx,a=i?e.wheelY/i:n.vy;i<550&&(o=(o+n.vx)/2,a=(a+n.vy)/2);var s=Math.abs(o/a),l=!1;if(s>=1&&t.renderer.isScrollableBy(e.wheelX*e.speed,0)&&(l=!0),s<=1&&t.renderer.isScrollableBy(0,e.wheelY*e.speed)&&(l=!0),l)n.allowed=r;else if(r-n.allowed<550){Math.abs(o)<=1.5*Math.abs(n.vx)&&Math.abs(a)<=1.5*Math.abs(n.vy)?(l=!0,n.allowed=r):n.allowed=0}return n.t=r,n.vx=o,n.vy=a,l?(t.renderer.scrollBy(e.wheelX*e.speed,e.wheelY*e.speed),e.stop()):void 0}}}).call(i.prototype),t.DefaultHandlers=i})),ace.define("ace/tooltip",["require","exports","module","ace/lib/oop","ace/lib/dom"],(function(e,t,n){"use strict";e("./lib/oop");var r=e("./lib/dom"),i="ace_tooltip";function o(e){this.isOpen=!1,this.$element=null,this.$parentNode=e}(function(){this.$init=function(){return this.$element=r.createElement("div"),this.$element.className=i,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},this.getElement=function(){return this.$element||this.$init()},this.setText=function(e){this.getElement().textContent=e},this.setHtml=function(e){this.getElement().innerHTML=e},this.setPosition=function(e,t){this.getElement().style.left=e+"px",this.getElement().style.top=t+"px"},this.setClassName=function(e){r.addCssClass(this.getElement(),e)},this.show=function(e,t,n){null!=e&&this.setText(e),null!=t&&null!=n&&this.setPosition(t,n),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},this.hide=function(){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=i,this.isOpen=!1)},this.getHeight=function(){return this.getElement().offsetHeight},this.getWidth=function(){return this.getElement().offsetWidth},this.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)}}).call(o.prototype),t.Tooltip=o})),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event","ace/tooltip"],(function(e,t,n){"use strict";var r=e("../lib/dom"),i=e("../lib/oop"),o=e("../lib/event"),a=e("../tooltip").Tooltip;function s(e){a.call(this,e)}i.inherits(s,a),function(){this.setPosition=function(e,t){var n=window.innerWidth||document.documentElement.clientWidth,r=window.innerHeight||document.documentElement.clientHeight,i=this.getWidth(),o=this.getHeight();(e+=15)+i>n&&(e-=e+i-n),(t+=15)+o>r&&(t-=20+o),a.prototype.setPosition.call(this,e,t)}}.call(s.prototype),t.GutterHandler=function(e){var t,n,i,a=e.editor,l=a.renderer.$gutterLayer,u=new s(a.container);function c(){t&&(t=clearTimeout(t)),i&&(u.hide(),i=null,a._signal("hideGutterTooltip",u),a.off("mousewheel",c))}function d(e){u.setPosition(e.x,e.y)}e.editor.setDefaultHandler("guttermousedown",(function(t){if(a.isFocused()&&0==t.getButton()&&"foldWidgets"!=l.getRegion(t)){var n=t.getDocumentPosition().row,r=a.session.selection;if(t.getShiftKey())r.selectTo(n,0);else{if(2==t.domEvent.detail)return a.selectAll(),t.preventDefault();e.$clickSelection=a.selection.getLineRange(n)}return e.setState("selectByLines"),e.captureMouse(t),t.preventDefault()}})),e.editor.setDefaultHandler("guttermousemove",(function(o){var s=o.domEvent.target||o.domEvent.srcElement;if(r.hasCssClass(s,"ace_fold-widget"))return c();i&&e.$tooltipFollowsMouse&&d(o),n=o,t||(t=setTimeout((function(){t=null,n&&!e.isMousePressed?function(){var t=n.getDocumentPosition().row,r=l.$annotations[t];if(!r)return c();if(t==a.session.getLength()){var o=a.renderer.pixelToScreenCoordinates(0,n.y).row,s=n.$pos;if(o>a.session.documentToScreenRow(s.row,s.column))return c()}if(i!=r){i=r.text.join("<br/>"),u.setHtml(i);var f=r.className;if(f&&u.setClassName(f.trim()),u.show(),a._signal("showGutterTooltip",u),a.on("mousewheel",c),e.$tooltipFollowsMouse)d(n);else{var h=n.domEvent.target.getBoundingClientRect(),p=u.getElement().style;p.left=h.right+"px",p.top=h.bottom+"px"}}}():c()}),50))})),o.addListener(a.renderer.$gutter,"mouseout",(function(e){n=null,i&&!t&&(t=setTimeout((function(){t=null,c()}),50))}),a),a.on("changeSession",c)}})),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],(function(e,t,n){"use strict";var r=e("../lib/event"),i=e("../lib/useragent"),o=t.MouseEvent=function(e,t){this.domEvent=e,this.editor=t,this.x=this.clientX=e.clientX,this.y=this.clientY=e.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1};(function(){this.stopPropagation=function(){r.stopPropagation(this.domEvent),this.propagationStopped=!0},this.preventDefault=function(){r.preventDefault(this.domEvent),this.defaultPrevented=!0},this.stop=function(){this.stopPropagation(),this.preventDefault()},this.getDocumentPosition=function(){return this.$pos||(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY)),this.$pos},this.inSelection=function(){if(null!==this.$inSelection)return this.$inSelection;var e=this.editor.getSelectionRange();if(e.isEmpty())this.$inSelection=!1;else{var t=this.getDocumentPosition();this.$inSelection=e.contains(t.row,t.column)}return this.$inSelection},this.getButton=function(){return r.getButton(this.domEvent)},this.getShiftKey=function(){return this.domEvent.shiftKey},this.getAccelKey=i.isMac?function(){return this.domEvent.metaKey}:function(){return this.domEvent.ctrlKey}}).call(o.prototype)})),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],(function(e,t,n){"use strict";var r=e("../lib/dom"),i=e("../lib/event"),o=e("../lib/useragent");function a(e){var t=e.editor,n=r.createElement("div");n.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",n.textContent=" ";["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"].forEach((function(t){e[t]=this[t]}),this),t.on("mousedown",this.onMouseDown.bind(e));var a,l,u,c,d,f,h,p,m,g,v,b=t.container,y=0;function _(){var e=f;(function(e,n){var r=Date.now(),i=!n||e.row!=n.row,o=!n||e.column!=n.column;!g||i||o?(t.moveCursorToPosition(e),g=r,v={x:l,y:u}):s(v.x,v.y,l,u)>5?g=null:r-g>=200&&(t.renderer.scrollCursorIntoView(),g=null)})(f=t.renderer.screenToTextCoordinates(l,u),e),function(e,n){var r=Date.now(),i=t.renderer.layerConfig.lineHeight,o=t.renderer.layerConfig.characterWidth,a=t.renderer.scroller.getBoundingClientRect(),s={x:{left:l-a.left,right:a.right-l},y:{top:u-a.top,bottom:a.bottom-u}},c=Math.min(s.x.left,s.x.right),d=Math.min(s.y.top,s.y.bottom),f={row:e.row,column:e.column};c/o<=2&&(f.column+=s.x.left<s.x.right?-3:2),d/i<=1&&(f.row+=s.y.top<s.y.bottom?-1:1);var h=e.row!=f.row,p=e.column!=f.column,g=!n||e.row!=n.row;h||p&&!g?m?r-m>=200&&t.renderer.scrollCursorIntoView(f):m=r:m=null}(f,e)}function w(){d=t.selection.toOrientedRange(),a=t.session.addMarker(d,"ace_selection",t.getSelectionStyle()),t.clearSelection(),t.isFocused()&&t.renderer.$cursorLayer.setBlinking(!1),clearInterval(c),_(),c=setInterval(_,20),y=0,i.addListener(document,"mousemove",E)}function x(){clearInterval(c),t.session.removeMarker(a),a=null,t.selection.fromOrientedRange(d),t.isFocused()&&!p&&t.$resetCursorStyle(),d=null,f=null,y=0,m=null,g=null,i.removeListener(document,"mousemove",E)}this.onDragStart=function(e){if(this.cancelDrag||!b.draggable){var r=this;return setTimeout((function(){r.startSelect(),r.captureMouse(e)}),0),e.preventDefault()}d=t.getSelectionRange();var i=e.dataTransfer;i.effectAllowed=t.getReadOnly()?"copy":"copyMove",t.container.appendChild(n),i.setDragImage&&i.setDragImage(n,0,0),setTimeout((function(){t.container.removeChild(n)})),i.clearData(),i.setData("Text",t.session.getTextRange()),p=!0,this.setState("drag")},this.onDragEnd=function(e){if(b.draggable=!1,p=!1,this.setState(null),!t.getReadOnly()){var n=e.dataTransfer.dropEffect;h||"move"!=n||t.session.remove(t.getSelectionRange()),t.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(e){if(!t.getReadOnly()&&S(e.dataTransfer))return l=e.clientX,u=e.clientY,a||w(),y++,e.dataTransfer.dropEffect=h=T(e),i.preventDefault(e)},this.onDragOver=function(e){if(!t.getReadOnly()&&S(e.dataTransfer))return l=e.clientX,u=e.clientY,a||(w(),y++),null!==C&&(C=null),e.dataTransfer.dropEffect=h=T(e),i.preventDefault(e)},this.onDragLeave=function(e){if(--y<=0&&a)return x(),h=null,i.preventDefault(e)},this.onDrop=function(e){if(f){var n=e.dataTransfer;if(p)switch(h){case"move":d=d.contains(f.row,f.column)?{start:f,end:f}:t.moveText(d,f);break;case"copy":d=t.moveText(d,f,!0)}else{var r=n.getData("Text");d={start:f,end:t.session.insert(f,r)},t.focus(),h=null}return x(),i.preventDefault(e)}},i.addListener(b,"dragstart",this.onDragStart.bind(e),t),i.addListener(b,"dragend",this.onDragEnd.bind(e),t),i.addListener(b,"dragenter",this.onDragEnter.bind(e),t),i.addListener(b,"dragover",this.onDragOver.bind(e),t),i.addListener(b,"dragleave",this.onDragLeave.bind(e),t),i.addListener(b,"drop",this.onDrop.bind(e),t);var C=null;function E(){null==C&&(C=setTimeout((function(){null!=C&&a&&x()}),20))}function S(e){var t=e.types;return!t||Array.prototype.some.call(t,(function(e){return"text/plain"==e||"Text"==e}))}function T(e){var t=["copy","copymove","all","uninitialized"],n=o.isMac?e.altKey:e.ctrlKey,r="uninitialized";try{r=e.dataTransfer.effectAllowed.toLowerCase()}catch(e){}var i="none";return n&&t.indexOf(r)>=0?i="copy":["move","copymove","linkmove","all","uninitialized"].indexOf(r)>=0?i="move":t.indexOf(r)>=0&&(i="copy"),i}}function s(e,t,n,r){return Math.sqrt(Math.pow(n-e,2)+Math.pow(r-t,2))}(function(){this.dragWait=function(){Date.now()-this.mousedownEvent.time>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){this.editor.container.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(e){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var e=this.editor;e.container.draggable=!0,e.renderer.$cursorLayer.setBlinking(!1),e.setStyle("ace_dragging");var t=o.isWin?"default":"move";e.renderer.setCursorStyle(t),this.setState("dragReady")},this.onMouseDrag=function(e){var t=this.editor.container;o.isIE&&"dragReady"==this.state&&(s(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)>3&&t.dragDrop());"dragWait"===this.state&&(s(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)>0&&(t.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition())))},this.onMouseDown=function(e){if(this.$dragEnabled){this.mousedownEvent=e;var t=this.editor,n=e.inSelection(),r=e.getButton();if(1===(e.domEvent.detail||1)&&0===r&&n){if(e.editor.inMultiSelectMode&&(e.getAccelKey()||e.getShiftKey()))return;this.mousedownEvent.time=Date.now();var i=e.domEvent.target||e.domEvent.srcElement;if("unselectable"in i&&(i.unselectable="on"),t.getDragDelay()){if(o.isWebKit)this.cancelDrag=!0,t.container.draggable=!0;this.setState("dragWait")}else this.startDrag();this.captureMouse(e,this.onMouseDrag.bind(this)),e.defaultPrevented=!0}}}}).call(a.prototype),t.DragdropHandler=a})),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],(function(e,t,n){"use strict";var r=e("./mouse_event").MouseEvent,i=e("../lib/event"),o=e("../lib/dom");t.addTouchListeners=function(e,t){var n,a,s,l,u,c,d,f,h,p="scroll",m=0,g=0,v=0,b=0;function y(){var e=window.navigator&&window.navigator.clipboard,n=!1,r=function(r){var i,a,s=r.target.getAttribute("action");if("more"==s||!n)return n=!n,i=t.getCopyText(),a=t.session.getUndoManager().hasUndo(),void h.replaceChild(o.buildDom(n?["span",!i&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],i&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],i&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],e&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],a&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],["span",{class:"ace_mobile-button",action:"find"},"Find"],["span",{class:"ace_mobile-button",action:"openCommandPallete"},"Palette"]]:["span"]),h.firstChild);"paste"==s?e.readText().then((function(e){t.execCommand(s,e)})):s&&("cut"!=s&&"copy"!=s||(e?e.writeText(t.getCopyText()):document.execCommand("copy")),t.execCommand(s)),h.firstChild.style.display="none",n=!1,"openCommandPallete"!=s&&t.focus()};h=o.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(e){p="menu",e.stopPropagation(),e.preventDefault(),t.textInput.focus()},ontouchend:function(e){e.stopPropagation(),e.preventDefault(),r(e)},onclick:r},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],t.container)}function _(){h||y();var e=t.selection.cursor,n=t.renderer.textToScreenCoordinates(e.row,e.column),r=t.renderer.textToScreenCoordinates(0,0).pageX,i=t.renderer.scrollLeft,o=t.container.getBoundingClientRect();h.style.top=n.pageY-o.top-3+"px",n.pageX-o.left<o.width-70?(h.style.left="",h.style.right="10px"):(h.style.right="",h.style.left=r+i-o.left+"px"),h.style.display="",h.firstChild.style.display="none",t.on("input",w)}function w(e){h&&(h.style.display="none"),t.off("input",w)}function x(){u=null,clearTimeout(u);var e=t.selection.getRange(),n=e.contains(d.row,d.column);!e.isEmpty()&&n||(t.selection.moveToPosition(d),t.selection.selectWord()),p="wait",_()}i.addListener(e,"contextmenu",(function(e){f&&t.textInput.getElement().focus()}),t),i.addListener(e,"touchstart",(function(e){var i=e.touches;if(u||i.length>1)return clearTimeout(u),u=null,s=-1,void(p="zoom");f=t.$mouseHandler.isMousePressed=!0;var o=t.renderer.layerConfig.lineHeight,c=t.renderer.layerConfig.lineHeight,h=e.timeStamp;l=h;var y=i[0],_=y.clientX,w=y.clientY;Math.abs(n-_)+Math.abs(a-w)>o&&(s=-1),n=e.clientX=_,a=e.clientY=w,v=b=0;var C=new r(e,t);if(d=C.getDocumentPosition(),h-s<500&&1==i.length&&!m)g++,e.preventDefault(),e.button=0,function(){u=null,clearTimeout(u),t.selection.moveToPosition(d);var e=g>=2?t.selection.getLineRange(d.row):t.session.getBracketRange(d);e&&!e.isEmpty()?t.selection.setRange(e):t.selection.selectWord(),p="wait"}();else{g=0;var E=t.selection.cursor,S=t.selection.isEmpty()?E:t.selection.anchor,T=t.renderer.$cursorLayer.getPixelPosition(E,!0),A=t.renderer.$cursorLayer.getPixelPosition(S,!0),k=t.renderer.scroller.getBoundingClientRect(),O=t.renderer.layerConfig.offset,I=t.renderer.scrollLeft,L=function(e,t){return(e/=c)*e+(t=t/o-.75)*t};if(e.clientX<k.left)return void(p="zoom");var R=L(e.clientX-k.left-T.left+I,e.clientY-k.top-T.top+O),M=L(e.clientX-k.left-A.left+I,e.clientY-k.top-A.top+O);R<3.5&&M<3.5&&(p=R>M?"cursor":"anchor"),p=M<3.5?"anchor":R<3.5?"cursor":"scroll",u=setTimeout(x,450)}s=h}),t),i.addListener(e,"touchend",(function(e){f=t.$mouseHandler.isMousePressed=!1,c&&clearInterval(c),"zoom"==p?(p="",m=0):u?(t.selection.moveToPosition(d),m=0,_()):"scroll"==p?(m+=60,c=setInterval((function(){m--<=0&&(clearInterval(c),c=null),Math.abs(v)<.01&&(v=0),Math.abs(b)<.01&&(b=0),m<20&&(v*=.9),m<20&&(b*=.9);var e=t.session.getScrollTop();t.renderer.scrollBy(10*v,10*b),e==t.session.getScrollTop()&&(m=0)}),10),w()):_(),clearTimeout(u),u=null}),t),i.addListener(e,"touchmove",(function(e){u&&(clearTimeout(u),u=null);var i=e.touches;if(!(i.length>1||"zoom"==p)){var o=i[0],s=n-o.clientX,c=a-o.clientY;if("wait"==p){if(!(s*s+c*c>4))return e.preventDefault();p="cursor"}n=o.clientX,a=o.clientY,e.clientX=o.clientX,e.clientY=o.clientY;var d=e.timeStamp,f=d-l;if(l=d,"scroll"==p){var h=new r(e,t);h.speed=1,h.wheelX=s,h.wheelY=c,10*Math.abs(s)<Math.abs(c)&&(s=0),10*Math.abs(c)<Math.abs(s)&&(c=0),0!=f&&(v=s/f,b=c/f),t._emit("mousewheel",h),h.propagationStopped||(v=b=0)}else{var m=new r(e,t).getDocumentPosition();"cursor"==p?t.selection.moveCursorToPosition(m):"anchor"==p&&t.selection.setSelectionAnchor(m.row,m.column),t.renderer.scrollCursorIntoView(m),e.preventDefault()}}}),t)}})),ace.define("ace/mouse/mouse_handler",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/mouse/default_handlers","ace/mouse/default_gutter_handler","ace/mouse/mouse_event","ace/mouse/dragdrop_handler","ace/mouse/touch_handler","ace/config"],(function(e,t,n){"use strict";var r=e("../lib/event"),i=e("../lib/useragent"),o=e("./default_handlers").DefaultHandlers,a=e("./default_gutter_handler").GutterHandler,s=e("./mouse_event").MouseEvent,l=e("./dragdrop_handler").DragdropHandler,u=e("./touch_handler").addTouchListeners,c=e("../config"),d=function(e){var t=this;this.editor=e,new o(this),new a(this),new l(this);var n=function(t){(!document.hasFocus||!document.hasFocus()||!e.isFocused()&&document.activeElement==(e.textInput&&e.textInput.getElement()))&&window.focus(),e.focus(),setTimeout((function(){e.isFocused()||e.focus()}))},s=e.renderer.getMouseEventTarget();r.addListener(s,"click",this.onMouseEvent.bind(this,"click"),e),r.addListener(s,"mousemove",this.onMouseMove.bind(this,"mousemove"),e),r.addMultiMouseDownListener([s,e.renderer.scrollBarV&&e.renderer.scrollBarV.inner,e.renderer.scrollBarH&&e.renderer.scrollBarH.inner,e.textInput&&e.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",e),r.addMouseWheelListener(e.container,this.onMouseWheel.bind(this,"mousewheel"),e),u(e.container,e);var c=e.renderer.$gutter;r.addListener(c,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),e),r.addListener(c,"click",this.onMouseEvent.bind(this,"gutterclick"),e),r.addListener(c,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),e),r.addListener(c,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),e),r.addListener(s,"mousedown",n,e),r.addListener(c,"mousedown",n,e),i.isIE&&e.renderer.scrollBarV&&(r.addListener(e.renderer.scrollBarV.element,"mousedown",n,e),r.addListener(e.renderer.scrollBarH.element,"mousedown",n,e)),e.on("mousemove",(function(n){if(!t.state&&!t.$dragDelay&&t.$dragEnabled){var r=e.renderer.screenToTextCoordinates(n.x,n.y),i=e.session.selection.getRange(),o=e.renderer;!i.isEmpty()&&i.insideStart(r.row,r.column)?o.setCursorStyle("default"):o.setCursorStyle("")}}),e)};(function(){this.onMouseEvent=function(e,t){this.editor.session&&this.editor._emit(e,new s(t,this.editor))},this.onMouseMove=function(e,t){var n=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;n&&n.length&&this.editor._emit(e,new s(t,this.editor))},this.onMouseWheel=function(e,t){var n=new s(t,this.editor);n.speed=2*this.$scrollSpeed,n.wheelX=t.wheelX,n.wheelY=t.wheelY,this.editor._emit(e,n)},this.setState=function(e){this.state=e},this.captureMouse=function(e,t){this.x=e.x,this.y=e.y,this.isMousePressed=!0;var n=this.editor,o=this.editor.renderer;o.$isMousePressed=!0;var a=this,l=function(e){if(e){if(i.isWebKit&&!e.which&&a.releaseMouse)return a.releaseMouse();a.x=e.clientX,a.y=e.clientY,t&&t(e),a.mouseEvent=new s(e,a.editor),a.$mouseMoved=!0}},u=function(e){n.off("beforeEndOperation",d),clearInterval(f),n.session&&c(),a[a.state+"End"]&&a[a.state+"End"](e),a.state="",a.isMousePressed=o.$isMousePressed=!1,o.$keepTextAreaAtCursor&&o.$moveTextAreaToCursor(),a.$onCaptureMouseMove=a.releaseMouse=null,e&&a.onMouseEvent("mouseup",e),n.endOperation()},c=function(){a[a.state]&&a[a.state](),a.$mouseMoved=!1};if(i.isOldIE&&"dblclick"==e.domEvent.type)return setTimeout((function(){u(e)}));var d=function(e){a.releaseMouse&&n.curOp.command.name&&n.curOp.selectionChanged&&(a[a.state+"End"]&&a[a.state+"End"](),a.state="",a.releaseMouse())};n.on("beforeEndOperation",d),n.startOperation({command:{name:"mouse"}}),a.$onCaptureMouseMove=l,a.releaseMouse=r.capture(this.editor.container,l,u);var f=setInterval(c,20)},this.releaseMouse=null,this.cancelContextMenu=function(){var e=function(t){t&&t.domEvent&&"contextmenu"!=t.domEvent.type||(this.editor.off("nativecontextmenu",e),t&&t.domEvent&&r.stopEvent(t.domEvent))}.bind(this);setTimeout(e,10),this.editor.on("nativecontextmenu",e)},this.destroy=function(){this.releaseMouse&&this.releaseMouse()}}).call(d.prototype),c.defineOptions(d.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:i.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),t.MouseHandler=d})),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";var r=e("../lib/dom");t.FoldHandler=function(e){e.on("click",(function(t){var n=t.getDocumentPosition(),i=e.session,o=i.getFoldAt(n.row,n.column,1);o&&(t.getAccelKey()?i.removeFold(o):i.expandFold(o),t.stop());var a=t.domEvent&&t.domEvent.target;a&&r.hasCssClass(a,"ace_inline_button")&&r.hasCssClass(a,"ace_toggle_wrap")&&(i.setOption("wrap",!i.getUseWrapMode()),e.renderer.scrollCursorIntoView())})),e.on("gutterclick",(function(t){if("foldWidgets"==e.renderer.$gutterLayer.getRegion(t)){var n=t.getDocumentPosition().row,r=e.session;r.foldWidgets&&r.foldWidgets[n]&&e.session.onFoldWidgetClick(n,t),e.isFocused()||e.focus(),t.stop()}})),e.on("gutterdblclick",(function(t){if("foldWidgets"==e.renderer.$gutterLayer.getRegion(t)){var n=t.getDocumentPosition().row,r=e.session,i=r.getParentFoldRangeData(n,!0),o=i.range||i.firstRange;if(o){n=o.start.row;var a=r.getFoldAt(n,r.getLine(n).length,1);a?r.removeFold(a):(r.addFold("...",o),e.renderer.scrollCursorIntoView({row:o.start.row,column:0}))}t.stop()}}))}})),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],(function(e,t,n){"use strict";var r=e("../lib/keys"),i=e("../lib/event"),o=function(e){this.$editor=e,this.$data={editor:e},this.$handlers=[],this.setDefaultHandler(e.commands)};(function(){this.setDefaultHandler=function(e){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=e,this.addKeyboardHandler(e,0)},this.setKeyboardHandler=function(e){var t=this.$handlers;if(t[t.length-1]!=e){for(;t[t.length-1]&&t[t.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(t[t.length-1]);this.addKeyboardHandler(e,1)}},this.addKeyboardHandler=function(e,t){if(e){"function"!=typeof e||e.handleKeyboard||(e.handleKeyboard=e);var n=this.$handlers.indexOf(e);-1!=n&&this.$handlers.splice(n,1),null==t?this.$handlers.push(e):this.$handlers.splice(t,0,e),-1==n&&e.attach&&e.attach(this.$editor)}},this.removeKeyboardHandler=function(e){var t=this.$handlers.indexOf(e);return-1!=t&&(this.$handlers.splice(t,1),e.detach&&e.detach(this.$editor),!0)},this.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},this.getStatusText=function(){var e=this.$data,t=e.editor;return this.$handlers.map((function(n){return n.getStatusText&&n.getStatusText(t,e)||""})).filter(Boolean).join(" ")},this.$callKeyboardHandlers=function(e,t,n,r){for(var o,a=!1,s=this.$editor.commands,l=this.$handlers.length;l--&&!((o=this.$handlers[l].handleKeyboard(this.$data,e,t,n,r))&&o.command&&((a="null"==o.command||s.exec(o.command,this.$editor,o.args,r))&&r&&-1!=e&&1!=o.passEvent&&1!=o.command.passEvent&&i.stopEvent(r),a)););return a||-1!=e||(o={command:"insertstring"},a=s.exec("insertstring",this.$editor,t)),a&&this.$editor._signal&&this.$editor._signal("keyboardActivity",o),a},this.onCommandKey=function(e,t,n){var i=r.keyCodeToString(n);return this.$callKeyboardHandlers(t,i,n,e)},this.onTextInput=function(e){return this.$callKeyboardHandlers(-1,e)}}).call(o.prototype),t.KeyBinding=o})),ace.define("ace/lib/bidiutil",["require","exports","module"],(function(e,t,n){"use strict";var r=0,i=0,o=!1,a=!1,s=!1,l=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],u=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],c=11,d=18,f=[d,d,d,d,d,d,d,d,d,6,5,6,8,5,d,d,d,d,d,d,d,d,d,d,d,d,d,d,5,5,5,6,8,4,4,c,c,c,4,4,4,4,4,10,9,10,9,9,2,2,2,2,2,2,2,2,2,2,9,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,d,d,d,d,d,d,5,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,9,4,c,c,c,c,4,4,4,4,0,4,4,d,4,4,c,c,2,2,4,0,4,4,4,2,0,4,4,4,4,4],h=[8,8,8,8,8,8,8,8,8,8,8,d,d,d,0,1,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8,5,13,14,15,16,17,9,c,c,c,c,c,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,9,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8];function p(e,t,n){if(!(i<e))if(1!=e||1!=r||a)for(var o,s,l,u,c=n.length,d=0;d<c;){if(t[d]>=e){for(o=d+1;o<c&&t[o]>=e;)o++;for(s=d,l=o-1;s<l;s++,l--)u=n[s],n[s]=n[l],n[l]=u;d=o}d++}else n.reverse()}function m(e,t,n,i){var l,u,f,h,p=t[i];switch(p){case 0:case 1:o=!1;case 4:case 3:return p;case 2:return o?3:2;case 7:return o=!0,!0,1;case 8:return 4;case 9:return i<1||i+1>=t.length||2!=(l=n[i-1])&&3!=l||2!=(u=t[i+1])&&3!=u?4:(o&&(u=3),u==l?u:4);case 10:return 2==(l=i>0?n[i-1]:5)&&i+1<t.length&&2==t[i+1]?2:4;case c:if(i>0&&2==n[i-1])return 2;if(o)return 4;for(h=i+1,f=t.length;h<f&&t[h]==c;)h++;return h<f&&2==t[h]?2:4;case 12:for(f=t.length,h=i+1;h<f&&12==t[h];)h++;if(h<f){var m=e[i],g=m>=1425&&m<=2303||64286==m;if(l=t[h],g&&(1==l||7==l))return 1}return i<1||5==(l=t[i-1])?4:n[i-1];case 5:return o=!1,a=!0,r;case 6:return s=!0,4;case 13:case 14:case 16:case 17:case 15:o=!1;case d:return 4}}function g(e){var t=e.charCodeAt(0),n=t>>8;return 0==n?t>191?0:f[t]:5==n?/[\u0591-\u05f4]/.test(e)?1:0:6==n?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(e)?12:/[\u0660-\u0669\u066b-\u066c]/.test(e)?3:1642==t?c:/[\u06f0-\u06f9]/.test(e)?2:7:32==n&&t<=8287?h[255&t]:254==n&&t>=65136?7:4}t.L=0,t.R=1,t.EN=2,t.ON_R=3,t.AN=4,t.R_H=5,t.B=6,t.RLE=7,t.DOT="·",t.doBidiReorder=function(e,n,c){if(e.length<2)return{};var f=e.split(""),h=new Array(f.length),v=new Array(f.length),b=[];r=c?1:0,function(e,t,n,c){var d=r?u:l,f=null,h=null,p=null,v=0,b=null,y=-1,_=null,w=null,x=[];if(!c)for(_=0,c=[];_<n;_++)c[_]=g(e[_]);for(i=r,o=!1,!1,a=!1,s=!1,w=0;w<n;w++){if(f=v,x[w]=h=m(e,c,x,w),b=240&(v=d[f][h]),v&=15,t[w]=p=d[v][5],b>0)if(16==b){for(_=y;_<w;_++)t[_]=1;y=-1}else y=-1;if(d[v][6])-1==y&&(y=w);else if(y>-1){for(_=y;_<w;_++)t[_]=p;y=-1}5==c[w]&&(t[w]=0),i|=p}if(s)for(_=0;_<n;_++)if(6==c[_]){t[_]=r;for(var C=_-1;C>=0&&8==c[C];C--)t[C]=r}}(f,b,f.length,n);for(var y=0;y<h.length;h[y]=y,y++);p(2,b,h),p(1,b,h);for(y=0;y<h.length-1;y++)3===n[y]?b[y]=t.AN:1===b[y]&&(n[y]>7&&n[y]<13||4===n[y]||n[y]===d)?b[y]=t.ON_R:y>0&&"ل"===f[y-1]&&/\u0622|\u0623|\u0625|\u0627/.test(f[y])&&(b[y-1]=b[y]=t.R_H,y++);f[f.length-1]===t.DOT&&(b[f.length-1]=t.B),"‫"===f[0]&&(b[0]=t.RLE);for(y=0;y<h.length;y++)v[y]=b[h[y]];return{logicalFromVisual:h,bidiLevels:v}},t.hasBidiCharacters=function(e,t){for(var n=!1,r=0;r<e.length;r++)t[r]=g(e.charAt(r)),n||1!=t[r]&&7!=t[r]&&3!=t[r]||(n=!0);return n},t.getVisualFromLogicalIdx=function(e,t){for(var n=0;n<t.logicalFromVisual.length;n++)if(t.logicalFromVisual[n]==e)return n;return 0}})),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],(function(e,t,n){"use strict";var r=e("./lib/bidiutil"),i=e("./lib/lang"),o=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,a=function(e){this.session=e,this.bidiMap={},this.currentRow=null,this.bidiUtil=r,this.charWidths=[],this.EOL="¬",this.showInvisibles=!0,this.isRtlDir=!1,this.$isRtl=!1,this.line="",this.wrapIndent=0,this.EOF="¶",this.RLE="‫",this.contentWidth=0,this.fontMetrics=null,this.rtlLineOffset=0,this.wrapOffset=0,this.isMoveLeftOperation=!1,this.seenBidi=o.test(e.getValue())};(function(){this.isBidiRow=function(e,t,n){return!!this.seenBidi&&(e!==this.currentRow&&(this.currentRow=e,this.updateRowLine(t,n),this.updateBidiMap()),this.bidiMap.bidiLevels)},this.onChange=function(e){this.seenBidi?this.currentRow=null:"insert"==e.action&&o.test(e.lines.join("\n"))&&(this.seenBidi=!0,this.currentRow=null)},this.getDocumentRow=function(){var e=0,t=this.session.$screenRowCache;if(t.length){var n=this.session.$getRowCacheIndex(t,this.currentRow);n>=0&&(e=this.session.$docRowCache[n])}return e},this.getSplitIndex=function(){var e=0,t=this.session.$screenRowCache;if(t.length)for(var n,r=this.session.$getRowCacheIndex(t,this.currentRow);this.currentRow-e>0&&(n=this.session.$getRowCacheIndex(t,this.currentRow-e-1))===r;)r=n,e++;else e=this.currentRow;return e},this.updateRowLine=function(e,t){void 0===e&&(e=this.getDocumentRow());var n=e===this.session.getLength()-1?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(e),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var o=this.session.$wrapData[e];o&&(void 0===t&&(t=this.getSplitIndex()),t>0&&o.length?(this.wrapIndent=o.indent,this.wrapOffset=this.wrapIndent*this.charWidths[r.L],this.line=t<o.length?this.line.substring(o[t-1],o[t]):this.line.substring(o[o.length-1])):this.line=this.line.substring(0,o[t]),t==o.length&&(this.line+=this.showInvisibles?n:r.DOT))}else this.line+=this.showInvisibles?n:r.DOT;var a,s=this.session,l=0;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,(function(e,t){return"\t"===e||s.isFullWidth(e.charCodeAt(0))?(a="\t"===e?s.getScreenTabSize(t+l):2,l+=a-1,i.stringRepeat(r.DOT,a)):e})),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==r.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},this.updateBidiMap=function(){var e=[];r.hasBidiCharacters(this.line,e)||this.isRtlDir?this.bidiMap=r.doBidiReorder(this.line,e,this.isRtlDir):this.bidiMap={}},this.markAsDirty=function(){this.currentRow=null},this.updateCharacterWidths=function(e){if(this.characterWidth!==e.$characterSize.width){this.fontMetrics=e;var t=this.characterWidth=e.$characterSize.width,n=e.$measureCharWidth("ה");this.charWidths[r.L]=this.charWidths[r.EN]=this.charWidths[r.ON_R]=t,this.charWidths[r.R]=this.charWidths[r.AN]=n,this.charWidths[r.R_H]=.45*n,this.charWidths[r.B]=this.charWidths[r.RLE]=0,this.currentRow=null}},this.setShowInvisibles=function(e){this.showInvisibles=e,this.currentRow=null},this.setEolChar=function(e){this.EOL=e},this.setContentWidth=function(e){this.contentWidth=e},this.isRtlLine=function(e){return!!this.$isRtl||(null!=e?this.session.getLine(e).charAt(0)==this.RLE:this.isRtlDir)},this.setRtlDirection=function(e,t){for(var n=e.getCursorPosition(),r=e.selection.getSelectionAnchor().row;r<=n.row;r++)t||e.session.getLine(r).charAt(0)!==e.session.$bidiHandler.RLE?t&&e.session.getLine(r).charAt(0)!==e.session.$bidiHandler.RLE&&e.session.doc.insert({column:0,row:r},e.session.$bidiHandler.RLE):e.session.doc.removeInLine(r,0,1)},this.getPosLeft=function(e){e-=this.wrapIndent;var t=this.line.charAt(0)===this.RLE?1:0,n=e>t?this.session.getOverwrite()?e:e-1:t,i=r.getVisualFromLogicalIdx(n,this.bidiMap),o=this.bidiMap.bidiLevels,a=0;!this.session.getOverwrite()&&e<=t&&o[i]%2!=0&&i++;for(var s=0;s<i;s++)a+=this.charWidths[o[s]];return!this.session.getOverwrite()&&e>t&&o[i]%2==0&&(a+=this.charWidths[o[i]]),this.wrapIndent&&(a+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(a+=this.rtlLineOffset),a},this.getSelections=function(e,t){var n,r=this.bidiMap,i=r.bidiLevels,o=[],a=0,s=Math.min(e,t)-this.wrapIndent,l=Math.max(e,t)-this.wrapIndent,u=!1,c=!1,d=0;this.wrapIndent&&(a+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var f,h=0;h<i.length;h++)f=r.logicalFromVisual[h],n=i[h],(u=f>=s&&f<l)&&!c?d=a:!u&&c&&o.push({left:d,width:a-d}),a+=this.charWidths[n],c=u;if(u&&h===i.length&&o.push({left:d,width:a-d}),this.isRtlDir)for(var p=0;p<o.length;p++)o[p].left+=this.rtlLineOffset;return o},this.offsetToCol=function(e){this.isRtlDir&&(e-=this.rtlLineOffset);var t=0,n=(e=Math.max(e,0),0),r=0,i=this.bidiMap.bidiLevels,o=this.charWidths[i[r]];for(this.wrapIndent&&(e-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);e>n+o/2;){if(n+=o,r===i.length-1){o=0;break}o=this.charWidths[i[++r]]}return r>0&&i[r-1]%2!=0&&i[r]%2==0?(e<n&&r--,t=this.bidiMap.logicalFromVisual[r]):r>0&&i[r-1]%2==0&&i[r]%2!=0?t=1+(e>n?this.bidiMap.logicalFromVisual[r]:this.bidiMap.logicalFromVisual[r-1]):this.isRtlDir&&r===i.length-1&&0===o&&i[r-1]%2==0||!this.isRtlDir&&0===r&&i[r]%2!=0?t=1+this.bidiMap.logicalFromVisual[r]:(r>0&&i[r-1]%2!=0&&0!==o&&r--,t=this.bidiMap.logicalFromVisual[r]),0===t&&this.isRtlDir&&t++,t+this.wrapIndent}}).call(a.prototype),t.BidiHandler=a})),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],(function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./lib/lang"),o=e("./lib/event_emitter").EventEmitter,a=e("./range").Range,s=function(e){this.session=e,this.doc=e.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var t=this;this.cursor.on("change",(function(e){t.$cursorChanged=!0,t.$silent||t._emit("changeCursor"),t.$isEmpty||t.$silent||t._emit("changeSelection"),t.$keepDesiredColumnOnChange||e.old.column==e.value.column||(t.$desiredColumn=null)})),this.anchor.on("change",(function(){t.$anchorChanged=!0,t.$isEmpty||t.$silent||t._emit("changeSelection")}))};(function(){r.implement(this,o),this.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},this.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},this.getCursor=function(){return this.lead.getPosition()},this.setSelectionAnchor=function(e,t){this.$isEmpty=!1,this.anchor.setPosition(e,t)},this.getAnchor=this.getSelectionAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},this.getSelectionLead=function(){return this.lead.getPosition()},this.isBackwards=function(){var e=this.anchor,t=this.lead;return e.row>t.row||e.row==t.row&&e.column>t.column},this.getRange=function(){var e=this.anchor,t=this.lead;return this.$isEmpty?a.fromPoints(t,t):this.isBackwards()?a.fromPoints(t,e):a.fromPoints(e,t)},this.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},this.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},this.setRange=this.setSelectionRange=function(e,t){var n=t?e.end:e.start,r=t?e.start:e.end;this.$setSelection(n.row,n.column,r.row,r.column)},this.$setSelection=function(e,t,n,r){if(!this.$silent){var i=this.$isEmpty,o=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(e,t),this.cursor.setPosition(n,r),this.$isEmpty=!a.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||i!=this.$isEmpty||o)&&this._emit("changeSelection")}},this.$moveSelection=function(e){var t=this.lead;this.$isEmpty&&this.setSelectionAnchor(t.row,t.column),e.call(this)},this.selectTo=function(e,t){this.$moveSelection((function(){this.moveCursorTo(e,t)}))},this.selectToPosition=function(e){this.$moveSelection((function(){this.moveCursorToPosition(e)}))},this.moveTo=function(e,t){this.clearSelection(),this.moveCursorTo(e,t)},this.moveToPosition=function(e){this.clearSelection(),this.moveCursorToPosition(e)},this.selectUp=function(){this.$moveSelection(this.moveCursorUp)},this.selectDown=function(){this.$moveSelection(this.moveCursorDown)},this.selectRight=function(){this.$moveSelection(this.moveCursorRight)},this.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},this.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},this.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},this.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},this.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},this.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},this.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},this.getWordRange=function(e,t){if(void 0===t){var n=e||this.lead;e=n.row,t=n.column}return this.session.getWordRange(e,t)},this.selectWord=function(){this.setSelectionRange(this.getWordRange())},this.selectAWord=function(){var e=this.getCursor(),t=this.session.getAWordRange(e.row,e.column);this.setSelectionRange(t)},this.getLineRange=function(e,t){var n,r="number"==typeof e?e:this.lead.row,i=this.session.getFoldLine(r);return i?(r=i.start.row,n=i.end.row):n=r,!0===t?new a(r,0,n,this.session.getLine(n).length):new a(r,0,n+1,0)},this.selectLine=function(){this.setSelectionRange(this.getLineRange())},this.moveCursorUp=function(){this.moveCursorBy(-1,0)},this.moveCursorDown=function(){this.moveCursorBy(1,0)},this.wouldMoveIntoSoftTab=function(e,t,n){var r=e.column,i=e.column+t;return n<0&&(r=e.column-t,i=e.column),this.session.isTabStop(e)&&this.doc.getLine(e.row).slice(r,i).split(" ").length-1==t},this.moveCursorLeft=function(){var e,t=this.lead.getPosition();if(e=this.session.getFoldAt(t.row,t.column,-1))this.moveCursorTo(e.start.row,e.start.column);else if(0===t.column)t.row>0&&this.moveCursorTo(t.row-1,this.doc.getLine(t.row-1).length);else{var n=this.session.getTabSize();this.wouldMoveIntoSoftTab(t,n,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-n):this.moveCursorBy(0,-1)}},this.moveCursorRight=function(){var e,t=this.lead.getPosition();if(e=this.session.getFoldAt(t.row,t.column,1))this.moveCursorTo(e.end.row,e.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row<this.doc.getLength()-1&&this.moveCursorTo(this.lead.row+1,0);else{var n=this.session.getTabSize();t=this.lead;this.wouldMoveIntoSoftTab(t,n,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,n):this.moveCursorBy(0,1)}},this.moveCursorLineStart=function(){var e=this.lead.row,t=this.lead.column,n=this.session.documentToScreenRow(e,t),r=this.session.screenToDocumentPosition(n,0),i=this.session.getDisplayLine(e,null,r.row,r.column).match(/^\s*/);i[0].length==t||this.session.$useEmacsStyleLineStart||(r.column+=i[0].length),this.moveCursorToPosition(r)},this.moveCursorLineEnd=function(){var e=this.lead,t=this.session.getDocumentLastRowColumnPosition(e.row,e.column);if(this.lead.column==t.column){var n=this.session.getLine(t.row);if(t.column==n.length){var r=n.search(/\s+$/);r>0&&(t.column=r)}}this.moveCursorTo(t.row,t.column)},this.moveCursorFileEnd=function(){var e=this.doc.getLength()-1,t=this.doc.getLine(e).length;this.moveCursorTo(e,t)},this.moveCursorFileStart=function(){this.moveCursorTo(0,0)},this.moveCursorLongWordRight=function(){var e=this.lead.row,t=this.lead.column,n=this.doc.getLine(e),r=n.substring(t);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var i=this.session.getFoldAt(e,t,1);if(i)this.moveCursorTo(i.end.row,i.end.column);else{if(this.session.nonTokenRe.exec(r)&&(t+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,r=n.substring(t)),t>=n.length)return this.moveCursorTo(e,n.length),this.moveCursorRight(),void(e<this.doc.getLength()-1&&this.moveCursorWordRight());this.session.tokenRe.exec(r)&&(t+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(e,t)}},this.moveCursorLongWordLeft=function(){var e,t=this.lead.row,n=this.lead.column;if(e=this.session.getFoldAt(t,n,-1))this.moveCursorTo(e.start.row,e.start.column);else{var r=this.session.getFoldStringAt(t,n,-1);null==r&&(r=this.doc.getLine(t).substring(0,n));var o=i.stringReverse(r);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(o)&&(n-=this.session.nonTokenRe.lastIndex,o=o.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),n<=0)return this.moveCursorTo(t,0),this.moveCursorLeft(),void(t>0&&this.moveCursorWordLeft());this.session.tokenRe.exec(o)&&(n-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(t,n)}},this.$shortWordEndIndex=function(e){var t,n=0,r=/\s/,i=this.session.tokenRe;if(i.lastIndex=0,this.session.tokenRe.exec(e))n=this.session.tokenRe.lastIndex;else{for(;(t=e[n])&&r.test(t);)n++;if(n<1)for(i.lastIndex=0;(t=e[n])&&!i.test(t);)if(i.lastIndex=0,n++,r.test(t)){if(n>2){n--;break}for(;(t=e[n])&&r.test(t);)n++;if(n>2)break}}return i.lastIndex=0,n},this.moveCursorShortWordRight=function(){var e=this.lead.row,t=this.lead.column,n=this.doc.getLine(e),r=n.substring(t),i=this.session.getFoldAt(e,t,1);if(i)return this.moveCursorTo(i.end.row,i.end.column);if(t==n.length){var o=this.doc.getLength();do{e++,r=this.doc.getLine(e)}while(e<o&&/^\s*$/.test(r));/^\s+/.test(r)||(r=""),t=0}var a=this.$shortWordEndIndex(r);this.moveCursorTo(e,t+a)},this.moveCursorShortWordLeft=function(){var e,t=this.lead.row,n=this.lead.column;if(e=this.session.getFoldAt(t,n,-1))return this.moveCursorTo(e.start.row,e.start.column);var r=this.session.getLine(t).substring(0,n);if(0===n){do{t--,r=this.doc.getLine(t)}while(t>0&&/^\s*$/.test(r));n=r.length,/\s+$/.test(r)||(r="")}var o=i.stringReverse(r),a=this.$shortWordEndIndex(o);return this.moveCursorTo(t,n-a)},this.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},this.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},this.moveCursorBy=function(e,t){var n,r=this.session.documentToScreenPosition(this.lead.row,this.lead.column);if(0===t&&(0!==e&&(this.session.$bidiHandler.isBidiRow(r.row,this.lead.row)?(n=this.session.$bidiHandler.getPosLeft(r.column),r.column=Math.round(n/this.session.$bidiHandler.charWidths[0])):n=r.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?r.column=this.$desiredColumn:this.$desiredColumn=r.column),0!=e&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var i=this.session.lineWidgets[this.lead.row];e<0?e-=i.rowsAbove||0:e>0&&(e+=i.rowCount-(i.rowsAbove||0))}var o=this.session.screenToDocumentPosition(r.row+e,r.column,n);0!==e&&0===t&&o.row===this.lead.row&&(o.column,this.lead.column),this.moveCursorTo(o.row,o.column+t,0===t)},this.moveCursorToPosition=function(e){this.moveCursorTo(e.row,e.column)},this.moveCursorTo=function(e,t,n){var r=this.session.getFoldAt(e,t,1);r&&(e=r.start.row,t=r.start.column),this.$keepDesiredColumnOnChange=!0;var i=this.session.getLine(e);/[\uDC00-\uDFFF]/.test(i.charAt(t))&&i.charAt(t-1)&&(this.lead.row==e&&this.lead.column==t+1?t-=1:t+=1),this.lead.setPosition(e,t),this.$keepDesiredColumnOnChange=!1,n||(this.$desiredColumn=null)},this.moveCursorToScreen=function(e,t,n){var r=this.session.screenToDocumentPosition(e,t);this.moveCursorTo(r.row,r.column,n)},this.detach=function(){this.lead.detach(),this.anchor.detach()},this.fromOrientedRange=function(e){this.setSelectionRange(e,e.cursor==e.start),this.$desiredColumn=e.desiredColumn||this.$desiredColumn},this.toOrientedRange=function(e){var t=this.getRange();return e?(e.start.column=t.start.column,e.start.row=t.start.row,e.end.column=t.end.column,e.end.row=t.end.row):e=t,e.cursor=this.isBackwards()?e.start:e.end,e.desiredColumn=this.$desiredColumn,e},this.getRangeOfMovements=function(e){var t=this.getCursor();try{e(this);var n=this.getCursor();return a.fromPoints(t,n)}catch(e){return a.fromPoints(t,t)}finally{this.moveCursorToPosition(t)}},this.toJSON=function(){if(this.rangeCount)var e=this.ranges.map((function(e){var t=e.clone();return t.isBackwards=e.cursor==e.start,t}));else(e=this.getRange()).isBackwards=this.isBackwards();return e},this.fromJSON=function(e){if(null==e.start){if(this.rangeList&&e.length>1){this.toSingleRange(e[0]);for(var t=e.length;t--;){var n=a.fromPoints(e[t].start,e[t].end);e[t].isBackwards&&(n.cursor=n.start),this.addRange(n,!0)}return}e=e[0]}this.rangeList&&this.toSingleRange(e),this.setSelectionRange(e,e.isBackwards)},this.isEqual=function(e){if((e.length||this.rangeCount)&&e.length!=this.rangeCount)return!1;if(!e.length||!this.ranges)return this.getRange().isEqual(e);for(var t=this.ranges.length;t--;)if(!this.ranges[t].isEqual(e[t]))return!1;return!0}}).call(s.prototype),t.Selection=s})),ace.define("ace/tokenizer",["require","exports","module","ace/config"],(function(e,t,n){"use strict";var r=e("./config"),i=2e3,o=function(e){for(var t in this.states=e,this.regExps={},this.matchMappings={},this.states){for(var n=this.states[t],r=[],i=0,o=this.matchMappings[t]={defaultToken:"text"},a="g",s=[],l=0;l<n.length;l++){var u=n[l];if(u.defaultToken&&(o.defaultToken=u.defaultToken),u.caseInsensitive&&-1===a.indexOf("i")&&(a+="i"),u.unicode&&-1===a.indexOf("u")&&(a+="u"),null!=u.regex){u.regex instanceof RegExp&&(u.regex=u.regex.toString().slice(1,-1));var c=u.regex,d=new RegExp("(?:("+c+")|(.))").exec("a").length-2;Array.isArray(u.token)?1==u.token.length||1==d?u.token=u.token[0]:d-1!=u.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:u,groupCount:d-1}),u.token=u.token[0]):(u.tokenArray=u.token,u.token=null,u.onMatch=this.$arrayTokens):"function"!=typeof u.token||u.onMatch||(u.onMatch=d>1?this.$applyToken:u.token),d>1&&(/\\\d/.test(u.regex)?c=u.regex.replace(/\\([0-9]+)/g,(function(e,t){return"\\"+(parseInt(t,10)+i+1)})):(d=1,c=this.removeCapturingGroups(u.regex)),u.splitRegex||"string"==typeof u.token||s.push(u)),o[i]=l,i+=d,r.push(c),u.onMatch||(u.onMatch=null)}}r.length||(o[0]=0,r.push("$")),s.forEach((function(e){e.splitRegex=this.createSplitterRegexp(e.regex,a)}),this),this.regExps[t]=new RegExp("("+r.join(")|(")+")|($)",a)}};(function(){this.$setMaxTokenCount=function(e){i=0|e},this.$applyToken=function(e){var t=this.splitRegex.exec(e).slice(1),n=this.token.apply(this,t);if("string"==typeof n)return[{type:n,value:e}];for(var r=[],i=0,o=n.length;i<o;i++)t[i]&&(r[r.length]={type:n[i],value:t[i]});return r},this.$arrayTokens=function(e){if(!e)return[];var t=this.splitRegex.exec(e);if(!t)return"text";for(var n=[],r=this.tokenArray,i=0,o=r.length;i<o;i++)t[i+1]&&(n[n.length]={type:r[i],value:t[i+1]});return n},this.removeCapturingGroups=function(e){return e.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,(function(e,t){return t?"(?:":e}))},this.createSplitterRegexp=function(e,t){if(-1!=e.indexOf("(?=")){var n=0,r=!1,i={};e.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,(function(e,t,o,a,s,l){return r?r="]"!=s:s?r=!0:a?(n==i.stack&&(i.end=l+1,i.stack=-1),n--):o&&(n++,1!=o.length&&(i.stack=n,i.start=l)),e})),null!=i.end&&/^\)*$/.test(e.substr(i.end))&&(e=e.substring(0,i.start)+e.substr(i.end))}return"^"!=e.charAt(0)&&(e="^"+e),"$"!=e.charAt(e.length-1)&&(e+="$"),new RegExp(e,(t||"").replace("g",""))},this.getLineTokens=function(e,t){if(t&&"string"!=typeof t){var n=t.slice(0);"#tmp"===(t=n[0])&&(n.shift(),t=n.shift())}else n=[];var r=t||"start",o=this.states[r];o||(r="start",o=this.states[r]);var a=this.matchMappings[r],s=this.regExps[r];s.lastIndex=0;for(var l,u=[],c=0,d=0,f={type:null,value:""};l=s.exec(e);){var h=a.defaultToken,p=null,m=l[0],g=s.lastIndex;if(g-m.length>c){var v=e.substring(c,g-m.length);f.type==h?f.value+=v:(f.type&&u.push(f),f={type:h,value:v})}for(var b=0;b<l.length-2;b++)if(void 0!==l[b+1]){h=(p=o[a[b]]).onMatch?p.onMatch(m,r,n,e):p.token,p.next&&(r="string"==typeof p.next?p.next:p.next(r,n),(o=this.states[r])||(this.reportError("state doesn't exist",r),r="start",o=this.states[r]),a=this.matchMappings[r],c=g,(s=this.regExps[r]).lastIndex=g),p.consumeLineEnd&&(c=g);break}if(m)if("string"==typeof h)p&&!1===p.merge||f.type!==h?(f.type&&u.push(f),f={type:h,value:m}):f.value+=m;else if(h){f.type&&u.push(f),f={type:null,value:""};for(b=0;b<h.length;b++)u.push(h[b])}if(c==e.length)break;if(c=g,d++>i){for(d>2*e.length&&this.reportError("infinite loop with in ace tokenizer",{startState:t,line:e});c<e.length;)f.type&&u.push(f),f={value:e.substring(c,c+=500),type:"overflow"};r="start",n=[];break}}return f.type&&u.push(f),n.length>1&&n[0]!==r&&n.unshift("#tmp",r),{tokens:u,state:n.length?n:r}},this.reportError=r.reportError}).call(o.prototype),t.Tokenizer=o})),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/lang"],(function(e,t,n){"use strict";var r=e("../lib/lang"),i=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(e,t){if(t)for(var n in e){for(var r=e[n],i=0;i<r.length;i++){var o=r[i];(o.next||o.onMatch)&&("string"==typeof o.next&&0!==o.next.indexOf(t)&&(o.next=t+o.next),o.nextState&&0!==o.nextState.indexOf(t)&&(o.nextState=t+o.nextState))}this.$rules[t+n]=r}else for(var n in e)this.$rules[n]=e[n]},this.getRules=function(){return this.$rules},this.embedRules=function(e,t,n,i,o){var a="function"==typeof e?(new e).getRules():e;if(i)for(var s=0;s<i.length;s++)i[s]=t+i[s];else for(var l in i=[],a)i.push(t+l);if(this.addRules(a,t),n){var u=Array.prototype[o?"push":"unshift"];for(s=0;s<i.length;s++)u.apply(this.$rules[i[s]],r.deepCopy(n))}this.$embeds||(this.$embeds=[]),this.$embeds.push(t)},this.getEmbeds=function(){return this.$embeds};var e=function(e,t){return("start"!=e||t.length)&&t.unshift(this.nextState,e),this.nextState},t=function(e,t){return t.shift(),t.shift()||"start"};this.normalizeRules=function(){var n=0,r=this.$rules;Object.keys(r).forEach((function i(o){var a=r[o];a.processed=!0;for(var s=0;s<a.length;s++){var l=a[s],u=null;Array.isArray(l)&&(u=l,l={}),!l.regex&&l.start&&(l.regex=l.start,l.next||(l.next=[]),l.next.push({defaultToken:l.token},{token:l.token+".end",regex:l.end||l.start,next:"pop"}),l.token=l.token+".start",l.push=!0);var c=l.next||l.push;if(c&&Array.isArray(c)){var d=l.stateName;d||("string"!=typeof(d=l.token)&&(d=d[0]||""),r[d]&&(d+=n++)),r[d]=c,l.next=d,i(d)}else"pop"==c&&(l.next=t);if(l.push&&(l.nextState=l.next||l.push,l.next=e,delete l.push),l.rules)for(var f in l.rules)r[f]?r[f].push&&r[f].push.apply(r[f],l.rules[f]):r[f]=l.rules[f];var h="string"==typeof l?l:l.include;if(h&&(u=Array.isArray(h)?h.map((function(e){return r[e]})):r[h]),u){var p=[s,1].concat(u);l.noEscape&&(p=p.filter((function(e){return!e.next}))),a.splice.apply(a,p),s--}l.keywordMap&&(l.token=this.createKeywordMapper(l.keywordMap,l.defaultToken||"text",l.caseInsensitive),delete l.defaultToken)}}),this)},this.createKeywordMapper=function(e,t,n,r){var i=Object.create(null);return this.$keywordList=[],Object.keys(e).forEach((function(t){for(var o=e[t].split(r||"|"),a=o.length;a--;){var s=o[a];this.$keywordList.push(s),n&&(s=s.toLowerCase()),i[s]=t}}),this),e=null,n?function(e){return i[e.toLowerCase()]||t}:function(e){return i[e]||t}},this.getKeywords=function(){return this.$keywords}}).call(i.prototype),t.TextHighlightRules=i})),ace.define("ace/mode/behaviour",["require","exports","module"],(function(e,t,n){"use strict";var r=function(){this.$behaviours={}};(function(){this.add=function(e,t,n){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[e]:this.$behaviours[e]={}}this.$behaviours[e][t]=n},this.addBehaviours=function(e){for(var t in e)for(var n in e[t])this.add(t,n,e[t][n])},this.remove=function(e){this.$behaviours&&this.$behaviours[e]&&delete this.$behaviours[e]},this.inherit=function(e,t){if("function"==typeof e)var n=(new e).getBehaviours(t);else n=e.getBehaviours(t);this.addBehaviours(n)},this.getBehaviours=function(e){if(e){for(var t={},n=0;n<e.length;n++)this.$behaviours[e[n]]&&(t[e[n]]=this.$behaviours[e[n]]);return t}return this.$behaviours}}).call(r.prototype),t.Behaviour=r})),ace.define("ace/token_iterator",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var r=e("./range").Range,i=function(e,t,n){this.$session=e,this.$row=t,this.$rowTokens=e.getTokens(t);var r=e.getTokenAt(t,n);this.$tokenIndex=r?r.index:-1};(function(){this.stepBackward=function(){for(this.$tokenIndex-=1;this.$tokenIndex<0;){if(this.$row-=1,this.$row<0)return this.$row=0,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=this.$rowTokens.length-1}return this.$rowTokens[this.$tokenIndex]},this.stepForward=function(){var e;for(this.$tokenIndex+=1;this.$tokenIndex>=this.$rowTokens.length;){if(this.$row+=1,e||(e=this.$session.getLength()),this.$row>=e)return this.$row=e-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},this.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},this.getCurrentTokenRow=function(){return this.$row},this.getCurrentTokenColumn=function(){var e=this.$rowTokens,t=this.$tokenIndex,n=e[t].start;if(void 0!==n)return n;for(n=0;t>0;)n+=e[t-=1].value.length;return n},this.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},this.getCurrentTokenRange=function(){var e=this.$rowTokens[this.$tokenIndex],t=this.getCurrentTokenColumn();return new r(this.$row,t,this.$row,t+e.value.length)}}).call(i.prototype),t.TokenIterator=i})),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],(function(e,t,n){"use strict";var r,i=e("../../lib/oop"),o=e("../behaviour").Behaviour,a=e("../../token_iterator").TokenIterator,s=e("../../lib/lang"),l=["text","paren.rparen","rparen","paren","punctuation.operator"],u=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],c={},d={'"':'"',"'":"'"},f=function(e){var t=-1;if(e.multiSelect&&(t=e.selection.index,c.rangeCount!=e.multiSelect.rangeCount&&(c={rangeCount:e.multiSelect.rangeCount})),c[t])return r=c[t];r=c[t]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},h=function(e,t,n,r){var i=e.end.row-e.start.row;return{text:n+t+r,selection:[0,e.start.column+1,i,e.end.column+(i?0:1)]}},p=function(e){this.add("braces","insertion",(function(t,n,i,o,a){var l=i.getCursorPosition(),u=o.doc.getLine(l.row);if("{"==a){f(i);var c=i.getSelectionRange(),d=o.doc.getTextRange(c);if(""!==d&&"{"!==d&&i.getWrapBehavioursEnabled())return h(c,d,"{","}");if(p.isSaneInsertion(i,o))return/[\]\}\)]/.test(u[l.column])||i.inMultiSelectMode||e&&e.braces?(p.recordAutoInsert(i,o,"}"),{text:"{}",selection:[1,1]}):(p.recordMaybeInsert(i,o,"{"),{text:"{",selection:[1,1]})}else if("}"==a){if(f(i),"}"==u.substring(l.column,l.column+1))if(null!==o.$findOpeningBracket("}",{column:l.column+1,row:l.row})&&p.isAutoInsertedClosing(l,u,a))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}else{if("\n"==a||"\r\n"==a){f(i);var m="";if(p.isMaybeInsertedClosing(l,u)&&(m=s.stringRepeat("}",r.maybeInsertedBrackets),p.clearMaybeInsertedClosing()),"}"===u.substring(l.column,l.column+1)){var g=o.findMatchingBracket({row:l.row,column:l.column+1},"}");if(!g)return null;var v=this.$getIndent(o.getLine(g.row))}else{if(!m)return void p.clearMaybeInsertedClosing();v=this.$getIndent(u)}var b=v+o.getTabString();return{text:"\n"+b+"\n"+v+m,selection:[1,b.length,1,b.length]}}p.clearMaybeInsertedClosing()}})),this.add("braces","deletion",(function(e,t,n,i,o){var a=i.doc.getTextRange(o);if(!o.isMultiLine()&&"{"==a){if(f(n),"}"==i.doc.getLine(o.start.row).substring(o.end.column,o.end.column+1))return o.end.column++,o;r.maybeInsertedBrackets--}})),this.add("parens","insertion",(function(e,t,n,r,i){if("("==i){f(n);var o=n.getSelectionRange(),a=r.doc.getTextRange(o);if(""!==a&&n.getWrapBehavioursEnabled())return h(o,a,"(",")");if(p.isSaneInsertion(n,r))return p.recordAutoInsert(n,r,")"),{text:"()",selection:[1,1]}}else if(")"==i){f(n);var s=n.getCursorPosition(),l=r.doc.getLine(s.row);if(")"==l.substring(s.column,s.column+1))if(null!==r.$findOpeningBracket(")",{column:s.column+1,row:s.row})&&p.isAutoInsertedClosing(s,l,i))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}})),this.add("parens","deletion",(function(e,t,n,r,i){var o=r.doc.getTextRange(i);if(!i.isMultiLine()&&"("==o&&(f(n),")"==r.doc.getLine(i.start.row).substring(i.start.column+1,i.start.column+2)))return i.end.column++,i})),this.add("brackets","insertion",(function(e,t,n,r,i){if("["==i){f(n);var o=n.getSelectionRange(),a=r.doc.getTextRange(o);if(""!==a&&n.getWrapBehavioursEnabled())return h(o,a,"[","]");if(p.isSaneInsertion(n,r))return p.recordAutoInsert(n,r,"]"),{text:"[]",selection:[1,1]}}else if("]"==i){f(n);var s=n.getCursorPosition(),l=r.doc.getLine(s.row);if("]"==l.substring(s.column,s.column+1))if(null!==r.$findOpeningBracket("]",{column:s.column+1,row:s.row})&&p.isAutoInsertedClosing(s,l,i))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}})),this.add("brackets","deletion",(function(e,t,n,r,i){var o=r.doc.getTextRange(i);if(!i.isMultiLine()&&"["==o&&(f(n),"]"==r.doc.getLine(i.start.row).substring(i.start.column+1,i.start.column+2)))return i.end.column++,i})),this.add("string_dquotes","insertion",(function(e,t,n,r,i){var o=r.$mode.$quotes||d;if(1==i.length&&o[i]){if(this.lineCommentStart&&-1!=this.lineCommentStart.indexOf(i))return;f(n);var a=i,s=n.getSelectionRange(),l=r.doc.getTextRange(s);if(!(""===l||1==l.length&&o[l])&&n.getWrapBehavioursEnabled())return h(s,l,a,a);if(!l){var u=n.getCursorPosition(),c=r.doc.getLine(u.row),p=c.substring(u.column-1,u.column),m=c.substring(u.column,u.column+1),g=r.getTokenAt(u.row,u.column),v=r.getTokenAt(u.row,u.column+1);if("\\"==p&&g&&/escape/.test(g.type))return null;var b,y=g&&/string|escape/.test(g.type),_=!v||/string|escape/.test(v.type);if(m==a)(b=y!==_)&&/string\.end/.test(v.type)&&(b=!1);else{if(y&&!_)return null;if(y&&_)return null;var w=r.$mode.tokenRe;w.lastIndex=0;var x=w.test(p);w.lastIndex=0;var C=w.test(p);if(x||C)return null;if(m&&!/[\s;,.})\]\\]/.test(m))return null;var E=c[u.column-2];if(p==a&&(E==a||w.test(E)))return null;b=!0}return{text:b?a+a:"",selection:[1,1]}}}})),this.add("string_dquotes","deletion",(function(e,t,n,r,i){var o=r.$mode.$quotes||d,a=r.doc.getTextRange(i);if(!i.isMultiLine()&&o.hasOwnProperty(a)&&(f(n),r.doc.getLine(i.start.row).substring(i.start.column+1,i.start.column+2)==a))return i.end.column++,i}))};p.isSaneInsertion=function(e,t){var n=e.getCursorPosition(),r=new a(t,n.row,n.column);if(!this.$matchTokenType(r.getCurrentToken()||"text",l)){if(/[)}\]]/.test(e.session.getLine(n.row)[n.column]))return!0;var i=new a(t,n.row,n.column+1);if(!this.$matchTokenType(i.getCurrentToken()||"text",l))return!1}return r.stepForward(),r.getCurrentTokenRow()!==n.row||this.$matchTokenType(r.getCurrentToken()||"text",u)},p.$matchTokenType=function(e,t){return t.indexOf(e.type||e)>-1},p.recordAutoInsert=function(e,t,n){var i=e.getCursorPosition(),o=t.doc.getLine(i.row);this.isAutoInsertedClosing(i,o,r.autoInsertedLineEnd[0])||(r.autoInsertedBrackets=0),r.autoInsertedRow=i.row,r.autoInsertedLineEnd=n+o.substr(i.column),r.autoInsertedBrackets++},p.recordMaybeInsert=function(e,t,n){var i=e.getCursorPosition(),o=t.doc.getLine(i.row);this.isMaybeInsertedClosing(i,o)||(r.maybeInsertedBrackets=0),r.maybeInsertedRow=i.row,r.maybeInsertedLineStart=o.substr(0,i.column)+n,r.maybeInsertedLineEnd=o.substr(i.column),r.maybeInsertedBrackets++},p.isAutoInsertedClosing=function(e,t,n){return r.autoInsertedBrackets>0&&e.row===r.autoInsertedRow&&n===r.autoInsertedLineEnd[0]&&t.substr(e.column)===r.autoInsertedLineEnd},p.isMaybeInsertedClosing=function(e,t){return r.maybeInsertedBrackets>0&&e.row===r.maybeInsertedRow&&t.substr(e.column)===r.maybeInsertedLineEnd&&t.substr(0,e.column)==r.maybeInsertedLineStart},p.popAutoInsertedClosing=function(){r.autoInsertedLineEnd=r.autoInsertedLineEnd.substr(1),r.autoInsertedBrackets--},p.clearMaybeInsertedClosing=function(){r&&(r.maybeInsertedBrackets=0,r.maybeInsertedRow=-1)},i.inherits(p,o),t.CstyleBehaviour=p})),ace.define("ace/unicode",["require","exports","module"],(function(e,t,n){"use strict";for(var r=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],i=0,o=[],a=0;a<r.length;a+=2)o.push(i+=r[a]),r[a+1]&&o.push(45,i+=r[a+1]);t.wordChars=String.fromCharCode.apply(null,o)})),ace.define("ace/mode/text",["require","exports","module","ace/config","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/behaviour/cstyle","ace/unicode","ace/lib/lang","ace/token_iterator","ace/range"],(function(e,t,n){"use strict";var r=e("../config"),i=e("../tokenizer").Tokenizer,o=e("./text_highlight_rules").TextHighlightRules,a=e("./behaviour/cstyle").CstyleBehaviour,s=e("../unicode"),l=e("../lib/lang"),u=e("../token_iterator").TokenIterator,c=e("../range").Range,d=function(){this.HighlightRules=o};(function(){this.$defaultBehaviour=new a,this.tokenRe=new RegExp("^["+s.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+s.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new i(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(e,t,n,r){var i=t.doc,o=!0,a=!0,s=1/0,u=t.getTabSize(),c=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))m=this.lineCommentStart.map(l.escapeRegExp).join("|"),h=this.lineCommentStart[0];else m=l.escapeRegExp(this.lineCommentStart),h=this.lineCommentStart;m=new RegExp("^(\\s*)(?:"+m+") ?"),c=t.getUseSoftTabs();b=function(e,t){var n=e.match(m);if(n){var r=n[1].length,o=n[0].length;f(e,r,o)||" "!=n[0][o-1]||o--,i.removeInLine(t,r,o)}};var d=h+" ",f=(v=function(e,t){o&&!/\S/.test(e)||(f(e,s,s)?i.insertInLine({row:t,column:s},d):i.insertInLine({row:t,column:s},h))},y=function(e,t){return m.test(e)},function(e,t,n){for(var r=0;t--&&" "==e.charAt(t);)r++;if(r%u!=0)return!1;for(r=0;" "==e.charAt(n++);)r++;return u>2?r%u!=u-1:r%u==0})}else{if(!this.blockComment)return!1;var h=this.blockComment.start,p=this.blockComment.end,m=new RegExp("^(\\s*)(?:"+l.escapeRegExp(h)+")"),g=new RegExp("(?:"+l.escapeRegExp(p)+")\\s*$"),v=function(e,t){y(e,t)||o&&!/\S/.test(e)||(i.insertInLine({row:t,column:e.length},p),i.insertInLine({row:t,column:s},h))},b=function(e,t){var n;(n=e.match(g))&&i.removeInLine(t,e.length-n[0].length,e.length),(n=e.match(m))&&i.removeInLine(t,n[1].length,n[0].length)},y=function(e,n){if(m.test(e))return!0;for(var r=t.getTokens(n),i=0;i<r.length;i++)if("comment"===r[i].type)return!0}}function _(e){for(var t=n;t<=r;t++)e(i.getLine(t),t)}var w=1/0;_((function(e,t){var n=e.search(/\S/);-1!==n?(n<s&&(s=n),a&&!y(e,t)&&(a=!1)):w>e.length&&(w=e.length)})),s==1/0&&(s=w,o=!1,a=!1),c&&s%u!=0&&(s=Math.floor(s/u)*u),_(a?b:v)},this.toggleBlockComment=function(e,t,n,r){var i=this.blockComment;if(i){!i.start&&i[0]&&(i=i[0]);var o,a,s=(m=new u(t,r.row,r.column)).getCurrentToken(),l=(t.selection,t.selection.toOrientedRange());if(s&&/comment/.test(s.type)){for(var d,f;s&&/comment/.test(s.type);){if(-1!=(g=s.value.indexOf(i.start))){var h=m.getCurrentTokenRow(),p=m.getCurrentTokenColumn()+g;d=new c(h,p,h,p+i.start.length);break}s=m.stepBackward()}var m;for(s=(m=new u(t,r.row,r.column)).getCurrentToken();s&&/comment/.test(s.type);){var g;if(-1!=(g=s.value.indexOf(i.end))){h=m.getCurrentTokenRow(),p=m.getCurrentTokenColumn()+g;f=new c(h,p,h,p+i.end.length);break}s=m.stepForward()}f&&t.remove(f),d&&(t.remove(d),o=d.start.row,a=-i.start.length)}else a=i.start.length,o=n.start.row,t.insert(n.end,i.end),t.insert(n.start,i.start);l.start.row==o&&(l.start.column+=a),l.end.row==o&&(l.end.column+=a),t.selection.fromOrientedRange(l)}},this.getNextLineIndent=function(e,t,n){return this.$getIndent(t)},this.checkOutdent=function(e,t,n){return!1},this.autoOutdent=function(e,t,n){},this.$getIndent=function(e){return e.match(/^\s*/)[0]},this.createWorker=function(e){return null},this.createModeDelegates=function(e){for(var t in this.$embeds=[],this.$modes={},e)if(e[t]){var n=e[t],i=n.prototype.$id,o=r.$modes[i];o||(r.$modes[i]=o=new n),r.$modes[t]||(r.$modes[t]=o),this.$embeds.push(t),this.$modes[t]=o}var a=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"];for(t=0;t<a.length;t++)!function(e){var n=a[t],r=e[n];e[a[t]]=function(){return this.$delegator(n,arguments,r)}}(this)},this.$delegator=function(e,t,n){var r=t[0]||"start";if("string"!=typeof r){if(Array.isArray(r[2])){var i=r[2][r[2].length-1];if(a=this.$modes[i])return a[e].apply(a,[r[1]].concat([].slice.call(t,1)))}r=r[0]||"start"}for(var o=0;o<this.$embeds.length;o++)if(this.$modes[this.$embeds[o]]){var a,s=r.split(this.$embeds[o]);if(!s[0]&&s[1])return t[0]=s[1],(a=this.$modes[this.$embeds[o]])[e].apply(a,t)}var l=n.apply(this,t);return n?l:void 0},this.transformAction=function(e,t,n,r,i){if(this.$behaviour){var o=this.$behaviour.getBehaviours();for(var a in o)if(o[a][t]){var s=o[a][t].apply(this,arguments);if(s)return s}}},this.getKeywords=function(e){if(!this.completionKeywords){var t=this.$tokenizer.rules,n=[];for(var r in t)for(var i=t[r],o=0,a=i.length;o<a;o++)if("string"==typeof i[o].token)/keyword|support|storage/.test(i[o].token)&&n.push(i[o].regex);else if("object"==typeof i[o].token)for(var s=0,l=i[o].token.length;s<l;s++)if(/keyword|support|storage/.test(i[o].token[s])){r=i[o].regex.match(/\(.+?\)/g)[s];n.push(r.substr(1,r.length-2))}this.completionKeywords=n}return e?n.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(e,t,n,r){return(this.$keywordList||this.$createKeywordList()).map((function(e){return{name:e,value:e,score:0,meta:"keyword"}}))},this.$id="ace/mode/text"}).call(d.prototype),t.Mode=d})),ace.define("ace/apply_delta",["require","exports","module"],(function(e,t,n){"use strict";t.applyDelta=function(e,t,n){var r=t.start.row,i=t.start.column,o=e[r]||"";switch(t.action){case"insert":if(1===t.lines.length)e[r]=o.substring(0,i)+t.lines[0]+o.substring(i);else{var a=[r,1].concat(t.lines);e.splice.apply(e,a),e[r]=o.substring(0,i)+e[r],e[r+t.lines.length-1]+=o.substring(i)}break;case"remove":var s=t.end.column,l=t.end.row;r===l?e[r]=o.substring(0,i)+o.substring(s):e.splice(r,l-r+1,o.substring(0,i)+e[l].substring(s))}}})),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],(function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./lib/event_emitter").EventEmitter,o=t.Anchor=function(e,t,n){this.$onChange=this.onChange.bind(this),this.attach(e),void 0===n?this.setPosition(t.row,t.column):this.setPosition(t,n)};(function(){function e(e,t,n){var r=n?e.column<=t.column:e.column<t.column;return e.row<t.row||e.row==t.row&&r}r.implement(this,i),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(t){if(!(t.start.row==t.end.row&&t.start.row!=this.row||t.start.row>this.row)){var n=function(t,n,r){var i="insert"==t.action,o=(i?1:-1)*(t.end.row-t.start.row),a=(i?1:-1)*(t.end.column-t.start.column),s=t.start,l=i?s:t.end;if(e(n,s,r))return{row:n.row,column:n.column};if(e(l,n,!r))return{row:n.row+o,column:n.column+(n.row==l.row?a:0)};return{row:s.row,column:s.column}}(t,{row:this.row,column:this.column},this.$insertRight);this.setPosition(n.row,n.column,!0)}},this.setPosition=function(e,t,n){var r;if(r=n?{row:e,column:t}:this.$clipPositionToDocument(e,t),this.row!=r.row||this.column!=r.column){var i={row:this.row,column:this.column};this.row=r.row,this.column=r.column,this._signal("change",{old:i,value:r})}},this.detach=function(){this.document.off("change",this.$onChange)},this.attach=function(e){this.document=e||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(e,t){var n={};return e>=this.document.getLength()?(n.row=Math.max(0,this.document.getLength()-1),n.column=this.document.getLine(n.row).length):e<0?(n.row=0,n.column=0):(n.row=e,n.column=Math.min(this.document.getLine(n.row).length,Math.max(0,t))),t<0&&(n.column=0),n}}).call(o.prototype)})),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],(function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./apply_delta").applyDelta,o=e("./lib/event_emitter").EventEmitter,a=e("./range").Range,s=e("./anchor").Anchor,l=function(e){this.$lines=[""],0===e.length?this.$lines=[""]:Array.isArray(e)?this.insertMergedLines({row:0,column:0},e):this.insert({row:0,column:0},e)};(function(){r.implement(this,o),this.setValue=function(e){var t=this.getLength()-1;this.remove(new a(0,0,t,this.getLine(t).length)),this.insert({row:0,column:0},e||"")},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(e,t){return new s(this,e,t)},0==="aaa".split(/a/).length?this.$split=function(e){return e.replace(/\r\n|\r/g,"\n").split("\n")}:this.$split=function(e){return e.split(/\r\n|\r|\n/)},this.$detectNewLine=function(e){var t=e.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=t?t[1]:"\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\r\n";case"unix":return"\n";default:return this.$autoNewLine||"\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(e){this.$newLineMode!==e&&(this.$newLineMode=e,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(e){return"\r\n"==e||"\r"==e||"\n"==e},this.getLine=function(e){return this.$lines[e]||""},this.getLines=function(e,t){return this.$lines.slice(e,t+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(e){return this.getLinesForRange(e).join(this.getNewLineCharacter())},this.getLinesForRange=function(e){var t;if(e.start.row===e.end.row)t=[this.getLine(e.start.row).substring(e.start.column,e.end.column)];else{(t=this.getLines(e.start.row,e.end.row))[0]=(t[0]||"").substring(e.start.column);var n=t.length-1;e.end.row-e.start.row==n&&(t[n]=t[n].substring(0,e.end.column))}return t},this.insertLines=function(e,t){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(e,t)},this.removeLines=function(e,t){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(e,t)},this.insertNewLine=function(e){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(e,["",""])},this.insert=function(e,t){return this.getLength()<=1&&this.$detectNewLine(t),this.insertMergedLines(e,this.$split(t))},this.insertInLine=function(e,t){var n=this.clippedPos(e.row,e.column),r=this.pos(e.row,e.column+t.length);return this.applyDelta({start:n,end:r,action:"insert",lines:[t]},!0),this.clonePos(r)},this.clippedPos=function(e,t){var n=this.getLength();void 0===e?e=n:e<0?e=0:e>=n&&(e=n-1,t=void 0);var r=this.getLine(e);return null==t&&(t=r.length),{row:e,column:t=Math.min(Math.max(t,0),r.length)}},this.clonePos=function(e){return{row:e.row,column:e.column}},this.pos=function(e,t){return{row:e,column:t}},this.$clipPosition=function(e){var t=this.getLength();return e.row>=t?(e.row=Math.max(0,t-1),e.column=this.getLine(t-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},this.insertFullLines=function(e,t){var n=0;(e=Math.min(Math.max(e,0),this.getLength()))<this.getLength()?(t=t.concat([""]),n=0):(t=[""].concat(t),e--,n=this.$lines[e].length),this.insertMergedLines({row:e,column:n},t)},this.insertMergedLines=function(e,t){var n=this.clippedPos(e.row,e.column),r={row:n.row+t.length-1,column:(1==t.length?n.column:0)+t[t.length-1].length};return this.applyDelta({start:n,end:r,action:"insert",lines:t}),this.clonePos(r)},this.remove=function(e){var t=this.clippedPos(e.start.row,e.start.column),n=this.clippedPos(e.end.row,e.end.column);return this.applyDelta({start:t,end:n,action:"remove",lines:this.getLinesForRange({start:t,end:n})}),this.clonePos(t)},this.removeInLine=function(e,t,n){var r=this.clippedPos(e,t),i=this.clippedPos(e,n);return this.applyDelta({start:r,end:i,action:"remove",lines:this.getLinesForRange({start:r,end:i})},!0),this.clonePos(r)},this.removeFullLines=function(e,t){e=Math.min(Math.max(0,e),this.getLength()-1);var n=(t=Math.min(Math.max(0,t),this.getLength()-1))==this.getLength()-1&&e>0,r=t<this.getLength()-1,i=n?e-1:e,o=n?this.getLine(i).length:0,s=r?t+1:t,l=r?0:this.getLine(s).length,u=new a(i,o,s,l),c=this.$lines.slice(e,t+1);return this.applyDelta({start:u.start,end:u.end,action:"remove",lines:this.getLinesForRange(u)}),c},this.removeNewLine=function(e){e<this.getLength()-1&&e>=0&&this.applyDelta({start:this.pos(e,this.getLine(e).length),end:this.pos(e+1,0),action:"remove",lines:["",""]})},this.replace=function(e,t){return e instanceof a||(e=a.fromPoints(e.start,e.end)),0===t.length&&e.isEmpty()?e.start:t==this.getTextRange(e)?e.end:(this.remove(e),t?this.insert(e.start,t):e.start)},this.applyDeltas=function(e){for(var t=0;t<e.length;t++)this.applyDelta(e[t])},this.revertDeltas=function(e){for(var t=e.length-1;t>=0;t--)this.revertDelta(e[t])},this.applyDelta=function(e,t){var n="insert"==e.action;(n?e.lines.length<=1&&!e.lines[0]:!a.comparePoints(e.start,e.end))||(n&&e.lines.length>2e4?this.$splitAndapplyLargeDelta(e,2e4):(i(this.$lines,e,t),this._signal("change",e)))},this.$safeApplyDelta=function(e){var t=this.$lines.length;("remove"==e.action&&e.start.row<t&&e.end.row<t||"insert"==e.action&&e.start.row<=t)&&this.applyDelta(e)},this.$splitAndapplyLargeDelta=function(e,t){for(var n=e.lines,r=n.length-t+1,i=e.start.row,o=e.start.column,a=0,s=0;a<r;a=s){s+=t-1;var l=n.slice(a,s);l.push(""),this.applyDelta({start:this.pos(i+a,o),end:this.pos(i+s,o=0),action:e.action,lines:l},!0)}e.lines=n.slice(a),e.start.row=i+a,e.start.column=o,this.applyDelta(e,!0)},this.revertDelta=function(e){this.$safeApplyDelta({start:this.clonePos(e.start),end:this.clonePos(e.end),action:"insert"==e.action?"remove":"insert",lines:e.lines.slice()})},this.indexToPosition=function(e,t){for(var n=this.$lines||this.getAllLines(),r=this.getNewLineCharacter().length,i=t||0,o=n.length;i<o;i++)if((e-=n[i].length+r)<0)return{row:i,column:e+n[i].length+r};return{row:o-1,column:e+n[o-1].length+r}},this.positionToIndex=function(e,t){for(var n=this.$lines||this.getAllLines(),r=this.getNewLineCharacter().length,i=0,o=Math.min(e.row,n.length),a=t||0;a<o;++a)i+=n[a].length+r;return i+e.column}}).call(l.prototype),t.Document=l})),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],(function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./lib/event_emitter").EventEmitter,o=function(e,t){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=e;var n=this;this.$worker=function(){if(n.running){for(var e=new Date,t=n.currentLine,r=-1,i=n.doc,o=t;n.lines[t];)t++;var a=i.getLength(),s=0;for(n.running=!1;t<a;){n.$tokenizeRow(t),r=t;do{t++}while(n.lines[t]);if(++s%5==0&&new Date-e>20){n.running=setTimeout(n.$worker,20);break}}n.currentLine=t,-1==r&&(r=t),o<=r&&n.fireUpdateEvent(o,r)}}};(function(){r.implement(this,i),this.setTokenizer=function(e){this.tokenizer=e,this.lines=[],this.states=[],this.start(0)},this.setDocument=function(e){this.doc=e,this.lines=[],this.states=[],this.stop()},this.fireUpdateEvent=function(e,t){var n={first:e,last:t};this._signal("update",{data:n})},this.start=function(e){this.currentLine=Math.min(e||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},this.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},this.$updateOnChange=function(e){var t=e.start.row,n=e.end.row-t;if(0===n)this.lines[t]=null;else if("remove"==e.action)this.lines.splice(t,n+1,null),this.states.splice(t,n+1,null);else{var r=Array(n+1);r.unshift(t,1),this.lines.splice.apply(this.lines,r),this.states.splice.apply(this.states,r)}this.currentLine=Math.min(t,this.currentLine,this.doc.getLength()),this.stop()},this.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},this.getTokens=function(e){return this.lines[e]||this.$tokenizeRow(e)},this.getState=function(e){return this.currentLine==e&&this.$tokenizeRow(e),this.states[e]||"start"},this.$tokenizeRow=function(e){var t=this.doc.getLine(e),n=this.states[e-1],r=this.tokenizer.getLineTokens(t,n,e);return this.states[e]+""!=r.state+""?(this.states[e]=r.state,this.lines[e+1]=null,this.currentLine>e+1&&(this.currentLine=e+1)):this.currentLine==e&&(this.currentLine=e+1),this.lines[e]=r.tokens},this.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()}}).call(o.prototype),t.BackgroundTokenizer=o})),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],(function(e,t,n){"use strict";var r=e("./lib/lang"),i=(e("./lib/oop"),e("./range").Range),o=function(e,t,n){this.setRegexp(e),this.clazz=t,this.type=n||"text"};(function(){this.MAX_RANGES=500,this.setRegexp=function(e){this.regExp+""!=e+""&&(this.regExp=e,this.cache=[])},this.update=function(e,t,n,o){if(this.regExp)for(var a=o.firstRow,s=o.lastRow,l={},u=a;u<=s;u++){var c=this.cache[u];null==c&&((c=r.getMatchOffsets(n.getLine(u),this.regExp)).length>this.MAX_RANGES&&(c=c.slice(0,this.MAX_RANGES)),c=c.map((function(e){return new i(u,e.offset,u,e.offset+e.length)})),this.cache[u]=c.length?c:"");for(var d=c.length;d--;){var f=c[d].toScreenRange(n),h=f.toString();l[h]||(l[h]=!0,t.drawSingleLineMarker(e,f,this.clazz,o))}}}}).call(o.prototype),t.SearchHighlight=o})),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var r=e("../range").Range;function i(e,t){this.foldData=e,Array.isArray(t)?this.folds=t:t=this.folds=[t];var n=t[t.length-1];this.range=new r(t[0].start.row,t[0].start.column,n.end.row,n.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach((function(e){e.setFoldLine(this)}),this)}(function(){this.shiftRow=function(e){this.start.row+=e,this.end.row+=e,this.folds.forEach((function(t){t.start.row+=e,t.end.row+=e}))},this.addFold=function(e){if(e.sameRow){if(e.start.row<this.startRow||e.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(e),this.folds.sort((function(e,t){return-e.range.compareEnd(t.start.row,t.start.column)})),this.range.compareEnd(e.start.row,e.start.column)>0?(this.end.row=e.end.row,this.end.column=e.end.column):this.range.compareStart(e.end.row,e.end.column)<0&&(this.start.row=e.start.row,this.start.column=e.start.column)}else if(e.start.row==this.end.row)this.folds.push(e),this.end.row=e.end.row,this.end.column=e.end.column;else{if(e.end.row!=this.start.row)throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");this.folds.unshift(e),this.start.row=e.start.row,this.start.column=e.start.column}e.foldLine=this},this.containsRow=function(e){return e>=this.start.row&&e<=this.end.row},this.walk=function(e,t,n){var r,i,o=0,a=this.folds,s=!0;null==t&&(t=this.end.row,n=this.end.column);for(var l=0;l<a.length;l++){if(-1==(i=(r=a[l]).range.compareStart(t,n)))return void e(null,t,n,o,s);if(!e(null,r.start.row,r.start.column,o,s)&&e(r.placeholder,r.start.row,r.start.column,o)||0===i)return;s=!r.sameRow,o=r.end.column}e(null,t,n,o,s)},this.getNextFoldTo=function(e,t){for(var n,r,i=0;i<this.folds.length;i++){if(-1==(r=(n=this.folds[i]).range.compareEnd(e,t)))return{fold:n,kind:"after"};if(0===r)return{fold:n,kind:"inside"}}return null},this.addRemoveChars=function(e,t,n){var r,i,o=this.getNextFoldTo(e,t);if(o)if(r=o.fold,"inside"==o.kind&&r.start.column!=t&&r.start.row!=e)window.console&&window.console.log(e,t,r);else if(r.start.row==e){var a=(i=this.folds).indexOf(r);for(0===a&&(this.start.column+=n);a<i.length;a++){if((r=i[a]).start.column+=n,!r.sameRow)return;r.end.column+=n}this.end.column+=n}},this.split=function(e,t){var n=this.getNextFoldTo(e,t);if(!n||"inside"==n.kind)return null;var r=n.fold,o=this.folds,a=this.foldData,s=o.indexOf(r),l=o[s-1];this.end.row=l.end.row,this.end.column=l.end.column;var u=new i(a,o=o.splice(s,o.length-s));return a.splice(a.indexOf(this)+1,0,u),u},this.merge=function(e){for(var t=e.folds,n=0;n<t.length;n++)this.addFold(t[n]);var r=this.foldData;r.splice(r.indexOf(e),1)},this.toString=function(){var e=[this.range.toString()+": ["];return this.folds.forEach((function(t){e.push(" "+t.toString())})),e.push("]"),e.join("\n")},this.idxToPosition=function(e){for(var t=0,n=0;n<this.folds.length;n++){var r=this.folds[n];if((e-=r.start.column-t)<0)return{row:r.start.row,column:r.start.column+e};if((e-=r.placeholder.length)<0)return r.start;t=r.end.column}return{row:this.end.row,column:this.end.column+e}}}).call(i.prototype),t.FoldLine=i})),ace.define("ace/range_list",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var r=e("./range").Range.comparePoints,i=function(){this.ranges=[],this.$bias=1};(function(){this.comparePoints=r,this.pointIndex=function(e,t,n){for(var i=this.ranges,o=n||0;o<i.length;o++){var a=i[o],s=r(e,a.end);if(!(s>0)){var l=r(e,a.start);return 0===s?t&&0!==l?-o-2:o:l>0||0===l&&!t?o:-o-1}}return-o-1},this.add=function(e){var t=!e.isEmpty(),n=this.pointIndex(e.start,t);n<0&&(n=-n-1);var r=this.pointIndex(e.end,t,n);return r<0?r=-r-1:r++,this.ranges.splice(n,r-n,e)},this.addList=function(e){for(var t=[],n=e.length;n--;)t.push.apply(t,this.add(e[n]));return t},this.substractPoint=function(e){var t=this.pointIndex(e);if(t>=0)return this.ranges.splice(t,1)},this.merge=function(){for(var e,t=[],n=this.ranges,i=(n=n.sort((function(e,t){return r(e.start,t.start)})))[0],o=1;o<n.length;o++){e=i,i=n[o];var a=r(e.end,i.start);a<0||(0!=a||e.isEmpty()||i.isEmpty())&&(r(e.end,i.end)<0&&(e.end.row=i.end.row,e.end.column=i.end.column),n.splice(o,1),t.push(i),i=e,o--)}return this.ranges=n,t},this.contains=function(e,t){return this.pointIndex({row:e,column:t})>=0},this.containsPoint=function(e){return this.pointIndex(e)>=0},this.rangeAtPoint=function(e){var t=this.pointIndex(e);if(t>=0)return this.ranges[t]},this.clipRows=function(e,t){var n=this.ranges;if(n[0].start.row>t||n[n.length-1].start.row<e)return[];var r=this.pointIndex({row:e,column:0});r<0&&(r=-r-1);var i=this.pointIndex({row:t,column:0},r);i<0&&(i=-i-1);for(var o=[],a=r;a<i;a++)o.push(n[a]);return o},this.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},this.attach=function(e){this.session&&this.detach(),this.session=e,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},this.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},this.$onChange=function(e){for(var t=e.start,n=e.end,r=t.row,i=n.row,o=this.ranges,a=0,s=o.length;a<s;a++){if((c=o[a]).end.row>=r)break}if("insert"==e.action)for(var l=i-r,u=-t.column+n.column;a<s;a++){if((c=o[a]).start.row>r)break;if(c.start.row==r&&c.start.column>=t.column&&(c.start.column==t.column&&this.$bias<=0||(c.start.column+=u,c.start.row+=l)),c.end.row==r&&c.end.column>=t.column){if(c.end.column==t.column&&this.$bias<0)continue;c.end.column==t.column&&u>0&&a<s-1&&c.end.column>c.start.column&&c.end.column==o[a+1].start.column&&(c.end.column-=u),c.end.column+=u,c.end.row+=l}}else for(l=r-i,u=t.column-n.column;a<s;a++){if((c=o[a]).start.row>i)break;c.end.row<i&&(r<c.end.row||r==c.end.row&&t.column<c.end.column)?(c.end.row=r,c.end.column=t.column):c.end.row==i?c.end.column<=n.column?(l||c.end.column>t.column)&&(c.end.column=t.column,c.end.row=t.row):(c.end.column+=u,c.end.row+=l):c.end.row>i&&(c.end.row+=l),c.start.row<i&&(r<c.start.row||r==c.start.row&&t.column<c.start.column)?(c.start.row=r,c.start.column=t.column):c.start.row==i?c.start.column<=n.column?(l||c.start.column>t.column)&&(c.start.column=t.column,c.start.row=t.row):(c.start.column+=u,c.start.row+=l):c.start.row>i&&(c.start.row+=l)}if(0!=l&&a<s)for(;a<s;a++){var c;(c=o[a]).start.row+=l,c.end.row+=l}}}).call(i.prototype),t.RangeList=i})),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list","ace/lib/oop"],(function(e,t,n){"use strict";var r=e("../range_list").RangeList,i=e("../lib/oop"),o=t.Fold=function(e,t){this.foldLine=null,this.placeholder=t,this.range=e,this.start=e.start,this.end=e.end,this.sameRow=e.start.row==e.end.row,this.subFolds=this.ranges=[]};function a(e,t){e.row-=t.row,0==e.row&&(e.column-=t.column)}function s(e,t){0==e.row&&(e.column+=t.column),e.row+=t.row}i.inherits(o,r),function(){this.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},this.setFoldLine=function(e){this.foldLine=e,this.subFolds.forEach((function(t){t.setFoldLine(e)}))},this.clone=function(){var e=this.range.clone(),t=new o(e,this.placeholder);return this.subFolds.forEach((function(e){t.subFolds.push(e.clone())})),t.collapseChildren=this.collapseChildren,t},this.addSubFold=function(e){if(!this.range.isEqual(e)){var t,n;t=e,n=this.start,a(t.start,n),a(t.end,n);for(var r=e.start.row,i=e.start.column,o=0,s=-1;o<this.subFolds.length&&1==(s=this.subFolds[o].range.compare(r,i));o++);var l=this.subFolds[o],u=0;if(0==s){if(l.range.containsRange(e))return l.addSubFold(e);u=1}r=e.range.end.row,i=e.range.end.column;var c=o;for(s=-1;c<this.subFolds.length&&1==(s=this.subFolds[c].range.compare(r,i));c++);0==s&&c++;for(var d=this.subFolds.splice(o,c-o,e),f=0==s?d.length-1:d.length,h=u;h<f;h++)e.addSubFold(d[h]);return e.setFoldLine(this.foldLine),e}},this.restoreRange=function(e){return function(e,t){s(e.start,t),s(e.end,t)}(e,this.start)}}.call(o.prototype)})),ace.define("ace/edit_session/folding",["require","exports","module","ace/range","ace/edit_session/fold_line","ace/edit_session/fold","ace/token_iterator"],(function(e,t,n){"use strict";var r=e("../range").Range,i=e("./fold_line").FoldLine,o=e("./fold").Fold,a=e("../token_iterator").TokenIterator;t.Folding=function(){this.getFoldAt=function(e,t,n){var r=this.getFoldLine(e);if(!r)return null;for(var i=r.folds,o=0;o<i.length;o++){var a=i[o].range;if(a.contains(e,t)){if(1==n&&a.isEnd(e,t)&&!a.isEmpty())continue;if(-1==n&&a.isStart(e,t)&&!a.isEmpty())continue;return i[o]}}},this.getFoldsInRange=function(e){var t=e.start,n=e.end,r=this.$foldData,i=[];t.column+=1,n.column-=1;for(var o=0;o<r.length;o++){var a=r[o].range.compareRange(e);if(2!=a){if(-2==a)break;for(var s=r[o].folds,l=0;l<s.length;l++){var u=s[l];if(-2==(a=u.range.compareRange(e)))break;if(2!=a){if(42==a)break;i.push(u)}}}}return t.column-=1,n.column+=1,i},this.getFoldsInRangeList=function(e){if(Array.isArray(e)){var t=[];e.forEach((function(e){t=t.concat(this.getFoldsInRange(e))}),this)}else t=this.getFoldsInRange(e);return t},this.getAllFolds=function(){for(var e=[],t=this.$foldData,n=0;n<t.length;n++)for(var r=0;r<t[n].folds.length;r++)e.push(t[n].folds[r]);return e},this.getFoldStringAt=function(e,t,n,r){if(!(r=r||this.getFoldLine(e)))return null;for(var i,o,a={end:{column:0}},s=0;s<r.folds.length;s++){var l=(o=r.folds[s]).range.compareEnd(e,t);if(-1==l){i=this.getLine(o.start.row).substring(a.end.column,o.start.column);break}if(0===l)return null;a=o}return i||(i=this.getLine(o.start.row).substring(a.end.column)),-1==n?i.substring(0,t-a.end.column):1==n?i.substring(t-a.end.column):i},this.getFoldLine=function(e,t){var n=this.$foldData,r=0;for(t&&(r=n.indexOf(t)),-1==r&&(r=0);r<n.length;r++){var i=n[r];if(i.start.row<=e&&i.end.row>=e)return i;if(i.end.row>e)return null}return null},this.getNextFoldLine=function(e,t){var n=this.$foldData,r=0;for(t&&(r=n.indexOf(t)),-1==r&&(r=0);r<n.length;r++){var i=n[r];if(i.end.row>=e)return i}return null},this.getFoldedRowCount=function(e,t){for(var n=this.$foldData,r=t-e+1,i=0;i<n.length;i++){var o=n[i],a=o.end.row,s=o.start.row;if(a>=t){s<t&&(s>=e?r-=t-s:r=0);break}a>=e&&(r-=s>=e?a-s:a-e+1)}return r},this.$addFoldLine=function(e){return this.$foldData.push(e),this.$foldData.sort((function(e,t){return e.start.row-t.start.row})),e},this.addFold=function(e,t){var n,r=this.$foldData,a=!1;e instanceof o?n=e:(n=new o(t,e)).collapseChildren=t.collapseChildren,this.$clipRangeToDocument(n.range);var s=n.start.row,l=n.start.column,u=n.end.row,c=n.end.column,d=this.getFoldAt(s,l,1),f=this.getFoldAt(u,c,-1);if(d&&f==d)return d.addSubFold(n);d&&!d.range.isStart(s,l)&&this.removeFold(d),f&&!f.range.isEnd(u,c)&&this.removeFold(f);var h=this.getFoldsInRange(n.range);h.length>0&&(this.removeFolds(h),n.collapseChildren||h.forEach((function(e){n.addSubFold(e)})));for(var p=0;p<r.length;p++){var m=r[p];if(u==m.start.row){m.addFold(n),a=!0;break}if(s==m.end.row){if(m.addFold(n),a=!0,!n.sameRow){var g=r[p+1];if(g&&g.start.row==u){m.merge(g);break}}break}if(u<=m.start.row)break}return a||(m=this.$addFoldLine(new i(this.$foldData,n))),this.$useWrapMode?this.$updateWrapData(m.start.row,m.start.row):this.$updateRowLengthCache(m.start.row,m.start.row),this.$modified=!0,this._signal("changeFold",{data:n,action:"add"}),n},this.addFolds=function(e){e.forEach((function(e){this.addFold(e)}),this)},this.removeFold=function(e){var t=e.foldLine,n=t.start.row,r=t.end.row,i=this.$foldData,o=t.folds;if(1==o.length)i.splice(i.indexOf(t),1);else if(t.range.isEnd(e.end.row,e.end.column))o.pop(),t.end.row=o[o.length-1].end.row,t.end.column=o[o.length-1].end.column;else if(t.range.isStart(e.start.row,e.start.column))o.shift(),t.start.row=o[0].start.row,t.start.column=o[0].start.column;else if(e.sameRow)o.splice(o.indexOf(e),1);else{var a=t.split(e.start.row,e.start.column);(o=a.folds).shift(),a.start.row=o[0].start.row,a.start.column=o[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(n,r):this.$updateRowLengthCache(n,r)),this.$modified=!0,this._signal("changeFold",{data:e,action:"remove"})},this.removeFolds=function(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n]);t.forEach((function(e){this.removeFold(e)}),this),this.$modified=!0},this.expandFold=function(e){this.removeFold(e),e.subFolds.forEach((function(t){e.restoreRange(t),this.addFold(t)}),this),e.collapseChildren>0&&this.foldAll(e.start.row+1,e.end.row,e.collapseChildren-1),e.subFolds=[]},this.expandFolds=function(e){e.forEach((function(e){this.expandFold(e)}),this)},this.unfold=function(e,t){var n,i;if(null==e)n=new r(0,0,this.getLength(),0),null==t&&(t=!0);else if("number"==typeof e)n=new r(e,0,e,this.getLine(e).length);else if("row"in e)n=r.fromPoints(e,e);else{if(Array.isArray(e))return i=[],e.forEach((function(e){i=i.concat(this.unfold(e))}),this),i;n=e}for(var o=i=this.getFoldsInRangeList(n);1==i.length&&r.comparePoints(i[0].start,n.start)<0&&r.comparePoints(i[0].end,n.end)>0;)this.expandFolds(i),i=this.getFoldsInRangeList(n);if(0!=t?this.removeFolds(i):this.expandFolds(i),o.length)return o},this.isRowFolded=function(e,t){return!!this.getFoldLine(e,t)},this.getRowFoldEnd=function(e,t){var n=this.getFoldLine(e,t);return n?n.end.row:e},this.getRowFoldStart=function(e,t){var n=this.getFoldLine(e,t);return n?n.start.row:e},this.getFoldDisplayLine=function(e,t,n,r,i){null==r&&(r=e.start.row),null==i&&(i=0),null==t&&(t=e.end.row),null==n&&(n=this.getLine(t).length);var o=this.doc,a="";return e.walk((function(e,t,n,s){if(!(t<r)){if(t==r){if(n<i)return;s=Math.max(i,s)}a+=null!=e?e:o.getLine(t).substring(s,n)}}),t,n),a},this.getDisplayLine=function(e,t,n,r){var i,o=this.getFoldLine(e);return o?this.getFoldDisplayLine(o,e,t,n,r):(i=this.doc.getLine(e)).substring(r||0,t||i.length)},this.$cloneFoldData=function(){var e=[];return e=this.$foldData.map((function(t){var n=t.folds.map((function(e){return e.clone()}));return new i(e,n)}))},this.toggleFold=function(e){var t,n,r=this.selection.getRange();if(r.isEmpty()){var i=r.start;if(t=this.getFoldAt(i.row,i.column))return void this.expandFold(t);(n=this.findMatchingBracket(i))?1==r.comparePoint(n)?r.end=n:(r.start=n,r.start.column++,r.end.column--):(n=this.findMatchingBracket({row:i.row,column:i.column+1}))?(1==r.comparePoint(n)?r.end=n:r.start=n,r.start.column++):r=this.getCommentFoldRange(i.row,i.column)||r}else{var o=this.getFoldsInRange(r);if(e&&o.length)return void this.expandFolds(o);1==o.length&&(t=o[0])}if(t||(t=this.getFoldAt(r.start.row,r.start.column)),t&&t.range.toString()==r.toString())this.expandFold(t);else{var a="...";if(!r.isMultiLine()){if((a=this.getTextRange(r)).length<4)return;a=a.trim().substring(0,2)+".."}this.addFold(a,r)}},this.getCommentFoldRange=function(e,t,n){var i=new a(this,e,t),o=i.getCurrentToken(),s=o&&o.type;if(o&&/^comment|string/.test(s)){"comment"==(s=s.match(/comment|string/)[0])&&(s+="|doc-start");var l=new RegExp(s),u=new r;if(1!=n){do{o=i.stepBackward()}while(o&&l.test(o.type)&&!/^comment.end/.test(o.type));o=i.stepForward()}if(u.start.row=i.getCurrentTokenRow(),u.start.column=i.getCurrentTokenColumn()+(/^comment.start/.test(o.type)?o.value.length:2),i=new a(this,e,t),-1!=n){var c=-1;do{if(o=i.stepForward(),-1==c){var d=this.getState(i.$row);l.test(d)||(c=i.$row)}else if(i.$row>c)break}while(o&&l.test(o.type)&&!/^comment.start/.test(o.type));o=i.stepBackward()}else o=i.getCurrentToken();return u.end.row=i.getCurrentTokenRow(),u.end.column=i.getCurrentTokenColumn(),/^comment.end/.test(o.type)||(u.end.column+=o.value.length-2),u}},this.foldAll=function(e,t,n,r){null==n&&(n=1e5);var i=this.foldWidgets;if(i){t=t||this.getLength();for(var o=e=e||0;o<t;o++)if(null==i[o]&&(i[o]=this.getFoldWidget(o)),"start"==i[o]&&(!r||r(o))){var a=this.getFoldWidgetRange(o);a&&a.isMultiLine()&&a.end.row<=t&&a.start.row>=e&&(o=a.end.row,a.collapseChildren=n,this.addFold("...",a))}}},this.foldToLevel=function(e){for(this.foldAll();e-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var e=this;this.foldAll(null,null,null,(function(t){for(var n=e.getTokens(t),r=0;r<n.length;r++){var i=n[r];if("text"!=i.type||!/^\s+$/.test(i.value))return!!/comment/.test(i.type)}}))},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(e){if(!this.$foldStyles[e])throw new Error("invalid fold style: "+e+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=e){this.$foldStyle=e,"manual"==e&&this.unfold();var t=this.$foldMode;this.$setFolding(null),this.$setFolding(t)}},this.$setFolding=function(e){this.$foldMode!=e&&(this.$foldMode=e,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),e&&"manual"!=this.$foldStyle?(this.foldWidgets=[],this.getFoldWidget=e.getFoldWidget.bind(e,this,this.$foldStyle),this.getFoldWidgetRange=e.getFoldWidgetRange.bind(e,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)):this.foldWidgets=null)},this.getParentFoldRangeData=function(e,t){var n=this.foldWidgets;if(!n||t&&n[e])return{};for(var r,i=e-1;i>=0;){var o=n[i];if(null==o&&(o=n[i]=this.getFoldWidget(i)),"start"==o){var a=this.getFoldWidgetRange(i);if(r||(r=a),a&&a.end.row>=e)break}i--}return{range:-1!==i&&a,firstRange:r}},this.onFoldWidgetClick=function(e,t){var n={children:(t=t.domEvent).shiftKey,all:t.ctrlKey||t.metaKey,siblings:t.altKey};if(!this.$toggleFoldWidget(e,n)){var r=t.target||t.srcElement;r&&/ace_fold-widget/.test(r.className)&&(r.className+=" ace_invalid")}},this.$toggleFoldWidget=function(e,t){if(this.getFoldWidget){var n=this.getFoldWidget(e),r=this.getLine(e),i="end"===n?-1:1,o=this.getFoldAt(e,-1===i?0:r.length,i);if(o)return t.children||t.all?this.removeFold(o):this.expandFold(o),o;var a=this.getFoldWidgetRange(e,!0);if(a&&!a.isMultiLine()&&(o=this.getFoldAt(a.start.row,a.start.column,1))&&a.isEqual(o.range))return this.removeFold(o),o;if(t.siblings){var s=this.getParentFoldRangeData(e);if(s.range)var l=s.range.start.row+1,u=s.range.end.row;this.foldAll(l,u,t.all?1e4:0)}else t.children?(u=a?a.end.row:this.getLength(),this.foldAll(e+1,u,t.all?1e4:0)):a&&(t.all&&(a.collapseChildren=1e4),this.addFold("...",a));return a}},this.toggleFoldWidget=function(e){var t=this.selection.getCursor().row;t=this.getRowFoldStart(t);var n=this.$toggleFoldWidget(t,{});if(!n){var r=this.getParentFoldRangeData(t,!0);if(n=r.range||r.firstRange){t=n.start.row;var i=this.getFoldAt(t,this.getLine(t).length,1);i?this.removeFold(i):this.addFold("...",n)}}},this.updateFoldWidgets=function(e){var t=e.start.row,n=e.end.row-t;if(0===n)this.foldWidgets[t]=null;else if("remove"==e.action)this.foldWidgets.splice(t,n+1,null);else{var r=Array(n+1);r.unshift(t,1),this.foldWidgets.splice.apply(this.foldWidgets,r)}},this.tokenizerUpdateFoldWidgets=function(e){var t=e.data;t.first!=t.last&&this.foldWidgets.length>t.first&&this.foldWidgets.splice(t.first,this.foldWidgets.length)}}})),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],(function(e,t,n){"use strict";var r=e("../token_iterator").TokenIterator,i=e("../range").Range;t.BracketMatch=function(){this.findMatchingBracket=function(e,t){if(0==e.column)return null;var n=t||this.getLine(e.row).charAt(e.column-1);if(""==n)return null;var r=n.match(/([\(\[\{])|([\)\]\}])/);return r?r[1]?this.$findClosingBracket(r[1],e):this.$findOpeningBracket(r[2],e):null},this.getBracketRange=function(e){var t,n=this.getLine(e.row),r=!0,o=n.charAt(e.column-1),a=o&&o.match(/([\(\[\{])|([\)\]\}])/);if(a||(o=n.charAt(e.column),e={row:e.row,column:e.column+1},a=o&&o.match(/([\(\[\{])|([\)\]\}])/),r=!1),!a)return null;if(a[1]){if(!(s=this.$findClosingBracket(a[1],e)))return null;t=i.fromPoints(e,s),r||(t.end.column++,t.start.column--),t.cursor=t.end}else{var s;if(!(s=this.$findOpeningBracket(a[2],e)))return null;t=i.fromPoints(s,e),r||(t.start.column++,t.end.column--),t.cursor=t.start}return t},this.getMatchingBracketRanges=function(e){var t=this.getLine(e.row),n=t.charAt(e.column-1),r=n&&n.match(/([\(\[\{])|([\)\]\}])/);if(r||(n=t.charAt(e.column),e={row:e.row,column:e.column+1},r=n&&n.match(/([\(\[\{])|([\)\]\}])/)),!r)return null;var o=new i(e.row,e.column-1,e.row,e.column),a=r[1]?this.$findClosingBracket(r[1],e):this.$findOpeningBracket(r[2],e);return a?[o,new i(a.row,a.column,a.row,a.column+1)]:[o]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(e,t,n){var i=this.$brackets[e],o=1,a=new r(this,t.row,t.column),s=a.getCurrentToken();if(s||(s=a.stepForward()),s){n||(n=new RegExp("(\\.?"+s.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)")+")+"));for(var l=t.column-a.getCurrentTokenColumn()-2,u=s.value;;){for(;l>=0;){var c=u.charAt(l);if(c==i){if(0==(o-=1))return{row:a.getCurrentTokenRow(),column:l+a.getCurrentTokenColumn()}}else c==e&&(o+=1);l-=1}do{s=a.stepBackward()}while(s&&!n.test(s.type));if(null==s)break;l=(u=s.value).length-1}return null}},this.$findClosingBracket=function(e,t,n){var i=this.$brackets[e],o=1,a=new r(this,t.row,t.column),s=a.getCurrentToken();if(s||(s=a.stepForward()),s){n||(n=new RegExp("(\\.?"+s.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)")+")+"));for(var l=t.column-a.getCurrentTokenColumn();;){for(var u=s.value,c=u.length;l<c;){var d=u.charAt(l);if(d==i){if(0==(o-=1))return{row:a.getCurrentTokenRow(),column:l+a.getCurrentTokenColumn()}}else d==e&&(o+=1);l+=1}do{s=a.stepForward()}while(s&&!n.test(s.type));if(null==s)break;l=0}return null}},this.getMatchingTags=function(e){var t=new r(this,e.row,e.column),n=this.$findTagName(t);if(n)return"<"===t.stepBackward().value?this.$findClosingTag(t,n):this.$findOpeningTag(t,n)},this.$findTagName=function(e){var t=e.getCurrentToken(),n=!1,r=!1;if(t&&-1===t.type.indexOf("tag-name"))do{(t=r?e.stepBackward():e.stepForward())&&("/>"===t.value?r=!0:-1!==t.type.indexOf("tag-name")&&(n=!0))}while(t&&!n);return t},this.$findClosingTag=function(e,t){var n,r=t.value,o=t.value,a=0,s=new i(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+1);t=e.stepForward();var l=new i(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+t.value.length),u=!1;do{if(n=t,t=e.stepForward()){if(">"===t.value&&!u){var c=new i(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+1);u=!0}if(-1!==t.type.indexOf("tag-name")){if(o===(r=t.value))if("<"===n.value)a++;else if("</"===n.value&&--a<0){e.stepBackward();var d=new i(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+2);t=e.stepForward();var f=new i(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+t.value.length);if(!(t=e.stepForward())||">"!==t.value)return;var h=new i(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+1)}}else if(o===r&&"/>"===t.value&&--a<0)h=f=d=new i(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+2),c=new i(l.end.row,l.end.column,l.end.row,l.end.column+1)}}while(t&&a>=0);if(s&&c&&d&&h&&l&&f)return{openTag:new i(s.start.row,s.start.column,c.end.row,c.end.column),closeTag:new i(d.start.row,d.start.column,h.end.row,h.end.column),openTagName:l,closeTagName:f}},this.$findOpeningTag=function(e,t){var n=e.getCurrentToken(),r=t.value,o=0,a=e.getCurrentTokenRow(),s=e.getCurrentTokenColumn(),l=s+2,u=new i(a,s,a,l);e.stepForward();var c=new i(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+t.value.length);if((t=e.stepForward())&&">"===t.value){var d=new i(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+1);e.stepBackward(),e.stepBackward();do{if(t=n,a=e.getCurrentTokenRow(),l=(s=e.getCurrentTokenColumn())+t.value.length,n=e.stepBackward(),t)if(-1!==t.type.indexOf("tag-name")){if(r===t.value)if("<"===n.value){if(++o>0){var f=new i(a,s,a,l),h=new i(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+1);do{t=e.stepForward()}while(t&&">"!==t.value);var p=new i(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+1)}}else"</"===n.value&&o--}else if("/>"===t.value){for(var m=0,g=n;g;){if(-1!==g.type.indexOf("tag-name")&&g.value===r){o--;break}if("<"===g.value)break;g=e.stepBackward(),m++}for(var v=0;v<m;v++)e.stepForward()}}while(n&&o<=0);return h&&p&&u&&d&&f&&c?{openTag:new i(h.start.row,h.start.column,p.end.row,p.end.column),closeTag:new i(u.start.row,u.start.column,d.end.row,d.end.column),openTagName:f,closeTagName:c}:void 0}}}})),ace.define("ace/edit_session",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/bidihandler","ace/config","ace/lib/event_emitter","ace/selection","ace/mode/text","ace/range","ace/document","ace/background_tokenizer","ace/search_highlight","ace/edit_session/folding","ace/edit_session/bracket_match"],(function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./lib/lang"),o=e("./bidihandler").BidiHandler,a=e("./config"),s=e("./lib/event_emitter").EventEmitter,l=e("./selection").Selection,u=e("./mode/text").Mode,c=e("./range").Range,d=e("./document").Document,f=e("./background_tokenizer").BackgroundTokenizer,h=e("./search_highlight").SearchHighlight,p=function(e,t){this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$foldData=[],this.id="session"+ ++p.$uid,this.$foldData.toString=function(){return this.join("\n")},this.bgTokenizer=new f((new u).getTokenizer(),this);var n=this;this.bgTokenizer.on("update",(function(e){n._signal("tokenizerUpdate",e)})),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),"object"==typeof e&&e.getLine||(e=new d(e)),this.setDocument(e),this.selection=new l(this),this.$bidiHandler=new o(this),a.resetOptions(this),this.setMode(t),a._signal("session",this),this.destroyed=!1};p.$uid=0,function(){r.implement(this,s),this.setDocument=function(e){this.doc&&this.doc.off("change",this.$onChange),this.doc=e,e.on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},this.getDocument=function(){return this.doc},this.$resetRowCache=function(e){if(!e)return this.$docRowCache=[],void(this.$screenRowCache=[]);var t=this.$docRowCache.length,n=this.$getRowCacheIndex(this.$docRowCache,e)+1;t>n&&(this.$docRowCache.splice(n,t),this.$screenRowCache.splice(n,t))},this.$getRowCacheIndex=function(e,t){for(var n=0,r=e.length-1;n<=r;){var i=n+r>>1,o=e[i];if(t>o)n=i+1;else{if(!(t<o))return i;r=i-1}}return n-1},this.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},this.onChangeFold=function(e){var t=e.data;this.$resetRowCache(t.start.row)},this.onChange=function(e){this.$modified=!0,this.$bidiHandler.onChange(e),this.$resetRowCache(e.start.row);var t=this.$updateInternalDataOnChange(e);!this.$fromUndo&&this.$undoManager&&(t&&t.length&&(this.$undoManager.add({action:"removeFolds",folds:t},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(e,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer.$updateOnChange(e),this._signal("change",e)},this.setValue=function(e){this.doc.setValue(e),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},this.getValue=this.toString=function(){return this.doc.getValue()},this.getSelection=function(){return this.selection},this.getState=function(e){return this.bgTokenizer.getState(e)},this.getTokens=function(e){return this.bgTokenizer.getTokens(e)},this.getTokenAt=function(e,t){var n,r=this.bgTokenizer.getTokens(e),i=0;if(null==t){var o=r.length-1;i=this.getLine(e).length}else for(o=0;o<r.length&&!((i+=r[o].value.length)>=t);o++);return(n=r[o])?(n.index=o,n.start=i-n.value.length,n):null},this.setUndoManager=function(e){if(this.$undoManager=e,this.$informUndoManager&&this.$informUndoManager.cancel(),e){var t=this;e.addSession(this),this.$syncInformUndoManager=function(){t.$informUndoManager.cancel(),t.mergeUndoDeltas=!1},this.$informUndoManager=i.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},this.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},this.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},this.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},this.getTabString=function(){return this.getUseSoftTabs()?i.stringRepeat(" ",this.getTabSize()):"\t"},this.setUseSoftTabs=function(e){this.setOption("useSoftTabs",e)},this.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},this.setTabSize=function(e){this.setOption("tabSize",e)},this.getTabSize=function(){return this.$tabSize},this.isTabStop=function(e){return this.$useSoftTabs&&e.column%this.$tabSize==0},this.setNavigateWithinSoftTabs=function(e){this.setOption("navigateWithinSoftTabs",e)},this.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},this.$overwrite=!1,this.setOverwrite=function(e){this.setOption("overwrite",e)},this.getOverwrite=function(){return this.$overwrite},this.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},this.addGutterDecoration=function(e,t){this.$decorations[e]||(this.$decorations[e]=""),this.$decorations[e]+=" "+t,this._signal("changeBreakpoint",{})},this.removeGutterDecoration=function(e,t){this.$decorations[e]=(this.$decorations[e]||"").replace(" "+t,""),this._signal("changeBreakpoint",{})},this.getBreakpoints=function(){return this.$breakpoints},this.setBreakpoints=function(e){this.$breakpoints=[];for(var t=0;t<e.length;t++)this.$breakpoints[e[t]]="ace_breakpoint";this._signal("changeBreakpoint",{})},this.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},this.setBreakpoint=function(e,t){void 0===t&&(t="ace_breakpoint"),t?this.$breakpoints[e]=t:delete this.$breakpoints[e],this._signal("changeBreakpoint",{})},this.clearBreakpoint=function(e){delete this.$breakpoints[e],this._signal("changeBreakpoint",{})},this.addMarker=function(e,t,n,r){var i=this.$markerId++,o={range:e,type:n||"line",renderer:"function"==typeof n?n:null,clazz:t,inFront:!!r,id:i};return r?(this.$frontMarkers[i]=o,this._signal("changeFrontMarker")):(this.$backMarkers[i]=o,this._signal("changeBackMarker")),i},this.addDynamicMarker=function(e,t){if(e.update){var n=this.$markerId++;return e.id=n,e.inFront=!!t,t?(this.$frontMarkers[n]=e,this._signal("changeFrontMarker")):(this.$backMarkers[n]=e,this._signal("changeBackMarker")),e}},this.removeMarker=function(e){var t=this.$frontMarkers[e]||this.$backMarkers[e];t&&(delete(t.inFront?this.$frontMarkers:this.$backMarkers)[e],this._signal(t.inFront?"changeFrontMarker":"changeBackMarker"))},this.getMarkers=function(e){return e?this.$frontMarkers:this.$backMarkers},this.highlight=function(e){if(!this.$searchHighlight){var t=new h(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker(t)}this.$searchHighlight.setRegexp(e)},this.highlightLines=function(e,t,n,r){"number"!=typeof t&&(n=t,t=e),n||(n="ace_step");var i=new c(e,0,t,1/0);return i.id=this.addMarker(i,n,"fullLine",r),i},this.setAnnotations=function(e){this.$annotations=e,this._signal("changeAnnotation",{})},this.getAnnotations=function(){return this.$annotations||[]},this.clearAnnotations=function(){this.setAnnotations([])},this.$detectNewLine=function(e){var t=e.match(/^.*?(\r?\n)/m);this.$autoNewLine=t?t[1]:"\n"},this.getWordRange=function(e,t){var n=this.getLine(e),r=!1;if(t>0&&(r=!!n.charAt(t-1).match(this.tokenRe)),r||(r=!!n.charAt(t).match(this.tokenRe)),r)var i=this.tokenRe;else if(/^\s+$/.test(n.slice(t-1,t+1)))i=/\s/;else i=this.nonTokenRe;var o=t;if(o>0){do{o--}while(o>=0&&n.charAt(o).match(i));o++}for(var a=t;a<n.length&&n.charAt(a).match(i);)a++;return new c(e,o,e,a)},this.getAWordRange=function(e,t){for(var n=this.getWordRange(e,t),r=this.getLine(n.end.row);r.charAt(n.end.column).match(/[ \t]/);)n.end.column+=1;return n},this.setNewLineMode=function(e){this.doc.setNewLineMode(e)},this.getNewLineMode=function(){return this.doc.getNewLineMode()},this.setUseWorker=function(e){this.setOption("useWorker",e)},this.getUseWorker=function(){return this.$useWorker},this.onReloadTokenizer=function(e){var t=e.data;this.bgTokenizer.start(t.first),this._signal("tokenizerUpdate",e)},this.$modes=a.$modes,this.$mode=null,this.$modeId=null,this.setMode=function(e,t){if(e&&"object"==typeof e){if(e.getTokenizer)return this.$onChangeMode(e);var n=e,r=n.path}else r=e||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new u),this.$modes[r]&&!n)return this.$onChangeMode(this.$modes[r]),void(t&&t());this.$modeId=r,a.loadModule(["mode",r],function(e){if(this.$modeId!==r)return t&&t();this.$modes[r]&&!n?this.$onChangeMode(this.$modes[r]):e&&e.Mode&&(e=new e.Mode(n),n||(this.$modes[r]=e,e.$id=r),this.$onChangeMode(e)),t&&t()}.bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},this.$onChangeMode=function(e,t){if(t||(this.$modeId=e.$id),this.$mode!==e){var n=this.$mode;this.$mode=e,this.$stopWorker(),this.$useWorker&&this.$startWorker();var r=e.getTokenizer();if(void 0!==r.on){var i=this.onReloadTokenizer.bind(this);r.on("update",i)}this.bgTokenizer.setTokenizer(r),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=e.tokenRe,this.nonTokenRe=e.nonTokenRe,t||(e.attachToSession&&e.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(e.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:n,mode:e}))}},this.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},this.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(e){a.warn("Could not load worker",e),this.$worker=null}},this.getMode=function(){return this.$mode},this.$scrollTop=0,this.setScrollTop=function(e){this.$scrollTop===e||isNaN(e)||(this.$scrollTop=e,this._signal("changeScrollTop",e))},this.getScrollTop=function(){return this.$scrollTop},this.$scrollLeft=0,this.setScrollLeft=function(e){this.$scrollLeft===e||isNaN(e)||(this.$scrollLeft=e,this._signal("changeScrollLeft",e))},this.getScrollLeft=function(){return this.$scrollLeft},this.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},this.getLineWidgetMaxWidth=function(){if(null!=this.lineWidgetsWidth)return this.lineWidgetsWidth;var e=0;return this.lineWidgets.forEach((function(t){t&&t.screenWidth>e&&(e=t.screenWidth)})),this.lineWidgetWidth=e},this.$computeWidth=function(e){if(this.$modified||e){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var t=this.doc.getAllLines(),n=this.$rowLengthCache,r=0,i=0,o=this.$foldData[i],a=o?o.start.row:1/0,s=t.length,l=0;l<s;l++){if(l>a){if((l=o.end.row+1)>=s)break;a=(o=this.$foldData[i++])?o.start.row:1/0}null==n[l]&&(n[l]=this.$getStringScreenWidth(t[l])[0]),n[l]>r&&(r=n[l])}this.screenWidth=r}},this.getLine=function(e){return this.doc.getLine(e)},this.getLines=function(e,t){return this.doc.getLines(e,t)},this.getLength=function(){return this.doc.getLength()},this.getTextRange=function(e){return this.doc.getTextRange(e||this.selection.getRange())},this.insert=function(e,t){return this.doc.insert(e,t)},this.remove=function(e){return this.doc.remove(e)},this.removeFullLines=function(e,t){return this.doc.removeFullLines(e,t)},this.undoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var n=e.length-1;-1!=n;n--){var r=e[n];"insert"==r.action||"remove"==r.action?this.doc.revertDelta(r):r.folds&&this.addFolds(r.folds)}!t&&this.$undoSelect&&(e.selectionBefore?this.selection.fromJSON(e.selectionBefore):this.selection.setRange(this.$getUndoSelection(e,!0))),this.$fromUndo=!1}},this.redoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var n=0;n<e.length;n++){var r=e[n];"insert"!=r.action&&"remove"!=r.action||this.doc.$safeApplyDelta(r)}!t&&this.$undoSelect&&(e.selectionAfter?this.selection.fromJSON(e.selectionAfter):this.selection.setRange(this.$getUndoSelection(e,!1))),this.$fromUndo=!1}},this.setUndoSelect=function(e){this.$undoSelect=e},this.$getUndoSelection=function(e,t){function n(e){return t?"insert"!==e.action:"insert"===e.action}for(var r,i,o=0;o<e.length;o++){var a=e[o];a.start&&(r?n(a)?(i=a.start,-1==r.compare(i.row,i.column)&&r.setStart(i),i=a.end,1==r.compare(i.row,i.column)&&r.setEnd(i)):(i=a.start,-1==r.compare(i.row,i.column)&&(r=c.fromPoints(a.start,a.start))):r=n(a)?c.fromPoints(a.start,a.end):c.fromPoints(a.start,a.start))}return r},this.replace=function(e,t){return this.doc.replace(e,t)},this.moveText=function(e,t,n){var r=this.getTextRange(e),i=this.getFoldsInRange(e),o=c.fromPoints(t,t);if(!n){this.remove(e);var a=e.start.row-e.end.row;(u=a?-e.end.column:e.start.column-e.end.column)&&(o.start.row==e.end.row&&o.start.column>e.end.column&&(o.start.column+=u),o.end.row==e.end.row&&o.end.column>e.end.column&&(o.end.column+=u)),a&&o.start.row>=e.end.row&&(o.start.row+=a,o.end.row+=a)}if(o.end=this.insert(o.start,r),i.length){var s=e.start,l=o.start,u=(a=l.row-s.row,l.column-s.column);this.addFolds(i.map((function(e){return(e=e.clone()).start.row==s.row&&(e.start.column+=u),e.end.row==s.row&&(e.end.column+=u),e.start.row+=a,e.end.row+=a,e})))}return o},this.indentRows=function(e,t,n){n=n.replace(/\t/g,this.getTabString());for(var r=e;r<=t;r++)this.doc.insertInLine({row:r,column:0},n)},this.outdentRows=function(e){for(var t=e.collapseRows(),n=new c(0,0,0,0),r=this.getTabSize(),i=t.start.row;i<=t.end.row;++i){var o=this.getLine(i);n.start.row=i,n.end.row=i;for(var a=0;a<r&&" "==o.charAt(a);++a);a<r&&"\t"==o.charAt(a)?(n.start.column=a,n.end.column=a+1):(n.start.column=0,n.end.column=a),this.remove(n)}},this.$moveLines=function(e,t,n){if(e=this.getRowFoldStart(e),t=this.getRowFoldEnd(t),n<0){if((i=this.getRowFoldStart(e+n))<0)return 0;var r=i-e}else if(n>0){var i;if((i=this.getRowFoldEnd(t+n))>this.doc.getLength()-1)return 0;r=i-t}else{e=this.$clipRowToDocument(e);r=(t=this.$clipRowToDocument(t))-e+1}var o=new c(e,0,t,Number.MAX_VALUE),a=this.getFoldsInRange(o).map((function(e){return(e=e.clone()).start.row+=r,e.end.row+=r,e})),s=0==n?this.doc.getLines(e,t):this.doc.removeFullLines(e,t);return this.doc.insertFullLines(e+r,s),a.length&&this.addFolds(a),r},this.moveLinesUp=function(e,t){return this.$moveLines(e,t,-1)},this.moveLinesDown=function(e,t){return this.$moveLines(e,t,1)},this.duplicateLines=function(e,t){return this.$moveLines(e,t,0)},this.$clipRowToDocument=function(e){return Math.max(0,Math.min(e,this.doc.getLength()-1))},this.$clipColumnToRow=function(e,t){return t<0?0:Math.min(this.doc.getLine(e).length,t)},this.$clipPositionToDocument=function(e,t){if(t=Math.max(0,t),e<0)e=0,t=0;else{var n=this.doc.getLength();e>=n?(e=n-1,t=this.doc.getLine(n-1).length):t=Math.min(this.doc.getLine(e).length,t)}return{row:e,column:t}},this.$clipRangeToDocument=function(e){e.start.row<0?(e.start.row=0,e.start.column=0):e.start.column=this.$clipColumnToRow(e.start.row,e.start.column);var t=this.doc.getLength()-1;return e.end.row>t?(e.end.row=t,e.end.column=this.doc.getLine(t).length):e.end.column=this.$clipColumnToRow(e.end.row,e.end.column),e},this.$wrapLimit=80,this.$useWrapMode=!1,this.$wrapLimitRange={min:null,max:null},this.setUseWrapMode=function(e){if(e!=this.$useWrapMode){if(this.$useWrapMode=e,this.$modified=!0,this.$resetRowCache(0),e){var t=this.getLength();this.$wrapData=Array(t),this.$updateWrapData(0,t-1)}this._signal("changeWrapMode")}},this.getUseWrapMode=function(){return this.$useWrapMode},this.setWrapLimitRange=function(e,t){this.$wrapLimitRange.min===e&&this.$wrapLimitRange.max===t||(this.$wrapLimitRange={min:e,max:t},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},this.adjustWrapLimit=function(e,t){var n=this.$wrapLimitRange;n.max<0&&(n={min:t,max:t});var r=this.$constrainWrapLimit(e,n.min,n.max);return r!=this.$wrapLimit&&r>1&&(this.$wrapLimit=r,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0)},this.$constrainWrapLimit=function(e,t,n){return t&&(e=Math.max(t,e)),n&&(e=Math.min(n,e)),e},this.getWrapLimit=function(){return this.$wrapLimit},this.setWrapLimit=function(e){this.setWrapLimitRange(e,e)},this.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},this.$updateInternalDataOnChange=function(e){var t=this.$useWrapMode,n=e.action,r=e.start,i=e.end,o=r.row,a=i.row,s=a-o,l=null;if(this.$updating=!0,0!=s)if("remove"===n){this[t?"$wrapData":"$rowLengthCache"].splice(o,s);var u=this.$foldData;l=this.getFoldsInRange(e),this.removeFolds(l);var c=0;if(m=this.getFoldLine(i.row)){m.addRemoveChars(i.row,i.column,r.column-i.column),m.shiftRow(-s);var d=this.getFoldLine(o);d&&d!==m&&(d.merge(m),m=d),c=u.indexOf(m)+1}for(;c<u.length;c++){(m=u[c]).start.row>=i.row&&m.shiftRow(-s)}a=o}else{var f=Array(s);f.unshift(o,0);var h=t?this.$wrapData:this.$rowLengthCache;h.splice.apply(h,f);u=this.$foldData,c=0;if(m=this.getFoldLine(o)){var p=m.range.compareInside(r.row,r.column);0==p?(m=m.split(r.row,r.column))&&(m.shiftRow(s),m.addRemoveChars(a,0,i.column-r.column)):-1==p&&(m.addRemoveChars(o,0,i.column-r.column),m.shiftRow(s)),c=u.indexOf(m)+1}for(;c<u.length;c++){var m;(m=u[c]).start.row>=o&&m.shiftRow(s)}}else s=Math.abs(e.start.column-e.end.column),"remove"===n&&(l=this.getFoldsInRange(e),this.removeFolds(l),s=-s),(m=this.getFoldLine(o))&&m.addRemoveChars(o,r.column,s);return t&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,t?this.$updateWrapData(o,a):this.$updateRowLengthCache(o,a),l},this.$updateRowLengthCache=function(e,t,n){this.$rowLengthCache[e]=null,this.$rowLengthCache[t]=null},this.$updateWrapData=function(n,r){var i,o,a=this.doc.getAllLines(),s=this.getTabSize(),l=this.$wrapData,u=this.$wrapLimit,c=n;for(r=Math.min(r,a.length-1);c<=r;)(o=this.getFoldLine(c,o))?(i=[],o.walk(function(n,r,o,s){var l;if(null!=n){(l=this.$getDisplayTokens(n,i.length))[0]=e;for(var u=1;u<l.length;u++)l[u]=t}else l=this.$getDisplayTokens(a[r].substring(s,o),i.length);i=i.concat(l)}.bind(this),o.end.row,a[o.end.row].length+1),l[o.start.row]=this.$computeWrapSplits(i,u,s),c=o.end.row+1):(i=this.$getDisplayTokens(a[c]),l[c]=this.$computeWrapSplits(i,u,s),c++)};var e=3,t=4;function n(e){return!(e<4352)&&(e>=4352&&e<=4447||e>=4515&&e<=4519||e>=4602&&e<=4607||e>=9001&&e<=9002||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12283||e>=12288&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12589||e>=12593&&e<=12686||e>=12688&&e<=12730||e>=12736&&e<=12771||e>=12784&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=13054||e>=13056&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=55216&&e<=55238||e>=55243&&e<=55291||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=65281&&e<=65376||e>=65504&&e<=65510)}this.$computeWrapSplits=function(n,r,i){if(0==n.length)return[];var o=[],a=n.length,s=0,l=0,u=this.$wrapAsCode,c=this.$indentedSoftWrap,d=r<=Math.max(2*i,8)||!1===c?0:Math.floor(r/2);function f(e){for(var t=e-s,r=s;r<e;r++){var a=n[r];12!==a&&2!==a||(t-=1)}o.length||(h=function(){var e=0;if(0===d)return e;if(c)for(var t=0;t<n.length;t++){var r=n[t];if(10==r)e+=1;else{if(11!=r){if(12==r)continue;break}e+=i}}return u&&!1!==c&&(e+=i),Math.min(e,d)}(),o.indent=h),l+=t,o.push(l),s=e}for(var h=0;a-s>r-h;){var p=s+r-h;if(n[p-1]>=10&&n[p]>=10)f(p);else if(n[p]!=e&&n[p]!=t){for(var m=Math.max(p-(r-(r>>2)),s-1);p>m&&n[p]<e;)p--;if(u){for(;p>m&&n[p]<e;)p--;for(;p>m&&9==n[p];)p--}else for(;p>m&&n[p]<10;)p--;p>m?f(++p):(2==n[p=s+r]&&p--,f(p-h))}else{for(;p!=s-1&&n[p]!=e;p--);if(p>s){f(p);continue}for(p=s+r;p<n.length&&n[p]==t;p++);if(p==n.length)break;f(p)}}return o},this.$getDisplayTokens=function(e,t){var r,i=[];t=t||0;for(var o=0;o<e.length;o++){var a=e.charCodeAt(o);if(9==a){r=this.getScreenTabSize(i.length+t),i.push(11);for(var s=1;s<r;s++)i.push(12)}else 32==a?i.push(10):a>39&&a<48||a>57&&a<64?i.push(9):a>=4352&&n(a)?i.push(1,2):i.push(1)}return i},this.$getStringScreenWidth=function(e,t,r){if(0==t)return[0,0];var i,o;for(null==t&&(t=1/0),r=r||0,o=0;o<e.length&&(9==(i=e.charCodeAt(o))?r+=this.getScreenTabSize(r):i>=4352&&n(i)?r+=2:r+=1,!(r>t));o++);return[r,o]},this.lineWidgets=null,this.getRowLength=function(e){var t=1;return this.lineWidgets&&(t+=this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0),this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+t:t},this.getRowLineCount=function(e){return this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1:1},this.getRowWrapIndent=function(e){if(this.$useWrapMode){var t=this.screenToDocumentPosition(e,Number.MAX_VALUE),n=this.$wrapData[t.row];return n.length&&n[0]<t.column?n.indent:0}return 0},this.getScreenLastRowColumn=function(e){var t=this.screenToDocumentPosition(e,Number.MAX_VALUE);return this.documentToScreenColumn(t.row,t.column)},this.getDocumentLastRowColumn=function(e,t){var n=this.documentToScreenRow(e,t);return this.getScreenLastRowColumn(n)},this.getDocumentLastRowColumnPosition=function(e,t){var n=this.documentToScreenRow(e,t);return this.screenToDocumentPosition(n,Number.MAX_VALUE/10)},this.getRowSplitData=function(e){return this.$useWrapMode?this.$wrapData[e]:void 0},this.getScreenTabSize=function(e){return this.$tabSize-(e%this.$tabSize|0)},this.screenToDocumentRow=function(e,t){return this.screenToDocumentPosition(e,t).row},this.screenToDocumentColumn=function(e,t){return this.screenToDocumentPosition(e,t).column},this.screenToDocumentPosition=function(e,t,n){if(e<0)return{row:0,column:0};var r,i,o=0,a=0,s=0,l=0,u=this.$screenRowCache,c=this.$getRowCacheIndex(u,e),d=u.length;if(d&&c>=0){s=u[c],o=this.$docRowCache[c];var f=e>u[d-1]}else f=!d;for(var h=this.getLength()-1,p=this.getNextFoldLine(o),m=p?p.start.row:1/0;s<=e&&!(s+(l=this.getRowLength(o))>e||o>=h);)s+=l,++o>m&&(o=p.end.row+1,m=(p=this.getNextFoldLine(o,p))?p.start.row:1/0),f&&(this.$docRowCache.push(o),this.$screenRowCache.push(s));if(p&&p.start.row<=o)r=this.getFoldDisplayLine(p),o=p.start.row;else{if(s+l<=e||o>h)return{row:h,column:this.getLine(h).length};r=this.getLine(o),p=null}var g=0,v=Math.floor(e-s);if(this.$useWrapMode){var b=this.$wrapData[o];b&&(i=b[v],v>0&&b.length&&(g=b.indent,a=b[v-1]||b[b.length-1],r=r.substring(a)))}return void 0!==n&&this.$bidiHandler.isBidiRow(s+v,o,v)&&(t=this.$bidiHandler.offsetToCol(n)),a+=this.$getStringScreenWidth(r,t-g)[1],this.$useWrapMode&&a>=i&&(a=i-1),p?p.idxToPosition(a):{row:o,column:a}},this.documentToScreenPosition=function(e,t){if(void 0===t)var n=this.$clipPositionToDocument(e.row,e.column);else n=this.$clipPositionToDocument(e,t);e=n.row,t=n.column;var r,i=0,o=null;(r=this.getFoldAt(e,t,1))&&(e=r.start.row,t=r.start.column);var a,s=0,l=this.$docRowCache,u=this.$getRowCacheIndex(l,e),c=l.length;if(c&&u>=0){s=l[u],i=this.$screenRowCache[u];var d=e>l[c-1]}else d=!c;for(var f=this.getNextFoldLine(s),h=f?f.start.row:1/0;s<e;){if(s>=h){if((a=f.end.row+1)>e)break;h=(f=this.getNextFoldLine(a,f))?f.start.row:1/0}else a=s+1;i+=this.getRowLength(s),s=a,d&&(this.$docRowCache.push(s),this.$screenRowCache.push(i))}var p="";f&&s>=h?(p=this.getFoldDisplayLine(f,e,t),o=f.start.row):(p=this.getLine(e).substring(0,t),o=e);var m=0;if(this.$useWrapMode){var g=this.$wrapData[o];if(g){for(var v=0;p.length>=g[v];)i++,v++;p=p.substring(g[v-1]||0,p.length),m=v>0?g.indent:0}}return this.lineWidgets&&this.lineWidgets[s]&&this.lineWidgets[s].rowsAbove&&(i+=this.lineWidgets[s].rowsAbove),{row:i,column:m+this.$getStringScreenWidth(p)[0]}},this.documentToScreenColumn=function(e,t){return this.documentToScreenPosition(e,t).column},this.documentToScreenRow=function(e,t){return this.documentToScreenPosition(e,t).row},this.getScreenLength=function(){var e=0,t=null;if(this.$useWrapMode)for(var n=this.$wrapData.length,r=0,i=(s=0,(t=this.$foldData[s++])?t.start.row:1/0);r<n;){var o=this.$wrapData[r];e+=o?o.length+1:1,++r>i&&(r=t.end.row+1,i=(t=this.$foldData[s++])?t.start.row:1/0)}else{e=this.getLength();for(var a=this.$foldData,s=0;s<a.length;s++)e-=(t=a[s]).end.row-t.start.row}return this.lineWidgets&&(e+=this.$getWidgetScreenLength()),e},this.$setFontMetrics=function(e){this.$enableVarChar&&(this.$getStringScreenWidth=function(t,n,r){if(0===n)return[0,0];var i,o;for(n||(n=1/0),r=r||0,o=0;o<t.length&&!((r+="\t"===(i=t.charAt(o))?this.getScreenTabSize(r):e.getCharacterWidth(i))>n);o++);return[r,o]})},this.destroy=function(){this.destroyed||(this.bgTokenizer.setDocument(null),this.bgTokenizer.cleanup(),this.destroyed=!0),this.$stopWorker(),this.removeAllListeners(),this.doc&&this.doc.off("change",this.$onChange),this.selection.detach()},this.isFullWidth=n}.call(p.prototype),e("./edit_session/folding").Folding.call(p.prototype),e("./edit_session/bracket_match").BracketMatch.call(p.prototype),a.defineOptions(p.prototype,"session",{wrap:{set:function(e){if(e&&"off"!=e?"free"==e?e=!0:"printMargin"==e?e=-1:"string"==typeof e&&(e=parseInt(e,10)||!1):e=!1,this.$wrap!=e)if(this.$wrap=e,e){var t="number"==typeof e?e:null;this.setWrapLimitRange(t,t),this.setUseWrapMode(!0)}else this.setUseWrapMode(!1)},get:function(){return this.getUseWrapMode()?-1==this.$wrap?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(e){(e="auto"==e?"text"!=this.$mode.type:"text"!=e)!=this.$wrapAsCode&&(this.$wrapAsCode=e,this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0)))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(e){this.$useWorker=e,this.$stopWorker(),e&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(e){(e=parseInt(e))>0&&this.$tabSize!==e&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=e,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(e){this.setFoldStyle(e)},handlesSet:!0},overwrite:{set:function(e){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(e){this.doc.setNewLineMode(e)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(e){this.setMode(e)},get:function(){return this.$modeId},handlesSet:!0}}),t.EditSession=p})),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],(function(e,t,n){"use strict";var r=e("./lib/lang"),i=e("./lib/oop"),o=e("./range").Range,a=function(){this.$options={}};(function(){this.set=function(e){return i.mixin(this.$options,e),this},this.getOptions=function(){return r.copyObject(this.$options)},this.setOptions=function(e){this.$options=e},this.find=function(e){var t=this.$options,n=this.$matchIterator(e,t);if(!n)return!1;var r=null;return n.forEach((function(e,n,i,a){return r=new o(e,n,i,a),!(n==a&&t.start&&t.start.start&&0!=t.skipCurrent&&r.isEqual(t.start))||(r=null,!1)})),r},this.findAll=function(e){var t=this.$options;if(!t.needle)return[];this.$assembleRegExp(t);var n=t.range,i=n?e.getLines(n.start.row,n.end.row):e.doc.getAllLines(),a=[],s=t.re;if(t.$isMultiLine){var l,u=s.length,c=i.length-u;e:for(var d=s.offset||0;d<=c;d++){for(var f=0;f<u;f++)if(-1==i[d+f].search(s[f]))continue e;var h=i[d],p=i[d+u-1],m=h.length-h.match(s[0])[0].length,g=p.match(s[u-1])[0].length;l&&l.end.row===d&&l.end.column>m||(a.push(l=new o(d,m,d+u-1,g)),u>2&&(d=d+u-2))}}else for(var v=0;v<i.length;v++){var b=r.getMatchOffsets(i[v],s);for(f=0;f<b.length;f++){var y=b[f];a.push(new o(v,y.offset,v,y.offset+y.length))}}if(n){var _=n.start.column,w=n.start.column;for(v=0,f=a.length-1;v<f&&a[v].start.column<_&&a[v].start.row==n.start.row;)v++;for(;v<f&&a[f].end.column>w&&a[f].end.row==n.end.row;)f--;for(a=a.slice(v,f+1),v=0,f=a.length;v<f;v++)a[v].start.row+=n.start.row,a[v].end.row+=n.start.row}return a},this.replace=function(e,t){var n=this.$options,r=this.$assembleRegExp(n);if(n.$isMultiLine)return t;if(r){var i=r.exec(e);if(!i||i[0].length!=e.length)return null;if(t=e.replace(r,t),n.preserveCase){t=t.split("");for(var o=Math.min(e.length,e.length);o--;){var a=e[o];a&&a.toLowerCase()!=a?t[o]=t[o].toUpperCase():t[o]=t[o].toLowerCase()}t=t.join("")}return t}},this.$assembleRegExp=function(e,t){if(e.needle instanceof RegExp)return e.re=e.needle;var n=e.needle;if(!e.needle)return e.re=!1;e.regExp||(n=r.escapeRegExp(n)),e.wholeWord&&(n=function(e,t){function n(e){return/\w/.test(e)||t.regExp?"\\b":""}return n(e[0])+e+n(e[e.length-1])}(n,e));var i=e.caseSensitive?"gm":"gmi";if(e.$isMultiLine=!t&&/[\n\r]/.test(n),e.$isMultiLine)return e.re=this.$assembleMultilineRegExp(n,i);try{var o=new RegExp(n,i)}catch(e){o=!1}return e.re=o},this.$assembleMultilineRegExp=function(e,t){for(var n=e.replace(/\r\n|\r|\n/g,"$\n^").split("\n"),r=[],i=0;i<n.length;i++)try{r.push(new RegExp(n[i],t))}catch(e){return!1}return r},this.$matchIterator=function(e,t){var n=this.$assembleRegExp(t);if(!n)return!1;var r=1==t.backwards,i=0!=t.skipCurrent,o=t.range,a=t.start;a||(a=o?o[r?"end":"start"]:e.selection.getRange()),a.start&&(a=a[i!=r?"end":"start"]);var s=o?o.start.row:0,l=o?o.end.row:e.getLength()-1;if(r)var u=function(e){var n=a.row;if(!d(n,a.column,e)){for(n--;n>=s;n--)if(d(n,Number.MAX_VALUE,e))return;if(0!=t.wrap)for(n=l,s=a.row;n>=s;n--)if(d(n,Number.MAX_VALUE,e))return}};else u=function(e){var n=a.row;if(!d(n,a.column,e)){for(n+=1;n<=l;n++)if(d(n,0,e))return;if(0!=t.wrap)for(n=s,l=a.row;n<=l;n++)if(d(n,0,e))return}};if(t.$isMultiLine)var c=n.length,d=function(t,i,o){var a=r?t-c+1:t;if(!(a<0||a+c>e.getLength())){var s=e.getLine(a),l=s.search(n[0]);if(!(!r&&l<i||-1===l)){for(var u=1;u<c;u++)if(-1==(s=e.getLine(a+u)).search(n[u]))return;var d=s.match(n[c-1])[0].length;if(!(r&&d>i))return!!o(a,l,a+c-1,d)||void 0}}};else if(r)d=function(t,r,i){var o,a=e.getLine(t),s=[],l=0;for(n.lastIndex=0;o=n.exec(a);){var u=o[0].length;if(l=o.index,!u){if(l>=a.length)break;n.lastIndex=l+=1}if(o.index+u>r)break;s.push(o.index,u)}for(var c=s.length-1;c>=0;c-=2){var d=s[c-1];if(i(t,d,t,d+(u=s[c])))return!0}};else d=function(t,r,i){var o,a,s=e.getLine(t);for(n.lastIndex=r;a=n.exec(s);){var l=a[0].length;if(i(t,o=a.index,t,o+l))return!0;if(!l&&(n.lastIndex=o+=1,o>=s.length))return!1}};return{forEach:u}}}).call(a.prototype),t.Search=a})),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],(function(e,t,n){"use strict";var r=e("../lib/keys"),i=e("../lib/useragent"),o=r.KEY_MODS;function a(e,t){this.platform=t||(i.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(e),this.$singleCommand=!0}function s(e,t){a.call(this,e,t),this.$singleCommand=!1}s.prototype=a.prototype,function(){function e(e){return"object"==typeof e&&e.bindKey&&e.bindKey.position||(e.isDefault?-100:0)}this.addCommand=function(e){this.commands[e.name]&&this.removeCommand(e),this.commands[e.name]=e,e.bindKey&&this._buildKeyHash(e)},this.removeCommand=function(e,t){var n=e&&("string"==typeof e?e:e.name);e=this.commands[n],t||delete this.commands[n];var r=this.commandKeyBinding;for(var i in r){var o=r[i];if(o==e)delete r[i];else if(Array.isArray(o)){var a=o.indexOf(e);-1!=a&&(o.splice(a,1),1==o.length&&(r[i]=o[0]))}}},this.bindKey=function(e,t,n){if("object"==typeof e&&e&&(null==n&&(n=e.position),e=e[this.platform]),e)return"function"==typeof t?this.addCommand({exec:t,bindKey:e,name:t.name||e}):void e.split("|").forEach((function(e){var r="";if(-1!=e.indexOf(" ")){var i=e.split(/\s+/);e=i.pop(),i.forEach((function(e){var t=this.parseKeys(e),n=o[t.hashId]+t.key;r+=(r?" ":"")+n,this._addCommandToBinding(r,"chainKeys")}),this),r+=" "}var a=this.parseKeys(e),s=o[a.hashId]+a.key;this._addCommandToBinding(r+s,t,n)}),this)},this._addCommandToBinding=function(t,n,r){var i,o=this.commandKeyBinding;if(n)if(!o[t]||this.$singleCommand)o[t]=n;else{Array.isArray(o[t])?-1!=(i=o[t].indexOf(n))&&o[t].splice(i,1):o[t]=[o[t]],"number"!=typeof r&&(r=e(n));var a=o[t];for(i=0;i<a.length;i++){if(e(a[i])>r)break}a.splice(i,0,n)}else delete o[t]},this.addCommands=function(e){e&&Object.keys(e).forEach((function(t){var n=e[t];if(n){if("string"==typeof n)return this.bindKey(n,t);"function"==typeof n&&(n={exec:n}),"object"==typeof n&&(n.name||(n.name=t),this.addCommand(n))}}),this)},this.removeCommands=function(e){Object.keys(e).forEach((function(t){this.removeCommand(e[t])}),this)},this.bindKeys=function(e){Object.keys(e).forEach((function(t){this.bindKey(t,e[t])}),this)},this._buildKeyHash=function(e){this.bindKey(e.bindKey,e)},this.parseKeys=function(e){var t=e.toLowerCase().split(/[\-\+]([\-\+])?/).filter((function(e){return e})),n=t.pop(),i=r[n];if(r.FUNCTION_KEYS[i])n=r.FUNCTION_KEYS[i].toLowerCase();else{if(!t.length)return{key:n,hashId:-1};if(1==t.length&&"shift"==t[0])return{key:n.toUpperCase(),hashId:-1}}for(var o=0,a=t.length;a--;){var s=r.KEY_MODS[t[a]];if(null==s)return"undefined"!=typeof console&&console.error("invalid modifier "+t[a]+" in "+e),!1;o|=s}return{key:n,hashId:o}},this.findKeyCommand=function(e,t){var n=o[e]+t;return this.commandKeyBinding[n]},this.handleKeyboard=function(e,t,n,r){if(!(r<0)){var i=o[t]+n,a=this.commandKeyBinding[i];return e.$keyChain&&(e.$keyChain+=" "+i,a=this.commandKeyBinding[e.$keyChain]||a),!a||"chainKeys"!=a&&"chainKeys"!=a[a.length-1]?(e.$keyChain&&(t&&4!=t||1!=n.length?(-1==t||r>0)&&(e.$keyChain=""):e.$keyChain=e.$keyChain.slice(0,-i.length-1)),{command:a}):(e.$keyChain=e.$keyChain||i,{command:"null"})}},this.getStatusText=function(e,t){return t.$keyChain||""}}.call(a.prototype),t.HashHandler=a,t.MultiHashHandler=s})),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("../keyboard/hash_handler").MultiHashHandler,o=e("../lib/event_emitter").EventEmitter,a=function(e,t){i.call(this,t,e),this.byName=this.commands,this.setDefaultHandler("exec",(function(e){return e.args?e.command.exec(e.editor,e.args,e.event,!1):e.command.exec(e.editor,{},e.event,!0)}))};r.inherits(a,i),function(){r.implement(this,o),this.exec=function(e,t,n){if(Array.isArray(e)){for(var r=e.length;r--;)if(this.exec(e[r],t,n))return!0;return!1}if("string"==typeof e&&(e=this.commands[e]),!e)return!1;if(t&&t.$readOnly&&!e.readOnly)return!1;if(0!=this.$checkCommandState&&e.isAvailable&&!e.isAvailable(t))return!1;var i={editor:t,command:e,args:n};return i.returnValue=this._emit("exec",i),this._signal("afterExec",i),!1!==i.returnValue},this.toggleRecording=function(e){if(!this.$inReplay)return e&&e._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=function(e){this.macro.push([e.command,e.args])}.bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},this.replay=function(e){if(!this.$inReplay&&this.macro){if(this.recording)return this.toggleRecording(e);try{this.$inReplay=!0,this.macro.forEach((function(t){"string"==typeof t?this.exec(t,e):this.exec(t[0],e,t[1])}),this)}finally{this.$inReplay=!1}}},this.trimMacro=function(e){return e.map((function(e){return"string"!=typeof e[0]&&(e[0]=e[0].name),e[1]||(e=e[0]),e}))}}.call(a.prototype),t.CommandManager=a})),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],(function(e,t,n){"use strict";var r=e("../lib/lang"),i=e("../config"),o=e("../range").Range;function a(e,t){return{win:e,mac:t}}t.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:a("Ctrl-,","Command-,"),exec:function(e){i.loadModule("ace/ext/settings_menu",(function(t){t.init(e),e.showSettingsMenu()}))},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:a("Alt-E","F4"),exec:function(e){i.loadModule("./ext/error_marker",(function(t){t.showErrorMarker(e,1)}))},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:a("Alt-Shift-E","Shift-F4"),exec:function(e){i.loadModule("./ext/error_marker",(function(t){t.showErrorMarker(e,-1)}))},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:a("Ctrl-A","Command-A"),exec:function(e){e.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:a(null,"Ctrl-L"),exec:function(e){e.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:a("Ctrl-L","Command-L"),exec:function(e,t){"number"!=typeof t||isNaN(t)||e.gotoLine(t),e.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:a("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(e){e.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:a("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(e){e.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:a("F2","F2"),exec:function(e){e.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:a("Alt-F2","Alt-F2"),exec:function(e){e.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:a(null,"Ctrl-Command-Option-0"),exec:function(e){e.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:a(null,"Ctrl-Command-Option-0"),exec:function(e){e.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:a("Alt-0","Command-Option-0"),exec:function(e){e.session.foldAll(),e.session.unfold(e.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:a("Alt-Shift-0","Command-Option-Shift-0"),exec:function(e){e.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:a("Ctrl-K","Command-G"),exec:function(e){e.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:a("Ctrl-Shift-K","Command-Shift-G"),exec:function(e){e.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:a("Alt-K","Ctrl-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:a("Alt-Shift-K","Ctrl-Shift-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:a("Ctrl-F","Command-F"),exec:function(e){i.loadModule("ace/ext/searchbox",(function(t){t.Search(e)}))},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(e){e.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:a("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(e){e.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:a("Ctrl-Home","Command-Home|Command-Up"),exec:function(e){e.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:a("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(e){e.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:a("Up","Up|Ctrl-P"),exec:function(e,t){e.navigateUp(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:a("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(e){e.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:a("Ctrl-End","Command-End|Command-Down"),exec:function(e){e.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:a("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(e){e.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:a("Down","Down|Ctrl-N"),exec:function(e,t){e.navigateDown(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:a("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(e){e.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:a("Ctrl-Left","Option-Left"),exec:function(e){e.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:a("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:a("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(e){e.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:a("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(e){e.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:a("Left","Left|Ctrl-B"),exec:function(e,t){e.navigateLeft(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:a("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(e){e.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:a("Ctrl-Right","Option-Right"),exec:function(e){e.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:a("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:a("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(e){e.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:a("Shift-Right","Shift-Right"),exec:function(e){e.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:a("Right","Right|Ctrl-F"),exec:function(e,t){e.navigateRight(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(e){e.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:a(null,"Option-PageDown"),exec:function(e){e.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:a("PageDown","PageDown|Ctrl-V"),exec:function(e){e.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(e){e.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:a(null,"Option-PageUp"),exec:function(e){e.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(e){e.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:a("Ctrl-Up",null),exec:function(e){e.renderer.scrollBy(0,-2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:a("Ctrl-Down",null),exec:function(e){e.renderer.scrollBy(0,2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:a("Ctrl-Alt-E","Command-Option-E"),exec:function(e){e.commands.toggleRecording(e)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:a("Ctrl-Shift-E","Command-Shift-E"),exec:function(e){e.commands.replay(e)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:a("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(e){e.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:a("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(e){e.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:a("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(e){e.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:a(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(e){},readOnly:!0},{name:"cut",description:"Cut",exec:function(e){var t=e.$copyWithEmptySelection&&e.selection.isEmpty()?e.selection.getLineRange():e.selection.getRange();e._emit("cut",t),t.isEmpty()||e.session.remove(t),e.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(e,t){e.$handlePaste(t)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:a("Ctrl-D","Command-D"),exec:function(e){e.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:a("Ctrl-Shift-D","Command-Shift-D"),exec:function(e){e.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:a("Ctrl-Alt-S","Command-Alt-S"),exec:function(e){e.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:a("Ctrl-/","Command-/"),exec:function(e){e.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:a("Ctrl-Shift-/","Command-Shift-/"),exec:function(e){e.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:a("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(e){e.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:a("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(e){e.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:a("Ctrl-H","Command-Option-F"),exec:function(e){i.loadModule("ace/ext/searchbox",(function(t){t.Search(e,!0)}))}},{name:"undo",description:"Undo",bindKey:a("Ctrl-Z","Command-Z"),exec:function(e){e.undo()}},{name:"redo",description:"Redo",bindKey:a("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(e){e.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:a("Alt-Shift-Up","Command-Option-Up"),exec:function(e){e.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:a("Alt-Up","Option-Up"),exec:function(e){e.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:a("Alt-Shift-Down","Command-Option-Down"),exec:function(e){e.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:a("Alt-Down","Option-Down"),exec:function(e){e.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:a("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(e){e.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:a("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(e){e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:a("Shift-Delete",null),exec:function(e){if(!e.selection.isEmpty())return!1;e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:a("Alt-Backspace","Command-Backspace"),exec:function(e){e.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:a("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(e){e.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:a("Ctrl-Shift-Backspace",null),exec:function(e){var t=e.selection.getRange();t.start.column=0,e.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:a("Ctrl-Shift-Delete",null),exec:function(e){var t=e.selection.getRange();t.end.column=Number.MAX_VALUE,e.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:a("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(e){e.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:a("Ctrl-Delete","Alt-Delete"),exec:function(e){e.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:a("Shift-Tab","Shift-Tab"),exec:function(e){e.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:a("Tab","Tab"),exec:function(e){e.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:a("Ctrl-[","Ctrl-["),exec:function(e){e.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:a("Ctrl-]","Ctrl-]"),exec:function(e){e.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(e,t){e.insert(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(e,t){e.insert(r.stringRepeat(t.text||"",t.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:a(null,"Ctrl-O"),exec:function(e){e.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:a("Alt-Shift-X","Ctrl-T"),exec:function(e){e.transposeLetters()},multiSelectAction:function(e){e.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:a("Ctrl-U","Ctrl-U"),exec:function(e){e.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:a("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(e){e.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:a(null,null),exec:function(e){e.autoIndent()},multiSelectAction:"forEachLine",scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:a("Ctrl-Shift-L","Command-Shift-L"),exec:function(e){var t=e.selection.getRange();t.start.column=t.end.column=0,t.end.row++,e.selection.setRange(t,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"joinlines",description:"Join lines",bindKey:a(null,null),exec:function(e){for(var t=e.selection.isBackwards(),n=t?e.selection.getSelectionLead():e.selection.getSelectionAnchor(),i=t?e.selection.getSelectionAnchor():e.selection.getSelectionLead(),a=e.session.doc.getLine(n.row).length,s=e.session.doc.getTextRange(e.selection.getRange()).replace(/\n\s*/," ").length,l=e.session.doc.getLine(n.row),u=n.row+1;u<=i.row+1;u++){var c=r.stringTrimLeft(r.stringTrimRight(e.session.doc.getLine(u)));0!==c.length&&(c=" "+c),l+=c}i.row+1<e.session.doc.getLength()-1&&(l+=e.session.doc.getNewLineCharacter()),e.clearSelection(),e.session.doc.replace(new o(n.row,0,i.row+2,0),l),s>0?(e.selection.moveCursorTo(n.row,n.column),e.selection.selectTo(n.row,n.column+s)):(a=e.session.doc.getLine(n.row).length>a?a+1:a,e.selection.moveCursorTo(n.row,a))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:a(null,null),exec:function(e){var t=e.session.doc.getLength()-1,n=e.session.doc.getLine(t).length,r=e.selection.rangeList.ranges,i=[];r.length<1&&(r=[e.selection.getRange()]);for(var a=0;a<r.length;a++)a==r.length-1&&(r[a].end.row===t&&r[a].end.column===n||i.push(new o(r[a].end.row,r[a].end.column,t,n))),0===a?0===r[a].start.row&&0===r[a].start.column||i.push(new o(0,0,r[a].start.row,r[a].start.column)):i.push(new o(r[a-1].end.row,r[a-1].end.column,r[a].start.row,r[a].start.column));e.exitMultiSelectMode(),e.clearSelection();for(a=0;a<i.length;a++)e.selection.addRange(i[a],!1)},readOnly:!0,scrollIntoView:"none"},{name:"addLineAfter",description:"Add new line after the current line",exec:function(e){e.selection.clearSelection(),e.navigateLineEnd(),e.insert("\n")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(e){e.selection.clearSelection();var t=e.getCursorPosition();e.selection.moveTo(t.row-1,Number.MAX_VALUE),e.insert("\n"),0===t.row&&e.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",description:"Open command palette",bindKey:a("F1","F1"),exec:function(e){e.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:a(null,null),exec:function(e){e.prompt({$type:"modes"})},readOnly:!0}];for(var s=1;s<9;s++)t.commands.push({name:"foldToLevel"+s,description:"Fold To Level "+s,level:s,exec:function(e){e.session.foldToLevel(this.level)},scrollIntoView:"center",readOnly:!0})})),ace.define("ace/editor",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/keyboard/textinput","ace/mouse/mouse_handler","ace/mouse/fold_handler","ace/keyboard/keybinding","ace/edit_session","ace/search","ace/range","ace/lib/event_emitter","ace/commands/command_manager","ace/commands/default_commands","ace/config","ace/token_iterator","ace/clipboard"],(function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./lib/dom"),o=e("./lib/lang"),a=e("./lib/useragent"),s=e("./keyboard/textinput").TextInput,l=e("./mouse/mouse_handler").MouseHandler,u=e("./mouse/fold_handler").FoldHandler,c=e("./keyboard/keybinding").KeyBinding,d=e("./edit_session").EditSession,f=e("./search").Search,h=e("./range").Range,p=e("./lib/event_emitter").EventEmitter,m=e("./commands/command_manager").CommandManager,g=e("./commands/default_commands").commands,v=e("./config"),b=e("./token_iterator").TokenIterator,y=e("./clipboard"),_=function(e,t,n){this.$toDestroy=[];var r=e.getContainerElement();this.container=r,this.renderer=e,this.id="editor"+ ++_.$uid,this.commands=new m(a.isMac?"mac":"win",g),"object"==typeof document&&(this.textInput=new s(e.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new l(this),new u(this)),this.keyBinding=new c(this),this.$search=(new f).set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=o.delayedCall(function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}.bind(this)),this.on("change",(function(e,t){t._$emitInputEvent.schedule(31)})),this.setSession(t||n&&n.session||new d("")),v.resetOptions(this),n&&this.setOptions(n),v._signal("editor",this)};_.$uid=0,function(){r.implement(this,p),this.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0),this.$opResetTimer=o.delayedCall(this.endOperation.bind(this,!0)),this.on("change",function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.docChanged=!0}.bind(this),!0),this.on("changeSelection",function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.selectionChanged=!0}.bind(this),!0)},this.curOp=null,this.prevOp={},this.startOperation=function(e){if(this.curOp){if(!e||this.curOp.command)return;this.prevOp=this.curOp}e||(this.previousCommand=null,e={}),this.$opResetTimer.schedule(),this.curOp=this.session.curOp={command:e.command||{},args:e.args,scrollTop:this.renderer.scrollTop},this.curOp.selectionBefore=this.selection.toJSON()},this.endOperation=function(e){if(this.curOp&&this.session){if(e&&!1===e.returnValue||!this.session)return this.curOp=null;if(1==e&&this.curOp.command&&"mouse"==this.curOp.command.name)return;if(this._signal("beforeEndOperation"),!this.curOp)return;var t=this.curOp.command,n=t&&t.scrollIntoView;if(n){switch(n){case"center-animate":n="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var r=this.selection.getRange(),i=this.renderer.layerConfig;(r.start.row>=i.lastRow||r.end.row<=i.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead)}"animate"==n&&this.renderer.animateScrolling(this.curOp.scrollTop)}var o=this.selection.toJSON();this.curOp.selectionAfter=o,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(o),this.prevOp=this.curOp,this.curOp=null}},this.$mergeableCommands=["backspace","del","insertstring"],this.$historyTracker=function(e){if(this.$mergeUndoDeltas){var t=this.prevOp,n=this.$mergeableCommands,r=t.command&&e.command.name==t.command.name;if("insertstring"==e.command.name){var i=e.args;void 0===this.mergeNextCommand&&(this.mergeNextCommand=!0),r=r&&this.mergeNextCommand&&(!/\s/.test(i)||/\s/.test(t.args)),this.mergeNextCommand=!0}else r=r&&-1!==n.indexOf(e.command.name);"always"!=this.$mergeUndoDeltas&&Date.now()-this.sequenceStartTime>2e3&&(r=!1),r?this.session.mergeUndoDeltas=!0:-1!==n.indexOf(e.command.name)&&(this.sequenceStartTime=Date.now())}},this.setKeyboardHandler=function(e,t){if(e&&"string"==typeof e&&"ace"!=e){this.$keybindingId=e;var n=this;v.loadModule(["keybinding",e],(function(r){n.$keybindingId==e&&n.keyBinding.setKeyboardHandler(r&&r.handler),t&&t()}))}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(e),t&&t()},this.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},this.setSession=function(e){if(this.session!=e){this.curOp&&this.endOperation(),this.curOp={};var t=this.session;if(t){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange);var n=this.session.getSelection();n.off("changeCursor",this.$onCursorChange),n.off("changeSelection",this.$onSelectionChange)}this.session=e,e?(this.$onDocumentChange=this.onDocumentChange.bind(this),e.on("change",this.$onDocumentChange),this.renderer.setSession(e),this.$onChangeMode=this.onChangeMode.bind(this),e.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),e.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),e.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),e.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),e.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),e.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=e.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(e)),this._signal("changeSession",{session:e,oldSession:t}),this.curOp=null,t&&t._signal("changeEditor",{oldEditor:this}),e&&e._signal("changeEditor",{editor:this}),e&&!e.destroyed&&e.bgTokenizer.scheduleStart()}},this.getSession=function(){return this.session},this.setValue=function(e,t){return this.session.doc.setValue(e),t?1==t?this.navigateFileEnd():-1==t&&this.navigateFileStart():this.selectAll(),e},this.getValue=function(){return this.session.getValue()},this.getSelection=function(){return this.selection},this.resize=function(e){this.renderer.onResize(e)},this.setTheme=function(e,t){this.renderer.setTheme(e,t)},this.getTheme=function(){return this.renderer.getTheme()},this.setStyle=function(e){this.renderer.setStyle(e)},this.unsetStyle=function(e){this.renderer.unsetStyle(e)},this.getFontSize=function(){return this.getOption("fontSize")||i.computedStyle(this.container).fontSize},this.setFontSize=function(e){this.setOption("fontSize",e)},this.$highlightBrackets=function(){if(!this.$highlightPending){var e=this;this.$highlightPending=!0,setTimeout((function(){e.$highlightPending=!1;var t=e.session;if(t&&!t.destroyed){t.$bracketHighlight&&(t.$bracketHighlight.markerIds.forEach((function(e){t.removeMarker(e)})),t.$bracketHighlight=null);var n=e.getCursorPosition(),r=t.getMatchingBracketRanges(n);if(!r){var i=new b(t,n.row,n.column).getCurrentToken();if(i&&/\b(?:tag-open|tag-name)/.test(i.type)){var o=t.getMatchingTags(n);o&&(r=[o.openTagName,o.closeTagName])}}if(!r&&t.$mode.getMatching&&(r=t.$mode.getMatching(e.session)),r){var a="ace_bracket";Array.isArray(r)?1==r.length&&(a="ace_error_bracket"):r=[r],2==r.length&&(0==h.comparePoints(r[0].end,r[1].start)?r=[h.fromPoints(r[0].start,r[1].end)]:0==h.comparePoints(r[0].start,r[1].end)&&(r=[h.fromPoints(r[1].start,r[0].end)])),t.$bracketHighlight={ranges:r,markerIds:r.map((function(e){return t.addMarker(e,a,"text")}))},e.getHighlightIndentGuides()&&e.renderer.$textLayer.$highlightIndentGuide()}else e.getHighlightIndentGuides()&&e.renderer.$textLayer.$highlightIndentGuide()}}),50)}},this.focus=function(){this.textInput.focus()},this.isFocused=function(){return this.textInput.isFocused()},this.blur=function(){this.textInput.blur()},this.onFocus=function(e){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",e))},this.onBlur=function(e){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",e))},this.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},this.onDocumentChange=function(e){var t=this.session.$useWrapMode,n=e.start.row==e.end.row?e.end.row:1/0;this.renderer.updateLines(e.start.row,n,t),this._signal("change",e),this.$cursorChange()},this.onTokenizerUpdate=function(e){var t=e.data;this.renderer.updateLines(t.first,t.last)},this.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},this.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},this.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},this.$updateHighlightActiveLine=function(){var e,t=this.getSession();if(this.$highlightActiveLine&&("line"==this.$selectionStyle&&this.selection.isMultiLine()||(e=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(e=!1),!this.renderer.$maxLines||1!==this.session.getLength()||this.renderer.$minLines>1||(e=!1)),t.$highlightLineMarker&&!e)t.removeMarker(t.$highlightLineMarker.id),t.$highlightLineMarker=null;else if(!t.$highlightLineMarker&&e){var n=new h(e.row,e.column,e.row,1/0);n.id=t.addMarker(n,"ace_active-line","screenLine"),t.$highlightLineMarker=n}else e&&(t.$highlightLineMarker.start.row=e.row,t.$highlightLineMarker.end.row=e.row,t.$highlightLineMarker.start.column=e.column,t._signal("changeBackMarker"))},this.onSelectionChange=function(e){var t=this.session;if(t.$selectionMarker&&t.removeMarker(t.$selectionMarker),t.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var n=this.selection.getRange(),r=this.getSelectionStyle();t.$selectionMarker=t.addMarker(n,"ace_selection",r)}var i=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(i),this._signal("changeSelection")},this.$getSelectionHighLightRegexp=function(){var e=this.session,t=this.getSelectionRange();if(!t.isEmpty()&&!t.isMultiLine()){var n=t.start.column,r=t.end.column,i=e.getLine(t.start.row),o=i.substring(n,r);if(!(o.length>5e3)&&/[\w\d]/.test(o)){var a=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:o}),s=i.substring(n-1,r+1);if(a.test(s))return a}}},this.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},this.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},this.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},this.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},this.onChangeMode=function(e){this.renderer.updateText(),this._emit("changeMode",e)},this.onChangeWrapLimit=function(){this.renderer.updateFull()},this.onChangeWrapMode=function(){this.renderer.onResize(!0)},this.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},this.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},this.getCopyText=function(){var e=this.getSelectedText(),t=this.session.doc.getNewLineCharacter(),n=!1;if(!e&&this.$copyWithEmptySelection){n=!0;for(var r=this.selection.getAllRanges(),i=0;i<r.length;i++){var o=r[i];i&&r[i-1].start.row==o.start.row||(e+=this.session.getLine(o.start.row)+t)}}var a={text:e};return this._signal("copy",a),y.lineMode=!!n&&a.text,a.text},this.onCopy=function(){this.commands.exec("copy",this)},this.onCut=function(){this.commands.exec("cut",this)},this.onPaste=function(e,t){var n={text:e,event:t};this.commands.exec("paste",this,n)},this.$handlePaste=function(e){"string"==typeof e&&(e={text:e}),this._signal("paste",e);var t=e.text,n=t===y.lineMode,r=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)n?r.insert({row:this.selection.lead.row,column:0},t):this.insert(t);else if(n)this.selection.rangeList.ranges.forEach((function(e){r.insert({row:e.start.row,column:0},t)}));else{var i=t.split(/\r\n|\r|\n/),o=this.selection.rangeList.ranges,a=!(2!=i.length||i[0]&&i[1]);if(i.length!=o.length||a)return this.commands.exec("insertstring",this,t);for(var s=o.length;s--;){var l=o[s];l.isEmpty()||r.remove(l),r.insert(l.start,i[s])}}},this.execCommand=function(e,t){return this.commands.exec(e,this,t)},this.insert=function(e,t){var n=this.session,r=n.getMode(),i=this.getCursorPosition();if(this.getBehavioursEnabled()&&!t){var o=r.transformAction(n.getState(i.row),"insertion",this,n,e);o&&(e!==o.text&&(this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1)),e=o.text)}if("\t"==e&&(e=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&-1==e.indexOf("\n")){(a=new h.fromPoints(i,i)).end.column+=e.length,this.session.remove(a)}}else{var a=this.getSelectionRange();i=this.session.remove(a),this.clearSelection()}if("\n"==e||"\r\n"==e){var s=n.getLine(i.row);if(i.column>s.search(/\S|$/)){var l=s.substr(i.column).search(/\S|$/);n.doc.removeInLine(i.row,i.column,i.column+l)}}this.clearSelection();var u=i.column,c=n.getState(i.row),d=(s=n.getLine(i.row),r.checkOutdent(c,s,e));if(n.insert(i,e),o&&o.selection&&(2==o.selection.length?this.selection.setSelectionRange(new h(i.row,u+o.selection[0],i.row,u+o.selection[1])):this.selection.setSelectionRange(new h(i.row+o.selection[0],o.selection[1],i.row+o.selection[2],o.selection[3]))),this.$enableAutoIndent){if(n.getDocument().isNewLine(e)){var f=r.getNextLineIndent(c,s.slice(0,i.column),n.getTabString());n.insert({row:i.row+1,column:0},f)}d&&r.autoOutdent(c,n,i.row)}},this.autoIndent=function(){var e,t,n=this.session,r=n.getMode();if(this.selection.isEmpty())e=0,t=n.doc.getLength()-1;else{var i=this.getSelectionRange();e=i.start.row,t=i.end.row}for(var o,a,s,l="",u="",c="",d=n.getTabString(),f=e;f<=t;f++)f>0&&(l=n.getState(f-1),u=n.getLine(f-1),c=r.getNextLineIndent(l,u,d)),o=n.getLine(f),c!==(a=r.$getIndent(o))&&(a.length>0&&(s=new h(f,0,f,a.length),n.remove(s)),c.length>0&&n.insert({row:f,column:0},c)),r.autoOutdent(l,n,f)},this.onTextInput=function(e,t){if(!t)return this.keyBinding.onTextInput(e);this.startOperation({command:{name:"insertstring"}});var n=this.applyComposition.bind(this,e,t);this.selection.rangeCount?this.forEachSelection(n):n(),this.endOperation()},this.applyComposition=function(e,t){var n;(t.extendLeft||t.extendRight)&&((n=this.selection.getRange()).start.column-=t.extendLeft,n.end.column+=t.extendRight,n.start.column<0&&(n.start.row--,n.start.column+=this.session.getLine(n.start.row).length+1),this.selection.setRange(n),e||n.isEmpty()||this.remove());(!e&&this.selection.isEmpty()||this.insert(e,!0),t.restoreStart||t.restoreEnd)&&((n=this.selection.getRange()).start.column-=t.restoreStart,n.end.column-=t.restoreEnd,this.selection.setRange(n))},this.onCommandKey=function(e,t,n){return this.keyBinding.onCommandKey(e,t,n)},this.setOverwrite=function(e){this.session.setOverwrite(e)},this.getOverwrite=function(){return this.session.getOverwrite()},this.toggleOverwrite=function(){this.session.toggleOverwrite()},this.setScrollSpeed=function(e){this.setOption("scrollSpeed",e)},this.getScrollSpeed=function(){return this.getOption("scrollSpeed")},this.setDragDelay=function(e){this.setOption("dragDelay",e)},this.getDragDelay=function(){return this.getOption("dragDelay")},this.setSelectionStyle=function(e){this.setOption("selectionStyle",e)},this.getSelectionStyle=function(){return this.getOption("selectionStyle")},this.setHighlightActiveLine=function(e){this.setOption("highlightActiveLine",e)},this.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},this.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.setHighlightSelectedWord=function(e){this.setOption("highlightSelectedWord",e)},this.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},this.setAnimatedScroll=function(e){this.renderer.setAnimatedScroll(e)},this.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},this.setShowInvisibles=function(e){this.renderer.setShowInvisibles(e)},this.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},this.setDisplayIndentGuides=function(e){this.renderer.setDisplayIndentGuides(e)},this.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},this.setHighlightIndentGuides=function(e){this.renderer.setHighlightIndentGuides(e)},this.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},this.setShowPrintMargin=function(e){this.renderer.setShowPrintMargin(e)},this.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},this.setPrintMarginColumn=function(e){this.renderer.setPrintMarginColumn(e)},this.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},this.setReadOnly=function(e){this.setOption("readOnly",e)},this.getReadOnly=function(){return this.getOption("readOnly")},this.setBehavioursEnabled=function(e){this.setOption("behavioursEnabled",e)},this.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},this.setWrapBehavioursEnabled=function(e){this.setOption("wrapBehavioursEnabled",e)},this.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},this.setShowFoldWidgets=function(e){this.setOption("showFoldWidgets",e)},this.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},this.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.remove=function(e){this.selection.isEmpty()&&("left"==e?this.selection.selectLeft():this.selection.selectRight());var t=this.getSelectionRange();if(this.getBehavioursEnabled()){var n=this.session,r=n.getState(t.start.row),i=n.getMode().transformAction(r,"deletion",this,n,t);if(0===t.end.column){var o=n.getTextRange(t);if("\n"==o[o.length-1]){var a=n.getLine(t.end.row);/^\s+$/.test(a)&&(t.end.column=a.length)}}i&&(t=i)}this.session.remove(t),this.clearSelection()},this.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var e=this.getSelectionRange();e.start.column==e.end.column&&e.start.row==e.end.row&&(e.end.column=0,e.end.row++),this.session.remove(e),this.clearSelection()},this.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var e=this.getCursorPosition();this.insert("\n"),this.moveCursorToPosition(e)},this.transposeLetters=function(){if(this.selection.isEmpty()){var e=this.getCursorPosition(),t=e.column;if(0!==t){var n,r,i=this.session.getLine(e.row);t<i.length?(n=i.charAt(t)+i.charAt(t-1),r=new h(e.row,t-1,e.row,t+1)):(n=i.charAt(t-1)+i.charAt(t-2),r=new h(e.row,t-2,e.row,t)),this.session.replace(r,n),this.session.selection.moveToPosition(r.end)}}},this.toLowerCase=function(){var e=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var t=this.getSelectionRange(),n=this.session.getTextRange(t);this.session.replace(t,n.toLowerCase()),this.selection.setSelectionRange(e)},this.toUpperCase=function(){var e=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var t=this.getSelectionRange(),n=this.session.getTextRange(t);this.session.replace(t,n.toUpperCase()),this.selection.setSelectionRange(e)},this.indent=function(){var e=this.session,t=this.getSelectionRange();if(!(t.start.row<t.end.row)){if(t.start.column<t.end.column){var n=e.getTextRange(t);if(!/^\s+$/.test(n)){c=this.$getSelectedRows();return void e.indentRows(c.first,c.last,"\t")}}var r=e.getLine(t.start.row),i=t.start,a=e.getTabSize(),s=e.documentToScreenColumn(i.row,i.column);if(this.session.getUseSoftTabs())var l=a-s%a,u=o.stringRepeat(" ",l);else{for(l=s%a;" "==r[t.start.column-1]&&l;)t.start.column--,l--;this.selection.setSelectionRange(t),u="\t"}return this.insert(u)}var c=this.$getSelectedRows();e.indentRows(c.first,c.last,"\t")},this.blockIndent=function(){var e=this.$getSelectedRows();this.session.indentRows(e.first,e.last,"\t")},this.blockOutdent=function(){var e=this.session.getSelection();this.session.outdentRows(e.getRange())},this.sortLines=function(){for(var e=this.$getSelectedRows(),t=this.session,n=[],r=e.first;r<=e.last;r++)n.push(t.getLine(r));n.sort((function(e,t){return e.toLowerCase()<t.toLowerCase()?-1:e.toLowerCase()>t.toLowerCase()?1:0}));var i=new h(0,0,0,0);for(r=e.first;r<=e.last;r++){var o=t.getLine(r);i.start.row=r,i.end.row=r,i.end.column=o.length,t.replace(i,n[r-e.first])}},this.toggleCommentLines=function(){var e=this.session.getState(this.getCursorPosition().row),t=this.$getSelectedRows();this.session.getMode().toggleCommentLines(e,this.session,t.first,t.last)},this.toggleBlockComment=function(){var e=this.getCursorPosition(),t=this.session.getState(e.row),n=this.getSelectionRange();this.session.getMode().toggleBlockComment(t,this.session,n,e)},this.getNumberAt=function(e,t){var n=/[\-]?[0-9]+(?:\.[0-9]+)?/g;n.lastIndex=0;for(var r=this.session.getLine(e);n.lastIndex<t;){var i=n.exec(r);if(i.index<=t&&i.index+i[0].length>=t)return{value:i[0],start:i.index,end:i.index+i[0].length}}return null},this.modifyNumber=function(e){var t=this.selection.getCursor().row,n=this.selection.getCursor().column,r=new h(t,n-1,t,n),i=this.session.getTextRange(r);if(!isNaN(parseFloat(i))&&isFinite(i)){var o=this.getNumberAt(t,n);if(o){var a=o.value.indexOf(".")>=0?o.start+o.value.indexOf(".")+1:o.end,s=o.start+o.value.length-a,l=parseFloat(o.value);l*=Math.pow(10,s),a!==o.end&&n<a?e*=Math.pow(10,o.end-n-1):e*=Math.pow(10,o.end-n),l+=e;var u=(l/=Math.pow(10,s)).toFixed(s),c=new h(t,o.start,t,o.end);this.session.replace(c,u),this.moveCursorTo(t,Math.max(o.start+1,n+u.length-o.value.length))}}else this.toggleWord()},this.$toggleWordPairs=[["first","last"],["true","false"],["yes","no"],["width","height"],["top","bottom"],["right","left"],["on","off"],["x","y"],["get","set"],["max","min"],["horizontal","vertical"],["show","hide"],["add","remove"],["up","down"],["before","after"],["even","odd"],["in","out"],["inside","outside"],["next","previous"],["increase","decrease"],["attach","detach"],["&&","||"],["==","!="]],this.toggleWord=function(){var e=this.selection.getCursor().row,t=this.selection.getCursor().column;this.selection.selectWord();var n=this.getSelectedText(),r=this.selection.getWordRange().start.column,i=n.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),a=t-r-1;a<0&&(a=0);var s=0,l=0,u=this;n.match(/[A-Za-z0-9_]+/)&&i.forEach((function(t,i){l=s+t.length,a>=s&&a<=l&&(n=t,u.selection.clearSelection(),u.moveCursorTo(e,s+r),u.selection.selectTo(e,l+r)),s=l}));for(var c,d=this.$toggleWordPairs,f=0;f<d.length;f++)for(var h=d[f],p=0;p<=1;p++){var m=+!p,g=n.match(new RegExp("^\\s?_?("+o.escapeRegExp(h[p])+")\\s?$","i"));if(g)n.match(new RegExp("([_]|^|\\s)("+o.escapeRegExp(g[1])+")($|\\s)","g"))&&(c=n.replace(new RegExp(o.escapeRegExp(h[p]),"i"),(function(e){var t=h[m];return e.toUpperCase()==e?t=t.toUpperCase():e.charAt(0).toUpperCase()==e.charAt(0)&&(t=t.substr(0,0)+h[m].charAt(0).toUpperCase()+t.substr(1)),t})),this.insert(c),c="")}},this.removeLines=function(){var e=this.$getSelectedRows();this.session.removeFullLines(e.first,e.last),this.clearSelection()},this.duplicateSelection=function(){var e=this.selection,t=this.session,n=e.getRange(),r=e.isBackwards();if(n.isEmpty()){var i=n.start.row;t.duplicateLines(i,i)}else{var o=r?n.start:n.end,a=t.insert(o,t.getTextRange(n),!1);n.start=o,n.end=a,e.setSelectionRange(n,r)}},this.moveLinesDown=function(){this.$moveLines(1,!1)},this.moveLinesUp=function(){this.$moveLines(-1,!1)},this.moveText=function(e,t,n){return this.session.moveText(e,t,n)},this.copyLinesUp=function(){this.$moveLines(-1,!0)},this.copyLinesDown=function(){this.$moveLines(1,!0)},this.$moveLines=function(e,t){var n,r,i=this.selection;if(!i.inMultiSelectMode||this.inVirtualSelectionMode){var o=i.toOrientedRange();n=this.$getSelectedRows(o),r=this.session.$moveLines(n.first,n.last,t?0:e),t&&-1==e&&(r=0),o.moveBy(r,0),i.fromOrientedRange(o)}else{var a=i.rangeList.ranges;i.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var s=0,l=0,u=a.length,c=0;c<u;c++){var d=c;a[c].moveBy(s,0);for(var f=(n=this.$getSelectedRows(a[c])).first,h=n.last;++c<u;){l&&a[c].moveBy(l,0);var p=this.$getSelectedRows(a[c]);if(t&&p.first!=h)break;if(!t&&p.first>h+1)break;h=p.last}for(c--,s=this.session.$moveLines(f,h,t?0:e),t&&-1==e&&(d=c+1);d<=c;)a[d].moveBy(s,0),d++;t||(s=0),l+=s}i.fromOrientedRange(i.ranges[0]),i.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},this.$getSelectedRows=function(e){return e=(e||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(e.start.row),last:this.session.getRowFoldEnd(e.end.row)}},this.onCompositionStart=function(e){this.renderer.showComposition(e)},this.onCompositionUpdate=function(e){this.renderer.setCompositionText(e)},this.onCompositionEnd=function(){this.renderer.hideComposition()},this.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},this.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},this.isRowVisible=function(e){return e>=this.getFirstVisibleRow()&&e<=this.getLastVisibleRow()},this.isRowFullyVisible=function(e){return e>=this.renderer.getFirstFullyVisibleRow()&&e<=this.renderer.getLastFullyVisibleRow()},this.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},this.$moveByPage=function(e,t){var n=this.renderer,r=this.renderer.layerConfig,i=e*Math.floor(r.height/r.lineHeight);!0===t?this.selection.$moveSelection((function(){this.moveCursorBy(i,0)})):!1===t&&(this.selection.moveCursorBy(i,0),this.selection.clearSelection());var o=n.scrollTop;n.scrollBy(0,i*r.lineHeight),null!=t&&n.scrollCursorIntoView(null,.5),n.animateScrolling(o)},this.selectPageDown=function(){this.$moveByPage(1,!0)},this.selectPageUp=function(){this.$moveByPage(-1,!0)},this.gotoPageDown=function(){this.$moveByPage(1,!1)},this.gotoPageUp=function(){this.$moveByPage(-1,!1)},this.scrollPageDown=function(){this.$moveByPage(1)},this.scrollPageUp=function(){this.$moveByPage(-1)},this.scrollToRow=function(e){this.renderer.scrollToRow(e)},this.scrollToLine=function(e,t,n,r){this.renderer.scrollToLine(e,t,n,r)},this.centerSelection=function(){var e=this.getSelectionRange(),t={row:Math.floor(e.start.row+(e.end.row-e.start.row)/2),column:Math.floor(e.start.column+(e.end.column-e.start.column)/2)};this.renderer.alignCursor(t,.5)},this.getCursorPosition=function(){return this.selection.getCursor()},this.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},this.getSelectionRange=function(){return this.selection.getRange()},this.selectAll=function(){this.selection.selectAll()},this.clearSelection=function(){this.selection.clearSelection()},this.moveCursorTo=function(e,t){this.selection.moveCursorTo(e,t)},this.moveCursorToPosition=function(e){this.selection.moveCursorToPosition(e)},this.jumpToMatching=function(e,t){var n=this.getCursorPosition(),r=new b(this.session,n.row,n.column),i=r.getCurrentToken(),o=0;i&&-1!==i.type.indexOf("tag-name")&&(i=r.stepBackward());var a=i||r.stepForward();if(a){var s,l,u=!1,c={},d=n.column-a.start,f={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(a.value.match(/[{}()\[\]]/g)){for(;d<a.value.length&&!u;d++)if(f[a.value[d]])switch(l=f[a.value[d]]+"."+a.type.replace("rparen","lparen"),isNaN(c[l])&&(c[l]=0),a.value[d]){case"(":case"[":case"{":c[l]++;break;case")":case"]":case"}":c[l]--,-1===c[l]&&(s="bracket",u=!0)}}else-1!==a.type.indexOf("tag-name")&&(isNaN(c[a.value])&&(c[a.value]=0),"<"===i.value&&o>1?c[a.value]++:"</"===i.value&&c[a.value]--,-1===c[a.value]&&(s="tag",u=!0));u||(i=a,o++,a=r.stepForward(),d=0)}while(a&&!u);if(s){var p,m;if("bracket"===s)(p=this.session.getBracketRange(n))||(m=(p=new h(r.getCurrentTokenRow(),r.getCurrentTokenColumn()+d-1,r.getCurrentTokenRow(),r.getCurrentTokenColumn()+d-1)).start,(t||m.row===n.row&&Math.abs(m.column-n.column)<2)&&(p=this.session.getBracketRange(m)));else if("tag"===s){if(!a||-1===a.type.indexOf("tag-name"))return;if(0===(p=new h(r.getCurrentTokenRow(),r.getCurrentTokenColumn()-2,r.getCurrentTokenRow(),r.getCurrentTokenColumn()-2)).compare(n.row,n.column)){var g=this.session.getMatchingTags(n);g&&(g.openTag.contains(n.row,n.column)?m=(p=g.closeTag).start:(p=g.openTag,m=g.closeTag.start.row===n.row&&g.closeTag.start.column===n.column?p.end:p.start))}m=m||p.start}(m=p&&p.cursor||m)&&(e?p&&t?this.selection.setRange(p):p&&p.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(m.row,m.column):this.selection.moveTo(m.row,m.column))}}},this.gotoLine=function(e,t,n){this.selection.clearSelection(),this.session.unfold({row:e-1,column:t||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(e-1,t||0),this.isRowFullyVisible(e-1)||this.scrollToLine(e-1,!0,n)},this.navigateTo=function(e,t){this.selection.moveTo(e,t)},this.navigateUp=function(e){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var t=this.selection.anchor.getPosition();return this.moveCursorToPosition(t)}this.selection.clearSelection(),this.selection.moveCursorBy(-e||-1,0)},this.navigateDown=function(e){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var t=this.selection.anchor.getPosition();return this.moveCursorToPosition(t)}this.selection.clearSelection(),this.selection.moveCursorBy(e||1,0)},this.navigateLeft=function(e){if(this.selection.isEmpty())for(e=e||1;e--;)this.selection.moveCursorLeft();else{var t=this.getSelectionRange().start;this.moveCursorToPosition(t)}this.clearSelection()},this.navigateRight=function(e){if(this.selection.isEmpty())for(e=e||1;e--;)this.selection.moveCursorRight();else{var t=this.getSelectionRange().end;this.moveCursorToPosition(t)}this.clearSelection()},this.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},this.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},this.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},this.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},this.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},this.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},this.replace=function(e,t){t&&this.$search.set(t);var n=this.$search.find(this.session),r=0;return n?(this.$tryReplace(n,e)&&(r=1),this.selection.setSelectionRange(n),this.renderer.scrollSelectionIntoView(n.start,n.end),r):r},this.replaceAll=function(e,t){t&&this.$search.set(t);var n=this.$search.findAll(this.session),r=0;if(!n.length)return r;var i=this.getSelectionRange();this.selection.moveTo(0,0);for(var o=n.length-1;o>=0;--o)this.$tryReplace(n[o],e)&&r++;return this.selection.setSelectionRange(i),r},this.$tryReplace=function(e,t){var n=this.session.getTextRange(e);return null!==(t=this.$search.replace(n,t))?(e.end=this.session.replace(e,t),e):null},this.getLastSearchOptions=function(){return this.$search.getOptions()},this.find=function(e,t,n){t||(t={}),"string"==typeof e||e instanceof RegExp?t.needle=e:"object"==typeof e&&r.mixin(t,e);var i=this.selection.getRange();null==t.needle&&((e=this.session.getTextRange(i)||this.$search.$options.needle)||(i=this.session.getWordRange(i.start.row,i.start.column),e=this.session.getTextRange(i)),this.$search.set({needle:e})),this.$search.set(t),t.start||this.$search.set({start:i});var o=this.$search.find(this.session);return t.preventScroll?o:o?(this.revealRange(o,n),o):(t.backwards?i.start=i.end:i.end=i.start,void this.selection.setRange(i))},this.findNext=function(e,t){this.find({skipCurrent:!0,backwards:!1},e,t)},this.findPrevious=function(e,t){this.find(e,{skipCurrent:!0,backwards:!0},t)},this.revealRange=function(e,t){this.session.unfold(e),this.selection.setSelectionRange(e);var n=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(e.start,e.end,.5),!1!==t&&this.renderer.animateScrolling(n)},this.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach((function(e){e.destroy()})),this.$toDestroy=null),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},this.setAutoScrollEditorIntoView=function(e){if(e){var t,n=this,r=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var i=this.$scrollAnchor;i.style.cssText="position:absolute",this.container.insertBefore(i,this.container.firstChild);var o=this.on("changeSelection",(function(){r=!0})),a=this.renderer.on("beforeRender",(function(){r&&(t=n.renderer.container.getBoundingClientRect())})),s=this.renderer.on("afterRender",(function(){if(r&&t&&(n.isFocused()||n.searchBox&&n.searchBox.isFocused())){var e=n.renderer,o=e.$cursorLayer.$pixelPos,a=e.layerConfig,s=o.top-a.offset;null!=(r=o.top>=0&&s+t.top<0||!(o.top<a.height&&o.top+t.top+a.lineHeight>window.innerHeight)&&null)&&(i.style.top=s+"px",i.style.left=o.left+"px",i.style.height=a.lineHeight+"px",i.scrollIntoView(r)),r=t=null}}));this.setAutoScrollEditorIntoView=function(e){e||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",o),this.renderer.off("afterRender",s),this.renderer.off("beforeRender",a))}}},this.$resetCursorStyle=function(){var e=this.$cursorStyle||"ace",t=this.renderer.$cursorLayer;t&&(t.setSmoothBlinking(/smooth/.test(e)),t.isBlinking=!this.$readOnly&&"wide"!=e,i.setCssClass(t.element,"ace_slim-cursors",/slim/.test(e)))},this.prompt=function(e,t,n){var r=this;v.loadModule("./ext/prompt",(function(i){i.prompt(r,e,t,n)}))}}.call(_.prototype),v.defineOptions(_.prototype,"editor",{selectionStyle:{set:function(e){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:e})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(e){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(e){this.textInput.setReadOnly(e),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(e){this.textInput.setCopyWithEmptySelection(e)},initialValue:!1},cursorStyle:{set:function(e){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(e){this.setAutoScrollEditorIntoView(e)}},keyboardHandler:{set:function(e){this.setKeyboardHandler(e)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(e){this.session.setValue(e)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(e){this.setSession(e)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(e){this.renderer.$gutterLayer.setShowLineNumbers(e),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),e&&this.$relativeLineNumbers?w.attach(this):w.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(e){this.$showLineNumbers&&e?w.attach(this):w.detach(this)}},placeholder:{set:function(e){this.$updatePlaceholder||(this.$updatePlaceholder=function(){var e=this.session&&(this.renderer.$composition||this.getValue());if(e&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),i.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(e||this.renderer.placeholderNode)!e&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"");else{this.renderer.on("afterRender",this.$updatePlaceholder),i.addCssClass(this.container,"ace_hasPlaceholder");var t=i.createElement("div");t.className="ace_placeholder",t.textContent=this.$placeholder||"",this.renderer.placeholderNode=t,this.renderer.content.appendChild(this.renderer.placeholderNode)}}.bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},customScrollbar:"renderer",hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",highlightIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var w={getText:function(e,t){return(Math.abs(e.selection.lead.row-t)||t+1+(t<9?"·":""))+""},getWidth:function(e,t,n){return Math.max(t.toString().length,(n.lastRow+1).toString().length,2)*n.characterWidth},update:function(e,t){t.renderer.$loop.schedule(t.renderer.CHANGE_GUTTER)},attach:function(e){e.renderer.$gutterLayer.$renderer=this,e.on("changeSelection",this.update),this.update(null,e)},detach:function(e){e.renderer.$gutterLayer.$renderer==this&&(e.renderer.$gutterLayer.$renderer=null),e.off("changeSelection",this.update),this.update(null,e)}};t.Editor=_})),ace.define("ace/undomanager",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var r=function(){this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()};(function(){this.addSession=function(e){this.$session=e},this.add=function(e,t,n){if(!this.$fromUndo&&e!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),!1===t||!this.lastDeltas){this.lastDeltas=[];var r=this.$undoStack.length;r>this.$undoDepth-1&&this.$undoStack.splice(0,r-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),e.id=this.$rev=++this.$maxRev}"remove"!=e.action&&"insert"!=e.action||(this.$lastDelta=e),this.lastDeltas.push(e)}},this.addSelection=function(e,t){this.selections.push({value:e,rev:t||this.$rev})},this.startNewGroup=function(){return this.lastDeltas=null,this.$rev},this.markIgnored=function(e,t){null==t&&(t=this.$rev+1);for(var n=this.$undoStack,r=n.length;r--;){var i=n[r][0];if(i.id<=e)break;i.id<t&&(i.ignore=!0)}this.lastDeltas=null},this.getSelection=function(e,t){for(var n=this.selections,r=n.length;r--;){var i=n[r];if(i.rev<e)return t&&(i=n[r+1]),i}},this.getRevision=function(){return this.$rev},this.getDeltas=function(e,t){null==t&&(t=this.$rev+1);for(var n=this.$undoStack,r=null,i=0,o=n.length;o--;){var a=n[o][0];if(a.id<t&&!r&&(r=o+1),a.id<=e){i=o+1;break}}return n.slice(i,r)},this.getChangedRanges=function(e,t){null==t&&(t=this.$rev+1)},this.getChangedLines=function(e,t){null==t&&(t=this.$rev+1)},this.undo=function(e,t){this.lastDeltas=null;var n=this.$undoStack;if(function(e,t){for(var n=t;n--;){var r=e[n];if(r&&!r[0].ignore){for(;n<t-1;){var i=c(e[n],e[n+1]);e[n]=i[0],e[n+1]=i[1],n++}return!0}}}(n,n.length)){e||(e=this.$session),this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0;var r=n.pop(),i=null;return r&&(i=e.undoChanges(r,t),this.$redoStack.push(r),this.$syncRev()),this.$fromUndo=!1,i}},this.redo=function(e,t){if(this.lastDeltas=null,e||(e=this.$session),this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){var n=this.getDeltas(this.$redoStackBaseRev,this.$rev+1);!function(e,t){for(var n=0;n<t.length;n++)for(var r=t[n],i=0;i<r.length;i++)m(e,r[i])}(this.$redoStack,n),this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach((function(e){e[0].id=++this.$maxRev}),this)}var r=this.$redoStack.pop(),i=null;return r&&(i=e.redoChanges(r,t),this.$undoStack.push(r),this.$syncRev()),this.$fromUndo=!1,i},this.$syncRev=function(){var e=this.$undoStack,t=e[e.length-1],n=t&&t[0].id||0;this.$redoStackBaseRev=n,this.$rev=n},this.reset=function(){this.lastDeltas=null,this.$lastDelta=null,this.$undoStack=[],this.$redoStack=[],this.$rev=0,this.mark=0,this.$redoStackBaseRev=this.$rev,this.selections=[]},this.canUndo=function(){return this.$undoStack.length>0},this.canRedo=function(){return this.$redoStack.length>0},this.bookmark=function(e){null==e&&(e=this.$rev),this.mark=e},this.isAtBookmark=function(){return this.$rev===this.mark},this.toJSON=function(){},this.fromJSON=function(){},this.hasUndo=this.canUndo,this.hasRedo=this.canRedo,this.isClean=this.isAtBookmark,this.markClean=this.bookmark,this.$prettyPrint=function(e){return e?s(e):s(this.$undoStack)+"\n---\n"+s(this.$redoStack)}}).call(r.prototype);var i=e("./range").Range,o=i.comparePoints;i.comparePoints;function a(e){return{row:e.row,column:e.column}}function s(e){if(e=e||this,Array.isArray(e))return e.map(s).join("\n");var t="";return e.action?(t="insert"==e.action?"+":"-",t+="["+e.lines+"]"):e.value&&(t=Array.isArray(e.value)?e.value.map(l).join("\n"):l(e.value)),e.start&&(t+=l(e)),(e.id||e.rev)&&(t+="\t("+(e.id||e.rev)+")"),t}function l(e){return e.start.row+":"+e.start.column+"=>"+e.end.row+":"+e.end.column}function u(e,t){var n="insert"==e.action,r="insert"==t.action;if(n&&r)if(o(t.start,e.end)>=0)f(t,e,-1);else{if(!(o(t.start,e.start)<=0))return null;f(e,t,1)}else if(n&&!r)if(o(t.start,e.end)>=0)f(t,e,-1);else{if(!(o(t.end,e.start)<=0))return null;f(e,t,-1)}else if(!n&&r)if(o(t.start,e.start)>=0)f(t,e,1);else{if(!(o(t.start,e.start)<=0))return null;f(e,t,1)}else if(!n&&!r)if(o(t.start,e.start)>=0)f(t,e,1);else{if(!(o(t.end,e.start)<=0))return null;f(e,t,-1)}return[t,e]}function c(e,t){for(var n=e.length;n--;)for(var r=0;r<t.length;r++)if(!u(e[n],t[r])){for(;n<e.length;){for(;r--;)u(t[r],e[n]);r=t.length,n++}return[e,t]}return e.selectionBefore=t.selectionBefore=e.selectionAfter=t.selectionAfter=null,[t,e]}function d(e,t){var n="insert"==e.action,r="insert"==t.action;if(n&&r)o(e.start,t.start)<0?f(t,e,1):f(e,t,1);else if(n&&!r)o(e.start,t.end)>=0?f(e,t,-1):(o(e.start,t.start)<=0||f(e,i.fromPoints(t.start,e.start),-1),f(t,e,1));else if(!n&&r)o(t.start,e.end)>=0?f(t,e,-1):(o(t.start,e.start)<=0||f(t,i.fromPoints(e.start,t.start),-1),f(e,t,1));else if(!n&&!r)if(o(t.start,e.end)>=0)f(t,e,-1);else{var a,s;if(!(o(t.end,e.start)<=0))return o(e.start,t.start)<0&&(a=e,e=p(e,t.start)),o(e.end,t.end)>0&&(s=p(e,t.end)),h(t.end,e.start,e.end,-1),s&&!a&&(e.lines=s.lines,e.start=s.start,e.end=s.end,s=e),[t,a,s].filter(Boolean);f(e,t,-1)}return[t,e]}function f(e,t,n){h(e.start,t.start,t.end,n),h(e.end,t.start,t.end,n)}function h(e,t,n,r){e.row==(1==r?t:n).row&&(e.column+=r*(n.column-t.column)),e.row+=r*(n.row-t.row)}function p(e,t){var n=e.lines,r=e.end;e.end=a(t);var i=e.end.row-e.start.row,o=n.splice(i,n.length),s=i?t.column:t.column-e.start.column;return n.push(o[0].substring(0,s)),o[0]=o[0].substr(s),{start:a(t),end:r,lines:o,action:e.action}}function m(e,t){t=function(e){return{start:a(e.start),end:a(e.end),action:e.action,lines:e.lines.slice()}}(t);for(var n=e.length;n--;){for(var r=e[n],i=0;i<r.length;i++){var o=d(r[i],t);t=o[0],2!=o.length&&(o[2]?(r.splice(i+1,1,o[1],o[2]),i++):o[1]||(r.splice(i,1),i--))}r.length||e.splice(n,1)}return e}t.UndoManager=r})),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";var r=e("../lib/dom"),i=function(e,t){this.element=e,this.canvasHeight=t||5e5,this.element.style.height=2*this.canvasHeight+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0};(function(){this.moveContainer=function(e){r.translate(this.element,0,-e.firstRowScreen*e.lineHeight%this.canvasHeight-e.offset*this.$offsetCoefficient)},this.pageChanged=function(e,t){return Math.floor(e.firstRowScreen*e.lineHeight/this.canvasHeight)!==Math.floor(t.firstRowScreen*t.lineHeight/this.canvasHeight)},this.computeLineTop=function(e,t,n){var r=t.firstRowScreen*t.lineHeight,i=Math.floor(r/this.canvasHeight);return n.documentToScreenRow(e,0)*t.lineHeight-i*this.canvasHeight},this.computeLineHeight=function(e,t,n){return t.lineHeight*n.getRowLineCount(e)},this.getLength=function(){return this.cells.length},this.get=function(e){return this.cells[e]},this.shift=function(){this.$cacheCell(this.cells.shift())},this.pop=function(){this.$cacheCell(this.cells.pop())},this.push=function(e){if(Array.isArray(e)){this.cells.push.apply(this.cells,e);for(var t=r.createFragment(this.element),n=0;n<e.length;n++)t.appendChild(e[n].element);this.element.appendChild(t)}else this.cells.push(e),this.element.appendChild(e.element)},this.unshift=function(e){if(Array.isArray(e)){this.cells.unshift.apply(this.cells,e);for(var t=r.createFragment(this.element),n=0;n<e.length;n++)t.appendChild(e[n].element);this.element.firstChild?this.element.insertBefore(t,this.element.firstChild):this.element.appendChild(t)}else this.cells.unshift(e),this.element.insertAdjacentElement("afterbegin",e.element)},this.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},this.$cacheCell=function(e){e&&(e.element.remove(),this.cellCache.push(e))},this.createCell=function(e,t,n,i){var o=this.cellCache.pop();if(!o){var a=r.createElement("div");i&&i(a),this.element.appendChild(a),o={element:a,text:"",row:e}}return o.row=e,o}}).call(i.prototype),t.Lines=i})),ace.define("ace/layer/gutter",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/layer/lines"],(function(e,t,n){"use strict";var r=e("../lib/dom"),i=e("../lib/oop"),o=e("../lib/lang"),a=e("../lib/event_emitter").EventEmitter,s=e("./lines").Lines,l=function(e){this.element=r.createElement("div"),this.element.className="ace_layer ace_gutter-layer",e.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new s(this.element),this.$lines.$offsetCoefficient=1};function u(e){var t=document.createTextNode("");e.appendChild(t);var n=r.createElement("span");return e.appendChild(n),e}(function(){i.implement(this,a),this.setSession=function(e){this.session&&this.session.off("change",this.$updateAnnotations),this.session=e,e&&e.on("change",this.$updateAnnotations)},this.addGutterDecoration=function(e,t){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(e,t)},this.removeGutterDecoration=function(e,t){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(e,t)},this.setAnnotations=function(e){this.$annotations=[];for(var t=0;t<e.length;t++){var n=e[t],r=n.row,i=this.$annotations[r];i||(i=this.$annotations[r]={text:[]});var a=n.text;a=a?o.escapeHTML(a):n.html||"",-1===i.text.indexOf(a)&&i.text.push(a);var s=n.type,l=n.className;l?i.className=l:"error"==s?i.className=" ace_error":"warning"==s&&" ace_error"!=i.className?i.className=" ace_warning":"info"!=s||i.className||(i.className=" ace_info")}},this.$updateAnnotations=function(e){if(this.$annotations.length){var t=e.start.row,n=e.end.row-t;if(0===n);else if("remove"==e.action)this.$annotations.splice(t,n+1,null);else{var r=new Array(n+1);r.unshift(t,1),this.$annotations.splice.apply(this.$annotations,r)}}},this.update=function(e){this.config=e;var t=this.session,n=e.firstRow,r=Math.min(e.lastRow+e.gutterOffset,t.getLength()-1);this.oldLastRow=r,this.config=e,this.$lines.moveContainer(e),this.$updateCursorRow();for(var i=t.getNextFoldLine(n),o=i?i.start.row:1/0,a=null,s=-1,l=n;;){if(l>o&&(l=i.end.row+1,o=(i=t.getNextFoldLine(l,i))?i.start.row:1/0),l>r){for(;this.$lines.getLength()>s+1;)this.$lines.pop();break}(a=this.$lines.get(++s))?a.row=l:(a=this.$lines.createCell(l,e,this.session,u),this.$lines.push(a)),this.$renderCell(a,e,i,l),l++}this._signal("afterRender"),this.$updateGutterWidth(e)},this.$updateGutterWidth=function(e){var t=this.session,n=t.gutterRenderer||this.$renderer,r=t.$firstLineNumber,i=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||t.$useWrapMode)&&(i=t.getLength()+r-1);var o=n?n.getWidth(t,i,e):i.toString().length*e.characterWidth,a=this.$padding||this.$computePadding();(o+=a.left+a.right)===this.gutterWidth||isNaN(o)||(this.gutterWidth=o,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",o))},this.$updateCursorRow=function(){if(this.$highlightGutterLine){var e=this.session.selection.getCursor();this.$cursorRow!==e.row&&(this.$cursorRow=e.row)}},this.updateLineHighlight=function(){if(this.$highlightGutterLine){var e=this.session.selection.cursor.row;if(this.$cursorRow=e,!this.$cursorCell||this.$cursorCell.row!=e){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var t=this.$lines.cells;this.$cursorCell=null;for(var n=0;n<t.length;n++){var r=t[n];if(r.row>=this.$cursorRow){if(r.row>this.$cursorRow){var i=this.session.getFoldLine(this.$cursorRow);if(!(n>0&&i&&i.start.row==t[n-1].row))break;r=t[n-1]}r.element.className="ace_gutter-active-line "+r.element.className,this.$cursorCell=r;break}}}}},this.scrollLines=function(e){var t=this.config;if(this.config=e,this.$updateCursorRow(),this.$lines.pageChanged(t,e))return this.update(e);this.$lines.moveContainer(e);var n=Math.min(e.lastRow+e.gutterOffset,this.session.getLength()-1),r=this.oldLastRow;if(this.oldLastRow=n,!t||r<e.firstRow)return this.update(e);if(n<t.firstRow)return this.update(e);if(t.firstRow<e.firstRow)for(var i=this.session.getFoldedRowCount(t.firstRow,e.firstRow-1);i>0;i--)this.$lines.shift();if(r>n)for(i=this.session.getFoldedRowCount(n+1,r);i>0;i--)this.$lines.pop();e.firstRow<t.firstRow&&this.$lines.unshift(this.$renderLines(e,e.firstRow,t.firstRow-1)),n>r&&this.$lines.push(this.$renderLines(e,r+1,n)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(e)},this.$renderLines=function(e,t,n){for(var r=[],i=t,o=this.session.getNextFoldLine(i),a=o?o.start.row:1/0;i>a&&(i=o.end.row+1,a=(o=this.session.getNextFoldLine(i,o))?o.start.row:1/0),!(i>n);){var s=this.$lines.createCell(i,e,this.session,u);this.$renderCell(s,e,o,i),r.push(s),i++}return r},this.$renderCell=function(e,t,n,i){var o=e.element,a=this.session,s=o.childNodes[0],l=o.childNodes[1],u=a.$firstLineNumber,c=a.$breakpoints,d=a.$decorations,f=a.gutterRenderer||this.$renderer,h=this.$showFoldWidgets&&a.foldWidgets,p=n?n.start.row:Number.MAX_VALUE,m="ace_gutter-cell ";if(this.$highlightGutterLine&&(i==this.$cursorRow||n&&i<this.$cursorRow&&i>=p&&this.$cursorRow<=n.end.row)&&(m+="ace_gutter-active-line ",this.$cursorCell!=e&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=e)),c[i]&&(m+=c[i]),d[i]&&(m+=d[i]),this.$annotations[i]&&(m+=this.$annotations[i].className),o.className!=m&&(o.className=m),h){var g=h[i];null==g&&(g=h[i]=a.getFoldWidget(i))}if(g){m="ace_fold-widget ace_"+g;"start"==g&&i==p&&i<n.end.row?m+=" ace_closed":m+=" ace_open",l.className!=m&&(l.className=m);var v=t.lineHeight+"px";r.setStyle(l.style,"height",v),r.setStyle(l.style,"display","inline-block")}else l&&r.setStyle(l.style,"display","none");var b=(f?f.getText(a,i):i+u).toString();return b!==s.data&&(s.data=b),r.setStyle(e.element.style,"height",this.$lines.computeLineHeight(i,t,a)+"px"),r.setStyle(e.element.style,"top",this.$lines.computeLineTop(i,t,a)+"px"),e.text=b,e},this.$fixedWidth=!1,this.$highlightGutterLine=!0,this.$renderer="",this.setHighlightGutterLine=function(e){this.$highlightGutterLine=e},this.$showLineNumbers=!0,this.$renderer="",this.setShowLineNumbers=function(e){this.$renderer=!e&&{getWidth:function(){return 0},getText:function(){return""}}},this.getShowLineNumbers=function(){return this.$showLineNumbers},this.$showFoldWidgets=!0,this.setShowFoldWidgets=function(e){e?r.addCssClass(this.element,"ace_folding-enabled"):r.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=e,this.$padding=null},this.getShowFoldWidgets=function(){return this.$showFoldWidgets},this.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var e=r.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=(parseInt(e.borderLeftWidth)||0)+(parseInt(e.paddingLeft)||0)+1,this.$padding.right=(parseInt(e.borderRightWidth)||0)+(parseInt(e.paddingRight)||0),this.$padding},this.getRegion=function(e){var t=this.$padding||this.$computePadding(),n=this.element.getBoundingClientRect();return e.x<t.left+n.left?"markers":this.$showFoldWidgets&&e.x>n.right-t.right?"foldWidgets":void 0}}).call(l.prototype),t.Gutter=l})),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],(function(e,t,n){"use strict";var r=e("../range").Range,i=e("../lib/dom"),o=function(e){this.element=i.createElement("div"),this.element.className="ace_layer ace_marker-layer",e.appendChild(this.element)};(function(){this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setMarkers=function(e){this.markers=e},this.elt=function(e,t){var n=-1!=this.i&&this.element.childNodes[this.i];n?this.i++:(n=document.createElement("div"),this.element.appendChild(n),this.i=-1),n.style.cssText=t,n.className=e},this.update=function(e){if(e){var t;for(var n in this.config=e,this.i=0,this.markers){var r=this.markers[n];if(r.range){var i=r.range.clipRows(e.firstRow,e.lastRow);if(!i.isEmpty())if(i=i.toScreenRange(this.session),r.renderer){var o=this.$getTop(i.start.row,e),a=this.$padding+i.start.column*e.characterWidth;r.renderer(t,i,a,o,e)}else"fullLine"==r.type?this.drawFullLineMarker(t,i,r.clazz,e):"screenLine"==r.type?this.drawScreenLineMarker(t,i,r.clazz,e):i.isMultiLine()?"text"==r.type?this.drawTextMarker(t,i,r.clazz,e):this.drawMultiLineMarker(t,i,r.clazz,e):this.drawSingleLineMarker(t,i,r.clazz+" ace_start ace_br15",e)}else r.update(t,this,this.session,e)}if(-1!=this.i)for(;this.i<this.element.childElementCount;)this.element.removeChild(this.element.lastChild)}},this.$getTop=function(e,t){return(e-t.firstRowScreen)*t.lineHeight},this.drawTextMarker=function(e,t,n,i,o){for(var a=this.session,s=t.start.row,l=t.end.row,u=s,c=0,d=0,f=a.getScreenLastRowColumn(u),h=new r(u,t.start.column,u,d);u<=l;u++)h.start.row=h.end.row=u,h.start.column=u==s?t.start.column:a.getRowWrapIndent(u),h.end.column=f,c=d,d=f,f=u+1<l?a.getScreenLastRowColumn(u+1):u==l?0:t.end.column,this.drawSingleLineMarker(e,h,n+(u==s?" ace_start":"")+" ace_br"+((u==s||u==s+1&&t.start.column?1:0)|(c<d?2:0)|(d>f?4:0)|(u==l?8:0)),i,u==l?0:1,o)},this.drawMultiLineMarker=function(e,t,n,r,i){var o=this.$padding,a=r.lineHeight,s=this.$getTop(t.start.row,r),l=o+t.start.column*r.characterWidth;(i=i||"",this.session.$bidiHandler.isBidiRow(t.start.row))?((u=t.clone()).end.row=u.start.row,u.end.column=this.session.getLine(u.start.row).length,this.drawBidiSingleLineMarker(e,u,n+" ace_br1 ace_start",r,null,i)):this.elt(n+" ace_br1 ace_start","height:"+a+"px;right:0;top:"+s+"px;left:"+l+"px;"+(i||""));if(this.session.$bidiHandler.isBidiRow(t.end.row)){var u;(u=t.clone()).start.row=u.end.row,u.start.column=0,this.drawBidiSingleLineMarker(e,u,n+" ace_br12",r,null,i)}else{s=this.$getTop(t.end.row,r);var c=t.end.column*r.characterWidth;this.elt(n+" ace_br12","height:"+a+"px;width:"+c+"px;top:"+s+"px;left:"+o+"px;"+(i||""))}if(!((a=(t.end.row-t.start.row-1)*r.lineHeight)<=0)){s=this.$getTop(t.start.row+1,r);var d=(t.start.column?1:0)|(t.end.column?0:8);this.elt(n+(d?" ace_br"+d:""),"height:"+a+"px;right:0;top:"+s+"px;left:"+o+"px;"+(i||""))}},this.drawSingleLineMarker=function(e,t,n,r,i,o){if(this.session.$bidiHandler.isBidiRow(t.start.row))return this.drawBidiSingleLineMarker(e,t,n,r,i,o);var a=r.lineHeight,s=(t.end.column+(i||0)-t.start.column)*r.characterWidth,l=this.$getTop(t.start.row,r),u=this.$padding+t.start.column*r.characterWidth;this.elt(n,"height:"+a+"px;width:"+s+"px;top:"+l+"px;left:"+u+"px;"+(o||""))},this.drawBidiSingleLineMarker=function(e,t,n,r,i,o){var a=r.lineHeight,s=this.$getTop(t.start.row,r),l=this.$padding;this.session.$bidiHandler.getSelections(t.start.column,t.end.column).forEach((function(e){this.elt(n,"height:"+a+"px;width:"+e.width+(i||0)+"px;top:"+s+"px;left:"+(l+e.left)+"px;"+(o||""))}),this)},this.drawFullLineMarker=function(e,t,n,r,i){var o=this.$getTop(t.start.row,r),a=r.lineHeight;t.start.row!=t.end.row&&(a+=this.$getTop(t.end.row,r)-o),this.elt(n,"height:"+a+"px;top:"+o+"px;left:0;right:0;"+(i||""))},this.drawScreenLineMarker=function(e,t,n,r,i){var o=this.$getTop(t.start.row,r),a=r.lineHeight;this.elt(n,"height:"+a+"px;top:"+o+"px;left:0;right:0;"+(i||""))}}).call(o.prototype),t.Marker=o})),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("../lib/dom"),o=e("../lib/lang"),a=e("./lines").Lines,s=e("../lib/event_emitter").EventEmitter,l=function(e){this.dom=i,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",e.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new a(this.element)};(function(){r.implement(this,s),this.EOF_CHAR="¶",this.EOL_CHAR_LF="¬",this.EOL_CHAR_CRLF="¤",this.EOL_CHAR=this.EOL_CHAR_LF,this.TAB_CHAR="—",this.SPACE_CHAR="·",this.$padding=0,this.MAX_LINE_LENGTH=1e4,this.$updateEolChar=function(){var e=this.session.doc,t="\n"==e.getNewLineCharacter()&&"windows"!=e.getNewLineMode()?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=t)return this.EOL_CHAR=t,!0},this.setPadding=function(e){this.$padding=e,this.element.style.margin="0 "+e+"px"},this.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},this.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},this.$setFontMetrics=function(e){this.$fontMetrics=e,this.$fontMetrics.on("changeCharacterSize",function(e){this._signal("changeCharacterSize",e)}.bind(this)),this.$pollSizeChanges()},this.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},this.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},this.setSession=function(e){this.session=e,e&&this.$computeTabString()},this.showInvisibles=!1,this.showSpaces=!1,this.showTabs=!1,this.showEOL=!1,this.setShowInvisibles=function(e){return this.showInvisibles!=e&&(this.showInvisibles=e,"string"==typeof e?(this.showSpaces=/tab/i.test(e),this.showTabs=/space/i.test(e),this.showEOL=/eol/i.test(e)):this.showSpaces=this.showTabs=this.showEOL=e,this.$computeTabString(),!0)},this.displayIndentGuides=!0,this.setDisplayIndentGuides=function(e){return this.displayIndentGuides!=e&&(this.displayIndentGuides=e,this.$computeTabString(),!0)},this.$highlightIndentGuides=!0,this.setHighlightIndentGuides=function(e){return this.$highlightIndentGuides!==e&&(this.$highlightIndentGuides=e,e)},this.$tabStrings=[],this.onChangeTabSize=this.$computeTabString=function(){var e=this.session.getTabSize();this.tabSize=e;for(var t=this.$tabStrings=[0],n=1;n<e+1;n++){if(this.showTabs)(r=this.dom.createElement("span")).className="ace_invisible ace_invisible_tab",r.textContent=o.stringRepeat(this.TAB_CHAR,n),t.push(r);else t.push(this.dom.createTextNode(o.stringRepeat(" ",n),this.element))}if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var r,i="ace_indent-guide",a=this.showSpaces?" ace_invisible ace_invisible_space":"",s=this.showSpaces?o.stringRepeat(this.SPACE_CHAR,this.tabSize):o.stringRepeat(" ",this.tabSize),l=this.showTabs?" ace_invisible ace_invisible_tab":"",u=this.showTabs?o.stringRepeat(this.TAB_CHAR,this.tabSize):s;(r=this.dom.createElement("span")).className=i+a,r.textContent=s,this.$tabStrings[" "]=r,(r=this.dom.createElement("span")).className=i+l,r.textContent=u,this.$tabStrings["\t"]=r}},this.updateLines=function(e,t,n){if(this.config.lastRow!=e.lastRow||this.config.firstRow!=e.firstRow)return this.update(e);this.config=e;for(var r=Math.max(t,e.firstRow),i=Math.min(n,e.lastRow),o=this.element.childNodes,a=0,s=e.firstRow;s<r;s++){if(l=this.session.getFoldLine(s)){if(l.containsRow(r)){r=l.start.row;break}s=l.end.row}a++}for(var l,u=!1,c=(s=r,(l=this.session.getNextFoldLine(s))?l.start.row:1/0);s>c&&(s=l.end.row+1,c=(l=this.session.getNextFoldLine(s,l))?l.start.row:1/0),!(s>i);){var d=o[a++];if(d){this.dom.removeChildren(d),this.$renderLine(d,s,s==c&&l),u&&(d.style.top=this.$lines.computeLineTop(s,e,this.session)+"px");var f=e.lineHeight*this.session.getRowLength(s)+"px";d.style.height!=f&&(u=!0,d.style.height=f)}s++}if(u)for(;a<this.$lines.cells.length;){var h=this.$lines.cells[a++];h.element.style.top=this.$lines.computeLineTop(h.row,e,this.session)+"px"}},this.scrollLines=function(e){var t=this.config;if(this.config=e,this.$lines.pageChanged(t,e))return this.update(e);this.$lines.moveContainer(e);var n=e.lastRow,r=t?t.lastRow:-1;if(!t||r<e.firstRow)return this.update(e);if(n<t.firstRow)return this.update(e);if(!t||t.lastRow<e.firstRow)return this.update(e);if(e.lastRow<t.firstRow)return this.update(e);if(t.firstRow<e.firstRow)for(var i=this.session.getFoldedRowCount(t.firstRow,e.firstRow-1);i>0;i--)this.$lines.shift();if(t.lastRow>e.lastRow)for(i=this.session.getFoldedRowCount(e.lastRow+1,t.lastRow);i>0;i--)this.$lines.pop();e.firstRow<t.firstRow&&this.$lines.unshift(this.$renderLinesFragment(e,e.firstRow,t.firstRow-1)),e.lastRow>t.lastRow&&this.$lines.push(this.$renderLinesFragment(e,t.lastRow+1,e.lastRow)),this.$highlightIndentGuide()},this.$renderLinesFragment=function(e,t,n){for(var r=[],o=t,a=this.session.getNextFoldLine(o),s=a?a.start.row:1/0;o>s&&(o=a.end.row+1,s=(a=this.session.getNextFoldLine(o,a))?a.start.row:1/0),!(o>n);){var l=this.$lines.createCell(o,e,this.session),u=l.element;this.dom.removeChildren(u),i.setStyle(u.style,"height",this.$lines.computeLineHeight(o,e,this.session)+"px"),i.setStyle(u.style,"top",this.$lines.computeLineTop(o,e,this.session)+"px"),this.$renderLine(u,o,o==s&&a),this.$useLineGroups()?u.className="ace_line_group":u.className="ace_line",r.push(l),o++}return r},this.update=function(e){this.$lines.moveContainer(e),this.config=e;for(var t=e.firstRow,n=e.lastRow,r=this.$lines;r.getLength();)r.pop();r.push(this.$renderLinesFragment(e,t,n))},this.$textToken={text:!0,rparen:!0,lparen:!0},this.$renderToken=function(e,t,n,r){for(var i,a=this,s=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC\u2066\u2067\u2068\u202A\u202B\u202D\u202E\u202C\u2069]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,l=this.dom.createFragment(this.element),u=0;i=s.exec(r);){var c=i[1],d=i[2],f=i[3],h=i[4],p=i[5];if(a.showSpaces||!d){var m=u!=i.index?r.slice(u,i.index):"";if(u=i.index+i[0].length,m&&l.appendChild(this.dom.createTextNode(m,this.element)),c){var g=a.session.getScreenTabSize(t+i.index);l.appendChild(a.$tabStrings[g].cloneNode(!0)),t+=g-1}else if(d){if(a.showSpaces)(b=this.dom.createElement("span")).className="ace_invisible ace_invisible_space",b.textContent=o.stringRepeat(a.SPACE_CHAR,d.length),l.appendChild(b);else l.appendChild(this.com.createTextNode(d,this.element))}else if(f){(b=this.dom.createElement("span")).className="ace_invisible ace_invisible_space ace_invalid",b.textContent=o.stringRepeat(a.SPACE_CHAR,f.length),l.appendChild(b)}else if(h){t+=1,(b=this.dom.createElement("span")).style.width=2*a.config.characterWidth+"px",b.className=a.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",b.textContent=a.showSpaces?a.SPACE_CHAR:h,l.appendChild(b)}else if(p){t+=1,(b=this.dom.createElement("span")).style.width=2*a.config.characterWidth+"px",b.className="ace_cjk",b.textContent=p,l.appendChild(b)}}}if(l.appendChild(this.dom.createTextNode(u?r.slice(u):r,this.element)),this.$textToken[n.type])e.appendChild(l);else{var v="ace_"+n.type.replace(/\./g," ace_"),b=this.dom.createElement("span");"fold"==n.type&&(b.style.width=n.value.length*this.config.characterWidth+"px"),b.className=v,b.appendChild(l),e.appendChild(b)}return t+r.length},this.renderIndentGuide=function(e,t,n){var r=t.search(this.$indentGuideRe);if(r<=0||r>=n)return t;if(" "==t[0]){for(var i=(r-=r%this.tabSize)/this.tabSize,o=0;o<i;o++)e.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),t.substr(r)}if("\t"==t[0]){for(o=0;o<r;o++)e.appendChild(this.$tabStrings["\t"].cloneNode(!0));return this.$highlightIndentGuide(),t.substr(r)}return this.$highlightIndentGuide(),t},this.$highlightIndentGuide=function(){if(this.$highlightIndentGuides&&this.displayIndentGuides){this.$highlightIndentGuideMarker={indentLevel:void 0,start:void 0,end:void 0,dir:void 0};var e=this.session.doc.$lines;if(e){var t=this.session.selection.getCursor(),n=/^\s*/.exec(this.session.doc.getLine(t.row))[0].length,r=Math.floor(n/this.tabSize);if(this.$highlightIndentGuideMarker={indentLevel:r,start:t.row},this.session.$bracketHighlight)for(var i=this.session.$bracketHighlight.ranges,o=0;o<i.length;o++)if(t.row!==i[o].start.row){this.$highlightIndentGuideMarker.end=i[o].start.row,t.row>i[o].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}if(!this.$highlightIndentGuideMarker.end&&""!==e[t.row]&&t.column===e[t.row].length){this.$highlightIndentGuideMarker.dir=1;for(o=t.row+1;o<e.length;o++){var a=e[o],s=/^\s*/.exec(a)[0].length;if(""!==a&&(this.$highlightIndentGuideMarker.end=o,s<=n))break}}this.$renderHighlightIndentGuide()}}},this.$clearActiveIndentGuide=function(){for(var e=this.$lines.cells,t=0;t<e.length;t++){var n=e[t].element.childNodes;if(n.length>0)for(var r=0;r<n.length;r++)if(n[r].classList&&n[r].classList.contains("ace_indent-guide-active")){n[r].classList.remove("ace_indent-guide-active");break}}},this.$setIndentGuideActive=function(e,t){if(""!==this.session.doc.getLine(e.row)){var n=e.element.childNodes;if(n){var r=n[t-1];r&&r.classList&&r.classList.contains("ace_indent-guide")&&r.classList.add("ace_indent-guide-active")}}},this.$renderHighlightIndentGuide=function(){if(this.$lines){var e=this.$lines.cells;this.$clearActiveIndentGuide();var t=this.$highlightIndentGuideMarker.indentLevel;if(0!==t)if(1===this.$highlightIndentGuideMarker.dir)for(var n=0;n<e.length;n++){var r=e[n];if(this.$highlightIndentGuideMarker.end&&r.row>=this.$highlightIndentGuideMarker.start+1){if(r.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(r,t)}}else for(n=e.length-1;n>=0;n--){r=e[n];if(this.$highlightIndentGuideMarker.end&&r.row<this.$highlightIndentGuideMarker.start){if(r.row<=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(r,t)}}}},this.$createLineElement=function(e){var t=this.dom.createElement("div");return t.className="ace_line",t.style.height=this.config.lineHeight+"px",t},this.$renderWrappedLine=function(e,t,n){var r=0,i=0,a=n[0],s=0,l=this.$createLineElement();e.appendChild(l);for(var u=0;u<t.length;u++){var c=t[u],d=c.value;if(0==u&&this.displayIndentGuides){if(r=d.length,!(d=this.renderIndentGuide(l,d,a)))continue;r-=d.length}if(r+d.length<a)s=this.$renderToken(l,s,c,d),r+=d.length;else{for(;r+d.length>=a;)s=this.$renderToken(l,s,c,d.substring(0,a-r)),d=d.substring(a-r),r=a,l=this.$createLineElement(),e.appendChild(l),l.appendChild(this.dom.createTextNode(o.stringRepeat(" ",n.indent),this.element)),s=0,a=n[++i]||Number.MAX_VALUE;0!=d.length&&(r+=d.length,s=this.$renderToken(l,s,c,d))}}n[n.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(l,s,null,"",!0)},this.$renderSimpleLine=function(e,t){for(var n=0,r=0;r<t.length;r++){var i=t[r],o=i.value;if(0!=r||!this.displayIndentGuides||(o=this.renderIndentGuide(e,o))){if(n+o.length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(e,n,i,o);n=this.$renderToken(e,n,i,o)}}},this.$renderOverflowMessage=function(e,t,n,r,i){n&&this.$renderToken(e,t,n,r.slice(0,this.MAX_LINE_LENGTH-t));var o=this.dom.createElement("span");o.className="ace_inline_button ace_keyword ace_toggle_wrap",o.textContent=i?"<hide>":"<click to see more...>",e.appendChild(o)},this.$renderLine=function(e,t,n){if(n||0==n||(n=this.session.getFoldLine(t)),n)var r=this.$getFoldLineTokens(t,n);else r=this.session.getTokens(t);var i=e;if(r.length){var o=this.session.getRowSplitData(t);if(o&&o.length){this.$renderWrappedLine(e,r,o);i=e.lastChild}else{i=e;this.$useLineGroups()&&(i=this.$createLineElement(),e.appendChild(i)),this.$renderSimpleLine(i,r)}}else this.$useLineGroups()&&(i=this.$createLineElement(),e.appendChild(i));if(this.showEOL&&i){n&&(t=n.end.row);var a=this.dom.createElement("span");a.className="ace_invisible ace_invisible_eol",a.textContent=t==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,i.appendChild(a)}},this.$getFoldLineTokens=function(e,t){var n=this.session,r=[];var i=n.getTokens(e);return t.walk((function(e,t,o,a,s){null!=e?r.push({type:"fold",value:e}):(s&&(i=n.getTokens(t)),i.length&&function(e,t,n){for(var i=0,o=0;o+e[i].value.length<t;)if(o+=e[i].value.length,++i==e.length)return;for(o!=t&&((a=e[i].value.substring(t-o)).length>n-t&&(a=a.substring(0,n-t)),r.push({type:e[i].type,value:a}),o=t+a.length,i+=1);o<n&&i<e.length;){var a;(a=e[i].value).length+o>n?r.push({type:e[i].type,value:a.substring(0,n-o)}):r.push(e[i]),o+=a.length,i+=1}}(i,a,o))}),t.end.row,this.session.getLine(t.end.row).length),r},this.$useLineGroups=function(){return this.session.getUseWrapMode()},this.destroy=function(){}}).call(l.prototype),t.Text=l})),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";var r=e("../lib/dom"),i=function(e){this.element=r.createElement("div"),this.element.className="ace_layer ace_cursor-layer",e.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),r.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)};(function(){this.$updateOpacity=function(e){for(var t=this.cursors,n=t.length;n--;)r.setStyle(t[n].style,"opacity",e?"":"0")},this.$startCssAnimation=function(){for(var e=this.cursors,t=e.length;t--;)e[t].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout(function(){this.$isAnimating&&r.addCssClass(this.element,"ace_animate-blinking")}.bind(this))},this.$stopCssAnimation=function(){this.$isAnimating=!1,r.removeCssClass(this.element,"ace_animate-blinking")},this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setBlinking=function(e){e!=this.isBlinking&&(this.isBlinking=e,this.restartTimer())},this.setBlinkInterval=function(e){e!=this.blinkInterval&&(this.blinkInterval=e,this.restartTimer())},this.setSmoothBlinking=function(e){e!=this.smoothBlinking&&(this.smoothBlinking=e,r.setCssClass(this.element,"ace_smooth-blinking",e),this.$updateCursors(!0),this.restartTimer())},this.addCursor=function(){var e=r.createElement("div");return e.className="ace_cursor",this.element.appendChild(e),this.cursors.push(e),e},this.removeCursor=function(){if(this.cursors.length>1){var e=this.cursors.pop();return e.parentNode.removeChild(e),e}},this.hideCursor=function(){this.isVisible=!1,r.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.showCursor=function(){this.isVisible=!0,r.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.restartTimer=function(){var e=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,r.removeCssClass(this.element,"ace_smooth-blinking")),e(!0),this.isBlinking&&this.blinkInterval&&this.isVisible)if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout(function(){this.$isSmoothBlinking&&r.addCssClass(this.element,"ace_smooth-blinking")}.bind(this))),r.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var t=function(){this.timeoutId=setTimeout((function(){e(!1)}),.6*this.blinkInterval)}.bind(this);this.intervalId=setInterval((function(){e(!0),t()}),this.blinkInterval),t()}else this.$stopCssAnimation()},this.getPixelPosition=function(e,t){if(!this.config||!this.session)return{left:0,top:0};e||(e=this.session.selection.getCursor());var n=this.session.documentToScreenPosition(e);return{left:this.$padding+(this.session.$bidiHandler.isBidiRow(n.row,e.row)?this.session.$bidiHandler.getPosLeft(n.column):n.column*this.config.characterWidth),top:(n.row-(t?this.config.firstRowScreen:0))*this.config.lineHeight}},this.isCursorInView=function(e,t){return e.top>=0&&e.top<t.maxHeight},this.update=function(e){this.config=e;var t=this.session.$selectionMarkers,n=0,i=0;void 0!==t&&0!==t.length||(t=[{cursor:null}]);n=0;for(var o=t.length;n<o;n++){var a=this.getPixelPosition(t[n].cursor,!0);if(!((a.top>e.height+e.offset||a.top<0)&&n>1)){var s=this.cursors[i++]||this.addCursor(),l=s.style;this.drawCursor?this.drawCursor(s,a,e,t[n],this.session):this.isCursorInView(a,e)?(r.setStyle(l,"display","block"),r.translate(s,a.left,a.top),r.setStyle(l,"width",Math.round(e.characterWidth)+"px"),r.setStyle(l,"height",e.lineHeight+"px")):r.setStyle(l,"display","none")}}for(;this.cursors.length>i;)this.removeCursor();var u=this.session.getOverwrite();this.$setOverwrite(u),this.$pixelPos=a,this.restartTimer()},this.drawCursor=null,this.$setOverwrite=function(e){e!=this.overwrite&&(this.overwrite=e,e?r.addCssClass(this.element,"ace_overwrite-cursors"):r.removeCssClass(this.element,"ace_overwrite-cursors"))},this.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)}}).call(i.prototype),t.Cursor=i})),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],(function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./lib/dom"),o=e("./lib/event"),a=e("./lib/event_emitter").EventEmitter,s=32768,l=function(e){this.element=i.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+this.classSuffix,this.inner=i.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),e.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,o.addListener(this.element,"scroll",this.onScroll.bind(this)),o.addListener(this.element,"mousedown",o.preventDefault)};(function(){r.implement(this,a),this.setVisible=function(e){this.element.style.display=e?"":"none",this.isVisible=e,this.coeff=1}}).call(l.prototype);var u=function(e,t){l.call(this,e),this.scrollTop=0,this.scrollHeight=0,t.$scrollbarWidth=this.width=i.scrollbarWidth(e.ownerDocument),this.inner.style.width=this.element.style.width=(this.width||15)+5+"px",this.$minWidth=0};r.inherits(u,l),function(){this.classSuffix="-v",this.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,1!=this.coeff){var e=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-e)/(this.coeff-e)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(e){this.element.style.height=e+"px"},this.setInnerHeight=this.setScrollHeight=function(e){this.scrollHeight=e,e>s?(this.coeff=s/e,e=s):1!=this.coeff&&(this.coeff=1),this.inner.style.height=e+"px"},this.setScrollTop=function(e){this.scrollTop!=e&&(this.skipEvent=!0,this.scrollTop=e,this.element.scrollTop=e*this.coeff)}}.call(u.prototype);var c=function(e,t){l.call(this,e),this.scrollLeft=0,this.height=t.$scrollbarWidth,this.inner.style.height=this.element.style.height=(this.height||15)+5+"px"};r.inherits(c,l),function(){this.classSuffix="-h",this.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},this.getHeight=function(){return this.isVisible?this.height:0},this.setWidth=function(e){this.element.style.width=e+"px"},this.setInnerWidth=function(e){this.inner.style.width=e+"px"},this.setScrollWidth=function(e){this.inner.style.width=e+"px"},this.setScrollLeft=function(e){this.scrollLeft!=e&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=e)}}.call(c.prototype),t.ScrollBar=u,t.ScrollBarV=u,t.ScrollBarH=c,t.VScrollBar=u,t.HScrollBar=c})),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],(function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./lib/dom"),o=e("./lib/event"),a=e("./lib/event_emitter").EventEmitter;i.importCssString(".ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{\n position: absolute;\n background: rgba(128, 128, 128, 0.6);\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n border: 1px solid #bbb;\n border-radius: 2px;\n z-index: 8;\n}\n.ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h {\n position: absolute;\n z-index: 6;\n background: none; overflow: hidden!important;\n}\n.ace_editor>.ace_sb-v {\n z-index: 6;\n right: 0;\n top: 0;\n width: 12px;\n}.ace_editor>.ace_sb-v div {\n z-index: 8;\n right: 0;\n width: 100%;\n}.ace_editor>.ace_sb-h {\n bottom: 0;\n left: 0;\n height: 12px;\n}.ace_editor>.ace_sb-h div {\n bottom: 0;\n height: 100%;\n}.ace_editor>.ace_sb_grabbed {\n z-index: 8;\n background: #000;\n}");var s=function(e){this.element=i.createElement("div"),this.element.className="ace_sb"+this.classSuffix,this.inner=i.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,e.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,o.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")};(function(){r.implement(this,a),this.setVisible=function(e){this.element.style.display=e?"":"none",this.isVisible=e,this.coeff=1}}).call(s.prototype);var l=function(e,t){s.call(this,e),this.scrollTop=0,this.scrollHeight=0,this.parent=e,this.width=this.VScrollWidth,this.renderer=t,this.inner.style.width=this.element.style.width=(this.width||15)+"px",this.$minWidth=0};r.inherits(l,s),function(){this.classSuffix="-v",r.implement(this,a),this.onMouseDown=function(e,t){if("mousedown"===e&&0===o.getButton(t)&&2!==t.detail){if(t.target===this.inner){var n=this,r=t.clientY,i=t.clientY,a=this.thumbTop;o.capture(this.inner,(function(e){r=e.clientY}),(function(){clearInterval(s)}));var s=setInterval((function(){if(void 0!==r){var e=n.scrollTopFromThumbTop(a+r-i);e!==n.scrollTop&&n._emit("scroll",{data:e})}}),20);return o.preventDefault(t)}var l=t.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(l)}),o.preventDefault(t)}},this.getHeight=function(){return this.height},this.scrollTopFromThumbTop=function(e){var t=e*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return(t>>=0)<0?t=0:t>this.pageHeight-this.viewHeight&&(t=this.pageHeight-this.viewHeight),t},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(e){this.height=Math.max(0,e),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},this.setInnerHeight=this.setScrollHeight=function(e,t){(this.pageHeight!==e||t)&&(this.pageHeight=e,this.thumbHeight=this.slideHeight*this.viewHeight/this.pageHeight,this.thumbHeight>this.slideHeight&&(this.thumbHeight=this.slideHeight),this.thumbHeight<15&&(this.thumbHeight=15),this.inner.style.height=this.thumbHeight+"px",this.scrollTop>this.pageHeight-this.viewHeight&&(this.scrollTop=this.pageHeight-this.viewHeight,this.scrollTop<0&&(this.scrollTop=0),this._emit("scroll",{data:this.scrollTop})))},this.setScrollTop=function(e){this.scrollTop=e,e<0&&(e=0),this.thumbTop=e*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"}}.call(l.prototype);var u=function(e,t){s.call(this,e),this.scrollLeft=0,this.scrollWidth=0,this.height=this.HScrollHeight,this.inner.style.height=this.element.style.height=(this.height||12)+"px",this.renderer=t};r.inherits(u,s),function(){this.classSuffix="-h",r.implement(this,a),this.onMouseDown=function(e,t){if("mousedown"===e&&0===o.getButton(t)&&2!==t.detail){if(t.target===this.inner){var n=this,r=t.clientX,i=t.clientX,a=this.thumbLeft;o.capture(this.inner,(function(e){r=e.clientX}),(function(){clearInterval(s)}));var s=setInterval((function(){if(void 0!==r){var e=n.scrollLeftFromThumbLeft(a+r-i);e!==n.scrollLeft&&n._emit("scroll",{data:e})}}),20);return o.preventDefault(t)}var l=t.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(l)}),o.preventDefault(t)}},this.getHeight=function(){return this.isVisible?this.height:0},this.scrollLeftFromThumbLeft=function(e){var t=e*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return(t>>=0)<0?t=0:t>this.pageWidth-this.viewWidth&&(t=this.pageWidth-this.viewWidth),t},this.setWidth=function(e){this.width=Math.max(0,e),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},this.setInnerWidth=this.setScrollWidth=function(e,t){(this.pageWidth!==e||t)&&(this.pageWidth=e,this.thumbWidth=this.slideWidth*this.viewWidth/this.pageWidth,this.thumbWidth>this.slideWidth&&(this.thumbWidth=this.slideWidth),this.thumbWidth<15&&(this.thumbWidth=15),this.inner.style.width=this.thumbWidth+"px",this.scrollLeft>this.pageWidth-this.viewWidth&&(this.scrollLeft=this.pageWidth-this.viewWidth,this.scrollLeft<0&&(this.scrollLeft=0),this._emit("scroll",{data:this.scrollLeft})))},this.setScrollLeft=function(e){this.scrollLeft=e,e<0&&(e=0),this.thumbLeft=e*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"}}.call(u.prototype),t.ScrollBar=l,t.ScrollBarV=l,t.ScrollBarH=u,t.VScrollBar=l,t.HScrollBar=u})),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],(function(e,t,n){"use strict";var r=e("./lib/event"),i=function(e,t){this.onRender=e,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=t||window;var n=this;this._flush=function(e){n.pending=!1;var t=n.changes;if(t&&(r.blockIdle(100),n.changes=0,n.onRender(t)),n.changes){if(n.$recursionLimit--<0)return;n.schedule()}else n.$recursionLimit=2}};(function(){this.schedule=function(e){this.changes=this.changes|e,this.changes&&!this.pending&&(r.nextFrame(this._flush),this.pending=!0)},this.clear=function(e){var t=this.changes;return this.changes=0,t}}).call(i.prototype),t.RenderLoop=i})),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],(function(e,t,n){var r=e("../lib/oop"),i=e("../lib/dom"),o=e("../lib/lang"),a=e("../lib/event"),s=e("../lib/useragent"),l=e("../lib/event_emitter").EventEmitter,u=256,c="function"==typeof ResizeObserver,d=200,f=t.FontMetrics=function(e){this.el=i.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=i.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=i.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),e.appendChild(this.el),this.$measureNode.textContent=o.stringRepeat("X",u),this.$characterSize={width:0,height:0},c?this.$addObserver():this.checkForSizeChanges()};(function(){r.implement(this,l),this.$characterSize={width:0,height:0},this.$setMeasureNodeStyles=function(e,t){e.width=e.height="auto",e.left=e.top="0px",e.visibility="hidden",e.position="absolute",e.whiteSpace="pre",s.isIE<8?e["font-family"]="inherit":e.font="inherit",e.overflow=t?"hidden":"visible"},this.checkForSizeChanges=function(e){if(void 0===e&&(e=this.$measureSizes()),e&&(this.$characterSize.width!==e.width||this.$characterSize.height!==e.height)){this.$measureNode.style.fontWeight="bold";var t=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=e,this.charSizes=Object.create(null),this.allowBoldFonts=t&&t.width===e.width&&t.height===e.height,this._emit("changeCharacterSize",{data:e})}},this.$addObserver=function(){var e=this;this.$observer=new window.ResizeObserver((function(t){e.checkForSizeChanges()})),this.$observer.observe(this.$measureNode)},this.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var e=this;return this.$pollSizeChangesTimer=a.onIdle((function t(){e.checkForSizeChanges(),a.onIdle(t,500)}),500)},this.setPolling=function(e){e?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},this.$measureSizes=function(e){var t={height:(e||this.$measureNode).clientHeight,width:(e||this.$measureNode).clientWidth/u};return 0===t.width||0===t.height?null:t},this.$measureCharWidth=function(e){return this.$main.textContent=o.stringRepeat(e,u),this.$main.getBoundingClientRect().width/u},this.getCharacterWidth=function(e){var t=this.charSizes[e];return void 0===t&&(t=this.charSizes[e]=this.$measureCharWidth(e)/this.$characterSize.width),t},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},this.$getZoom=function e(t){return t&&t.parentElement?(window.getComputedStyle(t).zoom||1)*e(t.parentElement):1},this.$initTransformMeasureNodes=function(){var e=function(e,t){return["div",{style:"position: absolute;top:"+e+"px;left:"+t+"px;"}]};this.els=i.buildDom([e(0,0),e(d,0),e(0,d),e(d,d)],this.el)},this.transformCoordinates=function(e,t){e&&(e=o(1/this.$getZoom(this.el),e));function n(e,t,n){var r=e[1]*t[0]-e[0]*t[1];return[(-t[1]*n[0]+t[0]*n[1])/r,(+e[1]*n[0]-e[0]*n[1])/r]}function r(e,t){return[e[0]-t[0],e[1]-t[1]]}function i(e,t){return[e[0]+t[0],e[1]+t[1]]}function o(e,t){return[e*t[0],e*t[1]]}function a(e){var t=e.getBoundingClientRect();return[t.left,t.top]}this.els||this.$initTransformMeasureNodes();var s=a(this.els[0]),l=a(this.els[1]),u=a(this.els[2]),c=a(this.els[3]),f=n(r(c,l),r(c,u),r(i(l,u),i(c,s))),h=o(1+f[0],r(l,s)),p=o(1+f[1],r(u,s));if(t){var m=t,g=f[0]*m[0]/d+f[1]*m[1]/d+1,v=i(o(m[0],h),o(m[1],p));return i(o(1/g/d,v),s)}var b=r(e,s),y=n(r(h,o(f[0],b)),r(p,o(f[1],b)),b);return o(d,y)}}).call(f.prototype)})),ace.define("ace/css/editor.css",["require","exports","module"],(function(e,t,n){n.exports='/*\nstyles = []\nfor (var i = 1; i < 16; i++) {\n styles.push(".ace_br" + i + "{" + (\n ["top-left", "top-right", "bottom-right", "bottom-left"]\n ).map(function(x, j) {\n return i & (1<<j) ? "border-" + x + "-radius: 3px;" : "" \n }).filter(Boolean).join(" ") + "}")\n}\nstyles.join("\\n")\n*/\n.ace_br1 {border-top-left-radius : 3px;}\n.ace_br2 {border-top-right-radius : 3px;}\n.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}\n.ace_br4 {border-bottom-right-radius: 3px;}\n.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}\n.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}\n.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}\n.ace_br8 {border-bottom-left-radius : 3px;}\n.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}\n.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}\n.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}\n.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}\n.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}\n.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}\n.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}\n\n\n.ace_editor {\n position: relative;\n overflow: hidden;\n padding: 0;\n font: 12px/normal \'Monaco\', \'Menlo\', \'Ubuntu Mono\', \'Consolas\', \'source-code-pro\', monospace;\n direction: ltr;\n text-align: left;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n}\n\n.ace_scroller {\n position: absolute;\n overflow: hidden;\n top: 0;\n bottom: 0;\n background-color: inherit;\n -ms-user-select: none;\n -moz-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n cursor: text;\n}\n\n.ace_content {\n position: absolute;\n box-sizing: border-box;\n min-width: 100%;\n contain: style size layout;\n font-variant-ligatures: no-common-ligatures;\n}\n\n.ace_dragging .ace_scroller:before{\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n content: \'\';\n background: rgba(250, 250, 250, 0.01);\n z-index: 1000;\n}\n.ace_dragging.ace_dark .ace_scroller:before{\n background: rgba(0, 0, 0, 0.01);\n}\n\n.ace_gutter {\n position: absolute;\n overflow : hidden;\n width: auto;\n top: 0;\n bottom: 0;\n left: 0;\n cursor: default;\n z-index: 4;\n -ms-user-select: none;\n -moz-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n contain: style size layout;\n}\n\n.ace_gutter-active-line {\n position: absolute;\n left: 0;\n right: 0;\n}\n\n.ace_scroller.ace_scroll-left {\n box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;\n}\n\n.ace_gutter-cell {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n padding-left: 19px;\n padding-right: 6px;\n background-repeat: no-repeat;\n}\n\n.ace_gutter-cell.ace_error {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");\n background-repeat: no-repeat;\n background-position: 2px center;\n}\n\n.ace_gutter-cell.ace_warning {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");\n background-position: 2px center;\n}\n\n.ace_gutter-cell.ace_info {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");\n background-position: 2px center;\n}\n.ace_dark .ace_gutter-cell.ace_info {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");\n}\n\n.ace_scrollbar {\n contain: strict;\n position: absolute;\n right: 0;\n bottom: 0;\n z-index: 6;\n}\n\n.ace_scrollbar-inner {\n position: absolute;\n cursor: text;\n left: 0;\n top: 0;\n}\n\n.ace_scrollbar-v{\n overflow-x: hidden;\n overflow-y: scroll;\n top: 0;\n}\n\n.ace_scrollbar-h {\n overflow-x: scroll;\n overflow-y: hidden;\n left: 0;\n}\n\n.ace_print-margin {\n position: absolute;\n height: 100%;\n}\n\n.ace_text-input {\n position: absolute;\n z-index: 0;\n width: 0.5em;\n height: 1em;\n opacity: 0;\n background: transparent;\n -moz-appearance: none;\n appearance: none;\n border: none;\n resize: none;\n outline: none;\n overflow: hidden;\n font: inherit;\n padding: 0 1px;\n margin: 0 -1px;\n contain: strict;\n -ms-user-select: text;\n -moz-user-select: text;\n -webkit-user-select: text;\n user-select: text;\n /*with `pre-line` chrome inserts &nbsp; instead of space*/\n white-space: pre!important;\n}\n.ace_text-input.ace_composition {\n background: transparent;\n color: inherit;\n z-index: 1000;\n opacity: 1;\n}\n.ace_composition_placeholder { color: transparent }\n.ace_composition_marker { \n border-bottom: 1px solid;\n position: absolute;\n border-radius: 0;\n margin-top: 1px;\n}\n\n[ace_nocontext=true] {\n transform: none!important;\n filter: none!important;\n clip-path: none!important;\n mask : none!important;\n contain: none!important;\n perspective: none!important;\n mix-blend-mode: initial!important;\n z-index: auto;\n}\n\n.ace_layer {\n z-index: 1;\n position: absolute;\n overflow: hidden;\n /* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/\n word-wrap: normal;\n white-space: pre;\n height: 100%;\n width: 100%;\n box-sizing: border-box;\n /* setting pointer-events: auto; on node under the mouse, which changes\n during scroll, will break mouse wheel scrolling in Safari */\n pointer-events: none;\n}\n\n.ace_gutter-layer {\n position: relative;\n width: auto;\n text-align: right;\n pointer-events: auto;\n height: 1000000px;\n contain: style size layout;\n}\n\n.ace_text-layer {\n font: inherit !important;\n position: absolute;\n height: 1000000px;\n width: 1000000px;\n contain: style size layout;\n}\n\n.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {\n contain: style size layout;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n}\n\n.ace_hidpi .ace_text-layer,\n.ace_hidpi .ace_gutter-layer,\n.ace_hidpi .ace_content,\n.ace_hidpi .ace_gutter {\n contain: strict;\n will-change: transform;\n}\n.ace_hidpi .ace_text-layer > .ace_line, \n.ace_hidpi .ace_text-layer > .ace_line_group {\n contain: strict;\n}\n\n.ace_cjk {\n display: inline-block;\n text-align: center;\n}\n\n.ace_cursor-layer {\n z-index: 4;\n}\n\n.ace_cursor {\n z-index: 4;\n position: absolute;\n box-sizing: border-box;\n border-left: 2px solid;\n /* workaround for smooth cursor repaintng whole screen in chrome */\n transform: translatez(0);\n}\n\n.ace_multiselect .ace_cursor {\n border-left-width: 1px;\n}\n\n.ace_slim-cursors .ace_cursor {\n border-left-width: 1px;\n}\n\n.ace_overwrite-cursors .ace_cursor {\n border-left-width: 0;\n border-bottom: 1px solid;\n}\n\n.ace_hidden-cursors .ace_cursor {\n opacity: 0.2;\n}\n\n.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {\n opacity: 0;\n}\n\n.ace_smooth-blinking .ace_cursor {\n transition: opacity 0.18s;\n}\n\n.ace_animate-blinking .ace_cursor {\n animation-duration: 1000ms;\n animation-timing-function: step-end;\n animation-name: blink-ace-animate;\n animation-iteration-count: infinite;\n}\n\n.ace_animate-blinking.ace_smooth-blinking .ace_cursor {\n animation-duration: 1000ms;\n animation-timing-function: ease-in-out;\n animation-name: blink-ace-animate-smooth;\n}\n \n@keyframes blink-ace-animate {\n from, to { opacity: 1; }\n 60% { opacity: 0; }\n}\n\n@keyframes blink-ace-animate-smooth {\n from, to { opacity: 1; }\n 45% { opacity: 1; }\n 60% { opacity: 0; }\n 85% { opacity: 0; }\n}\n\n.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {\n position: absolute;\n z-index: 3;\n}\n\n.ace_marker-layer .ace_selection {\n position: absolute;\n z-index: 5;\n}\n\n.ace_marker-layer .ace_bracket {\n position: absolute;\n z-index: 6;\n}\n\n.ace_marker-layer .ace_error_bracket {\n position: absolute;\n border-bottom: 1px solid #DE5555;\n border-radius: 0;\n}\n\n.ace_marker-layer .ace_active-line {\n position: absolute;\n z-index: 2;\n}\n\n.ace_marker-layer .ace_selected-word {\n position: absolute;\n z-index: 4;\n box-sizing: border-box;\n}\n\n.ace_line .ace_fold {\n box-sizing: border-box;\n\n display: inline-block;\n height: 11px;\n margin-top: -2px;\n vertical-align: middle;\n\n background-image:\n url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),\n url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");\n background-repeat: no-repeat, repeat-x;\n background-position: center center, top left;\n color: transparent;\n\n border: 1px solid black;\n border-radius: 2px;\n\n cursor: pointer;\n pointer-events: auto;\n}\n\n.ace_dark .ace_fold {\n}\n\n.ace_fold:hover{\n background-image:\n url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),\n url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");\n}\n\n.ace_tooltip {\n background-color: #FFF;\n background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));\n border: 1px solid gray;\n border-radius: 1px;\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);\n color: black;\n max-width: 100%;\n padding: 3px 4px;\n position: fixed;\n z-index: 999999;\n box-sizing: border-box;\n cursor: default;\n white-space: pre;\n word-wrap: break-word;\n line-height: normal;\n font-style: normal;\n font-weight: normal;\n letter-spacing: normal;\n pointer-events: none;\n}\n\n.ace_folding-enabled > .ace_gutter-cell {\n padding-right: 13px;\n}\n\n.ace_fold-widget {\n box-sizing: border-box;\n\n margin: 0 -12px 0 1px;\n display: none;\n width: 11px;\n vertical-align: top;\n\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");\n background-repeat: no-repeat;\n background-position: center;\n\n border-radius: 3px;\n \n border: 1px solid transparent;\n cursor: pointer;\n}\n\n.ace_folding-enabled .ace_fold-widget {\n display: inline-block; \n}\n\n.ace_fold-widget.ace_end {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");\n}\n\n.ace_fold-widget.ace_closed {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");\n}\n\n.ace_fold-widget:hover {\n border: 1px solid rgba(0, 0, 0, 0.3);\n background-color: rgba(255, 255, 255, 0.2);\n box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);\n}\n\n.ace_fold-widget:active {\n border: 1px solid rgba(0, 0, 0, 0.4);\n background-color: rgba(0, 0, 0, 0.05);\n box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);\n}\n/**\n * Dark version for fold widgets\n */\n.ace_dark .ace_fold-widget {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");\n}\n.ace_dark .ace_fold-widget.ace_end {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");\n}\n.ace_dark .ace_fold-widget.ace_closed {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");\n}\n.ace_dark .ace_fold-widget:hover {\n box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);\n background-color: rgba(255, 255, 255, 0.1);\n}\n.ace_dark .ace_fold-widget:active {\n box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);\n}\n\n.ace_inline_button {\n border: 1px solid lightgray;\n display: inline-block;\n margin: -1px 8px;\n padding: 0 5px;\n pointer-events: auto;\n cursor: pointer;\n}\n.ace_inline_button:hover {\n border-color: gray;\n background: rgba(200,200,200,0.2);\n display: inline-block;\n pointer-events: auto;\n}\n\n.ace_fold-widget.ace_invalid {\n background-color: #FFB4B4;\n border-color: #DE5555;\n}\n\n.ace_fade-fold-widgets .ace_fold-widget {\n transition: opacity 0.4s ease 0.05s;\n opacity: 0;\n}\n\n.ace_fade-fold-widgets:hover .ace_fold-widget {\n transition: opacity 0.05s ease 0.05s;\n opacity:1;\n}\n\n.ace_underline {\n text-decoration: underline;\n}\n\n.ace_bold {\n font-weight: bold;\n}\n\n.ace_nobold .ace_bold {\n font-weight: normal;\n}\n\n.ace_italic {\n font-style: italic;\n}\n\n\n.ace_error-marker {\n background-color: rgba(255, 0, 0,0.2);\n position: absolute;\n z-index: 9;\n}\n\n.ace_highlight-marker {\n background-color: rgba(255, 255, 0,0.2);\n position: absolute;\n z-index: 8;\n}\n\n.ace_mobile-menu {\n position: absolute;\n line-height: 1.5;\n border-radius: 4px;\n -ms-user-select: none;\n -moz-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n background: white;\n box-shadow: 1px 3px 2px grey;\n border: 1px solid #dcdcdc;\n color: black;\n}\n.ace_dark > .ace_mobile-menu {\n background: #333;\n color: #ccc;\n box-shadow: 1px 3px 2px grey;\n border: 1px solid #444;\n\n}\n.ace_mobile-button {\n padding: 2px;\n cursor: pointer;\n overflow: hidden;\n}\n.ace_mobile-button:hover {\n background-color: #eee;\n opacity:1;\n}\n.ace_mobile-button:active {\n background-color: #ddd;\n}\n\n.ace_placeholder {\n font-family: arial;\n transform: scale(0.9);\n transform-origin: left;\n white-space: pre;\n opacity: 0.7;\n margin: 0 10px;\n}'})),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],(function(e,t,n){"use strict";var r=e("../lib/dom"),i=e("../lib/oop"),o=e("../lib/event_emitter").EventEmitter,a=function(e,t){this.canvas=r.createElement("canvas"),this.renderer=t,this.pixelRatio=1,this.maxHeight=t.layerConfig.maxHeight,this.lineHeight=t.layerConfig.lineHeight,this.canvasHeight=e.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=e.width,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight,this.canvas.style.top="0px",this.canvas.style.right="0px",this.canvas.style.zIndex="7px",this.canvas.style.position="absolute",this.colors={},this.colors.dark={error:"rgba(255, 18, 18, 1)",warning:"rgba(18, 136, 18, 1)",info:"rgba(18, 18, 136, 1)"},this.colors.light={error:"rgb(255,51,51)",warning:"rgb(32,133,72)",info:"rgb(35,68,138)"},e.element.appendChild(this.canvas)};(function(){i.implement(this,o),this.$updateDecorators=function(e){var t=!0===this.renderer.theme.isDark?this.colors.dark:this.colors.light;e&&(this.maxHeight=e.maxHeight,this.lineHeight=e.lineHeight,this.canvasHeight=e.height,(e.lastRow+1)*this.lineHeight<this.canvasHeight?this.heightRatio=1:this.heightRatio=this.canvasHeight/this.maxHeight);var n=this.canvas.getContext("2d");var r=this.renderer.session.$annotations;if(n.clearRect(0,0,this.canvas.width,this.canvas.height),r){var i={info:1,warning:2,error:3};r.forEach((function(e){e.priority=i[e.type]||null})),r=r.sort((function(e,t){return e.priority<t.priority?-1:e.priority>t.priority?1:0}));for(var o=this.renderer.session.$foldData,a=0;a<r.length;a++){var s=r[a].row,l=this.compensateFoldRows(s,o),u=Math.round((s-l)*this.lineHeight*this.heightRatio),c=Math.round((s-l)*this.lineHeight*this.heightRatio),d=Math.round(((s-l)*this.lineHeight+this.lineHeight)*this.heightRatio);if(d-c<this.minDecorationHeight){var f=(c+d)/2|0;f<this.halfMinDecorationHeight?f=this.halfMinDecorationHeight:f+this.halfMinDecorationHeight>this.canvasHeight&&(f=this.canvasHeight-this.halfMinDecorationHeight),c=Math.round(f-this.halfMinDecorationHeight),d=Math.round(f+this.halfMinDecorationHeight)}n.fillStyle=t[r[a].type]||null,n.fillRect(0,u,this.canvasWidth,d-c)}}var h=this.renderer.session.selection.getCursor();if(h){l=this.compensateFoldRows(h.row,o),u=Math.round((h.row-l)*this.lineHeight*this.heightRatio);n.fillStyle="rgba(0, 0, 0, 0.5)",n.fillRect(0,u,this.canvasWidth,2)}},this.compensateFoldRows=function(e,t){var n=0;if(t&&t.length>0)for(var r=0;r<t.length;r++)e>t[r].start.row&&e<t[r].end.row?n+=e-t[r].start.row:e>=t[r].end.row&&(n+=t[r].end.row-t[r].start.row);return n}}).call(a.prototype),t.Decorator=a})),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/scrollbar_custom","ace/scrollbar_custom","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/css/editor.css","ace/layer/decorators","ace/lib/useragent"],(function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./lib/dom"),o=e("./config"),a=e("./layer/gutter").Gutter,s=e("./layer/marker").Marker,l=e("./layer/text").Text,u=e("./layer/cursor").Cursor,c=e("./scrollbar").HScrollBar,d=e("./scrollbar").VScrollBar,f=e("./scrollbar_custom").HScrollBar,h=e("./scrollbar_custom").VScrollBar,p=e("./renderloop").RenderLoop,m=e("./layer/font_metrics").FontMetrics,g=e("./lib/event_emitter").EventEmitter,v=e("./css/editor.css"),b=e("./layer/decorators").Decorator,y=e("./lib/useragent"),_=y.isIE;i.importCssString(v,"ace_editor.css",!1);var w=function(e,t){var n=this;this.container=e||i.createElement("div"),i.addCssClass(this.container,"ace_editor"),i.HI_DPI&&i.addCssClass(this.container,"ace_hidpi"),this.setTheme(t),null==o.get("useStrictCSP")&&o.set("useStrictCSP",!1),this.$gutter=i.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=i.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=i.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new a(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new s(this.content);var r=this.$textLayer=new l(this.content);this.canvas=r.element,this.$markerFront=new s(this.content),this.$cursorLayer=new u(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new d(this.container,this),this.scrollBarH=new c(this.container,this),this.scrollBarV.on("scroll",(function(e){n.$scrollAnimation||n.session.setScrollTop(e.data-n.scrollMargin.top)})),this.scrollBarH.on("scroll",(function(e){n.$scrollAnimation||n.session.setScrollLeft(e.data-n.scrollMargin.left)})),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new m(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",(function(e){n.updateCharacterSize(),n.onResize(!0,n.gutterWidth,n.$size.width,n.$size.height),n._signal("changeCharacterSize",e)})),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!y.isIOS,this.$loop=new p(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),o.resetOptions(this),o._signal("renderer",this)};(function(){this.CHANGE_CURSOR=1,this.CHANGE_MARKER=2,this.CHANGE_GUTTER=4,this.CHANGE_SCROLL=8,this.CHANGE_LINES=16,this.CHANGE_TEXT=32,this.CHANGE_SIZE=64,this.CHANGE_MARKER_BACK=128,this.CHANGE_MARKER_FRONT=256,this.CHANGE_FULL=512,this.CHANGE_H_SCROLL=1024,r.implement(this,g),this.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),i.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},this.setSession=function(e){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=e,e&&this.scrollMargin.top&&e.getScrollTop()<=0&&e.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(e),this.$markerBack.setSession(e),this.$markerFront.setSession(e),this.$gutterLayer.setSession(e),this.$textLayer.setSession(e),e&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},this.updateLines=function(e,t,n){if(void 0===t&&(t=1/0),this.$changedLines?(this.$changedLines.firstRow>e&&(this.$changedLines.firstRow=e),this.$changedLines.lastRow<t&&(this.$changedLines.lastRow=t)):this.$changedLines={firstRow:e,lastRow:t},this.$changedLines.lastRow<this.layerConfig.firstRow){if(!n)return;this.$changedLines.lastRow=this.layerConfig.lastRow}this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},this.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},this.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},this.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},this.updateFull=function(e){e?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},this.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},this.$changes=0,this.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},this.onResize=function(e,t,n,r){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=e?1:0;var i=this.container;r||(r=i.clientHeight||i.scrollHeight),n||(n=i.clientWidth||i.scrollWidth);var o=this.$updateCachedSize(e,t,n,r);if(!this.$size.scrollerHeight||!n&&!r)return this.resizing=0;e&&(this.$gutterLayer.$padding=null),e?this.$renderChanges(o|this.$changes,!0):this.$loop.schedule(o|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},this.$updateCachedSize=function(e,t,n,r){r-=this.$extraHeight||0;var o=0,a=this.$size,s={width:a.width,height:a.height,scrollerHeight:a.scrollerHeight,scrollerWidth:a.scrollerWidth};if(r&&(e||a.height!=r)&&(a.height=r,o|=this.CHANGE_SIZE,a.scrollerHeight=a.height,this.$horizScroll&&(a.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(a.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",o|=this.CHANGE_SCROLL),n&&(e||a.width!=n)){o|=this.CHANGE_SIZE,a.width=n,null==t&&(t=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=t,i.setStyle(this.scrollBarH.element.style,"left",t+"px"),i.setStyle(this.scroller.style,"left",t+this.margin.left+"px"),a.scrollerWidth=Math.max(0,n-t-this.scrollBarV.getWidth()-this.margin.h),i.setStyle(this.$gutter.style,"left",this.margin.left+"px");var l=this.scrollBarV.getWidth()+"px";i.setStyle(this.scrollBarH.element.style,"right",l),i.setStyle(this.scroller.style,"right",l),i.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(a.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||e)&&(o|=this.CHANGE_FULL)}return a.$dirty=!n||!r,o&&this._signal("resize",s),o},this.onGutterResize=function(e){var t=this.$showGutter?e:0;t!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,t,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()||this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},this.adjustWrapLimit=function(){var e=this.$size.scrollerWidth-2*this.$padding,t=Math.floor(e/this.characterWidth);return this.session.adjustWrapLimit(t,this.$showPrintMargin&&this.$printMarginColumn)},this.setAnimatedScroll=function(e){this.setOption("animatedScroll",e)},this.getAnimatedScroll=function(){return this.$animatedScroll},this.setShowInvisibles=function(e){this.setOption("showInvisibles",e),this.session.$bidiHandler.setShowInvisibles(e)},this.getShowInvisibles=function(){return this.getOption("showInvisibles")},this.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},this.setDisplayIndentGuides=function(e){this.setOption("displayIndentGuides",e)},this.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},this.setHighlightIndentGuides=function(e){this.setOption("highlightIndentGuides",e)},this.setShowPrintMargin=function(e){this.setOption("showPrintMargin",e)},this.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},this.setPrintMarginColumn=function(e){this.setOption("printMarginColumn",e)},this.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},this.getShowGutter=function(){return this.getOption("showGutter")},this.setShowGutter=function(e){return this.setOption("showGutter",e)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},this.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.$updatePrintMargin=function(){if(this.$showPrintMargin||this.$printMarginEl){if(!this.$printMarginEl){var e=i.createElement("div");e.className="ace_layer ace_print-margin-layer",this.$printMarginEl=i.createElement("div"),this.$printMarginEl.className="ace_print-margin",e.appendChild(this.$printMarginEl),this.content.insertBefore(e,this.content.firstChild)}var t=this.$printMarginEl.style;t.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",t.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&-1==this.session.$wrap&&this.adjustWrapLimit()}},this.getContainerElement=function(){return this.container},this.getMouseEventTarget=function(){return this.scroller},this.getTextAreaContainer=function(){return this.container},this.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var e=this.textarea.style,t=this.$composition;if(this.$keepTextAreaAtCursor||t){var n=this.$cursorLayer.$pixelPos;if(n){t&&t.markerRange&&(n=this.$cursorLayer.getPixelPosition(t.markerRange.start,!0));var r=this.layerConfig,o=n.top,a=n.left;o-=r.offset;var s=t&&t.useTextareaForIME?this.lineHeight:_?0:1;if(o<0||o>r.height-s)i.translate(this.textarea,0,0);else{var l=1,u=this.$size.height-s;if(t)if(t.useTextareaForIME){var c=this.textarea.value;l=this.characterWidth*this.session.$getStringScreenWidth(c)[0]}else o+=this.lineHeight+2;else o+=this.lineHeight;(a-=this.scrollLeft)>this.$size.scrollerWidth-l&&(a=this.$size.scrollerWidth-l),a+=this.gutterWidth+this.margin.left,i.setStyle(e,"height",s+"px"),i.setStyle(e,"width",l+"px"),i.translate(this.textarea,Math.min(a,this.$size.scrollerWidth-l),Math.min(o,u))}}}else i.translate(this.textarea,-100,0)}},this.getFirstVisibleRow=function(){return this.layerConfig.firstRow},this.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(0===this.layerConfig.offset?0:1)},this.getLastFullyVisibleRow=function(){var e=this.layerConfig,t=e.lastRow;return this.session.documentToScreenRow(t,0)*e.lineHeight-this.session.getScrollTop()>e.height-e.lineHeight?t-1:t},this.getLastVisibleRow=function(){return this.layerConfig.lastRow},this.$padding=null,this.setPadding=function(e){this.$padding=e,this.$textLayer.setPadding(e),this.$cursorLayer.setPadding(e),this.$markerFront.setPadding(e),this.$markerBack.setPadding(e),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},this.setScrollMargin=function(e,t,n,r){var i=this.scrollMargin;i.top=0|e,i.bottom=0|t,i.right=0|r,i.left=0|n,i.v=i.top+i.bottom,i.h=i.left+i.right,i.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-i.top),this.updateFull()},this.setMargin=function(e,t,n,r){var i=this.margin;i.top=0|e,i.bottom=0|t,i.right=0|r,i.left=0|n,i.v=i.top+i.bottom,i.h=i.left+i.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},this.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},this.setHScrollBarAlwaysVisible=function(e){this.setOption("hScrollBarAlwaysVisible",e)},this.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},this.setVScrollBarAlwaysVisible=function(e){this.setOption("vScrollBarAlwaysVisible",e)},this.$updateScrollBarV=function(){var e=this.layerConfig.maxHeight,t=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(e-=(t-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>e-t&&(e=this.scrollTop+t,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(e+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},this.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},this.$frozen=!1,this.freeze=function(){this.$frozen=!0},this.unfreeze=function(){this.$frozen=!1},this.$renderChanges=function(e,t){if(this.$changes&&(e|=this.$changes,this.$changes=0),this.session&&this.container.offsetWidth&&!this.$frozen&&(e||t)){if(this.$size.$dirty)return this.$changes|=e,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",e),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var n=this.layerConfig;if(e&this.CHANGE_FULL||e&this.CHANGE_SIZE||e&this.CHANGE_TEXT||e&this.CHANGE_LINES||e&this.CHANGE_SCROLL||e&this.CHANGE_H_SCROLL){if(e|=this.$computeLayerConfig()|this.$loop.clear(),n.firstRow!=this.layerConfig.firstRow&&n.firstRowScreen==this.layerConfig.firstRowScreen){var r=this.scrollTop+(n.firstRow-this.layerConfig.firstRow)*this.lineHeight;r>0&&(this.scrollTop=r,e|=this.CHANGE_SCROLL,e|=this.$computeLayerConfig()|this.$loop.clear())}n=this.layerConfig,this.$updateScrollBarV(),e&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),i.translate(this.content,-this.scrollLeft,-n.offset);var o=n.width+2*this.$padding+"px",a=n.minHeight+"px";i.setStyle(this.content.style,"width",o),i.setStyle(this.content.style,"height",a)}if(e&this.CHANGE_H_SCROLL&&(i.translate(this.content,-this.scrollLeft,-n.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller":"ace_scroller ace_scroll-left"),e&this.CHANGE_FULL)return this.$changedLines=null,this.$textLayer.update(n),this.$showGutter&&this.$gutterLayer.update(n),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(n),this.$markerBack.update(n),this.$markerFront.update(n),this.$cursorLayer.update(n),this.$moveTextAreaToCursor(),void this._signal("afterRender",e);if(e&this.CHANGE_SCROLL)return this.$changedLines=null,e&this.CHANGE_TEXT||e&this.CHANGE_LINES?this.$textLayer.update(n):this.$textLayer.scrollLines(n),this.$showGutter&&(e&this.CHANGE_GUTTER||e&this.CHANGE_LINES?this.$gutterLayer.update(n):this.$gutterLayer.scrollLines(n)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(n),this.$markerBack.update(n),this.$markerFront.update(n),this.$cursorLayer.update(n),this.$moveTextAreaToCursor(),void this._signal("afterRender",e);e&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(n),this.$showGutter&&this.$gutterLayer.update(n),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(n)):e&this.CHANGE_LINES?((this.$updateLines()||e&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(n),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(n)):e&this.CHANGE_TEXT||e&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(n),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(n)):e&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(n),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(n)),e&this.CHANGE_CURSOR&&(this.$cursorLayer.update(n),this.$moveTextAreaToCursor()),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(n),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(n),this._signal("afterRender",e)}else this.$changes|=e},this.$autosize=function(){var e=this.session.getScreenLength()*this.lineHeight,t=this.$maxLines*this.lineHeight,n=Math.min(t,Math.max((this.$minLines||1)*this.lineHeight,e))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(n+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&n>this.$maxPixelHeight&&(n=this.$maxPixelHeight);var r=!(n<=2*this.lineHeight)&&e>t;if(n!=this.desiredHeight||this.$size.height!=this.desiredHeight||r!=this.$vScroll){r!=this.$vScroll&&(this.$vScroll=r,this.scrollBarV.setVisible(r));var i=this.container.clientWidth;this.container.style.height=n+"px",this.$updateCachedSize(!0,this.$gutterWidth,i,n),this.desiredHeight=n,this._signal("autosize")}},this.$computeLayerConfig=function(){var e=this.session,t=this.$size,n=t.height<=2*this.lineHeight,r=this.session.getScreenLength()*this.lineHeight,i=this.$getLongestLine(),o=!n&&(this.$hScrollBarAlwaysVisible||t.scrollerWidth-i-2*this.$padding<0),a=this.$horizScroll!==o;a&&(this.$horizScroll=o,this.scrollBarH.setVisible(o));var s=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var l=t.scrollerHeight+this.lineHeight,u=!this.$maxLines&&this.$scrollPastEnd?(t.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;r+=u;var c=this.scrollMargin;this.session.setScrollTop(Math.max(-c.top,Math.min(this.scrollTop,r-t.scrollerHeight+c.bottom))),this.session.setScrollLeft(Math.max(-c.left,Math.min(this.scrollLeft,i+2*this.$padding-t.scrollerWidth+c.right)));var d=!n&&(this.$vScrollBarAlwaysVisible||t.scrollerHeight-r+u<0||this.scrollTop>c.top),f=s!==d;f&&(this.$vScroll=d,this.scrollBarV.setVisible(d));var h,p,m=this.scrollTop%this.lineHeight,g=Math.ceil(l/this.lineHeight)-1,v=Math.max(0,Math.round((this.scrollTop-m)/this.lineHeight)),b=v+g,y=this.lineHeight;v=e.screenToDocumentRow(v,0);var _=e.getFoldLine(v);_&&(v=_.start.row),h=e.documentToScreenRow(v,0),p=e.getRowLength(v)*y,b=Math.min(e.screenToDocumentRow(b,0),e.getLength()-1),l=t.scrollerHeight+e.getRowLength(b)*y+p,m=this.scrollTop-h*y;var w=0;return(this.layerConfig.width!=i||a)&&(w=this.CHANGE_H_SCROLL),(a||f)&&(w|=this.$updateCachedSize(!0,this.gutterWidth,t.width,t.height),this._signal("scrollbarVisibilityChanged"),f&&(i=this.$getLongestLine())),this.layerConfig={width:i,padding:this.$padding,firstRow:v,firstRowScreen:h,lastRow:b,lineHeight:y,characterWidth:this.characterWidth,minHeight:l,maxHeight:r,offset:m,gutterOffset:y?Math.max(0,Math.ceil((m+t.height-t.scrollerHeight)/y)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(i-this.$padding),w},this.$updateLines=function(){if(this.$changedLines){var e=this.$changedLines.firstRow,t=this.$changedLines.lastRow;this.$changedLines=null;var n=this.layerConfig;if(!(e>n.lastRow+1||t<n.firstRow))return t===1/0?(this.$showGutter&&this.$gutterLayer.update(n),void this.$textLayer.update(n)):(this.$textLayer.updateLines(n,e,t),!0)}},this.$getLongestLine=function(){var e=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(e+=1),this.$textLayer&&e>this.$textLayer.MAX_LINE_LENGTH&&(e=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(e*this.characterWidth))},this.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},this.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},this.addGutterDecoration=function(e,t){this.$gutterLayer.addGutterDecoration(e,t)},this.removeGutterDecoration=function(e,t){this.$gutterLayer.removeGutterDecoration(e,t)},this.updateBreakpoints=function(e){this.$loop.schedule(this.CHANGE_GUTTER)},this.setAnnotations=function(e){this.$gutterLayer.setAnnotations(e),this.$loop.schedule(this.CHANGE_GUTTER)},this.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},this.hideCursor=function(){this.$cursorLayer.hideCursor()},this.showCursor=function(){this.$cursorLayer.showCursor()},this.scrollSelectionIntoView=function(e,t,n){this.scrollCursorIntoView(e,n),this.scrollCursorIntoView(t,n)},this.scrollCursorIntoView=function(e,t,n){if(0!==this.$size.scrollerHeight){var r=this.$cursorLayer.getPixelPosition(e),i=r.left,o=r.top,a=n&&n.top||0,s=n&&n.bottom||0,l=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;l+a>o?(t&&l+a>o+this.lineHeight&&(o-=t*this.$size.scrollerHeight),0===o&&(o=-this.scrollMargin.top),this.session.setScrollTop(o)):l+this.$size.scrollerHeight-s<o+this.lineHeight&&(t&&l+this.$size.scrollerHeight-s<o-this.lineHeight&&(o+=t*this.$size.scrollerHeight),this.session.setScrollTop(o+this.lineHeight+s-this.$size.scrollerHeight));var u=this.scrollLeft;u>i?(i<this.$padding+2*this.layerConfig.characterWidth&&(i=-this.scrollMargin.left),this.session.setScrollLeft(i)):u+this.$size.scrollerWidth<i+this.characterWidth?this.session.setScrollLeft(Math.round(i+this.characterWidth-this.$size.scrollerWidth)):u<=this.$padding&&i-u<this.characterWidth&&this.session.setScrollLeft(0)}},this.getScrollTop=function(){return this.session.getScrollTop()},this.getScrollLeft=function(){return this.session.getScrollLeft()},this.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},this.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},this.scrollToRow=function(e){this.session.setScrollTop(e*this.lineHeight)},this.alignCursor=function(e,t){"number"==typeof e&&(e={row:e,column:0});var n=this.$cursorLayer.getPixelPosition(e),r=this.$size.scrollerHeight-this.lineHeight,i=n.top-r*(t||0);return this.session.setScrollTop(i),i},this.STEPS=8,this.$calcSteps=function(e,t){var n,r,i=0,o=this.STEPS,a=[];for(i=0;i<o;++i)a.push((n=i/this.STEPS,r=e,(t-e)*(Math.pow(n-1,3)+1)+r));return a},this.scrollToLine=function(e,t,n,r){var i=this.$cursorLayer.getPixelPosition({row:e,column:0}).top;t&&(i-=this.$size.scrollerHeight/2);var o=this.scrollTop;this.session.setScrollTop(i),!1!==n&&this.animateScrolling(o,r)},this.animateScrolling=function(e,t){var n=this.scrollTop;if(this.$animatedScroll){var r=this;if(e!=n){if(this.$scrollAnimation){var i=this.$scrollAnimation.steps;if(i.length&&(e=i[0])==n)return}var o=r.$calcSteps(e,n);this.$scrollAnimation={from:e,to:n,steps:o},clearInterval(this.$timer),r.session.setScrollTop(o.shift()),r.session.$scrollTop=n,this.$timer=setInterval((function(){if(!r.session)return clearInterval(r.$timer);o.length?(r.session.setScrollTop(o.shift()),r.session.$scrollTop=n):null!=n?(r.session.$scrollTop=-1,r.session.setScrollTop(n),n=null):(r.$timer=clearInterval(r.$timer),r.$scrollAnimation=null,t&&t())}),10)}}},this.scrollToY=function(e){this.scrollTop!==e&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=e)},this.scrollToX=function(e){this.scrollLeft!==e&&(this.scrollLeft=e),this.$loop.schedule(this.CHANGE_H_SCROLL)},this.scrollTo=function(e,t){this.session.setScrollTop(t),this.session.setScrollLeft(e)},this.scrollBy=function(e,t){t&&this.session.setScrollTop(this.session.getScrollTop()+t),e&&this.session.setScrollLeft(this.session.getScrollLeft()+e)},this.isScrollableBy=function(e,t){return t<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||(t>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||(e<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||(e>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right||void 0)))},this.pixelToScreenCoordinates=function(e,t){var n;if(this.$hasCssTransforms){n={top:0,left:0};var r=this.$fontMetrics.transformCoordinates([e,t]);e=r[1]-this.gutterWidth-this.margin.left,t=r[0]}else n=this.scroller.getBoundingClientRect();var i=e+this.scrollLeft-n.left-this.$padding,o=i/this.characterWidth,a=Math.floor((t+this.scrollTop-n.top)/this.lineHeight),s=this.$blockCursor?Math.floor(o):Math.round(o);return{row:a,column:s,side:o-s>0?1:-1,offsetX:i}},this.screenToTextCoordinates=function(e,t){var n;if(this.$hasCssTransforms){n={top:0,left:0};var r=this.$fontMetrics.transformCoordinates([e,t]);e=r[1]-this.gutterWidth-this.margin.left,t=r[0]}else n=this.scroller.getBoundingClientRect();var i=e+this.scrollLeft-n.left-this.$padding,o=i/this.characterWidth,a=this.$blockCursor?Math.floor(o):Math.round(o),s=Math.floor((t+this.scrollTop-n.top)/this.lineHeight);return this.session.screenToDocumentPosition(s,Math.max(a,0),i)},this.textToScreenCoordinates=function(e,t){var n=this.scroller.getBoundingClientRect(),r=this.session.documentToScreenPosition(e,t),i=this.$padding+(this.session.$bidiHandler.isBidiRow(r.row,e)?this.session.$bidiHandler.getPosLeft(r.column):Math.round(r.column*this.characterWidth)),o=r.row*this.lineHeight;return{pageX:n.left+i-this.scrollLeft,pageY:n.top+o-this.scrollTop}},this.visualizeFocus=function(){i.addCssClass(this.container,"ace_focus")},this.visualizeBlur=function(){i.removeCssClass(this.container,"ace_focus")},this.showComposition=function(e){this.$composition=e,e.cssText||(e.cssText=this.textarea.style.cssText),null==e.useTextareaForIME&&(e.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(i.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):e.markerId=this.session.addMarker(e.markerRange,"ace_composition_marker","text")},this.setCompositionText=function(e){var t=this.session.selection.cursor;this.addToken(e,"composition_placeholder",t.row,t.column),this.$moveTextAreaToCursor()},this.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),i.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var e=this.session.selection.cursor;this.removeExtraToken(e.row,e.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},this.addToken=function(e,t,n,r){var i=this.session;i.bgTokenizer.lines[n]=null;var o={type:t,value:e},a=i.getTokens(n);if(null==r)a.push(o);else for(var s=0,l=0;l<a.length;l++){var u=a[l];if(r<=(s+=u.value.length)){var c=u.value.length-(s-r),d=u.value.slice(0,c),f=u.value.slice(c);a.splice(l,1,{type:u.type,value:d},o,{type:u.type,value:f});break}}this.updateLines(n,n)},this.removeExtraToken=function(e,t){this.updateLines(e,e)},this.setTheme=function(e,t){var n=this;if(this.$themeId=e,n._dispatchEvent("themeChange",{theme:e}),e&&"string"!=typeof e)a(e);else{var r=e||this.$options.theme.initialValue;o.loadModule(["theme",r],a)}function a(r){if(n.$themeId!=e)return t&&t();if(!r||!r.cssClass)throw new Error("couldn't load module "+e+" or it didn't call define");r.$id&&(n.$themeId=r.$id),i.importCssString(r.cssText,r.cssClass,n.container),n.theme&&i.removeCssClass(n.container,n.theme.cssClass);var o="padding"in r?r.padding:"padding"in(n.theme||{})?4:n.$padding;n.$padding&&o!=n.$padding&&n.setPadding(o),n.$theme=r.cssClass,n.theme=r,i.addCssClass(n.container,r.cssClass),i.setCssClass(n.container,"ace_dark",r.isDark),n.$size&&(n.$size.width=0,n.$updateSizeAsync()),n._dispatchEvent("themeLoaded",{theme:r}),t&&t()}},this.getTheme=function(){return this.$themeId},this.setStyle=function(e,t){i.setCssClass(this.container,e,!1!==t)},this.unsetStyle=function(e){i.removeCssClass(this.container,e)},this.setCursorStyle=function(e){i.setStyle(this.scroller.style,"cursor",e)},this.setMouseCursor=function(e){i.setStyle(this.scroller.style,"cursor",e)},this.attachToShadowRoot=function(){i.importCssString(v,"ace_editor.css",this.container)},this.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent=""},this.$updateCustomScrollbar=function(e){var t=this;this.$horizScroll=this.$vScroll=null,this.scrollBarV.element.remove(),this.scrollBarH.element.remove(),this.$scrollDecorator&&delete this.$scrollDecorator,!0===e?(this.scrollBarV=new h(this.container,this),this.scrollBarH=new f(this.container,this),this.scrollBarV.setHeight(this.$size.scrollerHeight),this.scrollBarH.setWidth(this.$size.scrollerWidth),this.scrollBarV.addEventListener("scroll",(function(e){t.$scrollAnimation||t.session.setScrollTop(e.data-t.scrollMargin.top)})),this.scrollBarH.addEventListener("scroll",(function(e){t.$scrollAnimation||t.session.setScrollLeft(e.data-t.scrollMargin.left)})),this.$scrollDecorator=new b(this.scrollBarV,this),this.$scrollDecorator.$updateDecorators()):(this.scrollBarV=new d(this.container,this),this.scrollBarH=new c(this.container,this),this.scrollBarV.addEventListener("scroll",(function(e){t.$scrollAnimation||t.session.setScrollTop(e.data-t.scrollMargin.top)})),this.scrollBarH.addEventListener("scroll",(function(e){t.$scrollAnimation||t.session.setScrollLeft(e.data-t.scrollMargin.left)})))}}).call(w.prototype),o.defineOptions(w.prototype,"renderer",{animatedScroll:{initialValue:!1},showInvisibles:{set:function(e){this.$textLayer.setShowInvisibles(e)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(e){"number"==typeof e&&(this.$printMarginColumn=e),this.$showPrintMargin=!!e,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(e){this.$gutter.style.display=e?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},fadeFoldWidgets:{set:function(e){i.setCssClass(this.$gutter,"ace_fade-fold-widgets",e)},initialValue:!1},showFoldWidgets:{set:function(e){this.$gutterLayer.setShowFoldWidgets(e),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(e){this.$textLayer.setDisplayIndentGuides(e)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(e){1==this.$textLayer.setHighlightIndentGuides(e)?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(e){this.$gutterLayer.setHighlightGutterLine(e),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(e){this.$hScrollBarAlwaysVisible&&this.$horizScroll||this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(e){this.$vScrollBarAlwaysVisible&&this.$vScroll||this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(e){"number"==typeof e&&(e+="px"),this.container.style.fontSize=e,this.updateFontSize()},initialValue:12},fontFamily:{set:function(e){this.container.style.fontFamily=e,this.updateFontSize()}},maxLines:{set:function(e){this.updateFull()}},minLines:{set:function(e){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(e){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(e){e=+e||0,this.$scrollPastEnd!=e&&(this.$scrollPastEnd=e,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(e){this.$gutterLayer.$fixedWidth=!!e,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(e){this.$updateCustomScrollbar(e)},initialValue:!1},theme:{set:function(e){this.setTheme(e)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!y.isMobile&&!y.isIE}}),t.VirtualRenderer=w})),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("../lib/net"),o=e("../lib/event_emitter").EventEmitter,a=e("../config");function s(e){if("undefined"==typeof Worker)return{postMessage:function(){},terminate:function(){}};if(a.get("loadWorkerFromBlob")){var t=function(e){var t="importScripts('"+i.qualifyURL(e)+"');";try{return new Blob([t],{type:"application/javascript"})}catch(e){var n=new(window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder);return n.append(t),n.getBlob("application/javascript")}}(e),n=(window.URL||window.webkitURL).createObjectURL(t);return new Worker(n)}return new Worker(e)}var l=function(e){e.postMessage||(e=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=e,this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){r.implement(this,o),this.$createWorkerFromOldConfig=function(t,n,r,i,o){if(e.nameToUrl&&!e.toUrl&&(e.toUrl=e.nameToUrl),a.get("packaged")||!e.toUrl)i=i||a.moduleUrl(n,"worker");else{var l=this.$normalizePath;i=i||l(e.toUrl("ace/worker/worker.js",null,"_"));var u={};t.forEach((function(t){u[t]=l(e.toUrl(t,null,"_").replace(/(\.js)?(\?.*)?$/,""))}))}return this.$worker=s(i),o&&this.send("importScripts",o),this.$worker.postMessage({init:!0,tlns:u,module:n,classname:r}),this.$worker},this.onMessage=function(e){var t=e.data;switch(t.type){case"event":this._signal(t.name,{data:t.data});break;case"call":var n=this.callbacks[t.id];n&&(n(t.data),delete this.callbacks[t.id]);break;case"error":this.reportError(t.data);break;case"log":window.console&&console.log&&console.log.apply(console,t.data)}},this.reportError=function(e){window.console&&console.error&&console.error(e)},this.$normalizePath=function(e){return i.qualifyURL(e)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(e,t){this.$worker.postMessage({command:e,args:t})},this.call=function(e,t,n){if(n){var r=this.callbackId++;this.callbacks[r]=n,t.push(r)}this.send(e,t)},this.emit=function(e,t){try{t.data&&t.data.err&&(t.data.err={message:t.data.err.message,stack:t.data.err.stack,code:t.data.err.code}),this.$worker&&this.$worker.postMessage({event:e,data:{data:t.data}})}catch(e){console.error(e.stack)}},this.attachToDocument=function(e){this.$doc&&this.terminate(),this.$doc=e,this.call("setValue",[e.getValue()]),e.on("change",this.changeListener,!0)},this.changeListener=function(e){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),"insert"==e.action?this.deltaQueue.push(e.start,e.lines):this.deltaQueue.push(e.start,e.end)},this.$sendDeltaQueue=function(){var e=this.deltaQueue;e&&(this.deltaQueue=null,e.length>50&&e.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:e}))}}).call(l.prototype);t.UIWorkerClient=function(e,t,n){var r=null,i=!1,s=Object.create(o),u=[],c=new l({messageBuffer:u,terminate:function(){},postMessage:function(e){u.push(e),r&&(i?setTimeout(d):d())}});c.setEmitSync=function(e){i=e};var d=function(){var e=u.shift();e.command?r[e.command].apply(r,e.args):e.event&&s._signal(e.event,e.data)};return s.postMessage=function(e){c.onMessage({data:e})},s.callback=function(e,t){this.postMessage({type:"call",id:t,data:e})},s.emit=function(e,t){this.postMessage({type:"event",name:e,data:t})},a.loadModule(["worker",t],(function(e){for(r=new e[n](s);u.length;)d()})),c},t.WorkerClient=l,t.createWorker=s})),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],(function(e,t,n){"use strict";var r=e("./range").Range,i=e("./lib/event_emitter").EventEmitter,o=e("./lib/oop"),a=function(e,t,n,r,i,o){var a=this;this.length=t,this.session=e,this.doc=e.getDocument(),this.mainClass=i,this.othersClass=o,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=r,this.$onCursorChange=function(){setTimeout((function(){a.onCursorChange()}))},this.$pos=n;var s=e.getUndoManager().$undoStack||e.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=s.length,this.setup(),e.selection.on("changeCursor",this.$onCursorChange)};(function(){o.implement(this,i),this.setup=function(){var e=this,t=this.doc,n=this.session;this.selectionBefore=n.selection.toJSON(),n.selection.inMultiSelectMode&&n.selection.toSingleRange(),this.pos=t.createAnchor(this.$pos.row,this.$pos.column);var i=this.pos;i.$insertRight=!0,i.detach(),i.markerId=n.addMarker(new r(i.row,i.column,i.row,i.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach((function(n){var r=t.createAnchor(n.row,n.column);r.$insertRight=!0,r.detach(),e.others.push(r)})),n.setUndoSelect(!1)},this.showOtherMarkers=function(){if(!this.othersActive){var e=this.session,t=this;this.othersActive=!0,this.others.forEach((function(n){n.markerId=e.addMarker(new r(n.row,n.column,n.row,n.column+t.length),t.othersClass,null,!1)}))}},this.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var e=0;e<this.others.length;e++)this.session.removeMarker(this.others[e].markerId)}},this.onUpdate=function(e){if(this.$updating)return this.updateAnchors(e);var t=e;if(t.start.row===t.end.row&&t.start.row===this.pos.row){this.$updating=!0;var n="insert"===e.action?t.end.column-t.start.column:t.start.column-t.end.column,i=t.start.column>=this.pos.column&&t.start.column<=this.pos.column+this.length+1,o=t.start.column-this.pos.column;if(this.updateAnchors(e),i&&(this.length+=n),i&&!this.session.$fromUndo)if("insert"===e.action)for(var a=this.others.length-1;a>=0;a--){var s={row:(l=this.others[a]).row,column:l.column+o};this.doc.insertMergedLines(s,e.lines)}else if("remove"===e.action)for(a=this.others.length-1;a>=0;a--){var l;s={row:(l=this.others[a]).row,column:l.column+o};this.doc.remove(new r(s.row,s.column,s.row,s.column-n))}this.$updating=!1,this.updateMarkers()}},this.updateAnchors=function(e){this.pos.onChange(e);for(var t=this.others.length;t--;)this.others[t].onChange(e);this.updateMarkers()},this.updateMarkers=function(){if(!this.$updating){var e=this,t=this.session,n=function(n,i){t.removeMarker(n.markerId),n.markerId=t.addMarker(new r(n.row,n.column,n.row,n.column+e.length),i,null,!1)};n(this.pos,this.mainClass);for(var i=this.others.length;i--;)n(this.others[i],this.othersClass)}},this.onCursorChange=function(e){if(!this.$updating&&this.session){var t=this.session.selection.getCursor();t.row===this.pos.row&&t.column>=this.pos.column&&t.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",e)):(this.hideOtherMarkers(),this._emit("cursorLeave",e))}},this.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},this.cancel=function(){if(-1!==this.$undoStackDepth){for(var e=this.session.getUndoManager(),t=(e.$undoStack||e.$undostack).length-this.$undoStackDepth,n=0;n<t;n++)e.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}}}).call(a.prototype),t.PlaceHolder=a})),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],(function(e,t,n){var r=e("../lib/event"),i=e("../lib/useragent");function o(e,t){return e.row==t.row&&e.column==t.column}t.onMouseDown=function(e){var t=e.domEvent,n=t.altKey,a=t.shiftKey,s=t.ctrlKey,l=e.getAccelKey(),u=e.getButton();if(s&&i.isMac&&(u=t.button),e.editor.inMultiSelectMode&&2==u)e.editor.textInput.onContextMenu(e.domEvent);else if(s||n||l){if(0===u){var c,d=e.editor,f=d.selection,h=d.inMultiSelectMode,p=e.getDocumentPosition(),m=f.getCursor(),g=e.inSelection()||f.isEmpty()&&o(p,m),v=e.x,b=e.y,y=d.session,_=d.renderer.pixelToScreenCoordinates(v,b),w=_;if(d.$mouseHandler.$enableJumpToDef)s&&n||l&&n?c=a?"block":"add":n&&d.$blockSelectEnabled&&(c="block");else if(l&&!n){if(c="add",!h&&a)return}else n&&d.$blockSelectEnabled&&(c="block");if(c&&i.isMac&&t.ctrlKey&&d.$mouseHandler.cancelContextMenu(),"add"==c){if(!h&&g)return;if(!h){var x=f.toOrientedRange();d.addSelectionMarker(x)}var C=f.rangeList.rangeAtPoint(p);d.inVirtualSelectionMode=!0,a&&(C=null,x=f.ranges[0]||x,d.removeSelectionMarker(x)),d.once("mouseup",(function(){var e=f.toOrientedRange();C&&e.isEmpty()&&o(C.cursor,e.cursor)?f.substractPoint(e.cursor):(a?f.substractPoint(x.cursor):x&&(d.removeSelectionMarker(x),f.addRange(x)),f.addRange(e)),d.inVirtualSelectionMode=!1}))}else if("block"==c){var E;e.stop(),d.inVirtualSelectionMode=!0;var S=[],T=function(){var e=d.renderer.pixelToScreenCoordinates(v,b),t=y.screenToDocumentPosition(e.row,e.column,e.offsetX);o(w,e)&&o(t,f.lead)||(w=e,d.selection.moveToPosition(t),d.renderer.scrollCursorIntoView(),d.removeSelectionMarkers(S),S=f.rectangularRangeBlock(w,_),d.$mouseHandler.$clickSelection&&1==S.length&&S[0].isEmpty()&&(S[0]=d.$mouseHandler.$clickSelection.clone()),S.forEach(d.addSelectionMarker,d),d.updateSelectionMarkers())};h&&!l?f.toSingleRange():!h&&l&&(E=f.toOrientedRange(),d.addSelectionMarker(E)),a?_=y.documentToScreenPosition(f.lead):f.moveToPosition(p),w={row:-1,column:-1};var A=T;r.capture(d.container,(function(e){v=e.clientX,b=e.clientY}),(function(e){T(),clearInterval(k),d.removeSelectionMarkers(S),S.length||(S=[f.toOrientedRange()]),E&&(d.removeSelectionMarker(E),f.toSingleRange(E));for(var t=0;t<S.length;t++)f.addRange(S[t]);d.inVirtualSelectionMode=!1,d.$mouseHandler.$clickSelection=null}));var k=setInterval((function(){A()}),20);return e.preventDefault()}}}else 0===u&&e.editor.inMultiSelectMode&&e.editor.exitMultiSelectMode()}})),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],(function(e,t,n){t.defaultCommands=[{name:"addCursorAbove",description:"Add cursor above",exec:function(e){e.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",description:"Add cursor below",exec:function(e){e.selectMoreLines(1)},bindKey:{win:"Ctrl-Alt-Down",mac:"Ctrl-Alt-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorAboveSkipCurrent",description:"Add cursor above (skip current)",exec:function(e){e.selectMoreLines(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Up",mac:"Ctrl-Alt-Shift-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelowSkipCurrent",description:"Add cursor below (skip current)",exec:function(e){e.selectMoreLines(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Down",mac:"Ctrl-Alt-Shift-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreBefore",description:"Select more before",exec:function(e){e.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",description:"Select more after",exec:function(e){e.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",description:"Select next before",exec:function(e){e.selectMore(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Left",mac:"Ctrl-Alt-Shift-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextAfter",description:"Select next after",exec:function(e){e.selectMore(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Right",mac:"Ctrl-Alt-Shift-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"toggleSplitSelectionIntoLines",description:"Split into lines",exec:function(e){e.multiSelect.rangeCount>1?e.multiSelect.joinSelections():e.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(e){e.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(e){e.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(e){e.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],t.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(e){e.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(e){return e&&e.inMultiSelectMode}}];var r=e("../keyboard/hash_handler").HashHandler;t.keyboardHandler=new r(t.multiSelectCommands)})),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],(function(e,t,n){var r=e("./range_list").RangeList,i=e("./range").Range,o=e("./selection").Selection,a=e("./mouse/multi_select_handler").onMouseDown,s=e("./lib/event"),l=e("./lib/lang"),u=e("./commands/multi_select_commands");t.commands=u.defaultCommands.concat(u.multiSelectCommands);var c=new(0,e("./search").Search);var d=e("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(d.prototype),function(){this.ranges=null,this.rangeList=null,this.addRange=function(e,t){if(e){if(!this.inMultiSelectMode&&0===this.rangeCount){var n=this.toOrientedRange();if(this.rangeList.add(n),this.rangeList.add(e),2!=this.rangeList.ranges.length)return this.rangeList.removeAll(),t||this.fromOrientedRange(e);this.rangeList.removeAll(),this.rangeList.add(n),this.$onAddRange(n)}e.cursor||(e.cursor=e.end);var r=this.rangeList.add(e);return this.$onAddRange(e),r.length&&this.$onRemoveRange(r),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),t||this.fromOrientedRange(e)}},this.toSingleRange=function(e){e=e||this.ranges[0];var t=this.rangeList.removeAll();t.length&&this.$onRemoveRange(t),e&&this.fromOrientedRange(e)},this.substractPoint=function(e){var t=this.rangeList.substractPoint(e);if(t)return this.$onRemoveRange(t),t[0]},this.mergeOverlappingRanges=function(){var e=this.rangeList.merge();e.length&&this.$onRemoveRange(e)},this.$onAddRange=function(e){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(e),this._signal("addRange",{range:e})},this.$onRemoveRange=function(e){if(this.rangeCount=this.rangeList.ranges.length,1==this.rangeCount&&this.inMultiSelectMode){var t=this.rangeList.ranges.pop();e.push(t),this.rangeCount=0}for(var n=e.length;n--;){var r=this.ranges.indexOf(e[n]);this.ranges.splice(r,1)}this._signal("removeRange",{ranges:e}),0===this.rangeCount&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),(t=t||this.ranges[0])&&!t.isEqual(this.getRange())&&this.fromOrientedRange(t)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new r,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var e=this.ranges.length?this.ranges:[this.getRange()],t=[],n=0;n<e.length;n++){var r=e[n],o=r.start.row,a=r.end.row;if(o===a)t.push(r.clone());else{for(t.push(new i(o,r.start.column,o,this.session.getLine(o).length));++o<a;)t.push(this.getLineRange(o,!0));t.push(new i(a,0,a,r.end.column))}0!=n||this.isBackwards()||(t=t.reverse())}this.toSingleRange();for(n=t.length;n--;)this.addRange(t[n])},this.joinSelections=function(){var e=this.rangeList.ranges,t=e[e.length-1],n=i.fromPoints(e[0].start,t.end);this.toSingleRange(),this.setSelectionRange(n,t.cursor==t.start)},this.toggleBlockSelection=function(){if(this.rangeCount>1){var e=this.rangeList.ranges,t=e[e.length-1],n=i.fromPoints(e[0].start,t.end);this.toSingleRange(),this.setSelectionRange(n,t.cursor==t.start)}else{var r=this.session.documentToScreenPosition(this.cursor),o=this.session.documentToScreenPosition(this.anchor);this.rectangularRangeBlock(r,o).forEach(this.addRange,this)}},this.rectangularRangeBlock=function(e,t,n){var r=[],o=e.column<t.column;if(o)var a=e.column,s=t.column,l=e.offsetX,u=t.offsetX;else a=t.column,s=e.column,l=t.offsetX,u=e.offsetX;var c,d,f,h=e.row<t.row;if(h)var p=e.row,m=t.row;else p=t.row,m=e.row;a<0&&(a=0),p<0&&(p=0),p==m&&(n=!0);for(var g=p;g<=m;g++){var v=i.fromPoints(this.session.screenToDocumentPosition(g,a,l),this.session.screenToDocumentPosition(g,s,u));if(v.isEmpty()){if(c&&(d=v.end,f=c,d.row==f.row&&d.column==f.column))break;c=v.end}v.cursor=o?v.start:v.end,r.push(v)}if(h&&r.reverse(),!n){for(var b=r.length-1;r[b].isEmpty()&&b>0;)b--;if(b>0)for(var y=0;r[y].isEmpty();)y++;for(var _=b;_>=y;_--)r[_].isEmpty()&&r.splice(_,1)}return r}}.call(o.prototype);var f=e("./editor").Editor;function h(e){e.$multiselectOnSessionChange||(e.$onAddRange=e.$onAddRange.bind(e),e.$onRemoveRange=e.$onRemoveRange.bind(e),e.$onMultiSelect=e.$onMultiSelect.bind(e),e.$onSingleSelect=e.$onSingleSelect.bind(e),e.$multiselectOnSessionChange=t.onSessionChange.bind(e),e.$checkMultiselectChange=e.$checkMultiselectChange.bind(e),e.$multiselectOnSessionChange(e),e.on("changeSession",e.$multiselectOnSessionChange),e.on("mousedown",a),e.commands.addCommands(u.defaultCommands),function(e){if(!e.textInput)return;var t=e.textInput.getElement(),n=!1;function r(t){n&&(e.renderer.setMouseCursor(""),n=!1)}s.addListener(t,"keydown",(function(t){var i=18==t.keyCode&&!(t.ctrlKey||t.shiftKey||t.metaKey);e.$blockSelectEnabled&&i?n||(e.renderer.setMouseCursor("crosshair"),n=!0):n&&r()}),e),s.addListener(t,"keyup",r,e),s.addListener(t,"blur",r,e)}(e))}(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(e){e.cursor||(e.cursor=e.end);var t=this.getSelectionStyle();return e.marker=this.session.addMarker(e,"ace_selection",t),this.session.$selectionMarkers.push(e),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,e},this.removeSelectionMarker=function(e){if(e.marker){this.session.removeMarker(e.marker);var t=this.session.$selectionMarkers.indexOf(e);-1!=t&&this.session.$selectionMarkers.splice(t,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(e){for(var t=this.session.$selectionMarkers,n=e.length;n--;){var r=e[n];if(r.marker){this.session.removeMarker(r.marker);var i=t.indexOf(r);-1!=i&&t.splice(i,1)}}this.session.selectionMarkerCount=t.length},this.$onAddRange=function(e){this.addSelectionMarker(e.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(e){this.removeSelectionMarkers(e.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(e){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(u.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(e){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(u.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(e){var t=e.command,n=e.editor;if(n.multiSelect){if(t.multiSelectAction)"forEach"==t.multiSelectAction?r=n.forEachSelection(t,e.args):"forEachLine"==t.multiSelectAction?r=n.forEachSelection(t,e.args,!0):"single"==t.multiSelectAction?(n.exitMultiSelectMode(),r=t.exec(n,e.args||{})):r=t.multiSelectAction(n,e.args||{});else{var r=t.exec(n,e.args||{});n.multiSelect.addRange(n.multiSelect.toOrientedRange()),n.multiSelect.mergeOverlappingRanges()}return r}},this.forEachSelection=function(e,t,n){if(!this.inVirtualSelectionMode){var r,i=n&&n.keepOrder,a=1==n||n&&n.$byLines,s=this.session,l=this.selection,u=l.rangeList,c=(i?l:u).ranges;if(!c.length)return e.exec?e.exec(this,t||{}):e(this,t||{});var d=l._eventRegistry;l._eventRegistry={};var f=new o(s);this.inVirtualSelectionMode=!0;for(var h=c.length;h--;){if(a)for(;h>0&&c[h].start.row==c[h-1].end.row;)h--;f.fromOrientedRange(c[h]),f.index=h,this.selection=s.selection=f;var p=e.exec?e.exec(this,t||{}):e(this,t||{});r||void 0===p||(r=p),f.toOrientedRange(c[h])}f.detach(),this.selection=s.selection=l,this.inVirtualSelectionMode=!1,l._eventRegistry=d,l.mergeOverlappingRanges(),l.ranges[0]&&l.fromOrientedRange(l.ranges[0]);var m=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),m&&m.from==m.to&&this.renderer.animateScrolling(m.from),r}},this.exitMultiSelectMode=function(){this.inMultiSelectMode&&!this.inVirtualSelectionMode&&this.multiSelect.toSingleRange()},this.getSelectedText=function(){var e="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var t=this.multiSelect.rangeList.ranges,n=[],r=0;r<t.length;r++)n.push(this.session.getTextRange(t[r]));var i=this.session.getDocument().getNewLineCharacter();(e=n.join(i)).length==(n.length-1)*i.length&&(e="")}else this.selection.isEmpty()||(e=this.session.getTextRange(this.getSelectionRange()));return e},this.$checkMultiselectChange=function(e,t){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var n=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&t==this.multiSelect.anchor)return;var r=t==this.multiSelect.anchor?n.cursor==n.start?n.end:n.start:n.cursor;r.row!=t.row||this.session.$clipPositionToDocument(r.row,r.column).column!=t.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()}},this.findAll=function(e,t,n){if((t=t||{}).needle=e||t.needle,null==t.needle){var r=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();t.needle=this.session.getTextRange(r)}this.$search.set(t);var i=this.$search.findAll(this.session);if(!i.length)return 0;var o=this.multiSelect;n||o.toSingleRange(i[0]);for(var a=i.length;a--;)o.addRange(i[a],!0);return r&&o.rangeList.rangeAtPoint(r.start)&&o.addRange(r,!0),i.length},this.selectMoreLines=function(e,t){var n=this.selection.toOrientedRange(),r=n.cursor==n.end,o=this.session.documentToScreenPosition(n.cursor);this.selection.$desiredColumn&&(o.column=this.selection.$desiredColumn);var a,s=this.session.screenToDocumentPosition(o.row+e,o.column);if(n.isEmpty())u=s;else var l=this.session.documentToScreenPosition(r?n.end:n.start),u=this.session.screenToDocumentPosition(l.row+e,l.column);r?(a=i.fromPoints(s,u)).cursor=a.start:(a=i.fromPoints(u,s)).cursor=a.end;if(a.desiredColumn=o.column,this.selection.inMultiSelectMode){if(t)var c=n.cursor}else this.selection.addRange(n);this.selection.addRange(a),c&&this.selection.substractPoint(c)},this.transposeSelections=function(e){for(var t=this.session,n=t.multiSelect,r=n.ranges,i=r.length;i--;){if((s=r[i]).isEmpty()){var o=t.getWordRange(s.start.row,s.start.column);s.start.row=o.start.row,s.start.column=o.start.column,s.end.row=o.end.row,s.end.column=o.end.column}}n.mergeOverlappingRanges();var a=[];for(i=r.length;i--;){var s=r[i];a.unshift(t.getTextRange(s))}e<0?a.unshift(a.pop()):a.push(a.shift());for(i=r.length;i--;){o=(s=r[i]).clone();t.replace(s,a[i]),s.start.row=o.start.row,s.start.column=o.start.column}n.fromOrientedRange(n.ranges[0])},this.selectMore=function(e,t,n){var r=this.session,i=r.multiSelect.toOrientedRange();if(!i.isEmpty()||((i=r.getWordRange(i.start.row,i.start.column)).cursor=-1==e?i.start:i.end,this.multiSelect.addRange(i),!n)){var o=r.getTextRange(i),a=function(e,t,n){return c.$options.wrap=!0,c.$options.needle=t,c.$options.backwards=-1==n,c.find(e)}(r,o,e);a&&(a.cursor=-1==e?a.start:a.end,this.session.unfold(a),this.multiSelect.addRange(a),this.renderer.scrollCursorIntoView(null,.5)),t&&this.multiSelect.substractPoint(i.cursor)}},this.alignCursors=function(){var e=this.session,t=e.multiSelect,n=t.ranges,r=-1,o=n.filter((function(e){if(e.cursor.row==r)return!0;r=e.cursor.row}));if(n.length&&o.length!=n.length-1){o.forEach((function(e){t.substractPoint(e.cursor)}));var a=0,s=1/0,u=n.map((function(t){var n=t.cursor,r=e.getLine(n.row).substr(n.column).search(/\S/g);return-1==r&&(r=0),n.column>a&&(a=n.column),r<s&&(s=r),r}));n.forEach((function(t,n){var r=t.cursor,o=a-r.column,c=u[n]-s;o>c?e.insert(r,l.stringRepeat(" ",o-c)):e.remove(new i(r.row,r.column,r.row,r.column-o+c)),t.start.column=t.end.column=a,t.start.row=t.end.row=r.row,t.cursor=t.end})),t.fromOrientedRange(n[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}else{var c=this.selection.getRange(),d=c.start.row,f=c.end.row,h=d==f;if(h){var p,m=this.session.getLength();do{p=this.session.getLine(f)}while(/[=:]/.test(p)&&++f<m);do{p=this.session.getLine(d)}while(/[=:]/.test(p)&&--d>0);d<0&&(d=0),f>=m&&(f=m-1)}var g=this.session.removeFullLines(d,f);g=this.$reAlignText(g,h),this.session.insert({row:d,column:0},g.join("\n")+"\n"),h||(c.start.column=0,c.end.column=g[g.length-1].length),this.selection.setRange(c)}},this.$reAlignText=function(e,t){var n,r,i,o=!0,a=!0;return e.map((function(e){var t=e.match(/(\s*)(.*?)(\s*)([=:].*)/);return t?null==n?(n=t[1].length,r=t[2].length,i=t[3].length,t):(n+r+i!=t[1].length+t[2].length+t[3].length&&(a=!1),n!=t[1].length&&(o=!1),n>t[1].length&&(n=t[1].length),r<t[2].length&&(r=t[2].length),i>t[3].length&&(i=t[3].length),t):[e]})).map(t?u:o?a?function(e){return e[2]?s(n+r-e[2].length)+e[2]+s(i)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}:u:function(e){return e[2]?s(n)+e[2]+s(i)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]});function s(e){return l.stringRepeat(" ",e)}function u(e){return e[2]?s(n)+e[2]+s(r-e[2].length+i)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}}}).call(f.prototype),t.onSessionChange=function(e){var t=e.session;t&&!t.multiSelect&&(t.$selectionMarkers=[],t.selection.$initRangeList(),t.multiSelect=t.selection),this.multiSelect=t&&t.multiSelect;var n=e.oldSession;n&&(n.multiSelect.off("addRange",this.$onAddRange),n.multiSelect.off("removeRange",this.$onRemoveRange),n.multiSelect.off("multiSelect",this.$onMultiSelect),n.multiSelect.off("singleSelect",this.$onSingleSelect),n.multiSelect.lead.off("change",this.$checkMultiselectChange),n.multiSelect.anchor.off("change",this.$checkMultiselectChange)),t&&(t.multiSelect.on("addRange",this.$onAddRange),t.multiSelect.on("removeRange",this.$onRemoveRange),t.multiSelect.on("multiSelect",this.$onMultiSelect),t.multiSelect.on("singleSelect",this.$onSingleSelect),t.multiSelect.lead.on("change",this.$checkMultiselectChange),t.multiSelect.anchor.on("change",this.$checkMultiselectChange)),t&&this.inMultiSelectMode!=t.selection.inMultiSelectMode&&(t.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())},t.MultiSelect=h,e("./config").defineOptions(f.prototype,"editor",{enableMultiselect:{set:function(e){h(this),e?(this.on("changeSession",this.$multiselectOnSessionChange),this.on("mousedown",a)):(this.off("changeSession",this.$multiselectOnSessionChange),this.off("mousedown",a))},value:!0},enableBlockSelect:{set:function(e){this.$blockSelectEnabled=e},value:!0}})})),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var r=e("../../range").Range,i=t.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);return this.foldingStartMarker.test(r)?"start":"markbeginend"==t&&this.foldingStopMarker&&this.foldingStopMarker.test(r)?"end":""},this.getFoldWidgetRange=function(e,t,n){return null},this.indentationBlock=function(e,t,n){var i=/\S/,o=e.getLine(t),a=o.search(i);if(-1!=a){for(var s=n||o.length,l=e.getLength(),u=t,c=t;++t<l;){var d=e.getLine(t).search(i);if(-1!=d){if(d<=a){var f=e.getTokenAt(t,0);if(!f||"string"!==f.type)break}c=t}}if(c>u){var h=e.getLine(c).length;return new r(u,s,c,h)}}},this.openingBracketBlock=function(e,t,n,i,o){var a={row:n,column:i+1},s=e.$findClosingBracket(t,a,o);if(s){var l=e.foldWidgets[s.row];return null==l&&(l=e.getFoldWidget(s.row)),"start"==l&&s.row>a.row&&(s.row--,s.column=e.getLine(s.row).length),r.fromPoints(a,s)}},this.closingBracketBlock=function(e,t,n,i,o){var a={row:n,column:i},s=e.$findOpeningBracket(t,a);if(s)return s.column++,a.column--,r.fromPoints(s,a)}}).call(i.prototype)})),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";var r=e("./lib/dom");function i(e){this.session=e,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}(function(){this.getRowLength=function(e){var t;return t=this.lineWidgets&&this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0,this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1+t:1+t},this.$getWidgetScreenLength=function(){var e=0;return this.lineWidgets.forEach((function(t){t&&t.rowCount&&!t.hidden&&(e+=t.rowCount)})),e},this.$onChangeEditor=function(e){this.attach(e.editor)},this.attach=function(e){e&&e.widgetManager&&e.widgetManager!=this&&e.widgetManager.detach(),this.editor!=e&&(this.detach(),this.editor=e,e&&(e.widgetManager=this,e.renderer.on("beforeRender",this.measureWidgets),e.renderer.on("afterRender",this.renderWidgets)))},this.detach=function(e){var t=this.editor;if(t){this.editor=null,t.widgetManager=null,t.renderer.off("beforeRender",this.measureWidgets),t.renderer.off("afterRender",this.renderWidgets);var n=this.session.lineWidgets;n&&n.forEach((function(e){e&&e.el&&e.el.parentNode&&(e._inDocument=!1,e.el.parentNode.removeChild(e.el))}))}},this.updateOnFold=function(e,t){var n=t.lineWidgets;if(n&&e.action){for(var r=e.data,i=r.start.row,o=r.end.row,a="add"==e.action,s=i+1;s<o;s++)n[s]&&(n[s].hidden=a);n[o]&&(a?n[i]?n[o].hidden=a:n[i]=n[o]:(n[i]==n[o]&&(n[i]=void 0),n[o].hidden=a))}},this.updateOnChange=function(e){var t=this.session.lineWidgets;if(t){var n=e.start.row,r=e.end.row-n;if(0===r);else if("remove"==e.action){var i=t.splice(n+1,r);!t[n]&&i[i.length-1]&&(t[n]=i.pop()),i.forEach((function(e){e&&this.removeLineWidget(e)}),this),this.$updateRows()}else{var o=new Array(r);t[n]&&null!=t[n].column&&e.start.column>t[n].column&&n++,o.unshift(n,0),t.splice.apply(t,o),this.$updateRows()}}},this.$updateRows=function(){var e=this.session.lineWidgets;if(e){var t=!0;e.forEach((function(e,n){if(e)for(t=!1,e.row=n;e.$oldWidget;)e.$oldWidget.row=n,e=e.$oldWidget})),t&&(this.session.lineWidgets=null)}},this.$registerLineWidget=function(e){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var t=this.session.lineWidgets[e.row];return t&&(e.$oldWidget=t,t.el&&t.el.parentNode&&(t.el.parentNode.removeChild(t.el),t._inDocument=!1)),this.session.lineWidgets[e.row]=e,e},this.addLineWidget=function(e){if(this.$registerLineWidget(e),e.session=this.session,!this.editor)return e;var t=this.editor.renderer;e.html&&!e.el&&(e.el=r.createElement("div"),e.el.innerHTML=e.html),e.el&&(r.addCssClass(e.el,"ace_lineWidgetContainer"),e.el.style.position="absolute",e.el.style.zIndex=5,t.container.appendChild(e.el),e._inDocument=!0,e.coverGutter||(e.el.style.zIndex=3),null==e.pixelHeight&&(e.pixelHeight=e.el.offsetHeight)),null==e.rowCount&&(e.rowCount=e.pixelHeight/t.layerConfig.lineHeight);var n=this.session.getFoldAt(e.row,0);if(e.$fold=n,n){var i=this.session.lineWidgets;e.row!=n.end.row||i[n.start.row]?e.hidden=!0:i[n.start.row]=e}return this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows(),this.renderWidgets(null,t),this.onWidgetChanged(e),e},this.removeLineWidget=function(e){if(e._inDocument=!1,e.session=null,e.el&&e.el.parentNode&&e.el.parentNode.removeChild(e.el),e.editor&&e.editor.destroy)try{e.editor.destroy()}catch(e){}if(this.session.lineWidgets){var t=this.session.lineWidgets[e.row];if(t==e)this.session.lineWidgets[e.row]=e.$oldWidget,e.$oldWidget&&this.onWidgetChanged(e.$oldWidget);else for(;t;){if(t.$oldWidget==e){t.$oldWidget=e.$oldWidget;break}t=t.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows()},this.getWidgetsAtRow=function(e){for(var t=this.session.lineWidgets,n=t&&t[e],r=[];n;)r.push(n),n=n.$oldWidget;return r},this.onWidgetChanged=function(e){this.session._changedWidgets.push(e),this.editor&&this.editor.renderer.updateFull()},this.measureWidgets=function(e,t){var n=this.session._changedWidgets,r=t.layerConfig;if(n&&n.length){for(var i=1/0,o=0;o<n.length;o++){var a=n[o];if(a&&a.el&&a.session==this.session){if(!a._inDocument){if(this.session.lineWidgets[a.row]!=a)continue;a._inDocument=!0,t.container.appendChild(a.el)}a.h=a.el.offsetHeight,a.fixedWidth||(a.w=a.el.offsetWidth,a.screenWidth=Math.ceil(a.w/r.characterWidth));var s=a.h/r.lineHeight;a.coverLine&&(s-=this.session.getRowLineCount(a.row))<0&&(s=0),a.rowCount!=s&&(a.rowCount=s,a.row<i&&(i=a.row))}}i!=1/0&&(this.session._emit("changeFold",{data:{start:{row:i}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},this.renderWidgets=function(e,t){var n=t.layerConfig,r=this.session.lineWidgets;if(r){for(var i=Math.min(this.firstRow,n.firstRow),o=Math.max(this.lastRow,n.lastRow,r.length);i>0&&!r[i];)i--;this.firstRow=n.firstRow,this.lastRow=n.lastRow,t.$cursorLayer.config=n;for(var a=i;a<=o;a++){var s=r[a];if(s&&s.el)if(s.hidden)s.el.style.top=-100-(s.pixelHeight||0)+"px";else{s._inDocument||(s._inDocument=!0,t.container.appendChild(s.el));var l=t.$cursorLayer.getPixelPosition({row:a,column:0},!0).top;s.coverLine||(l+=n.lineHeight*this.session.getRowLineCount(s.row)),s.el.style.top=l-n.offset+"px";var u=s.coverGutter?0:t.gutterWidth;s.fixedWidth||(u-=t.scrollLeft),s.el.style.left=u+"px",s.fullWidth&&s.screenWidth&&(s.el.style.minWidth=n.width+2*n.padding+"px"),s.fixedWidth?s.el.style.right=t.scrollBar.getWidth()+"px":s.el.style.right=""}}}}}).call(i.prototype),t.LineWidgets=i})),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range"],(function(e,t,n){"use strict";var r=e("../line_widgets").LineWidgets,i=e("../lib/dom"),o=e("../range").Range;t.showErrorMarker=function(e,t){var n=e.session;n.widgetManager||(n.widgetManager=new r(n),n.widgetManager.attach(e));var a=e.getCursorPosition(),s=a.row,l=n.widgetManager.getWidgetsAtRow(s).filter((function(e){return"errorMarker"==e.type}))[0];l?l.destroy():s-=t;var u,c=function(e,t,n){var r=e.getAnnotations().sort(o.comparePoints);if(r.length){var i=function(e,t,n){for(var r=0,i=e.length-1;r<=i;){var o=r+i>>1,a=n(t,e[o]);if(a>0)r=o+1;else{if(!(a<0))return o;i=o-1}}return-(r+1)}(r,{row:t,column:-1},o.comparePoints);i<0&&(i=-i-1),i>=r.length?i=n>0?0:r.length-1:0===i&&n<0&&(i=r.length-1);var a=r[i];if(a&&n){if(a.row===t){do{a=r[i+=n]}while(a&&a.row===t);if(!a)return r.slice()}var s=[];t=a.row;do{s[n<0?"unshift":"push"](a),a=r[i+=n]}while(a&&a.row==t);return s.length&&s}}}(n,s,t);if(c){var d=c[0];a.column=(d.pos&&"number"!=typeof d.column?d.pos.sc:d.column)||0,a.row=d.row,u=e.renderer.$gutterLayer.$annotations[a.row]}else{if(l)return;u={text:["Looks good!"],className:"ace_ok"}}e.session.unfold(a.row),e.selection.moveToPosition(a);var f={row:a.row,fixedWidth:!0,coverGutter:!0,el:i.createElement("div"),type:"errorMarker"},h=f.el.appendChild(i.createElement("div")),p=f.el.appendChild(i.createElement("div"));p.className="error_widget_arrow "+u.className;var m=e.renderer.$cursorLayer.getPixelPosition(a).left;p.style.left=m+e.renderer.gutterWidth-5+"px",f.el.className="error_widget_wrapper",h.className="error_widget "+u.className,h.innerHTML=u.text.join("<br>"),h.appendChild(i.createElement("div"));var g=function(e,t,n){if(0===t&&("esc"===n||"return"===n))return f.destroy(),{command:"null"}};f.destroy=function(){e.$mouseHandler.isMousePressed||(e.keyBinding.removeKeyboardHandler(g),n.widgetManager.removeLineWidget(f),e.off("changeSelection",f.destroy),e.off("changeSession",f.destroy),e.off("mouseup",f.destroy),e.off("change",f.destroy))},e.keyBinding.addKeyboardHandler(g),e.on("changeSelection",f.destroy),e.on("changeSession",f.destroy),e.on("mouseup",f.destroy),e.on("change",f.destroy),e.session.widgetManager.addLineWidget(f),f.el.onmousedown=e.focus.bind(e),e.renderer.scrollCursorIntoView(null,.5,{bottom:f.el.offsetHeight})},i.importCssString("\n .error_widget_wrapper {\n background: inherit;\n color: inherit;\n border:none\n }\n .error_widget {\n border-top: solid 2px;\n border-bottom: solid 2px;\n margin: 5px 0;\n padding: 10px 40px;\n white-space: pre-wrap;\n }\n .error_widget.ace_error, .error_widget_arrow.ace_error{\n border-color: #ff5a5a\n }\n .error_widget.ace_warning, .error_widget_arrow.ace_warning{\n border-color: #F1D817\n }\n .error_widget.ace_info, .error_widget_arrow.ace_info{\n border-color: #5a5a5a\n }\n .error_widget.ace_ok, .error_widget_arrow.ace_ok{\n border-color: #5aaa5a\n }\n .error_widget_arrow {\n position: absolute;\n border: solid 5px;\n border-top-color: transparent!important;\n border-right-color: transparent!important;\n border-left-color: transparent!important;\n top: -5px;\n }\n","error_marker.css",!1)})),ace.define("ace/ace",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config","ace/loader_build"],(function(e,t,n){"use strict";e("./loader_build")(t);var r=e("./lib/dom"),i=e("./lib/event"),o=e("./range").Range,a=e("./editor").Editor,s=e("./edit_session").EditSession,l=e("./undomanager").UndoManager,u=e("./virtual_renderer").VirtualRenderer;e("./worker/worker_client"),e("./keyboard/hash_handler"),e("./placeholder"),e("./multi_select"),e("./mode/folding/fold_mode"),e("./theme/textmate"),e("./ext/error_marker"),t.config=e("./config"),t.edit=function(e,n){if("string"==typeof e){var o=e;if(!(e=document.getElementById(o)))throw new Error("ace.edit can't find div #"+o)}if(e&&e.env&&e.env.editor instanceof a)return e.env.editor;var s="";if(e&&/input|textarea/i.test(e.tagName)){var l=e;s=l.value,e=r.createElement("pre"),l.parentNode.replaceChild(e,l)}else e&&(s=e.textContent,e.innerHTML="");var c=t.createEditSession(s),d=new a(new u(e),c,n),f={document:c,editor:d,onResize:d.resize.bind(d,null)};return l&&(f.textarea=l),i.addListener(window,"resize",f.onResize),d.on("destroy",(function(){i.removeListener(window,"resize",f.onResize),f.editor.container.env=null})),d.container.env=d.env=f,d},t.createEditSession=function(e,t){var n=new s(e,t);return n.setUndoManager(new l),n},t.Range=o,t.Editor=a,t.EditSession=s,t.UndoManager=l,t.VirtualRenderer=u,t.version=t.config.version})),ace.require(["ace/ace"],(function(t){for(var n in t&&(t.config.init(!0),t.define=ace.define),window.ace||(window.ace=t),t)t.hasOwnProperty(n)&&(window.ace[n]=t[n]);window.ace.default=window.ace,e&&(e.exports=window.ace)}))},function(e){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){"use strict";var r=n(4),i=n(18),o=n(47),a=n(30),s=n(31),l=n(45),u=Object.assign;e.exports=!u||n(16)((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=r}))?function(e,t){for(var n=s(e),u=arguments.length,c=1,d=o.f,f=a.f;u>c;)for(var h,p=l(arguments[c++]),m=d?i(p).concat(d(p)):i(p),g=m.length,v=0;g>v;)h=m[v++],r&&!f.call(p,h)||(n[h]=p[h]);return n}:u},function(e,t,n){var r=n(13),i=n(77),o=n(78);e.exports=function(e){return function(t,n,a){var s,l=r(t),u=i(l.length),c=o(a,u);if(e&&n!=n){for(;u>c;)if((s=l[c++])!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var r=n(26),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){var r=n(26),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):o(e,t)}},function(e,t){"use strict";t.Z=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}},function(e,t,n){e.exports={default:n(81),__esModule:!0}},function(e,t,n){n(138),n(111),e.exports=n(49).f("iterator")},function(e,t,n){var r=n(26),i=n(25);e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),l=r(n),u=s.length;return l<0||l>=u?e?"":void 0:(o=s.charCodeAt(l))<55296||o>56319||l+1===u||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):o:e?s.slice(l,l+2):a-56320+(o-55296<<10)+65536}}},function(e,t,n){e.exports=n(10)},function(e,t,n){"use strict";var r=n(33),i=n(17),o=n(34),a={};n(10)(a,n(14)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},function(e,t,n){var r=n(11),i=n(15),o=n(18);e.exports=n(4)?Object.defineProperties:function(e,t){i(e);for(var n,a=o(t),s=a.length,l=0;s>l;)r.f(e,n=a[l++],t[n]);return e}},function(e,t,n){var r=n(2).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(8),i=n(31),o=n(27)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){"use strict";var r=n(89),i=n(90),o=n(32),a=n(13);e.exports=n(48)(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(e){e.exports=function(){}},function(e){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){e.exports={default:n(112),__esModule:!0}},function(e,t,n){var r=n(20)("meta"),i=n(12),o=n(8),a=n(11).f,s=0,l=Object.isExtensible||function(){return!0},u=!n(16)((function(){return l(Object.preventExtensions({}))})),c=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},d=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!l(e))return"F";if(!t)return"E";c(e)}return e[r].i},getWeak:function(e,t){if(!o(e,r)){if(!l(e))return!0;if(!t)return!1;c(e)}return e[r].w},onFreeze:function(e){return u&&d.NEED&&l(e)&&!o(e,r)&&c(e),e}}},function(e,t,n){var r=n(18),i=n(47),o=n(30);e.exports=function(e){var t=r(e),n=i.f;if(n)for(var a,s=n(e),l=o.f,u=0;s.length>u;)l.call(e,a=s[u++])&&t.push(a);return t}},function(e,t,n){var r=n(46);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(44),i=n(29).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){var r=n(30),i=n(17),o=n(13),a=n(24),s=n(8),l=n(42),u=Object.getOwnPropertyDescriptor;t.f=n(4)?u:function(e,t){if(e=o(e),t=a(t,!0),l)try{return u(e,t)}catch(e){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},function(e,t,n){var r=n(12),i=n(15),o=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{(r=n(41)(Function.call,n(96).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return o(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:o}},function(e){"use strict";
55
+ /*
56
+ object-assign
57
+ (c) Sindre Sorhus
58
+ @license MIT
59
+ */var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(e){if(null==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(e){return!1}}()?Object.assign:function(e,o){for(var a,s,l=i(e),u=1;u<arguments.length;u++){for(var c in a=Object(arguments[u]))n.call(a,c)&&(l[c]=a[c]);if(t){s=t(a);for(var d=0;d<s.length;d++)r.call(a,s[d])&&(l[s[d]]=a[s[d]])}}return l}},function(e,t,n){n(119);var r=n(3).Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},function(e,t,n){try{var r=n(72)}catch(e){r=n(72)}var i=/\s+/,o=Object.prototype.toString;function a(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}e.exports=function(e){return new a(e)},a.prototype.add=function(e){if(this.list)return this.list.add(e),this;var t=this.array();return~r(t,e)||t.push(e),this.el.className=t.join(" "),this},a.prototype.remove=function(e){if("[object RegExp]"==o.call(e))return this.removeMatching(e);if(this.list)return this.list.remove(e),this;var t=this.array(),n=r(t,e);return~n&&t.splice(n,1),this.el.className=t.join(" "),this},a.prototype.removeMatching=function(e){for(var t=this.array(),n=0;n<t.length;n++)e.test(t[n])&&this.remove(t[n]);return this},a.prototype.toggle=function(e,t){return this.list?(void 0!==t?t!==this.list.toggle(e,t)&&this.list.toggle(e):this.list.toggle(e),this):(void 0!==t?t?this.add(e):this.remove(e):this.has(e)?this.remove(e):this.add(e),this)},a.prototype.array=function(){var e=(this.el.getAttribute("class")||"").replace(/^\s+|\s+$/g,"").split(i);return""===e[0]&&e.shift(),e},a.prototype.has=a.prototype.contains=function(e){return this.list?this.list.contains(e):!!~r(this.array(),e)}},function(e,t){"use strict";
60
+ /**
61
+ * @license React
62
+ * react.production.min.js
63
+ *
64
+ * Copyright (c) Facebook, Inc. and its affiliates.
65
+ *
66
+ * This source code is licensed under the MIT license found in the
67
+ * LICENSE file in the root directory of this source tree.
68
+ */var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.iterator;var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}function b(){}function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=v.prototype;var _=y.prototype=new b;_.constructor=y,m(_,v.prototype),_.isPureReactComponent=!0;var w=Array.isArray,x=Object.prototype.hasOwnProperty,C={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,r){var i,o={},a=null,s=null;if(null!=t)for(i in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)x.call(t,i)&&!E.hasOwnProperty(i)&&(o[i]=t[i]);var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(i in l=e.defaultProps)void 0===o[i]&&(o[i]=l[i]);return{$$typeof:n,type:e,key:a,ref:s,props:o,_owner:C.current}}function T(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var A=/\/+/g;function k(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 O(e,t,i,o,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return a=a(l=e),e=""===o?"."+k(l,0):o,w(a)?(i="",null!=e&&(i=e.replace(A,"$&/")+"/"),O(a,t,i,"",(function(e){return e}))):null!=a&&(T(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,i+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(A,"$&/")+"/")+e)),t.push(a)),1;if(l=0,o=""===o?".":o+":",w(e))for(var u=0;u<e.length;u++){var c=o+k(s=e[u],u);l+=O(s,t,i,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),u=0;!(s=e.next()).done;)l+=O(s=s.value,t,i,c=o+k(s,u++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function I(e,t,n){if(null==e)return e;var r=[],i=0;return O(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function L(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var R={current:null},M={transition:null},P={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:M,ReactCurrentOwner:C};t.Children={map:I,forEach:function(e,t,n){I(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return I(e,(function(){t++})),t},toArray:function(e){return I(e,(function(e){return e}))||[]},only:function(e){if(!T(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=i,t.Profiler=a,t.PureComponent=y,t.StrictMode=o,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=m({},e.props),o=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=C.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)x.call(t,u)&&!E.hasOwnProperty(u)&&(i[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)i.children=r;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];i.children=l}return{$$typeof:n,type:e.type,key:o,ref:a,props:i,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=S,t.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=T,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:L}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=M.transition;M.transition={};try{e()}finally{M.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return R.current.useCallback(e,t)},t.useContext=function(e){return R.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return R.current.useDeferredValue(e)},t.useEffect=function(e,t){return R.current.useEffect(e,t)},t.useId=function(){return R.current.useId()},t.useImperativeHandle=function(e,t,n){return R.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return R.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return R.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return R.current.useMemo(e,t)},t.useReducer=function(e,t,n){return R.current.useReducer(e,t,n)},t.useRef=function(e){return R.current.useRef(e)},t.useState=function(e){return R.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return R.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return R.current.useTransition()},t.version="18.2.0"},function(){},function(e,t,n){"use strict";
69
+ /**
70
+ * @license React
71
+ * react-dom.production.min.js
72
+ *
73
+ * Copyright (c) Facebook, Inc. and its affiliates.
74
+ *
75
+ * This source code is licensed under the MIT license found in the
76
+ * LICENSE file in the root directory of this source tree.
77
+ */var r=n(0),i=n(135);function o(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 a=new Set,s={};function l(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var c=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[: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]*$/,h={},p={};function m(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[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];g[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[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){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function y(e,t,n,r){var i=g.hasOwnProperty(t)?g[t]:null;(null!==i?0!==i.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||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,i,r)&&(n=null),r||null===i?function(e){return!!d.call(p,e)||!d.call(h,e)&&(f.test(e)?p[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!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(v,b);g[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(v,b);g[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(v,b);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var _=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),x=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),T=Symbol.for("react.provider"),A=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),R=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var M=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var P=Symbol.iterator;function $(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=P&&e[P]||e["@@iterator"])?e:null}var N,D=Object.assign;function j(e){if(void 0===N)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);N=t&&t[1]||""}return"\n"+N+e}var F=!1;function B(e,t){if(!e||F)return"";F=!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(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var i=t.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var l="\n"+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{F=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?j(e):""}function W(e){switch(e.tag){case 5:return j(e.type);case 16:return j("Lazy");case 13:return j("Suspense");case 19:return j("SuspenseList");case 0:case 2:case 15:return e=B(e.type,!1);case 11:return e=B(e.type.render,!1);case 1:return e=B(e.type,!0);default:return""}}function H(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 C:return"Fragment";case x:return"Portal";case S:return"Profiler";case E:return"StrictMode";case O:return"Suspense";case I:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case A:return(e.displayName||"Context")+".Consumer";case T:return(e._context.displayName||"Context")+".Provider";case k:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case L:return null!==(t=e.displayName||null)?t:H(e.type)||"Memo";case R:t=e._payload,e=e._init;try{return H(e(t))}catch(e){}}return null}function V(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return H(t);case 8:return t===E?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function U(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function z(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function q(e){e._valueTracker||(e._valueTracker=function(e){var t=z(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.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 K(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=z(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function G(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function X(e,t){var n=t.checked;return D({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Y(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=U(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 Q(e,t){null!=(t=t.checked)&&y(e,"checked",t,!1)}function Z(e,t){Q(e,t);var n=U(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")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,U(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(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 ee(e,t,n){"number"===t&&G(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+U(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return D({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(te(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:U(n)}}function oe(e,t){var n=U(t.value),r=U(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 ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(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 le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,ce,de=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.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 ce(e,t)}))}:ce);function fe(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 he={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pe=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||he.hasOwnProperty(e)&&he[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(he).forEach((function(e){pe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),he[t]=he[e]}))}));var ve=D({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 be(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(o(62))}}function ye(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}}var _e=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var xe=null,Ce=null,Ee=null;function Se(e){if(e=yi(e)){if("function"!=typeof xe)throw Error(o(280));var t=e.stateNode;t&&(t=wi(t),xe(e.stateNode,e.type,t))}}function Te(e){Ce?Ee?Ee.push(e):Ee=[e]:Ce=e}function Ae(){if(Ce){var e=Ce,t=Ee;if(Ee=Ce=null,Se(e),t)for(e=0;e<t.length;e++)Se(t[e])}}function ke(e,t){return e(t)}function Oe(){}var Ie=!1;function Le(e,t,n){if(Ie)return e(t,n);Ie=!0;try{return ke(e,t,n)}finally{Ie=!1,(null!==Ce||null!==Ee)&&(Oe(),Ae())}}function Re(e,t){var n=e.stateNode;if(null===n)return null;var r=wi(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(o(231,t,typeof n));return n}var Me=!1;if(c)try{var Pe={};Object.defineProperty(Pe,"passive",{get:function(){Me=!0}}),window.addEventListener("test",Pe,Pe),window.removeEventListener("test",Pe,Pe)}catch(ce){Me=!1}function $e(e,t,n,r,i,o,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Ne=!1,De=null,je=!1,Fe=null,Be={onError:function(e){Ne=!0,De=e}};function We(e,t,n,r,i,o,a,s,l){Ne=!1,De=null,$e.apply(Be,arguments)}function He(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ve(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 Ue(e){if(He(e)!==e)throw Error(o(188))}function ze(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=He(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return Ue(i),e;if(a===r)return Ue(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=a;break}if(l===r){s=!0,r=i,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=i;break}if(l===r){s=!0,r=a,n=i;break}l=l.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e))?qe(e):null}function qe(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=qe(e);if(null!==t)return t;e=e.sibling}return null}var Ke=i.unstable_scheduleCallback,Ge=i.unstable_cancelCallback,Xe=i.unstable_shouldYield,Ye=i.unstable_requestPaint,Qe=i.unstable_now,Ze=i.unstable_getCurrentPriorityLevel,Je=i.unstable_ImmediatePriority,et=i.unstable_UserBlockingPriority,tt=i.unstable_NormalPriority,nt=i.unstable_LowPriority,rt=i.unstable_IdlePriority,it=null,ot=null;var at=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2;var ut=64,ct=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=dt(s):0!==(o&=a)&&(r=dt(o))}else 0!==(a=n&~i)?r=dt(a):0!==o&&(r=dt(o));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&0!=(4194240&o)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-at(t)),r|=e[n],t&=~i;return r}function ht(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function pt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ut;return 0==(4194240&(ut<<=1))&&(ut=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function bt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var yt=0;function _t(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var wt,xt,Ct,Et,St,Tt=!1,At=[],kt=null,Ot=null,It=null,Lt=new Map,Rt=new Map,Mt=[],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 $t(e,t){switch(e){case"focusin":case"focusout":kt=null;break;case"dragenter":case"dragleave":Ot=null;break;case"mouseover":case"mouseout":It=null;break;case"pointerover":case"pointerout":Lt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rt.delete(t.pointerId)}}function Nt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&(null!==(t=yi(t))&&xt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Dt(e){var t=bi(e.target);if(null!==t){var n=He(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ve(n)))return e.blockedOn=t,void St(e.priority,(function(){Ct(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function jt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Xt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=yi(n))&&xt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);_e=r,n.target.dispatchEvent(r),_e=null,t.shift()}return!0}function Ft(e,t,n){jt(e)&&n.delete(t)}function Bt(){Tt=!1,null!==kt&&jt(kt)&&(kt=null),null!==Ot&&jt(Ot)&&(Ot=null),null!==It&&jt(It)&&(It=null),Lt.forEach(Ft),Rt.forEach(Ft)}function Wt(e,t){e.blockedOn===t&&(e.blockedOn=null,Tt||(Tt=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Bt)))}function Ht(e){function t(t){return Wt(t,e)}if(0<At.length){Wt(At[0],e);for(var n=1;n<At.length;n++){var r=At[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==kt&&Wt(kt,e),null!==Ot&&Wt(Ot,e),null!==It&&Wt(It,e),Lt.forEach(t),Rt.forEach(t),n=0;n<Mt.length;n++)(r=Mt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Mt.length&&null===(n=Mt[0]).blockedOn;)Dt(n),null===n.blockedOn&&Mt.shift()}var Vt=_.ReactCurrentBatchConfig,Ut=!0;function zt(e,t,n,r){var i=yt,o=Vt.transition;Vt.transition=null;try{yt=1,Kt(e,t,n,r)}finally{yt=i,Vt.transition=o}}function qt(e,t,n,r){var i=yt,o=Vt.transition;Vt.transition=null;try{yt=4,Kt(e,t,n,r)}finally{yt=i,Vt.transition=o}}function Kt(e,t,n,r){if(Ut){var i=Xt(e,t,n,r);if(null===i)Ur(e,t,r,Gt,n),$t(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return kt=Nt(kt,e,t,n,r,i),!0;case"dragenter":return Ot=Nt(Ot,e,t,n,r,i),!0;case"mouseover":return It=Nt(It,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Lt.set(o,Nt(Lt.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Rt.set(o,Nt(Rt.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if($t(e,r),4&t&&-1<Pt.indexOf(e)){for(;null!==i;){var o=yi(i);if(null!==o&&wt(o),null===(o=Xt(e,t,n,r))&&Ur(e,t,r,Gt,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else Ur(e,t,r,null,n)}}var Gt=null;function Xt(e,t,n,r){if(Gt=null,null!==(e=bi(e=we(r))))if(null===(t=He(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ve(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Gt=e,null}function Yt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ze()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Qt=null,Zt=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=Zt,r=n.length,i="value"in Qt?Qt.value:Qt.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return Jt=i.slice(e,1<t?1-t:void 0)}function tn(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 nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return D(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=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,ln,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(un),dn=D({},un,{view:0,detail:0}),fn=on(dn),hn=D({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Sn,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!==ln&&(ln&&"mousemove"===e.type?(an=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=an=0,ln=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),pn=on(hn),mn=on(D({},hn,{dataTransfer:0})),gn=on(D({},dn,{relatedTarget:0})),vn=on(D({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),bn=D({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yn=on(bn),_n=on(D({},un,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xn={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"},Cn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function En(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Cn[e])&&!!t[e]}function Sn(){return En}var Tn=D({},dn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?xn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Sn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),An=on(Tn),kn=on(D({},hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),On=on(D({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Sn})),In=on(D({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),Ln=D({},hn,{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}),Rn=on(Ln),Mn=[9,13,27,32],Pn=c&&"CompositionEvent"in window,$n=null;c&&"documentMode"in document&&($n=document.documentMode);var Nn=c&&"TextEvent"in window&&!$n,Dn=c&&(!Pn||$n&&8<$n&&11>=$n),jn=String.fromCharCode(32),Fn=!1;function Bn(e,t){switch(e){case"keyup":return-1!==Mn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Hn=!1;var Vn={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 Un(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Vn[e.type]:"textarea"===t}function zn(e,t,n,r){Te(r),0<(t=qr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var qn=null,Kn=null;function Gn(e){jr(e,0)}function Xn(e){if(K(_i(e)))return e}function Yn(e,t){if("change"===e)return t}var Qn=!1;if(c){var Zn;if(c){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"==typeof er.oninput}Zn=Jn}else Zn=!1;Qn=Zn&&(!document.documentMode||9<document.documentMode)}function tr(){qn&&(qn.detachEvent("onpropertychange",nr),Kn=qn=null)}function nr(e){if("value"===e.propertyName&&Xn(Kn)){var t=[];zn(t,Kn,e,we(e)),Le(Gn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Kn=n,(qn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Xn(Kn)}function or(e,t){if("click"===e)return Xn(t)}function ar(e,t){if("input"===e||"change"===e)return Xn(t)}var sr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function lr(e,t){if(sr(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++){var i=n[r];if(!d.call(t,i)||!sr(e[i],t[i]))return!1}return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=ur(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=ur(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=G();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=G((e=t.contentWindow).document)}return t}function hr(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)}function pr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&hr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=cr(n,o);var a=cr(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=c&&"documentMode"in document&&11>=document.documentMode,gr=null,vr=null,br=null,yr=!1;function _r(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yr||null==gr||gr!==G(r)||("selectionStart"in(r=gr)&&hr(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},br&&lr(br,r)||(br=r,0<(r=qr(vr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var xr={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},Cr={},Er={};function Sr(e){if(Cr[e])return Cr[e];if(!xr[e])return e;var t,n=xr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Er)return Cr[e]=n[t];return e}c&&(Er=document.createElement("div").style,"AnimationEvent"in window||(delete xr.animationend.animation,delete xr.animationiteration.animation,delete xr.animationstart.animation),"TransitionEvent"in window||delete xr.transitionend.transition);var Tr=Sr("animationend"),Ar=Sr("animationiteration"),kr=Sr("animationstart"),Or=Sr("transitionend"),Ir=new Map,Lr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Rr(e,t){Ir.set(e,t),l(t,[e])}for(var Mr=0;Mr<Lr.length;Mr++){var Pr=Lr[Mr];Rr(Pr.toLowerCase(),"on"+(Pr[0].toUpperCase()+Pr.slice(1)))}Rr(Tr,"onAnimationEnd"),Rr(Ar,"onAnimationIteration"),Rr(kr,"onAnimationStart"),Rr("dblclick","onDoubleClick"),Rr("focusin","onFocus"),Rr("focusout","onBlur"),Rr(Or,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var $r="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Nr=new Set("cancel close invalid load scroll toggle".split(" ").concat($r));function Dr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,a,s,l,u){if(We.apply(this,arguments),Ne){if(!Ne)throw Error(o(198));var c=De;Ne=!1,De=null,je||(je=!0,Fe=c)}}(r,t,void 0,e),e.currentTarget=null}function jr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;Dr(i,s,u),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;Dr(i,s,u),o=l}}}if(je)throw e=Fe,je=!1,Fe=null,e}function Fr(e,t){var n=t[mi];void 0===n&&(n=t[mi]=new Set);var r=e+"__bubble";n.has(r)||(Vr(t,e,2,!1),n.add(r))}function Br(e,t,n){var r=0;t&&(r|=4),Vr(n,e,r,t)}var Wr="_reactListening"+Math.random().toString(36).slice(2);function Hr(e){if(!e[Wr]){e[Wr]=!0,a.forEach((function(t){"selectionchange"!==t&&(Nr.has(t)||Br(t,!1,e),Br(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Wr]||(t[Wr]=!0,Br("selectionchange",!1,t))}}function Vr(e,t,n,r){switch(Yt(t)){case 1:var i=zt;break;case 4:i=qt;break;default:i=Kt}n=i.bind(null,t,n,e),i=void 0,!Me||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Ur(e,t,n,r,i){var o=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=bi(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue e}s=s.parentNode}}r=r.return}Le((function(){var r=o,i=we(n),a=[];e:{var s=Ir.get(e);if(void 0!==s){var l=cn,u=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=An;break;case"focusin":u="focus",l=gn;break;case"focusout":u="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;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":l=pn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=On;break;case Tr:case Ar:case kr:l=vn;break;case Or:l=In;break;case"scroll":l=fn;break;case"wheel":l=Rn;break;case"copy":case"cut":case"paste":l=yn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=kn}var c=0!=(4&t),d=!c&&"scroll"===e,f=c?null!==s?s+"Capture":null:s;c=[];for(var h,p=r;null!==p;){var m=(h=p).stateNode;if(5===h.tag&&null!==m&&(h=m,null!==f&&(null!=(m=Re(p,f))&&c.push(zr(p,m,h)))),d)break;p=p.return}0<c.length&&(s=new l(s,u,null,n,i),a.push({event:s,listeners:c}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===_e||!(u=n.relatedTarget||n.fromElement)||!bi(u)&&!u[pi])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?bi(u):null)&&(u!==(d=He(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=pn,m="onMouseLeave",f="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(c=kn,m="onPointerLeave",f="onPointerEnter",p="pointer"),d=null==l?s:_i(l),h=null==u?s:_i(u),(s=new c(m,p+"leave",l,n,i)).target=d,s.relatedTarget=h,m=null,bi(i)===r&&((c=new c(f,p+"enter",u,n,i)).target=h,c.relatedTarget=d,m=c),d=m,l&&u)e:{for(f=u,p=0,h=c=l;h;h=Kr(h))p++;for(h=0,m=f;m;m=Kr(m))h++;for(;0<p-h;)c=Kr(c),p--;for(;0<h-p;)f=Kr(f),h--;for(;p--;){if(c===f||null!==f&&c===f.alternate)break e;c=Kr(c),f=Kr(f)}c=null}else c=null;null!==l&&Gr(a,s,l,c,!1),null!==u&&null!==d&&Gr(a,d,u,c,!0)}if("select"===(l=(s=r?_i(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Yn;else if(Un(s))if(Qn)g=ar;else{g=ir;var v=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=or);switch(g&&(g=g(e,r))?zn(a,g,n,i):(v&&v(e,s,r),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&ee(s,"number",s.value)),v=r?_i(r):window,e){case"focusin":(Un(v)||"true"===v.contentEditable)&&(gr=v,vr=r,br=null);break;case"focusout":br=vr=gr=null;break;case"mousedown":yr=!0;break;case"contextmenu":case"mouseup":case"dragend":yr=!1,_r(a,n,i);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":_r(a,n,i)}var b;if(Pn)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else Hn?Bn(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(Dn&&"ko"!==n.locale&&(Hn||"onCompositionStart"!==y?"onCompositionEnd"===y&&Hn&&(b=en()):(Zt="value"in(Qt=i)?Qt.value:Qt.textContent,Hn=!0)),0<(v=qr(r,y)).length&&(y=new _n(y,e,null,n,i),a.push({event:y,listeners:v}),b?y.data=b:null!==(b=Wn(n))&&(y.data=b))),(b=Nn?function(e,t){switch(e){case"compositionend":return Wn(t);case"keypress":return 32!==t.which?null:(Fn=!0,jn);case"textInput":return(e=t.data)===jn&&Fn?null:e;default:return null}}(e,n):function(e,t){if(Hn)return"compositionend"===e||!Pn&&Bn(e,t)?(e=en(),Jt=Zt=Qt=null,Hn=!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 Dn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=qr(r,"onBeforeInput")).length&&(i=new _n("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=b))}jr(a,t)}))}function zr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Re(e,n))&&r.unshift(zr(e,o,i)),null!=(o=Re(e,t))&&r.push(zr(e,o,i))),e=e.return}return r}function Kr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Gr(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,i?null!=(l=Re(n,o))&&a.unshift(zr(n,l,s)):i||null!=(l=Re(n,o))&&a.push(zr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Xr=/\r\n?/g,Yr=/\u0000|\uFFFD/g;function Qr(e){return("string"==typeof e?e:""+e).replace(Xr,"\n").replace(Yr,"")}function Zr(e,t,n){if(t=Qr(t),Qr(e)!==t&&n)throw Error(o(425))}function Jr(){}var ei=null,ti=null;function ni(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ri="function"==typeof setTimeout?setTimeout:void 0,ii="function"==typeof clearTimeout?clearTimeout:void 0,oi="function"==typeof Promise?Promise:void 0,ai="function"==typeof queueMicrotask?queueMicrotask:void 0!==oi?function(e){return oi.resolve(null).then(e).catch(si)}:ri;function si(e){setTimeout((function(){throw e}))}function li(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void Ht(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);Ht(t)}function ui(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ci(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 di=Math.random().toString(36).slice(2),fi="__reactFiber$"+di,hi="__reactProps$"+di,pi="__reactContainer$"+di,mi="__reactEvents$"+di,gi="__reactListeners$"+di,vi="__reactHandles$"+di;function bi(e){var t=e[fi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[pi]||n[fi]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ci(e);null!==e;){if(n=e[fi])return n;e=ci(e)}return t}n=(e=n).parentNode}return null}function yi(e){return!(e=e[fi]||e[pi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function _i(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function wi(e){return e[hi]||null}var xi=[],Ci=-1;function Ei(e){return{current:e}}function Si(e){0>Ci||(e.current=xi[Ci],xi[Ci]=null,Ci--)}function Ti(e,t){Ci++,xi[Ci]=e.current,e.current=t}var Ai={},ki=Ei(Ai),Oi=Ei(!1),Ii=Ai;function Li(e,t){var n=e.type.contextTypes;if(!n)return Ai;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ri(e){return null!=(e=e.childContextTypes)}function Mi(){Si(Oi),Si(ki)}function Pi(e,t,n){if(ki.current!==Ai)throw Error(o(168));Ti(ki,t),Ti(Oi,n)}function $i(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(o(108,V(e)||"Unknown",i));return D({},n,r)}function Ni(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ai,Ii=ki.current,Ti(ki,e),Ti(Oi,Oi.current),!0}function Di(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=$i(e,t,Ii),r.__reactInternalMemoizedMergedChildContext=e,Si(Oi),Si(ki),Ti(ki,e)):Si(Oi),Ti(Oi,n)}var ji=null,Fi=!1,Bi=!1;function Wi(e){null===ji?ji=[e]:ji.push(e)}function Hi(){if(!Bi&&null!==ji){Bi=!0;var e=0,t=yt;try{var n=ji;for(yt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}ji=null,Fi=!1}catch(t){throw null!==ji&&(ji=ji.slice(e+1)),Ke(Je,Hi),t}finally{yt=t,Bi=!1}}return null}var Vi=[],Ui=0,zi=null,qi=0,Ki=[],Gi=0,Xi=null,Yi=1,Qi="";function Zi(e,t){Vi[Ui++]=qi,Vi[Ui++]=zi,zi=e,qi=t}function Ji(e,t,n){Ki[Gi++]=Yi,Ki[Gi++]=Qi,Ki[Gi++]=Xi,Xi=e;var r=Yi;e=Qi;var i=32-at(r)-1;r&=~(1<<i),n+=1;var o=32-at(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Yi=1<<32-at(t)+i|n<<i|r,Qi=o+e}else Yi=1<<o|n<<i|r,Qi=e}function eo(e){null!==e.return&&(Zi(e,1),Ji(e,1,0))}function to(e){for(;e===zi;)zi=Vi[--Ui],Vi[Ui]=null,qi=Vi[--Ui],Vi[Ui]=null;for(;e===Xi;)Xi=Ki[--Gi],Ki[Gi]=null,Qi=Ki[--Gi],Ki[Gi]=null,Yi=Ki[--Gi],Ki[Gi]=null}var no=null,ro=null,io=!1,oo=null;function ao(e,t){var n=Lu(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function so(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,no=e,ro=ui(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,no=e,ro=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Xi?{id:Yi,overflow:Qi}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Lu(18,null,null,0)).stateNode=t,n.return=e,e.child=n,no=e,ro=null,!0);default:return!1}}function lo(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function uo(e){if(io){var t=ro;if(t){var n=t;if(!so(e,t)){if(lo(e))throw Error(o(418));t=ui(n.nextSibling);var r=no;t&&so(e,t)?ao(r,n):(e.flags=-4097&e.flags|2,io=!1,no=e)}}else{if(lo(e))throw Error(o(418));e.flags=-4097&e.flags|2,io=!1,no=e}}}function co(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;no=e}function fo(e){if(e!==no)return!1;if(!io)return co(e),io=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ni(e.type,e.memoizedProps)),t&&(t=ro)){if(lo(e))throw ho(),Error(o(418));for(;t;)ao(e,t),t=ui(t.nextSibling)}if(co(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ro=ui(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ro=null}}else ro=no?ui(e.stateNode.nextSibling):null;return!0}function ho(){for(var e=ro;e;)e=ui(e.nextSibling)}function po(){ro=no=null,io=!1}function mo(e){null===oo?oo=[e]:oo.push(e)}var go=_.ReactCurrentBatchConfig;function vo(e,t){if(e&&e.defaultProps){for(var n in t=D({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var bo=Ei(null),yo=null,_o=null,wo=null;function xo(){wo=_o=yo=null}function Co(e){var t=bo.current;Si(bo),e._currentValue=t}function Eo(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function So(e,t){yo=e,wo=_o=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(_s=!0),e.firstContext=null)}function To(e){var t=e._currentValue;if(wo!==e)if(e={context:e,memoizedValue:t,next:null},null===_o){if(null===yo)throw Error(o(308));_o=e,yo.dependencies={lanes:0,firstContext:e}}else _o=_o.next=e;return t}var Ao=null;function ko(e){null===Ao?Ao=[e]:Ao.push(e)}function Oo(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,ko(t)):(n.next=i.next,i.next=n),t.interleaved=n,Io(e,r)}function Io(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}var Lo=!1;function Ro(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Mo(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 Po(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function $o(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&kl)){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Io(e,n)}return null===(i=r.interleaved)?(t.next=t,ko(r)):(t.next=i.next,i.next=t),r.interleaved=t,Io(e,n)}function No(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}function Do(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function jo(e,t,n,r){var i=e.updateQueue;Lo=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?o=u:a.next=u,a=l;var c=e.alternate;null!==c&&((s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(null!==o){var d=i.baseState;for(a=0,c=u=l=null,s=o;;){var f=s.lane,h=s.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,m=s;switch(f=t,h=n,m.tag){case 1:if("function"==typeof(p=m.payload)){d=p.call(h,d,f);break e}d=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null==(f="function"==typeof(p=m.payload)?p.call(h,d,f):p))break e;d=D({},d,f);break e;case 2:Lo=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=i.effects)?i.effects=[s]:f.push(s))}else h={eventTime:h,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=h,l=d):c=c.next=h,a|=f;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(f=s).next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}if(null===c&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);Nl|=a,e.lanes=a,e.memoizedState=d}}function Fo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(o(191,i));i.call(r)}}}var Bo=(new r.Component).refs;function Wo(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:D({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Ho={isMounted:function(e){return!!(e=e._reactInternals)&&He(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=eu(),i=tu(e),o=Po(r,i);o.payload=t,null!=n&&(o.callback=n),null!==(t=$o(e,o,i))&&(nu(t,e,i,r),No(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=eu(),i=tu(e),o=Po(r,i);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=$o(e,o,i))&&(nu(t,e,i,r),No(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=eu(),r=tu(e),i=Po(n,r);i.tag=2,null!=t&&(i.callback=t),null!==(t=$o(e,i,r))&&(nu(t,e,r,n),No(t,e,r))}};function Vo(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!lr(n,r)||!lr(i,o))}function Uo(e,t,n){var r=!1,i=Ai,o=t.contextType;return"object"==typeof o&&null!==o?o=To(o):(i=Ri(t)?Ii:ki.current,o=(r=null!=(r=t.contextTypes))?Li(e,i):Ai),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Ho,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function zo(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&&Ho.enqueueReplaceState(t,t.state,null)}function qo(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=Bo,Ro(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=To(o):(o=Ri(t)?Ii:ki.current,i.context=Li(e,o)),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(Wo(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&Ho.enqueueReplaceState(i,i.state,null),jo(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}function Ko(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(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var i=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=i.refs;t===Bo&&(t=i.refs={}),null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function Go(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Xo(e){return(0,e._init)(e._payload)}function Yo(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}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 i(e,t){return(e=Mu(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):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Du(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){var o=n.type;return o===C?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===R&&Xo(o)===t.type)?((r=i(t,n.props)).ref=Ko(e,t,n),r.return=e,r):((r=Pu(n.type,n.key,n.props,null,e.mode,r)).ref=Ko(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=ju(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=$u(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Du(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case w:return(n=Pu(t.type,t.key,t.props,null,e.mode,n)).ref=Ko(e,null,t),n.return=e,n;case x:return(t=ju(t,e.mode,n)).return=e,t;case R:return f(e,(0,t._init)(t._payload),n)}if(te(t)||$(t))return(t=$u(t,e.mode,n,null)).return=e,t;Go(e,t)}return null}function h(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==i?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===i?u(e,t,n,r):null;case x:return n.key===i?c(e,t,n,r):null;case R:return h(e,t,(i=n._init)(n._payload),r)}if(te(n)||$(n))return null!==i?null:d(e,t,n,r,null);Go(e,n)}return null}function p(e,t,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case w:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case x:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case R:return p(e,t,n,(0,r._init)(r._payload),i)}if(te(r)||$(r))return d(t,e=e.get(n)||null,r,i,null);Go(t,r)}return null}function m(i,o,s,l){for(var u=null,c=null,d=o,m=o=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=h(i,d,s[m],l);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(i,d),o=a(v,o,m),null===c?u=v:c.sibling=v,c=v,d=g}if(m===s.length)return n(i,d),io&&Zi(i,m),u;if(null===d){for(;m<s.length;m++)null!==(d=f(i,s[m],l))&&(o=a(d,o,m),null===c?u=d:c.sibling=d,c=d);return io&&Zi(i,m),u}for(d=r(i,d);m<s.length;m++)null!==(g=p(d,i,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),o=a(g,o,m),null===c?u=g:c.sibling=g,c=g);return e&&d.forEach((function(e){return t(i,e)})),io&&Zi(i,m),u}function g(i,s,l,u){var c=$(l);if("function"!=typeof c)throw Error(o(150));if(null==(l=c.call(l)))throw Error(o(151));for(var d=c=null,m=s,g=s=0,v=null,b=l.next();null!==m&&!b.done;g++,b=l.next()){m.index>g?(v=m,m=null):v=m.sibling;var y=h(i,m,b.value,u);if(null===y){null===m&&(m=v);break}e&&m&&null===y.alternate&&t(i,m),s=a(y,s,g),null===d?c=y:d.sibling=y,d=y,m=v}if(b.done)return n(i,m),io&&Zi(i,g),c;if(null===m){for(;!b.done;g++,b=l.next())null!==(b=f(i,b.value,u))&&(s=a(b,s,g),null===d?c=b:d.sibling=b,d=b);return io&&Zi(i,g),c}for(m=r(i,m);!b.done;g++,b=l.next())null!==(b=p(m,i,g,b.value,u))&&(e&&null!==b.alternate&&m.delete(null===b.key?g:b.key),s=a(b,s,g),null===d?c=b:d.sibling=b,d=b);return e&&m.forEach((function(e){return t(i,e)})),io&&Zi(i,g),c}return function e(r,o,a,l){if("object"==typeof a&&null!==a&&a.type===C&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case w:e:{for(var u=a.key,c=o;null!==c;){if(c.key===u){if((u=a.type)===C){if(7===c.tag){n(r,c.sibling),(o=i(c,a.props.children)).return=r,r=o;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===R&&Xo(u)===c.type){n(r,c.sibling),(o=i(c,a.props)).ref=Ko(r,c,a),o.return=r,r=o;break e}n(r,c);break}t(r,c),c=c.sibling}a.type===C?((o=$u(a.props.children,r.mode,l,a.key)).return=r,r=o):((l=Pu(a.type,a.key,a.props,null,r.mode,l)).ref=Ko(r,o,a),l.return=r,r=l)}return s(r);case x:e:{for(c=a.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(r,o.sibling),(o=i(o,a.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=ju(a,r.mode,l)).return=r,r=o}return s(r);case R:return e(r,o,(c=a._init)(a._payload),l)}if(te(a))return m(r,o,a,l);if($(a))return g(r,o,a,l);Go(r,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,a)).return=r,r=o):(n(r,o),(o=Du(a,r.mode,l)).return=r,r=o),s(r)):n(r,o)}}var Qo=Yo(!0),Zo=Yo(!1),Jo={},ea=Ei(Jo),ta=Ei(Jo),na=Ei(Jo);function ra(e){if(e===Jo)throw Error(o(174));return e}function ia(e,t){switch(Ti(na,t),Ti(ta,e),Ti(ea,Jo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Si(ea),Ti(ea,t)}function oa(){Si(ea),Si(ta),Si(na)}function aa(e){ra(na.current);var t=ra(ea.current),n=le(t,e.type);t!==n&&(Ti(ta,e),Ti(ea,n))}function sa(e){ta.current===e&&(Si(ea),Si(ta))}var la=Ei(0);function ua(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!=(128&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 ca=[];function da(){for(var e=0;e<ca.length;e++)ca[e]._workInProgressVersionPrimary=null;ca.length=0}var fa=_.ReactCurrentDispatcher,ha=_.ReactCurrentBatchConfig,pa=0,ma=null,ga=null,va=null,ba=!1,ya=!1,_a=0,wa=0;function xa(){throw Error(o(321))}function Ca(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function Ea(e,t,n,r,i,a){if(pa=a,ma=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,fa.current=null===e||null===e.memoizedState?ss:ls,e=n(r,i),ya){a=0;do{if(ya=!1,_a=0,25<=a)throw Error(o(301));a+=1,va=ga=null,t.updateQueue=null,fa.current=us,e=n(r,i)}while(ya)}if(fa.current=as,t=null!==ga&&null!==ga.next,pa=0,va=ga=ma=null,ba=!1,t)throw Error(o(300));return e}function Sa(){var e=0!==_a;return _a=0,e}function Ta(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===va?ma.memoizedState=va=e:va=va.next=e,va}function Aa(){if(null===ga){var e=ma.alternate;e=null!==e?e.memoizedState:null}else e=ga.next;var t=null===va?ma.memoizedState:va.next;if(null!==t)va=t,ga=e;else{if(null===e)throw Error(o(310));e={memoizedState:(ga=e).memoizedState,baseState:ga.baseState,baseQueue:ga.baseQueue,queue:ga.queue,next:null},null===va?ma.memoizedState=va=e:va=va.next=e}return va}function ka(e,t){return"function"==typeof t?t(e):t}function Oa(e){var t=Aa(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=ga,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}r.baseQueue=i=a,n.pending=null}if(null!==i){a=i.next,r=r.baseState;var l=s=null,u=null,c=a;do{var d=c.lane;if((pa&d)===d)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=f,s=r):u=u.next=f,ma.lanes|=d,Nl|=d}c=c.next}while(null!==c&&c!==a);null===u?s=r:u.next=l,sr(r,t.memoizedState)||(_s=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=u,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{a=i.lane,ma.lanes|=a,Nl|=a,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ia(e){var t=Aa(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);sr(a,t.memoizedState)||(_s=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function La(){}function Ra(e,t){var n=ma,r=Aa(),i=t(),a=!sr(r.memoizedState,i);if(a&&(r.memoizedState=i,_s=!0),r=r.queue,Ua($a.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==va&&1&va.memoizedState.tag){if(n.flags|=2048,Fa(9,Pa.bind(null,n,r,i,t),void 0,null),null===Ol)throw Error(o(349));0!=(30&pa)||Ma(n,t,i)}return i}function Ma(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=ma.updateQueue)?(t={lastEffect:null,stores:null},ma.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Pa(e,t,n,r){t.value=n,t.getSnapshot=r,Na(t)&&Da(e)}function $a(e,t,n){return n((function(){Na(t)&&Da(e)}))}function Na(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(e){return!0}}function Da(e){var t=Io(e,1);null!==t&&nu(t,e,1,-1)}function ja(e){var t=Ta();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ka,lastRenderedState:e},t.queue=e,e=e.dispatch=ns.bind(null,ma,e),[t.memoizedState,e]}function Fa(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ma.updateQueue)?(t={lastEffect:null,stores:null},ma.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 Ba(){return Aa().memoizedState}function Wa(e,t,n,r){var i=Ta();ma.flags|=e,i.memoizedState=Fa(1|t,n,void 0,void 0===r?null:r)}function Ha(e,t,n,r){var i=Aa();r=void 0===r?null:r;var o=void 0;if(null!==ga){var a=ga.memoizedState;if(o=a.destroy,null!==r&&Ca(r,a.deps))return void(i.memoizedState=Fa(t,n,o,r))}ma.flags|=e,i.memoizedState=Fa(1|t,n,o,r)}function Va(e,t){return Wa(8390656,8,e,t)}function Ua(e,t){return Ha(2048,8,e,t)}function za(e,t){return Ha(4,2,e,t)}function qa(e,t){return Ha(4,4,e,t)}function Ka(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ga(e,t,n){return n=null!=n?n.concat([e]):null,Ha(4,4,Ka.bind(null,t,e),n)}function Xa(){}function Ya(e,t){var n=Aa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ca(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Qa(e,t){var n=Aa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ca(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Za(e,t,n){return 0==(21&pa)?(e.baseState&&(e.baseState=!1,_s=!0),e.memoizedState=n):(sr(n,t)||(n=mt(),ma.lanes|=n,Nl|=n,e.baseState=!0),t)}function Ja(e,t){var n=yt;yt=0!==n&&4>n?n:4,e(!0);var r=ha.transition;ha.transition={};try{e(!1),t()}finally{yt=n,ha.transition=r}}function es(){return Aa().memoizedState}function ts(e,t,n){var r=tu(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rs(e))is(t,n);else if(null!==(n=Oo(e,t,n,r))){nu(n,e,r,eu()),os(n,t,r)}}function ns(e,t,n){var r=tu(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rs(e))is(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,sr(s,a)){var l=t.interleaved;return null===l?(i.next=i,ko(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(e){}null!==(n=Oo(e,t,i,r))&&(nu(n,e,r,i=eu()),os(n,t,r))}}function rs(e){var t=e.alternate;return e===ma||null!==t&&t===ma}function is(e,t){ya=ba=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function os(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}var as={readContext:To,useCallback:xa,useContext:xa,useEffect:xa,useImperativeHandle:xa,useInsertionEffect:xa,useLayoutEffect:xa,useMemo:xa,useReducer:xa,useRef:xa,useState:xa,useDebugValue:xa,useDeferredValue:xa,useTransition:xa,useMutableSource:xa,useSyncExternalStore:xa,useId:xa,unstable_isNewReconciler:!1},ss={readContext:To,useCallback:function(e,t){return Ta().memoizedState=[e,void 0===t?null:t],e},useContext:To,useEffect:Va,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Wa(4194308,4,Ka.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Wa(4194308,4,e,t)},useInsertionEffect:function(e,t){return Wa(4,2,e,t)},useMemo:function(e,t){var n=Ta();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ta();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ts.bind(null,ma,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Ta().memoizedState=e},useState:ja,useDebugValue:Xa,useDeferredValue:function(e){return Ta().memoizedState=e},useTransition:function(){var e=ja(!1),t=e[0];return e=Ja.bind(null,e[1]),Ta().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ma,i=Ta();if(io){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===Ol)throw Error(o(349));0!=(30&pa)||Ma(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Va($a.bind(null,r,a,e),[e]),r.flags|=2048,Fa(9,Pa.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Ta(),t=Ol.identifierPrefix;if(io){var n=Qi;t=":"+t+"R"+(n=(Yi&~(1<<32-at(Yi)-1)).toString(32)+n),0<(n=_a++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=wa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ls={readContext:To,useCallback:Ya,useContext:To,useEffect:Ua,useImperativeHandle:Ga,useInsertionEffect:za,useLayoutEffect:qa,useMemo:Qa,useReducer:Oa,useRef:Ba,useState:function(){return Oa(ka)},useDebugValue:Xa,useDeferredValue:function(e){return Za(Aa(),ga.memoizedState,e)},useTransition:function(){return[Oa(ka)[0],Aa().memoizedState]},useMutableSource:La,useSyncExternalStore:Ra,useId:es,unstable_isNewReconciler:!1},us={readContext:To,useCallback:Ya,useContext:To,useEffect:Ua,useImperativeHandle:Ga,useInsertionEffect:za,useLayoutEffect:qa,useMemo:Qa,useReducer:Ia,useRef:Ba,useState:function(){return Ia(ka)},useDebugValue:Xa,useDeferredValue:function(e){var t=Aa();return null===ga?t.memoizedState=e:Za(t,ga.memoizedState,e)},useTransition:function(){return[Ia(ka)[0],Aa().memoizedState]},useMutableSource:La,useSyncExternalStore:Ra,useId:es,unstable_isNewReconciler:!1};function cs(e,t){try{var n="",r=t;do{n+=W(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i,digest:null}}function ds(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function fs(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var hs="function"==typeof WeakMap?WeakMap:Map;function ps(e,t,n){(n=Po(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ul||(Ul=!0,zl=r),fs(0,t)},n}function ms(e,t,n){(n=Po(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){fs(0,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){fs(0,t),"function"!=typeof r&&(null===ql?ql=new Set([this]):ql.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function gs(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new hs;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Su.bind(null,e,t,n),t.then(e,e))}function vs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function bs(e,t,n,r,i){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Po(-1,1)).tag=2,$o(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var ys=_.ReactCurrentOwner,_s=!1;function ws(e,t,n,r){t.child=null===e?Zo(t,null,n,r):Qo(t,e.child,n,r)}function xs(e,t,n,r,i){n=n.render;var o=t.ref;return So(t,i),r=Ea(e,t,n,r,o,i),n=Sa(),null===e||_s?(io&&n&&eo(t),t.flags|=1,ws(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Us(e,t,i))}function Cs(e,t,n,r,i){if(null===e){var o=n.type;return"function"!=typeof o||Ru(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Pu(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Es(e,t,o,r,i))}if(o=e.child,0==(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(a,r)&&e.ref===t.ref)return Us(e,t,i)}return t.flags|=1,(e=Mu(o,r)).ref=t.ref,e.return=t,t.child=e}function Es(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(lr(o,r)&&e.ref===t.ref){if(_s=!1,t.pendingProps=r=o,0==(e.lanes&i))return t.lanes=e.lanes,Us(e,t,i);0!=(131072&e.flags)&&(_s=!0)}}return As(e,t,n,r,i)}function Ss(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ti(Ml,Rl),Rl|=n;else{if(0==(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ti(Ml,Rl),Rl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,Ti(Ml,Rl),Rl|=r}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,Ti(Ml,Rl),Rl|=r;return ws(e,t,i,n),t.child}function Ts(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function As(e,t,n,r,i){var o=Ri(n)?Ii:ki.current;return o=Li(t,o),So(t,i),n=Ea(e,t,n,r,o,i),r=Sa(),null===e||_s?(io&&r&&eo(t),t.flags|=1,ws(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Us(e,t,i))}function ks(e,t,n,r,i){if(Ri(n)){var o=!0;Ni(t)}else o=!1;if(So(t,i),null===t.stateNode)Vs(e,t),Uo(t,n,r),qo(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;"object"==typeof u&&null!==u?u=To(u):u=Li(t,u=Ri(n)?Ii:ki.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&zo(t,a,r,u),Lo=!1;var f=t.memoizedState;a.state=f,jo(t,r,a,i),l=t.memoizedState,s!==r||f!==l||Oi.current||Lo?("function"==typeof c&&(Wo(t,n,c,r),l=t.memoizedState),(s=Lo||Vo(t,n,s,r,f,l,u))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Mo(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:vo(t.type,s),a.props=u,d=t.pendingProps,f=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=To(l):l=Li(t,l=Ri(n)?Ii:ki.current);var h=n.getDerivedStateFromProps;(c="function"==typeof h||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||f!==l)&&zo(t,a,r,l),Lo=!1,f=t.memoizedState,a.state=f,jo(t,r,a,i);var p=t.memoizedState;s!==d||f!==p||Oi.current||Lo?("function"==typeof h&&(Wo(t,n,h,r),p=t.memoizedState),(u=Lo||Vo(t,n,u,r,f,p,l)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=l,r=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Os(e,t,n,r,o,i)}function Os(e,t,n,r,i,o){Ts(e,t);var a=0!=(128&t.flags);if(!r&&!a)return i&&Di(t,n,!1),Us(e,t,o);r=t.stateNode,ys.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Qo(t,e.child,null,o),t.child=Qo(t,null,s,o)):ws(e,t,s,o),t.memoizedState=r.state,i&&Di(t,n,!0),t.child}function Is(e){var t=e.stateNode;t.pendingContext?Pi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Pi(0,t.context,!1),ia(e,t.containerInfo)}function Ls(e,t,n,r,i){return po(),mo(i),t.flags|=256,ws(e,t,n,r),t.child}var Rs,Ms,Ps,$s={dehydrated:null,treeContext:null,retryLane:0};function Ns(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ds(e,t,n){var r,i=t.pendingProps,a=la.current,s=!1,l=0!=(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Ti(la,1&a),null===e)return uo(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=i.children,e=i.fallback,s?(i=t.mode,s=t.child,l={mode:"hidden",children:l},0==(1&i)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=Nu(l,i,0,null),e=$u(e,i,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ns(n),t.memoizedState=$s,e):js(t,l));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,i,a,s){if(n)return 256&t.flags?(t.flags&=-257,Fs(e,t,s,r=ds(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=Nu({mode:"visible",children:r.children},i,0,null),(a=$u(a,i,s,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!=(1&t.mode)&&Qo(t,e.child,null,s),t.child.memoizedState=Ns(s),t.memoizedState=$s,a);if(0==(1&t.mode))return Fs(e,t,s,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var l=r.dgst;return r=l,Fs(e,t,s,r=ds(a=Error(o(419)),r,void 0))}if(l=0!=(s&e.childLanes),_s||l){if(null!==(r=Ol)){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!=(i&(r.suspendedLanes|s))?0:i)&&i!==a.retryLane&&(a.retryLane=i,Io(e,i),nu(r,e,i,-1))}return mu(),Fs(e,t,s,r=ds(Error(o(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Au.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,ro=ui(i.nextSibling),no=t,io=!0,oo=null,null!==e&&(Ki[Gi++]=Yi,Ki[Gi++]=Qi,Ki[Gi++]=Xi,Yi=e.id,Qi=e.overflow,Xi=t),(t=js(t,r.children)).flags|=4096,t)}(e,t,l,i,r,a,n);if(s){s=i.fallback,l=t.mode,r=(a=e.child).sibling;var u={mode:"hidden",children:i.children};return 0==(1&l)&&t.child!==a?((i=t.child).childLanes=0,i.pendingProps=u,t.deletions=null):(i=Mu(a,u)).subtreeFlags=14680064&a.subtreeFlags,null!==r?s=Mu(r,s):(s=$u(s,l,n,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,l=null===(l=e.child.memoizedState)?Ns(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=$s,i}return e=(s=e.child).sibling,i=Mu(s,{mode:"visible",children:i.children}),0==(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function js(e,t){return(t=Nu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Fs(e,t,n,r){return null!==r&&mo(r),Qo(t,e.child,null,n),(e=js(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Bs(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Eo(e.return,t,n)}function Ws(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Hs(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(ws(e,t,r.children,n),0!=(2&(r=la.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Bs(e,n,t);else if(19===e.tag)Bs(e,n,t);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(Ti(la,r),0==(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===ua(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Ws(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===ua(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Ws(t,!0,n,null,o);break;case"together":Ws(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Vs(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Us(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Nl|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Mu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Mu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function zs(e,t){if(!io)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 qs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ks(e,t,n){var r=t.pendingProps;switch(to(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qs(t),null;case 1:case 17:return Ri(t.type)&&Mi(),qs(t),null;case 3:return r=t.stateNode,oa(),Si(Oi),Si(ki),da(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fo(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==oo&&(au(oo),oo=null))),qs(t),null;case 5:sa(t);var i=ra(na.current);if(n=t.type,null!==e&&null!=t.stateNode)Ms(e,t,n,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(o(166));return qs(t),null}if(e=ra(ea.current),fo(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[fi]=t,r[hi]=a,e=0!=(1&t.mode),n){case"dialog":Fr("cancel",r),Fr("close",r);break;case"iframe":case"object":case"embed":Fr("load",r);break;case"video":case"audio":for(i=0;i<$r.length;i++)Fr($r[i],r);break;case"source":Fr("error",r);break;case"img":case"image":case"link":Fr("error",r),Fr("load",r);break;case"details":Fr("toggle",r);break;case"input":Y(r,a),Fr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Fr("invalid",r);break;case"textarea":ie(r,a),Fr("invalid",r)}for(var l in be(n,a),i=null,a)if(a.hasOwnProperty(l)){var u=a[l];"children"===l?"string"==typeof u?r.textContent!==u&&(!0!==a.suppressHydrationWarning&&Zr(r.textContent,u,e),i=["children",u]):"number"==typeof u&&r.textContent!==""+u&&(!0!==a.suppressHydrationWarning&&Zr(r.textContent,u,e),i=["children",""+u]):s.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&Fr("scroll",r)}switch(n){case"input":q(r),J(r,a,!0);break;case"textarea":q(r),ae(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=Jr)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[fi]=t,e[hi]=r,Rs(e,t),t.stateNode=e;e:{switch(l=ye(n,r),n){case"dialog":Fr("cancel",e),Fr("close",e),i=r;break;case"iframe":case"object":case"embed":Fr("load",e),i=r;break;case"video":case"audio":for(i=0;i<$r.length;i++)Fr($r[i],e);i=r;break;case"source":Fr("error",e),i=r;break;case"img":case"image":case"link":Fr("error",e),Fr("load",e),i=r;break;case"details":Fr("toggle",e),i=r;break;case"input":Y(e,r),i=X(e,r),Fr("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=D({},r,{value:void 0}),Fr("invalid",e);break;case"textarea":ie(e,r),i=re(e,r),Fr("invalid",e)}for(a in be(n,i),u=i)if(u.hasOwnProperty(a)){var c=u[a];"style"===a?ge(e,c):"dangerouslySetInnerHTML"===a?null!=(c=c?c.__html:void 0)&&de(e,c):"children"===a?"string"==typeof c?("textarea"!==n||""!==c)&&fe(e,c):"number"==typeof c&&fe(e,""+c):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=c&&"onScroll"===a&&Fr("scroll",e):null!=c&&y(e,a,c,l))}switch(n){case"input":q(e),J(e,r,!1);break;case"textarea":q(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+U(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Jr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return qs(t),null;case 6:if(e&&null!=t.stateNode)Ps(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(o(166));if(n=ra(na.current),ra(ea.current),fo(t)){if(r=t.stateNode,n=t.memoizedProps,r[fi]=t,(a=r.nodeValue!==n)&&null!==(e=no))switch(e.tag){case 3:Zr(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Zr(r.nodeValue,n,0!=(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[fi]=t,t.stateNode=r}return qs(t),null;case 13:if(Si(la),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(io&&null!==ro&&0!=(1&t.mode)&&0==(128&t.flags))ho(),po(),t.flags|=98560,a=!1;else if(a=fo(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(o(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(o(317));a[fi]=t}else po(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;qs(t),a=!1}else null!==oo&&(au(oo),oo=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&la.current)?0===Pl&&(Pl=3):mu())),null!==t.updateQueue&&(t.flags|=4),qs(t),null);case 4:return oa(),null===e&&Hr(t.stateNode.containerInfo),qs(t),null;case 10:return Co(t.type._context),qs(t),null;case 19:if(Si(la),null===(a=t.memoizedState))return qs(t),null;if(r=0!=(128&t.flags),null===(l=a.rendering))if(r)zs(a,!1);else{if(0!==Pl||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=ua(e))){for(t.flags|=128,zs(a,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(l=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ti(la,1&la.current|2),t.child}e=e.sibling}null!==a.tail&&Qe()>Hl&&(t.flags|=128,r=!0,zs(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ua(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),zs(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!io)return qs(t),null}else 2*Qe()-a.renderingStartTime>Hl&&1073741824!==n&&(t.flags|=128,r=!0,zs(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=a.last)?n.sibling=l:t.child=l,a.last=l)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Qe(),t.sibling=null,n=la.current,Ti(la,r?1&n|2:1&n),t):(qs(t),null);case 22:case 23:return du(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&Rl)&&(qs(t),6&t.subtreeFlags&&(t.flags|=8192)):qs(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function Gs(e,t){switch(to(t),t.tag){case 1:return Ri(t.type)&&Mi(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return oa(),Si(Oi),Si(ki),da(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return sa(t),null;case 13:if(Si(la),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));po()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Si(la),null;case 4:return oa(),null;case 10:return Co(t.type._context),null;case 22:case 23:return du(),null;default:return null}}Rs=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}},Ms=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,ra(ea.current);var o,a=null;switch(n){case"input":i=X(e,i),r=X(e,r),a=[];break;case"select":i=D({},i,{value:void 0}),r=D({},r,{value:void 0}),a=[];break;case"textarea":i=re(e,i),r=re(e,r),a=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Jr)}for(c in be(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var l=i[c];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(s.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var u=r[c];if(l=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(o in l)!l.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&l[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(a||(a=[]),a.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(a=a||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(a=a||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(s.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Fr("scroll",e),a||l===u||(a=[])):(a=a||[]).push(c,u))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},Ps=function(e,t,n,r){n!==r&&(t.flags|=4)};var Xs=!1,Ys=!1,Qs="function"==typeof WeakSet?WeakSet:Set,Zs=null;function Js(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Eu(e,t,n)}else n.current=null}function el(e,t,n){try{n()}catch(n){Eu(e,t,n)}}var tl=!1;function nl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&el(t,n,o)}i=i.next}while(i!==r)}}function rl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function il(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function ol(e){var t=e.alternate;null!==t&&(e.alternate=null,ol(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[fi],delete t[hi],delete t[mi],delete t[gi],delete t[vi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function al(e){return 5===e.tag||3===e.tag||4===e.tag}function sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||al(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,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)||null!==t.onclick||(t.onclick=Jr));else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function ul(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ul(e,t,n),e=e.sibling;null!==e;)ul(e,t,n),e=e.sibling}var cl=null,dl=!1;function fl(e,t,n){for(n=n.child;null!==n;)hl(e,t,n),n=n.sibling}function hl(e,t,n){if(ot&&"function"==typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(it,n)}catch(e){}switch(n.tag){case 5:Ys||Js(n,t);case 6:var r=cl,i=dl;cl=null,fl(e,t,n),dl=i,null!==(cl=r)&&(dl?(e=cl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cl.removeChild(n.stateNode));break;case 18:null!==cl&&(dl?(e=cl,n=n.stateNode,8===e.nodeType?li(e.parentNode,n):1===e.nodeType&&li(e,n),Ht(e)):li(cl,n.stateNode));break;case 4:r=cl,i=dl,cl=n.stateNode.containerInfo,dl=!0,fl(e,t,n),cl=r,dl=i;break;case 0:case 11:case 14:case 15:if(!Ys&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(0!=(2&o)||0!=(4&o))&&el(n,t,a),i=i.next}while(i!==r)}fl(e,t,n);break;case 1:if(!Ys&&(Js(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Eu(n,t,e)}fl(e,t,n);break;case 21:fl(e,t,n);break;case 22:1&n.mode?(Ys=(r=Ys)||null!==n.memoizedState,fl(e,t,n),Ys=r):fl(e,t,n);break;default:fl(e,t,n)}}function pl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Qs),t.forEach((function(t){var r=ku.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ml(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:cl=l.stateNode,dl=!1;break e;case 3:case 4:cl=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===cl)throw Error(o(160));hl(a,s,i),cl=null,dl=!1;var u=i.alternate;null!==u&&(u.return=null),i.return=null}catch(e){Eu(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gl(t,e),t=t.sibling}function gl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ml(t,e),vl(e),4&r){try{nl(3,e,e.return),rl(3,e)}catch(t){Eu(e,e.return,t)}try{nl(5,e,e.return)}catch(t){Eu(e,e.return,t)}}break;case 1:ml(t,e),vl(e),512&r&&null!==n&&Js(n,n.return);break;case 5:if(ml(t,e),vl(e),512&r&&null!==n&&Js(n,n.return),32&e.flags){var i=e.stateNode;try{fe(i,"")}catch(t){Eu(e,e.return,t)}}if(4&r&&null!=(i=e.stateNode)){var a=e.memoizedProps,s=null!==n?n.memoizedProps:a,l=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===a.type&&null!=a.name&&Q(i,a),ye(l,s);var c=ye(l,a);for(s=0;s<u.length;s+=2){var d=u[s],f=u[s+1];"style"===d?ge(i,f):"dangerouslySetInnerHTML"===d?de(i,f):"children"===d?fe(i,f):y(i,d,f,c)}switch(l){case"input":Z(i,a);break;case"textarea":oe(i,a);break;case"select":var h=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var p=a.value;null!=p?ne(i,!!a.multiple,p,!1):h!==!!a.multiple&&(null!=a.defaultValue?ne(i,!!a.multiple,a.defaultValue,!0):ne(i,!!a.multiple,a.multiple?[]:"",!1))}i[hi]=a}catch(t){Eu(e,e.return,t)}}break;case 6:if(ml(t,e),vl(e),4&r){if(null===e.stateNode)throw Error(o(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(t){Eu(e,e.return,t)}}break;case 3:if(ml(t,e),vl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Ht(t.containerInfo)}catch(t){Eu(e,e.return,t)}break;case 4:default:ml(t,e),vl(e);break;case 13:ml(t,e),vl(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||(Wl=Qe())),4&r&&pl(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Ys=(c=Ys)||d,ml(t,e),Ys=c):ml(t,e),vl(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&0!=(1&e.mode))for(Zs=e,d=e.child;null!==d;){for(f=Zs=d;null!==Zs;){switch(p=(h=Zs).child,h.tag){case 0:case 11:case 14:case 15:nl(4,h,h.return);break;case 1:Js(h,h.return);var m=h.stateNode;if("function"==typeof m.componentWillUnmount){r=h,n=h.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){Eu(r,n,e)}}break;case 5:Js(h,h.return);break;case 22:if(null!==h.memoizedState){wl(f);continue}}null!==p?(p.return=h,Zs=p):wl(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{i=f.stateNode,c?"function"==typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=f.stateNode,s=null!=(u=f.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,l.style.display=me("display",s))}catch(t){Eu(e,e.return,t)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(t){Eu(e,e.return,t)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:ml(t,e),vl(e),4&r&&pl(e);case 21:}}function vl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(al(n)){var r=n;break e}n=n.return}throw Error(o(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(fe(i,""),r.flags&=-33),ul(e,sl(e),i);break;case 3:case 4:var a=r.stateNode.containerInfo;ll(e,sl(e),a);break;default:throw Error(o(161))}}catch(t){Eu(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bl(e,t,n){Zs=e,yl(e,t,n)}function yl(e,t,n){for(var r=0!=(1&e.mode);null!==Zs;){var i=Zs,o=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||Xs;if(!a){var s=i.alternate,l=null!==s&&null!==s.memoizedState||Ys;s=Xs;var u=Ys;if(Xs=a,(Ys=l)&&!u)for(Zs=i;null!==Zs;)l=(a=Zs).child,22===a.tag&&null!==a.memoizedState?xl(i):null!==l?(l.return=a,Zs=l):xl(i);for(;null!==o;)Zs=o,yl(o,t,n),o=o.sibling;Zs=i,Xs=s,Ys=u}_l(e)}else 0!=(8772&i.subtreeFlags)&&null!==o?(o.return=i,Zs=o):_l(e)}}function _l(e){for(;null!==Zs;){var t=Zs;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Ys||rl(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Ys)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:vo(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Fo(t,a,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Fo(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&Ht(f)}}}break;default:throw Error(o(163))}Ys||512&t.flags&&il(t)}catch(e){Eu(t,t.return,e)}}if(t===e){Zs=null;break}if(null!==(n=t.sibling)){n.return=t.return,Zs=n;break}Zs=t.return}}function wl(e){for(;null!==Zs;){var t=Zs;if(t===e){Zs=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Zs=n;break}Zs=t.return}}function xl(e){for(;null!==Zs;){var t=Zs;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rl(4,t)}catch(e){Eu(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(e){Eu(t,i,e)}}var o=t.return;try{il(t)}catch(e){Eu(t,o,e)}break;case 5:var a=t.return;try{il(t)}catch(e){Eu(t,a,e)}}}catch(e){Eu(t,t.return,e)}if(t===e){Zs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Zs=s;break}Zs=t.return}}var Cl,El=Math.ceil,Sl=_.ReactCurrentDispatcher,Tl=_.ReactCurrentOwner,Al=_.ReactCurrentBatchConfig,kl=0,Ol=null,Il=null,Ll=0,Rl=0,Ml=Ei(0),Pl=0,$l=null,Nl=0,Dl=0,jl=0,Fl=null,Bl=null,Wl=0,Hl=1/0,Vl=null,Ul=!1,zl=null,ql=null,Kl=!1,Gl=null,Xl=0,Yl=0,Ql=null,Zl=-1,Jl=0;function eu(){return 0!=(6&kl)?Qe():-1!==Zl?Zl:Zl=Qe()}function tu(e){return 0==(1&e.mode)?1:0!=(2&kl)&&0!==Ll?Ll&-Ll:null!==go.transition?(0===Jl&&(Jl=mt()),Jl):0!==(e=yt)?e:e=void 0===(e=window.event)?16:Yt(e.type)}function nu(e,t,n,r){if(50<Yl)throw Yl=0,Ql=null,Error(o(185));vt(e,n,r),0!=(2&kl)&&e===Ol||(e===Ol&&(0==(2&kl)&&(Dl|=n),4===Pl&&su(e,Ll)),ru(e,r),1===n&&0===kl&&0==(1&t.mode)&&(Hl=Qe()+500,Fi&&Hi()))}function ru(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-at(o),s=1<<a,l=i[a];-1===l?0!=(s&n)&&0==(s&r)||(i[a]=ht(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=ft(e,e===Ol?Ll:0);if(0===r)null!==n&&Ge(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ge(n),1===t)0===e.tag?function(e){Fi=!0,Wi(e)}(lu.bind(null,e)):Wi(lu.bind(null,e)),ai((function(){0==(6&kl)&&Hi()})),n=null;else{switch(_t(r)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Ou(n,iu.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function iu(e,t){if(Zl=-1,Jl=0,0!=(6&kl))throw Error(o(327));var n=e.callbackNode;if(xu()&&e.callbackNode!==n)return null;var r=ft(e,e===Ol?Ll:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=gu(e,r);else{t=r;var i=kl;kl|=2;var a=pu();for(Ol===e&&Ll===t||(Vl=null,Hl=Qe()+500,fu(e,t));;)try{bu();break}catch(t){hu(e,t)}xo(),Sl.current=a,kl=i,null!==Il?t=0:(Ol=null,Ll=0,t=Pl)}if(0!==t){if(2===t&&(0!==(i=pt(e))&&(r=i,t=ou(e,i))),1===t)throw n=$l,fu(e,0),su(e,r),ru(e,Qe()),n;if(6===t)su(e,r);else{if(i=e.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!sr(o(),i))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)&&(2===(t=gu(e,r))&&(0!==(a=pt(e))&&(r=a,t=ou(e,a))),1===t))throw n=$l,fu(e,0),su(e,r),ru(e,Qe()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(o(345));case 2:case 5:wu(e,Bl,Vl);break;case 3:if(su(e,r),(130023424&r)===r&&10<(t=Wl+500-Qe())){if(0!==ft(e,0))break;if(((i=e.suspendedLanes)&r)!==r){eu(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ri(wu.bind(null,e,Bl,Vl),t);break}wu(e,Bl,Vl);break;case 4:if(su(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-at(r);a=1<<s,(s=t[s])>i&&(i=s),r&=~a}if(r=i,10<(r=(120>(r=Qe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*El(r/1960))-r)){e.timeoutHandle=ri(wu.bind(null,e,Bl,Vl),r);break}wu(e,Bl,Vl);break;default:throw Error(o(329))}}}return ru(e,Qe()),e.callbackNode===n?iu.bind(null,e):null}function ou(e,t){var n=Fl;return e.current.memoizedState.isDehydrated&&(fu(e,t).flags|=256),2!==(e=gu(e,t))&&(t=Bl,Bl=n,null!==t&&au(t)),e}function au(e){null===Bl?Bl=e:Bl.push.apply(Bl,e)}function su(e,t){for(t&=~jl,t&=~Dl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function lu(e){if(0!=(6&kl))throw Error(o(327));xu();var t=ft(e,0);if(0==(1&t))return ru(e,Qe()),null;var n=gu(e,t);if(0!==e.tag&&2===n){var r=pt(e);0!==r&&(t=r,n=ou(e,r))}if(1===n)throw n=$l,fu(e,0),su(e,t),ru(e,Qe()),n;if(6===n)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,wu(e,Bl,Vl),ru(e,Qe()),null}function uu(e,t){var n=kl;kl|=1;try{return e(t)}finally{0===(kl=n)&&(Hl=Qe()+500,Fi&&Hi())}}function cu(e){null!==Gl&&0===Gl.tag&&0==(6&kl)&&xu();var t=kl;kl|=1;var n=Al.transition,r=yt;try{if(Al.transition=null,yt=1,e)return e()}finally{yt=r,Al.transition=n,0==(6&(kl=t))&&Hi()}}function du(){Rl=Ml.current,Si(Ml)}function fu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ii(n)),null!==Il)for(n=Il.return;null!==n;){var r=n;switch(to(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Mi();break;case 3:oa(),Si(Oi),Si(ki),da();break;case 5:sa(r);break;case 4:oa();break;case 13:case 19:Si(la);break;case 10:Co(r.type._context);break;case 22:case 23:du()}n=n.return}if(Ol=e,Il=e=Mu(e.current,null),Ll=Rl=t,Pl=0,$l=null,jl=Dl=Nl=0,Bl=Fl=null,null!==Ao){for(t=0;t<Ao.length;t++)if(null!==(r=(n=Ao[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var a=o.next;o.next=i,r.next=a}n.pending=r}Ao=null}return e}function hu(e,t){for(;;){var n=Il;try{if(xo(),fa.current=as,ba){for(var r=ma.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}ba=!1}if(pa=0,va=ga=ma=null,ya=!1,_a=0,Tl.current=null,null===n||null===n.return){Pl=1,$l=t,Il=null;break}e:{var a=e,s=n.return,l=n,u=t;if(t=Ll,l.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,d=l,f=d.tag;if(0==(1&d.mode)&&(0===f||11===f||15===f)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var p=vs(s);if(null!==p){p.flags&=-257,bs(p,s,l,0,t),1&p.mode&&gs(a,c,t),u=c;var m=(t=p).updateQueue;if(null===m){var g=new Set;g.add(u),t.updateQueue=g}else m.add(u);break e}if(0==(1&t)){gs(a,c,t),mu();break e}u=Error(o(426))}else if(io&&1&l.mode){var v=vs(s);if(null!==v){0==(65536&v.flags)&&(v.flags|=256),bs(v,s,l,0,t),mo(cs(u,l));break e}}a=u=cs(u,l),4!==Pl&&(Pl=2),null===Fl?Fl=[a]:Fl.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Do(a,ps(0,u,t));break e;case 1:l=u;var b=a.type,y=a.stateNode;if(0==(128&a.flags)&&("function"==typeof b.getDerivedStateFromError||null!==y&&"function"==typeof y.componentDidCatch&&(null===ql||!ql.has(y)))){a.flags|=65536,t&=-t,a.lanes|=t,Do(a,ms(a,l,t));break e}}a=a.return}while(null!==a)}_u(n)}catch(e){t=e,Il===n&&null!==n&&(Il=n=n.return);continue}break}}function pu(){var e=Sl.current;return Sl.current=as,null===e?as:e}function mu(){0!==Pl&&3!==Pl&&2!==Pl||(Pl=4),null===Ol||0==(268435455&Nl)&&0==(268435455&Dl)||su(Ol,Ll)}function gu(e,t){var n=kl;kl|=2;var r=pu();for(Ol===e&&Ll===t||(Vl=null,fu(e,t));;)try{vu();break}catch(t){hu(e,t)}if(xo(),kl=n,Sl.current=r,null!==Il)throw Error(o(261));return Ol=null,Ll=0,Pl}function vu(){for(;null!==Il;)yu(Il)}function bu(){for(;null!==Il&&!Xe();)yu(Il)}function yu(e){var t=Cl(e.alternate,e,Rl);e.memoizedProps=e.pendingProps,null===t?_u(e):Il=t,Tl.current=null}function _u(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=Ks(n,t,Rl)))return void(Il=n)}else{if(null!==(n=Gs(n,t)))return n.flags&=32767,void(Il=n);if(null===e)return Pl=6,void(Il=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Il=t);Il=t=e}while(null!==t);0===Pl&&(Pl=5)}function wu(e,t,n){var r=yt,i=Al.transition;try{Al.transition=null,yt=1,function(e,t,n,r){do{xu()}while(null!==Gl);if(0!=(6&kl))throw Error(o(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-at(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,a),e===Ol&&(Il=Ol=null,Ll=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||Kl||(Kl=!0,Ou(tt,(function(){return xu(),null}))),a=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||a){a=Al.transition,Al.transition=null;var s=yt;yt=1;var l=kl;kl|=4,Tl.current=null,function(e,t){if(ei=Ut,hr(e=fr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var s=0,l=-1,u=-1,c=0,d=0,f=e,h=null;t:for(;;){for(var p;f!==n||0!==i&&3!==f.nodeType||(l=s+i),f!==a||0!==r&&3!==f.nodeType||(u=s+r),3===f.nodeType&&(s+=f.nodeValue.length),null!==(p=f.firstChild);)h=f,f=p;for(;;){if(f===e)break t;if(h===n&&++c===i&&(l=s),h===a&&++d===r&&(u=s),null!==(p=f.nextSibling))break;h=(f=h).parentNode}f=p}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(ti={focusedElem:e,selectionRange:n},Ut=!1,Zs=t;null!==Zs;)if(e=(t=Zs).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,Zs=e;else for(;null!==Zs;){t=Zs;try{var m=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,v=m.memoizedState,b=t.stateNode,y=b.getSnapshotBeforeUpdate(t.elementType===t.type?g:vo(t.type,g),v);b.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var _=t.stateNode.containerInfo;1===_.nodeType?_.textContent="":9===_.nodeType&&_.documentElement&&_.removeChild(_.documentElement);break;default:throw Error(o(163))}}catch(e){Eu(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Zs=e;break}Zs=t.return}m=tl,tl=!1}(e,n),gl(n,e),pr(ti),Ut=!!ei,ti=ei=null,e.current=n,bl(n,e,i),Ye(),kl=l,yt=s,Al.transition=a}else e.current=n;if(Kl&&(Kl=!1,Gl=e,Xl=i),0===(a=e.pendingLanes)&&(ql=null),function(e){if(ot&&"function"==typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(it,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode),ru(e,Qe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Ul)throw Ul=!1,e=zl,zl=null,e;0!=(1&Xl)&&0!==e.tag&&xu(),0!=(1&(a=e.pendingLanes))?e===Ql?Yl++:(Yl=0,Ql=e):Yl=0,Hi()}(e,t,n,r)}finally{Al.transition=i,yt=r}return null}function xu(){if(null!==Gl){var e=_t(Xl),t=Al.transition,n=yt;try{if(Al.transition=null,yt=16>e?16:e,null===Gl)var r=!1;else{if(e=Gl,Gl=null,Xl=0,0!=(6&kl))throw Error(o(331));var i=kl;for(kl|=4,Zs=e.current;null!==Zs;){var a=Zs,s=a.child;if(0!=(16&Zs.flags)){var l=a.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(Zs=c;null!==Zs;){var d=Zs;switch(d.tag){case 0:case 11:case 15:nl(8,d,a)}var f=d.child;if(null!==f)f.return=d,Zs=f;else for(;null!==Zs;){var h=(d=Zs).sibling,p=d.return;if(ol(d),d===c){Zs=null;break}if(null!==h){h.return=p,Zs=h;break}Zs=p}}}var m=a.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}Zs=a}}if(0!=(2064&a.subtreeFlags)&&null!==s)s.return=a,Zs=s;else e:for(;null!==Zs;){if(0!=(2048&(a=Zs).flags))switch(a.tag){case 0:case 11:case 15:nl(9,a,a.return)}var b=a.sibling;if(null!==b){b.return=a.return,Zs=b;break e}Zs=a.return}}var y=e.current;for(Zs=y;null!==Zs;){var _=(s=Zs).child;if(0!=(2064&s.subtreeFlags)&&null!==_)_.return=s,Zs=_;else e:for(s=y;null!==Zs;){if(0!=(2048&(l=Zs).flags))try{switch(l.tag){case 0:case 11:case 15:rl(9,l)}}catch(e){Eu(l,l.return,e)}if(l===s){Zs=null;break e}var w=l.sibling;if(null!==w){w.return=l.return,Zs=w;break e}Zs=l.return}}if(kl=i,Hi(),ot&&"function"==typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(it,e)}catch(e){}r=!0}return r}finally{yt=n,Al.transition=t}}return!1}function Cu(e,t,n){e=$o(e,t=ps(0,t=cs(n,t),1),1),t=eu(),null!==e&&(vt(e,1,t),ru(e,t))}function Eu(e,t,n){if(3===e.tag)Cu(e,e,n);else for(;null!==t;){if(3===t.tag){Cu(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===ql||!ql.has(r))){t=$o(t,e=ms(t,e=cs(n,e),1),1),e=eu(),null!==t&&(vt(t,1,e),ru(t,e));break}}t=t.return}}function Su(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=eu(),e.pingedLanes|=e.suspendedLanes&n,Ol===e&&(Ll&n)===n&&(4===Pl||3===Pl&&(130023424&Ll)===Ll&&500>Qe()-Wl?fu(e,0):jl|=n),ru(e,t)}function Tu(e,t){0===t&&(0==(1&e.mode)?t=1:(t=ct,0==(130023424&(ct<<=1))&&(ct=4194304)));var n=eu();null!==(e=Io(e,t))&&(vt(e,t,n),ru(e,n))}function Au(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Tu(e,n)}function ku(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}null!==r&&r.delete(t),Tu(e,n)}function Ou(e,t){return Ke(e,t)}function Iu(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.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Lu(e,t,n,r){return new Iu(e,t,n,r)}function Ru(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Mu(e,t){var n=e.alternate;return null===n?((n=Lu(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.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,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 Pu(e,t,n,r,i,a){var s=2;if(r=e,"function"==typeof e)Ru(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case C:return $u(n.children,i,a,t);case E:s=8,i|=8;break;case S:return(e=Lu(12,n,t,2|i)).elementType=S,e.lanes=a,e;case O:return(e=Lu(13,n,t,i)).elementType=O,e.lanes=a,e;case I:return(e=Lu(19,n,t,i)).elementType=I,e.lanes=a,e;case M:return Nu(n,i,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case T:s=10;break e;case A:s=9;break e;case k:s=11;break e;case L:s=14;break e;case R:s=16,r=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Lu(s,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function $u(e,t,n,r){return(e=Lu(7,e,r,t)).lanes=n,e}function Nu(e,t,n,r){return(e=Lu(22,e,r,t)).elementType=M,e.lanes=n,e.stateNode={isHidden:!1},e}function Du(e,t,n){return(e=Lu(6,e,null,t)).lanes=n,e}function ju(e,t,n){return(t=Lu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fu(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Bu(e,t,n,r,i,o,a,s,l){return e=new Fu(e,t,n,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Lu(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ro(o),e}function Wu(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:x,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Hu(e){if(!e)return Ai;e:{if(He(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ri(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var n=e.type;if(Ri(n))return $i(e,n,t)}return t}function Vu(e,t,n,r,i,o,a,s,l){return(e=Bu(n,r,!0,e,0,o,0,s,l)).context=Hu(null),n=e.current,(o=Po(r=eu(),i=tu(n))).callback=null!=t?t:null,$o(n,o,i),e.current.lanes=i,vt(e,i,r),ru(e,r),e}function Uu(e,t,n,r){var i=t.current,o=eu(),a=tu(i);return n=Hu(n),null===t.context?t.context=n:t.pendingContext=n,(t=Po(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=$o(i,t,a))&&(nu(e,i,a,o),No(e,i,a)),a}function zu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function qu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Ku(e,t){qu(e,t),(e=e.alternate)&&qu(e,t)}Cl=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Oi.current)_s=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return _s=!1,function(e,t,n){switch(t.tag){case 3:Is(t),po();break;case 5:aa(t);break;case 1:Ri(t.type)&&Ni(t);break;case 4:ia(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Ti(bo,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Ti(la,1&la.current),t.flags|=128,null):0!=(n&t.child.childLanes)?Ds(e,t,n):(Ti(la,1&la.current),null!==(e=Us(e,t,n))?e.sibling:null);Ti(la,1&la.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return Hs(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ti(la,la.current),r)break;return null;case 22:case 23:return t.lanes=0,Ss(e,t,n)}return Us(e,t,n)}(e,t,n);_s=0!=(131072&e.flags)}else _s=!1,io&&0!=(1048576&t.flags)&&Ji(t,qi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Vs(e,t),e=t.pendingProps;var i=Li(t,ki.current);So(t,n),i=Ea(null,t,r,e,i,n);var a=Sa();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ri(r)?(a=!0,Ni(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Ro(t),i.updater=Ho,t.stateNode=i,i._reactInternals=t,qo(t,r,e,n),t=Os(null,t,r,!0,a,n)):(t.tag=0,io&&a&&eo(t),ws(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Vs(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"==typeof e)return Ru(e)?1:0;if(null!=e){if((e=e.$$typeof)===k)return 11;if(e===L)return 14}return 2}(r),e=vo(r,e),i){case 0:t=As(null,t,r,e,n);break e;case 1:t=ks(null,t,r,e,n);break e;case 11:t=xs(null,t,r,e,n);break e;case 14:t=Cs(null,t,r,vo(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,As(e,t,r,i=t.elementType===r?i:vo(r,i),n);case 1:return r=t.type,i=t.pendingProps,ks(e,t,r,i=t.elementType===r?i:vo(r,i),n);case 3:e:{if(Is(t),null===e)throw Error(o(387));r=t.pendingProps,i=(a=t.memoizedState).element,Mo(e,t),jo(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Ls(e,t,r,n,i=cs(Error(o(423)),t));break e}if(r!==i){t=Ls(e,t,r,n,i=cs(Error(o(424)),t));break e}for(ro=ui(t.stateNode.containerInfo.firstChild),no=t,io=!0,oo=null,n=Zo(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(po(),r===i){t=Us(e,t,n);break e}ws(e,t,r,n)}t=t.child}return t;case 5:return aa(t),null===e&&uo(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,ni(r,i)?s=null:null!==a&&ni(r,a)&&(t.flags|=32),Ts(e,t),ws(e,t,s,n),t.child;case 6:return null===e&&uo(t),null;case 13:return Ds(e,t,n);case 4:return ia(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Qo(t,null,r,n):ws(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,xs(e,t,r,i=t.elementType===r?i:vo(r,i),n);case 7:return ws(e,t,t.pendingProps,n),t.child;case 8:case 12:return ws(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,Ti(bo,r._currentValue),r._currentValue=s,null!==a)if(sr(a.value,s)){if(a.children===i.children&&!Oi.current){t=Us(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var u=l.firstContext;null!==u;){if(u.context===r){if(1===a.tag){(u=Po(-1,n&-n)).tag=2;var c=a.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}a.lanes|=n,null!==(u=a.alternate)&&(u.lanes|=n),Eo(a.return,n,t),l.lanes|=n;break}u=u.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(o(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),Eo(s,n,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}ws(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,So(t,n),r=r(i=To(i)),t.flags|=1,ws(e,t,r,n),t.child;case 14:return i=vo(r=t.type,t.pendingProps),Cs(e,t,r,i=vo(r.type,i),n);case 15:return Es(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:vo(r,i),Vs(e,t),t.tag=1,Ri(r)?(e=!0,Ni(t)):e=!1,So(t,n),Uo(t,r,i),qo(t,r,i,n),Os(null,t,r,!0,e,n);case 19:return Hs(e,t,n);case 22:return Ss(e,t,n)}throw Error(o(156,t.tag))};var Gu="function"==typeof reportError?reportError:function(e){console.error(e)};function Xu(e){this._internalRoot=e}function Yu(e){this._internalRoot=e}function Qu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Zu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Ju(){}function ec(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if("function"==typeof i){var s=i;i=function(){var e=zu(a);s.call(e)}}Uu(t,a,e,i)}else a=function(e,t,n,r,i){if(i){if("function"==typeof r){var o=r;r=function(){var e=zu(a);o.call(e)}}var a=Vu(t,r,e,0,null,!1,0,"",Ju);return e._reactRootContainer=a,e[pi]=a.current,Hr(8===e.nodeType?e.parentNode:e),cu(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"==typeof r){var s=r;r=function(){var e=zu(l);s.call(e)}}var l=Bu(e,0,!1,null,0,!1,0,"",Ju);return e._reactRootContainer=l,e[pi]=l.current,Hr(8===e.nodeType?e.parentNode:e),cu((function(){Uu(t,l,n,r)})),l}(n,t,e,i,r);return zu(a)}Yu.prototype.render=Xu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));Uu(e,t,null,null)},Yu.prototype.unmount=Xu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cu((function(){Uu(null,e,null,null)})),t[pi]=null}},Yu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Et();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Mt.length&&0!==t&&t<Mt[n].priority;n++);Mt.splice(n,0,e),0===n&&Dt(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(bt(t,1|n),ru(t,Qe()),0==(6&kl)&&(Hl=Qe()+500,Hi()))}break;case 13:cu((function(){var t=Io(e,1);if(null!==t){var n=eu();nu(t,e,1,n)}})),Ku(e,1)}},xt=function(e){if(13===e.tag){var t=Io(e,134217728);if(null!==t)nu(t,e,134217728,eu());Ku(e,134217728)}},Ct=function(e){if(13===e.tag){var t=tu(e),n=Io(e,t);if(null!==n)nu(n,e,t,eu());Ku(e,t)}},Et=function(){return yt},St=function(e,t){var n=yt;try{return yt=e,t()}finally{yt=n}},xe=function(e,t,n){switch(t){case"input":if(Z(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 i=wi(r);if(!i)throw Error(o(90));K(r),Z(r,i)}}}break;case"textarea":oe(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},ke=uu,Oe=cu;var tc={usingClientEntryPoint:!1,Events:[yi,_i,wi,Te,Ae,uu]},nc={findFiberByHostInstance:bi,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},rc={bundleType:nc.bundleType,version:nc.version,rendererPackageName:nc.rendererPackageName,rendererConfig:nc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:_.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=ze(e))?null:e.stateNode},findFiberByHostInstance:nc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ic=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ic.isDisabled&&ic.supportsFiber)try{it=ic.inject(rc),ot=ic}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tc,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Qu(t))throw Error(o(200));return Wu(e,t,null,n)},t.createRoot=function(e,t){if(!Qu(e))throw Error(o(299));var n=!1,r="",i=Gu;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=Bu(e,1,!1,null,0,n,0,r,i),e[pi]=t.current,Hr(8===e.nodeType?e.parentNode:e),new Xu(t)},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(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return e=null===(e=ze(t))?null:e.stateNode},t.flushSync=function(e){return cu(e)},t.hydrate=function(e,t,n){if(!Zu(t))throw Error(o(200));return ec(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Qu(e))throw Error(o(405));var r=null!=n&&n.hydratedSources||null,i=!1,a="",s=Gu;if(null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Vu(t,null,e,1,null!=n?n:null,i,0,a,s),e[pi]=t.current,Hr(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Yu(t)},t.render=function(e,t,n){if(!Zu(t))throw Error(o(200));return ec(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Zu(e))throw Error(o(40));return!!e._reactRootContainer&&(cu((function(){ec(null,null,e,!1,(function(){e._reactRootContainer=null,e[pi]=null}))})),!0)},t.unstable_batchedUpdates=uu,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Zu(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return ec(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},function(e,t,n){"use strict";var r=n(1);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},function(e,t,n){"use strict";e.exports=n(106)},function(e,t,n){"use strict";
78
+ /**
79
+ * @license React
80
+ * react-jsx-runtime.production.min.js
81
+ *
82
+ * Copyright (c) Facebook, Inc. and its affiliates.
83
+ *
84
+ * This source code is licensed under the MIT license found in the
85
+ * LICENSE file in the root directory of this source tree.
86
+ */var r=n(0),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,o={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:u,ref:c,props:o,_owner:s.current}}t.Fragment=o,t.jsx=u,t.jsxs=u},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(142),s=(0,a.getAceInstance)(),l=n(73),u=n(141),c=n(57),d=n(0),f=n(136),h=n(143),p=function(e){function t(t){var n=e.call(this,t)||this;return a.editorEvents.forEach((function(e){n[e]=n[e].bind(n)})),n.debounce=a.debounce,n}return i(t,e),t.prototype.isInShadow=function(e){for(var t=e&&e.parentNode;t;){if("[object ShadowRoot]"===t.toString())return!0;t=t.parentNode}return!1},t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.className,r=t.onBeforeLoad,i=t.mode,o=t.focus,l=t.theme,c=t.fontSize,d=t.value,f=t.defaultValue,p=t.cursorStart,m=t.showGutter,g=t.wrapEnabled,v=t.showPrintMargin,b=t.scrollMargin,y=void 0===b?[0,0,0,0]:b,_=t.keyboardHandler,w=t.onLoad,x=t.commands,C=t.annotations,E=t.markers,S=t.splits;this.editor=s.edit(this.refEditor),this.isInShadow(this.refEditor)&&this.editor.renderer.attachToShadowRoot(),this.editor.setTheme("ace/theme/".concat(l)),r&&r(s);var T=Object.keys(this.props.editorProps),A=new u.Split(this.editor.container,"ace/theme/".concat(l),S);this.editor.env.split=A,this.splitEditor=A.getEditor(0),this.split=A,this.editor.setShowPrintMargin(!1),this.editor.renderer.setShowGutter(!1);var k=this.splitEditor.$options;this.props.debounceChangePeriod&&(this.onChange=this.debounce(this.onChange,this.props.debounceChangePeriod)),A.forEach((function(t,n){for(var r=0;r<T.length;r++)t[T[r]]=e.props.editorProps[T[r]];var o=h(f,n),u=h(d,n,"");t.session.setUndoManager(new s.UndoManager),t.setTheme("ace/theme/".concat(l)),t.renderer.setScrollMargin(y[0],y[1],y[2],y[3]),t.getSession().setMode("ace/mode/".concat(i)),t.setFontSize(c),t.renderer.setShowGutter(m),t.getSession().setUseWrapMode(g),t.setShowPrintMargin(v),t.on("focus",e.onFocus),t.on("blur",e.onBlur),t.on("input",e.onInput),t.on("copy",e.onCopy),t.on("paste",e.onPaste),t.on("change",e.onChange),t.getSession().selection.on("changeSelection",e.onSelectionChange),t.getSession().selection.on("changeCursor",e.onCursorChange),t.session.on("changeScrollTop",e.onScroll),t.setValue(void 0===o?u:o,p);var b=h(C,n,[]),w=h(E,n,[]);t.getSession().setAnnotations(b),w&&w.length>0&&e.handleMarkers(w,t);for(r=0;r<a.editorOptions.length;r++){var S=a.editorOptions[r];k.hasOwnProperty(S)?t.setOption(S,e.props[S]):e.props[S]&&console.warn("ReaceAce: editor option ".concat(S," was activated but not found. Did you need to import a related tool or did you possibly mispell the option?"))}e.handleOptions(e.props,t),Array.isArray(x)&&x.forEach((function(e){"string"==typeof e.exec?t.commands.bindKey(e.bindKey,e.exec):t.commands.addCommand(e)})),_&&t.setKeyboardHandler("ace/keyboard/"+_)})),n&&(this.refEditor.className+=" "+n),o&&this.splitEditor.focus();var O=this.editor.env.split;O.setOrientation("below"===this.props.orientation?O.BELOW:O.BESIDE),O.resize(!0),w&&w(O)},t.prototype.componentDidUpdate=function(e){var t=this,n=e,r=this.props,i=this.editor.env.split;if(r.splits!==n.splits&&i.setSplits(r.splits),r.orientation!==n.orientation&&i.setOrientation("below"===r.orientation?i.BELOW:i.BESIDE),i.forEach((function(e,i){r.mode!==n.mode&&e.getSession().setMode("ace/mode/"+r.mode),r.keyboardHandler!==n.keyboardHandler&&(r.keyboardHandler?e.setKeyboardHandler("ace/keyboard/"+r.keyboardHandler):e.setKeyboardHandler(null)),r.fontSize!==n.fontSize&&e.setFontSize(r.fontSize),r.wrapEnabled!==n.wrapEnabled&&e.getSession().setUseWrapMode(r.wrapEnabled),r.showPrintMargin!==n.showPrintMargin&&e.setShowPrintMargin(r.showPrintMargin),r.showGutter!==n.showGutter&&e.renderer.setShowGutter(r.showGutter);for(var o=0;o<a.editorOptions.length;o++){var s=a.editorOptions[o];r[s]!==n[s]&&e.setOption(s,r[s])}f(r.setOptions,n.setOptions)||t.handleOptions(r,e);var l=h(r.value,i,"");if(e.getValue()!==l){t.silent=!0;var u=e.session.selection.toJSON();e.setValue(l,r.cursorStart),e.session.selection.fromJSON(u),t.silent=!1}var c=h(r.annotations,i,[]),d=h(n.annotations,i,[]);f(c,d)||e.getSession().setAnnotations(c);var p=h(r.markers,i,[]),m=h(n.markers,i,[]);!f(p,m)&&Array.isArray(p)&&t.handleMarkers(p,e)})),r.className!==n.className){var o=this.refEditor.className.trim().split(" ");n.className.trim().split(" ").forEach((function(e){var t=o.indexOf(e);o.splice(t,1)})),this.refEditor.className=" "+r.className+" "+o.join(" ")}r.theme!==n.theme&&i.setTheme("ace/theme/"+r.theme),r.focus&&!n.focus&&this.splitEditor.focus(),r.height===this.props.height&&r.width===this.props.width||this.editor.resize()},t.prototype.componentWillUnmount=function(){this.editor.destroy(),this.editor=null},t.prototype.onChange=function(e){if(this.props.onChange&&!this.silent){var t=[];this.editor.env.split.forEach((function(e){t.push(e.getValue())})),this.props.onChange(t,e)}},t.prototype.onSelectionChange=function(e){if(this.props.onSelectionChange){var t=[];this.editor.env.split.forEach((function(e){t.push(e.getSelection())})),this.props.onSelectionChange(t,e)}},t.prototype.onCursorChange=function(e){if(this.props.onCursorChange){var t=[];this.editor.env.split.forEach((function(e){t.push(e.getSelection())})),this.props.onCursorChange(t,e)}},t.prototype.onFocus=function(e){this.props.onFocus&&this.props.onFocus(e)},t.prototype.onInput=function(e){this.props.onInput&&this.props.onInput(e)},t.prototype.onBlur=function(e){this.props.onBlur&&this.props.onBlur(e)},t.prototype.onCopy=function(e){this.props.onCopy&&this.props.onCopy(e)},t.prototype.onPaste=function(e){this.props.onPaste&&this.props.onPaste(e)},t.prototype.onScroll=function(){this.props.onScroll&&this.props.onScroll(this.editor)},t.prototype.handleOptions=function(e,t){for(var n=Object.keys(e.setOptions),r=0;r<n.length;r++)t.setOption(n[r],e.setOptions[n[r]])},t.prototype.handleMarkers=function(e,t){var n=t.getSession().getMarkers(!0);for(var r in n)n.hasOwnProperty(r)&&t.getSession().removeMarker(n[r].id);for(var r in n=t.getSession().getMarkers(!1))n.hasOwnProperty(r)&&t.getSession().removeMarker(n[r].id);e.forEach((function(e){var n=e.startRow,r=e.startCol,i=e.endRow,o=e.endCol,a=e.className,s=e.type,u=e.inFront,c=void 0!==u&&u,d=new l.Range(n,r,i,o);t.getSession().addMarker(d,a,s,c)}))},t.prototype.updateRef=function(e){this.refEditor=e},t.prototype.render=function(){var e=this.props,t=e.name,n=e.width,r=e.height,i=e.style,a=o({width:n,height:r},i);return d.createElement("div",{ref:this.updateRef,id:t,style:a})},t.propTypes={className:c.string,debounceChangePeriod:c.number,defaultValue:c.arrayOf(c.string),focus:c.bool,fontSize:c.oneOfType([c.number,c.string]),height:c.string,mode:c.string,name:c.string,onBlur:c.func,onChange:c.func,onCopy:c.func,onFocus:c.func,onInput:c.func,onLoad:c.func,onPaste:c.func,onScroll:c.func,orientation:c.string,showGutter:c.bool,splits:c.number,theme:c.string,value:c.arrayOf(c.string),width:c.string,onSelectionChange:c.func,onCursorChange:c.func,onBeforeLoad:c.func,minLines:c.number,maxLines:c.number,readOnly:c.bool,highlightActiveLine:c.bool,tabSize:c.number,showPrintMargin:c.bool,cursorStart:c.number,editorProps:c.object,setOptions:c.object,style:c.object,scrollMargin:c.array,annotations:c.array,markers:c.array,keyboardHandler:c.string,wrapEnabled:c.bool,enableBasicAutocompletion:c.oneOfType([c.bool,c.array]),enableLiveAutocompletion:c.oneOfType([c.bool,c.array]),commands:c.array},t.defaultProps={name:"ace-editor",focus:!1,orientation:"beside",splits:2,mode:"",theme:"",height:"500px",width:"500px",value:[],fontSize:12,showGutter:!0,onChange:null,onPaste:null,onLoad:null,onScroll:null,minLines:null,maxLines:null,readOnly:!1,highlightActiveLine:!0,showPrintMargin:!0,tabSize:4,cursorStart:1,editorProps:{},style:{},scrollMargin:[0,0,0,0],setOptions:{},wrapEnabled:!1,enableBasicAutocompletion:!1,enableLiveAutocompletion:!1},t}(d.Component);t.default=p},function(e,t,n){"use strict";n.r(t),n.d(t,{Theme:function(){return b},ThemeProvider:function(){return y}});var r=n(127),i=n(0),o=n(145),a=n(146),s=n(22),l=n.n(s),u=function(e){var t=i.Children.only(e.children);return i.cloneElement(t,(0,r.pi)((0,r.pi)((0,r.pi)({},e),t.props),{className:l()(e.className,t.props.className),style:(0,r.pi)((0,r.pi)({},t.props.style),e.style)}))},c=n(147),d={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4","indianred ":"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",transparent:"#ffffff",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},f=function(e,t,n){var r=[e,t,n].map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}));return.2126*r[0]+.7152*r[1]+.0722*r[2]},h=function(e){var t;return function(e){4===e.length&&(e+=e.slice(1));var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:{r:0,g:0,b:0}}(e=d[t=e]||t)},p=function(e){var t,n,r=h(e),i=r.r,o=r.g,a=r.b;return!((n=[i,o,a],(f((t=[255,255,255])[0],t[1],t[2])+.05)/(f(n[0],n[1],n[2])+.05))>3)},m={"--mdc-theme-primary":[["--mdc-theme-on-primary",0]],"--mdc-theme-surface":[["--mdc-theme-on-surface",0]],"--mdc-theme-secondary":[["--mdc-theme-on-secondary",0]],"--mdc-theme-background":[["--mdc-theme-text-primary-on-background",0],["--mdc-theme-text-secondary-on-background",1],["--mdc-theme-text-hint-on-background",2],["--mdc-theme-text-disabled-on-background",2],["--mdc-theme-text-icon-on-background",2]]},g=["rgba(0, 0, 0, 0.87)","rgba(0, 0, 0, 0.54)","rgba(0, 0, 0, 0.38)"],v=["rgba(255, 255, 255, 1)","rgba(255, 255, 255, 0.7)","rgba(255, 255, 255, 0.5)"],b=(0,o.LM)((function(e,t){var n=e.use,s=e.wrap,l=(0,r._T)(e,["use","wrap"]),c=(0,o.oC)(e,[(0,a.g)(n).join(" ")]);return s?u((0,r.pi)((0,r.pi)({},l),{ref:t,className:c})):i.createElement(o.Vp,(0,r.pi)({tag:"span",theme:n},l,{ref:t,className:c}))})),y=(0,o.LM)((function(e,t){var n,a,s=JSON.stringify(e.options),l=(0,i.useMemo)((function(){return function(e){var t=Object.keys(m).reduce((function(t,n){if(e[n]){var r=p(e[n])?g:v;m[n].forEach((function(e){t[e[0]]=r[e[1]]}))}return t}),{});return(0,r.pi)((0,r.pi)({},t),e)}(Object.keys(e.options).reduce((function(t,n){var r=e.options[n];return t[n=n.startsWith("--")?n:"--mdc-theme-"+(0,c.n)(n)]=r,t}),{}))}),[s]),d=(e.options,e.style),f=void 0===d?{}:d,h=e.wrap,b=(0,r._T)(e,["options","style","wrap"]),y=(0,o.oC)(e,[h&&"object"==typeof b.children&&(null===(a=null===(n=b.children)||void 0===n?void 0:n.props)||void 0===a?void 0:a.className)]),_=(0,r.pi)((0,r.pi)({},f),l);return h&&b.children?u((0,r.pi)((0,r.pi)({},b),{style:_,ref:t})):i.createElement(o.Vp,(0,r.pi)({},b,{style:_,className:y,ref:t}))}))},function(e,t,n){"use strict";n.r(t),n.d(t,{Tooltip:function(){return Yt}});var r=n(127),i=n(0),o=n(22),a=n.n(o),s=n(56),l=n(79),u=n(5),c=n(6),d=n(7),f=n(57),h=n.n(f),p=n(1);function m(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function g(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function v(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function b(e,t){for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}m.__suppressDeprecationWarning=!0,g.__suppressDeprecationWarning=!0,v.__suppressDeprecationWarning=!0;var y=n(67),_=n.n(y);function w(e,t,n,r){var i=p.unstable_batchedUpdates?function(e){p.unstable_batchedUpdates(n,e)}:n;return _()(e,t,i,r)}function x(e){return x="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},x(e)}function C(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E(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 S(e,t){return S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},S(e,t)}function T(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=k(e);if(t){var i=k(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return A(this,n)}}function A(e,t){return!t||"object"!==x(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function k(e){return k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},k(e)}var O=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&&S(e,t)}(o,e);var t,n,r,i=T(o);function o(){var e;C(this,o);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).removeContainer=function(){e.container&&(p.unmountComponentAtNode(e.container),e.container.parentNode.removeChild(e.container),e.container=null)},e.renderComponent=function(t,n){var r=e.props,i=r.visible,o=r.getComponent,a=r.forceRender,s=r.getContainer,l=r.parent;(i||l._component||a)&&(e.container||(e.container=s()),p.unstable_renderSubtreeIntoContainer(l,o(t),e.container,(function(){n&&n.call(this)})))},e}return t=o,(n=[{key:"componentDidMount",value:function(){this.props.autoMount&&this.renderComponent()}},{key:"componentDidUpdate",value:function(){this.props.autoMount&&this.renderComponent()}},{key:"componentWillUnmount",value:function(){this.props.autoDestroy&&this.removeContainer()}},{key:"render",value:function(){return this.props.children({renderComponent:this.renderComponent,removeContainer:this.removeContainer})}}])&&E(t.prototype,n),r&&E(t,r),o}(i.Component);function I(e){return I="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},I(e)}function L(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function R(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 M(e,t){return M=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},M(e,t)}function P(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=N(e);if(t){var i=N(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return $(this,n)}}function $(e,t){return!t||"object"!==I(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function N(e){return N=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},N(e)}O.propTypes={autoMount:h().bool,autoDestroy:h().bool,visible:h().bool,forceRender:h().bool,parent:h().any,getComponent:h().func.isRequired,getContainer:h().func.isRequired,children:h().func.isRequired},O.defaultProps={autoMount:!0,autoDestroy:!0,forceRender:!1};var D=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&&M(e,t)}(o,e);var t,n,r,i=P(o);function o(){return L(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"componentDidMount",value:function(){this.createContainer()}},{key:"componentDidUpdate",value:function(e){var t=this.props.didUpdate;t&&t(e)}},{key:"componentWillUnmount",value:function(){this.removeContainer()}},{key:"createContainer",value:function(){this._container=this.props.getContainer(),this.forceUpdate()}},{key:"removeContainer",value:function(){this._container&&this._container.parentNode.removeChild(this._container)}},{key:"render",value:function(){return this._container?p.createPortal(this.props.children,this._container):null}}])&&R(t.prototype,n),r&&R(t,r),o}(i.Component);function j(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function F(e,t){this[e]=t}D.propTypes={getContainer:h().func.isRequired,children:h().node.isRequired,didUpdate:h().func};var B,W=n(69);function H(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 V(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?H(Object(n),!0).forEach((function(t){z(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function U(e){return U="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},U(e)}function z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var q={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function K(){if(void 0!==B)return B;B="";var e=document.createElement("p").style;for(var t in q)t+"Transform"in e&&(B=t);return B}function G(){return K()?"".concat(K(),"TransitionProperty"):"transitionProperty"}function X(){return K()?"".concat(K(),"Transform"):"transform"}function Y(e,t){var n=G();n&&(e.style[n]=t,"transitionProperty"!==n&&(e.style.transitionProperty=t))}function Q(e,t){var n=X();n&&(e.style[n]=t,"transform"!==n&&(e.style.transform=t))}var Z,J=/matrix\((.*)\)/,ee=/matrix3d\((.*)\)/;function te(e){var t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}function ne(e,t,n){var r=n;if("object"!==U(t))return void 0!==r?("number"==typeof r&&(r="".concat(r,"px")),void(e.style[t]=r)):Z(e,t);for(var i in t)t.hasOwnProperty(i)&&ne(e,i,t[i])}function re(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var i=e.document;"number"!=typeof(n=i.documentElement[r])&&(n=i.body[r])}return n}function ie(e){return re(e)}function oe(e){return re(e,!0)}function ae(e){var t=function(e){var t,n,r,i=e.ownerDocument,o=i.body,a=i&&i.documentElement;return t=e.getBoundingClientRect(),n=Math.floor(t.left),r=Math.floor(t.top),{left:n-=a.clientLeft||o.clientLeft||0,top:r-=a.clientTop||o.clientTop||0}}(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=ie(r),t.top+=oe(r),t}function se(e){return null!=e&&e==e.window}function le(e){return se(e)?e.document:9===e.nodeType?e:e.ownerDocument}var ue=new RegExp("^(".concat(/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,")(?!px)[a-z%]+$"),"i"),ce=/^(top|right|bottom|left)$/;function de(e,t){return"left"===e?t.useCssRight?"right":e:t.useCssBottom?"bottom":e}function fe(e){return"left"===e?"right":"right"===e?"left":"top"===e?"bottom":"bottom"===e?"top":void 0}function he(e,t,n){"static"===ne(e,"position")&&(e.style.position="relative");var r=-999,i=-999,o=de("left",n),a=de("top",n),s=fe(o),l=fe(a);"left"!==o&&(r=999),"top"!==a&&(i=999);var u,c="",d=ae(e);("left"in t||"top"in t)&&(c=(u=e).style.transitionProperty||u.style[G()]||"",Y(e,"none")),"left"in t&&(e.style[s]="",e.style[o]="".concat(r,"px")),"top"in t&&(e.style[l]="",e.style[a]="".concat(i,"px")),te(e);var f=ae(e),h={};for(var p in t)if(t.hasOwnProperty(p)){var m=de(p,n),g="left"===p?r:i,v=d[p]-f[p];h[m]=m===p?g+v:g-v}ne(e,h),te(e),("left"in t||"top"in t)&&Y(e,c);var b={};for(var y in t)if(t.hasOwnProperty(y)){var _=de(y,n),w=t[y]-d[y];b[_]=y===_?h[_]+w:h[_]-w}ne(e,b)}function pe(e,t){var n=ae(e),r=function(e){var t=window.getComputedStyle(e,null),n=t.getPropertyValue("transform")||t.getPropertyValue(X());if(n&&"none"!==n){var r=n.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(r[12]||r[4],0),y:parseFloat(r[13]||r[5],0)}}return{x:0,y:0}}(e),i={x:r.x,y:r.y};"left"in t&&(i.x=r.x+t.left-n.left),"top"in t&&(i.y=r.y+t.top-n.top),function(e,t){var n=window.getComputedStyle(e,null),r=n.getPropertyValue("transform")||n.getPropertyValue(X());if(r&&"none"!==r){var i,o=r.match(J);o?((i=(o=o[1]).split(",").map((function(e){return parseFloat(e,10)})))[4]=t.x,i[5]=t.y,Q(e,"matrix(".concat(i.join(","),")"))):((i=r.match(ee)[1].split(",").map((function(e){return parseFloat(e,10)})))[12]=t.x,i[13]=t.y,Q(e,"matrix3d(".concat(i.join(","),")")))}else Q(e,"translateX(".concat(t.x,"px) translateY(").concat(t.y,"px) translateZ(0)"))}(e,i)}function me(e,t){for(var n=0;n<e.length;n++)t(e[n])}function ge(e){return"border-box"===Z(e,"boxSizing")}"undefined"!=typeof window&&(Z=window.getComputedStyle?function(e,t,n){var r=n,i="",o=le(e);return(r=r||o.defaultView.getComputedStyle(e,null))&&(i=r.getPropertyValue(t)||r[t]),i}:function(e,t){var n=e.currentStyle&&e.currentStyle[t];if(ue.test(n)&&!ce.test(t)){var r=e.style,i=r.left,o=e.runtimeStyle.left;e.runtimeStyle.left=e.currentStyle.left,r.left="fontSize"===t?"1em":n||0,n=r.pixelLeft+"px",r.left=i,e.runtimeStyle.left=o}return""===n?"auto":n});var ve=["margin","border","padding"];function be(e,t,n){var r,i={},o=e.style;for(r in t)t.hasOwnProperty(r)&&(i[r]=o[r],o[r]=t[r]);for(r in n.call(e),t)t.hasOwnProperty(r)&&(o[r]=i[r])}function ye(e,t,n){var r,i,o,a=0;for(i=0;i<t.length;i++)if(r=t[i])for(o=0;o<n.length;o++){var s=void 0;s="border"===r?"".concat(r).concat(n[o],"Width"):r+n[o],a+=parseFloat(Z(e,s))||0}return a}var _e={getParent:function(e){var t=e;do{t=11===t.nodeType&&t.host?t.host:t.parentNode}while(t&&1!==t.nodeType&&9!==t.nodeType);return t}};function we(e,t,n){var r=n;if(se(e))return"width"===t?_e.viewportWidth(e):_e.viewportHeight(e);if(9===e.nodeType)return"width"===t?_e.docWidth(e):_e.docHeight(e);var i="width"===t?["Left","Right"]:["Top","Bottom"],o="width"===t?Math.floor(e.getBoundingClientRect().width):Math.floor(e.getBoundingClientRect().height),a=ge(e),s=0;(null==o||o<=0)&&(o=void 0,(null==(s=Z(e,t))||Number(s)<0)&&(s=e.style[t]||0),s=parseFloat(s)||0),void 0===r&&(r=a?1:-1);var l=void 0!==o||a,u=o||s;return-1===r?l?u-ye(e,["border","padding"],i):s:l?1===r?u:u+(2===r?-ye(e,["border"],i):ye(e,["margin"],i)):s+ye(e,ve.slice(r),i)}me(["Width","Height"],(function(e){_e["doc".concat(e)]=function(t){var n=t.document;return Math.max(n.documentElement["scroll".concat(e)],n.body["scroll".concat(e)],_e["viewport".concat(e)](n))},_e["viewport".concat(e)]=function(t){var n="client".concat(e),r=t.document,i=r.body,o=r.documentElement[n];return"CSS1Compat"===r.compatMode&&o||i&&i[n]||o}}));var xe={position:"absolute",visibility:"hidden",display:"block"};function Ce(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,i=t[0];return 0!==i.offsetWidth?r=we.apply(void 0,t):be(i,xe,(function(){r=we.apply(void 0,t)})),r}function Ee(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}me(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);_e["outer".concat(t)]=function(t,n){return t&&Ce(t,e,n?0:1)};var n="width"===e?["Left","Right"]:["Top","Bottom"];_e[e]=function(t,r){var i=r;return void 0!==i?t?(ge(t)&&(i+=ye(t,["padding","border"],n)),ne(t,e,i)):void 0:t&&Ce(t,e,-1)}}));var Se={getWindow:function(e){if(e&&e.document&&e.setTimeout)return e;var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},getDocument:le,offset:function(e,t,n){if(void 0===t)return ae(e);!function(e,t,n){if(n.ignoreShake){var r=ae(e),i=r.left.toFixed(0),o=r.top.toFixed(0),a=t.left.toFixed(0),s=t.top.toFixed(0);if(i===a&&o===s)return}n.useCssRight||n.useCssBottom?he(e,t,n):n.useCssTransform&&X()in document.body.style?pe(e,t):he(e,t,n)}(e,t,n||{})},isWindow:se,each:me,css:ne,clone:function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);if(e.overflow)for(t in e)e.hasOwnProperty(t)&&(n.overflow[t]=e.overflow[t]);return n},mix:Ee,getWindowScrollLeft:function(e){return ie(e)},getWindowScrollTop:function(e){return oe(e)},merge:function(){for(var e={},t=0;t<arguments.length;t++)Se.mix(e,t<0||arguments.length<=t?void 0:arguments[t]);return e},viewportWidth:0,viewportHeight:0};Ee(Se,_e);var Te=Se.getParent;function Ae(e){if(Se.isWindow(e)||9===e.nodeType)return null;var t,n=Se.getDocument(e).body,r=Se.css(e,"position");if(!("fixed"===r||"absolute"===r))return"html"===e.nodeName.toLowerCase()?null:Te(e);for(t=Te(e);t&&t!==n&&9!==t.nodeType;t=Te(t))if("static"!==(r=Se.css(t,"position")))return t;return null}var ke=Se.getParent;function Oe(e,t){for(var n={left:0,right:1/0,top:0,bottom:1/0},r=Ae(e),i=Se.getDocument(e),o=i.defaultView||i.parentWindow,a=i.body,s=i.documentElement;r;){if(-1!==navigator.userAgent.indexOf("MSIE")&&0===r.clientWidth||r===a||r===s||"visible"===Se.css(r,"overflow")){if(r===a||r===s)break}else{var l=Se.offset(r);l.left+=r.clientLeft,l.top+=r.clientTop,n.top=Math.max(n.top,l.top),n.right=Math.min(n.right,l.left+r.clientWidth),n.bottom=Math.min(n.bottom,l.top+r.clientHeight),n.left=Math.max(n.left,l.left)}r=Ae(r)}var u=null;Se.isWindow(e)||9===e.nodeType||(u=e.style.position,"absolute"===Se.css(e,"position")&&(e.style.position="fixed"));var c=Se.getWindowScrollLeft(o),d=Se.getWindowScrollTop(o),f=Se.viewportWidth(o),h=Se.viewportHeight(o),p=s.scrollWidth,m=s.scrollHeight,g=window.getComputedStyle(a);if("hidden"===g.overflowX&&(p=o.innerWidth),"hidden"===g.overflowY&&(m=o.innerHeight),e.style&&(e.style.position=u),t||function(e){if(Se.isWindow(e)||9===e.nodeType)return!1;var t=Se.getDocument(e),n=t.body,r=null;for(r=ke(e);r&&r!==n&&r!==t;r=ke(r))if("fixed"===Se.css(r,"position"))return!0;return!1}(e))n.left=Math.max(n.left,c),n.top=Math.max(n.top,d),n.right=Math.min(n.right,c+f),n.bottom=Math.min(n.bottom,d+h);else{var v=Math.max(p,c+f);n.right=Math.min(n.right,v);var b=Math.max(m,d+h);n.bottom=Math.min(n.bottom,b)}return n.top>=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function Ie(e){var t,n,r;if(Se.isWindow(e)||9===e.nodeType){var i=Se.getWindow(e);t={left:Se.getWindowScrollLeft(i),top:Se.getWindowScrollTop(i)},n=Se.viewportWidth(i),r=Se.viewportHeight(i)}else t=Se.offset(e),n=Se.outerWidth(e),r=Se.outerHeight(e);return t.width=n,t.height=r,t}function Le(e,t){var n=t.charAt(0),r=t.charAt(1),i=e.width,o=e.height,a=e.left,s=e.top;return"c"===n?s+=o/2:"b"===n&&(s+=o),"c"===r?a+=i/2:"r"===r&&(a+=i),{left:a,top:s}}function Re(e,t,n,r,i){var o=Le(t,n[1]),a=Le(e,n[0]),s=[a.left-o.left,a.top-o.top];return{left:Math.round(e.left-s[0]+r[0]-i[0]),top:Math.round(e.top-s[1]+r[1]-i[1])}}function Me(e,t,n){return e.left<n.left||e.left+t.width>n.right}function Pe(e,t,n){return e.top<n.top||e.top+t.height>n.bottom}function $e(e,t,n){var r=[];return Se.each(e,(function(e){r.push(e.replace(t,(function(e){return n[e]})))})),r}function Ne(e,t){return e[t]=-e[t],e}function De(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function je(e,t){e[0]=De(e[0],t.width),e[1]=De(e[1],t.height)}function Fe(e,t,n,r){var i=n.points,o=n.offset||[0,0],a=n.targetOffset||[0,0],s=n.overflow,l=n.source||e;o=[].concat(o),a=[].concat(a);var u={},c=0,d=Oe(l,!(!(s=s||{})||!s.alwaysByViewport)),f=Ie(l);je(o,f),je(a,t);var h=Re(f,t,i,o,a),p=Se.merge(f,h);if(d&&(s.adjustX||s.adjustY)&&r){if(s.adjustX&&Me(h,f,d)){var m=$e(i,/[lr]/gi,{l:"r",r:"l"}),g=Ne(o,0),v=Ne(a,0);(function(e,t,n){return e.left>n.right||e.left+t.width<n.left})(Re(f,t,m,g,v),f,d)||(c=1,i=m,o=g,a=v)}if(s.adjustY&&Pe(h,f,d)){var b=$e(i,/[tb]/gi,{t:"b",b:"t"}),y=Ne(o,1),_=Ne(a,1);(function(e,t,n){return e.top>n.bottom||e.top+t.height<n.top})(Re(f,t,b,y,_),f,d)||(c=1,i=b,o=y,a=_)}c&&(h=Re(f,t,i,o,a),Se.mix(p,h));var w=Me(h,f,d),x=Pe(h,f,d);if(w||x){var C=i;w&&(C=$e(i,/[lr]/gi,{l:"r",r:"l"})),x&&(C=$e(i,/[tb]/gi,{t:"b",b:"t"})),i=C,o=n.offset||[0,0],a=n.targetOffset||[0,0]}u.adjustX=s.adjustX&&w,u.adjustY=s.adjustY&&x,(u.adjustX||u.adjustY)&&(p=function(e,t,n,r){var i=Se.clone(e),o={width:t.width,height:t.height};return r.adjustX&&i.left<n.left&&(i.left=n.left),r.resizeWidth&&i.left>=n.left&&i.left+o.width>n.right&&(o.width-=i.left+o.width-n.right),r.adjustX&&i.left+o.width>n.right&&(i.left=Math.max(n.right-o.width,n.left)),r.adjustY&&i.top<n.top&&(i.top=n.top),r.resizeHeight&&i.top>=n.top&&i.top+o.height>n.bottom&&(o.height-=i.top+o.height-n.bottom),r.adjustY&&i.top+o.height>n.bottom&&(i.top=Math.max(n.bottom-o.height,n.top)),Se.mix(i,o)}(h,f,d,u))}return p.width!==f.width&&Se.css(l,"width",Se.width(l)+p.width-f.width),p.height!==f.height&&Se.css(l,"height",Se.height(l)+p.height-f.height),Se.offset(l,{left:p.left,top:p.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:i,offset:o,targetOffset:a,overflow:u}}function Be(e,t,n){var r=n.target||t,i=Ie(r),o=!function(e,t){var n=Oe(e,t),r=Ie(e);return!n||r.left+r.width<=n.left||r.top+r.height<=n.top||r.left>=n.right||r.top>=n.bottom}(r,n.overflow&&n.overflow.alwaysByViewport);return Fe(e,i,n,o)}function We(e,t,n){var r,i,o=Se.getDocument(e),a=o.defaultView||o.parentWindow,s=Se.getWindowScrollLeft(a),l=Se.getWindowScrollTop(a),u=Se.viewportWidth(a),c=Se.viewportHeight(a),d={left:r="pageX"in t?t.pageX:s+t.clientX,top:i="pageY"in t?t.pageY:l+t.clientY,width:0,height:0},f=r>=0&&r<=s+u&&i>=0&&i<=l+c,h=[n.points[0],"cc"];return Fe(e,d,V(V({},n),{},{points:h}),f)}Be.__getOffsetParent=Ae,Be.__getVisibleRectForElement=Oe;function He(e){return e&&"object"==typeof e&&e.window===e}function Ve(e,t){var n=Math.floor(e),r=Math.floor(t);return Math.abs(n-r)<=1}function Ue(e,t){e!==document.activeElement&&b(t,e)&&e.focus()}function ze(e){return"function"==typeof e&&e?e():null}function qe(e){return"object"==typeof e&&e?e:null}var Ke=function(e){function t(){var e,n,r,i;(0,u.Z)(this,t);for(var o=arguments.length,a=Array(o),s=0;s<o;s++)a[s]=arguments[s];return n=r=(0,c.Z)(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.forceAlign=function(){var e=r.props,t=e.disabled,n=e.target,i=e.align,o=e.onAlign;if(!t&&n){var a=p.findDOMNode(r),s=void 0,l=ze(n),u=qe(n),c=document.activeElement;l?s=Be(a,l,i):u&&(s=We(a,u,i)),Ue(c,a),o&&o(a,s)}},i=n,(0,c.Z)(r,i)}return(0,d.Z)(t,e),(0,W.Z)(t,[{key:"componentDidMount",value:function(){var e=this.props;this.forceAlign(),!e.disabled&&e.monitorWindowResize&&this.startMonitorWindowResize()}},{key:"componentDidUpdate",value:function(e){var t=!1,n=this.props;if(!n.disabled){var r=p.findDOMNode(this),i=r?r.getBoundingClientRect():null;if(e.disabled)t=!0;else{var o=ze(e.target),a=ze(n.target),s=qe(e.target),l=qe(n.target);He(o)&&He(a)?t=!1:(o!==a||o&&!a&&l||s&&l&&a||l&&!function(e,t){return e===t||!(!e||!t)&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&e.clientX===t.clientX&&e.clientY===t.clientY)}(s,l))&&(t=!0);var u=this.sourceRect||{};t||!r||Ve(u.width,i.width)&&Ve(u.height,i.height)||(t=!0)}this.sourceRect=i}t&&this.forceAlign(),n.monitorWindowResize&&!n.disabled?this.startMonitorWindowResize():this.stopMonitorWindowResize()}},{key:"componentWillUnmount",value:function(){this.stopMonitorWindowResize()}},{key:"startMonitorWindowResize",value:function(){this.resizeHandler||(this.bufferMonitor=function(e,t){var n=void 0;function r(){n&&(clearTimeout(n),n=null)}function i(){r(),n=setTimeout(e,t)}return i.clear=r,i}(this.forceAlign,this.props.monitorBufferTime),this.resizeHandler=w(window,"resize",this.bufferMonitor))}},{key:"stopMonitorWindowResize",value:function(){this.resizeHandler&&(this.bufferMonitor.clear(),this.resizeHandler.remove(),this.resizeHandler=null)}},{key:"render",value:function(){var e=this,t=this.props,n=t.childrenProps,r=t.children,o=i.Children.only(r);if(n){var a={};return Object.keys(n).forEach((function(t){a[t]=e.props[n[t]]})),i.cloneElement(o,a)}return o}}]),t}(i.Component);Ke.propTypes={childrenProps:h().object,align:h().object.isRequired,target:h().oneOfType([h().func,h().shape({clientX:h().number,clientY:h().number,pageX:h().number,pageY:h().number})]),onAlign:h().func,monitorBufferTime:h().number,monitorWindowResize:h().bool,disabled:h().bool,children:h().any},Ke.defaultProps={target:function(){return window},monitorBufferTime:50,monitorWindowResize:!1,disabled:!1};var Ge=Ke,Xe=n(120),Ye=function(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");return"function"!=typeof t.componentWillReceiveProps?e:i.Profiler?(t.UNSAFE_componentWillReceiveProps=t.componentWillReceiveProps,delete t.componentWillReceiveProps,e):e};function Qe(e){var t=[];return i.Children.forEach(e,(function(e){t.push(e)})),t}function Ze(e,t){var n=null;return e&&e.forEach((function(e){n||e&&e.key===t&&(n=e)})),n}function Je(e,t,n){var r=null;return e&&e.forEach((function(e){if(e&&e.key===t&&e.props[n]){if(r)throw new Error("two child with same key for <rc-animate> children");r=e}})),r}var et=n(66),tt={transitionstart:{transition:"transitionstart",WebkitTransition:"webkitTransitionStart",MozTransition:"mozTransitionStart",OTransition:"oTransitionStart",msTransition:"MSTransitionStart"},animationstart:{animation:"animationstart",WebkitAnimation:"webkitAnimationStart",MozAnimation:"mozAnimationStart",OAnimation:"oAnimationStart",msAnimation:"MSAnimationStart"}},nt={transitionend:{transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"mozTransitionEnd",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd"},animationend:{animation:"animationend",WebkitAnimation:"webkitAnimationEnd",MozAnimation:"mozAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd"}},rt=[],it=[];function ot(e,t,n){e.addEventListener(t,n,!1)}function at(e,t,n){e.removeEventListener(t,n,!1)}"undefined"!=typeof window&&"undefined"!=typeof document&&function(){var e=document.createElement("div").style;function t(t,n){for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];for(var o in i)if(o in e){n.push(i[o]);break}}}"AnimationEvent"in window||(delete tt.animationstart.animation,delete nt.animationend.animation),"TransitionEvent"in window||(delete tt.transitionstart.transition,delete nt.transitionend.transition),t(tt,rt),t(nt,it)}();var st={startEvents:rt,addStartEventListener:function(e,t){0!==rt.length?rt.forEach((function(n){ot(e,n,t)})):window.setTimeout(t,0)},removeStartEventListener:function(e,t){0!==rt.length&&rt.forEach((function(n){at(e,n,t)}))},endEvents:it,addEndEventListener:function(e,t){0!==it.length?it.forEach((function(n){ot(e,n,t)})):window.setTimeout(t,0)},removeEndEventListener:function(e,t){0!==it.length&&it.forEach((function(n){at(e,n,t)}))}},lt=n(100),ut=n.n(lt),ct=0!==st.endEvents.length,dt=["Webkit","Moz","O","ms"],ft=["-webkit-","-moz-","-o-","ms-",""];function ht(e,t){for(var n=window.getComputedStyle(e,null),r="",i=0;i<ft.length&&!(r=n.getPropertyValue(ft[i]+t));i++);return r}function pt(e){if(ct){var t=parseFloat(ht(e,"transition-delay"))||0,n=parseFloat(ht(e,"transition-duration"))||0,r=parseFloat(ht(e,"animation-delay"))||0,i=parseFloat(ht(e,"animation-duration"))||0,o=Math.max(n+t,i+r);e.rcEndAnimTimeout=setTimeout((function(){e.rcEndAnimTimeout=null,e.rcEndListener&&e.rcEndListener()}),1e3*o+200)}}function mt(e){e.rcEndAnimTimeout&&(clearTimeout(e.rcEndAnimTimeout),e.rcEndAnimTimeout=null)}var gt=function(e,t,n){var r="object"===(void 0===t?"undefined":(0,et.default)(t)),i=r?t.name:t,o=r?t.active:t+"-active",a=n,s=void 0,l=void 0,u=ut()(e);return n&&"[object Object]"===Object.prototype.toString.call(n)&&(a=n.end,s=n.start,l=n.active),e.rcEndListener&&e.rcEndListener(),e.rcEndListener=function(t){t&&t.target!==e||(e.rcAnimTimeout&&(clearTimeout(e.rcAnimTimeout),e.rcAnimTimeout=null),mt(e),u.remove(i),u.remove(o),st.removeEndEventListener(e,e.rcEndListener),e.rcEndListener=null,a&&a())},st.addEndEventListener(e,e.rcEndListener),s&&s(),u.add(i),e.rcAnimTimeout=setTimeout((function(){e.rcAnimTimeout=null,u.add(o),l&&setTimeout(l,0),pt(e)}),30),{stop:function(){e.rcEndListener&&e.rcEndListener()}}};gt.style=function(e,t,n){e.rcEndListener&&e.rcEndListener(),e.rcEndListener=function(t){t&&t.target!==e||(e.rcAnimTimeout&&(clearTimeout(e.rcAnimTimeout),e.rcAnimTimeout=null),mt(e),st.removeEndEventListener(e,e.rcEndListener),e.rcEndListener=null,n&&n())},st.addEndEventListener(e,e.rcEndListener),e.rcAnimTimeout=setTimeout((function(){for(var n in t)t.hasOwnProperty(n)&&(e.style[n]=t[n]);e.rcAnimTimeout=null,pt(e)}),0)},gt.setTransition=function(e,t,n){var r=t,i=n;void 0===n&&(i=r,r=""),r=r||"",dt.forEach((function(t){e.style[t+"Transition"+r]=i}))},gt.isCssAnimationSupported=ct;var vt=gt,bt={isAppearSupported:function(e){return e.transitionName&&e.transitionAppear||e.animation.appear},isEnterSupported:function(e){return e.transitionName&&e.transitionEnter||e.animation.enter},isLeaveSupported:function(e){return e.transitionName&&e.transitionLeave||e.animation.leave},allowAppearCallback:function(e){return e.transitionAppear||e.animation.appear},allowEnterCallback:function(e){return e.transitionEnter||e.animation.enter},allowLeaveCallback:function(e){return e.transitionLeave||e.animation.leave}},yt={enter:"transitionEnter",appear:"transitionAppear",leave:"transitionLeave"},_t=function(e){function t(){return(0,u.Z)(this,t),(0,c.Z)(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return(0,d.Z)(t,e),(0,W.Z)(t,[{key:"componentWillUnmount",value:function(){this.stop()}},{key:"componentWillEnter",value:function(e){bt.isEnterSupported(this.props)?this.transition("enter",e):e()}},{key:"componentWillAppear",value:function(e){bt.isAppearSupported(this.props)?this.transition("appear",e):e()}},{key:"componentWillLeave",value:function(e){bt.isLeaveSupported(this.props)?this.transition("leave",e):e()}},{key:"transition",value:function(e,t){var n=this,r=p.findDOMNode(this),i=this.props,o=i.transitionName,a="object"==typeof o;this.stop();var s=function(){n.stopper=null,t()};if((ct||!i.animation[e])&&o&&i[yt[e]]){var l=a?o[e]:o+"-"+e,u=l+"-active";a&&o[e+"Active"]&&(u=o[e+"Active"]),this.stopper=vt(r,{name:l,active:u},s)}else this.stopper=i.animation[e](r,s)}},{key:"stop",value:function(){var e=this.stopper;e&&(this.stopper=null,e.stop())}},{key:"render",value:function(){return this.props.children}}]),t}(i.Component);_t.propTypes={children:h().any,animation:h().any,transitionName:h().any};var wt=_t,xt="rc_animate_"+Date.now();function Ct(e){var t=e.children;return i.isValidElement(t)&&!t.key?i.cloneElement(t,{key:xt}):t}function Et(){}var St=function(e){function t(e){(0,u.Z)(this,t);var n=(0,c.Z)(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return Tt.call(n),n.currentlyAnimatingKeys={},n.keysToEnter=[],n.keysToLeave=[],n.state={children:Qe(Ct(e))},n.childrenRefs={},n}return(0,d.Z)(t,e),(0,W.Z)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props.showProp,n=this.state.children;t&&(n=n.filter((function(e){return!!e.props[t]}))),n.forEach((function(t){t&&e.performAppear(t.key)}))}},{key:"componentWillReceiveProps",value:function(e){var t=this;this.nextProps=e;var n=Qe(Ct(e)),r=this.props;r.exclusive&&Object.keys(this.currentlyAnimatingKeys).forEach((function(e){t.stop(e)}));var o=r.showProp,a=this.currentlyAnimatingKeys,s=r.exclusive?Qe(Ct(r)):this.state.children,l=[];o?(s.forEach((function(e){var t=e&&Ze(n,e.key),r=void 0;(r=t&&t.props[o]||!e.props[o]?t:i.cloneElement(t||e,(0,Xe.Z)({},o,!0)))&&l.push(r)})),n.forEach((function(e){e&&Ze(s,e.key)||l.push(e)}))):l=function(e,t){var n=[],r={},i=[];return e.forEach((function(e){e&&Ze(t,e.key)?i.length&&(r[e.key]=i,i=[]):i.push(e)})),t.forEach((function(e){e&&Object.prototype.hasOwnProperty.call(r,e.key)&&(n=n.concat(r[e.key])),n.push(e)})),n=n.concat(i)}(s,n),this.setState({children:l}),n.forEach((function(e){var n=e&&e.key;if(!e||!a[n]){var r=e&&Ze(s,n);if(o){var i=e.props[o];if(r)!Je(s,n,o)&&i&&t.keysToEnter.push(n);else i&&t.keysToEnter.push(n)}else r||t.keysToEnter.push(n)}})),s.forEach((function(e){var r=e&&e.key;if(!e||!a[r]){var i=e&&Ze(n,r);if(o){var s=e.props[o];if(i)!Je(n,r,o)&&s&&t.keysToLeave.push(r);else s&&t.keysToLeave.push(r)}else i||t.keysToLeave.push(r)}}))}},{key:"componentDidUpdate",value:function(){var e=this.keysToEnter;this.keysToEnter=[],e.forEach(this.performEnter);var t=this.keysToLeave;this.keysToLeave=[],t.forEach(this.performLeave)}},{key:"isValidChildByKey",value:function(e,t){var n=this.props.showProp;return n?Je(e,t,n):Ze(e,t)}},{key:"stop",value:function(e){delete this.currentlyAnimatingKeys[e];var t=this.childrenRefs[e];t&&t.stop()}},{key:"render",value:function(){var e=this,t=this.props;this.nextProps=t;var n=this.state.children,r=null;n&&(r=n.map((function(n){if(null==n)return n;if(!n.key)throw new Error("must set key for <rc-animate> children");return i.createElement(wt,{key:n.key,ref:function(t){e.childrenRefs[n.key]=t},animation:t.animation,transitionName:t.transitionName,transitionEnter:t.transitionEnter,transitionAppear:t.transitionAppear,transitionLeave:t.transitionLeave},n)})));var o=t.component;if(o){var a=t;return"string"==typeof o&&(a=(0,s.Z)({className:t.className,style:t.style},t.componentProps)),i.createElement(o,a,r)}return r[0]||null}}]),t}(i.Component);St.isAnimate=!0,St.propTypes={className:h().string,style:h().object,component:h().any,componentProps:h().object,animation:h().object,transitionName:h().oneOfType([h().string,h().object]),transitionEnter:h().bool,transitionAppear:h().bool,exclusive:h().bool,transitionLeave:h().bool,onEnd:h().func,onEnter:h().func,onLeave:h().func,onAppear:h().func,showProp:h().string,children:h().node},St.defaultProps={animation:{},component:"span",componentProps:{},transitionEnter:!0,transitionLeave:!0,transitionAppear:!1,onEnd:Et,onEnter:Et,onLeave:Et,onAppear:Et};var Tt=function(){var e=this;this.performEnter=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillEnter(e.handleDoneAdding.bind(e,t,"enter")))},this.performAppear=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillAppear(e.handleDoneAdding.bind(e,t,"appear")))},this.handleDoneAdding=function(t,n){var r=e.props;if(delete e.currentlyAnimatingKeys[t],!r.exclusive||r===e.nextProps){var i=Qe(Ct(r));e.isValidChildByKey(i,t)?"appear"===n?bt.allowAppearCallback(r)&&(r.onAppear(t),r.onEnd(t,!0)):bt.allowEnterCallback(r)&&(r.onEnter(t),r.onEnd(t,!0)):e.performLeave(t)}},this.performLeave=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillLeave(e.handleDoneLeaving.bind(e,t)))},this.handleDoneLeaving=function(t){var n=e.props;if(delete e.currentlyAnimatingKeys[t],!n.exclusive||n===e.nextProps){var r,i,o,a,s=Qe(Ct(n));if(e.isValidChildByKey(s,t))e.performEnter(t);else{var l=function(){bt.allowLeaveCallback(n)&&(n.onLeave(t),n.onEnd(t,!1))};r=e.state.children,i=s,o=n.showProp,(a=r.length===i.length)&&r.forEach((function(e,t){var n=i[t];e&&n&&(e&&!n||!e&&n||e.key!==n.key||o&&e.props[o]!==n.props[o])&&(a=!1)})),a?l():e.setState({children:s},l)}}}},At=Ye(St),kt=function(e){function t(){return(0,u.Z)(this,t),(0,c.Z)(this,e.apply(this,arguments))}return(0,d.Z)(t,e),t.prototype.shouldComponentUpdate=function(e){return e.hiddenClassName||e.visible},t.prototype.render=function(){var e=this.props,t=e.hiddenClassName,n=e.visible,r=(0,l.Z)(e,["hiddenClassName","visible"]);return t||i.Children.count(r.children)>1?(!n&&t&&(r.className+=" "+t),i.createElement("div",r)):i.Children.only(r.children)},t}(i.Component);kt.propTypes={children:h().any,className:h().string,visible:h().bool,hiddenClassName:h().string};var Ot=kt,It=function(e){function t(){return(0,u.Z)(this,t),(0,c.Z)(this,e.apply(this,arguments))}return(0,d.Z)(t,e),t.prototype.render=function(){var e=this.props,t=e.className;return e.visible||(t+=" "+e.hiddenClassName),i.createElement("div",{className:t,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onMouseDown:e.onMouseDown,onTouchStart:e.onTouchStart,style:e.style},i.createElement(Ot,{className:e.prefixCls+"-content",visible:e.visible},e.children))},t}(i.Component);It.propTypes={hiddenClassName:h().string,className:h().string,prefixCls:h().string,onMouseEnter:h().func,onMouseLeave:h().func,onMouseDown:h().func,onTouchStart:h().func,children:h().any};var Lt=It,Rt=function(e){function t(n){(0,u.Z)(this,t);var r=(0,c.Z)(this,e.call(this,n));return Mt.call(r),r.state={stretchChecked:!1,targetWidth:void 0,targetHeight:void 0},r.savePopupRef=F.bind(r,"popupInstance"),r.saveAlignRef=F.bind(r,"alignInstance"),r}return(0,d.Z)(t,e),t.prototype.componentDidMount=function(){this.rootNode=this.getPopupDomNode(),this.setStretchSize()},t.prototype.componentDidUpdate=function(){this.setStretchSize()},t.prototype.getPopupDomNode=function(){return p.findDOMNode(this.popupInstance)},t.prototype.getMaskTransitionName=function(){var e=this.props,t=e.maskTransitionName,n=e.maskAnimation;return!t&&n&&(t=e.prefixCls+"-"+n),t},t.prototype.getTransitionName=function(){var e=this.props,t=e.transitionName;return!t&&e.animation&&(t=e.prefixCls+"-"+e.animation),t},t.prototype.getClassName=function(e){return this.props.prefixCls+" "+this.props.className+" "+e},t.prototype.getPopupElement=function(){var e=this,t=this.savePopupRef,n=this.state,r=n.stretchChecked,o=n.targetHeight,a=n.targetWidth,l=this.props,u=l.align,c=l.visible,d=l.prefixCls,f=l.style,h=l.getClassNameFromAlign,p=l.destroyPopupOnHide,m=l.stretch,g=l.children,v=l.onMouseEnter,b=l.onMouseLeave,y=l.onMouseDown,_=l.onTouchStart,w=this.getClassName(this.currentAlignClassName||h(u)),x=d+"-hidden";c||(this.currentAlignClassName=null);var C={};m&&(-1!==m.indexOf("height")?C.height=o:-1!==m.indexOf("minHeight")&&(C.minHeight=o),-1!==m.indexOf("width")?C.width=a:-1!==m.indexOf("minWidth")&&(C.minWidth=a),r||(C.visibility="hidden",setTimeout((function(){e.alignInstance&&e.alignInstance.forceAlign()}),0)));var E={className:w,prefixCls:d,ref:t,onMouseEnter:v,onMouseLeave:b,onMouseDown:y,onTouchStart:_,style:(0,s.Z)({},C,f,this.getZIndexStyle())};return p?i.createElement(At,{component:"",exclusive:!0,transitionAppear:!0,transitionName:this.getTransitionName()},c?i.createElement(Ge,{target:this.getAlignTarget(),key:"popup",ref:this.saveAlignRef,monitorWindowResize:!0,align:u,onAlign:this.onAlign},i.createElement(Lt,(0,s.Z)({visible:!0},E),g)):null):i.createElement(At,{component:"",exclusive:!0,transitionAppear:!0,transitionName:this.getTransitionName(),showProp:"xVisible"},i.createElement(Ge,{target:this.getAlignTarget(),key:"popup",ref:this.saveAlignRef,monitorWindowResize:!0,xVisible:c,childrenProps:{visible:"xVisible"},disabled:!c,align:u,onAlign:this.onAlign},i.createElement(Lt,(0,s.Z)({hiddenClassName:x},E),g)))},t.prototype.getZIndexStyle=function(){var e={},t=this.props;return void 0!==t.zIndex&&(e.zIndex=t.zIndex),e},t.prototype.getMaskElement=function(){var e=this.props,t=void 0;if(e.mask){var n=this.getMaskTransitionName();t=i.createElement(Ot,{style:this.getZIndexStyle(),key:"mask",className:e.prefixCls+"-mask",hiddenClassName:e.prefixCls+"-mask-hidden",visible:e.visible}),n&&(t=i.createElement(At,{key:"mask",showProp:"visible",transitionAppear:!0,component:"",transitionName:n},t))}return t},t.prototype.render=function(){return i.createElement("div",null,this.getMaskElement(),this.getPopupElement())},t}(i.Component);Rt.propTypes={visible:h().bool,style:h().object,getClassNameFromAlign:h().func,onAlign:h().func,getRootDomNode:h().func,align:h().any,destroyPopupOnHide:h().bool,className:h().string,prefixCls:h().string,onMouseEnter:h().func,onMouseLeave:h().func,onMouseDown:h().func,onTouchStart:h().func,stretch:h().string,children:h().node,point:h().shape({pageX:h().number,pageY:h().number})};var Mt=function(){var e=this;this.onAlign=function(t,n){var r=e.props,i=r.getClassNameFromAlign(n);e.currentAlignClassName!==i&&(e.currentAlignClassName=i,t.className=e.getClassName(i)),r.onAlign(t,n)},this.setStretchSize=function(){var t=e.props,n=t.stretch,r=t.getRootDomNode,i=t.visible,o=e.state,a=o.stretchChecked,s=o.targetHeight,l=o.targetWidth;if(n&&i){var u=r();if(u){var c=u.offsetHeight,d=u.offsetWidth;s===c&&l===d&&a||e.setState({stretchChecked:!0,targetHeight:c,targetWidth:d})}}else a&&e.setState({stretchChecked:!1})},this.getTargetElement=function(){return e.props.getRootDomNode()},this.getAlignTarget=function(){var t=e.props.point;return t||e.getTargetElement}},Pt=Rt;function $t(){}var Nt=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"],Dt=!!p.createPortal,jt={rcTrigger:h().shape({onPopupMouseDown:h().func})},Ft=function(e){function t(n){(0,u.Z)(this,t);var r=(0,c.Z)(this,e.call(this,n));Bt.call(r);var i=void 0;return i="popupVisible"in n?!!n.popupVisible:!!n.defaultPopupVisible,r.state={prevPopupVisible:i,popupVisible:i},Nt.forEach((function(e){r["fire"+e]=function(t){r.fireEvents(e,t)}})),r}return(0,d.Z)(t,e),t.prototype.getChildContext=function(){return{rcTrigger:{onPopupMouseDown:this.onPopupMouseDown}}},t.prototype.componentDidMount=function(){this.componentDidUpdate({},{popupVisible:this.state.popupVisible})},t.prototype.componentDidUpdate=function(e,t){var n=this.props,r=this.state;if(Dt||this.renderComponent(null,(function(){t.popupVisible!==r.popupVisible&&n.afterPopupVisibleChange(r.popupVisible)})),r.popupVisible){var i=void 0;return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(i=n.getDocument(),this.clickOutsideHandler=w(i,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(i=i||n.getDocument(),this.touchOutsideHandler=w(i,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(i=i||n.getDocument(),this.contextMenuOutsideHandler1=w(i,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=w(window,"blur",this.onContextMenuClose)))}this.clearOutsideHandler()},t.prototype.componentWillUnmount=function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout)},t.getDerivedStateFromProps=function(e,t){var n=e.popupVisible,r={};return void 0!==n&&t.popupVisible!==n&&(r.popupVisible=n,r.prevPopupVisible=t.popupVisible),r},t.prototype.getPopupDomNode=function(){return this._component&&this._component.getPopupDomNode?this._component.getPopupDomNode():null},t.prototype.getPopupAlign=function(){var e=this.props,t=e.popupPlacement,n=e.popupAlign,r=e.builtinPlacements;return t&&r?function(e,t,n){var r=e[t]||{};return(0,s.Z)({},r,n)}(r,t,n):n},t.prototype.setPopupVisible=function(e,t){var n=this.props.alignPoint,r=this.state.popupVisible;this.clearDelayTimer(),r!==e&&("popupVisible"in this.props||this.setState({popupVisible:e,prevPopupVisible:r}),this.props.onPopupVisibleChange(e)),n&&t&&this.setPoint(t)},t.prototype.delaySetPopupVisible=function(e,t,n){var r=this,i=1e3*t;if(this.clearDelayTimer(),i){var o=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=setTimeout((function(){r.setPopupVisible(e,o),r.clearDelayTimer()}),i)}else this.setPopupVisible(e,n)},t.prototype.clearDelayTimer=function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)},t.prototype.clearOutsideHandler=function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)},t.prototype.createTwoChains=function(e){var t=this.props.children.props,n=this.props;return t[e]&&n[e]?this["fire"+e]:t[e]||n[e]},t.prototype.isClickToShow=function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")},t.prototype.isContextMenuToShow=function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("contextMenu")||-1!==n.indexOf("contextMenu")},t.prototype.isClickToHide=function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")},t.prototype.isMouseEnterToShow=function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseEnter")},t.prototype.isMouseLeaveToHide=function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseLeave")},t.prototype.isFocusToShow=function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("focus")},t.prototype.isBlurToHide=function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("blur")},t.prototype.forcePopupAlign=function(){this.state.popupVisible&&this._component&&this._component.alignInstance&&this._component.alignInstance.forceAlign()},t.prototype.fireEvents=function(e,t){var n=this.props.children.props[e];n&&n(t);var r=this.props[e];r&&r(t)},t.prototype.close=function(){this.setPopupVisible(!1)},t.prototype.render=function(){var e=this,t=this.state.popupVisible,n=this.props,r=n.children,o=n.forceRender,s=n.alignPoint,l=n.className,u=i.Children.only(r),c={key:"trigger"};this.isContextMenuToShow()?c.onContextMenu=this.onContextMenu:c.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(c.onClick=this.onClick,c.onMouseDown=this.onMouseDown,c.onTouchStart=this.onTouchStart):(c.onClick=this.createTwoChains("onClick"),c.onMouseDown=this.createTwoChains("onMouseDown"),c.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(c.onMouseEnter=this.onMouseEnter,s&&(c.onMouseMove=this.onMouseMove)):c.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?c.onMouseLeave=this.onMouseLeave:c.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(c.onFocus=this.onFocus,c.onBlur=this.onBlur):(c.onFocus=this.createTwoChains("onFocus"),c.onBlur=this.createTwoChains("onBlur"));var d=a()(u&&u.props&&u.props.className,l);d&&(c.className=d);var f=i.cloneElement(u,c);if(!Dt)return i.createElement(O,{parent:this,visible:t,autoMount:!1,forceRender:o,getComponent:this.getComponent,getContainer:this.getContainer},(function(t){var n=t.renderComponent;return e.renderComponent=n,f}));var h=void 0;return(t||this._component||o)&&(h=i.createElement(D,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),[f,h]},t}(i.Component);Ft.propTypes={children:h().any,action:h().oneOfType([h().string,h().arrayOf(h().string)]),showAction:h().any,hideAction:h().any,getPopupClassNameFromAlign:h().any,onPopupVisibleChange:h().func,afterPopupVisibleChange:h().func,popup:h().oneOfType([h().node,h().func]).isRequired,popupStyle:h().object,prefixCls:h().string,popupClassName:h().string,className:h().string,popupPlacement:h().string,builtinPlacements:h().object,popupTransitionName:h().oneOfType([h().string,h().object]),popupAnimation:h().any,mouseEnterDelay:h().number,mouseLeaveDelay:h().number,zIndex:h().number,focusDelay:h().number,blurDelay:h().number,getPopupContainer:h().func,getDocument:h().func,forceRender:h().bool,destroyPopupOnHide:h().bool,mask:h().bool,maskClosable:h().bool,onPopupAlign:h().func,popupAlign:h().object,popupVisible:h().bool,defaultPopupVisible:h().bool,maskTransitionName:h().oneOfType([h().string,h().object]),maskAnimation:h().string,stretch:h().string,alignPoint:h().bool},Ft.contextTypes=jt,Ft.childContextTypes=jt,Ft.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:function(){return""},getDocument:function(){return window.document},onPopupVisibleChange:$t,afterPopupVisibleChange:$t,onPopupAlign:$t,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[]};var Bt=function(){var e=this;this.onMouseEnter=function(t){var n=e.props.mouseEnterDelay;e.fireEvents("onMouseEnter",t),e.delaySetPopupVisible(!0,n,n?null:t)},this.onMouseMove=function(t){e.fireEvents("onMouseMove",t),e.setPoint(t)},this.onMouseLeave=function(t){e.fireEvents("onMouseLeave",t),e.delaySetPopupVisible(!1,e.props.mouseLeaveDelay)},this.onPopupMouseEnter=function(){e.clearDelayTimer()},this.onPopupMouseLeave=function(t){t.relatedTarget&&!t.relatedTarget.setTimeout&&e._component&&e._component.getPopupDomNode&&b(e._component.getPopupDomNode(),t.relatedTarget)||e.delaySetPopupVisible(!1,e.props.mouseLeaveDelay)},this.onFocus=function(t){e.fireEvents("onFocus",t),e.clearDelayTimer(),e.isFocusToShow()&&(e.focusTime=Date.now(),e.delaySetPopupVisible(!0,e.props.focusDelay))},this.onMouseDown=function(t){e.fireEvents("onMouseDown",t),e.preClickTime=Date.now()},this.onTouchStart=function(t){e.fireEvents("onTouchStart",t),e.preTouchTime=Date.now()},this.onBlur=function(t){e.fireEvents("onBlur",t),e.clearDelayTimer(),e.isBlurToHide()&&e.delaySetPopupVisible(!1,e.props.blurDelay)},this.onContextMenu=function(t){t.preventDefault(),e.fireEvents("onContextMenu",t),e.setPopupVisible(!0,t)},this.onContextMenuClose=function(){e.isContextMenuToShow()&&e.close()},this.onClick=function(t){if(e.fireEvents("onClick",t),e.focusTime){var n=void 0;if(e.preClickTime&&e.preTouchTime?n=Math.min(e.preClickTime,e.preTouchTime):e.preClickTime?n=e.preClickTime:e.preTouchTime&&(n=e.preTouchTime),Math.abs(n-e.focusTime)<20)return;e.focusTime=0}e.preClickTime=0,e.preTouchTime=0,e.isClickToShow()&&(e.isClickToHide()||e.isBlurToHide())&&t&&t.preventDefault&&t.preventDefault();var r=!e.state.popupVisible;(e.isClickToHide()&&!r||r&&e.isClickToShow())&&e.setPopupVisible(!e.state.popupVisible,t)},this.onPopupMouseDown=function(){var t=e.context.rcTrigger,n=void 0===t?{}:t;e.hasPopupMouseDown=!0,clearTimeout(e.mouseDownTimeout),e.mouseDownTimeout=setTimeout((function(){e.hasPopupMouseDown=!1}),0),n.onPopupMouseDown&&n.onPopupMouseDown.apply(n,arguments)},this.onDocumentClick=function(t){if(!e.props.mask||e.props.maskClosable){var n=t.target;b((0,p.findDOMNode)(e),n)||e.hasPopupMouseDown||e.close()}},this.getRootDomNode=function(){return(0,p.findDOMNode)(e)},this.getPopupClassNameFromAlign=function(t){var n=[],r=e.props,i=r.popupPlacement,o=r.builtinPlacements,a=r.prefixCls,s=r.alignPoint,l=r.getPopupClassNameFromAlign;return i&&o&&n.push(function(e,t,n,r){var i=n.points;for(var o in e)if(e.hasOwnProperty(o)&&j(e[o].points,i,r))return t+"-placement-"+o;return""}(o,a,t,s)),l&&n.push(l(t)),n.join(" ")},this.getComponent=function(){var t=e.props,n=t.prefixCls,r=t.destroyPopupOnHide,o=t.popupClassName,a=t.action,l=t.onPopupAlign,u=t.popupAnimation,c=t.popupTransitionName,d=t.popupStyle,f=t.mask,h=t.maskAnimation,p=t.maskTransitionName,m=t.zIndex,g=t.popup,v=t.stretch,b=t.alignPoint,y=e.state,_=y.popupVisible,w=y.point,x=e.getPopupAlign(),C={};return e.isMouseEnterToShow()&&(C.onMouseEnter=e.onPopupMouseEnter),e.isMouseLeaveToHide()&&(C.onMouseLeave=e.onPopupMouseLeave),C.onMouseDown=e.onPopupMouseDown,C.onTouchStart=e.onPopupMouseDown,i.createElement(Pt,(0,s.Z)({prefixCls:n,destroyPopupOnHide:r,visible:_,point:b&&w,className:o,action:a,align:x,onAlign:l,animation:u,getClassNameFromAlign:e.getPopupClassNameFromAlign},C,{stretch:v,getRootDomNode:e.getRootDomNode,style:d,mask:f,zIndex:m,transitionName:c,maskAnimation:h,maskTransitionName:p,ref:e.savePopup}),"function"==typeof g?g():g)},this.getContainer=function(){var t=e.props,n=document.createElement("div");return n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.width="100%",(t.getPopupContainer?t.getPopupContainer((0,p.findDOMNode)(e)):t.getDocument().body).appendChild(n),n},this.setPoint=function(t){e.props.alignPoint&&t&&e.setState({point:{pageX:t.pageX,pageY:t.pageY}})},this.handlePortalUpdate=function(){e.state.prevPopupVisible!==e.state.popupVisible&&e.props.afterPopupVisibleChange(e.state.popupVisible)},this.savePopup=function(t){e._component=t}};!function(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,r=null,i=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?r="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(r="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?i="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(i="UNSAFE_componentWillUpdate"),null!==n||null!==r||null!==i){var o=e.displayName||e.name,a="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+o+" uses "+a+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==r?"\n "+r:"")+(null!==i?"\n "+i:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=m,t.componentWillReceiveProps=g),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=v;var s=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;s.call(this,e,t,r)}}}(Ft);var Wt=Ft,Ht={adjustX:1,adjustY:1},Vt=[0,0],Ut={left:{points:["cr","cl"],overflow:Ht,offset:[-4,0],targetOffset:Vt},right:{points:["cl","cr"],overflow:Ht,offset:[4,0],targetOffset:Vt},top:{points:["bc","tc"],overflow:Ht,offset:[0,-4],targetOffset:Vt},bottom:{points:["tc","bc"],overflow:Ht,offset:[0,4],targetOffset:Vt},topLeft:{points:["bl","tl"],overflow:Ht,offset:[0,-4],targetOffset:Vt},leftTop:{points:["tr","tl"],overflow:Ht,offset:[-4,0],targetOffset:Vt},topRight:{points:["br","tr"],overflow:Ht,offset:[0,-4],targetOffset:Vt},rightTop:{points:["tl","tr"],overflow:Ht,offset:[4,0],targetOffset:Vt},bottomRight:{points:["tr","br"],overflow:Ht,offset:[0,4],targetOffset:Vt},rightBottom:{points:["bl","br"],overflow:Ht,offset:[4,0],targetOffset:Vt},bottomLeft:{points:["tl","bl"],overflow:Ht,offset:[0,4],targetOffset:Vt},leftBottom:{points:["br","bl"],overflow:Ht,offset:[-4,0],targetOffset:Vt}},zt=function(e){function t(){return(0,u.Z)(this,t),(0,c.Z)(this,e.apply(this,arguments))}return(0,d.Z)(t,e),t.prototype.componentDidUpdate=function(){var e=this.props.trigger;e&&e.forcePopupAlign()},t.prototype.render=function(){var e=this.props,t=e.overlay,n=e.prefixCls,r=e.id;return i.createElement("div",{className:n+"-inner",id:r,role:"tooltip"},"function"==typeof t?t():t)},t}(i.Component);zt.propTypes={prefixCls:h().string,overlay:h().oneOfType([h().node,h().func]).isRequired,id:h().string,trigger:h().any};var qt=zt,Kt=function(e){function t(){var n,r,o;(0,u.Z)(this,t);for(var a=arguments.length,s=Array(a),l=0;l<a;l++)s[l]=arguments[l];return n=r=(0,c.Z)(this,e.call.apply(e,[this].concat(s))),r.getPopupElement=function(){var e=r.props,t=e.arrowContent,n=e.overlay,o=e.prefixCls,a=e.id;return[i.createElement("div",{className:o+"-arrow",key:"arrow"},t),i.createElement(qt,{key:"content",trigger:r.trigger,prefixCls:o,id:a,overlay:n})]},r.saveTrigger=function(e){r.trigger=e},o=n,(0,c.Z)(r,o)}return(0,d.Z)(t,e),t.prototype.getPopupDomNode=function(){return this.trigger.getPopupDomNode()},t.prototype.render=function(){var e=this.props,t=e.overlayClassName,n=e.trigger,r=e.mouseEnterDelay,o=e.mouseLeaveDelay,a=e.overlayStyle,u=e.prefixCls,c=e.children,d=e.onVisibleChange,f=e.afterVisibleChange,h=e.transitionName,p=e.animation,m=e.placement,g=e.align,v=e.destroyTooltipOnHide,b=e.defaultVisible,y=e.getTooltipContainer,_=(0,l.Z)(e,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer"]),w=(0,s.Z)({},_);return"visible"in this.props&&(w.popupVisible=this.props.visible),i.createElement(Wt,(0,s.Z)({popupClassName:t,ref:this.saveTrigger,prefixCls:u,popup:this.getPopupElement,action:n,builtinPlacements:Ut,popupPlacement:m,popupAlign:g,getPopupContainer:y,onPopupVisibleChange:d,afterPopupVisibleChange:f,popupTransitionName:h,popupAnimation:p,defaultPopupVisible:b,destroyPopupOnHide:v,mouseLeaveDelay:o,popupStyle:a,mouseEnterDelay:r},w),c)},t}(i.Component);Kt.propTypes={trigger:h().any,children:h().any,defaultVisible:h().bool,visible:h().bool,placement:h().string,transitionName:h().oneOfType([h().string,h().object]),animation:h().any,onVisibleChange:h().func,afterVisibleChange:h().func,overlay:h().oneOfType([h().node,h().func]).isRequired,overlayStyle:h().object,overlayClassName:h().string,prefixCls:h().string,mouseEnterDelay:h().number,mouseLeaveDelay:h().number,getTooltipContainer:h().func,destroyTooltipOnHide:h().bool,align:h().object,arrowContent:h().any,id:h().string},Kt.defaultProps={prefixCls:"rc-tooltip",mouseEnterDelay:0,destroyTooltipOnHide:!1,mouseLeaveDelay:.1,align:{},placement:"right",trigger:["hover"],arrowContent:null};var Gt=Kt,Xt=n(128),Yt=function(e){var t=e.children,n=e.content,o=e.className,s=e.open,l=(0,r._T)(e,["children","content","className","open"]),u=(0,Xt.wv)(),c=(0,r.pi)((0,r.pi)({},u.tooltip),l),d=c.showArrow,f=void 0!==d&&d,h=c.enterDelay,p=void 0===h?0:h,m=c.leaveDelay,g=void 0===m?0:m,v=c.align,b=void 0===v?"top":v,y=c.activateOn,_=void 0===y?["hover","focus"]:y;return i.createElement(Gt,(0,r.pi)({},void 0!==s?{visible:s}:{},{trigger:Array.isArray(_)?_:[_],prefixCls:"rmwc-tooltip",placement:b,transitionName:"rmwc-tooltip-zoom",mouseEnterDelay:p/1e3,mouseLeaveDelay:g/1e3,overlay:n,overlayClassName:a()(o,{"rmwc-tooltip--show-arrow":f}),destroyTooltipOnHide:!0}),t)}},function(e,t,n){var r=n(9);r(r.S+r.F,"Object",{assign:n(75)})},function(e,t,n){n(88);for(var r=n(2),i=n(10),o=n(32),a=n(14)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l<s.length;l++){var u=s[l],c=r[u],d=c&&c.prototype;d&&!d[a]&&i(d,a,u),o[u]=o.Array}},function(e,t,n){n(113),n(115),n(116),n(117),e.exports=n(3).Symbol},function(e,t,n){"use strict";var r=n(2),i=n(8),o=n(4),a=n(9),s=n(83),l=n(92).KEY,u=n(16),c=n(28),d=n(34),f=n(20),h=n(14),p=n(49),m=n(35),g=n(93),v=n(94),b=n(15),y=n(12),_=n(31),w=n(13),x=n(24),C=n(17),E=n(33),S=n(114),T=n(96),A=n(47),k=n(11),O=n(18),I=T.f,L=k.f,R=S.f,M=r.Symbol,P=r.JSON,$=P&&P.stringify,N=h("_hidden"),D=h("toPrimitive"),j={}.propertyIsEnumerable,F=c("symbol-registry"),B=c("symbols"),W=c("op-symbols"),H=Object.prototype,V="function"==typeof M&&!!A.f,U=r.QObject,z=!U||!U.prototype||!U.prototype.findChild,q=o&&u((function(){return 7!=E(L({},"a",{get:function(){return L(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=I(H,t);r&&delete H[t],L(e,t,n),r&&e!==H&&L(H,t,r)}:L,K=function(e){var t=B[e]=E(M.prototype);return t._k=e,t},G=V&&"symbol"==typeof M.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof M},X=function(e,t,n){return e===H&&X(W,t,n),b(e),t=x(t,!0),b(n),i(B,t)?(n.enumerable?(i(e,N)&&e[N][t]&&(e[N][t]=!1),n=E(n,{enumerable:C(0,!1)})):(i(e,N)||L(e,N,C(1,{})),e[N][t]=!0),q(e,t,n)):L(e,t,n)},Y=function(e,t){b(e);for(var n,r=g(t=w(t)),i=0,o=r.length;o>i;)X(e,n=r[i++],t[n]);return e},Q=function(e){var t=j.call(this,e=x(e,!0));return!(this===H&&i(B,e)&&!i(W,e))&&(!(t||!i(this,e)||!i(B,e)||i(this,N)&&this[N][e])||t)},Z=function(e,t){if(e=w(e),t=x(t,!0),e!==H||!i(B,t)||i(W,t)){var n=I(e,t);return!n||!i(B,t)||i(e,N)&&e[N][t]||(n.enumerable=!0),n}},J=function(e){for(var t,n=R(w(e)),r=[],o=0;n.length>o;)i(B,t=n[o++])||t==N||t==l||r.push(t);return r},ee=function(e){for(var t,n=e===H,r=R(n?W:w(e)),o=[],a=0;r.length>a;)!i(B,t=r[a++])||n&&!i(H,t)||o.push(B[t]);return o};V||(M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var e=f(arguments.length>0?arguments[0]:void 0),t=function(n){this===H&&t.call(W,n),i(this,N)&&i(this[N],e)&&(this[N][e]=!1),q(this,e,C(1,n))};return o&&z&&q(H,e,{configurable:!0,set:t}),K(e)},s(M.prototype,"toString",(function(){return this._k})),T.f=Z,k.f=X,n(95).f=S.f=J,n(30).f=Q,A.f=ee,o&&!n(19)&&s(H,"propertyIsEnumerable",Q,!0),p.f=function(e){return K(h(e))}),a(a.G+a.W+a.F*!V,{Symbol:M});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)h(te[ne++]);for(var re=O(h.store),ie=0;re.length>ie;)m(re[ie++]);a(a.S+a.F*!V,"Symbol",{for:function(e){return i(F,e+="")?F[e]:F[e]=M(e)},keyFor:function(e){if(!G(e))throw TypeError(e+" is not a symbol!");for(var t in F)if(F[t]===e)return t},useSetter:function(){z=!0},useSimple:function(){z=!1}}),a(a.S+a.F*!V,"Object",{create:function(e,t){return void 0===t?E(e):Y(E(e),t)},defineProperty:X,defineProperties:Y,getOwnPropertyDescriptor:Z,getOwnPropertyNames:J,getOwnPropertySymbols:ee});var oe=u((function(){A.f(1)}));a(a.S+a.F*oe,"Object",{getOwnPropertySymbols:function(e){return A.f(_(e))}}),P&&a(a.S+a.F*(!V||u((function(){var e=M();return"[null]"!=$([e])||"{}"!=$({a:e})||"{}"!=$(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=t=r[1],(y(t)||void 0!==e)&&!G(e))return v(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!G(t))return t}),r[1]=t,$.apply(P,r)}}),M.prototype[D]||n(10)(M.prototype,D,M.prototype.valueOf),d(M,"Symbol"),d(Math,"Math",!0),d(r.JSON,"JSON",!0)},function(e,t,n){var r=n(13),i=n(95).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?function(e){try{return i(e)}catch(e){return a.slice()}}(e):i(r(e))}},function(){},function(e,t,n){n(35)("asyncIterator")},function(e,t,n){n(35)("observable")},function(e,t,n){var r=n(9);r(r.S,"Object",{setPrototypeOf:n(97).set})},function(e,t,n){var r=n(9);r(r.S+r.F*!n(4),"Object",{defineProperty:n(11).f})},function(e,t,n){"use strict";var r,i=n(70),o=(r=i)&&r.__esModule?r:{default:r};t.Z=function(e,t,n){return t in e?(0,o.default)(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){"use strict";n.r(t),n.d(t,{Typography:function(){return s}});var r=n(127),i=n(0),o=n(128),a=n(145),s=(0,a.LM)((function(e,t){var n,s=e.use,l=(0,r._T)(e,["use"]),u=(0,o.wv)().typography,c=(null==u?void 0:u[s])||(null==u?void 0:u.defaultTag)||"span",d=(0,a.oC)(e,[(n={},n["mdc-typography--"+e.use]=e.use,n)]);return i.createElement(a.Vp,(0,r.pi)({tag:c},l,{ref:t,className:d}))}))},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(73),s=n(57),l=n(0),u=n(136),c=n(142),d=(0,c.getAceInstance)(),f=function(e){function t(t){var n=e.call(this,t)||this;return c.editorEvents.forEach((function(e){n[e]=n[e].bind(n)})),n.debounce=c.debounce,n}return i(t,e),t.prototype.isInShadow=function(e){for(var t=e&&e.parentNode;t;){if("[object ShadowRoot]"===t.toString())return!0;t=t.parentNode}return!1},t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.className,r=t.onBeforeLoad,i=t.onValidate,o=t.mode,a=t.focus,s=t.theme,l=t.fontSize,u=t.value,f=t.defaultValue,h=t.showGutter,p=t.wrapEnabled,m=t.showPrintMargin,g=t.scrollMargin,v=void 0===g?[0,0,0,0]:g,b=t.keyboardHandler,y=t.onLoad,_=t.commands,w=t.annotations,x=t.markers,C=t.placeholder;this.editor=d.edit(this.refEditor),r&&r(d);for(var E=Object.keys(this.props.editorProps),S=0;S<E.length;S++)this.editor[E[S]]=this.props.editorProps[E[S]];this.props.debounceChangePeriod&&(this.onChange=this.debounce(this.onChange,this.props.debounceChangePeriod)),this.editor.renderer.setScrollMargin(v[0],v[1],v[2],v[3]),this.isInShadow(this.refEditor)&&this.editor.renderer.attachToShadowRoot(),this.editor.getSession().setMode("string"==typeof o?"ace/mode/".concat(o):o),s&&""!==s&&this.editor.setTheme("ace/theme/".concat(s)),this.editor.setFontSize("number"==typeof l?"".concat(l,"px"):l),this.editor.getSession().setValue(f||(u||"")),this.props.navigateToFileEnd&&this.editor.navigateFileEnd(),this.editor.renderer.setShowGutter(h),this.editor.getSession().setUseWrapMode(p),this.editor.setShowPrintMargin(m),this.editor.on("focus",this.onFocus),this.editor.on("blur",this.onBlur),this.editor.on("copy",this.onCopy),this.editor.on("paste",this.onPaste),this.editor.on("change",this.onChange),this.editor.on("input",this.onInput),C&&this.updatePlaceholder(),this.editor.getSession().selection.on("changeSelection",this.onSelectionChange),this.editor.getSession().selection.on("changeCursor",this.onCursorChange),i&&this.editor.getSession().on("changeAnnotation",(function(){var t=e.editor.getSession().getAnnotations();e.props.onValidate(t)})),this.editor.session.on("changeScrollTop",this.onScroll),this.editor.getSession().setAnnotations(w||[]),x&&x.length>0&&this.handleMarkers(x);var T=this.editor.$options;c.editorOptions.forEach((function(t){T.hasOwnProperty(t)?e.editor.setOption(t,e.props[t]):e.props[t]&&console.warn("ReactAce: editor option ".concat(t," was activated but not found. Did you need to import a related tool or did you possibly mispell the option?"))})),this.handleOptions(this.props),Array.isArray(_)&&_.forEach((function(t){"string"==typeof t.exec?e.editor.commands.bindKey(t.bindKey,t.exec):e.editor.commands.addCommand(t)})),b&&this.editor.setKeyboardHandler("ace/keyboard/"+b),n&&(this.refEditor.className+=" "+n),y&&y(this.editor),this.editor.resize(),a&&this.editor.focus()},t.prototype.componentDidUpdate=function(e){for(var t=e,n=this.props,r=0;r<c.editorOptions.length;r++){var i=c.editorOptions[r];n[i]!==t[i]&&this.editor.setOption(i,n[i])}if(n.className!==t.className){var o=this.refEditor.className.trim().split(" ");t.className.trim().split(" ").forEach((function(e){var t=o.indexOf(e);o.splice(t,1)})),this.refEditor.className=" "+n.className+" "+o.join(" ")}var a=this.editor&&null!=n.value&&this.editor.getValue()!==n.value;if(a){this.silent=!0;var s=this.editor.session.selection.toJSON();this.editor.setValue(n.value,n.cursorStart),this.editor.session.selection.fromJSON(s),this.silent=!1}n.placeholder!==t.placeholder&&this.updatePlaceholder(),n.mode!==t.mode&&this.editor.getSession().setMode("string"==typeof n.mode?"ace/mode/".concat(n.mode):n.mode),n.theme!==t.theme&&this.editor.setTheme("ace/theme/"+n.theme),n.keyboardHandler!==t.keyboardHandler&&(n.keyboardHandler?this.editor.setKeyboardHandler("ace/keyboard/"+n.keyboardHandler):this.editor.setKeyboardHandler(null)),n.fontSize!==t.fontSize&&this.editor.setFontSize("number"==typeof n.fontSize?"".concat(n.fontSize,"px"):n.fontSize),n.wrapEnabled!==t.wrapEnabled&&this.editor.getSession().setUseWrapMode(n.wrapEnabled),n.showPrintMargin!==t.showPrintMargin&&this.editor.setShowPrintMargin(n.showPrintMargin),n.showGutter!==t.showGutter&&this.editor.renderer.setShowGutter(n.showGutter),u(n.setOptions,t.setOptions)||this.handleOptions(n),!a&&u(n.annotations,t.annotations)||this.editor.getSession().setAnnotations(n.annotations||[]),!u(n.markers,t.markers)&&Array.isArray(n.markers)&&this.handleMarkers(n.markers),u(n.scrollMargin,t.scrollMargin)||this.handleScrollMargins(n.scrollMargin),e.height===this.props.height&&e.width===this.props.width||this.editor.resize(),this.props.focus&&!e.focus&&this.editor.focus()},t.prototype.handleScrollMargins=function(e){void 0===e&&(e=[0,0,0,0]),this.editor.renderer.setScrollMargin(e[0],e[1],e[2],e[3])},t.prototype.componentWillUnmount=function(){this.editor&&(this.editor.destroy(),this.editor=null)},t.prototype.onChange=function(e){if(this.props.onChange&&!this.silent){var t=this.editor.getValue();this.props.onChange(t,e)}},t.prototype.onSelectionChange=function(e){if(this.props.onSelectionChange){var t=this.editor.getSelection();this.props.onSelectionChange(t,e)}},t.prototype.onCursorChange=function(e){if(this.props.onCursorChange){var t=this.editor.getSelection();this.props.onCursorChange(t,e)}},t.prototype.onInput=function(e){this.props.onInput&&this.props.onInput(e),this.props.placeholder&&this.updatePlaceholder()},t.prototype.onFocus=function(e){this.props.onFocus&&this.props.onFocus(e,this.editor)},t.prototype.onBlur=function(e){this.props.onBlur&&this.props.onBlur(e,this.editor)},t.prototype.onCopy=function(e){var t=e.text;this.props.onCopy&&this.props.onCopy(t)},t.prototype.onPaste=function(e){var t=e.text;this.props.onPaste&&this.props.onPaste(t)},t.prototype.onScroll=function(){this.props.onScroll&&this.props.onScroll(this.editor)},t.prototype.handleOptions=function(e){for(var t=Object.keys(e.setOptions),n=0;n<t.length;n++)this.editor.setOption(t[n],e.setOptions[t[n]])},t.prototype.handleMarkers=function(e){var t=this,n=this.editor.getSession().getMarkers(!0);for(var r in n)n.hasOwnProperty(r)&&this.editor.getSession().removeMarker(n[r].id);for(var r in n=this.editor.getSession().getMarkers(!1))n.hasOwnProperty(r)&&"ace_active-line"!==n[r].clazz&&"ace_selected-word"!==n[r].clazz&&this.editor.getSession().removeMarker(n[r].id);e.forEach((function(e){var n=e.startRow,r=e.startCol,i=e.endRow,o=e.endCol,s=e.className,l=e.type,u=e.inFront,c=void 0!==u&&u,d=new a.Range(n,r,i,o);t.editor.getSession().addMarker(d,s,l,c)}))},t.prototype.updatePlaceholder=function(){var e=this.editor,t=this.props.placeholder,n=!e.session.getValue().length,r=e.renderer.placeholderNode;!n&&r?(e.renderer.scroller.removeChild(e.renderer.placeholderNode),e.renderer.placeholderNode=null):n&&!r?((r=e.renderer.placeholderNode=document.createElement("div")).textContent=t||"",r.className="ace_comment ace_placeholder",r.style.padding="0 9px",r.style.position="absolute",r.style.zIndex="3",e.renderer.scroller.appendChild(r)):n&&r&&(r.textContent=t)},t.prototype.updateRef=function(e){this.refEditor=e},t.prototype.render=function(){var e=this.props,t=e.name,n=e.width,r=e.height,i=e.style,a=o({width:n,height:r},i);return l.createElement("div",{ref:this.updateRef,id:t,style:a})},t.propTypes={mode:s.oneOfType([s.string,s.object]),focus:s.bool,theme:s.string,name:s.string,className:s.string,height:s.string,width:s.string,fontSize:s.oneOfType([s.number,s.string]),showGutter:s.bool,onChange:s.func,onCopy:s.func,onPaste:s.func,onFocus:s.func,onInput:s.func,onBlur:s.func,onScroll:s.func,value:s.string,defaultValue:s.string,onLoad:s.func,onSelectionChange:s.func,onCursorChange:s.func,onBeforeLoad:s.func,onValidate:s.func,minLines:s.number,maxLines:s.number,readOnly:s.bool,highlightActiveLine:s.bool,tabSize:s.number,showPrintMargin:s.bool,cursorStart:s.number,debounceChangePeriod:s.number,editorProps:s.object,setOptions:s.object,style:s.object,scrollMargin:s.array,annotations:s.array,markers:s.array,keyboardHandler:s.string,wrapEnabled:s.bool,enableSnippets:s.bool,enableBasicAutocompletion:s.oneOfType([s.bool,s.array]),enableLiveAutocompletion:s.oneOfType([s.bool,s.array]),navigateToFileEnd:s.bool,commands:s.array,placeholder:s.string},t.defaultProps={name:"ace-editor",focus:!1,mode:"",theme:"",height:"500px",width:"500px",fontSize:12,enableSnippets:!1,showGutter:!0,onChange:null,onPaste:null,onLoad:null,onScroll:null,minLines:null,maxLines:null,readOnly:!1,highlightActiveLine:!0,showPrintMargin:!0,tabSize:4,cursorStart:1,editorProps:{},style:{},scrollMargin:[0,0,0,0],setOptions:{},wrapEnabled:!1,enableBasicAutocompletion:!1,enableLiveAutocompletion:!1,placeholder:null,navigateToFileEnd:!0},t}(l.Component);t.default=f},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(57),a=n(0),s=n(107),l=n(144),u=function(e){function t(t){var n=e.call(this,t)||this;return n.state={value:n.props.value},n.onChange=n.onChange.bind(n),n.diff=n.diff.bind(n),n}return i(t,e),t.prototype.componentDidUpdate=function(){var e=this.props.value;e!==this.state.value&&this.setState({value:e})},t.prototype.onChange=function(e){this.setState({value:e}),this.props.onChange&&this.props.onChange(e)},t.prototype.diff=function(){var e=new l,t=this.state.value[0],n=this.state.value[1];if(0===t.length&&0===n.length)return[];var r=e.diff_main(t,n);e.diff_cleanupSemantic(r);var i=this.generateDiffedLines(r);return this.setCodeMarkers(i)},t.prototype.generateDiffedLines=function(e){var t=0,n=-1,r=1,i={left:[],right:[]},o={left:1,right:1};return e.forEach((function(e){var a=e[0],s=e[1],l=s.split("\n").length-1;if(0!==s.length){var u=s[0],c=s[s.length-1],d=0;switch(a){case t:o.left+=l,o.right+=l;break;case n:"\n"===u&&(o.left++,l--),0===(d=l)&&i.right.push({startLine:o.right,endLine:o.right}),"\n"===c&&(d-=1),i.left.push({startLine:o.left,endLine:o.left+d}),o.left+=l;break;case r:"\n"===u&&(o.right++,l--),0===(d=l)&&i.left.push({startLine:o.left,endLine:o.left}),"\n"===c&&(d-=1),i.right.push({startLine:o.right,endLine:o.right+d}),o.right+=l;break;default:throw new Error("Diff type was not defined.")}}})),i},t.prototype.setCodeMarkers=function(e){void 0===e&&(e={left:[],right:[]});for(var t=[],n={left:[],right:[]},r=0;r<e.left.length;r++){var i={startRow:e.left[r].startLine-1,endRow:e.left[r].endLine,type:"text",className:"codeMarker"};n.left.push(i)}for(r=0;r<e.right.length;r++){i={startRow:e.right[r].startLine-1,endRow:e.right[r].endLine,type:"text",className:"codeMarker"};n.right.push(i)}return t[0]=n.left,t[1]=n.right,t},t.prototype.render=function(){var e=this.diff();return a.createElement(s.default,{name:this.props.name,className:this.props.className,focus:this.props.focus,orientation:this.props.orientation,splits:this.props.splits,mode:this.props.mode,theme:this.props.theme,height:this.props.height,width:this.props.width,fontSize:this.props.fontSize,showGutter:this.props.showGutter,onChange:this.onChange,onPaste:this.props.onPaste,onLoad:this.props.onLoad,onScroll:this.props.onScroll,minLines:this.props.minLines,maxLines:this.props.maxLines,readOnly:this.props.readOnly,highlightActiveLine:this.props.highlightActiveLine,showPrintMargin:this.props.showPrintMargin,tabSize:this.props.tabSize,cursorStart:this.props.cursorStart,editorProps:this.props.editorProps,style:this.props.style,scrollMargin:this.props.scrollMargin,setOptions:this.props.setOptions,wrapEnabled:this.props.wrapEnabled,enableBasicAutocompletion:this.props.enableBasicAutocompletion,enableLiveAutocompletion:this.props.enableLiveAutocompletion,value:this.state.value,markers:e})},t.propTypes={cursorStart:o.number,editorProps:o.object,enableBasicAutocompletion:o.bool,enableLiveAutocompletion:o.bool,focus:o.bool,fontSize:o.number,height:o.string,highlightActiveLine:o.bool,maxLines:o.number,minLines:o.number,mode:o.string,name:o.string,className:o.string,onLoad:o.func,onPaste:o.func,onScroll:o.func,onChange:o.func,orientation:o.string,readOnly:o.bool,scrollMargin:o.array,setOptions:o.object,showGutter:o.bool,showPrintMargin:o.bool,splits:o.number,style:o.object,tabSize:o.number,theme:o.string,value:o.array,width:o.string,wrapEnabled:o.bool},t.defaultProps={cursorStart:1,editorProps:{},enableBasicAutocompletion:!1,enableLiveAutocompletion:!1,focus:!1,fontSize:12,height:"500px",highlightActiveLine:!0,maxLines:null,minLines:null,mode:"",name:"ace-editor",onLoad:null,onScroll:null,onPaste:null,onChange:null,orientation:"beside",readOnly:!1,scrollMargin:[0,0,0,0],setOptions:{},showGutter:!0,showPrintMargin:!0,splits:2,style:{},tabSize:4,theme:"github",value:["",""],width:"500px",wrapEnabled:!0},t}(a.Component);t.default=u},function(e,t,n){"use strict";n.r(t),n.d(t,{CircularProgress:function(){return s}});var r=n(127),i=n(0),o=n(145),a={xsmall:18,small:20,medium:24,large:36,xlarge:48},s=(0,o.LM)((function(e,t){var n,s=e.size,l=void 0===s?"medium":s,u=e.max,c=void 0===u?1:u,d=e.min,f=void 0===d?0:d,h=e.progress,p=(0,r._T)(e,["size","max","min","progress"]),m=(0,o.oC)(e,["rmwc-circular-progress",(n={},n["rmwc-circular-progress--size-"+e.size]="string"==typeof e.size,n["rmwc-circular-progress--indeterminate"]=void 0===h,n["rmwc-circular-progress--thickerstroke"]=!!e.size&&(a[l]||Number(l))>36,n)]),g=a[l]?p.style:(0,r.pi)((0,r.pi)({},p.style),{fontSize:Number(l)}),v=a[l]||Number(l);return i.createElement(o.Vp,(0,r.pi)({"aria-valuenow":h,"aria-valuemin":f,"aria-valuemax":c},p,{style:g,className:m,ref:t}),i.createElement("svg",{className:"rmwc-circular-progress__circle",viewBox:"0 0 "+v+" "+v},i.createElement("circle",{className:"rmwc-circular-progress__path",style:function(e){return void 0!==h?{strokeDasharray:2*Math.PI*(e/2.4)*(t=h,t<f?0:t>c?1:(t-f)/(c-f))+", 666.66%"}:void 0;var t}(v),cx:v/2,cy:v/2,r:v/2.4})))}))},function(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():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},r.apply(this,arguments)}function i(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t)}function s(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}n.r(t),n.d(t,{CSSTransition:function(){return C},ReplaceTransition:function(){return M},SwitchTransition:function(){return B},Transition:function(){return _},TransitionGroup:function(){return O},config:function(){return c}});var l=n(0),u=n(1),c={disabled:!1},d=l.createContext(null),f=function(e){return e.scrollTop},h="unmounted",p="exited",m="entering",g="entered",v="exiting",b=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=p,r.appearStatus=m):i=g:i=t.unmountOnExit||t.mountOnEnter?h:p,r.state={status:i},r.nextCallback=null,r}a(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===h?{status:p}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==m&&n!==g&&(t=m):n!==m&&n!==g||(t=v)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===m){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:u.findDOMNode(this);n&&f(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===p&&this.setState({status:h})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[u.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||c.disabled?this.safeSetState({status:g},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:m},(function(){t.props.onEntering(o,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:g},(function(){t.props.onEntered(o,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:u.findDOMNode(this);t&&!c.disabled?(this.props.onExit(r),this.safeSetState({status:v},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:p},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:p},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:u.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===h)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,i(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return l.createElement(d.Provider,{value:null},"function"==typeof n?n(e,r):l.cloneElement(l.Children.only(n),r))},t}(l.Component);function y(){}b.contextType=d,b.propTypes={},b.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:y,onEntering:y,onEntered:y,onExit:y,onExiting:y,onExited:y},b.UNMOUNTED=h,b.EXITED=p,b.ENTERING=m,b.ENTERED=g,b.EXITING=v;var _=b,w=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=s(n.className,r):n.setAttribute("class",s(n.className&&n.className.baseVal||"",r)));var n,r}))},x=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1];t.removeClasses(i,"exit"),t.addClass(i,o?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.addClass(i,o,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.removeClasses(i,o),t.addClass(i,o,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,i=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:i,activeClassName:r?i+"-active":n[e+"Active"],doneClassName:r?i+"-done":n[e+"Done"]}},t}a(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],i=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&i&&(r+=" "+i),"active"===n&&e&&f(e),r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))}(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,o=n.done;this.appliedClasses[t]={},r&&w(e,r),i&&w(e,i),o&&w(e,o)},n.render=function(){var e=this.props,t=(e.classNames,i(e,["classNames"]));return l.createElement(_,r({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(l.Component);x.defaultProps={classNames:""},x.propTypes={};var C=x;function E(e,t){var n=Object.create(null);return e&&l.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,l.isValidElement)(e)?t(e):e}(e)})),n}function S(e,t,n){return null!=n[t]?n[t]:e.props[t]}function T(e,t,n){var r=E(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var u=i[l][r];s[i[l][r]]=n(u)}s[l]=n(l)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}(t,r);return Object.keys(i).forEach((function(o){var a=i[o];if((0,l.isValidElement)(a)){var s=o in t,u=o in r,c=t[o],d=(0,l.isValidElement)(c)&&!c.props.in;!u||s&&!d?u||!s||d?u&&s&&(0,l.isValidElement)(c)&&(i[o]=(0,l.cloneElement)(a,{onExited:n.bind(null,a),in:c.props.in,exit:S(a,"exit",e),enter:S(a,"enter",e)})):i[o]=(0,l.cloneElement)(a,{in:!1}):i[o]=(0,l.cloneElement)(a,{onExited:n.bind(null,a),in:!0,exit:S(a,"exit",e),enter:S(a,"enter",e)})}})),i}var A=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},k=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}a(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,i=t.children,o=t.handleExited;return{children:t.firstRender?(n=e,r=o,E(n.children,(function(e){return(0,l.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:S(e,"appear",n),enter:S(e,"enter",n),exit:S(e,"exit",n)})}))):T(e,i,o),firstRender:!1}},n.handleExited=function(e,t){var n=E(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=r({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=i(e,["component","childFactory"]),o=this.state.contextValue,a=A(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?l.createElement(d.Provider,{value:o},a):l.createElement(d.Provider,{value:o},l.createElement(t,r,a))},t}(l.Component);k.propTypes={},k.defaultProps={component:"div",childFactory:function(e){return e}};var O=k,I=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}a(t,e);var n=t.prototype;return n.handleLifecycle=function(e,t,n){var r,i=this.props.children,o=l.Children.toArray(i)[t];if(o.props[e]&&(r=o.props)[e].apply(r,n),this.props[e]){var a=o.props.nodeRef?void 0:u.findDOMNode(this);this.props[e](a)}},n.render=function(){var e=this.props,t=e.children,n=e.in,r=i(e,["children","in"]),o=l.Children.toArray(t),a=o[0],s=o[1];return delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,l.createElement(O,r,n?l.cloneElement(a,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):l.cloneElement(s,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},t}(l.Component);I.propTypes={};var L,R,M=I;var P="out-in",$="in-out",N=function(e,t,n){return function(){var r;e.props[t]&&(r=e.props)[t].apply(r,arguments),n()}},D=((L={})[P]=function(e){var t=e.current,n=e.changeState;return l.cloneElement(t,{in:!1,onExited:N(t,"onExited",(function(){n(m,null)}))})},L[$]=function(e){var t=e.current,n=e.changeState,r=e.children;return[t,l.cloneElement(r,{in:!0,onEntered:N(r,"onEntered",(function(){n(m)}))})]},L),j=((R={})[P]=function(e){var t=e.children,n=e.changeState;return l.cloneElement(t,{in:!0,onEntered:N(t,"onEntered",(function(){n(g,l.cloneElement(t,{in:!0}))}))})},R[$]=function(e){var t=e.current,n=e.children,r=e.changeState;return[l.cloneElement(t,{in:!1,onExited:N(t,"onExited",(function(){r(g,l.cloneElement(n,{in:!0}))}))}),l.cloneElement(n,{in:!0})]},R),F=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).state={status:g,current:null},t.appeared=!1,t.changeState=function(e,n){void 0===n&&(n=t.state.current),t.setState({status:e,current:n})},t}a(t,e);var n=t.prototype;return n.componentDidMount=function(){this.appeared=!0},t.getDerivedStateFromProps=function(e,t){return null==e.children?{current:null}:t.status===m&&e.mode===$?{status:m}:!t.current||(n=t.current,r=e.children,n===r||l.isValidElement(n)&&l.isValidElement(r)&&null!=n.key&&n.key===r.key)?{current:l.cloneElement(e.children,{in:!0})}:{status:v};var n,r},n.render=function(){var e,t=this.props,n=t.children,r=t.mode,i=this.state,o=i.status,a=i.current,s={children:n,current:a,changeState:this.changeState,status:o};switch(o){case m:e=j[r](s);break;case v:e=D[r](s);break;case g:e=a}return l.createElement(d.Provider,{value:{isMounting:!this.appeared}},e)},t}(l.Component);F.propTypes={},F.defaultProps={mode:P};var B=F},function(e,t,n){"use strict";n.r(t),n.d(t,{FormField:function(){return h}});var r=n(127),i=n(0),o=n(145),a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},a(e,t)};var s=function(){return s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},s.apply(this,arguments)};var l=n(160),u={ROOT:"mdc-form-field"},c={LABEL_SELECTOR:".mdc-form-field > label"},d=function(e){function t(n){var r=e.call(this,s(s({},t.defaultAdapter),n))||this;return r.click=function(){r.handleClick()},r}return function(e,t){function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return u},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return c},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{activateInputRipple:function(){},deactivateInputRipple:function(){},deregisterInteractionHandler:function(){},registerInteractionHandler:function(){}}},enumerable:!0,configurable:!0}),t.prototype.init=function(){this.adapter.registerInteractionHandler("click",this.click)},t.prototype.destroy=function(){this.adapter.deregisterInteractionHandler("click",this.click)},t.prototype.handleClick=function(){var e=this;this.adapter.activateInputRipple(),requestAnimationFrame((function(){e.adapter.deactivateInputRipple()}))},t}(l.K),f=n(158),h=(0,o.LM)((function(e,t){!function(e){(0,f.j)({props:e,elements:{},foundation:function(){return new d({registerInteractionHandler:function(e,t){},deregisterInteractionHandler:function(e,t){},activateInputRipple:function(){},deactivateInputRipple:function(){}})}})}(e);e.alignEnd,e.foundationRef;var n=(0,r._T)(e,["alignEnd","foundationRef"]),a=(0,o.oC)(e,["mdc-form-field",{"mdc-form-field--align-end":e.alignEnd}]);return i.createElement(o.Vp,(0,r.pi)({},n,{ref:t,className:a}))}))},function(e,t,n){"use strict";n.d(t,{CR:function(){return l},XA:function(){return s},ZT:function(){return i},_T:function(){return a},ev:function(){return u},pi:function(){return o}});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}Object.create;function s(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function l(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function u(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create},function(e,t,n){"use strict";n.d(t,{wv:function(){return a}});var r=n(0),i={ripple:!0,tooltip:{align:"top",showArrow:!1,activateOn:["hover","focus"],enterDelay:0,leaveDelay:0},typography:{},icon:{icon:"",basename:"material-icons",prefix:"",strategy:"auto",render:void 0}},o=r.createContext(i),a=function(){return r.useContext(o)}},function(e,t,n){"use strict";var r=n(130);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function 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:o,resetWarningCache:i};return n.PropTypes=n,n}},function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){e.exports={default:n(137),__esModule:!0}},function(e,t,n){e.exports={default:n(139),__esModule:!0}},function(e,t,n){e.exports={default:n(134),__esModule:!0}},function(e,t,n){n(140);var r=n(3).Object;e.exports=function(e,t){return r.create(e,t)}},function(e,t,n){"use strict";e.exports=n(52)},function(e,t,n){e=n.nmd(e);var r="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",a="[object Array]",s="[object Boolean]",l="[object Date]",u="[object Error]",c="[object Function]",d="[object Map]",f="[object Number]",h="[object Object]",p="[object Promise]",m="[object RegExp]",g="[object Set]",v="[object String]",b="[object Symbol]",y="[object WeakMap]",_="[object ArrayBuffer]",w="[object DataView]",x=/^\[object .+?Constructor\]$/,C=/^(?:0|[1-9]\d*)$/,E={};E["[object Float32Array]"]=E["[object Float64Array]"]=E["[object Int8Array]"]=E["[object Int16Array]"]=E["[object Int32Array]"]=E["[object Uint8Array]"]=E["[object Uint8ClampedArray]"]=E["[object Uint16Array]"]=E["[object Uint32Array]"]=!0,E[o]=E[a]=E[_]=E[s]=E[w]=E[l]=E[u]=E[c]=E[d]=E[f]=E[h]=E[m]=E[g]=E[v]=E[y]=!1;var S="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,T="object"==typeof self&&self&&self.Object===Object&&self,A=S||T||Function("return this")(),k=t&&!t.nodeType&&t,O=k&&e&&!e.nodeType&&e,I=O&&O.exports===k,L=I&&S.process,R=function(){try{return L&&L.binding&&L.binding("util")}catch(e){}}(),M=R&&R.isTypedArray;function P(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function $(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function N(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var D,j,F,B=Array.prototype,W=Function.prototype,H=Object.prototype,V=A["__core-js_shared__"],U=W.toString,z=H.hasOwnProperty,q=(D=/[^.]+$/.exec(V&&V.keys&&V.keys.IE_PROTO||""))?"Symbol(src)_1."+D:"",K=H.toString,G=RegExp("^"+U.call(z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),X=I?A.Buffer:void 0,Y=A.Symbol,Q=A.Uint8Array,Z=H.propertyIsEnumerable,J=B.splice,ee=Y?Y.toStringTag:void 0,te=Object.getOwnPropertySymbols,ne=X?X.isBuffer:void 0,re=(j=Object.keys,F=Object,function(e){return j(F(e))}),ie=Re(A,"DataView"),oe=Re(A,"Map"),ae=Re(A,"Promise"),se=Re(A,"Set"),le=Re(A,"WeakMap"),ue=Re(Object,"create"),ce=Ne(ie),de=Ne(oe),fe=Ne(ae),he=Ne(se),pe=Ne(le),me=Y?Y.prototype:void 0,ge=me?me.valueOf:void 0;function ve(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])}}function be(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])}}function ye(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])}}function _e(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new ye;++t<n;)this.add(e[t])}function we(e){var t=this.__data__=new be(e);this.size=t.size}function xe(e,t){var n=Fe(e),r=!n&&je(e),i=!n&&!r&&Be(e),o=!n&&!r&&!i&&ze(e),a=n||r||i||o,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=s.length;for(var u in e)!t&&!z.call(e,u)||a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||$e(u,l))||s.push(u);return s}function Ce(e,t){for(var n=e.length;n--;)if(De(e[n][0],t))return n;return-1}function Ee(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ee&&ee in Object(e)?function(e){var t=z.call(e,ee),n=e[ee];try{e[ee]=void 0;var r=!0}catch(e){}var i=K.call(e);r&&(t?e[ee]=n:delete e[ee]);return i}(e):function(e){return K.call(e)}(e)}function Se(e){return Ue(e)&&Ee(e)==o}function Te(e,t,n,r,i){return e===t||(null==e||null==t||!Ue(e)&&!Ue(t)?e!=e&&t!=t:function(e,t,n,r,i,c){var p=Fe(e),y=Fe(t),x=p?a:Pe(e),C=y?a:Pe(t),E=(x=x==o?h:x)==h,S=(C=C==o?h:C)==h,T=x==C;if(T&&Be(e)){if(!Be(t))return!1;p=!0,E=!1}if(T&&!E)return c||(c=new we),p||ze(e)?Oe(e,t,n,r,i,c):function(e,t,n,r,i,o,a){switch(n){case w:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case _:return!(e.byteLength!=t.byteLength||!o(new Q(e),new Q(t)));case s:case l:case f:return De(+e,+t);case u:return e.name==t.name&&e.message==t.message;case m:case v:return e==t+"";case d:var c=$;case g:var h=1&r;if(c||(c=N),e.size!=t.size&&!h)return!1;var p=a.get(e);if(p)return p==t;r|=2,a.set(e,t);var y=Oe(c(e),c(t),r,i,o,a);return a.delete(e),y;case b:if(ge)return ge.call(e)==ge.call(t)}return!1}(e,t,x,n,r,i,c);if(!(1&n)){var A=E&&z.call(e,"__wrapped__"),k=S&&z.call(t,"__wrapped__");if(A||k){var O=A?e.value():e,I=k?t.value():t;return c||(c=new we),i(O,I,n,r,c)}}if(!T)return!1;return c||(c=new we),function(e,t,n,r,i,o){var a=1&n,s=Ie(e),l=s.length,u=Ie(t).length;if(l!=u&&!a)return!1;var c=l;for(;c--;){var d=s[c];if(!(a?d in t:z.call(t,d)))return!1}var f=o.get(e);if(f&&o.get(t))return f==t;var h=!0;o.set(e,t),o.set(t,e);var p=a;for(;++c<l;){var m=e[d=s[c]],g=t[d];if(r)var v=a?r(g,m,d,t,e,o):r(m,g,d,e,t,o);if(!(void 0===v?m===g||i(m,g,n,r,o):v)){h=!1;break}p||(p="constructor"==d)}if(h&&!p){var b=e.constructor,y=t.constructor;b==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof y&&y instanceof y||(h=!1)}return o.delete(e),o.delete(t),h}(e,t,n,r,i,c)}(e,t,n,r,Te,i))}function Ae(e){return!(!Ve(e)||function(e){return!!q&&q in e}(e))&&(We(e)?G:x).test(Ne(e))}function ke(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||H,t!==r)return re(e);var t,n,r,i=[];for(var o in Object(e))z.call(e,o)&&"constructor"!=o&&i.push(o);return i}function Oe(e,t,n,r,i,o){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var u=o.get(e);if(u&&o.get(t))return u==t;var c=-1,d=!0,f=2&n?new _e:void 0;for(o.set(e,t),o.set(t,e);++c<s;){var h=e[c],p=t[c];if(r)var m=a?r(p,h,c,t,e,o):r(h,p,c,e,t,o);if(void 0!==m){if(m)continue;d=!1;break}if(f){if(!P(t,(function(e,t){if(a=t,!f.has(a)&&(h===e||i(h,e,n,r,o)))return f.push(t);var a}))){d=!1;break}}else if(h!==p&&!i(h,p,n,r,o)){d=!1;break}}return o.delete(e),o.delete(t),d}function Ie(e){return function(e,t,n){var r=t(e);return Fe(e)?r:function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}(r,n(e))}(e,qe,Me)}function Le(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function Re(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Ae(n)?n:void 0}ve.prototype.clear=function(){this.__data__=ue?ue(null):{},this.size=0},ve.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ve.prototype.get=function(e){var t=this.__data__;if(ue){var n=t[e];return n===r?void 0:n}return z.call(t,e)?t[e]:void 0},ve.prototype.has=function(e){var t=this.__data__;return ue?void 0!==t[e]:z.call(t,e)},ve.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ue&&void 0===t?r:t,this},be.prototype.clear=function(){this.__data__=[],this.size=0},be.prototype.delete=function(e){var t=this.__data__,n=Ce(t,e);return!(n<0)&&(n==t.length-1?t.pop():J.call(t,n,1),--this.size,!0)},be.prototype.get=function(e){var t=this.__data__,n=Ce(t,e);return n<0?void 0:t[n][1]},be.prototype.has=function(e){return Ce(this.__data__,e)>-1},be.prototype.set=function(e,t){var n=this.__data__,r=Ce(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ye.prototype.clear=function(){this.size=0,this.__data__={hash:new ve,map:new(oe||be),string:new ve}},ye.prototype.delete=function(e){var t=Le(this,e).delete(e);return this.size-=t?1:0,t},ye.prototype.get=function(e){return Le(this,e).get(e)},ye.prototype.has=function(e){return Le(this,e).has(e)},ye.prototype.set=function(e,t){var n=Le(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},_e.prototype.add=_e.prototype.push=function(e){return this.__data__.set(e,r),this},_e.prototype.has=function(e){return this.__data__.has(e)},we.prototype.clear=function(){this.__data__=new be,this.size=0},we.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},we.prototype.get=function(e){return this.__data__.get(e)},we.prototype.has=function(e){return this.__data__.has(e)},we.prototype.set=function(e,t){var n=this.__data__;if(n instanceof be){var r=n.__data__;if(!oe||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ye(r)}return n.set(e,t),this.size=n.size,this};var Me=te?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}(te(e),(function(t){return Z.call(e,t)})))}:function(){return[]},Pe=Ee;function $e(e,t){return!!(t=null==t?i:t)&&("number"==typeof e||C.test(e))&&e>-1&&e%1==0&&e<t}function Ne(e){if(null!=e){try{return U.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function De(e,t){return e===t||e!=e&&t!=t}(ie&&Pe(new ie(new ArrayBuffer(1)))!=w||oe&&Pe(new oe)!=d||ae&&Pe(ae.resolve())!=p||se&&Pe(new se)!=g||le&&Pe(new le)!=y)&&(Pe=function(e){var t=Ee(e),n=t==h?e.constructor:void 0,r=n?Ne(n):"";if(r)switch(r){case ce:return w;case de:return d;case fe:return p;case he:return g;case pe:return y}return t});var je=Se(function(){return arguments}())?Se:function(e){return Ue(e)&&z.call(e,"callee")&&!Z.call(e,"callee")},Fe=Array.isArray;var Be=ne||function(){return!1};function We(e){if(!Ve(e))return!1;var t=Ee(e);return t==c||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function He(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=i}function Ve(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ue(e){return null!=e&&"object"==typeof e}var ze=M?function(e){return function(t){return e(t)}}(M):function(e){return Ue(e)&&He(e.length)&&!!E[Ee(e)]};function qe(e){return null!=(t=e)&&He(t.length)&&!We(t)?xe(e):ke(e);var t}e.exports=function(e,t){return Te(e,t)}},function(e,t,n){n(110),e.exports=n(3).Object.assign},function(e,t,n){"use strict";var r=n(82)(!0);n(48)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},function(e,t,n){n(118),e.exports=n(3).Object.setPrototypeOf},function(e,t,n){var r=n(9);r(r.S,"Object",{create:n(33)})},function(e,t,n){e=n.nmd(e),ace.define("ace/split",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/editor","ace/virtual_renderer","ace/edit_session"],(function(e,t,n){"use strict";var r=e("./lib/oop"),i=(e("./lib/lang"),e("./lib/event_emitter").EventEmitter),o=e("./editor").Editor,a=e("./virtual_renderer").VirtualRenderer,s=e("./edit_session").EditSession,l=function(e,t,n){this.BELOW=1,this.BESIDE=0,this.$container=e,this.$theme=t,this.$splits=0,this.$editorCSS="",this.$editors=[],this.$orientation=this.BESIDE,this.setSplits(n||1),this.$cEditor=this.$editors[0],this.on("focus",function(e){this.$cEditor=e}.bind(this))};(function(){r.implement(this,i),this.$createEditor=function(){var e=document.createElement("div");e.className=this.$editorCSS,e.style.cssText="position: absolute; top:0px; bottom:0px",this.$container.appendChild(e);var t=new o(new a(e,this.$theme));return t.on("focus",function(){this._emit("focus",t)}.bind(this)),this.$editors.push(t),t.setFontSize(this.$fontSize),t},this.setSplits=function(e){var t;if(e<1)throw"The number of splits have to be > 0!";if(e!=this.$splits){if(e>this.$splits){for(;this.$splits<this.$editors.length&&this.$splits<e;)t=this.$editors[this.$splits],this.$container.appendChild(t.container),t.setFontSize(this.$fontSize),this.$splits++;for(;this.$splits<e;)this.$createEditor(),this.$splits++}else for(;this.$splits>e;)t=this.$editors[this.$splits-1],this.$container.removeChild(t.container),this.$splits--;this.resize()}},this.getSplits=function(){return this.$splits},this.getEditor=function(e){return this.$editors[e]},this.getCurrentEditor=function(){return this.$cEditor},this.focus=function(){this.$cEditor.focus()},this.blur=function(){this.$cEditor.blur()},this.setTheme=function(e){this.$editors.forEach((function(t){t.setTheme(e)}))},this.setKeyboardHandler=function(e){this.$editors.forEach((function(t){t.setKeyboardHandler(e)}))},this.forEach=function(e,t){this.$editors.forEach(e,t)},this.$fontSize="",this.setFontSize=function(e){this.$fontSize=e,this.forEach((function(t){t.setFontSize(e)}))},this.$cloneSession=function(e){var t=new s(e.getDocument(),e.getMode()),n=e.getUndoManager();return t.setUndoManager(n),t.setTabSize(e.getTabSize()),t.setUseSoftTabs(e.getUseSoftTabs()),t.setOverwrite(e.getOverwrite()),t.setBreakpoints(e.getBreakpoints()),t.setUseWrapMode(e.getUseWrapMode()),t.setUseWorker(e.getUseWorker()),t.setWrapLimitRange(e.$wrapLimitRange.min,e.$wrapLimitRange.max),t.$foldData=e.$cloneFoldData(),t},this.setSession=function(e,t){var n;n=null==t?this.$cEditor:this.$editors[t];var r=this.$editors.some((function(t){return t.session===e}));return r&&(e=this.$cloneSession(e)),n.setSession(e),e},this.getOrientation=function(){return this.$orientation},this.setOrientation=function(e){this.$orientation!=e&&(this.$orientation=e,this.resize())},this.resize=function(){var e,t=this.$container.clientWidth,n=this.$container.clientHeight;if(this.$orientation==this.BESIDE)for(var r=t/this.$splits,i=0;i<this.$splits;i++)(e=this.$editors[i]).container.style.width=r+"px",e.container.style.top="0px",e.container.style.left=i*r+"px",e.container.style.height=n+"px",e.resize();else{var o=n/this.$splits;for(i=0;i<this.$splits;i++)(e=this.$editors[i]).container.style.width=t+"px",e.container.style.top=i*o+"px",e.container.style.left="0px",e.container.style.height=o+"px",e.resize()}}}).call(l.prototype),t.Split=l})),ace.define("ace/ext/split",["require","exports","module","ace/split"],(function(e,t,n){"use strict";n.exports=e("../split")})),ace.require(["ace/ext/split"],(function(t){e&&(e.exports=t)}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAceInstance=t.debounce=t.editorEvents=t.editorOptions=void 0;t.editorOptions=["minLines","maxLines","readOnly","highlightActiveLine","tabSize","enableBasicAutocompletion","enableLiveAutocompletion","enableSnippets"];t.editorEvents=["onChange","onFocus","onInput","onBlur","onCopy","onPaste","onSelectionChange","onCursorChange","onScroll","handleOptions","updateRef"];t.getAceInstance=function(){var e;return"undefined"==typeof window?(n.g.window={},e=n(73),delete n.g.window):window.ace?(e=window.ace).acequire=window.ace.require||window.ace.acequire:e=n(73),e};t.debounce=function(e,t){var n=null;return function(){var r=this,i=arguments;clearTimeout(n),n=setTimeout((function(){e.apply(r,i)}),t)}}},function(e,t,n){var r="__lodash_hash_undefined__",i="[object Function]",o="[object GeneratorFunction]",a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/,l=/^\./,u=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,c=/\\(\\)?/g,d=/^\[object .+?Constructor\]$/,f="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,h="object"==typeof self&&self&&self.Object===Object&&self,p=f||h||Function("return this")();var m,g=Array.prototype,v=Function.prototype,b=Object.prototype,y=p["__core-js_shared__"],_=(m=/[^.]+$/.exec(y&&y.keys&&y.keys.IE_PROTO||""))?"Symbol(src)_1."+m:"",w=v.toString,x=b.hasOwnProperty,C=b.toString,E=RegExp("^"+w.call(x).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),S=p.Symbol,T=g.splice,A=j(p,"Map"),k=j(Object,"create"),O=S?S.prototype:void 0,I=O?O.toString:void 0;function L(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function R(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function M(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function P(e,t){for(var n,r,i=e.length;i--;)if((n=e[i][0])===(r=t)||n!=n&&r!=r)return i;return-1}function $(e,t){var n;t=function(e,t){if(H(e))return!1;var n=typeof e;if("number"==n||"symbol"==n||"boolean"==n||null==e||U(e))return!0;return s.test(e)||!a.test(e)||null!=t&&e in Object(t)}(t,e)?[t]:H(n=t)?n:F(n);for(var r=0,i=t.length;null!=e&&r<i;)e=e[B(t[r++])];return r&&r==i?e:void 0}function N(e){if(!V(e)||(t=e,_&&_ in t))return!1;var t,n=function(e){var t=V(e)?C.call(e):"";return t==i||t==o}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?E:d;return n.test(function(e){if(null!=e){try{return w.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function D(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function j(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return N(n)?n:void 0}L.prototype.clear=function(){this.__data__=k?k(null):{}},L.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},L.prototype.get=function(e){var t=this.__data__;if(k){var n=t[e];return n===r?void 0:n}return x.call(t,e)?t[e]:void 0},L.prototype.has=function(e){var t=this.__data__;return k?void 0!==t[e]:x.call(t,e)},L.prototype.set=function(e,t){return this.__data__[e]=k&&void 0===t?r:t,this},R.prototype.clear=function(){this.__data__=[]},R.prototype.delete=function(e){var t=this.__data__,n=P(t,e);return!(n<0)&&(n==t.length-1?t.pop():T.call(t,n,1),!0)},R.prototype.get=function(e){var t=this.__data__,n=P(t,e);return n<0?void 0:t[n][1]},R.prototype.has=function(e){return P(this.__data__,e)>-1},R.prototype.set=function(e,t){var n=this.__data__,r=P(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},M.prototype.clear=function(){this.__data__={hash:new L,map:new(A||R),string:new L}},M.prototype.delete=function(e){return D(this,e).delete(e)},M.prototype.get=function(e){return D(this,e).get(e)},M.prototype.has=function(e){return D(this,e).has(e)},M.prototype.set=function(e,t){return D(this,e).set(e,t),this};var F=W((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(U(e))return I?I.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var n=[];return l.test(e)&&n.push(""),e.replace(u,(function(e,t,r,i){n.push(r?i.replace(c,"$1"):t||e)})),n}));function B(e){if("string"==typeof e||U(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function W(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a),a};return n.cache=new(W.Cache||M),n}W.Cache=M;var H=Array.isArray;function V(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function U(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==C.call(e)}e.exports=function(e,t,n){var r=null==e?void 0:$(e,t);return void 0===r?n:r}},function(e){var t=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},n=-1;t.Diff=function(e,t){return[e,t]},t.prototype.diff_main=function(e,n,r,i){void 0===i&&(i=this.Diff_Timeout<=0?Number.MAX_VALUE:(new Date).getTime()+1e3*this.Diff_Timeout);var o=i;if(null==e||null==n)throw new Error("Null input. (diff_main)");if(e==n)return e?[new t.Diff(0,e)]:[];void 0===r&&(r=!0);var a=r,s=this.diff_commonPrefix(e,n),l=e.substring(0,s);e=e.substring(s),n=n.substring(s),s=this.diff_commonSuffix(e,n);var u=e.substring(e.length-s);e=e.substring(0,e.length-s),n=n.substring(0,n.length-s);var c=this.diff_compute_(e,n,a,o);return l&&c.unshift(new t.Diff(0,l)),u&&c.push(new t.Diff(0,u)),this.diff_cleanupMerge(c),c},t.prototype.diff_compute_=function(e,r,i,o){var a;if(!e)return[new t.Diff(1,r)];if(!r)return[new t.Diff(n,e)];var s=e.length>r.length?e:r,l=e.length>r.length?r:e,u=s.indexOf(l);if(-1!=u)return a=[new t.Diff(1,s.substring(0,u)),new t.Diff(0,l),new t.Diff(1,s.substring(u+l.length))],e.length>r.length&&(a[0][0]=a[2][0]=n),a;if(1==l.length)return[new t.Diff(n,e),new t.Diff(1,r)];var c=this.diff_halfMatch_(e,r);if(c){var d=c[0],f=c[1],h=c[2],p=c[3],m=c[4],g=this.diff_main(d,h,i,o),v=this.diff_main(f,p,i,o);return g.concat([new t.Diff(0,m)],v)}return i&&e.length>100&&r.length>100?this.diff_lineMode_(e,r,o):this.diff_bisect_(e,r,o)},t.prototype.diff_lineMode_=function(e,r,i){var o=this.diff_linesToChars_(e,r);e=o.chars1,r=o.chars2;var a=o.lineArray,s=this.diff_main(e,r,!1,i);this.diff_charsToLines_(s,a),this.diff_cleanupSemantic(s),s.push(new t.Diff(0,""));for(var l=0,u=0,c=0,d="",f="";l<s.length;){switch(s[l][0]){case 1:c++,f+=s[l][1];break;case n:u++,d+=s[l][1];break;case 0:if(u>=1&&c>=1){s.splice(l-u-c,u+c),l=l-u-c;for(var h=this.diff_main(d,f,!1,i),p=h.length-1;p>=0;p--)s.splice(l,0,h[p]);l+=h.length}c=0,u=0,d="",f=""}l++}return s.pop(),s},t.prototype.diff_bisect_=function(e,r,i){for(var o=e.length,a=r.length,s=Math.ceil((o+a)/2),l=s,u=2*s,c=new Array(u),d=new Array(u),f=0;f<u;f++)c[f]=-1,d[f]=-1;c[l+1]=0,d[l+1]=0;for(var h=o-a,p=h%2!=0,m=0,g=0,v=0,b=0,y=0;y<s&&!((new Date).getTime()>i);y++){for(var _=-y+m;_<=y-g;_+=2){for(var w=l+_,x=(A=_==-y||_!=y&&c[w-1]<c[w+1]?c[w+1]:c[w-1]+1)-_;A<o&&x<a&&e.charAt(A)==r.charAt(x);)A++,x++;if(c[w]=A,A>o)g+=2;else if(x>a)m+=2;else if(p){if((S=l+h-_)>=0&&S<u&&-1!=d[S])if(A>=(E=o-d[S]))return this.diff_bisectSplit_(e,r,A,x,i)}}for(var C=-y+v;C<=y-b;C+=2){for(var E,S=l+C,T=(E=C==-y||C!=y&&d[S-1]<d[S+1]?d[S+1]:d[S-1]+1)-C;E<o&&T<a&&e.charAt(o-E-1)==r.charAt(a-T-1);)E++,T++;if(d[S]=E,E>o)b+=2;else if(T>a)v+=2;else if(!p){if((w=l+h-C)>=0&&w<u&&-1!=c[w]){var A;x=l+(A=c[w])-w;if(A>=(E=o-E))return this.diff_bisectSplit_(e,r,A,x,i)}}}}return[new t.Diff(n,e),new t.Diff(1,r)]},t.prototype.diff_bisectSplit_=function(e,t,n,r,i){var o=e.substring(0,n),a=t.substring(0,r),s=e.substring(n),l=t.substring(r),u=this.diff_main(o,a,!1,i),c=this.diff_main(s,l,!1,i);return u.concat(c)},t.prototype.diff_linesToChars_=function(e,t){var n=[],r={};function i(e){for(var t="",i=0,a=-1,s=n.length;a<e.length-1;){-1==(a=e.indexOf("\n",i))&&(a=e.length-1);var l=e.substring(i,a+1);(r.hasOwnProperty?r.hasOwnProperty(l):void 0!==r[l])?t+=String.fromCharCode(r[l]):(s==o&&(l=e.substring(i),a=e.length),t+=String.fromCharCode(s),r[l]=s,n[s++]=l),i=a+1}return t}n[0]="";var o=4e4,a=i(e);return o=65535,{chars1:a,chars2:i(t),lineArray:n}},t.prototype.diff_charsToLines_=function(e,t){for(var n=0;n<e.length;n++){for(var r=e[n][1],i=[],o=0;o<r.length;o++)i[o]=t[r.charCodeAt(o)];e[n][1]=i.join("")}},t.prototype.diff_commonPrefix=function(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var n=0,r=Math.min(e.length,t.length),i=r,o=0;n<i;)e.substring(o,i)==t.substring(o,i)?o=n=i:r=i,i=Math.floor((r-n)/2+n);return i},t.prototype.diff_commonSuffix=function(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var n=0,r=Math.min(e.length,t.length),i=r,o=0;n<i;)e.substring(e.length-i,e.length-o)==t.substring(t.length-i,t.length-o)?o=n=i:r=i,i=Math.floor((r-n)/2+n);return i},t.prototype.diff_commonOverlap_=function(e,t){var n=e.length,r=t.length;if(0==n||0==r)return 0;n>r?e=e.substring(n-r):n<r&&(t=t.substring(0,n));var i=Math.min(n,r);if(e==t)return i;for(var o=0,a=1;;){var s=e.substring(i-a),l=t.indexOf(s);if(-1==l)return o;a+=l,0!=l&&e.substring(i-a)!=t.substring(0,a)||(o=a,a++)}},t.prototype.diff_halfMatch_=function(e,t){if(this.Diff_Timeout<=0)return null;var n=e.length>t.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length<n.length)return null;var i=this;function o(e,t,n){for(var r,o,a,s,l=e.substring(n,n+Math.floor(e.length/4)),u=-1,c="";-1!=(u=t.indexOf(l,u+1));){var d=i.diff_commonPrefix(e.substring(n),t.substring(u)),f=i.diff_commonSuffix(e.substring(0,n),t.substring(0,u));c.length<f+d&&(c=t.substring(u-f,u)+t.substring(u,u+d),r=e.substring(0,n-f),o=e.substring(n+d),a=t.substring(0,u-f),s=t.substring(u+d))}return 2*c.length>=e.length?[r,o,a,s,c]:null}var a,s,l,u,c,d=o(n,r,Math.ceil(n.length/4)),f=o(n,r,Math.ceil(n.length/2));return d||f?(a=f?d&&d[4].length>f[4].length?d:f:d,e.length>t.length?(s=a[0],l=a[1],u=a[2],c=a[3]):(u=a[0],c=a[1],s=a[2],l=a[3]),[s,l,u,c,a[4]]):null},t.prototype.diff_cleanupSemantic=function(e){for(var r=!1,i=[],o=0,a=null,s=0,l=0,u=0,c=0,d=0;s<e.length;)0==e[s][0]?(i[o++]=s,l=c,u=d,c=0,d=0,a=e[s][1]):(1==e[s][0]?c+=e[s][1].length:d+=e[s][1].length,a&&a.length<=Math.max(l,u)&&a.length<=Math.max(c,d)&&(e.splice(i[o-1],0,new t.Diff(n,a)),e[i[o-1]+1][0]=1,o--,s=--o>0?i[o-1]:-1,l=0,u=0,c=0,d=0,a=null,r=!0)),s++;for(r&&this.diff_cleanupMerge(e),this.diff_cleanupSemanticLossless(e),s=1;s<e.length;){if(e[s-1][0]==n&&1==e[s][0]){var f=e[s-1][1],h=e[s][1],p=this.diff_commonOverlap_(f,h),m=this.diff_commonOverlap_(h,f);p>=m?(p>=f.length/2||p>=h.length/2)&&(e.splice(s,0,new t.Diff(0,h.substring(0,p))),e[s-1][1]=f.substring(0,f.length-p),e[s+1][1]=h.substring(p),s++):(m>=f.length/2||m>=h.length/2)&&(e.splice(s,0,new t.Diff(0,f.substring(0,m))),e[s-1][0]=1,e[s-1][1]=h.substring(0,h.length-m),e[s+1][0]=n,e[s+1][1]=f.substring(m),s++),s++}s++}},t.prototype.diff_cleanupSemanticLossless=function(e){function n(e,n){if(!e||!n)return 6;var r=e.charAt(e.length-1),i=n.charAt(0),o=r.match(t.nonAlphaNumericRegex_),a=i.match(t.nonAlphaNumericRegex_),s=o&&r.match(t.whitespaceRegex_),l=a&&i.match(t.whitespaceRegex_),u=s&&r.match(t.linebreakRegex_),c=l&&i.match(t.linebreakRegex_),d=u&&e.match(t.blanklineEndRegex_),f=c&&n.match(t.blanklineStartRegex_);return d||f?5:u||c?4:o&&!s&&l?3:s||l?2:o||a?1:0}for(var r=1;r<e.length-1;){if(0==e[r-1][0]&&0==e[r+1][0]){var i=e[r-1][1],o=e[r][1],a=e[r+1][1],s=this.diff_commonSuffix(i,o);if(s){var l=o.substring(o.length-s);i=i.substring(0,i.length-s),o=l+o.substring(0,o.length-s),a=l+a}for(var u=i,c=o,d=a,f=n(i,o)+n(o,a);o.charAt(0)===a.charAt(0);){i+=o.charAt(0),o=o.substring(1)+a.charAt(0),a=a.substring(1);var h=n(i,o)+n(o,a);h>=f&&(f=h,u=i,c=o,d=a)}e[r-1][1]!=u&&(u?e[r-1][1]=u:(e.splice(r-1,1),r--),e[r][1]=c,d?e[r+1][1]=d:(e.splice(r+1,1),r--))}r++}},t.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,t.whitespaceRegex_=/\s/,t.linebreakRegex_=/[\r\n]/,t.blanklineEndRegex_=/\n\r?\n$/,t.blanklineStartRegex_=/^\r?\n\r?\n/,t.prototype.diff_cleanupEfficiency=function(e){for(var r=!1,i=[],o=0,a=null,s=0,l=!1,u=!1,c=!1,d=!1;s<e.length;)0==e[s][0]?(e[s][1].length<this.Diff_EditCost&&(c||d)?(i[o++]=s,l=c,u=d,a=e[s][1]):(o=0,a=null),c=d=!1):(e[s][0]==n?d=!0:c=!0,a&&(l&&u&&c&&d||a.length<this.Diff_EditCost/2&&l+u+c+d==3)&&(e.splice(i[o-1],0,new t.Diff(n,a)),e[i[o-1]+1][0]=1,o--,a=null,l&&u?(c=d=!0,o=0):(s=--o>0?i[o-1]:-1,c=d=!1),r=!0)),s++;r&&this.diff_cleanupMerge(e)},t.prototype.diff_cleanupMerge=function(e){e.push(new t.Diff(0,""));for(var r,i=0,o=0,a=0,s="",l="";i<e.length;)switch(e[i][0]){case 1:a++,l+=e[i][1],i++;break;case n:o++,s+=e[i][1],i++;break;case 0:o+a>1?(0!==o&&0!==a&&(0!==(r=this.diff_commonPrefix(l,s))&&(i-o-a>0&&0==e[i-o-a-1][0]?e[i-o-a-1][1]+=l.substring(0,r):(e.splice(0,0,new t.Diff(0,l.substring(0,r))),i++),l=l.substring(r),s=s.substring(r)),0!==(r=this.diff_commonSuffix(l,s))&&(e[i][1]=l.substring(l.length-r)+e[i][1],l=l.substring(0,l.length-r),s=s.substring(0,s.length-r))),i-=o+a,e.splice(i,o+a),s.length&&(e.splice(i,0,new t.Diff(n,s)),i++),l.length&&(e.splice(i,0,new t.Diff(1,l)),i++),i++):0!==i&&0==e[i-1][0]?(e[i-1][1]+=e[i][1],e.splice(i,1)):i++,a=0,o=0,s="",l=""}""===e[e.length-1][1]&&e.pop();var u=!1;for(i=1;i<e.length-1;)0==e[i-1][0]&&0==e[i+1][0]&&(e[i][1].substring(e[i][1].length-e[i-1][1].length)==e[i-1][1]?(e[i][1]=e[i-1][1]+e[i][1].substring(0,e[i][1].length-e[i-1][1].length),e[i+1][1]=e[i-1][1]+e[i+1][1],e.splice(i-1,1),u=!0):e[i][1].substring(0,e[i+1][1].length)==e[i+1][1]&&(e[i-1][1]+=e[i+1][1],e[i][1]=e[i][1].substring(e[i+1][1].length)+e[i+1][1],e.splice(i+1,1),u=!0)),i++;u&&this.diff_cleanupMerge(e)},t.prototype.diff_xIndex=function(e,t){var r,i=0,o=0,a=0,s=0;for(r=0;r<e.length&&(1!==e[r][0]&&(i+=e[r][1].length),e[r][0]!==n&&(o+=e[r][1].length),!(i>t));r++)a=i,s=o;return e.length!=r&&e[r][0]===n?s:s+(t-a)},t.prototype.diff_prettyHtml=function(e){for(var t=[],r=/&/g,i=/</g,o=/>/g,a=/\n/g,s=0;s<e.length;s++){var l=e[s][0],u=e[s][1].replace(r,"&amp;").replace(i,"&lt;").replace(o,"&gt;").replace(a,"&para;<br>");switch(l){case 1:t[s]='<ins style="background:#e6ffe6;">'+u+"</ins>";break;case n:t[s]='<del style="background:#ffe6e6;">'+u+"</del>";break;case 0:t[s]="<span>"+u+"</span>"}}return t.join("")},t.prototype.diff_text1=function(e){for(var t=[],n=0;n<e.length;n++)1!==e[n][0]&&(t[n]=e[n][1]);return t.join("")},t.prototype.diff_text2=function(e){for(var t=[],r=0;r<e.length;r++)e[r][0]!==n&&(t[r]=e[r][1]);return t.join("")},t.prototype.diff_levenshtein=function(e){for(var t=0,r=0,i=0,o=0;o<e.length;o++){var a=e[o][0],s=e[o][1];switch(a){case 1:r+=s.length;break;case n:i+=s.length;break;case 0:t+=Math.max(r,i),r=0,i=0}}return t+=Math.max(r,i)},t.prototype.diff_toDelta=function(e){for(var t=[],r=0;r<e.length;r++)switch(e[r][0]){case 1:t[r]="+"+encodeURI(e[r][1]);break;case n:t[r]="-"+e[r][1].length;break;case 0:t[r]="="+e[r][1].length}return t.join("\t").replace(/%20/g," ")},t.prototype.diff_fromDelta=function(e,r){for(var i=[],o=0,a=0,s=r.split(/\t/g),l=0;l<s.length;l++){var u=s[l].substring(1);switch(s[l].charAt(0)){case"+":try{i[o++]=new t.Diff(1,decodeURI(u))}catch(e){throw new Error("Illegal escape in diff_fromDelta: "+u)}break;case"-":case"=":var c=parseInt(u,10);if(isNaN(c)||c<0)throw new Error("Invalid number in diff_fromDelta: "+u);var d=e.substring(a,a+=c);"="==s[l].charAt(0)?i[o++]=new t.Diff(0,d):i[o++]=new t.Diff(n,d);break;default:if(s[l])throw new Error("Invalid diff operation in diff_fromDelta: "+s[l])}}if(a!=e.length)throw new Error("Delta length ("+a+") does not equal source text length ("+e.length+").");return i},t.prototype.match_main=function(e,t,n){if(null==e||null==t||null==n)throw new Error("Null input. (match_main)");return n=Math.max(0,Math.min(n,e.length)),e==t?0:e.length?e.substring(n,n+t.length)==t?n:this.match_bitap_(e,t,n):-1},t.prototype.match_bitap_=function(e,t,n){if(t.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var r=this.match_alphabet_(t),i=this;function o(e,r){var o=e/t.length,a=Math.abs(n-r);return i.Match_Distance?o+a/i.Match_Distance:a?1:o}var a=this.Match_Threshold,s=e.indexOf(t,n);-1!=s&&(a=Math.min(o(0,s),a),-1!=(s=e.lastIndexOf(t,n+t.length))&&(a=Math.min(o(0,s),a)));var l,u,c=1<<t.length-1;s=-1;for(var d,f=t.length+e.length,h=0;h<t.length;h++){for(l=0,u=f;l<u;)o(h,n+u)<=a?l=u:f=u,u=Math.floor((f-l)/2+l);f=u;var p=Math.max(1,n-u+1),m=Math.min(n+u,e.length)+t.length,g=Array(m+2);g[m+1]=(1<<h)-1;for(var v=m;v>=p;v--){var b=r[e.charAt(v-1)];if(g[v]=0===h?(g[v+1]<<1|1)&b:(g[v+1]<<1|1)&b|(d[v+1]|d[v])<<1|1|d[v+1],g[v]&c){var y=o(h,v-1);if(y<=a){if(a=y,!((s=v-1)>n))break;p=Math.max(1,2*n-s)}}}if(o(h+1,n)>a)break;d=g}return s},t.prototype.match_alphabet_=function(e){for(var t={},n=0;n<e.length;n++)t[e.charAt(n)]=0;for(n=0;n<e.length;n++)t[e.charAt(n)]|=1<<e.length-n-1;return t},t.prototype.patch_addContext_=function(e,n){if(0!=n.length){if(null===e.start2)throw Error("patch not initialized");for(var r=n.substring(e.start2,e.start2+e.length1),i=0;n.indexOf(r)!=n.lastIndexOf(r)&&r.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)i+=this.Patch_Margin,r=n.substring(e.start2-i,e.start2+e.length1+i);i+=this.Patch_Margin;var o=n.substring(e.start2-i,e.start2);o&&e.diffs.unshift(new t.Diff(0,o));var a=n.substring(e.start2+e.length1,e.start2+e.length1+i);a&&e.diffs.push(new t.Diff(0,a)),e.start1-=o.length,e.start2-=o.length,e.length1+=o.length+a.length,e.length2+=o.length+a.length}},t.prototype.patch_make=function(e,r,i){var o,a;if("string"==typeof e&&"string"==typeof r&&void 0===i)o=e,(a=this.diff_main(o,r,!0)).length>2&&(this.diff_cleanupSemantic(a),this.diff_cleanupEfficiency(a));else if(e&&"object"==typeof e&&void 0===r&&void 0===i)a=e,o=this.diff_text1(a);else if("string"==typeof e&&r&&"object"==typeof r&&void 0===i)o=e,a=r;else{if("string"!=typeof e||"string"!=typeof r||!i||"object"!=typeof i)throw new Error("Unknown call format to patch_make.");o=e,a=i}if(0===a.length)return[];for(var s=[],l=new t.patch_obj,u=0,c=0,d=0,f=o,h=o,p=0;p<a.length;p++){var m=a[p][0],g=a[p][1];switch(u||0===m||(l.start1=c,l.start2=d),m){case 1:l.diffs[u++]=a[p],l.length2+=g.length,h=h.substring(0,d)+g+h.substring(d);break;case n:l.length1+=g.length,l.diffs[u++]=a[p],h=h.substring(0,d)+h.substring(d+g.length);break;case 0:g.length<=2*this.Patch_Margin&&u&&a.length!=p+1?(l.diffs[u++]=a[p],l.length1+=g.length,l.length2+=g.length):g.length>=2*this.Patch_Margin&&u&&(this.patch_addContext_(l,f),s.push(l),l=new t.patch_obj,u=0,f=h,c=d)}1!==m&&(c+=g.length),m!==n&&(d+=g.length)}return u&&(this.patch_addContext_(l,f),s.push(l)),s},t.prototype.patch_deepCopy=function(e){for(var n=[],r=0;r<e.length;r++){var i=e[r],o=new t.patch_obj;o.diffs=[];for(var a=0;a<i.diffs.length;a++)o.diffs[a]=new t.Diff(i.diffs[a][0],i.diffs[a][1]);o.start1=i.start1,o.start2=i.start2,o.length1=i.length1,o.length2=i.length2,n[r]=o}return n},t.prototype.patch_apply=function(e,t){if(0==e.length)return[t,[]];e=this.patch_deepCopy(e);var r=this.patch_addPadding(e);t=r+t+r,this.patch_splitMax(e);for(var i=0,o=[],a=0;a<e.length;a++){var s,l,u=e[a].start2+i,c=this.diff_text1(e[a].diffs),d=-1;if(c.length>this.Match_MaxBits?-1!=(s=this.match_main(t,c.substring(0,this.Match_MaxBits),u))&&(-1==(d=this.match_main(t,c.substring(c.length-this.Match_MaxBits),u+c.length-this.Match_MaxBits))||s>=d)&&(s=-1):s=this.match_main(t,c,u),-1==s)o[a]=!1,i-=e[a].length2-e[a].length1;else if(o[a]=!0,i=s-u,c==(l=-1==d?t.substring(s,s+c.length):t.substring(s,d+this.Match_MaxBits)))t=t.substring(0,s)+this.diff_text2(e[a].diffs)+t.substring(s+c.length);else{var f=this.diff_main(c,l,!1);if(c.length>this.Match_MaxBits&&this.diff_levenshtein(f)/c.length>this.Patch_DeleteThreshold)o[a]=!1;else{this.diff_cleanupSemanticLossless(f);for(var h,p=0,m=0;m<e[a].diffs.length;m++){var g=e[a].diffs[m];0!==g[0]&&(h=this.diff_xIndex(f,p)),1===g[0]?t=t.substring(0,s+h)+g[1]+t.substring(s+h):g[0]===n&&(t=t.substring(0,s+h)+t.substring(s+this.diff_xIndex(f,p+g[1].length))),g[0]!==n&&(p+=g[1].length)}}}}return[t=t.substring(r.length,t.length-r.length),o]},t.prototype.patch_addPadding=function(e){for(var n=this.Patch_Margin,r="",i=1;i<=n;i++)r+=String.fromCharCode(i);for(i=0;i<e.length;i++)e[i].start1+=n,e[i].start2+=n;var o=e[0],a=o.diffs;if(0==a.length||0!=a[0][0])a.unshift(new t.Diff(0,r)),o.start1-=n,o.start2-=n,o.length1+=n,o.length2+=n;else if(n>a[0][1].length){var s=n-a[0][1].length;a[0][1]=r.substring(a[0][1].length)+a[0][1],o.start1-=s,o.start2-=s,o.length1+=s,o.length2+=s}if(0==(a=(o=e[e.length-1]).diffs).length||0!=a[a.length-1][0])a.push(new t.Diff(0,r)),o.length1+=n,o.length2+=n;else if(n>a[a.length-1][1].length){s=n-a[a.length-1][1].length;a[a.length-1][1]+=r.substring(0,s),o.length1+=s,o.length2+=s}return r},t.prototype.patch_splitMax=function(e){for(var r=this.Match_MaxBits,i=0;i<e.length;i++)if(!(e[i].length1<=r)){var o=e[i];e.splice(i--,1);for(var a=o.start1,s=o.start2,l="";0!==o.diffs.length;){var u=new t.patch_obj,c=!0;for(u.start1=a-l.length,u.start2=s-l.length,""!==l&&(u.length1=u.length2=l.length,u.diffs.push(new t.Diff(0,l)));0!==o.diffs.length&&u.length1<r-this.Patch_Margin;){var d=o.diffs[0][0],f=o.diffs[0][1];1===d?(u.length2+=f.length,s+=f.length,u.diffs.push(o.diffs.shift()),c=!1):d===n&&1==u.diffs.length&&0==u.diffs[0][0]&&f.length>2*r?(u.length1+=f.length,a+=f.length,c=!1,u.diffs.push(new t.Diff(d,f)),o.diffs.shift()):(f=f.substring(0,r-u.length1-this.Patch_Margin),u.length1+=f.length,a+=f.length,0===d?(u.length2+=f.length,s+=f.length):c=!1,u.diffs.push(new t.Diff(d,f)),f==o.diffs[0][1]?o.diffs.shift():o.diffs[0][1]=o.diffs[0][1].substring(f.length))}l=(l=this.diff_text2(u.diffs)).substring(l.length-this.Patch_Margin);var h=this.diff_text1(o.diffs).substring(0,this.Patch_Margin);""!==h&&(u.length1+=h.length,u.length2+=h.length,0!==u.diffs.length&&0===u.diffs[u.diffs.length-1][0]?u.diffs[u.diffs.length-1][1]+=h:u.diffs.push(new t.Diff(0,h))),c||e.splice(++i,0,u)}}},t.prototype.patch_toText=function(e){for(var t=[],n=0;n<e.length;n++)t[n]=e[n];return t.join("")},t.prototype.patch_fromText=function(e){var r=[];if(!e)return r;for(var i=e.split("\n"),o=0,a=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;o<i.length;){var s=i[o].match(a);if(!s)throw new Error("Invalid patch string: "+i[o]);var l=new t.patch_obj;for(r.push(l),l.start1=parseInt(s[1],10),""===s[2]?(l.start1--,l.length1=1):"0"==s[2]?l.length1=0:(l.start1--,l.length1=parseInt(s[2],10)),l.start2=parseInt(s[3],10),""===s[4]?(l.start2--,l.length2=1):"0"==s[4]?l.length2=0:(l.start2--,l.length2=parseInt(s[4],10)),o++;o<i.length;){var u=i[o].charAt(0);try{var c=decodeURI(i[o].substring(1))}catch(e){throw new Error("Illegal escape in patch_fromText: "+c)}if("-"==u)l.diffs.push(new t.Diff(n,c));else if("+"==u)l.diffs.push(new t.Diff(1,c));else if(" "==u)l.diffs.push(new t.Diff(0,c));else{if("@"==u)break;if(""!==u)throw new Error('Invalid patch mode "'+u+'" in: '+c)}o++}}return r},(t.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0}).prototype.toString=function(){for(var e,t=["@@ -"+(0===this.length1?this.start1+",0":1==this.length1?this.start1+1:this.start1+1+","+this.length1)+" +"+(0===this.length2?this.start2+",0":1==this.length2?this.start2+1:this.start2+1+","+this.length2)+" @@\n"],r=0;r<this.diffs.length;r++){switch(this.diffs[r][0]){case 1:e="+";break;case n:e="-";break;case 0:e=" "}t[r+1]=e+encodeURI(this.diffs[r][1])+"\n"}return t.join("").replace(/%20/g," ")},e.exports=t,e.exports.diff_match_patch=t,e.exports.DIFF_DELETE=n,e.exports.DIFF_INSERT=1,e.exports.DIFF_EQUAL=0},function(e,t,n){"use strict";n.d(t,{LM:function(){return f},Vp:function(){return l},W5:function(){return h},lq:function(){return c},n7:function(){return d},oC:function(){return u}});var r=n(127),i=n(0),o=n(22),a=n.n(o),s=n(146),l=i.forwardRef((function(e,t){var n=e.tag,o=void 0===n?"div":n,a=(e.theme,e.element),s=(0,r._T)(e,["tag","theme","element"]),l=a?a.props(s):s,u=a?c(t,a.setRef):t;if(l.tabindex){var d=l.tabindex;delete l.tabindex,l.tabIndex=d}return i.createElement(o,(0,r.pi)({},l,{ref:u}))})),u=function(e,t){return a().apply(void 0,(0,r.ev)((0,r.ev)([e.className],(0,r.CR)(e.theme?(0,s.g)(e.theme):[])),(0,r.CR)("function"==typeof t?t(e):t)))},c=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){var n,i;try{for(var o=(0,r.XA)(e),a=o.next();!a.done;a=o.next()){var s=a.value;"function"==typeof s?s(t):s&&"current"in s&&(s.current=t)}}catch(e){n={error:e}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}}},d=function(e,t){"function"==typeof e?e(t):e&&"current"in e&&(e.current=t)};function f(e){var t=i.forwardRef(e),n=function(e,t){return i.createElement(i.Fragment,null)};return n.displayName=e.constructor.name||"RMWCComponent",t.displayName=n.displayName,t}function h(e){var t=f(e);return i.memo(t)}},function(e,t,n){"use strict";n.d(t,{g:function(){return i}});n(0),n(22);var r=n(147),i=function(e){return(Array.isArray(e)?e:[e]).filter((function(e){return!!e})).map((function(e){return"mdc-theme--"+(0,r.n)(e)}))}},function(e,t,n){"use strict";n.d(t,{f:function(){return r},n:function(){return i}});var r=function(e){return e.replace(/(-[a-z])/g,(function(e){return e.toUpperCase().replace("-","")}))},i=function(e){return e.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()}))}},function(e,t,n){"use strict";n.d(t,{g:function(){return v},W:function(){return b}});var r,i=n(127),o=n(0),a=n(145),s=n(158),l=n(159),u=n(161),c=n(176),d=n(174);var f={bottomEnd:"BOTTOM_END",bottomLeft:"BOTTOM_LEFT",bottomRight:"BOTTOM_RIGHT",bottomStart:"BOTTOM_START",topEnd:"TOP_END",topLeft:"TOP_LEFT",topRight:"TOP_RIGHT",topStart:"TOP_START"},h=function(e){var t=(0,i.CR)((0,o.useState)(e.open),2),n=t[0],a=t[1],h=(0,o.useRef)(null),p=(0,o.useRef)(null),m=(0,o.useRef)(null),g=(0,o.useRef)(null),v=(0,s.j)({props:e,elements:{rootEl:!0},api:function(e){var t=e.foundation,n=e.rootEl;return{hoistMenuToBody:function(){},setAnchorCorner:function(e){return t.setAnchorCorner(e)},setAnchorElement:function(e){return m.current=e},setOpen:function(e){return a(e)},getSurfaceElement:function(){return n.ref}}},foundation:function(e){var t=e.rootEl,n=e.getProps,o=e.emit,s=function(e){b.handleBodyClick(e)},u=function(){document.body.removeEventListener("click",s),document.body.removeEventListener("touchstart",s)},c=new d.k((0,i.pi)((0,i.pi)({addClass:function(e){t.addClass(e)},removeClass:function(e){t.removeClass(e)},hasClass:function(e){return"mdc-menu-surface"===e||t.hasClass(e)},hasAnchor:function(){return!!m.current},notifyClose:function(){u(),a(!1)},notifyOpen:function(){o("onOpen",{}),setTimeout((function(){document.body.addEventListener("click",s),document.body.addEventListener("touchstart",s)}),150)},isElementInContainer:function(e){return t.ref===e||!!t.ref&&t.ref.contains(e)},isRtl:function(){return!!t.ref&&"rtl"===getComputedStyle(t.ref).getPropertyValue("direction")},setTransformOrigin:function(e){t.setStyle(function(e,t){if(void 0===t&&(t=!1),void 0===r||t){var n=e.document.createElement("div");r="transform"in n.style?"transform":"webkitTransform"}return r}(window)+"-origin",e)}},{isFocused:function(){return document.activeElement===t.ref},saveFocus:function(){p.current=document.activeElement},restoreFocus:function(){t.ref&&t.ref.contains(document.activeElement)&&p.current&&p.current.focus&&p.current.focus()},isFirstElementFocused:function(){return!!h.current&&h.current===document.activeElement},isLastElementFocused:function(){return!!h.current&&h.current===document.activeElement},focusFirstElement:function(){return!!h.current&&h.current.focus&&h.current.focus()},focusLastElement:function(){return!!h.current&&h.current.focus&&h.current.focus()}}),{getInnerDimensions:function(){return{width:t.ref?t.ref.offsetWidth:0,height:t.ref?t.ref.offsetHeight:0}},getAnchorDimensions:function(){var e;return(null===(e=m.current)||void 0===e?void 0:e.getBoundingClientRect())||l.B},getWindowDimensions:function(){return{width:window.innerWidth,height:window.innerHeight}},getBodyDimensions:function(){return{width:document.body.clientWidth,height:document.body.clientHeight}},getWindowScroll:function(){return{x:window.pageXOffset,y:window.pageYOffset}},setPosition:function(e){t.setStyle("left",void 0!==e.left?e.left:null),t.setStyle("right",void 0!==e.right?e.right:null),t.setStyle("top",void 0!==e.top?e.top:null),t.setStyle("bottom",void 0!==e.bottom?e.bottom:null)},setMaxHeight:function(e){t.setStyle("maxHeight",e)}})),f=c.close.bind(c);c.close=function(e){void 0===e&&(e=!1),o("onClose",{}),g.current=window.setTimeout((function(){n().open||f(e)}))};var v=c.destroy.bind(c);return c.destroy=function(){u(),v()},c}}),b=v.foundation,y=(0,i._T)(v,["foundation"]),_=y.rootEl,w=e.onKeyDown,x=(0,o.useCallback)((function(e){null==w||w(e),b.handleKeydown(e)}),[w,b]);return _.setProp("onKeyDown",x,!0),(0,o.useEffect)((function(){b.setFixedPosition(!!e.fixed)}),[e.fixed,b]),(0,o.useEffect)((function(){var e=_.ref;if(e){var t=(0,u.o)(e,"."+d.k.cssClasses.ANCHOR);t&&(m.current=t)}}),[_.ref]),(0,o.useEffect)((function(){e.renderToPortal?b.setIsHoisted(!0):b.setIsHoisted(!1);var t=e.renderToPortal?function(){try{b.autoposition()}catch(e){}}:function(){};return(0,c.W)((function(){b.isOpen()})),window.addEventListener("resize",t),function(){window.removeEventListener("resize",t)}}),[e.renderToPortal,b]),(0,o.useEffect)((function(){var t=e.anchorCorner&&function(e){return d.k.Corner[f[e]]}(e.anchorCorner);if(void 0!==t){b.setAnchorCorner(t),b.dimensions_=b.adapter.getInnerDimensions();try{b.autoposition()}catch(e){}}}),[e.anchorCorner,b]),(0,o.useEffect)((function(){if(n){var e=_.ref?_.ref.querySelectorAll(d.k.strings.FOCUSABLE_ELEMENTS):[];h.current=e.length>0?e[0]:null,b.open()}else b.isOpen()&&b.close()}),[n,b,_.ref]),(0,o.useEffect)((function(){a(!!e.open)}),[e.open]),(0,o.useEffect)((function(){return function(){g.current&&window.clearTimeout(g.current)}}),[]),(0,i.pi)({},y)},p=n(1),m="rmwcPortal";function g(e){var t=e.children,n=e.renderTo,r=(0,o.useMemo)((function(){if("undefined"!=typeof document){var e=void 0;return!0===n?!(e=document.getElementById(m)||void 0)&&console.warn('No default Portal found. Did you forget to include it in the root of your app? `import { Portal } from "@rmwc/base";`'):"string"==typeof n?!(e=document.querySelector(n)||void 0)&&console.warn('The selector you provided for renderToPortal "'+n+"\" didn't find any elements."):n instanceof Element&&(e=n),e}}),[n]);return r?p.createPortal(t,r):o.createElement(o.Fragment,null,t)}var v=(0,a.LM)((function(e,t){var n=e.children,r=(e.open,e.anchorCorner,e.onOpen,e.onClose,e.renderToPortal),s=e.fixed,l=(e.apiRef,e.foundationRef,(0,i._T)(e,["children","open","anchorCorner","onOpen","onClose","renderToPortal","fixed","apiRef","foundationRef"])),u=h(e).rootEl,c=(0,a.oC)(e,["mdc-menu-surface",{"mdc-menu-surface--fixed":s}]);return o.createElement(g,{renderTo:r},o.createElement(a.Vp,(0,i.pi)({},l,{element:u,className:c,ref:t}),n))})),b=(0,a.LM)((function(e,t){var n=(0,a.oC)(e,["mdc-menu-surface--anchor"]);return o.createElement(a.Vp,(0,i.pi)({},e,{className:n,ref:t}))}))},function(e,t,n){"use strict";n.r(t),n.d(t,{IconButton:function(){return m}});var r=n(127),i=n(0),o=n(145),a=n(191),s=n(162),l=n(158),u=function(e,t){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},u(e,t)};var c=function(){return c=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},c.apply(this,arguments)};var d=n(160),f={ICON_BUTTON_ON:"mdc-icon-button--on",ROOT:"mdc-icon-button"},h={ARIA_LABEL:"aria-label",ARIA_PRESSED:"aria-pressed",DATA_ARIA_LABEL_OFF:"data-aria-label-off",DATA_ARIA_LABEL_ON:"data-aria-label-on",CHANGE_EVENT:"MDCIconButtonToggle:change"},p=function(e){function t(n){var r=e.call(this,c(c({},t.defaultAdapter),n))||this;return r.hasToggledAriaLabel=!1,r}return function(e,t){function n(){this.constructor=e}u(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return f},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return h},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},hasClass:function(){return!1},notifyChange:function(){},removeClass:function(){},getAttr:function(){return null},setAttr:function(){}}},enumerable:!0,configurable:!0}),t.prototype.init=function(){var e=this.adapter.getAttr(h.DATA_ARIA_LABEL_ON),t=this.adapter.getAttr(h.DATA_ARIA_LABEL_OFF);if(e&&t){if(null!==this.adapter.getAttr(h.ARIA_PRESSED))throw new Error("MDCIconButtonToggleFoundation: Button should not set `aria-pressed` if it has a toggled aria label.");this.hasToggledAriaLabel=!0}else this.adapter.setAttr(h.ARIA_PRESSED,String(this.isOn()))},t.prototype.handleClick=function(){this.toggle(),this.adapter.notifyChange({isOn:this.isOn()})},t.prototype.isOn=function(){return this.adapter.hasClass(f.ICON_BUTTON_ON)},t.prototype.toggle=function(e){if(void 0===e&&(e=!this.isOn()),e?this.adapter.addClass(f.ICON_BUTTON_ON):this.adapter.removeClass(f.ICON_BUTTON_ON),this.hasToggledAriaLabel){var t=e?this.adapter.getAttr(h.DATA_ARIA_LABEL_ON):this.adapter.getAttr(h.DATA_ARIA_LABEL_OFF);this.adapter.setAttr(h.ARIA_LABEL,t||"")}else this.adapter.setAttr(h.ARIA_PRESSED,""+e)},t}(d.K),m=(0,o.LM)((function(e,t){var n=(0,r._T)(e,[]);return n.onIcon?i.createElement(g,(0,r.pi)({},n,{ref:t})):i.createElement(v,(0,r.pi)({tag:"button"},n,{ref:t}))})),g=(0,o.LM)((function(e,t){var n=e.icon,o=e.onIcon,a=(e.foundationRef,(0,r._T)(e,["icon","onIcon","foundationRef"])),s=function(e){var t=(0,l.j)({props:e,elements:{rootEl:!0},foundation:function(e){var t=e.rootEl,n=e.emit;return new p({addClass:function(e){return t.addClass(e)},removeClass:function(e){return t.removeClass(e)},hasClass:function(e){return t.hasClass(e)},setAttr:function(e,n){return t.setProp(e,n)},notifyChange:function(e){return n("onChange",e)}})}}),n=t.foundation,o=(0,r._T)(t,["foundation"]),a=o.rootEl,s=void 0!==e.checked?e.checked:n.isOn();return(0,i.useEffect)((function(){s!==n.isOn()&&n.toggle(s)}),[n,s]),a.setProp("onClick",(function(t){var r;null===(r=e.onClick)||void 0===r||r.call(e,t),n.handleClick()}),!0),(0,r.pi)({isOn:s,foundation:n},o)}(e),u=s.isOn,c=s.rootEl;return i.createElement(b,(0,r.pi)({"aria-pressed":u},c.props(a),{tag:"button",ref:t}),i.createElement(y,{icon:n}),i.createElement(y,{icon:o,on:!0}))})),v=(0,s.U8)({surface:!1,unbounded:!0})((0,o.LM)((function(e,t){var n=e.checked,s=e.label,l=(e.foundationRef,(0,r._T)(e,["checked","label","foundationRef"])),u=(0,o.oC)(e,["mdc-icon-button",{"mdc-icon-button--on":n}]);return i.createElement(a.Icon,(0,r.pi)({role:"button",tabIndex:0,"aria-label":s},l,{className:u,ref:t}))}))),b=(0,s.U8)({surface:!1,unbounded:!0})((0,o.LM)((function(e,t){var n=e.checked,a=(0,r._T)(e,["checked"]),s=(0,o.oC)(e,["mdc-icon-button",{"mdc-icon-button--on":n}]);return i.createElement(o.Vp,(0,r.pi)({tag:"button",role:"button",tabIndex:0},a,{className:s,ref:t}))}))),y=i.memo((function(e){e.on;var t=(0,r._T)(e,["on"]),n=(0,o.oC)(e,["mdc-icon-button__icon",{"mdc-icon-button__icon--on":e.on}]);return i.createElement(a.Icon,(0,r.pi)({},t,{className:n}))}))},function(e,t,n){"use strict";n.r(t),n.d(t,{Menu:function(){return r.v2},MenuItem:function(){return r.sN},MenuItems:function(){return r.sd},MenuSurface:function(){return i.g},MenuSurfaceAnchor:function(){return i.W},SimpleMenu:function(){return r.O2},SimpleMenuSurface:function(){return r.jf}});var r=n(151),i=n(148)},function(e,t,n){"use strict";n.d(t,{v2:function(){return F},sN:function(){return D},sd:function(){return N},O2:function(){return W},jf:function(){return H}});var r=n(127),i=n(0),o=n(145),a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},a(e,t)};var s=function(){return s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},s.apply(this,arguments)};var l=n(160),u=n(172),c={LIST_ITEM_ACTIVATED_CLASS:"mdc-list-item--activated",LIST_ITEM_CLASS:"mdc-list-item",LIST_ITEM_DISABLED_CLASS:"mdc-list-item--disabled",LIST_ITEM_SELECTED_CLASS:"mdc-list-item--selected",LIST_ITEM_TEXT_CLASS:"mdc-list-item__text",LIST_ITEM_PRIMARY_TEXT_CLASS:"mdc-list-item__primary-text",ROOT:"mdc-list"},d={ACTION_EVENT:"MDCList:action",ARIA_CHECKED:"aria-checked",ARIA_CHECKED_CHECKBOX_SELECTOR:'[role="checkbox"][aria-checked="true"]',ARIA_CHECKED_RADIO_SELECTOR:'[role="radio"][aria-checked="true"]',ARIA_CURRENT:"aria-current",ARIA_DISABLED:"aria-disabled",ARIA_ORIENTATION:"aria-orientation",ARIA_ORIENTATION_HORIZONTAL:"horizontal",ARIA_ROLE_CHECKBOX_SELECTOR:'[role="checkbox"]',ARIA_SELECTED:"aria-selected",CHECKBOX_RADIO_SELECTOR:'input[type="checkbox"], input[type="radio"]',CHECKBOX_SELECTOR:'input[type="checkbox"]',CHILD_ELEMENTS_TO_TOGGLE_TABINDEX:"\n ."+c.LIST_ITEM_CLASS+" button:not(:disabled),\n ."+c.LIST_ITEM_CLASS+" a\n ",FOCUSABLE_CHILD_ELEMENTS:"\n ."+c.LIST_ITEM_CLASS+" button:not(:disabled),\n ."+c.LIST_ITEM_CLASS+" a,\n ."+c.LIST_ITEM_CLASS+' input[type="radio"]:not(:disabled),\n .'+c.LIST_ITEM_CLASS+' input[type="checkbox"]:not(:disabled)\n ',RADIO_SELECTOR:'input[type="radio"]'},f={UNSET_INDEX:-1,TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS:300},h=["input","button","textarea","select"],p=function(e){var t=e.target;if(t){var n=(""+t.tagName).toLowerCase();-1===h.indexOf(n)&&e.preventDefault()}};function m(e,t){var n,r=e.nextChar,i=e.focusItemAtIndex,o=e.sortedIndexByFirstChar,a=e.focusedItemIndex,s=e.skipFocus,l=e.isItemAtIndexDisabled;return clearTimeout(t.bufferClearTimeout),t.bufferClearTimeout=setTimeout((function(){v(t)}),f.TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS),t.typeaheadBuffer=t.typeaheadBuffer+r,n=1===t.typeaheadBuffer.length?function(e,t,n,r){var i=r.typeaheadBuffer[0],o=e.get(i);if(!o)return-1;if(i===r.currentFirstChar&&o[r.sortedIndexCursor].index===t){r.sortedIndexCursor=(r.sortedIndexCursor+1)%o.length;var a=o[r.sortedIndexCursor].index;if(!n(a))return a}r.currentFirstChar=i;var s,l=-1;for(s=0;s<o.length;s++)if(!n(o[s].index)){l=s;break}for(;s<o.length;s++)if(o[s].index>t&&!n(o[s].index)){l=s;break}if(-1!==l)return r.sortedIndexCursor=l,o[r.sortedIndexCursor].index;return-1}(o,a,l,t):function(e,t,n){var r=n.typeaheadBuffer[0],i=e.get(r);if(!i)return-1;var o=i[n.sortedIndexCursor];if(0===o.text.lastIndexOf(n.typeaheadBuffer,0)&&!t(o.index))return o.index;var a=(n.sortedIndexCursor+1)%i.length,s=-1;for(;a!==n.sortedIndexCursor;){var l=i[a],u=0===l.text.lastIndexOf(n.typeaheadBuffer,0),c=!t(l.index);if(u&&c){s=a;break}a=(a+1)%i.length}if(-1!==s)return n.sortedIndexCursor=s,i[n.sortedIndexCursor].index;return-1}(o,l,t),-1===n||s||i(n),n}function g(e){return e.typeaheadBuffer.length>0}function v(e){e.typeaheadBuffer=""}function b(e,t){var n=e.event,r=e.isTargetListItem,i=e.focusedItemIndex,o=e.focusItemAtIndex,a=e.sortedIndexByFirstChar,s=e.isItemAtIndexDisabled,l="ArrowLeft"===(0,u.ku)(n),c="ArrowUp"===(0,u.ku)(n),d="ArrowRight"===(0,u.ku)(n),f="ArrowDown"===(0,u.ku)(n),h="Home"===(0,u.ku)(n),v="End"===(0,u.ku)(n),b="Enter"===(0,u.ku)(n),y="Spacebar"===(0,u.ku)(n);return l||c||d||f||h||v||b?-1:y||1!==n.key.length?y?(r&&p(n),r&&g(t)?m({focusItemAtIndex:o,focusedItemIndex:i,nextChar:" ",sortedIndexByFirstChar:a,skipFocus:!1,isItemAtIndexDisabled:s},t):-1):-1:(p(n),m({focusItemAtIndex:o,focusedItemIndex:i,nextChar:n.key.toLowerCase(),sortedIndexByFirstChar:a,skipFocus:!1,isItemAtIndexDisabled:s},t))}var y=function(e){function t(n){var r=e.call(this,s(s({},t.defaultAdapter),n))||this;return r.wrapFocus_=!1,r.isVertical_=!0,r.isSingleSelectionList_=!1,r.selectedIndex_=f.UNSET_INDEX,r.focusedItemIndex=f.UNSET_INDEX,r.useActivatedClass_=!1,r.ariaCurrentAttrValue_=null,r.isCheckboxList_=!1,r.isRadioList_=!1,r.hasTypeahead=!1,r.typeaheadState={bufferClearTimeout:0,currentFirstChar:"",sortedIndexCursor:0,typeaheadBuffer:""},r.sortedIndexByFirstChar=new Map,r}return function(e,t){function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),Object.defineProperty(t,"strings",{get:function(){return d},enumerable:!0,configurable:!0}),Object.defineProperty(t,"cssClasses",{get:function(){return c},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return f},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClassForElementIndex:function(){},focusItemAtIndex:function(){},getAttributeForElementIndex:function(){return null},getFocusedElementIndex:function(){return 0},getListItemCount:function(){return 0},hasCheckboxAtIndex:function(){return!1},hasRadioAtIndex:function(){return!1},isCheckboxCheckedAtIndex:function(){return!1},isFocusInsideList:function(){return!1},isRootFocused:function(){return!1},listItemAtIndexHasClass:function(){return!1},notifyAction:function(){},removeClassForElementIndex:function(){},setAttributeForElementIndex:function(){},setCheckedCheckboxOrRadioAtIndex:function(){},setTabIndexForListItemChildren:function(){},getPrimaryTextAtIndex:function(){return""}}},enumerable:!0,configurable:!0}),t.prototype.layout=function(){0!==this.adapter.getListItemCount()&&(this.adapter.hasCheckboxAtIndex(0)?this.isCheckboxList_=!0:this.adapter.hasRadioAtIndex(0)?this.isRadioList_=!0:this.maybeInitializeSingleSelection(),this.hasTypeahead&&(this.sortedIndexByFirstChar=this.typeaheadInitSortedIndex()))},t.prototype.setWrapFocus=function(e){this.wrapFocus_=e},t.prototype.setVerticalOrientation=function(e){this.isVertical_=e},t.prototype.setSingleSelection=function(e){this.isSingleSelectionList_=e,e&&this.maybeInitializeSingleSelection()},t.prototype.maybeInitializeSingleSelection=function(){for(var e=0;e<this.adapter.getListItemCount();e++){var t=this.adapter.listItemAtIndexHasClass(e,c.LIST_ITEM_SELECTED_CLASS),n=this.adapter.listItemAtIndexHasClass(e,c.LIST_ITEM_ACTIVATED_CLASS);if(t||n)return n&&this.setUseActivatedClass(!0),this.isSingleSelectionList_=!0,void(this.selectedIndex_=e)}},t.prototype.setHasTypeahead=function(e){this.hasTypeahead=e,e&&(this.sortedIndexByFirstChar=this.typeaheadInitSortedIndex())},t.prototype.isTypeaheadInProgress=function(){return this.hasTypeahead&&g(this.typeaheadState)},t.prototype.setUseActivatedClass=function(e){this.useActivatedClass_=e},t.prototype.getSelectedIndex=function(){return this.selectedIndex_},t.prototype.setSelectedIndex=function(e){this.isIndexValid_(e)&&(this.isCheckboxList_?this.setCheckboxAtIndex_(e):this.isRadioList_?this.setRadioAtIndex_(e):this.setSingleSelectionAtIndex_(e))},t.prototype.handleFocusIn=function(e,t){t>=0&&(this.focusedItemIndex=t,this.adapter.setAttributeForElementIndex(t,"tabindex","0"),this.adapter.setTabIndexForListItemChildren(t,"0"))},t.prototype.handleFocusOut=function(e,t){var n=this;t>=0&&(this.adapter.setAttributeForElementIndex(t,"tabindex","-1"),this.adapter.setTabIndexForListItemChildren(t,"-1")),setTimeout((function(){n.adapter.isFocusInsideList()||n.setTabindexToFirstSelectedOrFocusedItem()}),0)},t.prototype.handleKeydown=function(e,t,n){var r=this,i="ArrowLeft"===(0,u.ku)(e),o="ArrowUp"===(0,u.ku)(e),a="ArrowRight"===(0,u.ku)(e),s="ArrowDown"===(0,u.ku)(e),l="Home"===(0,u.ku)(e),d="End"===(0,u.ku)(e),f="Enter"===(0,u.ku)(e),h="Spacebar"===(0,u.ku)(e);if(this.adapter.isRootFocused()){o||d?(e.preventDefault(),this.focusLastElement()):(s||l)&&(e.preventDefault(),this.focusFirstElement()),this.hasTypeahead&&b({event:e,focusItemAtIndex:function(e){r.focusItemAtIndex(e)},focusedItemIndex:-1,isTargetListItem:t,sortedIndexByFirstChar:this.sortedIndexByFirstChar,isItemAtIndexDisabled:function(e){return r.adapter.listItemAtIndexHasClass(e,c.LIST_ITEM_DISABLED_CLASS)}},this.typeaheadState)}else{var m=this.adapter.getFocusedElementIndex();if(!(-1===m&&(m=n)<0)){if(this.isVertical_&&s||!this.isVertical_&&a)p(e),this.focusNextElement(m);else if(this.isVertical_&&o||!this.isVertical_&&i)p(e),this.focusPrevElement(m);else if(l)p(e),this.focusFirstElement();else if(d)p(e),this.focusLastElement();else if((f||h)&&t){var g=e.target;if(g&&"A"===g.tagName&&f)return;if(p(e),this.adapter.listItemAtIndexHasClass(m,c.LIST_ITEM_DISABLED_CLASS))return;this.isTypeaheadInProgress()||(this.isSelectableList_()&&this.setSelectedIndexOnAction_(m),this.adapter.notifyAction(m))}if(this.hasTypeahead)b({event:e,focusItemAtIndex:function(e){r.focusItemAtIndex(e)},focusedItemIndex:this.focusedItemIndex,isTargetListItem:t,sortedIndexByFirstChar:this.sortedIndexByFirstChar,isItemAtIndexDisabled:function(e){return r.adapter.listItemAtIndexHasClass(e,c.LIST_ITEM_DISABLED_CLASS)}},this.typeaheadState)}}},t.prototype.handleClick=function(e,t){e!==f.UNSET_INDEX&&(this.adapter.listItemAtIndexHasClass(e,c.LIST_ITEM_DISABLED_CLASS)||(this.isSelectableList_()&&this.setSelectedIndexOnAction_(e,t),this.adapter.notifyAction(e)))},t.prototype.focusNextElement=function(e){var t=e+1;if(t>=this.adapter.getListItemCount()){if(!this.wrapFocus_)return e;t=0}return this.focusItemAtIndex(t),t},t.prototype.focusPrevElement=function(e){var t=e-1;if(t<0){if(!this.wrapFocus_)return e;t=this.adapter.getListItemCount()-1}return this.focusItemAtIndex(t),t},t.prototype.focusFirstElement=function(){return this.focusItemAtIndex(0),0},t.prototype.focusLastElement=function(){var e=this.adapter.getListItemCount()-1;return this.focusItemAtIndex(e),e},t.prototype.setEnabled=function(e,t){this.isIndexValid_(e)&&(t?(this.adapter.removeClassForElementIndex(e,c.LIST_ITEM_DISABLED_CLASS),this.adapter.setAttributeForElementIndex(e,d.ARIA_DISABLED,"false")):(this.adapter.addClassForElementIndex(e,c.LIST_ITEM_DISABLED_CLASS),this.adapter.setAttributeForElementIndex(e,d.ARIA_DISABLED,"true")))},t.prototype.setSingleSelectionAtIndex_=function(e){if(this.selectedIndex_!==e){var t=c.LIST_ITEM_SELECTED_CLASS;this.useActivatedClass_&&(t=c.LIST_ITEM_ACTIVATED_CLASS),this.selectedIndex_!==f.UNSET_INDEX&&this.adapter.removeClassForElementIndex(this.selectedIndex_,t),this.setAriaForSingleSelectionAtIndex_(e),this.setTabindexAtIndex_(e),e!==f.UNSET_INDEX&&this.adapter.addClassForElementIndex(e,t),this.selectedIndex_=e}},t.prototype.setAriaForSingleSelectionAtIndex_=function(e){this.selectedIndex_===f.UNSET_INDEX&&(this.ariaCurrentAttrValue_=this.adapter.getAttributeForElementIndex(e,d.ARIA_CURRENT));var t=null!==this.ariaCurrentAttrValue_,n=t?d.ARIA_CURRENT:d.ARIA_SELECTED;if(this.selectedIndex_!==f.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(this.selectedIndex_,n,"false"),e!==f.UNSET_INDEX){var r=t?this.ariaCurrentAttrValue_:"true";this.adapter.setAttributeForElementIndex(e,n,r)}},t.prototype.setRadioAtIndex_=function(e){this.adapter.setCheckedCheckboxOrRadioAtIndex(e,!0),this.selectedIndex_!==f.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(this.selectedIndex_,d.ARIA_CHECKED,"false"),this.adapter.setAttributeForElementIndex(e,d.ARIA_CHECKED,"true"),this.selectedIndex_=e},t.prototype.setCheckboxAtIndex_=function(e){for(var t=0;t<this.adapter.getListItemCount();t++){var n=!1;e.indexOf(t)>=0&&(n=!0),this.adapter.setCheckedCheckboxOrRadioAtIndex(t,n),this.adapter.setAttributeForElementIndex(t,d.ARIA_CHECKED,n?"true":"false")}this.selectedIndex_=e},t.prototype.setTabindexAtIndex_=function(e){this.focusedItemIndex===f.UNSET_INDEX&&0!==e?this.adapter.setAttributeForElementIndex(0,"tabindex","-1"):this.focusedItemIndex>=0&&this.focusedItemIndex!==e&&this.adapter.setAttributeForElementIndex(this.focusedItemIndex,"tabindex","-1"),this.selectedIndex_ instanceof Array||this.selectedIndex_===e||this.adapter.setAttributeForElementIndex(this.selectedIndex_,"tabindex","-1"),e!==f.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(e,"tabindex","0")},t.prototype.isSelectableList_=function(){return this.isSingleSelectionList_||this.isCheckboxList_||this.isRadioList_},t.prototype.setTabindexToFirstSelectedOrFocusedItem=function(){var e=this.focusedItemIndex>=0?this.focusedItemIndex:0;this.isSelectableList_()&&("number"==typeof this.selectedIndex_&&this.selectedIndex_!==f.UNSET_INDEX?e=this.selectedIndex_:this.selectedIndex_ instanceof Array&&this.selectedIndex_.length>0&&(e=this.selectedIndex_.reduce((function(e,t){return Math.min(e,t)})))),this.setTabindexAtIndex_(e)},t.prototype.isIndexValid_=function(e){var t=this;if(e instanceof Array){if(!this.isCheckboxList_)throw new Error("MDCListFoundation: Array of index is only supported for checkbox based list");return 0===e.length||e.some((function(e){return t.isIndexInRange_(e)}))}if("number"==typeof e){if(this.isCheckboxList_)throw new Error("MDCListFoundation: Expected array of index for checkbox based list but got number: "+e);return this.isIndexInRange_(e)||this.isSingleSelectionList_&&e===f.UNSET_INDEX}return!1},t.prototype.isIndexInRange_=function(e){var t=this.adapter.getListItemCount();return e>=0&&e<t},t.prototype.setSelectedIndexOnAction_=function(e,t){void 0===t&&(t=!0),this.isCheckboxList_?this.toggleCheckboxAtIndex_(e,t):this.setSelectedIndex(e)},t.prototype.toggleCheckboxAtIndex_=function(e,t){var n=this.adapter.isCheckboxCheckedAtIndex(e);t&&(n=!n,this.adapter.setCheckedCheckboxOrRadioAtIndex(e,n)),this.adapter.setAttributeForElementIndex(e,d.ARIA_CHECKED,n?"true":"false");var r=this.selectedIndex_===f.UNSET_INDEX?[]:this.selectedIndex_.slice();n?r.push(e):r=r.filter((function(t){return t!==e})),this.selectedIndex_=r},t.prototype.focusItemAtIndex=function(e){this.adapter.focusItemAtIndex(e),this.focusedItemIndex=e},t.prototype.typeaheadMatchItem=function(e,t,n){var r=this;return void 0===n&&(n=!1),m({focusItemAtIndex:function(e){r.focusItemAtIndex(e)},focusedItemIndex:t||this.focusedItemIndex,nextChar:e,sortedIndexByFirstChar:this.sortedIndexByFirstChar,skipFocus:n,isItemAtIndexDisabled:function(e){return r.adapter.listItemAtIndexHasClass(e,c.LIST_ITEM_DISABLED_CLASS)}},this.typeaheadState)},t.prototype.typeaheadInitSortedIndex=function(){return function(e,t){for(var n=new Map,r=0;r<e;r++){var i=t(r).trim();if(i){var o=i[0].toLowerCase();n.has(o)||n.set(o,[]),n.get(o).push({text:i.toLowerCase(),index:r})}}return n.forEach((function(e){e.sort((function(e,t){return e.index-t.index}))})),n}(this.adapter.getListItemCount(),this.adapter.getPrimaryTextAtIndex)},t.prototype.clearTypeaheadBuffer=function(){v(this.typeaheadState)},t}(l.K),_=n(161),w=n(158),x=(0,o.LM)((function(e,t){var n=e.dense,a=e.twoLine,s=e.avatarList,l=(e.apiRef,e.nonInteractive),u=(e.onAction,e.foundationRef,e.wrapFocus),c=(0,r._T)(e,["dense","twoLine","avatarList","apiRef","nonInteractive","onAction","foundationRef","wrapFocus"]),d=function(e){var t=(0,i.useCallback)((function(e){return e?[].slice.call(e.querySelectorAll("."+y.cssClasses.LIST_ITEM_CLASS)):[]}),[]),n=(0,w.j)({props:e,api:function(e){var n=e.rootEl,r=e.foundation,i=r.adapter;return{listElements:function(){return t(n.ref)},focusRoot:function(){return n.ref&&n.ref.focus()},getClasses:function(){return y.cssClasses.LIST_ITEM_CLASS},addClassToElementIndex:i.addClassForElementIndex,removeClassFromElementAtIndex:i.removeClassForElementIndex,setAttributeForElementIndex:i.setAttributeForElementIndex,getListItemCount:i.getListItemCount,focusItemAtIndex:i.focusItemAtIndex,selectedIndex:y.numbers.UNSET_INDEX,setSelectedIndex:function(e){r.setSelectedIndex(e)}}},elements:{rootEl:!0},foundation:function(e){var n=e.rootEl,r=e.emit;return new y({getListItemCount:function(){return t(n.ref).length},getFocusedElementIndex:function(){return t(n.ref).indexOf(document.activeElement)},listItemAtIndexHasClass:function(e,r){var i=t(n.ref)[e];return!!(null==i?void 0:i.classList.contains(r))},setAttributeForElementIndex:function(e,r,i){"tabindex"===r&&(r="tabIndex");var o=t(n.ref)[e];o&&o.setAttribute(r,String(i))},addClassForElementIndex:function(e,r){var i=t(n.ref)[e];i&&i.classList.add(r)},removeClassForElementIndex:function(e,r){var i=t(n.ref)[e];i&&i.classList.remove(r)},focusItemAtIndex:function(e){var r=t(n.ref)[e];r&&r.focus()},setTabIndexForListItemChildren:function(e,r){var i=t(n.ref)[e];[].slice.call(i.querySelectorAll(y.strings.CHILD_ELEMENTS_TO_TOGGLE_TABINDEX)).forEach((function(e){return e.setAttribute("tabindex",String(r))}))},hasCheckboxAtIndex:function(e){return!!t(n.ref)[e].querySelector(y.strings.CHECKBOX_SELECTOR)},hasRadioAtIndex:function(e){return!!t(n.ref)[e].querySelector(y.strings.RADIO_SELECTOR)},isCheckboxCheckedAtIndex:function(e){var r=t(n.ref)[e].querySelector(y.strings.CHECKBOX_SELECTOR);return!!r&&r.checked},setCheckedCheckboxOrRadioAtIndex:function(e,r){var i=t(n.ref)[e].querySelector(y.strings.CHECKBOX_RADIO_SELECTOR);if(i){i.checked=r;var o=document.createEvent("Event");o.initEvent("change",!0,!0),i.dispatchEvent(o)}},notifyAction:function(e){r("onAction",{index:e})},isFocusInsideList:function(){var e;return!!(null===(e=n.ref)||void 0===e?void 0:e.contains(document.activeElement))},isRootFocused:function(){return document.activeElement===n.ref}})}}),o=n.foundation,a=(0,r._T)(n,["foundation"]),s=a.rootEl,l=(0,i.useCallback)((function(e){for(var n=e.target,r=-1;n&&!n.classList.contains(y.cssClasses.LIST_ITEM_CLASS)&&!n.classList.contains(y.cssClasses.ROOT);)n=n.parentElement;return n&&n.classList.contains(y.cssClasses.LIST_ITEM_CLASS)&&(r=t(s.ref).indexOf(n)),r}),[t,s.ref]),u=e.onClick,c=(0,i.useCallback)((function(e){null==u||u(e);var t=l(e),n=!(0,_.w)(e.target,y.strings.CHECKBOX_RADIO_SELECTOR);o.handleClick(t,n)}),[l,o,u]),d=e.onKeyDown,f=(0,i.useCallback)((function(e){null==d||d(e);var t=l(e);t>=0&&o.handleKeydown(e,e.target instanceof Element&&e.target.classList.contains(y.cssClasses.LIST_ITEM_CLASS),t)}),[l,o,d]),h=e.onFocus,p=(0,i.useCallback)((function(e){null==h||h(e),o.handleFocusIn(e,l(e))}),[l,o,h]),m=e.onBlur,g=(0,i.useCallback)((function(e){null==m||m(e),o.handleFocusOut(e,l(e))}),[l,o,m]);return s.setProp("onClick",c,!0),s.setProp("onKeyDown",f,!0),s.setProp("onFocus",p,!0),s.setProp("onBlur",g,!0),(0,i.useEffect)((function(){o.layout()}),[o]),(0,i.useEffect)((function(){o.setWrapFocus(e.wrapFocus||void 0===e.wrapFocus)}),[o,e.wrapFocus]),(0,i.useEffect)((function(){o.setVerticalOrientation(e.vertical||void 0===e.vertical)}),[o,e.vertical]),(0,r.pi)({},a)}((0,r.pi)((0,r.pi)({},e),{wrapFocus:u})).rootEl,f=(0,o.oC)(e,["mdc-list",{"mdc-list--dense":n,"mdc-list--two-line":a,"mdc-list--avatar-list":s,"mdc-list--non-interactive":l}]);return i.createElement(o.Vp,(0,r.pi)({tag:"ul"},c,{element:d,className:f,ref:t}))})),C=n(173),E=n(171),S=n(22),T=n.n(S),A=n(148),k=function(e,t){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},k(e,t)};var O=function(){return O=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},O.apply(this,arguments)};var I,L=n(174),R={MENU_SELECTED_LIST_ITEM:"mdc-menu-item--selected",MENU_SELECTION_GROUP:"mdc-menu__selection-group",ROOT:"mdc-menu"},M={ARIA_CHECKED_ATTR:"aria-checked",ARIA_DISABLED_ATTR:"aria-disabled",CHECKBOX_SELECTOR:'input[type="checkbox"]',LIST_SELECTOR:".mdc-list",SELECTED_EVENT:"MDCMenu:selected"},P={FOCUS_ROOT_INDEX:-1};!function(e){e[e.NONE=0]="NONE",e[e.LIST_ROOT=1]="LIST_ROOT",e[e.FIRST_ITEM=2]="FIRST_ITEM",e[e.LAST_ITEM=3]="LAST_ITEM"}(I||(I={}));
87
+ /**
88
+ * @license
89
+ * Copyright 2018 Google Inc.
90
+ *
91
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
92
+ * of this software and associated documentation files (the "Software"), to deal
93
+ * in the Software without restriction, including without limitation the rights
94
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
95
+ * copies of the Software, and to permit persons to whom the Software is
96
+ * furnished to do so, subject to the following conditions:
97
+ *
98
+ * The above copyright notice and this permission notice shall be included in
99
+ * all copies or substantial portions of the Software.
100
+ *
101
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
102
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
103
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
104
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
105
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
106
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
107
+ * THE SOFTWARE.
108
+ */
109
+ var $=function(e){function t(n){var r=e.call(this,O(O({},t.defaultAdapter),n))||this;return r.closeAnimationEndTimerId_=0,r.defaultFocusState_=I.LIST_ROOT,r}return function(e,t){function n(){this.constructor=e}k(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return R},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return M},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return P},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClassToElementAtIndex:function(){},removeClassFromElementAtIndex:function(){},addAttributeToElementAtIndex:function(){},removeAttributeFromElementAtIndex:function(){},elementContainsClass:function(){return!1},closeSurface:function(){},getElementIndex:function(){return-1},notifySelected:function(){},getMenuItemCount:function(){return 0},focusItemAtIndex:function(){},focusListRoot:function(){},getSelectedSiblingOfItemAtIndex:function(){return-1},isSelectableItemAtIndex:function(){return!1}}},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this.closeAnimationEndTimerId_&&clearTimeout(this.closeAnimationEndTimerId_),this.adapter.closeSurface()},t.prototype.handleKeydown=function(e){var t=e.key,n=e.keyCode;("Tab"===t||9===n)&&this.adapter.closeSurface(!0)},t.prototype.handleItemAction=function(e){var t=this,n=this.adapter.getElementIndex(e);n<0||(this.adapter.notifySelected({index:n}),this.adapter.closeSurface(),this.closeAnimationEndTimerId_=setTimeout((function(){var n=t.adapter.getElementIndex(e);n>=0&&t.adapter.isSelectableItemAtIndex(n)&&t.setSelectedIndex(n)}),L.k.numbers.TRANSITION_CLOSE_DURATION))},t.prototype.handleMenuSurfaceOpened=function(){switch(this.defaultFocusState_){case I.FIRST_ITEM:this.adapter.focusItemAtIndex(0);break;case I.LAST_ITEM:this.adapter.focusItemAtIndex(this.adapter.getMenuItemCount()-1);break;case I.NONE:break;default:this.adapter.focusListRoot()}},t.prototype.setDefaultFocusState=function(e){this.defaultFocusState_=e},t.prototype.setSelectedIndex=function(e){if(this.validatedIndex_(e),!this.adapter.isSelectableItemAtIndex(e))throw new Error("MDCMenuFoundation: No selection group at specified index.");var t=this.adapter.getSelectedSiblingOfItemAtIndex(e);t>=0&&(this.adapter.removeAttributeFromElementAtIndex(t,M.ARIA_CHECKED_ATTR),this.adapter.removeClassFromElementAtIndex(t,R.MENU_SELECTED_LIST_ITEM)),this.adapter.addClassToElementAtIndex(e,R.MENU_SELECTED_LIST_ITEM),this.adapter.addAttributeToElementAtIndex(e,M.ARIA_CHECKED_ATTR,"true")},t.prototype.setEnabled=function(e,t){this.validatedIndex_(e),t?(this.adapter.removeClassFromElementAtIndex(e,c.LIST_ITEM_DISABLED_CLASS),this.adapter.addAttributeToElementAtIndex(e,M.ARIA_DISABLED_ATTR,"false")):(this.adapter.addClassToElementAtIndex(e,c.LIST_ITEM_DISABLED_CLASS),this.adapter.addAttributeToElementAtIndex(e,M.ARIA_DISABLED_ATTR,"true"))},t.prototype.validatedIndex_=function(e){var t=this.adapter.getMenuItemCount();if(!(e>=0&&e<t))throw new Error("MDCMenuFoundation: No list item at specified index.")},t}(l.K),N=(0,o.LM)((function(e,t){var n=(0,o.oC)(e,["mdc-list mdc-menu__items"]);return i.createElement(x,(0,r.pi)({role:"menu"},e,{className:n,ref:t}))}));N.displayName="MenuItems";var D=(0,o.LM)((function(e,t){return i.createElement(C.HC,(0,r.pi)({role:"menuitem",tabIndex:0},e,{ref:t}))})),j=function(e){return"MenuItems"===(0,E.G)(e)},F=(0,o.LM)((function(e,t){var n=e.children,o=(e.focusOnOpen,e.onSelect,e.foundationRef,(0,r._T)(e,["children","focusOnOpen","onSelect","foundationRef"])),a=function(e){var t=(0,i.useRef)(),n=(0,i.useRef)(),o=(0,i.useCallback)((function(){var e;return(null===(e=n.current)||void 0===e?void 0:e.listElements())||[]}),[]),a=(0,w.j)({props:(0,r.pi)((0,r.pi)({},e),{apiRef:void 0}),elements:{rootEl:!0},foundation:function(e){var i=e.emit;return new $({addClassToElementAtIndex:function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return null===(e=n.current)||void 0===e?void 0:e.addClassToElementIndex.apply(e,(0,r.ev)([],(0,r.CR)(t)))},removeClassFromElementAtIndex:function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return null===(e=n.current)||void 0===e?void 0:e.removeClassFromElementAtIndex.apply(e,(0,r.ev)([],(0,r.CR)(t)))},addAttributeToElementAtIndex:function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return null===(e=n.current)||void 0===e?void 0:e.setAttributeForElementIndex.apply(e,(0,r.ev)([],(0,r.CR)(t)))},removeAttributeFromElementAtIndex:function(e,t){o()[e].removeAttribute(t)},elementContainsClass:function(e,t){return e.classList.contains(t)},closeSurface:function(){var e;null===(e=t.current)||void 0===e||e.setOpen(!1)},getElementIndex:function(e){return o().indexOf(e)},notifySelected:function(e){return i("onSelect",{index:e.index,item:o()[e.index]})},getMenuItemCount:function(){var e;return(null===(e=n.current)||void 0===e?void 0:e.getListItemCount())||0},focusItemAtIndex:function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return null===(e=n.current)||void 0===e?void 0:e.focusItemAtIndex.apply(e,(0,r.ev)([],(0,r.CR)(t)))},focusListRoot:function(){var e;return null===(e=n.current)||void 0===e?void 0:e.focusRoot()}})}}),s=a.foundation,l=(0,r._T)(a,["foundation"]),u=l.rootEl,c=e.onClick,d=(0,i.useCallback)((function(e){null==c||c(e);var t=(0,_.o)(e.target,".mdc-list-item");t&&s.handleItemAction(t)}),[s,c]),f=e.onKeyDown,h=(0,i.useCallback)((function(e){null==f||f(e),s.handleKeydown(e),13===e.which&&e.target instanceof Element&&n.current&&e.target.classList.contains(n.current.getClasses())&&s.handleItemAction(e.target)}),[s,f]),p=e.onOpen,m=e.focusOnOpen,g=(0,i.useCallback)((function(e){var t=o();(m||void 0===m)&&t.length>0&&!t.some((function(e){return e===document.activeElement}))&&t[0].focus(),null==p||p(e)}),[p,m,o]);u.setProp("onKeyDown",h,!0),u.setProp("onClick",d,!0),u.setProp("onOpen",g,!0);var v=n.current&&t.current&&e.apiRef;return(0,i.useEffect)((function(){n.current&&t.current&&e.apiRef&&e.apiRef((0,r.pi)((0,r.pi)((0,r.pi)({},n.current),t.current),{items:o}))}),[v,o]),(0,r.pi)({setListApi:function(e){n.current=e},setMenuSurfaceApi:function(e){t.current=e}},l)}(e),s=a.rootEl,l=a.setListApi,u=a.setMenuSurfaceApi,c=(i.Children.map(n,j)||[]).every((function(e){return!1===e})),d={apiRef:l};return i.createElement(A.g,(0,r.pi)({},s.props(o),{"aria-hidden":!o.open,className:T()("mdc-menu",o.className),apiRef:u,ref:t}),c?i.createElement(N,(0,r.pi)({},d),n):i.Children.map(n,(function(e){return j(e)?i.cloneElement(e,(0,r.pi)((0,r.pi)({},i.isValidElement(e)?e.props:{}),d)):e})))})),B=function(e){return function(t){var n=(0,r.CR)((0,i.useState)(!!t.open),2),o=n[0],a=n[1];(0,i.useEffect)((function(){void 0!==t.open&&t.open!==o&&a(!!t.open)}),[t.open,o]);var s=t.handle,l=t.onClose,u=t.children,c=t.rootProps,d=void 0===c?{}:c,f=t.open,h=(t.foundationRef,(0,r._T)(t,["handle","onClose","children","rootProps","open","foundationRef"])),p=i.cloneElement(s,(0,r.pi)((0,r.pi)({},s.props),{onClick:function(e){a(!o),s.props.onClick&&s.props.onClick(e)}})),m=e;return i.createElement(A.W,(0,r.pi)({},d),i.createElement(m,(0,r.pi)({},h,{onClose:function(e){a(!!f||!1),null==l||l(e)},open:o}),u),p)}},W=B(F),H=B(A.g)},function(e,t,n){"use strict";n.r(t),n.d(t,{Select:function(){return N},SelectHelperText:function(){return D}});var r=n(127),i=n(0),o=n(145),a=n(168),s=n(177),l=n(179),u=n(178),c=n(151),d=n(173),f=n(162),h=n(158),p=n(176),m=function(e,t){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},m(e,t)};function g(e,t){function n(){this.constructor=e}m(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var v=function(){return v=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},v.apply(this,arguments)};var b=n(160),y=n(172),_=n(175),w={ACTIVATED:"mdc-select--activated",DISABLED:"mdc-select--disabled",FOCUSED:"mdc-select--focused",INVALID:"mdc-select--invalid",MENU_INVALID:"mdc-select__menu--invalid",OUTLINED:"mdc-select--outlined",REQUIRED:"mdc-select--required",ROOT:"mdc-select",WITH_LEADING_ICON:"mdc-select--with-leading-icon"},x={ARIA_CONTROLS:"aria-controls",ARIA_DESCRIBEDBY:"aria-describedby",ARIA_SELECTED_ATTR:"aria-selected",CHANGE_EVENT:"MDCSelect:change",HIDDEN_INPUT_SELECTOR:'input[type="hidden"]',LABEL_SELECTOR:".mdc-floating-label",LEADING_ICON_SELECTOR:".mdc-select__icon",LINE_RIPPLE_SELECTOR:".mdc-line-ripple",MENU_SELECTOR:".mdc-select__menu",OUTLINE_SELECTOR:".mdc-notched-outline",SELECTED_TEXT_SELECTOR:".mdc-select__selected-text",SELECT_ANCHOR_SELECTOR:".mdc-select__anchor",VALUE_ATTR:"data-value"},C={LABEL_SCALE:.75,UNSET_INDEX:-1},E=function(e){function t(n,r){void 0===r&&(r={});var i=e.call(this,v(v({},t.defaultAdapter),n))||this;return i.disabled=!1,i.isMenuOpen=!1,i.useDefaultValidation=!0,i.customValidity=!0,i.lastSelectedIndex=C.UNSET_INDEX,i.leadingIcon=r.leadingIcon,i.helperText=r.helperText,i}return g(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return w},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return C},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return x},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},activateBottomLine:function(){},deactivateBottomLine:function(){},getSelectedIndex:function(){return-1},setSelectedIndex:function(){},hasLabel:function(){return!1},floatLabel:function(){},getLabelWidth:function(){return 0},setLabelRequired:function(){},hasOutline:function(){return!1},notchOutline:function(){},closeOutline:function(){},setRippleCenter:function(){},notifyChange:function(){},setSelectedText:function(){},isSelectAnchorFocused:function(){return!1},getSelectAnchorAttr:function(){return""},setSelectAnchorAttr:function(){},removeSelectAnchorAttr:function(){},addMenuClass:function(){},removeMenuClass:function(){},openMenu:function(){},closeMenu:function(){},getAnchorElement:function(){return null},setMenuAnchorElement:function(){},setMenuAnchorCorner:function(){},setMenuWrapFocus:function(){},focusMenuItemAtIndex:function(){},getMenuItemCount:function(){return 0},getMenuItemValues:function(){return[]},getMenuItemTextAtIndex:function(){return""},isTypeaheadInProgress:function(){return!1},typeaheadMatchItem:function(){return-1}}},enumerable:!0,configurable:!0}),t.prototype.getSelectedIndex=function(){return this.adapter.getSelectedIndex()},t.prototype.setSelectedIndex=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1),e>=this.adapter.getMenuItemCount()||(e===C.UNSET_INDEX?this.adapter.setSelectedText(""):this.adapter.setSelectedText(this.adapter.getMenuItemTextAtIndex(e).trim()),this.adapter.setSelectedIndex(e),t&&this.adapter.closeMenu(),n||this.lastSelectedIndex===e||this.handleChange(),this.lastSelectedIndex=e)},t.prototype.setValue=function(e,t){void 0===t&&(t=!1);var n=this.adapter.getMenuItemValues().indexOf(e);this.setSelectedIndex(n,!1,t)},t.prototype.getValue=function(){var e=this.adapter.getSelectedIndex(),t=this.adapter.getMenuItemValues();return e!==C.UNSET_INDEX?t[e]:""},t.prototype.getDisabled=function(){return this.disabled},t.prototype.setDisabled=function(e){this.disabled=e,this.disabled?(this.adapter.addClass(w.DISABLED),this.adapter.closeMenu()):this.adapter.removeClass(w.DISABLED),this.leadingIcon&&this.leadingIcon.setDisabled(this.disabled),this.disabled?this.adapter.removeSelectAnchorAttr("tabindex"):this.adapter.setSelectAnchorAttr("tabindex","0"),this.adapter.setSelectAnchorAttr("aria-disabled",this.disabled.toString())},t.prototype.openMenu=function(){this.adapter.addClass(w.ACTIVATED),this.adapter.openMenu(),this.isMenuOpen=!0,this.adapter.setSelectAnchorAttr("aria-expanded","true")},t.prototype.setHelperTextContent=function(e){this.helperText&&this.helperText.setContent(e)},t.prototype.layout=function(){if(this.adapter.hasLabel()){var e=this.getValue().length>0,t=this.adapter.hasClass(w.FOCUSED),n=e||t,r=this.adapter.hasClass(w.REQUIRED);this.notchOutline(n),this.adapter.floatLabel(n),this.adapter.setLabelRequired(r)}},t.prototype.layoutOptions=function(){var e=this.adapter.getMenuItemValues().indexOf(this.getValue());this.setSelectedIndex(e,!1,!0)},t.prototype.handleMenuOpened=function(){if(0!==this.adapter.getMenuItemValues().length){var e=this.getSelectedIndex(),t=e>=0?e:0;this.adapter.focusMenuItemAtIndex(t)}},t.prototype.handleMenuClosed=function(){this.adapter.removeClass(w.ACTIVATED),this.isMenuOpen=!1,this.adapter.setSelectAnchorAttr("aria-expanded","false"),this.adapter.isSelectAnchorFocused()||this.blur()},t.prototype.handleChange=function(){this.layout(),this.adapter.notifyChange(this.getValue()),this.adapter.hasClass(w.REQUIRED)&&this.useDefaultValidation&&this.setValid(this.isValid())},t.prototype.handleMenuItemAction=function(e){this.setSelectedIndex(e,!0)},t.prototype.handleFocus=function(){this.adapter.addClass(w.FOCUSED),this.layout(),this.adapter.activateBottomLine()},t.prototype.handleBlur=function(){this.isMenuOpen||this.blur()},t.prototype.handleClick=function(e){this.disabled||(this.isMenuOpen?this.adapter.closeMenu():(this.adapter.setRippleCenter(e),this.openMenu()))},t.prototype.handleKeydown=function(e){if(!this.isMenuOpen&&this.adapter.hasClass(w.FOCUSED)){var t=(0,y.ku)(e)===y.Fn.ENTER,n=(0,y.ku)(e)===y.Fn.SPACEBAR,r=(0,y.ku)(e)===y.Fn.ARROW_UP,i=(0,y.ku)(e)===y.Fn.ARROW_DOWN;if(!n&&e.key&&1===e.key.length||n&&this.adapter.isTypeaheadInProgress()){var o=n?" ":e.key,a=this.adapter.typeaheadMatchItem(o,this.getSelectedIndex());return a>=0&&this.setSelectedIndex(a),void e.preventDefault()}(t||n||r||i)&&(r&&this.getSelectedIndex()>0?this.setSelectedIndex(this.getSelectedIndex()-1):i&&this.getSelectedIndex()<this.adapter.getMenuItemCount()-1&&this.setSelectedIndex(this.getSelectedIndex()+1),this.openMenu(),e.preventDefault())}},t.prototype.notchOutline=function(e){if(this.adapter.hasOutline()){var t=this.adapter.hasClass(w.FOCUSED);if(e){var n=C.LABEL_SCALE,r=this.adapter.getLabelWidth()*n;this.adapter.notchOutline(r)}else t||this.adapter.closeOutline()}},t.prototype.setLeadingIconAriaLabel=function(e){this.leadingIcon&&this.leadingIcon.setAriaLabel(e)},t.prototype.setLeadingIconContent=function(e){this.leadingIcon&&this.leadingIcon.setContent(e)},t.prototype.setUseDefaultValidation=function(e){this.useDefaultValidation=e},t.prototype.setValid=function(e){this.useDefaultValidation||(this.customValidity=e),this.adapter.setSelectAnchorAttr("aria-invalid",(!e).toString()),e?(this.adapter.removeClass(w.INVALID),this.adapter.removeMenuClass(w.MENU_INVALID)):(this.adapter.addClass(w.INVALID),this.adapter.addMenuClass(w.MENU_INVALID)),this.syncHelperTextValidity(e)},t.prototype.isValid=function(){return this.useDefaultValidation&&this.adapter.hasClass(w.REQUIRED)&&!this.adapter.hasClass(w.DISABLED)?this.getSelectedIndex()!==C.UNSET_INDEX&&(0!==this.getSelectedIndex()||Boolean(this.getValue())):this.customValidity},t.prototype.setRequired=function(e){e?this.adapter.addClass(w.REQUIRED):this.adapter.removeClass(w.REQUIRED),this.adapter.setSelectAnchorAttr("aria-required",e.toString()),this.adapter.setLabelRequired(e)},t.prototype.getRequired=function(){return"true"===this.adapter.getSelectAnchorAttr("aria-required")},t.prototype.init=function(){var e=this.adapter.getAnchorElement();e&&(this.adapter.setMenuAnchorElement(e),this.adapter.setMenuAnchorCorner(_.Ns.BOTTOM_START)),this.adapter.setMenuWrapFocus(!1),this.setDisabled(this.adapter.hasClass(w.DISABLED)),this.syncHelperTextValidity(!this.adapter.hasClass(w.INVALID)),this.layout(),this.layoutOptions()},t.prototype.blur=function(){this.adapter.removeClass(w.FOCUSED),this.layout(),this.adapter.deactivateBottomLine(),this.adapter.hasClass(w.REQUIRED)&&this.useDefaultValidation&&this.setValid(this.isValid())},t.prototype.syncHelperTextValidity=function(e){if(this.helperText){this.helperText.setValidity(e);var t=this.helperText.isVisible(),n=this.helperText.getId();t&&n?this.adapter.setSelectAnchorAttr(x.ARIA_DESCRIBEDBY,n):this.adapter.removeSelectAnchorAttr(x.ARIA_DESCRIBEDBY)}},t}(b.K),S=function(e){var t,n=(0,r.CR)((0,i.useState)(),2),o=n[0],a=n[1],s=(0,r.CR)((0,i.useState)(!1),2),l=s[0],u=s[1],c=(0,r.CR)((0,i.useState)(0),2),d=c[0],f=c[1],m=(0,r.CR)((0,i.useState)(!1),2),g=m[0],v=m[1],b=(0,r.CR)((0,i.useState)(!1),2),y=b[0],_=b[1],x=(0,r.CR)((0,i.useState)(""),2),C=x[0],S=x[1],T=(0,i.useRef)(-1),A=(0,i.useRef)(),k=(0,i.useRef)(),O=(0,i.useRef)(null),I=(0,i.useRef)(),L=(0,i.useRef)(),R=(0,i.useRef)(!1),M=(0,h.j)({props:e,elements:{rootEl:!0,anchorEl:!0},foundation:function(e){var t,n,i=e.rootEl,o=e.anchorEl,s=e.getProps,l=e.emit,c=function(){return!s().enhanced},d=new E((0,r.pi)((0,r.pi)((0,r.pi)((0,r.pi)({},(t=function(){var e,t;return(c()?Array.apply(null,null===(e=L.current)||void 0===e?void 0:e.options):null===(t=k.current)||void 0===t?void 0:t.items())||[]},n=function(e){return e.getAttribute("data-value")||e.getAttribute("value")||""},{setSelectedText:function(e){S(e)},openMenu:function(){_(!0)},closeMenu:function(){_(!1)},getAnchorElement:function(){return O.current},setMenuAnchorElement:function(e){return t=e,void(O.current=t);var t},setMenuAnchorCorner:function(e){var t;return null===(t=k.current)||void 0===t?void 0:t.setAnchorCorner(e)},setMenuWrapFocus:function(e){},focusMenuItemAtIndex:function(e){var t;return null===(t=k.current)||void 0===t?void 0:t.focusItemAtIndex(e)},getMenuItemCount:function(){return t().length},getMenuItemValues:function(){return t().map(n)||[]},getMenuItemTextAtIndex:function(e){return t()[e].textContent},isSelectAnchorFocused:function(){return!(!o.ref||o.ref!==document.activeElement)},getSelectAnchorAttr:function(e){return o.getProp(e)},setSelectAnchorAttr:function(e,t){return o.setProp(e,t)},removeSelectAnchorAttr:function(e){var t;null===(t=O.current)||void 0===t||t.removeAttribute(e)},addMenuClass:function(e){var t,n,r;return null===(r=null===(n=null===(t=k.current)||void 0===t?void 0:t.getSurfaceElement())||void 0===n?void 0:n.querySelector(".mdc-list-item--activated"))||void 0===r?void 0:r.classList.add(e)},removeMenuClass:function(e){var t,n,r;return null===(r=null===(n=null===(t=k.current)||void 0===t?void 0:t.getSurfaceElement())||void 0===n?void 0:n.querySelector(".mdc-list-item--activated"))||void 0===r?void 0:r.classList.remove(e)},getSelectedIndex:function(){if(c()&&void 0!==L.current)return L.current.selectedOptions[0].index;if(void 0===k.current)return-1;var e=k.current.selectedIndex;return e instanceof Array?e[0]:e},setSelectedIndex:function(e){var t;return null===(t=k.current)||void 0===t?void 0:t.setSelectedIndex(e)}})),{addClass:function(e){i.addClass(e)},removeClass:function(e){i.removeClass(e)},hasClass:function(e){return i.hasClass(e)},isRtl:function(){return i.ref&&"rtl"===window.getComputedStyle(i.ref).getPropertyValue("direction")},setRippleCenter:function(e){f(e)},activateBottomLine:function(){return u(!0)},deactivateBottomLine:function(){return u(!1)},notifyChange:function(e){R.current||l("onChange",{index:T.current,value:e},!0)}}),{hasOutline:function(){return!!s().outlined},notchOutline:function(e){a(e)},closeOutline:function(){a(void 0)}}),{hasLabel:function(){return!!s().label},floatLabel:function(e){v(e)},getLabelWidth:function(){var e;return(null===(e=A.current)||void 0===e?void 0:e.getWidth())||0},setLabelRequired:function(e){var t;return null===(t=A.current)||void 0===t?void 0:t.setRequired(e)}}),{leadingIcon:I.current&&I.current.getFoundation()||void 0}),h=d.adapter;d.layout=function(){!function(){var e=d.getValue();if(h.hasLabel()){var t=!!s().placeholder||e.length>0||T.current>-1,n=h.hasClass(w.FOCUSED),r=t||n,i=h.hasClass(w.REQUIRED);d.notchOutline(r),h.floatLabel(r),h.setLabelRequired(i)}}()},Object.defineProperty(d,"menuItemValues",{get:function(){return h.getMenuItemValues()}});var p=d.init.bind(d);return d.init=function(){R.current=!0,p();var e=String(s().placeholder||"");!d.getValue()&&e&&h.setSelectedText(e),R.current=!1},d}}),P=M.foundation,$=(0,r._T)(M,["foundation"]),N=$.rootEl,D=e.onFocus,j=(0,i.useCallback)((function(e){null==D||D(e),P.handleFocus()}),[D,P]),F=e.onBlur,B=(0,i.useCallback)((function(e){null==F||F(e),P.handleBlur()}),[F,P]),W=e.onChange,H=(0,i.useCallback)((function(e){null==W||W(e),P.handleChange()}),[W,P]),V=(0,i.useCallback)((function(e){var t,n;if(!(null===(t=N.ref)||void 0===t?void 0:t.querySelector(".mdc-select--disabled")))if(null===(n=N.ref)||void 0===n?void 0:n.querySelector(".mdc-menu-surface--open"))P.handleMenuClosed();else{var r=function(e){var t=e.target.getBoundingClientRect();return e.clientX-t.left}(e);N.ref&&N.ref.focus(),P.handleClick(r)}}),[P,N.ref]),U=e.onKeyDown,z=(0,i.useCallback)((function(e){null==U||U(e),P.handleKeydown(e)}),[P,U]),q=(0,i.useCallback)((function(e){T.current=e,P.handleMenuItemAction(e)}),[P]),K=(0,i.useCallback)((function(){P.handleMenuOpened()}),[P]),G=(0,i.useCallback)((function(){_(!1),P.handleMenuClosed()}),[P]),X=P.getValue(),Y=null!==(t=e.value)&&void 0!==t?t:-1===T.current?e.defaultValue:void 0,Q=Array.isArray(e.options)?e.options.length:Object.values(e.options||{}).length;return(0,i.useEffect)((function(){if(R.current=!0,void 0!==Y&&Y!==X){var e=P.menuItemValues.indexOf(Y);if(T.current=e,P.setValue(Y||""),P.menuItemValues.includes(Y)){var t=P.adapter.getMenuItemTextAtIndex(e);S(t)}}(0,p.W)((function(){R.current=!1}))}),[Y,X,Q,P]),(0,i.useEffect)((function(){P.setDisabled(!!e.disabled)}),[P,e.disabled]),(0,i.useEffect)((function(){var e;N.ref&&(null===(e=k.current)||void 0===e||e.setAnchorElement(N.ref))}),[N.ref]),(0,r.pi)({notchWidth:o,menuOpen:y,lineRippleActive:l,lineRippleCenter:d,floatLabel:g,selectedIndex:T.current,selectedTextContent:C,setFloatingLabel:function(e){A.current=e},setMenu:function(e){k.current=e},setLeadingIcon:function(e){I.current=e},setNativeControl:function(e){L.current=e},handleFocus:j,handleBlur:B,handleClick:V,handleChange:H,handleKeydown:z,handleMenuClosed:G,handleMenuOpened:K,handleMenuSelected:q},$)},T=n(191),A={ICON_EVENT:"MDCSelect:icon",ICON_ROLE:"button"},k=["click","keydown"],O=function(e){function t(n){var r=e.call(this,v(v({},t.defaultAdapter),n))||this;return r.savedTabIndex_=null,r.interactionHandler_=function(e){return r.handleInteraction(e)},r}return g(t,e),Object.defineProperty(t,"strings",{get:function(){return A},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{getAttr:function(){return null},setAttr:function(){},removeAttr:function(){},setContent:function(){},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){},notifyIconAction:function(){}}},enumerable:!0,configurable:!0}),t.prototype.init=function(){var e=this;this.savedTabIndex_=this.adapter.getAttr("tabindex"),k.forEach((function(t){e.adapter.registerInteractionHandler(t,e.interactionHandler_)}))},t.prototype.destroy=function(){var e=this;k.forEach((function(t){e.adapter.deregisterInteractionHandler(t,e.interactionHandler_)}))},t.prototype.setDisabled=function(e){this.savedTabIndex_&&(e?(this.adapter.setAttr("tabindex","-1"),this.adapter.removeAttr("role")):(this.adapter.setAttr("tabindex",this.savedTabIndex_),this.adapter.setAttr("role",A.ICON_ROLE)))},t.prototype.setAriaLabel=function(e){this.adapter.setAttr("aria-label",e)},t.prototype.setContent=function(e){this.adapter.setContent(e)},t.prototype.handleInteraction=function(e){var t="Enter"===e.key||13===e.keyCode;("click"===e.type||t)&&this.adapter.notifyIconAction()},t}(b.K),I=function(e){e.apiRef;var t=(0,r._T)(e,["apiRef"]),n=function(e){var t=(0,h.j)({props:e,elements:{rootEl:!0},api:function(e){var t=e.foundation;return{getFoundation:function(){return t}}},foundation:function(e){var t=e.rootEl,n=e.emit;return new O({getAttr:function(e){return t.getProp(e)},setAttr:function(e,n){return t.setProp(e,n)},removeAttr:function(e){return t.removeProp(e)},setContent:function(e){t.ref&&(t.ref.textContent=e)},registerInteractionHandler:function(e,n){return t.addEventListener(e,n)},deregisterInteractionHandler:function(e,n){return t.removeEventListener(e,n)},notifyIconAction:function(){return n("onClick",{},!0)}})}}),n=(t.foundation,(0,r._T)(t,["foundation"]));return(0,r.pi)({},n)}(e).rootEl,a=(0,o.oC)(e,["mdc-select__icon"]);return i.createElement(T.Icon,(0,r.pi)({},n.props((0,r.pi)((0,r.pi)({},t),{className:a}))))},L=function(e){return Array.isArray(e)&&e[0]&&"object"==typeof e[0]?e.map((function(e){if("object"!=typeof e)throw new Error("Encountered non object for Select "+e);return(0,r.pi)((0,r.pi)({},e),{options:L(e.options)})})):Array.isArray(e)?e.map((function(e){return{value:e,label:e}})):"object"==typeof e?Object.keys(e).map((function(t){return{value:t,label:e[t]}})):e},R=function(){return i.createElement("span",{className:"mdc-select__dropdown-icon"},i.createElement(T.Icon,{className:"mdc-select__dropdown-icon-inactive",icon:"arrow_drop_down"}),i.createElement(T.Icon,{className:"mdc-select__dropdown-icon-active",icon:"arrow_drop_up"}))};function M(e){var t=e.selectOptions,n=e.placeholder,o=void 0===n?"":n,a=e.children,s=e.elementRef,l=(e.open,(0,r._T)(e,["selectOptions","placeholder","children","elementRef","open"])),u=function(e){var t=e.label,n=e.option,o=e.index;return i.createElement("option",(0,r.pi)({key:o},n,{value:n.value}),t)},c=!e.value&&!e.defaultValue;return i.createElement("select",(0,r.pi)({tabIndex:0},l,{ref:s,className:"rmwc-select__native-control "+(l.className||"")}),(void 0!==e.placeholder||c)&&i.createElement("option",{value:"",disabled:c},o),!!t&&t.map((function(e,t){var n=e.label,o=e.options,a=(0,r._T)(e,["label","options"]);return o?i.createElement("optgroup",{label:n,key:t},o.map((function(e,t){var n=e.label,i=(0,r._T)(e,["label"]);return u({label:n,option:i,index:t})}))):u({label:n,option:a,index:t})})),a)}var P=(0,f.U8)({surface:!1})((function(e){return i.createElement(o.Vp,(0,r.pi)({},e))}));function $(e){var t=e.selectOptions,n=e.menuApiRef,a=e.value,s=e.placeholder,l=e.children,u=e.selectedIndex,f=(0,r._T)(e,["selectOptions","menuApiRef","value","placeholder","children","selectedIndex"]),h=0,p=(0,o.oC)(e,["mdc-select__menu"]),m=function(e){var t=e.label,n=e.option;return h+=1,i.createElement(c.sN,(0,r.pi)({key:t+"-"+n.value,activated:void 0!==a?n.value===a:h-1===u},n,{"data-value":n.value}),i.createElement("span",{className:"mdc-list-item__text"},t))};return i.createElement(c.v2,(0,r.pi)({},f,{apiRef:n,className:p,focusOnOpen:!0}),!!e.placeholder&&i.createElement(c.sN,{selected:h-1===u,"data-value":"",theme:"textDisabledOnBackground"},i.createElement("span",{className:"mdc-list-item__text"},s)),t.map((function(e,n){var o=e.label,a=e.options,s=(0,r._T)(e,["label","options"]);return a?i.createElement(d.NX,{key:n},o&&i.createElement(d.JV,{theme:"textDisabledOnBackground"},o),i.createElement(c.sd,null,a.map((function(e){var t=e.label,n=(0,r._T)(e,["label"]);return m({label:t,option:n})}))),n<t.length-1&&i.createElement(d.Rx,null)):m({label:o,option:s})})),l)}var N=(0,o.LM)((function(e,t){var n=e.placeholder,c=e.children,d=e.value,f=e.outlined,h=e.label,p=void 0===h?"":h,m=e.options,g=void 0===m?[]:m,v=e.rootProps,b=void 0===v?{}:v,y=e.enhanced,_=e.icon,w=(e.onChange,e.onFocus,e.onBlur,e.onKeyDown,e.invalid),x=(e.inputRef,e.helpText),C=(e.foundationRef,(0,r._T)(e,["placeholder","children","value","outlined","label","options","rootProps","enhanced","icon","onChange","onFocus","onBlur","onKeyDown","invalid","inputRef","helpText","foundationRef"])),E=L(g),T=S(e),A=T.rootEl,k=T.anchorEl,O=T.notchWidth,N=T.menuOpen,j=T.selectedTextContent,F=T.lineRippleActive,B=T.lineRippleCenter,W=T.floatLabel,H=T.setFloatingLabel,V=T.setNativeControl,U=T.setLeadingIcon,z=T.selectedIndex,q=T.setMenu,K=T.handleFocus,G=T.handleBlur,X=T.handleClick,Y=T.handleChange,Q=T.handleKeydown,Z=T.handleMenuClosed,J=T.handleMenuOpened,ee=T.handleMenuSelected,te=(0,a.M)("select",e),ne=(0,o.oC)(e,["mdc-select",{"mdc-select--outlined":!!f,"mdc-select--filled":!f,"mdc-select--required":!!e.required,"mdc-select--invalid":!!w,"mdc-select--with-leading-icon":!!_,"mdc-select--no-label":!p}]),re="object"==typeof y?y:{},ie=void 0!==d?void 0:e.defaultValue||"",oe=i.createElement(s._,{float:W,apiRef:H,htmlFor:te},p);return i.createElement(i.Fragment,null,i.createElement(o.Vp,(0,r.pi)({},b,{element:A,ref:t,className:ne}),i.createElement(P,{className:"mdc-select__anchor",role:"button","aria-haspopup":"listbox",element:k,onFocus:K,onBlur:G,onClick:X,onKeyDown:Q,onChange:Y,tabIndex:y?void 0:-1},!!_&&i.createElement(I,{apiRef:U,icon:_}),f?i.createElement(u._,{notch:O},oe):i.createElement(i.Fragment,null,i.createElement(l.D,{active:F,center:B}),oe),i.createElement("span",{className:"mdc-select__selected-text-container"},i.createElement("span",{className:"mdc-select__selected-text"},j)),i.createElement(R,null),!y&&i.createElement(M,(0,r.pi)({},C,{value:d,children:c,defaultValue:ie,placeholder:n,selectOptions:E,elementRef:V,onFocus:K,onBlur:function(e){G(e),Z()},onChange:function(e){ee(e.currentTarget.selectedIndex)}}))),y&&i.createElement($,(0,r.pi)({},C,re,{anchorCorner:"bottomStart",defaultValue:ie,placeholder:n,open:N,onClose:Z,onOpen:J,onSelect:function(e){ee(e.detail.index)},selectOptions:E,value:d,selectedIndex:z,menuApiRef:q,children:c}))),function(){if(!!!x)return null;var e="object"==typeof x&&!i.isValidElement(x);return x&&e?i.createElement(D,(0,r.pi)({},x)):i.createElement(D,null,x)}())})),D=(0,o.LM)((function(e,t){var n=e.persistent,a=e.validationMsg,s=(0,r._T)(e,["persistent","validationMsg"]),l=(0,o.oC)(e,["mdc-select-helper-text",{"mdc-select-helper-text--persistent":n,"mdc-select-helper-text--validation-msg":a}]);return i.createElement(o.Vp,(0,r.pi)({tag:"p"},s,{className:l,ref:t}))}))},function(e,t,n){"use strict";n.r(t),n.d(t,{TextField:function(){return M},TextFieldHelperText:function(){return j}});var r=n(127),i=n(0),o=n(145),a=n(168),s=n(191),l=n(179),u=n(177),c=n(178),d=n(162),f=n(158),h=function(e,t){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},h(e,t)};function p(e,t){function n(){this.constructor=e}h(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var m=function(){return m=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},m.apply(this,arguments)};var g=n(160),v={ICON_EVENT:"MDCTextField:icon",ICON_ROLE:"button"},b={ROOT:"mdc-text-field__icon"},y=["click","keydown"],_=function(e){function t(n){var r=e.call(this,m(m({},t.defaultAdapter),n))||this;return r.savedTabIndex_=null,r.interactionHandler_=function(e){return r.handleInteraction(e)},r}return p(t,e),Object.defineProperty(t,"strings",{get:function(){return v},enumerable:!0,configurable:!0}),Object.defineProperty(t,"cssClasses",{get:function(){return b},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{getAttr:function(){return null},setAttr:function(){},removeAttr:function(){},setContent:function(){},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){},notifyIconAction:function(){}}},enumerable:!0,configurable:!0}),t.prototype.init=function(){var e=this;this.savedTabIndex_=this.adapter.getAttr("tabindex"),y.forEach((function(t){e.adapter.registerInteractionHandler(t,e.interactionHandler_)}))},t.prototype.destroy=function(){var e=this;y.forEach((function(t){e.adapter.deregisterInteractionHandler(t,e.interactionHandler_)}))},t.prototype.setDisabled=function(e){this.savedTabIndex_&&(e?(this.adapter.setAttr("tabindex","-1"),this.adapter.removeAttr("role")):(this.adapter.setAttr("tabindex",this.savedTabIndex_),this.adapter.setAttr("role",v.ICON_ROLE)))},t.prototype.setAriaLabel=function(e){this.adapter.setAttr("aria-label",e)},t.prototype.setContent=function(e){this.adapter.setContent(e)},t.prototype.handleInteraction=function(e){var t="Enter"===e.key||13===e.keyCode;("click"===e.type||t)&&(e.preventDefault(),this.adapter.notifyIconAction())},t}(g.K),w={ARIA_CONTROLS:"aria-controls",ARIA_DESCRIBEDBY:"aria-describedby",INPUT_SELECTOR:".mdc-text-field__input",LABEL_SELECTOR:".mdc-floating-label",LEADING_ICON_SELECTOR:".mdc-text-field__icon--leading",LINE_RIPPLE_SELECTOR:".mdc-line-ripple",OUTLINE_SELECTOR:".mdc-notched-outline",PREFIX_SELECTOR:".mdc-text-field__affix--prefix",SUFFIX_SELECTOR:".mdc-text-field__affix--suffix",TRAILING_ICON_SELECTOR:".mdc-text-field__icon--trailing"},x={DISABLED:"mdc-text-field--disabled",FOCUSED:"mdc-text-field--focused",HELPER_LINE:"mdc-text-field-helper-line",INVALID:"mdc-text-field--invalid",LABEL_FLOATING:"mdc-text-field--label-floating",NO_LABEL:"mdc-text-field--no-label",OUTLINED:"mdc-text-field--outlined",ROOT:"mdc-text-field",TEXTAREA:"mdc-text-field--textarea",WITH_LEADING_ICON:"mdc-text-field--with-leading-icon",WITH_TRAILING_ICON:"mdc-text-field--with-trailing-icon"},C={LABEL_SCALE:.75},E=["pattern","min","max","required","step","minlength","maxlength"],S=["color","date","datetime-local","month","range","time","week"],T=["mousedown","touchstart"],A=["click","keydown"],k=function(e){function t(n,r){void 0===r&&(r={});var i=e.call(this,m(m({},t.defaultAdapter),n))||this;return i.isFocused_=!1,i.receivedUserInput_=!1,i.isValid_=!0,i.useNativeValidation_=!0,i.validateOnValueChange_=!0,i.helperText_=r.helperText,i.characterCounter_=r.characterCounter,i.leadingIcon_=r.leadingIcon,i.trailingIcon_=r.trailingIcon,i.inputFocusHandler_=function(){return i.activateFocus()},i.inputBlurHandler_=function(){return i.deactivateFocus()},i.inputInputHandler_=function(){return i.handleInput()},i.setPointerXOffset_=function(e){return i.setTransformOrigin(e)},i.textFieldInteractionHandler_=function(){return i.handleTextFieldInteraction()},i.validationAttributeChangeHandler_=function(e){return i.handleValidationAttributeChange(e)},i}return p(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return x},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return w},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return C},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"shouldAlwaysFloat_",{get:function(){var e=this.getNativeInput_().type;return S.indexOf(e)>=0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"shouldFloat",{get:function(){return this.shouldAlwaysFloat_||this.isFocused_||!!this.getValue()||this.isBadInput_()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"shouldShake",{get:function(){return!this.isFocused_&&!this.isValid()&&!!this.getValue()},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!0},setInputAttr:function(){},removeInputAttr:function(){},registerTextFieldInteractionHandler:function(){},deregisterTextFieldInteractionHandler:function(){},registerInputInteractionHandler:function(){},deregisterInputInteractionHandler:function(){},registerValidationAttributeChangeHandler:function(){return new MutationObserver((function(){}))},deregisterValidationAttributeChangeHandler:function(){},getNativeInput:function(){return null},isFocused:function(){return!1},activateLineRipple:function(){},deactivateLineRipple:function(){},setLineRippleTransformOrigin:function(){},shakeLabel:function(){},floatLabel:function(){},setLabelRequired:function(){},hasLabel:function(){return!1},getLabelWidth:function(){return 0},hasOutline:function(){return!1},notchOutline:function(){},closeOutline:function(){}}},enumerable:!0,configurable:!0}),t.prototype.init=function(){var e=this;this.adapter.hasLabel()&&this.getNativeInput_().required&&this.adapter.setLabelRequired(!0),this.adapter.isFocused()?this.inputFocusHandler_():this.adapter.hasLabel()&&this.shouldFloat&&(this.notchOutline(!0),this.adapter.floatLabel(!0),this.styleFloating_(!0)),this.adapter.registerInputInteractionHandler("focus",this.inputFocusHandler_),this.adapter.registerInputInteractionHandler("blur",this.inputBlurHandler_),this.adapter.registerInputInteractionHandler("input",this.inputInputHandler_),T.forEach((function(t){e.adapter.registerInputInteractionHandler(t,e.setPointerXOffset_)})),A.forEach((function(t){e.adapter.registerTextFieldInteractionHandler(t,e.textFieldInteractionHandler_)})),this.validationObserver_=this.adapter.registerValidationAttributeChangeHandler(this.validationAttributeChangeHandler_),this.setCharacterCounter_(this.getValue().length)},t.prototype.destroy=function(){var e=this;this.adapter.deregisterInputInteractionHandler("focus",this.inputFocusHandler_),this.adapter.deregisterInputInteractionHandler("blur",this.inputBlurHandler_),this.adapter.deregisterInputInteractionHandler("input",this.inputInputHandler_),T.forEach((function(t){e.adapter.deregisterInputInteractionHandler(t,e.setPointerXOffset_)})),A.forEach((function(t){e.adapter.deregisterTextFieldInteractionHandler(t,e.textFieldInteractionHandler_)})),this.adapter.deregisterValidationAttributeChangeHandler(this.validationObserver_)},t.prototype.handleTextFieldInteraction=function(){var e=this.adapter.getNativeInput();e&&e.disabled||(this.receivedUserInput_=!0)},t.prototype.handleValidationAttributeChange=function(e){var t=this;e.some((function(e){return E.indexOf(e)>-1&&(t.styleValidity_(!0),t.adapter.setLabelRequired(t.getNativeInput_().required),!0)})),e.indexOf("maxlength")>-1&&this.setCharacterCounter_(this.getValue().length)},t.prototype.notchOutline=function(e){if(this.adapter.hasOutline()&&this.adapter.hasLabel())if(e){var t=this.adapter.getLabelWidth()*C.LABEL_SCALE;this.adapter.notchOutline(t)}else this.adapter.closeOutline()},t.prototype.activateFocus=function(){this.isFocused_=!0,this.styleFocused_(this.isFocused_),this.adapter.activateLineRipple(),this.adapter.hasLabel()&&(this.notchOutline(this.shouldFloat),this.adapter.floatLabel(this.shouldFloat),this.styleFloating_(this.shouldFloat),this.adapter.shakeLabel(this.shouldShake)),!this.helperText_||!this.helperText_.isPersistent()&&this.helperText_.isValidation()&&this.isValid_||this.helperText_.showToScreenReader()},t.prototype.setTransformOrigin=function(e){if(!this.isDisabled()&&!this.adapter.hasOutline()){var t=e.touches,n=t?t[0]:e,r=n.target.getBoundingClientRect(),i=n.clientX-r.left;this.adapter.setLineRippleTransformOrigin(i)}},t.prototype.handleInput=function(){this.autoCompleteFocus(),this.setCharacterCounter_(this.getValue().length)},t.prototype.autoCompleteFocus=function(){this.receivedUserInput_||this.activateFocus()},t.prototype.deactivateFocus=function(){this.isFocused_=!1,this.adapter.deactivateLineRipple();var e=this.isValid();this.styleValidity_(e),this.styleFocused_(this.isFocused_),this.adapter.hasLabel()&&(this.notchOutline(this.shouldFloat),this.adapter.floatLabel(this.shouldFloat),this.styleFloating_(this.shouldFloat),this.adapter.shakeLabel(this.shouldShake)),this.shouldFloat||(this.receivedUserInput_=!1)},t.prototype.getValue=function(){return this.getNativeInput_().value},t.prototype.setValue=function(e){if(this.getValue()!==e&&(this.getNativeInput_().value=e),this.setCharacterCounter_(e.length),this.validateOnValueChange_){var t=this.isValid();this.styleValidity_(t)}this.adapter.hasLabel()&&(this.notchOutline(this.shouldFloat),this.adapter.floatLabel(this.shouldFloat),this.styleFloating_(this.shouldFloat),this.validateOnValueChange_&&this.adapter.shakeLabel(this.shouldShake))},t.prototype.isValid=function(){return this.useNativeValidation_?this.isNativeInputValid_():this.isValid_},t.prototype.setValid=function(e){this.isValid_=e,this.styleValidity_(e);var t=!e&&!this.isFocused_&&!!this.getValue();this.adapter.hasLabel()&&this.adapter.shakeLabel(t)},t.prototype.setValidateOnValueChange=function(e){this.validateOnValueChange_=e},t.prototype.getValidateOnValueChange=function(){return this.validateOnValueChange_},t.prototype.setUseNativeValidation=function(e){this.useNativeValidation_=e},t.prototype.isDisabled=function(){return this.getNativeInput_().disabled},t.prototype.setDisabled=function(e){this.getNativeInput_().disabled=e,this.styleDisabled_(e)},t.prototype.setHelperTextContent=function(e){this.helperText_&&this.helperText_.setContent(e)},t.prototype.setLeadingIconAriaLabel=function(e){this.leadingIcon_&&this.leadingIcon_.setAriaLabel(e)},t.prototype.setLeadingIconContent=function(e){this.leadingIcon_&&this.leadingIcon_.setContent(e)},t.prototype.setTrailingIconAriaLabel=function(e){this.trailingIcon_&&this.trailingIcon_.setAriaLabel(e)},t.prototype.setTrailingIconContent=function(e){this.trailingIcon_&&this.trailingIcon_.setContent(e)},t.prototype.setCharacterCounter_=function(e){if(this.characterCounter_){var t=this.getNativeInput_().maxLength;if(-1===t)throw new Error("MDCTextFieldFoundation: Expected maxlength html property on text input or textarea.");this.characterCounter_.setCounterValue(e,t)}},t.prototype.isBadInput_=function(){return this.getNativeInput_().validity.badInput||!1},t.prototype.isNativeInputValid_=function(){return this.getNativeInput_().validity.valid},t.prototype.styleValidity_=function(e){var n=t.cssClasses.INVALID;if(e?this.adapter.removeClass(n):this.adapter.addClass(n),this.helperText_){if(this.helperText_.setValidity(e),!this.helperText_.isValidation())return;var r=this.helperText_.isVisible(),i=this.helperText_.getId();r&&i?this.adapter.setInputAttr(w.ARIA_DESCRIBEDBY,i):this.adapter.removeInputAttr(w.ARIA_DESCRIBEDBY)}},t.prototype.styleFocused_=function(e){var n=t.cssClasses.FOCUSED;e?this.adapter.addClass(n):this.adapter.removeClass(n)},t.prototype.styleDisabled_=function(e){var n=t.cssClasses,r=n.DISABLED,i=n.INVALID;e?(this.adapter.addClass(r),this.adapter.removeClass(i)):this.adapter.removeClass(r),this.leadingIcon_&&this.leadingIcon_.setDisabled(e),this.trailingIcon_&&this.trailingIcon_.setDisabled(e)},t.prototype.styleFloating_=function(e){var n=t.cssClasses.LABEL_FLOATING;e?this.adapter.addClass(n):this.adapter.removeClass(n)},t.prototype.getNativeInput_=function(){return(this.adapter?this.adapter.getNativeInput():null)||{disabled:!1,maxLength:-1,required:!1,type:"input",validity:{badInput:!1,valid:!0},value:""}},t}(g.K),O={ROOT:"mdc-text-field-character-counter"},I={ROOT_SELECTOR:"."+O.ROOT},L=function(e){function t(n){return e.call(this,m(m({},t.defaultAdapter),n))||this}return p(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return O},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return I},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{setContent:function(){}}},enumerable:!0,configurable:!0}),t.prototype.setCounterValue=function(e,t){e=Math.min(e,t),this.adapter.setContent(e+" / "+t)},t}(g.K),R=function(e){var t=(0,r.CR)((0,i.useState)(!1),2),n=t[0],o=t[1],a=(0,r.CR)((0,i.useState)(0),2),s=a[0],l=a[1],u=(0,r.CR)((0,i.useState)(),2),c=u[0],d=u[1],h=(0,r.CR)((0,i.useState)(!1),2),p=h[0],m=h[1],g=(0,r.CR)((0,i.useState)(!1),2),v=g[0],b=g[1],y=(0,i.useRef)(),_=function(e){y.current=e},w=(0,i.useRef)(),x=(0,i.useRef)(),C=(0,i.useRef)(),E=function(e){var t=(0,r.CR)((0,i.useState)(),2),n=t[0],o=t[1],a=(0,f.j)({props:e,api:function(e){var t=e.foundation;return{getFoundation:function(){return t}}},elements:{},foundation:function(){return new L({setContent:function(e){o(e)}})}}),s=(a.foundation,(0,r._T)(a,["foundation"]));return(0,r.pi)({content:n},s)}({apiRef:e.characterCount?_:void 0}).content,S=(0,f.j)({props:e,elements:{rootEl:!0,inputEl:!0},foundation:function(e){var t=e.rootEl,n=e.inputEl,i=e.getProps;return new k((0,r.pi)((0,r.pi)((0,r.pi)((0,r.pi)({addClass:function(e){return t.addClass(e)},removeClass:function(e){return t.removeClass(e)},hasClass:function(e){return t.hasClass(e)},registerTextFieldInteractionHandler:function(e,n){return t.addEventListener(e,n)},deregisterTextFieldInteractionHandler:function(e,n){return t.removeEventListener(e,n)},registerValidationAttributeChangeHandler:function(e){if(n.ref){var t=new MutationObserver((function(t){return e(function(e){return e.map((function(e){return e.attributeName}))}(t))})),r=n.ref;return r&&t.observe(r,{attributes:!0}),t}return{}},deregisterValidationAttributeChangeHandler:function(e){e&&e.disconnect()},isFocused:function(){return document.activeElement===n.ref}},{registerInputInteractionHandler:function(e,t){return n.addEventListener(e,t)},deregisterInputInteractionHandler:function(e,t){return n.removeEventListener(e,t)},getNativeInput:function(){return n.ref}}),{shakeLabel:function(e){return m(e)},floatLabel:function(e){var t;b(null!==(t=i().floatLabel)&&void 0!==t?t:e)},hasLabel:function(){return!!i().label},getLabelWidth:function(){var e;return(null===(e=C.current)||void 0===e?void 0:e.getWidth())||0}}),{activateLineRipple:function(){o(!0)},deactivateLineRipple:function(){o(!1)},setLineRippleTransformOrigin:function(e){l(e)}}),{notchOutline:function(e){d(e)},closeOutline:function(){var e;null!==(e=i().floatLabel)&&void 0!==e||d(void 0)},hasOutline:function(){return!!i().outlined}}),{characterCounter:y.current?y.current.getFoundation():void 0,helperText:void 0,leadingIcon:w.current?w.current.getFoundation():void 0,trailingIcon:x.current?x.current.getFoundation():void 0})}}),T=S.foundation,A=(0,r._T)(S,["foundation"]),O=T.getValue();return(0,i.useEffect)((function(){void 0!==e.value&&e.value!==O&&T.setValue(String(e.value))}),[e.value,T,O]),(0,i.useEffect)((function(){void 0!==e.floatLabel&&(T.notchOutline(e.floatLabel),T.adapter.floatLabel(e.floatLabel))}),[T,e.floatLabel]),(0,r.pi)({shakeLabel:p,floatLabel:v,notchWidth:c,lineRippleActive:n,lineRippleCenter:s,setCharacterCounter:_,setLeadingIcon:function(e){return w.current=e},setTrailingIcon:function(e){return x.current=e},setFloatingLabel:function(e){return C.current=e},characterCountContent:E},A)},M=(0,o.LM)((function(e,t){var n=e.label,s=e.style,d=e.outlined,f=e.align,h=e.invalid,p=e.disabled,m=e.helpText,g=e.children,v=e.textarea,b=e.inputRef,y=e.characterCount,_=e.icon,w=e.trailingIcon,x=e.rootProps,C=void 0===x?{}:x,E=(e.foundationRef,e.ripple,e.prefix),S=e.suffix,T=e.resizeable,A=(e.floatLabel,(0,r._T)(e,["label","style","outlined","align","invalid","disabled","helpText","children","textarea","inputRef","characterCount","icon","trailingIcon","rootProps","foundationRef","ripple","prefix","suffix","resizeable","floatLabel"])),k=R(e),O=k.rootEl,I=k.inputEl,L=k.shakeLabel,M=k.floatLabel,B=k.notchWidth,W=k.lineRippleActive,H=k.lineRippleCenter,V=k.setLeadingIcon,U=k.setTrailingIcon,z=k.setFloatingLabel,q=k.characterCountContent,K=(0,a.M)("textfield",e)+"-label",G=(0,o.oC)(e,["mdc-text-field","mdc-text-field--upgraded",{"mdc-text-field--filled":!d,"mdc-text-field--textarea":v,"mdc-text-field--outlined":d,"mdc-text-field--invalid":h,"mdc-text-field--disabled":p,"mdc-text-field--with-leading-icon":!!_,"mdc-text-field--with-trailing-icon":!!w,"mdc-text-field--no-label":!n,"mdc-text-field--end-aligned":"end"===f,"mdc-text-field--with-internal-counter":v&&y}]),X=function(e,t){return i.createElement(F,{apiRef:function(e){"leading"===t?V(e):U(e)},position:t,tabIndex:"trailing"===t?0:void 0,icon:e})},Y=n?i.createElement(u._,{shake:L,float:M,apiRef:z,id:K},n):null,Q=y?i.createElement("div",{className:"mdc-text-field-character-counter"},q):null,Z=T?i.createElement("span",{className:"mdc-text-field__resizer"},i.createElement(o.Vp,(0,r.pi)({},A,{element:I,className:"mdc-text-field__input",disabled:p,tag:"textarea",ref:b})),Q):i.createElement(i.Fragment,null,i.createElement(o.Vp,(0,r.pi)({},A,{element:I,className:"mdc-text-field__input",disabled:p,tag:"textarea",ref:b})),Q);return i.createElement(i.Fragment,null,i.createElement($,(0,r.pi)({},C,{element:O,style:s,className:G,ref:t,"aria-labelledby":K}),!!_&&X(_,"leading"),g,i.createElement(P,null),!!E&&!v&&i.createElement(N,{prefix:E}),v?Z:i.createElement(o.Vp,(0,r.pi)({},A,{element:I,className:"mdc-text-field__input",disabled:p,tag:"input",ref:b})),!!S&&!v&&i.createElement(D,{suffix:S}),d?i.createElement(i.Fragment,null,i.createElement(c._,{notch:B},Y),!!w&&X(w,"trailing")):i.createElement(i.Fragment,null,Y,!!w&&X(w,"trailing"),i.createElement(l.D,{active:W,center:H}))),function(e){if(!(!!m||y&&!v))return null;var t="object"==typeof m&&!i.isValidElement(m);return i.createElement("div",{className:"mdc-text-field-helper-line"},m&&t?i.createElement(j,(0,r.pi)({},m)):i.createElement(j,null,m),!v&&e)}(Q))})),P=i.memo((function(){return i.createElement("span",{className:"mdc-text-field__ripple"})})),$=(0,d.U8)({surface:!1})(i.forwardRef((function(e,t){return i.createElement(o.Vp,(0,r.pi)({},e,{tag:"label",ref:t}))}))),N=i.memo((function(e){var t=e.prefix;return i.createElement("span",{className:"mdc-text-field__affix mdc-text-field__affix--prefix"},t)})),D=i.memo((function(e){var t=e.suffix;return i.createElement("span",{className:"mdc-text-field__affix mdc-text-field__affix--suffix"},t)})),j=(0,o.LM)((function(e,t){var n=e.persistent,a=e.validationMsg,s=(0,r._T)(e,["persistent","validationMsg"]),l=(0,o.oC)(e,["mdc-text-field-helper-text",{"mdc-text-field-helper-text--persistent":n,"mdc-text-field-helper-text--validation-msg":a}]);return i.createElement(o.Vp,(0,r.pi)({tag:"div"},s,{className:l,ref:t}))})),F=function(e){e.apiRef;var t=e.position,n=(0,r._T)(e,["apiRef","position"]),a=function(e){var t=(0,f.j)({props:e,elements:{rootEl:!0},api:function(e){var t=e.foundation;return{getFoundation:function(){return t}}},foundation:function(e){var t=e.rootEl,n=e.emit;return new _({getAttr:function(e){return t.getProp(e)},setAttr:function(e,n){return t.setProp(e,n)},removeAttr:function(e){return t.removeProp(e)},setContent:function(e){t.setProp("icon",e)},registerInteractionHandler:function(e,n){return t.addEventListener(e,n)},deregisterInteractionHandler:function(e,n){return t.removeEventListener(e,n)},notifyIconAction:function(){return n("onClick",{},!0)}})}}),n=(t.foundation,(0,r._T)(t,["foundation"]));return(0,r.pi)({},n)}(e).rootEl,l=(0,o.oC)(e,["mdc-text-field__icon",{"mdc-text-field__icon--trailing":"trailing"===t,"mdc-text-field__icon--leading":"leading"===t}]);return i.createElement(s.Icon,(0,r.pi)({},a.props((0,r.pi)((0,r.pi)({},n),{className:l}))))};F.displayName="TextFieldIcon"},function(e,t,n){"use strict";n.r(t),n.d(t,{Editor:function(){return E}});var r,i,o=n(0),a=n(57),s=function(){return s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},s.apply(this,arguments)},l={onActivate:a.func,onAddUndo:a.func,onBeforeAddUndo:a.func,onBeforeExecCommand:a.func,onBeforeGetContent:a.func,onBeforeRenderUI:a.func,onBeforeSetContent:a.func,onBeforePaste:a.func,onBlur:a.func,onChange:a.func,onClearUndos:a.func,onClick:a.func,onContextMenu:a.func,onCommentChange:a.func,onCopy:a.func,onCut:a.func,onDblclick:a.func,onDeactivate:a.func,onDirty:a.func,onDrag:a.func,onDragDrop:a.func,onDragEnd:a.func,onDragGesture:a.func,onDragOver:a.func,onDrop:a.func,onExecCommand:a.func,onFocus:a.func,onFocusIn:a.func,onFocusOut:a.func,onGetContent:a.func,onHide:a.func,onInit:a.func,onKeyDown:a.func,onKeyPress:a.func,onKeyUp:a.func,onLoadContent:a.func,onMouseDown:a.func,onMouseEnter:a.func,onMouseLeave:a.func,onMouseMove:a.func,onMouseOut:a.func,onMouseOver:a.func,onMouseUp:a.func,onNodeChange:a.func,onObjectResizeStart:a.func,onObjectResized:a.func,onObjectSelected:a.func,onPaste:a.func,onPostProcess:a.func,onPostRender:a.func,onPreProcess:a.func,onProgressState:a.func,onRedo:a.func,onRemove:a.func,onReset:a.func,onSaveContent:a.func,onSelectionChange:a.func,onSetAttrib:a.func,onSetContent:a.func,onShow:a.func,onSubmit:a.func,onUndo:a.func,onVisualAid:a.func,onSkinLoadError:a.func,onThemeLoadError:a.func,onModelLoadError:a.func,onPluginLoadError:a.func,onIconsLoadError:a.func,onLanguageLoadError:a.func},u=s({apiKey:a.string,id:a.string,inline:a.bool,init:a.object,initialValue:a.string,onEditorChange:a.func,value:a.string,tagName:a.string,cloudChannel:a.string,plugins:a.oneOfType([a.string,a.array]),toolbar:a.oneOfType([a.string,a.array]),disabled:a.bool,textareaName:a.string,tinymceScriptSrc:a.string,rollback:a.oneOfType([a.number,a.oneOf([!1])]),scriptLoading:a.shape({async:a.bool,defer:a.bool,delay:a.number})},l),c=function(e){return"function"==typeof e},d=function(e){return e in l},f=function(e){return e.substr(2)},h=function(e,t,n,r,i){return function(e,t,n,r,i,o,a){var s=Object.keys(i).filter(d),l=Object.keys(o).filter(d),u=s.filter((function(e){return void 0===o[e]})),c=l.filter((function(e){return void 0===i[e]}));u.forEach((function(e){var t=f(e),r=a[t];n(t,r),delete a[t]})),c.forEach((function(n){var i=r(e,n),o=f(n);a[o]=i,t(o,i)}))}(i,e.on.bind(e),e.off.bind(e),(function(t,n){return function(r){var i;return null===(i=t(n))||void 0===i?void 0:i(r,e)}}),t,n,r)},p=0,m=function(e){var t=Date.now();return e+"_"+Math.floor(1e9*Math.random())+ ++p+String(t)},g=function(e){return null!==e&&("textarea"===e.tagName.toLowerCase()||"input"===e.tagName.toLowerCase())},v=function(e){return void 0===e||""===e?[]:Array.isArray(e)?e:e.split(" ")},b=function(e,t){void 0!==e&&(null!=e.mode&&"object"==typeof e.mode&&"function"==typeof e.mode.set?e.mode.set(t):e.setMode(t))},y=function(){return{listeners:[],scriptId:m("tiny-script"),scriptLoading:!1,scriptLoaded:!1}},_=(r=y(),{load:function(e,t,n,i,o,a){var s=function(){return function(e,t,n,r,i,o){var a=t.createElement("script");a.referrerPolicy="origin",a.type="application/javascript",a.id=e,a.src=n,a.async=r,a.defer=i;var s=function(){a.removeEventListener("load",s),o()};a.addEventListener("load",s),t.head&&t.head.appendChild(a)}(r.scriptId,e,t,n,i,(function(){r.listeners.forEach((function(e){return e()})),r.scriptLoaded=!0}))};r.scriptLoaded?a():(r.listeners.push(a),r.scriptLoading||(r.scriptLoading=!0,o>0?setTimeout(s,o):s()))},reinitialize:function(){r=y()}}),w=function(e){var t=e;return t&&t.tinymce?t.tinymce:null},x=(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),C=function(){return C=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},C.apply(this,arguments)},E=function(e){function t(t){var n,r,i,a=this;return(a=e.call(this,t)||this).rollbackTimer=void 0,a.valueCursor=void 0,a.rollbackChange=function(){var e=a.editor,t=a.props.value;e&&t&&t!==a.currentContent&&e.undoManager.ignore((function(){if(e.setContent(t),a.valueCursor&&(!a.inline||e.hasFocus()))try{e.selection.moveToBookmark(a.valueCursor)}catch(e){}})),a.rollbackTimer=void 0},a.handleBeforeInput=function(e){if(void 0!==a.props.value&&a.props.value===a.currentContent&&a.editor&&(!a.inline||a.editor.hasFocus()))try{a.valueCursor=a.editor.selection.getBookmark(3)}catch(e){}},a.handleBeforeInputSpecial=function(e){"Enter"!==e.key&&"Backspace"!==e.key&&"Delete"!==e.key||a.handleBeforeInput(e)},a.handleEditorChange=function(e){var t=a.editor;if(t&&t.initialized){var n=t.getContent();void 0!==a.props.value&&a.props.value!==n&&!1!==a.props.rollback&&(a.rollbackTimer||(a.rollbackTimer=window.setTimeout(a.rollbackChange,"number"==typeof a.props.rollback?a.props.rollback:200))),n!==a.currentContent&&(a.currentContent=n,c(a.props.onEditorChange)&&a.props.onEditorChange(n,t))}},a.handleEditorChangeSpecial=function(e){"Backspace"!==e.key&&"Delete"!==e.key||a.handleEditorChange(e)},a.initialise=function(e){var t,n,r;void 0===e&&(e=0);var i=a.elementRef.current;if(i)if(function(e){if(!("isConnected"in Node.prototype)){for(var t=e,n=e.parentNode;null!=n;)n=(t=n).parentNode;return t===e.ownerDocument}return e.isConnected}(i)){var o=w(a.view);if(!o)throw new Error("tinymce should have been loaded into global scope");var s,l,u=C(C({},a.props.init),{selector:void 0,target:i,readonly:a.props.disabled,inline:a.inline,plugins:(s=null===(t=a.props.init)||void 0===t?void 0:t.plugins,l=a.props.plugins,v(s).concat(v(l))),toolbar:null!==(n=a.props.toolbar)&&void 0!==n?n:null===(r=a.props.init)||void 0===r?void 0:r.toolbar,setup:function(e){a.editor=e,a.bindHandlers({}),a.inline&&!g(i)&&e.once("PostRender",(function(t){e.setContent(a.getInitialValue(),{no_events:!0})})),a.props.init&&c(a.props.init.setup)&&a.props.init.setup(e)},init_instance_callback:function(e){var t,n,r=a.getInitialValue();a.currentContent=null!==(t=a.currentContent)&&void 0!==t?t:e.getContent(),a.currentContent!==r&&(a.currentContent=r,e.setContent(r),e.undoManager.clear(),e.undoManager.add(),e.setDirty(!1));var i=null!==(n=a.props.disabled)&&void 0!==n&&n;b(a.editor,i?"readonly":"design"),a.props.init&&c(a.props.init.init_instance_callback)&&a.props.init.init_instance_callback(e)}});a.inline||(i.style.visibility=""),g(i)&&(i.value=a.getInitialValue()),o.init(u)}else if(0===e)setTimeout((function(){return a.initialise(1)}),1);else{if(!(e<100))throw new Error("tinymce can only be initialised when in a document");setTimeout((function(){return a.initialise(e+1)}),100)}},a.id=a.props.id||m("tiny-react"),a.elementRef=o.createRef(),a.inline=null!==(i=null!==(n=a.props.inline)&&void 0!==n?n:null===(r=a.props.init)||void 0===r?void 0:r.inline)&&void 0!==i&&i,a.boundHandlers={},a}return x(t,e),Object.defineProperty(t.prototype,"view",{get:function(){var e,t;return null!==(t=null===(e=this.elementRef.current)||void 0===e?void 0:e.ownerDocument.defaultView)&&void 0!==t?t:window},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(e){var t,n,r=this;if(this.rollbackTimer&&(clearTimeout(this.rollbackTimer),this.rollbackTimer=void 0),this.editor&&(this.bindHandlers(e),this.editor.initialized)){if(this.currentContent=null!==(t=this.currentContent)&&void 0!==t?t:this.editor.getContent(),"string"==typeof this.props.initialValue&&this.props.initialValue!==e.initialValue)this.editor.setContent(this.props.initialValue),this.editor.undoManager.clear(),this.editor.undoManager.add(),this.editor.setDirty(!1);else if("string"==typeof this.props.value&&this.props.value!==this.currentContent){var i=this.editor;i.undoManager.transact((function(){var e;if(!r.inline||i.hasFocus())try{e=i.selection.getBookmark(3)}catch(e){}var t=r.valueCursor;if(i.setContent(r.props.value),!r.inline||i.hasFocus())for(var n=0,o=[e,t];n<o.length;n++){var a=o[n];if(a)try{i.selection.moveToBookmark(a),r.valueCursor=a;break}catch(e){}}}))}if(this.props.disabled!==e.disabled){var o=null!==(n=this.props.disabled)&&void 0!==n&&n;b(this.editor,o?"readonly":"design")}}},t.prototype.componentDidMount=function(){var e,t,n,r,i,o;null!==w(this.view)?this.initialise():this.elementRef.current&&this.elementRef.current.ownerDocument&&_.load(this.elementRef.current.ownerDocument,this.getScriptSrc(),null!==(t=null===(e=this.props.scriptLoading)||void 0===e?void 0:e.async)&&void 0!==t&&t,null!==(r=null===(n=this.props.scriptLoading)||void 0===n?void 0:n.defer)&&void 0!==r&&r,null!==(o=null===(i=this.props.scriptLoading)||void 0===i?void 0:i.delay)&&void 0!==o?o:0,this.initialise)},t.prototype.componentWillUnmount=function(){var e=this,t=this.editor;t&&(t.off(this.changeEvents(),this.handleEditorChange),t.off(this.beforeInputEvent(),this.handleBeforeInput),t.off("keypress",this.handleEditorChangeSpecial),t.off("keydown",this.handleBeforeInputSpecial),t.off("NewBlock",this.handleEditorChange),Object.keys(this.boundHandlers).forEach((function(n){t.off(n,e.boundHandlers[n])})),this.boundHandlers={},t.remove(),this.editor=void 0)},t.prototype.render=function(){return this.inline?this.renderInline():this.renderIframe()},t.prototype.changeEvents=function(){var e,t,n;return(null===(n=null===(t=null===(e=w(this.view))||void 0===e?void 0:e.Env)||void 0===t?void 0:t.browser)||void 0===n?void 0:n.isIE())?"change keyup compositionend setcontent CommentChange":"change input compositionend setcontent CommentChange"},t.prototype.beforeInputEvent=function(){return window.InputEvent&&"function"==typeof InputEvent.prototype.getTargetRanges?"beforeinput SelectionChange":"SelectionChange"},t.prototype.renderInline=function(){var e=this.props.tagName,t=void 0===e?"div":e;return o.createElement(t,{ref:this.elementRef,id:this.id})},t.prototype.renderIframe=function(){return o.createElement("textarea",{ref:this.elementRef,style:{visibility:"hidden"},name:this.props.textareaName,id:this.id})},t.prototype.getScriptSrc=function(){if("string"==typeof this.props.tinymceScriptSrc)return this.props.tinymceScriptSrc;var e=this.props.cloudChannel,t=this.props.apiKey?this.props.apiKey:"no-api-key";return"https://cdn.tiny.cloud/1/".concat(t,"/tinymce/").concat(e,"/tinymce.min.js")},t.prototype.getInitialValue=function(){return"string"==typeof this.props.initialValue?this.props.initialValue:"string"==typeof this.props.value?this.props.value:""},t.prototype.bindHandlers=function(e){var t=this;if(void 0!==this.editor){h(this.editor,e,this.props,this.boundHandlers,(function(e){return t.props[e]}));var n=function(e){return void 0!==e.onEditorChange||void 0!==e.value},r=n(e),i=n(this.props);!r&&i?(this.editor.on(this.changeEvents(),this.handleEditorChange),this.editor.on(this.beforeInputEvent(),this.handleBeforeInput),this.editor.on("keydown",this.handleBeforeInputSpecial),this.editor.on("keyup",this.handleEditorChangeSpecial),this.editor.on("NewBlock",this.handleEditorChange)):r&&!i&&(this.editor.off(this.changeEvents(),this.handleEditorChange),this.editor.off(this.beforeInputEvent(),this.handleBeforeInput),this.editor.off("keydown",this.handleBeforeInputSpecial),this.editor.off("keyup",this.handleEditorChangeSpecial),this.editor.off("NewBlock",this.handleEditorChange))}},t.propTypes=u,t.defaultProps={cloudChannel:"6"},t}(o.Component)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.diff=t.split=void 0;var r=n(122),i=n(123);t.diff=i.default;var o=n(107);t.split=o.default,t.default=r.default},,,function(e,t,n){"use strict";n.d(t,{j:function(){return h}});var r=n(127),i=n(0),o=n(22),a=n.n(o),s={blur:"onBlur",cancel:"onCancel",click:"onClick",close:"onClose",contextmenu:"onContextMenu",copy:"onCopy",cut:"onCut",auxclick:"onAuxClick",doubleclick:"onDoubleClick",dragend:"onDragEnd",dragstart:"onDragStart",drop:"onDrop",focus:"onFocus",input:"onInput",invalid:"onInvalid",keydown:"onKeyDown",keypress:"onKeyPress",keyup:"onKeyUp",mousedown:"onMouseDown",mouseup:"onMouseUp",paste:"onPaste",pause:"onPause",play:"onPlay",pointercancel:"onPointerCancel",pointerdown:"onPointerDown",pointerup:"onPointerUp",ratechange:"onRateChange",reset:"onReset",seeked:"onSeeked",submit:"onSubmit",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchstart:"onTouchStart",volumechange:"onVolumeChange",abort:"onAbort",animationend:"onAnimationEnd",animationiteration:"onAnimationIteration",animationstart:"onAnimationStart",canplay:"onCanPlay",canplaythrough:"onCanPlayThrough",drag:"onDrag",dragenter:"onDragEnter",dragexit:"onDragExit",dragleave:"onDragLeave",dragover:"onDragOver",durationchange:"onDurationChange",emptied:"onEmptied",encrypted:"onEncrypted",ended:"onEnded",error:"onError",gotpointercapture:"onGotPointerCapture",load:"onLoad",loadeddata:"onLoadedData",loadedmetadata:"onLoadedMetadata",loadstart:"onLoadStart",lostpointercapture:"onLostPointerCapture",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseover:"onMouseOver",playing:"onPlaying",pointermove:"onPointerMove",pointerout:"onPointerOut",pointerover:"onPointerOver",progress:"onProgress",scroll:"onScroll",seeking:"onSeeking",stalled:"onStalled",suspend:"onSuspend",timeupdate:"onTimeUpdate",toggle:"onToggle",touchmove:"onTouchMove",transitionend:"onTransitionEnd",waiting:"onWaiting",wheel:"onWheel",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",pointerenter:"onPointerEnter",pointerleave:"onPointerLeave",change:"onChange",select:"onSelect",beforeinput:"onBeforeInput",compositionend:"onCompositionEnd",compositionstart:"onCompositionStart",compositionupdate:"onCompositionUpdate"},l=n(147),u=n(145),c=function(e){return s[e]||e},d=function(){function e(e){this._classes=new Set,this._events={},this._style={},this._props={},this._ref=null,this._onChange=null,this._onChange=e,this.onChange=this.onChange.bind(this),this.addClass=this.addClass.bind(this),this.removeClass=this.removeClass.bind(this),this.hasClass=this.hasClass.bind(this),this.setProp=this.setProp.bind(this),this.getProp=this.getProp.bind(this),this.removeProp=this.removeProp.bind(this),this.setStyle=this.setStyle.bind(this),this.addEventListener=this.addEventListener.bind(this),this.removeEventListener=this.removeEventListener.bind(this),this.setRef=this.setRef.bind(this)}return e.prototype.onChange=function(){this._onChange&&this._onChange()},e.prototype.destroy=function(){var e=this;this._onChange=null,this._events={},this._style={},this._props={},this._classes=new Set,setTimeout((function(){e._ref=null}))},e.prototype.addClass=function(e){this._classes.has(e)||(this._classes.add(e),this.onChange())},e.prototype.removeClass=function(e){this._classes.has(e)&&(this._classes.delete(e),this.onChange())},e.prototype.hasClass=function(e){return this._classes.has(e)},e.prototype.setProp=function(e,t,n){void 0===n&&(n=!1),this._props[e]!==t&&(this._props[e]=t,!n&&this.onChange())},e.prototype.getProp=function(e){return this._props[e]},e.prototype.removeProp=function(e){void 0!==this._props[e]&&(delete this._props[e],this.onChange())},e.prototype.props=function(e){var t=this,n=e.className,i=void 0===n?"":n,o=e.style,s=void 0===o?{}:o,l=Object.entries(e).reduce((function(e,n){var i=(0,r.CR)(n,2),o=i[0],a=i[1],s=t._events[o];if("function"==typeof a&&"function"==typeof s){e[o]=function(e){return s(e),a(e)}}return e}),(0,r.pi)({},this._events)),u=a()(i,(0,r.ev)([],(0,r.CR)(this._classes))),c=(0,r.pi)((0,r.pi)({},this._style),s);return(0,r.pi)((0,r.pi)((0,r.pi)((0,r.pi)({},e),this._props),l),{style:c,className:u})},e.prototype.setStyle=function(e,t){e=e.startsWith("--")?e:(0,l.f)(e),this._style[e]!==t&&(this._style[e]=t,this.onChange())},e.prototype.addEventListener=function(e,t){var n=c(e);this._events[n]!==t&&(this._events[n]=t,this.onChange())},e.prototype.removeEventListener=function(e,t){var n=c(e);this._events[n]&&(delete this._events[n],this.onChange())},e.prototype.setRef=function(e){e&&(this._ref=e)},Object.defineProperty(e.prototype,"ref",{get:function(){return this._ref},enumerable:!1,configurable:!0}),e}(),f=function(e){return function(t,n,r){var i;void 0===r&&(r=!1),i=new CustomEvent(t,{detail:n,bubbles:r}),Object.defineProperty(i,"target",{value:n,writable:!1}),Object.defineProperty(i,"currentTarget",{value:n,writable:!1});var o=t;return e[o]&&e[o](i),i}},h=function(e){var t=e.foundation,n=e.props,o=e.elements,a=e.api,s=(0,r.CR)((0,i.useState)(0),2)[1],l=(0,i.useRef)(n);l.current=n;var c=(0,i.useMemo)((function(){return Object.keys(o).reduce((function(e,t){return e[t]=new d((function(){s((function(e){return e+1}))})),e}),{})}),[]),h=(0,i.useMemo)((function(){var e=t((0,r.pi)((0,r.pi)({},c),{getProps:function(){return l.current},emit:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return f(l.current).apply(void 0,(0,r.ev)([],(0,r.CR)(e)))}}));return a&&(0,u.n7)(l.current.apiRef,a((0,r.pi)({foundation:e},c))),e}),[]);return(0,i.useEffect)((function(){var e=h;return e.init(),a&&(0,u.n7)(l.current.apiRef,a((0,r.pi)({foundation:e},c))),(0,u.n7)(l.current.foundationRef,e),function(){e.destroy(),(0,u.n7)(l.current.apiRef,null),(0,u.n7)(l.current.foundationRef,null),Object.values(c).map((function(e){return e.destroy()})),l.current={}}}),[h,c]),(0,r.pi)({foundation:h},c)}},function(e,t,n){"use strict";n.d(t,{B:function(){return r}});var r={bottom:0,height:0,left:0,right:0,top:0,width:0}},function(e,t,n){"use strict";n.d(t,{K:function(){return r}});
110
+ /**
111
+ * @license
112
+ * Copyright 2016 Google Inc.
113
+ *
114
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
115
+ * of this software and associated documentation files (the "Software"), to deal
116
+ * in the Software without restriction, including without limitation the rights
117
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
118
+ * copies of the Software, and to permit persons to whom the Software is
119
+ * furnished to do so, subject to the following conditions:
120
+ *
121
+ * The above copyright notice and this permission notice shall be included in
122
+ * all copies or substantial portions of the Software.
123
+ *
124
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
125
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
126
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
127
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
128
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
129
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
130
+ * THE SOFTWARE.
131
+ */
132
+ var r=function(){function e(e){void 0===e&&(e={}),this.adapter=e}return Object.defineProperty(e,"cssClasses",{get:function(){return{}},enumerable:!0,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return{}},enumerable:!0,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return{}},enumerable:!0,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{}},enumerable:!0,configurable:!0}),e.prototype.init=function(){},e.prototype.destroy=function(){},e}()},function(e,t,n){"use strict";n.d(t,{o:function(){return r},w:function(){return i}});var r=function(e,t){if(e instanceof Element){if(e&&e.closest)return e.closest(t);for(var n=e;n;){if(i(n,t))return n;n=n.parentElement}}return null},i=function(e,t){return(e.matches||e.webkitMatchesSelector||e.msMatchesSelector).call(e,t)}},function(e,t,n){"use strict";n.d(t,{U8:function(){return p},aw:function(){return h}});var r,i=n(127),o=n(0),a=n(1),s=n(22),l=n.n(s),u=n(128),c=n(163),d=o.createContext({}),f=(r=function(e){var t=e.children,n=e.className,r=e.primary,a=e.accent,s=e.unbounded,u=e.surface,f=(e.domNode,e.foundationRef,(0,i._T)(e,["children","className","primary","accent","unbounded","surface","domNode","foundationRef"])),h=(0,c.K)(e),p=h.rootEl,m=h.surfaceEl,g=o.Children.only(t);if(!o.isValidElement(g))return null;var v=s?{"data-mdc-ripple-is-unbounded":!0}:{},b=u&&s?{}:m.props({style:g.props.style}),y=l()(n!==g.props.className&&n,b.className,g.props.className,{"mdc-ripple-surface":"boolean"==typeof u?u:void 0===u,"mdc-ripple-surface--primary":r,"mdc-ripple-surface--accent":a});f.disabled&&(y=y.replace("mdc-ripple-upgraded--background-focused",""));var _=o.cloneElement(g,(0,i.pi)((0,i.pi)((0,i.pi)({},g.props),v),p.props((0,i.pi)((0,i.pi)((0,i.pi)((0,i.pi)({},f),{style:g.props.style}),b),{className:y}))));return o.createElement(d.Provider,{value:m.props({style:g.props.style})},_)},function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={domNode:null},t}return(0,i.ZT)(t,e),t.prototype.componentDidMount=function(){this.setState({domNode:a.findDOMNode(this)})},t.prototype.componentDidUpdate=function(){var e=a.findDOMNode(this);e!==this.state.domNode&&this.setState({rootRippleElement:e})},t.prototype.render=function(){return o.createElement(r,(0,i.pi)({},this.props,{domNode:this.state.domNode}))},t}(o.Component)),h=function(e){var t=e.className,n=(0,i._T)(e,["className"]);return o.createElement(d.Consumer,null,(function(e){return o.createElement("div",(0,i.pi)({},n,e,{className:t+" "+(e.className||"")}))}))},p=function(e){var t=void 0===e?{}:e,n=t.unbounded,r=t.accent,a=t.surface;return function(e){var t=o.forwardRef((function(t,s){var l=t.ripple,c=(0,i._T)(t,["ripple"]),d=(0,u.wv)(),h="object"!=typeof(l=null!=l?l:d.ripple)?{}:l;return l?o.createElement(f,(0,i.pi)({},c,{accent:h.accent||r,unbounded:h.unbounded||n,surface:h.surface||a}),o.createElement(e,(0,i.pi)({},c,{ref:s}))):o.createElement(e,(0,i.pi)({},c,{ref:s}))}));return t.displayName="withRipple("+(e.displayName||e.constructor.name||"Unknown")+")",t}}},function(e,t,n){"use strict";n.d(t,{K:function(){return c}});var r=n(127),i=n(0),o=n(158),a=n(159),s=n(161),l=n(164),u=n(167),c=function(e){var t=(0,i.useRef)(!1),n=(0,o.j)({props:e,elements:{rootEl:!0,surfaceEl:!0},foundation:function(e){var t=e.rootEl,n=e.surfaceEl,r=e.getProps;return new l.l({browserSupportsCssVars:function(){return u.x(window)},isUnbounded:function(){return!!r().unbounded},isSurfaceActive:function(){return!!t.ref&&(0,s.w)(t.ref,":active")},isSurfaceDisabled:function(){return!!r().disabled},addClass:function(e){n.addClass(e)},removeClass:function(e){n.removeClass(e)},containsEventTarget:function(e){return!!t.ref&&t.ref.contains(e)},registerInteractionHandler:function(e,t){},deregisterInteractionHandler:function(e,t){},registerDocumentInteractionHandler:function(e,t){return document.documentElement.addEventListener(e,t,{passive:!0})},deregisterDocumentInteractionHandler:function(e,t){return document.documentElement.removeEventListener(e,t)},registerResizeHandler:function(e){return window.addEventListener("resize",e)},deregisterResizeHandler:function(e){return window.removeEventListener("resize",e)},updateCssVariable:function(e,t){return n.setStyle(e,t)},computeBoundingRect:function(){return t.ref?t.ref.getBoundingClientRect():a.B},getWindowPageOffset:function(){return{x:window.pageXOffset,y:window.pageYOffset}}})}}),c=n.foundation,d=(0,r._T)(n,["foundation"]),f=d.rootEl,h=(0,i.useCallback)((function(e){e.persist(),c.activate(e)}),[c]),p=(0,i.useCallback)((function(e){e.persist(),c.deactivate()}),[c]),m=e.onFocus,g=(0,i.useCallback)((function(e){null==m||m(e),c.handleFocus()}),[c,m]),v=e.onBlur,b=(0,i.useCallback)((function(e){null==v||v(e),c.handleBlur()}),[c,v]),y=e.onMouseDown,_=(0,i.useCallback)((function(e){null==y||y(e),t.current||h(e),t.current=!1}),[y,h]),w=e.onMouseUp,x=(0,i.useCallback)((function(e){null==w||w(e),p(e)}),[w,p]),C=e.onTouchStart,E=(0,i.useCallback)((function(e){t.current=!0,null==C||C(e),h(e)}),[C,h]),S=e.onTouchEnd,T=(0,i.useCallback)((function(e){null==S||S(e),p(e)}),[S,p]),A=e.onKeyDown,k=(0,i.useCallback)((function(e){null==A||A(e),h(e)}),[A,h]),O=e.onKeyUp,I=(0,i.useCallback)((function(e){null==O||O(e),p(e)}),[O,p]);return f.setProp("onFocus",g,!0),f.setProp("onBlur",b,!0),f.setProp("onMouseDown",_,!0),f.setProp("onMouseUp",x,!0),f.setProp("onTouchStart",E,!0),f.setProp("onTouchEnd",T,!0),f.setProp("onKeyDown",k,!0),f.setProp("onKeyUp",I,!0),(0,i.useEffect)((function(){f.setRef(e.domNode)}),[f,e.domNode]),(0,i.useEffect)((function(){c.setUnbounded(!!e.unbounded)}),[e.unbounded,c]),(0,i.useEffect)((function(){e.disabled&&c.handleBlur()}),[e.disabled,c]),(0,r.pi)({},d)}},function(e,t,n){"use strict";n.d(t,{l:function(){return c}});var r=n(165),i=n(160),o=n(166),a=n(167),s=["touchstart","pointerdown","mousedown","keydown"],l=["touchend","pointerup","mouseup","contextmenu"],u=[],c=function(e){function t(n){var i=e.call(this,(0,r.pi)((0,r.pi)({},t.defaultAdapter),n))||this;return i.activationAnimationHasEnded_=!1,i.activationTimer_=0,i.fgDeactivationRemovalTimer_=0,i.fgScale_="0",i.frame_={width:0,height:0},i.initialSize_=0,i.layoutFrame_=0,i.maxRadius_=0,i.unboundedCoords_={left:0,top:0},i.activationState_=i.defaultActivationState_(),i.activationTimerCallback_=function(){i.activationAnimationHasEnded_=!0,i.runDeactivationUXLogicIfReady_()},i.activateHandler_=function(e){return i.activate_(e)},i.deactivateHandler_=function(){return i.deactivate_()},i.focusHandler_=function(){return i.handleFocus()},i.blurHandler_=function(){return i.handleBlur()},i.resizeHandler_=function(){return i.layout()},i}return(0,r.ZT)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return o.UX},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return o.j2},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return o.KT},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},browserSupportsCssVars:function(){return!0},computeBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},containsEventTarget:function(){return!0},deregisterDocumentInteractionHandler:function(){},deregisterInteractionHandler:function(){},deregisterResizeHandler:function(){},getWindowPageOffset:function(){return{x:0,y:0}},isSurfaceActive:function(){return!0},isSurfaceDisabled:function(){return!0},isUnbounded:function(){return!0},registerDocumentInteractionHandler:function(){},registerInteractionHandler:function(){},registerResizeHandler:function(){},removeClass:function(){},updateCssVariable:function(){}}},enumerable:!0,configurable:!0}),t.prototype.init=function(){var e=this,n=this.supportsPressRipple_();if(this.registerRootHandlers_(n),n){var r=t.cssClasses,i=r.ROOT,o=r.UNBOUNDED;requestAnimationFrame((function(){e.adapter.addClass(i),e.adapter.isUnbounded()&&(e.adapter.addClass(o),e.layoutInternal_())}))}},t.prototype.destroy=function(){var e=this;if(this.supportsPressRipple_()){this.activationTimer_&&(clearTimeout(this.activationTimer_),this.activationTimer_=0,this.adapter.removeClass(t.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer_&&(clearTimeout(this.fgDeactivationRemovalTimer_),this.fgDeactivationRemovalTimer_=0,this.adapter.removeClass(t.cssClasses.FG_DEACTIVATION));var n=t.cssClasses,r=n.ROOT,i=n.UNBOUNDED;requestAnimationFrame((function(){e.adapter.removeClass(r),e.adapter.removeClass(i),e.removeCssVars_()}))}this.deregisterRootHandlers_(),this.deregisterDeactivationHandlers_()},t.prototype.activate=function(e){this.activate_(e)},t.prototype.deactivate=function(){this.deactivate_()},t.prototype.layout=function(){var e=this;this.layoutFrame_&&cancelAnimationFrame(this.layoutFrame_),this.layoutFrame_=requestAnimationFrame((function(){e.layoutInternal_(),e.layoutFrame_=0}))},t.prototype.setUnbounded=function(e){var n=t.cssClasses.UNBOUNDED;e?this.adapter.addClass(n):this.adapter.removeClass(n)},t.prototype.handleFocus=function(){var e=this;requestAnimationFrame((function(){return e.adapter.addClass(t.cssClasses.BG_FOCUSED)}))},t.prototype.handleBlur=function(){var e=this;requestAnimationFrame((function(){return e.adapter.removeClass(t.cssClasses.BG_FOCUSED)}))},t.prototype.supportsPressRipple_=function(){return this.adapter.browserSupportsCssVars()},t.prototype.defaultActivationState_=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},t.prototype.registerRootHandlers_=function(e){var t=this;e&&(s.forEach((function(e){t.adapter.registerInteractionHandler(e,t.activateHandler_)})),this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler_)),this.adapter.registerInteractionHandler("focus",this.focusHandler_),this.adapter.registerInteractionHandler("blur",this.blurHandler_)},t.prototype.registerDeactivationHandlers_=function(e){var t=this;"keydown"===e.type?this.adapter.registerInteractionHandler("keyup",this.deactivateHandler_):l.forEach((function(e){t.adapter.registerDocumentInteractionHandler(e,t.deactivateHandler_)}))},t.prototype.deregisterRootHandlers_=function(){var e=this;s.forEach((function(t){e.adapter.deregisterInteractionHandler(t,e.activateHandler_)})),this.adapter.deregisterInteractionHandler("focus",this.focusHandler_),this.adapter.deregisterInteractionHandler("blur",this.blurHandler_),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler_)},t.prototype.deregisterDeactivationHandlers_=function(){var e=this;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler_),l.forEach((function(t){e.adapter.deregisterDocumentInteractionHandler(t,e.deactivateHandler_)}))},t.prototype.removeCssVars_=function(){var e=this,n=t.strings;Object.keys(n).forEach((function(t){0===t.indexOf("VAR_")&&e.adapter.updateCssVariable(n[t],null)}))},t.prototype.activate_=function(e){var t=this;if(!this.adapter.isSurfaceDisabled()){var n=this.activationState_;if(!n.isActivated){var r=this.previousActivationEvent_;if(!(r&&void 0!==e&&r.type!==e.type))n.isActivated=!0,n.isProgrammatic=void 0===e,n.activationEvent=e,n.wasActivatedByPointer=!n.isProgrammatic&&(void 0!==e&&("mousedown"===e.type||"touchstart"===e.type||"pointerdown"===e.type)),void 0!==e&&u.length>0&&u.some((function(e){return t.adapter.containsEventTarget(e)}))?this.resetActivationState_():(void 0!==e&&(u.push(e.target),this.registerDeactivationHandlers_(e)),n.wasElementMadeActive=this.checkElementMadeActive_(e),n.wasElementMadeActive&&this.animateActivation_(),requestAnimationFrame((function(){u=[],n.wasElementMadeActive||void 0===e||" "!==e.key&&32!==e.keyCode||(n.wasElementMadeActive=t.checkElementMadeActive_(e),n.wasElementMadeActive&&t.animateActivation_()),n.wasElementMadeActive||(t.activationState_=t.defaultActivationState_())})))}}},t.prototype.checkElementMadeActive_=function(e){return void 0===e||"keydown"!==e.type||this.adapter.isSurfaceActive()},t.prototype.animateActivation_=function(){var e=this,n=t.strings,r=n.VAR_FG_TRANSLATE_START,i=n.VAR_FG_TRANSLATE_END,o=t.cssClasses,a=o.FG_DEACTIVATION,s=o.FG_ACTIVATION,l=t.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal_();var u="",c="";if(!this.adapter.isUnbounded()){var d=this.getFgTranslationCoordinates_(),f=d.startPoint,h=d.endPoint;u=f.x+"px, "+f.y+"px",c=h.x+"px, "+h.y+"px"}this.adapter.updateCssVariable(r,u),this.adapter.updateCssVariable(i,c),clearTimeout(this.activationTimer_),clearTimeout(this.fgDeactivationRemovalTimer_),this.rmBoundedActivationClasses_(),this.adapter.removeClass(a),this.adapter.computeBoundingRect(),this.adapter.addClass(s),this.activationTimer_=setTimeout((function(){return e.activationTimerCallback_()}),l)},t.prototype.getFgTranslationCoordinates_=function(){var e,t=this.activationState_,n=t.activationEvent;return{startPoint:e={x:(e=t.wasActivatedByPointer?(0,a.Y)(n,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):{x:this.frame_.width/2,y:this.frame_.height/2}).x-this.initialSize_/2,y:e.y-this.initialSize_/2},endPoint:{x:this.frame_.width/2-this.initialSize_/2,y:this.frame_.height/2-this.initialSize_/2}}},t.prototype.runDeactivationUXLogicIfReady_=function(){var e=this,n=t.cssClasses.FG_DEACTIVATION,r=this.activationState_,i=r.hasDeactivationUXRun,a=r.isActivated;(i||!a)&&this.activationAnimationHasEnded_&&(this.rmBoundedActivationClasses_(),this.adapter.addClass(n),this.fgDeactivationRemovalTimer_=setTimeout((function(){e.adapter.removeClass(n)}),o.KT.FG_DEACTIVATION_MS))},t.prototype.rmBoundedActivationClasses_=function(){var e=t.cssClasses.FG_ACTIVATION;this.adapter.removeClass(e),this.activationAnimationHasEnded_=!1,this.adapter.computeBoundingRect()},t.prototype.resetActivationState_=function(){var e=this;this.previousActivationEvent_=this.activationState_.activationEvent,this.activationState_=this.defaultActivationState_(),setTimeout((function(){return e.previousActivationEvent_=void 0}),t.numbers.TAP_DELAY_MS)},t.prototype.deactivate_=function(){var e=this,t=this.activationState_;if(t.isActivated){var n=(0,r.pi)({},t);t.isProgrammatic?(requestAnimationFrame((function(){return e.animateDeactivation_(n)})),this.resetActivationState_()):(this.deregisterDeactivationHandlers_(),requestAnimationFrame((function(){e.activationState_.hasDeactivationUXRun=!0,e.animateDeactivation_(n),e.resetActivationState_()})))}},t.prototype.animateDeactivation_=function(e){var t=e.wasActivatedByPointer,n=e.wasElementMadeActive;(t||n)&&this.runDeactivationUXLogicIfReady_()},t.prototype.layoutInternal_=function(){var e=this;this.frame_=this.adapter.computeBoundingRect();var n=Math.max(this.frame_.height,this.frame_.width);this.maxRadius_=this.adapter.isUnbounded()?n:Math.sqrt(Math.pow(e.frame_.width,2)+Math.pow(e.frame_.height,2))+t.numbers.PADDING;var r=Math.floor(n*t.numbers.INITIAL_ORIGIN_SCALE);this.adapter.isUnbounded()&&r%2!=0?this.initialSize_=r-1:this.initialSize_=r,this.fgScale_=""+this.maxRadius_/this.initialSize_,this.updateLayoutCssVars_()},t.prototype.updateLayoutCssVars_=function(){var e=t.strings,n=e.VAR_FG_SIZE,r=e.VAR_LEFT,i=e.VAR_TOP,o=e.VAR_FG_SCALE;this.adapter.updateCssVariable(n,this.initialSize_+"px"),this.adapter.updateCssVariable(o,this.fgScale_),this.adapter.isUnbounded()&&(this.unboundedCoords_={left:Math.round(this.frame_.width/2-this.initialSize_/2),top:Math.round(this.frame_.height/2-this.initialSize_/2)},this.adapter.updateCssVariable(r,this.unboundedCoords_.left+"px"),this.adapter.updateCssVariable(i,this.unboundedCoords_.top+"px"))},t}(i.K)},function(e,t,n){"use strict";n.d(t,{ZT:function(){return i},pi:function(){return o}});
133
+ /*! *****************************************************************************
134
+ Copyright (c) Microsoft Corporation.
135
+
136
+ Permission to use, copy, modify, and/or distribute this software for any
137
+ purpose with or without fee is hereby granted.
138
+
139
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
140
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
141
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
142
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
143
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
144
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
145
+ PERFORMANCE OF THIS SOFTWARE.
146
+ ***************************************************************************** */
147
+ var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)}},function(e,t,n){"use strict";n.d(t,{KT:function(){return o},UX:function(){return r},j2:function(){return i}});
148
+ /**
149
+ * @license
150
+ * Copyright 2016 Google Inc.
151
+ *
152
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
153
+ * of this software and associated documentation files (the "Software"), to deal
154
+ * in the Software without restriction, including without limitation the rights
155
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
156
+ * copies of the Software, and to permit persons to whom the Software is
157
+ * furnished to do so, subject to the following conditions:
158
+ *
159
+ * The above copyright notice and this permission notice shall be included in
160
+ * all copies or substantial portions of the Software.
161
+ *
162
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
163
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
164
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
165
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
166
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
167
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
168
+ * THE SOFTWARE.
169
+ */
170
+ var r={BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-ripple-upgraded--foreground-activation",FG_DEACTIVATION:"mdc-ripple-upgraded--foreground-deactivation",ROOT:"mdc-ripple-upgraded",UNBOUNDED:"mdc-ripple-upgraded--unbounded"},i={VAR_FG_SCALE:"--mdc-ripple-fg-scale",VAR_FG_SIZE:"--mdc-ripple-fg-size",VAR_FG_TRANSLATE_END:"--mdc-ripple-fg-translate-end",VAR_FG_TRANSLATE_START:"--mdc-ripple-fg-translate-start",VAR_LEFT:"--mdc-ripple-left",VAR_TOP:"--mdc-ripple-top"},o={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300}},function(e,t,n){"use strict";var r;function i(e,t){void 0===t&&(t=!1);var n,i=e.CSS;if("boolean"==typeof r&&!t)return r;if(!(i&&"function"==typeof i.supports))return!1;var o=i.supports("--css-vars","yes"),a=i.supports("(--css-vars: yes)")&&i.supports("color","#00000000");return n=o||a,t||(r=n),n}function o(e,t,n){if(!e)return{x:0,y:0};var r,i,o=t.x,a=t.y,s=o+n.left,l=a+n.top;if("touchstart"===e.type){var u=e;r=u.changedTouches[0].pageX-s,i=u.changedTouches[0].pageY-l}else{var c=e;r=c.pageX-s,i=c.pageY-l}return{x:r,y:i}}n.d(t,{Y:function(){return o},x:function(){return i}})},function(e,t,n){"use strict";n.d(t,{M:function(){return a}});var r=n(127),i=n(0),o=n(169),a=function(e,t){var n=t.id?t.id:t.label?e+"-"+t.label:(0,o.k)(e);return(0,r.CR)((0,i.useState)(n),1)[0]}},function(e,t,n){"use strict";n.d(t,{k:function(){return r}});var r=function(e){return e+"-"+(Math.random()+Math.random()+1).toString(36).substring(2)}},function(e,t,n){"use strict";n.r(t),n.d(t,{Card:function(){return f},CardActionButton:function(){return _},CardActionButtons:function(){return v},CardActionIcon:function(){return y},CardActionIcons:function(){return b},CardActions:function(){return g},CardMedia:function(){return h},CardMediaContent:function(){return p},CardPrimaryAction:function(){return m}});var r=n(127),i=n(0),o=n(162),a=n(191),s=n(145),l=(0,o.U8)({surface:!1})((0,s.LM)((function(e,t){var n=e.dense,o=e.raised,a=e.unelevated,l=e.outlined,d=e.danger,f=e.icon,h=e.label,p=e.trailingIcon,m=e.children,g=(0,r._T)(e,["dense","raised","unelevated","outlined","danger","icon","label","trailingIcon","children"]),v=(0,s.oC)(e,["mdc-button",{"mdc-button--dense":n,"mdc-button--raised":o,"mdc-button--unelevated":a,"mdc-button--outlined":l}]);if(d){var b=g.style||{};g.style=(0,r.pi)((0,r.pi)({},{"--mdc-theme-primary":"var(--mdc-theme-error)","--mdc-theme-on-primary":"var(--mdc-theme-on-error)"}),b)}return i.createElement(s.Vp,(0,r.pi)({tag:"button"},g,{ref:t,className:v}),i.createElement(u,null),!!f&&i.createElement(c,{icon:f}),i.createElement("span",{className:"mdc-button__label"},h,m),!!p&&i.createElement(c,{icon:p}))}))),u=i.memo((function(){return i.createElement("div",{className:"mdc-button__ripple"})})),c=(0,s.W5)((function(e,t){var n=(0,s.oC)(e,["mdc-button__icon"]);return i.createElement(a.Icon,(0,r.pi)({},e,{className:n,ref:t}))})),d=n(149),f=(0,s.LM)((function(e,t){var n=e.outlined,o=(0,r._T)(e,["outlined"]),a=(0,s.oC)(e,["mdc-card",{"mdc-card--outlined":n}]);return i.createElement(s.Vp,(0,r.pi)({},o,{ref:t,className:a}))})),h=(0,s.LM)((function(e,t){var n=e.square,o=e.sixteenByNine,a=(0,r._T)(e,["square","sixteenByNine"]),l=(0,s.oC)(e,["mdc-card__media",{"mdc-card__media--square":n,"mdc-card__media--16-9":o}]);return i.createElement(s.Vp,(0,r.pi)({tag:"section"},a,{ref:t,className:l}))})),p=(0,s.LM)((function(e,t){var n=(0,s.oC)(e,["mdc-card__media-content"]);return i.createElement(s.Vp,(0,r.pi)({},e,{ref:t,className:n}))})),m=(0,o.U8)({surface:!1})((0,s.LM)((function(e,t){var n=(0,s.oC)(e,["mdc-card__primary-action"]);return i.createElement(s.Vp,(0,r.pi)({},e,{ref:t,className:n}))}))),g=(0,s.LM)((function(e,t){var n=e.fullBleed,o=(0,r._T)(e,["fullBleed"]),a=(0,s.oC)(e,["mdc-card__actions",{"mdc-card__actions--full-bleed":n}]);return i.createElement(s.Vp,(0,r.pi)({tag:"section"},o,{ref:t,className:a}))})),v=(0,s.LM)((function(e,t){var n=(0,s.oC)(e,["mdc-card__action-buttons"]);return i.createElement(s.Vp,(0,r.pi)({},e,{ref:t,className:n}))})),b=(0,s.LM)((function(e,t){var n=(0,s.oC)(e,["mdc-card__action-icons"]);return i.createElement(s.Vp,(0,r.pi)({},e,{ref:t,className:n}))})),y=(0,s.LM)((function(e,t){var n=(0,s.oC)(e,["mdc-card__action","mdc-card__action--icon"]);return i.createElement(d.IconButton,(0,r.pi)({},e,{ref:t,className:n}))})),_=(0,s.LM)((function(e,t){var n=(0,s.oC)(e,["mdc-card__action","mdc-card__action--button"]);return i.createElement(l,(0,r.pi)({},e,{ref:t,className:n}))}))},function(e,t,n){"use strict";n.d(t,{G:function(){return r}});var r=function(e){var t,n,r,i=Array.isArray(e)?e[0]:e;return(null===(t=null==i?void 0:i.type)||void 0===t?void 0:t.displayName)||(null===(n=null==i?void 0:i.constructor)||void 0===n?void 0:n.displayName)||(null==i?void 0:i.displayName)||(null==i?void 0:i.name)||(null===(r=null==i?void 0:i.constructor)||void 0===r?void 0:r.name)||"Unknown"}},function(e,t,n){"use strict";n.d(t,{Fn:function(){return r},ku:function(){return _}});
171
+ /**
172
+ * @license
173
+ * Copyright 2020 Google Inc.
174
+ *
175
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
176
+ * of this software and associated documentation files (the "Software"), to deal
177
+ * in the Software without restriction, including without limitation the rights
178
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
179
+ * copies of the Software, and to permit persons to whom the Software is
180
+ * furnished to do so, subject to the following conditions:
181
+ *
182
+ * The above copyright notice and this permission notice shall be included in
183
+ * all copies or substantial portions of the Software.
184
+ *
185
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
186
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
187
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
188
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
189
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
190
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
191
+ * THE SOFTWARE.
192
+ */
193
+ var r={UNKNOWN:"Unknown",BACKSPACE:"Backspace",ENTER:"Enter",SPACEBAR:"Spacebar",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",END:"End",HOME:"Home",ARROW_LEFT:"ArrowLeft",ARROW_UP:"ArrowUp",ARROW_RIGHT:"ArrowRight",ARROW_DOWN:"ArrowDown",DELETE:"Delete",ESCAPE:"Escape"},i=new Set;i.add(r.BACKSPACE),i.add(r.ENTER),i.add(r.SPACEBAR),i.add(r.PAGE_UP),i.add(r.PAGE_DOWN),i.add(r.END),i.add(r.HOME),i.add(r.ARROW_LEFT),i.add(r.ARROW_UP),i.add(r.ARROW_RIGHT),i.add(r.ARROW_DOWN),i.add(r.DELETE),i.add(r.ESCAPE);var o=8,a=13,s=32,l=33,u=34,c=35,d=36,f=37,h=38,p=39,m=40,g=46,v=27,b=new Map;b.set(o,r.BACKSPACE),b.set(a,r.ENTER),b.set(s,r.SPACEBAR),b.set(l,r.PAGE_UP),b.set(u,r.PAGE_DOWN),b.set(c,r.END),b.set(d,r.HOME),b.set(f,r.ARROW_LEFT),b.set(h,r.ARROW_UP),b.set(p,r.ARROW_RIGHT),b.set(m,r.ARROW_DOWN),b.set(g,r.DELETE),b.set(v,r.ESCAPE);var y=new Set;function _(e){var t=e.key;if(i.has(t))return t;var n=b.get(e.keyCode);return n||r.UNKNOWN}y.add(r.PAGE_UP),y.add(r.PAGE_DOWN),y.add(r.END),y.add(r.HOME),y.add(r.ARROW_LEFT),y.add(r.ARROW_UP),y.add(r.ARROW_RIGHT),y.add(r.ARROW_DOWN)},function(e,t,n){"use strict";n.d(t,{HC:function(){return c},JV:function(){return v},NX:function(){return g},Rx:function(){return b}});var r=n(127),i=n(0),o=n(145),a=n(22),s=n.n(a),l=n(162),u=n(191),c=(0,l.U8)({surface:!1})((0,o.LM)((function(e,t){e.selected,e.activated,e.disabled;var n=(0,r._T)(e,["selected","activated","disabled"]),a=(0,o.oC)(e,["mdc-list-item",{"mdc-list-item--selected":e.selected,"mdc-list-item--activated":e.activated,"mdc-list-item--disabled":e.disabled}]);return i.createElement(o.Vp,(0,r.pi)({tag:"li",tabIndex:0},n,{className:a,ref:t}),i.createElement(l.aw,{className:"mdc-list-item__ripple"}),n.children)}))),d=(0,o.LM)((function(e,t){var n=(0,o.oC)(e,["mdc-list-item__text"]);return i.createElement(o.Vp,(0,r.pi)({tag:"span"},e,{ref:t,className:n}))})),f=(0,o.LM)((function(e,t){var n=(0,o.oC)(e,["mdc-list-item__primary-text"]);return i.createElement(o.Vp,(0,r.pi)({tag:"span"},e,{ref:t,className:n}))})),h=(0,o.LM)((function(e,t){var n=(0,o.oC)(e,["mdc-list-item__secondary-text"]);return i.createElement(o.Vp,(0,r.pi)({tag:"span"},e,{ref:t,className:n}))})),p=(0,o.LM)((function(e,t){var n=(0,o.oC)(e,["mdc-list-item__graphic"]);return i.createElement(u.Icon,(0,r.pi)({},e,{"aria-hidden":"true",ref:t,className:n}))})),m=(0,o.LM)((function(e,t){var n=(0,o.oC)(e,["mdc-list-item__meta"]);if(e.icon)return i.createElement(u.Icon,(0,r.pi)({},e,{"aria-hidden":"true",ref:t,className:n}));if(i.isValidElement(e.children)){e.children;var a=(0,r._T)(e,["children"]);return i.cloneElement(e.children,(0,r.pi)((0,r.pi)((0,r.pi)({},a),e.children.props),{className:s()(n,e.children.props.className)}))}return i.createElement(o.Vp,(0,r.pi)({},e,{ref:t,className:n}))})),g=(0,o.LM)((function(e,t){var n=(0,o.oC)(e,["mdc-list-group"]);return i.createElement(o.Vp,(0,r.pi)({},e,{ref:t,className:n}))})),v=(0,o.LM)((function(e,t){var n=(0,o.oC)(e,["mdc-list-group__subheader"]);return i.createElement(o.Vp,(0,r.pi)({},e,{ref:t,className:n}))})),b=(0,o.LM)((function(e,t){var n=(0,o.oC)(e,["mdc-list-divider"]);return i.createElement(o.Vp,(0,r.pi)({tag:"li",role:"separator"},e,{ref:t,className:n}))}));(0,o.LM)((function(e,t){var n=e.text,o=e.secondaryText,a=e.graphic,s=e.metaIcon,u=e.meta,g=e.children,v=(0,r._T)(e,["text","secondaryText","graphic","metaIcon","meta","children"]),b=n&&void 0!==o?i.createElement(f,null,n):n,y=void 0!==o?i.createElement(h,null,o):null;return i.createElement(c,(0,r.pi)({},v,{ref:t}),i.createElement(l.aw,{className:"mdc-list-item__ripple"}),void 0!==a&&i.createElement(p,{icon:a}),null!==y?i.createElement(d,null,b,y):b,(!!u||!!s)&&i.createElement(m,{icon:s},u),g)}))},function(e,t,n){"use strict";n.d(t,{k:function(){return l}});
194
+ /*! *****************************************************************************
195
+ Copyright (c) Microsoft Corporation.
196
+
197
+ Permission to use, copy, modify, and/or distribute this software for any
198
+ purpose with or without fee is hereby granted.
199
+
200
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
201
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
202
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
203
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
204
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
205
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
206
+ PERFORMANCE OF THIS SOFTWARE.
207
+ ***************************************************************************** */
208
+ var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};var i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i.apply(this,arguments)};function o(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var a=n(160),s=n(175),l=function(e){function t(n){var r=e.call(this,i(i({},t.defaultAdapter),n))||this;return r.isSurfaceOpen=!1,r.isQuickOpen=!1,r.isHoistedElement=!1,r.isFixedPosition=!1,r.openAnimationEndTimerId=0,r.closeAnimationEndTimerId=0,r.animationRequestId=0,r.anchorCorner=s.Ns.TOP_START,r.originCorner=s.Ns.TOP_START,r.anchorMargin={top:0,right:0,bottom:0,left:0},r.position={x:0,y:0},r}return function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return s.UX},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return s.j2},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return s.KT},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Corner",{get:function(){return s.Ns},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},hasAnchor:function(){return!1},isElementInContainer:function(){return!1},isFocused:function(){return!1},isRtl:function(){return!1},getInnerDimensions:function(){return{height:0,width:0}},getAnchorDimensions:function(){return null},getWindowDimensions:function(){return{height:0,width:0}},getBodyDimensions:function(){return{height:0,width:0}},getWindowScroll:function(){return{x:0,y:0}},setPosition:function(){},setMaxHeight:function(){},setTransformOrigin:function(){},saveFocus:function(){},restoreFocus:function(){},notifyClose:function(){},notifyOpen:function(){}}},enumerable:!0,configurable:!0}),t.prototype.init=function(){var e=t.cssClasses,n=e.ROOT,r=e.OPEN;if(!this.adapter.hasClass(n))throw new Error(n+" class required in root element.");this.adapter.hasClass(r)&&(this.isSurfaceOpen=!0)},t.prototype.destroy=function(){clearTimeout(this.openAnimationEndTimerId),clearTimeout(this.closeAnimationEndTimerId),cancelAnimationFrame(this.animationRequestId)},t.prototype.setAnchorCorner=function(e){this.anchorCorner=e},t.prototype.flipCornerHorizontally=function(){this.originCorner=this.originCorner^s.HX.RIGHT},t.prototype.setAnchorMargin=function(e){this.anchorMargin.top=e.top||0,this.anchorMargin.right=e.right||0,this.anchorMargin.bottom=e.bottom||0,this.anchorMargin.left=e.left||0},t.prototype.setIsHoisted=function(e){this.isHoistedElement=e},t.prototype.setFixedPosition=function(e){this.isFixedPosition=e},t.prototype.setAbsolutePosition=function(e,t){this.position.x=this.isFinite(e)?e:0,this.position.y=this.isFinite(t)?t:0},t.prototype.setQuickOpen=function(e){this.isQuickOpen=e},t.prototype.isOpen=function(){return this.isSurfaceOpen},t.prototype.open=function(){var e=this;this.isSurfaceOpen||(this.adapter.saveFocus(),this.isQuickOpen?(this.isSurfaceOpen=!0,this.adapter.addClass(t.cssClasses.OPEN),this.dimensions=this.adapter.getInnerDimensions(),this.autoposition(),this.adapter.notifyOpen()):(this.adapter.addClass(t.cssClasses.ANIMATING_OPEN),this.animationRequestId=requestAnimationFrame((function(){e.adapter.addClass(t.cssClasses.OPEN),e.dimensions=e.adapter.getInnerDimensions(),e.autoposition(),e.openAnimationEndTimerId=setTimeout((function(){e.openAnimationEndTimerId=0,e.adapter.removeClass(t.cssClasses.ANIMATING_OPEN),e.adapter.notifyOpen()}),s.KT.TRANSITION_OPEN_DURATION)})),this.isSurfaceOpen=!0))},t.prototype.close=function(e){var n=this;void 0===e&&(e=!1),this.isSurfaceOpen&&(this.isQuickOpen?(this.isSurfaceOpen=!1,e||this.maybeRestoreFocus(),this.adapter.removeClass(t.cssClasses.OPEN),this.adapter.removeClass(t.cssClasses.IS_OPEN_BELOW),this.adapter.notifyClose()):(this.adapter.addClass(t.cssClasses.ANIMATING_CLOSED),requestAnimationFrame((function(){n.adapter.removeClass(t.cssClasses.OPEN),n.adapter.removeClass(t.cssClasses.IS_OPEN_BELOW),n.closeAnimationEndTimerId=setTimeout((function(){n.closeAnimationEndTimerId=0,n.adapter.removeClass(t.cssClasses.ANIMATING_CLOSED),n.adapter.notifyClose()}),s.KT.TRANSITION_CLOSE_DURATION)})),this.isSurfaceOpen=!1,e||this.maybeRestoreFocus()))},t.prototype.handleBodyClick=function(e){var t=e.target;this.adapter.isElementInContainer(t)||this.close()},t.prototype.handleKeydown=function(e){var t=e.keyCode;("Escape"===e.key||27===t)&&this.close()},t.prototype.autoposition=function(){var e;this.measurements=this.getAutoLayoutmeasurements();var n=this.getoriginCorner(),r=this.getMenuSurfaceMaxHeight(n),i=this.hasBit(n,s.HX.BOTTOM)?"bottom":"top",o=this.hasBit(n,s.HX.RIGHT)?"right":"left",a=this.getHorizontalOriginOffset(n),l=this.getVerticalOriginOffset(n),u=this.measurements,c=u.anchorSize,d=u.surfaceSize,f=((e={})[o]=a,e[i]=l,e);c.width/d.width>s.KT.ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO&&(o="center"),(this.isHoistedElement||this.isFixedPosition)&&this.adjustPositionForHoistedElement(f),this.adapter.setTransformOrigin(o+" "+i),this.adapter.setPosition(f),this.adapter.setMaxHeight(r?r+"px":""),this.hasBit(n,s.HX.BOTTOM)||this.adapter.addClass(t.cssClasses.IS_OPEN_BELOW)},t.prototype.getAutoLayoutmeasurements=function(){var e=this.adapter.getAnchorDimensions(),t=this.adapter.getBodyDimensions(),n=this.adapter.getWindowDimensions(),r=this.adapter.getWindowScroll();return e||(e={top:this.position.y,right:this.position.x,bottom:this.position.y,left:this.position.x,width:0,height:0}),{anchorSize:e,bodySize:t,surfaceSize:this.dimensions,viewportDistance:{top:e.top,right:n.width-e.right,bottom:n.height-e.bottom,left:e.left},viewportSize:n,windowScroll:r}},t.prototype.getoriginCorner=function(){var e,n,r=this.originCorner,i=this.measurements,o=i.viewportDistance,a=i.anchorSize,l=i.surfaceSize,u=t.numbers.MARGIN_TO_EDGE;this.hasBit(this.anchorCorner,s.HX.BOTTOM)?(e=o.top-u+a.height+this.anchorMargin.bottom,n=o.bottom-u-this.anchorMargin.bottom):(e=o.top-u+this.anchorMargin.top,n=o.bottom-u+a.height-this.anchorMargin.top),!(n-l.height>0)&&e>=n&&(r=this.setBit(r,s.HX.BOTTOM));var c,d,f=this.adapter.isRtl(),h=this.hasBit(this.anchorCorner,s.HX.FLIP_RTL),p=this.hasBit(this.anchorCorner,s.HX.RIGHT)||this.hasBit(r,s.HX.RIGHT),m=!1;(m=f&&h?!p:p)?(c=o.left+a.width+this.anchorMargin.right,d=o.right-this.anchorMargin.right):(c=o.left+this.anchorMargin.left,d=o.right+a.width-this.anchorMargin.left);var g=c-l.width>0,v=d-l.width>0,b=this.hasBit(r,s.HX.FLIP_RTL)&&this.hasBit(r,s.HX.RIGHT);return v&&b&&f||!g&&b?r=this.unsetBit(r,s.HX.RIGHT):(g&&m&&f||g&&!m&&p||!v&&c>=d)&&(r=this.setBit(r,s.HX.RIGHT)),r},t.prototype.getMenuSurfaceMaxHeight=function(e){var n=this.measurements.viewportDistance,r=0,i=this.hasBit(e,s.HX.BOTTOM),o=this.hasBit(this.anchorCorner,s.HX.BOTTOM),a=t.numbers.MARGIN_TO_EDGE;return i?(r=n.top+this.anchorMargin.top-a,o||(r+=this.measurements.anchorSize.height)):(r=n.bottom-this.anchorMargin.bottom+this.measurements.anchorSize.height-a,o&&(r-=this.measurements.anchorSize.height)),r},t.prototype.getHorizontalOriginOffset=function(e){var t=this.measurements.anchorSize,n=this.hasBit(e,s.HX.RIGHT),r=this.hasBit(this.anchorCorner,s.HX.RIGHT);if(n){var i=r?t.width-this.anchorMargin.left:this.anchorMargin.right;return this.isHoistedElement||this.isFixedPosition?i-(this.measurements.viewportSize.width-this.measurements.bodySize.width):i}return r?t.width-this.anchorMargin.right:this.anchorMargin.left},t.prototype.getVerticalOriginOffset=function(e){var t=this.measurements.anchorSize,n=this.hasBit(e,s.HX.BOTTOM),r=this.hasBit(this.anchorCorner,s.HX.BOTTOM);return n?r?t.height-this.anchorMargin.top:-this.anchorMargin.bottom:r?t.height+this.anchorMargin.bottom:this.anchorMargin.top},t.prototype.adjustPositionForHoistedElement=function(e){var t,n,r=this.measurements,i=r.windowScroll,a=r.viewportDistance,s=Object.keys(e);try{for(var l=o(s),u=l.next();!u.done;u=l.next()){var c=u.value,d=e[c]||0;d+=a[c],this.isFixedPosition||("top"===c?d+=i.y:"bottom"===c?d-=i.y:"left"===c?d+=i.x:d-=i.x),e[c]=d}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}},t.prototype.maybeRestoreFocus=function(){var e=this.adapter.isFocused(),t=document.activeElement&&this.adapter.isElementInContainer(document.activeElement);(e||t)&&this.adapter.restoreFocus()},t.prototype.hasBit=function(e,t){return Boolean(e&t)},t.prototype.setBit=function(e,t){return e|t},t.prototype.unsetBit=function(e,t){return e^t},t.prototype.isFinite=function(e){return"number"==typeof e&&isFinite(e)},t}(a.K)},function(e,t,n){"use strict";n.d(t,{HX:function(){return r},KT:function(){return s},Ns:function(){return i},UX:function(){return o},j2:function(){return a}});
209
+ /**
210
+ * @license
211
+ * Copyright 2018 Google Inc.
212
+ *
213
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
214
+ * of this software and associated documentation files (the "Software"), to deal
215
+ * in the Software without restriction, including without limitation the rights
216
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
217
+ * copies of the Software, and to permit persons to whom the Software is
218
+ * furnished to do so, subject to the following conditions:
219
+ *
220
+ * The above copyright notice and this permission notice shall be included in
221
+ * all copies or substantial portions of the Software.
222
+ *
223
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
224
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
225
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
226
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
227
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
228
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
229
+ * THE SOFTWARE.
230
+ */
231
+ var r,i,o={ANCHOR:"mdc-menu-surface--anchor",ANIMATING_CLOSED:"mdc-menu-surface--animating-closed",ANIMATING_OPEN:"mdc-menu-surface--animating-open",FIXED:"mdc-menu-surface--fixed",IS_OPEN_BELOW:"mdc-menu-surface--is-open-below",OPEN:"mdc-menu-surface--open",ROOT:"mdc-menu-surface"},a={CLOSED_EVENT:"MDCMenuSurface:closed",OPENED_EVENT:"MDCMenuSurface:opened",FOCUSABLE_ELEMENTS:["button:not(:disabled)",'[href]:not([aria-disabled="true"])',"input:not(:disabled)","select:not(:disabled)","textarea:not(:disabled)",'[tabindex]:not([tabindex="-1"]):not([aria-disabled="true"])'].join(", ")},s={TRANSITION_OPEN_DURATION:120,TRANSITION_CLOSE_DURATION:75,MARGIN_TO_EDGE:32,ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO:.67};!function(e){e[e.BOTTOM=1]="BOTTOM",e[e.CENTER=2]="CENTER",e[e.RIGHT=4]="RIGHT",e[e.FLIP_RTL=8]="FLIP_RTL"}(r||(r={})),function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=4]="TOP_RIGHT",e[e.BOTTOM_LEFT=1]="BOTTOM_LEFT",e[e.BOTTOM_RIGHT=5]="BOTTOM_RIGHT",e[e.TOP_START=8]="TOP_START",e[e.TOP_END=12]="TOP_END",e[e.BOTTOM_START=9]="BOTTOM_START",e[e.BOTTOM_END=13]="BOTTOM_END"}(i||(i={}))},function(e,t,n){"use strict";n.d(t,{W:function(){return r}});var r=function(e,t,n){void 0===t&&(t=1),void 0===n&&(n=1),window.requestAnimationFrame((function(){n>=t?e():r(e,t,n+1)}))}},function(e,t,n){"use strict";n.d(t,{_:function(){return f}});var r=n(127),i=n(0),o=n(158),a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},a(e,t)};var s=function(){return s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},s.apply(this,arguments)};var l=n(160),u={LABEL_FLOAT_ABOVE:"mdc-floating-label--float-above",LABEL_REQUIRED:"mdc-floating-label--required",LABEL_SHAKE:"mdc-floating-label--shake",ROOT:"mdc-floating-label"},c=function(e){function t(n){var r=e.call(this,s(s({},t.defaultAdapter),n))||this;return r.shakeAnimationEndHandler_=function(){return r.handleShakeAnimationEnd_()},r}return function(e,t){function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return u},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},getWidth:function(){return 0},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){}}},enumerable:!0,configurable:!0}),t.prototype.init=function(){this.adapter.registerInteractionHandler("animationend",this.shakeAnimationEndHandler_)},t.prototype.destroy=function(){this.adapter.deregisterInteractionHandler("animationend",this.shakeAnimationEndHandler_)},t.prototype.getWidth=function(){return this.adapter.getWidth()},t.prototype.shake=function(e){var n=t.cssClasses.LABEL_SHAKE;e?this.adapter.addClass(n):this.adapter.removeClass(n)},t.prototype.float=function(e){var n=t.cssClasses,r=n.LABEL_FLOAT_ABOVE,i=n.LABEL_SHAKE;e?this.adapter.addClass(r):(this.adapter.removeClass(r),this.adapter.removeClass(i))},t.prototype.setRequired=function(e){var n=t.cssClasses.LABEL_REQUIRED;e?this.adapter.addClass(n):this.adapter.removeClass(n)},t.prototype.handleShakeAnimationEnd_=function(){var e=t.cssClasses.LABEL_SHAKE;this.adapter.removeClass(e)},t}(l.K),d=n(145),f=(0,d.LM)((function(e,t){var n=function(e){var t=(0,o.j)({props:e,elements:{rootEl:!0},api:function(e){var t=e.foundation;return{getWidth:function(){return t.getWidth()},setRequired:function(e){return t.setRequired(e)}}},foundation:function(e){var t=e.rootEl;return new c({addClass:function(e){return t.addClass(e)},removeClass:function(e){return t.removeClass(e)},getWidth:function(){var e;return(null===(e=t.ref)||void 0===e?void 0:e.scrollWidth)||0},registerInteractionHandler:function(e,n){return t.addEventListener(e,n)},deregisterInteractionHandler:function(e,n){return t.removeEventListener(e,n)}})}}),n=t.foundation,a=(0,r._T)(t,["foundation"]);return(0,i.useEffect)((function(){n.shake(!!e.shake)}),[e.shake,n]),(0,i.useEffect)((function(){n.float(!!e.float)}),[e.float,n]),(0,r.pi)({foundation:n},a)}(e).rootEl,a=(e.shake,e.float,e.apiRef,(0,r._T)(e,["shake","float","apiRef"]));return i.createElement("span",(0,r.pi)({},n.props((0,r.pi)((0,r.pi)({},a),{className:"mdc-floating-label"})),{ref:(0,d.lq)(n.setRef,t)}))}))},function(e,t,n){"use strict";n.d(t,{_:function(){return p}});var r=n(127),i=n(0),o=n(158),a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},a(e,t)};var s=function(){return s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},s.apply(this,arguments)};var l=n(160),u={NOTCH_ELEMENT_SELECTOR:".mdc-notched-outline__notch"},c={NOTCH_ELEMENT_PADDING:8},d={NO_LABEL:"mdc-notched-outline--no-label",OUTLINE_NOTCHED:"mdc-notched-outline--notched",OUTLINE_UPGRADED:"mdc-notched-outline--upgraded"},f=function(e){function t(n){return e.call(this,s(s({},t.defaultAdapter),n))||this}return function(e,t){function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),Object.defineProperty(t,"strings",{get:function(){return u},enumerable:!0,configurable:!0}),Object.defineProperty(t,"cssClasses",{get:function(){return d},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return c},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},setNotchWidthProperty:function(){},removeNotchWidthProperty:function(){}}},enumerable:!0,configurable:!0}),t.prototype.notch=function(e){var n=t.cssClasses.OUTLINE_NOTCHED;e>0&&(e+=c.NOTCH_ELEMENT_PADDING),this.adapter.setNotchWidthProperty(e),this.adapter.addClass(n)},t.prototype.closeNotch=function(){var e=t.cssClasses.OUTLINE_NOTCHED;this.adapter.removeClass(e),this.adapter.removeNotchWidthProperty()},t}(l.K),h=n(145),p=(0,h.LM)((function(e,t){var n=e.children,a=(0,r._T)(e,["children"]),s=function(e){var t=(0,o.j)({props:e,elements:{rootEl:!0,notchedEl:!0},foundation:function(e){var t=e.rootEl,n=e.notchedEl;return new f({addClass:function(e){return t.addClass(e)},removeClass:function(e){return t.removeClass(e)},setNotchWidthProperty:function(e){return n.setStyle("width",e+"px")},removeNotchWidthProperty:function(){return n.setStyle("width","")}})}}),n=t.foundation,a=(0,r._T)(t,["foundation"]),s=a.rootEl,l=(0,i.useRef)();return(0,i.useEffect)((function(){e.notch?n.notch(e.notch):n.closeNotch()}),[e.notch,n]),(0,i.useEffect)((function(){var e;l.current=(null===(e=s.ref)||void 0===e?void 0:e.querySelector(".mdc-floating-label"))||void 0;var t=l.current;t?(t.style.transitionDuration="0s",s.addClass(f.cssClasses.OUTLINE_UPGRADED),requestAnimationFrame((function(){t&&(t.style.transitionDuration="")}))):s.addClass(f.cssClasses.NO_LABEL)}),[s]),(0,r.pi)({foundation:n},a)}(e),l=s.rootEl,u=s.notchedEl;return i.createElement(h.Vp,(0,r.pi)({},a,{element:l,className:"mdc-notched-outline",ref:t}),i.createElement(m,null),i.createElement("div",(0,r.pi)({},u.props({className:"mdc-notched-outline__notch"}),{ref:u.setRef}),n),i.createElement(g,null))})),m=i.memo((function(){return i.createElement("div",{className:"mdc-notched-outline__leading"})})),g=i.memo((function(){return i.createElement("div",{className:"mdc-notched-outline__trailing"})}))},function(e,t,n){"use strict";n.d(t,{D:function(){return f}});var r=n(127),i=n(0),o=n(158),a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},a(e,t)};var s=function(){return s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},s.apply(this,arguments)};var l=n(160),u={LINE_RIPPLE_ACTIVE:"mdc-line-ripple--active",LINE_RIPPLE_DEACTIVATING:"mdc-line-ripple--deactivating"},c=function(e){function t(n){var r=e.call(this,s(s({},t.defaultAdapter),n))||this;return r.transitionEndHandler_=function(e){return r.handleTransitionEnd(e)},r}return function(e,t){function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return u},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setStyle:function(){},registerEventHandler:function(){},deregisterEventHandler:function(){}}},enumerable:!0,configurable:!0}),t.prototype.init=function(){this.adapter.registerEventHandler("transitionend",this.transitionEndHandler_)},t.prototype.destroy=function(){this.adapter.deregisterEventHandler("transitionend",this.transitionEndHandler_)},t.prototype.activate=function(){this.adapter.removeClass(u.LINE_RIPPLE_DEACTIVATING),this.adapter.addClass(u.LINE_RIPPLE_ACTIVE)},t.prototype.setRippleCenter=function(e){this.adapter.setStyle("transform-origin",e+"px center")},t.prototype.deactivate=function(){this.adapter.addClass(u.LINE_RIPPLE_DEACTIVATING)},t.prototype.handleTransitionEnd=function(e){var t=this.adapter.hasClass(u.LINE_RIPPLE_DEACTIVATING);"opacity"===e.propertyName&&t&&(this.adapter.removeClass(u.LINE_RIPPLE_ACTIVE),this.adapter.removeClass(u.LINE_RIPPLE_DEACTIVATING))},t}(l.K),d=n(145),f=(0,d.LM)((function(e,t){e.active,e.center;var n=(0,r._T)(e,["active","center"]),a=function(e){var t=(0,o.j)({props:e,elements:{rootEl:!0},foundation:function(e){var t=e.rootEl;return new c({addClass:function(e){return t.addClass(e)},removeClass:function(e){return t.removeClass(e)},hasClass:function(e){return t.hasClass(e)},setStyle:function(e,n){return t.setStyle(e,n)},registerEventHandler:function(e,n){return t.addEventListener(e,n)},deregisterEventHandler:function(e,n){return t.removeEventListener(e,n)}})}}),n=t.foundation,a=(0,r._T)(t,["foundation"]),s=a.rootEl;return(0,i.useEffect)((function(){e.active?n.activate():n.deactivate()}),[e.active,n]),(0,i.useEffect)((function(){"number"==typeof e.center&&n.setRippleCenter(e.center)}),[e.center,n]),s.setProp("onTransitionEnd",(function(e){return n.handleTransitionEnd(e)}),!0),(0,r.pi)({foundation:n},a)}(e).rootEl;return i.createElement(d.Vp,(0,r.pi)({},n,{tag:"span",element:a,className:"mdc-line-ripple",ref:t}))}))},function(e,t,n){"use strict";function r(e,t){return new Promise((function(n,r){var i=new Image;t&&(i.crossOrigin=t),i.onload=function(){n(i)},i.onerror=r,i.src=e}))}function i(e){var t=document.createElement("canvas");return t.width=e.width,t.height=e.height,t.getContext("2d").drawImage(e,0,0,e.width,e.height,0,0,e.width,e.height),t}function o(e,t){e=e||[],"string"==typeof(t=t||{})&&(t={type:t});try{return new Blob(e,t)}catch(i){if("TypeError"!==i.name)throw i;for(var n=new("undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder),r=0;r<e.length;r+=1)n.append(e[r]);return n.getBlob(t.type)}}function a(e){return("undefined"!=typeof URL?URL:webkitURL).createObjectURL(e)}function s(e){return("undefined"!=typeof URL?URL:webkitURL).revokeObjectURL(e)}function l(e){return new Promise((function(t,n){var r=new FileReader,i="function"==typeof r.readAsBinaryString;r.onloadend=function(){var e=r.result||"";if(i)return t(e);t(y(e))},r.onerror=n,i?r.readAsBinaryString(e):r.readAsArrayBuffer(e)}))}function u(e,t){var n=[_(atob(e))];return t?o(n,{type:t}):o(n)}function c(e,t){return u(btoa(e),t)}function d(e){return l(e).then(btoa)}function f(e){var t=e.match(/data:([^;]+)/)[1],n=e.replace(/^[^,]+,/,"");return o([_(atob(n))],{type:t})}function h(e){return d(e).then((function(t){return"data:"+e.type+";base64,"+t}))}function p(e,t,n,o){return t=t||"image/png",r(e,n).then(i).then((function(e){return e.toDataURL(t,o)}))}function m(e,t,n){return"function"==typeof e.toBlob?new Promise((function(r){e.toBlob(r,t,n)})):Promise.resolve(f(e.toDataURL(t,n)))}function g(e,t,n,o){return t=t||"image/png",r(e,n).then(i).then((function(e){return m(e,t,o)}))}function v(e,t){return o([e],t)}function b(e){return new Promise((function(t,n){var r=new FileReader;r.onloadend=function(){var e=r.result||new ArrayBuffer(0);t(e)},r.onerror=n,r.readAsArrayBuffer(e)}))}function y(e){for(var t="",n=new Uint8Array(e),r=n.byteLength,i=-1;++i<r;)t+=String.fromCharCode(n[i]);return t}function _(e){for(var t=e.length,n=new ArrayBuffer(t),r=new Uint8Array(n),i=-1;++i<t;)r[i]=e.charCodeAt(i);return n}n.r(t),n.d(t,{arrayBufferToBinaryString:function(){return y},arrayBufferToBlob:function(){return v},base64StringToBlob:function(){return u},binaryStringToArrayBuffer:function(){return _},binaryStringToBlob:function(){return c},blobToArrayBuffer:function(){return b},blobToBase64String:function(){return d},blobToBinaryString:function(){return l},blobToDataURL:function(){return h},canvasToBlob:function(){return m},createBlob:function(){return o},createObjectURL:function(){return a},dataURLToBlob:function(){return f},imgSrcToBlob:function(){return g},imgSrcToDataURL:function(){return p},revokeObjectURL:function(){return s}})},function(e,t,n){"use strict";n.r(t),n.d(t,{Checkbox:function(){return _}});var r=n(127),i=n(0),o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},o(e,t)};var a=function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},a.apply(this,arguments)};var s=n(160),l={ANIM_CHECKED_INDETERMINATE:"mdc-checkbox--anim-checked-indeterminate",ANIM_CHECKED_UNCHECKED:"mdc-checkbox--anim-checked-unchecked",ANIM_INDETERMINATE_CHECKED:"mdc-checkbox--anim-indeterminate-checked",ANIM_INDETERMINATE_UNCHECKED:"mdc-checkbox--anim-indeterminate-unchecked",ANIM_UNCHECKED_CHECKED:"mdc-checkbox--anim-unchecked-checked",ANIM_UNCHECKED_INDETERMINATE:"mdc-checkbox--anim-unchecked-indeterminate",BACKGROUND:"mdc-checkbox__background",CHECKED:"mdc-checkbox--checked",CHECKMARK:"mdc-checkbox__checkmark",CHECKMARK_PATH:"mdc-checkbox__checkmark-path",DISABLED:"mdc-checkbox--disabled",INDETERMINATE:"mdc-checkbox--indeterminate",MIXEDMARK:"mdc-checkbox__mixedmark",NATIVE_CONTROL:"mdc-checkbox__native-control",ROOT:"mdc-checkbox",SELECTED:"mdc-checkbox--selected",UPGRADED:"mdc-checkbox--upgraded"},u={ARIA_CHECKED_ATTR:"aria-checked",ARIA_CHECKED_INDETERMINATE_VALUE:"mixed",DATA_INDETERMINATE_ATTR:"data-indeterminate",NATIVE_CONTROL_SELECTOR:".mdc-checkbox__native-control",TRANSITION_STATE_CHECKED:"checked",TRANSITION_STATE_INDETERMINATE:"indeterminate",TRANSITION_STATE_INIT:"init",TRANSITION_STATE_UNCHECKED:"unchecked"},c={ANIM_END_LATCH_MS:250},d=function(e){function t(n){var r=e.call(this,a(a({},t.defaultAdapter),n))||this;return r.currentCheckState_=u.TRANSITION_STATE_INIT,r.currentAnimationClass_="",r.animEndLatchTimer_=0,r.enableAnimationEndHandler_=!1,r}return function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return l},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return u},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return c},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},forceLayout:function(){},hasNativeControl:function(){return!1},isAttachedToDOM:function(){return!1},isChecked:function(){return!1},isIndeterminate:function(){return!1},removeClass:function(){},removeNativeControlAttr:function(){},setNativeControlAttr:function(){},setNativeControlDisabled:function(){}}},enumerable:!0,configurable:!0}),t.prototype.init=function(){this.currentCheckState_=this.determineCheckState_(),this.updateAriaChecked_(),this.adapter.addClass(l.UPGRADED)},t.prototype.destroy=function(){clearTimeout(this.animEndLatchTimer_)},t.prototype.setDisabled=function(e){this.adapter.setNativeControlDisabled(e),e?this.adapter.addClass(l.DISABLED):this.adapter.removeClass(l.DISABLED)},t.prototype.handleAnimationEnd=function(){var e=this;this.enableAnimationEndHandler_&&(clearTimeout(this.animEndLatchTimer_),this.animEndLatchTimer_=setTimeout((function(){e.adapter.removeClass(e.currentAnimationClass_),e.enableAnimationEndHandler_=!1}),c.ANIM_END_LATCH_MS))},t.prototype.handleChange=function(){this.transitionCheckState_()},t.prototype.transitionCheckState_=function(){if(this.adapter.hasNativeControl()){var e=this.currentCheckState_,t=this.determineCheckState_();if(e!==t){this.updateAriaChecked_();var n=l.SELECTED;t===u.TRANSITION_STATE_UNCHECKED?this.adapter.removeClass(n):this.adapter.addClass(n),this.currentAnimationClass_.length>0&&(clearTimeout(this.animEndLatchTimer_),this.adapter.forceLayout(),this.adapter.removeClass(this.currentAnimationClass_)),this.currentAnimationClass_=this.getTransitionAnimationClass_(e,t),this.currentCheckState_=t,this.adapter.isAttachedToDOM()&&this.currentAnimationClass_.length>0&&(this.adapter.addClass(this.currentAnimationClass_),this.enableAnimationEndHandler_=!0)}}},t.prototype.determineCheckState_=function(){var e=u.TRANSITION_STATE_INDETERMINATE,t=u.TRANSITION_STATE_CHECKED,n=u.TRANSITION_STATE_UNCHECKED;return this.adapter.isIndeterminate()?e:this.adapter.isChecked()?t:n},t.prototype.getTransitionAnimationClass_=function(e,n){var r=u.TRANSITION_STATE_INIT,i=u.TRANSITION_STATE_CHECKED,o=u.TRANSITION_STATE_UNCHECKED,a=t.cssClasses,s=a.ANIM_UNCHECKED_CHECKED,l=a.ANIM_UNCHECKED_INDETERMINATE,c=a.ANIM_CHECKED_UNCHECKED,d=a.ANIM_CHECKED_INDETERMINATE,f=a.ANIM_INDETERMINATE_CHECKED,h=a.ANIM_INDETERMINATE_UNCHECKED;switch(e){case r:return n===o?"":n===i?f:h;case o:return n===i?s:l;case i:return n===o?c:d;default:return n===i?f:h}},t.prototype.updateAriaChecked_=function(){this.adapter.isIndeterminate()?this.adapter.setNativeControlAttr(u.ARIA_CHECKED_ATTR,u.ARIA_CHECKED_INDETERMINATE_VALUE):this.adapter.removeNativeControlAttr(u.ARIA_CHECKED_ATTR)},t}(s.K),f=n(145),h=i.createContext(!1),p=i.createContext(!1),m=n(162),g=n(168),v=n(126);var b=n(158),y=function(e){var t=function(e){var t=e.className,n=e.style,o=e.rootProps,a=e.label,s=e.children,l=e.disabled,u=e.label||e.children,c=(0,g.M)("toggle-",e),d=u?{disabled:l}:(0,r.pi)({className:t,style:n,disabled:l},o);return{id:c,renderToggle:function(e){return u?i.createElement(v.FormField,(0,r.pi)({},o,{className:t,style:n}),e,i.createElement("label",{id:c+"label",htmlFor:c},a,s)):e},toggleRootProps:d}}(e),n=t.renderToggle,o=t.toggleRootProps,a=t.id,s=(0,b.j)({props:e,elements:{rootEl:!0,checkboxEl:!0},foundation:function(e){var t=e.rootEl,n=e.checkboxEl,r=e.getProps;return new d({addClass:function(e){return t.addClass(e)},removeClass:function(e){return t.removeClass(e)},setNativeControlAttr:function(e,t){return n.setProp(e,t)},removeNativeControlAttr:function(e){return n.removeProp(e)},isIndeterminate:function(){return!!r().indeterminate},isChecked:function(){var e;return void 0!==r().checked?!!r().checked:!!(null===(e=n.ref)||void 0===e?void 0:e.checked)},hasNativeControl:function(){return!!n.ref},setNativeControlDisabled:function(e){return n.setProp("disabled",e)},forceLayout:function(){var e;return null===(e=t.ref)||void 0===e?void 0:e.offsetWidth},isAttachedToDOM:function(){return!0}})}}),l=s.foundation,u=(0,r._T)(s,["foundation"]),c=u.rootEl,f=u.checkboxEl,h=(0,i.useCallback)((function(){f.ref&&(f.ref.indeterminate=Boolean(e.indeterminate)),window.requestAnimationFrame((function(){l.handleChange()}))}),[e.indeterminate,l,f.ref]);(0,i.useEffect)((function(){h()}),[h]);return c.setProp("onAnimationEnd",(function(t){var n;null===(n=e.onAnimationEnd)||void 0===n||n.call(e,t),l.handleAnimationEnd()}),!0),f.setProp("onChange",(function(t){var n;null===(n=e.onChange)||void 0===n||n.call(e,t),h()}),!0),(0,r.pi)({foundation:l,renderToggle:n,toggleRootProps:o,id:a},u)};d.prototype.installPropertyChangeHooks_=function(){};var _=(0,f.LM)((function(e,t){var n=y(e),o=n.renderToggle,a=n.id,s=n.toggleRootProps,l=n.rootEl,u=n.checkboxEl,c=(e.children,e.className,e.label,e.style,e.indeterminate),d=e.inputRef,h=(e.foundationRef,(0,r._T)(e,["children","className","label","style","indeterminate","inputRef","foundationRef"]));return o(i.createElement(w,(0,r.pi)({},l.props((0,r.pi)({checked:h.checked,indeterminate:c},s)),{ref:(0,f.lq)(l.setRef,t)}),i.createElement("input",(0,r.pi)({},u.props((0,r.pi)((0,r.pi)({},h),{className:"mdc-checkbox__native-control"})),{type:"checkbox",ref:(0,f.lq)(u.setRef,d),id:a})),i.createElement(C,null),i.createElement(x,null)))})),w=(0,m.U8)({surface:!1,unbounded:!0})(i.forwardRef((function(e,t){var n=(0,i.useContext)(h),o=(0,i.useContext)(p),a=e.disabled,s=e.checked,l=e.indeterminate,u=(0,r._T)(e,["disabled","checked","indeterminate"]),c=(0,f.oC)(e,["mdc-checkbox",{"mdc-data-table__row-checkbox":n&&!o,"mdc-data-table__header-row-checkbox":o,"mdc-checkbox--disabled":a,"mdc-checkbox--selected":s||l}]);return i.createElement(f.Vp,(0,r.pi)({},u,{className:c,ref:t}))}))),x=i.memo((function(){return i.createElement("div",{className:"mdc-checkbox__ripple"})})),C=i.memo((function(){return i.createElement("div",{className:"mdc-checkbox__background"},i.createElement("svg",{className:"mdc-checkbox__checkmark",viewBox:"0 0 24 24"},i.createElement("path",{className:"mdc-checkbox__checkmark-path",fill:"none",stroke:"white",d:"M1.73,12.91 8.1,19.28 22.79,4.59"})),i.createElement("div",{className:"mdc-checkbox__mixedmark"}))}))},function(e,t,n){"use strict";n.r(t),n.d(t,{Slider:function(){return N}});var r=n(127),i=n(0),o=n(145),a=n(158),s=n(159),l=function(e,t){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},l(e,t)};var u=function(){return u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},u.apply(this,arguments)};
232
+ /**
233
+ * @license
234
+ * Copyright 2016 Google Inc.
235
+ *
236
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
237
+ * of this software and associated documentation files (the "Software"), to deal
238
+ * in the Software without restriction, including without limitation the rights
239
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
240
+ * copies of the Software, and to permit persons to whom the Software is
241
+ * furnished to do so, subject to the following conditions:
242
+ *
243
+ * The above copyright notice and this permission notice shall be included in
244
+ * all copies or substantial portions of the Software.
245
+ *
246
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
247
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
248
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
249
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
250
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
251
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
252
+ * THE SOFTWARE.
253
+ */
254
+ var c={animation:{prefixed:"-webkit-animation",standard:"animation"},transform:{prefixed:"-webkit-transform",standard:"transform"},transition:{prefixed:"-webkit-transition",standard:"transition"}},d={animationend:{cssProperty:"animation",prefixed:"webkitAnimationEnd",standard:"animationend"},animationiteration:{cssProperty:"animation",prefixed:"webkitAnimationIteration",standard:"animationiteration"},animationstart:{cssProperty:"animation",prefixed:"webkitAnimationStart",standard:"animationstart"},transitionend:{cssProperty:"transition",prefixed:"webkitTransitionEnd",standard:"transitionend"}};function f(e){return Boolean(e.document)&&"function"==typeof e.document.createElement}
255
+ /**
256
+ * @license
257
+ * Copyright 2016 Google Inc.
258
+ *
259
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
260
+ * of this software and associated documentation files (the "Software"), to deal
261
+ * in the Software without restriction, including without limitation the rights
262
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
263
+ * copies of the Software, and to permit persons to whom the Software is
264
+ * furnished to do so, subject to the following conditions:
265
+ *
266
+ * The above copyright notice and this permission notice shall be included in
267
+ * all copies or substantial portions of the Software.
268
+ *
269
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
270
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
271
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
272
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
273
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
274
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
275
+ * THE SOFTWARE.
276
+ */
277
+ var h=function(){function e(e){void 0===e&&(e={}),this.adapter=e}return Object.defineProperty(e,"cssClasses",{get:function(){return{}},enumerable:!0,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return{}},enumerable:!0,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return{}},enumerable:!0,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{}},enumerable:!0,configurable:!0}),e.prototype.init=function(){},e.prototype.destroy=function(){},e}(),p={ACTIVE:"mdc-slider--active",DISABLED:"mdc-slider--disabled",DISCRETE:"mdc-slider--discrete",FOCUS:"mdc-slider--focus",HAS_TRACK_MARKER:"mdc-slider--display-markers",IN_TRANSIT:"mdc-slider--in-transit",IS_DISCRETE:"mdc-slider--discrete",DISABLE_TOUCH_ACTION:"mdc-slider--disable-touch-action"},m={ARIA_DISABLED:"aria-disabled",ARIA_VALUEMAX:"aria-valuemax",ARIA_VALUEMIN:"aria-valuemin",ARIA_VALUENOW:"aria-valuenow",CHANGE_EVENT:"MDCSlider:change",INPUT_EVENT:"MDCSlider:input",PIN_VALUE_MARKER_SELECTOR:".mdc-slider__pin-value-marker",STEP_DATA_ATTR:"data-step",THUMB_CONTAINER_SELECTOR:".mdc-slider__thumb-container",TRACK_MARKER_CONTAINER_SELECTOR:".mdc-slider__track-marker-container",TRACK_SELECTOR:".mdc-slider__track"},g={PAGE_FACTOR:4},v="undefined"!=typeof window,b=v&&!!window.PointerEvent,y=b?["pointerdown"]:["mousedown","touchstart"],_=b?["pointerup"]:["mouseup","touchend"],w={mousedown:"mousemove",pointerdown:"pointermove",touchstart:"touchmove"},x="ArrowDown",C="ArrowLeft",E="ArrowRight",S="ArrowUp",T="End",A="Home",k="PageDown",O="PageUp",I=function(e){function t(n){var r=e.call(this,u(u({},t.defaultAdapter),n))||this;return r.savedTabIndex_=NaN,r.active_=!1,r.inTransit_=!1,r.isDiscrete_=!1,r.hasTrackMarker_=!1,r.handlingThumbTargetEvt_=!1,r.min_=0,r.max_=100,r.step_=0,r.value_=0,r.disabled_=!1,r.preventFocusState_=!1,r.thumbContainerPointerHandler_=function(){return r.handlingThumbTargetEvt_=!0},r.interactionStartHandler_=function(e){return r.handleDown_(e)},r.keydownHandler_=function(e){return r.handleKeydown_(e)},r.focusHandler_=function(){return r.handleFocus_()},r.blurHandler_=function(){return r.handleBlur_()},r.resizeHandler_=function(){return r.layout()},r}return function(e,t){function n(){this.constructor=e}l(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return p},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return m},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return g},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{hasClass:function(){return!1},addClass:function(){},removeClass:function(){},getAttribute:function(){return null},setAttribute:function(){},removeAttribute:function(){},computeBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},getTabIndex:function(){return 0},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){},registerThumbContainerInteractionHandler:function(){},deregisterThumbContainerInteractionHandler:function(){},registerBodyInteractionHandler:function(){},deregisterBodyInteractionHandler:function(){},registerResizeHandler:function(){},deregisterResizeHandler:function(){},notifyInput:function(){},notifyChange:function(){},setThumbContainerStyleProperty:function(){},setTrackStyleProperty:function(){},setMarkerValue:function(){},setTrackMarkers:function(){},isRTL:function(){return!1}}},enumerable:!0,configurable:!0}),t.prototype.init=function(){var e=this;this.isDiscrete_=this.adapter.hasClass(p.IS_DISCRETE),this.hasTrackMarker_=this.adapter.hasClass(p.HAS_TRACK_MARKER),y.forEach((function(t){e.adapter.registerInteractionHandler(t,e.interactionStartHandler_),e.adapter.registerThumbContainerInteractionHandler(t,e.thumbContainerPointerHandler_)})),b&&this.adapter.addClass(p.DISABLE_TOUCH_ACTION),this.adapter.registerInteractionHandler("keydown",this.keydownHandler_),this.adapter.registerInteractionHandler("focus",this.focusHandler_),this.adapter.registerInteractionHandler("blur",this.blurHandler_),this.adapter.registerResizeHandler(this.resizeHandler_),this.layout(),this.isDiscrete_&&0===this.getStep()&&(this.step_=1)},t.prototype.destroy=function(){var e=this;y.forEach((function(t){e.adapter.deregisterInteractionHandler(t,e.interactionStartHandler_),e.adapter.deregisterThumbContainerInteractionHandler(t,e.thumbContainerPointerHandler_)})),this.adapter.deregisterInteractionHandler("keydown",this.keydownHandler_),this.adapter.deregisterInteractionHandler("focus",this.focusHandler_),this.adapter.deregisterInteractionHandler("blur",this.blurHandler_),this.adapter.deregisterResizeHandler(this.resizeHandler_)},t.prototype.setupTrackMarker=function(){this.isDiscrete_&&this.hasTrackMarker_&&0!==this.getStep()&&this.adapter.setTrackMarkers(this.getStep(),this.getMax(),this.getMin())},t.prototype.layout=function(){this.rect_=this.adapter.computeBoundingRect(),this.updateUIForCurrentValue_()},t.prototype.getValue=function(){return this.value_},t.prototype.setValue=function(e){this.setValue_(e,!1)},t.prototype.getMax=function(){return this.max_},t.prototype.setMax=function(e){if(e<this.min_)throw new Error("Cannot set max to be less than the slider's minimum value");this.max_=e,this.setValue_(this.value_,!1,!0),this.adapter.setAttribute(m.ARIA_VALUEMAX,String(this.max_)),this.setupTrackMarker()},t.prototype.getMin=function(){return this.min_},t.prototype.setMin=function(e){if(e>this.max_)throw new Error("Cannot set min to be greater than the slider's maximum value");this.min_=e,this.setValue_(this.value_,!1,!0),this.adapter.setAttribute(m.ARIA_VALUEMIN,String(this.min_)),this.setupTrackMarker()},t.prototype.getStep=function(){return this.step_},t.prototype.setStep=function(e){if(e<0)throw new Error("Step cannot be set to a negative number");this.isDiscrete_&&("number"!=typeof e||e<1)&&(e=1),this.step_=e,this.setValue_(this.value_,!1,!0),this.setupTrackMarker()},t.prototype.isDisabled=function(){return this.disabled_},t.prototype.setDisabled=function(e){this.disabled_=e,this.toggleClass_(p.DISABLED,this.disabled_),this.disabled_?(this.savedTabIndex_=this.adapter.getTabIndex(),this.adapter.setAttribute(m.ARIA_DISABLED,"true"),this.adapter.removeAttribute("tabindex")):(this.adapter.removeAttribute(m.ARIA_DISABLED),isNaN(this.savedTabIndex_)||this.adapter.setAttribute("tabindex",String(this.savedTabIndex_)))},t.prototype.handleDown_=function(e){var t=this;if(!this.disabled_){this.preventFocusState_=!0,this.setInTransit_(!this.handlingThumbTargetEvt_),this.handlingThumbTargetEvt_=!1,this.setActive_(!0);var n=function(e){t.handleMove_(e)},r=w[e.type],i=function(){t.handleUp_(),t.adapter.deregisterBodyInteractionHandler(r,n),_.forEach((function(e){return t.adapter.deregisterBodyInteractionHandler(e,i)}))};this.adapter.registerBodyInteractionHandler(r,n),_.forEach((function(e){return t.adapter.registerBodyInteractionHandler(e,i)})),this.setValueFromEvt_(e)}},t.prototype.handleMove_=function(e){e.preventDefault(),this.setValueFromEvt_(e)},t.prototype.handleUp_=function(){this.setActive_(!1),this.adapter.notifyChange()},t.prototype.getClientX_=function(e){return e.targetTouches&&e.targetTouches.length>0?e.targetTouches[0].clientX:e.clientX},t.prototype.setValueFromEvt_=function(e){var t=this.getClientX_(e),n=this.computeValueFromClientX_(t);this.setValue_(n,!0)},t.prototype.computeValueFromClientX_=function(e){var t=this.max_,n=this.min_,r=(e-this.rect_.left)/this.rect_.width;return this.adapter.isRTL()&&(r=1-r),n+r*(t-n)},t.prototype.handleKeydown_=function(e){var t=this.getKeyId_(e),n=this.getValueForKeyId_(t);isNaN(n)||(e.preventDefault(),this.adapter.addClass(p.FOCUS),this.setValue_(n,!0),this.adapter.notifyChange())},t.prototype.getKeyId_=function(e){return e.key===C||37===e.keyCode?C:e.key===E||39===e.keyCode?E:e.key===S||38===e.keyCode?S:e.key===x||40===e.keyCode?x:e.key===A||36===e.keyCode?A:e.key===T||35===e.keyCode?T:e.key===O||33===e.keyCode?O:e.key===k||34===e.keyCode?k:""},t.prototype.getValueForKeyId_=function(e){var t=this,n=t.max_,r=t.min_,i=t.step_||(n-r)/100;switch(this.adapter.isRTL()&&(e===C||e===E)&&(i=-i),e){case C:case x:return this.value_-i;case E:case S:return this.value_+i;case A:return this.min_;case T:return this.max_;case O:return this.value_+i*g.PAGE_FACTOR;case k:return this.value_-i*g.PAGE_FACTOR;default:return NaN}},t.prototype.handleFocus_=function(){this.preventFocusState_||this.adapter.addClass(p.FOCUS)},t.prototype.handleBlur_=function(){this.preventFocusState_=!1,this.adapter.removeClass(p.FOCUS)},t.prototype.setValue_=function(e,t,n){if(void 0===n&&(n=!1),e!==this.value_||n){var r=this.min_,i=this.max_,o=e===r||e===i;this.step_&&!o&&(e=this.quantize_(e)),e<r?e=r:e>i&&(e=i),e=e||0,this.value_=e,this.adapter.setAttribute(m.ARIA_VALUENOW,String(this.value_)),this.updateUIForCurrentValue_(),t&&(this.adapter.notifyInput(),this.isDiscrete_&&this.adapter.setMarkerValue(e))}},t.prototype.quantize_=function(e){return Math.round(e/this.step_)*this.step_},t.prototype.updateUIForCurrentValue_=function(){var e=this,t=this,n=t.max_,r=t.min_,i=(t.value_-r)/(n-r),o=i*this.rect_.width;this.adapter.isRTL()&&(o=this.rect_.width-o);var a=v?function(e,t){if(f(e)&&t in c){var n=e.document.createElement("div"),r=c[t],i=r.standard,o=r.prefixed;return i in n.style?i:o}return t}(window,"transform"):"transform",s=v?function(e,t){if(f(e)&&t in d){var n=e.document.createElement("div"),r=d[t],i=r.standard,o=r.prefixed;return r.cssProperty in n.style?i:o}return t}(window,"transitionend"):"transitionend";if(this.inTransit_){var l=function(){e.setInTransit_(!1),e.adapter.deregisterThumbContainerInteractionHandler(s,l)};this.adapter.registerThumbContainerInteractionHandler(s,l)}requestAnimationFrame((function(){e.adapter.setThumbContainerStyleProperty(a,"translateX("+o+"px) translateX(-50%)"),e.adapter.setTrackStyleProperty(a,"scaleX("+i+")")}))},t.prototype.setActive_=function(e){this.active_=e,this.toggleClass_(p.ACTIVE,this.active_)},t.prototype.setInTransit_=function(e){this.inTransit_=e,this.toggleClass_(p.IN_TRANSIT,this.inTransit_)},t.prototype.toggleClass_=function(e,t){t?this.adapter.addClass(e):this.adapter.removeClass(e)},t}(h),L=i.memo(i.forwardRef((function(e,t){return i.createElement("div",{ref:t,className:"mdc-slider__track"})}))),R=i.memo(i.forwardRef((function(e,t){return i.createElement("div",{ref:t,className:"mdc-slider__track-marker-container"})}))),M=i.memo((function(e){var t=e.value;return i.createElement("div",{className:"mdc-slider__pin"},i.createElement("span",{className:"mdc-slider__pin-value-marker"},t))})),P=i.memo((function(){return i.createElement("svg",{className:"mdc-slider__thumb",width:"21",height:"21"},i.createElement("circle",{cx:"10.5",cy:"10.5",r:"7.875"}))})),$=i.memo((function(){return i.createElement("div",{className:"mdc-slider__focus-ring"})})),N=(0,o.LM)((function(e,t){var n=function(e){var t=(0,i.useRef)(),n=(0,i.useRef)(),o=(0,a.j)({props:e,elements:{rootEl:!0,thumbContainerEl:!0,sliderPinEl:!0},foundation:function(e){var r,i,o,a=e.rootEl,u=e.thumbContainerEl,c=e.sliderPinEl,d=e.emit;return new I({hasClass:function(e){return a.hasClass(e)},addClass:function(e){return a.addClass(e)},removeClass:function(e){return a.removeClass(e)},getAttribute:function(e){return a.getProp(e)},setAttribute:(r=function(e,t){return a.setProp(e,t)},i=300,function(){var e=this,t=arguments,n=function(){o=null,r.apply(e,t)};null!==o&&clearTimeout(o),o=setTimeout(n,i)}),removeAttribute:function(e){return a.removeProp(e)},computeBoundingRect:function(){return a.ref?a.ref.getBoundingClientRect():s.B},getTabIndex:function(){return a.ref?a.ref.tabIndex:0},registerInteractionHandler:function(e,t){a.addEventListener(e,t)},deregisterInteractionHandler:function(e,t){a.removeEventListener(e,t)},registerThumbContainerInteractionHandler:function(e,t){u.addEventListener(e,t)},deregisterThumbContainerInteractionHandler:function(e,t){u.removeEventListener(e,t)},registerBodyInteractionHandler:function(e,t){document.body&&document.body.addEventListener(e,t)},deregisterBodyInteractionHandler:function(e,t){document.body&&document.body.removeEventListener(e,t)},registerResizeHandler:function(e){window.addEventListener("resize",e)},deregisterResizeHandler:function(e){window.removeEventListener("resize",e)},notifyInput:function(){d("onInput",{value:l.getValue()})},notifyChange:function(){d("onChange",{value:l.getValue()})},setThumbContainerStyleProperty:function(e,t){u.setStyle(e,t)},setTrackStyleProperty:function(e,n){var r;null===(r=t.current)||void 0===r||r.style.setProperty(e,n)},setMarkerValue:function(e){c.setProp("value",e)},setTrackMarkers:function(e,t,r){var i,o=e.toLocaleString(),a="linear-gradient(to right, currentColor 2px, transparent 0) 0 center / calc((100% - 2px) / (("+t.toLocaleString()+" - "+r.toLocaleString()+") / "+o+")) 100% repeat-x";null===(i=n.current)||void 0===i||i.style.setProperty("background",a)},isRTL:function(){return!!a.ref&&"rtl"===getComputedStyle(a.ref).direction}})}}),l=o.foundation,u=(0,r._T)(o,["foundation"]);return(0,i.useEffect)((function(){void 0!==e.max&&l.setMax(+e.max)}),[e.max,l]),(0,i.useEffect)((function(){void 0!==e.min&&l.setMin(+e.min)}),[e.min,l]),(0,i.useEffect)((function(){var t=void 0!==e.value?Number(e.value):l.getValue(),n=l.getMin(),r=l.getMax();t<n&&(console.warn("Attempted to set slider to "+t+" which is less than min: "+n),t=n),t>r&&(console.warn("Attempted to set slider to "+t+" which is greater than max: "+r),t=r),l.setValue(t)}),[e.value,l]),(0,i.useEffect)((function(){void 0!==e.step&&l.setStep(+e.step)}),[e.step,l]),(0,i.useEffect)((function(){void 0!==e.disabled&&l.setDisabled(e.disabled)}),[e.disabled,l]),(0,i.useEffect)((function(){void 0!==e.discrete&&(l.isDiscrete_=e.discrete),e.discrete&&0===l.getStep()&&l.setStep(1)}),[e.discrete,l]),(0,i.useEffect)((function(){var t=l.hasTrackMarker_;void 0!==e.displayMarkers&&e.displayMarkers!==t&&(l.hasTrackMarker_=e.displayMarkers,window.requestAnimationFrame((function(){return l.setupTrackMarker()})))}),[e.displayMarkers,l]),(0,i.useEffect)((function(){var e=l.handleDown_.bind(l);l.handleDown_=function(t){t.persist(),e(t)}}),[l]),(0,r.pi)({setTrackRef:function(e){return t.current=e},setTrackMarkerContainerRef:function(e){return n.current=e}},u)}(e),l=n.rootEl,u=n.thumbContainerEl,c=n.sliderPinEl,d=n.setTrackRef,f=n.setTrackMarkerContainerRef,h=e.value,p=(e.min,e.max),m=e.discrete,g=e.displayMarkers,v=e.step,b=e.disabled,y=(e.onChange,e.onInput,e.children),_=(e.foundationRef,(0,r._T)(e,["value","min","max","discrete","displayMarkers","step","disabled","onChange","onInput","children","foundationRef"])),w=(0,o.oC)(e,["mdc-slider",{"mdc-slider--discrete":m,"mdc-slider--display-markers":g&&m}]),x=v?{"data-step":v}:{};return g&&!m&&console.warn("The 'displayMarkers' prop on rmwc Slider will\n only work in conjunction with the 'discrete' prop"),i.createElement(o.Vp,(0,r.pi)({tabIndex:0,role:"slider","aria-valuemax":p,"aria-valuenow":h,"aria-label":"Select Value"},b?{"aria-disabled":b}:{},x,_,{ref:t,element:l,className:w}),i.createElement("div",{className:"mdc-slider__track-container"},i.createElement(L,{ref:d}),g&&i.createElement(R,{ref:f})),i.createElement(o.Vp,{element:u,className:"mdc-slider__thumb-container"},m&&i.createElement(M,{value:c.getProp("value")}),i.createElement(P,null),i.createElement($,null)),y)}))},,,,,,,,function(module,__unused_webpack_exports,__webpack_require__){"use strict";var __dirname="/",t;if(module=__webpack_require__.nmd(module),null!==module&&"undefined"!==eval("typeof require")&&null!==eval("require")&&"main"in eval("require")&&"undefined"!==eval("typeof require.main")&&null!==eval("require.main")){var ORIGINAL_MAIN_MODULE=module;module!==eval("require.main")&&"paths"in module&&"paths"in eval("require.main")&&null!=__dirname&&(module.paths=eval("require.main.paths").concat(module.paths.filter((function(path){return eval("require.main.paths").includes(path)}))))}if(null==window)var window=void 0===__webpack_require__.g||null===__webpack_require__.g?{}:__webpack_require__.g;t=function(__WEBPACK_EXTERNAL_MODULE__0__,__WEBPACK_EXTERNAL_MODULE__21__,__WEBPACK_EXTERNAL_MODULE__2__,__WEBPACK_EXTERNAL_MODULE__12__,__WEBPACK_EXTERNAL_MODULE__4__,__WEBPACK_EXTERNAL_MODULE__3__,__WEBPACK_EXTERNAL_MODULE__13__,__WEBPACK_EXTERNAL_MODULE__14__,__WEBPACK_EXTERNAL_MODULE__5__,__WEBPACK_EXTERNAL_MODULE__15__,__WEBPACK_EXTERNAL_MODULE__16__,__WEBPACK_EXTERNAL_MODULE__17__,__WEBPACK_EXTERNAL_MODULE__18__,__WEBPACK_EXTERNAL_MODULE__19__,__WEBPACK_EXTERNAL_MODULE__6__,__WEBPACK_EXTERNAL_MODULE__8__,__WEBPACK_EXTERNAL_MODULE__9__,__WEBPACK_EXTERNAL_MODULE__10__,__WEBPACK_EXTERNAL_MODULE__11__,__WEBPACK_EXTERNAL_MODULE__7__,__WEBPACK_EXTERNAL_MODULE__47__,__WEBPACK_EXTERNAL_MODULE__23__,__WEBPACK_EXTERNAL_MODULE__24__,__WEBPACK_EXTERNAL_MODULE__25__,__WEBPACK_EXTERNAL_MODULE__26__,__WEBPACK_EXTERNAL_MODULE__27__,__WEBPACK_EXTERNAL_MODULE__28__,__WEBPACK_EXTERNAL_MODULE__29__,__WEBPACK_EXTERNAL_MODULE__30__,__WEBPACK_EXTERNAL_MODULE__48__,__WEBPACK_EXTERNAL_MODULE__31__,__WEBPACK_EXTERNAL_MODULE__22__,__WEBPACK_EXTERNAL_MODULE__49__,__WEBPACK_EXTERNAL_MODULE__50__,__WEBPACK_EXTERNAL_MODULE__37__){return function(){var __webpack_modules__=[function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__0__},function(module,__unused_webpack_exports,__nested_webpack_require_6298__){var __dirname="/",e,t,r,n,i,o,s,a,l,p,c,u,d,h;if(module=__nested_webpack_require_6298__.nmd(module),null!==module&&"undefined"!==eval("typeof require")&&null!==eval("require")&&"main"in eval("require")&&"undefined"!==eval("typeof require.main")&&null!==eval("require.main")){var ORIGINAL_MAIN_MODULE=module;module!==eval("require.main")&&"paths"in module&&"paths"in eval("require.main")&&null!=__dirname&&(module.paths=eval("require.main.paths").concat(module.paths.filter((function(path){return eval("require.main.paths").includes(path)}))))}if(null==window)var window=void 0===__nested_webpack_require_6298__.g||null===__nested_webpack_require_6298__.g?{}:__nested_webpack_require_6298__.g;module.exports=(e=__nested_webpack_require_6298__(2),t=__nested_webpack_require_6298__(12),r=__nested_webpack_require_6298__(4),n=__nested_webpack_require_6298__(0),i=__nested_webpack_require_6298__(3),o=__nested_webpack_require_6298__(13),s=__nested_webpack_require_6298__(14),a=__nested_webpack_require_6298__(5),l=__nested_webpack_require_6298__(15),p=__nested_webpack_require_6298__(16),c=__nested_webpack_require_6298__(17),u=__nested_webpack_require_6298__(18),d=__nested_webpack_require_6298__(19),h=__nested_webpack_require_6298__(6),function(){var f=[function(t){t.exports=e},function(e){e.exports=r},function(e){e.exports=n},function(e){e.exports=t},function(e,t,n){var r=n(0),i=n.n(r),o=n(1),a=n.n(o),s=n(2);t.default=function(e){return void 0===e&&(e={}),e=i()({readAttribute:!0,type:s.string},e),function(t,n){if("string"==typeof n){var r,o=t.self||t.constructor;if(e.readAttribute){Object.prototype.hasOwnProperty.call(o,"observedAttributes")||(o.observedAttributes=o.observedAttributes?[].concat(o.observedAttributes):[]);var s=a().stringCamelCaseToDelimited(n);o.observedAttributes.includes(s)||o.observedAttributes.push(s)}e.type&&(Object.prototype.hasOwnProperty.call(o,"propertyTypes")||(o.propertyTypes=o.propertyTypes?i()({},o.propertyTypes):{}),!e.update&&Object.prototype.hasOwnProperty.call(o,n)||(o.propertyTypes[n]=e.type)),e.writeAttribute&&(Object.prototype.hasOwnProperty.call(o,"propertiesToReflectAsAttributes")||(o.propertiesToReflectAsAttributes=o.propertiesToReflectAsAttributes?a().copy(o.propertiesToReflectAsAttributes):[]),(e.update||o.propertiesToReflectAsAttributes instanceof Map&&!o.propertiesToReflectAsAttributes.has(n)||Array.isArray(o.propertiesToReflectAsAttributes)&&!o.propertiesToReflectAsAttributes.includes(n)||null!==o.propertiesToReflectAsAttributes&&"object"==typeof o.propertiesToReflectAsAttributes&&!Object.prototype.hasOwnProperty.call(o.propertiesToReflectAsAttributes,n))&&("boolean"==typeof e.writeAttribute?!0===e.writeAttribute&&o.propertyTypes&&Object.prototype.hasOwnProperty.call(o.propertyTypes,n)&&(r=o.propertyTypes[n]):r=e.writeAttribute,void 0!==r&&(Array.isArray(o.propertiesToReflectAsAttributes)&&(!0===e.writeAttribute?o.propertiesToReflectAsAttributes.push(n):o.propertiesToReflectAsAttributes=o.normalizePropertyTypeList(o.propertiesToReflectAsAttributes)),o.propertiesToReflectAsAttributes instanceof Map&&o.propertiesToReflectAsAttributes.set(n,r),null!==o.propertiesToReflectAsAttributes&&"object"==typeof o.propertiesToReflectAsAttributes&&(o.propertiesToReflectAsAttributes[n]=r)))),e.alias&&(Object.prototype.hasOwnProperty.call(o,"propertyAliases")||(o.propertyAliases=o.propertyAliases?i()({},o.propertyAliases):{}),!e.update&&Object.prototype.hasOwnProperty.call(o,n)||(o.propertyAliases[n]=e.alias))}}}},function(e,t,n){n.d(t,{api:function(){return O}});var r,i,o,a,s=n(6),l=n.n(s),u=n(0),c=n.n(u),d=n(7),f=n.n(d),h=n(8),p=n.n(h),m=n(3),g=n.n(m),v=n(9),b=n.n(v),y=n(10),_=n.n(y),w=(n(11),n(12)),x=n.n(w),C=n(1),E=n.n(C),S=n(2);function T(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return A(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)?A(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function A(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}var k=(r=(0,n(4).default)({type:S.boolean,writeAttribute:!0}),a=function(e){function t(){var n;return(n=e.call(this)||this).batchAttributeUpdates=!0,n.batchPropertyUpdates=!0,n.batchUpdates=!0,n.batchedAttributeUpdateRunning=!0,n.batchedPropertyUpdateRunning=!0,n.batchedUpdateRunning=!0,n.parent=null,n.rootInstance=null,n.scope={Tools:E()},n.domNodeEventBindings=new Map,n.domNodeTemplateCache=new Map,n.externalProperties={},n.ignoreAttributeUpdateObservations=!1,n.internalProperties={},n.outputEventNames=new Set,n.instance=null,f()(n,"isRoot",o,p()(n)),n.root=void 0,n.runDomConnectionAndRenderingInSameEventQueue=!1,n.self=t,n.slots={},n.self=n.constructor,n.self._propertiesToReflectAsAttributes||(n.self._propertiesToReflectAsAttributes=n.self.normalizePropertyTypeList(n.self.propertiesToReflectAsAttributes)),n.generateAliasIndex(),n.root=p()(n),n.defineGetterAndSetterInterface(),n}g()(t,e);var n=t.prototype;return n.attributeChangedCallback=function(e,t,n){this.ignoreAttributeUpdateObservations||t===n||this.updateAttribute(e,n)},n.updateAttribute=function(e,t){var n=this;this.evaluateStringOrNullAndSetAsProperty(e,t),this.batchAttributeUpdates?this.batchedAttributeUpdateRunning||this.batchedUpdateRunning||(this.batchedAttributeUpdateRunning=!0,this.batchedUpdateRunning=!0,E().timeout((function(){n.batchedAttributeUpdateRunning=!1,n.batchedUpdateRunning=!1,n.render("attributeChanged")}))):this.render("attributeChanged")},n.connectedCallback=function(){var e=this;try{this.isConnected=!0}catch(e){}this.parent=this,this.rootInstance=this,this.attachEventHandler(),this.self.determineRootBinding&&this.determineRootBinding(),this.self.applyRootBinding&&this.isRoot&&(this.determineRenderScope(),this.applyBinding(this,this.scope)),this.batchedAttributeUpdateRunning=!1,this.batchedPropertyUpdateRunning=!1,this.batchedUpdateRunning=!1,this.grabGivenSlots(),this.reflectExternalProperties(this.externalProperties),this.runDomConnectionAndRenderingInSameEventQueue?this.render("connected"):E().timeout((function(){return e.render("connected")}))},n.disconnectedCallback=function(){try{this.isConnected=!1}catch(e){}for(var e,t=T(this.domNodeEventBindings.values());!(e=t()).done;)for(var n,r=T(e.value.values());!(n=r()).done;)(0,n.value)();this.slots={}},n.defineGetterAndSetterInterface=function(){for(var e,t=this,n=function(){var n=e.value;Object.prototype.hasOwnProperty.call(t,n)&&t.setPropertyValue(n,t[n]),Object.defineProperty(t,n,{configurable:!0,get:function(){return t.getPropertyValue(n)},set:function(e){t.setPropertyValue(n,e),t.triggerPropertySpecificRendering(n,e)}})},r=T(E().arrayUnique(Object.keys(this.self.propertyTypes).concat(Object.keys(this.self._propertyAliasIndex))));!(e=r()).done;)n()},n.getPropertyAlias=function(e){return Object.prototype.hasOwnProperty.call(this.self._propertyAliasIndex,e)?this.self._propertyAliasIndex[e]:null},n.getPropertyValue=function(e){var n,r,i,o,a=null!=(n=this.instance)&&null!=(r=n.current)&&r.properties&&(Object.prototype.hasOwnProperty.call(!t.propertyTypes,e)||Object.prototype.hasOwnProperty.call(this.instance.current.properties,e))?this.instance.current.properties[e]:this.externalProperties[e];return null!=(i=this.instance)&&null!=(o=i.current)&&o.state&&Object.prototype.hasOwnProperty.call(this.instance.current.state,e)?this.instance.current.state[e]:a},n.setExternalPropertyValue=function(e,t){this.externalProperties[e]=t;var n=this.getPropertyAlias(e);n&&(this.externalProperties[n]=t)},n.setInternalPropertyValue=function(e,t){this.internalProperties[e]=t;var n=this.getPropertyAlias(e);n&&(this.internalProperties[n]=t)},n.setPropertyValue=function(e,t){var n;this.reflectProperties(((n={})[e]=t,n)),this.setInternalPropertyValue(e,t)},n.triggerPropertySpecificRendering=function(e,t){var n=this;if(this.batchPropertyUpdates)this.batchedPropertyUpdateRunning||this.batchedUpdateRunning||(this.batchedPropertyUpdateRunning=!0,this.batchedUpdateRunning=!0,E().timeout((function(){void 0!==t&&n.isStateProperty(e)?(n.render("preStatePropertyChanged"),E().timeout((function(){n.setInternalPropertyValue(e,void 0),n.batchedPropertyUpdateRunning=!1,n.batchedUpdateRunning=!1,n.render("postStatePropertyChanged"),n.triggerOutputEvents()})).then(E().noop,E().noop)):(n.batchedPropertyUpdateRunning=!1,n.batchedUpdateRunning=!1,n.render("propertyChanged"),n.triggerOutputEvents())})));else{var r=this.isStateProperty(e);this.render(r?"preStatePropertyChanged":"propertyChanged"),void 0!==t&&r&&(this.setInternalPropertyValue(e,void 0),this.render("postStatePropertyChanged")),this.triggerOutputEvents()}},n.applyBinding=function(e,t){var n=this;if(e.getAttributeNames)for(var r,i=function(){var i=r.value,o="";if(i.startsWith("data-bind-")?o=i.substring("data-bind-".length):i.startsWith("bind-")&&(o=i.substring("bind-".length)),o){var a=e.getAttribute(i);if(null===a)return"continue";if(o.startsWith("attribute-")||o.startsWith("property-")){var s=E().stringEvaluate(a,t,!1,e);if(s.error)return console.warn('Error occurred during processing given attribute binding "'+i+'" on node:',e,s.error),"continue";o.startsWith("attribute-")?e.setAttribute(o.substring("attribute-".length),s.result):e[E().stringDelimitedToCamelCase(o.substring("property-".length))]=s.result}else if(o.startsWith("on-")){n.domNodeEventBindings.has(e)||n.domNodeEventBindings.set(e,new Map);var l=n.domNodeEventBindings.get(e);o=E().stringDelimitedToCamelCase(o.substring("on-".length)),l.has(o)&&l.get(o)(),t=c()({event:void 0,parameters:void 0},t);var u=E().stringCompile(a,t,!0);if(u.error)console.warn('Error occurred during compiling given event binding "'+i+'" on node:',e,u.error);else{var d=u.templateFunction.bind(e),f=function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];t.event=r[0],t.parameters=r;try{d.apply(void 0,u.originalScopeNames.map((function(e){return t[e]})))}catch(t){console.warn('Error occurred during processing given event binding "'+i+'" on node:',e,'Given expression "'+a+'" could not be evaluated with given scope names "'+u.scopeNames.join('", "')+'": '+E().represent(t))}};e.addEventListener(o,f),l.set(o,(function(){e.removeEventListener(o,f),l.delete(o),0===l.size&&n.domNodeEventBindings.delete(e)}))}}}},o=T(e.getAttributeNames());!(r=o()).done;)i()},n.applyBindings=function(e,t,n){for(void 0===n&&(n=!0);e;){var r;null==(r=e.attributes)||!r.length||!n&&e.getAttribute("slot")||this.applyBinding(e,t),e.nodeName.toLowerCase().includes("-")||this.applyBindings(e.firstChild,t),e=e.nextSibling}},n.compileDomNodeTemplate=function(e,t,n){var r;if(void 0===t&&(t=[]),void 0===n&&(n={}),(n=c()({ignoreComponents:!0,ignoreNestedComponents:!0,map:this.domNodeTemplateCache,unsafe:this.self.renderUnsafe},n)).ignoreComponents&&null!=(r=e.nodeName)&&r.toLowerCase().includes("-"))return n.map;if(n.unsafe){var i=e.innerHTML;if(!i&&e.template&&(i=e.template),this.self.hasCode(i)){var o=E().stringCompile("`"+i+"`",t);n.map.set(e,{children:[],error:o.error,scopeNames:o.scopeNames,template:i,templateFunction:o.templateFunction})}}else{var a,s=e.nodeName.toLowerCase();if(["a","#text"].includes(s)){var l="a"===s?e.getAttribute("href"):e.textContent;this.self.hasCode(l)&&(a=l.replace(/&nbsp;/g," ").trim())}var u=[];if(a){var d=E().stringCompile("`"+a+"`",t);n.map.set(e,{children:u,error:d.error,scopeNames:d.scopeNames,template:a,templateFunction:d.templateFunction})}for(var f=e.firstChild;f;)n.filter&&!n.filter(f)||u.push(this.compileDomNodeTemplate(f,t,c()({},n,{ignoreComponents:n.ignoreNestedComponents}))),f=f.nextSibling}return n.map},n.evaluateDomNodeTemplate=function(e,t,n){var r;if(void 0===t&&(t={}),void 0===n&&(n={}),(n=c()({applyBindings:!0,ignoreComponents:!0,ignoreNestedComponents:!0,map:this.domNodeTemplateCache,unsafe:this.self.renderUnsafe},n)).map.has(e)||this.compileDomNodeTemplate(e,t,n),n.map.has(e)){var i=n.map.get(e),o=i.error,a=i.scopeNames,s=i.templateFunction;if(o)console.warn("Error occurred during compiling node content: "+o);else{var l=null;try{l=s.apply(void 0,a.map((function(e){return t[e]})))}catch(o){console.warn('Error occurred when "'+this.self._name+'" is running "'+s+'": with bound names "'+a.join('", "')+'": "'+o+'". Rendering node:',e)}null!==l&&(n.unsafe?e.innerHTML=l:"a"===e.nodeName.toLowerCase()?e.setAttribute("href",l):e.textContent=l)}}if(!(n.unsafe||n.ignoreComponents&&null!=(r=e.nodeName)&&r.toLowerCase().includes("-")))for(var u=e.firstChild;u;)n.filter&&!n.filter(u)||this.evaluateDomNodeTemplate(u,t,c()({},n,{applyBindings:!1,ignoreComponents:n.ignoreNestedComponents})),u=u.nextSibling;return n.applyBindings&&this.applyBindings(e,t),n.map},t.replaceDomNodes=function(e,n){for(var r,i=T([].concat(n).reverse());!(r=i()).done;){var o,a=r.value;t.trimSlots&&a.nodeType===Node.TEXT_NODE&&""===(null==(o=a.nodeValue)?void 0:o.trim())||e.after(a)}e.remove()},t.unwrapDomNode=function(e){for(var t=e.parentNode,n=[];e.firstChild;)n.push(e.firstChild),t.insertBefore(e.firstChild,e);return t.removeChild(e),n},n.determineRootBinding=function(){for(var e=this.parentNode;e;){var n;(e instanceof t||null!=(n=e.nodeName)&&n.includes("-")||null===e.parentNode&&"[object ShadowRoot]"===e.toString())&&(this.rootInstance===this?(this.parent=e,this.rootInstance=e,this.setPropertyValue("isRoot",!1)):this.rootInstance=e),e=e.parentNode}},t.hasCode=function(e){return"string"==typeof e&&e.includes("${")&&e.includes("}")&&/\${[\s\S]+}/.test(e)},t.normalizePropertyTypeList=function(e){if("string"==typeof e&&(e=[e]),Array.isArray(e)){for(var n,r=e,i=new Map,o=T(r);!(n=o()).done;){var a=n.value;Object.prototype.hasOwnProperty.call(t.propertyTypes,a)&&i.set(a,t.propertyTypes[a])}return i}return E().convertPlainObjectToMap(e)},n.attachEventHandler=function(){if(null!==this.self.eventToPropertyMapping){var e=this.attachExplicitDefinedOutputEventHandler();this.attachImplicitDefinedOutputEventHandler(!e)}},n.attachExplicitDefinedOutputEventHandler=function(){for(var e=this,t=!1,n=function(){var n=i[r];Object.prototype.hasOwnProperty.call(e.internalProperties,n)||(t=!0,e.outputEventNames.add(n),e.setInternalPropertyValue(n,l()(x().mark((function t(){var r,i,o,a,s=arguments;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(r=s.length,i=new Array(r),o=0;o<r;o++)i[o]=s[o];return t.next=3,e.reflectEventToProperties(n,i);case 3:(a=t.sent)&&(i[0]=a),e.forwardEvent(n,i);case 6:case"end":return t.stop()}}),t)})))))},r=0,i=Object.keys(this.self.eventToPropertyMapping);r<i.length;r++)n();return t},n.attachImplicitDefinedOutputEventHandler=function(e){var t=this;void 0===e&&(e=!0);for(var n=function(){var n=i[r],o=n[0],a=n[1];Object.prototype.hasOwnProperty.call(t.internalProperties,o)||![S.func,"function"].includes(a)||t.self.renderProperties.includes(o)||(t.outputEventNames.add(o),t.setInternalPropertyValue(o,(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e&&t.reflectEventToProperties(o,r),t.forwardEvent(o,r)})))},r=0,i=Object.entries(this.self.propertyTypes);r<i.length;r++)n()},n.triggerOutputEvents=function(){for(var e,t=T(this.outputEventNames);!(e=t()).done;){var n=e.value;this.forwardEvent(n,[this.externalProperties])}},n.forwardEvent=function(e,t){return e.length>"onX".length&&e.startsWith("on")&&(e=E().stringLowerCase(e.substring(2))),this.dispatchEvent(new CustomEvent(e,{detail:{parameters:t}}))},n.applySlots=function(e,t){for(var n=this,r=0,i=Array.from(e.querySelectorAll("slot"));r<i.length;r++){var o=i[r],a=o.getAttribute("name");if(null===a||"default"===a)if(this.slots.default){if(this.self.renderSlots){if(this.self.evaluateSlots)for(var s,l=T(this.slots.default);!(s=l()).done;){var u=s.value;this.evaluateDomNodeTemplate(u,t)}this.self.replaceDomNodes(o,this.slots.default)}}else this.slots.default=this.self.unwrapDomNode(o).map((function(e){return n.grabSlotContent(e)}));else Object.prototype.hasOwnProperty.call(this.slots,a)?this.self.renderSlots&&(this.self.evaluateSlots&&this.evaluateDomNodeTemplate(this.slots[a],t),this.self.replaceDomNodes(o,this.slots[a])):this.slots[a]=this.grabSlotContent(this.self.unwrapDomNode(o).filter((function(e){return"#text"!==e.nodeName.toLowerCase()}))[0])}},n.grabSlotContent=function(e){var t;if("textarea"===(null==(t=e.firstElementChild)?void 0:t.nodeName.toLowerCase())&&(!e.firstElementChild.hasAttribute("data-no-template")||"false"===e.firstElementChild.getAttribute("data-no-template"))){var n,r,i=e.firstElementChild.value;null==(n=e.classList)||n.remove("web-component-template");var o=e.cloneNode();return null==(r=e.classList)||r.add("web-component-template"),o.innerHTML="",o.template=i,o}return this.self.cloneSlots?e.cloneNode(!0):e},n.grabGivenSlots=function(){var e=this;this.slots={};for(var t=0,n=Array.from(this.querySelectorAll("[slot]"));t<n.length;t++){for(var r=n[t],i=r.parentNode,o=!0;i;){if(i.nodeName.includes("-")){i===this&&(o=!1);break}i=i.parentNode}o||(this.slots[r.getAttribute&&r.getAttribute("slot")&&r.getAttribute("slot").trim()?r.getAttribute("slot").trim():r.nodeName.toLowerCase()]=this.grabSlotContent(r))}this.slots.default?this.slots.default=[this.slots.default]:this.childNodes.length>0?this.slots.default=Array.from(this.childNodes).map((function(t){return e.grabSlotContent(t)})):this.slots.default=[]},n.isStateProperty=function(e){var t,n,r,i;return Boolean((null==(t=this.instance)||null==(n=t.current)?void 0:n.state)&&(Object.prototype.hasOwnProperty.call(null==(r=this.instance)||null==(i=r.current)?void 0:i.state,e)||this.instance.current.state.modelState&&Object.prototype.hasOwnProperty.call(this.instance.current.state.modelState,e)))},n.generateAliasIndex=function(){if(!this.self._propertyAliasIndex){this.self._propertyAliasIndex=c()({},this.self.propertyAliases);for(var e=0,t=Object.entries(this.self._propertyAliasIndex);e<t.length;e++){var n=t[e],r=n[0],i=n[1];Object.prototype.hasOwnProperty.call(this.self._propertyAliasIndex,i)||(this.self._propertyAliasIndex[i]=r)}}},n.reflectExternalProperties=function(e){this.ignoreAttributeUpdateObservations=!0;for(var t=0,n=Object.entries(e);t<n.length;t++){var r=n[t],i=r[0],o=r[1];if(this.setExternalPropertyValue(i,o),this.isConnected){var a=E().stringCamelCaseToDelimited(i);if(this.self._propertiesToReflectAsAttributes.has(i))switch(this.self._propertiesToReflectAsAttributes.get(i)){case S.boolean:case"boolean":o?""!==this.getAttribute(a)&&this.setAttribute(a,""):this.hasAttribute(a)&&this.removeAttribute(a);break;case S.func:case"function":break;case"json":if(o){var s=JSON.stringify(o);if(s&&this.getAttribute(a)!==s){this.setAttribute(a,s);break}}this.hasAttribute(a)&&this.removeAttribute(a);break;case S.number:case"number":if("number"!=typeof o||isNaN(o))this.hasAttribute(a)&&this.removeAttribute(a);else{var l=""+o;this.getAttribute(a)!==l&&this.setAttribute(a,l)}break;case S.string:case"string":o?this.getAttribute(a)!==o&&this.setAttribute(a,o):this.hasAttribute(a)&&this.removeAttribute(a);break;case S.any:case S.array:case S.arrayOf:case S.element:case S.elementType:case S.instanceOf:case S.node:case S.object:case"object":case S.objectOf:case S.shape:case S.exact:case S.symbol:default:if(o){var u=E().represent(o);if(u&&this.getAttribute(a)!==u){this.setAttribute(a,u);break}}this.hasAttribute(a)&&this.removeAttribute(a)}}}this.ignoreAttributeUpdateObservations=!1},n.reflectProperties=function(e){var t,n,r,i;if(this.reflectExternalProperties(e),null!=(t=this.instance)&&null!=(n=t.current)&&n.state&&"object"==typeof this.instance.current.state)for(var o,a=T(Object.keys(this.instance.current.state).concat(this.instance.current.state.modelState?Object.keys(this.instance.current.state.modelState):[]));!(o=a()).done;){var s=o.value;Object.prototype.hasOwnProperty.call(this.internalProperties,s)&&this.setInternalPropertyValue(s,void 0)}null!=(r=this.internalProperties.model)&&r.state&&(null==(i=this.internalProperties.model)||delete i.state,this.setInternalPropertyValue("model",this.internalProperties.model));for(var l,u=T(this.self.controllableProperties);!(l=u()).done;){var c=l.value;Object.prototype.hasOwnProperty.call(e,c)&&this.setInternalPropertyValue(c,e[c])}},n.triggerRender=function(e){var t=this;this.batchUpdates?this.batchedUpdateRunning||(this.batchedUpdateRunning=!0,E().timeout((function(){t.batchedUpdateRunning=!1,t.render(e)}))):this.render(e)},n.reflectEventToProperties=function(){var e=l()(x().mark((function e(t,n){var r,i,o,a,s,l,u,d,f,h,p,m,g,v,b,y;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this.batchUpdates,this.batchUpdates=!1,i=null,o=!1,!(this.self.eventToPropertyMapping&&Object.prototype.hasOwnProperty.call(this.self.eventToPropertyMapping,t)&&E().isFunction(this.self.eventToPropertyMapping[t]))){e.next=16;break}if(!((s=(a=this.self.eventToPropertyMapping)[t].apply(a,n.concat([this])))&&"then"in s&&E().isFunction(s.then))){e.next=12;break}return e.next=9,s;case 9:e.t0=e.sent,e.next=13;break;case 12:e.t0=s;case 13:l=e.t0,o=!0,Array.isArray(l)?(i=l[0],this.reflectProperties(i),E().extend(!0,this.internalProperties,l[1])):null===l?o=!1:"object"==typeof l&&(i=l,this.reflectProperties(l));case 16:if(!o&&n.length>0&&null!==n[0]&&"object"==typeof n[0]){if(d=n[0],"persist"in n[0]&&E().isFunction(n[0].persist))for(d={},f=0,h=Object.keys(this.self.propertyTypes);f<h.length;f++)for(p=h[f],m=T([p].concat(null!==(v=this.getPropertyAlias(p))&&void 0!==v?v:[]));!(g=m()).done;)b=g.value,(y=n[0].currentTarget&&Object.prototype.hasOwnProperty.call(n[0].currentTarget,b)?n[0].currentTarget[b]:this.getPropertyValue(b))!==this.externalProperties[b]&&(d[b]=y);else[null,void 0].includes(null==(u=d.detail)?void 0:u.value)||(d=c()({},d.detail));i=d,this.reflectProperties(d)}return this.triggerRender("propertyReflected"),this.batchUpdates=r,e.abrupt("return",i);case 20:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}(),n.evaluateStringOrNullAndSetAsProperty=function(e,t){var n=this,r=e.startsWith("-"),i=r?e.substring(1):e,o=E().stringDelimitedToCamelCase(i),a=this.getPropertyAlias(o);if(a&&Object.prototype.hasOwnProperty.call(this.self.propertyTypes,a)&&(o=a),Object.prototype.hasOwnProperty.call(this.self.propertyTypes,o)){var s=this.self.propertyTypes[o];if(r){if(t){var l=E().stringEvaluate(t,{Tools:E()},!1,this);l.error?(console.warn('Faild to process pre-evaluation attribute "'+e+'": '+l.error+'. Will be set to "undefined".'),this.setInternalPropertyValue(o,void 0)):(this.setInternalPropertyValue(o,l.result),this.setExternalPropertyValue(o,l.result))}}else switch(s){case S.boolean:case"boolean":var u=![null,"false"].includes(t);this.setInternalPropertyValue(o,u),this.setExternalPropertyValue(o,u);break;case S.func:case"function":var c,d=null,f=["data","event","firstArgument","firstParameter","options","scope","parameters","Tools"];if(t){var h=E().stringCompile(t,f);d=h.error,c=h.templateFunction,d&&console.warn('Failed to compile given handler "'+e+'": '+d+".")}this.setInternalPropertyValue(o,(function(){for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];n.outputEventNames.has(o)&&n.reflectEventToProperties(o,i);var s=void 0;if(!d)try{s=c.call(n,i[0],i[0],i[0],i[0],i[0],i[0],i,E())}catch(n){console.warn('Failed to evaluate function "'+e+'" with expression "'+t+'" and scope variables "'+f.join('", "')+'" set to "'+E().represent(i)+'": '+n+'. Set property to "undedefined".')}return n.self.renderProperties.includes(o)||n.forwardEvent(o,i),s})),d||this.setExternalPropertyValue(o,c);break;case"json":if(t){var p;try{p=JSON.parse(t)}catch(d){console.warn('Error occurred during parsing given json attribute "'+e+'": '+E().represent(d));break}this.setInternalPropertyValue(o,p),this.setExternalPropertyValue(o,E().copy(p,1))}else this.setInternalPropertyValue(o,null),this.setExternalPropertyValue(o,null);break;case S.number:case"number":if(null===t){this.setInternalPropertyValue(o,t),this.setExternalPropertyValue(o,t);break}var m=parseFloat(t);isNaN(m)&&(m=void 0),this.setInternalPropertyValue(o,m),this.setExternalPropertyValue(o,m);break;case S.string:case"string":this.setInternalPropertyValue(o,t),this.setExternalPropertyValue(o,t);break;case S.any:case S.array:case S.arrayOf:case S.element:case S.elementType:case S.instanceOf:case S.node:case S.object:case"object":case S.objectOf:case S.oneOf:case S.oneOfType:case S.shape:case S.exact:case S.symbol:default:if(t){var g=E().stringEvaluate(t,{},!1,this);if(g.error){console.warn('Error occurred during processing given attribute configuration "'+e+'":'+g.error);break}this.setInternalPropertyValue(o,g.result),this.setExternalPropertyValue(o,E().copy(g.result,1))}else this.hasAttribute(e)?(this.setInternalPropertyValue(o,!0),this.setExternalPropertyValue(o,!0)):(this.setInternalPropertyValue(o,null),this.setExternalPropertyValue(o,null))}}},n.determineRenderScope=function(e){var t,n;void 0===e&&(e={}),this.scope=c()({},(null==(t=this.parent)?void 0:t.scope)||{},this.scope,this.internalProperties,((n={parent:this.parent,root:this.rootInstance,self:this})[E().stringLowerCase(this.self._name)||"instance"]=this,n),e),this.scope.scope=this.scope},n.applyShadowRootIfNotExisting=function(){this.self.shadowDOM&&this.root===this&&(this.root=(!("attachShadow"in this)&&"ShadyDOM"in window?window.ShadyDOM.wrap(this):this).attachShadow(null!==this.self.shadowDOM&&"object"==typeof this.self.shadowDOM?this.self.shadowDOM:{mode:"open"}))},n.render=function(e){if(void 0===e&&(e="unknown"),this.determineRenderScope(),this.dispatchEvent(new CustomEvent("render",{detail:{reason:e,scope:this.scope}}))){var t=E().stringEvaluate("`"+this.self.content+"`",this.scope);if(t.error)console.warn("Faild to process template: "+t.error);else{this.applyShadowRootIfNotExisting();var n=document.createElement("div");n.innerHTML=t.result,this.applySlots(n,c()({},this.scope,{parent:this})),this.root.innerHTML=n.innerHTML,this.applyBindings(this.root.firstChild,this.scope,this.self.renderSlots)}}},t}(b()(HTMLElement)),a.applyRootBinding=!0,a.content="<slot>Please provide a template to transclude.</slot>",a.determineRootBinding=!0,a.shadowDOM=null,a.observedAttributes=[],a.controllableProperties=[],a.eventToPropertyMapping={},a.propertyAliases={},a.propertyTypes={onClick:S.func},a.propertiesToReflectAsAttributes=[],a.renderProperties=["children"],a.cloneSlots=!1,a.evaluateSlots=!1,a.renderSlots=!0,a.trimSlots=!0,a.renderUnsafe=!1,a._name="BaseWeb",a._propertyAliasIndex=void 0,a._propertiesToReflectAsAttributes=void 0,i=a,o=_()(i.prototype,"isRoot",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),i),O={component:k,register:function(e){return void 0===e&&(e=E().stringCamelCaseToDelimited(k._name)),customElements.define(e,k)}};t.default=k},function(e){e.exports=a},function(e){e.exports=l},function(e){e.exports=p},function(e){e.exports=c},function(e){e.exports=u},function(e){e.exports=d},function(e){e.exports=h},function(e){e.exports=i},function(e){e.exports=o},function(e){e.exports=s},function(e,t,n){n.d(t,{api:function(){return v}});var r=n(0),i=n.n(r),o=n(3),a=n.n(o),s=n(1),l=n.n(s),u=n(2),c=n(13),d=n.n(c),f=n(14),h=n(15);function p(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return m(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)?m(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function m(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}var g=function(e){function t(){for(var n,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return(n=e.call.apply(e,[this].concat(i))||this).compiledSlots={},n.preparedSlots={},n.reactRoot=null,n.rootReactInstance=null,n.self=t,n.wrapMemorizingWrapper=null,n.isWrapped=!1,n.reflectInstanceProperties=function(){var e;null!=(e=n.instance)&&e.current&&n.instance.current.properties&&n.reflectProperties(n.instance.current.properties)},n}a()(t,e);var n=t.prototype;return n.connectedCallback=function(){this.applyComponentWrapper(),this.rootReactInstance=this,e.prototype.connectedCallback.call(this)},n.disconnectedCallback=function(){var t;null==(t=this.reactRoot)||t.unmount(),e.prototype.disconnectedCallback.call(this)},n.reflectExternalProperties=function(t){this.isRoot&&e.prototype.reflectExternalProperties.call(this,t)},n.render=function(e){var t,n=this;if(void 0===e&&(e="unknown"),this.rootReactInstance===this&&this.dispatchEvent(new CustomEvent("render",{detail:{reason:e,scope:this.scope}}))){if(this.determineRenderScope(),0===Object.keys(this.compiledSlots).length&&this.preCompileSlots(),this.evaluateSlots(i()({},this.scope,{parent:this})),this.prepareProperties(this.internalProperties),this.applyShadowRootIfNotExisting(),this.root!==this)for(var r=this.firstChild;r;){var o=r.nextSibling;this.removeChild(r),r=o}this.reactRoot||(this.reactRoot=(0,h.createRoot)(this.root,{identifierPrefix:String(this.id||this.internalProperties.id||this.externalProperties.id||this.name||this.internalProperties.name||this.externalProperties.name)})),(0,f.flushSync)((function(){return n.reactRoot.render((0,c.createElement)(n.self.content,n.internalProperties))})),null!=(t=this.instance)&&t.current?this.reflectInstanceProperties():l().timeout(this.reflectInstanceProperties)}},n.setPropertyValue=function(e,t){var n;this.reflectProperties(((n={})[e]=l().copy(t,1),n)),this.setInternalPropertyValue(e,l().copy(t,1))},n.setInternalPropertyValue=function(t,n){null===n?n=u.NullSymbol:void 0===n&&(n=u.UndefinedSymbol),e.prototype.setInternalPropertyValue.call(this,t,n)},n.preCompileDomNodes=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n=!1),1===(e=e.filter((function(e){return e.nodeType!==Node.TEXT_NODE||"string"==typeof e.nodeValue&&""!==e.nodeValue.trim()}))).length)return this.preCompileDomNode(e[0],t,n);for(var r,i=1,o=[],a=p(e);!(r=a()).done;){var s=r.value,l=this.preCompileDomNode(s,t,n,i.toString());l&&(o.push(l),i+=1)}return n?function(e){return function(){for(var t,n=[],r=p(o);!(t=r()).done;){var i=(0,t.value)(e);"function"==typeof i&&n.push(i.apply(void 0,arguments))}return(0,c.createElement)(c.Fragment,{children:n})}}:o},n.preCompileDomNode=function(e,t,n,r){var o,a,s=this;if(void 0===t&&(t={}),void 0===n&&(n=!1),n){var u=this.preCompileDomNode(e,i()({},t,{data:void 0,firstArgument:void 0,firstParameter:void 0,options:void 0,scope:void 0,parameters:void 0}),!1,r);return function(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n.length>0?n[0]:null;return u(i()({},e,{data:o,firstArgument:o,firstParameter:o,options:o,scope:o,parameters:n}))}}}if(e.nodeType===Node.TEXT_NODE){var d="string"==typeof e.nodeValue?e.nodeValue.trim():"",f=r&&d?(0,c.createElement)(c.Fragment,{children:d,key:r}):d||null;return function(){return f}}if(!e.getAttributeNames)return function(){return null};var h=this.self.isReactComponent(e);h?(e.determineRenderScope(),0===Object.keys(this.compiledSlots).length&&e.preCompileSlots(),o=e.internalProperties,r&&!Object.prototype.hasOwnProperty.call(o,"key")&&(o.key=r),a=e.constructor.content):(o={key:r},a=e.tagName.toLowerCase());for(var m,g=Object.keys(t),v={},b=function(){var n,r=m.value,i=e.getAttribute(r);if(null===i)return"continue";var a=!1,u="";if(r.startsWith("data-bind-")?u=r.substring("data-bind-".length):r.startsWith("bind-")&&(u=r.substring("bind-".length)),u.startsWith("attribute-")||"attributes"===u||u.startsWith("property-")||"properties"===u){var c=l().stringCompile(i,g),d=c.error,f=c.originalScopeNames,h=c.templateFunction;if(d)return console.warn('Error occurred during compiling given attribute binding "'+r+'" on node:',e,d),"continue";"attributes"===u||"properties"===u?a=!0:u=u.startsWith("attribute-")?u.substring("attribute-".length):u.substring("property-".length),i={originalScopeNames:f,templateFunction:h.bind(s)}}else if(u.startsWith("on-")){u=l().stringDelimitedToCamelCase(u),Object.prototype.hasOwnProperty.call(t,"event")||(g=[].concat(g,["event"])),Object.prototype.hasOwnProperty.call(t,"parameters")||(g=[].concat(g,["parameters"]));var p=l().stringCompile(i,g,!0),b=p.error,y=p.originalScopeNames,_=p.scopeNames,w=p.templateFunction;if(b)return console.warn('Error occurred during compiling given event binding "'+r+'" on node:',e,b),"continue";var x=w.bind(s);i=function(){for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];t.event=o[0],t.parameters=o;try{x.apply(void 0,y.map((function(e){return t[e]})))}catch(t){console.warn('Error occurred during processing given event binding "'+r+'" on node: ',e,'Given expression "'+i+'" could not be evaluated with given scope names "'+_.join('", "')+'": '+l().represent(t))}}}else u=r;var C={class:"className",for:"htmlFor"};Object.prototype.hasOwnProperty.call(C,u)&&(u=C[u]),u=l().stringDelimitedToCamelCase(u),null!=(n=i)&&n.originalScopeNames?v[a?"":u]=i:o[u]=i},y=p(e.getAttributeNames());!(m=y()).done;)b();if(!h){var _=Array.from(e.childNodes);_.length&&(o.children=this.preCompileDomNodes(_,t))}return function(n){(n=i()({},t,n)).scope=n;for(var r=i()({},o),l=0,u=Object.entries(v);l<u.length;l++){var d=u[l],f=d[0],p=d[1],m=p.originalScopeNames,g=p.templateFunction.apply(void 0,m.map((function(e){return n[e]})));""===f?r=i()({},r,g):r[f]=g}return Object.prototype.hasOwnProperty.call(r,"innerHTML")&&(r.dangerouslySetInnerHTML={__html:r.innerHTML},delete r.children,delete r.innerHTML),Object.prototype.hasOwnProperty.call(r,"textContent")?(r.children=r.textContent,delete r.textContent):h?(e.evaluateSlots(i()({},r,n,{parent:e})),e.prepareProperties(r),n=i()({},r,n,{parent:e})):r.children&&(r.children=s.evaluatePreCompiledDomNodes(r.children,n)),(0,c.createElement)(a,r)}},n.evaluatePreCompiledDomNodes=function(e,t){if(void 0===t&&(t={}),!Array.isArray(e))return e(t);if(1===e.length)return e[0](t);for(var n,r=[],i=p(e);!(n=i()).done;){var o=(0,n.value)(t);o&&r.push(o)}return r},n.preCompileSlots=function(){var e;for(var t in this.slots)Object.prototype.hasOwnProperty.call(this.slots,t)&&"default"!==t&&(this.compiledSlots[t]=this.preCompileDomNode(this.slots[t],i()({},this.scope,{parent:this}),[u.func,"function"].includes(this.self.propertyTypes&&this.self.propertyTypes[t])));this.slots.default&&this.slots.default.length>0&&(this.compiledSlots.children=this.preCompileDomNodes(this.slots.default,i()({},this.scope,{parent:this}),[u.func,"function"].includes(null==(e=this.self.propertyTypes)?void 0:e.children)))},n.evaluateSlots=function(e){for(var t in this.preparedSlots={},this.compiledSlots)Object.prototype.hasOwnProperty.call(this.compiledSlots,t)&&("children"===t?this.preparedSlots.children=this.evaluatePreCompiledDomNodes(this.compiledSlots[t],e):this.preparedSlots[t]=this.compiledSlots[t](e))},t.isReactComponent=function(e){var t=e.constructor;return"object"==typeof t.content&&(!1===t.attachWebComponentAdapterIfNotExists||"react"===t.content.webComponentAdapterWrapped)},n.determineRootBinding=function(){e.prototype.determineRootBinding.call(this);for(var t=this.parentNode;t;){if(this.self.isReactComponent(t)){this.rootReactInstance=t;break}t=t.parentNode}},n.applyComponentWrapper=function(){if("string"!=typeof this.self.content&&!this.isWrapped){this.isWrapped=!0;var e=this.self.content.wrapped||this.self.content;this.self.content.webComponentAdapterWrapped?this.wrapMemorizingWrapper&&(this.self.content=(0,c.memo)(this.self.content),this.self.content.wrapped=e):this.self.attachWebComponentAdapterIfNotExists?(this.self.content.displayName||(this.self.content.displayName=this.self._name),this.self.content=(0,c.forwardRef)((function(t,n){return(0,c.useImperativeHandle)(n,(function(){return{properties:t}})),(0,c.createElement)(e,t)})),(this.wrapMemorizingWrapper||null===this.wrapMemorizingWrapper)&&(this.self.content=(0,c.memo)(this.self.content)),this.self.content.wrapped=e,this.self.content.webComponentAdapterWrapped="react"):this.wrapMemorizingWrapper&&(this.self.content=(0,c.memo)(this.self.content),this.self.content.wrapped=e)}},n.prepareProperties=function(e){l().extend(e,this.preparedSlots),this.self.removeKnownUnwantedPropertyKeys(this.self,e),e.ref||(this.instance=(0,c.createRef)(),e.ref=this.instance)},t.removeKnownUnwantedPropertyKeys=function(e,t){if("string"!=typeof e.content)for(var n,r=p(["isRoot","isTrusted","__composed"]);!(n=r()).done;){var i=n.value;Object.prototype.hasOwnProperty.call(t,i)&&(Object.prototype.hasOwnProperty.call(e.content,"propTypes")&&!Object.prototype.hasOwnProperty.call(e.content.propTypes,i)||Object.prototype.hasOwnProperty.call(e.content,"wrapped")&&Object.prototype.hasOwnProperty.call(e.content.wrapped,"propTypes")&&!Object.prototype.hasOwnProperty.call(e.content.wrapped.propTypes,i))&&delete t[i]}},t}(n(5).default);g.attachWebComponentAdapterIfNotExists=!0,g.content="div",g.react=d(),g._name="ReactWebComponent";var v={component:g,register:function(e){return void 0===e&&(e=l().stringCamelCaseToDelimited(g._name)),customElements.define(e,g)}};t.default=g}],m={};function g(e){var t=m[e];if(void 0!==t)return t.exports;var n=m[e]={exports:{}};return f[e](n,n.exports,g),n.exports}g.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return g.d(t,{a:t}),t},g.d=function(e,t){for(var n in t)g.o(t,n)&&!g.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},g.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},g.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var v={};return function(){g.r(v),g.d(v,{ReactWeb:function(){return l},Web:function(){return d},reactWebAPI:function(){return u},webAPI:function(){return c},wrapAsWebComponent:function(){return f}});var e=g(0),t=g.n(e),n=g(3),r=g.n(n),i=g(1),o=g.n(i),a=g(16),s=g(5),l=a.default,u=a.api,c=s.api,d=s.default,f=function(e,n,i){var a,s,u,c;void 0===n&&(n="NoName"),void 0===i&&(i={});var d=e._name||(null==(a=e.___types)||null==(s=a.name)?void 0:s.name)||n.replace(/^(.*\/+)?([^/]+)\.tsx$/,"$2");i.propTypes&&(e.propTypes=i.propTypes);var f=e.propTypes||{},h=i.propertyAliases||e.propertyAliases||{},p=o().arrayUnique(Object.keys(f).concat(Object.keys(h)).concat(Object.values(h))),m=i.propertiesToReflectAsAttributes||e.propertiesToReflectAsAttributes||[];if(l.propertiesToReflectAsAttributes)if(Array.isArray(m))m=[].concat(l.propertiesToReflectAsAttributes,m);else if(m instanceof Map)for(var g=0,v=l.propertiesToReflectAsAttributes;g<v.length;g++){var b=v[g];m.set(b,l.propertyTypes[b])}else if(null!==m&&"object"==typeof m)for(var y=0,_=l.propertiesToReflectAsAttributes;y<_.length;y++){var w=_[y];m[w]=l.propertyTypes[w]}var x=p.map((function(e){return o().stringCamelCaseToDelimited(e)})),C=function(n){function o(){for(var r,a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return(r=n.call.apply(n,[this].concat(s))||this).self=o,r.internalProperties=i.internalProperties?t()({},i.internalProperties):e.internalProperties?t()({},e.internalProperties):{},r}return r()(o,n),o}(l);return C.attachWebComponentAdapterIfNotExists="boolean"!=typeof i.attachWebComponentAdapterIfNotExists||i.attachWebComponentAdapterIfNotExists,C.content=e,C.observedAttributes=l.observedAttributes.concat(x).concat(x.map((function(e){return"-"+e}))),C.controllableProperties=e.controllableProperties||i.controllableProperties||[],C.eventToPropertyMapping=null===i.eventToPropertyMapping?i.eventToPropertyMapping:i.eventToPropertyMapping?t()({},i.eventToPropertyMapping):null===e.eventToPropertyMapping?e.eventToPropertyMapping:e.eventToPropertyMapping?t()({},e.eventToPropertyMapping):{},C.propertyAliases=t()({},l.propertyAliases,h),C.propertiesToReflectAsAttributes=m,C.propertyTypes=t()({},l.propertyTypes,f),C.renderProperties=null!==(u=null!==(c=i.renderProperties)&&void 0!==c?c:e.renderProperties)&&void 0!==u?u:l.renderProperties,C._name=d,{component:C,register:function(e){return void 0===e&&(e=o().stringCamelCaseToDelimited(d)),customElements.define(e,C)}}};v.default=f}(),v}())},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__2__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__3__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__4__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__5__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__6__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__7__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__8__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__9__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__10__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__11__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__12__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__13__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__14__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__15__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__16__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__17__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__18__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__19__},function(module,__unused_webpack_exports,__nested_webpack_require_48627__){var __dirname="/",e,r,t,n,o,i,c;if(module=__nested_webpack_require_48627__.nmd(module),null!==module&&"undefined"!==eval("typeof require")&&null!==eval("require")&&"main"in eval("require")&&"undefined"!==eval("typeof require.main")&&null!==eval("require.main")){var ORIGINAL_MAIN_MODULE=module;module!==eval("require.main")&&"paths"in module&&"paths"in eval("require.main")&&null!=__dirname&&(module.paths=eval("require.main.paths").concat(module.paths.filter((function(path){return eval("require.main.paths").includes(path)}))))}if(null==window)var window=void 0===__nested_webpack_require_48627__.g||null===__nested_webpack_require_48627__.g?{}:__nested_webpack_require_48627__.g;module.exports=(e=__nested_webpack_require_48627__(2),r=__nested_webpack_require_48627__(8),t=__nested_webpack_require_48627__(9),n=__nested_webpack_require_48627__(10),o=__nested_webpack_require_48627__(11),i=__nested_webpack_require_48627__(3),c=__nested_webpack_require_48627__(7),function(){var a=[function(e){e.exports=c},function(t){t.exports=e},function(e){e.exports=i},,function(e){e.exports=t},,function(e,t,n){n.d(t,{WrapTooltip:function(){return l}});var r=n(1),i=n.n(r),o=n(9),a=n(11),s=n(0),l=function(e){var t=e.children,n=e.options;return"string"==typeof n?(0,s.jsx)(a.Tooltip,{content:(0,s.jsx)(o.Typography,{use:"caption",children:n}),children:(0,s.jsx)("div",{className:"generic-tooltip",children:t})}):null!==n&&"object"==typeof n?("string"==typeof n.content&&(n=i()({},n,{content:(0,s.jsx)(o.Typography,{use:"caption",children:n.content})})),(0,s.jsx)(a.Tooltip,i()({},n,{children:(0,s.jsx)("div",{className:"generic-tooltip",children:t})}))):(0,s.jsx)(s.Fragment,{children:t})}},,,function(e){e.exports=o},function(e,t,n){n.d(t,{WrapThemeProvider:function(){return o}});var r=n(4),i=n(0),o=function(e){var t=e.children,n=e.configuration,o=e.wrap;return n?(0,i.jsx)(r.ThemeProvider,{options:n,wrap:!1!==o,children:t}):t}},function(e){e.exports=n},function(e,t,n){n.d(t,{x:function(){return o}});var r=n(2),i=n(0),o=function(e){var t=e.children;return e.strict?(0,i.jsx)(r.StrictMode,{children:t}):(0,i.jsx)(i.Fragment,{children:t})}},function(e){e.exports=r}],s={};function l(e){var t=s[e];if(void 0!==t)return t.exports;var n=s[e]={exports:{}};return a[e](n,n.exports,l),n.exports}l.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(t,{a:t}),t},l.d=function(e,t){for(var n in t)l.o(t,n)&&!l.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var u={};return function(){l.r(u),l.d(u,{WrapConfigurations:function(){return h},createWrapConfigurationsComponent:function(){return p}});var e=l(1),t=l.n(e),n=l(13),r=l.n(n),i=l(2),o=l(4),a=l(12),s=l(10),c=l(6),d=l(0),f=["strict","theme","themeConfiguration","tooltip","wrap"],h=function(e){var t=e.children,n=e.strict,r=e.themeConfiguration,i=e.tooltip,o=e.wrap;return(0,d.jsx)(a.x,{strict:Boolean(n),children:(0,d.jsx)(c.WrapTooltip,{options:i,children:(0,d.jsx)(s.WrapThemeProvider,{configuration:r,wrap:o,children:t})})})};function p(e,n){void 0===n&&(n={});var a=function(i,a){var s=i.strict,l=i.theme,u=i.themeConfiguration,c=i.tooltip,p=i.wrap,m=r()(i,f),g=(0,d.jsx)(e,t()({},t()({},m,!1===n.withReference?{}:a?{ref:a}:{},n.withThemeWrapper&&l?{theme:l}:{})));return(0,d.jsx)(h,{strict:s,themeConfiguration:u,tooltip:c,wrap:p,children:n.withThemeWrapper&&l?(0,d.jsx)(o.Theme,{use:l,wrap:p,children:g}):g})};return n.withReference?(0,i.forwardRef)(a):a}u.default=h}(),u}())},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__21__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__22__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__23__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__24__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__25__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__26__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__27__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__28__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__29__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__30__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__31__},function(module,__unused_webpack_exports,__nested_webpack_require_53132__){var __dirname="/",e,t,n,r,i,o,a,l,u,s,c,d,m,p,f,v,g,b,y,h,x,w,S,j;if(module=__nested_webpack_require_53132__.nmd(module),null!==module&&"undefined"!==eval("typeof require")&&null!==eval("require")&&"main"in eval("require")&&"undefined"!==eval("typeof require.main")&&null!==eval("require.main")){var ORIGINAL_MAIN_MODULE=module;module!==eval("require.main")&&"paths"in module&&"paths"in eval("require.main")&&null!=__dirname&&(module.paths=eval("require.main.paths").concat(module.paths.filter((function(path){return eval("require.main.paths").includes(path)}))))}if(null==window)var window=void 0===__nested_webpack_require_53132__.g||null===__nested_webpack_require_53132__.g?{}:__nested_webpack_require_53132__.g;module.exports=(e=__nested_webpack_require_53132__(5),t=__nested_webpack_require_53132__(2),n=__nested_webpack_require_53132__(8),r=__nested_webpack_require_53132__(6),i=__nested_webpack_require_53132__(47),o=__nested_webpack_require_53132__(21),a=__nested_webpack_require_53132__(23),l=__nested_webpack_require_53132__(24),u=__nested_webpack_require_53132__(25),s=__nested_webpack_require_53132__(26),c=__nested_webpack_require_53132__(27),d=__nested_webpack_require_53132__(28),m=__nested_webpack_require_53132__(9),p=__nested_webpack_require_53132__(10),f=__nested_webpack_require_53132__(11),v=__nested_webpack_require_53132__(29),g=__nested_webpack_require_53132__(30),b=__nested_webpack_require_53132__(48),y=__nested_webpack_require_53132__(4),h=__nested_webpack_require_53132__(0),x=__nested_webpack_require_53132__(3),w=__nested_webpack_require_53132__(31),S=__nested_webpack_require_53132__(22),j=__nested_webpack_require_53132__(7),function(){var _,C,E=[function(e){e.exports=j},function(e){e.exports=t},function(e){e.exports=x},function(e){e.exports=y},function(e){e.exports=m},function(e){e.exports=h},function(e,t,n){n.d(t,{WrapTooltip:function(){return l}});var r=n(1),i=n.n(r),o=n(9),a=n(11),s=n(0),l=function(e){var t=e.children,n=e.options;return"string"==typeof n?(0,s.jsx)(a.Tooltip,{content:(0,s.jsx)(o.Typography,{use:"caption",children:n}),children:(0,s.jsx)("div",{className:"generic-tooltip",children:t})}):null!==n&&"object"==typeof n?("string"==typeof n.content&&(n=i()({},n,{content:(0,s.jsx)(o.Typography,{use:"caption",children:n.content})})),(0,s.jsx)(a.Tooltip,i()({},n,{children:(0,s.jsx)("div",{className:"generic-tooltip",children:t})}))):(0,s.jsx)(s.Fragment,{children:t})};t.default=l},function(e,t,n){n.d(t,{WrapConfigurations:function(){return s}}),n(1),n(13),n(2),n(4);var r=n(12),i=n(10),o=n(6),a=n(0),s=function(e){var t=e.children,n=e.strict,s=e.themeConfiguration,l=e.tooltip,u=e.wrap;return(0,a.jsx)(r.x,{strict:Boolean(n),children:(0,a.jsx)(o.WrapTooltip,{options:l,children:(0,a.jsx)(i.WrapThemeProvider,{configuration:s,wrap:u,children:t})})})};t.default=s},function(e,t,n){n.d(t,{deriveMissingPropertiesFromState:function(){return d},determineInitialRepresentation:function(){return m},determineInitialValue:function(){return g},determineValidationState:function(){return v},formatValue:function(){return E},getConsolidatedProperties:function(){return y},getLabelAndValues:function(){return _},getValueFromSelection:function(){return w},mapPropertiesIntoModel:function(){return b},normalizeSelection:function(){return x},parseValue:function(){return C},translateKnownSymbols:function(){return p},triggerCallbackIfExists:function(){return h},useMemorizedValue:function(){return S},wrapStateSetter:function(){return f}});var r=n(1),i=n.n(r),o=n(3),a=n.n(o),s=n(5),l=n(2);function u(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return c(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)?c(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(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}var d=function(e,t){void 0!==e.model.value&&void 0===e.value&&(e.value=e.model.value),void 0===e.value&&(e.value=t.value),e.model.state?e.model.state=i()({},e.model.state):e.model.state={};for(var n=0,r=Object.entries(t.modelState);n<r.length;n++){var o=r[n],a=o[0],s=o[1];void 0===e.model.state[a]&&(e.model.state[a]=s)}return e},f=function(e,t){return function(n){var r="function"==typeof n?n(t):n;a().equals(null==r?void 0:r.modelState,null==t?void 0:t.modelState)||e(r)}},h=function(e,t,n){void 0===n&&(n=!0);for(var r=arguments.length,i=new Array(r>3?r-3:0),o=3;o<r;o++)i[o-3]=arguments[o];t="on"+a().stringCapitalize(t),e[t]&&(n?e[t].apply(e,i):a().timeout((function(){return e[t].apply(e,i)})))},p=function(e){for(var t={},n=0,r=Object.entries(e);n<r.length;n++){var i=r[n],o=i[0],l=i[1];l===s.UndefinedSymbol?t[o]=void 0:l===s.NullSymbol?t[o]=null:t[o]=a().copy(e[o])}return t};function m(e,t,n,r,o){if("string"==typeof e.representation)return e.representation;if(null!==n){var s,l=function(e,t){if(t)for(var n,r=u(t);!(n=r()).done;){var i=n.value;if(a().equals(null==i?void 0:i.value,e))return i.label||""+e}return null}(n,o);return"string"==typeof l?l:E(i()({},e,{type:e.type||(null==(s=e.model)?void 0:s.type)||t.model.type}),n,r)}return""}var g=function(e,t,n){var r,i;return void 0!==n?n:void 0!==e.value?e.value:void 0!==(null==(r=e.model)?void 0:r.value)?e.model.value:void 0!==e.initialValue?a().copy(e.initialValue):void 0!==e.default?a().copy(e.default):void 0!==(null==(i=e.model)?void 0:i.default)?a().copy(e.model.default):void 0!==t?t:null},v=function(e,t,n){void 0===n&&(n={});var r=!1;n=i()({invalidRequired:function(){return!1===e.model.nullable&&"boolean"!==e.model.type&&!e.model.value&&0!==e.model.value||"boolean"===e.model.type&&!("boolean"==typeof e.model.value||["false","true"].includes(e.model.value))}},n),e.model.state=e.model.state||{};for(var o=0,a=Object.entries(n);o<a.length;o++){var s=a[o],l=s[0],u=s[1],c=t[l];e.model.state[l]=u(),r=r||c!==t[l]}return r&&(e.model.state.invalid=Object.keys(n).some((function(t){return e.model.state[t]})),e.model.state.valid=!e.model.state.invalid),r},b=function(e,t){var n=a().extend(!0,{model:a().copy(t)},e);n.disabled&&(n.model.mutable=!1,delete n.disabled),n.invertedPattern&&(n.model.invertedRegularExpressionPattern=n.invertedPattern,delete n.invertedPattern),n.pattern&&(n.model.regularExpressionPattern=n.pattern,delete n.pattern),n.required&&(n.model.nullable=!1,delete n.required),"text"===n.type&&(n.type="string");for(var r,i=u(Object.keys(n.model).concat("value"));!(r=i()).done;){var o=r.value;Object.prototype.hasOwnProperty.call(n,o)&&void 0!==n[o]&&(n.model[o]=n[o])}for(var s in n.model.state)Object.prototype.hasOwnProperty.call(n,s)&&void 0!==n[s]&&(n.model.state[s]=n[s]);return void 0===n.model.value&&(n.model.value=a().copy(n.model.default)),n},y=function(e){var t=i()({},e,e.model||{},(e.model||{}).state||{});return t.disabled=!(t.mutable&&t.writable),delete t.mutable,delete t.writable,delete t.state,t.required=!t.nullable,delete t.nullable,t.invertedRegularExpressionPattern&&(t.invertedPattern=t.invertedRegularExpressionPattern),delete t.invertedRegularExpressionPattern,t.regularExpressionPattern&&(t.pattern=t.regularExpressionPattern),delete t.regularExpressionPattern,t};function _(e){if(Array.isArray(e)){for(var t,n=[],r=[],i=u(e);!(t=i()).done;){var o=t.value;"string"==typeof(null==o?void 0:o.label)&&(n.push(o.label),r.push(o.value))}return[n,r]}return[[],[]]}function w(e,t){if(Array.isArray(t))for(var n,r=u(t);!(n=r()).done;){var i=n.value;if("string"==typeof(null==i?void 0:i.label)&&i.label===e)return i.value;if(["number","string"].includes(typeof(null==i?void 0:i.value))&&""+i.value===e)return i.value}return null}function x(e,t){if(e||(e=t,t=void 0),!e)return e;var n=null!==t&&"object"==typeof t,r=function(e,r){if(n)if(Array.isArray(t)){if(t.length)if(Array.isArray(t[0]))for(var i,o=u(t);!(i=o()).done;){var a=i.value,s=a[0],l=a[1];if(s===e)return l}else if("number"==typeof r&&r<t.length)return t[r]}else{if(!0===e&&t.true)return t.true;if(!1===e&&t.false)return t.false;if("string"==typeof e&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}return null},o=!1;if(Array.isArray(e)){if(o=!0,e.length){var a=[],s=0;if(Array.isArray(e[0]))for(var l=0,c=e;l<c.length;l++){var d,f=c[l],h=f[0],p=f[1];a.push({label:null!==(d=r(h,s))&&void 0!==d?d:p,value:h}),s+=1}else if(null!==e[0]&&"object"==typeof e[0])for(var m,g=u(e);!(m=g()).done;){var v,b=m.value;a.push(i()({},b,{label:null!==(v=r(b.value,s))&&void 0!==v?v:b.label})),s+=1}else for(var y=0,_=e;y<_.length;y++){var w,x=_[y];a.push({label:null!==(w=r(x,s))&&void 0!==w?w:x,value:x}),s+=1}e=a}}else{for(var C=[],E=0,S=Object.keys(e);E<S.length;E++){var T,A=S[E];C.push({label:null!==(T=r(A))&&void 0!==T?T:e[A],value:A})}e=C}if(Array.isArray(t)&&t.length&&Array.isArray(t[0])){for(var k,O=new Map,I=0,L=u(t);!(k=L()).done;){var R=k.value[0];O.set(R,I),I+=1}e=e.sort((function(e,t){var n,r,i=e.value,o=t.value;return(null!==(n=O.get(i))&&void 0!==n?n:0)-(null!==(r=O.get(o))&&void 0!==r?r:0)}))}else o||(e=e.sort((function(e,t){var n=e.value,r=t.value;return n.localeCompare(r)})));return e}var C=function(e,t,n){var r;if(e.model.trim&&"string"==typeof t&&(t=t.trim().replace(/ +\n/g,"\\n")),e.model.emptyEqualsNull&&""===t)return null;var i=t;return![null,void 0].includes(t)&&null!=(r=n[e.model.type])&&r.parse&&(i=n[e.model.type].parse(t,e,n)),"number"==typeof i&&isNaN(i)?null:i};function E(e,t,n,r){var i;void 0===r&&(r=!0);var o=r?"final":"intermediate";if([null,void 0].includes(t)||"number"==typeof t&&isNaN(t))return"";var a=null==(i=n[e.type||e.model.type])?void 0:i.format;if(a){var s,l,u=(null==(s=a[o])?void 0:s.transform)||(null==(l=a.final)?void 0:l.transform);if(u)return u(t,e,n)}return String(t)}var S=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return(0,l.useMemo)((function(){return e}),n)}},function(e){e.exports=f},function(e,t,n){n.d(t,{WrapThemeProvider:function(){return o}});var r=n(4),i=n(0),o=function(e){var t=e.children,n=e.configuration,o=e.wrap;return n?(0,i.jsx)(r.ThemeProvider,{options:n,wrap:!1!==o,children:t}):t}},function(e){e.exports=p},function(e,t,n){n.d(t,{x:function(){return o}});var r=n(2),i=n(0),o=function(e){var t=e.children;return e.strict?(0,i.jsx)(r.StrictMode,{children:t}):(0,i.jsx)(i.Fragment,{children:t})}},function(e){e.exports=n},function(e,t,n){n.d(t,{default:function(){return p}});var r=n(1),i=n.n(r),o=n(5),a=n(2),s=n(21),l=n(0),u="generic-animate",c="generic-animate__list-wrapper",d="generic-animate__wrapper",f=function(e,t){return(0,l.jsx)(s.CSSTransition,i()({appear:!0,classNames:u,in:!0,timeout:200,unmountOnExit:!0},e,{children:"string"==typeof e.children?(0,l.jsx)("span",{className:d,ref:t,children:e.children}):Array.isArray(e.children)?(0,l.jsx)("div",{className:c,ref:t,children:e.children}):e.children}))},h=(0,a.memo)((0,a.forwardRef)(f));h.wrapped=f,h.webComponentAdapterWrapped="react",h.propTypes={appear:o.boolean,classNames:o.string,in:o.boolean,timeout:o.number};var p=h},function(e,t,n){n.d(t,{default:function(){return U}});var r=n(1),i=n.n(r),o=n(16),a=n.n(o),s=n(17),l=n.n(s),u=n(3),c=n.n(u),d=n(2),f=n(18),h=n(22),p=n(19),m=n(20),g=n(23),v=n(24),b=n(25),y=n(4),_=n(26),w=n(14),x=n(7),C=n(6),E=n(8),S=n(29),T=n(0);function A(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return k(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)?k(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function k(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}var O=!(void 0===typeof window),I=O?(0,u.optionalRequire)("react-useanimations"):null,L=O?(0,u.optionalRequire)("react-useanimations/lib/lock"):null,R=O?(0,u.optionalRequire)("react-useanimations/lib/plusToX"):null,M={"generic-input":"generic-input",ace_editor:"ace_editor","tox-tinymce":"tox-tinymce","generic-input--custom":"generic-input--custom","generic-input__editor__label":"generic-input__editor__label","generic-input__suggestions":"generic-input__suggestions","generic-input__suggestions--pending":"generic-input__suggestions--pending","generic-input__suggestions__suggestion":"generic-input__suggestions__suggestion","generic-input__suggestions__suggestion__mark":"generic-input__suggestions__suggestion__mark"},P={basePath:"/node_modules/ace-builds/src-noconflict/",useWorker:!1},$=(0,d.lazy)(a()(l().mark((function e(){var t,r,i,o,a,s,u;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.resolve().then(n.t.bind(n,27,23));case 2:for(t=e.sent,r=t.config,i=0,o=Object.entries(P);i<o.length;i++)a=o[i],s=a[0],u=a[1],r.set(s,u);return e.next=7,Promise.resolve().then(n.t.bind(n,28,23));case 7:return e.abrupt("return",e.sent);case 8:case"end":return e.stop()}}),e)})))),N=!1,D="/node_modules/tinymce/",j={base_url:D,skin_url:D+"skins/ui/oxide",theme_url:D+"themes/silver/theme.min.js",allow_conditional_comments:!1,allow_script_urls:!1,body_class:"mdc-text-field__input",branding:!1,cache_suffix:"?version=1666081628.983",contextmenu:[],document_base_url:"/",element_format:"xhtml",entity_encoding:"raw",fix_list_elements:!0,hidden_input:!1,icon:"material",invalid_elements:"em",invalid_styles:"color font-size line-height",keep_styles:!1,menubar:!1,plugins:["fullscreen","link","code","nonbreaking","searchreplace","visualblocks"],relative_urls:!1,remove_script_host:!1,remove_trailing_brs:!0,schema:"html5",toolbar1:"\n cut copy paste |\n undo redo removeformat |\n styleselect formatselect fontselect fontsizeselect |\n searchreplace visualblocks fullscreen code\n ".trim(),toolbar2:"\n alignleft aligncenter alignright alignjustify outdent indent |\n link nonbreaking bullist numlist bold italic underline strikethrough\n ".trim(),trim:!0};function F(e,t){return(0,E.determineValidationState)(e,t,{invalidMaximum:function(){return"number"==typeof e.model.maximum&&"number"==typeof e.model.value&&!isNaN(e.model.value)&&e.model.maximum>=0&&e.model.maximum<e.model.value},invalidMinimum:function(){return"number"==typeof e.model.minimum&&"number"==typeof e.model.value&&!isNaN(e.model.value)&&e.model.value<e.model.minimum},invalidMaximumLength:function(){return"number"==typeof e.model.maximumLength&&"string"==typeof e.model.value&&e.model.maximumLength>=0&&e.model.maximumLength<e.model.value.length},invalidMinimumLength:function(){return"number"==typeof e.model.minimumLength&&"string"==typeof e.model.value&&e.model.value.length<e.model.minimumLength},invalidInvertedPattern:function(){return"string"==typeof e.model.value&&[].concat(e.model.invertedRegularExpressionPattern).some((function(t){return"string"==typeof t&&new RegExp(t).test(e.model.value)||null!==t&&"object"==typeof t&&t.test(e.model.value)}))},invalidPattern:function(){return"string"==typeof e.model.value&&[].concat(e.model.regularExpressionPattern).some((function(t){return"string"==typeof t&&!new RegExp(t).test(e.model.value)||null!==t&&"object"==typeof t&&!t.test(e.model.value)}))}})}function B(e){c().keyCode.ENTER===e.keyCode&&e.stopPropagation()}function W(e,t){return!!t&&(e=e.toLowerCase(),t.replace(/ +/g," ").toLowerCase().split(" ").every((function(t){return e.includes(t)})))}var H=function(e,t){var n,r,o,a,s,l,u,S,k=(0,d.useId)();(0,d.useEffect)((function(){if(ze||be.selectionIsUnstable)if(qe.editorIsActive){var e,t,n;null!=(e=re.current)&&null!=(t=e.editor)&&t.selection?(re.current.editor.textInput.focus(),K(re.current),be.selectionIsUnstable&&ye(i()({},be,{selectionIsUnstable:!1}))):null!=(n=le.current)&&n.selection&&(le.current.focus(!1),G(le.current),be.selectionIsUnstable&&ye(i()({},be,{selectionIsUnstable:!1})))}else ae.current&&(ae.current.setSelectionRange(qe.cursor.start,qe.cursor.end),be.selectionIsUnstable&&ye(i()({},be,{selectionIsUnstable:!1})));if(ae.current&&(qe.valid?(ae.current.removeAttribute("aria-errormessage"),ae.current.removeAttribute("aria-invalid")):(ae.current.setAttribute("aria-errormessage",k+"-error-message"),ae.current.setAttribute("aria-invalid","true")),tt&&("search"!==ae.current.getAttribute("type")&&ae.current.setAttribute("role","searchbox"),ae.current.setAttribute("aria-autocomplete",qe.searchSelection?"inline":"list")),qe.inputProps))for(var r=0,o=Object.entries(qe.inputProps);r<o.length;r++){var a=o[r],s=a[0],l=a[1],u=c().stringCamelCaseToDelimited(s);"boolean"==typeof l?l?ae.current.setAttribute(u,""):ae.current.removeAttribute(u):ae.current.setAttribute(u,String(l))}if(lt){var d=fe.current.querySelector('[aria-haspopup="listbox"]');d.hasAttribute("aria-expanded")||d.setAttribute("aria-expanded","false")}}));var O=function(e){if("clear_preset"===e){var t=function(e){e.preventDefault(),e.stopPropagation(),Q((0,E.parseValue)(qe,qe.default,V.transformer))};return{icon:(0,T.jsx)(w.default,{in:!c().equals(qe.value,qe.default),children:I&&!I.isDummy&&R?(0,T.jsx)(I,{animation:R,reverse:!0}):(0,T.jsx)(m.IconButton,{icon:"clear"})}),onClick:t,onKeyDown:t,strategy:"component",tabIndex:-1,tooltip:"Clear input"}}if("password_preset"===e){var n=function(e){"number"==typeof e.keyCode&&e.keyCode!==c().keyCode.ENTER||(e.preventDefault(),e.stopPropagation(),xe((function(t){return void 0===t&&(t=qe.hidden),qe.hidden=!t,Y(e),qe.hidden})))};return(0,E.useMemorizedValue)({icon:I&&!I.isDummy&&L?(0,T.jsx)(I,{animation:L,reverse:!qe.hidden}):(0,T.jsx)(m.IconButton,{icon:qe.hidden?"lock_open":"lock"}),onClick:n,onKeyDown:n,strategy:"component",tabIndex:-1,tooltip:(qe.hidden?"Show":"Hide")+" password"},qe.hidden)}return e&&("string"==typeof e&&(e={icon:e}),Object.prototype.hasOwnProperty.call(e,"onClick")||(e.tabIndex=-1)),e},P=function(e){var t,n;return"string"===e.type?e.hidden?"password":tt?"search":"text":null!==(t=null==(n=Re[e.type])?void 0:n.type)&&void 0!==t?t:e.type},D=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n=!0),"boolean"==typeof t?n?(0,T.jsx)(w.default,{in:t,children:e}):t?e:"":n?(0,T.jsx)(w.default,i()({},t,{children:e})):t.in?e:""},H=function(e){var t;if("object"==typeof e&&null!=(t=e)&&t.tooltip){var n=e.tooltip;delete(e=i()({},e)).tooltip;var r=i()({},e);e.strategy="component",e.icon=(0,T.jsx)(C.default,{options:n,children:(0,T.jsx)(p.Icon,{icon:r})})}return e},U=function(e,t,n){if(!qe.value)return 0;var r="generic-input-selection-indicator",i=" "+r+'="###"';t.setAttribute(r,"###");var o=e.innerHTML.replace(/(<\/p>)/gi,"$1\n");t.removeAttribute(r);var a=o.indexOf(i)+i.length;return n+o.indexOf(">",a)+1-i.length},z=function(e,t){return"string"==typeof qe.value||qe.value?t>0?e+qe.value.split("\n").slice(0,t).map((function(e){return 1+e.length})).reduce((function(e,t){return e+t})):e:0},q=function(e){var t={column:0,row:0};if("string"==typeof qe.value)for(var n,r=A(qe.value.split("\n"));!(n=r()).done;){var i=n.value;if(!(i.length<e)){t.column=e;break}e-=1+i.length,t.row+=1}return t},K=function(e){var t=e.editor.selection.getRange(),n=q(qe.cursor.end);t.setEnd(n.row,n.column);var r=q(qe.cursor.start);t.setStart(r.row,r.column),e.editor.selection.setRange(t)},G=function(e){for(var t={end:"###generic-input-selection-indicator-end###",start:"###generic-input-selection-indicator-start###"},n={end:qe.cursor.end+t.start.length,start:qe.cursor.start},r=["start","end"],i=qe.representation,o=0,a=r;o<a.length;o++){var s=a[o];i=i.substring(0,n[s])+t[s]+i.substring(n[s])}e.getBody().innerHTML=i;for(var l,u=document.createTreeWalker(e.getBody(),NodeFilter.SHOW_TEXT,null),d=e.dom.createRng(),f={};l=u.nextNode();)for(var h,p=A(r);!(h=p()).done;){var m=h.value;if(l.nodeValue){var g=l.nodeValue.indexOf(t[m]);g>-1&&(l.nodeValue=l.nodeValue.replace(t[m],""),f[m]=[l,g])}}for(var v=0,b=r;v<b.length;v++){var y=b[v];f[y]&&d["set"+c().stringCapitalize(y)].apply(d,f[y])}f.end&&f.start&&e.selection.setRng(d)},X=function(e){var t=(0,E.getConsolidatedProperties)(function(e){var t=(0,E.mapPropertiesIntoModel)(e,V.defaultProperties.model);return t.model.value=(0,E.parseValue)(t,t.model.value,Re),F(t,t.model.state),t}(e));return t.selection||"boolean"!==t.type||(t.selection=[{label:"No",value:!1},{label:"Yes",value:!0}]),t.selectableEditor||"plain"===t.editor||(t.editorIsActive=!0),"string"!=typeof t.representation&&(t.representation=(0,E.formatValue)(t,t.value,Re,!t.focused),t.focused&&t.representation!==t.value&&["password","text"].includes(P(t))&&(ze=!0)),t},Y=function(e){c().extend(!0,qe,X(qe)),(0,E.triggerCallbackIfExists)(qe,"change",Ve,qe,e)},Q=function(e,t,n){var r;if(void 0===n&&(n=-1),Se(!0),null!==e&&"object"==typeof e){var o=e.target||e.detail;if(o)if("number"==typeof o.index){var a=o.index-(qe.placeholder?1:0);qe.value=a>=0&&a<Fe.length?Fe[a]:null}else qe.value=void 0===o.value?null:o.value;else qe.value=e}else qe.value=e;var s=function(){return He((function(e){if(!Ue&&e.representation===qe.representation&&!qe.suggestionCreator&&-1===n)return e;var t=i()({},e,{representation:qe.representation});if(!Ve&&c().equals(e.value,qe.value))return t;t.value=qe.value;var o=!1;return e.modelState.pristine&&(qe.dirty=!0,qe.pristine=!1,o=!0),Y(r),F(qe,e.modelState)&&(o=!0),(0,E.triggerCallbackIfExists)(qe,"changeValue",Ve,qe.value,r,qe),o&&(t.modelState=qe.model.state,(0,E.triggerCallbackIfExists)(qe,"changeState",Ve,qe.model.state,r,qe)),(lt||-1!==n)&&(0,E.triggerCallbackIfExists)(qe,"select",Ve,r,qe),t}))};if(qe.representation=-1!==n?Je[n]:"string"==typeof qe.value?qe.value:(0,E.formatValue)(qe,qe.value,Re),tt)if(qe.suggestionCreator){var l=new AbortController,u=function(e){if(!l.signal.aborted){if($e((function(t){return t instanceof AbortController&&!t.signal.aborted&&t.abort(),e})),-1===n){var t=(0,E.getValueFromSelection)(qe.representation,(0,E.normalizeSelection)(e));null!==t||qe.searchSelection?qe.value=t:qe.value=(0,E.parseValue)(qe,qe.representation,Re)}s()}},d=qe.suggestionCreator({abortController:l,properties:qe,query:qe.representation});null!=d&&d.then?($e((function(e){return e instanceof AbortController&&!e.signal.aborted&&e.abort(),l})),He((function(e){return i()({},e,{representation:qe.representation})})),d.then(u,c().noop)):u(d)}else{if(-1===n){var f=(0,E.getValueFromSelection)(qe.representation,Ne);null!==f||qe.searchSelection?qe.value=f:qe.value=(0,E.parseValue)(qe,qe.representation,Re)}s()}else qe.value=(0,E.parseValue)(qe,qe.value,Re),s()},Z=function(e){te(e),(0,E.triggerCallbackIfExists)(qe,"click",Ve,e,qe),ne(e)},J=function(e){(0,E.triggerCallbackIfExists)(qe,"focus",Ve,e,qe),ne(e)},ee=function(e){e.keyCode&&(te(e),(0,E.triggerCallbackIfExists)(qe,"keyUp",Ve,e,qe))},te=function(e){!function(e){var t,n,r,i,o,a,s,l=null==(t=re.current)||null==(n=t.editor)||null==(r=n.selection)?void 0:r.getRange(),u=null==(i=le.current)||null==(o=i.selection)?void 0:o.getRng(),c=null==(a=ae.current)?void 0:a.selectionEnd,d=null==(s=ae.current)?void 0:s.selectionStart;if(l)ge({end:z(l.end.column,"number"==typeof l.end.row?l.end.row:"string"==typeof qe.value?qe.value.split("\n").length-1:0),start:z(l.start.column,"number"==typeof l.start.row?l.start.row:"string"==typeof qe.value?qe.value.split("\n").length-1:0)});else if(u)ge({end:U(le.current.getBody(),le.current.selection.getEnd(),u.endOffset),start:U(le.current.getBody(),le.current.selection.getStart(),u.startOffset)});else if("number"==typeof c&&"number"==typeof d){var f,h=1===(null==e||null==(f=e.key)?void 0:f.length)?1:"Backspace"===(null==e?void 0:e.key)&&qe.representation.length>d?-1:0;ge({end:c+h,start:d+h})}}(e),(0,E.triggerCallbackIfExists)(qe,"selectionChange",Ve,e,qe)},ne=function(e){return He((function(t){var n=!1;t.modelState.focused||(qe.focused=!0,n=!0),t.modelState.untouched&&(qe.touched=!0,qe.untouched=!1,n=!0);var r=t;return n&&(Y(e),r=i()({},t,{modelState:qe.model.state}),(0,E.triggerCallbackIfExists)(qe,"changeState",Ve,qe.model.state,e,qe)),(0,E.triggerCallbackIfExists)(qe,"touch",Ve,e,qe),r}))},re=(0,d.useRef)(null),ie=(0,d.useRef)(null),oe=(0,d.useRef)(null),ae=(0,d.useRef)(null),se=(0,d.useRef)(null),le=(0,d.useRef)(null),ue=(0,d.useRef)(null),ce=(0,d.useRef)(null),de=(0,d.useRef)(null),fe=(0,d.useRef)(null),he=(0,E.translateKnownSymbols)(e),pe=(0,d.useState)({end:0,start:0}),me=pe[0],ge=pe[1],ve=(0,d.useState)({editorIsActive:!1,selectionIsUnstable:!1}),be=ve[0],ye=ve[1],_e=(0,d.useState)(),we=_e[0],xe=_e[1],Ce=(0,d.useState)(!1),Ee=Ce[0],Se=Ce[1],Te=(0,d.useState)(!1),Ae=Te[0],ke=Te[1],Oe=(0,E.determineInitialValue)(he,null==(n=V.defaultProperties.model)?void 0:n.default);Oe instanceof Date&&(Oe=Oe.getTime()/1e3);var Ie=c().extend(!0,c().copy(V.defaultProperties),he),Le=Ie.type||(null==(r=Ie.model)?void 0:r.type)||"string",Re=Ie.transformer?i()({},V.transformer,((o={})[Le]=c().extend(!0,c().copy(V.transformer[Le])||{},Ie.transformer),o)):V.transformer,Me=(0,d.useState)(),Pe=Me[0],$e=Me[1];(Ie.selection||null!=(a=Ie.model)&&a.selection)&&(Pe=Ie.selection||(null==(s=Ie.model)?void 0:s.selection));var Ne=Pe instanceof AbortController?[]:(0,E.normalizeSelection)(Pe,Ie.labels),De=Pe instanceof AbortController?[[],[]]:(0,E.getLabelAndValues)(Ne),je=De[0],Fe=De[1],Be=(0,d.useState)((function(){return{modelState:i()({},V.defaultModelState),representation:(0,E.determineInitialRepresentation)(Ie,V.defaultProperties,Oe,Re,Ne),value:Oe}})),We=Be[0],He=Be[1],Ve=!Ie.enforceUncontrolled&&(void 0!==(null==(l=he.model)?void 0:l.value)||void 0!==he.value)&&Boolean(he.onChange||he.onChangeValue),Ue=Ve&&void 0!==he.representation,ze=!1;null!==Ie.cursor&&"object"==typeof Ie.cursor||(Ie.cursor={}),void 0===Ie.cursor.end&&(Ie.cursor.end=me.end),void 0===Ie.cursor.start&&(Ie.cursor.start=me.start),void 0===Ie.editorIsActive&&(Ie.editorIsActive=be.editorIsActive),void 0===Ie.hidden&&(Ie.hidden=we),void 0===Ie.representation&&(Ie.representation=We.representation),void 0===Ie.showDeclaration&&(Ie.showDeclaration=Ae),(0,E.deriveMissingPropertiesFromState)(Ie,We),void 0===Ie.value?void 0===Ie.representation&&void 0===Ie.model.value&&(Ie.representation=We.representation):Ue||Ie.value===We.value||(Ie.representation=void 0);var qe=X(Ie);void 0===qe.hidden&&(qe.hidden=null==(u=qe.name)?void 0:u.startsWith("password")),c().equals(qe.cursor,me)||ge(qe.cursor),qe.editorIsActive!==be.editorIsActive&&ye(i()({},be,{editorIsActive:qe.editorIsActive})),qe.hidden!==we&&xe(qe.hidden),qe.showDeclaration!==Ae&&ke(qe.showDeclaration);var Ke={modelState:qe.model.state,representation:qe.representation,value:qe.value};(Ve||c().equals(qe.value,We.value)&&qe.representation===We.representation)&&c().equals(qe.model.state,We.modelState)||He(Ke),Ve&&(He=(0,E.wrapStateSetter)(He,Ke)),(0,d.useImperativeHandle)(t,(function(){for(var e,t={modelState:qe.model.state},n=A(["cursor","editorIsActive","hidden","showDeclaration"]);!(e=n()).done;){var r=e.value;Object.prototype.hasOwnProperty.call(he,r)||(t[r]=qe[r])}return Ue||(t.representation=qe.representation),Ve||(t.value=qe.value),{properties:qe,references:{codeEditorReference:re,codeEditorInputReference:ie,foundationReference:oe,inputReference:ae,richTextEditorInputReference:se,richTextEditorInstance:le,richTextEditorReference:ue,suggestionMenuAPIReference:ce,suggestionMenuFoundationReference:de,wrapperReference:fe},state:t}}));var Ge={onFocus:function(e){Se(!0),J(e)},placeholder:qe.placeholder},Xe={disabled:qe.disabled,helpText:{children:(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(w.default,{in:qe.selectableEditor&&"string"===qe.type&&"plain"!==qe.editor,children:(0,T.jsx)(m.IconButton,{icon:{icon:qe.editorIsActive?"subject":qe.editor.startsWith("code")?"code":"text_format",onClick:function(e){e&&(e.preventDefault(),e.stopPropagation()),ye((function(t){var n=t.editorIsActive;return qe.editorIsActive=!n,Y(e),(0,E.triggerCallbackIfExists)(qe,"changeEditorIsActive",Ve,qe.editorIsActive,e,qe),{editorIsActive:qe.editorIsActive,selectionIsUnstable:!0}}))}}})}),(0,T.jsx)(w.default,{in:Boolean(qe.declaration),children:(0,T.jsx)(m.IconButton,{icon:{icon:"more_"+(qe.showDeclaration?"vert":"horiz"),onClick:function(e){e&&(e.preventDefault(),e.stopPropagation()),ke((function(t){return qe.showDeclaration=!t,Y(e),(0,E.triggerCallbackIfExists)(qe,"changeShowDeclaration",Ve,qe.showDeclaration,e,qe),qe.showDeclaration}))}}})}),(0,T.jsx)(w.default,{in:qe.showDeclaration,children:qe.declaration}),(0,T.jsx)(w.default,{in:!qe.showDeclaration&&qe.invalid&&qe.showValidationState&&(qe.showInitialValidationState||qe.visited),children:(0,T.jsx)(y.Theme,{use:"error",wrap:!0,children:(0,T.jsx)("span",{id:k+"-error-message",children:function(e){if("string"==typeof e){var t=c().stringEvaluate("`"+e+"`",i()({formatValue:function(e){return(0,E.formatValue)(qe,e,Re)}},qe));return t.error?(console.warn("Given message template could not be proceed:",t.error),""):t.result}return""}(qe.invalidMaximum&&qe.maximumText||qe.invalidMaximumLength&&qe.maximumLengthText||qe.invalidMinimum&&qe.minimumText||qe.invalidMinimumLength&&qe.minimumLengthText||qe.invalidInvertedPattern&&qe.invertedPatternText||qe.invalidPattern&&qe.patternText||qe.invalidRequired&&qe.requiredText)})})})]}),persistent:Boolean(qe.declaration)},invalid:qe.invalid&&qe.showValidationState&&(qe.showInitialValidationState||qe.visited),label:qe.description||qe.name,outlined:qe.outlined};qe.icon&&(Xe.icon=H(O(qe.icon)));var Ye=i()({},j,{content_style:qe.disabled?"body {opacity: .38}":"",placeholder:qe.placeholder,readonly:Boolean(qe.disabled),setup:function(e){le.current=e,le.current.on("init",(function(){le.current&&(N=!0,qe.editorIsActive&&be.selectionIsUnstable&&(le.current.focus(!1),G(le.current),ye(i()({},be,{selectionIsUnstable:!1}))))}))}});qe.editor.endsWith("raw)")?(Ye.toolbar1="cut copy paste | undo redo removeformat | code | fullscreen",delete Ye.toolbar2):qe.editor.endsWith("simple)")?(Ye.toolbar1="cut copy paste | undo redo removeformat | bold italic underline strikethrough subscript superscript | fullscreen",delete Ye.toolbar2):qe.editor.endsWith("normal)")&&(Ye.toolbar1="cut copy paste | undo redo removeformat | styleselect formatselect | searchreplace visualblocks fullscreen code");var Qe=!qe.selection&&"string"===qe.type&&qe.editorIsActive&&(qe.editor.startsWith("code")||qe.editor.startsWith("richtext(")),Ze=[],Je=[],et=[],tt=Boolean(qe.suggestionCreator||je.length&&(qe.searchSelection||qe.suggestSelection));if(tt&&je.length){qe.suggestSelection=!qe.searchSelection;for(var nt,rt=0,it=A(je);!(nt=it()).done;){var ot=nt.value;if(c().isFunction(qe.children)){var at=qe.children({index:rt,normalizedSelection:Ne,properties:qe,query:qe.representation,suggestion:ot,value:Fe[rt]});at&&(Ze.push((0,T.jsx)(g.MenuItem,{className:M["generic-input__suggestions__suggestion"],children:at},rt)),Je.push(ot),et.push(Fe[rt]))}else if(!qe.representation||qe.suggestionCreator||W(ot,qe.representation)){var st;Ze.push((0,T.jsx)(g.MenuItem,{className:M["generic-input__suggestions__suggestion"],children:c().stringMark(ot,(null==(st=qe.representation)?void 0:st.split(" "))||"",{marker:function(e){return(0,T.jsx)("span",{className:M["generic-input__suggestions__suggestion__mark"],children:e})},normalizer:function(e){return(""+e).toLowerCase()},skipTagDelimitedParts:null}).map((function(e,t){return(0,T.jsx)("span",{children:e},t)}))},rt)),Je.push(ot),et.push(Fe[rt])}rt+=1}}var lt=(Boolean(Ne)||Boolean(qe.labels))&&!tt,ut={};return"number"===qe.type?(ut.step=qe.step,qe.maximum!==1/0&&(ut.max=qe.maximum),qe.minimum!==-1/0&&(ut.min=qe.minimum)):"string"===qe.type?(qe.maximumLength>=0&&qe.maximumLength!==1/0&&(ut.maxLength=qe.maximumLength),qe.minimumLength>0&&(ut.minLength=qe.minimumLength),"plain"!==qe.editor&&(ut.rows=qe.rows)):["date","datetime-local","time","time-local"].includes(qe.type)&&(ut.step=qe.step,qe.maximum!==1/0&&(ut.max=(0,E.formatValue)(qe,qe.maximum,Re)),qe.minimum!==-1/0&&(ut.min=(0,E.formatValue)(qe,qe.minimum,Re))),(0,T.jsx)(x.default,{strict:V.strict,themeConfiguration:qe.themeConfiguration,tooltip:qe.tooltip,children:(0,T.jsxs)("div",i()({className:[M["generic-input"]].concat(Qe?M["generic-input--custom"]:[],null!==(S=qe.className)&&void 0!==S?S:[]).join(" "),onBlur:function(e){return He((function(t){var n;if(e.relatedTarget&&null!=(n=fe.current)&&n.contains(e.relatedTarget))return t;Se(!1);var r=!1,i=!1;if(t.modelState.focused&&(qe.focused=!1,r=!0,i=!0),t.modelState.visited||(qe.visited=!0,r=!0,i=!0),!tt||qe.suggestSelection){var o=(0,E.getValueFromSelection)(qe.representation,Ne);null===o?(qe.value=(0,E.parseValue)(qe,qe.value,Re),qe.representation=(0,E.formatValue)(qe,qe.value,Re)):qe.value=o}return c().equals(t.value,qe.value)&&t.representation===qe.representation||(r=!0),r&&Y(e),c().equals(t.value,qe.value)||(0,E.triggerCallbackIfExists)(qe,"changeValue",Ve,qe.value,e,qe),i&&(0,E.triggerCallbackIfExists)(qe,"changeState",Ve,qe.model.state,e,qe),(0,E.triggerCallbackIfExists)(qe,"blur",Ve,e,qe),r?{modelState:qe.model.state,representation:qe.representation,value:qe.value}:t}))},onKeyDown:function(e){var t;!qe.disabled&&tt&&c().keyCode.DOWN===e.keyCode&&e.target===ae.current&&(null==(t=ce.current)||t.focusItemAtIndex(0)),(lt||"string"===qe.type&&"plain"!==qe.editor)&&B(e),(0,E.triggerCallbackIfExists)(qe,"keyDown",Ve,e,qe)},ref:fe,style:qe.styles},tt?{role:"search"}:{},{children:[D((0,T.jsx)(v.Select,i()({},Ge,Xe,{enhanced:!qe.disabled,foundationRef:oe,inputRef:ae,onChange:Q,onKeyDown:function(e){qe.disabled||e.keyCode===c().keyCode.TAB||e.preventDefault()},options:Ne,rootProps:i()({name:qe.name,onClick:Z},qe.rootProps),value:""+qe.value},qe.inputProperties)),lt),D([(0,T.jsx)(h.FormField,{className:["mdc-text-field"].concat(qe.disabled?"mdc-text-field--disabled":[],"mdc-text-field--textarea").join(" "),onKeyDown:B,children:(0,T.jsxs)("label",{children:[(0,T.jsx)("span",{className:[M["generic-input__editor__label"]].concat("mdc-floating-label","mdc-floating-label--float-above").join(" "),children:(0,T.jsx)(y.Theme,{use:qe.invalid&&qe.showValidationState&&(qe.showInitialValidationState||qe.visited)?"error":void 0,children:(qe.description||qe.name)+(qe.required?"*":"")})}),qe.editor.startsWith("code")?(0,T.jsx)(d.Suspense,{fallback:(0,T.jsx)(f.CircularProgress,{size:"large"}),children:(0,T.jsx)($,i()({},Ge,{className:"mdc-text-field__input",mode:qe.editor.startsWith("code(")&&qe.editor.endsWith(")")?qe.editor.substring("code(".length,qe.editor.length-1):"javascript",name:qe.name,onChange:Q,onCursorChange:te,onSelectionChange:te,ref:function(e){var t,n,r;re.current=e,null!=(t=re.current)&&null!=(n=t.editor)&&null!=(r=n.container)&&r.querySelector("textarea")&&(ie.current=re.current.editor.container.querySelector("textarea")),re.current&&qe.editorIsActive&&be.selectionIsUnstable&&(re.current.editor.textInput.focus(),K(re.current),ye(i()({},be,{selectionIsUnstable:!1})))},setOptions:{maxLines:qe.rows,minLines:qe.rows,readOnly:qe.disabled,tabSize:4,useWorker:!1},theme:"github",value:qe.representation},qe.inputProperties))}):(0,T.jsx)(_.Editor,i()({},Ge,{disabled:qe.disabled,init:Ye,onClick:Z,onEditorChange:Q,onKeyUp:ee,ref:function(e){ue.current=e},textareaName:qe.name,tinymceScriptSrc:j.base_url+"tinymce.min.js",value:qe.representation},qe.inputProperties))]})},"advanced-editor-form-field"),(0,T.jsx)("div",{className:"mdc-text-field-helper-line",children:(0,T.jsx)("p",{className:"mdc-text-field-helper-text mdc-text-field-helper-text--persistent",id:k+"-error-message",children:Xe.helpText.children})},"advanced-editor-helper-line")],Qe,N||qe.editor.startsWith("code")),D((0,T.jsxs)("div",{children:[tt?(0,T.jsx)(g.MenuSurfaceAnchor,{onKeyDown:B,children:Pe instanceof AbortController?(0,T.jsx)(g.MenuSurface,{anchorCorner:"bottomLeft",className:M["generic-input__suggestions"]+" "+M["generic-input__suggestions--pending"],open:!0,children:(0,T.jsx)(f.CircularProgress,{size:"large"})}):(0,T.jsx)(g.Menu,{anchorCorner:"bottomLeft",apiRef:function(e){ce.current=e},className:M["generic-input__suggestions"],focusOnOpen:!1,foundationRef:de,onFocus:J,onSelect:function(e){Q(et[e.detail.index],void 0,e.detail.index),Se(!1)},open:Boolean(Je.length)&&Ee&&!(1===Je.length&&Je[0]===qe.representation),children:Ze})}):"",(0,T.jsx)(b.TextField,i()({},Ge,Xe,ut,{align:qe.align,characterCount:"number"==typeof qe.maximumLength&&!isNaN(qe.maximumLength)&&qe.maximumLength>=0,foundationRef:oe,inputRef:ae,onChange:Q,ripple:qe.ripple,rootProps:i()({name:qe.name,onClick:Z,onKeyUp:ee,tabIndex:qe.disabled?"0":"-1"},qe.rootProps),textarea:"string"===qe.type&&"plain"!==qe.editor,trailingIcon:H(O(qe.trailingIcon)),type:P(qe),value:qe.representation},qe.inputProperties))]}),!(Qe||lt),N||qe.editor.startsWith("code"))]}))})};H.displayName="GenericInput";var V=(0,d.memo)((0,d.forwardRef)(H));V.wrapped=H,V.webComponentAdapterWrapped="react",V.defaultModelState=S.Bg,V.defaultProperties=i()({},S.Ko,{cursor:void 0,model:i()({},S.Ko.model,{state:void 0,value:void 0}),representation:void 0,value:void 0}),V.locales=c().locales,V.propTypes=S.rV,V.renderProperties=S.au,V.strict=!1,V.transformer={boolean:{parse:function(e){var t;return"boolean"==typeof e?e:null===(t=new Map([["false",!1],["true",!0],[0,!1],[1,!0]]).get(e))||void 0===t||t},type:"text"},currency:{format:{final:{options:{currency:"USD"},transform:function(e,t,n){var r,o,a,s,l,u=null!==(r=null==(o=n.currency.format)||null==(a=o.final.options)?void 0:a.currency)&&void 0!==r?r:"USD";return e===1/0?"Infinity "+u:e===-1/0?"- Infinity "+u:isNaN(e)?"unknown":new Intl.NumberFormat(V.locales,i()({style:"currency"},null!==(s=null==(l=n.currency.format)?void 0:l.final.options)&&void 0!==s?s:{})).format(e)}}},parse:function(e,t,n){return n.float.parse?n.float.parse(e,t,n):NaN},type:"text"},date:{format:{final:{transform:function(e,t,n){if("number"!=typeof e)if(n.date.parse)e=n.date.parse(e,t,n);else{var r=e instanceof Date?e.getTime()/1e3:Date.parse(e);if(isNaN(r)){var i=parseFloat(e);e=isNaN(i)?0:i}else e=r/1e3}if(e===1/0)return"Infinitely far in the future";if(e===-1/0)return"Infinitely early in the past";if(!isFinite(e))return"";var o=new Date(Math.round(1e3*e)).toISOString();return o.substring(0,o.indexOf("T"))}}},parse:function(e){if("number"==typeof e)return e;if(e instanceof Date)return e.getTime()/1e3;var t=Date.parse(e);if(isNaN(t)){var n=parseFloat(e);return isNaN(n)?0:n}return t/1e3}},"datetime-local":{format:{final:{transform:function(e,t,n){if("number"!=typeof e)if(n["datetime-local"].parse)e=n["datetime-local"].parse(e,t,n);else{var r=e instanceof Date?e.getTime()/1e3:Date.parse(e);if(isNaN(r)){var i=parseFloat(e);e=isNaN(i)?0:i}else e=r/1e3}if(e===1/0)return"Infinitely far in the future";if(e===-1/0)return"Infinitely early in the past";if(!isFinite(e))return"";var o=new Date(Math.round(1e3*e)).toISOString();return o.substring(0,o.length-1)}}},parse:function(e,t,n){if(n.date.parse)return n.date.parse(e,t,n);if(e instanceof Date)return e.getTime()/1e3;var r=Date.parse(e);if(isNaN(r)){var i=parseFloat(e);return isNaN(i)?0:i}return r/1e3}},time:{format:{final:{transform:function(e,t,n){if("number"!=typeof e)if(n.time.parse)e=n.time.parse(e,t,n);else{var r=e instanceof Date?e.getTime()/1e3:Date.parse(e);if(isNaN(r)){var i=parseFloat(e);e=isNaN(i)?0:i}else e=r/1e3}if(e===1/0)return"Infinitely far in the future";if(e===-1/0)return"Infinitely early in the past";if(!isFinite(e))return"";var o=new Date(Math.round(1e3*e)).toISOString();return o=o.substring(o.indexOf("T")+1,o.length-1),t.step&&t.step>=60&&t.step%60==0?o.substring(0,o.lastIndexOf(":")):o}}},parse:function(e){if("number"==typeof e)return e;if(e instanceof Date)return e.getTime()/1e3;var t=Date.parse(e);if(isNaN(t)){var n=parseFloat(e.replace(/^([0-9]{2}):([0-9]{2})(:([0-9]{2}(\.[0-9]+)?))?$/,(function(e,t,n,r,i,o){return String(parseInt(t)*Math.pow(60,2)+60*parseInt(n)+(r?parseFloat(i):0))})));return isNaN(n)?0:n}return t/1e3}},"time-local":{format:{final:{transform:function(e,t,n){if("number"!=typeof e)if(n["time-local"].parse)e=n["time-local"].parse(e,t,n);else{var r=e instanceof Date?e.getTime()/1e3:Date.parse(e);if(isNaN(r)){var i=parseFloat(e);e=isNaN(i)?0:i}else e=r/1e3}if(e===1/0)return"Infinitely far in the future";if(e===-1/0)return"Infinitely early in the past";if(!isFinite(e))return"";var o=new Date(Math.round(1e3*e)),a=o.getHours(),s=o.getMinutes(),l=(a<10?"0":"")+String(a)+":"+(s<10?"0":"")+String(s);if(!(t.step&&t.step>=60&&t.step%60==0)){var u=o.getSeconds();return l+":"+(u<10?"0":"")+String(u)}return l}}},parse:function(e){if("number"==typeof e)return e;if(e instanceof Date)return e.getTime()/1e3;var t=Date.parse(e);if(isNaN(t)){var n=parseFloat(e.replace(/^([0-9]{2}):([0-9]{2})(:([0-9]{2}(\.[0-9]+)?))?$/,(function(e,t,n,r,i,o){var a=new Date(0);return a.setHours(parseInt(t)),a.setMinutes(parseInt(n)),r&&a.setSeconds(parseInt(i)),String(a.getTime()/1e3)})));return isNaN(n)?0:n}return t/1e3},type:"time"},float:{format:{final:{transform:function(e,t,n){return n.float.format?e===1/0?"Infinity":e===-1/0?"- Infinity":new Intl.NumberFormat(V.locales,n.float.format.final.options||{}).format(e):""+e}}},parse:function(e,t){return"string"==typeof e&&(e=parseFloat("de-DE"===V.locales[0]?e.replace(/\./g,"").replace(/,/g,"."):e)),"number"==typeof e&&("number"==typeof t.minimum&&t.minimum>=0&&e<0||"number"==typeof t.maximum&&t.maximum<=0&&e>0)&&(e*=-1),e},type:"text"},integer:{format:{final:{transform:function(e,t,n){var r,o;return new Intl.NumberFormat(V.locales,i()({maximumFractionDigits:0},null!==(r=null==(o=n.integer.format)?void 0:o.final.options)&&void 0!==r?r:{})).format(e)}}},parse:function(e,t){return"string"==typeof e&&(e=parseInt("de-DE"===V.locales[0]?e.replace(/[,.]/g,""):e)),"number"==typeof e&&("number"==typeof t.minimum&&t.minimum>=0&&e<0||"number"==typeof t.maximum&&t.maximum<=0&&e>0)&&(e*=-1),e},type:"text"},number:{parse:function(e){return"number"==typeof e?e:parseInt(e)}}};var U=V},function(t){t.exports=e},function(e){e.exports=r},function(e){e.exports=o},function(e){e.exports=l},function(e){e.exports=u},function(e){e.exports=S},function(e){e.exports=a},function(e){e.exports=s},function(e){e.exports=c},function(e){e.exports=d},function(e){e.exports=v},function(e){e.exports=g},function(e){e.exports=w},function(e,t,n){n.d(t,{Bg:function(){return y},Ko:function(){return w},O:function(){return C},Uz:function(){return A},W2:function(){return T},au:function(){return b},q:function(){return E},rV:function(){return v}});var r=n(1),i=n.n(r),o=n(3),a=n.n(o),s=n(5),l={declaration:s.string,default:s.any,description:s.string,name:s.string,selection:(0,s.oneOfType)([(0,s.arrayOf)((0,s.oneOfType)([(0,s.arrayOf)((0,s.oneOfType)([s.number,s.string])),s.number,(0,s.objectOf)((0,s.oneOfType)([s.number,s.string])),s.string])),(0,s.objectOf)((0,s.oneOfType)([s.number,s.string]))]),type:s.string,value:s.any},u={dirty:(0,s.oneOfType)([s.boolean,s.symbol]),pristine:(0,s.oneOfType)([s.boolean,s.symbol]),touched:(0,s.oneOfType)([s.boolean,s.symbol]),untouched:(0,s.oneOfType)([s.boolean,s.symbol]),focused:(0,s.oneOfType)([s.boolean,s.symbol]),visited:(0,s.oneOfType)([s.boolean,s.symbol]),invalid:(0,s.oneOfType)([s.boolean,s.symbol]),invalidRequired:(0,s.oneOfType)([s.boolean,s.symbol]),valid:(0,s.oneOfType)([s.boolean,s.symbol])},c=i()({},l,{emptyEqualsNull:s.boolean,trim:s.boolean,invertedRegularExpressionPattern:(0,s.oneOfType)([(0,s.arrayOf)((0,s.oneOfType)([s.object,s.string])),s.object,s.string]),regularExpressionPattern:(0,s.oneOfType)([(0,s.arrayOf)((0,s.oneOfType)([s.object,s.string])),s.object,s.string]),maximum:(0,s.oneOfType)([s.number,s.string]),minimum:(0,s.oneOfType)([s.number,s.string]),maximumLength:s.number,minimumLength:s.number,mutable:s.boolean,writable:s.boolean,state:(0,s.shape)(u)}),d=i()({},l,u,{className:s.string,disabled:s.boolean,enforceUncontrolled:s.boolean,initialValue:s.any,inputProperties:s.object,model:(0,s.shape)(c),onChange:s.func,onChangeValue:s.func,onChangeShowDeclaration:s.func,onChangeState:s.func,onClick:s.func,onFocus:s.func,onTouch:s.func,required:s.boolean,requiredText:s.string,ripple:(0,s.oneOfType)([s.boolean,s.object]),rootProps:s.object,showDeclaration:(0,s.oneOfType)([s.boolean,s.symbol]),showInitialValidationState:s.boolean,showValidationState:s.boolean,styles:s.object,themeConfiguration:s.object,tooltip:s.any}),f={dirty:!1,focused:!1,invalid:!1,invalidRequired:!1,pristine:!0,touched:!1,untouched:!0,valid:!0,visited:!1},h={declaration:"",default:null,description:"",emptyEqualsNull:!0,invertedRegularExpressionPattern:null,maximum:1/0,maximumLength:-1,minimum:-1/0,minimumLength:0,mutable:!0,name:"NO_NAME_DEFINED",nullable:!0,regularExpressionPattern:null,state:i()({},f),trim:!0,type:"string",writable:!0},p={enforceUncontrolled:!1,model:i()({},h),showDeclaration:void 0,showInitialValidationState:!1,showValidationState:!0,requiredText:"Please fill this field."},m=(i()({},d,u,{checked:s.boolean,id:s.string}),i()({},h,{default:!1,type:"boolean",value:!1})),g=(i()({},p,{default:!1,model:i()({},m),requiredText:"Please check this field."}),i()({},u,{invalidMaximum:(0,s.oneOfType)([s.boolean,s.symbol]),invalidMinimum:(0,s.oneOfType)([s.boolean,s.symbol]),invalidMaximumLength:(0,s.oneOfType)([s.boolean,s.symbol]),invalidMinimumLength:(0,s.oneOfType)([s.boolean,s.symbol]),invalidInvertedPattern:(0,s.oneOfType)([s.boolean,s.symbol]),invalidPattern:(0,s.oneOfType)([s.boolean,s.symbol])})),v=i()({},d,g,{align:s.string,children:s.func,cursor:(0,s.oneOfType)([(0,s.shape)({end:s.number.isRequired,start:s.number.isRequired}),s.symbol]),editor:s.string,editorIsActive:(0,s.oneOfType)([s.boolean,s.symbol]),hidden:(0,s.oneOfType)([s.boolean,s.symbol]),icon:(0,s.oneOfType)([s.string,s.object]),inputProps:s.object,invertedPattern:(0,s.oneOfType)([(0,s.arrayOf)((0,s.oneOfType)([s.object,s.string])),s.object,s.string]),invertedPatternText:s.string,labels:(0,s.oneOfType)([(0,s.arrayOf)((0,s.arrayOf)(s.string)),(0,s.arrayOf)(s.string),s.object]),maximum:(0,s.oneOfType)([s.number,s.string]),maximumLengthText:s.string,maximumText:s.string,minimum:(0,s.oneOfType)([s.number,s.string]),minimumLengthText:s.string,minimumText:s.string,onBlur:s.func,onChangeEditorIsActive:s.func,onKeyDown:s.func,onKeyUp:s.func,onSelect:s.func,onSelectionChange:s.func,outlined:s.boolean,pattern:(0,s.oneOfType)([(0,s.arrayOf)((0,s.oneOfType)([s.object,s.string])),s.object,s.string]),patternText:s.string,placeholder:s.string,representation:(0,s.oneOfType)([s.string,s.symbol]),rows:s.number,searchSelection:s.boolean,selectableEditor:s.boolean,step:s.number,suggestionCreator:s.func,suggestSelection:s.boolean,trailingIcon:s.any,transformer:s.object}),b=["children","suggestionCreator"],y=i()({},f,{invalidMaximum:!1,invalidMinimum:!1,invalidMaximumLength:!1,invalidMinimumLength:!1,invalidInvertedPattern:!1,invalidPattern:!1}),_=i()({},h,{state:y}),w=i()({},p,{cursor:{end:0,start:0},editor:"plain",invertedPatternText:'Your string should not match the regular expression${[].concat(invertedPattern).length > 1 ? "s" : ""}: "${[].concat(invertedPattern).join("\\", \\"")}".',maximumLengthText:"Please type less or equal than ${maximumLength} symbols.",maximumText:"Please type less or equal than ${formatValue(maximum)}.",minimumLengthText:"Please type at least or equal ${minimumLength} symbols.",minimumText:"Please type at least or equal ${formatValue(minimum)}.",model:i()({},_),patternText:'Your string have to match the regular expression${[].concat(pattern).length > 1 ? "s" : ""}: "${[].concat(pattern).join("\\", \\"")}".',rows:4,searchSelection:!1,selectableEditor:!1,step:1,suggestSelection:!1}),x=i()({},u,{invalidContentTypePattern:(0,s.oneOfType)([s.boolean,s.symbol]),invalidMaximumSize:(0,s.oneOfType)([s.boolean,s.symbol]),invalidMinimumSize:(0,s.oneOfType)([s.boolean,s.symbol]),invalidName:(0,s.oneOfType)([s.boolean,s.symbol])}),C=i()({},d,x,{children:s.func,contentTypePatternText:(0,s.oneOfType)([(0,s.arrayOf)((0,s.oneOfType)([s.object,s.string])),s.object,s.string]),invertedContentTypePatternText:(0,s.oneOfType)([(0,s.arrayOf)((0,s.oneOfType)([s.object,s.string])),s.object,s.string]),deleteButton:(0,s.oneOfType)([s.object,s.string]),downloadButton:(0,s.oneOfType)([s.object,s.string]),editButton:(0,s.oneOfType)([s.object,s.string]),newButton:(0,s.oneOfType)([s.object,s.string]),encoding:s.string,generateFileNameInputProperties:s.func,maximumSizeText:s.string,minimumSizeText:s.string,onBlur:s.func,outlined:s.boolean}),E=i()({},f,{invalidContentTypePattern:!1,invalidMaximumSize:!1,invalidMinimumSize:!1,invalidName:!1}),S=i()({},h,{contentTypeRegularExpressionPattern:/^.+\/.+$/,invertedContentTypeRegularExpressionPattern:null,fileName:i()({},_,{maximumLength:1024,name:"Name",regularExpressionPattern:/^[^/]+$/}),maximumSize:1/0,minimumSize:0,state:E}),T=i()({},w,{emptyEqualsNull:!1,invertedPatternText:'Your file\'s name should not match the regular expression${[].concat(invertedPattern).length > 1 ? "s" : ""}: ""${[].concat(invertedPattern).join("\\", \\"")}".',patternText:'Your file\'s name has to match the regular expression${[].concat(pattern).length > 1 ? "s" : ""}: ""${[].concat(pattern).join("\\", \\"")}".',required:!0});delete T.model;var A=i()({},p,{contentTypePatternText:'Your file\'s mime-type has to match the regular expression${[].concat(contentTypePattern).length > 1 ? "s" : ""}: ""${[].concat(contentTypePattern).join("\\", \\"")}".',invertedContentTypePatternText:'Your file\'s mime-type should not match the regular expression${[].concat(invertedContentTypePattern).length > 1 ? "s" : ""}: ""${[].concat(invertedContentTypePattern).join("\\", \\"")}".',deleteButton:"delete",downloadButton:"download",editButton:"edit",newButton:"new",encoding:"utf-8",generateFileNameInputProperties:a().identity,maximumSizeText:"Please provide a file with less or equal size than ${maximumSize} byte.",minimumSizeText:"Please provide a file with more or equal size than ${maximumSize} byte.",media:{sixteenByNine:!0},model:i()({},S),sourceToBlobOptions:{endings:"transparent",type:"text/plain"}}),k=(i()({},d,g,{children:s.func,createItem:s.func,createPrototype:s.func,maximumNumber:s.number,minimumNumber:s.number}),i()({},h,{state:i()({},h.state,{invalidMaximumNumber:!1,invalidMinimumNumber:!1}),maximumNumber:1/0,minimumNumber:0,type:"string[]"}));i()({},p,{addIcon:{icon:"add"},removeIcon:{icon:"clear"},createItem:function(e){return e.item},createPrototype:function(e){return e.item},model:i()({},k)}),i()({},v,{value:(0,s.shape)({end:(0,s.oneOfType)([s.number,(0,s.shape)(v)]),start:(0,s.oneOfType)([s.number,(0,s.shape)(v)])})}),i()({},f),i()({},_,{description:"End",name:"end"}),i()({},_,{description:"Start",name:"start"})},,,function(e){e.exports=b},function(e){e.exports=i}],T={};function A(e){var t=T[e];if(void 0!==t)return t.exports;var n=T[e]={exports:{}};return E[e](n,n.exports,A),n.exports}A.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return A.d(t,{a:t}),t},C=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},A.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var n=Object.create(null);A.r(n);var r={};_=_||[null,C({}),C([]),C(C)];for(var i=2&t&&e;"object"==typeof i&&!~_.indexOf(i);i=C(i))Object.getOwnPropertyNames(i).forEach((function(t){r[t]=function(){return e[t]}}));return r.default=function(){return e},A.d(n,r),n},A.d=function(e,t){for(var n in t)A.o(t,n)&&!A.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},A.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},A.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var k={};return function(){A.r(k),A.d(k,{FileInput:function(){return L},FileInputInner:function(){return I},default:function(){return R},determineRepresentationType:function(){return S},determineValidationState:function(){return T},preserveStaticFileBaseNameInputGenerator:function(){return E},readBinaryDataIntoText:function(){return O}});var e=A(16),t=A.n(e),n=A(1),r=A.n(n),i=A(17),o=A.n(i),a=A(32),s=A(3),l=A.n(s),u=A(2),c=A(33),d=A(18),f=A(4),h=A(9),p=A(15),m=A(7),g=A(8),v=A(29),b=A(0),y={"file-input":"file-input","mdc-typography--headline6":"mdc-typography--headline6","mdc-typography--subtitle2":"mdc-typography--subtitle2","file-input__download":"file-input__download","file-input__iframe-wrapper":"file-input__iframe-wrapper","file-input__text-representation":"file-input__text-representation","file-input__iframe-wrapper--padding":"file-input__iframe-wrapper--padding","file-input__native":"file-input__native"},_=/^image\/(?:p?jpe?g|png|svg(?:\+xml)?|vnd\.microsoft\.icon|gif|tiff|webp|vnd\.wap\.wbmp|x-(?:icon|jng|ms-bmp))$/i,w=/^(?:application\/xml)|(?:text\/(?:plain|x-ndpb[wy]html|(?:x-)?csv|x?html?|xml))$/i,x=/^text\/plain$/i,C=/^video\/(?:(?:x-)?(?:x-)?webm|3gpp|mp2t|mp4|mpeg|quicktime|(?:x-)?flv|(?:x-)?m4v|(?:x-)mng|x-ms-as|x-ms-wmv|x-msvideo)|(?:application\/(?:x-)?shockwave-flash)$/i,E=function(e,t){var n=t.name,i=t.value.name;return r()({},e,{disabled:!0,value:n+(null!=i&&i.includes(".")?i.substring(i.lastIndexOf(".")):"")})},S=function(e){return e=e.replace(/; *charset=.+$/,""),w.test(e)?x.test(e)?"renderableText":"text":_.test(e)?"image":C.test(e)?"video":"binary"},T=function(e,t,n){return(0,g.determineValidationState)(e,n,{invalidMaximumSize:function(){var t,n;return"number"==typeof e.model.maximumSize&&e.model.maximumSize<((null==(t=e.model.value)||null==(n=t.blob)?void 0:n.size)||0)},invalidMinimumSize:function(){var t,n;return"number"==typeof e.model.minimumSize&&e.model.minimumSize>((null==(t=e.model.value)||null==(n=t.blob)?void 0:n.size)||0)},invalidName:function(){return t},invalidContentTypePattern:function(){var t,n;return"string"==typeof(null==(t=e.model.value)||null==(n=t.blob)?void 0:n.type)&&[].concat(e.model.contentTypeRegularExpressionPattern).some((function(t){return"string"==typeof t&&!new RegExp(t).test(e.model.value.blob.type)||null!==t&&"object"==typeof t&&!t.test(e.model.value.blob.type)}))},invalidInvertedContentTypePattern:function(){var t,n;return"string"==typeof(null==(t=e.model.value)||null==(n=t.blob)?void 0:n.type)&&[].concat(e.model.invertedContentTypeRegularExpressionPattern).some((function(t){return"string"==typeof t&&new RegExp(t).test(e.model.value.blob.type)||null!==t&&"object"==typeof t&&t.test(e.model.value.blob.type)}))}})},O=function(e,t){return void 0===t&&(t="utf-8"),new Promise((function(n,r){var i=new FileReader;i.onload=function(e){var r=e.target.result;r.length&&t.endsWith("-sig")&&65279===r.charCodeAt(0)&&(r=r.slice(1)),r=r.replace(/\r\n/g,"\n"),n(r)},i.onabort=function(){return r(new Error("abort"))},i.onerror=function(){return r(new Error)},i.readAsText(e,t.endsWith("-sig")?t.substring(0,t.length-"-sig".length):t)}))},I=function(e,n){var i,s,_,x,C,E,A,k,I,R=function(e){var t=(0,g.mapPropertiesIntoModel)(e,L.defaultProperties.model);return T(t,!1,t.model.state),(0,g.getConsolidatedProperties)(t)},M=function(e){var t;null!=(t=F.current)&&t.properties&&(G.model.fileName=F.current.properties.model);var n=R(G);delete G.model.value,delete G.value,G.styles=l().copy(G.styles),l().extend(!0,G,n),(0,g.triggerCallbackIfExists)(G,"change",K,G,e)},P=function e(t,n,i,o){if(void 0===o&&(o=!1),G.model.mutable&&G.model.writable){if(t&&j.current&&t.target===j.current){var a;if(null==(a=(n=t).target.files)||!a.length)return;var s,u=n.target.files[0];G.value={blob:u,name:u.name},G.value.name=(null==(s=G.generateFileNameInputProperties(r()({disabled:G.disabled,value:u.name},v.W2,{model:G.model.fileName,onChangeValue:e,default:G.value.name}),G))?void 0:s.value)||u.name}q((function(e){var i,a;if(null===t?G.value=t:"string"==typeof t?G.value=r()({},e.value,{name:t}):"string"!=typeof t.source&&"string"!=typeof t.url||(G.value=o?r()({},e.value,t):t),l().equals(e.value,G.value))return e;var s=!1,u=r()({},e,{value:G.value});return e.modelState.pristine&&(G.dirty=!0,G.pristine=!1,s=!0),M(n),T(G,(null==(i=F.current)||null==(a=i.properties)?void 0:a.invalid)||!1,e.modelState)&&(s=!0),(0,g.triggerCallbackIfExists)(G,"changeValue",K,G.value,n,G),s&&(u.modelState=G.model.state,(0,g.triggerCallbackIfExists)(G,"changeState",K,G.model.state,n,G)),o&&(u.attachBlobProperty=!0),u}))}},$=function(e){return q((function(t){var n=!1;t.modelState.focused||(G.focused=!0,n=!0),t.modelState.untouched&&(G.touched=!0,G.untouched=!1,n=!0);var i=t;return n&&(M(e),i=r()({},t,{modelState:G.model.state}),(0,g.triggerCallbackIfExists)(G,"changeState",K,G.model.state,e,G)),(0,g.triggerCallbackIfExists)(G,"touch",K,e,G),i}))},N=(0,u.useRef)(null),D=(0,u.useRef)(null),j=(0,u.useRef)(null),F=(0,u.useRef)(null),B=(0,u.useRef)(null),W=(0,g.translateKnownSymbols)(e),H=(0,g.determineInitialValue)(W,L.defaultProperties.model.default),V=l().extend(!0,l().copy(L.defaultProperties),W),U=(0,u.useState)({attachBlobProperty:!1,modelState:r()({},L.defaultModelState),value:H}),z=U[0],q=U[1],K=!V.enforceUncontrolled&&(void 0!==(null==(i=W.model)?void 0:i.value)||void 0!==W.value)&&Boolean(W.onChange||W.onChangeValue);(0,g.deriveMissingPropertiesFromState)(V,z);var G=R(V);z.attachBlobProperty&&z.value&&(G.value=l().extend(!0,z.value,G.value));var X={attachBlobProperty:!1,modelState:G.model.state,value:G.value};!z.attachBlobProperty&&(K||l().equals(G.value,z.value))&&l().equals(G.model.state,z.modelState)||q(X),K&&(q=(0,g.wrapStateSetter)(q,X)),(0,u.useImperativeHandle)(n,(function(){return{properties:G,references:{deleteButtonReference:N,downloadLinkReference:D,fileInputReference:j,nameInputReference:F,uploadButtonReference:B},state:r()({modelState:G.model.state},K?{}:{value:G.value})}})),(0,u.useEffect)((function(){t()(o().mark((function e(){var t,n,r,i,s,l;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=null,!(null!=(t=G.value)&&t.blob&&G.value.blob instanceof Blob)||G.value.source){e.next=18;break}if(!w.test(G.value.blob.type)){e.next=8;break}return e.next=5,O(G.value.blob);case 5:e.t0=e.sent,e.next=16;break;case 8:if("undefined"!=typeof Blob){e.next=12;break}e.t1=G.value.toString("base64"),e.next=15;break;case 12:return e.next=14,(0,a.blobToBase64String)(G.value.blob);case 14:e.t1=e.sent;case 15:e.t0=e.t1;case 16:e.t2=e.t0,r={source:e.t2};case 18:null!=(n=G.value)&&n.source&&(G.value.blob||(null!=(i=G.value.url)&&i.startsWith("data:")?r={blob:(0,a.dataURLToBlob)(G.value.source)}:G.sourceToBlobOptions&&(r={blob:new Blob([G.value.source],G.sourceToBlobOptions)})),!G.value.url&&null!=(s=G.value.blob)&&s.type&&(l=w.test(G.value.blob.type)?btoa(G.value.source):G.value.source,r={url:"data:"+G.value.blob.type+";base64,"+l})),r&&P(r,void 0,0,!0);case 20:case"end":return e.stop()}}),e)})))().catch(console.error)}));var Y=null!=(s=G.value)&&null!=(_=s.blob)&&_.type?S(G.value.blob.type):"binary",Q=G.invalid&&G.showValidationState&&(G.showInitialValidationState||G.visited);return(0,b.jsx)(m.WrapConfigurations,{strict:L.strict,themeConfiguration:G.themeConfiguration,tooltip:G.tooltip,children:(0,b.jsxs)(c.Card,{className:[y["file-input"]].concat(null!==(x=G.className)&&void 0!==x?x:[]).join(" "),onBlur:function(e){return q((function(t){var n=!1;return t.modelState.focused&&(G.focused=!1,n=!0),t.modelState.visited||(G.visited=!0,n=!0),n&&(M(e),(0,g.triggerCallbackIfExists)(G,"changeState",K,G.model.state,e,G)),(0,g.triggerCallbackIfExists)(G,"blur",K,e,G),n?r()({},t,{modelState:G.model.state}):t}))},onClick:function(e){(0,g.triggerCallbackIfExists)(G,"click",K,e,G),$(e)},onFocus:function(e){(0,g.triggerCallbackIfExists)(G,"focus",K,e,G),$(e)},style:G.styles,children:[(0,b.jsxs)(c.CardPrimaryAction,{children:[null!=(C=G.value)&&C.url?"image"===Y?(0,b.jsx)(c.CardMedia,r()({},G.media,{style:{backgroundImage:"url("+G.value.url+")"}})):"video"===Y?(0,b.jsx)("video",{autoPlay:!0,loop:!0,muted:!0,children:(0,b.jsx)("source",{src:G.value.url,type:G.value.blob.type})}):"renderableText"===Y?(0,b.jsx)("div",{className:[y["file-input__iframe-wrapper"]].concat(["text/html","text/plain"].includes(G.value.blob.type)?y["file-input__iframe-wrapper--padding"]:[]).join(" "),children:(0,b.jsx)("iframe",{frameBorder:"no",scrolling:"no",src:G.value.url})}):null!=(E=G.value)&&E.source&&"text"===Y?(0,b.jsx)("pre",{className:y["file-input__text-representation"],children:G.value.source}):"":null!=(A=G.value)&&A.blob&&G.value.blob instanceof Blob?(0,b.jsx)(d.CircularProgress,{size:"large"}):"",(0,b.jsxs)("div",{children:[(0,b.jsx)(h.Typography,{tag:"h2",use:"headline6",children:Q?(0,b.jsx)(f.Theme,{use:"error",children:G.description?G.description:G.name}):G.description?G.description:G.name}),G.declaration?(0,b.jsx)(h.Typography,{style:{marginTop:"-1rem"},tag:"h3",theme:"textSecondaryOnBackground",use:"subtitle2",children:Q?(0,b.jsx)(f.Theme,{use:"error",children:G.declaration}):G.declaration}):"",G.value?(0,b.jsx)(p.default,r()({ref:F},G.generateFileNameInputProperties(r()({disabled:G.disabled,value:null==(k=G.value)?void 0:k.name},v.W2,{model:G.model.fileName,onChangeValue:P,default:G.value.name}),G))):"",G.children?G.children({declaration:G.declaration,invalid:Q,properties:G,value:G.value}):""]}),(0,b.jsx)("input",{disabled:G.disabled,className:y["file-input__native"],id:G.id||G.name,name:G.name,onChange:P,ref:j,type:"file"})]}),!G.disabled||G.value?(0,b.jsx)(c.CardActions,{children:(0,b.jsxs)(c.CardActionButtons,{children:[G.disabled?"":(0,b.jsx)(c.CardActionButton,{onClick:function(){var e;return null==(e=j.current)?void 0:e.click()},ref:B,ripple:G.ripple,children:G.value?G.editButton:G.newButton}),G.value?(0,b.jsxs)(b.Fragment,{children:[G.disabled?"":(0,b.jsx)(c.CardActionButton,{onClick:function(){return P(null)},ref:N,ripple:G.ripple,children:G.deleteButton}),G.value.url?(0,b.jsx)(c.CardActionButton,{onClick:function(){var e;return null==(e=D.current)?void 0:e.click()},ripple:G.ripple,children:(0,b.jsx)("a",r()({className:y["file-input__download"],download:G.value.name,href:G.value.url,ref:D,target:"_blank"},null!=(I=G.value.blob)&&I.type?{type:G.value.blob.type}:{},{children:G.downloadButton}))}):""]}):""]})}):""]})})};I.displayName="FileInput";var L=(0,u.memo)((0,u.forwardRef)(I));L.wrapped=I,L.webComponentAdapterWrapped="react",L.defaultModelState=v.q,L.defaultProperties=r()({},v.Uz,{model:r()({},v.Uz.model,{state:void 0,value:void 0}),value:void 0}),L.propTypes=v.O,L.strict=!1;var R=L}(),k}())},function(module,__unused_webpack_exports,__nested_webpack_require_117791__){var __dirname="/",e,r,n,t,i;if(module=__nested_webpack_require_117791__.nmd(module),null!==module&&"undefined"!==eval("typeof require")&&null!==eval("require")&&"main"in eval("require")&&"undefined"!==eval("typeof require.main")&&null!==eval("require.main")){var ORIGINAL_MAIN_MODULE=module;module!==eval("require.main")&&"paths"in module&&"paths"in eval("require.main")&&null!=__dirname&&(module.paths=eval("require.main.paths").concat(module.paths.filter((function(path){return eval("require.main.paths").includes(path)}))))}if(null==window)var window=void 0===__nested_webpack_require_117791__.g||null===__nested_webpack_require_117791__.g?{}:__nested_webpack_require_117791__.g;module.exports=(e=__nested_webpack_require_117791__(2),r=__nested_webpack_require_117791__(0),n=__nested_webpack_require_117791__(3),t=__nested_webpack_require_117791__(22),i=__nested_webpack_require_117791__(7),function(){var o={1:function(t){t.exports=e},5:function(e){e.exports=r},2:function(e){e.exports=n},21:function(e){e.exports=t},0:function(e){e.exports=i}},a={};function s(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={exports:{}};return o[e](n,n.exports,s),n.exports}s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,{a:t}),t},s.d=function(e,t){for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return function(){s.r(l),s.d(l,{GenericAnimate:function(){return f},GenericAnimateInner:function(){return d},default:function(){return h}});var e=s(1),t=s.n(e),n=s(5),r=s(2),i=s(21),o=s(0),a="generic-animate",u="generic-animate__list-wrapper",c="generic-animate__wrapper",d=function(e,n){return(0,o.jsx)(i.CSSTransition,t()({appear:!0,classNames:a,in:!0,timeout:200,unmountOnExit:!0},e,{children:"string"==typeof e.children?(0,o.jsx)("span",{className:c,ref:n,children:e.children}):Array.isArray(e.children)?(0,o.jsx)("div",{className:u,ref:n,children:e.children}):e.children}))},f=(0,r.memo)((0,r.forwardRef)(d));f.wrapped=d,f.webComponentAdapterWrapped="react",f.propTypes={appear:n.boolean,classNames:n.string,in:n.boolean,timeout:n.number};var h=f}(),l}())},function(module,__unused_webpack_exports,__nested_webpack_require_120740__){var __dirname="/",e,t,n,r,i,o,a,l,u,s,c,d,m,p,f,v,g,y,b,h,x,w;if(module=__nested_webpack_require_120740__.nmd(module),null!==module&&"undefined"!==eval("typeof require")&&null!==eval("require")&&"main"in eval("require")&&"undefined"!==eval("typeof require.main")&&null!==eval("require.main")){var ORIGINAL_MAIN_MODULE=module;module!==eval("require.main")&&"paths"in module&&"paths"in eval("require.main")&&null!=__dirname&&(module.paths=eval("require.main.paths").concat(module.paths.filter((function(path){return eval("require.main.paths").includes(path)}))))}if(null==window)var window=void 0===__nested_webpack_require_120740__.g||null===__nested_webpack_require_120740__.g?{}:__nested_webpack_require_120740__.g;module.exports=(e=__nested_webpack_require_120740__(5),t=__nested_webpack_require_120740__(2),n=__nested_webpack_require_120740__(8),r=__nested_webpack_require_120740__(6),i=__nested_webpack_require_120740__(21),o=__nested_webpack_require_120740__(23),a=__nested_webpack_require_120740__(24),l=__nested_webpack_require_120740__(25),u=__nested_webpack_require_120740__(26),s=__nested_webpack_require_120740__(27),c=__nested_webpack_require_120740__(28),d=__nested_webpack_require_120740__(9),m=__nested_webpack_require_120740__(10),p=__nested_webpack_require_120740__(11),f=__nested_webpack_require_120740__(29),v=__nested_webpack_require_120740__(30),g=__nested_webpack_require_120740__(4),y=__nested_webpack_require_120740__(0),b=__nested_webpack_require_120740__(3),h=__nested_webpack_require_120740__(31),x=__nested_webpack_require_120740__(22),w=__nested_webpack_require_120740__(7),function(){var _,C,E=[function(e){e.exports=w},function(e){e.exports=t},function(e){e.exports=b},function(e){e.exports=g},function(e){e.exports=d},function(e){e.exports=y},function(e,t,n){n.d(t,{WrapTooltip:function(){return l}});var r=n(1),i=n.n(r),o=n(9),a=n(11),s=n(0),l=function(e){var t=e.children,n=e.options;return"string"==typeof n?(0,s.jsx)(a.Tooltip,{content:(0,s.jsx)(o.Typography,{use:"caption",children:n}),children:(0,s.jsx)("div",{className:"generic-tooltip",children:t})}):null!==n&&"object"==typeof n?("string"==typeof n.content&&(n=i()({},n,{content:(0,s.jsx)(o.Typography,{use:"caption",children:n.content})})),(0,s.jsx)(a.Tooltip,i()({},n,{children:(0,s.jsx)("div",{className:"generic-tooltip",children:t})}))):(0,s.jsx)(s.Fragment,{children:t})};t.default=l},function(e,t,n){n(1),n(13),n(2),n(4);var r=n(12),i=n(10),o=n(6),a=n(0);t.default=function(e){var t=e.children,n=e.strict,s=e.themeConfiguration,l=e.tooltip,u=e.wrap;return(0,a.jsx)(r.x,{strict:Boolean(n),children:(0,a.jsx)(o.WrapTooltip,{options:l,children:(0,a.jsx)(i.WrapThemeProvider,{configuration:s,wrap:u,children:t})})})}},function(e,t,n){n.d(t,{deriveMissingPropertiesFromState:function(){return d},determineInitialRepresentation:function(){return m},determineInitialValue:function(){return g},determineValidationState:function(){return v},formatValue:function(){return E},getConsolidatedProperties:function(){return y},getLabelAndValues:function(){return _},getValueFromSelection:function(){return w},mapPropertiesIntoModel:function(){return b},normalizeSelection:function(){return x},parseValue:function(){return C},translateKnownSymbols:function(){return p},triggerCallbackIfExists:function(){return h},useMemorizedValue:function(){return S},wrapStateSetter:function(){return f}});var r=n(1),i=n.n(r),o=n(3),a=n.n(o),s=n(5),l=n(2);function u(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return c(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)?c(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(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}var d=function(e,t){void 0!==e.model.value&&void 0===e.value&&(e.value=e.model.value),void 0===e.value&&(e.value=t.value),e.model.state?e.model.state=i()({},e.model.state):e.model.state={};for(var n=0,r=Object.entries(t.modelState);n<r.length;n++){var o=r[n],a=o[0],s=o[1];void 0===e.model.state[a]&&(e.model.state[a]=s)}return e},f=function(e,t){return function(n){var r="function"==typeof n?n(t):n;a().equals(null==r?void 0:r.modelState,null==t?void 0:t.modelState)||e(r)}},h=function(e,t,n){void 0===n&&(n=!0);for(var r=arguments.length,i=new Array(r>3?r-3:0),o=3;o<r;o++)i[o-3]=arguments[o];t="on"+a().stringCapitalize(t),e[t]&&(n?e[t].apply(e,i):a().timeout((function(){return e[t].apply(e,i)})))},p=function(e){for(var t={},n=0,r=Object.entries(e);n<r.length;n++){var i=r[n],o=i[0],l=i[1];l===s.UndefinedSymbol?t[o]=void 0:l===s.NullSymbol?t[o]=null:t[o]=a().copy(e[o])}return t};function m(e,t,n,r,o){if("string"==typeof e.representation)return e.representation;if(null!==n){var s,l=function(e,t){if(t)for(var n,r=u(t);!(n=r()).done;){var i=n.value;if(a().equals(null==i?void 0:i.value,e))return i.label||""+e}return null}(n,o);return"string"==typeof l?l:E(i()({},e,{type:e.type||(null==(s=e.model)?void 0:s.type)||t.model.type}),n,r)}return""}var g=function(e,t,n){var r,i;return void 0!==n?n:void 0!==e.value?e.value:void 0!==(null==(r=e.model)?void 0:r.value)?e.model.value:void 0!==e.initialValue?a().copy(e.initialValue):void 0!==e.default?a().copy(e.default):void 0!==(null==(i=e.model)?void 0:i.default)?a().copy(e.model.default):void 0!==t?t:null},v=function(e,t,n){void 0===n&&(n={});var r=!1;n=i()({invalidRequired:function(){return!1===e.model.nullable&&"boolean"!==e.model.type&&!e.model.value&&0!==e.model.value||"boolean"===e.model.type&&!("boolean"==typeof e.model.value||["false","true"].includes(e.model.value))}},n),e.model.state=e.model.state||{};for(var o=0,a=Object.entries(n);o<a.length;o++){var s=a[o],l=s[0],u=s[1],c=t[l];e.model.state[l]=u(),r=r||c!==t[l]}return r&&(e.model.state.invalid=Object.keys(n).some((function(t){return e.model.state[t]})),e.model.state.valid=!e.model.state.invalid),r},b=function(e,t){var n=a().extend(!0,{model:a().copy(t)},e);n.disabled&&(n.model.mutable=!1,delete n.disabled),n.invertedPattern&&(n.model.invertedRegularExpressionPattern=n.invertedPattern,delete n.invertedPattern),n.pattern&&(n.model.regularExpressionPattern=n.pattern,delete n.pattern),n.required&&(n.model.nullable=!1,delete n.required),"text"===n.type&&(n.type="string");for(var r,i=u(Object.keys(n.model).concat("value"));!(r=i()).done;){var o=r.value;Object.prototype.hasOwnProperty.call(n,o)&&void 0!==n[o]&&(n.model[o]=n[o])}for(var s in n.model.state)Object.prototype.hasOwnProperty.call(n,s)&&void 0!==n[s]&&(n.model.state[s]=n[s]);return void 0===n.model.value&&(n.model.value=a().copy(n.model.default)),n},y=function(e){var t=i()({},e,e.model||{},(e.model||{}).state||{});return t.disabled=!(t.mutable&&t.writable),delete t.mutable,delete t.writable,delete t.state,t.required=!t.nullable,delete t.nullable,t.invertedRegularExpressionPattern&&(t.invertedPattern=t.invertedRegularExpressionPattern),delete t.invertedRegularExpressionPattern,t.regularExpressionPattern&&(t.pattern=t.regularExpressionPattern),delete t.regularExpressionPattern,t};function _(e){if(Array.isArray(e)){for(var t,n=[],r=[],i=u(e);!(t=i()).done;){var o=t.value;"string"==typeof(null==o?void 0:o.label)&&(n.push(o.label),r.push(o.value))}return[n,r]}return[[],[]]}function w(e,t){if(Array.isArray(t))for(var n,r=u(t);!(n=r()).done;){var i=n.value;if("string"==typeof(null==i?void 0:i.label)&&i.label===e)return i.value;if(["number","string"].includes(typeof(null==i?void 0:i.value))&&""+i.value===e)return i.value}return null}function x(e,t){if(e||(e=t,t=void 0),!e)return e;var n=null!==t&&"object"==typeof t,r=function(e,r){if(n)if(Array.isArray(t)){if(t.length)if(Array.isArray(t[0]))for(var i,o=u(t);!(i=o()).done;){var a=i.value,s=a[0],l=a[1];if(s===e)return l}else if("number"==typeof r&&r<t.length)return t[r]}else{if(!0===e&&t.true)return t.true;if(!1===e&&t.false)return t.false;if("string"==typeof e&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}return null},o=!1;if(Array.isArray(e)){if(o=!0,e.length){var a=[],s=0;if(Array.isArray(e[0]))for(var l=0,c=e;l<c.length;l++){var d,f=c[l],h=f[0],p=f[1];a.push({label:null!==(d=r(h,s))&&void 0!==d?d:p,value:h}),s+=1}else if(null!==e[0]&&"object"==typeof e[0])for(var m,g=u(e);!(m=g()).done;){var v,b=m.value;a.push(i()({},b,{label:null!==(v=r(b.value,s))&&void 0!==v?v:b.label})),s+=1}else for(var y=0,_=e;y<_.length;y++){var w,x=_[y];a.push({label:null!==(w=r(x,s))&&void 0!==w?w:x,value:x}),s+=1}e=a}}else{for(var C=[],E=0,S=Object.keys(e);E<S.length;E++){var T,A=S[E];C.push({label:null!==(T=r(A))&&void 0!==T?T:e[A],value:A})}e=C}if(Array.isArray(t)&&t.length&&Array.isArray(t[0])){for(var k,O=new Map,I=0,L=u(t);!(k=L()).done;){var R=k.value[0];O.set(R,I),I+=1}e=e.sort((function(e,t){var n,r,i=e.value,o=t.value;return(null!==(n=O.get(i))&&void 0!==n?n:0)-(null!==(r=O.get(o))&&void 0!==r?r:0)}))}else o||(e=e.sort((function(e,t){var n=e.value,r=t.value;return n.localeCompare(r)})));return e}var C=function(e,t,n){var r;if(e.model.trim&&"string"==typeof t&&(t=t.trim().replace(/ +\n/g,"\\n")),e.model.emptyEqualsNull&&""===t)return null;var i=t;return![null,void 0].includes(t)&&null!=(r=n[e.model.type])&&r.parse&&(i=n[e.model.type].parse(t,e,n)),"number"==typeof i&&isNaN(i)?null:i};function E(e,t,n,r){var i;void 0===r&&(r=!0);var o=r?"final":"intermediate";if([null,void 0].includes(t)||"number"==typeof t&&isNaN(t))return"";var a=null==(i=n[e.type||e.model.type])?void 0:i.format;if(a){var s,l,u=(null==(s=a[o])?void 0:s.transform)||(null==(l=a.final)?void 0:l.transform);if(u)return u(t,e,n)}return String(t)}var S=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return(0,l.useMemo)((function(){return e}),n)}},function(e){e.exports=p},function(e,t,n){n.d(t,{WrapThemeProvider:function(){return o}});var r=n(4),i=n(0),o=function(e){var t=e.children,n=e.configuration,o=e.wrap;return n?(0,i.jsx)(r.ThemeProvider,{options:n,wrap:!1!==o,children:t}):t}},function(e){e.exports=m},function(e,t,n){n.d(t,{x:function(){return o}});var r=n(2),i=n(0),o=function(e){var t=e.children;return e.strict?(0,i.jsx)(r.StrictMode,{children:t}):(0,i.jsx)(i.Fragment,{children:t})}},function(e){e.exports=n},function(e,t,n){n.d(t,{default:function(){return p}});var r=n(1),i=n.n(r),o=n(5),a=n(2),s=n(21),l=n(0),u="generic-animate",c="generic-animate__list-wrapper",d="generic-animate__wrapper",f=function(e,t){return(0,l.jsx)(s.CSSTransition,i()({appear:!0,classNames:u,in:!0,timeout:200,unmountOnExit:!0},e,{children:"string"==typeof e.children?(0,l.jsx)("span",{className:d,ref:t,children:e.children}):Array.isArray(e.children)?(0,l.jsx)("div",{className:c,ref:t,children:e.children}):e.children}))},h=(0,a.memo)((0,a.forwardRef)(f));h.wrapped=f,h.webComponentAdapterWrapped="react",h.propTypes={appear:o.boolean,classNames:o.string,in:o.boolean,timeout:o.number};var p=h},,function(t){t.exports=e},function(e){e.exports=r},function(e){e.exports=i},function(e){e.exports=a},function(e){e.exports=l},function(e){e.exports=x},function(e){e.exports=o},function(e){e.exports=u},function(e){e.exports=s},function(e){e.exports=c},function(e){e.exports=f},function(e){e.exports=v},function(e){e.exports=h},function(e,t,n){n.d(t,{Bg:function(){return y},Ko:function(){return w},au:function(){return b},rV:function(){return v}});var r=n(1),i=n.n(r),o=n(3),a=n.n(o),s=n(5),l={declaration:s.string,default:s.any,description:s.string,name:s.string,selection:(0,s.oneOfType)([(0,s.arrayOf)((0,s.oneOfType)([(0,s.arrayOf)((0,s.oneOfType)([s.number,s.string])),s.number,(0,s.objectOf)((0,s.oneOfType)([s.number,s.string])),s.string])),(0,s.objectOf)((0,s.oneOfType)([s.number,s.string]))]),type:s.string,value:s.any},u={dirty:(0,s.oneOfType)([s.boolean,s.symbol]),pristine:(0,s.oneOfType)([s.boolean,s.symbol]),touched:(0,s.oneOfType)([s.boolean,s.symbol]),untouched:(0,s.oneOfType)([s.boolean,s.symbol]),focused:(0,s.oneOfType)([s.boolean,s.symbol]),visited:(0,s.oneOfType)([s.boolean,s.symbol]),invalid:(0,s.oneOfType)([s.boolean,s.symbol]),invalidRequired:(0,s.oneOfType)([s.boolean,s.symbol]),valid:(0,s.oneOfType)([s.boolean,s.symbol])},c=i()({},l,{emptyEqualsNull:s.boolean,trim:s.boolean,invertedRegularExpressionPattern:(0,s.oneOfType)([(0,s.arrayOf)((0,s.oneOfType)([s.object,s.string])),s.object,s.string]),regularExpressionPattern:(0,s.oneOfType)([(0,s.arrayOf)((0,s.oneOfType)([s.object,s.string])),s.object,s.string]),maximum:(0,s.oneOfType)([s.number,s.string]),minimum:(0,s.oneOfType)([s.number,s.string]),maximumLength:s.number,minimumLength:s.number,mutable:s.boolean,writable:s.boolean,state:(0,s.shape)(u)}),d=i()({},l,u,{className:s.string,disabled:s.boolean,enforceUncontrolled:s.boolean,initialValue:s.any,inputProperties:s.object,model:(0,s.shape)(c),onChange:s.func,onChangeValue:s.func,onChangeShowDeclaration:s.func,onChangeState:s.func,onClick:s.func,onFocus:s.func,onTouch:s.func,required:s.boolean,requiredText:s.string,ripple:(0,s.oneOfType)([s.boolean,s.object]),rootProps:s.object,showDeclaration:(0,s.oneOfType)([s.boolean,s.symbol]),showInitialValidationState:s.boolean,showValidationState:s.boolean,styles:s.object,themeConfiguration:s.object,tooltip:s.any}),f={dirty:!1,focused:!1,invalid:!1,invalidRequired:!1,pristine:!0,touched:!1,untouched:!0,valid:!0,visited:!1},h={declaration:"",default:null,description:"",emptyEqualsNull:!0,invertedRegularExpressionPattern:null,maximum:1/0,maximumLength:-1,minimum:-1/0,minimumLength:0,mutable:!0,name:"NO_NAME_DEFINED",nullable:!0,regularExpressionPattern:null,state:i()({},f),trim:!0,type:"string",writable:!0},p={enforceUncontrolled:!1,model:i()({},h),showDeclaration:void 0,showInitialValidationState:!1,showValidationState:!0,requiredText:"Please fill this field."},m=(i()({},d,u,{checked:s.boolean,id:s.string}),i()({},h,{default:!1,type:"boolean",value:!1})),g=(i()({},p,{default:!1,model:i()({},m),requiredText:"Please check this field."}),i()({},u,{invalidMaximum:(0,s.oneOfType)([s.boolean,s.symbol]),invalidMinimum:(0,s.oneOfType)([s.boolean,s.symbol]),invalidMaximumLength:(0,s.oneOfType)([s.boolean,s.symbol]),invalidMinimumLength:(0,s.oneOfType)([s.boolean,s.symbol]),invalidInvertedPattern:(0,s.oneOfType)([s.boolean,s.symbol]),invalidPattern:(0,s.oneOfType)([s.boolean,s.symbol])})),v=i()({},d,g,{align:s.string,children:s.func,cursor:(0,s.oneOfType)([(0,s.shape)({end:s.number.isRequired,start:s.number.isRequired}),s.symbol]),editor:s.string,editorIsActive:(0,s.oneOfType)([s.boolean,s.symbol]),hidden:(0,s.oneOfType)([s.boolean,s.symbol]),icon:(0,s.oneOfType)([s.string,s.object]),inputProps:s.object,invertedPattern:(0,s.oneOfType)([(0,s.arrayOf)((0,s.oneOfType)([s.object,s.string])),s.object,s.string]),invertedPatternText:s.string,labels:(0,s.oneOfType)([(0,s.arrayOf)((0,s.arrayOf)(s.string)),(0,s.arrayOf)(s.string),s.object]),maximum:(0,s.oneOfType)([s.number,s.string]),maximumLengthText:s.string,maximumText:s.string,minimum:(0,s.oneOfType)([s.number,s.string]),minimumLengthText:s.string,minimumText:s.string,onBlur:s.func,onChangeEditorIsActive:s.func,onKeyDown:s.func,onKeyUp:s.func,onSelect:s.func,onSelectionChange:s.func,outlined:s.boolean,pattern:(0,s.oneOfType)([(0,s.arrayOf)((0,s.oneOfType)([s.object,s.string])),s.object,s.string]),patternText:s.string,placeholder:s.string,representation:(0,s.oneOfType)([s.string,s.symbol]),rows:s.number,searchSelection:s.boolean,selectableEditor:s.boolean,step:s.number,suggestionCreator:s.func,suggestSelection:s.boolean,trailingIcon:s.any,transformer:s.object}),b=["children","suggestionCreator"],y=i()({},f,{invalidMaximum:!1,invalidMinimum:!1,invalidMaximumLength:!1,invalidMinimumLength:!1,invalidInvertedPattern:!1,invalidPattern:!1}),_=i()({},h,{state:y}),w=i()({},p,{cursor:{end:0,start:0},editor:"plain",invertedPatternText:'Your string should not match the regular expression${[].concat(invertedPattern).length > 1 ? "s" : ""}: "${[].concat(invertedPattern).join("\\", \\"")}".',maximumLengthText:"Please type less or equal than ${maximumLength} symbols.",maximumText:"Please type less or equal than ${formatValue(maximum)}.",minimumLengthText:"Please type at least or equal ${minimumLength} symbols.",minimumText:"Please type at least or equal ${formatValue(minimum)}.",model:i()({},_),patternText:'Your string have to match the regular expression${[].concat(pattern).length > 1 ? "s" : ""}: "${[].concat(pattern).join("\\", \\"")}".',rows:4,searchSelection:!1,selectableEditor:!1,step:1,suggestSelection:!1}),x=i()({},u,{invalidContentTypePattern:(0,s.oneOfType)([s.boolean,s.symbol]),invalidMaximumSize:(0,s.oneOfType)([s.boolean,s.symbol]),invalidMinimumSize:(0,s.oneOfType)([s.boolean,s.symbol]),invalidName:(0,s.oneOfType)([s.boolean,s.symbol])}),C=(i()({},d,x,{children:s.func,contentTypePatternText:(0,s.oneOfType)([(0,s.arrayOf)((0,s.oneOfType)([s.object,s.string])),s.object,s.string]),invertedContentTypePatternText:(0,s.oneOfType)([(0,s.arrayOf)((0,s.oneOfType)([s.object,s.string])),s.object,s.string]),deleteButton:(0,s.oneOfType)([s.object,s.string]),downloadButton:(0,s.oneOfType)([s.object,s.string]),editButton:(0,s.oneOfType)([s.object,s.string]),newButton:(0,s.oneOfType)([s.object,s.string]),encoding:s.string,generateFileNameInputProperties:s.func,maximumSizeText:s.string,minimumSizeText:s.string,onBlur:s.func,outlined:s.boolean}),i()({},f,{invalidContentTypePattern:!1,invalidMaximumSize:!1,invalidMinimumSize:!1,invalidName:!1})),E=i()({},h,{contentTypeRegularExpressionPattern:/^.+\/.+$/,invertedContentTypeRegularExpressionPattern:null,fileName:i()({},_,{maximumLength:1024,name:"Name",regularExpressionPattern:/^[^/]+$/}),maximumSize:1/0,minimumSize:0,state:C});delete i()({},w,{emptyEqualsNull:!1,invertedPatternText:'Your file\'s name should not match the regular expression${[].concat(invertedPattern).length > 1 ? "s" : ""}: ""${[].concat(invertedPattern).join("\\", \\"")}".',patternText:'Your file\'s name has to match the regular expression${[].concat(pattern).length > 1 ? "s" : ""}: ""${[].concat(pattern).join("\\", \\"")}".',required:!0}).model,i()({},p,{contentTypePatternText:'Your file\'s mime-type has to match the regular expression${[].concat(contentTypePattern).length > 1 ? "s" : ""}: ""${[].concat(contentTypePattern).join("\\", \\"")}".',invertedContentTypePatternText:'Your file\'s mime-type should not match the regular expression${[].concat(invertedContentTypePattern).length > 1 ? "s" : ""}: ""${[].concat(invertedContentTypePattern).join("\\", \\"")}".',deleteButton:"delete",downloadButton:"download",editButton:"edit",newButton:"new",encoding:"utf-8",generateFileNameInputProperties:a().identity,maximumSizeText:"Please provide a file with less or equal size than ${maximumSize} byte.",minimumSizeText:"Please provide a file with more or equal size than ${maximumSize} byte.",media:{sixteenByNine:!0},model:i()({},E),sourceToBlobOptions:{endings:"transparent",type:"text/plain"}}),i()({},d,g,{children:s.func,createItem:s.func,createPrototype:s.func,maximumNumber:s.number,minimumNumber:s.number});var S=i()({},h,{state:i()({},h.state,{invalidMaximumNumber:!1,invalidMinimumNumber:!1}),maximumNumber:1/0,minimumNumber:0,type:"string[]"});i()({},p,{addIcon:{icon:"add"},removeIcon:{icon:"clear"},createItem:function(e){return e.item},createPrototype:function(e){return e.item},model:i()({},S)}),i()({},v,{value:(0,s.shape)({end:(0,s.oneOfType)([s.number,(0,s.shape)(v)]),start:(0,s.oneOfType)([s.number,(0,s.shape)(v)])})}),i()({},f),i()({},_,{description:"End",name:"end"}),i()({},_,{description:"Start",name:"start"})}],S={};function T(e){var t=S[e];if(void 0!==t)return t.exports;var n=S[e]={exports:{}};return E[e](n,n.exports,T),n.exports}T.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return T.d(t,{a:t}),t},C=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},T.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var n=Object.create(null);T.r(n);var r={};_=_||[null,C({}),C([]),C(C)];for(var i=2&t&&e;"object"==typeof i&&!~_.indexOf(i);i=C(i))Object.getOwnPropertyNames(i).forEach((function(t){r[t]=function(){return e[t]}}));return r.default=function(){return e},T.d(n,r),n},T.d=function(e,t){for(var n in t)T.o(t,n)&&!T.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},T.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},T.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var A={};return function(){T.r(A),T.d(A,{ACEEditorOptions:function(){return M},GenericInput:function(){return H},GenericInputInner:function(){return W},TINYMCE_DEFAULT_OPTIONS:function(){return D},default:function(){return V},determineValidationState:function(){return j},preventEnterKeyPropagation:function(){return F},suggestionMatches:function(){return B}});var e=T(1),t=T.n(e),n=T(16),r=T.n(n),i=T(17),o=T.n(i),a=T(3),s=T.n(a),l=T(2),u=T(18),c=T(22),d=T(19),f=T(20),h=T(23),p=T(24),m=T(25),g=T(4),v=T(26),b=T(14),y=T(7),_=T(6),w=T(8),x=T(29),C=T(0);function E(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return S(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)?S(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function S(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}var k=!(void 0===typeof window),O=k?(0,a.optionalRequire)("react-useanimations"):null,I=k?(0,a.optionalRequire)("react-useanimations/lib/lock"):null,L=k?(0,a.optionalRequire)("react-useanimations/lib/plusToX"):null,R={"generic-input":"generic-input",ace_editor:"ace_editor","tox-tinymce":"tox-tinymce","generic-input--custom":"generic-input--custom","generic-input__editor__label":"generic-input__editor__label","generic-input__suggestions":"generic-input__suggestions","generic-input__suggestions--pending":"generic-input__suggestions--pending","generic-input__suggestions__suggestion":"generic-input__suggestions__suggestion","generic-input__suggestions__suggestion__mark":"generic-input__suggestions__suggestion__mark"},M={basePath:"/node_modules/ace-builds/src-noconflict/",useWorker:!1},P=(0,l.lazy)(r()(o().mark((function e(){var t,n,r,i,a,s,l;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.resolve().then(T.t.bind(T,27,23));case 2:for(t=e.sent,n=t.config,r=0,i=Object.entries(M);r<i.length;r++)a=i[r],s=a[0],l=a[1],n.set(s,l);return e.next=7,Promise.resolve().then(T.t.bind(T,28,23));case 7:return e.abrupt("return",e.sent);case 8:case"end":return e.stop()}}),e)})))),$=!1,N="/node_modules/tinymce/",D={base_url:N,skin_url:N+"skins/ui/oxide",theme_url:N+"themes/silver/theme.min.js",allow_conditional_comments:!1,allow_script_urls:!1,body_class:"mdc-text-field__input",branding:!1,cache_suffix:"?version=1666081628.983",contextmenu:[],document_base_url:"/",element_format:"xhtml",entity_encoding:"raw",fix_list_elements:!0,hidden_input:!1,icon:"material",invalid_elements:"em",invalid_styles:"color font-size line-height",keep_styles:!1,menubar:!1,plugins:["fullscreen","link","code","nonbreaking","searchreplace","visualblocks"],relative_urls:!1,remove_script_host:!1,remove_trailing_brs:!0,schema:"html5",toolbar1:"\n cut copy paste |\n undo redo removeformat |\n styleselect formatselect fontselect fontsizeselect |\n searchreplace visualblocks fullscreen code\n ".trim(),toolbar2:"\n alignleft aligncenter alignright alignjustify outdent indent |\n link nonbreaking bullist numlist bold italic underline strikethrough\n ".trim(),trim:!0};function j(e,t){return(0,w.determineValidationState)(e,t,{invalidMaximum:function(){return"number"==typeof e.model.maximum&&"number"==typeof e.model.value&&!isNaN(e.model.value)&&e.model.maximum>=0&&e.model.maximum<e.model.value},invalidMinimum:function(){return"number"==typeof e.model.minimum&&"number"==typeof e.model.value&&!isNaN(e.model.value)&&e.model.value<e.model.minimum},invalidMaximumLength:function(){return"number"==typeof e.model.maximumLength&&"string"==typeof e.model.value&&e.model.maximumLength>=0&&e.model.maximumLength<e.model.value.length},invalidMinimumLength:function(){return"number"==typeof e.model.minimumLength&&"string"==typeof e.model.value&&e.model.value.length<e.model.minimumLength},invalidInvertedPattern:function(){return"string"==typeof e.model.value&&[].concat(e.model.invertedRegularExpressionPattern).some((function(t){return"string"==typeof t&&new RegExp(t).test(e.model.value)||null!==t&&"object"==typeof t&&t.test(e.model.value)}))},invalidPattern:function(){return"string"==typeof e.model.value&&[].concat(e.model.regularExpressionPattern).some((function(t){return"string"==typeof t&&!new RegExp(t).test(e.model.value)||null!==t&&"object"==typeof t&&!t.test(e.model.value)}))}})}function F(e){s().keyCode.ENTER===e.keyCode&&e.stopPropagation()}function B(e,t){return!!t&&(e=e.toLowerCase(),t.replace(/ +/g," ").toLowerCase().split(" ").every((function(t){return e.includes(t)})))}var W=function(e,n){var r,i,o,a,x,S,T,A,k=(0,l.useId)();(0,l.useEffect)((function(){if(qe||ye.selectionIsUnstable)if(Ke.editorIsActive){var e,n,r;null!=(e=ie.current)&&null!=(n=e.editor)&&n.selection?(ie.current.editor.textInput.focus(),G(ie.current),ye.selectionIsUnstable&&_e(t()({},ye,{selectionIsUnstable:!1}))):null!=(r=ue.current)&&r.selection&&(ue.current.focus(!1),X(ue.current),ye.selectionIsUnstable&&_e(t()({},ye,{selectionIsUnstable:!1})))}else se.current&&(se.current.setSelectionRange(Ke.cursor.start,Ke.cursor.end),ye.selectionIsUnstable&&_e(t()({},ye,{selectionIsUnstable:!1})));if(se.current&&(Ke.valid?(se.current.removeAttribute("aria-errormessage"),se.current.removeAttribute("aria-invalid")):(se.current.setAttribute("aria-errormessage",k+"-error-message"),se.current.setAttribute("aria-invalid","true")),nt&&("search"!==se.current.getAttribute("type")&&se.current.setAttribute("role","searchbox"),se.current.setAttribute("aria-autocomplete",Ke.searchSelection?"inline":"list")),Ke.inputProps))for(var i=0,o=Object.entries(Ke.inputProps);i<o.length;i++){var a=o[i],l=a[0],u=a[1],c=s().stringCamelCaseToDelimited(l);"boolean"==typeof u?u?se.current.setAttribute(c,""):se.current.removeAttribute(c):se.current.setAttribute(c,String(u))}if(ut){var d=he.current.querySelector('[aria-haspopup="listbox"]');d.hasAttribute("aria-expanded")||d.setAttribute("aria-expanded","false")}}));var M=function(e){if("clear_preset"===e){var t=function(e){e.preventDefault(),e.stopPropagation(),Z((0,w.parseValue)(Ke,Ke.default,H.transformer))};return{icon:(0,C.jsx)(b.default,{in:!s().equals(Ke.value,Ke.default),children:O&&!O.isDummy&&L?(0,C.jsx)(O,{animation:L,reverse:!0}):(0,C.jsx)(f.IconButton,{icon:"clear"})}),onClick:t,onKeyDown:t,strategy:"component",tabIndex:-1,tooltip:"Clear input"}}if("password_preset"===e){var n=function(e){"number"==typeof e.keyCode&&e.keyCode!==s().keyCode.ENTER||(e.preventDefault(),e.stopPropagation(),Ce((function(t){return void 0===t&&(t=Ke.hidden),Ke.hidden=!t,Q(e),Ke.hidden})))};return(0,w.useMemorizedValue)({icon:O&&!O.isDummy&&I?(0,C.jsx)(O,{animation:I,reverse:!Ke.hidden}):(0,C.jsx)(f.IconButton,{icon:Ke.hidden?"lock_open":"lock"}),onClick:n,onKeyDown:n,strategy:"component",tabIndex:-1,tooltip:(Ke.hidden?"Show":"Hide")+" password"},Ke.hidden)}return e&&("string"==typeof e&&(e={icon:e}),Object.prototype.hasOwnProperty.call(e,"onClick")||(e.tabIndex=-1)),e},N=function(e){var t,n;return"string"===e.type?e.hidden?"password":nt?"search":"text":null!==(t=null==(n=Me[e.type])?void 0:n.type)&&void 0!==t?t:e.type},W=function(e){if("string"==typeof e){var n=s().stringEvaluate("`"+e+"`",t()({formatValue:function(e){return(0,w.formatValue)(Ke,e,Me)}},Ke));return n.error?(console.warn("Given message template could not be proceed:",n.error),""):n.result}return""},V=function(e,n,r){return void 0===n&&(n={}),void 0===r&&(r=!0),"boolean"==typeof n?r?(0,C.jsx)(b.default,{in:n,children:e}):n?e:"":r?(0,C.jsx)(b.default,t()({},n,{children:e})):n.in?e:""},U=function(e){var n;if("object"==typeof e&&null!=(n=e)&&n.tooltip){var r=e.tooltip;delete(e=t()({},e)).tooltip;var i=t()({},e);e.strategy="component",e.icon=(0,C.jsx)(_.default,{options:r,children:(0,C.jsx)(d.Icon,{icon:i})})}return e},z=function(e,t,n){if(!Ke.value)return 0;var r="generic-input-selection-indicator",i=" "+r+'="###"';t.setAttribute(r,"###");var o=e.innerHTML.replace(/(<\/p>)/gi,"$1\n");t.removeAttribute(r);var a=o.indexOf(i)+i.length;return n+o.indexOf(">",a)+1-i.length},q=function(e,t){return"string"==typeof Ke.value||Ke.value?t>0?e+Ke.value.split("\n").slice(0,t).map((function(e){return 1+e.length})).reduce((function(e,t){return e+t})):e:0},K=function(e){var t={column:0,row:0};if("string"==typeof Ke.value)for(var n,r=E(Ke.value.split("\n"));!(n=r()).done;){var i=n.value;if(!(i.length<e)){t.column=e;break}e-=1+i.length,t.row+=1}return t},G=function(e){var t=e.editor.selection.getRange(),n=K(Ke.cursor.end);t.setEnd(n.row,n.column);var r=K(Ke.cursor.start);t.setStart(r.row,r.column),e.editor.selection.setRange(t)},X=function(e){for(var t={end:"###generic-input-selection-indicator-end###",start:"###generic-input-selection-indicator-start###"},n={end:Ke.cursor.end+t.start.length,start:Ke.cursor.start},r=["start","end"],i=Ke.representation,o=0,a=r;o<a.length;o++){var l=a[o];i=i.substring(0,n[l])+t[l]+i.substring(n[l])}e.getBody().innerHTML=i;for(var u,c=document.createTreeWalker(e.getBody(),NodeFilter.SHOW_TEXT,null),d=e.dom.createRng(),f={};u=c.nextNode();)for(var h,p=E(r);!(h=p()).done;){var m=h.value;if(u.nodeValue){var g=u.nodeValue.indexOf(t[m]);g>-1&&(u.nodeValue=u.nodeValue.replace(t[m],""),f[m]=[u,g])}}for(var v=0,b=r;v<b.length;v++){var y=b[v];f[y]&&d["set"+s().stringCapitalize(y)].apply(d,f[y])}f.end&&f.start&&e.selection.setRng(d)},Y=function(e){var t=(0,w.getConsolidatedProperties)(function(e){var t=(0,w.mapPropertiesIntoModel)(e,H.defaultProperties.model);return t.model.value=(0,w.parseValue)(t,t.model.value,Me),j(t,t.model.state),t}(e));return t.selection||"boolean"!==t.type||(t.selection=[{label:"No",value:!1},{label:"Yes",value:!0}]),t.selectableEditor||"plain"===t.editor||(t.editorIsActive=!0),"string"!=typeof t.representation&&(t.representation=(0,w.formatValue)(t,t.value,Me,!t.focused),t.focused&&t.representation!==t.value&&["password","text"].includes(N(t))&&(qe=!0)),t},Q=function(e){s().extend(!0,Ke,Y(Ke)),(0,w.triggerCallbackIfExists)(Ke,"change",Ue,Ke,e)},Z=function(e,n,r){var i;if(void 0===r&&(r=-1),Te(!0),null!==e&&"object"==typeof e){var o=e.target||e.detail;if(o)if("number"==typeof o.index){var a=o.index-(Ke.placeholder?1:0);Ke.value=a>=0&&a<Be.length?Be[a]:null}else Ke.value=void 0===o.value?null:o.value;else Ke.value=e}else Ke.value=e;var l=function(){return Ve((function(e){if(!ze&&e.representation===Ke.representation&&!Ke.suggestionCreator&&-1===r)return e;var n=t()({},e,{representation:Ke.representation});if(!Ue&&s().equals(e.value,Ke.value))return n;n.value=Ke.value;var o=!1;return e.modelState.pristine&&(Ke.dirty=!0,Ke.pristine=!1,o=!0),Q(i),j(Ke,e.modelState)&&(o=!0),(0,w.triggerCallbackIfExists)(Ke,"changeValue",Ue,Ke.value,i,Ke),o&&(n.modelState=Ke.model.state,(0,w.triggerCallbackIfExists)(Ke,"changeState",Ue,Ke.model.state,i,Ke)),(ut||-1!==r)&&(0,w.triggerCallbackIfExists)(Ke,"select",Ue,i,Ke),n}))};if(Ke.representation=-1!==r?et[r]:"string"==typeof Ke.value?Ke.value:(0,w.formatValue)(Ke,Ke.value,Me),nt)if(Ke.suggestionCreator){var u=new AbortController,c=function(e){if(!u.signal.aborted){if(Ne((function(t){return t instanceof AbortController&&!t.signal.aborted&&t.abort(),e})),-1===r){var t=(0,w.getValueFromSelection)(Ke.representation,(0,w.normalizeSelection)(e));null!==t||Ke.searchSelection?Ke.value=t:Ke.value=(0,w.parseValue)(Ke,Ke.representation,Me)}l()}},d=Ke.suggestionCreator({abortController:u,properties:Ke,query:Ke.representation});null!=d&&d.then?(Ne((function(e){return e instanceof AbortController&&!e.signal.aborted&&e.abort(),u})),Ve((function(e){return t()({},e,{representation:Ke.representation})})),d.then(c,s().noop)):c(d)}else{if(-1===r){var f=(0,w.getValueFromSelection)(Ke.representation,De);null!==f||Ke.searchSelection?Ke.value=f:Ke.value=(0,w.parseValue)(Ke,Ke.representation,Me)}l()}else Ke.value=(0,w.parseValue)(Ke,Ke.value,Me),l()},J=function(e){ne(e),(0,w.triggerCallbackIfExists)(Ke,"click",Ue,e,Ke),re(e)},ee=function(e){(0,w.triggerCallbackIfExists)(Ke,"focus",Ue,e,Ke),re(e)},te=function(e){e.keyCode&&(ne(e),(0,w.triggerCallbackIfExists)(Ke,"keyUp",Ue,e,Ke))},ne=function(e){!function(e){var t,n,r,i,o,a,s,l=null==(t=ie.current)||null==(n=t.editor)||null==(r=n.selection)?void 0:r.getRange(),u=null==(i=ue.current)||null==(o=i.selection)?void 0:o.getRng(),c=null==(a=se.current)?void 0:a.selectionEnd,d=null==(s=se.current)?void 0:s.selectionStart;if(l)ve({end:q(l.end.column,"number"==typeof l.end.row?l.end.row:"string"==typeof Ke.value?Ke.value.split("\n").length-1:0),start:q(l.start.column,"number"==typeof l.start.row?l.start.row:"string"==typeof Ke.value?Ke.value.split("\n").length-1:0)});else if(u)ve({end:z(ue.current.getBody(),ue.current.selection.getEnd(),u.endOffset),start:z(ue.current.getBody(),ue.current.selection.getStart(),u.startOffset)});else if("number"==typeof c&&"number"==typeof d){var f,h=1===(null==e||null==(f=e.key)?void 0:f.length)?1:"Backspace"===(null==e?void 0:e.key)&&Ke.representation.length>d?-1:0;ve({end:c+h,start:d+h})}}(e),(0,w.triggerCallbackIfExists)(Ke,"selectionChange",Ue,e,Ke)},re=function(e){return Ve((function(n){var r=!1;n.modelState.focused||(Ke.focused=!0,r=!0),n.modelState.untouched&&(Ke.touched=!0,Ke.untouched=!1,r=!0);var i=n;return r&&(Q(e),i=t()({},n,{modelState:Ke.model.state}),(0,w.triggerCallbackIfExists)(Ke,"changeState",Ue,Ke.model.state,e,Ke)),(0,w.triggerCallbackIfExists)(Ke,"touch",Ue,e,Ke),i}))},ie=(0,l.useRef)(null),oe=(0,l.useRef)(null),ae=(0,l.useRef)(null),se=(0,l.useRef)(null),le=(0,l.useRef)(null),ue=(0,l.useRef)(null),ce=(0,l.useRef)(null),de=(0,l.useRef)(null),fe=(0,l.useRef)(null),he=(0,l.useRef)(null),pe=(0,w.translateKnownSymbols)(e),me=(0,l.useState)({end:0,start:0}),ge=me[0],ve=me[1],be=(0,l.useState)({editorIsActive:!1,selectionIsUnstable:!1}),ye=be[0],_e=be[1],we=(0,l.useState)(),xe=we[0],Ce=we[1],Ee=(0,l.useState)(!1),Se=Ee[0],Te=Ee[1],Ae=(0,l.useState)(!1),ke=Ae[0],Oe=Ae[1],Ie=(0,w.determineInitialValue)(pe,null==(r=H.defaultProperties.model)?void 0:r.default);Ie instanceof Date&&(Ie=Ie.getTime()/1e3);var Le=s().extend(!0,s().copy(H.defaultProperties),pe),Re=Le.type||(null==(i=Le.model)?void 0:i.type)||"string",Me=Le.transformer?t()({},H.transformer,((o={})[Re]=s().extend(!0,s().copy(H.transformer[Re])||{},Le.transformer),o)):H.transformer,Pe=(0,l.useState)(),$e=Pe[0],Ne=Pe[1];(Le.selection||null!=(a=Le.model)&&a.selection)&&($e=Le.selection||(null==(x=Le.model)?void 0:x.selection));var De=$e instanceof AbortController?[]:(0,w.normalizeSelection)($e,Le.labels),je=$e instanceof AbortController?[[],[]]:(0,w.getLabelAndValues)(De),Fe=je[0],Be=je[1],We=(0,l.useState)((function(){return{modelState:t()({},H.defaultModelState),representation:(0,w.determineInitialRepresentation)(Le,H.defaultProperties,Ie,Me,De),value:Ie}})),He=We[0],Ve=We[1],Ue=!Le.enforceUncontrolled&&(void 0!==(null==(S=pe.model)?void 0:S.value)||void 0!==pe.value)&&Boolean(pe.onChange||pe.onChangeValue),ze=Ue&&void 0!==pe.representation,qe=!1;null!==Le.cursor&&"object"==typeof Le.cursor||(Le.cursor={}),void 0===Le.cursor.end&&(Le.cursor.end=ge.end),void 0===Le.cursor.start&&(Le.cursor.start=ge.start),void 0===Le.editorIsActive&&(Le.editorIsActive=ye.editorIsActive),void 0===Le.hidden&&(Le.hidden=xe),void 0===Le.representation&&(Le.representation=He.representation),void 0===Le.showDeclaration&&(Le.showDeclaration=ke),(0,w.deriveMissingPropertiesFromState)(Le,He),void 0===Le.value?void 0===Le.representation&&void 0===Le.model.value&&(Le.representation=He.representation):ze||Le.value===He.value||(Le.representation=void 0);var Ke=Y(Le);void 0===Ke.hidden&&(Ke.hidden=null==(T=Ke.name)?void 0:T.startsWith("password")),s().equals(Ke.cursor,ge)||ve(Ke.cursor),Ke.editorIsActive!==ye.editorIsActive&&_e(t()({},ye,{editorIsActive:Ke.editorIsActive})),Ke.hidden!==xe&&Ce(Ke.hidden),Ke.showDeclaration!==ke&&Oe(Ke.showDeclaration);var Ge={modelState:Ke.model.state,representation:Ke.representation,value:Ke.value};(Ue||s().equals(Ke.value,He.value)&&Ke.representation===He.representation)&&s().equals(Ke.model.state,He.modelState)||Ve(Ge),Ue&&(Ve=(0,w.wrapStateSetter)(Ve,Ge)),(0,l.useImperativeHandle)(n,(function(){for(var e,t={modelState:Ke.model.state},n=E(["cursor","editorIsActive","hidden","showDeclaration"]);!(e=n()).done;){var r=e.value;Object.prototype.hasOwnProperty.call(pe,r)||(t[r]=Ke[r])}return ze||(t.representation=Ke.representation),Ue||(t.value=Ke.value),{properties:Ke,references:{codeEditorReference:ie,codeEditorInputReference:oe,foundationReference:ae,inputReference:se,richTextEditorInputReference:le,richTextEditorInstance:ue,richTextEditorReference:ce,suggestionMenuAPIReference:de,suggestionMenuFoundationReference:fe,wrapperReference:he},state:t}}));var Xe={onFocus:function(e){Te(!0),ee(e)},placeholder:Ke.placeholder},Ye={disabled:Ke.disabled,helpText:{children:(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(b.default,{in:Ke.selectableEditor&&"string"===Ke.type&&"plain"!==Ke.editor,children:(0,C.jsx)(f.IconButton,{icon:{icon:Ke.editorIsActive?"subject":Ke.editor.startsWith("code")?"code":"text_format",onClick:function(e){e&&(e.preventDefault(),e.stopPropagation()),_e((function(t){var n=t.editorIsActive;return Ke.editorIsActive=!n,Q(e),(0,w.triggerCallbackIfExists)(Ke,"changeEditorIsActive",Ue,Ke.editorIsActive,e,Ke),{editorIsActive:Ke.editorIsActive,selectionIsUnstable:!0}}))}}})}),(0,C.jsx)(b.default,{in:Boolean(Ke.declaration),children:(0,C.jsx)(f.IconButton,{icon:{icon:"more_"+(Ke.showDeclaration?"vert":"horiz"),onClick:function(e){e&&(e.preventDefault(),e.stopPropagation()),Oe((function(t){return Ke.showDeclaration=!t,Q(e),(0,w.triggerCallbackIfExists)(Ke,"changeShowDeclaration",Ue,Ke.showDeclaration,e,Ke),Ke.showDeclaration}))}}})}),(0,C.jsx)(b.default,{in:Ke.showDeclaration,children:Ke.declaration}),(0,C.jsx)(b.default,{in:!Ke.showDeclaration&&Ke.invalid&&Ke.showValidationState&&(Ke.showInitialValidationState||Ke.visited),children:(0,C.jsx)(g.Theme,{use:"error",wrap:!0,children:(0,C.jsx)("span",{id:k+"-error-message",children:W(Ke.invalidMaximum&&Ke.maximumText||Ke.invalidMaximumLength&&Ke.maximumLengthText||Ke.invalidMinimum&&Ke.minimumText||Ke.invalidMinimumLength&&Ke.minimumLengthText||Ke.invalidInvertedPattern&&Ke.invertedPatternText||Ke.invalidPattern&&Ke.patternText||Ke.invalidRequired&&Ke.requiredText)})})})]}),persistent:Boolean(Ke.declaration)},invalid:Ke.invalid&&Ke.showValidationState&&(Ke.showInitialValidationState||Ke.visited),label:Ke.description||Ke.name,outlined:Ke.outlined};Ke.icon&&(Ye.icon=U(M(Ke.icon)));var Qe=t()({},D,{content_style:Ke.disabled?"body {opacity: .38}":"",placeholder:Ke.placeholder,readonly:Boolean(Ke.disabled),setup:function(e){ue.current=e,ue.current.on("init",(function(){ue.current&&($=!0,Ke.editorIsActive&&ye.selectionIsUnstable&&(ue.current.focus(!1),X(ue.current),_e(t()({},ye,{selectionIsUnstable:!1}))))}))}});Ke.editor.endsWith("raw)")?(Qe.toolbar1="cut copy paste | undo redo removeformat | code | fullscreen",delete Qe.toolbar2):Ke.editor.endsWith("simple)")?(Qe.toolbar1="cut copy paste | undo redo removeformat | bold italic underline strikethrough subscript superscript | fullscreen",delete Qe.toolbar2):Ke.editor.endsWith("normal)")&&(Qe.toolbar1="cut copy paste | undo redo removeformat | styleselect formatselect | searchreplace visualblocks fullscreen code");var Ze=!Ke.selection&&"string"===Ke.type&&Ke.editorIsActive&&(Ke.editor.startsWith("code")||Ke.editor.startsWith("richtext(")),Je=[],et=[],tt=[],nt=Boolean(Ke.suggestionCreator||Fe.length&&(Ke.searchSelection||Ke.suggestSelection));if(nt&&Fe.length){Ke.suggestSelection=!Ke.searchSelection;for(var rt,it=0,ot=E(Fe);!(rt=ot()).done;){var at=rt.value;if(s().isFunction(Ke.children)){var st=Ke.children({index:it,normalizedSelection:De,properties:Ke,query:Ke.representation,suggestion:at,value:Be[it]});st&&(Je.push((0,C.jsx)(h.MenuItem,{className:R["generic-input__suggestions__suggestion"],children:st},it)),et.push(at),tt.push(Be[it]))}else if(!Ke.representation||Ke.suggestionCreator||B(at,Ke.representation)){var lt;Je.push((0,C.jsx)(h.MenuItem,{className:R["generic-input__suggestions__suggestion"],children:s().stringMark(at,(null==(lt=Ke.representation)?void 0:lt.split(" "))||"",{marker:function(e){return(0,C.jsx)("span",{className:R["generic-input__suggestions__suggestion__mark"],children:e})},normalizer:function(e){return(""+e).toLowerCase()},skipTagDelimitedParts:null}).map((function(e,t){return(0,C.jsx)("span",{children:e},t)}))},it)),et.push(at),tt.push(Be[it])}it+=1}}var ut=(Boolean(De)||Boolean(Ke.labels))&&!nt,ct={};return"number"===Ke.type?(ct.step=Ke.step,Ke.maximum!==1/0&&(ct.max=Ke.maximum),Ke.minimum!==-1/0&&(ct.min=Ke.minimum)):"string"===Ke.type?(Ke.maximumLength>=0&&Ke.maximumLength!==1/0&&(ct.maxLength=Ke.maximumLength),Ke.minimumLength>0&&(ct.minLength=Ke.minimumLength),"plain"!==Ke.editor&&(ct.rows=Ke.rows)):["date","datetime-local","time","time-local"].includes(Ke.type)&&(ct.step=Ke.step,Ke.maximum!==1/0&&(ct.max=(0,w.formatValue)(Ke,Ke.maximum,Me)),Ke.minimum!==-1/0&&(ct.min=(0,w.formatValue)(Ke,Ke.minimum,Me))),(0,C.jsx)(y.default,{strict:H.strict,themeConfiguration:Ke.themeConfiguration,tooltip:Ke.tooltip,children:(0,C.jsxs)("div",t()({className:[R["generic-input"]].concat(Ze?R["generic-input--custom"]:[],null!==(A=Ke.className)&&void 0!==A?A:[]).join(" "),onBlur:function(e){return Ve((function(t){var n;if(e.relatedTarget&&null!=(n=he.current)&&n.contains(e.relatedTarget))return t;Te(!1);var r=!1,i=!1;if(t.modelState.focused&&(Ke.focused=!1,r=!0,i=!0),t.modelState.visited||(Ke.visited=!0,r=!0,i=!0),!nt||Ke.suggestSelection){var o=(0,w.getValueFromSelection)(Ke.representation,De);null===o?(Ke.value=(0,w.parseValue)(Ke,Ke.value,Me),Ke.representation=(0,w.formatValue)(Ke,Ke.value,Me)):Ke.value=o}return s().equals(t.value,Ke.value)&&t.representation===Ke.representation||(r=!0),r&&Q(e),s().equals(t.value,Ke.value)||(0,w.triggerCallbackIfExists)(Ke,"changeValue",Ue,Ke.value,e,Ke),i&&(0,w.triggerCallbackIfExists)(Ke,"changeState",Ue,Ke.model.state,e,Ke),(0,w.triggerCallbackIfExists)(Ke,"blur",Ue,e,Ke),r?{modelState:Ke.model.state,representation:Ke.representation,value:Ke.value}:t}))},onKeyDown:function(e){var t;!Ke.disabled&&nt&&s().keyCode.DOWN===e.keyCode&&e.target===se.current&&(null==(t=de.current)||t.focusItemAtIndex(0)),(ut||"string"===Ke.type&&"plain"!==Ke.editor)&&F(e),(0,w.triggerCallbackIfExists)(Ke,"keyDown",Ue,e,Ke)},ref:he,style:Ke.styles},nt?{role:"search"}:{},{children:[V((0,C.jsx)(p.Select,t()({},Xe,Ye,{enhanced:!Ke.disabled,foundationRef:ae,inputRef:se,onChange:Z,onKeyDown:function(e){Ke.disabled||e.keyCode===s().keyCode.TAB||e.preventDefault()},options:De,rootProps:t()({name:Ke.name,onClick:J},Ke.rootProps),value:""+Ke.value},Ke.inputProperties)),ut),V([(0,C.jsx)(c.FormField,{className:["mdc-text-field"].concat(Ke.disabled?"mdc-text-field--disabled":[],"mdc-text-field--textarea").join(" "),onKeyDown:F,children:(0,C.jsxs)("label",{children:[(0,C.jsx)("span",{className:[R["generic-input__editor__label"]].concat("mdc-floating-label","mdc-floating-label--float-above").join(" "),children:(0,C.jsx)(g.Theme,{use:Ke.invalid&&Ke.showValidationState&&(Ke.showInitialValidationState||Ke.visited)?"error":void 0,children:(Ke.description||Ke.name)+(Ke.required?"*":"")})}),Ke.editor.startsWith("code")?(0,C.jsx)(l.Suspense,{fallback:(0,C.jsx)(u.CircularProgress,{size:"large"}),children:(0,C.jsx)(P,t()({},Xe,{className:"mdc-text-field__input",mode:Ke.editor.startsWith("code(")&&Ke.editor.endsWith(")")?Ke.editor.substring("code(".length,Ke.editor.length-1):"javascript",name:Ke.name,onChange:Z,onCursorChange:ne,onSelectionChange:ne,ref:function(e){var n,r,i;ie.current=e,null!=(n=ie.current)&&null!=(r=n.editor)&&null!=(i=r.container)&&i.querySelector("textarea")&&(oe.current=ie.current.editor.container.querySelector("textarea")),ie.current&&Ke.editorIsActive&&ye.selectionIsUnstable&&(ie.current.editor.textInput.focus(),G(ie.current),_e(t()({},ye,{selectionIsUnstable:!1})))},setOptions:{maxLines:Ke.rows,minLines:Ke.rows,readOnly:Ke.disabled,tabSize:4,useWorker:!1},theme:"github",value:Ke.representation},Ke.inputProperties))}):(0,C.jsx)(v.Editor,t()({},Xe,{disabled:Ke.disabled,init:Qe,onClick:J,onEditorChange:Z,onKeyUp:te,ref:function(e){ce.current=e},textareaName:Ke.name,tinymceScriptSrc:D.base_url+"tinymce.min.js",value:Ke.representation},Ke.inputProperties))]})},"advanced-editor-form-field"),(0,C.jsx)("div",{className:"mdc-text-field-helper-line",children:(0,C.jsx)("p",{className:"mdc-text-field-helper-text mdc-text-field-helper-text--persistent",id:k+"-error-message",children:Ye.helpText.children})},"advanced-editor-helper-line")],Ze,$||Ke.editor.startsWith("code")),V((0,C.jsxs)("div",{children:[nt?(0,C.jsx)(h.MenuSurfaceAnchor,{onKeyDown:F,children:$e instanceof AbortController?(0,C.jsx)(h.MenuSurface,{anchorCorner:"bottomLeft",className:R["generic-input__suggestions"]+" "+R["generic-input__suggestions--pending"],open:!0,children:(0,C.jsx)(u.CircularProgress,{size:"large"})}):(0,C.jsx)(h.Menu,{anchorCorner:"bottomLeft",apiRef:function(e){de.current=e},className:R["generic-input__suggestions"],focusOnOpen:!1,foundationRef:fe,onFocus:ee,onSelect:function(e){Z(tt[e.detail.index],void 0,e.detail.index),Te(!1)},open:Boolean(et.length)&&Se&&!(1===et.length&&et[0]===Ke.representation),children:Je})}):"",(0,C.jsx)(m.TextField,t()({},Xe,Ye,ct,{align:Ke.align,characterCount:"number"==typeof Ke.maximumLength&&!isNaN(Ke.maximumLength)&&Ke.maximumLength>=0,foundationRef:ae,inputRef:se,onChange:Z,ripple:Ke.ripple,rootProps:t()({name:Ke.name,onClick:J,onKeyUp:te,tabIndex:Ke.disabled?"0":"-1"},Ke.rootProps),textarea:"string"===Ke.type&&"plain"!==Ke.editor,trailingIcon:U(M(Ke.trailingIcon)),type:N(Ke),value:Ke.representation},Ke.inputProperties))]}),!(Ze||ut),$||Ke.editor.startsWith("code"))]}))})};W.displayName="GenericInput";var H=(0,l.memo)((0,l.forwardRef)(W));H.wrapped=W,H.webComponentAdapterWrapped="react",H.defaultModelState=x.Bg,H.defaultProperties=t()({},x.Ko,{cursor:void 0,model:t()({},x.Ko.model,{state:void 0,value:void 0}),representation:void 0,value:void 0}),H.locales=s().locales,H.propTypes=x.rV,H.renderProperties=x.au,H.strict=!1,H.transformer={boolean:{parse:function(e){var t;return"boolean"==typeof e?e:null===(t=new Map([["false",!1],["true",!0],[0,!1],[1,!0]]).get(e))||void 0===t||t},type:"text"},currency:{format:{final:{options:{currency:"USD"},transform:function(e,n,r){var i,o,a,s,l,u=null!==(i=null==(o=r.currency.format)||null==(a=o.final.options)?void 0:a.currency)&&void 0!==i?i:"USD";return e===1/0?"Infinity "+u:e===-1/0?"- Infinity "+u:isNaN(e)?"unknown":new Intl.NumberFormat(H.locales,t()({style:"currency"},null!==(s=null==(l=r.currency.format)?void 0:l.final.options)&&void 0!==s?s:{})).format(e)}}},parse:function(e,t,n){return n.float.parse?n.float.parse(e,t,n):NaN},type:"text"},date:{format:{final:{transform:function(e,t,n){if("number"!=typeof e)if(n.date.parse)e=n.date.parse(e,t,n);else{var r=e instanceof Date?e.getTime()/1e3:Date.parse(e);if(isNaN(r)){var i=parseFloat(e);e=isNaN(i)?0:i}else e=r/1e3}if(e===1/0)return"Infinitely far in the future";if(e===-1/0)return"Infinitely early in the past";if(!isFinite(e))return"";var o=new Date(Math.round(1e3*e)).toISOString();return o.substring(0,o.indexOf("T"))}}},parse:function(e){if("number"==typeof e)return e;if(e instanceof Date)return e.getTime()/1e3;var t=Date.parse(e);if(isNaN(t)){var n=parseFloat(e);return isNaN(n)?0:n}return t/1e3}},"datetime-local":{format:{final:{transform:function(e,t,n){if("number"!=typeof e)if(n["datetime-local"].parse)e=n["datetime-local"].parse(e,t,n);else{var r=e instanceof Date?e.getTime()/1e3:Date.parse(e);if(isNaN(r)){var i=parseFloat(e);e=isNaN(i)?0:i}else e=r/1e3}if(e===1/0)return"Infinitely far in the future";if(e===-1/0)return"Infinitely early in the past";if(!isFinite(e))return"";var o=new Date(Math.round(1e3*e)).toISOString();return o.substring(0,o.length-1)}}},parse:function(e,t,n){if(n.date.parse)return n.date.parse(e,t,n);if(e instanceof Date)return e.getTime()/1e3;var r=Date.parse(e);if(isNaN(r)){var i=parseFloat(e);return isNaN(i)?0:i}return r/1e3}},time:{format:{final:{transform:function(e,t,n){if("number"!=typeof e)if(n.time.parse)e=n.time.parse(e,t,n);else{var r=e instanceof Date?e.getTime()/1e3:Date.parse(e);if(isNaN(r)){var i=parseFloat(e);e=isNaN(i)?0:i}else e=r/1e3}if(e===1/0)return"Infinitely far in the future";if(e===-1/0)return"Infinitely early in the past";if(!isFinite(e))return"";var o=new Date(Math.round(1e3*e)).toISOString();return o=o.substring(o.indexOf("T")+1,o.length-1),t.step&&t.step>=60&&t.step%60==0?o.substring(0,o.lastIndexOf(":")):o}}},parse:function(e){if("number"==typeof e)return e;if(e instanceof Date)return e.getTime()/1e3;var t=Date.parse(e);if(isNaN(t)){var n=parseFloat(e.replace(/^([0-9]{2}):([0-9]{2})(:([0-9]{2}(\.[0-9]+)?))?$/,(function(e,t,n,r,i,o){return String(parseInt(t)*Math.pow(60,2)+60*parseInt(n)+(r?parseFloat(i):0))})));return isNaN(n)?0:n}return t/1e3}},"time-local":{format:{final:{transform:function(e,t,n){if("number"!=typeof e)if(n["time-local"].parse)e=n["time-local"].parse(e,t,n);else{var r=e instanceof Date?e.getTime()/1e3:Date.parse(e);if(isNaN(r)){var i=parseFloat(e);e=isNaN(i)?0:i}else e=r/1e3}if(e===1/0)return"Infinitely far in the future";if(e===-1/0)return"Infinitely early in the past";if(!isFinite(e))return"";var o=new Date(Math.round(1e3*e)),a=o.getHours(),s=o.getMinutes(),l=(a<10?"0":"")+String(a)+":"+(s<10?"0":"")+String(s);if(!(t.step&&t.step>=60&&t.step%60==0)){var u=o.getSeconds();return l+":"+(u<10?"0":"")+String(u)}return l}}},parse:function(e){if("number"==typeof e)return e;if(e instanceof Date)return e.getTime()/1e3;var t=Date.parse(e);if(isNaN(t)){var n=parseFloat(e.replace(/^([0-9]{2}):([0-9]{2})(:([0-9]{2}(\.[0-9]+)?))?$/,(function(e,t,n,r,i,o){var a=new Date(0);return a.setHours(parseInt(t)),a.setMinutes(parseInt(n)),r&&a.setSeconds(parseInt(i)),String(a.getTime()/1e3)})));return isNaN(n)?0:n}return t/1e3},type:"time"},float:{format:{final:{transform:function(e,t,n){return n.float.format?e===1/0?"Infinity":e===-1/0?"- Infinity":new Intl.NumberFormat(H.locales,n.float.format.final.options||{}).format(e):""+e}}},parse:function(e,t){return"string"==typeof e&&(e=parseFloat("de-DE"===H.locales[0]?e.replace(/\./g,"").replace(/,/g,"."):e)),"number"==typeof e&&("number"==typeof t.minimum&&t.minimum>=0&&e<0||"number"==typeof t.maximum&&t.maximum<=0&&e>0)&&(e*=-1),e},type:"text"},integer:{format:{final:{transform:function(e,n,r){var i,o;return new Intl.NumberFormat(H.locales,t()({maximumFractionDigits:0},null!==(i=null==(o=r.integer.format)?void 0:o.final.options)&&void 0!==i?i:{})).format(e)}}},parse:function(e,t){return"string"==typeof e&&(e=parseInt("de-DE"===H.locales[0]?e.replace(/[,.]/g,""):e)),"number"==typeof e&&("number"==typeof t.minimum&&t.minimum>=0&&e<0||"number"==typeof t.maximum&&t.maximum<=0&&e>0)&&(e*=-1),e},type:"text"},number:{parse:function(e){return"number"==typeof e?e:parseInt(e)}}};var V=H}(),A}())},function(module,__unused_webpack_exports,__nested_webpack_require_174589__){var __dirname="/",e,t,n,r,i,o,a,l,u,s,c,d,m,p,f,v,g,y,b,h,x,_;if(module=__nested_webpack_require_174589__.nmd(module),null!==module&&"undefined"!==eval("typeof require")&&null!==eval("require")&&"main"in eval("require")&&"undefined"!==eval("typeof require.main")&&null!==eval("require.main")){var ORIGINAL_MAIN_MODULE=module;module!==eval("require.main")&&"paths"in module&&"paths"in eval("require.main")&&null!=__dirname&&(module.paths=eval("require.main.paths").concat(module.paths.filter((function(path){return eval("require.main.paths").includes(path)}))))}if(null==window)var window=void 0===__nested_webpack_require_174589__.g||null===__nested_webpack_require_174589__.g?{}:__nested_webpack_require_174589__.g;module.exports=(e=__nested_webpack_require_174589__(5),t=__nested_webpack_require_174589__(2),n=__nested_webpack_require_174589__(8),r=__nested_webpack_require_174589__(6),i=__nested_webpack_require_174589__(21),o=__nested_webpack_require_174589__(23),a=__nested_webpack_require_174589__(24),l=__nested_webpack_require_174589__(25),u=__nested_webpack_require_174589__(26),s=__nested_webpack_require_174589__(27),c=__nested_webpack_require_174589__(28),d=__nested_webpack_require_174589__(9),m=__nested_webpack_require_174589__(10),p=__nested_webpack_require_174589__(11),f=__nested_webpack_require_174589__(29),v=__nested_webpack_require_174589__(30),g=__nested_webpack_require_174589__(4),y=__nested_webpack_require_174589__(0),b=__nested_webpack_require_174589__(3),h=__nested_webpack_require_174589__(31),x=__nested_webpack_require_174589__(22),_=__nested_webpack_require_174589__(7),function(){var w,C,E=[function(e){e.exports=_},function(e){e.exports=t},function(e){e.exports=b},function(e){e.exports=g},function(e){e.exports=d},function(e){e.exports=y},function(e,t,n){n.d(t,{WrapTooltip:function(){return l}});var r=n(1),i=n.n(r),o=n(9),a=n(11),s=n(0),l=function(e){var t=e.children,n=e.options;return"string"==typeof n?(0,s.jsx)(a.Tooltip,{content:(0,s.jsx)(o.Typography,{use:"caption",children:n}),children:(0,s.jsx)("div",{className:"generic-tooltip",children:t})}):null!==n&&"object"==typeof n?("string"==typeof n.content&&(n=i()({},n,{content:(0,s.jsx)(o.Typography,{use:"caption",children:n.content})})),(0,s.jsx)(a.Tooltip,i()({},n,{children:(0,s.jsx)("div",{className:"generic-tooltip",children:t})}))):(0,s.jsx)(s.Fragment,{children:t})};t.default=l},function(e,t,n){n(1),n(13),n(2),n(4);var r=n(12),i=n(10),o=n(6),a=n(0);t.default=function(e){var t=e.children,n=e.strict,s=e.themeConfiguration,l=e.tooltip,u=e.wrap;return(0,a.jsx)(r.x,{strict:Boolean(n),children:(0,a.jsx)(o.WrapTooltip,{options:l,children:(0,a.jsx)(i.WrapThemeProvider,{configuration:s,wrap:u,children:t})})})}},function(e,t,n){n.d(t,{createDummyStateSetter:function(){return d},deriveMissingPropertiesFromState:function(){return f},determineInitialRepresentation:function(){return g},determineInitialValue:function(){return v},determineValidationState:function(){return b},formatValue:function(){return S},getConsolidatedProperties:function(){return _},getLabelAndValues:function(){return w},getValueFromSelection:function(){return x},mapPropertiesIntoModel:function(){return y},normalizeSelection:function(){return C},parseValue:function(){return E},translateKnownSymbols:function(){return m},triggerCallbackIfExists:function(){return p},useMemorizedValue:function(){return T},wrapStateSetter:function(){return h}});var r=n(1),i=n.n(r),o=n(3),a=n.n(o),s=n(5),l=n(2);function u(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return c(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)?c(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(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}var d=function(e){return function(t){"function"==typeof t&&t(e)}},f=function(e,t){void 0!==e.model.value&&void 0===e.value&&(e.value=e.model.value),void 0===e.value&&(e.value=t.value),e.model.state?e.model.state=i()({},e.model.state):e.model.state={};for(var n=0,r=Object.entries(t.modelState);n<r.length;n++){var o=r[n],a=o[0],s=o[1];void 0===e.model.state[a]&&(e.model.state[a]=s)}return e},h=function(e,t){return function(n){var r="function"==typeof n?n(t):n;a().equals(null==r?void 0:r.modelState,null==t?void 0:t.modelState)||e(r)}},p=function(e,t,n){void 0===n&&(n=!0);for(var r=arguments.length,i=new Array(r>3?r-3:0),o=3;o<r;o++)i[o-3]=arguments[o];t="on"+a().stringCapitalize(t),e[t]&&(n?e[t].apply(e,i):a().timeout((function(){return e[t].apply(e,i)})))},m=function(e){for(var t={},n=0,r=Object.entries(e);n<r.length;n++){var i=r[n],o=i[0],l=i[1];l===s.UndefinedSymbol?t[o]=void 0:l===s.NullSymbol?t[o]=null:t[o]=a().copy(e[o])}return t};function g(e,t,n,r,o){if("string"==typeof e.representation)return e.representation;if(null!==n){var s,l=function(e,t){if(t)for(var n,r=u(t);!(n=r()).done;){var i=n.value;if(a().equals(null==i?void 0:i.value,e))return i.label||""+e}return null}(n,o);return"string"==typeof l?l:S(i()({},e,{type:e.type||(null==(s=e.model)?void 0:s.type)||t.model.type}),n,r)}return""}var v=function(e,t,n){var r,i;return void 0!==n?n:void 0!==e.value?e.value:void 0!==(null==(r=e.model)?void 0:r.value)?e.model.value:void 0!==e.initialValue?a().copy(e.initialValue):void 0!==e.default?a().copy(e.default):void 0!==(null==(i=e.model)?void 0:i.default)?a().copy(e.model.default):void 0!==t?t:null},b=function(e,t,n){void 0===n&&(n={});var r=!1;n=i()({invalidRequired:function(){return!1===e.model.nullable&&"boolean"!==e.model.type&&!e.model.value&&0!==e.model.value||"boolean"===e.model.type&&!("boolean"==typeof e.model.value||["false","true"].includes(e.model.value))}},n),e.model.state=e.model.state||{};for(var o=0,a=Object.entries(n);o<a.length;o++){var s=a[o],l=s[0],u=s[1],c=t[l];e.model.state[l]=u(),r=r||c!==t[l]}return r&&(e.model.state.invalid=Object.keys(n).some((function(t){return e.model.state[t]})),e.model.state.valid=!e.model.state.invalid),r},y=function(e,t){var n=a().extend(!0,{model:a().copy(t)},e);n.disabled&&(n.model.mutable=!1,delete n.disabled),n.invertedPattern&&(n.model.invertedRegularExpressionPattern=n.invertedPattern,delete n.invertedPattern),n.pattern&&(n.model.regularExpressionPattern=n.pattern,delete n.pattern),n.required&&(n.model.nullable=!1,delete n.required),"text"===n.type&&(n.type="string");for(var r,i=u(Object.keys(n.model).concat("value"));!(r=i()).done;){var o=r.value;Object.prototype.hasOwnProperty.call(n,o)&&void 0!==n[o]&&(n.model[o]=n[o])}for(var s in n.model.state)Object.prototype.hasOwnProperty.call(n,s)&&void 0!==n[s]&&(n.model.state[s]=n[s]);return void 0===n.model.value&&(n.model.value=a().copy(n.model.default)),n},_=function(e){var t=i()({},e,e.model||{},(e.model||{}).state||{});return t.disabled=!(t.mutable&&t.writable),delete t.mutable,delete t.writable,delete t.state,t.required=!t.nullable,delete t.nullable,t.invertedRegularExpressionPattern&&(t.invertedPattern=t.invertedRegularExpressionPattern),delete t.invertedRegularExpressionPattern,t.regularExpressionPattern&&(t.pattern=t.regularExpressionPattern),delete t.regularExpressionPattern,t};function w(e){if(Array.isArray(e)){for(var t,n=[],r=[],i=u(e);!(t=i()).done;){var o=t.value;"string"==typeof(null==o?void 0:o.label)&&(n.push(o.label),r.push(o.value))}return[n,r]}return[[],[]]}function x(e,t){if(Array.isArray(t))for(var n,r=u(t);!(n=r()).done;){var i=n.value;if("string"==typeof(null==i?void 0:i.label)&&i.label===e)return i.value;if(["number","string"].includes(typeof(null==i?void 0:i.value))&&""+i.value===e)return i.value}return null}function C(e,t){if(e||(e=t,t=void 0),!e)return e;var n=null!==t&&"object"==typeof t,r=function(e,r){if(n)if(Array.isArray(t)){if(t.length)if(Array.isArray(t[0]))for(var i,o=u(t);!(i=o()).done;){var a=i.value,s=a[0],l=a[1];if(s===e)return l}else if("number"==typeof r&&r<t.length)return t[r]}else{if(!0===e&&t.true)return t.true;if(!1===e&&t.false)return t.false;if("string"==typeof e&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}return null},o=!1;if(Array.isArray(e)){if(o=!0,e.length){var a=[],s=0;if(Array.isArray(e[0]))for(var l=0,c=e;l<c.length;l++){var d,f=c[l],h=f[0],p=f[1];a.push({label:null!==(d=r(h,s))&&void 0!==d?d:p,value:h}),s+=1}else if(null!==e[0]&&"object"==typeof e[0])for(var m,g=u(e);!(m=g()).done;){var v,b=m.value;a.push(i()({},b,{label:null!==(v=r(b.value,s))&&void 0!==v?v:b.label})),s+=1}else for(var y=0,_=e;y<_.length;y++){var w,x=_[y];a.push({label:null!==(w=r(x,s))&&void 0!==w?w:x,value:x}),s+=1}e=a}}else{for(var C=[],E=0,S=Object.keys(e);E<S.length;E++){var T,A=S[E];C.push({label:null!==(T=r(A))&&void 0!==T?T:e[A],value:A})}e=C}if(Array.isArray(t)&&t.length&&Array.isArray(t[0])){for(var k,O=new Map,I=0,L=u(t);!(k=L()).done;){var R=k.value[0];O.set(R,I),I+=1}e=e.sort((function(e,t){var n,r,i=e.value,o=t.value;return(null!==(n=O.get(i))&&void 0!==n?n:0)-(null!==(r=O.get(o))&&void 0!==r?r:0)}))}else o||(e=e.sort((function(e,t){var n=e.value,r=t.value;return n.localeCompare(r)})));return e}var E=function(e,t,n){var r;if(e.model.trim&&"string"==typeof t&&(t=t.trim().replace(/ +\n/g,"\\n")),e.model.emptyEqualsNull&&""===t)return null;var i=t;return![null,void 0].includes(t)&&null!=(r=n[e.model.type])&&r.parse&&(i=n[e.model.type].parse(t,e,n)),"number"==typeof i&&isNaN(i)?null:i};function S(e,t,n,r){var i;void 0===r&&(r=!0);var o=r?"final":"intermediate";if([null,void 0].includes(t)||"number"==typeof t&&isNaN(t))return"";var a=null==(i=n[e.type||e.model.type])?void 0:i.format;if(a){var s,l,u=(null==(s=a[o])?void 0:s.transform)||(null==(l=a.final)?void 0:l.transform);if(u)return u(t,e,n)}return String(t)}var T=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return(0,l.useMemo)((function(){return e}),n)}},function(e){e.exports=p},function(e,t,n){n.d(t,{WrapThemeProvider:function(){return o}});var r=n(4),i=n(0),o=function(e){var t=e.children,n=e.configuration,o=e.wrap;return n?(0,i.jsx)(r.ThemeProvider,{options:n,wrap:!1!==o,children:t}):t}},function(e){e.exports=m},function(e,t,n){n.d(t,{x:function(){return o}});var r=n(2),i=n(0),o=function(e){var t=e.children;return e.strict?(0,i.jsx)(r.StrictMode,{children:t}):(0,i.jsx)(i.Fragment,{children:t})}},function(e){e.exports=n},function(e,t,n){n.d(t,{default:function(){return p}});var r=n(1),i=n.n(r),o=n(5),a=n(2),s=n(21),l=n(0),u="generic-animate",c="generic-animate__list-wrapper",d="generic-animate__wrapper",f=function(e,t){return(0,l.jsx)(s.CSSTransition,i()({appear:!0,classNames:u,in:!0,timeout:200,unmountOnExit:!0},e,{children:"string"==typeof e.children?(0,l.jsx)("span",{className:d,ref:t,children:e.children}):Array.isArray(e.children)?(0,l.jsx)("div",{className:c,ref:t,children:e.children}):e.children}))},h=(0,a.memo)((0,a.forwardRef)(f));h.wrapped=f,h.webComponentAdapterWrapped="react",h.propTypes={appear:o.boolean,classNames:o.string,in:o.boolean,timeout:o.number};var p=h},function(e,t,n){n.d(t,{default:function(){return U}});var r=n(1),i=n.n(r),o=n(16),a=n.n(o),s=n(17),l=n.n(s),u=n(3),c=n.n(u),d=n(2),f=n(18),h=n(22),p=n(19),m=n(20),g=n(23),v=n(24),b=n(25),y=n(4),_=n(26),w=n(14),x=n(7),C=n(6),E=n(8),S=n(29),T=n(0);function A(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return k(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)?k(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function k(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}var O=!(void 0===typeof window),I=O?(0,u.optionalRequire)("react-useanimations"):null,L=O?(0,u.optionalRequire)("react-useanimations/lib/lock"):null,R=O?(0,u.optionalRequire)("react-useanimations/lib/plusToX"):null,M={"generic-input":"generic-input",ace_editor:"ace_editor","tox-tinymce":"tox-tinymce","generic-input--custom":"generic-input--custom","generic-input__editor__label":"generic-input__editor__label","generic-input__suggestions":"generic-input__suggestions","generic-input__suggestions--pending":"generic-input__suggestions--pending","generic-input__suggestions__suggestion":"generic-input__suggestions__suggestion","generic-input__suggestions__suggestion__mark":"generic-input__suggestions__suggestion__mark"},P={basePath:"/node_modules/ace-builds/src-noconflict/",useWorker:!1},$=(0,d.lazy)(a()(l().mark((function e(){var t,r,i,o,a,s,u;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.resolve().then(n.t.bind(n,27,23));case 2:for(t=e.sent,r=t.config,i=0,o=Object.entries(P);i<o.length;i++)a=o[i],s=a[0],u=a[1],r.set(s,u);return e.next=7,Promise.resolve().then(n.t.bind(n,28,23));case 7:return e.abrupt("return",e.sent);case 8:case"end":return e.stop()}}),e)})))),N=!1,D="/node_modules/tinymce/",j={base_url:D,skin_url:D+"skins/ui/oxide",theme_url:D+"themes/silver/theme.min.js",allow_conditional_comments:!1,allow_script_urls:!1,body_class:"mdc-text-field__input",branding:!1,cache_suffix:"?version=1666081628.983",contextmenu:[],document_base_url:"/",element_format:"xhtml",entity_encoding:"raw",fix_list_elements:!0,hidden_input:!1,icon:"material",invalid_elements:"em",invalid_styles:"color font-size line-height",keep_styles:!1,menubar:!1,plugins:["fullscreen","link","code","nonbreaking","searchreplace","visualblocks"],relative_urls:!1,remove_script_host:!1,remove_trailing_brs:!0,schema:"html5",toolbar1:"\n cut copy paste |\n undo redo removeformat |\n styleselect formatselect fontselect fontsizeselect |\n searchreplace visualblocks fullscreen code\n ".trim(),toolbar2:"\n alignleft aligncenter alignright alignjustify outdent indent |\n link nonbreaking bullist numlist bold italic underline strikethrough\n ".trim(),trim:!0};function F(e,t){return(0,E.determineValidationState)(e,t,{invalidMaximum:function(){return"number"==typeof e.model.maximum&&"number"==typeof e.model.value&&!isNaN(e.model.value)&&e.model.maximum>=0&&e.model.maximum<e.model.value},invalidMinimum:function(){return"number"==typeof e.model.minimum&&"number"==typeof e.model.value&&!isNaN(e.model.value)&&e.model.value<e.model.minimum},invalidMaximumLength:function(){return"number"==typeof e.model.maximumLength&&"string"==typeof e.model.value&&e.model.maximumLength>=0&&e.model.maximumLength<e.model.value.length},invalidMinimumLength:function(){return"number"==typeof e.model.minimumLength&&"string"==typeof e.model.value&&e.model.value.length<e.model.minimumLength},invalidInvertedPattern:function(){return"string"==typeof e.model.value&&[].concat(e.model.invertedRegularExpressionPattern).some((function(t){return"string"==typeof t&&new RegExp(t).test(e.model.value)||null!==t&&"object"==typeof t&&t.test(e.model.value)}))},invalidPattern:function(){return"string"==typeof e.model.value&&[].concat(e.model.regularExpressionPattern).some((function(t){return"string"==typeof t&&!new RegExp(t).test(e.model.value)||null!==t&&"object"==typeof t&&!t.test(e.model.value)}))}})}function B(e){c().keyCode.ENTER===e.keyCode&&e.stopPropagation()}function W(e,t){return!!t&&(e=e.toLowerCase(),t.replace(/ +/g," ").toLowerCase().split(" ").every((function(t){return e.includes(t)})))}var H=function(e,t){var n,r,o,a,s,l,u,S,k=(0,d.useId)();(0,d.useEffect)((function(){if(ze||be.selectionIsUnstable)if(qe.editorIsActive){var e,t,n;null!=(e=re.current)&&null!=(t=e.editor)&&t.selection?(re.current.editor.textInput.focus(),K(re.current),be.selectionIsUnstable&&ye(i()({},be,{selectionIsUnstable:!1}))):null!=(n=le.current)&&n.selection&&(le.current.focus(!1),G(le.current),be.selectionIsUnstable&&ye(i()({},be,{selectionIsUnstable:!1})))}else ae.current&&(ae.current.setSelectionRange(qe.cursor.start,qe.cursor.end),be.selectionIsUnstable&&ye(i()({},be,{selectionIsUnstable:!1})));if(ae.current&&(qe.valid?(ae.current.removeAttribute("aria-errormessage"),ae.current.removeAttribute("aria-invalid")):(ae.current.setAttribute("aria-errormessage",k+"-error-message"),ae.current.setAttribute("aria-invalid","true")),tt&&("search"!==ae.current.getAttribute("type")&&ae.current.setAttribute("role","searchbox"),ae.current.setAttribute("aria-autocomplete",qe.searchSelection?"inline":"list")),qe.inputProps))for(var r=0,o=Object.entries(qe.inputProps);r<o.length;r++){var a=o[r],s=a[0],l=a[1],u=c().stringCamelCaseToDelimited(s);"boolean"==typeof l?l?ae.current.setAttribute(u,""):ae.current.removeAttribute(u):ae.current.setAttribute(u,String(l))}if(lt){var d=fe.current.querySelector('[aria-haspopup="listbox"]');d.hasAttribute("aria-expanded")||d.setAttribute("aria-expanded","false")}}));var O=function(e){if("clear_preset"===e){var t=function(e){e.preventDefault(),e.stopPropagation(),Q((0,E.parseValue)(qe,qe.default,V.transformer))};return{icon:(0,T.jsx)(w.default,{in:!c().equals(qe.value,qe.default),children:I&&!I.isDummy&&R?(0,T.jsx)(I,{animation:R,reverse:!0}):(0,T.jsx)(m.IconButton,{icon:"clear"})}),onClick:t,onKeyDown:t,strategy:"component",tabIndex:-1,tooltip:"Clear input"}}if("password_preset"===e){var n=function(e){"number"==typeof e.keyCode&&e.keyCode!==c().keyCode.ENTER||(e.preventDefault(),e.stopPropagation(),xe((function(t){return void 0===t&&(t=qe.hidden),qe.hidden=!t,Y(e),qe.hidden})))};return(0,E.useMemorizedValue)({icon:I&&!I.isDummy&&L?(0,T.jsx)(I,{animation:L,reverse:!qe.hidden}):(0,T.jsx)(m.IconButton,{icon:qe.hidden?"lock_open":"lock"}),onClick:n,onKeyDown:n,strategy:"component",tabIndex:-1,tooltip:(qe.hidden?"Show":"Hide")+" password"},qe.hidden)}return e&&("string"==typeof e&&(e={icon:e}),Object.prototype.hasOwnProperty.call(e,"onClick")||(e.tabIndex=-1)),e},P=function(e){var t,n;return"string"===e.type?e.hidden?"password":tt?"search":"text":null!==(t=null==(n=Re[e.type])?void 0:n.type)&&void 0!==t?t:e.type},D=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n=!0),"boolean"==typeof t?n?(0,T.jsx)(w.default,{in:t,children:e}):t?e:"":n?(0,T.jsx)(w.default,i()({},t,{children:e})):t.in?e:""},H=function(e){var t;if("object"==typeof e&&null!=(t=e)&&t.tooltip){var n=e.tooltip;delete(e=i()({},e)).tooltip;var r=i()({},e);e.strategy="component",e.icon=(0,T.jsx)(C.default,{options:n,children:(0,T.jsx)(p.Icon,{icon:r})})}return e},U=function(e,t,n){if(!qe.value)return 0;var r="generic-input-selection-indicator",i=" "+r+'="###"';t.setAttribute(r,"###");var o=e.innerHTML.replace(/(<\/p>)/gi,"$1\n");t.removeAttribute(r);var a=o.indexOf(i)+i.length;return n+o.indexOf(">",a)+1-i.length},z=function(e,t){return"string"==typeof qe.value||qe.value?t>0?e+qe.value.split("\n").slice(0,t).map((function(e){return 1+e.length})).reduce((function(e,t){return e+t})):e:0},q=function(e){var t={column:0,row:0};if("string"==typeof qe.value)for(var n,r=A(qe.value.split("\n"));!(n=r()).done;){var i=n.value;if(!(i.length<e)){t.column=e;break}e-=1+i.length,t.row+=1}return t},K=function(e){var t=e.editor.selection.getRange(),n=q(qe.cursor.end);t.setEnd(n.row,n.column);var r=q(qe.cursor.start);t.setStart(r.row,r.column),e.editor.selection.setRange(t)},G=function(e){for(var t={end:"###generic-input-selection-indicator-end###",start:"###generic-input-selection-indicator-start###"},n={end:qe.cursor.end+t.start.length,start:qe.cursor.start},r=["start","end"],i=qe.representation,o=0,a=r;o<a.length;o++){var s=a[o];i=i.substring(0,n[s])+t[s]+i.substring(n[s])}e.getBody().innerHTML=i;for(var l,u=document.createTreeWalker(e.getBody(),NodeFilter.SHOW_TEXT,null),d=e.dom.createRng(),f={};l=u.nextNode();)for(var h,p=A(r);!(h=p()).done;){var m=h.value;if(l.nodeValue){var g=l.nodeValue.indexOf(t[m]);g>-1&&(l.nodeValue=l.nodeValue.replace(t[m],""),f[m]=[l,g])}}for(var v=0,b=r;v<b.length;v++){var y=b[v];f[y]&&d["set"+c().stringCapitalize(y)].apply(d,f[y])}f.end&&f.start&&e.selection.setRng(d)},X=function(e){var t=(0,E.getConsolidatedProperties)(function(e){var t=(0,E.mapPropertiesIntoModel)(e,V.defaultProperties.model);return t.model.value=(0,E.parseValue)(t,t.model.value,Re),F(t,t.model.state),t}(e));return t.selection||"boolean"!==t.type||(t.selection=[{label:"No",value:!1},{label:"Yes",value:!0}]),t.selectableEditor||"plain"===t.editor||(t.editorIsActive=!0),"string"!=typeof t.representation&&(t.representation=(0,E.formatValue)(t,t.value,Re,!t.focused),t.focused&&t.representation!==t.value&&["password","text"].includes(P(t))&&(ze=!0)),t},Y=function(e){c().extend(!0,qe,X(qe)),(0,E.triggerCallbackIfExists)(qe,"change",Ve,qe,e)},Q=function(e,t,n){var r;if(void 0===n&&(n=-1),Se(!0),null!==e&&"object"==typeof e){var o=e.target||e.detail;if(o)if("number"==typeof o.index){var a=o.index-(qe.placeholder?1:0);qe.value=a>=0&&a<Fe.length?Fe[a]:null}else qe.value=void 0===o.value?null:o.value;else qe.value=e}else qe.value=e;var s=function(){return He((function(e){if(!Ue&&e.representation===qe.representation&&!qe.suggestionCreator&&-1===n)return e;var t=i()({},e,{representation:qe.representation});if(!Ve&&c().equals(e.value,qe.value))return t;t.value=qe.value;var o=!1;return e.modelState.pristine&&(qe.dirty=!0,qe.pristine=!1,o=!0),Y(r),F(qe,e.modelState)&&(o=!0),(0,E.triggerCallbackIfExists)(qe,"changeValue",Ve,qe.value,r,qe),o&&(t.modelState=qe.model.state,(0,E.triggerCallbackIfExists)(qe,"changeState",Ve,qe.model.state,r,qe)),(lt||-1!==n)&&(0,E.triggerCallbackIfExists)(qe,"select",Ve,r,qe),t}))};if(qe.representation=-1!==n?Je[n]:"string"==typeof qe.value?qe.value:(0,E.formatValue)(qe,qe.value,Re),tt)if(qe.suggestionCreator){var l=new AbortController,u=function(e){if(!l.signal.aborted){if($e((function(t){return t instanceof AbortController&&!t.signal.aborted&&t.abort(),e})),-1===n){var t=(0,E.getValueFromSelection)(qe.representation,(0,E.normalizeSelection)(e));null!==t||qe.searchSelection?qe.value=t:qe.value=(0,E.parseValue)(qe,qe.representation,Re)}s()}},d=qe.suggestionCreator({abortController:l,properties:qe,query:qe.representation});null!=d&&d.then?($e((function(e){return e instanceof AbortController&&!e.signal.aborted&&e.abort(),l})),He((function(e){return i()({},e,{representation:qe.representation})})),d.then(u,c().noop)):u(d)}else{if(-1===n){var f=(0,E.getValueFromSelection)(qe.representation,Ne);null!==f||qe.searchSelection?qe.value=f:qe.value=(0,E.parseValue)(qe,qe.representation,Re)}s()}else qe.value=(0,E.parseValue)(qe,qe.value,Re),s()},Z=function(e){te(e),(0,E.triggerCallbackIfExists)(qe,"click",Ve,e,qe),ne(e)},J=function(e){(0,E.triggerCallbackIfExists)(qe,"focus",Ve,e,qe),ne(e)},ee=function(e){e.keyCode&&(te(e),(0,E.triggerCallbackIfExists)(qe,"keyUp",Ve,e,qe))},te=function(e){!function(e){var t,n,r,i,o,a,s,l=null==(t=re.current)||null==(n=t.editor)||null==(r=n.selection)?void 0:r.getRange(),u=null==(i=le.current)||null==(o=i.selection)?void 0:o.getRng(),c=null==(a=ae.current)?void 0:a.selectionEnd,d=null==(s=ae.current)?void 0:s.selectionStart;if(l)ge({end:z(l.end.column,"number"==typeof l.end.row?l.end.row:"string"==typeof qe.value?qe.value.split("\n").length-1:0),start:z(l.start.column,"number"==typeof l.start.row?l.start.row:"string"==typeof qe.value?qe.value.split("\n").length-1:0)});else if(u)ge({end:U(le.current.getBody(),le.current.selection.getEnd(),u.endOffset),start:U(le.current.getBody(),le.current.selection.getStart(),u.startOffset)});else if("number"==typeof c&&"number"==typeof d){var f,h=1===(null==e||null==(f=e.key)?void 0:f.length)?1:"Backspace"===(null==e?void 0:e.key)&&qe.representation.length>d?-1:0;ge({end:c+h,start:d+h})}}(e),(0,E.triggerCallbackIfExists)(qe,"selectionChange",Ve,e,qe)},ne=function(e){return He((function(t){var n=!1;t.modelState.focused||(qe.focused=!0,n=!0),t.modelState.untouched&&(qe.touched=!0,qe.untouched=!1,n=!0);var r=t;return n&&(Y(e),r=i()({},t,{modelState:qe.model.state}),(0,E.triggerCallbackIfExists)(qe,"changeState",Ve,qe.model.state,e,qe)),(0,E.triggerCallbackIfExists)(qe,"touch",Ve,e,qe),r}))},re=(0,d.useRef)(null),ie=(0,d.useRef)(null),oe=(0,d.useRef)(null),ae=(0,d.useRef)(null),se=(0,d.useRef)(null),le=(0,d.useRef)(null),ue=(0,d.useRef)(null),ce=(0,d.useRef)(null),de=(0,d.useRef)(null),fe=(0,d.useRef)(null),he=(0,E.translateKnownSymbols)(e),pe=(0,d.useState)({end:0,start:0}),me=pe[0],ge=pe[1],ve=(0,d.useState)({editorIsActive:!1,selectionIsUnstable:!1}),be=ve[0],ye=ve[1],_e=(0,d.useState)(),we=_e[0],xe=_e[1],Ce=(0,d.useState)(!1),Ee=Ce[0],Se=Ce[1],Te=(0,d.useState)(!1),Ae=Te[0],ke=Te[1],Oe=(0,E.determineInitialValue)(he,null==(n=V.defaultProperties.model)?void 0:n.default);Oe instanceof Date&&(Oe=Oe.getTime()/1e3);var Ie=c().extend(!0,c().copy(V.defaultProperties),he),Le=Ie.type||(null==(r=Ie.model)?void 0:r.type)||"string",Re=Ie.transformer?i()({},V.transformer,((o={})[Le]=c().extend(!0,c().copy(V.transformer[Le])||{},Ie.transformer),o)):V.transformer,Me=(0,d.useState)(),Pe=Me[0],$e=Me[1];(Ie.selection||null!=(a=Ie.model)&&a.selection)&&(Pe=Ie.selection||(null==(s=Ie.model)?void 0:s.selection));var Ne=Pe instanceof AbortController?[]:(0,E.normalizeSelection)(Pe,Ie.labels),De=Pe instanceof AbortController?[[],[]]:(0,E.getLabelAndValues)(Ne),je=De[0],Fe=De[1],Be=(0,d.useState)((function(){return{modelState:i()({},V.defaultModelState),representation:(0,E.determineInitialRepresentation)(Ie,V.defaultProperties,Oe,Re,Ne),value:Oe}})),We=Be[0],He=Be[1],Ve=!Ie.enforceUncontrolled&&(void 0!==(null==(l=he.model)?void 0:l.value)||void 0!==he.value)&&Boolean(he.onChange||he.onChangeValue),Ue=Ve&&void 0!==he.representation,ze=!1;null!==Ie.cursor&&"object"==typeof Ie.cursor||(Ie.cursor={}),void 0===Ie.cursor.end&&(Ie.cursor.end=me.end),void 0===Ie.cursor.start&&(Ie.cursor.start=me.start),void 0===Ie.editorIsActive&&(Ie.editorIsActive=be.editorIsActive),void 0===Ie.hidden&&(Ie.hidden=we),void 0===Ie.representation&&(Ie.representation=We.representation),void 0===Ie.showDeclaration&&(Ie.showDeclaration=Ae),(0,E.deriveMissingPropertiesFromState)(Ie,We),void 0===Ie.value?void 0===Ie.representation&&void 0===Ie.model.value&&(Ie.representation=We.representation):Ue||Ie.value===We.value||(Ie.representation=void 0);var qe=X(Ie);void 0===qe.hidden&&(qe.hidden=null==(u=qe.name)?void 0:u.startsWith("password")),c().equals(qe.cursor,me)||ge(qe.cursor),qe.editorIsActive!==be.editorIsActive&&ye(i()({},be,{editorIsActive:qe.editorIsActive})),qe.hidden!==we&&xe(qe.hidden),qe.showDeclaration!==Ae&&ke(qe.showDeclaration);var Ke={modelState:qe.model.state,representation:qe.representation,value:qe.value};(Ve||c().equals(qe.value,We.value)&&qe.representation===We.representation)&&c().equals(qe.model.state,We.modelState)||He(Ke),Ve&&(He=(0,E.wrapStateSetter)(He,Ke)),(0,d.useImperativeHandle)(t,(function(){for(var e,t={modelState:qe.model.state},n=A(["cursor","editorIsActive","hidden","showDeclaration"]);!(e=n()).done;){var r=e.value;Object.prototype.hasOwnProperty.call(he,r)||(t[r]=qe[r])}return Ue||(t.representation=qe.representation),Ve||(t.value=qe.value),{properties:qe,references:{codeEditorReference:re,codeEditorInputReference:ie,foundationReference:oe,inputReference:ae,richTextEditorInputReference:se,richTextEditorInstance:le,richTextEditorReference:ue,suggestionMenuAPIReference:ce,suggestionMenuFoundationReference:de,wrapperReference:fe},state:t}}));var Ge={onFocus:function(e){Se(!0),J(e)},placeholder:qe.placeholder},Xe={disabled:qe.disabled,helpText:{children:(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(w.default,{in:qe.selectableEditor&&"string"===qe.type&&"plain"!==qe.editor,children:(0,T.jsx)(m.IconButton,{icon:{icon:qe.editorIsActive?"subject":qe.editor.startsWith("code")?"code":"text_format",onClick:function(e){e&&(e.preventDefault(),e.stopPropagation()),ye((function(t){var n=t.editorIsActive;return qe.editorIsActive=!n,Y(e),(0,E.triggerCallbackIfExists)(qe,"changeEditorIsActive",Ve,qe.editorIsActive,e,qe),{editorIsActive:qe.editorIsActive,selectionIsUnstable:!0}}))}}})}),(0,T.jsx)(w.default,{in:Boolean(qe.declaration),children:(0,T.jsx)(m.IconButton,{icon:{icon:"more_"+(qe.showDeclaration?"vert":"horiz"),onClick:function(e){e&&(e.preventDefault(),e.stopPropagation()),ke((function(t){return qe.showDeclaration=!t,Y(e),(0,E.triggerCallbackIfExists)(qe,"changeShowDeclaration",Ve,qe.showDeclaration,e,qe),qe.showDeclaration}))}}})}),(0,T.jsx)(w.default,{in:qe.showDeclaration,children:qe.declaration}),(0,T.jsx)(w.default,{in:!qe.showDeclaration&&qe.invalid&&qe.showValidationState&&(qe.showInitialValidationState||qe.visited),children:(0,T.jsx)(y.Theme,{use:"error",wrap:!0,children:(0,T.jsx)("span",{id:k+"-error-message",children:function(e){if("string"==typeof e){var t=c().stringEvaluate("`"+e+"`",i()({formatValue:function(e){return(0,E.formatValue)(qe,e,Re)}},qe));return t.error?(console.warn("Given message template could not be proceed:",t.error),""):t.result}return""}(qe.invalidMaximum&&qe.maximumText||qe.invalidMaximumLength&&qe.maximumLengthText||qe.invalidMinimum&&qe.minimumText||qe.invalidMinimumLength&&qe.minimumLengthText||qe.invalidInvertedPattern&&qe.invertedPatternText||qe.invalidPattern&&qe.patternText||qe.invalidRequired&&qe.requiredText)})})})]}),persistent:Boolean(qe.declaration)},invalid:qe.invalid&&qe.showValidationState&&(qe.showInitialValidationState||qe.visited),label:qe.description||qe.name,outlined:qe.outlined};qe.icon&&(Xe.icon=H(O(qe.icon)));var Ye=i()({},j,{content_style:qe.disabled?"body {opacity: .38}":"",placeholder:qe.placeholder,readonly:Boolean(qe.disabled),setup:function(e){le.current=e,le.current.on("init",(function(){le.current&&(N=!0,qe.editorIsActive&&be.selectionIsUnstable&&(le.current.focus(!1),G(le.current),ye(i()({},be,{selectionIsUnstable:!1}))))}))}});qe.editor.endsWith("raw)")?(Ye.toolbar1="cut copy paste | undo redo removeformat | code | fullscreen",delete Ye.toolbar2):qe.editor.endsWith("simple)")?(Ye.toolbar1="cut copy paste | undo redo removeformat | bold italic underline strikethrough subscript superscript | fullscreen",delete Ye.toolbar2):qe.editor.endsWith("normal)")&&(Ye.toolbar1="cut copy paste | undo redo removeformat | styleselect formatselect | searchreplace visualblocks fullscreen code");var Qe=!qe.selection&&"string"===qe.type&&qe.editorIsActive&&(qe.editor.startsWith("code")||qe.editor.startsWith("richtext(")),Ze=[],Je=[],et=[],tt=Boolean(qe.suggestionCreator||je.length&&(qe.searchSelection||qe.suggestSelection));if(tt&&je.length){qe.suggestSelection=!qe.searchSelection;for(var nt,rt=0,it=A(je);!(nt=it()).done;){var ot=nt.value;if(c().isFunction(qe.children)){var at=qe.children({index:rt,normalizedSelection:Ne,properties:qe,query:qe.representation,suggestion:ot,value:Fe[rt]});at&&(Ze.push((0,T.jsx)(g.MenuItem,{className:M["generic-input__suggestions__suggestion"],children:at},rt)),Je.push(ot),et.push(Fe[rt]))}else if(!qe.representation||qe.suggestionCreator||W(ot,qe.representation)){var st;Ze.push((0,T.jsx)(g.MenuItem,{className:M["generic-input__suggestions__suggestion"],children:c().stringMark(ot,(null==(st=qe.representation)?void 0:st.split(" "))||"",{marker:function(e){return(0,T.jsx)("span",{className:M["generic-input__suggestions__suggestion__mark"],children:e})},normalizer:function(e){return(""+e).toLowerCase()},skipTagDelimitedParts:null}).map((function(e,t){return(0,T.jsx)("span",{children:e},t)}))},rt)),Je.push(ot),et.push(Fe[rt])}rt+=1}}var lt=(Boolean(Ne)||Boolean(qe.labels))&&!tt,ut={};return"number"===qe.type?(ut.step=qe.step,qe.maximum!==1/0&&(ut.max=qe.maximum),qe.minimum!==-1/0&&(ut.min=qe.minimum)):"string"===qe.type?(qe.maximumLength>=0&&qe.maximumLength!==1/0&&(ut.maxLength=qe.maximumLength),qe.minimumLength>0&&(ut.minLength=qe.minimumLength),"plain"!==qe.editor&&(ut.rows=qe.rows)):["date","datetime-local","time","time-local"].includes(qe.type)&&(ut.step=qe.step,qe.maximum!==1/0&&(ut.max=(0,E.formatValue)(qe,qe.maximum,Re)),qe.minimum!==-1/0&&(ut.min=(0,E.formatValue)(qe,qe.minimum,Re))),(0,T.jsx)(x.default,{strict:V.strict,themeConfiguration:qe.themeConfiguration,tooltip:qe.tooltip,children:(0,T.jsxs)("div",i()({className:[M["generic-input"]].concat(Qe?M["generic-input--custom"]:[],null!==(S=qe.className)&&void 0!==S?S:[]).join(" "),onBlur:function(e){return He((function(t){var n;if(e.relatedTarget&&null!=(n=fe.current)&&n.contains(e.relatedTarget))return t;Se(!1);var r=!1,i=!1;if(t.modelState.focused&&(qe.focused=!1,r=!0,i=!0),t.modelState.visited||(qe.visited=!0,r=!0,i=!0),!tt||qe.suggestSelection){var o=(0,E.getValueFromSelection)(qe.representation,Ne);null===o?(qe.value=(0,E.parseValue)(qe,qe.value,Re),qe.representation=(0,E.formatValue)(qe,qe.value,Re)):qe.value=o}return c().equals(t.value,qe.value)&&t.representation===qe.representation||(r=!0),r&&Y(e),c().equals(t.value,qe.value)||(0,E.triggerCallbackIfExists)(qe,"changeValue",Ve,qe.value,e,qe),i&&(0,E.triggerCallbackIfExists)(qe,"changeState",Ve,qe.model.state,e,qe),(0,E.triggerCallbackIfExists)(qe,"blur",Ve,e,qe),r?{modelState:qe.model.state,representation:qe.representation,value:qe.value}:t}))},onKeyDown:function(e){var t;!qe.disabled&&tt&&c().keyCode.DOWN===e.keyCode&&e.target===ae.current&&(null==(t=ce.current)||t.focusItemAtIndex(0)),(lt||"string"===qe.type&&"plain"!==qe.editor)&&B(e),(0,E.triggerCallbackIfExists)(qe,"keyDown",Ve,e,qe)},ref:fe,style:qe.styles},tt?{role:"search"}:{},{children:[D((0,T.jsx)(v.Select,i()({},Ge,Xe,{enhanced:!qe.disabled,foundationRef:oe,inputRef:ae,onChange:Q,onKeyDown:function(e){qe.disabled||e.keyCode===c().keyCode.TAB||e.preventDefault()},options:Ne,rootProps:i()({name:qe.name,onClick:Z},qe.rootProps),value:""+qe.value},qe.inputProperties)),lt),D([(0,T.jsx)(h.FormField,{className:["mdc-text-field"].concat(qe.disabled?"mdc-text-field--disabled":[],"mdc-text-field--textarea").join(" "),onKeyDown:B,children:(0,T.jsxs)("label",{children:[(0,T.jsx)("span",{className:[M["generic-input__editor__label"]].concat("mdc-floating-label","mdc-floating-label--float-above").join(" "),children:(0,T.jsx)(y.Theme,{use:qe.invalid&&qe.showValidationState&&(qe.showInitialValidationState||qe.visited)?"error":void 0,children:(qe.description||qe.name)+(qe.required?"*":"")})}),qe.editor.startsWith("code")?(0,T.jsx)(d.Suspense,{fallback:(0,T.jsx)(f.CircularProgress,{size:"large"}),children:(0,T.jsx)($,i()({},Ge,{className:"mdc-text-field__input",mode:qe.editor.startsWith("code(")&&qe.editor.endsWith(")")?qe.editor.substring("code(".length,qe.editor.length-1):"javascript",name:qe.name,onChange:Q,onCursorChange:te,onSelectionChange:te,ref:function(e){var t,n,r;re.current=e,null!=(t=re.current)&&null!=(n=t.editor)&&null!=(r=n.container)&&r.querySelector("textarea")&&(ie.current=re.current.editor.container.querySelector("textarea")),re.current&&qe.editorIsActive&&be.selectionIsUnstable&&(re.current.editor.textInput.focus(),K(re.current),ye(i()({},be,{selectionIsUnstable:!1})))},setOptions:{maxLines:qe.rows,minLines:qe.rows,readOnly:qe.disabled,tabSize:4,useWorker:!1},theme:"github",value:qe.representation},qe.inputProperties))}):(0,T.jsx)(_.Editor,i()({},Ge,{disabled:qe.disabled,init:Ye,onClick:Z,onEditorChange:Q,onKeyUp:ee,ref:function(e){ue.current=e},textareaName:qe.name,tinymceScriptSrc:j.base_url+"tinymce.min.js",value:qe.representation},qe.inputProperties))]})},"advanced-editor-form-field"),(0,T.jsx)("div",{className:"mdc-text-field-helper-line",children:(0,T.jsx)("p",{className:"mdc-text-field-helper-text mdc-text-field-helper-text--persistent",id:k+"-error-message",children:Xe.helpText.children})},"advanced-editor-helper-line")],Qe,N||qe.editor.startsWith("code")),D((0,T.jsxs)("div",{children:[tt?(0,T.jsx)(g.MenuSurfaceAnchor,{onKeyDown:B,children:Pe instanceof AbortController?(0,T.jsx)(g.MenuSurface,{anchorCorner:"bottomLeft",className:M["generic-input__suggestions"]+" "+M["generic-input__suggestions--pending"],open:!0,children:(0,T.jsx)(f.CircularProgress,{size:"large"})}):(0,T.jsx)(g.Menu,{anchorCorner:"bottomLeft",apiRef:function(e){ce.current=e},className:M["generic-input__suggestions"],focusOnOpen:!1,foundationRef:de,onFocus:J,onSelect:function(e){Q(et[e.detail.index],void 0,e.detail.index),Se(!1)},open:Boolean(Je.length)&&Ee&&!(1===Je.length&&Je[0]===qe.representation),children:Ze})}):"",(0,T.jsx)(b.TextField,i()({},Ge,Xe,ut,{align:qe.align,characterCount:"number"==typeof qe.maximumLength&&!isNaN(qe.maximumLength)&&qe.maximumLength>=0,foundationRef:oe,inputRef:ae,onChange:Q,ripple:qe.ripple,rootProps:i()({name:qe.name,onClick:Z,onKeyUp:ee,tabIndex:qe.disabled?"0":"-1"},qe.rootProps),textarea:"string"===qe.type&&"plain"!==qe.editor,trailingIcon:H(O(qe.trailingIcon)),type:P(qe),value:qe.representation},qe.inputProperties))]}),!(Qe||lt),N||qe.editor.startsWith("code"))]}))})};H.displayName="GenericInput";var V=(0,d.memo)((0,d.forwardRef)(H));V.wrapped=H,V.webComponentAdapterWrapped="react",V.defaultModelState=S.Bg,V.defaultProperties=i()({},S.Ko,{cursor:void 0,model:i()({},S.Ko.model,{state:void 0,value:void 0}),representation:void 0,value:void 0}),V.locales=c().locales,V.propTypes=S.rV,V.renderProperties=S.au,V.strict=!1,V.transformer={boolean:{parse:function(e){var t;return"boolean"==typeof e?e:null===(t=new Map([["false",!1],["true",!0],[0,!1],[1,!0]]).get(e))||void 0===t||t},type:"text"},currency:{format:{final:{options:{currency:"USD"},transform:function(e,t,n){var r,o,a,s,l,u=null!==(r=null==(o=n.currency.format)||null==(a=o.final.options)?void 0:a.currency)&&void 0!==r?r:"USD";return e===1/0?"Infinity "+u:e===-1/0?"- Infinity "+u:isNaN(e)?"unknown":new Intl.NumberFormat(V.locales,i()({style:"currency"},null!==(s=null==(l=n.currency.format)?void 0:l.final.options)&&void 0!==s?s:{})).format(e)}}},parse:function(e,t,n){return n.float.parse?n.float.parse(e,t,n):NaN},type:"text"},date:{format:{final:{transform:function(e,t,n){if("number"!=typeof e)if(n.date.parse)e=n.date.parse(e,t,n);else{var r=e instanceof Date?e.getTime()/1e3:Date.parse(e);if(isNaN(r)){var i=parseFloat(e);e=isNaN(i)?0:i}else e=r/1e3}if(e===1/0)return"Infinitely far in the future";if(e===-1/0)return"Infinitely early in the past";if(!isFinite(e))return"";var o=new Date(Math.round(1e3*e)).toISOString();return o.substring(0,o.indexOf("T"))}}},parse:function(e){if("number"==typeof e)return e;if(e instanceof Date)return e.getTime()/1e3;var t=Date.parse(e);if(isNaN(t)){var n=parseFloat(e);return isNaN(n)?0:n}return t/1e3}},"datetime-local":{format:{final:{transform:function(e,t,n){if("number"!=typeof e)if(n["datetime-local"].parse)e=n["datetime-local"].parse(e,t,n);else{var r=e instanceof Date?e.getTime()/1e3:Date.parse(e);if(isNaN(r)){var i=parseFloat(e);e=isNaN(i)?0:i}else e=r/1e3}if(e===1/0)return"Infinitely far in the future";if(e===-1/0)return"Infinitely early in the past";if(!isFinite(e))return"";var o=new Date(Math.round(1e3*e)).toISOString();return o.substring(0,o.length-1)}}},parse:function(e,t,n){if(n.date.parse)return n.date.parse(e,t,n);if(e instanceof Date)return e.getTime()/1e3;var r=Date.parse(e);if(isNaN(r)){var i=parseFloat(e);return isNaN(i)?0:i}return r/1e3}},time:{format:{final:{transform:function(e,t,n){if("number"!=typeof e)if(n.time.parse)e=n.time.parse(e,t,n);else{var r=e instanceof Date?e.getTime()/1e3:Date.parse(e);if(isNaN(r)){var i=parseFloat(e);e=isNaN(i)?0:i}else e=r/1e3}if(e===1/0)return"Infinitely far in the future";if(e===-1/0)return"Infinitely early in the past";if(!isFinite(e))return"";var o=new Date(Math.round(1e3*e)).toISOString();return o=o.substring(o.indexOf("T")+1,o.length-1),t.step&&t.step>=60&&t.step%60==0?o.substring(0,o.lastIndexOf(":")):o}}},parse:function(e){if("number"==typeof e)return e;if(e instanceof Date)return e.getTime()/1e3;var t=Date.parse(e);if(isNaN(t)){var n=parseFloat(e.replace(/^([0-9]{2}):([0-9]{2})(:([0-9]{2}(\.[0-9]+)?))?$/,(function(e,t,n,r,i,o){return String(parseInt(t)*Math.pow(60,2)+60*parseInt(n)+(r?parseFloat(i):0))})));return isNaN(n)?0:n}return t/1e3}},"time-local":{format:{final:{transform:function(e,t,n){if("number"!=typeof e)if(n["time-local"].parse)e=n["time-local"].parse(e,t,n);else{var r=e instanceof Date?e.getTime()/1e3:Date.parse(e);if(isNaN(r)){var i=parseFloat(e);e=isNaN(i)?0:i}else e=r/1e3}if(e===1/0)return"Infinitely far in the future";if(e===-1/0)return"Infinitely early in the past";if(!isFinite(e))return"";var o=new Date(Math.round(1e3*e)),a=o.getHours(),s=o.getMinutes(),l=(a<10?"0":"")+String(a)+":"+(s<10?"0":"")+String(s);if(!(t.step&&t.step>=60&&t.step%60==0)){var u=o.getSeconds();return l+":"+(u<10?"0":"")+String(u)}return l}}},parse:function(e){if("number"==typeof e)return e;if(e instanceof Date)return e.getTime()/1e3;var t=Date.parse(e);if(isNaN(t)){var n=parseFloat(e.replace(/^([0-9]{2}):([0-9]{2})(:([0-9]{2}(\.[0-9]+)?))?$/,(function(e,t,n,r,i,o){var a=new Date(0);return a.setHours(parseInt(t)),a.setMinutes(parseInt(n)),r&&a.setSeconds(parseInt(i)),String(a.getTime()/1e3)})));return isNaN(n)?0:n}return t/1e3},type:"time"},float:{format:{final:{transform:function(e,t,n){return n.float.format?e===1/0?"Infinity":e===-1/0?"- Infinity":new Intl.NumberFormat(V.locales,n.float.format.final.options||{}).format(e):""+e}}},parse:function(e,t){return"string"==typeof e&&(e=parseFloat("de-DE"===V.locales[0]?e.replace(/\./g,"").replace(/,/g,"."):e)),"number"==typeof e&&("number"==typeof t.minimum&&t.minimum>=0&&e<0||"number"==typeof t.maximum&&t.maximum<=0&&e>0)&&(e*=-1),e},type:"text"},integer:{format:{final:{transform:function(e,t,n){var r,o;return new Intl.NumberFormat(V.locales,i()({maximumFractionDigits:0},null!==(r=null==(o=n.integer.format)?void 0:o.final.options)&&void 0!==r?r:{})).format(e)}}},parse:function(e,t){return"string"==typeof e&&(e=parseInt("de-DE"===V.locales[0]?e.replace(/[,.]/g,""):e)),"number"==typeof e&&("number"==typeof t.minimum&&t.minimum>=0&&e<0||"number"==typeof t.maximum&&t.maximum<=0&&e>0)&&(e*=-1),e},type:"text"},number:{parse:function(e){return"number"==typeof e?e:parseInt(e)}}};var U=V},function(t){t.exports=e},function(e){e.exports=r},function(e){e.exports=i},function(e){e.exports=a},function(e){e.exports=l},function(e){e.exports=x},function(e){e.exports=o},function(e){e.exports=u},function(e){e.exports=s},function(e){e.exports=c},function(e){e.exports=f},function(e){e.exports=v},function(e){e.exports=h},function(e,t,n){n.d(t,{Bg:function(){return y},Jn:function(){return S},Ko:function(){return w},MA:function(){return T},W7:function(){return k},au:function(){return b},rV:function(){return v},y1:function(){return p}});var r=n(1),i=n.n(r),o=n(3),a=n.n(o),s=n(5),l={declaration:s.string,default:s.any,description:s.string,name:s.string,selection:(0,s.oneOfType)([(0,s.arrayOf)((0,s.oneOfType)([(0,s.arrayOf)((0,s.oneOfType)([s.number,s.string])),s.number,(0,s.objectOf)((0,s.oneOfType)([s.number,s.string])),s.string])),(0,s.objectOf)((0,s.oneOfType)([s.number,s.string]))]),type:s.string,value:s.any},u={dirty:(0,s.oneOfType)([s.boolean,s.symbol]),pristine:(0,s.oneOfType)([s.boolean,s.symbol]),touched:(0,s.oneOfType)([s.boolean,s.symbol]),untouched:(0,s.oneOfType)([s.boolean,s.symbol]),focused:(0,s.oneOfType)([s.boolean,s.symbol]),visited:(0,s.oneOfType)([s.boolean,s.symbol]),invalid:(0,s.oneOfType)([s.boolean,s.symbol]),invalidRequired:(0,s.oneOfType)([s.boolean,s.symbol]),valid:(0,s.oneOfType)([s.boolean,s.symbol])},c=i()({},l,{emptyEqualsNull:s.boolean,trim:s.boolean,invertedRegularExpressionPattern:(0,s.oneOfType)([(0,s.arrayOf)((0,s.oneOfType)([s.object,s.string])),s.object,s.string]),regularExpressionPattern:(0,s.oneOfType)([(0,s.arrayOf)((0,s.oneOfType)([s.object,s.string])),s.object,s.string]),maximum:(0,s.oneOfType)([s.number,s.string]),minimum:(0,s.oneOfType)([s.number,s.string]),maximumLength:s.number,minimumLength:s.number,mutable:s.boolean,writable:s.boolean,state:(0,s.shape)(u)}),d=i()({},l,u,{className:s.string,disabled:s.boolean,enforceUncontrolled:s.boolean,initialValue:s.any,inputProperties:s.object,model:(0,s.shape)(c),onChange:s.func,onChangeValue:s.func,onChangeShowDeclaration:s.func,onChangeState:s.func,onClick:s.func,onFocus:s.func,onTouch:s.func,required:s.boolean,requiredText:s.string,ripple:(0,s.oneOfType)([s.boolean,s.object]),rootProps:s.object,showDeclaration:(0,s.oneOfType)([s.boolean,s.symbol]),showInitialValidationState:s.boolean,showValidationState:s.boolean,styles:s.object,themeConfiguration:s.object,tooltip:s.any}),f={dirty:!1,focused:!1,invalid:!1,invalidRequired:!1,pristine:!0,touched:!1,untouched:!0,valid:!0,visited:!1},h={declaration:"",default:null,description:"",emptyEqualsNull:!0,invertedRegularExpressionPattern:null,maximum:1/0,maximumLength:-1,minimum:-1/0,minimumLength:0,mutable:!0,name:"NO_NAME_DEFINED",nullable:!0,regularExpressionPattern:null,state:i()({},f),trim:!0,type:"string",writable:!0},p={enforceUncontrolled:!1,model:i()({},h),showDeclaration:void 0,showInitialValidationState:!1,showValidationState:!0,requiredText:"Please fill this field."},m=(i()({},d,u,{checked:s.boolean,id:s.string}),i()({},h,{default:!1,type:"boolean",value:!1})),g=(i()({},p,{default:!1,model:i()({},m),requiredText:"Please check this field."}),i()({},u,{invalidMaximum:(0,s.oneOfType)([s.boolean,s.symbol]),invalidMinimum:(0,s.oneOfType)([s.boolean,s.symbol]),invalidMaximumLength:(0,s.oneOfType)([s.boolean,s.symbol]),invalidMinimumLength:(0,s.oneOfType)([s.boolean,s.symbol]),invalidInvertedPattern:(0,s.oneOfType)([s.boolean,s.symbol]),invalidPattern:(0,s.oneOfType)([s.boolean,s.symbol])})),v=i()({},d,g,{align:s.string,children:s.func,cursor:(0,s.oneOfType)([(0,s.shape)({end:s.number.isRequired,start:s.number.isRequired}),s.symbol]),editor:s.string,editorIsActive:(0,s.oneOfType)([s.boolean,s.symbol]),hidden:(0,s.oneOfType)([s.boolean,s.symbol]),icon:(0,s.oneOfType)([s.string,s.object]),inputProps:s.object,invertedPattern:(0,s.oneOfType)([(0,s.arrayOf)((0,s.oneOfType)([s.object,s.string])),s.object,s.string]),invertedPatternText:s.string,labels:(0,s.oneOfType)([(0,s.arrayOf)((0,s.arrayOf)(s.string)),(0,s.arrayOf)(s.string),s.object]),maximum:(0,s.oneOfType)([s.number,s.string]),maximumLengthText:s.string,maximumText:s.string,minimum:(0,s.oneOfType)([s.number,s.string]),minimumLengthText:s.string,minimumText:s.string,onBlur:s.func,onChangeEditorIsActive:s.func,onKeyDown:s.func,onKeyUp:s.func,onSelect:s.func,onSelectionChange:s.func,outlined:s.boolean,pattern:(0,s.oneOfType)([(0,s.arrayOf)((0,s.oneOfType)([s.object,s.string])),s.object,s.string]),patternText:s.string,placeholder:s.string,representation:(0,s.oneOfType)([s.string,s.symbol]),rows:s.number,searchSelection:s.boolean,selectableEditor:s.boolean,step:s.number,suggestionCreator:s.func,suggestSelection:s.boolean,trailingIcon:s.any,transformer:s.object}),b=["children","suggestionCreator"],y=i()({},f,{invalidMaximum:!1,invalidMinimum:!1,invalidMaximumLength:!1,invalidMinimumLength:!1,invalidInvertedPattern:!1,invalidPattern:!1}),_=i()({},h,{state:y}),w=i()({},p,{cursor:{end:0,start:0},editor:"plain",invertedPatternText:'Your string should not match the regular expression${[].concat(invertedPattern).length > 1 ? "s" : ""}: "${[].concat(invertedPattern).join("\\", \\"")}".',maximumLengthText:"Please type less or equal than ${maximumLength} symbols.",maximumText:"Please type less or equal than ${formatValue(maximum)}.",minimumLengthText:"Please type at least or equal ${minimumLength} symbols.",minimumText:"Please type at least or equal ${formatValue(minimum)}.",model:i()({},_),patternText:'Your string have to match the regular expression${[].concat(pattern).length > 1 ? "s" : ""}: "${[].concat(pattern).join("\\", \\"")}".',rows:4,searchSelection:!1,selectableEditor:!1,step:1,suggestSelection:!1}),x=i()({},u,{invalidContentTypePattern:(0,s.oneOfType)([s.boolean,s.symbol]),invalidMaximumSize:(0,s.oneOfType)([s.boolean,s.symbol]),invalidMinimumSize:(0,s.oneOfType)([s.boolean,s.symbol]),invalidName:(0,s.oneOfType)([s.boolean,s.symbol])}),C=(i()({},d,x,{children:s.func,contentTypePatternText:(0,s.oneOfType)([(0,s.arrayOf)((0,s.oneOfType)([s.object,s.string])),s.object,s.string]),invertedContentTypePatternText:(0,s.oneOfType)([(0,s.arrayOf)((0,s.oneOfType)([s.object,s.string])),s.object,s.string]),deleteButton:(0,s.oneOfType)([s.object,s.string]),downloadButton:(0,s.oneOfType)([s.object,s.string]),editButton:(0,s.oneOfType)([s.object,s.string]),newButton:(0,s.oneOfType)([s.object,s.string]),encoding:s.string,generateFileNameInputProperties:s.func,maximumSizeText:s.string,minimumSizeText:s.string,onBlur:s.func,outlined:s.boolean}),i()({},f,{invalidContentTypePattern:!1,invalidMaximumSize:!1,invalidMinimumSize:!1,invalidName:!1})),E=i()({},h,{contentTypeRegularExpressionPattern:/^.+\/.+$/,invertedContentTypeRegularExpressionPattern:null,fileName:i()({},_,{maximumLength:1024,name:"Name",regularExpressionPattern:/^[^/]+$/}),maximumSize:1/0,minimumSize:0,state:C});delete i()({},w,{emptyEqualsNull:!1,invertedPatternText:'Your file\'s name should not match the regular expression${[].concat(invertedPattern).length > 1 ? "s" : ""}: ""${[].concat(invertedPattern).join("\\", \\"")}".',patternText:'Your file\'s name has to match the regular expression${[].concat(pattern).length > 1 ? "s" : ""}: ""${[].concat(pattern).join("\\", \\"")}".',required:!0}).model,i()({},p,{contentTypePatternText:'Your file\'s mime-type has to match the regular expression${[].concat(contentTypePattern).length > 1 ? "s" : ""}: ""${[].concat(contentTypePattern).join("\\", \\"")}".',invertedContentTypePatternText:'Your file\'s mime-type should not match the regular expression${[].concat(invertedContentTypePattern).length > 1 ? "s" : ""}: ""${[].concat(invertedContentTypePattern).join("\\", \\"")}".',deleteButton:"delete",downloadButton:"download",editButton:"edit",newButton:"new",encoding:"utf-8",generateFileNameInputProperties:a().identity,maximumSizeText:"Please provide a file with less or equal size than ${maximumSize} byte.",minimumSizeText:"Please provide a file with more or equal size than ${maximumSize} byte.",media:{sixteenByNine:!0},model:i()({},E),sourceToBlobOptions:{endings:"transparent",type:"text/plain"}});var S=i()({},d,g,{children:s.func,createItem:s.func,createPrototype:s.func,maximumNumber:s.number,minimumNumber:s.number}),T=["children","createItem","createPrototype"],A=i()({},h,{state:i()({},h.state,{invalidMaximumNumber:!1,invalidMinimumNumber:!1}),maximumNumber:1/0,minimumNumber:0,type:"string[]"}),k=i()({},p,{addIcon:{icon:"add"},removeIcon:{icon:"clear"},createItem:function(e){return e.item},createPrototype:function(e){return e.item},model:i()({},A)});i()({},v,{value:(0,s.shape)({end:(0,s.oneOfType)([s.number,(0,s.shape)(v)]),start:(0,s.oneOfType)([s.number,(0,s.shape)(v)])})}),i()({},f),i()({},_,{description:"End",name:"end"}),i()({},_,{description:"Start",name:"start"})}],S={};function T(e){var t=S[e];if(void 0!==t)return t.exports;var n=S[e]={exports:{}};return E[e](n,n.exports,T),n.exports}T.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return T.d(t,{a:t}),t},C=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},T.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var n=Object.create(null);T.r(n);var r={};w=w||[null,C({}),C([]),C(C)];for(var i=2&t&&e;"object"==typeof i&&!~w.indexOf(i);i=C(i))Object.getOwnPropertyNames(i).forEach((function(t){r[t]=function(){return e[t]}}));return r.default=function(){return e},T.d(n,r),n},T.d=function(e,t){for(var n in t)T.o(t,n)&&!T.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},T.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},T.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var A={};return function(){T.r(A),T.d(A,{Inputs:function(){return m},InputsInner:function(){return p},default:function(){return g}});var e=T(1),t=T.n(e),n=T(3),r=T.n(n),i=T(2),o=T(20),a=T(15),s=T(7),l=T(8),u=T(29),c=T(0),d={inputs:"inputs",inputs__add:"inputs__add",inputs__add__button:"inputs__add__button",inputs__item__remove:"inputs__item__remove",inputs__item:"inputs__item",inputs__item__input:"inputs__item__input","inputs__item--disabled":"inputs__item--disabled"},f=function(e){return t()({},u.y1,{className:d.inputs__item__input},e.default&&e.default.length>0?e.default[e.default.length-1]:{})},h=function(e){return Array.isArray(e)?e.map((function(e){var t=e.model,n=e.value;return void 0===typeof n?null==t?void 0:t.value:n})):e},p=function(e,n){var u,p,g,v,b,y,_=(0,l.translateKnownSymbols)(e);if(Array.isArray(_.value))for(var w=0;w<_.value.length;w+=1)null!==_.value[w]&&"object"==typeof _.value[w]||(_.value[w]={value:_.value[w]});var x=r().extend(!0,r().copy(m.defaultProperties),_),C=(0,i.useState)("stabilized"),E=C[0],S=C[1];(0,i.useEffect)((function(){"added"===E?S("rendered"):"rendered"===E&&(S("stabilized"),R(h(L.value)))}));var T=(0,i.useState)(h((0,l.determineInitialValue)(_,r().copy(null==(u=m.defaultProperties.model)?void 0:u.default))||null)),A=T[0],k=T[1],O=!x.enforceUncontrolled&&(Array.isArray(null==(p=_.model)?void 0:p.value)||null===(null==(g=_.model)?void 0:g.value))&&(Array.isArray(_.value)||null===_.value)&&Boolean(x.onChange||x.onChangeValue);void 0!==x.model.value&&void 0===x.value&&(x.value=x.model.value),void 0===x.value&&(x.value=[]);var I=[],L=(0,l.getConsolidatedProperties)((0,l.mapPropertiesIntoModel)(x,m.defaultProperties.model)),R=function(e,n,r,i){e&&(L.value=e.map((function(e,t){var n,r;return(null==(n=I[t])||null==(r=n.current)?void 0:r.properties)||L.value[t]}))),L.value||(L.value=[]),r?"number"==typeof i?L.value[i]=r:L.value.push(r):void 0===r&&"number"==typeof i&&L.value.splice(i,1),!L.emptyEqualsNull||L.value&&0!==L.value.length||(L.value=null),(0,l.triggerCallbackIfExists)(L,"change",O,function(e){var n=function(e){var t=e.value||[],n=function(e,t){return void 0===t&&(t=!1),function(n){var r;return null!==(r=n[e])&&void 0!==r?r:t}},r=e.maximumNumber>=t.length,i=e.minimumNumber<=t.length,o=r&&i;return{dirty:t.some(n("dirty")),focused:t.some(n("focused")),invalid:!o||t.some(n("invalid",!0)),invalidMaximumNumber:!r,invalidMinimumNumber:!i,invalidRequired:t.some(n("invalidRequired")),pristine:t.every(n("pristine",!0)),touched:t.some(n("touched")),untouched:t.every(n("untouched",!0)),valid:o&&t.every(n("valid")),visited:t.some(n("visited"))}}(e);return t()({},e,n,{model:t()({},e.model||{},{state:n,value:e.value})})}(L),n,L)},M=function(e,t,n,r){return null===e&&(e=[]),"number"==typeof r?void 0===n?e.splice(r,1):e[r]=n:e.push(n),e=[].concat(e),L.emptyEqualsNull&&0===e.length&&(e=null),(0,l.triggerCallbackIfExists)(L,"changeValue",O,e,t,L),e},P=function(e){var n,o=(0,i.createRef)();I.push(o),L.value||(L.value=[]),e>=L.value.length&&L.value.push({}),L.value[e]=r().extend(!0,t()({},L.createItem({index:e,item:r().copy(f(L)),properties:L,values:A}),L.value[e],{onChange:function(t,n){return R(h(L.value),n,t,e)},onChangeValue:function(t,n){return k((function(r){return M(r,n,t,e)}))},ref:o}),null!=(n=L.model)&&n.value&&L.model.value.length>e&&L.model.value[e].model?{model:L.model.value[e].model}:{},L.value&&L.value.length>e?{value:L.value[e].value}:{},!O&&A&&A.length>e?{value:A[e]}:{})};for(w=0;w<Math.max((null==($=L.model)||null==(N=$.value)?void 0:N.length)||0,(null==(D=L.value)?void 0:D.length)||0,!O&&(null==(j=A)?void 0:j.length)||0);w+=1){var $,N,D,j;P(w)}!L.emptyEqualsNull||L.value&&0!==L.value.length?A=h(L.value):L.value=A=null,O&&(k=(0,l.createDummyStateSetter)(A)),L.invalidMaximumNumber=L.model.state.invalidMaximumNumber=L.maximumNumber<((null==(v=L.value)?void 0:v.length)||0),L.invalidMinimumNumber=L.model.state.invalidMinimumNumber=L.minimumNumber>((null==(b=L.value)?void 0:b.length)||0),(0,i.useImperativeHandle)(n,(function(){return{properties:L,references:I,state:O?{}:{value:h(L.value)}}}));var F=function(e){return function(t){return k((function(n){return n=M(n,t,void 0,e),R(n,t,void 0,e),n}))}},B=(0,c.jsx)(o.IconButton,{className:d.inputs__add__button,icon:L.addIcon,onClick:function(e){return k((function(t){var n,r,i,o=L.createPrototype({index:(null==t?void 0:t.length)||0,item:f(L),lastValue:null!=t&&t.length?t[t.length-1]:null,properties:L,values:t});R(t,e,o);var a=M(t,e,null!==(n=null!==(r=o.value)&&void 0!==r?r:null==(i=o.model)?void 0:i.value)&&void 0!==n?n:null);return S("added"),a}))}}),W=function(e,n){return r().isFunction(L.children)?L.children({index:n,inputsProperties:L,properties:e}):(0,c.jsx)(a.default,t()({},e,{name:L.name+"-"+(n+1)}))};return(0,c.jsx)(s.default,{strict:m.strict,themeConfiguration:L.themeConfiguration,children:(0,c.jsxs)("div",{className:[d.inputs].concat(null!==(y=L.className)&&void 0!==y?y:[]).join(" "),"data-name":L.name,style:L.styles,children:[L.value?L.value.map((function(e,t){return(0,c.jsxs)("div",{className:d.inputs__item,children:[W(e,t),L.disabled?"":(0,c.jsx)(o.IconButton,{className:d.inputs__item__remove,icon:L.removeIcon,onClick:F(t)})]},t)})):(0,c.jsxs)("div",{className:[d.inputs__item,d["inputs__item--disabled"]].join(" "),children:[W(L.createPrototype({index:0,item:t()({},f(L),{disabled:!0}),lastValue:null,properties:L,values:A}),0),0<L.maximumNumber?B:null]}),L.disabled||L.invalidMaximumNumber||!L.value||L.maximumNumber<=L.value.length||L.value.some((function(e){var t=e.model,n=e.value;return[null,void 0].includes(n)&&[null,void 0].includes(null==t?void 0:t.value)}))?"":(0,c.jsx)("div",{className:d.inputs__add,children:B})]})})};p.displayName="Inputs";var m=(0,i.memo)((0,i.forwardRef)(p));m.wrapped=p,m.webComponentAdapterWrapped="react",m.defaultProperties=u.W7,m.propTypes=u.Jn,m.renderProperties=u.MA,m.strict=!1;var g=m}(),A}())},function(module,__unused_webpack_exports,__nested_webpack_require_234255__){var __dirname="/",e,t,n,r,o,i,a,l,u,s;if(module=__nested_webpack_require_234255__.nmd(module),null!==module&&"undefined"!==eval("typeof require")&&null!==eval("require")&&"main"in eval("require")&&"undefined"!==eval("typeof require.main")&&null!==eval("require.main")){var ORIGINAL_MAIN_MODULE=module;module!==eval("require.main")&&"paths"in module&&"paths"in eval("require.main")&&null!=__dirname&&(module.paths=eval("require.main.paths").concat(module.paths.filter((function(path){return eval("require.main.paths").includes(path)}))))}if(null==window)var window=void 0===__nested_webpack_require_234255__.g||null===__nested_webpack_require_234255__.g?{}:__nested_webpack_require_234255__.g;module.exports=(e=__nested_webpack_require_234255__(2),t=__nested_webpack_require_234255__(8),n=__nested_webpack_require_234255__(49),r=__nested_webpack_require_234255__(9),o=__nested_webpack_require_234255__(10),i=__nested_webpack_require_234255__(11),a=__nested_webpack_require_234255__(4),l=__nested_webpack_require_234255__(0),u=__nested_webpack_require_234255__(3),s=__nested_webpack_require_234255__(7),function(){var c=[function(e){e.exports=s},function(t){t.exports=e},function(e){e.exports=u},function(e){e.exports=a},function(e){e.exports=r},function(e){e.exports=l},function(e,t,n){n.d(t,{WrapTooltip:function(){return l}});var r=n(1),i=n.n(r),o=n(9),a=n(11),s=n(0),l=function(e){var t=e.children,n=e.options;return"string"==typeof n?(0,s.jsx)(a.Tooltip,{content:(0,s.jsx)(o.Typography,{use:"caption",children:n}),children:(0,s.jsx)("div",{className:"generic-tooltip",children:t})}):null!==n&&"object"==typeof n?("string"==typeof n.content&&(n=i()({},n,{content:(0,s.jsx)(o.Typography,{use:"caption",children:n.content})})),(0,s.jsx)(a.Tooltip,i()({},n,{children:(0,s.jsx)("div",{className:"generic-tooltip",children:t})}))):(0,s.jsx)(s.Fragment,{children:t})}},function(e,t,n){n.d(t,{WrapConfigurations:function(){return s}}),n(1),n(13),n(2),n(4);var r=n(12),i=n(10),o=n(6),a=n(0),s=function(e){var t=e.children,n=e.strict,s=e.themeConfiguration,l=e.tooltip,u=e.wrap;return(0,a.jsx)(r.x,{strict:Boolean(n),children:(0,a.jsx)(o.WrapTooltip,{options:l,children:(0,a.jsx)(i.WrapThemeProvider,{configuration:s,wrap:u,children:t})})})}},function(e,t,n){n.d(t,{deriveMissingPropertiesFromState:function(){return u},determineInitialValue:function(){return h},determineValidationState:function(){return p},getConsolidatedProperties:function(){return g},mapPropertiesIntoModel:function(){return m},translateKnownSymbols:function(){return f},triggerCallbackIfExists:function(){return d},wrapStateSetter:function(){return c}});var r=n(1),i=n.n(r),o=n(3),a=n.n(o),s=n(5);function l(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}n(2);var u=function(e,t){void 0!==e.model.value&&void 0===e.value&&(e.value=e.model.value),void 0===e.value&&(e.value=t.value),e.model.state?e.model.state=i()({},e.model.state):e.model.state={};for(var n=0,r=Object.entries(t.modelState);n<r.length;n++){var o=r[n],a=o[0],s=o[1];void 0===e.model.state[a]&&(e.model.state[a]=s)}return e},c=function(e,t){return function(n){var r="function"==typeof n?n(t):n;a().equals(null==r?void 0:r.modelState,null==t?void 0:t.modelState)||e(r)}},d=function(e,t,n){void 0===n&&(n=!0);for(var r=arguments.length,i=new Array(r>3?r-3:0),o=3;o<r;o++)i[o-3]=arguments[o];t="on"+a().stringCapitalize(t),e[t]&&(n?e[t].apply(e,i):a().timeout((function(){return e[t].apply(e,i)})))},f=function(e){for(var t={},n=0,r=Object.entries(e);n<r.length;n++){var i=r[n],o=i[0],l=i[1];l===s.UndefinedSymbol?t[o]=void 0:l===s.NullSymbol?t[o]=null:t[o]=a().copy(e[o])}return t},h=function(e,t,n){var r,i;return void 0!==n?n:void 0!==e.value?e.value:void 0!==(null==(r=e.model)?void 0:r.value)?e.model.value:void 0!==e.initialValue?a().copy(e.initialValue):void 0!==e.default?a().copy(e.default):void 0!==(null==(i=e.model)?void 0:i.default)?a().copy(e.model.default):void 0!==t?t:null},p=function(e,t,n){void 0===n&&(n={});var r=!1;n=i()({invalidRequired:function(){return!1===e.model.nullable&&"boolean"!==e.model.type&&!e.model.value&&0!==e.model.value||"boolean"===e.model.type&&!("boolean"==typeof e.model.value||["false","true"].includes(e.model.value))}},n),e.model.state=e.model.state||{};for(var o=0,a=Object.entries(n);o<a.length;o++){var s=a[o],l=s[0],u=s[1],c=t[l];e.model.state[l]=u(),r=r||c!==t[l]}return r&&(e.model.state.invalid=Object.keys(n).some((function(t){return e.model.state[t]})),e.model.state.valid=!e.model.state.invalid),r},m=function(e,t){var n=a().extend(!0,{model:a().copy(t)},e);n.disabled&&(n.model.mutable=!1,delete n.disabled),n.invertedPattern&&(n.model.invertedRegularExpressionPattern=n.invertedPattern,delete n.invertedPattern),n.pattern&&(n.model.regularExpressionPattern=n.pattern,delete n.pattern),n.required&&(n.model.nullable=!1,delete n.required),"text"===n.type&&(n.type="string");for(var r,i=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return l(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)?l(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(Object.keys(n.model).concat("value"));!(r=i()).done;){var o=r.value;Object.prototype.hasOwnProperty.call(n,o)&&void 0!==n[o]&&(n.model[o]=n[o])}for(var s in n.model.state)Object.prototype.hasOwnProperty.call(n,s)&&void 0!==n[s]&&(n.model.state[s]=n[s]);return void 0===n.model.value&&(n.model.value=a().copy(n.model.default)),n},g=function(e){var t=i()({},e,e.model||{},(e.model||{}).state||{});return t.disabled=!(t.mutable&&t.writable),delete t.mutable,delete t.writable,delete t.state,t.required=!t.nullable,delete t.nullable,t.invertedRegularExpressionPattern&&(t.invertedPattern=t.invertedRegularExpressionPattern),delete t.invertedRegularExpressionPattern,t.regularExpressionPattern&&(t.pattern=t.regularExpressionPattern),delete t.regularExpressionPattern,t}},function(e){e.exports=i},function(e,t,n){n.d(t,{WrapThemeProvider:function(){return o}});var r=n(4),i=n(0),o=function(e){var t=e.children,n=e.configuration,o=e.wrap;return n?(0,i.jsx)(r.ThemeProvider,{options:n,wrap:!1!==o,children:t}):t}},function(e){e.exports=o},function(e,t,n){n.d(t,{x:function(){return o}});var r=n(2),i=n(0),o=function(e){var t=e.children;return e.strict?(0,i.jsx)(r.StrictMode,{children:t}):(0,i.jsx)(i.Fragment,{children:t})}},function(e){e.exports=t},,,,,,,,,,,,,,,,function(e,t,n){n.d(t,{by:function(){return m},cN:function(){return f},uG:function(){return v}});var r=n(1),i=n.n(r),o=n(3),a=n.n(o),s=n(5),l={declaration:s.string,default:s.any,description:s.string,name:s.string,selection:(0,s.oneOfType)([(0,s.arrayOf)((0,s.oneOfType)([(0,s.arrayOf)((0,s.oneOfType)([s.number,s.string])),s.number,(0,s.objectOf)((0,s.oneOfType)([s.number,s.string])),s.string])),(0,s.objectOf)((0,s.oneOfType)([s.number,s.string]))]),type:s.string,value:s.any},u={dirty:(0,s.oneOfType)([s.boolean,s.symbol]),pristine:(0,s.oneOfType)([s.boolean,s.symbol]),touched:(0,s.oneOfType)([s.boolean,s.symbol]),untouched:(0,s.oneOfType)([s.boolean,s.symbol]),focused:(0,s.oneOfType)([s.boolean,s.symbol]),visited:(0,s.oneOfType)([s.boolean,s.symbol]),invalid:(0,s.oneOfType)([s.boolean,s.symbol]),invalidRequired:(0,s.oneOfType)([s.boolean,s.symbol]),valid:(0,s.oneOfType)([s.boolean,s.symbol])},c=i()({},l,{emptyEqualsNull:s.boolean,trim:s.boolean,invertedRegularExpressionPattern:(0,s.oneOfType)([(0,s.arrayOf)((0,s.oneOfType)([s.object,s.string])),s.object,s.string]),regularExpressionPattern:(0,s.oneOfType)([(0,s.arrayOf)((0,s.oneOfType)([s.object,s.string])),s.object,s.string]),maximum:(0,s.oneOfType)([s.number,s.string]),minimum:(0,s.oneOfType)([s.number,s.string]),maximumLength:s.number,minimumLength:s.number,mutable:s.boolean,writable:s.boolean,state:(0,s.shape)(u)}),d=i()({},l,u,{className:s.string,disabled:s.boolean,enforceUncontrolled:s.boolean,initialValue:s.any,inputProperties:s.object,model:(0,s.shape)(c),onChange:s.func,onChangeValue:s.func,onChangeShowDeclaration:s.func,onChangeState:s.func,onClick:s.func,onFocus:s.func,onTouch:s.func,required:s.boolean,requiredText:s.string,ripple:(0,s.oneOfType)([s.boolean,s.object]),rootProps:s.object,showDeclaration:(0,s.oneOfType)([s.boolean,s.symbol]),showInitialValidationState:s.boolean,showValidationState:s.boolean,styles:s.object,themeConfiguration:s.object,tooltip:s.any}),f={dirty:!1,focused:!1,invalid:!1,invalidRequired:!1,pristine:!0,touched:!1,untouched:!0,valid:!0,visited:!1},h={declaration:"",default:null,description:"",emptyEqualsNull:!0,invertedRegularExpressionPattern:null,maximum:1/0,maximumLength:-1,minimum:-1/0,minimumLength:0,mutable:!0,name:"NO_NAME_DEFINED",nullable:!0,regularExpressionPattern:null,state:i()({},f),trim:!0,type:"string",writable:!0},p={enforceUncontrolled:!1,model:i()({},h),showDeclaration:void 0,showInitialValidationState:!1,showValidationState:!0,requiredText:"Please fill this field."},m=i()({},d,u,{checked:s.boolean,id:s.string}),g=i()({},h,{default:!1,type:"boolean",value:!1}),v=i()({},p,{default:!1,model:i()({},g),requiredText:"Please check this field."}),b=i()({},u,{invalidMaximum:(0,s.oneOfType)([s.boolean,s.symbol]),invalidMinimum:(0,s.oneOfType)([s.boolean,s.symbol]),invalidMaximumLength:(0,s.oneOfType)([s.boolean,s.symbol]),invalidMinimumLength:(0,s.oneOfType)([s.boolean,s.symbol]),invalidInvertedPattern:(0,s.oneOfType)([s.boolean,s.symbol]),invalidPattern:(0,s.oneOfType)([s.boolean,s.symbol])}),y=i()({},d,b,{align:s.string,children:s.func,cursor:(0,s.oneOfType)([(0,s.shape)({end:s.number.isRequired,start:s.number.isRequired}),s.symbol]),editor:s.string,editorIsActive:(0,s.oneOfType)([s.boolean,s.symbol]),hidden:(0,s.oneOfType)([s.boolean,s.symbol]),icon:(0,s.oneOfType)([s.string,s.object]),inputProps:s.object,invertedPattern:(0,s.oneOfType)([(0,s.arrayOf)((0,s.oneOfType)([s.object,s.string])),s.object,s.string]),invertedPatternText:s.string,labels:(0,s.oneOfType)([(0,s.arrayOf)((0,s.arrayOf)(s.string)),(0,s.arrayOf)(s.string),s.object]),maximum:(0,s.oneOfType)([s.number,s.string]),maximumLengthText:s.string,maximumText:s.string,minimum:(0,s.oneOfType)([s.number,s.string]),minimumLengthText:s.string,minimumText:s.string,onBlur:s.func,onChangeEditorIsActive:s.func,onKeyDown:s.func,onKeyUp:s.func,onSelect:s.func,onSelectionChange:s.func,outlined:s.boolean,pattern:(0,s.oneOfType)([(0,s.arrayOf)((0,s.oneOfType)([s.object,s.string])),s.object,s.string]),patternText:s.string,placeholder:s.string,representation:(0,s.oneOfType)([s.string,s.symbol]),rows:s.number,searchSelection:s.boolean,selectableEditor:s.boolean,step:s.number,suggestionCreator:s.func,suggestSelection:s.boolean,trailingIcon:s.any,transformer:s.object}),_=i()({},f,{invalidMaximum:!1,invalidMinimum:!1,invalidMaximumLength:!1,invalidMinimumLength:!1,invalidInvertedPattern:!1,invalidPattern:!1}),w=i()({},h,{state:_}),x=i()({},p,{cursor:{end:0,start:0},editor:"plain",invertedPatternText:'Your string should not match the regular expression${[].concat(invertedPattern).length > 1 ? "s" : ""}: "${[].concat(invertedPattern).join("\\", \\"")}".',maximumLengthText:"Please type less or equal than ${maximumLength} symbols.",maximumText:"Please type less or equal than ${formatValue(maximum)}.",minimumLengthText:"Please type at least or equal ${minimumLength} symbols.",minimumText:"Please type at least or equal ${formatValue(minimum)}.",model:i()({},w),patternText:'Your string have to match the regular expression${[].concat(pattern).length > 1 ? "s" : ""}: "${[].concat(pattern).join("\\", \\"")}".',rows:4,searchSelection:!1,selectableEditor:!1,step:1,suggestSelection:!1}),C=i()({},u,{invalidContentTypePattern:(0,s.oneOfType)([s.boolean,s.symbol]),invalidMaximumSize:(0,s.oneOfType)([s.boolean,s.symbol]),invalidMinimumSize:(0,s.oneOfType)([s.boolean,s.symbol]),invalidName:(0,s.oneOfType)([s.boolean,s.symbol])}),E=(i()({},d,C,{children:s.func,contentTypePatternText:(0,s.oneOfType)([(0,s.arrayOf)((0,s.oneOfType)([s.object,s.string])),s.object,s.string]),invertedContentTypePatternText:(0,s.oneOfType)([(0,s.arrayOf)((0,s.oneOfType)([s.object,s.string])),s.object,s.string]),deleteButton:(0,s.oneOfType)([s.object,s.string]),downloadButton:(0,s.oneOfType)([s.object,s.string]),editButton:(0,s.oneOfType)([s.object,s.string]),newButton:(0,s.oneOfType)([s.object,s.string]),encoding:s.string,generateFileNameInputProperties:s.func,maximumSizeText:s.string,minimumSizeText:s.string,onBlur:s.func,outlined:s.boolean}),i()({},f,{invalidContentTypePattern:!1,invalidMaximumSize:!1,invalidMinimumSize:!1,invalidName:!1})),S=i()({},h,{contentTypeRegularExpressionPattern:/^.+\/.+$/,invertedContentTypeRegularExpressionPattern:null,fileName:i()({},w,{maximumLength:1024,name:"Name",regularExpressionPattern:/^[^/]+$/}),maximumSize:1/0,minimumSize:0,state:E});delete i()({},x,{emptyEqualsNull:!1,invertedPatternText:'Your file\'s name should not match the regular expression${[].concat(invertedPattern).length > 1 ? "s" : ""}: ""${[].concat(invertedPattern).join("\\", \\"")}".',patternText:'Your file\'s name has to match the regular expression${[].concat(pattern).length > 1 ? "s" : ""}: ""${[].concat(pattern).join("\\", \\"")}".',required:!0}).model,i()({},p,{contentTypePatternText:'Your file\'s mime-type has to match the regular expression${[].concat(contentTypePattern).length > 1 ? "s" : ""}: ""${[].concat(contentTypePattern).join("\\", \\"")}".',invertedContentTypePatternText:'Your file\'s mime-type should not match the regular expression${[].concat(invertedContentTypePattern).length > 1 ? "s" : ""}: ""${[].concat(invertedContentTypePattern).join("\\", \\"")}".',deleteButton:"delete",downloadButton:"download",editButton:"edit",newButton:"new",encoding:"utf-8",generateFileNameInputProperties:a().identity,maximumSizeText:"Please provide a file with less or equal size than ${maximumSize} byte.",minimumSizeText:"Please provide a file with more or equal size than ${maximumSize} byte.",media:{sixteenByNine:!0},model:i()({},S),sourceToBlobOptions:{endings:"transparent",type:"text/plain"}}),i()({},d,b,{children:s.func,createItem:s.func,createPrototype:s.func,maximumNumber:s.number,minimumNumber:s.number});var T=i()({},h,{state:i()({},h.state,{invalidMaximumNumber:!1,invalidMinimumNumber:!1}),maximumNumber:1/0,minimumNumber:0,type:"string[]"});i()({},p,{addIcon:{icon:"add"},removeIcon:{icon:"clear"},createItem:function(e){return e.item},createPrototype:function(e){return e.item},model:i()({},T)}),i()({},y,{value:(0,s.shape)({end:(0,s.oneOfType)([s.number,(0,s.shape)(y)]),start:(0,s.oneOfType)([s.number,(0,s.shape)(y)])})}),i()({},f),i()({},w,{description:"End",name:"end"}),i()({},w,{description:"Start",name:"start"})},,,,,,,,function(e){e.exports=n}],d={};function f(e){var t=d[e];if(void 0!==t)return t.exports;var n=d[e]={exports:{}};return c[e](n,n.exports,f),n.exports}f.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return f.d(t,{a:t}),t},f.d=function(e,t){for(var n in t)f.o(t,n)&&!f.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},f.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},f.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var h={};return function(){f.r(h),f.d(h,{RequireableCheckbox:function(){return g},RequireableCheckboxInner:function(){return m},default:function(){return v},determineValidationState:function(){return p}});var e=f(1),t=f.n(e),n=f(3),r=f.n(n),i=f(2),o=f(37),a=f(4),s=f(7),l=f(8),u=f(29),c=f(0),d={"requireable-checkbox":"requireable-checkbox"};function p(e,t){return(0,l.determineValidationState)(e,t,{invalidRequired:function(){return!1===e.model.nullable&&!e.model.value}})}var m=function(e,n){var u,f,h=function(e){var t=(0,l.mapPropertiesIntoModel)(e,g.defaultProperties.model);return p(t,t.model.state),(t=(0,l.getConsolidatedProperties)(t)).checked=Boolean(t.value),t},m=function(e){r().extend(!0,A,h(A)),(0,l.triggerCallbackIfExists)(A,"change",T,A,e)},v=function(e){return S((function(n){var r=!1;n.modelState.focused||(A.focused=!0,r=!0),n.modelState.untouched&&(A.touched=!0,A.untouched=!1,r=!0);var i=n;return r&&(m(e),i=t()({},n,{modelState:A.model.state}),(0,l.triggerCallbackIfExists)(A,"changeState",T,A.model.state,e,A)),(0,l.triggerCallbackIfExists)(A,"touch",T,e,A),i}))},b=(0,i.useRef)(null),y=(0,i.useRef)(null),_=(0,l.translateKnownSymbols)(e),w=(0,l.determineInitialValue)(_,g.defaultProperties.model.default,_.checked),x=r().extend(!0,r().copy(g.defaultProperties),_),C=(0,i.useState)({modelState:t()({},g.defaultModelState),value:w}),E=C[0],S=C[1],T=!x.enforceUncontrolled&&(void 0!==(null==(u=_.model)?void 0:u.value)||void 0!==_.value)&&Boolean(_.onChange||_.onChangeValue);(0,l.deriveMissingPropertiesFromState)(x,E);var A=h(x),k={modelState:A.model.state,value:A.value};return(T||A.value===E.value)&&r().equals(A.model.state,E.modelState)||S(k),T&&(S=(0,l.wrapStateSetter)(S,k)),(0,i.useImperativeHandle)(n,(function(){return{properties:A,references:{foundationRef:y,inputReference:b},state:t()({modelState:A.model.state},T?{}:{value:A.value})}})),(0,c.jsx)(s.WrapConfigurations,{strict:g.strict,themeConfiguration:A.themeConfiguration,tooltip:A.tooltip,children:(0,c.jsx)("div",{className:[d["requireable-checkbox"]].concat(null!==(f=A.className)&&void 0!==f?f:[]).join(" "),style:A.styles,children:(0,c.jsx)(o.Checkbox,{checked:Boolean(A.value),disabled:A.disabled,foundationRef:y,id:A.id||A.name,indeterminate:null===A.value,inputRef:b,label:A.invalid&&A.showValidationState&&(A.showInitialValidationState||A.visited)?(0,c.jsx)(a.Theme,{use:"error",children:A.description||A.name}):A.description||A.name,name:A.name,onBlur:function(e){return S((function(n){var r=!1;return n.modelState.focused&&(A.focused=!1,r=!0),n.modelState.visited||(A.visited=!0,r=!0),r&&(m(e),(0,l.triggerCallbackIfExists)(A,"changeState",T,A.model.state,e,A)),(0,l.triggerCallbackIfExists)(A,"blur",T,e,A),r?t()({},n,{modelState:A.model.state}):n}))},onChange:function(e){A.model.mutable&&A.model.writable&&(A.value=Boolean(e.target.checked),S((function(n){if(n.value===A.value)return n;var r=!1,i=t()({},n,{value:A.value});return n.modelState.pristine&&(A.dirty=!0,A.pristine=!1,r=!0),m(e),p(A,n.modelState)&&(r=!0),(0,l.triggerCallbackIfExists)(A,"changeValue",T,A.value,e,A),r&&(i.modelState=A.model.state,(0,l.triggerCallbackIfExists)(A,"changeState",T,A.model.state,e,A)),i})))},onClick:function(e){(0,l.triggerCallbackIfExists)(A,"click",T,e,A),v(e)},onFocus:function(e){(0,l.triggerCallbackIfExists)(A,"focus",T,e,A),v(e)},ripple:A.ripple,value:""+A.value})})})};m.displayName="RequireableCheckbox";var g=(0,i.memo)((0,i.forwardRef)(m));g.wrapped=m,g.webComponentAdapterWrapped="react",g.defaultModelState=u.cN,g.defaultProperties=t()({},u.uG,{model:t()({},u.uG.model,{state:void 0,value:void 0}),value:void 0}),g.propTypes=u.by,g.strict=!1;var v=g}(),h}())},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__37__},function(e,t,n){n.r(t),n.d(t,{CircularSpinner:function(){return l}});var r=n(0),i=n(20),o=n(1),a=n.n(o),s=n(21),l=a()((0,i.createWrapConfigurationsComponent)(s.CircularProgress,{withReference:!1}),"CircularSpinner",{propTypes:{size:(0,r.oneOfType)([(0,r.oneOf)(["xsmall","small","medium","large","xlarge"]),r.number]),theme:r.string,themeConfiguration:r.object}});t.default=l},function(e,t,n){n.r(t),n.d(t,{FileInput:function(){return s}});var r=n(0),i=n(32),o=n.n(i),a=n(1),s=n.n(a)()(o(),"FileInput",{eventToPropertyMapping:{onChange:!0},internalProperties:{enforceUncontrolled:!0},propertiesToReflectAsAttributes:{dirty:r.boolean,focused:r.boolean,invalid:r.boolean,invalidMaximumSize:r.boolean,invalidMinimumSize:r.boolean,invalidMimeTypePattern:r.boolean,invalidNamePattern:r.boolean,invalidRequired:r.boolean,name:r.string,pristine:r.boolean,touched:r.boolean,untouched:r.boolean,valid:r.boolean,visited:r.boolean}});t.default=s},function(e,t,n){n.r(t),n.d(t,{GenericAnimate:function(){return a}});var r=n(33),i=n.n(r),o=n(1),a=n.n(o)()(i(),"GenericAnimate",{propertiesToReflectAsAttributes:"in"});t.default=a},function(e,t,n){n.r(t),n.d(t,{GenericInput:function(){return s}});var r=n(0),i=n(34),o=n.n(i),a=n(1),s=n.n(a)()(o(),"GenericInput",{eventToPropertyMapping:{onChange:!0},internalProperties:{enforceUncontrolled:!0},propertiesToReflectAsAttributes:{dirty:r.boolean,focused:r.boolean,invalid:r.boolean,invalidMaximum:r.boolean,invalidMaximumLength:r.boolean,invalidMinimum:r.boolean,invalidMinimumLength:r.boolean,invalidPattern:r.boolean,invalidRequired:r.boolean,name:r.string,pristine:r.boolean,touched:r.boolean,untouched:r.boolean,valid:r.boolean,visited:r.boolean}});t.default=s},function(e,t,n){n.r(t),n.d(t,{GenericInputs:function(){return s}});var r=n(0),i=n(35),o=n.n(i),a=n(1),s=n.n(a)()(o(),"GenericInputs",{eventToPropertyMapping:{onChange:!0},internalProperties:{enforceUncontrolled:!0},propertiesToReflectAsAttributes:{dirty:r.boolean,focused:r.boolean,invalid:r.boolean,name:r.string,pristine:r.boolean,touched:r.boolean,untouched:r.boolean,valid:r.boolean,visited:r.boolean}});t.default=s},function(e,t,n){n.r(t),n.d(t,{TabItem:function(){return l}});var r=n(0),i=n(20),o=n(1),a=n.n(o),s=n(37),l=a()((0,i.createWrapConfigurationsComponent)(s.Tab),"TabItem",{propTypes:{stacked:r.boolean,theme:r.string,themeConfiguration:r.object}});t.default=l},function(e,t,n){n.r(t),n.d(t,{TabBar:function(){return m}});var r,i=n(5),o=n.n(i),a=n(6),s=n.n(a),l=n(4),u=n.n(l),c=n(0),d=n(20),f=n(1),h=n.n(f),p=n(37),m=h()((0,d.createWrapConfigurationsComponent)(p.TabBar),"TabBar",{eventToPropertyMapping:{onActivate:(r=o()(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,u().timeout();case 2:return e.abrupt("return",null);case 3:case"end":return e.stop()}}),e)}))),function(){return r.apply(this,arguments)})},propTypes:{activeTabIndex:c.number,onActivate:c.func,theme:c.string,themeConfiguration:c.object}});t.default=m},function(e,t,n){n.r(t),n.d(t,{RequireableCheckbox:function(){return s}});var r=n(0),i=n(36),o=n.n(i),a=n(1),s=n.n(a)()(o(),"RequireableCheckbox",{eventToPropertyMapping:{onChange:!0},internalProperties:{enforceUncontrolled:!0},propertiesToReflectAsAttributes:{dirty:r.boolean,focused:r.boolean,invalid:r.boolean,invalidRequired:r.boolean,name:r.string,pristine:r.boolean,touched:r.boolean,untouched:r.boolean,valid:r.boolean,visited:r.boolean}});t.default=s},function(e,t,n){n.r(t),n.d(t,{SliderInput:function(){return c}});var r=n(2),i=n.n(r),o=n(0),a=n(20),s=n(1),l=n.n(s),u=n(50),c=l()((0,a.createWrapConfigurationsComponent)(u.Slider),"SliderInput",{eventToPropertyMapping:{onChange:function(e,t){return i()({},t.externalProperties,{value:e.detail.value})},onInput:function(e){return[{value:e.detail.value},{value:e.detail.value}]}},propTypes:{disabled:o.boolean,discrete:o.boolean,displayMarkers:o.boolean,max:o.number,min:o.number,step:o.number,theme:o.string,themeConfiguration:o.object,onChange:o.func,onInput:o.func,value:o.number}});t.default=c},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__47__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__48__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__49__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__50__},function(module,__unused_webpack_exports,__nested_webpack_require_258726__){var __dirname="/",e,t,n,r,i,a,o,l,u,s,c,d,m,f,p,v,g,y,b,h,x,w;if(module=__nested_webpack_require_258726__.nmd(module),null!==module&&"undefined"!==eval("typeof require")&&null!==eval("require")&&"main"in eval("require")&&"undefined"!==eval("typeof require.main")&&null!==eval("require.main")){var ORIGINAL_MAIN_MODULE=module;module!==eval("require.main")&&"paths"in module&&"paths"in eval("require.main")&&null!=__dirname&&(module.paths=eval("require.main.paths").concat(module.paths.filter((function(path){return eval("require.main.paths").includes(path)}))))}if(null==window)var window=void 0===__nested_webpack_require_258726__.g||null===__nested_webpack_require_258726__.g?{}:__nested_webpack_require_258726__.g;module.exports=(e=__nested_webpack_require_258726__(5),t=__nested_webpack_require_258726__(2),n=__nested_webpack_require_258726__(8),r=__nested_webpack_require_258726__(6),i=__nested_webpack_require_258726__(21),a=__nested_webpack_require_258726__(23),o=__nested_webpack_require_258726__(24),l=__nested_webpack_require_258726__(25),u=__nested_webpack_require_258726__(26),s=__nested_webpack_require_258726__(27),c=__nested_webpack_require_258726__(28),d=__nested_webpack_require_258726__(9),m=__nested_webpack_require_258726__(10),f=__nested_webpack_require_258726__(11),p=__nested_webpack_require_258726__(29),v=__nested_webpack_require_258726__(30),g=__nested_webpack_require_258726__(4),y=__nested_webpack_require_258726__(0),b=__nested_webpack_require_258726__(3),h=__nested_webpack_require_258726__(31),x=__nested_webpack_require_258726__(22),w=__nested_webpack_require_258726__(7),function(){var _,C,E=[function(e){e.exports=w},function(e){e.exports=t},function(e){e.exports=b},function(e){e.exports=g},function(e){e.exports=d},function(e){e.exports=y},function(e,t,n){n.d(t,{WrapTooltip:function(){return l}});var r=n(1),i=n.n(r),o=n(9),a=n(11),s=n(0),l=function(e){var t=e.children,n=e.options;return"string"==typeof n?(0,s.jsx)(a.Tooltip,{content:(0,s.jsx)(o.Typography,{use:"caption",children:n}),children:(0,s.jsx)("div",{className:"generic-tooltip",children:t})}):null!==n&&"object"==typeof n?("string"==typeof n.content&&(n=i()({},n,{content:(0,s.jsx)(o.Typography,{use:"caption",children:n.content})})),(0,s.jsx)(a.Tooltip,i()({},n,{children:(0,s.jsx)("div",{className:"generic-tooltip",children:t})}))):(0,s.jsx)(s.Fragment,{children:t})};t.default=l},function(e,t,n){n(1),n(13),n(2),n(4);var r=n(12),i=n(10),o=n(6),a=n(0);t.default=function(e){var t=e.children,n=e.strict,s=e.themeConfiguration,l=e.tooltip,u=e.wrap;return(0,a.jsx)(r.x,{strict:Boolean(n),children:(0,a.jsx)(o.WrapTooltip,{options:l,children:(0,a.jsx)(i.WrapThemeProvider,{configuration:s,wrap:u,children:t})})})}},function(e,t,n){n.d(t,{createDummyStateSetter:function(){return d},deriveMissingPropertiesFromState:function(){return f},determineInitialRepresentation:function(){return g},determineInitialValue:function(){return v},determineValidationState:function(){return b},formatValue:function(){return S},getConsolidatedProperties:function(){return _},getLabelAndValues:function(){return w},getValueFromSelection:function(){return x},mapPropertiesIntoModel:function(){return y},normalizeSelection:function(){return C},parseValue:function(){return E},translateKnownSymbols:function(){return m},triggerCallbackIfExists:function(){return p},useMemorizedValue:function(){return T},wrapStateSetter:function(){return h}});var r=n(1),i=n.n(r),o=n(3),a=n.n(o),s=n(5),l=n(2);function u(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return c(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)?c(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(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}var d=function(e){return function(t){"function"==typeof t&&t(e)}},f=function(e,t){void 0!==e.model.value&&void 0===e.value&&(e.value=e.model.value),void 0===e.value&&(e.value=t.value),e.model.state?e.model.state=i()({},e.model.state):e.model.state={};for(var n=0,r=Object.entries(t.modelState);n<r.length;n++){var o=r[n],a=o[0],s=o[1];void 0===e.model.state[a]&&(e.model.state[a]=s)}return e},h=function(e,t){return function(n){var r="function"==typeof n?n(t):n;a().equals(null==r?void 0:r.modelState,null==t?void 0:t.modelState)||e(r)}},p=function(e,t,n){void 0===n&&(n=!0);for(var r=arguments.length,i=new Array(r>3?r-3:0),o=3;o<r;o++)i[o-3]=arguments[o];t="on"+a().stringCapitalize(t),e[t]&&(n?e[t].apply(e,i):a().timeout((function(){return e[t].apply(e,i)})))},m=function(e){for(var t={},n=0,r=Object.entries(e);n<r.length;n++){var i=r[n],o=i[0],l=i[1];l===s.UndefinedSymbol?t[o]=void 0:l===s.NullSymbol?t[o]=null:t[o]=a().copy(e[o])}return t};function g(e,t,n,r,o){if("string"==typeof e.representation)return e.representation;if(null!==n){var s,l=function(e,t){if(t)for(var n,r=u(t);!(n=r()).done;){var i=n.value;if(a().equals(null==i?void 0:i.value,e))return i.label||""+e}return null}(n,o);return"string"==typeof l?l:S(i()({},e,{type:e.type||(null==(s=e.model)?void 0:s.type)||t.model.type}),n,r)}return""}var v=function(e,t,n){var r,i;return void 0!==n?n:void 0!==e.value?e.value:void 0!==(null==(r=e.model)?void 0:r.value)?e.model.value:void 0!==e.initialValue?a().copy(e.initialValue):void 0!==e.default?a().copy(e.default):void 0!==(null==(i=e.model)?void 0:i.default)?a().copy(e.model.default):void 0!==t?t:null},b=function(e,t,n){void 0===n&&(n={});var r=!1;n=i()({invalidRequired:function(){return!1===e.model.nullable&&"boolean"!==e.model.type&&!e.model.value&&0!==e.model.value||"boolean"===e.model.type&&!("boolean"==typeof e.model.value||["false","true"].includes(e.model.value))}},n),e.model.state=e.model.state||{};for(var o=0,a=Object.entries(n);o<a.length;o++){var s=a[o],l=s[0],u=s[1],c=t[l];e.model.state[l]=u(),r=r||c!==t[l]}return r&&(e.model.state.invalid=Object.keys(n).some((function(t){return e.model.state[t]})),e.model.state.valid=!e.model.state.invalid),r},y=function(e,t){var n=a().extend(!0,{model:a().copy(t)},e);n.disabled&&(n.model.mutable=!1,delete n.disabled),n.invertedPattern&&(n.model.invertedRegularExpressionPattern=n.invertedPattern,delete n.invertedPattern),n.pattern&&(n.model.regularExpressionPattern=n.pattern,delete n.pattern),n.required&&(n.model.nullable=!1,delete n.required),"text"===n.type&&(n.type="string");for(var r,i=u(Object.keys(n.model).concat("value"));!(r=i()).done;){var o=r.value;Object.prototype.hasOwnProperty.call(n,o)&&void 0!==n[o]&&(n.model[o]=n[o])}for(var s in n.model.state)Object.prototype.hasOwnProperty.call(n,s)&&void 0!==n[s]&&(n.model.state[s]=n[s]);return void 0===n.model.value&&(n.model.value=a().copy(n.model.default)),n},_=function(e){var t=i()({},e,e.model||{},(e.model||{}).state||{});return t.disabled=!(t.mutable&&t.writable),delete t.mutable,delete t.writable,delete t.state,t.required=!t.nullable,delete t.nullable,t.invertedRegularExpressionPattern&&(t.invertedPattern=t.invertedRegularExpressionPattern),delete t.invertedRegularExpressionPattern,t.regularExpressionPattern&&(t.pattern=t.regularExpressionPattern),delete t.regularExpressionPattern,t};function w(e){if(Array.isArray(e)){for(var t,n=[],r=[],i=u(e);!(t=i()).done;){var o=t.value;"string"==typeof(null==o?void 0:o.label)&&(n.push(o.label),r.push(o.value))}return[n,r]}return[[],[]]}function x(e,t){if(Array.isArray(t))for(var n,r=u(t);!(n=r()).done;){var i=n.value;if("string"==typeof(null==i?void 0:i.label)&&i.label===e)return i.value;if(["number","string"].includes(typeof(null==i?void 0:i.value))&&""+i.value===e)return i.value}return null}function C(e,t){if(e||(e=t,t=void 0),!e)return e;var n=null!==t&&"object"==typeof t,r=function(e,r){if(n)if(Array.isArray(t)){if(t.length)if(Array.isArray(t[0]))for(var i,o=u(t);!(i=o()).done;){var a=i.value,s=a[0],l=a[1];if(s===e)return l}else if("number"==typeof r&&r<t.length)return t[r]}else{if(!0===e&&t.true)return t.true;if(!1===e&&t.false)return t.false;if("string"==typeof e&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}return null},o=!1;if(Array.isArray(e)){if(o=!0,e.length){var a=[],s=0;if(Array.isArray(e[0]))for(var l=0,c=e;l<c.length;l++){var d,f=c[l],h=f[0],p=f[1];a.push({label:null!==(d=r(h,s))&&void 0!==d?d:p,value:h}),s+=1}else if(null!==e[0]&&"object"==typeof e[0])for(var m,g=u(e);!(m=g()).done;){var v,b=m.value;a.push(i()({},b,{label:null!==(v=r(b.value,s))&&void 0!==v?v:b.label})),s+=1}else for(var y=0,_=e;y<_.length;y++){var w,x=_[y];a.push({label:null!==(w=r(x,s))&&void 0!==w?w:x,value:x}),s+=1}e=a}}else{for(var C=[],E=0,S=Object.keys(e);E<S.length;E++){var T,A=S[E];C.push({label:null!==(T=r(A))&&void 0!==T?T:e[A],value:A})}e=C}if(Array.isArray(t)&&t.length&&Array.isArray(t[0])){for(var k,O=new Map,I=0,L=u(t);!(k=L()).done;){var R=k.value[0];O.set(R,I),I+=1}e=e.sort((function(e,t){var n,r,i=e.value,o=t.value;return(null!==(n=O.get(i))&&void 0!==n?n:0)-(null!==(r=O.get(o))&&void 0!==r?r:0)}))}else o||(e=e.sort((function(e,t){var n=e.value,r=t.value;return n.localeCompare(r)})));return e}var E=function(e,t,n){var r;if(e.model.trim&&"string"==typeof t&&(t=t.trim().replace(/ +\n/g,"\\n")),e.model.emptyEqualsNull&&""===t)return null;var i=t;return![null,void 0].includes(t)&&null!=(r=n[e.model.type])&&r.parse&&(i=n[e.model.type].parse(t,e,n)),"number"==typeof i&&isNaN(i)?null:i};function S(e,t,n,r){var i;void 0===r&&(r=!0);var o=r?"final":"intermediate";if([null,void 0].includes(t)||"number"==typeof t&&isNaN(t))return"";var a=null==(i=n[e.type||e.model.type])?void 0:i.format;if(a){var s,l,u=(null==(s=a[o])?void 0:s.transform)||(null==(l=a.final)?void 0:l.transform);if(u)return u(t,e,n)}return String(t)}var T=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return(0,l.useMemo)((function(){return e}),n)}},function(e){e.exports=f},function(e,t,n){n.d(t,{WrapThemeProvider:function(){return o}});var r=n(4),i=n(0),o=function(e){var t=e.children,n=e.configuration,o=e.wrap;return n?(0,i.jsx)(r.ThemeProvider,{options:n,wrap:!1!==o,children:t}):t}},function(e){e.exports=m},function(e,t,n){n.d(t,{x:function(){return o}});var r=n(2),i=n(0),o=function(e){var t=e.children;return e.strict?(0,i.jsx)(r.StrictMode,{children:t}):(0,i.jsx)(i.Fragment,{children:t})}},function(e){e.exports=n},function(e,t,n){n.d(t,{default:function(){return p}});var r=n(1),i=n.n(r),o=n(5),a=n(2),s=n(21),l=n(0),u="generic-animate",c="generic-animate__list-wrapper",d="generic-animate__wrapper",f=function(e,t){return(0,l.jsx)(s.CSSTransition,i()({appear:!0,classNames:u,in:!0,timeout:200,unmountOnExit:!0},e,{children:"string"==typeof e.children?(0,l.jsx)("span",{className:d,ref:t,children:e.children}):Array.isArray(e.children)?(0,l.jsx)("div",{className:c,ref:t,children:e.children}):e.children}))},h=(0,a.memo)((0,a.forwardRef)(f));h.wrapped=f,h.webComponentAdapterWrapped="react",h.propTypes={appear:o.boolean,classNames:o.string,in:o.boolean,timeout:o.number};var p=h},function(e,t,n){n.d(t,{default:function(){return U}});var r=n(1),i=n.n(r),o=n(16),a=n.n(o),s=n(17),l=n.n(s),u=n(3),c=n.n(u),d=n(2),f=n(18),h=n(22),p=n(19),m=n(20),g=n(23),v=n(24),b=n(25),y=n(4),_=n(26),w=n(14),x=n(7),C=n(6),E=n(8),S=n(29),T=n(0);function A(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return k(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)?k(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function k(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}var O=!(void 0===typeof window),I=O?(0,u.optionalRequire)("react-useanimations"):null,L=O?(0,u.optionalRequire)("react-useanimations/lib/lock"):null,R=O?(0,u.optionalRequire)("react-useanimations/lib/plusToX"):null,M={"generic-input":"generic-input",ace_editor:"ace_editor","tox-tinymce":"tox-tinymce","generic-input--custom":"generic-input--custom","generic-input__editor__label":"generic-input__editor__label","generic-input__suggestions":"generic-input__suggestions","generic-input__suggestions--pending":"generic-input__suggestions--pending","generic-input__suggestions__suggestion":"generic-input__suggestions__suggestion","generic-input__suggestions__suggestion__mark":"generic-input__suggestions__suggestion__mark"},P={basePath:"/node_modules/ace-builds/src-noconflict/",useWorker:!1},$=(0,d.lazy)(a()(l().mark((function e(){var t,r,i,o,a,s,u;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.resolve().then(n.t.bind(n,27,23));case 2:for(t=e.sent,r=t.config,i=0,o=Object.entries(P);i<o.length;i++)a=o[i],s=a[0],u=a[1],r.set(s,u);return e.next=7,Promise.resolve().then(n.t.bind(n,28,23));case 7:return e.abrupt("return",e.sent);case 8:case"end":return e.stop()}}),e)})))),N=!1,D="/node_modules/tinymce/",j={base_url:D,skin_url:D+"skins/ui/oxide",theme_url:D+"themes/silver/theme.min.js",allow_conditional_comments:!1,allow_script_urls:!1,body_class:"mdc-text-field__input",branding:!1,cache_suffix:"?version=1666081628.983",contextmenu:[],document_base_url:"/",element_format:"xhtml",entity_encoding:"raw",fix_list_elements:!0,hidden_input:!1,icon:"material",invalid_elements:"em",invalid_styles:"color font-size line-height",keep_styles:!1,menubar:!1,plugins:["fullscreen","link","code","nonbreaking","searchreplace","visualblocks"],relative_urls:!1,remove_script_host:!1,remove_trailing_brs:!0,schema:"html5",toolbar1:"\n cut copy paste |\n undo redo removeformat |\n styleselect formatselect fontselect fontsizeselect |\n searchreplace visualblocks fullscreen code\n ".trim(),toolbar2:"\n alignleft aligncenter alignright alignjustify outdent indent |\n link nonbreaking bullist numlist bold italic underline strikethrough\n ".trim(),trim:!0};function F(e,t){return(0,E.determineValidationState)(e,t,{invalidMaximum:function(){return"number"==typeof e.model.maximum&&"number"==typeof e.model.value&&!isNaN(e.model.value)&&e.model.maximum>=0&&e.model.maximum<e.model.value},invalidMinimum:function(){return"number"==typeof e.model.minimum&&"number"==typeof e.model.value&&!isNaN(e.model.value)&&e.model.value<e.model.minimum},invalidMaximumLength:function(){return"number"==typeof e.model.maximumLength&&"string"==typeof e.model.value&&e.model.maximumLength>=0&&e.model.maximumLength<e.model.value.length},invalidMinimumLength:function(){return"number"==typeof e.model.minimumLength&&"string"==typeof e.model.value&&e.model.value.length<e.model.minimumLength},invalidInvertedPattern:function(){return"string"==typeof e.model.value&&[].concat(e.model.invertedRegularExpressionPattern).some((function(t){return"string"==typeof t&&new RegExp(t).test(e.model.value)||null!==t&&"object"==typeof t&&t.test(e.model.value)}))},invalidPattern:function(){return"string"==typeof e.model.value&&[].concat(e.model.regularExpressionPattern).some((function(t){return"string"==typeof t&&!new RegExp(t).test(e.model.value)||null!==t&&"object"==typeof t&&!t.test(e.model.value)}))}})}function B(e){c().keyCode.ENTER===e.keyCode&&e.stopPropagation()}function W(e,t){return!!t&&(e=e.toLowerCase(),t.replace(/ +/g," ").toLowerCase().split(" ").every((function(t){return e.includes(t)})))}var H=function(e,t){var n,r,o,a,s,l,u,S,k=(0,d.useId)();(0,d.useEffect)((function(){if(ze||be.selectionIsUnstable)if(qe.editorIsActive){var e,t,n;null!=(e=re.current)&&null!=(t=e.editor)&&t.selection?(re.current.editor.textInput.focus(),K(re.current),be.selectionIsUnstable&&ye(i()({},be,{selectionIsUnstable:!1}))):null!=(n=le.current)&&n.selection&&(le.current.focus(!1),G(le.current),be.selectionIsUnstable&&ye(i()({},be,{selectionIsUnstable:!1})))}else ae.current&&(ae.current.setSelectionRange(qe.cursor.start,qe.cursor.end),be.selectionIsUnstable&&ye(i()({},be,{selectionIsUnstable:!1})));if(ae.current&&(qe.valid?(ae.current.removeAttribute("aria-errormessage"),ae.current.removeAttribute("aria-invalid")):(ae.current.setAttribute("aria-errormessage",k+"-error-message"),ae.current.setAttribute("aria-invalid","true")),tt&&("search"!==ae.current.getAttribute("type")&&ae.current.setAttribute("role","searchbox"),ae.current.setAttribute("aria-autocomplete",qe.searchSelection?"inline":"list")),qe.inputProps))for(var r=0,o=Object.entries(qe.inputProps);r<o.length;r++){var a=o[r],s=a[0],l=a[1],u=c().stringCamelCaseToDelimited(s);"boolean"==typeof l?l?ae.current.setAttribute(u,""):ae.current.removeAttribute(u):ae.current.setAttribute(u,String(l))}if(lt){var d=fe.current.querySelector('[aria-haspopup="listbox"]');d.hasAttribute("aria-expanded")||d.setAttribute("aria-expanded","false")}}));var O=function(e){if("clear_preset"===e){var t=function(e){e.preventDefault(),e.stopPropagation(),Q((0,E.parseValue)(qe,qe.default,V.transformer))};return{icon:(0,T.jsx)(w.default,{in:!c().equals(qe.value,qe.default),children:I&&!I.isDummy&&R?(0,T.jsx)(I,{animation:R,reverse:!0}):(0,T.jsx)(m.IconButton,{icon:"clear"})}),onClick:t,onKeyDown:t,strategy:"component",tabIndex:-1,tooltip:"Clear input"}}if("password_preset"===e){var n=function(e){"number"==typeof e.keyCode&&e.keyCode!==c().keyCode.ENTER||(e.preventDefault(),e.stopPropagation(),xe((function(t){return void 0===t&&(t=qe.hidden),qe.hidden=!t,Y(e),qe.hidden})))};return(0,E.useMemorizedValue)({icon:I&&!I.isDummy&&L?(0,T.jsx)(I,{animation:L,reverse:!qe.hidden}):(0,T.jsx)(m.IconButton,{icon:qe.hidden?"lock_open":"lock"}),onClick:n,onKeyDown:n,strategy:"component",tabIndex:-1,tooltip:(qe.hidden?"Show":"Hide")+" password"},qe.hidden)}return e&&("string"==typeof e&&(e={icon:e}),Object.prototype.hasOwnProperty.call(e,"onClick")||(e.tabIndex=-1)),e},P=function(e){var t,n;return"string"===e.type?e.hidden?"password":tt?"search":"text":null!==(t=null==(n=Re[e.type])?void 0:n.type)&&void 0!==t?t:e.type},D=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n=!0),"boolean"==typeof t?n?(0,T.jsx)(w.default,{in:t,children:e}):t?e:"":n?(0,T.jsx)(w.default,i()({},t,{children:e})):t.in?e:""},H=function(e){var t;if("object"==typeof e&&null!=(t=e)&&t.tooltip){var n=e.tooltip;delete(e=i()({},e)).tooltip;var r=i()({},e);e.strategy="component",e.icon=(0,T.jsx)(C.default,{options:n,children:(0,T.jsx)(p.Icon,{icon:r})})}return e},U=function(e,t,n){if(!qe.value)return 0;var r="generic-input-selection-indicator",i=" "+r+'="###"';t.setAttribute(r,"###");var o=e.innerHTML.replace(/(<\/p>)/gi,"$1\n");t.removeAttribute(r);var a=o.indexOf(i)+i.length;return n+o.indexOf(">",a)+1-i.length},z=function(e,t){return"string"==typeof qe.value||qe.value?t>0?e+qe.value.split("\n").slice(0,t).map((function(e){return 1+e.length})).reduce((function(e,t){return e+t})):e:0},q=function(e){var t={column:0,row:0};if("string"==typeof qe.value)for(var n,r=A(qe.value.split("\n"));!(n=r()).done;){var i=n.value;if(!(i.length<e)){t.column=e;break}e-=1+i.length,t.row+=1}return t},K=function(e){var t=e.editor.selection.getRange(),n=q(qe.cursor.end);t.setEnd(n.row,n.column);var r=q(qe.cursor.start);t.setStart(r.row,r.column),e.editor.selection.setRange(t)},G=function(e){for(var t={end:"###generic-input-selection-indicator-end###",start:"###generic-input-selection-indicator-start###"},n={end:qe.cursor.end+t.start.length,start:qe.cursor.start},r=["start","end"],i=qe.representation,o=0,a=r;o<a.length;o++){var s=a[o];i=i.substring(0,n[s])+t[s]+i.substring(n[s])}e.getBody().innerHTML=i;for(var l,u=document.createTreeWalker(e.getBody(),NodeFilter.SHOW_TEXT,null),d=e.dom.createRng(),f={};l=u.nextNode();)for(var h,p=A(r);!(h=p()).done;){var m=h.value;if(l.nodeValue){var g=l.nodeValue.indexOf(t[m]);g>-1&&(l.nodeValue=l.nodeValue.replace(t[m],""),f[m]=[l,g])}}for(var v=0,b=r;v<b.length;v++){var y=b[v];f[y]&&d["set"+c().stringCapitalize(y)].apply(d,f[y])}f.end&&f.start&&e.selection.setRng(d)},X=function(e){var t=(0,E.getConsolidatedProperties)(function(e){var t=(0,E.mapPropertiesIntoModel)(e,V.defaultProperties.model);return t.model.value=(0,E.parseValue)(t,t.model.value,Re),F(t,t.model.state),t}(e));return t.selection||"boolean"!==t.type||(t.selection=[{label:"No",value:!1},{label:"Yes",value:!0}]),t.selectableEditor||"plain"===t.editor||(t.editorIsActive=!0),"string"!=typeof t.representation&&(t.representation=(0,E.formatValue)(t,t.value,Re,!t.focused),t.focused&&t.representation!==t.value&&["password","text"].includes(P(t))&&(ze=!0)),t},Y=function(e){c().extend(!0,qe,X(qe)),(0,E.triggerCallbackIfExists)(qe,"change",Ve,qe,e)},Q=function(e,t,n){var r;if(void 0===n&&(n=-1),Se(!0),null!==e&&"object"==typeof e){var o=e.target||e.detail;if(o)if("number"==typeof o.index){var a=o.index-(qe.placeholder?1:0);qe.value=a>=0&&a<Fe.length?Fe[a]:null}else qe.value=void 0===o.value?null:o.value;else qe.value=e}else qe.value=e;var s=function(){return He((function(e){if(!Ue&&e.representation===qe.representation&&!qe.suggestionCreator&&-1===n)return e;var t=i()({},e,{representation:qe.representation});if(!Ve&&c().equals(e.value,qe.value))return t;t.value=qe.value;var o=!1;return e.modelState.pristine&&(qe.dirty=!0,qe.pristine=!1,o=!0),Y(r),F(qe,e.modelState)&&(o=!0),(0,E.triggerCallbackIfExists)(qe,"changeValue",Ve,qe.value,r,qe),o&&(t.modelState=qe.model.state,(0,E.triggerCallbackIfExists)(qe,"changeState",Ve,qe.model.state,r,qe)),(lt||-1!==n)&&(0,E.triggerCallbackIfExists)(qe,"select",Ve,r,qe),t}))};if(qe.representation=-1!==n?Je[n]:"string"==typeof qe.value?qe.value:(0,E.formatValue)(qe,qe.value,Re),tt)if(qe.suggestionCreator){var l=new AbortController,u=function(e){if(!l.signal.aborted){if($e((function(t){return t instanceof AbortController&&!t.signal.aborted&&t.abort(),e})),-1===n){var t=(0,E.getValueFromSelection)(qe.representation,(0,E.normalizeSelection)(e));null!==t||qe.searchSelection?qe.value=t:qe.value=(0,E.parseValue)(qe,qe.representation,Re)}s()}},d=qe.suggestionCreator({abortController:l,properties:qe,query:qe.representation});null!=d&&d.then?($e((function(e){return e instanceof AbortController&&!e.signal.aborted&&e.abort(),l})),He((function(e){return i()({},e,{representation:qe.representation})})),d.then(u,c().noop)):u(d)}else{if(-1===n){var f=(0,E.getValueFromSelection)(qe.representation,Ne);null!==f||qe.searchSelection?qe.value=f:qe.value=(0,E.parseValue)(qe,qe.representation,Re)}s()}else qe.value=(0,E.parseValue)(qe,qe.value,Re),s()},Z=function(e){te(e),(0,E.triggerCallbackIfExists)(qe,"click",Ve,e,qe),ne(e)},J=function(e){(0,E.triggerCallbackIfExists)(qe,"focus",Ve,e,qe),ne(e)},ee=function(e){e.keyCode&&(te(e),(0,E.triggerCallbackIfExists)(qe,"keyUp",Ve,e,qe))},te=function(e){!function(e){var t,n,r,i,o,a,s,l=null==(t=re.current)||null==(n=t.editor)||null==(r=n.selection)?void 0:r.getRange(),u=null==(i=le.current)||null==(o=i.selection)?void 0:o.getRng(),c=null==(a=ae.current)?void 0:a.selectionEnd,d=null==(s=ae.current)?void 0:s.selectionStart;if(l)ge({end:z(l.end.column,"number"==typeof l.end.row?l.end.row:"string"==typeof qe.value?qe.value.split("\n").length-1:0),start:z(l.start.column,"number"==typeof l.start.row?l.start.row:"string"==typeof qe.value?qe.value.split("\n").length-1:0)});else if(u)ge({end:U(le.current.getBody(),le.current.selection.getEnd(),u.endOffset),start:U(le.current.getBody(),le.current.selection.getStart(),u.startOffset)});else if("number"==typeof c&&"number"==typeof d){var f,h=1===(null==e||null==(f=e.key)?void 0:f.length)?1:"Backspace"===(null==e?void 0:e.key)&&qe.representation.length>d?-1:0;ge({end:c+h,start:d+h})}}(e),(0,E.triggerCallbackIfExists)(qe,"selectionChange",Ve,e,qe)},ne=function(e){return He((function(t){var n=!1;t.modelState.focused||(qe.focused=!0,n=!0),t.modelState.untouched&&(qe.touched=!0,qe.untouched=!1,n=!0);var r=t;return n&&(Y(e),r=i()({},t,{modelState:qe.model.state}),(0,E.triggerCallbackIfExists)(qe,"changeState",Ve,qe.model.state,e,qe)),(0,E.triggerCallbackIfExists)(qe,"touch",Ve,e,qe),r}))},re=(0,d.useRef)(null),ie=(0,d.useRef)(null),oe=(0,d.useRef)(null),ae=(0,d.useRef)(null),se=(0,d.useRef)(null),le=(0,d.useRef)(null),ue=(0,d.useRef)(null),ce=(0,d.useRef)(null),de=(0,d.useRef)(null),fe=(0,d.useRef)(null),he=(0,E.translateKnownSymbols)(e),pe=(0,d.useState)({end:0,start:0}),me=pe[0],ge=pe[1],ve=(0,d.useState)({editorIsActive:!1,selectionIsUnstable:!1}),be=ve[0],ye=ve[1],_e=(0,d.useState)(),we=_e[0],xe=_e[1],Ce=(0,d.useState)(!1),Ee=Ce[0],Se=Ce[1],Te=(0,d.useState)(!1),Ae=Te[0],ke=Te[1],Oe=(0,E.determineInitialValue)(he,null==(n=V.defaultProperties.model)?void 0:n.default);Oe instanceof Date&&(Oe=Oe.getTime()/1e3);var Ie=c().extend(!0,c().copy(V.defaultProperties),he),Le=Ie.type||(null==(r=Ie.model)?void 0:r.type)||"string",Re=Ie.transformer?i()({},V.transformer,((o={})[Le]=c().extend(!0,c().copy(V.transformer[Le])||{},Ie.transformer),o)):V.transformer,Me=(0,d.useState)(),Pe=Me[0],$e=Me[1];(Ie.selection||null!=(a=Ie.model)&&a.selection)&&(Pe=Ie.selection||(null==(s=Ie.model)?void 0:s.selection));var Ne=Pe instanceof AbortController?[]:(0,E.normalizeSelection)(Pe,Ie.labels),De=Pe instanceof AbortController?[[],[]]:(0,E.getLabelAndValues)(Ne),je=De[0],Fe=De[1],Be=(0,d.useState)((function(){return{modelState:i()({},V.defaultModelState),representation:(0,E.determineInitialRepresentation)(Ie,V.defaultProperties,Oe,Re,Ne),value:Oe}})),We=Be[0],He=Be[1],Ve=!Ie.enforceUncontrolled&&(void 0!==(null==(l=he.model)?void 0:l.value)||void 0!==he.value)&&Boolean(he.onChange||he.onChangeValue),Ue=Ve&&void 0!==he.representation,ze=!1;null!==Ie.cursor&&"object"==typeof Ie.cursor||(Ie.cursor={}),void 0===Ie.cursor.end&&(Ie.cursor.end=me.end),void 0===Ie.cursor.start&&(Ie.cursor.start=me.start),void 0===Ie.editorIsActive&&(Ie.editorIsActive=be.editorIsActive),void 0===Ie.hidden&&(Ie.hidden=we),void 0===Ie.representation&&(Ie.representation=We.representation),void 0===Ie.showDeclaration&&(Ie.showDeclaration=Ae),(0,E.deriveMissingPropertiesFromState)(Ie,We),void 0===Ie.value?void 0===Ie.representation&&void 0===Ie.model.value&&(Ie.representation=We.representation):Ue||Ie.value===We.value||(Ie.representation=void 0);var qe=X(Ie);void 0===qe.hidden&&(qe.hidden=null==(u=qe.name)?void 0:u.startsWith("password")),c().equals(qe.cursor,me)||ge(qe.cursor),qe.editorIsActive!==be.editorIsActive&&ye(i()({},be,{editorIsActive:qe.editorIsActive})),qe.hidden!==we&&xe(qe.hidden),qe.showDeclaration!==Ae&&ke(qe.showDeclaration);var Ke={modelState:qe.model.state,representation:qe.representation,value:qe.value};(Ve||c().equals(qe.value,We.value)&&qe.representation===We.representation)&&c().equals(qe.model.state,We.modelState)||He(Ke),Ve&&(He=(0,E.wrapStateSetter)(He,Ke)),(0,d.useImperativeHandle)(t,(function(){for(var e,t={modelState:qe.model.state},n=A(["cursor","editorIsActive","hidden","showDeclaration"]);!(e=n()).done;){var r=e.value;Object.prototype.hasOwnProperty.call(he,r)||(t[r]=qe[r])}return Ue||(t.representation=qe.representation),Ve||(t.value=qe.value),{properties:qe,references:{codeEditorReference:re,codeEditorInputReference:ie,foundationReference:oe,inputReference:ae,richTextEditorInputReference:se,richTextEditorInstance:le,richTextEditorReference:ue,suggestionMenuAPIReference:ce,suggestionMenuFoundationReference:de,wrapperReference:fe},state:t}}));var Ge={onFocus:function(e){Se(!0),J(e)},placeholder:qe.placeholder},Xe={disabled:qe.disabled,helpText:{children:(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(w.default,{in:qe.selectableEditor&&"string"===qe.type&&"plain"!==qe.editor,children:(0,T.jsx)(m.IconButton,{icon:{icon:qe.editorIsActive?"subject":qe.editor.startsWith("code")?"code":"text_format",onClick:function(e){e&&(e.preventDefault(),e.stopPropagation()),ye((function(t){var n=t.editorIsActive;return qe.editorIsActive=!n,Y(e),(0,E.triggerCallbackIfExists)(qe,"changeEditorIsActive",Ve,qe.editorIsActive,e,qe),{editorIsActive:qe.editorIsActive,selectionIsUnstable:!0}}))}}})}),(0,T.jsx)(w.default,{in:Boolean(qe.declaration),children:(0,T.jsx)(m.IconButton,{icon:{icon:"more_"+(qe.showDeclaration?"vert":"horiz"),onClick:function(e){e&&(e.preventDefault(),e.stopPropagation()),ke((function(t){return qe.showDeclaration=!t,Y(e),(0,E.triggerCallbackIfExists)(qe,"changeShowDeclaration",Ve,qe.showDeclaration,e,qe),qe.showDeclaration}))}}})}),(0,T.jsx)(w.default,{in:qe.showDeclaration,children:qe.declaration}),(0,T.jsx)(w.default,{in:!qe.showDeclaration&&qe.invalid&&qe.showValidationState&&(qe.showInitialValidationState||qe.visited),children:(0,T.jsx)(y.Theme,{use:"error",wrap:!0,children:(0,T.jsx)("span",{id:k+"-error-message",children:function(e){if("string"==typeof e){var t=c().stringEvaluate("`"+e+"`",i()({formatValue:function(e){return(0,E.formatValue)(qe,e,Re)}},qe));return t.error?(console.warn("Given message template could not be proceed:",t.error),""):t.result}return""}(qe.invalidMaximum&&qe.maximumText||qe.invalidMaximumLength&&qe.maximumLengthText||qe.invalidMinimum&&qe.minimumText||qe.invalidMinimumLength&&qe.minimumLengthText||qe.invalidInvertedPattern&&qe.invertedPatternText||qe.invalidPattern&&qe.patternText||qe.invalidRequired&&qe.requiredText)})})})]}),persistent:Boolean(qe.declaration)},invalid:qe.invalid&&qe.showValidationState&&(qe.showInitialValidationState||qe.visited),label:qe.description||qe.name,outlined:qe.outlined};qe.icon&&(Xe.icon=H(O(qe.icon)));var Ye=i()({},j,{content_style:qe.disabled?"body {opacity: .38}":"",placeholder:qe.placeholder,readonly:Boolean(qe.disabled),setup:function(e){le.current=e,le.current.on("init",(function(){le.current&&(N=!0,qe.editorIsActive&&be.selectionIsUnstable&&(le.current.focus(!1),G(le.current),ye(i()({},be,{selectionIsUnstable:!1}))))}))}});qe.editor.endsWith("raw)")?(Ye.toolbar1="cut copy paste | undo redo removeformat | code | fullscreen",delete Ye.toolbar2):qe.editor.endsWith("simple)")?(Ye.toolbar1="cut copy paste | undo redo removeformat | bold italic underline strikethrough subscript superscript | fullscreen",delete Ye.toolbar2):qe.editor.endsWith("normal)")&&(Ye.toolbar1="cut copy paste | undo redo removeformat | styleselect formatselect | searchreplace visualblocks fullscreen code");var Qe=!qe.selection&&"string"===qe.type&&qe.editorIsActive&&(qe.editor.startsWith("code")||qe.editor.startsWith("richtext(")),Ze=[],Je=[],et=[],tt=Boolean(qe.suggestionCreator||je.length&&(qe.searchSelection||qe.suggestSelection));if(tt&&je.length){qe.suggestSelection=!qe.searchSelection;for(var nt,rt=0,it=A(je);!(nt=it()).done;){var ot=nt.value;if(c().isFunction(qe.children)){var at=qe.children({index:rt,normalizedSelection:Ne,properties:qe,query:qe.representation,suggestion:ot,value:Fe[rt]});at&&(Ze.push((0,T.jsx)(g.MenuItem,{className:M["generic-input__suggestions__suggestion"],children:at},rt)),Je.push(ot),et.push(Fe[rt]))}else if(!qe.representation||qe.suggestionCreator||W(ot,qe.representation)){var st;Ze.push((0,T.jsx)(g.MenuItem,{className:M["generic-input__suggestions__suggestion"],children:c().stringMark(ot,(null==(st=qe.representation)?void 0:st.split(" "))||"",{marker:function(e){return(0,T.jsx)("span",{className:M["generic-input__suggestions__suggestion__mark"],children:e})},normalizer:function(e){return(""+e).toLowerCase()},skipTagDelimitedParts:null}).map((function(e,t){return(0,T.jsx)("span",{children:e},t)}))},rt)),Je.push(ot),et.push(Fe[rt])}rt+=1}}var lt=(Boolean(Ne)||Boolean(qe.labels))&&!tt,ut={};return"number"===qe.type?(ut.step=qe.step,qe.maximum!==1/0&&(ut.max=qe.maximum),qe.minimum!==-1/0&&(ut.min=qe.minimum)):"string"===qe.type?(qe.maximumLength>=0&&qe.maximumLength!==1/0&&(ut.maxLength=qe.maximumLength),qe.minimumLength>0&&(ut.minLength=qe.minimumLength),"plain"!==qe.editor&&(ut.rows=qe.rows)):["date","datetime-local","time","time-local"].includes(qe.type)&&(ut.step=qe.step,qe.maximum!==1/0&&(ut.max=(0,E.formatValue)(qe,qe.maximum,Re)),qe.minimum!==-1/0&&(ut.min=(0,E.formatValue)(qe,qe.minimum,Re))),(0,T.jsx)(x.default,{strict:V.strict,themeConfiguration:qe.themeConfiguration,tooltip:qe.tooltip,children:(0,T.jsxs)("div",i()({className:[M["generic-input"]].concat(Qe?M["generic-input--custom"]:[],null!==(S=qe.className)&&void 0!==S?S:[]).join(" "),onBlur:function(e){return He((function(t){var n;if(e.relatedTarget&&null!=(n=fe.current)&&n.contains(e.relatedTarget))return t;Se(!1);var r=!1,i=!1;if(t.modelState.focused&&(qe.focused=!1,r=!0,i=!0),t.modelState.visited||(qe.visited=!0,r=!0,i=!0),!tt||qe.suggestSelection){var o=(0,E.getValueFromSelection)(qe.representation,Ne);null===o?(qe.value=(0,E.parseValue)(qe,qe.value,Re),qe.representation=(0,E.formatValue)(qe,qe.value,Re)):qe.value=o}return c().equals(t.value,qe.value)&&t.representation===qe.representation||(r=!0),r&&Y(e),c().equals(t.value,qe.value)||(0,E.triggerCallbackIfExists)(qe,"changeValue",Ve,qe.value,e,qe),i&&(0,E.triggerCallbackIfExists)(qe,"changeState",Ve,qe.model.state,e,qe),(0,E.triggerCallbackIfExists)(qe,"blur",Ve,e,qe),r?{modelState:qe.model.state,representation:qe.representation,value:qe.value}:t}))},onKeyDown:function(e){var t;!qe.disabled&&tt&&c().keyCode.DOWN===e.keyCode&&e.target===ae.current&&(null==(t=ce.current)||t.focusItemAtIndex(0)),(lt||"string"===qe.type&&"plain"!==qe.editor)&&B(e),(0,E.triggerCallbackIfExists)(qe,"keyDown",Ve,e,qe)},ref:fe,style:qe.styles},tt?{role:"search"}:{},{children:[D((0,T.jsx)(v.Select,i()({},Ge,Xe,{enhanced:!qe.disabled,foundationRef:oe,inputRef:ae,onChange:Q,onKeyDown:function(e){qe.disabled||e.keyCode===c().keyCode.TAB||e.preventDefault()},options:Ne,rootProps:i()({name:qe.name,onClick:Z},qe.rootProps),value:""+qe.value},qe.inputProperties)),lt),D([(0,T.jsx)(h.FormField,{className:["mdc-text-field"].concat(qe.disabled?"mdc-text-field--disabled":[],"mdc-text-field--textarea").join(" "),onKeyDown:B,children:(0,T.jsxs)("label",{children:[(0,T.jsx)("span",{className:[M["generic-input__editor__label"]].concat("mdc-floating-label","mdc-floating-label--float-above").join(" "),children:(0,T.jsx)(y.Theme,{use:qe.invalid&&qe.showValidationState&&(qe.showInitialValidationState||qe.visited)?"error":void 0,children:(qe.description||qe.name)+(qe.required?"*":"")})}),qe.editor.startsWith("code")?(0,T.jsx)(d.Suspense,{fallback:(0,T.jsx)(f.CircularProgress,{size:"large"}),children:(0,T.jsx)($,i()({},Ge,{className:"mdc-text-field__input",mode:qe.editor.startsWith("code(")&&qe.editor.endsWith(")")?qe.editor.substring("code(".length,qe.editor.length-1):"javascript",name:qe.name,onChange:Q,onCursorChange:te,onSelectionChange:te,ref:function(e){var t,n,r;re.current=e,null!=(t=re.current)&&null!=(n=t.editor)&&null!=(r=n.container)&&r.querySelector("textarea")&&(ie.current=re.current.editor.container.querySelector("textarea")),re.current&&qe.editorIsActive&&be.selectionIsUnstable&&(re.current.editor.textInput.focus(),K(re.current),ye(i()({},be,{selectionIsUnstable:!1})))},setOptions:{maxLines:qe.rows,minLines:qe.rows,readOnly:qe.disabled,tabSize:4,useWorker:!1},theme:"github",value:qe.representation},qe.inputProperties))}):(0,T.jsx)(_.Editor,i()({},Ge,{disabled:qe.disabled,init:Ye,onClick:Z,onEditorChange:Q,onKeyUp:ee,ref:function(e){ue.current=e},textareaName:qe.name,tinymceScriptSrc:j.base_url+"tinymce.min.js",value:qe.representation},qe.inputProperties))]})},"advanced-editor-form-field"),(0,T.jsx)("div",{className:"mdc-text-field-helper-line",children:(0,T.jsx)("p",{className:"mdc-text-field-helper-text mdc-text-field-helper-text--persistent",id:k+"-error-message",children:Xe.helpText.children})},"advanced-editor-helper-line")],Qe,N||qe.editor.startsWith("code")),D((0,T.jsxs)("div",{children:[tt?(0,T.jsx)(g.MenuSurfaceAnchor,{onKeyDown:B,children:Pe instanceof AbortController?(0,T.jsx)(g.MenuSurface,{anchorCorner:"bottomLeft",className:M["generic-input__suggestions"]+" "+M["generic-input__suggestions--pending"],open:!0,children:(0,T.jsx)(f.CircularProgress,{size:"large"})}):(0,T.jsx)(g.Menu,{anchorCorner:"bottomLeft",apiRef:function(e){ce.current=e},className:M["generic-input__suggestions"],focusOnOpen:!1,foundationRef:de,onFocus:J,onSelect:function(e){Q(et[e.detail.index],void 0,e.detail.index),Se(!1)},open:Boolean(Je.length)&&Ee&&!(1===Je.length&&Je[0]===qe.representation),children:Ze})}):"",(0,T.jsx)(b.TextField,i()({},Ge,Xe,ut,{align:qe.align,characterCount:"number"==typeof qe.maximumLength&&!isNaN(qe.maximumLength)&&qe.maximumLength>=0,foundationRef:oe,inputRef:ae,onChange:Q,ripple:qe.ripple,rootProps:i()({name:qe.name,onClick:Z,onKeyUp:ee,tabIndex:qe.disabled?"0":"-1"},qe.rootProps),textarea:"string"===qe.type&&"plain"!==qe.editor,trailingIcon:H(O(qe.trailingIcon)),type:P(qe),value:qe.representation},qe.inputProperties))]}),!(Qe||lt),N||qe.editor.startsWith("code"))]}))})};H.displayName="GenericInput";var V=(0,d.memo)((0,d.forwardRef)(H));V.wrapped=H,V.webComponentAdapterWrapped="react",V.defaultModelState=S.Bg,V.defaultProperties=i()({},S.Ko,{cursor:void 0,model:i()({},S.Ko.model,{state:void 0,value:void 0}),representation:void 0,value:void 0}),V.locales=c().locales,V.propTypes=S.rV,V.renderProperties=S.au,V.strict=!1,V.transformer={boolean:{parse:function(e){var t;return"boolean"==typeof e?e:null===(t=new Map([["false",!1],["true",!0],[0,!1],[1,!0]]).get(e))||void 0===t||t},type:"text"},currency:{format:{final:{options:{currency:"USD"},transform:function(e,t,n){var r,o,a,s,l,u=null!==(r=null==(o=n.currency.format)||null==(a=o.final.options)?void 0:a.currency)&&void 0!==r?r:"USD";return e===1/0?"Infinity "+u:e===-1/0?"- Infinity "+u:isNaN(e)?"unknown":new Intl.NumberFormat(V.locales,i()({style:"currency"},null!==(s=null==(l=n.currency.format)?void 0:l.final.options)&&void 0!==s?s:{})).format(e)}}},parse:function(e,t,n){return n.float.parse?n.float.parse(e,t,n):NaN},type:"text"},date:{format:{final:{transform:function(e,t,n){if("number"!=typeof e)if(n.date.parse)e=n.date.parse(e,t,n);else{var r=e instanceof Date?e.getTime()/1e3:Date.parse(e);if(isNaN(r)){var i=parseFloat(e);e=isNaN(i)?0:i}else e=r/1e3}if(e===1/0)return"Infinitely far in the future";if(e===-1/0)return"Infinitely early in the past";if(!isFinite(e))return"";var o=new Date(Math.round(1e3*e)).toISOString();return o.substring(0,o.indexOf("T"))}}},parse:function(e){if("number"==typeof e)return e;if(e instanceof Date)return e.getTime()/1e3;var t=Date.parse(e);if(isNaN(t)){var n=parseFloat(e);return isNaN(n)?0:n}return t/1e3}},"datetime-local":{format:{final:{transform:function(e,t,n){if("number"!=typeof e)if(n["datetime-local"].parse)e=n["datetime-local"].parse(e,t,n);else{var r=e instanceof Date?e.getTime()/1e3:Date.parse(e);if(isNaN(r)){var i=parseFloat(e);e=isNaN(i)?0:i}else e=r/1e3}if(e===1/0)return"Infinitely far in the future";if(e===-1/0)return"Infinitely early in the past";if(!isFinite(e))return"";var o=new Date(Math.round(1e3*e)).toISOString();return o.substring(0,o.length-1)}}},parse:function(e,t,n){if(n.date.parse)return n.date.parse(e,t,n);if(e instanceof Date)return e.getTime()/1e3;var r=Date.parse(e);if(isNaN(r)){var i=parseFloat(e);return isNaN(i)?0:i}return r/1e3}},time:{format:{final:{transform:function(e,t,n){if("number"!=typeof e)if(n.time.parse)e=n.time.parse(e,t,n);else{var r=e instanceof Date?e.getTime()/1e3:Date.parse(e);if(isNaN(r)){var i=parseFloat(e);e=isNaN(i)?0:i}else e=r/1e3}if(e===1/0)return"Infinitely far in the future";if(e===-1/0)return"Infinitely early in the past";if(!isFinite(e))return"";var o=new Date(Math.round(1e3*e)).toISOString();return o=o.substring(o.indexOf("T")+1,o.length-1),t.step&&t.step>=60&&t.step%60==0?o.substring(0,o.lastIndexOf(":")):o}}},parse:function(e){if("number"==typeof e)return e;if(e instanceof Date)return e.getTime()/1e3;var t=Date.parse(e);if(isNaN(t)){var n=parseFloat(e.replace(/^([0-9]{2}):([0-9]{2})(:([0-9]{2}(\.[0-9]+)?))?$/,(function(e,t,n,r,i,o){return String(parseInt(t)*Math.pow(60,2)+60*parseInt(n)+(r?parseFloat(i):0))})));return isNaN(n)?0:n}return t/1e3}},"time-local":{format:{final:{transform:function(e,t,n){if("number"!=typeof e)if(n["time-local"].parse)e=n["time-local"].parse(e,t,n);else{var r=e instanceof Date?e.getTime()/1e3:Date.parse(e);if(isNaN(r)){var i=parseFloat(e);e=isNaN(i)?0:i}else e=r/1e3}if(e===1/0)return"Infinitely far in the future";if(e===-1/0)return"Infinitely early in the past";if(!isFinite(e))return"";var o=new Date(Math.round(1e3*e)),a=o.getHours(),s=o.getMinutes(),l=(a<10?"0":"")+String(a)+":"+(s<10?"0":"")+String(s);if(!(t.step&&t.step>=60&&t.step%60==0)){var u=o.getSeconds();return l+":"+(u<10?"0":"")+String(u)}return l}}},parse:function(e){if("number"==typeof e)return e;if(e instanceof Date)return e.getTime()/1e3;var t=Date.parse(e);if(isNaN(t)){var n=parseFloat(e.replace(/^([0-9]{2}):([0-9]{2})(:([0-9]{2}(\.[0-9]+)?))?$/,(function(e,t,n,r,i,o){var a=new Date(0);return a.setHours(parseInt(t)),a.setMinutes(parseInt(n)),r&&a.setSeconds(parseInt(i)),String(a.getTime()/1e3)})));return isNaN(n)?0:n}return t/1e3},type:"time"},float:{format:{final:{transform:function(e,t,n){return n.float.format?e===1/0?"Infinity":e===-1/0?"- Infinity":new Intl.NumberFormat(V.locales,n.float.format.final.options||{}).format(e):""+e}}},parse:function(e,t){return"string"==typeof e&&(e=parseFloat("de-DE"===V.locales[0]?e.replace(/\./g,"").replace(/,/g,"."):e)),"number"==typeof e&&("number"==typeof t.minimum&&t.minimum>=0&&e<0||"number"==typeof t.maximum&&t.maximum<=0&&e>0)&&(e*=-1),e},type:"text"},integer:{format:{final:{transform:function(e,t,n){var r,o;return new Intl.NumberFormat(V.locales,i()({maximumFractionDigits:0},null!==(r=null==(o=n.integer.format)?void 0:o.final.options)&&void 0!==r?r:{})).format(e)}}},parse:function(e,t){return"string"==typeof e&&(e=parseInt("de-DE"===V.locales[0]?e.replace(/[,.]/g,""):e)),"number"==typeof e&&("number"==typeof t.minimum&&t.minimum>=0&&e<0||"number"==typeof t.maximum&&t.maximum<=0&&e>0)&&(e*=-1),e},type:"text"},number:{parse:function(e){return"number"==typeof e?e:parseInt(e)}}};var U=V},function(t){t.exports=e},function(e){e.exports=r},function(e){e.exports=i},function(e){e.exports=o},function(e){e.exports=l},function(e){e.exports=x},function(e){e.exports=a},function(e){e.exports=u},function(e){e.exports=s},function(e){e.exports=c},function(e){e.exports=p},function(e){e.exports=v},function(e){e.exports=h},function(e,t,n){n.d(t,{Bg:function(){return y},Ko:function(){return w},au:function(){return b},ci:function(){return T},dO:function(){return A},rV:function(){return v}});var r=n(1),i=n.n(r),o=n(3),a=n.n(o),s=n(5),l={declaration:s.string,default:s.any,description:s.string,name:s.string,selection:(0,s.oneOfType)([(0,s.arrayOf)((0,s.oneOfType)([(0,s.arrayOf)((0,s.oneOfType)([s.number,s.string])),s.number,(0,s.objectOf)((0,s.oneOfType)([s.number,s.string])),s.string])),(0,s.objectOf)((0,s.oneOfType)([s.number,s.string]))]),type:s.string,value:s.any},u={dirty:(0,s.oneOfType)([s.boolean,s.symbol]),pristine:(0,s.oneOfType)([s.boolean,s.symbol]),touched:(0,s.oneOfType)([s.boolean,s.symbol]),untouched:(0,s.oneOfType)([s.boolean,s.symbol]),focused:(0,s.oneOfType)([s.boolean,s.symbol]),visited:(0,s.oneOfType)([s.boolean,s.symbol]),invalid:(0,s.oneOfType)([s.boolean,s.symbol]),invalidRequired:(0,s.oneOfType)([s.boolean,s.symbol]),valid:(0,s.oneOfType)([s.boolean,s.symbol])},c=i()({},l,{emptyEqualsNull:s.boolean,trim:s.boolean,invertedRegularExpressionPattern:(0,s.oneOfType)([(0,s.arrayOf)((0,s.oneOfType)([s.object,s.string])),s.object,s.string]),regularExpressionPattern:(0,s.oneOfType)([(0,s.arrayOf)((0,s.oneOfType)([s.object,s.string])),s.object,s.string]),maximum:(0,s.oneOfType)([s.number,s.string]),minimum:(0,s.oneOfType)([s.number,s.string]),maximumLength:s.number,minimumLength:s.number,mutable:s.boolean,writable:s.boolean,state:(0,s.shape)(u)}),d=i()({},l,u,{className:s.string,disabled:s.boolean,enforceUncontrolled:s.boolean,initialValue:s.any,inputProperties:s.object,model:(0,s.shape)(c),onChange:s.func,onChangeValue:s.func,onChangeShowDeclaration:s.func,onChangeState:s.func,onClick:s.func,onFocus:s.func,onTouch:s.func,required:s.boolean,requiredText:s.string,ripple:(0,s.oneOfType)([s.boolean,s.object]),rootProps:s.object,showDeclaration:(0,s.oneOfType)([s.boolean,s.symbol]),showInitialValidationState:s.boolean,showValidationState:s.boolean,styles:s.object,themeConfiguration:s.object,tooltip:s.any}),f={dirty:!1,focused:!1,invalid:!1,invalidRequired:!1,pristine:!0,touched:!1,untouched:!0,valid:!0,visited:!1},h={declaration:"",default:null,description:"",emptyEqualsNull:!0,invertedRegularExpressionPattern:null,maximum:1/0,maximumLength:-1,minimum:-1/0,minimumLength:0,mutable:!0,name:"NO_NAME_DEFINED",nullable:!0,regularExpressionPattern:null,state:i()({},f),trim:!0,type:"string",writable:!0},p={enforceUncontrolled:!1,model:i()({},h),showDeclaration:void 0,showInitialValidationState:!1,showValidationState:!0,requiredText:"Please fill this field."},m=(i()({},d,u,{checked:s.boolean,id:s.string}),i()({},h,{default:!1,type:"boolean",value:!1})),g=(i()({},p,{default:!1,model:i()({},m),requiredText:"Please check this field."}),i()({},u,{invalidMaximum:(0,s.oneOfType)([s.boolean,s.symbol]),invalidMinimum:(0,s.oneOfType)([s.boolean,s.symbol]),invalidMaximumLength:(0,s.oneOfType)([s.boolean,s.symbol]),invalidMinimumLength:(0,s.oneOfType)([s.boolean,s.symbol]),invalidInvertedPattern:(0,s.oneOfType)([s.boolean,s.symbol]),invalidPattern:(0,s.oneOfType)([s.boolean,s.symbol])})),v=i()({},d,g,{align:s.string,children:s.func,cursor:(0,s.oneOfType)([(0,s.shape)({end:s.number.isRequired,start:s.number.isRequired}),s.symbol]),editor:s.string,editorIsActive:(0,s.oneOfType)([s.boolean,s.symbol]),hidden:(0,s.oneOfType)([s.boolean,s.symbol]),icon:(0,s.oneOfType)([s.string,s.object]),inputProps:s.object,invertedPattern:(0,s.oneOfType)([(0,s.arrayOf)((0,s.oneOfType)([s.object,s.string])),s.object,s.string]),invertedPatternText:s.string,labels:(0,s.oneOfType)([(0,s.arrayOf)((0,s.arrayOf)(s.string)),(0,s.arrayOf)(s.string),s.object]),maximum:(0,s.oneOfType)([s.number,s.string]),maximumLengthText:s.string,maximumText:s.string,minimum:(0,s.oneOfType)([s.number,s.string]),minimumLengthText:s.string,minimumText:s.string,onBlur:s.func,onChangeEditorIsActive:s.func,onKeyDown:s.func,onKeyUp:s.func,onSelect:s.func,onSelectionChange:s.func,outlined:s.boolean,pattern:(0,s.oneOfType)([(0,s.arrayOf)((0,s.oneOfType)([s.object,s.string])),s.object,s.string]),patternText:s.string,placeholder:s.string,representation:(0,s.oneOfType)([s.string,s.symbol]),rows:s.number,searchSelection:s.boolean,selectableEditor:s.boolean,step:s.number,suggestionCreator:s.func,suggestSelection:s.boolean,trailingIcon:s.any,transformer:s.object}),b=["children","suggestionCreator"],y=i()({},f,{invalidMaximum:!1,invalidMinimum:!1,invalidMaximumLength:!1,invalidMinimumLength:!1,invalidInvertedPattern:!1,invalidPattern:!1}),_=i()({},h,{state:y}),w=i()({},p,{cursor:{end:0,start:0},editor:"plain",invertedPatternText:'Your string should not match the regular expression${[].concat(invertedPattern).length > 1 ? "s" : ""}: "${[].concat(invertedPattern).join("\\", \\"")}".',maximumLengthText:"Please type less or equal than ${maximumLength} symbols.",maximumText:"Please type less or equal than ${formatValue(maximum)}.",minimumLengthText:"Please type at least or equal ${minimumLength} symbols.",minimumText:"Please type at least or equal ${formatValue(minimum)}.",model:i()({},_),patternText:'Your string have to match the regular expression${[].concat(pattern).length > 1 ? "s" : ""}: "${[].concat(pattern).join("\\", \\"")}".',rows:4,searchSelection:!1,selectableEditor:!1,step:1,suggestSelection:!1}),x=i()({},u,{invalidContentTypePattern:(0,s.oneOfType)([s.boolean,s.symbol]),invalidMaximumSize:(0,s.oneOfType)([s.boolean,s.symbol]),invalidMinimumSize:(0,s.oneOfType)([s.boolean,s.symbol]),invalidName:(0,s.oneOfType)([s.boolean,s.symbol])}),C=(i()({},d,x,{children:s.func,contentTypePatternText:(0,s.oneOfType)([(0,s.arrayOf)((0,s.oneOfType)([s.object,s.string])),s.object,s.string]),invertedContentTypePatternText:(0,s.oneOfType)([(0,s.arrayOf)((0,s.oneOfType)([s.object,s.string])),s.object,s.string]),deleteButton:(0,s.oneOfType)([s.object,s.string]),downloadButton:(0,s.oneOfType)([s.object,s.string]),editButton:(0,s.oneOfType)([s.object,s.string]),newButton:(0,s.oneOfType)([s.object,s.string]),encoding:s.string,generateFileNameInputProperties:s.func,maximumSizeText:s.string,minimumSizeText:s.string,onBlur:s.func,outlined:s.boolean}),i()({},f,{invalidContentTypePattern:!1,invalidMaximumSize:!1,invalidMinimumSize:!1,invalidName:!1})),E=i()({},h,{contentTypeRegularExpressionPattern:/^.+\/.+$/,invertedContentTypeRegularExpressionPattern:null,fileName:i()({},_,{maximumLength:1024,name:"Name",regularExpressionPattern:/^[^/]+$/}),maximumSize:1/0,minimumSize:0,state:C});delete i()({},w,{emptyEqualsNull:!1,invertedPatternText:'Your file\'s name should not match the regular expression${[].concat(invertedPattern).length > 1 ? "s" : ""}: ""${[].concat(invertedPattern).join("\\", \\"")}".',patternText:'Your file\'s name has to match the regular expression${[].concat(pattern).length > 1 ? "s" : ""}: ""${[].concat(pattern).join("\\", \\"")}".',required:!0}).model,i()({},p,{contentTypePatternText:'Your file\'s mime-type has to match the regular expression${[].concat(contentTypePattern).length > 1 ? "s" : ""}: ""${[].concat(contentTypePattern).join("\\", \\"")}".',invertedContentTypePatternText:'Your file\'s mime-type should not match the regular expression${[].concat(invertedContentTypePattern).length > 1 ? "s" : ""}: ""${[].concat(invertedContentTypePattern).join("\\", \\"")}".',deleteButton:"delete",downloadButton:"download",editButton:"edit",newButton:"new",encoding:"utf-8",generateFileNameInputProperties:a().identity,maximumSizeText:"Please provide a file with less or equal size than ${maximumSize} byte.",minimumSizeText:"Please provide a file with more or equal size than ${maximumSize} byte.",media:{sixteenByNine:!0},model:i()({},E),sourceToBlobOptions:{endings:"transparent",type:"text/plain"}}),i()({},d,g,{children:s.func,createItem:s.func,createPrototype:s.func,maximumNumber:s.number,minimumNumber:s.number});var S=i()({},h,{state:i()({},h.state,{invalidMaximumNumber:!1,invalidMinimumNumber:!1}),maximumNumber:1/0,minimumNumber:0,type:"string[]"}),T=(i()({},p,{addIcon:{icon:"add"},removeIcon:{icon:"clear"},createItem:function(e){return e.item},createPrototype:function(e){return e.item},model:i()({},S)}),i()({},v,{value:(0,s.shape)({end:(0,s.oneOfType)([s.number,(0,s.shape)(v)]),start:(0,s.oneOfType)([s.number,(0,s.shape)(v)])})})),A={icon:{icon:"timelapse"},maximumText:"Please provide somthing earlier than ${formatValue(maximum)}.",minimumText:"Please provide somthing later than ${formatValue(minimum)}.",requiredText:"Please provide a range.",model:{name:"NO_NAME_DEFINED",state:i()({},f),value:{end:i()({},_,{description:"End",name:"end"}),start:i()({},_,{description:"Start",name:"start"})}},type:"time"}}],S={};function T(e){var t=S[e];if(void 0!==t)return t.exports;var n=S[e]={exports:{}};return E[e](n,n.exports,T),n.exports}T.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return T.d(t,{a:t}),t},C=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},T.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var n=Object.create(null);T.r(n);var r={};_=_||[null,C({}),C([]),C(C)];for(var i=2&t&&e;"object"==typeof i&&!~_.indexOf(i);i=C(i))Object.getOwnPropertyNames(i).forEach((function(t){r[t]=function(){return e[t]}}));return r.default=function(){return e},T.d(n,r),n},T.d=function(e,t){for(var n in t)T.o(t,n)&&!T.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},T.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},T.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var A={};return function(){T.r(A),T.d(A,{Interval:function(){return p},IntervalInner:function(){return h},default:function(){return m}});var e=T(1),t=T.n(e),n=T(3),r=T.n(n),i=T(19),o=T(2),a=T(15),s=T(7),l=T(8),u=T(29),c=T(0),d={interval:"interval",interval__icon:"interval__icon","interval--disabled":"interval--disabled",interval__end:"interval__end",interval__start:"interval__start"},f=function(e,n,r,i){var o=function(e,t){return{dirty:e.dirty||t.dirty,focused:e.focused||t.focused,invalid:e.invalid||t.invalid,invalidRequired:e.invalidRequired||t.invalidRequired,pristine:e.pristine&&t.pristine,touched:e.touched||t.touched,untouched:e.untouched&&t.untouched,valid:e.valid&&t.valid,visited:e.visited||t.visited}}(r,i);return t()({},e,o,{icon:n,model:{name:e.name,state:o,value:{end:i.model,start:r.model}},value:{end:i,start:r}})},h=function(e,n){var u,h,m,g,v,b,y,_,w,x,C,E,S,T,A,k,O,I,L,R,M,P,$,N,D,j,F,B,W,H,V,U,z,q=(0,l.translateKnownSymbols)(e);q.value||(q.value={end:{value:q.value},start:{value:q.value}}),"number"==typeof q.value.end&&(q.value.end={value:q.value.end}),"number"==typeof q.value.start&&(q.value.start={value:q.value.start});var K=r().extend(!0,r().copy(p.defaultProperties),q),G=(null==(u=K.value)?void 0:u.end)||{},X="string"==typeof K.icon?{icon:K.icon}:K.icon,Y=(null==(h=K.value)?void 0:h.start)||{},Q=!K.enforceUncontrolled&&(void 0!==(null==(m=q.model)||null==(g=m.value)||null==(v=g.end)?void 0:v.value)||void 0!==(null==(b=q.model)||null==(y=b.value)||null==(_=y.start)?void 0:_.value)||void 0!==q.value)&&Boolean(K.onChange||K.onChangeValue),Z=(0,o.useState)({end:null!==(w=null!==(x=null!==(C=null!==(E=G.value)&&void 0!==E?E:null==(S=K.model)||null==(T=S.value)||null==(A=T.end)?void 0:A.value)&&void 0!==C?C:G.default)&&void 0!==x?x:null==(k=K.model)||null==(O=k.value)||null==(I=O.end)?void 0:I.default)&&void 0!==w?w:null,start:null!==(L=null!==(R=null!==(M=null!==(P=Y.value)&&void 0!==P?P:null==($=K.model)||null==(N=$.value)||null==(D=N.end)?void 0:D.value)&&void 0!==M?M:Y.default)&&void 0!==R?R:null==(j=K.model)||null==(F=j.value)||null==(B=F.start)?void 0:B.default)&&void 0!==L?L:null}),J=Z[0],ee=Z[1];K.value||(K.value={end:{value:J.end},start:{value:J.start}});var te=r().mask(K,{exclude:{className:!0,enforceUncontrolled:!0,end:!0,icon:!0,start:!0,model:!0,name:!0,onChange:!0,onChangeValue:!0,style:!0,value:!0}});G=r().extend(!0,r().copy(te),null!=(W=K.model)&&null!=(H=W.value)&&H.end?{model:K.model.value.end}:{},G),Y=r().extend(!0,r().copy(te),null!=(V=K.model)&&null!=(U=V.value)&&U.start?{model:K.model.value.start}:{},Y),G.className||(G.className=d.interval+"__end"),X.className||(X.className=d.interval+"__icon"),Y.className||(Y.className=d.interval+"__start");var ne=t()({},G.model,G),re=t()({},Y.model,Y);Y.maximum=Math.min("number"==typeof re.maximum?re.maximum:1/0,K.value.end.value||1/0,"number"==typeof ne.maximum?ne.maximum:1/0),Y.minimum=re.minimum||-1/0,Y.value=K.value.start.value,G.maximum="number"==typeof ne.maximum?ne.maximum:1/0,G.minimum=Math.max("number"==typeof ne.minimum?ne.minimum:-1/0,K.value.start.value||-1/0,"number"==typeof re.minimum?re.minimum:-1/0),G.value=K.value.end.value;var ie=(0,o.useRef)(null),oe=(0,o.useRef)(null),ae={end:K.value.end.value,start:K.value.start.value};return Q&&(ee=(0,l.createDummyStateSetter)(ae)),(0,o.useImperativeHandle)(n,(function(){var e,t;return{properties:f(K,X,(null==(e=oe.current)?void 0:e.properties)||K.value.start,(null==(t=ie.current)?void 0:t.properties)||K.value.end),references:{end:ie,start:oe},state:Q?{}:{value:ae}}})),K.onChange&&(G.onChange=function(e,t){var n,r,i,o,a,s=(null==(n=oe.current)?void 0:n.properties)||Y;s.value=Math.min(null!==(r=null==(i=oe.current)||null==(o=i.properties)?void 0:o.value)&&void 0!==r?r:1/0,null!==(a=e.value)&&void 0!==a?a:1/0),(0,l.triggerCallbackIfExists)(K,"change",Q,f(K,X,s,e),t,K)},Y.onChange=function(e,t){var n,r,i,o,a,s=(null==(n=ie.current)?void 0:n.properties)||G;s.value=Math.max(null!==(r=null==(i=ie.current)||null==(o=i.properties)?void 0:o.value)&&void 0!==r?r:-1/0,null!==(a=e.value)&&void 0!==a?a:-1/0),(0,l.triggerCallbackIfExists)(K,"change",Q,f(K,X,e,s),t,K)}),G.onChangeValue=function(e,t){var n,r,i,o=Math.min(null!==(n=null==(r=oe.current)||null==(i=r.properties)?void 0:i.value)&&void 0!==n?n:1/0,null!=e?e:1/0),a={end:e,start:isFinite(o)?o:e};(0,l.triggerCallbackIfExists)(K,"changeValue",Q,a,t,K),ee(a)},Y.onChangeValue=function(e,t){var n,r,i,o=Math.max(null!==(n=null==(r=ie.current)||null==(i=r.properties)?void 0:i.value)&&void 0!==n?n:-1/0,null!=e?e:-1/0),a={end:isFinite(o)?o:e,start:e};(0,l.triggerCallbackIfExists)(K,"changeValue",Q,a,t,K),ee(a)},(0,c.jsx)(s.default,{strict:p.strict,themeConfiguration:K.themeConfiguration,children:(0,c.jsxs)("div",{className:[d.interval].concat(null!==(z=K.className)&&void 0!==z?z:[],K.disabled?d["interval--disabled"]:[]).join(" "),"data-name":K.name,style:K.styles,children:[(0,c.jsx)(a.default,t()({},Y,{ref:oe})),(0,c.jsx)(i.Icon,{icon:X}),(0,c.jsx)(a.default,t()({},G,{ref:ie}))]})})};h.displayName="Interval";var p=(0,o.memo)((0,o.forwardRef)(h));p.wrapped=h,p.webComponentAdapterWrapped="react",p.defaultProperties=u.dO,p.propTypes=u.ci,p.strict=!1;var m=p}(),A}())},function(e,t,n){n.r(t),n.d(t,{GenericInterval:function(){return s}});var r=n(0),i=n(51),o=n.n(i),a=n(1),s=n.n(a)()(o(),"GenericInterval",{eventToPropertyMapping:{onChange:!0},internalProperties:{enforceUncontrolled:!0},propertiesToReflectAsAttributes:{dirty:r.boolean,focused:r.boolean,invalid:r.boolean,invalidRequired:r.boolean,name:r.string,pristine:r.boolean,touched:r.boolean,untouched:r.boolean,valid:r.boolean,visited:r.boolean}});t.default=s},,function(e,t,n){var r={"./CircularSpinner.d.ts":55,"./CircularSpinner.ts":38,"./FileInput.d.ts":56,"./FileInput.ts":39,"./GenericAnimate.d.ts":57,"./GenericAnimate.ts":40,"./GenericInput.d.ts":58,"./GenericInput.ts":41,"./GenericInputs.d.ts":59,"./GenericInputs.ts":42,"./GenericInterval.d.ts":60,"./GenericInterval.ts":52,"./RequireableCheckbox.d.ts":61,"./RequireableCheckbox.ts":45,"./SliderInput.d.ts":62,"./SliderInput.ts":46,"./TabBar.d.ts":63,"./TabBar.ts":44,"./TabItem.d.ts":64,"./TabItem.ts":43};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=54},function(e,t,n){n.r(t)},function(e,t,n){n.r(t)},function(e,t,n){n.r(t)},function(e,t,n){n.r(t)},function(e,t,n){n.r(t)},function(e,t,n){n.r(t)},function(e,t,n){n.r(t)},function(e,t,n){n.r(t)},function(e,t,n){n.r(t)},function(e,t,n){n.r(t)}],__webpack_module_cache__={};function __nested_webpack_require_319418__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__nested_webpack_require_319418__),n.loaded=!0,n.exports}__nested_webpack_require_319418__.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return __nested_webpack_require_319418__.d(t,{a:t}),t},__nested_webpack_require_319418__.d=function(e,t){for(var n in t)__nested_webpack_require_319418__.o(t,n)&&!__nested_webpack_require_319418__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__nested_webpack_require_319418__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__nested_webpack_require_319418__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},__nested_webpack_require_319418__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__nested_webpack_require_319418__.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e};var __webpack_exports__={};return function(){__nested_webpack_require_319418__.r(__webpack_exports__),__nested_webpack_require_319418__.d(__webpack_exports__,{CircularSpinner:function(){return e.CircularSpinner},FileInput:function(){return t.FileInput},GenericAnimate:function(){return n.GenericAnimate},GenericInput:function(){return r.GenericInput},GenericInputs:function(){return i.GenericInputs},GenericInterval:function(){return o.GenericInterval},RequireableCheckbox:function(){return a.RequireableCheckbox},SliderInput:function(){return s.SliderInput},TabBar:function(){return l.TabBar},TabItem:function(){return u.TabItem},components:function(){return c},register:function(){return f}});var e=__nested_webpack_require_319418__(38),t=__nested_webpack_require_319418__(39),n=__nested_webpack_require_319418__(40),r=__nested_webpack_require_319418__(41),i=__nested_webpack_require_319418__(42),o=__nested_webpack_require_319418__(52),a=__nested_webpack_require_319418__(45),s=__nested_webpack_require_319418__(46),l=__nested_webpack_require_319418__(44),u=__nested_webpack_require_319418__(43),c={},d=__nested_webpack_require_319418__(54);d.keys().map((function(e){if(!e.endsWith(".d.ts")){var t=d(e).default;c[t.component._name]=t}}));var f=function(){return Object.values(c).map((function(e){return e.register()}))};__webpack_exports__.default=c}(),__webpack_exports__}()},module.exports=t(__webpack_require__(50),__webpack_require__(124),__webpack_require__(36),__webpack_require__(23),__webpack_require__(51),__webpack_require__(0),__webpack_require__(1),__webpack_require__(104),__webpack_require__(39),__webpack_require__(61),__webpack_require__(62),__webpack_require__(38),__webpack_require__(63),__webpack_require__(64),__webpack_require__(40),__webpack_require__(65),__webpack_require__(108),__webpack_require__(109),__webpack_require__(121),__webpack_require__(105),__webpack_require__(170),__webpack_require__(126),__webpack_require__(191),__webpack_require__(149),__webpack_require__(150),__webpack_require__(152),__webpack_require__(153),__webpack_require__(154),__webpack_require__(73),__webpack_require__(180),__webpack_require__(155),__webpack_require__(125),__webpack_require__(181),__webpack_require__(182),__webpack_require__(194))},function(e,t,n){"use strict";n.r(t),n.d(t,{Icon:function(){return h},getIconStrategy:function(){return c}});var r=n(127),i=n(0),o=n(128),a=n(145),s=n(22),l=n.n(s),u=n(171),c=function(e,t,n){return"auto"===(t=t||n||"auto")?function(e){return"string"==typeof e&&e.includes("/")?"url":i.isValidElement(e)?"component":"ligature"}(e):t},d={ligature:function(e){var t=e.content,n=(0,r._T)(e,["content"]);return i.createElement(f,(0,r.pi)({},n),t)},className:function(e){e.content;var t=(0,r._T)(e,["content"]);return i.createElement(f,(0,r.pi)({},t))},url:function(e){var t=e.content,n=(0,r._T)(e,["content"]);return i.createElement(f,(0,r.pi)({},n,{style:(0,r.pi)((0,r.pi)({},n.style),{backgroundImage:"url("+t+")"})}))},component:function(e){var t=e.content,n=(0,r._T)(e,["content"]);if("svg"===t.type){var o=t.props,a=o.children,s=(0,r._T)(o,["children"]);return i.createElement(f,(0,r.pi)({},s,n,{tag:"svg"}),a)}return i.createElement(f,(0,r.pi)({},n),t)},auto:void 0},f=i.forwardRef((function(e,t){return i.createElement(a.Vp,(0,r.pi)({tag:"i"},e,{ref:t}))})),h=(0,a.LM)((function(e,t){var n,a=e.icon,s=(0,r._T)(e,["icon"]),f=(0,o.wv)(),h=(0,r.pi)({},function(e){return i.isValidElement(e)||e&&"object"!=typeof e?{icon:e}:e}(a)),p=h.icon,m=h.strategy,g=h.prefix,v=h.basename,b=h.render,y=h.size,_=(0,r._T)(h,["icon","strategy","prefix","basename","render","size"]),w=f.icon||{},x=w.basename,C=void 0===x?null:x,E=w.prefix,S=void 0===E?null:E,T=w.strategy,A=void 0===T?null:T,k=w.render,O=void 0===k?null:k,I=p,L=c(I,m||null,A||null),R=void 0===v?C:v,M="className"===L&&"string"==typeof p?""+String(g||S)+p:null,P=!!L&&d[L]||null;if("custom"===L&&(P=b||O),!P)return console.error("Icon: rendering not implemented for "+String(L)+"."),null;var $=P((0,r.pi)((0,r.pi)((0,r.pi)({},s),_),{ref:t,content:I,className:l()("rmwc-icon","rmwc-icon--"+L,R,s.className,_.className,M,(n={},n["rmwc-icon--size-"+(y||"")]=!!y,n))}));if(!i.isValidElement($))return null;var N=(0,u.G)($.props.children);return N.includes("Avatar")||N.includes("Icon")?i.cloneElement($.props.children,(0,r.pi)((0,r.pi)((0,r.pi)({},$.props.children.props),$.props),{ref:t,children:$.props.children.props.children,className:l()($.props.className,$.props.children.props.className)})):$}));h.displayName="Icon"},,,function(e,t,n){"use strict";n.r(t),n.d(t,{Tab:function(){return ee},TabBar:function(){return R},TabBarContext:function(){return i},TabIndicator:function(){return U},TabScroller:function(){return E}});var r=n(0),i=r.createContext({onTabInteraction:function(e){},registerTab:function(e){},unregisterTab:function(e){},indicatorTransition:"slide"}),o=n(127),a=n(145),s=n(158),l=n(159),u=n(161),c=function(e,t){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},c(e,t)};function d(e,t){function n(){this.constructor=e}c(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var f=function(){return f=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},f.apply(this,arguments)};function h(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}var p,m=n(160),g={ANIMATING:"mdc-tab-scroller--animating",SCROLL_AREA_SCROLL:"mdc-tab-scroller__scroll-area--scroll",SCROLL_TEST:"mdc-tab-scroller__test"},v={AREA_SELECTOR:".mdc-tab-scroller__scroll-area",CONTENT_SELECTOR:".mdc-tab-scroller__scroll-content"},b=function(e){this.adapter=e},y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),t.prototype.getScrollPositionRTL=function(){var e=this.adapter.getScrollAreaScrollLeft(),t=this.calculateScrollEdges_().right;return Math.round(t-e)},t.prototype.scrollToRTL=function(e){var t=this.calculateScrollEdges_(),n=this.adapter.getScrollAreaScrollLeft(),r=this.clampScrollValue_(t.right-e);return{finalScrollPosition:r,scrollDelta:r-n}},t.prototype.incrementScrollRTL=function(e){var t=this.adapter.getScrollAreaScrollLeft(),n=this.clampScrollValue_(t-e);return{finalScrollPosition:n,scrollDelta:n-t}},t.prototype.getAnimatingScrollPosition=function(e){return e},t.prototype.calculateScrollEdges_=function(){return{left:0,right:this.adapter.getScrollContentOffsetWidth()-this.adapter.getScrollAreaOffsetWidth()}},t.prototype.clampScrollValue_=function(e){var t=this.calculateScrollEdges_();return Math.min(Math.max(t.left,e),t.right)},t}(b),_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),t.prototype.getScrollPositionRTL=function(e){var t=this.adapter.getScrollAreaScrollLeft();return Math.round(e-t)},t.prototype.scrollToRTL=function(e){var t=this.adapter.getScrollAreaScrollLeft(),n=this.clampScrollValue_(-e);return{finalScrollPosition:n,scrollDelta:n-t}},t.prototype.incrementScrollRTL=function(e){var t=this.adapter.getScrollAreaScrollLeft(),n=this.clampScrollValue_(t-e);return{finalScrollPosition:n,scrollDelta:n-t}},t.prototype.getAnimatingScrollPosition=function(e,t){return e-t},t.prototype.calculateScrollEdges_=function(){var e=this.adapter.getScrollContentOffsetWidth();return{left:this.adapter.getScrollAreaOffsetWidth()-e,right:0}},t.prototype.clampScrollValue_=function(e){var t=this.calculateScrollEdges_();return Math.max(Math.min(t.right,e),t.left)},t}(b),w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),t.prototype.getScrollPositionRTL=function(e){var t=this.adapter.getScrollAreaScrollLeft();return Math.round(t-e)},t.prototype.scrollToRTL=function(e){var t=this.adapter.getScrollAreaScrollLeft(),n=this.clampScrollValue_(e);return{finalScrollPosition:n,scrollDelta:t-n}},t.prototype.incrementScrollRTL=function(e){var t=this.adapter.getScrollAreaScrollLeft(),n=this.clampScrollValue_(t+e);return{finalScrollPosition:n,scrollDelta:t-n}},t.prototype.getAnimatingScrollPosition=function(e,t){return e+t},t.prototype.calculateScrollEdges_=function(){return{left:this.adapter.getScrollContentOffsetWidth()-this.adapter.getScrollAreaOffsetWidth(),right:0}},t.prototype.clampScrollValue_=function(e){var t=this.calculateScrollEdges_();return Math.min(Math.max(t.right,e),t.left)},t}(b),x=function(e){function t(n){var r=e.call(this,f(f({},t.defaultAdapter),n))||this;return r.isAnimating_=!1,r}return d(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return g},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return v},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{eventTargetMatchesSelector:function(){return!1},addClass:function(){},removeClass:function(){},addScrollAreaClass:function(){},setScrollAreaStyleProperty:function(){},setScrollContentStyleProperty:function(){},getScrollContentStyleValue:function(){return""},setScrollAreaScrollLeft:function(){},getScrollAreaScrollLeft:function(){return 0},getScrollContentOffsetWidth:function(){return 0},getScrollAreaOffsetWidth:function(){return 0},computeScrollAreaClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},computeScrollContentClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},computeHorizontalScrollbarHeight:function(){return 0}}},enumerable:!0,configurable:!0}),t.prototype.init=function(){var e=this.adapter.computeHorizontalScrollbarHeight();this.adapter.setScrollAreaStyleProperty("margin-bottom",-e+"px"),this.adapter.addScrollAreaClass(t.cssClasses.SCROLL_AREA_SCROLL)},t.prototype.getScrollPosition=function(){if(this.isRTL_())return this.computeCurrentScrollPositionRTL_();var e=this.calculateCurrentTranslateX_();return this.adapter.getScrollAreaScrollLeft()-e},t.prototype.handleInteraction=function(){this.isAnimating_&&this.stopScrollAnimation_()},t.prototype.handleTransitionEnd=function(e){var n=e.target;this.isAnimating_&&this.adapter.eventTargetMatchesSelector(n,t.strings.CONTENT_SELECTOR)&&(this.isAnimating_=!1,this.adapter.removeClass(t.cssClasses.ANIMATING))},t.prototype.incrementScroll=function(e){0!==e&&this.animate_(this.getIncrementScrollOperation_(e))},t.prototype.incrementScrollImmediate=function(e){if(0!==e){var t=this.getIncrementScrollOperation_(e);0!==t.scrollDelta&&(this.stopScrollAnimation_(),this.adapter.setScrollAreaScrollLeft(t.finalScrollPosition))}},t.prototype.scrollTo=function(e){if(this.isRTL_())return this.scrollToRTL_(e);this.scrollTo_(e)},t.prototype.getRTLScroller=function(){return this.rtlScrollerInstance_||(this.rtlScrollerInstance_=this.rtlScrollerFactory_()),this.rtlScrollerInstance_},t.prototype.calculateCurrentTranslateX_=function(){var e=this.adapter.getScrollContentStyleValue("transform");if("none"===e)return 0;var t=/\((.+?)\)/.exec(e);if(!t)return 0;var n=h(t[1].split(","),6),r=(n[0],n[1],n[2],n[3],n[4]);n[5];return parseFloat(r)},t.prototype.clampScrollValue_=function(e){var t=this.calculateScrollEdges_();return Math.min(Math.max(t.left,e),t.right)},t.prototype.computeCurrentScrollPositionRTL_=function(){var e=this.calculateCurrentTranslateX_();return this.getRTLScroller().getScrollPositionRTL(e)},t.prototype.calculateScrollEdges_=function(){return{left:0,right:this.adapter.getScrollContentOffsetWidth()-this.adapter.getScrollAreaOffsetWidth()}},t.prototype.scrollTo_=function(e){var t=this.getScrollPosition(),n=this.clampScrollValue_(e),r=n-t;this.animate_({finalScrollPosition:n,scrollDelta:r})},t.prototype.scrollToRTL_=function(e){var t=this.getRTLScroller().scrollToRTL(e);this.animate_(t)},t.prototype.getIncrementScrollOperation_=function(e){if(this.isRTL_())return this.getRTLScroller().incrementScrollRTL(e);var t=this.getScrollPosition(),n=e+t,r=this.clampScrollValue_(n);return{finalScrollPosition:r,scrollDelta:r-t}},t.prototype.animate_=function(e){var n=this;0!==e.scrollDelta&&(this.stopScrollAnimation_(),this.adapter.setScrollAreaScrollLeft(e.finalScrollPosition),this.adapter.setScrollContentStyleProperty("transform","translateX("+e.scrollDelta+"px)"),this.adapter.computeScrollAreaClientRect(),requestAnimationFrame((function(){n.adapter.addClass(t.cssClasses.ANIMATING),n.adapter.setScrollContentStyleProperty("transform","none")})),this.isAnimating_=!0)},t.prototype.stopScrollAnimation_=function(){this.isAnimating_=!1;var e=this.getAnimatingScrollPosition_();this.adapter.removeClass(t.cssClasses.ANIMATING),this.adapter.setScrollContentStyleProperty("transform","translateX(0px)"),this.adapter.setScrollAreaScrollLeft(e)},t.prototype.getAnimatingScrollPosition_=function(){var e=this.calculateCurrentTranslateX_(),t=this.adapter.getScrollAreaScrollLeft();return this.isRTL_()?this.getRTLScroller().getAnimatingScrollPosition(t,e):t-e},t.prototype.rtlScrollerFactory_=function(){var e=this.adapter.getScrollAreaScrollLeft();this.adapter.setScrollAreaScrollLeft(e-1);var t=this.adapter.getScrollAreaScrollLeft();if(t<0)return this.adapter.setScrollAreaScrollLeft(e),new _(this.adapter);var n=this.adapter.computeScrollAreaClientRect(),r=this.adapter.computeScrollContentClientRect(),i=Math.round(r.right-n.right);return this.adapter.setScrollAreaScrollLeft(e),i===t?new w(this.adapter):new y(this.adapter)},t.prototype.isRTL_=function(){return"rtl"===this.adapter.getScrollContentStyleValue("direction")},t}(m.K);var C=function(e){var t=(0,s.j)({props:e,api:function(e){var t=e.foundation,n=e.contentEl,r=t;return{scrollTo:function(e){return r.scrollTo(e)},incrementScroll:function(e){return r.incrementScroll(e)},getScrollPosition:function(){return r.getScrollPosition()},getScrollContentWidth:function(){var e;return(null===(e=n.ref)||void 0===e?void 0:e.offsetWidth)||0}}},elements:{rootEl:!0,areaEl:!0,contentEl:!0},foundation:function(e){var t=e.rootEl,n=e.areaEl,r=e.contentEl;return new x({eventTargetMatchesSelector:function(e,t){return(0,u.w)(e,t)},addClass:function(e){return t.addClass(e)},removeClass:function(e){return t.removeClass(e)},addScrollAreaClass:function(e){return n.addClass(e)},setScrollAreaStyleProperty:function(e,t){return n.setStyle(e,t)},setScrollContentStyleProperty:function(e,t){return r.setStyle(e,t)},getScrollContentStyleValue:function(e){return r.ref&&window.getComputedStyle(r.ref).getPropertyValue(e)||"none"},setScrollAreaScrollLeft:function(e){return n.ref&&(n.ref.scrollLeft=e)},getScrollAreaScrollLeft:function(){return n.ref?n.ref.scrollLeft:0},getScrollContentOffsetWidth:function(){return r.ref?r.ref.offsetWidth:0},getScrollAreaOffsetWidth:function(){return n.ref?n.ref.offsetWidth:0},computeScrollAreaClientRect:function(){return n.ref?n.ref.getBoundingClientRect():l.B},computeScrollContentClientRect:function(){return r.ref?r.ref.getBoundingClientRect():l.B},computeHorizontalScrollbarHeight:function(){return function(e,t){if(void 0===t&&(t=!0),t&&void 0!==p)return p;var n=e.createElement("div");n.classList.add(g.SCROLL_TEST),e.body.appendChild(n);var r=n.offsetHeight-n.clientHeight;return e.body.removeChild(n),t&&(p=r),r}(document)}})}}),n=t.foundation,r=(0,o._T)(t,["foundation"]),i=r.areaEl,a=r.contentEl,c=function(){n.handleInteraction()};return i.setProp("onWheel",c,!0),i.setProp("onTouchStart",c,!0),i.setProp("onPointerDown",c,!0),i.setProp("onMouseDown",c,!0),i.setProp("onKeyDown",c,!0),a.setProp("onTransitionEnd",(function(e){n.handleTransitionEnd(e)}),!0),(0,o.pi)({},r)};function E(e){var t=e.children,n=(e.apiRef,(0,o._T)(e,["children","apiRef"])),i=C(e),s=i.rootEl,l=i.areaEl,u=i.contentEl;return r.createElement(a.Vp,(0,o.pi)({},n,{ref:null,element:s,className:"mdc-tab-scroller"}),r.createElement(a.Vp,{element:l,className:"mdc-tab-scroller__scroll-area"},r.createElement(a.Vp,{element:u,className:"mdc-tab-scroller__scroll-content"},t)))}
278
+ /*! *****************************************************************************
279
+ Copyright (c) Microsoft Corporation.
280
+
281
+ Permission to use, copy, modify, and/or distribute this software for any
282
+ purpose with or without fee is hereby granted.
283
+
284
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
285
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
286
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
287
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
288
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
289
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
290
+ PERFORMANCE OF THIS SOFTWARE.
291
+ ***************************************************************************** */
292
+ var S=function(e,t){return S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},S(e,t)};var T=function(){return T=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},T.apply(this,arguments)};
293
+ /**
294
+ * @license
295
+ * Copyright 2018 Google Inc.
296
+ *
297
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
298
+ * of this software and associated documentation files (the "Software"), to deal
299
+ * in the Software without restriction, including without limitation the rights
300
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
301
+ * copies of the Software, and to permit persons to whom the Software is
302
+ * furnished to do so, subject to the following conditions:
303
+ *
304
+ * The above copyright notice and this permission notice shall be included in
305
+ * all copies or substantial portions of the Software.
306
+ *
307
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
308
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
309
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
310
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
311
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
312
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
313
+ * THE SOFTWARE.
314
+ */
315
+ var A={ARROW_LEFT_KEY:"ArrowLeft",ARROW_RIGHT_KEY:"ArrowRight",END_KEY:"End",ENTER_KEY:"Enter",HOME_KEY:"Home",SPACE_KEY:"Space",TAB_ACTIVATED_EVENT:"MDCTabBar:activated",TAB_SCROLLER_SELECTOR:".mdc-tab-scroller",TAB_SELECTOR:".mdc-tab"},k={ARROW_LEFT_KEYCODE:37,ARROW_RIGHT_KEYCODE:39,END_KEYCODE:35,ENTER_KEYCODE:13,EXTRA_SCROLL_AMOUNT:20,HOME_KEYCODE:36,SPACE_KEYCODE:32},O=new Set;O.add(A.ARROW_LEFT_KEY),O.add(A.ARROW_RIGHT_KEY),O.add(A.END_KEY),O.add(A.HOME_KEY),O.add(A.ENTER_KEY),O.add(A.SPACE_KEY);var I=new Map;I.set(k.ARROW_LEFT_KEYCODE,A.ARROW_LEFT_KEY),I.set(k.ARROW_RIGHT_KEYCODE,A.ARROW_RIGHT_KEY),I.set(k.END_KEYCODE,A.END_KEY),I.set(k.HOME_KEYCODE,A.HOME_KEY),I.set(k.ENTER_KEYCODE,A.ENTER_KEY),I.set(k.SPACE_KEYCODE,A.SPACE_KEY);var L=function(e){function t(n){var r=e.call(this,T(T({},t.defaultAdapter),n))||this;return r.useAutomaticActivation_=!1,r}return function(e,t){function n(){this.constructor=e}S(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),Object.defineProperty(t,"strings",{get:function(){return A},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return k},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{scrollTo:function(){},incrementScroll:function(){},getScrollPosition:function(){return 0},getScrollContentWidth:function(){return 0},getOffsetWidth:function(){return 0},isRTL:function(){return!1},setActiveTab:function(){},activateTabAtIndex:function(){},deactivateTabAtIndex:function(){},focusTabAtIndex:function(){},getTabIndicatorClientRectAtIndex:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},getTabDimensionsAtIndex:function(){return{rootLeft:0,rootRight:0,contentLeft:0,contentRight:0}},getPreviousActiveTabIndex:function(){return-1},getFocusedTabIndex:function(){return-1},getIndexOfTabById:function(){return-1},getTabListLength:function(){return 0},notifyTabActivated:function(){}}},enumerable:!0,configurable:!0}),t.prototype.setUseAutomaticActivation=function(e){this.useAutomaticActivation_=e},t.prototype.activateTab=function(e){var t,n=this.adapter.getPreviousActiveTabIndex();this.indexIsInRange_(e)&&e!==n&&(-1!==n&&(this.adapter.deactivateTabAtIndex(n),t=this.adapter.getTabIndicatorClientRectAtIndex(n)),this.adapter.activateTabAtIndex(e,t),this.scrollIntoView(e),this.adapter.notifyTabActivated(e))},t.prototype.handleKeyDown=function(e){var t=this.getKeyFromEvent_(e);if(void 0!==t)if(this.isActivationKey_(t)||e.preventDefault(),this.useAutomaticActivation_){if(this.isActivationKey_(t))return;var n=this.determineTargetFromKey_(this.adapter.getPreviousActiveTabIndex(),t);this.adapter.setActiveTab(n),this.scrollIntoView(n)}else{var r=this.adapter.getFocusedTabIndex();if(this.isActivationKey_(t))this.adapter.setActiveTab(r);else{n=this.determineTargetFromKey_(r,t);this.adapter.focusTabAtIndex(n),this.scrollIntoView(n)}}},t.prototype.handleTabInteraction=function(e){this.adapter.setActiveTab(this.adapter.getIndexOfTabById(e.detail.tabId))},t.prototype.scrollIntoView=function(e){if(this.indexIsInRange_(e))return 0===e?this.adapter.scrollTo(0):e===this.adapter.getTabListLength()-1?this.adapter.scrollTo(this.adapter.getScrollContentWidth()):this.isRTL_()?this.scrollIntoViewRTL_(e):void this.scrollIntoView_(e)},t.prototype.determineTargetFromKey_=function(e,t){var n=this.isRTL_(),r=this.adapter.getTabListLength()-1,i=e;return t===A.END_KEY?i=r:t===A.ARROW_LEFT_KEY&&!n||t===A.ARROW_RIGHT_KEY&&n?i-=1:t===A.ARROW_RIGHT_KEY&&!n||t===A.ARROW_LEFT_KEY&&n?i+=1:i=0,i<0?i=r:i>r&&(i=0),i},t.prototype.calculateScrollIncrement_=function(e,t,n,r){var i=this.adapter.getTabDimensionsAtIndex(t),o=i.contentLeft-n-r,a=i.contentRight-n-k.EXTRA_SCROLL_AMOUNT,s=o+k.EXTRA_SCROLL_AMOUNT;return t<e?Math.min(a,0):Math.max(s,0)},t.prototype.calculateScrollIncrementRTL_=function(e,t,n,r,i){var o=this.adapter.getTabDimensionsAtIndex(t),a=i-o.contentLeft-n,s=i-o.contentRight-n-r+k.EXTRA_SCROLL_AMOUNT,l=a-k.EXTRA_SCROLL_AMOUNT;return t>e?Math.max(s,0):Math.min(l,0)},t.prototype.findAdjacentTabIndexClosestToEdge_=function(e,t,n,r){var i=t.rootLeft-n,o=t.rootRight-n-r,a=i+o;return i<0||a<0?e-1:o>0||a>0?e+1:-1},t.prototype.findAdjacentTabIndexClosestToEdgeRTL_=function(e,t,n,r,i){var o=i-t.rootLeft-r-n,a=i-t.rootRight-n,s=o+a;return o>0||s>0?e+1:a<0||s<0?e-1:-1},t.prototype.getKeyFromEvent_=function(e){return O.has(e.key)?e.key:I.get(e.keyCode)},t.prototype.isActivationKey_=function(e){return e===A.SPACE_KEY||e===A.ENTER_KEY},t.prototype.indexIsInRange_=function(e){return e>=0&&e<this.adapter.getTabListLength()},t.prototype.isRTL_=function(){return this.adapter.isRTL()},t.prototype.scrollIntoView_=function(e){var t=this.adapter.getScrollPosition(),n=this.adapter.getOffsetWidth(),r=this.adapter.getTabDimensionsAtIndex(e),i=this.findAdjacentTabIndexClosestToEdge_(e,r,t,n);if(this.indexIsInRange_(i)){var o=this.calculateScrollIncrement_(e,i,t,n);this.adapter.incrementScroll(o)}},t.prototype.scrollIntoViewRTL_=function(e){var t=this.adapter.getScrollPosition(),n=this.adapter.getOffsetWidth(),r=this.adapter.getTabDimensionsAtIndex(e),i=this.adapter.getScrollContentWidth(),o=this.findAdjacentTabIndexClosestToEdgeRTL_(e,r,t,n,i);if(this.indexIsInRange_(o)){var a=this.calculateScrollIncrementRTL_(e,o,t,n,i);this.adapter.incrementScroll(a)}},t}(m.K),R=(0,a.LM)((function(e,t){var n=e.children,l=(e.activeTabIndex,e.onActivate,e.foundationRef,(0,o._T)(e,["children","activeTabIndex","onActivate","foundationRef"])),u=function(e){var t=(0,o.CR)((0,r.useState)(e.activeTabIndex||0),2),n=t[0],i=t[1],a=(0,r.useRef)(),l=(0,r.useRef)([]),u=(0,s.j)({props:e,elements:{rootEl:!0},foundation:function(t){var n=t.rootEl,r=t.emit;return t.getProps,new L({scrollTo:function(e){a.current&&a.current.scrollTo(e)},incrementScroll:function(e){var t;null===(t=a.current)||void 0===t||t.incrementScroll(e)},getScrollPosition:function(){var e;return(null===(e=a.current)||void 0===e?void 0:e.getScrollPosition())||0},getScrollContentWidth:function(){var e;return(null===(e=a.current)||void 0===e?void 0:e.getScrollContentWidth())||0},getOffsetWidth:function(){return n.ref?n.ref.offsetWidth:0},isRTL:function(){return!!n.ref&&"rtl"===window.getComputedStyle(n.ref).getPropertyValue("direction")},setActiveTab:function(t){e.activeTabIndex===t||void 0===e.activeTabIndex?i(t):c.adapter.notifyTabActivated(t)},activateTabAtIndex:function(e,t){l.current[e]&&l.current[e].activate(t)},deactivateTabAtIndex:function(e){return l.current[e]&&l.current[e].deactivate()},focusTabAtIndex:function(e){return l.current[e].focus()},getTabIndicatorClientRectAtIndex:function(e){return l.current[e]&&l.current[e].computeIndicatorClientRect()},getTabDimensionsAtIndex:function(e){return l.current[e]&&l.current[e].computeDimensions()},getPreviousActiveTabIndex:function(){for(var e=0;e<l.current.length;e++)if(l.current[e].getActive())return e;return-1},getFocusedTabIndex:function(){var e,t=[].slice.call(null===(e=n.ref)||void 0===e?void 0:e.querySelectorAll(L.strings.TAB_SELECTOR)),r=document.activeElement;return t?t.indexOf(r):-1},getIndexOfTabById:function(e){for(var t=0;t<l.current.length;t++)if(l.current[t].id===e)return t;return-1},getTabListLength:function(){return l.current.length},notifyTabActivated:function(e){return r("onActivate",{index:e},!0)}})}}),c=u.foundation,d=(0,o._T)(u,["foundation"]),f=d.rootEl,h=(0,r.useCallback)((function(e){c.handleTabInteraction(e)}),[c]);return f.setProp("onKeyDown",(function(t){var n;null===(n=e.onKeyDown)||void 0===n||n.call(e,t),c.handleKeyDown(t)}),!0),(0,r.useEffect)((function(){void 0!==e.activeTabIndex&&i(e.activeTabIndex)}),[e.activeTabIndex]),(0,r.useEffect)((function(){var e=n,t=c.adapter,r=t.getPreviousActiveTabIndex();if(c.indexIsInRange_(e)&&e!==r)return t.notifyTabActivated(e),window.requestAnimationFrame((function(){t.activateTabAtIndex(e,t.getTabIndicatorClientRectAtIndex(r)),c.scrollIntoView(e)})),function(){window.requestAnimationFrame((function(){t.deactivateTabAtIndex(e)}))}}),[n,c]),(0,r.useEffect)((function(){var e=window.document.activeElement,t=(0,o.CR)([window.scrollX,window.scrollY],2),n=t[0],r=t[1];window.requestAnimationFrame((function(){e&&e.focus(),window.scrollTo(n,r)}))}),[]),(0,o.pi)((0,o.pi)({},d),{setTabScrollerApi:function(e){return a.current=e},handleTabInteraction:h,registerTab:function(e){l.current.push(e),l.current.sort((function(e,t){return e.getIndex()-t.getIndex()}))},unregisterTab:function(e){l.current.splice(l.current.indexOf(e),1),l.current.sort((function(e,t){return e.getIndex()-t.getIndex()}))}})}(e),c=u.rootEl,d=u.handleTabInteraction,f=u.setTabScrollerApi,h=u.registerTab,p=u.unregisterTab,m=(0,r.useRef)({onTabInteraction:function(e){return d(e)},registerTab:h,unregisterTab:p,indicatorTransition:e.indicatorTransition||"slide"}),g=(0,a.oC)(e,["mdc-tab-bar"]);return r.createElement(i.Provider,{value:m.current},r.createElement(a.Vp,(0,o.pi)({tag:"nav",element:c},l,{className:g,ref:t}),r.createElement(E,{apiRef:f},n)))})),M=n(22),P=n.n(M),$=n(191),N=function(e,t){return N=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},N(e,t)};function D(e,t){function n(){this.constructor=e}N(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var j=function(){return j=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},j.apply(this,arguments)};
316
+ /**
317
+ * @license
318
+ * Copyright 2018 Google Inc.
319
+ *
320
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
321
+ * of this software and associated documentation files (the "Software"), to deal
322
+ * in the Software without restriction, including without limitation the rights
323
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
324
+ * copies of the Software, and to permit persons to whom the Software is
325
+ * furnished to do so, subject to the following conditions:
326
+ *
327
+ * The above copyright notice and this permission notice shall be included in
328
+ * all copies or substantial portions of the Software.
329
+ *
330
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
331
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
332
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
333
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
334
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
335
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
336
+ * THE SOFTWARE.
337
+ */
338
+ var F={ACTIVE:"mdc-tab-indicator--active",FADE:"mdc-tab-indicator--fade",NO_TRANSITION:"mdc-tab-indicator--no-transition"},B={CONTENT_SELECTOR:".mdc-tab-indicator__content"},W=function(e){function t(n){return e.call(this,j(j({},t.defaultAdapter),n))||this}return D(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return F},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return B},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},computeContentClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},setContentStyleProperty:function(){}}},enumerable:!0,configurable:!0}),t.prototype.computeContentClientRect=function(){return this.adapter.computeContentClientRect()},t}(m.K),H=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return D(t,e),t.prototype.activate=function(){this.adapter.addClass(W.cssClasses.ACTIVE)},t.prototype.deactivate=function(){this.adapter.removeClass(W.cssClasses.ACTIVE)},t}(W),V=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return D(t,e),t.prototype.activate=function(e){if(e){var t=this.computeContentClientRect(),n=e.width/t.width,r=e.left-t.left;this.adapter.addClass(W.cssClasses.NO_TRANSITION),this.adapter.setContentStyleProperty("transform","translateX("+r+"px) scaleX("+n+")"),this.computeContentClientRect(),this.adapter.removeClass(W.cssClasses.NO_TRANSITION),this.adapter.addClass(W.cssClasses.ACTIVE),this.adapter.setContentStyleProperty("transform","")}else this.adapter.addClass(W.cssClasses.ACTIVE)},t.prototype.deactivate=function(){this.adapter.removeClass(W.cssClasses.ACTIVE)},t}(W);function U(e){var t=function(e){var t=(0,s.j)({props:e,elements:{rootEl:!0,contentEl:!0},foundation:function(t){var n=t.rootEl,r=t.contentEl,i={addClass:function(e){n.addClass(e)},removeClass:function(e){n.removeClass(e)},computeContentClientRect:function(){return r.ref?r.ref.getBoundingClientRect():l.B},setContentStyleProperty:function(e,t){r.setStyle(e,t)}};return"fade"===e.transition?new H(i):new V(i)},api:function(e){var t=e.foundation;return{activate:function(e){t.activate(e)},deactivate:function(){t.deactivate()},computeContentClientRect:function(){return t.computeContentClientRect()}}}}),n=(t.foundation,(0,o._T)(t,["foundation"]));return(0,o.pi)({},n)}(e),n=t.rootEl,i=t.contentEl,u=e.icon,c=e.transition;return r.createElement(a.Vp,{tag:"span",element:n,className:P()("mdc-tab-indicator",{"mdc-tab-indicator--fade":"fade"===c})},r.createElement(a.Vp,{tag:u?$.Icon:"span","aria-hidden":"true",icon:u,element:i,className:"mdc-tab-indicator__content mdc-tab-indicator__content--"+(u?"icon":"underline")}))}var z=n(162),q=n(168),K=function(e,t){return K=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},K(e,t)};var G=function(){return G=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},G.apply(this,arguments)};
339
+ /**
340
+ * @license
341
+ * Copyright 2018 Google Inc.
342
+ *
343
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
344
+ * of this software and associated documentation files (the "Software"), to deal
345
+ * in the Software without restriction, including without limitation the rights
346
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
347
+ * copies of the Software, and to permit persons to whom the Software is
348
+ * furnished to do so, subject to the following conditions:
349
+ *
350
+ * The above copyright notice and this permission notice shall be included in
351
+ * all copies or substantial portions of the Software.
352
+ *
353
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
354
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
355
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
356
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
357
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
358
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
359
+ * THE SOFTWARE.
360
+ */
361
+ var X={ACTIVE:"mdc-tab--active"},Y={ARIA_SELECTED:"aria-selected",CONTENT_SELECTOR:".mdc-tab__content",INTERACTED_EVENT:"MDCTab:interacted",RIPPLE_SELECTOR:".mdc-tab__ripple",TABINDEX:"tabIndex",TAB_INDICATOR_SELECTOR:".mdc-tab-indicator"},Q=function(e){function t(n){var r=e.call(this,G(G({},t.defaultAdapter),n))||this;return r.focusOnActivate_=!0,r}return function(e,t){function n(){this.constructor=e}K(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return X},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return Y},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setAttr:function(){},activateIndicator:function(){},deactivateIndicator:function(){},notifyInteracted:function(){},getOffsetLeft:function(){return 0},getOffsetWidth:function(){return 0},getContentOffsetLeft:function(){return 0},getContentOffsetWidth:function(){return 0},focus:function(){}}},enumerable:!0,configurable:!0}),t.prototype.handleClick=function(){this.adapter.notifyInteracted()},t.prototype.isActive=function(){return this.adapter.hasClass(X.ACTIVE)},t.prototype.setFocusOnActivate=function(e){this.focusOnActivate_=e},t.prototype.activate=function(e){this.adapter.addClass(X.ACTIVE),this.adapter.setAttr(Y.ARIA_SELECTED,"true"),this.adapter.setAttr(Y.TABINDEX,"0"),this.adapter.activateIndicator(e),this.focusOnActivate_&&this.adapter.focus()},t.prototype.deactivate=function(){this.isActive()&&(this.adapter.removeClass(X.ACTIVE),this.adapter.setAttr(Y.ARIA_SELECTED,"false"),this.adapter.setAttr(Y.TABINDEX,"-1"),this.adapter.deactivateIndicator())},t.prototype.computeDimensions=function(){var e=this.adapter.getOffsetWidth(),t=this.adapter.getOffsetLeft(),n=this.adapter.getContentOffsetWidth(),r=this.adapter.getContentOffsetLeft();return{contentLeft:t+r,contentRight:t+r+n,rootLeft:t,rootRight:t+e}},t}(m.K),Z=(0,z.U8)({surface:!1})((0,a.LM)((function(e,t){var n=e.stacked,i=e.minWidth,s=(0,o._T)(e,["stacked","minWidth"]),l=(0,a.oC)(e,["mdc-tab",{"mdc-tab--stacked":n,"mdc-tab--min-width":i}]);return r.createElement(a.Vp,(0,o.pi)({tag:"button"},s,{className:l,ref:t}))}))),J=r.memo((function(e){return r.createElement($.Icon,(0,o.pi)({},e,{className:"mdc-tab__icon"}))})),ee=(0,a.LM)((function(e,t){var n=e.children,a=e.label,u=e.icon,c=e.stacked,d=e.restrictIndicator,f=(e.onInteraction,e.iconIndicator),h=(e.foundationRef,e.focusOnActivate,(0,o._T)(e,["children","label","icon","stacked","restrictIndicator","onInteraction","iconIndicator","foundationRef","focusOnActivate"])),p=function(e){var t=(0,r.useRef)(),n=(0,r.useContext)(i),a=(0,q.M)("tab",e),u=(0,s.j)({props:e,elements:{rootEl:!0,contentEl:!0},foundation:function(e){var r=e.rootEl,i=e.contentEl,o=e.emit;return e.getProps,new Q({setAttr:function(e,t){return r.setProp(e,t)},addClass:function(e){return r.addClass(e)},removeClass:function(e){return r.removeClass(e)},hasClass:function(e){return r.hasClass(e)},activateIndicator:function(e){var n;return null===(n=t.current)||void 0===n?void 0:n.activate(e)},deactivateIndicator:function(){var e;return null===(e=t.current)||void 0===e?void 0:e.deactivate()},notifyInteracted:function(){var e=o("onInteraction",{tabId:a},!0);n.onTabInteraction(e)},getOffsetLeft:function(){var e;return(null===(e=r.ref)||void 0===e?void 0:e.offsetLeft)||0},getOffsetWidth:function(){var e;return(null===(e=r.ref)||void 0===e?void 0:e.offsetWidth)||0},getContentOffsetLeft:function(){var e;return(null===(e=i.ref)||void 0===e?void 0:e.offsetLeft)||0},getContentOffsetWidth:function(){var e;return(null===(e=i.ref)||void 0===e?void 0:e.offsetWidth)||0},focus:function(){return r.ref&&r.ref.focus&&r.ref.focus()}})}}),c=u.foundation,d=(0,o._T)(u,["foundation"]),f=d.rootEl;f.setProp("onClick",(function(t){var n;null===(n=e.onClick)||void 0===n||n.call(e,t),c.handleClick()}),!0);var h=(0,r.useMemo)((function(){return{getActive:function(){return c.isActive()},activate:function(e){return c.activate(e)},deactivate:function(){return c.deactivate()},computeIndicatorClientRect:function(){var e;return(null===(e=t.current)||void 0===e?void 0:e.computeContentClientRect())||l.B},computeDimensions:function(){return c.computeDimensions()},focus:function(){return f.ref&&f.ref.focus()},id:a,getIndex:function(){var e;return(null===(e=f.ref)||void 0===e?void 0:e.parentElement)?Array.from(f.ref.parentElement.children).indexOf(f.ref):-1}}}),[c,f.ref,a]);return(0,r.useEffect)((function(){return n.registerTab(h),function(){n.unregisterTab(h)}}),[n,h]),(0,r.useEffect)((function(){void 0!==e.focusOnActivate&&c.setFocusOnActivate(e.focusOnActivate)}),[c,e.focusOnActivate]),(0,o.pi)((0,o.pi)({},d),{setTabIndicatorApi:function(e){return t.current=e}})}(e),m=p.rootEl,g=p.contentEl,v=p.setTabIndicatorApi,b=r.useContext(i),y=r.createElement(U,{apiRef:v,transition:b.indicatorTransition,icon:f});return r.createElement(Z,(0,o.pi)({element:m,stacked:c},h,{ref:t}),r.createElement("div",{className:"mdc-tab__content",ref:g.setRef},!!u&&r.createElement(J,{icon:u}),(void 0!==n||void 0!==a)&&r.createElement("span",{className:"mdc-tab__text-label"},a,n),!!d&&y),!d&&y,r.createElement(z.aw,{className:"mdc-tab__ripple"}))}))}],__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.loaded=!0,n.exports}__webpack_require__.amdD=function(){throw new Error("define cannot be used indirect")},__webpack_require__.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=function(e,t){for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},__webpack_require__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e};var __webpack_exports__=__webpack_require__(190);return __webpack_exports__}()}));