(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1222],{28330:function(e){e.exports=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}}},46368:function(e){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},27375:function(e){e.exports=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}},22957:function(e){e.exports=function(){throw TypeError("Invalid attempt to spread non-iterable instance")}},8497:function(e,t,n){var r=n(28330),i=n(27375),o=n(22957);e.exports=function(e){return r(e)||i(e)||o()}},43427:function(e,t){"use strict";t.Z=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",i=(e.type||"").toLowerCase(),o=i.replace(/\/.*$/,"");return n.some(function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?r.toLowerCase().endsWith(t):t.endsWith("/*")?o===t.replace(/\/.*$/,""):i===t})}return!0}},95772:function(e){"use strict";var t=function(e){var t;return!!e&&"object"==typeof e&&"[object RegExp]"!==(t=Object.prototype.toString.call(e))&&"[object Date]"!==t&&e.$$typeof!==n},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?a(Array.isArray(e)?[]:{},e,t):e}function i(e,t,n){return e.concat(t).map(function(e){return r(e,n)})}function o(e){return Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[])}function u(e,t){try{return t in e}catch(e){return!1}}function a(e,n,s){(s=s||{}).arrayMerge=s.arrayMerge||i,s.isMergeableObject=s.isMergeableObject||t,s.cloneUnlessOtherwiseSpecified=r;var l,c,d=Array.isArray(n);return d!==Array.isArray(e)?r(n,s):d?s.arrayMerge(e,n,s):(c={},(l=s).isMergeableObject(e)&&o(e).forEach(function(t){c[t]=r(e[t],l)}),o(n).forEach(function(t){(!u(e,t)||Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))&&(u(e,t)&&l.isMergeableObject(n[t])?c[t]=(function(e,t){if(!t.customMerge)return a;var n=t.customMerge(e);return"function"==typeof n?n:a})(t,l)(e[t],n[t],l):c[t]=r(n[t],l))}),c)}a.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,n){return a(e,n,t)},{})},e.exports=a},38889:function(e){"use strict";e.exports=function(e,t,n,r,i,o,u,a){if(!e){var s;if(void 0===t)s=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,i,o,u,a],c=0;(s=Error(t.replace(/%s/g,function(){return l[c++]}))).name="Invariant Violation"}throw s.framesToPop=1,s}}},10545:function(e){function t(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(Error("Failed to load "+this.src),e)}}e.exports=function(e,n,r){var i=document.head||document.getElementsByTagName("head")[0],o=document.createElement("script");"function"==typeof n&&(r=n,n={}),n=n||{},r=r||function(){},o.type=n.type||"text/javascript",o.charset=n.charset||"utf8",o.async=!("async"in n)||!!n.async,o.src=e,n.attrs&&function(e,t){for(var n in t)e.setAttribute(n,t[n])}(o,n.attrs),n.text&&(o.text=""+n.text),("onload"in o?t:function(e,t){e.onreadystatechange=function(){("complete"==this.readyState||"loaded"==this.readyState)&&(this.onreadystatechange=null,t(null,e))}})(o,r),o.onload||t(o,r),i.appendChild(o)}},67208:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});/**
 * @license lucide-react v0.404.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,n(39076).Z)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},2832:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});/**
 * @license lucide-react v0.404.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,n(39076).Z)("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},82238:function(e,t,n){"use strict";n.r(t);var r=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function i(e,t){if(e.length!==t.length)return!1;for(var n,i,o=0;o<e.length;o++)if(!((n=e[o])===(i=t[o])||r(n)&&r(i)))return!1;return!0}t.default=function(e,t){void 0===t&&(t=i);var n,r,o=[],u=!1;return function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];return u&&n===this&&t(i,o)||(r=e.apply(this,i),u=!0,n=this,o=i),r}}},61699:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i.a}});var r=n(43173),i=n.n(r),o={};for(var u in r)"default"!==u&&(o[u]=(function(e){return r[e]}).bind(0,u));n.d(t,o)},43173:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let r=n(41428);n(29362),n(40929);let i=r._(n(56963));function o(e,t){var n;let r={loading:e=>{let{error:t,isLoading:n,pastDelay:r}=e;return null}};"function"==typeof e&&(r.loader=e);let o={...r,...t};return(0,i.default)({...o,modules:null==(n=o.loadableGenerated)?void 0:n.modules})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},85359:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BailoutToCSR",{enumerable:!0,get:function(){return i}});let r=n(5282);function i(e){let{reason:t,children:n}=e;if("undefined"==typeof window)throw new r.BailoutToCSRError(t);return n}},56963:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let r=n(29362),i=n(40929),o=n(85359),u=n(2084);function a(e){return{default:e&&"default"in e?e.default:e}}let s={loader:()=>Promise.resolve(a(()=>null)),loading:null,ssr:!0},l=function(e){let t={...s,...e},n=(0,i.lazy)(()=>t.loader().then(a)),l=t.loading;function c(e){let a=l?(0,r.jsx)(l,{isLoading:!0,pastDelay:!0,error:null}):null,s=t.ssr?(0,r.jsxs)(r.Fragment,{children:["undefined"==typeof window?(0,r.jsx)(u.PreloadCss,{moduleIds:t.modules}):null,(0,r.jsx)(n,{...e})]}):(0,r.jsx)(o.BailoutToCSR,{reason:"next/dynamic",children:(0,r.jsx)(n,{...e})});return(0,r.jsx)(i.Suspense,{fallback:a,children:s})}return c.displayName="LoadableComponent",c}},2084:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PreloadCss",{enumerable:!0,get:function(){return o}});let r=n(29362),i=n(7408);function o(e){let{moduleIds:t}=e;if("undefined"!=typeof window)return null;let n=(0,i.getExpectedRequestStore)("next/dynamic css"),o=[];if(n.reactLoadableManifest&&t){let e=n.reactLoadableManifest;for(let n of t){if(!e[n])continue;let t=e[n].files.filter(e=>e.endsWith(".css"));o.push(...t)}}return 0===o.length?null:(0,r.jsx)(r.Fragment,{children:o.map(e=>(0,r.jsx)("link",{precedence:"dynamic",rel:"stylesheet",href:n.assetPrefix+"/_next/"+encodeURI(e),as:"style"},e))})}},58778:function(e,t,n){"use strict";var r=n(44369);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,u){if(u!==r){var a=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 a.name="Invariant Violation",a}}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}},82674:function(e,t,n){e.exports=n(58778)()},44369:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},21064:function(e,t,n){"use strict";n.d(t,{uI:function(){return G}});var r=n(40929),i=n(82674),o=n.n(i),u=n(69178),a=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function s(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),r=a.get(n);r&&Object.defineProperty(e,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return e}(e);if("string"!=typeof n.path){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:"string"==typeof t?t:"string"==typeof r&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}var l=[".DS_Store","Thumbs.db"];function c(e){return"object"==typeof e&&null!==e}function d(e){return e.filter(function(e){return -1===l.indexOf(e.name)})}function f(e){if(null===e)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function p(e){if("function"!=typeof e.webkitGetAsEntry)return h(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?m(t):h(e)}function h(e){var t=e.getAsFile();return t?Promise.resolve(s(t)):Promise.reject("".concat(e," is not a File"))}function g(e){return(0,u.__awaiter)(this,void 0,void 0,function(){return(0,u.__generator)(this,function(t){return[2,e.isDirectory?m(e):function(e){return(0,u.__awaiter)(this,void 0,void 0,function(){return(0,u.__generator)(this,function(t){return[2,new Promise(function(t,n){e.file(function(n){t(s(n,e.fullPath))},function(e){n(e)})})]})})}(e)]})})}function m(e){var t=e.createReader();return new Promise(function(e,n){var r=[];!function i(){var o=this;t.readEntries(function(t){return(0,u.__awaiter)(o,void 0,void 0,function(){var o;return(0,u.__generator)(this,function(u){switch(u.label){case 0:if(t.length)return[3,5];u.label=1;case 1:return u.trys.push([1,3,,4]),[4,Promise.all(r)];case 2:return e(u.sent()),[3,4];case 3:return n(u.sent()),[3,4];case 4:return[3,6];case 5:o=Promise.all(t.map(g)),r.push(o),i(),u.label=6;case 6:return[2]}})})},function(e){n(e)})}()})}var y=n(43427);function v(e){return function(e){if(Array.isArray(e))return P(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||O(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(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 w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach(function(t){E(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],u=!0,a=!1;try{for(i=i.call(e);!(u=(n=i.next()).done)&&(o.push(n.value),!t||o.length!==t);u=!0);}catch(e){a=!0,r=e}finally{try{u||null==i.return||i.return()}finally{if(a)throw r}}return o}}(e,t)||O(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(e,t){if(e){if("string"==typeof e)return P(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return P(e,t)}}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var C=function(e){var t=Array.isArray(e=Array.isArray(e)&&1===e.length?e[0]:e)?"one of ".concat(e.join(", ")):e;return{code:"file-invalid-type",message:"File type must be ".concat(t)}},A=function(e){return{code:"file-too-large",message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},S=function(e){return{code:"file-too-small",message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},D={code:"too-many-files",message:"Too many files"};function j(e,t){var n="application/x-moz-file"===e.type||(0,y.Z)(e,t);return[n,n?null:C(t)]}function k(e,t,n){if(F(e.size)){if(F(t)&&F(n)){if(e.size>n)return[!1,A(n)];if(e.size<t)return[!1,S(t)]}else if(F(t)&&e.size<t)return[!1,S(t)];else if(F(n)&&e.size>n)return[!1,A(n)]}return[!0,null]}function F(e){return null!=e}function R(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function _(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(e){return"Files"===e||"application/x-moz-file"===e}):!!e.target&&!!e.target.files}function M(e){e.preventDefault()}function T(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.some(function(t){return!R(e)&&t&&t.apply(void 0,[e].concat(r)),R(e)})}}function N(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)}function L(e){return/^.*\.[\w]+$/.test(e)}var I=["children"],B=["open"],H=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],z=["refKey","onChange","onClick"];function V(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],u=!0,a=!1;try{for(i=i.call(e);!(u=(n=i.next()).done)&&(o.push(n.value),!t||o.length!==t);u=!0);}catch(e){a=!0,r=e}finally{try{u||null==i.return||i.return()}finally{if(a)throw r}}return o}}(e,t)||U(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function U(e,t){if(e){if("string"==typeof e)return q(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return q(e,t)}}function q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function W(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 Z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?W(Object(n),!0).forEach(function(t){K(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function K(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $(e,t){if(null==e)return{};var n,r,i=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,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var X=(0,r.forwardRef)(function(e,t){var n=e.children,i=G($(e,I)),o=i.open,u=$(i,B);return(0,r.useImperativeHandle)(t,function(){return{open:o}},[o]),r.createElement(r.Fragment,null,n(Z(Z({},u),{},{open:o})))});X.displayName="Dropzone";var Y={disabled:!1,getFilesFromEvent:function(e){return(0,u.__awaiter)(this,void 0,void 0,function(){return(0,u.__generator)(this,function(t){return c(e)&&c(e.dataTransfer)?[2,function(e,t){return(0,u.__awaiter)(this,void 0,void 0,function(){var n;return(0,u.__generator)(this,function(r){switch(r.label){case 0:if(!e.items)return[3,2];if(n=f(e.items).filter(function(e){return"file"===e.kind}),"drop"!==t)return[2,n];return[4,Promise.all(n.map(p))];case 1:return[2,d(function e(t){return t.reduce(function(t,n){return(0,u.__spreadArray)((0,u.__spreadArray)([],(0,u.__read)(t),!1),(0,u.__read)(Array.isArray(n)?e(n):[n]),!1)},[])}(r.sent()))];case 2:return[2,d(f(e.files).map(function(e){return s(e)}))]}})})}(e.dataTransfer,e.type)]:c(e)&&c(e.target)?[2,f(e.target.files).map(function(e){return s(e)})]:Array.isArray(e)&&e.every(function(e){return"getFile"in e&&"function"==typeof e.getFile})?[2,function(e){return(0,u.__awaiter)(this,void 0,void 0,function(){return(0,u.__generator)(this,function(t){switch(t.label){case 0:return[4,Promise.all(e.map(function(e){return e.getFile()}))];case 1:return[2,t.sent().map(function(e){return s(e)})]}})})}(e)]:[2,[]]})})},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};X.defaultProps=Y,X.propTypes={children:o().func,accept:o().objectOf(o().arrayOf(o().string)),multiple:o().bool,preventDropOnDocument:o().bool,noClick:o().bool,noKeyboard:o().bool,noDrag:o().bool,noDragEventsBubbling:o().bool,minSize:o().number,maxSize:o().number,maxFiles:o().number,disabled:o().bool,getFilesFromEvent:o().func,onFileDialogCancel:o().func,onFileDialogOpen:o().func,useFsAccessApi:o().bool,autoFocus:o().bool,onDragEnter:o().func,onDragLeave:o().func,onDragOver:o().func,onDrop:o().func,onDropAccepted:o().func,onDropRejected:o().func,onError:o().func,validator:o().func};var Q={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function G(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Z(Z({},Y),e),n=t.accept,i=t.disabled,o=t.getFilesFromEvent,u=t.maxSize,a=t.minSize,s=t.multiple,l=t.maxFiles,c=t.onDragEnter,d=t.onDragLeave,f=t.onDragOver,p=t.onDrop,h=t.onDropAccepted,g=t.onDropRejected,m=t.onFileDialogCancel,y=t.onFileDialogOpen,b=t.useFsAccessApi,O=t.autoFocus,P=t.preventDropOnDocument,C=t.noClick,A=t.noKeyboard,S=t.noDrag,I=t.noDragEventsBubbling,B=t.onError,W=t.validator,X=(0,r.useMemo)(function(){return function(e){if(F(e))return Object.entries(e).reduce(function(e,t){var n=x(t,2),r=n[0],i=n[1];return[].concat(v(e),[r],v(i))},[]).filter(function(e){return N(e)||L(e)}).join(",")}(n)},[n]),G=(0,r.useMemo)(function(){return F(n)?[{description:"Files",accept:Object.entries(n).filter(function(e){var t=x(e,2),n=t[0],r=t[1],i=!0;return N(n)||(console.warn('Skipped "'.concat(n,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),i=!1),Array.isArray(r)&&r.every(L)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),i=!1),i}).reduce(function(e,t){var n=x(t,2),r=n[0],i=n[1];return w(w({},e),{},E({},r,i))},{})}]:n},[n]),et=(0,r.useMemo)(function(){return"function"==typeof y?y:ee},[y]),en=(0,r.useMemo)(function(){return"function"==typeof m?m:ee},[m]),er=(0,r.useRef)(null),ei=(0,r.useRef)(null),eo=V((0,r.useReducer)(J,Q),2),eu=eo[0],ea=eo[1],es=eu.isFocused,el=eu.isFileDialogActive,ec=(0,r.useRef)("undefined"!=typeof window&&window.isSecureContext&&b&&"showOpenFilePicker"in window),ed=function(){!ec.current&&el&&setTimeout(function(){ei.current&&!ei.current.files.length&&(ea({type:"closeDialog"}),en())},300)};(0,r.useEffect)(function(){return window.addEventListener("focus",ed,!1),function(){window.removeEventListener("focus",ed,!1)}},[ei,el,en,ec]);var ef=(0,r.useRef)([]),ep=function(e){er.current&&er.current.contains(e.target)||(e.preventDefault(),ef.current=[])};(0,r.useEffect)(function(){return P&&(document.addEventListener("dragover",M,!1),document.addEventListener("drop",ep,!1)),function(){P&&(document.removeEventListener("dragover",M),document.removeEventListener("drop",ep))}},[er,P]),(0,r.useEffect)(function(){return!i&&O&&er.current&&er.current.focus(),function(){}},[er,O,i]);var eh=(0,r.useCallback)(function(e){B?B(e):console.error(e)},[B]),eg=(0,r.useCallback)(function(e){var t;e.preventDefault(),e.persist(),eD(e),ef.current=[].concat(function(e){if(Array.isArray(e))return q(e)}(t=ef.current)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||U(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[e.target]),_(e)&&Promise.resolve(o(e)).then(function(t){if(!R(e)||I){var n,r,i,o,d,f,p,h,g=t.length,m=g>0&&(r=(n={files:t,accept:X,minSize:a,maxSize:u,multiple:s,maxFiles:l,validator:W}).files,i=n.accept,o=n.minSize,d=n.maxSize,f=n.multiple,p=n.maxFiles,h=n.validator,(!!f||!(r.length>1))&&(!f||!(p>=1)||!(r.length>p))&&r.every(function(e){var t=x(j(e,i),1)[0],n=x(k(e,o,d),1)[0],r=h?h(e):null;return t&&n&&!r}));ea({isDragAccept:m,isDragReject:g>0&&!m,isDragActive:!0,type:"setDraggedFiles"}),c&&c(e)}}).catch(function(e){return eh(e)})},[o,c,eh,I,X,a,u,s,l,W]),em=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),eD(e);var t=_(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&f&&f(e),!1},[f,I]),ey=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),eD(e);var t=ef.current.filter(function(e){return er.current&&er.current.contains(e)}),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),ef.current=t,!(t.length>0)&&(ea({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),_(e)&&d&&d(e))},[er,d,I]),ev=(0,r.useCallback)(function(e,t){var n=[],r=[];e.forEach(function(e){var t=V(j(e,X),2),i=t[0],o=t[1],s=V(k(e,a,u),2),l=s[0],c=s[1],d=W?W(e):null;if(i&&l&&!d)n.push(e);else{var f=[o,c];d&&(f=f.concat(d)),r.push({file:e,errors:f.filter(function(e){return e})})}}),(!s&&n.length>1||s&&l>=1&&n.length>l)&&(n.forEach(function(e){r.push({file:e,errors:[D]})}),n.splice(0)),ea({acceptedFiles:n,fileRejections:r,type:"setFiles"}),p&&p(n,r,t),r.length>0&&g&&g(r,t),n.length>0&&h&&h(n,t)},[ea,s,X,a,u,l,p,h,g,W]),eb=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),eD(e),ef.current=[],_(e)&&Promise.resolve(o(e)).then(function(t){(!R(e)||I)&&ev(t,e)}).catch(function(e){return eh(e)}),ea({type:"reset"})},[o,ev,eh,I]),ew=(0,r.useCallback)(function(){if(ec.current){ea({type:"openDialog"}),et(),window.showOpenFilePicker({multiple:s,types:G}).then(function(e){return o(e)}).then(function(e){ev(e,null),ea({type:"closeDialog"})}).catch(function(e){e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)?(en(e),ea({type:"closeDialog"})):e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)?(ec.current=!1,ei.current?(ei.current.value=null,ei.current.click()):eh(Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):eh(e)});return}ei.current&&(ea({type:"openDialog"}),et(),ei.current.value=null,ei.current.click())},[ea,et,en,b,ev,eh,G,s]),eE=(0,r.useCallback)(function(e){er.current&&er.current.isEqualNode(e.target)&&(" "===e.key||"Enter"===e.key||32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),ew())},[er,ew]),ex=(0,r.useCallback)(function(){ea({type:"focus"})},[]),eO=(0,r.useCallback)(function(){ea({type:"blur"})},[]),eP=(0,r.useCallback)(function(){C||(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return -1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/")}()?setTimeout(ew,0):ew())},[C,ew]),eC=function(e){return i?null:e},eA=function(e){return A?null:eC(e)},eS=function(e){return S?null:eC(e)},eD=function(e){I&&e.stopPropagation()},ej=(0,r.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=e.role,r=e.onKeyDown,o=e.onFocus,u=e.onBlur,a=e.onClick,s=e.onDragEnter,l=e.onDragOver,c=e.onDragLeave,d=e.onDrop,f=$(e,H);return Z(Z(K({onKeyDown:eA(T(r,eE)),onFocus:eA(T(o,ex)),onBlur:eA(T(u,eO)),onClick:eC(T(a,eP)),onDragEnter:eS(T(s,eg)),onDragOver:eS(T(l,em)),onDragLeave:eS(T(c,ey)),onDrop:eS(T(d,eb)),role:"string"==typeof n&&""!==n?n:"presentation"},void 0===t?"ref":t,er),i||A?{}:{tabIndex:0}),f)}},[er,eE,ex,eO,eP,eg,em,ey,eb,A,S,i]),ek=(0,r.useCallback)(function(e){e.stopPropagation()},[]),eF=(0,r.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=e.onChange,r=e.onClick,i=$(e,z);return Z(Z({},K({accept:X,multiple:s,type:"file",style:{display:"none"},onChange:eC(T(n,eb)),onClick:eC(T(r,ek)),tabIndex:-1},void 0===t?"ref":t,ei)),i)}},[ei,n,s,eb,i]);return Z(Z({},eu),{},{isFocused:es&&!i,getRootProps:ej,getInputProps:eF,rootRef:er,inputRef:ei,open:eC(ew)})}function J(e,t){switch(t.type){case"focus":return Z(Z({},e),{},{isFocused:!0});case"blur":return Z(Z({},e),{},{isFocused:!1});case"openDialog":return Z(Z({},Q),{},{isFileDialogActive:!0});case"closeDialog":return Z(Z({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Z(Z({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Z(Z({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Z({},Q);default:return e}}function ee(){}},53856:function(e,t,n){"use strict";function r(e){return function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance")}()}function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function o(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){return(a="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)}function s(e){return(s="function"==typeof Symbol&&"symbol"===a(Symbol.iterator)?function(e){return a(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":a(e)})(e)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{p:function(){return eU},r:function(){return ez}});var d=n(40929),f=n(38889),p=n.n(f);function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var u,a=e[Symbol.iterator]();!(r=(u=a.next()).done)&&(n.push(u.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance")}()}var g=n(46368),m=n.n(g),y=n(8497),v=n.n(y),b=function(e){return e===Object(e)?Object.keys(e):[]},w=function(e){return e===Object(e)?Object.values(e):[]},E=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce(function(e,t){return function e(t,n){var r=Object.assign({},t);return O(t)&&O(n)&&b(n).forEach(function(i){O(n[i])&&i in t?r[i]=e(t[i],n[i]):Object.assign(r,m()({},i,n[i]))}),r}(e,t)},e)},x=function(e,t){var n=Object.assign({},e);if(t)for(var r=0;r<t.length;r++)delete n[t[r]];return n},O=function(e){return e===Object(e)&&!(e instanceof Date)&&!Array.isArray(e)},P=function(e){return"&"===e[0]},C=function(e){return!P(e)},A=function(e){return e.replace(/-(\w)/g,function(e,t){return t.toUpperCase()})},S=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=b(e),r={},i=0,o=n.length;i<o;i+=1){var u=n[i];("[object Object]"!==Object.prototype.toString.call(e[u])||":"===u[0]||"@"===u[0]||t.indexOf(u)>=0)&&(r[u]=e[u])}return r},D=function(e,t){for(var n=t.map(A),r=b(e),i={},o=0,u=r.length;o<u;o+=1){var a=r[o];(t.indexOf(a)>=0||n.indexOf(A(a))>=0)&&(i[a]=e[a])}return i},j=function e(t,n){for(var r=E.apply(void 0,[{},x(t,n)].concat(v()(w(D(t,n))))),i=b(r).filter(P),o=0,u=i.length;o<u;o+=1){var a=i[o],s=e(r[a],n);n.indexOf(a)>=0?(delete r[a],r=E({},r,s)):r[a]=s}return r};function k(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 F(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach(function(t){m()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var R=["animationName"],_=function(e){var t=e.style,n=e.className;return F(F({},t?{style:S(t,R)}:{}),n?{className:n}:{})},M=(0,d.createContext)(_);M.Provider;var T=function(e){return e?"string"==typeof e?[e]:Array.isArray(e)?e:b(e).reduce(function(t,n){return t.concat(e[n]?[n]:[])},[]):[]},N={};function L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?L(Object(n),!0).forEach(function(t){m()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var B=function(e){var t=e&&b(e)[0];return t&&t.split("__")[0].split("--")[0]},H=function(e,t,n){if(e){var r=e.split(" ")[0],i=[].concat(v()(0===t.length?n.map(function(e){return"".concat(r,"--").concat(e.substring(1))}):[]),v()(t.map(function(e){return"".concat(r,"__").concat(e)})));return 0===t.length?[e].concat(v()(i)):i}},z=function e(t){var n,r=t.style,i=t.className,o=t.classNames,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_,a=i||B(o)||(null==r?void 0:r.className),s="function"==typeof r?r:(n=function(t,n){var i=T(t);p()(Array.isArray(i),"First parameter must be a string, an array of strings, a plain object with boolean values, or a falsy value."),p()(!n||O(n),"Optional second parameter must be a plain object.");var s=i.filter(P),l=i.filter(C),c=l.length>0?function(e){return w(D(e,l))}:function(e){return[e]},d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return c(j(e,s))},f=H(a,l,s);return e(I(I(I({},(r||n)&&{style:E.apply(void 0,[{}].concat(v()(d(n)),v()(d(r))))}),f&&{className:f.join(" ")}),o&&{classNames:o}),u)},function(e,t){var r,i=t||N;n.memoize=n.memoize||new WeakMap,n.memoize.has(i)?r=n.memoize.get(i):(r={},n.memoize.set(i,r));var o=T(e).join(" ");return o in r?r[o]:r[o]=n(e||[],t)}),l=I({},"function"==typeof r?r:{style:r}),c=v()(new Set([].concat(v()(l.className?l.className.split(" "):[]),v()(a?a.split(" "):[])))),d=o?(c.map(function(e){return o[e]})||[]).filter(Boolean):c;return Object.assign(s,u(I(I({},l),d.length>0?{className:d.join(" ")}:{}))),s},V=function(e,t,n){var r=t.style,i=t.className,o=t.classNames,u=(0,d.useContext)(M);return(0,d.useMemo)(function(){return z({style:r,className:i,classNames:o},u)},[r,i,o,u])(n,e)};function U(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 q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?U(Object(n),!0).forEach(function(t){m()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var W=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(function(e,t){return q(q(q({},e),"function"==typeof t?t:{}),{},{style:q(q({},e.style),"function"==typeof t?t.style:t)})},{})},Z=n(82674),K=n.n(Z),$=n(10211),X=function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},Y="__id__",Q="__display__",G=function(e,t){p()("id"===t||"display"===t,'Second arg must be either "id" or "display", got: "'.concat(t,'"'));var n=e.indexOf(Q),r=e.indexOf(Y);return(n<0&&(n=null),r<0&&(r=null),p()(null!==n||null!==r,"The markup '".concat(e,"' does not contain either of the placeholders '__id__' or '__display__'")),null!==n&&null!==r)?"id"===t&&r<=n||"display"===t&&n<=r?0:1:0},J=function(e){var t=/^\/(.+)\/(\w+)?$/;return RegExp(e.map(function(e){var n=h(t.exec(e.toString()),3),r=n[1],i=n[2];return p()(!i,"RegExp flags are not supported. Change /".concat(r,"/").concat(i," into /").concat(r,"/")),"(".concat(r,")")}).join("|"),"g")},ee=function(e){var t=0;return e.indexOf("__id__")>=0&&t++,e.indexOf("__display__")>=0&&t++,t},et=function(){},en=function(e,t,n){for(var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:et,o=J(t.map(function(e){return e.regex})),u=2,a=t.map(function(e){var t=e.markup,n=u;return u+=ee(t)+1,n}),s=0,l=0;null!==(r=o.exec(e));){var c=a.find(function(e){return!!r[e]}),d=a.indexOf(c),f=t[d],p=f.markup,h=f.displayTransform,g=c+G(p,"id"),m=c+G(p,"display"),y=r[g],v=h(y,r[m]),b=e.substring(s,r.index);i(b,s,l),l+=b.length,n(r[0],r.index,l,y,v,d,s),l+=v.length,s=o.lastIndex}s<e.length&&i(e.substring(s),s,l)},er=function(e,t){var n="";return en(e,t,function(e,t,r,i,o){n+=o},function(e){n+=e}),n},ei=function(e,t,n){var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"START";return"number"!=typeof n?n:(en(e,t,function(e,t,o,u,a,s,l){void 0===r&&o+a.length>n&&(r="NULL"===i?null:t+("END"===i?e.length:0))},function(e,t,i){void 0===r&&i+e.length>=n&&(r=t+n-i)}),void 0===r?e.length:r)},eo=function(e,t,n,r){return e.substring(0,t)+r+e.substring(n)},eu=function(e,t,n,r){var i=n.selectionStartBefore,o=n.selectionEndBefore,u=n.selectionEndAfter,a=er(e,r),s=a.length-t.length;"undefined"===i&&(i=u+s),"undefined"===o&&(o=i),i===o&&o===u&&a.length===t.length&&(i-=1);var l=t.slice(i,u),c=Math.min(i,u),d=o;i===u&&(d=Math.max(o,i+s));var f=ei(e,r,c,"START"),p=ei(e,r,d,"END"),h=ei(e,r,c,"NULL"),g=ei(e,r,d,"NULL"),m=eo(e,f,p,l);if(!(null===h||null===g)){var y=er(m,r);if(y!==t){for(c=0;t[c]===y[c];)c++;l=t.slice(c,u),d=a.lastIndexOf(t.substring(u)),f=ei(e,r,c,"START"),p=ei(e,r,d,"END"),m=eo(e,f,p,l)}}return m},ea=function(e,t,n){var r=n,i=!1;if(en(e,t,function(e,t,o,u,a,s,l){o<=n&&o+a.length>n&&(r=o,i=!0)}),i)return r},es=function(e,t){var n=[];return en(e,t,function(e,t,r,i,o,u,a){n.push({id:i,display:o,childIndex:u,index:t,plainTextIndex:r})}),n},el=function(e,t){return"".concat(e,"-").concat(t)},ec=function(e){return Object.values(e).reduce(function(e,t){return e+t.results.length},0)},ed=function(e,t){var n=es(e,t),r=n[n.length-1];return r?r.plainTextIndex+r.display.length:0},ef=function(e){var t=X(e),n=e[e.indexOf(Q)+Q.length],r=e[e.indexOf(Y)+Y.length];return new RegExp(t.replace(Q,"([^".concat(X(n||""),"]+?)")).replace(Y,"([^".concat(X(r||""),"]+?)")))},ep=function(e){return d.Children.toArray(e).map(function(e){var t=e.props,n=t.markup,r=t.regex,i=t.displayTransform;return{markup:n,regex:r?eh(r,n):ef(n),displayTransform:i||function(e,t){return t||e}}})},eh=function(e,t){var n=RegExp(e.toString()+"|").exec("").length-1,r=ee(t);return p()(n===r,"Number of capturing groups in RegExp ".concat(e.toString()," (").concat(n,") does not match the number of placeholders in the markup '").concat(t,"' (").concat(r,")")),e},eg=[{base:"A",letters:/(&#65;|&#9398;|&#65313;|&#192;|&#193;|&#194;|&#7846;|&#7844;|&#7850;|&#7848;|&#195;|&#256;|&#258;|&#7856;|&#7854;|&#7860;|&#7858;|&#550;|&#480;|&#196;|&#478;|&#7842;|&#197;|&#506;|&#461;|&#512;|&#514;|&#7840;|&#7852;|&#7862;|&#7680;|&#260;|&#570;|&#11375;|[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F])/g},{base:"AA",letters:/(&#42802;|[\uA732])/g},{base:"AE",letters:/(&#198;|&#508;|&#482;|[\u00C6\u01FC\u01E2])/g},{base:"AO",letters:/(&#42804;|[\uA734])/g},{base:"AU",letters:/(&#42806;|[\uA736])/g},{base:"AV",letters:/(&#42808;|&#42810;|[\uA738\uA73A])/g},{base:"AY",letters:/(&#42812;|[\uA73C])/g},{base:"B",letters:/(&#66;|&#9399;|&#65314;|&#7682;|&#7684;|&#7686;|&#579;|&#386;|&#385;|[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181])/g},{base:"C",letters:/(&#67;|&#9400;|&#65315;|&#262;|&#264;|&#266;|&#268;|&#199;|&#7688;|&#391;|&#571;|&#42814;|[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E])/g},{base:"D",letters:/(&#68;|&#9401;|&#65316;|&#7690;|&#270;|&#7692;|&#7696;|&#7698;|&#7694;|&#272;|&#395;|&#394;|&#393;|&#42873;|&#208;|[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779\u00D0])/g},{base:"DZ",letters:/(&#497;|&#452;|[\u01F1\u01C4])/g},{base:"Dz",letters:/(&#498;|&#453;|[\u01F2\u01C5])/g},{base:"E",letters:/(&#69;|&#9402;|&#65317;|&#200;|&#201;|&#202;|&#7872;|&#7870;|&#7876;|&#7874;|&#7868;|&#274;|&#7700;|&#7702;|&#276;|&#278;|&#203;|&#7866;|&#282;|&#516;|&#518;|&#7864;|&#7878;|&#552;|&#7708;|&#280;|&#7704;|&#7706;|&#400;|&#398;|[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E])/g},{base:"F",letters:/(&#70;|&#9403;|&#65318;|&#7710;|&#401;|&#42875;|[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B])/g},{base:"G",letters:/(&#71;|&#9404;|&#65319;|&#500;|&#284;|&#7712;|&#286;|&#288;|&#486;|&#290;|&#484;|&#403;|&#42912;|&#42877;|&#42878;|[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E])/g},{base:"H",letters:/(&#72;|&#9405;|&#65320;|&#292;|&#7714;|&#7718;|&#542;|&#7716;|&#7720;|&#7722;|&#294;|&#11367;|&#11381;|&#42893;|[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D])/g},{base:"I",letters:/(&#73;|&#9406;|&#65321;|&#204;|&#205;|&#206;|&#296;|&#298;|&#300;|&#304;|&#207;|&#7726;|&#7880;|&#463;|&#520;|&#522;|&#7882;|&#302;|&#7724;|&#407;|[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197])/g},{base:"J",letters:/(&#74;|&#9407;|&#65322;|&#308;|&#584;|[\u004A\u24BF\uFF2A\u0134\u0248])/g},{base:"K",letters:/(&#75;|&#9408;|&#65323;|&#7728;|&#488;|&#7730;|&#310;|&#7732;|&#408;|&#11369;|&#42816;|&#42818;|&#42820;|&#42914;|[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2])/g},{base:"L",letters:/(&#76;|&#9409;|&#65324;|&#319;|&#313;|&#317;|&#7734;|&#7736;|&#315;|&#7740;|&#7738;|&#321;|&#573;|&#11362;|&#11360;|&#42824;|&#42822;|&#42880;|[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780])/g},{base:"LJ",letters:/(&#455;|[\u01C7])/g},{base:"Lj",letters:/(&#456;|[\u01C8])/g},{base:"M",letters:/(&#77;|&#9410;|&#65325;|&#7742;|&#7744;|&#7746;|&#11374;|&#412;|[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C])/g},{base:"N",letters:/(&#78;|&#9411;|&#65326;|&#504;|&#323;|&#209;|&#7748;|&#327;|&#7750;|&#325;|&#7754;|&#7752;|&#544;|&#413;|&#42896;|&#42916;|&#330;|[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4\u014A])/g},{base:"NJ",letters:/(&#458;|[\u01CA])/g},{base:"Nj",letters:/(&#459;|[\u01CB])/g},{base:"O",letters:/(&#79;|&#9412;|&#65327;|&#210;|&#211;|&#212;|&#7890;|&#7888;|&#7894;|&#7892;|&#213;|&#7756;|&#556;|&#7758;|&#332;|&#7760;|&#7762;|&#334;|&#558;|&#560;|&#214;|&#554;|&#7886;|&#336;|&#465;|&#524;|&#526;|&#416;|&#7900;|&#7898;|&#7904;|&#7902;|&#7906;|&#7884;|&#7896;|&#490;|&#492;|&#216;|&#510;|&#390;|&#415;|&#42826;|&#42828;|[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C])/g},{base:"OE",letters:/(&#338;|[\u0152])/g},{base:"OI",letters:/(&#418;|[\u01A2])/g},{base:"OO",letters:/(&#42830;|[\uA74E])/g},{base:"OU",letters:/(&#546;|[\u0222])/g},{base:"P",letters:/(&#80;|&#9413;|&#65328;|&#7764;|&#7766;|&#420;|&#11363;|&#42832;|&#42834;|&#42836;|[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754])/g},{base:"Q",letters:/(&#81;|&#9414;|&#65329;|&#42838;|&#42840;|&#586;|[\u0051\u24C6\uFF31\uA756\uA758\u024A])/g},{base:"R",letters:/(&#82;|&#9415;|&#65330;|&#340;|&#7768;|&#344;|&#528;|&#530;|&#7770;|&#7772;|&#342;|&#7774;|&#588;|&#11364;|&#42842;|&#42918;|&#42882;|[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782])/g},{base:"S",letters:/(&#83;|&#9416;|&#65331;|&#7838;|&#346;|&#7780;|&#348;|&#7776;|&#352;|&#7782;|&#7778;|&#7784;|&#536;|&#350;|&#11390;|&#42920;|&#42884;|[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784])/g},{base:"T",letters:/(&#84;|&#9417;|&#65332;|&#7786;|&#356;|&#7788;|&#538;|&#354;|&#7792;|&#7790;|&#358;|&#428;|&#430;|&#574;|&#42886;|[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786])/g},{base:"TH",letters:/(&#222;|[\u00DE])/g},{base:"TZ",letters:/(&#42792;|[\uA728])/g},{base:"U",letters:/(&#85;|&#9418;|&#65333;|&#217;|&#218;|&#219;|&#360;|&#7800;|&#362;|&#7802;|&#364;|&#220;|&#475;|&#471;|&#469;|&#473;|&#7910;|&#366;|&#368;|&#467;|&#532;|&#534;|&#431;|&#7914;|&#7912;|&#7918;|&#7916;|&#7920;|&#7908;|&#7794;|&#370;|&#7798;|&#7796;|&#580;|[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244])/g},{base:"V",letters:/(&#86;|&#9419;|&#65334;|&#7804;|&#7806;|&#434;|&#42846;|&#581;|[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245])/g},{base:"VY",letters:/(&#42848;|[\uA760])/g},{base:"W",letters:/(&#87;|&#9420;|&#65335;|&#7808;|&#7810;|&#372;|&#7814;|&#7812;|&#7816;|&#11378;|[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72])/g},{base:"X",letters:/(&#88;|&#9421;|&#65336;|&#7818;|&#7820;|[\u0058\u24CD\uFF38\u1E8A\u1E8C])/g},{base:"Y",letters:/(&#89;|&#9422;|&#65337;|&#7922;|&#221;|&#374;|&#7928;|&#562;|&#7822;|&#376;|&#7926;|&#7924;|&#435;|&#590;|&#7934;|[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE])/g},{base:"Z",letters:/(&#90;|&#9423;|&#65338;|&#377;|&#7824;|&#379;|&#381;|&#7826;|&#7828;|&#437;|&#548;|&#11391;|&#11371;|&#42850;|[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762])/g},{base:"a",letters:/(&#97;|&#9424;|&#65345;|&#7834;|&#224;|&#225;|&#226;|&#7847;|&#7845;|&#7851;|&#7849;|&#227;|&#257;|&#259;|&#7857;|&#7855;|&#7861;|&#7859;|&#551;|&#481;|&#228;|&#479;|&#7843;|&#229;|&#507;|&#462;|&#513;|&#515;|&#7841;|&#7853;|&#7863;|&#7681;|&#261;|&#11365;|&#592;|[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250])/g},{base:"aa",letters:/(&#42803;|[\uA733])/g},{base:"ae",letters:/(&#230;|&#509;|&#483;|[\u00E6\u01FD\u01E3])/g},{base:"ao",letters:/(&#42805;|[\uA735])/g},{base:"au",letters:/(&#42807;|[\uA737])/g},{base:"av",letters:/(&#42809;|&#42811;|[\uA739\uA73B])/g},{base:"ay",letters:/(&#42813;|[\uA73D])/g},{base:"b",letters:/(&#98;|&#9425;|&#65346;|&#7683;|&#7685;|&#7687;|&#384;|&#387;|&#595;|[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253])/g},{base:"c",letters:/(&#99;|&#9426;|&#65347;|&#263;|&#265;|&#267;|&#269;|&#231;|&#7689;|&#392;|&#572;|&#42815;|&#8580;|[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184])/g},{base:"d",letters:/(&#100;|&#9427;|&#65348;|&#7691;|&#271;|&#7693;|&#7697;|&#7699;|&#7695;|&#273;|&#396;|&#598;|&#599;|&#42874;|&#240;|[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A\u00F0])/g},{base:"dz",letters:/(&#499;|&#454;|[\u01F3\u01C6])/g},{base:"e",letters:/(&#101;|&#9428;|&#65349;|&#232;|&#233;|&#234;|&#7873;|&#7871;|&#7877;|&#7875;|&#7869;|&#275;|&#7701;|&#7703;|&#277;|&#279;|&#235;|&#7867;|&#283;|&#517;|&#519;|&#7865;|&#7879;|&#553;|&#7709;|&#281;|&#7705;|&#7707;|&#583;|&#603;|&#477;|[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD])/g},{base:"f",letters:/(&#102;|&#9429;|&#65350;|&#7711;|&#402;|&#42876;|[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C])/g},{base:"g",letters:/(&#103;|&#9430;|&#65351;|&#501;|&#285;|&#7713;|&#287;|&#289;|&#487;|&#291;|&#485;|&#608;|&#42913;|&#7545;|&#42879;|[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F])/g},{base:"h",letters:/(&#104;|&#9431;|&#65352;|&#293;|&#7715;|&#7719;|&#543;|&#7717;|&#7721;|&#7723;|&#7830;|&#295;|&#11368;|&#11382;|&#613;|[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265])/g},{base:"hv",letters:/(&#405;|[\u0195])/g},{base:"i",letters:/(&#105;|&#9432;|&#65353;|&#236;|&#237;|&#238;|&#297;|&#299;|&#301;|&#239;|&#7727;|&#7881;|&#464;|&#521;|&#523;|&#7883;|&#303;|&#7725;|&#616;|&#305;|[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131])/g},{base:"ij",letters:/(&#307;|[\u0133])/g},{base:"j",letters:/(&#106;|&#9433;|&#65354;|&#309;|&#496;|&#585;|[\u006A\u24D9\uFF4A\u0135\u01F0\u0249])/g},{base:"k",letters:/(&#107;|&#9434;|&#65355;|&#7729;|&#489;|&#7731;|&#311;|&#7733;|&#409;|&#11370;|&#42817;|&#42819;|&#42821;|&#42915;|[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3])/g},{base:"l",letters:/(&#108;|&#9435;|&#65356;|&#320;|&#314;|&#318;|&#7735;|&#7737;|&#316;|&#7741;|&#7739;|&#322;|&#410;|&#619;|&#11361;|&#42825;|&#42881;|&#42823;|[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u0142\u019A\u026B\u2C61\uA749\uA781\uA747])/g},{base:"lj",letters:/(&#457;|[\u01C9])/g},{base:"m",letters:/(&#109;|&#9436;|&#65357;|&#7743;|&#7745;|&#7747;|&#625;|&#623;|[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F])/g},{base:"n",letters:/(&#110;|&#9437;|&#65358;|&#505;|&#324;|&#241;|&#7749;|&#328;|&#7751;|&#326;|&#7755;|&#7753;|&#414;|&#626;|&#329;|&#42897;|&#42917;|&#331;|[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5\u014B])/g},{base:"nj",letters:/(&#460;|[\u01CC])/g},{base:"o",letters:/(&#111;|&#9438;|&#65359;|&#242;|&#243;|&#244;|&#7891;|&#7889;|&#7895;|&#7893;|&#245;|&#7757;|&#557;|&#7759;|&#333;|&#7761;|&#7763;|&#335;|&#559;|&#561;|&#246;|&#555;|&#7887;|&#337;|&#466;|&#525;|&#527;|&#417;|&#7901;|&#7899;|&#7905;|&#7903;|&#7907;|&#7885;|&#7897;|&#491;|&#493;|&#248;|&#511;|&#596;|&#42827;|&#42829;|&#629;|[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275])/g},{base:"oe",letters:/(&#339;|[\u0153])/g},{base:"oi",letters:/(&#419;|[\u01A3])/g},{base:"ou",letters:/(&#547;|[\u0223])/g},{base:"oo",letters:/(&#42831;|[\uA74F])/g},{base:"p",letters:/(&#112;|&#9439;|&#65360;|&#7765;|&#7767;|&#421;|&#7549;|&#42833;|&#42835;|&#42837;|[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755])/g},{base:"q",letters:/(&#113;|&#9440;|&#65361;|&#587;|&#42839;|&#42841;|[\u0071\u24E0\uFF51\u024B\uA757\uA759])/g},{base:"r",letters:/(&#114;|&#9441;|&#65362;|&#341;|&#7769;|&#345;|&#529;|&#531;|&#7771;|&#7773;|&#343;|&#7775;|&#589;|&#637;|&#42843;|&#42919;|&#42883;|[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783])/g},{base:"s",letters:/(&#115;|&#9442;|&#65363;|&#347;|&#7781;|&#349;|&#7777;|&#353;|&#7783;|&#7779;|&#7785;|&#537;|&#351;|&#575;|&#42921;|&#42885;|&#7835;|&#383;|[\u0073\u24E2\uFF53\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B\u017F])/g},{base:"ss",letters:/(&#223;|[\u00DF])/g},{base:"t",letters:/(&#116;|&#9443;|&#65364;|&#7787;|&#7831;|&#357;|&#7789;|&#539;|&#355;|&#7793;|&#7791;|&#359;|&#429;|&#648;|&#11366;|&#42887;|[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787])/g},{base:"th",letters:/(&#254;|[\u00FE])/g},{base:"tz",letters:/(&#42793;|[\uA729])/g},{base:"u",letters:/(&#117;|&#9444;|&#65365;|&#249;|&#250;|&#251;|&#361;|&#7801;|&#363;|&#7803;|&#365;|&#252;|&#476;|&#472;|&#470;|&#474;|&#7911;|&#367;|&#369;|&#468;|&#533;|&#535;|&#432;|&#7915;|&#7913;|&#7919;|&#7917;|&#7921;|&#7909;|&#7795;|&#371;|&#7799;|&#7797;|&#649;|[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289])/g},{base:"v",letters:/(&#118;|&#9445;|&#65366;|&#7805;|&#7807;|&#651;|&#42847;|&#652;|[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C])/g},{base:"vy",letters:/(&#42849;|[\uA761])/g},{base:"w",letters:/(&#119;|&#9446;|&#65367;|&#7809;|&#7811;|&#373;|&#7815;|&#7813;|&#7832;|&#7817;|&#11379;|[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73])/g},{base:"x",letters:/(&#120;|&#9447;|&#65368;|&#7819;|&#7821;|[\u0078\u24E7\uFF58\u1E8B\u1E8D])/g},{base:"y",letters:/(&#121;|&#9448;|&#65369;|&#7923;|&#253;|&#375;|&#7929;|&#563;|&#7823;|&#255;|&#7927;|&#7833;|&#7925;|&#436;|&#591;|&#7935;|[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF])/g},{base:"z",letters:/(&#122;|&#9449;|&#65370;|&#378;|&#7825;|&#380;|&#382;|&#7827;|&#7829;|&#438;|&#549;|&#576;|&#11372;|&#42851;|[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763])/g}],em=function(e){var t=e;return eg.forEach(function(e){t=t.replace(e.letters,e.base)}),t},ey=function(e){return em(e).toLowerCase()},ev=function(e,t,n){return n?ey(e).indexOf(ey(t)):e.toLowerCase().indexOf(t.toLowerCase())},eb=function(e){return"number"==typeof e},ew=function(e){for(var t,n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var o=(t=[]).concat.apply(t,r);return Object.keys(e).reduce(function(t,n){return e.hasOwnProperty(n)&&!o.includes(n)&&void 0!==e[n]&&(t[n]=e[n]),t},{})},eE=["style","className","classNames"];function ex(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 eO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ex(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ex(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function eP(e,t){return function(n){var r=function(r){var o=r.style,u=r.className,a=r.classNames,s=function(e,t){if(null==e)return{};var n,r,i=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,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(r,eE),l=V(e,{style:o,className:u,classNames:a},t?t(s):void 0);return d.createElement(n,i({},s,{style:l}))},o=n.displayName||n.name||"Component";return r.displayName="defaultStyle(".concat(o,")"),d.forwardRef(function(e,t){return r(eO(eO({},e),{},{ref:t}))})}}function eC(e){var t,n,r=e.selectionStart,o=e.selectionEnd,u=e.value,a=void 0===u?"":u,s=e.onCaretPositionChange,l=e.containerRef,c=e.children,f=(e.singleLine,e.style),p=h((0,d.useState)({left:void 0,top:void 0}),2),g=p[0],m=p[1],y=h((0,d.useState)(),2),v=y[0],b=y[1];(0,d.useEffect)(function(){w()});var w=function(){if(v){var e=v.offsetLeft,t=v.offsetTop;if(g.left!==e||g.top!==t){var n={left:e,top:t};m(n),s(n)}}},E=ep(c);o===r&&(n=ei(a,E,r,"START"));var x=[],O={},P=x,C=0,A=function(e,t){return d.createElement("span",i({},f("substring"),{key:t}),e)},S=function(e,t,n,r){var i=d.Children.toArray(c)[n];return d.cloneElement(i,{id:e,display:t,key:r})};return en(a,E,function(e,t,n,r,i,o,u){var a=(O.hasOwnProperty(r)?O[r]++:O[r]=0,r+"_"+O[r]);P.push(S(r,i,o,a))},function(e,t,r){if(eb(n)&&n>=t&&n<=t+e.length){var i=n-t;P.push(A(e.substring(0,i),C)),P=[A(e.substring(i),C)]}else P.push(A(e,C));C++}),P.push(" "),P!==x&&x.push((t=P,d.createElement("span",i({},f("caret"),{ref:b,key:"caret"}),t))),d.createElement("div",i({},f,{ref:l}),x)}eC.propTypes={selectionStart:K().number,selectionEnd:K().number,value:K().string.isRequired,onCaretPositionChange:K().func.isRequired,containerRef:K().oneOfType([K().func,K().shape({current:"undefined"==typeof Element?K().any:K().instanceOf(Element)})]),children:K().oneOfType([K().element,K().arrayOf(K().element)]).isRequired};var eA=eP({position:"relative",boxSizing:"border-box",width:"100%",color:"transparent",overflow:"hidden",whiteSpace:"pre-wrap",wordWrap:"break-word",border:"1px solid transparent",textAlign:"start","&singleLine":{whiteSpace:"pre",wordWrap:null},substring:{visibility:"hidden"}},function(e){return{"&singleLine":e.singleLine}})(eC);function eS(e){var t,n,r,o=e.id,u=e.focused,a=e.ignoreAccents,s=e.index,l=e.onClick,c=e.onMouseEnter,f=e.query,p=e.renderSuggestion,h=e.suggestion,g=e.style;return e.className,e.classNames,d.createElement("li",i({id:o,role:"option","aria-selected":u},{onClick:l,onMouseEnter:c},g),(r=-1===(n=ev(t=function(){if("string"==typeof h)return h;var e=h.id,t=h.display;return void 0!==e&&t?t:e}(),f,a))?d.createElement("span",g("display"),t):d.createElement("span",g("display"),t.substring(0,n),d.createElement("b",g("highlight"),t.substring(n,n+f.length)),t.substring(n+f.length)),p?p(h,f,r,s,u):r))}eS.propTypes={id:K().string.isRequired,query:K().string.isRequired,index:K().number.isRequired,ignoreAccents:K().bool,suggestion:K().oneOfType([K().string,K().shape({id:K().oneOfType([K().string,K().number]).isRequired,display:K().string})]).isRequired,renderSuggestion:K().func,focused:K().bool};var eD=eP({cursor:"pointer"},function(e){return{"&focused":e.focused}})(eS);function ej(e){var t=V(ek,{style:e.style,className:e.className,classNames:e.classNames}),n=t("spinner");return d.createElement("div",t,d.createElement("div",n,d.createElement("div",n(["element","element1"])),d.createElement("div",n(["element","element2"])),d.createElement("div",n(["element","element3"])),d.createElement("div",n(["element","element4"])),d.createElement("div",n(["element","element5"]))))}var ek={};function eF(e){var t,n=e.id,o=e.suggestions,u=e.a11ySuggestionsListLabel,a=e.focusIndex,s=e.position,l=e.left,c=e.right,f=e.top,p=e.scrollFocusedIntoView,g=e.isLoading,m=e.isOpened,y=e.onSelect,v=void 0===y?function(){return null}:y,b=e.ignoreAccents,w=e.containerRef,E=e.children,x=e.style,O=e.customSuggestionsContainer,P=e.onMouseDown,C=e.onMouseEnter,A=h((0,d.useState)(void 0),2),S=A[0],D=A[1];(0,d.useEffect)(function(){if(S&&!(S.offsetHeight>=S.scrollHeight)&&p){var e=S.scrollTop,t=S.children[a].getBoundingClientRect(),n=t.top,r=t.bottom,i=S.getBoundingClientRect().top;n=n-i+e,r=r-i+e,n<e?S.scrollTop=n:r>S.offsetHeight&&(S.scrollTop=r-S.offsetHeight)}},[a,p,S]);var j=function(e,t,r){var i=r===a,o=t.childIndex,u=t.query,s=d.Children.toArray(E)[o].props.renderSuggestion;return d.createElement(eD,{style:x("item"),key:"".concat(o,"-").concat(R(e)),id:el(n,r),query:u,index:r,ignoreAccents:b,renderSuggestion:s,suggestion:e,focused:i,onClick:function(){return F(e,t)},onMouseEnter:function(){return k(r)}})},k=function(e,t){C&&C(e)},F=function(e,t){v(e,t)},R=function(e){return"string"==typeof e?e:e.id};return m?d.createElement("div",i({},W({position:s||"absolute",left:l,right:c,top:f},x),{onMouseDown:P,ref:w}),(t=d.createElement("ul",i({ref:D,id:n,role:"listbox","aria-label":u},x("list")),Object.values(void 0===o?{}:o).reduce(function(e,t){var n=t.results,i=t.queryInfo;return[].concat(r(e),r(n.map(function(t,n){return j(t,i,e.length+n)})))},[])),O?O(t):t),function(){if(g)return d.createElement(ej,{style:x("loadingIndicator")})}()):null}eF.propTypes={id:K().string.isRequired,suggestions:K().object.isRequired,a11ySuggestionsListLabel:K().string,focusIndex:K().number,position:K().string,left:K().number,right:K().number,top:K().number,scrollFocusedIntoView:K().bool,isLoading:K().bool,isOpened:K().bool.isRequired,onSelect:K().func,ignoreAccents:K().bool,customSuggestionsContainer:K().func,containerRef:K().oneOfType([K().func,K().shape({current:"undefined"==typeof Element?K().any:K().instanceOf(Element)})])};var eR=eP({zIndex:1,backgroundColor:"white",marginTop:14,minWidth:100,list:{margin:0,padding:0,listStyleType:"none"}})(eF);function e_(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 eM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?e_(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):e_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var eT=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e instanceof RegExp)return e;var n=t.allowSpaceInQuery,r=X(e);return new RegExp("(?:^|\\s)(".concat(r,"([^").concat(n?"":"\\s").concat(r,"]*))$"))},eN={TAB:9,RETURN:13,ESC:27,UP:38,DOWN:40},eL=!1,eI={singleLine:K().bool,allowSpaceInQuery:K().bool,allowSuggestionsAboveCursor:K().bool,forceSuggestionsAboveCursor:K().bool,ignoreAccents:K().bool,a11ySuggestionsListLabel:K().string,value:K().string,onKeyDown:K().func,customSuggestionsContainer:K().func,onSelect:K().func,onBlur:K().func,onChange:K().func,suggestionsPortalHost:"undefined"==typeof Element?K().any:K().PropTypes.instanceOf(Element),inputRef:K().oneOfType([K().func,K().shape({current:"undefined"==typeof Element?K().any:K().instanceOf(Element)})]),children:K().oneOfType([K().element,K().arrayOf(K().element)]).isRequired},eB=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw 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&&u(e,t)}(f,e);var t,n,a=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||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}}(),function(){var e,n=l(f);return e=t?Reflect.construct(n,arguments,l(this).constructor):n.apply(this,arguments),e&&("object"===s(e)||"function"==typeof e)?e:o(this)});function f(e){var t;return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,f),c(o(t=a.call(this,e)),"setContainerElement",function(e){t.containerElement=e}),c(o(t),"getInputProps",function(){var e=t.props,n=e.readOnly,r=e.disabled,i=e.style;return eM(eM(eM(eM({},ew(t.props,["style","classNames","className"],eI===Object(eI)?Object.keys(eI):[])),i("input")),{},{value:t.getPlainText(),onScroll:t.updateHighlighterScroll},!n&&!r&&{onChange:t.handleChange,onSelect:t.handleSelect,onKeyDown:t.handleKeyDown,onBlur:t.handleBlur,onCompositionStart:t.handleCompositionStart,onCompositionEnd:t.handleCompositionEnd}),t.isOpened()&&{role:"combobox","aria-controls":t.uuidSuggestionsOverlay,"aria-expanded":!0,"aria-autocomplete":"list","aria-haspopup":"listbox","aria-activedescendant":el(t.uuidSuggestionsOverlay,t.state.focusIndex)})}),c(o(t),"renderControl",function(){var e=t.props,n=e.singleLine,r=e.style,i=t.getInputProps();return d.createElement("div",r("control"),t.renderHighlighter(),n?t.renderInput(i):t.renderTextarea(i))}),c(o(t),"renderInput",function(e){return d.createElement("input",i({type:"text",ref:t.setInputRef},e))}),c(o(t),"renderTextarea",function(e){return d.createElement("textarea",i({ref:t.setInputRef},e))}),c(o(t),"setInputRef",function(e){t.inputElement=e;var n=t.props.inputRef;"function"==typeof n?n(e):n&&(n.current=e)}),c(o(t),"setSuggestionsElement",function(e){t.suggestionsElement=e}),c(o(t),"renderSuggestionsOverlay",function(){if(!eb(t.state.selectionStart))return null;var e=t.state.suggestionsPosition,n=e.position,r=e.left,i=e.top,o=e.right,u=d.createElement(eR,{id:t.uuidSuggestionsOverlay,style:t.props.style("suggestions"),position:n,left:r,top:i,right:o,focusIndex:t.state.focusIndex,scrollFocusedIntoView:t.state.scrollFocusedIntoView,containerRef:t.setSuggestionsElement,suggestions:t.state.suggestions,customSuggestionsContainer:t.props.customSuggestionsContainer,onSelect:t.addMention,onMouseDown:t.handleSuggestionsMouseDown,onMouseEnter:t.handleSuggestionsMouseEnter,isLoading:t.isLoading(),isOpened:t.isOpened(),ignoreAccents:t.props.ignoreAccents,a11ySuggestionsListLabel:t.props.a11ySuggestionsListLabel},t.props.children);return t.props.suggestionsPortalHost?$.createPortal(u,t.props.suggestionsPortalHost):u}),c(o(t),"renderHighlighter",function(){var e=t.state,n=e.selectionStart,r=e.selectionEnd,i=t.props,o=i.singleLine,u=i.children,a=i.value,s=i.style;return d.createElement(eA,{containerRef:t.setHighlighterElement,style:s("highlighter"),value:a,singleLine:o,selectionStart:n,selectionEnd:r,onCaretPositionChange:t.handleCaretPositionChange},u)}),c(o(t),"setHighlighterElement",function(e){t.highlighterElement=e}),c(o(t),"handleCaretPositionChange",function(e){t.setState({caretPosition:e})}),c(o(t),"getPlainText",function(){return er(t.props.value||"",ep(t.props.children))}),c(o(t),"executeOnChange",function(e){for(var n,r,i=arguments.length,o=Array(i>1?i-1:0),u=1;u<i;u++)o[u-1]=arguments[u];return t.props.onChange?(n=t.props).onChange.apply(n,[e].concat(o)):t.props.valueLink?(r=t.props.valueLink).requestChange.apply(r,[e.target.value].concat(o)):void 0}),c(o(t),"handleChange",function(e){if(eL=!1,!document.documentMode||(document.activeElement&&document.activeElement.contentDocument||document).activeElement===e.target){var n=t.props.value||"",r=ep(t.props.children),i=e.target.value,o=t.state.selectionStart;null==o&&(o=e.target.selectionStart);var u=t.state.selectionEnd;null==u&&(u=e.target.selectionEnd);var a=eu(n,i,{selectionStartBefore:o,selectionEndBefore:u,selectionEndAfter:e.target.selectionEnd},r);i=er(a,r);var s=e.target.selectionStart,l=e.target.selectionEnd,c=!1,d=ea(n,r,s);void 0!==d&&t.state.selectionEnd>d&&(l=s=d+(e.nativeEvent.data?e.nativeEvent.data.length:0),c=!0),t.setState({selectionStart:s,selectionEnd:l,setSelectionAfterMentionChange:c});var f=es(a,r);e.nativeEvent.isComposing&&s===l&&t.updateMentionsQueries(t.inputElement.value,s),t.executeOnChange({target:{value:a}},a,i,f)}}),c(o(t),"handleSelect",function(e){if(t.setState({selectionStart:e.target.selectionStart,selectionEnd:e.target.selectionEnd}),!eL){var n=t.inputElement;e.target.selectionStart===e.target.selectionEnd?t.updateMentionsQueries(n.value,e.target.selectionStart):t.clearSuggestions(),t.updateHighlighterScroll(),t.props.onSelect(e)}}),c(o(t),"handleKeyDown",function(e){if(0===ec(t.state.suggestions)||!t.suggestionsElement){t.props.onKeyDown(e);return}switch(Object.values(eN).indexOf(e.keyCode)>=0&&(e.preventDefault(),e.stopPropagation()),e.keyCode){case eN.ESC:t.clearSuggestions();return;case eN.DOWN:t.shiftFocus(1);return;case eN.UP:t.shiftFocus(-1);return;case eN.RETURN:case eN.TAB:t.selectFocused();return;default:return}}),c(o(t),"shiftFocus",function(e){var n=ec(t.state.suggestions);t.setState({focusIndex:(n+t.state.focusIndex+e)%n,scrollFocusedIntoView:!0})}),c(o(t),"selectFocused",function(){var e=t.state,n=e.suggestions,i=e.focusIndex,o=Object.values(n).reduce(function(e,t){var n=t.results,i=t.queryInfo;return[].concat(r(e),r(n.map(function(e){return{result:e,queryInfo:i}})))},[])[i],u=o.result,a=o.queryInfo;t.addMention(u,a),t.setState({focusIndex:0})}),c(o(t),"handleBlur",function(e){var n=t._suggestionsMouseDown;t._suggestionsMouseDown=!1,n||t.setState({selectionStart:null,selectionEnd:null}),window.setTimeout(function(){t.updateHighlighterScroll()},1),t.props.onBlur(e,n)}),c(o(t),"handleSuggestionsMouseDown",function(e){t._suggestionsMouseDown=!0}),c(o(t),"handleSuggestionsMouseEnter",function(e){t.setState({focusIndex:e,scrollFocusedIntoView:!1})}),c(o(t),"updateSuggestionsPosition",function(){var e=t.state.caretPosition,n=t.props,r=n.suggestionsPortalHost,i=n.allowSuggestionsAboveCursor,o=n.forceSuggestionsAboveCursor;if(e&&t.suggestionsElement){var u=t.suggestionsElement,a=t.highlighterElement,s=a.getBoundingClientRect(),l=eH(a,"font-size"),c={left:s.left+e.left,top:s.top+e.top+l},d=Math.max(document.documentElement.clientHeight,window.innerHeight||0);if(u){var f={};if(r){f.position="fixed";var p=c.left,h=c.top;p-=eH(u,"margin-left"),h-=eH(u,"margin-top"),p-=a.scrollLeft,h-=a.scrollTop;var g=Math.max(document.documentElement.clientWidth,window.innerWidth||0);p+u.offsetWidth>g?f.left=Math.max(0,g-u.offsetWidth):f.left=p,i&&h+u.offsetHeight>d&&u.offsetHeight<h-l||o?f.top=Math.max(0,h-u.offsetHeight-l):f.top=h}else{var m=e.left-a.scrollLeft,y=e.top-a.scrollTop;m+u.offsetWidth>t.containerElement.offsetWidth?f.right=0:f.left=m,i&&c.top-a.scrollTop+u.offsetHeight>d&&u.offsetHeight<s.top-l-a.scrollTop||o?f.top=y-u.offsetHeight-l:f.top=y}(f.left!==t.state.suggestionsPosition.left||f.top!==t.state.suggestionsPosition.top||f.position!==t.state.suggestionsPosition.position)&&t.setState({suggestionsPosition:f})}}}),c(o(t),"updateHighlighterScroll",function(){var e=t.inputElement,n=t.highlighterElement;e&&n&&(n.scrollLeft=e.scrollLeft,n.scrollTop=e.scrollTop,n.height=e.height)}),c(o(t),"handleCompositionStart",function(){eL=!0}),c(o(t),"handleCompositionEnd",function(){eL=!1}),c(o(t),"setSelection",function(e,n){if(null!==e&&null!==n){var r=t.inputElement;if(r.setSelectionRange)r.setSelectionRange(e,n);else if(r.createTextRange){var i=r.createTextRange();i.collapse(!0),i.moveEnd("character",n),i.moveStart("character",e),i.select()}}}),c(o(t),"updateMentionsQueries",function(e,n){t._queryId++,t.suggestions={},t.setState({suggestions:{}});var r=t.props.value||"",i=t.props.children,o=ep(i),u=ei(r,o,n,"NULL");if(null!==u){var a=ed(r.substring(0,u),o),s=e.substring(a,n);d.Children.forEach(i,function(n,r){if(n){var i=eT(n.props.trigger,t.props),o=s.match(i);if(o){var u=a+s.indexOf(o[1],o.index);t.queryData(o[2],r,u,u+o[1].length,e)}}})}}),c(o(t),"clearSuggestions",function(){t._queryId++,t.suggestions={},t.setState({suggestions:{},focusIndex:0})}),c(o(t),"queryData",function(e,n,r,i,o){var u,a=t.props,s=a.children,l=a.ignoreAccents,c=((u=d.Children.toArray(s)[n].props.data)instanceof Array?function(e,t){for(var n=[],r=0,i=u.length;r<i;++r)ev(u[r].display||u[r].id,e,l)>=0&&n.push(u[r]);return n}:u)(e,t.updateSuggestions.bind(null,t._queryId,n,e,r,i,o));c instanceof Array&&t.updateSuggestions(t._queryId,n,e,r,i,o,c)}),c(o(t),"updateSuggestions",function(e,n,r,i,o,u,a){if(e===t._queryId){t.suggestions=eM(eM({},t.suggestions),{},c({},n,{queryInfo:{childIndex:n,query:r,querySequenceStart:i,querySequenceEnd:o,plainTextValue:u},results:a}));var s=t.state.focusIndex,l=ec(t.suggestions);t.setState({suggestions:t.suggestions,focusIndex:s>=l?Math.max(l-1,0):s})}}),c(o(t),"addMention",function(e,n){var r=e.id,i=e.display,o=n.childIndex,u=n.querySequenceStart,a=n.querySequenceEnd,s=n.plainTextValue,l=t.props.value||"",c=ep(t.props.children),f=d.Children.toArray(t.props.children)[o].props,p=f.markup,h=f.displayTransform,g=f.appendSpaceOnAdd,m=f.onAdd,y=ei(l,c,u,"START"),v=y+a-u,b=p.replace(Y,r).replace(Q,i);g&&(b+=" ");var w=eo(l,y,v,b);t.inputElement.focus();var E=h(r,i);g&&(E+=" ");var x=u+E.length;t.setState({selectionStart:x,selectionEnd:x,setSelectionAfterMentionChange:!0});var O=es(w,c),P=eo(s,u,a,E);t.executeOnChange({target:{value:w}},w,P,O),m&&m(r,i,y,v),t.clearSuggestions()}),c(o(t),"isLoading",function(){var e=!1;return d.Children.forEach(t.props.children,function(t){e=e||t&&t.props.isLoading}),e}),c(o(t),"isOpened",function(){return eb(t.state.selectionStart)&&(0!==ec(t.state.suggestions)||t.isLoading())}),c(o(t),"_queryId",0),t.suggestions={},t.uuidSuggestionsOverlay=Math.random().toString(16).substring(2),t.handleCopy=t.handleCopy.bind(o(t)),t.handleCut=t.handleCut.bind(o(t)),t.handlePaste=t.handlePaste.bind(o(t)),t.state={focusIndex:0,selectionStart:null,selectionEnd:null,suggestions:{},caretPosition:null,suggestionsPosition:{},setSelectionAfterHandlePaste:!1},t}return n=[{key:"componentDidMount",value:function(){document.addEventListener("copy",this.handleCopy),document.addEventListener("cut",this.handleCut),document.addEventListener("paste",this.handlePaste),this.updateSuggestionsPosition()}},{key:"componentDidUpdate",value:function(e,t){t.suggestionsPosition===this.state.suggestionsPosition&&this.updateSuggestionsPosition(),this.state.setSelectionAfterMentionChange&&(this.setState({setSelectionAfterMentionChange:!1}),this.setSelection(this.state.selectionStart,this.state.selectionEnd)),this.state.setSelectionAfterHandlePaste&&(this.setState({setSelectionAfterHandlePaste:!1}),this.setSelection(this.state.selectionStart,this.state.selectionEnd))}},{key:"componentWillUnmount",value:function(){document.removeEventListener("copy",this.handleCopy),document.removeEventListener("cut",this.handleCut),document.removeEventListener("paste",this.handlePaste)}},{key:"render",value:function(){return d.createElement("div",i({ref:this.setContainerElement},this.props.style),this.renderControl(),this.renderSuggestionsOverlay())}},{key:"handlePaste",value:function(e){if(e.target===this.inputElement&&this.supportsClipboardActions(e)){e.preventDefault();var t=this.state,n=t.selectionStart,r=t.selectionEnd,i=this.props,o=i.value,u=ep(i.children),a=ei(o,u,n,"START"),s=ei(o,u,r,"END"),l=e.clipboardData.getData("text/react-mentions"),c=e.clipboardData.getData("text/plain"),d=eo(o,a,s,l||c).replace(/\r/g,""),f=er(d,u),p={target:eM(eM({},e.target),{},{value:d})};this.executeOnChange(p,d,f,es(d,u));var h=(ea(o,u,n)||n)+er(l||c,u).length;this.setState({selectionStart:h,selectionEnd:h,setSelectionAfterHandlePaste:!0})}}},{key:"saveSelectionToClipboard",value:function(e){var t=this.inputElement.selectionStart,n=this.inputElement.selectionEnd,r=this.props,i=r.children,o=r.value,u=ep(i),a=ei(o,u,t,"START"),s=ei(o,u,n,"END");e.clipboardData.setData("text/plain",e.target.value.slice(t,n)),e.clipboardData.setData("text/react-mentions",o.slice(a,s))}},{key:"supportsClipboardActions",value:function(e){return!!e.clipboardData}},{key:"handleCopy",value:function(e){e.target===this.inputElement&&this.supportsClipboardActions(e)&&(e.preventDefault(),this.saveSelectionToClipboard(e))}},{key:"handleCut",value:function(e){if(e.target===this.inputElement&&this.supportsClipboardActions(e)){e.preventDefault(),this.saveSelectionToClipboard(e);var t=this.state,n=t.selectionStart,r=t.selectionEnd,i=this.props,o=i.children,u=i.value,a=ep(o),s=ei(u,a,n,"START"),l=ei(u,a,r,"END"),c=[u.slice(0,s),u.slice(l)].join(""),d=er(c,a),f={target:eM(eM({},e.target),{},{value:d})};this.executeOnChange(f,c,d,es(u,a))}}}],function(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)}}(f.prototype,n),f}(d.Component);c(eB,"propTypes",eI),c(eB,"defaultProps",{ignoreAccents:!1,singleLine:!1,allowSuggestionsAboveCursor:!1,onKeyDown:function(){return null},onSelect:function(){return null},onBlur:function(){return null}});var eH=function(e,t){var n=parseFloat(window.getComputedStyle(e,null).getPropertyValue(t));return isFinite(n)?n:0},ez=eP({position:"relative",overflowY:"visible",input:{display:"block",width:"100%",position:"absolute",margin:0,top:0,left:0,boxSizing:"border-box",backgroundColor:"transparent",fontFamily:"inherit",fontSize:"inherit",letterSpacing:"inherit"},"&multiLine":{input:eM({height:"100%",bottom:0,overflow:"hidden",resize:"none"},"undefined"!=typeof navigator&&/iPhone|iPad|iPod/i.test(navigator.userAgent)?{marginTop:1,marginLeft:-3}:null)}},function(e){var t=e.singleLine;return{"&singleLine":t,"&multiLine":!t}})(eB),eV={fontWeight:"inherit"},eU=function(e){var t=e.display,n=V(eV,{style:e.style,className:e.className,classNames:e.classNames});return d.createElement("strong",n,t)};eU.propTypes={onAdd:K().func,onRemove:K().func,renderSuggestion:K().func,trigger:K().oneOfType([K().string,K().instanceOf(RegExp)]),markup:K().string,displayTransform:K().func,allowSpaceInQuery:K().bool,isLoading:K().bool},eU.defaultProps={trigger:"@",markup:"@[__display__](__id__)",displayTransform:function(e,t){return t||e},onAdd:function(){return null},onRemove:function(){return null},renderSuggestion:null,isLoading:!1,appendSpaceOnAdd:!1}},1760:function(e,t,n){var r=Object.create,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,a=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,l=(e,t,n)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,c=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of u(t))s.call(e,a)||a===n||i(e,a,{get:()=>t[a],enumerable:!(r=o(t,a))||r.enumerable});return e},d=(e,t,n)=>(n=null!=e?r(a(e)):{},c(!t&&e&&e.__esModule?n:i(n,"default",{value:e,enumerable:!0}),e)),f=(e,t,n)=>(l(e,"symbol"!=typeof t?t+"":t,n),n),p={};((e,t)=>{for(var n in t)i(e,n,{get:t[n],enumerable:!0})})(p,{default:()=>v}),e.exports=c(i({},"__esModule",{value:!0}),p);var h=d(n(40929)),g=d(n(20403)),m=n(6567),y=n(1532);class v extends h.Component{constructor(){super(...arguments),f(this,"mounted",!1),f(this,"isReady",!1),f(this,"isPlaying",!1),f(this,"isLoading",!0),f(this,"loadOnReady",null),f(this,"startOnPlay",!0),f(this,"seekOnPlay",null),f(this,"onDurationCalled",!1),f(this,"handlePlayerMount",e=>{if(this.player){this.progress();return}this.player=e,this.player.load(this.props.url),this.progress()}),f(this,"getInternalPlayer",e=>this.player?this.player[e]:null),f(this,"progress",()=>{if(this.props.url&&this.player&&this.isReady){let e=this.getCurrentTime()||0,t=this.getSecondsLoaded(),n=this.getDuration();if(n){let r={playedSeconds:e,played:e/n};null!==t&&(r.loadedSeconds=t,r.loaded=t/n),(r.playedSeconds!==this.prevPlayed||r.loadedSeconds!==this.prevLoaded)&&this.props.onProgress(r),this.prevPlayed=r.playedSeconds,this.prevLoaded=r.loadedSeconds}}this.progressTimeout=setTimeout(this.progress,this.props.progressFrequency||this.props.progressInterval)}),f(this,"handleReady",()=>{if(!this.mounted)return;this.isReady=!0,this.isLoading=!1;let{onReady:e,playing:t,volume:n,muted:r}=this.props;e(),r||null===n||this.player.setVolume(n),this.loadOnReady?(this.player.load(this.loadOnReady,!0),this.loadOnReady=null):t&&this.player.play(),this.handleDurationCheck()}),f(this,"handlePlay",()=>{this.isPlaying=!0,this.isLoading=!1;let{onStart:e,onPlay:t,playbackRate:n}=this.props;this.startOnPlay&&(this.player.setPlaybackRate&&1!==n&&this.player.setPlaybackRate(n),e(),this.startOnPlay=!1),t(),this.seekOnPlay&&(this.seekTo(this.seekOnPlay),this.seekOnPlay=null),this.handleDurationCheck()}),f(this,"handlePause",e=>{this.isPlaying=!1,this.isLoading||this.props.onPause(e)}),f(this,"handleEnded",()=>{let{activePlayer:e,loop:t,onEnded:n}=this.props;e.loopOnEnded&&t&&this.seekTo(0),t||(this.isPlaying=!1,n())}),f(this,"handleError",(...e)=>{this.isLoading=!1,this.props.onError(...e)}),f(this,"handleDurationCheck",()=>{clearTimeout(this.durationCheckTimeout);let e=this.getDuration();e?this.onDurationCalled||(this.props.onDuration(e),this.onDurationCalled=!0):this.durationCheckTimeout=setTimeout(this.handleDurationCheck,100)}),f(this,"handleLoaded",()=>{this.isLoading=!1})}componentDidMount(){this.mounted=!0}componentWillUnmount(){clearTimeout(this.progressTimeout),clearTimeout(this.durationCheckTimeout),this.isReady&&this.props.stopOnUnmount&&(this.player.stop(),this.player.disablePIP&&this.player.disablePIP()),this.mounted=!1}componentDidUpdate(e){if(!this.player)return;let{url:t,playing:n,volume:r,muted:i,playbackRate:o,pip:u,loop:a,activePlayer:s,disableDeferredLoading:l}=this.props;if(!(0,g.default)(e.url,t)){if(this.isLoading&&!s.forceLoad&&!l&&!(0,y.isMediaStream)(t)){console.warn(`ReactPlayer: the attempt to load ${t} is being deferred until the player has loaded`),this.loadOnReady=t;return}this.isLoading=!0,this.startOnPlay=!0,this.onDurationCalled=!1,this.player.load(t,this.isReady)}e.playing||!n||this.isPlaying||this.player.play(),e.playing&&!n&&this.isPlaying&&this.player.pause(),!e.pip&&u&&this.player.enablePIP&&this.player.enablePIP(),e.pip&&!u&&this.player.disablePIP&&this.player.disablePIP(),e.volume!==r&&null!==r&&this.player.setVolume(r),e.muted!==i&&(i?this.player.mute():(this.player.unmute(),null!==r&&setTimeout(()=>this.player.setVolume(r)))),e.playbackRate!==o&&this.player.setPlaybackRate&&this.player.setPlaybackRate(o),e.loop!==a&&this.player.setLoop&&this.player.setLoop(a)}getDuration(){return this.isReady?this.player.getDuration():null}getCurrentTime(){return this.isReady?this.player.getCurrentTime():null}getSecondsLoaded(){return this.isReady?this.player.getSecondsLoaded():null}seekTo(e,t,n){if(!this.isReady){0!==e&&(this.seekOnPlay=e,setTimeout(()=>{this.seekOnPlay=null},5e3));return}if(t?"fraction"===t:e>0&&e<1){let t=this.player.getDuration();if(!t){console.warn("ReactPlayer: could not seek using fraction –\xa0duration not yet available");return}this.player.seekTo(t*e,n);return}this.player.seekTo(e,n)}render(){let e=this.props.activePlayer;return e?h.default.createElement(e,{...this.props,onMount:this.handlePlayerMount,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError}):null}}f(v,"displayName","Player"),f(v,"propTypes",m.propTypes),f(v,"defaultProps",m.defaultProps)},4798:function(e,t,n){var r=Object.create,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,a=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,l=(e,t,n)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,c=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of u(t))s.call(e,a)||a===n||i(e,a,{get:()=>t[a],enumerable:!(r=o(t,a))||r.enumerable});return e},d=(e,t,n)=>(n=null!=e?r(a(e)):{},c(!t&&e&&e.__esModule?n:i(n,"default",{value:e,enumerable:!0}),e)),f=(e,t,n)=>(l(e,"symbol"!=typeof t?t+"":t,n),n),p={};((e,t)=>{for(var n in t)i(e,n,{get:t[n],enumerable:!0})})(p,{createReactPlayer:()=>S}),e.exports=c(i({},"__esModule",{value:!0}),p);var h=d(n(40929)),g=d(n(95772)),m=d(n(82238)),y=d(n(20403)),v=n(6567),b=n(1532),w=d(n(1760));let E=(0,b.lazy)(()=>n.e(7664).then(n.t.bind(n,79877,23))),x="undefined"!=typeof window&&window.document&&"undefined"!=typeof document,O=void 0!==n.g&&n.g.window&&n.g.window.document,P=Object.keys(v.propTypes),C=x||O?h.Suspense:()=>null,A=[],S=(e,t)=>{var n;return n=class extends h.Component{constructor(){super(...arguments),f(this,"state",{showPreview:!!this.props.light}),f(this,"references",{wrapper:e=>{this.wrapper=e},player:e=>{this.player=e}}),f(this,"handleClickPreview",e=>{this.setState({showPreview:!1}),this.props.onClickPreview(e)}),f(this,"showPreview",()=>{this.setState({showPreview:!0})}),f(this,"getDuration",()=>this.player?this.player.getDuration():null),f(this,"getCurrentTime",()=>this.player?this.player.getCurrentTime():null),f(this,"getSecondsLoaded",()=>this.player?this.player.getSecondsLoaded():null),f(this,"getInternalPlayer",(e="player")=>this.player?this.player.getInternalPlayer(e):null),f(this,"seekTo",(e,t,n)=>{if(!this.player)return null;this.player.seekTo(e,t,n)}),f(this,"handleReady",()=>{this.props.onReady(this)}),f(this,"getActivePlayer",(0,m.default)(n=>{for(let t of[...A,...e])if(t.canPlay(n))return t;return t||null})),f(this,"getConfig",(0,m.default)((e,t)=>{let{config:n}=this.props;return g.default.all([v.defaultProps.config,v.defaultProps.config[t]||{},n,n[t]||{}])})),f(this,"getAttributes",(0,m.default)(e=>(0,b.omit)(this.props,P))),f(this,"renderActivePlayer",e=>{if(!e)return null;let t=this.getActivePlayer(e);if(!t)return null;let n=this.getConfig(e,t.key);return h.default.createElement(w.default,{...this.props,key:t.key,ref:this.references.player,config:n,activePlayer:t.lazyPlayer||t,onReady:this.handleReady})})}shouldComponentUpdate(e,t){return!(0,y.default)(this.props,e)||!(0,y.default)(this.state,t)}componentDidUpdate(e){let{light:t}=this.props;!e.light&&t&&this.setState({showPreview:!0}),e.light&&!t&&this.setState({showPreview:!1})}renderPreview(e){if(!e)return null;let{light:t,playIcon:n,previewTabIndex:r,oEmbedUrl:i,previewAriaLabel:o}=this.props;return h.default.createElement(E,{url:e,light:t,playIcon:n,previewTabIndex:r,previewAriaLabel:o,oEmbedUrl:i,onClick:this.handleClickPreview})}render(){let{url:e,style:t,width:n,height:r,fallback:i,wrapper:o}=this.props,{showPreview:u}=this.state,a=this.getAttributes(e),s="string"==typeof o?this.references.wrapper:void 0;return h.default.createElement(o,{ref:s,style:{...t,width:n,height:r},...a},h.default.createElement(C,{fallback:i},u?this.renderPreview(e):this.renderActivePlayer(e)))}},f(n,"displayName","ReactPlayer"),f(n,"propTypes",v.propTypes),f(n,"defaultProps",v.defaultProps),f(n,"addCustomPlayer",e=>{A.push(e)}),f(n,"removeCustomPlayers",()=>{A.length=0}),f(n,"canPlay",t=>{for(let n of[...A,...e])if(n.canPlay(t))return!0;return!1}),f(n,"canEnablePIP",t=>{for(let n of[...A,...e])if(n.canEnablePIP&&n.canEnablePIP(t))return!0;return!1}),n}},43449:function(e,t,n){let r,i,o;var u=Object.create,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,c=Object.getPrototypeOf,d=Object.prototype.hasOwnProperty,f=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of l(t))d.call(e,i)||i===n||a(e,i,{get:()=>t[i],enumerable:!(r=s(t,i))||r.enumerable});return e},p={};((e,t)=>{for(var n in t)a(e,n,{get:t[n],enumerable:!0})})(p,{default:()=>y}),e.exports=f(a({},"__esModule",{value:!0}),p);var h=(o=null!=(r=n(37713))?u(c(r)):{},f(!i&&r&&r.__esModule?o:a(o,"default",{value:r,enumerable:!0}),r)),g=n(4798);let m=h.default[h.default.length-1];var y=(0,g.createReactPlayer)(h.default,m)},85098:function(e,t,n){var r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,a={};((e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})})(a,{AUDIO_EXTENSIONS:()=>O,DASH_EXTENSIONS:()=>A,FLV_EXTENSIONS:()=>S,HLS_EXTENSIONS:()=>C,MATCH_URL_DAILYMOTION:()=>b,MATCH_URL_FACEBOOK:()=>p,MATCH_URL_FACEBOOK_WATCH:()=>h,MATCH_URL_KALTURA:()=>x,MATCH_URL_MIXCLOUD:()=>w,MATCH_URL_MUX:()=>f,MATCH_URL_SOUNDCLOUD:()=>c,MATCH_URL_STREAMABLE:()=>g,MATCH_URL_TWITCH_CHANNEL:()=>v,MATCH_URL_TWITCH_VIDEO:()=>y,MATCH_URL_VIDYARD:()=>E,MATCH_URL_VIMEO:()=>d,MATCH_URL_WISTIA:()=>m,MATCH_URL_YOUTUBE:()=>l,VIDEO_EXTENSIONS:()=>P,canPlay:()=>j}),e.exports=((e,t,n,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of o(t))u.call(e,s)||s===n||r(e,s,{get:()=>t[s],enumerable:!(a=i(t,s))||a.enumerable});return e})(r({},"__esModule",{value:!0}),a);var s=n(1532);let l=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,c=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,d=/vimeo\.com\/(?!progressive_redirect).+/,f=/stream\.mux\.com\/(?!\w+\.m3u8)(\w+)/,p=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,h=/^https?:\/\/fb\.watch\/.+$/,g=/streamable\.com\/([a-z0-9]+)$/,m=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,y=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,v=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,b=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,w=/mixcloud\.com\/([^/]+\/[^/]+)/,E=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,x=/^https?:\/\/[a-zA-Z]+\.kaltura.(com|org)\/p\/([0-9]+)\/sp\/([0-9]+)00\/embedIframeJs\/uiconf_id\/([0-9]+)\/partner_id\/([0-9]+)(.*)entry_id.([a-zA-Z0-9-_].*)$/,O=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,P=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,C=/\.(m3u8)($|\?)/i,A=/\.(mpd)($|\?)/i,S=/\.(flv)($|\?)/i,D=e=>{if(e instanceof Array){for(let t of e)if("string"==typeof t&&D(t)||D(t.src))return!0;return!1}return!!((0,s.isMediaStream)(e)||(0,s.isBlobUrl)(e))||O.test(e)||P.test(e)||C.test(e)||A.test(e)||S.test(e)},j={youtube:e=>e instanceof Array?e.every(e=>l.test(e)):l.test(e),soundcloud:e=>c.test(e)&&!O.test(e),vimeo:e=>d.test(e)&&!P.test(e)&&!C.test(e),mux:e=>f.test(e),facebook:e=>p.test(e)||h.test(e),streamable:e=>g.test(e),wistia:e=>m.test(e),twitch:e=>y.test(e)||v.test(e),dailymotion:e=>b.test(e),mixcloud:e=>w.test(e),vidyard:e=>E.test(e),kaltura:e=>x.test(e),file:D}},37713:function(e,t,n){var r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,a={};((e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})})(a,{default:()=>c}),e.exports=((e,t,n,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of o(t))u.call(e,s)||s===n||r(e,s,{get:()=>t[s],enumerable:!(a=i(t,s))||a.enumerable});return e})(r({},"__esModule",{value:!0}),a);var s=n(1532),l=n(85098),c=[{key:"youtube",name:"YouTube",canPlay:l.canPlay.youtube,lazyPlayer:(0,s.lazy)(()=>n.e(4439).then(n.t.bind(n,1962,23)))},{key:"soundcloud",name:"SoundCloud",canPlay:l.canPlay.soundcloud,lazyPlayer:(0,s.lazy)(()=>n.e(6125).then(n.t.bind(n,13587,23)))},{key:"vimeo",name:"Vimeo",canPlay:l.canPlay.vimeo,lazyPlayer:(0,s.lazy)(()=>n.e(3743).then(n.t.bind(n,97889,23)))},{key:"mux",name:"Mux",canPlay:l.canPlay.mux,lazyPlayer:(0,s.lazy)(()=>n.e(4258).then(n.t.bind(n,9794,23)))},{key:"facebook",name:"Facebook",canPlay:l.canPlay.facebook,lazyPlayer:(0,s.lazy)(()=>n.e(2121).then(n.t.bind(n,14473,23)))},{key:"streamable",name:"Streamable",canPlay:l.canPlay.streamable,lazyPlayer:(0,s.lazy)(()=>n.e(2546).then(n.t.bind(n,86254,23)))},{key:"wistia",name:"Wistia",canPlay:l.canPlay.wistia,lazyPlayer:(0,s.lazy)(()=>n.e(8055).then(n.t.bind(n,13387,23)))},{key:"twitch",name:"Twitch",canPlay:l.canPlay.twitch,lazyPlayer:(0,s.lazy)(()=>n.e(6216).then(n.t.bind(n,1360,23)))},{key:"dailymotion",name:"DailyMotion",canPlay:l.canPlay.dailymotion,lazyPlayer:(0,s.lazy)(()=>n.e(7596).then(n.t.bind(n,22254,23)))},{key:"mixcloud",name:"Mixcloud",canPlay:l.canPlay.mixcloud,lazyPlayer:(0,s.lazy)(()=>n.e(4667).then(n.t.bind(n,25113,23)))},{key:"vidyard",name:"Vidyard",canPlay:l.canPlay.vidyard,lazyPlayer:(0,s.lazy)(()=>n.e(8888).then(n.t.bind(n,95455,23)))},{key:"kaltura",name:"Kaltura",canPlay:l.canPlay.kaltura,lazyPlayer:(0,s.lazy)(()=>n.e(261).then(n.t.bind(n,98754,23)))},{key:"file",name:"FilePlayer",canPlay:l.canPlay.file,canEnablePIP:e=>l.canPlay.file(e)&&(document.pictureInPictureEnabled||(0,s.supportsWebKitPresentationMode)())&&!l.AUDIO_EXTENSIONS.test(e),lazyPlayer:(0,s.lazy)(()=>n.e(6011).then(n.t.bind(n,24857,23)))}]},6567:function(e,t,n){let r,i,o;var u=Object.create,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,c=Object.getPrototypeOf,d=Object.prototype.hasOwnProperty,f=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of l(t))d.call(e,i)||i===n||a(e,i,{get:()=>t[i],enumerable:!(r=s(t,i))||r.enumerable});return e},p={};((e,t)=>{for(var n in t)a(e,n,{get:t[n],enumerable:!0})})(p,{defaultProps:()=>C,propTypes:()=>O}),e.exports=f(a({},"__esModule",{value:!0}),p);let{string:h,bool:g,number:m,array:y,oneOfType:v,shape:b,object:w,func:E,node:x}=(o=null!=(r=n(82674))?u(c(r)):{},f(!i&&r&&r.__esModule?o:a(o,"default",{value:r,enumerable:!0}),r)).default,O={url:v([h,y,w]),playing:g,loop:g,controls:g,volume:m,muted:g,playbackRate:m,width:v([h,m]),height:v([h,m]),style:w,progressInterval:m,playsinline:g,pip:g,stopOnUnmount:g,light:v([g,h,w]),playIcon:x,previewTabIndex:m,previewAriaLabel:h,fallback:x,oEmbedUrl:h,wrapper:v([h,E,b({render:E.isRequired})]),config:b({soundcloud:b({options:w}),youtube:b({playerVars:w,embedOptions:w,onUnstarted:E}),facebook:b({appId:h,version:h,playerId:h,attributes:w}),dailymotion:b({params:w}),vimeo:b({playerOptions:w,title:h}),mux:b({attributes:w,version:h}),file:b({attributes:w,tracks:y,forceVideo:g,forceAudio:g,forceHLS:g,forceSafariHLS:g,forceDisableHls:g,forceDASH:g,forceFLV:g,hlsOptions:w,hlsVersion:h,dashVersion:h,flvVersion:h}),wistia:b({options:w,playerId:h,customControls:y}),mixcloud:b({options:w}),twitch:b({options:w,playerId:h}),vidyard:b({options:w})}),onReady:E,onStart:E,onPlay:E,onPause:E,onBuffer:E,onBufferEnd:E,onEnded:E,onError:E,onDuration:E,onSeek:E,onPlaybackRateChange:E,onPlaybackQualityChange:E,onProgress:E,onClickPreview:E,onEnablePIP:E,onDisablePIP:E},P=()=>{},C={playing:!1,loop:!1,controls:!1,volume:null,muted:!1,playbackRate:1,width:"640px",height:"360px",style:{},progressInterval:1e3,playsinline:!1,pip:!1,stopOnUnmount:!0,light:!1,fallback:null,wrapper:"div",previewTabIndex:0,previewAriaLabel:"",oEmbedUrl:"https://noembed.com/embed?url={url}",config:{soundcloud:{options:{visual:!0,buying:!1,liking:!1,download:!1,sharing:!1,show_comments:!1,show_playcount:!1}},youtube:{playerVars:{playsinline:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1},embedOptions:{},onUnstarted:P},facebook:{appId:"1309697205772819",version:"v3.3",playerId:null,attributes:{}},dailymotion:{params:{api:1,"endscreen-enable":!1}},vimeo:{playerOptions:{autopause:!1,byline:!1,portrait:!1,title:!1},title:null},mux:{attributes:{},version:"2"},file:{attributes:{},tracks:[],forceVideo:!1,forceAudio:!1,forceHLS:!1,forceDASH:!1,forceFLV:!1,hlsOptions:{},hlsVersion:"1.1.4",dashVersion:"3.1.3",flvVersion:"1.5.0",forceDisableHls:!1},wistia:{options:{},playerId:null,customControls:null},mixcloud:{options:{hide_cover:1}},twitch:{options:{},playerId:null},vidyard:{options:{}}},onReady:P,onStart:P,onPlay:P,onPause:P,onBuffer:P,onBufferEnd:P,onEnded:P,onError:P,onDuration:P,onSeek:P,onPlaybackRateChange:P,onPlaybackQualityChange:P,onProgress:P,onClickPreview:P,onEnablePIP:P,onDisablePIP:P}},1532:function(e,t,n){var r=Object.create,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,a=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,l=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of u(t))s.call(e,a)||a===n||i(e,a,{get:()=>t[a],enumerable:!(r=o(t,a))||r.enumerable});return e},c=(e,t,n)=>(n=null!=e?r(a(e)):{},l(!t&&e&&e.__esModule?n:i(n,"default",{value:e,enumerable:!0}),e)),d={};((e,t)=>{for(var n in t)i(e,n,{get:t[n],enumerable:!0})})(d,{callPlayer:()=>k,getConfig:()=>D,getSDK:()=>S,isBlobUrl:()=>R,isMediaStream:()=>F,lazy:()=>g,omit:()=>j,parseEndTime:()=>x,parseStartTime:()=>E,queryString:()=>P,randomString:()=>O,supportsWebKitPresentationMode:()=>_}),e.exports=l(i({},"__esModule",{value:!0}),d);var f=c(n(40929)),p=c(n(10545)),h=c(n(95772));let g=e=>f.default.lazy(async()=>{let t=await e();return"function"==typeof t.default?t:t.default}),m=/[?&#](?:start|t)=([0-9hms]+)/,y=/[?&#]end=([0-9hms]+)/,v=/(\d+)(h|m|s)/g,b=/^\d+$/;function w(e,t){if(e instanceof Array)return;let n=e.match(t);if(n){let e=n[1];if(e.match(v))return function(e){let t=0,n=v.exec(e);for(;null!==n;){let[,r,i]=n;"h"===i&&(t+=3600*parseInt(r,10)),"m"===i&&(t+=60*parseInt(r,10)),"s"===i&&(t+=parseInt(r,10)),n=v.exec(e)}return t}(e);if(b.test(e))return parseInt(e)}}function E(e){return w(e,m)}function x(e){return w(e,y)}function O(){return Math.random().toString(36).substr(2,5)}function P(e){return Object.keys(e).map(t=>`${t}=${e[t]}`).join("&")}function C(e){return window[e]?window[e]:window.exports&&window.exports[e]?window.exports[e]:window.module&&window.module.exports&&window.module.exports[e]?window.module.exports[e]:null}let A={},S=function(e,t,n=null,r=()=>!0,i=p.default){let o=C(t);return o&&r(o)?Promise.resolve(o):new Promise((r,o)=>{if(A[e]){A[e].push({resolve:r,reject:o});return}A[e]=[{resolve:r,reject:o}];let u=t=>{A[e].forEach(e=>e.resolve(t))};if(n){let e=window[n];window[n]=function(){e&&e(),u(C(t))}}i(e,r=>{r?(A[e].forEach(e=>e.reject(r)),A[e]=null):n||u(C(t))})})};function D(e,t){return(0,h.default)(t.config,e.config)}function j(e,...t){let n=[].concat(...t),r={};for(let t of Object.keys(e))-1===n.indexOf(t)&&(r[t]=e[t]);return r}function k(e,...t){if(!this.player||!this.player[e]){let t=`ReactPlayer: ${this.constructor.displayName} player could not call %c${e}%c \u2013 `;return this.player?this.player[e]||(t+="The method was not available"):t+="The player was not available",console.warn(t,"font-weight: bold",""),null}return this.player[e](...t)}function F(e){return"undefined"!=typeof window&&void 0!==window.MediaStream&&e instanceof window.MediaStream}function R(e){return/^blob:/.test(e)}function _(e=document.createElement("video")){let t=!1===/iPhone|iPod/.test(navigator.userAgent);return e.webkitSupportsPresentationMode&&"function"==typeof e.webkitSetPresentationMode&&t}},53818:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(69178),i=n(40929),o=n(1699);function u(e){for(var t=[],n=0;n<e.length;n++)t.push({start:e.start(n),end:e.end(n)});return t}function a(e){return function(t){a=i.isValidElement(t)?(n=t).props:t;var n,a,s=(0,o.Z)({buffered:[],time:0,duration:0,paused:!0,muted:!1,volume:1,playing:!1}),l=s[0],c=s[1],d=(0,i.useRef)(null),f=function(e,t){return function(n){try{t&&t(n)}finally{e&&e(n)}}},p=function(){return c({paused:!1})},h=function(){return c({playing:!0})},g=function(){return c({playing:!1})},m=function(){return c({paused:!0,playing:!1})},y=function(){var e=d.current;e&&c({muted:e.muted,volume:e.volume})},v=function(){var e=d.current;e&&c({duration:e.duration,buffered:u(e.buffered)})},b=function(){var e=d.current;e&&c({time:e.currentTime})},w=function(){var e=d.current;e&&c({buffered:u(e.buffered)})};n=n?i.cloneElement(n,(0,r.__assign)((0,r.__assign)({controls:!1},a),{ref:d,onPlay:f(a.onPlay,p),onPlaying:f(a.onPlaying,h),onWaiting:f(a.onWaiting,g),onPause:f(a.onPause,m),onVolumeChange:f(a.onVolumeChange,y),onDurationChange:f(a.onDurationChange,v),onTimeUpdate:f(a.onTimeUpdate,b),onProgress:f(a.onProgress,w)})):i.createElement(e,(0,r.__assign)((0,r.__assign)({controls:!1},a),{ref:d,onPlay:f(a.onPlay,p),onPlaying:f(a.onPlaying,h),onWaiting:f(a.onWaiting,g),onPause:f(a.onPause,m),onVolumeChange:f(a.onVolumeChange,y),onDurationChange:f(a.onDurationChange,v),onTimeUpdate:f(a.onTimeUpdate,b),onProgress:f(a.onProgress,w)}));var E=!1,x={play:function(){var e=d.current;if(e&&!E){var t=e.play();if("object"==typeof t){E=!0;var n=function(){E=!1};t.then(n,n)}return t}},pause:function(){var e=d.current;if(e&&!E)return e.pause()},seek:function(e){var t=d.current;t&&void 0!==l.duration&&(e=Math.min(l.duration,Math.max(0,e)),t.currentTime=e)},volume:function(e){var t=d.current;t&&(e=Math.min(1,Math.max(0,e)),t.volume=e,c({volume:e}))},mute:function(){var e=d.current;e&&(e.muted=!0)},unmute:function(){var e=d.current;e&&(e.muted=!1)}};return(0,i.useEffect)(function(){var e=d.current;e&&(c({volume:e.volume,muted:e.muted,paused:e.paused}),a.autoPlay&&e.paused&&x.play())},[a.src]),[n,l,x,d]}}},83039:function(e,t,n){"use strict";var r=(0,n(53818).Z)("audio");t.Z=r},1699:function(e,t,n){"use strict";var r=n(40929);t.Z=function(e){void 0===e&&(e={});var t=(0,r.useState)(e),n=t[0],i=t[1];return[n,(0,r.useCallback)(function(e){i(function(t){return Object.assign({},t,e instanceof Function?e(t):e)})},[])]}},75859:function(e,t,n){"use strict";var r=n(40929);let i=r.forwardRef(function(e,t){let{title:n,titleId:i,...o}=e;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":i},o),n?r.createElement("title",{id:i},n):null,r.createElement("path",{d:"M5.75 3a.75.75 0 0 0-.75.75v12.5c0 .414.336.75.75.75h1.5a.75.75 0 0 0 .75-.75V3.75A.75.75 0 0 0 7.25 3h-1.5ZM12.75 3a.75.75 0 0 0-.75.75v12.5c0 .414.336.75.75.75h1.5a.75.75 0 0 0 .75-.75V3.75a.75.75 0 0 0-.75-.75h-1.5Z"}))});t.Z=i},5412:function(e,t,n){"use strict";var r=n(40929);let i=r.forwardRef(function(e,t){let{title:n,titleId:i,...o}=e;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":i},o),n?r.createElement("title",{id:i},n):null,r.createElement("path",{d:"M6.3 2.84A1.5 1.5 0 0 0 4 4.11v11.78a1.5 1.5 0 0 0 2.3 1.27l9.344-5.891a1.5 1.5 0 0 0 0-2.538L6.3 2.841Z"}))});t.Z=i},73962:function(e,t,n){"use strict";var r=n(40929);let i=r.forwardRef(function(e,t){let{title:n,titleId:i,...o}=e;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":i},o),n?r.createElement("title",{id:i},n):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 15 3 9m0 0 6-6M3 9h12a6 6 0 0 1 0 12h-3"}))});t.Z=i},12800:function(e,t,n){"use strict";var r=n(40929);let i=r.forwardRef(function(e,t){let{title:n,titleId:i,...o}=e;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":i},o),n?r.createElement("title",{id:i},n):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m15 15 6-6m0 0-6-6m6 6H9a6 6 0 0 0 0 12h3"}))});t.Z=i},1209:function(e,t,n){"use strict";var r=n(40929);let i=r.forwardRef(function(e,t){let{title:n,titleId:i,...o}=e;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":i},o),n?r.createElement("title",{id:i},n):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.5 21 3 16.5m0 0L7.5 12M3 16.5h13.5m0-13.5L21 7.5m0 0L16.5 12M21 7.5H7.5"}))});t.Z=i},28140:function(e,t,n){"use strict";var r=n(40929);let i=r.forwardRef(function(e,t){let{title:n,titleId:i,...o}=e;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":i},o),n?r.createElement("title",{id:i},n):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 7.5 7.5 3m0 0L12 7.5M7.5 3v13.5m13.5 0L16.5 21m0 0L12 16.5m4.5 4.5V7.5"}))});t.Z=i},13631:function(e,t,n){"use strict";var r=n(40929);let i=r.forwardRef(function(e,t){let{title:n,titleId:i,...o}=e;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":i},o),n?r.createElement("title",{id:i},n):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))});t.Z=i},12458:function(e,t,n){"use strict";var r=n(40929);let i=r.forwardRef(function(e,t){let{title:n,titleId:i,...o}=e;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":i},o),n?r.createElement("title",{id:i},n):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 12.75 6 6 9-13.5"}))});t.Z=i},48953:function(e,t,n){"use strict";var r=n(40929);let i=r.forwardRef(function(e,t){let{title:n,titleId:i,...o}=e;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":i},o),n?r.createElement("title",{id:i},n):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 19.5 8.25 12l7.5-7.5"}))});t.Z=i},9043:function(e,t,n){"use strict";var r=n(40929);let i=r.forwardRef(function(e,t){let{title:n,titleId:i,...o}=e;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":i},o),n?r.createElement("title",{id:i},n):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"}))});t.Z=i},72606:function(e,t,n){"use strict";var r=n(40929);let i=r.forwardRef(function(e,t){let{title:n,titleId:i,...o}=e;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":i},o),n?r.createElement("title",{id:i},n):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.25 9.75 16.5 12l-2.25 2.25m-4.5 0L7.5 12l2.25-2.25M6 20.25h12A2.25 2.25 0 0 0 20.25 18V6A2.25 2.25 0 0 0 18 3.75H6A2.25 2.25 0 0 0 3.75 6v12A2.25 2.25 0 0 0 6 20.25Z"}))});t.Z=i},3688:function(e,t,n){"use strict";var r=n(40929);let i=r.forwardRef(function(e,t){let{title:n,titleId:i,...o}=e;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":i},o),n?r.createElement("title",{id:i},n):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 6.878V6a2.25 2.25 0 0 1 2.25-2.25h7.5A2.25 2.25 0 0 1 18 6v.878m-12 0c.235-.083.487-.128.75-.128h10.5c.263 0 .515.045.75.128m-12 0A2.25 2.25 0 0 0 4.5 9v.878m13.5-3A2.25 2.25 0 0 1 19.5 9v.878m0 0a2.246 2.246 0 0 0-.75-.128H5.25c-.263 0-.515.045-.75.128m15 0A2.25 2.25 0 0 1 21 12v6a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 18v-6c0-.98.626-1.813 1.5-2.122"}))});t.Z=i},15509:function(e,t,n){"use strict";var r=n(40929);let i=r.forwardRef(function(e,t){let{title:n,titleId:i,...o}=e;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":i},o),n?r.createElement("title",{id:i},n):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.429 9.75 2.25 12l4.179 2.25m0-4.5 5.571 3 5.571-3m-11.142 0L2.25 7.5 12 2.25l9.75 5.25-4.179 2.25m0 0L21.75 12l-4.179 2.25m0 0 4.179 2.25L12 21.75 2.25 16.5l4.179-2.25m11.142 0-5.571 3-5.571-3"}))});t.Z=i},30126:function(e,t,n){"use strict";var r=n(40929);let i=r.forwardRef(function(e,t){let{title:n,titleId:i,...o}=e;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":i},o),n?r.createElement("title",{id:i},n):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))});t.Z=i},7220:function(e,t,n){"use strict";var r=n(40929);let i=r.forwardRef(function(e,t){let{title:n,titleId:i,...o}=e;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":i},o),n?r.createElement("title",{id:i},n):null,r.createElement("path",{d:"M5.625 1.5c-1.036 0-1.875.84-1.875 1.875v17.25c0 1.035.84 1.875 1.875 1.875h12.75c1.035 0 1.875-.84 1.875-1.875V12.75A3.75 3.75 0 0 0 16.5 9h-1.875a1.875 1.875 0 0 1-1.875-1.875V5.25A3.75 3.75 0 0 0 9 1.5H5.625Z"}),r.createElement("path",{d:"M12.971 1.816A5.23 5.23 0 0 1 14.25 5.25v1.875c0 .207.168.375.375.375H16.5a5.23 5.23 0 0 1 3.434 1.279 9.768 9.768 0 0 0-6.963-6.963Z"}))});t.Z=i},53355:function(e,t,n){"use strict";function r(e,[t,n]){return Math.min(n,Math.max(t,e))}n.d(t,{u:function(){return r}})},36220:function(e,t,n){"use strict";n.d(t,{fC:function(){return P},z$:function(){return C}});var r=n(40929),i=n(96143),o=n(12403),u=n(25719),a=n(9245),s=n(13973),l=n(76122),c=n(22463),d=n(96796),f=n(29362),p="Checkbox",[h,g]=(0,o.b)(p),[m,y]=h(p),v=r.forwardRef((e,t)=>{let{__scopeCheckbox:n,name:o,checked:s,defaultChecked:l,required:c,disabled:p,value:h="on",onCheckedChange:g,...y}=e,[v,b]=r.useState(null),w=(0,i.e)(t,e=>b(e)),P=r.useRef(!1),C=!v||!!v.closest("form"),[A=!1,S]=(0,a.T)({prop:s,defaultProp:l,onChange:g}),D=r.useRef(A);return r.useEffect(()=>{let e=null==v?void 0:v.form;if(e){let t=()=>S(D.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[v,S]),(0,f.jsxs)(m,{scope:n,state:A,disabled:p,children:[(0,f.jsx)(d.WV.button,{type:"button",role:"checkbox","aria-checked":x(A)?"mixed":A,"aria-required":c,"data-state":O(A),"data-disabled":p?"":void 0,disabled:p,value:h,...y,ref:w,onKeyDown:(0,u.M)(e.onKeyDown,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,u.M)(e.onClick,e=>{S(e=>!!x(e)||!e),C&&(P.current=e.isPropagationStopped(),P.current||e.stopPropagation())})}),C&&(0,f.jsx)(E,{control:v,bubbles:!P.current,name:o,value:h,checked:A,required:c,disabled:p,style:{transform:"translateX(-100%)"}})]})});v.displayName=p;var b="CheckboxIndicator",w=r.forwardRef((e,t)=>{let{__scopeCheckbox:n,forceMount:r,...i}=e,o=y(b,n);return(0,f.jsx)(c.z,{present:r||x(o.state)||!0===o.state,children:(0,f.jsx)(d.WV.span,{"data-state":O(o.state),"data-disabled":o.disabled?"":void 0,...i,ref:t,style:{pointerEvents:"none",...e.style}})})});w.displayName=b;var E=e=>{let{control:t,checked:n,bubbles:i=!0,...o}=e,u=r.useRef(null),a=(0,s.D)(n),c=(0,l.t)(t);return r.useEffect(()=>{let e=u.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(a!==n&&t){let r=new Event("click",{bubbles:i});e.indeterminate=x(n),t.call(e,!x(n)&&n),e.dispatchEvent(r)}},[a,n,i]),(0,f.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:!x(n)&&n,...o,tabIndex:-1,ref:u,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function x(e){return"indeterminate"===e}function O(e){return x(e)?"indeterminate":e?"checked":"unchecked"}var P=v,C=w},32342:function(e,t,n){"use strict";n.d(t,{ck:function(){return I},fC:function(){return L},z$:function(){return B}});var r=n(40929),i=n(25719),o=n(96143),u=n(12403),a=n(96796),s=n(74241),l=n(9245),c=n(12088),d=n(76122),f=n(13973),p=n(22463),h=n(29362),g="Radio",[m,y]=(0,u.b)(g),[v,b]=m(g),w=r.forwardRef((e,t)=>{let{__scopeRadio:n,name:u,checked:s=!1,required:l,disabled:c,value:d="on",onCheck:f,...p}=e,[g,m]=r.useState(null),y=(0,o.e)(t,e=>m(e)),b=r.useRef(!1),w=!g||!!g.closest("form");return(0,h.jsxs)(v,{scope:n,checked:s,disabled:c,children:[(0,h.jsx)(a.WV.button,{type:"button",role:"radio","aria-checked":s,"data-state":P(s),"data-disabled":c?"":void 0,disabled:c,value:d,...p,ref:y,onClick:(0,i.M)(e.onClick,e=>{s||null==f||f(),w&&(b.current=e.isPropagationStopped(),b.current||e.stopPropagation())})}),w&&(0,h.jsx)(O,{control:g,bubbles:!b.current,name:u,value:d,checked:s,required:l,disabled:c,style:{transform:"translateX(-100%)"}})]})});w.displayName=g;var E="RadioIndicator",x=r.forwardRef((e,t)=>{let{__scopeRadio:n,forceMount:r,...i}=e,o=b(E,n);return(0,h.jsx)(p.z,{present:r||o.checked,children:(0,h.jsx)(a.WV.span,{"data-state":P(o.checked),"data-disabled":o.disabled?"":void 0,...i,ref:t})})});x.displayName=E;var O=e=>{let{control:t,checked:n,bubbles:i=!0,...o}=e,u=r.useRef(null),a=(0,f.D)(n),s=(0,d.t)(t);return r.useEffect(()=>{let e=u.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(a!==n&&t){let r=new Event("click",{bubbles:i});t.call(e,n),e.dispatchEvent(r)}},[a,n,i]),(0,h.jsx)("input",{type:"radio","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:u,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function P(e){return e?"checked":"unchecked"}var C=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],A="RadioGroup",[S,D]=(0,u.b)(A,[s.Pc,y]),j=(0,s.Pc)(),k=y(),[F,R]=S(A),_=r.forwardRef((e,t)=>{let{__scopeRadioGroup:n,name:r,defaultValue:i,value:o,required:u=!1,disabled:d=!1,orientation:f,dir:p,loop:g=!0,onValueChange:m,...y}=e,v=j(n),b=(0,c.gm)(p),[w,E]=(0,l.T)({prop:o,defaultProp:i,onChange:m});return(0,h.jsx)(F,{scope:n,name:r,required:u,disabled:d,value:w,onValueChange:E,children:(0,h.jsx)(s.fC,{asChild:!0,...v,orientation:f,dir:b,loop:g,children:(0,h.jsx)(a.WV.div,{role:"radiogroup","aria-required":u,"aria-orientation":f,"data-disabled":d?"":void 0,dir:b,...y,ref:t})})})});_.displayName=A;var M="RadioGroupItem",T=r.forwardRef((e,t)=>{let{__scopeRadioGroup:n,disabled:u,...a}=e,l=R(M,n),c=l.disabled||u,d=j(n),f=k(n),p=r.useRef(null),g=(0,o.e)(t,p),m=l.value===a.value,y=r.useRef(!1);return r.useEffect(()=>{let e=e=>{C.includes(e.key)&&(y.current=!0)},t=()=>y.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}},[]),(0,h.jsx)(s.ck,{asChild:!0,...d,focusable:!c,active:m,children:(0,h.jsx)(w,{disabled:c,required:l.required,checked:m,...f,...a,name:l.name,ref:g,onCheck:()=>l.onValueChange(a.value),onKeyDown:(0,i.M)(e=>{"Enter"===e.key&&e.preventDefault()}),onFocus:(0,i.M)(a.onFocus,()=>{var e;y.current&&(null===(e=p.current)||void 0===e||e.click())})})})});T.displayName=M;var N=r.forwardRef((e,t)=>{let{__scopeRadioGroup:n,...r}=e,i=k(n);return(0,h.jsx)(x,{...i,...r,ref:t})});N.displayName="RadioGroupIndicator";var L=_,I=T,B=N},61451:function(e,t,n){"use strict";n.d(t,{$G:function(){return eV},B4:function(){return eF},JO:function(){return eR},VY:function(){return eM},Z0:function(){return eU},ZA:function(){return eN},__:function(){return eL},ck:function(){return eI},eT:function(){return eB},fC:function(){return ej},h_:function(){return e_},l_:function(){return eT},u_:function(){return ez},wU:function(){return eH},xz:function(){return ek}});var r=n(40929),i=n(10211),o=n(53355),u=n(25719),a=n(31387),s=n(96143),l=n(12403),c=n(12088),d=n(39478),f=n(93800),p=n(62961),h=n(99786),g=n(32512),m=n(45442),y=n(96796),v=n(64870),b=n(2073),w=n(9245),E=n(22805),x=n(13973),O=n(86856),P=n(18168),C=n(82185),A=n(29362),S=[" ","Enter","ArrowUp","ArrowDown"],D=[" ","Enter"],j="Select",[k,F,R]=(0,a.B)(j),[_,M]=(0,l.b)(j,[R,g.D7]),T=(0,g.D7)(),[N,L]=_(j),[I,B]=_(j),H=e=>{let{__scopeSelect:t,children:n,open:i,defaultOpen:o,onOpenChange:u,value:a,defaultValue:s,onValueChange:l,dir:d,name:f,autoComplete:p,disabled:m,required:y}=e,v=T(t),[b,E]=r.useState(null),[x,O]=r.useState(null),[P,C]=r.useState(!1),S=(0,c.gm)(d),[D=!1,j]=(0,w.T)({prop:i,defaultProp:o,onChange:u}),[F,R]=(0,w.T)({prop:a,defaultProp:s,onChange:l}),_=r.useRef(null),M=!b||!!b.closest("form"),[L,B]=r.useState(new Set),H=Array.from(L).map(e=>e.props.value).join(";");return(0,A.jsx)(g.fC,{...v,children:(0,A.jsxs)(N,{required:y,scope:t,trigger:b,onTriggerChange:E,valueNode:x,onValueNodeChange:O,valueNodeHasChildren:P,onValueNodeHasChildrenChange:C,contentId:(0,h.M)(),value:F,onValueChange:R,open:D,onOpenChange:j,dir:S,triggerPointerDownPosRef:_,disabled:m,children:[(0,A.jsx)(k.Provider,{scope:t,children:(0,A.jsx)(I,{scope:e.__scopeSelect,onNativeOptionAdd:r.useCallback(e=>{B(t=>new Set(t).add(e))},[]),onNativeOptionRemove:r.useCallback(e=>{B(t=>{let n=new Set(t);return n.delete(e),n})},[]),children:n})}),M?(0,A.jsxs)(eA,{"aria-hidden":!0,required:y,tabIndex:-1,name:f,autoComplete:p,value:F,onChange:e=>R(e.target.value),disabled:m,children:[void 0===F?(0,A.jsx)("option",{value:""}):null,Array.from(L)]},H):null]})})};H.displayName=j;var z="SelectTrigger",V=r.forwardRef((e,t)=>{let{__scopeSelect:n,disabled:r=!1,...i}=e,o=T(n),a=L(z,n),l=a.disabled||r,c=(0,s.e)(t,a.onTriggerChange),d=F(n),[f,p,h]=eS(e=>{let t=d().filter(e=>!e.disabled),n=t.find(e=>e.value===a.value),r=eD(t,e,n);void 0!==r&&a.onValueChange(r.value)}),m=()=>{l||(a.onOpenChange(!0),h())};return(0,A.jsx)(g.ee,{asChild:!0,...o,children:(0,A.jsx)(y.WV.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":eC(a.value)?"":void 0,...i,ref:c,onClick:(0,u.M)(i.onClick,e=>{e.currentTarget.focus()}),onPointerDown:(0,u.M)(i.onPointerDown,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&(m(),a.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)},e.preventDefault())}),onKeyDown:(0,u.M)(i.onKeyDown,e=>{let t=""!==f.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||p(e.key),(!t||" "!==e.key)&&S.includes(e.key)&&(m(),e.preventDefault())})})})});V.displayName=z;var U="SelectValue",q=r.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:i,children:o,placeholder:u="",...a}=e,l=L(U,n),{onValueNodeHasChildrenChange:c}=l,d=void 0!==o,f=(0,s.e)(t,l.onValueNodeChange);return(0,E.b)(()=>{c(d)},[c,d]),(0,A.jsx)(y.WV.span,{...a,ref:f,style:{pointerEvents:"none"},children:eC(l.value)?(0,A.jsx)(A.Fragment,{children:u}):o})});q.displayName=U;var W=r.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,...i}=e;return(0,A.jsx)(y.WV.span,{"aria-hidden":!0,...i,ref:t,children:r||"▼"})});W.displayName="SelectIcon";var Z=e=>(0,A.jsx)(m.h,{asChild:!0,...e});Z.displayName="SelectPortal";var K="SelectContent",$=r.forwardRef((e,t)=>{let n=L(K,e.__scopeSelect),[o,u]=r.useState();return((0,E.b)(()=>{u(new DocumentFragment)},[]),n.open)?(0,A.jsx)(Q,{...e,ref:t}):o?i.createPortal((0,A.jsx)(X,{scope:e.__scopeSelect,children:(0,A.jsx)(k.Slot,{scope:e.__scopeSelect,children:(0,A.jsx)("div",{children:e.children})})}),o):null});$.displayName=K;var[X,Y]=_(K),Q=r.forwardRef((e,t)=>{let{__scopeSelect:n,position:i="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:l,side:c,sideOffset:h,align:g,alignOffset:m,arrowPadding:y,collisionBoundary:b,collisionPadding:w,sticky:E,hideWhenDetached:x,avoidCollisions:O,...S}=e,D=L(K,n),[j,k]=r.useState(null),[R,_]=r.useState(null),M=(0,s.e)(t,e=>k(e)),[T,N]=r.useState(null),[I,B]=r.useState(null),H=F(n),[z,V]=r.useState(!1),U=r.useRef(!1);r.useEffect(()=>{if(j)return(0,P.hideOthers)(j)},[j]),(0,f.EW)();let q=r.useCallback(e=>{let[t,...n]=H().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(let n of e)if(n===i||(null==n||n.scrollIntoView({block:"nearest"}),n===t&&R&&(R.scrollTop=0),n===r&&R&&(R.scrollTop=R.scrollHeight),null==n||n.focus(),document.activeElement!==i))return},[H,R]),W=r.useCallback(()=>q([T,j]),[q,T,j]);r.useEffect(()=>{z&&W()},[z,W]);let{onOpenChange:Z,triggerPointerDownPosRef:$}=D;r.useEffect(()=>{if(j){let e={x:0,y:0},t=t=>{var n,r,i,o;e={x:Math.abs(Math.round(t.pageX)-(null!==(i=null===(n=$.current)||void 0===n?void 0:n.x)&&void 0!==i?i:0)),y:Math.abs(Math.round(t.pageY)-(null!==(o=null===(r=$.current)||void 0===r?void 0:r.y)&&void 0!==o?o:0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():j.contains(n.target)||Z(!1),document.removeEventListener("pointermove",t),$.current=null};return null!==$.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[j,Z,$]),r.useEffect(()=>{let e=()=>Z(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[Z]);let[Y,Q]=eS(e=>{let t=H().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),r=eD(t,e,n);r&&setTimeout(()=>r.ref.current.focus())}),ee=r.useCallback((e,t,n)=>{let r=!U.current&&!n;(void 0!==D.value&&D.value===t||r)&&(N(e),r&&(U.current=!0))},[D.value]),et=r.useCallback(()=>null==j?void 0:j.focus(),[j]),en=r.useCallback((e,t,n)=>{let r=!U.current&&!n;(void 0!==D.value&&D.value===t||r)&&B(e)},[D.value]),er="popper"===i?J:G,ei=er===J?{side:c,sideOffset:h,align:g,alignOffset:m,arrowPadding:y,collisionBoundary:b,collisionPadding:w,sticky:E,hideWhenDetached:x,avoidCollisions:O}:{};return(0,A.jsx)(X,{scope:n,content:j,viewport:R,onViewportChange:_,itemRefCallback:ee,selectedItem:T,onItemLeave:et,itemTextRefCallback:en,focusSelectedItem:W,selectedItemText:I,position:i,isPositioned:z,searchRef:Y,children:(0,A.jsx)(C.Z,{as:v.g7,allowPinchZoom:!0,children:(0,A.jsx)(p.M,{asChild:!0,trapped:D.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,u.M)(o,e=>{var t;null===(t=D.trigger)||void 0===t||t.focus({preventScroll:!0}),e.preventDefault()}),children:(0,A.jsx)(d.XB,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>D.onOpenChange(!1),children:(0,A.jsx)(er,{role:"listbox",id:D.contentId,"data-state":D.open?"open":"closed",dir:D.dir,onContextMenu:e=>e.preventDefault(),...S,...ei,onPlaced:()=>V(!0),ref:M,style:{display:"flex",flexDirection:"column",outline:"none",...S.style},onKeyDown:(0,u.M)(S.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||Q(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=H().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>q(t)),e.preventDefault()}})})})})})})});Q.displayName="SelectContentImpl";var G=r.forwardRef((e,t)=>{let{__scopeSelect:n,onPlaced:i,...u}=e,a=L(K,n),l=Y(K,n),[c,d]=r.useState(null),[f,p]=r.useState(null),h=(0,s.e)(t,e=>p(e)),g=F(n),m=r.useRef(!1),v=r.useRef(!0),{viewport:b,selectedItem:w,selectedItemText:x,focusSelectedItem:O}=l,P=r.useCallback(()=>{if(a.trigger&&a.valueNode&&c&&f&&b&&w&&x){let e=a.trigger.getBoundingClientRect(),t=f.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),r=x.getBoundingClientRect();if("rtl"!==a.dir){let i=r.left-t.left,u=n.left-i,a=e.left-u,s=e.width+a,l=Math.max(s,t.width),d=window.innerWidth-10,f=(0,o.u)(u,[10,d-l]);c.style.minWidth=s+"px",c.style.left=f+"px"}else{let i=t.right-r.right,u=window.innerWidth-n.right-i,a=window.innerWidth-e.right-u,s=e.width+a,l=Math.max(s,t.width),d=window.innerWidth-10,f=(0,o.u)(u,[10,d-l]);c.style.minWidth=s+"px",c.style.right=f+"px"}let u=g(),s=window.innerHeight-20,l=b.scrollHeight,d=window.getComputedStyle(f),p=parseInt(d.borderTopWidth,10),h=parseInt(d.paddingTop,10),y=parseInt(d.borderBottomWidth,10),v=p+h+l+parseInt(d.paddingBottom,10)+y,E=Math.min(5*w.offsetHeight,v),O=window.getComputedStyle(b),P=parseInt(O.paddingTop,10),C=parseInt(O.paddingBottom,10),A=e.top+e.height/2-10,S=w.offsetHeight/2,D=p+h+(w.offsetTop+S);if(D<=A){let e=w===u[u.length-1].ref.current;c.style.bottom="0px";let t=f.clientHeight-b.offsetTop-b.offsetHeight;c.style.height=D+Math.max(s-A,S+(e?C:0)+t+y)+"px"}else{let e=w===u[0].ref.current;c.style.top="0px";let t=Math.max(A,p+b.offsetTop+(e?P:0)+S);c.style.height=t+(v-D)+"px",b.scrollTop=D-A+b.offsetTop}c.style.margin="".concat(10,"px 0"),c.style.minHeight=E+"px",c.style.maxHeight=s+"px",null==i||i(),requestAnimationFrame(()=>m.current=!0)}},[g,a.trigger,a.valueNode,c,f,b,w,x,a.dir,i]);(0,E.b)(()=>P(),[P]);let[C,S]=r.useState();(0,E.b)(()=>{f&&S(window.getComputedStyle(f).zIndex)},[f]);let D=r.useCallback(e=>{e&&!0===v.current&&(P(),null==O||O(),v.current=!1)},[P,O]);return(0,A.jsx)(ee,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:m,onScrollButtonChange:D,children:(0,A.jsx)("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:(0,A.jsx)(y.WV.div,{...u,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...u.style}})})})});G.displayName="SelectItemAlignedPosition";var J=r.forwardRef((e,t)=>{let{__scopeSelect:n,align:r="start",collisionPadding:i=10,...o}=e,u=T(n);return(0,A.jsx)(g.VY,{...u,...o,ref:t,align:r,collisionPadding:i,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});J.displayName="SelectPopperPosition";var[ee,et]=_(K,{}),en="SelectViewport",er=r.forwardRef((e,t)=>{let{__scopeSelect:n,nonce:i,...o}=e,a=Y(en,n),l=et(en,n),c=(0,s.e)(t,a.onViewportChange),d=r.useRef(0);return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),(0,A.jsx)(k.Slot,{scope:n,children:(0,A.jsx)(y.WV.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:c,style:{position:"relative",flex:1,overflow:"auto",...o.style},onScroll:(0,u.M)(o.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=l;if((null==r?void 0:r.current)&&n){let e=Math.abs(d.current-t.scrollTop);if(e>0){let r=window.innerHeight-20,i=Math.max(parseFloat(n.style.minHeight),parseFloat(n.style.height));if(i<r){let o=i+e,u=Math.min(r,o),a=o-u;n.style.height=u+"px","0px"===n.style.bottom&&(t.scrollTop=a>0?a:0,n.style.justifyContent="flex-end")}}}d.current=t.scrollTop})})})]})});er.displayName=en;var ei="SelectGroup",[eo,eu]=_(ei),ea=r.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=(0,h.M)();return(0,A.jsx)(eo,{scope:n,id:i,children:(0,A.jsx)(y.WV.div,{role:"group","aria-labelledby":i,...r,ref:t})})});ea.displayName=ei;var es="SelectLabel",el=r.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=eu(es,n);return(0,A.jsx)(y.WV.div,{id:i.id,...r,ref:t})});el.displayName=es;var ec="SelectItem",[ed,ef]=_(ec),ep=r.forwardRef((e,t)=>{let{__scopeSelect:n,value:i,disabled:o=!1,textValue:a,...l}=e,c=L(ec,n),d=Y(ec,n),f=c.value===i,[p,g]=r.useState(null!=a?a:""),[m,v]=r.useState(!1),b=(0,s.e)(t,e=>{var t;return null===(t=d.itemRefCallback)||void 0===t?void 0:t.call(d,e,i,o)}),w=(0,h.M)(),E=()=>{o||(c.onValueChange(i),c.onOpenChange(!1))};if(""===i)throw Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,A.jsx)(ed,{scope:n,value:i,disabled:o,textId:w,isSelected:f,onItemTextChange:r.useCallback(e=>{g(t=>{var n;return t||(null!==(n=null==e?void 0:e.textContent)&&void 0!==n?n:"").trim()})},[]),children:(0,A.jsx)(k.ItemSlot,{scope:n,value:i,disabled:o,textValue:p,children:(0,A.jsx)(y.WV.div,{role:"option","aria-labelledby":w,"data-highlighted":m?"":void 0,"aria-selected":f&&m,"data-state":f?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...l,ref:b,onFocus:(0,u.M)(l.onFocus,()=>v(!0)),onBlur:(0,u.M)(l.onBlur,()=>v(!1)),onPointerUp:(0,u.M)(l.onPointerUp,E),onPointerMove:(0,u.M)(l.onPointerMove,e=>{if(o){var t;null===(t=d.onItemLeave)||void 0===t||t.call(d)}else e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,u.M)(l.onPointerLeave,e=>{if(e.currentTarget===document.activeElement){var t;null===(t=d.onItemLeave)||void 0===t||t.call(d)}}),onKeyDown:(0,u.M)(l.onKeyDown,e=>{var t;(null===(t=d.searchRef)||void 0===t?void 0:t.current)!==""&&" "===e.key||(D.includes(e.key)&&E()," "===e.key&&e.preventDefault())})})})})});ep.displayName=ec;var eh="SelectItemText",eg=r.forwardRef((e,t)=>{let{__scopeSelect:n,className:o,style:u,...a}=e,l=L(eh,n),c=Y(eh,n),d=ef(eh,n),f=B(eh,n),[p,h]=r.useState(null),g=(0,s.e)(t,e=>h(e),d.onItemTextChange,e=>{var t;return null===(t=c.itemTextRefCallback)||void 0===t?void 0:t.call(c,e,d.value,d.disabled)}),m=null==p?void 0:p.textContent,v=r.useMemo(()=>(0,A.jsx)("option",{value:d.value,disabled:d.disabled,children:m},d.value),[d.disabled,d.value,m]),{onNativeOptionAdd:b,onNativeOptionRemove:w}=f;return(0,E.b)(()=>(b(v),()=>w(v)),[b,w,v]),(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(y.WV.span,{id:d.textId,...a,ref:g}),d.isSelected&&l.valueNode&&!l.valueNodeHasChildren?i.createPortal(a.children,l.valueNode):null]})});eg.displayName=eh;var em="SelectItemIndicator",ey=r.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return ef(em,n).isSelected?(0,A.jsx)(y.WV.span,{"aria-hidden":!0,...r,ref:t}):null});ey.displayName=em;var ev="SelectScrollUpButton",eb=r.forwardRef((e,t)=>{let n=Y(ev,e.__scopeSelect),i=et(ev,e.__scopeSelect),[o,u]=r.useState(!1),a=(0,s.e)(t,i.onScrollButtonChange);return(0,E.b)(()=>{if(n.viewport&&n.isPositioned){let e=function(){u(t.scrollTop>0)},t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),o?(0,A.jsx)(ex,{...e,ref:a,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});eb.displayName=ev;var ew="SelectScrollDownButton",eE=r.forwardRef((e,t)=>{let n=Y(ew,e.__scopeSelect),i=et(ew,e.__scopeSelect),[o,u]=r.useState(!1),a=(0,s.e)(t,i.onScrollButtonChange);return(0,E.b)(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;u(Math.ceil(t.scrollTop)<e)},t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),o?(0,A.jsx)(ex,{...e,ref:a,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});eE.displayName=ew;var ex=r.forwardRef((e,t)=>{let{__scopeSelect:n,onAutoScroll:i,...o}=e,a=Y("SelectScrollButton",n),s=r.useRef(null),l=F(n),c=r.useCallback(()=>{null!==s.current&&(window.clearInterval(s.current),s.current=null)},[]);return r.useEffect(()=>()=>c(),[c]),(0,E.b)(()=>{var e;let t=l().find(e=>e.ref.current===document.activeElement);null==t||null===(e=t.ref.current)||void 0===e||e.scrollIntoView({block:"nearest"})},[l]),(0,A.jsx)(y.WV.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:(0,u.M)(o.onPointerDown,()=>{null===s.current&&(s.current=window.setInterval(i,50))}),onPointerMove:(0,u.M)(o.onPointerMove,()=>{var e;null===(e=a.onItemLeave)||void 0===e||e.call(a),null===s.current&&(s.current=window.setInterval(i,50))}),onPointerLeave:(0,u.M)(o.onPointerLeave,()=>{c()})})}),eO=r.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return(0,A.jsx)(y.WV.div,{"aria-hidden":!0,...r,ref:t})});eO.displayName="SelectSeparator";var eP="SelectArrow";function eC(e){return""===e||void 0===e}r.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=T(n),o=L(eP,n),u=Y(eP,n);return o.open&&"popper"===u.position?(0,A.jsx)(g.Eh,{...i,...r,ref:t}):null}).displayName=eP;var eA=r.forwardRef((e,t)=>{let{value:n,...i}=e,o=r.useRef(null),u=(0,s.e)(t,o),a=(0,x.D)(n);return r.useEffect(()=>{let e=o.current,t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(a!==n&&t){let r=new Event("change",{bubbles:!0});t.call(e,n),e.dispatchEvent(r)}},[a,n]),(0,A.jsx)(O.T,{asChild:!0,children:(0,A.jsx)("select",{...i,ref:u,defaultValue:n})})});function eS(e){let t=(0,b.W)(e),n=r.useRef(""),i=r.useRef(0),o=r.useCallback(e=>{let r=n.current+e;t(r),function e(t){n.current=t,window.clearTimeout(i.current),""!==t&&(i.current=window.setTimeout(()=>e(""),1e3))}(r)},[t]),u=r.useCallback(()=>{n.current="",window.clearTimeout(i.current)},[]);return r.useEffect(()=>()=>window.clearTimeout(i.current),[]),[n,o,u]}function eD(e,t,n){var r;let i=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=(r=Math.max(n?e.indexOf(n):-1,0),e.map((t,n)=>e[(r+n)%e.length]));1===i.length&&(o=o.filter(e=>e!==n));let u=o.find(e=>e.textValue.toLowerCase().startsWith(i.toLowerCase()));return u!==n?u:void 0}eA.displayName="BubbleSelect";var ej=H,ek=V,eF=q,eR=W,e_=Z,eM=$,eT=er,eN=ea,eL=el,eI=ep,eB=eg,eH=ey,ez=eb,eV=eE,eU=eO},47059:function(e,t,n){"use strict";n.d(t,{bU:function(){return W},e6:function(){return q},fC:function(){return V},fQ:function(){return U}});var r=n(40929),i=n(53355),o=n(25719),u=n(96143),a=n(12403),s=n(9245),l=n(12088),c=n(13973),d=n(76122),f=n(96796),p=n(31387),h=n(29362),g=["PageUp","PageDown"],m=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],y={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},v="Slider",[b,w,E]=(0,p.B)(v),[x,O]=(0,a.b)(v,[E]),[P,C]=x(v),A=r.forwardRef((e,t)=>{let{name:n,min:u=0,max:a=100,step:l=1,orientation:c="horizontal",disabled:d=!1,minStepsBetweenThumbs:f=0,defaultValue:p=[u],value:y,onValueChange:v=()=>{},onValueCommit:w=()=>{},inverted:E=!1,...x}=e,O=r.useRef(new Set),C=r.useRef(0),A="horizontal"===c?j:k,[S=[],D]=(0,s.T)({prop:y,defaultProp:p,onChange:e=>{var t;null===(t=[...O.current][C.current])||void 0===t||t.focus(),v(e)}}),F=r.useRef(S);function R(e,t){let{commit:n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{commit:!1},r=(String(l).split(".")[1]||"").length,o=function(e,t){let n=Math.pow(10,t);return Math.round(e*n)/n}(Math.round((e-u)/l)*l+u,r),s=(0,i.u)(o,[u,a]);D(function(){var e,r;let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=[...e];return r[n]=t,r.sort((e,t)=>e-t)}(i,s,t);if(e=o,!(!((r=f*l)>0)||Math.min(...e.slice(0,-1).map((t,n)=>e[n+1]-t))>=r))return i;{C.current=o.indexOf(s);let e=String(o)!==String(i);return e&&n&&w(o),e?o:i}})}return(0,h.jsx)(P,{scope:e.__scopeSlider,name:n,disabled:d,min:u,max:a,valueIndexToChangeRef:C,thumbs:O.current,values:S,orientation:c,children:(0,h.jsx)(b.Provider,{scope:e.__scopeSlider,children:(0,h.jsx)(b.Slot,{scope:e.__scopeSlider,children:(0,h.jsx)(A,{"aria-disabled":d,"data-disabled":d?"":void 0,...x,ref:t,onPointerDown:(0,o.M)(x.onPointerDown,()=>{d||(F.current=S)}),min:u,max:a,inverted:E,onSlideStart:d?void 0:function(e){let t=function(e,t){if(1===e.length)return 0;let n=e.map(e=>Math.abs(e-t));return n.indexOf(Math.min(...n))}(S,e);R(e,t)},onSlideMove:d?void 0:function(e){R(e,C.current)},onSlideEnd:d?void 0:function(){let e=F.current[C.current];S[C.current]!==e&&w(S)},onHomeKeyDown:()=>!d&&R(u,0,{commit:!0}),onEndKeyDown:()=>!d&&R(a,S.length-1,{commit:!0}),onStepKeyDown:e=>{let{event:t,direction:n}=e;if(!d){let e=g.includes(t.key)||t.shiftKey&&m.includes(t.key),r=C.current;R(S[r]+l*(e?10:1)*n,r,{commit:!0})}}})})})})});A.displayName=v;var[S,D]=x(v,{startEdge:"left",endEdge:"right",size:"width",direction:1}),j=r.forwardRef((e,t)=>{let{min:n,max:i,dir:o,inverted:a,onSlideStart:s,onSlideMove:c,onSlideEnd:d,onStepKeyDown:f,...p}=e,[g,m]=r.useState(null),v=(0,u.e)(t,e=>m(e)),b=r.useRef(),w=(0,l.gm)(o),E="ltr"===w,x=E&&!a||!E&&a;function O(e){let t=b.current||g.getBoundingClientRect(),r=z([0,t.width],x?[n,i]:[i,n]);return b.current=t,r(e-t.left)}return(0,h.jsx)(S,{scope:e.__scopeSlider,startEdge:x?"left":"right",endEdge:x?"right":"left",direction:x?1:-1,size:"width",children:(0,h.jsx)(F,{dir:w,"data-orientation":"horizontal",...p,ref:v,style:{...p.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:e=>{let t=O(e.clientX);null==s||s(t)},onSlideMove:e=>{let t=O(e.clientX);null==c||c(t)},onSlideEnd:()=>{b.current=void 0,null==d||d()},onStepKeyDown:e=>{let t=y[x?"from-left":"from-right"].includes(e.key);null==f||f({event:e,direction:t?-1:1})}})})}),k=r.forwardRef((e,t)=>{let{min:n,max:i,inverted:o,onSlideStart:a,onSlideMove:s,onSlideEnd:l,onStepKeyDown:c,...d}=e,f=r.useRef(null),p=(0,u.e)(t,f),g=r.useRef(),m=!o;function v(e){let t=g.current||f.current.getBoundingClientRect(),r=z([0,t.height],m?[i,n]:[n,i]);return g.current=t,r(e-t.top)}return(0,h.jsx)(S,{scope:e.__scopeSlider,startEdge:m?"bottom":"top",endEdge:m?"top":"bottom",size:"height",direction:m?1:-1,children:(0,h.jsx)(F,{"data-orientation":"vertical",...d,ref:p,style:{...d.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:e=>{let t=v(e.clientY);null==a||a(t)},onSlideMove:e=>{let t=v(e.clientY);null==s||s(t)},onSlideEnd:()=>{g.current=void 0,null==l||l()},onStepKeyDown:e=>{let t=y[m?"from-bottom":"from-top"].includes(e.key);null==c||c({event:e,direction:t?-1:1})}})})}),F=r.forwardRef((e,t)=>{let{__scopeSlider:n,onSlideStart:r,onSlideMove:i,onSlideEnd:u,onHomeKeyDown:a,onEndKeyDown:s,onStepKeyDown:l,...c}=e,d=C(v,n);return(0,h.jsx)(f.WV.span,{...c,ref:t,onKeyDown:(0,o.M)(e.onKeyDown,e=>{"Home"===e.key?(a(e),e.preventDefault()):"End"===e.key?(s(e),e.preventDefault()):g.concat(m).includes(e.key)&&(l(e),e.preventDefault())}),onPointerDown:(0,o.M)(e.onPointerDown,e=>{let t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),d.thumbs.has(t)?t.focus():r(e)}),onPointerMove:(0,o.M)(e.onPointerMove,e=>{e.target.hasPointerCapture(e.pointerId)&&i(e)}),onPointerUp:(0,o.M)(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),u(e))})})}),R="SliderTrack",_=r.forwardRef((e,t)=>{let{__scopeSlider:n,...r}=e,i=C(R,n);return(0,h.jsx)(f.WV.span,{"data-disabled":i.disabled?"":void 0,"data-orientation":i.orientation,...r,ref:t})});_.displayName=R;var M="SliderRange",T=r.forwardRef((e,t)=>{let{__scopeSlider:n,...i}=e,o=C(M,n),a=D(M,n),s=r.useRef(null),l=(0,u.e)(t,s),c=o.values.length,d=o.values.map(e=>H(e,o.min,o.max));return(0,h.jsx)(f.WV.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...i,ref:l,style:{...e.style,[a.startEdge]:(c>1?Math.min(...d):0)+"%",[a.endEdge]:100-Math.max(...d)+"%"}})});T.displayName=M;var N="SliderThumb",L=r.forwardRef((e,t)=>{let n=w(e.__scopeSlider),[i,o]=r.useState(null),a=(0,u.e)(t,e=>o(e)),s=r.useMemo(()=>i?n().findIndex(e=>e.ref.current===i):-1,[n,i]);return(0,h.jsx)(I,{...e,ref:a,index:s})}),I=r.forwardRef((e,t)=>{var n;let{__scopeSlider:i,index:a,name:s,...l}=e,c=C(N,i),p=D(N,i),[g,m]=r.useState(null),y=(0,u.e)(t,e=>m(e)),v=!g||!!g.closest("form"),w=(0,d.t)(g),E=c.values[a],x=void 0===E?0:H(E,c.min,c.max),O=(n=c.values.length)>2?"Value ".concat(a+1," of ").concat(n):2===n?["Minimum","Maximum"][a]:void 0,P=null==w?void 0:w[p.size],A=P?function(e,t,n){let r=e/2,i=z([0,50],[0,r]);return(r-i(t)*n)*n}(P,x,p.direction):0;return r.useEffect(()=>{if(g)return c.thumbs.add(g),()=>{c.thumbs.delete(g)}},[g,c.thumbs]),(0,h.jsxs)("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[p.startEdge]:"calc(".concat(x,"% + ").concat(A,"px)")},children:[(0,h.jsx)(b.ItemSlot,{scope:e.__scopeSlider,children:(0,h.jsx)(f.WV.span,{role:"slider","aria-label":e["aria-label"]||O,"aria-valuemin":c.min,"aria-valuenow":E,"aria-valuemax":c.max,"aria-orientation":c.orientation,"data-orientation":c.orientation,"data-disabled":c.disabled?"":void 0,tabIndex:c.disabled?void 0:0,...l,ref:y,style:void 0===E?{display:"none"}:e.style,onFocus:(0,o.M)(e.onFocus,()=>{c.valueIndexToChangeRef.current=a})})}),v&&(0,h.jsx)(B,{name:null!=s?s:c.name?c.name+(c.values.length>1?"[]":""):void 0,value:E},a)]})});L.displayName=N;var B=e=>{let{value:t,...n}=e,i=r.useRef(null),o=(0,c.D)(t);return r.useEffect(()=>{let e=i.current,n=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value").set;if(o!==t&&n){let r=new Event("input",{bubbles:!0});n.call(e,t),e.dispatchEvent(r)}},[o,t]),(0,h.jsx)("input",{style:{display:"none"},...n,ref:i,defaultValue:t})};function H(e,t,n){return(0,i.u)(100/(n-t)*(e-t),[0,100])}function z(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}var V=A,U=_,q=T,W=L},94498:function(e,t,n){"use strict";n.d(t,{t:function(){return eM}});/*!
 *  decimal.js v10.4.3
 *  An arbitrary-precision Decimal type for JavaScript.
 *  https://github.com/MikeMcl/decimal.js
 *  Copyright (c) 2022 Michael Mclaughlin <M8ch88l@gmail.com>
 *  MIT Licence
 */var r,i,o="0123456789abcdef",u="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",a="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",s={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-9e15,maxE:9e15,crypto:!1},l=!0,c="[DecimalError] ",d=c+"Invalid argument: ",f=c+"Precision limit exceeded",p=c+"crypto unavailable",h="[object Decimal]",g=Math.floor,m=Math.pow,y=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,v=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,b=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,w=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,E=u.length-1,x=a.length-1,O={toStringTag:h};function P(e){var t,n,r,i=e.length-1,o="",u=e[0];if(i>0){for(o+=u,t=1;t<i;t++)(n=7-(r=e[t]+"").length)&&(o+=T(n)),o+=r;(n=7-(r=(u=e[t])+"").length)&&(o+=T(n))}else if(0===u)return"0";for(;u%10==0;)u/=10;return o+u}function C(e,t,n){if(e!==~~e||e<t||e>n)throw Error(d+e)}function A(e,t,n,r){var i,o,u,a;for(o=e[0];o>=10;o/=10)--t;return--t<0?(t+=7,i=0):(i=Math.ceil((t+1)/7),t%=7),o=m(10,7-t),a=e[i]%o|0,null==r?t<3?(0==t?a=a/100|0:1==t&&(a=a/10|0),u=n<4&&99999==a||n>3&&49999==a||5e4==a||0==a):u=(n<4&&a+1==o||n>3&&a+1==o/2)&&(e[i+1]/o/100|0)==m(10,t-2)-1||(a==o/2||0==a)&&(e[i+1]/o/100|0)==0:t<4?(0==t?a=a/1e3|0:1==t?a=a/100|0:2==t&&(a=a/10|0),u=(r||n<4)&&9999==a||!r&&n>3&&4999==a):u=((r||n<4)&&a+1==o||!r&&n>3&&a+1==o/2)&&(e[i+1]/o/1e3|0)==m(10,t-3)-1,u}function S(e,t,n){for(var r,i,u=[0],a=0,s=e.length;a<s;){for(i=u.length;i--;)u[i]*=t;for(u[0]+=o.indexOf(e.charAt(a++)),r=0;r<u.length;r++)u[r]>n-1&&(void 0===u[r+1]&&(u[r+1]=0),u[r+1]+=u[r]/n|0,u[r]%=n)}return u.reverse()}O.absoluteValue=O.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),j(e)},O.ceil=function(){return j(new this.constructor(this),this.e+1,2)},O.clampedTo=O.clamp=function(e,t){var n=this.constructor;if(e=new n(e),t=new n(t),!e.s||!t.s)return new n(NaN);if(e.gt(t))throw Error(d+t);return 0>this.cmp(e)?e:this.cmp(t)>0?t:new n(this)},O.comparedTo=O.cmp=function(e){var t,n,r,i,o=this.d,u=(e=new this.constructor(e)).d,a=this.s,s=e.s;if(!o||!u)return a&&s?a!==s?a:o===u?0:!o^a<0?1:-1:NaN;if(!o[0]||!u[0])return o[0]?a:u[0]?-s:0;if(a!==s)return a;if(this.e!==e.e)return this.e>e.e^a<0?1:-1;for(t=0,n=(r=o.length)<(i=u.length)?r:i;t<n;++t)if(o[t]!==u[t])return o[t]>u[t]^a<0?1:-1;return r===i?0:r>i^a<0?1:-1},O.cosine=O.cos=function(){var e,t,n=this,r=n.constructor;return n.d?n.d[0]?(e=r.precision,t=r.rounding,r.precision=e+Math.max(n.e,n.sd())+7,r.rounding=1,n=function(e,t){var n,r,i;if(t.isZero())return t;(r=t.d.length)<32?i=(1/q(4,n=Math.ceil(r/3))).toString():(n=16,i="2.3283064365386962890625e-10"),e.precision+=n,t=U(e,1,t.times(i),new e(1));for(var o=n;o--;){var u=t.times(t);t=u.times(u).minus(u).times(8).plus(1)}return e.precision-=n,t}(r,W(r,n)),r.precision=e,r.rounding=t,j(2==i||3==i?n.neg():n,e,t,!0)):new r(1):new r(NaN)},O.cubeRoot=O.cbrt=function(){var e,t,n,r,i,o,u,a,s,c,d=this.constructor;if(!this.isFinite()||this.isZero())return new d(this);for(l=!1,(o=this.s*m(this.s*this,1/3))&&Math.abs(o)!=1/0?r=new d(o.toString()):(n=P(this.d),(o=((e=this.e)-n.length+1)%3)&&(n+=1==o||-2==o?"0":"00"),o=m(n,1/3),e=g((e+1)/3)-(e%3==(e<0?-1:2)),(r=new d(n=o==1/0?"5e"+e:(n=o.toExponential()).slice(0,n.indexOf("e")+1)+e)).s=this.s),u=(e=d.precision)+3;;)if(r=D((c=(s=(a=r).times(a).times(a)).plus(this)).plus(this).times(a),c.plus(s),u+2,1),P(a.d).slice(0,u)===(n=P(r.d)).slice(0,u)){if("9999"!=(n=n.slice(u-3,u+1))&&(i||"4999"!=n)){+n&&(+n.slice(1)||"5"!=n.charAt(0))||(j(r,e+1,1),t=!r.times(r).times(r).eq(this));break}if(!i&&(j(a,e+1,0),a.times(a).times(a).eq(this))){r=a;break}u+=4,i=1}return l=!0,j(r,e,d.rounding,t)},O.decimalPlaces=O.dp=function(){var e,t=this.d,n=NaN;if(t){if(n=((e=t.length-1)-g(this.e/7))*7,e=t[e])for(;e%10==0;e/=10)n--;n<0&&(n=0)}return n},O.dividedBy=O.div=function(e){return D(this,new this.constructor(e))},O.dividedToIntegerBy=O.divToInt=function(e){var t=this.constructor;return j(D(this,new t(e),0,1,1),t.precision,t.rounding)},O.equals=O.eq=function(e){return 0===this.cmp(e)},O.floor=function(){return j(new this.constructor(this),this.e+1,3)},O.greaterThan=O.gt=function(e){return this.cmp(e)>0},O.greaterThanOrEqualTo=O.gte=function(e){var t=this.cmp(e);return 1==t||0===t},O.hyperbolicCosine=O.cosh=function(){var e,t,n,r,i,o=this,u=o.constructor,a=new u(1);if(!o.isFinite())return new u(o.s?1/0:NaN);if(o.isZero())return a;n=u.precision,r=u.rounding,u.precision=n+Math.max(o.e,o.sd())+4,u.rounding=1,(i=o.d.length)<32?t=(1/q(4,e=Math.ceil(i/3))).toString():(e=16,t="2.3283064365386962890625e-10"),o=U(u,1,o.times(t),new u(1),!0);for(var s,l=e,c=new u(8);l--;)s=o.times(o),o=a.minus(s.times(c.minus(s.times(c))));return j(o,u.precision=n,u.rounding=r,!0)},O.hyperbolicSine=O.sinh=function(){var e,t,n,r,i=this,o=i.constructor;if(!i.isFinite()||i.isZero())return new o(i);if(t=o.precision,n=o.rounding,o.precision=t+Math.max(i.e,i.sd())+4,o.rounding=1,(r=i.d.length)<3)i=U(o,2,i,i,!0);else{e=(e=1.4*Math.sqrt(r))>16?16:0|e,i=U(o,2,i=i.times(1/q(5,e)),i,!0);for(var u,a=new o(5),s=new o(16),l=new o(20);e--;)u=i.times(i),i=i.times(a.plus(u.times(s.times(u).plus(l))))}return o.precision=t,o.rounding=n,j(i,t,n,!0)},O.hyperbolicTangent=O.tanh=function(){var e,t,n=this.constructor;return this.isFinite()?this.isZero()?new n(this):(e=n.precision,t=n.rounding,n.precision=e+7,n.rounding=1,D(this.sinh(),this.cosh(),n.precision=e,n.rounding=t)):new n(this.s)},O.inverseCosine=O.acos=function(){var e,t=this,n=t.constructor,r=t.abs().cmp(1),i=n.precision,o=n.rounding;return -1!==r?0===r?t.isNeg()?_(n,i,o):new n(0):new n(NaN):t.isZero()?_(n,i+4,o).times(.5):(n.precision=i+6,n.rounding=1,t=t.asin(),e=_(n,i+4,o).times(.5),n.precision=i,n.rounding=o,e.minus(t))},O.inverseHyperbolicCosine=O.acosh=function(){var e,t,n=this,r=n.constructor;return n.lte(1)?new r(n.eq(1)?0:NaN):n.isFinite()?(e=r.precision,t=r.rounding,r.precision=e+Math.max(Math.abs(n.e),n.sd())+4,r.rounding=1,l=!1,n=n.times(n).minus(1).sqrt().plus(n),l=!0,r.precision=e,r.rounding=t,n.ln()):new r(n)},O.inverseHyperbolicSine=O.asinh=function(){var e,t,n=this,r=n.constructor;return!n.isFinite()||n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+2*Math.max(Math.abs(n.e),n.sd())+6,r.rounding=1,l=!1,n=n.times(n).plus(1).sqrt().plus(n),l=!0,r.precision=e,r.rounding=t,n.ln())},O.inverseHyperbolicTangent=O.atanh=function(){var e,t,n,r,i=this,o=i.constructor;return i.isFinite()?i.e>=0?new o(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(e=o.precision,t=o.rounding,Math.max(r=i.sd(),e)<-(2*i.e)-1)?j(new o(i),e,t,!0):(o.precision=n=r-i.e,i=D(i.plus(1),new o(1).minus(i),n+e,1),o.precision=e+4,o.rounding=1,i=i.ln(),o.precision=e,o.rounding=t,i.times(.5)):new o(NaN)},O.inverseSine=O.asin=function(){var e,t,n,r,i=this,o=i.constructor;return i.isZero()?new o(i):(t=i.abs().cmp(1),n=o.precision,r=o.rounding,-1!==t)?0===t?((e=_(o,n+4,r).times(.5)).s=i.s,e):new o(NaN):(o.precision=n+6,o.rounding=1,i=i.div(new o(1).minus(i.times(i)).sqrt().plus(1)).atan(),o.precision=n,o.rounding=r,i.times(2))},O.inverseTangent=O.atan=function(){var e,t,n,r,i,o,u,a,s,c=this,d=c.constructor,f=d.precision,p=d.rounding;if(c.isFinite()){if(c.isZero())return new d(c);if(c.abs().eq(1)&&f+4<=x)return(u=_(d,f+4,p).times(.25)).s=c.s,u}else{if(!c.s)return new d(NaN);if(f+4<=x)return(u=_(d,f+4,p).times(.5)).s=c.s,u}for(d.precision=a=f+10,d.rounding=1,e=n=Math.min(28,a/7+2|0);e;--e)c=c.div(c.times(c).plus(1).sqrt().plus(1));for(l=!1,t=Math.ceil(a/7),r=1,s=c.times(c),u=new d(c),i=c;-1!==e;)if(i=i.times(s),o=u.minus(i.div(r+=2)),i=i.times(s),void 0!==(u=o.plus(i.div(r+=2))).d[t])for(e=t;u.d[e]===o.d[e]&&e--;);return n&&(u=u.times(2<<n-1)),l=!0,j(u,d.precision=f,d.rounding=p,!0)},O.isFinite=function(){return!!this.d},O.isInteger=O.isInt=function(){return!!this.d&&g(this.e/7)>this.d.length-2},O.isNaN=function(){return!this.s},O.isNegative=O.isNeg=function(){return this.s<0},O.isPositive=O.isPos=function(){return this.s>0},O.isZero=function(){return!!this.d&&0===this.d[0]},O.lessThan=O.lt=function(e){return 0>this.cmp(e)},O.lessThanOrEqualTo=O.lte=function(e){return 1>this.cmp(e)},O.logarithm=O.log=function(e){var t,n,r,i,o,u,a,s=this.constructor,c=s.precision,d=s.rounding;if(null==e)e=new s(10),t=!0;else{if(n=(e=new s(e)).d,e.s<0||!n||!n[0]||e.eq(1))return new s(NaN);t=e.eq(10)}if(n=this.d,this.s<0||!n||!n[0]||this.eq(1))return new s(n&&!n[0]?-1/0:1!=this.s?NaN:n?0:1/0);if(t){if(n.length>1)i=!0;else{for(r=n[0];r%10==0;)r/=10;i=1!==r}}if(l=!1,A((a=D(H(this,u=c+5),t?R(s,u+10):H(e,u),u,1)).d,r=c,d))do if(u+=10,a=D(H(this,u),t?R(s,u+10):H(e,u),u,1),!i){+P(a.d).slice(r+1,r+15)+1==1e14&&(a=j(a,c+1,0));break}while(A(a.d,r+=10,d));return l=!0,j(a,c,d)},O.minus=O.sub=function(e){var t,n,r,i,o,u,a,s,c,d,f,p,h=this.constructor;if(e=new h(e),!this.d||!e.d)return this.s&&e.s?this.d?e.s=-e.s:e=new h(e.d||this.s!==e.s?this:NaN):e=new h(NaN),e;if(this.s!=e.s)return e.s=-e.s,this.plus(e);if(c=this.d,p=e.d,a=h.precision,s=h.rounding,!c[0]||!p[0]){if(p[0])e.s=-e.s;else{if(!c[0])return new h(3===s?-0:0);e=new h(this)}return l?j(e,a,s):e}if(n=g(e.e/7),d=g(this.e/7),c=c.slice(),o=d-n){for((f=o<0)?(t=c,o=-o,u=p.length):(t=p,n=d,u=c.length),o>(r=Math.max(Math.ceil(a/7),u)+2)&&(o=r,t.length=1),t.reverse(),r=o;r--;)t.push(0);t.reverse()}else{for((f=(r=c.length)<(u=p.length))&&(u=r),r=0;r<u;r++)if(c[r]!=p[r]){f=c[r]<p[r];break}o=0}for(f&&(t=c,c=p,p=t,e.s=-e.s),u=c.length,r=p.length-u;r>0;--r)c[u++]=0;for(r=p.length;r>o;){if(c[--r]<p[r]){for(i=r;i&&0===c[--i];)c[i]=1e7-1;--c[i],c[r]+=1e7}c[r]-=p[r]}for(;0===c[--u];)c.pop();for(;0===c[0];c.shift())--n;return c[0]?(e.d=c,e.e=F(c,n),l?j(e,a,s):e):new h(3===s?-0:0)},O.modulo=O.mod=function(e){var t,n=this.constructor;return(e=new n(e),this.d&&e.s&&(!e.d||e.d[0]))?e.d&&(!this.d||this.d[0])?(l=!1,9==n.modulo?(t=D(this,e.abs(),0,3,1),t.s*=e.s):t=D(this,e,0,n.modulo,1),t=t.times(e),l=!0,this.minus(t)):j(new n(this),n.precision,n.rounding):new n(NaN)},O.naturalExponential=O.exp=function(){return B(this)},O.naturalLogarithm=O.ln=function(){return H(this)},O.negated=O.neg=function(){var e=new this.constructor(this);return e.s=-e.s,j(e)},O.plus=O.add=function(e){var t,n,r,i,o,u,a,s,c,d,f=this.constructor;if(e=new f(e),!this.d||!e.d)return this.s&&e.s?this.d||(e=new f(e.d||this.s===e.s?this:NaN)):e=new f(NaN),e;if(this.s!=e.s)return e.s=-e.s,this.minus(e);if(c=this.d,d=e.d,a=f.precision,s=f.rounding,!c[0]||!d[0])return d[0]||(e=new f(this)),l?j(e,a,s):e;if(o=g(this.e/7),r=g(e.e/7),c=c.slice(),i=o-r){for(i<0?(n=c,i=-i,u=d.length):(n=d,r=o,u=c.length),i>(u=(o=Math.ceil(a/7))>u?o+1:u+1)&&(i=u,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for((u=c.length)-(i=d.length)<0&&(i=u,n=d,d=c,c=n),t=0;i;)t=(c[--i]=c[i]+d[i]+t)/1e7|0,c[i]%=1e7;for(t&&(c.unshift(t),++r),u=c.length;0==c[--u];)c.pop();return e.d=c,e.e=F(c,r),l?j(e,a,s):e},O.precision=O.sd=function(e){var t;if(void 0!==e&&!!e!==e&&1!==e&&0!==e)throw Error(d+e);return this.d?(t=M(this.d),e&&this.e+1>t&&(t=this.e+1)):t=NaN,t},O.round=function(){var e=this.constructor;return j(new e(this),this.e+1,e.rounding)},O.sine=O.sin=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+Math.max(n.e,n.sd())+7,r.rounding=1,n=function(e,t){var n,r=t.d.length;if(r<3)return t.isZero()?t:U(e,2,t,t);n=(n=1.4*Math.sqrt(r))>16?16:0|n,t=U(e,2,t=t.times(1/q(5,n)),t);for(var i,o=new e(5),u=new e(16),a=new e(20);n--;)i=t.times(t),t=t.times(o.plus(i.times(u.times(i).minus(a))));return t}(r,W(r,n)),r.precision=e,r.rounding=t,j(i>2?n.neg():n,e,t,!0)):new r(NaN)},O.squareRoot=O.sqrt=function(){var e,t,n,r,i,o,u=this.d,a=this.e,s=this.s,c=this.constructor;if(1!==s||!u||!u[0])return new c(!s||s<0&&(!u||u[0])?NaN:u?this:1/0);for(l=!1,0==(s=Math.sqrt(+this))||s==1/0?(((t=P(u)).length+a)%2==0&&(t+="0"),s=Math.sqrt(t),a=g((a+1)/2)-(a<0||a%2),r=new c(t=s==1/0?"5e"+a:(t=s.toExponential()).slice(0,t.indexOf("e")+1)+a)):r=new c(s.toString()),n=(a=c.precision)+3;;)if(r=(o=r).plus(D(this,o,n+2,1)).times(.5),P(o.d).slice(0,n)===(t=P(r.d)).slice(0,n)){if("9999"!=(t=t.slice(n-3,n+1))&&(i||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(j(r,a+1,1),e=!r.times(r).eq(this));break}if(!i&&(j(o,a+1,0),o.times(o).eq(this))){r=o;break}n+=4,i=1}return l=!0,j(r,a,c.rounding,e)},O.tangent=O.tan=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+10,r.rounding=1,(n=n.sin()).s=1,n=D(n,new r(1).minus(n.times(n)).sqrt(),e+10,0),r.precision=e,r.rounding=t,j(2==i||4==i?n.neg():n,e,t,!0)):new r(NaN)},O.times=O.mul=function(e){var t,n,r,i,o,u,a,s,c,d=this.constructor,f=this.d,p=(e=new d(e)).d;if(e.s*=this.s,!f||!f[0]||!p||!p[0])return new d(e.s&&(!f||f[0]||p)&&(!p||p[0]||f)?f&&p?0*e.s:e.s/0:NaN);for(n=g(this.e/7)+g(e.e/7),(s=f.length)<(c=p.length)&&(o=f,f=p,p=o,u=s,s=c,c=u),o=[],r=u=s+c;r--;)o.push(0);for(r=c;--r>=0;){for(t=0,i=s+r;i>r;)a=o[i]+p[r]*f[i-r-1]+t,o[i--]=a%1e7|0,t=a/1e7|0;o[i]=(o[i]+t)%1e7|0}for(;!o[--u];)o.pop();return t?++n:o.shift(),e.d=o,e.e=F(o,n),l?j(e,d.precision,d.rounding):e},O.toBinary=function(e,t){return Z(this,2,e,t)},O.toDecimalPlaces=O.toDP=function(e,t){var n=this,r=n.constructor;return(n=new r(n),void 0===e)?n:(C(e,0,1e9),void 0===t?t=r.rounding:C(t,0,8),j(n,e+n.e+1,t))},O.toExponential=function(e,t){var n,r=this,i=r.constructor;return void 0===e?n=k(r,!0):(C(e,0,1e9),void 0===t?t=i.rounding:C(t,0,8),n=k(r=j(new i(r),e+1,t),!0,e+1)),r.isNeg()&&!r.isZero()?"-"+n:n},O.toFixed=function(e,t){var n,r,i=this.constructor;return void 0===e?n=k(this):(C(e,0,1e9),void 0===t?t=i.rounding:C(t,0,8),n=k(r=j(new i(this),e+this.e+1,t),!1,e+r.e+1)),this.isNeg()&&!this.isZero()?"-"+n:n},O.toFraction=function(e){var t,n,r,i,o,u,a,s,c,f,p,h,g=this.d,y=this.constructor;if(!g)return new y(this);if(c=n=new y(1),r=s=new y(0),u=(o=(t=new y(r)).e=M(g)-this.e-1)%7,t.d[0]=m(10,u<0?7+u:u),null==e)e=o>0?t:c;else{if(!(a=new y(e)).isInt()||a.lt(c))throw Error(d+a);e=a.gt(t)?o>0?t:c:a}for(l=!1,a=new y(P(g)),f=y.precision,y.precision=o=14*g.length;p=D(a,t,0,1,1),1!=(i=n.plus(p.times(r))).cmp(e);)n=r,r=i,i=c,c=s.plus(p.times(i)),s=i,i=t,t=a.minus(p.times(i)),a=i;return i=D(e.minus(n),r,0,1,1),s=s.plus(i.times(c)),n=n.plus(i.times(r)),s.s=c.s=this.s,h=1>D(c,r,o,1).minus(this).abs().cmp(D(s,n,o,1).minus(this).abs())?[c,r]:[s,n],y.precision=f,l=!0,h},O.toHexadecimal=O.toHex=function(e,t){return Z(this,16,e,t)},O.toNearest=function(e,t){var n=this,r=n.constructor;if(n=new r(n),null==e){if(!n.d)return n;e=new r(1),t=r.rounding}else{if(e=new r(e),void 0===t?t=r.rounding:C(t,0,8),!n.d)return e.s?n:e;if(!e.d)return e.s&&(e.s=n.s),e}return e.d[0]?(l=!1,n=D(n,e,0,t,1).times(e),l=!0,j(n)):(e.s=n.s,n=e),n},O.toNumber=function(){return+this},O.toOctal=function(e,t){return Z(this,8,e,t)},O.toPower=O.pow=function(e){var t,n,r,i,o,u,a=this,s=a.constructor,c=+(e=new s(e));if(!a.d||!e.d||!a.d[0]||!e.d[0])return new s(m(+a,c));if((a=new s(a)).eq(1))return a;if(r=s.precision,o=s.rounding,e.eq(1))return j(a,r,o);if((t=g(e.e/7))>=e.d.length-1&&(n=c<0?-c:c)<=9007199254740991)return i=N(s,a,n,r),e.s<0?new s(1).div(i):j(i,r,o);if((u=a.s)<0){if(t<e.d.length-1)return new s(NaN);if((1&e.d[t])==0&&(u=1),0==a.e&&1==a.d[0]&&1==a.d.length)return a.s=u,a}return(t=0!=(n=m(+a,c))&&isFinite(n)?new s(n+"").e:g(c*(Math.log("0."+P(a.d))/Math.LN10+a.e+1)))>s.maxE+1||t<s.minE-1?new s(t>0?u/0:0):(l=!1,s.rounding=a.s=1,n=Math.min(12,(t+"").length),(i=B(e.times(H(a,r+n)),r)).d&&A((i=j(i,r+5,1)).d,r,o)&&(t=r+10,+P((i=j(B(e.times(H(a,t+n)),t),t+5,1)).d).slice(r+1,r+15)+1==1e14&&(i=j(i,r+1,0))),i.s=u,l=!0,s.rounding=o,j(i,r,o))},O.toPrecision=function(e,t){var n,r=this,i=r.constructor;return void 0===e?n=k(r,r.e<=i.toExpNeg||r.e>=i.toExpPos):(C(e,1,1e9),void 0===t?t=i.rounding:C(t,0,8),n=k(r=j(new i(r),e,t),e<=r.e||r.e<=i.toExpNeg,e)),r.isNeg()&&!r.isZero()?"-"+n:n},O.toSignificantDigits=O.toSD=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(C(e,1,1e9),void 0===t?t=n.rounding:C(t,0,8)),j(new n(this),e,t)},O.toString=function(){var e=this.constructor,t=k(this,this.e<=e.toExpNeg||this.e>=e.toExpPos);return this.isNeg()&&!this.isZero()?"-"+t:t},O.truncated=O.trunc=function(){return j(new this.constructor(this),this.e+1,1)},O.valueOf=O.toJSON=function(){var e=this.constructor,t=k(this,this.e<=e.toExpNeg||this.e>=e.toExpPos);return this.isNeg()?"-"+t:t};var D=function(){function e(e,t,n){var r,i=0,o=e.length;for(e=e.slice();o--;)r=e[o]*t+i,e[o]=r%n|0,i=r/n|0;return i&&e.unshift(i),e}function t(e,t,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;i<n;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function n(e,t,n,r){for(var i=0;n--;)e[n]-=i,i=e[n]<t[n]?1:0,e[n]=i*r+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(i,o,u,a,s,l){var c,d,f,p,h,m,y,v,b,w,E,x,O,P,C,A,S,D,k,F,R=i.constructor,_=i.s==o.s?1:-1,M=i.d,T=o.d;if(!M||!M[0]||!T||!T[0])return new R(i.s&&o.s&&(M?!T||M[0]!=T[0]:T)?M&&0==M[0]||!T?0*_:_/0:NaN);for(l?(h=1,d=i.e-o.e):(l=1e7,h=7,d=g(i.e/h)-g(o.e/h)),k=T.length,S=M.length,w=(b=new R(_)).d=[],f=0;T[f]==(M[f]||0);f++);if(T[f]>(M[f]||0)&&d--,null==u?(P=u=R.precision,a=R.rounding):P=s?u+(i.e-o.e)+1:u,P<0)w.push(1),m=!0;else{if(P=P/h+2|0,f=0,1==k){for(p=0,T=T[0],P++;(f<S||p)&&P--;f++)C=p*l+(M[f]||0),w[f]=C/T|0,p=C%T|0;m=p||f<S}else{for((p=l/(T[0]+1)|0)>1&&(T=e(T,p,l),M=e(M,p,l),k=T.length,S=M.length),A=k,x=(E=M.slice(0,k)).length;x<k;)E[x++]=0;(F=T.slice()).unshift(0),D=T[0],T[1]>=l/2&&++D;do p=0,(c=t(T,E,k,x))<0?(O=E[0],k!=x&&(O=O*l+(E[1]||0)),(p=O/D|0)>1?(p>=l&&(p=l-1),v=(y=e(T,p,l)).length,x=E.length,1==(c=t(y,E,v,x))&&(p--,n(y,k<v?F:T,v,l))):(0==p&&(c=p=1),y=T.slice()),(v=y.length)<x&&y.unshift(0),n(E,y,x,l),-1==c&&(x=E.length,(c=t(T,E,k,x))<1&&(p++,n(E,k<x?F:T,x,l))),x=E.length):0===c&&(p++,E=[0]),w[f++]=p,c&&E[0]?E[x++]=M[A]||0:(E=[M[A]],x=1);while((A++<S||void 0!==E[0])&&P--);m=void 0!==E[0]}w[0]||w.shift()}if(1==h)b.e=d,r=m;else{for(f=1,p=w[0];p>=10;p/=10)f++;b.e=f+d*h-1,j(b,s?u+b.e+1:u,a,m)}return b}}();function j(e,t,n,r){var i,o,u,a,s,c,d,f,p,h=e.constructor;e:if(null!=t){if(!(f=e.d))return e;for(i=1,a=f[0];a>=10;a/=10)i++;if((o=t-i)<0)o+=7,u=t,s=(d=f[p=0])/m(10,i-u-1)%10|0;else if((p=Math.ceil((o+1)/7))>=(a=f.length)){if(r){for(;a++<=p;)f.push(0);d=s=0,i=1,o%=7,u=o-7+1}else break e}else{for(i=1,d=a=f[p];a>=10;a/=10)i++;o%=7,s=(u=o-7+i)<0?0:d/m(10,i-u-1)%10|0}if(r=r||t<0||void 0!==f[p+1]||(u<0?d:d%m(10,i-u-1)),c=n<4?(s||r)&&(0==n||n==(e.s<0?3:2)):s>5||5==s&&(4==n||r||6==n&&(o>0?u>0?d/m(10,i-u):0:f[p-1])%10&1||n==(e.s<0?8:7)),t<1||!f[0])return f.length=0,c?(t-=e.e+1,f[0]=m(10,(7-t%7)%7),e.e=-t||0):f[0]=e.e=0,e;if(0==o?(f.length=p,a=1,p--):(f.length=p+1,a=m(10,7-o),f[p]=u>0?(d/m(10,i-u)%m(10,u)|0)*a:0),c)for(;;){if(0==p){for(o=1,u=f[0];u>=10;u/=10)o++;for(u=f[0]+=a,a=1;u>=10;u/=10)a++;o!=a&&(e.e++,1e7==f[0]&&(f[0]=1));break}if(f[p]+=a,1e7!=f[p])break;f[p--]=0,a=1}for(o=f.length;0===f[--o];)f.pop()}return l&&(e.e>h.maxE?(e.d=null,e.e=NaN):e.e<h.minE&&(e.e=0,e.d=[0])),e}function k(e,t,n){if(!e.isFinite())return z(e);var r,i=e.e,o=P(e.d),u=o.length;return t?(n&&(r=n-u)>0?o=o.charAt(0)+"."+o.slice(1)+T(r):u>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(e.e<0?"e":"e+")+e.e):i<0?(o="0."+T(-i-1)+o,n&&(r=n-u)>0&&(o+=T(r))):i>=u?(o+=T(i+1-u),n&&(r=n-i-1)>0&&(o=o+"."+T(r))):((r=i+1)<u&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-u)>0&&(i+1===u&&(o+="."),o+=T(r))),o}function F(e,t){var n=e[0];for(t*=7;n>=10;n/=10)t++;return t}function R(e,t,n){if(t>E)throw l=!0,n&&(e.precision=n),Error(f);return j(new e(u),t,1,!0)}function _(e,t,n){if(t>x)throw Error(f);return j(new e(a),t,n,!0)}function M(e){var t=e.length-1,n=7*t+1;if(t=e[t]){for(;t%10==0;t/=10)n--;for(t=e[0];t>=10;t/=10)n++}return n}function T(e){for(var t="";e--;)t+="0";return t}function N(e,t,n,r){var i,o=new e(1),u=Math.ceil(r/7+4);for(l=!1;;){if(n%2&&K((o=o.times(t)).d,u)&&(i=!0),0===(n=g(n/2))){n=o.d.length-1,i&&0===o.d[n]&&++o.d[n];break}K((t=t.times(t)).d,u)}return l=!0,o}function L(e){return 1&e.d[e.d.length-1]}function I(e,t,n){for(var r,i=new e(t[0]),o=0;++o<t.length;)if((r=new e(t[o])).s)i[n](r)&&(i=r);else{i=r;break}return i}function B(e,t){var n,r,i,o,u,a,s,c=0,d=0,f=0,p=e.constructor,h=p.rounding,g=p.precision;if(!e.d||!e.d[0]||e.e>17)return new p(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:0/0);for(null==t?(l=!1,s=g):s=t,a=new p(.03125);e.e>-2;)e=e.times(a),f+=5;for(s+=r=Math.log(m(2,f))/Math.LN10*2+5|0,n=o=u=new p(1),p.precision=s;;){if(o=j(o.times(e),s,1),n=n.times(++d),P((a=u.plus(D(o,n,s,1))).d).slice(0,s)===P(u.d).slice(0,s)){for(i=f;i--;)u=j(u.times(u),s,1);if(null!=t)return p.precision=g,u;if(!(c<3&&A(u.d,s-r,h,c)))return j(u,p.precision=g,h,l=!0);p.precision=s+=10,n=o=a=new p(1),d=0,c++}u=a}}function H(e,t){var n,r,i,o,u,a,s,c,d,f,p,h=1,g=e,m=g.d,y=g.constructor,v=y.rounding,b=y.precision;if(g.s<0||!m||!m[0]||!g.e&&1==m[0]&&1==m.length)return new y(m&&!m[0]?-1/0:1!=g.s?NaN:m?0:g);if(null==t?(l=!1,d=b):d=t,y.precision=d+=10,r=(n=P(m)).charAt(0),!(15e14>Math.abs(o=g.e)))return c=R(y,d+2,b).times(o+""),g=H(new y(r+"."+n.slice(1)),d-10).plus(c),y.precision=b,null==t?j(g,b,v,l=!0):g;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=P((g=g.times(e)).d)).charAt(0),h++;for(o=g.e,r>1?(g=new y("0."+n),o++):g=new y(r+"."+n.slice(1)),f=g,s=u=g=D(g.minus(1),g.plus(1),d,1),p=j(g.times(g),d,1),i=3;;){if(u=j(u.times(p),d,1),P((c=s.plus(D(u,new y(i),d,1))).d).slice(0,d)===P(s.d).slice(0,d)){if(s=s.times(2),0!==o&&(s=s.plus(R(y,d+2,b).times(o+""))),s=D(s,new y(h),d,1),null!=t)return y.precision=b,s;if(!A(s.d,d-10,v,a))return j(s,y.precision=b,v,l=!0);y.precision=d+=10,c=u=g=D(f.minus(1),f.plus(1),d,1),p=j(g.times(g),d,1),i=a=1}s=c,i+=2}}function z(e){return String(e.s*e.s/0)}function V(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;48===t.charCodeAt(r);r++);for(i=t.length;48===t.charCodeAt(i-1);--i);if(t=t.slice(r,i)){if(i-=r,e.e=n=n-r-1,e.d=[],r=(n+1)%7,n<0&&(r+=7),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=7;r<i;)e.d.push(+t.slice(r,r+=7));r=7-(t=t.slice(r)).length}else r-=i;for(;r--;)t+="0";e.d.push(+t),l&&(e.e>e.constructor.maxE?(e.d=null,e.e=NaN):e.e<e.constructor.minE&&(e.e=0,e.d=[0]))}else e.e=0,e.d=[0];return e}function U(e,t,n,r,i){var o,u,a,s,c=e.precision,d=Math.ceil(c/7);for(l=!1,s=n.times(n),a=new e(r);;){if(u=D(a.times(s),new e(t++*t++),c,1),a=i?r.plus(u):r.minus(u),r=D(u.times(s),new e(t++*t++),c,1),void 0!==(u=a.plus(r)).d[d]){for(o=d;u.d[o]===a.d[o]&&o--;);if(-1==o)break}o=a,a=r,r=u,u=o}return l=!0,u.d.length=d+1,u}function q(e,t){for(var n=e;--t;)n*=e;return n}function W(e,t){var n,r=t.s<0,o=_(e,e.precision,1),u=o.times(.5);if((t=t.abs()).lte(u))return i=r?4:1,t;if((n=t.divToInt(o)).isZero())i=r?3:2;else{if((t=t.minus(n.times(o))).lte(u))return i=L(n)?r?2:3:r?4:1,t;i=L(n)?r?1:4:r?3:2}return t.minus(o).abs()}function Z(e,t,n,i){var u,a,s,l,c,d,f,p,h,g=e.constructor,m=void 0!==n;if(m?(C(n,1,1e9),void 0===i?i=g.rounding:C(i,0,8)):(n=g.precision,i=g.rounding),e.isFinite()){for(s=(f=k(e)).indexOf("."),m?(u=2,16==t?n=4*n-3:8==t&&(n=3*n-2)):u=t,s>=0&&(f=f.replace(".",""),(h=new g(1)).e=f.length-s,h.d=S(k(h),10,u),h.e=h.d.length),a=c=(p=S(f,10,u)).length;0==p[--c];)p.pop();if(p[0]){if(s<0?a--:((e=new g(e)).d=p,e.e=a,p=(e=D(e,h,n,i,0,u)).d,a=e.e,d=r),s=p[n],l=u/2,d=d||void 0!==p[n+1],d=i<4?(void 0!==s||d)&&(0===i||i===(e.s<0?3:2)):s>l||s===l&&(4===i||d||6===i&&1&p[n-1]||i===(e.s<0?8:7)),p.length=n,d)for(;++p[--n]>u-1;)p[n]=0,n||(++a,p.unshift(1));for(c=p.length;!p[c-1];--c);for(s=0,f="";s<c;s++)f+=o.charAt(p[s]);if(m){if(c>1){if(16==t||8==t){for(s=16==t?4:3,--c;c%s;c++)f+="0";for(c=(p=S(f,u,t)).length;!p[c-1];--c);for(s=1,f="1.";s<c;s++)f+=o.charAt(p[s])}else f=f.charAt(0)+"."+f.slice(1)}f=f+(a<0?"p":"p+")+a}else if(a<0){for(;++a;)f="0"+f;f="0."+f}else if(++a>c)for(a-=c;a--;)f+="0";else a<c&&(f=f.slice(0,a)+"."+f.slice(a))}else f=m?"0p+0":"0";f=(16==t?"0x":2==t?"0b":8==t?"0o":"")+f}else f=z(e);return e.s<0?"-"+f:f}function K(e,t){if(e.length>t)return e.length=t,!0}function $(e){return new this(e).abs()}function X(e){return new this(e).acos()}function Y(e){return new this(e).acosh()}function Q(e,t){return new this(e).plus(t)}function G(e){return new this(e).asin()}function J(e){return new this(e).asinh()}function ee(e){return new this(e).atan()}function et(e){return new this(e).atanh()}function en(e,t){e=new this(e),t=new this(t);var n,r=this.precision,i=this.rounding,o=r+4;return e.s&&t.s?e.d||t.d?!t.d||e.isZero()?(n=t.s<0?_(this,r,i):new this(0)).s=e.s:!e.d||t.isZero()?(n=_(this,o,1).times(.5)).s=e.s:t.s<0?(this.precision=o,this.rounding=1,n=this.atan(D(e,t,o,1)),t=_(this,o,1),this.precision=r,this.rounding=i,n=e.s<0?n.minus(t):n.plus(t)):n=this.atan(D(e,t,o,1)):(n=_(this,o,1).times(t.s>0?.25:.75)).s=e.s:n=new this(NaN),n}function er(e){return new this(e).cbrt()}function ei(e){return j(e=new this(e),e.e+1,2)}function eo(e,t,n){return new this(e).clamp(t,n)}function eu(e){if(!e||"object"!=typeof e)throw Error(c+"Object expected");var t,n,r,i=!0===e.defaults,o=["precision",1,1e9,"rounding",0,8,"toExpNeg",-9e15,0,"toExpPos",0,9e15,"maxE",0,9e15,"minE",-9e15,0,"modulo",0,9];for(t=0;t<o.length;t+=3)if(n=o[t],i&&(this[n]=s[n]),void 0!==(r=e[n])){if(g(r)===r&&r>=o[t+1]&&r<=o[t+2])this[n]=r;else throw Error(d+n+": "+r)}if(n="crypto",i&&(this[n]=s[n]),void 0!==(r=e[n])){if(!0===r||!1===r||0===r||1===r){if(r){if("undefined"!=typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[n]=!0;else throw Error(p)}else this[n]=!1}else throw Error(d+n+": "+r)}return this}function ea(e){return new this(e).cos()}function es(e){return new this(e).cosh()}function el(e,t){return new this(e).div(t)}function ec(e){return new this(e).exp()}function ed(e){return j(e=new this(e),e.e+1,3)}function ef(){var e,t,n=new this(0);for(e=0,l=!1;e<arguments.length;)if(t=new this(arguments[e++]),t.d)n.d&&(n=n.plus(t.times(t)));else{if(t.s)return l=!0,new this(1/0);n=t}return l=!0,n.sqrt()}function ep(e){return e instanceof eM||e&&e.toStringTag===h||!1}function eh(e){return new this(e).ln()}function eg(e,t){return new this(e).log(t)}function em(e){return new this(e).log(2)}function ey(e){return new this(e).log(10)}function ev(){return I(this,arguments,"lt")}function eb(){return I(this,arguments,"gt")}function ew(e,t){return new this(e).mod(t)}function eE(e,t){return new this(e).mul(t)}function ex(e,t){return new this(e).pow(t)}function eO(e){var t,n,r,i,o=0,u=new this(1),a=[];if(void 0===e?e=this.precision:C(e,1,1e9),r=Math.ceil(e/7),this.crypto){if(crypto.getRandomValues)for(t=crypto.getRandomValues(new Uint32Array(r));o<r;)(i=t[o])>=429e7?t[o]=crypto.getRandomValues(new Uint32Array(1))[0]:a[o++]=i%1e7;else if(crypto.randomBytes){for(t=crypto.randomBytes(r*=4);o<r;)(i=t[o]+(t[o+1]<<8)+(t[o+2]<<16)+((127&t[o+3])<<24))>=214e7?crypto.randomBytes(4).copy(t,o):(a.push(i%1e7),o+=4);o=r/4}else throw Error(p)}else for(;o<r;)a[o++]=1e7*Math.random()|0;for(r=a[--o],e%=7,r&&e&&(i=m(10,7-e),a[o]=(r/i|0)*i);0===a[o];o--)a.pop();if(o<0)n=0,a=[0];else{for(n=-1;0===a[0];n-=7)a.shift();for(r=1,i=a[0];i>=10;i/=10)r++;r<7&&(n-=7-r)}return u.e=n,u.d=a,u}function eP(e){return j(e=new this(e),e.e+1,this.rounding)}function eC(e){return(e=new this(e)).d?e.d[0]?e.s:0*e.s:e.s||NaN}function eA(e){return new this(e).sin()}function eS(e){return new this(e).sinh()}function eD(e){return new this(e).sqrt()}function ej(e,t){return new this(e).sub(t)}function ek(){var e=0,t=arguments,n=new this(t[0]);for(l=!1;n.s&&++e<t.length;)n=n.plus(t[e]);return l=!0,j(n,this.precision,this.rounding)}function eF(e){return new this(e).tan()}function eR(e){return new this(e).tanh()}function e_(e){return j(e=new this(e),e.e+1,1)}O[Symbol.for("nodejs.util.inspect.custom")]=O.toString,O[Symbol.toStringTag]="Decimal";var eM=O.constructor=function e(t){var n,r,i;function o(e){var t,n,r;if(!(this instanceof o))return new o(e);if(this.constructor=o,ep(e)){this.s=e.s,l?!e.d||e.e>o.maxE?(this.e=NaN,this.d=null):e.e<o.minE?(this.e=0,this.d=[0]):(this.e=e.e,this.d=e.d.slice()):(this.e=e.e,this.d=e.d?e.d.slice():e.d);return}if("number"==(r=typeof e)){if(0===e){this.s=1/e<0?-1:1,this.e=0,this.d=[0];return}if(e<0?(e=-e,this.s=-1):this.s=1,e===~~e&&e<1e7){for(t=0,n=e;n>=10;n/=10)t++;l?t>o.maxE?(this.e=NaN,this.d=null):t<o.minE?(this.e=0,this.d=[0]):(this.e=t,this.d=[e]):(this.e=t,this.d=[e]);return}if(0*e!=0){e||(this.s=NaN),this.e=NaN,this.d=null;return}return V(this,e.toString())}if("string"!==r)throw Error(d+e);return 45===(n=e.charCodeAt(0))?(e=e.slice(1),this.s=-1):(43===n&&(e=e.slice(1)),this.s=1),w.test(e)?V(this,e):function(e,t){var n,r,i,o,u,a,s,c,f;if(t.indexOf("_")>-1){if(t=t.replace(/(\d)_(?=\d)/g,"$1"),w.test(t))return V(e,t)}else if("Infinity"===t||"NaN"===t)return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(v.test(t))n=16,t=t.toLowerCase();else if(y.test(t))n=2;else if(b.test(t))n=8;else throw Error(d+t);for((o=t.search(/p/i))>0?(s=+t.slice(o+1),t=t.substring(2,o)):t=t.slice(2),u=(o=t.indexOf("."))>=0,r=e.constructor,u&&(o=(a=(t=t.replace(".","")).length)-o,i=N(r,new r(n),o,2*o)),o=f=(c=S(t,n,1e7)).length-1;0===c[o];--o)c.pop();return o<0?new r(0*e.s):(e.e=F(c,f),e.d=c,l=!1,u&&(e=D(e,i,4*a)),s&&(e=e.times(54>Math.abs(s)?m(2,s):eM.pow(2,s))),l=!0,e)}(this,e)}if(o.prototype=O,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.EUCLID=9,o.config=o.set=eu,o.clone=e,o.isDecimal=ep,o.abs=$,o.acos=X,o.acosh=Y,o.add=Q,o.asin=G,o.asinh=J,o.atan=ee,o.atanh=et,o.atan2=en,o.cbrt=er,o.ceil=ei,o.clamp=eo,o.cos=ea,o.cosh=es,o.div=el,o.exp=ec,o.floor=ed,o.hypot=ef,o.ln=eh,o.log=eg,o.log10=ey,o.log2=em,o.max=ev,o.min=eb,o.mod=ew,o.mul=eE,o.pow=ex,o.random=eO,o.round=eP,o.sign=eC,o.sin=eA,o.sinh=eS,o.sqrt=eD,o.sub=ej,o.sum=ek,o.tan=eF,o.tanh=eR,o.trunc=e_,void 0===t&&(t={}),t&&!0!==t.defaults)for(n=0,i=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"];n<i.length;)t.hasOwnProperty(r=i[n++])||(t[r]=this[r]);return o.config(t),o}(s);u=new eM(u),a=new eM(a)}}]);