@perses-dev/status-history-chart-plugin 0.12.1 → 0.13.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (197) hide show
  1. package/__mf/css/async/236.85c2cbf6.css +1 -0
  2. package/__mf/font/inter-cyrillic-300-normal.432f2b21.woff +0 -0
  3. package/__mf/font/inter-cyrillic-300-normal.9da91009.woff2 +0 -0
  4. package/__mf/font/inter-cyrillic-400-normal.372704ff.woff2 +0 -0
  5. package/__mf/font/inter-cyrillic-400-normal.a6b6ef6f.woff +0 -0
  6. package/__mf/font/inter-cyrillic-500-normal.7c15bba8.woff2 +0 -0
  7. package/__mf/font/inter-cyrillic-500-normal.b9f8c929.woff +0 -0
  8. package/__mf/font/inter-cyrillic-600-normal.2f42892a.woff2 +0 -0
  9. package/__mf/font/inter-cyrillic-600-normal.c3987adc.woff +0 -0
  10. package/__mf/font/inter-cyrillic-700-normal.93eba3c3.woff +0 -0
  11. package/__mf/font/inter-cyrillic-700-normal.e9e5b2dc.woff2 +0 -0
  12. package/__mf/font/inter-cyrillic-900-normal.f285bd7a.woff2 +0 -0
  13. package/__mf/font/inter-cyrillic-900-normal.ffbd8a3a.woff +0 -0
  14. package/__mf/font/inter-cyrillic-ext-300-normal.95bb9038.woff2 +0 -0
  15. package/__mf/font/inter-cyrillic-ext-300-normal.cfc143a9.woff +0 -0
  16. package/__mf/font/inter-cyrillic-ext-400-normal.2a31c04b.woff +0 -0
  17. package/__mf/font/inter-cyrillic-ext-400-normal.f572b170.woff2 +0 -0
  18. package/__mf/font/inter-cyrillic-ext-500-normal.5a6bb1da.woff +0 -0
  19. package/__mf/font/inter-cyrillic-ext-500-normal.fe0d9b14.woff2 +0 -0
  20. package/__mf/font/inter-cyrillic-ext-600-normal.ecbdecad.woff +0 -0
  21. package/__mf/font/inter-cyrillic-ext-600-normal.f7b3c15b.woff2 +0 -0
  22. package/__mf/font/inter-cyrillic-ext-700-normal.4b4022a6.woff +0 -0
  23. package/__mf/font/inter-cyrillic-ext-700-normal.74b516d2.woff2 +0 -0
  24. package/__mf/font/inter-cyrillic-ext-900-normal.9970ddb5.woff +0 -0
  25. package/__mf/font/inter-cyrillic-ext-900-normal.a0d59adc.woff2 +0 -0
  26. package/__mf/font/inter-greek-300-normal.0d7be683.woff2 +0 -0
  27. package/__mf/font/inter-greek-300-normal.8f0b988e.woff +0 -0
  28. package/__mf/font/inter-greek-400-normal.cc58c11b.woff +0 -0
  29. package/__mf/font/inter-greek-400-normal.d7020e3c.woff2 +0 -0
  30. package/__mf/font/inter-greek-500-normal.d9a33207.woff +0 -0
  31. package/__mf/font/inter-greek-500-normal.f41f43db.woff2 +0 -0
  32. package/__mf/font/inter-greek-600-normal.4ec0c1c1.woff +0 -0
  33. package/__mf/font/inter-greek-600-normal.cc532937.woff2 +0 -0
  34. package/__mf/font/inter-greek-700-normal.5ec6c758.woff +0 -0
  35. package/__mf/font/inter-greek-700-normal.97f0eeeb.woff2 +0 -0
  36. package/__mf/font/inter-greek-900-normal.46b66369.woff2 +0 -0
  37. package/__mf/font/inter-greek-900-normal.9ae3a3c5.woff +0 -0
  38. package/__mf/font/inter-greek-ext-300-normal.10247a66.woff2 +0 -0
  39. package/__mf/font/inter-greek-ext-300-normal.4668e5cb.woff +0 -0
  40. package/__mf/font/inter-greek-ext-400-normal.4ce1df5d.woff2 +0 -0
  41. package/__mf/font/inter-greek-ext-400-normal.88ede1ea.woff +0 -0
  42. package/__mf/font/inter-greek-ext-500-normal.7a4aa726.woff +0 -0
  43. package/__mf/font/inter-greek-ext-500-normal.cbd51e2d.woff2 +0 -0
  44. package/__mf/font/inter-greek-ext-600-normal.089a95ee.woff +0 -0
  45. package/__mf/font/inter-greek-ext-600-normal.1f33d317.woff2 +0 -0
  46. package/__mf/font/inter-greek-ext-700-normal.31f1075d.woff +0 -0
  47. package/__mf/font/inter-greek-ext-700-normal.827cd618.woff2 +0 -0
  48. package/__mf/font/inter-greek-ext-900-normal.531bcee7.woff +0 -0
  49. package/__mf/font/inter-greek-ext-900-normal.8a9b36b9.woff2 +0 -0
  50. package/__mf/font/inter-latin-300-normal.15fb600d.woff2 +0 -0
  51. package/__mf/font/inter-latin-300-normal.6f95f590.woff +0 -0
  52. package/__mf/font/inter-latin-400-normal.2c7a775c.woff +0 -0
  53. package/__mf/font/inter-latin-400-normal.ef6d3f52.woff2 +0 -0
  54. package/__mf/font/inter-latin-500-normal.b7b43ace.woff2 +0 -0
  55. package/__mf/font/inter-latin-500-normal.cb4c8ceb.woff +0 -0
  56. package/__mf/font/inter-latin-600-normal.8fb1a964.woff2 +0 -0
  57. package/__mf/font/inter-latin-600-normal.ce0f5f43.woff +0 -0
  58. package/__mf/font/inter-latin-700-normal.953b7aa5.woff2 +0 -0
  59. package/__mf/font/inter-latin-700-normal.9c21d4dc.woff +0 -0
  60. package/__mf/font/inter-latin-900-normal.2a8028ec.woff2 +0 -0
  61. package/__mf/font/inter-latin-900-normal.fa252135.woff +0 -0
  62. package/__mf/font/inter-latin-ext-300-normal.167cc8c9.woff2 +0 -0
  63. package/__mf/font/inter-latin-ext-300-normal.f695be66.woff +0 -0
  64. package/__mf/font/inter-latin-ext-400-normal.32a25442.woff2 +0 -0
  65. package/__mf/font/inter-latin-ext-400-normal.4edcaace.woff +0 -0
  66. package/__mf/font/inter-latin-ext-500-normal.a19a84a6.woff +0 -0
  67. package/__mf/font/inter-latin-ext-500-normal.d9b491de.woff2 +0 -0
  68. package/__mf/font/inter-latin-ext-600-normal.38b075d8.woff2 +0 -0
  69. package/__mf/font/inter-latin-ext-600-normal.49faa47a.woff +0 -0
  70. package/__mf/font/inter-latin-ext-700-normal.93534b50.woff +0 -0
  71. package/__mf/font/inter-latin-ext-700-normal.b63daa1a.woff2 +0 -0
  72. package/__mf/font/inter-latin-ext-900-normal.0efdb307.woff +0 -0
  73. package/__mf/font/inter-latin-ext-900-normal.9c0fc2c7.woff2 +0 -0
  74. package/__mf/font/inter-vietnamese-300-normal.aad496d8.woff +0 -0
  75. package/__mf/font/inter-vietnamese-300-normal.ad9ef503.woff2 +0 -0
  76. package/__mf/font/inter-vietnamese-400-normal.a9dd2faf.woff +0 -0
  77. package/__mf/font/inter-vietnamese-400-normal.de4fc44f.woff2 +0 -0
  78. package/__mf/font/inter-vietnamese-500-normal.7c0a695f.woff2 +0 -0
  79. package/__mf/font/inter-vietnamese-500-normal.a3a73b95.woff +0 -0
  80. package/__mf/font/inter-vietnamese-600-normal.9d518599.woff2 +0 -0
  81. package/__mf/font/inter-vietnamese-600-normal.c5ce3fcb.woff +0 -0
  82. package/__mf/font/inter-vietnamese-700-normal.bc68b199.woff +0 -0
  83. package/__mf/font/inter-vietnamese-700-normal.faf12809.woff2 +0 -0
  84. package/__mf/font/inter-vietnamese-900-normal.2b782045.woff +0 -0
  85. package/__mf/font/inter-vietnamese-900-normal.e639b65a.woff2 +0 -0
  86. package/__mf/js/StatusHistoryChart.f1a93152.js +7 -0
  87. package/__mf/js/async/121.f734f7ae.js +2 -0
  88. package/__mf/js/async/177.0bd63409.js +1 -0
  89. package/__mf/js/async/189.1360f173.js +2 -0
  90. package/__mf/js/async/192.94dd6d26.js +1 -0
  91. package/__mf/js/async/2.f2c65c2e.js +1 -0
  92. package/__mf/js/async/235.66335cbc.js +1 -0
  93. package/__mf/js/async/236.06fd133c.js +7 -0
  94. package/__mf/js/async/{901.1a94d1a1.js.LICENSE.txt → 236.06fd133c.js.LICENSE.txt} +19 -1
  95. package/__mf/js/async/269.d6a61a03.js +24 -0
  96. package/__mf/js/async/274.9ca5b9fe.js +2 -0
  97. package/__mf/js/async/356.9137739d.js +1 -0
  98. package/__mf/js/async/392.19495a98.js +2 -0
  99. package/__mf/js/async/470.abbbff79.js +2 -0
  100. package/__mf/js/async/525.479ffa0c.js +2 -0
  101. package/__mf/js/async/558.95c7beaf.js +1 -0
  102. package/__mf/js/async/570.74ef5adb.js +39 -0
  103. package/__mf/js/async/{925.0d9b745d.js.LICENSE.txt → 570.74ef5adb.js.LICENSE.txt} +17 -1
  104. package/__mf/js/async/587.f15ca009.js +1 -0
  105. package/__mf/js/async/588.0ef276aa.js +1 -0
  106. package/__mf/js/async/616.2d5261d0.js +1 -0
  107. package/__mf/js/async/623.41de9662.js +1 -0
  108. package/__mf/js/async/644.ec93d266.js +110 -0
  109. package/__mf/js/async/{644.cbae4105.js.LICENSE.txt → 644.ec93d266.js.LICENSE.txt} +1 -1
  110. package/__mf/js/async/71.a6c3895d.js +1 -0
  111. package/__mf/js/async/862.27ef519e.js +1 -0
  112. package/__mf/js/async/873.3b073a4e.js +1 -0
  113. package/__mf/js/async/941.e917d8ce.js +2 -0
  114. package/__mf/js/async/968.d288127b.js +1 -0
  115. package/__mf/js/async/978.43e170c0.js +1 -0
  116. package/__mf/js/async/__federation_expose_StatusHistoryChart.7172624a.js +23 -0
  117. package/__mf/js/async/lib-router.9b3b0e91.js +2 -0
  118. package/__mf/js/main.5939ad61.js +7 -0
  119. package/lib/StatusHistoryChartBase.d.ts +1 -1
  120. package/lib/StatusHistoryChartBase.d.ts.map +1 -1
  121. package/lib/StatusHistoryChartBase.js.map +1 -1
  122. package/lib/StatusHistoryPanel.d.ts +1 -1
  123. package/lib/StatusHistoryPanel.js.map +1 -1
  124. package/lib/StatusHistoryValueMappingEditor.d.ts.map +1 -1
  125. package/lib/StatusHistoryValueMappingEditor.js.map +1 -1
  126. package/lib/cjs/utils/data-transform.js +4 -4
  127. package/lib/cjs/utils/get-timescale.js +2 -2
  128. package/lib/status-history-model.d.ts +1 -1
  129. package/lib/status-history-model.d.ts.map +1 -1
  130. package/lib/status-history-model.js.map +1 -1
  131. package/lib/utils/data-transform.d.ts +1 -1
  132. package/lib/utils/data-transform.d.ts.map +1 -1
  133. package/lib/utils/data-transform.js +1 -1
  134. package/lib/utils/data-transform.js.map +1 -1
  135. package/lib/utils/get-timescale.d.ts +1 -1
  136. package/lib/utils/get-timescale.d.ts.map +1 -1
  137. package/lib/utils/get-timescale.js +1 -1
  138. package/lib/utils/get-timescale.js.map +1 -1
  139. package/mf-manifest.json +69 -57
  140. package/mf-stats.json +82 -57
  141. package/package.json +4 -4
  142. package/__mf/css/async/442.d3010b86.css +0 -1
  143. package/__mf/css/async/61.d3010b86.css +0 -1
  144. package/__mf/css/async/823.d3010b86.css +0 -1
  145. package/__mf/font/lato-all-300-normal.322bdf14.woff +0 -0
  146. package/__mf/font/lato-all-400-normal.63513b00.woff +0 -0
  147. package/__mf/font/lato-all-700-normal.bb27db94.woff +0 -0
  148. package/__mf/font/lato-all-900-normal.a27049a3.woff +0 -0
  149. package/__mf/font/lato-latin-300-normal.c5195215.woff2 +0 -0
  150. package/__mf/font/lato-latin-400-normal.b7ffde23.woff2 +0 -0
  151. package/__mf/font/lato-latin-700-normal.d5eb20bc.woff2 +0 -0
  152. package/__mf/font/lato-latin-900-normal.d884a71c.woff2 +0 -0
  153. package/__mf/font/lato-latin-ext-300-normal.abcc64a9.woff2 +0 -0
  154. package/__mf/font/lato-latin-ext-400-normal.6ebed106.woff2 +0 -0
  155. package/__mf/font/lato-latin-ext-700-normal.8697d1d5.woff2 +0 -0
  156. package/__mf/font/lato-latin-ext-900-normal.20a2b415.woff2 +0 -0
  157. package/__mf/js/StatusHistoryChart.f49d4f09.js +0 -6
  158. package/__mf/js/async/121.17e95c0f.js +0 -2
  159. package/__mf/js/async/153.a05b947a.js +0 -2
  160. package/__mf/js/async/153.a05b947a.js.LICENSE.txt +0 -15
  161. package/__mf/js/async/177.8e51631b.js +0 -1
  162. package/__mf/js/async/189.fb5828be.js +0 -2
  163. package/__mf/js/async/192.8fa94a82.js +0 -1
  164. package/__mf/js/async/2.7f4594b1.js +0 -1
  165. package/__mf/js/async/208.4ddf8a84.js +0 -24
  166. package/__mf/js/async/235.59e4cd91.js +0 -1
  167. package/__mf/js/async/274.6a9f4c88.js +0 -2
  168. package/__mf/js/async/283.94f964e7.js +0 -1
  169. package/__mf/js/async/356.dfb4c773.js +0 -1
  170. package/__mf/js/async/392.451e4ac5.js +0 -2
  171. package/__mf/js/async/470.a6095e83.js +0 -2
  172. package/__mf/js/async/525.9b8b1f1d.js +0 -2
  173. package/__mf/js/async/558.df5de61b.js +0 -1
  174. package/__mf/js/async/587.4f01f05a.js +0 -1
  175. package/__mf/js/async/588.3d58e41b.js +0 -1
  176. package/__mf/js/async/616.1c080169.js +0 -1
  177. package/__mf/js/async/623.5e8090ca.js +0 -1
  178. package/__mf/js/async/644.cbae4105.js +0 -110
  179. package/__mf/js/async/71.a42c00bc.js +0 -1
  180. package/__mf/js/async/873.63bd8a6f.js +0 -1
  181. package/__mf/js/async/901.1a94d1a1.js +0 -7
  182. package/__mf/js/async/925.0d9b745d.js +0 -39
  183. package/__mf/js/async/941.2e8dd304.js +0 -2
  184. package/__mf/js/async/968.c21f2475.js +0 -1
  185. package/__mf/js/async/978.563a3078.js +0 -1
  186. package/__mf/js/async/__federation_expose_StatusHistoryChart.2f7f2db6.js +0 -23
  187. package/__mf/js/async/lib-router.7f2e5a89.js +0 -2
  188. package/__mf/js/main.74cdd51f.js +0 -6
  189. /package/__mf/js/async/{121.17e95c0f.js.LICENSE.txt → 121.f734f7ae.js.LICENSE.txt} +0 -0
  190. /package/__mf/js/async/{189.fb5828be.js.LICENSE.txt → 189.1360f173.js.LICENSE.txt} +0 -0
  191. /package/__mf/js/async/{208.4ddf8a84.js.LICENSE.txt → 269.d6a61a03.js.LICENSE.txt} +0 -0
  192. /package/__mf/js/async/{274.6a9f4c88.js.LICENSE.txt → 274.9ca5b9fe.js.LICENSE.txt} +0 -0
  193. /package/__mf/js/async/{392.451e4ac5.js.LICENSE.txt → 392.19495a98.js.LICENSE.txt} +0 -0
  194. /package/__mf/js/async/{470.a6095e83.js.LICENSE.txt → 470.abbbff79.js.LICENSE.txt} +0 -0
  195. /package/__mf/js/async/{525.9b8b1f1d.js.LICENSE.txt → 525.479ffa0c.js.LICENSE.txt} +0 -0
  196. /package/__mf/js/async/{941.2e8dd304.js.LICENSE.txt → 941.e917d8ce.js.LICENSE.txt} +0 -0
  197. /package/__mf/js/async/{lib-router.7f2e5a89.js.LICENSE.txt → lib-router.9b3b0e91.js.LICENSE.txt} +0 -0
