bt-tools
Version:
1 lines • 84.3 kB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.BtTools=e():t.BtTools=e()}(self,function(){return(()=>{var r={99:(t,e,r)=>{"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}r.d(e,{default:()=>i});r(86);var e=r(3776),o=r.n(e);const i={isJsonStr:function(t){if("string"==typeof t)try{var e=JSON.parse(t);return"object"===n(e)&&e?!0:!1}catch(t){return!1}},plus:function(t,e){return new(o())(t).add(e).toNumber()},minus:function(t,e){return new(o())(t).sub(e).toNumber()},times:function(t,e){return new(o())(t).mul(e).toNumber()},div:function(t,e){return new(o())(t).div(e).toNumber()}}},3780:(t,e,r)=>{"use strict";r.d(e,{default:()=>n});var e=r(9600),e=r(129),u=r.n(e),a=r(99);const n=function(t){null!=t&&t.data&&a.default.isJsonStr(null==t?void 0:t.data)&&(t.data=JSON.parse(null==t?void 0:t.data));var e=(s=t||{}).method,r=s.url,n=s.params,o=s.data,i=s.notEncrypt,t=s.decodeData,s=s.decodeParams,n=i?n:s,o=i?o:t;return[e,r,u().stringify(n),u().stringify(o)].join("_")}},1924:(t,e,r)=>{"use strict";var n=r(210),o=r(5559),i=o(n("String.prototype.indexOf"));t.exports=function(t,e){e=n(t,!!e);return"function"==typeof e&&-1<i(t,".prototype.")?o(e):e}},5559:(t,e,r)=>{"use strict";var n=r(8612),r=r(210),o=r("%Function.prototype.apply%"),i=r("%Function.prototype.call%"),s=r("%Reflect.apply%",!0)||n.call(i,o),u=r("%Object.getOwnPropertyDescriptor%",!0),a=r("%Object.defineProperty%",!0),c=r("%Math.max%");if(a)try{a({},"a",{value:1})}catch(t){a=null}t.exports=function(t){var e=s(n,i,arguments);return u&&a&&u(e,"length").configurable&&a(e,"length",{value:1+c(0,t.length-(arguments.length-1))}),e};r=function(){return s(n,o,arguments)};a?a(t.exports,"apply",{value:r}):t.exports.apply=r},3099:t=>{t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},9670:(t,e,r)=>{var n=r(111);t.exports=function(t){if(!n(t))throw TypeError(String(t)+" is not an object");return t}},8533:(t,e,r)=>{"use strict";var n=r(2092).forEach,r=r(9341)("forEach");t.exports=r?[].forEach:function(t){return n(this,t,1<arguments.length?arguments[1]:void 0)}},1318:(t,e,r)=>{var a=r(5656),c=r(7466),f=r(1400),r=function(u){return function(t,e,r){var n,o=a(t),i=c(o.length),s=f(r,i);if(u&&e!=e){for(;s<i;)if((n=o[s++])!=n)return!0}else for(;s<i;s++)if((u||s in o)&&o[s]===e)return u||s||0;return!u&&-1}};t.exports={includes:r(!0),indexOf:r(!1)}},2092:(t,e,r)=>{var w=r(9974),S=r(8361),O=r(7908),x=r(7466),j=r(5417),N=[].push,r=function(p){var y=1==p,d=2==p,h=3==p,g=4==p,m=6==p,v=7==p,b=5==p||m;return function(t,e,r,n){for(var o,i,s=O(t),u=S(s),a=w(e,r,3),c=x(u.length),f=0,n=n||j,l=y?n(t,c):d||v?n(t,0):void 0;f<c;f++)if((b||f in u)&&(i=a(o=u[f],f,s),p))if(y)l[f]=i;else if(i)switch(p){case 3:return!0;case 5:return o;case 6:return f;case 2:N.call(l,o)}else switch(p){case 4:return!1;case 7:N.call(l,o)}return m?-1:h||g?g:l}};t.exports={forEach:r(0),map:r(1),filter:r(2),some:r(3),every:r(4),find:r(5),findIndex:r(6),filterOut:r(7)}},1194:(t,e,r)=>{var n=r(7293),o=r(5112),i=r(7392),s=o("species");t.exports=function(e){return 51<=i||!n(function(){var t=[];return(t.constructor={})[s]=function(){return{foo:1}},1!==t[e](Boolean).foo})}},9341:(t,e,r)=>{"use strict";var n=r(7293);t.exports=function(t,e){var r=[][t];return!!r&&n(function(){r.call(null,e||function(){throw 1},1)})}},5417:(t,e,r)=>{var n=r(111),o=r(3157),i=r(5112)("species");t.exports=function(t,e){var r;return new(void 0===(r=o(t)&&("function"==typeof(r=t.constructor)&&(r===Array||o(r.prototype))||n(r)&&null===(r=r[i]))?void 0:r)?Array:r)(0===e?0:e)}},4326:t=>{var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},9920:(t,e,r)=>{var u=r(6656),a=r(3887),c=r(1236),f=r(3070);t.exports=function(t,e){for(var r=a(e),n=f.f,o=c.f,i=0;i<r.length;i++){var s=r[i];u(t,s)||n(t,s,o(e,s))}}},4230:(t,e,r)=>{var i=r(4488),s=/"/g;t.exports=function(t,e,r,n){var o=String(i(t)),t="<"+e;return""!==r&&(t+=" "+r+'="'+String(n).replace(s,""")+'"'),t+">"+o+"</"+e+">"}},8880:(t,e,r)=>{var n=r(9781),o=r(3070),i=r(9114);t.exports=n?function(t,e,r){return o.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},9114:t=>{t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},6135:(t,e,r)=>{"use strict";var n=r(7593),o=r(3070),i=r(9114);t.exports=function(t,e,r){e=n(e);e in t?o.f(t,e,i(0,r)):t[e]=r}},7235:(t,e,r)=>{var n=r(857),o=r(6656),i=r(6061),s=r(3070).f;t.exports=function(t){var e=n.Symbol||(n.Symbol={});o(e,t)||s(e,t,{value:i.f(t)})}},9781:(t,e,r)=>{r=r(7293);t.exports=!r(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},317:(t,e,r)=>{var n=r(7854),r=r(111),o=n.document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},8324:t=>{t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8113:(t,e,r)=>{r=r(5005);t.exports=r("navigator","userAgent")||""},7392:(t,e,r)=>{var n,o,i=r(7854),r=r(8113),i=i.process,i=i&&i.versions,i=i&&i.v8;i?o=(n=i.split("."))[0]<4?1:n[0]+n[1]:r&&(!(n=r.match(/Edge\/(\d+)/))||74<=n[1])&&(n=r.match(/Chrome\/(\d+)/))&&(o=n[1]),t.exports=o&&+o},748:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:(t,e,r)=>{var c=r(7854),f=r(1236).f,l=r(8880),p=r(1320),y=r(3505),d=r(9920),h=r(4705);t.exports=function(t,e){var r,n,o,i=t.target,s=t.global,u=t.stat,a=s?c:u?c[i]||y(i,{}):(c[i]||{}).prototype;if(a)for(r in e){if(n=e[r],o=t.noTargetGet?(o=f(a,r))&&o.value:a[r],!h(s?r:i+(u?".":"#")+r,t.forced)&&void 0!==o){if(typeof n==typeof o)continue;d(n,o)}(t.sham||o&&o.sham)&&l(n,"sham",!0),p(a,r,n,t)}}},7293:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},9974:(t,e,r)=>{var i=r(3099);t.exports=function(n,o,t){if(i(n),void 0===o)return n;switch(t){case 0:return function(){return n.call(o)};case 1:return function(t){return n.call(o,t)};case 2:return function(t,e){return n.call(o,t,e)};case 3:return function(t,e,r){return n.call(o,t,e,r)}}return function(){return n.apply(o,arguments)}}},5005:(t,e,r)=>{function n(t){return"function"==typeof t?t:void 0}var o=r(857),i=r(7854);t.exports=function(t,e){return arguments.length<2?n(o[t])||n(i[t]):o[t]&&o[t][e]||i[t]&&i[t][e]}},7854:(t,e,r)=>{function n(t){return t&&t.Math==Math&&t}t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||function(){return this}()||Function("return this")()},6656:(t,e,r)=>{var n=r(7908),o={}.hasOwnProperty;t.exports=Object.hasOwn||function(t,e){return o.call(n(t),e)}},3501:t=>{t.exports={}},490:(t,e,r)=>{r=r(5005);t.exports=r("document","documentElement")},4664:(t,e,r)=>{var n=r(9781),o=r(7293),i=r(317);t.exports=!n&&!o(function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},8361:(t,e,r)=>{var n=r(7293),o=r(4326),i="".split;t.exports=n(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},2788:(t,e,r)=>{var r=r(5465),n=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return n.call(t)}),t.exports=r.inspectSource},9909:(t,e,r)=>{var n,o,i,s,u,a,c,f,l=r(8536),p=r(7854),y=r(111),d=r(8880),h=r(6656),g=r(5465),m=r(6200),r=r(3501),v="Object already initialized",p=p.WeakMap;c=l||g.state?(n=g.state||(g.state=new p),o=n.get,i=n.has,s=n.set,u=function(t,e){if(i.call(n,t))throw new TypeError(v);return e.facade=t,s.call(n,t,e),e},a=function(t){return o.call(n,t)||{}},function(t){return i.call(n,t)}):(r[f=m("state")]=!0,u=function(t,e){if(h(t,f))throw new TypeError(v);return e.facade=t,d(t,f,e),e},a=function(t){return h(t,f)?t[f]:{}},function(t){return h(t,f)}),t.exports={set:u,get:a,has:c,enforce:function(t){return c(t)?a(t):u(t,{})},getterFor:function(r){return function(t){var e;if(!y(t)||(e=a(t)).type!==r)throw TypeError("Incompatible receiver, "+r+" required");return e}}}},3157:(t,e,r)=>{var n=r(4326);t.exports=Array.isArray||function(t){return"Array"==n(t)}},4705:(t,e,r)=>{var n=r(7293),o=/#|\.prototype\./,r=function(t,e){t=s[i(t)];return t==a||t!=u&&("function"==typeof e?n(e):!!e)},i=r.normalize=function(t){return String(t).replace(o,".").toLowerCase()},s=r.data={},u=r.NATIVE="N",a=r.POLYFILL="P";t.exports=r},111:t=>{t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},1913:t=>{t.exports=!1},133:(t,e,r)=>{var n=r(7392),r=r(7293);t.exports=!!Object.getOwnPropertySymbols&&!r(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41})},8536:(t,e,r)=>{var n=r(7854),r=r(2788),n=n.WeakMap;t.exports="function"==typeof n&&/native code/.test(r(n))},30:(t,e,r)=>{function n(){}function o(t){return"<script>"+t+"</"+y+">"}var i,s=r(9670),u=r(6048),a=r(748),c=r(3501),f=r(490),l=r(317),r=r(6200),p="prototype",y="script",d=r("IE_PROTO"),h=function(){try{i=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t;h=i?function(t){t.write(o("")),t.close();var e=t.parentWindow.Object;return t=null,e}(i):((t=l("iframe")).style.display="none",f.appendChild(t),t.src=String("javascript:"),(t=t.contentWindow.document).open(),t.write(o("document.F=Object")),t.close(),t.F);for(var e=a.length;e--;)delete h[p][a[e]];return h()};c[d]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(n[p]=s(t),r=new n,n[p]=null,r[d]=t):r=h(),void 0===e?r:u(r,e)}},6048:(t,e,r)=>{var n=r(9781),s=r(3070),u=r(9670),a=r(1956);t.exports=n?Object.defineProperties:function(t,e){u(t);for(var r,n=a(e),o=n.length,i=0;i<o;)s.f(t,r=n[i++],e[r]);return t}},3070:(t,e,r)=>{var n=r(9781),o=r(4664),i=r(9670),s=r(7593),u=Object.defineProperty;e.f=n?u:function(t,e,r){if(i(t),e=s(e,!0),i(r),o)try{return u(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},1236:(t,e,r)=>{var n=r(9781),o=r(5296),i=r(9114),s=r(5656),u=r(7593),a=r(6656),c=r(4664),f=Object.getOwnPropertyDescriptor;e.f=n?f:function(t,e){if(t=s(t),e=u(e,!0),c)try{return f(t,e)}catch(t){}if(a(t,e))return i(!o.f.call(t,e),t[e])}},1156:(t,e,r)=>{var n=r(5656),o=r(8006).f,i={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return s&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return s.slice()}}(t):o(n(t))}},8006:(t,e,r)=>{var n=r(6324),o=r(748).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},5181:(t,e)=>{e.f=Object.getOwnPropertySymbols},6324:(t,e,r)=>{var s=r(6656),u=r(5656),a=r(1318).indexOf,c=r(3501);t.exports=function(t,e){var r,n=u(t),o=0,i=[];for(r in n)!s(c,r)&&s(n,r)&&i.push(r);for(;e.length>o;)s(n,r=e[o++])&&(~a(i,r)||i.push(r));return i}},1956:(t,e,r)=>{var n=r(6324),o=r(748);t.exports=Object.keys||function(t){return n(t,o)}},5296:(t,e)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);e.f=o?function(t){t=n(this,t);return!!t&&t.enumerable}:r},3887:(t,e,r)=>{var n=r(5005),o=r(8006),i=r(5181),s=r(9670);t.exports=n("Reflect","ownKeys")||function(t){var e=o.f(s(t)),r=i.f;return r?e.concat(r(t)):e}},857:(t,e,r)=>{r=r(7854);t.exports=r},1320:(t,e,r)=>{var u=r(7854),a=r(8880),c=r(6656),f=r(3505),n=r(2788),r=r(9909),o=r.get,l=r.enforce,p=String(String).split("String");(t.exports=function(t,e,r,n){var o=!!n&&!!n.unsafe,i=!!n&&!!n.enumerable,s=!!n&&!!n.noTargetGet;"function"==typeof r&&("string"!=typeof e||c(r,"name")||a(r,"name",e),(n=l(r)).source||(n.source=p.join("string"==typeof e?e:""))),t!==u?(o?!s&&t[e]&&(i=!0):delete t[e],i?t[e]=r:a(t,e,r)):i?t[e]=r:f(e,r)})(Function.prototype,"toString",function(){return"function"==typeof this&&o(this).source||n(this)})},4488:t=>{t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},3505:(t,e,r)=>{var n=r(7854),o=r(8880);t.exports=function(e,r){try{o(n,e,r)}catch(t){n[e]=r}return r}},8003:(t,e,r)=>{var n=r(3070).f,o=r(6656),i=r(5112)("toStringTag");t.exports=function(t,e,r){t&&!o(t=r?t:t.prototype,i)&&n(t,i,{configurable:!0,value:e})}},6200:(t,e,r)=>{var n=r(2309),o=r(9711),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},5465:(t,e,r)=>{var n=r(7854),o=r(3505),r="__core-js_shared__",r=n[r]||o(r,{});t.exports=r},2309:(t,e,r)=>{var n=r(1913),o=r(5465);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.15.2",mode:n?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},3429:(t,e,r)=>{var n=r(7293);t.exports=function(e){return n(function(){var t=""[e]('"');return t!==t.toLowerCase()||3<t.split('"').length})}},1400:(t,e,r)=>{var n=r(9958),o=Math.max,i=Math.min;t.exports=function(t,e){t=n(t);return t<0?o(t+e,0):i(t,e)}},5656:(t,e,r)=>{var n=r(8361),o=r(4488);t.exports=function(t){return n(o(t))}},9958:t=>{var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(0<t?r:e)(t)}},7466:(t,e,r)=>{var n=r(9958),o=Math.min;t.exports=function(t){return 0<t?o(n(t),9007199254740991):0}},7908:(t,e,r)=>{var n=r(4488);t.exports=function(t){return Object(n(t))}},7593:(t,e,r)=>{var o=r(111);t.exports=function(t,e){if(!o(t))return t;var r,n;if(e&&"function"==typeof(r=t.toString)&&!o(n=r.call(t)))return n;if("function"==typeof(r=t.valueOf)&&!o(n=r.call(t)))return n;if(!e&&"function"==typeof(r=t.toString)&&!o(n=r.call(t)))return n;throw TypeError("Can't convert object to primitive value")}},9711:t=>{var e=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++e+r).toString(36)}},3307:(t,e,r)=>{r=r(133);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},6061:(t,e,r)=>{r=r(5112);e.f=r},5112:(t,e,r)=>{var n=r(7854),o=r(2309),i=r(6656),s=r(9711),u=r(133),r=r(3307),a=o("wks"),c=n.Symbol,f=r?c:c&&c.withoutSetter||s;t.exports=function(t){return i(a,t)&&(u||"string"==typeof a[t])||(u&&i(c,t)?a[t]=c[t]:a[t]=f("Symbol."+t)),a[t]}},7327:(t,e,r)=>{"use strict";var n=r(2109),o=r(2092).filter;n({target:"Array",proto:!0,forced:!r(1194)("filter")},{filter:function(t){return o(this,t,1<arguments.length?arguments[1]:void 0)}})},9554:(t,e,r)=>{"use strict";var n=r(2109),r=r(8533);n({target:"Array",proto:!0,forced:[].forEach!=r},{forEach:r})},9600:(t,e,r)=>{"use strict";var n=r(2109),o=r(8361),i=r(5656),r=r(9341),s=[].join,o=o!=Object,r=r("join",",");n({target:"Array",proto:!0,forced:o||!r},{join:function(t){return s.call(i(this),void 0===t?",":t)}})},3843:(t,e,r)=>{r(2109)({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}})},3710:(t,e,r)=>{var n=r(1320),o=Date.prototype,i="Invalid Date",r="toString",s=o[r],u=o.getTime;new Date(NaN)+""!=i&&n(o,r,function(){var t=u.call(this);return t==t?s.call(this):i})},3321:(t,e,r)=>{var n=r(2109),o=r(9781);n({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperties:r(6048)})},9070:(t,e,r)=>{var n=r(2109),o=r(9781);n({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:r(3070).f})},5003:(t,e,r)=>{var n=r(2109),o=r(7293),i=r(5656),s=r(1236).f,r=r(9781),o=o(function(){s(1)});n({target:"Object",stat:!0,forced:!r||o,sham:!r},{getOwnPropertyDescriptor:function(t,e){return s(i(t),e)}})},9337:(t,e,r)=>{var n=r(2109),o=r(9781),a=r(3887),c=r(5656),f=r(1236),l=r(6135);n({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(t){for(var e,r,n=c(t),o=f.f,i=a(n),s={},u=0;i.length>u;)void 0!==(r=o(n,e=i[u++]))&&l(s,e,r);return s}})},7941:(t,e,r)=>{var n=r(2109),o=r(7908),i=r(1956);n({target:"Object",stat:!0,forced:r(7293)(function(){i(1)})},{keys:function(t){return i(o(t))}})},86:(t,e,r)=>{"use strict";var n=r(2109),o=r(4230);n({target:"String",proto:!0,forced:r(3429)("sub")},{sub:function(){return o(this,"sub","","")}})},2526:(t,e,r)=>{"use strict";function n(t,e){var r=Y[t]=S(J[H]);return V(r,{type:W,tag:t,description:e}),c||(r.description=e),r}function o(e,t){g(e);var r=v(t),t=O(r).concat(at(r));return q(t,function(t){c&&!ut.call(r,t)||st(e,t,r[t])}),e}var i=r(2109),s=r(7854),u=r(5005),a=r(1913),c=r(9781),f=r(133),l=r(3307),p=r(7293),y=r(6656),d=r(3157),h=r(111),g=r(9670),m=r(7908),v=r(5656),b=r(7593),w=r(9114),S=r(30),O=r(1956),x=r(8006),j=r(1156),N=r(5181),P=r(1236),E=r(3070),A=r(5296),M=r(8880),k=r(1320),F=r(2309),I=r(6200),T=r(3501),D=r(9711),R=r(5112),L=r(6061),C=r(7235),_=r(8003),U=r(9909),q=r(2092).forEach,B=I("hidden"),W="Symbol",H="prototype",I=R("toPrimitive"),V=U.set,G=U.getterFor(W),Z=Object[H],J=s.Symbol,$=u("JSON","stringify"),z=P.f,Q=E.f,K=j.f,X=A.f,Y=F("symbols"),tt=F("op-symbols"),et=F("string-to-symbol-registry"),rt=F("symbol-to-string-registry"),F=F("wks"),s=s.QObject,nt=!s||!s[H]||!s[H].findChild,ot=c&&p(function(){return 7!=S(Q({},"a",{get:function(){return Q(this,"a",{value:7}).a}})).a})?function(t,e,r){var n=z(Z,e);n&&delete Z[e],Q(t,e,r),n&&t!==Z&&Q(Z,e,n)}:Q,it=l?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof J},st=function(t,e,r){t===Z&&st(tt,e,r),g(t);e=b(e,!0);return g(r),y(Y,e)?(r.enumerable?(y(t,B)&&t[B][e]&&(t[B][e]=!1),r=S(r,{enumerable:w(0,!1)})):(y(t,B)||Q(t,B,w(1,{})),t[B][e]=!0),ot(t,e,r)):Q(t,e,r)},ut=function(t){var e=b(t,!0),t=X.call(this,e);return!(this===Z&&y(Y,e)&&!y(tt,e))&&(!(t||!y(this,e)||!y(Y,e)||y(this,B)&&this[B][e])||t)},s=function(t,e){var r=v(t),t=b(e,!0);if(r!==Z||!y(Y,t)||y(tt,t)){e=z(r,t);return!e||!y(Y,t)||y(r,B)&&r[B][t]||(e.enumerable=!0),e}},l=function(t){var t=K(v(t)),e=[];return q(t,function(t){y(Y,t)||y(T,t)||e.push(t)}),e},at=function(t){var e=t===Z,t=K(e?tt:v(t)),r=[];return q(t,function(t){!y(Y,t)||e&&!y(Z,t)||r.push(Y[t])}),r};f||(k((J=function(){if(this instanceof J)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=D(t),r=function(t){this===Z&&r.call(tt,t),y(this,B)&&y(this[B],e)&&(this[B][e]=!1),ot(this,e,w(1,t))};return c&&nt&&ot(Z,e,{configurable:!0,set:r}),n(e,t)})[H],"toString",function(){return G(this).tag}),k(J,"withoutSetter",function(t){return n(D(t),t)}),A.f=ut,E.f=st,P.f=s,x.f=j.f=l,N.f=at,L.f=function(t){return n(R(t),t)},c&&(Q(J[H],"description",{configurable:!0,get:function(){return G(this).description}}),a||k(Z,"propertyIsEnumerable",ut,{unsafe:!0}))),i({global:!0,wrap:!0,forced:!f,sham:!f},{Symbol:J}),q(O(F),function(t){C(t)}),i({target:W,stat:!0,forced:!f},{for:function(t){var e=String(t);if(y(et,e))return et[e];t=J(e);return et[e]=t,rt[t]=e,t},keyFor:function(t){if(!it(t))throw TypeError(t+" is not a symbol");if(y(rt,t))return rt[t]},useSetter:function(){nt=!0},useSimple:function(){nt=!1}}),i({target:"Object",stat:!0,forced:!f,sham:!c},{create:function(t,e){return void 0===e?S(t):o(S(t),e)},defineProperty:st,defineProperties:o,getOwnPropertyDescriptor:s}),i({target:"Object",stat:!0,forced:!f},{getOwnPropertyNames:l,getOwnPropertySymbols:at}),i({target:"Object",stat:!0,forced:p(function(){N.f(1)})},{getOwnPropertySymbols:function(t){return N.f(m(t))}}),$&&i({target:"JSON",stat:!0,forced:!f||p(function(){var t=J();return"[null]"!=$([t])||"{}"!=$({a:t})||"{}"!=$(Object(t))})},{stringify:function(t,e,r){for(var n,o=[t],i=1;i<arguments.length;)o.push(arguments[i++]);if((h(n=e)||void 0!==t)&&!it(t))return d(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!it(e))return e}),o[1]=e,$.apply(null,o)}}),J[H][I]||M(J[H],I,J[H].valueOf),_(J,W),T[B]=!0},4747:(t,e,r)=>{var n,o=r(7854),i=r(8324),s=r(8533),u=r(8880);for(n in i){var a=o[n],a=a&&a.prototype;if(a&&a.forEach!==s)try{u(a,"forEach",s)}catch(t){a.forEach=s}}},3776:function(Ut,qt,Bt){var Wt;!function(){"use strict";var f,M,i,s=9e15,d=1e9,h="0123456789abcdef",n="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",o="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",u={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-s,maxE:s,crypto:!1},b=!0,a="[DecimalError] ",g=a+"Invalid argument: ",c=a+"Precision limit exceeded",l=a+"crypto unavailable",e="[object Decimal]",k=Math.floor,m=Math.pow,p=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,y=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,v=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,w=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,F=1e7,I=7,S=n.length-1,O=o.length-1,x={toStringTag:e};function j(t){var e,r,n,o=t.length-1,i="",s=t[0];if(0<o){for(i+=s,e=1;e<o;e++)n=t[e]+"",(r=I-n.length)&&(i+=W(r)),i+=n;s=t[e],(r=I-(n=s+"").length)&&(i+=W(r))}else if(0===s)return"0";for(;s%10==0;)s/=10;return i+s}function N(t,e,r){if(t!==~~t||t<e||r<t)throw Error(g+t)}function P(t,e,r,n){for(var o,i,s=t[0];10<=s;s/=10)--e;return--e<0?(e+=I,o=0):(o=Math.ceil((e+1)/I),e%=I),s=m(10,I-e),i=t[o]%s|0,null==n?e<3?(0==e?i=i/100|0:1==e&&(i=i/10|0),r<4&&99999==i||3<r&&49999==i||5e4==i||0==i):(r<4&&i+1==s||3<r&&i+1==s/2)&&(t[o+1]/s/100|0)==m(10,e-2)-1||(i==s/2||0==i)&&0==(t[o+1]/s/100|0):e<4?(0==e?i=i/1e3|0:1==e?i=i/100|0:2==e&&(i=i/10|0),(n||r<4)&&9999==i||!n&&3<r&&4999==i):((n||r<4)&&i+1==s||!n&&3<r&&i+1==s/2)&&(t[o+1]/s/1e3|0)==m(10,e-3)-1}function E(t,e,r){for(var n,o,i=[0],s=0,u=t.length;s<u;){for(o=i.length;o--;)i[o]*=e;for(i[0]+=h.indexOf(t.charAt(s++)),n=0;n<i.length;n++)i[n]>r-1&&(void 0===i[n+1]&&(i[n+1]=0),i[n+1]+=i[n]/r|0,i[n]%=r)}return i.reverse()}x.absoluteValue=x.abs=function(){var t=new this.constructor(this);return t.s<0&&(t.s=1),L(t)},x.ceil=function(){return L(new this.constructor(this),this.e+1,2)},x.clampedTo=x.clamp=function(t,e){var r=this.constructor;if(t=new r(t),e=new r(e),!t.s||!e.s)return new r(NaN);if(t.gt(e))throw Error(g+e);return this.cmp(t)<0?t:0<this.cmp(e)?e:new r(this)},x.comparedTo=x.cmp=function(t){var e,r,n=this,o=n.d,i=(t=new n.constructor(t)).d,s=n.s,u=t.s;if(!o||!i)return s&&u?s!==u?s:o===i?0:!o^s<0?1:-1:NaN;if(!o[0]||!i[0])return o[0]?s:i[0]?-u:0;if(s!==u)return s;if(n.e!==t.e)return n.e>t.e^s<0?1:-1;for(e=0,r=(n=o.length)<(t=i.length)?n:t;e<r;++e)if(o[e]!==i[e])return o[e]>i[e]^s<0?1:-1;return n===t?0:t<n^s<0?1:-1},x.cosine=x.cos=function(){var t,e,r=this,n=r.constructor;return r.d?r.d[0]?(t=n.precision,e=n.rounding,n.precision=t+Math.max(r.e,r.sd())+I,n.rounding=1,r=function(t,e){var r,n;if(e.isZero())return e;n=(n=e.d.length)<32?(r=Math.ceil(n/3),(1/Q(4,r)).toString()):(r=16,"2.3283064365386962890625e-10");t.precision+=r,e=z(t,1,e.times(n),new t(1));for(var o=r;o--;){var i=e.times(e);e=i.times(i).minus(i).times(8).plus(1)}return t.precision-=r,e}(n,K(n,r)),n.precision=t,n.rounding=e,L(2==i||3==i?r.neg():r,t,e,!0)):new n(1):new n(NaN)},x.cubeRoot=x.cbrt=function(){var t,e,r,n,o,i,s,u,a,c,f=this,l=f.constructor;if(!f.isFinite()||f.isZero())return new l(f);for(b=!1,(i=f.s*m(f.s*f,1/3))&&Math.abs(i)!=1/0?n=new l(i.toString()):(r=j(f.d),(i=((t=f.e)-r.length+1)%3)&&(r+=1==i||-2==i?"0":"00"),i=m(r,1/3),t=k((t+1)/3)-(t%3==(t<0?-1:2)),(n=new l(r=i==1/0?"5e"+t:(r=i.toExponential()).slice(0,r.indexOf("e")+1)+t)).s=f.s),s=(t=l.precision)+3;;)if(c=(a=(u=n).times(u).times(u)).plus(f),n=A(c.plus(f).times(u),c.plus(a),s+2,1),j(u.d).slice(0,s)===(r=j(n.d)).slice(0,s)){if("9999"!=(r=r.slice(s-3,s+1))&&(o||"4999"!=r)){+r&&(+r.slice(1)||"5"!=r.charAt(0))||(L(n,t+1,1),e=!n.times(n).times(n).eq(f));break}if(!o&&(L(u,t+1,0),u.times(u).times(u).eq(f))){n=u;break}s+=4,o=1}return b=!0,L(n,t,l.rounding,e)},x.decimalPlaces=x.dp=function(){var t,e=this.d,r=NaN;if(e){if(r=((t=e.length-1)-k(this.e/I))*I,t=e[t])for(;t%10==0;t/=10)r--;r<0&&(r=0)}return r},x.dividedBy=x.div=function(t){return A(this,new this.constructor(t))},x.dividedToIntegerBy=x.divToInt=function(t){var e=this.constructor;return L(A(this,new e(t),0,1,1),e.precision,e.rounding)},x.equals=x.eq=function(t){return 0===this.cmp(t)},x.floor=function(){return L(new this.constructor(this),this.e+1,3)},x.greaterThan=x.gt=function(t){return 0<this.cmp(t)},x.greaterThanOrEqualTo=x.gte=function(t){t=this.cmp(t);return 1==t||0===t},x.hyperbolicCosine=x.cosh=function(){var t,e,r,n=(u=this).constructor,o=new n(1);if(!u.isFinite())return new n(u.s?1/0:NaN);if(u.isZero())return o;e=n.precision,r=n.rounding,n.precision=e+Math.max(u.e,u.sd())+4,n.rounding=1;for(var i,s=(s=u.d.length)<32?(1/Q(4,t=Math.ceil(s/3))).toString():(t=16,"2.3283064365386962890625e-10"),u=z(n,1,u.times(s),new n(1),!0),a=t,c=new n(8);a--;)i=u.times(u),u=o.minus(i.times(c.minus(i.times(c))));return L(u,n.precision=e,n.rounding=r,!0)},x.hyperbolicSine=x.sinh=function(){var t,e,r,n=(s=this).constructor;if(!s.isFinite()||s.isZero())return new n(s);if(t=n.precision,e=n.rounding,n.precision=t+Math.max(s.e,s.sd())+4,n.rounding=1,(r=s.d.length)<3)s=z(n,2,s,s,!0);else for(var o,i=1.4*Math.sqrt(r),s=z(n,2,s=s.times(1/Q(5,i=16<i?16:0|i)),s,!0),u=new n(5),a=new n(16),c=new n(20);i--;)o=s.times(s),s=s.times(u.plus(o.times(a.times(o).plus(c))));return L(s,n.precision=t,n.rounding=e,!0)},x.hyperbolicTangent=x.tanh=function(){var t,e,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(t=n.precision,e=n.rounding,n.precision=t+7,n.rounding=1,A(r.sinh(),r.cosh(),n.precision=t,n.rounding=e)):new n(r.s)},x.inverseCosine=x.acos=function(){var t=this,e=t.constructor,r=t.abs().cmp(1),n=e.precision,o=e.rounding;return-1!==r?0===r?t.isNeg()?q(e,n,o):new e(0):new e(NaN):t.isZero()?q(e,n+4,o).times(.5):(e.precision=n+6,e.rounding=1,t=t.asin(),r=q(e,n+4,o).times(.5),e.precision=n,e.rounding=o,r.minus(t))},x.inverseHyperbolicCosine=x.acosh=function(){var t,e,r=this,n=r.constructor;return r.lte(1)?new n(r.eq(1)?0:NaN):r.isFinite()?(t=n.precision,e=n.rounding,n.precision=t+Math.max(Math.abs(r.e),r.sd())+4,n.rounding=1,b=!1,r=r.times(r).minus(1).sqrt().plus(r),b=!0,n.precision=t,n.rounding=e,r.ln()):new n(r)},x.inverseHyperbolicSine=x.asinh=function(){var t,e,r=this,n=r.constructor;return!r.isFinite()||r.isZero()?new n(r):(t=n.precision,e=n.rounding,n.precision=t+2*Math.max(Math.abs(r.e),r.sd())+6,n.rounding=1,b=!1,r=r.times(r).plus(1).sqrt().plus(r),b=!0,n.precision=t,n.rounding=e,r.ln())},x.inverseHyperbolicTangent=x.atanh=function(){var t,e,r,n=this,o=n.constructor;return n.isFinite()?0<=n.e?new o(n.abs().eq(1)?n.s/0:n.isZero()?n:NaN):(t=o.precision,e=o.rounding,r=n.sd(),Math.max(r,t)<2*-n.e-1?L(new o(n),t,e,!0):(o.precision=r=r-n.e,n=A(n.plus(1),new o(1).minus(n),r+t,1),o.precision=t+4,o.rounding=1,n=n.ln(),o.precision=t,o.rounding=e,n.times(.5))):new o(NaN)},x.inverseSine=x.asin=function(){var t,e,r,n=this,o=n.constructor;return n.isZero()?new o(n):(t=n.abs().cmp(1),e=o.precision,r=o.rounding,-1!==t?0===t?((t=q(o,e+4,r).times(.5)).s=n.s,t):new o(NaN):(o.precision=e+6,o.rounding=1,n=n.div(new o(1).minus(n.times(n)).sqrt().plus(1)).atan(),o.precision=e,o.rounding=r,n.times(2)))},x.inverseTangent=x.atan=function(){var t,e,r,n,o,i,s,u,a,c=this,f=c.constructor,l=f.precision,p=f.rounding;if(c.isFinite()){if(c.isZero())return new f(c);if(c.abs().eq(1)&&l+4<=O)return(s=q(f,l+4,p).times(.25)).s=c.s,s}else{if(!c.s)return new f(NaN);if(l+4<=O)return(s=q(f,l+4,p).times(.5)).s=c.s,s}for(f.precision=u=l+10,f.rounding=1,t=r=Math.min(28,u/I+2|0);t;--t)c=c.div(c.times(c).plus(1).sqrt().plus(1));for(b=!1,e=Math.ceil(u/I),n=1,a=c.times(c),s=new f(c),o=c;-1!==t;)if(o=o.times(a),i=s.minus(o.div(n+=2)),o=o.times(a),void 0!==(s=i.plus(o.div(n+=2))).d[e])for(t=e;s.d[t]===i.d[t]&&t--;);return r&&(s=s.times(2<<r-1)),b=!0,L(s,f.precision=l,f.rounding=p,!0)},x.isFinite=function(){return!!this.d},x.isInteger=x.isInt=function(){return!!this.d&&k(this.e/I)>this.d.length-2},x.isNaN=function(){return!this.s},x.isNegative=x.isNeg=function(){return this.s<0},x.isPositive=x.isPos=function(){return 0<this.s},x.isZero=function(){return!!this.d&&0===this.d[0]},x.lessThan=x.lt=function(t){return this.cmp(t)<0},x.lessThanOrEqualTo=x.lte=function(t){return this.cmp(t)<1},x.logarithm=x.log=function(t){var e,r,n,o,i,s,u,a,c=this,f=c.constructor,l=f.precision,p=f.rounding;if(null==t)t=new f(10),e=!0;else{if(r=(t=new f(t)).d,t.s<0||!r||!r[0]||t.eq(1))return new f(NaN);e=t.eq(10)}if(r=c.d,c.s<0||!r||!r[0]||c.eq(1))return new f(r&&!r[0]?-1/0:1!=c.s?NaN:r?0:1/0);if(e)if(1<r.length)i=!0;else{for(o=r[0];o%10==0;)o/=10;i=1!==o}if(b=!1,s=Z(c,u=l+5),n=e?U(f,u+10):Z(t,u),P((a=A(s,n,u,1)).d,o=l,p))do{if(s=Z(c,u+=10),n=e?U(f,u+10):Z(t,u),a=A(s,n,u,1),!i){+j(a.d).slice(o+1,o+15)+1==1e14&&(a=L(a,l+1,0));break}}while(P(a.d,o+=10,p));return b=!0,L(a,l,p)},x.minus=x.sub=function(t){var e,r,n,o,i,s,u,a,c,f,l,p=this,y=p.constructor;if(t=new y(t),!p.d||!t.d)return p.s&&t.s?p.d?t.s=-t.s:t=new y(t.d||p.s!==t.s?p:NaN):t=new y(NaN),t;if(p.s!=t.s)return t.s=-t.s,p.plus(t);if(c=p.d,l=t.d,u=y.precision,a=y.rounding,!c[0]||!l[0]){if(l[0])t.s=-t.s;else{if(!c[0])return new y(3===a?-0:0);t=new y(p)}return b?L(t,u,a):t}if(r=k(t.e/I),p=k(p.e/I),c=c.slice(),i=p-r){for(s=(f=i<0)?(e=c,i=-i,l.length):(e=l,r=p,c.length),(n=Math.max(Math.ceil(u/I),s)+2)<i&&(i=n,e.length=1),e.reverse(),n=i;n--;)e.push(0);e.reverse()}else{for((f=(n=c.length)<(s=l.length))&&(s=n),n=0;n<s;n++)if(c[n]!=l[n]){f=c[n]<l[n];break}i=0}for(f&&(e=c,c=l,l=e,t.s=-t.s),s=c.length,n=l.length-s;0<n;--n)c[s++]=0;for(n=l.length;i<n;){if(c[--n]<l[n]){for(o=n;o&&0===c[--o];)c[o]=F-1;--c[o],c[n]+=F}c[n]-=l[n]}for(;0===c[--s];)c.pop();for(;0===c[0];c.shift())--r;return c[0]?(t.d=c,t.e=_(c,r),b?L(t,u,a):t):new y(3===a?-0:0)},x.modulo=x.mod=function(t){var e,r=this,n=r.constructor;return t=new n(t),!r.d||!t.s||t.d&&!t.d[0]?new n(NaN):!t.d||r.d&&!r.d[0]?L(new n(r),n.precision,n.rounding):(b=!1,9==n.modulo?(e=A(r,t.abs(),0,3,1)).s*=t.s:e=A(r,t,0,n.modulo,1),e=e.times(t),b=!0,r.minus(e))},x.naturalExponential=x.exp=function(){return G(this)},x.naturalLogarithm=x.ln=function(){return Z(this)},x.negated=x.neg=function(){var t=new this.constructor(this);return t.s=-t.s,L(t)},x.plus=x.add=function(t){var e,r,n,o,i,s,u,a,c=this,f=c.constructor;if(t=new f(t),!c.d||!t.d)return c.s&&t.s?c.d||(t=new f(t.d||c.s===t.s?c:NaN)):t=new f(NaN),t;if(c.s!=t.s)return t.s=-t.s,c.minus(t);if(u=c.d,a=t.d,i=f.precision,s=f.rounding,!u[0]||!a[0])return a[0]||(t=new f(c)),b?L(t,i,s):t;if(f=k(c.e/I),c=k(t.e/I),u=u.slice(),n=f-c){for((o=(o=n<0?(r=u,n=-n,a.length):(r=a,c=f,u.length))<(f=Math.ceil(i/I))?f+1:o+1)<n&&(n=o,r.length=1),r.reverse();n--;)r.push(0);r.reverse()}for((o=u.length)-(n=a.length)<0&&(n=o,r=a,a=u,u=r),e=0;n;)e=(u[--n]=u[n]+a[n]+e)/F|0,u[n]%=F;for(e&&(u.unshift(e),++c),o=u.length;0==u[--o];)u.pop();return t.d=u,t.e=_(u,c),b?L(t,i,s):t},x.precision=x.sd=function(t){var e;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(g+t);return this.d?(e=B(this.d),t&&this.e+1>e&&(e=this.e+1)):e=NaN,e},x.round=function(){var t=this.constructor;return L(new t(this),this.e+1,t.rounding)},x.sine=x.sin=function(){var t,e,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(t=n.precision,e=n.rounding,n.precision=t+Math.max(r.e,r.sd())+I,n.rounding=1,r=function(t,e){var r,n=e.d.length;if(n<3)return e.isZero()?e:z(t,2,e,e);r=16<(r=1.4*Math.sqrt(n))?16:0|r,e=e.times(1/Q(5,r)),e=z(t,2,e,e);for(var o,i=new t(5),s=new t(16),u=new t(20);r--;)o=e.times(e),e=e.times(i.plus(o.times(s.times(o).minus(u))));return e}(n,K(n,r)),n.precision=t,n.rounding=e,L(2<i?r.neg():r,t,e,!0)):new n(NaN)},x.squareRoot=x.sqrt=function(){var t,e,r,n,o,i,s=this,u=s.d,a=s.e,c=s.s,f=s.constructor;if(1!==c||!u||!u[0])return new f(!c||c<0&&(!u||u[0])?NaN:u?s:1/0);for(b=!1,n=0==(c=Math.sqrt(+s))||c==1/0?(((e=j(u)).length+a)%2==0&&(e+="0"),c=Math.sqrt(e),a=k((a+1)/2)-(a<0||a%2),new f(e=c==1/0?"5e"+a:(e=c.toExponential()).slice(0,e.indexOf("e")+1)+a)):new f(c.toString()),r=(a=f.precision)+3;;)if(n=(i=n).plus(A(s,i,r+2,1)).times(.5),j(i.d).slice(0,r)===(e=j(n.d)).slice(0,r)){if("9999"!=(e=e.slice(r-3,r+1))&&(o||"4999"!=e)){+e&&(+e.slice(1)||"5"!=e.charAt(0))||(L(n,a+1,1),t=!n.times(n).eq(s));break}if(!o&&(L(i,a+1,0),i.times(i).eq(s))){n=i;break}r+=4,o=1}return b=!0,L(n,a,f.rounding,t)},x.tangent=x.tan=function(){var t,e,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(t=n.precision,e=n.rounding,n.precision=t+10,n.rounding=1,(r=r.sin()).s=1,r=A(r,new n(1).minus(r.times(r)).sqrt(),t+10,0),n.precision=t,n.rounding=e,L(2==i||4==i?r.neg():r,t,e,!0)):new n(NaN)},x.times=x.mul=function(t){var e,r,n,o,i,s,u,a,c,f=this.constructor,l=this.d,p=(t=new f(t)).d;if(t.s*=this.s,!(l&&l[0]&&p&&p[0]))return new f(!t.s||l&&!l[0]&&!p||p&&!p[0]&&!l?NaN:l&&p?0*t.s:t.s/0);for(r=k(this.e/I)+k(t.e/I),(a=l.length)<(c=p.length)&&(i=l,l=p,p=i,s=a,a=c,c=s),i=[],n=s=a+c;n--;)i.push(0);for(n=c;0<=--n;){for(e=0,o=a+n;n<o;)u=i[o]+p[n]*l[o-n-1]+e,i[o--]=u%F|0,e=u/F|0;i[o]=(i[o]+e)%F|0}for(;!i[--s];)i.pop();return e?++r:i.shift(),t.d=i,t.e=_(i,r),b?L(t,f.precision,f.rounding):t},x.toBinary=function(t,e){return r(this,2,t,e)},x.toDecimalPlaces=x.toDP=function(t,e){var r=this.constructor,n=new r(this);return void 0===t?n:(N(t,0,d),void 0===e?e=r.rounding:N(e,0,8),L(n,t+n.e+1,e))},x.toExponential=function(t,e){var r=this,n=r.constructor,t=void 0===t?C(r,!0):(N(t,0,d),void 0===e?e=n.rounding:N(e,0,8),C(r=L(new n(r),t+1,e),!0,t+1));return r.isNeg()&&!r.isZero()?"-"+t:t},x.toFixed=function(t,e){var r=this,n=r.constructor,o=void 0===t?C(r):(N(t,0,d),void 0===e?e=n.rounding:N(e,0,8),C(o=L(new n(r),t+r.e+1,e),!1,t+o.e+1));return r.isNeg()&&!r.isZero()?"-"+o:o},x.toFraction=function(t){var e,r,n,o,i,s,u,a,c,f,l=this,p=l.d,y=l.constructor;if(!p)return new y(l);if(a=r=new y(1),n=u=new y(0),i=(e=new y(n)).e=B(p)-l.e-1,e.d[0]=m(10,(c=i%I)<0?I+c:c),null==t)t=0<i?e:a;else{if(!(s=new y(t)).isInt()||s.lt(a))throw Error(g+s);t=s.gt(e)?0<i?e:a:s}for(b=!1,s=new y(j(p)),c=y.precision,y.precision=i=p.length*I*2;f=A(s,e,0,1,1),1!=(o=r.plus(f.times(n))).cmp(t);)r=n,n=o,a=u.plus(f.times(o=a)),u=o,e=s.minus(f.times(o=e)),s=o;return o=A(t.minus(r),n,0,1,1),u=u.plus(o.times(a)),r=r.plus(o.times(n)),u.s=a.s=l.s,l=A(a,n,i,1).minus(l).abs().cmp(A(u,r,i,1).minus(l).abs())<1?[a,n]:[u,r],y.precision=c,b=!0,l},x.toHexadecimal=x.toHex=function(t,e){return r(this,16,t,e)},x.toNearest=function(t,e){var r=(n=this).constructor,n=new r(n);if(null==t){if(!n.d)return n;t=new r(1),e=r.rounding}else{if(t=new r(t),void 0===e?e=r.rounding:N(e,0,8),!n.d)return t.s?n:t;if(!t.d)return t.s&&(t.s=n.s),t}return t.d[0]?(b=!1,n=A(n,t,0,e,1).times(t),b=!0,L(n)):(t.s=n.s,n=t),n},x.toNumber=function(){return+this},x.toOctal=function(t,e){return r(this,8,t,e)},x.toPower=x.pow=function(t){var e,r,n,o,i,s,u=this,a=u.constructor,c=+(t=new a(t));if(!(u.d&&t.d&&u.d[0]&&t.d[0]))return new a(m(+u,c));if((u=new a(u)).eq(1))return u;if(n=a.precision,i=a.rounding,t.eq(1))return L(u,n,i);if((e=k(t.e/I))>=t.d.length-1&&(r=c<0?-c:c)<=9007199254740991)return o=H(a,u,r,n),t.s<0?new a(1).div(o):L(o,n,i);if((s=u.s)<0){if(e<t.d.length-1)return new a(NaN);if(0==(1&t.d[e])&&(s=1),0==u.e&&1==u.d[0]&&1==u.d.length)return u.s=s,u}return(e=0!=(r=m(+u,c))&&isFinite(r)?new a(r+"").e:k(c*(Math.log("0."+j(u.d))/Math.LN10+u.e+1)))>a.maxE+1||e<a.minE-1?new a(0<e?s/0:0):(b=!1,a.rounding=u.s=1,r=Math.min(12,(e+"").length),(o=(o=G(t.times(Z(u,n+r)),n)).d&&P((o=L(o,n+5,1)).d,n,i)&&+j((o=L(G(t.times(Z(u,(e=n+10)+r)),e),e+5,1)).d).slice(n+1,n+15)+1==1e14?L(o,n+1,0):o).s=s,b=!0,L(o,n,a.rounding=i))},x.toPrecision=function(t,e){var r=this,n=r.constructor,t=void 0===t?C(r,r.e<=n.toExpNeg||r.e>=n.toExpPos):(N(t,1,d),void 0===e?e=n.rounding:N(e,0,8),C(r=L(new n(r),t,e),t<=r.e||r.e<=n.toExpNeg,t));return r.isNeg()&&!r.isZero()?"-"+t:t},x.toSignificantDigits=x.toSD=function(t,e){var r=this.constructor;return void 0===t?(t=r.precision,e=r.rounding):(N(t,1,d),void 0===e?e=r.rounding:N(e,0,8)),L(new r(this),t,e)},x.toString=function(){var t=this,e=t.constructor,e=C(t,t.e<=e.toExpNeg||t.e>=e.toExpPos);return t.isNeg()&&!t.isZero()?"-"+e:e},x.truncated=x.trunc=function(){return L(new this.constructor(this),this.e+1,1)},x.valueOf=x.toJSON=function(){var t=this,e=t.constructor,e=C(t,t.e<=e.toExpNeg||t.e>=e.toExpPos);return t.isNeg()?"-"+e:e};var A=function(t,e,r,n,o,i){var s,u,a,c,f,l,p,y,d,h,g,m,v,b,w,S,O,x,j,N=t.constructor,P=t.s==e.s?1:-1,E=t.d,A=e.d;if(!(E&&E[0]&&A&&A[0]))return new N(t.s&&e.s&&(E?!A||E[0]!=A[0]:A)?E&&0==E[0]||!A?0*P:P/0:NaN);for(u=i?(f=1,t.e-e.e):(i=F,k(t.e/(f=I))-k(e.e/f)),x=A.length,S=E.length,d=(P=new N(P)).d=[],a=0;A[a]==(E[a]||0);a++);if(A[a]>(E[a]||0)&&u--,null==r?(v=r=N.precision,n=N.rounding):v=o?r+(t.e-e.e)+1:r,v<0)d.push(1),l=!0;else{if(v=v/f+2|0,a=0,1==x){for(A=A[c=0],v++;(a<S||c)&&v--;a++)b=c*i+(E[a]||0),d[a]=b/A|0,c=b%A|0;l=c||a<S}else{for(1<(c=i/(A[0]+1)|0)&&(A=T(A,c,i),E=T(E,c,i),x=A.length,S=E.length),g=(h=E.slice(0,w=x)).length;g<x;)h[g++]=0;for((j=A.slice()).unshift(0),O=A[0],A[1]>=i/2&&++O;c=0,(s=D(A,h,x,g))<0?(m=h[0],1<(c=(m=x!=g?m*i+(h[1]||0):m)/O|0)?1==(s=D(p=T(A,c=i<=c?i-1:c,i),h,y=p.length,g=h.length))&&(c--,R(p,x<y?j:A,y,i)):(0==c&&(s=c=1),p=A.slice()),(y=p.length)<g&&p.unshift(0),R(h,p,g,i),-1==s&&(s=D(A,h,x,g=h.length))<1&&(c++,R(h,x<g?j:A,g,i)),g=h.length):0===s&&(c++,h=[0]),d[a++]=c,s&&h[0]?h[g++]=E[w]||0:(h=[E[w]],g=1),(w++<S||void 0!==h[0])&&v--;);l=void 0!==h[0]}d[0]||d.shift()}if(1==f)P.e=u,M=l;else{for(a=1,c=d[0];10<=c;c/=10)a++;P.e=a+u*f-1,L(P,o?r+P.e+1:r,n,l)}return P};function T(t,e,r){var n,o=0,i=t.length;for(t=t.slice();i--;)n=t[i]*e+o,t[i]=n%r|0,o=n/r|0;return o&&t.unshift(o),t}function D(t,e,r,n){var o,i;if(r!=n)i=n<r?1:-1;else for(o=i=0;o<r;o++)if(t[o]!=e[o]){i=t[o]>e[o]?1:-1;break}return i}function R(t,e,r,n){for(var o=0;r--;)t[r]-=o,o=t[r]<e[r]?1:0,t[r]=o*n+t[r]-e[r];for(;!t[0]&&1<t.length;)t.shift()}function L(t,e,r,n){var o,i,s,u,a,c,f,l,p=t.constructor;t:if(null!=e){if(!(f=t.d))return t;for(o=1,u=f[0];10<=u;u/=10)o++;if((i=e-o)<0)i+=I,a=(c=f[l=0])/m(10,o-(s=e)-1)%10|0;else if(l=Math.ceil((i+1)/I),(u=f.length)<=l){if(!n)break t;for(;u++<=l;)f.push(0);c=a=0,s=(i%=I)-I+(o=1)}else{for(c=u=f[l],o=1;10<=u;u/=10)o++;a=(s=(i%=I)-I+o)<0?0:c/m(10,o-s-1)%10|0}if(n=n||e<0||void 0!==f[l+1]||(s<0?c:c%m(10,o-s-1)),a=r<4?(a||n)&&(0==r||r==(t.s<0?3:2)):5<a||5==a&&(4==r||n||6==r&&(0<i?0<s?c/m(10,o-s):0:f[l-1])%10&1||r==(t.s<0?8:7)),e<1||!f[0])return f.length=0,a?(e-=t.e+1,f[0]=m(10,(I-e%I)%I),t.e=-e||0):f[0]=t.e=0,t;if(0==i?(f.length=l,u=1,l--):(f.length=l+1,u=m(10,I-i),f[l]=0<s?(c/m(10,o-s)%m(10,s)|0)*u:0),a)for(;;){if(0==l){for(i=1,s=f[0];10<=s;s/=10)i++;for(s=f[0]+=u,u=1;10<=s;s/=10)u++;i!=u&&(t.e++,f[0]==F&&(f[0]=1));break}if(f[l]+=u,f[l]!=F)break;f[l--]=0,u=1}for(i=f.length;0===f[--i];)f.pop()}return b&&(t.e>p.maxE?(t.d=null,t.e=NaN):t.e<p.minE&&(t.e=0,t.d=[0])),t}function C(t,e,r){if(!t.isFinite())return J(t);var n,o=t.e,i=j(t.d),s=i.length;return e?(r&&0<(n=r-s)?i=i.charAt(0)+"."+i.slice(1)+W(n):1<s&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(t.e<0?"e":"e+")+t.e):o<0?(i="0."+W(-o-1)+i,r&&0<(n=r-s)&&(i+=W(n))):s<=o?(i+=W(o+1-s),r&&0<(n=r-o-1)&&(i=i+"."+W(n))):((n=o+1)<s&&(i=i.slice(0,n)+"."+i.slice(n)),r&&0<(n=r-s)&&(o+1===s&&(i+="."),i+=W(n))),i}function _(t,e){var r=t[0];for(e*=I;10<=r;r/=10)e++;return e}function U(t,e,r){if(S<e)throw b=!0,r&&(t.precision=r),Error(c);return L(new t(n),e,1,!0)}function q(t,e,r){if(O<e)throw Error(c);return L(new t(o),e,r,!0)}function B(t){var e=t.length-1,r=e*I+1;if(e=t[e]){for(;e%10==0;e/=10)r--;for(e=t[0];10<=e;e/=10)r++}return r}function W(t){for(var e="";t--;)e+="0";return e}function H(t,e,r,n){var o,i=new t(1),s=Math.ceil(n/I+4);for(b=!1;;){if(r%2&&X((i=i.times(e)).d,s)&&(o=!0),0===(r=k(r/2))){r=i.d.length-1,o&&0===i.d[r]&&++i.d[r];break}X((e=e.times(e)).d,s)}return b=!0,i}function V(t){return 1&t.d[t.d.length-1]}function t(t,e,r){for(var n,o=new t(e[0]),i=0;++i<e.length;){if(!(n=new t(e[i])).s){o=n;break}o[r](n)&&(o=n)}return o}function G(t,e){var r,n,o,i,s,u,a,c=0,f=0,l=0,p=t.constructor,y=p.rounding,d=p.precision;if(!t.d||!t.d[0]||17<t.e)return new p(t.d?t.d[0]?t.s<0?0:1/0:1:t.s?t.s<0?0:t:NaN);for(a=null==e?(b=!1,d):e,u=new p(.03125);-2<t.e;)t=t.times(u),l+=5;for(a+=n=Math.log(m(2,l))/Math.LN10*2+5|0,r=i=s=new p(1),p.precision=a;;){if(i=L(i.times(t),a,1),r=r.times(++f),j((u=s.plus(A(i,r,a,1))).d).slice(0,a)===j(s.d).slice(0,a)){for(o=l;o--;)s=L(s.times(s),a,1);if(null!=e)return p.precision=d,s;if(!(c<3&&P(s.d,a-n,y,c)))return L(s,p.precision=d,y,b=!0);p.precision=a+=10,r=i=u=new p(1),f=0,c++}s=u}}function Z(t,e){var r,n,o,i,s,u,a,c,f,l,p,y=1,d=t,h=d.d,g=d.constructor,m=g.rounding,v=g.precision;if(d.s<0||!h||!h[0]||!d.e&&1==h[0]&&1==h.length)return new g(h&&!h[0]?-1/0:1!=d.s?NaN:h?0:d);if(f=null==e?(b=!1,v):e,g.precision=f+=10,n=(r=j(h)).charAt(0),!(Math.abs(i=d.e)<15e14))return c=U(g,f+2,v).times(i+""),d=Z(new g(n+"."+r.slice(1)),f-10).plus(c),g.precision=v,null==e?L(d,v,m,b=!0):d;for(;n<7&&1!=n||1==n&&3<r.charAt(1);)n=(r=j((d=d.times(t)).d)).charAt(0),y++;for(i=d.e,1<n?(d=new g("0."+r),i++):d=new g(n+"."+r.slice(1)),a=s=d=A((l=d).minus(1),d.plus(1),f,1),p=L(d.times(d),f,1),o=3;;){if(s=L(s.times(p),f,1),j((c=a.plus(A(s,new g(o),f,1))).d).slice(0,f)===j(a.d).slice(0,f)){if(a=a.times(2),0!==i&&(a=a.plus(U(g,f+2,v).times(i+""))),a=A(a,new g(y),f,1),null!=e)return g.precision=v,a;if(!P(a.d,f-10,m,u))return L(a,g.precision=v,m,b=!0);g.precision=f+=10,c=s=d=A(l.minus(1),l.plus(1),f,1),p=L(d.times(d),f,1),o=u=1}a=c,o+=2}}function J(t){return String(t.s*t.s/0)}function $(t,e){var r,n,o;for(0<(n=(e=-1<(r=e.indexOf("."))?e.replace(".",""):e).search(/e/i))?(r<0&&(r=n),r+=+e.slice(n+1),e=e.substring(0,n)):r<0&&(r=e.length),n=0;48===e.charCodeAt(n);n++);for(o=e.length;48===e.charCodeAt(o-1);--o);if(e=e.slice(n,o)){if(o-=n,t.e=r=r-n-1,t.d=[],n=(r+1)%I,r<0&&(n+=I),n<o){for(n&&t.d.push(+e.slice(0,n)),o-=I;n<o;)t.d.push(+e.slice(n,n+=I));e=e.slice(n),n=I-e.length}else n-=o;for(;n--;)e+="0";t.d.push(+e),b&&(t.e>t.constructor.maxE?(t.d=null,t.e=NaN):t.e<t.constructor.minE&&(t.e=0,t.d=[0]))}else t.e=0,t.d=[0];return t}function z(t,e,r,n,o){var i,s,u,a,c=t.precision,f=Math.ceil(c/I);for(b=!1,a=r.times(r),u=new t(n);;){if(s=A(u.times(a),new t(e++*e++),c,1),u=o?n.plus(s):n.minus(s),n=A(s.times(a),new t(e++*e++),c,1),void 0!==(s=u.plus(n)).d[f]){for(i=f;s.d[i]===u.d[i]&&i--;);if(-1==i)break}i=u,u=n,n=s,s=i,0}return b=!0,s.d.length=f+1,s}function Q(t,e){for(var r=t;--e;)r*=t;return r}function K(t,e){var r=e.s<0,n=q(t,t.precision,1),o=n.times(.5);if((e=e.abs()).lte(o))return i=r?4:1,e;if((t=e.divToInt(n)).isZero())i=r?3:2;else{if((e=e.minus(t.times(n))).lte(o))return i=V(t)?r?2:3:r?4:1,e;i=V(t)?r?1:4:r?3:2}return e.minus(n).abs()}function r(t,e,r,n){var o,i,s,u,a,c,f,l,p=t.constructor,y=void 0!==r;if(y?(N(r,1,d),void 0===n?n=p.rounding:N(n,0,8)):(r=p.precision,n=p.rounding),t.isFinite()){for(y?(o=2,16==e?r=4*r-3:8==e&&(r=3*r-2)):o=e,0<=(s=(c=C(t)).indexOf("."))&&(c=c.replace(".",""),(l=new p(1)).e=c.length-s,l.d=E(C(l),10,o),l.e=l.d.length),i=u=(f=E(c,10,o)).length;0==f[--u];)f.pop();if(f[0]){if(s<0?i--:((t=new p(t)).d=f,t.e=i,f=(t=A(t,l,r,n,0,o)).d,i=t.e,a=M),s=f[r],l=o/2,a=a||void 0!==f[r+1],a=n<4?(void 0!==s||a)&&(0===n||n===(t.s<0?3:2)):l<s||s===l&&(4===n||a||6===n&&1&f[r-1]||n===(t.s<0?8:7)),f.length=r,a)for(;++f[--r]>o-1;)f[r]=0,r||(++i,f.unshift(1));for(u=f.length;!f[u-1];--u);for(s=0,c="";s<u;s++)c+=h.charAt(f[s]);if(y){if(1<u)if(16==e||8==e){for(s=16==e?4:3,--u;u%s;u++)c+="0";for(u=(f=E(c,o,e)).length;!f[u-1];--u);for(s=1,c="1.";s<u;s++)c+=h.charAt(f[s])}else c=c.charAt(0)+"."+c.slice(1);c=c+(i<0?"p":"p+")+i}else if(i<0){for(;++i;)c="0"+c;c="0."+c}else if(++i>u)for(i-=u;i--;)c+="0";else i<u&&(c=c.slice(0,i)+"."+c.slice(i))}else c=y?"0p+0":"0";c=(16==e?"0x":2==e?"0b":8==e?"0o":"")+c}else c=J(t);return t.s<0?"-"+c:c}function X(t,e){return t.length>e&&(t.length=e,1)}function Y(t){return new this(t).abs()}function tt(t){return new this(t).acos()}function et(t){return new this(t).acosh()}function rt(t,e){return new this(t).plus(e)}function nt(t){return new this(t).asin()}function ot(t){return new this(t).asinh()}function it(t){return new this(t).atan()}function st(t){return new this(t).atanh()}function ut(t,e){t=new this(t),e=new this(e);var r,n=this.precision,o=this.rounding,i=n+4;return t.s&&e.s?t.d||e.d?!e.d||t.isZero()?(r=e.s<0?q(this,n,o):new this(0)).s=t.s:!t.d||e.isZero()?(r=q(this,i,1).times(.5)).s=t.s:r=e.s<0?(this.precision=i,this.rounding=1,r=this.atan(A(t,e,i,1)),e=q(this,i,1),this.precision=n,this.rounding=o,t.s<0?r.minus(e):r.plus(e)):this.atan(A(t,e,i,1)):(r=q(this,i,1).times(0<e.s?.25:.75)).s=t.s:r=new this(NaN),r}function at(t){return new this(t).cbrt()}function ct(t){return L(t=new this(t),t.e+1,2)}function ft(t,e,r){return new this(t).clamp(e,r)}function lt(t){if(!t||"object"!=typeof t)throw Error(a+"Object expected");for(var e,r,n=!0===t.defaults,o=["precision",1,d,"rounding",0,8,"toExpNeg",-s,0,"toExpPos",0,s,"maxE",0,s,"minE",-s,0,"modulo",0,9],i=0;i<o.length;i+=3)if(e=o[i],n&&(this[e]=u[e]),void 0!==(r=t[e])){if(!(k(r)===r&&o[i+1]<=r&&r<=o[i+2]))throw Error(g+e+": "+r);this[e]=r}if(e="crypto",n&&(this[e]=u[e]),void 0!==(r=t[e])){if(!0!==r&&!1!==r&&0!==r&&1!==r)throw Error(g+e+": "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error(l);this[e]=!0}else this[e]=!1}return this}function pt(t){return new this(t).cos()}function yt(t){return new this(t).cosh()}function dt(t,e){return new this(t).div(e)}function ht(t){return new this(t).exp()}function gt(t){return L(t=new this(t),t.e+1,3)}function mt(){var t,e,r=new this(0);for(b=!1,t=0;t<arguments.length;)if((e=new this(arguments[t++])).d)r.d&&(r=r.plus(e.times(e)));else{if(e.s)return b=!0,new this(1/0);r=e}return b=!0,r.sqrt()}function vt(t){return t instanceof f||t&&t.toStringTag===e||!1}function bt(t){return new this(t).ln()}function wt(t,e){return new this(t).log(e)}function St(t){return new this(t).log(2)}function Ot(t){return new this(t).log(10)}function xt(){return t(this,arguments,"lt")}function jt(){return t(this,arguments,"gt")}function Nt(t,e){return new this(t).mod(e)}function Pt(t,e){return new this(t).mul(e)}function Et(t,e){return new this(t).pow(e)}function At(t){var e,r,n,o,i=0,s=new this(1),u=[];if(void 0===t?t=this.precision:N(t,1,d),n=Math.ceil(t/I),this.crypto)if(crypto.getRandomValues)for(e=crypto.getRandomValues(new Uint32Array(n));i<n;)429e7<=(o=e[i])?e[i]=crypto.getRandomValues(new Uint32Array(1))[0]:u[i++]=o%1e7;else{if(!crypto.randomBytes)throw Error(l);for(e=crypto.randomBytes(n*=4);i<n;)214e7<=(o=e[i]+(e[i+1]<<8)+(e[i+2]<<16)+((127&e[i+3])<<24))?crypto.randomBytes(4).copy(e,i):(u.push(o%1e7),i+=4);i=n/4}else for(;i<n;)u[i++]=1e7*Math.random()|0;for(n=u[--i],t%=I,n&&t&&(o=m(10,I-t),u[i]=(n/o|0)*o);0===u[i];i--)u.pop();if(i<0)u=[r=0];else{for(r=-1;0===u[0];r-=I)u.shift();for(n=1,o=u[0];10<=o;o/=10)n++;n<I&&(r-=I-n)}return s.e=r,s.d=u,s}function Mt(t){return L(t=new this(t),t.e+1,this.rounding)}function kt(t){return(t=new this(t)).d?t.d[0]?t.s:0*t.s:t.s||NaN}function Ft(t){return new this(t).sin()}function It(t){return new this(t).sinh()}function Tt(t){return new this(t).sqrt()}function Dt(t,e){return new this(t).sub(e)}function Rt(){var t=0,e=arguments,r=new this(e[t]);for(b=!1;r.s&&++t<e.length;)r=r.plus(e[t]);return b=!0,L(r,this.precision,this.rounding)}function Lt(t){return new this(t).tan()}function Ct(t){return new this(t).tanh()}function _t(t){return L(t=new this(t),t.e+1,1)}((f=function t(e){var r,n,o;function i(t){var e,r,n,o=this;if(!(o instanceof i))return new i(t);if(o.constructor=i,vt(t))return o.s=t.s,void(b?!t.d||t.e>i.maxE?(o.e=NaN,o.d=null):t.e<i.minE?(o.e=0,o.d=[0]):(o.e=t.e,o.d=t.d.slice()):(o.e=t.e,o.d=t.d&&t.d.slice()));if("number"==(n=typeof t)){if(0===t)return o.s=1/t<0?-1:1,o.e=0,void(o.d=[0]);if(t<0?(t=-t,o.s=-1):o.s=1,t===~~t&&t<1e7){for(e=0,r=t;10<=r;r/=10)e++;return void(b?i.maxE<e?(o.e=NaN,o.d=null):e<i.minE?(o.e=0,o.d=[0]):(o.e=e,o.d=[t]):(o.e=e,o.d=[t]))}return 0*t!=0?(t||(