onchain-uikit 0.0.7 → 3.9.4-alpha2

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 (146) hide show
  1. package/dist/filePreview/fontawesome-webfont.woff2 +0 -0
  2. package/dist/filePreview/iconfont.css +457 -0
  3. package/dist/filePreview/loading.gif +0 -0
  4. package/dist/filePreview/logo.svg +1 -0
  5. package/dist/filePreview/luckyexcel.umd.js +26153 -0
  6. package/dist/filePreview/luckysheet.css +7145 -0
  7. package/dist/filePreview/luckysheet.umd.js +137608 -0
  8. package/dist/filePreview/plugin.js +29474 -0
  9. package/dist/filePreview/plugins.css +10 -0
  10. package/dist/filePreview/pluginsCss.css +1 -0
  11. package/dist/filePreview/waffle_sprite.png +0 -0
  12. package/dist/font/demo.css +539 -0
  13. package/dist/font/demo_index.html +20820 -0
  14. package/dist/font/iconfont.css +3604 -0
  15. package/dist/font/iconfont.js +70 -0
  16. package/dist/font/iconfont.json +6288 -0
  17. package/dist/font/iconfont.svg +1813 -0
  18. package/dist/font/iconfont.ttf +0 -0
  19. package/dist/font/iconfont.woff +0 -0
  20. package/dist/font/iconfont.woff2 +0 -0
  21. package/dist/index.cjs.js +529 -0
  22. package/dist/index.es.js +44594 -0
  23. package/dist/index.umd.js +633 -0
  24. package/dist/logo.svg +1 -0
  25. package/dist/onchain-uikit.css +10 -0
  26. package/dist/xlsx-C9icP-aY.mjs +24775 -0
  27. package/dist/xlsx-qn1xoUuv.js +105 -0
  28. package/lib/src/App.d.ts +1 -1
  29. package/lib/src/app/main/model/context.d.ts +30 -0
  30. package/lib/src/components/OnChainAI/index.d.ts +3 -0
  31. package/lib/src/{stories/Page.stories.d.ts → components/OnChainAI/index.stories.d.ts} +4 -2
  32. package/lib/src/components/OnChainAI/welcome.d.ts +6 -0
  33. package/lib/src/components/OnChainAdvancedSearch/index.d.ts +8 -0
  34. package/lib/src/{stories/XsButton.stories.d.ts → components/OnChainAdvancedSearch/index.stories.d.ts} +1 -1
  35. package/lib/src/components/OnChainBadge/index.d.ts +52 -0
  36. package/lib/src/{stories/PlmMosaic.stories.d.ts → components/OnChainBadge/index.stories.d.ts} +2 -2
  37. package/lib/src/components/OnChainCompositeForm/index.d.ts +26 -0
  38. package/lib/src/components/OnChainCompositeForm/index.stories.d.ts +14 -0
  39. package/lib/src/components/OnChainDropMenu/index.d.ts +21 -0
  40. package/lib/src/components/OnChainDropMenu/index.stories.d.ts +14 -0
  41. package/lib/src/components/OnChainExcelViewer/index.d.ts +8 -0
  42. package/lib/src/components/OnChainExcelViewer/index.stories.d.ts +14 -0
  43. package/lib/src/components/OnChainForm/index.d.ts +14 -0
  44. package/lib/src/components/OnChainForm/index.stories.d.ts +14 -0
  45. package/lib/src/components/OnChainFormItem/index.d.ts +175 -0
  46. package/lib/src/components/OnChainFormItem/index.stories.d.ts +19 -0
  47. package/lib/src/components/OnChainFormItem/title/index.d.ts +2 -0
  48. package/lib/src/components/OnChainGenAntImage/index.d.ts +5 -0
  49. package/lib/src/components/OnChainGenAntImage/index.stories.d.ts +14 -0
  50. package/lib/src/components/OnChainGlobalLoading/index.d.ts +9 -0
  51. package/lib/src/components/OnChainGlobalLoading/index.stories.d.ts +14 -0
  52. package/lib/src/components/OnChainHighLightWords/index.d.ts +9 -0
  53. package/lib/src/components/OnChainHighLightWords/index.stories.d.ts +14 -0
  54. package/lib/src/components/OnChainIcon/index.d.ts +31 -0
  55. package/lib/src/components/OnChainIcon/index.stories.d.ts +15 -0
  56. package/lib/src/components/OnChainImage/index.d.ts +9 -0
  57. package/lib/src/components/OnChainImage/index.stories.d.ts +18 -0
  58. package/lib/src/components/OnChainInput/index.d.ts +13 -0
  59. package/lib/src/components/OnChainInput/index.stories.d.ts +14 -0
  60. package/lib/src/components/OnChainLinkInstance/index.d.ts +1 -0
  61. package/lib/src/components/OnChainLoading/index.d.ts +10 -0
  62. package/lib/src/components/OnChainLoading/index.stories.d.ts +14 -0
  63. package/lib/src/components/OnChainLoadingSkCube/index.d.ts +6 -0
  64. package/lib/src/components/OnChainLoadingSkCube/index.stories.d.ts +14 -0
  65. package/lib/src/components/OnChainMarkdown/index.d.ts +16 -0
  66. package/lib/src/components/OnChainMarkdown/index.stories.d.ts +14 -0
  67. package/lib/src/components/OnChainModal/index.d.ts +22 -0
  68. package/lib/src/components/OnChainModal/index.stories.d.ts +14 -0
  69. package/lib/src/components/OnChainMosaic/index.d.ts +7 -0
  70. package/lib/src/components/OnChainMosaic/index.stories.d.ts +14 -0
  71. package/lib/src/components/OnChainPopoverTransfer/index.d.ts +49 -0
  72. package/lib/src/components/OnChainPopoverTransfer/select/index.d.ts +18 -0
  73. package/lib/src/components/OnChainPopupSelect/index.d.ts +32 -0
  74. package/lib/src/components/OnChainPopupSelect/index.stories.d.ts +14 -0
  75. package/lib/src/components/OnChainProgress/index.d.ts +7 -0
  76. package/lib/src/components/OnChainProgress/index.stories.d.ts +16 -0
  77. package/lib/src/components/OnChainProvider/index.d.ts +18 -0
  78. package/lib/src/components/OnChainProvider/index.stories.d.ts +14 -0
  79. package/lib/src/components/OnChainPublicTree/index.d.ts +20 -0
  80. package/lib/src/components/OnChainPublicTree/index.stories.d.ts +14 -0
  81. package/lib/src/components/OnChainQueryBuilder/AbcSelectTransfer/index.d.ts +15 -0
  82. package/lib/src/components/OnChainQueryBuilder/index.d.ts +31 -0
  83. package/lib/src/components/OnChainResourceTree/index.d.ts +26 -0
  84. package/lib/src/components/OnChainResourceTree/index.stories.d.ts +14 -0
  85. package/lib/src/components/OnChainScrollBar/index.d.ts +7 -0
  86. package/lib/src/components/OnChainScrollBar/index.stories.d.ts +14 -0
  87. package/lib/src/components/OnChainScrollBarAssembly/index.d.ts +11 -0
  88. package/lib/src/components/OnChainScrollBarAssembly/index.stories.d.ts +14 -0
  89. package/lib/src/components/OnChainSelect/index.d.ts +14 -0
  90. package/lib/src/{stories/PlmSelect/PlmSelect.stories.d.ts → components/OnChainSelect/index.stories.d.ts} +8 -3
  91. package/lib/src/components/OnChainSelectPopupForm/index.d.ts +45 -0
  92. package/lib/src/components/OnChainSelectPopupForm/select/index.d.ts +20 -0
  93. package/lib/src/components/OnChainTable/ContextMenu.d.ts +8 -0
  94. package/lib/src/components/OnChainTable/EditableCell.d.ts +39 -0
  95. package/lib/src/components/OnChainTable/EditableRow.d.ts +6 -0
  96. package/lib/src/components/OnChainTable/OnChainTableFormItem/index.d.ts +14 -0
  97. package/lib/src/components/OnChainTable/ResizableTitle.d.ts +2 -0
  98. package/lib/src/components/OnChainTable/TableFooter.d.ts +13 -0
  99. package/lib/src/components/OnChainTable/TableUtils.d.ts +78 -0
  100. package/lib/src/components/OnChainTable/const.d.ts +2 -0
  101. package/lib/src/components/OnChainTable/index.d.ts +101 -0
  102. package/lib/src/components/OnChainTable/index.stories.d.ts +28 -0
  103. package/lib/src/components/OnChainTable/type.d.ts +10 -0
  104. package/lib/src/components/OnChainTable/useClipboard.d.ts +67 -0
  105. package/lib/src/components/OnChainTable/useColumn.d.ts +5 -0
  106. package/lib/src/components/OnChainTable/useCopy.d.ts +5 -0
  107. package/lib/src/components/OnChainTable/useDynamicHeight.d.ts +13 -0
  108. package/lib/src/components/OnChainTable/useFiltered.d.ts +23 -0
  109. package/lib/src/components/OnChainTable/usePaste.d.ts +5 -0
  110. package/lib/src/components/OnChainTable/useVirtualScroll.d.ts +3 -0
  111. package/lib/src/components/OnChainTable/virtualScroll.d.ts +91 -0
  112. package/lib/src/components/OnChainTableSelection/index.d.ts +40 -0
  113. package/lib/src/components/OnChainTableSelection/index.stories.d.ts +14 -0
  114. package/lib/src/components/OnChainTabs/index.d.ts +20 -0
  115. package/lib/src/components/OnChainTabs/index.stories.d.ts +14 -0
  116. package/lib/src/components/OnChainViewerError/index.d.ts +6 -0
  117. package/lib/src/components/OnChainViewerError/index.stories.d.ts +14 -0
  118. package/lib/src/components/OnChainformUploader/index.d.ts +1 -0
  119. package/lib/src/components/PlmSearchSelect/index.d.ts +18 -0
  120. package/lib/src/hooks/useShortcutKey/index.d.ts +5 -0
  121. package/lib/src/hooks/useStore/index.d.ts +14 -0
  122. package/lib/src/index.d.ts +32 -4
  123. package/lib/src/language/index.d.ts +23 -0
  124. package/lib/src/language/translate.d.ts +5 -0
  125. package/lib/src/types/gantt.d.ts +269 -0
  126. package/lib/src/typings.d.ts +610 -612
  127. package/lib/src/utils/attribute.d.ts +70 -0
  128. package/lib/src/utils/authority/basicsAuthority.d.ts +0 -5
  129. package/lib/src/utils/authority/const.d.ts +30 -0
  130. package/lib/src/utils/itemCode.d.ts +159 -0
  131. package/lib/src/utils/utility.d.ts +46 -0
  132. package/lib/typings.d.ts +126 -130
  133. package/package.json +31 -7
  134. package/lib/instance.cjs.mjs +0 -366
  135. package/lib/instance.es.mjs +0 -29301
  136. package/lib/instance.umd.mjs +0 -366
  137. package/lib/src/components/PlmMosaic/index.d.ts +0 -5
  138. package/lib/src/stories/Button.d.ts +0 -14
  139. package/lib/src/stories/Button.stories.d.ts +0 -23
  140. package/lib/src/stories/Header.d.ts +0 -11
  141. package/lib/src/stories/Header.stories.d.ts +0 -18
  142. package/lib/src/stories/OnChainProvider.d.ts +0 -12
  143. package/lib/src/stories/Page.d.ts +0 -2
  144. package/lib/src/stories/PlmSelect/index.d.ts +0 -20
  145. package/lib/src/stories/XsButton.d.ts +0 -22
  146. /package/{lib → dist}/vite.svg +0 -0
@@ -0,0 +1,633 @@
1
+ (function(vt,U){typeof exports=="object"&&typeof module<"u"?U(exports,require("react"),require("antd"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","antd","react-dom"],U):(vt=typeof globalThis<"u"?globalThis:vt||self,U(vt["onchain-uikit"]={},vt.React,vt.antd,vt.ReactDOM))})(this,function(vt,U,ue,rf){"use strict";var Rge=Object.defineProperty;var Ige=(vt,U,ue)=>U in vt?Rge(vt,U,{enumerable:!0,configurable:!0,writable:!0,value:ue}):vt[U]=ue;var gr=(vt,U,ue)=>Ige(vt,typeof U!="symbol"?U+"":U,ue);function VD(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const pe=VD(U);var fi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function qD(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return e[n]}})}),r}var lh={exports:{}},nf={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var Mw;function GD(){if(Mw)return nf;Mw=1;var e=U,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function s(o,u,l){var f,d={},p=null,v=null;l!==void 0&&(p=""+l),u.key!==void 0&&(p=""+u.key),u.ref!==void 0&&(v=u.ref);for(f in u)n.call(u,f)&&!i.hasOwnProperty(f)&&(d[f]=u[f]);if(o&&o.defaultProps)for(f in u=o.defaultProps,u)d[f]===void 0&&(d[f]=u[f]);return{$$typeof:t,type:o,key:p,ref:v,props:d,_owner:a.current}}return nf.Fragment=r,nf.jsx=s,nf.jsxs=s,nf}var af={};/**
10
+ * @license React
11
+ * react-jsx-runtime.development.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var Lw;function YD(){return Lw||(Lw=1,process.env.NODE_ENV!=="production"&&function(){var e=U,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),o=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),_=Symbol.iterator,x="@@iterator";function w(z){if(z===null||typeof z!="object")return null;var Y=_&&z[_]||z[x];return typeof Y=="function"?Y:null}var C=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(z){{for(var Y=arguments.length,Z=new Array(Y>1?Y-1:0),ne=1;ne<Y;ne++)Z[ne-1]=arguments[ne];b("error",z,Z)}}function b(z,Y,Z){{var ne=C.ReactDebugCurrentFrame,ae=ne.getStackAddendum();ae!==""&&(Y+="%s",Z=Z.concat([ae]));var he=Z.map(function(we){return String(we)});he.unshift("Warning: "+Y),Function.prototype.apply.call(console[z],console,he)}}var h=!1,g=!1,y=!1,S=!1,A=!1,k;k=Symbol.for("react.module.reference");function F(z){return!!(typeof z=="string"||typeof z=="function"||z===n||z===i||A||z===a||z===l||z===f||S||z===v||h||g||y||typeof z=="object"&&z!==null&&(z.$$typeof===p||z.$$typeof===d||z.$$typeof===s||z.$$typeof===o||z.$$typeof===u||z.$$typeof===k||z.getModuleId!==void 0))}function P(z,Y,Z){var ne=z.displayName;if(ne)return ne;var ae=Y.displayName||Y.name||"";return ae!==""?Z+"("+ae+")":Z}function j(z){return z.displayName||"Context"}function N(z){if(z==null)return null;if(typeof z.tag=="number"&&E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof z=="function")return z.displayName||z.name||null;if(typeof z=="string")return z;switch(z){case n:return"Fragment";case r:return"Portal";case i:return"Profiler";case a:return"StrictMode";case l:return"Suspense";case f:return"SuspenseList"}if(typeof z=="object")switch(z.$$typeof){case o:var Y=z;return j(Y)+".Consumer";case s:var Z=z;return j(Z._context)+".Provider";case u:return P(z,z.render,"ForwardRef");case d:var ne=z.displayName||null;return ne!==null?ne:N(z.type)||"Memo";case p:{var ae=z,he=ae._payload,we=ae._init;try{return N(we(he))}catch{return null}}}return null}var I=Object.assign,B=0,O,M,V,L,W,G,H;function Q(){}Q.__reactDisabledLog=!0;function K(){{if(B===0){O=console.log,M=console.info,V=console.warn,L=console.error,W=console.group,G=console.groupCollapsed,H=console.groupEnd;var z={configurable:!0,enumerable:!0,value:Q,writable:!0};Object.defineProperties(console,{info:z,log:z,warn:z,error:z,group:z,groupCollapsed:z,groupEnd:z})}B++}}function te(){{if(B--,B===0){var z={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},z,{value:O}),info:I({},z,{value:M}),warn:I({},z,{value:V}),error:I({},z,{value:L}),group:I({},z,{value:W}),groupCollapsed:I({},z,{value:G}),groupEnd:I({},z,{value:H})})}B<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var se=C.ReactCurrentDispatcher,le;function ge(z,Y,Z){{if(le===void 0)try{throw Error()}catch(ae){var ne=ae.stack.trim().match(/\n( *(at )?)/);le=ne&&ne[1]||""}return`
18
+ `+le+z}}var ye=!1,be;{var Be=typeof WeakMap=="function"?WeakMap:Map;be=new Be}function J(z,Y){if(!z||ye)return"";{var Z=be.get(z);if(Z!==void 0)return Z}var ne;ye=!0;var ae=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var he;he=se.current,se.current=null,K();try{if(Y){var we=function(){throw Error()};if(Object.defineProperty(we.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(we,[])}catch(je){ne=je}Reflect.construct(z,[],we)}else{try{we.call()}catch(je){ne=je}z.call(we.prototype)}}else{try{throw Error()}catch(je){ne=je}z()}}catch(je){if(je&&ne&&typeof je.stack=="string"){for(var fe=je.stack.split(`
19
+ `),xe=ne.stack.split(`
20
+ `),ve=fe.length-1,Te=xe.length-1;ve>=1&&Te>=0&&fe[ve]!==xe[Te];)Te--;for(;ve>=1&&Te>=0;ve--,Te--)if(fe[ve]!==xe[Te]){if(ve!==1||Te!==1)do if(ve--,Te--,Te<0||fe[ve]!==xe[Te]){var Ne=`
21
+ `+fe[ve].replace(" at new "," at ");return z.displayName&&Ne.includes("<anonymous>")&&(Ne=Ne.replace("<anonymous>",z.displayName)),typeof z=="function"&&be.set(z,Ne),Ne}while(ve>=1&&Te>=0);break}}}finally{ye=!1,se.current=he,te(),Error.prepareStackTrace=ae}var He=z?z.displayName||z.name:"",Ie=He?ge(He):"";return typeof z=="function"&&be.set(z,Ie),Ie}function qe(z,Y,Z){return J(z,!1)}function _e(z){var Y=z.prototype;return!!(Y&&Y.isReactComponent)}function ze(z,Y,Z){if(z==null)return"";if(typeof z=="function")return J(z,_e(z));if(typeof z=="string")return ge(z);switch(z){case l:return ge("Suspense");case f:return ge("SuspenseList")}if(typeof z=="object")switch(z.$$typeof){case u:return qe(z.render);case d:return ze(z.type,Y,Z);case p:{var ne=z,ae=ne._payload,he=ne._init;try{return ze(he(ae),Y,Z)}catch{}}}return""}var We=Object.prototype.hasOwnProperty,De={},ut=C.ReactDebugCurrentFrame;function Ye(z){if(z){var Y=z._owner,Z=ze(z.type,z._source,Y?Y.type:null);ut.setExtraStackFrame(Z)}else ut.setExtraStackFrame(null)}function it(z,Y,Z,ne,ae){{var he=Function.call.bind(We);for(var we in z)if(he(z,we)){var fe=void 0;try{if(typeof z[we]!="function"){var xe=Error((ne||"React class")+": "+Z+" type `"+we+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof z[we]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw xe.name="Invariant Violation",xe}fe=z[we](Y,we,ne,Z,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ve){fe=ve}fe&&!(fe instanceof Error)&&(Ye(ae),E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",ne||"React class",Z,we,typeof fe),Ye(null)),fe instanceof Error&&!(fe.message in De)&&(De[fe.message]=!0,Ye(ae),E("Failed %s type: %s",Z,fe.message),Ye(null))}}}var Je=Array.isArray;function Xe(z){return Je(z)}function xt(z){{var Y=typeof Symbol=="function"&&Symbol.toStringTag,Z=Y&&z[Symbol.toStringTag]||z.constructor.name||"Object";return Z}}function or(z){try{return Fr(z),!1}catch{return!0}}function Fr(z){return""+z}function Pa(z){if(or(z))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",xt(z)),Fr(z)}var oa=C.ReactCurrentOwner,Cr={key:!0,ref:!0,__self:!0,__source:!0},Sn,_t;function lr(z){if(We.call(z,"ref")){var Y=Object.getOwnPropertyDescriptor(z,"ref").get;if(Y&&Y.isReactWarning)return!1}return z.ref!==void 0}function dn(z){if(We.call(z,"key")){var Y=Object.getOwnPropertyDescriptor(z,"key").get;if(Y&&Y.isReactWarning)return!1}return z.key!==void 0}function wr(z,Y){typeof z.ref=="string"&&oa.current}function Da(z,Y){{var Z=function(){Sn||(Sn=!0,E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",Y))};Z.isReactWarning=!0,Object.defineProperty(z,"key",{get:Z,configurable:!0})}}function Wo(z,Y){{var Z=function(){_t||(_t=!0,E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",Y))};Z.isReactWarning=!0,Object.defineProperty(z,"ref",{get:Z,configurable:!0})}}var al=function(z,Y,Z,ne,ae,he,we){var fe={$$typeof:t,type:z,key:Y,ref:Z,props:we,_owner:he};return fe._store={},Object.defineProperty(fe._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(fe,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ne}),Object.defineProperty(fe,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ae}),Object.freeze&&(Object.freeze(fe.props),Object.freeze(fe)),fe};function il(z,Y,Z,ne,ae){{var he,we={},fe=null,xe=null;Z!==void 0&&(Pa(Z),fe=""+Z),dn(Y)&&(Pa(Y.key),fe=""+Y.key),lr(Y)&&(xe=Y.ref,wr(Y,ae));for(he in Y)We.call(Y,he)&&!Cr.hasOwnProperty(he)&&(we[he]=Y[he]);if(z&&z.defaultProps){var ve=z.defaultProps;for(he in ve)we[he]===void 0&&(we[he]=ve[he])}if(fe||xe){var Te=typeof z=="function"?z.displayName||z.name||"Unknown":z;fe&&Da(we,Te),xe&&Wo(we,Te)}return al(z,fe,xe,ae,ne,oa.current,we)}}var Vo=C.ReactCurrentOwner,sl=C.ReactDebugCurrentFrame;function Mi(z){if(z){var Y=z._owner,Z=ze(z.type,z._source,Y?Y.type:null);sl.setExtraStackFrame(Z)}else sl.setExtraStackFrame(null)}var qo;qo=!1;function Go(z){return typeof z=="object"&&z!==null&&z.$$typeof===t}function Zs(){{if(Vo.current){var z=N(Vo.current.type);if(z)return`
22
+
23
+ Check the render method of \``+z+"`."}return""}}function Ud(z){return""}var $c={};function zd(z){{var Y=Zs();if(!Y){var Z=typeof z=="string"?z:z.displayName||z.name;Z&&(Y=`
24
+
25
+ Check the top-level render call using <`+Z+">.")}return Y}}function ol(z,Y){{if(!z._store||z._store.validated||z.key!=null)return;z._store.validated=!0;var Z=zd(Y);if($c[Z])return;$c[Z]=!0;var ne="";z&&z._owner&&z._owner!==Vo.current&&(ne=" It was passed a child from "+N(z._owner.type)+"."),Mi(z),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Z,ne),Mi(null)}}function Uc(z,Y){{if(typeof z!="object")return;if(Xe(z))for(var Z=0;Z<z.length;Z++){var ne=z[Z];Go(ne)&&ol(ne,Y)}else if(Go(z))z._store&&(z._store.validated=!0);else if(z){var ae=w(z);if(typeof ae=="function"&&ae!==z.entries)for(var he=ae.call(z),we;!(we=he.next()).done;)Go(we.value)&&ol(we.value,Y)}}}function Hd(z){{var Y=z.type;if(Y==null||typeof Y=="string")return;var Z;if(typeof Y=="function")Z=Y.propTypes;else if(typeof Y=="object"&&(Y.$$typeof===u||Y.$$typeof===d))Z=Y.propTypes;else return;if(Z){var ne=N(Y);it(Z,z.props,"prop",ne,z)}else if(Y.PropTypes!==void 0&&!qo){qo=!0;var ae=N(Y);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ae||"Unknown")}typeof Y.getDefaultProps=="function"&&!Y.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Wd(z){{for(var Y=Object.keys(z.props),Z=0;Z<Y.length;Z++){var ne=Y[Z];if(ne!=="children"&&ne!=="key"){Mi(z),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ne),Mi(null);break}}z.ref!==null&&(Mi(z),E("Invalid attribute `ref` supplied to `React.Fragment`."),Mi(null))}}var Yo={};function Xo(z,Y,Z,ne,ae,he){{var we=F(z);if(!we){var fe="";(z===void 0||typeof z=="object"&&z!==null&&Object.keys(z).length===0)&&(fe+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var xe=Ud();xe?fe+=xe:fe+=Zs();var ve;z===null?ve="null":Xe(z)?ve="array":z!==void 0&&z.$$typeof===t?(ve="<"+(N(z.type)||"Unknown")+" />",fe=" Did you accidentally export a JSX literal instead of a component?"):ve=typeof z,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ve,fe)}var Te=il(z,Y,Z,ae,he);if(Te==null)return Te;if(we){var Ne=Y.children;if(Ne!==void 0)if(ne)if(Xe(Ne)){for(var He=0;He<Ne.length;He++)Uc(Ne[He],z);Object.freeze&&Object.freeze(Ne)}else E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Uc(Ne,z)}if(We.call(Y,"key")){var Ie=N(z),je=Object.keys(Y).filter(function(fr){return fr!=="key"}),pt=je.length>0?"{key: someKey, "+je.join(": ..., ")+": ...}":"{key: someKey}";if(!Yo[Ie+pt]){var cr=je.length>0?"{"+je.join(": ..., ")+": ...}":"{}";E(`A props object containing a "key" prop is being spread into JSX:
26
+ let props = %s;
27
+ <%s {...props} />
28
+ React keys must be passed directly to JSX without using spread:
29
+ let props = %s;
30
+ <%s key={someKey} {...props} />`,pt,Ie,cr,Ie),Yo[Ie+pt]=!0}}return z===n?Wd(Te):Hd(Te),Te}}function ul(z,Y,Z){return Xo(z,Y,Z,!0)}function Vd(z,Y,Z){return Xo(z,Y,Z,!1)}var qd=Vd,X=ul;af.Fragment=n,af.jsx=qd,af.jsxs=X}()),af}var Bw;function XD(){return Bw||(Bw=1,process.env.NODE_ENV==="production"?lh.exports=GD():lh.exports=YD()),lh.exports}var R=XD();const sf=U.createContext({});var of={},eg={exports:{}},jw;function ch(){return jw||(jw=1,function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(eg)),eg.exports}var uf={},$w;function KD(){if($w)return uf;$w=1,Object.defineProperty(uf,"__esModule",{value:!0}),uf.default=void 0;var e={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"};return uf.default=e,uf}var lf={},cf={},ff={},tg={exports:{}},rg={exports:{}},ng={exports:{}},ag={exports:{}},Uw;function zw(){return Uw||(Uw=1,function(e){function t(r){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(ag)),ag.exports}var ig={exports:{}},Hw;function ZD(){return Hw||(Hw=1,function(e){var t=zw().default;function r(n,a){if(t(n)!="object"||!n)return n;var i=n[Symbol.toPrimitive];if(i!==void 0){var s=i.call(n,a||"default");if(t(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(n)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(ig)),ig.exports}var Ww;function JD(){return Ww||(Ww=1,function(e){var t=zw().default,r=ZD();function n(a){var i=r(a,"string");return t(i)=="symbol"?i:i+""}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(ng)),ng.exports}var Vw;function QD(){return Vw||(Vw=1,function(e){var t=JD();function r(n,a,i){return(a=t(a))in n?Object.defineProperty(n,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[a]=i,n}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(rg)),rg.exports}var qw;function eR(){return qw||(qw=1,function(e){var t=QD();function r(a,i){var s=Object.keys(a);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(a);i&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(a,u).enumerable})),s.push.apply(s,o)}return s}function n(a){for(var i=1;i<arguments.length;i++){var s=arguments[i]!=null?arguments[i]:{};i%2?r(Object(s),!0).forEach(function(o){t(a,o,s[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(s)):r(Object(s)).forEach(function(o){Object.defineProperty(a,o,Object.getOwnPropertyDescriptor(s,o))})}return a}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(tg)),tg.exports}var df={},Gw;function tR(){return Gw||(Gw=1,Object.defineProperty(df,"__esModule",{value:!0}),df.commonLocale=void 0,df.commonLocale={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),df}var Yw;function rR(){if(Yw)return ff;Yw=1;var e=ch().default;Object.defineProperty(ff,"__esModule",{value:!0}),ff.default=void 0;var t=e(eR()),r=tR(),n=(0,t.default)((0,t.default)({},r.commonLocale),{},{locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",week:"周",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪",yearFormat:"YYYY年",cellDateFormat:"D",monthBeforeYear:!1});return ff.default=n,ff}var hf={},Xw;function Kw(){if(Xw)return hf;Xw=1,Object.defineProperty(hf,"__esModule",{value:!0}),hf.default=void 0;const e={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};return hf.default=e,hf}var Zw;function Jw(){if(Zw)return cf;Zw=1;var e=ch().default;Object.defineProperty(cf,"__esModule",{value:!0}),cf.default=void 0;var t=e(rR()),r=e(Kw());const n={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},t.default),timePickerLocale:Object.assign({},r.default)};return n.lang.ok="确定",cf.default=n,cf}var Qw;function nR(){if(Qw)return lf;Qw=1;var e=ch().default;Object.defineProperty(lf,"__esModule",{value:!0}),lf.default=void 0;var t=e(Jw());return lf.default=t.default,lf}var e3;function aR(){if(e3)return of;e3=1;var e=ch().default;Object.defineProperty(of,"__esModule",{value:!0}),of.default=void 0;var t=e(KD()),r=e(nR()),n=e(Jw()),a=e(Kw());const i="${label}不是一个有效的${type}",s={locale:"zh-cn",Pagination:t.default,DatePicker:n.default,TimePicker:a.default,Calendar:r.default,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckAll:"全选",filterSearchPlaceholder:"在筛选项中搜索",emptyText:"暂无数据",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",deselectAll:"取消全选",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:i,method:i,array:i,object:i,number:i,date:i,boolean:i,integer:i,float:i,regexp:i,email:i,url:i,hex:i},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码过期",refresh:"点击刷新",scanned:"已扫描"},ColorPicker:{presetEmpty:"暂无",transparent:"无色",singleColor:"单色",gradientColor:"渐变色"}};return of.default=s,of}var iR=aR();const sR=$n(iR),oR=({prefixCls:e="frontend",...t},r)=>{ue.ConfigProvider.config({prefixCls:e});const n=U.createElement(ue.ConfigProvider,{prefixCls:e,locale:sR,input:{autoComplete:"off"},autoInsertSpaceInButton:!1},t.children);return R.jsx(sf.Provider,{value:t.contextData,children:n})};var sg={exports:{}};/*!
31
+ Copyright (c) 2018 Jed Watson.
32
+ Licensed under the MIT License (MIT), see
33
+ http://jedwatson.github.io/classnames
34
+ */var t3;function uR(){return t3||(t3=1,function(e){(function(){var t={}.hasOwnProperty;function r(){for(var i="",s=0;s<arguments.length;s++){var o=arguments[s];o&&(i=a(i,n(o)))}return i}function n(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return r.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var s="";for(var o in i)t.call(i,o)&&i[o]&&(s=a(s,o));return s}function a(i,s){return s?i?i+" "+s:i+s:i}e.exports?(r.default=r,e.exports=r):window.classNames=r})()}(sg)),sg.exports}var lR=uR();const Qe=$n(lR),og={main:"_main_5bucb_1"};var pf={exports:{}};/**
35
+ * @license
36
+ * Lodash <https://lodash.com/>
37
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
38
+ * Released under MIT license <https://lodash.com/license>
39
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
40
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
41
+ */var cR=pf.exports,r3;function fR(){return r3||(r3=1,function(e,t){(function(){var r,n="4.17.21",a=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",o="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",l=500,f="__lodash_placeholder__",d=1,p=2,v=4,_=1,x=2,w=1,C=2,E=4,b=8,h=16,g=32,y=64,S=128,A=256,k=512,F=30,P="...",j=800,N=16,I=1,B=2,O=3,M=1/0,V=9007199254740991,L=17976931348623157e292,W=NaN,G=4294967295,H=G-1,Q=G>>>1,K=[["ary",S],["bind",w],["bindKey",C],["curry",b],["curryRight",h],["flip",k],["partial",g],["partialRight",y],["rearg",A]],te="[object Arguments]",se="[object Array]",le="[object AsyncFunction]",ge="[object Boolean]",ye="[object Date]",be="[object DOMException]",Be="[object Error]",J="[object Function]",qe="[object GeneratorFunction]",_e="[object Map]",ze="[object Number]",We="[object Null]",De="[object Object]",ut="[object Promise]",Ye="[object Proxy]",it="[object RegExp]",Je="[object Set]",Xe="[object String]",xt="[object Symbol]",or="[object Undefined]",Fr="[object WeakMap]",Pa="[object WeakSet]",oa="[object ArrayBuffer]",Cr="[object DataView]",Sn="[object Float32Array]",_t="[object Float64Array]",lr="[object Int8Array]",dn="[object Int16Array]",wr="[object Int32Array]",Da="[object Uint8Array]",Wo="[object Uint8ClampedArray]",al="[object Uint16Array]",il="[object Uint32Array]",Vo=/\b__p \+= '';/g,sl=/\b(__p \+=) '' \+/g,Mi=/(__e\(.*?\)|\b__t\)) \+\n'';/g,qo=/&(?:amp|lt|gt|quot|#39);/g,Go=/[&<>"']/g,Zs=RegExp(qo.source),Ud=RegExp(Go.source),$c=/<%-([\s\S]+?)%>/g,zd=/<%([\s\S]+?)%>/g,ol=/<%=([\s\S]+?)%>/g,Uc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Hd=/^\w*$/,Wd=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Yo=/[\\^$.*+?()[\]{}|]/g,Xo=RegExp(Yo.source),ul=/^\s+/,Vd=/\s/,qd=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,X=/\{\n\/\* \[wrapped with (.+)\] \*/,z=/,? & /,Y=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Z=/[()=,{}\[\]\/\s]/,ne=/\\(\\)?/g,ae=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,he=/\w*$/,we=/^[-+]0x[0-9a-f]+$/i,fe=/^0b[01]+$/i,xe=/^\[object .+?Constructor\]$/,ve=/^0o[0-7]+$/i,Te=/^(?:0|[1-9]\d*)$/,Ne=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,He=/($^)/,Ie=/['\n\r\u2028\u2029\\]/g,je="\\ud800-\\udfff",pt="\\u0300-\\u036f",cr="\\ufe20-\\ufe2f",fr="\\u20d0-\\u20ff",en=pt+cr+fr,Ko="\\u2700-\\u27bf",Zo="a-z\\xdf-\\xf6\\xf8-\\xff",ll="\\xac\\xb1\\xd7\\xf7",Js="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Gd="\\u2000-\\u206f",Li=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",SO="A-Z\\xc0-\\xd6\\xd8-\\xde",EO="\\ufe0e\\ufe0f",CO=ll+Js+Gd+Li,kb="['’]",Rfe="["+je+"]",kO="["+CO+"]",pm="["+en+"]",TO="\\d+",Ife="["+Ko+"]",AO="["+Zo+"]",FO="[^"+je+CO+TO+Ko+Zo+SO+"]",Tb="\\ud83c[\\udffb-\\udfff]",Nfe="(?:"+pm+"|"+Tb+")",OO="[^"+je+"]",Ab="(?:\\ud83c[\\udde6-\\uddff]){2}",Fb="[\\ud800-\\udbff][\\udc00-\\udfff]",zc="["+SO+"]",PO="\\u200d",DO="(?:"+AO+"|"+FO+")",Mfe="(?:"+zc+"|"+FO+")",RO="(?:"+kb+"(?:d|ll|m|re|s|t|ve))?",IO="(?:"+kb+"(?:D|LL|M|RE|S|T|VE))?",NO=Nfe+"?",MO="["+EO+"]?",Lfe="(?:"+PO+"(?:"+[OO,Ab,Fb].join("|")+")"+MO+NO+")*",Bfe="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",jfe="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",LO=MO+NO+Lfe,$fe="(?:"+[Ife,Ab,Fb].join("|")+")"+LO,Ufe="(?:"+[OO+pm+"?",pm,Ab,Fb,Rfe].join("|")+")",zfe=RegExp(kb,"g"),Hfe=RegExp(pm,"g"),Ob=RegExp(Tb+"(?="+Tb+")|"+Ufe+LO,"g"),Wfe=RegExp([zc+"?"+AO+"+"+RO+"(?="+[kO,zc,"$"].join("|")+")",Mfe+"+"+IO+"(?="+[kO,zc+DO,"$"].join("|")+")",zc+"?"+DO+"+"+RO,zc+"+"+IO,jfe,Bfe,TO,$fe].join("|"),"g"),Vfe=RegExp("["+PO+je+en+EO+"]"),qfe=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Gfe=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Yfe=-1,Sr={};Sr[Sn]=Sr[_t]=Sr[lr]=Sr[dn]=Sr[wr]=Sr[Da]=Sr[Wo]=Sr[al]=Sr[il]=!0,Sr[te]=Sr[se]=Sr[oa]=Sr[ge]=Sr[Cr]=Sr[ye]=Sr[Be]=Sr[J]=Sr[_e]=Sr[ze]=Sr[De]=Sr[it]=Sr[Je]=Sr[Xe]=Sr[Fr]=!1;var mr={};mr[te]=mr[se]=mr[oa]=mr[Cr]=mr[ge]=mr[ye]=mr[Sn]=mr[_t]=mr[lr]=mr[dn]=mr[wr]=mr[_e]=mr[ze]=mr[De]=mr[it]=mr[Je]=mr[Xe]=mr[xt]=mr[Da]=mr[Wo]=mr[al]=mr[il]=!0,mr[Be]=mr[J]=mr[Fr]=!1;var Xfe={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Kfe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Zfe={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Jfe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Qfe=parseFloat,e0e=parseInt,BO=typeof fi=="object"&&fi&&fi.Object===Object&&fi,t0e=typeof self=="object"&&self&&self.Object===Object&&self,En=BO||t0e||Function("return this")(),Pb=t&&!t.nodeType&&t,cl=Pb&&!0&&e&&!e.nodeType&&e,jO=cl&&cl.exports===Pb,Db=jO&&BO.process,ni=function(){try{var de=cl&&cl.require&&cl.require("util").types;return de||Db&&Db.binding&&Db.binding("util")}catch{}}(),$O=ni&&ni.isArrayBuffer,UO=ni&&ni.isDate,zO=ni&&ni.isMap,HO=ni&&ni.isRegExp,WO=ni&&ni.isSet,VO=ni&&ni.isTypedArray;function Ra(de,ke,Se){switch(Se.length){case 0:return de.call(ke);case 1:return de.call(ke,Se[0]);case 2:return de.call(ke,Se[0],Se[1]);case 3:return de.call(ke,Se[0],Se[1],Se[2])}return de.apply(ke,Se)}function r0e(de,ke,Se,Ke){for(var yt=-1,Yt=de==null?0:de.length;++yt<Yt;){var tn=de[yt];ke(Ke,tn,Se(tn),de)}return Ke}function ai(de,ke){for(var Se=-1,Ke=de==null?0:de.length;++Se<Ke&&ke(de[Se],Se,de)!==!1;);return de}function n0e(de,ke){for(var Se=de==null?0:de.length;Se--&&ke(de[Se],Se,de)!==!1;);return de}function qO(de,ke){for(var Se=-1,Ke=de==null?0:de.length;++Se<Ke;)if(!ke(de[Se],Se,de))return!1;return!0}function Jo(de,ke){for(var Se=-1,Ke=de==null?0:de.length,yt=0,Yt=[];++Se<Ke;){var tn=de[Se];ke(tn,Se,de)&&(Yt[yt++]=tn)}return Yt}function mm(de,ke){var Se=de==null?0:de.length;return!!Se&&Hc(de,ke,0)>-1}function Rb(de,ke,Se){for(var Ke=-1,yt=de==null?0:de.length;++Ke<yt;)if(Se(ke,de[Ke]))return!0;return!1}function kr(de,ke){for(var Se=-1,Ke=de==null?0:de.length,yt=Array(Ke);++Se<Ke;)yt[Se]=ke(de[Se],Se,de);return yt}function Qo(de,ke){for(var Se=-1,Ke=ke.length,yt=de.length;++Se<Ke;)de[yt+Se]=ke[Se];return de}function Ib(de,ke,Se,Ke){var yt=-1,Yt=de==null?0:de.length;for(Ke&&Yt&&(Se=de[++yt]);++yt<Yt;)Se=ke(Se,de[yt],yt,de);return Se}function a0e(de,ke,Se,Ke){var yt=de==null?0:de.length;for(Ke&&yt&&(Se=de[--yt]);yt--;)Se=ke(Se,de[yt],yt,de);return Se}function Nb(de,ke){for(var Se=-1,Ke=de==null?0:de.length;++Se<Ke;)if(ke(de[Se],Se,de))return!0;return!1}var i0e=Mb("length");function s0e(de){return de.split("")}function o0e(de){return de.match(Y)||[]}function GO(de,ke,Se){var Ke;return Se(de,function(yt,Yt,tn){if(ke(yt,Yt,tn))return Ke=Yt,!1}),Ke}function gm(de,ke,Se,Ke){for(var yt=de.length,Yt=Se+(Ke?1:-1);Ke?Yt--:++Yt<yt;)if(ke(de[Yt],Yt,de))return Yt;return-1}function Hc(de,ke,Se){return ke===ke?_0e(de,ke,Se):gm(de,YO,Se)}function u0e(de,ke,Se,Ke){for(var yt=Se-1,Yt=de.length;++yt<Yt;)if(Ke(de[yt],ke))return yt;return-1}function YO(de){return de!==de}function XO(de,ke){var Se=de==null?0:de.length;return Se?Bb(de,ke)/Se:W}function Mb(de){return function(ke){return ke==null?r:ke[de]}}function Lb(de){return function(ke){return de==null?r:de[ke]}}function KO(de,ke,Se,Ke,yt){return yt(de,function(Yt,tn,dr){Se=Ke?(Ke=!1,Yt):ke(Se,Yt,tn,dr)}),Se}function l0e(de,ke){var Se=de.length;for(de.sort(ke);Se--;)de[Se]=de[Se].value;return de}function Bb(de,ke){for(var Se,Ke=-1,yt=de.length;++Ke<yt;){var Yt=ke(de[Ke]);Yt!==r&&(Se=Se===r?Yt:Se+Yt)}return Se}function jb(de,ke){for(var Se=-1,Ke=Array(de);++Se<de;)Ke[Se]=ke(Se);return Ke}function c0e(de,ke){return kr(ke,function(Se){return[Se,de[Se]]})}function ZO(de){return de&&de.slice(0,tP(de)+1).replace(ul,"")}function Ia(de){return function(ke){return de(ke)}}function $b(de,ke){return kr(ke,function(Se){return de[Se]})}function Yd(de,ke){return de.has(ke)}function JO(de,ke){for(var Se=-1,Ke=de.length;++Se<Ke&&Hc(ke,de[Se],0)>-1;);return Se}function QO(de,ke){for(var Se=de.length;Se--&&Hc(ke,de[Se],0)>-1;);return Se}function f0e(de,ke){for(var Se=de.length,Ke=0;Se--;)de[Se]===ke&&++Ke;return Ke}var d0e=Lb(Xfe),h0e=Lb(Kfe);function p0e(de){return"\\"+Jfe[de]}function m0e(de,ke){return de==null?r:de[ke]}function Wc(de){return Vfe.test(de)}function g0e(de){return qfe.test(de)}function v0e(de){for(var ke,Se=[];!(ke=de.next()).done;)Se.push(ke.value);return Se}function Ub(de){var ke=-1,Se=Array(de.size);return de.forEach(function(Ke,yt){Se[++ke]=[yt,Ke]}),Se}function eP(de,ke){return function(Se){return de(ke(Se))}}function eu(de,ke){for(var Se=-1,Ke=de.length,yt=0,Yt=[];++Se<Ke;){var tn=de[Se];(tn===ke||tn===f)&&(de[Se]=f,Yt[yt++]=Se)}return Yt}function vm(de){var ke=-1,Se=Array(de.size);return de.forEach(function(Ke){Se[++ke]=Ke}),Se}function x0e(de){var ke=-1,Se=Array(de.size);return de.forEach(function(Ke){Se[++ke]=[Ke,Ke]}),Se}function _0e(de,ke,Se){for(var Ke=Se-1,yt=de.length;++Ke<yt;)if(de[Ke]===ke)return Ke;return-1}function y0e(de,ke,Se){for(var Ke=Se+1;Ke--;)if(de[Ke]===ke)return Ke;return Ke}function Vc(de){return Wc(de)?w0e(de):i0e(de)}function Bi(de){return Wc(de)?S0e(de):s0e(de)}function tP(de){for(var ke=de.length;ke--&&Vd.test(de.charAt(ke)););return ke}var b0e=Lb(Zfe);function w0e(de){for(var ke=Ob.lastIndex=0;Ob.test(de);)++ke;return ke}function S0e(de){return de.match(Ob)||[]}function E0e(de){return de.match(Wfe)||[]}var C0e=function de(ke){ke=ke==null?En:qc.defaults(En.Object(),ke,qc.pick(En,Gfe));var Se=ke.Array,Ke=ke.Date,yt=ke.Error,Yt=ke.Function,tn=ke.Math,dr=ke.Object,zb=ke.RegExp,k0e=ke.String,ii=ke.TypeError,xm=Se.prototype,T0e=Yt.prototype,Gc=dr.prototype,_m=ke["__core-js_shared__"],ym=T0e.toString,nr=Gc.hasOwnProperty,A0e=0,rP=function(){var c=/[^.]+$/.exec(_m&&_m.keys&&_m.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""}(),bm=Gc.toString,F0e=ym.call(dr),O0e=En._,P0e=zb("^"+ym.call(nr).replace(Yo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),wm=jO?ke.Buffer:r,tu=ke.Symbol,Sm=ke.Uint8Array,nP=wm?wm.allocUnsafe:r,Em=eP(dr.getPrototypeOf,dr),aP=dr.create,iP=Gc.propertyIsEnumerable,Cm=xm.splice,sP=tu?tu.isConcatSpreadable:r,Xd=tu?tu.iterator:r,fl=tu?tu.toStringTag:r,km=function(){try{var c=gl(dr,"defineProperty");return c({},"",{}),c}catch{}}(),D0e=ke.clearTimeout!==En.clearTimeout&&ke.clearTimeout,R0e=Ke&&Ke.now!==En.Date.now&&Ke.now,I0e=ke.setTimeout!==En.setTimeout&&ke.setTimeout,Tm=tn.ceil,Am=tn.floor,Hb=dr.getOwnPropertySymbols,N0e=wm?wm.isBuffer:r,oP=ke.isFinite,M0e=xm.join,L0e=eP(dr.keys,dr),rn=tn.max,Bn=tn.min,B0e=Ke.now,j0e=ke.parseInt,uP=tn.random,$0e=xm.reverse,Wb=gl(ke,"DataView"),Kd=gl(ke,"Map"),Vb=gl(ke,"Promise"),Yc=gl(ke,"Set"),Zd=gl(ke,"WeakMap"),Jd=gl(dr,"create"),Fm=Zd&&new Zd,Xc={},U0e=vl(Wb),z0e=vl(Kd),H0e=vl(Vb),W0e=vl(Yc),V0e=vl(Zd),Om=tu?tu.prototype:r,Qd=Om?Om.valueOf:r,lP=Om?Om.toString:r;function ee(c){if(Mr(c)&&!wt(c)&&!(c instanceof Lt)){if(c instanceof si)return c;if(nr.call(c,"__wrapped__"))return cD(c)}return new si(c)}var Kc=function(){function c(){}return function(m){if(!Or(m))return{};if(aP)return aP(m);c.prototype=m;var T=new c;return c.prototype=r,T}}();function Pm(){}function si(c,m){this.__wrapped__=c,this.__actions__=[],this.__chain__=!!m,this.__index__=0,this.__values__=r}ee.templateSettings={escape:$c,evaluate:zd,interpolate:ol,variable:"",imports:{_:ee}},ee.prototype=Pm.prototype,ee.prototype.constructor=ee,si.prototype=Kc(Pm.prototype),si.prototype.constructor=si;function Lt(c){this.__wrapped__=c,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=G,this.__views__=[]}function q0e(){var c=new Lt(this.__wrapped__);return c.__actions__=ua(this.__actions__),c.__dir__=this.__dir__,c.__filtered__=this.__filtered__,c.__iteratees__=ua(this.__iteratees__),c.__takeCount__=this.__takeCount__,c.__views__=ua(this.__views__),c}function G0e(){if(this.__filtered__){var c=new Lt(this);c.__dir__=-1,c.__filtered__=!0}else c=this.clone(),c.__dir__*=-1;return c}function Y0e(){var c=this.__wrapped__.value(),m=this.__dir__,T=wt(c),D=m<0,q=T?c.length:0,re=she(0,q,this.__views__),oe=re.start,ce=re.end,me=ce-oe,Ae=D?ce:oe-1,Fe=this.__iteratees__,Re=Fe.length,Ve=0,tt=Bn(me,this.__takeCount__);if(!T||!D&&q==me&&tt==me)return RP(c,this.__actions__);var ct=[];e:for(;me--&&Ve<tt;){Ae+=m;for(var Tt=-1,ft=c[Ae];++Tt<Re;){var Rt=Fe[Tt],jt=Rt.iteratee,La=Rt.type,Kn=jt(ft);if(La==B)ft=Kn;else if(!Kn){if(La==I)continue e;break e}}ct[Ve++]=ft}return ct}Lt.prototype=Kc(Pm.prototype),Lt.prototype.constructor=Lt;function dl(c){var m=-1,T=c==null?0:c.length;for(this.clear();++m<T;){var D=c[m];this.set(D[0],D[1])}}function X0e(){this.__data__=Jd?Jd(null):{},this.size=0}function K0e(c){var m=this.has(c)&&delete this.__data__[c];return this.size-=m?1:0,m}function Z0e(c){var m=this.__data__;if(Jd){var T=m[c];return T===u?r:T}return nr.call(m,c)?m[c]:r}function J0e(c){var m=this.__data__;return Jd?m[c]!==r:nr.call(m,c)}function Q0e(c,m){var T=this.__data__;return this.size+=this.has(c)?0:1,T[c]=Jd&&m===r?u:m,this}dl.prototype.clear=X0e,dl.prototype.delete=K0e,dl.prototype.get=Z0e,dl.prototype.has=J0e,dl.prototype.set=Q0e;function Qs(c){var m=-1,T=c==null?0:c.length;for(this.clear();++m<T;){var D=c[m];this.set(D[0],D[1])}}function ede(){this.__data__=[],this.size=0}function tde(c){var m=this.__data__,T=Dm(m,c);if(T<0)return!1;var D=m.length-1;return T==D?m.pop():Cm.call(m,T,1),--this.size,!0}function rde(c){var m=this.__data__,T=Dm(m,c);return T<0?r:m[T][1]}function nde(c){return Dm(this.__data__,c)>-1}function ade(c,m){var T=this.__data__,D=Dm(T,c);return D<0?(++this.size,T.push([c,m])):T[D][1]=m,this}Qs.prototype.clear=ede,Qs.prototype.delete=tde,Qs.prototype.get=rde,Qs.prototype.has=nde,Qs.prototype.set=ade;function eo(c){var m=-1,T=c==null?0:c.length;for(this.clear();++m<T;){var D=c[m];this.set(D[0],D[1])}}function ide(){this.size=0,this.__data__={hash:new dl,map:new(Kd||Qs),string:new dl}}function sde(c){var m=Wm(this,c).delete(c);return this.size-=m?1:0,m}function ode(c){return Wm(this,c).get(c)}function ude(c){return Wm(this,c).has(c)}function lde(c,m){var T=Wm(this,c),D=T.size;return T.set(c,m),this.size+=T.size==D?0:1,this}eo.prototype.clear=ide,eo.prototype.delete=sde,eo.prototype.get=ode,eo.prototype.has=ude,eo.prototype.set=lde;function hl(c){var m=-1,T=c==null?0:c.length;for(this.__data__=new eo;++m<T;)this.add(c[m])}function cde(c){return this.__data__.set(c,u),this}function fde(c){return this.__data__.has(c)}hl.prototype.add=hl.prototype.push=cde,hl.prototype.has=fde;function ji(c){var m=this.__data__=new Qs(c);this.size=m.size}function dde(){this.__data__=new Qs,this.size=0}function hde(c){var m=this.__data__,T=m.delete(c);return this.size=m.size,T}function pde(c){return this.__data__.get(c)}function mde(c){return this.__data__.has(c)}function gde(c,m){var T=this.__data__;if(T instanceof Qs){var D=T.__data__;if(!Kd||D.length<a-1)return D.push([c,m]),this.size=++T.size,this;T=this.__data__=new eo(D)}return T.set(c,m),this.size=T.size,this}ji.prototype.clear=dde,ji.prototype.delete=hde,ji.prototype.get=pde,ji.prototype.has=mde,ji.prototype.set=gde;function cP(c,m){var T=wt(c),D=!T&&xl(c),q=!T&&!D&&su(c),re=!T&&!D&&!q&&ef(c),oe=T||D||q||re,ce=oe?jb(c.length,k0e):[],me=ce.length;for(var Ae in c)(m||nr.call(c,Ae))&&!(oe&&(Ae=="length"||q&&(Ae=="offset"||Ae=="parent")||re&&(Ae=="buffer"||Ae=="byteLength"||Ae=="byteOffset")||ao(Ae,me)))&&ce.push(Ae);return ce}function fP(c){var m=c.length;return m?c[rw(0,m-1)]:r}function vde(c,m){return Vm(ua(c),pl(m,0,c.length))}function xde(c){return Vm(ua(c))}function qb(c,m,T){(T!==r&&!$i(c[m],T)||T===r&&!(m in c))&&to(c,m,T)}function eh(c,m,T){var D=c[m];(!(nr.call(c,m)&&$i(D,T))||T===r&&!(m in c))&&to(c,m,T)}function Dm(c,m){for(var T=c.length;T--;)if($i(c[T][0],m))return T;return-1}function _de(c,m,T,D){return ru(c,function(q,re,oe){m(D,q,T(q),oe)}),D}function dP(c,m){return c&&gs(m,hn(m),c)}function yde(c,m){return c&&gs(m,ca(m),c)}function to(c,m,T){m=="__proto__"&&km?km(c,m,{configurable:!0,enumerable:!0,value:T,writable:!0}):c[m]=T}function Gb(c,m){for(var T=-1,D=m.length,q=Se(D),re=c==null;++T<D;)q[T]=re?r:Tw(c,m[T]);return q}function pl(c,m,T){return c===c&&(T!==r&&(c=c<=T?c:T),m!==r&&(c=c>=m?c:m)),c}function oi(c,m,T,D,q,re){var oe,ce=m&d,me=m&p,Ae=m&v;if(T&&(oe=q?T(c,D,q,re):T(c)),oe!==r)return oe;if(!Or(c))return c;var Fe=wt(c);if(Fe){if(oe=uhe(c),!ce)return ua(c,oe)}else{var Re=jn(c),Ve=Re==J||Re==qe;if(su(c))return MP(c,ce);if(Re==De||Re==te||Ve&&!q){if(oe=me||Ve?{}:tD(c),!ce)return me?Zde(c,yde(oe,c)):Kde(c,dP(oe,c))}else{if(!mr[Re])return q?c:{};oe=lhe(c,Re,ce)}}re||(re=new ji);var tt=re.get(c);if(tt)return tt;re.set(c,oe),OD(c)?c.forEach(function(ft){oe.add(oi(ft,m,T,ft,c,re))}):AD(c)&&c.forEach(function(ft,Rt){oe.set(Rt,oi(ft,m,T,Rt,c,re))});var ct=Ae?me?hw:dw:me?ca:hn,Tt=Fe?r:ct(c);return ai(Tt||c,function(ft,Rt){Tt&&(Rt=ft,ft=c[Rt]),eh(oe,Rt,oi(ft,m,T,Rt,c,re))}),oe}function bde(c){var m=hn(c);return function(T){return hP(T,c,m)}}function hP(c,m,T){var D=T.length;if(c==null)return!D;for(c=dr(c);D--;){var q=T[D],re=m[q],oe=c[q];if(oe===r&&!(q in c)||!re(oe))return!1}return!0}function pP(c,m,T){if(typeof c!="function")throw new ii(s);return oh(function(){c.apply(r,T)},m)}function th(c,m,T,D){var q=-1,re=mm,oe=!0,ce=c.length,me=[],Ae=m.length;if(!ce)return me;T&&(m=kr(m,Ia(T))),D?(re=Rb,oe=!1):m.length>=a&&(re=Yd,oe=!1,m=new hl(m));e:for(;++q<ce;){var Fe=c[q],Re=T==null?Fe:T(Fe);if(Fe=D||Fe!==0?Fe:0,oe&&Re===Re){for(var Ve=Ae;Ve--;)if(m[Ve]===Re)continue e;me.push(Fe)}else re(m,Re,D)||me.push(Fe)}return me}var ru=UP(ms),mP=UP(Xb,!0);function wde(c,m){var T=!0;return ru(c,function(D,q,re){return T=!!m(D,q,re),T}),T}function Rm(c,m,T){for(var D=-1,q=c.length;++D<q;){var re=c[D],oe=m(re);if(oe!=null&&(ce===r?oe===oe&&!Ma(oe):T(oe,ce)))var ce=oe,me=re}return me}function Sde(c,m,T,D){var q=c.length;for(T=kt(T),T<0&&(T=-T>q?0:q+T),D=D===r||D>q?q:kt(D),D<0&&(D+=q),D=T>D?0:DD(D);T<D;)c[T++]=m;return c}function gP(c,m){var T=[];return ru(c,function(D,q,re){m(D,q,re)&&T.push(D)}),T}function Cn(c,m,T,D,q){var re=-1,oe=c.length;for(T||(T=fhe),q||(q=[]);++re<oe;){var ce=c[re];m>0&&T(ce)?m>1?Cn(ce,m-1,T,D,q):Qo(q,ce):D||(q[q.length]=ce)}return q}var Yb=zP(),vP=zP(!0);function ms(c,m){return c&&Yb(c,m,hn)}function Xb(c,m){return c&&vP(c,m,hn)}function Im(c,m){return Jo(m,function(T){return io(c[T])})}function ml(c,m){m=au(m,c);for(var T=0,D=m.length;c!=null&&T<D;)c=c[vs(m[T++])];return T&&T==D?c:r}function xP(c,m,T){var D=m(c);return wt(c)?D:Qo(D,T(c))}function Yn(c){return c==null?c===r?or:We:fl&&fl in dr(c)?ihe(c):xhe(c)}function Kb(c,m){return c>m}function Ede(c,m){return c!=null&&nr.call(c,m)}function Cde(c,m){return c!=null&&m in dr(c)}function kde(c,m,T){return c>=Bn(m,T)&&c<rn(m,T)}function Zb(c,m,T){for(var D=T?Rb:mm,q=c[0].length,re=c.length,oe=re,ce=Se(re),me=1/0,Ae=[];oe--;){var Fe=c[oe];oe&&m&&(Fe=kr(Fe,Ia(m))),me=Bn(Fe.length,me),ce[oe]=!T&&(m||q>=120&&Fe.length>=120)?new hl(oe&&Fe):r}Fe=c[0];var Re=-1,Ve=ce[0];e:for(;++Re<q&&Ae.length<me;){var tt=Fe[Re],ct=m?m(tt):tt;if(tt=T||tt!==0?tt:0,!(Ve?Yd(Ve,ct):D(Ae,ct,T))){for(oe=re;--oe;){var Tt=ce[oe];if(!(Tt?Yd(Tt,ct):D(c[oe],ct,T)))continue e}Ve&&Ve.push(ct),Ae.push(tt)}}return Ae}function Tde(c,m,T,D){return ms(c,function(q,re,oe){m(D,T(q),re,oe)}),D}function rh(c,m,T){m=au(m,c),c=iD(c,m);var D=c==null?c:c[vs(li(m))];return D==null?r:Ra(D,c,T)}function _P(c){return Mr(c)&&Yn(c)==te}function Ade(c){return Mr(c)&&Yn(c)==oa}function Fde(c){return Mr(c)&&Yn(c)==ye}function nh(c,m,T,D,q){return c===m?!0:c==null||m==null||!Mr(c)&&!Mr(m)?c!==c&&m!==m:Ode(c,m,T,D,nh,q)}function Ode(c,m,T,D,q,re){var oe=wt(c),ce=wt(m),me=oe?se:jn(c),Ae=ce?se:jn(m);me=me==te?De:me,Ae=Ae==te?De:Ae;var Fe=me==De,Re=Ae==De,Ve=me==Ae;if(Ve&&su(c)){if(!su(m))return!1;oe=!0,Fe=!1}if(Ve&&!Fe)return re||(re=new ji),oe||ef(c)?JP(c,m,T,D,q,re):nhe(c,m,me,T,D,q,re);if(!(T&_)){var tt=Fe&&nr.call(c,"__wrapped__"),ct=Re&&nr.call(m,"__wrapped__");if(tt||ct){var Tt=tt?c.value():c,ft=ct?m.value():m;return re||(re=new ji),q(Tt,ft,T,D,re)}}return Ve?(re||(re=new ji),ahe(c,m,T,D,q,re)):!1}function Pde(c){return Mr(c)&&jn(c)==_e}function Jb(c,m,T,D){var q=T.length,re=q,oe=!D;if(c==null)return!re;for(c=dr(c);q--;){var ce=T[q];if(oe&&ce[2]?ce[1]!==c[ce[0]]:!(ce[0]in c))return!1}for(;++q<re;){ce=T[q];var me=ce[0],Ae=c[me],Fe=ce[1];if(oe&&ce[2]){if(Ae===r&&!(me in c))return!1}else{var Re=new ji;if(D)var Ve=D(Ae,Fe,me,c,m,Re);if(!(Ve===r?nh(Fe,Ae,_|x,D,Re):Ve))return!1}}return!0}function yP(c){if(!Or(c)||hhe(c))return!1;var m=io(c)?P0e:xe;return m.test(vl(c))}function Dde(c){return Mr(c)&&Yn(c)==it}function Rde(c){return Mr(c)&&jn(c)==Je}function Ide(c){return Mr(c)&&Zm(c.length)&&!!Sr[Yn(c)]}function bP(c){return typeof c=="function"?c:c==null?fa:typeof c=="object"?wt(c)?EP(c[0],c[1]):SP(c):HD(c)}function Qb(c){if(!sh(c))return L0e(c);var m=[];for(var T in dr(c))nr.call(c,T)&&T!="constructor"&&m.push(T);return m}function Nde(c){if(!Or(c))return vhe(c);var m=sh(c),T=[];for(var D in c)D=="constructor"&&(m||!nr.call(c,D))||T.push(D);return T}function ew(c,m){return c<m}function wP(c,m){var T=-1,D=la(c)?Se(c.length):[];return ru(c,function(q,re,oe){D[++T]=m(q,re,oe)}),D}function SP(c){var m=mw(c);return m.length==1&&m[0][2]?nD(m[0][0],m[0][1]):function(T){return T===c||Jb(T,c,m)}}function EP(c,m){return vw(c)&&rD(m)?nD(vs(c),m):function(T){var D=Tw(T,c);return D===r&&D===m?Aw(T,c):nh(m,D,_|x)}}function Nm(c,m,T,D,q){c!==m&&Yb(m,function(re,oe){if(q||(q=new ji),Or(re))Mde(c,m,oe,T,Nm,D,q);else{var ce=D?D(_w(c,oe),re,oe+"",c,m,q):r;ce===r&&(ce=re),qb(c,oe,ce)}},ca)}function Mde(c,m,T,D,q,re,oe){var ce=_w(c,T),me=_w(m,T),Ae=oe.get(me);if(Ae){qb(c,T,Ae);return}var Fe=re?re(ce,me,T+"",c,m,oe):r,Re=Fe===r;if(Re){var Ve=wt(me),tt=!Ve&&su(me),ct=!Ve&&!tt&&ef(me);Fe=me,Ve||tt||ct?wt(ce)?Fe=ce:Hr(ce)?Fe=ua(ce):tt?(Re=!1,Fe=MP(me,!0)):ct?(Re=!1,Fe=LP(me,!0)):Fe=[]:uh(me)||xl(me)?(Fe=ce,xl(ce)?Fe=RD(ce):(!Or(ce)||io(ce))&&(Fe=tD(me))):Re=!1}Re&&(oe.set(me,Fe),q(Fe,me,D,re,oe),oe.delete(me)),qb(c,T,Fe)}function CP(c,m){var T=c.length;if(T)return m+=m<0?T:0,ao(m,T)?c[m]:r}function kP(c,m,T){m.length?m=kr(m,function(re){return wt(re)?function(oe){return ml(oe,re.length===1?re[0]:re)}:re}):m=[fa];var D=-1;m=kr(m,Ia(lt()));var q=wP(c,function(re,oe,ce){var me=kr(m,function(Ae){return Ae(re)});return{criteria:me,index:++D,value:re}});return l0e(q,function(re,oe){return Xde(re,oe,T)})}function Lde(c,m){return TP(c,m,function(T,D){return Aw(c,D)})}function TP(c,m,T){for(var D=-1,q=m.length,re={};++D<q;){var oe=m[D],ce=ml(c,oe);T(ce,oe)&&ah(re,au(oe,c),ce)}return re}function Bde(c){return function(m){return ml(m,c)}}function tw(c,m,T,D){var q=D?u0e:Hc,re=-1,oe=m.length,ce=c;for(c===m&&(m=ua(m)),T&&(ce=kr(c,Ia(T)));++re<oe;)for(var me=0,Ae=m[re],Fe=T?T(Ae):Ae;(me=q(ce,Fe,me,D))>-1;)ce!==c&&Cm.call(ce,me,1),Cm.call(c,me,1);return c}function AP(c,m){for(var T=c?m.length:0,D=T-1;T--;){var q=m[T];if(T==D||q!==re){var re=q;ao(q)?Cm.call(c,q,1):iw(c,q)}}return c}function rw(c,m){return c+Am(uP()*(m-c+1))}function jde(c,m,T,D){for(var q=-1,re=rn(Tm((m-c)/(T||1)),0),oe=Se(re);re--;)oe[D?re:++q]=c,c+=T;return oe}function nw(c,m){var T="";if(!c||m<1||m>V)return T;do m%2&&(T+=c),m=Am(m/2),m&&(c+=c);while(m);return T}function Ft(c,m){return yw(aD(c,m,fa),c+"")}function $de(c){return fP(tf(c))}function Ude(c,m){var T=tf(c);return Vm(T,pl(m,0,T.length))}function ah(c,m,T,D){if(!Or(c))return c;m=au(m,c);for(var q=-1,re=m.length,oe=re-1,ce=c;ce!=null&&++q<re;){var me=vs(m[q]),Ae=T;if(me==="__proto__"||me==="constructor"||me==="prototype")return c;if(q!=oe){var Fe=ce[me];Ae=D?D(Fe,me,ce):r,Ae===r&&(Ae=Or(Fe)?Fe:ao(m[q+1])?[]:{})}eh(ce,me,Ae),ce=ce[me]}return c}var FP=Fm?function(c,m){return Fm.set(c,m),c}:fa,zde=km?function(c,m){return km(c,"toString",{configurable:!0,enumerable:!1,value:Ow(m),writable:!0})}:fa;function Hde(c){return Vm(tf(c))}function ui(c,m,T){var D=-1,q=c.length;m<0&&(m=-m>q?0:q+m),T=T>q?q:T,T<0&&(T+=q),q=m>T?0:T-m>>>0,m>>>=0;for(var re=Se(q);++D<q;)re[D]=c[D+m];return re}function Wde(c,m){var T;return ru(c,function(D,q,re){return T=m(D,q,re),!T}),!!T}function Mm(c,m,T){var D=0,q=c==null?D:c.length;if(typeof m=="number"&&m===m&&q<=Q){for(;D<q;){var re=D+q>>>1,oe=c[re];oe!==null&&!Ma(oe)&&(T?oe<=m:oe<m)?D=re+1:q=re}return q}return aw(c,m,fa,T)}function aw(c,m,T,D){var q=0,re=c==null?0:c.length;if(re===0)return 0;m=T(m);for(var oe=m!==m,ce=m===null,me=Ma(m),Ae=m===r;q<re;){var Fe=Am((q+re)/2),Re=T(c[Fe]),Ve=Re!==r,tt=Re===null,ct=Re===Re,Tt=Ma(Re);if(oe)var ft=D||ct;else Ae?ft=ct&&(D||Ve):ce?ft=ct&&Ve&&(D||!tt):me?ft=ct&&Ve&&!tt&&(D||!Tt):tt||Tt?ft=!1:ft=D?Re<=m:Re<m;ft?q=Fe+1:re=Fe}return Bn(re,H)}function OP(c,m){for(var T=-1,D=c.length,q=0,re=[];++T<D;){var oe=c[T],ce=m?m(oe):oe;if(!T||!$i(ce,me)){var me=ce;re[q++]=oe===0?0:oe}}return re}function PP(c){return typeof c=="number"?c:Ma(c)?W:+c}function Na(c){if(typeof c=="string")return c;if(wt(c))return kr(c,Na)+"";if(Ma(c))return lP?lP.call(c):"";var m=c+"";return m=="0"&&1/c==-1/0?"-0":m}function nu(c,m,T){var D=-1,q=mm,re=c.length,oe=!0,ce=[],me=ce;if(T)oe=!1,q=Rb;else if(re>=a){var Ae=m?null:the(c);if(Ae)return vm(Ae);oe=!1,q=Yd,me=new hl}else me=m?[]:ce;e:for(;++D<re;){var Fe=c[D],Re=m?m(Fe):Fe;if(Fe=T||Fe!==0?Fe:0,oe&&Re===Re){for(var Ve=me.length;Ve--;)if(me[Ve]===Re)continue e;m&&me.push(Re),ce.push(Fe)}else q(me,Re,T)||(me!==ce&&me.push(Re),ce.push(Fe))}return ce}function iw(c,m){return m=au(m,c),c=iD(c,m),c==null||delete c[vs(li(m))]}function DP(c,m,T,D){return ah(c,m,T(ml(c,m)),D)}function Lm(c,m,T,D){for(var q=c.length,re=D?q:-1;(D?re--:++re<q)&&m(c[re],re,c););return T?ui(c,D?0:re,D?re+1:q):ui(c,D?re+1:0,D?q:re)}function RP(c,m){var T=c;return T instanceof Lt&&(T=T.value()),Ib(m,function(D,q){return q.func.apply(q.thisArg,Qo([D],q.args))},T)}function sw(c,m,T){var D=c.length;if(D<2)return D?nu(c[0]):[];for(var q=-1,re=Se(D);++q<D;)for(var oe=c[q],ce=-1;++ce<D;)ce!=q&&(re[q]=th(re[q]||oe,c[ce],m,T));return nu(Cn(re,1),m,T)}function IP(c,m,T){for(var D=-1,q=c.length,re=m.length,oe={};++D<q;){var ce=D<re?m[D]:r;T(oe,c[D],ce)}return oe}function ow(c){return Hr(c)?c:[]}function uw(c){return typeof c=="function"?c:fa}function au(c,m){return wt(c)?c:vw(c,m)?[c]:lD(Qt(c))}var Vde=Ft;function iu(c,m,T){var D=c.length;return T=T===r?D:T,!m&&T>=D?c:ui(c,m,T)}var NP=D0e||function(c){return En.clearTimeout(c)};function MP(c,m){if(m)return c.slice();var T=c.length,D=nP?nP(T):new c.constructor(T);return c.copy(D),D}function lw(c){var m=new c.constructor(c.byteLength);return new Sm(m).set(new Sm(c)),m}function qde(c,m){var T=m?lw(c.buffer):c.buffer;return new c.constructor(T,c.byteOffset,c.byteLength)}function Gde(c){var m=new c.constructor(c.source,he.exec(c));return m.lastIndex=c.lastIndex,m}function Yde(c){return Qd?dr(Qd.call(c)):{}}function LP(c,m){var T=m?lw(c.buffer):c.buffer;return new c.constructor(T,c.byteOffset,c.length)}function BP(c,m){if(c!==m){var T=c!==r,D=c===null,q=c===c,re=Ma(c),oe=m!==r,ce=m===null,me=m===m,Ae=Ma(m);if(!ce&&!Ae&&!re&&c>m||re&&oe&&me&&!ce&&!Ae||D&&oe&&me||!T&&me||!q)return 1;if(!D&&!re&&!Ae&&c<m||Ae&&T&&q&&!D&&!re||ce&&T&&q||!oe&&q||!me)return-1}return 0}function Xde(c,m,T){for(var D=-1,q=c.criteria,re=m.criteria,oe=q.length,ce=T.length;++D<oe;){var me=BP(q[D],re[D]);if(me){if(D>=ce)return me;var Ae=T[D];return me*(Ae=="desc"?-1:1)}}return c.index-m.index}function jP(c,m,T,D){for(var q=-1,re=c.length,oe=T.length,ce=-1,me=m.length,Ae=rn(re-oe,0),Fe=Se(me+Ae),Re=!D;++ce<me;)Fe[ce]=m[ce];for(;++q<oe;)(Re||q<re)&&(Fe[T[q]]=c[q]);for(;Ae--;)Fe[ce++]=c[q++];return Fe}function $P(c,m,T,D){for(var q=-1,re=c.length,oe=-1,ce=T.length,me=-1,Ae=m.length,Fe=rn(re-ce,0),Re=Se(Fe+Ae),Ve=!D;++q<Fe;)Re[q]=c[q];for(var tt=q;++me<Ae;)Re[tt+me]=m[me];for(;++oe<ce;)(Ve||q<re)&&(Re[tt+T[oe]]=c[q++]);return Re}function ua(c,m){var T=-1,D=c.length;for(m||(m=Se(D));++T<D;)m[T]=c[T];return m}function gs(c,m,T,D){var q=!T;T||(T={});for(var re=-1,oe=m.length;++re<oe;){var ce=m[re],me=D?D(T[ce],c[ce],ce,T,c):r;me===r&&(me=c[ce]),q?to(T,ce,me):eh(T,ce,me)}return T}function Kde(c,m){return gs(c,gw(c),m)}function Zde(c,m){return gs(c,QP(c),m)}function Bm(c,m){return function(T,D){var q=wt(T)?r0e:_de,re=m?m():{};return q(T,c,lt(D,2),re)}}function Zc(c){return Ft(function(m,T){var D=-1,q=T.length,re=q>1?T[q-1]:r,oe=q>2?T[2]:r;for(re=c.length>3&&typeof re=="function"?(q--,re):r,oe&&Xn(T[0],T[1],oe)&&(re=q<3?r:re,q=1),m=dr(m);++D<q;){var ce=T[D];ce&&c(m,ce,D,re)}return m})}function UP(c,m){return function(T,D){if(T==null)return T;if(!la(T))return c(T,D);for(var q=T.length,re=m?q:-1,oe=dr(T);(m?re--:++re<q)&&D(oe[re],re,oe)!==!1;);return T}}function zP(c){return function(m,T,D){for(var q=-1,re=dr(m),oe=D(m),ce=oe.length;ce--;){var me=oe[c?ce:++q];if(T(re[me],me,re)===!1)break}return m}}function Jde(c,m,T){var D=m&w,q=ih(c);function re(){var oe=this&&this!==En&&this instanceof re?q:c;return oe.apply(D?T:this,arguments)}return re}function HP(c){return function(m){m=Qt(m);var T=Wc(m)?Bi(m):r,D=T?T[0]:m.charAt(0),q=T?iu(T,1).join(""):m.slice(1);return D[c]()+q}}function Jc(c){return function(m){return Ib(UD($D(m).replace(zfe,"")),c,"")}}function ih(c){return function(){var m=arguments;switch(m.length){case 0:return new c;case 1:return new c(m[0]);case 2:return new c(m[0],m[1]);case 3:return new c(m[0],m[1],m[2]);case 4:return new c(m[0],m[1],m[2],m[3]);case 5:return new c(m[0],m[1],m[2],m[3],m[4]);case 6:return new c(m[0],m[1],m[2],m[3],m[4],m[5]);case 7:return new c(m[0],m[1],m[2],m[3],m[4],m[5],m[6])}var T=Kc(c.prototype),D=c.apply(T,m);return Or(D)?D:T}}function Qde(c,m,T){var D=ih(c);function q(){for(var re=arguments.length,oe=Se(re),ce=re,me=Qc(q);ce--;)oe[ce]=arguments[ce];var Ae=re<3&&oe[0]!==me&&oe[re-1]!==me?[]:eu(oe,me);if(re-=Ae.length,re<T)return YP(c,m,jm,q.placeholder,r,oe,Ae,r,r,T-re);var Fe=this&&this!==En&&this instanceof q?D:c;return Ra(Fe,this,oe)}return q}function WP(c){return function(m,T,D){var q=dr(m);if(!la(m)){var re=lt(T,3);m=hn(m),T=function(ce){return re(q[ce],ce,q)}}var oe=c(m,T,D);return oe>-1?q[re?m[oe]:oe]:r}}function VP(c){return no(function(m){var T=m.length,D=T,q=si.prototype.thru;for(c&&m.reverse();D--;){var re=m[D];if(typeof re!="function")throw new ii(s);if(q&&!oe&&Hm(re)=="wrapper")var oe=new si([],!0)}for(D=oe?D:T;++D<T;){re=m[D];var ce=Hm(re),me=ce=="wrapper"?pw(re):r;me&&xw(me[0])&&me[1]==(S|b|g|A)&&!me[4].length&&me[9]==1?oe=oe[Hm(me[0])].apply(oe,me[3]):oe=re.length==1&&xw(re)?oe[ce]():oe.thru(re)}return function(){var Ae=arguments,Fe=Ae[0];if(oe&&Ae.length==1&&wt(Fe))return oe.plant(Fe).value();for(var Re=0,Ve=T?m[Re].apply(this,Ae):Fe;++Re<T;)Ve=m[Re].call(this,Ve);return Ve}})}function jm(c,m,T,D,q,re,oe,ce,me,Ae){var Fe=m&S,Re=m&w,Ve=m&C,tt=m&(b|h),ct=m&k,Tt=Ve?r:ih(c);function ft(){for(var Rt=arguments.length,jt=Se(Rt),La=Rt;La--;)jt[La]=arguments[La];if(tt)var Kn=Qc(ft),Ba=f0e(jt,Kn);if(D&&(jt=jP(jt,D,q,tt)),re&&(jt=$P(jt,re,oe,tt)),Rt-=Ba,tt&&Rt<Ae){var Wr=eu(jt,Kn);return YP(c,m,jm,ft.placeholder,T,jt,Wr,ce,me,Ae-Rt)}var Ui=Re?T:this,oo=Ve?Ui[c]:c;return Rt=jt.length,ce?jt=_he(jt,ce):ct&&Rt>1&&jt.reverse(),Fe&&me<Rt&&(jt.length=me),this&&this!==En&&this instanceof ft&&(oo=Tt||ih(oo)),oo.apply(Ui,jt)}return ft}function qP(c,m){return function(T,D){return Tde(T,c,m(D),{})}}function $m(c,m){return function(T,D){var q;if(T===r&&D===r)return m;if(T!==r&&(q=T),D!==r){if(q===r)return D;typeof T=="string"||typeof D=="string"?(T=Na(T),D=Na(D)):(T=PP(T),D=PP(D)),q=c(T,D)}return q}}function cw(c){return no(function(m){return m=kr(m,Ia(lt())),Ft(function(T){var D=this;return c(m,function(q){return Ra(q,D,T)})})})}function Um(c,m){m=m===r?" ":Na(m);var T=m.length;if(T<2)return T?nw(m,c):m;var D=nw(m,Tm(c/Vc(m)));return Wc(m)?iu(Bi(D),0,c).join(""):D.slice(0,c)}function ehe(c,m,T,D){var q=m&w,re=ih(c);function oe(){for(var ce=-1,me=arguments.length,Ae=-1,Fe=D.length,Re=Se(Fe+me),Ve=this&&this!==En&&this instanceof oe?re:c;++Ae<Fe;)Re[Ae]=D[Ae];for(;me--;)Re[Ae++]=arguments[++ce];return Ra(Ve,q?T:this,Re)}return oe}function GP(c){return function(m,T,D){return D&&typeof D!="number"&&Xn(m,T,D)&&(T=D=r),m=so(m),T===r?(T=m,m=0):T=so(T),D=D===r?m<T?1:-1:so(D),jde(m,T,D,c)}}function zm(c){return function(m,T){return typeof m=="string"&&typeof T=="string"||(m=ci(m),T=ci(T)),c(m,T)}}function YP(c,m,T,D,q,re,oe,ce,me,Ae){var Fe=m&b,Re=Fe?oe:r,Ve=Fe?r:oe,tt=Fe?re:r,ct=Fe?r:re;m|=Fe?g:y,m&=~(Fe?y:g),m&E||(m&=-4);var Tt=[c,m,q,tt,Re,ct,Ve,ce,me,Ae],ft=T.apply(r,Tt);return xw(c)&&sD(ft,Tt),ft.placeholder=D,oD(ft,c,m)}function fw(c){var m=tn[c];return function(T,D){if(T=ci(T),D=D==null?0:Bn(kt(D),292),D&&oP(T)){var q=(Qt(T)+"e").split("e"),re=m(q[0]+"e"+(+q[1]+D));return q=(Qt(re)+"e").split("e"),+(q[0]+"e"+(+q[1]-D))}return m(T)}}var the=Yc&&1/vm(new Yc([,-0]))[1]==M?function(c){return new Yc(c)}:Rw;function XP(c){return function(m){var T=jn(m);return T==_e?Ub(m):T==Je?x0e(m):c0e(m,c(m))}}function ro(c,m,T,D,q,re,oe,ce){var me=m&C;if(!me&&typeof c!="function")throw new ii(s);var Ae=D?D.length:0;if(Ae||(m&=-97,D=q=r),oe=oe===r?oe:rn(kt(oe),0),ce=ce===r?ce:kt(ce),Ae-=q?q.length:0,m&y){var Fe=D,Re=q;D=q=r}var Ve=me?r:pw(c),tt=[c,m,T,D,q,Fe,Re,re,oe,ce];if(Ve&&ghe(tt,Ve),c=tt[0],m=tt[1],T=tt[2],D=tt[3],q=tt[4],ce=tt[9]=tt[9]===r?me?0:c.length:rn(tt[9]-Ae,0),!ce&&m&(b|h)&&(m&=-25),!m||m==w)var ct=Jde(c,m,T);else m==b||m==h?ct=Qde(c,m,ce):(m==g||m==(w|g))&&!q.length?ct=ehe(c,m,T,D):ct=jm.apply(r,tt);var Tt=Ve?FP:sD;return oD(Tt(ct,tt),c,m)}function KP(c,m,T,D){return c===r||$i(c,Gc[T])&&!nr.call(D,T)?m:c}function ZP(c,m,T,D,q,re){return Or(c)&&Or(m)&&(re.set(m,c),Nm(c,m,r,ZP,re),re.delete(m)),c}function rhe(c){return uh(c)?r:c}function JP(c,m,T,D,q,re){var oe=T&_,ce=c.length,me=m.length;if(ce!=me&&!(oe&&me>ce))return!1;var Ae=re.get(c),Fe=re.get(m);if(Ae&&Fe)return Ae==m&&Fe==c;var Re=-1,Ve=!0,tt=T&x?new hl:r;for(re.set(c,m),re.set(m,c);++Re<ce;){var ct=c[Re],Tt=m[Re];if(D)var ft=oe?D(Tt,ct,Re,m,c,re):D(ct,Tt,Re,c,m,re);if(ft!==r){if(ft)continue;Ve=!1;break}if(tt){if(!Nb(m,function(Rt,jt){if(!Yd(tt,jt)&&(ct===Rt||q(ct,Rt,T,D,re)))return tt.push(jt)})){Ve=!1;break}}else if(!(ct===Tt||q(ct,Tt,T,D,re))){Ve=!1;break}}return re.delete(c),re.delete(m),Ve}function nhe(c,m,T,D,q,re,oe){switch(T){case Cr:if(c.byteLength!=m.byteLength||c.byteOffset!=m.byteOffset)return!1;c=c.buffer,m=m.buffer;case oa:return!(c.byteLength!=m.byteLength||!re(new Sm(c),new Sm(m)));case ge:case ye:case ze:return $i(+c,+m);case Be:return c.name==m.name&&c.message==m.message;case it:case Xe:return c==m+"";case _e:var ce=Ub;case Je:var me=D&_;if(ce||(ce=vm),c.size!=m.size&&!me)return!1;var Ae=oe.get(c);if(Ae)return Ae==m;D|=x,oe.set(c,m);var Fe=JP(ce(c),ce(m),D,q,re,oe);return oe.delete(c),Fe;case xt:if(Qd)return Qd.call(c)==Qd.call(m)}return!1}function ahe(c,m,T,D,q,re){var oe=T&_,ce=dw(c),me=ce.length,Ae=dw(m),Fe=Ae.length;if(me!=Fe&&!oe)return!1;for(var Re=me;Re--;){var Ve=ce[Re];if(!(oe?Ve in m:nr.call(m,Ve)))return!1}var tt=re.get(c),ct=re.get(m);if(tt&&ct)return tt==m&&ct==c;var Tt=!0;re.set(c,m),re.set(m,c);for(var ft=oe;++Re<me;){Ve=ce[Re];var Rt=c[Ve],jt=m[Ve];if(D)var La=oe?D(jt,Rt,Ve,m,c,re):D(Rt,jt,Ve,c,m,re);if(!(La===r?Rt===jt||q(Rt,jt,T,D,re):La)){Tt=!1;break}ft||(ft=Ve=="constructor")}if(Tt&&!ft){var Kn=c.constructor,Ba=m.constructor;Kn!=Ba&&"constructor"in c&&"constructor"in m&&!(typeof Kn=="function"&&Kn instanceof Kn&&typeof Ba=="function"&&Ba instanceof Ba)&&(Tt=!1)}return re.delete(c),re.delete(m),Tt}function no(c){return yw(aD(c,r,hD),c+"")}function dw(c){return xP(c,hn,gw)}function hw(c){return xP(c,ca,QP)}var pw=Fm?function(c){return Fm.get(c)}:Rw;function Hm(c){for(var m=c.name+"",T=Xc[m],D=nr.call(Xc,m)?T.length:0;D--;){var q=T[D],re=q.func;if(re==null||re==c)return q.name}return m}function Qc(c){var m=nr.call(ee,"placeholder")?ee:c;return m.placeholder}function lt(){var c=ee.iteratee||Pw;return c=c===Pw?bP:c,arguments.length?c(arguments[0],arguments[1]):c}function Wm(c,m){var T=c.__data__;return dhe(m)?T[typeof m=="string"?"string":"hash"]:T.map}function mw(c){for(var m=hn(c),T=m.length;T--;){var D=m[T],q=c[D];m[T]=[D,q,rD(q)]}return m}function gl(c,m){var T=m0e(c,m);return yP(T)?T:r}function ihe(c){var m=nr.call(c,fl),T=c[fl];try{c[fl]=r;var D=!0}catch{}var q=bm.call(c);return D&&(m?c[fl]=T:delete c[fl]),q}var gw=Hb?function(c){return c==null?[]:(c=dr(c),Jo(Hb(c),function(m){return iP.call(c,m)}))}:Iw,QP=Hb?function(c){for(var m=[];c;)Qo(m,gw(c)),c=Em(c);return m}:Iw,jn=Yn;(Wb&&jn(new Wb(new ArrayBuffer(1)))!=Cr||Kd&&jn(new Kd)!=_e||Vb&&jn(Vb.resolve())!=ut||Yc&&jn(new Yc)!=Je||Zd&&jn(new Zd)!=Fr)&&(jn=function(c){var m=Yn(c),T=m==De?c.constructor:r,D=T?vl(T):"";if(D)switch(D){case U0e:return Cr;case z0e:return _e;case H0e:return ut;case W0e:return Je;case V0e:return Fr}return m});function she(c,m,T){for(var D=-1,q=T.length;++D<q;){var re=T[D],oe=re.size;switch(re.type){case"drop":c+=oe;break;case"dropRight":m-=oe;break;case"take":m=Bn(m,c+oe);break;case"takeRight":c=rn(c,m-oe);break}}return{start:c,end:m}}function ohe(c){var m=c.match(X);return m?m[1].split(z):[]}function eD(c,m,T){m=au(m,c);for(var D=-1,q=m.length,re=!1;++D<q;){var oe=vs(m[D]);if(!(re=c!=null&&T(c,oe)))break;c=c[oe]}return re||++D!=q?re:(q=c==null?0:c.length,!!q&&Zm(q)&&ao(oe,q)&&(wt(c)||xl(c)))}function uhe(c){var m=c.length,T=new c.constructor(m);return m&&typeof c[0]=="string"&&nr.call(c,"index")&&(T.index=c.index,T.input=c.input),T}function tD(c){return typeof c.constructor=="function"&&!sh(c)?Kc(Em(c)):{}}function lhe(c,m,T){var D=c.constructor;switch(m){case oa:return lw(c);case ge:case ye:return new D(+c);case Cr:return qde(c,T);case Sn:case _t:case lr:case dn:case wr:case Da:case Wo:case al:case il:return LP(c,T);case _e:return new D;case ze:case Xe:return new D(c);case it:return Gde(c);case Je:return new D;case xt:return Yde(c)}}function che(c,m){var T=m.length;if(!T)return c;var D=T-1;return m[D]=(T>1?"& ":"")+m[D],m=m.join(T>2?", ":" "),c.replace(qd,`{
42
+ /* [wrapped with `+m+`] */
43
+ `)}function fhe(c){return wt(c)||xl(c)||!!(sP&&c&&c[sP])}function ao(c,m){var T=typeof c;return m=m??V,!!m&&(T=="number"||T!="symbol"&&Te.test(c))&&c>-1&&c%1==0&&c<m}function Xn(c,m,T){if(!Or(T))return!1;var D=typeof m;return(D=="number"?la(T)&&ao(m,T.length):D=="string"&&m in T)?$i(T[m],c):!1}function vw(c,m){if(wt(c))return!1;var T=typeof c;return T=="number"||T=="symbol"||T=="boolean"||c==null||Ma(c)?!0:Hd.test(c)||!Uc.test(c)||m!=null&&c in dr(m)}function dhe(c){var m=typeof c;return m=="string"||m=="number"||m=="symbol"||m=="boolean"?c!=="__proto__":c===null}function xw(c){var m=Hm(c),T=ee[m];if(typeof T!="function"||!(m in Lt.prototype))return!1;if(c===T)return!0;var D=pw(T);return!!D&&c===D[0]}function hhe(c){return!!rP&&rP in c}var phe=_m?io:Nw;function sh(c){var m=c&&c.constructor,T=typeof m=="function"&&m.prototype||Gc;return c===T}function rD(c){return c===c&&!Or(c)}function nD(c,m){return function(T){return T==null?!1:T[c]===m&&(m!==r||c in dr(T))}}function mhe(c){var m=Xm(c,function(D){return T.size===l&&T.clear(),D}),T=m.cache;return m}function ghe(c,m){var T=c[1],D=m[1],q=T|D,re=q<(w|C|S),oe=D==S&&T==b||D==S&&T==A&&c[7].length<=m[8]||D==(S|A)&&m[7].length<=m[8]&&T==b;if(!(re||oe))return c;D&w&&(c[2]=m[2],q|=T&w?0:E);var ce=m[3];if(ce){var me=c[3];c[3]=me?jP(me,ce,m[4]):ce,c[4]=me?eu(c[3],f):m[4]}return ce=m[5],ce&&(me=c[5],c[5]=me?$P(me,ce,m[6]):ce,c[6]=me?eu(c[5],f):m[6]),ce=m[7],ce&&(c[7]=ce),D&S&&(c[8]=c[8]==null?m[8]:Bn(c[8],m[8])),c[9]==null&&(c[9]=m[9]),c[0]=m[0],c[1]=q,c}function vhe(c){var m=[];if(c!=null)for(var T in dr(c))m.push(T);return m}function xhe(c){return bm.call(c)}function aD(c,m,T){return m=rn(m===r?c.length-1:m,0),function(){for(var D=arguments,q=-1,re=rn(D.length-m,0),oe=Se(re);++q<re;)oe[q]=D[m+q];q=-1;for(var ce=Se(m+1);++q<m;)ce[q]=D[q];return ce[m]=T(oe),Ra(c,this,ce)}}function iD(c,m){return m.length<2?c:ml(c,ui(m,0,-1))}function _he(c,m){for(var T=c.length,D=Bn(m.length,T),q=ua(c);D--;){var re=m[D];c[D]=ao(re,T)?q[re]:r}return c}function _w(c,m){if(!(m==="constructor"&&typeof c[m]=="function")&&m!="__proto__")return c[m]}var sD=uD(FP),oh=I0e||function(c,m){return En.setTimeout(c,m)},yw=uD(zde);function oD(c,m,T){var D=m+"";return yw(c,che(D,yhe(ohe(D),T)))}function uD(c){var m=0,T=0;return function(){var D=B0e(),q=N-(D-T);if(T=D,q>0){if(++m>=j)return arguments[0]}else m=0;return c.apply(r,arguments)}}function Vm(c,m){var T=-1,D=c.length,q=D-1;for(m=m===r?D:m;++T<m;){var re=rw(T,q),oe=c[re];c[re]=c[T],c[T]=oe}return c.length=m,c}var lD=mhe(function(c){var m=[];return c.charCodeAt(0)===46&&m.push(""),c.replace(Wd,function(T,D,q,re){m.push(q?re.replace(ne,"$1"):D||T)}),m});function vs(c){if(typeof c=="string"||Ma(c))return c;var m=c+"";return m=="0"&&1/c==-1/0?"-0":m}function vl(c){if(c!=null){try{return ym.call(c)}catch{}try{return c+""}catch{}}return""}function yhe(c,m){return ai(K,function(T){var D="_."+T[0];m&T[1]&&!mm(c,D)&&c.push(D)}),c.sort()}function cD(c){if(c instanceof Lt)return c.clone();var m=new si(c.__wrapped__,c.__chain__);return m.__actions__=ua(c.__actions__),m.__index__=c.__index__,m.__values__=c.__values__,m}function bhe(c,m,T){(T?Xn(c,m,T):m===r)?m=1:m=rn(kt(m),0);var D=c==null?0:c.length;if(!D||m<1)return[];for(var q=0,re=0,oe=Se(Tm(D/m));q<D;)oe[re++]=ui(c,q,q+=m);return oe}function whe(c){for(var m=-1,T=c==null?0:c.length,D=0,q=[];++m<T;){var re=c[m];re&&(q[D++]=re)}return q}function She(){var c=arguments.length;if(!c)return[];for(var m=Se(c-1),T=arguments[0],D=c;D--;)m[D-1]=arguments[D];return Qo(wt(T)?ua(T):[T],Cn(m,1))}var Ehe=Ft(function(c,m){return Hr(c)?th(c,Cn(m,1,Hr,!0)):[]}),Che=Ft(function(c,m){var T=li(m);return Hr(T)&&(T=r),Hr(c)?th(c,Cn(m,1,Hr,!0),lt(T,2)):[]}),khe=Ft(function(c,m){var T=li(m);return Hr(T)&&(T=r),Hr(c)?th(c,Cn(m,1,Hr,!0),r,T):[]});function The(c,m,T){var D=c==null?0:c.length;return D?(m=T||m===r?1:kt(m),ui(c,m<0?0:m,D)):[]}function Ahe(c,m,T){var D=c==null?0:c.length;return D?(m=T||m===r?1:kt(m),m=D-m,ui(c,0,m<0?0:m)):[]}function Fhe(c,m){return c&&c.length?Lm(c,lt(m,3),!0,!0):[]}function Ohe(c,m){return c&&c.length?Lm(c,lt(m,3),!0):[]}function Phe(c,m,T,D){var q=c==null?0:c.length;return q?(T&&typeof T!="number"&&Xn(c,m,T)&&(T=0,D=q),Sde(c,m,T,D)):[]}function fD(c,m,T){var D=c==null?0:c.length;if(!D)return-1;var q=T==null?0:kt(T);return q<0&&(q=rn(D+q,0)),gm(c,lt(m,3),q)}function dD(c,m,T){var D=c==null?0:c.length;if(!D)return-1;var q=D-1;return T!==r&&(q=kt(T),q=T<0?rn(D+q,0):Bn(q,D-1)),gm(c,lt(m,3),q,!0)}function hD(c){var m=c==null?0:c.length;return m?Cn(c,1):[]}function Dhe(c){var m=c==null?0:c.length;return m?Cn(c,M):[]}function Rhe(c,m){var T=c==null?0:c.length;return T?(m=m===r?1:kt(m),Cn(c,m)):[]}function Ihe(c){for(var m=-1,T=c==null?0:c.length,D={};++m<T;){var q=c[m];D[q[0]]=q[1]}return D}function pD(c){return c&&c.length?c[0]:r}function Nhe(c,m,T){var D=c==null?0:c.length;if(!D)return-1;var q=T==null?0:kt(T);return q<0&&(q=rn(D+q,0)),Hc(c,m,q)}function Mhe(c){var m=c==null?0:c.length;return m?ui(c,0,-1):[]}var Lhe=Ft(function(c){var m=kr(c,ow);return m.length&&m[0]===c[0]?Zb(m):[]}),Bhe=Ft(function(c){var m=li(c),T=kr(c,ow);return m===li(T)?m=r:T.pop(),T.length&&T[0]===c[0]?Zb(T,lt(m,2)):[]}),jhe=Ft(function(c){var m=li(c),T=kr(c,ow);return m=typeof m=="function"?m:r,m&&T.pop(),T.length&&T[0]===c[0]?Zb(T,r,m):[]});function $he(c,m){return c==null?"":M0e.call(c,m)}function li(c){var m=c==null?0:c.length;return m?c[m-1]:r}function Uhe(c,m,T){var D=c==null?0:c.length;if(!D)return-1;var q=D;return T!==r&&(q=kt(T),q=q<0?rn(D+q,0):Bn(q,D-1)),m===m?y0e(c,m,q):gm(c,YO,q,!0)}function zhe(c,m){return c&&c.length?CP(c,kt(m)):r}var Hhe=Ft(mD);function mD(c,m){return c&&c.length&&m&&m.length?tw(c,m):c}function Whe(c,m,T){return c&&c.length&&m&&m.length?tw(c,m,lt(T,2)):c}function Vhe(c,m,T){return c&&c.length&&m&&m.length?tw(c,m,r,T):c}var qhe=no(function(c,m){var T=c==null?0:c.length,D=Gb(c,m);return AP(c,kr(m,function(q){return ao(q,T)?+q:q}).sort(BP)),D});function Ghe(c,m){var T=[];if(!(c&&c.length))return T;var D=-1,q=[],re=c.length;for(m=lt(m,3);++D<re;){var oe=c[D];m(oe,D,c)&&(T.push(oe),q.push(D))}return AP(c,q),T}function bw(c){return c==null?c:$0e.call(c)}function Yhe(c,m,T){var D=c==null?0:c.length;return D?(T&&typeof T!="number"&&Xn(c,m,T)?(m=0,T=D):(m=m==null?0:kt(m),T=T===r?D:kt(T)),ui(c,m,T)):[]}function Xhe(c,m){return Mm(c,m)}function Khe(c,m,T){return aw(c,m,lt(T,2))}function Zhe(c,m){var T=c==null?0:c.length;if(T){var D=Mm(c,m);if(D<T&&$i(c[D],m))return D}return-1}function Jhe(c,m){return Mm(c,m,!0)}function Qhe(c,m,T){return aw(c,m,lt(T,2),!0)}function e1e(c,m){var T=c==null?0:c.length;if(T){var D=Mm(c,m,!0)-1;if($i(c[D],m))return D}return-1}function t1e(c){return c&&c.length?OP(c):[]}function r1e(c,m){return c&&c.length?OP(c,lt(m,2)):[]}function n1e(c){var m=c==null?0:c.length;return m?ui(c,1,m):[]}function a1e(c,m,T){return c&&c.length?(m=T||m===r?1:kt(m),ui(c,0,m<0?0:m)):[]}function i1e(c,m,T){var D=c==null?0:c.length;return D?(m=T||m===r?1:kt(m),m=D-m,ui(c,m<0?0:m,D)):[]}function s1e(c,m){return c&&c.length?Lm(c,lt(m,3),!1,!0):[]}function o1e(c,m){return c&&c.length?Lm(c,lt(m,3)):[]}var u1e=Ft(function(c){return nu(Cn(c,1,Hr,!0))}),l1e=Ft(function(c){var m=li(c);return Hr(m)&&(m=r),nu(Cn(c,1,Hr,!0),lt(m,2))}),c1e=Ft(function(c){var m=li(c);return m=typeof m=="function"?m:r,nu(Cn(c,1,Hr,!0),r,m)});function f1e(c){return c&&c.length?nu(c):[]}function d1e(c,m){return c&&c.length?nu(c,lt(m,2)):[]}function h1e(c,m){return m=typeof m=="function"?m:r,c&&c.length?nu(c,r,m):[]}function ww(c){if(!(c&&c.length))return[];var m=0;return c=Jo(c,function(T){if(Hr(T))return m=rn(T.length,m),!0}),jb(m,function(T){return kr(c,Mb(T))})}function gD(c,m){if(!(c&&c.length))return[];var T=ww(c);return m==null?T:kr(T,function(D){return Ra(m,r,D)})}var p1e=Ft(function(c,m){return Hr(c)?th(c,m):[]}),m1e=Ft(function(c){return sw(Jo(c,Hr))}),g1e=Ft(function(c){var m=li(c);return Hr(m)&&(m=r),sw(Jo(c,Hr),lt(m,2))}),v1e=Ft(function(c){var m=li(c);return m=typeof m=="function"?m:r,sw(Jo(c,Hr),r,m)}),x1e=Ft(ww);function _1e(c,m){return IP(c||[],m||[],eh)}function y1e(c,m){return IP(c||[],m||[],ah)}var b1e=Ft(function(c){var m=c.length,T=m>1?c[m-1]:r;return T=typeof T=="function"?(c.pop(),T):r,gD(c,T)});function vD(c){var m=ee(c);return m.__chain__=!0,m}function w1e(c,m){return m(c),c}function qm(c,m){return m(c)}var S1e=no(function(c){var m=c.length,T=m?c[0]:0,D=this.__wrapped__,q=function(re){return Gb(re,c)};return m>1||this.__actions__.length||!(D instanceof Lt)||!ao(T)?this.thru(q):(D=D.slice(T,+T+(m?1:0)),D.__actions__.push({func:qm,args:[q],thisArg:r}),new si(D,this.__chain__).thru(function(re){return m&&!re.length&&re.push(r),re}))});function E1e(){return vD(this)}function C1e(){return new si(this.value(),this.__chain__)}function k1e(){this.__values__===r&&(this.__values__=PD(this.value()));var c=this.__index__>=this.__values__.length,m=c?r:this.__values__[this.__index__++];return{done:c,value:m}}function T1e(){return this}function A1e(c){for(var m,T=this;T instanceof Pm;){var D=cD(T);D.__index__=0,D.__values__=r,m?q.__wrapped__=D:m=D;var q=D;T=T.__wrapped__}return q.__wrapped__=c,m}function F1e(){var c=this.__wrapped__;if(c instanceof Lt){var m=c;return this.__actions__.length&&(m=new Lt(this)),m=m.reverse(),m.__actions__.push({func:qm,args:[bw],thisArg:r}),new si(m,this.__chain__)}return this.thru(bw)}function O1e(){return RP(this.__wrapped__,this.__actions__)}var P1e=Bm(function(c,m,T){nr.call(c,T)?++c[T]:to(c,T,1)});function D1e(c,m,T){var D=wt(c)?qO:wde;return T&&Xn(c,m,T)&&(m=r),D(c,lt(m,3))}function R1e(c,m){var T=wt(c)?Jo:gP;return T(c,lt(m,3))}var I1e=WP(fD),N1e=WP(dD);function M1e(c,m){return Cn(Gm(c,m),1)}function L1e(c,m){return Cn(Gm(c,m),M)}function B1e(c,m,T){return T=T===r?1:kt(T),Cn(Gm(c,m),T)}function xD(c,m){var T=wt(c)?ai:ru;return T(c,lt(m,3))}function _D(c,m){var T=wt(c)?n0e:mP;return T(c,lt(m,3))}var j1e=Bm(function(c,m,T){nr.call(c,T)?c[T].push(m):to(c,T,[m])});function $1e(c,m,T,D){c=la(c)?c:tf(c),T=T&&!D?kt(T):0;var q=c.length;return T<0&&(T=rn(q+T,0)),Jm(c)?T<=q&&c.indexOf(m,T)>-1:!!q&&Hc(c,m,T)>-1}var U1e=Ft(function(c,m,T){var D=-1,q=typeof m=="function",re=la(c)?Se(c.length):[];return ru(c,function(oe){re[++D]=q?Ra(m,oe,T):rh(oe,m,T)}),re}),z1e=Bm(function(c,m,T){to(c,T,m)});function Gm(c,m){var T=wt(c)?kr:wP;return T(c,lt(m,3))}function H1e(c,m,T,D){return c==null?[]:(wt(m)||(m=m==null?[]:[m]),T=D?r:T,wt(T)||(T=T==null?[]:[T]),kP(c,m,T))}var W1e=Bm(function(c,m,T){c[T?0:1].push(m)},function(){return[[],[]]});function V1e(c,m,T){var D=wt(c)?Ib:KO,q=arguments.length<3;return D(c,lt(m,4),T,q,ru)}function q1e(c,m,T){var D=wt(c)?a0e:KO,q=arguments.length<3;return D(c,lt(m,4),T,q,mP)}function G1e(c,m){var T=wt(c)?Jo:gP;return T(c,Km(lt(m,3)))}function Y1e(c){var m=wt(c)?fP:$de;return m(c)}function X1e(c,m,T){(T?Xn(c,m,T):m===r)?m=1:m=kt(m);var D=wt(c)?vde:Ude;return D(c,m)}function K1e(c){var m=wt(c)?xde:Hde;return m(c)}function Z1e(c){if(c==null)return 0;if(la(c))return Jm(c)?Vc(c):c.length;var m=jn(c);return m==_e||m==Je?c.size:Qb(c).length}function J1e(c,m,T){var D=wt(c)?Nb:Wde;return T&&Xn(c,m,T)&&(m=r),D(c,lt(m,3))}var Q1e=Ft(function(c,m){if(c==null)return[];var T=m.length;return T>1&&Xn(c,m[0],m[1])?m=[]:T>2&&Xn(m[0],m[1],m[2])&&(m=[m[0]]),kP(c,Cn(m,1),[])}),Ym=R0e||function(){return En.Date.now()};function epe(c,m){if(typeof m!="function")throw new ii(s);return c=kt(c),function(){if(--c<1)return m.apply(this,arguments)}}function yD(c,m,T){return m=T?r:m,m=c&&m==null?c.length:m,ro(c,S,r,r,r,r,m)}function bD(c,m){var T;if(typeof m!="function")throw new ii(s);return c=kt(c),function(){return--c>0&&(T=m.apply(this,arguments)),c<=1&&(m=r),T}}var Sw=Ft(function(c,m,T){var D=w;if(T.length){var q=eu(T,Qc(Sw));D|=g}return ro(c,D,m,T,q)}),wD=Ft(function(c,m,T){var D=w|C;if(T.length){var q=eu(T,Qc(wD));D|=g}return ro(m,D,c,T,q)});function SD(c,m,T){m=T?r:m;var D=ro(c,b,r,r,r,r,r,m);return D.placeholder=SD.placeholder,D}function ED(c,m,T){m=T?r:m;var D=ro(c,h,r,r,r,r,r,m);return D.placeholder=ED.placeholder,D}function CD(c,m,T){var D,q,re,oe,ce,me,Ae=0,Fe=!1,Re=!1,Ve=!0;if(typeof c!="function")throw new ii(s);m=ci(m)||0,Or(T)&&(Fe=!!T.leading,Re="maxWait"in T,re=Re?rn(ci(T.maxWait)||0,m):re,Ve="trailing"in T?!!T.trailing:Ve);function tt(Wr){var Ui=D,oo=q;return D=q=r,Ae=Wr,oe=c.apply(oo,Ui),oe}function ct(Wr){return Ae=Wr,ce=oh(Rt,m),Fe?tt(Wr):oe}function Tt(Wr){var Ui=Wr-me,oo=Wr-Ae,WD=m-Ui;return Re?Bn(WD,re-oo):WD}function ft(Wr){var Ui=Wr-me,oo=Wr-Ae;return me===r||Ui>=m||Ui<0||Re&&oo>=re}function Rt(){var Wr=Ym();if(ft(Wr))return jt(Wr);ce=oh(Rt,Tt(Wr))}function jt(Wr){return ce=r,Ve&&D?tt(Wr):(D=q=r,oe)}function La(){ce!==r&&NP(ce),Ae=0,D=me=q=ce=r}function Kn(){return ce===r?oe:jt(Ym())}function Ba(){var Wr=Ym(),Ui=ft(Wr);if(D=arguments,q=this,me=Wr,Ui){if(ce===r)return ct(me);if(Re)return NP(ce),ce=oh(Rt,m),tt(me)}return ce===r&&(ce=oh(Rt,m)),oe}return Ba.cancel=La,Ba.flush=Kn,Ba}var tpe=Ft(function(c,m){return pP(c,1,m)}),rpe=Ft(function(c,m,T){return pP(c,ci(m)||0,T)});function npe(c){return ro(c,k)}function Xm(c,m){if(typeof c!="function"||m!=null&&typeof m!="function")throw new ii(s);var T=function(){var D=arguments,q=m?m.apply(this,D):D[0],re=T.cache;if(re.has(q))return re.get(q);var oe=c.apply(this,D);return T.cache=re.set(q,oe)||re,oe};return T.cache=new(Xm.Cache||eo),T}Xm.Cache=eo;function Km(c){if(typeof c!="function")throw new ii(s);return function(){var m=arguments;switch(m.length){case 0:return!c.call(this);case 1:return!c.call(this,m[0]);case 2:return!c.call(this,m[0],m[1]);case 3:return!c.call(this,m[0],m[1],m[2])}return!c.apply(this,m)}}function ape(c){return bD(2,c)}var ipe=Vde(function(c,m){m=m.length==1&&wt(m[0])?kr(m[0],Ia(lt())):kr(Cn(m,1),Ia(lt()));var T=m.length;return Ft(function(D){for(var q=-1,re=Bn(D.length,T);++q<re;)D[q]=m[q].call(this,D[q]);return Ra(c,this,D)})}),Ew=Ft(function(c,m){var T=eu(m,Qc(Ew));return ro(c,g,r,m,T)}),kD=Ft(function(c,m){var T=eu(m,Qc(kD));return ro(c,y,r,m,T)}),spe=no(function(c,m){return ro(c,A,r,r,r,m)});function ope(c,m){if(typeof c!="function")throw new ii(s);return m=m===r?m:kt(m),Ft(c,m)}function upe(c,m){if(typeof c!="function")throw new ii(s);return m=m==null?0:rn(kt(m),0),Ft(function(T){var D=T[m],q=iu(T,0,m);return D&&Qo(q,D),Ra(c,this,q)})}function lpe(c,m,T){var D=!0,q=!0;if(typeof c!="function")throw new ii(s);return Or(T)&&(D="leading"in T?!!T.leading:D,q="trailing"in T?!!T.trailing:q),CD(c,m,{leading:D,maxWait:m,trailing:q})}function cpe(c){return yD(c,1)}function fpe(c,m){return Ew(uw(m),c)}function dpe(){if(!arguments.length)return[];var c=arguments[0];return wt(c)?c:[c]}function hpe(c){return oi(c,v)}function ppe(c,m){return m=typeof m=="function"?m:r,oi(c,v,m)}function mpe(c){return oi(c,d|v)}function gpe(c,m){return m=typeof m=="function"?m:r,oi(c,d|v,m)}function vpe(c,m){return m==null||hP(c,m,hn(m))}function $i(c,m){return c===m||c!==c&&m!==m}var xpe=zm(Kb),_pe=zm(function(c,m){return c>=m}),xl=_P(function(){return arguments}())?_P:function(c){return Mr(c)&&nr.call(c,"callee")&&!iP.call(c,"callee")},wt=Se.isArray,ype=$O?Ia($O):Ade;function la(c){return c!=null&&Zm(c.length)&&!io(c)}function Hr(c){return Mr(c)&&la(c)}function bpe(c){return c===!0||c===!1||Mr(c)&&Yn(c)==ge}var su=N0e||Nw,wpe=UO?Ia(UO):Fde;function Spe(c){return Mr(c)&&c.nodeType===1&&!uh(c)}function Epe(c){if(c==null)return!0;if(la(c)&&(wt(c)||typeof c=="string"||typeof c.splice=="function"||su(c)||ef(c)||xl(c)))return!c.length;var m=jn(c);if(m==_e||m==Je)return!c.size;if(sh(c))return!Qb(c).length;for(var T in c)if(nr.call(c,T))return!1;return!0}function Cpe(c,m){return nh(c,m)}function kpe(c,m,T){T=typeof T=="function"?T:r;var D=T?T(c,m):r;return D===r?nh(c,m,r,T):!!D}function Cw(c){if(!Mr(c))return!1;var m=Yn(c);return m==Be||m==be||typeof c.message=="string"&&typeof c.name=="string"&&!uh(c)}function Tpe(c){return typeof c=="number"&&oP(c)}function io(c){if(!Or(c))return!1;var m=Yn(c);return m==J||m==qe||m==le||m==Ye}function TD(c){return typeof c=="number"&&c==kt(c)}function Zm(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=V}function Or(c){var m=typeof c;return c!=null&&(m=="object"||m=="function")}function Mr(c){return c!=null&&typeof c=="object"}var AD=zO?Ia(zO):Pde;function Ape(c,m){return c===m||Jb(c,m,mw(m))}function Fpe(c,m,T){return T=typeof T=="function"?T:r,Jb(c,m,mw(m),T)}function Ope(c){return FD(c)&&c!=+c}function Ppe(c){if(phe(c))throw new yt(i);return yP(c)}function Dpe(c){return c===null}function Rpe(c){return c==null}function FD(c){return typeof c=="number"||Mr(c)&&Yn(c)==ze}function uh(c){if(!Mr(c)||Yn(c)!=De)return!1;var m=Em(c);if(m===null)return!0;var T=nr.call(m,"constructor")&&m.constructor;return typeof T=="function"&&T instanceof T&&ym.call(T)==F0e}var kw=HO?Ia(HO):Dde;function Ipe(c){return TD(c)&&c>=-9007199254740991&&c<=V}var OD=WO?Ia(WO):Rde;function Jm(c){return typeof c=="string"||!wt(c)&&Mr(c)&&Yn(c)==Xe}function Ma(c){return typeof c=="symbol"||Mr(c)&&Yn(c)==xt}var ef=VO?Ia(VO):Ide;function Npe(c){return c===r}function Mpe(c){return Mr(c)&&jn(c)==Fr}function Lpe(c){return Mr(c)&&Yn(c)==Pa}var Bpe=zm(ew),jpe=zm(function(c,m){return c<=m});function PD(c){if(!c)return[];if(la(c))return Jm(c)?Bi(c):ua(c);if(Xd&&c[Xd])return v0e(c[Xd]());var m=jn(c),T=m==_e?Ub:m==Je?vm:tf;return T(c)}function so(c){if(!c)return c===0?c:0;if(c=ci(c),c===M||c===-1/0){var m=c<0?-1:1;return m*L}return c===c?c:0}function kt(c){var m=so(c),T=m%1;return m===m?T?m-T:m:0}function DD(c){return c?pl(kt(c),0,G):0}function ci(c){if(typeof c=="number")return c;if(Ma(c))return W;if(Or(c)){var m=typeof c.valueOf=="function"?c.valueOf():c;c=Or(m)?m+"":m}if(typeof c!="string")return c===0?c:+c;c=ZO(c);var T=fe.test(c);return T||ve.test(c)?e0e(c.slice(2),T?2:8):we.test(c)?W:+c}function RD(c){return gs(c,ca(c))}function $pe(c){return c?pl(kt(c),-9007199254740991,V):c===0?c:0}function Qt(c){return c==null?"":Na(c)}var Upe=Zc(function(c,m){if(sh(m)||la(m)){gs(m,hn(m),c);return}for(var T in m)nr.call(m,T)&&eh(c,T,m[T])}),ID=Zc(function(c,m){gs(m,ca(m),c)}),Qm=Zc(function(c,m,T,D){gs(m,ca(m),c,D)}),zpe=Zc(function(c,m,T,D){gs(m,hn(m),c,D)}),Hpe=no(Gb);function Wpe(c,m){var T=Kc(c);return m==null?T:dP(T,m)}var Vpe=Ft(function(c,m){c=dr(c);var T=-1,D=m.length,q=D>2?m[2]:r;for(q&&Xn(m[0],m[1],q)&&(D=1);++T<D;)for(var re=m[T],oe=ca(re),ce=-1,me=oe.length;++ce<me;){var Ae=oe[ce],Fe=c[Ae];(Fe===r||$i(Fe,Gc[Ae])&&!nr.call(c,Ae))&&(c[Ae]=re[Ae])}return c}),qpe=Ft(function(c){return c.push(r,ZP),Ra(ND,r,c)});function Gpe(c,m){return GO(c,lt(m,3),ms)}function Ype(c,m){return GO(c,lt(m,3),Xb)}function Xpe(c,m){return c==null?c:Yb(c,lt(m,3),ca)}function Kpe(c,m){return c==null?c:vP(c,lt(m,3),ca)}function Zpe(c,m){return c&&ms(c,lt(m,3))}function Jpe(c,m){return c&&Xb(c,lt(m,3))}function Qpe(c){return c==null?[]:Im(c,hn(c))}function eme(c){return c==null?[]:Im(c,ca(c))}function Tw(c,m,T){var D=c==null?r:ml(c,m);return D===r?T:D}function tme(c,m){return c!=null&&eD(c,m,Ede)}function Aw(c,m){return c!=null&&eD(c,m,Cde)}var rme=qP(function(c,m,T){m!=null&&typeof m.toString!="function"&&(m=bm.call(m)),c[m]=T},Ow(fa)),nme=qP(function(c,m,T){m!=null&&typeof m.toString!="function"&&(m=bm.call(m)),nr.call(c,m)?c[m].push(T):c[m]=[T]},lt),ame=Ft(rh);function hn(c){return la(c)?cP(c):Qb(c)}function ca(c){return la(c)?cP(c,!0):Nde(c)}function ime(c,m){var T={};return m=lt(m,3),ms(c,function(D,q,re){to(T,m(D,q,re),D)}),T}function sme(c,m){var T={};return m=lt(m,3),ms(c,function(D,q,re){to(T,q,m(D,q,re))}),T}var ome=Zc(function(c,m,T){Nm(c,m,T)}),ND=Zc(function(c,m,T,D){Nm(c,m,T,D)}),ume=no(function(c,m){var T={};if(c==null)return T;var D=!1;m=kr(m,function(re){return re=au(re,c),D||(D=re.length>1),re}),gs(c,hw(c),T),D&&(T=oi(T,d|p|v,rhe));for(var q=m.length;q--;)iw(T,m[q]);return T});function lme(c,m){return MD(c,Km(lt(m)))}var cme=no(function(c,m){return c==null?{}:Lde(c,m)});function MD(c,m){if(c==null)return{};var T=kr(hw(c),function(D){return[D]});return m=lt(m),TP(c,T,function(D,q){return m(D,q[0])})}function fme(c,m,T){m=au(m,c);var D=-1,q=m.length;for(q||(q=1,c=r);++D<q;){var re=c==null?r:c[vs(m[D])];re===r&&(D=q,re=T),c=io(re)?re.call(c):re}return c}function dme(c,m,T){return c==null?c:ah(c,m,T)}function hme(c,m,T,D){return D=typeof D=="function"?D:r,c==null?c:ah(c,m,T,D)}var LD=XP(hn),BD=XP(ca);function pme(c,m,T){var D=wt(c),q=D||su(c)||ef(c);if(m=lt(m,4),T==null){var re=c&&c.constructor;q?T=D?new re:[]:Or(c)?T=io(re)?Kc(Em(c)):{}:T={}}return(q?ai:ms)(c,function(oe,ce,me){return m(T,oe,ce,me)}),T}function mme(c,m){return c==null?!0:iw(c,m)}function gme(c,m,T){return c==null?c:DP(c,m,uw(T))}function vme(c,m,T,D){return D=typeof D=="function"?D:r,c==null?c:DP(c,m,uw(T),D)}function tf(c){return c==null?[]:$b(c,hn(c))}function xme(c){return c==null?[]:$b(c,ca(c))}function _me(c,m,T){return T===r&&(T=m,m=r),T!==r&&(T=ci(T),T=T===T?T:0),m!==r&&(m=ci(m),m=m===m?m:0),pl(ci(c),m,T)}function yme(c,m,T){return m=so(m),T===r?(T=m,m=0):T=so(T),c=ci(c),kde(c,m,T)}function bme(c,m,T){if(T&&typeof T!="boolean"&&Xn(c,m,T)&&(m=T=r),T===r&&(typeof m=="boolean"?(T=m,m=r):typeof c=="boolean"&&(T=c,c=r)),c===r&&m===r?(c=0,m=1):(c=so(c),m===r?(m=c,c=0):m=so(m)),c>m){var D=c;c=m,m=D}if(T||c%1||m%1){var q=uP();return Bn(c+q*(m-c+Qfe("1e-"+((q+"").length-1))),m)}return rw(c,m)}var wme=Jc(function(c,m,T){return m=m.toLowerCase(),c+(T?jD(m):m)});function jD(c){return Fw(Qt(c).toLowerCase())}function $D(c){return c=Qt(c),c&&c.replace(Ne,d0e).replace(Hfe,"")}function Sme(c,m,T){c=Qt(c),m=Na(m);var D=c.length;T=T===r?D:pl(kt(T),0,D);var q=T;return T-=m.length,T>=0&&c.slice(T,q)==m}function Eme(c){return c=Qt(c),c&&Ud.test(c)?c.replace(Go,h0e):c}function Cme(c){return c=Qt(c),c&&Xo.test(c)?c.replace(Yo,"\\$&"):c}var kme=Jc(function(c,m,T){return c+(T?"-":"")+m.toLowerCase()}),Tme=Jc(function(c,m,T){return c+(T?" ":"")+m.toLowerCase()}),Ame=HP("toLowerCase");function Fme(c,m,T){c=Qt(c),m=kt(m);var D=m?Vc(c):0;if(!m||D>=m)return c;var q=(m-D)/2;return Um(Am(q),T)+c+Um(Tm(q),T)}function Ome(c,m,T){c=Qt(c),m=kt(m);var D=m?Vc(c):0;return m&&D<m?c+Um(m-D,T):c}function Pme(c,m,T){c=Qt(c),m=kt(m);var D=m?Vc(c):0;return m&&D<m?Um(m-D,T)+c:c}function Dme(c,m,T){return T||m==null?m=0:m&&(m=+m),j0e(Qt(c).replace(ul,""),m||0)}function Rme(c,m,T){return(T?Xn(c,m,T):m===r)?m=1:m=kt(m),nw(Qt(c),m)}function Ime(){var c=arguments,m=Qt(c[0]);return c.length<3?m:m.replace(c[1],c[2])}var Nme=Jc(function(c,m,T){return c+(T?"_":"")+m.toLowerCase()});function Mme(c,m,T){return T&&typeof T!="number"&&Xn(c,m,T)&&(m=T=r),T=T===r?G:T>>>0,T?(c=Qt(c),c&&(typeof m=="string"||m!=null&&!kw(m))&&(m=Na(m),!m&&Wc(c))?iu(Bi(c),0,T):c.split(m,T)):[]}var Lme=Jc(function(c,m,T){return c+(T?" ":"")+Fw(m)});function Bme(c,m,T){return c=Qt(c),T=T==null?0:pl(kt(T),0,c.length),m=Na(m),c.slice(T,T+m.length)==m}function jme(c,m,T){var D=ee.templateSettings;T&&Xn(c,m,T)&&(m=r),c=Qt(c),m=Qm({},m,D,KP);var q=Qm({},m.imports,D.imports,KP),re=hn(q),oe=$b(q,re),ce,me,Ae=0,Fe=m.interpolate||He,Re="__p += '",Ve=zb((m.escape||He).source+"|"+Fe.source+"|"+(Fe===ol?ae:He).source+"|"+(m.evaluate||He).source+"|$","g"),tt="//# sourceURL="+(nr.call(m,"sourceURL")?(m.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Yfe+"]")+`
44
+ `;c.replace(Ve,function(ft,Rt,jt,La,Kn,Ba){return jt||(jt=La),Re+=c.slice(Ae,Ba).replace(Ie,p0e),Rt&&(ce=!0,Re+=`' +
45
+ __e(`+Rt+`) +
46
+ '`),Kn&&(me=!0,Re+=`';
47
+ `+Kn+`;
48
+ __p += '`),jt&&(Re+=`' +
49
+ ((__t = (`+jt+`)) == null ? '' : __t) +
50
+ '`),Ae=Ba+ft.length,ft}),Re+=`';
51
+ `;var ct=nr.call(m,"variable")&&m.variable;if(!ct)Re=`with (obj) {
52
+ `+Re+`
53
+ }
54
+ `;else if(Z.test(ct))throw new yt(o);Re=(me?Re.replace(Vo,""):Re).replace(sl,"$1").replace(Mi,"$1;"),Re="function("+(ct||"obj")+`) {
55
+ `+(ct?"":`obj || (obj = {});
56
+ `)+"var __t, __p = ''"+(ce?", __e = _.escape":"")+(me?`, __j = Array.prototype.join;
57
+ function print() { __p += __j.call(arguments, '') }
58
+ `:`;
59
+ `)+Re+`return __p
60
+ }`;var Tt=zD(function(){return Yt(re,tt+"return "+Re).apply(r,oe)});if(Tt.source=Re,Cw(Tt))throw Tt;return Tt}function $me(c){return Qt(c).toLowerCase()}function Ume(c){return Qt(c).toUpperCase()}function zme(c,m,T){if(c=Qt(c),c&&(T||m===r))return ZO(c);if(!c||!(m=Na(m)))return c;var D=Bi(c),q=Bi(m),re=JO(D,q),oe=QO(D,q)+1;return iu(D,re,oe).join("")}function Hme(c,m,T){if(c=Qt(c),c&&(T||m===r))return c.slice(0,tP(c)+1);if(!c||!(m=Na(m)))return c;var D=Bi(c),q=QO(D,Bi(m))+1;return iu(D,0,q).join("")}function Wme(c,m,T){if(c=Qt(c),c&&(T||m===r))return c.replace(ul,"");if(!c||!(m=Na(m)))return c;var D=Bi(c),q=JO(D,Bi(m));return iu(D,q).join("")}function Vme(c,m){var T=F,D=P;if(Or(m)){var q="separator"in m?m.separator:q;T="length"in m?kt(m.length):T,D="omission"in m?Na(m.omission):D}c=Qt(c);var re=c.length;if(Wc(c)){var oe=Bi(c);re=oe.length}if(T>=re)return c;var ce=T-Vc(D);if(ce<1)return D;var me=oe?iu(oe,0,ce).join(""):c.slice(0,ce);if(q===r)return me+D;if(oe&&(ce+=me.length-ce),kw(q)){if(c.slice(ce).search(q)){var Ae,Fe=me;for(q.global||(q=zb(q.source,Qt(he.exec(q))+"g")),q.lastIndex=0;Ae=q.exec(Fe);)var Re=Ae.index;me=me.slice(0,Re===r?ce:Re)}}else if(c.indexOf(Na(q),ce)!=ce){var Ve=me.lastIndexOf(q);Ve>-1&&(me=me.slice(0,Ve))}return me+D}function qme(c){return c=Qt(c),c&&Zs.test(c)?c.replace(qo,b0e):c}var Gme=Jc(function(c,m,T){return c+(T?" ":"")+m.toUpperCase()}),Fw=HP("toUpperCase");function UD(c,m,T){return c=Qt(c),m=T?r:m,m===r?g0e(c)?E0e(c):o0e(c):c.match(m)||[]}var zD=Ft(function(c,m){try{return Ra(c,r,m)}catch(T){return Cw(T)?T:new yt(T)}}),Yme=no(function(c,m){return ai(m,function(T){T=vs(T),to(c,T,Sw(c[T],c))}),c});function Xme(c){var m=c==null?0:c.length,T=lt();return c=m?kr(c,function(D){if(typeof D[1]!="function")throw new ii(s);return[T(D[0]),D[1]]}):[],Ft(function(D){for(var q=-1;++q<m;){var re=c[q];if(Ra(re[0],this,D))return Ra(re[1],this,D)}})}function Kme(c){return bde(oi(c,d))}function Ow(c){return function(){return c}}function Zme(c,m){return c==null||c!==c?m:c}var Jme=VP(),Qme=VP(!0);function fa(c){return c}function Pw(c){return bP(typeof c=="function"?c:oi(c,d))}function ege(c){return SP(oi(c,d))}function tge(c,m){return EP(c,oi(m,d))}var rge=Ft(function(c,m){return function(T){return rh(T,c,m)}}),nge=Ft(function(c,m){return function(T){return rh(c,T,m)}});function Dw(c,m,T){var D=hn(m),q=Im(m,D);T==null&&!(Or(m)&&(q.length||!D.length))&&(T=m,m=c,c=this,q=Im(m,hn(m)));var re=!(Or(T)&&"chain"in T)||!!T.chain,oe=io(c);return ai(q,function(ce){var me=m[ce];c[ce]=me,oe&&(c.prototype[ce]=function(){var Ae=this.__chain__;if(re||Ae){var Fe=c(this.__wrapped__),Re=Fe.__actions__=ua(this.__actions__);return Re.push({func:me,args:arguments,thisArg:c}),Fe.__chain__=Ae,Fe}return me.apply(c,Qo([this.value()],arguments))})}),c}function age(){return En._===this&&(En._=O0e),this}function Rw(){}function ige(c){return c=kt(c),Ft(function(m){return CP(m,c)})}var sge=cw(kr),oge=cw(qO),uge=cw(Nb);function HD(c){return vw(c)?Mb(vs(c)):Bde(c)}function lge(c){return function(m){return c==null?r:ml(c,m)}}var cge=GP(),fge=GP(!0);function Iw(){return[]}function Nw(){return!1}function dge(){return{}}function hge(){return""}function pge(){return!0}function mge(c,m){if(c=kt(c),c<1||c>V)return[];var T=G,D=Bn(c,G);m=lt(m),c-=G;for(var q=jb(D,m);++T<c;)m(T);return q}function gge(c){return wt(c)?kr(c,vs):Ma(c)?[c]:ua(lD(Qt(c)))}function vge(c){var m=++A0e;return Qt(c)+m}var xge=$m(function(c,m){return c+m},0),_ge=fw("ceil"),yge=$m(function(c,m){return c/m},1),bge=fw("floor");function wge(c){return c&&c.length?Rm(c,fa,Kb):r}function Sge(c,m){return c&&c.length?Rm(c,lt(m,2),Kb):r}function Ege(c){return XO(c,fa)}function Cge(c,m){return XO(c,lt(m,2))}function kge(c){return c&&c.length?Rm(c,fa,ew):r}function Tge(c,m){return c&&c.length?Rm(c,lt(m,2),ew):r}var Age=$m(function(c,m){return c*m},1),Fge=fw("round"),Oge=$m(function(c,m){return c-m},0);function Pge(c){return c&&c.length?Bb(c,fa):0}function Dge(c,m){return c&&c.length?Bb(c,lt(m,2)):0}return ee.after=epe,ee.ary=yD,ee.assign=Upe,ee.assignIn=ID,ee.assignInWith=Qm,ee.assignWith=zpe,ee.at=Hpe,ee.before=bD,ee.bind=Sw,ee.bindAll=Yme,ee.bindKey=wD,ee.castArray=dpe,ee.chain=vD,ee.chunk=bhe,ee.compact=whe,ee.concat=She,ee.cond=Xme,ee.conforms=Kme,ee.constant=Ow,ee.countBy=P1e,ee.create=Wpe,ee.curry=SD,ee.curryRight=ED,ee.debounce=CD,ee.defaults=Vpe,ee.defaultsDeep=qpe,ee.defer=tpe,ee.delay=rpe,ee.difference=Ehe,ee.differenceBy=Che,ee.differenceWith=khe,ee.drop=The,ee.dropRight=Ahe,ee.dropRightWhile=Fhe,ee.dropWhile=Ohe,ee.fill=Phe,ee.filter=R1e,ee.flatMap=M1e,ee.flatMapDeep=L1e,ee.flatMapDepth=B1e,ee.flatten=hD,ee.flattenDeep=Dhe,ee.flattenDepth=Rhe,ee.flip=npe,ee.flow=Jme,ee.flowRight=Qme,ee.fromPairs=Ihe,ee.functions=Qpe,ee.functionsIn=eme,ee.groupBy=j1e,ee.initial=Mhe,ee.intersection=Lhe,ee.intersectionBy=Bhe,ee.intersectionWith=jhe,ee.invert=rme,ee.invertBy=nme,ee.invokeMap=U1e,ee.iteratee=Pw,ee.keyBy=z1e,ee.keys=hn,ee.keysIn=ca,ee.map=Gm,ee.mapKeys=ime,ee.mapValues=sme,ee.matches=ege,ee.matchesProperty=tge,ee.memoize=Xm,ee.merge=ome,ee.mergeWith=ND,ee.method=rge,ee.methodOf=nge,ee.mixin=Dw,ee.negate=Km,ee.nthArg=ige,ee.omit=ume,ee.omitBy=lme,ee.once=ape,ee.orderBy=H1e,ee.over=sge,ee.overArgs=ipe,ee.overEvery=oge,ee.overSome=uge,ee.partial=Ew,ee.partialRight=kD,ee.partition=W1e,ee.pick=cme,ee.pickBy=MD,ee.property=HD,ee.propertyOf=lge,ee.pull=Hhe,ee.pullAll=mD,ee.pullAllBy=Whe,ee.pullAllWith=Vhe,ee.pullAt=qhe,ee.range=cge,ee.rangeRight=fge,ee.rearg=spe,ee.reject=G1e,ee.remove=Ghe,ee.rest=ope,ee.reverse=bw,ee.sampleSize=X1e,ee.set=dme,ee.setWith=hme,ee.shuffle=K1e,ee.slice=Yhe,ee.sortBy=Q1e,ee.sortedUniq=t1e,ee.sortedUniqBy=r1e,ee.split=Mme,ee.spread=upe,ee.tail=n1e,ee.take=a1e,ee.takeRight=i1e,ee.takeRightWhile=s1e,ee.takeWhile=o1e,ee.tap=w1e,ee.throttle=lpe,ee.thru=qm,ee.toArray=PD,ee.toPairs=LD,ee.toPairsIn=BD,ee.toPath=gge,ee.toPlainObject=RD,ee.transform=pme,ee.unary=cpe,ee.union=u1e,ee.unionBy=l1e,ee.unionWith=c1e,ee.uniq=f1e,ee.uniqBy=d1e,ee.uniqWith=h1e,ee.unset=mme,ee.unzip=ww,ee.unzipWith=gD,ee.update=gme,ee.updateWith=vme,ee.values=tf,ee.valuesIn=xme,ee.without=p1e,ee.words=UD,ee.wrap=fpe,ee.xor=m1e,ee.xorBy=g1e,ee.xorWith=v1e,ee.zip=x1e,ee.zipObject=_1e,ee.zipObjectDeep=y1e,ee.zipWith=b1e,ee.entries=LD,ee.entriesIn=BD,ee.extend=ID,ee.extendWith=Qm,Dw(ee,ee),ee.add=xge,ee.attempt=zD,ee.camelCase=wme,ee.capitalize=jD,ee.ceil=_ge,ee.clamp=_me,ee.clone=hpe,ee.cloneDeep=mpe,ee.cloneDeepWith=gpe,ee.cloneWith=ppe,ee.conformsTo=vpe,ee.deburr=$D,ee.defaultTo=Zme,ee.divide=yge,ee.endsWith=Sme,ee.eq=$i,ee.escape=Eme,ee.escapeRegExp=Cme,ee.every=D1e,ee.find=I1e,ee.findIndex=fD,ee.findKey=Gpe,ee.findLast=N1e,ee.findLastIndex=dD,ee.findLastKey=Ype,ee.floor=bge,ee.forEach=xD,ee.forEachRight=_D,ee.forIn=Xpe,ee.forInRight=Kpe,ee.forOwn=Zpe,ee.forOwnRight=Jpe,ee.get=Tw,ee.gt=xpe,ee.gte=_pe,ee.has=tme,ee.hasIn=Aw,ee.head=pD,ee.identity=fa,ee.includes=$1e,ee.indexOf=Nhe,ee.inRange=yme,ee.invoke=ame,ee.isArguments=xl,ee.isArray=wt,ee.isArrayBuffer=ype,ee.isArrayLike=la,ee.isArrayLikeObject=Hr,ee.isBoolean=bpe,ee.isBuffer=su,ee.isDate=wpe,ee.isElement=Spe,ee.isEmpty=Epe,ee.isEqual=Cpe,ee.isEqualWith=kpe,ee.isError=Cw,ee.isFinite=Tpe,ee.isFunction=io,ee.isInteger=TD,ee.isLength=Zm,ee.isMap=AD,ee.isMatch=Ape,ee.isMatchWith=Fpe,ee.isNaN=Ope,ee.isNative=Ppe,ee.isNil=Rpe,ee.isNull=Dpe,ee.isNumber=FD,ee.isObject=Or,ee.isObjectLike=Mr,ee.isPlainObject=uh,ee.isRegExp=kw,ee.isSafeInteger=Ipe,ee.isSet=OD,ee.isString=Jm,ee.isSymbol=Ma,ee.isTypedArray=ef,ee.isUndefined=Npe,ee.isWeakMap=Mpe,ee.isWeakSet=Lpe,ee.join=$he,ee.kebabCase=kme,ee.last=li,ee.lastIndexOf=Uhe,ee.lowerCase=Tme,ee.lowerFirst=Ame,ee.lt=Bpe,ee.lte=jpe,ee.max=wge,ee.maxBy=Sge,ee.mean=Ege,ee.meanBy=Cge,ee.min=kge,ee.minBy=Tge,ee.stubArray=Iw,ee.stubFalse=Nw,ee.stubObject=dge,ee.stubString=hge,ee.stubTrue=pge,ee.multiply=Age,ee.nth=zhe,ee.noConflict=age,ee.noop=Rw,ee.now=Ym,ee.pad=Fme,ee.padEnd=Ome,ee.padStart=Pme,ee.parseInt=Dme,ee.random=bme,ee.reduce=V1e,ee.reduceRight=q1e,ee.repeat=Rme,ee.replace=Ime,ee.result=fme,ee.round=Fge,ee.runInContext=de,ee.sample=Y1e,ee.size=Z1e,ee.snakeCase=Nme,ee.some=J1e,ee.sortedIndex=Xhe,ee.sortedIndexBy=Khe,ee.sortedIndexOf=Zhe,ee.sortedLastIndex=Jhe,ee.sortedLastIndexBy=Qhe,ee.sortedLastIndexOf=e1e,ee.startCase=Lme,ee.startsWith=Bme,ee.subtract=Oge,ee.sum=Pge,ee.sumBy=Dge,ee.template=jme,ee.times=mge,ee.toFinite=so,ee.toInteger=kt,ee.toLength=DD,ee.toLower=$me,ee.toNumber=ci,ee.toSafeInteger=$pe,ee.toString=Qt,ee.toUpper=Ume,ee.trim=zme,ee.trimEnd=Hme,ee.trimStart=Wme,ee.truncate=Vme,ee.unescape=qme,ee.uniqueId=vge,ee.upperCase=Gme,ee.upperFirst=Fw,ee.each=xD,ee.eachRight=_D,ee.first=pD,Dw(ee,function(){var c={};return ms(ee,function(m,T){nr.call(ee.prototype,T)||(c[T]=m)}),c}(),{chain:!1}),ee.VERSION=n,ai(["bind","bindKey","curry","curryRight","partial","partialRight"],function(c){ee[c].placeholder=ee}),ai(["drop","take"],function(c,m){Lt.prototype[c]=function(T){T=T===r?1:rn(kt(T),0);var D=this.__filtered__&&!m?new Lt(this):this.clone();return D.__filtered__?D.__takeCount__=Bn(T,D.__takeCount__):D.__views__.push({size:Bn(T,G),type:c+(D.__dir__<0?"Right":"")}),D},Lt.prototype[c+"Right"]=function(T){return this.reverse()[c](T).reverse()}}),ai(["filter","map","takeWhile"],function(c,m){var T=m+1,D=T==I||T==O;Lt.prototype[c]=function(q){var re=this.clone();return re.__iteratees__.push({iteratee:lt(q,3),type:T}),re.__filtered__=re.__filtered__||D,re}}),ai(["head","last"],function(c,m){var T="take"+(m?"Right":"");Lt.prototype[c]=function(){return this[T](1).value()[0]}}),ai(["initial","tail"],function(c,m){var T="drop"+(m?"":"Right");Lt.prototype[c]=function(){return this.__filtered__?new Lt(this):this[T](1)}}),Lt.prototype.compact=function(){return this.filter(fa)},Lt.prototype.find=function(c){return this.filter(c).head()},Lt.prototype.findLast=function(c){return this.reverse().find(c)},Lt.prototype.invokeMap=Ft(function(c,m){return typeof c=="function"?new Lt(this):this.map(function(T){return rh(T,c,m)})}),Lt.prototype.reject=function(c){return this.filter(Km(lt(c)))},Lt.prototype.slice=function(c,m){c=kt(c);var T=this;return T.__filtered__&&(c>0||m<0)?new Lt(T):(c<0?T=T.takeRight(-c):c&&(T=T.drop(c)),m!==r&&(m=kt(m),T=m<0?T.dropRight(-m):T.take(m-c)),T)},Lt.prototype.takeRightWhile=function(c){return this.reverse().takeWhile(c).reverse()},Lt.prototype.toArray=function(){return this.take(G)},ms(Lt.prototype,function(c,m){var T=/^(?:filter|find|map|reject)|While$/.test(m),D=/^(?:head|last)$/.test(m),q=ee[D?"take"+(m=="last"?"Right":""):m],re=D||/^find/.test(m);q&&(ee.prototype[m]=function(){var oe=this.__wrapped__,ce=D?[1]:arguments,me=oe instanceof Lt,Ae=ce[0],Fe=me||wt(oe),Re=function(Rt){var jt=q.apply(ee,Qo([Rt],ce));return D&&Ve?jt[0]:jt};Fe&&T&&typeof Ae=="function"&&Ae.length!=1&&(me=Fe=!1);var Ve=this.__chain__,tt=!!this.__actions__.length,ct=re&&!Ve,Tt=me&&!tt;if(!re&&Fe){oe=Tt?oe:new Lt(this);var ft=c.apply(oe,ce);return ft.__actions__.push({func:qm,args:[Re],thisArg:r}),new si(ft,Ve)}return ct&&Tt?c.apply(this,ce):(ft=this.thru(Re),ct?D?ft.value()[0]:ft.value():ft)})}),ai(["pop","push","shift","sort","splice","unshift"],function(c){var m=xm[c],T=/^(?:push|sort|unshift)$/.test(c)?"tap":"thru",D=/^(?:pop|shift)$/.test(c);ee.prototype[c]=function(){var q=arguments;if(D&&!this.__chain__){var re=this.value();return m.apply(wt(re)?re:[],q)}return this[T](function(oe){return m.apply(wt(oe)?oe:[],q)})}}),ms(Lt.prototype,function(c,m){var T=ee[m];if(T){var D=T.name+"";nr.call(Xc,D)||(Xc[D]=[]),Xc[D].push({name:m,func:T})}}),Xc[jm(r,C).name]=[{name:"wrapper",func:r}],Lt.prototype.clone=q0e,Lt.prototype.reverse=G0e,Lt.prototype.value=Y0e,ee.prototype.at=S1e,ee.prototype.chain=E1e,ee.prototype.commit=C1e,ee.prototype.next=k1e,ee.prototype.plant=A1e,ee.prototype.reverse=F1e,ee.prototype.toJSON=ee.prototype.valueOf=ee.prototype.value=O1e,ee.prototype.first=ee.prototype.head,Xd&&(ee.prototype[Xd]=T1e),ee},qc=C0e();cl?((cl.exports=qc)._=qc,Pb._=qc):En._=qc}).call(cR)}(pf,pf.exports)),pf.exports}var Ee=fR(),ug={exports:{}},n3;function dR(){return n3||(n3=1,function(e){e.exports=function(t){var r={};function n(a){if(r[a])return r[a].exports;var i=r[a]={exports:{},id:a,loaded:!1};return t[a].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return n.m=t,n.c=r,n.p="",n(0)}([function(t,r,n){t.exports=n(1)},function(t,r,n){Object.defineProperty(r,"__esModule",{value:!0});function a(o){return o&&o.__esModule?o:{default:o}}var i=n(2),s=a(i);r.default=s.default,t.exports=r.default},function(t,r,n){Object.defineProperty(r,"__esModule",{value:!0});var a=Object.assign||function(p){for(var v=1;v<arguments.length;v++){var _=arguments[v];for(var x in _)Object.prototype.hasOwnProperty.call(_,x)&&(p[x]=_[x])}return p};r.default=d;function i(p){return p&&p.__esModule?p:{default:p}}function s(p,v){var _={};for(var x in p)v.indexOf(x)>=0||Object.prototype.hasOwnProperty.call(p,x)&&(_[x]=p[x]);return _}var o=n(3),u=n(4),l=n(5),f=i(l);function d(p){var v=p.activeClassName,_=v===void 0?"":v,x=p.activeIndex,w=x===void 0?-1:x,C=p.activeStyle,E=p.autoEscape,b=p.caseSensitive,h=b===void 0?!1:b,g=p.className,y=p.findChunks,S=p.highlightClassName,A=S===void 0?"":S,k=p.highlightStyle,F=k===void 0?{}:k,P=p.highlightTag,j=P===void 0?"mark":P,N=p.sanitize,I=p.searchWords,B=p.textToHighlight,O=p.unhighlightTag,M=O===void 0?"span":O,V=p.unhighlightClassName,L=V===void 0?"":V,W=p.unhighlightStyle,G=s(p,["activeClassName","activeIndex","activeStyle","autoEscape","caseSensitive","className","findChunks","highlightClassName","highlightStyle","highlightTag","sanitize","searchWords","textToHighlight","unhighlightTag","unhighlightClassName","unhighlightStyle"]),H=(0,o.findAll)({autoEscape:E,caseSensitive:h,findChunks:y,sanitize:N,searchWords:I,textToHighlight:B}),Q=j,K=-1,te="",se=void 0,le=function(be){var Be={};for(var J in be)Be[J.toLowerCase()]=be[J];return Be},ge=(0,f.default)(le);return(0,u.createElement)("span",a({className:g},G,{children:H.map(function(ye,be){var Be=B.substr(ye.start,ye.end-ye.start);if(ye.highlight){K++;var J=void 0;typeof A=="object"?h?J=A[Be]:(A=ge(A),J=A[Be.toLowerCase()]):J=A;var qe=K===+w;te=J+" "+(qe?_:""),se=qe===!0&&C!=null?Object.assign({},F,C):F;var _e={children:Be,className:te,key:be,style:se};return typeof Q!="string"&&(_e.highlightIndex=K),(0,u.createElement)(Q,_e)}else return(0,u.createElement)(M,{children:Be,className:L,key:be,style:W})})}))}t.exports=r.default},function(t,r){t.exports=function(n){var a={};function i(s){if(a[s])return a[s].exports;var o=a[s]={exports:{},id:s,loaded:!1};return n[s].call(o.exports,o,o.exports,i),o.loaded=!0,o.exports}return i.m=n,i.c=a,i.p="",i(0)}([function(n,a,i){n.exports=i(1)},function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0});var s=i(2);Object.defineProperty(a,"combineChunks",{enumerable:!0,get:function(){return s.combineChunks}}),Object.defineProperty(a,"fillInChunks",{enumerable:!0,get:function(){return s.fillInChunks}}),Object.defineProperty(a,"findAll",{enumerable:!0,get:function(){return s.findAll}}),Object.defineProperty(a,"findChunks",{enumerable:!0,get:function(){return s.findChunks}})},function(n,a){Object.defineProperty(a,"__esModule",{value:!0}),a.findAll=function(d){var p=d.autoEscape,v=d.caseSensitive,_=v===void 0?!1:v,x=d.findChunks,w=x===void 0?s:x,C=d.sanitize,E=d.searchWords,b=d.textToHighlight;return o({chunksToHighlight:i({chunks:w({autoEscape:p,caseSensitive:_,sanitize:C,searchWords:E,textToHighlight:b})}),totalLength:b?b.length:0})};var i=a.combineChunks=function(d){var p=d.chunks;return p=p.sort(function(v,_){return v.start-_.start}).reduce(function(v,_){if(v.length===0)return[_];var x=v.pop();if(_.start<=x.end){var w=Math.max(x.end,_.end);v.push({start:x.start,end:w})}else v.push(x,_);return v},[]),p},s=function(d){var p=d.autoEscape,v=d.caseSensitive,_=d.sanitize,x=_===void 0?u:_,w=d.searchWords,C=d.textToHighlight;return C=x(C),w.filter(function(E){return E}).reduce(function(E,b){b=x(b),p&&(b=l(b));for(var h=new RegExp(b,v?"g":"gi"),g=void 0;g=h.exec(C);){var y=g.index,S=h.lastIndex;S>y&&E.push({start:y,end:S}),g.index==h.lastIndex&&h.lastIndex++}return E},[])};a.findChunks=s;var o=a.fillInChunks=function(d){var p=d.chunksToHighlight,v=d.totalLength,_=[],x=function(E,b,h){b-E>0&&_.push({start:E,end:b,highlight:h})};if(p.length===0)x(0,v,!1);else{var w=0;p.forEach(function(C){x(w,C.start,!1),x(C.start,C.end,!0),w=C.end}),x(w,v,!1)}return _};function u(f){return f}function l(f){return f.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}}])},function(t,r){t.exports=U},function(t,r){var n=function(s,o){return s===o};function a(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:n,o=void 0,u=[],l=void 0,f=!1,d=function(_,x){return s(_,u[x])},p=function(){for(var _=arguments.length,x=Array(_),w=0;w<_;w++)x[w]=arguments[w];return f&&o===this&&x.length===u.length&&x.every(d)||(f=!0,o=this,u=x,l=i.apply(this,x)),l};return p}t.exports=a}])}(ug)),ug.exports}var hR=dR();const fh=$n(hR),pR={mosaic:"_mosaic_1jpg5_1"},zi=e=>R.jsx("span",{className:pR.mosaic,style:{display:e.inLine?"inline-block":"block"}}),jc=class jc{readPermission(t){return!["1999-09-09 09:09:09",jc.mosaic,"1999-09-09 09:09:9"].includes(t)}handlingError(t){return t=="1970-01-01 08:00:00"?"":t}hasAuthority(t,r){return this.readPermission(t[r])&&t[r]!==void 0}isMosaic(t){return t===jc.mosaic}mosaicBlank(t){return t==jc.mosaic?"":t||""}};gr(jc,"mosaic","~#~");let lg=jc;class mR extends lg{constructor(){super(...arguments);gr(this,"mosaic","~#~")}displayData(r,n=!0){return this.readPermission(r)?this.handlingError(r):R.jsx(zi,{inLine:n})}renderIsMosaic(r,n,a=!0){return this.readPermission(r)?n:R.jsx(zi,{inLine:a})}}const ja=new mR,ou=e=>{var s;const{Option:t}=ue.Select,r={...e},[n,a]=U.useState(""),i=(o,u)=>R.jsx(fh,{highlightStyle:{color:"#F5325C",backgroundColor:"rgb(0, 0, 0, 0)",padding:"0"},searchWords:[u?u.toString():""],autoEscape:!0,textToHighlight:o?o.toString():""});return r.loading?R.jsx(ue.Select,{value:"",open:!1,loading:!0}):R.jsx(ue.Select,{style:{...r.style,width:"100%"},className:Qe(og.main,r.className,{rrrrr:!0,[og.pane]:e.pane}),...Ee.omit(r,["options"]),onSearch:o=>{a(o)},filterOption:(o,u)=>u.label&&u.label.indexOf(o)>=0,dropdownClassName:og.plm_select_dropdown,showSearch:!0,allowClear:e.allowClear==null?!0:e.allowClear,optionLabelProp:"label",children:(s=e.options)==null?void 0:s.map(o=>ja.isMosaic(o.label)?R.jsx(t,{disabled:!0,children:R.jsx(zi,{})}):U.createElement(t,{...o,value:o.value,disabled:o.disabled,key:o.value,label:o.label},R.jsx("div",{title:o.label,style:{width:"100%",overflow:"hidden",textOverflow:"ellipsis"},children:i(o.label,n)})))})},Zn={AliIconFont:"_AliIconFont_14ovi_1",iconText:"_iconText_14ovi_2",disabled:"_disabled_14ovi_9",placementColor:"_placementColor_14ovi_28",classNameDisabled:"_classNameDisabled_14ovi_33",placementIcon:"_placementIcon_14ovi_37",btn_convider:"_btn_convider_14ovi_40",btn_icon:"_btn_icon_14ovi_40",omitPoint:"_omitPoint_14ovi_57"};var cg=U.createContext({});function hr(e){"@babel/helpers - typeof";return hr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hr(e)}function gR(e,t){if(hr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(hr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function a3(e){var t=gR(e,"string");return hr(t)=="symbol"?t:t+""}function et(e,t,r){return(t=a3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Oe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?i3(Object(r),!0).forEach(function(n){et(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vR(e){if(Array.isArray(e))return e}function xR(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,s,o=[],u=!0,l=!1;try{if(i=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(o.push(n.value),o.length!==t);u=!0);}catch(f){l=!0,a=f}finally{try{if(!u&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(l)throw a}}return o}}function fg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function s3(e,t){if(e){if(typeof e=="string")return fg(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?fg(e,t):void 0}}function _R(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
61
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bt(e,t){return vR(e)||xR(e,t)||s3(e,t)||_R()}function yR(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function uo(e,t){if(e==null)return{};var r,n,a=yR(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function $a(e,t){bR(e)&&(e="100%");var r=wR(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function bR(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function wR(e){return typeof e=="string"&&e.indexOf("%")!==-1}function SR(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function dh(e){return e<=1?"".concat(Number(e)*100,"%"):e}function dg(e){return e.length===1?"0"+e:String(e)}function ER(e,t,r){return{r:$a(e,255)*255,g:$a(t,255)*255,b:$a(r,255)*255}}function hg(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*(6*r):r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function CR(e,t,r){var n,a,i;if(e=$a(e,360),t=$a(t,100),r=$a(r,100),t===0)a=r,i=r,n=r;else{var s=r<.5?r*(1+t):r+t-r*t,o=2*r-s;n=hg(o,s,e+1/3),a=hg(o,s,e),i=hg(o,s,e-1/3)}return{r:n*255,g:a*255,b:i*255}}function kR(e,t,r){e=$a(e,255),t=$a(t,255),r=$a(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),i=0,s=n,o=n-a,u=n===0?0:o/n;if(n===a)i=0;else{switch(n){case e:i=(t-r)/o+(t<r?6:0);break;case t:i=(r-e)/o+2;break;case r:i=(e-t)/o+4;break}i/=6}return{h:i,s:u,v:s}}function TR(e,t,r){e=$a(e,360)*6,t=$a(t,100),r=$a(r,100);var n=Math.floor(e),a=e-n,i=r*(1-t),s=r*(1-a*t),o=r*(1-(1-a)*t),u=n%6,l=[r,s,i,i,o,r][u],f=[o,r,r,s,i,i][u],d=[i,i,o,r,r,s][u];return{r:l*255,g:f*255,b:d*255}}function AR(e,t,r,n){var a=[dg(Math.round(e).toString(16)),dg(Math.round(t).toString(16)),dg(Math.round(r).toString(16))];return a.join("")}function o3(e){return da(e)/255}function da(e){return parseInt(e,16)}var u3={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function mf(e){var t={r:0,g:0,b:0},r=1,n=null,a=null,i=null,s=!1,o=!1;return typeof e=="string"&&(e=PR(e)),typeof e=="object"&&(xs(e.r)&&xs(e.g)&&xs(e.b)?(t=ER(e.r,e.g,e.b),s=!0,o=String(e.r).substr(-1)==="%"?"prgb":"rgb"):xs(e.h)&&xs(e.s)&&xs(e.v)?(n=dh(e.s),a=dh(e.v),t=TR(e.h,n,a),s=!0,o="hsv"):xs(e.h)&&xs(e.s)&&xs(e.l)&&(n=dh(e.s),i=dh(e.l),t=CR(e.h,n,i),s=!0,o="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=SR(r),{ok:s,format:e.format||o,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}var FR="[-\\+]?\\d+%?",OR="[-\\+]?\\d*\\.\\d+%?",lo="(?:".concat(OR,")|(?:").concat(FR,")"),pg="[\\s|\\(]+(".concat(lo,")[,|\\s]+(").concat(lo,")[,|\\s]+(").concat(lo,")\\s*\\)?"),mg="[\\s|\\(]+(".concat(lo,")[,|\\s]+(").concat(lo,")[,|\\s]+(").concat(lo,")[,|\\s]+(").concat(lo,")\\s*\\)?"),di={CSS_UNIT:new RegExp(lo),rgb:new RegExp("rgb"+pg),rgba:new RegExp("rgba"+mg),hsl:new RegExp("hsl"+pg),hsla:new RegExp("hsla"+mg),hsv:new RegExp("hsv"+pg),hsva:new RegExp("hsva"+mg),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function PR(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(u3[e])e=u3[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=di.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=di.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=di.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=di.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=di.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=di.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=di.hex8.exec(e),r?{r:da(r[1]),g:da(r[2]),b:da(r[3]),a:o3(r[4]),format:t?"name":"hex8"}:(r=di.hex6.exec(e),r?{r:da(r[1]),g:da(r[2]),b:da(r[3]),format:t?"name":"hex"}:(r=di.hex4.exec(e),r?{r:da(r[1]+r[1]),g:da(r[2]+r[2]),b:da(r[3]+r[3]),a:o3(r[4]+r[4]),format:t?"name":"hex8"}:(r=di.hex3.exec(e),r?{r:da(r[1]+r[1]),g:da(r[2]+r[2]),b:da(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function xs(e){return!!di.CSS_UNIT.exec(String(e))}var hh=2,l3=.16,DR=.05,RR=.05,IR=.15,c3=5,f3=4,NR=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function d3(e){var t=e.r,r=e.g,n=e.b,a=kR(t,r,n);return{h:a.h*360,s:a.s,v:a.v}}function ph(e){var t=e.r,r=e.g,n=e.b;return"#".concat(AR(t,r,n))}function MR(e,t,r){var n=r/100,a={r:(t.r-e.r)*n+e.r,g:(t.g-e.g)*n+e.g,b:(t.b-e.b)*n+e.b};return a}function h3(e,t,r){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-hh*t:Math.round(e.h)+hh*t:n=r?Math.round(e.h)+hh*t:Math.round(e.h)-hh*t,n<0?n+=360:n>=360&&(n-=360),n}function p3(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-l3*t:t===f3?n=e.s+l3:n=e.s+DR*t,n>1&&(n=1),r&&t===c3&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2))}function m3(e,t,r){var n;return r?n=e.v+RR*t:n=e.v-IR*t,n>1&&(n=1),Number(n.toFixed(2))}function gg(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=mf(e),a=c3;a>0;a-=1){var i=d3(n),s=ph(mf({h:h3(i,a,!0),s:p3(i,a,!0),v:m3(i,a,!0)}));r.push(s)}r.push(ph(n));for(var o=1;o<=f3;o+=1){var u=d3(n),l=ph(mf({h:h3(u,o),s:p3(u,o),v:m3(u,o)}));r.push(l)}return t.theme==="dark"?NR.map(function(f){var d=f.index,p=f.opacity,v=ph(MR(mf(t.backgroundColor||"#141414"),mf(r[d]),p*100));return v}):r}var vg={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},xg={},_g={};Object.keys(vg).forEach(function(e){xg[e]=gg(vg[e]),xg[e].primary=xg[e][5],_g[e]=gg(vg[e],{theme:"dark",backgroundColor:"#141414"}),_g[e].primary=_g[e][5]});var yg={},bg=[],LR=function(t){bg.push(t)};function wg(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=bg.reduce(function(n,a){return a(n??"","warning")},t);r&&console.error("Warning: ".concat(r))}}function BR(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=bg.reduce(function(n,a){return a(n??"","note")},t);r&&console.warn("Note: ".concat(r))}}function jR(){yg={}}function g3(e,t,r){!t&&!yg[r]&&(e(!1,r),yg[r]=!0)}function uu(e,t){g3(wg,e,t)}function $R(e,t){g3(BR,e,t)}uu.preMessage=LR,uu.resetWarned=jR,uu.noteOnce=$R;function co(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function UR(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}var v3="data-rc-order",x3="data-rc-priority",zR="rc-util-key",Sg=new Map;function _3(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):zR}function mh(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function HR(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Eg(e){return Array.from((Sg.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function y3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!co())return null;var r=t.csp,n=t.prepend,a=t.priority,i=a===void 0?0:a,s=HR(n),o=s==="prependQueue",u=document.createElement("style");u.setAttribute(v3,s),o&&i&&u.setAttribute(x3,"".concat(i)),r!=null&&r.nonce&&(u.nonce=r==null?void 0:r.nonce),u.innerHTML=e;var l=mh(t),f=l.firstChild;if(n){if(o){var d=(t.styles||Eg(l)).filter(function(p){if(!["prepend","prependQueue"].includes(p.getAttribute(v3)))return!1;var v=Number(p.getAttribute(x3)||0);return i>=v});if(d.length)return l.insertBefore(u,d[d.length-1].nextSibling),u}l.insertBefore(u,f)}else l.appendChild(u);return u}function b3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=mh(t);return(t.styles||Eg(r)).find(function(n){return n.getAttribute(_3(t))===e})}function w3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=b3(e,t);if(r){var n=mh(t);n.removeChild(r)}}function WR(e,t){var r=Sg.get(e);if(!r||!UR(document,r)){var n=y3("",t),a=n.parentNode;Sg.set(e,a),e.removeChild(n)}}function lu(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=mh(r),a=Eg(n),i=Oe(Oe({},r),{},{styles:a});WR(n,i);var s=b3(t,i);if(s){var o,u;if((o=i.csp)!==null&&o!==void 0&&o.nonce&&s.nonce!==((u=i.csp)===null||u===void 0?void 0:u.nonce)){var l;s.nonce=(l=i.csp)===null||l===void 0?void 0:l.nonce}return s.innerHTML!==e&&(s.innerHTML=e),s}var f=y3(e,i);return f.setAttribute(_3(i),t),f}var Cg,S3;function VR(){if(S3)return Cg;S3=1;var e=typeof fi=="object"&&fi&&fi.Object===Object&&fi;return Cg=e,Cg}var kg,E3;function C3(){if(E3)return kg;E3=1;var e=VR(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return kg=r,kg}var Tg,k3;function Ag(){if(k3)return Tg;k3=1;var e=C3(),t=e.Symbol;return Tg=t,Tg}var Fg,T3;function qR(){if(T3)return Fg;T3=1;function e(t,r){for(var n=-1,a=t==null?0:t.length,i=Array(a);++n<a;)i[n]=r(t[n],n,t);return i}return Fg=e,Fg}var Og,A3;function GR(){if(A3)return Og;A3=1;var e=Array.isArray;return Og=e,Og}var Pg,F3;function YR(){if(F3)return Pg;F3=1;var e=Ag(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,a=e?e.toStringTag:void 0;function i(s){var o=r.call(s,a),u=s[a];try{s[a]=void 0;var l=!0}catch{}var f=n.call(s);return l&&(o?s[a]=u:delete s[a]),f}return Pg=i,Pg}var Dg,O3;function XR(){if(O3)return Dg;O3=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return Dg=r,Dg}var Rg,P3;function D3(){if(P3)return Rg;P3=1;var e=Ag(),t=YR(),r=XR(),n="[object Null]",a="[object Undefined]",i=e?e.toStringTag:void 0;function s(o){return o==null?o===void 0?a:n:i&&i in Object(o)?t(o):r(o)}return Rg=s,Rg}var Ig,R3;function I3(){if(R3)return Ig;R3=1;function e(t){return t!=null&&typeof t=="object"}return Ig=e,Ig}var Ng,N3;function M3(){if(N3)return Ng;N3=1;var e=D3(),t=I3(),r="[object Symbol]";function n(a){return typeof a=="symbol"||t(a)&&e(a)==r}return Ng=n,Ng}var Mg,L3;function KR(){if(L3)return Mg;L3=1;var e=Ag(),t=qR(),r=GR(),n=M3(),a=e?e.prototype:void 0,i=a?a.toString:void 0;function s(o){if(typeof o=="string")return o;if(r(o))return t(o,s)+"";if(n(o))return i?i.call(o):"";var u=o+"";return u=="0"&&1/o==-1/0?"-0":u}return Mg=s,Mg}var Lg,B3;function gh(){if(B3)return Lg;B3=1;var e=KR();function t(r){return r==null?"":e(r)}return Lg=t,Lg}var Bg,j3;function ZR(){if(j3)return Bg;j3=1;function e(t,r,n){var a=-1,i=t.length;r<0&&(r=-r>i?0:i+r),n=n>i?i:n,n<0&&(n+=i),i=r>n?0:n-r>>>0,r>>>=0;for(var s=Array(i);++a<i;)s[a]=t[a+r];return s}return Bg=e,Bg}var jg,$3;function JR(){if($3)return jg;$3=1;var e=ZR();function t(r,n,a){var i=r.length;return a=a===void 0?i:a,!n&&a>=i?r:e(r,n,a)}return jg=t,jg}var $g,U3;function z3(){if(U3)return $g;U3=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",a=t+r+n,i="\\ufe0e\\ufe0f",s="\\u200d",o=RegExp("["+s+e+a+i+"]");function u(l){return o.test(l)}return $g=u,$g}var Ug,H3;function QR(){if(H3)return Ug;H3=1;function e(t){return t.split("")}return Ug=e,Ug}var zg,W3;function eI(){if(W3)return zg;W3=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",a=t+r+n,i="\\ufe0e\\ufe0f",s="["+e+"]",o="["+a+"]",u="\\ud83c[\\udffb-\\udfff]",l="(?:"+o+"|"+u+")",f="[^"+e+"]",d="(?:\\ud83c[\\udde6-\\uddff]){2}",p="[\\ud800-\\udbff][\\udc00-\\udfff]",v="\\u200d",_=l+"?",x="["+i+"]?",w="(?:"+v+"(?:"+[f,d,p].join("|")+")"+x+_+")*",C=x+_+w,E="(?:"+[f+o+"?",o,d,p,s].join("|")+")",b=RegExp(u+"(?="+u+")|"+E+C,"g");function h(g){return g.match(b)||[]}return zg=h,zg}var Hg,V3;function tI(){if(V3)return Hg;V3=1;var e=QR(),t=z3(),r=eI();function n(a){return t(a)?r(a):e(a)}return Hg=n,Hg}var Wg,q3;function rI(){if(q3)return Wg;q3=1;var e=JR(),t=z3(),r=tI(),n=gh();function a(i){return function(s){s=n(s);var o=t(s)?r(s):void 0,u=o?o[0]:s.charAt(0),l=o?e(o,1).join(""):s.slice(1);return u[i]()+l}}return Wg=a,Wg}var Vg,G3;function nI(){if(G3)return Vg;G3=1;var e=rI(),t=e("toUpperCase");return Vg=t,Vg}var qg,Y3;function aI(){if(Y3)return qg;Y3=1;var e=gh(),t=nI();function r(n){return t(e(n).toLowerCase())}return qg=r,qg}var Gg,X3;function iI(){if(X3)return Gg;X3=1;function e(t,r,n,a){var i=-1,s=t==null?0:t.length;for(a&&s&&(n=t[++i]);++i<s;)n=r(n,t[i],i,t);return n}return Gg=e,Gg}var Yg,K3;function sI(){if(K3)return Yg;K3=1;function e(t){return function(r){return t==null?void 0:t[r]}}return Yg=e,Yg}var Xg,Z3;function oI(){if(Z3)return Xg;Z3=1;var e=sI(),t={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},r=e(t);return Xg=r,Xg}var Kg,J3;function uI(){if(J3)return Kg;J3=1;var e=oI(),t=gh(),r=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,n="\\u0300-\\u036f",a="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",s=n+a+i,o="["+s+"]",u=RegExp(o,"g");function l(f){return f=t(f),f&&f.replace(r,e).replace(u,"")}return Kg=l,Kg}var Zg,Q3;function lI(){if(Q3)return Zg;Q3=1;var e=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function t(r){return r.match(e)||[]}return Zg=t,Zg}var Jg,e8;function cI(){if(e8)return Jg;e8=1;var e=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function t(r){return e.test(r)}return Jg=t,Jg}var Qg,t8;function fI(){if(t8)return Qg;t8=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",a=t+r+n,i="\\u2700-\\u27bf",s="a-z\\xdf-\\xf6\\xf8-\\xff",o="\\xac\\xb1\\xd7\\xf7",u="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",l="\\u2000-\\u206f",f=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",d="A-Z\\xc0-\\xd6\\xd8-\\xde",p="\\ufe0e\\ufe0f",v=o+u+l+f,_="['’]",x="["+v+"]",w="["+a+"]",C="\\d+",E="["+i+"]",b="["+s+"]",h="[^"+e+v+C+i+s+d+"]",g="\\ud83c[\\udffb-\\udfff]",y="(?:"+w+"|"+g+")",S="[^"+e+"]",A="(?:\\ud83c[\\udde6-\\uddff]){2}",k="[\\ud800-\\udbff][\\udc00-\\udfff]",F="["+d+"]",P="\\u200d",j="(?:"+b+"|"+h+")",N="(?:"+F+"|"+h+")",I="(?:"+_+"(?:d|ll|m|re|s|t|ve))?",B="(?:"+_+"(?:D|LL|M|RE|S|T|VE))?",O=y+"?",M="["+p+"]?",V="(?:"+P+"(?:"+[S,A,k].join("|")+")"+M+O+")*",L="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",W="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",G=M+O+V,H="(?:"+[E,A,k].join("|")+")"+G,Q=RegExp([F+"?"+b+"+"+I+"(?="+[x,F,"$"].join("|")+")",N+"+"+B+"(?="+[x,F+j,"$"].join("|")+")",F+"?"+j+"+"+I,F+"+"+B,W,L,C,H].join("|"),"g");function K(te){return te.match(Q)||[]}return Qg=K,Qg}var ev,r8;function dI(){if(r8)return ev;r8=1;var e=lI(),t=cI(),r=gh(),n=fI();function a(i,s,o){return i=r(i),s=o?void 0:s,s===void 0?t(i)?n(i):e(i):i.match(s)||[]}return ev=a,ev}var tv,n8;function hI(){if(n8)return tv;n8=1;var e=iI(),t=uI(),r=dI(),n="['’]",a=RegExp(n,"g");function i(s){return function(o){return e(r(t(o).replace(a,"")),s,"")}}return tv=i,tv}var rv,a8;function pI(){if(a8)return rv;a8=1;var e=aI(),t=hI(),r=t(function(n,a,i){return a=a.toLowerCase(),n+(i?e(a):a)});return rv=r,rv}var mI=pI();const gI=$n(mI);function nv(e,t){uu(e,"[@ant-design/icons] ".concat(t))}function i8(e){return hr(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(hr(e.icon)==="object"||typeof e.icon=="function")}function s8(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];switch(r){case"class":t.className=n,delete t.class;break;default:delete t[r],t[gI(r)]=n}return t},{})}function av(e,t,r){return r?U.createElement(e.tag,Oe(Oe({key:t},s8(e.attrs)),r),(e.children||[]).map(function(n,a){return av(n,"".concat(t,"-").concat(e.tag,"-").concat(a))})):U.createElement(e.tag,Oe({key:t},s8(e.attrs)),(e.children||[]).map(function(n,a){return av(n,"".concat(t,"-").concat(e.tag,"-").concat(a))}))}function o8(e){return gg(e)[0]}function u8(e){return e?Array.isArray(e)?e:[e]:[]}var vI={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},xI=`
62
+ .anticon {
63
+ display: inline-flex;
64
+ alignItems: center;
65
+ color: inherit;
66
+ font-style: normal;
67
+ line-height: 0;
68
+ text-align: center;
69
+ text-transform: none;
70
+ vertical-align: -0.125em;
71
+ text-rendering: optimizeLegibility;
72
+ -webkit-font-smoothing: antialiased;
73
+ -moz-osx-font-smoothing: grayscale;
74
+ }
75
+
76
+ .anticon > * {
77
+ line-height: 1;
78
+ }
79
+
80
+ .anticon svg {
81
+ display: inline-block;
82
+ }
83
+
84
+ .anticon::before {
85
+ display: none;
86
+ }
87
+
88
+ .anticon .anticon-icon {
89
+ display: block;
90
+ }
91
+
92
+ .anticon[tabindex] {
93
+ cursor: pointer;
94
+ }
95
+
96
+ .anticon-spin::before,
97
+ .anticon-spin {
98
+ display: inline-block;
99
+ -webkit-animation: loadingCircle 1s infinite linear;
100
+ animation: loadingCircle 1s infinite linear;
101
+ }
102
+
103
+ @-webkit-keyframes loadingCircle {
104
+ 100% {
105
+ -webkit-transform: rotate(360deg);
106
+ transform: rotate(360deg);
107
+ }
108
+ }
109
+
110
+ @keyframes loadingCircle {
111
+ 100% {
112
+ -webkit-transform: rotate(360deg);
113
+ transform: rotate(360deg);
114
+ }
115
+ }
116
+ `,l8=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:xI,r=U.useContext(cg),n=r.csp;U.useEffect(function(){lu(t,"@ant-design-icons",{prepend:!0,csp:n})},[])},_I=["icon","className","onClick","style","primaryColor","secondaryColor"],gf={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function yI(e){var t=e.primaryColor,r=e.secondaryColor;gf.primaryColor=t,gf.secondaryColor=r||o8(t),gf.calculated=!!r}function bI(){return Oe({},gf)}var _l=function(t){var r=t.icon,n=t.className,a=t.onClick,i=t.style,s=t.primaryColor,o=t.secondaryColor,u=uo(t,_I),l=gf;if(s&&(l={primaryColor:s,secondaryColor:o||o8(s)}),l8(),nv(i8(r),"icon should be icon definiton, but got ".concat(r)),!i8(r))return null;var f=r;return f&&typeof f.icon=="function"&&(f=Oe(Oe({},f),{},{icon:f.icon(l.primaryColor,l.secondaryColor)})),av(f.icon,"svg-".concat(f.name),Oe({className:n,onClick:a,style:i,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},u))};_l.displayName="IconReact",_l.getTwoToneColors=bI,_l.setTwoToneColors=yI;function c8(e){var t=u8(e),r=bt(t,2),n=r[0],a=r[1];return _l.setTwoToneColors({primaryColor:n,secondaryColor:a})}function wI(){var e=_l.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var SI=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];c8("#1890ff");var pn=pe.forwardRef(function(e,t){var r=e.className,n=e.icon,a=e.spin,i=e.rotate,s=e.tabIndex,o=e.onClick,u=e.twoToneColor,l=uo(e,SI),f=pe.useContext(cg),d=f.prefixCls,p=d===void 0?"anticon":d,v=f.rootClassName,_=Qe(v,p,et(et({},"".concat(p,"-").concat(n.name),!!n.name),"".concat(p,"-spin"),!!a||n.name==="loading"),r),x=s;x===void 0&&o&&(x=-1);var w=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,C=u8(u),E=bt(C,2),b=E[0],h=E[1];return pe.createElement("span",Oe(Oe({role:"img","aria-label":n.name},l),{},{ref:t,tabIndex:x,onClick:o,className:_}),pe.createElement(_l,{icon:n,primaryColor:b,secondaryColor:h,style:w}))});pn.displayName="AntdIcon",pn.getTwoToneColor=wI,pn.setTwoToneColor=c8;var EI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 545.5L536.1 163a31.96 31.96 0 00-48.3 0L156 545.5a7.97 7.97 0 006 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"}}]},name:"arrow-up",theme:"outlined"},CI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M682 455V311l-76 76v68c-.1 50.7-42 92.1-94 92a95.8 95.8 0 01-52-15l-54 55c29.1 22.4 65.9 36 106 36 93.8 0 170-75.1 170-168z"}},{tag:"path",attrs:{d:"M833 446h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254-63 0-120.7-23-165-61l-54 54a334.01 334.01 0 00179 81v102H326c-13.9 0-24.9 14.3-25 32v36c.1 4.4 2.9 8 6 8h408c3.2 0 6-3.6 6-8v-36c0-17.7-11-32-25-32H547V782c165.3-17.9 294-157.9 294-328 0-4.4-3.6-8-8-8zm13.1-377.7l-43.5-41.9a8 8 0 00-11.2.1l-129 129C634.3 101.2 577 64 511 64c-93.9 0-170 75.3-170 168v224c0 6.7.4 13.3 1.2 19.8l-68 68A252.33 252.33 0 01258 454c-.2-4.4-3.8-8-8-8h-60c-4.4 0-8 3.6-8 8 0 53 12.5 103 34.6 147.4l-137 137a8.03 8.03 0 000 11.3l42.7 42.7c3.1 3.1 8.2 3.1 11.3 0L846.2 79.8l.1-.1c3.1-3.2 3-8.3-.2-11.4zM417 401V232c0-50.6 41.9-92 94-92 46 0 84.1 32.3 92.3 74.7L417 401z"}}]},name:"audio-muted",theme:"outlined"},kI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M842 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254S258 594.3 258 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 168.7 126.6 307.9 290 327.6V884H326.7c-13.7 0-24.7 14.3-24.7 32v36c0 4.4 2.8 8 6.2 8h407.6c3.4 0 6.2-3.6 6.2-8v-36c0-17.7-11-32-24.7-32H548V782.1c165.3-18 294-158 294-328.1zM512 624c93.9 0 170-75.2 170-168V232c0-92.8-76.1-168-170-168s-170 75.2-170 168v224c0 92.8 76.1 168 170 168zm-94-392c0-50.6 41.9-92 94-92s94 41.4 94 92v224c0 50.6-41.9 92-94 92s-94-41.4-94-92V232z"}}]},name:"audio",theme:"outlined"},TI={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},AI=function(t,r){return pe.createElement(pn,Oe(Oe({},t),{},{ref:r,icon:TI}))},f8=pe.forwardRef(AI);process.env.NODE_ENV!=="production"&&(f8.displayName="CaretDownOutlined");var FI={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"outlined"},OI=function(t,r){return pe.createElement(pn,Oe(Oe({},t),{},{ref:r,icon:FI}))},d8=pe.forwardRef(OI);process.env.NODE_ENV!=="production"&&(d8.displayName="CaretRightOutlined");var PI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},DI=function(t,r){return pe.createElement(pn,Oe(Oe({},t),{},{ref:r,icon:PI}))},h8=pe.forwardRef(DI);process.env.NODE_ENV!=="production"&&(h8.displayName="CheckOutlined");var RI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6a25.95 25.95 0 0025.6 30.4h723c1.5 0 3-.1 4.4-.4a25.88 25.88 0 0021.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z"}}]},name:"clear",theme:"outlined"},II={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},p8={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},NI=function(t,r){return pe.createElement(pn,Oe(Oe({},t),{},{ref:r,icon:p8}))},m8=pe.forwardRef(NI);process.env.NODE_ENV!=="production"&&(m8.displayName="CloseOutlined");var MI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M518.3 459a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V856c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V613.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 459z"}},{tag:"path",attrs:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"}}]},name:"cloud-upload",theme:"outlined"},LI=function(t,r){return pe.createElement(pn,Oe(Oe({},t),{},{ref:r,icon:MI}))},g8=pe.forwardRef(LI);process.env.NODE_ENV!=="production"&&(g8.displayName="CloudUploadOutlined");var BI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},jI=function(t,r){return pe.createElement(pn,Oe(Oe({},t),{},{ref:r,icon:BI}))},v8=pe.forwardRef(jI);process.env.NODE_ENV!=="production"&&(v8.displayName="DownOutlined");var $I={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},UI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM575.34 477.84l-61.22 102.3L452.3 477.8a12 12 0 00-10.27-5.79h-38.44a12 12 0 00-6.4 1.85 12 12 0 00-3.75 16.56l82.34 130.42-83.45 132.78a12 12 0 00-1.84 6.39 12 12 0 0012 12h34.46a12 12 0 0010.21-5.7l62.7-101.47 62.3 101.45a12 12 0 0010.23 5.72h37.48a12 12 0 006.48-1.9 12 12 0 003.62-16.58l-83.83-130.55 85.3-132.47a12 12 0 001.9-6.5 12 12 0 00-12-12h-35.7a12 12 0 00-10.29 5.84z"}}]},name:"file-excel",theme:"filled"},zI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7L639.4 73.4c-6-6-14.2-9.4-22.7-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.6-9.4-22.6zM400 402c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zm296 294H328c-6.7 0-10.4-7.7-6.3-12.9l99.8-127.2a8 8 0 0112.6 0l41.1 52.4 77.8-99.2a8 8 0 0112.6 0l136.5 174c4.3 5.2.5 12.9-6.1 12.9zm-94-370V137.8L790.2 326H602z"}}]},name:"file-image",theme:"filled"},HI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM426.13 600.93l59.11 132.97a16 16 0 0014.62 9.5h24.06a16 16 0 0014.63-9.51l59.1-133.35V758a16 16 0 0016.01 16H641a16 16 0 0016-16V486a16 16 0 00-16-16h-34.75a16 16 0 00-14.67 9.62L512.1 662.2l-79.48-182.59a16 16 0 00-14.67-9.61H383a16 16 0 00-16 16v272a16 16 0 0016 16h27.13a16 16 0 0016-16V600.93z"}}]},name:"file-markdown",theme:"filled"},WI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM633.22 637.26c-15.18-.5-31.32.67-49.65 2.96-24.3-14.99-40.66-35.58-52.28-65.83l1.07-4.38 1.24-5.18c4.3-18.13 6.61-31.36 7.3-44.7.52-10.07-.04-19.36-1.83-27.97-3.3-18.59-16.45-29.46-33.02-30.13-15.45-.63-29.65 8-33.28 21.37-5.91 21.62-2.45 50.07 10.08 98.59-15.96 38.05-37.05 82.66-51.2 107.54-18.89 9.74-33.6 18.6-45.96 28.42-16.3 12.97-26.48 26.3-29.28 40.3-1.36 6.49.69 14.97 5.36 21.92 5.3 7.88 13.28 13 22.85 13.74 24.15 1.87 53.83-23.03 86.6-79.26 3.29-1.1 6.77-2.26 11.02-3.7l11.9-4.02c7.53-2.54 12.99-4.36 18.39-6.11 23.4-7.62 41.1-12.43 57.2-15.17 27.98 14.98 60.32 24.8 82.1 24.8 17.98 0 30.13-9.32 34.52-23.99 3.85-12.88.8-27.82-7.48-36.08-8.56-8.41-24.3-12.43-45.65-13.12zM385.23 765.68v-.36l.13-.34a54.86 54.86 0 015.6-10.76c4.28-6.58 10.17-13.5 17.47-20.87 3.92-3.95 8-7.8 12.79-12.12 1.07-.96 7.91-7.05 9.19-8.25l11.17-10.4-8.12 12.93c-12.32 19.64-23.46 33.78-33 43-3.51 3.4-6.6 5.9-9.1 7.51a16.43 16.43 0 01-2.61 1.42c-.41.17-.77.27-1.13.3a2.2 2.2 0 01-1.12-.15 2.07 2.07 0 01-1.27-1.91zM511.17 547.4l-2.26 4-1.4-4.38c-3.1-9.83-5.38-24.64-6.01-38-.72-15.2.49-24.32 5.29-24.32 6.74 0 9.83 10.8 10.07 27.05.22 14.28-2.03 29.14-5.7 35.65zm-5.81 58.46l1.53-4.05 2.09 3.8c11.69 21.24 26.86 38.96 43.54 51.31l3.6 2.66-4.39.9c-16.33 3.38-31.54 8.46-52.34 16.85 2.17-.88-21.62 8.86-27.64 11.17l-5.25 2.01 2.8-4.88c12.35-21.5 23.76-47.32 36.05-79.77zm157.62 76.26c-7.86 3.1-24.78.33-54.57-12.39l-7.56-3.22 8.2-.6c23.3-1.73 39.8-.45 49.42 3.07 4.1 1.5 6.83 3.39 8.04 5.55a4.64 4.64 0 01-1.36 6.31 6.7 6.7 0 01-2.17 1.28z"}}]},name:"file-pdf",theme:"filled"},VI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM468.53 760v-91.54h59.27c60.57 0 100.2-39.65 100.2-98.12 0-58.22-39.58-98.34-99.98-98.34H424a12 12 0 00-12 12v276a12 12 0 0012 12h32.53a12 12 0 0012-12zm0-139.33h34.9c47.82 0 67.19-12.93 67.19-50.33 0-32.05-18.12-50.12-49.87-50.12h-52.22v100.45z"}}]},name:"file-ppt",theme:"filled"},qI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM320 482a8 8 0 00-8 8v48a8 8 0 008 8h384a8 8 0 008-8v-48a8 8 0 00-8-8H320zm0 136a8 8 0 00-8 8v48a8 8 0 008 8h184a8 8 0 008-8v-48a8 8 0 00-8-8H320z"}}]},name:"file-text",theme:"filled"},GI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM512 566.1l52.81 197a12 12 0 0011.6 8.9h31.77a12 12 0 0011.6-8.88l74.37-276a12 12 0 00.4-3.12 12 12 0 00-12-12h-35.57a12 12 0 00-11.7 9.31l-45.78 199.1-49.76-199.32A12 12 0 00528.1 472h-32.2a12 12 0 00-11.64 9.1L434.6 680.01 388.5 481.3a12 12 0 00-11.68-9.29h-35.39a12 12 0 00-3.11.41 12 12 0 00-8.47 14.7l74.17 276A12 12 0 00415.6 772h31.99a12 12 0 0011.59-8.9l52.81-197z"}}]},name:"file-word",theme:"filled"},YI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM296 136v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm0 64v160h128V584H296zm48 48h32v64h-32v-64z"}}]},name:"file-zip",theme:"filled"},x8={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},XI=function(t,r){return pe.createElement(pn,Oe(Oe({},t),{},{ref:r,icon:x8}))},_8=pe.forwardRef(XI);process.env.NODE_ENV!=="production"&&(_8.displayName="LeftOutlined");var KI={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},ZI=function(t,r){return pe.createElement(pn,Oe(Oe({},t),{},{ref:r,icon:KI}))},vf=pe.forwardRef(ZI);process.env.NODE_ENV!=="production"&&(vf.displayName="LoadingOutlined");var JI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"minus",theme:"outlined"},QI=function(t,r){return pe.createElement(pn,Oe(Oe({},t),{},{ref:r,icon:JI}))},y8=pe.forwardRef(QI);process.env.NODE_ENV!=="production"&&(y8.displayName="MinusOutlined");var eN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},tN=function(t,r){return pe.createElement(pn,Oe(Oe({},t),{},{ref:r,icon:eN}))},b8=pe.forwardRef(tN);process.env.NODE_ENV!=="production"&&(b8.displayName="PaperClipOutlined");var w8={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},rN=function(t,r){return pe.createElement(pn,Oe(Oe({},t),{},{ref:r,icon:w8}))},iv=pe.forwardRef(rN);process.env.NODE_ENV!=="production"&&(iv.displayName="PlusOutlined");var S8={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},nN=function(t,r){return pe.createElement(pn,Oe(Oe({},t),{},{ref:r,icon:S8}))},E8=pe.forwardRef(nN);process.env.NODE_ENV!=="production"&&(E8.displayName="RightOutlined");var aN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},iN=function(t,r){return pe.createElement(pn,Oe(Oe({},t),{},{ref:r,icon:aN}))},yl=pe.forwardRef(iN);process.env.NODE_ENV!=="production"&&(yl.displayName="SearchOutlined");var sN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},oN=function(t,r){return pe.createElement(pn,Oe(Oe({},t),{},{ref:r,icon:sN}))},C8=pe.forwardRef(oN);process.env.NODE_ENV!=="production"&&(C8.displayName="UpOutlined");var uN=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],k8=pe.forwardRef(function(e,t){var r=e.className,n=e.component,a=e.viewBox,i=e.spin,s=e.rotate,o=e.tabIndex,u=e.onClick,l=e.children,f=uo(e,uN);nv(!!(n||l),"Should have `component` prop or `children`."),l8();var d=pe.useContext(cg),p=d.prefixCls,v=p===void 0?"anticon":p,_=d.rootClassName,x=Qe(_,v,r),w=Qe(et({},"".concat(v,"-spin"),!!i)),C=s?{msTransform:"rotate(".concat(s,"deg)"),transform:"rotate(".concat(s,"deg)")}:void 0,E=Oe(Oe({},vI),{},{className:w,style:C,viewBox:a});a||delete E.viewBox;var b=function(){return n?pe.createElement(n,Oe({},E),l):l?(nv(!!a||pe.Children.count(l)===1&&pe.isValidElement(l)&&pe.Children.only(l).type==="use","Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),pe.createElement("svg",Oe(Oe({},E),{},{viewBox:a}),l)):null},h=o;return h===void 0&&u&&(h=-1),pe.createElement("span",Oe(Oe({role:"img"},f),{},{ref:t,tabIndex:h,onClick:u,className:x}),b())});k8.displayName="AntdIcon";var lN=["type","children"],T8=new Set;function cN(e){return!!(typeof e=="string"&&e.length&&!T8.has(e))}function vh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=e[t];if(cN(r)){var n=document.createElement("script");n.setAttribute("src",r),n.setAttribute("data-namespace",r),e.length>t+1&&(n.onload=function(){vh(e,t+1)},n.onerror=function(){vh(e,t+1)}),T8.add(r),document.body.appendChild(n)}}function A8(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.scriptUrl,r=e.extraCommonProps,n=r===void 0?{}:r;t&&typeof document<"u"&&typeof window<"u"&&typeof document.createElement=="function"&&(Array.isArray(t)?vh(t.reverse()):vh([t]));var a=pe.forwardRef(function(i,s){var o=i.type,u=i.children,l=uo(i,lN),f=null;return i.type&&(f=pe.createElement("use",{xlinkHref:"#".concat(o)})),u&&(f=u),pe.createElement(k8,Oe(Oe(Oe({},n),l),{},{ref:s}),f)});return a.displayName="Iconfont",a}const fN=(e="/font/iconfont.js")=>A8({scriptUrl:e}),gt=({...e})=>{var u;const t=U.useContext(sf),r=A8({scriptUrl:t==null?void 0:t.iconScriptUrl}),n=U.useMemo(()=>e.languageApicode,[]),a=U.useMemo(()=>n&&["English"].includes(n)?"10px":"12px",[n]),i=U.useMemo(()=>n&&["English"].includes(n)?"12px":"14px",[n]),s=U.useMemo(()=>typeof e.children=="string"&&/[ \t\n\r]/.test(e.children)?"2":"1",[e.children]),o=e.placement?R.jsxs("div",{className:Qe(e.className,Zn.placementColor,e.disabled&&Zn.classNameDisabled),style:{textAlign:"center",cursor:"pointer",display:"flex",alignItems:"center",background:e.backgroundColor||"",...e.divStyle},onClick:()=>{e.disabled||e.onDivClick&&e.onDivClick()},onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,children:[R.jsx(ue.Badge,{size:"small",count:e.number&&e.number>9?R.jsx("div",{className:Zn.omitPoint,children:"..."}):e.number,children:R.jsx(r,{className:Qe(Zn.AliIconFont,{[Zn.disabled]:e.disabled,disabled:e.disabled},e.placement!="bottom"&&Zn.placementIcon),style:{...Ee.merge({fontSize:"16px",color:`${e.color}`||"",cursor:e.onClick||e.button||e.placement?"pointer":"default"},e.style)},onClick:l=>{e.disabled||e.onClick&&e.onClick(l)},type:t!=null&&t.isOnlyPrefixIcon?`icon-${e.type}`:e.isBackend?`icon-${e.type}`:`icon-front-${e.type}`})}),e.placement=="bottom"?R.jsx("div",{style:{...Ee.merge({textAlign:"center",color:e.color?`${e.color}`:"#fff",fontSize:"12px",marginTop:e.marginTop?`${e.marginTop}`:"5px"})},children:R.jsx("span",{className:Qe(Zn.iconText,{[Zn.disabled]:e.disabled,disabled:e.disabled}),style:{width:(Number((u=e.children)==null?void 0:u.length)%2==0,"initial"),fontSize:a,lineHeight:i,WebkitLineClamp:s},children:e.children})}):R.jsx("span",{className:Qe(Zn.iconText,{[Zn.disabled]:e.disabled,disabled:e.disabled}),children:e.children})]}):R.jsx("div",{children:R.jsx(r,{className:Qe(Zn.AliIconFont,{[Zn.disabled]:e.disabled,disabled:e.disabled},e.className),style:{...Ee.merge({fontSize:"16px",color:`${e.color}`||"",cursor:e.onClick||e.button?"pointer":"default"},e.style)},onClick:l=>{e.disabled||e.onClick&&e.onClick(l)},type:t!=null&&t.isOnlyPrefixIcon?`icon-${e.type}`:e.isBackend?`icon-${e.type}`:`icon-front-${e.type}`})});return e.tooltip?R.jsx(ue.Tooltip,{...e.tooltip,children:o}):e.popover?R.jsx(ue.Popover,{placement:"left",trigger:"click",...e.popover,children:o}):e.button?R.jsx("span",{className:Zn.btn_convider,children:R.jsx(ue.Button,{className:Zn.btn_icon,icon:o,children:e.children})}):o},dN={badge:"_badge_16esh_1"};var xf=(e=>(e.Healthy="Healthy",e.Warning="Warning",e.Delay="Delay",e.Failure="Failure",e))(xf||{});const hN=e=>R.jsx(ue.Badge,{...e,className:`${dN.badge} ${(e==null?void 0:e.className)??""}`});xf.Delay+"",xf.Healthy+"",xf.Warning+"",xf.Failure+"";const fo=e=>ja.isMosaic(e.value)?R.jsx(zi,{}):Ee.isNil(e.value)?R.jsx(R.Fragment,{}):typeof e.value!="string"&&typeof e.value!="number"?e.value?e.value:R.jsx(R.Fragment,{}):R.jsx(fh,{highlightStyle:{color:"#F5325C",backgroundColor:"rgb(0, 0, 0, 0)",padding:0},searchWords:e.highlight||[],autoEscape:!0,textToHighlight:String(e.value)}),F8=e=>{const t=U.useRef(null);return U.useEffect(()=>{e.isFocus&&t.current&&t.current.focus()},[e.isFocus]),R.jsx(ue.Input,{title:e.value==="~#~"?"":e.value,ref:t,...e})},bl=({loadingSize:e=32,...t})=>{const r=R.jsx(vf,{style:{fontSize:e},spin:!0});return t.children?R.jsx(ue.Spin,{...t,indicator:r,children:t.children}):R.jsx("div",{style:{height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:R.jsx(ue.Spin,{spinning:!0,indicator:r})})},pN=e=>R.jsxs("div",{className:"sk-cube-container loading-hidden",children:[R.jsxs("div",{className:"sk-cube-grid",children:[R.jsx("div",{className:"sk-cube sk-cube1"}),R.jsx("div",{className:"sk-cube sk-cube2"}),R.jsx("div",{className:"sk-cube sk-cube3"}),R.jsx("div",{className:"sk-cube sk-cube4"}),R.jsx("div",{className:"sk-cube sk-cube5"}),R.jsx("div",{className:"sk-cube sk-cube6"}),R.jsx("div",{className:"sk-cube sk-cube7"}),R.jsx("div",{className:"sk-cube sk-cube8"}),R.jsx("div",{className:"sk-cube sk-cube9"})]}),R.jsx("div",{className:"sk-cube10",children:e.children||"loading..."})]}),O8={modal_wrapper_loading:"_modal_wrapper_loading_1tlvq_1",global_spin:"_global_spin_1tlvq_15"},mN=e=>e.isSpinning?R.jsx("div",{className:O8.modal_wrapper_loading,children:R.jsx(ue.Spin,{spinning:e.isSpinning,className:O8.global_spin,indicator:R.jsx(vf,{style:{fontSize:48},spin:!0})})}):void 0;var sv={},hi={},P8;function pi(){if(P8)return hi;P8=1,Object.defineProperty(hi,"__esModule",{value:!0}),hi.getBreaksNeededForEmptyLineAfter=hi.getBreaksNeededForEmptyLineBefore=hi.selectWord=hi.getSurroundingWord=void 0;function e(a,i){if(!a)throw Error("Argument 'text' should be truthy");for(var s=function(f){return f===" "||f.charCodeAt(0)===10},o=0,u=a.length,l=i;l-1>-1;l--)if(s(a[l-1])){o=l;break}for(var l=i;l<a.length;l++)if(s(a[l])){u=l;break}return{start:o,end:u}}hi.getSurroundingWord=e;function t(a){var i=a.text,s=a.selection;return i&&i.length&&s.start===s.end?e(i,s.start):s}hi.selectWord=t;function r(a,i){if(a===void 0&&(a=""),i===0)return 0;for(var s=2,o=!0,u=i-1;u>=0&&s>=0;u--)switch(a.charCodeAt(u)){case 32:continue;case 10:s--,o=!1;break;default:return s}return o?0:s}hi.getBreaksNeededForEmptyLineBefore=r;function n(a,i){if(a===void 0&&(a=""),i===a.length-1)return 0;for(var s=2,o=!0,u=i;u<a.length&&s>=0;u++)switch(a.charCodeAt(u)){case 32:continue;case 10:{s--,o=!1;break}default:return s}return o?0:s}return hi.getBreaksNeededForEmptyLineAfter=n,hi}var cu={},_f={},yf={},D8;function wl(){if(D8)return yf;D8=1;/*!
117
+ Copyright (c) 2018 Jed Watson.
118
+ Licensed under the MIT License (MIT), see
119
+ http://jedwatson.github.io/classnames
120
+ */Object.defineProperty(yf,"__esModule",{value:!0}),yf.classNames=void 0;function e(a){return typeof a=="string"}function t(a){return Array.isArray(a)&&a.length>0}function r(a){return typeof a=="object"}function n(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];for(var s=[],o=0;o<a.length;o++){var u=a[o];if(u){if(e(u))s.push(u);else if(t(u)){var l=n.apply(null,u);l&&s.push(l)}else if(r(u))for(var f in u)u.hasOwnProperty(f)&&u[f]&&s.push(f)}}return s.join(" ")}return yf.classNames=n,yf}var R8;function I8(){if(R8)return _f;R8=1,Object.defineProperty(_f,"__esModule",{value:!0}),_f.ToolbarButtonGroup=void 0;var e=U,t=wl(),r=function(n){return e.createElement("ul",{className:t.classNames("mde-header-group",{hidden:n.hidden})},n.children)};return _f.ToolbarButtonGroup=r,_f}var fu={},N8;function M8(){if(N8)return fu;N8=1;var e=fu&&fu.__assign||function(){return e=Object.assign||function(a){for(var i,s=1,o=arguments.length;s<o;s++){i=arguments[s];for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(a[u]=i[u])}return a},e.apply(this,arguments)};Object.defineProperty(fu,"__esModule",{value:!0}),fu.ToolbarButton=void 0;var t=U,r={tabIndex:-1},n=function(a){var i=a.buttonComponentClass,s=a.buttonContent,o=a.buttonProps,u=a.onClick,l=a.readOnly,f=a.name,d=e(e({},r),o||{}),p=i||"button";return t.createElement("li",{className:"mde-header-item"},t.createElement(p,e(e({"data-name":f},d),{onClick:u,disabled:l,type:"button"}),s))};return fu.ToolbarButton=n,fu}var bf={},L8;function B8(){if(L8)return bf;L8=1,Object.defineProperty(bf,"__esModule",{value:!0}),bf.MdeFontAwesomeIcon=void 0;var e=U,t=function(r){var n=r.icon,a=n;switch(n){case"header":a="heading";break;case"quote":a="quote-right";break;case"unordered-list":a="tasks";break;case"ordered-list":a="list-ol";break;case"checked-list":a="tasks";break;default:a=n}return e.createElement("i",{className:"fas fa-"+a,"aria-hidden":"true"})};return bf.MdeFontAwesomeIcon=t,bf}var du={},j8;function gN(){if(j8)return du;j8=1;var e=du&&du.__extends||function(){var a=function(i,s){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,u){o.__proto__=u}||function(o,u){for(var l in u)Object.prototype.hasOwnProperty.call(u,l)&&(o[l]=u[l])},a(i,s)};return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");a(i,s);function o(){this.constructor=i}i.prototype=s===null?Object.create(s):(o.prototype=s.prototype,new o)}}();Object.defineProperty(du,"__esModule",{value:!0}),du.Preview=void 0;var t=U,r=wl(),n=function(a){e(i,a);function i(s){var o=a.call(this,s)||this;return o.state={loading:!0},o}return i.prototype.componentDidMount=function(){this.generatePreview()},i.prototype.componentDidUpdate=function(s,o){this.props.markdown!==s.markdown&&this.generatePreview()},i.prototype.generatePreview=function(){var s=this,o=this.props,u=o.markdown,l=o.generateMarkdownPreview;l(u).then(function(f){s.setState({preview:f,loading:!1})})},i.prototype.render=function(){var s=this.props,o=s.classes,u=s.minHeight,l=s.loadingPreview,f=s.refObject,d=s.heightUnits,p=this.state,v=p.preview,_=p.loading,x=_?l:v,w;typeof x=="string"?w=t.createElement("div",{className:"mde-preview-content",dangerouslySetInnerHTML:{__html:x||"<p>&nbsp;</p>"},ref:f}):w=t.createElement("div",{className:"mde-preview-content"},x);var C=u&&d?u+10+d:u+10;return t.createElement("div",{className:r.classNames("mde-preview",o,{loading:_}),style:{minHeight:C},"data-testid":"mde-preview"},w)},i}(t.Component);return du.Preview=n,du}var _s={},wf={},$8;function vN(){if($8)return wf;$8=1,Object.defineProperty(wf,"__esModule",{value:!0}),wf.getCaretCoordinates=void 0;var e=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"],t=typeof window<"u",r=t&&window.mozInnerScreenX!=null;function n(a,i){if(!t)throw new Error("getCaretCoordinates should only be called in a browser");var s=document.createElement("div");s.id="input-textarea-caret-position-mirror-div",document.body.appendChild(s);var o=s.style,u=window.getComputedStyle?window.getComputedStyle(a):a.currentStyle;o.whiteSpace="pre-wrap",o.wordWrap="break-word",o.position="absolute",o.visibility="hidden",e.forEach(function(d){o[d]=u[d]}),r?a.scrollHeight>parseInt(u.height)&&(o.overflowY="scroll"):o.overflow="hidden",s.textContent=a.value.substring(0,a.selectionStart),i&&(s.textContent+=i);var l=document.createElement("span");l.textContent=a.value.substring(a.selectionEnd)||".",s.appendChild(l);var f={top:l.offsetTop+parseInt(u.borderTopWidth),left:l.offsetLeft+parseInt(u.borderLeftWidth),lineHeight:parseInt(u.lineHeight)};return document.body.removeChild(s),f}return wf.getCaretCoordinates=n,wf}var Sf={},U8;function z8(){if(U8)return Sf;U8=1;/*!
121
+ * The MIT License
122
+ Copyright (c) 2018 Dmitriy Kubyshkin
123
+ Copied from https://github.com/grassator/insert-text-at-cursor
124
+ */Object.defineProperty(Sf,"__esModule",{value:!0}),Sf.insertText=void 0;function e(r,n){if(r.focus(),document.selection){var a=document.selection.createRange();a.text=n,a.collapse(!1),a.select();return}var i=document.execCommand("insertText",!1,n);if(!i){var s=r.selectionStart,o=r.selectionEnd;if(typeof r.setRangeText=="function")r.setRangeText(n);else if(t(r)){var u=document.createTextNode(n),l=r.firstChild;if(!l)r.appendChild(u);else{for(var f=0,d=null,p=null,v=document.createRange();l&&(d===null||p===null);){var _=l.nodeValue.length;s>=f&&s<=f+_&&v.setStart(d=l,s-f),o>=f&&o<=f+_&&v.setEnd(p=l,o-f),f+=_,l=l.nextSibling}s!==o&&v.deleteContents(),v.insertNode(u)}}else{var x=r.value;r.value=x.slice(0,s)+n+x.slice(o)}r.setSelectionRange(s+n.length,s+n.length);var w=document.createEvent("UIEvent");w.initEvent("input",!0,!1),r.dispatchEvent(w)}}Sf.insertText=e;function t(r){if(r.nodeName!=="TEXTAREA")return!1;var n;if(typeof n>"u"){var a=document.createElement("textarea");a.value="1",n=!!a.firstChild}return n}return Sf}var Ef={},H8;function xN(){if(H8)return Ef;H8=1,Object.defineProperty(Ef,"__esModule",{value:!0}),Ef.mod=void 0;function e(t,r){return(t%r+r)%r}return Ef.mod=e,Ef}var Cf={},W8;function V8(){if(W8)return Cf;W8=1,Object.defineProperty(Cf,"__esModule",{value:!0}),Cf.SuggestionsDropdown=void 0;var e=U,t=wl(),r=function(n){var a=n.classes,i=n.suggestions,s=n.caret,o=n.onSuggestionSelected,u=n.suggestionsAutoplace,l=n.focusIndex,f=n.textAreaRef,d=function(E){E.preventDefault();var b=parseInt(E.currentTarget.attributes["data-index"].value);o(b)},p=function(E){return E.preventDefault()},v=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),_=Math.max(document.documentElement.clientHeight||0,window.innerHeight||0),x=s.left-f.current.scrollLeft,w=s.top-f.current.scrollTop,C={};return u&&w+f.current.getBoundingClientRect().top>_/2?C.bottom=f.current.offsetHeight-w:C.top=w,u&&x+f.current.getBoundingClientRect().left>v/2?C.right=f.current.offsetWidth-x:C.left=x,e.createElement("ul",{className:t.classNames("mde-suggestions",a),style:C},i.map(function(E,b){return e.createElement("li",{onClick:d,onMouseDown:p,key:b,"aria-selected":l===b?"true":"false","data-index":""+b},E.preview)}))};return Cf.SuggestionsDropdown=r,Cf}var q8;function _N(){if(q8)return _s;q8=1;var e=_s&&_s.__extends||function(){var l=function(f,d){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,v){p.__proto__=v}||function(p,v){for(var _ in v)Object.prototype.hasOwnProperty.call(v,_)&&(p[_]=v[_])},l(f,d)};return function(f,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");l(f,d);function p(){this.constructor=f}f.prototype=d===null?Object.create(d):(p.prototype=d.prototype,new p)}}(),t=_s&&_s.__assign||function(){return t=Object.assign||function(l){for(var f,d=1,p=arguments.length;d<p;d++){f=arguments[d];for(var v in f)Object.prototype.hasOwnProperty.call(f,v)&&(l[v]=f[v])}return l},t.apply(this,arguments)};Object.defineProperty(_s,"__esModule",{value:!0}),_s.TextArea=void 0;var r=U,n=wl(),a=vN(),i=z8(),s=xN(),o=V8(),u=function(l){e(f,l);function f(d){var p=l.call(this,d)||this;return p.currentLoadSuggestionsPromise=Promise.resolve(void 0),p.suggestionsPromiseIndex=0,p.getTextArea=function(){return p.props.refObject.current},p.handleOnChange=function(v){var _=p.props.onChange;_(v.target.value)},p.handleBlur=function(){var v=p.state.mention;v&&p.setState({mention:{status:"inactive",suggestions:[]}})},p.startLoadingSuggestions=function(v){var _=++p.suggestionsPromiseIndex,x=p.props.loadSuggestions;p.currentLoadSuggestionsPromise=p.currentLoadSuggestionsPromise.then(function(){return x(v,p.state.mention.triggeredBy)}).then(function(w){if(p.state.mention.status!=="inactive")return p.suggestionsPromiseIndex===_&&(!w||!w.length?p.setState({mention:{status:"inactive",suggestions:[]}}):p.setState({mention:t(t({},p.state.mention),{status:"active",suggestions:w,focusIndex:0})}),p.suggestionsPromiseIndex=0),Promise.resolve()})},p.loadEmptySuggestion=function(v,_){var x=a.getCaretCoordinates(v,_);p.startLoadingSuggestions(""),p.setState({mention:{status:"loading",startPosition:v.selectionStart+1,caret:x,suggestions:[],triggeredBy:_}})},p.handleSuggestionSelected=function(v){var _=p.state.mention;p.getTextArea().selectionStart=_.startPosition-1,p.props.value.substr(p.getTextArea().selectionStart,p.getTextArea().selectionEnd-p.getTextArea().selectionStart),i.insertText(p.getTextArea(),_.suggestions[v].value+" "),p.setState({mention:{status:"inactive",suggestions:[]}})},p.handleKeyDown=function(v){if(p.props.onPossibleKeyCommand){var _=p.props.onPossibleKeyCommand(v);if(_){v.preventDefault(),p.suggestionsPromiseIndex=0,p.setState({mention:{status:"inactive",suggestions:[]}});return}}if(p.suggestionsEnabled()){var x=v.key,w=v.shiftKey,C=v.currentTarget,E=C.selectionStart,b=p.state.mention;switch(b.status){case"loading":case"active":if(x==="Escape"||x==="Backspace"&&E<=p.state.mention.startPosition)p.suggestionsPromiseIndex=0,p.setState({mention:{status:"inactive",suggestions:[]}});else if(b.status==="active"&&(x==="ArrowUp"||x==="ArrowDown")&&!w){v.preventDefault();var h=x==="ArrowUp"?-1:1;p.setState({mention:t(t({},b),{focusIndex:s.mod(b.focusIndex+h,b.suggestions.length)})})}else x==="Enter"&&b.status==="active"&&b.suggestions.length&&(v.preventDefault(),p.handleSuggestionSelected(b.focusIndex));break}}},p.handleKeyUp=function(v){var _=v.key,x=p.state.mention,w=p.props,C=w.suggestionTriggerCharacters,E=w.value;switch(x.status){case"loading":case"active":if(_==="Backspace"){var b=E.substr(x.startPosition,p.getTextArea().selectionStart-x.startPosition);p.startLoadingSuggestions(b),x.status!=="loading"&&p.setState({mention:t(t({},p.state.mention),{status:"loading"})})}break;case"inactive":if(_==="Backspace"){var h=E.charAt(p.getTextArea().selectionStart-1),g=C.includes(E.charAt(p.getTextArea().selectionStart-1));g&&p.loadEmptySuggestion(v.currentTarget,h)}break}},p.handleKeyPress=function(v){var _=p.props,x=_.suggestionTriggerCharacters,w=_.value,C=p.state.mention,E=v.key;switch(C.status){case"loading":case"active":if(E===" "){p.setState({mention:t(t({},p.state.mention),{status:"inactive"})});return}var b=w.substr(C.startPosition,p.getTextArea().selectionStart-C.startPosition)+E;p.startLoadingSuggestions(b),C.status!=="loading"&&p.setState({mention:t(t({},p.state.mention),{status:"loading"})});break;case"inactive":if(x.indexOf(v.key)===-1||!/\s|\(|\[|^.{0}$/.test(w.charAt(p.getTextArea().selectionStart-1)))return;p.loadEmptySuggestion(v.currentTarget,v.key);break}},p.state={mention:{status:"inactive",suggestions:[]}},p}return f.prototype.suggestionsEnabled=function(){return this.props.suggestionTriggerCharacters&&this.props.suggestionTriggerCharacters.length&&this.props.loadSuggestions},f.prototype.render=function(){var d=this,p=this.props,v=p.classes,_=p.readOnly,x=p.textAreaProps,w=p.height,C=p.heightUnits,E=p.value,b=p.suggestionTriggerCharacters,h=p.loadSuggestions,g=p.suggestionsDropdownClasses,y=p.textAreaComponent,S=p.onPaste,A=p.onDrop,k=b&&b.length&&h,F=this.state.mention,P=y||"textarea",j=w&&C?w+C:w;return r.createElement("div",{className:"mde-textarea-wrapper"},r.createElement(P,t({className:n.classNames("mde-text",v),style:{height:j},ref:this.props.refObject,readOnly:_,value:E,"data-testid":"text-area"},x,{onChange:function(N){var I;(I=x==null?void 0:x.onChange)===null||I===void 0||I.call(x,N),d.handleOnChange(N)},onBlur:function(N){var I;(I=x==null?void 0:x.onBlur)===null||I===void 0||I.call(x,N),k&&d.handleBlur()},onKeyDown:function(N){var I;(I=x==null?void 0:x.onKeyDown)===null||I===void 0||I.call(x,N),d.handleKeyDown(N)},onKeyUp:function(N){var I;(I=x==null?void 0:x.onKeyUp)===null||I===void 0||I.call(x,N),k&&d.handleKeyUp(N)},onKeyPress:function(N){var I;(I=x==null?void 0:x.onKeyPress)===null||I===void 0||I.call(x,N),k&&d.handleKeyPress(N)},onPaste:function(N){var I;(I=x==null?void 0:x.onPaste)===null||I===void 0||I.call(x,N),S(N)},onDragOver:function(N){N.preventDefault(),N.stopPropagation()},onDrop:function(N){var I;(I=x==null?void 0:x.onDrop)===null||I===void 0||I.call(x,N),A(N),N.preventDefault()}})),F.status==="active"&&F.suggestions.length&&r.createElement(o.SuggestionsDropdown,{classes:g,caret:F.caret,suggestions:F.suggestions,onSuggestionSelected:this.handleSuggestionSelected,suggestionsAutoplace:this.props.suggestionsAutoplace,focusIndex:F.focusIndex,textAreaRef:this.props.refObject}))},f}(r.Component);return _s.TextArea=u,_s}var ys={},G8;function yN(){if(G8)return ys;G8=1;var e=ys&&ys.__extends||function(){var o=function(u,l){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,d){f.__proto__=d}||function(f,d){for(var p in d)Object.prototype.hasOwnProperty.call(d,p)&&(f[p]=d[p])},o(u,l)};return function(u,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");o(u,l);function f(){this.constructor=u}u.prototype=l===null?Object.create(l):(f.prototype=l.prototype,new f)}}(),t=ys&&ys.__assign||function(){return t=Object.assign||function(o){for(var u,l=1,f=arguments.length;l<f;l++){u=arguments[l];for(var d in u)Object.prototype.hasOwnProperty.call(u,d)&&(o[d]=u[d])}return o},t.apply(this,arguments)};Object.defineProperty(ys,"__esModule",{value:!0}),ys.Toolbar=void 0;var r=U,n=wl(),a=I8(),i=M8(),s=function(o){e(u,o);function u(){var l=o!==null&&o.apply(this,arguments)||this;return l.handleTabChange=function(f){var d=l.props.onTabChange;d(f)},l}return u.prototype.render=function(){var l=this,f=this.props.l18n,d=this.props,p=d.classes,v=d.children,_=d.buttons,x=d.onCommand,w=d.readOnly,C=d.disablePreview,E=d.writeButtonProps,b=d.previewButtonProps,h=d.buttonProps;if((!_||_.length===0)&&!v)return null;var g=r.createElement("div",{className:"mde-tabs"},r.createElement("button",t({type:"button",className:n.classNames({selected:this.props.tab==="write"}),onClick:function(){return l.handleTabChange("write")}},E),f.write),r.createElement("button",t({type:"button",className:n.classNames({selected:this.props.tab==="preview"}),onClick:function(){return l.handleTabChange("preview")}},b),f.preview));return r.createElement("div",{className:n.classNames("mde-header",p)},!C&&g,_.map(function(y,S){return r.createElement(a.ToolbarButtonGroup,{key:S,hidden:l.props.tab==="preview"},y.map(function(A,k){return r.createElement(i.ToolbarButton,{key:k,name:A.commandName,buttonContent:A.buttonContent,buttonProps:t(t({},h||{}),A.buttonProps),onClick:function(){return x(A.commandName)},readOnly:w,buttonComponentClass:A.buttonComponentClass})}))}))},u}(r.Component);return ys.Toolbar=s,ys}var ha={},bs={},kf={},Y8;function bN(){if(Y8)return kf;Y8=1,Object.defineProperty(kf,"__esModule",{value:!0}),kf.headerCommand=void 0;var e=pi();function t(r,n,a){var i=e.selectWord({text:r.text,selection:r.selection}),s=n.setSelectionRange(i),o=n.replaceSelection(""+a+s.selectedText);n.setSelectionRange({start:o.selection.end-s.selectedText.length,end:o.selection.end})}return kf.headerCommand={buttonProps:{"aria-label":"Add header"},execute:function(r){var n=r.initialState,a=r.textApi;t(n,a,"### ")}},kf}var Tf={},X8;function wN(){if(X8)return Tf;X8=1,Object.defineProperty(Tf,"__esModule",{value:!0}),Tf.boldCommand=void 0;var e=pi();return Tf.boldCommand={buttonProps:{"aria-label":"Add bold text"},execute:function(t){var r=t.initialState,n=t.textApi,a=e.selectWord({text:r.text,selection:r.selection}),i=n.setSelectionRange(a),s=n.replaceSelection("**"+i.selectedText+"**");n.setSelectionRange({start:s.selection.end-2-i.selectedText.length,end:s.selection.end-2})},handleKeyCommand:function(t){return(t.ctrlKey||t.metaKey)&&t.key=="b"}},Tf}var Af={},K8;function SN(){if(K8)return Af;K8=1,Object.defineProperty(Af,"__esModule",{value:!0}),Af.italicCommand=void 0;var e=pi();return Af.italicCommand={buttonProps:{"aria-label":"Add italic text"},execute:function(t){var r=t.initialState,n=t.textApi,a=e.selectWord({text:r.text,selection:r.selection}),i=n.setSelectionRange(a),s=n.replaceSelection("*"+i.selectedText+"*");n.setSelectionRange({start:s.selection.end-1-i.selectedText.length,end:s.selection.end-1})},handleKeyCommand:function(t){return(t.ctrlKey||t.metaKey)&&t.key=="i"}},Af}var Ff={},Z8;function EN(){if(Z8)return Ff;Z8=1,Object.defineProperty(Ff,"__esModule",{value:!0}),Ff.strikeThroughCommand=void 0;var e=pi();return Ff.strikeThroughCommand={buttonProps:{"aria-label":"Add strikethrough text"},execute:function(t){var r=t.initialState,n=t.textApi,a=e.selectWord({text:r.text,selection:r.selection}),i=n.setSelectionRange(a),s=n.replaceSelection("~~"+i.selectedText+"~~");n.setSelectionRange({start:s.selection.end-2-i.selectedText.length,end:s.selection.end-2})}},Ff}var Of={},J8;function CN(){if(J8)return Of;J8=1,Object.defineProperty(Of,"__esModule",{value:!0}),Of.linkCommand=void 0;var e=pi();return Of.linkCommand={buttonProps:{"aria-label":"Add a link"},execute:function(t){var r=t.initialState,n=t.textApi,a=e.selectWord({text:r.text,selection:r.selection}),i=n.setSelectionRange(a),s=n.replaceSelection("["+i.selectedText+"](url)");n.setSelectionRange({start:s.selection.end-6-i.selectedText.length,end:s.selection.end-6})},handleKeyCommand:function(t){return(t.ctrlKey||t.metaKey)&&t.key=="k"}},Of}var Pf={},Q8;function kN(){if(Q8)return Pf;Q8=1,Object.defineProperty(Pf,"__esModule",{value:!0}),Pf.quoteCommand=void 0;var e=pi();return Pf.quoteCommand={buttonProps:{"aria-label":"Insert a quote"},execute:function(t){var r=t.initialState,n=t.textApi,a=e.selectWord({text:r.text,selection:r.selection}),i=n.setSelectionRange(a),s=e.getBreaksNeededForEmptyLineBefore(i.text,i.selection.start),o=Array(s+1).join(`
125
+ `),u=e.getBreaksNeededForEmptyLineAfter(i.text,i.selection.end),l=Array(u+1).join(`
126
+ `);n.replaceSelection(o+"> "+i.selectedText+l);var f=i.selection.start+s+2,d=f+i.selectedText.length;n.setSelectionRange({start:f,end:d})}},Pf}var Df={},e4;function TN(){if(e4)return Df;e4=1,Object.defineProperty(Df,"__esModule",{value:!0}),Df.codeCommand=void 0;var e=pi();return Df.codeCommand={buttonProps:{"aria-label":"Insert code"},execute:function(t){var r=t.initialState,n=t.textApi,a=e.selectWord({text:r.text,selection:r.selection}),i=n.setSelectionRange(a);if(i.selectedText.indexOf(`
127
+ `)===-1){n.replaceSelection("`"+i.selectedText+"`");var s=i.selection.start+1,o=s+i.selectedText.length;n.setSelectionRange({start:s,end:o});return}var u=e.getBreaksNeededForEmptyLineBefore(i.text,i.selection.start),l=Array(u+1).join(`
128
+ `),f=e.getBreaksNeededForEmptyLineAfter(i.text,i.selection.end),d=Array(f+1).join(`
129
+ `);n.replaceSelection(l+"```\n"+i.selectedText+"\n```"+d);var p=i.selection.start+u+4,v=p+i.selectedText.length;n.setSelectionRange({start:p,end:v})}},Df}var ov={},t4;function AN(){return t4||(t4=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.checkedListCommand=e.orderedListCommand=e.unorderedListCommand=e.makeList=e.insertBeforeEachLine=void 0;var t=pi();function r(a,i){var s=a.split(/\n/),o=0,u=s.map(function(l,f){if(typeof i=="string")return o+=i.length,i+l;if(typeof i=="function"){var d=i(l,f);return o+=d.length,i(l,f)+l}throw Error("insertion is expected to be either a string or a function")}).join(`
130
+ `);return{modifiedText:u,insertionLength:o}}e.insertBeforeEachLine=r;var n=function(a,i,s){var o=t.selectWord({text:a.text,selection:a.selection}),u=i.setSelectionRange(o),l=t.getBreaksNeededForEmptyLineBefore(u.text,u.selection.start),f=Array(l+1).join(`
131
+ `),d=t.getBreaksNeededForEmptyLineAfter(u.text,u.selection.end),p=Array(d+1).join(`
132
+ `),v=r(u.selectedText,s);i.replaceSelection(""+f+v.modifiedText+p);var _=u.selectedText.indexOf(`
133
+ `)===-1?v.insertionLength:0,x=u.selection.start+l+_,w=x+v.modifiedText.length-_;i.setSelectionRange({start:x,end:w})};e.makeList=n,e.unorderedListCommand={buttonProps:{"aria-label":"Add unordered list"},execute:function(a){var i=a.initialState,s=a.textApi;e.makeList(i,s,"- ")}},e.orderedListCommand={buttonProps:{"aria-label":"Add ordered list"},execute:function(a){var i=a.initialState,s=a.textApi;e.makeList(i,s,function(o,u){return u+1+". "})}},e.checkedListCommand={buttonProps:{"aria-label":"Add checked list"},execute:function(a){var i=a.initialState,s=a.textApi;e.makeList(i,s,function(o,u){return"- [ ] "})}}}(ov)),ov}var Rf={},r4;function FN(){if(r4)return Rf;r4=1,Object.defineProperty(Rf,"__esModule",{value:!0}),Rf.imageCommand=void 0;var e=pi();return Rf.imageCommand={buttonProps:{"aria-label":"Add image"},execute:function(t){var r=t.initialState,n=t.textApi,a=n.setSelectionRange(e.selectWord({text:r.text,selection:r.selection})),i=a.selectedText||"https://example.com/your-image.png";n.replaceSelection("![]("+i+")"),n.setSelectionRange({start:a.selection.start+4,end:a.selection.start+4+i.length})}},Rf}var ws={},Ss={},n4;function ON(){if(n4)return Ss;n4=1;var e=Ss&&Ss.__awaiter||function(n,a,i,s){function o(u){return u instanceof i?u:new i(function(l){l(u)})}return new(i||(i=Promise))(function(u,l){function f(v){try{p(s.next(v))}catch(_){l(_)}}function d(v){try{p(s.throw(v))}catch(_){l(_)}}function p(v){v.done?u(v.value):o(v.value).then(f,d)}p((s=s.apply(n,a||[])).next())})},t=Ss&&Ss.__generator||function(n,a){var i={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},s,o,u,l;return l={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function f(p){return function(v){return d([p,v])}}function d(p){if(s)throw new TypeError("Generator is already executing.");for(;i;)try{if(s=1,o&&(u=p[0]&2?o.return:p[0]?o.throw||((u=o.return)&&u.call(o),0):o.next)&&!(u=u.call(o,p[1])).done)return u;switch(o=0,u&&(p=[p[0]&2,u.value]),p[0]){case 0:case 1:u=p;break;case 4:return i.label++,{value:p[1],done:!1};case 5:i.label++,o=p[1],p=[0];continue;case 7:p=i.ops.pop(),i.trys.pop();continue;default:if(u=i.trys,!(u=u.length>0&&u[u.length-1])&&(p[0]===6||p[0]===2)){i=0;continue}if(p[0]===3&&(!u||p[1]>u[0]&&p[1]<u[3])){i.label=p[1];break}if(p[0]===6&&i.label<u[1]){i.label=u[1],u=p;break}if(u&&i.label<u[2]){i.label=u[2],i.ops.push(p);break}u[2]&&i.ops.pop(),i.trys.pop();continue}p=a.call(n,i)}catch(v){p=[6,v],o=0}finally{s=u=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}};Object.defineProperty(Ss,"__esModule",{value:!0}),Ss.readFileAsync=void 0;function r(n){return e(this,void 0,void 0,function(){return t(this,function(a){return[2,new Promise(function(i,s){var o=new FileReader;o.onload=function(){if(typeof o.result=="string")throw new Error("reader.result is expected to be an ArrayBuffer");i(o.result)},o.onerror=s,o.readAsArrayBuffer(n)})]})})}return Ss.readFileAsync=r,Ss}var a4;function PN(){if(a4)return ws;a4=1;var e=ws&&ws.__awaiter||function(l,f,d,p){function v(_){return _ instanceof d?_:new d(function(x){x(_)})}return new(d||(d=Promise))(function(_,x){function w(b){try{E(p.next(b))}catch(h){x(h)}}function C(b){try{E(p.throw(b))}catch(h){x(h)}}function E(b){b.done?_(b.value):v(b.value).then(w,C)}E((p=p.apply(l,f||[])).next())})},t=ws&&ws.__generator||function(l,f){var d={label:0,sent:function(){if(_[0]&1)throw _[1];return _[1]},trys:[],ops:[]},p,v,_,x;return x={next:w(0),throw:w(1),return:w(2)},typeof Symbol=="function"&&(x[Symbol.iterator]=function(){return this}),x;function w(E){return function(b){return C([E,b])}}function C(E){if(p)throw new TypeError("Generator is already executing.");for(;d;)try{if(p=1,v&&(_=E[0]&2?v.return:E[0]?v.throw||((_=v.return)&&_.call(v),0):v.next)&&!(_=_.call(v,E[1])).done)return _;switch(v=0,_&&(E=[E[0]&2,_.value]),E[0]){case 0:case 1:_=E;break;case 4:return d.label++,{value:E[1],done:!1};case 5:d.label++,v=E[1],E=[0];continue;case 7:E=d.ops.pop(),d.trys.pop();continue;default:if(_=d.trys,!(_=_.length>0&&_[_.length-1])&&(E[0]===6||E[0]===2)){d=0;continue}if(E[0]===3&&(!_||E[1]>_[0]&&E[1]<_[3])){d.label=E[1];break}if(E[0]===6&&d.label<_[1]){d.label=_[1],_=E;break}if(_&&d.label<_[2]){d.label=_[2],d.ops.push(E);break}_[2]&&d.ops.pop(),d.trys.pop();continue}E=f.call(l,d)}catch(b){E=[6,b],v=0}finally{p=_=0}if(E[0]&5)throw E[1];return{value:E[0]?E[1]:void 0,done:!0}}};Object.defineProperty(ws,"__esModule",{value:!0}),ws.saveImageCommand=void 0;var r=ON(),n=pi();function a(l){var f=[];for(var d in l){var p=l[d];p.kind==="file"&&f.push(p.getAsFile())}return f}function i(l){for(var f=[],d=0;d<l.length;d++)f.push(l[0]);return f}function s(l,f){var d=f.multiple,p=f.accept,v=l;if(d||(v=v.slice(0,1)),p){var _=p.split(","),x=new Set(_.filter(function(E){return/^\.\w+/.test(E)}).map(function(E){return E.split(".")[1]})),w=new Set(_.filter(function(E){return/^[-\w.]+\/[-\w.]+$/.test(E)})),C=new Set(_.filter(function(E){return/(audio|video|image)\/\*/.test(E)}).map(function(E){return E.split("/")[0]}));v=v.filter(function(E){return x.has(E.name.split(".")[1])||w.has(E.type)||C.has(E.type.split("/")[0])})}return v}ws.saveImageCommand={execute:function(l){l.initialState;var f=l.textApi,d=l.context,p=l.l18n;return e(this,void 0,void 0,function(){var v,_,x,w,C,E,b,h,g,y,S,A,k,F,P,j,N,I,B,O,M,V,L,W;return t(this,function(G){switch(G.label){case 0:if(!d)throw new Error("wrong context");v=d,_=v.event,x=v.pasteOptions,w=x.saveImage,C=x.multiple,E=x.accept,b=o(d)?a(_.clipboardData.items):u(d)?a(_.dataTransfer.items):i(_.target.files),h=s(b,{multiple:C,accept:E}),g=[];for(y in h)g.push(y);S=0,G.label=1;case 1:return S<g.length?(A=g[S],k=f.getState(),F=n.getBreaksNeededForEmptyLineBefore(k.text,k.selection.start),P=Array(F+1).join(`
134
+ `),j=P+"!["+p.uploadingImage+"]()",f.replaceSelection(j),N=b[A],[4,r.readFileAsync(N)]):[3,5];case 2:return I=G.sent(),B=w(I,N),[4,B.next()];case 3:O=G.sent().value,M=f.getState(),V=M.text.substr(k.selection.start,j.length),V===j&&(f.setSelectionRange({start:k.selection.start,end:k.selection.start+j.length}),L=O?P+"![image]("+O+")":"",W=L.length-j.length,f.replaceSelection(L),f.setSelectionRange({start:M.selection.start+W,end:M.selection.end+W})),G.label=4;case 4:return S++,[3,1];case 5:return[2]}})})}};function o(l){return l.event.clipboardData!==void 0}function u(l){return l.event.dataTransfer!==void 0}return ws}var i4;function uv(){if(i4)return bs;i4=1,Object.defineProperty(bs,"__esModule",{value:!0}),bs.getDefaultSaveImageCommandName=bs.getDefaultCommandMap=bs.getDefaultToolbarCommands=void 0;var e=bN(),t=wN(),r=SN(),n=EN(),a=CN(),i=kN(),s=TN(),o=AN(),u=FN(),l=PN();function f(){return[["header","bold","italic","strikethrough"],["link","quote","code","image"],["unordered-list","ordered-list","checked-list"]]}bs.getDefaultToolbarCommands=f;function d(){return{header:e.headerCommand,bold:t.boldCommand,italic:r.italicCommand,strikethrough:n.strikeThroughCommand,link:a.linkCommand,quote:i.quoteCommand,code:s.codeCommand,image:u.imageCommand,"unordered-list":o.unorderedListCommand,"ordered-list":o.orderedListCommand,"checked-list":o.checkedListCommand,"save-image":l.saveImageCommand}}bs.getDefaultCommandMap=d;function p(){return"save-image"}return bs.getDefaultSaveImageCommandName=p,bs}var If={},s4;function DN(){return s4||(s4=1,Object.defineProperty(If,"__esModule",{value:!0}),If.enL18n=void 0,If.enL18n={write:"Write",preview:"Preview",uploadingImage:"Uploading image...",pasteDropSelect:"Attach files by dragging & dropping, selecting or pasting them."}),If}var hu={},Nf={},o4;function RN(){if(o4)return Nf;o4=1,Object.defineProperty(Nf,"__esModule",{value:!0}),Nf.SvgIcon=void 0;var e=U,t=e.createElement("svg",{className:"svg-icon","aria-hidden":"true","data-prefix":"fas","data-icon":"tasks",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512","data-fa-i2svg":""},e.createElement("path",{fill:"currentColor",d:"M208 132h288c8.8 0 16-7.2 16-16V76c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zm0 160h288c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zm0 160h288c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zM64 368c-26.5 0-48.6 21.5-48.6 48s22.1 48 48.6 48 48-21.5 48-48-21.5-48-48-48zm92.5-299l-72.2 72.2-15.6 15.6c-4.7 4.7-12.9 4.7-17.6 0L3.5 109.4c-4.7-4.7-4.7-12.3 0-17l15.7-15.7c4.7-4.7 12.3-4.7 17 0l22.7 22.1 63.7-63.3c4.7-4.7 12.3-4.7 17 0l17 16.5c4.6 4.7 4.6 12.3-.1 17zm0 159.6l-72.2 72.2-15.7 15.7c-4.7 4.7-12.9 4.7-17.6 0L3.5 269c-4.7-4.7-4.7-12.3 0-17l15.7-15.7c4.7-4.7 12.3-4.7 17 0l22.7 22.1 63.7-63.7c4.7-4.7 12.3-4.7 17 0l17 17c4.6 4.6 4.6 12.2-.1 16.9z"})),r=e.createElement("svg",{className:"svg-icon","aria-hidden":"true","data-prefix":"fas","data-icon":"list-ol",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512","data-fa-i2svg":""},e.createElement("path",{fill:"currentColor",d:"M3.263 139.527c0-7.477 3.917-11.572 11.573-11.572h15.131V88.078c0-5.163.534-10.503.534-10.503h-.356s-1.779 2.67-2.848 3.738c-4.451 4.273-10.504 4.451-15.666-1.068l-5.518-6.231c-5.342-5.341-4.984-11.216.534-16.379l21.72-19.938C32.815 33.602 36.732 32 42.785 32H54.89c7.656 0 11.749 3.916 11.749 11.572v84.384h15.488c7.655 0 11.572 4.094 11.572 11.572v8.901c0 7.477-3.917 11.572-11.572 11.572H14.836c-7.656 0-11.573-4.095-11.573-11.572v-8.902zM2.211 304.591c0-47.278 50.955-56.383 50.955-69.165 0-7.18-5.954-8.755-9.28-8.755-3.153 0-6.479 1.051-9.455 3.852-5.079 4.903-10.507 7.004-16.111 2.451l-8.579-6.829c-5.779-4.553-7.18-9.805-2.803-15.409C13.592 201.981 26.025 192 47.387 192c19.437 0 44.476 10.506 44.476 39.573 0 38.347-46.753 46.402-48.679 56.909h39.049c7.529 0 11.557 4.027 11.557 11.382v8.755c0 7.354-4.028 11.382-11.557 11.382h-67.94c-7.005 0-12.083-4.028-12.083-11.382v-4.028zM5.654 454.61l5.603-9.28c3.853-6.654 9.105-7.004 15.584-3.152 4.903 2.101 9.63 3.152 14.359 3.152 10.155 0 14.358-3.502 14.358-8.23 0-6.654-5.604-9.106-15.934-9.106h-4.728c-5.954 0-9.28-2.101-12.258-7.88l-1.05-1.926c-2.451-4.728-1.226-9.806 2.801-14.884l5.604-7.004c6.829-8.405 12.257-13.483 12.257-13.483v-.35s-4.203 1.051-12.608 1.051H16.685c-7.53 0-11.383-4.028-11.383-11.382v-8.755c0-7.53 3.853-11.382 11.383-11.382h58.484c7.529 0 11.382 4.027 11.382 11.382v3.327c0 5.778-1.401 9.806-5.079 14.183l-17.509 20.137c19.611 5.078 28.716 20.487 28.716 34.845 0 21.363-14.358 44.126-48.503 44.126-16.636 0-28.192-4.728-35.896-9.455-5.779-4.202-6.304-9.805-2.626-15.934zM144 132h352c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"})),n=e.createElement("svg",{className:"svg-icon","aria-hidden":"true","data-prefix":"fas","data-icon":"list-ul",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512","data-fa-i2svg":""},e.createElement("path",{fill:"currentColor",d:"M96 96c0 26.51-21.49 48-48 48S0 122.51 0 96s21.49-48 48-48 48 21.49 48 48zM48 208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm0 160c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm96-236h352c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"})),a=e.createElement("svg",{className:"svg-icon","aria-hidden":"true","data-prefix":"fas","data-icon":"image",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512","data-fa-i2svg":""},e.createElement("path",{fill:"currentColor",d:"M464 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM112 120c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56zM64 384h384V272l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L208 320l-55.515-55.515c-4.686-4.686-12.284-4.686-16.971 0L64 336v48z"})),i=e.createElement("svg",{className:"svg-icon","aria-hidden":"true","data-prefix":"fas","data-icon":"code",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512","data-fa-i2svg":""},e.createElement("path",{fill:"currentColor",d:"M278.9 511.5l-61-17.7c-6.4-1.8-10-8.5-8.2-14.9L346.2 8.7c1.8-6.4 8.5-10 14.9-8.2l61 17.7c6.4 1.8 10 8.5 8.2 14.9L293.8 503.3c-1.9 6.4-8.5 10.1-14.9 8.2zm-114-112.2l43.5-46.4c4.6-4.9 4.3-12.7-.8-17.2L117 256l90.6-79.7c5.1-4.5 5.5-12.3.8-17.2l-43.5-46.4c-4.5-4.8-12.1-5.1-17-.5L3.8 247.2c-5.1 4.7-5.1 12.8 0 17.5l144.1 135.1c4.9 4.6 12.5 4.4 17-.5zm327.2.6l144.1-135.1c5.1-4.7 5.1-12.8 0-17.5L492.1 112.1c-4.8-4.5-12.4-4.3-17 .5L431.6 159c-4.6 4.9-4.3 12.7.8 17.2L523 256l-90.6 79.7c-5.1 4.5-5.5 12.3-.8 17.2l43.5 46.4c4.5 4.9 12.1 5.1 17 .6z"})),s=e.createElement("svg",{className:"svg-icon","aria-hidden":"true","data-prefix":"fas","data-icon":"quote-right",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512","data-fa-i2svg":""},e.createElement("path",{fill:"currentColor",d:"M512 80v128c0 137.018-63.772 236.324-193.827 271.172-15.225 4.08-30.173-7.437-30.173-23.199v-33.895c0-10.057 6.228-19.133 15.687-22.55C369.684 375.688 408 330.054 408 256h-72c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h128c26.51 0 48 21.49 48 48zM176 32H48C21.49 32 0 53.49 0 80v128c0 26.51 21.49 48 48 48h72c0 74.054-38.316 119.688-104.313 143.528C6.228 402.945 0 412.021 0 422.078v33.895c0 15.762 14.948 27.279 30.173 23.199C160.228 444.324 224 345.018 224 208V80c0-26.51-21.49-48-48-48z"})),o=e.createElement("svg",{className:"svg-icon","aria-hidden":"true","data-prefix":"fas","data-icon":"link",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512","data-fa-i2svg":""},e.createElement("path",{fill:"currentColor",d:"M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"})),u=e.createElement("svg",{className:"svg-icon","aria-hidden":"true","data-prefix":"fas","data-icon":"strikethrough",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512","data-fa-i2svg":""},e.createElement("path",{fill:"currentColor",d:"M496 288H16c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h480c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16zm-214.666 16c27.258 12.937 46.524 28.683 46.524 56.243 0 33.108-28.977 53.676-75.621 53.676-32.325 0-76.874-12.08-76.874-44.271V368c0-8.837-7.164-16-16-16H113.75c-8.836 0-16 7.163-16 16v19.204c0 66.845 77.717 101.82 154.487 101.82 88.578 0 162.013-45.438 162.013-134.424 0-19.815-3.618-36.417-10.143-50.6H281.334zm-30.952-96c-32.422-13.505-56.836-28.946-56.836-59.683 0-33.92 30.901-47.406 64.962-47.406 42.647 0 64.962 16.593 64.962 32.985V136c0 8.837 7.164 16 16 16h45.613c8.836 0 16-7.163 16-16v-30.318c0-52.438-71.725-79.875-142.575-79.875-85.203 0-150.726 40.972-150.726 125.646 0 22.71 4.665 41.176 12.777 56.547h129.823z"})),l=e.createElement("svg",{className:"svg-icon","aria-hidden":"true","data-prefix":"fas","data-icon":"italic",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512","data-fa-i2svg":""},e.createElement("path",{fill:"currentColor",d:"M204.758 416h-33.849l62.092-320h40.725a16 16 0 0 0 15.704-12.937l6.242-32C297.599 41.184 290.034 32 279.968 32H120.235a16 16 0 0 0-15.704 12.937l-6.242 32C96.362 86.816 103.927 96 113.993 96h33.846l-62.09 320H46.278a16 16 0 0 0-15.704 12.935l-6.245 32C22.402 470.815 29.967 480 40.034 480h158.479a16 16 0 0 0 15.704-12.935l6.245-32c1.927-9.88-5.638-19.065-15.704-19.065z"})),f=e.createElement("svg",{className:"svg-icon","aria-hidden":"true","data-prefix":"fas","data-icon":"heading",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512","data-fa-i2svg":""},e.createElement("path",{fill:"currentColor",d:"M496 80V48c0-8.837-7.163-16-16-16H320c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h37.621v128H154.379V96H192c8.837 0 16-7.163 16-16V48c0-8.837-7.163-16-16-16H32c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h37.275v320H32c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h160c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16h-37.621V288H357.62v128H320c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h160c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16h-37.275V96H480c8.837 0 16-7.163 16-16z"})),d=e.createElement("svg",{className:"svg-icon","aria-hidden":"true","data-prefix":"fas","data-icon":"bold",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512","data-fa-i2svg":""},e.createElement("path",{fill:"currentColor",d:"M304.793 243.891c33.639-18.537 53.657-54.16 53.657-95.693 0-48.236-26.25-87.626-68.626-104.179C265.138 34.01 240.849 32 209.661 32H24c-8.837 0-16 7.163-16 16v33.049c0 8.837 7.163 16 16 16h33.113v318.53H24c-8.837 0-16 7.163-16 16V464c0 8.837 7.163 16 16 16h195.69c24.203 0 44.834-1.289 66.866-7.584C337.52 457.193 376 410.647 376 350.014c0-52.168-26.573-91.684-71.207-106.123zM142.217 100.809h67.444c16.294 0 27.536 2.019 37.525 6.717 15.828 8.479 24.906 26.502 24.906 49.446 0 35.029-20.32 56.79-53.029 56.79h-76.846V100.809zm112.642 305.475c-10.14 4.056-22.677 4.907-31.409 4.907h-81.233V281.943h84.367c39.645 0 63.057 25.38 63.057 63.057.001 28.425-13.66 52.483-34.782 61.284z"})),p=function(v){var _=v.icon;switch(_){case"header":return f;case"bold":return d;case"italic":return l;case"strikethrough":return u;case"link":return o;case"quote":return s;case"code":return i;case"image":return a;case"unordered-list":return n;case"ordered-list":return r;case"checked-list":return t;default:return null}};return Nf.SvgIcon=p,Nf}var u4;function l4(){return u4||(u4=1,function(e){var t=hu&&hu.__createBinding||(Object.create?function(n,a,i,s){s===void 0&&(s=i),Object.defineProperty(n,s,{enumerable:!0,get:function(){return a[i]}})}:function(n,a,i,s){s===void 0&&(s=i),n[s]=a[i]}),r=hu&&hu.__exportStar||function(n,a){for(var i in n)i!=="default"&&!Object.prototype.hasOwnProperty.call(a,i)&&t(a,n,i)};Object.defineProperty(e,"__esModule",{value:!0}),r(B8(),e),r(RN(),e)}(hu)),hu}var Un={},Mf={},c4;function IN(){if(c4)return Mf;c4=1,Object.defineProperty(Mf,"__esModule",{value:!0}),Mf.extractKeyActivatedCommands=void 0;function e(t){var r=[];for(var n in t)t.hasOwnProperty(n)&&t[n].handleKeyCommand&&r.push(n);return r}return Mf.extractKeyActivatedCommands=e,Mf}var f4;function NN(){if(f4)return Un;f4=1;var e=Un&&Un.__assign||function(){return e=Object.assign||function(f){for(var d,p=1,v=arguments.length;p<v;p++){d=arguments[p];for(var _ in d)Object.prototype.hasOwnProperty.call(d,_)&&(f[_]=d[_])}return f},e.apply(this,arguments)},t=Un&&Un.__awaiter||function(f,d,p,v){function _(x){return x instanceof p?x:new p(function(w){w(x)})}return new(p||(p=Promise))(function(x,w){function C(h){try{b(v.next(h))}catch(g){w(g)}}function E(h){try{b(v.throw(h))}catch(g){w(g)}}function b(h){h.done?x(h.value):_(h.value).then(C,E)}b((v=v.apply(f,d||[])).next())})},r=Un&&Un.__generator||function(f,d){var p={label:0,sent:function(){if(x[0]&1)throw x[1];return x[1]},trys:[],ops:[]},v,_,x,w;return w={next:C(0),throw:C(1),return:C(2)},typeof Symbol=="function"&&(w[Symbol.iterator]=function(){return this}),w;function C(b){return function(h){return E([b,h])}}function E(b){if(v)throw new TypeError("Generator is already executing.");for(;p;)try{if(v=1,_&&(x=b[0]&2?_.return:b[0]?_.throw||((x=_.return)&&x.call(_),0):_.next)&&!(x=x.call(_,b[1])).done)return x;switch(_=0,x&&(b=[b[0]&2,x.value]),b[0]){case 0:case 1:x=b;break;case 4:return p.label++,{value:b[1],done:!1};case 5:p.label++,_=b[1],b=[0];continue;case 7:b=p.ops.pop(),p.trys.pop();continue;default:if(x=p.trys,!(x=x.length>0&&x[x.length-1])&&(b[0]===6||b[0]===2)){p=0;continue}if(b[0]===3&&(!x||b[1]>x[0]&&b[1]<x[3])){p.label=b[1];break}if(b[0]===6&&p.label<x[1]){p.label=x[1],x=b;break}if(x&&p.label<x[2]){p.label=x[2],p.ops.push(b);break}x[2]&&p.ops.pop(),p.trys.pop();continue}b=d.call(f,p)}catch(h){b=[6,h],_=0}finally{v=x=0}if(b[0]&5)throw b[1];return{value:b[0]?b[1]:void 0,done:!0}}};Object.defineProperty(Un,"__esModule",{value:!0}),Un.CommandOrchestrator=Un.getStateFromTextArea=Un.TextAreaTextApi=void 0;var n=g4(),a=z8(),i=IN(),s=uv(),o=function(){function f(d){this.textAreaRef=d}return f.prototype.replaceSelection=function(d){var p=this.textAreaRef.current;return a.insertText(p,d),u(p)},f.prototype.setSelectionRange=function(d){var p=this.textAreaRef.current;return p.focus(),p.selectionStart=d.start,p.selectionEnd=d.end,u(p)},f.prototype.getState=function(){var d=this.textAreaRef.current;return u(d)},f}();Un.TextAreaTextApi=o;function u(f){return{selection:{start:f.selectionStart,end:f.selectionEnd},text:f.value,selectedText:f.value.slice(f.selectionStart,f.selectionEnd)}}Un.getStateFromTextArea=u;var l=function(){function f(d,p,v,_){var x=this;if(this.getCommand=function(w){var C=x.commandMap[w];if(!C)throw new Error("Cannot execute command. Command not found: "+w);return C},this.handlePossibleKeyCommand=function(w){for(var C=0,E=x.keyActivatedCommands;C<E.length;C++){var b=E[C];if(x.getCommand(b).handleKeyCommand(w))return x.executeCommand(b).then(function(h){}),!0}return!1},_&&!_.saveImage)throw new Error("paste options are incomplete. saveImage are required ");this.commandMap=e(e({},n.getDefaultCommandMap()),d||{}),this.pasteOptions=_,this.keyActivatedCommands=i.extractKeyActivatedCommands(d),this.textAreaRef=p,this.textApi=new o(p),this.l18n=v}return f.prototype.executeCommand=function(d,p){return t(this,void 0,void 0,function(){var v,_;return r(this,function(x){switch(x.label){case 0:return this.isExecuting?[2]:(this.isExecuting=!0,v=this.commandMap[d],_=v.execute({initialState:u(this.textAreaRef.current),textApi:this.textApi,l18n:this.l18n,context:p}),[4,_]);case 1:return x.sent(),this.isExecuting=!1,[2]}})})},f.prototype.executePasteCommand=function(d){return t(this,void 0,void 0,function(){return r(this,function(p){return this.pasteOptions?[2,this.executeCommand(this.pasteOptions.command||s.getDefaultSaveImageCommandName(),{pasteOptions:this.pasteOptions,event:d})]:[2]})})},f.prototype.executeDropCommand=function(d){return t(this,void 0,void 0,function(){return r(this,function(p){return this.pasteOptions?[2,this.executeCommand(this.pasteOptions.command||s.getDefaultSaveImageCommandName(),{pasteOptions:this.pasteOptions,event:d})]:[2]})})},f.prototype.executeSelectImageCommand=function(d){return t(this,void 0,void 0,function(){return r(this,function(p){return this.pasteOptions?[2,this.executeCommand(this.pasteOptions.command||s.getDefaultSaveImageCommandName(),{pasteOptions:this.pasteOptions,event:d})]:[2]})})},f.prototype.getCommandByName=function(d){return this.commandMap[d]},f}();return Un.CommandOrchestrator=l,Un}var d4;function MN(){if(d4)return ha;d4=1;var e=ha&&ha.__extends||function(){var v=function(_,x){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,C){w.__proto__=C}||function(w,C){for(var E in C)Object.prototype.hasOwnProperty.call(C,E)&&(w[E]=C[E])},v(_,x)};return function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Class extends value "+String(x)+" is not a constructor or null");v(_,x);function w(){this.constructor=_}_.prototype=x===null?Object.create(x):(w.prototype=x.prototype,new w)}}(),t=ha&&ha.__assign||function(){return t=Object.assign||function(v){for(var _,x=1,w=arguments.length;x<w;x++){_=arguments[x];for(var C in _)Object.prototype.hasOwnProperty.call(_,C)&&(v[C]=_[C])}return v},t.apply(this,arguments)},r=ha&&ha.__awaiter||function(v,_,x,w){function C(E){return E instanceof x?E:new x(function(b){b(E)})}return new(x||(x=Promise))(function(E,b){function h(S){try{y(w.next(S))}catch(A){b(A)}}function g(S){try{y(w.throw(S))}catch(A){b(A)}}function y(S){S.done?E(S.value):C(S.value).then(h,g)}y((w=w.apply(v,_||[])).next())})},n=ha&&ha.__generator||function(v,_){var x={label:0,sent:function(){if(E[0]&1)throw E[1];return E[1]},trys:[],ops:[]},w,C,E,b;return b={next:h(0),throw:h(1),return:h(2)},typeof Symbol=="function"&&(b[Symbol.iterator]=function(){return this}),b;function h(y){return function(S){return g([y,S])}}function g(y){if(w)throw new TypeError("Generator is already executing.");for(;x;)try{if(w=1,C&&(E=y[0]&2?C.return:y[0]?C.throw||((E=C.return)&&E.call(C),0):C.next)&&!(E=E.call(C,y[1])).done)return E;switch(C=0,E&&(y=[y[0]&2,E.value]),y[0]){case 0:case 1:E=y;break;case 4:return x.label++,{value:y[1],done:!1};case 5:x.label++,C=y[1],y=[0];continue;case 7:y=x.ops.pop(),x.trys.pop();continue;default:if(E=x.trys,!(E=E.length>0&&E[E.length-1])&&(y[0]===6||y[0]===2)){x=0;continue}if(y[0]===3&&(!E||y[1]>E[0]&&y[1]<E[3])){x.label=y[1];break}if(y[0]===6&&x.label<E[1]){x.label=E[1],E=y;break}if(E&&x.label<E[2]){x.label=E[2],x.ops.push(y);break}E[2]&&x.ops.pop(),x.trys.pop();continue}y=_.call(v,x)}catch(S){y=[6,S],C=0}finally{w=E=0}if(y[0]&5)throw y[1];return{value:y[0]?y[1]:void 0,done:!0}}};Object.defineProperty(ha,"__esModule",{value:!0}),ha.ReactMde=void 0;var a=U,i=p4(),s=uv(),o=DN(),u=l4(),l=wl(),f=NN(),d={accept:"image/*",multiple:!1},p=function(v){e(_,v);function _(x){var w,C=v.call(this,x)||this;C.handleTextChange=function(b){var h=C.props.onChange;h(b)},C.handlePaste=function(b){return r(C,void 0,void 0,function(){var h;return n(this,function(g){switch(g.label){case 0:return h=this.props.paste,!h||!h.saveImage?[2]:[4,this.commandOrchestrator.executePasteCommand(b)];case 1:return g.sent(),[2]}})})},C.handleDrop=function(b){return r(C,void 0,void 0,function(){var h;return n(this,function(g){switch(g.label){case 0:return h=this.props.paste,!h||!h.saveImage?[2]:[4,this.commandOrchestrator.executeDropCommand(b)];case 1:return g.sent(),[2]}})})},C.handleImageSelection=function(b){return r(C,void 0,void 0,function(){var h;return n(this,function(g){switch(g.label){case 0:return h=this.props.paste,!h||!h.saveImage?[2]:[4,this.commandOrchestrator.executeSelectImageCommand(b)];case 1:return g.sent(),[2]}})})},C.handleTabChange=function(b){var h=C.props.onTabChange;h(b)},C.handleCommand=function(b){return r(C,void 0,void 0,function(){return n(this,function(h){switch(h.label){case 0:return[4,this.commandOrchestrator.executeCommand(b)];case 1:return h.sent(),[2]}})})},C.finalRefs=t({},x.refs||{}),C.finalRefs.textarea||(C.finalRefs.textarea=a.createRef()),C.finalRefs.preview||(C.finalRefs.preview=a.createRef()),C.commandOrchestrator=new f.CommandOrchestrator(C.props.commands,C.finalRefs.textarea,C.props.l18n,C.props.paste?t(t({},d),C.props.paste):void 0);var E=Math.min(x.maxEditorHeight,x.minEditorHeight);return C.state={editorHeight:(w=x.initialEditorHeight)!==null&&w!==void 0?w:E},C}return _.prototype.render=function(){var x=this,w,C,E=this.props,b=E.getIcon,h=E.toolbarCommands,g=E.classes,y=E.loadingPreview,S=E.readOnly,A=E.disablePreview,k=E.value,F=E.l18n,P=E.minPreviewHeight,j=E.heightUnits,N=E.childProps,I=E.selectedTab,B=E.generateMarkdownPreview,O=E.loadSuggestions,M=E.suggestionTriggerCharacters,V=E.textAreaComponent,L=N||{},W=h.map(function(G){return G.map(function(H){var Q=x.commandOrchestrator.getCommand(H);return{commandName:H,buttonContent:Q.icon?Q.icon(b):b(H),buttonProps:Q.buttonProps,buttonComponentClass:Q.buttonComponentClass}})});return a.createElement("div",{className:l.classNames("react-mde","react-mde-tabbed-layout",g==null?void 0:g.reactMde)},a.createElement(i.Toolbar,{classes:g==null?void 0:g.toolbar,buttons:W,onCommand:this.handleCommand,onTabChange:this.handleTabChange,tab:I,readOnly:S,disablePreview:A,l18n:F,buttonProps:L.commandButtons,writeButtonProps:L.writeButton,previewButtonProps:L.previewButton}),a.createElement("div",{className:l.classNames({invisible:I!=="write"})},a.createElement(i.TextArea,{classes:g==null?void 0:g.textArea,suggestionsDropdownClasses:g==null?void 0:g.suggestionsDropdown,suggestionsAutoplace:this.props.suggestionsAutoplace,refObject:this.finalRefs.textarea,onChange:this.handleTextChange,onPaste:this.handlePaste,onDrop:this.handleDrop,readOnly:S,textAreaComponent:V,textAreaProps:N&&N.textArea,height:this.state.editorHeight,heightUnits:this.props.heightUnits,value:k,suggestionTriggerCharacters:M,loadSuggestions:O,onPossibleKeyCommand:this.commandOrchestrator.handlePossibleKeyCommand}),this.props.paste&&a.createElement("label",{className:l.classNames("image-tip")},a.createElement("input",{className:l.classNames("image-input"),type:"file",accept:(w=this.props.paste.accept)!==null&&w!==void 0?w:d.accept,multiple:(C=this.props.paste.multiple)!==null&&C!==void 0?C:d.multiple,onChange:this.handleImageSelection}),a.createElement("span",null,F.pasteDropSelect))),I!=="write"&&a.createElement(i.Preview,{classes:g==null?void 0:g.preview,refObject:this.finalRefs.preview,loadingPreview:y,minHeight:P,heightUnits:j,generateMarkdownPreview:B,markdown:k}))},_.defaultProps={commands:s.getDefaultCommandMap(),toolbarCommands:s.getDefaultToolbarCommands(),getIcon:function(x){return a.createElement(u.SvgIcon,{icon:x})},readOnly:!1,l18n:o.enL18n,minEditorHeight:200,maxEditorHeight:500,minPreviewHeight:200,heightUnits:"px",selectedTab:"write",disablePreview:!1,suggestionTriggerCharacters:["@"],suggestionsAutoplace:!1},_}(a.Component);return ha.ReactMde=p,ha}var h4;function p4(){return h4||(h4=1,function(e){var t=cu&&cu.__createBinding||(Object.create?function(n,a,i,s){s===void 0&&(s=i),Object.defineProperty(n,s,{enumerable:!0,get:function(){return a[i]}})}:function(n,a,i,s){s===void 0&&(s=i),n[s]=a[i]}),r=cu&&cu.__exportStar||function(n,a){for(var i in n)i!=="default"&&!Object.prototype.hasOwnProperty.call(a,i)&&t(a,n,i)};Object.defineProperty(e,"__esModule",{value:!0}),r(I8(),e),r(M8(),e),r(B8(),e),r(gN(),e),r(_N(),e),r(yN(),e),r(MN(),e),r(V8(),e)}(cu)),cu}var m4;function g4(){return m4||(m4=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getDefaultToolbarCommands=e.getDefaultCommandMap=e.MdeFontAwesomeIcon=e.SvgIcon=e.MarkdownUtil=e.ToolbarButtonGroup=e.Toolbar=e.Preview=e.SuggestionsDropdown=e.TextArea=void 0;var t=pi();e.MarkdownUtil=t;var r=p4();Object.defineProperty(e,"TextArea",{enumerable:!0,get:function(){return r.TextArea}}),Object.defineProperty(e,"SuggestionsDropdown",{enumerable:!0,get:function(){return r.SuggestionsDropdown}}),Object.defineProperty(e,"Preview",{enumerable:!0,get:function(){return r.Preview}}),Object.defineProperty(e,"Toolbar",{enumerable:!0,get:function(){return r.Toolbar}}),Object.defineProperty(e,"ToolbarButtonGroup",{enumerable:!0,get:function(){return r.ToolbarButtonGroup}});var n=l4();Object.defineProperty(e,"SvgIcon",{enumerable:!0,get:function(){return n.SvgIcon}}),Object.defineProperty(e,"MdeFontAwesomeIcon",{enumerable:!0,get:function(){return n.MdeFontAwesomeIcon}});var a=uv();Object.defineProperty(e,"getDefaultCommandMap",{enumerable:!0,get:function(){return a.getDefaultCommandMap}}),Object.defineProperty(e,"getDefaultToolbarCommands",{enumerable:!0,get:function(){return a.getDefaultToolbarCommands}}),e.default=r.ReactMde}(sv)),sv}var LN=g4();const BN=$n(LN),Pr={main:"_main_qf7bi_1",markIcon:"_markIcon_qf7bi_1",mdePreview:"_mdePreview_qf7bi_6",mdebordershow:"_mdebordershow_qf7bi_80",mdeborderhide:"_mdeborderhide_qf7bi_83",fullscreen:"_fullscreen_qf7bi_90"};function jN(e,t,r,n){function a(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function o(f){try{l(n.next(f))}catch(d){s(d)}}function u(f){try{l(n.throw(f))}catch(d){s(d)}}function l(f){f.done?i(f.value):a(f.value).then(o,u)}l((n=n.apply(e,t||[])).next())})}function $N(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return s.next=o(0),s.throw=o(1),s.return=o(2),typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(l){return function(f){return u([l,f])}}function u(l){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,l[0]&&(r=0)),r;)try{if(n=1,a&&(i=l[0]&2?a.return:l[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,l[1])).done)return i;switch(a=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,a=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){r.label=l[1];break}if(l[0]===6&&r.label<i[1]){r.label=i[1],i=l;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(l);break}i[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(f){l=[6,f],a=0}finally{n=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function Lf(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),a,i=[],s;try{for(;(t===void 0||t-- >0)&&!(a=n.next()).done;)i.push(a.value)}catch(o){s={error:o}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i}function UN(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,i;n<a;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Sl=function(e){return typeof e=="function"},zN=function(e){return typeof e=="boolean"},xh=process.env.NODE_ENV==="development"||process.env.NODE_ENV==="test";function pu(e){xh&&(Sl(e)||console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof e)));var t=U.useRef(e);t.current=U.useMemo(function(){return e},[e]);var r=U.useRef();return r.current||(r.current=function(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];return t.current.apply(this,n)}),r.current}function lv(e,t){if(e===t)return!0;for(var r=0;r<e.length;r++)if(!Object.is(e[r],t[r]))return!1;return!0}function HN(e,t){var r=U.useRef({deps:t,obj:void 0,initialized:!1}).current;return(r.initialized===!1||!lv(r.deps,t))&&(r.deps=t,r.obj=e(),r.initialized=!0),r.obj}function Ua(e){var t=U.useRef(e);return t.current=e,t}var _h=function(e){xh&&(Sl(e)||console.error("useUnmount expected parameter is a function, got ".concat(typeof e)));var t=Ua(e);U.useEffect(function(){return function(){t.current()}},[])},cv,v4;function fv(){if(v4)return cv;v4=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return cv=e,cv}var dv,x4;function WN(){if(x4)return dv;x4=1;var e=C3(),t=function(){return e.Date.now()};return dv=t,dv}var hv,_4;function VN(){if(_4)return hv;_4=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return hv=t,hv}var pv,y4;function qN(){if(y4)return pv;y4=1;var e=VN(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return pv=r,pv}var mv,b4;function GN(){if(b4)return mv;b4=1;var e=qN(),t=fv(),r=M3(),n=NaN,a=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,s=/^0o[0-7]+$/i,o=parseInt;function u(l){if(typeof l=="number")return l;if(r(l))return n;if(t(l)){var f=typeof l.valueOf=="function"?l.valueOf():l;l=t(f)?f+"":f}if(typeof l!="string")return l===0?l:+l;l=e(l);var d=i.test(l);return d||s.test(l)?o(l.slice(2),d?2:8):a.test(l)?n:+l}return mv=u,mv}var gv,w4;function S4(){if(w4)return gv;w4=1;var e=fv(),t=WN(),r=GN(),n="Expected a function",a=Math.max,i=Math.min;function s(o,u,l){var f,d,p,v,_,x,w=0,C=!1,E=!1,b=!0;if(typeof o!="function")throw new TypeError(n);u=r(u)||0,e(l)&&(C=!!l.leading,E="maxWait"in l,p=E?a(r(l.maxWait)||0,u):p,b="trailing"in l?!!l.trailing:b);function h(N){var I=f,B=d;return f=d=void 0,w=N,v=o.apply(B,I),v}function g(N){return w=N,_=setTimeout(A,u),C?h(N):v}function y(N){var I=N-x,B=N-w,O=u-I;return E?i(O,p-B):O}function S(N){var I=N-x,B=N-w;return x===void 0||I>=u||I<0||E&&B>=p}function A(){var N=t();if(S(N))return k(N);_=setTimeout(A,y(N))}function k(N){return _=void 0,b&&f?h(N):(f=d=void 0,v)}function F(){_!==void 0&&clearTimeout(_),w=0,f=x=d=_=void 0}function P(){return _===void 0?v:k(t())}function j(){var N=t(),I=S(N);if(f=arguments,d=this,x=N,I){if(_===void 0)return g(x);if(E)return clearTimeout(_),_=setTimeout(A,u),h(x)}return _===void 0&&(_=setTimeout(A,u)),v}return j.cancel=F,j.flush=P,j}return gv=s,gv}var YN=S4();const XN=$n(YN);var E4=!!(typeof window<"u"&&window.document&&window.document.createElement),vv,C4;function KN(){if(C4)return vv;C4=1;var e=S4(),t=fv(),r="Expected a function";function n(a,i,s){var o=!0,u=!0;if(typeof a!="function")throw new TypeError(r);return t(s)&&(o="leading"in s?!!s.leading:o,u="trailing"in s?!!s.trailing:u),e(a,i,{leading:o,maxWait:i,trailing:u})}return vv=n,vv}var ZN=KN();const JN=$n(ZN);var El=function(e){xh&&(Sl(e)||console.error('useMount: parameter `fn` expected to be a function, but got "'.concat(typeof e,'".'))),U.useEffect(function(){e==null||e()},[])},QN=function(){var e=Lf(U.useState({}),2),t=e[1];return U.useCallback(function(){return t({})},[])};function eM(e){return Sl(e[Symbol.asyncIterator])}function tM(e,t){U.useEffect(function(){var r=e(),n=!1;function a(){return jN(this,void 0,void 0,function(){var i;return $N(this,function(s){switch(s.label){case 0:if(!eM(r))return[3,4];s.label=1;case 1:return[4,r.next()];case 2:return i=s.sent(),i.done||n?[3,3]:[3,1];case 3:return[3,6];case 4:return[4,r];case 5:s.sent(),s.label=6;case 6:return[2]}})})}return a(),function(){n=!0}},t)}function Hi(e,t){if(E4){if(!e)return t;var r;return Sl(e)?r=e():"current"in e?r=e.current:r=e,r}}var rM=function(e){return e.every(function(t){var r=Hi(t);return r?r.getRootNode()instanceof ShadowRoot:!1})},nM=function(e){return e?e.getRootNode():document},aM=function(e){if(!e||!document.getRootNode)return document;var t=Array.isArray(e)?e:[e];return rM(t)?nM(Hi(t[0])):document},k4=function(e){var t=function(r,n,a){var i=U.useRef(!1),s=U.useRef([]),o=U.useRef([]),u=U.useRef();e(function(){var l,f=Array.isArray(a)?a:[a],d=f.map(function(p){return Hi(p)});if(!i.current){i.current=!0,s.current=d,o.current=n,u.current=r();return}(d.length!==s.current.length||!lv(s.current,d)||!lv(o.current,n))&&((l=u.current)===null||l===void 0||l.call(u),s.current=d,o.current=n,u.current=r())}),_h(function(){var l;(l=u.current)===null||l===void 0||l.call(u),i.current=!1})};return t},T4=k4(U.useEffect);function iM(e,t,r){r===void 0&&(r="click");var n=Ua(e);T4(function(){var a=function(o){var u=Array.isArray(t)?t:[t];u.some(function(l){var f=Hi(l);return!f||f.contains(o.target)})||n.current(o)},i=aM(t),s=Array.isArray(r)?r:[r];return s.forEach(function(o){return i.addEventListener(o,a)}),function(){s.forEach(function(o){return i.removeEventListener(o,a)})}},Array.isArray(r)?r:[r],t)}function sM(){var e=(typeof global>"u"?"undefined":typeof global)=="object"&&global&&global.Object===Object&&global,t=typeof self=="object"&&self&&self.Object===Object&&self;return e||t}sM()||(global.Date=Date);function oM(e,t){var r;xh&&(Sl(e)||console.error("useDebounceFn expected parameter is a function, got ".concat(typeof e)));var n=Ua(e),a=(r=t==null?void 0:t.wait)!==null&&r!==void 0?r:1e3,i=U.useMemo(function(){return XN(function(){for(var s=[],o=0;o<arguments.length;o++)s[o]=arguments[o];return n.current.apply(n,UN([],Lf(s),!1))},a,t)},[]);return _h(function(){i.cancel()}),{run:i,cancel:i.cancel,flush:i.flush}}var xv={exports:{}};/*!
135
+ * screenfull
136
+ * v5.2.0 - 2021-11-03
137
+ * (c) Sindre Sorhus; MIT License
138
+ */var A4;function uM(){return A4||(A4=1,function(e){(function(){var t=typeof window<"u"&&typeof window.document<"u"?window.document:{},r=e.exports,n=function(){for(var s,o=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],u=0,l=o.length,f={};u<l;u++)if(s=o[u],s&&s[1]in t){for(u=0;u<s.length;u++)f[o[0][u]]=s[u];return f}return!1}(),a={change:n.fullscreenchange,error:n.fullscreenerror},i={request:function(s,o){return new Promise((function(u,l){var f=(function(){this.off("change",f),u()}).bind(this);this.on("change",f),s=s||t.documentElement;var d=s[n.requestFullscreen](o);d instanceof Promise&&d.then(f).catch(l)}).bind(this))},exit:function(){return new Promise((function(s,o){if(!this.isFullscreen){s();return}var u=(function(){this.off("change",u),s()}).bind(this);this.on("change",u);var l=t[n.exitFullscreen]();l instanceof Promise&&l.then(u).catch(o)}).bind(this))},toggle:function(s,o){return this.isFullscreen?this.exit():this.request(s,o)},onchange:function(s){this.on("change",s)},onerror:function(s){this.on("error",s)},on:function(s,o){var u=a[s];u&&t.addEventListener(u,o,!1)},off:function(s,o){var u=a[s];u&&t.removeEventListener(u,o,!1)},raw:n};if(!n){r?e.exports={isEnabled:!1}:window.screenfull={isEnabled:!1};return}Object.defineProperties(i,{isFullscreen:{get:function(){return!!t[n.fullscreenElement]}},element:{enumerable:!0,get:function(){return t[n.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return!!t[n.fullscreenEnabled]}}}),r?e.exports=i:window.screenfull=i})()}(xv)),xv.exports}var lM=uM();const za=$n(lM);var F4=function(e,t){var r=t||{},n=r.onExit,a=r.onEnter,i=r.pageFullscreen,s=i===void 0?!1:i,o=zN(s)||!s?{}:s,u=o.className,l=u===void 0?"ahooks-page-fullscreen":u,f=o.zIndex,d=f===void 0?999999:f,p=Ua(n),v=Ua(a),_=Lf(U.useState(E),2),x=_[0],w=_[1],C=U.useRef(E());function E(){return za.isEnabled&&!!za.element&&za.element===Hi(e)}var b=function(F){var P,j;F?(P=v.current)===null||P===void 0||P.call(v):(j=p.current)===null||j===void 0||j.call(p)},h=function(F){C.current!==F&&(b(F),w(F),C.current=F)},g=function(){var F=E();h(F)},y=function(F){var P=Hi(e);if(P){var j=document.getElementById(l);F?(P.classList.add(l),j||(j=document.createElement("style"),j.setAttribute("id",l),j.textContent=`
139
+ .`.concat(l,` {
140
+ position: fixed; left: 0; top: 0; right: 0; bottom: 0;
141
+ width: 100% !important; height: 100% !important;
142
+ z-index: `).concat(d,`;
143
+ }`),P.appendChild(j))):(P.classList.remove(l),j&&j.remove()),h(F)}},S=function(){var F=Hi(e);if(F){if(s){y(!0);return}if(za.isEnabled)try{za.request(F)}catch(P){console.error(P)}}},A=function(){var F=Hi(e);if(F){if(s){y(!1);return}za.isEnabled&&za.element===F&&za.exit()}},k=function(){x?A():S()};return U.useEffect(function(){if(!(!za.isEnabled||s))return za.on("change",g),function(){za.off("change",g)}},[]),[x,{enterFullscreen:pu(S),exitFullscreen:pu(A),toggleFullscreen:pu(k),isEnabled:za.isEnabled}]};function cM(e){var t=U.useRef(0),r=Lf(U.useState(e),2),n=r[0],a=r[1],i=U.useCallback(function(s){cancelAnimationFrame(t.current),t.current=requestAnimationFrame(function(){a(s)})},[]);return _h(function(){cancelAnimationFrame(t.current)}),[n,i]}var _v,O4;function fM(){if(O4)return _v;O4=1;function e(t,r){return function(n){return t(r(n))}}return _v=e,_v}var yv,P4;function dM(){if(P4)return yv;P4=1;var e=fM(),t=e(Object.getPrototypeOf,Object);return yv=t,yv}var bv,D4;function hM(){if(D4)return bv;D4=1;var e=D3(),t=dM(),r=I3(),n="[object Object]",a=Function.prototype,i=Object.prototype,s=a.toString,o=i.hasOwnProperty,u=s.call(Object);function l(f){if(!r(f)||e(f)!=n)return!1;var d=t(f);if(d===null)return!0;var p=o.call(d,"constructor")&&d.constructor;return typeof p=="function"&&p instanceof p&&s.call(p)==u}return bv=l,bv}var pM=hM();const mM=$n(pM);var R4=new WeakMap,I4=new WeakMap;function N4(e,t){var r=R4.get(e);if(r)return r;if(I4.has(e))return e;var n=new Proxy(e,{get:function(a,i,s){var o=Reflect.get(a,i,s),u=Reflect.getOwnPropertyDescriptor(a,i);return!(u!=null&&u.configurable)&&!(u!=null&&u.writable)?o:mM(o)||Array.isArray(o)?N4(o,t):o},set:function(a,i,s){var o=Reflect.set(a,i,s);return t(),o},deleteProperty:function(a,i){var s=Reflect.deleteProperty(a,i);return t(),s}});return R4.set(e,n),I4.set(n,e),n}function Jn(e){var t=QN(),r=U.useRef(e),n=HN(function(){return N4(r.current,function(){t()})},[]);return n}var M4=function(){if(typeof Map<"u")return Map;function e(t,r){var n=-1;return t.some(function(a,i){return a[0]===r?(n=i,!0):!1}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(r){var n=e(this.__entries__,r),a=this.__entries__[n];return a&&a[1]},t.prototype.set=function(r,n){var a=e(this.__entries__,r);~a?this.__entries__[a][1]=n:this.__entries__.push([r,n])},t.prototype.delete=function(r){var n=this.__entries__,a=e(n,r);~a&&n.splice(a,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var a=0,i=this.__entries__;a<i.length;a++){var s=i[a];r.call(n,s[1],s[0])}},t}()}(),wv=typeof window<"u"&&typeof document<"u"&&window.document===document,yh=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),gM=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(yh):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),vM=2;function xM(e,t){var r=!1,n=!1,a=0;function i(){r&&(r=!1,e()),n&&o()}function s(){gM(i)}function o(){var u=Date.now();if(r){if(u-a<vM)return;n=!0}else r=!0,n=!1,setTimeout(s,t);a=u}return o}var _M=20,yM=["top","right","bottom","left","width","height","size","weight"],bM=typeof MutationObserver<"u",wM=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=xM(this.refresh.bind(this),_M)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var r=this.observers_,n=r.indexOf(t);~n&&r.splice(n,1),!r.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return t.forEach(function(r){return r.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!wv||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),bM?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!wv||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,n=r===void 0?"":r,a=yM.some(function(i){return!!~n.indexOf(i)});a&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),L4=function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var a=n[r];Object.defineProperty(e,a,{value:t[a],enumerable:!1,writable:!1,configurable:!0})}return e},Cl=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||yh},B4=wh(0,0,0,0);function bh(e){return parseFloat(e)||0}function j4(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(n,a){var i=e["border-"+a+"-width"];return n+bh(i)},0)}function SM(e){for(var t=["top","right","bottom","left"],r={},n=0,a=t;n<a.length;n++){var i=a[n],s=e["padding-"+i];r[i]=bh(s)}return r}function EM(e){var t=e.getBBox();return wh(0,0,t.width,t.height)}function CM(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return B4;var n=Cl(e).getComputedStyle(e),a=SM(n),i=a.left+a.right,s=a.top+a.bottom,o=bh(n.width),u=bh(n.height);if(n.boxSizing==="border-box"&&(Math.round(o+i)!==t&&(o-=j4(n,"left","right")+i),Math.round(u+s)!==r&&(u-=j4(n,"top","bottom")+s)),!TM(e)){var l=Math.round(o+i)-t,f=Math.round(u+s)-r;Math.abs(l)!==1&&(o-=l),Math.abs(f)!==1&&(u-=f)}return wh(a.left,a.top,o,u)}var kM=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Cl(e).SVGGraphicsElement}:function(e){return e instanceof Cl(e).SVGElement&&typeof e.getBBox=="function"}}();function TM(e){return e===Cl(e).document.documentElement}function AM(e){return wv?kM(e)?EM(e):CM(e):B4}function FM(e){var t=e.x,r=e.y,n=e.width,a=e.height,i=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,s=Object.create(i.prototype);return L4(s,{x:t,y:r,width:n,height:a,top:r,right:t+n,bottom:a+r,left:t}),s}function wh(e,t,r,n){return{x:e,y:t,width:r,height:n}}var OM=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=wh(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=AM(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),PM=function(){function e(t,r){var n=FM(r);L4(this,{target:t,contentRect:n})}return e}(),DM=function(){function e(t,r,n){if(this.activeObservations_=[],this.observations_=new M4,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=r,this.callbackCtx_=n}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Cl(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new OM(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Cl(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new PM(n.target,n.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),$4=typeof WeakMap<"u"?new WeakMap:new M4,U4=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=wM.getInstance(),n=new DM(t,r,this);$4.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){U4.prototype[e]=function(){var t;return(t=$4.get(this))[e].apply(t,arguments)}});var RM=function(){return typeof yh.ResizeObserver<"u"?yh.ResizeObserver:U4}(),IM=k4(U.useLayoutEffect),NM=E4?IM:T4;function MM(e){var t=Lf(cM(function(){var a=Hi(e);return a?{width:a.clientWidth,height:a.clientHeight}:void 0}),2),r=t[0],n=t[1];return NM(function(){var a=Hi(e);if(a){var i=new RM(function(s){s.forEach(function(o){var u=o.target,l=u.clientWidth,f=u.clientHeight;n({width:l,height:f})})});return i.observe(a),function(){i.disconnect()}}},[],e),r}var Sh={exports:{}},LM=Sh.exports,z4;function BM(){return z4||(z4=1,function(e){(function(){function t(h){var g={omitExtraWLInCodeBlocks:{defaultValue:!1,describe:"Omit the default extra whiteline added to code blocks",type:"boolean"},noHeaderId:{defaultValue:!1,describe:"Turn on/off generated header id",type:"boolean"},prefixHeaderId:{defaultValue:!1,describe:"Add a prefix to the generated header ids. Passing a string will prefix that string to the header id. Setting to true will add a generic 'section-' prefix",type:"string"},rawPrefixHeaderId:{defaultValue:!1,describe:'Setting this option to true will prevent showdown from modifying the prefix. This might result in malformed IDs (if, for instance, the " char is used in the prefix)',type:"boolean"},ghCompatibleHeaderId:{defaultValue:!1,describe:"Generate header ids compatible with github style (spaces are replaced with dashes, a bunch of non alphanumeric chars are removed)",type:"boolean"},rawHeaderId:{defaultValue:!1,describe:`Remove only spaces, ' and " from generated header ids (including prefixes), replacing them with dashes (-). WARNING: This might result in malformed ids`,type:"boolean"},headerLevelStart:{defaultValue:!1,describe:"The header blocks level start",type:"integer"},parseImgDimensions:{defaultValue:!1,describe:"Turn on/off image dimension parsing",type:"boolean"},simplifiedAutoLink:{defaultValue:!1,describe:"Turn on/off GFM autolink style",type:"boolean"},excludeTrailingPunctuationFromURLs:{defaultValue:!1,describe:"Excludes trailing punctuation from links generated with autoLinking",type:"boolean"},literalMidWordUnderscores:{defaultValue:!1,describe:"Parse midword underscores as literal underscores",type:"boolean"},literalMidWordAsterisks:{defaultValue:!1,describe:"Parse midword asterisks as literal asterisks",type:"boolean"},strikethrough:{defaultValue:!1,describe:"Turn on/off strikethrough support",type:"boolean"},tables:{defaultValue:!1,describe:"Turn on/off tables support",type:"boolean"},tablesHeaderId:{defaultValue:!1,describe:"Add an id to table headers",type:"boolean"},ghCodeBlocks:{defaultValue:!0,describe:"Turn on/off GFM fenced code blocks support",type:"boolean"},tasklists:{defaultValue:!1,describe:"Turn on/off GFM tasklist support",type:"boolean"},smoothLivePreview:{defaultValue:!1,describe:"Prevents weird effects in live previews due to incomplete input",type:"boolean"},smartIndentationFix:{defaultValue:!1,describe:"Tries to smartly fix indentation in es6 strings",type:"boolean"},disableForced4SpacesIndentedSublists:{defaultValue:!1,describe:"Disables the requirement of indenting nested sublists by 4 spaces",type:"boolean"},simpleLineBreaks:{defaultValue:!1,describe:"Parses simple line breaks as <br> (GFM Style)",type:"boolean"},requireSpaceBeforeHeadingText:{defaultValue:!1,describe:"Makes adding a space between `#` and the header text mandatory (GFM Style)",type:"boolean"},ghMentions:{defaultValue:!1,describe:"Enables github @mentions",type:"boolean"},ghMentionsLink:{defaultValue:"https://github.com/{u}",describe:"Changes the link generated by @mentions. Only applies if ghMentions option is enabled.",type:"string"},encodeEmails:{defaultValue:!0,describe:"Encode e-mail addresses through the use of Character Entities, transforming ASCII e-mail addresses into its equivalent decimal entities",type:"boolean"},openLinksInNewWindow:{defaultValue:!1,describe:"Open all links in new windows",type:"boolean"},backslashEscapesHTMLTags:{defaultValue:!1,describe:"Support for HTML Tag escaping. ex: <div>foo</div>",type:"boolean"},emoji:{defaultValue:!1,describe:"Enable emoji support. Ex: `this is a :smile: emoji`",type:"boolean"},underline:{defaultValue:!1,describe:"Enable support for underline. Syntax is double or triple underscores: `__underline word__`. With this option enabled, underscores no longer parses into `<em>` and `<strong>`",type:"boolean"},ellipsis:{defaultValue:!0,describe:"Replaces three dots with the ellipsis unicode character",type:"boolean"},completeHTMLDocument:{defaultValue:!1,describe:"Outputs a complete html document, including `<html>`, `<head>` and `<body>` tags",type:"boolean"},metadata:{defaultValue:!1,describe:"Enable support for document metadata (defined at the top of the document between `«««` and `»»»` or between `---` and `---`).",type:"boolean"},splitAdjacentBlockquotes:{defaultValue:!1,describe:"Split adjacent blockquote blocks",type:"boolean"}};if(h===!1)return JSON.parse(JSON.stringify(g));var y={};for(var S in g)g.hasOwnProperty(S)&&(y[S]=g[S].defaultValue);return y}function r(){var h=t(!0),g={};for(var y in h)h.hasOwnProperty(y)&&(g[y]=!0);return g}var n={},a={},i={},s=t(!0),o="vanilla",u={github:{omitExtraWLInCodeBlocks:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,disableForced4SpacesIndentedSublists:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghCompatibleHeaderId:!0,ghMentions:!0,backslashEscapesHTMLTags:!0,emoji:!0,splitAdjacentBlockquotes:!0},original:{noHeaderId:!0,ghCodeBlocks:!1},ghost:{omitExtraWLInCodeBlocks:!0,parseImgDimensions:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,smoothLivePreview:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghMentions:!1,encodeEmails:!0},vanilla:t(!0),allOn:r()};n.helper={},n.extensions={},n.setOption=function(h,g){return s[h]=g,this},n.getOption=function(h){return s[h]},n.getOptions=function(){return s},n.resetOptions=function(){s=t(!0)},n.setFlavor=function(h){if(!u.hasOwnProperty(h))throw Error(h+" flavor was not found");n.resetOptions();var g=u[h];o=h;for(var y in g)g.hasOwnProperty(y)&&(s[y]=g[y])},n.getFlavor=function(){return o},n.getFlavorOptions=function(h){if(u.hasOwnProperty(h))return u[h]},n.getDefaultOptions=function(h){return t(h)},n.subParser=function(h,g){if(n.helper.isString(h))if(typeof g<"u")a[h]=g;else{if(a.hasOwnProperty(h))return a[h];throw Error("SubParser named "+h+" not registered!")}},n.extension=function(h,g){if(!n.helper.isString(h))throw Error("Extension 'name' must be a string");if(h=n.helper.stdExtName(h),n.helper.isUndefined(g)){if(!i.hasOwnProperty(h))throw Error("Extension named "+h+" is not registered!");return i[h]}else{typeof g=="function"&&(g=g()),n.helper.isArray(g)||(g=[g]);var y=l(g,h);if(y.valid)i[h]=g;else throw Error(y.error)}},n.getAllExtensions=function(){return i},n.removeExtension=function(h){delete i[h]},n.resetExtensions=function(){i={}};function l(h,g){var y=g?"Error in "+g+" extension->":"Error in unnamed extension",S={valid:!0,error:""};n.helper.isArray(h)||(h=[h]);for(var A=0;A<h.length;++A){var k=y+" sub-extension "+A+": ",F=h[A];if(typeof F!="object")return S.valid=!1,S.error=k+"must be an object, but "+typeof F+" given",S;if(!n.helper.isString(F.type))return S.valid=!1,S.error=k+'property "type" must be a string, but '+typeof F.type+" given",S;var P=F.type=F.type.toLowerCase();if(P==="language"&&(P=F.type="lang"),P==="html"&&(P=F.type="output"),P!=="lang"&&P!=="output"&&P!=="listener")return S.valid=!1,S.error=k+"type "+P+' is not recognized. Valid values: "lang/language", "output/html" or "listener"',S;if(P==="listener"){if(n.helper.isUndefined(F.listeners))return S.valid=!1,S.error=k+'. Extensions of type "listener" must have a property called "listeners"',S}else if(n.helper.isUndefined(F.filter)&&n.helper.isUndefined(F.regex))return S.valid=!1,S.error=k+P+' extensions must define either a "regex" property or a "filter" method',S;if(F.listeners){if(typeof F.listeners!="object")return S.valid=!1,S.error=k+'"listeners" property must be an object but '+typeof F.listeners+" given",S;for(var j in F.listeners)if(F.listeners.hasOwnProperty(j)&&typeof F.listeners[j]!="function")return S.valid=!1,S.error=k+'"listeners" property must be an hash of [event name]: [callback]. listeners.'+j+" must be a function but "+typeof F.listeners[j]+" given",S}if(F.filter){if(typeof F.filter!="function")return S.valid=!1,S.error=k+'"filter" must be a function, but '+typeof F.filter+" given",S}else if(F.regex){if(n.helper.isString(F.regex)&&(F.regex=new RegExp(F.regex,"g")),!(F.regex instanceof RegExp))return S.valid=!1,S.error=k+'"regex" property must either be a string or a RegExp object, but '+typeof F.regex+" given",S;if(n.helper.isUndefined(F.replace))return S.valid=!1,S.error=k+'"regex" extensions must implement a replace string or function',S}}return S}n.validateExtension=function(h){var g=l(h,null);return g.valid?!0:(console.warn(g.error),!1)},n.hasOwnProperty("helper")||(n.helper={}),n.helper.isString=function(h){return typeof h=="string"||h instanceof String},n.helper.isFunction=function(h){var g={};return h&&g.toString.call(h)==="[object Function]"},n.helper.isArray=function(h){return Array.isArray(h)},n.helper.isUndefined=function(h){return typeof h>"u"},n.helper.forEach=function(h,g){if(n.helper.isUndefined(h))throw new Error("obj param is required");if(n.helper.isUndefined(g))throw new Error("callback param is required");if(!n.helper.isFunction(g))throw new Error("callback param must be a function/closure");if(typeof h.forEach=="function")h.forEach(g);else if(n.helper.isArray(h))for(var y=0;y<h.length;y++)g(h[y],y,h);else if(typeof h=="object")for(var S in h)h.hasOwnProperty(S)&&g(h[S],S,h);else throw new Error("obj does not seem to be an array or an iterable object")},n.helper.stdExtName=function(h){return h.replace(/[_?*+\/\\.^-]/g,"").replace(/\s/g,"").toLowerCase()};function f(h,g){var y=g.charCodeAt(0);return"¨E"+y+"E"}n.helper.escapeCharactersCallback=f,n.helper.escapeCharacters=function(h,g,y){var S="(["+g.replace(/([\[\]\\])/g,"\\$1")+"])";y&&(S="\\\\"+S);var A=new RegExp(S,"g");return h=h.replace(A,f),h},n.helper.unescapeHTMLEntities=function(h){return h.replace(/&quot;/g,'"').replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&")};var d=function(h,g,y,S){var A=S||"",k=A.indexOf("g")>-1,F=new RegExp(g+"|"+y,"g"+A.replace(/g/g,"")),P=new RegExp(g,A.replace(/g/g,"")),j=[],N,I,B,O,M;do for(N=0;B=F.exec(h);)if(P.test(B[0]))N++||(I=F.lastIndex,O=I-B[0].length);else if(N&&!--N){M=B.index+B[0].length;var V={left:{start:O,end:I},match:{start:I,end:B.index},right:{start:B.index,end:M},wholeMatch:{start:O,end:M}};if(j.push(V),!k)return j}while(N&&(F.lastIndex=I));return j};n.helper.matchRecursiveRegExp=function(h,g,y,S){for(var A=d(h,g,y,S),k=[],F=0;F<A.length;++F)k.push([h.slice(A[F].wholeMatch.start,A[F].wholeMatch.end),h.slice(A[F].match.start,A[F].match.end),h.slice(A[F].left.start,A[F].left.end),h.slice(A[F].right.start,A[F].right.end)]);return k},n.helper.replaceRecursiveRegExp=function(h,g,y,S,A){if(!n.helper.isFunction(g)){var k=g;g=function(){return k}}var F=d(h,y,S,A),P=h,j=F.length;if(j>0){var N=[];F[0].wholeMatch.start!==0&&N.push(h.slice(0,F[0].wholeMatch.start));for(var I=0;I<j;++I)N.push(g(h.slice(F[I].wholeMatch.start,F[I].wholeMatch.end),h.slice(F[I].match.start,F[I].match.end),h.slice(F[I].left.start,F[I].left.end),h.slice(F[I].right.start,F[I].right.end))),I<j-1&&N.push(h.slice(F[I].wholeMatch.end,F[I+1].wholeMatch.start));F[j-1].wholeMatch.end<h.length&&N.push(h.slice(F[j-1].wholeMatch.end)),P=N.join("")}return P},n.helper.regexIndexOf=function(h,g,y){if(!n.helper.isString(h))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";if(!(g instanceof RegExp))throw"InvalidArgumentError: second parameter of showdown.helper.regexIndexOf function must be an instance of RegExp";var S=h.substring(y||0).search(g);return S>=0?S+(y||0):S},n.helper.splitAtIndex=function(h,g){if(!n.helper.isString(h))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";return[h.substring(0,g),h.substring(g)]},n.helper.encodeEmailAddress=function(h){var g=[function(y){return"&#"+y.charCodeAt(0)+";"},function(y){return"&#x"+y.charCodeAt(0).toString(16)+";"},function(y){return y}];return h=h.replace(/./g,function(y){if(y==="@")y=g[Math.floor(Math.random()*2)](y);else{var S=Math.random();y=S>.9?g[2](y):S>.45?g[1](y):g[0](y)}return y}),h},n.helper.padEnd=function(g,y,S){return y=y>>0,S=String(S||" "),g.length>y?String(g):(y=y-g.length,y>S.length&&(S+=S.repeat(y/S.length)),String(g)+S.slice(0,y))},typeof console>"u"&&(console={warn:function(h){alert(h)},log:function(h){alert(h)},error:function(h){throw h}}),n.helper.regexes={asteriskDashAndColon:/([*_:~])/g},n.helper.emojis={"+1":"👍","-1":"👎",100:"💯",1234:"🔢","1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉","8ball":"🎱",a:"🅰️",ab:"🆎",abc:"🔤",abcd:"🔡",accept:"🉑",aerial_tramway:"🚡",airplane:"✈️",alarm_clock:"⏰",alembic:"⚗️",alien:"👽",ambulance:"🚑",amphora:"🏺",anchor:"⚓️",angel:"👼",anger:"💢",angry:"😠",anguished:"😧",ant:"🐜",apple:"🍎",aquarius:"♒️",aries:"♈️",arrow_backward:"◀️",arrow_double_down:"⏬",arrow_double_up:"⏫",arrow_down:"⬇️",arrow_down_small:"🔽",arrow_forward:"▶️",arrow_heading_down:"⤵️",arrow_heading_up:"⤴️",arrow_left:"⬅️",arrow_lower_left:"↙️",arrow_lower_right:"↘️",arrow_right:"➡️",arrow_right_hook:"↪️",arrow_up:"⬆️",arrow_up_down:"↕️",arrow_up_small:"🔼",arrow_upper_left:"↖️",arrow_upper_right:"↗️",arrows_clockwise:"🔃",arrows_counterclockwise:"🔄",art:"🎨",articulated_lorry:"🚛",artificial_satellite:"🛰",astonished:"😲",athletic_shoe:"👟",atm:"🏧",atom_symbol:"⚛️",avocado:"🥑",b:"🅱️",baby:"👶",baby_bottle:"🍼",baby_chick:"🐤",baby_symbol:"🚼",back:"🔙",bacon:"🥓",badminton:"🏸",baggage_claim:"🛄",baguette_bread:"🥖",balance_scale:"⚖️",balloon:"🎈",ballot_box:"🗳",ballot_box_with_check:"☑️",bamboo:"🎍",banana:"🍌",bangbang:"‼️",bank:"🏦",bar_chart:"📊",barber:"💈",baseball:"⚾️",basketball:"🏀",basketball_man:"⛹️",basketball_woman:"⛹️&zwj;♀️",bat:"🦇",bath:"🛀",bathtub:"🛁",battery:"🔋",beach_umbrella:"🏖",bear:"🐻",bed:"🛏",bee:"🐝",beer:"🍺",beers:"🍻",beetle:"🐞",beginner:"🔰",bell:"🔔",bellhop_bell:"🛎",bento:"🍱",biking_man:"🚴",bike:"🚲",biking_woman:"🚴&zwj;♀️",bikini:"👙",biohazard:"☣️",bird:"🐦",birthday:"🎂",black_circle:"⚫️",black_flag:"🏴",black_heart:"🖤",black_joker:"🃏",black_large_square:"⬛️",black_medium_small_square:"◾️",black_medium_square:"◼️",black_nib:"✒️",black_small_square:"▪️",black_square_button:"🔲",blonde_man:"👱",blonde_woman:"👱&zwj;♀️",blossom:"🌼",blowfish:"🐡",blue_book:"📘",blue_car:"🚙",blue_heart:"💙",blush:"😊",boar:"🐗",boat:"⛵️",bomb:"💣",book:"📖",bookmark:"🔖",bookmark_tabs:"📑",books:"📚",boom:"💥",boot:"👢",bouquet:"💐",bowing_man:"🙇",bow_and_arrow:"🏹",bowing_woman:"🙇&zwj;♀️",bowling:"🎳",boxing_glove:"🥊",boy:"👦",bread:"🍞",bride_with_veil:"👰",bridge_at_night:"🌉",briefcase:"💼",broken_heart:"💔",bug:"🐛",building_construction:"🏗",bulb:"💡",bullettrain_front:"🚅",bullettrain_side:"🚄",burrito:"🌯",bus:"🚌",business_suit_levitating:"🕴",busstop:"🚏",bust_in_silhouette:"👤",busts_in_silhouette:"👥",butterfly:"🦋",cactus:"🌵",cake:"🍰",calendar:"📆",call_me_hand:"🤙",calling:"📲",camel:"🐫",camera:"📷",camera_flash:"📸",camping:"🏕",cancer:"♋️",candle:"🕯",candy:"🍬",canoe:"🛶",capital_abcd:"🔠",capricorn:"♑️",car:"🚗",card_file_box:"🗃",card_index:"📇",card_index_dividers:"🗂",carousel_horse:"🎠",carrot:"🥕",cat:"🐱",cat2:"🐈",cd:"💿",chains:"⛓",champagne:"🍾",chart:"💹",chart_with_downwards_trend:"📉",chart_with_upwards_trend:"📈",checkered_flag:"🏁",cheese:"🧀",cherries:"🍒",cherry_blossom:"🌸",chestnut:"🌰",chicken:"🐔",children_crossing:"🚸",chipmunk:"🐿",chocolate_bar:"🍫",christmas_tree:"🎄",church:"⛪️",cinema:"🎦",circus_tent:"🎪",city_sunrise:"🌇",city_sunset:"🌆",cityscape:"🏙",cl:"🆑",clamp:"🗜",clap:"👏",clapper:"🎬",classical_building:"🏛",clinking_glasses:"🥂",clipboard:"📋",clock1:"🕐",clock10:"🕙",clock1030:"🕥",clock11:"🕚",clock1130:"🕦",clock12:"🕛",clock1230:"🕧",clock130:"🕜",clock2:"🕑",clock230:"🕝",clock3:"🕒",clock330:"🕞",clock4:"🕓",clock430:"🕟",clock5:"🕔",clock530:"🕠",clock6:"🕕",clock630:"🕡",clock7:"🕖",clock730:"🕢",clock8:"🕗",clock830:"🕣",clock9:"🕘",clock930:"🕤",closed_book:"📕",closed_lock_with_key:"🔐",closed_umbrella:"🌂",cloud:"☁️",cloud_with_lightning:"🌩",cloud_with_lightning_and_rain:"⛈",cloud_with_rain:"🌧",cloud_with_snow:"🌨",clown_face:"🤡",clubs:"♣️",cocktail:"🍸",coffee:"☕️",coffin:"⚰️",cold_sweat:"😰",comet:"☄️",computer:"💻",computer_mouse:"🖱",confetti_ball:"🎊",confounded:"😖",confused:"😕",congratulations:"㊗️",construction:"🚧",construction_worker_man:"👷",construction_worker_woman:"👷&zwj;♀️",control_knobs:"🎛",convenience_store:"🏪",cookie:"🍪",cool:"🆒",policeman:"👮",copyright:"©️",corn:"🌽",couch_and_lamp:"🛋",couple:"👫",couple_with_heart_woman_man:"💑",couple_with_heart_man_man:"👨&zwj;❤️&zwj;👨",couple_with_heart_woman_woman:"👩&zwj;❤️&zwj;👩",couplekiss_man_man:"👨&zwj;❤️&zwj;💋&zwj;👨",couplekiss_man_woman:"💏",couplekiss_woman_woman:"👩&zwj;❤️&zwj;💋&zwj;👩",cow:"🐮",cow2:"🐄",cowboy_hat_face:"🤠",crab:"🦀",crayon:"🖍",credit_card:"💳",crescent_moon:"🌙",cricket:"🏏",crocodile:"🐊",croissant:"🥐",crossed_fingers:"🤞",crossed_flags:"🎌",crossed_swords:"⚔️",crown:"👑",cry:"😢",crying_cat_face:"😿",crystal_ball:"🔮",cucumber:"🥒",cupid:"💘",curly_loop:"➰",currency_exchange:"💱",curry:"🍛",custard:"🍮",customs:"🛃",cyclone:"🌀",dagger:"🗡",dancer:"💃",dancing_women:"👯",dancing_men:"👯&zwj;♂️",dango:"🍡",dark_sunglasses:"🕶",dart:"🎯",dash:"💨",date:"📅",deciduous_tree:"🌳",deer:"🦌",department_store:"🏬",derelict_house:"🏚",desert:"🏜",desert_island:"🏝",desktop_computer:"🖥",male_detective:"🕵️",diamond_shape_with_a_dot_inside:"💠",diamonds:"♦️",disappointed:"😞",disappointed_relieved:"😥",dizzy:"💫",dizzy_face:"😵",do_not_litter:"🚯",dog:"🐶",dog2:"🐕",dollar:"💵",dolls:"🎎",dolphin:"🐬",door:"🚪",doughnut:"🍩",dove:"🕊",dragon:"🐉",dragon_face:"🐲",dress:"👗",dromedary_camel:"🐪",drooling_face:"🤤",droplet:"💧",drum:"🥁",duck:"🦆",dvd:"📀","e-mail":"📧",eagle:"🦅",ear:"👂",ear_of_rice:"🌾",earth_africa:"🌍",earth_americas:"🌎",earth_asia:"🌏",egg:"🥚",eggplant:"🍆",eight_pointed_black_star:"✴️",eight_spoked_asterisk:"✳️",electric_plug:"🔌",elephant:"🐘",email:"✉️",end:"🔚",envelope_with_arrow:"📩",euro:"💶",european_castle:"🏰",european_post_office:"🏤",evergreen_tree:"🌲",exclamation:"❗️",expressionless:"😑",eye:"👁",eye_speech_bubble:"👁&zwj;🗨",eyeglasses:"👓",eyes:"👀",face_with_head_bandage:"🤕",face_with_thermometer:"🤒",fist_oncoming:"👊",factory:"🏭",fallen_leaf:"🍂",family_man_woman_boy:"👪",family_man_boy:"👨&zwj;👦",family_man_boy_boy:"👨&zwj;👦&zwj;👦",family_man_girl:"👨&zwj;👧",family_man_girl_boy:"👨&zwj;👧&zwj;👦",family_man_girl_girl:"👨&zwj;👧&zwj;👧",family_man_man_boy:"👨&zwj;👨&zwj;👦",family_man_man_boy_boy:"👨&zwj;👨&zwj;👦&zwj;👦",family_man_man_girl:"👨&zwj;👨&zwj;👧",family_man_man_girl_boy:"👨&zwj;👨&zwj;👧&zwj;👦",family_man_man_girl_girl:"👨&zwj;👨&zwj;👧&zwj;👧",family_man_woman_boy_boy:"👨&zwj;👩&zwj;👦&zwj;👦",family_man_woman_girl:"👨&zwj;👩&zwj;👧",family_man_woman_girl_boy:"👨&zwj;👩&zwj;👧&zwj;👦",family_man_woman_girl_girl:"👨&zwj;👩&zwj;👧&zwj;👧",family_woman_boy:"👩&zwj;👦",family_woman_boy_boy:"👩&zwj;👦&zwj;👦",family_woman_girl:"👩&zwj;👧",family_woman_girl_boy:"👩&zwj;👧&zwj;👦",family_woman_girl_girl:"👩&zwj;👧&zwj;👧",family_woman_woman_boy:"👩&zwj;👩&zwj;👦",family_woman_woman_boy_boy:"👩&zwj;👩&zwj;👦&zwj;👦",family_woman_woman_girl:"👩&zwj;👩&zwj;👧",family_woman_woman_girl_boy:"👩&zwj;👩&zwj;👧&zwj;👦",family_woman_woman_girl_girl:"👩&zwj;👩&zwj;👧&zwj;👧",fast_forward:"⏩",fax:"📠",fearful:"😨",feet:"🐾",female_detective:"🕵️&zwj;♀️",ferris_wheel:"🎡",ferry:"⛴",field_hockey:"🏑",file_cabinet:"🗄",file_folder:"📁",film_projector:"📽",film_strip:"🎞",fire:"🔥",fire_engine:"🚒",fireworks:"🎆",first_quarter_moon:"🌓",first_quarter_moon_with_face:"🌛",fish:"🐟",fish_cake:"🍥",fishing_pole_and_fish:"🎣",fist_raised:"✊",fist_left:"🤛",fist_right:"🤜",flags:"🎏",flashlight:"🔦",fleur_de_lis:"⚜️",flight_arrival:"🛬",flight_departure:"🛫",floppy_disk:"💾",flower_playing_cards:"🎴",flushed:"😳",fog:"🌫",foggy:"🌁",football:"🏈",footprints:"👣",fork_and_knife:"🍴",fountain:"⛲️",fountain_pen:"🖋",four_leaf_clover:"🍀",fox_face:"🦊",framed_picture:"🖼",free:"🆓",fried_egg:"🍳",fried_shrimp:"🍤",fries:"🍟",frog:"🐸",frowning:"😦",frowning_face:"☹️",frowning_man:"🙍&zwj;♂️",frowning_woman:"🙍",middle_finger:"🖕",fuelpump:"⛽️",full_moon:"🌕",full_moon_with_face:"🌝",funeral_urn:"⚱️",game_die:"🎲",gear:"⚙️",gem:"💎",gemini:"♊️",ghost:"👻",gift:"🎁",gift_heart:"💝",girl:"👧",globe_with_meridians:"🌐",goal_net:"🥅",goat:"🐐",golf:"⛳️",golfing_man:"🏌️",golfing_woman:"🏌️&zwj;♀️",gorilla:"🦍",grapes:"🍇",green_apple:"🍏",green_book:"📗",green_heart:"💚",green_salad:"🥗",grey_exclamation:"❕",grey_question:"❔",grimacing:"😬",grin:"😁",grinning:"😀",guardsman:"💂",guardswoman:"💂&zwj;♀️",guitar:"🎸",gun:"🔫",haircut_woman:"💇",haircut_man:"💇&zwj;♂️",hamburger:"🍔",hammer:"🔨",hammer_and_pick:"⚒",hammer_and_wrench:"🛠",hamster:"🐹",hand:"✋",handbag:"👜",handshake:"🤝",hankey:"💩",hatched_chick:"🐥",hatching_chick:"🐣",headphones:"🎧",hear_no_evil:"🙉",heart:"❤️",heart_decoration:"💟",heart_eyes:"😍",heart_eyes_cat:"😻",heartbeat:"💓",heartpulse:"💗",hearts:"♥️",heavy_check_mark:"✔️",heavy_division_sign:"➗",heavy_dollar_sign:"💲",heavy_heart_exclamation:"❣️",heavy_minus_sign:"➖",heavy_multiplication_x:"✖️",heavy_plus_sign:"➕",helicopter:"🚁",herb:"🌿",hibiscus:"🌺",high_brightness:"🔆",high_heel:"👠",hocho:"🔪",hole:"🕳",honey_pot:"🍯",horse:"🐴",horse_racing:"🏇",hospital:"🏥",hot_pepper:"🌶",hotdog:"🌭",hotel:"🏨",hotsprings:"♨️",hourglass:"⌛️",hourglass_flowing_sand:"⏳",house:"🏠",house_with_garden:"🏡",houses:"🏘",hugs:"🤗",hushed:"😯",ice_cream:"🍨",ice_hockey:"🏒",ice_skate:"⛸",icecream:"🍦",id:"🆔",ideograph_advantage:"🉐",imp:"👿",inbox_tray:"📥",incoming_envelope:"📨",tipping_hand_woman:"💁",information_source:"ℹ️",innocent:"😇",interrobang:"⁉️",iphone:"📱",izakaya_lantern:"🏮",jack_o_lantern:"🎃",japan:"🗾",japanese_castle:"🏯",japanese_goblin:"👺",japanese_ogre:"👹",jeans:"👖",joy:"😂",joy_cat:"😹",joystick:"🕹",kaaba:"🕋",key:"🔑",keyboard:"⌨️",keycap_ten:"🔟",kick_scooter:"🛴",kimono:"👘",kiss:"💋",kissing:"😗",kissing_cat:"😽",kissing_closed_eyes:"😚",kissing_heart:"😘",kissing_smiling_eyes:"😙",kiwi_fruit:"🥝",koala:"🐨",koko:"🈁",label:"🏷",large_blue_circle:"🔵",large_blue_diamond:"🔷",large_orange_diamond:"🔶",last_quarter_moon:"🌗",last_quarter_moon_with_face:"🌜",latin_cross:"✝️",laughing:"😆",leaves:"🍃",ledger:"📒",left_luggage:"🛅",left_right_arrow:"↔️",leftwards_arrow_with_hook:"↩️",lemon:"🍋",leo:"♌️",leopard:"🐆",level_slider:"🎚",libra:"♎️",light_rail:"🚈",link:"🔗",lion:"🦁",lips:"👄",lipstick:"💄",lizard:"🦎",lock:"🔒",lock_with_ink_pen:"🔏",lollipop:"🍭",loop:"➿",loud_sound:"🔊",loudspeaker:"📢",love_hotel:"🏩",love_letter:"💌",low_brightness:"🔅",lying_face:"🤥",m:"Ⓜ️",mag:"🔍",mag_right:"🔎",mahjong:"🀄️",mailbox:"📫",mailbox_closed:"📪",mailbox_with_mail:"📬",mailbox_with_no_mail:"📭",man:"👨",man_artist:"👨&zwj;🎨",man_astronaut:"👨&zwj;🚀",man_cartwheeling:"🤸&zwj;♂️",man_cook:"👨&zwj;🍳",man_dancing:"🕺",man_facepalming:"🤦&zwj;♂️",man_factory_worker:"👨&zwj;🏭",man_farmer:"👨&zwj;🌾",man_firefighter:"👨&zwj;🚒",man_health_worker:"👨&zwj;⚕️",man_in_tuxedo:"🤵",man_judge:"👨&zwj;⚖️",man_juggling:"🤹&zwj;♂️",man_mechanic:"👨&zwj;🔧",man_office_worker:"👨&zwj;💼",man_pilot:"👨&zwj;✈️",man_playing_handball:"🤾&zwj;♂️",man_playing_water_polo:"🤽&zwj;♂️",man_scientist:"👨&zwj;🔬",man_shrugging:"🤷&zwj;♂️",man_singer:"👨&zwj;🎤",man_student:"👨&zwj;🎓",man_teacher:"👨&zwj;🏫",man_technologist:"👨&zwj;💻",man_with_gua_pi_mao:"👲",man_with_turban:"👳",tangerine:"🍊",mans_shoe:"👞",mantelpiece_clock:"🕰",maple_leaf:"🍁",martial_arts_uniform:"🥋",mask:"😷",massage_woman:"💆",massage_man:"💆&zwj;♂️",meat_on_bone:"🍖",medal_military:"🎖",medal_sports:"🏅",mega:"📣",melon:"🍈",memo:"📝",men_wrestling:"🤼&zwj;♂️",menorah:"🕎",mens:"🚹",metal:"🤘",metro:"🚇",microphone:"🎤",microscope:"🔬",milk_glass:"🥛",milky_way:"🌌",minibus:"🚐",minidisc:"💽",mobile_phone_off:"📴",money_mouth_face:"🤑",money_with_wings:"💸",moneybag:"💰",monkey:"🐒",monkey_face:"🐵",monorail:"🚝",moon:"🌔",mortar_board:"🎓",mosque:"🕌",motor_boat:"🛥",motor_scooter:"🛵",motorcycle:"🏍",motorway:"🛣",mount_fuji:"🗻",mountain:"⛰",mountain_biking_man:"🚵",mountain_biking_woman:"🚵&zwj;♀️",mountain_cableway:"🚠",mountain_railway:"🚞",mountain_snow:"🏔",mouse:"🐭",mouse2:"🐁",movie_camera:"🎥",moyai:"🗿",mrs_claus:"🤶",muscle:"💪",mushroom:"🍄",musical_keyboard:"🎹",musical_note:"🎵",musical_score:"🎼",mute:"🔇",nail_care:"💅",name_badge:"📛",national_park:"🏞",nauseated_face:"🤢",necktie:"👔",negative_squared_cross_mark:"❎",nerd_face:"🤓",neutral_face:"😐",new:"🆕",new_moon:"🌑",new_moon_with_face:"🌚",newspaper:"📰",newspaper_roll:"🗞",next_track_button:"⏭",ng:"🆖",no_good_man:"🙅&zwj;♂️",no_good_woman:"🙅",night_with_stars:"🌃",no_bell:"🔕",no_bicycles:"🚳",no_entry:"⛔️",no_entry_sign:"🚫",no_mobile_phones:"📵",no_mouth:"😶",no_pedestrians:"🚷",no_smoking:"🚭","non-potable_water":"🚱",nose:"👃",notebook:"📓",notebook_with_decorative_cover:"📔",notes:"🎶",nut_and_bolt:"🔩",o:"⭕️",o2:"🅾️",ocean:"🌊",octopus:"🐙",oden:"🍢",office:"🏢",oil_drum:"🛢",ok:"🆗",ok_hand:"👌",ok_man:"🙆&zwj;♂️",ok_woman:"🙆",old_key:"🗝",older_man:"👴",older_woman:"👵",om:"🕉",on:"🔛",oncoming_automobile:"🚘",oncoming_bus:"🚍",oncoming_police_car:"🚔",oncoming_taxi:"🚖",open_file_folder:"📂",open_hands:"👐",open_mouth:"😮",open_umbrella:"☂️",ophiuchus:"⛎",orange_book:"📙",orthodox_cross:"☦️",outbox_tray:"📤",owl:"🦉",ox:"🐂",package:"📦",page_facing_up:"📄",page_with_curl:"📃",pager:"📟",paintbrush:"🖌",palm_tree:"🌴",pancakes:"🥞",panda_face:"🐼",paperclip:"📎",paperclips:"🖇",parasol_on_ground:"⛱",parking:"🅿️",part_alternation_mark:"〽️",partly_sunny:"⛅️",passenger_ship:"🛳",passport_control:"🛂",pause_button:"⏸",peace_symbol:"☮️",peach:"🍑",peanuts:"🥜",pear:"🍐",pen:"🖊",pencil2:"✏️",penguin:"🐧",pensive:"😔",performing_arts:"🎭",persevere:"😣",person_fencing:"🤺",pouting_woman:"🙎",phone:"☎️",pick:"⛏",pig:"🐷",pig2:"🐖",pig_nose:"🐽",pill:"💊",pineapple:"🍍",ping_pong:"🏓",pisces:"♓️",pizza:"🍕",place_of_worship:"🛐",plate_with_cutlery:"🍽",play_or_pause_button:"⏯",point_down:"👇",point_left:"👈",point_right:"👉",point_up:"☝️",point_up_2:"👆",police_car:"🚓",policewoman:"👮&zwj;♀️",poodle:"🐩",popcorn:"🍿",post_office:"🏣",postal_horn:"📯",postbox:"📮",potable_water:"🚰",potato:"🥔",pouch:"👝",poultry_leg:"🍗",pound:"💷",rage:"😡",pouting_cat:"😾",pouting_man:"🙎&zwj;♂️",pray:"🙏",prayer_beads:"📿",pregnant_woman:"🤰",previous_track_button:"⏮",prince:"🤴",princess:"👸",printer:"🖨",purple_heart:"💜",purse:"👛",pushpin:"📌",put_litter_in_its_place:"🚮",question:"❓",rabbit:"🐰",rabbit2:"🐇",racehorse:"🐎",racing_car:"🏎",radio:"📻",radio_button:"🔘",radioactive:"☢️",railway_car:"🚃",railway_track:"🛤",rainbow:"🌈",rainbow_flag:"🏳️&zwj;🌈",raised_back_of_hand:"🤚",raised_hand_with_fingers_splayed:"🖐",raised_hands:"🙌",raising_hand_woman:"🙋",raising_hand_man:"🙋&zwj;♂️",ram:"🐏",ramen:"🍜",rat:"🐀",record_button:"⏺",recycle:"♻️",red_circle:"🔴",registered:"®️",relaxed:"☺️",relieved:"😌",reminder_ribbon:"🎗",repeat:"🔁",repeat_one:"🔂",rescue_worker_helmet:"⛑",restroom:"🚻",revolving_hearts:"💞",rewind:"⏪",rhinoceros:"🦏",ribbon:"🎀",rice:"🍚",rice_ball:"🍙",rice_cracker:"🍘",rice_scene:"🎑",right_anger_bubble:"🗯",ring:"💍",robot:"🤖",rocket:"🚀",rofl:"🤣",roll_eyes:"🙄",roller_coaster:"🎢",rooster:"🐓",rose:"🌹",rosette:"🏵",rotating_light:"🚨",round_pushpin:"📍",rowing_man:"🚣",rowing_woman:"🚣&zwj;♀️",rugby_football:"🏉",running_man:"🏃",running_shirt_with_sash:"🎽",running_woman:"🏃&zwj;♀️",sa:"🈂️",sagittarius:"♐️",sake:"🍶",sandal:"👡",santa:"🎅",satellite:"📡",saxophone:"🎷",school:"🏫",school_satchel:"🎒",scissors:"✂️",scorpion:"🦂",scorpius:"♏️",scream:"😱",scream_cat:"🙀",scroll:"📜",seat:"💺",secret:"㊙️",see_no_evil:"🙈",seedling:"🌱",selfie:"🤳",shallow_pan_of_food:"🥘",shamrock:"☘️",shark:"🦈",shaved_ice:"🍧",sheep:"🐑",shell:"🐚",shield:"🛡",shinto_shrine:"⛩",ship:"🚢",shirt:"👕",shopping:"🛍",shopping_cart:"🛒",shower:"🚿",shrimp:"🦐",signal_strength:"📶",six_pointed_star:"🔯",ski:"🎿",skier:"⛷",skull:"💀",skull_and_crossbones:"☠️",sleeping:"😴",sleeping_bed:"🛌",sleepy:"😪",slightly_frowning_face:"🙁",slightly_smiling_face:"🙂",slot_machine:"🎰",small_airplane:"🛩",small_blue_diamond:"🔹",small_orange_diamond:"🔸",small_red_triangle:"🔺",small_red_triangle_down:"🔻",smile:"😄",smile_cat:"😸",smiley:"😃",smiley_cat:"😺",smiling_imp:"😈",smirk:"😏",smirk_cat:"😼",smoking:"🚬",snail:"🐌",snake:"🐍",sneezing_face:"🤧",snowboarder:"🏂",snowflake:"❄️",snowman:"⛄️",snowman_with_snow:"☃️",sob:"😭",soccer:"⚽️",soon:"🔜",sos:"🆘",sound:"🔉",space_invader:"👾",spades:"♠️",spaghetti:"🍝",sparkle:"❇️",sparkler:"🎇",sparkles:"✨",sparkling_heart:"💖",speak_no_evil:"🙊",speaker:"🔈",speaking_head:"🗣",speech_balloon:"💬",speedboat:"🚤",spider:"🕷",spider_web:"🕸",spiral_calendar:"🗓",spiral_notepad:"🗒",spoon:"🥄",squid:"🦑",stadium:"🏟",star:"⭐️",star2:"🌟",star_and_crescent:"☪️",star_of_david:"✡️",stars:"🌠",station:"🚉",statue_of_liberty:"🗽",steam_locomotive:"🚂",stew:"🍲",stop_button:"⏹",stop_sign:"🛑",stopwatch:"⏱",straight_ruler:"📏",strawberry:"🍓",stuck_out_tongue:"😛",stuck_out_tongue_closed_eyes:"😝",stuck_out_tongue_winking_eye:"😜",studio_microphone:"🎙",stuffed_flatbread:"🥙",sun_behind_large_cloud:"🌥",sun_behind_rain_cloud:"🌦",sun_behind_small_cloud:"🌤",sun_with_face:"🌞",sunflower:"🌻",sunglasses:"😎",sunny:"☀️",sunrise:"🌅",sunrise_over_mountains:"🌄",surfing_man:"🏄",surfing_woman:"🏄&zwj;♀️",sushi:"🍣",suspension_railway:"🚟",sweat:"😓",sweat_drops:"💦",sweat_smile:"😅",sweet_potato:"🍠",swimming_man:"🏊",swimming_woman:"🏊&zwj;♀️",symbols:"🔣",synagogue:"🕍",syringe:"💉",taco:"🌮",tada:"🎉",tanabata_tree:"🎋",taurus:"♉️",taxi:"🚕",tea:"🍵",telephone_receiver:"📞",telescope:"🔭",tennis:"🎾",tent:"⛺️",thermometer:"🌡",thinking:"🤔",thought_balloon:"💭",ticket:"🎫",tickets:"🎟",tiger:"🐯",tiger2:"🐅",timer_clock:"⏲",tipping_hand_man:"💁&zwj;♂️",tired_face:"😫",tm:"™️",toilet:"🚽",tokyo_tower:"🗼",tomato:"🍅",tongue:"👅",top:"🔝",tophat:"🎩",tornado:"🌪",trackball:"🖲",tractor:"🚜",traffic_light:"🚥",train:"🚋",train2:"🚆",tram:"🚊",triangular_flag_on_post:"🚩",triangular_ruler:"📐",trident:"🔱",triumph:"😤",trolleybus:"🚎",trophy:"🏆",tropical_drink:"🍹",tropical_fish:"🐠",truck:"🚚",trumpet:"🎺",tulip:"🌷",tumbler_glass:"🥃",turkey:"🦃",turtle:"🐢",tv:"📺",twisted_rightwards_arrows:"🔀",two_hearts:"💕",two_men_holding_hands:"👬",two_women_holding_hands:"👭",u5272:"🈹",u5408:"🈴",u55b6:"🈺",u6307:"🈯️",u6708:"🈷️",u6709:"🈶",u6e80:"🈵",u7121:"🈚️",u7533:"🈸",u7981:"🈲",u7a7a:"🈳",umbrella:"☔️",unamused:"😒",underage:"🔞",unicorn:"🦄",unlock:"🔓",up:"🆙",upside_down_face:"🙃",v:"✌️",vertical_traffic_light:"🚦",vhs:"📼",vibration_mode:"📳",video_camera:"📹",video_game:"🎮",violin:"🎻",virgo:"♍️",volcano:"🌋",volleyball:"🏐",vs:"🆚",vulcan_salute:"🖖",walking_man:"🚶",walking_woman:"🚶&zwj;♀️",waning_crescent_moon:"🌘",waning_gibbous_moon:"🌖",warning:"⚠️",wastebasket:"🗑",watch:"⌚️",water_buffalo:"🐃",watermelon:"🍉",wave:"👋",wavy_dash:"〰️",waxing_crescent_moon:"🌒",wc:"🚾",weary:"😩",wedding:"💒",weight_lifting_man:"🏋️",weight_lifting_woman:"🏋️&zwj;♀️",whale:"🐳",whale2:"🐋",wheel_of_dharma:"☸️",wheelchair:"♿️",white_check_mark:"✅",white_circle:"⚪️",white_flag:"🏳️",white_flower:"💮",white_large_square:"⬜️",white_medium_small_square:"◽️",white_medium_square:"◻️",white_small_square:"▫️",white_square_button:"🔳",wilted_flower:"🥀",wind_chime:"🎐",wind_face:"🌬",wine_glass:"🍷",wink:"😉",wolf:"🐺",woman:"👩",woman_artist:"👩&zwj;🎨",woman_astronaut:"👩&zwj;🚀",woman_cartwheeling:"🤸&zwj;♀️",woman_cook:"👩&zwj;🍳",woman_facepalming:"🤦&zwj;♀️",woman_factory_worker:"👩&zwj;🏭",woman_farmer:"👩&zwj;🌾",woman_firefighter:"👩&zwj;🚒",woman_health_worker:"👩&zwj;⚕️",woman_judge:"👩&zwj;⚖️",woman_juggling:"🤹&zwj;♀️",woman_mechanic:"👩&zwj;🔧",woman_office_worker:"👩&zwj;💼",woman_pilot:"👩&zwj;✈️",woman_playing_handball:"🤾&zwj;♀️",woman_playing_water_polo:"🤽&zwj;♀️",woman_scientist:"👩&zwj;🔬",woman_shrugging:"🤷&zwj;♀️",woman_singer:"👩&zwj;🎤",woman_student:"👩&zwj;🎓",woman_teacher:"👩&zwj;🏫",woman_technologist:"👩&zwj;💻",woman_with_turban:"👳&zwj;♀️",womans_clothes:"👚",womans_hat:"👒",women_wrestling:"🤼&zwj;♀️",womens:"🚺",world_map:"🗺",worried:"😟",wrench:"🔧",writing_hand:"✍️",x:"❌",yellow_heart:"💛",yen:"💴",yin_yang:"☯️",yum:"😋",zap:"⚡️",zipper_mouth_face:"🤐",zzz:"💤",octocat:'<img alt=":octocat:" height="20" width="20" align="absmiddle" src="https://assets-cdn.github.com/images/icons/emoji/octocat.png">',showdown:`<span style="font-family: 'Anonymous Pro', monospace; text-decoration: underline; text-decoration-style: dashed; text-decoration-color: #3e8b8a;text-underline-position: under;">S</span>`},n.Converter=function(h){var g={},y=[],S=[],A={},k=o,F={parsed:{},raw:"",format:""};P();function P(){h=h||{};for(var O in s)s.hasOwnProperty(O)&&(g[O]=s[O]);if(typeof h=="object")for(var M in h)h.hasOwnProperty(M)&&(g[M]=h[M]);else throw Error("Converter expects the passed parameter to be an object, but "+typeof h+" was passed instead.");g.extensions&&n.helper.forEach(g.extensions,j)}function j(O,M){if(M=M||null,n.helper.isString(O))if(O=n.helper.stdExtName(O),M=O,n.extensions[O]){console.warn("DEPRECATION WARNING: "+O+" is an old extension that uses a deprecated loading method.Please inform the developer that the extension should be updated!"),N(n.extensions[O],O);return}else if(!n.helper.isUndefined(i[O]))O=i[O];else throw Error('Extension "'+O+'" could not be loaded. It was either not found or is not a valid extension.');typeof O=="function"&&(O=O()),n.helper.isArray(O)||(O=[O]);var V=l(O,M);if(!V.valid)throw Error(V.error);for(var L=0;L<O.length;++L){switch(O[L].type){case"lang":y.push(O[L]);break;case"output":S.push(O[L]);break}if(O[L].hasOwnProperty("listeners"))for(var W in O[L].listeners)O[L].listeners.hasOwnProperty(W)&&I(W,O[L].listeners[W])}}function N(O,M){typeof O=="function"&&(O=O(new n.Converter)),n.helper.isArray(O)||(O=[O]);var V=l(O,M);if(!V.valid)throw Error(V.error);for(var L=0;L<O.length;++L)switch(O[L].type){case"lang":y.push(O[L]);break;case"output":S.push(O[L]);break;default:throw Error("Extension loader error: Type unrecognized!!!")}}function I(O,M){if(!n.helper.isString(O))throw Error("Invalid argument in converter.listen() method: name must be a string, but "+typeof O+" given");if(typeof M!="function")throw Error("Invalid argument in converter.listen() method: callback must be a function, but "+typeof M+" given");A.hasOwnProperty(O)||(A[O]=[]),A[O].push(M)}function B(O){var M=O.match(/^\s*/)[0].length,V=new RegExp("^\\s{0,"+M+"}","gm");return O.replace(V,"")}this._dispatch=function(M,V,L,W){if(A.hasOwnProperty(M))for(var G=0;G<A[M].length;++G){var H=A[M][G](M,V,this,L,W);H&&typeof H<"u"&&(V=H)}return V},this.listen=function(O,M){return I(O,M),this},this.makeHtml=function(O){if(!O)return O;var M={gHtmlBlocks:[],gHtmlMdBlocks:[],gHtmlSpans:[],gUrls:{},gTitles:{},gDimensions:{},gListLevel:0,hashLinkCounts:{},langExtensions:y,outputModifiers:S,converter:this,ghCodeBlocks:[],metadata:{parsed:{},raw:"",format:""}};return O=O.replace(/¨/g,"¨T"),O=O.replace(/\$/g,"¨D"),O=O.replace(/\r\n/g,`
144
+ `),O=O.replace(/\r/g,`
145
+ `),O=O.replace(/\u00A0/g,"&nbsp;"),g.smartIndentationFix&&(O=B(O)),O=`
146
+
147
+ `+O+`
148
+
149
+ `,O=n.subParser("detab")(O,g,M),O=O.replace(/^[ \t]+$/mg,""),n.helper.forEach(y,function(V){O=n.subParser("runExtension")(V,O,g,M)}),O=n.subParser("metadata")(O,g,M),O=n.subParser("hashPreCodeTags")(O,g,M),O=n.subParser("githubCodeBlocks")(O,g,M),O=n.subParser("hashHTMLBlocks")(O,g,M),O=n.subParser("hashCodeTags")(O,g,M),O=n.subParser("stripLinkDefinitions")(O,g,M),O=n.subParser("blockGamut")(O,g,M),O=n.subParser("unhashHTMLSpans")(O,g,M),O=n.subParser("unescapeSpecialChars")(O,g,M),O=O.replace(/¨D/g,"$$"),O=O.replace(/¨T/g,"¨"),O=n.subParser("completeHTMLDocument")(O,g,M),n.helper.forEach(S,function(V){O=n.subParser("runExtension")(V,O,g,M)}),F=M.metadata,O},this.makeMarkdown=this.makeMd=function(O,M){if(O=O.replace(/\r\n/g,`
150
+ `),O=O.replace(/\r/g,`
151
+ `),O=O.replace(/>[ \t]+</,">¨NBSP;<"),!M)if(window&&window.document)M=window.document;else throw new Error("HTMLParser is undefined. If in a webworker or nodejs environment, you need to provide a WHATWG DOM and HTML such as JSDOM");var V=M.createElement("div");V.innerHTML=O;var L={preList:K(V)};Q(V);for(var W=V.childNodes,G="",H=0;H<W.length;H++)G+=n.subParser("makeMarkdown.node")(W[H],L);function Q(te){for(var se=0;se<te.childNodes.length;++se){var le=te.childNodes[se];le.nodeType===3?!/\S/.test(le.nodeValue)&&!/^[ ]+$/.test(le.nodeValue)?(te.removeChild(le),--se):(le.nodeValue=le.nodeValue.split(`
152
+ `).join(" "),le.nodeValue=le.nodeValue.replace(/(\s)+/g,"$1")):le.nodeType===1&&Q(le)}}function K(te){for(var se=te.querySelectorAll("pre"),le=[],ge=0;ge<se.length;++ge)if(se[ge].childElementCount===1&&se[ge].firstChild.tagName.toLowerCase()==="code"){var ye=se[ge].firstChild.innerHTML.trim(),be=se[ge].firstChild.getAttribute("data-language")||"";if(be==="")for(var Be=se[ge].firstChild.className.split(" "),J=0;J<Be.length;++J){var qe=Be[J].match(/^language-(.+)$/);if(qe!==null){be=qe[1];break}}ye=n.helper.unescapeHTMLEntities(ye),le.push(ye),se[ge].outerHTML='<precode language="'+be+'" precodenum="'+ge.toString()+'"></precode>'}else le.push(se[ge].innerHTML),se[ge].innerHTML="",se[ge].setAttribute("prenum",ge.toString());return le}return G},this.setOption=function(O,M){g[O]=M},this.getOption=function(O){return g[O]},this.getOptions=function(){return g},this.addExtension=function(O,M){M=M||null,j(O,M)},this.useExtension=function(O){j(O)},this.setFlavor=function(O){if(!u.hasOwnProperty(O))throw Error(O+" flavor was not found");var M=u[O];k=O;for(var V in M)M.hasOwnProperty(V)&&(g[V]=M[V])},this.getFlavor=function(){return k},this.removeExtension=function(O){n.helper.isArray(O)||(O=[O]);for(var M=0;M<O.length;++M){for(var V=O[M],L=0;L<y.length;++L)y[L]===V&&y.splice(L,1);for(var W=0;W<S.length;++W)S[W]===V&&S.splice(W,1)}},this.getAllExtensions=function(){return{language:y,output:S}},this.getMetadata=function(O){return O?F.raw:F.parsed},this.getMetadataFormat=function(){return F.format},this._setMetadataPair=function(O,M){F.parsed[O]=M},this._setMetadataFormat=function(O){F.format=O},this._setMetadataRaw=function(O){F.raw=O}},n.subParser("anchors",function(h,g,y){h=y.converter._dispatch("anchors.before",h,g,y);var S=function(A,k,F,P,j,N,I){if(n.helper.isUndefined(I)&&(I=""),F=F.toLowerCase(),A.search(/\(<?\s*>? ?(['"].*['"])?\)$/m)>-1)P="";else if(!P)if(F||(F=k.toLowerCase().replace(/ ?\n/g," ")),P="#"+F,!n.helper.isUndefined(y.gUrls[F]))P=y.gUrls[F],n.helper.isUndefined(y.gTitles[F])||(I=y.gTitles[F]);else return A;P=P.replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback);var B='<a href="'+P+'"';return I!==""&&I!==null&&(I=I.replace(/"/g,"&quot;"),I=I.replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback),B+=' title="'+I+'"'),g.openLinksInNewWindow&&!/^#/.test(P)&&(B+=' rel="noopener noreferrer" target="¨E95Eblank"'),B+=">"+k+"</a>",B};return h=h.replace(/\[((?:\[[^\]]*]|[^\[\]])*)] ?(?:\n *)?\[(.*?)]()()()()/g,S),h=h.replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<([^>]*)>(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,S),h=h.replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,S),h=h.replace(/\[([^\[\]]+)]()()()()()/g,S),g.ghMentions&&(h=h.replace(/(^|\s)(\\)?(@([a-z\d]+(?:[a-z\d.-]+?[a-z\d]+)*))/gmi,function(A,k,F,P,j){if(F==="\\")return k+P;if(!n.helper.isString(g.ghMentionsLink))throw new Error("ghMentionsLink option must be a string");var N=g.ghMentionsLink.replace(/\{u}/g,j),I="";return g.openLinksInNewWindow&&(I=' rel="noopener noreferrer" target="¨E95Eblank"'),k+'<a href="'+N+'"'+I+">"+P+"</a>"})),h=y.converter._dispatch("anchors.after",h,g,y),h});var p=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+?\.[^'">\s]+?)()(\1)?(?=\s|$)(?!["<>])/gi,v=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+?)([.!?,()\[\]])?(\1)?(?=\s|$)(?!["<>])/gi,_=/()<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)()>()/gi,x=/(^|\s)(?:mailto:)?([A-Za-z0-9!#$%&'*+-/=?^_`{|}~.]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?=$|\s)/gmi,w=/<()(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi,C=function(h){return function(g,y,S,A,k,F,P){S=S.replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback);var j=S,N="",I="",B=y||"",O=P||"";return/^www\./i.test(S)&&(S=S.replace(/^www\./i,"http://www.")),h.excludeTrailingPunctuationFromURLs&&F&&(N=F),h.openLinksInNewWindow&&(I=' rel="noopener noreferrer" target="¨E95Eblank"'),B+'<a href="'+S+'"'+I+">"+j+"</a>"+N+O}},E=function(h,g){return function(y,S,A){var k="mailto:";return S=S||"",A=n.subParser("unescapeSpecialChars")(A,h,g),h.encodeEmails?(k=n.helper.encodeEmailAddress(k+A),A=n.helper.encodeEmailAddress(A)):k=k+A,S+'<a href="'+k+'">'+A+"</a>"}};n.subParser("autoLinks",function(h,g,y){return h=y.converter._dispatch("autoLinks.before",h,g,y),h=h.replace(_,C(g)),h=h.replace(w,E(g,y)),h=y.converter._dispatch("autoLinks.after",h,g,y),h}),n.subParser("simplifiedAutoLinks",function(h,g,y){return g.simplifiedAutoLink&&(h=y.converter._dispatch("simplifiedAutoLinks.before",h,g,y),g.excludeTrailingPunctuationFromURLs?h=h.replace(v,C(g)):h=h.replace(p,C(g)),h=h.replace(x,E(g,y)),h=y.converter._dispatch("simplifiedAutoLinks.after",h,g,y)),h}),n.subParser("blockGamut",function(h,g,y){return h=y.converter._dispatch("blockGamut.before",h,g,y),h=n.subParser("blockQuotes")(h,g,y),h=n.subParser("headers")(h,g,y),h=n.subParser("horizontalRule")(h,g,y),h=n.subParser("lists")(h,g,y),h=n.subParser("codeBlocks")(h,g,y),h=n.subParser("tables")(h,g,y),h=n.subParser("hashHTMLBlocks")(h,g,y),h=n.subParser("paragraphs")(h,g,y),h=y.converter._dispatch("blockGamut.after",h,g,y),h}),n.subParser("blockQuotes",function(h,g,y){h=y.converter._dispatch("blockQuotes.before",h,g,y),h=h+`
153
+
154
+ `;var S=/(^ {0,3}>[ \t]?.+\n(.+\n)*\n*)+/gm;return g.splitAdjacentBlockquotes&&(S=/^ {0,3}>[\s\S]*?(?:\n\n)/gm),h=h.replace(S,function(A){return A=A.replace(/^[ \t]*>[ \t]?/gm,""),A=A.replace(/¨0/g,""),A=A.replace(/^[ \t]+$/gm,""),A=n.subParser("githubCodeBlocks")(A,g,y),A=n.subParser("blockGamut")(A,g,y),A=A.replace(/(^|\n)/g,"$1 "),A=A.replace(/(\s*<pre>[^\r]+?<\/pre>)/gm,function(k,F){var P=F;return P=P.replace(/^ /mg,"¨0"),P=P.replace(/¨0/g,""),P}),n.subParser("hashBlock")(`<blockquote>
155
+ `+A+`
156
+ </blockquote>`,g,y)}),h=y.converter._dispatch("blockQuotes.after",h,g,y),h}),n.subParser("codeBlocks",function(h,g,y){h=y.converter._dispatch("codeBlocks.before",h,g,y),h+="¨0";var S=/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=¨0))/g;return h=h.replace(S,function(A,k,F){var P=k,j=F,N=`
157
+ `;return P=n.subParser("outdent")(P,g,y),P=n.subParser("encodeCode")(P,g,y),P=n.subParser("detab")(P,g,y),P=P.replace(/^\n+/g,""),P=P.replace(/\n+$/g,""),g.omitExtraWLInCodeBlocks&&(N=""),P="<pre><code>"+P+N+"</code></pre>",n.subParser("hashBlock")(P,g,y)+j}),h=h.replace(/¨0/,""),h=y.converter._dispatch("codeBlocks.after",h,g,y),h}),n.subParser("codeSpans",function(h,g,y){return h=y.converter._dispatch("codeSpans.before",h,g,y),typeof h>"u"&&(h=""),h=h.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,function(S,A,k,F){var P=F;return P=P.replace(/^([ \t]*)/g,""),P=P.replace(/[ \t]*$/g,""),P=n.subParser("encodeCode")(P,g,y),P=A+"<code>"+P+"</code>",P=n.subParser("hashHTMLSpans")(P,g,y),P}),h=y.converter._dispatch("codeSpans.after",h,g,y),h}),n.subParser("completeHTMLDocument",function(h,g,y){if(!g.completeHTMLDocument)return h;h=y.converter._dispatch("completeHTMLDocument.before",h,g,y);var S="html",A=`<!DOCTYPE HTML>
158
+ `,k="",F=`<meta charset="utf-8">
159
+ `,P="",j="";typeof y.metadata.parsed.doctype<"u"&&(A="<!DOCTYPE "+y.metadata.parsed.doctype+`>
160
+ `,S=y.metadata.parsed.doctype.toString().toLowerCase(),(S==="html"||S==="html5")&&(F='<meta charset="utf-8">'));for(var N in y.metadata.parsed)if(y.metadata.parsed.hasOwnProperty(N))switch(N.toLowerCase()){case"doctype":break;case"title":k="<title>"+y.metadata.parsed.title+`</title>
161
+ `;break;case"charset":S==="html"||S==="html5"?F='<meta charset="'+y.metadata.parsed.charset+`">
162
+ `:F='<meta name="charset" content="'+y.metadata.parsed.charset+`">
163
+ `;break;case"language":case"lang":P=' lang="'+y.metadata.parsed[N]+'"',j+='<meta name="'+N+'" content="'+y.metadata.parsed[N]+`">
164
+ `;break;default:j+='<meta name="'+N+'" content="'+y.metadata.parsed[N]+`">
165
+ `}return h=A+"<html"+P+`>
166
+ <head>
167
+ `+k+F+j+`</head>
168
+ <body>
169
+ `+h.trim()+`
170
+ </body>
171
+ </html>`,h=y.converter._dispatch("completeHTMLDocument.after",h,g,y),h}),n.subParser("detab",function(h,g,y){return h=y.converter._dispatch("detab.before",h,g,y),h=h.replace(/\t(?=\t)/g," "),h=h.replace(/\t/g,"¨A¨B"),h=h.replace(/¨B(.+?)¨A/g,function(S,A){for(var k=A,F=4-k.length%4,P=0;P<F;P++)k+=" ";return k}),h=h.replace(/¨A/g," "),h=h.replace(/¨B/g,""),h=y.converter._dispatch("detab.after",h,g,y),h}),n.subParser("ellipsis",function(h,g,y){return g.ellipsis&&(h=y.converter._dispatch("ellipsis.before",h,g,y),h=h.replace(/\.\.\./g,"…"),h=y.converter._dispatch("ellipsis.after",h,g,y)),h}),n.subParser("emoji",function(h,g,y){if(!g.emoji)return h;h=y.converter._dispatch("emoji.before",h,g,y);var S=/:([\S]+?):/g;return h=h.replace(S,function(A,k){return n.helper.emojis.hasOwnProperty(k)?n.helper.emojis[k]:A}),h=y.converter._dispatch("emoji.after",h,g,y),h}),n.subParser("encodeAmpsAndAngles",function(h,g,y){return h=y.converter._dispatch("encodeAmpsAndAngles.before",h,g,y),h=h.replace(/&(?!#?[xX]?(?:[0-9a-fA-F]+|\w+);)/g,"&amp;"),h=h.replace(/<(?![a-z\/?$!])/gi,"&lt;"),h=h.replace(/</g,"&lt;"),h=h.replace(/>/g,"&gt;"),h=y.converter._dispatch("encodeAmpsAndAngles.after",h,g,y),h}),n.subParser("encodeBackslashEscapes",function(h,g,y){return h=y.converter._dispatch("encodeBackslashEscapes.before",h,g,y),h=h.replace(/\\(\\)/g,n.helper.escapeCharactersCallback),h=h.replace(/\\([`*_{}\[\]()>#+.!~=|:-])/g,n.helper.escapeCharactersCallback),h=y.converter._dispatch("encodeBackslashEscapes.after",h,g,y),h}),n.subParser("encodeCode",function(h,g,y){return h=y.converter._dispatch("encodeCode.before",h,g,y),h=h.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/([*_{}\[\]\\=~-])/g,n.helper.escapeCharactersCallback),h=y.converter._dispatch("encodeCode.after",h,g,y),h}),n.subParser("escapeSpecialCharsWithinTagAttributes",function(h,g,y){h=y.converter._dispatch("escapeSpecialCharsWithinTagAttributes.before",h,g,y);var S=/<\/?[a-z\d_:-]+(?:[\s]+[\s\S]+?)?>/gi,A=/<!(--(?:(?:[^>-]|-[^>])(?:[^-]|-[^-])*)--)>/gi;return h=h.replace(S,function(k){return k.replace(/(.)<\/?code>(?=.)/g,"$1`").replace(/([\\`*_~=|])/g,n.helper.escapeCharactersCallback)}),h=h.replace(A,function(k){return k.replace(/([\\`*_~=|])/g,n.helper.escapeCharactersCallback)}),h=y.converter._dispatch("escapeSpecialCharsWithinTagAttributes.after",h,g,y),h}),n.subParser("githubCodeBlocks",function(h,g,y){return g.ghCodeBlocks?(h=y.converter._dispatch("githubCodeBlocks.before",h,g,y),h+="¨0",h=h.replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*)\n([\s\S]*?)\n(?: {0,3})\1/g,function(S,A,k,F){var P=g.omitExtraWLInCodeBlocks?"":`
172
+ `;return F=n.subParser("encodeCode")(F,g,y),F=n.subParser("detab")(F,g,y),F=F.replace(/^\n+/g,""),F=F.replace(/\n+$/g,""),F="<pre><code"+(k?' class="'+k+" language-"+k+'"':"")+">"+F+P+"</code></pre>",F=n.subParser("hashBlock")(F,g,y),`
173
+
174
+ ¨G`+(y.ghCodeBlocks.push({text:S,codeblock:F})-1)+`G
175
+
176
+ `}),h=h.replace(/¨0/,""),y.converter._dispatch("githubCodeBlocks.after",h,g,y)):h}),n.subParser("hashBlock",function(h,g,y){return h=y.converter._dispatch("hashBlock.before",h,g,y),h=h.replace(/(^\n+|\n+$)/g,""),h=`
177
+
178
+ ¨K`+(y.gHtmlBlocks.push(h)-1)+`K
179
+
180
+ `,h=y.converter._dispatch("hashBlock.after",h,g,y),h}),n.subParser("hashCodeTags",function(h,g,y){h=y.converter._dispatch("hashCodeTags.before",h,g,y);var S=function(A,k,F,P){var j=F+n.subParser("encodeCode")(k,g,y)+P;return"¨C"+(y.gHtmlSpans.push(j)-1)+"C"};return h=n.helper.replaceRecursiveRegExp(h,S,"<code\\b[^>]*>","</code>","gim"),h=y.converter._dispatch("hashCodeTags.after",h,g,y),h}),n.subParser("hashElement",function(h,g,y){return function(S,A){var k=A;return k=k.replace(/\n\n/g,`
181
+ `),k=k.replace(/^\n/,""),k=k.replace(/\n+$/g,""),k=`
182
+
183
+ ¨K`+(y.gHtmlBlocks.push(k)-1)+`K
184
+
185
+ `,k}}),n.subParser("hashHTMLBlocks",function(h,g,y){h=y.converter._dispatch("hashHTMLBlocks.before",h,g,y);var S=["pre","div","h1","h2","h3","h4","h5","h6","blockquote","table","dl","ol","ul","script","noscript","form","fieldset","iframe","math","style","section","header","footer","nav","article","aside","address","audio","canvas","figure","hgroup","output","video","p"],A=function(O,M,V,L){var W=O;return V.search(/\bmarkdown\b/)!==-1&&(W=V+y.converter.makeHtml(M)+L),`
186
+
187
+ ¨K`+(y.gHtmlBlocks.push(W)-1)+`K
188
+
189
+ `};g.backslashEscapesHTMLTags&&(h=h.replace(/\\<(\/?[^>]+?)>/g,function(O,M){return"&lt;"+M+"&gt;"}));for(var k=0;k<S.length;++k)for(var F,P=new RegExp("^ {0,3}(<"+S[k]+"\\b[^>]*>)","im"),j="<"+S[k]+"\\b[^>]*>",N="</"+S[k]+">";(F=n.helper.regexIndexOf(h,P))!==-1;){var I=n.helper.splitAtIndex(h,F),B=n.helper.replaceRecursiveRegExp(I[1],A,j,N,"im");if(B===I[1])break;h=I[0].concat(B)}return h=h.replace(/(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,n.subParser("hashElement")(h,g,y)),h=n.helper.replaceRecursiveRegExp(h,function(O){return`
190
+
191
+ ¨K`+(y.gHtmlBlocks.push(O)-1)+`K
192
+
193
+ `},"^ {0,3}<!--","-->","gm"),h=h.replace(/(?:\n\n)( {0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,n.subParser("hashElement")(h,g,y)),h=y.converter._dispatch("hashHTMLBlocks.after",h,g,y),h}),n.subParser("hashHTMLSpans",function(h,g,y){h=y.converter._dispatch("hashHTMLSpans.before",h,g,y);function S(A){return"¨C"+(y.gHtmlSpans.push(A)-1)+"C"}return h=h.replace(/<[^>]+?\/>/gi,function(A){return S(A)}),h=h.replace(/<([^>]+?)>[\s\S]*?<\/\1>/g,function(A){return S(A)}),h=h.replace(/<([^>]+?)\s[^>]+?>[\s\S]*?<\/\1>/g,function(A){return S(A)}),h=h.replace(/<[^>]+?>/gi,function(A){return S(A)}),h=y.converter._dispatch("hashHTMLSpans.after",h,g,y),h}),n.subParser("unhashHTMLSpans",function(h,g,y){h=y.converter._dispatch("unhashHTMLSpans.before",h,g,y);for(var S=0;S<y.gHtmlSpans.length;++S){for(var A=y.gHtmlSpans[S],k=0;/¨C(\d+)C/.test(A);){var F=RegExp.$1;if(A=A.replace("¨C"+F+"C",y.gHtmlSpans[F]),k===10){console.error("maximum nesting of 10 spans reached!!!");break}++k}h=h.replace("¨C"+S+"C",A)}return h=y.converter._dispatch("unhashHTMLSpans.after",h,g,y),h}),n.subParser("hashPreCodeTags",function(h,g,y){h=y.converter._dispatch("hashPreCodeTags.before",h,g,y);var S=function(A,k,F,P){var j=F+n.subParser("encodeCode")(k,g,y)+P;return`
194
+
195
+ ¨G`+(y.ghCodeBlocks.push({text:A,codeblock:j})-1)+`G
196
+
197
+ `};return h=n.helper.replaceRecursiveRegExp(h,S,"^ {0,3}<pre\\b[^>]*>\\s*<code\\b[^>]*>","^ {0,3}</code>\\s*</pre>","gim"),h=y.converter._dispatch("hashPreCodeTags.after",h,g,y),h}),n.subParser("headers",function(h,g,y){h=y.converter._dispatch("headers.before",h,g,y);var S=isNaN(parseInt(g.headerLevelStart))?1:parseInt(g.headerLevelStart),A=g.smoothLivePreview?/^(.+)[ \t]*\n={2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n=+[ \t]*\n+/gm,k=g.smoothLivePreview?/^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n-+[ \t]*\n+/gm;h=h.replace(A,function(j,N){var I=n.subParser("spanGamut")(N,g,y),B=g.noHeaderId?"":' id="'+P(N)+'"',O=S,M="<h"+O+B+">"+I+"</h"+O+">";return n.subParser("hashBlock")(M,g,y)}),h=h.replace(k,function(j,N){var I=n.subParser("spanGamut")(N,g,y),B=g.noHeaderId?"":' id="'+P(N)+'"',O=S+1,M="<h"+O+B+">"+I+"</h"+O+">";return n.subParser("hashBlock")(M,g,y)});var F=g.requireSpaceBeforeHeadingText?/^(#{1,6})[ \t]+(.+?)[ \t]*#*\n+/gm:/^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm;h=h.replace(F,function(j,N,I){var B=I;g.customizedHeaderId&&(B=I.replace(/\s?\{([^{]+?)}\s*$/,""));var O=n.subParser("spanGamut")(B,g,y),M=g.noHeaderId?"":' id="'+P(I)+'"',V=S-1+N.length,L="<h"+V+M+">"+O+"</h"+V+">";return n.subParser("hashBlock")(L,g,y)});function P(j){var N,I;if(g.customizedHeaderId){var B=j.match(/\{([^{]+?)}\s*$/);B&&B[1]&&(j=B[1])}return N=j,n.helper.isString(g.prefixHeaderId)?I=g.prefixHeaderId:g.prefixHeaderId===!0?I="section-":I="",g.rawPrefixHeaderId||(N=I+N),g.ghCompatibleHeaderId?N=N.replace(/ /g,"-").replace(/&amp;/g,"").replace(/¨T/g,"").replace(/¨D/g,"").replace(/[&+$,\/:;=?@"#{}|^¨~\[\]`\\*)(%.!'<>]/g,"").toLowerCase():g.rawHeaderId?N=N.replace(/ /g,"-").replace(/&amp;/g,"&").replace(/¨T/g,"¨").replace(/¨D/g,"$").replace(/["']/g,"-").toLowerCase():N=N.replace(/[^\w]/g,"").toLowerCase(),g.rawPrefixHeaderId&&(N=I+N),y.hashLinkCounts[N]?N=N+"-"+y.hashLinkCounts[N]++:y.hashLinkCounts[N]=1,N}return h=y.converter._dispatch("headers.after",h,g,y),h}),n.subParser("horizontalRule",function(h,g,y){h=y.converter._dispatch("horizontalRule.before",h,g,y);var S=n.subParser("hashBlock")("<hr />",g,y);return h=h.replace(/^ {0,2}( ?-){3,}[ \t]*$/gm,S),h=h.replace(/^ {0,2}( ?\*){3,}[ \t]*$/gm,S),h=h.replace(/^ {0,2}( ?_){3,}[ \t]*$/gm,S),h=y.converter._dispatch("horizontalRule.after",h,g,y),h}),n.subParser("images",function(h,g,y){h=y.converter._dispatch("images.before",h,g,y);var S=/!\[([^\]]*?)][ \t]*()\([ \t]?<?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,A=/!\[([^\]]*?)][ \t]*()\([ \t]?<([^>]*)>(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(?:(["'])([^"]*?)\6))?[ \t]?\)/g,k=/!\[([^\]]*?)][ \t]*()\([ \t]?<?(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,F=/!\[([^\]]*?)] ?(?:\n *)?\[([\s\S]*?)]()()()()()/g,P=/!\[([^\[\]]+)]()()()()()/g;function j(I,B,O,M,V,L,W,G){return M=M.replace(/\s/g,""),N(I,B,O,M,V,L,W,G)}function N(I,B,O,M,V,L,W,G){var H=y.gUrls,Q=y.gTitles,K=y.gDimensions;if(O=O.toLowerCase(),G||(G=""),I.search(/\(<?\s*>? ?(['"].*['"])?\)$/m)>-1)M="";else if(M===""||M===null)if((O===""||O===null)&&(O=B.toLowerCase().replace(/ ?\n/g," ")),M="#"+O,!n.helper.isUndefined(H[O]))M=H[O],n.helper.isUndefined(Q[O])||(G=Q[O]),n.helper.isUndefined(K[O])||(V=K[O].width,L=K[O].height);else return I;B=B.replace(/"/g,"&quot;").replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback),M=M.replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback);var te='<img src="'+M+'" alt="'+B+'"';return G&&n.helper.isString(G)&&(G=G.replace(/"/g,"&quot;").replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback),te+=' title="'+G+'"'),V&&L&&(V=V==="*"?"auto":V,L=L==="*"?"auto":L,te+=' width="'+V+'"',te+=' height="'+L+'"'),te+=" />",te}return h=h.replace(F,N),h=h.replace(k,j),h=h.replace(A,N),h=h.replace(S,N),h=h.replace(P,N),h=y.converter._dispatch("images.after",h,g,y),h}),n.subParser("italicsAndBold",function(h,g,y){h=y.converter._dispatch("italicsAndBold.before",h,g,y);function S(A,k,F){return k+A+F}return g.literalMidWordUnderscores?(h=h.replace(/\b___(\S[\s\S]*?)___\b/g,function(A,k){return S(k,"<strong><em>","</em></strong>")}),h=h.replace(/\b__(\S[\s\S]*?)__\b/g,function(A,k){return S(k,"<strong>","</strong>")}),h=h.replace(/\b_(\S[\s\S]*?)_\b/g,function(A,k){return S(k,"<em>","</em>")})):(h=h.replace(/___(\S[\s\S]*?)___/g,function(A,k){return/\S$/.test(k)?S(k,"<strong><em>","</em></strong>"):A}),h=h.replace(/__(\S[\s\S]*?)__/g,function(A,k){return/\S$/.test(k)?S(k,"<strong>","</strong>"):A}),h=h.replace(/_([^\s_][\s\S]*?)_/g,function(A,k){return/\S$/.test(k)?S(k,"<em>","</em>"):A})),g.literalMidWordAsterisks?(h=h.replace(/([^*]|^)\B\*\*\*(\S[\s\S]*?)\*\*\*\B(?!\*)/g,function(A,k,F){return S(F,k+"<strong><em>","</em></strong>")}),h=h.replace(/([^*]|^)\B\*\*(\S[\s\S]*?)\*\*\B(?!\*)/g,function(A,k,F){return S(F,k+"<strong>","</strong>")}),h=h.replace(/([^*]|^)\B\*(\S[\s\S]*?)\*\B(?!\*)/g,function(A,k,F){return S(F,k+"<em>","</em>")})):(h=h.replace(/\*\*\*(\S[\s\S]*?)\*\*\*/g,function(A,k){return/\S$/.test(k)?S(k,"<strong><em>","</em></strong>"):A}),h=h.replace(/\*\*(\S[\s\S]*?)\*\*/g,function(A,k){return/\S$/.test(k)?S(k,"<strong>","</strong>"):A}),h=h.replace(/\*([^\s*][\s\S]*?)\*/g,function(A,k){return/\S$/.test(k)?S(k,"<em>","</em>"):A})),h=y.converter._dispatch("italicsAndBold.after",h,g,y),h}),n.subParser("lists",function(h,g,y){function S(F,P){y.gListLevel++,F=F.replace(/\n{2,}$/,`
198
+ `),F+="¨0";var j=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0| {0,3}([*+-]|\d+[.])[ \t]+))/gm,N=/\n[ \t]*\n(?!¨0)/.test(F);return g.disableForced4SpacesIndentedSublists&&(j=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0|\2([*+-]|\d+[.])[ \t]+))/gm),F=F.replace(j,function(I,B,O,M,V,L,W){W=W&&W.trim()!=="";var G=n.subParser("outdent")(V,g,y),H="";return L&&g.tasklists&&(H=' class="task-list-item" style="list-style-type: none;"',G=G.replace(/^[ \t]*\[(x|X| )?]/m,function(){var Q='<input type="checkbox" disabled style="margin: 0px 0.35em 0.25em -1.6em; vertical-align: middle;"';return W&&(Q+=" checked"),Q+=">",Q})),G=G.replace(/^([-*+]|\d\.)[ \t]+[\S\n ]*/g,function(Q){return"¨A"+Q}),B||G.search(/\n{2,}/)>-1?(G=n.subParser("githubCodeBlocks")(G,g,y),G=n.subParser("blockGamut")(G,g,y)):(G=n.subParser("lists")(G,g,y),G=G.replace(/\n$/,""),G=n.subParser("hashHTMLBlocks")(G,g,y),G=G.replace(/\n\n+/g,`
199
+
200
+ `),N?G=n.subParser("paragraphs")(G,g,y):G=n.subParser("spanGamut")(G,g,y)),G=G.replace("¨A",""),G="<li"+H+">"+G+`</li>
201
+ `,G}),F=F.replace(/¨0/g,""),y.gListLevel--,P&&(F=F.replace(/\s+$/,"")),F}function A(F,P){if(P==="ol"){var j=F.match(/^ *(\d+)\./);if(j&&j[1]!=="1")return' start="'+j[1]+'"'}return""}function k(F,P,j){var N=g.disableForced4SpacesIndentedSublists?/^ ?\d+\.[ \t]/gm:/^ {0,3}\d+\.[ \t]/gm,I=g.disableForced4SpacesIndentedSublists?/^ ?[*+-][ \t]/gm:/^ {0,3}[*+-][ \t]/gm,B=P==="ul"?N:I,O="";if(F.search(B)!==-1)(function V(L){var W=L.search(B),G=A(F,P);W!==-1?(O+=`
202
+
203
+ <`+P+G+`>
204
+ `+S(L.slice(0,W),!!j)+"</"+P+`>
205
+ `,P=P==="ul"?"ol":"ul",B=P==="ul"?N:I,V(L.slice(W))):O+=`
206
+
207
+ <`+P+G+`>
208
+ `+S(L,!!j)+"</"+P+`>
209
+ `})(F);else{var M=A(F,P);O=`
210
+
211
+ <`+P+M+`>
212
+ `+S(F,!!j)+"</"+P+`>
213
+ `}return O}return h=y.converter._dispatch("lists.before",h,g,y),h+="¨0",y.gListLevel?h=h.replace(/^(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,function(F,P,j){var N=j.search(/[*+-]/g)>-1?"ul":"ol";return k(P,N,!0)}):h=h.replace(/(\n\n|^\n?)(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,function(F,P,j,N){var I=N.search(/[*+-]/g)>-1?"ul":"ol";return k(j,I,!1)}),h=h.replace(/¨0/,""),h=y.converter._dispatch("lists.after",h,g,y),h}),n.subParser("metadata",function(h,g,y){if(!g.metadata)return h;h=y.converter._dispatch("metadata.before",h,g,y);function S(A){y.metadata.raw=A,A=A.replace(/&/g,"&amp;").replace(/"/g,"&quot;"),A=A.replace(/\n {4}/g," "),A.replace(/^([\S ]+): +([\s\S]+?)$/gm,function(k,F,P){return y.metadata.parsed[F]=P,""})}return h=h.replace(/^\s*«««+(\S*?)\n([\s\S]+?)\n»»»+\n/,function(A,k,F){return S(F),"¨M"}),h=h.replace(/^\s*---+(\S*?)\n([\s\S]+?)\n---+\n/,function(A,k,F){return k&&(y.metadata.format=k),S(F),"¨M"}),h=h.replace(/¨M/g,""),h=y.converter._dispatch("metadata.after",h,g,y),h}),n.subParser("outdent",function(h,g,y){return h=y.converter._dispatch("outdent.before",h,g,y),h=h.replace(/^(\t|[ ]{1,4})/gm,"¨0"),h=h.replace(/¨0/g,""),h=y.converter._dispatch("outdent.after",h,g,y),h}),n.subParser("paragraphs",function(h,g,y){h=y.converter._dispatch("paragraphs.before",h,g,y),h=h.replace(/^\n+/g,""),h=h.replace(/\n+$/g,"");for(var S=h.split(/\n{2,}/g),A=[],k=S.length,F=0;F<k;F++){var P=S[F];P.search(/¨(K|G)(\d+)\1/g)>=0?A.push(P):P.search(/\S/)>=0&&(P=n.subParser("spanGamut")(P,g,y),P=P.replace(/^([ \t]*)/g,"<p>"),P+="</p>",A.push(P))}for(k=A.length,F=0;F<k;F++){for(var j="",N=A[F],I=!1;/¨(K|G)(\d+)\1/.test(N);){var B=RegExp.$1,O=RegExp.$2;B==="K"?j=y.gHtmlBlocks[O]:I?j=n.subParser("encodeCode")(y.ghCodeBlocks[O].text,g,y):j=y.ghCodeBlocks[O].codeblock,j=j.replace(/\$/g,"$$$$"),N=N.replace(/(\n\n)?¨(K|G)\d+\2(\n\n)?/,j),/^<pre\b[^>]*>\s*<code\b[^>]*>/.test(N)&&(I=!0)}A[F]=N}return h=A.join(`
214
+ `),h=h.replace(/^\n+/g,""),h=h.replace(/\n+$/g,""),y.converter._dispatch("paragraphs.after",h,g,y)}),n.subParser("runExtension",function(h,g,y,S){if(h.filter)g=h.filter(g,S.converter,y);else if(h.regex){var A=h.regex;A instanceof RegExp||(A=new RegExp(A,"g")),g=g.replace(A,h.replace)}return g}),n.subParser("spanGamut",function(h,g,y){return h=y.converter._dispatch("spanGamut.before",h,g,y),h=n.subParser("codeSpans")(h,g,y),h=n.subParser("escapeSpecialCharsWithinTagAttributes")(h,g,y),h=n.subParser("encodeBackslashEscapes")(h,g,y),h=n.subParser("images")(h,g,y),h=n.subParser("anchors")(h,g,y),h=n.subParser("autoLinks")(h,g,y),h=n.subParser("simplifiedAutoLinks")(h,g,y),h=n.subParser("emoji")(h,g,y),h=n.subParser("underline")(h,g,y),h=n.subParser("italicsAndBold")(h,g,y),h=n.subParser("strikethrough")(h,g,y),h=n.subParser("ellipsis")(h,g,y),h=n.subParser("hashHTMLSpans")(h,g,y),h=n.subParser("encodeAmpsAndAngles")(h,g,y),g.simpleLineBreaks?/\n\n¨K/.test(h)||(h=h.replace(/\n+/g,`<br />
215
+ `)):h=h.replace(/ +\n/g,`<br />
216
+ `),h=y.converter._dispatch("spanGamut.after",h,g,y),h}),n.subParser("strikethrough",function(h,g,y){function S(A){return g.simplifiedAutoLink&&(A=n.subParser("simplifiedAutoLinks")(A,g,y)),"<del>"+A+"</del>"}return g.strikethrough&&(h=y.converter._dispatch("strikethrough.before",h,g,y),h=h.replace(/(?:~){2}([\s\S]+?)(?:~){2}/g,function(A,k){return S(k)}),h=y.converter._dispatch("strikethrough.after",h,g,y)),h}),n.subParser("stripLinkDefinitions",function(h,g,y){var S=/^ {0,3}\[([^\]]+)]:[ \t]*\n?[ \t]*<?([^>\s]+)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=¨0))/gm,A=/^ {0,3}\[([^\]]+)]:[ \t]*\n?[ \t]*<?(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n\n|(?=¨0)|(?=\n\[))/gm;h+="¨0";var k=function(F,P,j,N,I,B,O){return P=P.toLowerCase(),h.toLowerCase().split(P).length-1<2?F:(j.match(/^data:.+?\/.+?;base64,/)?y.gUrls[P]=j.replace(/\s/g,""):y.gUrls[P]=n.subParser("encodeAmpsAndAngles")(j,g,y),B?B+O:(O&&(y.gTitles[P]=O.replace(/"|'/g,"&quot;")),g.parseImgDimensions&&N&&I&&(y.gDimensions[P]={width:N,height:I}),""))};return h=h.replace(A,k),h=h.replace(S,k),h=h.replace(/¨0/,""),h}),n.subParser("tables",function(h,g,y){if(!g.tables)return h;var S=/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,A=/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm;function k(I){return/^:[ \t]*--*$/.test(I)?' style="text-align:left;"':/^--*[ \t]*:[ \t]*$/.test(I)?' style="text-align:right;"':/^:[ \t]*--*[ \t]*:$/.test(I)?' style="text-align:center;"':""}function F(I,B){var O="";return I=I.trim(),(g.tablesHeaderId||g.tableHeaderId)&&(O=' id="'+I.replace(/ /g,"_").toLowerCase()+'"'),I=n.subParser("spanGamut")(I,g,y),"<th"+O+B+">"+I+`</th>
217
+ `}function P(I,B){var O=n.subParser("spanGamut")(I,g,y);return"<td"+B+">"+O+`</td>
218
+ `}function j(I,B){for(var O=`<table>
219
+ <thead>
220
+ <tr>
221
+ `,M=I.length,V=0;V<M;++V)O+=I[V];for(O+=`</tr>
222
+ </thead>
223
+ <tbody>
224
+ `,V=0;V<B.length;++V){O+=`<tr>
225
+ `;for(var L=0;L<M;++L)O+=B[V][L];O+=`</tr>
226
+ `}return O+=`</tbody>
227
+ </table>
228
+ `,O}function N(I){var B,O=I.split(`
229
+ `);for(B=0;B<O.length;++B)/^ {0,3}\|/.test(O[B])&&(O[B]=O[B].replace(/^ {0,3}\|/,"")),/\|[ \t]*$/.test(O[B])&&(O[B]=O[B].replace(/\|[ \t]*$/,"")),O[B]=n.subParser("codeSpans")(O[B],g,y);var M=O[0].split("|").map(function(te){return te.trim()}),V=O[1].split("|").map(function(te){return te.trim()}),L=[],W=[],G=[],H=[];for(O.shift(),O.shift(),B=0;B<O.length;++B)O[B].trim()!==""&&L.push(O[B].split("|").map(function(te){return te.trim()}));if(M.length<V.length)return I;for(B=0;B<V.length;++B)G.push(k(V[B]));for(B=0;B<M.length;++B)n.helper.isUndefined(G[B])&&(G[B]=""),W.push(F(M[B],G[B]));for(B=0;B<L.length;++B){for(var Q=[],K=0;K<W.length;++K)n.helper.isUndefined(L[B][K]),Q.push(P(L[B][K],G[K]));H.push(Q)}return j(W,H)}return h=y.converter._dispatch("tables.before",h,g,y),h=h.replace(/\\(\|)/g,n.helper.escapeCharactersCallback),h=h.replace(S,N),h=h.replace(A,N),h=y.converter._dispatch("tables.after",h,g,y),h}),n.subParser("underline",function(h,g,y){return g.underline&&(h=y.converter._dispatch("underline.before",h,g,y),g.literalMidWordUnderscores?(h=h.replace(/\b___(\S[\s\S]*?)___\b/g,function(S,A){return"<u>"+A+"</u>"}),h=h.replace(/\b__(\S[\s\S]*?)__\b/g,function(S,A){return"<u>"+A+"</u>"})):(h=h.replace(/___(\S[\s\S]*?)___/g,function(S,A){return/\S$/.test(A)?"<u>"+A+"</u>":S}),h=h.replace(/__(\S[\s\S]*?)__/g,function(S,A){return/\S$/.test(A)?"<u>"+A+"</u>":S})),h=h.replace(/(_)/g,n.helper.escapeCharactersCallback),h=y.converter._dispatch("underline.after",h,g,y)),h}),n.subParser("unescapeSpecialChars",function(h,g,y){return h=y.converter._dispatch("unescapeSpecialChars.before",h,g,y),h=h.replace(/¨E(\d+)E/g,function(S,A){var k=parseInt(A);return String.fromCharCode(k)}),h=y.converter._dispatch("unescapeSpecialChars.after",h,g,y),h}),n.subParser("makeMarkdown.blockquote",function(h,g){var y="";if(h.hasChildNodes())for(var S=h.childNodes,A=S.length,k=0;k<A;++k){var F=n.subParser("makeMarkdown.node")(S[k],g);F!==""&&(y+=F)}return y=y.trim(),y="> "+y.split(`
230
+ `).join(`
231
+ > `),y}),n.subParser("makeMarkdown.codeBlock",function(h,g){var y=h.getAttribute("language"),S=h.getAttribute("precodenum");return"```"+y+`
232
+ `+g.preList[S]+"\n```"}),n.subParser("makeMarkdown.codeSpan",function(h){return"`"+h.innerHTML+"`"}),n.subParser("makeMarkdown.emphasis",function(h,g){var y="";if(h.hasChildNodes()){y+="*";for(var S=h.childNodes,A=S.length,k=0;k<A;++k)y+=n.subParser("makeMarkdown.node")(S[k],g);y+="*"}return y}),n.subParser("makeMarkdown.header",function(h,g,y){var S=new Array(y+1).join("#"),A="";if(h.hasChildNodes()){A=S+" ";for(var k=h.childNodes,F=k.length,P=0;P<F;++P)A+=n.subParser("makeMarkdown.node")(k[P],g)}return A}),n.subParser("makeMarkdown.hr",function(){return"---"}),n.subParser("makeMarkdown.image",function(h){var g="";return h.hasAttribute("src")&&(g+="!["+h.getAttribute("alt")+"](",g+="<"+h.getAttribute("src")+">",h.hasAttribute("width")&&h.hasAttribute("height")&&(g+=" ="+h.getAttribute("width")+"x"+h.getAttribute("height")),h.hasAttribute("title")&&(g+=' "'+h.getAttribute("title")+'"'),g+=")"),g}),n.subParser("makeMarkdown.links",function(h,g){var y="";if(h.hasChildNodes()&&h.hasAttribute("href")){var S=h.childNodes,A=S.length;y="[";for(var k=0;k<A;++k)y+=n.subParser("makeMarkdown.node")(S[k],g);y+="](",y+="<"+h.getAttribute("href")+">",h.hasAttribute("title")&&(y+=' "'+h.getAttribute("title")+'"'),y+=")"}return y}),n.subParser("makeMarkdown.list",function(h,g,y){var S="";if(!h.hasChildNodes())return"";for(var A=h.childNodes,k=A.length,F=h.getAttribute("start")||1,P=0;P<k;++P)if(!(typeof A[P].tagName>"u"||A[P].tagName.toLowerCase()!=="li")){var j="";y==="ol"?j=F.toString()+". ":j="- ",S+=j+n.subParser("makeMarkdown.listItem")(A[P],g),++F}return S+=`
233
+ <!-- -->
234
+ `,S.trim()}),n.subParser("makeMarkdown.listItem",function(h,g){for(var y="",S=h.childNodes,A=S.length,k=0;k<A;++k)y+=n.subParser("makeMarkdown.node")(S[k],g);return/\n$/.test(y)?y=y.split(`
235
+ `).join(`
236
+ `).replace(/^ {4}$/gm,"").replace(/\n\n+/g,`
237
+
238
+ `):y+=`
239
+ `,y}),n.subParser("makeMarkdown.node",function(h,g,y){y=y||!1;var S="";if(h.nodeType===3)return n.subParser("makeMarkdown.txt")(h,g);if(h.nodeType===8)return"<!--"+h.data+`-->
240
+
241
+ `;if(h.nodeType!==1)return"";var A=h.tagName.toLowerCase();switch(A){case"h1":y||(S=n.subParser("makeMarkdown.header")(h,g,1)+`
242
+
243
+ `);break;case"h2":y||(S=n.subParser("makeMarkdown.header")(h,g,2)+`
244
+
245
+ `);break;case"h3":y||(S=n.subParser("makeMarkdown.header")(h,g,3)+`
246
+
247
+ `);break;case"h4":y||(S=n.subParser("makeMarkdown.header")(h,g,4)+`
248
+
249
+ `);break;case"h5":y||(S=n.subParser("makeMarkdown.header")(h,g,5)+`
250
+
251
+ `);break;case"h6":y||(S=n.subParser("makeMarkdown.header")(h,g,6)+`
252
+
253
+ `);break;case"p":y||(S=n.subParser("makeMarkdown.paragraph")(h,g)+`
254
+
255
+ `);break;case"blockquote":y||(S=n.subParser("makeMarkdown.blockquote")(h,g)+`
256
+
257
+ `);break;case"hr":y||(S=n.subParser("makeMarkdown.hr")(h,g)+`
258
+
259
+ `);break;case"ol":y||(S=n.subParser("makeMarkdown.list")(h,g,"ol")+`
260
+
261
+ `);break;case"ul":y||(S=n.subParser("makeMarkdown.list")(h,g,"ul")+`
262
+
263
+ `);break;case"precode":y||(S=n.subParser("makeMarkdown.codeBlock")(h,g)+`
264
+
265
+ `);break;case"pre":y||(S=n.subParser("makeMarkdown.pre")(h,g)+`
266
+
267
+ `);break;case"table":y||(S=n.subParser("makeMarkdown.table")(h,g)+`
268
+
269
+ `);break;case"code":S=n.subParser("makeMarkdown.codeSpan")(h,g);break;case"em":case"i":S=n.subParser("makeMarkdown.emphasis")(h,g);break;case"strong":case"b":S=n.subParser("makeMarkdown.strong")(h,g);break;case"del":S=n.subParser("makeMarkdown.strikethrough")(h,g);break;case"a":S=n.subParser("makeMarkdown.links")(h,g);break;case"img":S=n.subParser("makeMarkdown.image")(h,g);break;default:S=h.outerHTML+`
270
+
271
+ `}return S}),n.subParser("makeMarkdown.paragraph",function(h,g){var y="";if(h.hasChildNodes())for(var S=h.childNodes,A=S.length,k=0;k<A;++k)y+=n.subParser("makeMarkdown.node")(S[k],g);return y=y.trim(),y}),n.subParser("makeMarkdown.pre",function(h,g){var y=h.getAttribute("prenum");return"<pre>"+g.preList[y]+"</pre>"}),n.subParser("makeMarkdown.strikethrough",function(h,g){var y="";if(h.hasChildNodes()){y+="~~";for(var S=h.childNodes,A=S.length,k=0;k<A;++k)y+=n.subParser("makeMarkdown.node")(S[k],g);y+="~~"}return y}),n.subParser("makeMarkdown.strong",function(h,g){var y="";if(h.hasChildNodes()){y+="**";for(var S=h.childNodes,A=S.length,k=0;k<A;++k)y+=n.subParser("makeMarkdown.node")(S[k],g);y+="**"}return y}),n.subParser("makeMarkdown.table",function(h,g){var y="",S=[[],[]],A=h.querySelectorAll("thead>tr>th"),k=h.querySelectorAll("tbody>tr"),F,P;for(F=0;F<A.length;++F){var j=n.subParser("makeMarkdown.tableCell")(A[F],g),N="---";if(A[F].hasAttribute("style")){var I=A[F].getAttribute("style").toLowerCase().replace(/\s/g,"");switch(I){case"text-align:left;":N=":---";break;case"text-align:right;":N="---:";break;case"text-align:center;":N=":---:";break}}S[0][F]=j.trim(),S[1][F]=N}for(F=0;F<k.length;++F){var B=S.push([])-1,O=k[F].getElementsByTagName("td");for(P=0;P<A.length;++P){var M=" ";typeof O[P]<"u"&&(M=n.subParser("makeMarkdown.tableCell")(O[P],g)),S[B].push(M)}}var V=3;for(F=0;F<S.length;++F)for(P=0;P<S[F].length;++P){var L=S[F][P].length;L>V&&(V=L)}for(F=0;F<S.length;++F){for(P=0;P<S[F].length;++P)F===1?S[F][P].slice(-1)===":"?S[F][P]=n.helper.padEnd(S[F][P].slice(-1),V-1,"-")+":":S[F][P]=n.helper.padEnd(S[F][P],V,"-"):S[F][P]=n.helper.padEnd(S[F][P],V);y+="| "+S[F].join(" | ")+` |
272
+ `}return y.trim()}),n.subParser("makeMarkdown.tableCell",function(h,g){var y="";if(!h.hasChildNodes())return"";for(var S=h.childNodes,A=S.length,k=0;k<A;++k)y+=n.subParser("makeMarkdown.node")(S[k],g,!0);return y.trim()}),n.subParser("makeMarkdown.txt",function(h){var g=h.nodeValue;return g=g.replace(/ +/g," "),g=g.replace(/¨NBSP;/g," "),g=n.helper.unescapeHTMLEntities(g),g=g.replace(/([*_~|`])/g,"\\$1"),g=g.replace(/^(\s*)>/g,"\\$1>"),g=g.replace(/^#/gm,"\\#"),g=g.replace(/^(\s*)([-=]{3,})(\s*)$/,"$1\\$2$3"),g=g.replace(/^( {0,3}\d+)\./gm,"$1\\."),g=g.replace(/^( {0,3})([+-])/gm,"$1\\$2"),g=g.replace(/]([\s]*)\(/g,"\\]$1\\("),g=g.replace(/^ {0,3}\[([\S \t]*?)]:/gm,"\\[$1]:"),g});var b=this;e.exports?e.exports=n:b.showdown=n}).call(LM)}(Sh)),Sh.exports}var jM=BM();function Eh(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var $M=0;function H4(e){return"__private_"+$M+++"_"+e}function UM(e,t,r){const n=[];return e.forEach(a=>typeof a!="string"?n.push(a):t[Symbol.split](a).forEach((i,s,o)=>{i!==""&&n.push(i),s<o.length-1&&n.push(r)})),n}/**
273
+ * Takes a string with placeholder variables like `%{smart_count} file selected`
274
+ * and replaces it with values from options `{smart_count: 5}`
275
+ *
276
+ * @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE
277
+ * taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299
278
+ *
279
+ * @param phrase that needs interpolation, with placeholders
280
+ * @param options with values that will be used to replace placeholders
281
+ */function W4(e,t){const r=/\$/g,n="$$$$";let a=[e];if(t==null)return a;for(const i of Object.keys(t))if(i!=="_"){let s=t[i];typeof s=="string"&&(s=r[Symbol.replace](s,n)),a=UM(a,new RegExp(`%\\{${i}\\}`,"g"),s)}return a}const zM=e=>{throw new Error(`missing string: ${e}`)};var Bf=H4("onMissingKey"),jf=H4("apply");class V4{constructor(t,r){let{onMissingKey:n=zM}=r===void 0?{}:r;Object.defineProperty(this,jf,{value:HM}),Object.defineProperty(this,Bf,{writable:!0,value:void 0}),this.locale={strings:{},pluralize(a){return a===1?0:1}},Array.isArray(t)?t.forEach(Eh(this,jf)[jf],this):Eh(this,jf)[jf](t),Eh(this,Bf)[Bf]=n}translate(t,r){return this.translateArray(t,r).join("")}translateArray(t,r){let n=this.locale.strings[t];if(n==null&&(Eh(this,Bf)[Bf](t),n=t),typeof n=="object"){if(r&&typeof r.smart_count<"u"){const i=this.locale.pluralize(r.smart_count);return W4(n[i],r)}throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}if(typeof n!="string")throw new Error("string was not a string");return W4(n,r)}}function HM(e){if(!(e!=null&&e.strings))return;const t=this.locale;Object.assign(this.locale,{strings:{...t.strings,...e.strings},pluralize:e.pluralize||t.pluralize})}class WM{constructor(t,r){this.uppy=t,this.opts=r??{}}getPluginState(){const{plugins:t}=this.uppy.getState();return(t==null?void 0:t[this.id])||{}}setPluginState(t){const{plugins:r}=this.uppy.getState();this.uppy.setState({plugins:{...r,[this.id]:{...r[this.id],...t}}})}setOptions(t){this.opts={...this.opts,...t},this.setPluginState(void 0),this.i18nInit()}i18nInit(){const t=new V4([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=t.translate.bind(t),this.i18nArray=t.translateArray.bind(t),this.setPluginState(void 0)}addTarget(t){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}update(t){}afterUpdate(){}}const q4="3.7.7",VM=q4,kl=typeof Buffer=="function",G4=typeof TextDecoder=="function"?new TextDecoder:void 0,Y4=typeof TextEncoder=="function"?new TextEncoder:void 0,$f=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),Ch=(e=>{let t={};return e.forEach((r,n)=>t[r]=n),t})($f),qM=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,mn=String.fromCharCode.bind(String),X4=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),K4=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),Z4=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),J4=e=>{let t,r,n,a,i="";const s=e.length%3;for(let o=0;o<e.length;){if((r=e.charCodeAt(o++))>255||(n=e.charCodeAt(o++))>255||(a=e.charCodeAt(o++))>255)throw new TypeError("invalid character found");t=r<<16|n<<8|a,i+=$f[t>>18&63]+$f[t>>12&63]+$f[t>>6&63]+$f[t&63]}return s?i.slice(0,s-3)+"===".substring(s):i},Sv=typeof btoa=="function"?e=>btoa(e):kl?e=>Buffer.from(e,"binary").toString("base64"):J4,Ev=kl?e=>Buffer.from(e).toString("base64"):e=>{let r=[];for(let n=0,a=e.length;n<a;n+=4096)r.push(mn.apply(null,e.subarray(n,n+4096)));return Sv(r.join(""))},kh=(e,t=!1)=>t?K4(Ev(e)):Ev(e),GM=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?mn(192|t>>>6)+mn(128|t&63):mn(224|t>>>12&15)+mn(128|t>>>6&63)+mn(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return mn(240|t>>>18&7)+mn(128|t>>>12&63)+mn(128|t>>>6&63)+mn(128|t&63)}},YM=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Q4=e=>e.replace(YM,GM),e6=kl?e=>Buffer.from(e,"utf8").toString("base64"):Y4?e=>Ev(Y4.encode(e)):e=>Sv(Q4(e)),Tl=(e,t=!1)=>t?K4(e6(e)):e6(e),t6=e=>Tl(e,!0),XM=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,KM=e=>{switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),r=t-65536;return mn((r>>>10)+55296)+mn((r&1023)+56320);case 3:return mn((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return mn((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},r6=e=>e.replace(XM,KM),n6=e=>{if(e=e.replace(/\s+/g,""),!qM.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(e.length&3));let t,r="",n,a;for(let i=0;i<e.length;)t=Ch[e.charAt(i++)]<<18|Ch[e.charAt(i++)]<<12|(n=Ch[e.charAt(i++)])<<6|(a=Ch[e.charAt(i++)]),r+=n===64?mn(t>>16&255):a===64?mn(t>>16&255,t>>8&255):mn(t>>16&255,t>>8&255,t&255);return r},Cv=typeof atob=="function"?e=>atob(Z4(e)):kl?e=>Buffer.from(e,"base64").toString("binary"):n6,a6=kl?e=>X4(Buffer.from(e,"base64")):e=>X4(Cv(e).split("").map(t=>t.charCodeAt(0))),i6=e=>a6(s6(e)),ZM=kl?e=>Buffer.from(e,"base64").toString("utf8"):G4?e=>G4.decode(a6(e)):e=>r6(Cv(e)),s6=e=>Z4(e.replace(/[-_]/g,t=>t=="-"?"+":"/")),kv=e=>ZM(s6(e)),JM=e=>{if(typeof e!="string")return!1;const t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},o6=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),u6=function(){const e=(t,r)=>Object.defineProperty(String.prototype,t,o6(r));e("fromBase64",function(){return kv(this)}),e("toBase64",function(t){return Tl(this,t)}),e("toBase64URI",function(){return Tl(this,!0)}),e("toBase64URL",function(){return Tl(this,!0)}),e("toUint8Array",function(){return i6(this)})},l6=function(){const e=(t,r)=>Object.defineProperty(Uint8Array.prototype,t,o6(r));e("toBase64",function(t){return kh(this,t)}),e("toBase64URI",function(){return kh(this,!0)}),e("toBase64URL",function(){return kh(this,!0)})},QM={version:q4,VERSION:VM,atob:Cv,atobPolyfill:n6,btoa:Sv,btoaPolyfill:J4,fromBase64:kv,toBase64:Tl,encode:Tl,encodeURI:t6,encodeURL:t6,utob:Q4,btou:r6,decode:kv,isValid:JM,fromUint8Array:kh,toUint8Array:i6,extendString:u6,extendUint8Array:l6,extendBuiltins:()=>{u6(),l6()}};var Tv,c6;function eL(){return c6||(c6=1,Tv=function(t,r){if(r=r.split(":")[0],t=+t,!t)return!1;switch(r){case"http":case"ws":return t!==80;case"https":case"wss":return t!==443;case"ftp":return t!==21;case"gopher":return t!==70;case"file":return!1}return t!==0}),Tv}var Th={},f6;function tL(){if(f6)return Th;f6=1;var e=Object.prototype.hasOwnProperty,t;function r(s){try{return decodeURIComponent(s.replace(/\+/g," "))}catch{return null}}function n(s){try{return encodeURIComponent(s)}catch{return null}}function a(s){for(var o=/([^=?#&]+)=?([^&]*)/g,u={},l;l=o.exec(s);){var f=r(l[1]),d=r(l[2]);f===null||d===null||f in u||(u[f]=d)}return u}function i(s,o){o=o||"";var u=[],l,f;typeof o!="string"&&(o="?");for(f in s)if(e.call(s,f)){if(l=s[f],!l&&(l===null||l===t||isNaN(l))&&(l=""),f=n(f),l=n(l),f===null||l===null)continue;u.push(f+"="+l)}return u.length?o+u.join("&"):""}return Th.stringify=i,Th.parse=a,Th}var Av,d6;function rL(){if(d6)return Av;d6=1;var e=eL(),t=tL(),r=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,n=/[\n\r\t]/g,a=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,i=/:\d+$/,s=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,o=/^[a-zA-Z]:/;function u(E){return(E||"").toString().replace(r,"")}var l=[["#","hash"],["?","query"],function(b,h){return p(h.protocol)?b.replace(/\\/g,"/"):b},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],f={hash:1,query:1};function d(E){var b;typeof window<"u"?b=window:typeof fi<"u"?b=fi:typeof self<"u"?b=self:b={};var h=b.location||{};E=E||h;var g={},y=typeof E,S;if(E.protocol==="blob:")g=new x(unescape(E.pathname),{});else if(y==="string"){g=new x(E,{});for(S in f)delete g[S]}else if(y==="object"){for(S in E)S in f||(g[S]=E[S]);g.slashes===void 0&&(g.slashes=a.test(E.href))}return g}function p(E){return E==="file:"||E==="ftp:"||E==="http:"||E==="https:"||E==="ws:"||E==="wss:"}function v(E,b){E=u(E),E=E.replace(n,""),b=b||{};var h=s.exec(E),g=h[1]?h[1].toLowerCase():"",y=!!h[2],S=!!h[3],A=0,k;return y?S?(k=h[2]+h[3]+h[4],A=h[2].length+h[3].length):(k=h[2]+h[4],A=h[2].length):S?(k=h[3]+h[4],A=h[3].length):k=h[4],g==="file:"?A>=2&&(k=k.slice(2)):p(g)?k=h[4]:g?y&&(k=k.slice(2)):A>=2&&p(b.protocol)&&(k=h[4]),{protocol:g,slashes:y||p(g),slashesCount:A,rest:k}}function _(E,b){if(E==="")return b;for(var h=(b||"/").split("/").slice(0,-1).concat(E.split("/")),g=h.length,y=h[g-1],S=!1,A=0;g--;)h[g]==="."?h.splice(g,1):h[g]===".."?(h.splice(g,1),A++):A&&(g===0&&(S=!0),h.splice(g,1),A--);return S&&h.unshift(""),(y==="."||y==="..")&&h.push(""),h.join("/")}function x(E,b,h){if(E=u(E),E=E.replace(n,""),!(this instanceof x))return new x(E,b,h);var g,y,S,A,k,F,P=l.slice(),j=typeof b,N=this,I=0;for(j!=="object"&&j!=="string"&&(h=b,b=null),h&&typeof h!="function"&&(h=t.parse),b=d(b),y=v(E||"",b),g=!y.protocol&&!y.slashes,N.slashes=y.slashes||g&&b.slashes,N.protocol=y.protocol||b.protocol||"",E=y.rest,(y.protocol==="file:"&&(y.slashesCount!==2||o.test(E))||!y.slashes&&(y.protocol||y.slashesCount<2||!p(N.protocol)))&&(P[3]=[/(.*)/,"pathname"]);I<P.length;I++){if(A=P[I],typeof A=="function"){E=A(E,N);continue}S=A[0],F=A[1],S!==S?N[F]=E:typeof S=="string"?(k=S==="@"?E.lastIndexOf(S):E.indexOf(S),~k&&(typeof A[2]=="number"?(N[F]=E.slice(0,k),E=E.slice(k+A[2])):(N[F]=E.slice(k),E=E.slice(0,k)))):(k=S.exec(E))&&(N[F]=k[1],E=E.slice(0,k.index)),N[F]=N[F]||g&&A[3]&&b[F]||"",A[4]&&(N[F]=N[F].toLowerCase())}h&&(N.query=h(N.query)),g&&b.slashes&&N.pathname.charAt(0)!=="/"&&(N.pathname!==""||b.pathname!=="")&&(N.pathname=_(N.pathname,b.pathname)),N.pathname.charAt(0)!=="/"&&p(N.protocol)&&(N.pathname="/"+N.pathname),e(N.port,N.protocol)||(N.host=N.hostname,N.port=""),N.username=N.password="",N.auth&&(k=N.auth.indexOf(":"),~k?(N.username=N.auth.slice(0,k),N.username=encodeURIComponent(decodeURIComponent(N.username)),N.password=N.auth.slice(k+1),N.password=encodeURIComponent(decodeURIComponent(N.password))):N.username=encodeURIComponent(decodeURIComponent(N.auth)),N.auth=N.password?N.username+":"+N.password:N.username),N.origin=N.protocol!=="file:"&&p(N.protocol)&&N.host?N.protocol+"//"+N.host:"null",N.href=N.toString()}function w(E,b,h){var g=this;switch(E){case"query":typeof b=="string"&&b.length&&(b=(h||t.parse)(b)),g[E]=b;break;case"port":g[E]=b,e(b,g.protocol)?b&&(g.host=g.hostname+":"+b):(g.host=g.hostname,g[E]="");break;case"hostname":g[E]=b,g.port&&(b+=":"+g.port),g.host=b;break;case"host":g[E]=b,i.test(b)?(b=b.split(":"),g.port=b.pop(),g.hostname=b.join(":")):(g.hostname=b,g.port="");break;case"protocol":g.protocol=b.toLowerCase(),g.slashes=!h;break;case"pathname":case"hash":if(b){var y=E==="pathname"?"/":"#";g[E]=b.charAt(0)!==y?y+b:b}else g[E]=b;break;case"username":case"password":g[E]=encodeURIComponent(b);break;case"auth":var S=b.indexOf(":");~S?(g.username=b.slice(0,S),g.username=encodeURIComponent(decodeURIComponent(g.username)),g.password=b.slice(S+1),g.password=encodeURIComponent(decodeURIComponent(g.password))):g.username=encodeURIComponent(decodeURIComponent(b))}for(var A=0;A<l.length;A++){var k=l[A];k[4]&&(g[k[1]]=g[k[1]].toLowerCase())}return g.auth=g.password?g.username+":"+g.password:g.username,g.origin=g.protocol!=="file:"&&p(g.protocol)&&g.host?g.protocol+"//"+g.host:"null",g.href=g.toString(),g}function C(E){(!E||typeof E!="function")&&(E=t.stringify);var b,h=this,g=h.host,y=h.protocol;y&&y.charAt(y.length-1)!==":"&&(y+=":");var S=y+(h.protocol&&h.slashes||p(h.protocol)?"//":"");return h.username?(S+=h.username,h.password&&(S+=":"+h.password),S+="@"):h.password?(S+=":"+h.password,S+="@"):h.protocol!=="file:"&&p(h.protocol)&&!g&&h.pathname!=="/"&&(S+="@"),(g[g.length-1]===":"||i.test(h.hostname)&&!h.port)&&(g+=":"),S+=g+h.pathname,b=typeof h.query=="object"?E(h.query):h.query,b&&(S+=b.charAt(0)!=="?"?"?"+b:b),h.hash&&(S+=h.hash),S}return x.prototype={set:w,toString:C},x.extractProtocol=v,x.location=d,x.trimLeft=u,x.qs=t,Av=x,Av}var nL=rL();const aL=$n(nL);function Fv(e){"@babel/helpers - typeof";return Fv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fv(e)}function iL(e,t,r){return Object.defineProperty(e,"prototype",{writable:!1}),e}function sL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oL(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Uf(e,t)}function uL(e){var t=h6();return function(){var n=zf(e),a;if(t){var i=zf(this).constructor;a=Reflect.construct(n,arguments,i)}else a=n.apply(this,arguments);return lL(this,a)}}function lL(e,t){if(t&&(Fv(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cL(e)}function cL(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ov(e){var t=typeof Map=="function"?new Map:void 0;return Ov=function(n){if(n===null||!fL(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(n))return t.get(n);t.set(n,a)}function a(){return Ah(n,arguments,zf(this).constructor)}return a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),Uf(a,n)},Ov(e)}function Ah(e,t,r){return h6()?Ah=Reflect.construct.bind():Ah=function(a,i,s){var o=[null];o.push.apply(o,i);var u=Function.bind.apply(a,o),l=new u;return s&&Uf(l,s.prototype),l},Ah.apply(null,arguments)}function h6(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function fL(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function Uf(e,t){return Uf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Uf(e,t)}function zf(e){return zf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},zf(e)}var Fh=function(e){oL(r,e);var t=uL(r);function r(n){var a,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;if(sL(this,r),a=t.call(this,n),a.originalRequest=s,a.originalResponse=o,a.causingError=i,i!=null&&(n+=", caused by ".concat(i.toString())),s!=null){var u=s.getHeader("X-Request-ID")||"n/a",l=s.getMethod(),f=s.getURL(),d=o?o.getStatus():"n/a",p=o?o.getBody()||"":"n/a";n+=", originated from request (method: ".concat(l,", url: ").concat(f,", response code: ").concat(d,", response text: ").concat(p,", request id: ").concat(u,")")}return a.message=n,a}return iL(r)}(Ov(Error));function nve(e){}function dL(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=Math.random()*16|0,r=e==="x"?t:t&3|8;return r.toString(16)})}function Pv(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Pv=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(O,M,V){O[M]=V.value},i=typeof Symbol=="function"?Symbol:{},s=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(O,M,V){return Object.defineProperty(O,M,{value:V,enumerable:!0,configurable:!0,writable:!0}),O[M]}try{l({},"")}catch{l=function(V,L,W){return V[L]=W}}function f(O,M,V,L){var W=M&&M.prototype instanceof C?M:C,G=Object.create(W.prototype),H=new I(L||[]);return a(G,"_invoke",{value:F(O,V,H)}),G}function d(O,M,V){try{return{type:"normal",arg:O.call(M,V)}}catch(L){return{type:"throw",arg:L}}}t.wrap=f;var p="suspendedStart",v="suspendedYield",_="executing",x="completed",w={};function C(){}function E(){}function b(){}var h={};l(h,s,function(){return this});var g=Object.getPrototypeOf,y=g&&g(g(B([])));y&&y!==r&&n.call(y,s)&&(h=y);var S=b.prototype=C.prototype=Object.create(h);function A(O){["next","throw","return"].forEach(function(M){l(O,M,function(V){return this._invoke(M,V)})})}function k(O,M){function V(W,G,H,Q){var K=d(O[W],O,G);if(K.type!=="throw"){var te=K.arg,se=te.value;return se&&mu(se)=="object"&&n.call(se,"__await")?M.resolve(se.__await).then(function(le){V("next",le,H,Q)},function(le){V("throw",le,H,Q)}):M.resolve(se).then(function(le){te.value=le,H(te)},function(le){return V("throw",le,H,Q)})}Q(K.arg)}var L;a(this,"_invoke",{value:function(G,H){function Q(){return new M(function(K,te){V(G,H,K,te)})}return L=L?L.then(Q,Q):Q()}})}function F(O,M,V){var L=p;return function(W,G){if(L===_)throw new Error("Generator is already running");if(L===x){if(W==="throw")throw G;return{value:e,done:!0}}for(V.method=W,V.arg=G;;){var H=V.delegate;if(H){var Q=P(H,V);if(Q){if(Q===w)continue;return Q}}if(V.method==="next")V.sent=V._sent=V.arg;else if(V.method==="throw"){if(L===p)throw L=x,V.arg;V.dispatchException(V.arg)}else V.method==="return"&&V.abrupt("return",V.arg);L=_;var K=d(O,M,V);if(K.type==="normal"){if(L=V.done?x:v,K.arg===w)continue;return{value:K.arg,done:V.done}}K.type==="throw"&&(L=x,V.method="throw",V.arg=K.arg)}}}function P(O,M){var V=M.method,L=O.iterator[V];if(L===e)return M.delegate=null,V==="throw"&&O.iterator.return&&(M.method="return",M.arg=e,P(O,M),M.method==="throw")||V!=="return"&&(M.method="throw",M.arg=new TypeError("The iterator does not provide a '"+V+"' method")),w;var W=d(L,O.iterator,M.arg);if(W.type==="throw")return M.method="throw",M.arg=W.arg,M.delegate=null,w;var G=W.arg;return G?G.done?(M[O.resultName]=G.value,M.next=O.nextLoc,M.method!=="return"&&(M.method="next",M.arg=e),M.delegate=null,w):G:(M.method="throw",M.arg=new TypeError("iterator result is not an object"),M.delegate=null,w)}function j(O){var M={tryLoc:O[0]};1 in O&&(M.catchLoc=O[1]),2 in O&&(M.finallyLoc=O[2],M.afterLoc=O[3]),this.tryEntries.push(M)}function N(O){var M=O.completion||{};M.type="normal",delete M.arg,O.completion=M}function I(O){this.tryEntries=[{tryLoc:"root"}],O.forEach(j,this),this.reset(!0)}function B(O){if(O||O===""){var M=O[s];if(M)return M.call(O);if(typeof O.next=="function")return O;if(!isNaN(O.length)){var V=-1,L=function W(){for(;++V<O.length;)if(n.call(O,V))return W.value=O[V],W.done=!1,W;return W.value=e,W.done=!0,W};return L.next=L}}throw new TypeError(mu(O)+" is not iterable")}return E.prototype=b,a(S,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:E,configurable:!0}),E.displayName=l(b,u,"GeneratorFunction"),t.isGeneratorFunction=function(O){var M=typeof O=="function"&&O.constructor;return!!M&&(M===E||(M.displayName||M.name)==="GeneratorFunction")},t.mark=function(O){return Object.setPrototypeOf?Object.setPrototypeOf(O,b):(O.__proto__=b,l(O,u,"GeneratorFunction")),O.prototype=Object.create(S),O},t.awrap=function(O){return{__await:O}},A(k.prototype),l(k.prototype,o,function(){return this}),t.AsyncIterator=k,t.async=function(O,M,V,L,W){W===void 0&&(W=Promise);var G=new k(f(O,M,V,L),W);return t.isGeneratorFunction(M)?G:G.next().then(function(H){return H.done?H.value:G.next()})},A(S),l(S,u,"Generator"),l(S,s,function(){return this}),l(S,"toString",function(){return"[object Generator]"}),t.keys=function(O){var M=Object(O),V=[];for(var L in M)V.push(L);return V.reverse(),function W(){for(;V.length;){var G=V.pop();if(G in M)return W.value=G,W.done=!1,W}return W.done=!0,W}},t.values=B,I.prototype={constructor:I,reset:function(M){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(N),!M)for(var V in this)V.charAt(0)==="t"&&n.call(this,V)&&!isNaN(+V.slice(1))&&(this[V]=e)},stop:function(){this.done=!0;var M=this.tryEntries[0].completion;if(M.type==="throw")throw M.arg;return this.rval},dispatchException:function(M){if(this.done)throw M;var V=this;function L(te,se){return H.type="throw",H.arg=M,V.next=te,se&&(V.method="next",V.arg=e),!!se}for(var W=this.tryEntries.length-1;W>=0;--W){var G=this.tryEntries[W],H=G.completion;if(G.tryLoc==="root")return L("end");if(G.tryLoc<=this.prev){var Q=n.call(G,"catchLoc"),K=n.call(G,"finallyLoc");if(Q&&K){if(this.prev<G.catchLoc)return L(G.catchLoc,!0);if(this.prev<G.finallyLoc)return L(G.finallyLoc)}else if(Q){if(this.prev<G.catchLoc)return L(G.catchLoc,!0)}else{if(!K)throw new Error("try statement without catch or finally");if(this.prev<G.finallyLoc)return L(G.finallyLoc)}}}},abrupt:function(M,V){for(var L=this.tryEntries.length-1;L>=0;--L){var W=this.tryEntries[L];if(W.tryLoc<=this.prev&&n.call(W,"finallyLoc")&&this.prev<W.finallyLoc){var G=W;break}}G&&(M==="break"||M==="continue")&&G.tryLoc<=V&&V<=G.finallyLoc&&(G=null);var H=G?G.completion:{};return H.type=M,H.arg=V,G?(this.method="next",this.next=G.finallyLoc,w):this.complete(H)},complete:function(M,V){if(M.type==="throw")throw M.arg;return M.type==="break"||M.type==="continue"?this.next=M.arg:M.type==="return"?(this.rval=this.arg=M.arg,this.method="return",this.next="end"):M.type==="normal"&&V&&(this.next=V),w},finish:function(M){for(var V=this.tryEntries.length-1;V>=0;--V){var L=this.tryEntries[V];if(L.finallyLoc===M)return this.complete(L.completion,L.afterLoc),N(L),w}},catch:function(M){for(var V=this.tryEntries.length-1;V>=0;--V){var L=this.tryEntries[V];if(L.tryLoc===M){var W=L.completion;if(W.type==="throw"){var G=W.arg;N(L)}return G}}throw new Error("illegal catch attempt")},delegateYield:function(M,V,L){return this.delegate={iterator:B(M),resultName:V,nextLoc:L},this.method==="next"&&(this.arg=e),w}},t}function p6(e,t,r,n,a,i,s){try{var o=e[i](s),u=o.value}catch(l){r(l);return}o.done?t(u):Promise.resolve(u).then(n,a)}function hL(e){return function(){var t=this,r=arguments;return new Promise(function(n,a){var i=e.apply(t,r);function s(u){p6(i,n,a,s,o,"next",u)}function o(u){p6(i,n,a,s,o,"throw",u)}s(void 0)})}}function m6(e,t){return vL(e)||gL(e,t)||mL(e,t)||pL()}function pL(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
282
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mL(e,t){if(e){if(typeof e=="string")return g6(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return g6(e,t)}}function g6(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function gL(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,s,o=[],u=!0,l=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(u=(n=i.call(r)).done)&&(o.push(n.value),o.length!==t);u=!0);}catch(f){l=!0,a=f}finally{try{if(!u&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(l)throw a}}return o}}function vL(e){if(Array.isArray(e))return e}function mu(e){"@babel/helpers - typeof";return mu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mu(e)}function v6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Al(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?v6(Object(r),!0).forEach(function(n){xL(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xL(e,t,r){return t=_6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _L(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x6(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_6(n.key),n)}}function yL(e,t,r){return t&&x6(e.prototype,t),r&&x6(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _6(e){var t=bL(e,"string");return mu(t)==="symbol"?t:String(t)}function bL(e,t){if(mu(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(mu(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var wL={endpoint:null,uploadUrl:null,metadata:{},fingerprint:null,uploadSize:null,onProgress:null,onChunkComplete:null,onSuccess:null,onError:null,onUploadUrlAvailable:null,overridePatchMethod:!1,headers:{},addRequestId:!1,onBeforeRequest:null,onAfterResponse:null,onShouldRetry:E6,chunkSize:1/0,retryDelays:[0,1e3,3e3,5e3],parallelUploads:1,parallelUploadBoundaries:null,storeFingerprintForResuming:!0,removeFingerprintOnSuccess:!1,uploadLengthDeferred:!1,uploadDataDuringCreation:!1,urlStorage:null,fileReader:null,httpStack:null},Oh=function(){function e(t,r){_L(this,e),"resume"in r&&console.log("tus: The `resume` option has been removed in tus-js-client v2. Please use the URL storage API instead."),this.options=r,this.options.chunkSize=Number(this.options.chunkSize),this._urlStorage=this.options.urlStorage,this.file=t,this.url=null,this._req=null,this._fingerprint=null,this._urlStorageKey=null,this._offset=null,this._aborted=!1,this._size=null,this._source=null,this._retryAttempt=0,this._retryTimeout=null,this._offsetBeforeRetry=0,this._parallelUploads=null,this._parallelUploadUrls=null}return yL(e,[{key:"findPreviousUploads",value:function(){var r=this;return this.options.fingerprint(this.file,this.options).then(function(n){return r._urlStorage.findUploadsByFingerprint(n)})}},{key:"resumeFromPreviousUpload",value:function(r){this.url=r.uploadUrl||null,this._parallelUploadUrls=r.parallelUploadUrls||null,this._urlStorageKey=r.urlStorageKey}},{key:"start",value:function(){var r=this,n=this.file;if(!n){this._emitError(new Error("tus: no file or stream to upload provided"));return}if(!this.options.endpoint&&!this.options.uploadUrl&&!this.url){this._emitError(new Error("tus: neither an endpoint or an upload URL is provided"));return}var a=this.options.retryDelays;if(a!=null&&Object.prototype.toString.call(a)!=="[object Array]"){this._emitError(new Error("tus: the `retryDelays` option must either be an array or null"));return}if(this.options.parallelUploads>1)for(var i=0,s=["uploadUrl","uploadSize","uploadLengthDeferred"];i<s.length;i++){var o=s[i];if(this.options[o]){this._emitError(new Error("tus: cannot use the ".concat(o," option when parallelUploads is enabled")));return}}if(this.options.parallelUploadBoundaries){if(this.options.parallelUploads<=1){this._emitError(new Error("tus: cannot use the `parallelUploadBoundaries` option when `parallelUploads` is disabled"));return}if(this.options.parallelUploads!==this.options.parallelUploadBoundaries.length){this._emitError(new Error("tus: the `parallelUploadBoundaries` must have the same length as the value of `parallelUploads`"));return}}this.options.fingerprint(n,this.options).then(function(u){return r._fingerprint=u,r._source?r._source:r.options.fileReader.openFile(n,r.options.chunkSize)}).then(function(u){if(r._source=u,r.options.uploadLengthDeferred)r._size=null;else if(r.options.uploadSize!=null){if(r._size=Number(r.options.uploadSize),Number.isNaN(r._size)){r._emitError(new Error("tus: cannot convert `uploadSize` option into a number"));return}}else if(r._size=r._source.size,r._size==null){r._emitError(new Error("tus: cannot automatically derive upload's size from input. Specify it manually using the `uploadSize` option or use the `uploadLengthDeferred` option"));return}r.options.parallelUploads>1||r._parallelUploadUrls!=null?r._startParallelUpload():r._startSingleUpload()}).catch(function(u){r._emitError(u)})}},{key:"_startParallelUpload",value:function(){var r,n=this,a=this._size,i=0;this._parallelUploads=[];var s=this._parallelUploadUrls!=null?this._parallelUploadUrls.length:this.options.parallelUploads,o=(r=this.options.parallelUploadBoundaries)!==null&&r!==void 0?r:EL(this._source.size,s);this._parallelUploadUrls&&o.forEach(function(f,d){f.uploadUrl=n._parallelUploadUrls[d]||null}),this._parallelUploadUrls=new Array(o.length);var u=o.map(function(f,d){var p=0;return n._source.slice(f.start,f.end).then(function(v){var _=v.value;return new Promise(function(x,w){var C=Al(Al({},n.options),{},{uploadUrl:f.uploadUrl||null,storeFingerprintForResuming:!1,removeFingerprintOnSuccess:!1,parallelUploads:1,parallelUploadBoundaries:null,metadata:{},headers:Al(Al({},n.options.headers),{},{"Upload-Concat":"partial"}),onSuccess:x,onError:w,onProgress:function(h){i=i-p+h,p=h,n._emitProgress(i,a)},onUploadUrlAvailable:function(){n._parallelUploadUrls[d]=E.url,n._parallelUploadUrls.filter(function(h){return!!h}).length===o.length&&n._saveUploadInUrlStorage()}}),E=new e(_,C);E.start(),n._parallelUploads.push(E)})})}),l;Promise.all(u).then(function(){l=n._openRequest("POST",n.options.endpoint),l.setHeader("Upload-Concat","final;".concat(n._parallelUploadUrls.join(" ")));var f=y6(n.options.metadata);return f!==""&&l.setHeader("Upload-Metadata",f),n._sendRequest(l,null)}).then(function(f){if(!Fl(f.getStatus(),200)){n._emitHttpError(l,f,"tus: unexpected response while creating upload");return}var d=f.getHeader("Location");if(d==null){n._emitHttpError(l,f,"tus: invalid or missing Location header");return}n.url=C6(n.options.endpoint,d),"Created upload at ".concat(n.url),n._emitSuccess()}).catch(function(f){n._emitError(f)})}},{key:"_startSingleUpload",value:function(){if(this._aborted=!1,this.url!=null){"Resuming upload from previous URL: ".concat(this.url),this._resumeUpload();return}if(this.options.uploadUrl!=null){"Resuming upload from provided URL: ".concat(this.options.uploadUrl),this.url=this.options.uploadUrl,this._resumeUpload();return}this._createUpload()}},{key:"abort",value:function(r){var n=this;return this._parallelUploads!=null&&this._parallelUploads.forEach(function(a){a.abort(r)}),this._req!==null&&this._req.abort(),this._aborted=!0,this._retryTimeout!=null&&(clearTimeout(this._retryTimeout),this._retryTimeout=null),!r||this.url==null?Promise.resolve():e.terminate(this.url,this.options).then(function(){return n._removeFromUrlStorage()})}},{key:"_emitHttpError",value:function(r,n,a,i){this._emitError(new Fh(a,i,r,n))}},{key:"_emitError",value:function(r){var n=this;if(!this._aborted){if(this.options.retryDelays!=null){var a=this._offset!=null&&this._offset>this._offsetBeforeRetry;if(a&&(this._retryAttempt=0),S6(r,this._retryAttempt,this.options)){var i=this.options.retryDelays[this._retryAttempt++];this._offsetBeforeRetry=this._offset,this._retryTimeout=setTimeout(function(){n.start()},i);return}}if(typeof this.options.onError=="function")this.options.onError(r);else throw r}}},{key:"_emitSuccess",value:function(){this.options.removeFingerprintOnSuccess&&this._removeFromUrlStorage(),typeof this.options.onSuccess=="function"&&this.options.onSuccess()}},{key:"_emitProgress",value:function(r,n){typeof this.options.onProgress=="function"&&this.options.onProgress(r,n)}},{key:"_emitChunkComplete",value:function(r,n,a){typeof this.options.onChunkComplete=="function"&&this.options.onChunkComplete(r,n,a)}},{key:"_createUpload",value:function(){var r=this;if(!this.options.endpoint){this._emitError(new Error("tus: unable to create upload because no endpoint is provided"));return}var n=this._openRequest("POST",this.options.endpoint);this.options.uploadLengthDeferred?n.setHeader("Upload-Defer-Length",1):n.setHeader("Upload-Length",this._size);var a=y6(this.options.metadata);a!==""&&n.setHeader("Upload-Metadata",a);var i;this.options.uploadDataDuringCreation&&!this.options.uploadLengthDeferred?(this._offset=0,i=this._addChunkToRequest(n)):i=this._sendRequest(n,null),i.then(function(s){if(!Fl(s.getStatus(),200)){r._emitHttpError(n,s,"tus: unexpected response while creating upload");return}var o=s.getHeader("Location");if(o==null){r._emitHttpError(n,s,"tus: invalid or missing Location header");return}if(r.url=C6(r.options.endpoint,o),"Created upload at ".concat(r.url),typeof r.options.onUploadUrlAvailable=="function"&&r.options.onUploadUrlAvailable(),r._size===0){r._emitSuccess(),r._source.close();return}r._saveUploadInUrlStorage().then(function(){r.options.uploadDataDuringCreation?r._handleUploadResponse(n,s):(r._offset=0,r._performUpload())})}).catch(function(s){r._emitHttpError(n,null,"tus: failed to create upload",s)})}},{key:"_resumeUpload",value:function(){var r=this,n=this._openRequest("HEAD",this.url),a=this._sendRequest(n,null);a.then(function(i){var s=i.getStatus();if(!Fl(s,200)){if(s===423){r._emitHttpError(n,i,"tus: upload is currently locked; retry later");return}if(Fl(s,400)&&r._removeFromUrlStorage(),!r.options.endpoint){r._emitHttpError(n,i,"tus: unable to resume upload (new upload cannot be created without an endpoint)");return}r.url=null,r._createUpload();return}var o=parseInt(i.getHeader("Upload-Offset"),10);if(Number.isNaN(o)){r._emitHttpError(n,i,"tus: invalid or missing offset value");return}var u=parseInt(i.getHeader("Upload-Length"),10);if(Number.isNaN(u)&&!r.options.uploadLengthDeferred){r._emitHttpError(n,i,"tus: invalid or missing length value");return}typeof r.options.onUploadUrlAvailable=="function"&&r.options.onUploadUrlAvailable(),r._saveUploadInUrlStorage().then(function(){if(o===u){r._emitProgress(u,u),r._emitSuccess();return}r._offset=o,r._performUpload()})}).catch(function(i){r._emitHttpError(n,null,"tus: failed to resume upload",i)})}},{key:"_performUpload",value:function(){var r=this;if(!this._aborted){var n;this.options.overridePatchMethod?(n=this._openRequest("POST",this.url),n.setHeader("X-HTTP-Method-Override","PATCH")):n=this._openRequest("PATCH",this.url),n.setHeader("Upload-Offset",this._offset);var a=this._addChunkToRequest(n);a.then(function(i){if(!Fl(i.getStatus(),200)){r._emitHttpError(n,i,"tus: unexpected response while uploading chunk");return}r._handleUploadResponse(n,i)}).catch(function(i){r._aborted||r._emitHttpError(n,null,"tus: failed to upload chunk at offset ".concat(r._offset),i)})}}},{key:"_addChunkToRequest",value:function(r){var n=this,a=this._offset,i=this._offset+this.options.chunkSize;return r.setProgressHandler(function(s){n._emitProgress(a+s,n._size)}),r.setHeader("Content-Type","application/offset+octet-stream"),(i===1/0||i>this._size)&&!this.options.uploadLengthDeferred&&(i=this._size),this._source.slice(a,i).then(function(s){var o=s.value,u=s.done,l=o&&o.size?o.size:0;n.options.uploadLengthDeferred&&u&&(n._size=n._offset+l,r.setHeader("Upload-Length",n._size));var f=n._offset+l;return!n.options.uploadLengthDeferred&&u&&f!==n._size?Promise.reject(new Error("upload was configured with a size of ".concat(n._size," bytes, but the source is done after ").concat(f," bytes"))):o===null?n._sendRequest(r):(n._emitProgress(n._offset,n._size),n._sendRequest(r,o))})}},{key:"_handleUploadResponse",value:function(r,n){var a=parseInt(n.getHeader("Upload-Offset"),10);if(Number.isNaN(a)){this._emitHttpError(r,n,"tus: invalid or missing offset value");return}if(this._emitProgress(a,this._size),this._emitChunkComplete(a-this._offset,a,this._size),this._offset=a,a===this._size){this._emitSuccess(),this._source.close();return}this._performUpload()}},{key:"_openRequest",value:function(r,n){var a=b6(r,n,this.options);return this._req=a,a}},{key:"_removeFromUrlStorage",value:function(){var r=this;this._urlStorageKey&&(this._urlStorage.removeUpload(this._urlStorageKey).catch(function(n){r._emitError(n)}),this._urlStorageKey=null)}},{key:"_saveUploadInUrlStorage",value:function(){var r=this;if(!this.options.storeFingerprintForResuming||!this._fingerprint||this._urlStorageKey!==null)return Promise.resolve();var n={size:this._size,metadata:this.options.metadata,creationTime:new Date().toString()};return this._parallelUploads?n.parallelUploadUrls=this._parallelUploadUrls:n.uploadUrl=this.url,this._urlStorage.addUpload(this._fingerprint,n).then(function(a){r._urlStorageKey=a})}},{key:"_sendRequest",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return w6(r,n,this.options)}}],[{key:"terminate",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=b6("DELETE",r,n);return w6(a,null,n).then(function(i){if(i.getStatus()!==204)throw new Fh("tus: unexpected response while terminating upload",null,a,i)}).catch(function(i){if(i instanceof Fh||(i=new Fh("tus: failed to terminate upload",i,a,null)),!S6(i,0,n))throw i;var s=n.retryDelays[0],o=n.retryDelays.slice(1),u=Al(Al({},n),{},{retryDelays:o});return new Promise(function(l){return setTimeout(l,s)}).then(function(){return e.terminate(r,u)})})}}]),e}();function y6(e){return Object.entries(e).map(function(t){var r=m6(t,2),n=r[0],a=r[1];return"".concat(n," ").concat(QM.encode(String(a)))}).join(",")}function Fl(e,t){return e>=t&&e<t+100}function b6(e,t,r){var n=r.httpStack.createRequest(e,t);n.setHeader("Tus-Resumable","1.0.0");var a=r.headers||{};if(Object.entries(a).forEach(function(s){var o=m6(s,2),u=o[0],l=o[1];n.setHeader(u,l)}),r.addRequestId){var i=dL();n.setHeader("X-Request-ID",i)}return n}function w6(e,t,r){return Dv.apply(this,arguments)}function Dv(){return Dv=hL(Pv().mark(function e(t,r,n){var a;return Pv().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(typeof n.onBeforeRequest!="function"){s.next=3;break}return s.next=3,n.onBeforeRequest(t);case 3:return s.next=5,t.send(r);case 5:if(a=s.sent,typeof n.onAfterResponse!="function"){s.next=9;break}return s.next=9,n.onAfterResponse(t,a);case 9:return s.abrupt("return",a);case 10:case"end":return s.stop()}},e)})),Dv.apply(this,arguments)}function SL(){var e=!0;return typeof window<"u"&&"navigator"in window&&window.navigator.onLine===!1&&(e=!1),e}function S6(e,t,r){return r.retryDelays==null||t>=r.retryDelays.length||e.originalRequest==null?!1:r&&typeof r.onShouldRetry=="function"?r.onShouldRetry(e,t,r):E6(e)}function E6(e){var t=e.originalResponse?e.originalResponse.getStatus():0;return(!Fl(t,400)||t===409||t===423)&&SL()}function C6(e,t){return new aL(t,e).toString()}function EL(e,t){for(var r=Math.floor(e/t),n=[],a=0;a<t;a++)n.push({start:r*a,end:r*(a+1)});return n[t-1].end=e,n}Oh.defaultOptions=wL;function Hf(e){"@babel/helpers - typeof";return Hf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hf(e)}function CL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kL(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,AL(n.key),n)}}function TL(e,t,r){return t&&kL(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function AL(e){var t=FL(e,"string");return Hf(t)==="symbol"?t:String(t)}function FL(e,t){if(Hf(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Hf(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var OL=function(){function e(){CL(this,e)}return TL(e,[{key:"listAllUploads",value:function(){return Promise.resolve([])}},{key:"findUploadsByFingerprint",value:function(r){return Promise.resolve([])}},{key:"removeUpload",value:function(r){return Promise.resolve()}},{key:"addUpload",value:function(r,n){return Promise.resolve(null)}}]),e}();function Wf(e){"@babel/helpers - typeof";return Wf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wf(e)}function PL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function DL(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,IL(n.key),n)}}function RL(e,t,r){return t&&DL(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function IL(e){var t=NL(e,"string");return Wf(t)==="symbol"?t:String(t)}function NL(e,t){if(Wf(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Wf(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Rv=!1;try{Rv="localStorage"in window;var Iv="tusSupport",k6=localStorage.getItem(Iv);localStorage.setItem(Iv,k6),k6===null&&localStorage.removeItem(Iv)}catch(e){if(e.code===e.SECURITY_ERR||e.code===e.QUOTA_EXCEEDED_ERR)Rv=!1;else throw e}var ML=Rv,LL=function(){function e(){PL(this,e)}return RL(e,[{key:"findAllUploads",value:function(){var r=this._findEntries("tus::");return Promise.resolve(r)}},{key:"findUploadsByFingerprint",value:function(r){var n=this._findEntries("tus::".concat(r,"::"));return Promise.resolve(n)}},{key:"removeUpload",value:function(r){return localStorage.removeItem(r),Promise.resolve()}},{key:"addUpload",value:function(r,n){var a=Math.round(Math.random()*1e12),i="tus::".concat(r,"::").concat(a);return localStorage.setItem(i,JSON.stringify(n)),Promise.resolve(i)}},{key:"_findEntries",value:function(r){for(var n=[],a=0;a<localStorage.length;a++){var i=localStorage.key(a);if(i.indexOf(r)===0)try{var s=JSON.parse(localStorage.getItem(i));s.urlStorageKey=i,n.push(s)}catch{}}return n}}]),e}();function Vf(e){"@babel/helpers - typeof";return Vf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vf(e)}function Nv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function BL(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,jL(n.key),n)}}function Mv(e,t,r){return t&&BL(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function jL(e){var t=$L(e,"string");return Vf(t)==="symbol"?t:String(t)}function $L(e,t){if(Vf(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Vf(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var UL=function(){function e(){Nv(this,e)}return Mv(e,[{key:"createRequest",value:function(r,n){return new zL(r,n)}},{key:"getName",value:function(){return"XHRHttpStack"}}]),e}(),zL=function(){function e(t,r){Nv(this,e),this._xhr=new XMLHttpRequest,this._xhr.open(t,r,!0),this._method=t,this._url=r,this._headers={}}return Mv(e,[{key:"getMethod",value:function(){return this._method}},{key:"getURL",value:function(){return this._url}},{key:"setHeader",value:function(r,n){this._xhr.setRequestHeader(r,n),this._headers[r]=n}},{key:"getHeader",value:function(r){return this._headers[r]}},{key:"setProgressHandler",value:function(r){"upload"in this._xhr&&(this._xhr.upload.onprogress=function(n){n.lengthComputable&&r(n.loaded)})}},{key:"send",value:function(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return new Promise(function(a,i){r._xhr.onload=function(){a(new HL(r._xhr))},r._xhr.onerror=function(s){i(s)},r._xhr.send(n)})}},{key:"abort",value:function(){return this._xhr.abort(),Promise.resolve()}},{key:"getUnderlyingObject",value:function(){return this._xhr}}]),e}(),HL=function(){function e(t){Nv(this,e),this._xhr=t}return Mv(e,[{key:"getStatus",value:function(){return this._xhr.status}},{key:"getHeader",value:function(r){return this._xhr.getResponseHeader(r)}},{key:"getBody",value:function(){return this._xhr.responseText}},{key:"getUnderlyingObject",value:function(){return this._xhr}}]),e}(),T6=function(){return typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative"};function WL(e){return new Promise(function(t,r){var n=new XMLHttpRequest;n.responseType="blob",n.onload=function(){var a=n.response;t(a)},n.onerror=function(a){r(a)},n.open("GET",e),n.send()})}var VL=function(){return typeof window<"u"&&(typeof window.PhoneGap<"u"||typeof window.Cordova<"u"||typeof window.cordova<"u")};function qL(e){return new Promise(function(t,r){var n=new FileReader;n.onload=function(){var a=new Uint8Array(n.result);t({value:a})},n.onerror=function(a){r(a)},n.readAsArrayBuffer(e)})}function qf(e){"@babel/helpers - typeof";return qf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qf(e)}function GL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function YL(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,KL(n.key),n)}}function XL(e,t,r){return t&&YL(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function KL(e){var t=ZL(e,"string");return qf(t)==="symbol"?t:String(t)}function ZL(e,t){if(qf(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(qf(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var A6=function(){function e(t){GL(this,e),this._file=t,this.size=t.size}return XL(e,[{key:"slice",value:function(r,n){if(VL())return qL(this._file.slice(r,n));var a=this._file.slice(r,n),i=n>=this.size;return Promise.resolve({value:a,done:i})}},{key:"close",value:function(){}}]),e}();function Gf(e){"@babel/helpers - typeof";return Gf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gf(e)}function JL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function QL(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,tB(n.key),n)}}function eB(e,t,r){return t&&QL(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function tB(e){var t=rB(e,"string");return Gf(t)==="symbol"?t:String(t)}function rB(e,t){if(Gf(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Gf(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function F6(e){return e===void 0?0:e.size!==void 0?e.size:e.length}function nB(e,t){if(e.concat)return e.concat(t);if(e instanceof Blob)return new Blob([e,t],{type:e.type});if(e.set){var r=new e.constructor(e.length+t.length);return r.set(e),r.set(t,e.length),r}throw new Error("Unknown data type")}var aB=function(){function e(t){JL(this,e),this._buffer=void 0,this._bufferOffset=0,this._reader=t,this._done=!1}return eB(e,[{key:"slice",value:function(r,n){return r<this._bufferOffset?Promise.reject(new Error("Requested data is before the reader's current offset")):this._readUntilEnoughDataOrDone(r,n)}},{key:"_readUntilEnoughDataOrDone",value:function(r,n){var a=this,i=n<=this._bufferOffset+F6(this._buffer);if(this._done||i){var s=this._getDataFromBuffer(r,n),o=s==null?this._done:!1;return Promise.resolve({value:s,done:o})}return this._reader.read().then(function(u){var l=u.value,f=u.done;return f?a._done=!0:a._buffer===void 0?a._buffer=l:a._buffer=nB(a._buffer,l),a._readUntilEnoughDataOrDone(r,n)})}},{key:"_getDataFromBuffer",value:function(r,n){r>this._bufferOffset&&(this._buffer=this._buffer.slice(r-this._bufferOffset),this._bufferOffset=r);var a=F6(this._buffer)===0;return this._done&&a?null:this._buffer.slice(0,n-r)}},{key:"close",value:function(){this._reader.cancel&&this._reader.cancel()}}]),e}();function gu(e){"@babel/helpers - typeof";return gu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gu(e)}function Lv(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Lv=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(O,M,V){O[M]=V.value},i=typeof Symbol=="function"?Symbol:{},s=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(O,M,V){return Object.defineProperty(O,M,{value:V,enumerable:!0,configurable:!0,writable:!0}),O[M]}try{l({},"")}catch{l=function(V,L,W){return V[L]=W}}function f(O,M,V,L){var W=M&&M.prototype instanceof C?M:C,G=Object.create(W.prototype),H=new I(L||[]);return a(G,"_invoke",{value:F(O,V,H)}),G}function d(O,M,V){try{return{type:"normal",arg:O.call(M,V)}}catch(L){return{type:"throw",arg:L}}}t.wrap=f;var p="suspendedStart",v="suspendedYield",_="executing",x="completed",w={};function C(){}function E(){}function b(){}var h={};l(h,s,function(){return this});var g=Object.getPrototypeOf,y=g&&g(g(B([])));y&&y!==r&&n.call(y,s)&&(h=y);var S=b.prototype=C.prototype=Object.create(h);function A(O){["next","throw","return"].forEach(function(M){l(O,M,function(V){return this._invoke(M,V)})})}function k(O,M){function V(W,G,H,Q){var K=d(O[W],O,G);if(K.type!=="throw"){var te=K.arg,se=te.value;return se&&gu(se)=="object"&&n.call(se,"__await")?M.resolve(se.__await).then(function(le){V("next",le,H,Q)},function(le){V("throw",le,H,Q)}):M.resolve(se).then(function(le){te.value=le,H(te)},function(le){return V("throw",le,H,Q)})}Q(K.arg)}var L;a(this,"_invoke",{value:function(G,H){function Q(){return new M(function(K,te){V(G,H,K,te)})}return L=L?L.then(Q,Q):Q()}})}function F(O,M,V){var L=p;return function(W,G){if(L===_)throw new Error("Generator is already running");if(L===x){if(W==="throw")throw G;return{value:e,done:!0}}for(V.method=W,V.arg=G;;){var H=V.delegate;if(H){var Q=P(H,V);if(Q){if(Q===w)continue;return Q}}if(V.method==="next")V.sent=V._sent=V.arg;else if(V.method==="throw"){if(L===p)throw L=x,V.arg;V.dispatchException(V.arg)}else V.method==="return"&&V.abrupt("return",V.arg);L=_;var K=d(O,M,V);if(K.type==="normal"){if(L=V.done?x:v,K.arg===w)continue;return{value:K.arg,done:V.done}}K.type==="throw"&&(L=x,V.method="throw",V.arg=K.arg)}}}function P(O,M){var V=M.method,L=O.iterator[V];if(L===e)return M.delegate=null,V==="throw"&&O.iterator.return&&(M.method="return",M.arg=e,P(O,M),M.method==="throw")||V!=="return"&&(M.method="throw",M.arg=new TypeError("The iterator does not provide a '"+V+"' method")),w;var W=d(L,O.iterator,M.arg);if(W.type==="throw")return M.method="throw",M.arg=W.arg,M.delegate=null,w;var G=W.arg;return G?G.done?(M[O.resultName]=G.value,M.next=O.nextLoc,M.method!=="return"&&(M.method="next",M.arg=e),M.delegate=null,w):G:(M.method="throw",M.arg=new TypeError("iterator result is not an object"),M.delegate=null,w)}function j(O){var M={tryLoc:O[0]};1 in O&&(M.catchLoc=O[1]),2 in O&&(M.finallyLoc=O[2],M.afterLoc=O[3]),this.tryEntries.push(M)}function N(O){var M=O.completion||{};M.type="normal",delete M.arg,O.completion=M}function I(O){this.tryEntries=[{tryLoc:"root"}],O.forEach(j,this),this.reset(!0)}function B(O){if(O||O===""){var M=O[s];if(M)return M.call(O);if(typeof O.next=="function")return O;if(!isNaN(O.length)){var V=-1,L=function W(){for(;++V<O.length;)if(n.call(O,V))return W.value=O[V],W.done=!1,W;return W.value=e,W.done=!0,W};return L.next=L}}throw new TypeError(gu(O)+" is not iterable")}return E.prototype=b,a(S,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:E,configurable:!0}),E.displayName=l(b,u,"GeneratorFunction"),t.isGeneratorFunction=function(O){var M=typeof O=="function"&&O.constructor;return!!M&&(M===E||(M.displayName||M.name)==="GeneratorFunction")},t.mark=function(O){return Object.setPrototypeOf?Object.setPrototypeOf(O,b):(O.__proto__=b,l(O,u,"GeneratorFunction")),O.prototype=Object.create(S),O},t.awrap=function(O){return{__await:O}},A(k.prototype),l(k.prototype,o,function(){return this}),t.AsyncIterator=k,t.async=function(O,M,V,L,W){W===void 0&&(W=Promise);var G=new k(f(O,M,V,L),W);return t.isGeneratorFunction(M)?G:G.next().then(function(H){return H.done?H.value:G.next()})},A(S),l(S,u,"Generator"),l(S,s,function(){return this}),l(S,"toString",function(){return"[object Generator]"}),t.keys=function(O){var M=Object(O),V=[];for(var L in M)V.push(L);return V.reverse(),function W(){for(;V.length;){var G=V.pop();if(G in M)return W.value=G,W.done=!1,W}return W.done=!0,W}},t.values=B,I.prototype={constructor:I,reset:function(M){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(N),!M)for(var V in this)V.charAt(0)==="t"&&n.call(this,V)&&!isNaN(+V.slice(1))&&(this[V]=e)},stop:function(){this.done=!0;var M=this.tryEntries[0].completion;if(M.type==="throw")throw M.arg;return this.rval},dispatchException:function(M){if(this.done)throw M;var V=this;function L(te,se){return H.type="throw",H.arg=M,V.next=te,se&&(V.method="next",V.arg=e),!!se}for(var W=this.tryEntries.length-1;W>=0;--W){var G=this.tryEntries[W],H=G.completion;if(G.tryLoc==="root")return L("end");if(G.tryLoc<=this.prev){var Q=n.call(G,"catchLoc"),K=n.call(G,"finallyLoc");if(Q&&K){if(this.prev<G.catchLoc)return L(G.catchLoc,!0);if(this.prev<G.finallyLoc)return L(G.finallyLoc)}else if(Q){if(this.prev<G.catchLoc)return L(G.catchLoc,!0)}else{if(!K)throw new Error("try statement without catch or finally");if(this.prev<G.finallyLoc)return L(G.finallyLoc)}}}},abrupt:function(M,V){for(var L=this.tryEntries.length-1;L>=0;--L){var W=this.tryEntries[L];if(W.tryLoc<=this.prev&&n.call(W,"finallyLoc")&&this.prev<W.finallyLoc){var G=W;break}}G&&(M==="break"||M==="continue")&&G.tryLoc<=V&&V<=G.finallyLoc&&(G=null);var H=G?G.completion:{};return H.type=M,H.arg=V,G?(this.method="next",this.next=G.finallyLoc,w):this.complete(H)},complete:function(M,V){if(M.type==="throw")throw M.arg;return M.type==="break"||M.type==="continue"?this.next=M.arg:M.type==="return"?(this.rval=this.arg=M.arg,this.method="return",this.next="end"):M.type==="normal"&&V&&(this.next=V),w},finish:function(M){for(var V=this.tryEntries.length-1;V>=0;--V){var L=this.tryEntries[V];if(L.finallyLoc===M)return this.complete(L.completion,L.afterLoc),N(L),w}},catch:function(M){for(var V=this.tryEntries.length-1;V>=0;--V){var L=this.tryEntries[V];if(L.tryLoc===M){var W=L.completion;if(W.type==="throw"){var G=W.arg;N(L)}return G}}throw new Error("illegal catch attempt")},delegateYield:function(M,V,L){return this.delegate={iterator:B(M),resultName:V,nextLoc:L},this.method==="next"&&(this.arg=e),w}},t}function O6(e,t,r,n,a,i,s){try{var o=e[i](s),u=o.value}catch(l){r(l);return}o.done?t(u):Promise.resolve(u).then(n,a)}function iB(e){return function(){var t=this,r=arguments;return new Promise(function(n,a){var i=e.apply(t,r);function s(u){O6(i,n,a,s,o,"next",u)}function o(u){O6(i,n,a,s,o,"throw",u)}s(void 0)})}}function sB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oB(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,lB(n.key),n)}}function uB(e,t,r){return t&&oB(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function lB(e){var t=cB(e,"string");return gu(t)==="symbol"?t:String(t)}function cB(e,t){if(gu(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(gu(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var fB=function(){function e(){sB(this,e)}return uB(e,[{key:"openFile",value:function(){var t=iB(Lv().mark(function n(a,i){var s;return Lv().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(!(T6()&&a&&typeof a.uri<"u")){u.next=11;break}return u.prev=1,u.next=4,WL(a.uri);case 4:return s=u.sent,u.abrupt("return",new A6(s));case 8:throw u.prev=8,u.t0=u.catch(1),new Error("tus: cannot fetch `file.uri` as Blob, make sure the uri is correct and accessible. ".concat(u.t0));case 11:if(!(typeof a.slice=="function"&&typeof a.size<"u")){u.next=13;break}return u.abrupt("return",Promise.resolve(new A6(a)));case 13:if(typeof a.read!="function"){u.next=18;break}if(i=Number(i),Number.isFinite(i)){u.next=17;break}return u.abrupt("return",Promise.reject(new Error("cannot create source for stream without a finite value for the `chunkSize` option")));case 17:return u.abrupt("return",Promise.resolve(new aB(a,i)));case 18:return u.abrupt("return",Promise.reject(new Error("source object may only be an instance of File, Blob, or Reader in this environment")));case 19:case"end":return u.stop()}},n,null,[[1,8]])}));function r(n,a){return t.apply(this,arguments)}return r}()}]),e}();function dB(e,t){return T6()?Promise.resolve(hB(e,t)):Promise.resolve(["tus-br",e.name,e.type,e.size,e.lastModified,t.endpoint].join("-"))}function hB(e,t){var r=e.exif?pB(JSON.stringify(e.exif)):"noexif";return["tus-rn",e.name||"noname",e.size||"nosize",r,t.endpoint].join("/")}function pB(e){var t=0;if(e.length===0)return t;for(var r=0;r<e.length;r++){var n=e.charCodeAt(r);t=(t<<5)-t+n,t&=t}return t}function Ol(e){"@babel/helpers - typeof";return Ol=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ol(e)}function mB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gB(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,D6(n.key),n)}}function vB(e,t,r){return r&&gB(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function xB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Bv(e,t)}function Bv(e,t){return Bv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Bv(e,t)}function _B(e){var t=wB();return function(){var n=Ph(e),a;if(t){var i=Ph(this).constructor;a=Reflect.construct(n,arguments,i)}else a=n.apply(this,arguments);return yB(this,a)}}function yB(e,t){if(t&&(Ol(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bB(e)}function bB(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wB(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ph(e){return Ph=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ph(e)}function P6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Pl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?P6(Object(r),!0).forEach(function(n){SB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):P6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function SB(e,t,r){return t=D6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function D6(e){var t=EB(e,"string");return Ol(t)==="symbol"?t:String(t)}function EB(e,t){if(Ol(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ol(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var jv=Pl(Pl({},Oh.defaultOptions),{},{httpStack:new UL,fileReader:new fB,urlStorage:ML?new LL:new OL,fingerprint:dB}),CB=function(e){xB(r,e);var t=_B(r);function r(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return mB(this,r),a=Pl(Pl({},jv),a),t.call(this,n,a)}return vB(r,null,[{key:"terminate",value:function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return i=Pl(Pl({},jv),i),Oh.terminate(a,i)}}]),r}(Oh);function Es(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var kB=0;function R6(e){return"__private_"+kB+++"_"+e}var zn=R6("uppy"),Yf=R6("events");class TB{constructor(t){Object.defineProperty(this,zn,{writable:!0,value:void 0}),Object.defineProperty(this,Yf,{writable:!0,value:[]}),Es(this,zn)[zn]=t}on(t,r){return Es(this,Yf)[Yf].push([t,r]),Es(this,zn)[zn].on(t,r)}remove(){for(const[t,r]of Es(this,Yf)[Yf].splice(0))Es(this,zn)[zn].off(t,r)}onFilePause(t,r){this.on("upload-pause",(n,a)=>{t===n&&r(a)})}onFileRemove(t,r){this.on("file-removed",n=>{t===n.id&&r(n.id)})}onPause(t,r){this.on("upload-pause",(n,a)=>{t===n&&r(a)})}onRetry(t,r){this.on("upload-retry",n=>{t===n&&r()})}onRetryAll(t,r){this.on("retry-all",()=>{Es(this,zn)[zn].getFile(t)&&r()})}onPauseAll(t,r){this.on("pause-all",()=>{Es(this,zn)[zn].getFile(t)&&r()})}onCancelAll(t,r){var n=this;this.on("cancel-all",function(){Es(n,zn)[zn].getFile(t)&&r(...arguments)})}onResumeAll(t,r){this.on("resume-all",()=>{Es(this,zn)[zn].getFile(t)&&r()})}}class AB extends Error{constructor(t,r){r===void 0&&(r=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=t,this.isNetworkError=!0,this.request=r}}function FB(e){return e?e.readyState!==0&&e.readyState!==4||e.status===0:!1}function dt(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var OB=0;function Qn(e){return"__private_"+OB+++"_"+e}function PB(e){return new Error("Cancelled",{cause:e})}function I6(e){if(e!=null){var t;const r=()=>this.abort(e.reason);e.addEventListener("abort",r,{once:!0});const n=()=>{e.removeEventListener("abort",r)};(t=this.then)==null||t.call(this,n,n)}return this}var pa=Qn("activeRequests"),Hn=Qn("queuedHandlers"),ma=Qn("paused"),vu=Qn("pauseTimer"),Wn=Qn("downLimit"),xu=Qn("upperLimit"),Cs=Qn("rateLimitingTimer"),Xf=Qn("call"),ks=Qn("queueNext"),$v=Qn("next"),Uv=Qn("queue"),zv=Qn("dequeue"),Hv=Qn("resume"),_u=Qn("increaseLimit");class DB{constructor(t){Object.defineProperty(this,zv,{value:LB}),Object.defineProperty(this,Uv,{value:MB}),Object.defineProperty(this,$v,{value:NB}),Object.defineProperty(this,ks,{value:IB}),Object.defineProperty(this,Xf,{value:RB}),Object.defineProperty(this,pa,{writable:!0,value:0}),Object.defineProperty(this,Hn,{writable:!0,value:[]}),Object.defineProperty(this,ma,{writable:!0,value:!1}),Object.defineProperty(this,vu,{writable:!0,value:void 0}),Object.defineProperty(this,Wn,{writable:!0,value:1}),Object.defineProperty(this,xu,{writable:!0,value:void 0}),Object.defineProperty(this,Cs,{writable:!0,value:void 0}),Object.defineProperty(this,Hv,{writable:!0,value:()=>this.resume()}),Object.defineProperty(this,_u,{writable:!0,value:()=>{if(dt(this,ma)[ma]){dt(this,Cs)[Cs]=setTimeout(dt(this,_u)[_u],0);return}dt(this,Wn)[Wn]=this.limit,this.limit=Math.ceil((dt(this,xu)[xu]+dt(this,Wn)[Wn])/2);for(let r=dt(this,Wn)[Wn];r<=this.limit;r++)dt(this,ks)[ks]();dt(this,xu)[xu]-dt(this,Wn)[Wn]>3?dt(this,Cs)[Cs]=setTimeout(dt(this,_u)[_u],2e3):dt(this,Wn)[Wn]=Math.floor(dt(this,Wn)[Wn]/2)}}),typeof t!="number"||t===0?this.limit=1/0:this.limit=t}run(t,r){return!dt(this,ma)[ma]&&dt(this,pa)[pa]<this.limit?dt(this,Xf)[Xf](t):dt(this,Uv)[Uv](t,r)}wrapSyncFunction(t,r){var n=this;return function(){for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];const o=n.run(()=>(t(...i),queueMicrotask(()=>o.done()),()=>{}),r);return{abortOn:I6,abort(){o.abort()}}}}wrapPromiseFunction(t,r){var n=this;return function(){for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];let o;const u=new Promise((l,f)=>{o=n.run(()=>{let d,p;try{p=Promise.resolve(t(...i))}catch(v){p=Promise.reject(v)}return p.then(v=>{d?f(d):(o.done(),l(v))},v=>{d?f(d):(o.done(),f(v))}),v=>{d=PB(v)}},r)});return u.abort=l=>{o.abort(l)},u.abortOn=I6,u}}resume(){dt(this,ma)[ma]=!1,clearTimeout(dt(this,vu)[vu]);for(let t=0;t<this.limit;t++)dt(this,ks)[ks]()}pause(t){t===void 0&&(t=null),dt(this,ma)[ma]=!0,clearTimeout(dt(this,vu)[vu]),t!=null&&(dt(this,vu)[vu]=setTimeout(dt(this,Hv)[Hv],t))}rateLimit(t){clearTimeout(dt(this,Cs)[Cs]),this.pause(t),this.limit>1&&Number.isFinite(this.limit)&&(dt(this,xu)[xu]=this.limit-1,this.limit=dt(this,Wn)[Wn],dt(this,Cs)[Cs]=setTimeout(dt(this,_u)[_u],t))}get isPaused(){return dt(this,ma)[ma]}}function RB(e){dt(this,pa)[pa]+=1;let t=!1,r;try{r=e()}catch(n){throw dt(this,pa)[pa]-=1,n}return{abort:n=>{t||(t=!0,dt(this,pa)[pa]-=1,r==null||r(n),dt(this,ks)[ks]())},done:()=>{t||(t=!0,dt(this,pa)[pa]-=1,dt(this,ks)[ks]())}}}function IB(){queueMicrotask(()=>dt(this,$v)[$v]())}function NB(){if(dt(this,ma)[ma]||dt(this,pa)[pa]>=this.limit||dt(this,Hn)[Hn].length===0)return;const e=dt(this,Hn)[Hn].shift();if(e==null)throw new Error("Invariant violation: next is null");const t=dt(this,Xf)[Xf](e.fn);e.abort=t.abort,e.done=t.done}function MB(e,t){const r={fn:e,priority:(t==null?void 0:t.priority)||0,abort:()=>{dt(this,zv)[zv](r)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},n=dt(this,Hn)[Hn].findIndex(a=>r.priority>a.priority);return n===-1?dt(this,Hn)[Hn].push(r):dt(this,Hn)[Hn].splice(n,0,r),r}function LB(e){const t=dt(this,Hn)[Hn].indexOf(e);t!==-1&&dt(this,Hn)[Hn].splice(t,1)}function Wv(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function BB(e){const t=r=>"error"in r&&!!r.error;return e.filter(r=>!t(r))}function jB(e){return e.filter(t=>{var r;return!((r=t.progress)!=null&&r.uploadStarted)||!t.isRestored})}function $B(){return typeof window<"u"&&(typeof window.PhoneGap<"u"||typeof window.Cordova<"u"||typeof window.cordova<"u")}function UB(){return typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative"}function zB(e){return(t,r)=>{if($B()||UB())return jv.fingerprint(t,r);const n=["tus",e.id,r.endpoint].join("-");return Promise.resolve(n)}}function yu(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var HB=0;function Kf(e){return"__private_"+HB+++"_"+e}const WB={version:"3.5.5"},N6={endpoint:"",uploadUrl:null,metadata:{},uploadSize:null,onProgress:null,onChunkComplete:null,onSuccess:null,onError:null,overridePatchMethod:!1,headers:{},addRequestId:!1,chunkSize:1/0,retryDelays:[100,1e3,3e3,5e3],parallelUploads:1,removeFingerprintOnSuccess:!1,uploadLengthDeferred:!1,uploadDataDuringCreation:!1},VB={limit:20,retryDelays:N6.retryDelays,withCredentials:!1};var Zf=Kf("retryDelayIterator"),Vv=Kf("uploadLocalFile"),qv=Kf("getCompanionClientArgs"),Gv=Kf("uploadFiles"),Jf=Kf("handleUpload");class M6 extends WM{constructor(t,r){var n,a;if(super(t,{...VB,...r}),Object.defineProperty(this,Gv,{value:YB}),Object.defineProperty(this,qv,{value:GB}),Object.defineProperty(this,Vv,{value:qB}),Object.defineProperty(this,Zf,{writable:!0,value:void 0}),Object.defineProperty(this,Jf,{writable:!0,value:async i=>{if(i.length===0){this.uppy.log("[Tus] No files to upload");return}this.opts.limit===0&&this.uppy.log("[Tus] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/tus/#limit-0","warning"),this.uppy.log("[Tus] Uploading...");const s=this.uppy.getFilesByIds(i);await yu(this,Gv)[Gv](s)}}),this.type="uploader",this.id=this.opts.id||"Tus",(r==null?void 0:r.allowedMetaFields)===void 0&&"metaFields"in this.opts)throw new Error("The `metaFields` option has been renamed to `allowedMetaFields`.");if("autoRetry"in r)throw new Error("The `autoRetry` option was deprecated and has been removed.");this.requests=(n=this.opts.rateLimitedQueue)!=null?n:new DB(this.opts.limit),yu(this,Zf)[Zf]=(a=this.opts.retryDelays)==null?void 0:a.values(),this.uploaders=Object.create(null),this.uploaderEvents=Object.create(null),this.handleResetProgress=this.handleResetProgress.bind(this)}handleResetProgress(){const t={...this.uppy.getState().files};Object.keys(t).forEach(r=>{var n;if((n=t[r])!=null&&(n=n.tus)!=null&&n.uploadUrl){const a={...t[r].tus};delete a.uploadUrl,t[r]={...t[r],tus:a}}}),this.uppy.setState({files:t})}resetUploaderReferences(t,r){const n=this.uploaders[t];n&&(n.abort(),r!=null&&r.abort&&n.abort(!0),this.uploaders[t]=null),this.uploaderEvents[t]&&(this.uploaderEvents[t].remove(),this.uploaderEvents[t]=null)}onReceiveUploadUrl(t,r){const n=this.uppy.getFile(t.id);n&&(!n.tus||n.tus.uploadUrl!==r)&&(this.uppy.log("[Tus] Storing upload url"),this.uppy.setFileState(n.id,{tus:{...n.tus,uploadUrl:r}}))}install(){this.uppy.setState({capabilities:{...this.uppy.getState().capabilities,resumableUploads:!0}}),this.uppy.addUploader(yu(this,Jf)[Jf]),this.uppy.on("reset-progress",this.handleResetProgress)}uninstall(){this.uppy.setState({capabilities:{...this.uppy.getState().capabilities,resumableUploads:!1}}),this.uppy.removeUploader(yu(this,Jf)[Jf])}}function qB(e){var t=this;return this.resetUploaderReferences(e.id),new Promise((r,n)=>{let a,i,s;const o={...this.opts,...e.tus||{}};typeof o.headers=="function"&&(o.headers=o.headers(e));const{onShouldRetry:u,onBeforeRequest:l,...f}=o,d={...N6,...f};d.fingerprint=zB(e),d.onBeforeRequest=async C=>{const E=C.getUnderlyingObject();E.withCredentials=!!o.withCredentials;let b;if(typeof l=="function"&&(b=l(C,e)),Wv(a,"shouldBeRequeued")){if(!a.shouldBeRequeued)return Promise.reject();let h;const g=new Promise(y=>{h=y});a=this.requests.run(()=>(e.isPaused&&a.abort(),h(),()=>{})),await Promise.all([g,b]);return}return b},d.onError=C=>{var E;this.uppy.log(C);const b=C.originalRequest!=null?C.originalRequest.getUnderlyingObject():null;FB(b)&&(C=new AB(C,b)),this.resetUploaderReferences(e.id),(E=a)==null||E.abort(),this.uppy.emit("upload-error",e,C),typeof o.onError=="function"&&o.onError(C),n(C)},d.onProgress=(C,E)=>{this.onReceiveUploadUrl(e,s.url),typeof o.onProgress=="function"&&o.onProgress(C,E),this.uppy.emit("upload-progress",this.uppy.getFile(e.id),{uploader:this,bytesUploaded:C,bytesTotal:E})},d.onSuccess=()=>{var C;const E={uploadURL:(C=s.url)!=null?C:void 0,status:200,body:{}};if(this.resetUploaderReferences(e.id),a.done(),this.uppy.emit("upload-success",this.uppy.getFile(e.id),E),s.url){const{name:b}=s.file;this.uppy.log(`Download ${b} from ${s.url}`)}typeof o.onSuccess=="function"&&o.onSuccess(),r(s)};const p=C=>{var E;const b=C==null||(E=C.originalResponse)==null?void 0:E.getStatus();if(b===429){if(!this.requests.isPaused){var h;const g=(h=yu(this,Zf)[Zf])==null?void 0:h.next();if(g==null||g.done)return!1;this.requests.rateLimit(g.value)}}else{if(b!=null&&b>400&&b<500&&b!==409&&b!==423)return!1;typeof navigator<"u"&&navigator.onLine===!1&&(this.requests.isPaused||(this.requests.pause(),window.addEventListener("online",()=>{this.requests.resume()},{once:!0})))}return a.abort(),a={shouldBeRequeued:!0,abort(){this.shouldBeRequeued=!1},done(){throw new Error("Cannot mark a queued request as done: this indicates a bug")},fn(){throw new Error("Cannot run a queued request: this indicates a bug")}},!0};u!=null?d.onShouldRetry=(C,E)=>u(C,E,o,p):d.onShouldRetry=p;const v=(C,E,b)=>{Wv(C,E)&&!Wv(C,b)&&(C[b]=C[E])},_={};(Array.isArray(o.allowedMetaFields)?o.allowedMetaFields:Object.keys(e.meta)).forEach(C=>{_[C]=String(e.meta[C])}),v(_,"type","filetype"),v(_,"name","filename"),d.metadata=_,s=new CB(e.data,d),this.uploaders[e.id]=s;const w=new TB(this.uppy);this.uploaderEvents[e.id]=w,i=()=>(e.isPaused||s.start(),()=>{}),s.findPreviousUploads().then(C=>{const E=C[0];E&&(this.uppy.log(`[Tus] Resuming upload of ${e.id} started at ${E.creationTime}`),s.resumeFromPreviousUpload(E))}),a=this.requests.run(i),w.onFileRemove(e.id,C=>{a.abort(),this.resetUploaderReferences(e.id,{abort:!!s.url}),r(`upload ${C} was removed`)}),w.onPause(e.id,C=>{a.abort(),C?s.abort():a=this.requests.run(i)}),w.onPauseAll(e.id,()=>{a.abort(),s.abort()}),w.onCancelAll(e.id,function(C){let{reason:E}=C===void 0?{}:C;E==="user"&&(a.abort(),t.resetUploaderReferences(e.id,{abort:!!s.url})),r(`upload ${e.id} was canceled`)}),w.onResumeAll(e.id,()=>{a.abort(),e.error&&s.abort(),a=this.requests.run(i)})}).catch(r=>{throw this.uppy.emit("upload-error",e,r),r})}function GB(e){var t;const r={...this.opts};return e.tus&&Object.assign(r,e.tus),typeof r.headers=="function"&&(r.headers=r.headers(e)),{...(t=e.remote)==null?void 0:t.body,endpoint:r.endpoint,uploadUrl:r.uploadUrl,protocol:"tus",size:e.data.size,headers:r.headers,metadata:e.meta}}async function YB(e){const t=BB(e),r=jB(t);this.uppy.emit("upload-start",r),await Promise.allSettled(t.map(n=>{if(n.isRemote){const a=()=>this.requests,i=new AbortController,s=u=>{u.id===n.id&&i.abort()};this.uppy.on("file-removed",s);const o=this.uppy.getRequestClientForFile(n).uploadRemoteFile(n,yu(this,qv)[qv](n),{signal:i.signal,getQueue:a});return this.requests.wrapSyncFunction(()=>{this.uppy.off("file-removed",s)},{priority:-1})(),o}return yu(this,Vv)[Vv](n)}))}M6.VERSION=WB.version;var Yv,L6;function XB(){return L6||(L6=1,Yv=function(){var t={},r=t._fns={};t.emit=function(s,o,u,l,f,d,p){var v=n(s);v.length&&a(s,v,[o,u,l,f,d,p])},t.on=function(s,o){r[s]||(r[s]=[]),r[s].push(o)},t.once=function(s,o){function u(){o.apply(this,arguments),t.off(s,u)}this.on(s,u)},t.off=function(s,o){var u=[];if(s&&o){var l=this._fns[s],f=0,d=l?l.length:0;for(f;f<d;f++)l[f]!==o&&u.push(l[f])}u.length?this._fns[s]=u:delete this._fns[s]};function n(i){var s=r[i]?r[i]:[],o=i.indexOf(":"),u=o===-1?[i]:[i.substring(0,o),i.substring(o+1)],l=Object.keys(r),f=0,d=l.length;for(f;f<d;f++){var p=l[f];if(p==="*"&&(s=s.concat(r[p])),u.length===2&&u[0]===p){s=s.concat(r[p]);break}}return s}function a(i,s,o){var u=0,l=s.length;for(u;u<l&&s[u];u++)s[u].event=i,s[u].apply(s[u],o)}return t}),Yv}var KB=XB();const ZB=$n(KB);let JB="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",QB=(e=21)=>{let t="",r=e;for(;r--;)t+=JB[Math.random()*64|0];return t};function Dh(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var ej=0;function B6(e){return"__private_"+ej+++"_"+e}const tj={version:"3.2.2"};var bu=B6("callbacks"),Xv=B6("publish");class j6{constructor(){Object.defineProperty(this,Xv,{value:rj}),this.state={},Object.defineProperty(this,bu,{writable:!0,value:new Set})}getState(){return this.state}setState(t){const r={...this.state},n={...this.state,...t};this.state=n,Dh(this,Xv)[Xv](r,n,t)}subscribe(t){return Dh(this,bu)[bu].add(t),()=>{Dh(this,bu)[bu].delete(t)}}}function rj(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];Dh(this,bu)[bu].forEach(n=>{n(...t)})}j6.VERSION=tj.version;function $6(e){const t=e.lastIndexOf(".");return t===-1||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}}const U6={__proto__:null,md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",webp:"image/webp",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",dicom:"application/dicom",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"};function z6(e){var t;if(e.type)return e.type;const r=e.name?(t=$6(e.name).extension)==null?void 0:t.toLowerCase():null;return r&&r in U6?U6[r]:"application/octet-stream"}function nj(e){return e.charCodeAt(0).toString(32)}function H6(e){let t="";return e.replace(/[^A-Z0-9]/gi,r=>(t+=`-${nj(r)}`,"/"))+t}function aj(e,t){let r=t||"uppy";return typeof e.name=="string"&&(r+=`-${H6(e.name.toLowerCase())}`),e.type!==void 0&&(r+=`-${e.type}`),e.meta&&typeof e.meta.relativePath=="string"&&(r+=`-${H6(e.meta.relativePath.toLowerCase())}`),e.data.size!==void 0&&(r+=`-${e.data.size}`),e.data.lastModified!==void 0&&(r+=`-${e.data.lastModified}`),r}function ij(e){return!e.isRemote||!e.remote?!1:new Set(["box","dropbox","drive","facebook","unsplash"]).has(e.remote.provider)}function sj(e,t){if(ij(e))return e.id;const r=z6(e);return aj({...e,type:r},t)}function oj(e){if(e==null&&typeof navigator<"u"&&(e=navigator.userAgent),!e)return!0;const t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;const n=t[1].split(".",2),a=parseInt(n[0],10),i=parseInt(n[1],10);return a<15||a===15&&i<15063||a>18||a===18&&i>=18218}function uj(e,t){return t.name?t.name:e.split("/")[0]==="image"?`${e.split("/")[0]}.${e.split("/")[1]}`:"noname"}function Kv(e){return e<10?`0${e}`:e.toString()}function Rh(){const e=new Date,t=Kv(e.getHours()),r=Kv(e.getMinutes()),n=Kv(e.getSeconds());return`${t}:${r}:${n}`}const lj={debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return console.error(`[Uppy] [${Rh()}]`,...t)}},cj={debug:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return console.debug(`[Uppy] [${Rh()}]`,...t)},warn:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return console.warn(`[Uppy] [${Rh()}]`,...t)},error:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return console.error(`[Uppy] [${Rh()}]`,...t)}};var Zv,W6;function fj(){return W6||(W6=1,Zv=function(t){if(typeof t!="number"||Number.isNaN(t))throw new TypeError(`Expected a number, got ${typeof t}`);const r=t<0;let n=Math.abs(t);if(r&&(n=-n),n===0)return"0 B";const a=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],i=Math.min(Math.floor(Math.log(n)/Math.log(1024)),a.length-1),s=Number(n/1024**i),o=a[i];return`${s>=10||s%1===0?Math.round(s):s.toFixed(1)} ${o}`}),Zv}var dj=fj();const Ih=$n(dj);var Jv,V6;function hj(){if(V6)return Jv;V6=1;function e(t,r){this.text=t=t||"",this.hasWild=~t.indexOf("*"),this.separator=r,this.parts=t.split(r)}return e.prototype.match=function(t){var r=!0,n=this.parts,a,i=n.length,s;if(typeof t=="string"||t instanceof String)if(!this.hasWild&&this.text!=t)r=!1;else{for(s=(t||"").split(this.separator),a=0;r&&a<i;a++)n[a]!=="*"&&(a<s.length?r=n[a]===s[a]:r=!1);r=r&&s}else if(typeof t.splice=="function")for(r=[],a=t.length;a--;)this.match(t[a])&&(r[r.length]=t[a]);else if(typeof t=="object"){r={};for(var o in t)this.match(o)&&(r[o]=t[o])}return r},Jv=function(t,r,n){var a=new e(t,n||/[\/\.]/);return typeof r<"u"?a.match(r):a},Jv}var Qv,q6;function pj(){if(q6)return Qv;q6=1;var e=hj(),t=/[\/\+\.]/;return Qv=function(r,n){function a(i){var s=e(i,r,t);return s&&s.length>=2}return n?a(n.split(";")[0]):a},Qv}var mj=pj();const gj=$n(mj),vj={maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]};class mi extends Error{constructor(t,r){var n;super(t),this.isRestriction=!0,this.isUserFacing=(n=r==null?void 0:r.isUserFacing)!=null?n:!0,r!=null&&r.file&&(this.file=r.file)}}class xj{constructor(t,r){this.getI18n=r,this.getOpts=()=>{var n;const a=t();if(((n=a.restrictions)==null?void 0:n.allowedFileTypes)!=null&&!Array.isArray(a.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");return a}}validateAggregateRestrictions(t,r){const{maxTotalFileSize:n,maxNumberOfFiles:a}=this.getOpts().restrictions;if(a&&t.filter(s=>!s.isGhost).length+r.length>a)throw new mi(`${this.getI18n()("youCanOnlyUploadX",{smart_count:a})}`);if(n){const i=[...t,...r].reduce((s,o)=>{var u;return s+((u=o.size)!=null?u:0)},0);if(i>n)throw new mi(this.getI18n()("aggregateExceedsSize",{sizeAllowed:Ih(n),size:Ih(i)}))}}validateSingleFile(t){const{maxFileSize:r,minFileSize:n,allowedFileTypes:a}=this.getOpts().restrictions;if(a&&!a.some(s=>s.includes("/")?t.type?gj(t.type.replace(/;.*?$/,""),s):!1:s[0]==="."&&t.extension?t.extension.toLowerCase()===s.slice(1).toLowerCase():!1)){const s=a.join(", ");throw new mi(this.getI18n()("youCanOnlyUploadFileTypes",{types:s}),{file:t})}if(r&&t.size!=null&&t.size>r)throw new mi(this.getI18n()("exceedsSize",{size:Ih(r),file:t.name}),{file:t});if(n&&t.size!=null&&t.size<n)throw new mi(this.getI18n()("inferiorSize",{size:Ih(n)}),{file:t})}validate(t,r){r.forEach(n=>{this.validateSingleFile(n)}),this.validateAggregateRestrictions(t,r)}validateMinNumberOfFiles(t){const{minNumberOfFiles:r}=this.getOpts().restrictions;if(r&&Object.keys(t).length<r)throw new mi(this.getI18n()("youHaveToAtLeastSelectX",{smart_count:r}))}getMissingRequiredMetaFields(t){const r=new mi(this.getI18n()("missingRequiredMetaFieldOnFile",{fileName:t.name})),{requiredMetaFields:n}=this.getOpts().restrictions,a=[];for(const i of n)(!Object.hasOwn(t.meta,i)||t.meta[i]==="")&&a.push(i);return{missingFields:a,error:r}}}const _j={strings:{addBulkFilesFailed:{0:"Failed to add %{smart_count} file due to an internal error",1:"Failed to add %{smart_count} files due to internal errors"},youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files"},aggregateExceedsSize:"You selected %{size} of files, but maximum allowed size is %{sizeAllowed}",exceedsSize:"%{file} exceeds maximum allowed size of %{size}",missingRequiredMetaField:"Missing required meta fields",missingRequiredMetaFieldOnFile:"Missing required meta fields in %{fileName}",inferiorSize:"This file is smaller than the allowed size of %{size}",youCanOnlyUploadFileTypes:"You can only upload: %{types}",noMoreFilesAllowed:"Cannot add more files",noDuplicates:"Cannot add the duplicate file '%{fileName}', it already exists",companionError:"Connection with Companion failed",authAborted:"Authentication aborted",companionUnauthorizeHint:"To unauthorize to your %{provider} account, please go to %{url}",failedToUpload:"Failed to upload %{file}",noInternetConnection:"No Internet connection",connectedToInternet:"Connected to the Internet",noFilesFound:"You have no files or folders here",noSearchResults:"Unfortunately, there are no results for this search",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}"},allFilesFromFolderNamed:"All files from folder %{name}",openFolderNamed:"Open folder %{name}",cancel:"Cancel",logOut:"Log out",filter:"Filter",resetFilter:"Reset filter",loading:"Loading...",loadedXFiles:"Loaded %{numFiles} files",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",authenticateWith:"Connect to %{pluginName}",signInWithGoogle:"Sign in with Google",searchImages:"Search for images",enterTextToSearch:"Enter text to search for images",search:"Search",resetSearch:"Reset search",emptyFolderAdded:"No files were added from empty folder",addedNumFiles:"Added %{numFiles} file(s)",folderAlreadyAdded:'The folder "%{folder}" was already added',folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}"},additionalRestrictionsFailed:"%{count} additional restrictions were not fulfilled",unnamed:"Unnamed"}};let G6,Y6;function Ze(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var yj=0;function Lr(e){return"__private_"+yj+++"_"+e}const bj={version:"3.13.1"},Nh={totalProgress:0,allowNewUpload:!0,error:null,recoveredState:null};var gn=Lr("plugins"),ga=Lr("restricter"),Qf=Lr("storeUnsubscribe"),Ts=Lr("emitter"),wu=Lr("preProcessors"),Su=Lr("uploaders"),As=Lr("postProcessors"),va=Lr("informAndEmit"),e0=Lr("checkRequiredMetaFieldsOnFile"),ex=Lr("checkRequiredMetaFields"),t0=Lr("assertNewUploadAllowed"),tx=Lr("transformFile"),r0=Lr("startIfAutoProceed"),n0=Lr("checkAndUpdateFileState"),rx=Lr("addListeners"),gi=Lr("updateOnlineStatus"),a0=Lr("requestClientById"),Fs=Lr("createUpload"),nx=Lr("getUpload"),Eu=Lr("removeUpload"),Os=Lr("runUpload");G6=Symbol.for("uppy test: getPlugins"),Y6=Symbol.for("uppy test: createUpload");class Mh{constructor(t){Object.defineProperty(this,Os,{value:Rj}),Object.defineProperty(this,Eu,{value:Dj}),Object.defineProperty(this,nx,{value:Pj}),Object.defineProperty(this,Fs,{value:Oj}),Object.defineProperty(this,rx,{value:Fj}),Object.defineProperty(this,n0,{value:Aj}),Object.defineProperty(this,r0,{value:Tj}),Object.defineProperty(this,tx,{value:kj}),Object.defineProperty(this,t0,{value:Cj}),Object.defineProperty(this,ex,{value:Ej}),Object.defineProperty(this,e0,{value:Sj}),Object.defineProperty(this,va,{value:wj}),Object.defineProperty(this,gn,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,ga,{writable:!0,value:void 0}),Object.defineProperty(this,Qf,{writable:!0,value:void 0}),Object.defineProperty(this,Ts,{writable:!0,value:ZB()}),Object.defineProperty(this,wu,{writable:!0,value:new Set}),Object.defineProperty(this,Su,{writable:!0,value:new Set}),Object.defineProperty(this,As,{writable:!0,value:new Set}),this.scheduledAutoProceed=null,this.wasOffline=!1,this.calculateProgress=JN((a,i)=>{const s=this.getFile(a==null?void 0:a.id);if(a==null||!s){this.log(`Not setting progress for a file that has been removed: ${a==null?void 0:a.id}`);return}if(s.progress.percentage===100){this.log(`Not setting progress for a file that has been already uploaded: ${a.id}`);return}const o=Number.isFinite(i.bytesTotal)&&i.bytesTotal>0;this.setFileState(a.id,{progress:{...s.progress,bytesUploaded:i.bytesUploaded,bytesTotal:i.bytesTotal,percentage:o?Math.round(i.bytesUploaded/i.bytesTotal*100):0}}),this.calculateTotalProgress()},500,{leading:!0,trailing:!0}),Object.defineProperty(this,gi,{writable:!0,value:this.updateOnlineStatus.bind(this)}),Object.defineProperty(this,a0,{writable:!0,value:new Map}),this.defaultLocale=_j;const r={id:"uppy",autoProceed:!1,allowMultipleUploadBatches:!0,debug:!1,restrictions:vj,meta:{},onBeforeFileAdded:(a,i)=>!Object.hasOwn(i,a.id),onBeforeUpload:a=>a,store:new j6,logger:lj,infoTimeout:5e3},n={...r,...t};this.opts={...n,restrictions:{...r.restrictions,...t&&t.restrictions}},t&&t.logger&&t.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):t&&t.debug&&(this.opts.logger=cj),this.log(`Using Core v${Mh.VERSION}`),this.i18nInit(),this.store=this.opts.store,this.setState({...Nh,plugins:{},files:{},currentUploads:{},capabilities:{uploadProgress:oj(),individualCancellation:!0,resumableUploads:!1},meta:{...this.opts.meta},info:[]}),Ze(this,ga)[ga]=new xj(()=>this.opts,()=>this.i18n),Ze(this,Qf)[Qf]=this.store.subscribe((a,i,s)=>{this.emit("state-update",a,i,s),this.updateAll(i)}),this.opts.debug&&typeof window<"u"&&(window[this.opts.id]=this),Ze(this,rx)[rx]()}emit(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];Ze(this,Ts)[Ts].emit(t,...n)}on(t,r){return Ze(this,Ts)[Ts].on(t,r),this}once(t,r){return Ze(this,Ts)[Ts].once(t,r),this}off(t,r){return Ze(this,Ts)[Ts].off(t,r),this}updateAll(t){this.iteratePlugins(r=>{r.update(t)})}setState(t){this.store.setState(t)}getState(){return this.store.getState()}patchFilesState(t){const r=this.getState().files;this.setState({files:{...r,...Object.fromEntries(Object.entries(t).map(n=>{let[a,i]=n;return[a,{...r[a],...i}]}))}})}setFileState(t,r){if(!this.getState().files[t])throw new Error(`Can’t set state for ${t} (the file could have been removed)`);this.patchFilesState({[t]:r})}i18nInit(){const t=n=>this.log(`Missing i18n string: ${n}`,"error"),r=new V4([this.defaultLocale,this.opts.locale],{onMissingKey:t});this.i18n=r.translate.bind(r),this.i18nArray=r.translateArray.bind(r),this.locale=r.locale}setOptions(t){this.opts={...this.opts,...t,restrictions:{...this.opts.restrictions,...t==null?void 0:t.restrictions}},t.meta&&this.setMeta(t.meta),this.i18nInit(),t.locale&&this.iteratePlugins(r=>{r.setOptions(t)}),this.setState(void 0)}resetProgress(){const t={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},r={...this.getState().files},n={};Object.keys(r).forEach(a=>{n[a]={...r[a],progress:{...r[a].progress,...t}}}),this.setState({files:n,...Nh}),this.emit("reset-progress")}clearUploadedFiles(){const{capabilities:t,currentUploads:r}=this.getState();if(Object.keys(r).length>0&&!t.individualCancellation)throw new Error("The installed uploader plugin does not allow removing files during an upload.");this.setState({...Nh,files:{}})}addPreProcessor(t){Ze(this,wu)[wu].add(t)}removePreProcessor(t){return Ze(this,wu)[wu].delete(t)}addPostProcessor(t){Ze(this,As)[As].add(t)}removePostProcessor(t){return Ze(this,As)[As].delete(t)}addUploader(t){Ze(this,Su)[Su].add(t)}removeUploader(t){return Ze(this,Su)[Su].delete(t)}setMeta(t){const r={...this.getState().meta,...t},n={...this.getState().files};Object.keys(n).forEach(a=>{n[a]={...n[a],meta:{...n[a].meta,...t}}}),this.log("Adding metadata:"),this.log(t),this.setState({meta:r,files:n})}setFileMeta(t,r){const n={...this.getState().files};if(!n[t]){this.log("Was trying to set metadata for a file that has been removed: ",t);return}const a={...n[t].meta,...r};n[t]={...n[t],meta:a},this.setState({files:n})}getFile(t){return this.getState().files[t]}getFiles(){const{files:t}=this.getState();return Object.values(t)}getFilesByIds(t){return t.map(r=>this.getFile(r))}getObjectOfFilesPerState(){const{files:t,totalProgress:r,error:n}=this.getState(),a=Object.values(t),i=[],s=[],o=[],u=[],l=[],f=[],d=[],p=[],v=[];for(const _ of a){const{progress:x}=_;!x.uploadComplete&&x.uploadStarted&&(i.push(_),_.isPaused||p.push(_)),x.uploadStarted||s.push(_),(x.uploadStarted||x.preprocess||x.postprocess)&&o.push(_),x.uploadStarted&&u.push(_),_.isPaused&&l.push(_),x.uploadComplete&&f.push(_),_.error&&d.push(_),(x.preprocess||x.postprocess)&&v.push(_)}return{newFiles:s,startedFiles:o,uploadStartedFiles:u,pausedFiles:l,completeFiles:f,erroredFiles:d,inProgressFiles:i,inProgressNotPausedFiles:p,processingFiles:v,isUploadStarted:u.length>0,isAllComplete:r===100&&f.length===a.length&&v.length===0,isAllErrored:!!n&&d.length===a.length,isAllPaused:i.length!==0&&l.length===i.length,isUploadInProgress:i.length>0,isSomeGhost:a.some(_=>_.isGhost)}}validateRestrictions(t,r){r===void 0&&(r=this.getFiles());try{Ze(this,ga)[ga].validate(r,[t])}catch(n){return n}return null}checkIfFileAlreadyExists(t){const{files:r}=this.getState();return!!(r[t]&&!r[t].isGhost)}addFile(t){Ze(this,t0)[t0](t);const{nextFilesState:r,validFilesToAdd:n,errors:a}=Ze(this,n0)[n0]([t]),i=a.filter(o=>o.isRestriction);if(Ze(this,va)[va](i),a.length>0)throw a[0];this.setState({files:r});const[s]=n;return this.emit("file-added",s),this.emit("files-added",n),this.log(`Added file: ${s.name}, ${s.id}, mime type: ${s.type}`),Ze(this,r0)[r0](),s.id}addFiles(t){Ze(this,t0)[t0]();const{nextFilesState:r,validFilesToAdd:n,errors:a}=Ze(this,n0)[n0](t),i=a.filter(o=>o.isRestriction);Ze(this,va)[va](i);const s=a.filter(o=>!o.isRestriction);if(s.length>0){let o=`Multiple errors occurred while adding files:
283
+ `;if(s.forEach(u=>{o+=`
284
+ * ${u.message}`}),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:s.length}),details:o},"error",this.opts.infoTimeout),typeof AggregateError=="function")throw new AggregateError(s,o);{const u=new Error(o);throw u.errors=s,u}}this.setState({files:r}),n.forEach(o=>{this.emit("file-added",o)}),this.emit("files-added",n),n.length>5?this.log(`Added batch of ${n.length} files`):Object.values(n).forEach(o=>{this.log(`Added file: ${o.name}
285
+ id: ${o.id}
286
+ type: ${o.type}`)}),n.length>0&&Ze(this,r0)[r0]()}removeFiles(t,r){const{files:n,currentUploads:a}=this.getState(),i={...n},s={...a},o=Object.create(null);t.forEach(d=>{n[d]&&(o[d]=n[d],delete i[d])});function u(d){return o[d]===void 0}Object.keys(s).forEach(d=>{const p=a[d].fileIDs.filter(u);if(p.length===0){delete s[d];return}const{capabilities:v}=this.getState();if(p.length!==a[d].fileIDs.length&&!v.individualCancellation)throw new Error("The installed uploader plugin does not allow removing files during an upload.");s[d]={...a[d],fileIDs:p}});const l={currentUploads:s,files:i};Object.keys(i).length===0&&(l.allowNewUpload=!0,l.error=null,l.recoveredState=null),this.setState(l),this.calculateTotalProgress();const f=Object.keys(o);f.forEach(d=>{this.emit("file-removed",o[d],r)}),f.length>5?this.log(`Removed ${f.length} files`):this.log(`Removed files: ${f.join(", ")}`)}removeFile(t,r){this.removeFiles([t],r)}pauseResume(t){if(!this.getState().capabilities.resumableUploads||this.getFile(t).progress.uploadComplete)return;const n=!(this.getFile(t).isPaused||!1);return this.setFileState(t,{isPaused:n}),this.emit("upload-pause",t,n),n}pauseAll(){const t={...this.getState().files};Object.keys(t).filter(n=>!t[n].progress.uploadComplete&&t[n].progress.uploadStarted).forEach(n=>{const a={...t[n],isPaused:!0};t[n]=a}),this.setState({files:t}),this.emit("pause-all")}resumeAll(){const t={...this.getState().files};Object.keys(t).filter(n=>!t[n].progress.uploadComplete&&t[n].progress.uploadStarted).forEach(n=>{const a={...t[n],isPaused:!1,error:null};t[n]=a}),this.setState({files:t}),this.emit("resume-all")}retryAll(){const t={...this.getState().files},r=Object.keys(t).filter(a=>t[a].error);if(r.forEach(a=>{const i={...t[a],isPaused:!1,error:null};t[a]=i}),this.setState({files:t,error:null}),this.emit("retry-all",r),r.length===0)return Promise.resolve({successful:[],failed:[]});const n=Ze(this,Fs)[Fs](r,{forceAllowNewUpload:!0});return Ze(this,Os)[Os](n)}cancelAll(t){let{reason:r="user"}=t===void 0?{}:t;if(this.emit("cancel-all",{reason:r}),r==="user"){const{files:n}=this.getState(),a=Object.keys(n);a.length&&this.removeFiles(a,"cancel-all"),this.setState(Nh)}}retryUpload(t){this.setFileState(t,{error:null,isPaused:!1}),this.emit("upload-retry",t);const r=Ze(this,Fs)[Fs]([t],{forceAllowNewUpload:!0});return Ze(this,Os)[Os](r)}logout(){this.iteratePlugins(t=>{var r;(r=t.provider)==null||r.logout==null||r.logout()})}calculateTotalProgress(){const r=this.getFiles().filter(l=>l.progress.uploadStarted||l.progress.preprocess||l.progress.postprocess);if(r.length===0){this.emit("progress",0),this.setState({totalProgress:0});return}const n=r.filter(l=>l.progress.bytesTotal!=null),a=r.filter(l=>l.progress.bytesTotal==null);if(n.length===0){const l=r.length*100,f=a.reduce((p,v)=>p+v.progress.percentage,0),d=Math.round(f/l*100);this.setState({totalProgress:d});return}let i=n.reduce((l,f)=>{var d;return l+((d=f.progress.bytesTotal)!=null?d:0)},0);const s=i/n.length;i+=s*a.length;let o=0;n.forEach(l=>{o+=l.progress.bytesUploaded}),a.forEach(l=>{o+=s*(l.progress.percentage||0)/100});let u=i===0?0:Math.round(o/i*100);u>100&&(u=100),this.setState({totalProgress:u}),this.emit("progress",u)}updateOnlineStatus(){var t;((t=window.navigator.onLine)!=null?t:!0)?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(t,r){if(typeof t!="function"){const s=`Expected a plugin class, but got ${t===null?"null":typeof t}. Please verify that the plugin was imported and spelled correctly.`;throw new TypeError(s)}const n=new t(this,r),a=n.id;if(!a)throw new Error("Your plugin must have an id");if(!n.type)throw new Error("Your plugin must have a type");const i=this.getPlugin(a);if(i){const s=`Already found a plugin named '${i.id}'. Tried to use: '${a}'.
287
+ Uppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(s)}return t.VERSION&&this.log(`Using ${a} v${t.VERSION}`),n.type in Ze(this,gn)[gn]?Ze(this,gn)[gn][n.type].push(n):Ze(this,gn)[gn][n.type]=[n],n.install(),this.emit("plugin-added",n),this}getPlugin(t){for(const r of Object.values(Ze(this,gn)[gn])){const n=r.find(a=>a.id===t);if(n!=null)return n}}[G6](t){return Ze(this,gn)[gn][t]}iteratePlugins(t){Object.values(Ze(this,gn)[gn]).flat(1).forEach(t)}removePlugin(t){this.log(`Removing plugin ${t.id}`),this.emit("plugin-remove",t),t.uninstall&&t.uninstall();const r=Ze(this,gn)[gn][t.type],n=r.findIndex(s=>s.id===t.id);n!==-1&&r.splice(n,1);const i={plugins:{...this.getState().plugins,[t.id]:void 0}};this.setState(i)}close(t){let{reason:r}=t===void 0?{}:t;this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.cancelAll({reason:r}),Ze(this,Qf)[Qf](),this.iteratePlugins(n=>{this.removePlugin(n)}),typeof window<"u"&&window.removeEventListener&&(window.removeEventListener("online",Ze(this,gi)[gi]),window.removeEventListener("offline",Ze(this,gi)[gi]))}hideInfo(){const{info:t}=this.getState();this.setState({info:t.slice(1)}),this.emit("info-hidden")}info(t,r,n){r===void 0&&(r="info"),n===void 0&&(n=3e3);const a=typeof t=="object";this.setState({info:[...this.getState().info,{type:r,message:a?t.message:t,details:a?t.details:null}]}),setTimeout(()=>this.hideInfo(),n),this.emit("info-visible")}log(t,r){const{logger:n}=this.opts;switch(r){case"error":n.error(t);break;case"warning":n.warn(t);break;default:n.debug(t);break}}registerRequestClient(t,r){Ze(this,a0)[a0].set(t,r)}getRequestClientForFile(t){if(!t.remote)throw new Error(`Tried to get RequestClient for a non-remote file ${t.id}`);const r=Ze(this,a0)[a0].get(t.remote.requestClientId);if(r==null)throw new Error(`requestClientId "${t.remote.requestClientId}" not registered for file "${t.id}"`);return r}restore(t){return this.log(`Core: attempting to restore upload "${t}"`),this.getState().currentUploads[t]?Ze(this,Os)[Os](t):(Ze(this,Eu)[Eu](t),Promise.reject(new Error("Nonexistent upload")))}[Y6](){return Ze(this,Fs)[Fs](...arguments)}addResultData(t,r){if(!Ze(this,nx)[nx](t)){this.log(`Not setting result for an upload that has been removed: ${t}`);return}const{currentUploads:n}=this.getState(),a={...n[t],result:{...n[t].result,...r}};this.setState({currentUploads:{...n,[t]:a}})}upload(){var t;(t=Ze(this,gn)[gn].uploader)!=null&&t.length||this.log("No uploader type plugins are used","warning");let{files:r}=this.getState();const n=this.opts.onBeforeUpload(r);return n===!1?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(n&&typeof n=="object"&&(r=n,this.setState({files:r})),Promise.resolve().then(()=>Ze(this,ga)[ga].validateMinNumberOfFiles(r)).catch(a=>{throw Ze(this,va)[va]([a]),a}).then(()=>{if(!Ze(this,ex)[ex](r))throw new mi(this.i18n("missingRequiredMetaField"))}).catch(a=>{throw a}).then(()=>{const{currentUploads:a}=this.getState(),i=Object.values(a).flatMap(u=>u.fileIDs),s=[];Object.keys(r).forEach(u=>{const l=this.getFile(u);!l.progress.uploadStarted&&i.indexOf(u)===-1&&s.push(l.id)});const o=Ze(this,Fs)[Fs](s);return Ze(this,Os)[Os](o)}).catch(a=>{throw this.emit("error",a),this.log(a,"error"),a}))}}function wj(e){for(const i of e)i.isRestriction?this.emit("restriction-failed",i.file,i):this.emit("error",i,i.file),this.log(i,"warning");const t=e.filter(i=>i.isUserFacing),r=4,n=t.slice(0,r),a=t.slice(r);n.forEach(i=>{let{message:s,details:o=""}=i;this.info({message:s,details:o},"error",this.opts.infoTimeout)}),a.length>0&&this.info({message:this.i18n("additionalRestrictionsFailed",{count:a.length})})}function Sj(e){const{missingFields:t,error:r}=Ze(this,ga)[ga].getMissingRequiredMetaFields(e);return t.length>0?(this.setFileState(e.id,{missingRequiredMetaFields:t}),this.log(r.message),this.emit("restriction-failed",e,r),!1):!0}function Ej(e){let t=!0;for(const r of Object.values(e))Ze(this,e0)[e0](r)||(t=!1);return t}function Cj(e){const{allowNewUpload:t}=this.getState();if(t===!1){const r=new mi(this.i18n("noMoreFilesAllowed"),{file:e});throw Ze(this,va)[va]([r]),r}}function kj(e){const t=e instanceof File?{name:e.name,type:e.type,size:e.size,data:e}:e,r=z6(t),n=uj(r,t),a=$6(n).extension,i=sj(t,this.getID()),s=t.meta||{};s.name=n,s.type=r;const o=Number.isFinite(t.data.size)?t.data.size:null;return{source:t.source||"",id:i,name:n,extension:a||"",meta:{...this.getState().meta,...s},type:r,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:o,uploadComplete:!1,uploadStarted:null},size:o,isGhost:!1,isRemote:t.isRemote||!1,remote:t.remote||"",preview:t.preview}}function Tj(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout(()=>{this.scheduledAutoProceed=null,this.upload().catch(e=>{e.isRestriction||this.log(e.stack||e.message||e)})},4))}function Aj(e){const{files:t}=this.getState(),r={...t},n=[],a=[];for(const s of e)try{var i;let o=Ze(this,tx)[tx](s);const u=(i=t[o.id])==null?void 0:i.isGhost;u&&(o={...t[o.id],isGhost:!1,data:s.data},this.log(`Replaced the blob in the restored ghost file: ${o.name}, ${o.id}`));const l=this.opts.onBeforeFileAdded(o,r);if(!l&&this.checkIfFileAlreadyExists(o.id))throw new mi(this.i18n("noDuplicates",{fileName:o.name}),{file:s});if(l===!1&&!u)throw new mi("Cannot add the file because onBeforeFileAdded returned false.",{isUserFacing:!1,file:s});typeof l=="object"&&l!==null&&(o=l),Ze(this,ga)[ga].validateSingleFile(o),r[o.id]=o,n.push(o)}catch(o){a.push(o)}try{Ze(this,ga)[ga].validateAggregateRestrictions(Object.values(t),n)}catch(s){return a.push(s),{nextFilesState:t,validFilesToAdd:[],errors:a}}return{nextFilesState:r,validFilesToAdd:n,errors:a}}function Fj(){const e=(n,a,i)=>{let s=n.message||"Unknown error";n.details&&(s+=` ${n.details}`),this.setState({error:s}),a!=null&&a.id in this.getState().files&&this.setFileState(a.id,{error:s,response:i})};this.on("error",e),this.on("upload-error",(n,a,i)=>{if(e(a,n,i),typeof a=="object"&&a.message){var s;this.log(a.message,"error");const o=new Error(this.i18n("failedToUpload",{file:(s=n==null?void 0:n.name)!=null?s:""}));o.isUserFacing=!0,o.details=a.message,a.details&&(o.details+=` ${a.details}`),Ze(this,va)[va]([o])}else Ze(this,va)[va]([a])});let t=null;this.on("upload-stalled",(n,a)=>{const{message:i}=n,s=a.map(o=>o.meta.name).join(", ");t||(this.info({message:i,details:s},"warning",this.opts.infoTimeout),t=setTimeout(()=>{t=null},this.opts.infoTimeout)),this.log(`${i} ${s}`.trim(),"warning")}),this.on("upload",()=>{this.setState({error:null})});const r=n=>{const a=n.filter(s=>{const o=s!=null&&this.getFile(s.id);return o||this.log(`Not setting progress for a file that has been removed: ${s==null?void 0:s.id}`),o}),i=Object.fromEntries(a.map(s=>[s.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:s.size}}]));this.patchFilesState(i)};this.on("upload-start",n=>{n.forEach(a=>{this.emit("upload-started",a)}),r(n)}),this.on("upload-progress",this.calculateProgress),this.on("upload-success",(n,a)=>{if(n==null||!this.getFile(n.id)){this.log(`Not setting progress for a file that has been removed: ${n==null?void 0:n.id}`);return}const i=this.getFile(n.id).progress;this.setFileState(n.id,{progress:{...i,postprocess:Ze(this,As)[As].size>0?{mode:"indeterminate"}:void 0,uploadComplete:!0,percentage:100,bytesUploaded:i.bytesTotal},response:a,uploadURL:a.uploadURL,isPaused:!1}),n.size==null&&this.setFileState(n.id,{size:a.bytesUploaded||i.bytesTotal}),this.calculateTotalProgress()}),this.on("preprocess-progress",(n,a)=>{if(n==null||!this.getFile(n.id)){this.log(`Not setting progress for a file that has been removed: ${n==null?void 0:n.id}`);return}this.setFileState(n.id,{progress:{...this.getFile(n.id).progress,preprocess:a}})}),this.on("preprocess-complete",n=>{if(n==null||!this.getFile(n.id)){this.log(`Not setting progress for a file that has been removed: ${n==null?void 0:n.id}`);return}const a={...this.getState().files};a[n.id]={...a[n.id],progress:{...a[n.id].progress}},delete a[n.id].progress.preprocess,this.setState({files:a})}),this.on("postprocess-progress",(n,a)=>{if(n==null||!this.getFile(n.id)){this.log(`Not setting progress for a file that has been removed: ${n==null?void 0:n.id}`);return}this.setFileState(n.id,{progress:{...this.getState().files[n.id].progress,postprocess:a}})}),this.on("postprocess-complete",n=>{if(n==null||!this.getFile(n.id)){this.log(`Not setting progress for a file that has been removed: ${n==null?void 0:n.id}`);return}const a={...this.getState().files};a[n.id]={...a[n.id],progress:{...a[n.id].progress}},delete a[n.id].progress.postprocess,this.setState({files:a})}),this.on("restored",()=>{this.calculateTotalProgress()}),this.on("dashboard:file-edit-complete",n=>{n&&Ze(this,e0)[e0](n)}),typeof window<"u"&&window.addEventListener&&(window.addEventListener("online",Ze(this,gi)[gi]),window.addEventListener("offline",Ze(this,gi)[gi]),setTimeout(Ze(this,gi)[gi],3e3))}function Oj(e,t){t===void 0&&(t={});const{forceAllowNewUpload:r=!1}=t,{allowNewUpload:n,currentUploads:a}=this.getState();if(!n&&!r)throw new Error("Cannot create a new upload: already uploading.");const i=QB();return this.emit("upload",{id:i,fileIDs:e}),this.setState({allowNewUpload:this.opts.allowMultipleUploadBatches!==!1&&this.opts.allowMultipleUploads!==!1,currentUploads:{...a,[i]:{fileIDs:e,step:0,result:{}}}}),i}function Pj(e){const{currentUploads:t}=this.getState();return t[e]}function Dj(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function Rj(e){const t=()=>{const{currentUploads:i}=this.getState();return i[e]};let r=t();const n=[...Ze(this,wu)[wu],...Ze(this,Su)[Su],...Ze(this,As)[As]];try{for(let i=r.step||0;i<n.length&&r;i++){const s=n[i];this.setState({currentUploads:{...this.getState().currentUploads,[e]:{...r,step:i}}});const{fileIDs:o}=r;await s(o,e),r=t()}}catch(i){throw Ze(this,Eu)[Eu](e),i}if(r){r.fileIDs.forEach(u=>{const l=this.getFile(u);l&&l.progress.postprocess&&this.emit("postprocess-complete",l)});const i=r.fileIDs.map(u=>this.getFile(u)),s=i.filter(u=>!u.error),o=i.filter(u=>u.error);this.addResultData(e,{successful:s,failed:o,uploadID:e}),r=t()}let a;return r&&(a=r.result,this.emit("complete",a),Ze(this,Eu)[Eu](e)),a==null&&this.log(`Not setting result for an upload that has been removed: ${e}`),a}Mh.VERSION=bj.version;function Ij(e,t){if(!t)return e;for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)){const n=new RegExp(`{(${r})+}`,"g");e=e.replace(n,t[r])}return e}const Nj=(e,t={},r)=>Ij(t.placeholder||"",t.variate),ie=(e,t,r)=>Nj(e,t),X6=U.forwardRef((e,t)=>{const[r,n]=U.useState("write"),a=U.useRef(null),[i,{toggleFullscreen:s}]=F4(a),o=new jM.Converter({tables:!0,simplifiedAutoLink:!0,strikethrough:!0,tasklists:!0}),u={name:"full",icon:()=>R.jsx(gt,{onClick:()=>{},className:Pr.markIcon,style:{fontSize:"13px"},type:"fangda"}),execute:v=>{s()}},l={name:"paste",icon:()=>R.jsx(gt,{onClick:()=>{},className:Pr.markIcon,style:{fontSize:"13px"},type:"fangda"}),execute:v=>{}},f={name:"min",icon:()=>R.jsx(gt,{onClick:()=>{},className:Pr.markIcon,style:{fontSize:"13px"},type:"suoxiao"}),execute:v=>{s()}},d={name:"table",icon:()=>R.jsx(gt,{className:Pr.markIcon,style:{fontSize:"13px"},type:"charubiaoge"}),execute:v=>{v.textApi.replaceSelection(`${ie("sys.columnHeader",{placeholder:"列头"})}1 | ${ie("sys.columnHeader",{placeholder:"列头"})}2 | ${ie("sys.columnHeader",{placeholder:"列头"})}3
288
+ :----------- | :-----------: | -----------:
289
+ ${ie("sys.align.left",{placeholder:"居左"})}|${ie("sys.align.center",{placeholder:"居中"})}|${ie("sys.align.right",{placeholder:"居右"})}`)}},p=async function*(v,_){const x=new Mh({meta:{},debug:!1,autoProceed:!0});x.use(M6,{endpoint:`${e.OSS_URL}`,headers:{Authorization:`${e.token}`},chunkSize:1*1024*1024,overridePatchMethod:!1,allowedMetaFields:null}).on("upload-success",(C,E)=>{e.toPostFileRecord&&e.toPostFileRecord({file:C,response:E,type:"0"})}),x.addFile({name:_.name,type:_.type,data:_,source:"Local",isRemote:!1});const w=await x.upload();return w.successful[0]?w.successful[0].uploadURL:ie("sys.fileServerError.fileServerError",{placeholder:"文件服务器错误"})};return U.useEffect(()=>{n("write")},[e.readOnly]),R.jsxs("div",{className:Qe(Pr.main,e.value?Pr.mdebordershow:Pr.mdeborderhide,i?Pr.fullscreen:{},r==="preview"?Pr.mdePreview:{}),children:[R.jsx("div",{ref:a,style:{background:"white",height:"100%",width:"100%"},children:R.jsx(BN,{value:e.value,onChange:v=>{e.onChange&&e.onChange(v)},minPreviewHeight:e.height&&e.height>10?e.height-10:100,minEditorHeight:e.height||76,maxEditorHeight:e.height||76,getIcon:v=>v==="header"?R.jsx(ue.Tooltip,{title:ie("sys.title",{placeholder:"标题"}),children:R.jsx(gt,{onClick:()=>{},style:{fontSize:"13px"},className:Pr.markIcon,type:"H"})}):v==="bold"?R.jsx(ue.Tooltip,{title:ie("sys.bold.bold",{placeholder:"加粗"}),children:R.jsx(gt,{onClick:()=>{},style:{fontSize:"13px"},className:Pr.markIcon,type:"jiacu"})}):v==="italic"?R.jsx(ue.Tooltip,{title:ie("sys.italic.italic",{placeholder:"倾斜"}),children:R.jsx(gt,{onClick:()=>{},style:{fontSize:"13px"},className:Pr.markIcon,type:"qingxie"})}):v==="strikethrough"?R.jsx(ue.Tooltip,{title:ie("sys.strikethrough.strikethrough",{placeholder:"划线"}),children:R.jsx(gt,{onClick:()=>{},style:{fontSize:"13px"},className:Pr.markIcon,type:"huaxian"})}):v==="link"?R.jsx(ue.Tooltip,{title:ie("sys.link.link",{placeholder:"链接"}),children:R.jsx(gt,{onClick:()=>{},style:{fontSize:"13px"},className:Pr.markIcon,type:"lianjie"})}):v==="quote"?R.jsx(ue.Tooltip,{title:ie("sys.quote.quote",{placeholder:"引用"}),children:R.jsx(gt,{onClick:()=>{},style:{fontSize:"13px"},className:Pr.markIcon,type:"yinyong"})}):v==="code"?R.jsx(ue.Tooltip,{title:ie("sys.code.code",{placeholder:"代码"}),children:R.jsx(gt,{onClick:()=>{},style:{fontSize:"13px"},className:Pr.markIcon,type:"code"})}):v==="image"?R.jsx(ue.Tooltip,{title:ie("sys.label.image",{placeholder:"图片"}),children:R.jsx(gt,{onClick:()=>{},style:{fontSize:"13px"},className:Pr.markIcon,type:"charutupian"})}):v==="unordered-list"?R.jsx(ue.Tooltip,{title:ie("sys.unorderedList.unorderedList",{placeholder:"无序列表"}),children:R.jsx(gt,{onClick:()=>{},style:{fontSize:"13px"},className:Pr.markIcon,type:"dian"})}):v==="ordered-list"?R.jsxs(ue.Tooltip,{title:ie("sys.orderedList.orderedList",{placeholder:"有序列表"}),children:[" ",R.jsx(gt,{onClick:()=>{},style:{fontSize:"13px"},className:Pr.markIcon,type:"shuzi"})]}):v==="checked-list"?R.jsx(ue.Tooltip,{title:ie("sys.checkedList.checkedList",{placeholder:"勾选列表"}),children:R.jsx(gt,{onClick:()=>{},style:{fontSize:"13px"},className:Pr.markIcon,type:"gou"})}):R.jsx(gt,{onClick:()=>{},style:{fontSize:"13px"},className:Pr.markIcon,type:"chakanxiangqing"}),toolbarCommands:i?[["header","bold","italic","strikethrough","link","code","table","image","ordered-list","checked-list","min"]]:[["header","bold","italic","link","code","table","image","ordered-list","checked-list","full"]],l18n:{uploadingImage:ie("sys.uploadingImage.uploadingImage",{placeholder:"正在上传图片"}),write:ie("individuality.column.operate.edit",{placeholder:"编辑"}),preview:ie("sys.action.preview",{placeholder:"预览"}),pasteDropSelect:ie("sys.label.uploadImage",{placeholder:"上传图片"})},commands:{full:u,table:d,min:f,paste:l},selectedTab:e.readOnly?"preview":r,readOnly:e.readOnly,onTabChange:v=>{n(v)},generateMarkdownPreview:v=>Promise.resolve(o.makeHtml(v)),childProps:{writeButton:{tabIndex:-1}},paste:{saveImage:p,accept:"text/plain,image/png,image/jpeg"}})}),r==="preview"||e.readOnly?R.jsx("div",{style:{position:"absolute",top:"9px",left:"110px"},children:R.jsx(gt,{onClick:()=>{s()},className:Pr.markIcon,style:{fontSize:"13px"},type:"fangda"})}):R.jsx(R.Fragment,{})]})}),i0={confirmModal:"_confirmModal_begdf_1",wrapClassName:"_wrapClassName_begdf_19",notBtnIcon:"_notBtnIcon_begdf_27",qprogress:"_qprogress_begdf_33",styleUnify:"_styleUnify_begdf_38"};var Lh={exports:{}},Mj=Lh.exports,K6;function Lj(){return K6||(K6=1,function(e,t){(function(r,n){e.exports=n()})(Mj,function(){/*! *****************************************************************************
290
+ Copyright (c) Microsoft Corporation. All rights reserved.
291
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
292
+ this file except in compliance with the License. You may obtain a copy of the
293
+ License at http://www.apache.org/licenses/LICENSE-2.0
294
+
295
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
296
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
297
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
298
+ MERCHANTABLITY OR NON-INFRINGEMENT.
299
+
300
+ See the Apache Version 2.0 License for specific language governing permissions
301
+ and limitations under the License.
302
+ ***************************************************************************** */var r=function(){return(r=Object.assign||function(d){for(var p,v=1,_=arguments.length;v<_;v++)for(var x in p=arguments[v])Object.prototype.hasOwnProperty.call(p,x)&&(d[x]=p[x]);return d}).apply(this,arguments)};function n(d,p,v){return d<p?p:d>v?v:d}function a(d,p){var v=i(d),_=v+p;s(v,p)||(d.className=_.substring(1))}function i(d){return(" "+(d&&d.className||"")+" ").replace(/\s+/gi," ")}function s(d,p){return d.indexOf(" "+p+" ")>=0}function o(d){return String(100*(-1+d))}var u=function(){var d=["Webkit","O","Moz","ms"],p={};function v(x){return x=x.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(w,C){return C.toUpperCase()}),p[x]||(p[x]=function(w){var C=document.body.style;if(w in C)return w;for(var E,b=d.length,h=w.charAt(0).toUpperCase()+w.slice(1);b--;)if((E=d[b]+h)in C)return E;return w}(x))}function _(x,w,C){w=v(w),x.style[w]=C}return function(x,w){var C,E,b=arguments;if(b.length===2)for(C in w)E=w[C],w.hasOwnProperty(C)&&_(x,C,E);else _(x,b[1],b[2])}}(),l=function(){var d=[];function p(){var v=d.shift();v&&v(p)}return function(v){d.push(v),d.length===1&&p()}}();function f(d,p){var v=i(d),_="";s(v,p)&&(_=v.replace(" "+p+" "," "),d.className=_.substring(1,_.length-1))}return function(d,p){p===void 0&&(p={});var v=p.insertAt;if(typeof document<"u"){var _=document.head||document.getElementsByTagName("head")[0],x=document.createElement("style");x.type="text/css",v==="top"&&_.firstChild?_.insertBefore(x,_.firstChild):_.appendChild(x),x.styleSheet?x.styleSheet.cssText=d:x.appendChild(document.createTextNode(d))}}("#qprogress{pointer-events:none}#qprogress .bar{position:fixed;z-index:999999;top:0;left:0;width:100%;height:2px}#qprogress .peg{display:block;position:absolute;right:0;width:100px;height:100%;opacity:1;-webkit-transform:rotate(3deg) translateY(-4px);transform:rotate(3deg) translateY(-4px)}.qprogress-custom-parent{overflow:hidden;position:relative}.qprogress-custom-parent #qprogress .bar{position:absolute}#qprogress .colorful-bar{background:-webkit-gradient(linear,left top,right top,from(#1890ff),color-stop(#13c2c2),color-stop(#52c41a),color-stop(#fa8c16),color-stop(#fa541c),color-stop(#f5222d),to(#1890ff));background:linear-gradient(90deg,#1890ff,#13c2c2,#52c41a,#fa8c16,#fa541c,#f5222d,#1890ff);-webkit-animation:ins 2s linear infinite;animation:ins 2s linear infinite;-webkit-transition:opacity .2s ease-in-out;transition:opacity .2s ease-in-out;-webkit-transform-origin:left;transform-origin:left;background-size:500%}@-webkit-keyframes ins{0%{background-position:0 0}to{background-position:125% 0}}@keyframes ins{0%{background-position:0 0}to{background-position:125% 0}}"),function(){function d(p){this.status=null,this.config=r({minimum:.12,height:2,color:"#1890ff",colorful:!0,easing:"ease",speed:400,positionUsing:"",trickle:!0,trickleSpeed:400,parentNode:"body",barSelector:'[role="bar"]',pegSelector:'[role="peg"]',template:'<div class="bar" role="bar"><div class="peg" role="peg"></div></div>'},p)}return d.prototype.set=function(p){var v=this.isStarted();p=n(p,this.config.minimum,1),this.status=p===1?null:p;var _=this.config,x=_.barSelector,w=_.speed,C=_.easing,E=_.parentNode,b=this.config.positionUsing,h=this.render(!v),g=h.querySelector(x),y=w,S=C;h.offsetWidth,l(function(A){var k,F;b===""&&(k=document.body.style,b=(F="webkitTransform"in k?"webkit":"mozTransform"in k?"moz":"msTransform"in k?"ms":"oTransform"in k?"o":"")+"Perspective"in k?"translate3d":F+"Transform"in k?"translate":"margin"),u(g,function(P,j,N,I){var B;return(B=I==="translate3d"?{transform:"translate3d("+o(P)+"%, 0, 0)"}:I==="translate"?{transform:"translate("+o(P)+"%, 0)"}:{"margin-left":o(P)+"%"}).transition="all "+j+"ms "+N,B}(p,y,S,b)),p===1?(u(h,{transition:"none",opacity:1}),h.offsetWidth,setTimeout(function(){u(h,{transition:"all "+y+"ms linear",opacity:0}),setTimeout(function(){(function(P){f(document.documentElement,"qprogress-busy"),typeof P=="string"&&P.length!==0?f(document.querySelector(P),"qprogress-custom-parent"):f(P,"qprogress-custom-parent");var j,N=document.getElementById("qprogress");N&&(j=N)&&j.parentNode&&j.parentNode.removeChild(j)})(E),A()},y)},y)):setTimeout(A,y)})},d.prototype.isStarted=function(){return typeof this.status=="number"},d.prototype.start=function(){var p=this,v=this.config,_=v.trickle,x=v.trickleSpeed;this.status||this.set(0);var w=function(){setTimeout(function(){p.status&&(p.trickle(),w())},x)};_&&w()},d.prototype.finish=function(p){(p||this.status)&&(this.inc(.3+.5*Math.random()),this.set(1))},d.prototype.trickle=function(){this.inc()},d.prototype.inc=function(p){var v=this.status;return v?v>1?void 0:(typeof p!="number"&&(p=v>=0&&v<.2?.1:v>=.2&&v<.5?.04:v>=.5&&v<.8?.02:v>=.8&&v<.99?.005:0),v=n(v+p,0,.994),this.set(v)):this.start()},d.prototype.isRendered=function(){return!!document.getElementById("qprogress")},d.prototype.render=function(p){if(this.isRendered())return document.getElementById("qprogress");a(document.documentElement,"qprogress-busy");var v=this.config,_=v.template,x=v.barSelector,w=v.pegSelector,C=v.parentNode,E=v.height,b=v.color,h=v.colorful,g=document.createElement("div");g.id="qprogress",g.innerHTML=_;var y=g.querySelector(x),S=y.querySelector(w),A=p?"-100":o(this.status||0),k=typeof C=="string"?document.querySelector(C):C;return u(y,{height:E+"px",backgroundColor:b,transition:"all 0 linear",transform:"translate3d("+A+"%, 0, 0)"}),h?y&&a(y,"colorful-bar"):u(S,{boxShadow:"0 0 10px "+b+", 0 0 5px "+b}),k!==document.body&&a(k,"qprogress-custom-parent"),k.appendChild(g),g},d}()})}(Lh)),Lh.exports}var Bj=Lj();const jj=$n(Bj);var s0={exports:{}},ax={},Bh={exports:{}},jh={exports:{}},Xt={};/** @license React v16.13.1
303
+ * react-is.production.min.js
304
+ *
305
+ * Copyright (c) Facebook, Inc. and its affiliates.
306
+ *
307
+ * This source code is licensed under the MIT license found in the
308
+ * LICENSE file in the root directory of this source tree.
309
+ */var Z6;function $j(){if(Z6)return Xt;Z6=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,o=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,_=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function b(g){if(typeof g=="object"&&g!==null){var y=g.$$typeof;switch(y){case t:switch(g=g.type,g){case u:case l:case n:case i:case a:case d:return g;default:switch(g=g&&g.$$typeof,g){case o:case f:case _:case v:case s:return g;default:return y}}case r:return y}}}function h(g){return b(g)===l}return Xt.AsyncMode=u,Xt.ConcurrentMode=l,Xt.ContextConsumer=o,Xt.ContextProvider=s,Xt.Element=t,Xt.ForwardRef=f,Xt.Fragment=n,Xt.Lazy=_,Xt.Memo=v,Xt.Portal=r,Xt.Profiler=i,Xt.StrictMode=a,Xt.Suspense=d,Xt.isAsyncMode=function(g){return h(g)||b(g)===u},Xt.isConcurrentMode=h,Xt.isContextConsumer=function(g){return b(g)===o},Xt.isContextProvider=function(g){return b(g)===s},Xt.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===t},Xt.isForwardRef=function(g){return b(g)===f},Xt.isFragment=function(g){return b(g)===n},Xt.isLazy=function(g){return b(g)===_},Xt.isMemo=function(g){return b(g)===v},Xt.isPortal=function(g){return b(g)===r},Xt.isProfiler=function(g){return b(g)===i},Xt.isStrictMode=function(g){return b(g)===a},Xt.isSuspense=function(g){return b(g)===d},Xt.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===n||g===l||g===i||g===a||g===d||g===p||typeof g=="object"&&g!==null&&(g.$$typeof===_||g.$$typeof===v||g.$$typeof===s||g.$$typeof===o||g.$$typeof===f||g.$$typeof===w||g.$$typeof===C||g.$$typeof===E||g.$$typeof===x)},Xt.typeOf=b,Xt}var Kt={};/** @license React v16.13.1
310
+ * react-is.development.js
311
+ *
312
+ * Copyright (c) Facebook, Inc. and its affiliates.
313
+ *
314
+ * This source code is licensed under the MIT license found in the
315
+ * LICENSE file in the root directory of this source tree.
316
+ */var J6;function Uj(){return J6||(J6=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,o=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,_=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function b(J){return typeof J=="string"||typeof J=="function"||J===n||J===l||J===i||J===a||J===d||J===p||typeof J=="object"&&J!==null&&(J.$$typeof===_||J.$$typeof===v||J.$$typeof===s||J.$$typeof===o||J.$$typeof===f||J.$$typeof===w||J.$$typeof===C||J.$$typeof===E||J.$$typeof===x)}function h(J){if(typeof J=="object"&&J!==null){var qe=J.$$typeof;switch(qe){case t:var _e=J.type;switch(_e){case u:case l:case n:case i:case a:case d:return _e;default:var ze=_e&&_e.$$typeof;switch(ze){case o:case f:case _:case v:case s:return ze;default:return qe}}case r:return qe}}}var g=u,y=l,S=o,A=s,k=t,F=f,P=n,j=_,N=v,I=r,B=i,O=a,M=d,V=!1;function L(J){return V||(V=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),W(J)||h(J)===u}function W(J){return h(J)===l}function G(J){return h(J)===o}function H(J){return h(J)===s}function Q(J){return typeof J=="object"&&J!==null&&J.$$typeof===t}function K(J){return h(J)===f}function te(J){return h(J)===n}function se(J){return h(J)===_}function le(J){return h(J)===v}function ge(J){return h(J)===r}function ye(J){return h(J)===i}function be(J){return h(J)===a}function Be(J){return h(J)===d}Kt.AsyncMode=g,Kt.ConcurrentMode=y,Kt.ContextConsumer=S,Kt.ContextProvider=A,Kt.Element=k,Kt.ForwardRef=F,Kt.Fragment=P,Kt.Lazy=j,Kt.Memo=N,Kt.Portal=I,Kt.Profiler=B,Kt.StrictMode=O,Kt.Suspense=M,Kt.isAsyncMode=L,Kt.isConcurrentMode=W,Kt.isContextConsumer=G,Kt.isContextProvider=H,Kt.isElement=Q,Kt.isForwardRef=K,Kt.isFragment=te,Kt.isLazy=se,Kt.isMemo=le,Kt.isPortal=ge,Kt.isProfiler=ye,Kt.isStrictMode=be,Kt.isSuspense=Be,Kt.isValidElementType=b,Kt.typeOf=h}()),Kt}var Q6;function eS(){return Q6||(Q6=1,process.env.NODE_ENV==="production"?jh.exports=$j():jh.exports=Uj()),jh.exports}/*
317
+ object-assign
318
+ (c) Sindre Sorhus
319
+ @license MIT
320
+ */var ix,tS;function zj(){if(tS)return ix;tS=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function a(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var s={},o=0;o<10;o++)s["_"+String.fromCharCode(o)]=o;var u=Object.getOwnPropertyNames(s).map(function(f){return s[f]});if(u.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(f){l[f]=f}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return ix=a()?Object.assign:function(i,s){for(var o,u=n(i),l,f=1;f<arguments.length;f++){o=Object(arguments[f]);for(var d in o)t.call(o,d)&&(u[d]=o[d]);if(e){l=e(o);for(var p=0;p<l.length;p++)r.call(o,l[p])&&(u[l[p]]=o[l[p]])}}return u},ix}var sx,rS;function ox(){if(rS)return sx;rS=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return sx=e,sx}var ux,nS;function aS(){return nS||(nS=1,ux=Function.call.bind(Object.prototype.hasOwnProperty)),ux}var lx,iS;function Hj(){if(iS)return lx;iS=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=ox(),r={},n=aS();e=function(i){var s="Warning: "+i;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function a(i,s,o,u,l){if(process.env.NODE_ENV!=="production"){for(var f in i)if(n(i,f)){var d;try{if(typeof i[f]!="function"){var p=Error((u||"React class")+": "+o+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}d=i[f](s,f,u,o,null,t)}catch(_){d=_}if(d&&!(d instanceof Error)&&e((u||"React class")+": type specification of "+o+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in r)){r[d.message]=!0;var v=l?l():"";e("Failed "+o+" type: "+d.message+(v??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},lx=a,lx}var cx,sS;function Wj(){if(sS)return cx;sS=1;var e=eS(),t=zj(),r=ox(),n=aS(),a=Hj(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(o){var u="Warning: "+o;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function s(){return null}return cx=function(o,u){var l=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function d(W){var G=W&&(l&&W[l]||W[f]);if(typeof G=="function")return G}var p="<<anonymous>>",v={array:C("array"),bigint:C("bigint"),bool:C("boolean"),func:C("function"),number:C("number"),object:C("object"),string:C("string"),symbol:C("symbol"),any:E(),arrayOf:b,element:h(),elementType:g(),instanceOf:y,node:F(),objectOf:A,oneOf:S,oneOfType:k,shape:j,exact:N};function _(W,G){return W===G?W!==0||1/W===1/G:W!==W&&G!==G}function x(W,G){this.message=W,this.data=G&&typeof G=="object"?G:{},this.stack=""}x.prototype=Error.prototype;function w(W){if(process.env.NODE_ENV!=="production")var G={},H=0;function Q(te,se,le,ge,ye,be,Be){if(ge=ge||p,be=be||le,Be!==r){if(u){var J=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw J.name="Invariant Violation",J}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var qe=ge+":"+le;!G[qe]&&H<3&&(i("You are manually calling a React.PropTypes validation function for the `"+be+"` prop on `"+ge+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),G[qe]=!0,H++)}}return se[le]==null?te?se[le]===null?new x("The "+ye+" `"+be+"` is marked as required "+("in `"+ge+"`, but its value is `null`.")):new x("The "+ye+" `"+be+"` is marked as required in "+("`"+ge+"`, but its value is `undefined`.")):null:W(se,le,ge,ye,be)}var K=Q.bind(null,!1);return K.isRequired=Q.bind(null,!0),K}function C(W){function G(H,Q,K,te,se,le){var ge=H[Q],ye=O(ge);if(ye!==W){var be=M(ge);return new x("Invalid "+te+" `"+se+"` of type "+("`"+be+"` supplied to `"+K+"`, expected ")+("`"+W+"`."),{expectedType:W})}return null}return w(G)}function E(){return w(s)}function b(W){function G(H,Q,K,te,se){if(typeof W!="function")return new x("Property `"+se+"` of component `"+K+"` has invalid PropType notation inside arrayOf.");var le=H[Q];if(!Array.isArray(le)){var ge=O(le);return new x("Invalid "+te+" `"+se+"` of type "+("`"+ge+"` supplied to `"+K+"`, expected an array."))}for(var ye=0;ye<le.length;ye++){var be=W(le,ye,K,te,se+"["+ye+"]",r);if(be instanceof Error)return be}return null}return w(G)}function h(){function W(G,H,Q,K,te){var se=G[H];if(!o(se)){var le=O(se);return new x("Invalid "+K+" `"+te+"` of type "+("`"+le+"` supplied to `"+Q+"`, expected a single ReactElement."))}return null}return w(W)}function g(){function W(G,H,Q,K,te){var se=G[H];if(!e.isValidElementType(se)){var le=O(se);return new x("Invalid "+K+" `"+te+"` of type "+("`"+le+"` supplied to `"+Q+"`, expected a single ReactElement type."))}return null}return w(W)}function y(W){function G(H,Q,K,te,se){if(!(H[Q]instanceof W)){var le=W.name||p,ge=L(H[Q]);return new x("Invalid "+te+" `"+se+"` of type "+("`"+ge+"` supplied to `"+K+"`, expected ")+("instance of `"+le+"`."))}return null}return w(G)}function S(W){if(!Array.isArray(W))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),s;function G(H,Q,K,te,se){for(var le=H[Q],ge=0;ge<W.length;ge++)if(_(le,W[ge]))return null;var ye=JSON.stringify(W,function(Be,J){var qe=M(J);return qe==="symbol"?String(J):J});return new x("Invalid "+te+" `"+se+"` of value `"+String(le)+"` "+("supplied to `"+K+"`, expected one of "+ye+"."))}return w(G)}function A(W){function G(H,Q,K,te,se){if(typeof W!="function")return new x("Property `"+se+"` of component `"+K+"` has invalid PropType notation inside objectOf.");var le=H[Q],ge=O(le);if(ge!=="object")return new x("Invalid "+te+" `"+se+"` of type "+("`"+ge+"` supplied to `"+K+"`, expected an object."));for(var ye in le)if(n(le,ye)){var be=W(le,ye,K,te,se+"."+ye,r);if(be instanceof Error)return be}return null}return w(G)}function k(W){if(!Array.isArray(W))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var G=0;G<W.length;G++){var H=W[G];if(typeof H!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+V(H)+" at index "+G+"."),s}function Q(K,te,se,le,ge){for(var ye=[],be=0;be<W.length;be++){var Be=W[be],J=Be(K,te,se,le,ge,r);if(J==null)return null;J.data&&n(J.data,"expectedType")&&ye.push(J.data.expectedType)}var qe=ye.length>0?", expected one of type ["+ye.join(", ")+"]":"";return new x("Invalid "+le+" `"+ge+"` supplied to "+("`"+se+"`"+qe+"."))}return w(Q)}function F(){function W(G,H,Q,K,te){return I(G[H])?null:new x("Invalid "+K+" `"+te+"` supplied to "+("`"+Q+"`, expected a ReactNode."))}return w(W)}function P(W,G,H,Q,K){return new x((W||"React class")+": "+G+" type `"+H+"."+Q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+K+"`.")}function j(W){function G(H,Q,K,te,se){var le=H[Q],ge=O(le);if(ge!=="object")return new x("Invalid "+te+" `"+se+"` of type `"+ge+"` "+("supplied to `"+K+"`, expected `object`."));for(var ye in W){var be=W[ye];if(typeof be!="function")return P(K,te,se,ye,M(be));var Be=be(le,ye,K,te,se+"."+ye,r);if(Be)return Be}return null}return w(G)}function N(W){function G(H,Q,K,te,se){var le=H[Q],ge=O(le);if(ge!=="object")return new x("Invalid "+te+" `"+se+"` of type `"+ge+"` "+("supplied to `"+K+"`, expected `object`."));var ye=t({},H[Q],W);for(var be in ye){var Be=W[be];if(n(W,be)&&typeof Be!="function")return P(K,te,se,be,M(Be));if(!Be)return new x("Invalid "+te+" `"+se+"` key `"+be+"` supplied to `"+K+"`.\nBad object: "+JSON.stringify(H[Q],null," ")+`
321
+ Valid keys: `+JSON.stringify(Object.keys(W),null," "));var J=Be(le,be,K,te,se+"."+be,r);if(J)return J}return null}return w(G)}function I(W){switch(typeof W){case"number":case"string":case"undefined":return!0;case"boolean":return!W;case"object":if(Array.isArray(W))return W.every(I);if(W===null||o(W))return!0;var G=d(W);if(G){var H=G.call(W),Q;if(G!==W.entries){for(;!(Q=H.next()).done;)if(!I(Q.value))return!1}else for(;!(Q=H.next()).done;){var K=Q.value;if(K&&!I(K[1]))return!1}}else return!1;return!0;default:return!1}}function B(W,G){return W==="symbol"?!0:G?G["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&G instanceof Symbol:!1}function O(W){var G=typeof W;return Array.isArray(W)?"array":W instanceof RegExp?"object":B(G,W)?"symbol":G}function M(W){if(typeof W>"u"||W===null)return""+W;var G=O(W);if(G==="object"){if(W instanceof Date)return"date";if(W instanceof RegExp)return"regexp"}return G}function V(W){var G=M(W);switch(G){case"array":case"object":return"an "+G;case"boolean":case"date":case"regexp":return"a "+G;default:return G}}function L(W){return!W.constructor||!W.constructor.name?p:W.constructor.name}return v.checkPropTypes=a,v.resetWarningCache=a.resetWarningCache,v.PropTypes=v,v},cx}var fx,oS;function Vj(){if(oS)return fx;oS=1;var e=ox();function t(){}function r(){}return r.resetWarningCache=t,fx=function(){function n(s,o,u,l,f,d){if(d!==e){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}n.isRequired=n;function a(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:a,element:n,elementType:n,instanceOf:a,node:n,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:r,resetWarningCache:t};return i.PropTypes=i,i},fx}var uS;function o0(){if(uS)return Bh.exports;if(uS=1,process.env.NODE_ENV!=="production"){var e=eS(),t=!0;Bh.exports=Wj()(e.isElement,t)}else Bh.exports=Vj()();return Bh.exports}function lS(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=lS(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function Dl(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=lS(e))&&(n&&(n+=" "),n+=t);return n}const qj=qD(Object.freeze(Object.defineProperty({__proto__:null,clsx:Dl,default:Dl},Symbol.toStringTag,{value:"Module"})));var Br={},ho={},cS;function $h(){if(cS)return ho;cS=1,Object.defineProperty(ho,"__esModule",{value:!0}),ho.dontSetMe=a,ho.findInArray=e,ho.int=n,ho.isFunction=t,ho.isNum=r;function e(i,s){for(let o=0,u=i.length;o<u;o++)if(s.apply(s,[i[o],o,i]))return i[o]}function t(i){return typeof i=="function"||Object.prototype.toString.call(i)==="[object Function]"}function r(i){return typeof i=="number"&&!isNaN(i)}function n(i){return parseInt(i,10)}function a(i,s,o){if(i[s])return new Error("Invalid prop ".concat(s," passed to ").concat(o," - do not set this, set it on the child."))}return ho}var po={},fS;function Gj(){if(fS)return po;fS=1,Object.defineProperty(po,"__esModule",{value:!0}),po.browserPrefixToKey=r,po.browserPrefixToStyle=n,po.default=void 0,po.getPrefix=t;const e=["Moz","Webkit","O","ms"];function t(){var i;let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const o=(i=window.document)===null||i===void 0||(i=i.documentElement)===null||i===void 0?void 0:i.style;if(!o||s in o)return"";for(let u=0;u<e.length;u++)if(r(s,e[u])in o)return e[u];return""}function r(i,s){return s?"".concat(s).concat(a(i)):i}function n(i,s){return s?"-".concat(s.toLowerCase(),"-").concat(i):i}function a(i){let s="",o=!0;for(let u=0;u<i.length;u++)o?(s+=i[u].toUpperCase(),o=!1):i[u]==="-"?o=!0:s+=i[u];return s}return po.default=t(),po}var dS;function dx(){if(dS)return Br;dS=1,Object.defineProperty(Br,"__esModule",{value:!0}),Br.addClassName=g,Br.addEvent=o,Br.addUserSelectStyles=b,Br.createCSSTransform=_,Br.createSVGTransform=x,Br.getTouch=C,Br.getTouchIdentifier=E,Br.getTranslation=w,Br.innerHeight=d,Br.innerWidth=p,Br.matchesSelector=i,Br.matchesSelectorAndParentsTo=s,Br.offsetXYFromParent=v,Br.outerHeight=l,Br.outerWidth=f,Br.removeClassName=y,Br.removeEvent=u,Br.removeUserSelectStyles=h;var e=$h(),t=n(Gj());function r(S){if(typeof WeakMap!="function")return null;var A=new WeakMap,k=new WeakMap;return(r=function(F){return F?k:A})(S)}function n(S,A){if(S&&S.__esModule)return S;if(S===null||typeof S!="object"&&typeof S!="function")return{default:S};var k=r(A);if(k&&k.has(S))return k.get(S);var F={},P=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var j in S)if(j!=="default"&&Object.prototype.hasOwnProperty.call(S,j)){var N=P?Object.getOwnPropertyDescriptor(S,j):null;N&&(N.get||N.set)?Object.defineProperty(F,j,N):F[j]=S[j]}return F.default=S,k&&k.set(S,F),F}let a="";function i(S,A){return a||(a=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(k){return(0,e.isFunction)(S[k])})),(0,e.isFunction)(S[a])?S[a](A):!1}function s(S,A,k){let F=S;do{if(i(F,A))return!0;if(F===k)return!1;F=F.parentNode}while(F);return!1}function o(S,A,k,F){if(!S)return;const P={capture:!0,...F};S.addEventListener?S.addEventListener(A,k,P):S.attachEvent?S.attachEvent("on"+A,k):S["on"+A]=k}function u(S,A,k,F){if(!S)return;const P={capture:!0,...F};S.removeEventListener?S.removeEventListener(A,k,P):S.detachEvent?S.detachEvent("on"+A,k):S["on"+A]=null}function l(S){let A=S.clientHeight;const k=S.ownerDocument.defaultView.getComputedStyle(S);return A+=(0,e.int)(k.borderTopWidth),A+=(0,e.int)(k.borderBottomWidth),A}function f(S){let A=S.clientWidth;const k=S.ownerDocument.defaultView.getComputedStyle(S);return A+=(0,e.int)(k.borderLeftWidth),A+=(0,e.int)(k.borderRightWidth),A}function d(S){let A=S.clientHeight;const k=S.ownerDocument.defaultView.getComputedStyle(S);return A-=(0,e.int)(k.paddingTop),A-=(0,e.int)(k.paddingBottom),A}function p(S){let A=S.clientWidth;const k=S.ownerDocument.defaultView.getComputedStyle(S);return A-=(0,e.int)(k.paddingLeft),A-=(0,e.int)(k.paddingRight),A}function v(S,A,k){const P=A===A.ownerDocument.body?{left:0,top:0}:A.getBoundingClientRect(),j=(S.clientX+A.scrollLeft-P.left)/k,N=(S.clientY+A.scrollTop-P.top)/k;return{x:j,y:N}}function _(S,A){const k=w(S,A,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:k}}function x(S,A){return w(S,A,"")}function w(S,A,k){let{x:F,y:P}=S,j="translate(".concat(F).concat(k,",").concat(P).concat(k,")");if(A){const N="".concat(typeof A.x=="string"?A.x:A.x+k),I="".concat(typeof A.y=="string"?A.y:A.y+k);j="translate(".concat(N,", ").concat(I,")")+j}return j}function C(S,A){return S.targetTouches&&(0,e.findInArray)(S.targetTouches,k=>A===k.identifier)||S.changedTouches&&(0,e.findInArray)(S.changedTouches,k=>A===k.identifier)}function E(S){if(S.targetTouches&&S.targetTouches[0])return S.targetTouches[0].identifier;if(S.changedTouches&&S.changedTouches[0])return S.changedTouches[0].identifier}function b(S){if(!S)return;let A=S.getElementById("react-draggable-style-el");A||(A=S.createElement("style"),A.type="text/css",A.id="react-draggable-style-el",A.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
322
+ `,A.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
323
+ `,S.getElementsByTagName("head")[0].appendChild(A)),S.body&&g(S.body,"react-draggable-transparent-selection")}function h(S){if(S)try{if(S.body&&y(S.body,"react-draggable-transparent-selection"),S.selection)S.selection.empty();else{const A=(S.defaultView||window).getSelection();A&&A.type!=="Caret"&&A.removeAllRanges()}}catch{}}function g(S,A){S.classList?S.classList.add(A):S.className.match(new RegExp("(?:^|\\s)".concat(A,"(?!\\S)")))||(S.className+=" ".concat(A))}function y(S,A){S.classList?S.classList.remove(A):S.className=S.className.replace(new RegExp("(?:^|\\s)".concat(A,"(?!\\S)"),"g"),"")}return Br}var Wi={},hS;function pS(){if(hS)return Wi;hS=1,Object.defineProperty(Wi,"__esModule",{value:!0}),Wi.canDragX=a,Wi.canDragY=i,Wi.createCoreData=o,Wi.createDraggableData=u,Wi.getBoundPosition=r,Wi.getControlPosition=s,Wi.snapToGrid=n;var e=$h(),t=dx();function r(d,p,v){if(!d.props.bounds)return[p,v];let{bounds:_}=d.props;_=typeof _=="string"?_:l(_);const x=f(d);if(typeof _=="string"){const{ownerDocument:w}=x,C=w.defaultView;let E;if(_==="parent"?E=x.parentNode:E=w.querySelector(_),!(E instanceof C.HTMLElement))throw new Error('Bounds selector "'+_+'" could not find an element.');const b=E,h=C.getComputedStyle(x),g=C.getComputedStyle(b);_={left:-x.offsetLeft+(0,e.int)(g.paddingLeft)+(0,e.int)(h.marginLeft),top:-x.offsetTop+(0,e.int)(g.paddingTop)+(0,e.int)(h.marginTop),right:(0,t.innerWidth)(b)-(0,t.outerWidth)(x)-x.offsetLeft+(0,e.int)(g.paddingRight)-(0,e.int)(h.marginRight),bottom:(0,t.innerHeight)(b)-(0,t.outerHeight)(x)-x.offsetTop+(0,e.int)(g.paddingBottom)-(0,e.int)(h.marginBottom)}}return(0,e.isNum)(_.right)&&(p=Math.min(p,_.right)),(0,e.isNum)(_.bottom)&&(v=Math.min(v,_.bottom)),(0,e.isNum)(_.left)&&(p=Math.max(p,_.left)),(0,e.isNum)(_.top)&&(v=Math.max(v,_.top)),[p,v]}function n(d,p,v){const _=Math.round(p/d[0])*d[0],x=Math.round(v/d[1])*d[1];return[_,x]}function a(d){return d.props.axis==="both"||d.props.axis==="x"}function i(d){return d.props.axis==="both"||d.props.axis==="y"}function s(d,p,v){const _=typeof p=="number"?(0,t.getTouch)(d,p):null;if(typeof p=="number"&&!_)return null;const x=f(v),w=v.props.offsetParent||x.offsetParent||x.ownerDocument.body;return(0,t.offsetXYFromParent)(_||d,w,v.props.scale)}function o(d,p,v){const _=!(0,e.isNum)(d.lastX),x=f(d);return _?{node:x,deltaX:0,deltaY:0,lastX:p,lastY:v,x:p,y:v}:{node:x,deltaX:p-d.lastX,deltaY:v-d.lastY,lastX:d.lastX,lastY:d.lastY,x:p,y:v}}function u(d,p){const v=d.props.scale;return{node:p.node,x:d.state.x+p.deltaX/v,y:d.state.y+p.deltaY/v,deltaX:p.deltaX/v,deltaY:p.deltaY/v,lastX:d.state.x,lastY:d.state.y}}function l(d){return{left:d.left,top:d.top,right:d.right,bottom:d.bottom}}function f(d){const p=d.findDOMNode();if(!p)throw new Error("<DraggableCore>: Unmounted during event!");return p}return Wi}var u0={},Uh={},mS;function gS(){if(mS)return Uh;mS=1,Object.defineProperty(Uh,"__esModule",{value:!0}),Uh.default=e;function e(){}return Uh}var vS;function Yj(){if(vS)return u0;vS=1,Object.defineProperty(u0,"__esModule",{value:!0}),u0.default=void 0;var e=l(U),t=o(o0()),r=o(rf),n=dx(),a=pS(),i=$h(),s=o(gS());function o(w){return w&&w.__esModule?w:{default:w}}function u(w){if(typeof WeakMap!="function")return null;var C=new WeakMap,E=new WeakMap;return(u=function(b){return b?E:C})(w)}function l(w,C){if(w&&w.__esModule)return w;if(w===null||typeof w!="object"&&typeof w!="function")return{default:w};var E=u(C);if(E&&E.has(w))return E.get(w);var b={},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in w)if(g!=="default"&&Object.prototype.hasOwnProperty.call(w,g)){var y=h?Object.getOwnPropertyDescriptor(w,g):null;y&&(y.get||y.set)?Object.defineProperty(b,g,y):b[g]=w[g]}return b.default=w,E&&E.set(w,b),b}function f(w,C,E){return C=d(C),C in w?Object.defineProperty(w,C,{value:E,enumerable:!0,configurable:!0,writable:!0}):w[C]=E,w}function d(w){var C=p(w,"string");return typeof C=="symbol"?C:String(C)}function p(w,C){if(typeof w!="object"||w===null)return w;var E=w[Symbol.toPrimitive];if(E!==void 0){var b=E.call(w,C);if(typeof b!="object")return b;throw new TypeError("@@toPrimitive must return a primitive value.")}return(C==="string"?String:Number)(w)}const v={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let _=v.mouse,x=class extends e.Component{constructor(){super(...arguments),f(this,"dragging",!1),f(this,"lastX",NaN),f(this,"lastY",NaN),f(this,"touchIdentifier",null),f(this,"mounted",!1),f(this,"handleDragStart",C=>{if(this.props.onMouseDown(C),!this.props.allowAnyClick&&typeof C.button=="number"&&C.button!==0)return!1;const E=this.findDOMNode();if(!E||!E.ownerDocument||!E.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:b}=E;if(this.props.disabled||!(C.target instanceof b.defaultView.Node)||this.props.handle&&!(0,n.matchesSelectorAndParentsTo)(C.target,this.props.handle,E)||this.props.cancel&&(0,n.matchesSelectorAndParentsTo)(C.target,this.props.cancel,E))return;C.type==="touchstart"&&C.preventDefault();const h=(0,n.getTouchIdentifier)(C);this.touchIdentifier=h;const g=(0,a.getControlPosition)(C,h,this);if(g==null)return;const{x:y,y:S}=g,A=(0,a.createCoreData)(this,y,S);(0,s.default)("DraggableCore: handleDragStart: %j",A),(0,s.default)("calling",this.props.onStart),!(this.props.onStart(C,A)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,n.addUserSelectStyles)(b),this.dragging=!0,this.lastX=y,this.lastY=S,(0,n.addEvent)(b,_.move,this.handleDrag),(0,n.addEvent)(b,_.stop,this.handleDragStop))}),f(this,"handleDrag",C=>{const E=(0,a.getControlPosition)(C,this.touchIdentifier,this);if(E==null)return;let{x:b,y:h}=E;if(Array.isArray(this.props.grid)){let S=b-this.lastX,A=h-this.lastY;if([S,A]=(0,a.snapToGrid)(this.props.grid,S,A),!S&&!A)return;b=this.lastX+S,h=this.lastY+A}const g=(0,a.createCoreData)(this,b,h);if((0,s.default)("DraggableCore: handleDrag: %j",g),this.props.onDrag(C,g)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const A=document.createEvent("MouseEvents");A.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(A)}return}this.lastX=b,this.lastY=h}),f(this,"handleDragStop",C=>{if(!this.dragging)return;const E=(0,a.getControlPosition)(C,this.touchIdentifier,this);if(E==null)return;let{x:b,y:h}=E;if(Array.isArray(this.props.grid)){let A=b-this.lastX||0,k=h-this.lastY||0;[A,k]=(0,a.snapToGrid)(this.props.grid,A,k),b=this.lastX+A,h=this.lastY+k}const g=(0,a.createCoreData)(this,b,h);if(this.props.onStop(C,g)===!1||this.mounted===!1)return!1;const S=this.findDOMNode();S&&this.props.enableUserSelectHack&&(0,n.removeUserSelectStyles)(S.ownerDocument),(0,s.default)("DraggableCore: handleDragStop: %j",g),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,S&&((0,s.default)("DraggableCore: Removing handlers"),(0,n.removeEvent)(S.ownerDocument,_.move,this.handleDrag),(0,n.removeEvent)(S.ownerDocument,_.stop,this.handleDragStop))}),f(this,"onMouseDown",C=>(_=v.mouse,this.handleDragStart(C))),f(this,"onMouseUp",C=>(_=v.mouse,this.handleDragStop(C))),f(this,"onTouchStart",C=>(_=v.touch,this.handleDragStart(C))),f(this,"onTouchEnd",C=>(_=v.touch,this.handleDragStop(C)))}componentDidMount(){this.mounted=!0;const C=this.findDOMNode();C&&(0,n.addEvent)(C,v.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const C=this.findDOMNode();if(C){const{ownerDocument:E}=C;(0,n.removeEvent)(E,v.mouse.move,this.handleDrag),(0,n.removeEvent)(E,v.touch.move,this.handleDrag),(0,n.removeEvent)(E,v.mouse.stop,this.handleDragStop),(0,n.removeEvent)(E,v.touch.stop,this.handleDragStop),(0,n.removeEvent)(C,v.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,n.removeUserSelectStyles)(E)}}findDOMNode(){var C,E;return(C=this.props)!==null&&C!==void 0&&C.nodeRef?(E=this.props)===null||E===void 0||(E=E.nodeRef)===null||E===void 0?void 0:E.current:r.default.findDOMNode(this)}render(){return e.cloneElement(e.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return u0.default=x,f(x,"displayName","DraggableCore"),f(x,"propTypes",{allowAnyClick:t.default.bool,children:t.default.node.isRequired,disabled:t.default.bool,enableUserSelectHack:t.default.bool,offsetParent:function(w,C){if(w[C]&&w[C].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:t.default.arrayOf(t.default.number),handle:t.default.string,cancel:t.default.string,nodeRef:t.default.object,onStart:t.default.func,onDrag:t.default.func,onStop:t.default.func,onMouseDown:t.default.func,scale:t.default.number,className:i.dontSetMe,style:i.dontSetMe,transform:i.dontSetMe}),f(x,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),u0}var xS;function Xj(){return xS||(xS=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return u.default}}),e.default=void 0;var t=p(U),r=f(o0()),n=f(rf),a=f(qj),i=dx(),s=pS(),o=$h(),u=f(Yj()),l=f(gS());function f(E){return E&&E.__esModule?E:{default:E}}function d(E){if(typeof WeakMap!="function")return null;var b=new WeakMap,h=new WeakMap;return(d=function(g){return g?h:b})(E)}function p(E,b){if(E&&E.__esModule)return E;if(E===null||typeof E!="object"&&typeof E!="function")return{default:E};var h=d(b);if(h&&h.has(E))return h.get(E);var g={},y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var S in E)if(S!=="default"&&Object.prototype.hasOwnProperty.call(E,S)){var A=y?Object.getOwnPropertyDescriptor(E,S):null;A&&(A.get||A.set)?Object.defineProperty(g,S,A):g[S]=E[S]}return g.default=E,h&&h.set(E,g),g}function v(){return v=Object.assign?Object.assign.bind():function(E){for(var b=1;b<arguments.length;b++){var h=arguments[b];for(var g in h)Object.prototype.hasOwnProperty.call(h,g)&&(E[g]=h[g])}return E},v.apply(this,arguments)}function _(E,b,h){return b=x(b),b in E?Object.defineProperty(E,b,{value:h,enumerable:!0,configurable:!0,writable:!0}):E[b]=h,E}function x(E){var b=w(E,"string");return typeof b=="symbol"?b:String(b)}function w(E,b){if(typeof E!="object"||E===null)return E;var h=E[Symbol.toPrimitive];if(h!==void 0){var g=h.call(E,b);if(typeof g!="object")return g;throw new TypeError("@@toPrimitive must return a primitive value.")}return(b==="string"?String:Number)(E)}class C extends t.Component{static getDerivedStateFromProps(b,h){let{position:g}=b,{prevPropsPosition:y}=h;return g&&(!y||g.x!==y.x||g.y!==y.y)?((0,l.default)("Draggable: getDerivedStateFromProps %j",{position:g,prevPropsPosition:y}),{x:g.x,y:g.y,prevPropsPosition:{...g}}):null}constructor(b){super(b),_(this,"onDragStart",(h,g)=>{if((0,l.default)("Draggable: onDragStart: %j",g),this.props.onStart(h,(0,s.createDraggableData)(this,g))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),_(this,"onDrag",(h,g)=>{if(!this.state.dragging)return!1;(0,l.default)("Draggable: onDrag: %j",g);const y=(0,s.createDraggableData)(this,g),S={x:y.x,y:y.y,slackX:0,slackY:0};if(this.props.bounds){const{x:k,y:F}=S;S.x+=this.state.slackX,S.y+=this.state.slackY;const[P,j]=(0,s.getBoundPosition)(this,S.x,S.y);S.x=P,S.y=j,S.slackX=this.state.slackX+(k-S.x),S.slackY=this.state.slackY+(F-S.y),y.x=S.x,y.y=S.y,y.deltaX=S.x-this.state.x,y.deltaY=S.y-this.state.y}if(this.props.onDrag(h,y)===!1)return!1;this.setState(S)}),_(this,"onDragStop",(h,g)=>{if(!this.state.dragging||this.props.onStop(h,(0,s.createDraggableData)(this,g))===!1)return!1;(0,l.default)("Draggable: onDragStop: %j",g);const S={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:k,y:F}=this.props.position;S.x=k,S.y=F}this.setState(S)}),this.state={dragging:!1,dragged:!1,x:b.position?b.position.x:b.defaultPosition.x,y:b.position?b.position.y:b.defaultPosition.y,prevPropsPosition:{...b.position},slackX:0,slackY:0,isElementSVG:!1},b.position&&!(b.onDrag||b.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var b,h;return(b=(h=this.props)===null||h===void 0||(h=h.nodeRef)===null||h===void 0?void 0:h.current)!==null&&b!==void 0?b:n.default.findDOMNode(this)}render(){const{axis:b,bounds:h,children:g,defaultPosition:y,defaultClassName:S,defaultClassNameDragging:A,defaultClassNameDragged:k,position:F,positionOffset:P,scale:j,...N}=this.props;let I={},B=null;const M=!!!F||this.state.dragging,V=F||y,L={x:(0,s.canDragX)(this)&&M?this.state.x:V.x,y:(0,s.canDragY)(this)&&M?this.state.y:V.y};this.state.isElementSVG?B=(0,i.createSVGTransform)(L,P):I=(0,i.createCSSTransform)(L,P);const W=(0,a.default)(g.props.className||"",S,{[A]:this.state.dragging,[k]:this.state.dragged});return t.createElement(u.default,v({},N,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(g),{className:W,style:{...g.props.style,...I},transform:B}))}}e.default=C,_(C,"displayName","Draggable"),_(C,"propTypes",{...u.default.propTypes,axis:r.default.oneOf(["both","x","y","none"]),bounds:r.default.oneOfType([r.default.shape({left:r.default.number,right:r.default.number,top:r.default.number,bottom:r.default.number}),r.default.string,r.default.oneOf([!1])]),defaultClassName:r.default.string,defaultClassNameDragging:r.default.string,defaultClassNameDragged:r.default.string,defaultPosition:r.default.shape({x:r.default.number,y:r.default.number}),positionOffset:r.default.shape({x:r.default.oneOfType([r.default.number,r.default.string]),y:r.default.oneOfType([r.default.number,r.default.string])}),position:r.default.shape({x:r.default.number,y:r.default.number}),className:o.dontSetMe,style:o.dontSetMe,transform:o.dontSetMe}),_(C,"defaultProps",{...u.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(ax)),ax}var _S;function hx(){if(_S)return s0.exports;_S=1;const{default:e,DraggableCore:t}=Xj();return s0.exports=e,s0.exports.default=e,s0.exports.DraggableCore=t,s0.exports}var Kj=hx();const Zj=$n(Kj);function Jj(e){const{title:t,content:r,onOk:n,onCancel:a,isShowBtnIcon:i=!0}=e,s=U.useContext(sf),o=fN(s==null?void 0:s.iconScriptUrl);return{...e,title:R.jsx("div",{title:Ee.isString(t)?t:"",children:t}),content:R.jsx("div",{title:Ee.isString(r)?r:"",children:r}),mask:!1,wrapClassName:"twiceaffirm",className:`${i?"":i0.notBtnIcon} ${i0.confirmModal}`,width:"480px",bodyStyle:{padding:"12px"},icon:R.jsx(o,{type:"icon-front-uploadFail",style:{fontSize:"18px",color:"#ffb200",marginRight:"6px",marginTop:"2px"}}),okButtonProps:{icon:R.jsx(o,{type:"icon-front-pop-upconfirm",style:{cursor:"pointer",fontSize:"13px"}}),className:"modelok",style:{color:"#000",background:"#fff",height:"22px",border:"0 !important",boxShadow:"none"}},cancelButtonProps:{icon:R.jsx(o,{type:"icon-front-pop-close",style:{cursor:"pointer",fontSize:"13px"}}),className:"modelok",style:{color:"#000",background:"#fff",height:"22px",border:"none",boxShadow:"none"}},onOk:n,onCancel:()=>{a==null||a()}}}const Cu=e=>{const[t,r]=U.useState(null),[n,a]=U.useState(!0),[i,s]=U.useState({left:0,right:0,top:0,bottom:0}),o=U.useRef(),u=!!e.styleUnify;El(()=>{const f=document.getElementById("qprogressElement");if(f&&!t){const d=new jj({minimum:.02,height:4,parentNode:f});r(d)}}),_h(()=>{t&&(t.finish(),r(null))}),U.useEffect(()=>{e.progressPercent&&t&&(1>e.progressPercent?t.set(e.progressPercent):t.finish())},[e.progressPercent]);const l=(f,d)=>{var x;const{clientWidth:p,clientHeight:v}=window.document.documentElement,_=(x=o.current)==null?void 0:x.getBoundingClientRect();_&&s({left:-_.left+d.x,right:p-(_.right-d.x),top:-_.top+d.y,bottom:v-(_.bottom-d.y)})};return R.jsxs(ue.Modal,{destroyOnClose:!0,okText:e.okText||ie("sys.label.confirm",{placeholder:"确定"}),okButtonProps:{style:{height:"30px",minWidth:"72px"}},cancelButtonProps:{style:{minWidth:"72px",height:"30px"}},getContainer:()=>document.getElementById("ria-frontend"),title:R.jsx("div",{style:{width:"100%",cursor:"move"},onMouseOver:()=>{n&&a(!1)},onMouseOut:()=>{a(!0)},onFocus:()=>{},onBlur:()=>{},children:e.modalTitle}),modalRender:f=>R.jsx(Zj,{disabled:n,bounds:i,onStart:(d,p)=>l(d,p),children:R.jsx("div",{ref:o,children:f})}),...Ee.omit(e,"visible"),wrapClassName:`modalClassName ${i0.wrapClassName} ${e.wrapClassName??""}`,className:`${u?i0.styleUnify:""} ${e.className??""}`,visible:e.visible,children:[R.jsx("div",{className:i0.qprogress,id:"qprogressElement"}),R.jsx("div",{onDoubleClick:f=>f.stopPropagation(),children:e.children})]})},Qj={main:"_main_104mn_1"};var px={},mx={},l0={exports:{}},ku={exports:{}},e$=ku.exports,yS;function t$(){return yS||(yS=1,(function(){var e,t,r,n,a,i;typeof performance<"u"&&performance!==null&&performance.now?ku.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(ku.exports=function(){return(e()-a)/1e6},t=process.hrtime,e=function(){var s;return s=t(),s[0]*1e9+s[1]},n=e(),i=process.uptime()*1e9,a=n-i):Date.now?(ku.exports=function(){return Date.now()-r},r=Date.now()):(ku.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(e$)),ku.exports}var bS;function r$(){if(bS)return l0.exports;bS=1;for(var e=t$(),t=typeof window>"u"?fi:window,r=["moz","webkit"],n="AnimationFrame",a=t["request"+n],i=t["cancel"+n]||t["cancelRequest"+n],s=0;!a&&s<r.length;s++)a=t[r[s]+"Request"+n],i=t[r[s]+"Cancel"+n]||t[r[s]+"CancelRequest"+n];if(!a||!i){var o=0,u=0,l=[],f=1e3/60;a=function(d){if(l.length===0){var p=e(),v=Math.max(0,f-(p-o));o=v+p,setTimeout(function(){var _=l.slice(0);l.length=0;for(var x=0;x<_.length;x++)if(!_[x].cancelled)try{_[x].callback(o)}catch(w){setTimeout(function(){throw w},0)}},Math.round(v))}return l.push({handle:++u,callback:d,cancelled:!1}),u},i=function(d){for(var p=0;p<l.length;p++)l[p].handle===d&&(l[p].cancelled=!0)}}return l0.exports=function(d){return a.call(t,d)},l0.exports.cancel=function(){i.apply(t,arguments)},l0.exports.polyfill=function(d){d||(d=t),d.requestAnimationFrame=a,d.cancelAnimationFrame=i},l0.exports}var c0={exports:{}},gx,wS;function n$(){if(wS)return gx;wS=1;var e=null,t=["Webkit","Moz","O","ms"];return gx=function(n){e||(e=document.createElement("div"));var a=e.style;if(n in a)return n;for(var i=n.charAt(0).toUpperCase()+n.slice(1),s=t.length;s>=0;s--){var o=t[s]+i;if(o in a)return o}return!1},gx}var vx,SS;function a$(){if(SS)return vx;SS=1,vx=n;var e=/\s/,t=/(_|-|\.|:)/,r=/([a-z][A-Z]|[A-Z][a-z])/;function n(u){return e.test(u)?u.toLowerCase():t.test(u)?(i(u)||u).toLowerCase():r.test(u)?o(u).toLowerCase():u.toLowerCase()}var a=/[\W_]+(.|$)/g;function i(u){return u.replace(a,function(l,f){return f?" "+f:""})}var s=/(.)([A-Z]+)/g;function o(u){return u.replace(s,function(l,f,d){return f+" "+d.toLowerCase().split("").join(" ")})}return vx}var xx,ES;function i$(){if(ES)return xx;ES=1;var e=a$();xx=t;function t(r){return e(r).replace(/[\W_]+(.|$)/g,function(n,a){return a?" "+a:""}).trim()}return xx}var _x,CS;function s$(){if(CS)return _x;CS=1;var e=i$();_x=t;function t(r){return e(r).replace(/\s(\w)/g,function(n,a){return a.toUpperCase()})}return _x}var yx,kS;function o$(){if(kS)return yx;kS=1;var e={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,stopOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0};return yx=function(t,r){return typeof r=="number"&&!e[t]?r+"px":r},yx}var TS;function AS(){if(TS)return c0.exports;TS=1;var e=n$(),t=s$(),r={float:"cssFloat"},n=o$();function a(u,l,f){var d=r[l];if(typeof d>"u"&&(d=s(l)),d){if(f===void 0)return u.style[d];u.style[d]=n(d,f)}}function i(u,l){for(var f in l)l.hasOwnProperty(f)&&a(u,f,l[f])}function s(u){var l=t(u),f=e(l);return r[l]=r[u]=r[f]=f,f}function o(){arguments.length===2?typeof arguments[1]=="string"?arguments[0].style.cssText=arguments[1]:i(arguments[0],arguments[1]):a(arguments[0],arguments[1],arguments[2])}return c0.exports=o,c0.exports.set=o,c0.exports.get=function(u,l){return Array.isArray(l)?l.reduce(function(f,d){return f[d]=a(u,d||""),f},{}):a(u,l||"")},c0.exports}var bx={},FS;function u$(){return FS||(FS=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){return typeof r=="string"}}(bx)),bx}var wx={},OS;function l$(){return OS||(OS=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var t=AS(),r=n(t);function n(s){return s&&s.__esModule?s:{default:s}}var a=!1;function i(){if(a!==!1)return a;if(typeof document<"u"){var s=document.createElement("div");(0,r.default)(s,{width:100,height:100,position:"absolute",top:-9999,overflow:"scroll",MsOverflowStyle:"scrollbar"}),document.body.appendChild(s),a=s.offsetWidth-s.clientWidth,document.body.removeChild(s)}else a=0;return a||0}}(wx)),wx}var Sx={},PS;function c$(){return PS||(PS=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(){return!1}}(Sx)),Sx}var Ex={},DS;function f$(){return DS||(DS=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){var n=r.clientWidth,a=getComputedStyle(r),i=a.paddingLeft,s=a.paddingRight;return n-parseFloat(i)-parseFloat(s)}}(Ex)),Ex}var Cx={},RS;function d$(){return RS||(RS=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){var n=r.clientHeight,a=getComputedStyle(r),i=a.paddingTop,s=a.paddingBottom;return n-parseFloat(i)-parseFloat(s)}}(Cx)),Cx}var ea={},IS;function h$(){return IS||(IS=1,Object.defineProperty(ea,"__esModule",{value:!0}),ea.containerStyleDefault={position:"relative",overflow:"hidden",width:"100%",height:"100%"},ea.containerStyleAutoHeight={height:"auto"},ea.viewStyleDefault={position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"scroll",WebkitOverflowScrolling:"touch"},ea.viewStyleAutoHeight={position:"relative",top:void 0,left:void 0,right:void 0,bottom:void 0},ea.viewStyleUniversalInitial={overflow:"hidden",marginRight:0,marginBottom:0},ea.trackHorizontalStyleDefault={position:"absolute",height:6},ea.trackVerticalStyleDefault={position:"absolute",width:6},ea.thumbHorizontalStyleDefault={position:"relative",display:"block",height:"100%"},ea.thumbVerticalStyleDefault={position:"relative",display:"block",width:"100%"},ea.disableSelectStyle={userSelect:"none"},ea.disableSelectStyleReset={userSelect:""}),ea}var mo={},NS;function p$(){if(NS)return mo;NS=1,Object.defineProperty(mo,"__esModule",{value:!0});var e=Object.assign||function(f){for(var d=1;d<arguments.length;d++){var p=arguments[d];for(var v in p)Object.prototype.hasOwnProperty.call(p,v)&&(f[v]=p[v])}return f};mo.renderViewDefault=i,mo.renderTrackHorizontalDefault=s,mo.renderTrackVerticalDefault=o,mo.renderThumbHorizontalDefault=u,mo.renderThumbVerticalDefault=l;var t=U,r=n(t);function n(f){return f&&f.__esModule?f:{default:f}}function a(f,d){var p={};for(var v in f)d.indexOf(v)>=0||Object.prototype.hasOwnProperty.call(f,v)&&(p[v]=f[v]);return p}function i(f){return r.default.createElement("div",f)}function s(f){var d=f.style,p=a(f,["style"]),v=e({},d,{right:2,bottom:2,left:2,borderRadius:3});return r.default.createElement("div",e({style:v},p))}function o(f){var d=f.style,p=a(f,["style"]),v=e({},d,{right:2,bottom:2,top:2,borderRadius:3});return r.default.createElement("div",e({style:v},p))}function u(f){var d=f.style,p=a(f,["style"]),v=e({},d,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return r.default.createElement("div",e({style:v},p))}function l(f){var d=f.style,p=a(f,["style"]),v=e({},d,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return r.default.createElement("div",e({style:v},p))}return mo}var MS;function m$(){return MS||(MS=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Object.assign||function(j){for(var N=1;N<arguments.length;N++){var I=arguments[N];for(var B in I)Object.prototype.hasOwnProperty.call(I,B)&&(j[B]=I[B])}return j},r=function(){function j(N,I){for(var B=0;B<I.length;B++){var O=I[B];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(N,O.key,O)}}return function(N,I,B){return I&&j(N.prototype,I),B&&j(N,B),N}}(),n=r$(),a=y(n),i=AS(),s=y(i),o=U,u=o0(),l=y(u),f=u$(),d=y(f),p=l$(),v=y(p),_=c$(),x=y(_),w=f$(),C=y(w),E=d$(),b=y(E),h=h$(),g=p$();function y(j){return j&&j.__esModule?j:{default:j}}function S(j,N){var I={};for(var B in j)N.indexOf(B)>=0||Object.prototype.hasOwnProperty.call(j,B)&&(I[B]=j[B]);return I}function A(j,N){if(!(j instanceof N))throw new TypeError("Cannot call a class as a function")}function k(j,N){if(!j)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N&&(typeof N=="object"||typeof N=="function")?N:j}function F(j,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof N);j.prototype=Object.create(N&&N.prototype,{constructor:{value:j,enumerable:!1,writable:!0,configurable:!0}}),N&&(Object.setPrototypeOf?Object.setPrototypeOf(j,N):j.__proto__=N)}var P=function(j){F(N,j);function N(I){var B;A(this,N);for(var O=arguments.length,M=Array(O>1?O-1:0),V=1;V<O;V++)M[V-1]=arguments[V];var L=k(this,(B=N.__proto__||Object.getPrototypeOf(N)).call.apply(B,[this,I].concat(M)));return L.getScrollLeft=L.getScrollLeft.bind(L),L.getScrollTop=L.getScrollTop.bind(L),L.getScrollWidth=L.getScrollWidth.bind(L),L.getScrollHeight=L.getScrollHeight.bind(L),L.getClientWidth=L.getClientWidth.bind(L),L.getClientHeight=L.getClientHeight.bind(L),L.getValues=L.getValues.bind(L),L.getThumbHorizontalWidth=L.getThumbHorizontalWidth.bind(L),L.getThumbVerticalHeight=L.getThumbVerticalHeight.bind(L),L.getScrollLeftForOffset=L.getScrollLeftForOffset.bind(L),L.getScrollTopForOffset=L.getScrollTopForOffset.bind(L),L.scrollLeft=L.scrollLeft.bind(L),L.scrollTop=L.scrollTop.bind(L),L.scrollToLeft=L.scrollToLeft.bind(L),L.scrollToTop=L.scrollToTop.bind(L),L.scrollToRight=L.scrollToRight.bind(L),L.scrollToBottom=L.scrollToBottom.bind(L),L.handleTrackMouseEnter=L.handleTrackMouseEnter.bind(L),L.handleTrackMouseLeave=L.handleTrackMouseLeave.bind(L),L.handleHorizontalTrackMouseDown=L.handleHorizontalTrackMouseDown.bind(L),L.handleVerticalTrackMouseDown=L.handleVerticalTrackMouseDown.bind(L),L.handleHorizontalThumbMouseDown=L.handleHorizontalThumbMouseDown.bind(L),L.handleVerticalThumbMouseDown=L.handleVerticalThumbMouseDown.bind(L),L.handleWindowResize=L.handleWindowResize.bind(L),L.handleScroll=L.handleScroll.bind(L),L.handleDrag=L.handleDrag.bind(L),L.handleDragEnd=L.handleDragEnd.bind(L),L.state={didMountUniversal:!1},L}return r(N,[{key:"componentDidMount",value:function(){this.addListeners(),this.update(),this.componentDidMountUniversal()}},{key:"componentDidMountUniversal",value:function(){var B=this.props.universal;B&&this.setState({didMountUniversal:!0})}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"componentWillUnmount",value:function(){this.removeListeners(),(0,n.cancel)(this.requestFrame),clearTimeout(this.hideTracksTimeout),clearInterval(this.detectScrollingInterval)}},{key:"getScrollLeft",value:function(){return this.view?this.view.scrollLeft:0}},{key:"getScrollTop",value:function(){return this.view?this.view.scrollTop:0}},{key:"getScrollWidth",value:function(){return this.view?this.view.scrollWidth:0}},{key:"getScrollHeight",value:function(){return this.view?this.view.scrollHeight:0}},{key:"getClientWidth",value:function(){return this.view?this.view.clientWidth:0}},{key:"getClientHeight",value:function(){return this.view?this.view.clientHeight:0}},{key:"getValues",value:function(){var B=this.view||{},O=B.scrollLeft,M=O===void 0?0:O,V=B.scrollTop,L=V===void 0?0:V,W=B.scrollWidth,G=W===void 0?0:W,H=B.scrollHeight,Q=H===void 0?0:H,K=B.clientWidth,te=K===void 0?0:K,se=B.clientHeight,le=se===void 0?0:se;return{left:M/(G-te)||0,top:L/(Q-le)||0,scrollLeft:M,scrollTop:L,scrollWidth:G,scrollHeight:Q,clientWidth:te,clientHeight:le}}},{key:"getThumbHorizontalWidth",value:function(){var B=this.props,O=B.thumbSize,M=B.thumbMinSize,V=this.view,L=V.scrollWidth,W=V.clientWidth,G=(0,C.default)(this.trackHorizontal),H=Math.ceil(W/L*G);return G===H?0:O||Math.max(H,M)}},{key:"getThumbVerticalHeight",value:function(){var B=this.props,O=B.thumbSize,M=B.thumbMinSize,V=this.view,L=V.scrollHeight,W=V.clientHeight,G=(0,b.default)(this.trackVertical),H=Math.ceil(W/L*G);return G===H?0:O||Math.max(H,M)}},{key:"getScrollLeftForOffset",value:function(B){var O=this.view,M=O.scrollWidth,V=O.clientWidth,L=(0,C.default)(this.trackHorizontal),W=this.getThumbHorizontalWidth();return B/(L-W)*(M-V)}},{key:"getScrollTopForOffset",value:function(B){var O=this.view,M=O.scrollHeight,V=O.clientHeight,L=(0,b.default)(this.trackVertical),W=this.getThumbVerticalHeight();return B/(L-W)*(M-V)}},{key:"scrollLeft",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.view&&(this.view.scrollLeft=B)}},{key:"scrollTop",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.view&&(this.view.scrollTop=B)}},{key:"scrollToLeft",value:function(){this.view&&(this.view.scrollLeft=0)}},{key:"scrollToTop",value:function(){this.view&&(this.view.scrollTop=0)}},{key:"scrollToRight",value:function(){this.view&&(this.view.scrollLeft=this.view.scrollWidth)}},{key:"scrollToBottom",value:function(){this.view&&(this.view.scrollTop=this.view.scrollHeight)}},{key:"addListeners",value:function(){if(!(typeof document>"u"||!this.view)){var B=this.view,O=this.trackHorizontal,M=this.trackVertical,V=this.thumbHorizontal,L=this.thumbVertical;B.addEventListener("scroll",this.handleScroll),(0,v.default)()&&(O.addEventListener("mouseenter",this.handleTrackMouseEnter),O.addEventListener("mouseleave",this.handleTrackMouseLeave),O.addEventListener("mousedown",this.handleHorizontalTrackMouseDown),M.addEventListener("mouseenter",this.handleTrackMouseEnter),M.addEventListener("mouseleave",this.handleTrackMouseLeave),M.addEventListener("mousedown",this.handleVerticalTrackMouseDown),V.addEventListener("mousedown",this.handleHorizontalThumbMouseDown),L.addEventListener("mousedown",this.handleVerticalThumbMouseDown),window.addEventListener("resize",this.handleWindowResize))}}},{key:"removeListeners",value:function(){if(!(typeof document>"u"||!this.view)){var B=this.view,O=this.trackHorizontal,M=this.trackVertical,V=this.thumbHorizontal,L=this.thumbVertical;B.removeEventListener("scroll",this.handleScroll),(0,v.default)()&&(O.removeEventListener("mouseenter",this.handleTrackMouseEnter),O.removeEventListener("mouseleave",this.handleTrackMouseLeave),O.removeEventListener("mousedown",this.handleHorizontalTrackMouseDown),M.removeEventListener("mouseenter",this.handleTrackMouseEnter),M.removeEventListener("mouseleave",this.handleTrackMouseLeave),M.removeEventListener("mousedown",this.handleVerticalTrackMouseDown),V.removeEventListener("mousedown",this.handleHorizontalThumbMouseDown),L.removeEventListener("mousedown",this.handleVerticalThumbMouseDown),window.removeEventListener("resize",this.handleWindowResize),this.teardownDragging())}}},{key:"handleScroll",value:function(B){var O=this,M=this.props,V=M.onScroll,L=M.onScrollFrame;V&&V(B),this.update(function(W){var G=W.scrollLeft,H=W.scrollTop;O.viewScrollLeft=G,O.viewScrollTop=H,L&&L(W)}),this.detectScrolling()}},{key:"handleScrollStart",value:function(){var B=this.props.onScrollStart;B&&B(),this.handleScrollStartAutoHide()}},{key:"handleScrollStartAutoHide",value:function(){var B=this.props.autoHide;B&&this.showTracks()}},{key:"handleScrollStop",value:function(){var B=this.props.onScrollStop;B&&B(),this.handleScrollStopAutoHide()}},{key:"handleScrollStopAutoHide",value:function(){var B=this.props.autoHide;B&&this.hideTracks()}},{key:"handleWindowResize",value:function(){this.update()}},{key:"handleHorizontalTrackMouseDown",value:function(B){B.preventDefault();var O=B.target,M=B.clientX,V=O.getBoundingClientRect(),L=V.left,W=this.getThumbHorizontalWidth(),G=Math.abs(L-M)-W/2;this.view.scrollLeft=this.getScrollLeftForOffset(G)}},{key:"handleVerticalTrackMouseDown",value:function(B){B.preventDefault();var O=B.target,M=B.clientY,V=O.getBoundingClientRect(),L=V.top,W=this.getThumbVerticalHeight(),G=Math.abs(L-M)-W/2;this.view.scrollTop=this.getScrollTopForOffset(G)}},{key:"handleHorizontalThumbMouseDown",value:function(B){B.preventDefault(),this.handleDragStart(B);var O=B.target,M=B.clientX,V=O.offsetWidth,L=O.getBoundingClientRect(),W=L.left;this.prevPageX=V-(M-W)}},{key:"handleVerticalThumbMouseDown",value:function(B){B.preventDefault(),this.handleDragStart(B);var O=B.target,M=B.clientY,V=O.offsetHeight,L=O.getBoundingClientRect(),W=L.top;this.prevPageY=V-(M-W)}},{key:"setupDragging",value:function(){(0,s.default)(document.body,h.disableSelectStyle),document.addEventListener("mousemove",this.handleDrag),document.addEventListener("mouseup",this.handleDragEnd),document.onselectstart=x.default}},{key:"teardownDragging",value:function(){(0,s.default)(document.body,h.disableSelectStyleReset),document.removeEventListener("mousemove",this.handleDrag),document.removeEventListener("mouseup",this.handleDragEnd),document.onselectstart=void 0}},{key:"handleDragStart",value:function(B){this.dragging=!0,B.stopImmediatePropagation(),this.setupDragging()}},{key:"handleDrag",value:function(B){if(this.prevPageX){var O=B.clientX,M=this.trackHorizontal.getBoundingClientRect(),V=M.left,L=this.getThumbHorizontalWidth(),W=L-this.prevPageX,G=-V+O-W;this.view.scrollLeft=this.getScrollLeftForOffset(G)}if(this.prevPageY){var H=B.clientY,Q=this.trackVertical.getBoundingClientRect(),K=Q.top,te=this.getThumbVerticalHeight(),se=te-this.prevPageY,le=-K+H-se;this.view.scrollTop=this.getScrollTopForOffset(le)}return!1}},{key:"handleDragEnd",value:function(){this.dragging=!1,this.prevPageX=this.prevPageY=0,this.teardownDragging(),this.handleDragEndAutoHide()}},{key:"handleDragEndAutoHide",value:function(){var B=this.props.autoHide;B&&this.hideTracks()}},{key:"handleTrackMouseEnter",value:function(){this.trackMouseOver=!0,this.handleTrackMouseEnterAutoHide()}},{key:"handleTrackMouseEnterAutoHide",value:function(){var B=this.props.autoHide;B&&this.showTracks()}},{key:"handleTrackMouseLeave",value:function(){this.trackMouseOver=!1,this.handleTrackMouseLeaveAutoHide()}},{key:"handleTrackMouseLeaveAutoHide",value:function(){var B=this.props.autoHide;B&&this.hideTracks()}},{key:"showTracks",value:function(){clearTimeout(this.hideTracksTimeout),(0,s.default)(this.trackHorizontal,{opacity:1}),(0,s.default)(this.trackVertical,{opacity:1})}},{key:"hideTracks",value:function(){var B=this;if(!this.dragging&&!this.scrolling&&!this.trackMouseOver){var O=this.props.autoHideTimeout;clearTimeout(this.hideTracksTimeout),this.hideTracksTimeout=setTimeout(function(){(0,s.default)(B.trackHorizontal,{opacity:0}),(0,s.default)(B.trackVertical,{opacity:0})},O)}}},{key:"detectScrolling",value:function(){var B=this;this.scrolling||(this.scrolling=!0,this.handleScrollStart(),this.detectScrollingInterval=setInterval(function(){B.lastViewScrollLeft===B.viewScrollLeft&&B.lastViewScrollTop===B.viewScrollTop&&(clearInterval(B.detectScrollingInterval),B.scrolling=!1,B.handleScrollStop()),B.lastViewScrollLeft=B.viewScrollLeft,B.lastViewScrollTop=B.viewScrollTop},100))}},{key:"raf",value:function(B){var O=this;this.requestFrame&&a.default.cancel(this.requestFrame),this.requestFrame=(0,a.default)(function(){O.requestFrame=void 0,B()})}},{key:"update",value:function(B){var O=this;this.raf(function(){return O._update(B)})}},{key:"_update",value:function(B){var O=this.props,M=O.onUpdate,V=O.hideTracksWhenNotNeeded,L=this.getValues();if((0,v.default)()){var W=L.scrollLeft,G=L.clientWidth,H=L.scrollWidth,Q=(0,C.default)(this.trackHorizontal),K=this.getThumbHorizontalWidth(),te=W/(H-G)*(Q-K),se={width:K,transform:"translateX("+te+"px)"},le=L.scrollTop,ge=L.clientHeight,ye=L.scrollHeight,be=(0,b.default)(this.trackVertical),Be=this.getThumbVerticalHeight(),J=le/(ye-ge)*(be-Be),qe={height:Be,transform:"translateY("+J+"px)"};if(V){var _e={visibility:H>G?"visible":"hidden"},ze={visibility:ye>ge?"visible":"hidden"};(0,s.default)(this.trackHorizontal,_e),(0,s.default)(this.trackVertical,ze)}(0,s.default)(this.thumbHorizontal,se),(0,s.default)(this.thumbVertical,qe)}M&&M(L),typeof B=="function"&&B(L)}},{key:"render",value:function(){var B=this,O=(0,v.default)(),M=this.props;M.onScroll,M.onScrollFrame,M.onScrollStart,M.onScrollStop,M.onUpdate;var V=M.renderView,L=M.renderTrackHorizontal,W=M.renderTrackVertical,G=M.renderThumbHorizontal,H=M.renderThumbVertical,Q=M.tagName;M.hideTracksWhenNotNeeded;var K=M.autoHide;M.autoHideTimeout;var te=M.autoHideDuration;M.thumbSize,M.thumbMinSize;var se=M.universal,le=M.autoHeight,ge=M.autoHeightMin,ye=M.autoHeightMax,be=M.style,Be=M.children,J=S(M,["onScroll","onScrollFrame","onScrollStart","onScrollStop","onUpdate","renderView","renderTrackHorizontal","renderTrackVertical","renderThumbHorizontal","renderThumbVertical","tagName","hideTracksWhenNotNeeded","autoHide","autoHideTimeout","autoHideDuration","thumbSize","thumbMinSize","universal","autoHeight","autoHeightMin","autoHeightMax","style","children"]),qe=this.state.didMountUniversal,_e=t({},h.containerStyleDefault,le&&t({},h.containerStyleAutoHeight,{minHeight:ge,maxHeight:ye}),be),ze=t({},h.viewStyleDefault,{marginRight:O?-O:0,marginBottom:O?-O:0},le&&t({},h.viewStyleAutoHeight,{minHeight:(0,d.default)(ge)?"calc("+ge+" + "+O+"px)":ge+O,maxHeight:(0,d.default)(ye)?"calc("+ye+" + "+O+"px)":ye+O}),le&&se&&!qe&&{minHeight:ge,maxHeight:ye},se&&!qe&&h.viewStyleUniversalInitial),We={transition:"opacity "+te+"ms",opacity:0},De=t({},h.trackHorizontalStyleDefault,K&&We,(!O||se&&!qe)&&{display:"none"}),ut=t({},h.trackVerticalStyleDefault,K&&We,(!O||se&&!qe)&&{display:"none"});return(0,o.createElement)(Q,t({},J,{style:_e,ref:function(it){B.container=it}}),[(0,o.cloneElement)(V({style:ze}),{key:"view",ref:function(it){B.view=it}},Be),(0,o.cloneElement)(L({style:De}),{key:"trackHorizontal",ref:function(it){B.trackHorizontal=it}},(0,o.cloneElement)(G({style:h.thumbHorizontalStyleDefault}),{ref:function(it){B.thumbHorizontal=it}})),(0,o.cloneElement)(W({style:ut}),{key:"trackVertical",ref:function(it){B.trackVertical=it}},(0,o.cloneElement)(H({style:h.thumbVerticalStyleDefault}),{ref:function(it){B.thumbVertical=it}}))])}}]),N}(o.Component);e.default=P,P.propTypes={onScroll:l.default.func,onScrollFrame:l.default.func,onScrollStart:l.default.func,onScrollStop:l.default.func,onUpdate:l.default.func,renderView:l.default.func,renderTrackHorizontal:l.default.func,renderTrackVertical:l.default.func,renderThumbHorizontal:l.default.func,renderThumbVertical:l.default.func,tagName:l.default.string,thumbSize:l.default.number,thumbMinSize:l.default.number,hideTracksWhenNotNeeded:l.default.bool,autoHide:l.default.bool,autoHideTimeout:l.default.number,autoHideDuration:l.default.number,autoHeight:l.default.bool,autoHeightMin:l.default.oneOfType([l.default.number,l.default.string]),autoHeightMax:l.default.oneOfType([l.default.number,l.default.string]),universal:l.default.bool,style:l.default.object,children:l.default.node},P.defaultProps={renderView:g.renderViewDefault,renderTrackHorizontal:g.renderTrackHorizontalDefault,renderTrackVertical:g.renderTrackVerticalDefault,renderThumbHorizontal:g.renderThumbHorizontalDefault,renderThumbVertical:g.renderThumbVerticalDefault,tagName:"div",thumbMinSize:30,hideTracksWhenNotNeeded:!1,autoHide:!1,autoHideTimeout:1e3,autoHideDuration:200,autoHeight:!1,autoHeightMin:0,autoHeightMax:200,universal:!1}}(mx)),mx}var LS;function g$(){return LS||(LS=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Scrollbars=void 0;var t=m$(),r=n(t);function n(a){return a&&a.__esModule?a:{default:a}}e.default=r.default,e.Scrollbars=r.default}(px)),px}var v$=g$();const x$=e=>R.jsx(v$.Scrollbars,{autoHide:!0,style:{...Ee.merge({overflow:"auto",height:"100%"},e.style)},...e,className:Qe(Qj.main,e.className),renderThumbVertical:({style:t,...r})=>{const n={borderRadius:"0px",background:"#e0e0e0"};return R.jsx("div",{style:{...t,...n},...r})},children:e.children}),zh={"error-box":"_error-box_1uv1u_1","err-color":"_err-color_1uv1u_12","err-box-list":"_err-box-list_1uv1u_16","custom-button":"_custom-button_1uv1u_22"},_$=e=>R.jsx("div",{className:zh["error-box"],children:R.jsxs("div",{className:zh["err-box-list"],children:[R.jsx("div",{children:R.jsx(gt,{style:{fontSize:"45px"},isBackend:!0,type:"a-front-previewerror",className:zh["err-color"]})}),R.jsx("div",{style:{marginTop:"20px",color:"#6c81b1",fontSize:"14px"},children:e.children||ie("sys.error.loading",{placeholder:"加载错误"})}),R.jsx("div",{style:{marginTop:"30px"},children:R.jsx("div",{className:zh["custom-button"],onClick:()=>{location.reload()},children:ie("sys.action.refresh",{placeholder:"刷新"})})})]})}),y$={main:"_main_7zdwk_1"},b$=e=>{const t=async(n,a)=>{const i=e.menu.items[a];if(i.request){i.request.middleware&&await i.request.middleware();let s=await e.request(i.request.url,i.request.options);ue.message.success(s.message),i.request.onSuccess&&i.request.onSuccess()}e.menu.onClick&&e.menu.onClick({...n,key:a.toString()})},r=R.jsx(ue.Menu,{...Ee.omit(e.menu,["items"]),onClick:()=>{},children:e.menu.items.map((n,a)=>n.confirm?R.jsx(ue.Popconfirm,{disabled:e.disabled,okText:ie("sys.action.confirm",{placeholder:"确认"}),cancelText:ie("sys.action.cancel",{placeholder:"取消"}),onConfirm:()=>{t(n,a)},...n.confirm,children:R.jsx(ue.Menu.Item,{onClick:()=>{},...n},a)},n.key||a):R.jsx(ue.Menu.Item,{onClick:()=>{t(n,a)},...n},n.key||a))});return R.jsx(ue.Dropdown,{overlayStyle:{...e.style},overlayClassName:e.className,className:Qe(y$.main),overlay:r,...Ee.omit(e,["menu"])})},f0=({valueType:e="12",...t})=>{const r=Jn({defaultValue1:"",defaultValue2:""});return iM(()=>{t.onBlur()},()=>document.getElementById("use-click-away-button")),U.useEffect(()=>{t.value?(r.defaultValue1=t.value.split("~%~")[0]||"",r.defaultValue2=t.value.split("~%~")[1]||""):(r.defaultValue1="",r.defaultValue2="")},[t.value]),R.jsx("div",{id:"use-click-away-button",children:R.jsxs(ue.Space.Compact,{style:{width:"100%"},children:[e=="12"&&R.jsx(ue.Input,{...t,disabled:t.readOnly,value:r.defaultValue1,size:t.size,style:{width:"calc(100% - 100px)"},onChange:n=>{var i,s;let a;r.defaultValue1=((i=n.target)==null?void 0:i.value)||"",r.defaultValue1?a=`${((s=n.target)==null?void 0:s.value)||""}~%~${r.defaultValue2||""}`:r.defaultValue2&&(a=`~%~${r.defaultValue2||""}`),t.onChange&&t.onChange(a)},onBlur:n=>{n.stopPropagation()}}),e=="13"&&R.jsx(ue.InputNumber,{...t,disabled:t.readOnly,value:r.defaultValue1,style:{width:"calc(100% - 100px)"},size:t.size,maxLength:void 0,onChange:n=>{let a;r.defaultValue1=n||"",r.defaultValue1?a=`${n||""}~%~${r.defaultValue2||""}`:r.defaultValue2&&(a=`~%~${r.defaultValue2||""}`),t.onChange&&t.onChange(a)},onBlur:n=>{n.stopPropagation()}}),R.jsx(ue.Select,{allowClear:!0,value:r.defaultValue2,disabled:t.readOnly,options:t.options,style:{width:"100px"},size:t.size,onChange:n=>{r.defaultValue2=n||"";let a="";(r.defaultValue1||n)&&(a=`${r.defaultValue1||""}~%~${n||""}`),t.onChange&&t.onChange(a)}})]})})},w$=e=>{const[t,r]=U.useState(!1);tM(async()=>{const a=["/filePreview/plugin.js","/filePreview/luckyexcel.umd.js","/filePreview/luckysheet.umd.js"],i=o=>new Promise((u,l)=>{const f=document.createElement("script");f.src=`${o}`,f.onload=u,f.onerror=l,document.head.appendChild(f)});await(async()=>{for(const o of a)await i(o)})(),n()},[]);const n=()=>{function a(i){const s=new XMLHttpRequest;s.open("GET",i,!0),s.onerror=()=>{},s.responseType="blob",s.onload=()=>{if(s.status===200){var o=new File([s.response],"",{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",lastModified:Date.now()});window.LuckyExcel.transformExcelToLucky(o,function(u){u.sheets==null||u.sheets.length==0||(window.luckysheet.create({container:"luckysheet",showinfobar:!1,data:u.sheets,title:u.info.name,enableAddRow:!1,allowCopy:!1,loading:{},showtoolbar:!1,allowEdit:!1,enableAddCol:!1,userInfo:!1,showRowBar:!1,showColumnBar:!1,sheetFormulaBar:!1,enableAddBackTop:!1,showsheetbarConfig:{add:!1,menu:!1,sheet:!0}}),document.addEventListener("copy",l=>{window.luckysheet.enterEditMode(),window.luckysheet.exitEditMode()}),r(!0))})}},s.send()}a(e.url)};return R.jsx("div",{id:"luckysheet",style:{visibility:t?"visible":"hidden",margin:"0px",padding:"0px",position:"absolute",width:"100%",left:"0px",top:"0px",bottom:"0px",outline:"none"}})},S$={},BS=U.forwardRef((e,t)=>{const[r]=ue.Form.useForm();return U.useImperativeHandle(t,()=>({...r})),R.jsx("div",{className:Qe(S$.main,e.className),style:e.style,children:R.jsx(ue.Form,{form:r,layout:"vertical",...e,children:e.children})})}),E$={main:"_main_1rp4h_1"};class Rl{static getAttributesMapId(t,r){return Rl.isQuoteMultipleTypesAttr(t)?r?t[r]:t.id:Rl.isCustomAttr(t)?t.id:t.dataFromId}static isCustomAttr(t){return t.dataFrom==="0"}static isQuoteAttr(t){return t.dataFrom==="1"}static isQuoteMultipleTypesAttr(t){return t.dataFrom==="2"}static hasAttr(t,r){return t&&Object.keys(t).includes(r)}}var go=(e=>(e.material="10001001",e.document="10001002",e.changeRequest="10001003",e.changeInstruction="10001004",e.engineeringChange="10001005",e.file="10001006",e.problemReport="10001007",e.manufacturerChange="10001008",e.statusChange="10001009",e.applicationProcess="10001010",e.supplierRequest="10001011",e.manufacturer="10001012",e.manufacturerParts="10001013",e.supplier="10001014",e.projectStartChange="10001015",e.dailyNewspaper="10001019",e.projectBaselineChange="10001030",e.project="10001016",e.workReport="10001019",e.user="10001017",e.userGroup="10001018",e.manufactChange="10001020",e.technology="10001021",e.factory="10001022",e.resource="10001023",e.factoryPublish="10001024",e.resourcePublish="10001025",e.risk="10001028",e.technologyPublish="10001029",e.inspectItem="10001031",e.option="10001032",e.custom="10001033",e.TechSpecial="10001034",e.ControlPlan="10001035",e.TechSpecialPublish="10001036",e.ControlPlanPublish="10001037",e))(go||{});class vo{static isMaterial(t){return t=="10001001"}static isDocument(t){return t=="10001002"}static isChangeRequest(t){return t=="10001003"}static isChangeInstruction(t){return t=="10001004"}static isEngineeringChange(t){return t=="10001005"}static isFile(t){return t=="10001006"}static isProblemReport(t){return t=="10001007"}static isManufacturerChange(t){return t=="10001008"}static isStatusChange(t){return t=="10001009"}static isApplicationProcess(t){return t=="10001010"}static isSupplierRequest(t){return t=="10001011"}static isManufacturer(t){return t=="10001012"}static isManufacturerParts(t){return t=="10001013"}static isManufactChange(t){return t=="10001020"}static isSupplier(t){return t=="10001014"}static isProjectStartChange(t){return t=="10001015"}static isDailyNewspaper(t){return t=="10001019"}static isProjectBaselineChange(t){return t=="10001030"}static isProjectChange(t){return vo.isProjectStartChange(t)||vo.isProjectBaselineChange(t)}static isProject(t){return t=="10001016"}static isWorkReport(t){return t=="10001019"}static isUser(t){return t=="10001017"}static isUserGroup(t){return t=="10001018"}static isTechnology(t){return t=="10001021"}static isFactory(t){return t=="10001022"}static isResource(t){return t=="10001023"}static isTechnologyPublish(t){return t=="10001029"}static isFactoryPublish(t){return t=="10001024"}static isResoucePublish(t){return t=="10001025"}static isRisk(t){return t=="10001028"}static isInspectItem(t){return t=="10001031"}static isOption(t){return t=="10001032"}static isCustom(t){return t=="10001033"}static isControlPublish(t){return t=="10001037"}static isTechSpecialPublish(t){return t=="10001036"}static isControlPlan(t){return t=="10001035"}static isTechSpecial(t){return t=="10001034"}}//! moment.js
324
+ //! version : 2.30.1
325
+ //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
326
+ //! license : MIT
327
+ //! momentjs.com
328
+ var jS;function Me(){return jS.apply(null,arguments)}function C$(e){jS=e}function vi(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Tu(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function Ht(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function kx(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(Ht(e,t))return!1;return!0}function ta(e){return e===void 0}function Ps(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function d0(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function $S(e,t){var r=[],n,a=e.length;for(n=0;n<a;++n)r.push(t(e[n],n));return r}function xo(e,t){for(var r in t)Ht(t,r)&&(e[r]=t[r]);return Ht(t,"toString")&&(e.toString=t.toString),Ht(t,"valueOf")&&(e.valueOf=t.valueOf),e}function Vi(e,t,r,n){return hE(e,t,r,n,!0).utc()}function k$(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function Et(e){return e._pf==null&&(e._pf=k$()),e._pf}var Tx;Array.prototype.some?Tx=Array.prototype.some:Tx=function(e){var t=Object(this),r=t.length>>>0,n;for(n=0;n<r;n++)if(n in t&&e.call(this,t[n],n,t))return!0;return!1};function Ax(e){var t=null,r=!1,n=e._d&&!isNaN(e._d.getTime());if(n&&(t=Et(e),r=Tx.call(t.parsedDateParts,function(a){return a!=null}),n=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r),e._strict&&(n=n&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=n;else return n;return e._isValid}function Hh(e){var t=Vi(NaN);return e!=null?xo(Et(t),e):Et(t).userInvalidated=!0,t}var US=Me.momentProperties=[],Fx=!1;function Ox(e,t){var r,n,a,i=US.length;if(ta(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),ta(t._i)||(e._i=t._i),ta(t._f)||(e._f=t._f),ta(t._l)||(e._l=t._l),ta(t._strict)||(e._strict=t._strict),ta(t._tzm)||(e._tzm=t._tzm),ta(t._isUTC)||(e._isUTC=t._isUTC),ta(t._offset)||(e._offset=t._offset),ta(t._pf)||(e._pf=Et(t)),ta(t._locale)||(e._locale=t._locale),i>0)for(r=0;r<i;r++)n=US[r],a=t[n],ta(a)||(e[n]=a);return e}function h0(e){Ox(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Fx===!1&&(Fx=!0,Me.updateOffset(this),Fx=!1)}function xi(e){return e instanceof h0||e!=null&&e._isAMomentObject!=null}function zS(e){Me.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function Ha(e,t){var r=!0;return xo(function(){if(Me.deprecationHandler!=null&&Me.deprecationHandler(null,e),r){var n=[],a,i,s,o=arguments.length;for(i=0;i<o;i++){if(a="",typeof arguments[i]=="object"){a+=`
329
+ [`+i+"] ";for(s in arguments[0])Ht(arguments[0],s)&&(a+=s+": "+arguments[0][s]+", ");a=a.slice(0,-2)}else a=arguments[i];n.push(a)}zS(e+`
330
+ Arguments: `+Array.prototype.slice.call(n).join("")+`
331
+ `+new Error().stack),r=!1}return t.apply(this,arguments)},t)}var HS={};function WS(e,t){Me.deprecationHandler!=null&&Me.deprecationHandler(e,t),HS[e]||(zS(t),HS[e]=!0)}Me.suppressDeprecationWarnings=!1,Me.deprecationHandler=null;function qi(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function T$(e){var t,r;for(r in e)Ht(e,r)&&(t=e[r],qi(t)?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Px(e,t){var r=xo({},e),n;for(n in t)Ht(t,n)&&(Tu(e[n])&&Tu(t[n])?(r[n]={},xo(r[n],e[n]),xo(r[n],t[n])):t[n]!=null?r[n]=t[n]:delete r[n]);for(n in e)Ht(e,n)&&!Ht(t,n)&&Tu(e[n])&&(r[n]=xo({},r[n]));return r}function Dx(e){e!=null&&this.set(e)}var Rx;Object.keys?Rx=Object.keys:Rx=function(e){var t,r=[];for(t in e)Ht(e,t)&&r.push(t);return r};var A$={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function F$(e,t,r){var n=this._calendar[e]||this._calendar.sameElse;return qi(n)?n.call(t,r):n}function Gi(e,t,r){var n=""+Math.abs(e),a=t-n.length,i=e>=0;return(i?r?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+n}var Ix=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Wh=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Nx={},Il={};function at(e,t,r,n){var a=n;typeof n=="string"&&(a=function(){return this[n]()}),e&&(Il[e]=a),t&&(Il[t[0]]=function(){return Gi(a.apply(this,arguments),t[1],t[2])}),r&&(Il[r]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function O$(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function P$(e){var t=e.match(Ix),r,n;for(r=0,n=t.length;r<n;r++)Il[t[r]]?t[r]=Il[t[r]]:t[r]=O$(t[r]);return function(a){var i="",s;for(s=0;s<n;s++)i+=qi(t[s])?t[s].call(a,e):t[s];return i}}function Vh(e,t){return e.isValid()?(t=VS(t,e.localeData()),Nx[t]=Nx[t]||P$(t),Nx[t](e)):e.localeData().invalidDate()}function VS(e,t){var r=5;function n(a){return t.longDateFormat(a)||a}for(Wh.lastIndex=0;r>=0&&Wh.test(e);)e=e.replace(Wh,n),Wh.lastIndex=0,r-=1;return e}var D$={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function R$(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(Ix).map(function(n){return n==="MMMM"||n==="MM"||n==="DD"||n==="dddd"?n.slice(1):n}).join(""),this._longDateFormat[e])}var I$="Invalid date";function N$(){return this._invalidDate}var M$="%d",L$=/\d{1,2}/;function B$(e){return this._ordinal.replace("%d",e)}var j$={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function $$(e,t,r,n){var a=this._relativeTime[r];return qi(a)?a(e,t,r,n):a.replace(/%d/i,e)}function U$(e,t){var r=this._relativeTime[e>0?"future":"past"];return qi(r)?r(t):r.replace(/%s/i,t)}var qS={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Wa(e){return typeof e=="string"?qS[e]||qS[e.toLowerCase()]:void 0}function Mx(e){var t={},r,n;for(n in e)Ht(e,n)&&(r=Wa(n),r&&(t[r]=e[n]));return t}var z$={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function H$(e){var t=[],r;for(r in e)Ht(e,r)&&t.push({unit:r,priority:z$[r]});return t.sort(function(n,a){return n.priority-a.priority}),t}var GS=/\d/,xa=/\d\d/,YS=/\d{3}/,Lx=/\d{4}/,qh=/[+-]?\d{6}/,vr=/\d\d?/,XS=/\d\d\d\d?/,KS=/\d\d\d\d\d\d?/,Gh=/\d{1,3}/,Bx=/\d{1,4}/,Yh=/[+-]?\d{1,6}/,Nl=/\d+/,Xh=/[+-]?\d+/,W$=/Z|[+-]\d\d:?\d\d/gi,Kh=/Z|[+-]\d\d(?::?\d\d)?/gi,V$=/[+-]?\d+(\.\d{1,3})?/,p0=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Ml=/^[1-9]\d?/,jx=/^([1-9]\d|\d)/,Zh;Zh={};function Ge(e,t,r){Zh[e]=qi(t)?t:function(n,a){return n&&r?r:t}}function q$(e,t){return Ht(Zh,e)?Zh[e](t._strict,t._locale):new RegExp(G$(e))}function G$(e){return Ds(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,r,n,a,i){return r||n||a||i}))}function Ds(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Va(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function It(e){var t=+e,r=0;return t!==0&&isFinite(t)&&(r=Va(t)),r}var $x={};function ar(e,t){var r,n=t,a;for(typeof e=="string"&&(e=[e]),Ps(t)&&(n=function(i,s){s[t]=It(i)}),a=e.length,r=0;r<a;r++)$x[e[r]]=n}function m0(e,t){ar(e,function(r,n,a,i){a._w=a._w||{},t(r,a._w,a,i)})}function Y$(e,t,r){t!=null&&Ht($x,e)&&$x[e](t,r._a,r,e)}function Jh(e){return e%4===0&&e%100!==0||e%400===0}var kn=0,Rs=1,Yi=2,Xr=3,_i=4,Is=5,Au=6,X$=7,K$=8;at("Y",0,0,function(){var e=this.year();return e<=9999?Gi(e,4):"+"+e}),at(0,["YY",2],0,function(){return this.year()%100}),at(0,["YYYY",4],0,"year"),at(0,["YYYYY",5],0,"year"),at(0,["YYYYYY",6,!0],0,"year"),Ge("Y",Xh),Ge("YY",vr,xa),Ge("YYYY",Bx,Lx),Ge("YYYYY",Yh,qh),Ge("YYYYYY",Yh,qh),ar(["YYYYY","YYYYYY"],kn),ar("YYYY",function(e,t){t[kn]=e.length===2?Me.parseTwoDigitYear(e):It(e)}),ar("YY",function(e,t){t[kn]=Me.parseTwoDigitYear(e)}),ar("Y",function(e,t){t[kn]=parseInt(e,10)});function g0(e){return Jh(e)?366:365}Me.parseTwoDigitYear=function(e){return It(e)+(It(e)>68?1900:2e3)};var ZS=Ll("FullYear",!0);function Z$(){return Jh(this.year())}function Ll(e,t){return function(r){return r!=null?(JS(this,e,r),Me.updateOffset(this,t),this):v0(this,e)}}function v0(e,t){if(!e.isValid())return NaN;var r=e._d,n=e._isUTC;switch(t){case"Milliseconds":return n?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return n?r.getUTCSeconds():r.getSeconds();case"Minutes":return n?r.getUTCMinutes():r.getMinutes();case"Hours":return n?r.getUTCHours():r.getHours();case"Date":return n?r.getUTCDate():r.getDate();case"Day":return n?r.getUTCDay():r.getDay();case"Month":return n?r.getUTCMonth():r.getMonth();case"FullYear":return n?r.getUTCFullYear():r.getFullYear();default:return NaN}}function JS(e,t,r){var n,a,i,s,o;if(!(!e.isValid()||isNaN(r))){switch(n=e._d,a=e._isUTC,t){case"Milliseconds":return void(a?n.setUTCMilliseconds(r):n.setMilliseconds(r));case"Seconds":return void(a?n.setUTCSeconds(r):n.setSeconds(r));case"Minutes":return void(a?n.setUTCMinutes(r):n.setMinutes(r));case"Hours":return void(a?n.setUTCHours(r):n.setHours(r));case"Date":return void(a?n.setUTCDate(r):n.setDate(r));case"FullYear":break;default:return}i=r,s=e.month(),o=e.date(),o=o===29&&s===1&&!Jh(i)?28:o,a?n.setUTCFullYear(i,s,o):n.setFullYear(i,s,o)}}function J$(e){return e=Wa(e),qi(this[e])?this[e]():this}function Q$(e,t){if(typeof e=="object"){e=Mx(e);var r=H$(e),n,a=r.length;for(n=0;n<a;n++)this[r[n].unit](e[r[n].unit])}else if(e=Wa(e),qi(this[e]))return this[e](t);return this}function eU(e,t){return(e%t+t)%t}var jr;Array.prototype.indexOf?jr=Array.prototype.indexOf:jr=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function Ux(e,t){if(isNaN(e)||isNaN(t))return NaN;var r=eU(t,12);return e+=(t-r)/12,r===1?Jh(e)?29:28:31-r%7%2}at("M",["MM",2],"Mo",function(){return this.month()+1}),at("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),at("MMMM",0,0,function(e){return this.localeData().months(this,e)}),Ge("M",vr,Ml),Ge("MM",vr,xa),Ge("MMM",function(e,t){return t.monthsShortRegex(e)}),Ge("MMMM",function(e,t){return t.monthsRegex(e)}),ar(["M","MM"],function(e,t){t[Rs]=It(e)-1}),ar(["MMM","MMMM"],function(e,t,r,n){var a=r._locale.monthsParse(e,n,r._strict);a!=null?t[Rs]=a:Et(r).invalidMonth=e});var tU="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),QS="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),eE=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,rU=p0,nU=p0;function aU(e,t){return e?vi(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||eE).test(t)?"format":"standalone"][e.month()]:vi(this._months)?this._months:this._months.standalone}function iU(e,t){return e?vi(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[eE.test(t)?"format":"standalone"][e.month()]:vi(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function sU(e,t,r){var n,a,i,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)i=Vi([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(i,"").toLocaleLowerCase();return r?t==="MMM"?(a=jr.call(this._shortMonthsParse,s),a!==-1?a:null):(a=jr.call(this._longMonthsParse,s),a!==-1?a:null):t==="MMM"?(a=jr.call(this._shortMonthsParse,s),a!==-1?a:(a=jr.call(this._longMonthsParse,s),a!==-1?a:null)):(a=jr.call(this._longMonthsParse,s),a!==-1?a:(a=jr.call(this._shortMonthsParse,s),a!==-1?a:null))}function oU(e,t,r){var n,a,i;if(this._monthsParseExact)return sU.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(a=Vi([2e3,n]),r&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),!r&&!this._monthsParse[n]&&(i="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[n]=new RegExp(i.replace(".",""),"i")),r&&t==="MMMM"&&this._longMonthsParse[n].test(e))return n;if(r&&t==="MMM"&&this._shortMonthsParse[n].test(e))return n;if(!r&&this._monthsParse[n].test(e))return n}}function tE(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=It(t);else if(t=e.localeData().monthsParse(t),!Ps(t))return e}var r=t,n=e.date();return n=n<29?n:Math.min(n,Ux(e.year(),r)),e._isUTC?e._d.setUTCMonth(r,n):e._d.setMonth(r,n),e}function rE(e){return e!=null?(tE(this,e),Me.updateOffset(this,!0),this):v0(this,"Month")}function uU(){return Ux(this.year(),this.month())}function lU(e){return this._monthsParseExact?(Ht(this,"_monthsRegex")||nE.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(Ht(this,"_monthsShortRegex")||(this._monthsShortRegex=rU),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function cU(e){return this._monthsParseExact?(Ht(this,"_monthsRegex")||nE.call(this),e?this._monthsStrictRegex:this._monthsRegex):(Ht(this,"_monthsRegex")||(this._monthsRegex=nU),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function nE(){function e(u,l){return l.length-u.length}var t=[],r=[],n=[],a,i,s,o;for(a=0;a<12;a++)i=Vi([2e3,a]),s=Ds(this.monthsShort(i,"")),o=Ds(this.months(i,"")),t.push(s),r.push(o),n.push(o),n.push(s);t.sort(e),r.sort(e),n.sort(e),this._monthsRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function fU(e,t,r,n,a,i,s){var o;return e<100&&e>=0?(o=new Date(e+400,t,r,n,a,i,s),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,r,n,a,i,s),o}function x0(e){var t,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Qh(e,t,r){var n=7+t-r,a=(7+x0(e,0,n).getUTCDay()-t)%7;return-a+n-1}function aE(e,t,r,n,a){var i=(7+r-n)%7,s=Qh(e,n,a),o=1+7*(t-1)+i+s,u,l;return o<=0?(u=e-1,l=g0(u)+o):o>g0(e)?(u=e+1,l=o-g0(e)):(u=e,l=o),{year:u,dayOfYear:l}}function _0(e,t,r){var n=Qh(e.year(),t,r),a=Math.floor((e.dayOfYear()-n-1)/7)+1,i,s;return a<1?(s=e.year()-1,i=a+Ns(s,t,r)):a>Ns(e.year(),t,r)?(i=a-Ns(e.year(),t,r),s=e.year()+1):(s=e.year(),i=a),{week:i,year:s}}function Ns(e,t,r){var n=Qh(e,t,r),a=Qh(e+1,t,r);return(g0(e)-n+a)/7}at("w",["ww",2],"wo","week"),at("W",["WW",2],"Wo","isoWeek"),Ge("w",vr,Ml),Ge("ww",vr,xa),Ge("W",vr,Ml),Ge("WW",vr,xa),m0(["w","ww","W","WW"],function(e,t,r,n){t[n.substr(0,1)]=It(e)});function dU(e){return _0(e,this._week.dow,this._week.doy).week}var hU={dow:0,doy:6};function pU(){return this._week.dow}function mU(){return this._week.doy}function gU(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function vU(e){var t=_0(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}at("d",0,"do","day"),at("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),at("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),at("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),at("e",0,0,"weekday"),at("E",0,0,"isoWeekday"),Ge("d",vr),Ge("e",vr),Ge("E",vr),Ge("dd",function(e,t){return t.weekdaysMinRegex(e)}),Ge("ddd",function(e,t){return t.weekdaysShortRegex(e)}),Ge("dddd",function(e,t){return t.weekdaysRegex(e)}),m0(["dd","ddd","dddd"],function(e,t,r,n){var a=r._locale.weekdaysParse(e,n,r._strict);a!=null?t.d=a:Et(r).invalidWeekday=e}),m0(["d","e","E"],function(e,t,r,n){t[n]=It(e)});function xU(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function _U(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function zx(e,t){return e.slice(t,7).concat(e.slice(0,t))}var yU="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),iE="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),bU="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),wU=p0,SU=p0,EU=p0;function CU(e,t){var r=vi(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?zx(r,this._week.dow):e?r[e.day()]:r}function kU(e){return e===!0?zx(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function TU(e){return e===!0?zx(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function AU(e,t,r){var n,a,i,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)i=Vi([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(i,"").toLocaleLowerCase();return r?t==="dddd"?(a=jr.call(this._weekdaysParse,s),a!==-1?a:null):t==="ddd"?(a=jr.call(this._shortWeekdaysParse,s),a!==-1?a:null):(a=jr.call(this._minWeekdaysParse,s),a!==-1?a:null):t==="dddd"?(a=jr.call(this._weekdaysParse,s),a!==-1||(a=jr.call(this._shortWeekdaysParse,s),a!==-1)?a:(a=jr.call(this._minWeekdaysParse,s),a!==-1?a:null)):t==="ddd"?(a=jr.call(this._shortWeekdaysParse,s),a!==-1||(a=jr.call(this._weekdaysParse,s),a!==-1)?a:(a=jr.call(this._minWeekdaysParse,s),a!==-1?a:null)):(a=jr.call(this._minWeekdaysParse,s),a!==-1||(a=jr.call(this._weekdaysParse,s),a!==-1)?a:(a=jr.call(this._shortWeekdaysParse,s),a!==-1?a:null))}function FU(e,t,r){var n,a,i;if(this._weekdaysParseExact)return AU.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(a=Vi([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(i="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[n]=new RegExp(i.replace(".",""),"i")),r&&t==="dddd"&&this._fullWeekdaysParse[n].test(e))return n;if(r&&t==="ddd"&&this._shortWeekdaysParse[n].test(e))return n;if(r&&t==="dd"&&this._minWeekdaysParse[n].test(e))return n;if(!r&&this._weekdaysParse[n].test(e))return n}}function OU(e){if(!this.isValid())return e!=null?this:NaN;var t=v0(this,"Day");return e!=null?(e=xU(e,this.localeData()),this.add(e-t,"d")):t}function PU(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function DU(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=_U(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function RU(e){return this._weekdaysParseExact?(Ht(this,"_weekdaysRegex")||Hx.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(Ht(this,"_weekdaysRegex")||(this._weekdaysRegex=wU),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function IU(e){return this._weekdaysParseExact?(Ht(this,"_weekdaysRegex")||Hx.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Ht(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=SU),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function NU(e){return this._weekdaysParseExact?(Ht(this,"_weekdaysRegex")||Hx.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Ht(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=EU),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Hx(){function e(f,d){return d.length-f.length}var t=[],r=[],n=[],a=[],i,s,o,u,l;for(i=0;i<7;i++)s=Vi([2e3,1]).day(i),o=Ds(this.weekdaysMin(s,"")),u=Ds(this.weekdaysShort(s,"")),l=Ds(this.weekdays(s,"")),t.push(o),r.push(u),n.push(l),a.push(o),a.push(u),a.push(l);t.sort(e),r.sort(e),n.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Wx(){return this.hours()%12||12}function MU(){return this.hours()||24}at("H",["HH",2],0,"hour"),at("h",["hh",2],0,Wx),at("k",["kk",2],0,MU),at("hmm",0,0,function(){return""+Wx.apply(this)+Gi(this.minutes(),2)}),at("hmmss",0,0,function(){return""+Wx.apply(this)+Gi(this.minutes(),2)+Gi(this.seconds(),2)}),at("Hmm",0,0,function(){return""+this.hours()+Gi(this.minutes(),2)}),at("Hmmss",0,0,function(){return""+this.hours()+Gi(this.minutes(),2)+Gi(this.seconds(),2)});function sE(e,t){at(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}sE("a",!0),sE("A",!1);function oE(e,t){return t._meridiemParse}Ge("a",oE),Ge("A",oE),Ge("H",vr,jx),Ge("h",vr,Ml),Ge("k",vr,Ml),Ge("HH",vr,xa),Ge("hh",vr,xa),Ge("kk",vr,xa),Ge("hmm",XS),Ge("hmmss",KS),Ge("Hmm",XS),Ge("Hmmss",KS),ar(["H","HH"],Xr),ar(["k","kk"],function(e,t,r){var n=It(e);t[Xr]=n===24?0:n}),ar(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e}),ar(["h","hh"],function(e,t,r){t[Xr]=It(e),Et(r).bigHour=!0}),ar("hmm",function(e,t,r){var n=e.length-2;t[Xr]=It(e.substr(0,n)),t[_i]=It(e.substr(n)),Et(r).bigHour=!0}),ar("hmmss",function(e,t,r){var n=e.length-4,a=e.length-2;t[Xr]=It(e.substr(0,n)),t[_i]=It(e.substr(n,2)),t[Is]=It(e.substr(a)),Et(r).bigHour=!0}),ar("Hmm",function(e,t,r){var n=e.length-2;t[Xr]=It(e.substr(0,n)),t[_i]=It(e.substr(n))}),ar("Hmmss",function(e,t,r){var n=e.length-4,a=e.length-2;t[Xr]=It(e.substr(0,n)),t[_i]=It(e.substr(n,2)),t[Is]=It(e.substr(a))});function LU(e){return(e+"").toLowerCase().charAt(0)==="p"}var BU=/[ap]\.?m?\.?/i,jU=Ll("Hours",!0);function $U(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var uE={calendar:A$,longDateFormat:D$,invalidDate:I$,ordinal:M$,dayOfMonthOrdinalParse:L$,relativeTime:j$,months:tU,monthsShort:QS,week:hU,weekdays:yU,weekdaysMin:bU,weekdaysShort:iE,meridiemParse:BU},Er={},y0={},b0;function UU(e,t){var r,n=Math.min(e.length,t.length);for(r=0;r<n;r+=1)if(e[r]!==t[r])return r;return n}function lE(e){return e&&e.toLowerCase().replace("_","-")}function zU(e){for(var t=0,r,n,a,i;t<e.length;){for(i=lE(e[t]).split("-"),r=i.length,n=lE(e[t+1]),n=n?n.split("-"):null;r>0;){if(a=e1(i.slice(0,r).join("-")),a)return a;if(n&&n.length>=r&&UU(i,n)>=r-1)break;r--}t++}return b0}function HU(e){return!!(e&&e.match("^[^/\\\\]*$"))}function e1(e){var t=null,r;if(Er[e]===void 0&&typeof module<"u"&&module&&module.exports&&HU(e))try{t=b0._abbr,r=require,r("./locale/"+e),_o(t)}catch{Er[e]=null}return Er[e]}function _o(e,t){var r;return e&&(ta(t)?r=Ms(e):r=Vx(e,t),r?b0=r:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),b0._abbr}function Vx(e,t){if(t!==null){var r,n=uE;if(t.abbr=e,Er[e]!=null)WS("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=Er[e]._config;else if(t.parentLocale!=null)if(Er[t.parentLocale]!=null)n=Er[t.parentLocale]._config;else if(r=e1(t.parentLocale),r!=null)n=r._config;else return y0[t.parentLocale]||(y0[t.parentLocale]=[]),y0[t.parentLocale].push({name:e,config:t}),null;return Er[e]=new Dx(Px(n,t)),y0[e]&&y0[e].forEach(function(a){Vx(a.name,a.config)}),_o(e),Er[e]}else return delete Er[e],null}function WU(e,t){if(t!=null){var r,n,a=uE;Er[e]!=null&&Er[e].parentLocale!=null?Er[e].set(Px(Er[e]._config,t)):(n=e1(e),n!=null&&(a=n._config),t=Px(a,t),n==null&&(t.abbr=e),r=new Dx(t),r.parentLocale=Er[e],Er[e]=r),_o(e)}else Er[e]!=null&&(Er[e].parentLocale!=null?(Er[e]=Er[e].parentLocale,e===_o()&&_o(e)):Er[e]!=null&&delete Er[e]);return Er[e]}function Ms(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return b0;if(!vi(e)){if(t=e1(e),t)return t;e=[e]}return zU(e)}function VU(){return Rx(Er)}function qx(e){var t,r=e._a;return r&&Et(e).overflow===-2&&(t=r[Rs]<0||r[Rs]>11?Rs:r[Yi]<1||r[Yi]>Ux(r[kn],r[Rs])?Yi:r[Xr]<0||r[Xr]>24||r[Xr]===24&&(r[_i]!==0||r[Is]!==0||r[Au]!==0)?Xr:r[_i]<0||r[_i]>59?_i:r[Is]<0||r[Is]>59?Is:r[Au]<0||r[Au]>999?Au:-1,Et(e)._overflowDayOfYear&&(t<kn||t>Yi)&&(t=Yi),Et(e)._overflowWeeks&&t===-1&&(t=X$),Et(e)._overflowWeekday&&t===-1&&(t=K$),Et(e).overflow=t),e}var qU=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,GU=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,YU=/Z|[+-]\d\d(?::?\d\d)?/,t1=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Gx=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],XU=/^\/?Date\((-?\d+)/i,KU=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,ZU={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function cE(e){var t,r,n=e._i,a=qU.exec(n)||GU.exec(n),i,s,o,u,l=t1.length,f=Gx.length;if(a){for(Et(e).iso=!0,t=0,r=l;t<r;t++)if(t1[t][1].exec(a[1])){s=t1[t][0],i=t1[t][2]!==!1;break}if(s==null){e._isValid=!1;return}if(a[3]){for(t=0,r=f;t<r;t++)if(Gx[t][1].exec(a[3])){o=(a[2]||" ")+Gx[t][0];break}if(o==null){e._isValid=!1;return}}if(!i&&o!=null){e._isValid=!1;return}if(a[4])if(YU.exec(a[4]))u="Z";else{e._isValid=!1;return}e._f=s+(o||"")+(u||""),Xx(e)}else e._isValid=!1}function JU(e,t,r,n,a,i){var s=[QU(e),QS.indexOf(t),parseInt(r,10),parseInt(n,10),parseInt(a,10)];return i&&s.push(parseInt(i,10)),s}function QU(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function ez(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function tz(e,t,r){if(e){var n=iE.indexOf(e),a=new Date(t[0],t[1],t[2]).getDay();if(n!==a)return Et(r).weekdayMismatch=!0,r._isValid=!1,!1}return!0}function rz(e,t,r){if(e)return ZU[e];if(t)return 0;var n=parseInt(r,10),a=n%100,i=(n-a)/100;return i*60+a}function fE(e){var t=KU.exec(ez(e._i)),r;if(t){if(r=JU(t[4],t[3],t[2],t[5],t[6],t[7]),!tz(t[1],r,e))return;e._a=r,e._tzm=rz(t[8],t[9],t[10]),e._d=x0.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),Et(e).rfc2822=!0}else e._isValid=!1}function nz(e){var t=XU.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(cE(e),e._isValid===!1)delete e._isValid;else return;if(fE(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:Me.createFromInputFallback(e)}Me.createFromInputFallback=Ha("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function Bl(e,t,r){return e??t??r}function az(e){var t=new Date(Me.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Yx(e){var t,r,n=[],a,i,s;if(!e._d){for(a=az(e),e._w&&e._a[Yi]==null&&e._a[Rs]==null&&iz(e),e._dayOfYear!=null&&(s=Bl(e._a[kn],a[kn]),(e._dayOfYear>g0(s)||e._dayOfYear===0)&&(Et(e)._overflowDayOfYear=!0),r=x0(s,0,e._dayOfYear),e._a[Rs]=r.getUTCMonth(),e._a[Yi]=r.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=n[t]=a[t];for(;t<7;t++)e._a[t]=n[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[Xr]===24&&e._a[_i]===0&&e._a[Is]===0&&e._a[Au]===0&&(e._nextDay=!0,e._a[Xr]=0),e._d=(e._useUTC?x0:fU).apply(null,n),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Xr]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==i&&(Et(e).weekdayMismatch=!0)}}function iz(e){var t,r,n,a,i,s,o,u,l;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(i=1,s=4,r=Bl(t.GG,e._a[kn],_0(xr(),1,4).year),n=Bl(t.W,1),a=Bl(t.E,1),(a<1||a>7)&&(u=!0)):(i=e._locale._week.dow,s=e._locale._week.doy,l=_0(xr(),i,s),r=Bl(t.gg,e._a[kn],l.year),n=Bl(t.w,l.week),t.d!=null?(a=t.d,(a<0||a>6)&&(u=!0)):t.e!=null?(a=t.e+i,(t.e<0||t.e>6)&&(u=!0)):a=i),n<1||n>Ns(r,i,s)?Et(e)._overflowWeeks=!0:u!=null?Et(e)._overflowWeekday=!0:(o=aE(r,n,a,i,s),e._a[kn]=o.year,e._dayOfYear=o.dayOfYear)}Me.ISO_8601=function(){},Me.RFC_2822=function(){};function Xx(e){if(e._f===Me.ISO_8601){cE(e);return}if(e._f===Me.RFC_2822){fE(e);return}e._a=[],Et(e).empty=!0;var t=""+e._i,r,n,a,i,s,o=t.length,u=0,l,f;for(a=VS(e._f,e._locale).match(Ix)||[],f=a.length,r=0;r<f;r++)i=a[r],n=(t.match(q$(i,e))||[])[0],n&&(s=t.substr(0,t.indexOf(n)),s.length>0&&Et(e).unusedInput.push(s),t=t.slice(t.indexOf(n)+n.length),u+=n.length),Il[i]?(n?Et(e).empty=!1:Et(e).unusedTokens.push(i),Y$(i,n,e)):e._strict&&!n&&Et(e).unusedTokens.push(i);Et(e).charsLeftOver=o-u,t.length>0&&Et(e).unusedInput.push(t),e._a[Xr]<=12&&Et(e).bigHour===!0&&e._a[Xr]>0&&(Et(e).bigHour=void 0),Et(e).parsedDateParts=e._a.slice(0),Et(e).meridiem=e._meridiem,e._a[Xr]=sz(e._locale,e._a[Xr],e._meridiem),l=Et(e).era,l!==null&&(e._a[kn]=e._locale.erasConvertYear(l,e._a[kn])),Yx(e),qx(e)}function sz(e,t,r){var n;return r==null?t:e.meridiemHour!=null?e.meridiemHour(t,r):(e.isPM!=null&&(n=e.isPM(r),n&&t<12&&(t+=12),!n&&t===12&&(t=0)),t)}function oz(e){var t,r,n,a,i,s,o=!1,u=e._f.length;if(u===0){Et(e).invalidFormat=!0,e._d=new Date(NaN);return}for(a=0;a<u;a++)i=0,s=!1,t=Ox({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[a],Xx(t),Ax(t)&&(s=!0),i+=Et(t).charsLeftOver,i+=Et(t).unusedTokens.length*10,Et(t).score=i,o?i<n&&(n=i,r=t):(n==null||i<n||s)&&(n=i,r=t,s&&(o=!0));xo(e,r||t)}function uz(e){if(!e._d){var t=Mx(e._i),r=t.day===void 0?t.date:t.day;e._a=$S([t.year,t.month,r,t.hour,t.minute,t.second,t.millisecond],function(n){return n&&parseInt(n,10)}),Yx(e)}}function lz(e){var t=new h0(qx(dE(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function dE(e){var t=e._i,r=e._f;return e._locale=e._locale||Ms(e._l),t===null||r===void 0&&t===""?Hh({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),xi(t)?new h0(qx(t)):(d0(t)?e._d=t:vi(r)?oz(e):r?Xx(e):cz(e),Ax(e)||(e._d=null),e))}function cz(e){var t=e._i;ta(t)?e._d=new Date(Me.now()):d0(t)?e._d=new Date(t.valueOf()):typeof t=="string"?nz(e):vi(t)?(e._a=$S(t.slice(0),function(r){return parseInt(r,10)}),Yx(e)):Tu(t)?uz(e):Ps(t)?e._d=new Date(t):Me.createFromInputFallback(e)}function hE(e,t,r,n,a){var i={};return(t===!0||t===!1)&&(n=t,t=void 0),(r===!0||r===!1)&&(n=r,r=void 0),(Tu(e)&&kx(e)||vi(e)&&e.length===0)&&(e=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=a,i._l=r,i._i=e,i._f=t,i._strict=n,lz(i)}function xr(e,t,r,n){return hE(e,t,r,n,!1)}var fz=Ha("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=xr.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Hh()}),dz=Ha("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=xr.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Hh()});function pE(e,t){var r,n;if(t.length===1&&vi(t[0])&&(t=t[0]),!t.length)return xr();for(r=t[0],n=1;n<t.length;++n)(!t[n].isValid()||t[n][e](r))&&(r=t[n]);return r}function hz(){var e=[].slice.call(arguments,0);return pE("isBefore",e)}function pz(){var e=[].slice.call(arguments,0);return pE("isAfter",e)}var mz=function(){return Date.now?Date.now():+new Date},w0=["year","quarter","month","week","day","hour","minute","second","millisecond"];function gz(e){var t,r=!1,n,a=w0.length;for(t in e)if(Ht(e,t)&&!(jr.call(w0,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(n=0;n<a;++n)if(e[w0[n]]){if(r)return!1;parseFloat(e[w0[n]])!==It(e[w0[n]])&&(r=!0)}return!0}function vz(){return this._isValid}function xz(){return yi(NaN)}function r1(e){var t=Mx(e),r=t.year||0,n=t.quarter||0,a=t.month||0,i=t.week||t.isoWeek||0,s=t.day||0,o=t.hour||0,u=t.minute||0,l=t.second||0,f=t.millisecond||0;this._isValid=gz(t),this._milliseconds=+f+l*1e3+u*6e4+o*1e3*60*60,this._days=+s+i*7,this._months=+a+n*3+r*12,this._data={},this._locale=Ms(),this._bubble()}function n1(e){return e instanceof r1}function Kx(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function _z(e,t,r){var n=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),i=0,s;for(s=0;s<n;s++)It(e[s])!==It(t[s])&&i++;return i+a}function mE(e,t){at(e,0,0,function(){var r=this.utcOffset(),n="+";return r<0&&(r=-r,n="-"),n+Gi(~~(r/60),2)+t+Gi(~~r%60,2)})}mE("Z",":"),mE("ZZ",""),Ge("Z",Kh),Ge("ZZ",Kh),ar(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=Zx(Kh,e)});var yz=/([\+\-]|\d\d)/gi;function Zx(e,t){var r=(t||"").match(e),n,a,i;return r===null?null:(n=r[r.length-1]||[],a=(n+"").match(yz)||["-",0,0],i=+(a[1]*60)+It(a[2]),i===0?0:a[0]==="+"?i:-i)}function Jx(e,t){var r,n;return t._isUTC?(r=t.clone(),n=(xi(e)||d0(e)?e.valueOf():xr(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+n),Me.updateOffset(r,!1),r):xr(e).local()}function Qx(e){return-Math.round(e._d.getTimezoneOffset())}Me.updateOffset=function(){};function bz(e,t,r){var n=this._offset||0,a;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=Zx(Kh,e),e===null)return this}else Math.abs(e)<16&&!r&&(e=e*60);return!this._isUTC&&t&&(a=Qx(this)),this._offset=e,this._isUTC=!0,a!=null&&this.add(a,"m"),n!==e&&(!t||this._changeInProgress?_E(this,yi(e-n,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,Me.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?n:Qx(this)}function wz(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Sz(e){return this.utcOffset(0,e)}function Ez(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Qx(this),"m")),this}function Cz(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=Zx(W$,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function kz(e){return this.isValid()?(e=e?xr(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function Tz(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Az(){if(!ta(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Ox(e,this),e=dE(e),e._a?(t=e._isUTC?Vi(e._a):xr(e._a),this._isDSTShifted=this.isValid()&&_z(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Fz(){return this.isValid()?!this._isUTC:!1}function Oz(){return this.isValid()?this._isUTC:!1}function gE(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Pz=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Dz=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function yi(e,t){var r=e,n=null,a,i,s;return n1(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:Ps(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(n=Pz.exec(e))?(a=n[1]==="-"?-1:1,r={y:0,d:It(n[Yi])*a,h:It(n[Xr])*a,m:It(n[_i])*a,s:It(n[Is])*a,ms:It(Kx(n[Au]*1e3))*a}):(n=Dz.exec(e))?(a=n[1]==="-"?-1:1,r={y:Fu(n[2],a),M:Fu(n[3],a),w:Fu(n[4],a),d:Fu(n[5],a),h:Fu(n[6],a),m:Fu(n[7],a),s:Fu(n[8],a)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(s=Rz(xr(r.from),xr(r.to)),r={},r.ms=s.milliseconds,r.M=s.months),i=new r1(r),n1(e)&&Ht(e,"_locale")&&(i._locale=e._locale),n1(e)&&Ht(e,"_isValid")&&(i._isValid=e._isValid),i}yi.fn=r1.prototype,yi.invalid=xz;function Fu(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function vE(e,t){var r={};return r.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function Rz(e,t){var r;return e.isValid()&&t.isValid()?(t=Jx(t,e),e.isBefore(t)?r=vE(e,t):(r=vE(t,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function xE(e,t){return function(r,n){var a,i;return n!==null&&!isNaN(+n)&&(WS(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=r,r=n,n=i),a=yi(r,n),_E(this,a,e),this}}function _E(e,t,r,n){var a=t._milliseconds,i=Kx(t._days),s=Kx(t._months);e.isValid()&&(n=n??!0,s&&tE(e,v0(e,"Month")+s*r),i&&JS(e,"Date",v0(e,"Date")+i*r),a&&e._d.setTime(e._d.valueOf()+a*r),n&&Me.updateOffset(e,i||s))}var Iz=xE(1,"add"),Nz=xE(-1,"subtract");function yE(e){return typeof e=="string"||e instanceof String}function Mz(e){return xi(e)||d0(e)||yE(e)||Ps(e)||Bz(e)||Lz(e)||e===null||e===void 0}function Lz(e){var t=Tu(e)&&!kx(e),r=!1,n=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,i,s=n.length;for(a=0;a<s;a+=1)i=n[a],r=r||Ht(e,i);return t&&r}function Bz(e){var t=vi(e),r=!1;return t&&(r=e.filter(function(n){return!Ps(n)&&yE(e)}).length===0),t&&r}function jz(e){var t=Tu(e)&&!kx(e),r=!1,n=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],a,i;for(a=0;a<n.length;a+=1)i=n[a],r=r||Ht(e,i);return t&&r}function $z(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"}function Uz(e,t){arguments.length===1&&(arguments[0]?Mz(arguments[0])?(e=arguments[0],t=void 0):jz(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var r=e||xr(),n=Jx(r,this).startOf("day"),a=Me.calendarFormat(this,n)||"sameElse",i=t&&(qi(t[a])?t[a].call(this,r):t[a]);return this.format(i||this.localeData().calendar(a,this,xr(r)))}function zz(){return new h0(this)}function Hz(e,t){var r=xi(e)?e:xr(e);return this.isValid()&&r.isValid()?(t=Wa(t)||"millisecond",t==="millisecond"?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf()):!1}function Wz(e,t){var r=xi(e)?e:xr(e);return this.isValid()&&r.isValid()?(t=Wa(t)||"millisecond",t==="millisecond"?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf()):!1}function Vz(e,t,r,n){var a=xi(e)?e:xr(e),i=xi(t)?t:xr(t);return this.isValid()&&a.isValid()&&i.isValid()?(n=n||"()",(n[0]==="("?this.isAfter(a,r):!this.isBefore(a,r))&&(n[1]===")"?this.isBefore(i,r):!this.isAfter(i,r))):!1}function qz(e,t){var r=xi(e)?e:xr(e),n;return this.isValid()&&r.isValid()?(t=Wa(t)||"millisecond",t==="millisecond"?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf())):!1}function Gz(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Yz(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Xz(e,t,r){var n,a,i;if(!this.isValid())return NaN;if(n=Jx(e,this),!n.isValid())return NaN;switch(a=(n.utcOffset()-this.utcOffset())*6e4,t=Wa(t),t){case"year":i=a1(this,n)/12;break;case"month":i=a1(this,n);break;case"quarter":i=a1(this,n)/3;break;case"second":i=(this-n)/1e3;break;case"minute":i=(this-n)/6e4;break;case"hour":i=(this-n)/36e5;break;case"day":i=(this-n-a)/864e5;break;case"week":i=(this-n-a)/6048e5;break;default:i=this-n}return r?i:Va(i)}function a1(e,t){if(e.date()<t.date())return-a1(t,e);var r=(t.year()-e.year())*12+(t.month()-e.month()),n=e.clone().add(r,"months"),a,i;return t-n<0?(a=e.clone().add(r-1,"months"),i=(t-n)/(n-a)):(a=e.clone().add(r+1,"months"),i=(t-n)/(a-n)),-(r+i)||0}Me.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",Me.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Kz(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Zz(e){if(!this.isValid())return null;var t=e!==!0,r=t?this.clone().utc():this;return r.year()<0||r.year()>9999?Vh(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):qi(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Vh(r,"Z")):Vh(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Jz(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",r,n,a,i;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),r="["+e+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",i=t+'[")]',this.format(r+n+a+i)}function Qz(e){e||(e=this.isUtc()?Me.defaultFormatUtc:Me.defaultFormat);var t=Vh(this,e);return this.localeData().postformat(t)}function eH(e,t){return this.isValid()&&(xi(e)&&e.isValid()||xr(e).isValid())?yi({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function tH(e){return this.from(xr(),e)}function rH(e,t){return this.isValid()&&(xi(e)&&e.isValid()||xr(e).isValid())?yi({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function nH(e){return this.to(xr(),e)}function bE(e){var t;return e===void 0?this._locale._abbr:(t=Ms(e),t!=null&&(this._locale=t),this)}var wE=Ha("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function SE(){return this._locale}var i1=1e3,jl=60*i1,s1=60*jl,EE=(365*400+97)*24*s1;function $l(e,t){return(e%t+t)%t}function CE(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-EE:new Date(e,t,r).valueOf()}function kE(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-EE:Date.UTC(e,t,r)}function aH(e){var t,r;if(e=Wa(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?kE:CE,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=$l(t+(this._isUTC?0:this.utcOffset()*jl),s1);break;case"minute":t=this._d.valueOf(),t-=$l(t,jl);break;case"second":t=this._d.valueOf(),t-=$l(t,i1);break}return this._d.setTime(t),Me.updateOffset(this,!0),this}function iH(e){var t,r;if(e=Wa(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?kE:CE,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=s1-$l(t+(this._isUTC?0:this.utcOffset()*jl),s1)-1;break;case"minute":t=this._d.valueOf(),t+=jl-$l(t,jl)-1;break;case"second":t=this._d.valueOf(),t+=i1-$l(t,i1)-1;break}return this._d.setTime(t),Me.updateOffset(this,!0),this}function sH(){return this._d.valueOf()-(this._offset||0)*6e4}function oH(){return Math.floor(this.valueOf()/1e3)}function uH(){return new Date(this.valueOf())}function lH(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function cH(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function fH(){return this.isValid()?this.toISOString():null}function dH(){return Ax(this)}function hH(){return xo({},Et(this))}function pH(){return Et(this).overflow}function mH(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}at("N",0,0,"eraAbbr"),at("NN",0,0,"eraAbbr"),at("NNN",0,0,"eraAbbr"),at("NNNN",0,0,"eraName"),at("NNNNN",0,0,"eraNarrow"),at("y",["y",1],"yo","eraYear"),at("y",["yy",2],0,"eraYear"),at("y",["yyy",3],0,"eraYear"),at("y",["yyyy",4],0,"eraYear"),Ge("N",e2),Ge("NN",e2),Ge("NNN",e2),Ge("NNNN",kH),Ge("NNNNN",TH),ar(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,n){var a=r._locale.erasParse(e,n,r._strict);a?Et(r).era=a:Et(r).invalidEra=e}),Ge("y",Nl),Ge("yy",Nl),Ge("yyy",Nl),Ge("yyyy",Nl),Ge("yo",AH),ar(["y","yy","yyy","yyyy"],kn),ar(["yo"],function(e,t,r,n){var a;r._locale._eraYearOrdinalRegex&&(a=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[kn]=r._locale.eraYearOrdinalParse(e,a):t[kn]=parseInt(e,10)});function gH(e,t){var r,n,a,i=this._eras||Ms("en")._eras;for(r=0,n=i.length;r<n;++r){switch(typeof i[r].since){case"string":a=Me(i[r].since).startOf("day"),i[r].since=a.valueOf();break}switch(typeof i[r].until){case"undefined":i[r].until=1/0;break;case"string":a=Me(i[r].until).startOf("day").valueOf(),i[r].until=a.valueOf();break}}return i}function vH(e,t,r){var n,a,i=this.eras(),s,o,u;for(e=e.toUpperCase(),n=0,a=i.length;n<a;++n)if(s=i[n].name.toUpperCase(),o=i[n].abbr.toUpperCase(),u=i[n].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(o===e)return i[n];break;case"NNNN":if(s===e)return i[n];break;case"NNNNN":if(u===e)return i[n];break}else if([s,o,u].indexOf(e)>=0)return i[n]}function xH(e,t){var r=e.since<=e.until?1:-1;return t===void 0?Me(e.since).year():Me(e.since).year()+(t-e.offset)*r}function _H(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].name;return""}function yH(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].narrow;return""}function bH(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].abbr;return""}function wH(){var e,t,r,n,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(r=a[e].since<=a[e].until?1:-1,n=this.clone().startOf("day").valueOf(),a[e].since<=n&&n<=a[e].until||a[e].until<=n&&n<=a[e].since)return(this.year()-Me(a[e].since).year())*r+a[e].offset;return this.year()}function SH(e){return Ht(this,"_erasNameRegex")||t2.call(this),e?this._erasNameRegex:this._erasRegex}function EH(e){return Ht(this,"_erasAbbrRegex")||t2.call(this),e?this._erasAbbrRegex:this._erasRegex}function CH(e){return Ht(this,"_erasNarrowRegex")||t2.call(this),e?this._erasNarrowRegex:this._erasRegex}function e2(e,t){return t.erasAbbrRegex(e)}function kH(e,t){return t.erasNameRegex(e)}function TH(e,t){return t.erasNarrowRegex(e)}function AH(e,t){return t._eraYearOrdinalRegex||Nl}function t2(){var e=[],t=[],r=[],n=[],a,i,s,o,u,l=this.eras();for(a=0,i=l.length;a<i;++a)s=Ds(l[a].name),o=Ds(l[a].abbr),u=Ds(l[a].narrow),t.push(s),e.push(o),r.push(u),n.push(s),n.push(o),n.push(u);this._erasRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}at(0,["gg",2],0,function(){return this.weekYear()%100}),at(0,["GG",2],0,function(){return this.isoWeekYear()%100});function o1(e,t){at(0,[e,e.length],0,t)}o1("gggg","weekYear"),o1("ggggg","weekYear"),o1("GGGG","isoWeekYear"),o1("GGGGG","isoWeekYear"),Ge("G",Xh),Ge("g",Xh),Ge("GG",vr,xa),Ge("gg",vr,xa),Ge("GGGG",Bx,Lx),Ge("gggg",Bx,Lx),Ge("GGGGG",Yh,qh),Ge("ggggg",Yh,qh),m0(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,n){t[n.substr(0,2)]=It(e)}),m0(["gg","GG"],function(e,t,r,n){t[n]=Me.parseTwoDigitYear(e)});function FH(e){return TE.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function OH(e){return TE.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function PH(){return Ns(this.year(),1,4)}function DH(){return Ns(this.isoWeekYear(),1,4)}function RH(){var e=this.localeData()._week;return Ns(this.year(),e.dow,e.doy)}function IH(){var e=this.localeData()._week;return Ns(this.weekYear(),e.dow,e.doy)}function TE(e,t,r,n,a){var i;return e==null?_0(this,n,a).year:(i=Ns(e,n,a),t>i&&(t=i),NH.call(this,e,t,r,n,a))}function NH(e,t,r,n,a){var i=aE(e,t,r,n,a),s=x0(i.year,0,i.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}at("Q",0,"Qo","quarter"),Ge("Q",GS),ar("Q",function(e,t){t[Rs]=(It(e)-1)*3});function MH(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}at("D",["DD",2],"Do","date"),Ge("D",vr,Ml),Ge("DD",vr,xa),Ge("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),ar(["D","DD"],Yi),ar("Do",function(e,t){t[Yi]=It(e.match(vr)[0])});var AE=Ll("Date",!0);at("DDD",["DDDD",3],"DDDo","dayOfYear"),Ge("DDD",Gh),Ge("DDDD",YS),ar(["DDD","DDDD"],function(e,t,r){r._dayOfYear=It(e)});function LH(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}at("m",["mm",2],0,"minute"),Ge("m",vr,jx),Ge("mm",vr,xa),ar(["m","mm"],_i);var BH=Ll("Minutes",!1);at("s",["ss",2],0,"second"),Ge("s",vr,jx),Ge("ss",vr,xa),ar(["s","ss"],Is);var jH=Ll("Seconds",!1);at("S",0,0,function(){return~~(this.millisecond()/100)}),at(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),at(0,["SSS",3],0,"millisecond"),at(0,["SSSS",4],0,function(){return this.millisecond()*10}),at(0,["SSSSS",5],0,function(){return this.millisecond()*100}),at(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),at(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),at(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),at(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),Ge("S",Gh,GS),Ge("SS",Gh,xa),Ge("SSS",Gh,YS);var yo,FE;for(yo="SSSS";yo.length<=9;yo+="S")Ge(yo,Nl);function $H(e,t){t[Au]=It(("0."+e)*1e3)}for(yo="S";yo.length<=9;yo+="S")ar(yo,$H);FE=Ll("Milliseconds",!1),at("z",0,0,"zoneAbbr"),at("zz",0,0,"zoneName");function UH(){return this._isUTC?"UTC":""}function zH(){return this._isUTC?"Coordinated Universal Time":""}var Le=h0.prototype;Le.add=Iz,Le.calendar=Uz,Le.clone=zz,Le.diff=Xz,Le.endOf=iH,Le.format=Qz,Le.from=eH,Le.fromNow=tH,Le.to=rH,Le.toNow=nH,Le.get=J$,Le.invalidAt=pH,Le.isAfter=Hz,Le.isBefore=Wz,Le.isBetween=Vz,Le.isSame=qz,Le.isSameOrAfter=Gz,Le.isSameOrBefore=Yz,Le.isValid=dH,Le.lang=wE,Le.locale=bE,Le.localeData=SE,Le.max=dz,Le.min=fz,Le.parsingFlags=hH,Le.set=Q$,Le.startOf=aH,Le.subtract=Nz,Le.toArray=lH,Le.toObject=cH,Le.toDate=uH,Le.toISOString=Zz,Le.inspect=Jz,typeof Symbol<"u"&&Symbol.for!=null&&(Le[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Le.toJSON=fH,Le.toString=Kz,Le.unix=oH,Le.valueOf=sH,Le.creationData=mH,Le.eraName=_H,Le.eraNarrow=yH,Le.eraAbbr=bH,Le.eraYear=wH,Le.year=ZS,Le.isLeapYear=Z$,Le.weekYear=FH,Le.isoWeekYear=OH,Le.quarter=Le.quarters=MH,Le.month=rE,Le.daysInMonth=uU,Le.week=Le.weeks=gU,Le.isoWeek=Le.isoWeeks=vU,Le.weeksInYear=RH,Le.weeksInWeekYear=IH,Le.isoWeeksInYear=PH,Le.isoWeeksInISOWeekYear=DH,Le.date=AE,Le.day=Le.days=OU,Le.weekday=PU,Le.isoWeekday=DU,Le.dayOfYear=LH,Le.hour=Le.hours=jU,Le.minute=Le.minutes=BH,Le.second=Le.seconds=jH,Le.millisecond=Le.milliseconds=FE,Le.utcOffset=bz,Le.utc=Sz,Le.local=Ez,Le.parseZone=Cz,Le.hasAlignedHourOffset=kz,Le.isDST=Tz,Le.isLocal=Fz,Le.isUtcOffset=Oz,Le.isUtc=gE,Le.isUTC=gE,Le.zoneAbbr=UH,Le.zoneName=zH,Le.dates=Ha("dates accessor is deprecated. Use date instead.",AE),Le.months=Ha("months accessor is deprecated. Use month instead",rE),Le.years=Ha("years accessor is deprecated. Use year instead",ZS),Le.zone=Ha("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",wz),Le.isDSTShifted=Ha("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Az);function HH(e){return xr(e*1e3)}function WH(){return xr.apply(null,arguments).parseZone()}function OE(e){return e}var Wt=Dx.prototype;Wt.calendar=F$,Wt.longDateFormat=R$,Wt.invalidDate=N$,Wt.ordinal=B$,Wt.preparse=OE,Wt.postformat=OE,Wt.relativeTime=$$,Wt.pastFuture=U$,Wt.set=T$,Wt.eras=gH,Wt.erasParse=vH,Wt.erasConvertYear=xH,Wt.erasAbbrRegex=EH,Wt.erasNameRegex=SH,Wt.erasNarrowRegex=CH,Wt.months=aU,Wt.monthsShort=iU,Wt.monthsParse=oU,Wt.monthsRegex=cU,Wt.monthsShortRegex=lU,Wt.week=dU,Wt.firstDayOfYear=mU,Wt.firstDayOfWeek=pU,Wt.weekdays=CU,Wt.weekdaysMin=TU,Wt.weekdaysShort=kU,Wt.weekdaysParse=FU,Wt.weekdaysRegex=RU,Wt.weekdaysShortRegex=IU,Wt.weekdaysMinRegex=NU,Wt.isPM=LU,Wt.meridiem=$U;function u1(e,t,r,n){var a=Ms(),i=Vi().set(n,t);return a[r](i,e)}function PE(e,t,r){if(Ps(e)&&(t=e,e=void 0),e=e||"",t!=null)return u1(e,t,r,"month");var n,a=[];for(n=0;n<12;n++)a[n]=u1(e,n,r,"month");return a}function r2(e,t,r,n){typeof e=="boolean"?(Ps(t)&&(r=t,t=void 0),t=t||""):(t=e,r=t,e=!1,Ps(t)&&(r=t,t=void 0),t=t||"");var a=Ms(),i=e?a._week.dow:0,s,o=[];if(r!=null)return u1(t,(r+i)%7,n,"day");for(s=0;s<7;s++)o[s]=u1(t,(s+i)%7,n,"day");return o}function VH(e,t){return PE(e,t,"months")}function qH(e,t){return PE(e,t,"monthsShort")}function GH(e,t,r){return r2(e,t,r,"weekdays")}function YH(e,t,r){return r2(e,t,r,"weekdaysShort")}function XH(e,t,r){return r2(e,t,r,"weekdaysMin")}_o("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,r=It(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+r}}),Me.lang=Ha("moment.lang is deprecated. Use moment.locale instead.",_o),Me.langData=Ha("moment.langData is deprecated. Use moment.localeData instead.",Ms);var Ls=Math.abs;function KH(){var e=this._data;return this._milliseconds=Ls(this._milliseconds),this._days=Ls(this._days),this._months=Ls(this._months),e.milliseconds=Ls(e.milliseconds),e.seconds=Ls(e.seconds),e.minutes=Ls(e.minutes),e.hours=Ls(e.hours),e.months=Ls(e.months),e.years=Ls(e.years),this}function DE(e,t,r,n){var a=yi(t,r);return e._milliseconds+=n*a._milliseconds,e._days+=n*a._days,e._months+=n*a._months,e._bubble()}function ZH(e,t){return DE(this,e,t,1)}function JH(e,t){return DE(this,e,t,-1)}function RE(e){return e<0?Math.floor(e):Math.ceil(e)}function QH(){var e=this._milliseconds,t=this._days,r=this._months,n=this._data,a,i,s,o,u;return e>=0&&t>=0&&r>=0||e<=0&&t<=0&&r<=0||(e+=RE(n2(r)+t)*864e5,t=0,r=0),n.milliseconds=e%1e3,a=Va(e/1e3),n.seconds=a%60,i=Va(a/60),n.minutes=i%60,s=Va(i/60),n.hours=s%24,t+=Va(s/24),u=Va(IE(t)),r+=u,t-=RE(n2(u)),o=Va(r/12),r%=12,n.days=t,n.months=r,n.years=o,this}function IE(e){return e*4800/146097}function n2(e){return e*146097/4800}function eW(e){if(!this.isValid())return NaN;var t,r,n=this._milliseconds;if(e=Wa(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+n/864e5,r=this._months+IE(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(n2(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return t*24+n/36e5;case"minute":return t*1440+n/6e4;case"second":return t*86400+n/1e3;case"millisecond":return Math.floor(t*864e5)+n;default:throw new Error("Unknown unit "+e)}}function Bs(e){return function(){return this.as(e)}}var NE=Bs("ms"),tW=Bs("s"),rW=Bs("m"),nW=Bs("h"),aW=Bs("d"),iW=Bs("w"),sW=Bs("M"),oW=Bs("Q"),uW=Bs("y"),lW=NE;function cW(){return yi(this)}function fW(e){return e=Wa(e),this.isValid()?this[e+"s"]():NaN}function Ou(e){return function(){return this.isValid()?this._data[e]:NaN}}var dW=Ou("milliseconds"),hW=Ou("seconds"),pW=Ou("minutes"),mW=Ou("hours"),gW=Ou("days"),vW=Ou("months"),xW=Ou("years");function _W(){return Va(this.days()/7)}var js=Math.round,Ul={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function yW(e,t,r,n,a){return a.relativeTime(t||1,!!r,e,n)}function bW(e,t,r,n){var a=yi(e).abs(),i=js(a.as("s")),s=js(a.as("m")),o=js(a.as("h")),u=js(a.as("d")),l=js(a.as("M")),f=js(a.as("w")),d=js(a.as("y")),p=i<=r.ss&&["s",i]||i<r.s&&["ss",i]||s<=1&&["m"]||s<r.m&&["mm",s]||o<=1&&["h"]||o<r.h&&["hh",o]||u<=1&&["d"]||u<r.d&&["dd",u];return r.w!=null&&(p=p||f<=1&&["w"]||f<r.w&&["ww",f]),p=p||l<=1&&["M"]||l<r.M&&["MM",l]||d<=1&&["y"]||["yy",d],p[2]=t,p[3]=+e>0,p[4]=n,yW.apply(null,p)}function wW(e){return e===void 0?js:typeof e=="function"?(js=e,!0):!1}function SW(e,t){return Ul[e]===void 0?!1:t===void 0?Ul[e]:(Ul[e]=t,e==="s"&&(Ul.ss=t-1),!0)}function EW(e,t){if(!this.isValid())return this.localeData().invalidDate();var r=!1,n=Ul,a,i;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(r=e),typeof t=="object"&&(n=Object.assign({},Ul,t),t.s!=null&&t.ss==null&&(n.ss=t.s-1)),a=this.localeData(),i=bW(this,!r,n,a),r&&(i=a.pastFuture(+this,i)),a.postformat(i)}var a2=Math.abs;function zl(e){return(e>0)-(e<0)||+e}function l1(){if(!this.isValid())return this.localeData().invalidDate();var e=a2(this._milliseconds)/1e3,t=a2(this._days),r=a2(this._months),n,a,i,s,o=this.asSeconds(),u,l,f,d;return o?(n=Va(e/60),a=Va(n/60),e%=60,n%=60,i=Va(r/12),r%=12,s=e?e.toFixed(3).replace(/\.?0+$/,""):"",u=o<0?"-":"",l=zl(this._months)!==zl(o)?"-":"",f=zl(this._days)!==zl(o)?"-":"",d=zl(this._milliseconds)!==zl(o)?"-":"",u+"P"+(i?l+i+"Y":"")+(r?l+r+"M":"")+(t?f+t+"D":"")+(a||n||e?"T":"")+(a?d+a+"H":"")+(n?d+n+"M":"")+(e?d+s+"S":"")):"P0D"}var $t=r1.prototype;$t.isValid=vz,$t.abs=KH,$t.add=ZH,$t.subtract=JH,$t.as=eW,$t.asMilliseconds=NE,$t.asSeconds=tW,$t.asMinutes=rW,$t.asHours=nW,$t.asDays=aW,$t.asWeeks=iW,$t.asMonths=sW,$t.asQuarters=oW,$t.asYears=uW,$t.valueOf=lW,$t._bubble=QH,$t.clone=cW,$t.get=fW,$t.milliseconds=dW,$t.seconds=hW,$t.minutes=pW,$t.hours=mW,$t.days=gW,$t.weeks=_W,$t.months=vW,$t.years=xW,$t.humanize=EW,$t.toISOString=l1,$t.toString=l1,$t.toJSON=l1,$t.locale=bE,$t.localeData=SE,$t.toIsoString=Ha("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",l1),$t.lang=wE,at("X",0,0,"unix"),at("x",0,0,"valueOf"),Ge("x",Xh),Ge("X",V$),ar("X",function(e,t,r){r._d=new Date(parseFloat(e)*1e3)}),ar("x",function(e,t,r){r._d=new Date(It(e))});//! moment.js
332
+ Me.version="2.30.1",C$(xr),Me.fn=Le,Me.min=hz,Me.max=pz,Me.now=mz,Me.utc=Vi,Me.unix=HH,Me.months=VH,Me.isDate=d0,Me.locale=_o,Me.invalid=Hh,Me.duration=yi,Me.isMoment=xi,Me.weekdays=GH,Me.parseZone=WH,Me.localeData=Ms,Me.isDuration=n1,Me.monthsShort=qH,Me.weekdaysMin=XH,Me.defineLocale=Vx,Me.updateLocale=WU,Me.locales=VU,Me.weekdaysShort=YH,Me.normalizeUnits=Wa,Me.relativeTimeRounding=wW,Me.relativeTimeThreshold=SW,Me.calendarFormat=$z,Me.prototype=Le,Me.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Ho=class Ho{static getAttrOf(t,r){return t.find(n=>(n.apicode||n.apiCode)==r)}static avoid0TypeConvert(t){return t===0?String(t):t}static generateUUID(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var r=Math.random()*16|0,n=t=="x"?r:r&3|8;return n.toString(16)})}static momentToRawData(t){if(Me.isMoment(t)){const r=t.creationData();return r==null?void 0:r.input}else return t}static tableRowHasChange(t){return t.dataType=="add"||t.dataType=="del"||Ho.tableRowHasNewValue(t)}static tableRowHasNewValue(t){return!!t.newVal&&!!Object.values(t.newVal).length}static isAddTableRow(t){return t.dataType=="add"}static isDelTableRow(t){return t.dataType=="del"}static setTableRowAttrValue(t,r){t.newVal?Object.assign(t.newVal,r):t.newVal=r}static isMac(){return/macintosh|mac os x/i.test(navigator.userAgent)}static makeDestructurable(t,r){if(typeof Symbol<"u"){const n={...t};return Object.defineProperty(n,Symbol.iterator,{enumerable:!1,value(){let a=0;return{next:()=>({value:r[a++],done:a>r.length})}}}),n}else return Object.assign([...r],t)}static ArrayAttributeFlat(t,r="children",n){const a=[...t],i=[];for(;a.length;){const s=a.shift(),o=s[r];if(n==null||n(s),i.push(s),o!=null&&o.length)for(let u=o.length-1;u>=0;u--)a.unshift(o[u])}return i}static getTreeRelationNoRecursion({data:t,lookup:r,childrenKey:n="children"}){var f;const a=new Set;let i={parent:void 0,self:void 0,beforeSibling:[],afterSibling:[],index:void 0,stack:Array.from(a)};const s=new Map,o=new Map,u=new Map,l=[...t];for(;l.length;){const d=l.shift(),p=s.get(d)??t.findIndex(C=>C==d),v=o.get(d);v?a.add(v):a.clear();const _=v==null?void 0:v[n],x=r(d,p),w=d[n];if(x){i={parent:v,self:d,beforeSibling:(_||t).slice(0,p),afterSibling:(_||t).slice(p+1),index:p,stack:Array.from(a)};break}else if(w!=null&&w.length)for(let C=w.length-1;C>=0;C--){const E=w[C];l.unshift(w[C]),s.set(E,C),o.set(E,d),C==w.length-1&&u.set(E,()=>{var b;(b=u.get(d))==null||b(),a.delete(d)})}else(f=u.get(d))==null||f()}return i}static judgeParentIcon(t,r){if(t=="10001001")return"bluecube";if(t=="10001002")return"document-cube";if(t=="10001006")return"file-cube";if(vo.isProject(t))return r||"icon"}};gr(Ho,"getLabelInOptions",t=>{const{value:r,options:n,adaptor:a}=t,i=Object.prototype.toString.call(r);if(!(l=>l!==""&&l!==void 0&&l!==null)(r))return"";let o="";i==="[object Array]"&&(o=[]);const u=l=>{for(let f=0;f<(l||[]).length;f++){const d=l[f][a?a.label:"label"],p=l[f][a?a.value:"value"];i==="[object Array]"?r.includes(p)&&o.push(d):r===p&&(o=d),l[f].children&&l[f].children.length&&u(l[f].children)}};return u(n),o}),gr(Ho,"transformArrayToMap",(t,r,n,a)=>{function i(s,o){return s=="autoGetId"&&(a!=null&&a.useAutoGetId)?Rl.isCustomAttr(o)?"id":"dataFromId":s}return t==null?void 0:t.reduce((s,o)=>{const u=i(r,o),l=i(n,o);return l?s[o[u]]=o[l]:s[o[u]]=o,s},{})}),gr(Ho,"autoTableHeight",(t=270)=>{var r=0;return window.innerHeight?r=window.innerHeight:document.body&&document.body.clientHeight&&(r=document.body.clientHeight),document.documentElement&&document.documentElement.clientHeight&&(r=document.documentElement.clientHeight),r-t}),gr(Ho,"renderBomTag",t=>{const r=s=>{const o=s.match(/\d+(\.\d+)?/g);return o?o[o.length-1]:""},n=s=>{let o=0;const u=l=>{var f=l.split("");return f.reverse()};for(let l=0;l<u(s).length&&u(s)[l].match(/\d/);l++)o=o+1;return s.substring(0,s.length-o)},a=s=>Ee.sortBy(Ee.uniq(s.split(",")),o=>Number(r(o))),i=Object.keys(Ee.groupBy(a(t),s=>n(s))).map(s=>(u=>{var l=[],f=0;const d=u.sort((p,v)=>Number(r(p))-Number(r(v)));return d.forEach((p,v)=>{v===0?l[0]=[p]:Number(r(p))-Number(r(d[v-1]))===1?l[f].push(p):l[++f]=[p]}),l})(Ee.groupBy(a(t),u=>n(u))[s]).map(u=>{if(u.length>1){const l=u.map(f=>Number(r(f)));return`${s}${Ee.min(l)}-${Ee.max(l)}`}else return u[0]}));return Ee.flatten(i).join(",")}),gr(Ho,"tidyBomTag",(t,r)=>{t=t&&t.replace(/,/g,",");const n=t.split(",").map(u=>u.replace(/([^\d]+)(\d+)-\1(\d+)/,"$1$2-$3")).map(u=>{if(u.match(/^\S+\d+-\d+$/)){const l=u.substring(0,u.match(/\d+-\d+$/).index),f=[],d=Number(u.split(l)[1].split("-")[1]),p=d<1e3?d:1e3;for(let v=Number(u.split(l)[1].split("-")[0]);v<=p;v++)f.push(`${l}${v}`);return f.join(",")}else if(u.match(/^\S+\d+-\S+\d+$/)){const l=u.split("-")[0].substring(0,u.match(/\d/).index).toUpperCase(),f=u.split("-")[0].substring(u.match(/\d/).index,u.split("-")[0].length),d=u.split("-")[1].substring(0,u.match(/\d/).index).toUpperCase(),p=u.split("-")[1].substring(u.match(/\d/).index,u.split("-")[0].length);if(l!=d)return u;{const v=[],_=Number(p),x=_<1e3?_:1e3;for(let w=Number(f);w<=x;w++)v.push(`${l}${w}`);return v.join(",")}}else return u}).join(","),a=u=>{const l=u.match(/\d+(\.\d+)?/g);return l?l[l.length-1]:""},i=u=>{let l=0;const f=d=>{var p=d.split("");return p.reverse()};for(let d=0;d<f(u).length&&f(u)[d].match(/\d/);d++)l=l+1;return u.substring(0,u.length-l)},s=u=>Ee.sortBy(Ee.uniq(u.split(",")),l=>Number(a(l))),o=Object.values(Ee.groupBy(s(n.toLocaleUpperCase()),u=>i(u))).map(u=>u.join(","));return o.length>1e3&&(r==null||r()),o.length>1e3?o.slice(0,1e3).join(","):o.join(",")});let Gt=Ho;const i2={tableSelection:"_tableSelection_1xub0_1",sideBox:"_sideBox_1xub0_36",tableFrame:"_tableFrame_1xub0_51"},Hl={sider_item_container:"_sider_item_container_wnrm0_1"},{TreeNode:ME}=ue.Tree,LE=e=>{const[t,r]=U.useState([]),[n,a]=U.useState([]),[i,s]=U.useState([]);El(()=>{o()});const o=async()=>{a(e.treeResult||[]);const{result:l}=await e.getAttributeByTab({itemCode:e.itemCode,tabCode:"10002001",notInApiCode:"Unit,ProductModel,Product"}),f=l.records.filter(d=>["Number","Note","LifeCyclePhase","Category"].includes(d.apicode));e.onGetTreeFields&&e.onGetTreeFields(f)};U.useEffect(()=>{e.outIsSelected&&r([])},[e.outIsSelected]);const u=l=>l.map(d=>(d.title=R.jsxs("div",{className:Hl.treeListBox,children:[R.jsxs("div",{className:Hl.titleBox,style:{display:"flex",alignItems:"center"},children:[R.jsx(gt,{type:d.icon=="leftbar-folder"?d.children&&d.children.length>0&&Ee.includes(i,d.id)?"content-open2":"content-fold":d.icon,style:{fontSize:"16px",color:"#333"}}),R.jsx("div",{className:Hl.name,style:{marginLeft:"2px",whiteSpace:"nowrap"},title:d.name,children:R.jsx("span",{children:d.name})})]}),R.jsx("div",{className:Qe(Hl.btnBox,Hl.onHover)})]},d.id),d.children?R.jsx(ME,{title:d.title,dataRef:d,children:u(d.children)},d.id):R.jsx(ME,{title:d.title},d.id)));return R.jsx("div",{className:Hl.sider_item_container,children:R.jsx(ue.Tree,{switcherIcon:R.jsx(gt,{type:"xia-mian",style:{color:"#3C3C3C",cursor:"pointer"}}),expandedKeys:i,selectedKeys:t,onExpand:l=>{s(l)},onSelect:(l,f)=>{f.selected&&(r(l),e.onSelected&&e.onSelected(f.node.dataRef))},children:u(n)})})},bi={main:"_main_1qtos_1",edit_cell:"_edit_cell_1qtos_23",update_style:"_update_style_1qtos_28",updated_style:"_updated_style_1qtos_42",updated_redline_style:"_updated_redline_style_1qtos_61",table_footer:"_table_footer_1qtos_349",loading:"_loading_1qtos_361"},CW=0,s2=1,o2=2,BE=8,Wl=64,c1=0,jE=1,u2=typeof Symbol=="function"?Symbol.for("idx"):"$$idx";function kW(){return{vt_state:1,possible_hight_per_tr:-1,computed_h:0,re_computed:0,row_height:[],row_count:0,prev_row_count:0,_offset_top:0,_offset_head:0,_offset_tail:1,WH:0,top:0,left:0,evt:CW,end:!1,final_top:0,f_final_top:jE,update_count:0}}function TW(e){Object.prototype.hasOwnProperty.call(e,"CLICK~__DIAGNOSIS__")||Object.defineProperty(e,"CLICK~__DIAGNOSIS__",{get(){console.debug("OoOoOoO DIAGNOSIS OoOoOoO");let t=0;for(let a=0;a<e.row_count;++a)t+=e.row_height[a];let r,n;t>e.computed_h?(r="color:rgb(15, 179, 9)",n="lower than expected"):t<e.computed_h?(r="color:rgb(202, 61, 81)",n="higher than expected"):(r="color:rgba(0, 0, 0, 0.85)",n="normal"),console.debug(`%c%d(%d)(${n})`,r,t,e.computed_h-t),console.debug("OoOoOoOoOoOoOOoOoOoOoOoOo")},configurable:!1,enumerable:!1})}function Vl(e,t){if(e.debug){const r=new Date,n=`${r.toLocaleTimeString()}.${r.getMilliseconds()}`;console.debug(`%c[${e.id}][${n}][${t}]`,"color:#a00",e)}}function AW(e){const t=e.target;return{target:{scrollTop:t.scrollTop,scrollLeft:t.scrollLeft},end:t.scrollHeight-t.clientHeight===Math.round(t.scrollTop),flag:BE}}const FW=pe.forwardRef(function(t,r){return R.jsx("table",{ref:r,...t})});function OW(e){return R.jsx("tbody",{...e})}const PW=pe.forwardRef(function(t,r){const[n,a]=U.useState(!1);return R.jsx("tr",{ref:r,...t})});function DW(e,t){const{row_height:r,row_count:n,overscanRowCount:a}=e;e._scroll_y=e.scroll.y,typeof e._scroll_y=="number"?e._y=e._scroll_y:(typeof e._scroll_y=="string"||console.assert(!1,"VT: did you forget to set `scroll.y`?"),e._y=e.wrap_inst.current.parentElement.offsetHeight),console.assert(e._y>=0);let i=0,s=0,o=0,u=0;if(t===-1&&n>0){for(s=n;s>0&&u<e._y;)u+=r[--s];return[0|s,0|n,0|e.computed_h-u]}for(;s<n&&i<t;++s)i+=r[s];for(o=s;o<n&&u<e._y;++o)u+=r[o];let l=a<0?0:a;for(;s>0&&l--;)i-=r[--s];return o+=a,o>n&&(o=n),[0|s,0|o,0|i]}function $E(e,t,r,n){e._offset_top=0|t,e._offset_head=0|r,e._offset_tail=0|n}function RW(e,t,r,n,a){e.top=t,e.left=r,e.evt=n,e.end=a}function IW(e,t){if(e.WH===t)return;e.WH=t;const r=e.wrap_inst.current.style;r.height=t?(r.maxHeight=t+"px",r.maxHeight):(r.maxHeight="unset",r.maxHeight),e.on_update_wrap_style()}function UE(e,t,r){if(!e.wrap_inst.current)return;const n=e.wrap_inst.current.parentElement;n.scrollTop=t,n.scrollLeft=Math.max(r,n.scrollLeft)}function zE(e,t){const r=()=>{Vl(e,"REPAINTING"),e.vt_state===4&&e.wrap_inst.current&&IW(e,e.computed_h),e.HND_PAINT=0};return t<0?window.requestAnimationFrame(r):window.setTimeout(r,t)}function l2(e){e.HND_PAINT>0||(e.HND_PAINT=zE(e,-1))}function HE(e,t,r,n){const a=t-r,i=new Array(a).fill(n);e.row_height=e.row_height.concat(i),e.computed_h+=a*n}function NW(e,t,r){if(t===0){e.computed_h=0,e.row_height.length=0,e.top=0;return}const n=e.row_height;let a=0;for(let i=t;i<r;++i)a+=n[i];e.computed_h-=a}function MW(e,t){e.re_computed=t-e.row_count,e.prev_row_count=e.row_count,e.row_count=t}const LW=(e,t)=>{const{style:r,context:n,...a}=e,i=U.useState(0),s=U.useRef(()=>{}),o=U.useMemo(()=>pe.createRef(),[]),u=U.useContext(n);U.useMemo(()=>{Object.assign(u,kW()),u.wrap_inst&&u.wrap_inst.current&&(u.wrap_inst.current.parentElement.onscroll=null),u.wrap_inst=o,u.top=u.initTop,u.on_update_wrap_style=()=>{u._y===0&&`${u._scroll_y}`.length&&p({flag:Wl,target:{scrollTop:u.top,scrollLeft:u.left}})},process.env.NODE_ENV==="development"&&TW(u)},[]);const l=U.useRef([]).current,f=U.useRef(0);let d;const p=U.useCallback(E=>{if(u.vt_state===4){if(E&&(l.push(E),u.f_final_top===c1))return E.flag=Wl,d(0);l.length&&(f.current&&cancelAnimationFrame(f.current),f.current=requestAnimationFrame(d))}},[]),v=U.useCallback(E=>{p(AW(E))},[]);d=U.useCallback(E=>{if(u.vt_state!==4)return;const b=l;let h;if(!b.length)return;h=b.pop();let g=h.target.scrollTop,y=h.target.scrollLeft;const S=h.flag;Vl(u,`raf top: ${g}, left: ${y}`);const A=DW(u,u.f_final_top===c1?u.final_top:g),k=A[0],F=A[1],P=A[2],j=u._offset_head,N=u._offset_tail,I=u._offset_top;let B;switch(S){case s2:Vl(u,"SCROLLEVT_INIT"),B=!1;break;case Wl:Vl(u,"SCROLLEVT_BY_HOOK"),k===j&&F===N&&P===I?(u.f_final_top=jE,u.final_top===-1&&(g=u.computed_h-u._y),B=!0):(u.final_top===-1&&(g=P),B=!1);break;case o2:if(Vl(u,"SCROLLEVT_RECOMPUTE"),k===j&&F===N&&P===I){f.current=0,b.length&&p(null);return}B=!1;break;case BE:if(Vl(u,"SCROLLEVT_NATIVE"),f.current=0,b.length=0,u.onScroll&&u.onScroll({top:g,left:y,isEnd:h.end}),k===j&&F===N&&P===I)return;B=h.end;break}$E(u,P,k,F),RW(u,g,y,S,B),i[1](++u.update_count)},[]),U.useImperativeHandle(t,()=>{const E=b=>{u.f_final_top=c1,u.final_top=b,p({target:{scrollTop:b,scrollLeft:-1},flag:Wl})};return{scrollTo:b=>{s.current=()=>E(b),s.current()},scrollToIndex:b=>{s.current=()=>{b>u.row_count-1&&(b=u.row_count-1),b<0&&(b=0);let h=0;for(let g=0;g<b;++g)h+=u.row_height[g];E(h)},s.current()}}},[]),U.useEffect(()=>{u.wrap_inst.current.parentElement.onscroll=v},[o]),U.useEffect(()=>{p({flag:Wl,target:{scrollLeft:u.left,scrollTop:u.top}})},[u.scroll.y]),U.useEffect(()=>{switch(u.evt){case Wl:u.f_final_top===c1?s.current():UE(u,u.top,u.left);break;case s2:case o2:UE(u,u.top,u.left),l.length&&d(0);break}},[i[0]]),U.useEffect(()=>{switch(u.vt_state){case 1:break;case 2:u.vt_state=4,p({target:{scrollTop:u.top,scrollLeft:0},flag:s2});break;case 4:u.re_computed!==0&&(u.re_computed=0,p({target:{scrollTop:u.top,scrollLeft:u.left},flag:o2}));break}}),r.position="relative",r.top=u._offset_top;const{width:_,...x}=r,w=U.useMemo(()=>({width:_,minWidth:"100%",position:"relative",transform:"matrix(1, 0, 0, 1, 0, 0)"}),[_]),C=u.components.table;return R.jsx("div",{ref:o,style:w,children:R.jsx(n.Provider,{value:{...u},children:R.jsx(C,{...a,style:x})})})},BW=e=>{const{children:t,ctx:r,...n}=e,a=t[0],i=t[1],s=r.components.body.wrapper;let o=Array.isArray(i)?i.length:0,{_offset_head:u,_offset_tail:l}=r,f=[];switch(r.vt_state){case 1:o>=0&&(console.assert(u===0),console.assert(l===1),Array.isArray(i)?(f=i.slice(u,l),f[0].props.record[u2]=0):f=i,r.re_computed=o,r.prev_row_count=o,r.row_count=o);break;case 4:{if(l>o){const p=l-o;l-=p,u-=p,u<0&&(u=0),l<0&&(l=0),$E(r,r._offset_top,u,l)}r.row_count!==o&&MW(r,o),o=r.row_count;const d=r.prev_row_count;if(o<d)NW(r,o,d);else if(o>d){const p=r.row_height;o-p.length>0?HE(r,o,p.length,r.possible_hight_per_tr):(p.fill(r.possible_hight_per_tr,d,o),r.computed_h+=r.possible_hight_per_tr*(o-d))}if(o){let p=u;f=i.slice(p,l),f.forEach(v=>v.props.record[u2]=p++)}else f=i;r.prev_row_count=r.row_count}break;case 2:console.assert(!1);break}return R.jsxs(s,{...n,children:[a,f]})},jW=e=>{const t=pe.createRef(),{ctx:r,...n}=e,a=e.children,i=r.components.body.row;if(!Array.isArray(a))return R.jsx(i,{...n,children:a});const s=a[0].props,o=s.record[u2],u=U.useRef(o),l=U.useMemo(()=>`.${s.prefixCls}-expanded-row`,[s.prefixCls]);return U.useEffect(()=>(r.vt_state===4?l2(r):(console.assert(r.vt_state===1),r.vt_state=2,r.possible_hight_per_tr=t.current.offsetHeight,HE(r,r.row_count,0,r.possible_hight_per_tr),zE(r,16)),()=>l2(r)),[]),U.useEffect(()=>{const f=t.current;let d=f.offsetHeight,p=f.nextSibling;for(;p&&p.matches(l);)d+=p.offsetHeight,p=p.nextSibling;const v=r.row_height[o],_=r.row_height[u.current];r.computed_h-=v,r.computed_h+=_,r.computed_h+=d-_,r.row_height[o]=d,l2(r)}),R.jsx(i,{...n,ref:t})};function WE(e,t){const{table:r,body:n,header:a}=t;e.components.body={...e.components.body,...n},n&&n.cell&&(e._vtcomponents.body.cell=n.cell),a&&(e.components.header=a,e._vtcomponents.header=a),r&&(e.components.table=r)}function $W(e,t){const r=U.useRef(pe.createContext({})).current,n=U.useContext(r),a=U.useRef({scrollTo:i=>{},scrollToIndex:i=>{}});return U.useMemo(()=>Object.assign(n,{id:(+new Date).toString(36).slice(4),initTop:0,overscanRowCount:20,debug:!1,ref:a},e()),t),U.useMemo(()=>{const i=pe.forwardRef(LW);n._vtcomponents={table:s=>R.jsx(i,{...s,context:r,ref:n.ref}),body:{wrapper:s=>R.jsx(r.Consumer,{children:()=>R.jsx(BW,{...s,ctx:n})}),row:s=>R.jsx(jW,{...s,ctx:n})}},n.components={},WE(n,{table:FW,body:{wrapper:OW,row:PW}}),n.vt_state=1},[]),n}const VE=1,UW=2;(function(){if((typeof window=="object"&&window instanceof Window?VE:UW)&VE&&!Object.hasOwnProperty.call(window,"requestAnimationFrame")&&!window.requestAnimationFrame)throw new Error("Please using the modern browers or appropriate polyfill!")})();function zW(e,t){const r=$W(e,t||[]);return[r._vtcomponents,n=>WE(r,n),r.ref]}const HW=({hideFooter:e,contentRef:t,tableRef:r,scroll:n,fullScreenMinusHeight:a,scrollUpdate:i,onTableHeightChange:s},o)=>{const[u,l]=U.useState(0),f=Ua(n);return U.useEffect(()=>{const d=()=>{var _,x,w;const v=(C=>{for(var E=C.offsetTop,b=C.offsetParent;b!==null;)E+=b.offsetTop,b=b.offsetParent;return E})(t.current);if(r.current){const C=t.current.querySelectorAll(".frontend-table-body")[0].getElementsByTagName("div")[0],E=t.current.querySelectorAll(".frontend-table-body")[0],b=34+(e?0:15);if(C){const h=Gt.autoTableHeight(o?b:v+b),g=h-(a||0);n!=null&&n.y?i?i==null||i(o,g):(l(o?g:Number((_=f.current)==null?void 0:_.y)),C.style.minHeight=(o?g:Number((x=f.current)==null?void 0:x.y))-10+"px",E.style.minHeight=(o?g:Number((w=f.current)==null?void 0:w.y))+"px"):(l(o?g:h),C.style.minHeight=(o?g:h)-10+"px",E.style.minHeight=(o?g:h)+"px")}}};return d(),window.addEventListener("resize",d),()=>{window.removeEventListener("resize",d)}},[o,n]),U.useEffect(()=>{s==null||s(u)},[u]),u};var S0={exports:{}},E0={},f1={},qE;function WW(){if(qE)return f1;qE=1,f1.__esModule=!0,f1.cloneElement=o;var e=t(U);function t(u){return u&&u.__esModule?u:{default:u}}function r(u,l){var f=Object.keys(u);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(u);l&&(d=d.filter(function(p){return Object.getOwnPropertyDescriptor(u,p).enumerable})),f.push.apply(f,d)}return f}function n(u){for(var l=1;l<arguments.length;l++){var f=arguments[l]!=null?arguments[l]:{};l%2?r(Object(f),!0).forEach(function(d){a(u,d,f[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(f)):r(Object(f)).forEach(function(d){Object.defineProperty(u,d,Object.getOwnPropertyDescriptor(f,d))})}return u}function a(u,l,f){return l=i(l),l in u?Object.defineProperty(u,l,{value:f,enumerable:!0,configurable:!0,writable:!0}):u[l]=f,u}function i(u){var l=s(u,"string");return typeof l=="symbol"?l:String(l)}function s(u,l){if(typeof u!="object"||u===null)return u;var f=u[Symbol.toPrimitive];if(f!==void 0){var d=f.call(u,l);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(l==="string"?String:Number)(u)}function o(u,l){return l.style&&u.props.style&&(l.style=n(n({},u.props.style),l.style)),l.className&&u.props.className&&(l.className=u.props.className+" "+l.className),e.default.cloneElement(u,l)}return f1}var C0={},GE;function YE(){if(GE)return C0;GE=1,C0.__esModule=!0,C0.resizableProps=void 0;var e=t(o0());hx();function t(n){return n&&n.__esModule?n:{default:n}}var r={axis:e.default.oneOf(["both","x","y","none"]),className:e.default.string,children:e.default.element.isRequired,draggableOpts:e.default.shape({allowAnyClick:e.default.bool,cancel:e.default.string,children:e.default.node,disabled:e.default.bool,enableUserSelectHack:e.default.bool,offsetParent:e.default.node,grid:e.default.arrayOf(e.default.number),handle:e.default.string,nodeRef:e.default.object,onStart:e.default.func,onDrag:e.default.func,onStop:e.default.func,onMouseDown:e.default.func,scale:e.default.number}),height:function(){for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];var o=i[0];if(o.axis==="both"||o.axis==="y"){var u;return(u=e.default.number).isRequired.apply(u,i)}return e.default.number.apply(e.default,i)},handle:e.default.oneOfType([e.default.node,e.default.func]),handleSize:e.default.arrayOf(e.default.number),lockAspectRatio:e.default.bool,maxConstraints:e.default.arrayOf(e.default.number),minConstraints:e.default.arrayOf(e.default.number),onResizeStop:e.default.func,onResizeStart:e.default.func,onResize:e.default.func,resizeHandles:e.default.arrayOf(e.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:e.default.number,width:function(){for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];var o=i[0];if(o.axis==="both"||o.axis==="x"){var u;return(u=e.default.number).isRequired.apply(u,i)}return e.default.number.apply(e.default,i)}};return C0.resizableProps=r,C0}var XE;function KE(){if(XE)return E0;XE=1,E0.__esModule=!0,E0.default=void 0;var e=s(U),t=hx(),r=WW(),n=YE(),a=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function i(C){if(typeof WeakMap!="function")return null;var E=new WeakMap,b=new WeakMap;return(i=function(g){return g?b:E})(C)}function s(C,E){if(C&&C.__esModule)return C;if(C===null||typeof C!="object"&&typeof C!="function")return{default:C};var b=i(E);if(b&&b.has(C))return b.get(C);var h={},g=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var y in C)if(y!=="default"&&Object.prototype.hasOwnProperty.call(C,y)){var S=g?Object.getOwnPropertyDescriptor(C,y):null;S&&(S.get||S.set)?Object.defineProperty(h,y,S):h[y]=C[y]}return h.default=C,b&&b.set(C,h),h}function o(){return o=Object.assign?Object.assign.bind():function(C){for(var E=1;E<arguments.length;E++){var b=arguments[E];for(var h in b)Object.prototype.hasOwnProperty.call(b,h)&&(C[h]=b[h])}return C},o.apply(this,arguments)}function u(C,E){if(C==null)return{};var b={},h=Object.keys(C),g,y;for(y=0;y<h.length;y++)g=h[y],!(E.indexOf(g)>=0)&&(b[g]=C[g]);return b}function l(C,E){var b=Object.keys(C);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(C);E&&(h=h.filter(function(g){return Object.getOwnPropertyDescriptor(C,g).enumerable})),b.push.apply(b,h)}return b}function f(C){for(var E=1;E<arguments.length;E++){var b=arguments[E]!=null?arguments[E]:{};E%2?l(Object(b),!0).forEach(function(h){d(C,h,b[h])}):Object.getOwnPropertyDescriptors?Object.defineProperties(C,Object.getOwnPropertyDescriptors(b)):l(Object(b)).forEach(function(h){Object.defineProperty(C,h,Object.getOwnPropertyDescriptor(b,h))})}return C}function d(C,E,b){return E=p(E),E in C?Object.defineProperty(C,E,{value:b,enumerable:!0,configurable:!0,writable:!0}):C[E]=b,C}function p(C){var E=v(C,"string");return typeof E=="symbol"?E:String(E)}function v(C,E){if(typeof C!="object"||C===null)return C;var b=C[Symbol.toPrimitive];if(b!==void 0){var h=b.call(C,E);if(typeof h!="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(E==="string"?String:Number)(C)}function _(C,E){C.prototype=Object.create(E.prototype),C.prototype.constructor=C,x(C,E)}function x(C,E){return x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(h,g){return h.__proto__=g,h},x(C,E)}var w=function(C){_(E,C);function E(){for(var h,g=arguments.length,y=new Array(g),S=0;S<g;S++)y[S]=arguments[S];return h=C.call.apply(C,[this].concat(y))||this,h.handleRefs={},h.lastHandleRect=null,h.slack=null,h}var b=E.prototype;return b.componentWillUnmount=function(){this.resetData()},b.resetData=function(){this.lastHandleRect=this.slack=null},b.runConstraints=function(g,y){var S=this.props,A=S.minConstraints,k=S.maxConstraints,F=S.lockAspectRatio;if(!A&&!k&&!F)return[g,y];if(F){var P=this.props.width/this.props.height,j=g-this.props.width,N=y-this.props.height;Math.abs(j)>Math.abs(N*P)?y=g/P:g=y*P}var I=g,B=y,O=this.slack||[0,0],M=O[0],V=O[1];return g+=M,y+=V,A&&(g=Math.max(A[0],g),y=Math.max(A[1],y)),k&&(g=Math.min(k[0],g),y=Math.min(k[1],y)),this.slack=[M+(I-g),V+(B-y)],[g,y]},b.resizeHandler=function(g,y){var S=this;return function(A,k){var F=k.node,P=k.deltaX,j=k.deltaY;g==="onResizeStart"&&S.resetData();var N=(S.props.axis==="both"||S.props.axis==="x")&&y!=="n"&&y!=="s",I=(S.props.axis==="both"||S.props.axis==="y")&&y!=="e"&&y!=="w";if(!(!N&&!I)){var B=y[0],O=y[y.length-1],M=F.getBoundingClientRect();if(S.lastHandleRect!=null){if(O==="w"){var V=M.left-S.lastHandleRect.left;P+=V}if(B==="n"){var L=M.top-S.lastHandleRect.top;j+=L}}S.lastHandleRect=M,O==="w"&&(P=-P),B==="n"&&(j=-j);var W=S.props.width+(N?P/S.props.transformScale:0),G=S.props.height+(I?j/S.props.transformScale:0),H=S.runConstraints(W,G);W=H[0],G=H[1];var Q=W!==S.props.width||G!==S.props.height,K=typeof S.props[g]=="function"?S.props[g]:null,te=g==="onResize"&&!Q;K&&!te&&(A.persist==null||A.persist(),K(A,{node:F,size:{width:W,height:G},handle:y})),g==="onResizeStop"&&S.resetData()}}},b.renderResizeHandle=function(g,y){var S=this.props.handle;if(!S)return e.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+g,ref:y});if(typeof S=="function")return S(g,y);var A=typeof S.type=="string",k=f({ref:y},A?{}:{handleAxis:g});return e.cloneElement(S,k)},b.render=function(){var g=this,y=this.props,S=y.children,A=y.className,k=y.draggableOpts;y.width,y.height,y.handle,y.handleSize,y.lockAspectRatio,y.axis,y.minConstraints,y.maxConstraints,y.onResize,y.onResizeStop,y.onResizeStart;var F=y.resizeHandles;y.transformScale;var P=u(y,a);return(0,r.cloneElement)(S,f(f({},P),{},{className:(A?A+" ":"")+"react-resizable",children:[].concat(S.props.children,F.map(function(j){var N,I=(N=g.handleRefs[j])!=null?N:g.handleRefs[j]=e.createRef();return e.createElement(t.DraggableCore,o({},k,{nodeRef:I,key:"resizableHandle-"+j,onStop:g.resizeHandler("onResizeStop",j),onStart:g.resizeHandler("onResizeStart",j),onDrag:g.resizeHandler("onResize",j)}),g.renderResizeHandle(j,I))}))}))},E}(e.Component);return E0.default=w,w.propTypes=n.resizableProps,w.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1},E0}var k0={},ZE;function VW(){if(ZE)return k0;ZE=1,k0.__esModule=!0,k0.default=void 0;var e=o(U),t=i(o0()),r=i(KE()),n=YE(),a=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function i(E){return E&&E.__esModule?E:{default:E}}function s(E){if(typeof WeakMap!="function")return null;var b=new WeakMap,h=new WeakMap;return(s=function(y){return y?h:b})(E)}function o(E,b){if(E&&E.__esModule)return E;if(E===null||typeof E!="object"&&typeof E!="function")return{default:E};var h=s(b);if(h&&h.has(E))return h.get(E);var g={},y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var S in E)if(S!=="default"&&Object.prototype.hasOwnProperty.call(E,S)){var A=y?Object.getOwnPropertyDescriptor(E,S):null;A&&(A.get||A.set)?Object.defineProperty(g,S,A):g[S]=E[S]}return g.default=E,h&&h.set(E,g),g}function u(){return u=Object.assign?Object.assign.bind():function(E){for(var b=1;b<arguments.length;b++){var h=arguments[b];for(var g in h)Object.prototype.hasOwnProperty.call(h,g)&&(E[g]=h[g])}return E},u.apply(this,arguments)}function l(E,b){var h=Object.keys(E);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(E);b&&(g=g.filter(function(y){return Object.getOwnPropertyDescriptor(E,y).enumerable})),h.push.apply(h,g)}return h}function f(E){for(var b=1;b<arguments.length;b++){var h=arguments[b]!=null?arguments[b]:{};b%2?l(Object(h),!0).forEach(function(g){d(E,g,h[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(E,Object.getOwnPropertyDescriptors(h)):l(Object(h)).forEach(function(g){Object.defineProperty(E,g,Object.getOwnPropertyDescriptor(h,g))})}return E}function d(E,b,h){return b=p(b),b in E?Object.defineProperty(E,b,{value:h,enumerable:!0,configurable:!0,writable:!0}):E[b]=h,E}function p(E){var b=v(E,"string");return typeof b=="symbol"?b:String(b)}function v(E,b){if(typeof E!="object"||E===null)return E;var h=E[Symbol.toPrimitive];if(h!==void 0){var g=h.call(E,b);if(typeof g!="object")return g;throw new TypeError("@@toPrimitive must return a primitive value.")}return(b==="string"?String:Number)(E)}function _(E,b){if(E==null)return{};var h={},g=Object.keys(E),y,S;for(S=0;S<g.length;S++)y=g[S],!(b.indexOf(y)>=0)&&(h[y]=E[y]);return h}function x(E,b){E.prototype=Object.create(b.prototype),E.prototype.constructor=E,w(E,b)}function w(E,b){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(g,y){return g.__proto__=y,g},w(E,b)}var C=function(E){x(b,E);function b(){for(var g,y=arguments.length,S=new Array(y),A=0;A<y;A++)S[A]=arguments[A];return g=E.call.apply(E,[this].concat(S))||this,g.state={width:g.props.width,height:g.props.height,propsWidth:g.props.width,propsHeight:g.props.height},g.onResize=function(k,F){var P=F.size;g.props.onResize?(k.persist==null||k.persist(),g.setState(P,function(){return g.props.onResize&&g.props.onResize(k,F)})):g.setState(P)},g}b.getDerivedStateFromProps=function(y,S){return S.propsWidth!==y.width||S.propsHeight!==y.height?{width:y.width,height:y.height,propsWidth:y.width,propsHeight:y.height}:null};var h=b.prototype;return h.render=function(){var y=this.props,S=y.handle,A=y.handleSize;y.onResize;var k=y.onResizeStart,F=y.onResizeStop,P=y.draggableOpts,j=y.minConstraints,N=y.maxConstraints,I=y.lockAspectRatio,B=y.axis;y.width,y.height;var O=y.resizeHandles,M=y.style,V=y.transformScale,L=_(y,a);return e.createElement(r.default,{axis:B,draggableOpts:P,handle:S,handleSize:A,height:this.state.height,lockAspectRatio:I,maxConstraints:N,minConstraints:j,onResizeStart:k,onResize:this.onResize,onResizeStop:F,resizeHandles:O,transformScale:V,width:this.state.width},e.createElement("div",u({},L,{style:f(f({},M),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},b}(e.Component);return k0.default=C,C.propTypes=f(f({},n.resizableProps),{},{children:t.default.element}),k0}var JE;function qW(){return JE||(JE=1,S0.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},S0.exports.Resizable=KE().default,S0.exports.ResizableBox=VW().default),S0.exports}var GW=qW();const YW=e=>{const{onResizeOver:t,onResizeStop:r,trulyHeight:n,onResize:a,width:i,onClick:s,required:o,editable:u,formitem:l,dataIndex:f,...d}=e,p=U.useRef(),v=()=>{const b=u?l&&l.props&&l.props.disabled:!0;if(!b&&o)return{fontStyle:"italic",fontWeight:"400",color:"#000000"};if(b&&o)return{fontWeight:"400"};if(!b&&!o)return{fontStyle:"italic",fontWeight:"400",color:"#000000"};if(b&&!o)return{fontWeight:"400"}},_=Jn({resizing:!1}),[x,w]=U.useState(0);U.useEffect(()=>{document.querySelectorAll(".react-resizable .react-resizable-handle").forEach(h=>h.addEventListener("click",g=>!1))},[]);const[C,E]=U.useState(0);return!i||f==="id"?R.jsx("th",{...d,onClick:s,style:{...d.style,...v()},onKeyDown:()=>{},className:`${d.className} ${o?"frontend-table-column-required":""}`}):R.jsx(GW.Resizable,{axis:"x",width:i+C,height:0,handle:R.jsx("span",{onClick:b=>{b.stopPropagation(),b.preventDefault()},className:Qe(["react-resizable-handle",C&&"active"])}),onResize:(b,{size:h,...g})=>{const y=document.getElementById("table-resize-handle");if(y){const S=document.getElementById(`table_key_${e.tableKey}`);b.pageX>S.getBoundingClientRect().left+S.getBoundingClientRect().width||b.pageX<S.getBoundingClientRect().left?y.style.width="0px":(y.style.width="1px",y.style.background="#0563B2",y.style.zIndex="9999",y.style.top=`${g.node.getBoundingClientRect().top}px`,y.style.position="fixed",y.style.height=`${n}px`,y.style.left=`${b.pageX}px`)}t(b),_.resizing=!0,E(h.width-i)},onResizeStop:(...b)=>{var h;b[0].stopPropagation(),(h=document.getElementById("table-resize-handle"))==null||h.remove(),r(),E(0),a(...b),setTimeout(()=>{_.resizing=!1})},onResizeStart:b=>{document.getElementById(`table_key_${e.tableKey}`);const h=document.createElement("div");h.id="table-resize-handle",document.body.appendChild(h),_.resizing=!0,b.stopPropagation()},draggableOpts:{enableUserSelectHack:!1},children:R.jsx("th",{ref:p,onClick:(...b)=>{!_.resizing&&s&&s(...b)},...d,style:{...d.style,...v()},onKeyDown:()=>{},className:`${d.className} ${o?"frontend-table-column-required":""}`})})};function T0(){return T0=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},T0.apply(this,arguments)}function QE(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i<n.length;i++)a=n[i],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}var eC=U.createContext({});function XW(){return U.useContext(eC)}var KW=function(t){return U.createElement(eC.Provider,{value:t.refTracker},t.children)};function ZW(){var e=new Map;return{on:function(r,n){var a;return e.has(r)?(a=e.get(r))==null||a.add(n):e.set(r,new Set([n])),this},off:function(r,n){return n?e.get(r).delete(n):e.delete(r),this},emit:function(r,n){if(process.env.NODE!=="production"){var a=r;!e.has(r)&&a!==0&&console.error("It seems that the menu you are trying to display is not renderer or you have a menu id mismatch.","You used the menu id: "+r)}return e.has(r)&&e.get(r).forEach(function(i){i(n)}),this}}}var d1=ZW();function JW(e){var t=U.useRef();return U.useEffect(function(){t.current=e},[e]),t.current}function QW(){return U.useRef(new Map).current}var tC={show:function(t){var r=t.id,n=t.event,a=t.props,i=t.position;n.preventDefault&&n.preventDefault(),d1.emit(0).emit(r,{event:n.nativeEvent||n,props:a,position:i})},hideAll:function(){d1.emit(0)}};function eV(e){return{show:function(r,n){process.env.NODE_ENV==="development"&&!(e!=null&&e.id)&&!(n!=null&&n.id)&&console.error("You need to provide an id when initializing the hook `useContextMenu({ id: 'your id' })` or when you display the menu `show(e, { id: 'your id' })`. The later is used to override the one defined during initialization."),tC.show({id:(n==null?void 0:n.id)||(e==null?void 0:e.id),props:(n==null?void 0:n.props)||(e==null?void 0:e.props),event:r,position:n==null?void 0:n.position})},hideAll:function(){tC.hideAll()}}}function tV(){var e=new Map,t,r,n,a,i=!1;function s(x){a=x,t=-1,n=!0}function o(){a[t].node.focus()}function u(){return t>=0&&a[t].isSubmenu}function l(){return Array.from(a[t].submenuRefTracker.values())}function f(){return t===-1?(d(),!1):!0}function d(){t+1<a.length?t++:t+1===a.length&&(t=0),i&&_(),o()}function p(){t===-1||t===0?t=a.length-1:t-1<a.length&&t--,i&&_(),o()}function v(){if(f()&&u()){var x=l(),w=a[t].node;return e.set(w,{isRoot:n,focusedIndex:t,parentNode:r||w,items:a}),w.classList.add("react-contexify__submenu--is-open"),r=w,x.length>0?(t=0,a=x):i=!0,n=!1,o(),!0}return!1}function _(){if(f()&&!n){var x=e.get(r),w=x.isRoot,C=x.items,E=x.focusedIndex,b=x.parentNode;r.classList.remove("react-contexify__submenu--is-open"),a=C,r=b,w&&(n=!0,e.clear()),i||(t=E,o())}}return{init:s,moveDown:d,moveUp:p,openSubmenu:v,closeSubmenu:_}}var c2=function(){};function rC(e){return typeof e=="function"}function nC(e){return typeof e=="string"}function rV(e){return e.type==="touchend"}function nV(e,t){return U.Children.map(U.Children.toArray(e).filter(Boolean),function(r){return U.cloneElement(r,t)})}function aV(e){var t={x:0,y:0};return rV(e)&&e.changedTouches&&e.changedTouches.length>0?(t.x=e.changedTouches[0].clientX,t.y=e.changedTouches[0].clientY):(t.x=e.clientX,t.y=e.clientY),(!t.x||t.x<0)&&(t.x=0),(!t.y||t.y<0)&&(t.y=0),t}function aC(e,t){return rC(e)?e(t):e}function iV(e){return!!(e&&(nC(e)||"exit"in e&&e.exit))}function sV(e,t){return rC(t)?T0({},e,t(e)):T0({},e,t)}var oV=function(t){var r,n=t.id,a=t.theme,i=t.style,s=t.className,o=t.children,u=t.animation,l=u===void 0?"scale":u,f=t.onHidden,d=f===void 0?c2:f,p=t.onShown,v=p===void 0?c2:p,_=QE(t,["id","theme","style","className","children","animation","onHidden","onShown"]),x=U.useReducer(sV,{x:0,y:0,visible:!1,triggerEvent:{},propsFromTrigger:null,willLeave:!1}),w=x[0],C=x[1],E=U.useRef(null),b=U.useRef(!1),h=JW(w.visible),g=QW(),y=U.useState(function(){return tV()}),S=y[0];U.useEffect(function(){return b.current=!0,d1.on(n,A).on(0,k),function(){d1.off(n,A).off(0,k)}},[n]),U.useEffect(function(){b.current&&w.visible!==h&&(w.visible?v():d())},[w.visible,d,v]),U.useEffect(function(){w.visible?S.init(Array.from(g.values())):g.clear()},[w.visible,S,g]),U.useEffect(function(){if(w.visible){var W=window,G=W.innerWidth,H=W.innerHeight,Q=E.current,K=Q.offsetWidth,te=Q.offsetHeight,se=w.x,le=w.y;se+K>G&&(se-=se+K-G),le+te>H&&(le-=le+te-H),C({x:se,y:le})}},[w.visible]),U.useEffect(function(){function W(G){switch(G.preventDefault(),G.key){case"Enter":S.openSubmenu()||k();break;case"Escape":k();break;case"ArrowUp":S.moveUp();break;case"ArrowDown":S.moveDown();break;case"ArrowRight":S.openSubmenu();break;case"ArrowLeft":S.closeSubmenu();break}}return w.visible&&(window.addEventListener("resize",k),window.addEventListener("contextmenu",k),window.addEventListener("click",k),window.addEventListener("scroll",k),window.addEventListener("keydown",W),process.env.NODE_ENV!=="development"&&window.addEventListener("blur",k)),function(){window.removeEventListener("resize",k),window.removeEventListener("contextmenu",k),window.removeEventListener("click",k),window.removeEventListener("scroll",k),window.removeEventListener("keydown",W),process.env.NODE_ENV!=="development"&&window.removeEventListener("blur",k)}},[w.visible,S]);function A(W){var G=W.event,H=W.props,Q=W.position;G.stopPropagation();var K=Q||aV(G),te=K.x,se=K.y;setTimeout(function(){C({visible:!0,willLeave:!1,x:te,y:se,triggerEvent:G,propsFromTrigger:H})},0)}function k(W){var G=W;typeof G<"u"&&(G.button===2||G.ctrlKey===!0)&&G.type!=="contextmenu"||(iV(l)?C(function(H){return{willLeave:H.visible}}):C(function(H){return{visible:H.visible?!1:H.visible}}))}function F(){w.willLeave&&w.visible&&C({visible:!1,willLeave:!1})}function P(){if(!l)return null;if(nC(l)){var W;return Dl((W={},W["react-contexify__will-enter--"+l]=l&&j&&!M,W["react-contexify__will-leave--"+l+" react-contexify__will-leave--'disabled'"]=l&&j&&M,W))}else if("enter"in l&&"exit"in l){var G;return Dl((G={},G["react-contexify__will-enter--"+l.enter]=l.enter&&j&&!M,G["react-contexify__will-leave--"+l.exit+" react-contexify__will-leave--'disabled'"]=l.exit&&j&&M,G))}return null}var j=w.visible,N=w.triggerEvent,I=w.propsFromTrigger,B=w.x,O=w.y,M=w.willLeave,V=Dl("react-contexify",s,(r={},r["react-contexify__theme--"+a]=a,r),P()),L=T0({},i,{left:B,top:O,opacity:1});return U.createElement(KW,{refTracker:g},j&&U.createElement("div",Object.assign({},_,{className:V,onAnimationEnd:F,style:L,ref:E,role:"menu"}),nV(o,{propsFromTrigger:I,triggerEvent:N})))},iC=function(t){var r,n=t.children,a=t.className,i=t.style,s=t.triggerEvent,o=t.data,u=t.propsFromTrigger,l=t.onClick,f=l===void 0?c2:l,d=t.disabled,p=d===void 0?!1:d,v=t.hidden,_=v===void 0?!1:v,x=QE(t,["children","className","style","triggerEvent","data","propsFromTrigger","onClick","disabled","hidden"]),w=XW(),C={data:o,triggerEvent:s,props:u},E=aC(p,C),b=aC(_,C);function h(A){C.event=A,E?A.stopPropagation():f(C)}function g(A){A&&!E&&w.set(A,{node:A,isSubmenu:!1})}function y(A){A.key==="Enter"&&(C.event=A,f(C))}if(b)return null;var S=Dl("react-contexify__item",a,(r={},r["react-contexify__item--disabled"]=E,r));return U.createElement("div",Object.assign({},x,{className:S,style:i,onClick:h,onKeyDown:y,ref:g,tabIndex:-1,role:"menuitem","aria-disabled":E}),U.createElement("div",{className:"react-contexify__item__content"},n))};const $s={box:"_box_1hwl6_2",transferSearch:"_transferSearch_1hwl6_2",searchBtn:"_searchBtn_1hwl6_10",shuttle_box:"_shuttle_box_1hwl6_44",leftSearch:"_leftSearch_1hwl6_58",noBeforeAfter:"_noBeforeAfter_1hwl6_62",rightSearch:"_rightSearch_1hwl6_78",transfer:"_transfer_1hwl6_2"},uV={content:"_content_1tmh1_1"},lV=U.forwardRef((e,t)=>{const{panes:r,loading:n,defaultActiveKey:a,onTabClick:i}=e,[s,o]=U.useState(a),{TabPane:u}=ue.Tabs;return n?R.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:R.jsx(bl,{})}):(U.useImperativeHandle(t,()=>({active:l=>{(i==null?void 0:i(l))!==!1&&o(l)}}),[s]),R.jsx("div",{className:`${uV.content} ${e.className??""}`,children:n?R.jsx("div",{style:{padding:"10px"}}):r.length?R.jsx(ue.Tabs,{animated:!1,activeKey:s,destroyInactiveTabPane:!0,tabBarGutter:30,onTabClick:l=>{(i==null?void 0:i(l))!==!1&&o(l)},children:(r||[]).map((l,f)=>R.jsx(u,{tab:R.jsxs("div",{style:{display:"flex",alignItems:"center",paddingBottom:"2px"},children:[l.icon&&R.jsx(gt,{style:{marginRight:"5px",fontSize:"16px"},type:`${l.icon}`}),R.jsx("div",{style:{fontSize:"12px",lineHeight:"18px"},children:l.tab})]}),children:R.jsx("div",{style:{padding:"0px"},children:U.Children.map(e.children,d=>{var p;return((p=d==null?void 0:d.props)==null?void 0:p["data-key"])==l.tabKey?d:null})})},`${l.tabKey}`))}):R.jsx(R.Fragment,{})}))}),cV=U.forwardRef((e,t)=>{var L;const r=e.defaultValue?Array.isArray(e.defaultValue)?e.defaultValue:[e.defaultValue]:[],n=e.defaultActiveKey||"",[a,i]=U.useState(!1),[s,o]=U.useState(),[u,l]=U.useState(r),[f,d]=U.useState([]),[p,v]=U.useState(n),[_,x]=U.useState({[n]:{left:1,right:1}}),[w,C]=U.useState({[n]:{left:0,right:0}}),[E,b]=U.useState(""),[h,g]=U.useState({right:"",left:""}),[y,S]=U.useState(!1),[A,k]=U.useState({});U.useEffect(()=>{l(r),v(n),x({[n]:{left:1,right:1}})},[e.defaultActiveKey,e.defaultValue]),U.useEffect(()=>{a?B():(l(r),o(void 0),v(n),x({[n]:{left:1,right:1}}),b(""),g({right:"",left:""}),k({}))},[a]);const F=Ua(h),P=Ua(_),j=Ua(p),N=Ua(w),I=U.useMemo(()=>{const W=()=>{var G;return s||((G=e.allListOptions)==null?void 0:G[j.current])||[]};return Ee.uniqBy([...W(),...f],"id")},[j,p,e.allListOptions,s,f]),B=async W=>{S(!0),await e.getListCodeItem(Object.assign({search:F.current,tabKey:j.current,pageNo:P},Ee.omit(W||{},"isPaging"))).then(G=>{G&&(W!=null&&W.isPaging?o([...I,...G]):o([...G]),C(Object.assign({},N.current,{[j.current]:{left:G.total||G.length,right:0}})))}).finally(()=>{S(!1)})};U.useEffect(()=>{d(I.filter(W=>u.includes(W.id)))},[u]);const O=async()=>{var W,G;if(e.mandatory&&!u.length)return ue.message.error(`${ie("sys.mustSelect.mustSelect",{placeholder:"必须选择"})}${(W=e.attr)==null?void 0:W.name}`);(G=A.ok)==null||G.call(A,[...u],p,f),i(!1)};U.useImperativeHandle(t,()=>({open(W){k(()=>W),i(!0)},submit:O,dataSource:I,targetKeys:u,loading:y}),[I,u,y]);const M=W=>{W=="left"?B():b(F.current.right)},V=U.useMemo(()=>{var W;return Array.isArray(e.columns)?e.columns:((W=e.columns)==null?void 0:W[p])||[]},[e.columns,p]);return R.jsx(Cu,{className:$s.shuttle_box,modalTitle:e.title,maskClosable:!1,destroyOnClose:!0,okText:ie("project.tab.plan.details.window.save",{placeholder:"保存"}),width:e.modalWidth||650,visible:a,mask:!1,onOk:O,onCancel:()=>{var W;(W=A.cancel)==null||W.call(A),i(!1)},children:R.jsx("div",{className:$s.transferBox,children:R.jsx(bl,{spinning:y,children:R.jsx(ue.Transfer,{...e.transfer||{},className:`${$s.transfer} ${((L=e.transfer)==null?void 0:L.className)??""}`,dataSource:I,targetKeys:u,onChange:(W,G,H)=>{G=="right"?l([...e.isRadio?H:W]):l([...W])},rowKey:W=>W.id,children:W=>{var Be,J,qe,_e,ze,We,De,ut;const{direction:G,filteredItems:H,onItemSelectAll:Q,onItemSelect:K,selectedKeys:te,showSearch:se}=W,le=G=="left",ge=!le,ye={onSelectAll(Ye,it){if(e.isRadio)return;const Je=it.filter(xt=>!xt.disabled).map(({id:xt})=>xt),Xe=Ye?Ee.difference(Je,te):Ee.difference(te,Je);Q(Xe,Ye)},onSelect({id:Ye},it){e.isRadio&&te.splice(0,1),K(Ye,it)},getCheckboxProps:Ye=>({disabled:Ye.Number&&!ja.readPermission(Ye.Number)?!0:le?Ye.disabled:!1}),selectedRowKeys:te,columnWidth:13};(Be=e==null?void 0:e.pager)!=null&&Be[p];const be=()=>le?H:H.filter(Ye=>Ye.label.includes(E)||Ye.Description.includes(E));return R.jsxs("div",{className:$s.box,style:e.scroll?{width:"360px"}:{},children:[le&&e.panes&&((J=e.panes)==null?void 0:J.length)!=1?R.jsx(lV,{panes:e.panes,defaultActiveKey:p,onTabClick:Ye=>{var Je;v(Ye),(Je=e.onTabsChange)==null||Je.call(e,Ye);const it={...h,[G]:""};g(it),P.current[Ye]||x(Object.assign({},P.current,{[Ye]:{left:1,right:1}})),B({tabKey:Ye,search:it})}}):null,se?R.jsx("div",{style:e.scroll?{padding:"12px",borderLeft:"1px solid #E0E0E0",borderTop:"1px solid #E0E0E0",borderRight:"1px solid #E0E0E0"}:{padding:"0px"},children:R.jsx("div",{className:`${e.scroll?$s.noBeforeAfter:""} ${$s.transferSearch} ${le&&((qe=e.panes)!=null&&qe.length)?$s.leftSearch:(_e=e.panes)!=null&&_e.length?$s.rightSearch:""}`,style:e.scroll?{margin:"0px"}:{},children:R.jsx(ue.Input.Search,{placeholder:e.placeholder||ie("sys.nameOrDescription.enterNameOrDescription",{placeholder:"请输入名称或描述"}),enterButton:null,value:h[G],onChange:Ye=>{Ye.persist();const it=Ye.target.value;g({...h,[G]:it}),ge&&(it||b(""))},onSearch:M.bind(null,G),suffix:R.jsx("div",{className:$s.searchBtn,onClick:M.bind(null,G),children:R.jsx(gt,{type:"homesearch"})})})})}):null,R.jsx(p1,{rowSelection:{type:"checkbox",fixed:!0,...ye},columns:V,showSorterTooltip:!1,hideFooter:!0,pagination:!1,dataSource:be(),scroll:{x:((ze=e.scroll)==null?void 0:ze.x)||300,y:((We=e.scroll)==null?void 0:We.y)||(le&&((De=e.panes)!=null&&De.length)?270:316)},style:{height:"100%"},pageNo:_[p][G],pageSize:le?20:void 0,total:le?(ut=w==null?void 0:w[p])==null?void 0:ut[G]:void 0,size:"small",onScroll:Ye=>{const it={..._,[p]:{..._[p],[G]:Ye}};x(it),le&&B({pageNo:it[p],isPaging:!0})},onRow:({id:Ye,disabled:it,...Je})=>({onClick:()=>{if(!it&&le){if(e.isRadio&&te.splice(0,1),!ja.readPermission(Je.Number))return;K(Ye,!te.includes(Ye))}},onDoubleClick:()=>{if(ja.readPermission(Je.Number)){if(le)it||(e.isRadio?l([Ye]):l([Ye,...u]));else{for(let Xe=0;Xe<u.length;Xe++)if(u[Xe]==Ye){u.splice(Xe,1);break}l([...u])}Q([],!1)}}})}),e.showFooter?R.jsxs("div",{style:{marginTop:"4px"},children:[R.jsx("span",{style:{color:"#999999"},children:ie("sys.selected",{placeholder:"已选"})})," ",R.jsx("span",{style:{margin:"0px 2px",color:"#333333"},children:te.length})," ",R.jsx("span",{style:{color:"#999999"},children:ie("project.tab.plan.criticalPath.window.item",{placeholder:"条"})}),",",R.jsx("span",{style:{color:"#999999"},children:ie("project.tab.plan.criticalPath.window.total",{placeholder:"共"})})," ",R.jsx("span",{style:{margin:"0px 2px",color:"#333333"},children:ge?u.length:w[p][G]}),R.jsxs("span",{style:{color:"#999999"},children:[" ",ie("project.tab.plan.criticalPath.window.item",{placeholder:"条"})]})]}):R.jsx(R.Fragment,{})]})}})})})})}),sC=U.forwardRef(({selectProps:e,value:t,onChange:r,readOnly:n},a)=>{var _,x;const i=U.useRef(null),{attr:s,allListOptions:o,popoverTransfer:u}=e,l=pu(()=>{var w;(w=i.current)==null||w.open({ok:(C,E,b)=>{var h,g;["multiple","tags"].includes(e.mode)?r==null||r(C):r==null||r(C[0]),(h=u==null?void 0:u.onSubmit)==null||h.call(u,C,E,y=>d({newVal:C,allOptions:y}),b),(g=e.onBlur)==null||g.call(e)},cancel:()=>{var C;(C=e.onBlur)==null||C.call(e)}})});U.useImperativeHandle(a,()=>({focus:l}),[]);const f=U.useMemo(()=>{var C;const w=((C=u==null?void 0:u.panes)==null?void 0:C.map(E=>E.tabKey))||[String(s==null?void 0:s.listCode)];return Object.entries(o||{}).map(([E,b])=>w.includes(E)?b:[]).flat(1)},[s,o,u==null?void 0:u.panes]),d=pu(({allOptions:w,newVal:C})=>{var h;const E=((h=u==null?void 0:u.panes)==null?void 0:h.map(g=>g.tabKey))||[s==null?void 0:s.listCode];let b=[];return Object.entries(w||o||{}).some(([g,y])=>{if(E.includes(g))return y.some(S=>{if(C&&(C==null?void 0:C.length)>1)return C.includes(S.value)&&!b.includes(g)&&b.push(g),!1;{const A=S.value==((C==null?void 0:C[0])||t);return A&&(b=[g]),A}})}),b.filter(Boolean).join(",")}),p=U.useMemo(()=>{var C;const w=((C=u==null?void 0:u.panes)==null?void 0:C.map(E=>E.tabKey))||[s==null?void 0:s.listCode];return w.length==1?w[0]:d({}).split(",")[0]},[t,o,u==null?void 0:u.panes]),v=U.useMemo(()=>typeof t=="string"?t.split(","):t,[t]);return R.jsxs("div",{children:[R.jsx(ou,{...e,style:Object.assign({},e.style||{},{width:"100%"}),className:` ${e.className}`,value:v,filterOption:(w,C)=>C.label&&C.label.indexOf(w)>=0,showSearch:!0,disabled:n,options:f.map(w=>({...w,label:ja.readPermission(w.label)?w.label:ie("sys.noPermission",{placeholder:"无权限"})})),allowClear:!0,optionLabelProp:"label",open:!1,onChange:w=>{["multiple","tags"].includes(e.mode)?r==null||r(w):w&&w instanceof Array?r==null||r(w[0]):r==null||r("")},tagRender:({label:w})=>ja.readPermission(w)?R.jsx(ue.Tag,{color:"#0563B2",children:w}):R.jsx(zi,{}),onDropdownVisibleChange:l,onClear:()=>{["multiple","tags"].includes(e.mode)?r==null||r(""):r==null||r([])}}),R.jsx(cV,{title:`${ie("project.tab.plan.transfer.title",{placeholder:"选择"})}${s.name}`,...Object.assign(Object.create(null),u),ref:i,attr:s,defaultActiveKey:p||((x=(_=u==null?void 0:u.panes)==null?void 0:_[0])==null?void 0:x.tabKey)||"",defaultValue:v,allListOptions:o})]})}),h1={shuttle_box:"_shuttle_box_1962p_1",box:"_box_1962p_5",search:"_search_1962p_8"};function oC(e){const t=U.useRef(!1),r=U.useRef({}),n=u=>{if(typeof e=="function"){const l=e();return!u&&(r.current=l),Object.assign(Object.create(null),l)}else{const l=e;return!u&&(r.current=l),Object.assign(Object.create(null),e)}},[a,i]=U.useState(n(!0));U.useEffect(()=>(typeof e=="function"?r.current=e():r.current=e,t.current=!1,()=>{t.current=!0}),[]);const s=u=>{if(!t.current)if(typeof u=="function"){const l=Object.assign(Object.create(null),u(a)||a);r.current=l,i(l)}else{const l=Object.assign(Object.create(null),r.current,u);r.current=l,i(l)}},o=()=>i(n());return Gt.makeDestructurable({store:a,setStore:s,resetStore:o,latestStore:r},[a,s,o,r])}const uC=U.forwardRef((e,t)=>{var w,C,E,b;e.defaultValue&&(Array.isArray(e.defaultValue)?e.defaultValue:e.defaultValue);const r=e.rowKey||"id",n=!((w=e.attr)!=null&&w.allowMultiple),a=!!((C=e.attr)!=null&&C.required),{store:i,setStore:s,resetStore:o,latestStore:u}=oC(()=>({visible:!1,search:"",sorters:"",filters:"",loading:!1,dataSource:[],selectedRows:[],callback:()=>{}})),l=oC(()=>({pageNo:1,pageSize:50,total:0})),f=async h=>{s({loading:!0});try{const{data:g,total:y}=await e.getDataSource({search:u.current.search,sorters:u.current.sorters,filters:u.current.filters,...l.latestStore.current,record:e.record});s(h?{dataSource:[...i.dataSource,...g]}:{dataSource:g}),l.setStore({total:y})}catch(g){console.log(g)}finally{s({loading:!1})}},d=U.useMemo(()=>i.selectedRows.map(h=>h[r]),[i.selectedRows]);U.useEffect(()=>{i.visible?f().finally(()=>{}):(o(),l.resetStore())},[i.visible]);const p=pu(async h=>{var g,y,S;if(a&&!h&&!i.selectedRows.length){ue.message.error(ie("project.attr.edit.roleOrOwner.msg",{placeholder:"请选择{name}",variate:{name:(g=e.attr)==null?void 0:g.name}}));return}(S=(y=u.current.callback).ok)==null||S.call(y,h?[h[r]]:d),s({visible:!1})});U.useImperativeHandle(t,()=>({open(h){s({callback:h,visible:!0})},submit:p,dataSource:i.dataSource,loading:i.loading}),[i.dataSource,i.loading]);const v=()=>{f()},_={onSelectAll(h,g){n||s({selectedRows:g})},onSelect(h,g){n?g?s({selectedRows:[h]}):a||s({selectedRows:[]}):s(g?{selectedRows:[...i.selectedRows,h]}:{selectedRows:i.selectedRows.filter(y=>y[r]!=h[r])})},getCheckboxProps:h=>({disabled:!1}),selectedRowKeys:d,columnWidth:13},x=U.useMemo(()=>e.generateColumns(u),[e.generateColumns]);return U.useEffect(()=>{const h=Ee.debounce(g=>{(g.keyCode||g.which)==13&&u.current.visible&&g.target.dataset.search!="true"&&p()},200);return window.addEventListener("keyup",h),()=>{window.removeEventListener("keyup",h)}},[]),R.jsx(Cu,{className:h1.shuttle_box,modalTitle:e.title,maskClosable:!1,destroyOnClose:!0,okText:ie("project.tab.plan.details.window.save",{placeholder:"保存"}),styleUnify:!0,width:e.modalWidth||660,visible:i.visible,mask:!1,onOk:p,onCancel:()=>{var h,g;s({visible:!1}),(g=(h=u.current.callback).cancel)==null||g.call(h)},footer:null,children:R.jsx("div",{onScroll:h=>h.stopPropagation(),onScrollCapture:h=>h.stopPropagation(),children:R.jsx(bl,{spinning:i.loading,children:R.jsxs("div",{className:h1.box,children:[R.jsx("div",{children:R.jsx("div",{className:`${h1.search}`,children:R.jsx(ue.Input.Search,{placeholder:ie("sys.prompt.enterName",{placeholder:"请输入姓名"}),enterButton:null,"data-search":!0,...e.searchProps,suffix:R.jsx("div",{className:h1.searchBtn,onClick:v,children:R.jsx(gt,{type:"homesearch"})}),value:i.search,onChange:h=>s({search:h.target.value}),onSearch:v})})}),R.jsx(p1,{rowSelection:{type:"checkbox",fixed:!0,..._},columns:x,showSorterTooltip:!1,dataSource:i.dataSource,scroll:{x:(E=e.scroll)==null?void 0:E.x,y:((b=e.scroll)==null?void 0:b.y)||300},style:{height:"100%"},...l.store,size:"small",onScroll:h=>{l.setStore({pageNo:h}),f(!0)},onFilterAndSorter:(h,g)=>{s({sorters:h,filters:g}),f()},onRow:(h,...g)=>({onClick:()=>{console.log(h,g,"FFFFFFFFFFFF")},onDoubleClick:()=>{p(h)}})})]})})})})}),lC=U.forwardRef(({selectProps:e,value:t,onChange:r,readOnly:n},a)=>{const i=U.useRef(null),{attr:s,allListOptions:o,selectPopupProps:u,record:l}=e,f=pu(()=>{var v;(v=i.current)==null||v.open({ok:_=>{var x,w,C;["multiple","tags"].includes(e.mode)?(r==null||r(_),(x=e.onChange)==null||x.call(e,_,o[s.listCode]||[])):((w=e.onChange)==null||w.call(e,_[0],o[s.listCode]||[]),r==null||r(_[0])),(C=e.onBlur)==null||C.call(e)},cancel:()=>{var _;(_=e.onBlur)==null||_.call(e)}})});U.useImperativeHandle(a,()=>({focus:f}),[]);const d=U.useMemo(()=>Ee.omit(e,["popoverProps","attr","allListOptions"]),[e]),p=U.useMemo(()=>typeof t=="string"?t.split(","):t,[t]);return R.jsxs("div",{children:[R.jsx(ou,{...d,style:Object.assign({},e.style||{},{width:"100%"}),className:` ${e.className}`,value:p,filterOption:(v,_)=>_.label&&_.label.indexOf(v)>=0,showSearch:!0,disabled:n,options:o[s.listCode]||[],allowClear:e.allowClear==null?!0:e.allowClear,optionLabelProp:"label",open:!1,loading:e.loading,onDropdownVisibleChange:f}),R.jsx(uC,{title:`${ie("project.tab.plan.transfer.title",{placeholder:"选择"})}${s.name}`,...Object.assign(Object.create(null),u),ref:i,attr:s,record:l,defaultValue:p})]})}),f2=[null,(e,t)=>(e=Me(`${e.format("YYYY-MM-DD")} 00:00:00`),t.valueOf()<e.valueOf()),(e,t)=>(e=Me(`${e.format("YYYY-MM-DD")} 23:59:59`),t.valueOf()<=e.valueOf()),(e,t)=>(e=Me(`${e.format("YYYY-MM-DD")} 23:59:59`),t.valueOf()>e.valueOf()),(e,t)=>(e=Me(`${e.format("YYYY-MM-DD")} 00:00:00`),t.valueOf()>=e.valueOf()),(e,t)=>t.valueOf()==e.valueOf()];function fV(e,t){const r=n=>{var i;if(!n.date||!n.type)return n.isWorkTime?!n.isWorkTime({date:new Date(t.valueOf())}):!1;const a=Me(n.date);return((i=f2[n.type])==null?void 0:i.call(f2,a,Me(t)))||(n==null?void 0:n.isWorkTime)&&!n.isWorkTime({date:new Date(t.valueOf())})};return Array.isArray(e)?e.map(a=>r(a)).some(a=>a):r(e)}const cC={dem:"3Shape DCM (*.dcm)",sat:"ACIS (*.sat;*.asat;*.sab;*.asab)",sab:"ACIS (*.sat;*.asat;*.sab;*.asab)",asab:"ACIS (*.sat;*.asat;*.sab;*.asab)",pd:"Cadds (_pd;*._pd)",zip:"zip",model:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",dlv:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",dlv3:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",exp:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",CATDrawing:"Catia V5 2D (*.CATDrawing)",CATPart:"Catia V5 3D (*.CATPart;*.CATProduct)",CATProduct:"Catia V5 3D (*.CATPart;*.CATProduct)","3dxml":"Catia V6/3DEXPERIENCE 3D (*.3dxml)",art:"Cercon (*.art)",sdt:"Cerec - Sirona (*.sdt;*.cdt;*.idt)",cdt:"Cerec - Sirona (*.sdt;*.cdt;*.idt)",idt:"Cerec - Sirona (*.sdt;*.cdt;*.idt)",cgr:"CGR (*.cgr)",ol:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",ed:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",edz:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",pvz:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",pvs:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",dwg:"DWG 2D (*.dwg)",dxf:"DWG/DXF 3D (*.dwg;*.dxf)",fbx:"FBX (*.fbx)",f3d:"Fusion 360 (*.f3d)",ifc:"IFC (*.ifc;*.ifcxml;*.ifczip)",ifexml:"IFC (*.ifc;*.ifcxml;*.ifczip)",ifezip:"IFC (*.ifc;*.ifcxml;*.ifczip)",igs:"IGES 3D (*.igs;*.iges)",iges:"IGES 3D (*.igs;*.iges)",jt:"JT (*.jt)",nwd:"Navisworks (*.nwd)",obj:"OBJ (*.obj)",xmt:"PARASOLID (*.x_t;*.x_b;*.xmt_txt;*.xmt_bin)",x_t:"PARASOLID (*.x_t;*.x_b;*.xmt_txt;*.xmt_bin)",x_b:"PARASOLID (*.x_t;*.x_b;*.xmt_txt;*.xmt_bin)",xmt_txt:"PARASOLID (*.x_t;*.x_b;*.xmt_txt;*.xmt_bin)",xmt_bin:"PARASOLID (*.x_t;*.x_b;*.xmt_txt;*.xmt_bin)",plmxml:"PLM XML (*.plmxml)","03s":"Procera (*.c3s)",drw:"ProE/Creo Parametric 2D (*.drw;*.drw.*)",xpr:"ProE/Creo Parametric 3D (*.prt;*.prt.*;*.xpr;*.asm;*.asm.*;*.xas)",asm:"ProE/Creo Parametric 3D (*.prt;*.prt.*;*.xpr;*.asm;*.asm.*;*.xas)",xas:"ProE/Creo Parametric 3D (*.prt;*.prt.*;*.xpr;*.asm;*.asm.*;*.xas)",rvt:"Revit (*.rvt;*.rfa)",rfa:"Revit (*.rvt;*.rfa)","3dm":"Rhino (*.3dm)",rf:"Robface (*.rf)",smg:"SMG (*.smg;*.smggeom)",smggeom:"SMG (*.smg;*.smggeom)",dft:"Solid Edge 2D (*.dft)",par:"Solid Edge 3D (*.par;*.psm;*.asm;*.pwd)",psm:"Solid Edge 3D (*.par;*.psm;*.asm;*.pwd)",pwd:"Solid Edge 3D (*.par;*.psm;*.asm;*.pwd)",slddrw:"SolidWorks 2D (*.slddrw)",sldprt:"SolidWorks 3D (*.sldprt;*.sldasm)",sldasm:"SolidWorks 3D (*.sldprt;*.sldasm)",step:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",stp:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",stpz:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",stpx:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",stpxz:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",stpnc:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",stl:"STL (*.stl)",prt:"UG NX 3D (*.prt)",vda:"VDAFS (*.vda)","03S":"Procera (*.c3s)","3DM":"Rhino (*.3dm)","3DXML":"Catia V6/3DEXPERIENCE 3D (*.3dxml)",ART:"Cercon (*.art)",ASAB:"ACIS (*.sat;*.asat;*.sab;*.asab)",ASM:"ProE/Creo Parametric 3D (*.prt;*.prt.*;*.xpr;*.asm;*.asm.*;*.xas)",CATDRAWING:"Catia V5 2D (*.CATDrawing)",CATPART:"Catia V5 3D (*.CATPart;*.CATProduct)",CATPRODUCT:"Catia V5 3D (*.CATPart;*.CATProduct)",CDT:"Cerec - Sirona (*.sdt;*.cdt;*.idt)",CGR:"CGR (*.cgr)",DEM:"3Shape DCM (*.dcm)",DFT:"Solid Edge 2D (*.dft)",DLV:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",DLV3:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",DRW:"ProE/Creo Parametric 2D (*.drw;*.drw.*)",DWG:"DWG 2D (*.dwg)",DXF:"DWG/DXF 3D (*.dwg;*.dxf)",ED:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",EDZ:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",EXP:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",F3D:"Fusion 360 (*.f3d)",FBX:"FBX (*.fbx)",IDT:"Cerec - Sirona (*.sdt;*.cdt;*.idt)",IFC:"IFC (*.ifc;*.ifcxml;*.ifczip)",IFEXML:"IFC (*.ifc;*.ifcxml;*.ifczip)",IFEZIP:"IFC (*.ifc;*.ifcxml;*.ifczip)",IGES:"IGES 3D (*.igs;*.iges)",IGS:"IGES 3D (*.igs;*.iges)",JT:"JT (*.jt)",MODEL:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",NWD:"Navisworks (*.nwd)",OBJ:"OBJ (*.obj)",OL:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",PAR:"Solid Edge 3D (*.par;*.psm;*.asm;*.pwd)",PD:"Cadds (_pd;*._pd)",PLMXML:"PLM XML (*.plmxml)",PRT:"UG NX 3D (*.prt)",PSM:"Solid Edge 3D (*.par;*.psm;*.asm;*.pwd)",PVS:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",PVZ:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",PWD:"Solid Edge 3D (*.par;*.psm;*.asm;*.pwd)",RF:"Robface (*.rf)",RFA:"Revit (*.rvt;*.rfa)",RVT:"Revit (*.rvt;*.rfa)",SAB:"ACIS (*.sat;*.asat;*.sab;*.asab)",SAT:"ACIS (*.sat;*.asat;*.sab;*.asab)",SDT:"Cerec - Sirona (*.sdt;*.cdt;*.idt)",SLDASM:"SolidWorks 3D (*.sldprt;*.sldasm)",SLDDRW:"SolidWorks 2D (*.slddrw)",SLDPRT:"SolidWorks 3D (*.sldprt;*.sldasm)",SMG:"SMG (*.smg;*.smggeom)",SMGGEOM:"SMG (*.smg;*.smggeom)",STL:"STL (*.stl)",STEP:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",STP:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",STPNC:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",STPX:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",STPXZ:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",STPZ:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",VDA:"VDAFS (*.vda)",XAS:"ProE/Creo Parametric 3D (*.prt;*.prt.*;*.xpr;*.asm;*.asm.*;*.xas)",XMT:"PARASOLID (*.x_t;*.x_b;*.xmt_txt;*.xmt_bin)",XPR:"ProE/Creo Parametric 3D (*.prt;*.prt.*;*.xpr;*.asm;*.asm.*;*.xas)"},dV=U.forwardRef((e,t)=>{const r=U.useRef(),n=["Input","Input.TextArea","Number","CompositeForm"],a=["Select","Date","Cascader","TreeSelect","DatePicker.RangePicker","Image","File"],i=e.formprops.type;U.useImperativeHandle(t,()=>({focusFormItem:()=>{var u;i!=="File"&&i!=="Image"&&((u=r.current)==null||u.focus())},blurFormItem:()=>{var u;i!=="File"&&i!=="Image"&&((u=r.current)==null||u.blur())}}));const s=U.useMemo(()=>{var f,d;const u=p=>(p==null?void 0:p.closest(p2))||document.body||document.documentElement;(f=e==null?void 0:e.formprops)!=null&&f.props&&!e.formprops.props.getPopupContainer&&(e.formprops.props.getPopupContainer=u);let l={getPopupContainer:u};return n.includes(i)?l={...e.formprops.props,size:"small",onPressEnter:()=>{e.onSave&&e.onSave()},onBlur:()=>{e.onSave&&e.onSave()}}:a.includes(i)&&(l={...e.formprops.props,size:"small",onChange:((d=e.formprops)==null?void 0:d.props.mode)==="multiple"||e.formprops.props.treeCheckable?void 0:e.onSave,onBlur:e.onSave,onClick:p=>{p.stopPropagation()}}),e.formprops.formatFormProps?e.formprops.formatFormProps(l,e.record,e.apicode):l},[e.record,e.formprops,e.onSave]),o=()=>{var l;let u={...s};if(e.apicode==="NewVersion")return u.options&&u.options[e.record.insId][0]&&!((l=u.options[e.record.insId][0])!=null&&l.value)||u.options&&!u.options[e.record.insId][0]?(u={...u,onPressEnter:()=>{e.onSave&&e.onSave()},onBlur:()=>{e.onSave&&e.onSave()},onChange:void 0},R.jsx(ue.Input,{ref:r,...u})):R.jsx(ue.Select,{ref:r,filterOption:(f,d)=>d.label&&d.label.indexOf(f)>=0,showSearch:!0,allowClear:!0,...Ee.assign(u,{options:Ee.uniqBy(u.options?u.options[e.record.insId]:[],"value").length===1?Ee.uniqBy(u.options[e.record.insId],"value").map(f=>({label:f.label.replace(ie("sys.majorVersion",{placeholder:"大版本"}),"").replace(ie("sys.minorVersion",{placeholder:"小版本"}),""),value:f.value})):Ee.uniqBy(u.options&&u.options[e.record.insId]?u.options[e.record.insId]:[],"value")})});switch(i){case"Input":return R.jsx(ue.Input,{ref:r,...u});case"DatePicker.RangePicker":return R.jsx(ue.DatePicker.RangePicker,{...u});case"Select":if(e.apicode==="exchanger"||e.apicode==="NewLifePhase"||e.apicode==="NewVersion"||e.apicode==="ProblemVersion"){if(e.apicode==="NewLifePhase"&&u.options&&u.options[e.record.insId]&&(u.options[e.record.insId]=u.options[e.record.insId].filter(p=>!p.noShow).map(p=>vo.isChangeInstruction(p.itemcode)?{...p,disabled:p.sort<e.record.lifecycle.sort&&!["10007010","10007006","10007014"].includes(String(e.record.lifecycle.code))||!p.status}:vo.isStatusChange(p.itemcode)?vo.isFile(e.record.itemCode)?{...p,disabled:!p.status}:{...p,disabled:p.sort<=e.record.lifecycle.sort&&e.record.lifecycle.apicode!=="Obsolete"||!p.status||e.record.lifecycle.apicode==="Obsolete"&&p.apicode=="Obsolete"}:{...p,disabled:!p.status||p.code==10007022})),e.apicode==="ProblemVersion"&&u.options&&u.options[e.record.insId]&&(u.options[e.record.insId]=u.options[e.record.insId].filter(p=>p.value!="Draft").map(p=>({...p}))),e.apicode==="exchanger"&&u.options&&u.options[cC[e.record.extension]]){const p=u.options[cC[e.record.extension]].map(v=>({label:v,value:v}));return R.jsx(ue.Select,{ref:r,filterOption:(v,_)=>_.label&&_.label.indexOf(v)>=0,showSearch:!0,allowClear:!0,...u,options:p})}return R.jsx(ue.Select,{ref:r,filterOption:(p,v)=>v.label&&v.label.indexOf(p)>=0,showSearch:!0,allowClear:!0,...Ee.assign(u,{options:Ee.uniqBy(u.options?u.options[e.record.insId]:[],"value").length===1?Ee.uniqBy(u.options[e.record.insId],"value").map(p=>({label:p.label.replace(ie("sys.majorVersion",{placeholder:"大版本"}),"").replace(ie("sys.minorVersion",{placeholder:"小版本"}),""),value:p.value})):Ee.uniqBy(u.options&&u.options[e.record.insId]?u.options[e.record.insId]:[],"value")})})}else{if(e.apicode==="AffectRevision")return u.options&&u.options[e.record.insId]&&(u.options[e.record.insId]=u.options[e.record.insId].filter(p=>p.value.indexOf("(")==-1).map(p=>({...p}))),R.jsx(ue.Select,{ref:r,filterOption:(p,v)=>v.label&&v.label.indexOf(p)>=0,showSearch:!0,allowClear:!0,...Ee.assign(u,{options:u.options&&u.options[e.record.insId]?u.options[e.record.insId]:[]})});if(e.apicode==="NewStatus")return u.options.forEach(p=>{var v;!((v=e==null?void 0:e.record)!=null&&v.publishTime)&&(p.apicode==="Disable"||p.apicode==="Scrap")?p.disabled=!0:p.disabled=!1,(p.apicode==="Initial"||p.apicode==="Draft")&&(p.disabled=!0)}),R.jsx(ue.Select,{ref:r,filterOption:(p,v)=>v.label&&v.label.indexOf(p)>=0,showSearch:!0,allowClear:!0,...u});if(u!=null&&u.selectPopupProps)return R.jsx(lC,{ref:r,selectProps:{...u,record:e.record}});if(u!=null&&u.popoverTransfer||u!=null&&u.popoverTable)return R.jsx(sC,{ref:r,selectProps:u})}return R.jsx(ue.Select,{ref:r,filterOption:(p,v)=>v.label&&v.label.indexOf(p)>=0,showSearch:!0,allowClear:!0,...u});case"Cascader":return R.jsx(ue.Cascader,{ref:r,showSearch:{filter:(p,v)=>v.some(_=>_.label&&_.label.toLowerCase().indexOf(p.toLowerCase())>-1),matchInputWidth:!1},...u});case"Date":const f=e.record.forbiddenTime,d=f&&f[e.name];return R.jsx(ue.DatePicker,{ref:r,...u,disabledDate:d?p=>fV(f[e.name],p):void 0});case"Number":return R.jsx(ue.InputNumber,{ref:r,...u});case"Input.TextArea":return R.jsx(ue.Input.TextArea,{ref:r,...u});case"TreeSelect":return R.jsx(ue.TreeSelect,{ref:r,...u});case"CompositeForm":return R.jsx(f0,{...u});default:return R.jsx(ue.Input,{ref:r,...u})}};return R.jsx(ue.Form.Item,{noStyle:!0,name:e.name,children:o()})}),fC={imgOuter:"_imgOuter_16ygq_1",imgInner:"_imgInner_16ygq_9"},dC=e=>R.jsx(ue.Image,{...e,src:e.src}),d2=e=>R.jsx("div",{className:fC.imgOuter,children:R.jsx(dC,{preview:!1,src:e.src,className:fC.imgInner,placeholder:R.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:R.jsx(gt,{className:"rotate",style:{cursor:"pointer",color:"#0563b2"},type:"loading"})}),height:e.height||"46px",width:e.width||"46px"})}),Dt=class Dt{static avoid0TypeConvert(t){return Gt.avoid0TypeConvert(t)}static isEqual(t,r){function n(a){return Me.isMoment(a)?Gt.momentToRawData(a):a??""}return t=n(t),r=n(r),Ee.isNil(t)&&Ee.isNil(r)||Ee.isNaN(t)&&Ee.isNaN(r)?!0:t instanceof Object?Ee.isEqual(t,r):this.avoid0TypeConvert(t)==this.avoid0TypeConvert(r)}static getCellSignState(t,r){const n=t.optType==="update"||t.optType==="replace",a=t.inProcess&&!Ee.isNil(t.inProcess[r])&&!Ee.isNil(t.inProcess)&&Dt.isEqual(t.inProcess[r],t[r]),i=t.newVal&&!Ee.isNil(t.newVal[r])&&!Ee.isNil(t.newVal)&&Dt.isEqual(t.newVal[r],t[r]);return{hasOptType:n,hasInProcess:a,hasNewValue:i}}static getRowSignState(t,r){const n=t.optType==="update"||t.optType==="replace",a=t.inProcess?Object.keys(t.inProcess):[],i=t.newVal?Object.keys(t.newVal):[],s=a.map(u=>{const l=t.inProcess[u],f=t[u],d=Dt.isEqual(l,f);return r==null||r("inProcess",u,d,l,f),d}).some(u=>!u),o=i.map(u=>{const l=t.newVal[u],f=t[u],d=Dt.isEqual(l,f);return r==null||r("newVal",u,d,l,f),d}).some(u=>!u);return{hasOptType:n,hasInProcess:s,hasNewValue:o}}static isEmptyValue(t){return typeof t=="number"?!1:Ee.isEmpty(t)}static sortAndFilterTable(t){const{tableColumns:r,originTableColumns:n,sortersField:a,tabInfo:i={}}=t;let{sorters:s,filters:o}=t;const u=vo.isUser(i.itemCode||""),l=i.tab==="Delegate";if(u&&l&&o){const f=r.filter(p=>["ChangeCategory"].includes(p.apicode)).map(p=>p.dataIndex),d=Ee.map(o.split("~!~"),p=>Ee.split(p,"-")[0]);Ee.includes(d,f[0])?o.split("~!~").map(p=>{if(f.includes(p.split("-")[0])){const v=p.split("-")[1].split(",");v&&Array.isArray(v)&&(Ee.remove(v,_=>_==""||_==null),r.map(_=>(_.apicode==="Category"&&Ee.forEach(_.formitem.props.options,x=>{Ee.includes(v,x.itemCode)?x.isHidden=!1:x.isHidden=!0,v.length==0&&(x.isHidden=!1)}),_)))}}):r.map(p=>(p.apicode==="Category"&&Ee.forEach(p.formitem.props.options,v=>{v.isHidden=!1}),p))}if(i.tab!=="History"){const f=r.filter(p=>p.dataFrom==="1").map(p=>p.dataIndex),d=r.filter(p=>p.dataFrom==="0"||p.dataFrom==="2").map(p=>p.dataIndex);if(s&&Object.values(FIX_INS_TAbTABLE_COLUMNMAP).includes(s.split("-")[0])){const p=Dt.getFixAttrFilterOrSortInfo({filterOrSort:s,attrs:n||r.map(v=>v.attr)});s=(p==null?void 0:p.value)||s}else f.includes(s.split("-")[0])?s=s?`attributes.${s}`:"":d.includes(s.split("-")[0])&&(s=s?`current.${s}`:"");if(o){const p=r.filter(v=>["OldVersion"].includes(v.apicode)).map(v=>v.dataIndex);o=o.split("~!~").map(v=>{if(console.log(v,"item"),p.includes(v.split("-")[0]))return`current.${v.split("-")[0]}-${v.split("-")[1]===ie("sys.label.draft",{placeholder:"草稿"})?"Draft":`${v.split("-")[1]} `}`;if(Object.values(FIX_INS_TAbTABLE_COLUMNMAP).includes(v.split("-")[0])){const _=Dt.getFixAttrFilterOrSortInfo({filterOrSort:v,attrs:n||r.map(x=>x.attr)});return(_==null?void 0:_.value)||o}if(f.includes(v.split("-")[0]))return v?`attributes.${v}`:"";if(d.includes(v.split("-")[0]))return v?`current.${v}`:""}).join("~!~")}}if(i.tab==="VersionRecord"&&n){const f=Gt.transformArrayToMap(n,"apicode","id");s=s.replace("insVersionOrder",`attributes.${f.Revision}`),o=o.replace("insVersionOrder",`attributes.${f.Revision}`)}return{sorters:s,filters:o,sortersField:a}}static monitoringCol(t,r){var u;const n=()=>{};if(!t)return n;const a=(u=t.querySelector(".frontend-table-header"))==null?void 0:u.querySelector("colgroup");if(!a)return n;const i=a.querySelector(".frontend-table-selection-col"),s=t.querySelector(".frontend-table-body").querySelector("colgroup");let o=null;return i&&(o=new MutationObserver(async(l,f)=>{const[d]=l;if(d.type=="attributes"&&d.attributeName=="style"&&!i.inhibit&&!Ee.isNil(r)){i.inhibit=!0;const p=r;if(p!=i.offsetWidth){const v=Number(p)-i.offsetWidth,_=a.children.length-2,x=Ee.round(v/_,2);Array.from(a.children,(w,C)=>{const E=s.children[C];if(w==i)w.setAttribute("style",`width:${p}px;max-width:${p}px;`),E.setAttribute("style",`width:${p}px;max-width:${p}px;`);else if(C!=a.children.length-1){const b=w.style.width.replace("px","");w.setAttribute("style",`width:${Number(b)+x}px;`),E.setAttribute("style",`width:${Number(b)}px;`)}})}}else i.inhibit=!1}),o.observe(i,{attributeFilter:["style"]})),()=>{o==null||o.disconnect(),o=null}}static getFixAttrFilterOrSortInfo({filterOrSort:t,attrs:r}){let n,a;const i=t.indexOf("-");if(i!==-1?(n=t.substring(0,i),a=t.substring(i+1)):(n=t,a=""),Object.values(FIX_INS_TAbTABLE_COLUMNMAP).includes(n)){const[s]=Object.entries(FIX_INS_TAbTABLE_COLUMNMAP).find(([o,u])=>n==u)||[];if(s){const o=Gt.getAttrOf(r,s);if(o){o.apicode==="Version"&&(a=a===ie("sys.label.draft",{placeholder:"草稿"})?"Draft":`${a} `);const u=Rl.getAttributesMapId(o),l=Rl.isQuoteAttr(o)?"attributes":"current";return{apicode:s,id:u,attr:o,filterOrSortValue:a,prefix:l,value:`${l}.${u}-${a}`}}}}}};gr(Dt,"getTrulyHighlight",({formitem:t,highlight:r})=>{const n=["Input","Input.TextArea","Select","SelectTransfer","Date","Cascader","TreeSelect","Number"],i=(()=>{var o;return r&&r[0]?Ee.isArray(r[0])&&t?(o=t.props)!=null&&o.treeCheckable||t.props.mode==="multiple"?Dt.renderReadonlyItem({value:r[0],formitem:t}).split(","):Dt.renderReadonlyItem({value:r[0],formitem:t}):Me.isMoment(r[0])?[Me(r[0]).format("YYYY-MM-DD")]:r:[]})()||[],s=n.includes(t==null?void 0:t.type)||!t;return{trulyHighlight:s?i:r||[],needTransform:s}}),gr(Dt,"wrapperHighLight",({highlight:t,formitem:r,value:n,originValue:a})=>{if(ja.isMosaic(a))return R.jsx(zi,{});const{trulyHighlight:i,needTransform:s}=Dt.getTrulyHighlight({highlight:t,formitem:r});return s?R.jsx(fo,{highlight:i,value:n}):n}),gr(Dt,"renderCacheCell",(t,r,n,a,i)=>{if(t.optType==="update"||t.optType==="replace"){if(t.newVal&&(t.newVal[r]||!Ee.isNil(t.newVal[r])))if(Dt.isEqual(t.newVal[r],t[r])){if(Dt.isEqual(t.newVal[r],t[r]))return R.jsx("div",{style:{width:"100%"},children:R.jsx("div",{className:bi.updated_style,children:a?a({value:t.newVal[r],formitem:n,row:t.newVal}):Dt.wrapperHighLight({originValue:t.newVal[r],value:Dt.renderReadonlyItem({value:t.newVal[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})})})}else return R.jsxs("div",{style:{width:"100%"},children:[R.jsx("div",{className:bi.updated_style,children:a?a({value:t.newVal[r],formitem:n,row:t.newVal}):Dt.wrapperHighLight({originValue:t.newVal[r],value:Dt.renderReadonlyItem({value:t.newVal[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})}),R.jsx("div",{className:bi.update_style,children:a?a({value:t[r],formitem:n,row:t}):Dt.wrapperHighLight({originValue:t[r],value:Dt.renderReadonlyItem({value:t[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})})]});if(t.inProcess&&t.inProcess[r]!==void 0&&t.inProcess!==null&&!Dt.isEqual(t.inProcess[r],t[r]))return R.jsxs("div",{style:{width:"100%"},children:[R.jsx("div",{className:bi.updated_redline_style,children:a?a({value:t.inProcess[r],formitem:n,row:t.inProcess}):Dt.wrapperHighLight({originValue:t.inProcess[r],value:Dt.renderReadonlyItem({value:t.inProcess[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})}),R.jsx("div",{className:bi.update_style,children:a?a({value:t[r],formitem:n,row:t}):Dt.wrapperHighLight({originValue:t[r],value:Dt.renderReadonlyItem({value:t[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})})]})}return t.newVal&&t.newVal[r]!==void 0&&t.newVal!==null&&!Dt.isEqual(t.newVal[r],t[r])?R.jsxs("div",{style:{width:"100%"},children:[R.jsx("div",{className:bi.updated_style,children:a?a({value:t.newVal[r],formitem:n,row:t.newVal}):Dt.wrapperHighLight({originValue:t.newVal[r],value:Dt.renderReadonlyItem({value:t.newVal[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})}),R.jsx("div",{className:bi.update_style,children:a?a({value:t[r],formitem:n,row:t}):Dt.wrapperHighLight({originValue:t[r],value:Dt.renderReadonlyItem({value:t[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})})]}):R.jsx("div",{style:{width:"100%",overflow:"hidden",textOverflow:"ellipsis"},children:a?a({value:t[r],formitem:n,row:t}):Dt.wrapperHighLight({originValue:t[r],value:Dt.renderReadonlyItem({value:t[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})})}),gr(Dt,"renderReadonlyItem",({apicode:t,formitem:r,value:n,record:a})=>{var i,s,o,u,l,f;if(!r)return n;if(!r.type)return"";if(["Select","Cascader"].includes(r.type))return r.props.mode==="multiple"?Ee.isArray(n)&&n instanceof Array?n.map(d=>Gt.getLabelInOptions({value:d,options:(r==null?void 0:r.props.options)||[]})).join(","):n&&typeof n=="string"?n.split(",").map(d=>Gt.getLabelInOptions({value:d,options:(r==null?void 0:r.props.options)||[]})).join(","):"":Gt.getLabelInOptions({value:n,options:(r==null?void 0:r.props.options)||[]});if(["TreeSelect"].includes(r.type))return(i=r.props)!=null&&i.treeCheckable&&Ee.isArray(n)&&n instanceof Array?n.map(d=>Gt.getLabelInOptions({value:typeof d!="string"?d.value:d,options:(r==null?void 0:r.props.treeData)||[]})).join(","):Gt.getLabelInOptions({value:n,options:(r==null?void 0:r.props.treeData)||[]});if(["Date"].includes(r.type))if(n)if(Me.isMoment(n)){const p=n.creationData();return n.format(((s=r==null?void 0:r.props)==null?void 0:s.format)??p.format)}else return Me(n).format(((o=r==null?void 0:r.props)==null?void 0:o.format)??"YYYY-MM-DD HH:mm:ss");else return"";else return["Image"].includes(r.type)?n&&!Ee.isArray(n)?R.jsx(ue.Popover,{placement:"right",content:R.jsx("div",{style:{height:"60px",width:"60px"},children:n?R.jsx(d2,{src:`/api${n}`}):R.jsx(R.Fragment,{})}),trigger:"hover",children:R.jsx("div",{style:{height:"26px",width:"26px"},children:n?R.jsx(d2,{src:`/api${n}`}):R.jsx(R.Fragment,{})})}):"":["CompositeForm"].includes(r.type)?n&&typeof n=="string"?(u=String(n))!=null&&u.includes("~%~")?`${n.split("~%~")[0]||""}${((f=Ee.find((l=r.props)==null?void 0:l.options,{id:n.split("~%~")[1]}))==null?void 0:f.name)||""}`:n:"":r.isbomtag&&!Ee.isArray(n)&&!(n instanceof Array)?n?Gt.renderBomTag(n):"":Ee.isArray(n)&&n instanceof Array?n.join(","):n??""}),gr(Dt,"renderRowClassName",t=>{const r=[];let n="";return t.shear&&r.push("shear-row"),t.optType==="add"?n="add-redline-row":t.optType==="del"&&(n="del-row"),t.dataType==="add"?n="add-row":t.dataType==="del"&&(n="del-row"),`${r.join(" ")} ${n}`}),gr(Dt,"renderVersionColumn",(t,r)=>ja.isMosaic(t)?R.jsx(zi,{}):t==="Draft"||Ee.isString(t)&&t.split(" ")[0]==="Draft"?R.jsx(fo,{highlight:r||[],value:ie("sys.label.draft",{placeholder:"草稿"})}):R.jsx(fo,{highlight:r||[],value:Ee.isString(t)?t.replace(/[()]/g,"").split(" ")[0]:""}));let Us=Dt;const hV=({title:e,editable:t,children:r,dataIndex:n,record:a,handleSave:i,handleCellSelected:s,handleFill:o,handleDoubleClick:u,renderCacheCell:l,loading:f,required:d,formitem:p,rowKey:v,render:_,tableKey:x,menuId:w,highlight:C,isVersion:E,isUser:b,preRender:h,apicode:g,canselectcell:y,selectedCell:S,fillContextMenu:A,setInitialState:k,...F})=>{var Be,J,qe;const P=U.useContext(sf),[j,N]=U.useState(!1),I=U.useContext(pC),B=U.useRef(null),O=["Input","Input.TextArea","Number"];y&&S&&(S==null?void 0:S.dataIndex)===n&&(S==null?void 0:S.record[v])==a[v]&&(S==null?void 0:S.tableKey)==x&&(F.style={...F.style,background:"#ddeffe"}),U.useEffect(()=>{var _e,ze;j?(_e=B.current)==null||_e.focusFormItem():(ze=B.current)==null||ze.blurFormItem()},[j]);const M=_e=>{for(;_e&&_e.nodeName!=="TR";)_e=_e.parentNode;return _e},V=async(_e,ze)=>{var ut,Ye,it;const We=()=>{if(!(!e&&!n)&&ze){const Je=new MouseEvent("dblclick",{bubbles:!0,cancelable:!1});M(ze==null?void 0:ze.target)&&M(ze==null?void 0:ze.target).dispatchEvent(Je)}};if(p&&p.props&&p.props.disabled||!p||p.props&&!p.props){We();return}if(_e?u&&await u(a):!0){if(await I.validateFields(),_e){let Je=a.newVal&&!Ee.isNil(a.newVal[n])?a.newVal[n]:a.inProcess&&!Ee.isNil(a.inProcess[n])?a.inProcess[n]:a[n];if((p==null?void 0:p.type)==="Date"){const Xe=(ut=p.props)==null?void 0:ut.format;Je=Je?Me(Je,typeof Xe=="string"?Xe:"YYYY-MM-DD HH:mm:ss"):null}((p==null?void 0:p.type)==="TreeSelect"&&((Ye=p==null?void 0:p.props)!=null&&Ye.treeCheckable)||(p==null?void 0:p.type)==="Select"&&((it=p==null?void 0:p.props)==null?void 0:it.mode)==="multiple")&&(Je==""?Je=[]:typeof Je=="string"&&(Je=Je.split(","))),I.setFieldsValue({[n]:Je})}N(!j)}else We()},L=async()=>{try{const _e=await I.validateFields();V(),Object.keys(_e).forEach(ze=>{(_e[ze]===null||_e[ze]===void 0)&&(_e[ze]=""),typeof _e[ze]=="string"&&(_e[ze]=_e[ze].trim())}),i({...a,..._e})}catch{}},W=(_e,ze)=>l||R.jsx("div",{className:bi.edit_cell,children:R.jsx(fo,{value:Us.renderReadonlyItem({value:_e[ze],formitem:p}),highlight:le})}),{show:G}=eV({id:w}),H=()=>{y&&(s(),k&&k(_e=>({..._e,selectedCell:{dataIndex:n,record:a,tableKey:x}})))},Q=_e=>{if(n){if(H(),_e.preventDefault(),p&&p.props&&p.props.disabled||!p||p.props&&!p.props)return;G(_e,{props:{key:{dataIndex:n,record:a}}})}};let K=r;const te=a?a[n]:"",se=U.Children.map(r,_e=>{var ze;if(U.isValidElement(_e)){const We=(ze=_e==null?void 0:_e.props)==null?void 0:ze.children;return!We||!Array.isArray(We)?null:We.some(ut=>{const Ye=ut==null?void 0:ut.props;return Ye&&typeof Ye.className=="string"?Ye.className.includes("frontend-table-row-indent"):!1})?We:null}else return null});if(!ja.readPermission(te))return R.jsxs("td",{...F,children:[se,R.jsx(zi,{inLine:!0})]});const{trulyHighlight:le}=Us.getTrulyHighlight({highlight:C,formitem:p});if(b){const _e=(P==null?void 0:P.overrideLinkCom)||"a";K=R.jsx(_e,{userId:a[n],id:a[n],record:a,content:Us.renderReadonlyItem({value:a[n],formitem:p}),highlight:le})}else if(t){if(p.type==="Date"){const _e=(Be=p.props)==null?void 0:Be.format,ze=typeof _e=="string";let We,De;if(Me.isMoment(a[n])){const ut=a[n].creationData();We=ut==null?void 0:ut.input,De=ut==null?void 0:ut.format}a[n]=a[n]?Me(We||a[n],ze?_e:De||"YYYY-MM-DD HH:mm:ss"):null}if(((J=p.props)!=null&&J.treeCheckable||((qe=p.props)==null?void 0:qe.mode)==="multiple")&&typeof a[n]=="string"&&(a[n]=a[n]?a[n].split(","):[]),j)K=R.jsx("div",{onDoubleClick:_e=>{_e.stopPropagation()},children:R.jsx(ue.Form.Item,{validateTrigger:O.includes(p.type)?"blur":"onChange",style:{margin:0},name:n,children:R.jsx(dV,{name:n,ref:B,onSave:()=>L(),formprops:p,record:a,apicode:g})})});else if(!_){let _e=W(a,n);K=R.jsxs("div",{onContextMenu:A===!1?void 0:Q,title:a.newVal?Us.renderReadonlyItem({value:a.newVal[n],formitem:p}):Us.renderReadonlyItem({value:a[n],formitem:p}),className:"editable-cell-value-wrap",style:{paddingRight:24},children:[se,_e]})}}else if(n&&!_)return E?R.jsx("td",{...F,title:a&&a[n]?a[n]==="Draft"?ie("sys.label.draft",{placeholder:"草稿"}):a[n]:"",onClick:H,children:R.jsx(fo,{value:a&&a[n]?a[n]==="Draft"?ie("sys.label.draft",{placeholder:"草稿"}):a[n]:"",highlight:le})}):R.jsx("td",{...F,title:a&&a[n]?a[n]:"",onClick:H,children:R.jsx(fo,{value:a?Ee.isNil(a[n])?"":a[n]:"",highlight:le})});const ge=K==null?void 0:K.toString(),ye=Array.isArray(K)&&K[0]===void 0,be=ge!=null&&ge.includes("[object ")?void 0:ye?ge==null?void 0:ge.replace(/^\,/,""):ge;return R.jsx("td",{...F,onDoubleClick:_e=>{_e.stopPropagation(),V(!0,_e)},onClick:()=>{n&&H()},children:R.jsx("div",{title:be,style:{width:"100%",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},children:K})})},pV=()=>{function e(){return((1+Math.random())*65536|0).toString(16).substring(1)}return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()},mV=e=>R.jsxs(oV,{id:e.menuId,children:[R.jsx(iC,{onClick:t=>{e.onFill&&e.onFill("up",t.props.key)},children:ie("sys.prompt.fillUp",{placeholder:"向上填充"})}),R.jsx(iC,{onClick:t=>{e.onFill&&e.onFill("down",t.props.key)},children:ie("sys.prompt.fillDown",{placeholder:"向下填充"})})]}),gV=e=>{const[t,r]=U.useState({}),[n,a]=U.useState({}),i=U.useRef(null),{Option:s}=ue.Select,o=(p,v)=>{r(p),a(v)};return{getColumnSearchProps:U.useCallback((p,v)=>{const _=()=>{var E,b;return typeof(v==null?void 0:v.title)=="string"?v==null?void 0:v.title:(b=(E=v==null?void 0:v.search)==null?void 0:E.props)==null?void 0:b.placeholder},x=(E,b,h)=>{b()},w=(E,b)=>{E(),b()},C=(E,b,h)=>{var S,A;const g={size:"small",onChange:k=>{k&&k.target?E(k.target.value?[k.target.value]:[]):E(k?[k]:[])},style:{marginBottom:8,display:"block"}},y=R.jsx(ue.Input,{size:"small",ref:i,placeholder:ie("project.create.attr.verify.scheduledDate.input",{placeholder:"请输入{content}",variate:{content:_()}}),value:b[0],onPressEnter:()=>x(b,h),...Ee.omit(g,["size"])});if(v.search)switch(v.search.type){case"Input":return y;case"Select":let k=(A=(S=v==null?void 0:v.search)==null?void 0:S.props)==null?void 0:A.options;return v.apicode==="ProblemVersion"&&(k=Ee.uniqBy(Ee.flatten(Object.values(k||{})),"value")||[],k=k.map(F=>({label:F.label==="Draft"?ie("sys.label.draft",{placeholder:"草稿"}):F.label,value:F.value}))),k=(k||[]).filter(F=>ja.readPermission(F.label)),R.jsx(ue.Select,{size:"small",onKeyUp:F=>{(F.keyCode===13||F.charCode==13)&&x(b,h)},ref:i,mode:"multiple",placeholder:`${ie("sys.label.selectOption",{placeholder:"请选择"})} ${_()}`,value:b[0],filterOption:(F,P)=>P.label&&P.label.indexOf(F)>=0,...Ee.omit(g,["size"]),children:(k||[]).map(F=>{if(!F.isHidden)return U.createElement(s,{...F,value:F.value,disabled:F.disabled,key:F.value,label:F.label},R.jsx("div",{title:F.label,style:{width:"100%",overflow:"hidden",textOverflow:"ellipsis"},children:F.label}))})});case"Date":return R.jsx(ue.DatePicker,{size:"small",value:b[0],...Ee.omit(g,["size"])});case"CompositeForm":return R.jsx("div",{className:"compositeFormClass",children:R.jsx(f0,{...v.formitem.props,valueType:v.valueType,value:b[0],size:"small",...Ee.omit(g,["size"])})})}else return y};return v.search?{filterIcon:E=>R.jsx(yl,{style:{color:E?"#0563B2":void 0}}),filterDropdown:({setSelectedKeys:E,selectedKeys:b,confirm:h,clearFilters:g})=>R.jsxs("div",{style:{padding:8},children:[R.jsx("div",{style:{marginBottom:"5px"},children:C(E,b,h)}),R.jsxs(ue.Space,{children:[R.jsx(ue.Button,{type:"primary",onClick:()=>x(b,h),icon:R.jsx(yl,{}),size:"small",style:{width:90},children:ie("sys.filter",{placeholder:"筛选"})}),R.jsx(ue.Button,{onClick:()=>w(g,h),size:"small",style:{width:90},children:ie("sys.action.reset",{placeholder:"重置"})})]})]}),onFilterDropdownVisibleChange:E=>{E&&(v.search.type==="Input"||v.search.type==="Select")&&setTimeout(()=>{var b;return(b=i==null?void 0:i.current)==null?void 0:b.focus()},100)}}:{}},[]),setTableFiltered:p=>{o(p.sort(t),p.screen(n))},clearFilters:p=>{o({},{}),e&&e("","","",{},{isFooterRefresh:p==null?void 0:p.isFooterRefresh})},onFiltersChange:(p,v,_,x)=>{a(v),r(_),o(_,v);let w="",C="";Ee.isArray(_)?_&&_.length&&(w=_.map(b=>`${b.field}-${b.order}`).join(",")):_.field&&_.order&&(w=`${_.field}-${_.order==="ascend"?"asc":"desc"}`);const E=b=>b.map(h=>Array.isArray(h)?h.join(","):Me.isMoment(h)?h.format("YYYY-MM-DD"):h);C=Ee.remove(Object.keys(v).map(b=>v[b]&&typeof v[b][0]=="string"||typeof v[b]!="string"&&v[b]&&v[b][0]?`${b}-${E(v[b]||[]).join(",")}`:null),b=>b!==null).join("~!~"),e&&e(w,C,_.field,v)},sortInfo:t,filterInfo:n}},vV=e=>{var s,o;const t=((s=e.dataSource)==null?void 0:s.length)||0,r=e.total||0,n=e.rowSelection&&e.rowSelection.selectedRowKeys?(o=e.rowSelection.selectedRowKeys)==null?void 0:o.length:0,a={overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},i=R.jsx(gt,{type:"update",isBackend:!0,style:{fontSize:"12px",marginLeft:"8px",color:"#999999"},onClick:()=>{e.clearFilters&&e.clearFilters({isFooterRefresh:!0})}});return e.hideFooter?R.jsx(R.Fragment,{}):R.jsxs("div",{className:`${bi.table_footer} ${e.className||""}`,children:[e.hideTableCount?R.jsx("div",{}):e.customRender?e.customRender({tableDataLen:t,total:r,selectedLen:n,boxStyles:a,refreshNode:i}):R.jsxs("div",{style:a,children:[ie("project.tab.plan.criticalPath.window.total",{placeholder:"共"}),R.jsxs("span",{children:[" ",t,"/",r," "]}),ie("project.tab.plan.quantityDisplay.select",{placeholder:"条"}),","," ",ie("sys.selected",{placeholder:"已选"}),R.jsx("span",{children:` ${n} `}),ie("project.tab.plan.quantityDisplay.select",{placeholder:"条"}),i]}),e.enterFullscreen&&R.jsx("div",{children:R.jsx(gt,{type:"a-front-fitscreen",style:{fontSize:"12px",color:"#999999"},isBackend:!0,onClick:()=>{e.enterFullscreen&&e.enterFullscreen()}})})]})},xV=(e,t,r,n,a,i,s)=>{var h;const[o,u]=U.useState(!1),[l,f]=U.useState(0),[d,p]=U.useState(e.columns||[]),[v,_]=U.useState(null),[x,w]=U.useState(null),C=g=>(y,{size:S})=>{y.stopImmediatePropagation();const A=[...d];A[g]={...A[g],width:S.width},p(A)};U.useEffect(()=>{p(e.columns)},[e.columns]);const E=Number(((h=e==null?void 0:e.scroll)==null?void 0:h.y)||i)+24;return{renderColumns:d?d.filter(g=>g).map((g,y)=>Ee.extend({...g,sorter:g.sorter?{}:!1,required:g.editable?g.required:!1,sortOrder:t.field===g.dataIndex&&t.order,filteredValue:r?r[g.dataIndex]||[]:[],onHeaderCell:S=>({dataIndex:g.dataIndex,width:S.width,required:g.required,editable:g.editable,trulyHeight:E,tableKey:e.tableKey,formitem:g.formitem,onResize:C(y),onResizeOver:A=>{f(A.screenX),u(!0)},onResizeStop:A=>{console.log(A),u(!1)}}),onCell:S=>{var F,P;const A=((F=g==null?void 0:g.onCell)==null?void 0:F.call(g,S))||{},k=(typeof e.rowKey=="string"?e.rowKey:(P=e.rowKey)==null?void 0:P.call(e,S))||"id";return{record:S,className:`${g.className??""} ${g.dataIndex==x&&S[k]==v?bi.loading:""}`,editable:g.editable,isVersion:g.isVersion,isUser:g.isUser,apicode:g.apicode,dataIndex:g.dataIndex,title:g.title,formitem:g.formitem,required:g.required,canselectcell:e.canselectcell,rowKey:e.rowKey||"id",tableKey:e.tableKey,menuId:n,render:g.render,highlight:r[g.dataIndex],fillContextMenu:e.fillContextMenu,selectedCell:s,renderCacheCell:Us.renderCacheCell(S,g.dataIndex,g.formitem,void 0,{highlight:r[g.dataIndex]}),handleCellSelected:()=>{e.onSelectCell&&e.onSelectCell()},handleDoubleClick:j=>{if(e.onDoubleClick){const N=e.onDoubleClick(g,j);return N instanceof Promise&&(_(S[k]),w(g.dataIndex),N.finally(()=>{_(null),w(null)})),N}else return!0},handleSave:j=>{e.onSubmit&&e.onSubmit(j,g)},...A}}},a(g.dataIndex,g))):[]}},hC="INPUT_NAMESPACE",_V=(e,t,r,n)=>{const[a,i]=U.useState();function s(o){const u=o.toString(),l=u.indexOf(".");return l===-1?0:u.slice(l+1).length}return U.useEffect(()=>{async function o(u){var v,_,x,w,C,E,b,h,g,y;if(u.target instanceof HTMLInputElement&&((_=(v=u.target)==null?void 0:v.dataset)==null?void 0:_.type)!=hC||u.target instanceof HTMLTextAreaElement||!u.target.closest(`.${p2}`)){console.log("is Input or TextArea or not Table");return}u.preventDefault();let l=(x=u.clipboardData)==null?void 0:x.getData("text");const f=await Promise.resolve().then(()=>Dfe);if(l&&r&&n){var d=f.read(l,{type:"binary"}),p=d.SheetNames;const S=f.utils.sheet_to_json(d.Sheets[p[0]],{header:1,raw:!1,defval:"",blankrows:!0}),A=n.findIndex(P=>{var j,N,I;return P.dataIndex==r.dataIndex&&P.editable&&(((j=P.formitem)==null?void 0:j.type)=="Input"||((N=P.formitem)==null?void 0:N.type)=="Input.TextArea"||((I=P.formitem)==null?void 0:I.type)=="Number")});let k=n.findIndex((P,j)=>{var N,I,B;return j>A&&(!P.editable||!(((N=P.formitem)==null?void 0:N.type)=="Input"||((I=P.formitem)==null?void 0:I.type)=="Input.TextArea"||((B=P.formitem)==null?void 0:B.type)=="Number"))});k==-1&&(k=n.length);const F=n.slice(A,k);if(F.length>0){const P=S.map(j=>j.filter(N=>j.indexOf(N)<F.length))||[];for(let j=0;j<P.length;j++){const N=P[j]||[];for(let I=0;I<N.length;I++){const B=N[I],O=((w=F[I].formitem)==null?void 0:w.type)=="Number",M=(E=(C=F[I].formitem)==null?void 0:C.props)==null?void 0:E.precision,V=(h=(b=F[I].formitem)==null?void 0:b.props)==null?void 0:h.min,L=(y=(g=F[I].formitem)==null?void 0:g.props)==null?void 0:y.max;if(O){const W=Ee.toNumber(B),G=W&&(V?W>=V:!0)&&(L?W<=L:!0)&&(Ee.isNumber(M)&&M>0?s(W)<=M:!0);N[I]=G?W:void 0}}}i(P)}}}return document.addEventListener("paste",o),()=>{document.removeEventListener("paste",o)}},[r,n]),{pasteData:a}},yV=e=>`${e}Key`,h2=e=>e.keyCode==17?"ctrl":e.keyCode==18?"alt":e.keyCode==91?"meta":e.keyCode==16?"shift":e.key,bV=(e,{shortcuts:t,namespace:r})=>{const n="+",a=(...o)=>`${e}+${o.join(n)}`,i=Ua(t),s=Ua(Ee.fromPairs(i.current.map(([o,u])=>[a(...o),u])));U.useEffect(()=>{console.log("初始化 useShortcutKey");const o=()=>i.current.map(([v])=>v).flat(1),u=v=>{var _,x,w;(!r||((_=v.target)==null?void 0:_.id)==r)&&(l.push(h2(v)),(w=(x=s.current)[l.join(n)])==null||w.call(x,v))},l=[],f={},d=v=>{var _;if(!r||((_=v.target)==null?void 0:_.id)==r){const x=h2(v);v[yV(e)]&&!f[x]&&(f[x]=!0,o().includes(v.key)&&l.includes(e)&&v.preventDefault(),u(v))}},p=v=>{const _=h2(v);f[_]=!1,l.pop()};return window.addEventListener("keyup",p),window.addEventListener("keydown",d),()=>{window.removeEventListener("keyup",p),window.removeEventListener("keydown",d)}},[])},wV=(e,t)=>{const[r,n]=U.useState(!0),{clipboard:a,dataSource:i=[],rowSelection:s}=e,{selectedRowKeys:o=[]}=s||{},{childKeyName:u="children",isMark:l=!0,initialState:f,setInitialState:d}=a||{},p=String(e.rowKey||"id"),[v,_]=U.useState(!1),x=()=>v&&o.length,w=g=>y=>{x()&&g(y)},C=async(g,y)=>{var A;const S=[];S.type="shear",S.namespace=t,y.forEach(k=>{Gt.isDelTableRow(k)||S.push({...k,toShear:()=>k.shear=!0})}),Gt.ArrayAttributeFlat(S,u,k=>{k.toShear||(k.shear=!0)}),(!g.onBeforeShear||await g.onBeforeShear(S))&&(S.forEach(k=>{k.toShear(),delete k.toShear}),console.log("剪切",S),d&&d(k=>({...k,clipboard:S})),g.setDataSource("shear",i),(A=g.onAfterShear)==null||A.call(g,S),S.length&&(S.onPasteCallback=async k=>{var N;const F=k==t,P=[...i],j=()=>{d&&d(I=>({...I,clipboard:[]})),[...S].reverse().forEach(I=>{const B=Gt.getTreeRelationNoRecursion({data:P,lookup:O=>O[p]==I[p],childrenKey:u});l&&B.self.dataType!=="add"?(B.self.shear=!1,B.self.dataType="del",Gt.ArrayAttributeFlat(B.self[u],u,O=>{O.toShear||(O.shear=!1,O.dataType="del")})):B.parent?B.parent[u].splice(B.index,1):P.splice(B.index,1)}),g.setDataSource("shear",P)};return!g.onBeforeDeleteShear||await g.onBeforeDeleteShear({isSameSpace:F,deletes:S})?(j(),(N=g.onAfterDeleteShear)==null||N.call(g,{isSameSpace:F,deletes:S}),Promise.resolve(P)):Promise.reject(ie("sys.operation.cutFailed",{placeholder:"剪切失败"}))}))},E=async(g,y)=>{var A;const S=[];S.type="copy",S.namespace=t,y.forEach(k=>{Gt.isDelTableRow(k)||(k.shear=!1,Gt.ArrayAttributeFlat(k[u],u,F=>{F.shear=!1}),S.push({...k}))}),(!g.onBeforeCopy||await g.onBeforeCopy(S))&&(console.log("复制",S),d&&d(k=>({...k,clipboard:S})),g.setDataSource("paste",i),(A=g.onAfterCopy)==null||A.call(g,S))},b=async(g,{pasteData:y,pasteTarget:S})=>{var k,F;const A=Gt.ArrayAttributeFlat(y,u).every(P=>!S.includes(P[p]));if(console.log({isNonSelf:A}),S.length==1&&y.length&&A){const j=Gt.ArrayAttributeFlat(i,u).find(I=>I[p]==S[0]),N=g.pasteInto||"child";if(!g.onBeforePaste||await g.onBeforePaste({target:j,rows:y,type:N}))try{const I=await((k=y.onPasteCallback)==null?void 0:k.call(y,t))||[...i],B=Gt.getTreeRelationNoRecursion({data:I,lookup:O=>O[p]==j[p],childrenKey:u});if(l){const O=M=>M.map(V=>Object.assign({...V,shear:!1,dataType:"add",[p]:Gt.generateUUID(),primitiveInsId:V.primitiveInsId||V[p]},V[u]?{[u]:O(V[u].filter(L=>!M.some(W=>W[p]==L[p]))||[])}:{}));y=O(y)}if(N=="child"){const O=B.self[u];B.self[u]=[...O,...y]}else B.parent?B.parent[u].splice(B.index+1,0,...y):I.splice(B.index+1,0,...y);g.setDataSource("paste",I),(F=g.onAfterPaste)==null||F.call(g,{target:j,type:N})}catch(I){console.error(I)}}};a&&bV(Gt.isMac()?"meta":"ctrl",{shortcuts:[[["x"],w(async()=>{const g=Gt.ArrayAttributeFlat(i,u).filter(y=>o.includes(y[p]));console.log({shearList:g}),C(a,g)})],[["c"],w(async()=>{const g=Gt.ArrayAttributeFlat(i,u).filter(y=>o.includes(y[p]));console.log({copyList:g}),E(a,g)})],[["v"],w(async()=>{const g=(f==null?void 0:f.clipboard)||[];b(a,{pasteData:g,pasteTarget:o})})]],namespace:t});const h=U.useRef(null);return U.useEffect(()=>{var g;r||((g=h.current)==null||g.focus(),_(!0))},[o.length,o[0]]),U.useEffect(()=>{n(!1)},[]),{namespace:t,isGainFocus:v,focus:()=>{var y;const g=document.querySelector(":focus");g instanceof HTMLInputElement||g instanceof HTMLTextAreaElement||(y=h.current)==null||y.focus()},shear:C,copy:E,paste:b,FocusDom:R.jsx("input",{ref:h,"data-type":hC,type:"text",id:t,onFocus:()=>_(!0),onBlur:()=>_(!1),readOnly:!0,style:{opacity:0,position:"fixed",left:"-100%",top:"-100%",zIndex:"-10"}})}},SV=(e,t,r,n)=>{const[a,i]=U.useState();return U.useEffect(()=>{async function s(o){if(r){const u=o.clipboardData,l=r.dataIndex,f=r.record;let d=null;if(f.newVal&&Object.hasOwn(f.newVal,l)?d=f.newVal[l]:d=f[l]||null,d)try{u.setData("text/plain",d),i(d),o.preventDefault()}catch(p){console.error("Failed to write to clipboard: ",p)}}}return document.addEventListener("copy",s),()=>{document.removeEventListener("copy",s)}},[r,n]),{copyData:a}},pC=U.createContext(null),p2="tableTopBox",p1=U.forwardRef((e,t)=>{var P;U.useImperativeHandle(t,()=>({scrollTo:j=>{i.current.scrollTo(j)},scrollXTo:j=>{if(a.current){const N=a.current.querySelector(".frontend-table-body");N&&(N.scrollLeft=j)}},clearFilters:f,setTableFiltered:v,clipboard:F}));const[r]=U.useState(Gt.generateUUID()),n=U.useRef(null),a=U.useRef(null),i=U.useRef(null),[s]=ue.Form.useForm(),o=pV(),{sortInfo:u,filterInfo:l,clearFilters:f,getColumnSearchProps:d,onFiltersChange:p,setTableFiltered:v}=gV(e.onFilterAndSorter),[_,{toggleFullscreen:x,exitFullscreen:w}]=F4(a,{pageFullscreen:{zIndex:500}}),C=e.tableKey||r;U.useEffect(()=>{const j=N=>{N.key=="Escape"&&_&&w()};return addEventListener("keydown",j),()=>{removeEventListener("keydown",j)}});const E=HW({hideFooter:!!e.hideFooter,contentRef:n,tableRef:a,scroll:e.scroll,fullScreenMinusHeight:e.fullScreenMinusHeight||0,scrollUpdate:e.scrollUpdate,onTableHeightChange:e==null?void 0:e.onTableHeightChange},!!e.isFullscreen||_),[b,h]=zW(()=>({scroll:{y:1e3},ref:i}),[]),g={header:{cell:YW},body:{cell:hV}};U.useMemo(()=>h(g),[h]);const{renderColumns:y}=xV({...e,tableKey:C},u,l,o,d,E,e.selectedCell),{pasteData:S}=_V(a,e.dataSource,e.selectedCell,e.columns);U.useEffect(()=>{var j;if(S&&e.selectedCell){const N=e.dataSource||[],I=String(e.rowKey)||"id",B=N.findIndex(H=>{var Q;return H[I]==((Q=e.selectedCell)==null?void 0:Q.record[I])}),O=e.columns.findIndex(H=>{var Q;return H.dataIndex==((Q=e.selectedCell)==null?void 0:Q.dataIndex)});let M=((j=S[0])==null?void 0:j.length)||0,V=(S==null?void 0:S.length)||0;const L=e.columns.slice(O,O+M),W=N.slice(B,B+V);let G=[];S.forEach((H,Q)=>{if(W.length>Q){const K={};H.forEach((te,se)=>{L.length>se&&(K[L[se].dataIndex]=te,K[I]=W[Q][I])}),G.push(K)}}),e.onPaste&&e.onPaste(Gt.transformArrayToMap(G,I))}},[S]);const{copyData:A}=SV(a,e.dataSource,e.selectedCell,e.columns);U.useEffect(()=>{A&&e.selectedCell&&e.onCopy&&e.onCopy(A)},[A]);const{run:k}=oM(async j=>{const N=e.pageNo||1,I=e.pageSize||10,B=e.total||0;Math.abs(parseInt(j.target.scrollTop+j.target.clientHeight)-j.target.scrollHeight)<1.5&&!e.loading&&N*I<B&&e.onScroll&&e.onScroll(N+1)},{wait:400}),F=wV(e,r);return R.jsxs("div",{ref:n,id:`table_key_${C}`,className:`${bi.main} ${p2}`,style:{position:"relative",overflow:"hidden"},onClick:j=>F.focus(),onScrollCapture:j=>{j.target.scrollHeight!==24&&j.target.className==="frontend-table-body"&&(e.onBeforeScroll?e.onBeforeScroll()&&k(j):k(j))},children:[R.jsx(mV,{menuId:o,...Ee.pick(e,["onFill"])}),F.FocusDom,R.jsxs(ue.Form,{form:s,component:!1,children:[R.jsx(pC.Provider,{value:s,children:R.jsx(ue.Table,{className:Qe(e.showcheckbox?void 0:"table-checkbox"),ref:a,rowKey:e.rowKey||"id",style:{borderBottom:"1px solid #e4e4e4",borderRight:"1px solid #e4e4e4",background:"#fff"},pagination:!1,components:b,bordered:!0,...Ee.omit(e,["columns","scroll","expandable","tableKey"]),tableKey:C,loading:{indicator:R.jsx(vf,{style:{fontSize:32},spin:!0}),spinning:!!e.loading},showSorterTooltip:!1,expandable:{indentSize:18,expandIcon:({expanded:j,onExpand:N,record:I,expandable:B})=>I.children&&I.children.length||I.hasChildren?j?R.jsx(f8,{className:"expand",onClick:O=>{N(I,O)}}):R.jsx(d8,{className:"expand",onClick:O=>{N(I,O)}}):(e.isTree||B!==void 0)&&R.jsx("span",{style:{float:"left",width:"15px",height:"1px"}}),...e.expandable},scroll:{y:E,scrollToFirstRowOnChange:!0,...Ee.merge(e.scroll,{x:(P=e.scroll)==null?void 0:P.x})},columns:y,onChange:p})}),R.jsx(vV,{...e,className:e.tableFooterClassName,clearFilters:f,enterFullscreen:e==null?void 0:e.toggleFullscreen,customRender:e.tableFooterDateRender})]})]})}),{Option:ql}=ue.Select,mC=U.forwardRef((e,t)=>{const r=U.useRef("1848553711328477186"),[n,a]=U.useState([]),[i,s]=U.useState([]),[o,u]=U.useState([]),l=Jn({pageNo:1,pageSize:50,total:0}),f=Jn({sorter:"",filters:"",itemCodes:`${go.material},${go.document},${go.file}`,initialItemCodes:""}),d=Jn({loading:!1,searchValue:"",focus:!1,excludeIds:"",objectIds:"",columns:[{title:ie("sys.label.nameRe",{placeholder:"姓名"}),ellipsis:!0,dataIndex:"Name",sorter:!0,width:155},{title:ie("project.attr.owner.edit.window.email",{placeholder:"邮箱"}),ellipsis:!0,dataIndex:"Email",sorter:!0,width:155},{title:ie("sys.label.employeeID",{placeholder:"工号"}),ellipsis:!0,dataIndex:"EmpNo",sorter:!0,width:155}],conditionObject:[],sideChoice:0,columnsHighlight:[]});El(()=>{var E;let C=[];for(let b of e.columns||d.columns)C.push({...b,render:!b.render&&((E=e.placeholderCode)!=null&&E.includes(b.dataIndex))?h=>R.jsx(fo,{value:h,highlight:p.numberHighLight||[]}):b.render});d.columnsHighlight=C,e.isSelect&&e.allCategories?e.getItems().then(b=>{if(b.code==200){let h=[];for(let y of b.result)y.code!=10001019&&y.code!=10001017&&y.code!=10001018&&h.push({label:y.name,value:y.code});d.conditionObject=h;let g=Ee.map(h,"value").join(",");f.itemCodes=g,f.initialItemCodes=Ee.cloneDeep(g),_(!0)}}):_(!0)}),U.useEffect(()=>(e.enter&&!d.focus&&o.length>0?v():document.onkeydown=null,()=>{document.onkeydown=null}),[o,d.focus]),U.useImperativeHandle(t,()=>({getLoading:C=>{d.loading=C},backfill:C=>{u(C)}}));const p=Jn({numberHighLight:[]}),v=()=>{document.onkeydown=function(C){var E=window.event||C,b=E.keyCode||E.which;if(b==13&&!d.loading){if(e.maxSelect&&o.length+(e.value||[]).length>e.maxSelect){ue.message.error(ie("sys.maxSelect",{placeholder:"至多选择{maxSelect}个",variate:{maxSelect:e.maxSelect}}));return}let h=o.length?Ee.map(o,"id").join(","):"";e.onChange&&e.onChange(h),e.handleSubmit&&e.handleSubmit(o)}}},_=async(C=!1,E)=>{d.loading=!0;const{pageNo:b,pageSize:h}=l,{filters:g,sorter:y,itemCodes:S}=f;if({...e.params},d.searchValue&&(e.formate=="1"||e.formate=="2"?e.params.columns.split(",").map(P=>P+"-"+d.searchValue).join("~!~"):d.searchValue),!e.getUrlData){a([]),l.total=0,d.loading=!1;return}const{records:A,total:k}=await e.getUrlData({pageNo:b,pageSize:h,filters:g,sorter:y}),F=A||[];l.total=k,C?(a(F),s(Ee.cloneDeep(F)),e.onInit&&e.onInit(F)):(a([...n,...F]),s(Ee.cloneDeep([...n,...F])))},x=C=>{C=="0"?f.itemCodes=f.initialItemCodes:f.itemCodes=C,a([]),u([]),l.pageNo=1,d.searchValue="",_(!0,l.pageSize)},w=C=>{u([]),e.searchChange&&e.searchChange(C),d.searchValue=C,p.numberHighLight=C?[C]:[],l.pageNo=1,_(!0)};return R.jsx(Cu,{width:e.width,forceRender:!0,className:i2.tableSelection,modalTitle:e.title,mask:!1,visible:e.visible,maskClosable:!1,onCancel:()=>{e.onCancel&&e.onCancel()},footer:null,destroyOnClose:!0,onOk:async()=>{e.handleSubmit&&e.handleSubmit(o)},children:R.jsxs("div",{style:e.isBroadside?{display:"flex"}:{},children:[e.isBroadside&&R.jsx("div",{className:i2.sideBox,style:{paddingRight:e.isLibrary?"12px":"0px",minWidth:e.isLibrary?"110px":void 0,overflow:"hidden"},children:e.isLibrary?R.jsx(LE,{itemCode:go.technology,onGetTreeFields:C=>{},onSelected:C=>{r.current=C.id,l.pageNo=1,_(!0)},outIsSelected:!1,getInstanceMenu:()=>{},getAttributeByTab:()=>{}}):[ie("sys.myCreated",{placeholder:"我创建的"}),ie("sys.label.all",{placeholder:"全部"})].map((C,E)=>R.jsx("div",{onClick:()=>{d.sideChoice=E,l.pageNo=1,_(!0)},style:{marginBottom:"12px",cursor:"pointer",color:E==d.sideChoice?"#0563b2":""},children:C},E))}),R.jsxs("div",{style:{width:(e.isBroadside,"100%"),overflow:"hidden"},children:[!e.noSearch&&R.jsx(ue.Form.Item,{rules:[{required:!1}],children:R.jsxs("div",{style:{display:"flex"},children:[e.isSelect&&R.jsxs(R.Fragment,{children:[e.allCategories&&d.conditionObject.length>0&&R.jsxs(ue.Select,{disabled:d.loading,defaultValue:"0",style:{width:120,marginRight:"10px"},onChange:C=>{x(C)},children:[R.jsx(ql,{value:"0",children:ie("sys.label.all",{placeholder:"全部"})}),"(",d.conditionObject.map(C=>R.jsx(ql,{value:C.value,children:C.label})),")"]}),!e.allCategories&&R.jsxs(ue.Select,{disabled:d.loading,defaultValue:"0",style:{width:120,marginRight:"10px"},onChange:C=>{x(C)},children:[R.jsx(ql,{value:"0",children:ie("sys.label.all",{placeholder:"全部"})}),R.jsx(ql,{value:go.material,children:ie("sys.label.material",{placeholder:"物料"})}),R.jsx(ql,{value:go.document,children:ie("sys.document.document",{placeholder:"文档"})}),R.jsx(ql,{value:go.file,children:ie("sys.label.file",{placeholder:"文件"})})]})]}),R.jsx(ue.Input,{style:{width:240},onBlur:()=>{d.focus=!1},onFocus:()=>{d.focus=!0},allowClear:!0,value:d.searchValue,placeholder:e.placeholder||ie("sys.enterSearch",{placeholder:"请输入搜索内容"}),suffix:R.jsx(gt,{type:"content-search",style:{color:"#BABABA"},onClick:()=>{w(d.searchValue)}}),onChange:C=>{d.searchValue=C.target.value,C.target.value||(u([]),e.searchChange&&e.searchChange(""),l.pageNo=1,p.numberHighLight=[],_(!0))},onPressEnter:C=>{w(C.target.value)}})]})}),e.isDownload&&R.jsxs("div",{style:{display:"flex",marginBottom:"12px"},children:[R.jsx(gt,{disabled:!o.length,placement:!0,type:"rightbar-download",style:{marginRight:"5px",fontSize:"15px"},onDivClick:()=>{e.handleSubmit&&e.handleSubmit(o,"1")},children:ie("sys.label.download",{placeholder:"下载"})}),R.jsx("span",{style:{marginRight:"24px"}}),R.jsxs(gt,{disabled:!o.length,placement:!0,type:"rightbar-download",style:{marginRight:"5px",fontSize:"15px"},onDivClick:()=>{e.handleSubmit&&e.handleSubmit(o,"2")},children:[ie("sys.label.download",{placeholder:"下载"}),"PDF"]})]}),R.jsx("div",{className:i2.tableFrame,style:{display:"flex"},children:R.jsx(p1,{onSelectCell:()=>{u([])},expandable:{expandIconColumnIndex:e.isLibrary?2:void 0},rowSelection:{columnWidth:15,fixed:"left",hideSelectAll:!e.isCheckbox,selectedRowKeys:o.map(C=>C.id),onChange:(C,E)=>{e.isCheckbox?u(E):E.length?u([E.pop()]):u([])},getCheckboxProps:C=>({disabled:C.number==="~#~"||!!(e.convertFun&&Ee.includes(C.unique,"-"))})},onRow:C=>({onDoubleClick:()=>{if(C.number!=="~#~")if(o.length>1){if(e.maxSelect&&o.length+(e.value||[]).length>e.maxSelect){ue.message.error(ie("sys.maxSelect",{placeholder:"至多选择{maxSelect}个",variate:{maxSelect:e.maxSelect}}));return}e.onChange&&e.onChange(Ee.map(o,"id").join(",")),e.handleSubmit&&e.handleSubmit(o)}else u([C]),e.onChange&&e.onChange(C.id),e.handleSubmit&&e.handleSubmit([C])}}),loading:d.loading,dataSource:n,columns:d.columnsHighlight,...l,scroll:{y:e.height||200},onScroll:C=>{l.pageNo=C,_()},onFilterAndSorter:(C,E,b)=>{if(u([]),e.isBuiltInSort)if(C){let h=Ee.orderBy(n,[C.split("-")[0]],[C.split("-")[1]]);a(h)}else a(i);else{if(e.isUseRuleSort){const h=Us.sortAndFilterTable({sorters:C,filters:E,sortersField:b,tableColumns:e.columns});f.sorter=h.sorters,f.filters=h.filters}else f.sorter=C,f.filters=E;l.pageNo=1,_(!0)}}})})]})]})})}),EV={selectFrameBox:"_selectFrameBox_mktv5_1"},gC=U.forwardRef((e,t)=>{var s;const[r,n]=U.useState(e.value);U.useEffect(()=>{n(e.value)},[e.value]);const a=Jn({visible:!1,options:[],enter:!1});U.useEffect(()=>{e.options&&e.options.length&&(a.options=e.options)},[e.options]);const i=()=>{var f;const o=(f=e.params)==null?void 0:f.ids,u=o?o.join(","):"",l=e.isCheckbox?r&&r.join(","):r;return`${u}${l!=null&&l.length&&u?",":""}${l??""}`};return R.jsxs("div",{className:EV.selectFrameBox,style:e.width?{width:e.width}:void 0,children:[e.disabled&&e.userLink?R.jsx("div",{children:(s=Ee.filter(e.options,o=>o.id==r)[0])==null?void 0:s.Name}):R.jsxs("div",{style:{display:"flex",gap:"5px"},children:[R.jsx(ue.Select,{style:{minWidth:"80px"},mode:"multiple",allowClear:!0,open:!1,showSearch:!1,disabled:e.disabled,value:r||void 0,options:a.options,fieldNames:e.fieldNames?e.fieldNames:{label:"label",value:"value"},placeholder:e.placeholder||ie("sys.label.selectOption",{placeholder:"请选择"}),onClick:()=>{e.disabled||(a.visible=!0,a.enter=!0)},onChange:o=>{e.onChange&&e.onChange(o)},tagRender:o=>ja.readPermission(o.label)?R.jsx(ue.Tag,{color:"blue",closable:!0,style:{borderRadius:"0",border:"none",fontSize:"12px",padding:"2px 7px"},closeIcon:R.jsx(gt,{type:"close",style:{fontSize:"12px",cursor:"pointer"},onClick:()=>{const u=r.filter(l=>l!==o.value);n(u),e.onChange&&e.onChange(u)}}),children:o.label},o.value):R.jsx(zi,{})}),e.showButton?R.jsx(ue.Button,{onClick:()=>{a.visible=!0,a.enter=!0},style:{display:"flex",height:"32px",width:"32px",background:"#fafafa",alignItems:"center",justifyContent:"center"},children:R.jsx(gt,{type:"content-search",style:{fontSize:"16px"}})}):R.jsx(R.Fragment,{})]}),a.visible&&R.jsx(mC,{visible:a.visible,title:e.title||ie("sys.label.selectOption",{placeholder:"请选择"}),url:e.url,width:e.modalWidth,value:e.value,formate:e.formate,noSearch:e.noSearch,isUseRuleSort:e.isUseRuleSort,params:{...e.params,ids:i()},isLibrary:e.isLibrary,isBroadside:e.isBroadside,height:e.height,enter:a.enter,placeholder:e.searchPlaceholder||ie("sys.enterKeyword.enterKeyword",{placeholder:"请输入关键字"}),placeholderCode:e.placeholderCode||"",columns:e.columns,isCheckbox:e.isCheckbox,maxSelect:e.maxSelect,onChange:o=>{if(e.isCheckbox){let u=Ee.compact(Ee.concat(r,o.split(",")));e.onChange&&e.onChange(o?u:void 0)}else e.onChange&&e.onChange(o)},handleSubmit:o=>{e.isCheckbox?a.options=Ee.concat(a.options,o):a.options=o,e.onSubmit&&e.onSubmit(a.options),a.visible=!1,a.enter=!1},onInit:o=>{a.options=o},onCancel:()=>{a.visible=!1,a.enter=!1}})]})}),CV={searchTextTips:"_searchTextTips_daoe4_1"};function kV({fetchOptions:e,debounceTimeout:t=500,...r}){const[n,a]=U.useState(!1),[i,s]=U.useState([]),o=U.useRef(0);U.useEffect(()=>{s(r.options)},[r.options]);const u=U.useMemo(()=>{const l=f=>{o.current+=1;const d=o.current;s([]),a(!0),e(f,r).then(p=>{d===o.current&&(s(p),a(!1))})};return Ee.debounce(l,t)},[e,t]);return R.jsx(ue.Select,{...r,labelInValue:!0,showArrow:!0,filterOption:!1,onSearch:u,notFoundContent:n?R.jsx("div",{style:{textAlign:"center"},children:R.jsx(ue.Spin,{size:"small"})}):R.jsx(ue.Empty,{image:ue.Empty.PRESENTED_IMAGE_SIMPLE}),options:i,onBlur:()=>{s(r.options)},url:void 0,ischeckbox:void 0,dropdownRender:l=>R.jsxs(R.Fragment,{children:[l,R.jsx(ue.Divider,{style:{margin:"8px 0"}}),R.jsx("div",{className:CV.searchTextTips,children:`${ie("sys.resultDisplayLimit",{placeholder:"结果只显示前{count}条",variate:{count:100}})},${ie("sys.input.enterExactQuery",{placeholder:"请输入参数精确查询"})}`})]})})}async function vC(e,t){var i,s;let r,n={pageNo:1,pageSize:100,...t.params};e&&(n.andQuery=`${t.params.andQuery}~!~${t.fieldNames.label}-${e}`),typeof t.url=="function"?r=await t.url(n):r=await t.getPageList(t.url,n,Ee.includes(t.url,"opendata"));let a;return(i=t.fieldNames)!=null&&i.label?a=Ee.reject((s=r.result)==null?void 0:s.records,o=>{var u;return o[(u=t.fieldNames)==null?void 0:u.label]==="~#~"}):a=r.result.records,a}const TV=U.forwardRef((e,t)=>{const[r,n]=U.useState(e.value),[a,i]=U.useState([]);return El(async()=>{i(await vC("",e))}),R.jsx(kV,{...e,showSearch:!0,mode:e.ischeckbox?"multiple":void 0,value:r,fetchOptions:vC,style:{width:"100%"},options:a,fieldNames:e.fieldNames?e.fieldNames:{label:"label",value:"value"}})}),AV=e=>R.jsx(R.Fragment,{}),m2=e=>R.jsx(ue.TreeSelect,{...e,showSearch:!0,treeNodeFilterProp:"label",getPopupContainer:t=>t.parentNode||document.body}),xC=U.forwardRef((e,t)=>{const r=U.useContext(sf),n=(r==null?void 0:r.formItemCom)||{},a=U.useCallback((o,u)=>{var p,v;const{type:l,cannotread:f,props:d}=o;if(f!=="0"){let _=!1;if(typeof e.readOnly=="boolean"?_=e.readOnly:typeof e.readOnly=="function"&&(_=e.readOnly()),l==="Input")return;if(l==="Select")return d!=null&&d.loading?(u="",R.jsx(ue.Form.Item,{noStyle:!0,children:R.jsx(ou,{...d,options:[],loading:!0,value:((v=(p=e==null?void 0:e.content)==null?void 0:p.props)==null?void 0:v.mode)==="multiple"?[]:"",disabled:_||(d==null?void 0:d.disabled)})})):d!=null&&d.options&&d.options.length?typeof u=="string"&&u.split(",").length>1&&(d==null?void 0:d.mode)!=="multiple"?e.readOnly?R.jsx("span",{style:{paddingLeft:"5px"},children:u.split(",").map(x=>R.jsx(ue.Tag,{children:Gt.getLabelInOptions({value:x,options:(d==null?void 0:d.options)||[]})},x))}):(d.options=[...d==null?void 0:d.options,{label:u.split(",").map(x=>Gt.getLabelInOptions({value:x,options:(d==null?void 0:d.options)||[]})).join(","),disabled:!0,value:u}],R.jsx(ou,{filterOption:(x,w)=>w.label&&w.label.indexOf(x)>=0,...d,showSearch:!0,disabled:_||(d==null?void 0:d.disabled)})):R.jsx(ou,{filterOption:(x,w)=>w.label&&w.label.indexOf(x)>=0,...d,showSearch:!0,disabled:_||(d==null?void 0:d.disabled)}):R.jsx(ou,{...d,showSearch:!0,options:[],disabled:_||(d==null?void 0:d.disabled)});if(l==="PopupSelect")return d.options===void 0||d.options.length>0?R.jsx(gC,{...d,title:e.label,disabled:_||(d==null?void 0:d.disabled)},e.name):"";if(l==="SearchSelect")return R.jsx(TV,{...d},e.name);if(l==="Checkbox")return R.jsx(ue.Checkbox,{...d,disabled:_||(d==null?void 0:d.disabled)});if(l==="Checkbox.Group")return R.jsx(ue.Checkbox.Group,{...d,disabled:_||(d==null?void 0:d.disabled)});if(l==="Input.TextArea")return _?R.jsx(ue.Input.TextArea,{...d,disabled:!0}):R.jsx(ue.Input.TextArea,{...d});if(l==="Input.Password")return _?R.jsx(ue.Input.Password,{...d,disabled:!0}):R.jsx(ue.Input.Password,{...d});if(l==="Date")return _?R.jsx(ue.DatePicker,{...d,size:"middle",placeholder:"",disabled:_||(d==null?void 0:d.disabled)}):R.jsx(ue.DatePicker,{...d});if(l==="DatePicker.RangePicker")return _?R.jsx(ue.DatePicker.RangePicker,{...d,disabled:_||(d==null?void 0:d.disabled),placeholder:["",""],separator:""}):R.jsx(ue.DatePicker.RangePicker,{...d});if(l==="TimePicker.RangePicker")return _?R.jsx(ue.TimePicker.RangePicker,{...d,disabled:_||(d==null?void 0:d.disabled)}):R.jsx(ue.TimePicker.RangePicker,{...d});if(l==="Switch")return R.jsx(ue.Switch,{...d,disabled:_||(d==null?void 0:d.disabled)});if(l==="Number")return(d==null?void 0:d.apicode)==="FileSize"?R.jsx(F8,{...d,disabled:_||(d==null?void 0:d.disabled)},d.id):_?R.jsx(ue.InputNumber,{...d,placeholder:"",disabled:_||(d==null?void 0:d.disabled)}):R.jsx(ue.InputNumber,{...d});if(l==="Cascader")return _?R.jsx(ue.Cascader,{...d,placeholder:"",disabled:_||(d==null?void 0:d.disabled)}):R.jsx(ue.Cascader,{showSearch:{filter:(x,w)=>w.some(C=>C.label&&C.label.toLowerCase().indexOf(x.toLowerCase())>-1),matchInputWidth:!1},...d});if(l==="TreeSelect")return d.treeData&&d.treeData.length?_?R.jsx(m2,{...d,disabled:_||(d==null?void 0:d.disabled),showSearch:!0,treeNodeFilterProp:"label"}):R.jsx(m2,{...d,showSearch:!0,treeNodeFilterProp:"label"}):R.jsx(m2,{disabled:_||(d==null?void 0:d.disabled)});if(l==="Radio")return _?R.jsx(ue.Radio,{...d,disabled:_||(d==null?void 0:d.disabled)}):R.jsx(ue.Radio,{...d});if(l==="Radio.Group")return _?R.jsx(ue.Radio.Group,{...d,disabled:_||(d==null?void 0:d.disabled)}):R.jsx(ue.Radio.Group,{...d});if(l==="Slider")return R.jsx(ue.Slider,{...d,disabled:_||(d==null?void 0:d.disabled)});if(l==="Markdown")return R.jsx(X6,{...d,readOnly:_||(d==null?void 0:d.disabled)});if(l==="SelectPopup")return R.jsx(lC,{selectProps:d,readOnly:_||(d==null?void 0:d.disabled)});if(l==="SelectTransfer")return R.jsx(sC,{selectProps:d,readOnly:_||(d==null?void 0:d.disabled)});if(l==="CompositeForm")return R.jsx(f0,{...d,readOnly:_||(d==null?void 0:d.disabled)});if(l==="Title")return R.jsx(AV,{...d,readOnly:_||(d==null?void 0:d.disabled)});if(n[l]){const x=n[l];return R.jsx(x,{type:l,...d,name:e.name,disabled:_||(d==null?void 0:d.disabled)},e.name)}return R.jsx("span",{children:u})}else return R.jsx("div",{style:{width:"28px",height:"10px",backgroundColor:"#d9d9d9"}})},[e.readOnly]),i=U.useMemo(()=>e.ignoreNoWhiteSpaceStart?e.rules:e.content.type==="Input"||e.content.type==="Input.TextArea"?Ee.concat(e.NoWhiteSpaceStart,e.rules||[]):e.rules,[e.rules,e.ignoreNoWhiteSpaceStart]),s=e.content.type=="Title";return R.jsx(ue.Form.Item,{colon:!1,...Ee.omit(e,["readOnly","content","ignoreNoWhiteSpaceStart"]),className:Qe(E$.main,e.className,s?GLOBAL_ATTR_TITLE:"",{readOnly:e.readOnly}),"data-type":e.content.type,validateFirst:!0,validateTrigger:["onBlur","onChange"],rules:i,children:a(e.content,e.name)})}),Gl={itemsCreated:"_itemsCreated_ow91h_1",rowBox:"_rowBox_ow91h_4",labelLength:"_labelLength_ow91h_8"},st={advanced_search_content:"_advanced_search_content_775l0_1",disableBg:"_disableBg_775l0_1",checkboxWidth:"_checkboxWidth_775l0_15",radioWidth:"_radioWidth_775l0_18",conditions_head:"_conditions_head_775l0_21",head1:"_head1_775l0_29",head2:"_head2_775l0_32",head3:"_head3_775l0_35",head4:"_head4_775l0_38",properties_box:"_properties_box_775l0_41",className_tips:"_className_tips_775l0_44",groupHeader:"_groupHeader_775l0_49",iconBtn:"_iconBtn_775l0_52",properties_item:"_properties_item_775l0_61",left_tips:"_left_tips_775l0_84",state_type:"_state_type_775l0_87",verification:"_verification_775l0_100",verificationBorder:"_verificationBorder_775l0_121"},m1={shuttle_box:"_shuttle_box_tufhg_1",transferBox:"_transferBox_tufhg_4",selectNum:"_selectNum_tufhg_7"},FV=e=>{const t=Jn({dataSource:[],targetKeys:[],columns:[]}),r=o=>o&&Ee.isString(o)&&o.includes("~#~")?R.jsx("div",{style:{width:"28px",height:"10px",backgroundColor:"#d9d9d9"}}):o;U.useEffect(()=>{t.dataSource=e.dataSource,t.targetKeys=e.targetKeys;let o=[];for(let u of e.columns)o.push({...u,ellipsis:!0,sorter:(l,f)=>{const d=u.dataIndex||"";return l[d]!=null&&f[d]!=null?Ee.isString(l[d])&&Ee.isString(f[d])?l[d].localeCompare(f[d]):Ee.isNumber(l[d])&&Ee.isNumber(f[d])?l[d]-f[d]:0:0},render:u.render?u.render:r});t.columns=o},[e.dataSource,e.targetKeys]);const n=({...o})=>R.jsx(ue.Transfer,{...o,rowKey:u=>u.id,children:({direction:u,filteredItems:l,onItemSelectAll:f,onItemSelect:d,selectedKeys:p})=>{const v={onSelectAll(_,x){const w=x.filter(E=>!E.disabled).map(({id:E})=>E),C=_?Ee.difference(w,p):Ee.difference(p,w);f(C,_)},onSelect({id:_},x){e.isRadio&&p.splice(0,1),d(_,x)},getCheckboxProps:_=>({disabled:_.name=="~#~"||_.number=="~#~"||_.empNo=="~#~"?!0:u=="left"?_.disabled:!1}),selectedRowKeys:p};return R.jsxs(R.Fragment,{children:[R.jsx(ue.Table,{rowSelection:{type:e.isRadio?"radio":"checkbox",...v},columns:t.columns,showSorterTooltip:!1,pagination:!1,dataSource:l,scroll:{y:301},style:{height:"338px"},size:"small",onRow:_=>({onClick:()=>{_.name=="~#~"||_.empNo=="~#~"||!_.disabled&&u==="left"&&(e.isRadio&&p.splice(0,1),d(_.id,!p.includes(_.id)))},onDoubleClick:()=>{if(!(_.name=="~#~"||_.empNo=="~#~")){if(u==="left")_.disabled||(e.isRadio&&(t.targetKeys=[]),t.targetKeys.unshift(_.id));else for(let x=0;x<t.targetKeys.length;x++)if(t.targetKeys[x]==_.id){t.targetKeys.splice(x,1);break}}}})}),u==="left"?R.jsxs("div",{className:m1.selectNum,children:[e.defaultPageSize!==50?`${ie("sys.label.selected",{placeholder:"已选{count}条",variate:{count:p.length}})}`:ie("sys.maxDisplay50",{placeholder:"最多显示50条"})," ",", ",ie("project.tab.plan.criticalPath.window.total",{placeholder:"共"}),l.length,ie("project.tab.plan.quantityDisplay.select",{placeholder:"条"})]}):R.jsxs("div",{className:m1.selectNum,children:[ie("sys.label.selected",{placeholder:"已选{count}条",variate:{count:p.length}}),",",ie("project.tab.plan.criticalPath.window.total",{placeholder:"共"}),l.length,ie("project.tab.plan.quantityDisplay.select",{placeholder:"条"})]})]})}}),a=o=>{e.isRadio?t.targetKeys=[o[0]]:t.targetKeys=o},i=async()=>{let o=[];for(let u=0;u<t.targetKeys.length;u++)for(let l=0;l<t.dataSource.length;l++)if(t.targetKeys[u]==t.dataSource[l].id){o.push(t.dataSource[l]);break}e.onSubmit&&e.onSubmit(o)},s=()=>{if(e.columns.length>0){let o=[ie("project.workflow.status",{placeholder:"状态"}),ie("sys.import.category",{placeholder:"分类"})];return ie("project.create.attr.verify.scheduledDate.input",{placeholder:"请输入{content}",variate:{content:Ee.without(Ee.map(e.columns,"title"),...o).join("、")}})}return ie("sys.enterSearch",{placeholder:"请输入搜索内容"})};return R.jsx(Cu,{className:m1.shuttle_box,modalTitle:e.title,okText:ie("project.tab.plan.details.window.save",{placeholder:"保存"}),width:850,visible:e.visible,onOk:()=>{i()},onCancel:()=>{e.onCancel&&e.onCancel()},children:R.jsx("div",{className:m1.transferBox,children:R.jsx(bl,{spinning:e.loading,children:R.jsx(n,{dataSource:t.dataSource,targetKeys:t.targetKeys,showSearch:!0,locale:{searchPlaceholder:e.searchPlaceholder||s()},showSelectAll:!1,onChange:a,filterOption:(o,u)=>u.Name&&u.Name.indexOf(o)!==-1||u.EmpNo&&u.EmpNo.indexOf(o)!==-1||u.empNo&&u.empNo.indexOf(o)!==-1||u.email&&u.email.indexOf(o)!==-1||u.name&&u.name.indexOf(o)!==-1||u.workflowName&&u.workflowName.indexOf(o)!==-1||u.code&&String(u.code).indexOf(o)!==-1||u.description&&u.description.indexOf(o)!==-1})})})})},{RangePicker:_C}=ue.DatePicker,{Option:g2}=ue.Select,{TreeNode:yC}=ue.Tree,{confirm:cxe}=ue.Modal,OV=[{value:"and",label:ie("sys.query.builder.condit.and",{placeholder:"与"})},{value:"or",label:ie("sys.query.builder.condit.or",{placeholder:"或"})}],bC=U.forwardRef((e,t)=>{U.useRef();const r=U.useRef(null),n=U.useRef(null),a="YYYY-MM-DD HH:mm:ss",i={10002011:10001001,10002021:10001002,10002035:10001006,10002053:10001021,10002054:10001023,10002055:10001022},s=Jn({1:[{value:"contain",label:ie("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:ie("sys.condition.notContains",{placeholder:"不包含"})},{value:"start",label:ie("sys.condition.startsWith",{placeholder:"开始于"})},{value:"!start",label:ie("sys.condition.notStartsWith",{placeholder:"不开始于"})},{value:"eq",label:ie("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:ie("sys.condition.notEquals",{placeholder:"不等于"})},{value:"null",label:ie("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:ie("sys.condition.isNotEmpty",{placeholder:"不为空"})}],2:[{value:"contain",label:ie("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:ie("sys.condition.notContains",{placeholder:"不包含"})},{value:"start",label:ie("sys.condition.startsWith",{placeholder:"开始于"})},{value:"!start",label:ie("sys.condition.notStartsWith",{placeholder:"不开始于"})},{value:"eq",label:ie("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:ie("sys.condition.notEquals",{placeholder:"不等于"})},{value:"null",label:ie("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:ie("sys.condition.isNotEmpty",{placeholder:"不为空"})}],3:[{value:"contain",label:ie("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:ie("sys.condition.notContains",{placeholder:"不包含"})},{value:"null",label:ie("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:ie("sys.condition.isNotEmpty",{placeholder:"不为空"})}],4:[{value:"eq",label:ie("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:ie("sys.condition.notEquals",{placeholder:"不等于"})},{value:"gt",label:ie("sys.condition.greaterThan",{placeholder:"大于"})},{value:"ge",label:ie("sys.condition.greaterThanOrEquals",{placeholder:"大于等于"})},{value:"lt",label:ie("sys.condition.lessThan",{placeholder:"小于"})},{value:"le",label:ie("sys.condition.lessThanOrEquals",{placeholder:"小于等于"})},{value:"null",label:ie("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:ie("sys.condition.isNotEmpty",{placeholder:"不为空"})}],5:[[{value:"eq",label:ie("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:ie("sys.condition.notEquals",{placeholder:"不等于"})},{value:"null",label:ie("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:ie("sys.condition.isNotEmpty",{placeholder:"不为空"})}],[{value:"eq",label:ie("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:ie("sys.condition.notEquals",{placeholder:"不等于"})},{value:"in",label:ie("sys.condition.in",{placeholder:"在"})},{value:"!in",label:ie("sys.condition.notIn",{placeholder:"不在"})},{value:"contain",label:ie("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:ie("sys.condition.notContains",{placeholder:"不包含"})},{value:"null",label:ie("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:ie("sys.condition.isNotEmpty",{placeholder:"不为空"})}],[{value:"eq",label:ie("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:ie("sys.condition.notEquals",{placeholder:"不等于"})},{value:"contain",label:ie("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:ie("sys.condition.notContains",{placeholder:"不包含"})},{value:"null",label:ie("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:ie("sys.condition.isNotEmpty",{placeholder:"不为空"})}],[{value:"eq",label:ie("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:ie("sys.condition.notEquals",{placeholder:"不等于"})},{value:"contain",label:ie("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:ie("sys.condition.notContains",{placeholder:"不包含"})},{value:"null",label:ie("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:ie("sys.condition.isNotEmpty",{placeholder:"不为空"})}]],6:[{value:"eq",label:ie("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:ie("sys.condition.notEquals",{placeholder:"不等于"})},{value:"between",label:ie("sys.condition.in",{placeholder:"在"})},{value:"gt",label:ie("sys.condition.greaterThan",{placeholder:"大于"})},{value:"ge",label:ie("sys.condition.greaterThanOrEquals",{placeholder:"大于等于"})},{value:"lt",label:ie("sys.condition.lessThan",{placeholder:"小于"})},{value:"le",label:ie("sys.condition.lessThanOrEquals",{placeholder:"小于等于"})},{value:"null",label:ie("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:ie("sys.condition.isNotEmpty",{placeholder:"不为空"})}],7:[{value:"eq",label:ie("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:ie("sys.condition.notEquals",{placeholder:"不等于"})},{value:"gt",label:ie("sys.condition.greaterThan",{placeholder:"大于"})},{value:"ge",label:ie("sys.condition.greaterThanOrEquals",{placeholder:"大于等于"})},{value:"lt",label:ie("sys.condition.lessThan",{placeholder:"小于"})},{value:"le",label:ie("sys.condition.lessThanOrEquals",{placeholder:"小于等于"})}],8:[{value:"null",label:ie("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:ie("sys.condition.isNotEmpty",{placeholder:"不为空"})}],9:[{value:"null",label:ie("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:ie("sys.condition.isNotEmpty",{placeholder:"不为空"})}],10:[{value:"contain",label:ie("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:ie("sys.condition.notContains",{placeholder:"不包含"})},{value:"eq",label:ie("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:ie("sys.condition.notEquals",{placeholder:"不等于"})},{value:"null",label:ie("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:ie("sys.condition.isNotEmpty",{placeholder:"不为空"})}],12:[{value:"contain",label:ie("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:ie("sys.condition.notContains",{placeholder:"不包含"})},{value:"start",label:ie("sys.condition.startsWith",{placeholder:"开始于"})},{value:"!start",label:ie("sys.condition.notStartsWith",{placeholder:"不开始于"})},{value:"eq",label:ie("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:ie("sys.condition.notEquals",{placeholder:"不等于"})},{value:"null",label:ie("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:ie("sys.condition.isNotEmpty",{placeholder:"不为空"})}],13:[{value:"eq",label:ie("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:ie("sys.condition.notEquals",{placeholder:"不等于"})},{value:"gt",label:ie("sys.condition.greaterThan",{placeholder:"大于"})},{value:"ge",label:ie("sys.condition.greaterThanOrEquals",{placeholder:"大于等于"})},{value:"lt",label:ie("sys.condition.lessThan",{placeholder:"小于"})},{value:"le",label:ie("sys.condition.lessThanOrEquals",{placeholder:"小于等于"})},{value:"null",label:ie("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:ie("sys.condition.isNotEmpty",{placeholder:"不为空"})}]}),o=["ProductRoleList","CategoryList","VersionList","ProductList","LifePhaseList","WorkflowList","WorkflowNodeList"],u=Jn({verification:!1,useThrottle:!0,treeChoice:"",verifyRoute:!1,formCofing:{base_item_id:"",base_item_name:"",object_id:"",object_name:"",relations:[{join:"and",isGroup:!1,relation:[{attribute:{id:"",name:"",type:"",tab_code:"",operator:"",value:"",valueKey:[],valueTreeKey:[],attr_join:"and",routineData:[],forbidden:!0}}]}]}}),l=Jn({routineData:[],treeData:[],treeDefine:[],treeDefineKey:[],treeIndex1:null,treeIndex2:null,treeLoading:!1,treeVisible:!1,treeCheckable:!1,titleName:"",dataSource:[],loading:!1,visibleTransfer:!1,targetKeys:[],isRadio:!1,isUserCode:"",department:!1,saveSearchVisible:!1,selectedKeys:""});U.useImperativeHandle(t,()=>({getValue:()=>u.formCofing,onVerification:k=>{u.verification=k},setCondition:(k,F)=>{F==0?(u.formCofing.base_item_id=k.value,u.formCofing.base_item_name=k.label):(u.formCofing.object_id=(k==null?void 0:k.value)||"",u.formCofing.object_name=(k==null?void 0:k.label)||"")},emptyCondition:k=>{k&&(u.formCofing.base_item_id="",u.formCofing.base_item_name="",u.formCofing.object_id="",u.formCofing.object_name=""),u.verification=!1,u.formCofing.relations=[{join:"and",isGroup:!1,relation:[{attribute:{id:"",name:"",type:"",tab_code:"",operator:"",value:"",valueKey:[],valueTreeKey:[],attr_join:"and",routineData:[],forbidden:!0}}]}]},setConditionValue:k=>{u.formCofing=k},searchBtn:()=>{f()},defaultValue:()=>{var F;const k=(F=e.typeData[0])==null?void 0:F.children.filter(P=>P.apicode==="Number"||P.apicode==="Name"||P.apicode==="Description")[0];u.formCofing.relations=[{join:"and",isGroup:!1,relation:[{attribute:{id:[e.typeData[0].value,k.id],name:`${e.typeData[0].label}/${k.name}`,lastSelected:k,type:k.valueType||"",rawType:k.valueType||"",tab_code:e.typeData[0].value,dataFrom:k.dataFrom||"",dataFromId:k.dataFromId||"",apicode:k.apicode,operator:"contain",value:"",valueKey:[],valueTreeKey:[],attr_join:"and",routineData:[],forbidden:!0}}]}]}}));const f=k=>{if(u.verification=!1,!u.formCofing.base_item_id){ue.message.warning(ie("sys.import.selectCategory",{placeholder:"请选择分类"}));return}let F=Ee.cloneDeep(u.formCofing.relations);F.length==1&&(_(F),F=Ee.compact(F));for(let[P,j]of F.entries())for(let N of j.relation){if(!N.attribute.name||!N.attribute.operator||N.attribute.operator!="null"&&N.attribute.operator!="!null"&&!N.attribute.value){u.verification=!0;return}P!=0&&(j.join=F[P-1].relation[F[P-1].relation.length-1].attribute.attr_join)}u.formCofing.base_item_id,u.formCofing.base_item_name,u.formCofing.object_id,u.formCofing.object_name},d=(k,F)=>k=="5"&&F?F.listCode==10005213?s[k][2]:!F.allowMultiple||F.apicode=="LifeCyclePhase"||F.apicode=="Category"?s[k][0]:F.listType=="0"?s[k][1]:F.listType=="2"?s[k][2]:s[k][3]:s[k],p=()=>{u.formCofing.relations[l.treeIndex1].relation[l.treeIndex2].attribute.value=l.treeDefine.join(","),u.formCofing.relations[l.treeIndex1].relation[l.treeIndex2].attribute.valueTreeKey=l.treeDefineKey,l.titleName="",l.treeVisible=!1},v=(k,F)=>F.some(P=>P.label&&P.label.toLowerCase().indexOf(k.toLowerCase())>-1),_=k=>k.map((F,P)=>(F.relation.forEach((j,N)=>{let I=j.attribute;!I.name&&!I.operator&&!I.value&&delete F.relation[N]}),F.relation=Ee.compact(F.relation),F.relation.length==0&&delete k[P],F)),x=k=>{let F=[];if(k)for(let P of k)F.push({label:P.showName||P.name,value:P.id,disabled:!P.status});return F},w=k=>k.map(F=>F.children?R.jsx(yC,{title:l.department?F.title:F.name,children:w(F.children)},F.id):R.jsx(yC,{title:l.department?F.title:F.name},F.id)),C=(k,F)=>R.jsx(fh,{highlightStyle:{color:"#F5325C",backgroundColor:"rgb(0, 0, 0, 0)",padding:"0"},searchWords:[F?F.toString():""],textToHighlight:k?k.toString():""}),E=()=>{n.current&&setTimeout(()=>{n.current.scroll({top:n.current.scrollTop+38,behavior:"smooth"})},100)},b=(k,F,P,j)=>{!P||P&&k.relation.length>1&&j==k.relation.length-1?u.formCofing.relations.splice(F+1,0,{join:"and",isGroup:!1,relation:[{attribute:{id:"",name:"",type:"",tab_code:"",operator:"",value:"",valueKey:[],valueTreeKey:[],attr_join:"and",routineData:[],forbidden:!0}}]}):u.formCofing.relations[F].relation.splice(j+1,0,{attribute:{id:"",name:"",type:"",tab_code:"",operator:"",value:"",valueKey:[],valueTreeKey:[],attr_join:"and",routineData:[],forbidden:!0}}),S(k),E()},h=k=>{u.formCofing.relations.splice(k+1,0,{join:"and",isGroup:!0,relation:[{attribute:{id:"",name:"",type:"",tab_code:"",operator:"",value:"",valueKey:[],valueTreeKey:[],attr_join:"and",routineData:[],forbidden:!0}}]}),E()},g=k=>{u.formCofing.relations.splice(k,1)},y=(k,F,P,j)=>{P&&k.relation.length>1?(k.relation.splice(j,1),S(k)):u.formCofing.relations.splice(F,1)},S=k=>{for(let F=0;F<k.relation.length;F++)k.relation[F].attribute.forbidden=!0,k.relation.length>1&&k.relation.length-1!=F&&(k.relation[F].attribute.forbidden=!1)},A=(k,F,P,j,N)=>{if(P&&(P.apicode=="OrgName"||P.apicode=="CreateUserDepartment"))return R.jsx(ue.Select,{className:`
333
+ ${u.verification&&!k.attribute.value&&k.attribute.operator!="null"&&k.attribute.operator!="!null"&&st.verification}
334
+ ${(k.attribute.operator=="null"||k.attribute.operator=="!null")&&st.disableBg}
335
+ ${st.radioWidth}
336
+ `,value:k.attribute.value&&k.attribute.value.split(",")||void 0,disabled:k.attribute.operator=="null"||k.attribute.operator=="!null"||e.readOnly,open:!1,suffixIcon:R.jsx(yl,{style:{color:"#B6B9CF"}}),style:{width:"100%"},placeholder:ie("sys.label.selectOption",{placeholder:ie("sys.label.selectOption",{placeholder:"请选择"})}),onClick:()=>{k.attribute.operator!="null"&&k.attribute.operator!="!null"&&!e.readOnly&&(l.treeLoading=!0,l.treeVisible=!0,l.treeIndex1=j,l.treeIndex2=N,l.titleName=ie("sys.selection.chooseDepartment",{placeholder:ie("sys.selection.chooseDepartment",{placeholder:"选择部门"})}),l.treeDefine=k.attribute.value.split(","),l.treeDefineKey=k.attribute.valueTreeKey,l.treeCheckable=P.allowMultiple,l.department=!0,e.treeList().then(I=>{l.treeData=I.result,setTimeout(()=>{l.treeLoading=!1},200)}).catch(()=>{l.treeLoading=!1}))},onChange:I=>{l.treeDefine=I,k.attribute.value=I.join(",")}});if(F=="4")return R.jsx(ue.InputNumber,{placeholder:ie("sys.input.number",{placeholder:"请输入数字"}),className:`
337
+ ${u.verification&&!k.attribute.value&&k.attribute.operator!="null"&&k.attribute.operator!="!null"&&st.verification}
338
+ ${(k.attribute.operator=="null"||k.attribute.operator=="!null")&&st.disableBg}
339
+ `,value:k.attribute.value,disabled:k.attribute.operator=="null"||k.attribute.operator=="!null"||e.readOnly,style:{width:"100%",lineHeight:"28px"},onChange:I=>{k.attribute.value=I}});if(F=="5")return P&&(P.listType=="1"||P.listType=="3"&&P.listCode!==10005222)?R.jsx(ue.Tooltip,{placement:"left",title:Ee.map(k.attribute.valueKey,"label").join(","),children:R.jsx(ue.Select,{className:`
340
+ ${u.verification&&!k.attribute.value&&k.attribute.operator!="null"&&k.attribute.operator!="!null"&&st.verification}
341
+ ${(k.attribute.operator=="null"||k.attribute.operator=="!null")&&st.disableBg}
342
+ ${P.allowMultiple?st.checkboxWidth:st.radioWidth}
343
+ `,mode:"multiple",maxTagCount:1,maxTagPlaceholder:"...",disabled:k.attribute.operator=="null"||k.attribute.operator=="!null"||e.readOnly,open:!1,showArrow:!0,suffixIcon:R.jsx(yl,{style:{color:"#B6B9CF"}}),style:{width:"100%"},placeholder:ie("sys.label.selectOption",{placeholder:"请选择"}),onClick:()=>{if(k.attribute.operator!="null"&&k.attribute.operator!="!null"&&!e.readOnly){if(l.loading=!0,P.apicode=="OldLifePhase"||P.apicode=="NewLifePhase"){l.isUserCode=P.apicode,l.visibleTransfer=!0,l.treeIndex1=j,l.treeIndex2=N,l.isRadio=!P.allowMultiple,e.getLifecycles(i[P.tabCode]).then(B=>{for(let O of B.result.records||[])O.id=String(O.code);l.dataSource=B.result.records||[],l.targetKeys=k.attribute.value.split(","),l.loading=!1});return}let I=P.apicode=="Category"&&k.attribute.tab_code!="10002001"?P.itemCode:u.formCofing.base_item_id;e.getListbycode(P.listCode).then(B=>{let O="",M;B.result.apicode=="CategoryList"?(O=`item_code=${I}`,M=1):B.result.apicode=="VersionList"||B.result.apicode=="ProductList"||(B.result.apicode=="LifePhaseList"||B.result.apicode=="WorkflowList"||B.result.apicode=="WorkflowNodeList")&&(B.result.apicode=="LifePhaseList"&&P.valueType=="10"?O=`item_code=${P.itemCode}`:B.result.apicode=="LifePhaseList"&&P.itemCode==10001006&&u.formCofing.base_item_id==10001001?O="item_code=10001006":B.result.apicode=="LifePhaseList"&&P.itemCode==10001001&&(u.formCofing.base_item_id==10001014||u.formCofing.base_item_id==10001006)?O="item_code=10001001":(B.result.apicode=="WorkflowList"||B.result.apicode=="WorkflowNodeList")&&u.formCofing.base_item_id==10001014?O="item_code=10001011":(B.result.apicode=="WorkflowList"||B.result.apicode=="WorkflowNodeList")&&u.formCofing.base_item_id==10001012?O="item_code=10001020":B.result.apicode=="LifePhaseList"&&k.attribute.tab_code=="10002024"&&(u.formCofing.base_item_id==10001003||u.formCofing.base_item_id==10001004||u.formCofing.base_item_id==10001005)?O="item_code=10001001":B.result.apicode=="WorkflowList"||B.result.apicode=="LifePhaseList"?O=`item_code=${P.itemCode}`:O=u.formCofing.object_id?`item_code=${I} and object_id=${u.formCofing.object_id}`:`item_code=${u.formCofing.base_item_id}`),P.listType=="1"?B.result.apicode=="WorkflowNodeList"?(l.isUserCode="WorkflowNodeList",l.visibleTransfer=!0,l.treeIndex1=j,l.treeIndex2=N,l.isRadio=!P.allowMultiple,e.getTreeList(B.result.code,O).then(V=>{if(V.code==200){let L=[];for(let W of V.result||[])L.push({name:W,id:W});l.dataSource=L,l.targetKeys=k.attribute.value.split(","),l.loading=!1}})):B.result.apicode=="CategoryList"?(l.isUserCode="CategoryList",l.visibleTransfer=!0,l.treeIndex1=j,l.treeIndex2=N,l.isRadio=!P.allowMultiple,e.getTreeList(B.result.code,O).then(V=>{if(V.code==200){for(let L of V.result||[])L.statusText=L.status?ie("sys.label.enable",{placeholder:"启用"}):ie("sys.disable.disable",{placeholder:"禁用"});l.dataSource=V.result||[],l.targetKeys=k.attribute.value.split(","),l.loading=!1}})):e.getOverview(B.result.conditionId).then(V=>{V.result.itemCode=="10001017"?l.isUserCode="10001017":V.result.itemCode=="10001018"?l.isUserCode="10001018":l.isUserCode=V.result.apicode,l.visibleTransfer=!0,l.treeIndex1=j,l.treeIndex2=N,l.isRadio=!P.allowMultiple,e.getInstanceParams({itemCodes:[V.result.itemCode],baseItemId:u.formCofing.base_item_id}).then(L=>{for(let W of L.result)V.result.itemCode=="10001017"?(W.name=W.number,W.email=W.insDesc):(W.code=W.number,W.name=W.number,W.description=W.insDesc);l.dataSource=L.result,l.targetKeys=k.attribute.value.split(","),V.result.itemCode=="10001017"&&(l.dataSource=Ee.concat({name:"$USER",id:"$USER",email:""},l.dataSource)),l.loading=!1})}):(P.tabCode===10002005?O="item_code<>10001018 and item_code <>10001017":P.tabCode===10002004?O=`item_code in (${k.attribute.routineData.map(V=>V.code).join(",")})`:P.listCode===10005250&&(O=`change_instance_item_code=${u.formCofing.base_item_id}`),(u.formCofing.base_item_id==10001004||u.formCofing.base_item_id==10001005)&&P.tabCode==10002024&&P.apicode=="LifeCyclePhase"&&(O="whereData=10001001"),B.result.code==10005256?l.isUserCode=B.result.code:l.isUserCode=B.result.apicode,l.visibleTransfer=!0,l.treeIndex1=j,l.treeIndex2=N,l.isRadio=!P.allowMultiple,e.getTreeList(P.listCode,O,M).then(V=>{if(V.code==200){if(V.result&&V.result.length&&V.result[0].nodes){let L=[],W={1:ie("sys.label.start",{placeholder:"开始"}),2:ie("sys.label.review",{placeholder:"审核"}),3:ie("sys.label.publish",{placeholder:"发布"}),4:ie("project.tab.plan.delete.tips.title.confirm",{placeholder:"确认"}),5:ie("sys.label.end",{placeholder:"结束"})};for(let G of V.result)for(let H of G.nodes||[])L.push({name:G.wfName+"."+H.name,id:G.wfId+"."+H.id,type:W[H.type]});l.dataSource=L}else{if(l.isUserCode=="LifePhaseList")for(let L of V.result||[])L.id=String(L.code);if(B.result.code==10005250)for(let L of V.result||[])L.code=L.changeInstanceNo,L.description=L.changeInstanceDesc;if(B.result.code==10005173&&(P.apicode=="Product"?V.result=V.result.filter(L=>L.productType=="product"):V.result=V.result.filter(L=>L.productType=="library")),P.tabCode===10002005||P.tabCode===10002004)for(let L of V.result||[])L.name=L.itemName?L.itemName+"."+L.name:L.name;l.dataSource=V.result||[],P.apicode=="Product"&&(l.dataSource=Ee.concat({name:"$MYPRODUCTS",id:"$MYPRODUCTS",description:""},l.dataSource)),P.listCode==10005256&&(l.dataSource=Ee.concat({id:"$USER",name:"$USER"},l.dataSource))}l.targetKeys=k.attribute.value.split(","),l.loading=!1}}))})}},value:k.attribute.value&&k.attribute.value.split(",")||void 0,onChange:(I,B)=>{k.attribute.value=I.join(","),k.attribute.valueKey=B.map(O=>({label:O.key,value:O.value}))},children:k.attribute.valueKey.map(I=>R.jsx(g2,{value:I.value,children:I.label},I.label))})}):P&&(P.listType=="2"||P.listCode===10005222)?R.jsx(ue.Tooltip,{title:k.attribute.value,children:R.jsx(ue.Select,{className:`
344
+ ${u.verification&&!k.attribute.value&&k.attribute.operator!="null"&&k.attribute.operator!="!null"&&st.verification}
345
+ ${(k.attribute.operator=="null"||k.attribute.operator=="!null")&&st.disableBg}
346
+ ${P.allowMultiple?st.checkboxWidth:st.radioWidth}
347
+ `,mode:"multiple",maxTagCount:1,maxTagPlaceholder:"...",value:k.attribute.value&&k.attribute.value.split(",")||void 0,disabled:k.attribute.operator=="null"||k.attribute.operator=="!null"||e.readOnly,open:!1,clearIcon:!1,showArrow:!0,suffixIcon:R.jsx(yl,{style:{color:"#B6B9CF"}}),style:{width:"100%"},placeholder:ie("sys.label.selectOption",{placeholder:"请选择"}),onClick:()=>{k.attribute.operator!="null"&&k.attribute.operator!="!null"&&!e.readOnly&&(l.treeLoading=!0,l.treeVisible=!0,l.treeIndex1=j,l.treeIndex2=N,l.treeDefine=k.attribute.value.split(","),l.treeDefineKey=k.attribute.valueTreeKey,l.treeCheckable=P.allowMultiple,l.department=!1,e.getTreeList(P.listCode).then(I=>{I.code==200&&(l.treeData=I.result,P.apicode=="ProductModel"&&(l.treeData=Ee.concat({name:"$MYPRODUCTMODELS",id:"$MYPRODUCTMODELS"},l.treeData)),setTimeout(()=>{l.treeLoading=!1},200))}).catch(()=>{l.treeLoading=!1}))},onChange:I=>{l.treeDefine=I,k.attribute.valueTreeKey.shift(),k.attribute.value=I.join(",")}})}):k.attribute.tab_code==10002004||k.attribute.tab_code==10002005?R.jsx(ue.Cascader,{className:`
348
+ ${u.verification&&!k.attribute.value&&k.attribute.operator!="null"&&k.attribute.operator!="!null"&&st.verification}
349
+ ${(k.attribute.operator=="null"||k.attribute.operator=="!null")&&st.disableBg}
350
+ `,value:k.attribute.value||void 0,dropdownClassName:"cascaderPopup",style:{width:"158px"},placeholder:ie("sys.label.selectOption",{placeholder:"请选择"}),disabled:k.attribute.operator=="null"||k.attribute.operator=="!null"||e.readOnly,options:k.attribute.routineData,showSearch:{filter:v,matchInputWidth:!1},onChange:I=>{k.attribute.value=I.map(String)}}):P&&P.allowMultiple?R.jsx(ue.Tooltip,{title:Ee.compact(Ee.map(k.attribute.routineData,I=>{for(let B of k.attribute.value.split(","))if(B==I.value)return I.label})).join(","),children:R.jsx(ue.Select,{className:`
351
+ ${u.verification&&!k.attribute.value&&k.attribute.operator!="null"&&k.attribute.operator!="!null"&&st.verification}
352
+ ${(k.attribute.operator=="null"||k.attribute.operator=="!null")&&st.disableBg}
353
+ ${st.checkboxWidth}
354
+ `,mode:"multiple",maxTagCount:1,maxTagPlaceholder:"...",showArrow:!0,value:k.attribute.value&&k.attribute.value.split(",")||void 0,disabled:k.attribute.operator=="null"||k.attribute.operator=="!null"||e.readOnly,optionFilterProp:"label",style:{width:"100%"},placeholder:ie("sys.label.selectOption",{placeholder:"请选择"}),open:l["open"+j+N],onFocus:()=>{l["open"+j+N]=!0},onChange:I=>{k.attribute.value=I.join(",")},onSearch:I=>{k.attribute.LighHeight=I},onBlur:()=>{k.attribute.LighHeight="",l["open"+j+N]=!1},filterOption:(I,B)=>B.key.toLowerCase().indexOf(I.toLowerCase())>=0,children:k.attribute.routineData.map(I=>R.jsx(g2,{value:I.value,disabled:I.disabled,children:C(I.label,k.attribute.LighHeight)},I.label))})}):R.jsx(ue.Tooltip,{title:Ee.compact(Ee.map(k.attribute.routineData,I=>{if(k.attribute.value==I.value)return I.label})).join(","),children:R.jsx(ue.Select,{ref:r,className:`
355
+ ${u.verification&&!k.attribute.value&&k.attribute.operator!="null"&&k.attribute.operator!="!null"&&st.verification}
356
+ ${(k.attribute.operator=="null"||k.attribute.operator=="!null")&&st.disableBg}
357
+ ${st.radioWidth}
358
+ `,value:k.attribute.value||void 0,showSearch:!0,optionFilterProp:"label",disabled:k.attribute.operator=="null"||k.attribute.operator=="!null"||e.readOnly,style:{width:"100%"},placeholder:ie("sys.label.selectOption",{placeholder:"请选择"}),onChange:I=>{k.attribute.value=I,r==null||r.current.blur()},onSearch:I=>{k.attribute.LighHeight=I},open:l["open"+j+N],onFocus:()=>{l["open"+j+N]=!0},onBlur:()=>{k.attribute.LighHeight="",l["open"+j+N]=!1},filterOption:(I,B)=>B.key.toLowerCase().indexOf(I.toLowerCase())>=0,children:k.attribute.routineData.map(I=>R.jsx(g2,{value:I.value,disabled:I.disabled,children:C(I.label,k.attribute.LighHeight)},I.label))})});if(F=="6")return k.attribute.operator=="between"?R.jsx(ue.Tooltip,{title:k.attribute.value.split(",")[0]&&k.attribute.value.split(",")[0]+" ~ "+k.attribute.value.split(",")[1],children:R.jsx(_C,{className:u.verification&&!k.attribute.value&&st.verification,showTime:!0,style:{width:"100%"},value:k.attribute.value.split(",")[0]?[Me(k.attribute.value.split(",")[0],a),Me(k.attribute.value.split(",")[1],a)]:void 0,format:a,disabled:k.attribute.operator=="null"||k.attribute.operator=="!null"||e.readOnly,onChange:(I,B)=>{B[0]?k.attribute.value=B.join(","):k.attribute.value=""}})}):R.jsx(ue.DatePicker,{className:`
359
+ ${u.verification&&!k.attribute.value&&k.attribute.operator!="null"&&k.attribute.operator!="!null"&&st.verification}
360
+ ${(k.attribute.operator=="null"||k.attribute.operator=="!null")&&st.disableBg}
361
+ `,showTime:!0,style:{width:"100%",borderRadius:0},value:k.attribute.value?Me(k.attribute.value,a):void 0,format:a,disabled:k.attribute.operator=="null"||k.attribute.operator=="!null"||k.attribute.operator=="between"||e.readOnly,onChange:(I,B)=>{k.attribute.value=B}});if(F=="7")return R.jsx(ue.Tooltip,{title:k.attribute.value.split(",")[0]&&k.attribute.value.split(",")[0]+" ~ "+k.attribute.value.split(",")[1],children:R.jsx(_C,{className:u.verification&&!k.attribute.value&&st.verification,showTime:!0,style:{width:"100%"},value:k.attribute.value.split(",")[0]?[Me(k.attribute.value.split(",")[0],a),Me(k.attribute.value.split(",")[1],a)]:void 0,format:a,disabled:k.attribute.operator=="null"||k.attribute.operator=="!null"||e.readOnly,onChange:(I,B)=>{k.attribute.value=B.join(",")}})});if(F=="12"||F=="13"){let I=k.attribute.lastSelected;return R.jsx("div",{className:u.verification&&!k.attribute.value&&st.verificationBorder,children:R.jsx(f0,{value:k.attribute.value,min:I==null?void 0:I.minValue,max:I==null?void 0:I.maxValue,maxLength:I==null?void 0:I.maxLength,precision:I==null?void 0:I.precision,valueType:I==null?void 0:I.valueType,options:k.attribute.routineData,readOnly:!1,onChange:B=>{k.attribute.value=B}})})}else return R.jsx(ue.Input,{className:`
362
+ ${u.verification&&!k.attribute.value&&k.attribute.operator!="null"&&k.attribute.operator!="!null"&&st.verification}
363
+ ${(k.attribute.operator=="null"||k.attribute.operator=="!null")&&st.disableBg}
364
+ `,placeholder:ie("sys.input.text",{placeholder:"请输入文本"}),value:k.attribute.value,disabled:k.attribute.operator=="null"||k.attribute.operator=="!null"||e.readOnly,style:{padding:"5px 11px"},onChange:I=>{k.attribute.value=I.target.value}})};return R.jsxs("div",{className:st.advanced_search_content,style:{minWidth:e.horizontalStyle?"900px":"700px"},children:[!e.horizontalStyle&&R.jsxs("div",{className:st.conditions_head,children:[R.jsx("div",{className:st.head1,children:ie("sys.property",{placeholder:"属性"})}),R.jsx("div",{className:st.head2,children:ie("sys.operator",{placeholder:"运算符"})}),R.jsx("div",{className:st.head3,children:ie("sys.value",{placeholder:"值"})}),R.jsx("div",{className:st.head4,children:ie("sys.connector",{placeholder:"连接符"})})]}),R.jsxs("div",{ref:n,className:st.properties_box,style:{background:e.horizontalStyle?"#fff":"#f8f9f9",height:e.horizontalStyle?"147px":"240px"},children:[R.jsxs("div",{className:st.className_tips,children:[R.jsxs("span",{style:{width:160,marginLeft:"12px"},className:st.left_tips,children:[ie("sys.property",{placeholder:"属性"}),":"]}),R.jsxs("span",{style:{width:92,marginLeft:"3px"},className:st.left_tips,children:[ie("sys.operator",{placeholder:"运算符"}),":"]}),R.jsxs("span",{style:{flex:1,marginLeft:"5px"},className:st.left_tips,children:[ie("sys.valueRe",{placeholder:"数值"}),":"]}),R.jsxs("span",{style:{width:145},className:st.left_tips,children:[ie("sys.connector",{placeholder:"连接符"}),":"]})]}),u.formCofing.relations.map((k,F)=>R.jsxs("div",{children:[k.isGroup&&R.jsx("div",{className:st.groupHeader,children:R.jsxs(ue.Row,{justify:"space-between",align:"middle",children:[R.jsx(ue.Col,{className:st.optSelect,children:R.jsx(ue.Select,{value:k.join,style:{width:70},disabled:e.readOnly,options:OV,onChange:P=>{k.join=P}})}),R.jsx(ue.Col,{style:{marginRight:"8px"},children:R.jsx(gt,{isBackend:!0,className:st.iconBtn,tooltip:{title:ie("sys.query.builder.condit.deleteGroup",{placeholder:"删除组"})},type:"delete",onClick:()=>{g(F)}})})]})}),k.relation.map((P,j)=>{var N;return R.jsxs("div",{className:st.properties_item,children:[R.jsx(ue.Cascader,{style:{width:160},className:u.verification&&!P.attribute.name&&st.verification,showSearch:{filter:v,matchInputWidth:!1},value:((N=e.typeData)==null?void 0:N.length)>0&&P.attribute.id||void 0,options:e.typeData,placeholder:ie("sys.label.selectOption",{placeholder:"请选择"}),disabled:e.readOnly,suffixIcon:R.jsx(gt,{type:"xia-mian",style:{color:"#333",pointerEvents:"none"}}),dropdownClassName:"cascaderPopup",onChange:async(I,B)=>{P.attribute.value="",P.attribute.routineData=[],P.attribute.valueKey=[],P.attribute.valueTreeKey=[],l.treeDefine=[],P.attribute.id=I,P.attribute.name=Ee.map(B,"label").join("/"),P.attribute.lastSelected=await Ee.last(B);const O=await Ee.last(B);P.attribute.type=O&&O.valueType||"",P.attribute.rawType=(P.attribute.type=="10"?O&&O.rawType:P.attribute.type)||"",P.attribute.type=="10"&&(I[2]&&(I[2]=I[2].split("-")[1],P.attribute.id=I),P.attribute.inputType=O.inputType,P.attribute.referenceApicode=O.referenceApicode,P.attribute.referenceAttrId=O.referenceAttrId),P.attribute.tab_code=B&&(B[0].value.includes("-")?B[0].value.split("-")[0]:B[0].value)||"",P.attribute.dataFrom=O&&O.dataFrom||"",P.attribute.dataFromId=O&&O.dataFromId||"",P.attribute.apicode=O&&O.apicode||"",P.attribute.whereData=B&&(B[0].value.includes("-")?B[0].value.split("-")[1]=="1"?"published":"notPublished":"")||"",P.attribute.type==""?P.attribute.operator="":P.attribute.type=="5"?O.listCode==10005213?P.attribute.operator=s[P.attribute.type]&&s[P.attribute.type][2][0].value:!O.allowMultiple||O.apicode=="LifeCyclePhase"||O.apicode=="Category"?P.attribute.operator=s[P.attribute.type]&&s[P.attribute.type][0][0].value:O.listType=="0"?P.attribute.operator=s[P.attribute.type]&&s[P.attribute.type][1][0].value:O.listType=="2"?P.attribute.operator=s[P.attribute.type]&&s[P.attribute.type][2][0].value:P.attribute.operator=s[P.attribute.type]&&s[P.attribute.type][3][0].value:P.attribute.operator=s[P.attribute.type]&&s[P.attribute.type][0].value,O&&O.apicode=="LifeCyclePhase"?u.formCofing.object_id?e.getLifecyclesNopage(u.formCofing.object_id,O&&O.itemCode).then(M=>{M.code==200&&(P.attribute.routineData=x(M.result))}):e.getLifecycles(O&&O.itemCode).then(M=>{M.code==200&&(P.attribute.routineData=x(M.result.records))}):O&&(O.apicode=="Category"||O.apicode=="Workflow")?I&&I[0]==10002004?e.getHistory().then(M=>{if(M.code==200){for(let V of M.result)V.label=V.name,V.value=String(V.code),V.children&&V.children.forEach(L=>{L.label=L.name,L.value=L.id});P.attribute.routineData=M.result}}):I&&I[0]==10002005?e.getRelation().then(M=>{if(M.code==200){for(let V of M.result)V.label=V.name,V.value=String(V.code),V.children&&V.children.forEach(L=>{L.label=L.name,L.value=L.id});P.attribute.routineData=M.result}}):u.formCofing.object_id?(P.attribute.routineData=e.subcategory,P.attribute.value=u.formCofing.object_id):e.getObjects(O&&O.itemCode).then(M=>{M.code==200&&(P.attribute.routineData=x(M.result.records))}):O&&(O.apicode=="ProductRoles"||O.apicode=="ApproveRole")&&e.getRoles().then(M=>{M.code==200&&(P.attribute.routineData=x(M.result.records))}),O&&O.listType=="0"&&e.getTreeList(O.listCode).then(M=>{M.code==200&&(P.attribute.routineData=x(M.result))})}}),R.jsx(ue.Select,{style:{width:92,margin:"0 5px"},className:u.verification&&!P.attribute.operator&&st.verification,placeholder:ie("sys.label.selectOption",{placeholder:"请选择"}),disabled:e.readOnly,suffixIcon:R.jsx(gt,{type:"xia-mian",style:{color:"#333",pointerEvents:"none"}}),value:P.attribute.operator||void 0,options:P.attribute.type&&d(P.attribute.type,P.attribute.lastSelected),onChange:I=>{P.attribute.operator=I,P.attribute.value="",P.attribute.valueTreeKey=[],P.attribute.valueKey=[],l.treeDefine=[]}}),R.jsx("div",{className:st.state_type,children:A(P,P.attribute.rawType,P.attribute.lastSelected,F,j)}),R.jsx(ue.Select,{style:{width:60},disabled:e.readOnly,value:P.attribute.attr_join,options:[{value:"and",label:ie("sys.condition.and",{placeholder:"与"})},{value:"or",label:ie("sys.condition.or",{placeholder:"或"})}],suffixIcon:R.jsx(gt,{type:"xia-mian",style:{color:"#333",pointerEvents:"none"}}),onChange:I=>{P.attribute.attr_join=I}}),R.jsx(gt,{isBackend:!0,className:st.iconBtn,type:"add",onClick:()=>{b(k,F,k.isGroup,j)}}),R.jsx(gt,{isBackend:!0,disabled:!k.isGroup&&F==0,className:st.iconBtn,type:"delete",onClick:()=>{y(k,F,k.isGroup,j)}}),k.isGroup&&j<k.relation.length-1?R.jsx("div",{style:{width:"26px"}}):R.jsx(gt,{isBackend:!0,className:st.iconBtn,type:"addGroups",onClick:()=>{h(F)}})]},j)})]},F))]}),R.jsx(Cu,{modalTitle:l.titleName||ie("sys.selection.chooseRange",{placeholder:"选择范围"}),visible:l.treeVisible,width:500,destroyOnClose:!0,onCancel:()=>{l.titleName="",l.treeVisible=!1},onOk:()=>{p()},children:R.jsx(bl,{spinning:l.treeLoading,style:{minHeight:"455px"},children:R.jsxs("div",{style:{minHeight:"455px"},className:`
365
+ ${st.TreeModalStyle} ${l.titleName==ie("sys.selection.chooseDepartment",{placeholder:"选择部门"})&&st.TreeDepartmentHeight}
366
+ `,children:[l.titleName==ie("sys.selection.chooseDepartment",{placeholder:"选择部门"})&&R.jsx(ue.Checkbox.Group,{className:st.TreeDepartmentCheckbox,value:l.treeDefine,options:["$DEPARTMENT"],onChange:k=>{l.treeDefine=k,l.treeDefineKey=k}}),l.treeData&&l.treeData.length>0&&!l.treeLoading&&R.jsx(ue.Tree,{defaultExpandAll:!0,height:435,checkable:!0,blockNode:!0,selectable:!1,checkedKeys:l.treeDefineKey||[],checkStrictly:!0,onCheck:(k,{checkedNodes:F})=>{let P=Ee.map(F,"title");l.treeCheckable?(l.treeDefineKey=k.checked,l.treeDefine=P):(l.treeDefineKey=k.checked.length===0?[]:[k.checked[k.checked.length-1]],l.treeDefine=P.length===0?[]:[P[P.length-1]])},children:w(l.treeData)})]})})}),l.visibleTransfer&&R.jsx(FV,{title:ie("sys.addValue",{placeholder:"添加值"}),visible:l.visibleTransfer,dataSource:l.dataSource,targetKeys:l.targetKeys,loading:l.loading,isRadio:l.isRadio,columns:l.isUserCode=="10001017"||l.isUserCode=="10005256"?[{title:ie("sys.label.nameRe",{placeholder:"姓名"}),dataIndex:"name"},{title:ie("project.attr.owner.edit.window.email",{placeholder:"邮箱"}),dataIndex:"email"}]:l.isUserCode=="10001018"||l.isUserCode=="LifeCyclePhase"||l.isUserCode=="ProductList"||l.isUserCode=="StatusList"||l.isUserCode=="Category"?[{title:ie("sys.label.name",{placeholder:"名称"}),dataIndex:"name"},{title:ie("project.attr.owner.edit.window.describe",{placeholder:"描述"}),dataIndex:"description"}]:l.isUserCode=="AllProjectsList"?[{title:ie("sys.label.name",{placeholder:"名称"}),dataIndex:"name"},{title:ie("project.attr.owner.edit.window.describe",{placeholder:"描述"}),dataIndex:"insDesc"}]:l.isUserCode=="OldLifePhase"||l.isUserCode=="NewLifePhase"||l.isUserCode=="LifePhaseList"?[{title:ie("sys.label.name",{placeholder:"名称"}),dataIndex:"showName"},{title:ie("project.attr.owner.edit.window.describe",{placeholder:"描述"}),dataIndex:"description"}]:l.isUserCode=="AllEnableManufactures"||l.isUserCode=="AllSupplier"?[{title:ie("sys.label.name",{placeholder:"名称"}),dataIndex:"number"},{title:ie("project.attr.owner.edit.window.describe",{placeholder:"描述"}),dataIndex:"description"}]:l.isUserCode=="CategoryList"||l.isUserCode=="ClassifyList"?[{title:ie("sys.label.name",{placeholder:"名称"}),dataIndex:"name"},{title:ie("project.workflow.status",{placeholder:"状态"}),dataIndex:"status",render:k=>k?ie("sys.label.enable",{placeholder:"启用"}):ie("sys.disable.disable",{placeholder:"禁用"})}]:l.isUserCode=="WorkflowNodeList"||l.isUserCode=="AllCalendars"?[{title:ie("sys.label.name",{placeholder:"名称"}),dataIndex:"name"}]:l.isUserCode=="WorkflowList"?[{title:ie("sys.label.name",{placeholder:"名称"}),dataIndex:"workflowName"},{title:ie("sys.import.category",{placeholder:"分类"}),dataIndex:"changeObject"}]:[{title:ie("sys.label.number",{placeholder:"编号"}),dataIndex:"code"},{title:ie("project.attr.owner.edit.window.describe",{placeholder:"描述"}),dataIndex:"description"}],onCancel:()=>{l.isUserCode="",l.visibleTransfer=!1},onSubmit:k=>{let F=[],P=[],j=["10001017","10005256","10001018","LifeCyclePhase","Category","CategoryList","ClassifyList","StatusList","WorkflowNodeList","AllCalendars","AllProjectsList"];for(let N of k)j.includes(l.isUserCode)||o.includes(l.isUserCode)?N.name=="$USER"?(P.push(N.name),F.push({label:N.name,value:N.name})):l.isUserCode=="WorkflowList"?(P.push(N.id),F.push({label:N.workflowName,value:N.id})):l.isUserCode=="LifePhaseList"?(P.push(N.id),F.push({label:N.showName,value:N.id})):(P.push(N.id),F.push({label:N.name,value:N.id})):l.isUserCode=="OldLifePhase"||l.isUserCode=="NewLifePhase"?(P.push(N.id),F.push({label:N.showName,value:N.id})):l.isUserCode=="AllEnableManufactures"||l.isUserCode=="AllSupplier"?(P.push(N.id),F.push({label:N.number,value:N.id})):(P.push(N.id),F.push({label:N.code,value:N.id}));console.log(P),console.log(F),u.formCofing.relations[l.treeIndex1].relation[l.treeIndex2].attribute.value=P.join(","),u.formCofing.relations[l.treeIndex1].relation[l.treeIndex2].attribute.valueKey=F,console.log(u),l.isUserCode="",l.visibleTransfer=!1}})]})}),{Option:wC}=ue.Select,PV=e=>{var p;const[t]=ue.Form.useForm(),r=U.useRef(null),[n,a]=U.useState(""),[i,s]=U.useState([]),[o,u]=U.useState([]);El(()=>{console.log(e)});const l=Jn({type1:void 0,type2:void 0}),f=(v,_)=>R.jsx(fh,{highlightStyle:{color:"#F5325C",backgroundColor:"rgb(0, 0, 0, 0)",padding:"0"},caseSensitive:!0,searchWords:[_?_.toString():""],textToHighlight:v?v.toString():""}),d=()=>{var v;l.type1=void 0,l.type2=void 0,l.popUpSelect=[],s([]),(v=r.current)==null||v.emptyCondition(!0),t.setFieldsValue({type1:void 0})};return R.jsxs("div",{className:Gl.itemsCreated,children:[R.jsx("div",{className:Gl.classifyBox,children:R.jsxs(ue.Row,{gutter:8,className:Gl.rowBox,children:[R.jsxs(ue.Col,{span:12,className:Gl.labelLength,children:[ie("sys.import.category",{placeholder:"分类"}),":"]}),R.jsxs(ue.Col,{span:12,className:Gl.labelLength,children:[ie("sys.import.subCategory",{placeholder:"子分类"}),":"]}),R.jsx(ue.Col,{span:12,children:R.jsx(ue.Form,{form:t,children:R.jsx(ue.Form.Item,{name:"type1",children:R.jsx(ue.Select,{allowClear:!0,showSearch:!0,optionFilterProp:"label",value:l.type1||void 0,style:{width:"100%"},placeholder:ie("sys.label.selectOption",{placeholder:"请选择"}),suffixIcon:R.jsx(gt,{type:"xia-mian",style:{color:"#333",pointerEvents:"none"}}),onChange:(v,_)=>{var x,w,C;l.type1=v,l.type2=void 0,l.fields=[],l.popUpSelect=[],l.sortColum=[],l.searchConditionData={base_item_id:(_==null?void 0:_.value)||"",base_item_name:(_==null?void 0:_.label)||"",object_id:"",object_name:"",relations:[]},(x=r.current)==null||x.emptyCondition(!0),v?((w=r.current)==null||w.setCondition(_,0),e.getInterface(v,"",!0)):(s([]),(C=r.current)==null||C.setCondition(_))},onSearch:v=>{a(v)},onBlur:()=>{a("")},filterOption:(v,_)=>_.label.toLowerCase().indexOf(v.toLowerCase())>=0,children:(p=e.advancedSearchClassify)==null?void 0:p.map(v=>R.jsx(wC,{label:v.label,value:v.value,disabled:v.disabled,children:f(v.label,n)},v.value))})})})}),R.jsx(ue.Col,{span:12,children:R.jsx(ue.Select,{allowClear:!0,showSearch:!0,optionFilterProp:"label",value:l.type2||void 0,style:{width:"100%"},placeholder:ie("sys.label.selectOption",{placeholder:"请选择"}),suffixIcon:R.jsx(gt,{type:"xia-mian",style:{color:"#333",pointerEvents:"none"}}),onChange:(v,_)=>{var x,w,C;l.type2=v,l.subcategoryApicode=(_==null?void 0:_.apicode)||"",(x=r.current)==null||x.emptyCondition(),v?((w=r.current)==null||w.setCondition(_,1),e.getAttribute(l.type1,v,!0)):((C=r.current)==null||C.setCondition("",1),e.getAttribute(l.type1))},onSearch:v=>{a(v)},onBlur:()=>{a("")},filterOption:(v,_)=>_.label.toLowerCase().indexOf(v.toLowerCase())>=0,children:i.map(v=>R.jsx(wC,{label:v.label,value:v.value,apicode:v.apicode,disabled:v.disabled,children:f(v.label,n)},v.value))})})]})}),R.jsx("div",{className:Gl.materialCondition,children:R.jsx(bC,{ref:r,horizontalStyle:!0,typeData:l.typeData,subcategory:i,searchTree:o,cleanUpBtn:l.conditionObj&&!l.conditionObj.canDel&&l.conditionObj.searchType=="private",conditionObj:l.conditionObj,eliminateSearch:()=>{d()}})})]})},_a={scrollBarAssembly:"_scrollBarAssembly_1gh57_1",buttonChangeTop:"_buttonChangeTop_1gh57_6",iconBox:"_iconBox_1gh57_22",topButton:"_topButton_1gh57_28",buttonChange:"_buttonChange_1gh57_6",rightButton:"_rightButton_1gh57_56"},DV=e=>{var a;const t=U.useRef(null),r=MM(t),n=Jn({scrollLeft:0,clientWidth:0,scrollWidth:0,scrollTop:0,clientHeight:0,scrollHeight:0});return U.useEffect(()=>{const i=()=>{var s,o,u,l,f,d;e.direction?(n.scrollTop=(s=t.current)==null?void 0:s.scrollTop,n.clientHeight=(o=t.current)==null?void 0:o.clientHeight,n.scrollHeight=(u=t.current)==null?void 0:u.scrollHeight):(n.scrollLeft=(l=t.current)==null?void 0:l.scrollLeft,n.clientWidth=(f=t.current)==null?void 0:f.clientWidth,n.scrollWidth=(d=t.current)==null?void 0:d.scrollWidth)};return i(),window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}},[(a=e.dataList)==null?void 0:a.length,r,e.resetButton]),R.jsxs("div",{className:_a.scrollBarAssembly,ref:t,style:{...e.style},onScroll:i=>{e.direction?(n.scrollTop=i.target.scrollTop,n.clientHeight=i.target.clientHeight,n.scrollHeight=i.target.scrollHeight):(n.scrollLeft=i.target.scrollLeft,n.clientWidth=i.target.clientWidth,n.scrollWidth=i.target.scrollWidth)},onWheel:i=>{Ee.includes(i.target.className,"frontend-select-dropdown")||Ee.includes(i.target.className,"frontend-select-item")||Ee.includes(i.target.className,"frontend-select-item-option-content")||(e.direction?i.currentTarget.scrollTop+=i.deltaY:i.currentTarget.scrollLeft+=i.deltaY)},children:[!e.loading&&(e.direction?n.scrollTop!=0:n.scrollLeft!=0)&&R.jsx("div",{className:Qe(_a.columnBox,{[_a.buttonChangeTop]:e.direction,[_a.buttonChange]:!e.direction,[e.class]:e.class}),onClick:i=>{var s,o;i.stopPropagation(),e.direction?(s=t.current)==null||s.scrollTo({top:n.scrollTop-n.clientHeight,behavior:"smooth"}):(o=t.current)==null||o.scrollTo({left:n.scrollLeft-n.clientWidth,behavior:"smooth"})},children:e.direction?R.jsx(C8,{className:_a.iconBox}):R.jsx(_8,{className:_a.iconBox})}),e.children,!e.loading&&(e.direction?n.clientHeight+n.scrollTop+1<n.scrollHeight:n.clientWidth+n.scrollLeft<n.scrollWidth)&&R.jsx("div",{className:Qe(_a.columnBox,{[_a.buttonChangeTop]:e.direction,[_a.topButton]:e.direction,[_a.buttonChange]:!e.direction,[_a.rightButton]:!e.direction,[e.class]:e.class}),onClick:i=>{var s,o;i.stopPropagation(),e.direction?(s=t.current)==null||s.scrollTo({top:n.scrollTop+n.clientHeight,behavior:"smooth"}):(o=t.current)==null||o.scrollTo({left:n.scrollLeft+n.clientWidth,behavior:"smooth"})},children:e.direction?R.jsx(v8,{className:_a.iconBox}):R.jsx(E8,{className:_a.iconBox})})]})},vn={plmPublicTree:"_plmPublicTree_1m137_1",treeListBox:"_treeListBox_1m137_1",onDisable:"_onDisable_1m137_8",onHover:"_onHover_1m137_11",titleBox:"_titleBox_1m137_17",name:"_name_1m137_21",btnBox:"_btnBox_1m137_27",hoverStyle:"_hoverStyle_1m137_35"},{TreeNode:SC}=ue.Tree,{confirm:RV}=ue.Modal,IV=e=>{const t=U.useRef(),[r,n]=U.useState([]),[a,i]=U.useState([]),[s,o]=U.useState([]),u=Jn({startDragObj:{}});U.useEffect(()=>(u.addVisible?l():document.onkeydown=null,()=>{document.onkeydown=null}),[u.addVisible]);const l=()=>{document.onkeydown=function(b){var h=window.event||b,g=h.keyCode||h.which;g==13&&!e.confirmLoading&&f()}};El(()=>{let b=[];for(let h of e.treeCrumbs||[])b.push(h.id);i(b)});const f=async()=>{var g;const b=await((g=t.current)==null?void 0:g.validateFields()),h=await e.addRun({canDel:!0,folderType:u.treeObj.folderType,level:u.treeObj.level+1,name:b.name,parentId:u.treeObj.id,sort:u.treeObj.children&&u.treeObj.children.length.length>0?u.treeObj.children.length.length+1:1});h.warning?ue.message.warning(h.result):ue.message.success(h.result),u.addVisible=!1,e.getTreeList&&e.getTreeList()},d=(b,h="id")=>{var g=[];const y=S=>{for(var A=0,k=S.length;A<k;A++){const F=S[A];if(F.children&&F.children.length||F.conditionList&&!e.closeCondition){let P=[];F.conditionList&&!e.closeCondition?P=Ee.concat(F.children||[],F.conditionList):P=F.children,g.push(F[h]),y(P)}}};return y(b),g},p=b=>{v(b,e.treeData),n(e.treeData.slice())},v=(b,h)=>h.forEach(g=>{g.id===b?g.isEditable=!0:g.isEditable=!1,g.name=g.defaultValue,g.children&&v(b,g.children),g.conditionList&&v(b,g.conditionList)}),_=(b,h)=>{x(h,b.target.value,e.treeData),n(e.treeData.slice())},x=(b,h,g)=>g.forEach(y=>{y.id===b&&(y.name=h),y.children&&x(b,h,y.children),y.conditionList&&x(b,h,y.conditionList)}),w=(b,h)=>{C(b,h,e.treeData),n(e.treeData.slice())},C=(b,h,g)=>g.forEach(y=>{y.isEditable=!1,y.id===b&&(y.name=h),y.children&&C(b,h,y.children),y.conditionList&&C(b,h,y.conditionList)}),E=b=>b==null?void 0:b.map(g=>{if(g.isEditable?g.title=R.jsxs("div",{className:vn.treeListBox,children:[R.jsxs("div",{className:vn.titleBox,children:[R.jsx(gt,{type:g.content?"homesearch":Ee.includes(a,g.id)?"content-open2":"content-fold",style:{cursor:"pointer",fontSize:"16px",color:"#333",padding:"3px",borderRadius:"1px"}}),R.jsx(ue.Input,{size:"small",maxLength:16,value:g.name,onChange:y=>{_(y,g.id)}})]}),R.jsxs("div",{className:vn.btnBox,children:[R.jsx(m8,{style:{marginRight:"5px"},className:vn.hoverStyle,onClick:y=>{y.stopPropagation(),w(g.id,g.defaultValue)}}),e.editLoading||e.editConditioLoading?R.jsx(vf,{spin:!0}):R.jsx(h8,{className:vn.hoverStyle,onClick:async y=>{y.stopPropagation(),g.name===u.treeName?w(g.id,g.defaultValue):(g.content?await e.conditionEdit({id:g.id,searchFolderId:g.searchFolderId,searchType:g.searchType,itemCode:g.itemCode,conditionName:g.name,conditionObject:g.conditionObject,content:g.content,sort:g.sort,canDel:g.canDel}):await e.editRun({id:g.id,parentId:g.parentId,name:g.name,folderType:g.folderType,sort:g.sort,canDel:g.canDel,level:g.level}),e.getTreeList&&e.getTreeList())}})]})]},g.id):g.title=R.jsxs("div",{className:vn.treeListBox,children:[R.jsxs("div",{className:vn.titleBox,children:[R.jsx(gt,{type:g.content||g.searchType=="change"?"homesearch":Ee.includes(a,g.id)?"content-open2":"content-fold",style:{cursor:"pointer",fontSize:"16px",color:"#333",padding:"3px",borderRadius:"1px"}}),R.jsx("div",{className:vn.name,title:g.name,children:R.jsx("span",{children:g.name})})]}),R.jsxs("div",{className:Qe({[vn.btnBox]:!0,[vn.onHover]:!e.readOnly,[vn.onDisable]:e.readOnly}),children:[g.level<4&&g.isAuth&&R.jsx(iv,{className:vn.hoverStyle,onClick:y=>{y.preventDefault(),u.treeObj=g,u.addVisible=!0}}),g.level==1&&R.jsx("div",{onClick:y=>{y.stopPropagation()},children:R.jsx(gt,{className:vn.hoverStyle,type:Ee.intersection(d([g]),a).length==d([g]).length?"content-openmode":"content-open",style:{color:"#3C3C3C",cursor:"pointer",fontSize:"13px",marginLeft:"5px"},onClick:()=>{Ee.intersection(d([g]),a).length==d([g]).length?i(Ee.difference(a,d([g]))):i(Ee.uniq(Ee.concat(a,d([g]))))}})}),g.level!=1&&g.canDel&&R.jsx(y8,{className:vn.hoverStyle,style:{marginLeft:"5px"},onClick:y=>{y.stopPropagation(),RV(Jj({title:ie("project.tab.plan.delete.tips.title.confirm",{placeholder:"确认"}),content:`${ie("sys.label.deleteConfirmation",{placeholder:"删除后将不可恢复"})},${ie("sys.label.confirmDelete",{placeholder:"请确认是否删除"})}?`,onOk(){return new Promise(async(S,A)=>{g.content?e.conditionDelete({id:g.id}).then(k=>{k.warning?ue.message.warning(k.message):ue.message.success(k.message),S(!0),e.getTreeList&&e.getTreeList(g.id)}).catch(()=>{S(!0)}):e.deleteFolder({id:g.id}).then(k=>{k.warning?ue.message.warning(k.message):ue.message.success(k.message),S(!0),e.getTreeList&&e.getTreeList()}).catch(()=>{S(!0)})})}}))}}),g.level!=1&&(g.itemCode?g.isConditionNameAuth:g.isAuth)&&R.jsx(gt,{className:vn.hoverStyle,type:"content-edit",style:{color:"#3C3C3C",cursor:"pointer",fontSize:"12px",marginLeft:"5px"},onClick:y=>{y.stopPropagation(),u.treeName=g.name,p(g.id)}})]})]},g.id),g.children||g.conditionList&&!e.closeCondition){let y=[];return g.conditionList&&!e.closeCondition?y=Ee.concat(g.children||[],g.conditionList):y=g.children,R.jsx(SC,{title:g.title,dataRef:g,children:E(y)},g.id)}return R.jsx(SC,{title:g.title,dataRef:g},g.id)});return R.jsxs("div",{className:vn.plmPublicTree,children:[R.jsx(ue.Tree,{switcherIcon:R.jsx(gt,{type:"xia-mian",style:{color:"#3C3C3C",cursor:"pointer"}}),draggable:e.closeDrag?!1:{icon:!1},expandedKeys:a,selectedKeys:e.selectedKeys,onExpand:b=>{i(b)},onSelect:(b,h)=>{var g,y,S;if(e.closeCondition){if(((g=h.node.dataRef)==null?void 0:g.folderType)==="change")return}else if(!((y=h.node.dataRef)!=null&&y.content)&&((S=h.node.dataRef)==null?void 0:S.searchType)!=="change")return;e.onSelect&&e.onSelect(b,h)},allowDrop:e.closeDrag?void 0:({dropNode:b,dropPosition:h})=>h!=-1&&u.startDragObj.folderType==b.dataRef.folderType&&(u.startDragObj.id.length>b.key.length&&h==0&&u.startDragObj.level-b.dataRef.level==1||u.startDragObj.id.length==b.key.length&&h!=0),onDragStart:e.closeDrag?void 0:b=>{u.startDragObj=b.node.dataRef},children:E(e.treeData)}),R.jsx(Cu,{modalTitle:ie("sys.label.createFolder",{placeholder:"新建文件夹"}),mask:!1,width:400,visible:u.addVisible,maskClosable:!1,okText:ie("project.tab.plan.details.window.save",{placeholder:"保存"}),onCancel:()=>{u.addVisible=!1},style:{top:"25vh"},className:vn.container,destroyOnClose:!0,onOk:async()=>{f()},confirmLoading:e.confirmLoading,children:R.jsx(BS,{ref:t,size:"middle",labelAlign:"left",labelCol:{style:{width:80}},children:R.jsx(xC,{name:"name",label:ie("sys.label.name",{placeholder:"名称"}),content:{type:"Input",props:{maxLength:16,placeholder:ie("sys.name.enterName",{placeholder:"请输入名称"})}},rules:[{required:!0,message:ie("sys.category.nameEmpty",{placeholder:"名称不能为空"})}]})})})]})},NV="1.0.5",MV=U.createContext({}),LV={classNames:{},styles:{},className:"",style:{}},Yl=e=>{const t=U.useContext(MV);return U.useMemo(()=>({...LV,...t[e]}),[t[e]])};function Pt(){return Pt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Pt.apply(null,arguments)}function Xi(){const{getPrefixCls:e,direction:t,csp:r,iconPrefixCls:n,theme:a}=U.useContext(ue.ConfigProvider.ConfigContext);return{theme:a,getPrefixCls:e,direction:t,csp:r,iconPrefixCls:n}}process.env.NODE_ENV;function wi(e){var t=pe.useRef();t.current=e;var r=pe.useCallback(function(){for(var n,a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return(n=t.current)===null||n===void 0?void 0:n.call.apply(n,[t].concat(i))},[]);return r}var EC=process.env.NODE_ENV!=="test"&&co()?pe.useLayoutEffect:pe.useEffect,v2=function(t,r){var n=pe.useRef(!0);EC(function(){return t(n.current)},r),EC(function(){return n.current=!1,function(){n.current=!0}},[])},CC=function(t,r){v2(function(n){if(!n)return t()},r)};function A0(e){var t=pe.useRef(!1),r=pe.useState(e),n=bt(r,2),a=n[0],i=n[1];pe.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function s(o,u){u&&t.current||i(o)}return[a,s]}function x2(e){return e!==void 0}function g1(e,t){var r=t||{},n=r.defaultValue,a=r.value,i=r.onChange,s=r.postState,o=A0(function(){return x2(a)?a:x2(n)?typeof n=="function"?n():n:typeof e=="function"?e():e}),u=bt(o,2),l=u[0],f=u[1],d=a!==void 0?a:l,p=s?s(d):d,v=wi(i),_=A0([d]),x=bt(_,2),w=x[0],C=x[1];CC(function(){var b=w[0];l!==b&&v(l,b)},[w]),CC(function(){x2(a)||f(a)},[a]);var E=wi(function(b,h){f(b,h),C([d],h)});return[p,E]}var v1={exports:{}},Zt={};/**
367
+ * @license React
368
+ * react-is.production.min.js
369
+ *
370
+ * Copyright (c) Facebook, Inc. and its affiliates.
371
+ *
372
+ * This source code is licensed under the MIT license found in the
373
+ * LICENSE file in the root directory of this source tree.
374
+ */var kC;function BV(){if(kC)return Zt;kC=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),o=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),_;_=Symbol.for("react.module.reference");function x(w){if(typeof w=="object"&&w!==null){var C=w.$$typeof;switch(C){case e:switch(w=w.type,w){case r:case a:case n:case l:case f:return w;default:switch(w=w&&w.$$typeof,w){case o:case s:case u:case p:case d:case i:return w;default:return C}}case t:return C}}}return Zt.ContextConsumer=s,Zt.ContextProvider=i,Zt.Element=e,Zt.ForwardRef=u,Zt.Fragment=r,Zt.Lazy=p,Zt.Memo=d,Zt.Portal=t,Zt.Profiler=a,Zt.StrictMode=n,Zt.Suspense=l,Zt.SuspenseList=f,Zt.isAsyncMode=function(){return!1},Zt.isConcurrentMode=function(){return!1},Zt.isContextConsumer=function(w){return x(w)===s},Zt.isContextProvider=function(w){return x(w)===i},Zt.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===e},Zt.isForwardRef=function(w){return x(w)===u},Zt.isFragment=function(w){return x(w)===r},Zt.isLazy=function(w){return x(w)===p},Zt.isMemo=function(w){return x(w)===d},Zt.isPortal=function(w){return x(w)===t},Zt.isProfiler=function(w){return x(w)===a},Zt.isStrictMode=function(w){return x(w)===n},Zt.isSuspense=function(w){return x(w)===l},Zt.isSuspenseList=function(w){return x(w)===f},Zt.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===r||w===a||w===n||w===l||w===f||w===v||typeof w=="object"&&w!==null&&(w.$$typeof===p||w.$$typeof===d||w.$$typeof===i||w.$$typeof===s||w.$$typeof===u||w.$$typeof===_||w.getModuleId!==void 0)},Zt.typeOf=x,Zt}var Jt={};/**
375
+ * @license React
376
+ * react-is.development.js
377
+ *
378
+ * Copyright (c) Facebook, Inc. and its affiliates.
379
+ *
380
+ * This source code is licensed under the MIT license found in the
381
+ * LICENSE file in the root directory of this source tree.
382
+ */var TC;function jV(){return TC||(TC=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),o=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),_=!1,x=!1,w=!1,C=!1,E=!1,b;b=Symbol.for("react.module.reference");function h(_e){return!!(typeof _e=="string"||typeof _e=="function"||_e===r||_e===a||E||_e===n||_e===l||_e===f||C||_e===v||_||x||w||typeof _e=="object"&&_e!==null&&(_e.$$typeof===p||_e.$$typeof===d||_e.$$typeof===i||_e.$$typeof===s||_e.$$typeof===u||_e.$$typeof===b||_e.getModuleId!==void 0))}function g(_e){if(typeof _e=="object"&&_e!==null){var ze=_e.$$typeof;switch(ze){case e:var We=_e.type;switch(We){case r:case a:case n:case l:case f:return We;default:var De=We&&We.$$typeof;switch(De){case o:case s:case u:case p:case d:case i:return De;default:return ze}}case t:return ze}}}var y=s,S=i,A=e,k=u,F=r,P=p,j=d,N=t,I=a,B=n,O=l,M=f,V=!1,L=!1;function W(_e){return V||(V=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function G(_e){return L||(L=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function H(_e){return g(_e)===s}function Q(_e){return g(_e)===i}function K(_e){return typeof _e=="object"&&_e!==null&&_e.$$typeof===e}function te(_e){return g(_e)===u}function se(_e){return g(_e)===r}function le(_e){return g(_e)===p}function ge(_e){return g(_e)===d}function ye(_e){return g(_e)===t}function be(_e){return g(_e)===a}function Be(_e){return g(_e)===n}function J(_e){return g(_e)===l}function qe(_e){return g(_e)===f}Jt.ContextConsumer=y,Jt.ContextProvider=S,Jt.Element=A,Jt.ForwardRef=k,Jt.Fragment=F,Jt.Lazy=P,Jt.Memo=j,Jt.Portal=N,Jt.Profiler=I,Jt.StrictMode=B,Jt.Suspense=O,Jt.SuspenseList=M,Jt.isAsyncMode=W,Jt.isConcurrentMode=G,Jt.isContextConsumer=H,Jt.isContextProvider=Q,Jt.isElement=K,Jt.isForwardRef=te,Jt.isFragment=se,Jt.isLazy=le,Jt.isMemo=ge,Jt.isPortal=ye,Jt.isProfiler=be,Jt.isStrictMode=Be,Jt.isSuspense=J,Jt.isSuspenseList=qe,Jt.isValidElementType=h,Jt.typeOf=g}()),Jt}var AC;function $V(){return AC||(AC=1,process.env.NODE_ENV==="production"?v1.exports=BV():v1.exports=jV()),v1.exports}var _2=$V(),UV=Symbol.for("react.element"),zV=Symbol.for("react.transitional.element"),HV=Symbol.for("react.fragment");function WV(e){return e&&hr(e)==="object"&&(e.$$typeof===UV||e.$$typeof===zV)&&e.type===HV}var VV=Number(U.version.split(".")[0]),qV=function(t,r){typeof t=="function"?t(r):hr(t)==="object"&&t&&"current"in t&&(t.current=r)},GV=function(t){var r,n;if(!t)return!1;if(FC(t)&&VV>=19)return!0;var a=_2.isMemo(t)?t.type.type:t.type;return!(typeof a=="function"&&!((r=a.prototype)!==null&&r!==void 0&&r.render)&&a.$$typeof!==_2.ForwardRef||typeof t=="function"&&!((n=t.prototype)!==null&&n!==void 0&&n.render)&&t.$$typeof!==_2.ForwardRef)};function FC(e){return U.isValidElement(e)&&!WV(e)}var YV=function(t){if(t&&FC(t)){var r=t;return r.props.propertyIsEnumerable("ref")?r.props.ref:r.ref}return null};function XV(e,t){for(var r=e,n=0;n<t.length;n+=1){if(r==null)return;r=r[t[n]]}return r}function KV(e){if(Array.isArray(e))return fg(e)}function ZV(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function JV(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
383
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pu(e){return KV(e)||ZV(e)||s3(e)||JV()}const F0=U.createContext(null);function OC(e){const{getDropContainer:t,className:r,prefixCls:n,children:a}=e,{disabled:i}=U.useContext(F0),[s,o]=U.useState(),[u,l]=U.useState(null);if(U.useEffect(()=>{const p=t==null?void 0:t();s!==p&&o(p)},[t]),U.useEffect(()=>{if(s){const p=()=>{l(!0)},v=w=>{w.preventDefault()},_=w=>{w.relatedTarget||l(!1)},x=w=>{l(!1),w.preventDefault()};return document.addEventListener("dragenter",p),document.addEventListener("dragover",v),document.addEventListener("dragleave",_),document.addEventListener("drop",x),()=>{document.removeEventListener("dragenter",p),document.removeEventListener("dragover",v),document.removeEventListener("dragleave",_),document.removeEventListener("drop",x)}}},[!!s]),!(t&&s&&!i))return null;const d=`${n}-drop-area`;return rf.createPortal(U.createElement("div",{className:Qe(d,r,{[`${d}-on-body`]:s.tagName==="BODY"}),style:{display:u?"block":"none"}},a),s)}var PC=U.createContext({});const nn=Math.round;function y2(e,t){const r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=r.map(a=>parseFloat(a));for(let a=0;a<3;a+=1)n[a]=t(n[a]||0,r[a]||"",a);return r[3]?n[3]=r[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}const DC=(e,t,r)=>r===0?e:e/100;function O0(e,t){const r=t||255;return e>r?r:e<0?0:e}class ra{constructor(t){et(this,"isValid",!0),et(this,"r",0),et(this,"g",0),et(this,"b",0),et(this,"a",1),et(this,"_h",void 0),et(this,"_s",void 0),et(this,"_l",void 0),et(this,"_v",void 0),et(this,"_max",void 0),et(this,"_min",void 0),et(this,"_brightness",void 0);function r(n){return n[0]in t&&n[1]in t&&n[2]in t}if(t)if(typeof t=="string"){let a=function(i){return n.startsWith(i)};const n=t.trim();/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):a("rgb")?this.fromRgbString(n):a("hsl")?this.fromHslString(n):(a("hsv")||a("hsb"))&&this.fromHsvString(n)}else if(t instanceof ra)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(r("rgb"))this.r=O0(t.r),this.g=O0(t.g),this.b=O0(t.b),this.a=typeof t.a=="number"?O0(t.a,1):1;else if(r("hsl"))this.fromHsl(t);else if(r("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const r=this.toHsv();return r.h=t,this._c(r)}getLuminance(){function t(i){const s=i/255;return s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4)}const r=t(this.r),n=t(this.g),a=t(this.b);return .2126*r+.7152*n+.0722*a}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=nn(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const r=this.getHue(),n=this.getSaturation();let a=this.getLightness()-t/100;return a<0&&(a=0),this._c({h:r,s:n,l:a,a:this.a})}lighten(t=10){const r=this.getHue(),n=this.getSaturation();let a=this.getLightness()+t/100;return a>1&&(a=1),this._c({h:r,s:n,l:a,a:this.a})}mix(t,r=50){const n=this._c(t),a=r/100,i=o=>(n[o]-this[o])*a+this[o],s={r:nn(i("r")),g:nn(i("g")),b:nn(i("b")),a:nn(i("a")*100)/100};return this._c(s)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const r=this._c(t),n=this.a+r.a*(1-this.a),a=i=>nn((this[i]*this.a+r[i]*r.a*(1-this.a))/n);return this._c({r:a("r"),g:a("g"),b:a("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const r=(this.r||0).toString(16);t+=r.length===2?r:"0"+r;const n=(this.g||0).toString(16);t+=n.length===2?n:"0"+n;const a=(this.b||0).toString(16);if(t+=a.length===2?a:"0"+a,typeof this.a=="number"&&this.a>=0&&this.a<1){const i=nn(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),r=nn(this.getSaturation()*100),n=nn(this.getLightness()*100);return this.a!==1?`hsla(${t},${r}%,${n}%,${this.a})`:`hsl(${t},${r}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,r,n){const a=this.clone();return a[t]=O0(r,n),a}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const r=t.replace("#","");function n(a,i){return parseInt(r[a]+r[i||a],16)}r.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=r[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=r[6]?n(6,7)/255:1)}fromHsl({h:t,s:r,l:n,a}){if(this._h=t%360,this._s=r,this._l=n,this.a=typeof a=="number"?a:1,r<=0){const p=nn(n*255);this.r=p,this.g=p,this.b=p}let i=0,s=0,o=0;const u=t/60,l=(1-Math.abs(2*n-1))*r,f=l*(1-Math.abs(u%2-1));u>=0&&u<1?(i=l,s=f):u>=1&&u<2?(i=f,s=l):u>=2&&u<3?(s=l,o=f):u>=3&&u<4?(s=f,o=l):u>=4&&u<5?(i=f,o=l):u>=5&&u<6&&(i=l,o=f);const d=n-l/2;this.r=nn((i+d)*255),this.g=nn((s+d)*255),this.b=nn((o+d)*255)}fromHsv({h:t,s:r,v:n,a}){this._h=t%360,this._s=r,this._v=n,this.a=typeof a=="number"?a:1;const i=nn(n*255);if(this.r=i,this.g=i,this.b=i,r<=0)return;const s=t/60,o=Math.floor(s),u=s-o,l=nn(n*(1-r)*255),f=nn(n*(1-r*u)*255),d=nn(n*(1-r*(1-u))*255);switch(o){case 0:this.g=d,this.b=l;break;case 1:this.r=f,this.b=l;break;case 2:this.r=l,this.b=d;break;case 3:this.r=l,this.g=f;break;case 4:this.r=d,this.g=l;break;case 5:default:this.g=l,this.b=f;break}}fromHsvString(t){const r=y2(t,DC);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){const r=y2(t,DC);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){const r=y2(t,(n,a)=>a.includes("%")?nn(n/100*255):n);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}}var x1=2,RC=.16,QV=.05,eq=.05,tq=.15,IC=5,NC=4,rq=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function MC(e,t,r){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-x1*t:Math.round(e.h)+x1*t:n=r?Math.round(e.h)+x1*t:Math.round(e.h)-x1*t,n<0?n+=360:n>=360&&(n-=360),n}function LC(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-RC*t:t===NC?n=e.s+RC:n=e.s+QV*t,n>1&&(n=1),r&&t===IC&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(n*100)/100}function BC(e,t,r){var n;return r?n=e.v+eq*t:n=e.v-tq*t,n=Math.max(0,Math.min(1,n)),Math.round(n*100)/100}function nq(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=new ra(e),a=n.toHsv(),i=IC;i>0;i-=1){var s=new ra({h:MC(a,i,!0),s:LC(a,i,!0),v:BC(a,i,!0)});r.push(s)}r.push(n);for(var o=1;o<=NC;o+=1){var u=new ra({h:MC(a,o),s:LC(a,o),v:BC(a,o)});r.push(u)}return t.theme==="dark"?rq.map(function(l){var f=l.index,d=l.amount;return new ra(t.backgroundColor||"#141414").mix(r[f],d).toHexString()}):r.map(function(l){return l.toHexString()})}var b2=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];b2.primary=b2[5];function jC(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function aq(e){return jC(e)instanceof ShadowRoot}function iq(e){return aq(e)?jC(e):null}function sq(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function oq(e,t){uu(e,"[@ant-design/icons] ".concat(t))}function $C(e){return hr(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(hr(e.icon)==="object"||typeof e.icon=="function")}function UC(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];switch(r){case"class":t.className=n,delete t.class;break;default:delete t[r],t[sq(r)]=n}return t},{})}function w2(e,t,r){return r?U.createElement(e.tag,Oe(Oe({key:t},UC(e.attrs)),r),(e.children||[]).map(function(n,a){return w2(n,"".concat(t,"-").concat(e.tag,"-").concat(a))})):U.createElement(e.tag,Oe({key:t},UC(e.attrs)),(e.children||[]).map(function(n,a){return w2(n,"".concat(t,"-").concat(e.tag,"-").concat(a))}))}function zC(e){return nq(e)[0]}function HC(e){return e?Array.isArray(e)?e:[e]:[]}var uq=`
384
+ .anticon {
385
+ display: inline-flex;
386
+ align-items: center;
387
+ color: inherit;
388
+ font-style: normal;
389
+ line-height: 0;
390
+ text-align: center;
391
+ text-transform: none;
392
+ vertical-align: -0.125em;
393
+ text-rendering: optimizeLegibility;
394
+ -webkit-font-smoothing: antialiased;
395
+ -moz-osx-font-smoothing: grayscale;
396
+ }
397
+
398
+ .anticon > * {
399
+ line-height: 1;
400
+ }
401
+
402
+ .anticon svg {
403
+ display: inline-block;
404
+ }
405
+
406
+ .anticon::before {
407
+ display: none;
408
+ }
409
+
410
+ .anticon .anticon-icon {
411
+ display: block;
412
+ }
413
+
414
+ .anticon[tabindex] {
415
+ cursor: pointer;
416
+ }
417
+
418
+ .anticon-spin::before,
419
+ .anticon-spin {
420
+ display: inline-block;
421
+ -webkit-animation: loadingCircle 1s infinite linear;
422
+ animation: loadingCircle 1s infinite linear;
423
+ }
424
+
425
+ @-webkit-keyframes loadingCircle {
426
+ 100% {
427
+ -webkit-transform: rotate(360deg);
428
+ transform: rotate(360deg);
429
+ }
430
+ }
431
+
432
+ @keyframes loadingCircle {
433
+ 100% {
434
+ -webkit-transform: rotate(360deg);
435
+ transform: rotate(360deg);
436
+ }
437
+ }
438
+ `,lq=function(t){var r=U.useContext(PC),n=r.csp,a=r.prefixCls,i=r.layer,s=uq;a&&(s=s.replace(/anticon/g,a)),i&&(s="@layer ".concat(i,` {
439
+ `).concat(s,`
440
+ }`)),U.useEffect(function(){var o=t.current,u=iq(o);lu(s,"@ant-design-icons",{prepend:!i,csp:n,attachTo:u})},[])},cq=["icon","className","onClick","style","primaryColor","secondaryColor"],P0={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function fq(e){var t=e.primaryColor,r=e.secondaryColor;P0.primaryColor=t,P0.secondaryColor=r||zC(t),P0.calculated=!!r}function dq(){return Oe({},P0)}var Xl=function(t){var r=t.icon,n=t.className,a=t.onClick,i=t.style,s=t.primaryColor,o=t.secondaryColor,u=uo(t,cq),l=pe.useRef(),f=P0;if(s&&(f={primaryColor:s,secondaryColor:o||zC(s)}),lq(l),oq($C(r),"icon should be icon definiton, but got ".concat(r)),!$C(r))return null;var d=r;return d&&typeof d.icon=="function"&&(d=Oe(Oe({},d),{},{icon:d.icon(f.primaryColor,f.secondaryColor)})),w2(d.icon,"svg-".concat(d.name),Oe(Oe({className:n,onClick:a,style:i,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},u),{},{ref:l}))};Xl.displayName="IconReact",Xl.getTwoToneColors=dq,Xl.setTwoToneColors=fq;function WC(e){var t=HC(e),r=bt(t,2),n=r[0],a=r[1];return Xl.setTwoToneColors({primaryColor:n,secondaryColor:a})}function hq(){var e=Xl.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var pq=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];WC(b2.primary);var $r=pe.forwardRef(function(e,t){var r=e.className,n=e.icon,a=e.spin,i=e.rotate,s=e.tabIndex,o=e.onClick,u=e.twoToneColor,l=uo(e,pq),f=pe.useContext(PC),d=f.prefixCls,p=d===void 0?"anticon":d,v=f.rootClassName,_=Qe(v,p,et(et({},"".concat(p,"-").concat(n.name),!!n.name),"".concat(p,"-spin"),!!a||n.name==="loading"),r),x=s;x===void 0&&o&&(x=-1);var w=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,C=HC(u),E=bt(C,2),b=E[0],h=E[1];return pe.createElement("span",Pt({role:"img","aria-label":n.name},l,{ref:t,tabIndex:x,onClick:o,className:_}),pe.createElement(Xl,{icon:n,primaryColor:b,secondaryColor:h,style:w}))});$r.displayName="AntdIcon",$r.getTwoToneColor=hq,$r.setTwoToneColor=WC;var mq=function(t,r){return pe.createElement($r,Pt({},t,{ref:r,icon:EI}))},VC=pe.forwardRef(mq);process.env.NODE_ENV!=="production"&&(VC.displayName="ArrowUpOutlined");var gq=function(t,r){return pe.createElement($r,Pt({},t,{ref:r,icon:CI}))},qC=pe.forwardRef(gq);process.env.NODE_ENV!=="production"&&(qC.displayName="AudioMutedOutlined");var vq=function(t,r){return pe.createElement($r,Pt({},t,{ref:r,icon:kI}))},GC=pe.forwardRef(vq);process.env.NODE_ENV!=="production"&&(GC.displayName="AudioOutlined");var xq=function(t,r){return pe.createElement($r,Pt({},t,{ref:r,icon:RI}))},YC=pe.forwardRef(xq);process.env.NODE_ENV!=="production"&&(YC.displayName="ClearOutlined");var _q=function(t,r){return pe.createElement($r,Pt({},t,{ref:r,icon:II}))},XC=pe.forwardRef(_q);process.env.NODE_ENV!=="production"&&(XC.displayName="CloseCircleFilled");var yq=function(t,r){return pe.createElement($r,Pt({},t,{ref:r,icon:p8}))},KC=pe.forwardRef(yq);process.env.NODE_ENV!=="production"&&(KC.displayName="CloseOutlined");var bq=function(t,r){return pe.createElement($r,Pt({},t,{ref:r,icon:$I}))},ZC=pe.forwardRef(bq);process.env.NODE_ENV!=="production"&&(ZC.displayName="EllipsisOutlined");var wq=function(t,r){return pe.createElement($r,Pt({},t,{ref:r,icon:UI}))},JC=pe.forwardRef(wq);process.env.NODE_ENV!=="production"&&(JC.displayName="FileExcelFilled");var Sq=function(t,r){return pe.createElement($r,Pt({},t,{ref:r,icon:zI}))},QC=pe.forwardRef(Sq);process.env.NODE_ENV!=="production"&&(QC.displayName="FileImageFilled");var Eq=function(t,r){return pe.createElement($r,Pt({},t,{ref:r,icon:HI}))},ek=pe.forwardRef(Eq);process.env.NODE_ENV!=="production"&&(ek.displayName="FileMarkdownFilled");var Cq=function(t,r){return pe.createElement($r,Pt({},t,{ref:r,icon:WI}))},tk=pe.forwardRef(Cq);process.env.NODE_ENV!=="production"&&(tk.displayName="FilePdfFilled");var kq=function(t,r){return pe.createElement($r,Pt({},t,{ref:r,icon:VI}))},rk=pe.forwardRef(kq);process.env.NODE_ENV!=="production"&&(rk.displayName="FilePptFilled");var Tq=function(t,r){return pe.createElement($r,Pt({},t,{ref:r,icon:qI}))},nk=pe.forwardRef(Tq);process.env.NODE_ENV!=="production"&&(nk.displayName="FileTextFilled");var Aq=function(t,r){return pe.createElement($r,Pt({},t,{ref:r,icon:GI}))},ak=pe.forwardRef(Aq);process.env.NODE_ENV!=="production"&&(ak.displayName="FileWordFilled");var Fq=function(t,r){return pe.createElement($r,Pt({},t,{ref:r,icon:YI}))},ik=pe.forwardRef(Fq);process.env.NODE_ENV!=="production"&&(ik.displayName="FileZipFilled");var Oq=function(t,r){return pe.createElement($r,Pt({},t,{ref:r,icon:x8}))},sk=pe.forwardRef(Oq);process.env.NODE_ENV!=="production"&&(sk.displayName="LeftOutlined");var Pq=function(t,r){return pe.createElement($r,Pt({},t,{ref:r,icon:w8}))},ok=pe.forwardRef(Pq);process.env.NODE_ENV!=="production"&&(ok.displayName="PlusOutlined");var Dq=function(t,r){return pe.createElement($r,Pt({},t,{ref:r,icon:S8}))},uk=pe.forwardRef(Dq);process.env.NODE_ENV!=="production"&&(uk.displayName="RightOutlined");function lk(e){return e instanceof HTMLElement||e instanceof SVGElement}function Rq(e){return e&&hr(e)==="object"&&lk(e.nativeElement)?e.nativeElement:lk(e)?e:null}function Iq(e){var t=Rq(e);if(t)return t;if(e instanceof U.Component){var r;return(r=rf.findDOMNode)===null||r===void 0?void 0:r.call(rf,e)}return null}var Nq=pe.createContext({});function Ki(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ck(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a3(n.key),n)}}function Zi(e,t,r){return t&&ck(e.prototype,t),r&&ck(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function S2(e,t){return S2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},S2(e,t)}function _1(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&S2(e,t)}function y1(e){return y1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y1(e)}function fk(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(fk=function(){return!!e})()}function Du(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mq(e,t){if(t&&(hr(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Du(e)}function b1(e){var t=fk();return function(){var r,n=y1(e);if(t){var a=y1(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Mq(this,r)}}var Lq=function(e){_1(r,e);var t=b1(r);function r(){return Ki(this,r),t.apply(this,arguments)}return Zi(r,[{key:"render",value:function(){return this.props.children}}]),r}(pe.Component);function Bq(e){var t=pe.useReducer(function(o){return o+1},0),r=bt(t,2),n=r[1],a=pe.useRef(e),i=wi(function(){return a.current}),s=wi(function(o){a.current=typeof o=="function"?o(a.current):o,n()});return[i,s]}var bo="none",w1="appear",S1="enter",E1="leave",dk="none",Si="prepare",Kl="start",Zl="active",E2="end",hk="prepared";function pk(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit".concat(e)]="webkit".concat(t),r["Moz".concat(e)]="moz".concat(t),r["ms".concat(e)]="MS".concat(t),r["O".concat(e)]="o".concat(t.toLowerCase()),r}function jq(e,t){var r={animationend:pk("Animation","AnimationEnd"),transitionend:pk("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var $q=jq(co(),typeof window<"u"?window:{}),mk={};if(co()){var Uq=document.createElement("div");mk=Uq.style}var C1={};function gk(e){if(C1[e])return C1[e];var t=$q[e];if(t)for(var r=Object.keys(t),n=r.length,a=0;a<n;a+=1){var i=r[a];if(Object.prototype.hasOwnProperty.call(t,i)&&i in mk)return C1[e]=t[i],C1[e]}return""}var vk=gk("animationend"),xk=gk("transitionend"),_k=!!(vk&&xk),yk=vk||"animationend",bk=xk||"transitionend";function wk(e,t){if(!e)return null;if(hr(e)==="object"){var r=t.replace(/-\w/g,function(n){return n[1].toUpperCase()});return e[r]}return"".concat(e,"-").concat(t)}const zq=function(e){var t=U.useRef();function r(a){a&&(a.removeEventListener(bk,e),a.removeEventListener(yk,e))}function n(a){t.current&&t.current!==a&&r(t.current),a&&a!==t.current&&(a.addEventListener(bk,e),a.addEventListener(yk,e),t.current=a)}return pe.useEffect(function(){return function(){r(t.current)}},[]),[n,r]};var Sk=co()?U.useLayoutEffect:U.useEffect,Ek=function(t){return+setTimeout(t,16)},Ck=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(Ek=function(t){return window.requestAnimationFrame(t)},Ck=function(t){return window.cancelAnimationFrame(t)});var kk=0,k1=new Map;function Tk(e){k1.delete(e)}var T1=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;kk+=1;var n=kk;function a(i){if(i===0)Tk(n),t();else{var s=Ek(function(){a(i-1)});k1.set(n,s)}}return a(r),n};T1.cancel=function(e){var t=k1.get(e);return Tk(e),Ck(t)},process.env.NODE_ENV!=="production"&&(T1.ids=function(){return k1});const Hq=function(){var e=pe.useRef(null);function t(){T1.cancel(e.current)}function r(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var i=T1(function(){a<=1?n({isCanceled:function(){return i!==e.current}}):r(n,a-1)});e.current=i}return pe.useEffect(function(){return function(){t()}},[]),[r,t]};var Wq=[Si,Kl,Zl,E2],Vq=[Si,hk],Ak=!1,qq=!0;function Fk(e){return e===Zl||e===E2}const Gq=function(e,t,r){var n=A0(dk),a=bt(n,2),i=a[0],s=a[1],o=Hq(),u=bt(o,2),l=u[0],f=u[1];function d(){s(Si,!0)}var p=t?Vq:Wq;return Sk(function(){if(i!==dk&&i!==E2){var v=p.indexOf(i),_=p[v+1],x=r(i);x===Ak?s(_,!0):_&&l(function(w){function C(){w.isCanceled()||s(_,!0)}x===!0?C():Promise.resolve(x).then(C)})}},[e,i]),pe.useEffect(function(){return function(){f()}},[]),[d,i]};function Yq(e,t,r,n){var a=n.motionEnter,i=a===void 0?!0:a,s=n.motionAppear,o=s===void 0?!0:s,u=n.motionLeave,l=u===void 0?!0:u,f=n.motionDeadline,d=n.motionLeaveImmediately,p=n.onAppearPrepare,v=n.onEnterPrepare,_=n.onLeavePrepare,x=n.onAppearStart,w=n.onEnterStart,C=n.onLeaveStart,E=n.onAppearActive,b=n.onEnterActive,h=n.onLeaveActive,g=n.onAppearEnd,y=n.onEnterEnd,S=n.onLeaveEnd,A=n.onVisibleChanged,k=A0(),F=bt(k,2),P=F[0],j=F[1],N=Bq(bo),I=bt(N,2),B=I[0],O=I[1],M=A0(null),V=bt(M,2),L=V[0],W=V[1],G=B(),H=U.useRef(!1),Q=U.useRef(null);function K(){return r()}var te=U.useRef(!1);function se(){O(bo),W(null,!0)}var le=wi(function(Je){var Xe=B();if(Xe!==bo){var xt=K();if(!(Je&&!Je.deadline&&Je.target!==xt)){var or=te.current,Fr;Xe===w1&&or?Fr=g==null?void 0:g(xt,Je):Xe===S1&&or?Fr=y==null?void 0:y(xt,Je):Xe===E1&&or&&(Fr=S==null?void 0:S(xt,Je)),or&&Fr!==!1&&se()}}}),ge=zq(le),ye=bt(ge,1),be=ye[0],Be=function(Xe){switch(Xe){case w1:return et(et(et({},Si,p),Kl,x),Zl,E);case S1:return et(et(et({},Si,v),Kl,w),Zl,b);case E1:return et(et(et({},Si,_),Kl,C),Zl,h);default:return{}}},J=pe.useMemo(function(){return Be(G)},[G]),qe=Gq(G,!e,function(Je){if(Je===Si){var Xe=J[Si];return Xe?Xe(K()):Ak}if(We in J){var xt;W(((xt=J[We])===null||xt===void 0?void 0:xt.call(J,K(),null))||null)}return We===Zl&&G!==bo&&(be(K()),f>0&&(clearTimeout(Q.current),Q.current=setTimeout(function(){le({deadline:!0})},f))),We===hk&&se(),qq}),_e=bt(qe,2),ze=_e[0],We=_e[1],De=Fk(We);te.current=De;var ut=U.useRef(null);Sk(function(){if(!(H.current&&ut.current===t)){j(t);var Je=H.current;H.current=!0;var Xe;!Je&&t&&o&&(Xe=w1),Je&&t&&i&&(Xe=S1),(Je&&!t&&l||!Je&&d&&!t&&l)&&(Xe=E1);var xt=Be(Xe);Xe&&(e||xt[Si])?(O(Xe),ze()):O(bo),ut.current=t}},[t]),U.useEffect(function(){(G===w1&&!o||G===S1&&!i||G===E1&&!l)&&O(bo)},[o,i,l]),U.useEffect(function(){return function(){H.current=!1,clearTimeout(Q.current)}},[]);var Ye=pe.useRef(!1);U.useEffect(function(){P&&(Ye.current=!0),P!==void 0&&G===bo&&((Ye.current||P)&&(A==null||A(P)),Ye.current=!0)},[P,G]);var it=L;return J[Si]&&We===Kl&&(it=Oe({transition:"none"},it)),[G,We,it,P??t]}function Xq(e){var t=e;hr(e)==="object"&&(t=e.transitionSupport);function r(a,i){return!!(a.motionName&&t&&i!==!1)}var n=pe.forwardRef(function(a,i){var s=a.visible,o=s===void 0?!0:s,u=a.removeOnLeave,l=u===void 0?!0:u,f=a.forceRender,d=a.children,p=a.motionName,v=a.leavedClassName,_=a.eventProps,x=pe.useContext(Nq),w=x.motion,C=r(a,w),E=U.useRef(),b=U.useRef();function h(){try{return E.current instanceof HTMLElement?E.current:Iq(b.current)}catch{return null}}var g=Yq(C,o,h,a),y=bt(g,4),S=y[0],A=y[1],k=y[2],F=y[3],P=pe.useRef(F);F&&(P.current=!0);var j=pe.useCallback(function(V){E.current=V,qV(i,V)},[i]),N,I=Oe(Oe({},_),{},{visible:o});if(!d)N=null;else if(S===bo)F?N=d(Oe({},I),j):!l&&P.current&&v?N=d(Oe(Oe({},I),{},{className:v}),j):f||!l&&!v?N=d(Oe(Oe({},I),{},{style:{display:"none"}}),j):N=null;else{var B;A===Si?B="prepare":Fk(A)?B="active":A===Kl&&(B="start");var O=wk(p,"".concat(S,"-").concat(B));N=d(Oe(Oe({},I),{},{className:Qe(wk(p,S),et(et({},O,O&&B),p,typeof p=="string")),style:k}),j)}if(pe.isValidElement(N)&&GV(N)){var M=YV(N);M||(N=pe.cloneElement(N,{ref:j}))}return pe.createElement(Lq,{ref:b},N)});return n.displayName="CSSMotion",n}const Ok=Xq(_k);var C2="add",k2="keep",T2="remove",A2="removed";function Kq(e){var t;return e&&hr(e)==="object"&&"key"in e?t=e:t={key:e},Oe(Oe({},t),{},{key:String(t.key)})}function F2(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(Kq)}function Zq(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[],n=0,a=t.length,i=F2(e),s=F2(t);i.forEach(function(l){for(var f=!1,d=n;d<a;d+=1){var p=s[d];if(p.key===l.key){n<d&&(r=r.concat(s.slice(n,d).map(function(v){return Oe(Oe({},v),{},{status:C2})})),n=d),r.push(Oe(Oe({},p),{},{status:k2})),n+=1,f=!0;break}}f||r.push(Oe(Oe({},l),{},{status:T2}))}),n<a&&(r=r.concat(s.slice(n).map(function(l){return Oe(Oe({},l),{},{status:C2})})));var o={};r.forEach(function(l){var f=l.key;o[f]=(o[f]||0)+1});var u=Object.keys(o).filter(function(l){return o[l]>1});return u.forEach(function(l){r=r.filter(function(f){var d=f.key,p=f.status;return d!==l||p!==T2}),r.forEach(function(f){f.key===l&&(f.status=k2)})}),r}var Jq=["component","children","onVisibleChanged","onAllRemoved"],Qq=["status"],eG=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function tG(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ok,r=function(n){_1(i,n);var a=b1(i);function i(){var s;Ki(this,i);for(var o=arguments.length,u=new Array(o),l=0;l<o;l++)u[l]=arguments[l];return s=a.call.apply(a,[this].concat(u)),et(Du(s),"state",{keyEntities:[]}),et(Du(s),"removeKey",function(f){s.setState(function(d){var p=d.keyEntities.map(function(v){return v.key!==f?v:Oe(Oe({},v),{},{status:A2})});return{keyEntities:p}},function(){var d=s.state.keyEntities,p=d.filter(function(v){var _=v.status;return _!==A2}).length;p===0&&s.props.onAllRemoved&&s.props.onAllRemoved()})}),s}return Zi(i,[{key:"render",value:function(){var o=this,u=this.state.keyEntities,l=this.props,f=l.component,d=l.children,p=l.onVisibleChanged;l.onAllRemoved;var v=uo(l,Jq),_=f||pe.Fragment,x={};return eG.forEach(function(w){x[w]=v[w],delete v[w]}),delete v.keys,pe.createElement(_,v,u.map(function(w,C){var E=w.status,b=uo(w,Qq),h=E===C2||E===k2;return pe.createElement(t,Pt({},x,{key:b.key,visible:h,eventProps:b,onVisibleChanged:function(y){p==null||p(y,{key:b.key}),y||o.removeKey(b.key)}}),function(g,y){return d(Oe(Oe({},g),{},{index:C}),y)})}))}}],[{key:"getDerivedStateFromProps",value:function(o,u){var l=o.keys,f=u.keyEntities,d=F2(l),p=Zq(f,d);return{keyEntities:p.filter(function(v){var _=f.find(function(x){var w=x.key;return v.key===w});return!(_&&_.status===A2&&v.status===T2)})}}}]),i}(pe.Component);return et(r,"defaultProps",{component:"div"}),r}const rG=tG(_k);function nG(e,t){const{children:r,upload:n,rootClassName:a}=e,i=U.useRef(null);return U.useImperativeHandle(t,()=>i.current),U.createElement(ue.Upload,Pt({},n,{showUploadList:!1,rootClassName:a,ref:i}),r)}const Pk=U.forwardRef(nG);function D0(e){for(var t=0,r,n=0,a=e.length;a>=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var aG="%";function O2(e){return e.join(aG)}var iG=function(){function e(t){Ki(this,e),et(this,"instanceId",void 0),et(this,"cache",new Map),this.instanceId=t}return Zi(e,[{key:"get",value:function(r){return this.opGet(O2(r))}},{key:"opGet",value:function(r){return this.cache.get(r)||null}},{key:"update",value:function(r,n){return this.opUpdate(O2(r),n)}},{key:"opUpdate",value:function(r,n){var a=this.cache.get(r),i=n(a);i===null?this.cache.delete(r):this.cache.set(r,i)}}]),e}(),Jl="data-token-hash",Ei="data-css-hash",sG="data-cache-path",wo="__cssinjs_instance__";function oG(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Ei,"]"))||[],r=document.head.firstChild;Array.from(t).forEach(function(a){a[wo]=a[wo]||e,a[wo]===e&&document.head.insertBefore(a,r)});var n={};Array.from(document.querySelectorAll("style[".concat(Ei,"]"))).forEach(function(a){var i=a.getAttribute(Ei);if(n[i]){if(a[wo]===e){var s;(s=a.parentNode)===null||s===void 0||s.removeChild(a)}}else n[i]=!0})}return new iG(e)}var A1=pe.createContext({hashPriority:"low",cache:oG(),defaultCache:!0});function uG(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}var P2=function(){function e(){Ki(this,e),et(this,"cache",void 0),et(this,"keys",void 0),et(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Zi(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(r){var n,a,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s={map:this.cache};return r.forEach(function(o){if(!s)s=void 0;else{var u;s=(u=s)===null||u===void 0||(u=u.map)===null||u===void 0?void 0:u.get(o)}}),(n=s)!==null&&n!==void 0&&n.value&&i&&(s.value[1]=this.cacheCallTimes++),(a=s)===null||a===void 0?void 0:a.value}},{key:"get",value:function(r){var n;return(n=this.internalGet(r,!0))===null||n===void 0?void 0:n[0]}},{key:"has",value:function(r){return!!this.internalGet(r)}},{key:"set",value:function(r,n){var a=this;if(!this.has(r)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(l,f){var d=bt(l,2),p=d[1];return a.internalGet(f)[1]<p?[f,a.internalGet(f)[1]]:l},[this.keys[0],this.cacheCallTimes]),s=bt(i,1),o=s[0];this.delete(o)}this.keys.push(r)}var u=this.cache;r.forEach(function(l,f){if(f===r.length-1)u.set(l,{value:[n,a.cacheCallTimes++]});else{var d=u.get(l);d?d.map||(d.map=new Map):u.set(l,{map:new Map}),u=u.get(l).map}})}},{key:"deleteByPath",value:function(r,n){var a=r.get(n[0]);if(n.length===1){var i;return a.map?r.set(n[0],{map:a.map}):r.delete(n[0]),(i=a.value)===null||i===void 0?void 0:i[0]}var s=this.deleteByPath(a.map,n.slice(1));return(!a.map||a.map.size===0)&&!a.value&&r.delete(n[0]),s}},{key:"delete",value:function(r){if(this.has(r))return this.keys=this.keys.filter(function(n){return!uG(n,r)}),this.deleteByPath(this.cache,r)}}]),e}();et(P2,"MAX_CACHE_SIZE",20),et(P2,"MAX_CACHE_OFFSET",5);var Dk=0,Rk=function(){function e(t){Ki(this,e),et(this,"derivatives",void 0),et(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Dk,t.length===0&&wg(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),Dk+=1}return Zi(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(n,a){return a(r,n)},void 0)}}]),e}(),D2=new P2;function lG(e){var t=Array.isArray(e)?e:[e];return D2.has(t)||D2.set(t,new Rk(t)),D2.get(t)}var cG=new WeakMap,R2={};function fG(e,t){for(var r=cG,n=0;n<t.length;n+=1){var a=t[n];r.has(a)||r.set(a,new WeakMap),r=r.get(a)}return r.has(R2)||r.set(R2,e()),r.get(R2)}var Ik=new WeakMap;function R0(e){var t=Ik.get(e)||"";return t||(Object.keys(e).forEach(function(r){var n=e[r];t+=r,n instanceof Rk?t+=n.id:n&&hr(n)==="object"?t+=R0(n):t+=n}),t=D0(t),Ik.set(e,t)),t}function Nk(e,t){return D0("".concat(t,"_").concat(R0(e)))}var I2=co();function zs(e){return typeof e=="number"?"".concat(e,"px"):e}function F1(e,t,r){var n,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(i)return e;var s=Oe(Oe({},a),{},(n={},et(n,Jl,t),et(n,Ei,r),n)),o=Object.keys(s).map(function(u){var l=s[u];return l?"".concat(u,'="').concat(l,'"'):null}).filter(function(u){return u}).join(" ");return"<style ".concat(o,">").concat(e,"</style>")}var O1=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(r?"".concat(r,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},dG=function(t,r,n){return Object.keys(t).length?".".concat(r).concat(n!=null&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(t).map(function(a){var i=bt(a,2),s=i[0],o=i[1];return"".concat(s,":").concat(o,";")}).join(""),"}"):""},Mk=function(t,r,n){var a={},i={};return Object.entries(t).forEach(function(s){var o,u,l=bt(s,2),f=l[0],d=l[1];if(n!=null&&(o=n.preserve)!==null&&o!==void 0&&o[f])i[f]=d;else if((typeof d=="string"||typeof d=="number")&&!(n!=null&&(u=n.ignore)!==null&&u!==void 0&&u[f])){var p,v=O1(f,n==null?void 0:n.prefix);a[v]=typeof d=="number"&&!(n!=null&&(p=n.unitless)!==null&&p!==void 0&&p[f])?"".concat(d,"px"):String(d),i[f]="var(".concat(v,")")}}),[i,dG(a,r,{scope:n==null?void 0:n.scope})]},hG=Oe({},pe),Lk=hG.useInsertionEffect,pG=function(t,r,n){pe.useMemo(t,n),v2(function(){return r(!0)},n)},mG=Lk?function(e,t,r){return Lk(function(){return e(),t()},r)}:pG,gG=Oe({},pe),vG=gG.useInsertionEffect,xG=function(t){var r=[],n=!1;function a(i){if(n){process.env.NODE_ENV!=="production"&&wg(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");return}r.push(i)}return pe.useEffect(function(){return n=!1,function(){n=!0,r.length&&r.forEach(function(i){return i()})}},t),a},_G=function(){return function(t){t()}},yG=typeof vG<"u"?xG:_G;function bG(){return!1}var N2=!1;function wG(){return N2}const SG=process.env.NODE_ENV==="production"?bG:wG;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){var P1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:null;if(P1&&typeof P1.webpackHotUpdate=="function"){var EG=P1.webpackHotUpdate;P1.webpackHotUpdate=function(){return N2=!0,setTimeout(function(){N2=!1},0),EG.apply(void 0,arguments)}}}function M2(e,t,r,n,a){var i=pe.useContext(A1),s=i.cache,o=[e].concat(Pu(t)),u=O2(o),l=yG([u]),f=SG(),d=function(x){s.opUpdate(u,function(w){var C=w||[void 0,void 0],E=bt(C,2),b=E[0],h=b===void 0?0:b,g=E[1],y=g;process.env.NODE_ENV!=="production"&&g&&f&&(n==null||n(y,f),y=null);var S=y||r(),A=[h,S];return x?x(A):A})};pe.useMemo(function(){d()},[u]);var p=s.opGet(u);process.env.NODE_ENV!=="production"&&!p&&(d(),p=s.opGet(u));var v=p[1];return mG(function(){a==null||a(v)},function(_){return d(function(x){var w=bt(x,2),C=w[0],E=w[1];return _&&C===0&&(a==null||a(v)),[C+1,E]}),function(){s.opUpdate(u,function(x){var w=x||[],C=bt(w,2),E=C[0],b=E===void 0?0:E,h=C[1],g=b-1;return g===0?(l(function(){(_||!s.opGet(u))&&(n==null||n(h,!1))}),null):[b-1,h]})}},[u]),v}var CG={},kG=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",Ru=new Map;function TG(e){Ru.set(e,(Ru.get(e)||0)+1)}function AG(e,t){if(typeof document<"u"){var r=document.querySelectorAll("style[".concat(Jl,'="').concat(e,'"]'));r.forEach(function(n){if(n[wo]===t){var a;(a=n.parentNode)===null||a===void 0||a.removeChild(n)}})}}var FG=0;function OG(e,t){Ru.set(e,(Ru.get(e)||0)-1);var r=Array.from(Ru.keys()),n=r.filter(function(a){var i=Ru.get(a)||0;return i<=0});r.length-n.length>FG&&n.forEach(function(a){AG(a,t),Ru.delete(a)})}var PG=function(t,r,n,a){var i=n.getDerivativeToken(t),s=Oe(Oe({},i),r);return a&&(s=a(s)),s},Bk="token";function DG(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=U.useContext(A1),a=n.cache.instanceId,i=n.container,s=r.salt,o=s===void 0?"":s,u=r.override,l=u===void 0?CG:u,f=r.formatToken,d=r.getComputedToken,p=r.cssVar,v=fG(function(){return Object.assign.apply(Object,[{}].concat(Pu(t)))},t),_=R0(v),x=R0(l),w=p?R0(p):"",C=M2(Bk,[o,e.id,_,x,w],function(){var E,b=d?d(v,l,e):PG(v,l,e,f),h=Oe({},b),g="";if(p){var y=Mk(b,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve}),S=bt(y,2);b=S[0],g=S[1]}var A=Nk(b,o);b._tokenKey=A,h._tokenKey=Nk(h,o);var k=(E=p==null?void 0:p.key)!==null&&E!==void 0?E:A;b._themeKey=k,TG(k);var F="".concat(kG,"-").concat(D0(A));return b._hashId=F,[b,F,h,g,(p==null?void 0:p.key)||""]},function(E){OG(E[0]._themeKey,a)},function(E){var b=bt(E,4),h=b[0],g=b[3];if(p&&g){var y=lu(g,D0("css-variables-".concat(h._themeKey)),{mark:Ei,prepend:"queue",attachTo:i,priority:-999});y[wo]=a,y.setAttribute(Jl,h._themeKey)}});return C}var RG=function(t,r,n){var a=bt(t,5),i=a[2],s=a[3],o=a[4],u=n||{},l=u.plain;if(!s)return null;var f=i._tokenKey,d=-999,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},v=F1(s,o,f,p,l);return[d,f,v]},IG={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},jk="comm",$k="rule",Uk="decl",NG="@import",MG="@namespace",LG="@keyframes",BG="@layer",zk=Math.abs,L2=String.fromCharCode;function Hk(e){return e.trim()}function D1(e,t,r){return e.replace(t,r)}function jG(e,t,r){return e.indexOf(t,r)}function Ql(e,t){return e.charCodeAt(t)|0}function ec(e,t,r){return e.slice(t,r)}function Ji(e){return e.length}function $G(e){return e.length}function R1(e,t){return t.push(e),e}var I1=1,tc=1,Wk=0,qa=0,Vr=0,rc="";function B2(e,t,r,n,a,i,s,o){return{value:e,root:t,parent:r,type:n,props:a,children:i,line:I1,column:tc,length:s,return:"",siblings:o}}function UG(){return Vr}function zG(){return Vr=qa>0?Ql(rc,--qa):0,tc--,Vr===10&&(tc=1,I1--),Vr}function Ci(){return Vr=qa<Wk?Ql(rc,qa++):0,tc++,Vr===10&&(tc=1,I1++),Vr}function So(){return Ql(rc,qa)}function N1(){return qa}function M1(e,t){return ec(rc,e,t)}function I0(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function HG(e){return I1=tc=1,Wk=Ji(rc=e),qa=0,[]}function WG(e){return rc="",e}function j2(e){return Hk(M1(qa-1,$2(e===91?e+2:e===40?e+1:e)))}function VG(e){for(;(Vr=So())&&Vr<33;)Ci();return I0(e)>2||I0(Vr)>3?"":" "}function qG(e,t){for(;--t&&Ci()&&!(Vr<48||Vr>102||Vr>57&&Vr<65||Vr>70&&Vr<97););return M1(e,N1()+(t<6&&So()==32&&Ci()==32))}function $2(e){for(;Ci();)switch(Vr){case e:return qa;case 34:case 39:e!==34&&e!==39&&$2(Vr);break;case 40:e===41&&$2(e);break;case 92:Ci();break}return qa}function GG(e,t){for(;Ci()&&e+Vr!==57;)if(e+Vr===84&&So()===47)break;return"/*"+M1(t,qa-1)+"*"+L2(e===47?e:Ci())}function YG(e){for(;!I0(So());)Ci();return M1(e,qa)}function XG(e){return WG(L1("",null,null,null,[""],e=HG(e),0,[0],e))}function L1(e,t,r,n,a,i,s,o,u){for(var l=0,f=0,d=s,p=0,v=0,_=0,x=1,w=1,C=1,E=0,b="",h=a,g=i,y=n,S=b;w;)switch(_=E,E=Ci()){case 40:if(_!=108&&Ql(S,d-1)==58){jG(S+=D1(j2(E),"&","&\f"),"&\f",zk(l?o[l-1]:0))!=-1&&(C=-1);break}case 34:case 39:case 91:S+=j2(E);break;case 9:case 10:case 13:case 32:S+=VG(_);break;case 92:S+=qG(N1()-1,7);continue;case 47:switch(So()){case 42:case 47:R1(KG(GG(Ci(),N1()),t,r,u),u),(I0(_||1)==5||I0(So()||1)==5)&&Ji(S)&&ec(S,-1,void 0)!==" "&&(S+=" ");break;default:S+="/"}break;case 123*x:o[l++]=Ji(S)*C;case 125*x:case 59:case 0:switch(E){case 0:case 125:w=0;case 59+f:C==-1&&(S=D1(S,/\f/g,"")),v>0&&(Ji(S)-d||x===0&&_===47)&&R1(v>32?qk(S+";",n,r,d-1,u):qk(D1(S," ","")+";",n,r,d-2,u),u);break;case 59:S+=";";default:if(R1(y=Vk(S,t,r,l,f,a,o,b,h=[],g=[],d,i),i),E===123)if(f===0)L1(S,t,y,y,h,i,d,o,g);else{switch(p){case 99:if(Ql(S,3)===110)break;case 108:if(Ql(S,2)===97)break;default:f=0;case 100:case 109:case 115:}f?L1(e,y,y,n&&R1(Vk(e,y,y,0,0,a,o,b,a,h=[],d,g),g),a,g,d,o,n?h:g):L1(S,y,y,y,[""],g,0,o,g)}}l=f=v=0,x=C=1,b=S="",d=s;break;case 58:d=1+Ji(S),v=_;default:if(x<1){if(E==123)--x;else if(E==125&&x++==0&&zG()==125)continue}switch(S+=L2(E),E*x){case 38:C=f>0?1:(S+="\f",-1);break;case 44:o[l++]=(Ji(S)-1)*C,C=1;break;case 64:So()===45&&(S+=j2(Ci())),p=So(),f=d=Ji(b=S+=YG(N1())),E++;break;case 45:_===45&&Ji(S)==2&&(x=0)}}return i}function Vk(e,t,r,n,a,i,s,o,u,l,f,d){for(var p=a-1,v=a===0?i:[""],_=$G(v),x=0,w=0,C=0;x<n;++x)for(var E=0,b=ec(e,p+1,p=zk(w=s[x])),h=e;E<_;++E)(h=Hk(w>0?v[E]+" "+b:D1(b,/&\f/g,v[E])))&&(u[C++]=h);return B2(e,t,r,a===0?$k:o,u,l,f,d)}function KG(e,t,r,n){return B2(e,t,r,jk,L2(UG()),ec(e,2,-2),0,n)}function qk(e,t,r,n,a){return B2(e,t,r,Uk,ec(e,0,n),ec(e,n+1,-1),n,a)}function U2(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function ZG(e,t,r,n){switch(e.type){case BG:if(e.children.length)break;case NG:case MG:case Uk:return e.return=e.return||e.value;case jk:return"";case LG:return e.return=e.value+"{"+U2(e.children,n)+"}";case $k:if(!Ji(e.value=e.props.join(",")))return""}return Ji(r=U2(e.children,n))?e.return=e.value+"{"+r+"}":""}function Gk(e,t){var r=t.path,n=t.parentSelectors;uu(!1,"[Ant Design CSS-in-JS] ".concat(r?"Error in ".concat(r,": "):"").concat(e).concat(n.length?" Selector: ".concat(n.join(" | ")):""))}var JG=function(t,r,n){if(t==="content"){var a=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,i=["normal","none","initial","inherit","unset"];(typeof r!="string"||i.indexOf(r)===-1&&!a.test(r)&&(r.charAt(0)!==r.charAt(r.length-1)||r.charAt(0)!=='"'&&r.charAt(0)!=="'"))&&Gk("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(r,"\"'`."),n)}},QG=function(t,r,n){t==="animation"&&n.hashId&&r!=="none"&&Gk("You seem to be using hashed animation '".concat(r,"', in which case 'animationName' with Keyframe as value is recommended."),n)},Yk="data-ant-cssinjs-cache-path",Xk="_FILE_STYLE__",Iu,Kk=!0;function eY(){if(!Iu&&(Iu={},co())){var e=document.createElement("div");e.className=Yk,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(a){var i=a.split(":"),s=bt(i,2),o=s[0],u=s[1];Iu[o]=u});var r=document.querySelector("style[".concat(Yk,"]"));if(r){var n;Kk=!1,(n=r.parentNode)===null||n===void 0||n.removeChild(r)}document.body.removeChild(e)}}function tY(e){return eY(),!!Iu[e]}function rY(e){var t=Iu[e],r=null;if(t&&co())if(Kk)r=Xk;else{var n=document.querySelector("style[".concat(Ei,'="').concat(Iu[e],'"]'));n?r=n.innerHTML:delete Iu[e]}return[r,t]}var Zk="_skip_check_",Jk="_multi_value_";function B1(e){var t=U2(XG(e),ZG);return t.replace(/\{%%%\:[^;];}/g,";")}function nY(e){return hr(e)==="object"&&e&&(Zk in e||Jk in e)}function Qk(e,t,r){if(!t)return e;var n=".".concat(t),a=r==="low"?":where(".concat(n,")"):n,i=e.split(",").map(function(s){var o,u=s.trim().split(/\s+/),l=u[0]||"",f=((o=l.match(/^\w+/))===null||o===void 0?void 0:o[0])||"";return l="".concat(f).concat(a).concat(l.slice(f.length)),[l].concat(Pu(u.slice(1))).join(" ")});return i.join(",")}var aY=function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},a=n.root,i=n.injectHash,s=n.parentSelectors,o=r.hashId,u=r.layer,l=r.path,f=r.hashPriority,d=r.transformers,p=d===void 0?[]:d,v=r.linters,_=v===void 0?[]:v,x="",w={};function C(h){var g=h.getName(o);if(!w[g]){var y=e(h.style,r,{root:!1,parentSelectors:s}),S=bt(y,1),A=S[0];w[g]="@keyframes ".concat(h.getName(o)).concat(A)}}function E(h){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return h.forEach(function(y){Array.isArray(y)?E(y,g):y&&g.push(y)}),g}var b=E(Array.isArray(t)?t:[t]);return b.forEach(function(h){var g=typeof h=="string"&&!a?{}:h;if(typeof g=="string")x+="".concat(g,`
441
+ `);else if(g._keyframe)C(g);else{var y=p.reduce(function(S,A){var k;return(A==null||(k=A.visit)===null||k===void 0?void 0:k.call(A,S))||S},g);Object.keys(y).forEach(function(S){var A=y[S];if(hr(A)==="object"&&A&&(S!=="animationName"||!A._keyframe)&&!nY(A)){var k=!1,F=S.trim(),P=!1;(a||i)&&o?F.startsWith("@")?k=!0:F==="&"?F=Qk("",o,f):F=Qk(S,o,f):a&&!o&&(F==="&"||F==="")&&(F="",P=!0);var j=e(A,r,{root:P,injectHash:k,parentSelectors:[].concat(Pu(s),[F])}),N=bt(j,2),I=N[0],B=N[1];w=Oe(Oe({},w),B),x+="".concat(F).concat(I)}else{let V=function(L,W){process.env.NODE_ENV!=="production"&&(hr(A)!=="object"||!(A!=null&&A[Zk]))&&[JG,QG].concat(Pu(_)).forEach(function(Q){return Q(L,W,{path:l,hashId:o,parentSelectors:s})});var G=L.replace(/[A-Z]/g,function(Q){return"-".concat(Q.toLowerCase())}),H=W;!IG[L]&&typeof H=="number"&&H!==0&&(H="".concat(H,"px")),L==="animationName"&&W!==null&&W!==void 0&&W._keyframe&&(C(W),H=W.getName(o)),x+="".concat(G,":").concat(H,";")};var O,M=(O=A==null?void 0:A.value)!==null&&O!==void 0?O:A;hr(A)==="object"&&A!==null&&A!==void 0&&A[Jk]&&Array.isArray(M)?M.forEach(function(L){V(S,L)}):V(S,M)}})}}),a?u&&(x&&(x="@layer ".concat(u.name," {").concat(x,"}")),u.dependencies&&(w["@layer ".concat(u.name)]=u.dependencies.map(function(h){return"@layer ".concat(h,", ").concat(u.name,";")}).join(`
442
+ `))):x="{".concat(x,"}"),[x,w]};function eT(e,t){return D0("".concat(e.join("%")).concat(t))}function iY(){return null}var tT="style";function rT(e,t){var r=e.token,n=e.path,a=e.hashId,i=e.layer,s=e.nonce,o=e.clientOnly,u=e.order,l=u===void 0?0:u,f=pe.useContext(A1),d=f.autoClear,p=f.mock,v=f.defaultCache,_=f.hashPriority,x=f.container,w=f.ssrInline,C=f.transformers,E=f.linters,b=f.cache,h=f.layer,g=r._tokenKey,y=[g];h&&y.push("layer"),y.push.apply(y,Pu(n));var S=I2;process.env.NODE_ENV!=="production"&&p!==void 0&&(S=p==="client");var A=M2(tT,y,function(){var N=y.join("|");if(tY(N)){var I=rY(N),B=bt(I,2),O=B[0],M=B[1];if(O)return[O,g,M,{},o,l]}var V=t(),L=aY(V,{hashId:a,hashPriority:_,layer:h?i:void 0,path:n.join("-"),transformers:C,linters:E}),W=bt(L,2),G=W[0],H=W[1],Q=B1(G),K=eT(y,Q);return[Q,g,K,H,o,l]},function(N,I){var B=bt(N,3),O=B[2];(I||d)&&I2&&w3(O,{mark:Ei})},function(N){var I=bt(N,4),B=I[0];I[1];var O=I[2],M=I[3];if(S&&B!==Xk){var V={mark:Ei,prepend:h?!1:"queue",attachTo:x,priority:l},L=typeof s=="function"?s():s;L&&(V.csp={nonce:L});var W=[],G=[];Object.keys(M).forEach(function(Q){Q.startsWith("@layer")?W.push(Q):G.push(Q)}),W.forEach(function(Q){lu(B1(M[Q]),"_layer-".concat(Q),Oe(Oe({},V),{},{prepend:!0}))});var H=lu(B,O,V);H[wo]=b.instanceId,H.setAttribute(Jl,g),process.env.NODE_ENV!=="production"&&H.setAttribute(sG,y.join("|")),G.forEach(function(Q){lu(B1(M[Q]),"_effect-".concat(Q),V)})}}),k=bt(A,3),F=k[0],P=k[1],j=k[2];return function(N){var I;if(!w||S||!v)I=pe.createElement(iY,null);else{var B;I=pe.createElement("style",Pt({},(B={},et(B,Jl,P),et(B,Ei,j),B),{dangerouslySetInnerHTML:{__html:F}}))}return pe.createElement(pe.Fragment,null,I,N)}}var sY=function(t,r,n){var a=bt(t,6),i=a[0],s=a[1],o=a[2],u=a[3],l=a[4],f=a[5],d=n||{},p=d.plain;if(l)return null;var v=i,_={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)};return v=F1(i,s,o,_,p),u&&Object.keys(u).forEach(function(x){if(!r[x]){r[x]=!0;var w=B1(u[x]),C=F1(w,s,"_effect-".concat(x),_,p);x.startsWith("@layer")?v=C+v:v+=C}}),[f,o,v]},nT="cssVar",oY=function(t,r){var n=t.key,a=t.prefix,i=t.unitless,s=t.ignore,o=t.token,u=t.scope,l=u===void 0?"":u,f=U.useContext(A1),d=f.cache.instanceId,p=f.container,v=o._tokenKey,_=[].concat(Pu(t.path),[n,l,v]),x=M2(nT,_,function(){var w=r(),C=Mk(w,n,{prefix:a,unitless:i,ignore:s,scope:l}),E=bt(C,2),b=E[0],h=E[1],g=eT(_,h);return[b,h,g,n]},function(w){var C=bt(w,3),E=C[2];I2&&w3(E,{mark:Ei})},function(w){var C=bt(w,3),E=C[1],b=C[2];if(E){var h=lu(E,b,{mark:Ei,prepend:"queue",attachTo:p,priority:-999});h[wo]=d,h.setAttribute(Jl,n)}});return x},uY=function(t,r,n){var a=bt(t,4),i=a[1],s=a[2],o=a[3],u=n||{},l=u.plain;if(!i)return null;var f=-999,d={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},p=F1(i,o,s,d,l);return[f,s,p]},N0;N0={},et(N0,tT,sY),et(N0,Bk,RG),et(N0,nT,uY);var aT=function(){function e(t,r){Ki(this,e),et(this,"name",void 0),et(this,"style",void 0),et(this,"_keyframe",!0),this.name=t,this.style=r}return Zi(e,[{key:"getName",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return r?"".concat(r,"-").concat(this.name):this.name}}]),e}();function nc(e){return e.notSplit=!0,e}nc(["borderTop","borderBottom"]),nc(["borderTop"]),nc(["borderBottom"]),nc(["borderLeft","borderRight"]),nc(["borderLeft"]),nc(["borderRight"]);var iT=Zi(function e(){Ki(this,e)}),sT="CALC_UNIT",lY=new RegExp(sT,"g");function z2(e){return typeof e=="number"?"".concat(e).concat(sT):e}var cY=function(e){_1(r,e);var t=b1(r);function r(n,a){var i;Ki(this,r),i=t.call(this),et(Du(i),"result",""),et(Du(i),"unitlessCssVar",void 0),et(Du(i),"lowPriority",void 0);var s=hr(n);return i.unitlessCssVar=a,n instanceof r?i.result="(".concat(n.result,")"):s==="number"?i.result=z2(n):s==="string"&&(i.result=n),i}return Zi(r,[{key:"add",value:function(a){return a instanceof r?this.result="".concat(this.result," + ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," + ").concat(z2(a))),this.lowPriority=!0,this}},{key:"sub",value:function(a){return a instanceof r?this.result="".concat(this.result," - ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," - ").concat(z2(a))),this.lowPriority=!0,this}},{key:"mul",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof r?this.result="".concat(this.result," * ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," * ").concat(a)),this.lowPriority=!1,this}},{key:"div",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof r?this.result="".concat(this.result," / ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," / ").concat(a)),this.lowPriority=!1,this}},{key:"getResult",value:function(a){return this.lowPriority||a?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(a){var i=this,s=a||{},o=s.unit,u=!0;return typeof o=="boolean"?u=o:Array.from(this.unitlessCssVar).some(function(l){return i.result.includes(l)})&&(u=!1),this.result=this.result.replace(lY,u?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),r}(iT),fY=function(e){_1(r,e);var t=b1(r);function r(n){var a;return Ki(this,r),a=t.call(this),et(Du(a),"result",0),n instanceof r?a.result=n.result:typeof n=="number"&&(a.result=n),a}return Zi(r,[{key:"add",value:function(a){return a instanceof r?this.result+=a.result:typeof a=="number"&&(this.result+=a),this}},{key:"sub",value:function(a){return a instanceof r?this.result-=a.result:typeof a=="number"&&(this.result-=a),this}},{key:"mul",value:function(a){return a instanceof r?this.result*=a.result:typeof a=="number"&&(this.result*=a),this}},{key:"div",value:function(a){return a instanceof r?this.result/=a.result:typeof a=="number"&&(this.result/=a),this}},{key:"equal",value:function(){return this.result}}]),r}(iT),dY=function(t,r){var n=t==="css"?cY:fY;return function(a){return new n(a,r)}},oT=function(t,r){return"".concat([r,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function uT(e,t,r,n){var a=Oe({},t[e]);if(n!=null&&n.deprecatedTokens){var i=n.deprecatedTokens;i.forEach(function(o){var u=bt(o,2),l=u[0],f=u[1];if(process.env.NODE_ENV!=="production"&&uu(!(a!=null&&a[l]),"Component Token `".concat(String(l),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(f),"` instead.")),a!=null&&a[l]||a!=null&&a[f]){var d;(d=a[f])!==null&&d!==void 0||(a[f]=a==null?void 0:a[l])}})}var s=Oe(Oe({},r),a);return Object.keys(s).forEach(function(o){s[o]===t[o]&&delete s[o]}),s}var lT=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u",H2=!0;function Eo(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!lT)return Object.assign.apply(Object,[{}].concat(t));H2=!1;var n={};return t.forEach(function(a){if(hr(a)==="object"){var i=Object.keys(a);i.forEach(function(s){Object.defineProperty(n,s,{configurable:!0,enumerable:!0,get:function(){return a[s]}})})}}),H2=!0,n}var cT={};function hY(){}var pY=function(t){var r,n=t,a=hY;return lT&&typeof Proxy<"u"&&(r=new Set,n=new Proxy(t,{get:function(s,o){if(H2){var u;(u=r)===null||u===void 0||u.add(o)}return s[o]}}),a=function(s,o){var u;cT[s]={global:Array.from(r),component:Oe(Oe({},(u=cT[s])===null||u===void 0?void 0:u.component),o)}}),{token:n,keys:r,flush:a}};function fT(e,t,r){if(typeof r=="function"){var n;return r(Eo(t,(n=t[e])!==null&&n!==void 0?n:{}))}return r??{}}function mY(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return"max(".concat(n.map(function(i){return zs(i)}).join(","),")")},min:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return"min(".concat(n.map(function(i){return zs(i)}).join(","),")")}}}var gY=1e3*60*10,vY=function(){function e(){Ki(this,e),et(this,"map",new Map),et(this,"objectIDMap",new WeakMap),et(this,"nextID",0),et(this,"lastAccessBeat",new Map),et(this,"accessBeat",0)}return Zi(e,[{key:"set",value:function(r,n){this.clear();var a=this.getCompositeKey(r);this.map.set(a,n),this.lastAccessBeat.set(a,Date.now())}},{key:"get",value:function(r){var n=this.getCompositeKey(r),a=this.map.get(n);return this.lastAccessBeat.set(n,Date.now()),this.accessBeat+=1,a}},{key:"getCompositeKey",value:function(r){var n=this,a=r.map(function(i){return i&&hr(i)==="object"?"obj_".concat(n.getObjectID(i)):"".concat(hr(i),"_").concat(i)});return a.join("|")}},{key:"getObjectID",value:function(r){if(this.objectIDMap.has(r))return this.objectIDMap.get(r);var n=this.nextID;return this.objectIDMap.set(r,n),this.nextID+=1,n}},{key:"clear",value:function(){var r=this;if(this.accessBeat>1e4){var n=Date.now();this.lastAccessBeat.forEach(function(a,i){n-a>gY&&(r.map.delete(i),r.lastAccessBeat.delete(i))}),this.accessBeat=0}}}]),e}(),dT=new vY;function xY(e,t){return U.useMemo(function(){var r=dT.get(t);if(r)return r;var n=e();return dT.set(t,n),n},t)}var _Y=function(){return{}};function yY(e){var t=e.useCSP,r=t===void 0?_Y:t,n=e.useToken,a=e.usePrefix,i=e.getResetStyles,s=e.getCommonStyle,o=e.getCompUnitless;function u(p,v,_,x){var w=Array.isArray(p)?p[0]:p;function C(A){return"".concat(String(w)).concat(A.slice(0,1).toUpperCase()).concat(A.slice(1))}var E=(x==null?void 0:x.unitless)||{},b=typeof o=="function"?o(p):{},h=Oe(Oe({},b),{},et({},C("zIndexPopup"),!0));Object.keys(E).forEach(function(A){h[C(A)]=E[A]});var g=Oe(Oe({},x),{},{unitless:h,prefixToken:C}),y=f(p,v,_,g),S=l(w,_,g);return function(A){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:A,F=y(A,k),P=bt(F,2),j=P[1],N=S(k),I=bt(N,2),B=I[0],O=I[1];return[B,j,O]}}function l(p,v,_){var x=_.unitless,w=_.injectStyle,C=w===void 0?!0:w,E=_.prefixToken,b=_.ignore,h=function(S){var A=S.rootCls,k=S.cssVar,F=k===void 0?{}:k,P=n(),j=P.realToken;return oY({path:[p],prefix:F.prefix,key:F.key,unitless:x,ignore:b,token:j,scope:A},function(){var N=fT(p,j,v),I=uT(p,j,N,{deprecatedTokens:_==null?void 0:_.deprecatedTokens});return Object.keys(N).forEach(function(B){I[E(B)]=I[B],delete I[B]}),I}),null},g=function(S){var A=n(),k=A.cssVar;return[function(F){return C&&k?U.createElement(U.Fragment,null,U.createElement(h,{rootCls:S,cssVar:k,component:p}),F):F},k==null?void 0:k.key]};return g}function f(p,v,_){var x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},w=Array.isArray(p)?p:[p,p],C=bt(w,1),E=C[0],b=w.join("-"),h=e.layer||{name:"antd"};return function(g){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:g,S=n(),A=S.theme,k=S.realToken,F=S.hashId,P=S.token,j=S.cssVar,N=a(),I=N.rootPrefixCls,B=N.iconPrefixCls,O=r(),M=j?"css":"js",V=xY(function(){var K=new Set;return j&&Object.keys(x.unitless||{}).forEach(function(te){K.add(O1(te,j.prefix)),K.add(O1(te,oT(E,j.prefix)))}),dY(M,K)},[M,E,j==null?void 0:j.prefix]),L=mY(M),W=L.max,G=L.min,H={theme:A,token:P,hashId:F,nonce:function(){return O.nonce},clientOnly:x.clientOnly,layer:h,order:x.order||-999};typeof i=="function"&&rT(Oe(Oe({},H),{},{clientOnly:!1,path:["Shared",I]}),function(){return i(P,{prefix:{rootPrefixCls:I,iconPrefixCls:B},csp:O})});var Q=rT(Oe(Oe({},H),{},{path:[b,g,B]}),function(){if(x.injectStyle===!1)return[];var K=pY(P),te=K.token,se=K.flush,le=fT(E,k,_),ge=".".concat(g),ye=uT(E,k,le,{deprecatedTokens:x.deprecatedTokens});j&&le&&hr(le)==="object"&&Object.keys(le).forEach(function(qe){le[qe]="var(".concat(O1(qe,oT(E,j.prefix)),")")});var be=Eo(te,{componentCls:ge,prefixCls:g,iconCls:".".concat(B),antCls:".".concat(I),calc:V,max:W,min:G},j?le:ye),Be=v(be,{hashId:F,prefixCls:g,rootPrefixCls:I,iconPrefixCls:B});se(E,ye);var J=typeof s=="function"?s(be,g,y,x.resetFont):null;return[x.resetStyle===!1?null:J,Be]});return[Q,F]}}function d(p,v,_){var x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},w=f(p,v,_,Oe({resetStyle:!1,order:-998},x)),C=function(b){var h=b.prefixCls,g=b.rootCls,y=g===void 0?h:g;return w(h,y),null};return process.env.NODE_ENV!=="production"&&(C.displayName="SubStyle_".concat(String(Array.isArray(p)?p.join("."):p))),C}return{genStyleHooks:u,genSubStyleComponent:d,genComponentStyleHook:f}}const bY=Object.assign(Object.assign({},{blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"}),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
443
+ 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
444
+ 'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});function W2(e){return e>=0&&e<=255}function j1(e,t){const{r,g:n,b:a,a:i}=new ra(e).toRgb();if(i<1)return e;const{r:s,g:o,b:u}=new ra(t).toRgb();for(let l=.01;l<=1;l+=.01){const f=Math.round((r-s*(1-l))/l),d=Math.round((n-o*(1-l))/l),p=Math.round((a-u*(1-l))/l);if(W2(f)&&W2(d)&&W2(p))return new ra({r:f,g:d,b:p,a:Math.round(l*100)/100}).toRgbString()}return new ra({r,g:n,b:a,a:1}).toRgbString()}var wY=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function SY(e){const{override:t}=e,r=wY(e,["override"]),n=Object.assign({},t);Object.keys(bY).forEach(p=>{delete n[p]});const a=Object.assign(Object.assign({},r),n),i=480,s=576,o=768,u=992,l=1200,f=1600;if(a.motion===!1){const p="0s";a.motionDurationFast=p,a.motionDurationMid=p,a.motionDurationSlow=p}return Object.assign(Object.assign(Object.assign({},a),{colorFillContent:a.colorFillSecondary,colorFillContentHover:a.colorFill,colorFillAlter:a.colorFillQuaternary,colorBgContainerDisabled:a.colorFillTertiary,colorBorderBg:a.colorBgContainer,colorSplit:j1(a.colorBorderSecondary,a.colorBgContainer),colorTextPlaceholder:a.colorTextQuaternary,colorTextDisabled:a.colorTextQuaternary,colorTextHeading:a.colorText,colorTextLabel:a.colorTextSecondary,colorTextDescription:a.colorTextTertiary,colorTextLightSolid:a.colorWhite,colorHighlight:a.colorError,colorBgTextHover:a.colorFillSecondary,colorBgTextActive:a.colorFill,colorIcon:a.colorTextTertiary,colorIconHover:a.colorText,colorErrorOutline:j1(a.colorErrorBg,a.colorBgContainer),colorWarningOutline:j1(a.colorWarningBg,a.colorBgContainer),fontSizeIcon:a.fontSizeSM,lineWidthFocus:a.lineWidth*3,lineWidth:a.lineWidth,controlOutlineWidth:a.lineWidth*2,controlInteractiveSize:a.controlHeight/2,controlItemBgHover:a.colorFillTertiary,controlItemBgActive:a.colorPrimaryBg,controlItemBgActiveHover:a.colorPrimaryBgHover,controlItemBgActiveDisabled:a.colorFill,controlTmpOutline:a.colorFillQuaternary,controlOutline:j1(a.colorPrimaryBg,a.colorBgContainer),lineType:a.lineType,borderRadius:a.borderRadius,borderRadiusXS:a.borderRadiusXS,borderRadiusSM:a.borderRadiusSM,borderRadiusLG:a.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:a.sizeXXS,paddingXS:a.sizeXS,paddingSM:a.sizeSM,padding:a.size,paddingMD:a.sizeMD,paddingLG:a.sizeLG,paddingXL:a.sizeXL,paddingContentHorizontalLG:a.sizeLG,paddingContentVerticalLG:a.sizeMS,paddingContentHorizontal:a.sizeMS,paddingContentVertical:a.sizeSM,paddingContentHorizontalSM:a.size,paddingContentVerticalSM:a.sizeXS,marginXXS:a.sizeXXS,marginXS:a.sizeXS,marginSM:a.sizeSM,margin:a.size,marginMD:a.sizeMD,marginLG:a.sizeLG,marginXL:a.sizeXL,marginXXL:a.sizeXXL,boxShadow:`
445
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
446
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
447
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
448
+ `,boxShadowSecondary:`
449
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
450
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
451
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
452
+ `,boxShadowTertiary:`
453
+ 0 1px 2px 0 rgba(0, 0, 0, 0.03),
454
+ 0 1px 6px -1px rgba(0, 0, 0, 0.02),
455
+ 0 2px 4px 0 rgba(0, 0, 0, 0.02)
456
+ `,screenXS:i,screenXSMin:i,screenXSMax:s-1,screenSM:s,screenSMMin:s,screenSMMax:o-1,screenMD:o,screenMDMin:o,screenMDMax:u-1,screenLG:u,screenLGMin:u,screenLGMax:l-1,screenXL:l,screenXLMin:l,screenXLMax:f-1,screenXXL:f,screenXXLMin:f,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
457
+ 0 1px 2px -2px ${new ra("rgba(0, 0, 0, 0.16)").toRgbString()},
458
+ 0 3px 6px 0 ${new ra("rgba(0, 0, 0, 0.12)").toRgbString()},
459
+ 0 5px 12px 4px ${new ra("rgba(0, 0, 0, 0.09)").toRgbString()}
460
+ `,boxShadowDrawerRight:`
461
+ -6px 0 16px 0 rgba(0, 0, 0, 0.08),
462
+ -3px 0 6px -4px rgba(0, 0, 0, 0.12),
463
+ -9px 0 28px 8px rgba(0, 0, 0, 0.05)
464
+ `,boxShadowDrawerLeft:`
465
+ 6px 0 16px 0 rgba(0, 0, 0, 0.08),
466
+ 3px 0 6px -4px rgba(0, 0, 0, 0.12),
467
+ 9px 0 28px 8px rgba(0, 0, 0, 0.05)
468
+ `,boxShadowDrawerUp:`
469
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
470
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
471
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
472
+ `,boxShadowDrawerDown:`
473
+ 0 -6px 16px 0 rgba(0, 0, 0, 0.08),
474
+ 0 -3px 6px -4px rgba(0, 0, 0, 0.12),
475
+ 0 -9px 28px 8px rgba(0, 0, 0, 0.05)
476
+ `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),n)}const EY={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},CY={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},kY=lG(ue.theme.defaultAlgorithm),TY={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},hT=(e,t,r)=>{const n=r.getDerivativeToken(e),{override:a,...i}=t;let s={...n,override:a};return s=SY(s),i&&Object.entries(i).forEach(([o,u])=>{const{theme:l,...f}=u;let d=f;l&&(d=hT({...s,...f},{override:f},l)),s[o]=d}),s};function AY(){const{token:e,hashed:t,theme:r=kY,override:n,cssVar:a}=U.useContext(ue.theme._internalContext),[i,s,o]=DG(r,[ue.theme.defaultSeed,e],{salt:`${NV}-${t||""}`,override:n,getComputedToken:hT,cssVar:a&&{prefix:a.prefix,key:a.key,unitless:EY,ignore:CY,preserve:TY}});return[r,o,t?s:"",i,a]}const{genStyleHooks:ac}=yY({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=Xi();return{iconPrefixCls:t,rootPrefixCls:e()}},useToken:()=>{const[e,t,r,n,a]=AY();return{theme:e,realToken:t,hashId:r,token:n,cssVar:a}},useCSP:()=>{const{csp:e}=Xi();return e??{}},layer:{name:"antdx",dependencies:["antd"]}}),FY=e=>{const{componentCls:t,calc:r}=e,n=`${t}-list-card`,a=r(e.fontSize).mul(e.lineHeight).mul(2).add(e.paddingSM).add(e.paddingSM).equal();return{[n]:{borderRadius:e.borderRadius,position:"relative",background:e.colorFillContent,borderWidth:e.lineWidth,borderStyle:"solid",borderColor:"transparent",flex:"none",[`${n}-name,${n}-desc`]:{display:"flex",flexWrap:"nowrap",maxWidth:"100%"},[`${n}-ellipsis-prefix`]:{flex:"0 1 auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},[`${n}-ellipsis-suffix`]:{flex:"none"},"&-type-overview":{padding:r(e.paddingSM).sub(e.lineWidth).equal(),paddingInlineStart:r(e.padding).add(e.lineWidth).equal(),display:"flex",flexWrap:"nowrap",gap:e.paddingXS,alignItems:"flex-start",width:236,[`${n}-icon`]:{fontSize:r(e.fontSizeLG).mul(2).equal(),lineHeight:1,paddingTop:r(e.paddingXXS).mul(1.5).equal(),flex:"none"},[`${n}-content`]:{flex:"auto",minWidth:0,display:"flex",flexDirection:"column",alignItems:"stretch"},[`${n}-desc`]:{color:e.colorTextTertiary}},"&-type-preview":{width:a,height:a,lineHeight:1,[`&:not(${n}-status-error)`]:{border:0},img:{width:"100%",height:"100%",verticalAlign:"top",objectFit:"cover",borderRadius:"inherit"},[`${n}-img-mask`]:{position:"absolute",inset:0,display:"flex",justifyContent:"center",alignItems:"center",background:`rgba(0, 0, 0, ${e.opacityLoading})`,borderRadius:"inherit"},[`&${n}-status-error`]:{[`img, ${n}-img-mask`]:{borderRadius:r(e.borderRadius).sub(e.lineWidth).equal()},[`${n}-desc`]:{paddingInline:e.paddingXXS}},[`${n}-progress`]:{}},[`${n}-remove`]:{position:"absolute",top:0,insetInlineEnd:0,border:0,padding:e.paddingXXS,background:"transparent",lineHeight:1,transform:"translate(50%, -50%)",fontSize:e.fontSize,cursor:"pointer",opacity:e.opacityLoading,display:"none","&:dir(rtl)":{transform:"translate(-50%, -50%)"},"&:hover":{opacity:1},"&:active":{opacity:e.opacityLoading}},[`&:hover ${n}-remove`]:{display:"block"},"&-status-error":{borderColor:e.colorError,[`${n}-desc`]:{color:e.colorError}},"&-motion":{transition:["opacity","width","margin","padding"].map(i=>`${i} ${e.motionDurationSlow}`).join(","),"&-appear-start":{width:0,transition:"none"},"&-leave-active":{opacity:0,width:0,paddingInline:0,borderInlineWidth:0,marginInlineEnd:r(e.paddingSM).mul(-1).equal()}}}}},V2={"&, *":{boxSizing:"border-box"}},OY=e=>{const{componentCls:t,calc:r,antCls:n}=e,a=`${t}-drop-area`,i=`${t}-placeholder`;return{[a]:{position:"absolute",inset:0,zIndex:e.zIndexPopupBase,...V2,"&-on-body":{position:"fixed",inset:0},"&-hide-placement":{[`${i}-inner`]:{display:"none"}},[i]:{padding:0}},"&":{[i]:{height:"100%",borderRadius:e.borderRadius,borderWidth:e.lineWidthBold,borderStyle:"dashed",borderColor:"transparent",padding:e.padding,position:"relative",backdropFilter:"blur(10px)",background:e.colorBgPlaceholderHover,...V2,[`${n}-upload-wrapper ${n}-upload${n}-upload-btn`]:{padding:0},[`&${i}-drag-in`]:{borderColor:e.colorPrimaryHover},[`&${i}-disabled`]:{opacity:.25,pointerEvents:"none"},[`${i}-inner`]:{gap:r(e.paddingXXS).div(2).equal()},[`${i}-icon`]:{fontSize:e.fontSizeHeading2,lineHeight:1},[`${i}-title${i}-title`]:{margin:0,fontSize:e.fontSize,lineHeight:e.lineHeight},[`${i}-description`]:{}}}}},PY=e=>{const{componentCls:t,calc:r}=e,n=`${t}-list`,a=r(e.fontSize).mul(e.lineHeight).mul(2).add(e.paddingSM).add(e.paddingSM).equal();return{[t]:{position:"relative",width:"100%",...V2,[n]:{display:"flex",flexWrap:"wrap",gap:e.paddingSM,fontSize:e.fontSize,lineHeight:e.lineHeight,color:e.colorText,paddingBlock:e.paddingSM,paddingInline:e.padding,width:"100%",background:e.colorBgContainer,scrollbarWidth:"none","-ms-overflow-style":"none","&::-webkit-scrollbar":{display:"none"},"&-overflow-scrollX, &-overflow-scrollY":{"&:before, &:after":{content:'""',position:"absolute",opacity:0,transition:`opacity ${e.motionDurationSlow}`,zIndex:1}},"&-overflow-ping-start:before":{opacity:1},"&-overflow-ping-end:after":{opacity:1},"&-overflow-scrollX":{overflowX:"auto",overflowY:"hidden",flexWrap:"nowrap","&:before, &:after":{insetBlock:0,width:8},"&:before":{insetInlineStart:0,background:"linear-gradient(to right, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:after":{insetInlineEnd:0,background:"linear-gradient(to left, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:dir(rtl)":{"&:before":{background:"linear-gradient(to left, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:after":{background:"linear-gradient(to right, rgba(0,0,0,0.06), rgba(0,0,0,0));"}}},"&-overflow-scrollY":{overflowX:"hidden",overflowY:"auto",maxHeight:r(a).mul(3).equal(),"&:before, &:after":{insetInline:0,height:8},"&:before":{insetBlockStart:0,background:"linear-gradient(to bottom, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:after":{insetBlockEnd:0,background:"linear-gradient(to top, rgba(0,0,0,0.06), rgba(0,0,0,0));"}},"&-upload-btn":{width:a,height:a,fontSize:e.fontSizeHeading2,color:"#999"},"&-prev-btn, &-next-btn":{position:"absolute",top:"50%",transform:"translateY(-50%)",boxShadow:e.boxShadowTertiary,opacity:0,pointerEvents:"none"},"&-prev-btn":{left:{_skip_check_:!0,value:e.padding}},"&-next-btn":{right:{_skip_check_:!0,value:e.padding}},"&:dir(ltr)":{[`&${n}-overflow-ping-start ${n}-prev-btn`]:{opacity:1,pointerEvents:"auto"},[`&${n}-overflow-ping-end ${n}-next-btn`]:{opacity:1,pointerEvents:"auto"}},"&:dir(rtl)":{[`&${n}-overflow-ping-end ${n}-prev-btn`]:{opacity:1,pointerEvents:"auto"},[`&${n}-overflow-ping-start ${n}-next-btn`]:{opacity:1,pointerEvents:"auto"}}}}}},pT=ac("Attachments",e=>{const t=Eo(e,{});return[OY(t),PY(t),FY(t)]},e=>{const{colorBgContainer:t}=e;return{colorBgPlaceholderHover:new ra(t).setA(.85).toRgbString()}}),DY=e=>e.indexOf("image/")===0,$1=200;function RY(e){return new Promise(t=>{if(!e||!e.type||!DY(e.type)){t("");return}const r=new Image;if(r.onload=()=>{const{width:n,height:a}=r,i=n/a,s=i>1?$1:$1*i,o=i>1?$1/i:$1,u=document.createElement("canvas");u.width=s,u.height=o,u.style.cssText=`position: fixed; left: 0; top: 0; width: ${s}px; height: ${o}px; z-index: 9999; display: none;`,document.body.appendChild(u),u.getContext("2d").drawImage(r,0,0,s,o);const f=u.toDataURL();document.body.removeChild(u),window.URL.revokeObjectURL(r.src),t(f)},r.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const n=new FileReader;n.onload=()=>{n.result&&typeof n.result=="string"&&(r.src=n.result)},n.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const n=new FileReader;n.onload=()=>{n.result&&t(n.result)},n.readAsDataURL(e)}else r.src=window.URL.createObjectURL(e)})}function IY(){return U.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},U.createElement("title",null,"audio"),U.createElement("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},U.createElement("path",{d:"M14.1178571,4.0125 C14.225,4.11964286 14.2857143,4.26428571 14.2857143,4.41607143 L14.2857143,15.4285714 C14.2857143,15.7446429 14.0303571,16 13.7142857,16 L2.28571429,16 C1.96964286,16 1.71428571,15.7446429 1.71428571,15.4285714 L1.71428571,0.571428571 C1.71428571,0.255357143 1.96964286,0 2.28571429,0 L9.86964286,0 C10.0214286,0 10.1678571,0.0607142857 10.275,0.167857143 L14.1178571,4.0125 Z M10.7315824,7.11216117 C10.7428131,7.15148751 10.7485063,7.19218979 10.7485063,7.23309113 L10.7485063,8.07742614 C10.7484199,8.27364959 10.6183424,8.44607275 10.4296853,8.50003683 L8.32984514,9.09986306 L8.32984514,11.7071803 C8.32986605,12.5367078 7.67249692,13.217028 6.84345686,13.2454634 L6.79068592,13.2463395 C6.12766108,13.2463395 5.53916361,12.8217001 5.33010655,12.1924966 C5.1210495,11.563293 5.33842118,10.8709227 5.86959669,10.4741173 C6.40077221,10.0773119 7.12636292,10.0652587 7.67042486,10.4442027 L7.67020842,7.74937024 L7.68449368,7.74937024 C7.72405122,7.59919041 7.83988806,7.48101083 7.98924584,7.4384546 L10.1880418,6.81004755 C10.42156,6.74340323 10.6648954,6.87865515 10.7315824,7.11216117 Z M9.60714286,1.31785714 L12.9678571,4.67857143 L9.60714286,4.67857143 L9.60714286,1.31785714 Z",fill:"currentColor"})))}function NY(e){const{percent:t}=e,{token:r}=ue.theme.useToken();return U.createElement(ue.Progress,{type:"circle",percent:t,size:r.fontSizeHeading2*2,strokeColor:"#FFF",trailColor:"rgba(255, 255, 255, 0.3)",format:n=>U.createElement("span",{style:{color:"#FFF"}},(n||0).toFixed(0),"%")})}function MY(){return U.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},U.createElement("title",null,"video"),U.createElement("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},U.createElement("path",{d:"M14.1178571,4.0125 C14.225,4.11964286 14.2857143,4.26428571 14.2857143,4.41607143 L14.2857143,15.4285714 C14.2857143,15.7446429 14.0303571,16 13.7142857,16 L2.28571429,16 C1.96964286,16 1.71428571,15.7446429 1.71428571,15.4285714 L1.71428571,0.571428571 C1.71428571,0.255357143 1.96964286,0 2.28571429,0 L9.86964286,0 C10.0214286,0 10.1678571,0.0607142857 10.275,0.167857143 L14.1178571,4.0125 Z M12.9678571,4.67857143 L9.60714286,1.31785714 L9.60714286,4.67857143 L12.9678571,4.67857143 Z M10.5379461,10.3101106 L6.68957555,13.0059749 C6.59910784,13.0693494 6.47439406,13.0473861 6.41101953,12.9569184 C6.3874624,12.9232903 6.37482581,12.8832269 6.37482581,12.8421686 L6.37482581,7.45043999 C6.37482581,7.33998304 6.46436886,7.25043999 6.57482581,7.25043999 C6.61588409,7.25043999 6.65594753,7.26307658 6.68957555,7.28663371 L10.5379461,9.98249803 C10.6284138,10.0458726 10.6503772,10.1705863 10.5870027,10.2610541 C10.5736331,10.2801392 10.5570312,10.2967411 10.5379461,10.3101106 Z",fill:"currentColor"})))}const q2=" ",G2="#8c8c8c",mT=["png","jpg","jpeg","gif","bmp","webp","svg"],LY=[{icon:U.createElement(JC,null),color:"#22b35e",ext:["xlsx","xls"]},{icon:U.createElement(QC,null),color:G2,ext:mT},{icon:U.createElement(ek,null),color:G2,ext:["md","mdx"]},{icon:U.createElement(tk,null),color:"#ff4d4f",ext:["pdf"]},{icon:U.createElement(rk,null),color:"#ff6e31",ext:["ppt","pptx"]},{icon:U.createElement(ak,null),color:"#1677ff",ext:["doc","docx"]},{icon:U.createElement(ik,null),color:"#fab714",ext:["zip","rar","7z","tar","gz"]},{icon:U.createElement(MY,null),color:"#ff4d4f",ext:["mp4","avi","mov","wmv","flv","mkv"]},{icon:U.createElement(IY,null),color:"#8c8c8c",ext:["mp3","wav","flac","ape","aac","ogg"]}];function gT(e,t){return t.some(r=>e.toLowerCase()===`.${r}`)}function BY(e){let t=e;const r=["B","KB","MB","GB","TB","PB","EB"];let n=0;for(;t>=1024&&n<r.length-1;)t/=1024,n++;return`${t.toFixed(0)} ${r[n]}`}function jY(e,t){const{prefixCls:r,item:n,onRemove:a,className:i,style:s}=e,o=U.useContext(F0),{disabled:u}=o||{},{name:l,size:f,percent:d,status:p="done",description:v}=n,{getPrefixCls:_}=Xi(),x=_("attachment",r),w=`${x}-list-card`,[C,E,b]=pT(x),[h,g]=U.useMemo(()=>{const B=l||"",O=B.match(/^(.*)\.[^.]+$/);return O?[O[1],B.slice(O[1].length)]:[B,""]},[l]),y=U.useMemo(()=>gT(g,mT),[g]),S=U.useMemo(()=>v||(p==="uploading"?`${d||0}%`:p==="error"?n.response||q2:f?BY(f):q2),[p,d]),[A,k]=U.useMemo(()=>{for(const{ext:B,icon:O,color:M}of LY)if(gT(g,B))return[O,M];return[U.createElement(nk,{key:"defaultIcon"}),G2]},[g]),[F,P]=U.useState();U.useEffect(()=>{if(n.originFileObj){let B=!0;return RY(n.originFileObj).then(O=>{B&&P(O)}),()=>{B=!1}}P(void 0)},[n.originFileObj]);let j=null;const N=n.thumbUrl||n.url||F,I=y&&(n.originFileObj||N);return I?j=U.createElement(U.Fragment,null,U.createElement("img",{alt:"preview",src:N}),p!=="done"&&U.createElement("div",{className:`${w}-img-mask`},p==="uploading"&&d!==void 0&&U.createElement(NY,{percent:d,prefixCls:w}),p==="error"&&U.createElement("div",{className:`${w}-desc`},U.createElement("div",{className:`${w}-ellipsis-prefix`},S)))):j=U.createElement(U.Fragment,null,U.createElement("div",{className:`${w}-icon`,style:{color:k}},A),U.createElement("div",{className:`${w}-content`},U.createElement("div",{className:`${w}-name`},U.createElement("div",{className:`${w}-ellipsis-prefix`},h??q2),U.createElement("div",{className:`${w}-ellipsis-suffix`},g)),U.createElement("div",{className:`${w}-desc`},U.createElement("div",{className:`${w}-ellipsis-prefix`},S)))),C(U.createElement("div",{className:Qe(w,{[`${w}-status-${p}`]:p,[`${w}-type-preview`]:I,[`${w}-type-overview`]:!I},i,E,b),style:s,ref:t},j,!u&&a&&U.createElement("button",{type:"button",className:`${w}-remove`,onClick:()=>{a(n)}},U.createElement(XC,null))))}const vT=U.forwardRef(jY),xT=1;function $Y(e){const{prefixCls:t,items:r,onRemove:n,overflow:a,upload:i,listClassName:s,listStyle:o,itemClassName:u,itemStyle:l}=e,f=`${t}-list`,d=U.useRef(null),[p,v]=U.useState(!1),{disabled:_}=U.useContext(F0);U.useEffect(()=>(v(!0),()=>{v(!1)}),[]);const[x,w]=U.useState(!1),[C,E]=U.useState(!1),b=()=>{const S=d.current;S&&(a==="scrollX"?(w(Math.abs(S.scrollLeft)>=xT),E(S.scrollWidth-S.clientWidth-Math.abs(S.scrollLeft)>=xT)):a==="scrollY"&&(w(S.scrollTop!==0),E(S.scrollHeight-S.clientHeight!==S.scrollTop)))};U.useEffect(()=>{b()},[a]);const h=S=>{const A=d.current;A&&A.scrollTo({left:A.scrollLeft+S*A.clientWidth,behavior:"smooth"})},g=()=>{h(-1)},y=()=>{h(1)};return U.createElement("div",{className:Qe(f,{[`${f}-overflow-${e.overflow}`]:a,[`${f}-overflow-ping-start`]:x,[`${f}-overflow-ping-end`]:C},s),ref:d,onScroll:b,style:o},U.createElement(rG,{keys:r.map(S=>({key:S.uid,item:S})),motionName:`${f}-card-motion`,component:!1,motionAppear:p,motionLeave:!0,motionEnter:!0},({key:S,item:A,className:k,style:F})=>U.createElement(vT,{key:S,prefixCls:t,item:A,onRemove:n,className:Qe(k,u),style:{...F,...l}})),!_&&U.createElement(Pk,{upload:i},U.createElement(ue.Button,{className:`${f}-upload-btn`,type:"dashed"},U.createElement(ok,{className:`${f}-upload-btn-icon`}))),a==="scrollX"&&U.createElement(U.Fragment,null,U.createElement(ue.Button,{size:"small",shape:"circle",className:`${f}-prev-btn`,icon:U.createElement(sk,null),onClick:g}),U.createElement(ue.Button,{size:"small",shape:"circle",className:`${f}-next-btn`,icon:U.createElement(uk,null),onClick:y})))}function UY(e,t){const{prefixCls:r,placeholder:n={},upload:a,className:i,style:s}=e,o=`${r}-placeholder`,u=n||{},{disabled:l}=U.useContext(F0),[f,d]=U.useState(!1),p=()=>{d(!0)},v=w=>{w.currentTarget.contains(w.relatedTarget)||d(!1)},_=()=>{d(!1)},x=U.isValidElement(n)?n:U.createElement(ue.Flex,{align:"center",justify:"center",vertical:!0,className:`${o}-inner`},U.createElement(ue.Typography.Text,{className:`${o}-icon`},u.icon),U.createElement(ue.Typography.Title,{className:`${o}-title`,level:5},u.title),U.createElement(ue.Typography.Text,{className:`${o}-description`,type:"secondary"},u.description));return U.createElement("div",{className:Qe(o,{[`${o}-drag-in`]:f,[`${o}-disabled`]:l},i),onDragEnter:p,onDragLeave:v,onDrop:_,"aria-hidden":l,style:s},U.createElement(ue.Upload.Dragger,Pt({showUploadList:!1},a,{ref:t,style:{padding:0,border:0,background:"transparent"}}),x))}const zY=U.forwardRef(UY);function HY(e,t){const{prefixCls:r,rootClassName:n,rootStyle:a,className:i,style:s,items:o,children:u,getDropContainer:l,placeholder:f,onChange:d,overflow:p,disabled:v,classNames:_={},styles:x={},...w}=e,{getPrefixCls:C,direction:E}=Xi(),b=C("attachment",r),h=Yl("attachments"),{classNames:g,styles:y}=h,S=U.useRef(null),A=U.useRef(null);U.useImperativeHandle(t,()=>({nativeElement:S.current,upload:W=>{var H,Q;const G=(Q=(H=A.current)==null?void 0:H.nativeElement)==null?void 0:Q.querySelector('input[type="file"]');if(G){const K=new DataTransfer;K.items.add(W),G.files=K.files,G.dispatchEvent(new Event("change",{bubbles:!0}))}}}));const[k,F,P]=pT(b),j=Qe(F,P),[N,I]=g1([],{value:o}),B=wi(W=>{I(W.fileList),d==null||d(W)}),O={...w,fileList:N,onChange:B},M=W=>{const G=N.filter(H=>H.uid!==W.uid);B({file:W,fileList:G})};let V;const L=(W,G,H)=>{const Q=typeof f=="function"?f(W):f;return U.createElement(zY,{placeholder:Q,upload:O,prefixCls:b,className:Qe(g.placeholder,_.placeholder),style:{...y.placeholder,...x.placeholder,...G==null?void 0:G.style},ref:H})};if(u)V=U.createElement(U.Fragment,null,U.createElement(Pk,{upload:O,rootClassName:n,ref:A},u),U.createElement(OC,{getDropContainer:l,prefixCls:b,className:Qe(j,n)},L("drop")));else{const W=N.length>0;V=U.createElement("div",{className:Qe(b,j,{[`${b}-rtl`]:E==="rtl"},i,n),style:{...a,...s},dir:E||"ltr",ref:S},U.createElement($Y,{prefixCls:b,items:N,onRemove:M,overflow:p,upload:O,listClassName:Qe(g.list,_.list),listStyle:{...y.list,...x.list,...!W&&{display:"none"}},itemClassName:Qe(g.item,_.item),itemStyle:{...y.item,...x.item}}),L("inline",W?{style:{display:"none"}}:{},A),U.createElement(OC,{getDropContainer:l||(()=>S.current),prefixCls:b,className:j},L("drop")))}return k(U.createElement(F0.Provider,{value:{disabled:v}},V))}const Y2=U.forwardRef(HY);process.env.NODE_ENV!=="production"&&(Y2.displayName="Attachments"),Y2.FileCard=vT;var WY=`accept acceptCharset accessKey action allowFullScreen allowTransparency
477
+ alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
478
+ charSet checked classID className colSpan cols content contentEditable contextMenu
479
+ controls coords crossOrigin data dateTime default defer dir disabled download draggable
480
+ encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
481
+ headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
482
+ is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
483
+ mediaGroup method min minLength multiple muted name noValidate nonce open
484
+ optimum pattern placeholder poster preload radioGroup readOnly rel required
485
+ reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
486
+ shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
487
+ summary tabIndex target title type useMap value width wmode wrap`,VY=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
488
+ onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
489
+ onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
490
+ onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
491
+ onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
492
+ onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
493
+ onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,qY="".concat(WY," ").concat(VY).split(/[\s\n]+/),GY="aria-",YY="data-";function _T(e,t){return e.indexOf(t)===0}function U1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r;t===!1?r={aria:!0,data:!0,attr:!0}:t===!0?r={aria:!0}:r=Oe({},t);var n={};return Object.keys(e).forEach(function(a){(r.aria&&(a==="role"||_T(a,GY))||r.data&&_T(a,YY)||r.attr&&qY.includes(a))&&(n[a]=e[a])}),n}function XY(e,t){return U.useImperativeHandle(e,()=>{const r=t(),{nativeElement:n}=r;return new Proxy(n,{get(a,i){return r[i]?r[i]:Reflect.get(a,i)}})})}const yT=pe.createContext({}),bT=()=>({height:0}),wT=e=>({height:e.scrollHeight});function KY(e){const{title:t,onOpenChange:r,open:n,children:a,className:i,style:s,classNames:o={},styles:u={},closable:l,forceRender:f}=e,{prefixCls:d}=pe.useContext(yT),p=`${d}-header`;return pe.createElement(Ok,{motionEnter:!0,motionLeave:!0,motionName:`${p}-motion`,leavedClassName:`${p}-motion-hidden`,onEnterStart:bT,onEnterActive:wT,onLeaveStart:wT,onLeaveActive:bT,visible:n,forceRender:f},({className:v,style:_})=>pe.createElement("div",{className:Qe(p,v,i),style:{..._,...s}},(l!==!1||t)&&pe.createElement("div",{className:Qe(`${p}-header`,o.header),style:{...u.header}},pe.createElement("div",{className:`${p}-title`},t),l!==!1&&pe.createElement("div",{className:`${p}-close`},pe.createElement(ue.Button,{type:"text",icon:pe.createElement(KC,null),size:"small",onClick:()=>{r==null||r(!n)}}))),a&&pe.createElement("div",{className:Qe(`${p}-content`,o.content),style:{...u.content}},a)))}const z1=pe.createContext(null);function ZY(e,t){const{className:r,action:n,onClick:a,...i}=e,s=pe.useContext(z1),{prefixCls:o,disabled:u}=s,l=s[n],f=u??i.disabled??s[`${n}Disabled`];return pe.createElement(ue.Button,Pt({type:"text"},i,{ref:t,onClick:d=>{f||(l&&l(),a&&a(d))},className:Qe(o,r,{[`${o}-disabled`]:f})}))}const H1=pe.forwardRef(ZY);function JY(e,t){return pe.createElement(H1,Pt({icon:pe.createElement(YC,null)},e,{action:"onClear",ref:t}))}const QY=pe.forwardRef(JY),eX=U.memo(e=>{const{className:t}=e;return U.createElement("svg",{color:"currentColor",viewBox:"0 0 1000 1000",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",className:t},U.createElement("title",null,"Stop Loading"),U.createElement("rect",{fill:"currentColor",height:"250",rx:"24",ry:"24",width:"250",x:"375",y:"375"}),U.createElement("circle",{cx:"500",cy:"500",fill:"none",r:"450",stroke:"currentColor",strokeWidth:"100",opacity:"0.45"}),U.createElement("circle",{cx:"500",cy:"500",fill:"none",r:"450",stroke:"currentColor",strokeWidth:"100",strokeDasharray:"600 9999999"},U.createElement("animateTransform",{attributeName:"transform",dur:"1s",from:"0 500 500",repeatCount:"indefinite",to:"360 500 500",type:"rotate"})))});function tX(e,t){const{prefixCls:r}=pe.useContext(z1),{className:n}=e;return pe.createElement(H1,Pt({icon:null,color:"primary",variant:"text",shape:"circle"},e,{className:Qe(n,`${r}-loading-button`),action:"onCancel",ref:t}),pe.createElement(eX,{className:`${r}-loading-icon`}))}const ST=pe.forwardRef(tX);function rX(e,t){return pe.createElement(H1,Pt({icon:pe.createElement(VC,null),type:"primary",shape:"circle"},e,{action:"onSend",ref:t}))}const ET=pe.forwardRef(rX),M0=1e3,L0=4,W1=140,CT=W1/2,V1=250,kT=500,q1=.8;function nX({className:e}){return U.createElement("svg",{color:"currentColor",viewBox:`0 0 ${M0} ${M0}`,xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",className:e},U.createElement("title",null,"Speech Recording"),Array.from({length:L0}).map((t,r)=>{const n=(M0-W1*L0)/(L0-1),a=r*(n+W1),i=M0/2-V1/2,s=M0/2-kT/2;return U.createElement("rect",{fill:"currentColor",rx:CT,ry:CT,height:V1,width:W1,x:a,y:i,key:r},U.createElement("animate",{attributeName:"height",values:`${V1}; ${kT}; ${V1}`,keyTimes:"0; 0.5; 1",dur:`${q1}s`,begin:`${q1/L0*r}s`,repeatCount:"indefinite"}),U.createElement("animate",{attributeName:"y",values:`${i}; ${s}; ${i}`,keyTimes:"0; 0.5; 1",dur:`${q1}s`,begin:`${q1/L0*r}s`,repeatCount:"indefinite"}))}))}function aX(e,t){const{speechRecording:r,onSpeechDisabled:n,prefixCls:a}=pe.useContext(z1);let i=null;return r?i=pe.createElement(nX,{className:`${a}-recording-icon`}):n?i=pe.createElement(qC,null):i=pe.createElement(GC,null),pe.createElement(H1,Pt({icon:i,color:"primary",variant:"text"},e,{action:"onSpeech",ref:t}))}const iX=pe.forwardRef(aX),sX=e=>{const{componentCls:t,calc:r}=e,n=`${t}-header`;return{[t]:{[n]:{borderBottomWidth:e.lineWidth,borderBottomStyle:"solid",borderBottomColor:e.colorBorder,"&-header":{background:e.colorFillAlter,fontSize:e.fontSize,lineHeight:e.lineHeight,paddingBlock:r(e.paddingSM).sub(e.lineWidthBold).equal(),paddingInlineStart:e.padding,paddingInlineEnd:e.paddingXS,display:"flex",[`${n}-title`]:{flex:"auto"}},"&-content":{padding:e.padding},"&-motion":{transition:["height","border"].map(a=>`${a} ${e.motionDurationSlow}`).join(","),overflow:"hidden","&-enter-start, &-leave-active":{borderBottomColor:"transparent"},"&-hidden":{display:"none"}}}}}},oX=e=>{const{componentCls:t,padding:r,paddingSM:n,paddingXS:a,lineWidth:i,lineWidthBold:s,calc:o}=e;return{[t]:{position:"relative",width:"100%",boxSizing:"border-box",boxShadow:`${e.boxShadowTertiary}`,transition:`background ${e.motionDurationSlow}`,borderRadius:{_skip_check_:!0,value:o(e.borderRadius).mul(2).equal()},borderColor:e.colorBorder,borderWidth:0,borderStyle:"solid","&:after":{content:'""',position:"absolute",inset:0,pointerEvents:"none",transition:`border-color ${e.motionDurationSlow}`,borderRadius:{_skip_check_:!0,value:"inherit"},borderStyle:"inherit",borderColor:"inherit",borderWidth:i},"&:focus-within":{boxShadow:`${e.boxShadowSecondary}`,borderColor:e.colorPrimary,"&:after":{borderWidth:s}},"&-disabled":{background:e.colorBgContainerDisabled},[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{display:"flex",gap:a,width:"100%",paddingBlock:n,paddingInlineStart:r,paddingInlineEnd:n,boxSizing:"border-box",alignItems:"flex-end"},[`${t}-prefix`]:{flex:"none"},[`${t}-input`]:{padding:0,borderRadius:0,flex:"auto",alignSelf:"center",minHeight:"auto"},[`${t}-actions-list`]:{flex:"none",display:"flex","&-presets":{gap:e.paddingXS}},[`${t}-actions-btn`]:{"&-disabled":{opacity:.45},"&-loading-button":{padding:0,border:0},"&-loading-icon":{height:e.controlHeight,width:e.controlHeight,verticalAlign:"top"},"&-recording-icon":{height:"1.2em",width:"1.2em",verticalAlign:"top"}}}}},uX=ac("Sender",e=>{const{paddingXS:t,calc:r}=e,n=Eo(e,{SenderContentMaxWidth:`calc(100% - ${zs(r(t).add(32).equal())})`});return[oX(n),sX(n)]},()=>({}));let G1;!G1&&typeof window<"u"&&(G1=window.SpeechRecognition||window.webkitSpeechRecognition);function lX(e,t){const r=wi(e),[n,a,i]=U.useMemo(()=>typeof t=="object"?[t.recording,t.onRecordingChange,typeof t.recording=="boolean"]:[void 0,void 0,!1],[t]),[s,o]=U.useState(null);U.useEffect(()=>{if(typeof navigator<"u"&&"permissions"in navigator){let x=null;return navigator.permissions.query({name:"microphone"}).then(w=>{o(w.state),w.onchange=function(){o(this.state)},x=w}),()=>{x&&(x.onchange=null)}}},[]);const u=G1&&s!=="denied",l=U.useRef(null),[f,d]=g1(!1,{value:n}),p=U.useRef(!1),v=()=>{if(u&&!l.current){const x=new G1;x.onstart=()=>{d(!0)},x.onend=()=>{d(!1)},x.onresult=w=>{var C,E,b;if(!p.current){const h=(b=(E=(C=w.results)==null?void 0:C[0])==null?void 0:E[0])==null?void 0:b.transcript;r(h)}p.current=!1},l.current=x}},_=wi(x=>{x&&!f||(p.current=x,i?a==null||a(!f):(v(),l.current&&(f?(l.current.stop(),a==null||a(!1)):(l.current.start(),a==null||a(!0)))))});return[u,_,f]}function cX(e,t,r){return XV(e,t)||r}const Y1=U.forwardRef((e,t)=>{const{prefixCls:r,styles:n={},classNames:a={},className:i,rootClassName:s,style:o,defaultValue:u,value:l,readOnly:f,submitType:d="enter",onSubmit:p,loading:v,components:_,onCancel:x,onChange:w,actions:C,onKeyPress:E,onKeyDown:b,disabled:h,allowSpeech:g,prefix:y,header:S,onPaste:A,onPasteFile:k,...F}=e,{direction:P,getPrefixCls:j}=Xi(),N=j("sender",r),I=U.useRef(null),B=U.useRef(null);XY(t,()=>{var Xe,xt;return{nativeElement:I.current,focus:(Xe=B.current)==null?void 0:Xe.focus,blur:(xt=B.current)==null?void 0:xt.blur}});const O=Yl("sender"),M=`${N}-input`,[V,L,W]=uX(N),G=Qe(N,O.className,i,s,L,W,{[`${N}-rtl`]:P==="rtl",[`${N}-disabled`]:h}),H=`${N}-actions-btn`,Q=`${N}-actions-list`,[K,te]=g1(u||"",{value:l}),se=(Xe,xt)=>{te(Xe),w&&w(Xe,xt)},[le,ge,ye]=lX(Xe=>{se(`${K} ${Xe}`)},g),be=cX(_,["input"],ue.Input.TextArea),J={...U1(F,{attr:!0,aria:!0,data:!0}),ref:B},qe=()=>{K&&p&&!v&&p(K)},_e=()=>{se("")},ze=U.useRef(!1),We=()=>{ze.current=!0},De=()=>{ze.current=!1},ut=Xe=>{const xt=Xe.key==="Enter"&&!ze.current;switch(d){case"enter":xt&&!Xe.shiftKey&&(Xe.preventDefault(),qe());break;case"shiftEnter":xt&&Xe.shiftKey&&(Xe.preventDefault(),qe());break}E&&E(Xe)},Ye=Xe=>{var or;const xt=(or=Xe.clipboardData)==null?void 0:or.files[0];xt&&k&&(k(xt),Xe.preventDefault()),A==null||A(Xe)},it=Xe=>{var xt,or;Xe.target!==((xt=I.current)==null?void 0:xt.querySelector(`.${M}`))&&Xe.preventDefault(),(or=B.current)==null||or.focus()};let Je=U.createElement(ue.Flex,{className:`${Q}-presets`},g&&U.createElement(iX,null),v?U.createElement(ST,null):U.createElement(ET,null));return typeof C=="function"?Je=C(Je,{components:{SendButton:ET,ClearButton:QY,LoadingButton:ST}}):C&&(Je=C),V(U.createElement("div",{ref:I,className:G,style:{...O.style,...o}},S&&U.createElement(yT.Provider,{value:{prefixCls:N}},S),U.createElement("div",{className:`${N}-content`,onMouseDown:it},y&&U.createElement("div",{className:Qe(`${N}-prefix`,O.classNames.prefix,a.prefix),style:{...O.styles.prefix,...n.prefix}},y),U.createElement(be,Pt({},J,{disabled:h,style:{...O.styles.input,...n.input},className:Qe(M,O.classNames.input,a.input),autoSize:{maxRows:8},value:K,onChange:Xe=>{se(Xe.target.value,Xe),ge(!0)},onPressEnter:ut,onCompositionStart:We,onCompositionEnd:De,onKeyDown:b,onPaste:Ye,variant:"borderless",readOnly:f})),U.createElement("div",{className:Qe(Q,O.classNames.actions,a.actions),style:{...O.styles.actions,...n.actions}},U.createElement(z1.Provider,{value:{prefixCls:H,onSend:qe,onSendDisabled:!K,onClear:_e,onClearDisabled:!K,onCancel:x,onCancelDisabled:!v,onSpeech:()=>ge(!1),onSpeechDisabled:!le,speechRecording:ye,disabled:h}},Je)))))});process.env.NODE_ENV!=="production"&&(Y1.displayName="Sender"),Y1.Header=KY;function X1(e){return typeof e=="string"}const fX=(e,t,r,n)=>{const[a,i]=pe.useState(""),[s,o]=pe.useState(1),u=t&&X1(e);return v2(()=>{i(e),!u&&X1(e)?o(e.length):X1(e)&&X1(a)&&e.indexOf(a)!==0&&o(1)},[e]),pe.useEffect(()=>{if(u&&s<e.length){const f=setTimeout(()=>{o(d=>d+r)},n);return()=>{clearTimeout(f)}}},[s,t,e]),[u?e.slice(0,s):e,u&&s<e.length]};function dX(e){return pe.useMemo(()=>{if(!e)return[!1,0,0,null];let t={step:1,interval:50,suffix:null};return typeof e=="object"&&(t={...t,...e}),[!0,t.step,t.interval,t.suffix]},[e])}const hX=({prefixCls:e})=>U.createElement("span",{className:`${e}-dot`},U.createElement("i",{className:`${e}-dot-item`,key:"item-1"}),U.createElement("i",{className:`${e}-dot-item`,key:"item-2"}),U.createElement("i",{className:`${e}-dot-item`,key:"item-3"})),pX=e=>{const{componentCls:t,paddingSM:r,padding:n}=e;return{[t]:{[`${t}-content`]:{"&-filled,&-outlined,&-shadow":{padding:`${zs(r)} ${zs(n)}`,borderRadius:e.borderRadiusLG},"&-filled":{backgroundColor:e.colorFillContent},"&-outlined":{border:`1px solid ${e.colorBorderSecondary}`},"&-shadow":{boxShadow:e.boxShadowTertiary}}}}},mX=e=>{const{componentCls:t,fontSize:r,lineHeight:n,paddingSM:a,padding:i,calc:s}=e,o=s(r).mul(n).div(2).add(a).equal(),u=`${t}-content`;return{[t]:{[u]:{"&-round":{borderRadius:{_skip_check_:!0,value:o},paddingInline:s(i).mul(1.25).equal()}},[`&-start ${u}-corner`]:{borderStartStartRadius:e.borderRadiusXS},[`&-end ${u}-corner`]:{borderStartEndRadius:e.borderRadiusXS}}}},gX=e=>{const{componentCls:t,padding:r}=e;return{[`${t}-list`]:{display:"flex",flexDirection:"column",gap:r,overflowY:"auto"}}},vX=new aT("loadingMove",{"0%":{transform:"translateY(0)"},"10%":{transform:"translateY(4px)"},"20%":{transform:"translateY(0)"},"30%":{transform:"translateY(-4px)"},"40%":{transform:"translateY(0)"}}),xX=new aT("cursorBlink",{"0%":{opacity:1},"50%":{opacity:0},"100%":{opacity:1}}),_X=e=>{const{componentCls:t,fontSize:r,lineHeight:n,paddingSM:a,colorText:i,calc:s}=e;return{[t]:{display:"flex",columnGap:a,[`&${t}-end`]:{justifyContent:"end",flexDirection:"row-reverse",[`& ${t}-content-wrapper`]:{alignItems:"flex-end"}},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-typing ${t}-content:last-child::after`]:{content:'"|"',fontWeight:900,userSelect:"none",opacity:1,marginInlineStart:"0.1em",animationName:xX,animationDuration:"0.8s",animationIterationCount:"infinite",animationTimingFunction:"linear"},[`& ${t}-avatar`]:{display:"inline-flex",justifyContent:"center",alignSelf:"flex-start"},[`& ${t}-header, & ${t}-footer`]:{fontSize:r,lineHeight:n,color:e.colorText},[`& ${t}-header`]:{marginBottom:e.paddingXXS},[`& ${t}-footer`]:{marginTop:a},[`& ${t}-content-wrapper`]:{flex:"auto",display:"flex",flexDirection:"column",alignItems:"flex-start",minWidth:0,maxWidth:"100%"},[`& ${t}-content`]:{position:"relative",boxSizing:"border-box",minWidth:0,maxWidth:"100%",color:i,fontSize:e.fontSize,lineHeight:e.lineHeight,minHeight:s(a).mul(2).add(s(n).mul(r)).equal(),wordBreak:"break-word",[`& ${t}-dot`]:{position:"relative",height:"100%",display:"flex",alignItems:"center",columnGap:e.marginXS,padding:`0 ${zs(e.paddingXXS)}`,"&-item":{backgroundColor:e.colorPrimary,borderRadius:"100%",width:4,height:4,animationName:vX,animationDuration:"2s",animationIterationCount:"infinite",animationTimingFunction:"linear","&:nth-child(1)":{animationDelay:"0s"},"&:nth-child(2)":{animationDelay:"0.2s"},"&:nth-child(3)":{animationDelay:"0.4s"}}}}}}},TT=ac("Bubble",e=>{const t=Eo(e,{});return[_X(t),gX(t),pX(t),mX(t)]},()=>({})),AT=U.createContext({}),yX=(e,t)=>{const{prefixCls:r,className:n,rootClassName:a,style:i,classNames:s={},styles:o={},avatar:u,placement:l="start",loading:f=!1,loadingRender:d,typing:p,content:v="",messageRender:_,variant:x="filled",shape:w,onTypingComplete:C,header:E,footer:b,...h}=e,{onUpdate:g}=U.useContext(AT),y=U.useRef(null);U.useImperativeHandle(t,()=>({nativeElement:y.current}));const{direction:S,getPrefixCls:A}=Xi(),k=A("bubble",r),F=Yl("bubble"),[P,j,N,I]=dX(p),[B,O]=fX(v,P,j,N);U.useEffect(()=>{g==null||g()},[B]);const M=U.useRef(!1);U.useEffect(()=>{!O&&!f?M.current||(M.current=!0,C==null||C()):M.current=!1},[O,f]);const[V,L,W]=TT(k),G=Qe(k,a,F.className,n,L,W,`${k}-${l}`,{[`${k}-rtl`]:S==="rtl",[`${k}-typing`]:O&&!f&&!_&&!I}),H=U.isValidElement(u)?u:U.createElement(ue.Avatar,u),Q=_?_(B):B;let K;f?K=d?d():U.createElement(hX,{prefixCls:k}):K=U.createElement(U.Fragment,null,Q,O&&I);let te=U.createElement("div",{style:{...F.styles.content,...o.content},className:Qe(`${k}-content`,`${k}-content-${x}`,w&&`${k}-content-${w}`,F.classNames.content,s.content)},K);return(E||b)&&(te=U.createElement("div",{className:`${k}-content-wrapper`},E&&U.createElement("div",{className:Qe(`${k}-header`,F.classNames.header,s.header),style:{...F.styles.header,...o.header}},E),te,b&&U.createElement("div",{className:Qe(`${k}-footer`,F.classNames.footer,s.footer),style:{...F.styles.footer,...o.footer}},b))),V(U.createElement("div",Pt({style:{...F.style,...i},className:G},h,{ref:y}),u&&U.createElement("div",{style:{...F.styles.avatar,...o.avatar},className:Qe(`${k}-avatar`,F.classNames.avatar,s.avatar)},H),te))},K1=U.forwardRef(yX);process.env.NODE_ENV!=="production"&&(K1.displayName="Bubble");function bX(e){const[t,r]=U.useState(e.length),n=U.useMemo(()=>e.slice(0,t),[e,t]),a=U.useMemo(()=>{const s=n[n.length-1];return s?s.key:null},[n]);U.useEffect(()=>{var s;if(!(n.length&&n.every((o,u)=>{var l;return o.key===((l=e[u])==null?void 0:l.key)}))){if(n.length===0)r(1);else for(let o=0;o<n.length;o+=1)if(n[o].key!==((s=e[o])==null?void 0:s.key)){r(o);break}}},[e]);const i=wi(s=>{s===a&&r(t+1)});return[n,i]}function wX(e,t){const r=pe.useCallback(n=>typeof t=="function"?t(n):t?t[n.role]||{}:{},[t]);return pe.useMemo(()=>(e||[]).map((n,a)=>{const i=n.key??`preset_${a}`;return{...r(n),...n,key:i}}),[e,r])}const SX=1,EX=(e,t)=>{const{prefixCls:r,rootClassName:n,className:a,items:i,autoScroll:s=!0,roles:o,...u}=e,l=U1(u,{attr:!0,aria:!0}),f=pe.useRef(null),d=pe.useRef({}),{getPrefixCls:p}=Xi(),v=p("bubble",r),_=`${v}-list`,[x,w,C]=TT(v),[E,b]=pe.useState(!1);pe.useEffect(()=>(b(!0),()=>{b(!1)}),[]);const h=wX(i,o),[g,y]=bX(h),[S,A]=pe.useState(!0),[k,F]=pe.useState(0),P=I=>{const B=I.target;A(B.scrollHeight-Math.abs(B.scrollTop)-B.clientHeight<=SX)};pe.useEffect(()=>{s&&f.current&&S&&f.current.scrollTo({top:f.current.scrollHeight})},[k]),pe.useEffect(()=>{var I;if(s){const B=(I=g[g.length-2])==null?void 0:I.key,O=d.current[B];if(O){const{nativeElement:M}=O,{top:V,bottom:L}=M.getBoundingClientRect(),{top:W,bottom:G}=f.current.getBoundingClientRect();V<G&&L>W&&(F(Q=>Q+1),A(!0))}}},[g.length]),pe.useImperativeHandle(t,()=>({nativeElement:f.current,scrollTo:({key:I,offset:B,behavior:O="smooth",block:M})=>{if(typeof B=="number")f.current.scrollTo({top:B,behavior:O});else if(I!==void 0){const V=d.current[I];if(V){const L=g.findIndex(W=>W.key===I);A(L===g.length-1),V.nativeElement.scrollIntoView({behavior:O,block:M})}}}}));const j=wi(()=>{s&&F(I=>I+1)}),N=pe.useMemo(()=>({onUpdate:j}),[]);return x(pe.createElement(AT.Provider,{value:N},pe.createElement("div",Pt({},l,{className:Qe(_,n,a,w,C,{[`${_}-reach-end`]:S}),ref:f,onScroll:P}),g.map(({key:I,...B})=>pe.createElement(K1,Pt({},B,{key:I,ref:O=>{O?d.current[I]=O:delete d.current[I]},typing:E?B.typing:!1,onTypingComplete:()=>{var O;(O=B.onTypingComplete)==null||O.call(B),y(I)}}))))))},FT=pe.forwardRef(EX);process.env.NODE_ENV!=="production"&&(FT.displayName="BubbleList"),K1.List=FT;const OT=U.createContext(null),PT=({children:e})=>{const{prefixCls:t}=U.useContext(OT);return U.createElement("div",{className:Qe(`${t}-group-title`)},e&&U.createElement(ue.Typography.Text,null,e))},CX=e=>{e.stopPropagation()},kX=e=>{const{prefixCls:t,info:r,className:n,direction:a,onClick:i,active:s,menu:o,...u}=e,l=U1(u,{aria:!0,data:!0,attr:!0}),{disabled:f}=r,[d,p]=U.useState(!1),[v,_]=U.useState(!1),x=Qe(n,`${t}-item`,{[`${t}-item-active`]:s&&!f},{[`${t}-item-disabled`]:f}),w=()=>{!f&&i&&i(r)},C=E=>{E&&_(!E)};return U.createElement(ue.Tooltip,{title:r.label,open:d&&v,onOpenChange:_,placement:a==="rtl"?"left":"right"},U.createElement("li",Pt({},l,{className:x,onClick:w}),r.icon&&U.createElement("div",{className:`${t}-icon`},r.icon),U.createElement(ue.Typography.Text,{className:`${t}-label`,ellipsis:{onEllipsis:p}},r.label),o&&!f&&U.createElement(ue.Dropdown,{menu:o,placement:a==="rtl"?"bottomLeft":"bottomRight",trigger:["click"],disabled:f,onOpenChange:C},U.createElement(ZC,{onClick:CX,disabled:f,className:`${t}-menu-icon`}))))},X2="__ungrouped",TX=(e,t=[])=>{const[r,n,a]=U.useMemo(()=>{if(!e)return[!1,void 0,void 0];let i={sort:void 0,title:void 0};return typeof e=="object"&&(i={...i,...e}),[!0,i.sort,i.title]},[e]);return U.useMemo(()=>{if(!r)return[[{name:X2,data:t,title:void 0}],r];const i=t.reduce((u,l)=>{const f=l.group||X2;return u[f]||(u[f]=[]),u[f].push(l),u},{});return[(n?Object.keys(i).sort(n):Object.keys(i)).map(u=>({name:u===X2?void 0:u,title:a,data:i[u]})),r]},[t,e])},AX=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexDirection:"column",gap:e.paddingXXS,overflowY:"auto",padding:e.paddingSM,[`&${t}-rtl`]:{direction:"rtl"},[`& ${t}-list`]:{display:"flex",gap:e.paddingXXS,flexDirection:"column",[`& ${t}-item`]:{paddingInlineStart:e.paddingXL},[`& ${t}-label`]:{color:e.colorTextDescription}},[`& ${t}-item`]:{display:"flex",height:e.controlHeightLG,minHeight:e.controlHeightLG,gap:e.paddingXS,padding:`0 ${zs(e.paddingXS)}`,alignItems:"center",borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,"&:hover":{backgroundColor:e.colorBgTextHover},"&-active":{backgroundColor:e.colorBgTextHover,[`& ${t}-label, ${t}-menu-icon`]:{color:e.colorText}},"&-disabled":{cursor:"not-allowed",[`& ${t}-label`]:{color:e.colorTextDisabled}},"&:hover, &-active":{[`& ${t}-menu-icon`]:{opacity:1}}},[`& ${t}-label`]:{flex:1,color:e.colorText},[`& ${t}-menu-icon`]:{opacity:0,fontSize:e.fontSizeXL},[`& ${t}-group-title`]:{display:"flex",alignItems:"center",height:e.controlHeightLG,minHeight:e.controlHeightLG,padding:`0 ${zs(e.paddingXS)}`}}}},FX=ac("Conversations",e=>{const t=Eo(e,{});return AX(t)},()=>({})),DT=e=>{const{prefixCls:t,rootClassName:r,items:n,activeKey:a,defaultActiveKey:i,onActiveChange:s,menu:o,styles:u={},classNames:l={},groupable:f,className:d,style:p,...v}=e,_=U1(v,{attr:!0,aria:!0,data:!0}),[x,w]=g1(i,{value:a}),[C,E]=TX(f,n),{getPrefixCls:b,direction:h}=Xi(),g=b("conversations",t),y=Yl("conversations"),[S,A,k]=FX(g),F=Qe(g,y.className,d,r,A,k,{[`${g}-rtl`]:h==="rtl"}),P=j=>{w(j.key),s&&s(j.key)};return S(U.createElement("ul",Pt({},_,{style:{...y.style,...p},className:F}),C.map((j,N)=>{var B;const I=j.data.map((O,M)=>U.createElement(kX,{key:O.key||`key-${M}`,info:O,prefixCls:g,direction:h,className:Qe(l.item,y.classNames.item),style:{...y.styles.item,...u.item},menu:typeof o=="function"?o(O):o,active:x===O.key,onClick:P}));return E?U.createElement("li",{key:j.name||`key-${N}`},U.createElement(OT.Provider,{value:{prefixCls:g}},((B=j.title)==null?void 0:B.call(j,j.name,{components:{GroupTitle:PT}}))||U.createElement(PT,{key:j.name},j.name)),U.createElement("ul",{className:`${g}-list`},I)):I})))};process.env.NODE_ENV!=="production"&&(DT.displayName="Conversations");const OX=e=>{const{componentCls:t}=e;return{[t]:{"&, & *":{boxSizing:"border-box"},maxWidth:"100%",[`&${t}-rtl`]:{direction:"rtl"},[`& ${t}-title`]:{marginBlockStart:0,fontWeight:"normal",color:e.colorTextTertiary},[`& ${t}-list`]:{display:"flex",gap:e.paddingSM,overflowX:"scroll","&::-webkit-scrollbar":{display:"none"},listStyle:"none",paddingInlineStart:0,marginBlock:0,alignItems:"stretch","&-wrap":{flexWrap:"wrap"},"&-vertical":{flexDirection:"column",alignItems:"flex-start"}},[`${t}-item`]:{flex:"none",display:"flex",gap:e.paddingXS,height:"auto",paddingBlock:e.paddingSM,paddingInline:e.padding,alignItems:"flex-start",justifyContent:"flex-start",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,transition:["border","background"].map(r=>`${r} ${e.motionDurationSlow}`).join(","),border:`${zs(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,[`&:not(${t}-item-has-nest)`]:{"&:hover":{cursor:"pointer",background:e.colorFillTertiary},"&:active":{background:e.colorFill}},[`${t}-content`]:{flex:"auto",minWidth:0,display:"flex",gap:e.paddingXXS,flexDirection:"column",alignItems:"flex-start"},[`${t}-icon, ${t}-label, ${t}-desc`]:{margin:0,padding:0,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start",whiteSpace:"normal"},[`${t}-label`]:{color:e.colorTextHeading,fontWeight:500},[`${t}-label + ${t}-desc`]:{color:e.colorTextTertiary},[`&${t}-item-disabled`]:{pointerEvents:"none",background:e.colorBgContainerDisabled,[`${t}-label, ${t}-desc`]:{color:e.colorTextTertiary}}}}}},PX=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-item-has-nest`]:{[`> ${t}-content`]:{[`> ${t}-label`]:{fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}}},[`&${t}-nested`]:{marginTop:e.paddingXS,alignSelf:"stretch",[`${t}-list`]:{alignItems:"stretch"},[`${t}-item`]:{border:0,background:e.colorFillQuaternary}}}}},DX=ac("Prompts",e=>{const t=Eo(e,{});return[OX(t),PX(t)]},()=>({})),Z1=e=>{const{prefixCls:t,title:r,className:n,items:a,onItemClick:i,vertical:s,wrap:o,rootClassName:u,styles:l={},classNames:f={},style:d,...p}=e,{getPrefixCls:v,direction:_}=Xi(),x=v("prompts",t),w=Yl("prompts"),[C,E,b]=DX(x),h=Qe(x,w.className,n,u,E,b,{[`${x}-rtl`]:_==="rtl"}),g=Qe(`${x}-list`,w.classNames.list,f.list,{[`${x}-list-wrap`]:o},{[`${x}-list-vertical`]:s});return C(U.createElement("div",Pt({},p,{className:h,style:{...d,...w.style}}),r&&U.createElement(ue.Typography.Title,{level:5,className:Qe(`${x}-title`,w.classNames.title,f.title),style:{...w.styles.title,...l.title}},r),U.createElement("div",{className:g,style:{...w.styles.list,...l.list}},a==null?void 0:a.map((y,S)=>{const A=y.children&&y.children.length>0;return U.createElement("div",{key:y.key||`key_${S}`,style:{...w.styles.item,...l.item},className:Qe(`${x}-item`,w.classNames.item,f.item,{[`${x}-item-disabled`]:y.disabled,[`${x}-item-has-nest`]:A}),onClick:()=>{!A&&i&&i({data:y})}},y.icon&&U.createElement("div",{className:`${x}-icon`},y.icon),U.createElement("div",{className:Qe(`${x}-content`,w.classNames.itemContent,f.itemContent),style:{...w.styles.itemContent,...l.itemContent}},y.label&&U.createElement("h6",{className:`${x}-label`},y.label),y.description&&U.createElement("p",{className:`${x}-desc`},y.description),A&&U.createElement(Z1,{className:`${x}-nested`,items:y.children,vertical:!0,onItemClick:i,classNames:{list:f.subList,item:f.subItem},styles:{list:l.subList,item:l.subItem}})))}))))};process.env.NODE_ENV!=="production"&&(Z1.displayName="Prompts");const RX=e=>{const{componentCls:t,calc:r}=e,n=r(e.fontSizeHeading3).mul(e.lineHeightHeading3).equal(),a=r(e.fontSize).mul(e.lineHeight).equal();return{[t]:{gap:e.padding,[`${t}-icon`]:{height:r(n).add(a).add(e.paddingXXS).equal(),display:"flex",img:{height:"100%"}},[`${t}-content-wrapper`]:{gap:e.paddingXS,flex:"auto",minWidth:0,[`${t}-title-wrapper`]:{gap:e.paddingXS},[`${t}-title`]:{margin:0},[`${t}-extra`]:{marginInlineStart:"auto"}}}}},IX=e=>{const{componentCls:t}=e;return{[t]:{"&-filled":{paddingInline:e.padding,paddingBlock:e.paddingSM,background:e.colorFillContent,borderRadius:e.borderRadiusLG},"&-borderless":{[`${t}-title`]:{fontSize:e.fontSizeHeading3,lineHeight:e.lineHeightHeading3}}}}},NX=ac("Welcome",e=>{const t=Eo(e,{});return[RX(t),IX(t)]},()=>({}));function MX(e,t){const{prefixCls:r,rootClassName:n,className:a,style:i,variant:s="filled",classNames:o={},styles:u={},icon:l,title:f,description:d,extra:p}=e,{direction:v,getPrefixCls:_}=Xi(),x=_("welcome",r),w=Yl("welcome"),[C,E,b]=NX(x),h=U.useMemo(()=>{if(!l)return null;let S=l;return typeof l=="string"&&l.startsWith("http")&&(S=U.createElement("img",{src:l,alt:"icon"})),U.createElement("div",{className:Qe(`${x}-icon`,w.classNames.icon,o.icon),style:u.icon},S)},[l]),g=U.useMemo(()=>f?U.createElement(ue.Typography.Title,{level:4,className:Qe(`${x}-title`,w.classNames.title,o.title),style:u.title},f):null,[f]),y=U.useMemo(()=>p?U.createElement("div",{className:Qe(`${x}-extra`,w.classNames.extra,o.extra),style:u.extra},p):null,[p]);return C(U.createElement(ue.Flex,{ref:t,className:Qe(x,w.className,a,n,E,b,`${x}-${s}`,{[`${x}-rtl`]:v==="rtl"}),style:i},h,U.createElement(ue.Flex,{vertical:!0,className:`${x}-content-wrapper`},p?U.createElement(ue.Flex,{align:"flex-start",className:`${x}-title-wrapper`},g,y):g,d&&U.createElement(ue.Typography.Text,{className:Qe(`${x}-description`,w.classNames.description,o.description),style:u.description},d))))}const RT=U.forwardRef(MX);process.env.NODE_ENV!=="production"&&(RT.displayName="Welcome");function LX(e){const[,t]=U.useState(0),r=U.useRef(typeof e=="function"?e():e),n=U.useCallback(i=>{r.current=typeof i=="function"?i(r.current):i,t(s=>s+1)},[]),a=U.useCallback(()=>r.current,[]);return[r.current,n,a]}function BX(e){return Array.isArray(e)?e:[e]}function jX(e){const{defaultMessages:t,agent:r,requestFallback:n,requestPlaceholder:a,parser:i}=e,s=U.useRef(0),[o,u,l]=LX(()=>(t||[]).map((x,w)=>({id:`default_${w}`,status:"local",...x}))),f=(x,w)=>{const C={id:`msg_${s.current}`,message:x,status:w};return s.current+=1,C},d=U.useMemo(()=>{const x=[];return o.forEach(w=>{const C=i?i(w.message):w.message,E=BX(C);E.forEach((b,h)=>{let g=w.id;E.length>1&&(g=`${g}_${h}`),x.push({id:g,message:b,status:w.status})})}),x},[o]),p=x=>x.filter(w=>w.status!=="loading"&&w.status!=="error").map(w=>w.message),v=()=>p(l());return{onRequest:wi(x=>{if(!r)throw new Error("The agent parameter is required when using the onRequest method in an agent generated by useXAgent.");let w=null;u(b=>{let h=[...b,f(x,"local")];if(a){let g;typeof a=="function"?g=a(x,{messages:p(h)}):g=a;const y=f(g,"loading");w=y.id,h=[...h,y]}return h});let C=null;const E=(b,h)=>{let g=l().find(y=>y.id===C);return g?u(y=>y.map(S=>S.id===C?{...S,message:b,status:h}:S)):(g=f(b,h),u(y=>[...y.filter(A=>A.id!==w),g]),C=g.id),g};r.request({message:x,messages:v()},{onUpdate:b=>{E(b,"loading")},onSuccess:b=>{E(b,"success")},onError:async b=>{if(n){let h;typeof n=="function"?h=await n(x,{error:b,messages:v()}):h=n,u(g=>[...g.filter(y=>y.id!==w&&y.id!==C),f(h,"error")])}else u(h=>h.filter(g=>g.id!==w&&g.id!==C))}})}),messages:o,parsedMessages:d,setMessages:u}}const $X=`
494
+
495
+ `,UX=`
496
+ `,IT=":",K2=e=>(e??"").trim()!=="";function zX(){let e="";return new TransformStream({transform(t,r){e+=t;const n=e.split($X);n.slice(0,-1).forEach(a=>{K2(a)&&r.enqueue(a)}),e=n[n.length-1]},flush(t){K2(e)&&t.enqueue(e)}})}function HX(){return new TransformStream({transform(e,t){const n=e.split(UX).reduce((a,i)=>{const s=i.indexOf(IT);if(s===-1)throw new Error(`The key-value separator "${IT}" is not found in the sse line chunk!`);const o=i.slice(0,s);if(!K2(o))return a;const u=i.slice(s+1);return{...a,[o]:u}},{});Object.keys(n).length!==0&&t.enqueue(n)}})}function NT(e){const{readableStream:t,transformStream:r}=e;if(!(t instanceof ReadableStream))throw new Error("The options.readableStream must be an instance of ReadableStream.");const n=new TextDecoderStream,a=r?t.pipeThrough(n).pipeThrough(r):t.pipeThrough(n).pipeThrough(zX()).pipeThrough(HX());return a[Symbol.asyncIterator]=async function*(){const i=this.getReader();for(;;){const{done:s,value:o}=await i.read();if(s)break;o&&(yield o)}},a}const WX=async(e,t={})=>{const{fetch:r=globalThis.fetch,middlewares:n={},...a}=t;if(typeof r!="function")throw new Error("The options.fetch must be a typeof fetch function!");let i=[e,a];typeof n.onRequest=="function"&&(i=await n.onRequest(...i));let s=await r(...i);if(typeof n.onResponse=="function"){const o=await n.onResponse(s);if(!(o instanceof Response))throw new Error("The options.onResponse must return a Response instance!");s=o}if(!s.ok)throw new Error(`Fetch failed with status ${s.status}`);if(!s.body)throw new Error("The response body is empty.");return s},nl=class nl{constructor(t){gr(this,"baseURL");gr(this,"model");gr(this,"defaultHeaders");gr(this,"customOptions");gr(this,"create",async(t,r,n)=>{var i;const a={method:"POST",body:JSON.stringify({model:this.model,...t}),headers:this.defaultHeaders};try{const s=await WX(this.baseURL,{fetch:this.customOptions.fetch,...a});if(n){await this.customResponseHandler(s,r,n);return}const o=s.headers.get("content-type")||"";switch(o.split(";")[0].trim()){case"text/event-stream":await this.sseResponseHandler(s,r);break;case"application/json":await this.jsonResponseHandler(s,r);break;default:throw new Error(`The response content-type: ${o} is not support!`)}}catch(s){const o=s instanceof Error?s:new Error("Unknown error!");throw(i=r==null?void 0:r.onError)==null||i.call(r,o),o}});gr(this,"customResponseHandler",async(t,r,n)=>{var i,s;const a=[];for await(const o of NT({readableStream:t.body,transformStream:n}))a.push(o),(i=r==null?void 0:r.onUpdate)==null||i.call(r,o);(s=r==null?void 0:r.onSuccess)==null||s.call(r,a)});gr(this,"sseResponseHandler",async(t,r)=>{var a,i;const n=[];for await(const s of NT({readableStream:t.body}))n.push(s),(a=r==null?void 0:r.onUpdate)==null||a.call(r,s);(i=r==null?void 0:r.onSuccess)==null||i.call(r,n)});gr(this,"jsonResponseHandler",async(t,r)=>{var a,i;const n=await t.json();(a=r==null?void 0:r.onUpdate)==null||a.call(r,n),(i=r==null?void 0:r.onSuccess)==null||i.call(r,[n])});const{baseURL:r,model:n,dangerouslyApiKey:a,...i}=t;this.baseURL=t.baseURL,this.model=t.model,this.defaultHeaders={"Content-Type":"application/json",...t.dangerouslyApiKey&&{Authorization:t.dangerouslyApiKey}},this.customOptions=i}static init(t){if(!t.baseURL||typeof t.baseURL!="string")throw new Error("The baseURL is not valid!");const r=t.fetch||t.baseURL;return nl.instanceBuffer.has(r)||nl.instanceBuffer.set(r,new nl(t)),nl.instanceBuffer.get(r)}};gr(nl,"instanceBuffer",new Map);let Z2=nl;const VX=Z2.init;let MT=0;class qX{constructor(t){gr(this,"config");gr(this,"requestingMap",{});gr(this,"request",(t,r)=>{const{request:n}=this.config,{onUpdate:a,onSuccess:i,onError:s}=r,o=MT;MT+=1,this.requestingMap[o]=!0,n==null||n(t,{onUpdate:u=>{this.requestingMap[o]&&a(u)},onSuccess:u=>{this.requestingMap[o]&&(i(u),this.finishRequest(o))},onError:u=>{this.requestingMap[o]&&(s(u),this.finishRequest(o))}})});this.config=t}finishRequest(t){delete this.requestingMap[t]}isRequesting(){return Object.keys(this.requestingMap).length>0}}function GX(e){const{request:t,...r}=e;return U.useMemo(()=>[new qX({request:t||VX({baseURL:r.baseURL,model:r.model,dangerouslyApiKey:r.dangerouslyApiKey}).create,...r})],[])}const ki={layout:"_layout_1c061_1",top_header:"_top_header_1c061_13",person:"_person_1c061_22",menu:"_menu_1c061_35",conversations:"_conversations_1c061_42",chat:"_chat_1c061_47",messages:"_messages_1c061_64",placeholder:"_placeholder_1c061_67",sender:"_sender_1c061_72",logo:"_logo_1c061_75",addBtn:"_addBtn_1c061_95"},J2="RFC3986",Q2={RFC1738:e=>String(e).replace(/%20/g,"+"),RFC3986:e=>String(e)},YX="RFC1738",XX=Array.isArray,Qi=(()=>{const e=[];for(let t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e})(),e_=1024,KX=(e,t,r,n,a)=>{if(e.length===0)return e;let i=e;if(typeof e=="symbol"?i=Symbol.prototype.toString.call(e):typeof e!="string"&&(i=String(e)),r==="iso-8859-1")return escape(i).replace(/%u[0-9a-f]{4}/gi,function(o){return"%26%23"+parseInt(o.slice(2),16)+"%3B"});let s="";for(let o=0;o<i.length;o+=e_){const u=i.length>=e_?i.slice(o,o+e_):i,l=[];for(let f=0;f<u.length;++f){let d=u.charCodeAt(f);if(d===45||d===46||d===95||d===126||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||a===YX&&(d===40||d===41)){l[l.length]=u.charAt(f);continue}if(d<128){l[l.length]=Qi[d];continue}if(d<2048){l[l.length]=Qi[192|d>>6]+Qi[128|d&63];continue}if(d<55296||d>=57344){l[l.length]=Qi[224|d>>12]+Qi[128|d>>6&63]+Qi[128|d&63];continue}f+=1,d=65536+((d&1023)<<10|u.charCodeAt(f)&1023),l[l.length]=Qi[240|d>>18]+Qi[128|d>>12&63]+Qi[128|d>>6&63]+Qi[128|d&63]}s+=l.join("")}return s};function ZX(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))}function LT(e,t){if(XX(e)){const r=[];for(let n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)}const JX=Object.prototype.hasOwnProperty,BT={brackets(e){return String(e)+"[]"},comma:"comma",indices(e,t){return String(e)+"["+t+"]"},repeat(e){return String(e)}},es=Array.isArray,QX=Array.prototype.push,jT=function(e,t){QX.apply(e,es(t)?t:[t])},eK=Date.prototype.toISOString,Kr={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:KX,encodeValuesOnly:!1,format:J2,formatter:Q2[J2],indices:!1,serializeDate(e){return eK.call(e)},skipNulls:!1,strictNullHandling:!1};function tK(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"}const t_={};function $T(e,t,r,n,a,i,s,o,u,l,f,d,p,v,_,x,w,C){let E=e,b=C,h=0,g=!1;for(;(b=b.get(t_))!==void 0&&!g;){const F=b.get(e);if(h+=1,typeof F<"u"){if(F===h)throw new RangeError("Cyclic object value");g=!0}typeof b.get(t_)>"u"&&(h=0)}if(typeof l=="function"?E=l(t,E):E instanceof Date?E=p==null?void 0:p(E):r==="comma"&&es(E)&&(E=LT(E,function(F){return F instanceof Date?p==null?void 0:p(F):F})),E===null){if(i)return u&&!x?u(t,Kr.encoder,w,"key",v):t;E=""}if(tK(E)||ZX(E)){if(u){const F=x?t:u(t,Kr.encoder,w,"key",v);return[(_==null?void 0:_(F))+"="+(_==null?void 0:_(u(E,Kr.encoder,w,"value",v)))]}return[(_==null?void 0:_(t))+"="+(_==null?void 0:_(String(E)))]}const y=[];if(typeof E>"u")return y;let S;if(r==="comma"&&es(E))x&&u&&(E=LT(E,u)),S=[{value:E.length>0?E.join(",")||null:void 0}];else if(es(l))S=l;else{const F=Object.keys(E);S=f?F.sort(f):F}const A=o?String(t).replace(/\./g,"%2E"):String(t),k=n&&es(E)&&E.length===1?A+"[]":A;if(a&&es(E)&&E.length===0)return k+"[]";for(let F=0;F<S.length;++F){const P=S[F],j=typeof P=="object"&&typeof P.value<"u"?P.value:E[P];if(s&&j===null)continue;const N=d&&o?P.replace(/\./g,"%2E"):P,I=es(E)?typeof r=="function"?r(k,N):k:k+(d?"."+N:"["+N+"]");C.set(e,h);const B=new WeakMap;B.set(t_,C),jT(y,$T(j,I,r,n,a,i,s,o,r==="comma"&&x&&es(E)?null:u,l,f,d,p,v,_,x,w,B))}return y}function rK(e=Kr){if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.encodeDotInKeys<"u"&&typeof e.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");const t=e.charset||Kr.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");let r=J2;if(typeof e.format<"u"){if(!JX.call(Q2,e.format))throw new TypeError("Unknown format option provided.");r=e.format}const n=Q2[r];let a=Kr.filter;(typeof e.filter=="function"||es(e.filter))&&(a=e.filter);let i;if(e.arrayFormat&&e.arrayFormat in BT?i=e.arrayFormat:"indices"in e?i=e.indices?"indices":"repeat":i=Kr.arrayFormat,"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");const s=typeof e.allowDots>"u"?e.encodeDotInKeys?!0:Kr.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:Kr.addQueryPrefix,allowDots:s,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:Kr.allowEmptyArrays,arrayFormat:i,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:Kr.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?Kr.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:Kr.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:Kr.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:Kr.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:Kr.encodeValuesOnly,filter:a,format:r,formatter:n,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:Kr.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:Kr.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:Kr.strictNullHandling}}function nK(e,t={}){let r=e;const n=rK(t);let a,i;typeof n.filter=="function"?(i=n.filter,r=i("",r)):es(n.filter)&&(i=n.filter,a=i);const s=[];if(typeof r!="object"||r===null)return"";const o=BT[n.arrayFormat],u=o==="comma"&&n.commaRoundTrip;a||(a=Object.keys(r)),n.sort&&a.sort(n.sort);const l=new WeakMap;for(let p=0;p<a.length;++p){const v=a[p];n.skipNulls&&r[v]===null||jT(s,$T(r[v],v,o,u,n.allowEmptyArrays,n.strictNullHandling,n.skipNulls,n.encodeDotInKeys,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,l))}const f=s.join(n.delimiter);let d=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?d+="utf8=%26%2310003%3B&":d+="utf8=%E2%9C%93&"),f.length>0?d+f:""}const ic="4.85.3";let UT=!1,B0,zT,HT,r_,WT,VT,qT,GT,YT;function aK(e,t={auto:!1}){if(UT)throw new Error(`you must \`import 'openai/shims/${e.kind}'\` before importing anything else from openai`);if(B0)throw new Error(`can't \`import 'openai/shims/${e.kind}'\` after \`import 'openai/shims/${B0}'\``);UT=t.auto,B0=e.kind,zT=e.fetch,HT=e.FormData,r_=e.File,WT=e.ReadableStream,VT=e.getMultipartRequestOptions,qT=e.getDefaultAgent,GT=e.fileFromPath,YT=e.isFsReadStream}class iK{constructor(t){this.body=t}get[Symbol.toStringTag](){return"MultipartBody"}}function sK({manuallyImported:e}={}){const t=e?"You may need to use polyfills":"Add one of these imports before your first `import … from 'openai'`:\n- `import 'openai/shims/node'` (if you're running on Node)\n- `import 'openai/shims/web'` (otherwise)\n";let r,n,a,i;try{r=fetch,n=Request,a=Response,i=Headers}catch(s){throw new Error(`this environment is missing the following Web Fetch API type: ${s.message}. ${t}`)}return{kind:"web",fetch:r,Request:n,Response:a,Headers:i,FormData:typeof FormData<"u"?FormData:class{constructor(){throw new Error(`file uploads aren't supported in this environment yet as 'FormData' is undefined. ${t}`)}},Blob:typeof Blob<"u"?Blob:class{constructor(){throw new Error(`file uploads aren't supported in this environment yet as 'Blob' is undefined. ${t}`)}},File:typeof File<"u"?File:class{constructor(){throw new Error(`file uploads aren't supported in this environment yet as 'File' is undefined. ${t}`)}},ReadableStream:typeof ReadableStream<"u"?ReadableStream:class{constructor(){throw new Error(`streaming isn't supported in this environment yet as 'ReadableStream' is undefined. ${t}`)}},getMultipartRequestOptions:async(s,o)=>({...o,body:new iK(s)}),getDefaultAgent:s=>{},fileFromPath:()=>{throw new Error("The `fileFromPath` function is only supported in Node. See the README for more details: https://www.github.com/openai/openai-node#file-uploads")},isFsReadStream:s=>!1}}B0||aK(sK(),{auto:!0});class Nt extends Error{}class xn extends Nt{constructor(t,r,n,a){super(`${xn.makeMessage(t,r,n)}`),this.status=t,this.headers=a,this.request_id=a==null?void 0:a["x-request-id"],this.error=r;const i=r;this.code=i==null?void 0:i.code,this.param=i==null?void 0:i.param,this.type=i==null?void 0:i.type}static makeMessage(t,r,n){const a=r!=null&&r.message?typeof r.message=="string"?r.message:JSON.stringify(r.message):r?JSON.stringify(r):n;return t&&a?`${t} ${a}`:t?`${t} status code (no body)`:a||"(no status code or body)"}static generate(t,r,n,a){if(!t||!a)return new J1({message:n,cause:o_(r)});const i=r==null?void 0:r.error;return t===400?new XT(t,i,n,a):t===401?new KT(t,i,n,a):t===403?new ZT(t,i,n,a):t===404?new JT(t,i,n,a):t===409?new QT(t,i,n,a):t===422?new e5(t,i,n,a):t===429?new t5(t,i,n,a):t>=500?new r5(t,i,n,a):new xn(t,i,n,a)}}class Ti extends xn{constructor({message:t}={}){super(void 0,void 0,t||"Request was aborted.",void 0)}}class J1 extends xn{constructor({message:t,cause:r}){super(void 0,void 0,t||"Connection error.",void 0),r&&(this.cause=r)}}class n_ extends J1{constructor({message:t}={}){super({message:t??"Request timed out."})}}class XT extends xn{}class KT extends xn{}class ZT extends xn{}class JT extends xn{}class QT extends xn{}class e5 extends xn{}class t5 extends xn{}class r5 extends xn{}class n5 extends Nt{constructor(){super("Could not parse response content as the length limit was reached")}}class a5 extends Nt{constructor(){super("Could not parse response content as the request was rejected by the content filter")}}var Q1=function(e,t,r,n,a){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?a.call(e,r):a?a.value=r:t.set(e,r),r},Nu=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},ya;class ep{constructor(){ya.set(this,void 0),this.buffer=new Uint8Array,Q1(this,ya,null,"f")}decode(t){if(t==null)return[];const r=t instanceof ArrayBuffer?new Uint8Array(t):typeof t=="string"?new TextEncoder().encode(t):t;let n=new Uint8Array(this.buffer.length+r.length);n.set(this.buffer),n.set(r,this.buffer.length),this.buffer=n;const a=[];let i;for(;(i=oK(this.buffer,Nu(this,ya,"f")))!=null;){if(i.carriage&&Nu(this,ya,"f")==null){Q1(this,ya,i.index,"f");continue}if(Nu(this,ya,"f")!=null&&(i.index!==Nu(this,ya,"f")+1||i.carriage)){a.push(this.decodeText(this.buffer.slice(0,Nu(this,ya,"f")-1))),this.buffer=this.buffer.slice(Nu(this,ya,"f")),Q1(this,ya,null,"f");continue}const s=Nu(this,ya,"f")!==null?i.preceding-1:i.preceding,o=this.decodeText(this.buffer.slice(0,s));a.push(o),this.buffer=this.buffer.slice(i.index),Q1(this,ya,null,"f")}return a}decodeText(t){if(t==null)return"";if(typeof t=="string")return t;if(typeof Buffer<"u"){if(t instanceof Buffer)return t.toString();if(t instanceof Uint8Array)return Buffer.from(t).toString();throw new Nt(`Unexpected: received non-Uint8Array (${t.constructor.name}) stream chunk in an environment with a global "Buffer" defined, which this library assumes to be Node. Please report this error.`)}if(typeof TextDecoder<"u"){if(t instanceof Uint8Array||t instanceof ArrayBuffer)return this.textDecoder??(this.textDecoder=new TextDecoder("utf8")),this.textDecoder.decode(t);throw new Nt(`Unexpected: received non-Uint8Array/ArrayBuffer (${t.constructor.name}) in a web platform. Please report this error.`)}throw new Nt("Unexpected: neither Buffer nor TextDecoder are available as globals. Please report this error.")}flush(){return this.buffer.length?this.decode(`
497
+ `):[]}}ya=new WeakMap,ep.NEWLINE_CHARS=new Set([`
498
+ `,"\r"]),ep.NEWLINE_REGEXP=/\r\n|[\n\r]/g;function oK(e,t){for(let a=t??0;a<e.length;a++){if(e[a]===10)return{preceding:a,index:a+1,carriage:!1};if(e[a]===13)return{preceding:a,index:a+1,carriage:!0}}return null}function uK(e){for(let n=0;n<e.length-1;n++){if(e[n]===10&&e[n+1]===10||e[n]===13&&e[n+1]===13)return n+2;if(e[n]===13&&e[n+1]===10&&n+3<e.length&&e[n+2]===13&&e[n+3]===10)return n+4}return-1}function i5(e){if(e[Symbol.asyncIterator])return e;const t=e.getReader();return{async next(){try{const r=await t.read();return r!=null&&r.done&&t.releaseLock(),r}catch(r){throw t.releaseLock(),r}},async return(){const r=t.cancel();return t.releaseLock(),await r,{done:!0,value:void 0}},[Symbol.asyncIterator](){return this}}}class ts{constructor(t,r){this.iterator=t,this.controller=r}static fromSSEResponse(t,r){let n=!1;async function*a(){if(n)throw new Error("Cannot iterate over a consumed stream, use `.tee()` to split the stream.");n=!0;let i=!1;try{for await(const s of lK(t,r))if(!i){if(s.data.startsWith("[DONE]")){i=!0;continue}if(s.event===null){let o;try{o=JSON.parse(s.data)}catch(u){throw console.error("Could not parse message into JSON:",s.data),console.error("From chunk:",s.raw),u}if(o&&o.error)throw new xn(void 0,o.error,void 0,void 0);yield o}else{let o;try{o=JSON.parse(s.data)}catch(u){throw console.error("Could not parse message into JSON:",s.data),console.error("From chunk:",s.raw),u}if(s.event=="error")throw new xn(void 0,o.error,o.message,void 0);yield{event:s.event,data:o}}}i=!0}catch(s){if(s instanceof Error&&s.name==="AbortError")return;throw s}finally{i||r.abort()}}return new ts(a,r)}static fromReadableStream(t,r){let n=!1;async function*a(){const s=new ep,o=i5(t);for await(const u of o)for(const l of s.decode(u))yield l;for(const u of s.flush())yield u}async function*i(){if(n)throw new Error("Cannot iterate over a consumed stream, use `.tee()` to split the stream.");n=!0;let s=!1;try{for await(const o of a())s||o&&(yield JSON.parse(o));s=!0}catch(o){if(o instanceof Error&&o.name==="AbortError")return;throw o}finally{s||r.abort()}}return new ts(i,r)}[Symbol.asyncIterator](){return this.iterator()}tee(){const t=[],r=[],n=this.iterator(),a=i=>({next:()=>{if(i.length===0){const s=n.next();t.push(s),r.push(s)}return i.shift()}});return[new ts(()=>a(t),this.controller),new ts(()=>a(r),this.controller)]}toReadableStream(){const t=this;let r;const n=new TextEncoder;return new WT({async start(){r=t[Symbol.asyncIterator]()},async pull(a){try{const{value:i,done:s}=await r.next();if(s)return a.close();const o=n.encode(JSON.stringify(i)+`
499
+ `);a.enqueue(o)}catch(i){a.error(i)}},async cancel(){var a;await((a=r.return)==null?void 0:a.call(r))}})}}async function*lK(e,t){if(!e.body)throw t.abort(),new Nt("Attempted to iterate over a response with no body");const r=new fK,n=new ep,a=i5(e.body);for await(const i of cK(a))for(const s of n.decode(i)){const o=r.decode(s);o&&(yield o)}for(const i of n.flush()){const s=r.decode(i);s&&(yield s)}}async function*cK(e){let t=new Uint8Array;for await(const r of e){if(r==null)continue;const n=r instanceof ArrayBuffer?new Uint8Array(r):typeof r=="string"?new TextEncoder().encode(r):r;let a=new Uint8Array(t.length+n.length);a.set(t),a.set(n,t.length),t=a;let i;for(;(i=uK(t))!==-1;)yield t.slice(0,i),t=t.slice(i)}t.length>0&&(yield t)}class fK{constructor(){this.event=null,this.data=[],this.chunks=[]}decode(t){if(t.endsWith("\r")&&(t=t.substring(0,t.length-1)),!t){if(!this.event&&!this.data.length)return null;const i={event:this.event,data:this.data.join(`
500
+ `),raw:this.chunks};return this.event=null,this.data=[],this.chunks=[],i}if(this.chunks.push(t),t.startsWith(":"))return null;let[r,n,a]=dK(t,":");return a.startsWith(" ")&&(a=a.substring(1)),r==="event"?this.event=a:r==="data"&&this.data.push(a),null}}function dK(e,t){const r=e.indexOf(t);return r!==-1?[e.substring(0,r),t,e.substring(r+t.length)]:[e,"",""]}const s5=e=>e!=null&&typeof e=="object"&&typeof e.url=="string"&&typeof e.blob=="function",o5=e=>e!=null&&typeof e=="object"&&typeof e.name=="string"&&typeof e.lastModified=="number"&&tp(e),tp=e=>e!=null&&typeof e=="object"&&typeof e.size=="number"&&typeof e.type=="string"&&typeof e.text=="function"&&typeof e.slice=="function"&&typeof e.arrayBuffer=="function",hK=e=>o5(e)||s5(e)||YT(e);async function u5(e,t,r){var a;if(e=await e,o5(e))return e;if(s5(e)){const i=await e.blob();t||(t=new URL(e.url).pathname.split(/[\\/]/).pop()??"unknown_file");const s=tp(i)?[await i.arrayBuffer()]:[i];return new r_(s,t,r)}const n=await pK(e);if(t||(t=gK(e)??"unknown_file"),!(r!=null&&r.type)){const i=(a=n[0])==null?void 0:a.type;typeof i=="string"&&(r={...r,type:i})}return new r_(n,t,r)}async function pK(e){var r;let t=[];if(typeof e=="string"||ArrayBuffer.isView(e)||e instanceof ArrayBuffer)t.push(e);else if(tp(e))t.push(await e.arrayBuffer());else if(vK(e))for await(const n of e)t.push(n);else throw new Error(`Unexpected data type: ${typeof e}; constructor: ${(r=e==null?void 0:e.constructor)==null?void 0:r.name}; props: ${mK(e)}`);return t}function mK(e){return`[${Object.getOwnPropertyNames(e).map(r=>`"${r}"`).join(", ")}]`}function gK(e){var t;return a_(e.name)||a_(e.filename)||((t=a_(e.path))==null?void 0:t.split(/[\\/]/).pop())}const a_=e=>{if(typeof e=="string")return e;if(typeof Buffer<"u"&&e instanceof Buffer)return String(e)},vK=e=>e!=null&&typeof e=="object"&&typeof e[Symbol.asyncIterator]=="function",l5=e=>e&&typeof e=="object"&&e.body&&e[Symbol.toStringTag]==="MultipartBody",sc=async e=>{const t=await xK(e.body);return VT(t,e)},xK=async e=>{const t=new HT;return await Promise.all(Object.entries(e||{}).map(([r,n])=>i_(t,r,n))),t},i_=async(e,t,r)=>{if(r!==void 0){if(r==null)throw new TypeError(`Received null for "${t}"; to pass null in FormData, you must use the string 'null'`);if(typeof r=="string"||typeof r=="number"||typeof r=="boolean")e.append(t,String(r));else if(hK(r)){const n=await u5(r);e.append(t,n)}else if(Array.isArray(r))await Promise.all(r.map(n=>i_(e,t+"[]",n)));else if(typeof r=="object")await Promise.all(Object.entries(r).map(([n,a])=>i_(e,`${t}[${n}]`,a)));else throw new TypeError(`Invalid value given to form, expected a string, number, boolean, object, Array, File or Blob but got ${r} instead`)}};var _K=function(e,t,r,n,a){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?a.call(e,r):a?a.value=r:t.set(e,r),r},yK=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},rp;async function c5(e){const{response:t}=e;if(e.options.stream)return oc("response",t.status,t.url,t.headers,t.body),e.options.__streamClass?e.options.__streamClass.fromSSEResponse(t,e.controller):ts.fromSSEResponse(t,e.controller);if(t.status===204)return null;if(e.options.__binaryResponse)return t;const r=t.headers.get("content-type");if((r==null?void 0:r.includes("application/json"))||(r==null?void 0:r.includes("application/vnd.api+json"))){const i=await t.json();return oc("response",t.status,t.url,t.headers,i),f5(i,t)}const a=await t.text();return oc("response",t.status,t.url,t.headers,a),a}function f5(e,t){return!e||typeof e!="object"||Array.isArray(e)?e:Object.defineProperty(e,"_request_id",{value:t.headers.get("x-request-id"),enumerable:!1})}class np extends Promise{constructor(t,r=c5){super(n=>{n(null)}),this.responsePromise=t,this.parseResponse=r}_thenUnwrap(t){return new np(this.responsePromise,async r=>f5(t(await this.parseResponse(r),r),r.response))}asResponse(){return this.responsePromise.then(t=>t.response)}async withResponse(){const[t,r]=await Promise.all([this.parse(),this.asResponse()]);return{data:t,response:r,request_id:r.headers.get("x-request-id")}}parse(){return this.parsedPromise||(this.parsedPromise=this.responsePromise.then(this.parseResponse)),this.parsedPromise}then(t,r){return this.parse().then(t,r)}catch(t){return this.parse().catch(t)}finally(t){return this.parse().finally(t)}}class bK{constructor({baseURL:t,maxRetries:r=2,timeout:n=6e5,httpAgent:a,fetch:i}){this.baseURL=t,this.maxRetries=s_("maxRetries",r),this.timeout=s_("timeout",n),this.httpAgent=a,this.fetch=i??zT}authHeaders(t){return{}}defaultHeaders(t){return{Accept:"application/json","Content-Type":"application/json","User-Agent":this.getUserAgent(),...TK(),...this.authHeaders(t)}}validateHeaders(t,r){}defaultIdempotencyKey(){return`stainless-node-retry-${PK()}`}get(t,r){return this.methodRequest("get",t,r)}post(t,r){return this.methodRequest("post",t,r)}patch(t,r){return this.methodRequest("patch",t,r)}put(t,r){return this.methodRequest("put",t,r)}delete(t,r){return this.methodRequest("delete",t,r)}methodRequest(t,r,n){return this.request(Promise.resolve(n).then(async a=>{const i=a&&tp(a==null?void 0:a.body)?new DataView(await a.body.arrayBuffer()):(a==null?void 0:a.body)instanceof DataView?a.body:(a==null?void 0:a.body)instanceof ArrayBuffer?new DataView(a.body):a&&ArrayBuffer.isView(a==null?void 0:a.body)?new DataView(a.body.buffer):a==null?void 0:a.body;return{method:t,path:r,...a,body:i}}))}getAPIList(t,r,n){return this.requestAPIList(r,{method:"get",path:t,...n})}calculateContentLength(t){if(typeof t=="string"){if(typeof Buffer<"u")return Buffer.byteLength(t,"utf8").toString();if(typeof TextEncoder<"u")return new TextEncoder().encode(t).length.toString()}else if(ArrayBuffer.isView(t))return t.byteLength.toString();return null}buildRequest(t,{retryCount:r=0}={}){var _;t={...t};const{method:n,path:a,query:i,headers:s={}}=t,o=ArrayBuffer.isView(t.body)||t.__binaryRequest&&typeof t.body=="string"?t.body:l5(t.body)?t.body.body:t.body?JSON.stringify(t.body,null,2):null,u=this.calculateContentLength(o),l=this.buildURL(a,i);"timeout"in t&&s_("timeout",t.timeout),t.timeout=t.timeout??this.timeout;const f=t.httpAgent??this.httpAgent??qT(l),d=t.timeout+1e3;typeof((_=f==null?void 0:f.options)==null?void 0:_.timeout)=="number"&&d>(f.options.timeout??0)&&(f.options.timeout=d),this.idempotencyHeader&&n!=="get"&&(t.idempotencyKey||(t.idempotencyKey=this.defaultIdempotencyKey()),s[this.idempotencyHeader]=t.idempotencyKey);const p=this.buildHeaders({options:t,headers:s,contentLength:u,retryCount:r});return{req:{method:n,...o&&{body:o},headers:p,...f&&{agent:f},signal:t.signal??null},url:l,timeout:t.timeout}}buildHeaders({options:t,headers:r,contentLength:n,retryCount:a}){const i={};n&&(i["content-length"]=n);const s=this.defaultHeaders(t);return x5(i,s),x5(i,r),l5(t.body)&&B0!=="node"&&delete i["content-type"],ip(s,"x-stainless-retry-count")===void 0&&ip(r,"x-stainless-retry-count")===void 0&&(i["x-stainless-retry-count"]=String(a)),ip(s,"x-stainless-timeout")===void 0&&ip(r,"x-stainless-timeout")===void 0&&t.timeout&&(i["x-stainless-timeout"]=String(t.timeout)),this.validateHeaders(i,r),i}async prepareOptions(t){}async prepareRequest(t,{url:r,options:n}){}parseHeaders(t){return t?Symbol.iterator in t?Object.fromEntries(Array.from(t).map(r=>[...r])):{...t}:{}}makeStatusError(t,r,n,a){return xn.generate(t,r,n,a)}request(t,r=null){return new np(this.makeRequest(t,r))}async makeRequest(t,r){var d,p;const n=await t,a=n.maxRetries??this.maxRetries;r==null&&(r=a),await this.prepareOptions(n);const{req:i,url:s,timeout:o}=this.buildRequest(n,{retryCount:a-r});if(await this.prepareRequest(i,{url:s,options:n}),oc("request",s,n,i.headers),(d=n.signal)!=null&&d.aborted)throw new Ti;const u=new AbortController,l=await this.fetchWithTimeout(s,i,o,u).catch(o_);if(l instanceof Error){if((p=n.signal)!=null&&p.aborted)throw new Ti;if(r)return this.retryRequest(n,r);throw l.name==="AbortError"?new n_:new J1({cause:l})}const f=SK(l.headers);if(!l.ok){if(r&&this.shouldRetry(l)){const E=`retrying, ${r} attempts remaining`;return oc(`response (error; ${E})`,l.status,s,f),this.retryRequest(n,r,f)}const v=await l.text().catch(E=>o_(E).message),_=AK(v),x=_?void 0:v;throw oc(`response (error; ${r?"(error; no more retries left)":"(error; not retryable)"})`,l.status,s,f,x),this.makeStatusError(l.status,_,x,f)}return{response:l,options:n,controller:u}}requestAPIList(t,r){const n=this.makeRequest(r,null);return new wK(this,n,t)}buildURL(t,r){const n=OK(t)?new URL(t):new URL(this.baseURL+(this.baseURL.endsWith("/")&&t.startsWith("/")?t.slice(1):t)),a=this.defaultQuery();return g5(a)||(r={...a,...r}),typeof r=="object"&&r&&!Array.isArray(r)&&(n.search=this.stringifyQuery(r)),n.toString()}stringifyQuery(t){return Object.entries(t).filter(([r,n])=>typeof n<"u").map(([r,n])=>{if(typeof n=="string"||typeof n=="number"||typeof n=="boolean")return`${encodeURIComponent(r)}=${encodeURIComponent(n)}`;if(n===null)return`${encodeURIComponent(r)}=`;throw new Nt(`Cannot stringify type ${typeof n}; Expected string, number, boolean, or null. If you need to pass nested query parameters, you can manually encode them, e.g. { query: { 'foo[key1]': value1, 'foo[key2]': value2 } }, and please open a GitHub issue requesting better support for your use case.`)}).join("&")}async fetchWithTimeout(t,r,n,a){const{signal:i,...s}=r||{};i&&i.addEventListener("abort",()=>a.abort());const o=setTimeout(()=>a.abort(),n),u={signal:a.signal,...s};return u.method&&(u.method=u.method.toUpperCase()),this.fetch.call(void 0,t,u).finally(()=>{clearTimeout(o)})}shouldRetry(t){const r=t.headers.get("x-should-retry");return r==="true"?!0:r==="false"?!1:t.status===408||t.status===409||t.status===429||t.status>=500}async retryRequest(t,r,n){let a;const i=n==null?void 0:n["retry-after-ms"];if(i){const o=parseFloat(i);Number.isNaN(o)||(a=o)}const s=n==null?void 0:n["retry-after"];if(s&&!a){const o=parseFloat(s);Number.isNaN(o)?a=Date.parse(s)-Date.now():a=o*1e3}if(!(a&&0<=a&&a<60*1e3)){const o=t.maxRetries??this.maxRetries;a=this.calculateDefaultRetryTimeoutMillis(r,o)}return await j0(a),this.makeRequest(t,r-1)}calculateDefaultRetryTimeoutMillis(t,r){const i=r-t,s=Math.min(.5*Math.pow(2,i),8),o=1-Math.random()*.25;return s*o*1e3}getUserAgent(){return`${this.constructor.name}/JS ${ic}`}}class d5{constructor(t,r,n,a){rp.set(this,void 0),_K(this,rp,t,"f"),this.options=a,this.response=r,this.body=n}hasNextPage(){return this.getPaginatedItems().length?this.nextPageInfo()!=null:!1}async getNextPage(){const t=this.nextPageInfo();if(!t)throw new Nt("No next page expected; please check `.hasNextPage()` before calling `.getNextPage()`.");const r={...this.options};if("params"in t&&typeof r.query=="object")r.query={...r.query,...t.params};else if("url"in t){const n=[...Object.entries(r.query||{}),...t.url.searchParams.entries()];for(const[a,i]of n)t.url.searchParams.set(a,i);r.query=void 0,r.path=t.url.toString()}return await yK(this,rp,"f").requestAPIList(this.constructor,r)}async*iterPages(){let t=this;for(yield t;t.hasNextPage();)t=await t.getNextPage(),yield t}async*[(rp=new WeakMap,Symbol.asyncIterator)](){for await(const t of this.iterPages())for(const r of t.getPaginatedItems())yield r}}class wK extends np{constructor(t,r,n){super(r,async a=>new n(t,a.response,await c5(a),a.options))}async*[Symbol.asyncIterator](){const t=await this;for await(const r of t)yield r}}const SK=e=>new Proxy(Object.fromEntries(e.entries()),{get(t,r){const n=r.toString();return t[n.toLowerCase()]||t[n]}}),EK={method:!0,path:!0,query:!0,body:!0,headers:!0,maxRetries:!0,stream:!0,timeout:!0,httpAgent:!0,signal:!0,idempotencyKey:!0,__metadata:!0,__binaryRequest:!0,__binaryResponse:!0,__streamClass:!0},Tn=e=>typeof e=="object"&&e!==null&&!g5(e)&&Object.keys(e).every(t=>v5(EK,t)),CK=()=>{var t;if(typeof Deno<"u"&&Deno.build!=null)return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":ic,"X-Stainless-OS":p5(Deno.build.os),"X-Stainless-Arch":h5(Deno.build.arch),"X-Stainless-Runtime":"deno","X-Stainless-Runtime-Version":typeof Deno.version=="string"?Deno.version:((t=Deno.version)==null?void 0:t.deno)??"unknown"};if(typeof EdgeRuntime<"u")return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":ic,"X-Stainless-OS":"Unknown","X-Stainless-Arch":`other:${EdgeRuntime}`,"X-Stainless-Runtime":"edge","X-Stainless-Runtime-Version":process.version};if(Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]")return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":ic,"X-Stainless-OS":p5(process.platform),"X-Stainless-Arch":h5(process.arch),"X-Stainless-Runtime":"node","X-Stainless-Runtime-Version":process.version};const e=kK();return e?{"X-Stainless-Lang":"js","X-Stainless-Package-Version":ic,"X-Stainless-OS":"Unknown","X-Stainless-Arch":"unknown","X-Stainless-Runtime":`browser:${e.browser}`,"X-Stainless-Runtime-Version":e.version}:{"X-Stainless-Lang":"js","X-Stainless-Package-Version":ic,"X-Stainless-OS":"Unknown","X-Stainless-Arch":"unknown","X-Stainless-Runtime":"unknown","X-Stainless-Runtime-Version":"unknown"}};function kK(){if(typeof navigator>"u"||!navigator)return null;const e=[{key:"edge",pattern:/Edge(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"ie",pattern:/MSIE(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"ie",pattern:/Trident(?:.*rv\:(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"chrome",pattern:/Chrome(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"firefox",pattern:/Firefox(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"safari",pattern:/(?:Version\W+(\d+)\.(\d+)(?:\.(\d+))?)?(?:\W+Mobile\S*)?\W+Safari/}];for(const{key:t,pattern:r}of e){const n=r.exec(navigator.userAgent);if(n){const a=n[1]||0,i=n[2]||0,s=n[3]||0;return{browser:t,version:`${a}.${i}.${s}`}}}return null}const h5=e=>e==="x32"?"x32":e==="x86_64"||e==="x64"?"x64":e==="arm"?"arm":e==="aarch64"||e==="arm64"?"arm64":e?`other:${e}`:"unknown",p5=e=>(e=e.toLowerCase(),e.includes("ios")?"iOS":e==="android"?"Android":e==="darwin"?"MacOS":e==="win32"?"Windows":e==="freebsd"?"FreeBSD":e==="openbsd"?"OpenBSD":e==="linux"?"Linux":e?`Other:${e}`:"Unknown");let m5;const TK=()=>m5??(m5=CK()),AK=e=>{try{return JSON.parse(e)}catch{return}},FK=/^[a-z][a-z0-9+.-]*:/i,OK=e=>FK.test(e),j0=e=>new Promise(t=>setTimeout(t,e)),s_=(e,t)=>{if(typeof t!="number"||!Number.isInteger(t))throw new Nt(`${e} must be an integer`);if(t<0)throw new Nt(`${e} must be a positive integer`);return t},o_=e=>{if(e instanceof Error)return e;if(typeof e=="object"&&e!==null)try{return new Error(JSON.stringify(e))}catch{}return new Error(e)},ap=e=>{var t,r,n,a,i;if(typeof process<"u")return((r=(t=process.env)==null?void 0:t[e])==null?void 0:r.trim())??void 0;if(typeof Deno<"u")return(i=(a=(n=Deno.env)==null?void 0:n.get)==null?void 0:a.call(n,e))==null?void 0:i.trim()};function g5(e){if(!e)return!0;for(const t in e)return!1;return!0}function v5(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function x5(e,t){for(const r in t){if(!v5(t,r))continue;const n=r.toLowerCase();if(!n)continue;const a=t[r];a===null?delete e[n]:a!==void 0&&(e[n]=a)}}const _5=new Set(["authorization","api-key"]);function oc(e,...t){var r;if(typeof process<"u"&&((r=process==null?void 0:process.env)==null?void 0:r.DEBUG)==="true"){const n=t.map(a=>{if(!a)return a;if(a.headers){const s={...a,headers:{...a.headers}};for(const o in a.headers)_5.has(o.toLowerCase())&&(s.headers[o]="REDACTED");return s}let i=null;for(const s in a)_5.has(s.toLowerCase())&&(i??(i={...a}),i[s]="REDACTED");return i??a});console.log(`OpenAI:DEBUG:${e}`,...n)}}const PK=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)}),DK=()=>typeof window<"u"&&typeof window.document<"u"&&typeof navigator<"u",RK=e=>typeof(e==null?void 0:e.get)=="function",ip=(e,t)=>{var n;const r=t.toLowerCase();if(RK(e)){const a=((n=t[0])==null?void 0:n.toUpperCase())+t.substring(1).replace(/([^\w])(\w)/g,(i,s,o)=>s+o.toUpperCase());for(const i of[t,r,t.toUpperCase(),a]){const s=e.get(i);if(s)return s}}for(const[a,i]of Object.entries(e))if(a.toLowerCase()===r)return Array.isArray(i)?(i.length<=1||console.warn(`Received ${i.length} entries for the ${t} header, using the first entry.`),i[0]):i};function u_(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}class IK extends d5{constructor(t,r,n,a){super(t,r,n,a),this.data=n.data||[],this.object=n.object}getPaginatedItems(){return this.data??[]}nextPageParams(){return null}nextPageInfo(){return null}}class ba extends d5{constructor(t,r,n,a){super(t,r,n,a),this.data=n.data||[],this.has_more=n.has_more||!1}getPaginatedItems(){return this.data??[]}hasNextPage(){return this.has_more===!1?!1:super.hasNextPage()}nextPageParams(){const t=this.nextPageInfo();if(!t)return null;if("params"in t)return t.params;const r=Object.fromEntries(t.url.searchParams);return Object.keys(r).length?r:null}nextPageInfo(){var n;const t=this.getPaginatedItems();if(!t.length)return null;const r=(n=t[t.length-1])==null?void 0:n.id;return r?{params:{after:r}}:null}}class Vt{constructor(t){this._client=t}}let y5=class extends Vt{list(t,r={},n){return Tn(r)?this.list(t,{},r):this._client.getAPIList(`/chat/completions/${t}/messages`,NK,{query:r,...n})}},sp=class extends Vt{constructor(){super(...arguments),this.messages=new y5(this._client)}create(t,r){return this._client.post("/chat/completions",{body:t,...r,stream:t.stream??!1})}retrieve(t,r){return this._client.get(`/chat/completions/${t}`,r)}update(t,r,n){return this._client.post(`/chat/completions/${t}`,{body:r,...n})}list(t={},r){return Tn(t)?this.list({},t):this._client.getAPIList("/chat/completions",op,{query:t,...r})}del(t,r){return this._client.delete(`/chat/completions/${t}`,r)}};class op extends ba{}class NK extends ba{}sp.ChatCompletionsPage=op,sp.Messages=y5;let up=class extends Vt{constructor(){super(...arguments),this.completions=new sp(this._client)}};up.Completions=sp,up.ChatCompletionsPage=op;class b5 extends Vt{create(t,r){return this._client.post("/audio/speech",{body:t,...r,headers:{Accept:"application/octet-stream",...r==null?void 0:r.headers},__binaryResponse:!0})}}class w5 extends Vt{create(t,r){return this._client.post("/audio/transcriptions",sc({body:t,...r,__metadata:{model:t.model}}))}}class S5 extends Vt{create(t,r){return this._client.post("/audio/translations",sc({body:t,...r,__metadata:{model:t.model}}))}}class $0 extends Vt{constructor(){super(...arguments),this.transcriptions=new w5(this._client),this.translations=new S5(this._client),this.speech=new b5(this._client)}}$0.Transcriptions=w5,$0.Translations=S5,$0.Speech=b5;class l_ extends Vt{create(t,r){return this._client.post("/batches",{body:t,...r})}retrieve(t,r){return this._client.get(`/batches/${t}`,r)}list(t={},r){return Tn(t)?this.list({},t):this._client.getAPIList("/batches",c_,{query:t,...r})}cancel(t,r){return this._client.post(`/batches/${t}/cancel`,r)}}class c_ extends ba{}l_.BatchesPage=c_;class f_ extends Vt{create(t,r){return this._client.post("/assistants",{body:t,...r,headers:{"OpenAI-Beta":"assistants=v2",...r==null?void 0:r.headers}})}retrieve(t,r){return this._client.get(`/assistants/${t}`,{...r,headers:{"OpenAI-Beta":"assistants=v2",...r==null?void 0:r.headers}})}update(t,r,n){return this._client.post(`/assistants/${t}`,{body:r,...n,headers:{"OpenAI-Beta":"assistants=v2",...n==null?void 0:n.headers}})}list(t={},r){return Tn(t)?this.list({},t):this._client.getAPIList("/assistants",d_,{query:t,...r,headers:{"OpenAI-Beta":"assistants=v2",...r==null?void 0:r.headers}})}del(t,r){return this._client.delete(`/assistants/${t}`,{...r,headers:{"OpenAI-Beta":"assistants=v2",...r==null?void 0:r.headers}})}}class d_ extends ba{}f_.AssistantsPage=d_;function E5(e){return typeof e.parse=="function"}const uc=e=>(e==null?void 0:e.role)==="assistant",C5=e=>(e==null?void 0:e.role)==="function",k5=e=>(e==null?void 0:e.role)==="tool";var Ai=function(e,t,r,n,a){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?a.call(e,r):a?a.value=r:t.set(e,r),r},Tr=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},h_,lp,cp,U0,z0,fp,H0,Hs,W0,dp,hp,lc,T5;class A5{constructor(){h_.add(this),this.controller=new AbortController,lp.set(this,void 0),cp.set(this,()=>{}),U0.set(this,()=>{}),z0.set(this,void 0),fp.set(this,()=>{}),H0.set(this,()=>{}),Hs.set(this,{}),W0.set(this,!1),dp.set(this,!1),hp.set(this,!1),lc.set(this,!1),Ai(this,lp,new Promise((t,r)=>{Ai(this,cp,t,"f"),Ai(this,U0,r,"f")}),"f"),Ai(this,z0,new Promise((t,r)=>{Ai(this,fp,t,"f"),Ai(this,H0,r,"f")}),"f"),Tr(this,lp,"f").catch(()=>{}),Tr(this,z0,"f").catch(()=>{})}_run(t){setTimeout(()=>{t().then(()=>{this._emitFinal(),this._emit("end")},Tr(this,h_,"m",T5).bind(this))},0)}_connected(){this.ended||(Tr(this,cp,"f").call(this),this._emit("connect"))}get ended(){return Tr(this,W0,"f")}get errored(){return Tr(this,dp,"f")}get aborted(){return Tr(this,hp,"f")}abort(){this.controller.abort()}on(t,r){return(Tr(this,Hs,"f")[t]||(Tr(this,Hs,"f")[t]=[])).push({listener:r}),this}off(t,r){const n=Tr(this,Hs,"f")[t];if(!n)return this;const a=n.findIndex(i=>i.listener===r);return a>=0&&n.splice(a,1),this}once(t,r){return(Tr(this,Hs,"f")[t]||(Tr(this,Hs,"f")[t]=[])).push({listener:r,once:!0}),this}emitted(t){return new Promise((r,n)=>{Ai(this,lc,!0,"f"),t!=="error"&&this.once("error",n),this.once(t,r)})}async done(){Ai(this,lc,!0,"f"),await Tr(this,z0,"f")}_emit(t,...r){if(Tr(this,W0,"f"))return;t==="end"&&(Ai(this,W0,!0,"f"),Tr(this,fp,"f").call(this));const n=Tr(this,Hs,"f")[t];if(n&&(Tr(this,Hs,"f")[t]=n.filter(a=>!a.once),n.forEach(({listener:a})=>a(...r))),t==="abort"){const a=r[0];!Tr(this,lc,"f")&&!(n!=null&&n.length)&&Promise.reject(a),Tr(this,U0,"f").call(this,a),Tr(this,H0,"f").call(this,a),this._emit("end");return}if(t==="error"){const a=r[0];!Tr(this,lc,"f")&&!(n!=null&&n.length)&&Promise.reject(a),Tr(this,U0,"f").call(this,a),Tr(this,H0,"f").call(this,a),this._emit("end")}}_emitFinal(){}}lp=new WeakMap,cp=new WeakMap,U0=new WeakMap,z0=new WeakMap,fp=new WeakMap,H0=new WeakMap,Hs=new WeakMap,W0=new WeakMap,dp=new WeakMap,hp=new WeakMap,lc=new WeakMap,h_=new WeakSet,T5=function(t){if(Ai(this,dp,!0,"f"),t instanceof Error&&t.name==="AbortError"&&(t=new Ti),t instanceof Ti)return Ai(this,hp,!0,"f"),this._emit("abort",t);if(t instanceof Nt)return this._emit("error",t);if(t instanceof Error){const r=new Nt(t.message);return r.cause=t,this._emit("error",r)}return this._emit("error",new Nt(String(t)))};function F5(e){return(e==null?void 0:e.$brand)==="auto-parseable-response-format"}function V0(e){return(e==null?void 0:e.$brand)==="auto-parseable-tool"}function MK(e,t){return!t||!O5(t)?{...e,choices:e.choices.map(r=>({...r,message:{...r.message,parsed:null,...r.message.tool_calls?{tool_calls:r.message.tool_calls}:void 0}}))}:p_(e,t)}function p_(e,t){const r=e.choices.map(n=>{var a;if(n.finish_reason==="length")throw new n5;if(n.finish_reason==="content_filter")throw new a5;return{...n,message:{...n.message,...n.message.tool_calls?{tool_calls:((a=n.message.tool_calls)==null?void 0:a.map(i=>BK(t,i)))??void 0}:void 0,parsed:n.message.content&&!n.message.refusal?LK(t,n.message.content):null}}});return{...e,choices:r}}function LK(e,t){var r,n;return((r=e.response_format)==null?void 0:r.type)!=="json_schema"?null:((n=e.response_format)==null?void 0:n.type)==="json_schema"?"$parseRaw"in e.response_format?e.response_format.$parseRaw(t):JSON.parse(t):null}function BK(e,t){var n;const r=(n=e.tools)==null?void 0:n.find(a=>{var i;return((i=a.function)==null?void 0:i.name)===t.function.name});return{...t,function:{...t.function,parsed_arguments:V0(r)?r.$parseRaw(t.function.arguments):r!=null&&r.function.strict?JSON.parse(t.function.arguments):null}}}function jK(e,t){var n;if(!e)return!1;const r=(n=e.tools)==null?void 0:n.find(a=>{var i;return((i=a.function)==null?void 0:i.name)===t.function.name});return V0(r)||(r==null?void 0:r.function.strict)||!1}function O5(e){var t;return F5(e.response_format)?!0:((t=e.tools)==null?void 0:t.some(r=>V0(r)||r.type==="function"&&r.function.strict===!0))??!1}function $K(e){for(const t of e??[]){if(t.type!=="function")throw new Nt(`Currently only \`function\` tool types support auto-parsing; Received \`${t.type}\``);if(t.function.strict!==!0)throw new Nt(`The \`${t.function.name}\` tool is not marked with \`strict: true\`. Only strict function tools can be auto-parsed`)}}var na=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},An,m_,pp,g_,v_,x_,P5,__;const D5=10;class R5 extends A5{constructor(){super(...arguments),An.add(this),this._chatCompletions=[],this.messages=[]}_addChatCompletion(t){var n;this._chatCompletions.push(t),this._emit("chatCompletion",t);const r=(n=t.choices[0])==null?void 0:n.message;return r&&this._addMessage(r),t}_addMessage(t,r=!0){if("content"in t||(t.content=null),this.messages.push(t),r){if(this._emit("message",t),(C5(t)||k5(t))&&t.content)this._emit("functionCallResult",t.content);else if(uc(t)&&t.function_call)this._emit("functionCall",t.function_call);else if(uc(t)&&t.tool_calls)for(const n of t.tool_calls)n.type==="function"&&this._emit("functionCall",n.function)}}async finalChatCompletion(){await this.done();const t=this._chatCompletions[this._chatCompletions.length-1];if(!t)throw new Nt("stream ended without producing a ChatCompletion");return t}async finalContent(){return await this.done(),na(this,An,"m",m_).call(this)}async finalMessage(){return await this.done(),na(this,An,"m",pp).call(this)}async finalFunctionCall(){return await this.done(),na(this,An,"m",g_).call(this)}async finalFunctionCallResult(){return await this.done(),na(this,An,"m",v_).call(this)}async totalUsage(){return await this.done(),na(this,An,"m",x_).call(this)}allChatCompletions(){return[...this._chatCompletions]}_emitFinal(){const t=this._chatCompletions[this._chatCompletions.length-1];t&&this._emit("finalChatCompletion",t);const r=na(this,An,"m",pp).call(this);r&&this._emit("finalMessage",r);const n=na(this,An,"m",m_).call(this);n&&this._emit("finalContent",n);const a=na(this,An,"m",g_).call(this);a&&this._emit("finalFunctionCall",a);const i=na(this,An,"m",v_).call(this);i!=null&&this._emit("finalFunctionCallResult",i),this._chatCompletions.some(s=>s.usage)&&this._emit("totalUsage",na(this,An,"m",x_).call(this))}async _createChatCompletion(t,r,n){const a=n==null?void 0:n.signal;a&&(a.aborted&&this.controller.abort(),a.addEventListener("abort",()=>this.controller.abort())),na(this,An,"m",P5).call(this,r);const i=await t.chat.completions.create({...r,stream:!1},{...n,signal:this.controller.signal});return this._connected(),this._addChatCompletion(p_(i,r))}async _runChatCompletion(t,r,n){for(const a of r.messages)this._addMessage(a,!1);return await this._createChatCompletion(t,r,n)}async _runFunctions(t,r,n){var p;const a="function",{function_call:i="auto",stream:s,...o}=r,u=typeof i!="string"&&(i==null?void 0:i.name),{maxChatCompletions:l=D5}=n||{},f={};for(const v of r.functions)f[v.name||v.function.name]=v;const d=r.functions.map(v=>({name:v.name||v.function.name,parameters:v.parameters,description:v.description}));for(const v of r.messages)this._addMessage(v,!1);for(let v=0;v<l;++v){const x=(p=(await this._createChatCompletion(t,{...o,function_call:i,functions:d,messages:[...this.messages]},n)).choices[0])==null?void 0:p.message;if(!x)throw new Nt("missing message in ChatCompletion response");if(!x.function_call)return;const{name:w,arguments:C}=x.function_call,E=f[w];if(E){if(u&&u!==w){const y=`Invalid function_call: ${JSON.stringify(w)}. ${JSON.stringify(u)} requested. Please try again`;this._addMessage({role:a,name:w,content:y});continue}}else{const y=`Invalid function_call: ${JSON.stringify(w)}. Available options are: ${d.map(S=>JSON.stringify(S.name)).join(", ")}. Please try again`;this._addMessage({role:a,name:w,content:y});continue}let b;try{b=E5(E)?await E.parse(C):C}catch(y){this._addMessage({role:a,name:w,content:y instanceof Error?y.message:String(y)});continue}const h=await E.function(b,this),g=na(this,An,"m",__).call(this,h);if(this._addMessage({role:a,name:w,content:g}),u)return}}async _runTools(t,r,n){var v,_,x;const a="tool",{tool_choice:i="auto",stream:s,...o}=r,u=typeof i!="string"&&((v=i==null?void 0:i.function)==null?void 0:v.name),{maxChatCompletions:l=D5}=n||{},f=r.tools.map(w=>{if(V0(w)){if(!w.$callback)throw new Nt("Tool given to `.runTools()` that does not have an associated function");return{type:"function",function:{function:w.$callback,name:w.function.name,description:w.function.description||"",parameters:w.function.parameters,parse:w.$parseRaw,strict:!0}}}return w}),d={};for(const w of f)w.type==="function"&&(d[w.function.name||w.function.function.name]=w.function);const p="tools"in r?f.map(w=>w.type==="function"?{type:"function",function:{name:w.function.name||w.function.function.name,parameters:w.function.parameters,description:w.function.description,strict:w.function.strict}}:w):void 0;for(const w of r.messages)this._addMessage(w,!1);for(let w=0;w<l;++w){const E=(_=(await this._createChatCompletion(t,{...o,tool_choice:i,tools:p,messages:[...this.messages]},n)).choices[0])==null?void 0:_.message;if(!E)throw new Nt("missing message in ChatCompletion response");if(!((x=E.tool_calls)!=null&&x.length))return;for(const b of E.tool_calls){if(b.type!=="function")continue;const h=b.id,{name:g,arguments:y}=b.function,S=d[g];if(S){if(u&&u!==g){const P=`Invalid tool_call: ${JSON.stringify(g)}. ${JSON.stringify(u)} requested. Please try again`;this._addMessage({role:a,tool_call_id:h,content:P});continue}}else{const P=`Invalid tool_call: ${JSON.stringify(g)}. Available options are: ${Object.keys(d).map(j=>JSON.stringify(j)).join(", ")}. Please try again`;this._addMessage({role:a,tool_call_id:h,content:P});continue}let A;try{A=E5(S)?await S.parse(y):y}catch(P){const j=P instanceof Error?P.message:String(P);this._addMessage({role:a,tool_call_id:h,content:j});continue}const k=await S.function(A,this),F=na(this,An,"m",__).call(this,k);if(this._addMessage({role:a,tool_call_id:h,content:F}),u)return}}}}An=new WeakSet,m_=function(){return na(this,An,"m",pp).call(this).content??null},pp=function(){let t=this.messages.length;for(;t-- >0;){const r=this.messages[t];if(uc(r)){const{function_call:n,...a}=r,i={...a,content:r.content??null,refusal:r.refusal??null};return n&&(i.function_call=n),i}}throw new Nt("stream ended without producing a ChatCompletionMessage with role=assistant")},g_=function(){var t,r;for(let n=this.messages.length-1;n>=0;n--){const a=this.messages[n];if(uc(a)&&(a!=null&&a.function_call))return a.function_call;if(uc(a)&&((t=a==null?void 0:a.tool_calls)!=null&&t.length))return(r=a.tool_calls.at(-1))==null?void 0:r.function}},v_=function(){for(let t=this.messages.length-1;t>=0;t--){const r=this.messages[t];if(C5(r)&&r.content!=null||k5(r)&&r.content!=null&&typeof r.content=="string"&&this.messages.some(n=>{var a;return n.role==="assistant"&&((a=n.tool_calls)==null?void 0:a.some(i=>i.type==="function"&&i.id===r.tool_call_id))}))return r.content}},x_=function(){const t={completion_tokens:0,prompt_tokens:0,total_tokens:0};for(const{usage:r}of this._chatCompletions)r&&(t.completion_tokens+=r.completion_tokens,t.prompt_tokens+=r.prompt_tokens,t.total_tokens+=r.total_tokens);return t},P5=function(t){if(t.n!=null&&t.n>1)throw new Nt("ChatCompletion convenience helpers only support n=1 at this time. To use n>1, please use chat.completions.create() directly.")},__=function(t){return typeof t=="string"?t:t===void 0?"undefined":JSON.stringify(t)};class q0 extends R5{static runFunctions(t,r,n){const a=new q0,i={...n,headers:{...n==null?void 0:n.headers,"X-Stainless-Helper-Method":"runFunctions"}};return a._run(()=>a._runFunctions(t,r,i)),a}static runTools(t,r,n){const a=new q0,i={...n,headers:{...n==null?void 0:n.headers,"X-Stainless-Helper-Method":"runTools"}};return a._run(()=>a._runTools(t,r,i)),a}_addMessage(t,r=!0){super._addMessage(t,r),uc(t)&&t.content&&this._emit("content",t.content)}}const I5=1,N5=2,M5=4,L5=8,B5=16,j5=32,$5=64,U5=128,z5=256,H5=U5|z5,W5=B5|j5|H5|$5,V5=I5|N5|W5,q5=M5|L5,UK=V5|q5,an={STR:I5,NUM:N5,ARR:M5,OBJ:L5,NULL:B5,BOOL:j5,NAN:$5,INFINITY:U5,MINUS_INFINITY:z5,INF:H5,SPECIAL:W5,ATOM:V5,COLLECTION:q5,ALL:UK};class zK extends Error{}class HK extends Error{}function WK(e,t=an.ALL){if(typeof e!="string")throw new TypeError(`expecting str, got ${typeof e}`);if(!e.trim())throw new Error(`${e} is empty`);return VK(e.trim(),t)}const VK=(e,t)=>{const r=e.length;let n=0;const a=p=>{throw new zK(`${p} at position ${n}`)},i=p=>{throw new HK(`${p} at position ${n}`)},s=()=>(d(),n>=r&&a("Unexpected end of input"),e[n]==='"'?o():e[n]==="{"?u():e[n]==="["?l():e.substring(n,n+4)==="null"||an.NULL&t&&r-n<4&&"null".startsWith(e.substring(n))?(n+=4,null):e.substring(n,n+4)==="true"||an.BOOL&t&&r-n<4&&"true".startsWith(e.substring(n))?(n+=4,!0):e.substring(n,n+5)==="false"||an.BOOL&t&&r-n<5&&"false".startsWith(e.substring(n))?(n+=5,!1):e.substring(n,n+8)==="Infinity"||an.INFINITY&t&&r-n<8&&"Infinity".startsWith(e.substring(n))?(n+=8,1/0):e.substring(n,n+9)==="-Infinity"||an.MINUS_INFINITY&t&&1<r-n&&r-n<9&&"-Infinity".startsWith(e.substring(n))?(n+=9,-1/0):e.substring(n,n+3)==="NaN"||an.NAN&t&&r-n<3&&"NaN".startsWith(e.substring(n))?(n+=3,NaN):f()),o=()=>{const p=n;let v=!1;for(n++;n<r&&(e[n]!=='"'||v&&e[n-1]==="\\");)v=e[n]==="\\"?!v:!1,n++;if(e.charAt(n)=='"')try{return JSON.parse(e.substring(p,++n-Number(v)))}catch(_){i(String(_))}else if(an.STR&t)try{return JSON.parse(e.substring(p,n-Number(v))+'"')}catch{return JSON.parse(e.substring(p,e.lastIndexOf("\\"))+'"')}a("Unterminated string literal")},u=()=>{n++,d();const p={};try{for(;e[n]!=="}";){if(d(),n>=r&&an.OBJ&t)return p;const v=o();d(),n++;try{const _=s();Object.defineProperty(p,v,{value:_,writable:!0,enumerable:!0,configurable:!0})}catch(_){if(an.OBJ&t)return p;throw _}d(),e[n]===","&&n++}}catch{if(an.OBJ&t)return p;a("Expected '}' at end of object")}return n++,p},l=()=>{n++;const p=[];try{for(;e[n]!=="]";)p.push(s()),d(),e[n]===","&&n++}catch{if(an.ARR&t)return p;a("Expected ']' at end of array")}return n++,p},f=()=>{if(n===0){e==="-"&&an.NUM&t&&a("Not sure what '-' is");try{return JSON.parse(e)}catch(v){if(an.NUM&t)try{return e[e.length-1]==="."?JSON.parse(e.substring(0,e.lastIndexOf("."))):JSON.parse(e.substring(0,e.lastIndexOf("e")))}catch{}i(String(v))}}const p=n;for(e[n]==="-"&&n++;e[n]&&!",]}".includes(e[n]);)n++;n==r&&!(an.NUM&t)&&a("Unterminated number literal");try{return JSON.parse(e.substring(p,n))}catch{e.substring(p,n)==="-"&&an.NUM&t&&a("Not sure what '-' is");try{return JSON.parse(e.substring(p,e.lastIndexOf("e")))}catch(_){i(String(_))}}},d=()=>{for(;n<r&&`
501
+ \r `.includes(e[n]);)n++};return s()},G5=e=>WK(e,an.ALL^an.NUM);var cc=function(e,t,r,n,a){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?a.call(e,r):a?a.value=r:t.set(e,r),r},ir=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Zr,Ws,fc,Co,y_,mp,b_,w_,S_,gp,E_,Y5;class G0 extends R5{constructor(t){super(),Zr.add(this),Ws.set(this,void 0),fc.set(this,void 0),Co.set(this,void 0),cc(this,Ws,t,"f"),cc(this,fc,[],"f")}get currentChatCompletionSnapshot(){return ir(this,Co,"f")}static fromReadableStream(t){const r=new G0(null);return r._run(()=>r._fromReadableStream(t)),r}static createChatCompletion(t,r,n){const a=new G0(r);return a._run(()=>a._runChatCompletion(t,{...r,stream:!0},{...n,headers:{...n==null?void 0:n.headers,"X-Stainless-Helper-Method":"stream"}})),a}async _createChatCompletion(t,r,n){var s;super._createChatCompletion;const a=n==null?void 0:n.signal;a&&(a.aborted&&this.controller.abort(),a.addEventListener("abort",()=>this.controller.abort())),ir(this,Zr,"m",y_).call(this);const i=await t.chat.completions.create({...r,stream:!0},{...n,signal:this.controller.signal});this._connected();for await(const o of i)ir(this,Zr,"m",b_).call(this,o);if((s=i.controller.signal)!=null&&s.aborted)throw new Ti;return this._addChatCompletion(ir(this,Zr,"m",gp).call(this))}async _fromReadableStream(t,r){var s;const n=r==null?void 0:r.signal;n&&(n.aborted&&this.controller.abort(),n.addEventListener("abort",()=>this.controller.abort())),ir(this,Zr,"m",y_).call(this),this._connected();const a=ts.fromReadableStream(t,this.controller);let i;for await(const o of a)i&&i!==o.id&&this._addChatCompletion(ir(this,Zr,"m",gp).call(this)),ir(this,Zr,"m",b_).call(this,o),i=o.id;if((s=a.controller.signal)!=null&&s.aborted)throw new Ti;return this._addChatCompletion(ir(this,Zr,"m",gp).call(this))}[(Ws=new WeakMap,fc=new WeakMap,Co=new WeakMap,Zr=new WeakSet,y_=function(){this.ended||cc(this,Co,void 0,"f")},mp=function(r){let n=ir(this,fc,"f")[r.index];return n||(n={content_done:!1,refusal_done:!1,logprobs_content_done:!1,logprobs_refusal_done:!1,done_tool_calls:new Set,current_tool_call_index:null},ir(this,fc,"f")[r.index]=n,n)},b_=function(r){var a,i,s,o,u,l,f,d,p,v,_,x,w,C,E;if(this.ended)return;const n=ir(this,Zr,"m",Y5).call(this,r);this._emit("chunk",r,n);for(const b of r.choices){const h=n.choices[b.index];b.delta.content!=null&&((a=h.message)==null?void 0:a.role)==="assistant"&&((i=h.message)!=null&&i.content)&&(this._emit("content",b.delta.content,h.message.content),this._emit("content.delta",{delta:b.delta.content,snapshot:h.message.content,parsed:h.message.parsed})),b.delta.refusal!=null&&((s=h.message)==null?void 0:s.role)==="assistant"&&((o=h.message)!=null&&o.refusal)&&this._emit("refusal.delta",{delta:b.delta.refusal,snapshot:h.message.refusal}),((u=b.logprobs)==null?void 0:u.content)!=null&&((l=h.message)==null?void 0:l.role)==="assistant"&&this._emit("logprobs.content.delta",{content:(f=b.logprobs)==null?void 0:f.content,snapshot:((d=h.logprobs)==null?void 0:d.content)??[]}),((p=b.logprobs)==null?void 0:p.refusal)!=null&&((v=h.message)==null?void 0:v.role)==="assistant"&&this._emit("logprobs.refusal.delta",{refusal:(_=b.logprobs)==null?void 0:_.refusal,snapshot:((x=h.logprobs)==null?void 0:x.refusal)??[]});const g=ir(this,Zr,"m",mp).call(this,h);h.finish_reason&&(ir(this,Zr,"m",S_).call(this,h),g.current_tool_call_index!=null&&ir(this,Zr,"m",w_).call(this,h,g.current_tool_call_index));for(const y of b.delta.tool_calls??[])g.current_tool_call_index!==y.index&&(ir(this,Zr,"m",S_).call(this,h),g.current_tool_call_index!=null&&ir(this,Zr,"m",w_).call(this,h,g.current_tool_call_index)),g.current_tool_call_index=y.index;for(const y of b.delta.tool_calls??[]){const S=(w=h.message.tool_calls)==null?void 0:w[y.index];S!=null&&S.type&&((S==null?void 0:S.type)==="function"?this._emit("tool_calls.function.arguments.delta",{name:(C=S.function)==null?void 0:C.name,index:y.index,arguments:S.function.arguments,parsed_arguments:S.function.parsed_arguments,arguments_delta:((E=y.function)==null?void 0:E.arguments)??""}):(S==null||S.type,void 0))}}},w_=function(r,n){var s,o,u;if(ir(this,Zr,"m",mp).call(this,r).done_tool_calls.has(n))return;const i=(s=r.message.tool_calls)==null?void 0:s[n];if(!i)throw new Error("no tool call snapshot");if(!i.type)throw new Error("tool call snapshot missing `type`");if(i.type==="function"){const l=(u=(o=ir(this,Ws,"f"))==null?void 0:o.tools)==null?void 0:u.find(f=>f.type==="function"&&f.function.name===i.function.name);this._emit("tool_calls.function.arguments.done",{name:i.function.name,index:n,arguments:i.function.arguments,parsed_arguments:V0(l)?l.$parseRaw(i.function.arguments):l!=null&&l.function.strict?JSON.parse(i.function.arguments):null})}else i.type},S_=function(r){var a,i;const n=ir(this,Zr,"m",mp).call(this,r);if(r.message.content&&!n.content_done){n.content_done=!0;const s=ir(this,Zr,"m",E_).call(this);this._emit("content.done",{content:r.message.content,parsed:s?s.$parseRaw(r.message.content):null})}r.message.refusal&&!n.refusal_done&&(n.refusal_done=!0,this._emit("refusal.done",{refusal:r.message.refusal})),(a=r.logprobs)!=null&&a.content&&!n.logprobs_content_done&&(n.logprobs_content_done=!0,this._emit("logprobs.content.done",{content:r.logprobs.content})),(i=r.logprobs)!=null&&i.refusal&&!n.logprobs_refusal_done&&(n.logprobs_refusal_done=!0,this._emit("logprobs.refusal.done",{refusal:r.logprobs.refusal}))},gp=function(){if(this.ended)throw new Nt("stream has ended, this shouldn't happen");const r=ir(this,Co,"f");if(!r)throw new Nt("request ended without sending any chunks");return cc(this,Co,void 0,"f"),cc(this,fc,[],"f"),qK(r,ir(this,Ws,"f"))},E_=function(){var n;const r=(n=ir(this,Ws,"f"))==null?void 0:n.response_format;return F5(r)?r:null},Y5=function(r){var n,a,i,s;let o=ir(this,Co,"f");const{choices:u,...l}=r;o?Object.assign(o,l):o=cc(this,Co,{...l,choices:[]},"f");for(const{delta:f,finish_reason:d,index:p,logprobs:v=null,..._}of r.choices){let x=o.choices[p];if(x||(x=o.choices[p]={finish_reason:d,index:p,message:{},logprobs:v,..._}),v)if(!x.logprobs)x.logprobs=Object.assign({},v);else{const{content:y,refusal:S,...A}=v;Object.assign(x.logprobs,A),y&&((n=x.logprobs).content??(n.content=[]),x.logprobs.content.push(...y)),S&&((a=x.logprobs).refusal??(a.refusal=[]),x.logprobs.refusal.push(...S))}if(d&&(x.finish_reason=d,ir(this,Ws,"f")&&O5(ir(this,Ws,"f")))){if(d==="length")throw new n5;if(d==="content_filter")throw new a5}if(Object.assign(x,_),!f)continue;const{content:w,refusal:C,function_call:E,role:b,tool_calls:h,...g}=f;if(Object.assign(x.message,g),C&&(x.message.refusal=(x.message.refusal||"")+C),b&&(x.message.role=b),E&&(x.message.function_call?(E.name&&(x.message.function_call.name=E.name),E.arguments&&((i=x.message.function_call).arguments??(i.arguments=""),x.message.function_call.arguments+=E.arguments)):x.message.function_call=E),w&&(x.message.content=(x.message.content||"")+w,!x.message.refusal&&ir(this,Zr,"m",E_).call(this)&&(x.message.parsed=G5(x.message.content))),h){x.message.tool_calls||(x.message.tool_calls=[]);for(const{index:y,id:S,type:A,function:k,...F}of h){const P=(s=x.message.tool_calls)[y]??(s[y]={});Object.assign(P,F),S&&(P.id=S),A&&(P.type=A),k&&(P.function??(P.function={name:k.name??"",arguments:""})),k!=null&&k.name&&(P.function.name=k.name),k!=null&&k.arguments&&(P.function.arguments+=k.arguments,jK(ir(this,Ws,"f"),P)&&(P.function.parsed_arguments=G5(P.function.arguments)))}}}return o},Symbol.asyncIterator)](){const t=[],r=[];let n=!1;return this.on("chunk",a=>{const i=r.shift();i?i.resolve(a):t.push(a)}),this.on("end",()=>{n=!0;for(const a of r)a.resolve(void 0);r.length=0}),this.on("abort",a=>{n=!0;for(const i of r)i.reject(a);r.length=0}),this.on("error",a=>{n=!0;for(const i of r)i.reject(a);r.length=0}),{next:async()=>t.length?{value:t.shift(),done:!1}:n?{value:void 0,done:!0}:new Promise((i,s)=>r.push({resolve:i,reject:s})).then(i=>i?{value:i,done:!1}:{value:void 0,done:!0}),return:async()=>(this.abort(),{value:void 0,done:!0})}}toReadableStream(){return new ts(this[Symbol.asyncIterator].bind(this),this.controller).toReadableStream()}}function qK(e,t){const{id:r,choices:n,created:a,model:i,system_fingerprint:s,...o}=e,u={...o,id:r,choices:n.map(({message:l,finish_reason:f,index:d,logprobs:p,...v})=>{if(!f)throw new Nt(`missing finish_reason for choice ${d}`);const{content:_=null,function_call:x,tool_calls:w,...C}=l,E=l.role;if(!E)throw new Nt(`missing role for choice ${d}`);if(x){const{arguments:b,name:h}=x;if(b==null)throw new Nt(`missing function_call.arguments for choice ${d}`);if(!h)throw new Nt(`missing function_call.name for choice ${d}`);return{...v,message:{content:_,function_call:{arguments:b,name:h},role:E,refusal:l.refusal??null},finish_reason:f,index:d,logprobs:p}}return w?{...v,index:d,finish_reason:f,logprobs:p,message:{...C,role:E,content:_,refusal:l.refusal??null,tool_calls:w.map((b,h)=>{const{function:g,type:y,id:S,...A}=b,{arguments:k,name:F,...P}=g||{};if(S==null)throw new Nt(`missing choices[${d}].tool_calls[${h}].id
502
+ ${vp(e)}`);if(y==null)throw new Nt(`missing choices[${d}].tool_calls[${h}].type
503
+ ${vp(e)}`);if(F==null)throw new Nt(`missing choices[${d}].tool_calls[${h}].function.name
504
+ ${vp(e)}`);if(k==null)throw new Nt(`missing choices[${d}].tool_calls[${h}].function.arguments
505
+ ${vp(e)}`);return{...A,id:S,type:y,function:{...P,name:F,arguments:k}}})}}:{...v,message:{...C,content:_,role:E,refusal:l.refusal??null},finish_reason:f,index:d,logprobs:p}}),created:a,model:i,object:"chat.completion",...s?{system_fingerprint:s}:{}};return MK(u,t)}function vp(e){return JSON.stringify(e)}function Wxe(e){}class dc extends G0{static fromReadableStream(t){const r=new dc(null);return r._run(()=>r._fromReadableStream(t)),r}static runFunctions(t,r,n){const a=new dc(null),i={...n,headers:{...n==null?void 0:n.headers,"X-Stainless-Helper-Method":"runFunctions"}};return a._run(()=>a._runFunctions(t,r,i)),a}static runTools(t,r,n){const a=new dc(r),i={...n,headers:{...n==null?void 0:n.headers,"X-Stainless-Helper-Method":"runTools"}};return a._run(()=>a._runTools(t,r,i)),a}}let X5=class extends Vt{parse(t,r){return $K(t.tools),this._client.chat.completions.create(t,{...r,headers:{...r==null?void 0:r.headers,"X-Stainless-Helper-Method":"beta.chat.completions.parse"}})._thenUnwrap(n=>p_(n,t))}runFunctions(t,r){return t.stream?dc.runFunctions(this._client,t,r):q0.runFunctions(this._client,t,r)}runTools(t,r){return t.stream?dc.runTools(this._client,t,r):q0.runTools(this._client,t,r)}stream(t,r){return G0.createChatCompletion(this._client,t,r)}};class C_ extends Vt{constructor(){super(...arguments),this.completions=new X5(this._client)}}(function(e){e.Completions=X5})(C_||(C_={}));class K5 extends Vt{create(t,r){return this._client.post("/realtime/sessions",{body:t,...r,headers:{"OpenAI-Beta":"assistants=v2",...r==null?void 0:r.headers}})}}class k_ extends Vt{constructor(){super(...arguments),this.sessions=new K5(this._client)}}k_.Sessions=K5;var rt=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},wa=function(e,t,r,n,a){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?a.call(e,r):a?a.value=r:t.set(e,r),r},_n,T_,rs,xp,Fi,Mu,hc,Lu,_p,Sa,yp,bp,Y0,X0,K0,Z5,J5,Q5,eA,tA,rA,nA;class Oi extends A5{constructor(){super(...arguments),_n.add(this),T_.set(this,[]),rs.set(this,{}),xp.set(this,{}),Fi.set(this,void 0),Mu.set(this,void 0),hc.set(this,void 0),Lu.set(this,void 0),_p.set(this,void 0),Sa.set(this,void 0),yp.set(this,void 0),bp.set(this,void 0),Y0.set(this,void 0)}[(T_=new WeakMap,rs=new WeakMap,xp=new WeakMap,Fi=new WeakMap,Mu=new WeakMap,hc=new WeakMap,Lu=new WeakMap,_p=new WeakMap,Sa=new WeakMap,yp=new WeakMap,bp=new WeakMap,Y0=new WeakMap,_n=new WeakSet,Symbol.asyncIterator)](){const t=[],r=[];let n=!1;return this.on("event",a=>{const i=r.shift();i?i.resolve(a):t.push(a)}),this.on("end",()=>{n=!0;for(const a of r)a.resolve(void 0);r.length=0}),this.on("abort",a=>{n=!0;for(const i of r)i.reject(a);r.length=0}),this.on("error",a=>{n=!0;for(const i of r)i.reject(a);r.length=0}),{next:async()=>t.length?{value:t.shift(),done:!1}:n?{value:void 0,done:!0}:new Promise((i,s)=>r.push({resolve:i,reject:s})).then(i=>i?{value:i,done:!1}:{value:void 0,done:!0}),return:async()=>(this.abort(),{value:void 0,done:!0})}}static fromReadableStream(t){const r=new Oi;return r._run(()=>r._fromReadableStream(t)),r}async _fromReadableStream(t,r){var i;const n=r==null?void 0:r.signal;n&&(n.aborted&&this.controller.abort(),n.addEventListener("abort",()=>this.controller.abort())),this._connected();const a=ts.fromReadableStream(t,this.controller);for await(const s of a)rt(this,_n,"m",X0).call(this,s);if((i=a.controller.signal)!=null&&i.aborted)throw new Ti;return this._addRun(rt(this,_n,"m",K0).call(this))}toReadableStream(){return new ts(this[Symbol.asyncIterator].bind(this),this.controller).toReadableStream()}static createToolAssistantStream(t,r,n,a,i){const s=new Oi;return s._run(()=>s._runToolAssistantStream(t,r,n,a,{...i,headers:{...i==null?void 0:i.headers,"X-Stainless-Helper-Method":"stream"}})),s}async _createToolAssistantStream(t,r,n,a,i){var l;const s=i==null?void 0:i.signal;s&&(s.aborted&&this.controller.abort(),s.addEventListener("abort",()=>this.controller.abort()));const o={...a,stream:!0},u=await t.submitToolOutputs(r,n,o,{...i,signal:this.controller.signal});this._connected();for await(const f of u)rt(this,_n,"m",X0).call(this,f);if((l=u.controller.signal)!=null&&l.aborted)throw new Ti;return this._addRun(rt(this,_n,"m",K0).call(this))}static createThreadAssistantStream(t,r,n){const a=new Oi;return a._run(()=>a._threadAssistantStream(t,r,{...n,headers:{...n==null?void 0:n.headers,"X-Stainless-Helper-Method":"stream"}})),a}static createAssistantStream(t,r,n,a){const i=new Oi;return i._run(()=>i._runAssistantStream(t,r,n,{...a,headers:{...a==null?void 0:a.headers,"X-Stainless-Helper-Method":"stream"}})),i}currentEvent(){return rt(this,yp,"f")}currentRun(){return rt(this,bp,"f")}currentMessageSnapshot(){return rt(this,Fi,"f")}currentRunStepSnapshot(){return rt(this,Y0,"f")}async finalRunSteps(){return await this.done(),Object.values(rt(this,rs,"f"))}async finalMessages(){return await this.done(),Object.values(rt(this,xp,"f"))}async finalRun(){if(await this.done(),!rt(this,Mu,"f"))throw Error("Final run was not received.");return rt(this,Mu,"f")}async _createThreadAssistantStream(t,r,n){var o;const a=n==null?void 0:n.signal;a&&(a.aborted&&this.controller.abort(),a.addEventListener("abort",()=>this.controller.abort()));const i={...r,stream:!0},s=await t.createAndRun(i,{...n,signal:this.controller.signal});this._connected();for await(const u of s)rt(this,_n,"m",X0).call(this,u);if((o=s.controller.signal)!=null&&o.aborted)throw new Ti;return this._addRun(rt(this,_n,"m",K0).call(this))}async _createAssistantStream(t,r,n,a){var u;const i=a==null?void 0:a.signal;i&&(i.aborted&&this.controller.abort(),i.addEventListener("abort",()=>this.controller.abort()));const s={...n,stream:!0},o=await t.create(r,s,{...a,signal:this.controller.signal});this._connected();for await(const l of o)rt(this,_n,"m",X0).call(this,l);if((u=o.controller.signal)!=null&&u.aborted)throw new Ti;return this._addRun(rt(this,_n,"m",K0).call(this))}static accumulateDelta(t,r){for(const[n,a]of Object.entries(r)){if(!t.hasOwnProperty(n)){t[n]=a;continue}let i=t[n];if(i==null){t[n]=a;continue}if(n==="index"||n==="type"){t[n]=a;continue}if(typeof i=="string"&&typeof a=="string")i+=a;else if(typeof i=="number"&&typeof a=="number")i+=a;else if(u_(i)&&u_(a))i=this.accumulateDelta(i,a);else if(Array.isArray(i)&&Array.isArray(a)){if(i.every(s=>typeof s=="string"||typeof s=="number")){i.push(...a);continue}for(const s of a){if(!u_(s))throw new Error(`Expected array delta entry to be an object but got: ${s}`);const o=s.index;if(o==null)throw console.error(s),new Error("Expected array delta entry to have an `index` property");if(typeof o!="number")throw new Error(`Expected array delta entry \`index\` property to be a number but got ${o}`);const u=i[o];u==null?i.push(s):i[o]=this.accumulateDelta(u,s)}continue}else throw Error(`Unhandled record type: ${n}, deltaValue: ${a}, accValue: ${i}`);t[n]=i}return t}_addRun(t){return t}async _threadAssistantStream(t,r,n){return await this._createThreadAssistantStream(r,t,n)}async _runAssistantStream(t,r,n,a){return await this._createAssistantStream(r,t,n,a)}async _runToolAssistantStream(t,r,n,a,i){return await this._createToolAssistantStream(n,t,r,a,i)}}X0=function(t){if(!this.ended)switch(wa(this,yp,t,"f"),rt(this,_n,"m",Q5).call(this,t),t.event){case"thread.created":break;case"thread.run.created":case"thread.run.queued":case"thread.run.in_progress":case"thread.run.requires_action":case"thread.run.completed":case"thread.run.incomplete":case"thread.run.failed":case"thread.run.cancelling":case"thread.run.cancelled":case"thread.run.expired":rt(this,_n,"m",nA).call(this,t);break;case"thread.run.step.created":case"thread.run.step.in_progress":case"thread.run.step.delta":case"thread.run.step.completed":case"thread.run.step.failed":case"thread.run.step.cancelled":case"thread.run.step.expired":rt(this,_n,"m",J5).call(this,t);break;case"thread.message.created":case"thread.message.in_progress":case"thread.message.delta":case"thread.message.completed":case"thread.message.incomplete":rt(this,_n,"m",Z5).call(this,t);break;case"error":throw new Error("Encountered an error event in event processing - errors should be processed earlier")}},K0=function(){if(this.ended)throw new Nt("stream has ended, this shouldn't happen");if(!rt(this,Mu,"f"))throw Error("Final run has not been received");return rt(this,Mu,"f")},Z5=function(t){const[r,n]=rt(this,_n,"m",tA).call(this,t,rt(this,Fi,"f"));wa(this,Fi,r,"f"),rt(this,xp,"f")[r.id]=r;for(const a of n){const i=r.content[a.index];(i==null?void 0:i.type)=="text"&&this._emit("textCreated",i.text)}switch(t.event){case"thread.message.created":this._emit("messageCreated",t.data);break;case"thread.message.in_progress":break;case"thread.message.delta":if(this._emit("messageDelta",t.data.delta,r),t.data.delta.content)for(const a of t.data.delta.content){if(a.type=="text"&&a.text){let i=a.text,s=r.content[a.index];if(s&&s.type=="text")this._emit("textDelta",i,s.text);else throw Error("The snapshot associated with this text delta is not text or missing")}if(a.index!=rt(this,hc,"f")){if(rt(this,Lu,"f"))switch(rt(this,Lu,"f").type){case"text":this._emit("textDone",rt(this,Lu,"f").text,rt(this,Fi,"f"));break;case"image_file":this._emit("imageFileDone",rt(this,Lu,"f").image_file,rt(this,Fi,"f"));break}wa(this,hc,a.index,"f")}wa(this,Lu,r.content[a.index],"f")}break;case"thread.message.completed":case"thread.message.incomplete":if(rt(this,hc,"f")!==void 0){const a=t.data.content[rt(this,hc,"f")];if(a)switch(a.type){case"image_file":this._emit("imageFileDone",a.image_file,rt(this,Fi,"f"));break;case"text":this._emit("textDone",a.text,rt(this,Fi,"f"));break}}rt(this,Fi,"f")&&this._emit("messageDone",t.data),wa(this,Fi,void 0,"f")}},J5=function(t){const r=rt(this,_n,"m",eA).call(this,t);switch(wa(this,Y0,r,"f"),t.event){case"thread.run.step.created":this._emit("runStepCreated",t.data);break;case"thread.run.step.delta":const n=t.data.delta;if(n.step_details&&n.step_details.type=="tool_calls"&&n.step_details.tool_calls&&r.step_details.type=="tool_calls")for(const i of n.step_details.tool_calls)i.index==rt(this,_p,"f")?this._emit("toolCallDelta",i,r.step_details.tool_calls[i.index]):(rt(this,Sa,"f")&&this._emit("toolCallDone",rt(this,Sa,"f")),wa(this,_p,i.index,"f"),wa(this,Sa,r.step_details.tool_calls[i.index],"f"),rt(this,Sa,"f")&&this._emit("toolCallCreated",rt(this,Sa,"f")));this._emit("runStepDelta",t.data.delta,r);break;case"thread.run.step.completed":case"thread.run.step.failed":case"thread.run.step.cancelled":case"thread.run.step.expired":wa(this,Y0,void 0,"f"),t.data.step_details.type=="tool_calls"&&rt(this,Sa,"f")&&(this._emit("toolCallDone",rt(this,Sa,"f")),wa(this,Sa,void 0,"f")),this._emit("runStepDone",t.data,r);break}},Q5=function(t){rt(this,T_,"f").push(t),this._emit("event",t)},eA=function(t){switch(t.event){case"thread.run.step.created":return rt(this,rs,"f")[t.data.id]=t.data,t.data;case"thread.run.step.delta":let r=rt(this,rs,"f")[t.data.id];if(!r)throw Error("Received a RunStepDelta before creation of a snapshot");let n=t.data;if(n.delta){const a=Oi.accumulateDelta(r,n.delta);rt(this,rs,"f")[t.data.id]=a}return rt(this,rs,"f")[t.data.id];case"thread.run.step.completed":case"thread.run.step.failed":case"thread.run.step.cancelled":case"thread.run.step.expired":case"thread.run.step.in_progress":rt(this,rs,"f")[t.data.id]=t.data;break}if(rt(this,rs,"f")[t.data.id])return rt(this,rs,"f")[t.data.id];throw new Error("No snapshot available")},tA=function(t,r){let n=[];switch(t.event){case"thread.message.created":return[t.data,n];case"thread.message.delta":if(!r)throw Error("Received a delta with no existing snapshot (there should be one from message creation)");let a=t.data;if(a.delta.content)for(const i of a.delta.content)if(i.index in r.content){let s=r.content[i.index];r.content[i.index]=rt(this,_n,"m",rA).call(this,i,s)}else r.content[i.index]=i,n.push(i);return[r,n];case"thread.message.in_progress":case"thread.message.completed":case"thread.message.incomplete":if(r)return[r,n];throw Error("Received thread message event with no existing snapshot")}throw Error("Tried to accumulate a non-message event")},rA=function(t,r){return Oi.accumulateDelta(r,t)},nA=function(t){switch(wa(this,bp,t.data,"f"),t.event){case"thread.run.created":break;case"thread.run.queued":break;case"thread.run.in_progress":break;case"thread.run.requires_action":case"thread.run.cancelled":case"thread.run.failed":case"thread.run.completed":case"thread.run.expired":wa(this,Mu,t.data,"f"),rt(this,Sa,"f")&&(this._emit("toolCallDone",rt(this,Sa,"f")),wa(this,Sa,void 0,"f"));break}};class A_ extends Vt{create(t,r,n){return this._client.post(`/threads/${t}/messages`,{body:r,...n,headers:{"OpenAI-Beta":"assistants=v2",...n==null?void 0:n.headers}})}retrieve(t,r,n){return this._client.get(`/threads/${t}/messages/${r}`,{...n,headers:{"OpenAI-Beta":"assistants=v2",...n==null?void 0:n.headers}})}update(t,r,n,a){return this._client.post(`/threads/${t}/messages/${r}`,{body:n,...a,headers:{"OpenAI-Beta":"assistants=v2",...a==null?void 0:a.headers}})}list(t,r={},n){return Tn(r)?this.list(t,{},r):this._client.getAPIList(`/threads/${t}/messages`,F_,{query:r,...n,headers:{"OpenAI-Beta":"assistants=v2",...n==null?void 0:n.headers}})}del(t,r,n){return this._client.delete(`/threads/${t}/messages/${r}`,{...n,headers:{"OpenAI-Beta":"assistants=v2",...n==null?void 0:n.headers}})}}class F_ extends ba{}A_.MessagesPage=F_;class O_ extends Vt{retrieve(t,r,n,a={},i){return Tn(a)?this.retrieve(t,r,n,{},a):this._client.get(`/threads/${t}/runs/${r}/steps/${n}`,{query:a,...i,headers:{"OpenAI-Beta":"assistants=v2",...i==null?void 0:i.headers}})}list(t,r,n={},a){return Tn(n)?this.list(t,r,{},n):this._client.getAPIList(`/threads/${t}/runs/${r}/steps`,P_,{query:n,...a,headers:{"OpenAI-Beta":"assistants=v2",...a==null?void 0:a.headers}})}}class P_ extends ba{}O_.RunStepsPage=P_;class Z0 extends Vt{constructor(){super(...arguments),this.steps=new O_(this._client)}create(t,r,n){const{include:a,...i}=r;return this._client.post(`/threads/${t}/runs`,{query:{include:a},body:i,...n,headers:{"OpenAI-Beta":"assistants=v2",...n==null?void 0:n.headers},stream:r.stream??!1})}retrieve(t,r,n){return this._client.get(`/threads/${t}/runs/${r}`,{...n,headers:{"OpenAI-Beta":"assistants=v2",...n==null?void 0:n.headers}})}update(t,r,n,a){return this._client.post(`/threads/${t}/runs/${r}`,{body:n,...a,headers:{"OpenAI-Beta":"assistants=v2",...a==null?void 0:a.headers}})}list(t,r={},n){return Tn(r)?this.list(t,{},r):this._client.getAPIList(`/threads/${t}/runs`,D_,{query:r,...n,headers:{"OpenAI-Beta":"assistants=v2",...n==null?void 0:n.headers}})}cancel(t,r,n){return this._client.post(`/threads/${t}/runs/${r}/cancel`,{...n,headers:{"OpenAI-Beta":"assistants=v2",...n==null?void 0:n.headers}})}async createAndPoll(t,r,n){const a=await this.create(t,r,n);return await this.poll(t,a.id,n)}createAndStream(t,r,n){return Oi.createAssistantStream(t,this._client.beta.threads.runs,r,n)}async poll(t,r,n){const a={...n==null?void 0:n.headers,"X-Stainless-Poll-Helper":"true"};for(n!=null&&n.pollIntervalMs&&(a["X-Stainless-Custom-Poll-Interval"]=n.pollIntervalMs.toString());;){const{data:i,response:s}=await this.retrieve(t,r,{...n,headers:{...n==null?void 0:n.headers,...a}}).withResponse();switch(i.status){case"queued":case"in_progress":case"cancelling":let o=5e3;if(n!=null&&n.pollIntervalMs)o=n.pollIntervalMs;else{const u=s.headers.get("openai-poll-after-ms");if(u){const l=parseInt(u);isNaN(l)||(o=l)}}await j0(o);break;case"requires_action":case"incomplete":case"cancelled":case"completed":case"failed":case"expired":return i}}}stream(t,r,n){return Oi.createAssistantStream(t,this._client.beta.threads.runs,r,n)}submitToolOutputs(t,r,n,a){return this._client.post(`/threads/${t}/runs/${r}/submit_tool_outputs`,{body:n,...a,headers:{"OpenAI-Beta":"assistants=v2",...a==null?void 0:a.headers},stream:n.stream??!1})}async submitToolOutputsAndPoll(t,r,n,a){const i=await this.submitToolOutputs(t,r,n,a);return await this.poll(t,i.id,a)}submitToolOutputsStream(t,r,n,a){return Oi.createToolAssistantStream(t,r,this._client.beta.threads.runs,n,a)}}class D_ extends ba{}Z0.RunsPage=D_,Z0.Steps=O_,Z0.RunStepsPage=P_;class pc extends Vt{constructor(){super(...arguments),this.runs=new Z0(this._client),this.messages=new A_(this._client)}create(t={},r){return Tn(t)?this.create({},t):this._client.post("/threads",{body:t,...r,headers:{"OpenAI-Beta":"assistants=v2",...r==null?void 0:r.headers}})}retrieve(t,r){return this._client.get(`/threads/${t}`,{...r,headers:{"OpenAI-Beta":"assistants=v2",...r==null?void 0:r.headers}})}update(t,r,n){return this._client.post(`/threads/${t}`,{body:r,...n,headers:{"OpenAI-Beta":"assistants=v2",...n==null?void 0:n.headers}})}del(t,r){return this._client.delete(`/threads/${t}`,{...r,headers:{"OpenAI-Beta":"assistants=v2",...r==null?void 0:r.headers}})}createAndRun(t,r){return this._client.post("/threads/runs",{body:t,...r,headers:{"OpenAI-Beta":"assistants=v2",...r==null?void 0:r.headers},stream:t.stream??!1})}async createAndRunPoll(t,r){const n=await this.createAndRun(t,r);return await this.runs.poll(n.thread_id,n.id,r)}createAndRunStream(t,r){return Oi.createThreadAssistantStream(t,this._client.beta.threads,r)}}pc.Runs=Z0,pc.RunsPage=D_,pc.Messages=A_,pc.MessagesPage=F_;const GK=async e=>{const t=await Promise.allSettled(e),r=t.filter(a=>a.status==="rejected");if(r.length){for(const a of r)console.error(a.reason);throw new Error(`${r.length} promise(s) failed - see the above errors`)}const n=[];for(const a of t)a.status==="fulfilled"&&n.push(a.value);return n};let R_=class extends Vt{create(t,r,n){return this._client.post(`/vector_stores/${t}/files`,{body:r,...n,headers:{"OpenAI-Beta":"assistants=v2",...n==null?void 0:n.headers}})}retrieve(t,r,n){return this._client.get(`/vector_stores/${t}/files/${r}`,{...n,headers:{"OpenAI-Beta":"assistants=v2",...n==null?void 0:n.headers}})}list(t,r={},n){return Tn(r)?this.list(t,{},r):this._client.getAPIList(`/vector_stores/${t}/files`,wp,{query:r,...n,headers:{"OpenAI-Beta":"assistants=v2",...n==null?void 0:n.headers}})}del(t,r,n){return this._client.delete(`/vector_stores/${t}/files/${r}`,{...n,headers:{"OpenAI-Beta":"assistants=v2",...n==null?void 0:n.headers}})}async createAndPoll(t,r,n){const a=await this.create(t,r,n);return await this.poll(t,a.id,n)}async poll(t,r,n){const a={...n==null?void 0:n.headers,"X-Stainless-Poll-Helper":"true"};for(n!=null&&n.pollIntervalMs&&(a["X-Stainless-Custom-Poll-Interval"]=n.pollIntervalMs.toString());;){const i=await this.retrieve(t,r,{...n,headers:a}).withResponse(),s=i.data;switch(s.status){case"in_progress":let o=5e3;if(n!=null&&n.pollIntervalMs)o=n.pollIntervalMs;else{const u=i.response.headers.get("openai-poll-after-ms");if(u){const l=parseInt(u);isNaN(l)||(o=l)}}await j0(o);break;case"failed":case"completed":return s}}}async upload(t,r,n){const a=await this._client.files.create({file:r,purpose:"assistants"},n);return this.create(t,{file_id:a.id},n)}async uploadAndPoll(t,r,n){const a=await this.upload(t,r,n);return await this.poll(t,a.id,n)}};class wp extends ba{}R_.VectorStoreFilesPage=wp;class aA extends Vt{create(t,r,n){return this._client.post(`/vector_stores/${t}/file_batches`,{body:r,...n,headers:{"OpenAI-Beta":"assistants=v2",...n==null?void 0:n.headers}})}retrieve(t,r,n){return this._client.get(`/vector_stores/${t}/file_batches/${r}`,{...n,headers:{"OpenAI-Beta":"assistants=v2",...n==null?void 0:n.headers}})}cancel(t,r,n){return this._client.post(`/vector_stores/${t}/file_batches/${r}/cancel`,{...n,headers:{"OpenAI-Beta":"assistants=v2",...n==null?void 0:n.headers}})}async createAndPoll(t,r,n){const a=await this.create(t,r);return await this.poll(t,a.id,n)}listFiles(t,r,n={},a){return Tn(n)?this.listFiles(t,r,{},n):this._client.getAPIList(`/vector_stores/${t}/file_batches/${r}/files`,wp,{query:n,...a,headers:{"OpenAI-Beta":"assistants=v2",...a==null?void 0:a.headers}})}async poll(t,r,n){const a={...n==null?void 0:n.headers,"X-Stainless-Poll-Helper":"true"};for(n!=null&&n.pollIntervalMs&&(a["X-Stainless-Custom-Poll-Interval"]=n.pollIntervalMs.toString());;){const{data:i,response:s}=await this.retrieve(t,r,{...n,headers:a}).withResponse();switch(i.status){case"in_progress":let o=5e3;if(n!=null&&n.pollIntervalMs)o=n.pollIntervalMs;else{const u=s.headers.get("openai-poll-after-ms");if(u){const l=parseInt(u);isNaN(l)||(o=l)}}await j0(o);break;case"failed":case"cancelled":case"completed":return i}}}async uploadAndPoll(t,{files:r,fileIds:n=[]},a){if(r==null||r.length==0)throw new Error("No `files` provided to process. If you've already uploaded files you should use `.createAndPoll()` instead");const i=(a==null?void 0:a.maxConcurrency)??5,s=Math.min(i,r.length),o=this._client,u=r.values(),l=[...n];async function f(p){for(let v of p){const _=await o.files.create({file:v,purpose:"assistants"},a);l.push(_.id)}}const d=Array(s).fill(u).map(f);return await GK(d),await this.createAndPoll(t,{file_ids:l})}}class mc extends Vt{constructor(){super(...arguments),this.files=new R_(this._client),this.fileBatches=new aA(this._client)}create(t,r){return this._client.post("/vector_stores",{body:t,...r,headers:{"OpenAI-Beta":"assistants=v2",...r==null?void 0:r.headers}})}retrieve(t,r){return this._client.get(`/vector_stores/${t}`,{...r,headers:{"OpenAI-Beta":"assistants=v2",...r==null?void 0:r.headers}})}update(t,r,n){return this._client.post(`/vector_stores/${t}`,{body:r,...n,headers:{"OpenAI-Beta":"assistants=v2",...n==null?void 0:n.headers}})}list(t={},r){return Tn(t)?this.list({},t):this._client.getAPIList("/vector_stores",I_,{query:t,...r,headers:{"OpenAI-Beta":"assistants=v2",...r==null?void 0:r.headers}})}del(t,r){return this._client.delete(`/vector_stores/${t}`,{...r,headers:{"OpenAI-Beta":"assistants=v2",...r==null?void 0:r.headers}})}}class I_ extends ba{}mc.VectorStoresPage=I_,mc.Files=R_,mc.VectorStoreFilesPage=wp,mc.FileBatches=aA;class ko extends Vt{constructor(){super(...arguments),this.realtime=new k_(this._client),this.vectorStores=new mc(this._client),this.chat=new C_(this._client),this.assistants=new f_(this._client),this.threads=new pc(this._client)}}ko.Realtime=k_,ko.VectorStores=mc,ko.VectorStoresPage=I_,ko.Assistants=f_,ko.AssistantsPage=d_,ko.Threads=pc;class iA extends Vt{create(t,r){return this._client.post("/completions",{body:t,...r,stream:t.stream??!1})}}class sA extends Vt{create(t,r){return this._client.post("/embeddings",{body:t,...r})}}class N_ extends Vt{create(t,r){return this._client.post("/files",sc({body:t,...r}))}retrieve(t,r){return this._client.get(`/files/${t}`,r)}list(t={},r){return Tn(t)?this.list({},t):this._client.getAPIList("/files",M_,{query:t,...r})}del(t,r){return this._client.delete(`/files/${t}`,r)}content(t,r){return this._client.get(`/files/${t}/content`,{...r,headers:{Accept:"application/binary",...r==null?void 0:r.headers},__binaryResponse:!0})}retrieveContent(t,r){return this._client.get(`/files/${t}/content`,r)}async waitForProcessing(t,{pollInterval:r=5e3,maxWait:n=30*60*1e3}={}){const a=new Set(["processed","error","deleted"]),i=Date.now();let s=await this.retrieve(t);for(;!s.status||!a.has(s.status);)if(await j0(r),s=await this.retrieve(t),Date.now()-i>n)throw new n_({message:`Giving up on waiting for file ${t} to finish processing after ${n} milliseconds.`});return s}}class M_ extends ba{}N_.FileObjectsPage=M_;class L_ extends Vt{list(t,r={},n){return Tn(r)?this.list(t,{},r):this._client.getAPIList(`/fine_tuning/jobs/${t}/checkpoints`,B_,{query:r,...n})}}class B_ extends ba{}L_.FineTuningJobCheckpointsPage=B_;class gc extends Vt{constructor(){super(...arguments),this.checkpoints=new L_(this._client)}create(t,r){return this._client.post("/fine_tuning/jobs",{body:t,...r})}retrieve(t,r){return this._client.get(`/fine_tuning/jobs/${t}`,r)}list(t={},r){return Tn(t)?this.list({},t):this._client.getAPIList("/fine_tuning/jobs",j_,{query:t,...r})}cancel(t,r){return this._client.post(`/fine_tuning/jobs/${t}/cancel`,r)}listEvents(t,r={},n){return Tn(r)?this.listEvents(t,{},r):this._client.getAPIList(`/fine_tuning/jobs/${t}/events`,$_,{query:r,...n})}}class j_ extends ba{}class $_ extends ba{}gc.FineTuningJobsPage=j_,gc.FineTuningJobEventsPage=$_,gc.Checkpoints=L_,gc.FineTuningJobCheckpointsPage=B_;class J0 extends Vt{constructor(){super(...arguments),this.jobs=new gc(this._client)}}J0.Jobs=gc,J0.FineTuningJobsPage=j_,J0.FineTuningJobEventsPage=$_;class oA extends Vt{createVariation(t,r){return this._client.post("/images/variations",sc({body:t,...r}))}edit(t,r){return this._client.post("/images/edits",sc({body:t,...r}))}generate(t,r){return this._client.post("/images/generations",{body:t,...r})}}class U_ extends Vt{retrieve(t,r){return this._client.get(`/models/${t}`,r)}list(t){return this._client.getAPIList("/models",z_,t)}del(t,r){return this._client.delete(`/models/${t}`,r)}}class z_ extends IK{}U_.ModelsPage=z_;class uA extends Vt{create(t,r){return this._client.post("/moderations",{body:t,...r})}}class lA extends Vt{create(t,r,n){return this._client.post(`/uploads/${t}/parts`,sc({body:r,...n}))}}class H_ extends Vt{constructor(){super(...arguments),this.parts=new lA(this._client)}create(t,r){return this._client.post("/uploads",{body:t,...r})}cancel(t,r){return this._client.post(`/uploads/${t}/cancel`,r)}complete(t,r,n){return this._client.post(`/uploads/${t}/complete`,{body:r,...n})}}H_.Parts=lA;var cA;class Bt extends bK{constructor({baseURL:t=ap("OPENAI_BASE_URL"),apiKey:r=ap("OPENAI_API_KEY"),organization:n=ap("OPENAI_ORG_ID")??null,project:a=ap("OPENAI_PROJECT_ID")??null,...i}={}){if(r===void 0)throw new Nt("The OPENAI_API_KEY environment variable is missing or empty; either provide it, or instantiate the OpenAI client with an apiKey option, like new OpenAI({ apiKey: 'My API Key' }).");const s={apiKey:r,organization:n,project:a,...i,baseURL:t||"https://api.openai.com/v1"};if(!s.dangerouslyAllowBrowser&&DK())throw new Nt(`It looks like you're running in a browser-like environment.
506
+
507
+ This is disabled by default, as it risks exposing your secret API credentials to attackers.
508
+ If you understand the risks and have appropriate mitigations in place,
509
+ you can set the \`dangerouslyAllowBrowser\` option to \`true\`, e.g.,
510
+
511
+ new OpenAI({ apiKey, dangerouslyAllowBrowser: true });
512
+
513
+ https://help.openai.com/en/articles/5112595-best-practices-for-api-key-safety
514
+ `);super({baseURL:s.baseURL,timeout:s.timeout??6e5,httpAgent:s.httpAgent,maxRetries:s.maxRetries,fetch:s.fetch}),this.completions=new iA(this),this.chat=new up(this),this.embeddings=new sA(this),this.files=new N_(this),this.images=new oA(this),this.audio=new $0(this),this.moderations=new uA(this),this.models=new U_(this),this.fineTuning=new J0(this),this.beta=new ko(this),this.batches=new l_(this),this.uploads=new H_(this),this._options=s,this.apiKey=r,this.organization=n,this.project=a}defaultQuery(){return this._options.defaultQuery}defaultHeaders(t){return{...super.defaultHeaders(t),"OpenAI-Organization":this.organization,"OpenAI-Project":this.project,...this._options.defaultHeaders}}authHeaders(t){return{Authorization:`Bearer ${this.apiKey}`}}stringifyQuery(t){return nK(t,{arrayFormat:"brackets"})}}cA=Bt,Bt.OpenAI=cA,Bt.DEFAULT_TIMEOUT=6e5,Bt.OpenAIError=Nt,Bt.APIError=xn,Bt.APIConnectionError=J1,Bt.APIConnectionTimeoutError=n_,Bt.APIUserAbortError=Ti,Bt.NotFoundError=JT,Bt.ConflictError=QT,Bt.RateLimitError=t5,Bt.BadRequestError=XT,Bt.AuthenticationError=KT,Bt.InternalServerError=r5,Bt.PermissionDeniedError=ZT,Bt.UnprocessableEntityError=e5,Bt.toFile=u5,Bt.fileFromPath=GT,Bt.Completions=iA,Bt.Chat=up,Bt.ChatCompletionsPage=op,Bt.Embeddings=sA,Bt.Files=N_,Bt.FileObjectsPage=M_,Bt.Images=oA,Bt.Audio=$0,Bt.Moderations=uA,Bt.Models=U_,Bt.ModelsPage=z_,Bt.FineTuning=J0,Bt.Beta=ko,Bt.Batches=l_,Bt.BatchesPage=c_,Bt.Uploads=H_;const YK=[{key:"1",label:"热点",description:"What are you interested in?",children:[{key:"1-1",description:"创建物料?"}]},{key:"2",label:"引导",description:"How to design a good product?",children:[{key:"2-1",description:"查询知识库"}]},{key:"3",label:"引导",description:"How to design a good product?",children:[{key:"2-1",description:"查询知识库"}]},{key:"4",label:"引导",description:"How to design ?",children:[{key:"2-1",description:"查询知识库"}]}],XK=({onPromptsItemClick:e})=>R.jsxs(ue.Space,{direction:"vertical",size:16,className:ki.placeholder,children:[R.jsx(RT,{variant:"borderless",title:"Hello, I'm OnChain Assistant",description:"How can I help you today?",extra:R.jsx(ue.Space,{})}),R.jsx("div",{children:R.jsx(Z1,{title:"Suggested?",items:YK,styles:{list:{width:"100%"},item:{flex:1}},onItemClick:e})})]}),fA={};function KK(e){let t=fA[e];if(t)return t;t=fA[e]=[];for(let r=0;r<128;r++){const n=String.fromCharCode(r);t.push(n)}for(let r=0;r<e.length;r++){const n=e.charCodeAt(r);t[n]="%"+("0"+n.toString(16).toUpperCase()).slice(-2)}return t}function vc(e,t){typeof t!="string"&&(t=vc.defaultChars);const r=KK(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(n){let a="";for(let i=0,s=n.length;i<s;i+=3){const o=parseInt(n.slice(i+1,i+3),16);if(o<128){a+=r[o];continue}if((o&224)===192&&i+3<s){const u=parseInt(n.slice(i+4,i+6),16);if((u&192)===128){const l=o<<6&1984|u&63;l<128?a+="��":a+=String.fromCharCode(l),i+=3;continue}}if((o&240)===224&&i+6<s){const u=parseInt(n.slice(i+4,i+6),16),l=parseInt(n.slice(i+7,i+9),16);if((u&192)===128&&(l&192)===128){const f=o<<12&61440|u<<6&4032|l&63;f<2048||f>=55296&&f<=57343?a+="���":a+=String.fromCharCode(f),i+=6;continue}}if((o&248)===240&&i+9<s){const u=parseInt(n.slice(i+4,i+6),16),l=parseInt(n.slice(i+7,i+9),16),f=parseInt(n.slice(i+10,i+12),16);if((u&192)===128&&(l&192)===128&&(f&192)===128){let d=o<<18&1835008|u<<12&258048|l<<6&4032|f&63;d<65536||d>1114111?a+="����":(d-=65536,a+=String.fromCharCode(55296+(d>>10),56320+(d&1023))),i+=9;continue}}a+="�"}return a})}vc.defaultChars=";/?:@&=+$,#",vc.componentChars="";const dA={};function ZK(e){let t=dA[e];if(t)return t;t=dA[e]=[];for(let r=0;r<128;r++){const n=String.fromCharCode(r);/^[0-9a-z]$/i.test(n)?t.push(n):t.push("%"+("0"+r.toString(16).toUpperCase()).slice(-2))}for(let r=0;r<e.length;r++)t[e.charCodeAt(r)]=e[r];return t}function Q0(e,t,r){typeof t!="string"&&(r=t,t=Q0.defaultChars),typeof r>"u"&&(r=!0);const n=ZK(t);let a="";for(let i=0,s=e.length;i<s;i++){const o=e.charCodeAt(i);if(r&&o===37&&i+2<s&&/^[0-9a-f]{2}$/i.test(e.slice(i+1,i+3))){a+=e.slice(i,i+3),i+=2;continue}if(o<128){a+=n[o];continue}if(o>=55296&&o<=57343){if(o>=55296&&o<=56319&&i+1<s){const u=e.charCodeAt(i+1);if(u>=56320&&u<=57343){a+=encodeURIComponent(e[i]+e[i+1]),i++;continue}}a+="%EF%BF%BD";continue}a+=encodeURIComponent(e[i])}return a}Q0.defaultChars=";/?:@&=+$,-_.!~*'()#",Q0.componentChars="-_.!~*'()";function W_(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function Sp(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const JK=/^([a-z0-9.+-]+:)/i,QK=/:[0-9]*$/,eZ=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,tZ=["<",">",'"',"`"," ","\r",`
515
+ `," "],rZ=["{","}","|","\\","^","`"].concat(tZ),nZ=["'"].concat(rZ),hA=["%","/","?",";","#"].concat(nZ),pA=["/","?","#"],aZ=255,mA=/^[+a-z0-9A-Z_-]{0,63}$/,iZ=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,gA={javascript:!0,"javascript:":!0},vA={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function V_(e,t){if(e&&e instanceof Sp)return e;const r=new Sp;return r.parse(e,t),r}Sp.prototype.parse=function(e,t){let r,n,a,i=e;if(i=i.trim(),!t&&e.split("#").length===1){const l=eZ.exec(i);if(l)return this.pathname=l[1],l[2]&&(this.search=l[2]),this}let s=JK.exec(i);if(s&&(s=s[0],r=s.toLowerCase(),this.protocol=s,i=i.substr(s.length)),(t||s||i.match(/^\/\/[^@\/]+@[^@\/]+/))&&(a=i.substr(0,2)==="//",a&&!(s&&gA[s])&&(i=i.substr(2),this.slashes=!0)),!gA[s]&&(a||s&&!vA[s])){let l=-1;for(let _=0;_<pA.length;_++)n=i.indexOf(pA[_]),n!==-1&&(l===-1||n<l)&&(l=n);let f,d;l===-1?d=i.lastIndexOf("@"):d=i.lastIndexOf("@",l),d!==-1&&(f=i.slice(0,d),i=i.slice(d+1),this.auth=f),l=-1;for(let _=0;_<hA.length;_++)n=i.indexOf(hA[_]),n!==-1&&(l===-1||n<l)&&(l=n);l===-1&&(l=i.length),i[l-1]===":"&&l--;const p=i.slice(0,l);i=i.slice(l),this.parseHost(p),this.hostname=this.hostname||"";const v=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!v){const _=this.hostname.split(/\./);for(let x=0,w=_.length;x<w;x++){const C=_[x];if(C&&!C.match(mA)){let E="";for(let b=0,h=C.length;b<h;b++)C.charCodeAt(b)>127?E+="x":E+=C[b];if(!E.match(mA)){const b=_.slice(0,x),h=_.slice(x+1),g=C.match(iZ);g&&(b.push(g[1]),h.unshift(g[2])),h.length&&(i=h.join(".")+i),this.hostname=b.join(".");break}}}}this.hostname.length>aZ&&(this.hostname=""),v&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const o=i.indexOf("#");o!==-1&&(this.hash=i.substr(o),i=i.slice(0,o));const u=i.indexOf("?");return u!==-1&&(this.search=i.substr(u),i=i.slice(0,u)),i&&(this.pathname=i),vA[r]&&this.hostname&&!this.pathname&&(this.pathname=""),this},Sp.prototype.parseHost=function(e){let t=QK.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};const sZ=Object.freeze(Object.defineProperty({__proto__:null,decode:vc,encode:Q0,format:W_,parse:V_},Symbol.toStringTag,{value:"Module"})),xA=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,_A=/[\0-\x1F\x7F-\x9F]/,oZ=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,q_=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,yA=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,bA=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,uZ=Object.freeze(Object.defineProperty({__proto__:null,Any:xA,Cc:_A,Cf:oZ,P:q_,S:yA,Z:bA},Symbol.toStringTag,{value:"Module"})),lZ=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),cZ=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var G_;const fZ=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),dZ=(G_=String.fromCodePoint)!==null&&G_!==void 0?G_:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function hZ(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=fZ.get(e))!==null&&t!==void 0?t:e}var sn;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(sn||(sn={}));const pZ=32;var To;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(To||(To={}));function Y_(e){return e>=sn.ZERO&&e<=sn.NINE}function mZ(e){return e>=sn.UPPER_A&&e<=sn.UPPER_F||e>=sn.LOWER_A&&e<=sn.LOWER_F}function gZ(e){return e>=sn.UPPER_A&&e<=sn.UPPER_Z||e>=sn.LOWER_A&&e<=sn.LOWER_Z||Y_(e)}function vZ(e){return e===sn.EQUALS||gZ(e)}var on;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(on||(on={}));var Ao;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Ao||(Ao={}));class xZ{constructor(t,r,n){this.decodeTree=t,this.emitCodePoint=r,this.errors=n,this.state=on.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Ao.Strict}startEntity(t){this.decodeMode=t,this.state=on.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,r){switch(this.state){case on.EntityStart:return t.charCodeAt(r)===sn.NUM?(this.state=on.NumericStart,this.consumed+=1,this.stateNumericStart(t,r+1)):(this.state=on.NamedEntity,this.stateNamedEntity(t,r));case on.NumericStart:return this.stateNumericStart(t,r);case on.NumericDecimal:return this.stateNumericDecimal(t,r);case on.NumericHex:return this.stateNumericHex(t,r);case on.NamedEntity:return this.stateNamedEntity(t,r)}}stateNumericStart(t,r){return r>=t.length?-1:(t.charCodeAt(r)|pZ)===sn.LOWER_X?(this.state=on.NumericHex,this.consumed+=1,this.stateNumericHex(t,r+1)):(this.state=on.NumericDecimal,this.stateNumericDecimal(t,r))}addToNumericResult(t,r,n,a){if(r!==n){const i=n-r;this.result=this.result*Math.pow(a,i)+parseInt(t.substr(r,i),a),this.consumed+=i}}stateNumericHex(t,r){const n=r;for(;r<t.length;){const a=t.charCodeAt(r);if(Y_(a)||mZ(a))r+=1;else return this.addToNumericResult(t,n,r,16),this.emitNumericEntity(a,3)}return this.addToNumericResult(t,n,r,16),-1}stateNumericDecimal(t,r){const n=r;for(;r<t.length;){const a=t.charCodeAt(r);if(Y_(a))r+=1;else return this.addToNumericResult(t,n,r,10),this.emitNumericEntity(a,2)}return this.addToNumericResult(t,n,r,10),-1}emitNumericEntity(t,r){var n;if(this.consumed<=r)return(n=this.errors)===null||n===void 0||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===sn.SEMI)this.consumed+=1;else if(this.decodeMode===Ao.Strict)return 0;return this.emitCodePoint(hZ(this.result),this.consumed),this.errors&&(t!==sn.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,r){const{decodeTree:n}=this;let a=n[this.treeIndex],i=(a&To.VALUE_LENGTH)>>14;for(;r<t.length;r++,this.excess++){const s=t.charCodeAt(r);if(this.treeIndex=_Z(n,a,this.treeIndex+Math.max(1,i),s),this.treeIndex<0)return this.result===0||this.decodeMode===Ao.Attribute&&(i===0||vZ(s))?0:this.emitNotTerminatedNamedEntity();if(a=n[this.treeIndex],i=(a&To.VALUE_LENGTH)>>14,i!==0){if(s===sn.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==Ao.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:r,decodeTree:n}=this,a=(n[r]&To.VALUE_LENGTH)>>14;return this.emitNamedEntityData(r,a,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,r,n){const{decodeTree:a}=this;return this.emitCodePoint(r===1?a[t]&~To.VALUE_LENGTH:a[t+1],n),r===3&&this.emitCodePoint(a[t+2],n),n}end(){var t;switch(this.state){case on.NamedEntity:return this.result!==0&&(this.decodeMode!==Ao.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case on.NumericDecimal:return this.emitNumericEntity(0,2);case on.NumericHex:return this.emitNumericEntity(0,3);case on.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case on.EntityStart:return 0}}}function wA(e){let t="";const r=new xZ(e,n=>t+=dZ(n));return function(a,i){let s=0,o=0;for(;(o=a.indexOf("&",o))>=0;){t+=a.slice(s,o),r.startEntity(i);const l=r.write(a,o+1);if(l<0){s=o+r.end();break}s=o+l,o=l===0?s+1:s}const u=t+a.slice(s);return t="",u}}function _Z(e,t,r,n){const a=(t&To.BRANCH_LENGTH)>>7,i=t&To.JUMP_TABLE;if(a===0)return i!==0&&n===i?r:-1;if(i){const u=n-i;return u<0||u>=a?-1:e[r+u]-1}let s=r,o=s+a-1;for(;s<=o;){const u=s+o>>>1,l=e[u];if(l<n)s=u+1;else if(l>n)o=u-1;else return e[u+a]}return-1}const yZ=wA(lZ);wA(cZ);function SA(e,t=Ao.Legacy){return yZ(e,t)}function bZ(e){return Object.prototype.toString.call(e)}function X_(e){return bZ(e)==="[object String]"}const wZ=Object.prototype.hasOwnProperty;function SZ(e,t){return wZ.call(e,t)}function Ep(e){return Array.prototype.slice.call(arguments,1).forEach(function(r){if(r){if(typeof r!="object")throw new TypeError(r+"must be object");Object.keys(r).forEach(function(n){e[n]=r[n]})}}),e}function EA(e,t,r){return[].concat(e.slice(0,t),r,e.slice(t+1))}function K_(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function Cp(e){if(e>65535){e-=65536;const t=55296+(e>>10),r=56320+(e&1023);return String.fromCharCode(t,r)}return String.fromCharCode(e)}const CA=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,EZ=/&([a-z#][a-z0-9]{1,31});/gi,CZ=new RegExp(CA.source+"|"+EZ.source,"gi"),kZ=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function TZ(e,t){if(t.charCodeAt(0)===35&&kZ.test(t)){const n=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return K_(n)?Cp(n):e}const r=SA(e);return r!==e?r:e}function AZ(e){return e.indexOf("\\")<0?e:e.replace(CA,"$1")}function xc(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(CZ,function(t,r,n){return r||TZ(t,n)})}const FZ=/[&<>"]/,OZ=/[&<>"]/g,PZ={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function DZ(e){return PZ[e]}function Fo(e){return FZ.test(e)?e.replace(OZ,DZ):e}const RZ=/[.?*+^$[\]\\(){}|-]/g;function IZ(e){return e.replace(RZ,"\\$&")}function pr(e){switch(e){case 9:case 32:return!0}return!1}function ed(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function td(e){return q_.test(e)||yA.test(e)}function rd(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function kp(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const NZ=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:EA,assign:Ep,escapeHtml:Fo,escapeRE:IZ,fromCodePoint:Cp,has:SZ,isMdAsciiPunct:rd,isPunctChar:td,isSpace:pr,isString:X_,isValidEntityCode:K_,isWhiteSpace:ed,lib:{mdurl:sZ,ucmicro:uZ},normalizeReference:kp,unescapeAll:xc,unescapeMd:AZ},Symbol.toStringTag,{value:"Module"}));function MZ(e,t,r){let n,a,i,s;const o=e.posMax,u=e.pos;for(e.pos=t+1,n=1;e.pos<o;){if(i=e.src.charCodeAt(e.pos),i===93&&(n--,n===0)){a=!0;break}if(s=e.pos,e.md.inline.skipToken(e),i===91){if(s===e.pos-1)n++;else if(r)return e.pos=u,-1}}let l=-1;return a&&(l=e.pos),e.pos=u,l}function LZ(e,t,r){let n,a=t;const i={ok:!1,pos:0,str:""};if(e.charCodeAt(a)===60){for(a++;a<r;){if(n=e.charCodeAt(a),n===10||n===60)return i;if(n===62)return i.pos=a+1,i.str=xc(e.slice(t+1,a)),i.ok=!0,i;if(n===92&&a+1<r){a+=2;continue}a++}return i}let s=0;for(;a<r&&(n=e.charCodeAt(a),!(n===32||n<32||n===127));){if(n===92&&a+1<r){if(e.charCodeAt(a+1)===32)break;a+=2;continue}if(n===40&&(s++,s>32))return i;if(n===41){if(s===0)break;s--}a++}return t===a||s!==0||(i.str=xc(e.slice(t,a)),i.pos=a,i.ok=!0),i}function BZ(e,t,r,n){let a,i=t;const s={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(n)s.str=n.str,s.marker=n.marker;else{if(i>=r)return s;let o=e.charCodeAt(i);if(o!==34&&o!==39&&o!==40)return s;t++,i++,o===40&&(o=41),s.marker=o}for(;i<r;){if(a=e.charCodeAt(i),a===s.marker)return s.pos=i+1,s.str+=xc(e.slice(t,i)),s.ok=!0,s;if(a===40&&s.marker===41)return s;a===92&&i+1<r&&i++,i++}return s.can_continue=!0,s.str+=xc(e.slice(t,i)),s}const jZ=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:LZ,parseLinkLabel:MZ,parseLinkTitle:BZ},Symbol.toStringTag,{value:"Module"})),ns={};ns.code_inline=function(e,t,r,n,a){const i=e[t];return"<code"+a.renderAttrs(i)+">"+Fo(i.content)+"</code>"},ns.code_block=function(e,t,r,n,a){const i=e[t];return"<pre"+a.renderAttrs(i)+"><code>"+Fo(e[t].content)+`</code></pre>
516
+ `},ns.fence=function(e,t,r,n,a){const i=e[t],s=i.info?xc(i.info).trim():"";let o="",u="";if(s){const f=s.split(/(\s+)/g);o=f[0],u=f.slice(2).join("")}let l;if(r.highlight?l=r.highlight(i.content,o,u)||Fo(i.content):l=Fo(i.content),l.indexOf("<pre")===0)return l+`
517
+ `;if(s){const f=i.attrIndex("class"),d=i.attrs?i.attrs.slice():[];f<0?d.push(["class",r.langPrefix+o]):(d[f]=d[f].slice(),d[f][1]+=" "+r.langPrefix+o);const p={attrs:d};return`<pre><code${a.renderAttrs(p)}>${l}</code></pre>
518
+ `}return`<pre><code${a.renderAttrs(i)}>${l}</code></pre>
519
+ `},ns.image=function(e,t,r,n,a){const i=e[t];return i.attrs[i.attrIndex("alt")][1]=a.renderInlineAsText(i.children,r,n),a.renderToken(e,t,r)},ns.hardbreak=function(e,t,r){return r.xhtmlOut?`<br />
520
+ `:`<br>
521
+ `},ns.softbreak=function(e,t,r){return r.breaks?r.xhtmlOut?`<br />
522
+ `:`<br>
523
+ `:`
524
+ `},ns.text=function(e,t){return Fo(e[t].content)},ns.html_block=function(e,t){return e[t].content},ns.html_inline=function(e,t){return e[t].content};function _c(){this.rules=Ep({},ns)}_c.prototype.renderAttrs=function(t){let r,n,a;if(!t.attrs)return"";for(a="",r=0,n=t.attrs.length;r<n;r++)a+=" "+Fo(t.attrs[r][0])+'="'+Fo(t.attrs[r][1])+'"';return a},_c.prototype.renderToken=function(t,r,n){const a=t[r];let i="";if(a.hidden)return"";a.block&&a.nesting!==-1&&r&&t[r-1].hidden&&(i+=`
525
+ `),i+=(a.nesting===-1?"</":"<")+a.tag,i+=this.renderAttrs(a),a.nesting===0&&n.xhtmlOut&&(i+=" /");let s=!1;if(a.block&&(s=!0,a.nesting===1&&r+1<t.length)){const o=t[r+1];(o.type==="inline"||o.hidden||o.nesting===-1&&o.tag===a.tag)&&(s=!1)}return i+=s?`>
526
+ `:">",i},_c.prototype.renderInline=function(e,t,r){let n="";const a=this.rules;for(let i=0,s=e.length;i<s;i++){const o=e[i].type;typeof a[o]<"u"?n+=a[o](e,i,t,r,this):n+=this.renderToken(e,i,t)}return n},_c.prototype.renderInlineAsText=function(e,t,r){let n="";for(let a=0,i=e.length;a<i;a++)switch(e[a].type){case"text":n+=e[a].content;break;case"image":n+=this.renderInlineAsText(e[a].children,t,r);break;case"html_inline":case"html_block":n+=e[a].content;break;case"softbreak":case"hardbreak":n+=`
527
+ `;break}return n},_c.prototype.render=function(e,t,r){let n="";const a=this.rules;for(let i=0,s=e.length;i<s;i++){const o=e[i].type;o==="inline"?n+=this.renderInline(e[i].children,t,r):typeof a[o]<"u"?n+=a[o](e,i,t,r,this):n+=this.renderToken(e,i,t,r)}return n};function aa(){this.__rules__=[],this.__cache__=null}aa.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},aa.prototype.__compile__=function(){const e=this,t=[""];e.__rules__.forEach(function(r){r.enabled&&r.alt.forEach(function(n){t.indexOf(n)<0&&t.push(n)})}),e.__cache__={},t.forEach(function(r){e.__cache__[r]=[],e.__rules__.forEach(function(n){n.enabled&&(r&&n.alt.indexOf(r)<0||e.__cache__[r].push(n.fn))})})},aa.prototype.at=function(e,t,r){const n=this.__find__(e),a=r||{};if(n===-1)throw new Error("Parser rule not found: "+e);this.__rules__[n].fn=t,this.__rules__[n].alt=a.alt||[],this.__cache__=null},aa.prototype.before=function(e,t,r,n){const a=this.__find__(e),i=n||{};if(a===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(a,0,{name:t,enabled:!0,fn:r,alt:i.alt||[]}),this.__cache__=null},aa.prototype.after=function(e,t,r,n){const a=this.__find__(e),i=n||{};if(a===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(a+1,0,{name:t,enabled:!0,fn:r,alt:i.alt||[]}),this.__cache__=null},aa.prototype.push=function(e,t,r){const n=r||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:n.alt||[]}),this.__cache__=null},aa.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);const r=[];return e.forEach(function(n){const a=this.__find__(n);if(a<0){if(t)return;throw new Error("Rules manager: invalid rule name "+n)}this.__rules__[a].enabled=!0,r.push(n)},this),this.__cache__=null,r},aa.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(r){r.enabled=!1}),this.enable(e,t)},aa.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);const r=[];return e.forEach(function(n){const a=this.__find__(n);if(a<0){if(t)return;throw new Error("Rules manager: invalid rule name "+n)}this.__rules__[a].enabled=!1,r.push(n)},this),this.__cache__=null,r},aa.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function Pi(e,t,r){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=r,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}Pi.prototype.attrIndex=function(t){if(!this.attrs)return-1;const r=this.attrs;for(let n=0,a=r.length;n<a;n++)if(r[n][0]===t)return n;return-1},Pi.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]},Pi.prototype.attrSet=function(t,r){const n=this.attrIndex(t),a=[t,r];n<0?this.attrPush(a):this.attrs[n]=a},Pi.prototype.attrGet=function(t){const r=this.attrIndex(t);let n=null;return r>=0&&(n=this.attrs[r][1]),n},Pi.prototype.attrJoin=function(t,r){const n=this.attrIndex(t);n<0?this.attrPush([t,r]):this.attrs[n][1]=this.attrs[n][1]+" "+r};function kA(e,t,r){this.src=e,this.env=r,this.tokens=[],this.inlineMode=!1,this.md=t}kA.prototype.Token=Pi;const $Z=/\r\n?|\n/g,UZ=/\0/g;function zZ(e){let t;t=e.src.replace($Z,`
528
+ `),t=t.replace(UZ,"�"),e.src=t}function HZ(e){let t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function WZ(e){const t=e.tokens;for(let r=0,n=t.length;r<n;r++){const a=t[r];a.type==="inline"&&e.md.inline.parse(a.content,e.md,e.env,a.children)}}function VZ(e){return/^<a[>\s]/i.test(e)}function qZ(e){return/^<\/a\s*>/i.test(e)}function GZ(e){const t=e.tokens;if(e.md.options.linkify)for(let r=0,n=t.length;r<n;r++){if(t[r].type!=="inline"||!e.md.linkify.pretest(t[r].content))continue;let a=t[r].children,i=0;for(let s=a.length-1;s>=0;s--){const o=a[s];if(o.type==="link_close"){for(s--;a[s].level!==o.level&&a[s].type!=="link_open";)s--;continue}if(o.type==="html_inline"&&(VZ(o.content)&&i>0&&i--,qZ(o.content)&&i++),!(i>0)&&o.type==="text"&&e.md.linkify.test(o.content)){const u=o.content;let l=e.md.linkify.match(u);const f=[];let d=o.level,p=0;l.length>0&&l[0].index===0&&s>0&&a[s-1].type==="text_special"&&(l=l.slice(1));for(let v=0;v<l.length;v++){const _=l[v].url,x=e.md.normalizeLink(_);if(!e.md.validateLink(x))continue;let w=l[v].text;l[v].schema?l[v].schema==="mailto:"&&!/^mailto:/i.test(w)?w=e.md.normalizeLinkText("mailto:"+w).replace(/^mailto:/,""):w=e.md.normalizeLinkText(w):w=e.md.normalizeLinkText("http://"+w).replace(/^http:\/\//,"");const C=l[v].index;if(C>p){const g=new e.Token("text","",0);g.content=u.slice(p,C),g.level=d,f.push(g)}const E=new e.Token("link_open","a",1);E.attrs=[["href",x]],E.level=d++,E.markup="linkify",E.info="auto",f.push(E);const b=new e.Token("text","",0);b.content=w,b.level=d,f.push(b);const h=new e.Token("link_close","a",-1);h.level=--d,h.markup="linkify",h.info="auto",f.push(h),p=l[v].lastIndex}if(p<u.length){const v=new e.Token("text","",0);v.content=u.slice(p),v.level=d,f.push(v)}t[r].children=a=EA(a,s,f)}}}}const TA=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,YZ=/\((c|tm|r)\)/i,XZ=/\((c|tm|r)\)/ig,KZ={c:"©",r:"®",tm:"™"};function ZZ(e,t){return KZ[t.toLowerCase()]}function JZ(e){let t=0;for(let r=e.length-1;r>=0;r--){const n=e[r];n.type==="text"&&!t&&(n.content=n.content.replace(XZ,ZZ)),n.type==="link_open"&&n.info==="auto"&&t--,n.type==="link_close"&&n.info==="auto"&&t++}}function QZ(e){let t=0;for(let r=e.length-1;r>=0;r--){const n=e[r];n.type==="text"&&!t&&TA.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),n.type==="link_open"&&n.info==="auto"&&t--,n.type==="link_close"&&n.info==="auto"&&t++}}function eJ(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(YZ.test(e.tokens[t].content)&&JZ(e.tokens[t].children),TA.test(e.tokens[t].content)&&QZ(e.tokens[t].children))}const tJ=/['"]/,AA=/['"]/g,FA="’";function Tp(e,t,r){return e.slice(0,t)+r+e.slice(t+1)}function rJ(e,t){let r;const n=[];for(let a=0;a<e.length;a++){const i=e[a],s=e[a].level;for(r=n.length-1;r>=0&&!(n[r].level<=s);r--);if(n.length=r+1,i.type!=="text")continue;let o=i.content,u=0,l=o.length;e:for(;u<l;){AA.lastIndex=u;const f=AA.exec(o);if(!f)break;let d=!0,p=!0;u=f.index+1;const v=f[0]==="'";let _=32;if(f.index-1>=0)_=o.charCodeAt(f.index-1);else for(r=a-1;r>=0&&!(e[r].type==="softbreak"||e[r].type==="hardbreak");r--)if(e[r].content){_=e[r].content.charCodeAt(e[r].content.length-1);break}let x=32;if(u<l)x=o.charCodeAt(u);else for(r=a+1;r<e.length&&!(e[r].type==="softbreak"||e[r].type==="hardbreak");r++)if(e[r].content){x=e[r].content.charCodeAt(0);break}const w=rd(_)||td(String.fromCharCode(_)),C=rd(x)||td(String.fromCharCode(x)),E=ed(_),b=ed(x);if(b?d=!1:C&&(E||w||(d=!1)),E?p=!1:w&&(b||C||(p=!1)),x===34&&f[0]==='"'&&_>=48&&_<=57&&(p=d=!1),d&&p&&(d=w,p=C),!d&&!p){v&&(i.content=Tp(i.content,f.index,FA));continue}if(p)for(r=n.length-1;r>=0;r--){let h=n[r];if(n[r].level<s)break;if(h.single===v&&n[r].level===s){h=n[r];let g,y;v?(g=t.md.options.quotes[2],y=t.md.options.quotes[3]):(g=t.md.options.quotes[0],y=t.md.options.quotes[1]),i.content=Tp(i.content,f.index,y),e[h.token].content=Tp(e[h.token].content,h.pos,g),u+=y.length-1,h.token===a&&(u+=g.length-1),o=i.content,l=o.length,n.length=r;continue e}}d?n.push({token:a,pos:f.index,single:v,level:s}):p&&v&&(i.content=Tp(i.content,f.index,FA))}}}function nJ(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!tJ.test(e.tokens[t].content)||rJ(e.tokens[t].children,e)}function aJ(e){let t,r;const n=e.tokens,a=n.length;for(let i=0;i<a;i++){if(n[i].type!=="inline")continue;const s=n[i].children,o=s.length;for(t=0;t<o;t++)s[t].type==="text_special"&&(s[t].type="text");for(t=r=0;t<o;t++)s[t].type==="text"&&t+1<o&&s[t+1].type==="text"?s[t+1].content=s[t].content+s[t+1].content:(t!==r&&(s[r]=s[t]),r++);t!==r&&(s.length=r)}}const Z_=[["normalize",zZ],["block",HZ],["inline",WZ],["linkify",GZ],["replacements",eJ],["smartquotes",nJ],["text_join",aJ]];function J_(){this.ruler=new aa;for(let e=0;e<Z_.length;e++)this.ruler.push(Z_[e][0],Z_[e][1])}J_.prototype.process=function(e){const t=this.ruler.getRules("");for(let r=0,n=t.length;r<n;r++)t[r](e)},J_.prototype.State=kA;function as(e,t,r,n){this.src=e,this.md=t,this.env=r,this.tokens=n,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const a=this.src;for(let i=0,s=0,o=0,u=0,l=a.length,f=!1;s<l;s++){const d=a.charCodeAt(s);if(!f)if(pr(d)){o++,d===9?u+=4-u%4:u++;continue}else f=!0;(d===10||s===l-1)&&(d!==10&&s++,this.bMarks.push(i),this.eMarks.push(s),this.tShift.push(o),this.sCount.push(u),this.bsCount.push(0),f=!1,o=0,u=0,i=s+1)}this.bMarks.push(a.length),this.eMarks.push(a.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}as.prototype.push=function(e,t,r){const n=new Pi(e,t,r);return n.block=!0,r<0&&this.level--,n.level=this.level,r>0&&this.level++,this.tokens.push(n),n},as.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]},as.prototype.skipEmptyLines=function(t){for(let r=this.lineMax;t<r&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t},as.prototype.skipSpaces=function(t){for(let r=this.src.length;t<r;t++){const n=this.src.charCodeAt(t);if(!pr(n))break}return t},as.prototype.skipSpacesBack=function(t,r){if(t<=r)return t;for(;t>r;)if(!pr(this.src.charCodeAt(--t)))return t+1;return t},as.prototype.skipChars=function(t,r){for(let n=this.src.length;t<n&&this.src.charCodeAt(t)===r;t++);return t},as.prototype.skipCharsBack=function(t,r,n){if(t<=n)return t;for(;t>n;)if(r!==this.src.charCodeAt(--t))return t+1;return t},as.prototype.getLines=function(t,r,n,a){if(t>=r)return"";const i=new Array(r-t);for(let s=0,o=t;o<r;o++,s++){let u=0;const l=this.bMarks[o];let f=l,d;for(o+1<r||a?d=this.eMarks[o]+1:d=this.eMarks[o];f<d&&u<n;){const p=this.src.charCodeAt(f);if(pr(p))p===9?u+=4-(u+this.bsCount[o])%4:u++;else if(f-l<this.tShift[o])u++;else break;f++}u>n?i[s]=new Array(u-n+1).join(" ")+this.src.slice(f,d):i[s]=this.src.slice(f,d)}return i.join("")},as.prototype.Token=Pi;const iJ=65536;function Q_(e,t){const r=e.bMarks[t]+e.tShift[t],n=e.eMarks[t];return e.src.slice(r,n)}function OA(e){const t=[],r=e.length;let n=0,a=e.charCodeAt(n),i=!1,s=0,o="";for(;n<r;)a===124&&(i?(o+=e.substring(s,n-1),s=n):(t.push(o+e.substring(s,n)),o="",s=n+1)),i=a===92,n++,a=e.charCodeAt(n);return t.push(o+e.substring(s)),t}function sJ(e,t,r,n){if(t+2>r)return!1;let a=t+1;if(e.sCount[a]<e.blkIndent||e.sCount[a]-e.blkIndent>=4)return!1;let i=e.bMarks[a]+e.tShift[a];if(i>=e.eMarks[a])return!1;const s=e.src.charCodeAt(i++);if(s!==124&&s!==45&&s!==58||i>=e.eMarks[a])return!1;const o=e.src.charCodeAt(i++);if(o!==124&&o!==45&&o!==58&&!pr(o)||s===45&&pr(o))return!1;for(;i<e.eMarks[a];){const h=e.src.charCodeAt(i);if(h!==124&&h!==45&&h!==58&&!pr(h))return!1;i++}let u=Q_(e,t+1),l=u.split("|");const f=[];for(let h=0;h<l.length;h++){const g=l[h].trim();if(!g){if(h===0||h===l.length-1)continue;return!1}if(!/^:?-+:?$/.test(g))return!1;g.charCodeAt(g.length-1)===58?f.push(g.charCodeAt(0)===58?"center":"right"):g.charCodeAt(0)===58?f.push("left"):f.push("")}if(u=Q_(e,t).trim(),u.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4)return!1;l=OA(u),l.length&&l[0]===""&&l.shift(),l.length&&l[l.length-1]===""&&l.pop();const d=l.length;if(d===0||d!==f.length)return!1;if(n)return!0;const p=e.parentType;e.parentType="table";const v=e.md.block.ruler.getRules("blockquote"),_=e.push("table_open","table",1),x=[t,0];_.map=x;const w=e.push("thead_open","thead",1);w.map=[t,t+1];const C=e.push("tr_open","tr",1);C.map=[t,t+1];for(let h=0;h<l.length;h++){const g=e.push("th_open","th",1);f[h]&&(g.attrs=[["style","text-align:"+f[h]]]);const y=e.push("inline","",0);y.content=l[h].trim(),y.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let E,b=0;for(a=t+2;a<r&&!(e.sCount[a]<e.blkIndent);a++){let h=!1;for(let y=0,S=v.length;y<S;y++)if(v[y](e,a,r,!0)){h=!0;break}if(h||(u=Q_(e,a).trim(),!u)||e.sCount[a]-e.blkIndent>=4||(l=OA(u),l.length&&l[0]===""&&l.shift(),l.length&&l[l.length-1]===""&&l.pop(),b+=d-l.length,b>iJ))break;if(a===t+2){const y=e.push("tbody_open","tbody",1);y.map=E=[t+2,0]}const g=e.push("tr_open","tr",1);g.map=[a,a+1];for(let y=0;y<d;y++){const S=e.push("td_open","td",1);f[y]&&(S.attrs=[["style","text-align:"+f[y]]]);const A=e.push("inline","",0);A.content=l[y]?l[y].trim():"",A.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return E&&(e.push("tbody_close","tbody",-1),E[1]=a),e.push("table_close","table",-1),x[1]=a,e.parentType=p,e.line=a,!0}function oJ(e,t,r){if(e.sCount[t]-e.blkIndent<4)return!1;let n=t+1,a=n;for(;n<r;){if(e.isEmpty(n)){n++;continue}if(e.sCount[n]-e.blkIndent>=4){n++,a=n;continue}break}e.line=a;const i=e.push("code_block","code",0);return i.content=e.getLines(t,a,4+e.blkIndent,!1)+`
529
+ `,i.map=[t,e.line],!0}function uJ(e,t,r,n){let a=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||a+3>i)return!1;const s=e.src.charCodeAt(a);if(s!==126&&s!==96)return!1;let o=a;a=e.skipChars(a,s);let u=a-o;if(u<3)return!1;const l=e.src.slice(o,a),f=e.src.slice(a,i);if(s===96&&f.indexOf(String.fromCharCode(s))>=0)return!1;if(n)return!0;let d=t,p=!1;for(;d++,!(d>=r||(a=o=e.bMarks[d]+e.tShift[d],i=e.eMarks[d],a<i&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(a)===s&&!(e.sCount[d]-e.blkIndent>=4)&&(a=e.skipChars(a,s),!(a-o<u)&&(a=e.skipSpaces(a),!(a<i)))){p=!0;break}u=e.sCount[t],e.line=d+(p?1:0);const v=e.push("fence","code",0);return v.info=f,v.content=e.getLines(t+1,d,u,!0),v.markup=l,v.map=[t,e.line],!0}function lJ(e,t,r,n){let a=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];const s=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(a)!==62)return!1;if(n)return!0;const o=[],u=[],l=[],f=[],d=e.md.block.ruler.getRules("blockquote"),p=e.parentType;e.parentType="blockquote";let v=!1,_;for(_=t;_<r;_++){const b=e.sCount[_]<e.blkIndent;if(a=e.bMarks[_]+e.tShift[_],i=e.eMarks[_],a>=i)break;if(e.src.charCodeAt(a++)===62&&!b){let g=e.sCount[_]+1,y,S;e.src.charCodeAt(a)===32?(a++,g++,S=!1,y=!0):e.src.charCodeAt(a)===9?(y=!0,(e.bsCount[_]+g)%4===3?(a++,g++,S=!1):S=!0):y=!1;let A=g;for(o.push(e.bMarks[_]),e.bMarks[_]=a;a<i;){const k=e.src.charCodeAt(a);if(pr(k))k===9?A+=4-(A+e.bsCount[_]+(S?1:0))%4:A++;else break;a++}v=a>=i,u.push(e.bsCount[_]),e.bsCount[_]=e.sCount[_]+1+(y?1:0),l.push(e.sCount[_]),e.sCount[_]=A-g,f.push(e.tShift[_]),e.tShift[_]=a-e.bMarks[_];continue}if(v)break;let h=!1;for(let g=0,y=d.length;g<y;g++)if(d[g](e,_,r,!0)){h=!0;break}if(h){e.lineMax=_,e.blkIndent!==0&&(o.push(e.bMarks[_]),u.push(e.bsCount[_]),f.push(e.tShift[_]),l.push(e.sCount[_]),e.sCount[_]-=e.blkIndent);break}o.push(e.bMarks[_]),u.push(e.bsCount[_]),f.push(e.tShift[_]),l.push(e.sCount[_]),e.sCount[_]=-1}const x=e.blkIndent;e.blkIndent=0;const w=e.push("blockquote_open","blockquote",1);w.markup=">";const C=[t,0];w.map=C,e.md.block.tokenize(e,t,_);const E=e.push("blockquote_close","blockquote",-1);E.markup=">",e.lineMax=s,e.parentType=p,C[1]=e.line;for(let b=0;b<f.length;b++)e.bMarks[b+t]=o[b],e.tShift[b+t]=f[b],e.sCount[b+t]=l[b],e.bsCount[b+t]=u[b];return e.blkIndent=x,!0}function cJ(e,t,r,n){const a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let i=e.bMarks[t]+e.tShift[t];const s=e.src.charCodeAt(i++);if(s!==42&&s!==45&&s!==95)return!1;let o=1;for(;i<a;){const l=e.src.charCodeAt(i++);if(l!==s&&!pr(l))return!1;l===s&&o++}if(o<3)return!1;if(n)return!0;e.line=t+1;const u=e.push("hr","hr",0);return u.map=[t,e.line],u.markup=Array(o+1).join(String.fromCharCode(s)),!0}function PA(e,t){const r=e.eMarks[t];let n=e.bMarks[t]+e.tShift[t];const a=e.src.charCodeAt(n++);if(a!==42&&a!==45&&a!==43)return-1;if(n<r){const i=e.src.charCodeAt(n);if(!pr(i))return-1}return n}function DA(e,t){const r=e.bMarks[t]+e.tShift[t],n=e.eMarks[t];let a=r;if(a+1>=n)return-1;let i=e.src.charCodeAt(a++);if(i<48||i>57)return-1;for(;;){if(a>=n)return-1;if(i=e.src.charCodeAt(a++),i>=48&&i<=57){if(a-r>=10)return-1;continue}if(i===41||i===46)break;return-1}return a<n&&(i=e.src.charCodeAt(a),!pr(i))?-1:a}function fJ(e,t){const r=e.level+2;for(let n=t+2,a=e.tokens.length-2;n<a;n++)e.tokens[n].level===r&&e.tokens[n].type==="paragraph_open"&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)}function dJ(e,t,r,n){let a,i,s,o,u=t,l=!0;if(e.sCount[u]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[u]-e.listIndent>=4&&e.sCount[u]<e.blkIndent)return!1;let f=!1;n&&e.parentType==="paragraph"&&e.sCount[u]>=e.blkIndent&&(f=!0);let d,p,v;if((v=DA(e,u))>=0){if(d=!0,s=e.bMarks[u]+e.tShift[u],p=Number(e.src.slice(s,v-1)),f&&p!==1)return!1}else if((v=PA(e,u))>=0)d=!1;else return!1;if(f&&e.skipSpaces(v)>=e.eMarks[u])return!1;if(n)return!0;const _=e.src.charCodeAt(v-1),x=e.tokens.length;d?(o=e.push("ordered_list_open","ol",1),p!==1&&(o.attrs=[["start",p]])):o=e.push("bullet_list_open","ul",1);const w=[u,0];o.map=w,o.markup=String.fromCharCode(_);let C=!1;const E=e.md.block.ruler.getRules("list"),b=e.parentType;for(e.parentType="list";u<r;){i=v,a=e.eMarks[u];const h=e.sCount[u]+v-(e.bMarks[u]+e.tShift[u]);let g=h;for(;i<a;){const B=e.src.charCodeAt(i);if(B===9)g+=4-(g+e.bsCount[u])%4;else if(B===32)g++;else break;i++}const y=i;let S;y>=a?S=1:S=g-h,S>4&&(S=1);const A=h+S;o=e.push("list_item_open","li",1),o.markup=String.fromCharCode(_);const k=[u,0];o.map=k,d&&(o.info=e.src.slice(s,v-1));const F=e.tight,P=e.tShift[u],j=e.sCount[u],N=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=A,e.tight=!0,e.tShift[u]=y-e.bMarks[u],e.sCount[u]=g,y>=a&&e.isEmpty(u+1)?e.line=Math.min(e.line+2,r):e.md.block.tokenize(e,u,r,!0),(!e.tight||C)&&(l=!1),C=e.line-u>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=N,e.tShift[u]=P,e.sCount[u]=j,e.tight=F,o=e.push("list_item_close","li",-1),o.markup=String.fromCharCode(_),u=e.line,k[1]=u,u>=r||e.sCount[u]<e.blkIndent||e.sCount[u]-e.blkIndent>=4)break;let I=!1;for(let B=0,O=E.length;B<O;B++)if(E[B](e,u,r,!0)){I=!0;break}if(I)break;if(d){if(v=DA(e,u),v<0)break;s=e.bMarks[u]+e.tShift[u]}else if(v=PA(e,u),v<0)break;if(_!==e.src.charCodeAt(v-1))break}return d?o=e.push("ordered_list_close","ol",-1):o=e.push("bullet_list_close","ul",-1),o.markup=String.fromCharCode(_),w[1]=u,e.line=u,e.parentType=b,l&&fJ(e,x),!0}function hJ(e,t,r,n){let a=e.bMarks[t]+e.tShift[t],i=e.eMarks[t],s=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(a)!==91)return!1;function o(E){const b=e.lineMax;if(E>=b||e.isEmpty(E))return null;let h=!1;if(e.sCount[E]-e.blkIndent>3&&(h=!0),e.sCount[E]<0&&(h=!0),!h){const S=e.md.block.ruler.getRules("reference"),A=e.parentType;e.parentType="reference";let k=!1;for(let F=0,P=S.length;F<P;F++)if(S[F](e,E,b,!0)){k=!0;break}if(e.parentType=A,k)return null}const g=e.bMarks[E]+e.tShift[E],y=e.eMarks[E];return e.src.slice(g,y+1)}let u=e.src.slice(a,i+1);i=u.length;let l=-1;for(a=1;a<i;a++){const E=u.charCodeAt(a);if(E===91)return!1;if(E===93){l=a;break}else if(E===10){const b=o(s);b!==null&&(u+=b,i=u.length,s++)}else if(E===92&&(a++,a<i&&u.charCodeAt(a)===10)){const b=o(s);b!==null&&(u+=b,i=u.length,s++)}}if(l<0||u.charCodeAt(l+1)!==58)return!1;for(a=l+2;a<i;a++){const E=u.charCodeAt(a);if(E===10){const b=o(s);b!==null&&(u+=b,i=u.length,s++)}else if(!pr(E))break}const f=e.md.helpers.parseLinkDestination(u,a,i);if(!f.ok)return!1;const d=e.md.normalizeLink(f.str);if(!e.md.validateLink(d))return!1;a=f.pos;const p=a,v=s,_=a;for(;a<i;a++){const E=u.charCodeAt(a);if(E===10){const b=o(s);b!==null&&(u+=b,i=u.length,s++)}else if(!pr(E))break}let x=e.md.helpers.parseLinkTitle(u,a,i);for(;x.can_continue;){const E=o(s);if(E===null)break;u+=E,a=i,i=u.length,s++,x=e.md.helpers.parseLinkTitle(u,a,i,x)}let w;for(a<i&&_!==a&&x.ok?(w=x.str,a=x.pos):(w="",a=p,s=v);a<i;){const E=u.charCodeAt(a);if(!pr(E))break;a++}if(a<i&&u.charCodeAt(a)!==10&&w)for(w="",a=p,s=v;a<i;){const E=u.charCodeAt(a);if(!pr(E))break;a++}if(a<i&&u.charCodeAt(a)!==10)return!1;const C=kp(u.slice(1,l));return C?(n||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[C]>"u"&&(e.env.references[C]={title:w,href:d}),e.line=s),!0):!1}const pJ=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],mJ="[a-zA-Z_:][a-zA-Z0-9:._-]*",gJ="(?:"+"[^\"'=<>`\\x00-\\x20]+"+"|"+"'[^']*'"+"|"+'"[^"]*"'+")",RA="<[A-Za-z][A-Za-z0-9\\-]*"+("(?:\\s+"+mJ+"(?:\\s*=\\s*"+gJ+")?)")+"*\\s*\\/?>",IA="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",vJ="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",xJ="<[?][\\s\\S]*?[?]>",_J="<![A-Za-z][^>]*>",yJ="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",bJ=new RegExp("^(?:"+RA+"|"+IA+"|"+vJ+"|"+xJ+"|"+_J+"|"+yJ+")"),wJ=new RegExp("^(?:"+RA+"|"+IA+")"),yc=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+pJ.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(wJ.source+"\\s*$"),/^$/,!1]];function SJ(e,t,r,n){let a=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(a)!==60)return!1;let s=e.src.slice(a,i),o=0;for(;o<yc.length&&!yc[o][0].test(s);o++);if(o===yc.length)return!1;if(n)return yc[o][2];let u=t+1;if(!yc[o][1].test(s)){for(;u<r&&!(e.sCount[u]<e.blkIndent);u++)if(a=e.bMarks[u]+e.tShift[u],i=e.eMarks[u],s=e.src.slice(a,i),yc[o][1].test(s)){s.length!==0&&u++;break}}e.line=u;const l=e.push("html_block","",0);return l.map=[t,u],l.content=e.getLines(t,u,e.blkIndent,!0),!0}function EJ(e,t,r,n){let a=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let s=e.src.charCodeAt(a);if(s!==35||a>=i)return!1;let o=1;for(s=e.src.charCodeAt(++a);s===35&&a<i&&o<=6;)o++,s=e.src.charCodeAt(++a);if(o>6||a<i&&!pr(s))return!1;if(n)return!0;i=e.skipSpacesBack(i,a);const u=e.skipCharsBack(i,35,a);u>a&&pr(e.src.charCodeAt(u-1))&&(i=u),e.line=t+1;const l=e.push("heading_open","h"+String(o),1);l.markup="########".slice(0,o),l.map=[t,e.line];const f=e.push("inline","",0);f.content=e.src.slice(a,i).trim(),f.map=[t,e.line],f.children=[];const d=e.push("heading_close","h"+String(o),-1);return d.markup="########".slice(0,o),!0}function CJ(e,t,r){const n=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const a=e.parentType;e.parentType="paragraph";let i=0,s,o=t+1;for(;o<r&&!e.isEmpty(o);o++){if(e.sCount[o]-e.blkIndent>3)continue;if(e.sCount[o]>=e.blkIndent){let v=e.bMarks[o]+e.tShift[o];const _=e.eMarks[o];if(v<_&&(s=e.src.charCodeAt(v),(s===45||s===61)&&(v=e.skipChars(v,s),v=e.skipSpaces(v),v>=_))){i=s===61?1:2;break}}if(e.sCount[o]<0)continue;let p=!1;for(let v=0,_=n.length;v<_;v++)if(n[v](e,o,r,!0)){p=!0;break}if(p)break}if(!i)return!1;const u=e.getLines(t,o,e.blkIndent,!1).trim();e.line=o+1;const l=e.push("heading_open","h"+String(i),1);l.markup=String.fromCharCode(s),l.map=[t,e.line];const f=e.push("inline","",0);f.content=u,f.map=[t,e.line-1],f.children=[];const d=e.push("heading_close","h"+String(i),-1);return d.markup=String.fromCharCode(s),e.parentType=a,!0}function kJ(e,t,r){const n=e.md.block.ruler.getRules("paragraph"),a=e.parentType;let i=t+1;for(e.parentType="paragraph";i<r&&!e.isEmpty(i);i++){if(e.sCount[i]-e.blkIndent>3||e.sCount[i]<0)continue;let l=!1;for(let f=0,d=n.length;f<d;f++)if(n[f](e,i,r,!0)){l=!0;break}if(l)break}const s=e.getLines(t,i,e.blkIndent,!1).trim();e.line=i;const o=e.push("paragraph_open","p",1);o.map=[t,e.line];const u=e.push("inline","",0);return u.content=s,u.map=[t,e.line],u.children=[],e.push("paragraph_close","p",-1),e.parentType=a,!0}const Ap=[["table",sJ,["paragraph","reference"]],["code",oJ],["fence",uJ,["paragraph","reference","blockquote","list"]],["blockquote",lJ,["paragraph","reference","blockquote","list"]],["hr",cJ,["paragraph","reference","blockquote","list"]],["list",dJ,["paragraph","reference","blockquote"]],["reference",hJ],["html_block",SJ,["paragraph","reference","blockquote"]],["heading",EJ,["paragraph","reference","blockquote"]],["lheading",CJ],["paragraph",kJ]];function Fp(){this.ruler=new aa;for(let e=0;e<Ap.length;e++)this.ruler.push(Ap[e][0],Ap[e][1],{alt:(Ap[e][2]||[]).slice()})}Fp.prototype.tokenize=function(e,t,r){const n=this.ruler.getRules(""),a=n.length,i=e.md.options.maxNesting;let s=t,o=!1;for(;s<r&&(e.line=s=e.skipEmptyLines(s),!(s>=r||e.sCount[s]<e.blkIndent));){if(e.level>=i){e.line=r;break}const u=e.line;let l=!1;for(let f=0;f<a;f++)if(l=n[f](e,s,r,!1),l){if(u>=e.line)throw new Error("block rule didn't increment state.line");break}if(!l)throw new Error("none of the block rules matched");e.tight=!o,e.isEmpty(e.line-1)&&(o=!0),s=e.line,s<r&&e.isEmpty(s)&&(o=!0,s++,e.line=s)}},Fp.prototype.parse=function(e,t,r,n){if(!e)return;const a=new this.State(e,t,r,n);this.tokenize(a,a.line,a.lineMax)},Fp.prototype.State=as;function nd(e,t,r,n){this.src=e,this.env=r,this.md=t,this.tokens=n,this.tokens_meta=Array(n.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}nd.prototype.pushPending=function(){const e=new Pi("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},nd.prototype.push=function(e,t,r){this.pending&&this.pushPending();const n=new Pi(e,t,r);let a=null;return r<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),n.level=this.level,r>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],a={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(n),this.tokens_meta.push(a),n},nd.prototype.scanDelims=function(e,t){const r=this.posMax,n=this.src.charCodeAt(e),a=e>0?this.src.charCodeAt(e-1):32;let i=e;for(;i<r&&this.src.charCodeAt(i)===n;)i++;const s=i-e,o=i<r?this.src.charCodeAt(i):32,u=rd(a)||td(String.fromCharCode(a)),l=rd(o)||td(String.fromCharCode(o)),f=ed(a),d=ed(o),p=!d&&(!l||f||u),v=!f&&(!u||d||l);return{can_open:p&&(t||!v||u),can_close:v&&(t||!p||l),length:s}},nd.prototype.Token=Pi;function TJ(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function AJ(e,t){let r=e.pos;for(;r<e.posMax&&!TJ(e.src.charCodeAt(r));)r++;return r===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,r)),e.pos=r,!0)}const FJ=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function OJ(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;const r=e.pos,n=e.posMax;if(r+3>n||e.src.charCodeAt(r)!==58||e.src.charCodeAt(r+1)!==47||e.src.charCodeAt(r+2)!==47)return!1;const a=e.pending.match(FJ);if(!a)return!1;const i=a[1],s=e.md.linkify.matchAtStart(e.src.slice(r-i.length));if(!s)return!1;let o=s.url;if(o.length<=i.length)return!1;o=o.replace(/\*+$/,"");const u=e.md.normalizeLink(o);if(!e.md.validateLink(u))return!1;if(!t){e.pending=e.pending.slice(0,-i.length);const l=e.push("link_open","a",1);l.attrs=[["href",u]],l.markup="linkify",l.info="auto";const f=e.push("text","",0);f.content=e.md.normalizeLinkText(o);const d=e.push("link_close","a",-1);d.markup="linkify",d.info="auto"}return e.pos+=o.length-i.length,!0}function PJ(e,t){let r=e.pos;if(e.src.charCodeAt(r)!==10)return!1;const n=e.pending.length-1,a=e.posMax;if(!t)if(n>=0&&e.pending.charCodeAt(n)===32)if(n>=1&&e.pending.charCodeAt(n-1)===32){let i=n-1;for(;i>=1&&e.pending.charCodeAt(i-1)===32;)i--;e.pending=e.pending.slice(0,i),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(r++;r<a&&pr(e.src.charCodeAt(r));)r++;return e.pos=r,!0}const ey=[];for(let e=0;e<256;e++)ey.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){ey[e.charCodeAt(0)]=1});function DJ(e,t){let r=e.pos;const n=e.posMax;if(e.src.charCodeAt(r)!==92||(r++,r>=n))return!1;let a=e.src.charCodeAt(r);if(a===10){for(t||e.push("hardbreak","br",0),r++;r<n&&(a=e.src.charCodeAt(r),!!pr(a));)r++;return e.pos=r,!0}let i=e.src[r];if(a>=55296&&a<=56319&&r+1<n){const o=e.src.charCodeAt(r+1);o>=56320&&o<=57343&&(i+=e.src[r+1],r++)}const s="\\"+i;if(!t){const o=e.push("text_special","",0);a<256&&ey[a]!==0?o.content=i:o.content=s,o.markup=s,o.info="escape"}return e.pos=r+1,!0}function RJ(e,t){let r=e.pos;if(e.src.charCodeAt(r)!==96)return!1;const a=r;r++;const i=e.posMax;for(;r<i&&e.src.charCodeAt(r)===96;)r++;const s=e.src.slice(a,r),o=s.length;if(e.backticksScanned&&(e.backticks[o]||0)<=a)return t||(e.pending+=s),e.pos+=o,!0;let u=r,l;for(;(l=e.src.indexOf("`",u))!==-1;){for(u=l+1;u<i&&e.src.charCodeAt(u)===96;)u++;const f=u-l;if(f===o){if(!t){const d=e.push("code_inline","code",0);d.markup=s,d.content=e.src.slice(r,l).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=u,!0}e.backticks[f]=l}return e.backticksScanned=!0,t||(e.pending+=s),e.pos+=o,!0}function IJ(e,t){const r=e.pos,n=e.src.charCodeAt(r);if(t||n!==126)return!1;const a=e.scanDelims(e.pos,!0);let i=a.length;const s=String.fromCharCode(n);if(i<2)return!1;let o;i%2&&(o=e.push("text","",0),o.content=s,i--);for(let u=0;u<i;u+=2)o=e.push("text","",0),o.content=s+s,e.delimiters.push({marker:n,length:0,token:e.tokens.length-1,end:-1,open:a.can_open,close:a.can_close});return e.pos+=a.length,!0}function NA(e,t){let r;const n=[],a=t.length;for(let i=0;i<a;i++){const s=t[i];if(s.marker!==126||s.end===-1)continue;const o=t[s.end];r=e.tokens[s.token],r.type="s_open",r.tag="s",r.nesting=1,r.markup="~~",r.content="",r=e.tokens[o.token],r.type="s_close",r.tag="s",r.nesting=-1,r.markup="~~",r.content="",e.tokens[o.token-1].type==="text"&&e.tokens[o.token-1].content==="~"&&n.push(o.token-1)}for(;n.length;){const i=n.pop();let s=i+1;for(;s<e.tokens.length&&e.tokens[s].type==="s_close";)s++;s--,i!==s&&(r=e.tokens[s],e.tokens[s]=e.tokens[i],e.tokens[i]=r)}}function NJ(e){const t=e.tokens_meta,r=e.tokens_meta.length;NA(e,e.delimiters);for(let n=0;n<r;n++)t[n]&&t[n].delimiters&&NA(e,t[n].delimiters)}const MA={tokenize:IJ,postProcess:NJ};function MJ(e,t){const r=e.pos,n=e.src.charCodeAt(r);if(t||n!==95&&n!==42)return!1;const a=e.scanDelims(e.pos,n===42);for(let i=0;i<a.length;i++){const s=e.push("text","",0);s.content=String.fromCharCode(n),e.delimiters.push({marker:n,length:a.length,token:e.tokens.length-1,end:-1,open:a.can_open,close:a.can_close})}return e.pos+=a.length,!0}function LA(e,t){const r=t.length;for(let n=r-1;n>=0;n--){const a=t[n];if(a.marker!==95&&a.marker!==42||a.end===-1)continue;const i=t[a.end],s=n>0&&t[n-1].end===a.end+1&&t[n-1].marker===a.marker&&t[n-1].token===a.token-1&&t[a.end+1].token===i.token+1,o=String.fromCharCode(a.marker),u=e.tokens[a.token];u.type=s?"strong_open":"em_open",u.tag=s?"strong":"em",u.nesting=1,u.markup=s?o+o:o,u.content="";const l=e.tokens[i.token];l.type=s?"strong_close":"em_close",l.tag=s?"strong":"em",l.nesting=-1,l.markup=s?o+o:o,l.content="",s&&(e.tokens[t[n-1].token].content="",e.tokens[t[a.end+1].token].content="",n--)}}function LJ(e){const t=e.tokens_meta,r=e.tokens_meta.length;LA(e,e.delimiters);for(let n=0;n<r;n++)t[n]&&t[n].delimiters&&LA(e,t[n].delimiters)}const BA={tokenize:MJ,postProcess:LJ};function BJ(e,t){let r,n,a,i,s="",o="",u=e.pos,l=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;const f=e.pos,d=e.posMax,p=e.pos+1,v=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(v<0)return!1;let _=v+1;if(_<d&&e.src.charCodeAt(_)===40){for(l=!1,_++;_<d&&(r=e.src.charCodeAt(_),!(!pr(r)&&r!==10));_++);if(_>=d)return!1;if(u=_,a=e.md.helpers.parseLinkDestination(e.src,_,e.posMax),a.ok){for(s=e.md.normalizeLink(a.str),e.md.validateLink(s)?_=a.pos:s="",u=_;_<d&&(r=e.src.charCodeAt(_),!(!pr(r)&&r!==10));_++);if(a=e.md.helpers.parseLinkTitle(e.src,_,e.posMax),_<d&&u!==_&&a.ok)for(o=a.str,_=a.pos;_<d&&(r=e.src.charCodeAt(_),!(!pr(r)&&r!==10));_++);}(_>=d||e.src.charCodeAt(_)!==41)&&(l=!0),_++}if(l){if(typeof e.env.references>"u")return!1;if(_<d&&e.src.charCodeAt(_)===91?(u=_+1,_=e.md.helpers.parseLinkLabel(e,_),_>=0?n=e.src.slice(u,_++):_=v+1):_=v+1,n||(n=e.src.slice(p,v)),i=e.env.references[kp(n)],!i)return e.pos=f,!1;s=i.href,o=i.title}if(!t){e.pos=p,e.posMax=v;const x=e.push("link_open","a",1),w=[["href",s]];x.attrs=w,o&&w.push(["title",o]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=_,e.posMax=d,!0}function jJ(e,t){let r,n,a,i,s,o,u,l,f="";const d=e.pos,p=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const v=e.pos+2,_=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(_<0)return!1;if(i=_+1,i<p&&e.src.charCodeAt(i)===40){for(i++;i<p&&(r=e.src.charCodeAt(i),!(!pr(r)&&r!==10));i++);if(i>=p)return!1;for(l=i,o=e.md.helpers.parseLinkDestination(e.src,i,e.posMax),o.ok&&(f=e.md.normalizeLink(o.str),e.md.validateLink(f)?i=o.pos:f=""),l=i;i<p&&(r=e.src.charCodeAt(i),!(!pr(r)&&r!==10));i++);if(o=e.md.helpers.parseLinkTitle(e.src,i,e.posMax),i<p&&l!==i&&o.ok)for(u=o.str,i=o.pos;i<p&&(r=e.src.charCodeAt(i),!(!pr(r)&&r!==10));i++);else u="";if(i>=p||e.src.charCodeAt(i)!==41)return e.pos=d,!1;i++}else{if(typeof e.env.references>"u")return!1;if(i<p&&e.src.charCodeAt(i)===91?(l=i+1,i=e.md.helpers.parseLinkLabel(e,i),i>=0?a=e.src.slice(l,i++):i=_+1):i=_+1,a||(a=e.src.slice(v,_)),s=e.env.references[kp(a)],!s)return e.pos=d,!1;f=s.href,u=s.title}if(!t){n=e.src.slice(v,_);const x=[];e.md.inline.parse(n,e.md,e.env,x);const w=e.push("image","img",0),C=[["src",f],["alt",""]];w.attrs=C,w.children=x,w.content=n,u&&C.push(["title",u])}return e.pos=i,e.posMax=p,!0}const $J=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,UJ=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function zJ(e,t){let r=e.pos;if(e.src.charCodeAt(r)!==60)return!1;const n=e.pos,a=e.posMax;for(;;){if(++r>=a)return!1;const s=e.src.charCodeAt(r);if(s===60)return!1;if(s===62)break}const i=e.src.slice(n+1,r);if(UJ.test(i)){const s=e.md.normalizeLink(i);if(!e.md.validateLink(s))return!1;if(!t){const o=e.push("link_open","a",1);o.attrs=[["href",s]],o.markup="autolink",o.info="auto";const u=e.push("text","",0);u.content=e.md.normalizeLinkText(i);const l=e.push("link_close","a",-1);l.markup="autolink",l.info="auto"}return e.pos+=i.length+2,!0}if($J.test(i)){const s=e.md.normalizeLink("mailto:"+i);if(!e.md.validateLink(s))return!1;if(!t){const o=e.push("link_open","a",1);o.attrs=[["href",s]],o.markup="autolink",o.info="auto";const u=e.push("text","",0);u.content=e.md.normalizeLinkText(i);const l=e.push("link_close","a",-1);l.markup="autolink",l.info="auto"}return e.pos+=i.length+2,!0}return!1}function HJ(e){return/^<a[>\s]/i.test(e)}function WJ(e){return/^<\/a\s*>/i.test(e)}function VJ(e){const t=e|32;return t>=97&&t<=122}function qJ(e,t){if(!e.md.options.html)return!1;const r=e.posMax,n=e.pos;if(e.src.charCodeAt(n)!==60||n+2>=r)return!1;const a=e.src.charCodeAt(n+1);if(a!==33&&a!==63&&a!==47&&!VJ(a))return!1;const i=e.src.slice(n).match(bJ);if(!i)return!1;if(!t){const s=e.push("html_inline","",0);s.content=i[0],HJ(s.content)&&e.linkLevel++,WJ(s.content)&&e.linkLevel--}return e.pos+=i[0].length,!0}const GJ=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,YJ=/^&([a-z][a-z0-9]{1,31});/i;function XJ(e,t){const r=e.pos,n=e.posMax;if(e.src.charCodeAt(r)!==38||r+1>=n)return!1;if(e.src.charCodeAt(r+1)===35){const i=e.src.slice(r).match(GJ);if(i){if(!t){const s=i[1][0].toLowerCase()==="x"?parseInt(i[1].slice(1),16):parseInt(i[1],10),o=e.push("text_special","",0);o.content=K_(s)?Cp(s):Cp(65533),o.markup=i[0],o.info="entity"}return e.pos+=i[0].length,!0}}else{const i=e.src.slice(r).match(YJ);if(i){const s=SA(i[0]);if(s!==i[0]){if(!t){const o=e.push("text_special","",0);o.content=s,o.markup=i[0],o.info="entity"}return e.pos+=i[0].length,!0}}}return!1}function jA(e){const t={},r=e.length;if(!r)return;let n=0,a=-2;const i=[];for(let s=0;s<r;s++){const o=e[s];if(i.push(0),(e[n].marker!==o.marker||a!==o.token-1)&&(n=s),a=o.token,o.length=o.length||0,!o.close)continue;t.hasOwnProperty(o.marker)||(t[o.marker]=[-1,-1,-1,-1,-1,-1]);const u=t[o.marker][(o.open?3:0)+o.length%3];let l=n-i[n]-1,f=l;for(;l>u;l-=i[l]+1){const d=e[l];if(d.marker===o.marker&&d.open&&d.end<0){let p=!1;if((d.close||o.open)&&(d.length+o.length)%3===0&&(d.length%3!==0||o.length%3!==0)&&(p=!0),!p){const v=l>0&&!e[l-1].open?i[l-1]+1:0;i[s]=s-l+v,i[l]=v,o.open=!1,d.end=s,d.close=!1,f=-1,a=-2;break}}}f!==-1&&(t[o.marker][(o.open?3:0)+(o.length||0)%3]=f)}}function KJ(e){const t=e.tokens_meta,r=e.tokens_meta.length;jA(e.delimiters);for(let n=0;n<r;n++)t[n]&&t[n].delimiters&&jA(t[n].delimiters)}function ZJ(e){let t,r,n=0;const a=e.tokens,i=e.tokens.length;for(t=r=0;t<i;t++)a[t].nesting<0&&n--,a[t].level=n,a[t].nesting>0&&n++,a[t].type==="text"&&t+1<i&&a[t+1].type==="text"?a[t+1].content=a[t].content+a[t+1].content:(t!==r&&(a[r]=a[t]),r++);t!==r&&(a.length=r)}const ty=[["text",AJ],["linkify",OJ],["newline",PJ],["escape",DJ],["backticks",RJ],["strikethrough",MA.tokenize],["emphasis",BA.tokenize],["link",BJ],["image",jJ],["autolink",zJ],["html_inline",qJ],["entity",XJ]],ry=[["balance_pairs",KJ],["strikethrough",MA.postProcess],["emphasis",BA.postProcess],["fragments_join",ZJ]];function ad(){this.ruler=new aa;for(let e=0;e<ty.length;e++)this.ruler.push(ty[e][0],ty[e][1]);this.ruler2=new aa;for(let e=0;e<ry.length;e++)this.ruler2.push(ry[e][0],ry[e][1])}ad.prototype.skipToken=function(e){const t=e.pos,r=this.ruler.getRules(""),n=r.length,a=e.md.options.maxNesting,i=e.cache;if(typeof i[t]<"u"){e.pos=i[t];return}let s=!1;if(e.level<a){for(let o=0;o<n;o++)if(e.level++,s=r[o](e,!0),e.level--,s){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;s||e.pos++,i[t]=e.pos},ad.prototype.tokenize=function(e){const t=this.ruler.getRules(""),r=t.length,n=e.posMax,a=e.md.options.maxNesting;for(;e.pos<n;){const i=e.pos;let s=!1;if(e.level<a){for(let o=0;o<r;o++)if(s=t[o](e,!1),s){if(i>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(s){if(e.pos>=n)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},ad.prototype.parse=function(e,t,r,n){const a=new this.State(e,t,r,n);this.tokenize(a);const i=this.ruler2.getRules(""),s=i.length;for(let o=0;o<s;o++)i[o](a)},ad.prototype.State=nd;function JJ(e){const t={};e=e||{},t.src_Any=xA.source,t.src_Cc=_A.source,t.src_Z=bA.source,t.src_P=q_.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");const r="[><|]";return t.src_pseudo_letter="(?:(?!"+r+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+r+"|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+r+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+r+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}function ny(e){return Array.prototype.slice.call(arguments,1).forEach(function(r){r&&Object.keys(r).forEach(function(n){e[n]=r[n]})}),e}function Op(e){return Object.prototype.toString.call(e)}function QJ(e){return Op(e)==="[object String]"}function eQ(e){return Op(e)==="[object Object]"}function tQ(e){return Op(e)==="[object RegExp]"}function $A(e){return Op(e)==="[object Function]"}function rQ(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const UA={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function nQ(e){return Object.keys(e||{}).reduce(function(t,r){return t||UA.hasOwnProperty(r)},!1)}const aQ={"http:":{validate:function(e,t,r){const n=e.slice(t);return r.re.http||(r.re.http=new RegExp("^\\/\\/"+r.re.src_auth+r.re.src_host_port_strict+r.re.src_path,"i")),r.re.http.test(n)?n.match(r.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,r){const n=e.slice(t);return r.re.no_http||(r.re.no_http=new RegExp("^"+r.re.src_auth+"(?:localhost|(?:(?:"+r.re.src_domain+")\\.)+"+r.re.src_domain_root+")"+r.re.src_port+r.re.src_host_terminator+r.re.src_path,"i")),r.re.no_http.test(n)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:n.match(r.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,r){const n=e.slice(t);return r.re.mailto||(r.re.mailto=new RegExp("^"+r.re.src_email_name+"@"+r.re.src_host_strict,"i")),r.re.mailto.test(n)?n.match(r.re.mailto)[0].length:0}}},iQ="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",sQ="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function oQ(e){e.__index__=-1,e.__text_cache__=""}function uQ(e){return function(t,r){const n=t.slice(r);return e.test(n)?n.match(e)[0].length:0}}function zA(){return function(e,t){t.normalize(e)}}function Pp(e){const t=e.re=JJ(e.__opts__),r=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||r.push(iQ),r.push(t.src_xn),t.src_tlds=r.join("|");function n(o){return o.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(n(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(n(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(n(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(n(t.tpl_host_fuzzy_test),"i");const a=[];e.__compiled__={};function i(o,u){throw new Error('(LinkifyIt) Invalid schema "'+o+'": '+u)}Object.keys(e.__schemas__).forEach(function(o){const u=e.__schemas__[o];if(u===null)return;const l={validate:null,link:null};if(e.__compiled__[o]=l,eQ(u)){tQ(u.validate)?l.validate=uQ(u.validate):$A(u.validate)?l.validate=u.validate:i(o,u),$A(u.normalize)?l.normalize=u.normalize:u.normalize?i(o,u):l.normalize=zA();return}if(QJ(u)){a.push(o);return}i(o,u)}),a.forEach(function(o){e.__compiled__[e.__schemas__[o]]&&(e.__compiled__[o].validate=e.__compiled__[e.__schemas__[o]].validate,e.__compiled__[o].normalize=e.__compiled__[e.__schemas__[o]].normalize)}),e.__compiled__[""]={validate:null,normalize:zA()};const s=Object.keys(e.__compiled__).filter(function(o){return o.length>0&&e.__compiled__[o]}).map(rQ).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+s+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+s+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),oQ(e)}function lQ(e,t){const r=e.__index__,n=e.__last_index__,a=e.__text_cache__.slice(r,n);this.schema=e.__schema__.toLowerCase(),this.index=r+t,this.lastIndex=n+t,this.raw=a,this.text=a,this.url=a}function ay(e,t){const r=new lQ(e,t);return e.__compiled__[r.schema].normalize(r,e),r}function Ea(e,t){if(!(this instanceof Ea))return new Ea(e,t);t||nQ(e)&&(t=e,e={}),this.__opts__=ny({},UA,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=ny({},aQ,e),this.__compiled__={},this.__tlds__=sQ,this.__tlds_replaced__=!1,this.re={},Pp(this)}Ea.prototype.add=function(t,r){return this.__schemas__[t]=r,Pp(this),this},Ea.prototype.set=function(t){return this.__opts__=ny(this.__opts__,t),this},Ea.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;let r,n,a,i,s,o,u,l,f;if(this.re.schema_test.test(t)){for(u=this.re.schema_search,u.lastIndex=0;(r=u.exec(t))!==null;)if(i=this.testSchemaAt(t,r[2],u.lastIndex),i){this.__schema__=r[2],this.__index__=r.index+r[1].length,this.__last_index__=r.index+r[0].length+i;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=t.search(this.re.host_fuzzy_test),l>=0&&(this.__index__<0||l<this.__index__)&&(n=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(s=n.index+n[1].length,(this.__index__<0||s<this.__index__)&&(this.__schema__="",this.__index__=s,this.__last_index__=n.index+n[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(f=t.indexOf("@"),f>=0&&(a=t.match(this.re.email_fuzzy))!==null&&(s=a.index+a[1].length,o=a.index+a[0].length,(this.__index__<0||s<this.__index__||s===this.__index__&&o>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=s,this.__last_index__=o))),this.__index__>=0},Ea.prototype.pretest=function(t){return this.re.pretest.test(t)},Ea.prototype.testSchemaAt=function(t,r,n){return this.__compiled__[r.toLowerCase()]?this.__compiled__[r.toLowerCase()].validate(t,n,this):0},Ea.prototype.match=function(t){const r=[];let n=0;this.__index__>=0&&this.__text_cache__===t&&(r.push(ay(this,n)),n=this.__last_index__);let a=n?t.slice(n):t;for(;this.test(a);)r.push(ay(this,n)),a=a.slice(this.__last_index__),n+=this.__last_index__;return r.length?r:null},Ea.prototype.matchAtStart=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return null;const r=this.re.schema_at_start.exec(t);if(!r)return null;const n=this.testSchemaAt(t,r[2],r[0].length);return n?(this.__schema__=r[2],this.__index__=r.index+r[1].length,this.__last_index__=r.index+r[0].length+n,ay(this,0)):null},Ea.prototype.tlds=function(t,r){return t=Array.isArray(t)?t:[t],r?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(n,a,i){return n!==i[a-1]}).reverse(),Pp(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,Pp(this),this)},Ea.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)},Ea.prototype.onCompile=function(){};const bc=2147483647,is=36,iy=1,id=26,cQ=38,fQ=700,HA=72,WA=128,VA="-",dQ=/^xn--/,hQ=/[^\0-\x7F]/,pQ=/[\x2E\u3002\uFF0E\uFF61]/g,mQ={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},sy=is-iy,ss=Math.floor,oy=String.fromCharCode;function Oo(e){throw new RangeError(mQ[e])}function gQ(e,t){const r=[];let n=e.length;for(;n--;)r[n]=t(e[n]);return r}function qA(e,t){const r=e.split("@");let n="";r.length>1&&(n=r[0]+"@",e=r[1]),e=e.replace(pQ,".");const a=e.split("."),i=gQ(a,t).join(".");return n+i}function GA(e){const t=[];let r=0;const n=e.length;for(;r<n;){const a=e.charCodeAt(r++);if(a>=55296&&a<=56319&&r<n){const i=e.charCodeAt(r++);(i&64512)==56320?t.push(((a&1023)<<10)+(i&1023)+65536):(t.push(a),r--)}else t.push(a)}return t}const vQ=e=>String.fromCodePoint(...e),xQ=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:is},YA=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},XA=function(e,t,r){let n=0;for(e=r?ss(e/fQ):e>>1,e+=ss(e/t);e>sy*id>>1;n+=is)e=ss(e/sy);return ss(n+(sy+1)*e/(e+cQ))},KA=function(e){const t=[],r=e.length;let n=0,a=WA,i=HA,s=e.lastIndexOf(VA);s<0&&(s=0);for(let o=0;o<s;++o)e.charCodeAt(o)>=128&&Oo("not-basic"),t.push(e.charCodeAt(o));for(let o=s>0?s+1:0;o<r;){const u=n;for(let f=1,d=is;;d+=is){o>=r&&Oo("invalid-input");const p=xQ(e.charCodeAt(o++));p>=is&&Oo("invalid-input"),p>ss((bc-n)/f)&&Oo("overflow"),n+=p*f;const v=d<=i?iy:d>=i+id?id:d-i;if(p<v)break;const _=is-v;f>ss(bc/_)&&Oo("overflow"),f*=_}const l=t.length+1;i=XA(n-u,l,u==0),ss(n/l)>bc-a&&Oo("overflow"),a+=ss(n/l),n%=l,t.splice(n++,0,a)}return String.fromCodePoint(...t)},ZA=function(e){const t=[];e=GA(e);const r=e.length;let n=WA,a=0,i=HA;for(const u of e)u<128&&t.push(oy(u));const s=t.length;let o=s;for(s&&t.push(VA);o<r;){let u=bc;for(const f of e)f>=n&&f<u&&(u=f);const l=o+1;u-n>ss((bc-a)/l)&&Oo("overflow"),a+=(u-n)*l,n=u;for(const f of e)if(f<n&&++a>bc&&Oo("overflow"),f===n){let d=a;for(let p=is;;p+=is){const v=p<=i?iy:p>=i+id?id:p-i;if(d<v)break;const _=d-v,x=is-v;t.push(oy(YA(v+_%x,0))),d=ss(_/x)}t.push(oy(YA(d,0))),i=XA(a,l,o===s),a=0,++o}++a,++n}return t.join("")},JA={version:"2.3.1",ucs2:{decode:GA,encode:vQ},decode:KA,encode:ZA,toASCII:function(e){return qA(e,function(t){return hQ.test(t)?"xn--"+ZA(t):t})},toUnicode:function(e){return qA(e,function(t){return dQ.test(t)?KA(t.slice(4).toLowerCase()):t})}},_Q={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}},yQ=/^(vbscript|javascript|file|data):/,bQ=/^data:image\/(gif|png|jpeg|webp);/;function wQ(e){const t=e.trim().toLowerCase();return yQ.test(t)?bQ.test(t):!0}const QA=["http:","https:","mailto:"];function SQ(e){const t=V_(e,!0);if(t.hostname&&(!t.protocol||QA.indexOf(t.protocol)>=0))try{t.hostname=JA.toASCII(t.hostname)}catch{}return Q0(W_(t))}function EQ(e){const t=V_(e,!0);if(t.hostname&&(!t.protocol||QA.indexOf(t.protocol)>=0))try{t.hostname=JA.toUnicode(t.hostname)}catch{}return vc(W_(t),vc.defaultChars+"%")}function Ga(e,t){if(!(this instanceof Ga))return new Ga(e,t);t||X_(e)||(t=e||{},e="default"),this.inline=new ad,this.block=new Fp,this.core=new J_,this.renderer=new _c,this.linkify=new Ea,this.validateLink=wQ,this.normalizeLink=SQ,this.normalizeLinkText=EQ,this.utils=NZ,this.helpers=Ep({},jZ),this.options={},this.configure(e),t&&this.set(t)}Ga.prototype.set=function(e){return Ep(this.options,e),this},Ga.prototype.configure=function(e){const t=this;if(X_(e)){const r=e;if(e=_Q[r],!e)throw new Error('Wrong `markdown-it` preset "'+r+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(r){e.components[r].rules&&t[r].ruler.enableOnly(e.components[r].rules),e.components[r].rules2&&t[r].ruler2.enableOnly(e.components[r].rules2)}),this},Ga.prototype.enable=function(e,t){let r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(a){r=r.concat(this[a].ruler.enable(e,!0))},this),r=r.concat(this.inline.ruler2.enable(e,!0));const n=e.filter(function(a){return r.indexOf(a)<0});if(n.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+n);return this},Ga.prototype.disable=function(e,t){let r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(a){r=r.concat(this[a].ruler.disable(e,!0))},this),r=r.concat(this.inline.ruler2.disable(e,!0));const n=e.filter(function(a){return r.indexOf(a)<0});if(n.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+n);return this},Ga.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},Ga.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");const r=new this.core.State(e,this,t);return this.core.process(r),r.tokens},Ga.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},Ga.prototype.parseInline=function(e,t){const r=new this.core.State(e,this,t);return r.inlineMode=!0,this.core.process(r),r.tokens},Ga.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};const CQ=Ga({html:!0,breaks:!0}),eF=[{key:"0",label:"What?"}],kQ=e=>{if(!e)return null;const t=CQ.render(e.replace("<think>","").replace("</think>","")).replace("<p>&lt;think</p>","");return t?(console.log(t,"renderedContent"),R.jsx("div",{dangerouslySetInnerHTML:{__html:t}})):null},TQ=[{key:"1",description:"Hot Topics"},{key:"2",description:"Design Guide"}],AQ={ai:{placement:"start",avatar:R.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:R.jsx("img",{width:32,src:"/vite.svg",draggable:!1,alt:"logo"})}),styles:{content:{borderRadius:4,background:"#fff",padding:"4px 10px",display:"flex",alignItems:"center",fontSize:"13px"}}},local:{placement:"end",variant:"shadow",avatar:R.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:R.jsx("img",{width:32,src:"/vite.svg",draggable:!1,alt:"logo"})}),styles:{content:{borderRadius:4,padding:"4px 10px",background:"#fff",display:"flex",alignItems:"center",fontSize:"13px"}}}},FQ=new Bt({baseURL:"https://xiaoai.plus/v1",apiKey:"sk-0ZHLSTsMOiX1YwwBvz8Kwtl3ZXlDVX4zpDgplbOYdImZuJQ9",dangerouslyAllowBrowser:!0}),OQ=()=>{const[e,t]=U.useState(!1),[r,n]=U.useState(""),[a,i]=U.useState(!1),[s,o]=U.useState(eF),[u,l]=U.useState(eF[0].key),[f,d]=U.useState([]),p="deepseek-r1",[v]=GX({request:async(F,P)=>{var L;const{messages:j,message:N}=F,{onSuccess:I,onUpdate:B,onError:O}=P;let M="",V="";try{i(!0);const W=await FQ.chat.completions.create({model:p,messages:[{role:"user",content:N}],stream:!0});i(!1);for await(const G of W){const{reasoning_content:H,content:Q}=((L=G.choices[0])==null?void 0:L.delta)||{};H&&(V+=H),Q&&(M+=Q),B(M)}I(M)}catch{}}}),{onRequest:_,messages:x,setMessages:w}=jX({agent:v});U.useEffect(()=>{const F=x.map(P=>({...P,loading:a}));w(F)},[a,x.length]),U.useEffect(()=>{u!==void 0&&w([])},[u]);const C=F=>{F&&(_(F),n(""))},E=F=>{_(F.data.description)},b=()=>{o([...s,{key:`${s.length}`,label:`New Conversation ${s.length}`}]),l(`${s.length}`)},h=F=>{l(F)},g=F=>d(F.fileList),y=x.map(({id:F,message:P,status:j})=>({key:F,loading:!1,role:j==="local"?"local":"ai",content:P,messageRender:kQ})),S=R.jsx(ue.Badge,{dot:f.length>0&&!e,children:R.jsx(ue.Button,{type:"text",icon:R.jsx(b8,{}),onClick:()=>t(!e)})}),A=R.jsx(Y1.Header,{title:"Attachments",open:e,onOpenChange:t,styles:{content:{padding:0}},children:R.jsx(Y2,{beforeUpload:()=>!1,items:f,onChange:g,placeholder:F=>F==="drop"?{title:"Drop file here"}:{icon:R.jsx(g8,{}),title:"Upload files",description:"Click or drag files to this area to upload"}})}),k=R.jsx("div",{className:ki.logo,children:R.jsx("span",{children:"OnChain Assistant"})});return R.jsxs("div",{className:ki.layout,children:[R.jsxs("div",{className:ki.menu,children:[k,R.jsx(ue.Button,{onClick:b,type:"link",className:ki.addBtn,icon:R.jsx(iv,{}),children:"New Conversation"}),R.jsx(DT,{items:s,className:ki.conversations,activeKey:u,onActiveChange:h})]}),R.jsxs("div",{className:ki.chat,children:[R.jsxs("div",{className:ki.top_header,children:[R.jsx("div",{style:{fontWeight:"bold"},children:"Llama3:latest"}),R.jsx("div",{children:R.jsx("div",{className:ki.person,children:"李明"})})]}),R.jsx("div",{style:{height:"calc(100% - 265px)",padding:"0px 16px 16px 16px",display:"flex",justifyContent:"center",margin:"0 auto",maxWidth:"70%",width:"100%"},children:y.length?R.jsx(K1.List,{items:y,roles:AQ,className:ki.messages}):R.jsx("div",{style:{height:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:R.jsx(XK,{onPromptsItemClick:E})})}),R.jsx(Z1,{items:TQ,onItemClick:E,style:{padding:"0px 16px"}}),R.jsx(Y1,{value:r,header:A,onSubmit:C,onChange:n,prefix:S,loading:v.isRequesting(),className:ki.sender,style:{margin:"0px 16px 16px 16px",width:"auto"}})]})]})};/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var sd={};sd.version="0.18.5";var Ca=1200,Bu=1252,PQ=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],uy={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},Dp=function(e){PQ.indexOf(e)!=-1&&(Bu=uy[0]=e)};function DQ(){Dp(1252)}var Ya=function(e){Ca=e,Dp(e)};function Rp(){Ya(1200),DQ()}function Ip(e){for(var t=[],r=0,n=e.length;r<n;++r)t[r]=e.charCodeAt(r);return t}function RQ(e){for(var t=[],r=0;r<e.length>>1;++r)t[r]=String.fromCharCode(e.charCodeAt(2*r)+(e.charCodeAt(2*r+1)<<8));return t.join("")}function tF(e){for(var t=[],r=0;r<e.length>>1;++r)t[r]=String.fromCharCode(e.charCodeAt(2*r+1)+(e.charCodeAt(2*r)<<8));return t.join("")}var wc=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1);return t==255&&r==254?RQ(e.slice(2)):t==254&&r==255?tF(e.slice(2)):t==65279?e.slice(1):e},od=function(t){return String.fromCharCode(t)},ly=function(t){return String.fromCharCode(t)},Ut;function IQ(e){Ut=e,Ya=function(t){Ca=t,Dp(t)},wc=function(t){return t.charCodeAt(0)===255&&t.charCodeAt(1)===254?Ut.utils.decode(1200,Ip(t.slice(2))):t},od=function(r){return Ca===1200?String.fromCharCode(r):Ut.utils.decode(Ca,[r&255,r>>8])[0]},ly=function(r){return Ut.utils.decode(Bu,[r])[0]},QF()}var Po="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function ud(e){for(var t="",r=0,n=0,a=0,i=0,s=0,o=0,u=0,l=0;l<e.length;)r=e.charCodeAt(l++),i=r>>2,n=e.charCodeAt(l++),s=(r&3)<<4|n>>4,a=e.charCodeAt(l++),o=(n&15)<<2|a>>6,u=a&63,isNaN(n)?o=u=64:isNaN(a)&&(u=64),t+=Po.charAt(i)+Po.charAt(s)+Po.charAt(o)+Po.charAt(u);return t}function ka(e){var t="",r=0,n=0,a=0,i=0,s=0,o=0,u=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var l=0;l<e.length;)i=Po.indexOf(e.charAt(l++)),s=Po.indexOf(e.charAt(l++)),r=i<<2|s>>4,t+=String.fromCharCode(r),o=Po.indexOf(e.charAt(l++)),n=(s&15)<<4|o>>2,o!==64&&(t+=String.fromCharCode(n)),u=Po.indexOf(e.charAt(l++)),a=(o&3)<<6|u,u!==64&&(t+=String.fromCharCode(a));return t}var At=function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node}(),Vs=function(){if(typeof Buffer<"u"){var e=!Buffer.from;if(!e)try{Buffer.from("foo","utf8")}catch{e=!0}return e?function(t,r){return r?new Buffer(t,r):new Buffer(t)}:Buffer.from.bind(Buffer)}return function(){}}();function Do(e){return At?Buffer.alloc?Buffer.alloc(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}function rF(e){return At?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}var Ta=function(t){return At?Vs(t,"binary"):t.split("").map(function(r){return r.charCodeAt(0)&255})};function ld(e){if(typeof ArrayBuffer>"u")return Ta(e);for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),n=0;n!=e.length;++n)r[n]=e.charCodeAt(n)&255;return t}function Ro(e){if(Array.isArray(e))return e.map(function(n){return String.fromCharCode(n)}).join("");for(var t=[],r=0;r<e.length;++r)t[r]=String.fromCharCode(e[r]);return t.join("")}function NQ(e){if(typeof Uint8Array>"u")throw new Error("Unsupported");return new Uint8Array(e)}function cy(e){if(typeof ArrayBuffer>"u")throw new Error("Unsupported");if(e instanceof ArrayBuffer)return cy(new Uint8Array(e));for(var t=new Array(e.length),r=0;r<e.length;++r)t[r]=e[r];return t}var un=At?function(e){return Buffer.concat(e.map(function(t){return Buffer.isBuffer(t)?t:Vs(t)}))}:function(e){if(typeof Uint8Array<"u"){var t=0,r=0;for(t=0;t<e.length;++t)r+=e[t].length;var n=new Uint8Array(r),a=0;for(t=0,r=0;t<e.length;r+=a,++t)if(a=e[t].length,e[t]instanceof Uint8Array)n.set(e[t],r);else{if(typeof e[t]=="string")throw"wtf";n.set(new Uint8Array(e[t]),r)}return n}return[].concat.apply([],e.map(function(i){return Array.isArray(i)?i:[].slice.call(i)}))};function MQ(e){for(var t=[],r=0,n=e.length+250,a=Do(e.length+255),i=0;i<e.length;++i){var s=e.charCodeAt(i);if(s<128)a[r++]=s;else if(s<2048)a[r++]=192|s>>6&31,a[r++]=128|s&63;else if(s>=55296&&s<57344){s=(s&1023)+64;var o=e.charCodeAt(++i)&1023;a[r++]=240|s>>8&7,a[r++]=128|s>>2&63,a[r++]=128|o>>6&15|(s&3)<<4,a[r++]=128|o&63}else a[r++]=224|s>>12&15,a[r++]=128|s>>6&63,a[r++]=128|s&63;r>n&&(t.push(a.slice(0,r)),r=0,a=Do(65535),n=65530)}return t.push(a.slice(0,r)),un(t)}var Fn=/\u0000/g,cd=/[\u0001-\u0006]/g;function Sc(e){for(var t="",r=e.length-1;r>=0;)t+=e.charAt(r--);return t}function Di(e,t){var r=""+e;return r.length>=t?r:Rr("0",t-r.length)+r}function fy(e,t){var r=""+e;return r.length>=t?r:Rr(" ",t-r.length)+r}function Np(e,t){var r=""+e;return r.length>=t?r:r+Rr(" ",t-r.length)}function LQ(e,t){var r=""+Math.round(e);return r.length>=t?r:Rr("0",t-r.length)+r}function BQ(e,t){var r=""+e;return r.length>=t?r:Rr("0",t-r.length)+r}var nF=Math.pow(2,32);function Ec(e,t){if(e>nF||e<-nF)return LQ(e,t);var r=Math.round(e);return BQ(r,t)}function Mp(e,t){return t=t||0,e.length>=7+t&&(e.charCodeAt(t)|32)===103&&(e.charCodeAt(t+1)|32)===101&&(e.charCodeAt(t+2)|32)===110&&(e.charCodeAt(t+3)|32)===101&&(e.charCodeAt(t+4)|32)===114&&(e.charCodeAt(t+5)|32)===97&&(e.charCodeAt(t+6)|32)===108}var aF=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],dy=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function jQ(e){return e||(e={}),e[0]="General",e[1]="0",e[2]="0.00",e[3]="#,##0",e[4]="#,##0.00",e[9]="0%",e[10]="0.00%",e[11]="0.00E+00",e[12]="# ?/?",e[13]="# ??/??",e[14]="m/d/yy",e[15]="d-mmm-yy",e[16]="d-mmm",e[17]="mmm-yy",e[18]="h:mm AM/PM",e[19]="h:mm:ss AM/PM",e[20]="h:mm",e[21]="h:mm:ss",e[22]="m/d/yy h:mm",e[37]="#,##0 ;(#,##0)",e[38]="#,##0 ;[Red](#,##0)",e[39]="#,##0.00;(#,##0.00)",e[40]="#,##0.00;[Red](#,##0.00)",e[45]="mm:ss",e[46]="[h]:mm:ss",e[47]="mmss.0",e[48]="##0.0E+0",e[49]="@",e[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',e}var ot={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},iF={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},$Q={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function Lp(e,t,r){for(var n=e<0?-1:1,a=e*n,i=0,s=1,o=0,u=1,l=0,f=0,d=Math.floor(a);l<t&&(d=Math.floor(a),o=d*s+i,f=d*l+u,!(a-d<5e-8));)a=1/(a-d),i=s,s=o,u=l,l=f;if(f>t&&(l>t?(f=u,o=i):(f=l,o=s)),!r)return[0,n*o,f];var p=Math.floor(n*o/f);return[p,n*o-p*f,f]}function Io(e,t,r){if(e>2958465||e<0)return null;var n=e|0,a=Math.floor(86400*(e-n)),i=0,s=[],o={D:n,T:a,u:86400*(e-n)-a,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(o.u)<1e-6&&(o.u=0),t&&t.date1904&&(n+=1462),o.u>.9999&&(o.u=0,++a==86400&&(o.T=a=0,++n,++o.D)),n===60)s=r?[1317,10,29]:[1900,2,29],i=3;else if(n===0)s=r?[1317,8,29]:[1900,1,0],i=6;else{n>60&&--n;var u=new Date(1900,0,1);u.setDate(u.getDate()+n-1),s=[u.getFullYear(),u.getMonth()+1,u.getDate()],i=u.getDay(),n<60&&(i=(i+6)%7),r&&(i=qQ(u,s))}return o.y=s[0],o.m=s[1],o.d=s[2],o.S=a%60,a=Math.floor(a/60),o.M=a%60,a=Math.floor(a/60),o.H=a,o.q=i,o}var sF=new Date(1899,11,31,0,0,0),UQ=sF.getTime(),zQ=new Date(1900,2,1,0,0,0);function oF(e,t){var r=e.getTime();return t?r-=1461*24*60*60*1e3:e>=zQ&&(r+=24*60*60*1e3),(r-(UQ+(e.getTimezoneOffset()-sF.getTimezoneOffset())*6e4))/(24*60*60*1e3)}function hy(e){return e.indexOf(".")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function HQ(e){return e.indexOf("E")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function WQ(e){var t=e<0?12:11,r=hy(e.toFixed(12));return r.length<=t||(r=e.toPrecision(10),r.length<=t)?r:e.toExponential(5)}function VQ(e){var t=hy(e.toFixed(11));return t.length>(e<0?12:11)||t==="0"||t==="-0"?e.toPrecision(6):t}function fd(e){var t=Math.floor(Math.log(Math.abs(e))*Math.LOG10E),r;return t>=-4&&t<=-1?r=e.toPrecision(10+t):Math.abs(t)<=9?r=WQ(e):t===10?r=e.toFixed(10).substr(0,12):r=VQ(e),hy(HQ(r.toUpperCase()))}function ju(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(e|0)===e?e.toString(10):fd(e);case"undefined":return"";case"object":if(e==null)return"";if(e instanceof Date)return Aa(14,oF(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function qQ(e,t){t[0]-=581;var r=e.getDay();return e<60&&(r=(r+6)%7),r}function GQ(e,t,r,n){var a="",i=0,s=0,o=r.y,u,l=0;switch(e){case 98:o=r.y+543;case 121:switch(t.length){case 1:case 2:u=o%100,l=2;break;default:u=o%1e4,l=4;break}break;case 109:switch(t.length){case 1:case 2:u=r.m,l=t.length;break;case 3:return dy[r.m-1][1];case 5:return dy[r.m-1][0];default:return dy[r.m-1][2]}break;case 100:switch(t.length){case 1:case 2:u=r.d,l=t.length;break;case 3:return aF[r.q][0];default:return aF[r.q][1]}break;case 104:switch(t.length){case 1:case 2:u=1+(r.H+11)%12,l=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:u=r.H,l=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:u=r.M,l=t.length;break;default:throw"bad minute format: "+t}break;case 115:if(t!="s"&&t!="ss"&&t!=".0"&&t!=".00"&&t!=".000")throw"bad second format: "+t;return r.u===0&&(t=="s"||t=="ss")?Di(r.S,t.length):(n>=2?s=n===3?1e3:100:s=n===1?10:1,i=Math.round(s*(r.S+r.u)),i>=60*s&&(i=0),t==="s"?i===0?"0":""+i/s:(a=Di(i,2+n),t==="ss"?a.substr(0,2):"."+a.substr(2,t.length-1)));case 90:switch(t){case"[h]":case"[hh]":u=r.D*24+r.H;break;case"[m]":case"[mm]":u=(r.D*24+r.H)*60+r.M;break;case"[s]":case"[ss]":u=((r.D*24+r.H)*60+r.M)*60+Math.round(r.S+r.u);break;default:throw"bad abstime format: "+t}l=t.length===3?1:2;break;case 101:u=o,l=1;break}var f=l>0?Di(u,l):"";return f}function No(e){var t=3;if(e.length<=t)return e;for(var r=e.length%t,n=e.substr(0,r);r!=e.length;r+=t)n+=(n.length>0?",":"")+e.substr(r,t);return n}var uF=/%/g;function YQ(e,t,r){var n=t.replace(uF,""),a=t.length-n.length;return qs(e,n,r*Math.pow(10,2*a))+Rr("%",a)}function XQ(e,t,r){for(var n=t.length-1;t.charCodeAt(n-1)===44;)--n;return qs(e,t.substr(0,n),r/Math.pow(10,3*(t.length-n)))}function lF(e,t){var r,n=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(t==0)return"0.0E+0";if(t<0)return"-"+lF(e,-t);var a=e.indexOf(".");a===-1&&(a=e.indexOf("E"));var i=Math.floor(Math.log(t)*Math.LOG10E)%a;if(i<0&&(i+=a),r=(t/Math.pow(10,i)).toPrecision(n+1+(a+i)%a),r.indexOf("e")===-1){var s=Math.floor(Math.log(t)*Math.LOG10E);for(r.indexOf(".")===-1?r=r.charAt(0)+"."+r.substr(1)+"E+"+(s-r.length+i):r+="E+"+(s-i);r.substr(0,2)==="0.";)r=r.charAt(0)+r.substr(2,a)+"."+r.substr(2+a),r=r.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(o,u,l,f){return u+l+f.substr(0,(a+i)%a)+"."+f.substr(i)+"E"})}else r=t.toExponential(n);return e.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),e.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}var cF=/# (\?+)( ?)\/( ?)(\d+)/;function KQ(e,t,r){var n=parseInt(e[4],10),a=Math.round(t*n),i=Math.floor(a/n),s=a-i*n,o=n;return r+(i===0?"":""+i)+" "+(s===0?Rr(" ",e[1].length+1+e[4].length):fy(s,e[1].length)+e[2]+"/"+e[3]+Di(o,e[4].length))}function ZQ(e,t,r){return r+(t===0?"":""+t)+Rr(" ",e[1].length+2+e[4].length)}var fF=/^#*0*\.([0#]+)/,dF=/\).*[0#]/,hF=/\(###\) ###\\?-####/;function Vn(e){for(var t="",r,n=0;n!=e.length;++n)switch(r=e.charCodeAt(n)){case 35:break;case 63:t+=" ";break;case 48:t+="0";break;default:t+=String.fromCharCode(r)}return t}function pF(e,t){var r=Math.pow(10,t);return""+Math.round(e*r)/r}function mF(e,t){var r=e-Math.floor(e),n=Math.pow(10,t);return t<(""+Math.round(r*n)).length?0:Math.round(r*n)}function JQ(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}function QQ(e){return e<2147483647&&e>-2147483648?""+(e>=0?e|0:e-1|0):""+Math.floor(e)}function Xa(e,t,r){if(e.charCodeAt(0)===40&&!t.match(dF)){var n=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?Xa("n",n,r):"("+Xa("n",n,-r)+")"}if(t.charCodeAt(t.length-1)===44)return XQ(e,t,r);if(t.indexOf("%")!==-1)return YQ(e,t,r);if(t.indexOf("E")!==-1)return lF(t,r);if(t.charCodeAt(0)===36)return"$"+Xa(e,t.substr(t.charAt(1)==" "?2:1),r);var a,i,s,o,u=Math.abs(r),l=r<0?"-":"";if(t.match(/^00+$/))return l+Ec(u,t.length);if(t.match(/^[#?]+$/))return a=Ec(r,0),a==="0"&&(a=""),a.length>t.length?a:Vn(t.substr(0,t.length-a.length))+a;if(i=t.match(cF))return KQ(i,u,l);if(t.match(/^#+0+$/))return l+Ec(u,t.length-t.indexOf("0"));if(i=t.match(fF))return a=pF(r,i[1].length).replace(/^([^\.]+)$/,"$1."+Vn(i[1])).replace(/\.$/,"."+Vn(i[1])).replace(/\.(\d*)$/,function(_,x){return"."+x+Rr("0",Vn(i[1]).length-x.length)}),t.indexOf("0.")!==-1?a:a.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),i=t.match(/^(0*)\.(#*)$/))return l+pF(u,i[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,i[1].length?"0.":".");if(i=t.match(/^#{1,3},##0(\.?)$/))return l+No(Ec(u,0));if(i=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+Xa(e,t,-r):No(""+(Math.floor(r)+JQ(r,i[1].length)))+"."+Di(mF(r,i[1].length),i[1].length);if(i=t.match(/^#,#*,#0/))return Xa(e,t.replace(/^#,#*,/,""),r);if(i=t.match(/^([0#]+)(\\?-([0#]+))+$/))return a=Sc(Xa(e,t.replace(/[\\-]/g,""),r)),s=0,Sc(Sc(t.replace(/\\/g,"")).replace(/[0#]/g,function(_){return s<a.length?a.charAt(s++):_==="0"?"0":""}));if(t.match(hF))return a=Xa(e,"##########",r),"("+a.substr(0,3)+") "+a.substr(3,3)+"-"+a.substr(6);var f="";if(i=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(i[4].length,7),o=Lp(u,Math.pow(10,s)-1,!1),a=""+l,f=qs("n",i[1],o[1]),f.charAt(f.length-1)==" "&&(f=f.substr(0,f.length-1)+"0"),a+=f+i[2]+"/"+i[3],f=Np(o[2],s),f.length<i[4].length&&(f=Vn(i[4].substr(i[4].length-f.length))+f),a+=f,a;if(i=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(Math.max(i[1].length,i[4].length),7),o=Lp(u,Math.pow(10,s)-1,!0),l+(o[0]||(o[1]?"":"0"))+" "+(o[1]?fy(o[1],s)+i[2]+"/"+i[3]+Np(o[2],s):Rr(" ",2*s+1+i[2].length+i[3].length));if(i=t.match(/^[#0?]+$/))return a=Ec(r,0),t.length<=a.length?a:Vn(t.substr(0,t.length-a.length))+a;if(i=t.match(/^([#0?]+)\.([#0]+)$/)){a=""+r.toFixed(Math.min(i[2].length,10)).replace(/([^0])0+$/,"$1"),s=a.indexOf(".");var d=t.indexOf(".")-s,p=t.length-a.length-d;return Vn(t.substr(0,d)+a+t.substr(t.length-p))}if(i=t.match(/^00,000\.([#0]*0)$/))return s=mF(r,i[1].length),r<0?"-"+Xa(e,t,-r):No(QQ(r)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(_){return"00,"+(_.length<3?Di(0,3-_.length):"")+_})+"."+Di(s,i[1].length);switch(t){case"###,##0.00":return Xa(e,"#,##0.00",r);case"###,###":case"##,###":case"#,###":var v=No(Ec(u,0));return v!=="0"?l+v:"";case"###,###.00":return Xa(e,"###,##0.00",r).replace(/^0\./,".");case"#,###.00":return Xa(e,"#,##0.00",r).replace(/^0\./,".")}throw new Error("unsupported format |"+t+"|")}function eee(e,t,r){for(var n=t.length-1;t.charCodeAt(n-1)===44;)--n;return qs(e,t.substr(0,n),r/Math.pow(10,3*(t.length-n)))}function tee(e,t,r){var n=t.replace(uF,""),a=t.length-n.length;return qs(e,n,r*Math.pow(10,2*a))+Rr("%",a)}function gF(e,t){var r,n=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(t==0)return"0.0E+0";if(t<0)return"-"+gF(e,-t);var a=e.indexOf(".");a===-1&&(a=e.indexOf("E"));var i=Math.floor(Math.log(t)*Math.LOG10E)%a;if(i<0&&(i+=a),r=(t/Math.pow(10,i)).toPrecision(n+1+(a+i)%a),!r.match(/[Ee]/)){var s=Math.floor(Math.log(t)*Math.LOG10E);r.indexOf(".")===-1?r=r.charAt(0)+"."+r.substr(1)+"E+"+(s-r.length+i):r+="E+"+(s-i),r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(o,u,l,f){return u+l+f.substr(0,(a+i)%a)+"."+f.substr(i)+"E"})}else r=t.toExponential(n);return e.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),e.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}function os(e,t,r){if(e.charCodeAt(0)===40&&!t.match(dF)){var n=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?os("n",n,r):"("+os("n",n,-r)+")"}if(t.charCodeAt(t.length-1)===44)return eee(e,t,r);if(t.indexOf("%")!==-1)return tee(e,t,r);if(t.indexOf("E")!==-1)return gF(t,r);if(t.charCodeAt(0)===36)return"$"+os(e,t.substr(t.charAt(1)==" "?2:1),r);var a,i,s,o,u=Math.abs(r),l=r<0?"-":"";if(t.match(/^00+$/))return l+Di(u,t.length);if(t.match(/^[#?]+$/))return a=""+r,r===0&&(a=""),a.length>t.length?a:Vn(t.substr(0,t.length-a.length))+a;if(i=t.match(cF))return ZQ(i,u,l);if(t.match(/^#+0+$/))return l+Di(u,t.length-t.indexOf("0"));if(i=t.match(fF))return a=(""+r).replace(/^([^\.]+)$/,"$1."+Vn(i[1])).replace(/\.$/,"."+Vn(i[1])),a=a.replace(/\.(\d*)$/,function(_,x){return"."+x+Rr("0",Vn(i[1]).length-x.length)}),t.indexOf("0.")!==-1?a:a.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),i=t.match(/^(0*)\.(#*)$/))return l+(""+u).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,i[1].length?"0.":".");if(i=t.match(/^#{1,3},##0(\.?)$/))return l+No(""+u);if(i=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+os(e,t,-r):No(""+r)+"."+Rr("0",i[1].length);if(i=t.match(/^#,#*,#0/))return os(e,t.replace(/^#,#*,/,""),r);if(i=t.match(/^([0#]+)(\\?-([0#]+))+$/))return a=Sc(os(e,t.replace(/[\\-]/g,""),r)),s=0,Sc(Sc(t.replace(/\\/g,"")).replace(/[0#]/g,function(_){return s<a.length?a.charAt(s++):_==="0"?"0":""}));if(t.match(hF))return a=os(e,"##########",r),"("+a.substr(0,3)+") "+a.substr(3,3)+"-"+a.substr(6);var f="";if(i=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(i[4].length,7),o=Lp(u,Math.pow(10,s)-1,!1),a=""+l,f=qs("n",i[1],o[1]),f.charAt(f.length-1)==" "&&(f=f.substr(0,f.length-1)+"0"),a+=f+i[2]+"/"+i[3],f=Np(o[2],s),f.length<i[4].length&&(f=Vn(i[4].substr(i[4].length-f.length))+f),a+=f,a;if(i=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(Math.max(i[1].length,i[4].length),7),o=Lp(u,Math.pow(10,s)-1,!0),l+(o[0]||(o[1]?"":"0"))+" "+(o[1]?fy(o[1],s)+i[2]+"/"+i[3]+Np(o[2],s):Rr(" ",2*s+1+i[2].length+i[3].length));if(i=t.match(/^[#0?]+$/))return a=""+r,t.length<=a.length?a:Vn(t.substr(0,t.length-a.length))+a;if(i=t.match(/^([#0]+)\.([#0]+)$/)){a=""+r.toFixed(Math.min(i[2].length,10)).replace(/([^0])0+$/,"$1"),s=a.indexOf(".");var d=t.indexOf(".")-s,p=t.length-a.length-d;return Vn(t.substr(0,d)+a+t.substr(t.length-p))}if(i=t.match(/^00,000\.([#0]*0)$/))return r<0?"-"+os(e,t,-r):No(""+r).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(_){return"00,"+(_.length<3?Di(0,3-_.length):"")+_})+"."+Di(0,i[1].length);switch(t){case"###,###":case"##,###":case"#,###":var v=No(""+u);return v!=="0"?l+v:"";default:if(t.match(/\.[0#?]*$/))return os(e,t.slice(0,t.lastIndexOf(".")),r)+Vn(t.slice(t.lastIndexOf(".")))}throw new Error("unsupported format |"+t+"|")}function qs(e,t,r){return(r|0)===r?os(e,t,r):Xa(e,t,r)}function ree(e){for(var t=[],r=!1,n=0,a=0;n<e.length;++n)switch(e.charCodeAt(n)){case 34:r=!r;break;case 95:case 42:case 92:++n;break;case 59:t[t.length]=e.substr(a,n-a),a=n+1}if(t[t.length]=e.substr(a),r===!0)throw new Error("Format |"+e+"| unterminated string ");return t}var vF=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function $u(e){for(var t=0,r="",n="";t<e.length;)switch(r=e.charAt(t)){case"G":Mp(e,t)&&(t+=6),t++;break;case'"':for(;e.charCodeAt(++t)!==34&&t<e.length;);++t;break;case"\\":t+=2;break;case"_":t+=2;break;case"@":++t;break;case"B":case"b":if(e.charAt(t+1)==="1"||e.charAt(t+1)==="2")return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"上":if(e.substr(t,3).toUpperCase()==="A/P"||e.substr(t,5).toUpperCase()==="AM/PM"||e.substr(t,5).toUpperCase()==="上午/下午")return!0;++t;break;case"[":for(n=r;e.charAt(t++)!=="]"&&t<e.length;)n+=e.charAt(t);if(n.match(vF))return!0;break;case".":case"0":case"#":for(;t<e.length&&("0#?.,E+-%".indexOf(r=e.charAt(++t))>-1||r=="\\"&&e.charAt(t+1)=="-"&&"0#".indexOf(e.charAt(t+2))>-1););break;case"?":for(;e.charAt(++t)===r;);break;case"*":++t,(e.charAt(t)==" "||e.charAt(t)=="*")&&++t;break;case"(":case")":++t;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;t<e.length&&"0123456789".indexOf(e.charAt(++t))>-1;);break;case" ":++t;break;default:++t;break}return!1}function nee(e,t,r,n){for(var a=[],i="",s=0,o="",u="t",l,f,d,p="H";s<e.length;)switch(o=e.charAt(s)){case"G":if(!Mp(e,s))throw new Error("unrecognized character "+o+" in "+e);a[a.length]={t:"G",v:"General"},s+=7;break;case'"':for(i="";(d=e.charCodeAt(++s))!==34&&s<e.length;)i+=String.fromCharCode(d);a[a.length]={t:"t",v:i},++s;break;case"\\":var v=e.charAt(++s),_=v==="("||v===")"?v:"t";a[a.length]={t:_,v},++s;break;case"_":a[a.length]={t:"t",v:" "},s+=2;break;case"@":a[a.length]={t:"T",v:t},++s;break;case"B":case"b":if(e.charAt(s+1)==="1"||e.charAt(s+1)==="2"){if(l==null&&(l=Io(t,r,e.charAt(s+1)==="2"),l==null))return"";a[a.length]={t:"X",v:e.substr(s,2)},u=o,s+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":o=o.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(t<0||l==null&&(l=Io(t,r),l==null))return"";for(i=o;++s<e.length&&e.charAt(s).toLowerCase()===o;)i+=o;o==="m"&&u.toLowerCase()==="h"&&(o="M"),o==="h"&&(o=p),a[a.length]={t:o,v:i},u=o;break;case"A":case"a":case"上":var x={t:o,v:o};if(l==null&&(l=Io(t,r)),e.substr(s,3).toUpperCase()==="A/P"?(l!=null&&(x.v=l.H>=12?"P":"A"),x.t="T",p="h",s+=3):e.substr(s,5).toUpperCase()==="AM/PM"?(l!=null&&(x.v=l.H>=12?"PM":"AM"),x.t="T",s+=5,p="h"):e.substr(s,5).toUpperCase()==="上午/下午"?(l!=null&&(x.v=l.H>=12?"下午":"上午"),x.t="T",s+=5,p="h"):(x.t="t",++s),l==null&&x.t==="T")return"";a[a.length]=x,u=o;break;case"[":for(i=o;e.charAt(s++)!=="]"&&s<e.length;)i+=e.charAt(s);if(i.slice(-1)!=="]")throw'unterminated "[" block: |'+i+"|";if(i.match(vF)){if(l==null&&(l=Io(t,r),l==null))return"";a[a.length]={t:"Z",v:i.toLowerCase()},u=i.charAt(1)}else i.indexOf("$")>-1&&(i=(i.match(/\$([^-\[\]]*)/)||[])[1]||"$",$u(e)||(a[a.length]={t:"t",v:i}));break;case".":if(l!=null){for(i=o;++s<e.length&&(o=e.charAt(s))==="0";)i+=o;a[a.length]={t:"s",v:i};break}case"0":case"#":for(i=o;++s<e.length&&"0#?.,E+-%".indexOf(o=e.charAt(s))>-1;)i+=o;a[a.length]={t:"n",v:i};break;case"?":for(i=o;e.charAt(++s)===o;)i+=o;a[a.length]={t:o,v:i},u=o;break;case"*":++s,(e.charAt(s)==" "||e.charAt(s)=="*")&&++s;break;case"(":case")":a[a.length]={t:n===1?"t":o,v:o},++s;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(i=o;s<e.length&&"0123456789".indexOf(e.charAt(++s))>-1;)i+=e.charAt(s);a[a.length]={t:"D",v:i};break;case" ":a[a.length]={t:o,v:o},++s;break;case"$":a[a.length]={t:"t",v:"$"},++s;break;default:if(",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(o)===-1)throw new Error("unrecognized character "+o+" in "+e);a[a.length]={t:"t",v:o},++s;break}var w=0,C=0,E;for(s=a.length-1,u="t";s>=0;--s)switch(a[s].t){case"h":case"H":a[s].t=p,u="h",w<1&&(w=1);break;case"s":(E=a[s].v.match(/\.0+$/))&&(C=Math.max(C,E[0].length-1)),w<3&&(w=3);case"d":case"y":case"M":case"e":u=a[s].t;break;case"m":u==="s"&&(a[s].t="M",w<2&&(w=2));break;case"X":break;case"Z":w<1&&a[s].v.match(/[Hh]/)&&(w=1),w<2&&a[s].v.match(/[Mm]/)&&(w=2),w<3&&a[s].v.match(/[Ss]/)&&(w=3)}switch(w){case 0:break;case 1:l.u>=.5&&(l.u=0,++l.S),l.S>=60&&(l.S=0,++l.M),l.M>=60&&(l.M=0,++l.H);break;case 2:l.u>=.5&&(l.u=0,++l.S),l.S>=60&&(l.S=0,++l.M);break}var b="",h;for(s=0;s<a.length;++s)switch(a[s].t){case"t":case"T":case" ":case"D":break;case"X":a[s].v="",a[s].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":a[s].v=GQ(a[s].t.charCodeAt(0),a[s].v,l,C),a[s].t="t";break;case"n":case"?":for(h=s+1;a[h]!=null&&((o=a[h].t)==="?"||o==="D"||(o===" "||o==="t")&&a[h+1]!=null&&(a[h+1].t==="?"||a[h+1].t==="t"&&a[h+1].v==="/")||a[s].t==="("&&(o===" "||o==="n"||o===")")||o==="t"&&(a[h].v==="/"||a[h].v===" "&&a[h+1]!=null&&a[h+1].t=="?"));)a[s].v+=a[h].v,a[h]={v:"",t:";"},++h;b+=a[s].v,s=h-1;break;case"G":a[s].t="t",a[s].v=ju(t,r);break}var g="",y,S;if(b.length>0){b.charCodeAt(0)==40?(y=t<0&&b.charCodeAt(0)===45?-t:t,S=qs("n",b,y)):(y=t<0&&n>1?-t:t,S=qs("n",b,y),y<0&&a[0]&&a[0].t=="t"&&(S=S.substr(1),a[0].v="-"+a[0].v)),h=S.length-1;var A=a.length;for(s=0;s<a.length;++s)if(a[s]!=null&&a[s].t!="t"&&a[s].v.indexOf(".")>-1){A=s;break}var k=a.length;if(A===a.length&&S.indexOf("E")===-1){for(s=a.length-1;s>=0;--s)a[s]==null||"n?".indexOf(a[s].t)===-1||(h>=a[s].v.length-1?(h-=a[s].v.length,a[s].v=S.substr(h+1,a[s].v.length)):h<0?a[s].v="":(a[s].v=S.substr(0,h+1),h=-1),a[s].t="t",k=s);h>=0&&k<a.length&&(a[k].v=S.substr(0,h+1)+a[k].v)}else if(A!==a.length&&S.indexOf("E")===-1){for(h=S.indexOf(".")-1,s=A;s>=0;--s)if(!(a[s]==null||"n?".indexOf(a[s].t)===-1)){for(f=a[s].v.indexOf(".")>-1&&s===A?a[s].v.indexOf(".")-1:a[s].v.length-1,g=a[s].v.substr(f+1);f>=0;--f)h>=0&&(a[s].v.charAt(f)==="0"||a[s].v.charAt(f)==="#")&&(g=S.charAt(h--)+g);a[s].v=g,a[s].t="t",k=s}for(h>=0&&k<a.length&&(a[k].v=S.substr(0,h+1)+a[k].v),h=S.indexOf(".")+1,s=A;s<a.length;++s)if(!(a[s]==null||"n?(".indexOf(a[s].t)===-1&&s!==A)){for(f=a[s].v.indexOf(".")>-1&&s===A?a[s].v.indexOf(".")+1:0,g=a[s].v.substr(0,f);f<a[s].v.length;++f)h<S.length&&(g+=S.charAt(h++));a[s].v=g,a[s].t="t",k=s}}}for(s=0;s<a.length;++s)a[s]!=null&&"n?".indexOf(a[s].t)>-1&&(y=n>1&&t<0&&s>0&&a[s-1].v==="-"?-t:t,a[s].v=qs(a[s].t,a[s].v,y),a[s].t="t");var F="";for(s=0;s!==a.length;++s)a[s]!=null&&(F+=a[s].v);return F}var xF=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function _F(e,t){if(t==null)return!1;var r=parseFloat(t[2]);switch(t[1]){case"=":if(e==r)return!0;break;case">":if(e>r)return!0;break;case"<":if(e<r)return!0;break;case"<>":if(e!=r)return!0;break;case">=":if(e>=r)return!0;break;case"<=":if(e<=r)return!0;break}return!1}function aee(e,t){var r=ree(e),n=r.length,a=r[n-1].indexOf("@");if(n<4&&a>-1&&--n,r.length>4)throw new Error("cannot find right format for |"+r.join("|")+"|");if(typeof t!="number")return[4,r.length===4||a>-1?r[r.length-1]:"@"];switch(r.length){case 1:r=a>-1?["General","General","General",r[0]]:[r[0],r[0],r[0],"@"];break;case 2:r=a>-1?[r[0],r[0],r[0],r[1]]:[r[0],r[1],r[0],"@"];break;case 3:r=a>-1?[r[0],r[1],r[0],r[2]]:[r[0],r[1],r[2],"@"];break}var i=t>0?r[0]:t<0?r[1]:r[2];if(r[0].indexOf("[")===-1&&r[1].indexOf("[")===-1)return[n,i];if(r[0].match(/\[[=<>]/)!=null||r[1].match(/\[[=<>]/)!=null){var s=r[0].match(xF),o=r[1].match(xF);return _F(t,s)?[n,r[0]]:_F(t,o)?[n,r[1]]:[n,r[s!=null&&o!=null?2:1]]}return[n,i]}function Aa(e,t,r){r==null&&(r={});var n="";switch(typeof e){case"string":e=="m/d/yy"&&r.dateNF?n=r.dateNF:n=e;break;case"number":e==14&&r.dateNF?n=r.dateNF:n=(r.table!=null?r.table:ot)[e],n==null&&(n=r.table&&r.table[iF[e]]||ot[iF[e]]),n==null&&(n=$Q[e]||"General");break}if(Mp(n,0))return ju(t,r);t instanceof Date&&(t=oF(t,r.date1904));var a=aee(n,t);if(Mp(a[1]))return ju(t,r);if(t===!0)t="TRUE";else if(t===!1)t="FALSE";else if(t===""||t==null)return"";return nee(a[1],t,r,a[0])}function us(e,t){if(typeof t!="number"){t=+t||-1;for(var r=0;r<392;++r){if(ot[r]==null){t<0&&(t=r);continue}if(ot[r]==e){t=r;break}}t<0&&(t=391)}return ot[t]=e,t}function dd(e){for(var t=0;t!=392;++t)e[t]!==void 0&&us(e[t],t)}function Cc(){ot=jQ()}var yF={format:Aa,load:us,_table:ot,load_table:dd,parse_date_code:Io,is_date:$u,get_table:function(){return yF._table=ot}},iee={5:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',23:"General",24:"General",25:"General",26:"General",27:"m/d/yy",28:"m/d/yy",29:"m/d/yy",30:"m/d/yy",31:"m/d/yy",32:"h:mm:ss",33:"h:mm:ss",34:"h:mm:ss",35:"h:mm:ss",36:"m/d/yy",41:'_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* (#,##0);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* (#,##0.00);_("$"* "-"??_);_(@_)',50:"m/d/yy",51:"m/d/yy",52:"m/d/yy",53:"m/d/yy",54:"m/d/yy",55:"m/d/yy",56:"m/d/yy",57:"m/d/yy",58:"m/d/yy",59:"0",60:"0.00",61:"#,##0",62:"#,##0.00",63:'"$"#,##0_);\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',67:"0%",68:"0.00%",69:"# ?/?",70:"# ??/??",71:"m/d/yy",72:"m/d/yy",73:"d-mmm-yy",74:"d-mmm",75:"mmm-yy",76:"h:mm",77:"h:mm:ss",78:"m/d/yy h:mm",79:"mm:ss",80:"[h]:mm:ss",81:"mmss.0"},bF=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function see(e){var t=typeof e=="number"?ot[e]:e;return t=t.replace(bF,"(\\d+)"),new RegExp("^"+t+"$")}function oee(e,t,r){var n=-1,a=-1,i=-1,s=-1,o=-1,u=-1;(t.match(bF)||[]).forEach(function(d,p){var v=parseInt(r[p+1],10);switch(d.toLowerCase().charAt(0)){case"y":n=v;break;case"d":i=v;break;case"h":s=v;break;case"s":u=v;break;case"m":s>=0?o=v:a=v;break}}),u>=0&&o==-1&&a>=0&&(o=a,a=-1);var l=(""+(n>=0?n:new Date().getFullYear())).slice(-4)+"-"+("00"+(a>=1?a:1)).slice(-2)+"-"+("00"+(i>=1?i:1)).slice(-2);l.length==7&&(l="0"+l),l.length==8&&(l="20"+l);var f=("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(o>=0?o:0)).slice(-2)+":"+("00"+(u>=0?u:0)).slice(-2);return s==-1&&o==-1&&u==-1?l:n==-1&&a==-1&&i==-1?f:l+"T"+f}var uee=function(){var e={};e.version="1.2.0";function t(){for(var S=0,A=new Array(256),k=0;k!=256;++k)S=k,S=S&1?-306674912^S>>>1:S>>>1,S=S&1?-306674912^S>>>1:S>>>1,S=S&1?-306674912^S>>>1:S>>>1,S=S&1?-306674912^S>>>1:S>>>1,S=S&1?-306674912^S>>>1:S>>>1,S=S&1?-306674912^S>>>1:S>>>1,S=S&1?-306674912^S>>>1:S>>>1,S=S&1?-306674912^S>>>1:S>>>1,A[k]=S;return typeof Int32Array<"u"?new Int32Array(A):A}var r=t();function n(S){var A=0,k=0,F=0,P=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(F=0;F!=256;++F)P[F]=S[F];for(F=0;F!=256;++F)for(k=S[F],A=256+F;A<4096;A+=256)k=P[A]=k>>>8^S[k&255];var j=[];for(F=1;F!=16;++F)j[F-1]=typeof Int32Array<"u"?P.subarray(F*256,F*256+256):P.slice(F*256,F*256+256);return j}var a=n(r),i=a[0],s=a[1],o=a[2],u=a[3],l=a[4],f=a[5],d=a[6],p=a[7],v=a[8],_=a[9],x=a[10],w=a[11],C=a[12],E=a[13],b=a[14];function h(S,A){for(var k=A^-1,F=0,P=S.length;F<P;)k=k>>>8^r[(k^S.charCodeAt(F++))&255];return~k}function g(S,A){for(var k=A^-1,F=S.length-15,P=0;P<F;)k=b[S[P++]^k&255]^E[S[P++]^k>>8&255]^C[S[P++]^k>>16&255]^w[S[P++]^k>>>24]^x[S[P++]]^_[S[P++]]^v[S[P++]]^p[S[P++]]^d[S[P++]]^f[S[P++]]^l[S[P++]]^u[S[P++]]^o[S[P++]]^s[S[P++]]^i[S[P++]]^r[S[P++]];for(F+=15;P<F;)k=k>>>8^r[(k^S[P++])&255];return~k}function y(S,A){for(var k=A^-1,F=0,P=S.length,j=0,N=0;F<P;)j=S.charCodeAt(F++),j<128?k=k>>>8^r[(k^j)&255]:j<2048?(k=k>>>8^r[(k^(192|j>>6&31))&255],k=k>>>8^r[(k^(128|j&63))&255]):j>=55296&&j<57344?(j=(j&1023)+64,N=S.charCodeAt(F++)&1023,k=k>>>8^r[(k^(240|j>>8&7))&255],k=k>>>8^r[(k^(128|j>>2&63))&255],k=k>>>8^r[(k^(128|N>>6&15|(j&3)<<4))&255],k=k>>>8^r[(k^(128|N&63))&255]):(k=k>>>8^r[(k^(224|j>>12&15))&255],k=k>>>8^r[(k^(128|j>>6&63))&255],k=k>>>8^r[(k^(128|j&63))&255]);return~k}return e.table=r,e.bstr=h,e.buf=g,e.str=y,e}(),nt=function(){var t={};t.version="1.2.1";function r(X,z){for(var Y=X.split("/"),Z=z.split("/"),ne=0,ae=0,he=Math.min(Y.length,Z.length);ne<he;++ne){if(ae=Y[ne].length-Z[ne].length)return ae;if(Y[ne]!=Z[ne])return Y[ne]<Z[ne]?-1:1}return Y.length-Z.length}function n(X){if(X.charAt(X.length-1)=="/")return X.slice(0,-1).indexOf("/")===-1?X:n(X.slice(0,-1));var z=X.lastIndexOf("/");return z===-1?X:X.slice(0,z+1)}function a(X){if(X.charAt(X.length-1)=="/")return a(X.slice(0,-1));var z=X.lastIndexOf("/");return z===-1?X:X.slice(z+1)}function i(X,z){typeof z=="string"&&(z=new Date(z));var Y=z.getHours();Y=Y<<6|z.getMinutes(),Y=Y<<5|z.getSeconds()>>>1,X.write_shift(2,Y);var Z=z.getFullYear()-1980;Z=Z<<4|z.getMonth()+1,Z=Z<<5|z.getDate(),X.write_shift(2,Z)}function s(X){var z=X.read_shift(2)&65535,Y=X.read_shift(2)&65535,Z=new Date,ne=Y&31;Y>>>=5;var ae=Y&15;Y>>>=4,Z.setMilliseconds(0),Z.setFullYear(Y+1980),Z.setMonth(ae-1),Z.setDate(ne);var he=z&31;z>>>=5;var we=z&63;return z>>>=6,Z.setHours(z),Z.setMinutes(we),Z.setSeconds(he<<1),Z}function o(X){bn(X,0);for(var z={},Y=0;X.l<=X.length-4;){var Z=X.read_shift(2),ne=X.read_shift(2),ae=X.l+ne,he={};switch(Z){case 21589:Y=X.read_shift(1),Y&1&&(he.mtime=X.read_shift(4)),ne>5&&(Y&2&&(he.atime=X.read_shift(4)),Y&4&&(he.ctime=X.read_shift(4))),he.mtime&&(he.mt=new Date(he.mtime*1e3));break}X.l=ae,z[Z]=he}return z}var u;function l(){return u||(u={})}function f(X,z){if(X[0]==80&&X[1]==75)return Mi(X,z);if((X[0]|32)==109&&(X[1]|32)==105)return Hd(X,z);if(X.length<512)throw new Error("CFB file size "+X.length+" < 512");var Y=3,Z=512,ne=0,ae=0,he=0,we=0,fe=0,xe=[],ve=X.slice(0,512);bn(ve,0);var Te=d(ve);switch(Y=Te[0],Y){case 3:Z=512;break;case 4:Z=4096;break;case 0:if(Te[1]==0)return Mi(X,z);default:throw new Error("Major Version: Expected 3 or 4 saw "+Y)}Z!==512&&(ve=X.slice(0,Z),bn(ve,28));var Ne=X.slice(0,Z);p(ve,Y);var He=ve.read_shift(4,"i");if(Y===3&&He!==0)throw new Error("# Directory Sectors: Expected 0 saw "+He);ve.l+=4,he=ve.read_shift(4,"i"),ve.l+=4,ve.chk("00100000","Mini Stream Cutoff Size: "),we=ve.read_shift(4,"i"),ne=ve.read_shift(4,"i"),fe=ve.read_shift(4,"i"),ae=ve.read_shift(4,"i");for(var Ie=-1,je=0;je<109&&(Ie=ve.read_shift(4,"i"),!(Ie<0));++je)xe[je]=Ie;var pt=v(X,Z);w(fe,ae,pt,Z,xe);var cr=E(pt,he,xe,Z);cr[he].name="!Directory",ne>0&&we!==N&&(cr[we].name="!MiniFAT"),cr[xe[0]].name="!FAT",cr.fat_addrs=xe,cr.ssz=Z;var fr={},en=[],Ko=[],Zo=[];b(he,cr,pt,en,ne,fr,Ko,we),_(Ko,Zo,en),en.shift();var ll={FileIndex:Ko,FullPaths:Zo};return z&&z.raw&&(ll.raw={header:Ne,sectors:pt}),ll}function d(X){if(X[X.l]==80&&X[X.l+1]==75)return[0,0];X.chk(I,"Header Signature: "),X.l+=16;var z=X.read_shift(2,"u");return[X.read_shift(2,"u"),z]}function p(X,z){var Y=9;switch(X.l+=2,Y=X.read_shift(2)){case 9:if(z!=3)throw new Error("Sector Shift: Expected 9 saw "+Y);break;case 12:if(z!=4)throw new Error("Sector Shift: Expected 12 saw "+Y);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+Y)}X.chk("0600","Mini Sector Shift: "),X.chk("000000000000","Reserved: ")}function v(X,z){for(var Y=Math.ceil(X.length/z)-1,Z=[],ne=1;ne<Y;++ne)Z[ne-1]=X.slice(ne*z,(ne+1)*z);return Z[Y-1]=X.slice(Y*z),Z}function _(X,z,Y){for(var Z=0,ne=0,ae=0,he=0,we=0,fe=Y.length,xe=[],ve=[];Z<fe;++Z)xe[Z]=ve[Z]=Z,z[Z]=Y[Z];for(;we<ve.length;++we)Z=ve[we],ne=X[Z].L,ae=X[Z].R,he=X[Z].C,xe[Z]===Z&&(ne!==-1&&xe[ne]!==ne&&(xe[Z]=xe[ne]),ae!==-1&&xe[ae]!==ae&&(xe[Z]=xe[ae])),he!==-1&&(xe[he]=Z),ne!==-1&&Z!=xe[Z]&&(xe[ne]=xe[Z],ve.lastIndexOf(ne)<we&&ve.push(ne)),ae!==-1&&Z!=xe[Z]&&(xe[ae]=xe[Z],ve.lastIndexOf(ae)<we&&ve.push(ae));for(Z=1;Z<fe;++Z)xe[Z]===Z&&(ae!==-1&&xe[ae]!==ae?xe[Z]=xe[ae]:ne!==-1&&xe[ne]!==ne&&(xe[Z]=xe[ne]));for(Z=1;Z<fe;++Z)if(X[Z].type!==0){if(we=Z,we!=xe[we])do we=xe[we],z[Z]=z[we]+"/"+z[Z];while(we!==0&&xe[we]!==-1&&we!=xe[we]);xe[Z]=-1}for(z[0]+="/",Z=1;Z<fe;++Z)X[Z].type!==2&&(z[Z]+="/")}function x(X,z,Y){for(var Z=X.start,ne=X.size,ae=[],he=Z;Y&&ne>0&&he>=0;)ae.push(z.slice(he*j,he*j+j)),ne-=j,he=Hu(Y,he*4);return ae.length===0?Ce(0):un(ae).slice(0,X.size)}function w(X,z,Y,Z,ne){var ae=N;if(X===N){if(z!==0)throw new Error("DIFAT chain shorter than expected")}else if(X!==-1){var he=Y[X],we=(Z>>>2)-1;if(!he)return;for(var fe=0;fe<we&&(ae=Hu(he,fe*4))!==N;++fe)ne.push(ae);w(Hu(he,Z-4),z-1,Y,Z,ne)}}function C(X,z,Y,Z,ne){var ae=[],he=[];ne||(ne=[]);var we=Z-1,fe=0,xe=0;for(fe=z;fe>=0;){ne[fe]=!0,ae[ae.length]=fe,he.push(X[fe]);var ve=Y[Math.floor(fe*4/Z)];if(xe=fe*4&we,Z<4+xe)throw new Error("FAT boundary crossed: "+fe+" 4 "+Z);if(!X[ve])break;fe=Hu(X[ve],xe)}return{nodes:ae,data:zF([he])}}function E(X,z,Y,Z){var ne=X.length,ae=[],he=[],we=[],fe=[],xe=Z-1,ve=0,Te=0,Ne=0,He=0;for(ve=0;ve<ne;++ve)if(we=[],Ne=ve+z,Ne>=ne&&(Ne-=ne),!he[Ne]){fe=[];var Ie=[];for(Te=Ne;Te>=0;){Ie[Te]=!0,he[Te]=!0,we[we.length]=Te,fe.push(X[Te]);var je=Y[Math.floor(Te*4/Z)];if(He=Te*4&xe,Z<4+He)throw new Error("FAT boundary crossed: "+Te+" 4 "+Z);if(!X[je]||(Te=Hu(X[je],He),Ie[Te]))break}ae[Ne]={nodes:we,data:zF([fe])}}return ae}function b(X,z,Y,Z,ne,ae,he,we){for(var fe=0,xe=Z.length?2:0,ve=z[X].data,Te=0,Ne=0,He;Te<ve.length;Te+=128){var Ie=ve.slice(Te,Te+128);bn(Ie,64),Ne=Ie.read_shift(2),He=Hp(Ie,0,Ne-xe),Z.push(He);var je={name:He,type:Ie.read_shift(1),color:Ie.read_shift(1),L:Ie.read_shift(4,"i"),R:Ie.read_shift(4,"i"),C:Ie.read_shift(4,"i"),clsid:Ie.read_shift(16),state:Ie.read_shift(4,"i"),start:0,size:0},pt=Ie.read_shift(2)+Ie.read_shift(2)+Ie.read_shift(2)+Ie.read_shift(2);pt!==0&&(je.ct=h(Ie,Ie.l-8));var cr=Ie.read_shift(2)+Ie.read_shift(2)+Ie.read_shift(2)+Ie.read_shift(2);cr!==0&&(je.mt=h(Ie,Ie.l-8)),je.start=Ie.read_shift(4,"i"),je.size=Ie.read_shift(4,"i"),je.size<0&&je.start<0&&(je.size=je.type=0,je.start=N,je.name=""),je.type===5?(fe=je.start,ne>0&&fe!==N&&(z[fe].name="!StreamData")):je.size>=4096?(je.storage="fat",z[je.start]===void 0&&(z[je.start]=C(Y,je.start,z.fat_addrs,z.ssz)),z[je.start].name=je.name,je.content=z[je.start].data.slice(0,je.size)):(je.storage="minifat",je.size<0?je.size=0:fe!==N&&je.start!==N&&z[fe]&&(je.content=x(je,z[fe].data,(z[we]||{}).data))),je.content&&bn(je.content,0),ae[He]=je,he.push(je)}}function h(X,z){return new Date((ln(X,z+4)/1e7*Math.pow(2,32)+ln(X,z)/1e7-11644473600)*1e3)}function g(X,z){return l(),f(u.readFileSync(X),z)}function y(X,z){var Y=z&&z.type;switch(Y||At&&Buffer.isBuffer(X)&&(Y="buffer"),Y||"base64"){case"file":return g(X,z);case"base64":return f(Ta(ka(X)),z);case"binary":return f(Ta(X),z)}return f(X,z)}function S(X,z){var Y=z||{},Z=Y.root||"Root Entry";if(X.FullPaths||(X.FullPaths=[]),X.FileIndex||(X.FileIndex=[]),X.FullPaths.length!==X.FileIndex.length)throw new Error("inconsistent CFB structure");X.FullPaths.length===0&&(X.FullPaths[0]=Z+"/",X.FileIndex[0]={name:Z,type:5}),Y.CLSID&&(X.FileIndex[0].clsid=Y.CLSID),A(X)}function A(X){var z="Sh33tJ5";if(!nt.find(X,"/"+z)){var Y=Ce(4);Y[0]=55,Y[1]=Y[3]=50,Y[2]=54,X.FileIndex.push({name:z,type:2,content:Y,size:4,L:69,R:69,C:69}),X.FullPaths.push(X.FullPaths[0]+z),k(X)}}function k(X,z){S(X);for(var Y=!1,Z=!1,ne=X.FullPaths.length-1;ne>=0;--ne){var ae=X.FileIndex[ne];switch(ae.type){case 0:Z?Y=!0:(X.FileIndex.pop(),X.FullPaths.pop());break;case 1:case 2:case 5:Z=!0,isNaN(ae.R*ae.L*ae.C)&&(Y=!0),ae.R>-1&&ae.L>-1&&ae.R==ae.L&&(Y=!0);break;default:Y=!0;break}}if(!(!Y&&!z)){var he=new Date(1987,1,19),we=0,fe=Object.create?Object.create(null):{},xe=[];for(ne=0;ne<X.FullPaths.length;++ne)fe[X.FullPaths[ne]]=!0,X.FileIndex[ne].type!==0&&xe.push([X.FullPaths[ne],X.FileIndex[ne]]);for(ne=0;ne<xe.length;++ne){var ve=n(xe[ne][0]);Z=fe[ve],Z||(xe.push([ve,{name:a(ve).replace("/",""),type:1,clsid:O,ct:he,mt:he,content:null}]),fe[ve]=!0)}for(xe.sort(function(He,Ie){return r(He[0],Ie[0])}),X.FullPaths=[],X.FileIndex=[],ne=0;ne<xe.length;++ne)X.FullPaths[ne]=xe[ne][0],X.FileIndex[ne]=xe[ne][1];for(ne=0;ne<xe.length;++ne){var Te=X.FileIndex[ne],Ne=X.FullPaths[ne];if(Te.name=a(Ne).replace("/",""),Te.L=Te.R=Te.C=-(Te.color=1),Te.size=Te.content?Te.content.length:0,Te.start=0,Te.clsid=Te.clsid||O,ne===0)Te.C=xe.length>1?1:-1,Te.size=0,Te.type=5;else if(Ne.slice(-1)=="/"){for(we=ne+1;we<xe.length&&n(X.FullPaths[we])!=Ne;++we);for(Te.C=we>=xe.length?-1:we,we=ne+1;we<xe.length&&n(X.FullPaths[we])!=n(Ne);++we);Te.R=we>=xe.length?-1:we,Te.type=1}else n(X.FullPaths[ne+1]||"")==n(Ne)&&(Te.R=ne+1),Te.type=2}}}function F(X,z){var Y=z||{};if(Y.fileType=="mad")return Wd(X,Y);switch(k(X),Y.fileType){case"zip":return Go(X,Y)}var Z=function(He){for(var Ie=0,je=0,pt=0;pt<He.FileIndex.length;++pt){var cr=He.FileIndex[pt];if(cr.content){var fr=cr.content.length;fr>0&&(fr<4096?Ie+=fr+63>>6:je+=fr+511>>9)}}for(var en=He.FullPaths.length+3>>2,Ko=Ie+7>>3,Zo=Ie+127>>7,ll=Ko+je+en+Zo,Js=ll+127>>7,Gd=Js<=109?0:Math.ceil((Js-109)/127);ll+Js+Gd+127>>7>Js;)Gd=++Js<=109?0:Math.ceil((Js-109)/127);var Li=[1,Gd,Js,Zo,en,je,Ie,0];return He.FileIndex[0].size=Ie<<6,Li[7]=(He.FileIndex[0].start=Li[0]+Li[1]+Li[2]+Li[3]+Li[4]+Li[5])+(Li[6]+7>>3),Li}(X),ne=Ce(Z[7]<<9),ae=0,he=0;{for(ae=0;ae<8;++ae)ne.write_shift(1,B[ae]);for(ae=0;ae<8;++ae)ne.write_shift(2,0);for(ne.write_shift(2,62),ne.write_shift(2,3),ne.write_shift(2,65534),ne.write_shift(2,9),ne.write_shift(2,6),ae=0;ae<3;++ae)ne.write_shift(2,0);for(ne.write_shift(4,0),ne.write_shift(4,Z[2]),ne.write_shift(4,Z[0]+Z[1]+Z[2]+Z[3]-1),ne.write_shift(4,0),ne.write_shift(4,4096),ne.write_shift(4,Z[3]?Z[0]+Z[1]+Z[2]-1:N),ne.write_shift(4,Z[3]),ne.write_shift(-4,Z[1]?Z[0]-1:N),ne.write_shift(4,Z[1]),ae=0;ae<109;++ae)ne.write_shift(-4,ae<Z[2]?Z[1]+ae:-1)}if(Z[1])for(he=0;he<Z[1];++he){for(;ae<236+he*127;++ae)ne.write_shift(-4,ae<Z[2]?Z[1]+ae:-1);ne.write_shift(-4,he===Z[1]-1?N:he+1)}var we=function(He){for(he+=He;ae<he-1;++ae)ne.write_shift(-4,ae+1);He&&(++ae,ne.write_shift(-4,N))};for(he=ae=0,he+=Z[1];ae<he;++ae)ne.write_shift(-4,M.DIFSECT);for(he+=Z[2];ae<he;++ae)ne.write_shift(-4,M.FATSECT);we(Z[3]),we(Z[4]);for(var fe=0,xe=0,ve=X.FileIndex[0];fe<X.FileIndex.length;++fe)ve=X.FileIndex[fe],ve.content&&(xe=ve.content.length,!(xe<4096)&&(ve.start=he,we(xe+511>>9)));for(we(Z[6]+7>>3);ne.l&511;)ne.write_shift(-4,M.ENDOFCHAIN);for(he=ae=0,fe=0;fe<X.FileIndex.length;++fe)ve=X.FileIndex[fe],ve.content&&(xe=ve.content.length,!(!xe||xe>=4096)&&(ve.start=he,we(xe+63>>6)));for(;ne.l&511;)ne.write_shift(-4,M.ENDOFCHAIN);for(ae=0;ae<Z[4]<<2;++ae){var Te=X.FullPaths[ae];if(!Te||Te.length===0){for(fe=0;fe<17;++fe)ne.write_shift(4,0);for(fe=0;fe<3;++fe)ne.write_shift(4,-1);for(fe=0;fe<12;++fe)ne.write_shift(4,0);continue}ve=X.FileIndex[ae],ae===0&&(ve.start=ve.size?ve.start-1:N);var Ne=ae===0&&Y.root||ve.name;if(xe=2*(Ne.length+1),ne.write_shift(64,Ne,"utf16le"),ne.write_shift(2,xe),ne.write_shift(1,ve.type),ne.write_shift(1,ve.color),ne.write_shift(-4,ve.L),ne.write_shift(-4,ve.R),ne.write_shift(-4,ve.C),ve.clsid)ne.write_shift(16,ve.clsid,"hex");else for(fe=0;fe<4;++fe)ne.write_shift(4,0);ne.write_shift(4,ve.state||0),ne.write_shift(4,0),ne.write_shift(4,0),ne.write_shift(4,0),ne.write_shift(4,0),ne.write_shift(4,ve.start),ne.write_shift(4,ve.size),ne.write_shift(4,0)}for(ae=1;ae<X.FileIndex.length;++ae)if(ve=X.FileIndex[ae],ve.size>=4096)if(ne.l=ve.start+1<<9,At&&Buffer.isBuffer(ve.content))ve.content.copy(ne,ne.l,0,ve.size),ne.l+=ve.size+511&-512;else{for(fe=0;fe<ve.size;++fe)ne.write_shift(1,ve.content[fe]);for(;fe&511;++fe)ne.write_shift(1,0)}for(ae=1;ae<X.FileIndex.length;++ae)if(ve=X.FileIndex[ae],ve.size>0&&ve.size<4096)if(At&&Buffer.isBuffer(ve.content))ve.content.copy(ne,ne.l,0,ve.size),ne.l+=ve.size+63&-64;else{for(fe=0;fe<ve.size;++fe)ne.write_shift(1,ve.content[fe]);for(;fe&63;++fe)ne.write_shift(1,0)}if(At)ne.l=ne.length;else for(;ne.l<ne.length;)ne.write_shift(1,0);return ne}function P(X,z){var Y=X.FullPaths.map(function(fe){return fe.toUpperCase()}),Z=Y.map(function(fe){var xe=fe.split("/");return xe[xe.length-(fe.slice(-1)=="/"?2:1)]}),ne=!1;z.charCodeAt(0)===47?(ne=!0,z=Y[0].slice(0,-1)+z):ne=z.indexOf("/")!==-1;var ae=z.toUpperCase(),he=ne===!0?Y.indexOf(ae):Z.indexOf(ae);if(he!==-1)return X.FileIndex[he];var we=!ae.match(cd);for(ae=ae.replace(Fn,""),we&&(ae=ae.replace(cd,"!")),he=0;he<Y.length;++he)if((we?Y[he].replace(cd,"!"):Y[he]).replace(Fn,"")==ae||(we?Z[he].replace(cd,"!"):Z[he]).replace(Fn,"")==ae)return X.FileIndex[he];return null}var j=64,N=-2,I="d0cf11e0a1b11ae1",B=[208,207,17,224,161,177,26,225],O="00000000000000000000000000000000",M={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:N,FREESECT:-1,HEADER_SIGNATURE:I,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:O,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function V(X,z,Y){l();var Z=F(X,Y);u.writeFileSync(z,Z)}function L(X){for(var z=new Array(X.length),Y=0;Y<X.length;++Y)z[Y]=String.fromCharCode(X[Y]);return z.join("")}function W(X,z){var Y=F(X,z);switch(z&&z.type||"buffer"){case"file":return l(),u.writeFileSync(z.filename,Y),Y;case"binary":return typeof Y=="string"?Y:L(Y);case"base64":return ud(typeof Y=="string"?Y:L(Y));case"buffer":if(At)return Buffer.isBuffer(Y)?Y:Vs(Y);case"array":return typeof Y=="string"?Ta(Y):Y}return Y}var G;function H(X){try{var z=X.InflateRaw,Y=new z;if(Y._processChunk(new Uint8Array([3,0]),Y._finishFlushFlag),Y.bytesRead)G=X;else throw new Error("zlib does not expose bytesRead")}catch(Z){console.error("cannot use native zlib: "+(Z.message||Z))}}function Q(X,z){if(!G)return Vo(X,z);var Y=G.InflateRaw,Z=new Y,ne=Z._processChunk(X.slice(X.l),Z._finishFlushFlag);return X.l+=Z.bytesRead,ne}function K(X){return G?G.deflateRawSync(X):_t(X)}var te=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],se=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],le=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];function ge(X){var z=(X<<1|X<<11)&139536|(X<<5|X<<15)&558144;return(z>>16|z>>8|z)&255}for(var ye=typeof Uint8Array<"u",be=ye?new Uint8Array(256):[],Be=0;Be<256;++Be)be[Be]=ge(Be);function J(X,z){var Y=be[X&255];return z<=8?Y>>>8-z:(Y=Y<<8|be[X>>8&255],z<=16?Y>>>16-z:(Y=Y<<8|be[X>>16&255],Y>>>24-z))}function qe(X,z){var Y=z&7,Z=z>>>3;return(X[Z]|(Y<=6?0:X[Z+1]<<8))>>>Y&3}function _e(X,z){var Y=z&7,Z=z>>>3;return(X[Z]|(Y<=5?0:X[Z+1]<<8))>>>Y&7}function ze(X,z){var Y=z&7,Z=z>>>3;return(X[Z]|(Y<=4?0:X[Z+1]<<8))>>>Y&15}function We(X,z){var Y=z&7,Z=z>>>3;return(X[Z]|(Y<=3?0:X[Z+1]<<8))>>>Y&31}function De(X,z){var Y=z&7,Z=z>>>3;return(X[Z]|(Y<=1?0:X[Z+1]<<8))>>>Y&127}function ut(X,z,Y){var Z=z&7,ne=z>>>3,ae=(1<<Y)-1,he=X[ne]>>>Z;return Y<8-Z||(he|=X[ne+1]<<8-Z,Y<16-Z)||(he|=X[ne+2]<<16-Z,Y<24-Z)||(he|=X[ne+3]<<24-Z),he&ae}function Ye(X,z,Y){var Z=z&7,ne=z>>>3;return Z<=5?X[ne]|=(Y&7)<<Z:(X[ne]|=Y<<Z&255,X[ne+1]=(Y&7)>>8-Z),z+3}function it(X,z,Y){var Z=z&7,ne=z>>>3;return Y=(Y&1)<<Z,X[ne]|=Y,z+1}function Je(X,z,Y){var Z=z&7,ne=z>>>3;return Y<<=Z,X[ne]|=Y&255,Y>>>=8,X[ne+1]=Y,z+8}function Xe(X,z,Y){var Z=z&7,ne=z>>>3;return Y<<=Z,X[ne]|=Y&255,Y>>>=8,X[ne+1]=Y&255,X[ne+2]=Y>>>8,z+16}function xt(X,z){var Y=X.length,Z=2*Y>z?2*Y:z+5,ne=0;if(Y>=z)return X;if(At){var ae=rF(Z);if(X.copy)X.copy(ae);else for(;ne<X.length;++ne)ae[ne]=X[ne];return ae}else if(ye){var he=new Uint8Array(Z);if(he.set)he.set(X);else for(;ne<Y;++ne)he[ne]=X[ne];return he}return X.length=Z,X}function or(X){for(var z=new Array(X),Y=0;Y<X;++Y)z[Y]=0;return z}function Fr(X,z,Y){var Z=1,ne=0,ae=0,he=0,we=0,fe=X.length,xe=ye?new Uint16Array(32):or(32);for(ae=0;ae<32;++ae)xe[ae]=0;for(ae=fe;ae<Y;++ae)X[ae]=0;fe=X.length;var ve=ye?new Uint16Array(fe):or(fe);for(ae=0;ae<fe;++ae)xe[ne=X[ae]]++,Z<ne&&(Z=ne),ve[ae]=0;for(xe[0]=0,ae=1;ae<=Z;++ae)xe[ae+16]=we=we+xe[ae-1]<<1;for(ae=0;ae<fe;++ae)we=X[ae],we!=0&&(ve[ae]=xe[we+16]++);var Te=0;for(ae=0;ae<fe;++ae)if(Te=X[ae],Te!=0)for(we=J(ve[ae],Z)>>Z-Te,he=(1<<Z+4-Te)-1;he>=0;--he)z[we|he<<Te]=Te&15|ae<<4;return Z}var Pa=ye?new Uint16Array(512):or(512),oa=ye?new Uint16Array(32):or(32);if(!ye){for(var Cr=0;Cr<512;++Cr)Pa[Cr]=0;for(Cr=0;Cr<32;++Cr)oa[Cr]=0}(function(){for(var X=[],z=0;z<32;z++)X.push(5);Fr(X,oa,32);var Y=[];for(z=0;z<=143;z++)Y.push(8);for(;z<=255;z++)Y.push(9);for(;z<=279;z++)Y.push(7);for(;z<=287;z++)Y.push(8);Fr(Y,Pa,288)})();var Sn=function(){for(var z=ye?new Uint8Array(32768):[],Y=0,Z=0;Y<le.length-1;++Y)for(;Z<le[Y+1];++Z)z[Z]=Y;for(;Z<32768;++Z)z[Z]=29;var ne=ye?new Uint8Array(259):[];for(Y=0,Z=0;Y<se.length-1;++Y)for(;Z<se[Y+1];++Z)ne[Z]=Y;function ae(we,fe){for(var xe=0;xe<we.length;){var ve=Math.min(65535,we.length-xe),Te=xe+ve==we.length;for(fe.write_shift(1,+Te),fe.write_shift(2,ve),fe.write_shift(2,~ve&65535);ve-- >0;)fe[fe.l++]=we[xe++]}return fe.l}function he(we,fe){for(var xe=0,ve=0,Te=ye?new Uint16Array(32768):[];ve<we.length;){var Ne=Math.min(65535,we.length-ve);if(Ne<10){for(xe=Ye(fe,xe,+(ve+Ne==we.length)),xe&7&&(xe+=8-(xe&7)),fe.l=xe/8|0,fe.write_shift(2,Ne),fe.write_shift(2,~Ne&65535);Ne-- >0;)fe[fe.l++]=we[ve++];xe=fe.l*8;continue}xe=Ye(fe,xe,+(ve+Ne==we.length)+2);for(var He=0;Ne-- >0;){var Ie=we[ve];He=(He<<5^Ie)&32767;var je=-1,pt=0;if((je=Te[He])&&(je|=ve&-32768,je>ve&&(je-=32768),je<ve))for(;we[je+pt]==we[ve+pt]&&pt<250;)++pt;if(pt>2){Ie=ne[pt],Ie<=22?xe=Je(fe,xe,be[Ie+1]>>1)-1:(Je(fe,xe,3),xe+=5,Je(fe,xe,be[Ie-23]>>5),xe+=3);var cr=Ie<8?0:Ie-4>>2;cr>0&&(Xe(fe,xe,pt-se[Ie]),xe+=cr),Ie=z[ve-je],xe=Je(fe,xe,be[Ie]>>3),xe-=3;var fr=Ie<4?0:Ie-2>>1;fr>0&&(Xe(fe,xe,ve-je-le[Ie]),xe+=fr);for(var en=0;en<pt;++en)Te[He]=ve&32767,He=(He<<5^we[ve])&32767,++ve;Ne-=pt-1}else Ie<=143?Ie=Ie+48:xe=it(fe,xe,1),xe=Je(fe,xe,be[Ie]),Te[He]=ve&32767,++ve}xe=Je(fe,xe,0)-1}return fe.l=(xe+7)/8|0,fe.l}return function(fe,xe){return fe.length<8?ae(fe,xe):he(fe,xe)}}();function _t(X){var z=Ce(50+Math.floor(X.length*1.1)),Y=Sn(X,z);return z.slice(0,Y)}var lr=ye?new Uint16Array(32768):or(32768),dn=ye?new Uint16Array(32768):or(32768),wr=ye?new Uint16Array(128):or(128),Da=1,Wo=1;function al(X,z){var Y=We(X,z)+257;z+=5;var Z=We(X,z)+1;z+=5;var ne=ze(X,z)+4;z+=4;for(var ae=0,he=ye?new Uint8Array(19):or(19),we=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],fe=1,xe=ye?new Uint8Array(8):or(8),ve=ye?new Uint8Array(8):or(8),Te=he.length,Ne=0;Ne<ne;++Ne)he[te[Ne]]=ae=_e(X,z),fe<ae&&(fe=ae),xe[ae]++,z+=3;var He=0;for(xe[0]=0,Ne=1;Ne<=fe;++Ne)ve[Ne]=He=He+xe[Ne-1]<<1;for(Ne=0;Ne<Te;++Ne)(He=he[Ne])!=0&&(we[Ne]=ve[He]++);var Ie=0;for(Ne=0;Ne<Te;++Ne)if(Ie=he[Ne],Ie!=0){He=be[we[Ne]]>>8-Ie;for(var je=(1<<7-Ie)-1;je>=0;--je)wr[He|je<<Ie]=Ie&7|Ne<<3}var pt=[];for(fe=1;pt.length<Y+Z;)switch(He=wr[De(X,z)],z+=He&7,He>>>=3){case 16:for(ae=3+qe(X,z),z+=2,He=pt[pt.length-1];ae-- >0;)pt.push(He);break;case 17:for(ae=3+_e(X,z),z+=3;ae-- >0;)pt.push(0);break;case 18:for(ae=11+De(X,z),z+=7;ae-- >0;)pt.push(0);break;default:pt.push(He),fe<He&&(fe=He);break}var cr=pt.slice(0,Y),fr=pt.slice(Y);for(Ne=Y;Ne<286;++Ne)cr[Ne]=0;for(Ne=Z;Ne<30;++Ne)fr[Ne]=0;return Da=Fr(cr,lr,286),Wo=Fr(fr,dn,30),z}function il(X,z){if(X[0]==3&&!(X[1]&3))return[Do(z),2];for(var Y=0,Z=0,ne=rF(z||1<<18),ae=0,he=ne.length>>>0,we=0,fe=0;!(Z&1);){if(Z=_e(X,Y),Y+=3,Z>>>1)Z>>1==1?(we=9,fe=5):(Y=al(X,Y),we=Da,fe=Wo);else{Y&7&&(Y+=8-(Y&7));var xe=X[Y>>>3]|X[(Y>>>3)+1]<<8;if(Y+=32,xe>0)for(!z&&he<ae+xe&&(ne=xt(ne,ae+xe),he=ne.length);xe-- >0;)ne[ae++]=X[Y>>>3],Y+=8;continue}for(;;){!z&&he<ae+32767&&(ne=xt(ne,ae+32767),he=ne.length);var ve=ut(X,Y,we),Te=Z>>>1==1?Pa[ve]:lr[ve];if(Y+=Te&15,Te>>>=4,!(Te>>>8&255))ne[ae++]=Te;else{if(Te==256)break;Te-=257;var Ne=Te<8?0:Te-4>>2;Ne>5&&(Ne=0);var He=ae+se[Te];Ne>0&&(He+=ut(X,Y,Ne),Y+=Ne),ve=ut(X,Y,fe),Te=Z>>>1==1?oa[ve]:dn[ve],Y+=Te&15,Te>>>=4;var Ie=Te<4?0:Te-2>>1,je=le[Te];for(Ie>0&&(je+=ut(X,Y,Ie),Y+=Ie),!z&&he<He&&(ne=xt(ne,He+100),he=ne.length);ae<He;)ne[ae]=ne[ae-je],++ae}}}return z?[ne,Y+7>>>3]:[ne.slice(0,ae),Y+7>>>3]}function Vo(X,z){var Y=X.slice(X.l||0),Z=il(Y,z);return X.l+=Z[1],Z[0]}function sl(X,z){if(X)typeof console<"u"&&console.error(z);else throw new Error(z)}function Mi(X,z){var Y=X;bn(Y,0);var Z=[],ne=[],ae={FileIndex:Z,FullPaths:ne};S(ae,{root:z.root});for(var he=Y.length-4;(Y[he]!=80||Y[he+1]!=75||Y[he+2]!=5||Y[he+3]!=6)&&he>=0;)--he;Y.l=he+4,Y.l+=4;var we=Y.read_shift(2);Y.l+=6;var fe=Y.read_shift(4);for(Y.l=fe,he=0;he<we;++he){Y.l+=20;var xe=Y.read_shift(4),ve=Y.read_shift(4),Te=Y.read_shift(2),Ne=Y.read_shift(2),He=Y.read_shift(2);Y.l+=8;var Ie=Y.read_shift(4),je=o(Y.slice(Y.l+Te,Y.l+Te+Ne));Y.l+=Te+Ne+He;var pt=Y.l;Y.l=Ie+4,qo(Y,xe,ve,ae,je),Y.l=pt}return ae}function qo(X,z,Y,Z,ne){X.l+=2;var ae=X.read_shift(2),he=X.read_shift(2),we=s(X);if(ae&8257)throw new Error("Unsupported ZIP encryption");for(var fe=X.read_shift(4),xe=X.read_shift(4),ve=X.read_shift(4),Te=X.read_shift(2),Ne=X.read_shift(2),He="",Ie=0;Ie<Te;++Ie)He+=String.fromCharCode(X[X.l++]);if(Ne){var je=o(X.slice(X.l,X.l+Ne));(je[21589]||{}).mt&&(we=je[21589].mt),((ne||{})[21589]||{}).mt&&(we=ne[21589].mt)}X.l+=Ne;var pt=X.slice(X.l,X.l+xe);switch(he){case 8:pt=Q(X,ve);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+he)}var cr=!1;ae&8&&(fe=X.read_shift(4),fe==134695760&&(fe=X.read_shift(4),cr=!0),xe=X.read_shift(4),ve=X.read_shift(4)),xe!=z&&sl(cr,"Bad compressed size: "+z+" != "+xe),ve!=Y&&sl(cr,"Bad uncompressed size: "+Y+" != "+ve),Xo(Z,He,pt,{unsafe:!0,mt:we})}function Go(X,z){var Y=z||{},Z=[],ne=[],ae=Ce(1),he=Y.compression?8:0,we=0,fe=0,xe=0,ve=0,Te=0,Ne=X.FullPaths[0],He=Ne,Ie=X.FileIndex[0],je=[],pt=0;for(fe=1;fe<X.FullPaths.length;++fe)if(He=X.FullPaths[fe].slice(Ne.length),Ie=X.FileIndex[fe],!(!Ie.size||!Ie.content||He=="Sh33tJ5")){var cr=ve,fr=Ce(He.length);for(xe=0;xe<He.length;++xe)fr.write_shift(1,He.charCodeAt(xe)&127);fr=fr.slice(0,fr.l),je[Te]=uee.buf(Ie.content,0);var en=Ie.content;he==8&&(en=K(en)),ae=Ce(30),ae.write_shift(4,67324752),ae.write_shift(2,20),ae.write_shift(2,we),ae.write_shift(2,he),Ie.mt?i(ae,Ie.mt):ae.write_shift(4,0),ae.write_shift(-4,je[Te]),ae.write_shift(4,en.length),ae.write_shift(4,Ie.content.length),ae.write_shift(2,fr.length),ae.write_shift(2,0),ve+=ae.length,Z.push(ae),ve+=fr.length,Z.push(fr),ve+=en.length,Z.push(en),ae=Ce(46),ae.write_shift(4,33639248),ae.write_shift(2,0),ae.write_shift(2,20),ae.write_shift(2,we),ae.write_shift(2,he),ae.write_shift(4,0),ae.write_shift(-4,je[Te]),ae.write_shift(4,en.length),ae.write_shift(4,Ie.content.length),ae.write_shift(2,fr.length),ae.write_shift(2,0),ae.write_shift(2,0),ae.write_shift(2,0),ae.write_shift(2,0),ae.write_shift(4,0),ae.write_shift(4,cr),pt+=ae.l,ne.push(ae),pt+=fr.length,ne.push(fr),++Te}return ae=Ce(22),ae.write_shift(4,101010256),ae.write_shift(2,0),ae.write_shift(2,0),ae.write_shift(2,Te),ae.write_shift(2,Te),ae.write_shift(4,pt),ae.write_shift(4,ve),ae.write_shift(2,0),un([un(Z),un(ne),ae])}var Zs={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function Ud(X,z){if(X.ctype)return X.ctype;var Y=X.name||"",Z=Y.match(/\.([^\.]+)$/);return Z&&Zs[Z[1]]||z&&(Z=(Y=z).match(/[\.\\]([^\.\\])+$/),Z&&Zs[Z[1]])?Zs[Z[1]]:"application/octet-stream"}function $c(X){for(var z=ud(X),Y=[],Z=0;Z<z.length;Z+=76)Y.push(z.slice(Z,Z+76));return Y.join(`\r
530
+ `)+`\r
531
+ `}function zd(X){var z=X.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(xe){var ve=xe.charCodeAt(0).toString(16).toUpperCase();return"="+(ve.length==1?"0"+ve:ve)});z=z.replace(/ $/mg,"=20").replace(/\t$/mg,"=09"),z.charAt(0)==`
532
+ `&&(z="=0D"+z.slice(1)),z=z.replace(/\r(?!\n)/mg,"=0D").replace(/\n\n/mg,`
533
+ =0A`).replace(/([^\r\n])\n/mg,"$1=0A");for(var Y=[],Z=z.split(`\r
534
+ `),ne=0;ne<Z.length;++ne){var ae=Z[ne];if(ae.length==0){Y.push("");continue}for(var he=0;he<ae.length;){var we=76,fe=ae.slice(he,he+we);fe.charAt(we-1)=="="?we--:fe.charAt(we-2)=="="?we-=2:fe.charAt(we-3)=="="&&(we-=3),fe=ae.slice(he,he+we),he+=we,he<ae.length&&(fe+="="),Y.push(fe)}}return Y.join(`\r
535
+ `)}function ol(X){for(var z=[],Y=0;Y<X.length;++Y){for(var Z=X[Y];Y<=X.length&&Z.charAt(Z.length-1)=="=";)Z=Z.slice(0,Z.length-1)+X[++Y];z.push(Z)}for(var ne=0;ne<z.length;++ne)z[ne]=z[ne].replace(/[=][0-9A-Fa-f]{2}/g,function(ae){return String.fromCharCode(parseInt(ae.slice(1),16))});return Ta(z.join(`\r
536
+ `))}function Uc(X,z,Y){for(var Z="",ne="",ae="",he,we=0;we<10;++we){var fe=z[we];if(!fe||fe.match(/^\s*$/))break;var xe=fe.match(/^(.*?):\s*([^\s].*)$/);if(xe)switch(xe[1].toLowerCase()){case"content-location":Z=xe[2].trim();break;case"content-type":ae=xe[2].trim();break;case"content-transfer-encoding":ne=xe[2].trim();break}}switch(++we,ne.toLowerCase()){case"base64":he=Ta(ka(z.slice(we).join("")));break;case"quoted-printable":he=ol(z.slice(we));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+ne)}var ve=Xo(X,Z.slice(Y.length),he,{unsafe:!0});ae&&(ve.ctype=ae)}function Hd(X,z){if(L(X.slice(0,13)).toLowerCase()!="mime-version:")throw new Error("Unsupported MAD header");var Y=z&&z.root||"",Z=(At&&Buffer.isBuffer(X)?X.toString("binary"):L(X)).split(`\r
537
+ `),ne=0,ae="";for(ne=0;ne<Z.length;++ne)if(ae=Z[ne],!!/^Content-Location:/i.test(ae)&&(ae=ae.slice(ae.indexOf("file")),Y||(Y=ae.slice(0,ae.lastIndexOf("/")+1)),ae.slice(0,Y.length)!=Y))for(;Y.length>0&&(Y=Y.slice(0,Y.length-1),Y=Y.slice(0,Y.lastIndexOf("/")+1),ae.slice(0,Y.length)!=Y););var he=(Z[1]||"").match(/boundary="(.*?)"/);if(!he)throw new Error("MAD cannot find boundary");var we="--"+(he[1]||""),fe=[],xe=[],ve={FileIndex:fe,FullPaths:xe};S(ve);var Te,Ne=0;for(ne=0;ne<Z.length;++ne){var He=Z[ne];He!==we&&He!==we+"--"||(Ne++&&Uc(ve,Z.slice(Te,ne),Y),Te=ne)}return ve}function Wd(X,z){var Y=z||{},Z=Y.boundary||"SheetJS";Z="------="+Z;for(var ne=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+Z.slice(2)+'"',"","",""],ae=X.FullPaths[0],he=ae,we=X.FileIndex[0],fe=1;fe<X.FullPaths.length;++fe)if(he=X.FullPaths[fe].slice(ae.length),we=X.FileIndex[fe],!(!we.size||!we.content||he=="Sh33tJ5")){he=he.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(pt){return"_x"+pt.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function(pt){return"_u"+pt.charCodeAt(0).toString(16)+"_"});for(var xe=we.content,ve=At&&Buffer.isBuffer(xe)?xe.toString("binary"):L(xe),Te=0,Ne=Math.min(1024,ve.length),He=0,Ie=0;Ie<=Ne;++Ie)(He=ve.charCodeAt(Ie))>=32&&He<128&&++Te;var je=Te>=Ne*4/5;ne.push(Z),ne.push("Content-Location: "+(Y.root||"file:///C:/SheetJS/")+he),ne.push("Content-Transfer-Encoding: "+(je?"quoted-printable":"base64")),ne.push("Content-Type: "+Ud(we,he)),ne.push(""),ne.push(je?zd(ve):$c(ve))}return ne.push(Z+`--\r
538
+ `),ne.join(`\r
539
+ `)}function Yo(X){var z={};return S(z,X),z}function Xo(X,z,Y,Z){var ne=Z&&Z.unsafe;ne||S(X);var ae=!ne&&nt.find(X,z);if(!ae){var he=X.FullPaths[0];z.slice(0,he.length)==he?he=z:(he.slice(-1)!="/"&&(he+="/"),he=(he+z).replace("//","/")),ae={name:a(z),type:2},X.FileIndex.push(ae),X.FullPaths.push(he),ne||nt.utils.cfb_gc(X)}return ae.content=Y,ae.size=Y?Y.length:0,Z&&(Z.CLSID&&(ae.clsid=Z.CLSID),Z.mt&&(ae.mt=Z.mt),Z.ct&&(ae.ct=Z.ct)),ae}function ul(X,z){S(X);var Y=nt.find(X,z);if(Y){for(var Z=0;Z<X.FileIndex.length;++Z)if(X.FileIndex[Z]==Y)return X.FileIndex.splice(Z,1),X.FullPaths.splice(Z,1),!0}return!1}function Vd(X,z,Y){S(X);var Z=nt.find(X,z);if(Z){for(var ne=0;ne<X.FileIndex.length;++ne)if(X.FileIndex[ne]==Z)return X.FileIndex[ne].name=a(Y),X.FullPaths[ne]=Y,!0}return!1}function qd(X){k(X,!0)}return t.find=P,t.read=y,t.parse=f,t.write=W,t.writeFile=V,t.utils={cfb_new:Yo,cfb_add:Xo,cfb_del:ul,cfb_mov:Vd,cfb_gc:qd,ReadShift:xd,CheckField:e7,prep_blob:bn,bconcat:un,use_zlib:H,_deflateRaw:_t,_inflateRaw:Vo,consts:M},t}();let Mo;function lee(e){Mo=e}function cee(e){return typeof e=="string"?ld(e):Array.isArray(e)?NQ(e):e}function hd(e,t,r){if(typeof Mo<"u"&&Mo.writeFileSync)return r?Mo.writeFileSync(e,t,r):Mo.writeFileSync(e,t);if(typeof Deno<"u"){if(r&&typeof t=="string")switch(r){case"utf8":t=new TextEncoder(r).encode(t);break;case"binary":t=ld(t);break;default:throw new Error("Unsupported encoding "+r)}return Deno.writeFileSync(e,t)}var n=r=="utf8"?cs(t):t;if(typeof IE_SaveFile<"u")return IE_SaveFile(n,e);if(typeof Blob<"u"){var a=new Blob([cee(n)],{type:"application/octet-stream"});if(typeof navigator<"u"&&navigator.msSaveBlob)return navigator.msSaveBlob(a,e);if(typeof saveAs<"u")return saveAs(a,e);if(typeof URL<"u"&&typeof document<"u"&&document.createElement&&URL.createObjectURL){var i=URL.createObjectURL(a);if(typeof chrome=="object"&&typeof(chrome.downloads||{}).download=="function")return URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(i)},6e4),chrome.downloads.download({url:i,filename:e,saveAs:!0});var s=document.createElement("a");if(s.download!=null)return s.download=e,s.href=i,document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(i)},6e4),i}}if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var o=File(e);return o.open("w"),o.encoding="binary",Array.isArray(t)&&(t=Ro(t)),o.write(t),o.close(),t}catch(u){if(!u.message||!u.message.match(/onstruct/))throw u}throw new Error("cannot save file "+e)}function fee(e){if(typeof Mo<"u")return Mo.readFileSync(e);if(typeof Deno<"u")return Deno.readFileSync(e);if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var t=File(e);t.open("r"),t.encoding="binary";var r=t.read();return t.close(),r}catch(n){if(!n.message||!n.message.match(/onstruct/))throw n}throw new Error("Cannot access file "+e)}function Dr(e){for(var t=Object.keys(e),r=[],n=0;n<t.length;++n)Object.prototype.hasOwnProperty.call(e,t[n])&&r.push(t[n]);return r}function wF(e,t){for(var r=[],n=Dr(e),a=0;a!==n.length;++a)r[e[n[a]][t]]==null&&(r[e[n[a]][t]]=n[a]);return r}function Bp(e){for(var t=[],r=Dr(e),n=0;n!==r.length;++n)t[e[r[n]]]=r[n];return t}function jp(e){for(var t=[],r=Dr(e),n=0;n!==r.length;++n)t[e[r[n]]]=parseInt(r[n],10);return t}function dee(e){for(var t=[],r=Dr(e),n=0;n!==r.length;++n)t[e[r[n]]]==null&&(t[e[r[n]]]=[]),t[e[r[n]]].push(r[n]);return t}var $p=new Date(1899,11,30,0,0,0);function Jr(e,t){var r=e.getTime(),n=$p.getTime()+(e.getTimezoneOffset()-$p.getTimezoneOffset())*6e4;return(r-n)/(24*60*60*1e3)}var SF=new Date,hee=$p.getTime()+(SF.getTimezoneOffset()-$p.getTimezoneOffset())*6e4,EF=SF.getTimezoneOffset();function Up(e){var t=new Date;return t.setTime(e*24*60*60*1e3+hee),t.getTimezoneOffset()!==EF&&t.setTime(t.getTime()+(t.getTimezoneOffset()-EF)*6e4),t}function pee(e){var t=0,r=0,n=!1,a=e.match(/P([0-9\.]+Y)?([0-9\.]+M)?([0-9\.]+D)?T([0-9\.]+H)?([0-9\.]+M)?([0-9\.]+S)?/);if(!a)throw new Error("|"+e+"| is not an ISO8601 Duration");for(var i=1;i!=a.length;++i)if(a[i]){switch(r=1,i>3&&(n=!0),a[i].slice(a[i].length-1)){case"Y":throw new Error("Unsupported ISO Duration Field: "+a[i].slice(a[i].length-1));case"D":r*=24;case"H":r*=60;case"M":if(n)r*=60;else throw new Error("Unsupported ISO Duration Field: M")}t+=r*parseInt(a[i],10)}return t}var CF=new Date("2017-02-19T19:06:09.000Z"),kF=isNaN(CF.getFullYear())?new Date("2/19/17"):CF,mee=kF.getFullYear()==2017;function _r(e,t){var r=new Date(e);if(mee)return t>0?r.setTime(r.getTime()+r.getTimezoneOffset()*60*1e3):t<0&&r.setTime(r.getTime()-r.getTimezoneOffset()*60*1e3),r;if(e instanceof Date)return e;if(kF.getFullYear()==1917&&!isNaN(r.getFullYear())){var n=r.getFullYear();return e.indexOf(""+n)>-1||r.setFullYear(r.getFullYear()+100),r}var a=e.match(/\d+/g)||["2017","2","19","0","0","0"],i=new Date(+a[0],+a[1]-1,+a[2],+a[3]||0,+a[4]||0,+a[5]||0);return e.indexOf("Z")>-1&&(i=new Date(i.getTime()-i.getTimezoneOffset()*60*1e3)),i}function Uu(e,t){if(At&&Buffer.isBuffer(e)){if(t){if(e[0]==255&&e[1]==254)return cs(e.slice(2).toString("utf16le"));if(e[1]==254&&e[2]==255)return cs(tF(e.slice(2).toString("binary")))}return e.toString("binary")}if(typeof TextDecoder<"u")try{if(t){if(e[0]==255&&e[1]==254)return cs(new TextDecoder("utf-16le").decode(e.slice(2)));if(e[0]==254&&e[1]==255)return cs(new TextDecoder("utf-16be").decode(e.slice(2)))}var r={"€":"€","‚":"‚",ƒ:"ƒ","„":"„","…":"…","†":"†","‡":"‡","ˆ":"ˆ","‰":"‰",Š:"Š","‹":"‹",Œ:"Œ",Ž:"Ž","‘":"‘","’":"’","“":"“","”":"”","•":"•","–":"–","—":"—","˜":"˜","™":"™",š:"š","›":"›",œ:"œ",ž:"ž",Ÿ:"Ÿ"};return Array.isArray(e)&&(e=new Uint8Array(e)),new TextDecoder("latin1").decode(e).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,function(i){return r[i]||i})}catch{}for(var n=[],a=0;a!=e.length;++a)n.push(String.fromCharCode(e[a]));return n.join("")}function ur(e){if(typeof JSON<"u"&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if(typeof e!="object"||e==null)return e;if(e instanceof Date)return new Date(e.getTime());var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=ur(e[r]));return t}function Rr(e,t){for(var r="";r.length<t;)r+=e;return r}function Ri(e){var t=Number(e);if(!isNaN(t))return isFinite(t)?t:NaN;if(!/\d/.test(e))return t;var r=1,n=e.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,function(){return r*=100,""});return!isNaN(t=Number(n))||(n=n.replace(/[(](.*)[)]/,function(a,i){return r=-r,i}),!isNaN(t=Number(n)))?t/r:t}var gee=["january","february","march","april","may","june","july","august","september","october","november","december"];function kc(e){var t=new Date(e),r=new Date(NaN),n=t.getYear(),a=t.getMonth(),i=t.getDate();if(isNaN(i))return r;var s=e.toLowerCase();if(s.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if(s=s.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,""),s.length>3&&gee.indexOf(s)==-1)return r}else if(s.match(/[a-z]/))return r;return n<0||n>8099?r:(a>0||i>1)&&n!=101?t:e.match(/[^-0-9:,\/\\]/)?r:t}var vee=function(){var e="abacaba".split(/(:?b)/i).length==5;return function(r,n,a){if(e||typeof n=="string")return r.split(n);for(var i=r.split(n),s=[i[0]],o=1;o<i.length;++o)s.push(a),s.push(i[o]);return s}}();function TF(e){return e?e.content&&e.type?Uu(e.content,!0):e.data?wc(e.data):e.asNodeBuffer&&At?wc(e.asNodeBuffer().toString("binary")):e.asBinary?wc(e.asBinary()):e._data&&e._data.getContent?wc(Uu(Array.prototype.slice.call(e._data.getContent(),0))):null:null}function AF(e){if(!e)return null;if(e.data)return Ip(e.data);if(e.asNodeBuffer&&At)return e.asNodeBuffer();if(e._data&&e._data.getContent){var t=e._data.getContent();return typeof t=="string"?Ip(t):Array.prototype.slice.call(t)}return e.content&&e.type?e.content:null}function xee(e){return e&&e.name.slice(-4)===".bin"?AF(e):TF(e)}function Ka(e,t){for(var r=e.FullPaths||Dr(e.files),n=t.toLowerCase().replace(/[\/]/g,"\\"),a=n.replace(/\\/g,"/"),i=0;i<r.length;++i){var s=r[i].replace(/^Root Entry[\/]/,"").toLowerCase();if(n==s||a==s)return e.files?e.files[r[i]]:e.FileIndex[i]}return null}function py(e,t){var r=Ka(e,t);if(r==null)throw new Error("Cannot find file "+t+" in zip");return r}function qr(e,t,r){if(!r)return xee(py(e,t));if(!t)return null;try{return qr(e,t)}catch{return null}}function Fa(e,t,r){if(!r)return TF(py(e,t));if(!t)return null;try{return Fa(e,t)}catch{return null}}function _ee(e,t,r){return AF(py(e,t))}function FF(e){for(var t=e.FullPaths||Dr(e.files),r=[],n=0;n<t.length;++n)t[n].slice(-1)!="/"&&r.push(t[n].replace(/^Root Entry[\/]/,""));return r.sort()}function Ct(e,t,r){if(e.FullPaths){if(typeof r=="string"){var n;return At?n=Vs(r):n=MQ(r),nt.utils.cfb_add(e,t,n)}nt.utils.cfb_add(e,t,r)}else e.file(t,r)}function my(){return nt.utils.cfb_new()}function OF(e,t){switch(t.type){case"base64":return nt.read(e,{type:"base64"});case"binary":return nt.read(e,{type:"binary"});case"buffer":case"array":return nt.read(e,{type:"buffer"})}throw new Error("Unrecognized type "+t.type)}function pd(e,t){if(e.charAt(0)=="/")return e.slice(1);var r=t.split("/");t.slice(-1)!="/"&&r.pop();for(var n=e.split("/");n.length!==0;){var a=n.shift();a===".."?r.pop():a!=="."&&r.push(a)}return r.join("/")}var Ur=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
540
+ `,yee=/([^"\s?>\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g,PF=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s*[\/\?]?>/mg,bee=/<[^>]*>/g,On=Ur.match(PF)?PF:bee,wee=/<\w*:/,See=/<(\/?)\w+:/;function mt(e,t,r){for(var n={},a=0,i=0;a!==e.length&&!((i=e.charCodeAt(a))===32||i===10||i===13);++a);if(t||(n[0]=e.slice(0,a)),a===e.length)return n;var s=e.match(yee),o=0,u="",l=0,f="",d="",p=1;if(s)for(l=0;l!=s.length;++l){for(d=s[l],i=0;i!=d.length&&d.charCodeAt(i)!==61;++i);for(f=d.slice(0,i).trim();d.charCodeAt(i+1)==32;)++i;for(p=(a=d.charCodeAt(i+1))==34||a==39?1:0,u=d.slice(i+1+p,d.length-p),o=0;o!=f.length&&f.charCodeAt(o)!==58;++o);if(o===f.length)f.indexOf("_")>0&&(f=f.slice(0,f.indexOf("_"))),n[f]=u,n[f.toLowerCase()]=u;else{var v=(o===5&&f.slice(0,5)==="xmlns"?"xmlns":"")+f.slice(o+1);if(n[v]&&f.slice(o-3,o)=="ext")continue;n[v]=u,n[v.toLowerCase()]=u}}return n}function ls(e){return e.replace(See,"<$1")}var DF={"&quot;":'"',"&apos;":"'","&gt;":">","&lt;":"<","&amp;":"&"},gy=Bp(DF),zt=function(){var e=/&(?:quot|apos|gt|lt|amp|#x?([\da-fA-F]+));/ig,t=/_x([\da-fA-F]{4})_/ig;return function r(n){var a=n+"",i=a.indexOf("<![CDATA[");if(i==-1)return a.replace(e,function(o,u){return DF[o]||String.fromCharCode(parseInt(u,o.indexOf("x")>-1?16:10))||o}).replace(t,function(o,u){return String.fromCharCode(parseInt(u,16))});var s=a.indexOf("]]>");return r(a.slice(0,i))+a.slice(i+9,s)+r(a.slice(s+3))}}(),vy=/[&<>'"]/g,Eee=/[\u0000-\u0008\u000b-\u001f]/g;function er(e){var t=e+"";return t.replace(vy,function(r){return gy[r]}).replace(Eee,function(r){return"_x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+"_"})}function RF(e){return er(e).replace(/ /g,"_x0020_")}var IF=/[\u0000-\u001f]/g;function xy(e){var t=e+"";return t.replace(vy,function(r){return gy[r]}).replace(/\n/g,"<br/>").replace(IF,function(r){return"&#x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+";"})}function Cee(e){var t=e+"";return t.replace(vy,function(r){return gy[r]}).replace(IF,function(r){return"&#x"+r.charCodeAt(0).toString(16).toUpperCase()+";"})}var NF=function(){var e=/&#(\d+);/g;function t(r,n){return String.fromCharCode(parseInt(n,10))}return function(n){return n.replace(e,t)}}();function kee(e){return e.replace(/(\r\n|[\r\n])/g,"&#10;")}function yr(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function _y(e){for(var t="",r=0,n=0,a=0,i=0,s=0,o=0;r<e.length;){if(n=e.charCodeAt(r++),n<128){t+=String.fromCharCode(n);continue}if(a=e.charCodeAt(r++),n>191&&n<224){s=(n&31)<<6,s|=a&63,t+=String.fromCharCode(s);continue}if(i=e.charCodeAt(r++),n<240){t+=String.fromCharCode((n&15)<<12|(a&63)<<6|i&63);continue}s=e.charCodeAt(r++),o=((n&7)<<18|(a&63)<<12|(i&63)<<6|s&63)-65536,t+=String.fromCharCode(55296+(o>>>10&1023)),t+=String.fromCharCode(56320+(o&1023))}return t}function MF(e){var t=Do(2*e.length),r,n,a=1,i=0,s=0,o;for(n=0;n<e.length;n+=a)a=1,(o=e.charCodeAt(n))<128?r=o:o<224?(r=(o&31)*64+(e.charCodeAt(n+1)&63),a=2):o<240?(r=(o&15)*4096+(e.charCodeAt(n+1)&63)*64+(e.charCodeAt(n+2)&63),a=3):(a=4,r=(o&7)*262144+(e.charCodeAt(n+1)&63)*4096+(e.charCodeAt(n+2)&63)*64+(e.charCodeAt(n+3)&63),r-=65536,s=55296+(r>>>10&1023),r=56320+(r&1023)),s!==0&&(t[i++]=s&255,t[i++]=s>>>8,s=0),t[i++]=r%256,t[i++]=r>>>8;return t.slice(0,i).toString("ucs2")}function LF(e){return Vs(e,"binary").toString("utf8")}var zp="foo bar baz☃🍣",sr=At&&(LF(zp)==_y(zp)&&LF||MF(zp)==_y(zp)&&MF)||_y,cs=At?function(e){return Vs(e,"utf8").toString("binary")}:function(e){for(var t=[],r=0,n=0,a=0;r<e.length;)switch(n=e.charCodeAt(r++),!0){case n<128:t.push(String.fromCharCode(n));break;case n<2048:t.push(String.fromCharCode(192+(n>>6))),t.push(String.fromCharCode(128+(n&63)));break;case(n>=55296&&n<57344):n-=55296,a=e.charCodeAt(r++)-56320+(n<<10),t.push(String.fromCharCode(240+(a>>18&7))),t.push(String.fromCharCode(144+(a>>12&63))),t.push(String.fromCharCode(128+(a>>6&63))),t.push(String.fromCharCode(128+(a&63)));break;default:t.push(String.fromCharCode(224+(n>>12))),t.push(String.fromCharCode(128+(n>>6&63))),t.push(String.fromCharCode(128+(n&63)))}return t.join("")},md=function(){var e={};return function(r,n){var a=r+"|"+(n||"");return e[a]?e[a]:e[a]=new RegExp("<(?:\\w+:)?"+r+'(?: xml:space="preserve")?(?:[^>]*)>([\\s\\S]*?)</(?:\\w+:)?'+r+">",n||"")}}(),BF=function(){var e=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(t){return[new RegExp("&"+t[0]+";","ig"),t[1]]});return function(r){for(var n=r.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+</g,"<").replace(/[\t\n\r ]+/g," ").replace(/<\s*[bB][rR]\s*\/?>/g,`
541
+ `).replace(/<[^>]*>/g,""),a=0;a<e.length;++a)n=n.replace(e[a][0],e[a][1]);return n}}(),Tee=function(){var e={};return function(r){return e[r]!==void 0?e[r]:e[r]=new RegExp("<(?:vt:)?"+r+">([\\s\\S]*?)</(?:vt:)?"+r+">","g")}}(),Aee=/<\/?(?:vt:)?variant>/g,Fee=/<(?:vt:)([^>]*)>([\s\S]*)</;function jF(e,t){var r=mt(e),n=e.match(Tee(r.baseType))||[],a=[];if(n.length!=r.size){if(t.WTF)throw new Error("unexpected vector length "+n.length+" != "+r.size);return a}return n.forEach(function(i){var s=i.replace(Aee,"").match(Fee);s&&a.push({v:sr(s[2]),t:s[1]})}),a}var $F=/(^\s|\s$|\n)/;function yn(e,t){return"<"+e+(t.match($F)?' xml:space="preserve"':"")+">"+t+"</"+e+">"}function gd(e){return Dr(e).map(function(t){return" "+t+'="'+e[t]+'"'}).join("")}function $e(e,t,r){return"<"+e+(r!=null?gd(r):"")+(t!=null?(t.match($F)?' xml:space="preserve"':"")+">"+t+"</"+e:"/")+">"}function yy(e,t){try{return e.toISOString().replace(/\.\d*/,"")}catch(r){if(t)throw r}return""}function Oee(e,t){switch(typeof e){case"string":var r=$e("vt:lpwstr",er(e));return r=r.replace(/&quot;/g,"_x0022_"),r;case"number":return $e((e|0)==e?"vt:i4":"vt:r8",er(String(e)));case"boolean":return $e("vt:bool",e?"true":"false")}if(e instanceof Date)return $e("vt:filetime",yy(e));throw new Error("Unable to serialize "+e)}function by(e){if(At&&Buffer.isBuffer(e))return e.toString("utf8");if(typeof e=="string")return e;if(typeof Uint8Array<"u"&&e instanceof Uint8Array)return sr(Ro(cy(e)));throw new Error("Bad input format: expected Buffer or string")}var vd=/<(\/?)([^\s?><!\/:]*:|)([^\s?<>:\/]+)(?:[\s?:\/][^>]*)?>/mg,Qr={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},zu=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],Oa={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"};function Pee(e,t){for(var r=1-2*(e[t+7]>>>7),n=((e[t+7]&127)<<4)+(e[t+6]>>>4&15),a=e[t+6]&15,i=5;i>=0;--i)a=a*256+e[t+i];return n==2047?a==0?r*(1/0):NaN:(n==0?n=-1022:(n-=1023,a+=Math.pow(2,52)),r*Math.pow(2,n-52)*a)}function Dee(e,t,r){var n=(t<0||1/t==-1/0?1:0)<<7,a=0,i=0,s=n?-t:t;isFinite(s)?s==0?a=i=0:(a=Math.floor(Math.log(s)/Math.LN2),i=s*Math.pow(2,52-a),a<=-1023&&(!isFinite(i)||i<Math.pow(2,52))?a=-1022:(i-=Math.pow(2,52),a+=1023)):(a=2047,i=isNaN(t)?26985:0);for(var o=0;o<=5;++o,i/=256)e[r+o]=i&255;e[r+6]=(a&15)<<4|i&15,e[r+7]=a>>4|n}var UF=function(e){for(var t=[],r=10240,n=0;n<e[0].length;++n)if(e[0][n])for(var a=0,i=e[0][n].length;a<i;a+=r)t.push.apply(t,e[0][n].slice(a,a+r));return t},zF=At?function(e){return e[0].length>0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map(function(t){return Buffer.isBuffer(t)?t:Vs(t)})):UF(e)}:UF,HF=function(e,t,r){for(var n=[],a=t;a<r;a+=2)n.push(String.fromCharCode(Gs(e,a)));return n.join("").replace(Fn,"")},Hp=At?function(e,t,r){return Buffer.isBuffer(e)?e.toString("utf16le",t,r).replace(Fn,""):HF(e,t,r)}:HF,WF=function(e,t,r){for(var n=[],a=t;a<t+r;++a)n.push(("0"+e[a].toString(16)).slice(-2));return n.join("")},VF=At?function(e,t,r){return Buffer.isBuffer(e)?e.toString("hex",t,t+r):WF(e,t,r)}:WF,qF=function(e,t,r){for(var n=[],a=t;a<r;a++)n.push(String.fromCharCode(Ac(e,a)));return n.join("")},Tc=At?function(t,r,n){return Buffer.isBuffer(t)?t.toString("utf8",r,n):qF(t,r,n)}:qF,GF=function(e,t){var r=ln(e,t);return r>0?Tc(e,t+4,t+4+r-1):""},wy=GF,YF=function(e,t){var r=ln(e,t);return r>0?Tc(e,t+4,t+4+r-1):""},Sy=YF,XF=function(e,t){var r=2*ln(e,t);return r>0?Tc(e,t+4,t+4+r-1):""},Ey=XF,KF=function(t,r){var n=ln(t,r);return n>0?Hp(t,r+4,r+4+n):""},Cy=KF,ZF=function(e,t){var r=ln(e,t);return r>0?Tc(e,t+4,t+4+r):""},ky=ZF,JF=function(e,t){return Pee(e,t)},Wp=JF,Ty=function(t){return Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array};At&&(wy=function(t,r){if(!Buffer.isBuffer(t))return GF(t,r);var n=t.readUInt32LE(r);return n>0?t.toString("utf8",r+4,r+4+n-1):""},Sy=function(t,r){if(!Buffer.isBuffer(t))return YF(t,r);var n=t.readUInt32LE(r);return n>0?t.toString("utf8",r+4,r+4+n-1):""},Ey=function(t,r){if(!Buffer.isBuffer(t))return XF(t,r);var n=2*t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+n-1)},Cy=function(t,r){if(!Buffer.isBuffer(t))return KF(t,r);var n=t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+n)},ky=function(t,r){if(!Buffer.isBuffer(t))return ZF(t,r);var n=t.readUInt32LE(r);return t.toString("utf8",r+4,r+4+n)},Wp=function(t,r){return Buffer.isBuffer(t)?t.readDoubleLE(r):JF(t,r)},Ty=function(t){return Buffer.isBuffer(t)||Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array});function QF(){Hp=function(e,t,r){return Ut.utils.decode(1200,e.slice(t,r)).replace(Fn,"")},Tc=function(e,t,r){return Ut.utils.decode(65001,e.slice(t,r))},wy=function(e,t){var r=ln(e,t);return r>0?Ut.utils.decode(Bu,e.slice(t+4,t+4+r-1)):""},Sy=function(e,t){var r=ln(e,t);return r>0?Ut.utils.decode(Ca,e.slice(t+4,t+4+r-1)):""},Ey=function(e,t){var r=2*ln(e,t);return r>0?Ut.utils.decode(1200,e.slice(t+4,t+4+r-1)):""},Cy=function(e,t){var r=ln(e,t);return r>0?Ut.utils.decode(1200,e.slice(t+4,t+4+r)):""},ky=function(e,t){var r=ln(e,t);return r>0?Ut.utils.decode(65001,e.slice(t+4,t+4+r)):""}}typeof Ut<"u"&&QF();var Ac=function(e,t){return e[t]},Gs=function(e,t){return e[t+1]*256+e[t]},Ree=function(e,t){var r=e[t+1]*256+e[t];return r<32768?r:(65535-r+1)*-1},ln=function(e,t){return e[t+3]*(1<<24)+(e[t+2]<<16)+(e[t+1]<<8)+e[t]},Hu=function(e,t){return e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]},Iee=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};function xd(e,t){var r="",n,a,i=[],s,o,u,l;switch(t){case"dbcs":if(l=this.l,At&&Buffer.isBuffer(this))r=this.slice(this.l,this.l+2*e).toString("utf16le");else for(u=0;u<e;++u)r+=String.fromCharCode(Gs(this,l)),l+=2;e*=2;break;case"utf8":r=Tc(this,this.l,this.l+e);break;case"utf16le":e*=2,r=Hp(this,this.l,this.l+e);break;case"wstr":if(typeof Ut<"u")r=Ut.utils.decode(Ca,this.slice(this.l,this.l+2*e));else return xd.call(this,e,"dbcs");e=2*e;break;case"lpstr-ansi":r=wy(this,this.l),e=4+ln(this,this.l);break;case"lpstr-cp":r=Sy(this,this.l),e=4+ln(this,this.l);break;case"lpwstr":r=Ey(this,this.l),e=4+2*ln(this,this.l);break;case"lpp4":e=4+ln(this,this.l),r=Cy(this,this.l),e&2&&(e+=2);break;case"8lpp4":e=4+ln(this,this.l),r=ky(this,this.l),e&3&&(e+=4-(e&3));break;case"cstr":for(e=0,r="";(s=Ac(this,this.l+e++))!==0;)i.push(od(s));r=i.join("");break;case"_wstr":for(e=0,r="";(s=Gs(this,this.l+e))!==0;)i.push(od(s)),e+=2;e+=2,r=i.join("");break;case"dbcs-cont":for(r="",l=this.l,u=0;u<e;++u){if(this.lens&&this.lens.indexOf(l)!==-1)return s=Ac(this,l),this.l=l+1,o=xd.call(this,e-u,s?"dbcs-cont":"sbcs-cont"),i.join("")+o;i.push(od(Gs(this,l))),l+=2}r=i.join(""),e*=2;break;case"cpstr":if(typeof Ut<"u"){r=Ut.utils.decode(Ca,this.slice(this.l,this.l+e));break}case"sbcs-cont":for(r="",l=this.l,u=0;u!=e;++u){if(this.lens&&this.lens.indexOf(l)!==-1)return s=Ac(this,l),this.l=l+1,o=xd.call(this,e-u,s?"dbcs-cont":"sbcs-cont"),i.join("")+o;i.push(od(Ac(this,l))),l+=1}r=i.join("");break;default:switch(e){case 1:return n=Ac(this,this.l),this.l++,n;case 2:return n=(t==="i"?Ree:Gs)(this,this.l),this.l+=2,n;case 4:case-4:return t==="i"||!(this[this.l+3]&128)?(n=(e>0?Hu:Iee)(this,this.l),this.l+=4,n):(a=ln(this,this.l),this.l+=4,a);case 8:case-8:if(t==="f")return e==8?a=Wp(this,this.l):a=Wp([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,a;e=8;case 16:r=VF(this,this.l,e);break}}return this.l+=e,r}var Nee=function(e,t,r){e[r]=t&255,e[r+1]=t>>>8&255,e[r+2]=t>>>16&255,e[r+3]=t>>>24&255},Mee=function(e,t,r){e[r]=t&255,e[r+1]=t>>8&255,e[r+2]=t>>16&255,e[r+3]=t>>24&255},Lee=function(e,t,r){e[r]=t&255,e[r+1]=t>>>8&255};function Bee(e,t,r){var n=0,a=0;if(r==="dbcs"){for(a=0;a!=t.length;++a)Lee(this,t.charCodeAt(a),this.l+2*a);n=2*t.length}else if(r==="sbcs"){if(typeof Ut<"u"&&Bu==874)for(a=0;a!=t.length;++a){var i=Ut.utils.encode(Bu,t.charAt(a));this[this.l+a]=i[0]}else for(t=t.replace(/[^\x00-\x7F]/g,"_"),a=0;a!=t.length;++a)this[this.l+a]=t.charCodeAt(a)&255;n=t.length}else if(r==="hex"){for(;a<e;++a)this[this.l++]=parseInt(t.slice(2*a,2*a+2),16)||0;return this}else if(r==="utf16le"){var s=Math.min(this.l+e,this.length);for(a=0;a<Math.min(t.length,e);++a){var o=t.charCodeAt(a);this[this.l++]=o&255,this[this.l++]=o>>8}for(;this.l<s;)this[this.l++]=0;return this}else switch(e){case 1:n=1,this[this.l]=t&255;break;case 2:n=2,this[this.l]=t&255,t>>>=8,this[this.l+1]=t&255;break;case 3:n=3,this[this.l]=t&255,t>>>=8,this[this.l+1]=t&255,t>>>=8,this[this.l+2]=t&255;break;case 4:n=4,Nee(this,t,this.l);break;case 8:if(n=8,r==="f"){Dee(this,t,this.l);break}case 16:break;case-4:n=4,Mee(this,t,this.l);break}return this.l+=n,this}function e7(e,t){var r=VF(this,this.l,e.length>>1);if(r!==e)throw new Error(t+"Expected "+e+" saw "+r);this.l+=e.length>>1}function bn(e,t){e.l=t,e.read_shift=xd,e.chk=e7,e.write_shift=Bee}function Pn(e,t){e.l+=t}function Ce(e){var t=Do(e);return bn(t,0),t}function Ys(e,t,r){if(e){var n,a,i;bn(e,e.l||0);for(var s=e.length,o=0,u=0;e.l<s;){o=e.read_shift(1),o&128&&(o=(o&127)+((e.read_shift(1)&127)<<7));var l=Ld[o]||Ld[65535];for(n=e.read_shift(1),i=n&127,a=1;a<4&&n&128;++a)i+=((n=e.read_shift(1))&127)<<7*a;u=e.l+i;var f=l.f&&l.f(e,i,r);if(e.l=u,t(f,l,o))return}}}function ia(){var e=[],t=At?256:2048,r=function(l){var f=Ce(l);return bn(f,0),f},n=r(t),a=function(){n&&(n.length>n.l&&(n=n.slice(0,n.l),n.l=n.length),n.length>0&&e.push(n),n=null)},i=function(l){return n&&l<n.length-n.l?n:(a(),n=r(Math.max(l+1,t)))},s=function(){return a(),un(e)},o=function(l){a(),n=l,n.l==null&&(n.l=n.length),i(t)};return{next:i,push:o,end:s,_bufs:e}}function Pe(e,t,r,n){var a=+t,i;if(!isNaN(a)){n||(n=Ld[a].p||(r||[]).length||0),i=1+(a>=128?1:0)+1,n>=128&&++i,n>=16384&&++i,n>=2097152&&++i;var s=e.next(i);a<=127?s.write_shift(1,a):(s.write_shift(1,(a&127)+128),s.write_shift(1,a>>7));for(var o=0;o!=4;++o)if(n>=128)s.write_shift(1,(n&127)+128),n>>=7;else{s.write_shift(1,n);break}n>0&&Ty(r)&&e.push(r)}}function _d(e,t,r){var n=ur(e);if(t.s?(n.cRel&&(n.c+=t.s.c),n.rRel&&(n.r+=t.s.r)):(n.cRel&&(n.c+=t.c),n.rRel&&(n.r+=t.r)),!r||r.biff<12){for(;n.c>=256;)n.c-=256;for(;n.r>=65536;)n.r-=65536}return n}function t7(e,t,r){var n=ur(e);return n.s=_d(n.s,t.s,r),n.e=_d(n.e,t.s,r),n}function yd(e,t){if(e.cRel&&e.c<0)for(e=ur(e);e.c<0;)e.c+=t>8?16384:256;if(e.rRel&&e.r<0)for(e=ur(e);e.r<0;)e.r+=t>8?1048576:t>5?65536:16384;var r=ht(e);return!e.cRel&&e.cRel!=null&&(r=Uee(r)),!e.rRel&&e.rRel!=null&&(r=jee(r)),r}function Ay(e,t){return e.s.r==0&&!e.s.rRel&&e.e.r==(t.biff>=12?1048575:t.biff>=8?65536:16384)&&!e.e.rRel?(e.s.cRel?"":"$")+br(e.s.c)+":"+(e.e.cRel?"":"$")+br(e.e.c):e.s.c==0&&!e.s.cRel&&e.e.c==(t.biff>=12?16383:255)&&!e.e.cRel?(e.s.rRel?"":"$")+Ir(e.s.r)+":"+(e.e.rRel?"":"$")+Ir(e.e.r):yd(e.s,t.biff)+":"+yd(e.e,t.biff)}function Fy(e){return parseInt($ee(e),10)-1}function Ir(e){return""+(e+1)}function jee(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function $ee(e){return e.replace(/\$(\d+)$/,"$1")}function Oy(e){for(var t=zee(e),r=0,n=0;n!==t.length;++n)r=26*r+t.charCodeAt(n)-64;return r-1}function br(e){if(e<0)throw new Error("invalid column "+e);var t="";for(++e;e;e=Math.floor((e-1)/26))t=String.fromCharCode((e-1)%26+65)+t;return t}function Uee(e){return e.replace(/^([A-Z])/,"$$$1")}function zee(e){return e.replace(/^\$([A-Z])/,"$1")}function Hee(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function Ar(e){for(var t=0,r=0,n=0;n<e.length;++n){var a=e.charCodeAt(n);a>=48&&a<=57?t=10*t+(a-48):a>=65&&a<=90&&(r=26*r+(a-64))}return{c:r-1,r:t-1}}function ht(e){for(var t=e.c+1,r="";t;t=(t-1)/26|0)r=String.fromCharCode((t-1)%26+65)+r;return r+(e.r+1)}function qn(e){var t=e.indexOf(":");return t==-1?{s:Ar(e),e:Ar(e)}:{s:Ar(e.slice(0,t)),e:Ar(e.slice(t+1))}}function St(e,t){return typeof t>"u"||typeof t=="number"?St(e.s,e.e):(typeof e!="string"&&(e=ht(e)),typeof t!="string"&&(t=ht(t)),e==t?e:e+":"+t)}function Mt(e){var t={s:{c:0,r:0},e:{c:0,r:0}},r=0,n=0,a=0,i=e.length;for(r=0;n<i&&!((a=e.charCodeAt(n)-64)<1||a>26);++n)r=26*r+a;for(t.s.c=--r,r=0;n<i&&!((a=e.charCodeAt(n)-48)<0||a>9);++n)r=10*r+a;if(t.s.r=--r,n===i||a!=10)return t.e.c=t.s.c,t.e.r=t.s.r,t;for(++n,r=0;n!=i&&!((a=e.charCodeAt(n)-64)<1||a>26);++n)r=26*r+a;for(t.e.c=--r,r=0;n!=i&&!((a=e.charCodeAt(n)-48)<0||a>9);++n)r=10*r+a;return t.e.r=--r,t}function r7(e,t){var r=e.t=="d"&&t instanceof Date;if(e.z!=null)try{return e.w=Aa(e.z,r?Jr(t):t)}catch{}try{return e.w=Aa((e.XF||{}).numFmtId||(r?14:0),r?Jr(t):t)}catch{return""+t}}function fs(e,t,r){return e==null||e.t==null||e.t=="z"?"":e.w!==void 0?e.w:(e.t=="d"&&!e.z&&r&&r.dateNF&&(e.z=r.dateNF),e.t=="e"?Xs[e.v]||e.v:t==null?r7(e,e.v):r7(e,t))}function Lo(e,t){var r=t&&t.sheet?t.sheet:"Sheet1",n={};return n[r]=e,{SheetNames:[r],Sheets:n}}function n7(e,t,r){var n=r||{},a=e?Array.isArray(e):n.dense,i=e||(a?[]:{}),s=0,o=0;if(i&&n.origin!=null){if(typeof n.origin=="number")s=n.origin;else{var u=typeof n.origin=="string"?Ar(n.origin):n.origin;s=u.r,o=u.c}i["!ref"]||(i["!ref"]="A1:A1")}var l={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(i["!ref"]){var f=Mt(i["!ref"]);l.s.c=f.s.c,l.s.r=f.s.r,l.e.c=Math.max(l.e.c,f.e.c),l.e.r=Math.max(l.e.r,f.e.r),s==-1&&(l.e.r=s=f.e.r+1)}for(var d=0;d!=t.length;++d)if(t[d]){if(!Array.isArray(t[d]))throw new Error("aoa_to_sheet expects an array of arrays");for(var p=0;p!=t[d].length;++p)if(!(typeof t[d][p]>"u")){var v={v:t[d][p]},_=s+d,x=o+p;if(l.s.r>_&&(l.s.r=_),l.s.c>x&&(l.s.c=x),l.e.r<_&&(l.e.r=_),l.e.c<x&&(l.e.c=x),t[d][p]&&typeof t[d][p]=="object"&&!Array.isArray(t[d][p])&&!(t[d][p]instanceof Date))v=t[d][p];else if(Array.isArray(v.v)&&(v.f=t[d][p][1],v.v=v.v[0]),v.v===null)if(v.f)v.t="n";else if(n.nullError)v.t="e",v.v=0;else if(n.sheetStubs)v.t="z";else continue;else typeof v.v=="number"?v.t="n":typeof v.v=="boolean"?v.t="b":v.v instanceof Date?(v.z=n.dateNF||ot[14],n.cellDates?(v.t="d",v.w=Aa(v.z,Jr(v.v))):(v.t="n",v.v=Jr(v.v),v.w=Aa(v.z,v.v))):v.t="s";if(a)i[_]||(i[_]=[]),i[_][x]&&i[_][x].z&&(v.z=i[_][x].z),i[_][x]=v;else{var w=ht({c:x,r:_});i[w]&&i[w].z&&(v.z=i[w].z),i[w]=v}}}return l.s.c<1e7&&(i["!ref"]=St(l)),i}function Fc(e,t){return n7(null,e,t)}function Wee(e){return e.read_shift(4,"i")}function Ii(e,t){return t||(t=Ce(4)),t.write_shift(4,e),t}function Dn(e){var t=e.read_shift(4);return t===0?"":e.read_shift(t,"dbcs")}function cn(e,t){var r=!1;return t==null&&(r=!0,t=Ce(4+2*e.length)),t.write_shift(4,e.length),e.length>0&&t.write_shift(0,e,"dbcs"),r?t.slice(0,t.l):t}function Vee(e){return{ich:e.read_shift(2),ifnt:e.read_shift(2)}}function qee(e,t){return t||(t=Ce(4)),t.write_shift(2,0),t.write_shift(2,0),t}function Py(e,t){var r=e.l,n=e.read_shift(1),a=Dn(e),i=[],s={t:a,h:a};if(n&1){for(var o=e.read_shift(4),u=0;u!=o;++u)i.push(Vee(e));s.r=i}else s.r=[{ich:0,ifnt:0}];return e.l=r+t,s}function Gee(e,t){var r=!1;return t==null&&(r=!0,t=Ce(15+4*e.t.length)),t.write_shift(1,0),cn(e.t,t),r?t.slice(0,t.l):t}var Yee=Py;function Xee(e,t){var r=!1;return t==null&&(r=!0,t=Ce(23+4*e.t.length)),t.write_shift(1,1),cn(e.t,t),t.write_shift(4,1),qee({},t),r?t.slice(0,t.l):t}function Za(e){var t=e.read_shift(4),r=e.read_shift(2);return r+=e.read_shift(1)<<16,e.l++,{c:t,iStyleRef:r}}function Wu(e,t){return t==null&&(t=Ce(8)),t.write_shift(-4,e.c),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}function Vu(e){var t=e.read_shift(2);return t+=e.read_shift(1)<<16,e.l++,{c:-1,iStyleRef:t}}function qu(e,t){return t==null&&(t=Ce(4)),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}var Kee=Dn,a7=cn;function Dy(e){var t=e.read_shift(4);return t===0||t===4294967295?"":e.read_shift(t,"dbcs")}function Vp(e,t){var r=!1;return t==null&&(r=!0,t=Ce(127)),t.write_shift(4,e.length>0?e.length:4294967295),e.length>0&&t.write_shift(0,e,"dbcs"),r?t.slice(0,t.l):t}var Zee=Dn,Ry=Dy,Iy=Vp;function Ny(e){var t=e.slice(e.l,e.l+4),r=t[0]&1,n=t[0]&2;e.l+=4;var a=n===0?Wp([0,0,0,0,t[0]&252,t[1],t[2],t[3]],0):Hu(t,0)>>2;return r?a/100:a}function i7(e,t){t==null&&(t=Ce(4));var r=0,n=0,a=e*100;if(e==(e|0)&&e>=-536870912&&e<1<<29?n=1:a==(a|0)&&a>=-536870912&&a<1<<29&&(n=1,r=1),n)t.write_shift(-4,((r?a:e)<<2)+(r+2));else throw new Error("unsupported RkNumber "+e)}function s7(e){var t={s:{},e:{}};return t.s.r=e.read_shift(4),t.e.r=e.read_shift(4),t.s.c=e.read_shift(4),t.e.c=e.read_shift(4),t}function Jee(e,t){return t||(t=Ce(16)),t.write_shift(4,e.s.r),t.write_shift(4,e.e.r),t.write_shift(4,e.s.c),t.write_shift(4,e.e.c),t}var Gu=s7,Oc=Jee;function Rn(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function Yu(e,t){return(t||Ce(8)).write_shift(8,e,"f")}function Qee(e){var t={},r=e.read_shift(1),n=r>>>1,a=e.read_shift(1),i=e.read_shift(2,"i"),s=e.read_shift(1),o=e.read_shift(1),u=e.read_shift(1);switch(e.l++,n){case 0:t.auto=1;break;case 1:t.index=a;var l=Xu[a];l&&(t.rgb=Cd(l));break;case 2:t.rgb=Cd([s,o,u]);break;case 3:t.theme=a;break}return i!=0&&(t.tint=i>0?i/32767:i/32768),t}function qp(e,t){if(t||(t=Ce(8)),!e||e.auto)return t.write_shift(4,0),t.write_shift(4,0),t;e.index!=null?(t.write_shift(1,2),t.write_shift(1,e.index)):e.theme!=null?(t.write_shift(1,6),t.write_shift(1,e.theme)):(t.write_shift(1,5),t.write_shift(1,0));var r=e.tint||0;if(r>0?r*=32767:r<0&&(r*=32768),t.write_shift(2,r),!e.rgb||e.theme!=null)t.write_shift(2,0),t.write_shift(1,0),t.write_shift(1,0);else{var n=e.rgb||"FFFFFF";typeof n=="number"&&(n=("000000"+n.toString(16)).slice(-6)),t.write_shift(1,parseInt(n.slice(0,2),16)),t.write_shift(1,parseInt(n.slice(2,4),16)),t.write_shift(1,parseInt(n.slice(4,6),16)),t.write_shift(1,255)}return t}function ete(e){var t=e.read_shift(1);e.l++;var r={fBold:t&1,fItalic:t&2,fUnderline:t&4,fStrikeout:t&8,fOutline:t&16,fShadow:t&32,fCondense:t&64,fExtend:t&128};return r}function tte(e,t){t||(t=Ce(2));var r=(e.italic?2:0)|(e.strike?8:0)|(e.outline?16:0)|(e.shadow?32:0)|(e.condense?64:0)|(e.extend?128:0);return t.write_shift(1,r),t.write_shift(1,0),t}function o7(e,t){var r={2:"BITMAP",3:"METAFILEPICT",8:"DIB",14:"ENHMETAFILE"},n=e.read_shift(4);switch(n){case 0:return"";case 4294967295:case 4294967294:return r[e.read_shift(4)]||""}if(n>400)throw new Error("Unsupported Clipboard: "+n.toString(16));return e.l-=4,e.read_shift(0,t==1?"lpstr":"lpwstr")}function rte(e){return o7(e,1)}function nte(e){return o7(e,2)}var My=2,sa=3,Gp=11,u7=12,Yp=19,Xp=64,ate=65,ite=71,ste=4108,ote=4126,fn=80,l7=81,ute=[fn,l7],Ly={1:{n:"CodePage",t:My},2:{n:"Category",t:fn},3:{n:"PresentationFormat",t:fn},4:{n:"ByteCount",t:sa},5:{n:"LineCount",t:sa},6:{n:"ParagraphCount",t:sa},7:{n:"SlideCount",t:sa},8:{n:"NoteCount",t:sa},9:{n:"HiddenCount",t:sa},10:{n:"MultimediaClipCount",t:sa},11:{n:"ScaleCrop",t:Gp},12:{n:"HeadingPairs",t:ste},13:{n:"TitlesOfParts",t:ote},14:{n:"Manager",t:fn},15:{n:"Company",t:fn},16:{n:"LinksUpToDate",t:Gp},17:{n:"CharacterCount",t:sa},19:{n:"SharedDoc",t:Gp},22:{n:"HyperlinksChanged",t:Gp},23:{n:"AppVersion",t:sa,p:"version"},24:{n:"DigSig",t:ate},26:{n:"ContentType",t:fn},27:{n:"ContentStatus",t:fn},28:{n:"Language",t:fn},29:{n:"Version",t:fn},255:{},2147483648:{n:"Locale",t:Yp},2147483651:{n:"Behavior",t:Yp},1919054434:{}},By={1:{n:"CodePage",t:My},2:{n:"Title",t:fn},3:{n:"Subject",t:fn},4:{n:"Author",t:fn},5:{n:"Keywords",t:fn},6:{n:"Comments",t:fn},7:{n:"Template",t:fn},8:{n:"LastAuthor",t:fn},9:{n:"RevNumber",t:fn},10:{n:"EditTime",t:Xp},11:{n:"LastPrinted",t:Xp},12:{n:"CreatedDate",t:Xp},13:{n:"ModifiedDate",t:Xp},14:{n:"PageCount",t:sa},15:{n:"WordCount",t:sa},16:{n:"CharCount",t:sa},17:{n:"Thumbnail",t:ite},18:{n:"Application",t:fn},19:{n:"DocSecurity",t:sa},255:{},2147483648:{n:"Locale",t:Yp},2147483651:{n:"Behavior",t:Yp},1919054434:{}},c7={1:"US",2:"CA",3:"",7:"RU",20:"EG",30:"GR",31:"NL",32:"BE",33:"FR",34:"ES",36:"HU",39:"IT",41:"CH",43:"AT",44:"GB",45:"DK",46:"SE",47:"NO",48:"PL",49:"DE",52:"MX",55:"BR",61:"AU",64:"NZ",66:"TH",81:"JP",82:"KR",84:"VN",86:"CN",90:"TR",105:"JS",213:"DZ",216:"MA",218:"LY",351:"PT",354:"IS",358:"FI",420:"CZ",886:"TW",961:"LB",962:"JO",963:"SY",964:"IQ",965:"KW",966:"SA",971:"AE",972:"IL",974:"QA",981:"IR",65535:"US"},lte=[null,"solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"];function cte(e){return e.map(function(t){return[t>>16&255,t>>8&255,t&255]})}var fte=cte([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),Xu=ur(fte),Xs={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},f7={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255},jy={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},Kp={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function $y(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function dte(e){var t=$y();if(!e||!e.match)return t;var r={};if((e.match(On)||[]).forEach(function(n){var a=mt(n);switch(a[0].replace(wee,"<")){case"<?xml":break;case"<Types":t.xmlns=a["xmlns"+(a[0].match(/<(\w+):/)||["",""])[1]];break;case"<Default":r[a.Extension]=a.ContentType;break;case"<Override":t[jy[a.ContentType]]!==void 0&&t[jy[a.ContentType]].push(a.PartName);break}}),t.xmlns!==Qr.CT)throw new Error("Unknown Namespace: "+t.xmlns);return t.calcchain=t.calcchains.length>0?t.calcchains[0]:"",t.sst=t.strs.length>0?t.strs[0]:"",t.style=t.styles.length>0?t.styles[0]:"",t.defaults=r,delete t.calcchains,t}function d7(e,t){var r=dee(jy),n=[],a;n[n.length]=Ur,n[n.length]=$e("Types",null,{xmlns:Qr.CT,"xmlns:xsd":Qr.xsd,"xmlns:xsi":Qr.xsi}),n=n.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map(function(u){return $e("Default",null,{Extension:u[0],ContentType:u[1]})}));var i=function(u){e[u]&&e[u].length>0&&(a=e[u][0],n[n.length]=$e("Override",null,{PartName:(a[0]=="/"?"":"/")+a,ContentType:Kp[u][t.bookType]||Kp[u].xlsx}))},s=function(u){(e[u]||[]).forEach(function(l){n[n.length]=$e("Override",null,{PartName:(l[0]=="/"?"":"/")+l,ContentType:Kp[u][t.bookType]||Kp[u].xlsx})})},o=function(u){(e[u]||[]).forEach(function(l){n[n.length]=$e("Override",null,{PartName:(l[0]=="/"?"":"/")+l,ContentType:r[u][0]})})};return i("workbooks"),s("sheets"),s("charts"),o("themes"),["strs","styles"].forEach(i),["coreprops","extprops","custprops"].forEach(o),o("vba"),o("comments"),o("threadedcomments"),o("drawings"),s("metadata"),o("people"),n.length>2&&(n[n.length]="</Types>",n[1]=n[1].replace("/>",">")),n.join("")}var Ot={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function bd(e){var t=e.lastIndexOf("/");return e.slice(0,t+1)+"_rels/"+e.slice(t+1)+".rels"}function wd(e,t){var r={"!id":{}};if(!e)return r;t.charAt(0)!=="/"&&(t="/"+t);var n={};return(e.match(On)||[]).forEach(function(a){var i=mt(a);if(i[0]==="<Relationship"){var s={};s.Type=i.Type,s.Target=i.Target,s.Id=i.Id,i.TargetMode&&(s.TargetMode=i.TargetMode);var o=i.TargetMode==="External"?i.Target:pd(i.Target,t);r[o]=s,n[i.Id]=s}}),r["!id"]=n,r}function Pc(e){var t=[Ur,$e("Relationships",null,{xmlns:Qr.RELS})];return Dr(e["!id"]).forEach(function(r){t[t.length]=$e("Relationship",null,e["!id"][r])}),t.length>2&&(t[t.length]="</Relationships>",t[1]=t[1].replace("/>",">")),t.join("")}function tr(e,t,r,n,a,i){if(a||(a={}),e["!id"]||(e["!id"]={}),e["!idx"]||(e["!idx"]=1),t<0)for(t=e["!idx"];e["!id"]["rId"+t];++t);if(e["!idx"]=t+1,a.Id="rId"+t,a.Type=n,a.Target=r,[Ot.HLINK,Ot.XPATH,Ot.XMISS].indexOf(a.Type)>-1&&(a.TargetMode="External"),e["!id"][a.Id])throw new Error("Cannot rewrite rId "+t);return e["!id"][a.Id]=a,e[("/"+a.Target).replace("//","/")]=a,t}var hte="application/vnd.oasis.opendocument.spreadsheet";function pte(e,t){for(var r=by(e),n,a;n=vd.exec(r);)switch(n[3]){case"manifest":break;case"file-entry":if(a=mt(n[0],!1),a.path=="/"&&a.type!==hte)throw new Error("This OpenDocument is not a spreadsheet");break;case"encryption-data":case"algorithm":case"start-key-generation":case"key-derivation":throw new Error("Unsupported ODS Encryption");default:if(t&&t.WTF)throw n}}function mte(e){var t=[Ur];t.push(`<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.2">
542
+ `),t.push(` <manifest:file-entry manifest:full-path="/" manifest:version="1.2" manifest:media-type="application/vnd.oasis.opendocument.spreadsheet"/>
543
+ `);for(var r=0;r<e.length;++r)t.push(' <manifest:file-entry manifest:full-path="'+e[r][0]+'" manifest:media-type="'+e[r][1]+`"/>
544
+ `);return t.push("</manifest:manifest>"),t.join("")}function h7(e,t,r){return[' <rdf:Description rdf:about="'+e+`">
545
+ `,' <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(r||"odf")+"#"+t+`"/>
546
+ `,` </rdf:Description>
547
+ `].join("")}function gte(e,t){return[' <rdf:Description rdf:about="'+e+`">
548
+ `,' <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+t+`"/>
549
+ `,` </rdf:Description>
550
+ `].join("")}function vte(e){var t=[Ur];t.push(`<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
551
+ `);for(var r=0;r!=e.length;++r)t.push(h7(e[r][0],e[r][1])),t.push(gte("",e[r][0]));return t.push(h7("","Document","pkg")),t.push("</rdf:RDF>"),t.join("")}function p7(){return'<office:document-meta xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" office:version="1.2"><office:meta><meta:generator>SheetJS '+sd.version+"</meta:generator></office:meta></office:document-meta>"}var Ja=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]],xte=function(){for(var e=new Array(Ja.length),t=0;t<Ja.length;++t){var r=Ja[t],n="(?:"+r[0].slice(0,r[0].indexOf(":"))+":)"+r[0].slice(r[0].indexOf(":")+1);e[t]=new RegExp("<"+n+"[^>]*>([\\s\\S]*?)</"+n+">")}return e}();function m7(e){var t={};e=sr(e);for(var r=0;r<Ja.length;++r){var n=Ja[r],a=e.match(xte[r]);a!=null&&a.length>0&&(t[n[1]]=zt(a[1])),n[2]==="date"&&t[n[1]]&&(t[n[1]]=_r(t[n[1]]))}return t}function Uy(e,t,r,n,a){a[e]!=null||t==null||t===""||(a[e]=t,t=er(t),n[n.length]=r?$e(e,t,r):yn(e,t))}function g7(e,t){var r=t||{},n=[Ur,$e("cp:coreProperties",null,{"xmlns:cp":Qr.CORE_PROPS,"xmlns:dc":Qr.dc,"xmlns:dcterms":Qr.dcterms,"xmlns:dcmitype":Qr.dcmitype,"xmlns:xsi":Qr.xsi})],a={};if(!e&&!r.Props)return n.join("");e&&(e.CreatedDate!=null&&Uy("dcterms:created",typeof e.CreatedDate=="string"?e.CreatedDate:yy(e.CreatedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,a),e.ModifiedDate!=null&&Uy("dcterms:modified",typeof e.ModifiedDate=="string"?e.ModifiedDate:yy(e.ModifiedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,a));for(var i=0;i!=Ja.length;++i){var s=Ja[i],o=r.Props&&r.Props[s[1]]!=null?r.Props[s[1]]:e?e[s[1]]:null;o===!0?o="1":o===!1?o="0":typeof o=="number"&&(o=String(o)),o!=null&&Uy(s[0],o,null,n,a)}return n.length>2&&(n[n.length]="</cp:coreProperties>",n[1]=n[1].replace("/>",">")),n.join("")}var Ku=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]],v7=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function x7(e,t,r,n){var a=[];if(typeof e=="string")a=jF(e,n);else for(var i=0;i<e.length;++i)a=a.concat(e[i].map(function(f){return{v:f}}));var s=typeof t=="string"?jF(t,n).map(function(f){return f.v}):t,o=0,u=0;if(s.length>0)for(var l=0;l!==a.length;l+=2){switch(u=+a[l+1].v,a[l].v){case"Worksheets":case"工作表":case"Листы":case"أوراق العمل":case"ワークシート":case"גליונות עבודה":case"Arbeitsblätter":case"Çalışma Sayfaları":case"Feuilles de calcul":case"Fogli di lavoro":case"Folhas de cálculo":case"Planilhas":case"Regneark":case"Hojas de cálculo":case"Werkbladen":r.Worksheets=u,r.SheetNames=s.slice(o,o+u);break;case"Named Ranges":case"Rangos con nombre":case"名前付き一覧":case"Benannte Bereiche":case"Navngivne områder":r.NamedRanges=u,r.DefinedNames=s.slice(o,o+u);break;case"Charts":case"Diagramme":r.Chartsheets=u,r.ChartNames=s.slice(o,o+u);break}o+=u}}function _te(e,t,r){var n={};return t||(t={}),e=sr(e),Ku.forEach(function(a){var i=(e.match(md(a[0]))||[])[1];switch(a[2]){case"string":i&&(t[a[1]]=zt(i));break;case"bool":t[a[1]]=i==="true";break;case"raw":var s=e.match(new RegExp("<"+a[0]+"[^>]*>([\\s\\S]*?)</"+a[0]+">"));s&&s.length>0&&(n[a[1]]=s[1]);break}}),n.HeadingPairs&&n.TitlesOfParts&&x7(n.HeadingPairs,n.TitlesOfParts,t,r),t}function _7(e){var t=[],r=$e;return e||(e={}),e.Application="SheetJS",t[t.length]=Ur,t[t.length]=$e("Properties",null,{xmlns:Qr.EXT_PROPS,"xmlns:vt":Qr.vt}),Ku.forEach(function(n){if(e[n[1]]!==void 0){var a;switch(n[2]){case"string":a=er(String(e[n[1]]));break;case"bool":a=e[n[1]]?"true":"false";break}a!==void 0&&(t[t.length]=r(n[0],a))}}),t[t.length]=r("HeadingPairs",r("vt:vector",r("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+r("vt:variant",r("vt:i4",String(e.Worksheets))),{size:2,baseType:"variant"})),t[t.length]=r("TitlesOfParts",r("vt:vector",e.SheetNames.map(function(n){return"<vt:lpstr>"+er(n)+"</vt:lpstr>"}).join(""),{size:e.Worksheets,baseType:"lpstr"})),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}var yte=/<[^>]+>[^<]*/g;function bte(e,t){var r={},n="",a=e.match(yte);if(a)for(var i=0;i!=a.length;++i){var s=a[i],o=mt(s);switch(o[0]){case"<?xml":break;case"<Properties":break;case"<property":n=zt(o.name);break;case"</property>":n=null;break;default:if(s.indexOf("<vt:")===0){var u=s.split(">"),l=u[0].slice(4),f=u[1];switch(l){case"lpstr":case"bstr":case"lpwstr":r[n]=zt(f);break;case"bool":r[n]=yr(f);break;case"i1":case"i2":case"i4":case"i8":case"int":case"uint":r[n]=parseInt(f,10);break;case"r4":case"r8":case"decimal":r[n]=parseFloat(f);break;case"filetime":case"date":r[n]=_r(f);break;case"cy":case"error":r[n]=zt(f);break;default:if(l.slice(-1)=="/")break;t.WTF&&typeof console<"u"&&console.warn("Unexpected",s,l,u)}}else if(s.slice(0,2)!=="</"){if(t.WTF)throw new Error(s)}}}return r}function y7(e){var t=[Ur,$e("Properties",null,{xmlns:Qr.CUST_PROPS,"xmlns:vt":Qr.vt})];if(!e)return t.join("");var r=1;return Dr(e).forEach(function(a){++r,t[t.length]=$e("property",Oee(e[a]),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:r,name:er(a)})}),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}var zy={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"},Hy;function wte(e,t,r){Hy||(Hy=Bp(zy)),t=Hy[t]||t,e[t]=r}function Ste(e,t){var r=[];return Dr(zy).map(function(n){for(var a=0;a<Ja.length;++a)if(Ja[a][1]==n)return Ja[a];for(a=0;a<Ku.length;++a)if(Ku[a][1]==n)return Ku[a];throw n}).forEach(function(n){if(e[n[1]]!=null){var a=t&&t.Props&&t.Props[n[1]]!=null?t.Props[n[1]]:e[n[1]];switch(n[2]){case"date":a=new Date(a).toISOString().replace(/\.\d*Z/,"Z");break}typeof a=="number"?a=String(a):a===!0||a===!1?a=a?"1":"0":a instanceof Date&&(a=new Date(a).toISOString().replace(/\.\d*Z/,"")),r.push(yn(zy[n[1]]||n[1],a))}}),$e("DocumentProperties",r.join(""),{xmlns:Oa.o})}function Ete(e,t){var r=["Worksheets","SheetNames"],n="CustomDocumentProperties",a=[];return e&&Dr(e).forEach(function(i){if(Object.prototype.hasOwnProperty.call(e,i)){for(var s=0;s<Ja.length;++s)if(i==Ja[s][1])return;for(s=0;s<Ku.length;++s)if(i==Ku[s][1])return;for(s=0;s<r.length;++s)if(i==r[s])return;var o=e[i],u="string";typeof o=="number"?(u="float",o=String(o)):o===!0||o===!1?(u="boolean",o=o?"1":"0"):o=String(o),a.push($e(RF(i),o,{"dt:dt":u}))}}),t&&Dr(t).forEach(function(i){if(Object.prototype.hasOwnProperty.call(t,i)&&!(e&&Object.prototype.hasOwnProperty.call(e,i))){var s=t[i],o="string";typeof s=="number"?(o="float",s=String(s)):s===!0||s===!1?(o="boolean",s=s?"1":"0"):s instanceof Date?(o="dateTime.tz",s=s.toISOString()):s=String(s),a.push($e(RF(i),s,{"dt:dt":o}))}}),"<"+n+' xmlns="'+Oa.o+'">'+a.join("")+"</"+n+">"}function Wy(e){var t=e.read_shift(4),r=e.read_shift(4);return new Date((r/1e7*Math.pow(2,32)+t/1e7-11644473600)*1e3).toISOString().replace(/\.000/,"")}function Cte(e){var t=typeof e=="string"?new Date(Date.parse(e)):e,r=t.getTime()/1e3+11644473600,n=r%Math.pow(2,32),a=(r-n)/Math.pow(2,32);n*=1e7,a*=1e7;var i=n/Math.pow(2,32)|0;i>0&&(n=n%Math.pow(2,32),a+=i);var s=Ce(8);return s.write_shift(4,n),s.write_shift(4,a),s}function b7(e,t,r){var n=e.l,a=e.read_shift(0,"lpstr-cp");if(r)for(;e.l-n&3;)++e.l;return a}function w7(e,t,r){var n=e.read_shift(0,"lpwstr");return n}function S7(e,t,r){return t===31?w7(e):b7(e,t,r)}function Vy(e,t,r){return S7(e,t,r===!1?0:4)}function kte(e,t){if(!t)throw new Error("VtUnalignedString must have positive length");return S7(e,t,0)}function Tte(e){for(var t=e.read_shift(4),r=[],n=0;n!=t;++n){var a=e.l;r[n]=e.read_shift(0,"lpwstr").replace(Fn,""),e.l-a&2&&(e.l+=2)}return r}function Ate(e){for(var t=e.read_shift(4),r=[],n=0;n!=t;++n)r[n]=e.read_shift(0,"lpstr-cp").replace(Fn,"");return r}function Fte(e){var t=e.l,r=Zp(e,l7);e[e.l]==0&&e[e.l+1]==0&&e.l-t&2&&(e.l+=2);var n=Zp(e,sa);return[r,n]}function Ote(e){for(var t=e.read_shift(4),r=[],n=0;n<t/2;++n)r.push(Fte(e));return r}function E7(e,t){for(var r=e.read_shift(4),n={},a=0;a!=r;++a){var i=e.read_shift(4),s=e.read_shift(4);n[i]=e.read_shift(s,t===1200?"utf16le":"utf8").replace(Fn,"").replace(cd,"!"),t===1200&&s%2&&(e.l+=2)}return e.l&3&&(e.l=e.l>>3<<2),n}function C7(e){var t=e.read_shift(4),r=e.slice(e.l,e.l+t);return e.l+=t,(t&3)>0&&(e.l+=4-(t&3)&3),r}function Pte(e){var t={};return t.Size=e.read_shift(4),e.l+=t.Size+3-(t.Size-1)%4,t}function Zp(e,t,r){var n=e.read_shift(2),a,i=r||{};if(e.l+=2,t!==u7&&n!==t&&ute.indexOf(t)===-1&&!((t&65534)==4126&&(n&65534)==4126))throw new Error("Expected type "+t+" saw "+n);switch(t===u7?n:t){case 2:return a=e.read_shift(2,"i"),i.raw||(e.l+=2),a;case 3:return a=e.read_shift(4,"i"),a;case 11:return e.read_shift(4)!==0;case 19:return a=e.read_shift(4),a;case 30:return b7(e,n,4).replace(Fn,"");case 31:return w7(e);case 64:return Wy(e);case 65:return C7(e);case 71:return Pte(e);case 80:return Vy(e,n,!i.raw).replace(Fn,"");case 81:return kte(e,n).replace(Fn,"");case 4108:return Ote(e);case 4126:case 4127:return n==4127?Tte(e):Ate(e);default:throw new Error("TypedPropertyValue unrecognized type "+t+" "+n)}}function k7(e,t){var r=Ce(4),n=Ce(4);switch(r.write_shift(4,e==80?31:e),e){case 3:n.write_shift(-4,t);break;case 5:n=Ce(8),n.write_shift(8,t,"f");break;case 11:n.write_shift(4,t?1:0);break;case 64:n=Cte(t);break;case 31:case 80:for(n=Ce(4+2*(t.length+1)+(t.length%2?0:2)),n.write_shift(4,t.length+1),n.write_shift(0,t,"dbcs");n.l!=n.length;)n.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+e+" "+t)}return un([r,n])}function T7(e,t){var r=e.l,n=e.read_shift(4),a=e.read_shift(4),i=[],s=0,o=0,u=-1,l={};for(s=0;s!=a;++s){var f=e.read_shift(4),d=e.read_shift(4);i[s]=[f,d+r]}i.sort(function(E,b){return E[1]-b[1]});var p={};for(s=0;s!=a;++s){if(e.l!==i[s][1]){var v=!0;if(s>0&&t)switch(t[i[s-1][0]].t){case 2:e.l+2===i[s][1]&&(e.l+=2,v=!1);break;case 80:e.l<=i[s][1]&&(e.l=i[s][1],v=!1);break;case 4108:e.l<=i[s][1]&&(e.l=i[s][1],v=!1);break}if((!t||s==0)&&e.l<=i[s][1]&&(v=!1,e.l=i[s][1]),v)throw new Error("Read Error: Expected address "+i[s][1]+" at "+e.l+" :"+s)}if(t){var _=t[i[s][0]];if(p[_.n]=Zp(e,_.t,{raw:!0}),_.p==="version"&&(p[_.n]=String(p[_.n]>>16)+"."+("0000"+String(p[_.n]&65535)).slice(-4)),_.n=="CodePage")switch(p[_.n]){case 0:p[_.n]=1252;case 874:case 932:case 936:case 949:case 950:case 1250:case 1251:case 1253:case 1254:case 1255:case 1256:case 1257:case 1258:case 1e4:case 1200:case 1201:case 1252:case 65e3:case-536:case 65001:case-535:Ya(o=p[_.n]>>>0&65535);break;default:throw new Error("Unsupported CodePage: "+p[_.n])}}else if(i[s][0]===1){if(o=p.CodePage=Zp(e,My),Ya(o),u!==-1){var x=e.l;e.l=i[u][1],l=E7(e,o),e.l=x}}else if(i[s][0]===0){if(o===0){u=s,e.l=i[s+1][1];continue}l=E7(e,o)}else{var w=l[i[s][0]],C;switch(e[e.l]){case 65:e.l+=4,C=C7(e);break;case 30:e.l+=4,C=Vy(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 31:e.l+=4,C=Vy(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 3:e.l+=4,C=e.read_shift(4,"i");break;case 19:e.l+=4,C=e.read_shift(4);break;case 5:e.l+=4,C=e.read_shift(8,"f");break;case 11:e.l+=4,C=zr(e,4);break;case 64:e.l+=4,C=_r(Wy(e));break;default:throw new Error("unparsed value: "+e[e.l])}p[w]=C}}return e.l=r+n,p}var A7=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function Dte(e){switch(typeof e){case"boolean":return 11;case"number":return(e|0)==e?3:5;case"string":return 31;case"object":if(e instanceof Date)return 64;break}return-1}function F7(e,t,r){var n=Ce(8),a=[],i=[],s=8,o=0,u=Ce(8),l=Ce(8);if(u.write_shift(4,2),u.write_shift(4,1200),l.write_shift(4,1),i.push(u),a.push(l),s+=8+u.length,!t){l=Ce(8),l.write_shift(4,0),a.unshift(l);var f=[Ce(4)];for(f[0].write_shift(4,e.length),o=0;o<e.length;++o){var d=e[o][0];for(u=Ce(8+2*(d.length+1)+(d.length%2?0:2)),u.write_shift(4,o+2),u.write_shift(4,d.length+1),u.write_shift(0,d,"dbcs");u.l!=u.length;)u.write_shift(1,0);f.push(u)}u=un(f),i.unshift(u),s+=8+u.length}for(o=0;o<e.length;++o)if(!(t&&!t[e[o][0]])&&!(A7.indexOf(e[o][0])>-1||v7.indexOf(e[o][0])>-1)&&e[o][1]!=null){var p=e[o][1],v=0;if(t){v=+t[e[o][0]];var _=r[v];if(_.p=="version"&&typeof p=="string"){var x=p.split(".");p=(+x[0]<<16)+(+x[1]||0)}u=k7(_.t,p)}else{var w=Dte(p);w==-1&&(w=31,p=String(p)),u=k7(w,p)}i.push(u),l=Ce(8),l.write_shift(4,t?v:2+o),a.push(l),s+=8+u.length}var C=8*(i.length+1);for(o=0;o<i.length;++o)a[o].write_shift(4,C),C+=i[o].length;return n.write_shift(4,s),n.write_shift(4,i.length),un([n].concat(a).concat(i))}function O7(e,t,r){var n=e.content;if(!n)return{};bn(n,0);var a,i,s,o,u=0;n.chk("feff","Byte Order: "),n.read_shift(2);var l=n.read_shift(4),f=n.read_shift(16);if(f!==nt.utils.consts.HEADER_CLSID&&f!==r)throw new Error("Bad PropertySet CLSID "+f);if(a=n.read_shift(4),a!==1&&a!==2)throw new Error("Unrecognized #Sets: "+a);if(i=n.read_shift(16),o=n.read_shift(4),a===1&&o!==n.l)throw new Error("Length mismatch: "+o+" !== "+n.l);a===2&&(s=n.read_shift(16),u=n.read_shift(4));var d=T7(n,t),p={SystemIdentifier:l};for(var v in d)p[v]=d[v];if(p.FMTID=i,a===1)return p;if(u-n.l==2&&(n.l+=2),n.l!==u)throw new Error("Length mismatch 2: "+n.l+" !== "+u);var _;try{_=T7(n,null)}catch{}for(v in _)p[v]=_[v];return p.FMTID=[i,s],p}function P7(e,t,r,n,a,i){var s=Ce(a?68:48),o=[s];s.write_shift(2,65534),s.write_shift(2,0),s.write_shift(4,842412599),s.write_shift(16,nt.utils.consts.HEADER_CLSID,"hex"),s.write_shift(4,a?2:1),s.write_shift(16,t,"hex"),s.write_shift(4,a?68:48);var u=F7(e,r,n);if(o.push(u),a){var l=F7(a,null,null);s.write_shift(16,i,"hex"),s.write_shift(4,68+u.length),o.push(l)}return un(o)}function Bo(e,t){return e.read_shift(t),null}function Rte(e,t){t||(t=Ce(e));for(var r=0;r<e;++r)t.write_shift(1,0);return t}function Ite(e,t,r){for(var n=[],a=e.l+t;e.l<a;)n.push(r(e,a-e.l));if(a!==e.l)throw new Error("Slurp error");return n}function zr(e,t){return e.read_shift(t)===1}function Gn(e,t){return t||(t=Ce(2)),t.write_shift(2,+!!e),t}function Gr(e){return e.read_shift(2,"u")}function Qa(e,t){return t||(t=Ce(2)),t.write_shift(2,e),t}function D7(e,t){return Ite(e,t,Gr)}function Nte(e){var t=e.read_shift(1),r=e.read_shift(1);return r===1?t:t===1}function R7(e,t,r){return r||(r=Ce(2)),r.write_shift(1,t=="e"?+e:+!!e),r.write_shift(1,t=="e"?1:0),r}function Sd(e,t,r){var n=e.read_shift(r&&r.biff>=12?2:1),a="sbcs-cont",i=Ca;if(r&&r.biff>=8&&(Ca=1200),!r||r.biff==8){var s=e.read_shift(1);s&&(a="dbcs-cont")}else r.biff==12&&(a="wstr");r.biff>=2&&r.biff<=5&&(a="cpstr");var o=n?e.read_shift(n,a):"";return Ca=i,o}function Mte(e){var t=Ca;Ca=1200;var r=e.read_shift(2),n=e.read_shift(1),a=n&4,i=n&8,s=1+(n&1),o=0,u,l={};i&&(o=e.read_shift(2)),a&&(u=e.read_shift(4));var f=s==2?"dbcs-cont":"sbcs-cont",d=r===0?"":e.read_shift(r,f);return i&&(e.l+=4*o),a&&(e.l+=u),l.t=d,i||(l.raw="<t>"+l.t+"</t>",l.r=l.t),Ca=t,l}function Lte(e){var t=e.t||"",r=Ce(3);r.write_shift(2,t.length),r.write_shift(1,1);var n=Ce(2*t.length);n.write_shift(2*t.length,t,"utf16le");var a=[r,n];return un(a)}function Zu(e,t,r){var n;if(r){if(r.biff>=2&&r.biff<=5)return e.read_shift(t,"cpstr");if(r.biff>=12)return e.read_shift(t,"dbcs-cont")}var a=e.read_shift(1);return a===0?n=e.read_shift(t,"sbcs-cont"):n=e.read_shift(t,"dbcs-cont"),n}function Ed(e,t,r){var n=e.read_shift(r&&r.biff==2?1:2);return n===0?(e.l++,""):Zu(e,n,r)}function Ju(e,t,r){if(r.biff>5)return Ed(e,t,r);var n=e.read_shift(1);return n===0?(e.l++,""):e.read_shift(n,r.biff<=4||!e.lens?"cpstr":"sbcs-cont")}function I7(e,t,r){return r||(r=Ce(3+2*e.length)),r.write_shift(2,e.length),r.write_shift(1,1),r.write_shift(31,e,"utf16le"),r}function Bte(e){var t=e.read_shift(1);e.l++;var r=e.read_shift(2);return e.l+=2,[t,r]}function jte(e){var t=e.read_shift(4),r=e.l,n=!1;t>24&&(e.l+=t-24,e.read_shift(16)==="795881f43b1d7f48af2c825dc4852763"&&(n=!0),e.l=r);var a=e.read_shift((n?t-24:t)>>1,"utf16le").replace(Fn,"");return n&&(e.l+=24),a}function $te(e){for(var t=e.read_shift(2),r="";t-- >0;)r+="../";var n=e.read_shift(0,"lpstr-ansi");if(e.l+=2,e.read_shift(2)!=57005)throw new Error("Bad FileMoniker");var a=e.read_shift(4);if(a===0)return r+n.replace(/\\/g,"/");var i=e.read_shift(4);if(e.read_shift(2)!=3)throw new Error("Bad FileMoniker");var s=e.read_shift(i>>1,"utf16le").replace(Fn,"");return r+s}function Ute(e,t){var r=e.read_shift(16);switch(r){case"e0c9ea79f9bace118c8200aa004ba90b":return jte(e);case"0303000000000000c000000000000046":return $te(e);default:throw new Error("Unsupported Moniker "+r)}}function Jp(e){var t=e.read_shift(4),r=t>0?e.read_shift(t,"utf16le").replace(Fn,""):"";return r}function N7(e,t){t||(t=Ce(6+e.length*2)),t.write_shift(4,1+e.length);for(var r=0;r<e.length;++r)t.write_shift(2,e.charCodeAt(r));return t.write_shift(2,0),t}function zte(e,t){var r=e.l+t,n=e.read_shift(4);if(n!==2)throw new Error("Unrecognized streamVersion: "+n);var a=e.read_shift(2);e.l+=2;var i,s,o,u,l="",f,d;a&16&&(i=Jp(e,r-e.l)),a&128&&(s=Jp(e,r-e.l)),(a&257)===257&&(o=Jp(e,r-e.l)),(a&257)===1&&(u=Ute(e,r-e.l)),a&8&&(l=Jp(e,r-e.l)),a&32&&(f=e.read_shift(16)),a&64&&(d=Wy(e)),e.l=r;var p=s||o||u||"";p&&l&&(p+="#"+l),p||(p="#"+l),a&2&&p.charAt(0)=="/"&&p.charAt(1)!="/"&&(p="file://"+p);var v={Target:p};return f&&(v.guid=f),d&&(v.time=d),i&&(v.Tooltip=i),v}function Hte(e){var t=Ce(512),r=0,n=e.Target;n.slice(0,7)=="file://"&&(n=n.slice(7));var a=n.indexOf("#"),i=a>-1?31:23;switch(n.charAt(0)){case"#":i=28;break;case".":i&=-3;break}t.write_shift(4,2),t.write_shift(4,i);var s=[8,6815827,6619237,4849780,83];for(r=0;r<s.length;++r)t.write_shift(4,s[r]);if(i==28)n=n.slice(1),N7(n,t);else if(i&2){for(s="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),r=0;r<s.length;++r)t.write_shift(1,parseInt(s[r],16));var o=a>-1?n.slice(0,a):n;for(t.write_shift(4,2*(o.length+1)),r=0;r<o.length;++r)t.write_shift(2,o.charCodeAt(r));t.write_shift(2,0),i&8&&N7(a>-1?n.slice(a+1):"",t)}else{for(s="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),r=0;r<s.length;++r)t.write_shift(1,parseInt(s[r],16));for(var u=0;n.slice(u*3,u*3+3)=="../"||n.slice(u*3,u*3+3)=="..\\";)++u;for(t.write_shift(2,u),t.write_shift(4,n.length-3*u+1),r=0;r<n.length-3*u;++r)t.write_shift(1,n.charCodeAt(r+3*u)&255);for(t.write_shift(1,0),t.write_shift(2,65535),t.write_shift(2,57005),r=0;r<6;++r)t.write_shift(4,0)}return t.slice(0,t.l)}function M7(e){var t=e.read_shift(1),r=e.read_shift(1),n=e.read_shift(1),a=e.read_shift(1);return[t,r,n,a]}function L7(e,t){var r=M7(e);return r[3]=0,r}function ds(e){var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(2);return{r:t,c:r,ixfe:n}}function Qu(e,t,r,n){return n||(n=Ce(6)),n.write_shift(2,e),n.write_shift(2,t),n.write_shift(2,r||0),n}function Wte(e){var t=e.read_shift(2),r=e.read_shift(2);return e.l+=8,{type:t,flags:r}}function Vte(e,t,r){return t===0?"":Ju(e,t,r)}function qte(e,t,r){var n=r.biff>8?4:2,a=e.read_shift(n),i=e.read_shift(n,"i"),s=e.read_shift(n,"i");return[a,i,s]}function B7(e){var t=e.read_shift(2),r=Ny(e);return[t,r]}function Gte(e,t,r){e.l+=4,t-=4;var n=e.l+t,a=Sd(e,t,r),i=e.read_shift(2);if(n-=e.l,i!==n)throw new Error("Malformed AddinUdf: padding = "+n+" != "+i);return e.l+=i,a}function Qp(e){var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(2),a=e.read_shift(2);return{s:{c:n,r:t},e:{c:a,r}}}function j7(e,t){return t||(t=Ce(8)),t.write_shift(2,e.s.r),t.write_shift(2,e.e.r),t.write_shift(2,e.s.c),t.write_shift(2,e.e.c),t}function $7(e){var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(1),a=e.read_shift(1);return{s:{c:n,r:t},e:{c:a,r}}}var Yte=$7;function U7(e){e.l+=4;var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(2);return e.l+=12,[r,t,n]}function Xte(e){var t={};return e.l+=4,e.l+=16,t.fSharedNote=e.read_shift(2),e.l+=4,t}function Kte(e){var t={};return e.l+=4,e.cf=e.read_shift(2),t}function In(e){e.l+=2,e.l+=e.read_shift(2)}var Zte={0:In,4:In,5:In,6:In,7:Kte,8:In,9:In,10:In,11:In,12:In,13:Xte,14:In,15:In,16:In,17:In,18:In,19:In,20:In,21:U7};function Jte(e,t){for(var r=e.l+t,n=[];e.l<r;){var a=e.read_shift(2);e.l-=2;try{n.push(Zte[a](e,r-e.l))}catch{return e.l=r,n}}return e.l!=r&&(e.l=r),n}function em(e,t){var r={BIFFVer:0,dt:0};switch(r.BIFFVer=e.read_shift(2),t-=2,t>=2&&(r.dt=e.read_shift(2),e.l-=2),r.BIFFVer){case 1536:case 1280:case 1024:case 768:case 512:case 2:case 7:break;default:if(t>6)throw new Error("Unexpected BIFF Ver "+r.BIFFVer)}return e.read_shift(t),r}function qy(e,t,r){var n=1536,a=16;switch(r.bookType){case"biff8":break;case"biff5":n=1280,a=8;break;case"biff4":n=4,a=6;break;case"biff3":n=3,a=6;break;case"biff2":n=2,a=4;break;case"xla":break;default:throw new Error("unsupported BIFF version")}var i=Ce(a);return i.write_shift(2,n),i.write_shift(2,t),a>4&&i.write_shift(2,29282),a>6&&i.write_shift(2,1997),a>8&&(i.write_shift(2,49161),i.write_shift(2,1),i.write_shift(2,1798),i.write_shift(2,0)),i}function Qte(e,t){return t===0||e.read_shift(2),1200}function ere(e,t,r){if(r.enc)return e.l+=t,"";var n=e.l,a=Ju(e,0,r);return e.read_shift(t+n-e.l),a}function tre(e,t){var r=!t||t.biff==8,n=Ce(r?112:54);for(n.write_shift(t.biff==8?2:1,7),r&&n.write_shift(1,0),n.write_shift(4,859007059),n.write_shift(4,5458548|(r?0:536870912));n.l<n.length;)n.write_shift(1,r?0:32);return n}function rre(e,t,r){var n=r&&r.biff==8||t==2?e.read_shift(2):(e.l+=t,0);return{fDialog:n&16,fBelow:n&64,fRight:n&128}}function nre(e,t,r){var n=e.read_shift(4),a=e.read_shift(1)&3,i=e.read_shift(1);switch(i){case 0:i="Worksheet";break;case 1:i="Macrosheet";break;case 2:i="Chartsheet";break;case 6:i="VBAModule";break}var s=Sd(e,0,r);return s.length===0&&(s="Sheet1"),{pos:n,hs:a,dt:i,name:s}}function are(e,t){var r=!t||t.biff>=8?2:1,n=Ce(8+r*e.name.length);n.write_shift(4,e.pos),n.write_shift(1,e.hs||0),n.write_shift(1,e.dt),n.write_shift(1,e.name.length),t.biff>=8&&n.write_shift(1,1),n.write_shift(r*e.name.length,e.name,t.biff<8?"sbcs":"utf16le");var a=n.slice(0,n.l);return a.l=n.l,a}function ire(e,t){for(var r=e.l+t,n=e.read_shift(4),a=e.read_shift(4),i=[],s=0;s!=a&&e.l<r;++s)i.push(Mte(e));return i.Count=n,i.Unique=a,i}function sre(e,t){var r=Ce(8);r.write_shift(4,e.Count),r.write_shift(4,e.Unique);for(var n=[],a=0;a<e.length;++a)n[a]=Lte(e[a]);var i=un([r].concat(n));return i.parts=[r.length].concat(n.map(function(s){return s.length})),i}function ore(e,t){var r={};return r.dsst=e.read_shift(2),e.l+=t-2,r}function ure(e){var t={};t.r=e.read_shift(2),t.c=e.read_shift(2),t.cnt=e.read_shift(2)-t.c;var r=e.read_shift(2);e.l+=4;var n=e.read_shift(1);return e.l+=3,n&7&&(t.level=n&7),n&32&&(t.hidden=!0),n&64&&(t.hpt=r/20),t}function lre(e){var t=Wte(e);if(t.type!=2211)throw new Error("Invalid Future Record "+t.type);var r=e.read_shift(4);return r!==0}function cre(e){return e.read_shift(2),e.read_shift(4)}function z7(e,t,r){var n=0;r&&r.biff==2||(n=e.read_shift(2));var a=e.read_shift(2);r&&r.biff==2&&(n=1-(a>>15),a&=32767);var i={Unsynced:n&1,DyZero:(n&2)>>1,ExAsc:(n&4)>>2,ExDsc:(n&8)>>3};return[i,a]}function fre(e){var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(2),a=e.read_shift(2),i=e.read_shift(2),s=e.read_shift(2),o=e.read_shift(2),u=e.read_shift(2),l=e.read_shift(2);return{Pos:[t,r],Dim:[n,a],Flags:i,CurTab:s,FirstTab:o,Selected:u,TabRatio:l}}function dre(){var e=Ce(18);return e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,29280),e.write_shift(2,17600),e.write_shift(2,56),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,1),e.write_shift(2,500),e}function hre(e,t,r){if(r&&r.biff>=2&&r.biff<5)return{};var n=e.read_shift(2);return{RTL:n&64}}function pre(e){var t=Ce(18),r=1718;return e&&e.RTL&&(r|=64),t.write_shift(2,r),t.write_shift(4,0),t.write_shift(4,64),t.write_shift(4,0),t.write_shift(4,0),t}function mre(){}function gre(e,t,r){var n={dyHeight:e.read_shift(2),fl:e.read_shift(2)};switch(r&&r.biff||8){case 2:break;case 3:case 4:e.l+=2;break;default:e.l+=10;break}return n.name=Sd(e,0,r),n}function vre(e,t){var r=e.name||"Arial",n=t&&t.biff==5,a=n?15+r.length:16+2*r.length,i=Ce(a);return i.write_shift(2,e.sz*20),i.write_shift(4,0),i.write_shift(2,400),i.write_shift(4,0),i.write_shift(2,0),i.write_shift(1,r.length),n||i.write_shift(1,1),i.write_shift((n?1:2)*r.length,r,n?"sbcs":"utf16le"),i}function xre(e){var t=ds(e);return t.isst=e.read_shift(4),t}function _re(e,t,r,n){var a=Ce(10);return Qu(e,t,n,a),a.write_shift(4,r),a}function yre(e,t,r){r.biffguess&&r.biff==2&&(r.biff=5);var n=e.l+t,a=ds(e);r.biff==2&&e.l++;var i=Ed(e,n-e.l,r);return a.val=i,a}function bre(e,t,r,n,a){var i=!a||a.biff==8,s=Ce(8+ +i+(1+i)*r.length);return Qu(e,t,n,s),s.write_shift(2,r.length),i&&s.write_shift(1,1),s.write_shift((1+i)*r.length,r,i?"utf16le":"sbcs"),s}function wre(e,t,r){var n=e.read_shift(2),a=Ju(e,0,r);return[n,a]}function Sre(e,t,r,n){var a=r&&r.biff==5;n||(n=Ce(a?3+t.length:5+2*t.length)),n.write_shift(2,e),n.write_shift(a?1:2,t.length),a||n.write_shift(1,1),n.write_shift((a?1:2)*t.length,t,a?"sbcs":"utf16le");var i=n.length>n.l?n.slice(0,n.l):n;return i.l==null&&(i.l=i.length),i}var Ere=Ju;function H7(e,t,r){var n=e.l+t,a=r.biff==8||!r.biff?4:2,i=e.read_shift(a),s=e.read_shift(a),o=e.read_shift(2),u=e.read_shift(2);return e.l=n,{s:{r:i,c:o},e:{r:s,c:u}}}function Cre(e,t){var r=t.biff==8||!t.biff?4:2,n=Ce(2*r+6);return n.write_shift(r,e.s.r),n.write_shift(r,e.e.r+1),n.write_shift(2,e.s.c),n.write_shift(2,e.e.c+1),n.write_shift(2,0),n}function kre(e){var t=e.read_shift(2),r=e.read_shift(2),n=B7(e);return{r:t,c:r,ixfe:n[0],rknum:n[1]}}function Tre(e,t){for(var r=e.l+t-2,n=e.read_shift(2),a=e.read_shift(2),i=[];e.l<r;)i.push(B7(e));if(e.l!==r)throw new Error("MulRK read error");var s=e.read_shift(2);if(i.length!=s-a+1)throw new Error("MulRK length mismatch");return{r:n,c:a,C:s,rkrec:i}}function Are(e,t){for(var r=e.l+t-2,n=e.read_shift(2),a=e.read_shift(2),i=[];e.l<r;)i.push(e.read_shift(2));if(e.l!==r)throw new Error("MulBlank read error");var s=e.read_shift(2);if(i.length!=s-a+1)throw new Error("MulBlank length mismatch");return{r:n,c:a,C:s,ixfe:i}}function Fre(e,t,r,n){var a={},i=e.read_shift(4),s=e.read_shift(4),o=e.read_shift(4),u=e.read_shift(2);return a.patternType=lte[o>>26],n.cellStyles&&(a.alc=i&7,a.fWrap=i>>3&1,a.alcV=i>>4&7,a.fJustLast=i>>7&1,a.trot=i>>8&255,a.cIndent=i>>16&15,a.fShrinkToFit=i>>20&1,a.iReadOrder=i>>22&2,a.fAtrNum=i>>26&1,a.fAtrFnt=i>>27&1,a.fAtrAlc=i>>28&1,a.fAtrBdr=i>>29&1,a.fAtrPat=i>>30&1,a.fAtrProt=i>>31&1,a.dgLeft=s&15,a.dgRight=s>>4&15,a.dgTop=s>>8&15,a.dgBottom=s>>12&15,a.icvLeft=s>>16&127,a.icvRight=s>>23&127,a.grbitDiag=s>>30&3,a.icvTop=o&127,a.icvBottom=o>>7&127,a.icvDiag=o>>14&127,a.dgDiag=o>>21&15,a.icvFore=u&127,a.icvBack=u>>7&127,a.fsxButton=u>>14&1),a}function Ore(e,t,r){var n={};return n.ifnt=e.read_shift(2),n.numFmtId=e.read_shift(2),n.flags=e.read_shift(2),n.fStyle=n.flags>>2&1,t-=6,n.data=Fre(e,t,n.fStyle,r),n}function W7(e,t,r,n){var a=r&&r.biff==5;n||(n=Ce(a?16:20)),n.write_shift(2,0),e.style?(n.write_shift(2,e.numFmtId||0),n.write_shift(2,65524)):(n.write_shift(2,e.numFmtId||0),n.write_shift(2,t<<4));var i=0;return e.numFmtId>0&&a&&(i|=1024),n.write_shift(4,i),n.write_shift(4,0),a||n.write_shift(4,0),n.write_shift(2,0),n}function Pre(e){e.l+=4;var t=[e.read_shift(2),e.read_shift(2)];if(t[0]!==0&&t[0]--,t[1]!==0&&t[1]--,t[0]>7||t[1]>7)throw new Error("Bad Gutters: "+t.join("|"));return t}function Dre(e){var t=Ce(8);return t.write_shift(4,0),t.write_shift(2,0),t.write_shift(2,0),t}function V7(e,t,r){var n=ds(e);(r.biff==2||t==9)&&++e.l;var a=Nte(e);return n.val=a,n.t=a===!0||a===!1?"b":"e",n}function Rre(e,t,r,n,a,i){var s=Ce(8);return Qu(e,t,n,s),R7(r,i,s),s}function Ire(e,t,r){r.biffguess&&r.biff==2&&(r.biff=5);var n=ds(e),a=Rn(e);return n.val=a,n}function Nre(e,t,r,n){var a=Ce(14);return Qu(e,t,n,a),Yu(r,a),a}var q7=Vte;function Mre(e,t,r){var n=e.l+t,a=e.read_shift(2),i=e.read_shift(2);if(r.sbcch=i,i==1025||i==14849)return[i,a];if(i<1||i>255)throw new Error("Unexpected SupBook type: "+i);for(var s=Zu(e,i),o=[];n>e.l;)o.push(Ed(e));return[i,a,s,o]}function G7(e,t,r){var n=e.read_shift(2),a,i={fBuiltIn:n&1,fWantAdvise:n>>>1&1,fWantPict:n>>>2&1,fOle:n>>>3&1,fOleLink:n>>>4&1,cf:n>>>5&1023,fIcon:n>>>15&1};return r.sbcch===14849&&(a=Gte(e,t-2,r)),i.body=a||e.read_shift(t-2),typeof a=="string"&&(i.Name=a),i}var Lre=["_xlnm.Consolidate_Area","_xlnm.Auto_Open","_xlnm.Auto_Close","_xlnm.Extract","_xlnm.Database","_xlnm.Criteria","_xlnm.Print_Area","_xlnm.Print_Titles","_xlnm.Recorder","_xlnm.Data_Form","_xlnm.Auto_Activate","_xlnm.Auto_Deactivate","_xlnm.Sheet_Title","_xlnm._FilterDatabase"];function Y7(e,t,r){var n=e.l+t,a=e.read_shift(2),i=e.read_shift(1),s=e.read_shift(1),o=e.read_shift(r&&r.biff==2?1:2),u=0;(!r||r.biff>=5)&&(r.biff!=5&&(e.l+=2),u=e.read_shift(2),r.biff==5&&(e.l+=2),e.l+=4);var l=Zu(e,s,r);a&32&&(l=Lre[l.charCodeAt(0)]);var f=n-e.l;r&&r.biff==2&&--f;var d=n==e.l||o===0||!(f>0)?[]:Jse(e,f,r,o);return{chKey:i,Name:l,itab:u,rgce:d}}function X7(e,t,r){if(r.biff<8)return Bre(e,t,r);for(var n=[],a=e.l+t,i=e.read_shift(r.biff>8?4:2);i--!==0;)n.push(qte(e,r.biff>8?12:6,r));if(e.l!=a)throw new Error("Bad ExternSheet: "+e.l+" != "+a);return n}function Bre(e,t,r){e[e.l+1]==3&&e[e.l]++;var n=Sd(e,t,r);return n.charCodeAt(0)==3?n.slice(1):n}function jre(e,t,r){if(r.biff<8){e.l+=t;return}var n=e.read_shift(2),a=e.read_shift(2),i=Zu(e,n,r),s=Zu(e,a,r);return[i,s]}function $re(e,t,r){var n=$7(e);e.l++;var a=e.read_shift(1);return t-=8,[Qse(e,t,r),a,n]}function K7(e,t,r){var n=Yte(e);switch(r.biff){case 2:e.l++,t-=7;break;case 3:case 4:e.l+=2,t-=8;break;default:e.l+=6,t-=12}return[n,Kse(e,t,r)]}function Ure(e){var t=e.read_shift(4)!==0,r=e.read_shift(4)!==0,n=e.read_shift(4);return[t,r,n]}function zre(e,t,r){if(!(r.biff<8)){var n=e.read_shift(2),a=e.read_shift(2),i=e.read_shift(2),s=e.read_shift(2),o=Ju(e,0,r);return r.biff<8&&e.read_shift(1),[{r:n,c:a},o,s,i]}}function Hre(e,t,r){return zre(e,t,r)}function Wre(e,t){for(var r=[],n=e.read_shift(2);n--;)r.push(Qp(e));return r}function Vre(e){var t=Ce(2+e.length*8);t.write_shift(2,e.length);for(var r=0;r<e.length;++r)j7(e[r],t);return t}function qre(e,t,r){if(r&&r.biff<8)return Yre(e,t,r);var n=U7(e),a=Jte(e,t-22,n[1]);return{cmo:n,ft:a}}var Gre={8:function(e,t){var r=e.l+t;e.l+=10;var n=e.read_shift(2);e.l+=4,e.l+=2,e.l+=2,e.l+=2,e.l+=4;var a=e.read_shift(1);return e.l+=a,e.l=r,{fmt:n}}};function Yre(e,t,r){e.l+=4;var n=e.read_shift(2),a=e.read_shift(2),i=e.read_shift(2);e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=6,t-=36;var s=[];return s.push((Gre[n]||Pn)(e,t,r)),{cmo:[a,n,i],ft:s}}function Xre(e,t,r){var n=e.l,a="";try{e.l+=4;var i=(r.lastobj||{cmo:[0,0]}).cmo[1],s;[0,5,7,11,12,14].indexOf(i)==-1?e.l+=6:s=Bte(e,6,r);var o=e.read_shift(2);e.read_shift(2),Gr(e,2);var u=e.read_shift(2);e.l+=u;for(var l=1;l<e.lens.length-1;++l){if(e.l-n!=e.lens[l])throw new Error("TxO: bad continue record");var f=e[e.l],d=Zu(e,e.lens[l+1]-e.lens[l]-1);if(a+=d,a.length>=(f?o:2*o))break}if(a.length!==o&&a.length!==o*2)throw new Error("cchText: "+o+" != "+a.length);return e.l=n+t,{t:a}}catch{return e.l=n+t,{t:a}}}function Kre(e,t){var r=Qp(e);e.l+=16;var n=zte(e,t-24);return[r,n]}function Zre(e){var t=Ce(24),r=Ar(e[0]);t.write_shift(2,r.r),t.write_shift(2,r.r),t.write_shift(2,r.c),t.write_shift(2,r.c);for(var n="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),a=0;a<16;++a)t.write_shift(1,parseInt(n[a],16));return un([t,Hte(e[1])])}function Jre(e,t){e.read_shift(2);var r=Qp(e),n=e.read_shift((t-10)/2,"dbcs-cont");return n=n.replace(Fn,""),[r,n]}function Qre(e){var t=e[1].Tooltip,r=Ce(10+2*(t.length+1));r.write_shift(2,2048);var n=Ar(e[0]);r.write_shift(2,n.r),r.write_shift(2,n.r),r.write_shift(2,n.c),r.write_shift(2,n.c);for(var a=0;a<t.length;++a)r.write_shift(2,t.charCodeAt(a));return r.write_shift(2,0),r}function ene(e){var t=[0,0],r;return r=e.read_shift(2),t[0]=c7[r]||r,r=e.read_shift(2),t[1]=c7[r]||r,t}function tne(e){return e||(e=Ce(4)),e.write_shift(2,1),e.write_shift(2,1),e}function rne(e){for(var t=e.read_shift(2),r=[];t-- >0;)r.push(L7(e));return r}function nne(e){for(var t=e.read_shift(2),r=[];t-- >0;)r.push(L7(e));return r}function ane(e){e.l+=2;var t={cxfs:0,crc:0};return t.cxfs=e.read_shift(2),t.crc=e.read_shift(4),t}function Z7(e,t,r){if(!r.cellStyles)return Pn(e,t);var n=r&&r.biff>=12?4:2,a=e.read_shift(n),i=e.read_shift(n),s=e.read_shift(n),o=e.read_shift(n),u=e.read_shift(2);n==2&&(e.l+=2);var l={s:a,e:i,w:s,ixfe:o,flags:u};return(r.biff>=5||!r.biff)&&(l.level=u>>8&7),l}function ine(e,t){var r=Ce(12);r.write_shift(2,t),r.write_shift(2,t),r.write_shift(2,e.width*256),r.write_shift(2,0);var n=0;return e.hidden&&(n|=1),r.write_shift(1,n),n=e.level||0,r.write_shift(1,n),r.write_shift(2,0),r}function sne(e,t){var r={};return t<32||(e.l+=16,r.header=Rn(e),r.footer=Rn(e),e.l+=2),r}function one(e,t,r){var n={area:!1};if(r.biff!=5)return e.l+=t,n;var a=e.read_shift(1);return e.l+=3,a&16&&(n.area=!0),n}function une(e){for(var t=Ce(2*e),r=0;r<e;++r)t.write_shift(2,r+1);return t}var lne=ds,cne=D7,fne=Ed;function dne(e){var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(4),a={fmt:t,env:r,len:n,data:e.slice(e.l,e.l+n)};return e.l+=n,a}function hne(e,t,r){r.biffguess&&r.biff==5&&(r.biff=2);var n=ds(e);++e.l;var a=Ju(e,t-7,r);return n.t="str",n.val=a,n}function pne(e){var t=ds(e);++e.l;var r=Rn(e);return t.t="n",t.val=r,t}function mne(e,t,r){var n=Ce(15);return Bd(n,e,t),n.write_shift(8,r,"f"),n}function gne(e){var t=ds(e);++e.l;var r=e.read_shift(2);return t.t="n",t.val=r,t}function vne(e,t,r){var n=Ce(9);return Bd(n,e,t),n.write_shift(2,r),n}function xne(e){var t=e.read_shift(1);return t===0?(e.l++,""):e.read_shift(t,"sbcs-cont")}function _ne(e,t){e.l+=6,e.l+=2,e.l+=1,e.l+=3,e.l+=1,e.l+=t-13}function yne(e,t,r){var n=e.l+t,a=ds(e),i=e.read_shift(2),s=Zu(e,i,r);return e.l=n,a.t="str",a.val=s,a}var bne=[2,3,48,49,131,139,140,245],Gy=function(){var e={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},t=Bp({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function r(o,u){var l=[],f=Do(1);switch(u.type){case"base64":f=Ta(ka(o));break;case"binary":f=Ta(o);break;case"buffer":case"array":f=o;break}bn(f,0);var d=f.read_shift(1),p=!!(d&136),v=!1,_=!1;switch(d){case 2:break;case 3:break;case 48:v=!0,p=!0;break;case 49:v=!0,p=!0;break;case 131:break;case 139:break;case 140:_=!0;break;case 245:break;default:throw new Error("DBF Unsupported Version: "+d.toString(16))}var x=0,w=521;d==2&&(x=f.read_shift(2)),f.l+=3,d!=2&&(x=f.read_shift(4)),x>1048576&&(x=1e6),d!=2&&(w=f.read_shift(2));var C=f.read_shift(2),E=u.codepage||1252;d!=2&&(f.l+=16,f.read_shift(1),f[f.l]!==0&&(E=e[f[f.l]]),f.l+=1,f.l+=2),_&&(f.l+=36);for(var b=[],h={},g=Math.min(f.length,d==2?521:w-10-(v?264:0)),y=_?32:11;f.l<g&&f[f.l]!=13;)switch(h={},h.name=Ut.utils.decode(E,f.slice(f.l,f.l+y)).replace(/[\u0000\r\n].*$/g,""),f.l+=y,h.type=String.fromCharCode(f.read_shift(1)),d!=2&&!_&&(h.offset=f.read_shift(4)),h.len=f.read_shift(1),d==2&&(h.offset=f.read_shift(2)),h.dec=f.read_shift(1),h.name.length&&b.push(h),d!=2&&(f.l+=_?13:14),h.type){case"B":(!v||h.len!=8)&&u.WTF&&console.log("Skipping "+h.name+":"+h.type);break;case"G":case"P":u.WTF&&console.log("Skipping "+h.name+":"+h.type);break;case"+":case"0":case"@":case"C":case"D":case"F":case"I":case"L":case"M":case"N":case"O":case"T":case"Y":break;default:throw new Error("Unknown Field Type: "+h.type)}if(f[f.l]!==13&&(f.l=w-1),f.read_shift(1)!==13)throw new Error("DBF Terminator not found "+f.l+" "+f[f.l]);f.l=w;var S=0,A=0;for(l[0]=[],A=0;A!=b.length;++A)l[0][A]=b[A].name;for(;x-- >0;){if(f[f.l]===42){f.l+=C;continue}for(++f.l,l[++S]=[],A=0,A=0;A!=b.length;++A){var k=f.slice(f.l,f.l+b[A].len);f.l+=b[A].len,bn(k,0);var F=Ut.utils.decode(E,k);switch(b[A].type){case"C":F.trim().length&&(l[S][A]=F.replace(/\s+$/,""));break;case"D":F.length===8?l[S][A]=new Date(+F.slice(0,4),+F.slice(4,6)-1,+F.slice(6,8)):l[S][A]=F;break;case"F":l[S][A]=parseFloat(F.trim());break;case"+":case"I":l[S][A]=_?k.read_shift(-4,"i")^2147483648:k.read_shift(4,"i");break;case"L":switch(F.trim().toUpperCase()){case"Y":case"T":l[S][A]=!0;break;case"N":case"F":l[S][A]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+F+"|")}break;case"M":if(!p)throw new Error("DBF Unexpected MEMO for type "+d.toString(16));l[S][A]="##MEMO##"+(_?parseInt(F.trim(),10):k.read_shift(4));break;case"N":F=F.replace(/\u0000/g,"").trim(),F&&F!="."&&(l[S][A]=+F||0);break;case"@":l[S][A]=new Date(k.read_shift(-8,"f")-621356832e5);break;case"T":l[S][A]=new Date((k.read_shift(4)-2440588)*864e5+k.read_shift(4));break;case"Y":l[S][A]=k.read_shift(4,"i")/1e4+k.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":l[S][A]=-k.read_shift(-8,"f");break;case"B":if(v&&b[A].len==8){l[S][A]=k.read_shift(8,"f");break}case"G":case"P":k.l+=b[A].len;break;case"0":if(b[A].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+b[A].type)}}}if(d!=2&&f.l<f.length&&f[f.l++]!=26)throw new Error("DBF EOF Marker missing "+(f.l-1)+" of "+f.length+" "+f[f.l-1].toString(16));return u&&u.sheetRows&&(l=l.slice(0,u.sheetRows)),u.DBF=b,l}function n(o,u){var l=u||{};l.dateNF||(l.dateNF="yyyymmdd");var f=Fc(r(o,l),l);return f["!cols"]=l.DBF.map(function(d){return{wch:d.len,DBF:d}}),delete l.DBF,f}function a(o,u){try{return Lo(n(o,u),u)}catch(l){if(u&&u.WTF)throw l}return{SheetNames:[],Sheets:{}}}var i={B:8,C:250,L:1,D:8,"?":0,"":0};function s(o,u){var l=u||{};if(+l.codepage>=0&&Ya(+l.codepage),l.type=="string")throw new Error("Cannot write DBF to JS string");var f=ia(),d=dm(o,{header:1,raw:!0,cellDates:!0}),p=d[0],v=d.slice(1),_=o["!cols"]||[],x=0,w=0,C=0,E=1;for(x=0;x<p.length;++x){if(((_[x]||{}).DBF||{}).name){p[x]=_[x].DBF.name,++C;continue}if(p[x]!=null){if(++C,typeof p[x]=="number"&&(p[x]=p[x].toString(10)),typeof p[x]!="string")throw new Error("DBF Invalid column name "+p[x]+" |"+typeof p[x]+"|");if(p.indexOf(p[x])!==x){for(w=0;w<1024;++w)if(p.indexOf(p[x]+"_"+w)==-1){p[x]+="_"+w;break}}}}var b=Mt(o["!ref"]),h=[],g=[],y=[];for(x=0;x<=b.e.c-b.s.c;++x){var S="",A="",k=0,F=[];for(w=0;w<v.length;++w)v[w][x]!=null&&F.push(v[w][x]);if(F.length==0||p[x]==null){h[x]="?";continue}for(w=0;w<F.length;++w){switch(typeof F[w]){case"number":A="B";break;case"string":A="C";break;case"boolean":A="L";break;case"object":A=F[w]instanceof Date?"D":"C";break;default:A="C"}k=Math.max(k,String(F[w]).length),S=S&&S!=A?"C":A}k>250&&(k=250),A=((_[x]||{}).DBF||{}).type,A=="C"&&_[x].DBF.len>k&&(k=_[x].DBF.len),S=="B"&&A=="N"&&(S="N",y[x]=_[x].DBF.dec,k=_[x].DBF.len),g[x]=S=="C"||A=="N"?k:i[S]||0,E+=g[x],h[x]=S}var P=f.next(32);for(P.write_shift(4,318902576),P.write_shift(4,v.length),P.write_shift(2,296+32*C),P.write_shift(2,E),x=0;x<4;++x)P.write_shift(4,0);for(P.write_shift(4,0|(+t[Bu]||3)<<8),x=0,w=0;x<p.length;++x)if(p[x]!=null){var j=f.next(32),N=(p[x].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);j.write_shift(1,N,"sbcs"),j.write_shift(1,h[x]=="?"?"C":h[x],"sbcs"),j.write_shift(4,w),j.write_shift(1,g[x]||i[h[x]]||0),j.write_shift(1,y[x]||0),j.write_shift(1,2),j.write_shift(4,0),j.write_shift(1,0),j.write_shift(4,0),j.write_shift(4,0),w+=g[x]||i[h[x]]||0}var I=f.next(264);for(I.write_shift(4,13),x=0;x<65;++x)I.write_shift(4,0);for(x=0;x<v.length;++x){var B=f.next(E);for(B.write_shift(1,0),w=0;w<p.length;++w)if(p[w]!=null)switch(h[w]){case"L":B.write_shift(1,v[x][w]==null?63:v[x][w]?84:70);break;case"B":B.write_shift(8,v[x][w]||0,"f");break;case"N":var O="0";for(typeof v[x][w]=="number"&&(O=v[x][w].toFixed(y[w]||0)),C=0;C<g[w]-O.length;++C)B.write_shift(1,32);B.write_shift(1,O,"sbcs");break;case"D":v[x][w]?(B.write_shift(4,("0000"+v[x][w].getFullYear()).slice(-4),"sbcs"),B.write_shift(2,("00"+(v[x][w].getMonth()+1)).slice(-2),"sbcs"),B.write_shift(2,("00"+v[x][w].getDate()).slice(-2),"sbcs")):B.write_shift(8,"00000000","sbcs");break;case"C":var M=String(v[x][w]!=null?v[x][w]:"").slice(0,g[w]);for(B.write_shift(1,M,"sbcs"),C=0;C<g[w]-M.length;++C)B.write_shift(1,32);break}}return f.next(1).write_shift(1,26),f.end()}return{to_workbook:a,to_sheet:n,from_sheet:s}}(),J7=function(){var e={AA:"À",BA:"Á",CA:"Â",DA:195,HA:"Ä",JA:197,AE:"È",BE:"É",CE:"Ê",HE:"Ë",AI:"Ì",BI:"Í",CI:"Î",HI:"Ï",AO:"Ò",BO:"Ó",CO:"Ô",DO:213,HO:"Ö",AU:"Ù",BU:"Ú",CU:"Û",HU:"Ü",Aa:"à",Ba:"á",Ca:"â",Da:227,Ha:"ä",Ja:229,Ae:"è",Be:"é",Ce:"ê",He:"ë",Ai:"ì",Bi:"í",Ci:"î",Hi:"ï",Ao:"ò",Bo:"ó",Co:"ô",Do:245,Ho:"ö",Au:"ù",Bu:"ú",Cu:"û",Hu:"ü",KC:"Ç",Kc:"ç",q:"æ",z:"œ",a:"Æ",j:"Œ",DN:209,Dn:241,Hy:255,S:169,c:170,R:174,"B ":180,0:176,1:177,2:178,3:179,5:181,6:182,7:183,Q:185,k:186,b:208,i:216,l:222,s:240,y:248,"!":161,'"':162,"#":163,"(":164,"%":165,"'":167,"H ":168,"+":171,";":187,"<":188,"=":189,">":190,"?":191,"{":223},t=new RegExp("\x1BN("+Dr(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),r=function(p,v){var _=e[v];return typeof _=="number"?ly(_):_},n=function(p,v,_){var x=v.charCodeAt(0)-32<<4|_.charCodeAt(0)-48;return x==59?p:ly(x)};e["|"]=254;function a(p,v){switch(v.type){case"base64":return i(ka(p),v);case"binary":return i(p,v);case"buffer":return i(At&&Buffer.isBuffer(p)?p.toString("binary"):Ro(p),v);case"array":return i(Uu(p),v)}throw new Error("Unrecognized type "+v.type)}function i(p,v){var _=p.split(/[\n\r]+/),x=-1,w=-1,C=0,E=0,b=[],h=[],g=null,y={},S=[],A=[],k=[],F=0,P;for(+v.codepage>=0&&Ya(+v.codepage);C!==_.length;++C){F=0;var j=_[C].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,n).replace(t,r),N=j.replace(/;;/g,"\0").split(";").map(function(te){return te.replace(/\u0000/g,";")}),I=N[0],B;if(j.length>0)switch(I){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":N[1].charAt(0)=="P"&&h.push(j.slice(3).replace(/;;/g,";"));break;case"C":var O=!1,M=!1,V=!1,L=!1,W=-1,G=-1;for(E=1;E<N.length;++E)switch(N[E].charAt(0)){case"A":break;case"X":w=parseInt(N[E].slice(1))-1,M=!0;break;case"Y":for(x=parseInt(N[E].slice(1))-1,M||(w=0),P=b.length;P<=x;++P)b[P]=[];break;case"K":B=N[E].slice(1),B.charAt(0)==='"'?B=B.slice(1,B.length-1):B==="TRUE"?B=!0:B==="FALSE"?B=!1:isNaN(Ri(B))?isNaN(kc(B).getDate())||(B=_r(B)):(B=Ri(B),g!==null&&$u(g)&&(B=Up(B))),typeof Ut<"u"&&typeof B=="string"&&(v||{}).type!="string"&&(v||{}).codepage&&(B=Ut.utils.decode(v.codepage,B)),O=!0;break;case"E":L=!0;var H=Nc(N[E].slice(1),{r:x,c:w});b[x][w]=[b[x][w],H];break;case"S":V=!0,b[x][w]=[b[x][w],"S5S"];break;case"G":break;case"R":W=parseInt(N[E].slice(1))-1;break;case"C":G=parseInt(N[E].slice(1))-1;break;default:if(v&&v.WTF)throw new Error("SYLK bad record "+j)}if(O&&(b[x][w]&&b[x][w].length==2?b[x][w][0]=B:b[x][w]=B,g=null),V){if(L)throw new Error("SYLK shared formula cannot have own formula");var Q=W>-1&&b[W][G];if(!Q||!Q[1])throw new Error("SYLK shared formula cannot find base");b[x][w][1]=x9(Q[1],{r:x-W,c:w-G})}break;case"F":var K=0;for(E=1;E<N.length;++E)switch(N[E].charAt(0)){case"X":w=parseInt(N[E].slice(1))-1,++K;break;case"Y":for(x=parseInt(N[E].slice(1))-1,P=b.length;P<=x;++P)b[P]=[];break;case"M":F=parseInt(N[E].slice(1))/20;break;case"F":break;case"G":break;case"P":g=h[parseInt(N[E].slice(1))];break;case"S":break;case"D":break;case"N":break;case"W":for(k=N[E].slice(1).split(" "),P=parseInt(k[0],10);P<=parseInt(k[1],10);++P)F=parseInt(k[2],10),A[P-1]=F===0?{hidden:!0}:{wch:F},jo(A[P-1]);break;case"C":w=parseInt(N[E].slice(1))-1,A[w]||(A[w]={});break;case"R":x=parseInt(N[E].slice(1))-1,S[x]||(S[x]={}),F>0?(S[x].hpt=F,S[x].hpx=Rc(F)):F===0&&(S[x].hidden=!0);break;default:if(v&&v.WTF)throw new Error("SYLK bad record "+j)}K<1&&(g=null);break;default:if(v&&v.WTF)throw new Error("SYLK bad record "+j)}}return S.length>0&&(y["!rows"]=S),A.length>0&&(y["!cols"]=A),v&&v.sheetRows&&(b=b.slice(0,v.sheetRows)),[b,y]}function s(p,v){var _=a(p,v),x=_[0],w=_[1],C=Fc(x,v);return Dr(w).forEach(function(E){C[E]=w[E]}),C}function o(p,v){return Lo(s(p,v),v)}function u(p,v,_,x){var w="C;Y"+(_+1)+";X"+(x+1)+";K";switch(p.t){case"n":w+=p.v||0,p.f&&!p.F&&(w+=";E"+tb(p.f,{r:_,c:x}));break;case"b":w+=p.v?"TRUE":"FALSE";break;case"e":w+=p.w||p.v;break;case"d":w+='"'+(p.w||p.v)+'"';break;case"s":w+='"'+p.v.replace(/"/g,"").replace(/;/g,";;")+'"';break}return w}function l(p,v){v.forEach(function(_,x){var w="F;W"+(x+1)+" "+(x+1)+" ";_.hidden?w+="0":(typeof _.width=="number"&&!_.wpx&&(_.wpx=kd(_.width)),typeof _.wpx=="number"&&!_.wch&&(_.wch=Td(_.wpx)),typeof _.wch=="number"&&(w+=Math.round(_.wch))),w.charAt(w.length-1)!=" "&&p.push(w)})}function f(p,v){v.forEach(function(_,x){var w="F;";_.hidden?w+="M0;":_.hpt?w+="M"+20*_.hpt+";":_.hpx&&(w+="M"+20*Ad(_.hpx)+";"),w.length>2&&p.push(w+"R"+(x+1))})}function d(p,v){var _=["ID;PWXL;N;E"],x=[],w=Mt(p["!ref"]),C,E=Array.isArray(p),b=`\r
552
+ `;_.push("P;PGeneral"),_.push("F;P0;DG0G8;M255"),p["!cols"]&&l(_,p["!cols"]),p["!rows"]&&f(_,p["!rows"]),_.push("B;Y"+(w.e.r-w.s.r+1)+";X"+(w.e.c-w.s.c+1)+";D"+[w.s.c,w.s.r,w.e.c,w.e.r].join(" "));for(var h=w.s.r;h<=w.e.r;++h)for(var g=w.s.c;g<=w.e.c;++g){var y=ht({r:h,c:g});C=E?(p[h]||[])[g]:p[y],!(!C||C.v==null&&(!C.f||C.F))&&x.push(u(C,p,h,g))}return _.join(b)+b+x.join(b)+b+"E"+b}return{to_workbook:o,to_sheet:s,from_sheet:d}}(),Q7=function(){function e(i,s){switch(s.type){case"base64":return t(ka(i),s);case"binary":return t(i,s);case"buffer":return t(At&&Buffer.isBuffer(i)?i.toString("binary"):Ro(i),s);case"array":return t(Uu(i),s)}throw new Error("Unrecognized type "+s.type)}function t(i,s){for(var o=i.split(`
553
+ `),u=-1,l=-1,f=0,d=[];f!==o.length;++f){if(o[f].trim()==="BOT"){d[++u]=[],l=0;continue}if(!(u<0)){var p=o[f].trim().split(","),v=p[0],_=p[1];++f;for(var x=o[f]||"";(x.match(/["]/g)||[]).length&1&&f<o.length-1;)x+=`
554
+ `+o[++f];switch(x=x.trim(),+v){case-1:if(x==="BOT"){d[++u]=[],l=0;continue}else if(x!=="EOD")throw new Error("Unrecognized DIF special command "+x);break;case 0:x==="TRUE"?d[u][l]=!0:x==="FALSE"?d[u][l]=!1:isNaN(Ri(_))?isNaN(kc(_).getDate())?d[u][l]=_:d[u][l]=_r(_):d[u][l]=Ri(_),++l;break;case 1:x=x.slice(1,x.length-1),x=x.replace(/""/g,'"'),x&&x.match(/^=".*"$/)&&(x=x.slice(2,-1)),d[u][l++]=x!==""?x:null;break}if(x==="EOD")break}}return s&&s.sheetRows&&(d=d.slice(0,s.sheetRows)),d}function r(i,s){return Fc(e(i,s),s)}function n(i,s){return Lo(r(i,s),s)}var a=function(){var i=function(u,l,f,d,p){u.push(l),u.push(f+","+d),u.push('"'+p.replace(/"/g,'""')+'"')},s=function(u,l,f,d){u.push(l+","+f),u.push(l==1?'"'+d.replace(/"/g,'""')+'"':d)};return function(u){var l=[],f=Mt(u["!ref"]),d,p=Array.isArray(u);i(l,"TABLE",0,1,"sheetjs"),i(l,"VECTORS",0,f.e.r-f.s.r+1,""),i(l,"TUPLES",0,f.e.c-f.s.c+1,""),i(l,"DATA",0,0,"");for(var v=f.s.r;v<=f.e.r;++v){s(l,-1,0,"BOT");for(var _=f.s.c;_<=f.e.c;++_){var x=ht({r:v,c:_});if(d=p?(u[v]||[])[_]:u[x],!d){s(l,1,0,"");continue}switch(d.t){case"n":var w=d.w;!w&&d.v!=null&&(w=d.v),w==null?d.f&&!d.F?s(l,1,0,"="+d.f):s(l,1,0,""):s(l,0,w,"V");break;case"b":s(l,0,d.v?1:0,d.v?"TRUE":"FALSE");break;case"s":s(l,1,0,isNaN(d.v)?d.v:'="'+d.v+'"');break;case"d":d.w||(d.w=Aa(d.z||ot[14],Jr(_r(d.v)))),s(l,0,d.w,"V");break;default:s(l,1,0,"")}}}s(l,-1,0,"EOD");var C=`\r
555
+ `,E=l.join(C);return E}}();return{to_workbook:n,to_sheet:r,from_sheet:a}}(),e9=function(){function e(d){return d.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,`
556
+ `)}function t(d){return d.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function r(d,p){for(var v=d.split(`
557
+ `),_=-1,x=-1,w=0,C=[];w!==v.length;++w){var E=v[w].trim().split(":");if(E[0]==="cell"){var b=Ar(E[1]);if(C.length<=b.r)for(_=C.length;_<=b.r;++_)C[_]||(C[_]=[]);switch(_=b.r,x=b.c,E[2]){case"t":C[_][x]=e(E[3]);break;case"v":C[_][x]=+E[3];break;case"vtf":var h=E[E.length-1];case"vtc":switch(E[3]){case"nl":C[_][x]=!!+E[4];break;default:C[_][x]=+E[4];break}E[2]=="vtf"&&(C[_][x]=[C[_][x],h])}}}return p&&p.sheetRows&&(C=C.slice(0,p.sheetRows)),C}function n(d,p){return Fc(r(d,p),p)}function a(d,p){return Lo(n(d,p),p)}var i=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join(`
558
+ `),s=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join(`
559
+ `)+`
560
+ `,o=["# SocialCalc Spreadsheet Control Save","part:sheet"].join(`
561
+ `),u="--SocialCalcSpreadsheetControlSave--";function l(d){if(!d||!d["!ref"])return"";for(var p=[],v=[],_,x="",w=qn(d["!ref"]),C=Array.isArray(d),E=w.s.r;E<=w.e.r;++E)for(var b=w.s.c;b<=w.e.c;++b)if(x=ht({r:E,c:b}),_=C?(d[E]||[])[b]:d[x],!(!_||_.v==null||_.t==="z")){switch(v=["cell",x,"t"],_.t){case"s":case"str":v.push(t(_.v));break;case"n":_.f?(v[2]="vtf",v[3]="n",v[4]=_.v,v[5]=t(_.f)):(v[2]="v",v[3]=_.v);break;case"b":v[2]="vt"+(_.f?"f":"c"),v[3]="nl",v[4]=_.v?"1":"0",v[5]=t(_.f||(_.v?"TRUE":"FALSE"));break;case"d":var h=Jr(_r(_.v));v[2]="vtc",v[3]="nd",v[4]=""+h,v[5]=_.w||Aa(_.z||ot[14],h);break;case"e":continue}p.push(v.join(":"))}return p.push("sheet:c:"+(w.e.c-w.s.c+1)+":r:"+(w.e.r-w.s.r+1)+":tvf:1"),p.push("valueformat:1:text-wiki"),p.join(`
562
+ `)}function f(d){return[i,s,o,s,l(d),u].join(`
563
+ `)}return{to_workbook:a,to_sheet:n,from_sheet:f}}(),Dc=function(){function e(f,d,p,v,_){_.raw?d[p][v]=f:f===""||(f==="TRUE"?d[p][v]=!0:f==="FALSE"?d[p][v]=!1:isNaN(Ri(f))?isNaN(kc(f).getDate())?d[p][v]=f:d[p][v]=_r(f):d[p][v]=Ri(f))}function t(f,d){var p=d||{},v=[];if(!f||f.length===0)return v;for(var _=f.split(/[\r\n]/),x=_.length-1;x>=0&&_[x].length===0;)--x;for(var w=10,C=0,E=0;E<=x;++E)C=_[E].indexOf(" "),C==-1?C=_[E].length:C++,w=Math.max(w,C);for(E=0;E<=x;++E){v[E]=[];var b=0;for(e(_[E].slice(0,w).trim(),v,E,b,p),b=1;b<=(_[E].length-w)/10+1;++b)e(_[E].slice(w+(b-1)*10,w+b*10).trim(),v,E,b,p)}return p.sheetRows&&(v=v.slice(0,p.sheetRows)),v}var r={44:",",9:" ",59:";",124:"|"},n={44:3,9:2,59:1,124:0};function a(f){for(var d={},p=!1,v=0,_=0;v<f.length;++v)(_=f.charCodeAt(v))==34?p=!p:!p&&_ in r&&(d[_]=(d[_]||0)+1);_=[];for(v in d)Object.prototype.hasOwnProperty.call(d,v)&&_.push([d[v],v]);if(!_.length){d=n;for(v in d)Object.prototype.hasOwnProperty.call(d,v)&&_.push([d[v],v])}return _.sort(function(x,w){return x[0]-w[0]||n[x[1]]-n[w[1]]}),r[_.pop()[1]]||44}function i(f,d){var p=d||{},v="",_=p.dense?[]:{},x={s:{c:0,r:0},e:{c:0,r:0}};f.slice(0,4)=="sep="?f.charCodeAt(5)==13&&f.charCodeAt(6)==10?(v=f.charAt(4),f=f.slice(7)):f.charCodeAt(5)==13||f.charCodeAt(5)==10?(v=f.charAt(4),f=f.slice(6)):v=a(f.slice(0,1024)):p&&p.FS?v=p.FS:v=a(f.slice(0,1024));var w=0,C=0,E=0,b=0,h=0,g=v.charCodeAt(0),y=!1,S=0,A=f.charCodeAt(0);f=f.replace(/\r\n/mg,`
564
+ `);var k=p.dateNF!=null?see(p.dateNF):null;function F(){var P=f.slice(b,h),j={};if(P.charAt(0)=='"'&&P.charAt(P.length-1)=='"'&&(P=P.slice(1,-1).replace(/""/g,'"')),P.length===0)j.t="z";else if(p.raw)j.t="s",j.v=P;else if(P.trim().length===0)j.t="s",j.v=P;else if(P.charCodeAt(0)==61)P.charCodeAt(1)==34&&P.charCodeAt(P.length-1)==34?(j.t="s",j.v=P.slice(2,-1).replace(/""/g,'"')):Mie(P)?(j.t="n",j.f=P.slice(1)):(j.t="s",j.v=P);else if(P=="TRUE")j.t="b",j.v=!0;else if(P=="FALSE")j.t="b",j.v=!1;else if(!isNaN(E=Ri(P)))j.t="n",p.cellText!==!1&&(j.w=P),j.v=E;else if(!isNaN(kc(P).getDate())||k&&P.match(k)){j.z=p.dateNF||ot[14];var N=0;k&&P.match(k)&&(P=oee(P,p.dateNF,P.match(k)||[]),N=1),p.cellDates?(j.t="d",j.v=_r(P,N)):(j.t="n",j.v=Jr(_r(P,N))),p.cellText!==!1&&(j.w=Aa(j.z,j.v instanceof Date?Jr(j.v):j.v)),p.cellNF||delete j.z}else j.t="s",j.v=P;if(j.t=="z"||(p.dense?(_[w]||(_[w]=[]),_[w][C]=j):_[ht({c:C,r:w})]=j),b=h+1,A=f.charCodeAt(b),x.e.c<C&&(x.e.c=C),x.e.r<w&&(x.e.r=w),S==g)++C;else if(C=0,++w,p.sheetRows&&p.sheetRows<=w)return!0}e:for(;h<f.length;++h)switch(S=f.charCodeAt(h)){case 34:A===34&&(y=!y);break;case g:case 10:case 13:if(!y&&F())break e;break}return h-b>0&&F(),_["!ref"]=St(x),_}function s(f,d){return!(d&&d.PRN)||d.FS||f.slice(0,4)=="sep="||f.indexOf(" ")>=0||f.indexOf(",")>=0||f.indexOf(";")>=0?i(f,d):Fc(t(f,d),d)}function o(f,d){var p="",v=d.type=="string"?[0,0,0,0]:_b(f,d);switch(d.type){case"base64":p=ka(f);break;case"binary":p=f;break;case"buffer":d.codepage==65001?p=f.toString("utf8"):d.codepage&&typeof Ut<"u"?p=Ut.utils.decode(d.codepage,f):p=At&&Buffer.isBuffer(f)?f.toString("binary"):Ro(f);break;case"array":p=Uu(f);break;case"string":p=f;break;default:throw new Error("Unrecognized type "+d.type)}return v[0]==239&&v[1]==187&&v[2]==191?p=sr(p.slice(3)):d.type!="string"&&d.type!="buffer"&&d.codepage==65001?p=sr(p):d.type=="binary"&&typeof Ut<"u"&&d.codepage&&(p=Ut.utils.decode(d.codepage,Ut.utils.encode(28591,p))),p.slice(0,19)=="socialcalc:version:"?e9.to_sheet(d.type=="string"?p:sr(p),d):s(p,d)}function u(f,d){return Lo(o(f,d),d)}function l(f){for(var d=[],p=Mt(f["!ref"]),v,_=Array.isArray(f),x=p.s.r;x<=p.e.r;++x){for(var w=[],C=p.s.c;C<=p.e.c;++C){var E=ht({r:x,c:C});if(v=_?(f[x]||[])[C]:f[E],!v||v.v==null){w.push(" ");continue}for(var b=(v.w||(fs(v),v.w)||"").slice(0,10);b.length<10;)b+=" ";w.push(b+(C===0?" ":""))}d.push(w.join(""))}return d.join(`
565
+ `)}return{to_workbook:u,to_sheet:o,from_sheet:l}}();function wne(e,t){var r=t||{},n=!!r.WTF;r.WTF=!0;try{var a=J7.to_workbook(e,r);return r.WTF=n,a}catch(i){if(r.WTF=n,!i.message.match(/SYLK bad record ID/)&&n)throw i;return Dc.to_workbook(e,t)}}var el=function(){function e(H,Q,K){if(H){bn(H,H.l||0);for(var te=K.Enum||W;H.l<H.length;){var se=H.read_shift(2),le=te[se]||te[65535],ge=H.read_shift(2),ye=H.l+ge,be=le.f&&le.f(H,ge,K);if(H.l=ye,Q(be,le,se))return}}}function t(H,Q){switch(Q.type){case"base64":return r(Ta(ka(H)),Q);case"binary":return r(Ta(H),Q);case"buffer":case"array":return r(H,Q)}throw"Unsupported type "+Q.type}function r(H,Q){if(!H)return H;var K=Q||{},te=K.dense?[]:{},se="Sheet1",le="",ge=0,ye={},be=[],Be=[],J={s:{r:0,c:0},e:{r:0,c:0}},qe=K.sheetRows||0;if(H[2]==0&&(H[3]==8||H[3]==9)&&H.length>=16&&H[14]==5&&H[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(H[2]==2)K.Enum=W,e(H,function(De,ut,Ye){switch(Ye){case 0:K.vers=De,De>=4096&&(K.qpro=!0);break;case 6:J=De;break;case 204:De&&(le=De);break;case 222:le=De;break;case 15:case 51:K.qpro||(De[1].v=De[1].v.slice(1));case 13:case 14:case 16:Ye==14&&(De[2]&112)==112&&(De[2]&15)>1&&(De[2]&15)<15&&(De[1].z=K.dateNF||ot[14],K.cellDates&&(De[1].t="d",De[1].v=Up(De[1].v))),K.qpro&&De[3]>ge&&(te["!ref"]=St(J),ye[se]=te,be.push(se),te=K.dense?[]:{},J={s:{r:0,c:0},e:{r:0,c:0}},ge=De[3],se=le||"Sheet"+(ge+1),le="");var it=K.dense?(te[De[0].r]||[])[De[0].c]:te[ht(De[0])];if(it){it.t=De[1].t,it.v=De[1].v,De[1].z!=null&&(it.z=De[1].z),De[1].f!=null&&(it.f=De[1].f);break}K.dense?(te[De[0].r]||(te[De[0].r]=[]),te[De[0].r][De[0].c]=De[1]):te[ht(De[0])]=De[1];break}},K);else if(H[2]==26||H[2]==14)K.Enum=G,H[2]==14&&(K.qpro=!0,H.l=0),e(H,function(De,ut,Ye){switch(Ye){case 204:se=De;break;case 22:De[1].v=De[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(De[3]>ge&&(te["!ref"]=St(J),ye[se]=te,be.push(se),te=K.dense?[]:{},J={s:{r:0,c:0},e:{r:0,c:0}},ge=De[3],se="Sheet"+(ge+1)),qe>0&&De[0].r>=qe)break;K.dense?(te[De[0].r]||(te[De[0].r]=[]),te[De[0].r][De[0].c]=De[1]):te[ht(De[0])]=De[1],J.e.c<De[0].c&&(J.e.c=De[0].c),J.e.r<De[0].r&&(J.e.r=De[0].r);break;case 27:De[14e3]&&(Be[De[14e3][0]]=De[14e3][1]);break;case 1537:Be[De[0]]=De[1],De[0]==ge&&(se=De[1]);break}},K);else throw new Error("Unrecognized LOTUS BOF "+H[2]);if(te["!ref"]=St(J),ye[le||se]=te,be.push(le||se),!Be.length)return{SheetNames:be,Sheets:ye};for(var _e={},ze=[],We=0;We<Be.length;++We)ye[be[We]]?(ze.push(Be[We]||be[We]),_e[Be[We]]=ye[Be[We]]||ye[be[We]]):(ze.push(Be[We]),_e[Be[We]]={"!ref":"A1"});return{SheetNames:ze,Sheets:_e}}function n(H,Q){var K=Q||{};if(+K.codepage>=0&&Ya(+K.codepage),K.type=="string")throw new Error("Cannot write WK1 to JS string");var te=ia(),se=Mt(H["!ref"]),le=Array.isArray(H),ge=[];Ue(te,0,i(1030)),Ue(te,6,u(se));for(var ye=Math.min(se.e.r,8191),be=se.s.r;be<=ye;++be)for(var Be=Ir(be),J=se.s.c;J<=se.e.c;++J){be===se.s.r&&(ge[J]=br(J));var qe=ge[J]+Be,_e=le?(H[be]||[])[J]:H[qe];if(!(!_e||_e.t=="z"))if(_e.t=="n")(_e.v|0)==_e.v&&_e.v>=-32768&&_e.v<=32767?Ue(te,13,v(be,J,_e.v)):Ue(te,14,x(be,J,_e.v));else{var ze=fs(_e);Ue(te,15,d(be,J,ze.slice(0,239)))}}return Ue(te,1),te.end()}function a(H,Q){var K=Q||{};if(+K.codepage>=0&&Ya(+K.codepage),K.type=="string")throw new Error("Cannot write WK3 to JS string");var te=ia();Ue(te,0,s(H));for(var se=0,le=0;se<H.SheetNames.length;++se)(H.Sheets[H.SheetNames[se]]||{})["!ref"]&&Ue(te,27,L(H.SheetNames[se],le++));var ge=0;for(se=0;se<H.SheetNames.length;++se){var ye=H.Sheets[H.SheetNames[se]];if(!(!ye||!ye["!ref"])){for(var be=Mt(ye["!ref"]),Be=Array.isArray(ye),J=[],qe=Math.min(be.e.r,8191),_e=be.s.r;_e<=qe;++_e)for(var ze=Ir(_e),We=be.s.c;We<=be.e.c;++We){_e===be.s.r&&(J[We]=br(We));var De=J[We]+ze,ut=Be?(ye[_e]||[])[We]:ye[De];if(!(!ut||ut.t=="z"))if(ut.t=="n")Ue(te,23,F(_e,We,ge,ut.v));else{var Ye=fs(ut);Ue(te,22,S(_e,We,ge,Ye.slice(0,239)))}}++ge}}return Ue(te,1),te.end()}function i(H){var Q=Ce(2);return Q.write_shift(2,H),Q}function s(H){var Q=Ce(26);Q.write_shift(2,4096),Q.write_shift(2,4),Q.write_shift(4,0);for(var K=0,te=0,se=0,le=0;le<H.SheetNames.length;++le){var ge=H.SheetNames[le],ye=H.Sheets[ge];if(!(!ye||!ye["!ref"])){++se;var be=qn(ye["!ref"]);K<be.e.r&&(K=be.e.r),te<be.e.c&&(te=be.e.c)}}return K>8191&&(K=8191),Q.write_shift(2,K),Q.write_shift(1,se),Q.write_shift(1,te),Q.write_shift(2,0),Q.write_shift(2,0),Q.write_shift(1,1),Q.write_shift(1,2),Q.write_shift(4,0),Q.write_shift(4,0),Q}function o(H,Q,K){var te={s:{c:0,r:0},e:{c:0,r:0}};return Q==8&&K.qpro?(te.s.c=H.read_shift(1),H.l++,te.s.r=H.read_shift(2),te.e.c=H.read_shift(1),H.l++,te.e.r=H.read_shift(2),te):(te.s.c=H.read_shift(2),te.s.r=H.read_shift(2),Q==12&&K.qpro&&(H.l+=2),te.e.c=H.read_shift(2),te.e.r=H.read_shift(2),Q==12&&K.qpro&&(H.l+=2),te.s.c==65535&&(te.s.c=te.e.c=te.s.r=te.e.r=0),te)}function u(H){var Q=Ce(8);return Q.write_shift(2,H.s.c),Q.write_shift(2,H.s.r),Q.write_shift(2,H.e.c),Q.write_shift(2,H.e.r),Q}function l(H,Q,K){var te=[{c:0,r:0},{t:"n",v:0},0,0];return K.qpro&&K.vers!=20768?(te[0].c=H.read_shift(1),te[3]=H.read_shift(1),te[0].r=H.read_shift(2),H.l+=2):(te[2]=H.read_shift(1),te[0].c=H.read_shift(2),te[0].r=H.read_shift(2)),te}function f(H,Q,K){var te=H.l+Q,se=l(H,Q,K);if(se[1].t="s",K.vers==20768){H.l++;var le=H.read_shift(1);return se[1].v=H.read_shift(le,"utf8"),se}return K.qpro&&H.l++,se[1].v=H.read_shift(te-H.l,"cstr"),se}function d(H,Q,K){var te=Ce(7+K.length);te.write_shift(1,255),te.write_shift(2,Q),te.write_shift(2,H),te.write_shift(1,39);for(var se=0;se<te.length;++se){var le=K.charCodeAt(se);te.write_shift(1,le>=128?95:le)}return te.write_shift(1,0),te}function p(H,Q,K){var te=l(H,Q,K);return te[1].v=H.read_shift(2,"i"),te}function v(H,Q,K){var te=Ce(7);return te.write_shift(1,255),te.write_shift(2,Q),te.write_shift(2,H),te.write_shift(2,K,"i"),te}function _(H,Q,K){var te=l(H,Q,K);return te[1].v=H.read_shift(8,"f"),te}function x(H,Q,K){var te=Ce(13);return te.write_shift(1,255),te.write_shift(2,Q),te.write_shift(2,H),te.write_shift(8,K,"f"),te}function w(H,Q,K){var te=H.l+Q,se=l(H,Q,K);if(se[1].v=H.read_shift(8,"f"),K.qpro)H.l=te;else{var le=H.read_shift(2);h(H.slice(H.l,H.l+le),se),H.l+=le}return se}function C(H,Q,K){var te=Q&32768;return Q&=-32769,Q=(te?H:0)+(Q>=8192?Q-16384:Q),(te?"":"$")+(K?br(Q):Ir(Q))}var E={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},b=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function h(H,Q){bn(H,0);for(var K=[],te=0,se="",le="",ge="",ye="";H.l<H.length;){var be=H[H.l++];switch(be){case 0:K.push(H.read_shift(8,"f"));break;case 1:le=C(Q[0].c,H.read_shift(2),!0),se=C(Q[0].r,H.read_shift(2),!1),K.push(le+se);break;case 2:{var Be=C(Q[0].c,H.read_shift(2),!0),J=C(Q[0].r,H.read_shift(2),!1);le=C(Q[0].c,H.read_shift(2),!0),se=C(Q[0].r,H.read_shift(2),!1),K.push(Be+J+":"+le+se)}break;case 3:if(H.l<H.length){console.error("WK1 premature formula end");return}break;case 4:K.push("("+K.pop()+")");break;case 5:K.push(H.read_shift(2));break;case 6:{for(var qe="";be=H[H.l++];)qe+=String.fromCharCode(be);K.push('"'+qe.replace(/"/g,'""')+'"')}break;case 8:K.push("-"+K.pop());break;case 23:K.push("+"+K.pop());break;case 22:K.push("NOT("+K.pop()+")");break;case 20:case 21:ye=K.pop(),ge=K.pop(),K.push(["AND","OR"][be-20]+"("+ge+","+ye+")");break;default:if(be<32&&b[be])ye=K.pop(),ge=K.pop(),K.push(ge+b[be]+ye);else if(E[be]){if(te=E[be][1],te==69&&(te=H[H.l++]),te>K.length){console.error("WK1 bad formula parse 0x"+be.toString(16)+":|"+K.join("|")+"|");return}var _e=K.slice(-te);K.length-=te,K.push(E[be][0]+"("+_e.join(",")+")")}else return be<=7?console.error("WK1 invalid opcode "+be.toString(16)):be<=24?console.error("WK1 unsupported op "+be.toString(16)):be<=30?console.error("WK1 invalid opcode "+be.toString(16)):be<=115?console.error("WK1 unsupported function opcode "+be.toString(16)):console.error("WK1 unrecognized opcode "+be.toString(16))}}K.length==1?Q[1].f=""+K[0]:console.error("WK1 bad formula parse |"+K.join("|")+"|")}function g(H){var Q=[{c:0,r:0},{t:"n",v:0},0];return Q[0].r=H.read_shift(2),Q[3]=H[H.l++],Q[0].c=H[H.l++],Q}function y(H,Q){var K=g(H);return K[1].t="s",K[1].v=H.read_shift(Q-4,"cstr"),K}function S(H,Q,K,te){var se=Ce(6+te.length);se.write_shift(2,H),se.write_shift(1,K),se.write_shift(1,Q),se.write_shift(1,39);for(var le=0;le<te.length;++le){var ge=te.charCodeAt(le);se.write_shift(1,ge>=128?95:ge)}return se.write_shift(1,0),se}function A(H,Q){var K=g(H);K[1].v=H.read_shift(2);var te=K[1].v>>1;if(K[1].v&1)switch(te&7){case 0:te=(te>>3)*5e3;break;case 1:te=(te>>3)*500;break;case 2:te=(te>>3)/20;break;case 3:te=(te>>3)/200;break;case 4:te=(te>>3)/2e3;break;case 5:te=(te>>3)/2e4;break;case 6:te=(te>>3)/16;break;case 7:te=(te>>3)/64;break}return K[1].v=te,K}function k(H,Q){var K=g(H),te=H.read_shift(4),se=H.read_shift(4),le=H.read_shift(2);if(le==65535)return te===0&&se===3221225472?(K[1].t="e",K[1].v=15):te===0&&se===3489660928?(K[1].t="e",K[1].v=42):K[1].v=0,K;var ge=le&32768;return le=(le&32767)-16446,K[1].v=(1-ge*2)*(se*Math.pow(2,le+32)+te*Math.pow(2,le)),K}function F(H,Q,K,te){var se=Ce(14);if(se.write_shift(2,H),se.write_shift(1,K),se.write_shift(1,Q),te==0)return se.write_shift(4,0),se.write_shift(4,0),se.write_shift(2,65535),se;var le=0,ge=0,ye=0,be=0;return te<0&&(le=1,te=-te),ge=Math.log2(te)|0,te/=Math.pow(2,ge-31),be=te>>>0,be&2147483648||(te/=2,++ge,be=te>>>0),te-=be,be|=2147483648,be>>>=0,te*=Math.pow(2,32),ye=te>>>0,se.write_shift(4,ye),se.write_shift(4,be),ge+=16383+(le?32768:0),se.write_shift(2,ge),se}function P(H,Q){var K=k(H);return H.l+=Q-14,K}function j(H,Q){var K=g(H),te=H.read_shift(4);return K[1].v=te>>6,K}function N(H,Q){var K=g(H),te=H.read_shift(8,"f");return K[1].v=te,K}function I(H,Q){var K=N(H);return H.l+=Q-10,K}function B(H,Q){return H[H.l+Q-1]==0?H.read_shift(Q,"cstr"):""}function O(H,Q){var K=H[H.l++];K>Q-1&&(K=Q-1);for(var te="";te.length<K;)te+=String.fromCharCode(H[H.l++]);return te}function M(H,Q,K){if(!(!K.qpro||Q<21)){var te=H.read_shift(1);H.l+=17,H.l+=1,H.l+=2;var se=H.read_shift(Q-21,"cstr");return[te,se]}}function V(H,Q){for(var K={},te=H.l+Q;H.l<te;){var se=H.read_shift(2);if(se==14e3){for(K[se]=[0,""],K[se][0]=H.read_shift(2);H[H.l];)K[se][1]+=String.fromCharCode(H[H.l]),H.l++;H.l++}}return K}function L(H,Q){var K=Ce(5+H.length);K.write_shift(2,14e3),K.write_shift(2,Q);for(var te=0;te<H.length;++te){var se=H.charCodeAt(te);K[K.l++]=se>127?95:se}return K[K.l++]=0,K}var W={0:{n:"BOF",f:Gr},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:o},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:p},14:{n:"NUMBER",f:_},15:{n:"LABEL",f},16:{n:"FORMULA",f:w},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:B},222:{n:"SHEETNAMELP",f:O},65535:{n:""}},G={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:y},23:{n:"NUMBER17",f:k},24:{n:"NUMBER18",f:A},25:{n:"FORMULA19",f:P},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:V},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:j},38:{n:"??"},39:{n:"NUMBER27",f:N},40:{n:"FORMULA28",f:I},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:B},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:M},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:n,book_to_wk3:a,to_workbook:t}}();function Sne(e){var t={},r=e.match(On),n=0,a=!1;if(r)for(;n!=r.length;++n){var i=mt(r[n]);switch(i[0].replace(/\w*:/g,"")){case"<condense":break;case"<extend":break;case"<shadow":if(!i.val)break;case"<shadow>":case"<shadow/>":t.shadow=1;break;case"</shadow>":break;case"<charset":if(i.val=="1")break;t.cp=uy[parseInt(i.val,10)];break;case"<outline":if(!i.val)break;case"<outline>":case"<outline/>":t.outline=1;break;case"</outline>":break;case"<rFont":t.name=i.val;break;case"<sz":t.sz=i.val;break;case"<strike":if(!i.val)break;case"<strike>":case"<strike/>":t.strike=1;break;case"</strike>":break;case"<u":if(!i.val)break;switch(i.val){case"double":t.uval="double";break;case"singleAccounting":t.uval="single-accounting";break;case"doubleAccounting":t.uval="double-accounting";break}case"<u>":case"<u/>":t.u=1;break;case"</u>":break;case"<b":if(i.val=="0")break;case"<b>":case"<b/>":t.b=1;break;case"</b>":break;case"<i":if(i.val=="0")break;case"<i>":case"<i/>":t.i=1;break;case"</i>":break;case"<color":i.rgb&&(t.color=i.rgb.slice(2,8));break;case"<color>":case"<color/>":case"</color>":break;case"<family":t.family=i.val;break;case"<family>":case"<family/>":case"</family>":break;case"<vertAlign":t.valign=i.val;break;case"<vertAlign>":case"<vertAlign/>":case"</vertAlign>":break;case"<scheme":break;case"<scheme>":case"<scheme/>":case"</scheme>":break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":a=!0;break;case"</ext>":a=!1;break;default:if(i[0].charCodeAt(1)!==47&&!a)throw new Error("Unrecognized rich format "+i[0])}}return t}var Ene=function(){var e=md("t"),t=md("rPr");function r(i){var s=i.match(e);if(!s)return{t:"s",v:""};var o={t:"s",v:zt(s[1])},u=i.match(t);return u&&(o.s=Sne(u[1])),o}var n=/<(?:\w+:)?r>/g,a=/<\/(?:\w+:)?r>/;return function(s){return s.replace(n,"").split(a).map(r).filter(function(o){return o.v})}}(),Cne=function(){var t=/(\r\n|\n)/g;function r(a,i,s){var o=[];a.u&&o.push("text-decoration: underline;"),a.uval&&o.push("text-underline-style:"+a.uval+";"),a.sz&&o.push("font-size:"+a.sz+"pt;"),a.outline&&o.push("text-effect: outline;"),a.shadow&&o.push("text-shadow: auto;"),i.push('<span style="'+o.join("")+'">'),a.b&&(i.push("<b>"),s.push("</b>")),a.i&&(i.push("<i>"),s.push("</i>")),a.strike&&(i.push("<s>"),s.push("</s>"));var u=a.valign||"";return u=="superscript"||u=="super"?u="sup":u=="subscript"&&(u="sub"),u!=""&&(i.push("<"+u+">"),s.push("</"+u+">")),s.push("</span>"),a}function n(a){var i=[[],a.v,[]];return a.v?(a.s&&r(a.s,i[0],i[2]),i[0].join("")+i[1].replace(t,"<br/>")+i[2].join("")):""}return function(i){return i.map(n).join("")}}(),kne=/<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g,Tne=/<(?:\w+:)?r>/,Ane=/<(?:\w+:)?rPh.*?>([\s\S]*?)<\/(?:\w+:)?rPh>/g;function Yy(e,t){var r=t?t.cellHTML:!0,n={};return e?(e.match(/^\s*<(?:\w+:)?t[^>]*>/)?(n.t=zt(sr(e.slice(e.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||"")),n.r=sr(e),r&&(n.h=xy(n.t))):e.match(Tne)&&(n.r=sr(e),n.t=zt(sr((e.replace(Ane,"").match(kne)||[]).join("").replace(On,""))),r&&(n.h=Cne(Ene(n.r)))),n):{t:""}}var Fne=/<(?:\w+:)?sst([^>]*)>([\s\S]*)<\/(?:\w+:)?sst>/,One=/<(?:\w+:)?(?:si|sstItem)>/g,Pne=/<\/(?:\w+:)?(?:si|sstItem)>/;function Dne(e,t){var r=[],n="";if(!e)return r;var a=e.match(Fne);if(a){n=a[2].replace(One,"").split(Pne);for(var i=0;i!=n.length;++i){var s=Yy(n[i].trim(),t);s!=null&&(r[r.length]=s)}a=mt(a[1]),r.Count=a.count,r.Unique=a.uniqueCount}return r}var Rne=/^\s|\s$|[\t\n\r]/;function t9(e,t){if(!t.bookSST)return"";var r=[Ur];r[r.length]=$e("sst",null,{xmlns:zu[0],count:e.Count,uniqueCount:e.Unique});for(var n=0;n!=e.length;++n)if(e[n]!=null){var a=e[n],i="<si>";a.r?i+=a.r:(i+="<t",a.t||(a.t=""),a.t.match(Rne)&&(i+=' xml:space="preserve"'),i+=">"+er(a.t)+"</t>"),i+="</si>",r[r.length]=i}return r.length>2&&(r[r.length]="</sst>",r[1]=r[1].replace("/>",">")),r.join("")}function Ine(e){return[e.read_shift(4),e.read_shift(4)]}function Nne(e,t){var r=[],n=!1;return Ys(e,function(i,s,o){switch(o){case 159:r.Count=i[0],r.Unique=i[1];break;case 19:r.push(i);break;case 160:return!0;case 35:n=!0;break;case 36:n=!1;break;default:if(s.T,!n||t.WTF)throw new Error("Unexpected record 0x"+o.toString(16))}}),r}function Mne(e,t){return t||(t=Ce(8)),t.write_shift(4,e.Count),t.write_shift(4,e.Unique),t}var Lne=Gee;function Bne(e){var t=ia();Pe(t,159,Mne(e));for(var r=0;r<e.length;++r)Pe(t,19,Lne(e[r]));return Pe(t,160),t.end()}function r9(e){if(typeof Ut<"u")return Ut.utils.encode(Bu,e);for(var t=[],r=e.split(""),n=0;n<r.length;++n)t[n]=r[n].charCodeAt(0);return t}function Ks(e,t){var r={};return r.Major=e.read_shift(2),r.Minor=e.read_shift(2),t>=4&&(e.l+=t-4),r}function jne(e){var t={};return t.id=e.read_shift(0,"lpp4"),t.R=Ks(e,4),t.U=Ks(e,4),t.W=Ks(e,4),t}function $ne(e){for(var t=e.read_shift(4),r=e.l+t-4,n={},a=e.read_shift(4),i=[];a-- >0;)i.push({t:e.read_shift(4),v:e.read_shift(0,"lpp4")});if(n.name=e.read_shift(0,"lpp4"),n.comps=i,e.l!=r)throw new Error("Bad DataSpaceMapEntry: "+e.l+" != "+r);return n}function Une(e){var t=[];e.l+=4;for(var r=e.read_shift(4);r-- >0;)t.push($ne(e));return t}function zne(e){var t=[];e.l+=4;for(var r=e.read_shift(4);r-- >0;)t.push(e.read_shift(0,"lpp4"));return t}function Hne(e){var t={};return e.read_shift(4),e.l+=4,t.id=e.read_shift(0,"lpp4"),t.name=e.read_shift(0,"lpp4"),t.R=Ks(e,4),t.U=Ks(e,4),t.W=Ks(e,4),t}function Wne(e){var t=Hne(e);if(t.ename=e.read_shift(0,"8lpp4"),t.blksz=e.read_shift(4),t.cmode=e.read_shift(4),e.read_shift(4)!=4)throw new Error("Bad !Primary record");return t}function n9(e,t){var r=e.l+t,n={};n.Flags=e.read_shift(4)&63,e.l+=4,n.AlgID=e.read_shift(4);var a=!1;switch(n.AlgID){case 26126:case 26127:case 26128:a=n.Flags==36;break;case 26625:a=n.Flags==4;break;case 0:a=n.Flags==16||n.Flags==4||n.Flags==36;break;default:throw"Unrecognized encryption algorithm: "+n.AlgID}if(!a)throw new Error("Encryption Flags/AlgID mismatch");return n.AlgIDHash=e.read_shift(4),n.KeySize=e.read_shift(4),n.ProviderType=e.read_shift(4),e.l+=8,n.CSPName=e.read_shift(r-e.l>>1,"utf16le"),e.l=r,n}function a9(e,t){var r={},n=e.l+t;return e.l+=4,r.Salt=e.slice(e.l,e.l+16),e.l+=16,r.Verifier=e.slice(e.l,e.l+16),e.l+=16,e.read_shift(4),r.VerifierHash=e.slice(e.l,n),e.l=n,r}function Vne(e){var t=Ks(e);switch(t.Minor){case 2:return[t.Minor,qne(e)];case 3:return[t.Minor,Gne()];case 4:return[t.Minor,Yne(e)]}throw new Error("ECMA-376 Encrypted file unrecognized Version: "+t.Minor)}function qne(e){var t=e.read_shift(4);if((t&63)!=36)throw new Error("EncryptionInfo mismatch");var r=e.read_shift(4),n=n9(e,r),a=a9(e,e.length-e.l);return{t:"Std",h:n,v:a}}function Gne(){throw new Error("File is password-protected: ECMA-376 Extensible")}function Yne(e){var t=["saltSize","blockSize","keyBits","hashSize","cipherAlgorithm","cipherChaining","hashAlgorithm","saltValue"];e.l+=4;var r=e.read_shift(e.length-e.l,"utf8"),n={};return r.replace(On,function(i){var s=mt(i);switch(ls(s[0])){case"<?xml":break;case"<encryption":case"</encryption>":break;case"<keyData":t.forEach(function(o){n[o]=s[o]});break;case"<dataIntegrity":n.encryptedHmacKey=s.encryptedHmacKey,n.encryptedHmacValue=s.encryptedHmacValue;break;case"<keyEncryptors>":case"<keyEncryptors":n.encs=[];break;case"</keyEncryptors>":break;case"<keyEncryptor":n.uri=s.uri;break;case"</keyEncryptor>":break;case"<encryptedKey":n.encs.push(s);break;default:throw s[0]}}),n}function Xne(e,t){var r={},n=r.EncryptionVersionInfo=Ks(e,4);if(t-=4,n.Minor!=2)throw new Error("unrecognized minor version code: "+n.Minor);if(n.Major>4||n.Major<2)throw new Error("unrecognized major version code: "+n.Major);r.Flags=e.read_shift(4),t-=4;var a=e.read_shift(4);return t-=4,r.EncryptionHeader=n9(e,a),t-=a,r.EncryptionVerifier=a9(e,t),r}function Kne(e){var t={},r=t.EncryptionVersionInfo=Ks(e,4);if(r.Major!=1||r.Minor!=1)throw"unrecognized version code "+r.Major+" : "+r.Minor;return t.Salt=e.read_shift(16),t.EncryptedVerifier=e.read_shift(16),t.EncryptedVerifierHash=e.read_shift(16),t}function Xy(e){var t=0,r,n=r9(e),a=n.length+1,i,s,o,u,l;for(r=Do(a),r[0]=n.length,i=1;i!=a;++i)r[i]=n[i-1];for(i=a-1;i>=0;--i)s=r[i],o=t&16384?1:0,u=t<<1&32767,l=o|u,t=l^s;return t^52811}var i9=function(){var e=[187,255,255,186,255,255,185,128,0,190,15,0,191,15,0],t=[57840,7439,52380,33984,4364,3600,61902,12606,6258,57657,54287,34041,10252,43370,20163],r=[44796,19929,39858,10053,20106,40212,10761,31585,63170,64933,60267,50935,40399,11199,17763,35526,1453,2906,5812,11624,23248,885,1770,3540,7080,14160,28320,56640,55369,41139,20807,41614,21821,43642,17621,28485,56970,44341,19019,38038,14605,29210,60195,50791,40175,10751,21502,43004,24537,18387,36774,3949,7898,15796,31592,63184,47201,24803,49606,37805,14203,28406,56812,17824,35648,1697,3394,6788,13576,27152,43601,17539,35078,557,1114,2228,4456,30388,60776,51953,34243,7079,14158,28316,14128,28256,56512,43425,17251,34502,7597,13105,26210,52420,35241,883,1766,3532,4129,8258,16516,33032,4657,9314,18628],n=function(s){return(s/2|s*128)&255},a=function(s,o){return n(s^o)},i=function(s){for(var o=t[s.length-1],u=104,l=s.length-1;l>=0;--l)for(var f=s[l],d=0;d!=7;++d)f&64&&(o^=r[u]),f*=2,--u;return o};return function(s){for(var o=r9(s),u=i(o),l=o.length,f=Do(16),d=0;d!=16;++d)f[d]=0;var p,v,_;for((l&1)===1&&(p=u>>8,f[l]=a(e[0],p),--l,p=u&255,v=o[o.length-1],f[l]=a(v,p));l>0;)--l,p=u>>8,f[l]=a(o[l],p),--l,p=u&255,f[l]=a(o[l],p);for(l=15,_=15-o.length;_>0;)p=u>>8,f[l]=a(e[_],p),--l,--_,p=u&255,f[l]=a(o[l],p),--l,--_;return f}}(),Zne=function(e,t,r,n,a){a||(a=t),n||(n=i9(e));var i,s;for(i=0;i!=t.length;++i)s=t[i],s^=n[r],s=(s>>5|s<<3)&255,a[i]=s,++r;return[a,r,n]},Jne=function(e){var t=0,r=i9(e);return function(n){var a=Zne("",n,t,r);return t=a[1],a[0]}};function Qne(e,t,r,n){var a={key:Gr(e),verificationBytes:Gr(e)};return r.password&&(a.verifier=Xy(r.password)),n.valid=a.verificationBytes===a.verifier,n.valid&&(n.insitu=Jne(r.password)),a}function eae(e,t,r){var n=r||{};return n.Info=e.read_shift(2),e.l-=2,n.Info===1?n.Data=Kne(e):n.Data=Xne(e,t),n}function tae(e,t,r){var n={Type:r.biff>=8?e.read_shift(2):0};return n.Type?eae(e,t-2,n):Qne(e,r.biff>=8?t:t-2,r,n),n}var s9=function(){function e(a,i){switch(i.type){case"base64":return t(ka(a),i);case"binary":return t(a,i);case"buffer":return t(At&&Buffer.isBuffer(a)?a.toString("binary"):Ro(a),i);case"array":return t(Uu(a),i)}throw new Error("Unrecognized type "+i.type)}function t(a,i){var s=i||{},o=s.dense?[]:{},u=a.match(/\\trowd.*?\\row\b/g);if(!u.length)throw new Error("RTF missing table");var l={s:{c:0,r:0},e:{c:0,r:u.length-1}};return u.forEach(function(f,d){Array.isArray(o)&&(o[d]=[]);for(var p=/\\\w+\b/g,v=0,_,x=-1;_=p.exec(f);){switch(_[0]){case"\\cell":var w=f.slice(v,p.lastIndex-_[0].length);if(w[0]==" "&&(w=w.slice(1)),++x,w.length){var C={v:w,t:"s"};Array.isArray(o)?o[d][x]=C:o[ht({r:d,c:x})]=C}break}v=p.lastIndex}x>l.e.c&&(l.e.c=x)}),o["!ref"]=St(l),o}function r(a,i){return Lo(e(a,i),i)}function n(a){for(var i=["{\\rtf1\\ansi"],s=Mt(a["!ref"]),o,u=Array.isArray(a),l=s.s.r;l<=s.e.r;++l){i.push("\\trowd\\trautofit1");for(var f=s.s.c;f<=s.e.c;++f)i.push("\\cellx"+(f+1));for(i.push("\\pard\\intbl"),f=s.s.c;f<=s.e.c;++f){var d=ht({r:l,c:f});o=u?(a[l]||[])[f]:a[d],!(!o||o.v==null&&(!o.f||o.F))&&(i.push(" "+(o.w||(fs(o),o.w))),i.push("\\cell"))}i.push("\\pard\\intbl\\row")}return i.join("")+"}"}return{to_workbook:r,to_sheet:e,from_sheet:n}}();function rae(e){var t=e.slice(e[0]==="#"?1:0).slice(0,6);return[parseInt(t.slice(0,2),16),parseInt(t.slice(2,4),16),parseInt(t.slice(4,6),16)]}function Cd(e){for(var t=0,r=1;t!=3;++t)r=r*256+(e[t]>255?255:e[t]<0?0:e[t]);return r.toString(16).toUpperCase().slice(1)}function nae(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,a=Math.max(t,r,n),i=Math.min(t,r,n),s=a-i;if(s===0)return[0,0,t];var o=0,u=0,l=a+i;switch(u=s/(l>1?2-l:l),a){case t:o=((r-n)/s+6)%6;break;case r:o=(n-t)/s+2;break;case n:o=(t-r)/s+4;break}return[o/6,u,l/2]}function aae(e){var t=e[0],r=e[1],n=e[2],a=r*2*(n<.5?n:1-n),i=n-a/2,s=[i,i,i],o=6*t,u;if(r!==0)switch(o|0){case 0:case 6:u=a*o,s[0]+=a,s[1]+=u;break;case 1:u=a*(2-o),s[0]+=u,s[1]+=a;break;case 2:u=a*(o-2),s[1]+=a,s[2]+=u;break;case 3:u=a*(4-o),s[1]+=u,s[2]+=a;break;case 4:u=a*(o-4),s[2]+=a,s[0]+=u;break;case 5:u=a*(6-o),s[2]+=u,s[0]+=a;break}for(var l=0;l!=3;++l)s[l]=Math.round(s[l]*255);return s}function tm(e,t){if(t===0)return e;var r=nae(rae(e));return t<0?r[2]=r[2]*(1+t):r[2]=1-(1-r[2])*(1-t),Cd(aae(r))}var o9=6,iae=15,sae=1,Nn=o9;function kd(e){return Math.floor((e+Math.round(128/Nn)/256)*Nn)}function Td(e){return Math.floor((e-5)/Nn*100+.5)/100}function rm(e){return Math.round((e*Nn+5)/Nn*256)/256}function Ky(e){return rm(Td(kd(e)))}function Zy(e){var t=Math.abs(e-Ky(e)),r=Nn;if(t>.005)for(Nn=sae;Nn<iae;++Nn)Math.abs(e-Ky(e))<=t&&(t=Math.abs(e-Ky(e)),r=Nn);Nn=r}function jo(e){e.width?(e.wpx=kd(e.width),e.wch=Td(e.wpx),e.MDW=Nn):e.wpx?(e.wch=Td(e.wpx),e.width=rm(e.wch),e.MDW=Nn):typeof e.wch=="number"&&(e.width=rm(e.wch),e.wpx=kd(e.width),e.MDW=Nn),e.customWidth&&delete e.customWidth}var oae=96,u9=oae;function Ad(e){return e*96/u9}function Rc(e){return e*u9/96}var uae={None:"none",Solid:"solid",Gray50:"mediumGray",Gray75:"darkGray",Gray25:"lightGray",HorzStripe:"darkHorizontal",VertStripe:"darkVertical",ReverseDiagStripe:"darkDown",DiagStripe:"darkUp",DiagCross:"darkGrid",ThickDiagCross:"darkTrellis",ThinHorzStripe:"lightHorizontal",ThinVertStripe:"lightVertical",ThinReverseDiagStripe:"lightDown",ThinHorzCross:"lightGrid"};function lae(e,t,r,n){t.Borders=[];var a={},i=!1;(e[0].match(On)||[]).forEach(function(s){var o=mt(s);switch(ls(o[0])){case"<borders":case"<borders>":case"</borders>":break;case"<border":case"<border>":case"<border/>":a={},o.diagonalUp&&(a.diagonalUp=yr(o.diagonalUp)),o.diagonalDown&&(a.diagonalDown=yr(o.diagonalDown)),t.Borders.push(a);break;case"</border>":break;case"<left/>":break;case"<left":case"<left>":break;case"</left>":break;case"<right/>":break;case"<right":case"<right>":break;case"</right>":break;case"<top/>":break;case"<top":case"<top>":break;case"</top>":break;case"<bottom/>":break;case"<bottom":case"<bottom>":break;case"</bottom>":break;case"<diagonal":case"<diagonal>":case"<diagonal/>":break;case"</diagonal>":break;case"<horizontal":case"<horizontal>":case"<horizontal/>":break;case"</horizontal>":break;case"<vertical":case"<vertical>":case"<vertical/>":break;case"</vertical>":break;case"<start":case"<start>":case"<start/>":break;case"</start>":break;case"<end":case"<end>":case"<end/>":break;case"</end>":break;case"<color":case"<color>":break;case"<color/>":case"</color>":break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":i=!0;break;case"</ext>":i=!1;break;default:if(n&&n.WTF&&!i)throw new Error("unrecognized "+o[0]+" in borders")}})}function cae(e,t,r,n){t.Fills=[];var a={},i=!1;(e[0].match(On)||[]).forEach(function(s){var o=mt(s);switch(ls(o[0])){case"<fills":case"<fills>":case"</fills>":break;case"<fill>":case"<fill":case"<fill/>":a={},t.Fills.push(a);break;case"</fill>":break;case"<gradientFill>":break;case"<gradientFill":case"</gradientFill>":t.Fills.push(a),a={};break;case"<patternFill":case"<patternFill>":o.patternType&&(a.patternType=o.patternType);break;case"<patternFill/>":case"</patternFill>":break;case"<bgColor":a.bgColor||(a.bgColor={}),o.indexed&&(a.bgColor.indexed=parseInt(o.indexed,10)),o.theme&&(a.bgColor.theme=parseInt(o.theme,10)),o.tint&&(a.bgColor.tint=parseFloat(o.tint)),o.rgb&&(a.bgColor.rgb=o.rgb.slice(-6));break;case"<bgColor/>":case"</bgColor>":break;case"<fgColor":a.fgColor||(a.fgColor={}),o.theme&&(a.fgColor.theme=parseInt(o.theme,10)),o.tint&&(a.fgColor.tint=parseFloat(o.tint)),o.rgb!=null&&(a.fgColor.rgb=o.rgb.slice(-6));break;case"<fgColor/>":case"</fgColor>":break;case"<stop":case"<stop/>":break;case"</stop>":break;case"<color":case"<color/>":break;case"</color>":break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":i=!0;break;case"</ext>":i=!1;break;default:if(n&&n.WTF&&!i)throw new Error("unrecognized "+o[0]+" in fills")}})}function fae(e,t,r,n){t.Fonts=[];var a={},i=!1;(e[0].match(On)||[]).forEach(function(s){var o=mt(s);switch(ls(o[0])){case"<fonts":case"<fonts>":case"</fonts>":break;case"<font":case"<font>":break;case"</font>":case"<font/>":t.Fonts.push(a),a={};break;case"<name":o.val&&(a.name=sr(o.val));break;case"<name/>":case"</name>":break;case"<b":a.bold=o.val?yr(o.val):1;break;case"<b/>":a.bold=1;break;case"<i":a.italic=o.val?yr(o.val):1;break;case"<i/>":a.italic=1;break;case"<u":switch(o.val){case"none":a.underline=0;break;case"single":a.underline=1;break;case"double":a.underline=2;break;case"singleAccounting":a.underline=33;break;case"doubleAccounting":a.underline=34;break}break;case"<u/>":a.underline=1;break;case"<strike":a.strike=o.val?yr(o.val):1;break;case"<strike/>":a.strike=1;break;case"<outline":a.outline=o.val?yr(o.val):1;break;case"<outline/>":a.outline=1;break;case"<shadow":a.shadow=o.val?yr(o.val):1;break;case"<shadow/>":a.shadow=1;break;case"<condense":a.condense=o.val?yr(o.val):1;break;case"<condense/>":a.condense=1;break;case"<extend":a.extend=o.val?yr(o.val):1;break;case"<extend/>":a.extend=1;break;case"<sz":o.val&&(a.sz=+o.val);break;case"<sz/>":case"</sz>":break;case"<vertAlign":o.val&&(a.vertAlign=o.val);break;case"<vertAlign/>":case"</vertAlign>":break;case"<family":o.val&&(a.family=parseInt(o.val,10));break;case"<family/>":case"</family>":break;case"<scheme":o.val&&(a.scheme=o.val);break;case"<scheme/>":case"</scheme>":break;case"<charset":if(o.val=="1")break;o.codepage=uy[parseInt(o.val,10)];break;case"<color":if(a.color||(a.color={}),o.auto&&(a.color.auto=yr(o.auto)),o.rgb)a.color.rgb=o.rgb.slice(-6);else if(o.indexed){a.color.index=parseInt(o.indexed,10);var u=Xu[a.color.index];a.color.index==81&&(u=Xu[1]),u||(u=Xu[1]),a.color.rgb=u[0].toString(16)+u[1].toString(16)+u[2].toString(16)}else o.theme&&(a.color.theme=parseInt(o.theme,10),o.tint&&(a.color.tint=parseFloat(o.tint)),o.theme&&r.themeElements&&r.themeElements.clrScheme&&(a.color.rgb=tm(r.themeElements.clrScheme[a.color.theme].rgb,a.color.tint||0)));break;case"<color/>":case"</color>":break;case"<AlternateContent":i=!0;break;case"</AlternateContent>":i=!1;break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":i=!0;break;case"</ext>":i=!1;break;default:if(n&&n.WTF&&!i)throw new Error("unrecognized "+o[0]+" in fonts")}})}function dae(e,t,r){t.NumberFmt=[];for(var n=Dr(ot),a=0;a<n.length;++a)t.NumberFmt[n[a]]=ot[n[a]];var i=e[0].match(On);if(i)for(a=0;a<i.length;++a){var s=mt(i[a]);switch(ls(s[0])){case"<numFmts":case"</numFmts>":case"<numFmts/>":case"<numFmts>":break;case"<numFmt":{var o=zt(sr(s.formatCode)),u=parseInt(s.numFmtId,10);if(t.NumberFmt[u]=o,u>0){if(u>392){for(u=392;u>60&&t.NumberFmt[u]!=null;--u);t.NumberFmt[u]=o}us(o,u)}}break;case"</numFmt>":break;default:if(r.WTF)throw new Error("unrecognized "+s[0]+" in numFmts")}}}function hae(e){var t=["<numFmts>"];return[[5,8],[23,26],[41,44],[50,392]].forEach(function(r){for(var n=r[0];n<=r[1];++n)e[n]!=null&&(t[t.length]=$e("numFmt",null,{numFmtId:n,formatCode:er(e[n])}))}),t.length===1?"":(t[t.length]="</numFmts>",t[0]=$e("numFmts",null,{count:t.length-2}).replace("/>",">"),t.join(""))}var nm=["numFmtId","fillId","fontId","borderId","xfId"],am=["applyAlignment","applyBorder","applyFill","applyFont","applyNumberFormat","applyProtection","pivotButton","quotePrefix"];function pae(e,t,r){t.CellXf=[];var n,a=!1;(e[0].match(On)||[]).forEach(function(i){var s=mt(i),o=0;switch(ls(s[0])){case"<cellXfs":case"<cellXfs>":case"<cellXfs/>":case"</cellXfs>":break;case"<xf":case"<xf/>":for(n=s,delete n[0],o=0;o<nm.length;++o)n[nm[o]]&&(n[nm[o]]=parseInt(n[nm[o]],10));for(o=0;o<am.length;++o)n[am[o]]&&(n[am[o]]=yr(n[am[o]]));if(t.NumberFmt&&n.numFmtId>392){for(o=392;o>60;--o)if(t.NumberFmt[n.numFmtId]==t.NumberFmt[o]){n.numFmtId=o;break}}t.CellXf.push(n);break;case"</xf>":break;case"<alignment":case"<alignment/>":var u={};s.vertical&&(u.vertical=s.vertical),s.horizontal&&(u.horizontal=s.horizontal),s.textRotation!=null&&(u.textRotation=s.textRotation),s.indent&&(u.indent=s.indent),s.wrapText&&(u.wrapText=yr(s.wrapText)),n.alignment=u;break;case"</alignment>":break;case"<protection":break;case"</protection>":case"<protection/>":break;case"<AlternateContent":a=!0;break;case"</AlternateContent>":a=!1;break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":a=!0;break;case"</ext>":a=!1;break;default:if(r&&r.WTF&&!a)throw new Error("unrecognized "+s[0]+" in cellXfs")}})}function mae(e){var t=[];return t[t.length]=$e("cellXfs",null),e.forEach(function(r){t[t.length]=$e("xf",null,r)}),t[t.length]="</cellXfs>",t.length===2?"":(t[0]=$e("cellXfs",null,{count:t.length-2}).replace("/>",">"),t.join(""))}var gae=function(){var t=/<(?:\w+:)?numFmts([^>]*)>[\S\s]*?<\/(?:\w+:)?numFmts>/,r=/<(?:\w+:)?cellXfs([^>]*)>[\S\s]*?<\/(?:\w+:)?cellXfs>/,n=/<(?:\w+:)?fills([^>]*)>[\S\s]*?<\/(?:\w+:)?fills>/,a=/<(?:\w+:)?fonts([^>]*)>[\S\s]*?<\/(?:\w+:)?fonts>/,i=/<(?:\w+:)?borders([^>]*)>[\S\s]*?<\/(?:\w+:)?borders>/;return function(o,u,l){var f={};if(!o)return f;o=o.replace(/<!--([\s\S]*?)-->/mg,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"");var d;return(d=o.match(t))&&dae(d,f,l),(d=o.match(a))&&fae(d,f,u,l),(d=o.match(n))&&cae(d,f,u,l),(d=o.match(i))&&lae(d,f,u,l),(d=o.match(r))&&pae(d,f,l),f}}();function l9(e,t){var r=[Ur,$e("styleSheet",null,{xmlns:zu[0],"xmlns:vt":Qr.vt})],n;return e.SSF&&(n=hae(e.SSF))!=null&&(r[r.length]=n),r[r.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',r[r.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',r[r.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',r[r.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',(n=mae(t.cellXfs))&&(r[r.length]=n),r[r.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',r[r.length]='<dxfs count="0"/>',r[r.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',r.length>2&&(r[r.length]="</styleSheet>",r[1]=r[1].replace("/>",">")),r.join("")}function vae(e,t){var r=e.read_shift(2),n=Dn(e);return[r,n]}function xae(e,t,r){r||(r=Ce(6+4*t.length)),r.write_shift(2,e),cn(t,r);var n=r.length>r.l?r.slice(0,r.l):r;return r.l==null&&(r.l=r.length),n}function _ae(e,t,r){var n={};n.sz=e.read_shift(2)/20;var a=ete(e);a.fItalic&&(n.italic=1),a.fCondense&&(n.condense=1),a.fExtend&&(n.extend=1),a.fShadow&&(n.shadow=1),a.fOutline&&(n.outline=1),a.fStrikeout&&(n.strike=1);var i=e.read_shift(2);switch(i===700&&(n.bold=1),e.read_shift(2)){case 1:n.vertAlign="superscript";break;case 2:n.vertAlign="subscript";break}var s=e.read_shift(1);s!=0&&(n.underline=s);var o=e.read_shift(1);o>0&&(n.family=o);var u=e.read_shift(1);switch(u>0&&(n.charset=u),e.l++,n.color=Qee(e),e.read_shift(1)){case 1:n.scheme="major";break;case 2:n.scheme="minor";break}return n.name=Dn(e),n}function yae(e,t){t||(t=Ce(25+4*32)),t.write_shift(2,e.sz*20),tte(e,t),t.write_shift(2,e.bold?700:400);var r=0;e.vertAlign=="superscript"?r=1:e.vertAlign=="subscript"&&(r=2),t.write_shift(2,r),t.write_shift(1,e.underline||0),t.write_shift(1,e.family||0),t.write_shift(1,e.charset||0),t.write_shift(1,0),qp(e.color,t);var n=0;return n=2,t.write_shift(1,n),cn(e.name,t),t.length>t.l?t.slice(0,t.l):t}var bae=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],Jy,wae=Pn;function c9(e,t){t||(t=Ce(4*3+8*7+16*1)),Jy||(Jy=Bp(bae));var r=Jy[e.patternType];r==null&&(r=40),t.write_shift(4,r);var n=0;if(r!=40)for(qp({auto:1},t),qp({auto:1},t);n<12;++n)t.write_shift(4,0);else{for(;n<4;++n)t.write_shift(4,0);for(;n<12;++n)t.write_shift(4,0)}return t.length>t.l?t.slice(0,t.l):t}function Sae(e,t){var r=e.l+t,n=e.read_shift(2),a=e.read_shift(2);return e.l=r,{ixfe:n,numFmtId:a}}function f9(e,t,r){r||(r=Ce(16)),r.write_shift(2,t||0),r.write_shift(2,e.numFmtId||0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(1,0),r.write_shift(1,0);var n=0;return r.write_shift(1,n),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(1,0),r}function Fd(e,t){return t||(t=Ce(10)),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(4,0),t.write_shift(4,0),t}var Eae=Pn;function Cae(e,t){return t||(t=Ce(51)),t.write_shift(1,0),Fd(null,t),Fd(null,t),Fd(null,t),Fd(null,t),Fd(null,t),t.length>t.l?t.slice(0,t.l):t}function kae(e,t){return t||(t=Ce(12+4*10)),t.write_shift(4,e.xfId),t.write_shift(2,1),t.write_shift(1,0),t.write_shift(1,0),Vp(e.name||"",t),t.length>t.l?t.slice(0,t.l):t}function Tae(e,t,r){var n=Ce(2052);return n.write_shift(4,e),Vp(t,n),Vp(r,n),n.length>n.l?n.slice(0,n.l):n}function Aae(e,t,r){var n={};n.NumberFmt=[];for(var a in ot)n.NumberFmt[a]=ot[a];n.CellXf=[],n.Fonts=[];var i=[],s=!1;return Ys(e,function(u,l,f){switch(f){case 44:n.NumberFmt[u[0]]=u[1],us(u[1],u[0]);break;case 43:n.Fonts.push(u),u.color.theme!=null&&t&&t.themeElements&&t.themeElements.clrScheme&&(u.color.rgb=tm(t.themeElements.clrScheme[u.color.theme].rgb,u.color.tint||0));break;case 1025:break;case 45:break;case 46:break;case 47:i[i.length-1]==617&&n.CellXf.push(u);break;case 48:case 507:case 572:case 475:break;case 1171:case 2102:case 1130:case 512:case 2095:case 3072:break;case 35:s=!0;break;case 36:s=!1;break;case 37:i.push(f),s=!0;break;case 38:i.pop(),s=!1;break;default:if(l.T>0)i.push(f);else if(l.T<0)i.pop();else if(!s||r.WTF&&i[i.length-1]!=37)throw new Error("Unexpected record 0x"+f.toString(16))}}),n}function Fae(e,t){if(t){var r=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var a=n[0];a<=n[1];++a)t[a]!=null&&++r}),r!=0&&(Pe(e,615,Ii(r)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var a=n[0];a<=n[1];++a)t[a]!=null&&Pe(e,44,xae(a,t[a]))}),Pe(e,616))}}function Oae(e){var t=1;Pe(e,611,Ii(t)),Pe(e,43,yae({sz:12,color:{theme:1},name:"Calibri",family:2})),Pe(e,612)}function Pae(e){var t=2;Pe(e,603,Ii(t)),Pe(e,45,c9({patternType:"none"})),Pe(e,45,c9({patternType:"gray125"})),Pe(e,604)}function Dae(e){var t=1;Pe(e,613,Ii(t)),Pe(e,46,Cae()),Pe(e,614)}function Rae(e){var t=1;Pe(e,626,Ii(t)),Pe(e,47,f9({numFmtId:0},65535)),Pe(e,627)}function Iae(e,t){Pe(e,617,Ii(t.length)),t.forEach(function(r){Pe(e,47,f9(r,0))}),Pe(e,618)}function Nae(e){var t=1;Pe(e,619,Ii(t)),Pe(e,48,kae({xfId:0,name:"Normal"})),Pe(e,620)}function Mae(e){var t=0;Pe(e,505,Ii(t)),Pe(e,506)}function Lae(e){var t=0;Pe(e,508,Tae(t,"TableStyleMedium9","PivotStyleMedium4")),Pe(e,509)}function Bae(e,t){var r=ia();return Pe(r,278),Fae(r,e.SSF),Oae(r),Pae(r),Dae(r),Rae(r),Iae(r,t.cellXfs),Nae(r),Mae(r),Lae(r),Pe(r,279),r.end()}var jae=["</a:lt1>","</a:dk1>","</a:lt2>","</a:dk2>","</a:accent1>","</a:accent2>","</a:accent3>","</a:accent4>","</a:accent5>","</a:accent6>","</a:hlink>","</a:folHlink>"];function $ae(e,t,r){t.themeElements.clrScheme=[];var n={};(e[0].match(On)||[]).forEach(function(a){var i=mt(a);switch(i[0]){case"<a:clrScheme":case"</a:clrScheme>":break;case"<a:srgbClr":n.rgb=i.val;break;case"<a:sysClr":n.rgb=i.lastClr;break;case"<a:dk1>":case"</a:dk1>":case"<a:lt1>":case"</a:lt1>":case"<a:dk2>":case"</a:dk2>":case"<a:lt2>":case"</a:lt2>":case"<a:accent1>":case"</a:accent1>":case"<a:accent2>":case"</a:accent2>":case"<a:accent3>":case"</a:accent3>":case"<a:accent4>":case"</a:accent4>":case"<a:accent5>":case"</a:accent5>":case"<a:accent6>":case"</a:accent6>":case"<a:hlink>":case"</a:hlink>":case"<a:folHlink>":case"</a:folHlink>":i[0].charAt(1)==="/"?(t.themeElements.clrScheme[jae.indexOf(i[0])]=n,n={}):n.name=i[0].slice(3,i[0].length-1);break;default:if(r&&r.WTF)throw new Error("Unrecognized "+i[0]+" in clrScheme")}})}function Uae(){}function zae(){}var Hae=/<a:clrScheme([^>]*)>[\s\S]*<\/a:clrScheme>/,Wae=/<a:fontScheme([^>]*)>[\s\S]*<\/a:fontScheme>/,Vae=/<a:fmtScheme([^>]*)>[\s\S]*<\/a:fmtScheme>/;function qae(e,t,r){t.themeElements={};var n;[["clrScheme",Hae,$ae],["fontScheme",Wae,Uae],["fmtScheme",Vae,zae]].forEach(function(a){if(!(n=e.match(a[1])))throw new Error(a[0]+" not found in themeElements");a[2](n,t,r)})}var Gae=/<a:themeElements([^>]*)>[\s\S]*<\/a:themeElements>/;function d9(e,t){(!e||e.length===0)&&(e=Qy());var r,n={};if(!(r=e.match(Gae)))throw new Error("themeElements not found in theme");return qae(r[0],n,t),n.raw=e,n}function Qy(e,t){if(t&&t.themeXLSX)return t.themeXLSX;if(e&&typeof e.raw=="string")return e.raw;var r=[Ur];return r[r.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',r[r.length]="<a:themeElements>",r[r.length]='<a:clrScheme name="Office">',r[r.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',r[r.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',r[r.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',r[r.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',r[r.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',r[r.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',r[r.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',r[r.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',r[r.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',r[r.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',r[r.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',r[r.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',r[r.length]="</a:clrScheme>",r[r.length]='<a:fontScheme name="Office">',r[r.length]="<a:majorFont>",r[r.length]='<a:latin typeface="Cambria"/>',r[r.length]='<a:ea typeface=""/>',r[r.length]='<a:cs typeface=""/>',r[r.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',r[r.length]='<a:font script="Hang" typeface="맑은 고딕"/>',r[r.length]='<a:font script="Hans" typeface="宋体"/>',r[r.length]='<a:font script="Hant" typeface="新細明體"/>',r[r.length]='<a:font script="Arab" typeface="Times New Roman"/>',r[r.length]='<a:font script="Hebr" typeface="Times New Roman"/>',r[r.length]='<a:font script="Thai" typeface="Tahoma"/>',r[r.length]='<a:font script="Ethi" typeface="Nyala"/>',r[r.length]='<a:font script="Beng" typeface="Vrinda"/>',r[r.length]='<a:font script="Gujr" typeface="Shruti"/>',r[r.length]='<a:font script="Khmr" typeface="MoolBoran"/>',r[r.length]='<a:font script="Knda" typeface="Tunga"/>',r[r.length]='<a:font script="Guru" typeface="Raavi"/>',r[r.length]='<a:font script="Cans" typeface="Euphemia"/>',r[r.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',r[r.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',r[r.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',r[r.length]='<a:font script="Thaa" typeface="MV Boli"/>',r[r.length]='<a:font script="Deva" typeface="Mangal"/>',r[r.length]='<a:font script="Telu" typeface="Gautami"/>',r[r.length]='<a:font script="Taml" typeface="Latha"/>',r[r.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',r[r.length]='<a:font script="Orya" typeface="Kalinga"/>',r[r.length]='<a:font script="Mlym" typeface="Kartika"/>',r[r.length]='<a:font script="Laoo" typeface="DokChampa"/>',r[r.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',r[r.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',r[r.length]='<a:font script="Viet" typeface="Times New Roman"/>',r[r.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',r[r.length]='<a:font script="Geor" typeface="Sylfaen"/>',r[r.length]="</a:majorFont>",r[r.length]="<a:minorFont>",r[r.length]='<a:latin typeface="Calibri"/>',r[r.length]='<a:ea typeface=""/>',r[r.length]='<a:cs typeface=""/>',r[r.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',r[r.length]='<a:font script="Hang" typeface="맑은 고딕"/>',r[r.length]='<a:font script="Hans" typeface="宋体"/>',r[r.length]='<a:font script="Hant" typeface="新細明體"/>',r[r.length]='<a:font script="Arab" typeface="Arial"/>',r[r.length]='<a:font script="Hebr" typeface="Arial"/>',r[r.length]='<a:font script="Thai" typeface="Tahoma"/>',r[r.length]='<a:font script="Ethi" typeface="Nyala"/>',r[r.length]='<a:font script="Beng" typeface="Vrinda"/>',r[r.length]='<a:font script="Gujr" typeface="Shruti"/>',r[r.length]='<a:font script="Khmr" typeface="DaunPenh"/>',r[r.length]='<a:font script="Knda" typeface="Tunga"/>',r[r.length]='<a:font script="Guru" typeface="Raavi"/>',r[r.length]='<a:font script="Cans" typeface="Euphemia"/>',r[r.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',r[r.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',r[r.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',r[r.length]='<a:font script="Thaa" typeface="MV Boli"/>',r[r.length]='<a:font script="Deva" typeface="Mangal"/>',r[r.length]='<a:font script="Telu" typeface="Gautami"/>',r[r.length]='<a:font script="Taml" typeface="Latha"/>',r[r.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',r[r.length]='<a:font script="Orya" typeface="Kalinga"/>',r[r.length]='<a:font script="Mlym" typeface="Kartika"/>',r[r.length]='<a:font script="Laoo" typeface="DokChampa"/>',r[r.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',r[r.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',r[r.length]='<a:font script="Viet" typeface="Arial"/>',r[r.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',r[r.length]='<a:font script="Geor" typeface="Sylfaen"/>',r[r.length]="</a:minorFont>",r[r.length]="</a:fontScheme>",r[r.length]='<a:fmtScheme name="Office">',r[r.length]="<a:fillStyleLst>",r[r.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:lin ang="16200000" scaled="1"/>',r[r.length]="</a:gradFill>",r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:lin ang="16200000" scaled="0"/>',r[r.length]="</a:gradFill>",r[r.length]="</a:fillStyleLst>",r[r.length]="<a:lnStyleLst>",r[r.length]='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]="</a:lnStyleLst>",r[r.length]="<a:effectStyleLst>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]="</a:effectStyle>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]="</a:effectStyle>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>',r[r.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',r[r.length]="</a:effectStyle>",r[r.length]="</a:effectStyleLst>",r[r.length]="<a:bgFillStyleLst>",r[r.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',r[r.length]="</a:gradFill>",r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',r[r.length]="</a:gradFill>",r[r.length]="</a:bgFillStyleLst>",r[r.length]="</a:fmtScheme>",r[r.length]="</a:themeElements>",r[r.length]="<a:objectDefaults>",r[r.length]="<a:spDef>",r[r.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>',r[r.length]="</a:spDef>",r[r.length]="<a:lnDef>",r[r.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>',r[r.length]="</a:lnDef>",r[r.length]="</a:objectDefaults>",r[r.length]="<a:extraClrSchemeLst/>",r[r.length]="</a:theme>",r.join("")}function Yae(e,t,r){var n=e.l+t,a=e.read_shift(4);if(a!==124226){if(!r.cellStyles){e.l=n;return}var i=e.slice(e.l);e.l=n;var s;try{s=OF(i,{type:"array"})}catch{return}var o=Fa(s,"theme/theme/theme1.xml",!0);if(o)return d9(o,r)}}function Xae(e){return e.read_shift(4)}function Kae(e){var t={};switch(t.xclrType=e.read_shift(2),t.nTintShade=e.read_shift(2),t.xclrType){case 0:e.l+=4;break;case 1:t.xclrValue=Zae(e,4);break;case 2:t.xclrValue=M7(e);break;case 3:t.xclrValue=Xae(e);break;case 4:e.l+=4;break}return e.l+=8,t}function Zae(e,t){return Pn(e,t)}function Jae(e,t){return Pn(e,t)}function Qae(e){var t=e.read_shift(2),r=e.read_shift(2)-4,n=[t];switch(t){case 4:case 5:case 7:case 8:case 9:case 10:case 11:case 13:n[1]=Kae(e);break;case 6:n[1]=Jae(e,r);break;case 14:case 15:n[1]=e.read_shift(r===1?1:2);break;default:throw new Error("Unrecognized ExtProp type: "+t+" "+r)}return n}function eie(e,t){var r=e.l+t;e.l+=2;var n=e.read_shift(2);e.l+=2;for(var a=e.read_shift(2),i=[];a-- >0;)i.push(Qae(e,r-e.l));return{ixfe:n,ext:i}}function tie(e,t){t.forEach(function(r){switch(r[0]){}})}function rie(e,t){return{flags:e.read_shift(4),version:e.read_shift(4),name:Dn(e)}}function nie(e){var t=Ce(12+2*e.name.length);return t.write_shift(4,e.flags),t.write_shift(4,e.version),cn(e.name,t),t.slice(0,t.l)}function aie(e){for(var t=[],r=e.read_shift(4);r-- >0;)t.push([e.read_shift(4),e.read_shift(4)]);return t}function iie(e){var t=Ce(4+8*e.length);t.write_shift(4,e.length);for(var r=0;r<e.length;++r)t.write_shift(4,e[r][0]),t.write_shift(4,e[r][1]);return t}function sie(e,t){var r=Ce(8+2*t.length);return r.write_shift(4,e),cn(t,r),r.slice(0,r.l)}function oie(e){return e.l+=4,e.read_shift(4)!=0}function uie(e,t){var r=Ce(8);return r.write_shift(4,e),r.write_shift(4,1),r}function lie(e,t,r){var n={Types:[],Cell:[],Value:[]},a=r||{},i=[],s=!1,o=2;return Ys(e,function(u,l,f){switch(f){case 335:n.Types.push({name:u.name});break;case 51:u.forEach(function(d){o==1?n.Cell.push({type:n.Types[d[0]-1].name,index:d[1]}):o==0&&n.Value.push({type:n.Types[d[0]-1].name,index:d[1]})});break;case 337:o=u?1:0;break;case 338:o=2;break;case 35:i.push(f),s=!0;break;case 36:i.pop(),s=!1;break;default:if(!l.T){if(!s||a.WTF&&i[i.length-1]!=35)throw new Error("Unexpected record 0x"+f.toString(16))}}}),n}function cie(){var e=ia();return Pe(e,332),Pe(e,334,Ii(1)),Pe(e,335,nie({name:"XLDAPR",version:12e4,flags:3496657072})),Pe(e,336),Pe(e,339,sie(1,"XLDAPR")),Pe(e,52),Pe(e,35,Ii(514)),Pe(e,4096,Ii(0)),Pe(e,4097,Qa(1)),Pe(e,36),Pe(e,53),Pe(e,340),Pe(e,337,uie(1)),Pe(e,51,iie([[1,0]])),Pe(e,338),Pe(e,333),e.end()}function fie(e,t,r){var n={Types:[],Cell:[],Value:[]};if(!e)return n;var a=!1,i=2,s;return e.replace(On,function(o){var u=mt(o);switch(ls(u[0])){case"<?xml":break;case"<metadata":case"</metadata>":break;case"<metadataTypes":case"</metadataTypes>":break;case"<metadataType":n.Types.push({name:u.name});break;case"</metadataType>":break;case"<futureMetadata":for(var l=0;l<n.Types.length;++l)n.Types[l].name==u.name&&(s=n.Types[l]);break;case"</futureMetadata>":break;case"<bk>":break;case"</bk>":break;case"<rc":i==1?n.Cell.push({type:n.Types[u.t-1].name,index:+u.v}):i==0&&n.Value.push({type:n.Types[u.t-1].name,index:+u.v});break;case"</rc>":break;case"<cellMetadata":i=1;break;case"</cellMetadata>":i=2;break;case"<valueMetadata":i=0;break;case"</valueMetadata>":i=2;break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":a=!0;break;case"</ext>":a=!1;break;case"<rvb":if(!s)break;s.offsets||(s.offsets=[]),s.offsets.push(+u.i);break;default:if(!a&&r.WTF)throw new Error("unrecognized "+u[0]+" in metadata")}return o}),n}function h9(){var e=[Ur];return e.push(`<metadata xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xlrd="http://schemas.microsoft.com/office/spreadsheetml/2017/richdata" xmlns:xda="http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray">
566
+ <metadataTypes count="1">
567
+ <metadataType name="XLDAPR" minSupportedVersion="120000" copy="1" pasteAll="1" pasteValues="1" merge="1" splitFirst="1" rowColShift="1" clearFormats="1" clearComments="1" assign="1" coerce="1" cellMeta="1"/>
568
+ </metadataTypes>
569
+ <futureMetadata name="XLDAPR" count="1">
570
+ <bk>
571
+ <extLst>
572
+ <ext uri="{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}">
573
+ <xda:dynamicArrayProperties fDynamic="1" fCollapsed="0"/>
574
+ </ext>
575
+ </extLst>
576
+ </bk>
577
+ </futureMetadata>
578
+ <cellMetadata count="1">
579
+ <bk>
580
+ <rc t="1" v="0"/>
581
+ </bk>
582
+ </cellMetadata>
583
+ </metadata>`),e.join("")}function die(e){var t=[];if(!e)return t;var r=1;return(e.match(On)||[]).forEach(function(n){var a=mt(n);switch(a[0]){case"<?xml":break;case"<calcChain":case"<calcChain>":case"</calcChain>":break;case"<c":delete a[0],a.i?r=a.i:a.i=r,t.push(a);break}}),t}function hie(e){var t={};t.i=e.read_shift(4);var r={};r.r=e.read_shift(4),r.c=e.read_shift(4),t.r=ht(r);var n=e.read_shift(1);return n&2&&(t.l="1"),n&8&&(t.a="1"),t}function pie(e,t,r){var n=[];return Ys(e,function(i,s,o){switch(o){case 63:n.push(i);break;default:if(!s.T)throw new Error("Unexpected record 0x"+o.toString(16))}}),n}function t2e(){}function mie(e,t,r,n){if(!e)return e;var a=n||{},i=!1;Ys(e,function(o,u,l){switch(l){case 359:case 363:case 364:case 366:case 367:case 368:case 369:case 370:case 371:case 472:case 577:case 578:case 579:case 580:case 581:case 582:case 583:case 584:case 585:case 586:case 587:break;case 35:i=!0;break;case 36:i=!1;break;default:if(!u.T){if(!i||a.WTF)throw new Error("Unexpected record 0x"+l.toString(16))}}},a)}function gie(e,t){if(!e)return"??";var r=(e.match(/<c:chart [^>]*r:id="([^"]*)"/)||["",""])[1];return t["!id"][r].Target}var Ic=1024;function p9(e,t){for(var r=[21600,21600],n=["m0,0l0",r[1],r[0],r[1],r[0],"0xe"].join(","),a=[$e("xml",null,{"xmlns:v":Oa.v,"xmlns:o":Oa.o,"xmlns:x":Oa.x,"xmlns:mv":Oa.mv}).replace(/\/>/,">"),$e("o:shapelayout",$e("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),$e("v:shapetype",[$e("v:stroke",null,{joinstyle:"miter"}),$e("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:r.join(","),path:n})];Ic<e*1e3;)Ic+=1e3;return t.forEach(function(i){var s=Ar(i[0]),o={color2:"#BEFF82",type:"gradient"};o.type=="gradient"&&(o.angle="-180");var u=o.type=="gradient"?$e("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,l=$e("v:fill",u,o),f={on:"t",obscured:"t"};++Ic,a=a.concat(["<v:shape"+gd({id:"_x0000_s"+Ic,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(i[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",l,$e("v:shadow",null,f),$e("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",yn("x:Anchor",[s.c+1,0,s.r+1,0,s.c+3,20,s.r+5,20].join(",")),yn("x:AutoFill","False"),yn("x:Row",String(s.r)),yn("x:Column",String(s.c)),i[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])}),a.push("</xml>"),a.join("")}function m9(e,t,r,n){var a=Array.isArray(e),i;t.forEach(function(s){var o=Ar(s.ref);if(a?(e[o.r]||(e[o.r]=[]),i=e[o.r][o.c]):i=e[s.ref],!i){i={t:"z"},a?e[o.r][o.c]=i:e[s.ref]=i;var u=Mt(e["!ref"]||"BDWGO1000001:A1");u.s.r>o.r&&(u.s.r=o.r),u.e.r<o.r&&(u.e.r=o.r),u.s.c>o.c&&(u.s.c=o.c),u.e.c<o.c&&(u.e.c=o.c);var l=St(u);l!==e["!ref"]&&(e["!ref"]=l)}i.c||(i.c=[]);var f={a:s.author,t:s.t,r:s.r,T:r};s.h&&(f.h=s.h);for(var d=i.c.length-1;d>=0;--d){if(!r&&i.c[d].T)return;r&&!i.c[d].T&&i.c.splice(d,1)}if(r&&n){for(d=0;d<n.length;++d)if(f.a==n[d].id){f.a=n[d].name||f.a;break}}i.c.push(f)})}function vie(e,t){if(e.match(/<(?:\w+:)?comments *\/>/))return[];var r=[],n=[],a=e.match(/<(?:\w+:)?authors>([\s\S]*)<\/(?:\w+:)?authors>/);a&&a[1]&&a[1].split(/<\/\w*:?author>/).forEach(function(s){if(!(s===""||s.trim()==="")){var o=s.match(/<(?:\w+:)?author[^>]*>(.*)/);o&&r.push(o[1])}});var i=e.match(/<(?:\w+:)?commentList>([\s\S]*)<\/(?:\w+:)?commentList>/);return i&&i[1]&&i[1].split(/<\/\w*:?comment>/).forEach(function(s){if(!(s===""||s.trim()==="")){var o=s.match(/<(?:\w+:)?comment[^>]*>/);if(o){var u=mt(o[0]),l={author:u.authorId&&r[u.authorId]||"sheetjsghost",ref:u.ref,guid:u.guid},f=Ar(u.ref);if(!(t.sheetRows&&t.sheetRows<=f.r)){var d=s.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/),p=!!d&&!!d[1]&&Yy(d[1])||{r:"",t:"",h:""};l.r=p.r,p.r=="<t></t>"&&(p.t=p.h=""),l.t=(p.t||"").replace(/\r\n/g,`
584
+ `).replace(/\r/g,`
585
+ `),t.cellHTML&&(l.h=p.h),n.push(l)}}}}),n}function g9(e){var t=[Ur,$e("comments",null,{xmlns:zu[0]})],r=[];return t.push("<authors>"),e.forEach(function(n){n[1].forEach(function(a){var i=er(a.a);r.indexOf(i)==-1&&(r.push(i),t.push("<author>"+i+"</author>")),a.T&&a.ID&&r.indexOf("tc="+a.ID)==-1&&(r.push("tc="+a.ID),t.push("<author>tc="+a.ID+"</author>"))})}),r.length==0&&(r.push("SheetJ5"),t.push("<author>SheetJ5</author>")),t.push("</authors>"),t.push("<commentList>"),e.forEach(function(n){var a=0,i=[];if(n[1][0]&&n[1][0].T&&n[1][0].ID?a=r.indexOf("tc="+n[1][0].ID):n[1].forEach(function(u){u.a&&(a=r.indexOf(er(u.a))),i.push(u.t||"")}),t.push('<comment ref="'+n[0]+'" authorId="'+a+'"><text>'),i.length<=1)t.push(yn("t",er(i[0]||"")));else{for(var s=`Comment:
586
+ `+i[0]+`
587
+ `,o=1;o<i.length;++o)s+=`Reply:
588
+ `+i[o]+`
589
+ `;t.push(yn("t",er(s)))}t.push("</text></comment>")}),t.push("</commentList>"),t.length>2&&(t[t.length]="</comments>",t[1]=t[1].replace("/>",">")),t.join("")}function xie(e,t){var r=[],n=!1,a={},i=0;return e.replace(On,function(o,u){var l=mt(o);switch(ls(l[0])){case"<?xml":break;case"<ThreadedComments":break;case"</ThreadedComments>":break;case"<threadedComment":a={author:l.personId,guid:l.id,ref:l.ref,T:1};break;case"</threadedComment>":a.t!=null&&r.push(a);break;case"<text>":case"<text":i=u+o.length;break;case"</text>":a.t=e.slice(i,u).replace(/\r\n/g,`
590
+ `).replace(/\r/g,`
591
+ `);break;case"<mentions":case"<mentions>":n=!0;break;case"</mentions>":n=!1;break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":n=!0;break;case"</ext>":n=!1;break;default:if(!n&&t.WTF)throw new Error("unrecognized "+l[0]+" in threaded comments")}return o}),r}function _ie(e,t,r){var n=[Ur,$e("ThreadedComments",null,{xmlns:Qr.TCMNT}).replace(/[\/]>/,">")];return e.forEach(function(a){var i="";(a[1]||[]).forEach(function(s,o){if(!s.T){delete s.ID;return}s.a&&t.indexOf(s.a)==-1&&t.push(s.a);var u={ref:a[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+r.tcid++).slice(-12)+"}"};o==0?i=u.id:u.parentId=i,s.ID=u.id,s.a&&(u.personId="{54EE7950-7262-4200-6969-"+("000000000000"+t.indexOf(s.a)).slice(-12)+"}"),n.push($e("threadedComment",yn("text",s.t||""),u))})}),n.push("</ThreadedComments>"),n.join("")}function yie(e,t){var r=[],n=!1;return e.replace(On,function(i){var s=mt(i);switch(ls(s[0])){case"<?xml":break;case"<personList":break;case"</personList>":break;case"<person":r.push({name:s.displayname,id:s.id});break;case"</person>":break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":n=!0;break;case"</ext>":n=!1;break;default:if(!n&&t.WTF)throw new Error("unrecognized "+s[0]+" in threaded comments")}return i}),r}function bie(e){var t=[Ur,$e("personList",null,{xmlns:Qr.TCMNT,"xmlns:x":zu[0]}).replace(/[\/]>/,">")];return e.forEach(function(r,n){t.push($e("person",null,{displayName:r,id:"{54EE7950-7262-4200-6969-"+("000000000000"+n).slice(-12)+"}",userId:r,providerId:"None"}))}),t.push("</personList>"),t.join("")}function wie(e){var t={};t.iauthor=e.read_shift(4);var r=Gu(e);return t.rfx=r.s,t.ref=ht(r.s),e.l+=16,t}function Sie(e,t){return t==null&&(t=Ce(36)),t.write_shift(4,e[1].iauthor),Oc(e[0],t),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t}var Eie=Dn;function Cie(e){return cn(e.slice(0,54))}function kie(e,t){var r=[],n=[],a={},i=!1;return Ys(e,function(o,u,l){switch(l){case 632:n.push(o);break;case 635:a=o;break;case 637:a.t=o.t,a.h=o.h,a.r=o.r;break;case 636:if(a.author=n[a.iauthor],delete a.iauthor,t.sheetRows&&a.rfx&&t.sheetRows<=a.rfx.r)break;a.t||(a.t=""),delete a.rfx,r.push(a);break;case 3072:break;case 35:i=!0;break;case 36:i=!1;break;case 37:break;case 38:break;default:if(!u.T){if(!i||t.WTF)throw new Error("Unexpected record 0x"+l.toString(16))}}}),r}function Tie(e){var t=ia(),r=[];return Pe(t,628),Pe(t,630),e.forEach(function(n){n[1].forEach(function(a){r.indexOf(a.a)>-1||(r.push(a.a.slice(0,54)),Pe(t,632,Cie(a.a)))})}),Pe(t,631),Pe(t,633),e.forEach(function(n){n[1].forEach(function(a){a.iauthor=r.indexOf(a.a);var i={s:Ar(n[0]),e:Ar(n[0])};Pe(t,635,Sie([i,a])),a.t&&a.t.length>0&&Pe(t,637,Xee(a)),Pe(t,636),delete a.iauthor})}),Pe(t,634),Pe(t,629),t.end()}var Aie="application/vnd.ms-office.vbaProject";function Fie(e){var t=nt.utils.cfb_new({root:"R"});return e.FullPaths.forEach(function(r,n){if(!(r.slice(-1)==="/"||!r.match(/_VBA_PROJECT_CUR/))){var a=r.replace(/^[^\/]*/,"R").replace(/\/_VBA_PROJECT_CUR\u0000*/,"");nt.utils.cfb_add(t,a,e.FileIndex[n].content)}}),nt.write(t)}function Oie(e,t){t.FullPaths.forEach(function(r,n){if(n!=0){var a=r.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");a.slice(-1)!=="/"&&nt.utils.cfb_add(e,a,t.FileIndex[n].content)}})}var v9=["xlsb","xlsm","xlam","biff8","xla"];function Pie(){return{"!type":"dialog"}}function Die(){return{"!type":"dialog"}}function Rie(){return{"!type":"macro"}}function Iie(){return{"!type":"macro"}}var Nc=function(){var e=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,t={r:0,c:0};function r(n,a,i,s){var o=!1,u=!1;i.length==0?u=!0:i.charAt(0)=="["&&(u=!0,i=i.slice(1,-1)),s.length==0?o=!0:s.charAt(0)=="["&&(o=!0,s=s.slice(1,-1));var l=i.length>0?parseInt(i,10)|0:0,f=s.length>0?parseInt(s,10)|0:0;return o?f+=t.c:--f,u?l+=t.r:--l,a+(o?"":"$")+br(f)+(u?"":"$")+Ir(l)}return function(a,i){return t=i,a.replace(e,r)}}(),eb=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,tb=function(){return function(t,r){return t.replace(eb,function(n,a,i,s,o,u){var l=Oy(s)-(i?0:r.c),f=Fy(u)-(o?0:r.r),d=f==0?"":o?f+1:"["+f+"]",p=l==0?"":i?l+1:"["+l+"]";return a+"R"+d+"C"+p})}}();function x9(e,t){return e.replace(eb,function(r,n,a,i,s,o){return n+(a=="$"?a+i:br(Oy(i)+t.c))+(s=="$"?s+o:Ir(Fy(o)+t.r))})}function Nie(e,t,r){var n=qn(t),a=n.s,i=Ar(r),s={r:i.r-a.r,c:i.c-a.c};return x9(e,s)}function Mie(e){return e.length!=1}function _9(e){return e.replace(/_xlfn\./g,"")}function Yr(e){e.l+=1}function $o(e,t){var r=e.read_shift(2);return[r&16383,r>>14&1,r>>15&1]}function y9(e,t,r){var n=2;if(r){if(r.biff>=2&&r.biff<=5)return b9(e);r.biff==12&&(n=4)}var a=e.read_shift(n),i=e.read_shift(n),s=$o(e),o=$o(e);return{s:{r:a,c:s[0],cRel:s[1],rRel:s[2]},e:{r:i,c:o[0],cRel:o[1],rRel:o[2]}}}function b9(e){var t=$o(e),r=$o(e),n=e.read_shift(1),a=e.read_shift(1);return{s:{r:t[0],c:n,cRel:t[1],rRel:t[2]},e:{r:r[0],c:a,cRel:r[1],rRel:r[2]}}}function Lie(e,t,r){if(r.biff<8)return b9(e);var n=e.read_shift(r.biff==12?4:2),a=e.read_shift(r.biff==12?4:2),i=$o(e),s=$o(e);return{s:{r:n,c:i[0],cRel:i[1],rRel:i[2]},e:{r:a,c:s[0],cRel:s[1],rRel:s[2]}}}function w9(e,t,r){if(r&&r.biff>=2&&r.biff<=5)return Bie(e);var n=e.read_shift(r&&r.biff==12?4:2),a=$o(e);return{r:n,c:a[0],cRel:a[1],rRel:a[2]}}function Bie(e){var t=$o(e),r=e.read_shift(1);return{r:t[0],c:r,cRel:t[1],rRel:t[2]}}function jie(e){var t=e.read_shift(2),r=e.read_shift(2);return{r:t,c:r&255,fQuoted:!!(r&16384),cRel:r>>15,rRel:r>>15}}function $ie(e,t,r){var n=r&&r.biff?r.biff:8;if(n>=2&&n<=5)return Uie(e);var a=e.read_shift(n>=12?4:2),i=e.read_shift(2),s=(i&16384)>>14,o=(i&32768)>>15;if(i&=16383,o==1)for(;a>524287;)a-=1048576;if(s==1)for(;i>8191;)i=i-16384;return{r:a,c:i,cRel:s,rRel:o}}function Uie(e){var t=e.read_shift(2),r=e.read_shift(1),n=(t&32768)>>15,a=(t&16384)>>14;return t&=16383,n==1&&t>=8192&&(t=t-16384),a==1&&r>=128&&(r=r-256),{r:t,c:r,cRel:a,rRel:n}}function zie(e,t,r){var n=(e[e.l++]&96)>>5,a=y9(e,r.biff>=2&&r.biff<=5?6:8,r);return[n,a]}function Hie(e,t,r){var n=(e[e.l++]&96)>>5,a=e.read_shift(2,"i"),i=8;if(r)switch(r.biff){case 5:e.l+=12,i=6;break;case 12:i=12;break}var s=y9(e,i,r);return[n,a,s]}function Wie(e,t,r){var n=(e[e.l++]&96)>>5;return e.l+=r&&r.biff>8?12:r.biff<8?6:8,[n]}function Vie(e,t,r){var n=(e[e.l++]&96)>>5,a=e.read_shift(2),i=8;if(r)switch(r.biff){case 5:e.l+=12,i=6;break;case 12:i=12;break}return e.l+=i,[n,a]}function qie(e,t,r){var n=(e[e.l++]&96)>>5,a=Lie(e,t-1,r);return[n,a]}function Gie(e,t,r){var n=(e[e.l++]&96)>>5;return e.l+=r.biff==2?6:r.biff==12?14:7,[n]}function S9(e){var t=e[e.l+1]&1,r=1;return e.l+=4,[t,r]}function Yie(e,t,r){e.l+=2;for(var n=e.read_shift(r&&r.biff==2?1:2),a=[],i=0;i<=n;++i)a.push(e.read_shift(r&&r.biff==2?1:2));return a}function Xie(e,t,r){var n=e[e.l+1]&255?1:0;return e.l+=2,[n,e.read_shift(r&&r.biff==2?1:2)]}function Kie(e,t,r){var n=e[e.l+1]&255?1:0;return e.l+=2,[n,e.read_shift(r&&r.biff==2?1:2)]}function Zie(e){var t=e[e.l+1]&255?1:0;return e.l+=2,[t,e.read_shift(2)]}function Jie(e,t,r){var n=e[e.l+1]&255?1:0;return e.l+=r&&r.biff==2?3:4,[n]}function E9(e){var t=e.read_shift(1),r=e.read_shift(1);return[t,r]}function Qie(e){return e.read_shift(2),E9(e)}function ese(e){return e.read_shift(2),E9(e)}function tse(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var a=w9(e,0,r);return[n,a]}function rse(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var a=$ie(e,0,r);return[n,a]}function nse(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var a=e.read_shift(2);r&&r.biff==5&&(e.l+=12);var i=w9(e,0,r);return[n,a,i]}function ase(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var a=e.read_shift(r&&r.biff<=3?1:2);return[ooe[a],F9[a],n]}function ise(e,t,r){var n=e[e.l++],a=e.read_shift(1),i=r&&r.biff<=3?[n==88?-1:0,e.read_shift(1)]:sse(e);return[a,(i[0]===0?F9:soe)[i[1]]]}function sse(e){return[e[e.l+1]>>7,e.read_shift(2)&32767]}function ose(e,t,r){e.l+=r&&r.biff==2?3:4}function use(e,t,r){if(e.l++,r&&r.biff==12)return[e.read_shift(4,"i"),0];var n=e.read_shift(2),a=e.read_shift(r&&r.biff==2?1:2);return[n,a]}function lse(e){return e.l++,Xs[e.read_shift(1)]}function cse(e){return e.l++,e.read_shift(2)}function fse(e){return e.l++,e.read_shift(1)!==0}function dse(e){return e.l++,Rn(e)}function hse(e,t,r){return e.l++,Sd(e,t-1,r)}function pse(e,t){var r=[e.read_shift(1)];if(t==12)switch(r[0]){case 2:r[0]=4;break;case 4:r[0]=16;break;case 0:r[0]=1;break;case 1:r[0]=2;break}switch(r[0]){case 4:r[1]=zr(e,1)?"TRUE":"FALSE",t!=12&&(e.l+=7);break;case 37:case 16:r[1]=Xs[e[e.l]],e.l+=t==12?4:8;break;case 0:e.l+=8;break;case 1:r[1]=Rn(e);break;case 2:r[1]=Ju(e,0,{biff:t>0&&t<8?2:t});break;default:throw new Error("Bad SerAr: "+r[0])}return r}function mse(e,t,r){for(var n=e.read_shift(r.biff==12?4:2),a=[],i=0;i!=n;++i)a.push((r.biff==12?Gu:Qp)(e));return a}function gse(e,t,r){var n=0,a=0;r.biff==12?(n=e.read_shift(4),a=e.read_shift(4)):(a=1+e.read_shift(1),n=1+e.read_shift(2)),r.biff>=2&&r.biff<8&&(--n,--a==0&&(a=256));for(var i=0,s=[];i!=n&&(s[i]=[]);++i)for(var o=0;o!=a;++o)s[i][o]=pse(e,r.biff);return s}function vse(e,t,r){var n=e.read_shift(1)>>>5&3,a=!r||r.biff>=8?4:2,i=e.read_shift(a);switch(r.biff){case 2:e.l+=5;break;case 3:case 4:e.l+=8;break;case 5:e.l+=12;break}return[n,0,i]}function xse(e,t,r){if(r.biff==5)return _se(e);var n=e.read_shift(1)>>>5&3,a=e.read_shift(2),i=e.read_shift(4);return[n,a,i]}function _se(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2,"i");e.l+=8;var n=e.read_shift(2);return e.l+=12,[t,r,n]}function yse(e,t,r){var n=e.read_shift(1)>>>5&3;e.l+=r&&r.biff==2?3:4;var a=e.read_shift(r&&r.biff==2?1:2);return[n,a]}function bse(e,t,r){var n=e.read_shift(1)>>>5&3,a=e.read_shift(r&&r.biff==2?1:2);return[n,a]}function wse(e,t,r){var n=e.read_shift(1)>>>5&3;return e.l+=4,r.biff<8&&e.l--,r.biff==12&&(e.l+=2),[n]}function Sse(e,t,r){var n=(e[e.l++]&96)>>5,a=e.read_shift(2),i=4;if(r)switch(r.biff){case 5:i=15;break;case 12:i=6;break}return e.l+=i,[n,a]}var Ese=Pn,Cse=Pn,kse=Pn;function Od(e,t,r){return e.l+=2,[jie(e)]}function rb(e){return e.l+=6,[]}var Tse=Od,Ase=rb,Fse=rb,Ose=Od;function C9(e){return e.l+=2,[Gr(e),e.read_shift(2)&1]}var Pse=Od,Dse=C9,Rse=rb,Ise=Od,Nse=Od,Mse=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function Lse(e){e.l+=2;var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(4),a=e.read_shift(2),i=e.read_shift(2),s=Mse[r>>2&31];return{ixti:t,coltype:r&3,rt:s,idx:n,c:a,C:i}}function Bse(e){return e.l+=2,[e.read_shift(4)]}function jse(e,t,r){return e.l+=5,e.l+=2,e.l+=r.biff==2?1:4,["PTGSHEET"]}function $se(e,t,r){return e.l+=r.biff==2?4:5,["PTGENDSHEET"]}function Use(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[t,r]}function zse(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[t,r]}function Hse(e){return e.l+=4,[0,0]}var k9={1:{n:"PtgExp",f:use},2:{n:"PtgTbl",f:kse},3:{n:"PtgAdd",f:Yr},4:{n:"PtgSub",f:Yr},5:{n:"PtgMul",f:Yr},6:{n:"PtgDiv",f:Yr},7:{n:"PtgPower",f:Yr},8:{n:"PtgConcat",f:Yr},9:{n:"PtgLt",f:Yr},10:{n:"PtgLe",f:Yr},11:{n:"PtgEq",f:Yr},12:{n:"PtgGe",f:Yr},13:{n:"PtgGt",f:Yr},14:{n:"PtgNe",f:Yr},15:{n:"PtgIsect",f:Yr},16:{n:"PtgUnion",f:Yr},17:{n:"PtgRange",f:Yr},18:{n:"PtgUplus",f:Yr},19:{n:"PtgUminus",f:Yr},20:{n:"PtgPercent",f:Yr},21:{n:"PtgParen",f:Yr},22:{n:"PtgMissArg",f:Yr},23:{n:"PtgStr",f:hse},26:{n:"PtgSheet",f:jse},27:{n:"PtgEndSheet",f:$se},28:{n:"PtgErr",f:lse},29:{n:"PtgBool",f:fse},30:{n:"PtgInt",f:cse},31:{n:"PtgNum",f:dse},32:{n:"PtgArray",f:Gie},33:{n:"PtgFunc",f:ase},34:{n:"PtgFuncVar",f:ise},35:{n:"PtgName",f:vse},36:{n:"PtgRef",f:tse},37:{n:"PtgArea",f:zie},38:{n:"PtgMemArea",f:yse},39:{n:"PtgMemErr",f:Ese},40:{n:"PtgMemNoMem",f:Cse},41:{n:"PtgMemFunc",f:bse},42:{n:"PtgRefErr",f:wse},43:{n:"PtgAreaErr",f:Wie},44:{n:"PtgRefN",f:rse},45:{n:"PtgAreaN",f:qie},46:{n:"PtgMemAreaN",f:Use},47:{n:"PtgMemNoMemN",f:zse},57:{n:"PtgNameX",f:xse},58:{n:"PtgRef3d",f:nse},59:{n:"PtgArea3d",f:Hie},60:{n:"PtgRefErr3d",f:Sse},61:{n:"PtgAreaErr3d",f:Vie},255:{}},Wse={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},Vse={1:{n:"PtgElfLel",f:C9},2:{n:"PtgElfRw",f:Ise},3:{n:"PtgElfCol",f:Tse},6:{n:"PtgElfRwV",f:Nse},7:{n:"PtgElfColV",f:Ose},10:{n:"PtgElfRadical",f:Pse},11:{n:"PtgElfRadicalS",f:Rse},13:{n:"PtgElfColS",f:Ase},15:{n:"PtgElfColSV",f:Fse},16:{n:"PtgElfRadicalLel",f:Dse},25:{n:"PtgList",f:Lse},29:{n:"PtgSxName",f:Bse},255:{}},qse={0:{n:"PtgAttrNoop",f:Hse},1:{n:"PtgAttrSemi",f:Jie},2:{n:"PtgAttrIf",f:Kie},4:{n:"PtgAttrChoose",f:Yie},8:{n:"PtgAttrGoto",f:Xie},16:{n:"PtgAttrSum",f:ose},32:{n:"PtgAttrBaxcel",f:S9},33:{n:"PtgAttrBaxcel",f:S9},64:{n:"PtgAttrSpace",f:Qie},65:{n:"PtgAttrSpaceSemi",f:ese},128:{n:"PtgAttrIfError",f:Zie},255:{}};function Pd(e,t,r,n){if(n.biff<8)return Pn(e,t);for(var a=e.l+t,i=[],s=0;s!==r.length;++s)switch(r[s][0]){case"PtgArray":r[s][1]=gse(e,0,n),i.push(r[s][1]);break;case"PtgMemArea":r[s][2]=mse(e,r[s][1],n),i.push(r[s][2]);break;case"PtgExp":n&&n.biff==12&&(r[s][1][1]=e.read_shift(4),i.push(r[s][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+r[s][0]}return t=a-e.l,t!==0&&i.push(Pn(e,t)),i}function Dd(e,t,r){for(var n=e.l+t,a,i,s=[];n!=e.l;)t=n-e.l,i=e[e.l],a=k9[i]||k9[Wse[i]],(i===24||i===25)&&(a=(i===24?Vse:qse)[e[e.l+1]]),!a||!a.f?Pn(e,t):s.push([a.n,a.f(e,t,r)]);return s}function Gse(e){for(var t=[],r=0;r<e.length;++r){for(var n=e[r],a=[],i=0;i<n.length;++i){var s=n[i];if(s)switch(s[0]){case 2:a.push('"'+s[1].replace(/"/g,'""')+'"');break;default:a.push(s[1])}else a.push("")}t.push(a.join(","))}return t.join(";")}var Yse={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function Xse(e,t){if(!e&&!(t&&t.biff<=5&&t.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(e)?"'"+e+"'":e}function T9(e,t,r){if(!e)return"SH33TJSERR0";if(r.biff>8&&(!e.XTI||!e.XTI[t]))return e.SheetNames[t];if(!e.XTI)return"SH33TJSERR6";var n=e.XTI[t];if(r.biff<8)return t>1e4&&(t-=65536),t<0&&(t=-t),t==0?"":e.XTI[t-1];if(!n)return"SH33TJSERR1";var a="";if(r.biff>8)switch(e[n[0]][0]){case 357:return a=n[1]==-1?"#REF":e.SheetNames[n[1]],n[1]==n[2]?a:a+":"+e.SheetNames[n[2]];case 358:return r.SID!=null?e.SheetNames[r.SID]:"SH33TJSSAME"+e[n[0]][0];case 355:default:return"SH33TJSSRC"+e[n[0]][0]}switch(e[n[0]][0][0]){case 1025:return a=n[1]==-1?"#REF":e.SheetNames[n[1]]||"SH33TJSERR3",n[1]==n[2]?a:a+":"+e.SheetNames[n[2]];case 14849:return e[n[0]].slice(1).map(function(i){return i.Name}).join(";;");default:return e[n[0]][0][3]?(a=n[1]==-1?"#REF":e[n[0]][0][3][n[1]]||"SH33TJSERR4",n[1]==n[2]?a:a+":"+e[n[0]][0][3][n[2]]):"SH33TJSERR2"}}function A9(e,t,r){var n=T9(e,t,r);return n=="#REF"?n:Xse(n,r)}function Mn(e,t,r,n,a){var i=a&&a.biff||8,s={s:{c:0,r:0}},o=[],u,l,f,d=0,p=0,v,_="";if(!e[0]||!e[0][0])return"";for(var x=-1,w="",C=0,E=e[0].length;C<E;++C){var b=e[0][C];switch(b[0]){case"PtgUminus":o.push("-"+o.pop());break;case"PtgUplus":o.push("+"+o.pop());break;case"PtgPercent":o.push(o.pop()+"%");break;case"PtgAdd":case"PtgConcat":case"PtgDiv":case"PtgEq":case"PtgGe":case"PtgGt":case"PtgLe":case"PtgLt":case"PtgMul":case"PtgNe":case"PtgPower":case"PtgSub":if(u=o.pop(),l=o.pop(),x>=0){switch(e[0][x][1][0]){case 0:w=Rr(" ",e[0][x][1][1]);break;case 1:w=Rr("\r",e[0][x][1][1]);break;default:if(w="",a.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][x][1][0])}l=l+w,x=-1}o.push(l+Yse[b[0]]+u);break;case"PtgIsect":u=o.pop(),l=o.pop(),o.push(l+" "+u);break;case"PtgUnion":u=o.pop(),l=o.pop(),o.push(l+","+u);break;case"PtgRange":u=o.pop(),l=o.pop(),o.push(l+":"+u);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":f=_d(b[1][1],s,a),o.push(yd(f,i));break;case"PtgRefN":f=r?_d(b[1][1],r,a):b[1][1],o.push(yd(f,i));break;case"PtgRef3d":d=b[1][1],f=_d(b[1][2],s,a),_=A9(n,d,a),o.push(_+"!"+yd(f,i));break;case"PtgFunc":case"PtgFuncVar":var h=b[1][0],g=b[1][1];h||(h=0),h&=127;var y=h==0?[]:o.slice(-h);o.length-=h,g==="User"&&(g=y.shift()),o.push(g+"("+y.join(",")+")");break;case"PtgBool":o.push(b[1]?"TRUE":"FALSE");break;case"PtgInt":o.push(b[1]);break;case"PtgNum":o.push(String(b[1]));break;case"PtgStr":o.push('"'+b[1].replace(/"/g,'""')+'"');break;case"PtgErr":o.push(b[1]);break;case"PtgAreaN":v=t7(b[1][1],r?{s:r}:s,a),o.push(Ay(v,a));break;case"PtgArea":v=t7(b[1][1],s,a),o.push(Ay(v,a));break;case"PtgArea3d":d=b[1][1],v=b[1][2],_=A9(n,d,a),o.push(_+"!"+Ay(v,a));break;case"PtgAttrSum":o.push("SUM("+o.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":p=b[1][2];var S=(n.names||[])[p-1]||(n[0]||[])[p],A=S?S.Name:"SH33TJSNAME"+String(p);A&&A.slice(0,6)=="_xlfn."&&!a.xlfn&&(A=A.slice(6)),o.push(A);break;case"PtgNameX":var k=b[1][1];p=b[1][2];var F;if(a.biff<=5)k<0&&(k=-k),n[k]&&(F=n[k][p]);else{var P="";if(((n[k]||[])[0]||[])[0]==14849||(((n[k]||[])[0]||[])[0]==1025?n[k][p]&&n[k][p].itab>0&&(P=n.SheetNames[n[k][p].itab-1]+"!"):P=n.SheetNames[p-1]+"!"),n[k]&&n[k][p])P+=n[k][p].Name;else if(n[0]&&n[0][p])P+=n[0][p].Name;else{var j=(T9(n,k,a)||"").split(";;");j[p-1]?P=j[p-1]:P+="SH33TJSERRX"}o.push(P);break}F||(F={Name:"SH33TJSERRY"}),o.push(F.Name);break;case"PtgParen":var N="(",I=")";if(x>=0){switch(w="",e[0][x][1][0]){case 2:N=Rr(" ",e[0][x][1][1])+N;break;case 3:N=Rr("\r",e[0][x][1][1])+N;break;case 4:I=Rr(" ",e[0][x][1][1])+I;break;case 5:I=Rr("\r",e[0][x][1][1])+I;break;default:if(a.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][x][1][0])}x=-1}o.push(N+o.pop()+I);break;case"PtgRefErr":o.push("#REF!");break;case"PtgRefErr3d":o.push("#REF!");break;case"PtgExp":f={c:b[1][1],r:b[1][0]};var B={c:r.c,r:r.r};if(n.sharedf[ht(f)]){var O=n.sharedf[ht(f)];o.push(Mn(O,s,B,n,a))}else{var M=!1;for(u=0;u!=n.arrayf.length;++u)if(l=n.arrayf[u],!(f.c<l[0].s.c||f.c>l[0].e.c)&&!(f.r<l[0].s.r||f.r>l[0].e.r)){o.push(Mn(l[1],s,B,n,a)),M=!0;break}M||o.push(b[1])}break;case"PtgArray":o.push("{"+Gse(b[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":x=C;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":o.push("");break;case"PtgAreaErr":o.push("#REF!");break;case"PtgAreaErr3d":o.push("#REF!");break;case"PtgList":o.push("Table"+b[1].idx+"[#"+b[1].rt+"]");break;case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":break;case"PtgMemFunc":break;case"PtgMemNoMem":break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");case"PtgSxName":throw new Error("Unrecognized Formula Token: "+String(b));default:throw new Error("Unrecognized Formula Token: "+String(b))}var V=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(a.biff!=3&&x>=0&&V.indexOf(e[0][C][0])==-1){b=e[0][x];var L=!0;switch(b[1][0]){case 4:L=!1;case 0:w=Rr(" ",b[1][1]);break;case 5:L=!1;case 1:w=Rr("\r",b[1][1]);break;default:if(w="",a.WTF)throw new Error("Unexpected PtgAttrSpaceType "+b[1][0])}o.push((L?w:"")+o.pop()+(L?"":w)),x=-1}}if(o.length>1&&a.WTF)throw new Error("bad formula stack");return o[0]}function Kse(e,t,r){var n=e.l+t,a=r.biff==2?1:2,i,s=e.read_shift(a);if(s==65535)return[[],Pn(e,t-2)];var o=Dd(e,s,r);return t!==s+a&&(i=Pd(e,t-s-a,o,r)),e.l=n,[o,i]}function Zse(e,t,r){var n=e.l+t,a=r.biff==2?1:2,i,s=e.read_shift(a);if(s==65535)return[[],Pn(e,t-2)];var o=Dd(e,s,r);return t!==s+a&&(i=Pd(e,t-s-a,o,r)),e.l=n,[o,i]}function Jse(e,t,r,n){var a=e.l+t,i=Dd(e,n,r),s;return a!==e.l&&(s=Pd(e,a-e.l,i,r)),[i,s]}function Qse(e,t,r){var n=e.l+t,a,i=e.read_shift(2),s=Dd(e,i,r);return i==65535?[[],Pn(e,t-2)]:(t!==i+2&&(a=Pd(e,n-i-2,s,r)),[s,a])}function eoe(e){var t;if(Gs(e,e.l+6)!==65535)return[Rn(e),"n"];switch(e[e.l]){case 0:return e.l+=8,["String","s"];case 1:return t=e[e.l+2]===1,e.l+=8,[t,"b"];case 2:return t=e[e.l+2],e.l+=8,[t,"e"];case 3:return e.l+=8,["","s"]}return[]}function toe(e){if(e==null){var t=Ce(8);return t.write_shift(1,3),t.write_shift(1,0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,65535),t}else if(typeof e=="number")return Yu(e);return Yu(0)}function nb(e,t,r){var n=e.l+t,a=ds(e);r.biff==2&&++e.l;var i=eoe(e),s=e.read_shift(1);r.biff!=2&&(e.read_shift(1),r.biff>=5&&e.read_shift(4));var o=Zse(e,n-e.l,r);return{cell:a,val:i[0],formula:o,shared:s>>3&1,tt:i[1]}}function roe(e,t,r,n,a){var i=Qu(t,r,a),s=toe(e.v),o=Ce(6),u=33;o.write_shift(2,u),o.write_shift(4,0);for(var l=Ce(e.bf.length),f=0;f<e.bf.length;++f)l[f]=e.bf[f];var d=un([i,s,o,l]);return d}function im(e,t,r){var n=e.read_shift(4),a=Dd(e,n,r),i=e.read_shift(4),s=i>0?Pd(e,i,a,r):null;return[a,s]}var noe=im,sm=im,aoe=im,ioe=im,soe={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},F9={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},ooe={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function O9(e){return e.slice(0,3)=="of:"&&(e=e.slice(3)),e.charCodeAt(0)==61&&(e=e.slice(1),e.charCodeAt(0)==61&&(e=e.slice(1))),e=e.replace(/COM\.MICROSOFT\./g,""),e=e.replace(/\[((?:\.[A-Z]+[0-9]+)(?::\.[A-Z]+[0-9]+)?)\]/g,function(t,r){return r.replace(/\./g,"")}),e=e.replace(/\[.(#[A-Z]*[?!])\]/g,"$1"),e.replace(/[;~]/g,",").replace(/\|/g,";")}function uoe(e){var t="of:="+e.replace(eb,"$1[.$2$3$4$5]").replace(/\]:\[/g,":");return t.replace(/;/g,"|").replace(/,/g,";")}function ab(e){var t=e.split(":"),r=t[0].split(".")[0];return[r,t[0].split(".")[1]+(t.length>1?":"+(t[1].split(".")[1]||t[1].split(".")[0]):"")]}function loe(e){return e.replace(/\./,"!")}var Rd={},Mc={},Id=typeof Map<"u";function ib(e,t,r){var n=0,a=e.length;if(r){if(Id?r.has(t):Object.prototype.hasOwnProperty.call(r,t)){for(var i=Id?r.get(t):r[t];n<i.length;++n)if(e[i[n]].t===t)return e.Count++,i[n]}}else for(;n<a;++n)if(e[n].t===t)return e.Count++,n;return e[a]={t},e.Count++,e.Unique++,r&&(Id?(r.has(t)||r.set(t,[]),r.get(t).push(a)):(Object.prototype.hasOwnProperty.call(r,t)||(r[t]=[]),r[t].push(a))),a}function om(e,t){var r={min:e+1,max:e+1},n=-1;return t.MDW&&(Nn=t.MDW),t.width!=null?r.customWidth=1:t.wpx!=null?n=Td(t.wpx):t.wch!=null&&(n=t.wch),n>-1?(r.width=rm(n),r.customWidth=1):t.width!=null&&(r.width=t.width),t.hidden&&(r.hidden=!0),t.level!=null&&(r.outlineLevel=r.level=t.level),r}function tl(e,t){if(e){var r=[.7,.7,.75,.75,.3,.3];t=="xlml"&&(r=[1,1,1,1,.5,.5]),e.left==null&&(e.left=r[0]),e.right==null&&(e.right=r[1]),e.top==null&&(e.top=r[2]),e.bottom==null&&(e.bottom=r[3]),e.header==null&&(e.header=r[4]),e.footer==null&&(e.footer=r[5])}}function Uo(e,t,r){var n=r.revssf[t.z!=null?t.z:"General"],a=60,i=e.length;if(n==null&&r.ssf){for(;a<392;++a)if(r.ssf[a]==null){us(t.z,a),r.ssf[a]=t.z,r.revssf[t.z]=n=a;break}}for(a=0;a!=i;++a)if(e[a].numFmtId===n)return a;return e[i]={numFmtId:n,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},i}function P9(e,t,r,n,a,i){try{n.cellNF&&(e.z=ot[t])}catch(o){if(n.WTF)throw o}if(!(e.t==="z"&&!n.cellStyles)){if(e.t==="d"&&typeof e.v=="string"&&(e.v=_r(e.v)),(!n||n.cellText!==!1)&&e.t!=="z")try{if(ot[t]==null&&us(iee[t]||"General",t),e.t==="e")e.w=e.w||Xs[e.v];else if(t===0)if(e.t==="n")(e.v|0)===e.v?e.w=e.v.toString(10):e.w=fd(e.v);else if(e.t==="d"){var s=Jr(e.v);(s|0)===s?e.w=s.toString(10):e.w=fd(s)}else{if(e.v===void 0)return"";e.w=ju(e.v,Mc)}else e.t==="d"?e.w=Aa(t,Jr(e.v),Mc):e.w=Aa(t,e.v,Mc)}catch(o){if(n.WTF)throw o}if(n.cellStyles&&r!=null)try{e.s=i.Fills[r],e.s.fgColor&&e.s.fgColor.theme&&!e.s.fgColor.rgb&&(e.s.fgColor.rgb=tm(a.themeElements.clrScheme[e.s.fgColor.theme].rgb,e.s.fgColor.tint||0),n.WTF&&(e.s.fgColor.raw_rgb=a.themeElements.clrScheme[e.s.fgColor.theme].rgb)),e.s.bgColor&&e.s.bgColor.theme&&(e.s.bgColor.rgb=tm(a.themeElements.clrScheme[e.s.bgColor.theme].rgb,e.s.bgColor.tint||0),n.WTF&&(e.s.bgColor.raw_rgb=a.themeElements.clrScheme[e.s.bgColor.theme].rgb))}catch(o){if(n.WTF&&i.Fills)throw o}}}function coe(e,t,r){if(e&&e["!ref"]){var n=Mt(e["!ref"]);if(n.e.c<n.s.c||n.e.r<n.s.r)throw new Error("Bad range ("+r+"): "+e["!ref"])}}function foe(e,t){var r=Mt(t);r.s.r<=r.e.r&&r.s.c<=r.e.c&&r.s.r>=0&&r.s.c>=0&&(e["!ref"]=St(r))}var doe=/<(?:\w:)?mergeCell ref="[A-Z0-9:]+"\s*[\/]?>/g,hoe=/<(?:\w+:)?sheetData[^>]*>([\s\S]*)<\/(?:\w+:)?sheetData>/,poe=/<(?:\w:)?hyperlink [^>]*>/mg,moe=/"(\w*:\w*)"/,goe=/<(?:\w:)?col\b[^>]*[\/]?>/g,voe=/<(?:\w:)?autoFilter[^>]*([\/]|>([\s\S]*)<\/(?:\w:)?autoFilter)>/g,xoe=/<(?:\w:)?pageMargins[^>]*\/>/g,D9=/<(?:\w:)?sheetPr\b(?:[^>a-z][^>]*)?\/>/,_oe=/<(?:\w:)?sheetPr[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetPr)>/,yoe=/<(?:\w:)?sheetViews[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetViews)>/;function boe(e,t,r,n,a,i,s){if(!e)return e;n||(n={"!id":{}});var o=t.dense?[]:{},u={s:{r:2e6,c:2e6},e:{r:0,c:0}},l="",f="",d=e.match(hoe);d?(l=e.slice(0,d.index),f=e.slice(d.index+d[0].length)):l=f=e;var p=l.match(D9);p?sb(p[0],o,a,r):(p=l.match(_oe))&&Soe(p[0],p[1]||"",o,a,r);var v=(l.match(/<(?:\w*:)?dimension/)||{index:-1}).index;if(v>0){var _=l.slice(v,v+50).match(moe);_&&foe(o,_[1])}var x=l.match(yoe);x&&x[1]&&Moe(x[1],a);var w=[];if(t.cellStyles){var C=l.match(goe);C&&Poe(w,C)}d&&joe(d[1],o,t,u,i,s);var E=f.match(voe);E&&(o["!autofilter"]=Roe(E[0]));var b=[],h=f.match(doe);if(h)for(v=0;v!=h.length;++v)b[v]=Mt(h[v].slice(h[v].indexOf('"')+1));var g=f.match(poe);g&&Aoe(o,g,n);var y=f.match(xoe);if(y&&(o["!margins"]=Foe(mt(y[0]))),!o["!ref"]&&u.e.c>=u.s.c&&u.e.r>=u.s.r&&(o["!ref"]=St(u)),t.sheetRows>0&&o["!ref"]){var S=Mt(o["!ref"]);t.sheetRows<=+S.e.r&&(S.e.r=t.sheetRows-1,S.e.r>u.e.r&&(S.e.r=u.e.r),S.e.r<S.s.r&&(S.s.r=S.e.r),S.e.c>u.e.c&&(S.e.c=u.e.c),S.e.c<S.s.c&&(S.s.c=S.e.c),o["!fullref"]=o["!ref"],o["!ref"]=St(S))}return w.length>0&&(o["!cols"]=w),b.length>0&&(o["!merges"]=b),o}function woe(e){if(e.length===0)return"";for(var t='<mergeCells count="'+e.length+'">',r=0;r!=e.length;++r)t+='<mergeCell ref="'+St(e[r])+'"/>';return t+"</mergeCells>"}function sb(e,t,r,n){var a=mt(e);r.Sheets[n]||(r.Sheets[n]={}),a.codeName&&(r.Sheets[n].CodeName=zt(sr(a.codeName)))}function Soe(e,t,r,n,a){sb(e.slice(0,e.indexOf(">")),r,n,a)}function Eoe(e,t,r,n,a){var i=!1,s={},o=null;if(n.bookType!=="xlsx"&&t.vbaraw){var u=t.SheetNames[r];try{t.Workbook&&(u=t.Workbook.Sheets[r].CodeName||u)}catch{}i=!0,s.codeName=cs(er(u))}if(e&&e["!outline"]){var l={summaryBelow:1,summaryRight:1};e["!outline"].above&&(l.summaryBelow=0),e["!outline"].left&&(l.summaryRight=0),o=(o||"")+$e("outlinePr",null,l)}!i&&!o||(a[a.length]=$e("sheetPr",o,s))}var Coe=["objects","scenarios","selectLockedCells","selectUnlockedCells"],koe=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function Toe(e){var t={sheet:1};return Coe.forEach(function(r){e[r]!=null&&e[r]&&(t[r]="1")}),koe.forEach(function(r){e[r]!=null&&!e[r]&&(t[r]="0")}),e.password&&(t.password=Xy(e.password).toString(16).toUpperCase()),$e("sheetProtection",null,t)}function Aoe(e,t,r){for(var n=Array.isArray(e),a=0;a!=t.length;++a){var i=mt(sr(t[a]),!0);if(!i.ref)return;var s=((r||{})["!id"]||[])[i.id];s?(i.Target=s.Target,i.location&&(i.Target+="#"+zt(i.location))):(i.Target="#"+zt(i.location),s={Target:i.Target,TargetMode:"Internal"}),i.Rel=s,i.tooltip&&(i.Tooltip=i.tooltip,delete i.tooltip);for(var o=Mt(i.ref),u=o.s.r;u<=o.e.r;++u)for(var l=o.s.c;l<=o.e.c;++l){var f=ht({c:l,r:u});n?(e[u]||(e[u]=[]),e[u][l]||(e[u][l]={t:"z",v:void 0}),e[u][l].l=i):(e[f]||(e[f]={t:"z",v:void 0}),e[f].l=i)}}}function Foe(e){var t={};return["left","right","top","bottom","header","footer"].forEach(function(r){e[r]&&(t[r]=parseFloat(e[r]))}),t}function Ooe(e){return tl(e),$e("pageMargins",null,e)}function Poe(e,t){for(var r=!1,n=0;n!=t.length;++n){var a=mt(t[n],!0);a.hidden&&(a.hidden=yr(a.hidden));var i=parseInt(a.min,10)-1,s=parseInt(a.max,10)-1;for(a.outlineLevel&&(a.level=+a.outlineLevel||0),delete a.min,delete a.max,a.width=+a.width,!r&&a.width&&(r=!0,Zy(a.width)),jo(a);i<=s;)e[i++]=ur(a)}}function Doe(e,t){for(var r=["<cols>"],n,a=0;a!=t.length;++a)(n=t[a])&&(r[r.length]=$e("col",null,om(a,n)));return r[r.length]="</cols>",r.join("")}function Roe(e){var t={ref:(e.match(/ref="([^"]*)"/)||[])[1]};return t}function Ioe(e,t,r,n){var a=typeof e.ref=="string"?e.ref:St(e.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var i=r.Workbook.Names,s=qn(a);s.s.r==s.e.r&&(s.e.r=qn(t["!ref"]).e.r,a=St(s));for(var o=0;o<i.length;++o){var u=i[o];if(u.Name=="_xlnm._FilterDatabase"&&u.Sheet==n){u.Ref="'"+r.SheetNames[n]+"'!"+a;break}}return o==i.length&&i.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+r.SheetNames[n]+"'!"+a}),$e("autoFilter",null,{ref:a})}var Noe=/<(?:\w:)?sheetView(?:[^>a-z][^>]*)?\/?>/;function Moe(e,t){t.Views||(t.Views=[{}]),(e.match(Noe)||[]).forEach(function(r,n){var a=mt(r);t.Views[n]||(t.Views[n]={}),+a.zoomScale&&(t.Views[n].zoom=+a.zoomScale),yr(a.rightToLeft)&&(t.Views[n].RTL=!0)})}function Loe(e,t,r,n){var a={workbookViewId:"0"};return(((n||{}).Workbook||{}).Views||[])[0]&&(a.rightToLeft=n.Workbook.Views[0].RTL?"1":"0"),$e("sheetViews",$e("sheetView",null,a),{})}function Boe(e,t,r,n){if(e.c&&r["!comments"].push([t,e.c]),e.v===void 0&&typeof e.f!="string"||e.t==="z"&&!e.f)return"";var a="",i=e.t,s=e.v;if(e.t!=="z")switch(e.t){case"b":a=e.v?"1":"0";break;case"n":a=""+e.v;break;case"e":a=Xs[e.v];break;case"d":n&&n.cellDates?a=_r(e.v,-1).toISOString():(e=ur(e),e.t="n",a=""+(e.v=Jr(_r(e.v)))),typeof e.z>"u"&&(e.z=ot[14]);break;default:a=e.v;break}var o=yn("v",er(a)),u={r:t},l=Uo(n.cellXfs,e,n);switch(l!==0&&(u.s=l),e.t){case"n":break;case"d":u.t="d";break;case"b":u.t="b";break;case"e":u.t="e";break;case"z":break;default:if(e.v==null){delete e.t;break}if(e.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(n&&n.bookSST){o=yn("v",""+ib(n.Strings,e.v,n.revStrings)),u.t="s";break}u.t="str";break}if(e.t!=i&&(e.t=i,e.v=s),typeof e.f=="string"&&e.f){var f=e.F&&e.F.slice(0,t.length)==t?{t:"array",ref:e.F}:null;o=$e("f",er(e.f),f)+(e.v!=null?o:"")}return e.l&&r["!links"].push([t,e.l]),e.D&&(u.cm=1),$e("c",o,u)}var joe=function(){var e=/<(?:\w+:)?c[ \/>]/,t=/<\/(?:\w+:)?row>/,r=/r=["']([^"']*)["']/,n=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/,a=/ref=["']([^"']*)["']/,i=md("v"),s=md("f");return function(u,l,f,d,p,v){for(var _=0,x="",w=[],C=[],E=0,b=0,h=0,g="",y,S,A=0,k=0,F,P,j=0,N=0,I=Array.isArray(v.CellXf),B,O=[],M=[],V=Array.isArray(l),L=[],W={},G=!1,H=!!f.sheetStubs,Q=u.split(t),K=0,te=Q.length;K!=te;++K){x=Q[K].trim();var se=x.length;if(se!==0){var le=0;e:for(_=0;_<se;++_)switch(x[_]){case">":if(x[_-1]!="/"){++_;break e}if(f&&f.cellStyles){if(S=mt(x.slice(le,_),!0),A=S.r!=null?parseInt(S.r,10):A+1,k=-1,f.sheetRows&&f.sheetRows<A)continue;W={},G=!1,S.ht&&(G=!0,W.hpt=parseFloat(S.ht),W.hpx=Rc(W.hpt)),S.hidden=="1"&&(G=!0,W.hidden=!0),S.outlineLevel!=null&&(G=!0,W.level=+S.outlineLevel),G&&(L[A-1]=W)}break;case"<":le=_;break}if(le>=_)break;if(S=mt(x.slice(le,_),!0),A=S.r!=null?parseInt(S.r,10):A+1,k=-1,!(f.sheetRows&&f.sheetRows<A)){d.s.r>A-1&&(d.s.r=A-1),d.e.r<A-1&&(d.e.r=A-1),f&&f.cellStyles&&(W={},G=!1,S.ht&&(G=!0,W.hpt=parseFloat(S.ht),W.hpx=Rc(W.hpt)),S.hidden=="1"&&(G=!0,W.hidden=!0),S.outlineLevel!=null&&(G=!0,W.level=+S.outlineLevel),G&&(L[A-1]=W)),w=x.slice(_).split(e);for(var ge=0;ge!=w.length&&w[ge].trim().charAt(0)=="<";++ge);for(w=w.slice(ge),_=0;_!=w.length;++_)if(x=w[_].trim(),x.length!==0){if(C=x.match(r),E=_,b=0,h=0,x="<c "+(x.slice(0,1)=="<"?">":"")+x,C!=null&&C.length===2){for(E=0,g=C[1],b=0;b!=g.length&&!((h=g.charCodeAt(b)-64)<1||h>26);++b)E=26*E+h;--E,k=E}else++k;for(b=0;b!=x.length&&x.charCodeAt(b)!==62;++b);if(++b,S=mt(x.slice(0,b),!0),S.r||(S.r=ht({r:A-1,c:k})),g=x.slice(b),y={t:""},(C=g.match(i))!=null&&C[1]!==""&&(y.v=zt(C[1])),f.cellFormula){if((C=g.match(s))!=null&&C[1]!==""){if(y.f=zt(sr(C[1])).replace(/\r\n/g,`
592
+ `),f.xlfn||(y.f=_9(y.f)),C[0].indexOf('t="array"')>-1)y.F=(g.match(a)||[])[1],y.F.indexOf(":")>-1&&O.push([Mt(y.F),y.F]);else if(C[0].indexOf('t="shared"')>-1){P=mt(C[0]);var ye=zt(sr(C[1]));f.xlfn||(ye=_9(ye)),M[parseInt(P.si,10)]=[P,ye,S.r]}}else(C=g.match(/<f[^>]*\/>/))&&(P=mt(C[0]),M[P.si]&&(y.f=Nie(M[P.si][1],M[P.si][2],S.r)));var be=Ar(S.r);for(b=0;b<O.length;++b)be.r>=O[b][0].s.r&&be.r<=O[b][0].e.r&&be.c>=O[b][0].s.c&&be.c<=O[b][0].e.c&&(y.F=O[b][1])}if(S.t==null&&y.v===void 0)if(y.f||y.F)y.v=0,y.t="n";else if(H)y.t="z";else continue;else y.t=S.t||"n";switch(d.s.c>k&&(d.s.c=k),d.e.c<k&&(d.e.c=k),y.t){case"n":if(y.v==""||y.v==null){if(!H)continue;y.t="z"}else y.v=parseFloat(y.v);break;case"s":if(typeof y.v>"u"){if(!H)continue;y.t="z"}else F=Rd[parseInt(y.v,10)],y.v=F.t,y.r=F.r,f.cellHTML&&(y.h=F.h);break;case"str":y.t="s",y.v=y.v!=null?sr(y.v):"",f.cellHTML&&(y.h=xy(y.v));break;case"inlineStr":C=g.match(n),y.t="s",C!=null&&(F=Yy(C[1]))?(y.v=F.t,f.cellHTML&&(y.h=F.h)):y.v="";break;case"b":y.v=yr(y.v);break;case"d":f.cellDates?y.v=_r(y.v,1):(y.v=Jr(_r(y.v,1)),y.t="n");break;case"e":(!f||f.cellText!==!1)&&(y.w=y.v),y.v=f7[y.v];break}if(j=N=0,B=null,I&&S.s!==void 0&&(B=v.CellXf[S.s],B!=null&&(B.numFmtId!=null&&(j=B.numFmtId),f.cellStyles&&B.fillId!=null&&(N=B.fillId))),P9(y,j,N,f,p,v),f.cellDates&&I&&y.t=="n"&&$u(ot[j])&&(y.t="d",y.v=Up(y.v)),S.cm&&f.xlmeta){var Be=(f.xlmeta.Cell||[])[+S.cm-1];Be&&Be.type=="XLDAPR"&&(y.D=!0)}if(V){var J=Ar(S.r);l[J.r]||(l[J.r]=[]),l[J.r][J.c]=y}else l[S.r]=y}}}}L.length>0&&(l["!rows"]=L)}}();function $oe(e,t,r,n){var a=[],i=[],s=Mt(e["!ref"]),o="",u,l="",f=[],d=0,p=0,v=e["!rows"],_=Array.isArray(e),x={r:l},w,C=-1;for(p=s.s.c;p<=s.e.c;++p)f[p]=br(p);for(d=s.s.r;d<=s.e.r;++d){for(i=[],l=Ir(d),p=s.s.c;p<=s.e.c;++p){u=f[p]+l;var E=_?(e[d]||[])[p]:e[u];E!==void 0&&(o=Boe(E,u,e,t))!=null&&i.push(o)}(i.length>0||v&&v[d])&&(x={r:l},v&&v[d]&&(w=v[d],w.hidden&&(x.hidden=1),C=-1,w.hpx?C=Ad(w.hpx):w.hpt&&(C=w.hpt),C>-1&&(x.ht=C,x.customHeight=1),w.level&&(x.outlineLevel=w.level)),a[a.length]=$e("row",i.join(""),x))}if(v)for(;d<v.length;++d)v&&v[d]&&(x={r:d+1},w=v[d],w.hidden&&(x.hidden=1),C=-1,w.hpx?C=Ad(w.hpx):w.hpt&&(C=w.hpt),C>-1&&(x.ht=C,x.customHeight=1),w.level&&(x.outlineLevel=w.level),a[a.length]=$e("row","",x));return a.join("")}function R9(e,t,r,n){var a=[Ur,$e("worksheet",null,{xmlns:zu[0],"xmlns:r":Qr.r})],i=r.SheetNames[e],s=0,o="",u=r.Sheets[i];u==null&&(u={});var l=u["!ref"]||"A1",f=Mt(l);if(f.e.c>16383||f.e.r>1048575){if(t.WTF)throw new Error("Range "+l+" exceeds format limit A1:XFD1048576");f.e.c=Math.min(f.e.c,16383),f.e.r=Math.min(f.e.c,1048575),l=St(f)}n||(n={}),u["!comments"]=[];var d=[];Eoe(u,r,e,t,a),a[a.length]=$e("dimension",null,{ref:l}),a[a.length]=Loe(u,t,e,r),t.sheetFormat&&(a[a.length]=$e("sheetFormatPr",null,{defaultRowHeight:t.sheetFormat.defaultRowHeight||"16",baseColWidth:t.sheetFormat.baseColWidth||"10",outlineLevelRow:t.sheetFormat.outlineLevelRow||"7"})),u["!cols"]!=null&&u["!cols"].length>0&&(a[a.length]=Doe(u,u["!cols"])),a[s=a.length]="<sheetData/>",u["!links"]=[],u["!ref"]!=null&&(o=$oe(u,t),o.length>0&&(a[a.length]=o)),a.length>s+1&&(a[a.length]="</sheetData>",a[s]=a[s].replace("/>",">")),u["!protect"]&&(a[a.length]=Toe(u["!protect"])),u["!autofilter"]!=null&&(a[a.length]=Ioe(u["!autofilter"],u,r,e)),u["!merges"]!=null&&u["!merges"].length>0&&(a[a.length]=woe(u["!merges"]));var p=-1,v,_=-1;return u["!links"].length>0&&(a[a.length]="<hyperlinks>",u["!links"].forEach(function(x){x[1].Target&&(v={ref:x[0]},x[1].Target.charAt(0)!="#"&&(_=tr(n,-1,er(x[1].Target).replace(/#.*$/,""),Ot.HLINK),v["r:id"]="rId"+_),(p=x[1].Target.indexOf("#"))>-1&&(v.location=er(x[1].Target.slice(p+1))),x[1].Tooltip&&(v.tooltip=er(x[1].Tooltip)),a[a.length]=$e("hyperlink",null,v))}),a[a.length]="</hyperlinks>"),delete u["!links"],u["!margins"]!=null&&(a[a.length]=Ooe(u["!margins"])),(!t||t.ignoreEC||t.ignoreEC==null)&&(a[a.length]=yn("ignoredErrors",$e("ignoredError",null,{numberStoredAsText:1,sqref:l}))),d.length>0&&(_=tr(n,-1,"../drawings/drawing"+(e+1)+".xml",Ot.DRAW),a[a.length]=$e("drawing",null,{"r:id":"rId"+_}),u["!drawing"]=d),u["!comments"].length>0&&(_=tr(n,-1,"../drawings/vmlDrawing"+(e+1)+".vml",Ot.VML),a[a.length]=$e("legacyDrawing",null,{"r:id":"rId"+_}),u["!legacy"]=_),a.length>1&&(a[a.length]="</worksheet>",a[1]=a[1].replace("/>",">")),a.join("")}function Uoe(e,t){var r={},n=e.l+t;r.r=e.read_shift(4),e.l+=4;var a=e.read_shift(2);e.l+=1;var i=e.read_shift(1);return e.l=n,i&7&&(r.level=i&7),i&16&&(r.hidden=!0),i&32&&(r.hpt=a/20),r}function zoe(e,t,r){var n=Ce(145),a=(r["!rows"]||[])[e]||{};n.write_shift(4,e),n.write_shift(4,0);var i=320;a.hpx?i=Ad(a.hpx)*20:a.hpt&&(i=a.hpt*20),n.write_shift(2,i),n.write_shift(1,0);var s=0;a.level&&(s|=a.level),a.hidden&&(s|=16),(a.hpx||a.hpt)&&(s|=32),n.write_shift(1,s),n.write_shift(1,0);var o=0,u=n.l;n.l+=4;for(var l={r:e,c:0},f=0;f<16;++f)if(!(t.s.c>f+1<<10||t.e.c<f<<10)){for(var d=-1,p=-1,v=f<<10;v<f+1<<10;++v){l.c=v;var _=Array.isArray(r)?(r[l.r]||[])[l.c]:r[ht(l)];_&&(d<0&&(d=v),p=v)}d<0||(++o,n.write_shift(4,d),n.write_shift(4,p))}var x=n.l;return n.l=u,n.write_shift(4,o),n.l=x,n.length>n.l?n.slice(0,n.l):n}function Hoe(e,t,r,n){var a=zoe(n,r,t);(a.length>17||(t["!rows"]||[])[n])&&Pe(e,0,a)}var Woe=Gu,Voe=Oc;function qoe(){}function Goe(e,t){var r={},n=e[e.l];return++e.l,r.above=!(n&64),r.left=!(n&128),e.l+=18,r.name=Kee(e),r}function Yoe(e,t,r){r==null&&(r=Ce(84+4*e.length));var n=192;t&&(t.above&&(n&=-65),t.left&&(n&=-129)),r.write_shift(1,n);for(var a=1;a<3;++a)r.write_shift(1,0);return qp({auto:1},r),r.write_shift(-4,-1),r.write_shift(-4,-1),a7(e,r),r.slice(0,r.l)}function Xoe(e){var t=Za(e);return[t]}function Koe(e,t,r){return r==null&&(r=Ce(8)),Wu(t,r)}function Zoe(e){var t=Vu(e);return[t]}function Joe(e,t,r){return r==null&&(r=Ce(4)),qu(t,r)}function Qoe(e){var t=Za(e),r=e.read_shift(1);return[t,r,"b"]}function eue(e,t,r){return r==null&&(r=Ce(9)),Wu(t,r),r.write_shift(1,e.v?1:0),r}function tue(e){var t=Vu(e),r=e.read_shift(1);return[t,r,"b"]}function rue(e,t,r){return r==null&&(r=Ce(5)),qu(t,r),r.write_shift(1,e.v?1:0),r}function nue(e){var t=Za(e),r=e.read_shift(1);return[t,r,"e"]}function aue(e,t,r){return r==null&&(r=Ce(9)),Wu(t,r),r.write_shift(1,e.v),r}function iue(e){var t=Vu(e),r=e.read_shift(1);return[t,r,"e"]}function sue(e,t,r){return r==null&&(r=Ce(8)),qu(t,r),r.write_shift(1,e.v),r.write_shift(2,0),r.write_shift(1,0),r}function oue(e){var t=Za(e),r=e.read_shift(4);return[t,r,"s"]}function uue(e,t,r){return r==null&&(r=Ce(12)),Wu(t,r),r.write_shift(4,t.v),r}function lue(e){var t=Vu(e),r=e.read_shift(4);return[t,r,"s"]}function cue(e,t,r){return r==null&&(r=Ce(8)),qu(t,r),r.write_shift(4,t.v),r}function fue(e){var t=Za(e),r=Rn(e);return[t,r,"n"]}function due(e,t,r){return r==null&&(r=Ce(16)),Wu(t,r),Yu(e.v,r),r}function I9(e){var t=Vu(e),r=Rn(e);return[t,r,"n"]}function hue(e,t,r){return r==null&&(r=Ce(12)),qu(t,r),Yu(e.v,r),r}function pue(e){var t=Za(e),r=Ny(e);return[t,r,"n"]}function mue(e,t,r){return r==null&&(r=Ce(12)),Wu(t,r),i7(e.v,r),r}function gue(e){var t=Vu(e),r=Ny(e);return[t,r,"n"]}function vue(e,t,r){return r==null&&(r=Ce(8)),qu(t,r),i7(e.v,r),r}function xue(e){var t=Za(e),r=Py(e);return[t,r,"is"]}function _ue(e){var t=Za(e),r=Dn(e);return[t,r,"str"]}function yue(e,t,r){return r==null&&(r=Ce(12+4*e.v.length)),Wu(t,r),cn(e.v,r),r.length>r.l?r.slice(0,r.l):r}function bue(e){var t=Vu(e),r=Dn(e);return[t,r,"str"]}function wue(e,t,r){return r==null&&(r=Ce(8+4*e.v.length)),qu(t,r),cn(e.v,r),r.length>r.l?r.slice(0,r.l):r}function Sue(e,t,r){var n=e.l+t,a=Za(e);a.r=r["!row"];var i=e.read_shift(1),s=[a,i,"b"];if(r.cellFormula){e.l+=2;var o=sm(e,n-e.l,r);s[3]=Mn(o,null,a,r.supbooks,r)}else e.l=n;return s}function Eue(e,t,r){var n=e.l+t,a=Za(e);a.r=r["!row"];var i=e.read_shift(1),s=[a,i,"e"];if(r.cellFormula){e.l+=2;var o=sm(e,n-e.l,r);s[3]=Mn(o,null,a,r.supbooks,r)}else e.l=n;return s}function Cue(e,t,r){var n=e.l+t,a=Za(e);a.r=r["!row"];var i=Rn(e),s=[a,i,"n"];if(r.cellFormula){e.l+=2;var o=sm(e,n-e.l,r);s[3]=Mn(o,null,a,r.supbooks,r)}else e.l=n;return s}function kue(e,t,r){var n=e.l+t,a=Za(e);a.r=r["!row"];var i=Dn(e),s=[a,i,"str"];if(r.cellFormula){e.l+=2;var o=sm(e,n-e.l,r);s[3]=Mn(o,null,a,r.supbooks,r)}else e.l=n;return s}var Tue=Gu,Aue=Oc;function Fue(e,t){return t==null&&(t=Ce(4)),t.write_shift(4,e),t}function Oue(e,t){var r=e.l+t,n=Gu(e),a=Dy(e),i=Dn(e),s=Dn(e),o=Dn(e);e.l=r;var u={rfx:n,relId:a,loc:i,display:o};return s&&(u.Tooltip=s),u}function Pue(e,t){var r=Ce(50+4*(e[1].Target.length+(e[1].Tooltip||"").length));Oc({s:Ar(e[0]),e:Ar(e[0])},r),Iy("rId"+t,r);var n=e[1].Target.indexOf("#"),a=n==-1?"":e[1].Target.slice(n+1);return cn(a||"",r),cn(e[1].Tooltip||"",r),cn("",r),r.slice(0,r.l)}function Due(){}function Rue(e,t,r){var n=e.l+t,a=s7(e),i=e.read_shift(1),s=[a];if(s[2]=i,r.cellFormula){var o=noe(e,n-e.l,r);s[1]=o}else e.l=n;return s}function Iue(e,t,r){var n=e.l+t,a=Gu(e),i=[a];if(r.cellFormula){var s=ioe(e,n-e.l,r);i[1]=s,e.l=n}else e.l=n;return i}function Nue(e,t,r){r==null&&(r=Ce(18));var n=om(e,t);r.write_shift(-4,e),r.write_shift(-4,e),r.write_shift(4,(n.width||10)*256),r.write_shift(4,0);var a=0;return t.hidden&&(a|=1),typeof n.width=="number"&&(a|=2),t.level&&(a|=t.level<<8),r.write_shift(2,a),r}var N9=["left","right","top","bottom","header","footer"];function Mue(e){var t={};return N9.forEach(function(r){t[r]=Rn(e)}),t}function Lue(e,t){return t==null&&(t=Ce(6*8)),tl(e),N9.forEach(function(r){Yu(e[r],t)}),t}function Bue(e){var t=e.read_shift(2);return e.l+=28,{RTL:t&32}}function jue(e,t,r){r==null&&(r=Ce(30));var n=924;return(((t||{}).Views||[])[0]||{}).RTL&&(n|=32),r.write_shift(2,n),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(2,0),r.write_shift(2,100),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(4,0),r}function $ue(e){var t=Ce(24);return t.write_shift(4,4),t.write_shift(4,1),Oc(e,t),t}function Uue(e,t){return t==null&&(t=Ce(16*4+2)),t.write_shift(2,e.password?Xy(e.password):0),t.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach(function(r){r[1]?t.write_shift(4,e[r[0]]!=null&&!e[r[0]]?1:0):t.write_shift(4,e[r[0]]!=null&&e[r[0]]?0:1)}),t}function zue(){}function Hue(){}function Wue(e,t,r,n,a,i,s){if(!e)return e;var o=t||{};n||(n={"!id":{}});var u=o.dense?[]:{},l,f={s:{r:2e6,c:2e6},e:{r:0,c:0}},d=!1,p=!1,v,_,x,w,C,E,b,h,g,y=[];o.biff=12,o["!row"]=0;var S=0,A=!1,k=[],F={},P=o.supbooks||a.supbooks||[[]];if(P.sharedf=F,P.arrayf=k,P.SheetNames=a.SheetNames||a.Sheets.map(function(V){return V.name}),!o.supbooks&&(o.supbooks=P,a.Names))for(var j=0;j<a.Names.length;++j)P[0][j+1]=a.Names[j];var N=[],I=[],B=!1;Ld[16]={n:"BrtShortReal",f:I9};var O;if(Ys(e,function(L,W,G){if(!p)switch(G){case 148:l=L;break;case 0:v=L,o.sheetRows&&o.sheetRows<=v.r&&(p=!0),h=Ir(w=v.r),o["!row"]=v.r,(L.hidden||L.hpt||L.level!=null)&&(L.hpt&&(L.hpx=Rc(L.hpt)),I[L.r]=L);break;case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 13:case 14:case 15:case 16:case 17:case 18:case 62:switch(_={t:L[2]},L[2]){case"n":_.v=L[1];break;case"s":b=Rd[L[1]],_.v=b.t,_.r=b.r;break;case"b":_.v=!!L[1];break;case"e":_.v=L[1],o.cellText!==!1&&(_.w=Xs[_.v]);break;case"str":_.t="s",_.v=L[1];break;case"is":_.t="s",_.v=L[1].t;break}if((x=s.CellXf[L[0].iStyleRef])&&P9(_,x.numFmtId,null,o,i,s),C=L[0].c==-1?C+1:L[0].c,o.dense?(u[w]||(u[w]=[]),u[w][C]=_):u[br(C)+h]=_,o.cellFormula){for(A=!1,S=0;S<k.length;++S){var H=k[S];v.r>=H[0].s.r&&v.r<=H[0].e.r&&C>=H[0].s.c&&C<=H[0].e.c&&(_.F=St(H[0]),A=!0)}!A&&L.length>3&&(_.f=L[3])}if(f.s.r>v.r&&(f.s.r=v.r),f.s.c>C&&(f.s.c=C),f.e.r<v.r&&(f.e.r=v.r),f.e.c<C&&(f.e.c=C),o.cellDates&&x&&_.t=="n"&&$u(ot[x.numFmtId])){var Q=Io(_.v);Q&&(_.t="d",_.v=new Date(Q.y,Q.m-1,Q.d,Q.H,Q.M,Q.S,Q.u))}O&&(O.type=="XLDAPR"&&(_.D=!0),O=void 0);break;case 1:case 12:if(!o.sheetStubs||d)break;_={t:"z",v:void 0},C=L[0].c==-1?C+1:L[0].c,o.dense?(u[w]||(u[w]=[]),u[w][C]=_):u[br(C)+h]=_,f.s.r>v.r&&(f.s.r=v.r),f.s.c>C&&(f.s.c=C),f.e.r<v.r&&(f.e.r=v.r),f.e.c<C&&(f.e.c=C),O&&(O.type=="XLDAPR"&&(_.D=!0),O=void 0);break;case 176:y.push(L);break;case 49:O=((o.xlmeta||{}).Cell||[])[L-1];break;case 494:var K=n["!id"][L.relId];for(K?(L.Target=K.Target,L.loc&&(L.Target+="#"+L.loc),L.Rel=K):L.relId==""&&(L.Target="#"+L.loc),w=L.rfx.s.r;w<=L.rfx.e.r;++w)for(C=L.rfx.s.c;C<=L.rfx.e.c;++C)o.dense?(u[w]||(u[w]=[]),u[w][C]||(u[w][C]={t:"z",v:void 0}),u[w][C].l=L):(E=ht({c:C,r:w}),u[E]||(u[E]={t:"z",v:void 0}),u[E].l=L);break;case 426:if(!o.cellFormula)break;k.push(L),g=o.dense?u[w][C]:u[br(C)+h],g.f=Mn(L[1],f,{r:v.r,c:C},P,o),g.F=St(L[0]);break;case 427:if(!o.cellFormula)break;F[ht(L[0].s)]=L[1],g=o.dense?u[w][C]:u[br(C)+h],g.f=Mn(L[1],f,{r:v.r,c:C},P,o);break;case 60:if(!o.cellStyles)break;for(;L.e>=L.s;)N[L.e--]={width:L.w/256,hidden:!!(L.flags&1),level:L.level},B||(B=!0,Zy(L.w/256)),jo(N[L.e+1]);break;case 161:u["!autofilter"]={ref:St(L)};break;case 476:u["!margins"]=L;break;case 147:a.Sheets[r]||(a.Sheets[r]={}),L.name&&(a.Sheets[r].CodeName=L.name),(L.above||L.left)&&(u["!outline"]={above:L.above,left:L.left});break;case 137:a.Views||(a.Views=[{}]),a.Views[0]||(a.Views[0]={}),L.RTL&&(a.Views[0].RTL=!0);break;case 485:break;case 64:case 1053:break;case 151:break;case 152:case 175:case 644:case 625:case 562:case 396:case 1112:case 1146:case 471:case 1050:case 649:case 1105:case 589:case 607:case 564:case 1055:case 168:case 174:case 1180:case 499:case 507:case 550:case 171:case 167:case 1177:case 169:case 1181:case 551:case 552:case 661:case 639:case 478:case 537:case 477:case 536:case 1103:case 680:case 1104:case 1024:case 663:case 535:case 678:case 504:case 1043:case 428:case 170:case 3072:case 50:case 2070:case 1045:break;case 35:d=!0;break;case 36:d=!1;break;case 37:d=!0;break;case 38:d=!1;break;default:if(!W.T){if(!d||o.WTF)throw new Error("Unexpected record 0x"+G.toString(16))}}},o),delete o.supbooks,delete o["!row"],!u["!ref"]&&(f.s.r<2e6||l&&(l.e.r>0||l.e.c>0||l.s.r>0||l.s.c>0))&&(u["!ref"]=St(l||f)),o.sheetRows&&u["!ref"]){var M=Mt(u["!ref"]);o.sheetRows<=+M.e.r&&(M.e.r=o.sheetRows-1,M.e.r>f.e.r&&(M.e.r=f.e.r),M.e.r<M.s.r&&(M.s.r=M.e.r),M.e.c>f.e.c&&(M.e.c=f.e.c),M.e.c<M.s.c&&(M.s.c=M.e.c),u["!fullref"]=u["!ref"],u["!ref"]=St(M))}return y.length>0&&(u["!merges"]=y),N.length>0&&(u["!cols"]=N),I.length>0&&(u["!rows"]=I),u}function Vue(e,t,r,n,a,i,s){if(t.v===void 0)return!1;var o="";switch(t.t){case"b":o=t.v?"1":"0";break;case"d":t=ur(t),t.z=t.z||ot[14],t.v=Jr(_r(t.v)),t.t="n";break;case"n":case"e":o=""+t.v;break;default:o=t.v;break}var u={r,c:n};switch(u.s=Uo(a.cellXfs,t,a),t.l&&i["!links"].push([ht(u),t.l]),t.c&&i["!comments"].push([ht(u),t.c]),t.t){case"s":case"str":return a.bookSST?(o=ib(a.Strings,t.v,a.revStrings),u.t="s",u.v=o,s?Pe(e,18,cue(t,u)):Pe(e,7,uue(t,u))):(u.t="str",s?Pe(e,17,wue(t,u)):Pe(e,6,yue(t,u))),!0;case"n":return t.v==(t.v|0)&&t.v>-1e3&&t.v<1e3?s?Pe(e,13,vue(t,u)):Pe(e,2,mue(t,u)):s?Pe(e,16,hue(t,u)):Pe(e,5,due(t,u)),!0;case"b":return u.t="b",s?Pe(e,15,rue(t,u)):Pe(e,4,eue(t,u)),!0;case"e":return u.t="e",s?Pe(e,14,sue(t,u)):Pe(e,3,aue(t,u)),!0}return s?Pe(e,12,Joe(t,u)):Pe(e,1,Koe(t,u)),!0}function que(e,t,r,n){var a=Mt(t["!ref"]||"A1"),i,s="",o=[];Pe(e,145);var u=Array.isArray(t),l=a.e.r;t["!rows"]&&(l=Math.max(a.e.r,t["!rows"].length-1));for(var f=a.s.r;f<=l;++f){s=Ir(f),Hoe(e,t,a,f);var d=!1;if(f<=a.e.r)for(var p=a.s.c;p<=a.e.c;++p){f===a.s.r&&(o[p]=br(p)),i=o[p]+s;var v=u?(t[f]||[])[p]:t[i];if(!v){d=!1;continue}d=Vue(e,v,f,p,n,t,d)}}Pe(e,146)}function Gue(e,t){!t||!t["!merges"]||(Pe(e,177,Fue(t["!merges"].length)),t["!merges"].forEach(function(r){Pe(e,176,Aue(r))}),Pe(e,178))}function Yue(e,t){!t||!t["!cols"]||(Pe(e,390),t["!cols"].forEach(function(r,n){r&&Pe(e,60,Nue(n,r))}),Pe(e,391))}function Xue(e,t){!t||!t["!ref"]||(Pe(e,648),Pe(e,649,$ue(Mt(t["!ref"]))),Pe(e,650))}function Kue(e,t,r){t["!links"].forEach(function(n){if(n[1].Target){var a=tr(r,-1,n[1].Target.replace(/#.*$/,""),Ot.HLINK);Pe(e,494,Pue(n,a))}}),delete t["!links"]}function Zue(e,t,r,n){if(t["!comments"].length>0){var a=tr(n,-1,"../drawings/vmlDrawing"+(r+1)+".vml",Ot.VML);Pe(e,551,Iy("rId"+a)),t["!legacy"]=a}}function Jue(e,t,r,n){if(t["!autofilter"]){var a=t["!autofilter"],i=typeof a.ref=="string"?a.ref:St(a.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var s=r.Workbook.Names,o=qn(i);o.s.r==o.e.r&&(o.e.r=qn(t["!ref"]).e.r,i=St(o));for(var u=0;u<s.length;++u){var l=s[u];if(l.Name=="_xlnm._FilterDatabase"&&l.Sheet==n){l.Ref="'"+r.SheetNames[n]+"'!"+i;break}}u==s.length&&s.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+r.SheetNames[n]+"'!"+i}),Pe(e,161,Oc(Mt(i))),Pe(e,162)}}function Que(e,t,r){Pe(e,133),Pe(e,137,jue(t,r)),Pe(e,138),Pe(e,134)}function ele(e,t){t["!protect"]&&Pe(e,535,Uue(t["!protect"]))}function tle(e,t,r,n){var a=ia(),i=r.SheetNames[e],s=r.Sheets[i]||{},o=i;try{r&&r.Workbook&&(o=r.Workbook.Sheets[e].CodeName||o)}catch{}var u=Mt(s["!ref"]||"A1");if(u.e.c>16383||u.e.r>1048575){if(t.WTF)throw new Error("Range "+(s["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");u.e.c=Math.min(u.e.c,16383),u.e.r=Math.min(u.e.c,1048575)}return s["!links"]=[],s["!comments"]=[],Pe(a,129),(r.vbaraw||s["!outline"])&&Pe(a,147,Yoe(o,s["!outline"])),Pe(a,148,Voe(u)),Que(a,s,r.Workbook),Yue(a,s),que(a,s,e,t),ele(a,s),Jue(a,s,r,e),Gue(a,s),Kue(a,s,n),s["!margins"]&&Pe(a,476,Lue(s["!margins"])),(!t||t.ignoreEC||t.ignoreEC==null)&&Xue(a,s),Zue(a,s,e,n),Pe(a,130),a.end()}function rle(e){var t=[],r=e.match(/^<c:numCache>/),n;(e.match(/<c:pt idx="(\d*)">(.*?)<\/c:pt>/mg)||[]).forEach(function(i){var s=i.match(/<c:pt idx="(\d*?)"><c:v>(.*)<\/c:v><\/c:pt>/);s&&(t[+s[1]]=r?+s[2]:s[2])});var a=zt((e.match(/<c:formatCode>([\s\S]*?)<\/c:formatCode>/)||["","General"])[1]);return(e.match(/<c:f>(.*?)<\/c:f>/mg)||[]).forEach(function(i){n=i.replace(/<.*?>/g,"")}),[t,a,n]}function nle(e,t,r,n,a,i){var s=i||{"!type":"chart"};if(!e)return i;var o=0,u=0,l="A",f={s:{r:2e6,c:2e6},e:{r:0,c:0}};return(e.match(/<c:numCache>[\s\S]*?<\/c:numCache>/gm)||[]).forEach(function(d){var p=rle(d);f.s.r=f.s.c=0,f.e.c=o,l=br(o),p[0].forEach(function(v,_){s[l+Ir(_)]={t:"n",v,z:p[1]},u=_}),f.e.r<u&&(f.e.r=u),++o}),o>0&&(s["!ref"]=St(f)),s}function ale(e,t,r,n,a){if(!e)return e;n||(n={"!id":{}});var i={"!type":"chart","!drawel":null,"!rel":""},s,o=e.match(D9);return o&&sb(o[0],i,a,r),(s=e.match(/drawing r:id="(.*?)"/))&&(i["!rel"]=s[1]),n["!id"][i["!rel"]]&&(i["!drawel"]=n["!id"][i["!rel"]]),i}function ile(e,t){e.l+=10;var r=Dn(e);return{name:r}}function sle(e,t,r,n,a){if(!e)return e;n||(n={"!id":{}});var i={"!type":"chart","!drawel":null,"!rel":""},s=!1;return Ys(e,function(u,l,f){switch(f){case 550:i["!rel"]=u;break;case 651:a.Sheets[r]||(a.Sheets[r]={}),u.name&&(a.Sheets[r].CodeName=u.name);break;case 562:case 652:case 669:case 679:case 551:case 552:case 476:case 3072:break;case 35:s=!0;break;case 36:s=!1;break;case 37:break;case 38:break;default:if(!(l.T>0)){if(!(l.T<0)){if(!s||t.WTF)throw new Error("Unexpected record 0x"+f.toString(16))}}}},t),n["!id"][i["!rel"]]&&(i["!drawel"]=n["!id"][i["!rel"]]),i}var ob=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]],ole=[["activeTab",0,"int"],["autoFilterDateGrouping",!0,"bool"],["firstSheet",0,"int"],["minimized",!1,"bool"],["showHorizontalScroll",!0,"bool"],["showSheetTabs",!0,"bool"],["showVerticalScroll",!0,"bool"],["tabRatio",600,"int"],["visibility","visible"]],ule=[],lle=[["calcCompleted","true"],["calcMode","auto"],["calcOnSave","true"],["concurrentCalc","true"],["fullCalcOnLoad","false"],["fullPrecision","true"],["iterate","false"],["iterateCount","100"],["iterateDelta","0.001"],["refMode","A1"]];function M9(e,t){for(var r=0;r!=e.length;++r)for(var n=e[r],a=0;a!=t.length;++a){var i=t[a];if(n[i[0]]==null)n[i[0]]=i[1];else switch(i[2]){case"bool":typeof n[i[0]]=="string"&&(n[i[0]]=yr(n[i[0]]));break;case"int":typeof n[i[0]]=="string"&&(n[i[0]]=parseInt(n[i[0]],10));break}}}function L9(e,t){for(var r=0;r!=t.length;++r){var n=t[r];if(e[n[0]]==null)e[n[0]]=n[1];else switch(n[2]){case"bool":typeof e[n[0]]=="string"&&(e[n[0]]=yr(e[n[0]]));break;case"int":typeof e[n[0]]=="string"&&(e[n[0]]=parseInt(e[n[0]],10));break}}}function B9(e){L9(e.WBProps,ob),L9(e.CalcPr,lle),M9(e.WBView,ole),M9(e.Sheets,ule),Mc.date1904=yr(e.WBProps.date1904)}function cle(e){return!e.Workbook||!e.Workbook.WBProps?"false":yr(e.Workbook.WBProps.date1904)?"true":"false"}var fle="][*?/\\".split("");function j9(e,t){if(e.length>31)throw new Error("Sheet names cannot exceed 31 chars");var r=!0;return fle.forEach(function(n){if(e.indexOf(n)!=-1)throw new Error("Sheet name cannot contain : \\ / ? * [ ]")}),r}function dle(e,t,r){e.forEach(function(n,a){j9(n);for(var i=0;i<a;++i)if(n==e[i])throw new Error("Duplicate Sheet Name: "+n);if(r){var s=t&&t[a]&&t[a].CodeName||n;if(s.charCodeAt(0)==95&&s.length>22)throw new Error("Bad Code Name: Worksheet"+s)}})}function $9(e){if(!e||!e.SheetNames||!e.Sheets)throw new Error("Invalid Workbook");if(!e.SheetNames.length)throw new Error("Workbook is empty");var t=e.Workbook&&e.Workbook.Sheets||[];dle(e.SheetNames,t,!!e.vbaraw);for(var r=0;r<e.SheetNames.length;++r)coe(e.Sheets[e.SheetNames[r]],e.SheetNames[r],r)}var hle=/<\w+:workbook/;function ple(e,t){if(!e)throw new Error("Could not find file");var r={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},Names:[],xmlns:""},n=!1,a="xmlns",i={},s=0;if(e.replace(On,function(u,l){var f=mt(u);switch(ls(f[0])){case"<?xml":break;case"<workbook":u.match(hle)&&(a="xmlns"+u.match(/<(\w+):/)[1]),r.xmlns=f[a];break;case"</workbook>":break;case"<fileVersion":delete f[0],r.AppVersion=f;break;case"<fileVersion/>":case"</fileVersion>":break;case"<fileSharing":break;case"<fileSharing/>":break;case"<workbookPr":case"<workbookPr/>":ob.forEach(function(d){if(f[d[0]]!=null)switch(d[2]){case"bool":r.WBProps[d[0]]=yr(f[d[0]]);break;case"int":r.WBProps[d[0]]=parseInt(f[d[0]],10);break;default:r.WBProps[d[0]]=f[d[0]]}}),f.codeName&&(r.WBProps.CodeName=sr(f.codeName));break;case"</workbookPr>":break;case"<workbookProtection":break;case"<workbookProtection/>":break;case"<bookViews":case"<bookViews>":case"</bookViews>":break;case"<workbookView":case"<workbookView/>":delete f[0],r.WBView.push(f);break;case"</workbookView>":break;case"<sheets":case"<sheets>":case"</sheets>":break;case"<sheet":switch(f.state){case"hidden":f.Hidden=1;break;case"veryHidden":f.Hidden=2;break;default:f.Hidden=0}delete f.state,f.name=zt(sr(f.name)),delete f[0],r.Sheets.push(f);break;case"</sheet>":break;case"<functionGroups":case"<functionGroups/>":break;case"<functionGroup":break;case"<externalReferences":case"</externalReferences>":case"<externalReferences>":break;case"<externalReference":break;case"<definedNames/>":break;case"<definedNames>":case"<definedNames":n=!0;break;case"</definedNames>":n=!1;break;case"<definedName":i={},i.Name=sr(f.name),f.comment&&(i.Comment=f.comment),f.localSheetId&&(i.Sheet=+f.localSheetId),yr(f.hidden||"0")&&(i.Hidden=!0),s=l+u.length;break;case"</definedName>":i.Ref=zt(sr(e.slice(s,l))),r.Names.push(i);break;case"<definedName/>":break;case"<calcPr":delete f[0],r.CalcPr=f;break;case"<calcPr/>":delete f[0],r.CalcPr=f;break;case"</calcPr>":break;case"<oleSize":break;case"<customWorkbookViews>":case"</customWorkbookViews>":case"<customWorkbookViews":break;case"<customWorkbookView":case"</customWorkbookView>":break;case"<pivotCaches>":case"</pivotCaches>":case"<pivotCaches":break;case"<pivotCache":break;case"<smartTagPr":case"<smartTagPr/>":break;case"<smartTagTypes":case"<smartTagTypes>":case"</smartTagTypes>":break;case"<smartTagType":break;case"<webPublishing":case"<webPublishing/>":break;case"<fileRecoveryPr":case"<fileRecoveryPr/>":break;case"<webPublishObjects>":case"<webPublishObjects":case"</webPublishObjects>":break;case"<webPublishObject":break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":n=!0;break;case"</ext>":n=!1;break;case"<ArchID":break;case"<AlternateContent":case"<AlternateContent>":n=!0;break;case"</AlternateContent>":n=!1;break;case"<revisionPtr":break;default:if(!n&&t.WTF)throw new Error("unrecognized "+f[0]+" in workbook")}return u}),zu.indexOf(r.xmlns)===-1)throw new Error("Unknown Namespace: "+r.xmlns);return B9(r),r}function U9(e){var t=[Ur];t[t.length]=$e("workbook",null,{xmlns:zu[0],"xmlns:r":Qr.r});var r=e.Workbook&&(e.Workbook.Names||[]).length>0,n={codeName:"ThisWorkbook"};e.Workbook&&e.Workbook.WBProps&&(ob.forEach(function(o){e.Workbook.WBProps[o[0]]!=null&&e.Workbook.WBProps[o[0]]!=o[1]&&(n[o[0]]=e.Workbook.WBProps[o[0]])}),e.Workbook.WBProps.CodeName&&(n.codeName=e.Workbook.WBProps.CodeName,delete n.CodeName)),t[t.length]=$e("workbookPr",null,n);var a=e.Workbook&&e.Workbook.Sheets||[],i=0;if(a&&a[0]&&a[0].Hidden){for(t[t.length]="<bookViews>",i=0;i!=e.SheetNames.length&&!(!a[i]||!a[i].Hidden);++i);i==e.SheetNames.length&&(i=0),t[t.length]='<workbookView firstSheet="'+i+'" activeTab="'+i+'"/>',t[t.length]="</bookViews>"}for(t[t.length]="<sheets>",i=0;i!=e.SheetNames.length;++i){var s={name:er(e.SheetNames[i].slice(0,31))};if(s.sheetId=""+(i+1),s["r:id"]="rId"+(i+1),a[i])switch(a[i].Hidden){case 1:s.state="hidden";break;case 2:s.state="veryHidden";break}t[t.length]=$e("sheet",null,s)}return t[t.length]="</sheets>",r&&(t[t.length]="<definedNames>",e.Workbook&&e.Workbook.Names&&e.Workbook.Names.forEach(function(o){var u={name:o.Name};o.Comment&&(u.comment=o.Comment),o.Sheet!=null&&(u.localSheetId=""+o.Sheet),o.Hidden&&(u.hidden="1"),o.Ref&&(t[t.length]=$e("definedName",er(o.Ref),u))}),t[t.length]="</definedNames>"),t.length>2&&(t[t.length]="</workbook>",t[1]=t[1].replace("/>",">")),t.join("")}function mle(e,t){var r={};return r.Hidden=e.read_shift(4),r.iTabID=e.read_shift(4),r.strRelID=Ry(e),r.name=Dn(e),r}function gle(e,t){return t||(t=Ce(127)),t.write_shift(4,e.Hidden),t.write_shift(4,e.iTabID),Iy(e.strRelID,t),cn(e.name.slice(0,31),t),t.length>t.l?t.slice(0,t.l):t}function vle(e,t){var r={},n=e.read_shift(4);r.defaultThemeVersion=e.read_shift(4);var a=t>8?Dn(e):"";return a.length>0&&(r.CodeName=a),r.autoCompressPictures=!!(n&65536),r.backupFile=!!(n&64),r.checkCompatibility=!!(n&4096),r.date1904=!!(n&1),r.filterPrivacy=!!(n&8),r.hidePivotFieldList=!!(n&1024),r.promptedSolutions=!!(n&16),r.publishItems=!!(n&2048),r.refreshAllConnections=!!(n&262144),r.saveExternalLinkValues=!!(n&128),r.showBorderUnselectedTables=!!(n&4),r.showInkAnnotation=!!(n&32),r.showObjects=["all","placeholders","none"][n>>13&3],r.showPivotChartFilter=!!(n&32768),r.updateLinks=["userSet","never","always"][n>>8&3],r}function xle(e,t){t||(t=Ce(72));var r=0;return e&&e.filterPrivacy&&(r|=8),t.write_shift(4,r),t.write_shift(4,0),a7(e&&e.CodeName||"ThisWorkbook",t),t.slice(0,t.l)}function _le(e,t){var r={};return e.read_shift(4),r.ArchID=e.read_shift(4),e.l+=t-8,r}function yle(e,t,r){var n=e.l+t;e.l+=4,e.l+=1;var a=e.read_shift(4),i=Zee(e),s=aoe(e,0,r),o=Dy(e);e.l=n;var u={Name:i,Ptg:s};return a<268435455&&(u.Sheet=a),o&&(u.Comment=o),u}function ble(e,t){var r={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},xmlns:""},n=[],a=!1;t||(t={}),t.biff=12;var i=[],s=[[]];return s.SheetNames=[],s.XTI=[],Ld[16]={n:"BrtFRTArchID$",f:_le},Ys(e,function(u,l,f){switch(f){case 156:s.SheetNames.push(u.name),r.Sheets.push(u);break;case 153:r.WBProps=u;break;case 39:u.Sheet!=null&&(t.SID=u.Sheet),u.Ref=Mn(u.Ptg,null,null,s,t),delete t.SID,delete u.Ptg,i.push(u);break;case 1036:break;case 357:case 358:case 355:case 667:s[0].length?s.push([f,u]):s[0]=[f,u],s[s.length-1].XTI=[];break;case 362:s.length===0&&(s[0]=[],s[0].XTI=[]),s[s.length-1].XTI=s[s.length-1].XTI.concat(u),s.XTI=s.XTI.concat(u);break;case 361:break;case 2071:case 158:case 143:case 664:case 353:break;case 3072:case 3073:case 534:case 677:case 157:case 610:case 2050:case 155:case 548:case 676:case 128:case 665:case 2128:case 2125:case 549:case 2053:case 596:case 2076:case 2075:case 2082:case 397:case 154:case 1117:case 553:case 2091:break;case 35:n.push(f),a=!0;break;case 36:n.pop(),a=!1;break;case 37:n.push(f),a=!0;break;case 38:n.pop(),a=!1;break;case 16:break;default:if(!l.T){if(!a||t.WTF&&n[n.length-1]!=37&&n[n.length-1]!=35)throw new Error("Unexpected record 0x"+f.toString(16))}}},t),B9(r),r.Names=i,r.supbooks=s,r}function wle(e,t){Pe(e,143);for(var r=0;r!=t.SheetNames.length;++r){var n=t.Workbook&&t.Workbook.Sheets&&t.Workbook.Sheets[r]&&t.Workbook.Sheets[r].Hidden||0,a={Hidden:n,iTabID:r+1,strRelID:"rId"+(r+1),name:t.SheetNames[r]};Pe(e,156,gle(a))}Pe(e,144)}function Sle(e,t){t||(t=Ce(127));for(var r=0;r!=4;++r)t.write_shift(4,0);return cn("SheetJS",t),cn(sd.version,t),cn(sd.version,t),cn("7262",t),t.length>t.l?t.slice(0,t.l):t}function Ele(e,t){t||(t=Ce(29)),t.write_shift(-4,0),t.write_shift(-4,460),t.write_shift(4,28800),t.write_shift(4,17600),t.write_shift(4,500),t.write_shift(4,e),t.write_shift(4,e);var r=120;return t.write_shift(1,r),t.length>t.l?t.slice(0,t.l):t}function Cle(e,t){if(!(!t.Workbook||!t.Workbook.Sheets)){for(var r=t.Workbook.Sheets,n=0,a=-1,i=-1;n<r.length;++n)!r[n]||!r[n].Hidden&&a==-1?a=n:r[n].Hidden==1&&i==-1&&(i=n);i>a||(Pe(e,135),Pe(e,158,Ele(a)),Pe(e,136))}}function kle(e,t){var r=ia();return Pe(r,131),Pe(r,128,Sle()),Pe(r,153,xle(e.Workbook&&e.Workbook.WBProps||null)),Cle(r,e),wle(r,e),Pe(r,132),r.end()}function Tle(e,t,r){return t.slice(-4)===".bin"?ble(e,r):ple(e,r)}function Ale(e,t,r,n,a,i,s,o){return t.slice(-4)===".bin"?Wue(e,n,r,a,i,s,o):boe(e,n,r,a,i,s,o)}function Fle(e,t,r,n,a,i,s,o){return t.slice(-4)===".bin"?sle(e,n,r,a,i):ale(e,n,r,a,i)}function Ole(e,t,r,n,a,i,s,o){return t.slice(-4)===".bin"?Rie():Iie()}function Ple(e,t,r,n,a,i,s,o){return t.slice(-4)===".bin"?Pie():Die()}function Dle(e,t,r,n){return t.slice(-4)===".bin"?Aae(e,r,n):gae(e,r,n)}function Rle(e,t,r){return d9(e,r)}function Ile(e,t,r){return t.slice(-4)===".bin"?Nne(e,r):Dne(e,r)}function Nle(e,t,r){return t.slice(-4)===".bin"?kie(e,r):vie(e,r)}function Mle(e,t,r){return t.slice(-4)===".bin"?pie(e):die(e)}function Lle(e,t,r,n){return r.slice(-4)===".bin"?mie(e,t,r,n):void 0}function Ble(e,t,r){return t.slice(-4)===".bin"?lie(e,t,r):fie(e,t,r)}function jle(e,t,r){return(t.slice(-4)===".bin"?kle:U9)(e)}function $le(e,t,r,n,a){return(t.slice(-4)===".bin"?tle:R9)(e,r,n,a)}function Ule(e,t,r){return(t.slice(-4)===".bin"?Bae:l9)(e,r)}function zle(e,t,r){return(t.slice(-4)===".bin"?Bne:t9)(e,r)}function Hle(e,t,r){return(t.slice(-4)===".bin"?Tie:g9)(e)}function Wle(e){return(e.slice(-4)===".bin"?cie:h9)()}var z9=/([\w:]+)=((?:")([^"]*)(?:")|(?:')([^']*)(?:'))/g,H9=/([\w:]+)=((?:")(?:[^"]*)(?:")|(?:')(?:[^']*)(?:'))/;function Ni(e,t){var r=e.split(/\s+/),n=[];if(n[0]=r[0],r.length===1)return n;var a=e.match(z9),i,s,o,u;if(a)for(u=0;u!=a.length;++u)i=a[u].match(H9),(s=i[1].indexOf(":"))===-1?n[i[1]]=i[2].slice(1,i[2].length-1):(i[1].slice(0,6)==="xmlns:"?o="xmlns"+i[1].slice(6):o=i[1].slice(s+1),n[o]=i[2].slice(1,i[2].length-1));return n}function Vle(e){var t=e.split(/\s+/),r={};if(t.length===1)return r;var n=e.match(z9),a,i,s,o;if(n)for(o=0;o!=n.length;++o)a=n[o].match(H9),(i=a[1].indexOf(":"))===-1?r[a[1]]=a[2].slice(1,a[2].length-1):(a[1].slice(0,6)==="xmlns:"?s="xmlns"+a[1].slice(6):s=a[1].slice(i+1),r[s]=a[2].slice(1,a[2].length-1));return r}var Nd;function qle(e,t){var r=Nd[e]||zt(e);return r==="General"?ju(t):Aa(r,t)}function Gle(e,t,r,n){var a=n;switch((r[0].match(/dt:dt="([\w.]+)"/)||["",""])[1]){case"boolean":a=yr(n);break;case"i2":case"int":a=parseInt(n,10);break;case"r4":case"float":a=parseFloat(n);break;case"date":case"dateTime.tz":a=_r(n);break;case"i8":case"string":case"fixed":case"uuid":case"bin.base64":break;default:throw new Error("bad custprop:"+r[0])}e[zt(t)]=a}function Yle(e,t,r){if(e.t!=="z"){if(!r||r.cellText!==!1)try{e.t==="e"?e.w=e.w||Xs[e.v]:t==="General"?e.t==="n"?(e.v|0)===e.v?e.w=e.v.toString(10):e.w=fd(e.v):e.w=ju(e.v):e.w=qle(t||"General",e.v)}catch(i){if(r.WTF)throw i}try{var n=Nd[t]||t||"General";if(r.cellNF&&(e.z=n),r.cellDates&&e.t=="n"&&$u(n)){var a=Io(e.v);a&&(e.t="d",e.v=new Date(a.y,a.m-1,a.d,a.H,a.M,a.S,a.u))}}catch(i){if(r.WTF)throw i}}}function Xle(e,t,r){if(r.cellStyles&&t.Interior){var n=t.Interior;n.Pattern&&(n.patternType=uae[n.Pattern]||n.Pattern)}e[t.ID]=t}function Kle(e,t,r,n,a,i,s,o,u,l){var f="General",d=n.StyleID,p={};l=l||{};var v=[],_=0;for(d===void 0&&o&&(d=o.StyleID),d===void 0&&s&&(d=s.StyleID);i[d]!==void 0&&(i[d].nf&&(f=i[d].nf),i[d].Interior&&v.push(i[d].Interior),!!i[d].Parent);)d=i[d].Parent;switch(r.Type){case"Boolean":n.t="b",n.v=yr(e);break;case"String":n.t="s",n.r=NF(zt(e)),n.v=e.indexOf("<")>-1?zt(t||e).replace(/<.*?>/g,""):n.r;break;case"DateTime":e.slice(-1)!="Z"&&(e+="Z"),n.v=(_r(e)-new Date(Date.UTC(1899,11,30)))/(24*60*60*1e3),n.v!==n.v?n.v=zt(e):n.v<60&&(n.v=n.v-1),(!f||f=="General")&&(f="yyyy-mm-dd");case"Number":n.v===void 0&&(n.v=+e),n.t||(n.t="n");break;case"Error":n.t="e",n.v=f7[e],l.cellText!==!1&&(n.w=e);break;default:e==""&&t==""?n.t="z":(n.t="s",n.v=NF(t||e));break}if(Yle(n,f,l),l.cellFormula!==!1)if(n.Formula){var x=zt(n.Formula);x.charCodeAt(0)==61&&(x=x.slice(1)),n.f=Nc(x,a),delete n.Formula,n.ArrayRange=="RC"?n.F=Nc("RC:RC",a):n.ArrayRange&&(n.F=Nc(n.ArrayRange,a),u.push([Mt(n.F),n.F]))}else for(_=0;_<u.length;++_)a.r>=u[_][0].s.r&&a.r<=u[_][0].e.r&&a.c>=u[_][0].s.c&&a.c<=u[_][0].e.c&&(n.F=u[_][1]);l.cellStyles&&(v.forEach(function(w){!p.patternType&&w.patternType&&(p.patternType=w.patternType)}),n.s=p),n.StyleID!==void 0&&(n.ixfe=n.StyleID)}function Zle(e){e.t=e.v||"",e.t=e.t.replace(/\r\n/g,`
593
+ `).replace(/\r/g,`
594
+ `),e.v=e.w=e.ixfe=void 0}function ub(e,t){var r=t||{};Cc();var n=wc(by(e));(r.type=="binary"||r.type=="array"||r.type=="base64")&&(typeof Ut<"u"?n=Ut.utils.decode(65001,Ip(n)):n=sr(n));var a=n.slice(0,1024).toLowerCase(),i=!1;if(a=a.replace(/".*?"/g,""),(a.indexOf(">")&1023)>Math.min(a.indexOf(",")&1023,a.indexOf(";")&1023)){var s=ur(r);return s.type="string",Dc.to_workbook(n,s)}if(a.indexOf("<?xml")==-1&&["html","table","head","meta","script","style","div"].forEach(function(ut){a.indexOf("<"+ut)>=0&&(i=!0)}),i)return Rce(n,r);Nd={"General Number":"General","General Date":ot[22],"Long Date":"dddd, mmmm dd, yyyy","Medium Date":ot[15],"Short Date":ot[14],"Long Time":ot[19],"Medium Time":ot[18],"Short Time":ot[20],Currency:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',Fixed:ot[2],Standard:ot[4],Percent:ot[10],Scientific:ot[11],"Yes/No":'"Yes";"Yes";"No";@',"True/False":'"True";"True";"False";@',"On/Off":'"Yes";"Yes";"No";@'};var o,u=[],l,f={},d=[],p=r.dense?[]:{},v="",_={},x={},w=Ni('<Data ss:Type="String">'),C=0,E=0,b=0,h={s:{r:2e6,c:2e6},e:{r:0,c:0}},g={},y={},S="",A=0,k=[],F={},P={},j=0,N=[],I=[],B={},O=[],M,V=!1,L=[],W=[],G={},H=0,Q=0,K={Sheets:[],WBProps:{date1904:!1}},te={};vd.lastIndex=0,n=n.replace(/<!--([\s\S]*?)-->/mg,"");for(var se="";o=vd.exec(n);)switch(o[3]=(se=o[3]).toLowerCase()){case"data":if(se=="data"){if(o[1]==="/"){if((l=u.pop())[0]!==o[3])throw new Error("Bad state: "+l.join("|"))}else o[0].charAt(o[0].length-2)!=="/"&&u.push([o[3],!0]);break}if(u[u.length-1][1])break;o[1]==="/"?Kle(n.slice(C,o.index),S,w,u[u.length-1][0]=="comment"?B:_,{c:E,r:b},g,O[E],x,L,r):(S="",w=Ni(o[0]),C=o.index+o[0].length);break;case"cell":if(o[1]==="/")if(I.length>0&&(_.c=I),(!r.sheetRows||r.sheetRows>b)&&_.v!==void 0&&(r.dense?(p[b]||(p[b]=[]),p[b][E]=_):p[br(E)+Ir(b)]=_),_.HRef&&(_.l={Target:zt(_.HRef)},_.HRefScreenTip&&(_.l.Tooltip=_.HRefScreenTip),delete _.HRef,delete _.HRefScreenTip),(_.MergeAcross||_.MergeDown)&&(H=E+(parseInt(_.MergeAcross,10)|0),Q=b+(parseInt(_.MergeDown,10)|0),k.push({s:{c:E,r:b},e:{c:H,r:Q}})),!r.sheetStubs)_.MergeAcross?E=H+1:++E;else if(_.MergeAcross||_.MergeDown){for(var le=E;le<=H;++le)for(var ge=b;ge<=Q;++ge)(le>E||ge>b)&&(r.dense?(p[ge]||(p[ge]=[]),p[ge][le]={t:"z"}):p[br(le)+Ir(ge)]={t:"z"});E=H+1}else++E;else _=Vle(o[0]),_.Index&&(E=+_.Index-1),E<h.s.c&&(h.s.c=E),E>h.e.c&&(h.e.c=E),o[0].slice(-2)==="/>"&&++E,I=[];break;case"row":o[1]==="/"||o[0].slice(-2)==="/>"?(b<h.s.r&&(h.s.r=b),b>h.e.r&&(h.e.r=b),o[0].slice(-2)==="/>"&&(x=Ni(o[0]),x.Index&&(b=+x.Index-1)),E=0,++b):(x=Ni(o[0]),x.Index&&(b=+x.Index-1),G={},(x.AutoFitHeight=="0"||x.Height)&&(G.hpx=parseInt(x.Height,10),G.hpt=Ad(G.hpx),W[b]=G),x.Hidden=="1"&&(G.hidden=!0,W[b]=G));break;case"worksheet":if(o[1]==="/"){if((l=u.pop())[0]!==o[3])throw new Error("Bad state: "+l.join("|"));d.push(v),h.s.r<=h.e.r&&h.s.c<=h.e.c&&(p["!ref"]=St(h),r.sheetRows&&r.sheetRows<=h.e.r&&(p["!fullref"]=p["!ref"],h.e.r=r.sheetRows-1,p["!ref"]=St(h))),k.length&&(p["!merges"]=k),O.length>0&&(p["!cols"]=O),W.length>0&&(p["!rows"]=W),f[v]=p}else h={s:{r:2e6,c:2e6},e:{r:0,c:0}},b=E=0,u.push([o[3],!1]),l=Ni(o[0]),v=zt(l.Name),p=r.dense?[]:{},k=[],L=[],W=[],te={name:v,Hidden:0},K.Sheets.push(te);break;case"table":if(o[1]==="/"){if((l=u.pop())[0]!==o[3])throw new Error("Bad state: "+l.join("|"))}else{if(o[0].slice(-2)=="/>")break;u.push([o[3],!1]),O=[],V=!1}break;case"style":o[1]==="/"?Xle(g,y,r):y=Ni(o[0]);break;case"numberformat":y.nf=zt(Ni(o[0]).Format||"General"),Nd[y.nf]&&(y.nf=Nd[y.nf]);for(var ye=0;ye!=392&&ot[ye]!=y.nf;++ye);if(ye==392){for(ye=57;ye!=392;++ye)if(ot[ye]==null){us(y.nf,ye);break}}break;case"column":if(u[u.length-1][0]!=="table")break;if(M=Ni(o[0]),M.Hidden&&(M.hidden=!0,delete M.Hidden),M.Width&&(M.wpx=parseInt(M.Width,10)),!V&&M.wpx>10){V=!0,Nn=o9;for(var be=0;be<O.length;++be)O[be]&&jo(O[be])}V&&jo(M),O[M.Index-1||O.length]=M;for(var Be=0;Be<+M.Span;++Be)O[O.length]=ur(M);break;case"namedrange":if(o[1]==="/")break;K.Names||(K.Names=[]);var J=mt(o[0]),qe={Name:J.Name,Ref:Nc(J.RefersTo.slice(1),{r:0,c:0})};K.Sheets.length>0&&(qe.Sheet=K.Sheets.length-1),K.Names.push(qe);break;case"namedcell":break;case"b":break;case"i":break;case"u":break;case"s":break;case"em":break;case"h2":break;case"h3":break;case"sub":break;case"sup":break;case"span":break;case"alignment":break;case"borders":break;case"border":break;case"font":if(o[0].slice(-2)==="/>")break;o[1]==="/"?S+=n.slice(A,o.index):A=o.index+o[0].length;break;case"interior":if(!r.cellStyles)break;y.Interior=Ni(o[0]);break;case"protection":break;case"author":case"title":case"description":case"created":case"keywords":case"subject":case"category":case"company":case"lastauthor":case"lastsaved":case"lastprinted":case"version":case"revision":case"totaltime":case"hyperlinkbase":case"manager":case"contentstatus":case"identifier":case"language":case"appname":if(o[0].slice(-2)==="/>")break;o[1]==="/"?wte(F,se,n.slice(j,o.index)):j=o.index+o[0].length;break;case"paragraphs":break;case"styles":case"workbook":if(o[1]==="/"){if((l=u.pop())[0]!==o[3])throw new Error("Bad state: "+l.join("|"))}else u.push([o[3],!1]);break;case"comment":if(o[1]==="/"){if((l=u.pop())[0]!==o[3])throw new Error("Bad state: "+l.join("|"));Zle(B),I.push(B)}else u.push([o[3],!1]),l=Ni(o[0]),B={a:l.Author};break;case"autofilter":if(o[1]==="/"){if((l=u.pop())[0]!==o[3])throw new Error("Bad state: "+l.join("|"))}else if(o[0].charAt(o[0].length-2)!=="/"){var _e=Ni(o[0]);p["!autofilter"]={ref:Nc(_e.Range).replace(/\$/g,"")},u.push([o[3],!0])}break;case"name":break;case"datavalidation":if(o[1]==="/"){if((l=u.pop())[0]!==o[3])throw new Error("Bad state: "+l.join("|"))}else o[0].charAt(o[0].length-2)!=="/"&&u.push([o[3],!0]);break;case"pixelsperinch":break;case"componentoptions":case"documentproperties":case"customdocumentproperties":case"officedocumentsettings":case"pivottable":case"pivotcache":case"names":case"mapinfo":case"pagebreaks":case"querytable":case"sorting":case"schema":case"conditionalformatting":case"smarttagtype":case"smarttags":case"excelworkbook":case"workbookoptions":case"worksheetoptions":if(o[1]==="/"){if((l=u.pop())[0]!==o[3])throw new Error("Bad state: "+l.join("|"))}else o[0].charAt(o[0].length-2)!=="/"&&u.push([o[3],!0]);break;case"null":break;default:if(u.length==0&&o[3]=="document"||u.length==0&&o[3]=="uof")return aO(n,r);var ze=!0;switch(u[u.length-1][0]){case"officedocumentsettings":switch(o[3]){case"allowpng":break;case"removepersonalinformation":break;case"downloadcomponents":break;case"locationofcomponents":break;case"colors":break;case"color":break;case"index":break;case"rgb":break;case"targetscreensize":break;case"readonlyrecommended":break;default:ze=!1}break;case"componentoptions":switch(o[3]){case"toolbar":break;case"hideofficelogo":break;case"spreadsheetautofit":break;case"label":break;case"caption":break;case"maxheight":break;case"maxwidth":break;case"nextsheetnumber":break;default:ze=!1}break;case"excelworkbook":switch(o[3]){case"date1904":K.WBProps.date1904=!0;break;case"windowheight":break;case"windowwidth":break;case"windowtopx":break;case"windowtopy":break;case"tabratio":break;case"protectstructure":break;case"protectwindow":break;case"protectwindows":break;case"activesheet":break;case"displayinknotes":break;case"firstvisiblesheet":break;case"supbook":break;case"sheetname":break;case"sheetindex":break;case"sheetindexfirst":break;case"sheetindexlast":break;case"dll":break;case"acceptlabelsinformulas":break;case"donotsavelinkvalues":break;case"iteration":break;case"maxiterations":break;case"maxchange":break;case"path":break;case"xct":break;case"count":break;case"selectedsheets":break;case"calculation":break;case"uncalced":break;case"startupprompt":break;case"crn":break;case"externname":break;case"formula":break;case"colfirst":break;case"collast":break;case"wantadvise":break;case"boolean":break;case"error":break;case"text":break;case"ole":break;case"noautorecover":break;case"publishobjects":break;case"donotcalculatebeforesave":break;case"number":break;case"refmoder1c1":break;case"embedsavesmarttags":break;default:ze=!1}break;case"workbookoptions":switch(o[3]){case"owcversion":break;case"height":break;case"width":break;default:ze=!1}break;case"worksheetoptions":switch(o[3]){case"visible":if(o[0].slice(-2)!=="/>")if(o[1]==="/")switch(n.slice(j,o.index)){case"SheetHidden":te.Hidden=1;break;case"SheetVeryHidden":te.Hidden=2;break}else j=o.index+o[0].length;break;case"header":p["!margins"]||tl(p["!margins"]={},"xlml"),isNaN(+mt(o[0]).Margin)||(p["!margins"].header=+mt(o[0]).Margin);break;case"footer":p["!margins"]||tl(p["!margins"]={},"xlml"),isNaN(+mt(o[0]).Margin)||(p["!margins"].footer=+mt(o[0]).Margin);break;case"pagemargins":var We=mt(o[0]);p["!margins"]||tl(p["!margins"]={},"xlml"),isNaN(+We.Top)||(p["!margins"].top=+We.Top),isNaN(+We.Left)||(p["!margins"].left=+We.Left),isNaN(+We.Right)||(p["!margins"].right=+We.Right),isNaN(+We.Bottom)||(p["!margins"].bottom=+We.Bottom);break;case"displayrighttoleft":K.Views||(K.Views=[]),K.Views[0]||(K.Views[0]={}),K.Views[0].RTL=!0;break;case"freezepanes":break;case"frozennosplit":break;case"splithorizontal":case"splitvertical":break;case"donotdisplaygridlines":break;case"activerow":break;case"activecol":break;case"toprowbottompane":break;case"leftcolumnrightpane":break;case"unsynced":break;case"print":break;case"printerrors":break;case"panes":break;case"scale":break;case"pane":break;case"number":break;case"layout":break;case"pagesetup":break;case"selected":break;case"protectobjects":break;case"enableselection":break;case"protectscenarios":break;case"validprinterinfo":break;case"horizontalresolution":break;case"verticalresolution":break;case"numberofcopies":break;case"activepane":break;case"toprowvisible":break;case"leftcolumnvisible":break;case"fittopage":break;case"rangeselection":break;case"papersizeindex":break;case"pagelayoutzoom":break;case"pagebreakzoom":break;case"filteron":break;case"fitwidth":break;case"fitheight":break;case"commentslayout":break;case"zoom":break;case"lefttoright":break;case"gridlines":break;case"allowsort":break;case"allowfilter":break;case"allowinsertrows":break;case"allowdeleterows":break;case"allowinsertcols":break;case"allowdeletecols":break;case"allowinserthyperlinks":break;case"allowformatcells":break;case"allowsizecols":break;case"allowsizerows":break;case"nosummaryrowsbelowdetail":p["!outline"]||(p["!outline"]={}),p["!outline"].above=!0;break;case"tabcolorindex":break;case"donotdisplayheadings":break;case"showpagelayoutzoom":break;case"nosummarycolumnsrightdetail":p["!outline"]||(p["!outline"]={}),p["!outline"].left=!0;break;case"blackandwhite":break;case"donotdisplayzeros":break;case"displaypagebreak":break;case"rowcolheadings":break;case"donotdisplayoutline":break;case"noorientation":break;case"allowusepivottables":break;case"zeroheight":break;case"viewablerange":break;case"selection":break;case"protectcontents":break;default:ze=!1}break;case"pivottable":case"pivotcache":switch(o[3]){case"immediateitemsondrop":break;case"showpagemultipleitemlabel":break;case"compactrowindent":break;case"location":break;case"pivotfield":break;case"orientation":break;case"layoutform":break;case"layoutsubtotallocation":break;case"layoutcompactrow":break;case"position":break;case"pivotitem":break;case"datatype":break;case"datafield":break;case"sourcename":break;case"parentfield":break;case"ptlineitems":break;case"ptlineitem":break;case"countofsameitems":break;case"item":break;case"itemtype":break;case"ptsource":break;case"cacheindex":break;case"consolidationreference":break;case"filename":break;case"reference":break;case"nocolumngrand":break;case"norowgrand":break;case"blanklineafteritems":break;case"hidden":break;case"subtotal":break;case"basefield":break;case"mapchilditems":break;case"function":break;case"refreshonfileopen":break;case"printsettitles":break;case"mergelabels":break;case"defaultversion":break;case"refreshname":break;case"refreshdate":break;case"refreshdatecopy":break;case"versionlastrefresh":break;case"versionlastupdate":break;case"versionupdateablemin":break;case"versionrefreshablemin":break;case"calculation":break;default:ze=!1}break;case"pagebreaks":switch(o[3]){case"colbreaks":break;case"colbreak":break;case"rowbreaks":break;case"rowbreak":break;case"colstart":break;case"colend":break;case"rowend":break;default:ze=!1}break;case"autofilter":switch(o[3]){case"autofiltercolumn":break;case"autofiltercondition":break;case"autofilterand":break;case"autofilteror":break;default:ze=!1}break;case"querytable":switch(o[3]){case"id":break;case"autoformatfont":break;case"autoformatpattern":break;case"querysource":break;case"querytype":break;case"enableredirections":break;case"refreshedinxl9":break;case"urlstring":break;case"htmltables":break;case"connection":break;case"commandtext":break;case"refreshinfo":break;case"notitles":break;case"nextid":break;case"columninfo":break;case"overwritecells":break;case"donotpromptforfile":break;case"textwizardsettings":break;case"source":break;case"number":break;case"decimal":break;case"thousandseparator":break;case"trailingminusnumbers":break;case"formatsettings":break;case"fieldtype":break;case"delimiters":break;case"tab":break;case"comma":break;case"autoformatname":break;case"versionlastedit":break;case"versionlastrefresh":break;default:ze=!1}break;case"datavalidation":switch(o[3]){case"range":break;case"type":break;case"min":break;case"max":break;case"sort":break;case"descending":break;case"order":break;case"casesensitive":break;case"value":break;case"errorstyle":break;case"errormessage":break;case"errortitle":break;case"inputmessage":break;case"inputtitle":break;case"combohide":break;case"inputhide":break;case"condition":break;case"qualifier":break;case"useblank":break;case"value1":break;case"value2":break;case"format":break;case"cellrangelist":break;default:ze=!1}break;case"sorting":case"conditionalformatting":switch(o[3]){case"range":break;case"type":break;case"min":break;case"max":break;case"sort":break;case"descending":break;case"order":break;case"casesensitive":break;case"value":break;case"errorstyle":break;case"errormessage":break;case"errortitle":break;case"cellrangelist":break;case"inputmessage":break;case"inputtitle":break;case"combohide":break;case"inputhide":break;case"condition":break;case"qualifier":break;case"useblank":break;case"value1":break;case"value2":break;case"format":break;default:ze=!1}break;case"mapinfo":case"schema":case"data":switch(o[3]){case"map":break;case"entry":break;case"range":break;case"xpath":break;case"field":break;case"xsdtype":break;case"filteron":break;case"aggregate":break;case"elementtype":break;case"attributetype":break;case"schema":case"element":case"complextype":case"datatype":case"all":case"attribute":case"extends":break;case"row":break;default:ze=!1}break;case"smarttags":break;default:ze=!1;break}if(ze||o[3].match(/!\[CDATA/))break;if(!u[u.length-1][1])throw"Unrecognized tag: "+o[3]+"|"+u.join("|");if(u[u.length-1][0]==="customdocumentproperties"){if(o[0].slice(-2)==="/>")break;o[1]==="/"?Gle(P,se,N,n.slice(j,o.index)):(N=o,j=o.index+o[0].length);break}if(r.WTF)throw"Unrecognized tag: "+o[3]+"|"+u.join("|")}var De={};return!r.bookSheets&&!r.bookProps&&(De.Sheets=f),De.SheetNames=d,De.Workbook=K,De.SSF=ur(ot),De.Props=F,De.Custprops=P,De}function lb(e,t){switch(vb(t=t||{}),t.type||"base64"){case"base64":return ub(ka(e),t);case"binary":case"buffer":case"file":return ub(e,t);case"array":return ub(Ro(e),t)}}function Jle(e,t){var r=[];return e.Props&&r.push(Ste(e.Props,t)),e.Custprops&&r.push(Ete(e.Props,e.Custprops)),r.join("")}function Qle(){return""}function ece(e,t){var r=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];return t.cellXfs.forEach(function(n,a){var i=[];i.push($e("NumberFormat",null,{"ss:Format":er(ot[n.numFmtId])}));var s={"ss:ID":"s"+(21+a)};r.push($e("Style",i.join(""),s))}),$e("Styles",r.join(""))}function W9(e){return $e("NamedRange",null,{"ss:Name":e.Name,"ss:RefersTo":"="+tb(e.Ref,{r:0,c:0})})}function tce(e){if(!((e||{}).Workbook||{}).Names)return"";for(var t=e.Workbook.Names,r=[],n=0;n<t.length;++n){var a=t[n];a.Sheet==null&&(a.Name.match(/^_xlfn\./)||r.push(W9(a)))}return $e("Names",r.join(""))}function rce(e,t,r,n){if(!e||!((n||{}).Workbook||{}).Names)return"";for(var a=n.Workbook.Names,i=[],s=0;s<a.length;++s){var o=a[s];o.Sheet==r&&(o.Name.match(/^_xlfn\./)||i.push(W9(o)))}return i.join("")}function nce(e,t,r,n){if(!e)return"";var a=[];if(e["!margins"]&&(a.push("<PageSetup>"),e["!margins"].header&&a.push($e("Header",null,{"x:Margin":e["!margins"].header})),e["!margins"].footer&&a.push($e("Footer",null,{"x:Margin":e["!margins"].footer})),a.push($e("PageMargins",null,{"x:Bottom":e["!margins"].bottom||"0.75","x:Left":e["!margins"].left||"0.7","x:Right":e["!margins"].right||"0.7","x:Top":e["!margins"].top||"0.75"})),a.push("</PageSetup>")),n&&n.Workbook&&n.Workbook.Sheets&&n.Workbook.Sheets[r])if(n.Workbook.Sheets[r].Hidden)a.push($e("Visible",n.Workbook.Sheets[r].Hidden==1?"SheetHidden":"SheetVeryHidden",{}));else{for(var i=0;i<r&&!(n.Workbook.Sheets[i]&&!n.Workbook.Sheets[i].Hidden);++i);i==r&&a.push("<Selected/>")}return((((n||{}).Workbook||{}).Views||[])[0]||{}).RTL&&a.push("<DisplayRightToLeft/>"),e["!protect"]&&(a.push(yn("ProtectContents","True")),e["!protect"].objects&&a.push(yn("ProtectObjects","True")),e["!protect"].scenarios&&a.push(yn("ProtectScenarios","True")),e["!protect"].selectLockedCells!=null&&!e["!protect"].selectLockedCells?a.push(yn("EnableSelection","NoSelection")):e["!protect"].selectUnlockedCells!=null&&!e["!protect"].selectUnlockedCells&&a.push(yn("EnableSelection","UnlockedCells")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach(function(s){e["!protect"][s[0]]&&a.push("<"+s[1]+"/>")})),a.length==0?"":$e("WorksheetOptions",a.join(""),{xmlns:Oa.x})}function ace(e){return e.map(function(t){var r=kee(t.t||""),n=$e("ss:Data",r,{xmlns:"http://www.w3.org/TR/REC-html40"});return $e("Comment",n,{"ss:Author":t.a})}).join("")}function ice(e,t,r,n,a,i,s){if(!e||e.v==null&&e.f==null)return"";var o={};if(e.f&&(o["ss:Formula"]="="+er(tb(e.f,s))),e.F&&e.F.slice(0,t.length)==t){var u=Ar(e.F.slice(t.length+1));o["ss:ArrayRange"]="RC:R"+(u.r==s.r?"":"["+(u.r-s.r)+"]")+"C"+(u.c==s.c?"":"["+(u.c-s.c)+"]")}if(e.l&&e.l.Target&&(o["ss:HRef"]=er(e.l.Target),e.l.Tooltip&&(o["x:HRefScreenTip"]=er(e.l.Tooltip))),r["!merges"])for(var l=r["!merges"],f=0;f!=l.length;++f)l[f].s.c!=s.c||l[f].s.r!=s.r||(l[f].e.c>l[f].s.c&&(o["ss:MergeAcross"]=l[f].e.c-l[f].s.c),l[f].e.r>l[f].s.r&&(o["ss:MergeDown"]=l[f].e.r-l[f].s.r));var d="",p="";switch(e.t){case"z":if(!n.sheetStubs)return"";break;case"n":d="Number",p=String(e.v);break;case"b":d="Boolean",p=e.v?"1":"0";break;case"e":d="Error",p=Xs[e.v];break;case"d":d="DateTime",p=new Date(e.v).toISOString(),e.z==null&&(e.z=e.z||ot[14]);break;case"s":d="String",p=Cee(e.v||"");break}var v=Uo(n.cellXfs,e,n);o["ss:StyleID"]="s"+(21+v),o["ss:Index"]=s.c+1;var _=e.v!=null?p:"",x=e.t=="z"?"":'<Data ss:Type="'+d+'">'+_+"</Data>";return(e.c||[]).length>0&&(x+=ace(e.c)),$e("Cell",x,o)}function sce(e,t){var r='<Row ss:Index="'+(e+1)+'"';return t&&(t.hpt&&!t.hpx&&(t.hpx=Rc(t.hpt)),t.hpx&&(r+=' ss:AutoFitHeight="0" ss:Height="'+t.hpx+'"'),t.hidden&&(r+=' ss:Hidden="1"')),r+">"}function oce(e,t,r,n){if(!e["!ref"])return"";var a=Mt(e["!ref"]),i=e["!merges"]||[],s=0,o=[];e["!cols"]&&e["!cols"].forEach(function(w,C){jo(w);var E=!!w.width,b=om(C,w),h={"ss:Index":C+1};E&&(h["ss:Width"]=kd(b.width)),w.hidden&&(h["ss:Hidden"]="1"),o.push($e("Column",null,h))});for(var u=Array.isArray(e),l=a.s.r;l<=a.e.r;++l){for(var f=[sce(l,(e["!rows"]||[])[l])],d=a.s.c;d<=a.e.c;++d){var p=!1;for(s=0;s!=i.length;++s)if(!(i[s].s.c>d)&&!(i[s].s.r>l)&&!(i[s].e.c<d)&&!(i[s].e.r<l)){(i[s].s.c!=d||i[s].s.r!=l)&&(p=!0);break}if(!p){var v={r:l,c:d},_=ht(v),x=u?(e[l]||[])[d]:e[_];f.push(ice(x,_,e,t,r,n,v))}}f.push("</Row>"),f.length>2&&o.push(f.join(""))}return o.join("")}function uce(e,t,r){var n=[],a=r.SheetNames[e],i=r.Sheets[a],s=i?rce(i,t,e,r):"";return s.length>0&&n.push("<Names>"+s+"</Names>"),s=i?oce(i,t,e,r):"",s.length>0&&n.push("<Table>"+s+"</Table>"),n.push(nce(i,t,e,r)),n.join("")}function lce(e,t){t||(t={}),e.SSF||(e.SSF=ur(ot)),e.SSF&&(Cc(),dd(e.SSF),t.revssf=jp(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF,t.cellXfs=[],Uo(t.cellXfs,{},{revssf:{General:0}}));var r=[];r.push(Jle(e,t)),r.push(Qle()),r.push(""),r.push("");for(var n=0;n<e.SheetNames.length;++n)r.push($e("Worksheet",uce(n,t,e),{"ss:Name":er(e.SheetNames[n])}));return r[2]=ece(e,t),r[3]=tce(e),Ur+$e("Workbook",r.join(""),{xmlns:Oa.ss,"xmlns:o":Oa.o,"xmlns:x":Oa.x,"xmlns:ss":Oa.ss,"xmlns:dt":Oa.dt,"xmlns:html":Oa.html})}function cce(e){var t={},r=e.content;if(r.l=28,t.AnsiUserType=r.read_shift(0,"lpstr-ansi"),t.AnsiClipboardFormat=rte(r),r.length-r.l<=4)return t;var n=r.read_shift(4);if(n==0||n>40||(r.l-=4,t.Reserved1=r.read_shift(0,"lpstr-ansi"),r.length-r.l<=4)||(n=r.read_shift(4),n!==1907505652)||(t.UnicodeClipboardFormat=nte(r),n=r.read_shift(4),n==0||n>40))return t;r.l-=4,t.Reserved2=r.read_shift(0,"lpwstr")}var fce=[60,1084,2066,2165,2175];function dce(e,t,r,n,a){var i=n,s=[],o=r.slice(r.l,r.l+i);if(a&&a.enc&&a.enc.insitu&&o.length>0)switch(e){case 9:case 521:case 1033:case 2057:case 47:case 405:case 225:case 406:case 312:case 404:case 10:break;case 133:break;default:a.enc.insitu(o)}s.push(o),r.l+=i;for(var u=Gs(r,r.l),l=fb[u],f=0;l!=null&&fce.indexOf(u)>-1;)i=Gs(r,r.l+2),f=r.l+4,u==2066?f+=4:(u==2165||u==2175)&&(f+=12),o=r.slice(f,r.l+4+i),s.push(o),r.l+=4+i,l=fb[u=Gs(r,r.l)];var d=un(s);bn(d,0);var p=0;d.lens=[];for(var v=0;v<s.length;++v)d.lens.push(p),p+=s[v].length;if(d.length<n)throw"XLS Record 0x"+e.toString(16)+" Truncated: "+d.length+" < "+n;return t.f(d,d.length,a)}function hs(e,t,r){if(e.t!=="z"&&e.XF){var n=0;try{n=e.z||e.XF.numFmtId||0,t.cellNF&&(e.z=ot[n])}catch(i){if(t.WTF)throw i}if(!t||t.cellText!==!1)try{e.t==="e"?e.w=e.w||Xs[e.v]:n===0||n=="General"?e.t==="n"?(e.v|0)===e.v?e.w=e.v.toString(10):e.w=fd(e.v):e.w=ju(e.v):e.w=Aa(n,e.v,{date1904:!!r,dateNF:t&&t.dateNF})}catch(i){if(t.WTF)throw i}if(t.cellDates&&n&&e.t=="n"&&$u(ot[n]||String(n))){var a=Io(e.v);a&&(e.t="d",e.v=new Date(a.y,a.m-1,a.d,a.H,a.M,a.S,a.u))}}}function um(e,t,r){return{v:e,ixfe:t,t:r}}function hce(e,t){var r={opts:{}},n={},a=t.dense?[]:{},i={},s={},o=null,u=[],l="",f={},d,p="",v,_,x,w,C={},E=[],b,h,g=[],y=[],S={Sheets:[],WBProps:{date1904:!1},Views:[{}]},A={},k=function(_t){return _t<8?Xu[_t]:_t<64&&y[_t-8]||Xu[_t]},F=function(_t,lr,dn){var wr=lr.XF.data;if(!(!wr||!wr.patternType||!dn||!dn.cellStyles)){lr.s={},lr.s.patternType=wr.patternType;var Da;(Da=Cd(k(wr.icvFore)))&&(lr.s.fgColor={rgb:Da}),(Da=Cd(k(wr.icvBack)))&&(lr.s.bgColor={rgb:Da})}},P=function(_t,lr,dn){if(!(G>1)&&!(dn.sheetRows&&_t.r>=dn.sheetRows)){if(dn.cellStyles&&lr.XF&&lr.XF.data&&F(_t,lr,dn),delete lr.ixfe,delete lr.XF,d=_t,p=ht(_t),(!s||!s.s||!s.e)&&(s={s:{r:0,c:0},e:{r:0,c:0}}),_t.r<s.s.r&&(s.s.r=_t.r),_t.c<s.s.c&&(s.s.c=_t.c),_t.r+1>s.e.r&&(s.e.r=_t.r+1),_t.c+1>s.e.c&&(s.e.c=_t.c+1),dn.cellFormula&&lr.f){for(var wr=0;wr<E.length;++wr)if(!(E[wr][0].s.c>_t.c||E[wr][0].s.r>_t.r)&&!(E[wr][0].e.c<_t.c||E[wr][0].e.r<_t.r)){lr.F=St(E[wr][0]),(E[wr][0].s.c!=_t.c||E[wr][0].s.r!=_t.r)&&delete lr.f,lr.f&&(lr.f=""+Mn(E[wr][1],s,_t,L,j));break}}dn.dense?(a[_t.r]||(a[_t.r]=[]),a[_t.r][_t.c]=lr):a[p]=lr}},j={enc:!1,sbcch:0,snames:[],sharedf:C,arrayf:E,rrtabid:[],lastuser:"",biff:8,codepage:0,winlocked:0,cellStyles:!!t&&!!t.cellStyles,WTF:!!t&&!!t.wtf};t.password&&(j.password=t.password);var N,I=[],B=[],O=[],M=[],V=!1,L=[];L.SheetNames=j.snames,L.sharedf=j.sharedf,L.arrayf=j.arrayf,L.names=[],L.XTI=[];var W=0,G=0,H=0,Q=[],K=[],te;j.codepage=1200,Ya(1200);for(var se=!1;e.l<e.length-1;){var le=e.l,ge=e.read_shift(2);if(ge===0&&W===10)break;var ye=e.l===e.length?0:e.read_shift(2),be=fb[ge];if(be&&be.f){if(t.bookSheets&&W===133&&ge!==133)break;if(W=ge,be.r===2||be.r==12){var Be=e.read_shift(2);if(ye-=2,!j.enc&&Be!==ge&&((Be&255)<<8|Be>>8)!==ge)throw new Error("rt mismatch: "+Be+"!="+ge);be.r==12&&(e.l+=10,ye-=10)}var J={};if(ge===10?J=be.f(e,ye,j):J=dce(ge,be,e,ye,j),G==0&&[9,521,1033,2057].indexOf(W)===-1)continue;switch(ge){case 34:r.opts.Date1904=S.WBProps.date1904=J;break;case 134:r.opts.WriteProtect=!0;break;case 47:if(j.enc||(e.l=0),j.enc=J,!t.password)throw new Error("File is password-protected");if(J.valid==null)throw new Error("Encryption scheme unsupported");if(!J.valid)throw new Error("Password is incorrect");break;case 92:j.lastuser=J;break;case 66:var qe=Number(J);switch(qe){case 21010:qe=1200;break;case 32768:qe=1e4;break;case 32769:qe=1252;break}Ya(j.codepage=qe),se=!0;break;case 317:j.rrtabid=J;break;case 25:j.winlocked=J;break;case 439:r.opts.RefreshAll=J;break;case 12:r.opts.CalcCount=J;break;case 16:r.opts.CalcDelta=J;break;case 17:r.opts.CalcIter=J;break;case 13:r.opts.CalcMode=J;break;case 14:r.opts.CalcPrecision=J;break;case 95:r.opts.CalcSaveRecalc=J;break;case 15:j.CalcRefMode=J;break;case 2211:r.opts.FullCalc=J;break;case 129:J.fDialog&&(a["!type"]="dialog"),J.fBelow||((a["!outline"]||(a["!outline"]={})).above=!0),J.fRight||((a["!outline"]||(a["!outline"]={})).left=!0);break;case 224:g.push(J);break;case 430:L.push([J]),L[L.length-1].XTI=[];break;case 35:case 547:L[L.length-1].push(J);break;case 24:case 536:te={Name:J.Name,Ref:Mn(J.rgce,s,null,L,j)},J.itab>0&&(te.Sheet=J.itab-1),L.names.push(te),L[0]||(L[0]=[],L[0].XTI=[]),L[L.length-1].push(J),J.Name=="_xlnm._FilterDatabase"&&J.itab>0&&J.rgce&&J.rgce[0]&&J.rgce[0][0]&&J.rgce[0][0][0]=="PtgArea3d"&&(K[J.itab-1]={ref:St(J.rgce[0][0][1][2])});break;case 22:j.ExternCount=J;break;case 23:L.length==0&&(L[0]=[],L[0].XTI=[]),L[L.length-1].XTI=L[L.length-1].XTI.concat(J),L.XTI=L.XTI.concat(J);break;case 2196:if(j.biff<8)break;te!=null&&(te.Comment=J[1]);break;case 18:a["!protect"]=J;break;case 19:J!==0&&j.WTF&&console.error("Password verifier: "+J);break;case 133:i[J.pos]=J,j.snames.push(J.name);break;case 10:{if(--G)break;if(s.e){if(s.e.r>0&&s.e.c>0){if(s.e.r--,s.e.c--,a["!ref"]=St(s),t.sheetRows&&t.sheetRows<=s.e.r){var _e=s.e.r;s.e.r=t.sheetRows-1,a["!fullref"]=a["!ref"],a["!ref"]=St(s),s.e.r=_e}s.e.r++,s.e.c++}I.length>0&&(a["!merges"]=I),B.length>0&&(a["!objects"]=B),O.length>0&&(a["!cols"]=O),M.length>0&&(a["!rows"]=M),S.Sheets.push(A)}l===""?f=a:n[l]=a,a=t.dense?[]:{}}break;case 9:case 521:case 1033:case 2057:{if(j.biff===8&&(j.biff={9:2,521:3,1033:4}[ge]||{512:2,768:3,1024:4,1280:5,1536:8,2:2,7:2}[J.BIFFVer]||8),j.biffguess=J.BIFFVer==0,J.BIFFVer==0&&J.dt==4096&&(j.biff=5,se=!0,Ya(j.codepage=28591)),j.biff==8&&J.BIFFVer==0&&J.dt==16&&(j.biff=2),G++)break;if(a=t.dense?[]:{},j.biff<8&&!se&&(se=!0,Ya(j.codepage=t.codepage||1252)),j.biff<5||J.BIFFVer==0&&J.dt==4096){l===""&&(l="Sheet1"),s={s:{r:0,c:0},e:{r:0,c:0}};var ze={pos:e.l-ye,name:l};i[ze.pos]=ze,j.snames.push(l)}else l=(i[le]||{name:""}).name;J.dt==32&&(a["!type"]="chart"),J.dt==64&&(a["!type"]="macro"),I=[],B=[],j.arrayf=E=[],O=[],M=[],V=!1,A={Hidden:(i[le]||{hs:0}).hs,name:l}}break;case 515:case 3:case 2:a["!type"]=="chart"&&(t.dense?(a[J.r]||[])[J.c]:a[ht({c:J.c,r:J.r})])&&++J.c,b={ixfe:J.ixfe,XF:g[J.ixfe]||{},v:J.val,t:"n"},H>0&&(b.z=Q[b.ixfe>>8&63]),hs(b,t,r.opts.Date1904),P({c:J.c,r:J.r},b,t);break;case 5:case 517:b={ixfe:J.ixfe,XF:g[J.ixfe],v:J.val,t:J.t},H>0&&(b.z=Q[b.ixfe>>8&63]),hs(b,t,r.opts.Date1904),P({c:J.c,r:J.r},b,t);break;case 638:b={ixfe:J.ixfe,XF:g[J.ixfe],v:J.rknum,t:"n"},H>0&&(b.z=Q[b.ixfe>>8&63]),hs(b,t,r.opts.Date1904),P({c:J.c,r:J.r},b,t);break;case 189:for(var We=J.c;We<=J.C;++We){var De=J.rkrec[We-J.c][0];b={ixfe:De,XF:g[De],v:J.rkrec[We-J.c][1],t:"n"},H>0&&(b.z=Q[b.ixfe>>8&63]),hs(b,t,r.opts.Date1904),P({c:We,r:J.r},b,t)}break;case 6:case 518:case 1030:{if(J.val=="String"){o=J;break}if(b=um(J.val,J.cell.ixfe,J.tt),b.XF=g[b.ixfe],t.cellFormula){var ut=J.formula;if(ut&&ut[0]&&ut[0][0]&&ut[0][0][0]=="PtgExp"){var Ye=ut[0][0][1][0],it=ut[0][0][1][1],Je=ht({r:Ye,c:it});C[Je]?b.f=""+Mn(J.formula,s,J.cell,L,j):b.F=((t.dense?(a[Ye]||[])[it]:a[Je])||{}).F}else b.f=""+Mn(J.formula,s,J.cell,L,j)}H>0&&(b.z=Q[b.ixfe>>8&63]),hs(b,t,r.opts.Date1904),P(J.cell,b,t),o=J}break;case 7:case 519:if(o)o.val=J,b=um(J,o.cell.ixfe,"s"),b.XF=g[b.ixfe],t.cellFormula&&(b.f=""+Mn(o.formula,s,o.cell,L,j)),H>0&&(b.z=Q[b.ixfe>>8&63]),hs(b,t,r.opts.Date1904),P(o.cell,b,t),o=null;else throw new Error("String record expects Formula");break;case 33:case 545:{E.push(J);var Xe=ht(J[0].s);if(v=t.dense?(a[J[0].s.r]||[])[J[0].s.c]:a[Xe],t.cellFormula&&v){if(!o||!Xe||!v)break;v.f=""+Mn(J[1],s,J[0],L,j),v.F=St(J[0])}}break;case 1212:{if(!t.cellFormula)break;if(p){if(!o)break;C[ht(o.cell)]=J[0],v=t.dense?(a[o.cell.r]||[])[o.cell.c]:a[ht(o.cell)],(v||{}).f=""+Mn(J[0],s,d,L,j)}}break;case 253:b=um(u[J.isst].t,J.ixfe,"s"),u[J.isst].h&&(b.h=u[J.isst].h),b.XF=g[b.ixfe],H>0&&(b.z=Q[b.ixfe>>8&63]),hs(b,t,r.opts.Date1904),P({c:J.c,r:J.r},b,t);break;case 513:t.sheetStubs&&(b={ixfe:J.ixfe,XF:g[J.ixfe],t:"z"},H>0&&(b.z=Q[b.ixfe>>8&63]),hs(b,t,r.opts.Date1904),P({c:J.c,r:J.r},b,t));break;case 190:if(t.sheetStubs)for(var xt=J.c;xt<=J.C;++xt){var or=J.ixfe[xt-J.c];b={ixfe:or,XF:g[or],t:"z"},H>0&&(b.z=Q[b.ixfe>>8&63]),hs(b,t,r.opts.Date1904),P({c:xt,r:J.r},b,t)}break;case 214:case 516:case 4:b=um(J.val,J.ixfe,"s"),b.XF=g[b.ixfe],H>0&&(b.z=Q[b.ixfe>>8&63]),hs(b,t,r.opts.Date1904),P({c:J.c,r:J.r},b,t);break;case 0:case 512:G===1&&(s=J);break;case 252:u=J;break;case 1054:if(j.biff==4){Q[H++]=J[1];for(var Fr=0;Fr<H+163&&ot[Fr]!=J[1];++Fr);Fr>=163&&us(J[1],H+163)}else us(J[1],J[0]);break;case 30:{Q[H++]=J;for(var Pa=0;Pa<H+163&&ot[Pa]!=J;++Pa);Pa>=163&&us(J,H+163)}break;case 229:I=I.concat(J);break;case 93:B[J.cmo[0]]=j.lastobj=J;break;case 438:j.lastobj.TxO=J;break;case 127:j.lastobj.ImData=J;break;case 440:for(w=J[0].s.r;w<=J[0].e.r;++w)for(x=J[0].s.c;x<=J[0].e.c;++x)v=t.dense?(a[w]||[])[x]:a[ht({c:x,r:w})],v&&(v.l=J[1]);break;case 2048:for(w=J[0].s.r;w<=J[0].e.r;++w)for(x=J[0].s.c;x<=J[0].e.c;++x)v=t.dense?(a[w]||[])[x]:a[ht({c:x,r:w})],v&&v.l&&(v.l.Tooltip=J[1]);break;case 28:{if(j.biff<=5&&j.biff>=2)break;v=t.dense?(a[J[0].r]||[])[J[0].c]:a[ht(J[0])];var oa=B[J[2]];v||(t.dense?(a[J[0].r]||(a[J[0].r]=[]),v=a[J[0].r][J[0].c]={t:"z"}):v=a[ht(J[0])]={t:"z"},s.e.r=Math.max(s.e.r,J[0].r),s.s.r=Math.min(s.s.r,J[0].r),s.e.c=Math.max(s.e.c,J[0].c),s.s.c=Math.min(s.s.c,J[0].c)),v.c||(v.c=[]),_={a:J[1],t:oa.TxO.t},v.c.push(_)}break;case 2173:tie(g[J.ixfe],J.ext);break;case 125:{if(!j.cellStyles)break;for(;J.e>=J.s;)O[J.e--]={width:J.w/256,level:J.level||0,hidden:!!(J.flags&1)},V||(V=!0,Zy(J.w/256)),jo(O[J.e+1])}break;case 520:{var Cr={};J.level!=null&&(M[J.r]=Cr,Cr.level=J.level),J.hidden&&(M[J.r]=Cr,Cr.hidden=!0),J.hpt&&(M[J.r]=Cr,Cr.hpt=J.hpt,Cr.hpx=Rc(J.hpt))}break;case 38:case 39:case 40:case 41:a["!margins"]||tl(a["!margins"]={}),a["!margins"][{38:"left",39:"right",40:"top",41:"bottom"}[ge]]=J;break;case 161:a["!margins"]||tl(a["!margins"]={}),a["!margins"].header=J.header,a["!margins"].footer=J.footer;break;case 574:J.RTL&&(S.Views[0].RTL=!0);break;case 146:y=J;break;case 2198:N=J;break;case 140:h=J;break;case 442:l?A.CodeName=J||A.name:S.WBProps.CodeName=J||"ThisWorkbook";break}}else be||console.error("Missing Info for XLS Record 0x"+ge.toString(16)),e.l+=ye}return r.SheetNames=Dr(i).sort(function(Sn,_t){return Number(Sn)-Number(_t)}).map(function(Sn){return i[Sn].name}),t.bookSheets||(r.Sheets=n),!r.SheetNames.length&&f["!ref"]?(r.SheetNames.push("Sheet1"),r.Sheets&&(r.Sheets.Sheet1=f)):r.Preamble=f,r.Sheets&&K.forEach(function(Sn,_t){r.Sheets[r.SheetNames[_t]]["!autofilter"]=Sn}),r.Strings=u,r.SSF=ur(ot),j.enc&&(r.Encryption=j.enc),N&&(r.Themes=N),r.Metadata={},h!==void 0&&(r.Metadata.Country=h),L.names.length>0&&(S.Names=L.names),r.Workbook=S,r}var Md={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function pce(e,t,r){var n=nt.find(e,"/!DocumentSummaryInformation");if(n&&n.size>0)try{var a=O7(n,Ly,Md.DSI);for(var i in a)t[i]=a[i]}catch(l){if(r.WTF)throw l}var s=nt.find(e,"/!SummaryInformation");if(s&&s.size>0)try{var o=O7(s,By,Md.SI);for(var u in o)t[u]==null&&(t[u]=o[u])}catch(l){if(r.WTF)throw l}t.HeadingPairs&&t.TitlesOfParts&&(x7(t.HeadingPairs,t.TitlesOfParts,t,r),delete t.HeadingPairs,delete t.TitlesOfParts)}function mce(e,t){var r=[],n=[],a=[],i=0,s,o=wF(Ly,"n"),u=wF(By,"n");if(e.Props)for(s=Dr(e.Props),i=0;i<s.length;++i)(Object.prototype.hasOwnProperty.call(o,s[i])?r:Object.prototype.hasOwnProperty.call(u,s[i])?n:a).push([s[i],e.Props[s[i]]]);if(e.Custprops)for(s=Dr(e.Custprops),i=0;i<s.length;++i)Object.prototype.hasOwnProperty.call(e.Props||{},s[i])||(Object.prototype.hasOwnProperty.call(o,s[i])?r:Object.prototype.hasOwnProperty.call(u,s[i])?n:a).push([s[i],e.Custprops[s[i]]]);var l=[];for(i=0;i<a.length;++i)A7.indexOf(a[i][0])>-1||v7.indexOf(a[i][0])>-1||a[i][1]!=null&&l.push(a[i]);n.length&&nt.utils.cfb_add(t,"/SummaryInformation",P7(n,Md.SI,u,By)),(r.length||l.length)&&nt.utils.cfb_add(t,"/DocumentSummaryInformation",P7(r,Md.DSI,o,Ly,l.length?l:null,Md.UDI))}function cb(e,t){t||(t={}),vb(t),Rp(),t.codepage&&Dp(t.codepage);var r,n;if(e.FullPaths){if(nt.find(e,"/encryption"))throw new Error("File is password-protected");r=nt.find(e,"!CompObj"),n=nt.find(e,"/Workbook")||nt.find(e,"/Book")}else{switch(t.type){case"base64":e=Ta(ka(e));break;case"binary":e=Ta(e);break;case"buffer":break;case"array":Array.isArray(e)||(e=Array.prototype.slice.call(e));break}bn(e,0),n={content:e}}var a,i;if(r&&cce(r),t.bookProps&&!t.bookSheets)a={};else{var s=At?"buffer":"array";if(n&&n.content)a=hce(n.content,t);else if((i=nt.find(e,"PerfectOffice_MAIN"))&&i.content)a=el.to_workbook(i.content,(t.type=s,t));else if((i=nt.find(e,"NativeContent_MAIN"))&&i.content)a=el.to_workbook(i.content,(t.type=s,t));else throw(i=nt.find(e,"MN0"))&&i.content?new Error("Unsupported Works 4 for Mac file"):new Error("Cannot find Workbook stream");t.bookVBA&&e.FullPaths&&nt.find(e,"/_VBA_PROJECT_CUR/VBA/dir")&&(a.vbaraw=Fie(e))}var o={};return e.FullPaths&&pce(e,o,t),a.Props=a.Custprops=o,t.bookFiles&&(a.cfb=e),a}function gce(e,t){var r=t||{},n=nt.utils.cfb_new({root:"R"}),a="/Workbook";switch(r.bookType||"xls"){case"xls":r.bookType="biff8";case"xla":r.bookType||(r.bookType="xla");case"biff8":a="/Workbook",r.biff=8;break;case"biff5":a="/Book",r.biff=5;break;default:throw new Error("invalid type "+r.bookType+" for XLS CFB")}return nt.utils.cfb_add(n,a,V9(e,r)),r.biff==8&&(e.Props||e.Custprops)&&mce(e,n),r.biff==8&&e.vbaraw&&Oie(n,nt.read(e.vbaraw,{type:typeof e.vbaraw=="string"?"binary":"buffer"})),n}var Ld={0:{f:Uoe},1:{f:Xoe},2:{f:pue},3:{f:nue},4:{f:Qoe},5:{f:fue},6:{f:_ue},7:{f:oue},8:{f:kue},9:{f:Cue},10:{f:Sue},11:{f:Eue},12:{f:Zoe},13:{f:gue},14:{f:iue},15:{f:tue},16:{f:I9},17:{f:bue},18:{f:lue},19:{f:Py},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:yle},40:{},42:{},43:{f:_ae},44:{f:vae},45:{f:wae},46:{f:Eae},47:{f:Sae},48:{},49:{f:Wee},50:{},51:{f:aie},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:Z7},62:{f:xue},63:{f:hie},64:{f:zue},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:Pn,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:Bue},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:Goe},148:{f:Woe,p:16},151:{f:Due},152:{},153:{f:vle},154:{},155:{},156:{f:mle},157:{},158:{},159:{T:1,f:Ine},160:{T:-1},161:{T:1,f:Gu},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:Tue},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:rie},336:{T:-1},337:{f:oie,T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:Ry},357:{},358:{},359:{},360:{T:1},361:{},362:{f:X7},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:Rue},427:{f:Iue},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:Mue},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:qoe},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:Oue},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:Ry},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:Eie},633:{T:1},634:{T:-1},635:{T:1,f:wie},636:{T:-1},637:{f:Yee},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:ile},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:Hue},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}},fb={6:{f:nb},10:{f:Bo},12:{f:Gr},13:{f:Gr},14:{f:zr},15:{f:zr},16:{f:Rn},17:{f:zr},18:{f:zr},19:{f:Gr},20:{f:q7},21:{f:q7},23:{f:X7},24:{f:Y7},25:{f:zr},26:{},27:{},28:{f:Hre},29:{},34:{f:zr},35:{f:G7},38:{f:Rn},39:{f:Rn},40:{f:Rn},41:{f:Rn},42:{f:zr},43:{f:zr},47:{f:tae},49:{f:gre},51:{f:Gr},60:{},61:{f:fre},64:{f:zr},65:{f:mre},66:{f:Gr},77:{},80:{},81:{},82:{},85:{f:Gr},89:{},90:{},91:{},92:{f:ere},93:{f:qre},94:{},95:{f:zr},96:{},97:{},99:{f:zr},125:{f:Z7},128:{f:Pre},129:{f:rre},130:{f:Gr},131:{f:zr},132:{f:zr},133:{f:nre},134:{},140:{f:ene},141:{f:Gr},144:{},146:{f:nne},151:{},152:{},153:{},154:{},155:{},156:{f:Gr},157:{},158:{},160:{f:cne},161:{f:sne},174:{},175:{},176:{},177:{},178:{},180:{},181:{},182:{},184:{},185:{},189:{f:Tre},190:{f:Are},193:{f:Bo},197:{},198:{},199:{},200:{},201:{},202:{f:zr},203:{},204:{},205:{},206:{},207:{},208:{},209:{},210:{},211:{},213:{},215:{},216:{},217:{},218:{f:Gr},220:{},221:{f:zr},222:{},224:{f:Ore},225:{f:Qte},226:{f:Bo},227:{},229:{f:Wre},233:{},235:{},236:{},237:{},239:{},240:{},241:{},242:{},244:{},245:{},246:{},247:{},248:{},249:{},251:{},252:{f:ire},253:{f:xre},255:{f:ore},256:{},259:{},290:{},311:{},312:{},315:{},317:{f:D7},318:{},319:{},320:{},330:{},331:{},333:{},334:{},335:{},336:{},337:{},338:{},339:{},340:{},351:{},352:{f:zr},353:{f:Bo},401:{},402:{},403:{},404:{},405:{},406:{},407:{},408:{},425:{},426:{},427:{},428:{},429:{},430:{f:Mre},431:{f:zr},432:{},433:{},434:{},437:{},438:{f:Xre},439:{f:zr},440:{f:Kre},441:{},442:{f:Ed},443:{},444:{f:Gr},445:{},446:{},448:{f:Bo},449:{f:cre,r:2},450:{f:Bo},512:{f:H7},513:{f:lne},515:{f:Ire},516:{f:yre},517:{f:V7},519:{f:fne},520:{f:ure},523:{},545:{f:K7},549:{f:z7},566:{},574:{f:hre},638:{f:kre},659:{},1048:{},1054:{f:wre},1084:{},1212:{f:$re},2048:{f:Jre},2049:{},2050:{},2051:{},2052:{},2053:{},2054:{},2055:{},2056:{},2057:{f:em},2058:{},2059:{},2060:{},2061:{},2062:{},2063:{},2064:{},2066:{},2067:{},2128:{},2129:{},2130:{},2131:{},2132:{},2133:{},2134:{},2135:{},2136:{},2137:{},2138:{},2146:{},2147:{r:12},2148:{},2149:{},2150:{},2151:{f:Bo},2152:{},2154:{},2155:{},2156:{},2161:{},2162:{},2164:{},2165:{},2166:{},2167:{},2168:{},2169:{},2170:{},2171:{},2172:{f:ane,r:12},2173:{f:eie,r:12},2174:{},2175:{},2180:{},2181:{},2182:{},2183:{},2184:{},2185:{},2186:{},2187:{},2188:{f:zr,r:12},2189:{},2190:{r:12},2191:{},2192:{},2194:{},2195:{},2196:{f:jre,r:12},2197:{},2198:{f:Yae,r:12},2199:{},2200:{},2201:{},2202:{f:Ure,r:12},2203:{f:Bo},2204:{},2205:{},2206:{},2207:{},2211:{f:lre},2212:{},2213:{},2214:{},2215:{},4097:{},4098:{},4099:{},4102:{},4103:{},4105:{},4106:{},4107:{},4108:{},4109:{},4116:{},4117:{},4118:{},4119:{},4120:{},4121:{},4122:{},4123:{},4124:{},4125:{},4126:{},4127:{},4128:{},4129:{},4130:{},4132:{},4133:{},4134:{f:Gr},4135:{},4146:{},4147:{},4148:{},4149:{},4154:{},4156:{},4157:{},4158:{},4159:{},4160:{},4161:{},4163:{},4164:{f:one},4165:{},4166:{},4168:{},4170:{},4171:{},4174:{},4175:{},4176:{},4177:{},4187:{},4188:{f:rne},4189:{},4191:{},4192:{},4193:{},4194:{},4195:{},4196:{},4197:{},4198:{},4199:{},4200:{},0:{f:H7},1:{},2:{f:gne},3:{f:pne},4:{f:hne},5:{f:V7},7:{f:xne},8:{},9:{f:em},11:{},22:{f:Gr},30:{f:Ere},31:{},32:{},33:{f:K7},36:{},37:{f:z7},50:{f:_ne},62:{},52:{},67:{},68:{f:Gr},69:{},86:{},126:{},127:{f:dne},135:{},136:{},137:{},145:{},148:{},149:{},150:{},169:{},171:{},188:{},191:{},192:{},194:{},195:{},214:{f:yne},223:{},234:{},354:{},421:{},518:{f:nb},521:{f:em},536:{f:Y7},547:{f:G7},561:{},579:{},1030:{f:nb},1033:{f:em},1091:{},2157:{},2163:{},2177:{},2240:{},2241:{},2242:{},2243:{},2244:{},2245:{},2246:{},2247:{},2248:{},2249:{},2250:{},2251:{},2262:{r:12},29282:{}};function Ue(e,t,r,n){var a=t;if(!isNaN(a)){var i=n||(r||[]).length||0,s=e.next(4);s.write_shift(2,a),s.write_shift(2,i),i>0&&Ty(r)&&e.push(r)}}function vce(e,t,r,n){var a=(r||[]).length||0;if(a<=8224)return Ue(e,t,r,a);var i=t;if(!isNaN(i)){for(var s=r.parts||[],o=0,u=0,l=0;l+(s[o]||8224)<=8224;)l+=s[o]||8224,o++;var f=e.next(4);for(f.write_shift(2,i),f.write_shift(2,l),e.push(r.slice(u,u+l)),u+=l;u<a;){for(f=e.next(4),f.write_shift(2,60),l=0;l+(s[o]||8224)<=8224;)l+=s[o]||8224,o++;f.write_shift(2,l),e.push(r.slice(u,u+l)),u+=l}}}function Bd(e,t,r){return e||(e=Ce(7)),e.write_shift(2,t),e.write_shift(2,r),e.write_shift(2,0),e.write_shift(1,0),e}function xce(e,t,r,n){var a=Ce(9);return Bd(a,e,t),R7(r,n||"b",a),a}function _ce(e,t,r){var n=Ce(8+2*r.length);return Bd(n,e,t),n.write_shift(1,r.length),n.write_shift(r.length,r,"sbcs"),n.l<n.length?n.slice(0,n.l):n}function yce(e,t,r,n){if(t.v!=null)switch(t.t){case"d":case"n":var a=t.t=="d"?Jr(_r(t.v)):t.v;a==(a|0)&&a>=0&&a<65536?Ue(e,2,vne(r,n,a)):Ue(e,3,mne(r,n,a));return;case"b":case"e":Ue(e,5,xce(r,n,t.v,t.t));return;case"s":case"str":Ue(e,4,_ce(r,n,(t.v||"").slice(0,255)));return}Ue(e,1,Bd(null,r,n))}function bce(e,t,r,n){var a=Array.isArray(t),i=Mt(t["!ref"]||"A1"),s,o="",u=[];if(i.e.c>255||i.e.r>16383){if(n.WTF)throw new Error("Range "+(t["!ref"]||"A1")+" exceeds format limit A1:IV16384");i.e.c=Math.min(i.e.c,255),i.e.r=Math.min(i.e.c,16383),s=St(i)}for(var l=i.s.r;l<=i.e.r;++l){o=Ir(l);for(var f=i.s.c;f<=i.e.c;++f){l===i.s.r&&(u[f]=br(f)),s=u[f]+o;var d=a?(t[l]||[])[f]:t[s];d&&yce(e,d,l,f)}}}function wce(e,t){for(var r=t||{},n=ia(),a=0,i=0;i<e.SheetNames.length;++i)e.SheetNames[i]==r.sheet&&(a=i);if(a==0&&r.sheet&&e.SheetNames[0]!=r.sheet)throw new Error("Sheet not found: "+r.sheet);return Ue(n,r.biff==4?1033:r.biff==3?521:9,qy(e,16,r)),bce(n,e.Sheets[e.SheetNames[a]],a,r),Ue(n,10),n.end()}function Sce(e,t,r){Ue(e,49,vre({sz:12,name:"Arial"},r))}function Ece(e,t,r){t&&[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var a=n[0];a<=n[1];++a)t[a]!=null&&Ue(e,1054,Sre(a,t[a],r))})}function Cce(e,t){var r=Ce(19);r.write_shift(4,2151),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(2,3),r.write_shift(1,1),r.write_shift(4,0),Ue(e,2151,r),r=Ce(39),r.write_shift(4,2152),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(2,3),r.write_shift(1,0),r.write_shift(4,0),r.write_shift(2,1),r.write_shift(4,4),r.write_shift(2,0),j7(Mt(t["!ref"]||"A1"),r),r.write_shift(4,4),Ue(e,2152,r)}function kce(e,t){for(var r=0;r<16;++r)Ue(e,224,W7({numFmtId:0,style:!0},0,t));t.cellXfs.forEach(function(n){Ue(e,224,W7(n,0,t))})}function Tce(e,t){for(var r=0;r<t["!links"].length;++r){var n=t["!links"][r];Ue(e,440,Zre(n)),n[1].Tooltip&&Ue(e,2048,Qre(n))}delete t["!links"]}function Ace(e,t){if(t){var r=0;t.forEach(function(n,a){++r<=256&&n&&Ue(e,125,ine(om(a,n),a))})}}function Fce(e,t,r,n,a){var i=16+Uo(a.cellXfs,t,a);if(t.v==null&&!t.bf){Ue(e,513,Qu(r,n,i));return}if(t.bf)Ue(e,6,roe(t,r,n,a,i));else switch(t.t){case"d":case"n":var s=t.t=="d"?Jr(_r(t.v)):t.v;Ue(e,515,Nre(r,n,s,i));break;case"b":case"e":Ue(e,517,Rre(r,n,t.v,i,a,t.t));break;case"s":case"str":if(a.bookSST){var o=ib(a.Strings,t.v,a.revStrings);Ue(e,253,_re(r,n,o,i))}else Ue(e,516,bre(r,n,(t.v||"").slice(0,255),i,a));break;default:Ue(e,513,Qu(r,n,i))}}function Oce(e,t,r){var n=ia(),a=r.SheetNames[e],i=r.Sheets[a]||{},s=(r||{}).Workbook||{},o=(s.Sheets||[])[e]||{},u=Array.isArray(i),l=t.biff==8,f,d="",p=[],v=Mt(i["!ref"]||"A1"),_=l?65536:16384;if(v.e.c>255||v.e.r>=_){if(t.WTF)throw new Error("Range "+(i["!ref"]||"A1")+" exceeds format limit A1:IV16384");v.e.c=Math.min(v.e.c,255),v.e.r=Math.min(v.e.c,_-1)}Ue(n,2057,qy(r,16,t)),Ue(n,13,Qa(1)),Ue(n,12,Qa(100)),Ue(n,15,Gn(!0)),Ue(n,17,Gn(!1)),Ue(n,16,Yu(.001)),Ue(n,95,Gn(!0)),Ue(n,42,Gn(!1)),Ue(n,43,Gn(!1)),Ue(n,130,Qa(1)),Ue(n,128,Dre()),Ue(n,131,Gn(!1)),Ue(n,132,Gn(!1)),l&&Ace(n,i["!cols"]),Ue(n,512,Cre(v,t)),l&&(i["!links"]=[]);for(var x=v.s.r;x<=v.e.r;++x){d=Ir(x);for(var w=v.s.c;w<=v.e.c;++w){x===v.s.r&&(p[w]=br(w)),f=p[w]+d;var C=u?(i[x]||[])[w]:i[f];C&&(Fce(n,C,x,w,t),l&&C.l&&i["!links"].push([f,C.l]))}}var E=o.CodeName||o.name||a;return l&&Ue(n,574,pre((s.Views||[])[0])),l&&(i["!merges"]||[]).length&&Ue(n,229,Vre(i["!merges"])),l&&Tce(n,i),Ue(n,442,I7(E)),l&&Cce(n,i),Ue(n,10),n.end()}function Pce(e,t,r){var n=ia(),a=(e||{}).Workbook||{},i=a.Sheets||[],s=a.WBProps||{},o=r.biff==8,u=r.biff==5;if(Ue(n,2057,qy(e,5,r)),r.bookType=="xla"&&Ue(n,135),Ue(n,225,o?Qa(1200):null),Ue(n,193,Rte(2)),u&&Ue(n,191),u&&Ue(n,192),Ue(n,226),Ue(n,92,tre("SheetJS",r)),Ue(n,66,Qa(o?1200:1252)),o&&Ue(n,353,Qa(0)),o&&Ue(n,448),Ue(n,317,une(e.SheetNames.length)),o&&e.vbaraw&&Ue(n,211),o&&e.vbaraw){var l=s.CodeName||"ThisWorkbook";Ue(n,442,I7(l))}Ue(n,156,Qa(17)),Ue(n,25,Gn(!1)),Ue(n,18,Gn(!1)),Ue(n,19,Qa(0)),o&&Ue(n,431,Gn(!1)),o&&Ue(n,444,Qa(0)),Ue(n,61,dre()),Ue(n,64,Gn(!1)),Ue(n,141,Qa(0)),Ue(n,34,Gn(cle(e)=="true")),Ue(n,14,Gn(!0)),o&&Ue(n,439,Gn(!1)),Ue(n,218,Qa(0)),Sce(n,e,r),Ece(n,e.SSF,r),kce(n,r),o&&Ue(n,352,Gn(!1));var f=n.end(),d=ia();o&&Ue(d,140,tne()),o&&r.Strings&&vce(d,252,sre(r.Strings)),Ue(d,10);var p=d.end(),v=ia(),_=0,x=0;for(x=0;x<e.SheetNames.length;++x)_+=(o?12:11)+(o?2:1)*e.SheetNames[x].length;var w=f.length+_+p.length;for(x=0;x<e.SheetNames.length;++x){var C=i[x]||{};Ue(v,133,are({pos:w,hs:C.Hidden||0,dt:0,name:e.SheetNames[x]},r)),w+=t[x].length}var E=v.end();if(_!=E.length)throw new Error("BS8 "+_+" != "+E.length);var b=[];return f.length&&b.push(f),E.length&&b.push(E),p.length&&b.push(p),un(b)}function Dce(e,t){var r=t||{},n=[];e&&!e.SSF&&(e.SSF=ur(ot)),e&&e.SSF&&(Cc(),dd(e.SSF),r.revssf=jp(e.SSF),r.revssf[e.SSF[65535]]=0,r.ssf=e.SSF),r.Strings=[],r.Strings.Count=0,r.Strings.Unique=0,xb(r),r.cellXfs=[],Uo(r.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={});for(var a=0;a<e.SheetNames.length;++a)n[n.length]=Oce(a,r,e);return n.unshift(Pce(e,n,r)),un(n)}function V9(e,t){for(var r=0;r<=e.SheetNames.length;++r){var n=e.Sheets[e.SheetNames[r]];if(!(!n||!n["!ref"])){var a=qn(n["!ref"]);a.e.c>255&&typeof console<"u"&&console.error&&console.error("Worksheet '"+e.SheetNames[r]+"' extends beyond column IV (255). Data may be lost.")}}var i=t||{};switch(i.biff||2){case 8:case 5:return Dce(e,t);case 4:case 3:case 2:return wce(e,t)}throw new Error("invalid type "+i.bookType+" for BIFF")}function q9(e,t){var r=t||{},n=r.dense?[]:{};e=e.replace(/<!--.*?-->/g,"");var a=e.match(/<table/i);if(!a)throw new Error("Invalid HTML: could not find <table>");var i=e.match(/<\/table/i),s=a.index,o=i&&i.index||e.length,u=vee(e.slice(s,o),/(:?<tr[^>]*>)/i,"<tr>"),l=-1,f=0,d=0,p=0,v={s:{r:1e7,c:1e7},e:{r:0,c:0}},_=[];for(s=0;s<u.length;++s){var x=u[s].trim(),w=x.slice(0,3).toLowerCase();if(w=="<tr"){if(++l,r.sheetRows&&r.sheetRows<=l){--l;break}f=0;continue}if(!(w!="<td"&&w!="<th")){var C=x.split(/<\/t[dh]>/i);for(o=0;o<C.length;++o){var E=C[o].trim();if(E.match(/<t[dh]/i)){for(var b=E,h=0;b.charAt(0)=="<"&&(h=b.indexOf(">"))>-1;)b=b.slice(h+1);for(var g=0;g<_.length;++g){var y=_[g];y.s.c==f&&y.s.r<l&&l<=y.e.r&&(f=y.e.c+1,g=-1)}var S=mt(E.slice(0,E.indexOf(">")));p=S.colspan?+S.colspan:1,((d=+S.rowspan)>1||p>1)&&_.push({s:{r:l,c:f},e:{r:l+(d||1)-1,c:f+p-1}});var A=S.t||S["data-t"]||"";if(!b.length){f+=p;continue}if(b=BF(b),v.s.r>l&&(v.s.r=l),v.e.r<l&&(v.e.r=l),v.s.c>f&&(v.s.c=f),v.e.c<f&&(v.e.c=f),!b.length){f+=p;continue}var k={t:"s",v:b};r.raw||!b.trim().length||A=="s"||(b==="TRUE"?k={t:"b",v:!0}:b==="FALSE"?k={t:"b",v:!1}:isNaN(Ri(b))?isNaN(kc(b).getDate())||(k={t:"d",v:_r(b)},r.cellDates||(k={t:"n",v:Jr(k.v)}),k.z=r.dateNF||ot[14]):k={t:"n",v:Ri(b)}),r.dense?(n[l]||(n[l]=[]),n[l][f]=k):n[ht({r:l,c:f})]=k,f+=p}}}}return n["!ref"]=St(v),_.length&&(n["!merges"]=_),n}function G9(e,t,r,n){for(var a=e["!merges"]||[],i=[],s=t.s.c;s<=t.e.c;++s){for(var o=0,u=0,l=0;l<a.length;++l)if(!(a[l].s.r>r||a[l].s.c>s)&&!(a[l].e.r<r||a[l].e.c<s)){if(a[l].s.r<r||a[l].s.c<s){o=-1;break}o=a[l].e.r-a[l].s.r+1,u=a[l].e.c-a[l].s.c+1;break}if(!(o<0)){var f=ht({r,c:s}),d=n.dense?(e[r]||[])[s]:e[f],p=d&&d.v!=null&&(d.h||xy(d.w||(fs(d),d.w)||""))||"",v={};o>1&&(v.rowspan=o),u>1&&(v.colspan=u),n.editable?p='<span contenteditable="true">'+p+"</span>":d&&(v["data-t"]=d&&d.t||"z",d.v!=null&&(v["data-v"]=d.v),d.z!=null&&(v["data-z"]=d.z),d.l&&(d.l.Target||"#").charAt(0)!="#"&&(p='<a href="'+d.l.Target+'">'+p+"</a>")),v.id=(n.id||"sjs")+"-"+f,i.push($e("td",p,v))}}var _="<tr>";return _+i.join("")+"</tr>"}var Y9='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',X9="</body></html>";function Rce(e,t){var r=e.match(/<table[\s\S]*?>[\s\S]*?<\/table>/gi);if(!r||r.length==0)throw new Error("Invalid HTML: could not find <table>");if(r.length==1)return Lo(q9(r[0],t),t);var n=Eb();return r.forEach(function(a,i){Cb(n,q9(a,t),"Sheet"+(i+1))}),n}function K9(e,t,r){var n=[];return n.join("")+"<table"+(r&&r.id?' id="'+r.id+'"':"")+">"}function Z9(e,t){var r=t||{},n=r.header!=null?r.header:Y9,a=r.footer!=null?r.footer:X9,i=[n],s=qn(e["!ref"]);r.dense=Array.isArray(e),i.push(K9(e,s,r));for(var o=s.s.r;o<=s.e.r;++o)i.push(G9(e,s,o,r));return i.push("</table>"+a),i.join("")}function J9(e,t,r){var n=r||{},a=0,i=0;if(n.origin!=null)if(typeof n.origin=="number")a=n.origin;else{var s=typeof n.origin=="string"?Ar(n.origin):n.origin;a=s.r,i=s.c}var o=t.getElementsByTagName("tr"),u=Math.min(n.sheetRows||1e7,o.length),l={s:{r:0,c:0},e:{r:a,c:i}};if(e["!ref"]){var f=qn(e["!ref"]);l.s.r=Math.min(l.s.r,f.s.r),l.s.c=Math.min(l.s.c,f.s.c),l.e.r=Math.max(l.e.r,f.e.r),l.e.c=Math.max(l.e.c,f.e.c),a==-1&&(l.e.r=a=f.e.r+1)}var d=[],p=0,v=e["!rows"]||(e["!rows"]=[]),_=0,x=0,w=0,C=0,E=0,b=0;for(e["!cols"]||(e["!cols"]=[]);_<o.length&&x<u;++_){var h=o[_];if(eO(h)){if(n.display)continue;v[x]={hidden:!0}}var g=h.children;for(w=C=0;w<g.length;++w){var y=g[w];if(!(n.display&&eO(y))){var S=y.hasAttribute("data-v")?y.getAttribute("data-v"):y.hasAttribute("v")?y.getAttribute("v"):BF(y.innerHTML),A=y.getAttribute("data-z")||y.getAttribute("z");for(p=0;p<d.length;++p){var k=d[p];k.s.c==C+i&&k.s.r<x+a&&x+a<=k.e.r&&(C=k.e.c+1-i,p=-1)}b=+y.getAttribute("colspan")||1,((E=+y.getAttribute("rowspan")||1)>1||b>1)&&d.push({s:{r:x+a,c:C+i},e:{r:x+a+(E||1)-1,c:C+i+(b||1)-1}});var F={t:"s",v:S},P=y.getAttribute("data-t")||y.getAttribute("t")||"";S!=null&&(S.length==0?F.t=P||"z":n.raw||S.trim().length==0||P=="s"||(S==="TRUE"?F={t:"b",v:!0}:S==="FALSE"?F={t:"b",v:!1}:isNaN(Ri(S))?isNaN(kc(S).getDate())||(F={t:"d",v:_r(S)},n.cellDates||(F={t:"n",v:Jr(F.v)}),F.z=n.dateNF||ot[14]):F={t:"n",v:Ri(S)})),F.z===void 0&&A!=null&&(F.z=A);var j="",N=y.getElementsByTagName("A");if(N&&N.length)for(var I=0;I<N.length&&!(N[I].hasAttribute("href")&&(j=N[I].getAttribute("href"),j.charAt(0)!="#"));++I);j&&j.charAt(0)!="#"&&(F.l={Target:j}),n.dense?(e[x+a]||(e[x+a]=[]),e[x+a][C+i]=F):e[ht({c:C+i,r:x+a})]=F,l.e.c<C+i&&(l.e.c=C+i),C+=b}}++x}return d.length&&(e["!merges"]=(e["!merges"]||[]).concat(d)),l.e.r=Math.max(l.e.r,x-1+a),e["!ref"]=St(l),x>=u&&(e["!fullref"]=St((l.e.r=o.length-_+x-1+a,l))),e}function Q9(e,t){var r=t||{},n=r.dense?[]:{};return J9(n,e,t)}function Ice(e,t){return Lo(Q9(e,t),t)}function eO(e){var t="",r=Nce(e);return r&&(t=r(e).getPropertyValue("display")),t||(t=e.style&&e.style.display),t==="none"}function Nce(e){return e.ownerDocument.defaultView&&typeof e.ownerDocument.defaultView.getComputedStyle=="function"?e.ownerDocument.defaultView.getComputedStyle:typeof getComputedStyle=="function"?getComputedStyle:null}function Mce(e){var t=e.replace(/[\t\r\n]/g," ").trim().replace(/ +/g," ").replace(/<text:s\/>/g," ").replace(/<text:s text:c="(\d+)"\/>/g,function(n,a){return Array(parseInt(a,10)+1).join(" ")}).replace(/<text:tab[^>]*\/>/g," ").replace(/<text:line-break\/>/g,`
595
+ `),r=zt(t.replace(/<[^>]*>/g,""));return[r]}var tO={day:["d","dd"],month:["m","mm"],year:["y","yy"],hours:["h","hh"],minutes:["m","mm"],seconds:["s","ss"],"am-pm":["A/P","AM/PM"],"day-of-week":["ddd","dddd"],era:["e","ee"],quarter:["\\Qm",'m\\"th quarter"']};function rO(e,t){var r=t||{},n=by(e),a=[],i,s,o={name:""},u="",l=0,f,d,p={},v=[],_=r.dense?[]:{},x,w,C={value:""},E="",b=0,h=[],g=-1,y=-1,S={s:{r:1e6,c:1e7},e:{r:0,c:0}},A=0,k={},F=[],P={},j=0,N=0,I=[],B=1,O=1,M=[],V={Names:[]},L={},W=["",""],G=[],H={},Q="",K=0,te=!1,se=!1,le=0;for(vd.lastIndex=0,n=n.replace(/<!--([\s\S]*?)-->/mg,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"");x=vd.exec(n);)switch(x[3]=x[3].replace(/_.*$/,"")){case"table":case"工作表":x[1]==="/"?(S.e.c>=S.s.c&&S.e.r>=S.s.r?_["!ref"]=St(S):_["!ref"]="A1:A1",r.sheetRows>0&&r.sheetRows<=S.e.r&&(_["!fullref"]=_["!ref"],S.e.r=r.sheetRows-1,_["!ref"]=St(S)),F.length&&(_["!merges"]=F),I.length&&(_["!rows"]=I),f.name=f.名称||f.name,typeof JSON<"u"&&JSON.stringify(f),v.push(f.name),p[f.name]=_,se=!1):x[0].charAt(x[0].length-2)!=="/"&&(f=mt(x[0],!1),g=y=-1,S.s.r=S.s.c=1e7,S.e.r=S.e.c=0,_=r.dense?[]:{},F=[],I=[],se=!0);break;case"table-row-group":x[1]==="/"?--A:++A;break;case"table-row":case"行":if(x[1]==="/"){g+=B,B=1;break}if(d=mt(x[0],!1),d.行号?g=d.行号-1:g==-1&&(g=0),B=+d["number-rows-repeated"]||1,B<10)for(le=0;le<B;++le)A>0&&(I[g+le]={level:A});y=-1;break;case"covered-table-cell":x[1]!=="/"&&++y,r.sheetStubs&&(r.dense?(_[g]||(_[g]=[]),_[g][y]={t:"z"}):_[ht({r:g,c:y})]={t:"z"}),E="",h=[];break;case"table-cell":case"数据":if(x[0].charAt(x[0].length-2)==="/")++y,C=mt(x[0],!1),O=parseInt(C["number-columns-repeated"]||"1",10),w={t:"z",v:null},C.formula&&r.cellFormula!=!1&&(w.f=O9(zt(C.formula))),(C.数据类型||C["value-type"])=="string"&&(w.t="s",w.v=zt(C["string-value"]||""),r.dense?(_[g]||(_[g]=[]),_[g][y]=w):_[ht({r:g,c:y})]=w),y+=O-1;else if(x[1]!=="/"){++y,E="",b=0,h=[],O=1;var ge=B?g+B-1:g;if(y>S.e.c&&(S.e.c=y),y<S.s.c&&(S.s.c=y),g<S.s.r&&(S.s.r=g),ge>S.e.r&&(S.e.r=ge),C=mt(x[0],!1),G=[],H={},w={t:C.数据类型||C["value-type"],v:null},r.cellFormula)if(C.formula&&(C.formula=zt(C.formula)),C["number-matrix-columns-spanned"]&&C["number-matrix-rows-spanned"]&&(j=parseInt(C["number-matrix-rows-spanned"],10)||0,N=parseInt(C["number-matrix-columns-spanned"],10)||0,P={s:{r:g,c:y},e:{r:g+j-1,c:y+N-1}},w.F=St(P),M.push([P,w.F])),C.formula)w.f=O9(C.formula);else for(le=0;le<M.length;++le)g>=M[le][0].s.r&&g<=M[le][0].e.r&&y>=M[le][0].s.c&&y<=M[le][0].e.c&&(w.F=M[le][1]);switch((C["number-columns-spanned"]||C["number-rows-spanned"])&&(j=parseInt(C["number-rows-spanned"],10)||0,N=parseInt(C["number-columns-spanned"],10)||0,P={s:{r:g,c:y},e:{r:g+j-1,c:y+N-1}},F.push(P)),C["number-columns-repeated"]&&(O=parseInt(C["number-columns-repeated"],10)),w.t){case"boolean":w.t="b",w.v=yr(C["boolean-value"]);break;case"float":w.t="n",w.v=parseFloat(C.value);break;case"percentage":w.t="n",w.v=parseFloat(C.value);break;case"currency":w.t="n",w.v=parseFloat(C.value);break;case"date":w.t="d",w.v=_r(C["date-value"]),r.cellDates||(w.t="n",w.v=Jr(w.v)),w.z="m/d/yy";break;case"time":w.t="n",w.v=pee(C["time-value"])/86400,r.cellDates&&(w.t="d",w.v=Up(w.v)),w.z="HH:MM:SS";break;case"number":w.t="n",w.v=parseFloat(C.数据数值);break;default:if(w.t==="string"||w.t==="text"||!w.t)w.t="s",C["string-value"]!=null&&(E=zt(C["string-value"]),h=[]);else throw new Error("Unsupported value type "+w.t)}}else{if(te=!1,w.t==="s"&&(w.v=E||"",h.length&&(w.R=h),te=b==0),L.Target&&(w.l=L),G.length>0&&(w.c=G,G=[]),E&&r.cellText!==!1&&(w.w=E),te&&(w.t="z",delete w.v),(!te||r.sheetStubs)&&!(r.sheetRows&&r.sheetRows<=g))for(var ye=0;ye<B;++ye){if(O=parseInt(C["number-columns-repeated"]||"1",10),r.dense)for(_[g+ye]||(_[g+ye]=[]),_[g+ye][y]=ye==0?w:ur(w);--O>0;)_[g+ye][y+O]=ur(w);else for(_[ht({r:g+ye,c:y})]=w;--O>0;)_[ht({r:g+ye,c:y+O})]=ur(w);S.e.c<=y&&(S.e.c=y)}O=parseInt(C["number-columns-repeated"]||"1",10),y+=O-1,O=0,w={},E="",h=[]}L={};break;case"document":case"document-content":case"电子表格文档":case"spreadsheet":case"主体":case"scripts":case"styles":case"font-face-decls":case"master-styles":if(x[1]==="/"){if((i=a.pop())[0]!==x[3])throw"Bad state: "+i}else x[0].charAt(x[0].length-2)!=="/"&&a.push([x[3],!0]);break;case"annotation":if(x[1]==="/"){if((i=a.pop())[0]!==x[3])throw"Bad state: "+i;H.t=E,h.length&&(H.R=h),H.a=Q,G.push(H)}else x[0].charAt(x[0].length-2)!=="/"&&a.push([x[3],!1]);Q="",K=0,E="",b=0,h=[];break;case"creator":x[1]==="/"?Q=n.slice(K,x.index):K=x.index+x[0].length;break;case"meta":case"元数据":case"settings":case"config-item-set":case"config-item-map-indexed":case"config-item-map-entry":case"config-item-map-named":case"shapes":case"frame":case"text-box":case"image":case"data-pilot-tables":case"list-style":case"form":case"dde-links":case"event-listeners":case"chart":if(x[1]==="/"){if((i=a.pop())[0]!==x[3])throw"Bad state: "+i}else x[0].charAt(x[0].length-2)!=="/"&&a.push([x[3],!1]);E="",b=0,h=[];break;case"scientific-number":break;case"currency-symbol":break;case"currency-style":break;case"number-style":case"percentage-style":case"date-style":case"time-style":if(x[1]==="/"){if(k[o.name]=u,(i=a.pop())[0]!==x[3])throw"Bad state: "+i}else x[0].charAt(x[0].length-2)!=="/"&&(u="",o=mt(x[0],!1),a.push([x[3],!0]));break;case"script":break;case"libraries":break;case"automatic-styles":break;case"default-style":case"page-layout":break;case"style":break;case"map":break;case"font-face":break;case"paragraph-properties":break;case"table-properties":break;case"table-column-properties":break;case"table-row-properties":break;case"table-cell-properties":break;case"number":switch(a[a.length-1][0]){case"time-style":case"date-style":s=mt(x[0],!1),u+=tO[x[3]][s.style==="long"?1:0];break}break;case"fraction":break;case"day":case"month":case"year":case"era":case"day-of-week":case"week-of-year":case"quarter":case"hours":case"minutes":case"seconds":case"am-pm":switch(a[a.length-1][0]){case"time-style":case"date-style":s=mt(x[0],!1),u+=tO[x[3]][s.style==="long"?1:0];break}break;case"boolean-style":break;case"boolean":break;case"text-style":break;case"text":if(x[0].slice(-2)==="/>")break;if(x[1]==="/")switch(a[a.length-1][0]){case"number-style":case"date-style":case"time-style":u+=n.slice(l,x.index);break}else l=x.index+x[0].length;break;case"named-range":s=mt(x[0],!1),W=ab(s["cell-range-address"]);var be={Name:s.name,Ref:W[0]+"!"+W[1]};se&&(be.Sheet=v.length),V.Names.push(be);break;case"text-content":break;case"text-properties":break;case"embedded-text":break;case"body":case"电子表格":break;case"forms":break;case"table-column":break;case"table-header-rows":break;case"table-rows":break;case"table-column-group":break;case"table-header-columns":break;case"table-columns":break;case"null-date":break;case"graphic-properties":break;case"calculation-settings":break;case"named-expressions":break;case"label-range":break;case"label-ranges":break;case"named-expression":break;case"sort":break;case"sort-by":break;case"sort-groups":break;case"tab":break;case"line-break":break;case"span":break;case"p":case"文本串":if(["master-styles"].indexOf(a[a.length-1][0])>-1)break;if(x[1]==="/"&&(!C||!C["string-value"])){var Be=Mce(n.slice(b,x.index));E=(E.length>0?E+`
596
+ `:"")+Be[0]}else mt(x[0],!1),b=x.index+x[0].length;break;case"s":break;case"database-range":if(x[1]==="/")break;try{W=ab(mt(x[0])["target-range-address"]),p[W[0]]["!autofilter"]={ref:W[1]}}catch{}break;case"date":break;case"object":break;case"title":case"标题":break;case"desc":break;case"binary-data":break;case"table-source":break;case"scenario":break;case"iteration":break;case"content-validations":break;case"content-validation":break;case"help-message":break;case"error-message":break;case"database-ranges":break;case"filter":break;case"filter-and":break;case"filter-or":break;case"filter-condition":break;case"list-level-style-bullet":break;case"list-level-style-number":break;case"list-level-properties":break;case"sender-firstname":case"sender-lastname":case"sender-initials":case"sender-title":case"sender-position":case"sender-email":case"sender-phone-private":case"sender-fax":case"sender-company":case"sender-phone-work":case"sender-street":case"sender-city":case"sender-postal-code":case"sender-country":case"sender-state-or-province":case"author-name":case"author-initials":case"chapter":case"file-name":case"template-name":case"sheet-name":break;case"event-listener":break;case"initial-creator":case"creation-date":case"print-date":case"generator":case"document-statistic":case"user-defined":case"editing-duration":case"editing-cycles":break;case"config-item":break;case"page-number":break;case"page-count":break;case"time":break;case"cell-range-source":break;case"detective":break;case"operation":break;case"highlighted-range":break;case"data-pilot-table":case"source-cell-range":case"source-service":case"data-pilot-field":case"data-pilot-level":case"data-pilot-subtotals":case"data-pilot-subtotal":case"data-pilot-members":case"data-pilot-member":case"data-pilot-display-info":case"data-pilot-sort-info":case"data-pilot-layout-info":case"data-pilot-field-reference":case"data-pilot-groups":case"data-pilot-group":case"data-pilot-group-member":break;case"rect":break;case"dde-connection-decls":case"dde-connection-decl":case"dde-link":case"dde-source":break;case"properties":break;case"property":break;case"a":if(x[1]!=="/"){if(L=mt(x[0],!1),!L.href)break;L.Target=zt(L.href),delete L.href,L.Target.charAt(0)=="#"&&L.Target.indexOf(".")>-1?(W=ab(L.Target.slice(1)),L.Target="#"+W[0]+"!"+W[1]):L.Target.match(/^\.\.[\\\/]/)&&(L.Target=L.Target.slice(3))}break;case"table-protection":break;case"data-pilot-grand-total":break;case"office-document-common-attrs":break;default:switch(x[2]){case"dc:":case"calcext:":case"loext:":case"ooo:":case"chartooo:":case"draw:":case"style:":case"chart:":case"form:":case"uof:":case"表:":case"字:":break;default:if(r.WTF)throw new Error(x)}}var J={Sheets:p,SheetNames:v,Workbook:V};return r.bookSheets&&delete J.Sheets,J}function nO(e,t){t=t||{},Ka(e,"META-INF/manifest.xml")&&pte(qr(e,"META-INF/manifest.xml"),t);var r=Fa(e,"content.xml");if(!r)throw new Error("Missing content.xml in ODS / UOF file");var n=rO(sr(r),t);return Ka(e,"meta.xml")&&(n.Props=m7(qr(e,"meta.xml"))),n}function aO(e,t){return rO(e,t)}var Lce=function(){var e=["<office:master-styles>",'<style:master-page style:name="mp1" style:page-layout-name="mp1">',"<style:header/>",'<style:header-left style:display="false"/>',"<style:footer/>",'<style:footer-left style:display="false"/>',"</style:master-page>","</office:master-styles>"].join(""),t="<office:document-styles "+gd({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","office:version":"1.2"})+">"+e+"</office:document-styles>";return function(){return Ur+t}}(),iO=function(){var e=function(i){return er(i).replace(/ +/g,function(s){return'<text:s text:c="'+s.length+'"/>'}).replace(/\t/g,"<text:tab/>").replace(/\n/g,"</text:p><text:p>").replace(/^ /,"<text:s/>").replace(/ $/,"<text:s/>")},t=` <table:table-cell />
597
+ `,r=` <table:covered-table-cell/>
598
+ `,n=function(i,s,o){var u=[];u.push(' <table:table table:name="'+er(s.SheetNames[o])+`" table:style-name="ta1">
599
+ `);var l=0,f=0,d=qn(i["!ref"]||"A1"),p=i["!merges"]||[],v=0,_=Array.isArray(i);if(i["!cols"])for(f=0;f<=d.e.c;++f)u.push(" <table:table-column"+(i["!cols"][f]?' table:style-name="co'+i["!cols"][f].ods+'"':"")+`></table:table-column>
600
+ `);var x="",w=i["!rows"]||[];for(l=0;l<d.s.r;++l)x=w[l]?' table:style-name="ro'+w[l].ods+'"':"",u.push(" <table:table-row"+x+`></table:table-row>
601
+ `);for(;l<=d.e.r;++l){for(x=w[l]?' table:style-name="ro'+w[l].ods+'"':"",u.push(" <table:table-row"+x+`>
602
+ `),f=0;f<d.s.c;++f)u.push(t);for(;f<=d.e.c;++f){var C=!1,E={},b="";for(v=0;v!=p.length;++v)if(!(p[v].s.c>f)&&!(p[v].s.r>l)&&!(p[v].e.c<f)&&!(p[v].e.r<l)){(p[v].s.c!=f||p[v].s.r!=l)&&(C=!0),E["table:number-columns-spanned"]=p[v].e.c-p[v].s.c+1,E["table:number-rows-spanned"]=p[v].e.r-p[v].s.r+1;break}if(C){u.push(r);continue}var h=ht({r:l,c:f}),g=_?(i[l]||[])[f]:i[h];if(g&&g.f&&(E["table:formula"]=er(uoe(g.f)),g.F&&g.F.slice(0,h.length)==h)){var y=qn(g.F);E["table:number-matrix-columns-spanned"]=y.e.c-y.s.c+1,E["table:number-matrix-rows-spanned"]=y.e.r-y.s.r+1}if(!g){u.push(t);continue}switch(g.t){case"b":b=g.v?"TRUE":"FALSE",E["office:value-type"]="boolean",E["office:boolean-value"]=g.v?"true":"false";break;case"n":b=g.w||String(g.v||0),E["office:value-type"]="float",E["office:value"]=g.v||0;break;case"s":case"str":b=g.v==null?"":g.v,E["office:value-type"]="string";break;case"d":b=g.w||_r(g.v).toISOString(),E["office:value-type"]="date",E["office:date-value"]=_r(g.v).toISOString(),E["table:style-name"]="ce1";break;default:u.push(t);continue}var S=e(b);if(g.l&&g.l.Target){var A=g.l.Target;A=A.charAt(0)=="#"?"#"+loe(A.slice(1)):A,A.charAt(0)!="#"&&!A.match(/^\w+:/)&&(A="../"+A),S=$e("text:a",S,{"xlink:href":A.replace(/&/g,"&amp;")})}u.push(" "+$e("table:table-cell",$e("text:p",S,{}),E)+`
603
+ `)}u.push(` </table:table-row>
604
+ `)}return u.push(` </table:table>
605
+ `),u.join("")},a=function(i,s){i.push(` <office:automatic-styles>
606
+ `),i.push(` <number:date-style style:name="N37" number:automatic-order="true">
607
+ `),i.push(` <number:month number:style="long"/>
608
+ `),i.push(` <number:text>/</number:text>
609
+ `),i.push(` <number:day number:style="long"/>
610
+ `),i.push(` <number:text>/</number:text>
611
+ `),i.push(` <number:year/>
612
+ `),i.push(` </number:date-style>
613
+ `);var o=0;s.SheetNames.map(function(l){return s.Sheets[l]}).forEach(function(l){if(l&&l["!cols"]){for(var f=0;f<l["!cols"].length;++f)if(l["!cols"][f]){var d=l["!cols"][f];if(d.width==null&&d.wpx==null&&d.wch==null)continue;jo(d),d.ods=o;var p=l["!cols"][f].wpx+"px";i.push(' <style:style style:name="co'+o+`" style:family="table-column">
614
+ `),i.push(' <style:table-column-properties fo:break-before="auto" style:column-width="'+p+`"/>
615
+ `),i.push(` </style:style>
616
+ `),++o}}});var u=0;s.SheetNames.map(function(l){return s.Sheets[l]}).forEach(function(l){if(l&&l["!rows"]){for(var f=0;f<l["!rows"].length;++f)if(l["!rows"][f]){l["!rows"][f].ods=u;var d=l["!rows"][f].hpx+"px";i.push(' <style:style style:name="ro'+u+`" style:family="table-row">
617
+ `),i.push(' <style:table-row-properties fo:break-before="auto" style:row-height="'+d+`"/>
618
+ `),i.push(` </style:style>
619
+ `),++u}}}),i.push(` <style:style style:name="ta1" style:family="table" style:master-page-name="mp1">
620
+ `),i.push(` <style:table-properties table:display="true" style:writing-mode="lr-tb"/>
621
+ `),i.push(` </style:style>
622
+ `),i.push(` <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/>
623
+ `),i.push(` </office:automatic-styles>
624
+ `)};return function(s,o){var u=[Ur],l=gd({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),f=gd({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});o.bookType=="fods"?(u.push("<office:document"+l+f+`>
625
+ `),u.push(p7().replace(/office:document-meta/g,"office:meta"))):u.push("<office:document-content"+l+`>
626
+ `),a(u,s),u.push(` <office:body>
627
+ `),u.push(` <office:spreadsheet>
628
+ `);for(var d=0;d!=s.SheetNames.length;++d)u.push(n(s.Sheets[s.SheetNames[d]],s,d));return u.push(` </office:spreadsheet>
629
+ `),u.push(` </office:body>
630
+ `),o.bookType=="fods"?u.push("</office:document>"):u.push("</office:document-content>"),u.join("")}}();function sO(e,t){if(t.bookType=="fods")return iO(e,t);var r=my(),n="",a=[],i=[];return n="mimetype",Ct(r,n,"application/vnd.oasis.opendocument.spreadsheet"),n="content.xml",Ct(r,n,iO(e,t)),a.push([n,"text/xml"]),i.push([n,"ContentFile"]),n="styles.xml",Ct(r,n,Lce(e,t)),a.push([n,"text/xml"]),i.push([n,"StylesFile"]),n="meta.xml",Ct(r,n,Ur+p7()),a.push([n,"text/xml"]),i.push([n,"MetadataFile"]),n="manifest.rdf",Ct(r,n,vte(i)),a.push([n,"application/rdf+xml"]),n="META-INF/manifest.xml",Ct(r,n,mte(a)),r}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function rl(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function db(e){return typeof TextDecoder<"u"?new TextDecoder().decode(e):sr(Ro(e))}function Bce(e){return typeof TextEncoder<"u"?new TextEncoder().encode(e):Ta(cs(e))}function jce(e,t){e:for(var r=0;r<=e.length-t.length;++r){for(var n=0;n<t.length;++n)if(e[r+n]!=t[n])continue e;return!0}return!1}function zo(e){var t=e.reduce(function(a,i){return a+i.length},0),r=new Uint8Array(t),n=0;return e.forEach(function(a){r.set(a,n),n+=a.length}),r}function oO(e){return e-=e>>1&1431655765,e=(e&858993459)+(e>>2&858993459),(e+(e>>4)&252645135)*16843009>>>24}function $ce(e,t){for(var r=(e[t+15]&127)<<7|e[t+14]>>1,n=e[t+14]&1,a=t+13;a>=t;--a)n=n*256+e[a];return(e[t+15]&128?-n:n)*Math.pow(10,r-6176)}function Uce(e,t,r){var n=Math.floor(r==0?0:Math.LOG10E*Math.log(Math.abs(r)))+6176-20,a=r/Math.pow(10,n-6176);e[t+15]|=n>>7,e[t+14]|=(n&127)<<1;for(var i=0;a>=1;++i,a/=256)e[t+i]=a&255;e[t+15]|=r>=0?0:128}function jd(e,t){var r=t?t[0]:0,n=e[r]&127;e:if(e[r++]>=128&&(n|=(e[r]&127)<<7,e[r++]<128||(n|=(e[r]&127)<<14,e[r++]<128)||(n|=(e[r]&127)<<21,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,28),++r,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,35),++r,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,42),++r,e[r++]<128)))break e;return t&&(t[0]=r),n}function rr(e){var t=new Uint8Array(7);t[0]=e&127;var r=1;e:if(e>127){if(t[r-1]|=128,t[r]=e>>7&127,++r,e<=16383||(t[r-1]|=128,t[r]=e>>14&127,++r,e<=2097151)||(t[r-1]|=128,t[r]=e>>21&127,++r,e<=268435455)||(t[r-1]|=128,t[r]=e/256>>>21&127,++r,e<=34359738367)||(t[r-1]|=128,t[r]=e/65536>>>21&127,++r,e<=4398046511103))break e;t[r-1]|=128,t[r]=e/16777216>>>21&127,++r}return t.slice(0,r)}function Nr(e){var t=0,r=e[t]&127;e:if(e[t++]>=128){if(r|=(e[t]&127)<<7,e[t++]<128||(r|=(e[t]&127)<<14,e[t++]<128)||(r|=(e[t]&127)<<21,e[t++]<128))break e;r|=(e[t]&127)<<28}return r}function qt(e){for(var t=[],r=[0];r[0]<e.length;){var n=r[0],a=jd(e,r),i=a&7;a=Math.floor(a/8);var s=0,o;if(a==0)break;switch(i){case 0:{for(var u=r[0];e[r[0]++]>=128;);o=e.slice(u,r[0])}break;case 5:s=4,o=e.slice(r[0],r[0]+s),r[0]+=s;break;case 1:s=8,o=e.slice(r[0],r[0]+s),r[0]+=s;break;case 2:s=jd(e,r),o=e.slice(r[0],r[0]+s),r[0]+=s;break;case 3:case 4:default:throw new Error("PB Type ".concat(i," for Field ").concat(a," at offset ").concat(n))}var l={data:o,type:i};t[a]==null?t[a]=[l]:t[a].push(l)}return t}function wn(e){var t=[];return e.forEach(function(r,n){r.forEach(function(a){a.data&&(t.push(rr(n*8+a.type)),a.type==2&&t.push(rr(a.data.length)),t.push(a.data))})}),zo(t)}function hb(e,t){return(e==null?void 0:e.map(function(r){return t(r.data)}))||[]}function ei(e){for(var t,r=[],n=[0];n[0]<e.length;){var a=jd(e,n),i=qt(e.slice(n[0],n[0]+a));n[0]+=a;var s={id:Nr(i[1][0].data),messages:[]};i[2].forEach(function(o){var u=qt(o.data),l=Nr(u[3][0].data);s.messages.push({meta:u,data:e.slice(n[0],n[0]+l)}),n[0]+=l}),(t=i[3])!=null&&t[0]&&(s.merge=Nr(i[3][0].data)>>>0>0),r.push(s)}return r}function Lc(e){var t=[];return e.forEach(function(r){var n=[];n[1]=[{data:rr(r.id),type:0}],n[2]=[],r.merge!=null&&(n[3]=[{data:rr(+!!r.merge),type:0}]);var a=[];r.messages.forEach(function(s){a.push(s.data),s.meta[3]=[{type:0,data:rr(s.data.length)}],n[2].push({data:wn(s.meta),type:2})});var i=wn(n);t.push(rr(i.length)),t.push(i),a.forEach(function(s){return t.push(s)})}),zo(t)}function zce(e,t){if(e!=0)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var r=[0],n=jd(t,r),a=[];r[0]<t.length;){var i=t[r[0]]&3;if(i==0){var s=t[r[0]++]>>2;if(s<60)++s;else{var o=s-59;s=t[r[0]],o>1&&(s|=t[r[0]+1]<<8),o>2&&(s|=t[r[0]+2]<<16),o>3&&(s|=t[r[0]+3]<<24),s>>>=0,s++,r[0]+=o}a.push(t.slice(r[0],r[0]+s)),r[0]+=s;continue}else{var u=0,l=0;if(i==1?(l=(t[r[0]]>>2&7)+4,u=(t[r[0]++]&224)<<3,u|=t[r[0]++]):(l=(t[r[0]++]>>2)+1,i==2?(u=t[r[0]]|t[r[0]+1]<<8,r[0]+=2):(u=(t[r[0]]|t[r[0]+1]<<8|t[r[0]+2]<<16|t[r[0]+3]<<24)>>>0,r[0]+=4)),a=[zo(a)],u==0)throw new Error("Invalid offset 0");if(u>a[0].length)throw new Error("Invalid offset beyond length");if(l>=u)for(a.push(a[0].slice(-u)),l-=u;l>=a[a.length-1].length;)a.push(a[a.length-1]),l-=a[a.length-1].length;a.push(a[0].slice(-u,-u+l))}}var f=zo(a);if(f.length!=n)throw new Error("Unexpected length: ".concat(f.length," != ").concat(n));return f}function ti(e){for(var t=[],r=0;r<e.length;){var n=e[r++],a=e[r]|e[r+1]<<8|e[r+2]<<16;r+=3,t.push(zce(n,e.slice(r,r+a))),r+=a}if(r!==e.length)throw new Error("data is not a valid framed stream!");return zo(t)}function Bc(e){for(var t=[],r=0;r<e.length;){var n=Math.min(e.length-r,268435455),a=new Uint8Array(4);t.push(a);var i=rr(n),s=i.length;t.push(i),n<=60?(s++,t.push(new Uint8Array([n-1<<2]))):n<=256?(s+=2,t.push(new Uint8Array([240,n-1&255]))):n<=65536?(s+=3,t.push(new Uint8Array([244,n-1&255,n-1>>8&255]))):n<=16777216?(s+=4,t.push(new Uint8Array([248,n-1&255,n-1>>8&255,n-1>>16&255]))):n<=4294967296&&(s+=5,t.push(new Uint8Array([252,n-1&255,n-1>>8&255,n-1>>16&255,n-1>>>24&255]))),t.push(e.slice(r,r+n)),s+=n,a[0]=0,a[1]=s&255,a[2]=s>>8&255,a[3]=s>>16&255,r+=n}return zo(t)}function Hce(e,t,r,n){var a=rl(e),i=a.getUint32(4,!0),s=(n>1?12:8)+oO(i&(n>1?3470:398))*4,o=-1,u=-1,l=NaN,f=new Date(2001,0,1);i&512&&(o=a.getUint32(s,!0),s+=4),s+=oO(i&(n>1?12288:4096))*4,i&16&&(u=a.getUint32(s,!0),s+=4),i&32&&(l=a.getFloat64(s,!0),s+=8),i&64&&(f.setTime(f.getTime()+a.getFloat64(s,!0)*1e3),s+=8);var d;switch(e[2]){case 0:break;case 2:d={t:"n",v:l};break;case 3:d={t:"s",v:t[u]};break;case 5:d={t:"d",v:f};break;case 6:d={t:"b",v:l>0};break;case 7:d={t:"n",v:l/86400};break;case 8:d={t:"e",v:0};break;case 9:if(o>-1)d={t:"s",v:r[o]};else if(u>-1)d={t:"s",v:t[u]};else if(!isNaN(l))d={t:"n",v:l};else throw new Error("Unsupported cell type ".concat(e.slice(0,4)));break;default:throw new Error("Unsupported cell type ".concat(e.slice(0,4)))}return d}function Wce(e,t,r){var n=rl(e),a=n.getUint32(8,!0),i=12,s=-1,o=-1,u=NaN,l=NaN,f=new Date(2001,0,1);a&1&&(u=$ce(e,i),i+=16),a&2&&(l=n.getFloat64(i,!0),i+=8),a&4&&(f.setTime(f.getTime()+n.getFloat64(i,!0)*1e3),i+=8),a&8&&(o=n.getUint32(i,!0),i+=4),a&16&&(s=n.getUint32(i,!0),i+=4);var d;switch(e[1]){case 0:break;case 2:d={t:"n",v:u};break;case 3:d={t:"s",v:t[o]};break;case 5:d={t:"d",v:f};break;case 6:d={t:"b",v:l>0};break;case 7:d={t:"n",v:l/86400};break;case 8:d={t:"e",v:0};break;case 9:if(s>-1)d={t:"s",v:r[s]};else throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(a&31," : ").concat(e.slice(0,4)));break;case 10:d={t:"n",v:u};break;default:throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(a&31," : ").concat(e.slice(0,4)))}return d}function pb(e,t){var r=new Uint8Array(32),n=rl(r),a=12,i=0;switch(r[0]=5,e.t){case"n":r[1]=2,Uce(r,a,e.v),i|=1,a+=16;break;case"b":r[1]=6,n.setFloat64(a,e.v?1:0,!0),i|=2,a+=8;break;case"s":if(t.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));r[1]=3,n.setUint32(a,t.indexOf(e.v),!0),i|=8,a+=4;break;default:throw"unsupported cell type "+e.t}return n.setUint32(8,i,!0),r.slice(0,a)}function mb(e,t){var r=new Uint8Array(32),n=rl(r),a=12,i=0;switch(r[0]=3,e.t){case"n":r[2]=2,n.setFloat64(a,e.v,!0),i|=32,a+=8;break;case"b":r[2]=6,n.setFloat64(a,e.v?1:0,!0),i|=32,a+=8;break;case"s":if(t.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));r[2]=3,n.setUint32(a,t.indexOf(e.v),!0),i|=16,a+=4;break;default:throw"unsupported cell type "+e.t}return n.setUint32(4,i,!0),r.slice(0,a)}function Vce(e,t,r){switch(e[0]){case 0:case 1:case 2:case 3:return Hce(e,t,r,e[0]);case 5:return Wce(e,t,r);default:throw new Error("Unsupported payload version ".concat(e[0]))}}function Ln(e){var t=qt(e);return jd(t[1][0].data)}function uO(e,t){var r=qt(t.data),n=Nr(r[1][0].data),a=r[3],i=[];return(a||[]).forEach(function(s){var o=qt(s.data),u=Nr(o[1][0].data)>>>0;switch(n){case 1:i[u]=db(o[3][0].data);break;case 8:{var l=e[Ln(o[9][0].data)][0],f=qt(l.data),d=e[Ln(f[1][0].data)][0],p=Nr(d.meta[1][0].data);if(p!=2001)throw new Error("2000 unexpected reference to ".concat(p));var v=qt(d.data);i[u]=v[3].map(function(_){return db(_.data)}).join("")}break}}),i}function qce(e,t){var r,n,a,i,s,o,u,l,f,d,p,v,_,x,w=qt(e),C=Nr(w[1][0].data)>>>0,E=Nr(w[2][0].data)>>>0,b=((n=(r=w[8])==null?void 0:r[0])==null?void 0:n.data)&&Nr(w[8][0].data)>0||!1,h,g;if((i=(a=w[7])==null?void 0:a[0])!=null&&i.data&&t!=0)h=(o=(s=w[7])==null?void 0:s[0])==null?void 0:o.data,g=(l=(u=w[6])==null?void 0:u[0])==null?void 0:l.data;else if((d=(f=w[4])==null?void 0:f[0])!=null&&d.data&&t!=1)h=(v=(p=w[4])==null?void 0:p[0])==null?void 0:v.data,g=(x=(_=w[3])==null?void 0:_[0])==null?void 0:x.data;else throw"NUMBERS Tile missing ".concat(t," cell storage");for(var y=b?4:1,S=rl(h),A=[],k=0;k<h.length/2;++k){var F=S.getUint16(k*2,!0);F<65535&&A.push([k,F])}if(A.length!=E)throw"Expected ".concat(E," cells, found ").concat(A.length);var P=[];for(k=0;k<A.length-1;++k)P[A[k][0]]=g.subarray(A[k][1]*y,A[k+1][1]*y);return A.length>=1&&(P[A[A.length-1][0]]=g.subarray(A[A.length-1][1]*y)),{R:C,cells:P}}function Gce(e,t){var r,n=qt(t.data),a=(r=n==null?void 0:n[7])!=null&&r[0]?Nr(n[7][0].data)>>>0>0?1:0:-1,i=hb(n[5],function(s){return qce(s,a)});return{nrows:Nr(n[4][0].data)>>>0,data:i.reduce(function(s,o){return s[o.R]||(s[o.R]=[]),o.cells.forEach(function(u,l){if(s[o.R][l])throw new Error("Duplicate cell r=".concat(o.R," c=").concat(l));s[o.R][l]=u}),s},[])}}function Yce(e,t,r){var n,a=qt(t.data),i={s:{r:0,c:0},e:{r:0,c:0}};if(i.e.r=(Nr(a[6][0].data)>>>0)-1,i.e.r<0)throw new Error("Invalid row varint ".concat(a[6][0].data));if(i.e.c=(Nr(a[7][0].data)>>>0)-1,i.e.c<0)throw new Error("Invalid col varint ".concat(a[7][0].data));r["!ref"]=St(i);var s=qt(a[4][0].data),o=uO(e,e[Ln(s[4][0].data)][0]),u=(n=s[17])!=null&&n[0]?uO(e,e[Ln(s[17][0].data)][0]):[],l=qt(s[3][0].data),f=0;l[1].forEach(function(d){var p=qt(d.data),v=e[Ln(p[2][0].data)][0],_=Nr(v.meta[1][0].data);if(_!=6002)throw new Error("6001 unexpected reference to ".concat(_));var x=Gce(e,v);x.data.forEach(function(w,C){w.forEach(function(E,b){var h=ht({r:f+C,c:b}),g=Vce(E,o,u);g&&(r[h]=g)})}),f+=x.nrows})}function Xce(e,t){var r=qt(t.data),n={"!ref":"A1"},a=e[Ln(r[2][0].data)],i=Nr(a[0].meta[1][0].data);if(i!=6001)throw new Error("6000 unexpected reference to ".concat(i));return Yce(e,a[0],n),n}function Kce(e,t){var r,n=qt(t.data),a={name:(r=n[1])!=null&&r[0]?db(n[1][0].data):"",sheets:[]},i=hb(n[2],Ln);return i.forEach(function(s){e[s].forEach(function(o){var u=Nr(o.meta[1][0].data);u==6e3&&a.sheets.push(Xce(e,o))})}),a}function Zce(e,t){var r=Eb(),n=qt(t.data),a=hb(n[1],Ln);if(a.forEach(function(i){e[i].forEach(function(s){var o=Nr(s.meta[1][0].data);if(o==2){var u=Kce(e,s);u.sheets.forEach(function(l,f){Cb(r,l,f==0?u.name:u.name+"_"+f,!0)})}})}),r.SheetNames.length==0)throw new Error("Empty NUMBERS file");return r}function gb(e){var t,r,n,a,i={},s=[];if(e.FullPaths.forEach(function(u){if(u.match(/\.iwpv2/))throw new Error("Unsupported password protection")}),e.FileIndex.forEach(function(u){if(u.name.match(/\.iwa$/)){var l;try{l=ti(u.content)}catch(d){return console.log("?? "+u.content.length+" "+(d.message||d))}var f;try{f=ei(l)}catch(d){return console.log("## "+(d.message||d))}f.forEach(function(d){i[d.id]=d.messages,s.push(d.id)})}}),!s.length)throw new Error("File has no messages");var o=((a=(n=(r=(t=i==null?void 0:i[1])==null?void 0:t[0])==null?void 0:r.meta)==null?void 0:n[1])==null?void 0:a[0].data)&&Nr(i[1][0].meta[1][0].data)==1&&i[1][0];if(o||s.forEach(function(u){i[u].forEach(function(l){var f=Nr(l.meta[1][0].data)>>>0;if(f==1)if(!o)o=l;else throw new Error("Document has multiple roots")})}),!o)throw new Error("Cannot find Document root");return Zce(i,o)}function Jce(e,t,r){var n,a,i,s;if(!((n=e[6])!=null&&n[0])||!((a=e[7])!=null&&a[0]))throw"Mutation only works on post-BNC storages!";var o=((s=(i=e[8])==null?void 0:i[0])==null?void 0:s.data)&&Nr(e[8][0].data)>0||!1;if(o)throw"Math only works with normal offsets";for(var u=0,l=rl(e[7][0].data),f=0,d=[],p=rl(e[4][0].data),v=0,_=[],x=0;x<t.length;++x){if(t[x]==null){l.setUint16(x*2,65535,!0),p.setUint16(x*2,65535);continue}l.setUint16(x*2,f,!0),p.setUint16(x*2,v,!0);var w,C;switch(typeof t[x]){case"string":w=pb({t:"s",v:t[x]},r),C=mb({t:"s",v:t[x]},r);break;case"number":w=pb({t:"n",v:t[x]},r),C=mb({t:"n",v:t[x]},r);break;case"boolean":w=pb({t:"b",v:t[x]},r),C=mb({t:"b",v:t[x]},r);break;default:throw new Error("Unsupported value "+t[x])}d.push(w),f+=w.length,_.push(C),v+=C.length,++u}for(e[2][0].data=rr(u);x<e[7][0].data.length/2;++x)l.setUint16(x*2,65535,!0),p.setUint16(x*2,65535,!0);return e[6][0].data=zo(d),e[3][0].data=zo(_),u}function Qce(e,t){if(!t||!t.numbers)throw new Error("Must pass a `numbers` option -- check the README");var r=e.Sheets[e.SheetNames[0]];e.SheetNames.length>1&&console.error("The Numbers writer currently writes only the first table");var n=qn(r["!ref"]);n.s.r=n.s.c=0;var a=!1;n.e.c>9&&(a=!0,n.e.c=9),n.e.r>49&&(a=!0,n.e.r=49),a&&console.error("The Numbers writer is currently limited to ".concat(St(n)));var i=dm(r,{range:n,header:1}),s=["~Sh33tJ5~"];i.forEach(function(Q){return Q.forEach(function(K){typeof K=="string"&&s.push(K)})});var o={},u=[],l=nt.read(t.numbers,{type:"base64"});l.FileIndex.map(function(Q,K){return[Q,l.FullPaths[K]]}).forEach(function(Q){var K=Q[0],te=Q[1];if(K.type==2&&K.name.match(/\.iwa/)){var se=K.content,le=ti(se),ge=ei(le);ge.forEach(function(ye){u.push(ye.id),o[ye.id]={deps:[],location:te,type:Nr(ye.messages[0].meta[1][0].data)}})}}),u.sort(function(Q,K){return Q-K});var f=u.filter(function(Q){return Q>1}).map(function(Q){return[Q,rr(Q)]});l.FileIndex.map(function(Q,K){return[Q,l.FullPaths[K]]}).forEach(function(Q){var K=Q[0];if(Q[1],!!K.name.match(/\.iwa/)){var te=ei(ti(K.content));te.forEach(function(se){se.messages.forEach(function(le){f.forEach(function(ge){se.messages.some(function(ye){return Nr(ye.meta[1][0].data)!=11006&&jce(ye.data,ge[1])})&&o[ge[0]].deps.push(se.id)})})})}});for(var d=nt.find(l,o[1].location),p=ei(ti(d.content)),v,_=0;_<p.length;++_){var x=p[_];x.id==1&&(v=x)}var w=Ln(qt(v.messages[0].data)[1][0].data);for(d=nt.find(l,o[w].location),p=ei(ti(d.content)),_=0;_<p.length;++_)x=p[_],x.id==w&&(v=x);for(w=Ln(qt(v.messages[0].data)[2][0].data),d=nt.find(l,o[w].location),p=ei(ti(d.content)),_=0;_<p.length;++_)x=p[_],x.id==w&&(v=x);for(w=Ln(qt(v.messages[0].data)[2][0].data),d=nt.find(l,o[w].location),p=ei(ti(d.content)),_=0;_<p.length;++_)x=p[_],x.id==w&&(v=x);var C=qt(v.messages[0].data);{C[6][0].data=rr(n.e.r+1),C[7][0].data=rr(n.e.c+1);var E=Ln(C[46][0].data),b=nt.find(l,o[E].location),h=ei(ti(b.content));{for(var g=0;g<h.length&&h[g].id!=E;++g);if(h[g].id!=E)throw"Bad ColumnRowUIDMapArchive";var y=qt(h[g].messages[0].data);y[1]=[],y[2]=[],y[3]=[];for(var S=0;S<=n.e.c;++S){var A=[];A[1]=A[2]=[{type:0,data:rr(S+420690)}],y[1].push({type:2,data:wn(A)}),y[2].push({type:0,data:rr(S)}),y[3].push({type:0,data:rr(S)})}y[4]=[],y[5]=[],y[6]=[];for(var k=0;k<=n.e.r;++k)A=[],A[1]=A[2]=[{type:0,data:rr(k+726270)}],y[4].push({type:2,data:wn(A)}),y[5].push({type:0,data:rr(k)}),y[6].push({type:0,data:rr(k)});h[g].messages[0].data=wn(y)}b.content=Bc(Lc(h)),b.size=b.content.length,delete C[46];var F=qt(C[4][0].data);{F[7][0].data=rr(n.e.r+1);var P=qt(F[1][0].data),j=Ln(P[2][0].data);b=nt.find(l,o[j].location),h=ei(ti(b.content));{if(h[0].id!=j)throw"Bad HeaderStorageBucket";var N=qt(h[0].messages[0].data);for(k=0;k<i.length;++k){var I=qt(N[2][0].data);I[1][0].data=rr(k),I[4][0].data=rr(i[k].length),N[2][k]={type:N[2][0].type,data:wn(I)}}h[0].messages[0].data=wn(N)}b.content=Bc(Lc(h)),b.size=b.content.length;var B=Ln(F[2][0].data);b=nt.find(l,o[B].location),h=ei(ti(b.content));{if(h[0].id!=B)throw"Bad HeaderStorageBucket";for(N=qt(h[0].messages[0].data),S=0;S<=n.e.c;++S)I=qt(N[2][0].data),I[1][0].data=rr(S),I[4][0].data=rr(n.e.r+1),N[2][S]={type:N[2][0].type,data:wn(I)};h[0].messages[0].data=wn(N)}b.content=Bc(Lc(h)),b.size=b.content.length;var O=Ln(F[4][0].data);(function(){for(var Q=nt.find(l,o[O].location),K=ei(ti(Q.content)),te,se=0;se<K.length;++se){var le=K[se];le.id==O&&(te=le)}var ge=qt(te.messages[0].data);{ge[3]=[];var ye=[];s.forEach(function(J,qe){ye[1]=[{type:0,data:rr(qe)}],ye[2]=[{type:0,data:rr(1)}],ye[3]=[{type:2,data:Bce(J)}],ge[3].push({type:2,data:wn(ye)})})}te.messages[0].data=wn(ge);var be=Lc(K),Be=Bc(be);Q.content=Be,Q.size=Q.content.length})();var M=qt(F[3][0].data);{var V=M[1][0];delete M[2];var L=qt(V.data);{var W=Ln(L[2][0].data);(function(){for(var Q=nt.find(l,o[W].location),K=ei(ti(Q.content)),te,se=0;se<K.length;++se){var le=K[se];le.id==W&&(te=le)}var ge=qt(te.messages[0].data);{delete ge[6],delete M[7];var ye=new Uint8Array(ge[5][0].data);ge[5]=[];for(var be=0,Be=0;Be<=n.e.r;++Be){var J=qt(ye);be+=Jce(J,i[Be],s),J[1][0].data=rr(Be),ge[5].push({data:wn(J),type:2})}ge[1]=[{type:0,data:rr(n.e.c+1)}],ge[2]=[{type:0,data:rr(n.e.r+1)}],ge[3]=[{type:0,data:rr(be)}],ge[4]=[{type:0,data:rr(n.e.r+1)}]}te.messages[0].data=wn(ge);var qe=Lc(K),_e=Bc(qe);Q.content=_e,Q.size=Q.content.length})()}V.data=wn(L)}F[3][0].data=wn(M)}C[4][0].data=wn(F)}v.messages[0].data=wn(C);var G=Lc(p),H=Bc(G);return d.content=H,d.size=d.content.length,l}function lO(e){return function(r){for(var n=0;n!=e.length;++n){var a=e[n];r[a[0]]===void 0&&(r[a[0]]=a[1]),a[2]==="n"&&(r[a[0]]=Number(r[a[0]]))}}}function vb(e){lO([["cellNF",!1],["cellHTML",!0],["cellFormula",!0],["cellStyles",!1],["cellText",!0],["cellDates",!1],["sheetStubs",!1],["sheetRows",0,"n"],["bookDeps",!1],["bookSheets",!1],["bookProps",!1],["bookFiles",!1],["bookVBA",!1],["password",""],["WTF",!1]])(e)}function xb(e){lO([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(e)}function efe(e){return Ot.WS.indexOf(e)>-1?"sheet":e==Ot.CS?"chart":e==Ot.DS?"dialog":e==Ot.MS?"macro":e&&e.length?e:"sheet"}function tfe(e,t){if(!e)return 0;try{e=t.map(function(n){return n.id||(n.id=n.strRelID),[n.name,e["!id"][n.id].Target,efe(e["!id"][n.id].Type)]})}catch{return null}return!e||e.length===0?null:e}function rfe(e,t,r,n,a,i,s,o,u,l,f,d){try{i[n]=wd(Fa(e,r,!0),t);var p=qr(e,t),v;switch(o){case"sheet":v=Ale(p,t,a,u,i[n],l,f,d);break;case"chart":if(v=Fle(p,t,a,u,i[n],l,f,d),!v||!v["!drawel"])break;var _=pd(v["!drawel"].Target,t),x=bd(_),w=gie(Fa(e,_,!0),wd(Fa(e,x,!0),_)),C=pd(w,_),E=bd(C);v=nle(Fa(e,C,!0),C,u,wd(Fa(e,E,!0),C),l,v);break;case"macro":v=Ole(p,t,a,u,i[n],l,f,d);break;case"dialog":v=Ple(p,t,a,u,i[n],l,f,d);break;default:throw new Error("Unrecognized sheet type "+o)}s[n]=v;var b=[];i&&i[n]&&Dr(i[n]).forEach(function(h){var g="";if(i[n][h].Type==Ot.CMNT){g=pd(i[n][h].Target,t);var y=Nle(qr(e,g,!0),g,u);if(!y||!y.length)return;m9(v,y,!1)}i[n][h].Type==Ot.TCMNT&&(g=pd(i[n][h].Target,t),b=b.concat(xie(qr(e,g,!0),u)))}),b&&b.length&&m9(v,b,!0,u.people||[])}catch(h){if(u.WTF)throw h}}function ri(e){return e.charAt(0)=="/"?e.slice(1):e}function cO(e,t){if(Cc(),t=t||{},vb(t),Ka(e,"META-INF/manifest.xml")||Ka(e,"objectdata.xml"))return nO(e,t);if(Ka(e,"Index/Document.iwa")){if(typeof Uint8Array>"u")throw new Error("NUMBERS file parsing requires Uint8Array support");if(typeof gb<"u"){if(e.FileIndex)return gb(e);var r=nt.utils.cfb_new();return FF(e).forEach(function(I){Ct(r,I,_ee(e,I))}),gb(r)}throw new Error("Unsupported NUMBERS file")}if(!Ka(e,"[Content_Types].xml"))throw Ka(e,"index.xml.gz")?new Error("Unsupported NUMBERS 08 file"):Ka(e,"index.xml")?new Error("Unsupported NUMBERS 09 file"):new Error("Unsupported ZIP file");var n=FF(e),a=dte(Fa(e,"[Content_Types].xml")),i=!1,s,o;if(a.workbooks.length===0&&(o="xl/workbook.xml",qr(e,o,!0)&&a.workbooks.push(o)),a.workbooks.length===0){if(o="xl/workbook.bin",!qr(e,o,!0))throw new Error("Could not find workbook");a.workbooks.push(o),i=!0}a.workbooks[0].slice(-3)=="bin"&&(i=!0);var u={},l={};if(!t.bookSheets&&!t.bookProps){if(Rd=[],a.sst)try{Rd=Ile(qr(e,ri(a.sst)),a.sst,t)}catch(I){if(t.WTF)throw I}t.cellStyles&&a.themes.length&&(u=Rle(Fa(e,a.themes[0].replace(/^\//,""),!0)||"",a.themes[0],t)),a.style&&(l=Dle(qr(e,ri(a.style)),a.style,u,t))}a.links.map(function(I){try{var B=wd(Fa(e,bd(ri(I))),I);return Lle(qr(e,ri(I)),B,I,t)}catch{}});var f=Tle(qr(e,ri(a.workbooks[0])),a.workbooks[0],t),d={},p="";a.coreprops.length&&(p=qr(e,ri(a.coreprops[0]),!0),p&&(d=m7(p)),a.extprops.length!==0&&(p=qr(e,ri(a.extprops[0]),!0),p&&_te(p,d,t)));var v={};(!t.bookSheets||t.bookProps)&&a.custprops.length!==0&&(p=Fa(e,ri(a.custprops[0]),!0),p&&(v=bte(p,t)));var _={};if((t.bookSheets||t.bookProps)&&(f.Sheets?s=f.Sheets.map(function(B){return B.name}):d.Worksheets&&d.SheetNames.length>0&&(s=d.SheetNames),t.bookProps&&(_.Props=d,_.Custprops=v),t.bookSheets&&typeof s<"u"&&(_.SheetNames=s),t.bookSheets?_.SheetNames:t.bookProps))return _;s={};var x={};t.bookDeps&&a.calcchain&&(x=Mle(qr(e,ri(a.calcchain)),a.calcchain));var w=0,C={},E,b;{var h=f.Sheets;d.Worksheets=h.length,d.SheetNames=[];for(var g=0;g!=h.length;++g)d.SheetNames[g]=h[g].name}var y=i?"bin":"xml",S=a.workbooks[0].lastIndexOf("/"),A=(a.workbooks[0].slice(0,S+1)+"_rels/"+a.workbooks[0].slice(S+1)+".rels").replace(/^\//,"");Ka(e,A)||(A="xl/_rels/workbook."+y+".rels");var k=wd(Fa(e,A,!0),A.replace(/_rels.*/,"s5s"));(a.metadata||[]).length>=1&&(t.xlmeta=Ble(qr(e,ri(a.metadata[0])),a.metadata[0],t)),(a.people||[]).length>=1&&(t.people=yie(qr(e,ri(a.people[0])),t)),k&&(k=tfe(k,f.Sheets));var F=qr(e,"xl/worksheets/sheet.xml",!0)?1:0;e:for(w=0;w!=d.Worksheets;++w){var P="sheet";if(k&&k[w]?(E="xl/"+k[w][1].replace(/[\/]?xl\//,""),Ka(e,E)||(E=k[w][1]),Ka(e,E)||(E=A.replace(/_rels\/.*$/,"")+k[w][1]),P=k[w][2]):(E="xl/worksheets/sheet"+(w+1-F)+"."+y,E=E.replace(/sheet0\./,"sheet.")),b=E.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels"),t&&t.sheets!=null)switch(typeof t.sheets){case"number":if(w!=t.sheets)continue e;break;case"string":if(d.SheetNames[w].toLowerCase()!=t.sheets.toLowerCase())continue e;break;default:if(Array.isArray&&Array.isArray(t.sheets)){for(var j=!1,N=0;N!=t.sheets.length;++N)typeof t.sheets[N]=="number"&&t.sheets[N]==w&&(j=1),typeof t.sheets[N]=="string"&&t.sheets[N].toLowerCase()==d.SheetNames[w].toLowerCase()&&(j=1);if(!j)continue e}}rfe(e,E,b,d.SheetNames[w],w,C,s,P,t,f,u,l)}return _={Directory:a,Workbook:f,Props:d,Custprops:v,Deps:x,Sheets:s,SheetNames:d.SheetNames,Strings:Rd,Styles:l,Themes:u,SSF:ur(ot)},t&&t.bookFiles&&(e.files?(_.keys=n,_.files=e.files):(_.keys=[],_.files={},e.FullPaths.forEach(function(I,B){I=I.replace(/^Root Entry[\/]/,""),_.keys.push(I),_.files[I]=e.FileIndex[B]}))),t&&t.bookVBA&&(a.vba.length>0?_.vbaraw=qr(e,ri(a.vba[0]),!0):a.defaults&&a.defaults.bin===Aie&&(_.vbaraw=qr(e,"xl/vbaProject.bin",!0))),_}function nfe(e,t){var r=t||{},n="Workbook",a=nt.find(e,n);try{if(n="/!DataSpaces/Version",a=nt.find(e,n),!a||!a.content)throw new Error("ECMA-376 Encrypted file missing "+n);if(jne(a.content),n="/!DataSpaces/DataSpaceMap",a=nt.find(e,n),!a||!a.content)throw new Error("ECMA-376 Encrypted file missing "+n);var i=Une(a.content);if(i.length!==1||i[0].comps.length!==1||i[0].comps[0].t!==0||i[0].name!=="StrongEncryptionDataSpace"||i[0].comps[0].v!=="EncryptedPackage")throw new Error("ECMA-376 Encrypted file bad "+n);if(n="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace",a=nt.find(e,n),!a||!a.content)throw new Error("ECMA-376 Encrypted file missing "+n);var s=zne(a.content);if(s.length!=1||s[0]!="StrongEncryptionTransform")throw new Error("ECMA-376 Encrypted file bad "+n);if(n="/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary",a=nt.find(e,n),!a||!a.content)throw new Error("ECMA-376 Encrypted file missing "+n);Wne(a.content)}catch{}if(n="/EncryptionInfo",a=nt.find(e,n),!a||!a.content)throw new Error("ECMA-376 Encrypted file missing "+n);var o=Vne(a.content);if(n="/EncryptedPackage",a=nt.find(e,n),!a||!a.content)throw new Error("ECMA-376 Encrypted file missing "+n);if(o[0]==4&&typeof decrypt_agile<"u")return decrypt_agile(o[1],a.content,r.password||"",r);if(o[0]==2&&typeof decrypt_std76<"u")return decrypt_std76(o[1],a.content,r.password||"",r);throw new Error("File is password-protected")}function afe(e,t){return t.bookType=="ods"?sO(e,t):t.bookType=="numbers"?Qce(e,t):t.bookType=="xlsb"?ife(e,t):fO(e,t)}function ife(e,t){Ic=1024,e&&!e.SSF&&(e.SSF=ur(ot)),e&&e.SSF&&(Cc(),dd(e.SSF),t.revssf=jp(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,Id?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r=t.bookType=="xlsb"?"bin":"xml",n=v9.indexOf(t.bookType)>-1,a=$y();xb(t=t||{});var i=my(),s="",o=0;if(t.cellXfs=[],Uo(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),s="docProps/core.xml",Ct(i,s,g7(e.Props,t)),a.coreprops.push(s),tr(t.rels,2,s,Ot.CORE_PROPS),s="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var u=[],l=0;l<e.SheetNames.length;++l)(e.Workbook.Sheets[l]||{}).Hidden!=2&&u.push(e.SheetNames[l]);e.Props.SheetNames=u}for(e.Props.Worksheets=e.Props.SheetNames.length,Ct(i,s,_7(e.Props)),a.extprops.push(s),tr(t.rels,3,s,Ot.EXT_PROPS),e.Custprops!==e.Props&&Dr(e.Custprops||{}).length>0&&(s="docProps/custom.xml",Ct(i,s,y7(e.Custprops)),a.custprops.push(s),tr(t.rels,4,s,Ot.CUST_PROPS)),o=1;o<=e.SheetNames.length;++o){var f={"!id":{}},d=e.Sheets[e.SheetNames[o-1]],p=(d||{})["!type"]||"sheet";switch(p){case"chart":default:s="xl/worksheets/sheet"+o+"."+r,Ct(i,s,$le(o-1,s,t,e,f)),a.sheets.push(s),tr(t.wbrels,-1,"worksheets/sheet"+o+"."+r,Ot.WS[0])}if(d){var v=d["!comments"],_=!1,x="";v&&v.length>0&&(x="xl/comments"+o+"."+r,Ct(i,x,Hle(v,x)),a.comments.push(x),tr(f,-1,"../comments"+o+"."+r,Ot.CMNT),_=!0),d["!legacy"]&&_&&Ct(i,"xl/drawings/vmlDrawing"+o+".vml",p9(o,d["!comments"])),delete d["!comments"],delete d["!legacy"]}f["!id"].rId1&&Ct(i,bd(s),Pc(f))}return t.Strings!=null&&t.Strings.length>0&&(s="xl/sharedStrings."+r,Ct(i,s,zle(t.Strings,s,t)),a.strs.push(s),tr(t.wbrels,-1,"sharedStrings."+r,Ot.SST)),s="xl/workbook."+r,Ct(i,s,jle(e,s)),a.workbooks.push(s),tr(t.rels,1,s,Ot.WB),s="xl/theme/theme1.xml",Ct(i,s,Qy(e.Themes,t)),a.themes.push(s),tr(t.wbrels,-1,"theme/theme1.xml",Ot.THEME),s="xl/styles."+r,Ct(i,s,Ule(e,s,t)),a.styles.push(s),tr(t.wbrels,-1,"styles."+r,Ot.STY),e.vbaraw&&n&&(s="xl/vbaProject.bin",Ct(i,s,e.vbaraw),a.vba.push(s),tr(t.wbrels,-1,"vbaProject.bin",Ot.VBA)),s="xl/metadata."+r,Ct(i,s,Wle(s)),a.metadata.push(s),tr(t.wbrels,-1,"metadata."+r,Ot.XLMETA),Ct(i,"[Content_Types].xml",d7(a,t)),Ct(i,"_rels/.rels",Pc(t.rels)),Ct(i,"xl/_rels/workbook."+r+".rels",Pc(t.wbrels)),delete t.revssf,delete t.ssf,i}function fO(e,t){Ic=1024,e&&!e.SSF&&(e.SSF=ur(ot)),e&&e.SSF&&(Cc(),dd(e.SSF),t.revssf=jp(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,Id?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r="xml",n=v9.indexOf(t.bookType)>-1,a=$y();xb(t=t||{});var i=my(),s="",o=0;if(t.cellXfs=[],Uo(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),s="docProps/core.xml",Ct(i,s,g7(e.Props,t)),a.coreprops.push(s),tr(t.rels,2,s,Ot.CORE_PROPS),s="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var u=[],l=0;l<e.SheetNames.length;++l)(e.Workbook.Sheets[l]||{}).Hidden!=2&&u.push(e.SheetNames[l]);e.Props.SheetNames=u}e.Props.Worksheets=e.Props.SheetNames.length,Ct(i,s,_7(e.Props)),a.extprops.push(s),tr(t.rels,3,s,Ot.EXT_PROPS),e.Custprops!==e.Props&&Dr(e.Custprops||{}).length>0&&(s="docProps/custom.xml",Ct(i,s,y7(e.Custprops)),a.custprops.push(s),tr(t.rels,4,s,Ot.CUST_PROPS));var f=["SheetJ5"];for(t.tcid=0,o=1;o<=e.SheetNames.length;++o){var d={"!id":{}},p=e.Sheets[e.SheetNames[o-1]],v=(p||{})["!type"]||"sheet";switch(v){case"chart":default:s="xl/worksheets/sheet"+o+"."+r,Ct(i,s,R9(o-1,t,e,d)),a.sheets.push(s),tr(t.wbrels,-1,"worksheets/sheet"+o+"."+r,Ot.WS[0])}if(p){var _=p["!comments"],x=!1,w="";if(_&&_.length>0){var C=!1;_.forEach(function(E){E[1].forEach(function(b){b.T==!0&&(C=!0)})}),C&&(w="xl/threadedComments/threadedComment"+o+"."+r,Ct(i,w,_ie(_,f,t)),a.threadedcomments.push(w),tr(d,-1,"../threadedComments/threadedComment"+o+"."+r,Ot.TCMNT)),w="xl/comments"+o+"."+r,Ct(i,w,g9(_)),a.comments.push(w),tr(d,-1,"../comments"+o+"."+r,Ot.CMNT),x=!0}p["!legacy"]&&x&&Ct(i,"xl/drawings/vmlDrawing"+o+".vml",p9(o,p["!comments"])),delete p["!comments"],delete p["!legacy"]}d["!id"].rId1&&Ct(i,bd(s),Pc(d))}return t.Strings!=null&&t.Strings.length>0&&(s="xl/sharedStrings."+r,Ct(i,s,t9(t.Strings,t)),a.strs.push(s),tr(t.wbrels,-1,"sharedStrings."+r,Ot.SST)),s="xl/workbook."+r,Ct(i,s,U9(e)),a.workbooks.push(s),tr(t.rels,1,s,Ot.WB),s="xl/theme/theme1.xml",Ct(i,s,Qy(e.Themes,t)),a.themes.push(s),tr(t.wbrels,-1,"theme/theme1.xml",Ot.THEME),s="xl/styles."+r,Ct(i,s,l9(e,t)),a.styles.push(s),tr(t.wbrels,-1,"styles."+r,Ot.STY),e.vbaraw&&n&&(s="xl/vbaProject.bin",Ct(i,s,e.vbaraw),a.vba.push(s),tr(t.wbrels,-1,"vbaProject.bin",Ot.VBA)),s="xl/metadata."+r,Ct(i,s,h9()),a.metadata.push(s),tr(t.wbrels,-1,"metadata."+r,Ot.XLMETA),f.length>1&&(s="xl/persons/person.xml",Ct(i,s,bie(f)),a.people.push(s),tr(t.wbrels,-1,"persons/person.xml",Ot.PEOPLE)),Ct(i,"[Content_Types].xml",d7(a,t)),Ct(i,"_rels/.rels",Pc(t.rels)),Ct(i,"xl/_rels/workbook."+r+".rels",Pc(t.wbrels)),delete t.revssf,delete t.ssf,i}function _b(e,t){var r="";switch((t||{}).type||"base64"){case"buffer":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":r=ka(e.slice(0,12));break;case"binary":r=e;break;case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];default:throw new Error("Unrecognized type "+(t&&t.type||"undefined"))}return[r.charCodeAt(0),r.charCodeAt(1),r.charCodeAt(2),r.charCodeAt(3),r.charCodeAt(4),r.charCodeAt(5),r.charCodeAt(6),r.charCodeAt(7)]}function sfe(e,t){return nt.find(e,"EncryptedPackage")?nfe(e,t):cb(e,t)}function ofe(e,t){var r,n=e,a=t||{};return a.type||(a.type=At&&Buffer.isBuffer(e)?"buffer":"base64"),r=OF(n,a),cO(r,a)}function dO(e,t){var r=0;e:for(;r<e.length;)switch(e.charCodeAt(r)){case 10:case 13:case 32:++r;break;case 60:return lb(e.slice(r),t);default:break e}return Dc.to_workbook(e,t)}function ufe(e,t){var r="",n=_b(e,t);switch(t.type){case"base64":r=ka(e);break;case"binary":r=e;break;case"buffer":r=e.toString("binary");break;case"array":r=Uu(e);break;default:throw new Error("Unrecognized type "+t.type)}return n[0]==239&&n[1]==187&&n[2]==191&&(r=sr(r)),t.type="binary",dO(r,t)}function lfe(e,t){var r=e;return t.type=="base64"&&(r=ka(r)),r=Ut.utils.decode(1200,r.slice(2),"str"),t.type="binary",dO(r,t)}function cfe(e){return e.match(/[^\x00-\x7F]/)?cs(e):e}function yb(e,t,r,n){return n?(r.type="string",Dc.to_workbook(e,r)):Dc.to_workbook(t,r)}function lm(e,t){Rp();var r=t||{};if(typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer)return lm(new Uint8Array(e),(r=ur(r),r.type="array",r));typeof Uint8Array<"u"&&e instanceof Uint8Array&&!r.type&&(r.type=typeof Deno<"u"?"buffer":"array");var n=e,a=[0,0,0,0],i=!1;if(r.cellStyles&&(r.cellNF=!0,r.sheetStubs=!0),Mc={},r.dateNF&&(Mc.dateNF=r.dateNF),r.type||(r.type=At&&Buffer.isBuffer(e)?"buffer":"base64"),r.type=="file"&&(r.type=At?"buffer":"binary",n=fee(e),typeof Uint8Array<"u"&&!At&&(r.type="array")),r.type=="string"&&(i=!0,r.type="binary",r.codepage=65001,n=cfe(e)),r.type=="array"&&typeof Uint8Array<"u"&&e instanceof Uint8Array&&typeof ArrayBuffer<"u"){var s=new ArrayBuffer(3),o=new Uint8Array(s);if(o.foo="bar",!o.foo)return r=ur(r),r.type="array",lm(cy(n),r)}switch((a=_b(n,r))[0]){case 208:if(a[1]===207&&a[2]===17&&a[3]===224&&a[4]===161&&a[5]===177&&a[6]===26&&a[7]===225)return sfe(nt.read(n,r),r);break;case 9:if(a[1]<=8)return cb(n,r);break;case 60:return lb(n,r);case 73:if(a[1]===73&&a[2]===42&&a[3]===0)throw new Error("TIFF Image File is not a spreadsheet");if(a[1]===68)return wne(n,r);break;case 84:if(a[1]===65&&a[2]===66&&a[3]===76)return Q7.to_workbook(n,r);break;case 80:return a[1]===75&&a[2]<9&&a[3]<9?ofe(n,r):yb(e,n,r,i);case 239:return a[3]===60?lb(n,r):yb(e,n,r,i);case 255:if(a[1]===254)return lfe(n,r);if(a[1]===0&&a[2]===2&&a[3]===0)return el.to_workbook(n,r);break;case 0:if(a[1]===0&&(a[2]>=2&&a[3]===0||a[2]===0&&(a[3]===8||a[3]===9)))return el.to_workbook(n,r);break;case 3:case 131:case 139:case 140:return Gy.to_workbook(n,r);case 123:if(a[1]===92&&a[2]===114&&a[3]===116)return s9.to_workbook(n,r);break;case 10:case 13:case 32:return ufe(n,r);case 137:if(a[1]===80&&a[2]===78&&a[3]===71)throw new Error("PNG Image File is not a spreadsheet");break}return bne.indexOf(a[0])>-1&&a[2]<=12&&a[3]<=31?Gy.to_workbook(n,r):yb(e,n,r,i)}function hO(e,t){var r=t||{};return r.type="file",lm(e,r)}function pO(e,t){switch(t.type){case"base64":case"binary":break;case"buffer":case"array":t.type="";break;case"file":return hd(t.file,nt.write(e,{type:At?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");default:throw new Error("Unrecognized type "+t.type)}return nt.write(e,t)}function ffe(e,t){var r=ur(t||{}),n=afe(e,r);return mO(n,r)}function dfe(e,t){var r=ur(t||{}),n=fO(e,r);return mO(n,r)}function mO(e,t){var r={},n=At?"nodebuffer":typeof Uint8Array<"u"?"array":"string";if(t.compression&&(r.compression="DEFLATE"),t.password)r.type=n;else switch(t.type){case"base64":r.type="base64";break;case"binary":r.type="string";break;case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");case"buffer":case"file":r.type=n;break;default:throw new Error("Unrecognized type "+t.type)}var a=e.FullPaths?nt.write(e,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[r.type]||r.type,compression:!!t.compression}):e.generate(r);if(typeof Deno<"u"&&typeof a=="string"){if(t.type=="binary"||t.type=="base64")return a;a=new Uint8Array(ld(a))}return t.password&&typeof encrypt_agile<"u"?pO(encrypt_agile(a,t.password),t):t.type==="file"?hd(t.file,a):t.type=="string"?sr(a):a}function hfe(e,t){var r=t||{},n=gce(e,r);return pO(n,r)}function ps(e,t,r){r||(r="");var n=r+e;switch(t.type){case"base64":return ud(cs(n));case"binary":return cs(n);case"string":return e;case"file":return hd(t.file,n,"utf8");case"buffer":return At?Vs(n,"utf8"):typeof TextEncoder<"u"?new TextEncoder().encode(n):ps(n,{type:"binary"}).split("").map(function(a){return a.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}function pfe(e,t){switch(t.type){case"base64":return ud(e);case"binary":return e;case"string":return e;case"file":return hd(t.file,e,"binary");case"buffer":return At?Vs(e,"binary"):e.split("").map(function(r){return r.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}function cm(e,t){switch(t.type){case"string":case"base64":case"binary":for(var r="",n=0;n<e.length;++n)r+=String.fromCharCode(e[n]);return t.type=="base64"?ud(r):t.type=="string"?sr(r):r;case"file":return hd(t.file,e);case"buffer":return e;default:throw new Error("Unrecognized type "+t.type)}}function bb(e,t){Rp(),$9(e);var r=ur(t||{});if(r.cellStyles&&(r.cellNF=!0,r.sheetStubs=!0),r.type=="array"){r.type="binary";var n=bb(e,r);return r.type="array",ld(n)}return dfe(e,r)}function fm(e,t){Rp(),$9(e);var r=ur(t||{});if(r.cellStyles&&(r.cellNF=!0,r.sheetStubs=!0),r.type=="array"){r.type="binary";var n=fm(e,r);return r.type="array",ld(n)}var a=0;if(r.sheet&&(typeof r.sheet=="number"?a=r.sheet:a=e.SheetNames.indexOf(r.sheet),!e.SheetNames[a]))throw new Error("Sheet not found: "+r.sheet+" : "+typeof r.sheet);switch(r.bookType||"xlsb"){case"xml":case"xlml":return ps(lce(e,r),r);case"slk":case"sylk":return ps(J7.from_sheet(e.Sheets[e.SheetNames[a]],r),r);case"htm":case"html":return ps(Z9(e.Sheets[e.SheetNames[a]],r),r);case"txt":return pfe(yO(e.Sheets[e.SheetNames[a]],r),r);case"csv":return ps(Sb(e.Sheets[e.SheetNames[a]],r),r,"\uFEFF");case"dif":return ps(Q7.from_sheet(e.Sheets[e.SheetNames[a]],r),r);case"dbf":return cm(Gy.from_sheet(e.Sheets[e.SheetNames[a]],r),r);case"prn":return ps(Dc.from_sheet(e.Sheets[e.SheetNames[a]],r),r);case"rtf":return ps(s9.from_sheet(e.Sheets[e.SheetNames[a]],r),r);case"eth":return ps(e9.from_sheet(e.Sheets[e.SheetNames[a]],r),r);case"fods":return ps(sO(e,r),r);case"wk1":return cm(el.sheet_to_wk1(e.Sheets[e.SheetNames[a]],r),r);case"wk3":return cm(el.book_to_wk3(e,r),r);case"biff2":r.biff||(r.biff=2);case"biff3":r.biff||(r.biff=3);case"biff4":return r.biff||(r.biff=4),cm(V9(e,r),r);case"biff5":r.biff||(r.biff=5);case"biff8":case"xla":case"xls":return r.biff||(r.biff=8),hfe(e,r);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return ffe(e,r);default:throw new Error("Unrecognized bookType |"+r.bookType+"|")}}function wb(e){if(!e.bookType){var t={xls:"biff8",htm:"html",slk:"sylk",socialcalc:"eth",Sh33tJS:"WTF"},r=e.file.slice(e.file.lastIndexOf(".")).toLowerCase();r.match(/^\.[a-z]+$/)&&(e.bookType=r.slice(1)),e.bookType=t[e.bookType]||e.bookType}}function gO(e,t,r){var n=r||{};return n.type="file",n.file=t,wb(n),fm(e,n)}function mfe(e,t,r){var n=r||{};return n.type="file",n.file=t,wb(n),bb(e,n)}function gfe(e,t,r,n){var a=r||{};a.type="file",a.file=e,wb(a),a.type="buffer";var i=n;return i instanceof Function||(i=r),Mo.writeFile(e,fm(t,a),i)}function vO(e,t,r,n,a,i,s,o){var u=Ir(r),l=o.defval,f=o.raw||!Object.prototype.hasOwnProperty.call(o,"raw"),d=!0,p=a===1?[]:{};if(a!==1)if(Object.defineProperty)try{Object.defineProperty(p,"__rowNum__",{value:r,enumerable:!1})}catch{p.__rowNum__=r}else p.__rowNum__=r;if(!s||e[r])for(var v=t.s.c;v<=t.e.c;++v){var _=s?e[r][v]:e[n[v]+u];if(_===void 0||_.t===void 0){if(l===void 0)continue;i[v]!=null&&(p[i[v]]=l);continue}var x=_.v;switch(_.t){case"z":if(x==null)break;continue;case"e":x=x==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+_.t)}if(i[v]!=null){if(x==null)if(_.t=="e"&&x===null)p[i[v]]=null;else if(l!==void 0)p[i[v]]=l;else if(f&&x===null)p[i[v]]=null;else continue;else p[i[v]]=f&&(_.t!=="n"||_.t==="n"&&o.rawNumbers!==!1)?x:fs(_,x,o);x!=null&&(d=!1)}}return{row:p,isempty:d}}function dm(e,t){if(e==null||e["!ref"]==null)return[];var r={t:"n",v:0},n=0,a=1,i=[],s=0,o="",u={s:{r:0,c:0},e:{r:0,c:0}},l=t||{},f=l.range!=null?l.range:e["!ref"];switch(l.header===1?n=1:l.header==="A"?n=2:Array.isArray(l.header)?n=3:l.header==null&&(n=0),typeof f){case"string":u=Mt(f);break;case"number":u=Mt(e["!ref"]),u.s.r=f;break;default:u=f}n>0&&(a=0);var d=Ir(u.s.r),p=[],v=[],_=0,x=0,w=Array.isArray(e),C=u.s.r,E=0,b={};w&&!e[C]&&(e[C]=[]);var h=l.skipHidden&&e["!cols"]||[],g=l.skipHidden&&e["!rows"]||[];for(E=u.s.c;E<=u.e.c;++E)if(!(h[E]||{}).hidden)switch(p[E]=br(E),r=w?e[C][E]:e[p[E]+d],n){case 1:i[E]=E-u.s.c;break;case 2:i[E]=p[E];break;case 3:i[E]=l.header[E-u.s.c];break;default:if(r==null&&(r={w:"__EMPTY",t:"s"}),o=s=fs(r,null,l),x=b[s]||0,!x)b[s]=1;else{do o=s+"_"+x++;while(b[o]);b[s]=x,b[o]=1}i[E]=o}for(C=u.s.r+a;C<=u.e.r;++C)if(!(g[C]||{}).hidden){var y=vO(e,u,C,p,n,i,w,l);(y.isempty===!1||(n===1?l.blankrows!==!1:l.blankrows))&&(v[_++]=y.row)}return v.length=_,v}var xO=/"/g;function _O(e,t,r,n,a,i,s,o){for(var u=!0,l=[],f="",d=Ir(r),p=t.s.c;p<=t.e.c;++p)if(n[p]){var v=o.dense?(e[r]||[])[p]:e[n[p]+d];if(v==null)f="";else if(v.v!=null){u=!1,f=""+(o.rawNumbers&&v.t=="n"?v.v:fs(v,null,o));for(var _=0,x=0;_!==f.length;++_)if((x=f.charCodeAt(_))===a||x===i||x===34||o.forceQuotes){f='"'+f.replace(xO,'""')+'"';break}f=="ID"&&(f='"ID"')}else v.f!=null&&!v.F?(u=!1,f="="+v.f,f.indexOf(",")>=0&&(f='"'+f.replace(xO,'""')+'"')):f="";l.push(f)}return o.blankrows===!1&&u?null:l.join(s)}function Sb(e,t){var r=[],n=t??{};if(e==null||e["!ref"]==null)return"";var a=Mt(e["!ref"]),i=n.FS!==void 0?n.FS:",",s=i.charCodeAt(0),o=n.RS!==void 0?n.RS:`
631
+ `,u=o.charCodeAt(0),l=new RegExp((i=="|"?"\\|":i)+"+$"),f="",d=[];n.dense=Array.isArray(e);for(var p=n.skipHidden&&e["!cols"]||[],v=n.skipHidden&&e["!rows"]||[],_=a.s.c;_<=a.e.c;++_)(p[_]||{}).hidden||(d[_]=br(_));for(var x=0,w=a.s.r;w<=a.e.r;++w)(v[w]||{}).hidden||(f=_O(e,a,w,d,s,u,i,n),f!=null&&(n.strip&&(f=f.replace(l,"")),(f||n.blankrows!==!1)&&r.push((x++?o:"")+f)));return delete n.dense,r.join("")}function yO(e,t){t||(t={}),t.FS=" ",t.RS=`
632
+ `;var r=Sb(e,t);if(typeof Ut>"u"||t.type=="string")return r;var n=Ut.utils.encode(1200,r,"str");return"ÿþ"+n}function vfe(e){var t="",r,n="";if(e==null||e["!ref"]==null)return[];var a=Mt(e["!ref"]),i="",s=[],o,u=[],l=Array.isArray(e);for(o=a.s.c;o<=a.e.c;++o)s[o]=br(o);for(var f=a.s.r;f<=a.e.r;++f)for(i=Ir(f),o=a.s.c;o<=a.e.c;++o)if(t=s[o]+i,r=l?(e[f]||[])[o]:e[t],n="",r!==void 0){if(r.F!=null){if(t=r.F,!r.f)continue;n=r.f,t.indexOf(":")==-1&&(t=t+":"+t)}if(r.f!=null)n=r.f;else{if(r.t=="z")continue;if(r.t=="n"&&r.v!=null)n=""+r.v;else if(r.t=="b")n=r.v?"TRUE":"FALSE";else if(r.w!==void 0)n="'"+r.w;else{if(r.v===void 0)continue;r.t=="s"?n="'"+r.v:n=""+r.v}}u[u.length]=t+"="+n}return u}function bO(e,t,r){var n=r||{},a=+!n.skipHeader,i=e||{},s=0,o=0;if(i&&n.origin!=null)if(typeof n.origin=="number")s=n.origin;else{var u=typeof n.origin=="string"?Ar(n.origin):n.origin;s=u.r,o=u.c}var l,f={s:{c:0,r:0},e:{c:o,r:s+t.length-1+a}};if(i["!ref"]){var d=Mt(i["!ref"]);f.e.c=Math.max(f.e.c,d.e.c),f.e.r=Math.max(f.e.r,d.e.r),s==-1&&(s=d.e.r+1,f.e.r=s+t.length-1+a)}else s==-1&&(s=0,f.e.r=t.length-1+a);var p=n.header||[],v=0;t.forEach(function(x,w){Dr(x).forEach(function(C){(v=p.indexOf(C))==-1&&(p[v=p.length]=C);var E=x[C],b="z",h="",g=ht({c:o+v,r:s+w+a});l=$d(i,g),E&&typeof E=="object"&&!(E instanceof Date)?i[g]=E:(typeof E=="number"?b="n":typeof E=="boolean"?b="b":typeof E=="string"?b="s":E instanceof Date?(b="d",n.cellDates||(b="n",E=Jr(E)),h=n.dateNF||ot[14]):E===null&&n.nullError&&(b="e",E=0),l?(l.t=b,l.v=E,delete l.w,delete l.R,h&&(l.z=h)):i[g]=l={t:b,v:E},h&&(l.z=h))})}),f.e.c=Math.max(f.e.c,o+p.length-1);var _=Ir(s);if(a)for(v=0;v<p.length;++v)i[br(v+o)+_]={t:"s",v:p[v]};return i["!ref"]=St(f),i}function xfe(e,t){return bO(null,e,t)}function $d(e,t,r){if(typeof t=="string"){if(Array.isArray(e)){var n=Ar(t);return e[n.r]||(e[n.r]=[]),e[n.r][n.c]||(e[n.r][n.c]={t:"z"})}return e[t]||(e[t]={t:"z"})}return typeof t!="number"?$d(e,ht(t)):$d(e,ht({r:t,c:r||0}))}function _fe(e,t){if(typeof t=="number"){if(t>=0&&e.SheetNames.length>t)return t;throw new Error("Cannot find sheet # "+t)}else if(typeof t=="string"){var r=e.SheetNames.indexOf(t);if(r>-1)return r;throw new Error("Cannot find sheet name |"+t+"|")}else throw new Error("Cannot find sheet |"+t+"|")}function Eb(){return{SheetNames:[],Sheets:{}}}function Cb(e,t,r,n){var a=1;if(!r)for(;a<=65535&&e.SheetNames.indexOf(r="Sheet"+a)!=-1;++a,r=void 0);if(!r||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(n&&e.SheetNames.indexOf(r)>=0){var i=r.match(/(^.*?)(\d+)$/);a=i&&+i[2]||0;var s=i&&i[1]||r;for(++a;a<=65535&&e.SheetNames.indexOf(r=s+a)!=-1;++a);}if(j9(r),e.SheetNames.indexOf(r)>=0)throw new Error("Worksheet with name |"+r+"| already exists!");return e.SheetNames.push(r),e.Sheets[r]=t,r}function yfe(e,t,r){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var n=_fe(e,t);switch(e.Workbook.Sheets[n]||(e.Workbook.Sheets[n]={}),r){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+r)}e.Workbook.Sheets[n].Hidden=r}function bfe(e,t){return e.z=t,e}function wO(e,t,r){return t?(e.l={Target:t},r&&(e.l.Tooltip=r)):delete e.l,e}function wfe(e,t,r){return wO(e,"#"+t,r)}function Sfe(e,t,r){e.c||(e.c=[]),e.c.push({t,a:r||"SheetJS"})}function Efe(e,t,r,n){for(var a=typeof t!="string"?t:Mt(t),i=typeof t=="string"?t:St(t),s=a.s.r;s<=a.e.r;++s)for(var o=a.s.c;o<=a.e.c;++o){var u=$d(e,s,o);u.t="n",u.F=i,delete u.v,s==a.s.r&&o==a.s.c&&(u.f=r,n&&(u.D=!0))}return e}var Cfe={encode_col:br,encode_row:Ir,encode_cell:ht,encode_range:St,decode_col:Oy,decode_row:Fy,split_cell:Hee,decode_cell:Ar,decode_range:qn,format_cell:fs,sheet_add_aoa:n7,sheet_add_json:bO,sheet_add_dom:J9,aoa_to_sheet:Fc,json_to_sheet:xfe,table_to_sheet:Q9,table_to_book:Ice,sheet_to_csv:Sb,sheet_to_txt:yO,sheet_to_json:dm,sheet_to_html:Z9,sheet_to_formulae:vfe,sheet_to_row_object_array:dm,sheet_get_cell:$d,book_new:Eb,book_append_sheet:Cb,book_set_sheet_visibility:yfe,cell_set_number_format:bfe,cell_set_hyperlink:wO,cell_set_internal_link:wfe,cell_add_comment:Sfe,sheet_set_array_formula:Efe,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}},hm;function kfe(e){hm=e}function Tfe(e,t){var r=hm(),n=t??{};if(e==null||e["!ref"]==null)return r.push(null),r;var a=Mt(e["!ref"]),i=n.FS!==void 0?n.FS:",",s=i.charCodeAt(0),o=n.RS!==void 0?n.RS:`
633
+ `,u=o.charCodeAt(0),l=new RegExp((i=="|"?"\\|":i)+"+$"),f="",d=[];n.dense=Array.isArray(e);for(var p=n.skipHidden&&e["!cols"]||[],v=n.skipHidden&&e["!rows"]||[],_=a.s.c;_<=a.e.c;++_)(p[_]||{}).hidden||(d[_]=br(_));var x=a.s.r,w=!1,C=0;return r._read=function(){if(!w)return w=!0,r.push("\uFEFF");for(;x<=a.e.r;)if(++x,!(v[x-1]||{}).hidden&&(f=_O(e,a,x-1,d,s,u,i,n),f!=null&&(n.strip&&(f=f.replace(l,"")),f||n.blankrows!==!1)))return r.push((C++?o:"")+f);return r.push(null)},r}function Afe(e,t){var r=hm(),n=t||{},a=n.header!=null?n.header:Y9,i=n.footer!=null?n.footer:X9;r.push(a);var s=qn(e["!ref"]);n.dense=Array.isArray(e),r.push(K9(e,s,n));var o=s.s.r,u=!1;return r._read=function(){if(o>s.e.r)return u||(u=!0,r.push("</table>"+i)),r.push(null);for(;o<=s.e.r;){r.push(G9(e,s,o,n)),++o;break}},r}function Ffe(e,t){var r=hm({objectMode:!0});if(e==null||e["!ref"]==null)return r.push(null),r;var n={t:"n",v:0},a=0,i=1,s=[],o=0,u="",l={s:{r:0,c:0},e:{r:0,c:0}},f=t||{},d=f.range!=null?f.range:e["!ref"];switch(f.header===1?a=1:f.header==="A"?a=2:Array.isArray(f.header)&&(a=3),typeof d){case"string":l=Mt(d);break;case"number":l=Mt(e["!ref"]),l.s.r=d;break;default:l=d}a>0&&(i=0);var p=Ir(l.s.r),v=[],_=0,x=Array.isArray(e),w=l.s.r,C=0,E={};x&&!e[w]&&(e[w]=[]);var b=f.skipHidden&&e["!cols"]||[],h=f.skipHidden&&e["!rows"]||[];for(C=l.s.c;C<=l.e.c;++C)if(!(b[C]||{}).hidden)switch(v[C]=br(C),n=x?e[w][C]:e[v[C]+p],a){case 1:s[C]=C-l.s.c;break;case 2:s[C]=v[C];break;case 3:s[C]=f.header[C-l.s.c];break;default:if(n==null&&(n={w:"__EMPTY",t:"s"}),u=o=fs(n,null,f),_=E[o]||0,!_)E[o]=1;else{do u=o+"_"+_++;while(E[u]);E[o]=_,E[u]=1}s[C]=u}return w=l.s.r+i,r._read=function(){for(;w<=l.e.r;)if(!(h[w-1]||{}).hidden){var g=vO(e,l,w,v,a,s,x,f);if(++w,g.isempty===!1||(a===1?f.blankrows!==!1:f.blankrows)){r.push(g.row);return}}return r.push(null)},r}var Ofe={to_json:Ffe,to_html:Afe,to_csv:Tfe,set_readable:kfe};const Pfe=sd.version,Dfe=Object.freeze(Object.defineProperty({__proto__:null,CFB:nt,SSF:yF,parse_xlscfb:cb,parse_zip:cO,read:lm,readFile:hO,readFileSync:hO,set_cptable:IQ,set_fs:lee,stream:Ofe,utils:Cfe,version:Pfe,write:fm,writeFile:gO,writeFileAsync:gfe,writeFileSync:gO,writeFileXLSX:mfe,writeXLSX:bb},Symbol.toStringTag,{value:"Module"}));vt.OnChainAI=OQ,vt.OnChainAdvancedSearch=PV,vt.OnChainBadge=hN,vt.OnChainCompositeForm=f0,vt.OnChainDropMenu=b$,vt.OnChainExcelViewer=w$,vt.OnChainForm=BS,vt.OnChainFormItem=xC,vt.OnChainGenAntImage=dC,vt.OnChainGlobalLoading=mN,vt.OnChainHighLightWords=fo,vt.OnChainIcon=gt,vt.OnChainImage=d2,vt.OnChainInput=F8,vt.OnChainLoading=bl,vt.OnChainLoadingSkCube=pN,vt.OnChainMarkdown=X6,vt.OnChainModal=Cu,vt.OnChainMosaic=zi,vt.OnChainPopupSelect=gC,vt.OnChainProvider=oR,vt.OnChainPublicTree=IV,vt.OnChainQueryBuilder=bC,vt.OnChainResourceTree=LE,vt.OnChainScrollBar=x$,vt.OnChainScrollBarAssembly=DV,vt.OnChainSelect=ou,vt.OnChainSelectPopupForm=uC,vt.OnChainTable=p1,vt.OnChainTableSelection=mC,vt.OnChainViewerError=_$,Object.defineProperty(vt,Symbol.toStringTag,{value:"Module"})});