@@ -1,6 +0,0 @@
1
- var StatusHistoryChart;(()=>{"use strict";var __webpack_modules__={55994:function(e,t){let r="RUNTIME-001",n="RUNTIME-002",o="RUNTIME-003",i="RUNTIME-004",a="RUNTIME-005",s="RUNTIME-006",l="RUNTIME-007",c="RUNTIME-008",u="RUNTIME-009",f="TYPE-001",h="BUILD-001",d="BUILD-002",p=e=>{let t=e.split("-")[0].toLowerCase();return`View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/${t}/${e}`},m=(e,t,r,n)=>{let o=[`${[t[e]]} #${e}`];return r&&o.push(`args: ${JSON.stringify(r)}`),o.push(p(e)),n&&o.push(`Original Error Message:
2
- ${n}`),o.join("\n")},g={[r]:"Failed to get remoteEntry exports.",[n]:'The remote entry interface does not contain "init"',[o]:"Failed to get manifest.",[i]:"Failed to locate remote.",[a]:"Invalid loadShareSync function call from bundler runtime",[s]:"Invalid loadShareSync function call from runtime",[l]:"Failed to get remote snapshot.",[c]:"Failed to load script resources.",[u]:"Please call createInstance first."},y={[f]:"Failed to generate type declaration. Execute the below cmd to reproduce and fix the error."},_={[h]:"Failed to find expose module.",[d]:"PublicPath is required in prod mode."},E={...g,...y,..._};t.BUILD_001=h,t.BUILD_002=d,t.RUNTIME_001=r,t.RUNTIME_002=n,t.RUNTIME_003=o,t.RUNTIME_004=i,t.RUNTIME_005=a,t.RUNTIME_006=s,t.RUNTIME_007=l,t.RUNTIME_008=c,t.RUNTIME_009=u,t.TYPE_001=f,t.buildDescMap=_,t.errorDescMap=E,t.getShortErrorMsg=m,t.runtimeDescMap=g,t.typeDescMap=y},93870:function(e,t,r){var n=r(44826),o=r(55994);let i="[ Federation Runtime ]",a=n.createLogger(i);function s(e,t){e||l(t)}function l(e){if(e instanceof Error)throw e.message.startsWith(i)||(e.message=`${i}: ${e.message}`),e;throw Error(`${i}: ${e}`)}function c(e){e instanceof Error&&(e.message.startsWith(i)||(e.message=`${i}: ${e.message}`)),a.warn(e)}function u(e,t){return -1===e.findIndex(e=>e===t)&&e.push(t),e}function f(e){return"version"in e&&e.version?`${e.name}:${e.version}`:"entry"in e&&e.entry?`${e.name}:${e.entry}`:`${e.name}`}function h(e){return void 0!==e.entry}function d(e){return!e.entry.includes(".json")}async function p(e,t){try{return await e()}catch(e){t||c(e);return}}function m(e){return e&&"object"==typeof e}let g=Object.prototype.toString;function y(e){return"[object Object]"===g.call(e)}function _(e,t){let r=/^(https?:)?\/\//i;return e.replace(r,"").replace(/\/$/,"")===t.replace(r,"").replace(/\/$/,"")}function E(e){return Array.isArray(e)?e:[e]}function b(e){let t={url:"",type:"global",globalName:""};return n.isBrowserEnv()||n.isReactNativeEnv()?"remoteEntry"in e?{url:e.remoteEntry,type:e.remoteEntryType,globalName:e.globalName}:t:"ssrRemoteEntry"in e?{url:e.ssrRemoteEntry||t.url,type:e.ssrRemoteEntryType||t.type,globalName:e.globalName}:t}let S=(e,t)=>{let r;return r=e.endsWith("/")?e.slice(0,-1):e,t.startsWith(".")&&(t=t.slice(1)),r+=t},v="object"==typeof globalThis?globalThis:window,R=(()=>{try{return document.defaultView}catch{return v}})(),I=R;function N(e,t,r){Object.defineProperty(e,t,{value:r,configurable:!1,writable:!0})}function $(e,t){return Object.hasOwnProperty.call(e,t)}$(v,"__GLOBAL_LOADING_REMOTE_ENTRY__")||N(v,"__GLOBAL_LOADING_REMOTE_ENTRY__",{});let M=v.__GLOBAL_LOADING_REMOTE_ENTRY__;function T(e){var t,r,n,o,i,a;$(e,"__VMOK__")&&!$(e,"__FEDERATION__")&&N(e,"__FEDERATION__",e.__VMOK__),$(e,"__FEDERATION__")||(N(e,"__FEDERATION__",{__GLOBAL_PLUGIN__:[],__INSTANCES__:[],moduleInfo:{},__SHARE__:{},__MANIFEST_LOADING__:{},__PRELOADED_MAP__:new Map}),N(e,"__VMOK__",e.__FEDERATION__)),(t=e.__FEDERATION__).__GLOBAL_PLUGIN__??(t.__GLOBAL_PLUGIN__=[]),(r=e.__FEDERATION__).__INSTANCES__??(r.__INSTANCES__=[]),(n=e.__FEDERATION__).moduleInfo??(n.moduleInfo={}),(o=e.__FEDERATION__).__SHARE__??(o.__SHARE__={}),(i=e.__FEDERATION__).__MANIFEST_LOADING__??(i.__MANIFEST_LOADING__={}),(a=e.__FEDERATION__).__PRELOADED_MAP__??(a.__PRELOADED_MAP__=new Map)}function w(){v.__FEDERATION__.__GLOBAL_PLUGIN__=[],v.__FEDERATION__.__INSTANCES__=[],v.__FEDERATION__.moduleInfo={},v.__FEDERATION__.__SHARE__={},v.__FEDERATION__.__MANIFEST_LOADING__={},Object.keys(M).forEach(e=>{delete M[e]})}function A(e){v.__FEDERATION__.__INSTANCES__.push(e)}function O(){return v.__FEDERATION__.__DEBUG_CONSTRUCTOR__}function k(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.isDebugMode();t&&(v.__FEDERATION__.__DEBUG_CONSTRUCTOR__=e,v.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__="0.21.6")}function P(e,t){if("string"==typeof t){if(e[t])return{value:e[t],key:t};for(let r of Object.keys(e)){let[n,o]=r.split(":"),i=`${n}:${t}`,a=e[i];if(a)return{value:a,key:i}}return{value:void 0,key:t}}throw Error("key must be string")}T(v),T(R);let D=()=>R.__FEDERATION__.moduleInfo,L=(e,t)=>{let r=P(t,f(e)).value;if(r&&!r.version&&"version"in e&&e.version&&(r.version=e.version),r)return r;if("version"in e&&e.version){let{version:t,...r}=e,n=f(r),o=P(R.__FEDERATION__.moduleInfo,n).value;if((null==o?void 0:o.version)===t)return o}},C=e=>L(e,R.__FEDERATION__.moduleInfo),F=(e,t)=>{let r=f(e);return R.__FEDERATION__.moduleInfo[r]=t,R.__FEDERATION__.moduleInfo},H=e=>(R.__FEDERATION__.moduleInfo={...R.__FEDERATION__.moduleInfo,...e},()=>{for(let t of Object.keys(e))delete R.__FEDERATION__.moduleInfo[t]}),j=(e,t)=>{let r=t||`__FEDERATION_${e}:custom__`,n=v[r];return{remoteEntryKey:r,entryExports:n}},x=e=>{let{__GLOBAL_PLUGIN__:t}=R.__FEDERATION__;e.forEach(e=>{-1===t.findIndex(t=>t.name===e.name)?t.push(e):c(`The plugin ${e.name} has been registered.`)})},V=()=>R.__FEDERATION__.__GLOBAL_PLUGIN__,U=e=>v.__FEDERATION__.__PRELOADED_MAP__.get(e),G=e=>v.__FEDERATION__.__PRELOADED_MAP__.set(e,!0),q="default",B="global",K="[0-9A-Za-z-]+",W=`(?:\\+(${K}(?:\\.${K})*))`,z="0|[1-9]\\d*",Y="[0-9]+",X="\\d*[a-zA-Z-][a-zA-Z0-9-]*",J=`(?:${Y}|${X})`,Z=`(?:-?(${J}(?:\\.${J})*))`,Q=`(?:${z}|${X})`,ee=`(?:-(${Q}(?:\\.${Q})*))`,et=`${z}|x|X|\\*`,er=`[v=\\s]*(${et})(?:\\.(${et})(?:\\.(${et})(?:${ee})?${W}?)?)?`,en=`^\\s*(${er})\\s+-\\s+(${er})\\s*$`,eo=`(${Y})\\.(${Y})\\.(${Y})`,ei=`[v=\\s]*${eo}${Z}?${W}?`,ea="((?:<|>)?=?)",es=`(\\s*)${ea}\\s*(${ei}|${er})`,el="(?:~>?)",ec=`(\\s*)${el}\\s+`,eu="(?:\\^)",ef=`(\\s*)${eu}\\s+`,eh="(<|>)?=?\\s*\\*",ed=`^${eu}${er}$`,ep=`(${z})\\.(${z})\\.(${z})`,em=`v?${ep}${ee}?${W}?`,eg=`^${el}${er}$`,ey=`^${ea}\\s*${er}$`,e_=`^${ea}\\s*(${em})$|^$`,eE="^\\s*>=\\s*0.0.0\\s*$";function eb(e){return new RegExp(e)}function eS(e){return!e||"x"===e.toLowerCase()||"*"===e}function ev(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return e=>t.reduce((e,t)=>t(e),e)}function eR(e){return e.match(eb(e_))}function eI(e,t,r,n){let o=`${e}.${t}.${r}`;return n?`${o}-${n}`:o}function eN(e){return e.replace(eb(en),(e,t,r,n,o,i,a,s,l,c,u,f)=>(t=eS(r)?"":eS(n)?`>=${r}.0.0`:eS(o)?`>=${r}.${n}.0`:`>=${t}`,s=eS(l)?"":eS(c)?`<${Number(l)+1}.0.0-0`:eS(u)?`<${l}.${Number(c)+1}.0-0`:f?`<=${l}.${c}.${u}-${f}`:`<=${s}`,`${t} ${s}`.trim()))}function e$(e){return e.replace(eb(es),"$1$2$3")}function eM(e){return e.replace(eb(ec),"$1~")}function eT(e){return e.replace(eb(ef),"$1^")}function ew(e){return e.trim().split(/\s+/).map(e=>e.replace(eb(ed),(e,t,r,n,o)=>{if(eS(t))return"";if(eS(r))return`>=${t}.0.0 <${Number(t)+1}.0.0-0`;if(eS(n))if("0"===t)return`>=${t}.${r}.0 <${t}.${Number(r)+1}.0-0`;else return`>=${t}.${r}.0 <${Number(t)+1}.0.0-0`;if(o)if("0"!==t)return`>=${t}.${r}.${n}-${o} <${Number(t)+1}.0.0-0`;else if("0"===r)return`>=${t}.${r}.${n}-${o} <${t}.${r}.${Number(n)+1}-0`;else return`>=${t}.${r}.${n}-${o} <${t}.${Number(r)+1}.0-0`;if("0"===t)if("0"===r)return`>=${t}.${r}.${n} <${t}.${r}.${Number(n)+1}-0`;else return`>=${t}.${r}.${n} <${t}.${Number(r)+1}.0-0`;return`>=${t}.${r}.${n} <${Number(t)+1}.0.0-0`})).join(" ")}function eA(e){return e.trim().split(/\s+/).map(e=>e.replace(eb(eg),(e,t,r,n,o)=>eS(t)?"":eS(r)?`>=${t}.0.0 <${Number(t)+1}.0.0-0`:eS(n)?`>=${t}.${r}.0 <${t}.${Number(r)+1}.0-0`:o?`>=${t}.${r}.${n}-${o} <${t}.${Number(r)+1}.0-0`:`>=${t}.${r}.${n} <${t}.${Number(r)+1}.0-0`)).join(" ")}function eO(e){return e.split(/\s+/).map(e=>e.trim().replace(eb(ey),(e,t,r,n,o,i)=>{let a=eS(r),s=a||eS(n),l=s||eS(o);if("="===t&&l&&(t=""),i="",a)if(">"===t||"<"===t)return"<0.0.0-0";else return"*";return t&&l?(s&&(n=0),o=0,">"===t?(t=">=",s?(r=Number(r)+1,n=0):n=Number(n)+1,o=0):"<="===t&&(t="<",s?r=Number(r)+1:n=Number(n)+1),"<"===t&&(i="-0"),`${t+r}.${n}.${o}${i}`):s?`>=${r}.0.0${i} <${Number(r)+1}.0.0-0`:l?`>=${r}.${n}.0${i} <${r}.${Number(n)+1}.0-0`:e})).join(" ")}function ek(e){return e.trim().replace(eb(eh),"")}function eP(e){return e.trim().replace(eb(eE),"")}function eD(e,t){return(e=Number(e)||e)>(t=Number(t)||t)?1:e===t?0:-1}function eL(e,t){let{preRelease:r}=e,{preRelease:n}=t;if(void 0===r&&n)return 1;if(r&&void 0===n)return -1;if(void 0===r&&void 0===n)return 0;for(let e=0,t=r.length;e<=t;e++){let t=r[e],o=n[e];if(t!==o){if(void 0===t&&void 0===o)return 0;if(!t)return 1;if(!o)return -1;return eD(t,o)}}return 0}function eC(e,t){return eD(e.major,t.major)||eD(e.minor,t.minor)||eD(e.patch,t.patch)||eL(e,t)}function eF(e,t){return e.version===t.version}function eH(e,t){switch(e.operator){case"":case"=":return eF(e,t);case">":return 0>eC(e,t);case">=":return eF(e,t)||0>eC(e,t);case"<":return eC(e,t)>0;case"<=":return eF(e,t)||eC(e,t)>0;case void 0:return!0;default:return!1}}function ej(e){return ev(ew,eA,eO,ek)(e)}function ex(e){return ev(eN,e$,eM,eT)(e.trim()).split(/\s+/).join(" ")}function eV(e,t){if(!e)return!1;let r=eR(e);if(!r)return!1;let[,n,,o,i,a,s]=r,l={operator:n,version:eI(o,i,a,s),major:o,minor:i,patch:a,preRelease:null==s?void 0:s.split(".")};for(let e of t.split("||")){let t=e.trim();if(!t||"*"===t||"x"===t)return!0;try{let e=ex(t);if(!e.trim())return!0;let r=e.split(" ").map(e=>ej(e)).join(" ");if(!r.trim())return!0;let n=r.split(/\s+/).map(e=>eP(e)).filter(Boolean);if(0===n.length)continue;let o=!0;for(let e of n){let t=eR(e);if(!t){o=!1;break}let[,r,,n,i,a,s]=t,c={operator:r,version:eI(n,i,a,s),major:n,minor:i,patch:a,preRelease:null==s?void 0:s.split(".")};if(!eH(c,l)){o=!1;break}}if(o)return!0}catch(e){console.error(`[semver] Error processing range part "${t}":`,e);continue}}return!1}function eU(e,t,r,n){let o;return o="get"in e?e.get:"lib"in e?()=>Promise.resolve(e.lib):()=>Promise.resolve(()=>{throw Error(`Can not get shared '${r}'!`)}),{deps:[],useIn:[],from:t,loading:null,...e,shareConfig:{requiredVersion:`^${e.version}`,singleton:!1,eager:!1,strictVersion:!1,...e.shareConfig},get:o,loaded:null!=e&&!!e.loaded||"lib"in e||void 0,version:e.version??"0",scope:Array.isArray(e.scope)?e.scope:[e.scope??"default"],strategy:(e.strategy??n)||"version-first"}}function eG(e,t){let r=t.shared||{},n=t.name,o=Object.keys(r).reduce((e,o)=>{let i=E(r[o]);return e[o]=e[o]||[],i.forEach(r=>{e[o].push(eU(r,n,o,t.shareStrategy))}),e},{}),i={...e.shared};return Object.keys(o).forEach(e=>{i[e]?o[e].forEach(t=>{i[e].find(e=>e.version===t.version)||i[e].push(t)}):i[e]=o[e]}),{shared:i,shareInfos:o}}function eq(e,t){let r=e=>{if(!Number.isNaN(Number(e))){let t=e.split("."),r=e;for(let e=0;e<3-t.length;e++)r+=".0";return r}return e};return!!eV(r(e),`<=${r(t)}`)}let eB=(e,t)=>{let r=t||function(e,t){return eq(e,t)};return Object.keys(e).reduce((e,t)=>!e||r(e,t)||"0"===e?t:e,0)},eK=e=>!!e.loaded||"function"==typeof e.lib,eW=e=>!!e.loading;function ez(e,t,r){let n=e[t][r],o=function(e,t){return!eK(n[e])&&eq(e,t)};return eB(e[t][r],o)}function eY(e,t,r){let n=e[t][r],o=function(e,t){let r=e=>eK(e)||eW(e);if(r(n[t]))if(r(n[e]))return!!eq(e,t);else return!0;return!r(n[e])&&eq(e,t)};return eB(e[t][r],o)}function eX(e){return"loaded-first"===e?eY:ez}function eJ(e,t,r,n){if(!e)return;let{shareConfig:o,scope:i=q,strategy:a}=r;for(let s of Array.isArray(i)?i:[i])if(o&&e[s]&&e[s][t]){let{requiredVersion:i}=o,u=eX(a)(e,s,t),f=()=>{if(o.singleton){if("string"==typeof i&&!eV(u,i)){let n=`Version ${u} from ${u&&e[s][t][u].from} of shared singleton module ${t} does not satisfy the requirement of ${r.from} which needs ${i})`;o.strictVersion?l(n):c(n)}return e[s][t][u]}if(!1===i||"*"===i||eV(u,i))return e[s][t][u];for(let[r,n]of Object.entries(e[s][t]))if(eV(r,i))return n},h={shareScopeMap:e,scope:s,pkgName:t,version:u,GlobalFederation:I.__FEDERATION__,resolver:f};return(n.emit(h)||h).resolver()}}function eZ(){return I.__FEDERATION__.__SHARE__}function eQ(e){let{pkgName:t,extraOptions:r,shareInfos:n}=e,o=e=>{if(!e)return;let t={};e.forEach(e=>{t[e.version]=e});let r=function(e,r){return!eK(t[e])&&eq(e,r)},n=eB(t,r);return t[n]};return Object.assign({},((null==r?void 0:r.resolver)??o)(n[t]),null==r?void 0:r.customShareInfo)}function e0(){return"StatusHistoryChart:0.12.1"}function e1(e,t){for(let r of e){let e=t.startsWith(r.name),n=t.replace(r.name,"");if(e){if(n.startsWith("/"))return{pkgNameOrAlias:r.name,expose:n=`.${n}`,remote:r};else if(""===n)return{pkgNameOrAlias:r.name,expose:".",remote:r}}let o=r.alias&&t.startsWith(r.alias),i=r.alias&&t.replace(r.alias,"");if(r.alias&&o){if(i&&i.startsWith("/"))return{pkgNameOrAlias:r.alias,expose:i=`.${i}`,remote:r};else if(""===i)return{pkgNameOrAlias:r.alias,expose:".",remote:r}}}}function e2(e,t){for(let r of e)if(t===r.name||r.alias&&t===r.alias)return r}function e3(e,t){let r=V(),n=[t.hooks,t.remoteHandler.hooks,t.sharedHandler.hooks,t.snapshotHandler.hooks,t.loaderHook,t.bridgeHook];return r.length>0&&r.forEach(t=>{(null==e?void 0:e.find(e=>e.name!==t.name))&&e.push(t)}),e&&e.length>0&&e.forEach(e=>{n.forEach(r=>{r.applyPlugin(e,t)})}),e}let e4=".then(callbacks[0]).catch(callbacks[1])";async function e5(e){let{entry:t,remoteEntryExports:r}=e;return new Promise((e,n)=>{try{r?e(r):"undefined"!=typeof FEDERATION_ALLOW_NEW_FUNCTION?Function("callbacks",`import("${t}")${e4}`)([e,n]):import(t).then(e).catch(n)}catch(e){n(e)}})}async function e9(e){let{entry:t,remoteEntryExports:r}=e;return new Promise((e,n)=>{try{r?e(r):Function("callbacks",`System.import("${t}")${e4}`)([e,n])}catch(e){n(e)}})}function e6(e,t,r){let{remoteEntryKey:n,entryExports:i}=j(e,t);return s(i,o.getShortErrorMsg(o.RUNTIME_001,o.runtimeDescMap,{remoteName:e,remoteEntryUrl:r,remoteEntryKey:n})),i}async function e8(e){let{name:t,globalName:r,entry:i,loaderHook:a,getEntryUrl:l}=e,{entryExports:c}=j(t,r);if(c)return c;let u=l?l(i):i;return n.loadScript(u,{attrs:{},createScriptHook:(e,t)=>{let r=a.lifecycle.createScript.emit({url:e,attrs:t});if(r&&(r instanceof HTMLScriptElement||"script"in r||"timeout"in r))return r}}).then(()=>e6(t,r,i)).catch(e=>{throw s(void 0,o.getShortErrorMsg(o.RUNTIME_008,o.runtimeDescMap,{remoteName:t,resourceUrl:i})),e})}async function e7(e){let{remoteInfo:t,remoteEntryExports:r,loaderHook:n,getEntryUrl:o}=e,{entry:i,entryGlobalName:a,name:s,type:l}=t;switch(l){case"esm":case"module":return e5({entry:i,remoteEntryExports:r});case"system":return e9({entry:i,remoteEntryExports:r});default:return e8({entry:i,globalName:a,name:s,loaderHook:n,getEntryUrl:o})}}async function te(e){let{remoteInfo:t,loaderHook:r}=e,{entry:o,entryGlobalName:i,name:a,type:s}=t,{entryExports:l}=j(a,i);return l||n.loadScriptNode(o,{attrs:{name:a,globalName:i,type:s},loaderHook:{createScriptHook:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.lifecycle.createScript.emit({url:e,attrs:t});if(n&&"url"in n)return n}}}).then(()=>e6(a,i,o)).catch(e=>{throw e})}function tt(e){let{entry:t,name:r}=e;return n.composeKeyWithSeparator(r,t)}async function tr(e){let{origin:t,remoteEntryExports:r,remoteInfo:i,getEntryUrl:a,_inErrorHandling:s=!1}=e,l=tt(i);if(r)return r;if(!M[l]){let e=t.remoteHandler.hooks.lifecycle.loadEntry,c=t.loaderHook;M[l]=e.emit({loaderHook:c,remoteInfo:i,remoteEntryExports:r}).then(e=>e||(("undefined"!=typeof ENV_TARGET?"web"===ENV_TARGET:n.isBrowserEnv())?e7({remoteInfo:i,remoteEntryExports:r,loaderHook:c,getEntryUrl:a}):te({remoteInfo:i,loaderHook:c}))).catch(async e=>{let n=tt(i);if(e instanceof Error&&e.message.includes(o.RUNTIME_008)&&!s){let e=e=>tr({...e,_inErrorHandling:!0}),o=await t.loaderHook.lifecycle.loadEntryError.emit({getRemoteEntry:e,origin:t,remoteInfo:i,remoteEntryExports:r,globalLoading:M,uniqueKey:n});if(o)return o}throw e})}return M[l]}function tn(e){return{...e,entry:"entry"in e?e.entry:"",type:e.type||B,entryGlobalName:e.entryGlobalName||e.name,shareScope:e.shareScope||q}}function to(e){return{resourceCategory:"sync",share:!0,depsRemote:!0,prefetchInterface:!1,...e}}function ti(e,t){return t.map(t=>{let r=e2(e,t.nameOrAlias);return s(r,`Unable to preload ${t.nameOrAlias} as it is not included in ${!r&&n.safeToString({remoteInfo:r,remotes:e})}`),{remote:r,preloadConfig:to(t)}})}function ta(e){return e?e.map(e=>"."===e?e:e.startsWith("./")?e.replace("./",""):e):[]}function ts(e,t,r){let o=!(arguments.length>3)||void 0===arguments[3]||arguments[3],{cssAssets:i,jsAssetsWithoutEntry:a,entryAssets:s}=r;if(t.options.inBrowser){if(s.forEach(r=>{let{moduleInfo:n}=r,o=t.moduleCache.get(e.name);o?tr({origin:t,remoteInfo:n,remoteEntryExports:o.remoteEntryExports}):tr({origin:t,remoteInfo:n,remoteEntryExports:void 0})}),o){let e={rel:"preload",as:"style"};i.forEach(r=>{let{link:o,needAttach:i}=n.createLink({url:r,cb:()=>{},attrs:e,createLinkHook:(e,r)=>{let n=t.loaderHook.lifecycle.createLink.emit({url:e,attrs:r});if(n instanceof HTMLLinkElement)return n}});i&&document.head.appendChild(o)})}else{let e={rel:"stylesheet",type:"text/css"};i.forEach(r=>{let{link:o,needAttach:i}=n.createLink({url:r,cb:()=>{},attrs:e,createLinkHook:(e,r)=>{let n=t.loaderHook.lifecycle.createLink.emit({url:e,attrs:r});if(n instanceof HTMLLinkElement)return n},needDeleteLink:!1});i&&document.head.appendChild(o)})}if(o){let e={rel:"preload",as:"script"};a.forEach(r=>{let{link:o,needAttach:i}=n.createLink({url:r,cb:()=>{},attrs:e,createLinkHook:(e,r)=>{let n=t.loaderHook.lifecycle.createLink.emit({url:e,attrs:r});if(n instanceof HTMLLinkElement)return n}});i&&document.head.appendChild(o)})}else{let r={fetchpriority:"high",type:(null==e?void 0:e.type)==="module"?"module":"text/javascript"};a.forEach(e=>{let{script:o,needAttach:i}=n.createScript({url:e,cb:()=>{},attrs:r,createScriptHook:(e,r)=>{let n=t.loaderHook.lifecycle.createScript.emit({url:e,attrs:r});if(n instanceof HTMLScriptElement)return n},needDeleteScript:!0});i&&document.head.appendChild(o)})}}}var tl={global:{Global:I,nativeGlobal:R,resetFederationGlobalInfo:w,setGlobalFederationInstance:A,getGlobalFederationConstructor:O,setGlobalFederationConstructor:k,getInfoWithoutType:P,getGlobalSnapshot:D,getTargetSnapshotInfoByModuleInfo:L,getGlobalSnapshotInfoByModuleInfo:C,setGlobalSnapshotInfoByModuleInfo:F,addGlobalSnapshot:H,getRemoteEntryExports:j,registerGlobalPlugins:x,getGlobalHostPlugins:V,getPreloaded:U,setPreloaded:G},share:{getRegisteredShare:eJ,getGlobalShareScope:eZ},utils:{matchRemoteWithNameAndExpose:e1,preloadAssets:ts,getRemoteInfo:tn}};class tc{async getEntry(){let e;return this.remoteEntryExports||(s(e=await tr({origin:this.host,remoteInfo:this.remoteInfo,remoteEntryExports:this.remoteEntryExports}),`remoteEntryExports is undefined
3
- ${n.safeToString(this.remoteInfo)}`),this.remoteEntryExports=e),this.remoteEntryExports}async get(e,t,r,n){let i,{loadFactory:a=!0}=r||{loadFactory:!0},c=await this.getEntry();if(!this.inited){let t=this.host.shareScopeMap,r=Array.isArray(this.remoteInfo.shareScope)?this.remoteInfo.shareScope:[this.remoteInfo.shareScope];r.length||r.push("default"),r.forEach(e=>{t[e]||(t[e]={})});let i=t[r[0]],a=[],s={version:this.remoteInfo.version||"",shareScopeKeys:Array.isArray(this.remoteInfo.shareScope)?r:this.remoteInfo.shareScope||"default"};Object.defineProperty(s,"shareScopeMap",{value:t,enumerable:!1});let u=await this.host.hooks.lifecycle.beforeInitContainer.emit({shareScope:i,remoteEntryInitOptions:s,initScope:a,remoteInfo:this.remoteInfo,origin:this.host});void 0===(null==c?void 0:c.init)&&l(o.getShortErrorMsg(o.RUNTIME_002,o.runtimeDescMap,{hostName:this.host.name,remoteName:this.remoteInfo.name,remoteEntryUrl:this.remoteInfo.entry,remoteEntryKey:this.remoteInfo.entryGlobalName})),await c.init(u.shareScope,u.initScope,u.remoteEntryInitOptions),await this.host.hooks.lifecycle.initContainer.emit({...u,id:e,remoteSnapshot:n,remoteEntryExports:c})}this.lib=c,this.inited=!0,(i=await this.host.loaderHook.lifecycle.getModuleFactory.emit({remoteEntryExports:c,expose:t,moduleInfo:this.remoteInfo}))||(i=await c.get(t)),s(i,`${f(this.remoteInfo)} remote don't export ${t}.`);let u=S(this.remoteInfo.name,t),h=this.wraperFactory(i,u);return a?await h():h}wraperFactory(e,t){function r(e,t){e&&"object"==typeof e&&Object.isExtensible(e)&&!Object.getOwnPropertyDescriptor(e,Symbol.for("mf_module_id"))&&Object.defineProperty(e,Symbol.for("mf_module_id"),{value:t,enumerable:!1})}return e instanceof Promise?async()=>{let n=await e();return r(n,t),n}:()=>{let n=e();return r(n,t),n}}constructor({remoteInfo:e,host:t}){this.inited=!1,this.lib=void 0,this.remoteInfo=e,this.host=t}}class tu{on(e){"function"==typeof e&&this.listeners.add(e)}once(e){let t=this;this.on(function r(){for(var n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];return t.remove(r),e.apply(null,o)})}emit(){let e;for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.listeners.size>0&&this.listeners.forEach(t=>{e=t(...r)}),e}remove(e){this.listeners.delete(e)}removeAll(){this.listeners.clear()}constructor(e){this.type="",this.listeners=new Set,e&&(this.type=e)}}class tf extends tu{emit(){let e;for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];let o=Array.from(this.listeners);if(o.length>0){let t=0,n=e=>!1!==e&&(t<o.length?Promise.resolve(o[t++].apply(null,r)).then(n):e);e=n()}return Promise.resolve(e)}}function th(e,t){if(!m(t))return!1;if(e!==t){for(let r in e)if(!(r in t))return!1}return!0}class td extends tu{emit(e){for(let t of(m(e)||l(`The data for the "${this.type}" hook should be an object.`),this.listeners))try{let r=t(e);if(th(e,r))e=r;else{this.onerror(`A plugin returned an unacceptable value for the "${this.type}" type.`);break}}catch(e){c(e),this.onerror(e)}return e}constructor(e){super(),this.onerror=l,this.type=e}}class tp extends tu{emit(e){m(e)||l(`The response data for the "${this.type}" hook must be an object.`);let t=Array.from(this.listeners);if(t.length>0){let r=0,n=t=>(c(t),this.onerror(t),e),o=i=>{if(th(e,i)){if(e=i,r<t.length)try{return Promise.resolve(t[r++](e)).then(o,n)}catch(e){return n(e)}}else this.onerror(`A plugin returned an incorrect value for the "${this.type}" type.`);return e};return Promise.resolve(o(e))}return Promise.resolve(e)}constructor(e){super(),this.onerror=l,this.type=e}}class tm{applyPlugin(e,t){s(y(e),"Plugin configuration is invalid.");let r=e.name;if(s(r,"A name must be provided by the plugin."),!this.registerPlugins[r]){var n;this.registerPlugins[r]=e,null==(n=e.apply)||n.call(e,t),Object.keys(this.lifecycle).forEach(t=>{let r=e[t];r&&this.lifecycle[t].on(r)})}}removePlugin(e){s(e,"A name is required.");let t=this.registerPlugins[e];s(t,`The plugin "${e}" is not registered.`),Object.keys(t).forEach(e=>{"name"!==e&&this.lifecycle[e].remove(t[e])})}constructor(e){this.registerPlugins={},this.lifecycle=e,this.lifecycleKeys=Object.keys(e)}}function tg(e,t){let r=b(t);r.url||l(`The attribute remoteEntry of ${e.name} must not be undefined.`);let o=n.getResourceUrl(t,r.url);n.isBrowserEnv()||o.startsWith("http")||(o=`https:${o}`),e.type=r.type,e.entryGlobalName=r.globalName,e.entry=o,e.version=t.version,e.buildVersion=t.buildVersion}function ty(){return{name:"snapshot-plugin",async afterResolve(e){let{remote:t,pkgNameOrAlias:r,expose:n,origin:o,remoteInfo:i,id:a}=e;if(!h(t)||!d(t)){let{remoteSnapshot:s,globalSnapshot:l}=await o.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:t,id:a});tg(i,s);let c={remote:t,preloadConfig:{nameOrAlias:r,exposes:[n],resourceCategory:"sync",share:!1,depsRemote:!1}},u=await o.remoteHandler.hooks.lifecycle.generatePreloadAssets.emit({origin:o,preloadOptions:c,remoteInfo:i,remote:t,remoteSnapshot:s,globalSnapshot:l});return u&&ts(i,o,u,!1),{...e,remoteSnapshot:s}}return e}}}function t_(e){let t=e.split(":");return 1===t.length?{name:t[0],version:void 0}:2===t.length?{name:t[0],version:t[1]}:{name:t[1],version:t[2]}}function tE(e,t,r,o){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=arguments.length>5?arguments[5]:void 0,{value:s}=P(e,f(t)),l=a||s;if(l&&!n.isManifestProvider(l)&&(r(l,t,o),l.remotesInfo))for(let t of Object.keys(l.remotesInfo)){if(i[t])continue;i[t]=!0;let n=t_(t),o=l.remotesInfo[t];tE(e,{name:n.name,version:o.matchedVersion},r,!1,i,void 0)}}let tb=(e,t)=>document.querySelector(`${e}[${"link"===e?"href":"src"}="${t}"]`);function tS(e,t,r,o,i){let a=[],s=[],l=[],c=new Set,u=new Set,{options:f}=e,{preloadConfig:h}=t,{depsRemote:d}=h;if(tE(o,r,(t,r,o)=>{let i;if(o)i=h;else if(Array.isArray(d)){let e=d.find(e=>e.nameOrAlias===r.name||e.nameOrAlias===r.alias);if(!e)return;i=to(e)}else{if(!0!==d)return;i=h}let c=n.getResourceUrl(t,b(t).url);c&&l.push({name:r.name,moduleInfo:{name:r.name,entry:c,type:"remoteEntryType"in t?t.remoteEntryType:"global",entryGlobalName:"globalName"in t?t.globalName:r.name,shareScope:"",version:"version"in t?t.version:void 0},url:c});let u="modules"in t?t.modules:[],f=ta(i.exposes);if(f.length&&"modules"in t){var p;u=null==t||null==(p=t.modules)?void 0:p.reduce((e,t)=>((null==f?void 0:f.indexOf(t.moduleName))!==-1&&e.push(t),e),[])}function m(e){let r=e.map(e=>n.getResourceUrl(t,e));return i.filter?r.filter(i.filter):r}if(u){let n=u.length;for(let o=0;o<n;o++){let n=u[o],l=`${r.name}/${n.moduleName}`;e.remoteHandler.hooks.lifecycle.handlePreloadModule.emit({id:"."===n.moduleName?r.name:l,name:r.name,remoteSnapshot:t,preloadConfig:i,remote:r,origin:e}),U(l)||("all"===i.resourceCategory?(a.push(...m(n.assets.css.async)),a.push(...m(n.assets.css.sync)),s.push(...m(n.assets.js.async))):(i.resourceCategory="sync",a.push(...m(n.assets.css.sync))),s.push(...m(n.assets.js.sync)),G(l))}}},!0,{},i),i.shared&&i.shared.length>0){let t=(t,r)=>{let n=eJ(e.shareScopeMap,r.sharedName,t,e.sharedHandler.hooks.lifecycle.resolveShare);n&&"function"==typeof n.lib&&(r.assets.js.sync.forEach(e=>{c.add(e)}),r.assets.css.sync.forEach(e=>{u.add(e)}))};i.shared.forEach(e=>{var r;let n=null==(r=f.shared)?void 0:r[e.sharedName];if(!n)return;let o=e.version?n.find(t=>t.version===e.version):n;o&&E(o).forEach(r=>{t(r,e)})})}let p=s.filter(e=>!c.has(e)&&!tb("script",e));return{cssAssets:a.filter(e=>!u.has(e)&&!tb("link",e)),jsAssetsWithoutEntry:p,entryAssets:l.filter(e=>!tb("script",e.url))}}let tv=function(){return{name:"generate-preload-assets-plugin",async generatePreloadAssets(e){let{origin:t,preloadOptions:r,remoteInfo:o,remote:i,globalSnapshot:a,remoteSnapshot:s}=e;return n.isBrowserEnv()?h(i)&&d(i)?{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[{name:i.name,url:i.entry,moduleInfo:{name:o.name,entry:i.entry,type:o.type||"global",entryGlobalName:"",shareScope:""}}]}:(tg(o,s),tS(t,r,o,a,s)):{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[]}}}};function tR(e,t){let r=C({name:t.name,version:t.options.version}),n=r&&"remotesInfo"in r&&r.remotesInfo&&P(r.remotesInfo,e.name).value;return n&&n.matchedVersion?{hostGlobalSnapshot:r,globalSnapshot:D(),remoteSnapshot:C({name:e.name,version:n.matchedVersion})}:{hostGlobalSnapshot:void 0,globalSnapshot:D(),remoteSnapshot:C({name:e.name,version:"version"in e?e.version:void 0})}}class tI{async loadRemoteSnapshotInfo(e){let t,r,{moduleInfo:i,id:a,expose:s}=e,{options:c}=this.HostInstance;await this.hooks.lifecycle.beforeLoadRemoteSnapshot.emit({options:c,moduleInfo:i});let u=C({name:this.HostInstance.options.name,version:this.HostInstance.options.version});u||(u={version:this.HostInstance.options.version||"",remoteEntry:"",remotesInfo:{}},H({[this.HostInstance.options.name]:u})),u&&"remotesInfo"in u&&!P(u.remotesInfo,i.name).value&&("version"in i||"entry"in i)&&(u.remotesInfo={...null==u?void 0:u.remotesInfo,[i.name]:{matchedVersion:"version"in i?i.version:i.entry}});let{hostGlobalSnapshot:f,remoteSnapshot:d,globalSnapshot:p}=this.getGlobalRemoteInfo(i),{remoteSnapshot:m,globalSnapshot:g}=await this.hooks.lifecycle.loadSnapshot.emit({options:c,moduleInfo:i,hostGlobalSnapshot:f,remoteSnapshot:d,globalSnapshot:p});if(m)if(n.isManifestProvider(m)){let e=n.isBrowserEnv()?m.remoteEntry:m.ssrRemoteEntry||m.remoteEntry||"",o=await this.getManifestJson(e,i,{}),a=F({...i,entry:e},o);t=o,r=a}else{let{remoteSnapshot:e}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:i,remoteSnapshot:m,from:"global"});t=e,r=g}else if(h(i)){let e=await this.getManifestJson(i.entry,i,{}),n=F(i,e),{remoteSnapshot:o}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:i,remoteSnapshot:e,from:"global"});t=o,r=n}else l(o.getShortErrorMsg(o.RUNTIME_007,o.runtimeDescMap,{hostName:i.name,hostVersion:i.version,globalSnapshot:JSON.stringify(g)}));return await this.hooks.lifecycle.afterLoadSnapshot.emit({id:a,host:this.HostInstance,options:c,moduleInfo:i,remoteSnapshot:t}),{remoteSnapshot:t,globalSnapshot:r}}getGlobalRemoteInfo(e){return tR(e,this.HostInstance)}async getManifestJson(e,t,r){let i=async()=>{let r=this.manifestCache.get(e);if(r)return r;try{let t=await this.loaderHook.lifecycle.fetch.emit(e,{});t&&t instanceof Response||(t=await fetch(e,{})),r=await t.json()}catch(n){(r=await this.HostInstance.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:e,error:n,from:"runtime",lifecycle:"afterResolve",origin:this.HostInstance}))||(delete this.manifestLoading[e],l(o.getShortErrorMsg(o.RUNTIME_003,o.runtimeDescMap,{manifestUrl:e,moduleName:t.name,hostName:this.HostInstance.options.name},`${n}`)))}return s(r.metaData&&r.exposes&&r.shared,`${e} is not a federation manifest`),this.manifestCache.set(e,r),r},a=async()=>{let r=await i(),o=n.generateSnapshotFromManifest(r,{version:e}),{remoteSnapshot:a}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:t,manifestJson:r,remoteSnapshot:o,manifestUrl:e,from:"manifest"});return a};return this.manifestLoading[e]||(this.manifestLoading[e]=a().then(e=>e)),this.manifestLoading[e]}constructor(e){this.loadingHostSnapshot=null,this.manifestCache=new Map,this.hooks=new tm({beforeLoadRemoteSnapshot:new tf("beforeLoadRemoteSnapshot"),loadSnapshot:new tp("loadGlobalSnapshot"),loadRemoteSnapshot:new tp("loadRemoteSnapshot"),afterLoadSnapshot:new tp("afterLoadSnapshot")}),this.manifestLoading=I.__FEDERATION__.__MANIFEST_LOADING__,this.HostInstance=e,this.loaderHook=e.loaderHook}}class tN{registerShared(e,t){let{shareInfos:r,shared:n}=eG(e,t);return Object.keys(r).forEach(e=>{r[e].forEach(r=>{r.scope.forEach(n=>{var o;(null==(o=this.shareScopeMap[n])?void 0:o[e])||this.setShared({pkgName:e,lib:r.lib,get:r.get,loaded:r.loaded||!!r.lib,shared:r,from:t.name})})})}),{shareInfos:r,shared:n}}async loadShare(e,t){let{host:r}=this,n=eQ({pkgName:e,extraOptions:t,shareInfos:r.options.shared});(null==n?void 0:n.scope)&&await Promise.all(n.scope.map(async e=>{await Promise.all(this.initializeSharing(e,{strategy:n.strategy}))}));let{shareInfo:o}=await this.hooks.lifecycle.beforeLoadShare.emit({pkgName:e,shareInfo:n,shared:r.options.shared,origin:r});s(o,`Cannot find ${e} Share in the ${r.options.name}. Please ensure that the ${e} Share parameters have been injected`);let i=eJ(this.shareScopeMap,e,o,this.hooks.lifecycle.resolveShare),a=e=>{e.useIn||(e.useIn=[]),u(e.useIn,r.options.name)};if(i&&i.lib)return a(i),i.lib;if(i&&i.loading&&!i.loaded){let e=await i.loading;return i.loaded=!0,i.lib||(i.lib=e),a(i),e}if(i){let t=(async()=>{let e=await i.get();return a(i),i.loaded=!0,i.lib=e,e})();return this.setShared({pkgName:e,loaded:!1,shared:i,from:r.options.name,lib:null,loading:t}),t}{if(null==t?void 0:t.customShareInfo)return!1;let n=(async()=>{let t=await o.get();o.lib=t,o.loaded=!0,a(o);let r=eJ(this.shareScopeMap,e,o,this.hooks.lifecycle.resolveShare);return r&&(r.lib=t,r.loaded=!0,r.from=o.from),t})();return this.setShared({pkgName:e,loaded:!1,shared:o,from:r.options.name,lib:null,loading:n}),n}}initializeSharing(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:q,t=arguments.length>1?arguments[1]:void 0,{host:r}=this,n=null==t?void 0:t.from,o=null==t?void 0:t.strategy,i=null==t?void 0:t.initScope,a=[];if("build"!==n){let{initTokens:t}=this;i||(i=[]);let r=t[e];if(r||(r=t[e]={from:this.host.name}),i.indexOf(r)>=0)return a;i.push(r)}let s=this.shareScopeMap,l=r.options.name;s[e]||(s[e]={});let c=s[e],u=(e,t)=>{var r;let{version:n,eager:o}=t;c[e]=c[e]||{};let i=c[e],a=i[n],s=!!(a&&(a.eager||(null==(r=a.shareConfig)?void 0:r.eager)));(!a||"loaded-first"!==a.strategy&&!a.loaded&&(!o!=!s?o:l>a.from))&&(i[n]=t)},f=t=>t&&t.init&&t.init(s[e],i),h=async e=>{let{module:t}=await r.remoteHandler.getRemoteModuleAndOptions({id:e});if(t.getEntry){let n;try{n=await t.getEntry()}catch(t){n=await r.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:e,error:t,from:"runtime",lifecycle:"beforeLoadShare",origin:r})}t.inited||(await f(n),t.inited=!0)}};return Object.keys(r.options.shared).forEach(t=>{r.options.shared[t].forEach(r=>{r.scope.includes(e)&&u(t,r)})}),("version-first"===r.options.shareStrategy||"version-first"===o)&&r.options.remotes.forEach(t=>{t.shareScope===e&&a.push(h(t.name))}),a}loadShareSync(e,t){let{host:r}=this,n=eQ({pkgName:e,extraOptions:t,shareInfos:r.options.shared});(null==n?void 0:n.scope)&&n.scope.forEach(e=>{this.initializeSharing(e,{strategy:n.strategy})});let i=eJ(this.shareScopeMap,e,n,this.hooks.lifecycle.resolveShare),a=e=>{e.useIn||(e.useIn=[]),u(e.useIn,r.options.name)};if(i){if("function"==typeof i.lib)return a(i),i.loaded||(i.loaded=!0,i.from===r.options.name&&(n.loaded=!0)),i.lib;if("function"==typeof i.get){let t=i.get();if(!(t instanceof Promise))return a(i),this.setShared({pkgName:e,loaded:!0,from:r.options.name,lib:t,shared:i}),t}}if(n.lib)return n.loaded||(n.loaded=!0),n.lib;if(n.get){let i=n.get();if(i instanceof Promise){let n=(null==t?void 0:t.from)==="build"?o.RUNTIME_005:o.RUNTIME_006;throw Error(o.getShortErrorMsg(n,o.runtimeDescMap,{hostName:r.options.name,sharedPkgName:e}))}return n.lib=i,this.setShared({pkgName:e,loaded:!0,from:r.options.name,lib:n.lib,shared:n}),n.lib}throw Error(o.getShortErrorMsg(o.RUNTIME_006,o.runtimeDescMap,{hostName:r.options.name,sharedPkgName:e}))}initShareScopeMap(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{host:n}=this;this.shareScopeMap[e]=t,this.hooks.lifecycle.initContainerShareScopeMap.emit({shareScope:t,options:n.options,origin:n,scopeName:e,hostShareScopeMap:r.hostShareScopeMap})}setShared(e){let{pkgName:t,shared:r,from:n,lib:o,loading:i,loaded:a,get:s}=e,{version:l,scope:c="default",...u}=r;(Array.isArray(c)?c:[c]).forEach(e=>{if(this.shareScopeMap[e]||(this.shareScopeMap[e]={}),this.shareScopeMap[e][t]||(this.shareScopeMap[e][t]={}),!this.shareScopeMap[e][t][l]){this.shareScopeMap[e][t][l]={version:l,scope:[e],...u,lib:o,loaded:a,loading:i},s&&(this.shareScopeMap[e][t][l].get=s);return}let r=this.shareScopeMap[e][t][l];i&&!r.loading&&(r.loading=i),a&&!r.loaded&&(r.loaded=a),n&&r.from!==n&&(r.from=n)})}_setGlobalShareScopeMap(e){let t=eZ(),r=e.id||e.name;r&&!t[r]&&(t[r]=this.shareScopeMap)}constructor(e){this.hooks=new tm({afterResolve:new tp("afterResolve"),beforeLoadShare:new tp("beforeLoadShare"),loadShare:new tf,resolveShare:new td("resolveShare"),initContainerShareScopeMap:new td("initContainerShareScopeMap")}),this.host=e,this.shareScopeMap={},this.initTokens={},this._setGlobalShareScopeMap(e.options)}}class t${formatAndRegisterRemote(e,t){return(t.remotes||[]).reduce((e,t)=>(this.registerRemote(t,e,{force:!1}),e),e.remotes)}setIdToRemoteMap(e,t){let{remote:r,expose:n}=t,{name:o,alias:i}=r;if(this.idToRemoteMap[e]={name:r.name,expose:n},i&&e.startsWith(o)){let t=e.replace(o,i);this.idToRemoteMap[t]={name:r.name,expose:n};return}if(i&&e.startsWith(i)){let t=e.replace(i,o);this.idToRemoteMap[t]={name:r.name,expose:n}}}async loadRemote(e,t){let{host:r}=this;try{let{loadFactory:n=!0}=t||{loadFactory:!0},{module:o,moduleOptions:i,remoteMatchInfo:a}=await this.getRemoteModuleAndOptions({id:e}),{pkgNameOrAlias:s,remote:l,expose:c,id:u,remoteSnapshot:f}=a,h=await o.get(u,c,t,f),d=await this.hooks.lifecycle.onLoad.emit({id:u,pkgNameOrAlias:s,expose:c,exposeModule:n?h:void 0,exposeModuleFactory:n?void 0:h,remote:l,options:i,moduleInstance:o,origin:r});if(this.setIdToRemoteMap(e,a),"function"==typeof d)return d;return h}catch(i){let{from:n="runtime"}=t||{from:"runtime"},o=await this.hooks.lifecycle.errorLoadRemote.emit({id:e,error:i,from:n,lifecycle:"onLoad",origin:r});if(!o)throw i;return o}}async preloadRemote(e){let{host:t}=this;await this.hooks.lifecycle.beforePreloadRemote.emit({preloadOps:e,options:t.options,origin:t});let r=ti(t.options.remotes,e);await Promise.all(r.map(async e=>{let{remote:r}=e,n=tn(r),{globalSnapshot:o,remoteSnapshot:i}=await t.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:r}),a=await this.hooks.lifecycle.generatePreloadAssets.emit({origin:t,preloadOptions:e,remote:r,remoteInfo:n,globalSnapshot:o,remoteSnapshot:i});a&&ts(n,t,a)}))}registerRemotes(e,t){let{host:r}=this;e.forEach(e=>{this.registerRemote(e,r.options.remotes,{force:null==t?void 0:t.force})})}async getRemoteModuleAndOptions(e){let t,{host:r}=this,{id:n}=e;try{t=await this.hooks.lifecycle.beforeRequest.emit({id:n,options:r.options,origin:r})}catch(e){if(!(t=await this.hooks.lifecycle.errorLoadRemote.emit({id:n,options:r.options,origin:r,from:"runtime",error:e,lifecycle:"beforeRequest"})))throw e}let{id:i}=t,a=e1(r.options.remotes,i);s(a,o.getShortErrorMsg(o.RUNTIME_004,o.runtimeDescMap,{hostName:r.options.name,requestId:i}));let{remote:l}=a,c=tn(l),u=await r.sharedHandler.hooks.lifecycle.afterResolve.emit({id:i,...a,options:r.options,origin:r,remoteInfo:c}),{remote:f,expose:h}=u;s(f&&h,`The 'beforeRequest' hook was executed, but it failed to return the correct 'remote' and 'expose' values while loading ${i}.`);let d=r.moduleCache.get(f.name),p={host:r,remoteInfo:c};return d||(d=new tc(p),r.moduleCache.set(f.name,d)),{module:d,moduleOptions:p,remoteMatchInfo:u}}registerRemote(e,t,r){let{host:o}=this,i=()=>{if(e.alias){let r=t.find(t=>{var r;return e.alias&&(t.name.startsWith(e.alias)||(null==(r=t.alias)?void 0:r.startsWith(e.alias)))});s(!r,`The alias ${e.alias} of remote ${e.name} is not allowed to be the prefix of ${r&&r.name} name or alias`)}"entry"in e&&n.isBrowserEnv()&&!e.entry.startsWith("http")&&(e.entry=new URL(e.entry,window.location.origin).href),e.shareScope||(e.shareScope=q),e.type||(e.type=B)};this.hooks.lifecycle.beforeRegisterRemote.emit({remote:e,origin:o});let a=t.find(t=>t.name===e.name);if(a){let s=[`The remote "${e.name}" is already registered.`,"Please note that overriding it may cause unexpected errors."];(null==r?void 0:r.force)&&(this.removeRemote(a),i(),t.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:o}),n.warn(s.join(" ")))}else i(),t.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:o})}removeRemote(e){try{let{host:r}=this,{name:o}=e,i=r.options.remotes.findIndex(e=>e.name===o);-1!==i&&r.options.remotes.splice(i,1);let a=r.moduleCache.get(e.name);if(a){let o=a.remoteInfo,i=o.entryGlobalName;if(v[i]){var t;(null==(t=Object.getOwnPropertyDescriptor(v,i))?void 0:t.configurable)?delete v[i]:v[i]=void 0}let s=tt(a.remoteInfo);M[s]&&delete M[s],r.snapshotHandler.manifestCache.delete(o.entry);let l=o.buildVersion?n.composeKeyWithSeparator(o.name,o.buildVersion):o.name,c=v.__FEDERATION__.__INSTANCES__.findIndex(e=>o.buildVersion?e.options.id===l:e.name===l);if(-1!==c){let e=v.__FEDERATION__.__INSTANCES__[c];l=e.options.id||l;let t=eZ(),r=!0,n=[];Object.keys(t).forEach(e=>{let i=t[e];i&&Object.keys(i).forEach(t=>{let a=i[t];a&&Object.keys(a).forEach(i=>{let s=a[i];s&&Object.keys(s).forEach(a=>{let l=s[a];l&&"object"==typeof l&&l.from===o.name&&(l.loaded||l.loading?(l.useIn=l.useIn.filter(e=>e!==o.name),l.useIn.length?r=!1:n.push([e,t,i,a])):n.push([e,t,i,a]))})})})}),r&&(e.shareScopeMap={},delete t[l]),n.forEach(e=>{var r,n,o;let[i,a,s,l]=e;null==(o=t[i])||null==(n=o[a])||null==(r=n[s])||delete r[l]}),v.__FEDERATION__.__INSTANCES__.splice(c,1)}let{hostGlobalSnapshot:u}=tR(e,r);if(u){let t=u&&"remotesInfo"in u&&u.remotesInfo&&P(u.remotesInfo,e.name).key;t&&(delete u.remotesInfo[t],I.__FEDERATION__.__MANIFEST_LOADING__[t]&&delete I.__FEDERATION__.__MANIFEST_LOADING__[t])}r.moduleCache.delete(e.name)}}catch(e){a.log("removeRemote fail: ",e)}}constructor(e){this.hooks=new tm({beforeRegisterRemote:new td("beforeRegisterRemote"),registerRemote:new td("registerRemote"),beforeRequest:new tp("beforeRequest"),onLoad:new tf("onLoad"),handlePreloadModule:new tu("handlePreloadModule"),errorLoadRemote:new tf("errorLoadRemote"),beforePreloadRemote:new tf("beforePreloadRemote"),generatePreloadAssets:new tf("generatePreloadAssets"),afterPreloadRemote:new tf,loadEntry:new tf}),this.host=e,this.idToRemoteMap={}}}class tM{initOptions(e){this.registerPlugins(e.plugins);let t=this.formatOptions(this.options,e);return this.options=t,t}async loadShare(e,t){return this.sharedHandler.loadShare(e,t)}loadShareSync(e,t){return this.sharedHandler.loadShareSync(e,t)}initializeSharing(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:q,t=arguments.length>1?arguments[1]:void 0;return this.sharedHandler.initializeSharing(e,t)}initRawContainer(e,t,r){let n=new tc({host:this,remoteInfo:tn({name:e,entry:t})});return n.remoteEntryExports=r,this.moduleCache.set(e,n),n}async loadRemote(e,t){return this.remoteHandler.loadRemote(e,t)}async preloadRemote(e){return this.remoteHandler.preloadRemote(e)}initShareScopeMap(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.sharedHandler.initShareScopeMap(e,t,r)}formatOptions(e,t){let{shared:r}=eG(e,t),{userOptions:n,options:o}=this.hooks.lifecycle.beforeInit.emit({origin:this,userOptions:t,options:e,shareInfo:r}),i=this.remoteHandler.formatAndRegisterRemote(o,n),{shared:a}=this.sharedHandler.registerShared(o,n),s=[...o.plugins];n.plugins&&n.plugins.forEach(e=>{s.includes(e)||s.push(e)});let l={...e,...t,plugins:s,remotes:i,shared:a};return this.hooks.lifecycle.init.emit({origin:this,options:l}),l}registerPlugins(e){let t=e3(e,this);this.options.plugins=this.options.plugins.reduce((e,t)=>(t&&e&&!e.find(e=>e.name===t.name)&&e.push(t),e),t||[])}registerRemotes(e,t){return this.remoteHandler.registerRemotes(e,t)}registerShared(e){this.sharedHandler.registerShared(this.options,{...this.options,shared:e})}constructor(e){this.hooks=new tm({beforeInit:new td("beforeInit"),init:new tu,beforeInitContainer:new tp("beforeInitContainer"),initContainer:new tp("initContainer")}),this.version="0.21.6",this.moduleCache=new Map,this.loaderHook=new tm({getModuleInfo:new tu,createScript:new tu,createLink:new tu,fetch:new tf,loadEntryError:new tf,getModuleFactory:new tf}),this.bridgeHook=new tm({beforeBridgeRender:new tu,afterBridgeRender:new tu,beforeBridgeDestroy:new tu,afterBridgeDestroy:new tu});const t=[ty(),tv()],r={id:e0(),name:e.name,plugins:t,remotes:[],shared:{},inBrowser:n.isBrowserEnv()};this.name=e.name,this.options=r,this.snapshotHandler=new tI(this),this.sharedHandler=new tN(this),this.remoteHandler=new t$(this),this.shareScopeMap=this.sharedHandler.shareScopeMap,this.registerPlugins([...r.plugins,...e.plugins||[]]),this.options=this.formatOptions(r,e)}}var tT=Object.freeze({__proto__:null});t.loadScript=n.loadScript,t.loadScriptNode=n.loadScriptNode,t.CurrentGlobal=v,t.Global=I,t.Module=tc,t.ModuleFederation=tM,t.addGlobalSnapshot=H,t.assert=s,t.getGlobalFederationConstructor=O,t.getGlobalSnapshot=D,t.getInfoWithoutType=P,t.getRegisteredShare=eJ,t.getRemoteEntry=tr,t.getRemoteInfo=tn,t.helpers=tl,t.isStaticResourcesEqual=_,t.matchRemoteWithNameAndExpose=e1,t.registerGlobalPlugins=x,t.resetFederationGlobalInfo=w,t.safeWrapper=p,t.satisfy=eV,t.setGlobalFederationConstructor=k,t.setGlobalFederationInstance=A,t.types=tT},94490:function(e,t,r){var n=r(93870),o=r(55994),i=r(31925);function a(e){let t=new(n.getGlobalFederationConstructor()||n.ModuleFederation)(e);return n.setGlobalFederationInstance(t),t}let s=null;function l(e){let t=i.getGlobalFederationInstance(e.name,e.version);return t?(t.initOptions(e),s||(s=t),t):s=a(e)}function c(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.assert(s,o.getShortErrorMsg(o.RUNTIME_009,o.runtimeDescMap)),s.loadRemote.apply(s,t)}function u(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.assert(s,o.getShortErrorMsg(o.RUNTIME_009,o.runtimeDescMap)),s.loadShare.apply(s,t)}function f(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.assert(s,o.getShortErrorMsg(o.RUNTIME_009,o.runtimeDescMap)),s.loadShareSync.apply(s,t)}function h(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.assert(s,o.getShortErrorMsg(o.RUNTIME_009,o.runtimeDescMap)),s.preloadRemote.apply(s,t)}function d(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.assert(s,o.getShortErrorMsg(o.RUNTIME_009,o.runtimeDescMap)),s.registerRemotes.apply(s,t)}function p(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.assert(s,o.getShortErrorMsg(o.RUNTIME_009,o.runtimeDescMap)),s.registerPlugins.apply(s,t)}function m(){return s}function g(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.assert(s,o.getShortErrorMsg(o.RUNTIME_009,o.runtimeDescMap)),s.registerShared.apply(s,t)}n.setGlobalFederationConstructor(n.ModuleFederation),t.Module=n.Module,t.ModuleFederation=n.ModuleFederation,t.getRemoteEntry=n.getRemoteEntry,t.getRemoteInfo=n.getRemoteInfo,t.loadScript=n.loadScript,t.loadScriptNode=n.loadScriptNode,t.registerGlobalPlugins=n.registerGlobalPlugins,t.createInstance=a,t.getInstance=m,t.init=l,t.loadRemote=c,t.loadShare=u,t.loadShareSync=f,t.preloadRemote=h,t.registerPlugins=p,t.registerRemotes=d,t.registerShared=g},31925:function(e,t,r){var n=r(93870);function o(){return"StatusHistoryChart:0.12.1"}t.getGlobalFederationInstance=function(e,t){let r=o();return n.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(n=>!!r&&n.options.id===r||n.options.name===e&&!n.options.version&&!t||n.options.name===e&&!!t&&n.options.version===t)}},44826:function(__unused_webpack_module,exports){let FederationModuleManifest="federation-manifest.json",MANIFEST_EXT=".json",BROWSER_LOG_KEY="FEDERATION_DEBUG",NameTransformSymbol={AT:"@",HYPHEN:"-",SLASH:"/"},NameTransformMap={[NameTransformSymbol.AT]:"scope_",[NameTransformSymbol.HYPHEN]:"_",[NameTransformSymbol.SLASH]:"__"},EncodedNameTransformMap={[NameTransformMap[NameTransformSymbol.AT]]:NameTransformSymbol.AT,[NameTransformMap[NameTransformSymbol.HYPHEN]]:NameTransformSymbol.HYPHEN,[NameTransformMap[NameTransformSymbol.SLASH]]:NameTransformSymbol.SLASH},SEPARATOR=":",ManifestFileName="mf-manifest.json",StatsFileName="mf-stats.json",MFModuleType={NPM:"npm",APP:"app"},MODULE_DEVTOOL_IDENTIFIER="__MF_DEVTOOLS_MODULE_INFO__",ENCODE_NAME_PREFIX="ENCODE_NAME_PREFIX",TEMP_DIR=".federation",MFPrefetchCommon={identifier:"MFDataPrefetch",globalKey:"__PREFETCH__",library:"mf-data-prefetch",exportsKey:"__PREFETCH_EXPORTS__",fileName:"bootstrap.js"};var ContainerPlugin=Object.freeze({__proto__:null}),ContainerReferencePlugin=Object.freeze({__proto__:null}),ModuleFederationPlugin=Object.freeze({__proto__:null}),SharePlugin=Object.freeze({__proto__:null});function isBrowserEnv(){return"undefined"!=typeof window&&void 0!==window.document}function isReactNativeEnv(){var e;return"undefined"!=typeof navigator&&(null==(e=navigator)?void 0:e.product)==="ReactNative"}function isBrowserDebug(){try{if(isBrowserEnv()&&window.localStorage)return!!localStorage.getItem(BROWSER_LOG_KEY)}catch(e){}return!1}function isDebugMode(){return"undefined"!=typeof process&&process.env&&process.env.FEDERATION_DEBUG?!!process.env.FEDERATION_DEBUG:!!("undefined"!=typeof FEDERATION_DEBUG&&FEDERATION_DEBUG)||isBrowserDebug()}let getProcessEnv=function(){return"undefined"!=typeof process&&process.env?process.env:{}},LOG_CATEGORY="[ Federation Runtime ]",parseEntry=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:SEPARATOR,n=e.split(r),o="development"===getProcessEnv().NODE_ENV&&t,i="*",a=e=>e.startsWith("http")||e.includes(MANIFEST_EXT);if(n.length>=2){let[t,...s]=n;e.startsWith(r)&&(t=n.slice(0,2).join(r),s=[o||n.slice(2).join(r)]);let l=o||s.join(r);return a(l)?{name:t,entry:l}:{name:t,version:l||i}}if(1===n.length){let[e]=n;return o&&a(o)?{name:e,entry:o}:{name:e,version:o||i}}throw`Invalid entry value: ${e}`},composeKeyWithSeparator=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length?t.reduce((e,t)=>t?e?`${e}${SEPARATOR}${t}`:t:e,""):""},encodeName=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];try{let n=r?".js":"";return`${t}${e.replace(RegExp(`${NameTransformSymbol.AT}`,"g"),NameTransformMap[NameTransformSymbol.AT]).replace(RegExp(`${NameTransformSymbol.HYPHEN}`,"g"),NameTransformMap[NameTransformSymbol.HYPHEN]).replace(RegExp(`${NameTransformSymbol.SLASH}`,"g"),NameTransformMap[NameTransformSymbol.SLASH])}${n}`}catch(e){throw e}},decodeName=function(e,t,r){try{let n=e;if(t){if(!n.startsWith(t))return n;n=n.replace(RegExp(t,"g"),"")}return n=n.replace(RegExp(`${NameTransformMap[NameTransformSymbol.AT]}`,"g"),EncodedNameTransformMap[NameTransformMap[NameTransformSymbol.AT]]).replace(RegExp(`${NameTransformMap[NameTransformSymbol.SLASH]}`,"g"),EncodedNameTransformMap[NameTransformMap[NameTransformSymbol.SLASH]]).replace(RegExp(`${NameTransformMap[NameTransformSymbol.HYPHEN]}`,"g"),EncodedNameTransformMap[NameTransformMap[NameTransformSymbol.HYPHEN]]),r&&(n=n.replace(".js","")),n}catch(e){throw e}},generateExposeFilename=(e,t)=>{if(!e)return"";let r=e;return"."===r&&(r="default_export"),r.startsWith("./")&&(r=r.replace("./","")),encodeName(r,"__federation_expose_",t)},generateShareFilename=(e,t)=>e?encodeName(e,"__federation_shared_",t):"",getResourceUrl=(e,t)=>{if("getPublicPath"in e){let r;return r=e.getPublicPath.startsWith("function")?Function("return "+e.getPublicPath)()():Function(e.getPublicPath)(),`${r}${t}`}return"publicPath"in e?!isBrowserEnv()&&!isReactNativeEnv()&&"ssrPublicPath"in e?`${e.ssrPublicPath}${t}`:`${e.publicPath}${t}`:(console.warn("Cannot get resource URL. If in debug mode, please ignore.",e,t),"")},assert=(e,t)=>{e||error(t)},error=e=>{throw Error(`${LOG_CATEGORY}: ${e}`)},warn=e=>{console.warn(`${LOG_CATEGORY}: ${e}`)};function safeToString(e){try{return JSON.stringify(e,null,2)}catch(e){return""}}let VERSION_PATTERN_REGEXP=/^([\d^=v<>~]|[*xX]$)/;function isRequiredVersion(e){return VERSION_PATTERN_REGEXP.test(e)}let simpleJoinRemoteEntry=(e,t)=>{if(!e)return t;let r=(e=>{if("."===e)return"";if(e.startsWith("./"))return e.replace("./","");if(e.startsWith("/")){let t=e.slice(1);return t.endsWith("/")?t.slice(0,-1):t}return e})(e);return r?r.endsWith("/")?`${r}${t}`:`${r}/${t}`:t};function inferAutoPublicPath(e){return e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/")}function generateSnapshotFromManifest(e){var t,r,n;let o,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{remotes:a={},overrides:s={},version:l}=i,c=()=>"publicPath"in e.metaData?"auto"===e.metaData.publicPath&&l?inferAutoPublicPath(l):e.metaData.publicPath:e.metaData.getPublicPath,u=Object.keys(s),f={};Object.keys(a).length||(f=(null==(n=e.remotes)?void 0:n.reduce((e,t)=>{let r,n=t.federationContainerName;return r=u.includes(n)?s[n]:"version"in t?t.version:t.entry,e[n]={matchedVersion:r},e},{}))||{}),Object.keys(a).forEach(e=>f[e]={matchedVersion:u.includes(e)?s[e]:a[e]});let{remoteEntry:{path:h,name:d,type:p},types:m={path:"",name:"",zip:"",api:""},buildInfo:{buildVersion:g},globalName:y,ssrRemoteEntry:_}=e.metaData,{exposes:E}=e,b={version:l||"",buildVersion:g,globalName:y,remoteEntry:simpleJoinRemoteEntry(h,d),remoteEntryType:p,remoteTypes:simpleJoinRemoteEntry(m.path,m.name),remoteTypesZip:m.zip||"",remoteTypesAPI:m.api||"",remotesInfo:f,shared:null==e?void 0:e.shared.map(e=>({assets:e.assets,sharedName:e.name,version:e.version})),modules:null==E?void 0:E.map(e=>({moduleName:e.name,modulePath:e.path,assets:e.assets}))};if(null==(t=e.metaData)?void 0:t.prefetchInterface){let t=e.metaData.prefetchInterface;b={...b,prefetchInterface:t}}if(null==(r=e.metaData)?void 0:r.prefetchEntry){let{path:t,name:r,type:n}=e.metaData.prefetchEntry;b={...b,prefetchEntry:simpleJoinRemoteEntry(t,r),prefetchEntryType:n}}return o="publicPath"in e.metaData?{...b,publicPath:c(),ssrPublicPath:e.metaData.ssrPublicPath}:{...b,getPublicPath:c()},_&&(o.ssrRemoteEntry=simpleJoinRemoteEntry(_.path,_.name),o.ssrRemoteEntryType=_.type||"commonjs-module"),o}function isManifestProvider(e){return!!("remoteEntry"in e&&e.remoteEntry.includes(MANIFEST_EXT))}function getManifestFileName(e){if(!e)return{statsFileName:StatsFileName,manifestFileName:ManifestFileName};let t="boolean"==typeof e?"":e.filePath||"",r="boolean"==typeof e?"":e.fileName||"",n=".json",o=e=>e.endsWith(n)?e:`${e}${n}`,i=(e,t)=>e.replace(n,`${t}${n}`),a=r?o(r):ManifestFileName;return{statsFileName:simpleJoinRemoteEntry(t,r?i(a,"-stats"):StatsFileName),manifestFileName:simpleJoinRemoteEntry(t,a)}}let PREFIX="[ Module Federation ]",DEFAULT_DELEGATE=console,LOGGER_STACK_SKIP_TOKENS=["logger.ts","logger.js","captureStackTrace","Logger.emit","Logger.log","Logger.info","Logger.warn","Logger.error","Logger.debug"];function captureStackTrace(){try{let e=Error().stack;if(!e)return;let[,...t]=e.split("\n"),r=t.filter(e=>!LOGGER_STACK_SKIP_TOKENS.some(t=>e.includes(t)));if(!r.length)return;let n=r.slice(0,5).join("\n");return`Stack trace:
4
- ${n}`}catch{return}}class Logger{setPrefix(e){this.prefix=e}setDelegate(e){this.delegate=e??DEFAULT_DELEGATE}emit(e,t){let r=this.delegate,n=isDebugMode()?captureStackTrace():void 0,o=n?[...t,n]:t,i=(()=>{switch(e){case"log":return["log","info"];case"info":return["info","log"];case"warn":return["warn","info","log"];case"error":return["error","warn","log"];default:return["debug","log"]}})();for(let e of i){let t=r[e];if("function"==typeof t)return void t.call(r,this.prefix,...o)}for(let e of i){let t=DEFAULT_DELEGATE[e];if("function"==typeof t)return void t.call(DEFAULT_DELEGATE,this.prefix,...o)}}log(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];this.emit("log",t)}warn(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];this.emit("warn",t)}error(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];this.emit("error",t)}success(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];this.emit("info",t)}info(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];this.emit("info",t)}ready(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];this.emit("info",t)}debug(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];isDebugMode()&&this.emit("debug",t)}constructor(e,t=DEFAULT_DELEGATE){this.prefix=e,this.delegate=t??DEFAULT_DELEGATE}}function createLogger(e){return new Logger(e)}function createInfrastructureLogger(e){let t=new Logger(e);return Object.defineProperty(t,"__mf_infrastructure_logger__",{value:!0,enumerable:!1,configurable:!1}),t}function bindLoggerToCompiler(e,t,r){if(e.__mf_infrastructure_logger__&&(null==t?void 0:t.getInfrastructureLogger))try{let n=t.getInfrastructureLogger(r);n&&"object"==typeof n&&("function"==typeof n.log||"function"==typeof n.info||"function"==typeof n.warn||"function"==typeof n.error)&&e.setDelegate(n)}catch{e.setDelegate(void 0)}}let logger=createLogger(PREFIX),infrastructureLogger=createInfrastructureLogger(PREFIX);async function safeWrapper(e,t){try{return await e()}catch(e){t||warn(e);return}}function isStaticResourcesEqual(e,t){let r=/^(https?:)?\/\//i;return e.replace(r,"").replace(/\/$/,"")===t.replace(r,"").replace(/\/$/,"")}function createScript(e){let t,r=null,n=!0,o=2e4,i=document.getElementsByTagName("script");for(let t=0;t<i.length;t++){let o=i[t],a=o.getAttribute("src");if(a&&isStaticResourcesEqual(a,e.url)){r=o,n=!1;break}}if(!r){let t,n=e.attrs;(r=document.createElement("script")).type=(null==n?void 0:n.type)==="module"?"module":"text/javascript",e.createScriptHook&&((t=e.createScriptHook(e.url,e.attrs))instanceof HTMLScriptElement?r=t:"object"==typeof t&&("script"in t&&t.script&&(r=t.script),"timeout"in t&&t.timeout&&(o=t.timeout))),r.src||(r.src=e.url),n&&!t&&Object.keys(n).forEach(e=>{r&&("async"===e||"defer"===e?r[e]=n[e]:r.getAttribute(e)||r.setAttribute(e,n[e]))})}let a=async(n,o)=>{clearTimeout(t);let i=()=>{(null==o?void 0:o.type)==="error"?(null==e?void 0:e.onErrorCallback)&&(null==e||e.onErrorCallback(o)):(null==e?void 0:e.cb)&&(null==e||e.cb())};if(r&&(r.onerror=null,r.onload=null,safeWrapper(()=>{let{needDeleteScript:t=!0}=e;t&&(null==r?void 0:r.parentNode)&&r.parentNode.removeChild(r)}),n&&"function"==typeof n)){let e=n(o);if(e instanceof Promise){let t=await e;return i(),t}return i(),e}i()};return r.onerror=a.bind(null,r.onerror),r.onload=a.bind(null,r.onload),t=setTimeout(()=>{a(null,Error(`Remote script "${e.url}" time-outed.`))},o),{script:r,needAttach:n}}function createLink(e){let t=null,r=!0,n=document.getElementsByTagName("link");for(let o=0;o<n.length;o++){let i=n[o],a=i.getAttribute("href"),s=i.getAttribute("rel");if(a&&isStaticResourcesEqual(a,e.url)&&s===e.attrs.rel){t=i,r=!1;break}}if(!t){let r;(t=document.createElement("link")).setAttribute("href",e.url);let n=e.attrs;e.createLinkHook&&(r=e.createLinkHook(e.url,n))instanceof HTMLLinkElement&&(t=r),n&&!r&&Object.keys(n).forEach(e=>{t&&!t.getAttribute(e)&&t.setAttribute(e,n[e])})}let o=(r,n)=>{let o=()=>{(null==n?void 0:n.type)==="error"?(null==e?void 0:e.onErrorCallback)&&(null==e||e.onErrorCallback(n)):(null==e?void 0:e.cb)&&(null==e||e.cb())};if(t&&(t.onerror=null,t.onload=null,safeWrapper(()=>{let{needDeleteLink:r=!0}=e;r&&(null==t?void 0:t.parentNode)&&t.parentNode.removeChild(t)}),r)){let e=r(n);return o(),e}o()};return t.onerror=o.bind(null,t.onerror),t.onload=o.bind(null,t.onload),{link:t,needAttach:r}}function loadScript(e,t){let{attrs:r={},createScriptHook:n}=t;return new Promise((t,o)=>{let{script:i,needAttach:a}=createScript({url:e,cb:t,onErrorCallback:o,attrs:{fetchpriority:"high",...r},createScriptHook:n,needDeleteScript:!0});a&&document.head.appendChild(i)})}let sdkImportCache=new Map;function importNodeModule(e){if(!e)throw Error("import specifier is required");if(sdkImportCache.has(e))return sdkImportCache.get(e);let t=Function("name","return import(name)")(e).then(e=>e).catch(t=>{throw console.error(`Error importing module ${e}:`,t),sdkImportCache.delete(e),t});return sdkImportCache.set(e,t),t}let loadNodeFetch=async()=>{let e=await importNodeModule("node-fetch");return e.default||e},lazyLoaderHookFetch=async(e,t,r)=>{let n=(e,t)=>r.lifecycle.fetch.emit(e,t),o=await n(e,t||{});return o&&o instanceof Response?o:("undefined"==typeof fetch?await loadNodeFetch():fetch)(e,t||{})},createScriptNode="undefined"==typeof ENV_TARGET||"web"!==ENV_TARGET?(url,cb,attrs,loaderHook)=>{let urlObj;if(null==loaderHook?void 0:loaderHook.createScriptHook){let hookResult=loaderHook.createScriptHook(url);hookResult&&"object"==typeof hookResult&&"url"in hookResult&&(url=hookResult.url)}try{urlObj=new URL(url)}catch(e){console.error("Error constructing URL:",e),cb(Error(`Invalid URL: ${e}`));return}let getFetch=async()=>(null==loaderHook?void 0:loaderHook.fetch)?(e,t)=>lazyLoaderHookFetch(e,t,loaderHook):"undefined"==typeof fetch?loadNodeFetch():fetch,handleScriptFetch=async(f,urlObj)=>{try{var _vm_constants;let res=await f(urlObj.href),data=await res.text(),[path,vm]=await Promise.all([importNodeModule("path"),importNodeModule("vm")]),scriptContext={exports:{},module:{exports:{}}},urlDirname=urlObj.pathname.split("/").slice(0,-1).join("/"),filename=path.basename(urlObj.pathname),script=new vm.Script(`(function(exports, module, require, __dirname, __filename) {${data}
5
- })`,{filename,importModuleDynamically:(null==(_vm_constants=vm.constants)?void 0:_vm_constants.USE_MAIN_CONTEXT_DEFAULT_LOADER)??importNodeModule});script.runInThisContext()(scriptContext.exports,scriptContext.module,eval("require"),urlDirname,filename);let exportedInterface=scriptContext.module.exports||scriptContext.exports;if(attrs&&exportedInterface&&attrs.globalName){let container=exportedInterface[attrs.globalName]||exportedInterface;cb(void 0,container);return}cb(void 0,exportedInterface)}catch(e){cb(e instanceof Error?e:Error(`Script execution error: ${e}`))}};getFetch().then(async e=>{if((null==attrs?void 0:attrs.type)==="esm"||(null==attrs?void 0:attrs.type)==="module")return loadModule(urlObj.href,{fetch:e,vm:await importNodeModule("vm")}).then(async e=>{await e.evaluate(),cb(void 0,e.namespace)}).catch(e=>{cb(e instanceof Error?e:Error(`Script execution error: ${e}`))});handleScriptFetch(e,urlObj)}).catch(e=>{cb(e)})}:(e,t,r,n)=>{t(Error("createScriptNode is disabled in non-Node.js environment"))},loadScriptNode="undefined"==typeof ENV_TARGET||"web"!==ENV_TARGET?(e,t)=>new Promise((r,n)=>{createScriptNode(e,(e,o)=>{if(e)n(e);else{var i,a;let e=(null==t||null==(i=t.attrs)?void 0:i.globalName)||`__FEDERATION_${null==t||null==(a=t.attrs)?void 0:a.name}:custom__`;r(globalThis[e]=o)}},t.attrs,t.loaderHook)}):(e,t)=>{throw Error("loadScriptNode is disabled in non-Node.js environment")},esmModuleCache=new Map;async function loadModule(e,t){if(esmModuleCache.has(e))return esmModuleCache.get(e);let{fetch:r,vm:n}=t,o=await r(e),i=await o.text(),a=new n.SourceTextModule(i,{importModuleDynamically:async(r,n)=>loadModule(new URL(r,e).href,t)});return esmModuleCache.set(e,a),await a.link(async r=>{let n=new URL(r,e).href;return await loadModule(n,t)}),a}function normalizeOptions(e,t,r){return function(n){if(!1===n)return!1;if(void 0===n)if(e)return t;else return!1;if(!0===n)return t;if(n&&"object"==typeof n)return{...t,...n};throw Error(`Unexpected type for \`${r}\`, expect boolean/undefined/object, got: ${typeof n}`)}}let createModuleFederationConfig=e=>e;exports.BROWSER_LOG_KEY=BROWSER_LOG_KEY,exports.ENCODE_NAME_PREFIX=ENCODE_NAME_PREFIX,exports.EncodedNameTransformMap=EncodedNameTransformMap,exports.FederationModuleManifest=FederationModuleManifest,exports.MANIFEST_EXT=MANIFEST_EXT,exports.MFModuleType=MFModuleType,exports.MFPrefetchCommon=MFPrefetchCommon,exports.MODULE_DEVTOOL_IDENTIFIER=MODULE_DEVTOOL_IDENTIFIER,exports.ManifestFileName=ManifestFileName,exports.NameTransformMap=NameTransformMap,exports.NameTransformSymbol=NameTransformSymbol,exports.SEPARATOR=SEPARATOR,exports.StatsFileName=StatsFileName,exports.TEMP_DIR=TEMP_DIR,exports.assert=assert,exports.bindLoggerToCompiler=bindLoggerToCompiler,exports.composeKeyWithSeparator=composeKeyWithSeparator,exports.containerPlugin=ContainerPlugin,exports.containerReferencePlugin=ContainerReferencePlugin,exports.createInfrastructureLogger=createInfrastructureLogger,exports.createLink=createLink,exports.createLogger=createLogger,exports.createModuleFederationConfig=createModuleFederationConfig,exports.createScript=createScript,exports.createScriptNode=createScriptNode,exports.decodeName=decodeName,exports.encodeName=encodeName,exports.error=error,exports.generateExposeFilename=generateExposeFilename,exports.generateShareFilename=generateShareFilename,exports.generateSnapshotFromManifest=generateSnapshotFromManifest,exports.getManifestFileName=getManifestFileName,exports.getProcessEnv=getProcessEnv,exports.getResourceUrl=getResourceUrl,exports.inferAutoPublicPath=inferAutoPublicPath,exports.infrastructureLogger=infrastructureLogger,exports.isBrowserEnv=isBrowserEnv,exports.isDebugMode=isDebugMode,exports.isManifestProvider=isManifestProvider,exports.isReactNativeEnv=isReactNativeEnv,exports.isRequiredVersion=isRequiredVersion,exports.isStaticResourcesEqual=isStaticResourcesEqual,exports.loadScript=loadScript,exports.loadScriptNode=loadScriptNode,exports.logger=logger,exports.moduleFederationPlugin=ModuleFederationPlugin,exports.normalizeOptions=normalizeOptions,exports.parseEntry=parseEntry,exports.safeToString=safeToString,exports.safeWrapper=safeWrapper,exports.sharePlugin=SharePlugin,exports.simpleJoinRemoteEntry=simpleJoinRemoteEntry,exports.warn=warn},86317:function(e,t){t.FEDERATION_SUPPORTED_TYPES=["script"]},50227:function(e,t,r){var n=r(94490),o=r(86317),i=r(44826);function a(e){e.S&&!e.federation.hasAttachShareScopeMap&&e.federation.instance&&e.federation.instance.shareScopeMap&&(e.S=e.federation.instance.shareScopeMap,e.federation.hasAttachShareScopeMap=!0)}function s(e){let{webpackRequire:t,moduleToHandlerMapping:r}=e,{consumesLoadingData:n,initializeSharingData:o}=t;if(n&&!n._updated){let{moduleIdToConsumeDataMapping:t={},initialConsumes:o=[],chunkMapping:i={}}=n;if(Object.entries(t).forEach(e=>{let[t,n]=e;r[t]||(r[t]={getter:n.fallback,shareInfo:{shareConfig:{requiredVersion:n.requiredVersion,strictVersion:n.strictVersion,singleton:n.singleton,eager:n.eager,layer:n.layer},scope:Array.isArray(n.shareScope)?n.shareScope:[n.shareScope||"default"]},shareKey:n.shareKey})}),"initialConsumes"in e){let{initialConsumes:t=[]}=e;o.forEach(e=>{t.includes(e)||t.push(e)})}if("chunkMapping"in e){let{chunkMapping:t={}}=e;Object.entries(i).forEach(e=>{let[r,n]=e;t[r]||(t[r]=[]),n.forEach(e=>{t[r].includes(e)||t[r].push(e)})})}n._updated=1}if(o&&!o._updated){let{federation:e}=t;if(!e.instance||!o.scopeToSharingDataMapping)return;let r={};for(let[e,t]of Object.entries(o.scopeToSharingDataMapping))for(let n of t)if("object"==typeof n&&null!==n){let{name:t,version:o,factory:i,eager:a,singleton:s,requiredVersion:l,strictVersion:c}=n,u={requiredVersion:`^${o}`},f=function(e){return void 0!==e};f(s)&&(u.singleton=s),f(l)&&(u.requiredVersion=l),f(a)&&(u.eager=a),f(c)&&(u.strictVersion=c);let h={version:o,scope:[e],shareConfig:u,get:i};r[t]?r[t].push(h):r[t]=[h]}e.instance.registerShared(r),o._updated=1}}function l(e){var t,r,n,o,i;let{webpackRequire:a,idToExternalAndNameMapping:s={},idToRemoteMap:l={},chunkMapping:c={}}=e,{remotesLoadingData:u}=a,f=null==(n=a.federation)||null==(r=n.bundlerRuntimeOptions)||null==(t=r.remotes)?void 0:t.remoteInfos;if(!u||u._updated||!f)return;let{chunkMapping:h,moduleIdToRemoteDataMapping:d}=u;if(h&&d){for(let[e,t]of Object.entries(d))if(s[e]||(s[e]=[t.shareScope,t.name,t.externalModuleId]),!l[e]&&f[t.remoteName]){let r=f[t.remoteName];(o=l)[i=e]||(o[i]=[]),r.forEach(t=>{l[e].includes(t)||l[e].push(t)})}c&&Object.entries(h).forEach(e=>{let[t,r]=e;c[t]||(c[t]=[]),r.forEach(e=>{c[t].includes(e)||c[t].push(e)})}),u._updated=1}}function c(e){l(e);let{chunkId:t,promises:r,webpackRequire:n,chunkMapping:s,idToExternalAndNameMapping:c,idToRemoteMap:u}=e;a(n),n.o(s,t)&&s[t].forEach(e=>{let t=n.R;t||(t=[]);let a=c[e],s=u[e]||[];if(t.indexOf(a)>=0)return;if(t.push(a),a.p)return r.push(a.p);let l=t=>{t||(t=Error("Container missing")),"string"==typeof t.message&&(t.message+=`
6
- while loading "${a[1]}" from ${a[2]}`),n.m[e]=()=>{throw t},a.p=0},f=(e,t,n,o,i,s)=>{try{let c=e(t,n);if(!c||!c.then)return i(c,o,s);{let e=c.then(e=>i(e,o),l);if(!s)return e;r.push(a.p=e)}}catch(e){l(e)}},h=(e,t,r)=>e?f(n.I,a[0],0,e,d,r):l();var d=(e,r,n)=>f(r.get,a[1],t,0,p,n),p=t=>{a.p=1,n.m[e]=e=>{e.exports=t()}};let m=()=>{try{let e=i.decodeName(s[0].name,i.ENCODE_NAME_PREFIX)+a[1].slice(1),t=n.federation.instance,r=()=>n.federation.instance.loadRemote(e,{loadFactory:!1,from:"build"});if("version-first"===t.options.shareStrategy)return Promise.all(t.sharedHandler.initializeSharing(a[0])).then(()=>r());return r()}catch(e){l(e)}};1===s.length&&o.FEDERATION_SUPPORTED_TYPES.includes(s[0].externalType)&&s[0].name?f(m,a[2],0,0,p,1):f(n,a[2],0,0,h,1)})}function u(e){s(e);let{chunkId:t,promises:r,installedModules:n,webpackRequire:o,chunkMapping:i,moduleToHandlerMapping:l}=e;a(o),o.o(i,t)&&i[t].forEach(e=>{if(o.o(n,e))return r.push(n[e]);let t=t=>{n[e]=0,o.m[e]=r=>{var n;delete o.c[e];let i=t(),{shareInfo:a}=l[e];if((null==a||null==(n=a.shareConfig)?void 0:n.layer)&&i&&"object"==typeof i)try{i.hasOwnProperty("layer")&&void 0!==i.layer||(i.layer=a.shareConfig.layer)}catch(e){}r.exports=i}},i=t=>{delete n[e],o.m[e]=r=>{throw delete o.c[e],t}};try{let a=o.federation.instance;if(!a)throw Error("Federation instance not found!");let{shareKey:s,getter:c,shareInfo:u}=l[e],f=a.loadShare(s,{customShareInfo:u}).then(e=>!1===e?c():e);f.then?r.push(n[e]=f.then(t).catch(i)):t(f)}catch(e){i(e)}})}function f(e){let{shareScopeName:t,webpackRequire:r,initPromises:n,initTokens:i,initScope:s}=e,l=Array.isArray(t)?t:[t];var c=[],u=function(e){s||(s=[]);let l=r.federation.instance;var c=i[e];if(c||(c=i[e]={from:l.name}),s.indexOf(c)>=0)return;s.push(c);let u=n[e];if(u)return u;var f=e=>"undefined"!=typeof console&&console.warn&&console.warn(e),h=n=>{var o=e=>f("Initialization of sharing external failed: "+e);try{var i=r(n);if(!i)return;var a=n=>n&&n.init&&n.init(r.S[e],s,{shareScopeMap:r.S||{},shareScopeKeys:t});if(i.then)return d.push(i.then(a,o));var l=a(i);if(l&&"boolean"!=typeof l&&l.then)return d.push(l.catch(o))}catch(e){o(e)}};let d=l.initializeSharing(e,{strategy:l.options.shareStrategy,initScope:s,from:"build"});a(r);let p=r.federation.bundlerRuntimeOptions.remotes;return(p&&Object.keys(p.idToRemoteMap).forEach(e=>{let t=p.idToRemoteMap[e],r=p.idToExternalAndNameMapping[e][2];if(t.length>1)h(r);else if(1===t.length){let e=t[0];o.FEDERATION_SUPPORTED_TYPES.includes(e.externalType)||h(r)}}),d.length)?n[e]=Promise.all(d).then(()=>n[e]=!0):n[e]=!0};return l.forEach(e=>{c.push(u(e))}),Promise.all(c).then(()=>!0)}function h(e){let{moduleId:t,moduleToHandlerMapping:r,webpackRequire:n}=e,o=n.federation.instance;if(!o)throw Error("Federation instance not found!");let{shareKey:i,shareInfo:a}=r[t];try{return o.loadShareSync(i,{customShareInfo:a})}catch(e){throw console.error('loadShareSync failed! The function should not be called unless you set "eager:true". If you do not set it, and encounter this issue, you can check whether an async boundary is implemented.'),console.error("The original error message is as follows: "),e}}function d(e){let{webpackRequire:t}=e;s(e);let{initialConsumes:r,moduleToHandlerMapping:n,installedModules:o}=e;r.forEach(e=>{t.m[e]=r=>{var i;o[e]=0,delete t.c[e];let a=h({moduleId:e,moduleToHandlerMapping:n,webpackRequire:t});if("function"!=typeof a)throw Error(`Shared module is not available for eager consumption: ${e}`);let s=a(),{shareInfo:l}=n[e];if((null==l||null==(i=l.shareConfig)?void 0:i.layer)&&s&&"object"==typeof s)try{s.hasOwnProperty("layer")&&void 0!==s.layer||(s.layer=l.shareConfig.layer)}catch(e){}r.exports=s}})}function p(e){let{webpackRequire:t,shareScope:r,initScope:n,shareScopeKey:o,remoteEntryInitOptions:i}=e;if(!t.S||!t.federation||!t.federation.instance||!t.federation.initOptions)return;let a=t.federation.instance;a.initOptions({name:t.federation.initOptions.name,remotes:[],...i});let s=null==i?void 0:i.shareScopeKeys,l=null==i?void 0:i.shareScopeMap;if(o&&"string"!=typeof o)o.forEach(e=>{if(!s||!l)return void a.initShareScopeMap(e,r,{hostShareScopeMap:(null==i?void 0:i.shareScopeMap)||{}});l[e]||(l[e]={});let t=l[e];a.initShareScopeMap(e,t,{hostShareScopeMap:(null==i?void 0:i.shareScopeMap)||{}})});else{let e=o||"default";Array.isArray(s)?s.forEach(e=>{l[e]||(l[e]={});let t=l[e];a.initShareScopeMap(e,t,{hostShareScopeMap:(null==i?void 0:i.shareScopeMap)||{}})}):a.initShareScopeMap(e,r,{hostShareScopeMap:(null==i?void 0:i.shareScopeMap)||{}})}return(t.federation.attachShareScopeMap&&t.federation.attachShareScopeMap(t),"function"==typeof t.federation.prefetch&&t.federation.prefetch(),Array.isArray(o))?t.federation.initOptions.shared?t.I(o,n):Promise.all(o.map(e=>t.I(e,n))).then(()=>!0):t.I(o||"default",n)}e.exports={runtime:function(e){var t=Object.create(null);if(e)for(var r in e)t[r]=e[r];return t.default=e,Object.freeze(t)}(n),instance:void 0,initOptions:void 0,bundlerRuntime:{remotes:c,consumes:u,I:f,S:{},installInitialConsumes:d,initContainerEntry:p},attachShareScopeMap:a,bundlerRuntimeOptions:{}}},19452:function(e,t,r){var n,o,i,a,s,l,c,u,f,h,d,p,m=r(50227),g=r.n(m);let y=[],_={},E="StatusHistoryChart",b="version-first";if((r.initializeSharingData||r.initializeExposesData)&&r.federation){let e=(e,t,r)=>{e&&e[t]&&(e[t]=r)},t=(e,t,r)=>{var n,o,i,a,s,l;let c=r();Array.isArray(c)?(null!=(i=(n=e)[o=t])||(n[o]=[]),e[t].push(...c)):"object"==typeof c&&null!==c&&(null!=(l=(a=e)[s=t])||(a[s]={}),Object.assign(e[t],c))},m=(e,t,r)=>{var n,o,i;null!=(i=(n=e)[o=t])||(n[o]=r())},S=null!=(u=null==(n=r.remotesLoadingData)?void 0:n.chunkMapping)?u:{},v=null!=(f=null==(o=r.remotesLoadingData)?void 0:o.moduleIdToRemoteDataMapping)?f:{},R=null!=(h=null==(i=r.initializeSharingData)?void 0:i.scopeToSharingDataMapping)?h:{},I=null!=(d=null==(a=r.consumesLoadingData)?void 0:a.chunkMapping)?d:{},N=null!=(p=null==(s=r.consumesLoadingData)?void 0:s.moduleIdToConsumeDataMapping)?p:{},$={},M=[],T={},w=null==(l=r.initializeExposesData)?void 0:l.shareScope;for(let e in g())r.federation[e]=g()[e];m(r.federation,"consumesLoadingModuleToHandlerMapping",()=>{let e={};for(let[t,r]of Object.entries(N))e[t]={getter:r.fallback,shareInfo:{shareConfig:{fixedDependencies:!1,requiredVersion:r.requiredVersion,strictVersion:r.strictVersion,singleton:r.singleton,eager:r.eager},scope:[r.shareScope]},shareKey:r.shareKey};return e}),m(r.federation,"initOptions",()=>({})),m(r.federation.initOptions,"name",()=>E),m(r.federation.initOptions,"shareStrategy",()=>b),m(r.federation.initOptions,"shared",()=>{let e={};for(let[t,r]of Object.entries(R))for(let n of r)if("object"==typeof n&&null!==n){let{name:r,version:o,factory:i,eager:a,singleton:s,requiredVersion:l,strictVersion:c}=n,u={},f=function(e){return void 0!==e};f(s)&&(u.singleton=s),f(l)&&(u.requiredVersion=l),f(a)&&(u.eager=a),f(c)&&(u.strictVersion=c);let h={version:o,scope:[t],shareConfig:u,get:i};e[r]?e[r].push(h):e[r]=[h]}return e}),t(r.federation.initOptions,"remotes",()=>Object.values(_).flat().filter(e=>"script"===e.externalType)),t(r.federation.initOptions,"plugins",()=>y),m(r.federation,"bundlerRuntimeOptions",()=>({})),m(r.federation.bundlerRuntimeOptions,"remotes",()=>({})),m(r.federation.bundlerRuntimeOptions.remotes,"chunkMapping",()=>S),m(r.federation.bundlerRuntimeOptions.remotes,"remoteInfos",()=>_),m(r.federation.bundlerRuntimeOptions.remotes,"idToExternalAndNameMapping",()=>{let e={};for(let[t,r]of Object.entries(v))e[t]=[r.shareScope,r.name,r.externalModuleId,r.remoteName];return e}),m(r.federation.bundlerRuntimeOptions.remotes,"webpackRequire",()=>r),t(r.federation.bundlerRuntimeOptions.remotes,"idToRemoteMap",()=>{let e={};for(let[t,r]of Object.entries(v)){let n=_[r.remoteName];n&&(e[t]=n)}return e}),e(r,"S",r.federation.bundlerRuntime.S),r.federation.attachShareScopeMap&&r.federation.attachShareScopeMap(r),e(r.f,"remotes",(e,t)=>r.federation.bundlerRuntime.remotes({chunkId:e,promises:t,chunkMapping:S,idToExternalAndNameMapping:r.federation.bundlerRuntimeOptions.remotes.idToExternalAndNameMapping,idToRemoteMap:r.federation.bundlerRuntimeOptions.remotes.idToRemoteMap,webpackRequire:r})),e(r.f,"consumes",(e,t)=>r.federation.bundlerRuntime.consumes({chunkId:e,promises:t,chunkMapping:I,moduleToHandlerMapping:r.federation.consumesLoadingModuleToHandlerMapping,installedModules:$,webpackRequire:r})),e(r,"I",(e,t)=>r.federation.bundlerRuntime.I({shareScopeName:e,initScope:t,initPromises:M,initTokens:T,webpackRequire:r})),e(r,"initContainer",(e,t,n)=>r.federation.bundlerRuntime.initContainerEntry({shareScope:e,initScope:t,remoteEntryInitOptions:n,shareScopeKey:w,webpackRequire:r})),e(r,"getContainer",(e,t)=>{var n=r.initializeExposesData.moduleMap;return r.R=t,t=Object.prototype.hasOwnProperty.call(n,e)?n[e]():Promise.resolve().then(()=>{throw Error('Module "'+e+'" does not exist in container.')}),r.R=void 0,t}),r.federation.instance=r.federation.runtime.init(r.federation.initOptions),(null==(c=r.consumesLoadingData)?void 0:c.initialConsumes)&&r.federation.bundlerRuntime.installInitialConsumes({webpackRequire:r,installedModules:$,initialConsumes:r.consumesLoadingData.initialConsumes,moduleToHandlerMapping:r.federation.consumesLoadingModuleToHandlerMapping})}},14661:function(e,t,r){r.d(t,{get:()=>r.getContainer,init:()=>r.initContainer})},47021:function(){!function(){var e;window.PERSES_PLUGIN_ASSETS_PATH||null==(e=window.PERSES_APP_CONFIG)||e.api_prefix}()}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.loaded=!0,r.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.c=__webpack_module_cache__,__webpack_require__.x=()=>(__webpack_require__(47021),__webpack_require__(14661)),(()=>{__webpack_require__.federation||(__webpack_require__.federation={chunkMatcher:function(e){return!/^(6(1|22|89)|(|26|98)4|107|312|367|442|70|823)$/.test(e)},rootOutputDir:"../../"})})(),(()=>{__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t}})(),(()=>{__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}})(),(()=>{__webpack_require__.f={},__webpack_require__.e=e=>Promise.all(Object.keys(__webpack_require__.f).reduce((t,r)=>(__webpack_require__.f[r](e,t),t),[]))})(),(()=>{__webpack_require__.u=e=>"__mf/js/async/"+(({535:"lib-router",543:"__federation_expose_StatusHistoryChart"})[e]||e)+"."+({121:"17e95c0f",153:"a05b947a",177:"8e51631b",189:"fb5828be",192:"8fa94a82",2:"7f4594b1",208:"4ddf8a84",235:"59e4cd91",274:"6a9f4c88",283:"94f964e7",356:"dfb4c773",392:"451e4ac5",470:"a6095e83",525:"9b8b1f1d",535:"7f2e5a89",543:"2f7f2db6",558:"df5de61b",587:"4f01f05a",588:"3d58e41b",616:"1c080169",623:"5e8090ca",644:"cbae4105",71:"a42c00bc",873:"63bd8a6f",901:"1a94d1a1",925:"0d9b745d",968:"c21f2475",978:"563a3078"})[e]+".js"})(),(()=>{__webpack_require__.miniCssF=e=>"__mf/css/async/"+e+"."+({442:"d3010b86",61:"d3010b86",823:"d3010b86"})[e]+".css"})(),(()=>{__webpack_require__.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})()})(),(()=>{__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{var e={},t="StatusHistoryChart:";__webpack_require__.l=function(r,n,o,i){if(e[r])return void e[r].push(n);if(void 0!==o)for(var a,s,l=document.getElementsByTagName("script"),c=0;c<l.length;c++){var u=l[c];if(u.getAttribute("src")==r||u.getAttribute("data-webpack")==t+o){a=u;break}}a||(s=!0,(a=document.createElement("script")).timeout=120,__webpack_require__.nc&&a.setAttribute("nonce",__webpack_require__.nc),a.setAttribute("data-webpack",t+o),a.src=r),e[r]=[n];var f=function(t,n){a.onerror=a.onload=null,clearTimeout(h);var o=e[r];if(delete e[r],a.parentNode&&a.parentNode.removeChild(a),o&&o.forEach(function(e){return e(n)}),t)return t(n)},h=setTimeout(f.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=f.bind(null,a.onerror),a.onload=f.bind(null,a.onload),s&&document.head.appendChild(a)}})(),(()=>{__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})(),(()=>{__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e)})(),(()=>{__webpack_require__.nc=void 0})(),(()=>{__webpack_require__.S={},__webpack_require__.initializeSharingData={scopeToSharingDataMapping:{default:[{name:"@emotion/react",version:"11.14.0",factory:()=>Promise.all([__webpack_require__.e("274"),__webpack_require__.e("312"),__webpack_require__.e("2")]).then(()=>()=>__webpack_require__(67449)),eager:0,singleton:1,requiredVersion:"^11.11.3"},{name:"@emotion/styled",version:"11.14.0",factory:()=>Promise.all([__webpack_require__.e("312"),__webpack_require__.e("367"),__webpack_require__.e("616")]).then(()=>()=>__webpack_require__(63859)),eager:0,singleton:1},{name:"@hookform/resolvers",version:"3.10.0",factory:()=>Promise.all([__webpack_require__.e("107"),__webpack_require__.e("587")]).then(()=>()=>__webpack_require__(75150)),eager:0,singleton:1},{name:"@perses-dev/components",version:"0.53.1",factory:()=>Promise.all([__webpack_require__.e("588"),__webpack_require__.e("71"),__webpack_require__.e("525"),__webpack_require__.e("925"),__webpack_require__.e("623"),__webpack_require__.e("901"),__webpack_require__.e("644"),__webpack_require__.e("312"),__webpack_require__.e("4"),__webpack_require__.e("622"),__webpack_require__.e("367"),__webpack_require__.e("984"),__webpack_require__.e("264"),__webpack_require__.e("442")]).then(()=>()=>__webpack_require__(41916)),eager:0,singleton:1},{name:"@perses-dev/plugin-system",version:"0.53.1",factory:()=>Promise.all([__webpack_require__.e("535"),__webpack_require__.e("925"),__webpack_require__.e("644"),__webpack_require__.e("208"),__webpack_require__.e("153"),__webpack_require__.e("312"),__webpack_require__.e("4"),__webpack_require__.e("622"),__webpack_require__.e("367"),__webpack_require__.e("984"),__webpack_require__.e("107"),__webpack_require__.e("689"),__webpack_require__.e("558")]).then(()=>()=>__webpack_require__(32339)),eager:0,singleton:1},{name:"@tanstack/react-query",version:"4.39.1",factory:()=>Promise.all([__webpack_require__.e("283"),__webpack_require__.e("312"),__webpack_require__.e("189")]).then(()=>()=>__webpack_require__(52854)),eager:0,singleton:1},{name:"date-fns",version:"4.1.0",factory:()=>Promise.all([__webpack_require__.e("588"),__webpack_require__.e("71"),__webpack_require__.e("192")]).then(()=>()=>__webpack_require__(89227)),eager:0,singleton:1},{name:"echarts",version:"5.5.0",factory:()=>Promise.all([__webpack_require__.e("525"),__webpack_require__.e("623"),__webpack_require__.e("873")]).then(()=>()=>__webpack_require__(83824)),eager:0,singleton:1},{name:"lodash",version:"4.17.23",factory:()=>__webpack_require__.e("392").then(()=>()=>__webpack_require__(17243)),eager:0,singleton:1},{name:"react-dom",version:"18.3.1",factory:()=>Promise.all([__webpack_require__.e("470"),__webpack_require__.e("312")]).then(()=>()=>__webpack_require__(78325)),eager:0,singleton:1,requiredVersion:"18.2.0"},{name:"react-hook-form",version:"7.54.2",factory:()=>Promise.all([__webpack_require__.e("356"),__webpack_require__.e("312")]).then(()=>()=>__webpack_require__(79215)),eager:0,singleton:1},{name:"react",version:"18.3.1",factory:()=>__webpack_require__.e("121").then(()=>()=>__webpack_require__(63696)),eager:0,singleton:1,requiredVersion:"18.2.0"}]},uniqueName:"StatusHistoryChart"},__webpack_require__.I=__webpack_require__.I||function(){throw Error("should have __webpack_require__.I")}})(),(()=>{__webpack_require__.g.importScripts&&(e=__webpack_require__.g.location+"");var e,t=__webpack_require__.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var n=r.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=r[n--].src}if(!e)throw Error("Automatic publicPath is not supported in this browser");__webpack_require__.p=(e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"))+"../../"})(),(()=>{__webpack_require__.consumesLoadingData={chunkMapping:{367:["69402"],4:["20231"],70:["31829"],984:["42292","40224"],622:["94461"],689:["84607","11613","25511","88546","61552","63682","64198","91807","51035","71935"],312:["70451"],543:["47390","50814"],264:["98315"],107:["72694"]},moduleIdToConsumeDataMapping:{40224:{shareScope:"default",shareKey:"lodash",import:"lodash",requiredVersion:"^4.17.21",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>__webpack_require__.e("392").then(()=>()=>__webpack_require__(17243))},88546:{shareScope:"default",shareKey:"@perses-dev/components",import:"@perses-dev/components",requiredVersion:"0.53.1",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([__webpack_require__.e("588"),__webpack_require__.e("71"),__webpack_require__.e("525"),__webpack_require__.e("623"),__webpack_require__.e("901"),__webpack_require__.e("264"),__webpack_require__.e("823")]).then(()=>()=>__webpack_require__(41916))},51035:{shareScope:"default",shareKey:"lodash",import:"lodash",requiredVersion:"*",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>__webpack_require__.e("392").then(()=>()=>__webpack_require__(17243))},31829:{shareScope:"default",shareKey:"date-fns",import:"date-fns",requiredVersion:"^3.0.0 || ^4.0.0",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([__webpack_require__.e("588"),__webpack_require__.e("192")]).then(()=>()=>__webpack_require__(89227))},64198:{shareScope:"default",shareKey:"echarts",import:"echarts",requiredVersion:"*",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([__webpack_require__.e("525"),__webpack_require__.e("623"),__webpack_require__.e("873")]).then(()=>()=>__webpack_require__(83824))},84607:{shareScope:"default",shareKey:"@emotion/styled",import:"@emotion/styled",requiredVersion:"*",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>__webpack_require__.e("235").then(()=>()=>__webpack_require__(63859))},91807:{shareScope:"default",shareKey:"@tanstack/react-query",import:"@tanstack/react-query",requiredVersion:"^4.39.1",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>__webpack_require__.e("283").then(()=>()=>__webpack_require__(52854))},71935:{shareScope:"default",shareKey:"@perses-dev/plugin-system",import:"@perses-dev/plugin-system",requiredVersion:"*",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>()=>__webpack_require__(32339)},70451:{shareScope:"default",shareKey:"react",import:"react",requiredVersion:"18.2.0",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>__webpack_require__.e("121").then(()=>()=>__webpack_require__(63696))},63682:{shareScope:"default",shareKey:"date-fns-tz",import:"date-fns-tz",requiredVersion:"^3.2.0",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([__webpack_require__.e("71"),__webpack_require__.e("978"),__webpack_require__.e("70")]).then(()=>()=>__webpack_require__(61153))},98315:{shareScope:"default",shareKey:"react-hook-form",import:"react-hook-form",requiredVersion:"^7.51.3",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>__webpack_require__.e("356").then(()=>()=>__webpack_require__(79215))},11613:{shareScope:"default",shareKey:"react-hook-form",import:"react-hook-form",requiredVersion:"^7.46.1",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>__webpack_require__.e("356").then(()=>()=>__webpack_require__(79215))},50814:{shareScope:"default",shareKey:"@perses-dev/plugin-system",import:"@perses-dev/plugin-system",requiredVersion:"^0.53.1",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([__webpack_require__.e("535"),__webpack_require__.e("925"),__webpack_require__.e("208"),__webpack_require__.e("4"),__webpack_require__.e("622"),__webpack_require__.e("107"),__webpack_require__.e("689"),__webpack_require__.e("177")]).then(()=>()=>__webpack_require__(32339))},94461:{shareScope:"default",shareKey:"date-fns",import:"date-fns",requiredVersion:"^4.1.0",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([__webpack_require__.e("588"),__webpack_require__.e("71"),__webpack_require__.e("192")]).then(()=>()=>__webpack_require__(89227))},25511:{shareScope:"default",shareKey:"@hookform/resolvers",import:"@hookform/resolvers",requiredVersion:"^2.0.0",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>__webpack_require__.e("968").then(()=>()=>__webpack_require__(75150))},61552:{shareScope:"default",shareKey:"@perses-dev/plugin-system",import:"@perses-dev/plugin-system",requiredVersion:"0.53.1",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>()=>__webpack_require__(32339)},69402:{shareScope:"default",shareKey:"@emotion/react",import:"@emotion/react",requiredVersion:"^11.11.3",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>__webpack_require__.e("274").then(()=>()=>__webpack_require__(67449))},42292:{shareScope:"default",shareKey:"@emotion/styled",import:"@emotion/styled",requiredVersion:"^11.3.0",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>__webpack_require__.e("235").then(()=>()=>__webpack_require__(63859))},20231:{shareScope:"default",shareKey:"react-dom",import:"react-dom",requiredVersion:"18.2.0",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>__webpack_require__.e("470").then(()=>()=>__webpack_require__(78325))},47390:{shareScope:"default",shareKey:"@perses-dev/components",import:"@perses-dev/components",requiredVersion:"^0.53.1",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([__webpack_require__.e("588"),__webpack_require__.e("71"),__webpack_require__.e("925"),__webpack_require__.e("623"),__webpack_require__.e("901"),__webpack_require__.e("4"),__webpack_require__.e("622"),__webpack_require__.e("264"),__webpack_require__.e("61")]).then(()=>()=>__webpack_require__(41916))},72694:{shareScope:"default",shareKey:"react-hook-form",import:"react-hook-form",requiredVersion:"^7.0.0",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([__webpack_require__.e("356"),__webpack_require__.e("312")]).then(()=>()=>__webpack_require__(79215))}},initialConsumes:[]},__webpack_require__.f.consumes=__webpack_require__.f.consumes||function(){throw Error("should have __webpack_require__.f.consumes")}})(),(()=>{if("undefined"!=typeof document){var e=function(e,t,r,n,o){var i=document.createElement("link");i.rel="stylesheet",i.type="text/css",__webpack_require__.nc&&(i.nonce=__webpack_require__.nc);var a=function(r){if(i.onerror=i.onload=null,"load"===r.type)n();else{var a=r&&("load"===r.type?"missing":r.type),s=r&&r.target&&r.target.href||t,l=Error("Loading CSS chunk "+e+" failed.\\n("+s+")");l.code="CSS_CHUNK_LOAD_FAILED",l.type=a,l.request=s,i.parentNode&&i.parentNode.removeChild(i),o(l)}};return i.onerror=i.onload=a,i.href=t,r?r.parentNode.insertBefore(i,r.nextSibling):document.head.appendChild(i),i},t=function(e,t){for(var r=document.getElementsByTagName("link"),n=0;n<r.length;n++){var o=r[n],i=o.getAttribute("data-href")||o.getAttribute("href");if(i&&(i=i.split("?")[0]),"stylesheet"===o.rel&&(i===e||i===t))return o}for(var a=document.getElementsByTagName("style"),n=0;n<a.length;n++){var o=a[n],i=o.getAttribute("data-href");if(i===e||i===t)return o}},r=function(r){return new Promise(function(n,o){var i=__webpack_require__.miniCssF(r),a=__webpack_require__.p+i;if(t(i,a))return n();e(r,a,null,n,o)})},n={462:0};__webpack_require__.f.miniCss=function(e,t){var o={823:1,442:1,61:1};n[e]?t.push(n[e]):0!==n[e]&&o[e]&&t.push(n[e]=r(e).then(function(){n[e]=0},function(t){throw delete n[e],t}))}}})(),(()=>{__webpack_require__.initializeExposesData={moduleMap:{"./StatusHistoryChart":()=>Promise.all([__webpack_require__.e("525"),__webpack_require__.e("644"),__webpack_require__.e("153"),__webpack_require__.e("312"),__webpack_require__.e("367"),__webpack_require__.e("984"),__webpack_require__.e("543")]).then(()=>()=>__webpack_require__(68485))},shareScope:"default"},__webpack_require__.getContainer=__webpack_require__.getContainer||function(){throw Error("should have __webpack_require__.getContainer")},__webpack_require__.initContainer=__webpack_require__.initContainer||function(){throw Error("should have __webpack_require__.initContainer")}})(),(()=>{var e={462:0};__webpack_require__.f.j=function(t,r){var n=__webpack_require__.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else if(/^(6(1|22|89)|(|26|98)4|107|312|367|442|70|823)$/.test(t))e[t]=0;else{var o=new Promise((r,o)=>n=e[t]=[r,o]);r.push(n[2]=o);var i=__webpack_require__.p+__webpack_require__.u(t),a=Error(),s=function(r){if(__webpack_require__.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var o=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,n[1](a)}};__webpack_require__.l(i,s,"chunk-"+t,t)}};var t=(t,r)=>{var n,o,[i,a,s]=r,l=0;if(i.some(t=>0!==e[t])){for(n in a)__webpack_require__.o(a,n)&&(__webpack_require__.m[n]=a[n]);s&&s(__webpack_require__)}for(t&&t(r);l<i.length;l++)o=i[l],__webpack_require__.o(e,o)&&e[o]&&e[o][0](),e[o]=0},r=self.chunk_StatusHistoryChart=self.chunk_StatusHistoryChart||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),(()=>{var e=__webpack_require__.x,t=!1;__webpack_require__.x=function(){if(t||(t=!0,__webpack_require__(19452)),"function"==typeof e)return e();console.warn("[MF] Invalid prevStartup")}})();var __webpack_exports__=__webpack_require__.x();StatusHistoryChart=__webpack_exports__})();
@@ -1,2 +0,0 @@
1
- /*! For license information please see 121.17e95c0f.js.LICENSE.txt */
2
- "use strict";(self.chunk_StatusHistoryChart=self.chunk_StatusHistoryChart||[]).push([["121"],{14403:function(e,t){var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),i=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),l=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),y=Symbol.iterator,d={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,_={};function m(e,t,r){this.props=e,this.context=t,this.refs=_,this.updater=r||d}function b(){}function v(e,t,r){this.props=e,this.context=t,this.refs=_,this.updater=r||d}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=m.prototype;var S=v.prototype=new b;S.constructor=v,h(S,m.prototype),S.isPureReactComponent=!0;var E=Array.isArray,k=Object.prototype.hasOwnProperty,$={current:null},w={key:!0,ref:!0,__self:!0,__source:!0};function R(e,t,n){var o,u={},a=null,c=null;if(null!=t)for(o in void 0!==t.ref&&(c=t.ref),void 0!==t.key&&(a=""+t.key),t)k.call(t,o)&&!w.hasOwnProperty(o)&&(u[o]=t[o]);var i=arguments.length-2;if(1===i)u.children=n;else if(1<i){for(var f=Array(i),s=0;s<i;s++)f[s]=arguments[s+2];u.children=f}if(e&&e.defaultProps)for(o in i=e.defaultProps)void 0===u[o]&&(u[o]=i[o]);return{$$typeof:r,type:e,key:a,ref:c,props:u,_owner:$.current}}function C(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}var g=/\/+/g;function j(e,t){var r,n;return"object"==typeof e&&null!==e&&null!=e.key?(r=""+e.key,n={"=":"=0",":":"=2"},"$"+r.replace(/[=:]/g,function(e){return n[e]})):t.toString(36)}function O(e,t,o){if(null==e)return e;var u=[],a=0;return!function e(t,o,u,a,c){var i,f,s,l=typeof t;("undefined"===l||"boolean"===l)&&(t=null);var p=!1;if(null===t)p=!0;else switch(l){case"string":case"number":p=!0;break;case"object":switch(t.$$typeof){case r:case n:p=!0}}if(p)return c=c(p=t),t=""===a?"."+j(p,0):a,E(c)?(u="",null!=t&&(u=t.replace(g,"$&/")+"/"),e(c,o,u,"",function(e){return e})):null!=c&&(C(c)&&(i=c,f=u+(!c.key||p&&p.key===c.key?"":(""+c.key).replace(g,"$&/")+"/")+t,c={$$typeof:r,type:i.type,key:f,ref:i.ref,props:i.props,_owner:i._owner}),o.push(c)),1;if(p=0,a=""===a?".":a+":",E(t))for(var d=0;d<t.length;d++){var h=a+j(l=t[d],d);p+=e(l,o,u,h,c)}else if("function"==typeof(h=null===(s=t)||"object"!=typeof s?null:"function"==typeof(s=y&&s[y]||s["@@iterator"])?s:null))for(t=h.call(t),d=0;!(l=t.next()).done;)h=a+j(l=l.value,d++),p+=e(l,o,u,h,c);else if("object"===l)throw Error("Objects are not valid as a React child (found: "+("[object Object]"===(o=String(t))?"object with keys {"+Object.keys(t).join(", ")+"}":o)+"). If you meant to render a collection of children, use an array instead.");return p}(e,u,"","",function(e){return t.call(o,e,a++)}),u}function x(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){(0===e._status||-1===e._status)&&(e._status=1,e._result=t)},function(t){(0===e._status||-1===e._status)&&(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var P={current:null},I={transition:null};function T(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:O,forEach:function(e,t,r){O(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return O(e,function(){t++}),t},toArray:function(e){return O(e,function(e){return e})||[]},only:function(e){if(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=m,t.Fragment=o,t.Profiler=a,t.PureComponent=v,t.StrictMode=u,t.Suspense=s,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:I,ReactCurrentOwner:$},t.act=T,t.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=h({},e.props),u=e.key,a=e.ref,c=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,c=$.current),void 0!==t.key&&(u=""+t.key),e.type&&e.type.defaultProps)var i=e.type.defaultProps;for(f in t)k.call(t,f)&&!w.hasOwnProperty(f)&&(o[f]=void 0===t[f]&&void 0!==i?i[f]:t[f])}var f=arguments.length-2;if(1===f)o.children=n;else if(1<f){i=Array(f);for(var s=0;s<f;s++)i[s]=arguments[s+2];o.children=i}return{$$typeof:r,type:e.type,key:u,ref:a,props:o,_owner:c}},t.createContext=function(e){return(e={$$typeof:i,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:c,_context:e},e.Consumer=e},t.createElement=R,t.createFactory=function(e){var t=R.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:f,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:x}},t.memo=function(e,t){return{$$typeof:l,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=I.transition;I.transition={};try{e()}finally{I.transition=t}},t.unstable_act=T,t.useCallback=function(e,t){return P.current.useCallback(e,t)},t.useContext=function(e){return P.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return P.current.useDeferredValue(e)},t.useEffect=function(e,t){return P.current.useEffect(e,t)},t.useId=function(){return P.current.useId()},t.useImperativeHandle=function(e,t,r){return P.current.useImperativeHandle(e,t,r)},t.useInsertionEffect=function(e,t){return P.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return P.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return P.current.useMemo(e,t)},t.useReducer=function(e,t,r){return P.current.useReducer(e,t,r)},t.useRef=function(e){return P.current.useRef(e)},t.useState=function(e){return P.current.useState(e)},t.useSyncExternalStore=function(e,t,r){return P.current.useSyncExternalStore(e,t,r)},t.useTransition=function(){return P.current.useTransition()},t.version="18.3.1"},63696:function(e,t,r){e.exports=r(14403)}}]);
@@ -1,2 +0,0 @@
1
- /*! For license information please see 153.a05b947a.js.LICENSE.txt */
2
- (self.chunk_StatusHistoryChart=self.chunk_StatusHistoryChart||[]).push([["153"],{21047:function(t,r,e){"use strict";function n(t){return!!t?.startsWith("/")}function i(t){if(!t)throw Error("Input string cannot be empty");if(!n(t))return RegExp(`^${t}$`);let r=t.match(/^\/(.+)\/([gimy]*)$/);if(!r)throw Error(`Invalid regular expression format: ${t}`);let[,e="",i=""]=r;try{return new RegExp(e,i)}catch(t){throw Error(`Failed to create RegExp ${t}`)}}e.d(r,{f:()=>i,i:()=>n})},99415:function(t,r,e){"use strict";e.d(r,{hN:()=>ej,rT:()=>eD,l$:()=>ek});var n=e(68102);function i(t){return"number"==typeof t}function o(t){return!!t&&"object"==typeof t&&"function"==typeof t.constructor&&(!0===t.isBigNumber&&"object"==typeof t.constructor.prototype&&!0===t.constructor.prototype.isBigNumber||"function"==typeof t.constructor.isDecimal&&!0===t.constructor.isDecimal(t))}function s(t){return t&&"object"==typeof t&&!0===Object.getPrototypeOf(t).isComplex||!1}function a(t){return t&&"object"==typeof t&&!0===Object.getPrototypeOf(t).isFraction||!1}function u(t){return t&&!0===t.constructor.prototype.isUnit||!1}function f(t){return"string"==typeof t}var c=Array.isArray;function h(t){return t&&!0===t.constructor.prototype.isMatrix||!1}function p(t){return Array.isArray(t)||h(t)}function l(t){return t&&t.isDenseMatrix&&!0===t.constructor.prototype.isMatrix||!1}function d(t){return t&&t.isSparseMatrix&&!0===t.constructor.prototype.isMatrix||!1}function m(t){return t&&!0===t.constructor.prototype.isRange||!1}function g(t){return t&&!0===t.constructor.prototype.isIndex||!1}function v(t){return"boolean"==typeof t}function y(t){return t&&!0===t.constructor.prototype.isResultSet||!1}function w(t){return t&&!0===t.constructor.prototype.isHelp||!1}function x(t){return"function"==typeof t}function b(t){return t instanceof Date}function N(t){return t instanceof RegExp}function _(t){return!!(t&&"object"==typeof t&&t.constructor===Object&&!s(t)&&!a(t))}function M(t){return null===t}function E(t){return void 0===t}function O(t){return t&&!0===t.isAccessorNode&&!0===t.constructor.prototype.isNode||!1}function A(t){return t&&!0===t.isArrayNode&&!0===t.constructor.prototype.isNode||!1}function z(t){return t&&!0===t.isAssignmentNode&&!0===t.constructor.prototype.isNode||!1}function S(t){return t&&!0===t.isBlockNode&&!0===t.constructor.prototype.isNode||!1}function C(t){return t&&!0===t.isConditionalNode&&!0===t.constructor.prototype.isNode||!1}function F(t){return t&&!0===t.isConstantNode&&!0===t.constructor.prototype.isNode||!1}function I(t){return t&&!0===t.isFunctionAssignmentNode&&!0===t.constructor.prototype.isNode||!1}function T(t){return t&&!0===t.isFunctionNode&&!0===t.constructor.prototype.isNode||!1}function j(t){return t&&!0===t.isIndexNode&&!0===t.constructor.prototype.isNode||!1}function D(t){return t&&!0===t.isNode&&!0===t.constructor.prototype.isNode||!1}function k(t){return t&&!0===t.isObjectNode&&!0===t.constructor.prototype.isNode||!1}function R(t){return t&&!0===t.isOperatorNode&&!0===t.constructor.prototype.isNode||!1}function P(t){return t&&!0===t.isParenthesisNode&&!0===t.constructor.prototype.isNode||!1}function B(t){return t&&!0===t.isRangeNode&&!0===t.constructor.prototype.isNode||!1}function q(t){return t&&!0===t.isSymbolNode&&!0===t.constructor.prototype.isNode||!1}function U(t){return t&&!0===t.constructor.prototype.isChain||!1}function Z(t){var r=typeof t;return"object"===r?null===t?"null":Array.isArray(t)?"Array":t instanceof Date?"Date":t instanceof RegExp?"RegExp":o(t)?"BigNumber":s(t)?"Complex":a(t)?"Fraction":h(t)?"Matrix":u(t)?"Unit":g(t)?"Index":m(t)?"Range":y(t)?"ResultSet":D(t)?t.type:U(t)?"Chain":w(t)?"Help":"Object":"function"===r?"Function":r}function L(t){var r=typeof t;if("number"===r||"string"===r||"boolean"===r||null==t)return t;if("function"==typeof t.clone)return t.clone();if(Array.isArray(t))return t.map(function(t){return L(t)});if(t instanceof Date)return new Date(t.valueOf());if(o(t))return t;if(t instanceof RegExp)throw TypeError("Cannot clone "+t);return H(t,L)}function H(t,r){var e={};for(var n in t)$(t,n)&&(e[n]=r(t[n]));return e}function W(t,r){var e,n,i;if(Array.isArray(t)){if(!Array.isArray(r)||t.length!==r.length)return!1;for(n=0,i=t.length;n<i;n++)if(!W(t[n],r[n]))return!1;return!0}if("function"==typeof t)return t===r;if(!(t instanceof Object))return t===r;if(Array.isArray(r)||!(r instanceof Object))return!1;for(e in t)if(!(e in r)||!W(t[e],r[e]))return!1;for(e in r)if(!(e in t))return!1;return!0}function J(t,r,e){var n,i=!0;Object.defineProperty(t,r,{get:function(){return i&&(n=e(),i=!1),n},set:function(t){n=t,i=!1},configurable:!0,enumerable:!0})}function $(t,r){return t&&Object.hasOwnProperty.call(t,r)}function V(t){return Object.keys(t).map(r=>t[r])}var Y=e(23420);function G(t,r,e,n){function i(n){var i=function(t,r){for(var e={},n=0;n<r.length;n++){var i=r[n],o=t[i];void 0!==o&&(e[i]=o)}return e}(n,r.map(K));return function(t,r,e){if(!r.filter(t=>{var r;return!((r=t)&&"?"===r[0])}).every(t=>void 0!==e[t])){var n=r.filter(t=>void 0===e[t]);throw Error('Cannot create function "'.concat(t,'", ')+"some dependencies are missing: ".concat(n.map(t=>'"'.concat(t,'"')).join(", "),"."))}}(t,r,n),e(i)}return i.isFactory=!0,i.fn=t,i.dependencies=r.slice().sort(),n&&(i.meta=n),i}function X(t){return"function"==typeof t&&"string"==typeof t.fn&&Array.isArray(t.dependencies)}function K(t){return t&&"?"===t[0]?t.slice(1):t}function Q(t){return"boolean"==typeof t||!!isFinite(t)&&t===Math.round(t)}function tt(t,r,e){var n="";if(e){if(e<1)throw Error("size must be in greater than 0");if(!Q(e))throw Error("size must be an integer");if(t>2**(e-1)-1||t<-(2**(e-1)))throw Error("Value must be in range [-2^".concat(e-1,", 2^").concat(e-1,"-1]"));if(!Q(t))throw Error("Value must be an integer");t<0&&(t+=2**e),n="i".concat(e)}var i="";return t<0&&(t=-t,i="-"),"".concat(i).concat({2:"0b",8:"0o",16:"0x"}[r]).concat(t.toString(r)).concat(n)}function tr(t,r){if("function"==typeof r)return r(t);if(t===1/0)return"Infinity";if(t===-1/0)return"-Infinity";if(isNaN(t))return"NaN";var e,n,o="auto";if(r&&(r.notation&&(o=r.notation),i(r)?e=r:i(r.precision)&&(e=r.precision),r.wordSize)&&"number"!=typeof(n=r.wordSize))throw Error('Option "wordSize" must be a number');switch(o){case"fixed":return function(t,r){if(isNaN(t)||!isFinite(t))return String(t);var e=te(t),n="number"==typeof r?ti(e,e.exponent+1+r):e,i=n.coefficients,o=n.exponent+1,s=o+(r||0);return i.length<s&&(i=i.concat(to(s-i.length))),o<0&&(i=to(-o+1).concat(i),o=1),o<i.length&&i.splice(o,0,0===o?"0.":"."),n.sign+i.join("")}(t,e);case"exponential":return tn(t,e);case"engineering":return function(t,r){if(isNaN(t)||!isFinite(t))return String(t);var e=ti(te(t),r),n=e.exponent,o=e.coefficients,s=n%3==0?n:n<0?n-3-n%3:n-n%3;if(i(r))for(;r>o.length||n-s+1>o.length;)o.push(0);else for(var a=Math.abs(n-s)-(o.length-1),u=0;u<a;u++)o.push(0);for(var f=Math.abs(n-s),c=1;f>0;)c++,f--;var h=o.slice(c).join(""),p=i(r)&&h.length||h.match(/[1-9]/)?"."+h:"",l=o.slice(0,c).join("")+p+"e"+(n>=0?"+":"")+s.toString();return e.sign+l}(t,e);case"bin":return tt(t,2,n);case"oct":return tt(t,8,n);case"hex":return tt(t,16,n);case"auto":return(function(t,r,e){if(isNaN(t)||!isFinite(t))return String(t);var n=e&&void 0!==e.lowerExp?e.lowerExp:-3,i=e&&void 0!==e.upperExp?e.upperExp:5,o=te(t),s=r?ti(o,r):o;if(s.exponent<n||s.exponent>=i)return tn(t,r);var a=s.coefficients,u=s.exponent;a.length<r&&(a=a.concat(to(r-a.length))),a=a.concat(to(u-a.length+1+(a.length<r?r-a.length:0))),a=to(-u).concat(a);var f=u>0?u:0;return f<a.length-1&&a.splice(f+1,0,"."),s.sign+a.join("")})(t,e,r&&r).replace(/((\.\d*?)(0+))($|e)/,function(){var t=arguments[2],r=arguments[4];return"."!==t?t+r:r});default:throw Error('Unknown notation "'+o+'". Choose "auto", "exponential", "fixed", "bin", "oct", or "hex.')}}function te(t){var r=String(t).toLowerCase().match(/^(-?)(\d+\.?\d*)(e([+-]?\d+))?$/);if(!r)throw SyntaxError("Invalid number "+t);var e=r[1],n=r[2],i=parseFloat(r[4]||"0"),o=n.indexOf(".");i+=-1!==o?o-1:n.length-1;var s=n.replace(".","").replace(/^0*/,function(t){return i-=t.length,""}).replace(/0*$/,"").split("").map(function(t){return parseInt(t)});return 0===s.length&&(s.push(0),i++),{sign:e,coefficients:s,exponent:i}}function tn(t,r){if(isNaN(t)||!isFinite(t))return String(t);var e=te(t),n=r?ti(e,r):e,i=n.coefficients,o=n.exponent;i.length<r&&(i=i.concat(to(r-i.length)));var s=i.shift();return n.sign+s+(i.length>0?"."+i.join(""):"")+"e"+(o>=0?"+":"")+o}function ti(t,r){for(var e={sign:t.sign,coefficients:t.coefficients,exponent:t.exponent},n=e.coefficients;r<=0;)n.unshift(0),e.exponent++,r++;if(n.length>r&&n.splice(r,n.length-r)[0]>=5){var i=r-1;for(n[i]++;10===n[i];)n.pop(),0===i&&(n.unshift(0),e.exponent++,i++),i--,n[i]++}return e}function to(t){for(var r=[],e=0;e<t;e++)r.push(0);return r}var ts=Number.EPSILON||2220446049250313e-31;function ta(t,r,e){if(null==e)return t===r;if(t===r)return!0;if(isNaN(t)||isNaN(r))return!1;if(isFinite(t)&&isFinite(r)){var n=Math.abs(t-r);return n<ts||n<=Math.max(Math.abs(t),Math.abs(r))*e}return!1}function tu(t,r,e){var n=new t.constructor(2),i="";if(e){if(e<1)throw Error("size must be in greater than 0");if(!Q(e))throw Error("size must be an integer");if(t.greaterThan(n.pow(e-1).sub(1))||t.lessThan(n.pow(e-1).mul(-1)))throw Error("Value must be in range [-2^".concat(e-1,", 2^").concat(e-1,"-1]"));if(!t.isInteger())throw Error("Value must be an integer");t.lessThan(0)&&(t=t.add(n.pow(e))),i="i".concat(e)}switch(r){case 2:return"".concat(t.toBinary()).concat(i);case 8:return"".concat(t.toOctal()).concat(i);case 16:return"".concat(t.toHexadecimal()).concat(i);default:throw Error("Base ".concat(r," not supported "))}}function tf(t,r){return void 0!==r?t.toExponential(r-1):t.toExponential()}function tc(t,r){var e=function(t,r){var e;if("number"==typeof t)return tr(t,r);if(o(t))return function(t,r){if("function"==typeof r)return r(t);if(!t.isFinite())return t.isNaN()?"NaN":t.gt(0)?"Infinity":"-Infinity";var e="auto";if(void 0!==r&&(r.notation&&(e=r.notation),"number"==typeof r?h=r:r.precision&&(h=r.precision),r.wordSize)&&"number"!=typeof(p=r.wordSize))throw Error('Option "wordSize" must be a number');switch(e){case"fixed":return n=t,i=h,n.toFixed(i);case"exponential":return tf(t,h);case"engineering":return o=t,s=h,u=(a=o.e)%3==0?a:a<0?a-3-a%3:a-a%3,-1!==(c=(f=o.mul(Math.pow(10,-u))).toPrecision(s)).indexOf("e")&&(c=f.toString()),c+"e"+(a>=0?"+":"")+u.toString();case"bin":return tu(t,2,p);case"oct":return tu(t,8,p);case"hex":return tu(t,16,p);case"auto":var n,i,o,s,a,u,f,c,h,p,l=r&&void 0!==r.lowerExp?r.lowerExp:-3,d=r&&void 0!==r.upperExp?r.upperExp:5;if(t.isZero())return"0";var m=t.toSignificantDigits(h),g=m.e;return(g>=l&&g<d?m.toFixed():tf(t,h)).replace(/((\.\d*?)(0+))($|e)/,function(){var t=arguments[2],r=arguments[4];return"."!==t?t+r:r});default:throw Error('Unknown notation "'+e+'". Choose "auto", "exponential", "fixed", "bin", "oct", or "hex.')}}(t,r);if((e=t)&&"object"==typeof e&&"number"==typeof e.s&&"number"==typeof e.n&&"number"==typeof e.d)if(!r||"decimal"!==r.fraction)return t.s*t.n+"/"+t.d;else return t.toString();if(Array.isArray(t))return function t(r,e){if(!Array.isArray(r))return tc(r,e);for(var n="[",i=r.length,o=0;o<i;o++)0!==o&&(n+=", "),n+=t(r[o],e);return n+"]"}(t,r);if(f(t))return'"'+t+'"';if("function"==typeof t)return t.syntax?String(t.syntax):"function";if(t&&"object"==typeof t)if("function"==typeof t.format)return t.format(r);else return t&&t.toString(r)!==({}).toString()?t.toString(r):"{"+Object.keys(t).map(e=>'"'+e+'": '+tc(t[e],r)).join(", ")+"}";return String(t)}(t,r);return r&&"object"==typeof r&&"truncate"in r&&e.length>r.truncate?e.substring(0,r.truncate-3)+"...":e}function th(t,r,e){if(!(this instanceof th))throw SyntaxError("Constructor must be called with the new operator");this.actual=t,this.expected=r,this.relation=e,this.message="Dimension mismatch ("+(Array.isArray(t)?"["+t.join(", ")+"]":t)+" "+(this.relation||"!=")+" "+(Array.isArray(r)?"["+r.join(", ")+"]":r)+")",this.stack=Error().stack}function tp(t,r,e){if(!(this instanceof tp))throw SyntaxError("Constructor must be called with the new operator");this.index=t,arguments.length<3?(this.min=0,this.max=r):(this.min=r,this.max=e),void 0!==this.min&&this.index<this.min?this.message="Index out of range ("+this.index+" < "+this.min+")":void 0!==this.max&&this.index>=this.max?this.message="Index out of range ("+this.index+" > "+(this.max-1)+")":this.message="Index out of range ("+this.index+")",this.stack=Error().stack}function tl(t){for(var r=[];Array.isArray(t);)r.push(t.length),t=t[0];return r}function td(t,r){if(0===r.length){if(Array.isArray(t))throw new th(t.length,0)}else!function t(r,e,n){var i,o=r.length;if(o!==e[n])throw new th(o,e[n]);if(n<e.length-1){var s=n+1;for(i=0;i<o;i++){if(!Array.isArray(r[i]))throw new th(e.length-1,e.length,"<");t(r[i],e,s)}}else for(i=0;i<o;i++)if(Array.isArray(r[i]))throw new th(e.length+1,e.length,">")}(t,r,0)}function tm(t,r){if(!i(t)||!Q(t))throw TypeError("Index must be an integer (value: "+t+")");if(t<0||"number"==typeof r&&t>=r)throw new tp(t,r)}function tg(t,r,e){if(!Array.isArray(t)||!Array.isArray(r))throw TypeError("Array expected");if(0===r.length)throw Error("Resizing to scalar is not supported");return r.forEach(function(t){if(!i(t)||!Q(t)||t<0)throw TypeError("Invalid size, must contain positive integers (size: "+tc(r)+")")}),function t(r,e,n,i){var o,s,a=r.length,u=e[n],f=Math.min(a,u);if(r.length=u,n<e.length-1){var c=n+1;for(o=0;o<f;o++)Array.isArray(s=r[o])||(s=[s],r[o]=s),t(s,e,c,i);for(o=f;o<u;o++)s=[],r[o]=s,t(s,e,c,i)}else{for(o=0;o<f;o++)for(;Array.isArray(r[o]);)r[o]=r[o][0];for(o=f;o<u;o++)r[o]=i}}(t,r,0,void 0!==e?e:0),t}function tv(t,r){var e=ty(t),n=t.slice(),i=t.indexOf(-1);if(t.indexOf(-1,i+1)>=0)throw Error("More than one wildcard in sizes");if(i>=0)if(r%e==0)n[i]=-r/e;else throw Error("Could not replace wildcard, since "+r+" is no multiple of "+-e);return n}function ty(t){return t.reduce((t,r)=>t*r,1)}function tw(t,r,e,n){var i=n||tl(t);if(e)for(var o=0;o<e;o++)t=[t],i.unshift(1);for(t=function t(r,e,n){var i,o;if(Array.isArray(r)){var s=n+1;for(i=0,o=r.length;i<o;i++)r[i]=t(r[i],e,s)}else for(var a=n;a<e;a++)r=[r];return r}(t,r,0);i.length<r;)i.push(1);return t}function tx(t,r){for(var e,n=0,i=0;i<t.length;i++){var o=t[i],s=Array.isArray(o);if(0===i&&s&&(n=o.length),s&&o.length!==n)return;var a=s?tx(o,r):r(o);if(void 0===e)e=a;else if(e!==a)return"mixed"}return e}function tb(t,r){return -1!==t.indexOf(r)}function tN(t,r,e,n){if(!(this instanceof tN))throw SyntaxError("Constructor must be called with the new operator");this.fn=t,this.count=r,this.min=e,this.max=n,this.message="Wrong number of arguments in function "+t+" ("+r+" provided, "+e+(null!=n?"-"+n:"")+" expected)",this.stack=Error().stack}th.prototype=RangeError(),th.prototype.constructor=RangeError,th.prototype.name="DimensionError",th.prototype.isDimensionError=!0,tp.prototype=RangeError(),tp.prototype.constructor=RangeError,tp.prototype.name="IndexError",tp.prototype.isIndexError=!0,tN.prototype=Error(),tN.prototype.constructor=Error,tN.prototype.name="ArgumentsError",tN.prototype.isArgumentsError=!0;var t_={epsilon:1e-12,matrix:"Matrix",number:"number",precision:64,predictable:!1,randomSeed:null},tM=["Matrix","Array"],tE=["number","BigNumber","Fraction"];function tO(t,r,e){var n;void 0!==t[r]&&(n=t[r],-1===e.indexOf(n))&&console.warn('Warning: Unknown value "'+t[r]+'" for configuration option "'+r+'". Available options: '+e.map(t=>JSON.stringify(t)).join(", ")+".")}var tA,tz,tS="0123456789abcdef",tC="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",tF="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",tI={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-9e15,maxE:9e15,crypto:!1},tT=!0,tj="[DecimalError] ",tD=tj+"Invalid argument: ",tk=tj+"Precision limit exceeded",tR=tj+"crypto unavailable",tP="[object Decimal]",tB=Math.floor,tq=Math.pow,tU=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,tZ=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,tL=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,tH=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,tW=tC.length-1,tJ=tF.length-1,t$={toStringTag:tP};function tV(t){var r,e,n,i=t.length-1,o="",s=t[0];if(i>0){for(o+=s,r=1;r<i;r++)(e=7-(n=t[r]+"").length)&&(o+=t3(e)),o+=n;(e=7-(n=(s=t[r])+"").length)&&(o+=t3(e))}else if(0===s)return"0";for(;s%10==0;)s/=10;return o+s}function tY(t,r,e){if(t!==~~t||t<r||t>e)throw Error(tD+t)}function tG(t,r,e,n){var i,o,s,a;for(o=t[0];o>=10;o/=10)--r;return--r<0?(r+=7,i=0):(i=Math.ceil((r+1)/7),r%=7),o=tq(10,7-r),a=t[i]%o|0,null==n?r<3?(0==r?a=a/100|0:1==r&&(a=a/10|0),s=e<4&&99999==a||e>3&&49999==a||5e4==a||0==a):s=(e<4&&a+1==o||e>3&&a+1==o/2)&&(t[i+1]/o/100|0)==tq(10,r-2)-1||(a==o/2||0==a)&&(t[i+1]/o/100|0)==0:r<4?(0==r?a=a/1e3|0:1==r?a=a/100|0:2==r&&(a=a/10|0),s=(n||e<4)&&9999==a||!n&&e>3&&4999==a):s=((n||e<4)&&a+1==o||!n&&e>3&&a+1==o/2)&&(t[i+1]/o/1e3|0)==tq(10,r-3)-1,s}function tX(t,r,e){for(var n,i,o=[0],s=0,a=t.length;s<a;){for(i=o.length;i--;)o[i]*=r;for(o[0]+=tS.indexOf(t.charAt(s++)),n=0;n<o.length;n++)o[n]>e-1&&(void 0===o[n+1]&&(o[n+1]=0),o[n+1]+=o[n]/e|0,o[n]%=e)}return o.reverse()}t$.absoluteValue=t$.abs=function(){var t=new this.constructor(this);return t.s<0&&(t.s=1),tQ(t)},t$.ceil=function(){return tQ(new this.constructor(this),this.e+1,2)},t$.clampedTo=t$.clamp=function(t,r){var e=this.constructor;if(t=new e(t),r=new e(r),!t.s||!r.s)return new e(NaN);if(t.gt(r))throw Error(tD+r);return 0>this.cmp(t)?t:this.cmp(r)>0?r:new e(this)},t$.comparedTo=t$.cmp=function(t){var r,e,n,i,o=this.d,s=(t=new this.constructor(t)).d,a=this.s,u=t.s;if(!o||!s)return a&&u?a!==u?a:o===s?0:!o^a<0?1:-1:NaN;if(!o[0]||!s[0])return o[0]?a:s[0]?-u:0;if(a!==u)return a;if(this.e!==t.e)return this.e>t.e^a<0?1:-1;for(r=0,e=(n=o.length)<(i=s.length)?n:i;r<e;++r)if(o[r]!==s[r])return o[r]>s[r]^a<0?1:-1;return n===i?0:n>i^a<0?1:-1},t$.cosine=t$.cos=function(){var t,r,e=this,n=e.constructor;return e.d?e.d[0]?(t=n.precision,r=n.rounding,n.precision=t+Math.max(e.e,e.sd())+7,n.rounding=1,e=function(t,r){var e,n,i;if(r.isZero())return r;(n=r.d.length)<32?i=(1/ri(4,e=Math.ceil(n/3))).toString():(e=16,i="2.3283064365386962890625e-10"),t.precision+=e,r=rn(t,1,r.times(i),new t(1));for(var o=e;o--;){var s=r.times(r);r=s.times(s).minus(s).times(8).plus(1)}return t.precision-=e,r}(n,ro(n,e)),n.precision=t,n.rounding=r,tQ(2==tz||3==tz?e.neg():e,t,r,!0)):new n(1):new n(NaN)},t$.cubeRoot=t$.cbrt=function(){var t,r,e,n,i,o,s,a,u,f,c=this.constructor;if(!this.isFinite()||this.isZero())return new c(this);for(tT=!1,(o=this.s*tq(this.s*this,1/3))&&Math.abs(o)!=1/0?n=new c(o.toString()):(e=tV(this.d),(o=((t=this.e)-e.length+1)%3)&&(e+=1==o||-2==o?"0":"00"),o=tq(e,1/3),t=tB((t+1)/3)-(t%3==(t<0?-1:2)),(n=new c(e=o==1/0?"5e"+t:(e=o.toExponential()).slice(0,e.indexOf("e")+1)+t)).s=this.s),s=(t=c.precision)+3;;)if(n=tK((f=(u=(a=n).times(a).times(a)).plus(this)).plus(this).times(a),f.plus(u),s+2,1),tV(a.d).slice(0,s)===(e=tV(n.d)).slice(0,s)){if("9999"!=(e=e.slice(s-3,s+1))&&(i||"4999"!=e)){+e&&(+e.slice(1)||"5"!=e.charAt(0))||(tQ(n,t+1,1),r=!n.times(n).times(n).eq(this));break}if(!i&&(tQ(a,t+1,0),a.times(a).times(a).eq(this))){n=a;break}s+=4,i=1}return tT=!0,tQ(n,t,c.rounding,r)},t$.decimalPlaces=t$.dp=function(){var t,r=this.d,e=NaN;if(r){if(e=((t=r.length-1)-tB(this.e/7))*7,t=r[t])for(;t%10==0;t/=10)e--;e<0&&(e=0)}return e},t$.dividedBy=t$.div=function(t){return tK(this,new this.constructor(t))},t$.dividedToIntegerBy=t$.divToInt=function(t){var r=this.constructor;return tQ(tK(this,new r(t),0,1,1),r.precision,r.rounding)},t$.equals=t$.eq=function(t){return 0===this.cmp(t)},t$.floor=function(){return tQ(new this.constructor(this),this.e+1,3)},t$.greaterThan=t$.gt=function(t){return this.cmp(t)>0},t$.greaterThanOrEqualTo=t$.gte=function(t){var r=this.cmp(t);return 1==r||0===r},t$.hyperbolicCosine=t$.cosh=function(){var t,r,e,n,i,o=this,s=o.constructor,a=new s(1);if(!o.isFinite())return new s(o.s?1/0:NaN);if(o.isZero())return a;e=s.precision,n=s.rounding,s.precision=e+Math.max(o.e,o.sd())+4,s.rounding=1,(i=o.d.length)<32?r=(1/ri(4,t=Math.ceil(i/3))).toString():(t=16,r="2.3283064365386962890625e-10"),o=rn(s,1,o.times(r),new s(1),!0);for(var u,f=t,c=new s(8);f--;)u=o.times(o),o=a.minus(u.times(c.minus(u.times(c))));return tQ(o,s.precision=e,s.rounding=n,!0)},t$.hyperbolicSine=t$.sinh=function(){var t,r,e,n,i=this,o=i.constructor;if(!i.isFinite()||i.isZero())return new o(i);if(r=o.precision,e=o.rounding,o.precision=r+Math.max(i.e,i.sd())+4,o.rounding=1,(n=i.d.length)<3)i=rn(o,2,i,i,!0);else{t=(t=1.4*Math.sqrt(n))>16?16:0|t,i=rn(o,2,i=i.times(1/ri(5,t)),i,!0);for(var s,a=new o(5),u=new o(16),f=new o(20);t--;)s=i.times(i),i=i.times(a.plus(s.times(u.times(s).plus(f))))}return o.precision=r,o.rounding=e,tQ(i,r,e,!0)},t$.hyperbolicTangent=t$.tanh=function(){var t,r,e=this.constructor;return this.isFinite()?this.isZero()?new e(this):(t=e.precision,r=e.rounding,e.precision=t+7,e.rounding=1,tK(this.sinh(),this.cosh(),e.precision=t,e.rounding=r)):new e(this.s)},t$.inverseCosine=t$.acos=function(){var t=this,r=t.constructor,e=t.abs().cmp(1),n=r.precision,i=r.rounding;return -1!==e?0===e?t.isNeg()?t7(r,n,i):new r(0):new r(NaN):t.isZero()?t7(r,n+4,i).times(.5):(r.precision=n+6,r.rounding=1,t=new r(1).minus(t).div(t.plus(1)).sqrt().atan(),r.precision=n,r.rounding=i,t.times(2))},t$.inverseHyperbolicCosine=t$.acosh=function(){var t,r,e=this,n=e.constructor;return e.lte(1)?new n(e.eq(1)?0:NaN):e.isFinite()?(t=n.precision,r=n.rounding,n.precision=t+Math.max(Math.abs(e.e),e.sd())+4,n.rounding=1,tT=!1,e=e.times(e).minus(1).sqrt().plus(e),tT=!0,n.precision=t,n.rounding=r,e.ln()):new n(e)},t$.inverseHyperbolicSine=t$.asinh=function(){var t,r,e=this,n=e.constructor;return!e.isFinite()||e.isZero()?new n(e):(t=n.precision,r=n.rounding,n.precision=t+2*Math.max(Math.abs(e.e),e.sd())+6,n.rounding=1,tT=!1,e=e.times(e).plus(1).sqrt().plus(e),tT=!0,n.precision=t,n.rounding=r,e.ln())},t$.inverseHyperbolicTangent=t$.atanh=function(){var t,r,e,n,i=this,o=i.constructor;return i.isFinite()?i.e>=0?new o(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(t=o.precision,r=o.rounding,Math.max(n=i.sd(),t)<-(2*i.e)-1)?tQ(new o(i),t,r,!0):(o.precision=e=n-i.e,i=tK(i.plus(1),new o(1).minus(i),e+t,1),o.precision=t+4,o.rounding=1,i=i.ln(),o.precision=t,o.rounding=r,i.times(.5)):new o(NaN)},t$.inverseSine=t$.asin=function(){var t,r,e,n,i=this,o=i.constructor;return i.isZero()?new o(i):(r=i.abs().cmp(1),e=o.precision,n=o.rounding,-1!==r)?0===r?((t=t7(o,e+4,n).times(.5)).s=i.s,t):new o(NaN):(o.precision=e+6,o.rounding=1,i=i.div(new o(1).minus(i.times(i)).sqrt().plus(1)).atan(),o.precision=e,o.rounding=n,i.times(2))},t$.inverseTangent=t$.atan=function(){var t,r,e,n,i,o,s,a,u,f=this,c=f.constructor,h=c.precision,p=c.rounding;if(f.isFinite()){if(f.isZero())return new c(f);else if(f.abs().eq(1)&&h+4<=tJ)return(s=t7(c,h+4,p).times(.25)).s=f.s,s}else{if(!f.s)return new c(NaN);if(h+4<=tJ)return(s=t7(c,h+4,p).times(.5)).s=f.s,s}for(c.precision=a=h+10,c.rounding=1,t=e=Math.min(28,a/7+2|0);t;--t)f=f.div(f.times(f).plus(1).sqrt().plus(1));for(tT=!1,r=Math.ceil(a/7),n=1,u=f.times(f),s=new c(f),i=f;-1!==t;)if(i=i.times(u),o=s.minus(i.div(n+=2)),i=i.times(u),void 0!==(s=o.plus(i.div(n+=2))).d[r])for(t=r;s.d[t]===o.d[t]&&t--;);return e&&(s=s.times(2<<e-1)),tT=!0,tQ(s,c.precision=h,c.rounding=p,!0)},t$.isFinite=function(){return!!this.d},t$.isInteger=t$.isInt=function(){return!!this.d&&tB(this.e/7)>this.d.length-2},t$.isNaN=function(){return!this.s},t$.isNegative=t$.isNeg=function(){return this.s<0},t$.isPositive=t$.isPos=function(){return this.s>0},t$.isZero=function(){return!!this.d&&0===this.d[0]},t$.lessThan=t$.lt=function(t){return 0>this.cmp(t)},t$.lessThanOrEqualTo=t$.lte=function(t){return 1>this.cmp(t)},t$.logarithm=t$.log=function(t){var r,e,n,i,o,s,a,u=this.constructor,f=u.precision,c=u.rounding;if(null==t)t=new u(10),r=!0;else{if(e=(t=new u(t)).d,t.s<0||!e||!e[0]||t.eq(1))return new u(NaN);r=t.eq(10)}if(e=this.d,this.s<0||!e||!e[0]||this.eq(1))return new u(e&&!e[0]?-1/0:1!=this.s?NaN:e?0:1/0);if(r)if(e.length>1)i=!0;else{for(n=e[0];n%10==0;)n/=10;i=1!==n}if(tT=!1,tG((a=tK(o=rt(this,s=f+5),r?t2(u,s+10):rt(t,s),s,1)).d,n=f,c))do if(s+=10,a=tK(o=rt(this,s),r?t2(u,s+10):rt(t,s),s,1),!i){+tV(a.d).slice(n+1,n+15)+1==1e14&&(a=tQ(a,f+1,0));break}while(tG(a.d,n+=10,c));return tT=!0,tQ(a,f,c)},t$.minus=t$.sub=function(t){var r,e,n,i,o,s,a,u,f,c,h,p,l=this.constructor;if(t=new l(t),!this.d||!t.d)return this.s&&t.s?this.d?t.s=-t.s:t=new l(t.d||this.s!==t.s?this:NaN):t=new l(NaN),t;if(this.s!=t.s)return t.s=-t.s,this.plus(t);if(f=this.d,p=t.d,a=l.precision,u=l.rounding,!f[0]||!p[0]){if(p[0])t.s=-t.s;else{if(!f[0])return new l(3===u?-0:0);t=new l(this)}return tT?tQ(t,a,u):t}if(e=tB(t.e/7),c=tB(this.e/7),f=f.slice(),o=c-e){for((h=o<0)?(r=f,o=-o,s=p.length):(r=p,e=c,s=f.length),o>(n=Math.max(Math.ceil(a/7),s)+2)&&(o=n,r.length=1),r.reverse(),n=o;n--;)r.push(0);r.reverse()}else{for((h=(n=f.length)<(s=p.length))&&(s=n),n=0;n<s;n++)if(f[n]!=p[n]){h=f[n]<p[n];break}o=0}for(h&&(r=f,f=p,p=r,t.s=-t.s),s=f.length,n=p.length-s;n>0;--n)f[s++]=0;for(n=p.length;n>o;){if(f[--n]<p[n]){for(i=n;i&&0===f[--i];)f[i]=1e7-1;--f[i],f[n]+=1e7}f[n]-=p[n]}for(;0===f[--s];)f.pop();for(;0===f[0];f.shift())--e;return f[0]?(t.d=f,t.e=t1(f,e),tT?tQ(t,a,u):t):new l(3===u?-0:0)},t$.modulo=t$.mod=function(t){var r,e=this.constructor;return(t=new e(t),this.d&&t.s&&(!t.d||t.d[0]))?t.d&&(!this.d||this.d[0])?(tT=!1,9==e.modulo?(r=tK(this,t.abs(),0,3,1),r.s*=t.s):r=tK(this,t,0,e.modulo,1),r=r.times(t),tT=!0,this.minus(r)):tQ(new e(this),e.precision,e.rounding):new e(NaN)},t$.naturalExponential=t$.exp=function(){return t6(this)},t$.naturalLogarithm=t$.ln=function(){return rt(this)},t$.negated=t$.neg=function(){var t=new this.constructor(this);return t.s=-t.s,tQ(t)},t$.plus=t$.add=function(t){var r,e,n,i,o,s,a,u,f,c,h=this.constructor;if(t=new h(t),!this.d||!t.d)return this.s&&t.s?this.d||(t=new h(t.d||this.s===t.s?this:NaN)):t=new h(NaN),t;if(this.s!=t.s)return t.s=-t.s,this.minus(t);if(f=this.d,c=t.d,a=h.precision,u=h.rounding,!f[0]||!c[0])return c[0]||(t=new h(this)),tT?tQ(t,a,u):t;if(o=tB(this.e/7),n=tB(t.e/7),f=f.slice(),i=o-n){for(i<0?(e=f,i=-i,s=c.length):(e=c,n=o,s=f.length),i>(s=(o=Math.ceil(a/7))>s?o+1:s+1)&&(i=s,e.length=1),e.reverse();i--;)e.push(0);e.reverse()}for((s=f.length)-(i=c.length)<0&&(i=s,e=c,c=f,f=e),r=0;i;)r=(f[--i]=f[i]+c[i]+r)/1e7|0,f[i]%=1e7;for(r&&(f.unshift(r),++n),s=f.length;0==f[--s];)f.pop();return t.d=f,t.e=t1(f,n),tT?tQ(t,a,u):t},t$.precision=t$.sd=function(t){var r;if(void 0!==t&&!!t!==t&&1!==t&&0!==t)throw Error(tD+t);return this.d?(r=t4(this.d),t&&this.e+1>r&&(r=this.e+1)):r=NaN,r},t$.round=function(){var t=this.constructor;return tQ(new t(this),this.e+1,t.rounding)},t$.sine=t$.sin=function(){var t,r,e=this,n=e.constructor;return e.isFinite()?e.isZero()?new n(e):(t=n.precision,r=n.rounding,n.precision=t+Math.max(e.e,e.sd())+7,n.rounding=1,e=function(t,r){var e,n=r.d.length;if(n<3)return r.isZero()?r:rn(t,2,r,r);e=(e=1.4*Math.sqrt(n))>16?16:0|e,r=rn(t,2,r=r.times(1/ri(5,e)),r);for(var i,o=new t(5),s=new t(16),a=new t(20);e--;)i=r.times(r),r=r.times(o.plus(i.times(s.times(i).minus(a))));return r}(n,ro(n,e)),n.precision=t,n.rounding=r,tQ(tz>2?e.neg():e,t,r,!0)):new n(NaN)},t$.squareRoot=t$.sqrt=function(){var t,r,e,n,i,o,s=this.d,a=this.e,u=this.s,f=this.constructor;if(1!==u||!s||!s[0])return new f(!u||u<0&&(!s||s[0])?NaN:s?this:1/0);for(tT=!1,0==(u=Math.sqrt(+this))||u==1/0?(((r=tV(s)).length+a)%2==0&&(r+="0"),u=Math.sqrt(r),a=tB((a+1)/2)-(a<0||a%2),n=new f(r=u==1/0?"5e"+a:(r=u.toExponential()).slice(0,r.indexOf("e")+1)+a)):n=new f(u.toString()),e=(a=f.precision)+3;;)if(n=(o=n).plus(tK(this,o,e+2,1)).times(.5),tV(o.d).slice(0,e)===(r=tV(n.d)).slice(0,e)){if("9999"!=(r=r.slice(e-3,e+1))&&(i||"4999"!=r)){+r&&(+r.slice(1)||"5"!=r.charAt(0))||(tQ(n,a+1,1),t=!n.times(n).eq(this));break}if(!i&&(tQ(o,a+1,0),o.times(o).eq(this))){n=o;break}e+=4,i=1}return tT=!0,tQ(n,a,f.rounding,t)},t$.tangent=t$.tan=function(){var t,r,e=this,n=e.constructor;return e.isFinite()?e.isZero()?new n(e):(t=n.precision,r=n.rounding,n.precision=t+10,n.rounding=1,(e=e.sin()).s=1,e=tK(e,new n(1).minus(e.times(e)).sqrt(),t+10,0),n.precision=t,n.rounding=r,tQ(2==tz||4==tz?e.neg():e,t,r,!0)):new n(NaN)},t$.times=t$.mul=function(t){var r,e,n,i,o,s,a,u,f,c=this.constructor,h=this.d,p=(t=new c(t)).d;if(t.s*=this.s,!h||!h[0]||!p||!p[0])return new c(!t.s||h&&!h[0]&&!p||p&&!p[0]&&!h?NaN:!h||!p?t.s/0:0*t.s);for(e=tB(this.e/7)+tB(t.e/7),(u=h.length)<(f=p.length)&&(o=h,h=p,p=o,s=u,u=f,f=s),o=[],n=s=u+f;n--;)o.push(0);for(n=f;--n>=0;){for(r=0,i=u+n;i>n;)a=o[i]+p[n]*h[i-n-1]+r,o[i--]=a%1e7|0,r=a/1e7|0;o[i]=(o[i]+r)%1e7|0}for(;!o[--s];)o.pop();return r?++e:o.shift(),t.d=o,t.e=t1(o,e),tT?tQ(t,c.precision,c.rounding):t},t$.toBinary=function(t,r){return rs(this,2,t,r)},t$.toDecimalPlaces=t$.toDP=function(t,r){var e=this,n=e.constructor;return(e=new n(e),void 0===t)?e:(tY(t,0,1e9),void 0===r?r=n.rounding:tY(r,0,8),tQ(e,t+e.e+1,r))},t$.toExponential=function(t,r){var e,n=this,i=n.constructor;return void 0===t?e=t0(n,!0):(tY(t,0,1e9),void 0===r?r=i.rounding:tY(r,0,8),e=t0(n=tQ(new i(n),t+1,r),!0,t+1)),n.isNeg()&&!n.isZero()?"-"+e:e},t$.toFixed=function(t,r){var e,n,i=this.constructor;return void 0===t?e=t0(this):(tY(t,0,1e9),void 0===r?r=i.rounding:tY(r,0,8),e=t0(n=tQ(new i(this),t+this.e+1,r),!1,t+n.e+1)),this.isNeg()&&!this.isZero()?"-"+e:e},t$.toFraction=function(t){var r,e,n,i,o,s,a,u,f,c,h,p,l=this.d,d=this.constructor;if(!l)return new d(this);if(f=e=new d(1),n=u=new d(0),s=(o=(r=new d(n)).e=t4(l)-this.e-1)%7,r.d[0]=tq(10,s<0?7+s:s),null==t)t=o>0?r:f;else{if(!(a=new d(t)).isInt()||a.lt(f))throw Error(tD+a);t=a.gt(r)?o>0?r:f:a}for(tT=!1,a=new d(tV(l)),c=d.precision,d.precision=o=7*l.length*2;h=tK(a,r,0,1,1),1!=(i=e.plus(h.times(n))).cmp(t);)e=n,n=i,i=f,f=u.plus(h.times(i)),u=i,i=r,r=a.minus(h.times(i)),a=i;return i=tK(t.minus(e),n,0,1,1),u=u.plus(i.times(f)),e=e.plus(i.times(n)),u.s=f.s=this.s,p=1>tK(f,n,o,1).minus(this).abs().cmp(tK(u,e,o,1).minus(this).abs())?[f,n]:[u,e],d.precision=c,tT=!0,p},t$.toHexadecimal=t$.toHex=function(t,r){return rs(this,16,t,r)},t$.toNearest=function(t,r){var e=this,n=e.constructor;if(e=new n(e),null==t){if(!e.d)return e;t=new n(1),r=n.rounding}else{if(t=new n(t),void 0===r?r=n.rounding:tY(r,0,8),!e.d)return t.s?e:t;if(!t.d)return t.s&&(t.s=e.s),t}return t.d[0]?(tT=!1,e=tK(e,t,0,r,1).times(t),tT=!0,tQ(e)):(t.s=e.s,e=t),e},t$.toNumber=function(){return+this},t$.toOctal=function(t,r){return rs(this,8,t,r)},t$.toPower=t$.pow=function(t){var r,e,n,i,o,s,a=this,u=a.constructor,f=+(t=new u(t));if(!a.d||!t.d||!a.d[0]||!t.d[0])return new u(tq(+a,f));if((a=new u(a)).eq(1))return a;if(n=u.precision,o=u.rounding,t.eq(1))return tQ(a,n,o);if((r=tB(t.e/7))>=t.d.length-1&&(e=f<0?-f:f)<=0x1fffffffffffff)return i=t5(u,a,e,n),t.s<0?new u(1).div(i):tQ(i,n,o);if((s=a.s)<0){if(r<t.d.length-1)return new u(NaN);if((1&t.d[r])==0&&(s=1),0==a.e&&1==a.d[0]&&1==a.d.length)return a.s=s,a}return(r=0!=(e=tq(+a,f))&&isFinite(e)?new u(e+"").e:tB(f*(Math.log("0."+tV(a.d))/Math.LN10+a.e+1)))>u.maxE+1||r<u.minE-1?new u(r>0?s/0:0):(tT=!1,u.rounding=a.s=1,e=Math.min(12,(r+"").length),(i=t6(t.times(rt(a,n+e)),n)).d&&tG((i=tQ(i,n+5,1)).d,n,o)&&(r=n+10,+tV((i=tQ(t6(t.times(rt(a,r+e)),r),r+5,1)).d).slice(n+1,n+15)+1==1e14&&(i=tQ(i,n+1,0))),i.s=s,tT=!0,u.rounding=o,tQ(i,n,o))},t$.toPrecision=function(t,r){var e,n=this,i=n.constructor;return void 0===t?e=t0(n,n.e<=i.toExpNeg||n.e>=i.toExpPos):(tY(t,1,1e9),void 0===r?r=i.rounding:tY(r,0,8),e=t0(n=tQ(new i(n),t,r),t<=n.e||n.e<=i.toExpNeg,t)),n.isNeg()&&!n.isZero()?"-"+e:e},t$.toSignificantDigits=t$.toSD=function(t,r){var e=this.constructor;return void 0===t?(t=e.precision,r=e.rounding):(tY(t,1,1e9),void 0===r?r=e.rounding:tY(r,0,8)),tQ(new e(this),t,r)},t$.toString=function(){var t=this.constructor,r=t0(this,this.e<=t.toExpNeg||this.e>=t.toExpPos);return this.isNeg()&&!this.isZero()?"-"+r:r},t$.truncated=t$.trunc=function(){return tQ(new this.constructor(this),this.e+1,1)},t$.valueOf=t$.toJSON=function(){var t=this.constructor,r=t0(this,this.e<=t.toExpNeg||this.e>=t.toExpPos);return this.isNeg()?"-"+r:r};var tK=function(){function t(t,r,e){var n,i=0,o=t.length;for(t=t.slice();o--;)n=t[o]*r+i,t[o]=n%e|0,i=n/e|0;return i&&t.unshift(i),t}function r(t,r,e,n){var i,o;if(e!=n)o=e>n?1:-1;else for(i=o=0;i<e;i++)if(t[i]!=r[i]){o=t[i]>r[i]?1:-1;break}return o}function e(t,r,e,n){for(var i=0;e--;)t[e]-=i,i=+(t[e]<r[e]),t[e]=i*n+t[e]-r[e];for(;!t[0]&&t.length>1;)t.shift()}return function(n,i,o,s,a,u){var f,c,h,p,l,d,m,g,v,y,w,x,b,N,_,M,E,O,A,z,S=n.constructor,C=n.s==i.s?1:-1,F=n.d,I=i.d;if(!F||!F[0]||!I||!I[0])return new S(!n.s||!i.s||(F?I&&F[0]==I[0]:!I)?NaN:F&&0==F[0]||!I?0*C:C/0);for(u?(l=1,c=n.e-i.e):(u=1e7,l=7,c=tB(n.e/l)-tB(i.e/l)),A=I.length,E=F.length,y=(v=new S(C)).d=[],h=0;I[h]==(F[h]||0);h++);if(I[h]>(F[h]||0)&&c--,null==o?(N=o=S.precision,s=S.rounding):N=a?o+(n.e-i.e)+1:o,N<0)y.push(1),d=!0;else{if(N=N/l+2|0,h=0,1==A){for(p=0,I=I[0],N++;(h<E||p)&&N--;h++)_=p*u+(F[h]||0),y[h]=_/I|0,p=_%I|0;d=p||h<E}else{for((p=u/(I[0]+1)|0)>1&&(I=t(I,p,u),F=t(F,p,u),A=I.length,E=F.length),M=A,x=(w=F.slice(0,A)).length;x<A;)w[x++]=0;(z=I.slice()).unshift(0),O=I[0],I[1]>=u/2&&++O;do p=0,(f=r(I,w,A,x))<0?(b=w[0],A!=x&&(b=b*u+(w[1]||0)),(p=b/O|0)>1?(p>=u&&(p=u-1),g=(m=t(I,p,u)).length,x=w.length,1==(f=r(m,w,g,x))&&(p--,e(m,A<g?z:I,g,u))):(0==p&&(f=p=1),m=I.slice()),(g=m.length)<x&&m.unshift(0),e(w,m,x,u),-1==f&&(x=w.length,(f=r(I,w,A,x))<1&&(p++,e(w,A<x?z:I,x,u))),x=w.length):0===f&&(p++,w=[0]),y[h++]=p,f&&w[0]?w[x++]=F[M]||0:(w=[F[M]],x=1);while((M++<E||void 0!==w[0])&&N--);d=void 0!==w[0]}y[0]||y.shift()}if(1==l)v.e=c,tA=d;else{for(h=1,p=y[0];p>=10;p/=10)h++;v.e=h+c*l-1,tQ(v,a?o+v.e+1:o,s,d)}return v}}();function tQ(t,r,e,n){var i,o,s,a,u,f,c,h,p,l=t.constructor;t:if(null!=r){if(!(h=t.d))return t;for(i=1,a=h[0];a>=10;a/=10)i++;if((o=r-i)<0)o+=7,s=r,u=(c=h[p=0])/tq(10,i-s-1)%10|0;else if((p=Math.ceil((o+1)/7))>=(a=h.length))if(n){for(;a++<=p;)h.push(0);c=u=0,i=1,o%=7,s=o-7+1}else break t;else{for(i=1,c=a=h[p];a>=10;a/=10)i++;o%=7,u=(s=o-7+i)<0?0:c/tq(10,i-s-1)%10|0}if(n=n||r<0||void 0!==h[p+1]||(s<0?c:c%tq(10,i-s-1)),f=e<4?(u||n)&&(0==e||e==(t.s<0?3:2)):u>5||5==u&&(4==e||n||6==e&&(o>0?s>0?c/tq(10,i-s):0:h[p-1])%10&1||e==(t.s<0?8:7)),r<1||!h[0])return h.length=0,f?(r-=t.e+1,h[0]=tq(10,(7-r%7)%7),t.e=-r||0):h[0]=t.e=0,t;if(0==o?(h.length=p,a=1,p--):(h.length=p+1,a=tq(10,7-o),h[p]=s>0?(c/tq(10,i-s)%tq(10,s)|0)*a:0),f)for(;;)if(0==p){for(o=1,s=h[0];s>=10;s/=10)o++;for(s=h[0]+=a,a=1;s>=10;s/=10)a++;o!=a&&(t.e++,1e7==h[0]&&(h[0]=1));break}else{if(h[p]+=a,1e7!=h[p])break;h[p--]=0,a=1}for(o=h.length;0===h[--o];)h.pop()}return tT&&(t.e>l.maxE?(t.d=null,t.e=NaN):t.e<l.minE&&(t.e=0,t.d=[0])),t}function t0(t,r,e){if(!t.isFinite())return rr(t);var n,i=t.e,o=tV(t.d),s=o.length;return r?(e&&(n=e-s)>0?o=o.charAt(0)+"."+o.slice(1)+t3(n):s>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(t.e<0?"e":"e+")+t.e):i<0?(o="0."+t3(-i-1)+o,e&&(n=e-s)>0&&(o+=t3(n))):i>=s?(o+=t3(i+1-s),e&&(n=e-i-1)>0&&(o=o+"."+t3(n))):((n=i+1)<s&&(o=o.slice(0,n)+"."+o.slice(n)),e&&(n=e-s)>0&&(i+1===s&&(o+="."),o+=t3(n))),o}function t1(t,r){var e=t[0];for(r*=7;e>=10;e/=10)r++;return r}function t2(t,r,e){if(r>tW)throw tT=!0,e&&(t.precision=e),Error(tk);return tQ(new t(tC),r,1,!0)}function t7(t,r,e){if(r>tJ)throw Error(tk);return tQ(new t(tF),r,e,!0)}function t4(t){var r=t.length-1,e=7*r+1;if(r=t[r]){for(;r%10==0;r/=10)e--;for(r=t[0];r>=10;r/=10)e++}return e}function t3(t){for(var r="";t--;)r+="0";return r}function t5(t,r,e,n){var i,o=new t(1),s=Math.ceil(n/7+4);for(tT=!1;;){if(e%2&&ra((o=o.times(r)).d,s)&&(i=!0),0===(e=tB(e/2))){e=o.d.length-1,i&&0===o.d[e]&&++o.d[e];break}ra((r=r.times(r)).d,s)}return tT=!0,o}function t9(t){return 1&t.d[t.d.length-1]}function t8(t,r,e){for(var n,i,o=new t(r[0]),s=0;++s<r.length;){if(!(i=new t(r[s])).s){o=i;break}((n=o.cmp(i))===e||0===n&&o.s===e)&&(o=i)}return o}function t6(t,r){var e,n,i,o,s,a,u,f=0,c=0,h=0,p=t.constructor,l=p.rounding,d=p.precision;if(!t.d||!t.d[0]||t.e>17)return new p(t.d?!t.d[0]?1:t.s<0?0:1/0:t.s?t.s<0?0:t:0/0);for(null==r?(tT=!1,u=d):u=r,a=new p(.03125);t.e>-2;)t=t.times(a),h+=5;for(u+=n=Math.log(tq(2,h))/Math.LN10*2+5|0,e=o=s=new p(1),p.precision=u;;){if(o=tQ(o.times(t),u,1),e=e.times(++c),tV((a=s.plus(tK(o,e,u,1))).d).slice(0,u)===tV(s.d).slice(0,u)){for(i=h;i--;)s=tQ(s.times(s),u,1);if(null!=r)return p.precision=d,s;if(!(f<3&&tG(s.d,u-n,l,f)))return tQ(s,p.precision=d,l,tT=!0);p.precision=u+=10,e=o=a=new p(1),c=0,f++}s=a}}function rt(t,r){var e,n,i,o,s,a,u,f,c,h,p,l=1,d=t,m=d.d,g=d.constructor,v=g.rounding,y=g.precision;if(d.s<0||!m||!m[0]||!d.e&&1==m[0]&&1==m.length)return new g(m&&!m[0]?-1/0:1!=d.s?NaN:m?0:d);if(null==r?(tT=!1,c=y):c=r,g.precision=c+=10,n=(e=tV(m)).charAt(0),!(15e14>Math.abs(o=d.e)))return f=t2(g,c+2,y).times(o+""),d=rt(new g(n+"."+e.slice(1)),c-10).plus(f),g.precision=y,null==r?tQ(d,y,v,tT=!0):d;for(;n<7&&1!=n||1==n&&e.charAt(1)>3;)n=(e=tV((d=d.times(t)).d)).charAt(0),l++;for(o=d.e,n>1?(d=new g("0."+e),o++):d=new g(n+"."+e.slice(1)),h=d,u=s=d=tK(d.minus(1),d.plus(1),c,1),p=tQ(d.times(d),c,1),i=3;;){if(s=tQ(s.times(p),c,1),tV((f=u.plus(tK(s,new g(i),c,1))).d).slice(0,c)===tV(u.d).slice(0,c)){if(u=u.times(2),0!==o&&(u=u.plus(t2(g,c+2,y).times(o+""))),u=tK(u,new g(l),c,1),null!=r)return g.precision=y,u;if(!tG(u.d,c-10,v,a))return tQ(u,g.precision=y,v,tT=!0);g.precision=c+=10,f=s=d=tK(h.minus(1),h.plus(1),c,1),p=tQ(d.times(d),c,1),i=a=1}u=f,i+=2}}function rr(t){return String(t.s*t.s/0)}function re(t,r){var e,n,i;for((e=r.indexOf("."))>-1&&(r=r.replace(".","")),(n=r.search(/e/i))>0?(e<0&&(e=n),e+=+r.slice(n+1),r=r.substring(0,n)):e<0&&(e=r.length),n=0;48===r.charCodeAt(n);n++);for(i=r.length;48===r.charCodeAt(i-1);--i);if(r=r.slice(n,i)){if(i-=n,t.e=e=e-n-1,t.d=[],n=(e+1)%7,e<0&&(n+=7),n<i){for(n&&t.d.push(+r.slice(0,n)),i-=7;n<i;)t.d.push(+r.slice(n,n+=7));n=7-(r=r.slice(n)).length}else n-=i;for(;n--;)r+="0";t.d.push(+r),tT&&(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 rn(t,r,e,n,i){var o,s,a,u,f=t.precision,c=Math.ceil(f/7);for(tT=!1,u=e.times(e),a=new t(n);;){if(s=tK(a.times(u),new t(r++*r++),f,1),a=i?n.plus(s):n.minus(s),n=tK(s.times(u),new t(r++*r++),f,1),void 0!==(s=a.plus(n)).d[c]){for(o=c;s.d[o]===a.d[o]&&o--;);if(-1==o)break}o=a,a=n,n=s,s=o}return tT=!0,s.d.length=c+1,s}function ri(t,r){for(var e=t;--r;)e*=t;return e}function ro(t,r){var e,n=r.s<0,i=t7(t,t.precision,1),o=i.times(.5);if((r=r.abs()).lte(o))return tz=n?4:1,r;if((e=r.divToInt(i)).isZero())tz=n?3:2;else{if((r=r.minus(e.times(i))).lte(o))return tz=t9(e)?n?2:3:n?4:1,r;tz=t9(e)?n?1:4:n?3:2}return r.minus(i).abs()}function rs(t,r,e,n){var i,o,s,a,u,f,c,h,p,l=t.constructor,d=void 0!==e;if(d?(tY(e,1,1e9),void 0===n?n=l.rounding:tY(n,0,8)):(e=l.precision,n=l.rounding),t.isFinite()){for(s=(c=t0(t)).indexOf("."),d?(i=2,16==r?e=4*e-3:8==r&&(e=3*e-2)):i=r,s>=0&&(c=c.replace(".",""),(p=new l(1)).e=c.length-s,p.d=tX(t0(p),10,i),p.e=p.d.length),o=u=(h=tX(c,10,i)).length;0==h[--u];)h.pop();if(h[0]){if(s<0?o--:((t=new l(t)).d=h,t.e=o,h=(t=tK(t,p,e,n,0,i)).d,o=t.e,f=tA),s=h[e],a=i/2,f=f||void 0!==h[e+1],f=n<4?(void 0!==s||f)&&(0===n||n===(t.s<0?3:2)):s>a||s===a&&(4===n||f||6===n&&1&h[e-1]||n===(t.s<0?8:7)),h.length=e,f)for(;++h[--e]>i-1;)h[e]=0,e||(++o,h.unshift(1));for(u=h.length;!h[u-1];--u);for(s=0,c="";s<u;s++)c+=tS.charAt(h[s]);if(d){if(u>1)if(16==r||8==r){for(s=16==r?4:3,--u;u%s;u++)c+="0";for(u=(h=tX(c,i,r)).length;!h[u-1];--u);for(s=1,c="1.";s<u;s++)c+=tS.charAt(h[s])}else c=c.charAt(0)+"."+c.slice(1);c=c+(o<0?"p":"p+")+o}else if(o<0){for(;++o;)c="0"+c;c="0."+c}else if(++o>u)for(o-=u;o--;)c+="0";else o<u&&(c=c.slice(0,o)+"."+c.slice(o))}else c=d?"0p+0":"0";c=(16==r?"0x":2==r?"0b":8==r?"0o":"")+c}else c=rr(t);return t.s<0?"-"+c:c}function ra(t,r){if(t.length>r)return t.length=r,!0}function ru(t){return new this(t).abs()}function rf(t){return new this(t).acos()}function rc(t){return new this(t).acosh()}function rh(t,r){return new this(t).plus(r)}function rp(t){return new this(t).asin()}function rl(t){return new this(t).asinh()}function rd(t){return new this(t).atan()}function rm(t){return new this(t).atanh()}function rg(t,r){t=new this(t),r=new this(r);var e,n=this.precision,i=this.rounding,o=n+4;return t.s&&r.s?t.d||r.d?!r.d||t.isZero()?(e=r.s<0?t7(this,n,i):new this(0)).s=t.s:!t.d||r.isZero()?(e=t7(this,o,1).times(.5)).s=t.s:r.s<0?(this.precision=o,this.rounding=1,e=this.atan(tK(t,r,o,1)),r=t7(this,o,1),this.precision=n,this.rounding=i,e=t.s<0?e.minus(r):e.plus(r)):e=this.atan(tK(t,r,o,1)):(e=t7(this,o,1).times(r.s>0?.25:.75)).s=t.s:e=new this(NaN),e}function rv(t){return new this(t).cbrt()}function ry(t){return tQ(t=new this(t),t.e+1,2)}function rw(t,r,e){return new this(t).clamp(r,e)}function rx(t){if(!t||"object"!=typeof t)throw Error(tj+"Object expected");var r,e,n,i=!0===t.defaults,o=["precision",1,1e9,"rounding",0,8,"toExpNeg",-9e15,0,"toExpPos",0,9e15,"maxE",0,9e15,"minE",-9e15,0,"modulo",0,9];for(r=0;r<o.length;r+=3)if(e=o[r],i&&(this[e]=tI[e]),void 0!==(n=t[e]))if(tB(n)===n&&n>=o[r+1]&&n<=o[r+2])this[e]=n;else throw Error(tD+e+": "+n);if(e="crypto",i&&(this[e]=tI[e]),void 0!==(n=t[e]))if(!0===n||!1===n||0===n||1===n)if(n)if("undefined"!=typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[e]=!0;else throw Error(tR);else this[e]=!1;else throw Error(tD+e+": "+n);return this}function rb(t){return new this(t).cos()}function rN(t){return new this(t).cosh()}function r_(t,r){return new this(t).div(r)}function rM(t){return new this(t).exp()}function rE(t){return tQ(t=new this(t),t.e+1,3)}function rO(){var t,r,e=new this(0);for(t=0,tT=!1;t<arguments.length;)if(r=new this(arguments[t++]),r.d)e.d&&(e=e.plus(r.times(r)));else{if(r.s)return tT=!0,new this(1/0);e=r}return tT=!0,e.sqrt()}function rA(t){return t instanceof rV||t&&t.toStringTag===tP||!1}function rz(t){return new this(t).ln()}function rS(t,r){return new this(t).log(r)}function rC(t){return new this(t).log(2)}function rF(t){return new this(t).log(10)}function rI(){return t8(this,arguments,-1)}function rT(){return t8(this,arguments,1)}function rj(t,r){return new this(t).mod(r)}function rD(t,r){return new this(t).mul(r)}function rk(t,r){return new this(t).pow(r)}function rR(t){var r,e,n,i,o=0,s=new this(1),a=[];if(void 0===t?t=this.precision:tY(t,1,1e9),n=Math.ceil(t/7),this.crypto)if(crypto.getRandomValues)for(r=crypto.getRandomValues(new Uint32Array(n));o<n;)(i=r[o])>=429e7?r[o]=crypto.getRandomValues(new Uint32Array(1))[0]:a[o++]=i%1e7;else if(crypto.randomBytes){for(r=crypto.randomBytes(n*=4);o<n;)(i=r[o]+(r[o+1]<<8)+(r[o+2]<<16)+((127&r[o+3])<<24))>=214e7?crypto.randomBytes(4).copy(r,o):(a.push(i%1e7),o+=4);o=n/4}else throw Error(tR);else for(;o<n;)a[o++]=1e7*Math.random()|0;for(n=a[--o],t%=7,n&&t&&(i=tq(10,7-t),a[o]=(n/i|0)*i);0===a[o];o--)a.pop();if(o<0)e=0,a=[0];else{for(e=-1;0===a[0];e-=7)a.shift();for(n=1,i=a[0];i>=10;i/=10)n++;n<7&&(e-=7-n)}return s.e=e,s.d=a,s}function rP(t){return tQ(t=new this(t),t.e+1,this.rounding)}function rB(t){return(t=new this(t)).d?t.d[0]?t.s:0*t.s:t.s||NaN}function rq(t){return new this(t).sin()}function rU(t){return new this(t).sinh()}function rZ(t){return new this(t).sqrt()}function rL(t,r){return new this(t).sub(r)}function rH(){var t=0,r=arguments,e=new this(r[0]);for(tT=!1;e.s&&++t<r.length;)e=e.plus(r[t]);return tT=!0,tQ(e,this.precision,this.rounding)}function rW(t){return new this(t).tan()}function rJ(t){return new this(t).tanh()}function r$(t){return tQ(t=new this(t),t.e+1,1)}t$[Symbol.for("nodejs.util.inspect.custom")]=t$.toString,t$[Symbol.toStringTag]="Decimal";var rV=t$.constructor=function t(r){var e,n,i;function o(t){var r,e,n;if(!(this instanceof o))return new o(t);if(this.constructor=o,rA(t)){this.s=t.s,tT?!t.d||t.e>o.maxE?(this.e=NaN,this.d=null):t.e<o.minE?(this.e=0,this.d=[0]):(this.e=t.e,this.d=t.d.slice()):(this.e=t.e,this.d=t.d?t.d.slice():t.d);return}if("number"==(n=typeof t)){if(0===t){this.s=1/t<0?-1:1,this.e=0,this.d=[0];return}if(t<0?(t=-t,this.s=-1):this.s=1,t===~~t&&t<1e7){for(r=0,e=t;e>=10;e/=10)r++;tT?r>o.maxE?(this.e=NaN,this.d=null):r<o.minE?(this.e=0,this.d=[0]):(this.e=r,this.d=[t]):(this.e=r,this.d=[t]);return}if(0*t!=0){t||(this.s=NaN),this.e=NaN,this.d=null;return}return re(this,t.toString())}if("string"===n)return 45===(e=t.charCodeAt(0))?(t=t.slice(1),this.s=-1):(43===e&&(t=t.slice(1)),this.s=1),tH.test(t)?re(this,t):function(t,r){var e,n,i,o,s,a,u,f,c;if(r.indexOf("_")>-1){if(r=r.replace(/(\d)_(?=\d)/g,"$1"),tH.test(r))return re(t,r)}else if("Infinity"===r||"NaN"===r)return+r||(t.s=NaN),t.e=NaN,t.d=null,t;if(tZ.test(r))e=16,r=r.toLowerCase();else if(tU.test(r))e=2;else if(tL.test(r))e=8;else throw Error(tD+r);for((o=r.search(/p/i))>0?(u=+r.slice(o+1),r=r.substring(2,o)):r=r.slice(2),s=(o=r.indexOf("."))>=0,n=t.constructor,s&&(o=(a=(r=r.replace(".","")).length)-o,i=t5(n,new n(e),o,2*o)),o=c=(f=tX(r,e,1e7)).length-1;0===f[o];--o)f.pop();return o<0?new n(0*t.s):(t.e=t1(f,c),t.d=f,tT=!1,s&&(t=tK(t,i,4*a)),u&&(t=t.times(54>Math.abs(u)?tq(2,u):rV.pow(2,u))),tT=!0,t)}(this,t);if("bigint"===n)return t<0?(t=-t,this.s=-1):this.s=1,re(this,t.toString());throw Error(tD+t)}if(o.prototype=t$,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=rx,o.clone=t,o.isDecimal=rA,o.abs=ru,o.acos=rf,o.acosh=rc,o.add=rh,o.asin=rp,o.asinh=rl,o.atan=rd,o.atanh=rm,o.atan2=rg,o.cbrt=rv,o.ceil=ry,o.clamp=rw,o.cos=rb,o.cosh=rN,o.div=r_,o.exp=rM,o.floor=rE,o.hypot=rO,o.ln=rz,o.log=rS,o.log10=rF,o.log2=rC,o.max=rI,o.min=rT,o.mod=rj,o.mul=rD,o.pow=rk,o.random=rR,o.round=rP,o.sign=rB,o.sin=rq,o.sinh=rU,o.sqrt=rZ,o.sub=rL,o.sum=rH,o.tan=rW,o.tanh=rJ,o.trunc=r$,void 0===r&&(r={}),r&&!0!==r.defaults)for(e=0,i=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"];e<i.length;)r.hasOwnProperty(n=i[e++])||(r[n]=this[n]);return o.config(r),o}(tI);tC=new rV(tC),tF=new rV(tF);var rY={createBigNumberClass:G("BigNumber",["?on","config"],t=>{var{on:r,config:e}=t,n=rV.clone({precision:e.precision,modulo:rV.EUCLID});return n.prototype=Object.create(n.prototype),n.prototype.type="BigNumber",n.prototype.isBigNumber=!0,n.prototype.toJSON=function(){return{mathjs:"BigNumber",value:this.toString()}},n.fromJSON=function(t){return new n(t.value)},r&&r("config",function(t,r){t.precision!==r.precision&&n.config({precision:t.precision})}),n},{isClass:!0})},rG={createMatrixClass:G("Matrix",[],()=>{function t(){if(!(this instanceof t))throw SyntaxError("Constructor must be called with the new operator")}return t.prototype.type="Matrix",t.prototype.isMatrix=!0,t.prototype.storage=function(){throw Error("Cannot invoke storage on a Matrix interface")},t.prototype.datatype=function(){throw Error("Cannot invoke datatype on a Matrix interface")},t.prototype.create=function(t,r){throw Error("Cannot invoke create on a Matrix interface")},t.prototype.subset=function(t,r,e){throw Error("Cannot invoke subset on a Matrix interface")},t.prototype.get=function(t){throw Error("Cannot invoke get on a Matrix interface")},t.prototype.set=function(t,r,e){throw Error("Cannot invoke set on a Matrix interface")},t.prototype.resize=function(t,r){throw Error("Cannot invoke resize on a Matrix interface")},t.prototype.reshape=function(t,r){throw Error("Cannot invoke reshape on a Matrix interface")},t.prototype.clone=function(){throw Error("Cannot invoke clone on a Matrix interface")},t.prototype.size=function(){throw Error("Cannot invoke size on a Matrix interface")},t.prototype.map=function(t,r){throw Error("Cannot invoke map on a Matrix interface")},t.prototype.forEach=function(t){throw Error("Cannot invoke forEach on a Matrix interface")},t.prototype[Symbol.iterator]=function(){throw Error("Cannot iterate a Matrix interface")},t.prototype.toArray=function(){throw Error("Cannot invoke toArray on a Matrix interface")},t.prototype.valueOf=function(){throw Error("Cannot invoke valueOf on a Matrix interface")},t.prototype.format=function(t){throw Error("Cannot invoke format on a Matrix interface")},t.prototype.toString=function(){throw Error("Cannot invoke toString on a Matrix interface")},t},{isClass:!0})},rX={MatrixDependencies:rG,createDenseMatrixClass:G("DenseMatrix",["Matrix"],t=>{var{Matrix:r}=t;function e(t,r){if(!(this instanceof e))throw SyntaxError("Constructor must be called with the new operator");if(r&&!f(r))throw Error("Invalid datatype: "+r);if(h(t))"DenseMatrix"===t.type?(this._data=L(t._data),this._size=L(t._size)):(this._data=t.toArray(),this._size=t.size()),this._datatype=r||t._datatype;else if(t&&c(t.data)&&c(t.size))this._data=t.data,this._size=t.size,td(this._data,this._size),this._datatype=r||t.datatype;else if(c(t))this._data=function t(r){for(var e=0,n=r.length;e<n;e++){var i=r[e];c(i)?r[e]=t(i):i&&!0===i.isMatrix&&(r[e]=t(i.valueOf()))}return r}(t),this._size=tl(this._data),td(this._data,this._size),this._datatype=r;else if(t)throw TypeError("Unsupported type of data ("+Z(t)+")");else this._data=[],this._size=[0],this._datatype=r}function n(t,r,e){if(0===r.length){for(var n=t._data;c(n);)n=n[0];return n}return t._size=r.slice(0),t._data=tg(t._data,t._size,e),t}function s(t,r,e){for(var i=t._size.slice(0),o=!1;i.length<r.length;)i.push(0),o=!0;for(var s=0,a=r.length;s<a;s++)r[s]>i[s]&&(i[s]=r[s],o=!0);o&&n(t,i,e)}return e.prototype=new r,e.prototype.createDenseMatrix=function(t,r){return new e(t,r)},e.prototype.type="DenseMatrix",e.prototype.isDenseMatrix=!0,e.prototype.getDataType=function(){return tx(this._data,Z)},e.prototype.storage=function(){return"dense"},e.prototype.datatype=function(){return this._datatype},e.prototype.create=function(t,r){return new e(t,r)},e.prototype.subset=function(t,r,n){switch(arguments.length){case 1:return function(t,r){if(!g(r))throw TypeError("Invalid index");if(r.isScalar())return t.get(r.min());var n=r.size();if(n.length!==t._size.length)throw new th(n.length,t._size.length);for(var i=r.min(),o=r.max(),s=0,a=t._size.length;s<a;s++)tm(i[s],t._size[s]),tm(o[s],t._size[s]);return new e(function t(r,e,n,i){var o=i===n-1,s=e.dimension(i);return o?s.map(function(t){return tm(t,r.length),r[t]}).valueOf():s.map(function(o){return tm(o,r.length),t(r[o],e,n,i+1)}).valueOf()}(t._data,r,n.length,0),t._datatype)}(this,t);case 2:case 3:return function(t,r,e,n){if(!r||!0!==r.isIndex)throw TypeError("Invalid index");var i,o=r.size(),a=r.isScalar();if(h(e)?(i=e.size(),e=e.valueOf()):i=tl(e),a){if(0!==i.length)throw TypeError("Scalar expected");t.set(r.min(),e,n)}else{if(o.length<t._size.length)throw new th(o.length,t._size.length,"<");if(i.length<o.length){for(var u=0,f=0;1===o[u]&&1===i[u];)u++;for(;1===o[u];)f++,u++;e=tw(e,o.length,f,i)}if(!W(o,i))throw new th(o,i,">");s(t,r.max().map(function(t){return t+1}),n);var c=o.length;!function t(r,e,n,i,o){var s=o===i-1,a=e.dimension(o);s?a.forEach(function(t,e){tm(t),r[t]=n[e[0]]}):a.forEach(function(s,a){tm(s),t(r[s],e,n[a[0]],i,o+1)})}(t._data,r,e,c,0)}return t}(this,t,r,n);default:throw SyntaxError("Wrong number of arguments")}},e.prototype.get=function(t){if(!c(t))throw TypeError("Array expected");if(t.length!==this._size.length)throw new th(t.length,this._size.length);for(var r=0;r<t.length;r++)tm(t[r],this._size[r]);for(var e=this._data,n=0,i=t.length;n<i;n++){var o=t[n];tm(o,e.length),e=e[o]}return e},e.prototype.set=function(t,r,e){if(!c(t))throw TypeError("Array expected");if(t.length<this._size.length)throw new th(t.length,this._size.length,"<");s(this,t.map(function(t){return t+1}),e);var n,i,o,a=this._data;for(n=0,i=t.length-1;n<i;n++)tm(o=t[n],a.length),a=a[o];return tm(o=t[t.length-1],a.length),a[o]=r,this},e.prototype.resize=function(t,r,e){if(!p(t))throw TypeError("Array or Matrix expected");var i=t.valueOf().map(t=>Array.isArray(t)&&1===t.length?t[0]:t);return n(e?this.clone():this,i,r)},e.prototype.reshape=function(t,r){var e=r?this.clone():this;e._data=function(t,r){var e=function(t){if(!Array.isArray(t))return t;var r=[];return t.forEach(function t(e){Array.isArray(e)?e.forEach(t):r.push(e)}),r}(t),n=e.length;if(!Array.isArray(t)||!Array.isArray(r))throw TypeError("Array expected");if(0===r.length)throw new th(0,n,"!=");var i=ty(r=tv(r,n));if(n!==i)throw new th(i,n,"!=");try{return function(t,r){for(var e,n=t,i=r.length-1;i>0;i--){var o=r[i];e=[];for(var s=n.length/o,a=0;a<s;a++)e.push(n.slice(a*o,(a+1)*o));n=e}return n}(e,r)}catch(t){if(t instanceof th)throw new th(i,n,"!=");throw t}}(e._data,t);var n=e._size.reduce((t,r)=>t*r);return e._size=tv(t,n),e},e.prototype.clone=function(){return new e({data:L(this._data),size:L(this._size),datatype:this._datatype})},e.prototype.size=function(){return this._size.slice(0)},e.prototype.map=function(t){var r=this,n=function e(n,i){return c(n)?n.map(function(t,r){return e(t,i.concat(r))}):t(n,i,r)}(this._data,[]),i=void 0!==this._datatype?tx(n,Z):void 0;return new e(n,i)},e.prototype.forEach=function(t){var r=this;!function e(n,i){c(n)?n.forEach(function(t,r){e(t,i.concat(r))}):t(n,i,r)}(this._data,[])},e.prototype[Symbol.iterator]=function*(){var t=function* t(r,e){if(c(r))for(var n=0;n<r.length;n++)yield*t(r[n],e.concat(n));else yield{value:r,index:e}};yield*t(this._data,[])},e.prototype.rows=function(){var t=[];if(2!==this.size().length)throw TypeError("Rows can only be returned for a 2D matrix.");for(var r of this._data)t.push(new e([r],this._datatype));return t},e.prototype.columns=function(){var t=this,r=[],n=this.size();if(2!==n.length)throw TypeError("Rows can only be returned for a 2D matrix.");for(var i=this._data,o=function(n){var o=i.map(t=>[t[n]]);r.push(new e(o,t._datatype))},s=0;s<n[1];s++)o(s);return r},e.prototype.toArray=function(){return L(this._data)},e.prototype.valueOf=function(){return this._data},e.prototype.format=function(t){return tc(this._data,t)},e.prototype.toString=function(){return tc(this._data)},e.prototype.toJSON=function(){return{mathjs:"DenseMatrix",data:this._data,size:this._size,datatype:this._datatype}},e.prototype.diagonal=function(t){if(t){if(o(t)&&(t=t.toNumber()),!i(t)||!Q(t))throw TypeError("The parameter k must be an integer number")}else t=0;for(var r=t>0?t:0,n=t<0?-t:0,s=Math.min(this._size[0]-n,this._size[1]-r),a=[],u=0;u<s;u++)a[u]=this._data[u+n][u+r];return new e({data:a,size:[s],datatype:this._datatype})},e.diagonal=function(t,r,n,s){if(!c(t))throw TypeError("Array expected, size parameter");if(2!==t.length)throw Error("Only two dimensions matrix are supported");if(t=t.map(function(t){if(o(t)&&(t=t.toNumber()),!i(t)||!Q(t)||t<1)throw Error("Size values must be positive integers");return t}),n){if(o(n)&&(n=n.toNumber()),!i(n)||!Q(n))throw TypeError("The parameter k must be an integer number")}else n=0;var a,u=n>0?n:0,f=n<0?-n:0,p=t[0],l=t[1],d=Math.min(p-f,l-u);if(c(r)){if(r.length!==d)throw Error("Invalid value array length");a=function(t){return r[t]}}else if(h(r)){var m=r.size();if(1!==m.length||m[0]!==d)throw Error("Invalid matrix length");a=function(t){return r.get([t])}}else a=function(){return r};s||(s=o(a(0))?a(0).mul(0):0);var g=[];if(t.length>0){g=tg(g,t,s);for(var v=0;v<d;v++)g[v+f][v+u]=a(v)}return new e({data:g,size:[p,l]})},e.fromJSON=function(t){return new e(t)},e.prototype.swapRows=function(t,r){if(!i(t)||!Q(t)||!i(r)||!Q(r))throw Error("Row index must be positive integers");if(2!==this._size.length)throw Error("Only two dimensional matrix is supported");return tm(t,this._size[0]),tm(r,this._size[0]),e._swapRows(t,r,this._data),this},e._swapRows=function(t,r,e){var n=e[t];e[t]=e[r],e[r]=n},e},{isClass:!0})};let rK=Math.cosh||function(t){return 1e-9>Math.abs(t)?1-t:(Math.exp(t)+Math.exp(-t))*.5},rQ=Math.sinh||function(t){return 1e-9>Math.abs(t)?t:(Math.exp(t)-Math.exp(-t))*.5},r0=function(t){let r=Math.PI/4;if(-r>t||t>r)return Math.cos(t)-1;let e=t*t;return e*(e*(e*(e*(e*(e*(e*(e/20922789888e3-1/0x144c3b2800)+1/0x1c8cfc00)-1/3628800)+1/40320)-1/720)+1/24)-.5)},r1=function(t,r){return((t=Math.abs(t))<(r=Math.abs(r))&&([t,r]=[r,t]),t<1e8)?Math.sqrt(t*t+r*r):(r/=t,t*Math.sqrt(1+r*r))},r2=function(){throw SyntaxError("Invalid Param")};function r7(t,r){let e=Math.abs(t),n=Math.abs(r);return 0===t?Math.log(n):0===r?Math.log(e):e<3e3&&n<3e3?.5*Math.log(t*t+r*r):.5*Math.log((t*=.5)*t+(r*=.5)*r)+Math.LN2}let r4={re:0,im:0},r3=function(t,r){if(null==t)r4.re=r4.im=0;else if(void 0!==r)r4.re=t,r4.im=r;else switch(typeof t){case"object":if("im"in t&&"re"in t)r4.re=t.re,r4.im=t.im;else if("abs"in t&&"arg"in t){if(!isFinite(t.abs)&&isFinite(t.arg))return r5.INFINITY;r4.re=t.abs*Math.cos(t.arg),r4.im=t.abs*Math.sin(t.arg)}else if("r"in t&&"phi"in t){if(!isFinite(t.r)&&isFinite(t.phi))return r5.INFINITY;r4.re=t.r*Math.cos(t.phi),r4.im=t.r*Math.sin(t.phi)}else 2===t.length?(r4.re=t[0],r4.im=t[1]):r2();break;case"string":r4.im=r4.re=0;let e=t.replace(/_/g,"").match(/\d+\.?\d*e[+-]?\d+|\d+\.?\d*|\.\d+|./g),n=1,i=0;null===e&&r2();for(let t=0;t<e.length;t++){let r=e[t];" "===r||" "===r||"\n"===r||("+"===r?n++:"-"===r?i++:("i"===r||"I"===r?(n+i===0&&r2()," "===e[t+1]||isNaN(e[t+1])?r4.im+=parseFloat((i%2?"-":"")+"1"):(r4.im+=parseFloat((i%2?"-":"")+e[t+1]),t++)):((n+i===0||isNaN(r))&&r2(),"i"===e[t+1]||"I"===e[t+1]?(r4.im+=parseFloat((i%2?"-":"")+r),t++):r4.re+=parseFloat((i%2?"-":"")+r)),n=i=0))}n+i>0&&r2();break;case"number":r4.im=0,r4.re=t;break;default:r2()}return isNaN(r4.re)||isNaN(r4.im),r4};function r5(t,r){if(!(this instanceof r5))return new r5(t,r);let e=r3(t,r);this.re=e.re,this.im=e.im}r5.prototype={re:0,im:0,sign:function(){let t=r1(this.re,this.im);return new r5(this.re/t,this.im/t)},add:function(t,r){let e=r3(t,r),n=this.isInfinite(),i=!(isFinite(e.re)&&isFinite(e.im));return n||i?n&&i?r5.NAN:r5.INFINITY:new r5(this.re+e.re,this.im+e.im)},sub:function(t,r){let e=r3(t,r),n=this.isInfinite(),i=!(isFinite(e.re)&&isFinite(e.im));return n||i?n&&i?r5.NAN:r5.INFINITY:new r5(this.re-e.re,this.im-e.im)},mul:function(t,r){let e=r3(t,r),n=this.isInfinite(),i=!(isFinite(e.re)&&isFinite(e.im)),o=0===this.re&&0===this.im,s=0===e.re&&0===e.im;return n&&s||i&&o?r5.NAN:n||i?r5.INFINITY:0===e.im&&0===this.im?new r5(this.re*e.re,0):new r5(this.re*e.re-this.im*e.im,this.re*e.im+this.im*e.re)},div:function(t,r){let e=r3(t,r),n=this.isInfinite(),i=!(isFinite(e.re)&&isFinite(e.im)),o=0===this.re&&0===this.im,s=0===e.re&&0===e.im;if(o&&s||n&&i)return r5.NAN;if(s||n)return r5.INFINITY;if(o||i)return r5.ZERO;if(0===e.im)return new r5(this.re/e.re,this.im/e.re);if(Math.abs(e.re)<Math.abs(e.im)){let t=e.re/e.im,r=e.re*t+e.im;return new r5((this.re*t+this.im)/r,(this.im*t-this.re)/r)}{let t=e.im/e.re,r=e.im*t+e.re;return new r5((this.re+this.im*t)/r,(this.im-this.re*t)/r)}},pow:function(t,r){let e=r3(t,r),n=0===this.re&&0===this.im;if(0===e.re&&0===e.im)return r5.ONE;if(0===e.im){if(0===this.im&&this.re>0)return new r5(Math.pow(this.re,e.re),0);else if(0===this.re)switch((e.re%4+4)%4){case 0:return new r5(Math.pow(this.im,e.re),0);case 1:return new r5(0,Math.pow(this.im,e.re));case 2:return new r5(-Math.pow(this.im,e.re),0);case 3:return new r5(0,-Math.pow(this.im,e.re))}}if(n&&e.re>0)return r5.ZERO;let i=Math.atan2(this.im,this.re),o=r7(this.re,this.im),s=Math.exp(e.re*o-e.im*i),a=e.im*o+e.re*i;return new r5(s*Math.cos(a),s*Math.sin(a))},sqrt:function(){let t=this.re,r=this.im;if(0===r)if(t>=0)return new r5(Math.sqrt(t),0);else return new r5(0,Math.sqrt(-t));let e=Math.sqrt(.5*(r1(t,r)+Math.abs(t))),n=Math.abs(r)/(2*e);return t>=0?new r5(e,r<0?-n:n):new r5(n,r<0?-e:e)},exp:function(){let t=Math.exp(this.re);return 0===this.im?new r5(t,0):new r5(t*Math.cos(this.im),t*Math.sin(this.im))},expm1:function(){let t=this.re,r=this.im;return new r5(Math.expm1(t)*Math.cos(r)+r0(r),Math.exp(t)*Math.sin(r))},log:function(){let t=this.re,r=this.im;return 0===r&&t>0?new r5(Math.log(t),0):new r5(r7(t,r),Math.atan2(r,t))},abs:function(){return r1(this.re,this.im)},arg:function(){return Math.atan2(this.im,this.re)},sin:function(){let t=this.re,r=this.im;return new r5(Math.sin(t)*rK(r),Math.cos(t)*rQ(r))},cos:function(){let t=this.re,r=this.im;return new r5(Math.cos(t)*rK(r),-Math.sin(t)*rQ(r))},tan:function(){let t=2*this.re,r=2*this.im,e=Math.cos(t)+rK(r);return new r5(Math.sin(t)/e,rQ(r)/e)},cot:function(){let t=2*this.re,r=2*this.im,e=Math.cos(t)-rK(r);return new r5(-Math.sin(t)/e,rQ(r)/e)},sec:function(){let t=this.re,r=this.im,e=.5*rK(2*r)+.5*Math.cos(2*t);return new r5(Math.cos(t)*rK(r)/e,Math.sin(t)*rQ(r)/e)},csc:function(){let t=this.re,r=this.im,e=.5*rK(2*r)-.5*Math.cos(2*t);return new r5(Math.sin(t)*rK(r)/e,-Math.cos(t)*rQ(r)/e)},asin:function(){let t=this.re,r=this.im,e=new r5(r*r-t*t+1,-2*t*r).sqrt(),n=new r5(e.re-r,e.im+t).log();return new r5(n.im,-n.re)},acos:function(){let t=this.re,r=this.im,e=new r5(r*r-t*t+1,-2*t*r).sqrt(),n=new r5(e.re-r,e.im+t).log();return new r5(Math.PI/2-n.im,n.re)},atan:function(){let t=this.re,r=this.im;if(0===t){if(1===r)return new r5(0,1/0);if(-1===r)return new r5(0,-1/0)}let e=t*t+(1-r)*(1-r),n=new r5((1-r*r-t*t)/e,-2*t/e).log();return new r5(-.5*n.im,.5*n.re)},acot:function(){let t=this.re,r=this.im;if(0===r)return new r5(Math.atan2(1,t),0);let e=t*t+r*r;return 0!==e?new r5(t/e,-r/e).atan():new r5(0!==t?t/0:0,0!==r?-r/0:0).atan()},asec:function(){let t=this.re,r=this.im;if(0===t&&0===r)return new r5(0,1/0);let e=t*t+r*r;return 0!==e?new r5(t/e,-r/e).acos():new r5(0!==t?t/0:0,0!==r?-r/0:0).acos()},acsc:function(){let t=this.re,r=this.im;if(0===t&&0===r)return new r5(Math.PI/2,1/0);let e=t*t+r*r;return 0!==e?new r5(t/e,-r/e).asin():new r5(0!==t?t/0:0,0!==r?-r/0:0).asin()},sinh:function(){let t=this.re,r=this.im;return new r5(rQ(t)*Math.cos(r),rK(t)*Math.sin(r))},cosh:function(){let t=this.re,r=this.im;return new r5(rK(t)*Math.cos(r),rQ(t)*Math.sin(r))},tanh:function(){let t=2*this.re,r=2*this.im,e=rK(t)+Math.cos(r);return new r5(rQ(t)/e,Math.sin(r)/e)},coth:function(){let t=2*this.re,r=2*this.im,e=rK(t)-Math.cos(r);return new r5(rQ(t)/e,-Math.sin(r)/e)},csch:function(){let t=this.re,r=this.im,e=Math.cos(2*r)-rK(2*t);return new r5(-2*rQ(t)*Math.cos(r)/e,2*rK(t)*Math.sin(r)/e)},sech:function(){let t=this.re,r=this.im,e=Math.cos(2*r)+rK(2*t);return new r5(2*rK(t)*Math.cos(r)/e,-2*rQ(t)*Math.sin(r)/e)},asinh:function(){let t=this.im;this.im=-this.re,this.re=t;let r=this.asin();return this.re=-this.im,this.im=t,t=r.re,r.re=-r.im,r.im=t,r},acosh:function(){let t=this.acos();if(t.im<=0){let r=t.re;t.re=-t.im,t.im=r}else{let r=t.im;t.im=-t.re,t.re=r}return t},atanh:function(){let t=this.re,r=this.im,e=1-t,n=1+t,i=e*e+r*r,o=0!==i?new r5((n*e-r*r)/i,(r*e+n*r)/i):new r5(-1!==t?t/0:0,0!==r?r/0:0),s=o.re;return o.re=r7(o.re,o.im)/2,o.im=Math.atan2(o.im,s)/2,t>1&&0===r&&(o.im=-o.im),o},acoth:function(){let t=this.re,r=this.im;if(0===t&&0===r)return new r5(0,Math.PI/2);let e=t*t+r*r;return 0!==e?new r5(t/e,-r/e).atanh():new r5(0!==t?t/0:0,0!==r?-r/0:0).atanh()},acsch:function(){let t=this.re,r=this.im;if(0===r)return new r5(0!==t?Math.log(t+Math.sqrt(t*t+1)):1/0,0);let e=t*t+r*r;return 0!==e?new r5(t/e,-r/e).asinh():new r5(0!==t?t/0:0,0!==r?-r/0:0).asinh()},asech:function(){let t=this.re,r=this.im;if(this.isZero())return r5.INFINITY;let e=t*t+r*r;return 0!==e?new r5(t/e,-r/e).acosh():new r5(0!==t?t/0:0,0!==r?-r/0:0).acosh()},inverse:function(){if(this.isZero())return r5.INFINITY;if(this.isInfinite())return r5.ZERO;let t=this.re,r=this.im,e=t*t+r*r;return new r5(t/e,-r/e)},conjugate:function(){return new r5(this.re,-this.im)},neg:function(){return new r5(-this.re,-this.im)},ceil:function(t){return t=Math.pow(10,t||0),new r5(Math.ceil(this.re*t)/t,Math.ceil(this.im*t)/t)},floor:function(t){return t=Math.pow(10,t||0),new r5(Math.floor(this.re*t)/t,Math.floor(this.im*t)/t)},round:function(t){return t=Math.pow(10,t||0),new r5(Math.round(this.re*t)/t,Math.round(this.im*t)/t)},equals:function(t,r){let e=r3(t,r);return Math.abs(e.re-this.re)<=r5.EPSILON&&Math.abs(e.im-this.im)<=r5.EPSILON},clone:function(){return new r5(this.re,this.im)},toString:function(){let t=this.re,r=this.im,e="";return this.isNaN()?"NaN":this.isInfinite()?"Infinity":(Math.abs(t)<r5.EPSILON&&(t=0),Math.abs(r)<r5.EPSILON&&(r=0),0===r)?e+t:(0!==t?(e+=t,e+=" ",r<0?(r=-r,e+="-"):e+="+",e+=" "):r<0&&(r=-r,e+="-"),1!==r&&(e+=r),e+"i")},toVector:function(){return[this.re,this.im]},valueOf:function(){return 0===this.im?this.re:null},isNaN:function(){return isNaN(this.re)||isNaN(this.im)},isZero:function(){return 0===this.im&&0===this.re},isFinite:function(){return isFinite(this.re)&&isFinite(this.im)},isInfinite:function(){return!this.isFinite()}},r5.ZERO=new r5(0,0),r5.ONE=new r5(1,0),r5.I=new r5(0,1),r5.PI=new r5(Math.PI,0),r5.E=new r5(Math.E,0),r5.INFINITY=new r5(1/0,1/0),r5.NAN=new r5(NaN,NaN),r5.EPSILON=1e-15;var r9=G("Complex",[],()=>(r5.prototype.type="Complex",r5.prototype.isComplex=!0,r5.prototype.toJSON=function(){return{mathjs:"Complex",re:this.re,im:this.im}},r5.prototype.toPolar=function(){return{r:this.abs(),phi:this.arg()}},r5.prototype.format=function(t){var r=this.im,e=this.re,n=tr(this.re,t),o=tr(this.im,t),s=i(t)?t:t?t.precision:null;if(null!==s){var a=Math.pow(10,-s);Math.abs(e/r)<a&&(e=0),Math.abs(r/e)<a&&(r=0)}return 0===r?n:0===e?1===r?"i":-1===r?"-i":o+"i":r<0?-1===r?n+" - i":n+" - "+o.substring(1)+"i":1===r?n+" + i":n+" + "+o+"i"},r5.fromPolar=function(t){switch(arguments.length){case 1:var r=arguments[0];if("object"==typeof r)return r5(r);throw TypeError("Input has to be an object with r and phi keys.");case 2:var e=arguments[0],n=arguments[1];if(i(e)){if(u(n)&&n.hasBase("ANGLE")&&(n=n.toNumber("rad")),i(n))return new r5({r:e,phi:n});throw TypeError("Phi is not a number nor an angle unit.")}throw TypeError("Radius r is not a number.");default:throw SyntaxError("Wrong number of arguments in function fromPolar")}},r5.prototype.valueOf=r5.prototype.toString,r5.fromJSON=function(t){return new r5(t)},r5.compare=function(t,r){return t.re>r.re?1:t.re<r.re?-1:t.im>r.im?1:t.im<r.im?-1:0},r5),{isClass:!0}),r8={s:1,n:0,d:1};function r6(t,r){if(isNaN(t=parseInt(t,10)))throw es();return t*r}function et(t,r){if(0===r)throw eo();var e=Object.create(ei.prototype);e.s=t<0?-1:1;var n=en(t=t<0?-t:t,r);return e.n=t/n,e.d=r/n,e}function er(t){for(var r={},e=t,n=2,i=4;i<=e;){for(;e%n==0;)e/=n,r[n]=(r[n]||0)+1;i+=1+2*n++}return e!==t?e>1&&(r[e]=(r[e]||0)+1):r[t]=(r[t]||0)+1,r}var ee=function(t,r){var e,n=0,i=1,o=1,s=0,a=0,u=0,f=1,c=1,h=0,p=1,l=1,d=1;if(null==t);else if(void 0!==r){if(o=(n=t)*(i=r),n%1!=0||i%1!=0)throw ea()}else switch(typeof t){case"object":if("d"in t&&"n"in t)n=t.n,i=t.d,"s"in t&&(n*=t.s);else if(0 in t)n=t[0],1 in t&&(i=t[1]);else throw es();o=n*i;break;case"number":if(t<0&&(o=t,t=-t),t%1==0)n=t;else if(t>0){for(t>=1&&(c=Math.pow(10,Math.floor(1+Math.log(t)/Math.LN10)),t/=c);p<=1e7&&d<=1e7;){if(t===(e=(h+l)/(p+d))){p+d<=1e7?(n=h+l,i=p+d):d>p?(n=l,i=d):(n=h,i=p);break}t>e?(h+=l,p+=d):(l+=h,d+=p),p>1e7?(n=l,i=d):(n=h,i=p)}n*=c}else(isNaN(t)||isNaN(r))&&(i=n=NaN);break;case"string":if(null===(p=t.match(/\d+|./g)))throw es();if("-"===p[h]?(o=-1,h++):"+"===p[h]&&h++,p.length===h+1?a=r6(p[h++],o):"."===p[h+1]||"."===p[h]?("."!==p[h]&&(s=r6(p[h++],o)),(++h+1===p.length||"("===p[h+1]&&")"===p[h+3]||"'"===p[h+1]&&"'"===p[h+3])&&(a=r6(p[h],o),f=Math.pow(10,p[h].length),h++),("("===p[h]&&")"===p[h+2]||"'"===p[h]&&"'"===p[h+2])&&(u=r6(p[h+1],o),c=Math.pow(10,p[h+1].length)-1,h+=3)):"/"===p[h+1]||":"===p[h+1]?(a=r6(p[h],o),f=r6(p[h+2],1),h+=3):"/"===p[h+3]&&" "===p[h+1]&&(s=r6(p[h],o),a=r6(p[h+2],o),f=r6(p[h+4],1),h+=5),p.length<=h){o=n=u+(i=f*c)*s+c*a;break}default:throw es()}if(0===i)throw eo();r8.s=o<0?-1:1,r8.n=Math.abs(n),r8.d=Math.abs(i)};function en(t,r){if(!t)return r;if(!r)return t;for(;;){if(!(t%=r))return r;if(!(r%=t))return t}}function ei(t,r){if(ee(t,r),!(this instanceof ei))return et(r8.s*r8.n,r8.d);t=en(r8.d,r8.n),this.s=r8.s,this.n=r8.n/t,this.d=r8.d/t}var eo=function(){return Error("Division by Zero")},es=function(){return Error("Invalid argument")},ea=function(){return Error("Parameters must be integer")};ei.prototype={s:1,n:0,d:1,abs:function(){return et(this.n,this.d)},neg:function(){return et(-this.s*this.n,this.d)},add:function(t,r){return ee(t,r),et(this.s*this.n*r8.d+r8.s*this.d*r8.n,this.d*r8.d)},sub:function(t,r){return ee(t,r),et(this.s*this.n*r8.d-r8.s*this.d*r8.n,this.d*r8.d)},mul:function(t,r){return ee(t,r),et(this.s*r8.s*this.n*r8.n,this.d*r8.d)},div:function(t,r){return ee(t,r),et(this.s*r8.s*this.n*r8.d,this.d*r8.n)},clone:function(){return et(this.s*this.n,this.d)},mod:function(t,r){if(isNaN(this.n)||isNaN(this.d))return new ei(NaN);if(void 0===t)return et(this.s*this.n%this.d,1);if(ee(t,r),0===r8.n&&0===this.d)throw eo();return et(this.s*(r8.d*this.n)%(r8.n*this.d),r8.d*this.d)},gcd:function(t,r){return ee(t,r),et(en(r8.n,this.n)*en(r8.d,this.d),r8.d*this.d)},lcm:function(t,r){return(ee(t,r),0===r8.n&&0===this.n)?et(0,1):et(r8.n*this.n,en(r8.n,this.n)*en(r8.d,this.d))},ceil:function(t){return(t=Math.pow(10,t||0),isNaN(this.n)||isNaN(this.d))?new ei(NaN):et(Math.ceil(t*this.s*this.n/this.d),t)},floor:function(t){return(t=Math.pow(10,t||0),isNaN(this.n)||isNaN(this.d))?new ei(NaN):et(Math.floor(t*this.s*this.n/this.d),t)},round:function(t){return(t=Math.pow(10,t||0),isNaN(this.n)||isNaN(this.d))?new ei(NaN):et(Math.round(t*this.s*this.n/this.d),t)},roundTo:function(t,r){return ee(t,r),et(this.s*Math.round(this.n*r8.d/(this.d*r8.n))*r8.n,r8.d)},inverse:function(){return et(this.s*this.d,this.n)},pow:function(t,r){if(ee(t,r),1===r8.d)if(r8.s<0)return et(Math.pow(this.s*this.d,r8.n),Math.pow(this.n,r8.n));else return et(Math.pow(this.s*this.n,r8.n),Math.pow(this.d,r8.n));if(this.s<0)return null;var e=er(this.n),n=er(this.d),i=1,o=1;for(var s in e)if("1"!==s){if("0"===s){i=0;break}if(e[s]*=r8.n,e[s]%r8.d!=0)return null;e[s]/=r8.d,i*=Math.pow(s,e[s])}for(var s in n)if("1"!==s){if(n[s]*=r8.n,n[s]%r8.d!=0)return null;n[s]/=r8.d,o*=Math.pow(s,n[s])}return r8.s<0?et(o,i):et(i,o)},equals:function(t,r){return ee(t,r),this.s*this.n*r8.d==r8.s*r8.n*this.d},compare:function(t,r){ee(t,r);var e=this.s*this.n*r8.d-r8.s*r8.n*this.d;return(0<e)-(e<0)},simplify:function(t){if(isNaN(this.n)||isNaN(this.d))return this;t=t||.001;for(var r=this.abs(),e=r.toContinued(),n=1;n<e.length;n++){for(var i=et(e[n-1],1),o=n-2;o>=0;o--)i=i.inverse().add(e[o]);if(Math.abs(i.sub(r).valueOf())<t)return i.mul(this.s)}return this},divisible:function(t,r){return ee(t,r),!(!(r8.n*this.d)||this.n*r8.d%(r8.n*this.d))},valueOf:function(){return this.s*this.n/this.d},toFraction:function(t){var r,e="",n=this.n,i=this.d;return this.s<0&&(e+="-"),1===i?e+=n:(t&&(r=Math.floor(n/i))>0&&(e+=r,e+=" ",n%=i),e+=n,e+="/",e+=i),e},toLatex:function(t){var r,e="",n=this.n,i=this.d;return this.s<0&&(e+="-"),1===i?e+=n:(t&&(r=Math.floor(n/i))>0&&(e+=r,n%=i),e+="\\frac{",e+=n,e+="}{",e+=i,e+="}"),e},toContinued:function(){var t,r=this.n,e=this.d,n=[];if(isNaN(r)||isNaN(e))return n;do n.push(Math.floor(r/e)),t=r%e,r=e,e=t;while(1!==r);return n},toString:function(t){var r=this.n,e=this.d;if(isNaN(r)||isNaN(e))return"NaN";t=t||15;var n=function(t,r){for(;r%2==0;r/=2);for(;r%5==0;r/=5);if(1===r)return 0;for(var e=10%r,n=1;1!==e;n++)if(e=10*e%r,n>2e3)return 0;return n}(0,e),i=function(t,r,e){for(var n=1,i=function(t,r,e){for(var n=1;r>0;t=t*t%e,r>>=1)1&r&&(n=n*t%e);return n}(10,e,r),o=0;o<300;o++){if(n===i)return o;n=10*n%r,i=10*i%r}return 0}(0,e,n),o=this.s<0?"-":"";if(o+=r/e|0,r%=e,(r*=10)&&(o+="."),n){for(var s=i;s--;)o+=r/e|0,r%=e,r*=10;o+="(";for(var s=n;s--;)o+=r/e|0,r%=e,r*=10;o+=")"}else for(var s=t;r&&s--;)o+=r/e|0,r%=e,r*=10;return o}};var eu=G("Fraction",[],()=>(ei.prototype.type="Fraction",ei.prototype.isFraction=!0,ei.prototype.toJSON=function(){return{mathjs:"Fraction",n:this.s*this.n,d:this.d}},ei.fromJSON=function(t){return new ei(t)},ei),{isClass:!0}),ef=e(42915);function ec(t,r){return!!t&&"object"==typeof t&&(!!$(ep,r)||!(r in Object.prototype)&&!(r in Function.prototype))}function eh(t){return"object"==typeof t&&t&&t.constructor===Object}var ep={length:!0,name:!0},el={toString:!0,valueOf:!0,toLocaleString:!0};class ed{constructor(t){this.wrappedObject=t}keys(){return Object.keys(this.wrappedObject)}get(t){var r,e,n=this.wrappedObject;if(eh(n)&&ec(n,t))return n[t];if("function"==typeof n[t]&&(r=n,e=t,!(null==r||"function"!=typeof r[e]||$(r,e)&&Object.getPrototypeOf&&e in Object.getPrototypeOf(r))&&($(el,e)||!(e in Object.prototype)&&!(e in Function.prototype))))throw Error('Cannot access method "'+t+'" as a property');throw Error('No access to property "'+t+'"')}set(t,r){return!function(t,r,e){if(eh(t)&&ec(t,r))return t[r]=e;throw Error('No access to property "'+r+'"')}(this.wrappedObject,t,r),this}has(t){return t in this.wrappedObject}}function em(t){return!!t&&(t instanceof Map||t instanceof ed||"function"==typeof t.set&&"function"==typeof t.get&&"function"==typeof t.keys&&"function"==typeof t.has)}var eg=function(){return eg=ef.create,ef};function ev(t){throw Error("Cannot convert value ".concat(t," into a BigNumber: no class 'BigNumber' provided"))}function ey(t){throw Error("Cannot convert value ".concat(t," into a Complex number: no class 'Complex' provided"))}function ew(t){throw Error("Cannot convert value ".concat(t," into a Fraction, no class 'Fraction' provided."))}var ex={BigNumberDependencies:rY,ComplexDependencies:{createComplexClass:r9},DenseMatrixDependencies:rX,FractionDependencies:{createFractionClass:eu},createTyped:G("typed",["?BigNumber","?Complex","?DenseMatrix","?Fraction"],function(t){var{BigNumber:r,Complex:e,DenseMatrix:n,Fraction:p}=t,Z=eg();return Z.types=[{name:"number",test:i},{name:"Complex",test:s},{name:"BigNumber",test:o},{name:"Fraction",test:a},{name:"Unit",test:u},{name:"string",test:f},{name:"Chain",test:U},{name:"Array",test:c},{name:"Matrix",test:h},{name:"DenseMatrix",test:l},{name:"SparseMatrix",test:d},{name:"Range",test:m},{name:"Index",test:g},{name:"boolean",test:v},{name:"ResultSet",test:y},{name:"Help",test:w},{name:"function",test:x},{name:"Date",test:b},{name:"RegExp",test:N},{name:"null",test:M},{name:"undefined",test:E},{name:"AccessorNode",test:O},{name:"ArrayNode",test:A},{name:"AssignmentNode",test:z},{name:"BlockNode",test:S},{name:"ConditionalNode",test:C},{name:"ConstantNode",test:F},{name:"FunctionNode",test:T},{name:"FunctionAssignmentNode",test:I},{name:"IndexNode",test:j},{name:"Node",test:D},{name:"ObjectNode",test:k},{name:"OperatorNode",test:R},{name:"ParenthesisNode",test:P},{name:"RangeNode",test:B},{name:"SymbolNode",test:q},{name:"Map",test:em},{name:"Object",test:_}],Z.conversions=[{from:"number",to:"BigNumber",convert:function(t){if(r||ev(t),t.toExponential().replace(/e.*$/,"").replace(/^0\.?0*|\./,"").length>15)throw TypeError("Cannot implicitly convert a number with >15 significant digits to BigNumber (value: "+t+"). Use function bignumber(x) to convert to BigNumber.");return new r(t)}},{from:"number",to:"Complex",convert:function(t){return e||ey(t),new e(t,0)}},{from:"number",to:"string",convert:function(t){return t+""}},{from:"BigNumber",to:"Complex",convert:function(t){return e||ey(t),new e(t.toNumber(),0)}},{from:"Fraction",to:"BigNumber",convert:function(t){throw TypeError("Cannot implicitly convert a Fraction to BigNumber or vice versa. Use function bignumber(x) to convert to BigNumber or fraction(x) to convert to Fraction.")}},{from:"Fraction",to:"Complex",convert:function(t){return e||ey(t),new e(t.valueOf(),0)}},{from:"number",to:"Fraction",convert:function(t){p||ew(t);var r=new p(t);if(r.valueOf()!==t)throw TypeError("Cannot implicitly convert a number to a Fraction when there will be a loss of precision (value: "+t+"). Use function fraction(x) to convert to Fraction.");return r}},{from:"string",to:"number",convert:function(t){var r=Number(t);if(isNaN(r))throw Error('Cannot convert "'+t+'" to a number');return r}},{from:"string",to:"BigNumber",convert:function(t){r||ev(t);try{return new r(t)}catch(r){throw Error('Cannot convert "'+t+'" to BigNumber')}}},{from:"string",to:"Fraction",convert:function(t){p||ew(t);try{return new p(t)}catch(r){throw Error('Cannot convert "'+t+'" to Fraction')}}},{from:"string",to:"Complex",convert:function(t){e||ey(t);try{return new e(t)}catch(r){throw Error('Cannot convert "'+t+'" to Complex')}}},{from:"boolean",to:"number",convert:function(t){return+t}},{from:"boolean",to:"BigNumber",convert:function(t){return r||ev(t),new r(+t)}},{from:"boolean",to:"Fraction",convert:function(t){return p||ew(t),new p(+t)}},{from:"boolean",to:"string",convert:function(t){return String(t)}},{from:"Array",to:"Matrix",convert:function(t){return n||function(){throw Error("Cannot convert array into a Matrix: no class 'DenseMatrix' provided")}(),new n(t)}},{from:"Matrix",to:"Array",convert:function(t){return t.valueOf()}}],Z})},eb="equalScalar",eN=G(eb,["typed","config"],t=>{var{typed:r,config:e}=t;return r(eb,{"boolean, boolean":function(t,r){return t===r},"number, number":function(t,r){return ta(t,r,e.epsilon)},"BigNumber, BigNumber":function(t,r){return t.eq(r)||function(t,r,e){if(null==e)return t.eq(r);if(t.eq(r))return!0;if(t.isNaN()||r.isNaN())return!1;if(t.isFinite()&&r.isFinite()){var n=t.minus(r).abs();if(n.isZero())return!0;var i=t.constructor.max(t.abs(),r.abs());return n.lte(i.times(e))}return!1}(t,r,e.epsilon)},"Fraction, Fraction":function(t,r){return t.equals(r)},"Complex, Complex":function(t,r){var n;return n=e.epsilon,ta(t.re,r.re,n)&&ta(t.im,r.im,n)},"Unit, Unit":function(t,r){if(!t.equalBase(r))throw Error("Cannot compare units with different base");return this(t.value,r.value)}})});G(eb,["typed","config"],t=>{var{typed:r,config:e}=t;return r(eb,{"number, number":function(t,r){return ta(t,r,e.epsilon)}})});var e_={typedDependencies:ex,createEqualScalar:eN},eM=G("SparseMatrix",["typed","equalScalar","Matrix"],t=>{var{typed:r,equalScalar:e,Matrix:n}=t;function s(t,r){if(!(this instanceof s))throw SyntaxError("Constructor must be called with the new operator");if(r&&!f(r))throw Error("Invalid datatype: "+r);if(h(t)){var e,n,i;e=this,n=t,i=r,"SparseMatrix"===n.type?(e._values=n._values?L(n._values):void 0,e._index=L(n._index),e._ptr=L(n._ptr),e._size=L(n._size),e._datatype=i||n._datatype):a(e,n.valueOf(),i||n._datatype)}else if(t&&c(t.index)&&c(t.ptr)&&c(t.size))this._values=t.values,this._index=t.index,this._ptr=t.ptr,this._size=t.size,this._datatype=r||t.datatype;else if(c(t))a(this,t,r);else if(t)throw TypeError("Unsupported type of data ("+Z(t)+")");else this._values=[],this._index=[],this._ptr=[0],this._size=[0,0],this._datatype=r}function a(t,n,i){t._values=[],t._index=[],t._ptr=[],t._datatype=i;var o=n.length,s=0,a=e,u=0;if(f(i)&&(a=r.find(e,[i,i])||e,u=r.convert(0,i)),o>0){var h=0;do{t._ptr.push(t._index.length);for(var p=0;p<o;p++){var l=n[p];if(c(l)){if(0===h&&s<l.length&&(s=l.length),h<l.length){var d=l[h];a(d,u)||(t._values.push(d),t._index.push(p))}}else 0===h&&s<1&&(s=1),a(l,u)||(t._values.push(l),t._index.push(p))}h++}while(h<s)}t._ptr.push(t._index.length),t._size=[o,s]}function u(t,r,e,n){if(e-r==0)return e;for(var i=r;i<e;i++)if(n[i]===t)return i;return r}function l(t,r,e,n,i,o,s){i.splice(t,0,n),o.splice(t,0,r);for(var a=e+1;a<s.length;a++)s[a]++}function d(t,n,i,o){var s,a,u,c=o||0,h=e,p=0;f(t._datatype)&&(h=r.find(e,[t._datatype,t._datatype])||e,p=r.convert(0,t._datatype),c=r.convert(c,t._datatype));var l=!h(c,p),d=t._size[0],m=t._size[1];if(i>m){for(a=m;a<i;a++)if(t._ptr[a]=t._values.length,l)for(s=0;s<d;s++)t._values.push(c),t._index.push(s);t._ptr[i]=t._values.length}else i<m&&(t._ptr.splice(i+1,m-i),t._values.splice(t._ptr[i],t._values.length),t._index.splice(t._ptr[i],t._index.length));if(m=i,n>d){if(l){var g=0;for(a=0;a<m;a++){t._ptr[a]=t._ptr[a]+g,u=t._ptr[a+1]+g;var v=0;for(s=d;s<n;s++,v++)t._values.splice(u+v,0,c),t._index.splice(u+v,0,s),g++}t._ptr[m]=t._values.length}}else if(n<d){var y=0;for(a=0;a<m;a++){t._ptr[a]=t._ptr[a]-y;var w=t._ptr[a],x=t._ptr[a+1]-y;for(u=w;u<x;u++)(s=t._index[u])>n-1&&(t._values.splice(u,1),t._index.splice(u,1),y++)}t._ptr[a]=t._values.length}return t._size[0]=n,t._size[1]=i,t}function m(t,r,e,n,i){var o,s,a=n[0],u=n[1],f=[];for(o=0;o<a;o++)for(s=0,f[o]=[];s<u;s++)f[o][s]=0;for(s=0;s<u;s++)for(var c=e[s],h=e[s+1],p=c;p<h;p++)f[o=r[p]][s]=t?i?L(t[p]):t[p]:1;return f}return s.prototype=new n,s.prototype.createSparseMatrix=function(t,r){return new s(t,r)},s.prototype.type="SparseMatrix",s.prototype.isSparseMatrix=!0,s.prototype.getDataType=function(){return tx(this._values,Z)},s.prototype.storage=function(){return"sparse"},s.prototype.datatype=function(){return this._datatype},s.prototype.create=function(t,r){return new s(t,r)},s.prototype.density=function(){var t=this._size[0],r=this._size[1];return 0!==t&&0!==r?this._index.length/(t*r):0},s.prototype.subset=function(t,r,e){if(!this._values)throw Error("Cannot invoke subset on a Pattern only matrix");switch(arguments.length){case 1:return function(t,r){if(!g(r))throw TypeError("Invalid index");if(r.isScalar())return t.get(r.min());var e,n,i,o,a=r.size();if(a.length!==t._size.length)throw new th(a.length,t._size.length);var u=r.min(),f=r.max();for(e=0,n=t._size.length;e<n;e++)tm(u[e],t._size[e]),tm(f[e],t._size[e]);var c=t._values,h=t._index,p=t._ptr,l=r.dimension(0),d=r.dimension(1),m=[],v=[];l.forEach(function(t,r){v[t]=r[0],m[t]=!0});var y=c?[]:void 0,w=[],x=[];return d.forEach(function(t){for(x.push(w.length),i=p[t],o=p[t+1];i<o;i++)!0===m[e=h[i]]&&(w.push(v[e]),y&&y.push(c[i]))}),x.push(w.length),new s({values:y,index:w,ptr:x,size:a,datatype:t._datatype})}(this,t);case 2:case 3:return function(t,r,e,n){if(!r||!0!==r.isIndex)throw TypeError("Invalid index");var i,o=r.size(),s=r.isScalar();if(h(e)?(i=e.size(),e=e.toArray()):i=tl(e),s){if(0!==i.length)throw TypeError("Scalar expected");t.set(r.min(),e,n)}else{if(1!==o.length&&2!==o.length)throw new th(o.length,t._size.length,"<");if(i.length<o.length){for(var a=0,u=0;1===o[a]&&1===i[a];)a++;for(;1===o[a];)u++,a++;e=tw(e,o.length,u,i)}if(!W(o,i))throw new th(o,i,">");if(1===o.length)r.dimension(0).forEach(function(r,i){tm(r),t.set([r,0],e[i[0]],n)});else{var f=r.dimension(0),c=r.dimension(1);f.forEach(function(r,i){tm(r),c.forEach(function(o,s){tm(o),t.set([r,o],e[i[0]][s[0]],n)})})}}return t}(this,t,r,e);default:throw SyntaxError("Wrong number of arguments")}},s.prototype.get=function(t){if(!c(t))throw TypeError("Array expected");if(t.length!==this._size.length)throw new th(t.length,this._size.length);if(!this._values)throw Error("Cannot invoke get on a Pattern only matrix");var r=t[0],e=t[1];tm(r,this._size[0]),tm(e,this._size[1]);var n=u(r,this._ptr[e],this._ptr[e+1],this._index);return n<this._ptr[e+1]&&this._index[n]===r?this._values[n]:0},s.prototype.set=function(t,n,i){if(!c(t))throw TypeError("Array expected");if(t.length!==this._size.length)throw new th(t.length,this._size.length);if(!this._values)throw Error("Cannot invoke set on a Pattern only matrix");var o=t[0],s=t[1],a=this._size[0],h=this._size[1],p=e,m=0;f(this._datatype)&&(p=r.find(e,[this._datatype,this._datatype])||e,m=r.convert(0,this._datatype)),(o>a-1||s>h-1)&&(d(this,Math.max(o+1,a),Math.max(s+1,h),i),a=this._size[0],h=this._size[1]),tm(o,a),tm(s,h);var g=u(o,this._ptr[s],this._ptr[s+1],this._index);return g<this._ptr[s+1]&&this._index[g]===o?p(n,m)?function(t,r,e,n,i){e.splice(t,1),n.splice(t,1);for(var o=r+1;o<i.length;o++)i[o]--}(g,s,this._values,this._index,this._ptr):this._values[g]=n:l(g,o,s,n,this._values,this._index,this._ptr),this},s.prototype.resize=function(t,r,e){if(!p(t))throw TypeError("Array or Matrix expected");var n=t.valueOf().map(t=>Array.isArray(t)&&1===t.length?t[0]:t);if(2!==n.length)throw Error("Only two dimensions matrix are supported");return n.forEach(function(t){if(!i(t)||!Q(t)||t<0)throw TypeError("Invalid size, must contain positive integers (size: "+tc(n)+")")}),d(e?this.clone():this,n[0],n[1],r)},s.prototype.reshape=function(t,r){if(!c(t))throw TypeError("Array expected");if(2!==t.length)throw Error("Sparse matrices can only be reshaped in two dimensions");t.forEach(function(r){if(!i(r)||!Q(r)||r<=-2||0===r)throw TypeError("Invalid size, must contain positive integers or -1 (size: "+tc(t)+")")});var e=this._size[0]*this._size[1],n=(t=tv(t,e))[0]*t[1];if(e!==n)throw Error("Reshaping sparse matrix will result in the wrong number of elements");var o=r?this.clone():this;if(this._size[0]===t[0]&&this._size[1]===t[1])return o;for(var s=[],a=0;a<o._ptr.length;a++)for(var f=0;f<o._ptr[a+1]-o._ptr[a];f++)s.push(a);for(var h=o._values.slice(),p=o._index.slice(),d=0;d<o._index.length;d++){var m=p[d],g=s[d],v=m*o._size[1]+g;s[d]=v%t[1],p[d]=Math.floor(v/t[1])}o._values.length=0,o._index.length=0,o._ptr.length=t[1]+1,o._size=t.slice();for(var y=0;y<o._ptr.length;y++)o._ptr[y]=0;for(var w=0;w<h.length;w++){var x=p[w],b=s[w],N=h[w];l(u(x,o._ptr[b],o._ptr[b+1],o._index),x,b,N,o._values,o._index,o._ptr)}return o},s.prototype.clone=function(){return new s({values:this._values?L(this._values):void 0,index:L(this._index),ptr:L(this._ptr),size:L(this._size),datatype:this._datatype})},s.prototype.size=function(){return this._size.slice(0)},s.prototype.map=function(t,n){if(!this._values)throw Error("Cannot invoke map on a Pattern only matrix");var i=this;return function(t,n,i,o,a,u,c){var h=[],p=[],l=[],d=e,m=0;f(t._datatype)&&(d=r.find(e,[t._datatype,t._datatype])||e,m=r.convert(0,t._datatype));for(var g=function(t,r,e){t=u(t,r,e),d(t,m)||(h.push(t),p.push(r))},v=0;v<=a;v++){l.push(h.length);var y=t._ptr[v],w=t._ptr[v+1];if(c)for(var x=y;x<w;x++){var b=t._index[x];b>=0&&b<=i&&g(t._values[x],b-0,v-0)}else{for(var N={},_=y;_<w;_++)N[t._index[_]]=t._values[_];for(var M=0;M<=i;M++)g(M in N?N[M]:0,M-0,v-0)}}return l.push(h.length),new s({values:h,index:p,ptr:l,size:[i-0+1,a-0+1]})}(this,0,this._size[0]-1,0,this._size[1]-1,function(r,e,n){return t(r,[e,n],i)},n)},s.prototype.forEach=function(t,r){if(!this._values)throw Error("Cannot invoke forEach on a Pattern only matrix");for(var e=this._size[0],n=this._size[1],i=0;i<n;i++){var o=this._ptr[i],s=this._ptr[i+1];if(r)for(var a=o;a<s;a++){var u=this._index[a];t(this._values[a],[u,i],this)}else{for(var f={},c=o;c<s;c++)f[this._index[c]]=this._values[c];for(var h=0;h<e;h++)t(h in f?f[h]:0,[h,i],this)}}},s.prototype[Symbol.iterator]=function*(){if(!this._values)throw Error("Cannot iterate a Pattern only matrix");for(var t=this._size[1],r=0;r<t;r++)for(var e=this._ptr[r],n=this._ptr[r+1],i=e;i<n;i++){var o=this._index[i];yield{value:this._values[i],index:[o,r]}}},s.prototype.toArray=function(){return m(this._values,this._index,this._ptr,this._size,!0)},s.prototype.valueOf=function(){return m(this._values,this._index,this._ptr,this._size,!1)},s.prototype.format=function(t){for(var r=this._size[0],e=this._size[1],n=this.density(),i="Sparse Matrix ["+tc(r,t)+" x "+tc(e,t)+"] density: "+tc(n,t)+"\n",o=0;o<e;o++)for(var s=this._ptr[o],a=this._ptr[o+1],u=s;u<a;u++)i+="\n ("+tc(this._index[u],t)+", "+tc(o,t)+") ==> "+(this._values?tc(this._values[u],t):"X");return i},s.prototype.toString=function(){return tc(this.toArray())},s.prototype.toJSON=function(){return{mathjs:"SparseMatrix",values:this._values,index:this._index,ptr:this._ptr,size:this._size,datatype:this._datatype}},s.prototype.diagonal=function(t){if(t){if(o(t)&&(t=t.toNumber()),!i(t)||!Q(t))throw TypeError("The parameter k must be an integer number")}else t=0;var r=t>0?t:0,e=t<0?-t:0,n=this._size[0],a=this._size[1],u=Math.min(n-e,a-r),f=[],c=[],h=[];h[0]=0;for(var p=r;p<a&&f.length<u;p++)for(var l=this._ptr[p],d=this._ptr[p+1],m=l;m<d;m++){var g=this._index[m];if(g===p-r+e){f.push(this._values[m]),c[f.length-1]=g-e;break}}return h.push(f.length),new s({values:f,index:c,ptr:h,size:[u,1]})},s.fromJSON=function(t){return new s(t)},s.diagonal=function(t,n,a,u,p){if(!c(t))throw TypeError("Array expected, size parameter");if(2!==t.length)throw Error("Only two dimensions matrix are supported");if(t=t.map(function(t){if(o(t)&&(t=t.toNumber()),!i(t)||!Q(t)||t<1)throw Error("Size values must be positive integers");return t}),a){if(o(a)&&(a=a.toNumber()),!i(a)||!Q(a))throw TypeError("The parameter k must be an integer number")}else a=0;var l,d=e,m=0;f(p)&&(d=r.find(e,[p,p])||e,m=r.convert(0,p));var g=a>0?a:0,v=a<0?-a:0,y=t[0],w=t[1],x=Math.min(y-v,w-g);if(c(n)){if(n.length!==x)throw Error("Invalid value array length");l=function(t){return n[t]}}else if(h(n)){var b=n.size();if(1!==b.length||b[0]!==x)throw Error("Invalid matrix length");l=function(t){return n.get([t])}}else l=function(){return n};for(var N=[],_=[],M=[],E=0;E<w;E++){M.push(N.length);var O=E-g;if(O>=0&&O<x){var A=l(O);d(A,m)||(_.push(O+v),N.push(A))}}return M.push(N.length),new s({values:N,index:_,ptr:M,size:[y,w]})},s.prototype.swapRows=function(t,r){if(!i(t)||!Q(t)||!i(r)||!Q(r))throw Error("Row index must be positive integers");if(2!==this._size.length)throw Error("Only two dimensional matrix is supported");return tm(t,this._size[0]),tm(r,this._size[0]),s._swapRows(t,r,this._size[1],this._values,this._index,this._ptr),this},s._forEachRow=function(t,r,e,n,i){for(var o=n[t],s=n[t+1],a=o;a<s;a++)i(e[a],r[a])},s._swapRows=function(t,r,e,n,i,o){for(var s=0;s<e;s++){var a=o[s],f=o[s+1],c=u(t,a,f,i),h=u(r,a,f,i);if(c<f&&h<f&&i[c]===t&&i[h]===r){if(n){var p=n[c];n[c]=n[h],n[h]=p}continue}if(c<f&&i[c]===t&&(h>=f||i[h]!==r)){var l=n?n[c]:void 0;i.splice(h,0,r),n&&n.splice(h,0,l),i.splice(h<=c?c+1:c,1),n&&n.splice(h<=c?c+1:c,1);continue}if(h<f&&i[h]===r&&(c>=f||i[c]!==t)){var d=n?n[h]:void 0;i.splice(c,0,t),n&&n.splice(c,0,d),i.splice(c<=h?h+1:h,1),n&&n.splice(c<=h?h+1:h,1)}}},s},{isClass:!0}),eE="matrix",eO=G(eE,["typed","Matrix","DenseMatrix","SparseMatrix"],t=>{var{typed:r,Matrix:e,DenseMatrix:n,SparseMatrix:i}=t;return r(eE,{"":function(){return o([])},string:function(t){return o([],t)},"string, string":function(t,r){return o([],t,r)},Array:function(t){return o(t)},Matrix:function(t){return o(t,t.storage())},"Array | Matrix, string":o,"Array | Matrix, string, string":o});function o(t,r,e){if("dense"===r||"default"===r||void 0===r)return new n(t,e);if("sparse"===r)return new i(t,e);throw TypeError("Unknown matrix type "+JSON.stringify(r)+".")}}),eA=G("algorithm01",["typed"],t=>{var{typed:r}=t;return function(t,e,n,i){var o,s,a=t._data,u=t._size,f=t._datatype,c=e._values,h=e._index,p=e._ptr,l=e._size,d=e._datatype;if(u.length!==l.length)throw new th(u.length,l.length);if(u[0]!==l[0]||u[1]!==l[1])throw RangeError("Dimension mismatch. Matrix A ("+u+") must match Matrix B ("+l+")");if(!c)throw Error("Cannot perform operation on Dense Matrix and Pattern Sparse Matrix");var m=u[0],g=u[1],v="string"==typeof f&&f===d?f:void 0,y=v?r.find(n,[v,v]):n,w=[];for(o=0;o<m;o++)w[o]=[];var x=[],b=[];for(s=0;s<g;s++){for(var N=s+1,_=p[s],M=p[s+1],E=_;E<M;E++)x[o=h[E]]=i?y(c[E],a[o][s]):y(a[o][s],c[E]),b[o]=N;for(o=0;o<m;o++)b[o]===N?w[o][s]=x[o]:w[o][s]=a[o][s]}return t.createDenseMatrix({data:w,size:[m,g],datatype:v})}}),ez=G("algorithm04",["typed","equalScalar"],t=>{var{typed:r,equalScalar:e}=t;return function(t,n,i){var o,s,a,u,f,c,h=t._values,p=t._index,l=t._ptr,d=t._size,m=t._datatype,g=n._values,v=n._index,y=n._ptr,w=n._size,x=n._datatype;if(d.length!==w.length)throw new th(d.length,w.length);if(d[0]!==w[0]||d[1]!==w[1])throw RangeError("Dimension mismatch. Matrix A ("+d+") must match Matrix B ("+w+")");var b=d[0],N=d[1],_=e,M=0,E=i;"string"==typeof m&&m===x&&(o=m,_=r.find(e,[o,o]),M=r.convert(0,o),E=r.find(i,[o,o]));var O=h&&g?[]:void 0,A=[],z=[],S=h&&g?[]:void 0,C=h&&g?[]:void 0,F=[],I=[];for(a=0;a<N;a++){z[a]=A.length;var T=a+1;for(f=l[a],c=l[a+1],u=f;u<c;u++)s=p[u],A.push(s),F[s]=T,S&&(S[s]=h[u]);for(f=y[a],c=y[a+1],u=f;u<c;u++)if(F[s=v[u]]===T){if(S){var j=E(S[s],g[u]);_(j,M)?F[s]=null:S[s]=j}}else A.push(s),I[s]=T,C&&(C[s]=g[u]);if(S&&C)for(u=z[a];u<A.length;)F[s=A[u]]===T?(O[u]=S[s],u++):I[s]===T?(O[u]=C[s],u++):A.splice(u,1)}return z[N]=A.length,t.createSparseMatrix({values:O,index:A,ptr:z,size:[b,N],datatype:o})}}),eS=G("algorithm10",["typed","DenseMatrix"],t=>{var{typed:r,DenseMatrix:e}=t;return function(t,n,i,o){var s,a=t._values,u=t._index,f=t._ptr,c=t._size,h=t._datatype;if(!a)throw Error("Cannot perform operation on Pattern Sparse Matrix and Scalar value");var p=c[0],l=c[1],d=i;"string"==typeof h&&(s=h,n=r.convert(n,s),d=r.find(i,[s,s]));for(var m=[],g=[],v=[],y=0;y<l;y++){for(var w=y+1,x=f[y],b=f[y+1],N=x;N<b;N++){var _=u[N];g[_]=a[N],v[_]=w}for(var M=0;M<p;M++)0===y&&(m[M]=[]),v[M]===w?m[M][y]=o?d(n,g[M]):d(g[M],n):m[M][y]=n}return new e({data:m,size:[p,l],datatype:s})}}),eC=G("algorithm13",["typed"],t=>{var{typed:r}=t;return function(t,e,n){var i,o=t._data,s=t._size,a=t._datatype,u=e._data,f=e._size,c=e._datatype,h=[];if(s.length!==f.length)throw new th(s.length,f.length);for(var p=0;p<s.length;p++){if(s[p]!==f[p])throw RangeError("Dimension mismatch. Matrix A ("+s+") must match Matrix B ("+f+")");h[p]=s[p]}var l=n;"string"==typeof a&&a===c&&(i=a,l=r.find(n,[i,i]));var d=h.length>0?function t(r,e,n,i,o,s){var a=[];if(e===n.length-1)for(var u=0;u<i;u++)a[u]=r(o[u],s[u]);else for(var f=0;f<i;f++)a[f]=t(r,e+1,n,n[e+1],o[f],s[f]);return a}(l,0,h,h[0],o,u):[];return t.createDenseMatrix({data:d,size:h,datatype:i})}}),eF=G("algorithm14",["typed"],t=>{var{typed:r}=t;return function(t,e,n,i){var o,s=t._data,a=t._size,u=t._datatype,f=n;"string"==typeof u&&(o=u,e=r.convert(e,o),f=r.find(n,[o,o]));var c=a.length>0?function t(r,e,n,i,o,s,a){var u=[];if(e===n.length-1)for(var f=0;f<i;f++)u[f]=a?r(s,o[f]):r(o[f],s);else for(var c=0;c<i;c++)u[c]=t(r,e+1,n,n[e+1],o[c],s,a);return u}(f,0,a,a[0],s,e,i):[];return t.createDenseMatrix({data:c,size:L(a),datatype:o})}});function eI(t,r){var e;if(!Q(t)||!Q(r))throw Error("Parameters in function gcd must be integer numbers");for(;0!==r;)e=t%r,t=r,r=e;return t<0?-t:t}eI.signature="number, number";let{gcd:eT}=function t(r,e){var Z,W,Q,tt=(0,n.A)({},t_,e);if("function"!=typeof Object.create)throw Error("ES5 not supported by this JavaScript engine. Please load the es5-shim and es5-sham library for compatibility.");var tr=((Z={isNumber:i,isComplex:s,isBigNumber:o,isFraction:a,isUnit:u,isString:f,isArray:c,isMatrix:h,isCollection:p,isDenseMatrix:l,isSparseMatrix:d,isRange:m,isIndex:g,isBoolean:v,isResultSet:y,isHelp:w,isFunction:x,isDate:b,isRegExp:N,isObject:_,isNull:M,isUndefined:E,isAccessorNode:O,isArrayNode:A,isAssignmentNode:z,isBlockNode:S,isConditionalNode:C,isConstantNode:F,isFunctionAssignmentNode:I,isFunctionNode:T,isIndexNode:j,isNode:D,isObjectNode:k,isOperatorNode:R,isParenthesisNode:P,isRangeNode:B,isSymbolNode:q,isChain:U}).on=(W=new Y).on.bind(W),Z.off=W.off.bind(W),Z.once=W.once.bind(W),Z.emit=W.emit.bind(W),Z);tr.config=function(t,r){function e(e){if(!e)return H(t,L);var n=H(t,L);tO(e,"matrix",tM),tO(e,"number",tE),function t(r,e){if(Array.isArray(e))throw TypeError("Arrays are not supported by deepExtend");for(var n in e)if($(e,n)&&!(n in Object.prototype)&&!(n in Function.prototype))if(e[n]&&e[n].constructor===Object)void 0===r[n]&&(r[n]={}),r[n]&&r[n].constructor===Object?t(r[n],e[n]):r[n]=e[n];else if(Array.isArray(e[n]))throw TypeError("Arrays are not supported by deepExtend");else r[n]=e[n];return r}(t,e);var i=H(t,L);return r("config",i,n,H(e,L)),i}return e.MATRIX_OPTIONS=tM,e.NUMBER_OPTIONS=tE,Object.keys(t_).forEach(r=>{Object.defineProperty(e,r,{get:()=>t[r],enumerable:!0,configurable:!0})}),e}(tt,tr.emit),tr.expression={transform:{},mathWithTransform:{config:tr.config}};var te={},tn=function(t,r,e,n){function i(t,r){r&&"function"==typeof r.transform?(e.expression.transform[t]=r.transform,$(p,t)||(e.expression.mathWithTransform[t]=r.transform)):(delete e.expression.transform[t],$(p,t)||(e.expression.mathWithTransform[t]=r))}function f(t){return"function"==typeof t&&"object"==typeof t.signatures}function c(t){return void 0!==t&&void 0!==t.meta&&!0===t.meta.isTransformFunction}var p={expression:!0,type:!0,docs:!0,error:!0,json:!0,chain:!0};return function(r,l){var d=arguments.length;if(1!==d&&2!==d)throw new tN("import",d,1,2);l||(l={});var m={};for(var g in!function t(r,e,n){if(Array.isArray(e))e.forEach(e=>t(r,e));else if("object"==typeof e)for(var i in e)$(e,i)&&t(r,e[i],i);else if(X(e)||void 0!==n){var o=X(e)?c(e)?e.fn+".transform":e.fn:n;if($(r,o)&&r[o]!==e&&!l.silent)throw Error('Cannot import "'+o+'" twice');r[o]=e}else if(!l.silent)throw TypeError("Factory, Object, or Array expected")}(m,r),m)if($(m,g)){var v,y=m[g];if(X(y))!function(r,i){var o,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.fn;if(tb(s,"."))throw Error("Factory name should not contain a nested path. Name: "+JSON.stringify(s));var a=c(r)?e.expression.transform:e,u=s in e.expression.transform,h=$(a,s)?a[s]:void 0,l=function(){var n={};r.dependencies.map(K).forEach(t=>{if(tb(t,"."))throw Error("Factory dependency should not contain a nested path. Name: "+JSON.stringify(t));"math"===t?n.math=e:"mathWithTransform"===t?n.mathWithTransform=e.expression.mathWithTransform:"classes"===t?n.classes=e:n[t]=e[t]});var o=r(n);if(o&&"function"==typeof o.transform)throw Error('Transforms cannot be attached to factory functions. Please create a separate function for it with exports.path="expression.transform"');if(void 0===h||i.override)return o;if(f(h)&&f(o))return t(h,o);if(i.silent)return h;throw Error('Cannot import "'+s+'": already exists')};r.meta&&!1===r.meta.lazy?a[s]=l():J(a,s,l),h&&u?function(t){delete e.expression.transform[t],$(p,t)?delete e.expression.mathWithTransform[t]:e.expression.mathWithTransform[t]=e[t]}(s):!c(r)&&(-1!==(o=r).fn.indexOf(".")||$(p,o.fn)||o.meta&&o.meta.isClass)||J(e.expression.mathWithTransform,s,()=>a[s]),n[s]=r,e.emit("import",s,l)}(y,l);else{if("function"==typeof(v=y)||"number"==typeof v||"string"==typeof v||"boolean"==typeof v||null===v||u(v)||s(v)||o(v)||a(v)||h(v)||Array.isArray(v))!function(r,o,s){var a;if(s.wrap&&"function"==typeof o&&(o=function(t){var r=function(){for(var r=[],n=0,i=arguments.length;n<i;n++){var o=arguments[n];r[n]=o&&o.valueOf()}return t.apply(e,r)};return t.transform&&(r.transform=t.transform),r}(o)),"function"==typeof(a=o)&&"string"==typeof a.signature&&(o=t(r,{[o.signature]:o})),f(e[r])&&f(o)){o=s.override?t(r,o.signatures):t(e[r],o),e[r]=o,delete n[r],i(r,o),e.emit("import",r,function(){return o});return}if(void 0===e[r]||s.override){e[r]=o,delete n[r],i(r,o),e.emit("import",r,function(){return o});return}if(!s.silent)throw Error('Cannot import "'+r+'": already exists')}(g,y,l);else if(!l.silent)throw TypeError("Factory, Object, or Array expected")}}}}(function(){for(var t=arguments.length,r=Array(t),e=0;e<t;e++)r[e]=arguments[e];return tr.typed.apply(tr.typed,r)},0,tr,te);return tr.import=tn,tr.on("config",()=>{V(te).forEach(t=>{t&&t.meta&&t.meta.recreateOnConfigChange&&tn(t,{override:!0})})}),tr.create=t.bind(null,r),tr.factory=G,tr.import(V((function t(r,e){for(var n in r)if($(r,n)){var i=r[n];"object"==typeof i&&null!==i?t(i,e):e[n]=i}}(r,Q={}),Q))),tr.ArgumentsError=tN,tr.DimensionError=th,tr.IndexError=tp,tr}({gcdDependencies:{BigNumberDependencies:rY,DenseMatrixDependencies:rX,equalScalarDependencies:e_,matrixDependencies:{DenseMatrixDependencies:rX,MatrixDependencies:rG,SparseMatrixDependencies:{MatrixDependencies:rG,equalScalarDependencies:e_,typedDependencies:ex,createSparseMatrixClass:eM},typedDependencies:ex,createMatrix:eO},typedDependencies:ex,createGcd:G("gcd",["typed","matrix","equalScalar","BigNumber","DenseMatrix"],t=>{var{typed:r,matrix:e,equalScalar:n,BigNumber:i,DenseMatrix:o}=t,s=eA({typed:r}),a=ez({typed:r,equalScalar:n}),u=eS({typed:r,DenseMatrix:o}),f=eC({typed:r}),c=eF({typed:r});return r("gcd",{"number, number":eI,"BigNumber, BigNumber":function(t,r){if(!t.isInt()||!r.isInt())throw Error("Parameters in function gcd must be integer numbers");for(var e=new i(0);!r.isZero();){var n=t.mod(r);t=r,r=n}return t.lt(e)?t.neg():t},"Fraction, Fraction":function(t,r){return t.gcd(r)},"SparseMatrix, SparseMatrix":function(t,r){return a(t,r,this)},"SparseMatrix, DenseMatrix":function(t,r){return s(r,t,this,!0)},"DenseMatrix, SparseMatrix":function(t,r){return s(t,r,this,!1)},"DenseMatrix, DenseMatrix":function(t,r){return f(t,r,this)},"Array, Array":function(t,r){return this(e(t),e(r)).valueOf()},"Array, Matrix":function(t,r){return this(e(t),r)},"Matrix, Array":function(t,r){return this(t,e(r))},"SparseMatrix, number | BigNumber":function(t,r){return u(t,r,this,!1)},"DenseMatrix, number | BigNumber":function(t,r){return c(t,r,this,!1)},"number | BigNumber, SparseMatrix":function(t,r){return u(r,t,this,!0)},"number | BigNumber, DenseMatrix":function(t,r){return c(r,t,this,!0)},"Array, number | BigNumber":function(t,r){return c(e(t),r,this,!1).valueOf()},"number | BigNumber, Array":function(t,r){return c(e(r),t,this,!0).valueOf()},"Array | Matrix | number | BigNumber, Array | Matrix | number | BigNumber, ...Array | Matrix | number | BigNumber":function(t,r,e){for(var n=this(t,r),i=0;i<e.length;i++)n=this(n,e[i]);return n}})})}}),ej=10;function eD(t,r){let e=r.startMs,n=t.values,i=[];for(let t of n){for(;e<t[0];)i.push([e,null]),e+=r.stepMs;i.push([e,t[1]]),e+=r.stepMs}for(;e<=r.endMs;)i.push([e,null]),e+=r.stepMs;return i}function ek(t){let r,e,n=[];for(let r of t)if(r&&"timeRange"in r){if(void 0===r||void 0===r.timeRange||void 0===r.stepMs)continue;if(n.push(r.stepMs),void 0===e){e=r.timeRange;continue}r.timeRange.start<e.start&&(e.start=r.timeRange.start),r.timeRange.end>e.end&&(e.end=r.timeRange.end)}else if(r&&"values"in r){for(let t=0;t<r.values.length;t++){let n=r.values[t];if(void 0===n)continue;let[i]=n,o=new Date(i),s=new Date(i);if(void 0===e){e={start:o,end:s};continue}o<e.start&&(e.start=o),s>e.end&&(e.end=s)}if(void 0===e)return;let t=e.start.valueOf(),n=e.end.valueOf(),i=n-t;return{startMs:t,endMs:n,rangeMs:i,stepMs:ej}}if(void 0===e)return;if(1===n.length)r=n[0];else{let t=eT(...n);r=t<ej?ej:t}let i=e.start.valueOf(),o=e.end.valueOf();return{startMs:i,endMs:o,stepMs:r,rangeMs:o-i}}},64886:function(t,r,e){"use strict";e.d(r,{u:()=>i});var n=e(21047);function i(t,r=[]){if(!r.length)return{value:t};let e={value:t};return r.forEach(r=>{switch(r.kind){case"Value":{let n=r.spec;String(n.value)===String(t)&&(e.value=n.result.value||e.value,e.color=n.result.color);break}case"Range":{let n=r.spec;if(void 0===n.from&&void 0===n.to)break;let i=void 0!==n.from?n.from:-1/0,o=void 0!==n.to?n.to:1/0;t>=i&&t<=o&&(e.value=n.result.value||e.value,e.color=n.result.color);break}case"Regex":{let i=r.spec,o=t.toString();if(!i.pattern)break;let s=(0,n.f)(i.pattern);o.match(s)&&null!==i.result.value&&(e.value=o.replace(s,i.result.value.toString()||"")||e.value,e.color=i.result.color);break}case"Misc":{let n=r.spec;(function(t,r){switch(t){case"empty":return""===r;case"null":return null==r;case"NaN":return Number.isNaN(r);case"true":return!0===r;case"false":return!1===r;default:return!1}})(n.value,t)&&(e.value=n.result.value||e.value,e.color=n.result.color)}}}),e}},23420:function(t){function r(){}r.prototype={on:function(t,r,e){var n=this.e||(this.e={});return(n[t]||(n[t]=[])).push({fn:r,ctx:e}),this},once:function(t,r,e){var n=this;function i(){n.off(t,i),r.apply(e,arguments)}return i._=r,this.on(t,i,e)},emit:function(t){for(var r=[].slice.call(arguments,1),e=((this.e||(this.e={}))[t]||[]).slice(),n=0,i=e.length;n<i;n++)e[n].fn.apply(e[n].ctx,r);return this},off:function(t,r){var e=this.e||(this.e={}),n=e[t],i=[];if(n&&r)for(var o=0,s=n.length;o<s;o++)n[o].fn!==r&&n[o].fn._!==r&&i.push(n[o]);return i.length?e[t]=i:delete e[t],this}},t.exports=r,t.exports.TinyEmitter=r},42915:function(t){"use strict";var r;r=function(){function t(){return!0}function r(){return!1}function e(){}return function n(){var i=[{name:"number",test:function(t){return"number"==typeof t}},{name:"string",test:function(t){return"string"==typeof t}},{name:"boolean",test:function(t){return"boolean"==typeof t}},{name:"Function",test:function(t){return"function"==typeof t}},{name:"Array",test:Array.isArray},{name:"Date",test:function(t){return t instanceof Date}},{name:"RegExp",test:function(t){return t instanceof RegExp}},{name:"Object",test:function(t){return"object"==typeof t&&null!==t&&t.constructor===Object}},{name:"null",test:function(t){return null===t}},{name:"undefined",test:function(t){return void 0===t}}],o={name:"any",test:t},s=[],a=[],u={types:i,conversions:a,ignore:s};function f(t){var r=k(u.types,function(r){return r.name===t});if(r)return r;if("any"===t)return o;var e=k(u.types,function(r){return r.name.toLowerCase()===t.toLowerCase()});throw TypeError('Unknown type "'+t+'"'+(e?'. Did you mean "'+e.name+'"?':""))}function c(t){return t===o?999:u.types.indexOf(t)}function h(t){var r=k(u.types,function(r){return r.test(t)});if(r)return r.name;throw TypeError("Value has unknown type. Value: "+t)}function p(t){return t.map(function(t){var r=t.types.map(y);return(t.restParam?"...":"")+r.join("|")}).join(",")}function l(t){var r=j(t);return!!r&&r.restParam}function d(t){return t.types.some(function(t){return null!=t.conversion})}function m(r){if(!r||0===r.types.length)return t;if(1===r.types.length)return f(r.types[0].name).test;if(2===r.types.length){var e=f(r.types[0].name).test,n=f(r.types[1].name).test;return function(t){return e(t)||n(t)}}var i=r.types.map(function(t){return f(t.name).test});return function(t){for(var r=0;r<i.length;r++)if(i[r](t))return!0;return!1}}function g(t,r){return r<t.params.length?t.params[r]:l(t.params)?j(t.params):null}function v(t,r,e){var n=g(t,r);return(n?e?n.types.filter(w):n.types:[]).map(y)}function y(t){return t.name}function w(t){return null===t.conversion||void 0===t.conversion}function x(t,r){var e=function(t){for(var r={},e=0;e<t.length;e++)r[t[e]]=!0;return Object.keys(r)}(R(t,function(t){return v(t,r,!1)}));return -1!==e.indexOf("any")?["any"]:e}function b(t,r,e){var n,i,o,s=t||"unnamed",a=e;for(o=0;o<r.length;o++){var u=a.filter(function(t){var e=m(g(t,o));return(o<t.params.length||l(t.params))&&e(r[o])});if(0===u.length){if((i=x(a,o)).length>0){var f=h(r[o]);return(n=TypeError("Unexpected type of argument in function "+s+" (expected: "+i.join(" or ")+", actual: "+f+", index: "+o+")")).data={category:"wrongType",fn:s,index:o,actual:f,expected:i},n}}else a=u}var c=a.map(function(t){return l(t.params)?1/0:t.params.length});if(r.length<Math.min.apply(null,c))return(n=TypeError("Too few arguments in function "+s+" (expected: "+(i=x(a,o)).join(" or ")+", index: "+r.length+")")).data={category:"tooFewArgs",fn:s,index:r.length,expected:i},n;var p=Math.max.apply(null,c);return r.length>p?(n=TypeError("Too many arguments in function "+s+" (expected: "+p+", actual: "+r.length+")")).data={category:"tooManyArgs",fn:s,index:r.length,expectedLength:p}:(n=TypeError('Arguments of type "'+r.join(", ")+'" do not match any of the defined signatures of function '+s+".")).data={category:"mismatch",actual:r.map(h)},n}function N(t){for(var r=999,e=0;e<t.types.length;e++)w(t.types[e])&&(r=Math.min(r,t.types[e].typeIndex));return r}function _(t){for(var r=999,e=0;e<t.types.length;e++)w(t.types[e])||(r=Math.min(r,t.types[e].conversionIndex));return r}function M(t,r){var e,n,i=Math.min(t.params.length,r.params.length);if(0!=(n=t.params.some(d)-r.params.some(d)))return n;for(e=0;e<i;e++)if(0!=(n=d(t.params[e])-d(r.params[e])))return n;for(e=0;e<i;e++)if(0!==(n=function(t,r){var e;return 0!=(e=t.restParam-r.restParam)||0!=(e=d(t)-d(r))||0!=(e=N(t)-N(r))?e:_(t)-_(r)}(t.params[e],r.params[e])))return n;return t.params.length-r.params.length}function E(t){var r,e,n,i,o=[],s=[];switch(t.types.forEach(function(t){t.conversion&&(o.push(f(t.conversion.from).test),s.push(t.conversion.convert))}),s.length){case 0:return function(t){return t};case 1:return r=o[0],n=s[0],function(t){return r(t)?n(t):t};case 2:return r=o[0],e=o[1],n=s[0],i=s[1],function(t){return r(t)?n(t):e(t)?i(t):t};default:return function(t){for(var r=0;r<s.length;r++)if(o[r](t))return s[r](t);return t}}}function O(t,r){return function t(e,n,i){if(!(n<e.length))return[i.map(function(t,r){return{types:t,restParam:r===e.length-1&&l(e)}})];var o,s=e[n],a=r?s.types.filter(w):s.types;if(s.restParam){var u=a.filter(w);o=u.length<a.length?[u,a]:[a]}else o=a.map(function(t){return[t]});return R(o,function(r){return t(e,n+1,i.concat([r]))})}(t,0,[])}function A(t,n){if(0===Object.keys(n).length)throw SyntaxError("No signatures provided");var i,o=[];Object.keys(n).map(function(t){var r,e,i;return r=n[t],e=u.conversions,i=[],(""!==t.trim()&&(i=t.split(",").map(C).map(function(t,r,n){var i,o,s,a,u,h,p,l,d=(i=e,o=u=((a=0===t.indexOf("..."))?t.length>3?t.slice(3):"any":t).split("|").map(C).filter(F).filter(S),s={},i.forEach(function(t){-1!==o.indexOf(t.from)||-1===o.indexOf(t.to)||s[t.from]||(s[t.from]=t)}),h=Object.keys(s).map(function(t){return s[t]}),p=u.map(function(t){var r=f(t);return{name:t,typeIndex:c(r),test:r.test,conversion:null,conversionIndex:-1}}),l=h.map(function(t){var r=f(t.from);return{name:t.from,typeIndex:c(r),test:r.test,conversion:t,conversionIndex:e.indexOf(t)}}),{types:p.concat(l),restParam:a});if(d.restParam&&r!==n.length-1)throw SyntaxError('Unexpected rest parameter "'+t+'": only allowed for the last parameter');return d})),i.some(T))?null:{params:i,fn:r}}).filter(I).forEach(function(t){var r=k(o,function(r){return function(t,r){for(var e=Math.max(t.params.length,r.params.length),n=0;n<e;n++)if(!function(t,r){for(var e,n=0;n<t.length;n++)if(e=t[n],-1!==r.indexOf(e))return!0;return!1}(v(t,n,!0),v(r,n,!0)))return!1;var i=t.params.length,o=r.params.length,s=l(t.params),a=l(r.params);return s?a?i===o:o>=i:a?i>=o:i===o}(r,t)});if(r)throw TypeError('Conflicting signatures "'+p(r.params)+'" and "'+p(t.params)+'".');o.push(t)});var s=R(o,function(t){return(t?O(t.params,!1):[]).map(function(r){return{params:r,fn:t.fn}})}).filter(I);s.sort(M);var a=s[0]&&s[0].params.length<=2&&!l(s[0].params),h=s[1]&&s[1].params.length<=2&&!l(s[1].params),g=s[2]&&s[2].params.length<=2&&!l(s[2].params),y=s[3]&&s[3].params.length<=2&&!l(s[3].params),w=s[4]&&s[4].params.length<=2&&!l(s[4].params),x=s[5]&&s[5].params.length<=2&&!l(s[5].params),b=s.map(function(t){return function(t){var r,e,n;if(l(t)){var i,o=(r=(i=t).slice(0,i.length-1).map(m)).length,s=m(j(t)),a=function(t){for(var r=o;r<t.length;r++)if(!s(t[r]))return!1;return!0};return function(t){for(var e=0;e<r.length;e++)if(!r[e](t[e]))return!1;return a(t)&&t.length>=o+1}}return 0===t.length?function(t){return 0===t.length}:1===t.length?(e=m(t[0]),function(t){return e(t[0])&&1===t.length}):2===t.length?(e=m(t[0]),n=m(t[1]),function(t){return e(t[0])&&n(t[1])&&2===t.length}):(r=t.map(m),function(t){for(var e=0;e<r.length;e++)if(!r[e](t[e]))return!1;return t.length===r.length})}(t.params)}),N=a?m(s[0].params[0]):r,_=h?m(s[1].params[0]):r,A=g?m(s[2].params[0]):r,z=y?m(s[3].params[0]):r,P=w?m(s[4].params[0]):r,B=x?m(s[5].params[0]):r,q=a?m(s[0].params[1]):r,U=h?m(s[1].params[1]):r,Z=g?m(s[2].params[1]):r,L=y?m(s[3].params[1]):r,H=w?m(s[4].params[1]):r,W=x?m(s[5].params[1]):r,J=s.map(function(t){return function(t,r){var e=r;if(t.some(d)){var n=l(t),i=t.map(E);e=function(){for(var t=[],e=n?arguments.length-1:arguments.length,o=0;o<e;o++)t[o]=i[o](arguments[o]);return n&&(t[e]=arguments[e].map(i[e])),r.apply(this,t)}}var o=e;if(l(t)){var s=t.length-1;o=function(){return e.apply(this,D(arguments,0,s).concat([D(arguments,s)]))}}return o}(t.params,t.fn)}),$=a?J[0]:e,V=h?J[1]:e,Y=g?J[2]:e,G=y?J[3]:e,X=w?J[4]:e,K=x?J[5]:e,Q=a?s[0].params.length:-1,tt=h?s[1].params.length:-1,tr=g?s[2].params.length:-1,te=y?s[3].params.length:-1,tn=w?s[4].params.length:-1,ti=x?s[5].params.length:-1,to=6*!!(a&&h&&g&&y&&w&&x),ts=s.length,ta=function(){for(var r=to;r<ts;r++)if(b[r](arguments))return J[r].apply(this,arguments);return u.onMismatch(t,arguments,s)},tu=function t(r,e){return arguments.length===Q&&N(r)&&q(e)?$.apply(t,arguments):arguments.length===tt&&_(r)&&U(e)?V.apply(t,arguments):arguments.length===tr&&A(r)&&Z(e)?Y.apply(t,arguments):arguments.length===te&&z(r)&&L(e)?G.apply(t,arguments):arguments.length===tn&&P(r)&&H(e)?X.apply(t,arguments):arguments.length===ti&&B(r)&&W(e)?K.apply(t,arguments):ta.apply(t,arguments)};try{Object.defineProperty(tu,"name",{value:t})}catch(t){}return i={},s.forEach(function(t){t.params.some(d)||O(t.params,!0).forEach(function(r){i[p(r)]=t.fn})}),tu.signatures=i,tu}function z(t,r,e){throw b(t,r,e)}function S(t){return -1===u.ignore.indexOf(t)}function C(t){return t.trim()}function F(t){return!!t}function I(t){return null!==t}function T(t){return 0===t.types.length}function j(t){return t[t.length-1]}function D(t,r,e){return Array.prototype.slice.call(t,r,e)}function k(t,r){for(var e=0;e<t.length;e++)if(r(t[e]))return t[e]}function R(t,r){return Array.prototype.concat.apply([],t.map(r))}function P(t){for(var r="",e=0;e<t.length;e++){var n=t[e];if(("object"==typeof n.signatures||"string"==typeof n.signature)&&""!==n.name){if(""===r)r=n.name;else if(r!==n.name){var i=Error("Function names do not match (expected: "+r+", actual: "+n.name+")");throw i.data={actual:n.name,expected:r},i}}}return r}function B(t){var r,e={};function n(t,n){if(e.hasOwnProperty(t)&&n!==e[t])throw(r=Error('Signature "'+t+'" is defined twice')).data={signature:t},r}for(var i=0;i<t.length;i++){var o=t[i];if("object"==typeof o.signatures)for(var s in o.signatures)o.signatures.hasOwnProperty(s)&&(n(s,o.signatures[s]),e[s]=o.signatures[s]);else if("string"==typeof o.signature)n(o.signature,o),e[o.signature]=o;else throw(r=TypeError("Function is no typed-function (index: "+i+")")).data={index:i},r}return e}return(u=A("typed",{"string, Object":A,Object:function(t){var r=[];for(var e in t)t.hasOwnProperty(e)&&r.push(t[e]);return A(P(r),t)},"...Function":function(t){return A(P(t),B(t))},"string, ...Function":function(t,r){return A(t,B(r))}})).create=n,u.types=i,u.conversions=a,u.ignore=s,u.onMismatch=z,u.throwMismatchError=z,u.createError=b,u.convert=function(t,r){var e=h(t);if(r===e)return t;for(var n=0;n<u.conversions.length;n++){var i=u.conversions[n];if(i.from===e&&i.to===r)return i.convert(t)}throw Error("Cannot convert from "+e+" to "+r)},u.find=function(t,r){if(!t.signatures)throw TypeError("Function is no typed-function");if("string"==typeof r){e=r.split(",");for(var e,n=0;n<e.length;n++)e[n]=e[n].trim()}else if(Array.isArray(r))e=r;else throw TypeError("String array or a comma separated string expected");var i=e.join(","),o=t.signatures[i];if(o)return o;throw TypeError("Signature not found (signature: "+(t.name||"unnamed")+"("+e.join(", ")+"))")},u.addType=function(t,r){if(!t||"string"!=typeof t.name||"function"!=typeof t.test)throw TypeError("Object with properties {name: string, test: function} expected");if(!1!==r){for(var e=0;e<u.types.length;e++)if("Object"===u.types[e].name)return void u.types.splice(e,0,t)}u.types.push(t)},u.addConversion=function(t){if(!t||"string"!=typeof t.from||"string"!=typeof t.to||"function"!=typeof t.convert)throw TypeError("Object with properties {from: string, to: string, convert: function} expected");u.conversions.push(t)},u}()},"function"==typeof define&&define.amd?define([],r):t.exports=r()}}]);
@@ -1,15 +0,0 @@
1
- /*!
2
- * decimal.js v10.5.0
3
- * An arbitrary-precision Decimal type for JavaScript.
4
- * https://github.com/MikeMcl/decimal.js
5
- * Copyright (c) 2025 Michael Mclaughlin <M8ch88l@gmail.com>
6
- * MIT Licence
7
- */
8
-
9
- /**
10
- * @license Fraction.js v4.3.7 31/08/2023
11
- * https://www.xarg.org/2014/03/rational-numbers-in-javascript/
12
- *
13
- * Copyright (c) 2023, Robert Eisele (robert@raw.org)
14
- * Dual licensed under the MIT or GPL Version 2 licenses.
15
- **/