onchain-uikit 3.9.4-alpha4 → 3.9.4-alpha41

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 (105) hide show
  1. package/dist/index.cjs.js +1 -529
  2. package/dist/index.es.js +9 -44600
  3. package/dist/index.umd.js +1 -633
  4. package/lib/src/app/main/model/context.d.ts +11 -7
  5. package/lib/src/components/OnChainAdvancedSearch/index.d.ts +22 -3
  6. package/lib/src/components/OnChainAdvancedSearch/index.stories.d.ts +1 -1
  7. package/lib/src/components/OnChainExcelTemplate/XlsxSheetManager.d.ts +5 -0
  8. package/lib/src/components/OnChainExcelTemplate/core.d.ts +14 -0
  9. package/lib/src/components/OnChainExcelTemplate/index.d.ts +5 -0
  10. package/lib/src/components/OnChainFormItem/index.d.ts +5 -5
  11. package/lib/src/components/OnChainGenAntImage/index.d.ts +1 -0
  12. package/lib/src/components/OnChainGlobalLoading/index.d.ts +3 -3
  13. package/lib/src/components/OnChainGlobalLoading/index.stories.d.ts +1 -1
  14. package/lib/src/components/OnChainIcon/index.d.ts +7 -3
  15. package/lib/src/components/OnChainModal/index.d.ts +1 -0
  16. package/lib/src/components/OnChainPopoverTransfer/index.d.ts +4 -4
  17. package/lib/src/components/OnChainPopoverTransfer/select/index.d.ts +5 -5
  18. package/lib/src/components/OnChainPopupSelect/index.d.ts +4 -1
  19. package/lib/src/components/OnChainProvider/index.d.ts +2 -1
  20. package/lib/src/components/OnChainPublicTree/index.d.ts +2 -2
  21. package/lib/src/components/OnChainPublicTree/index.stories.d.ts +1 -1
  22. package/lib/src/components/OnChainQueryBuilder/index.d.ts +14 -13
  23. package/lib/src/components/OnChainResourceTree/index.d.ts +2 -3
  24. package/lib/src/components/{PlmSearchSelect → OnChainSearchSelect}/index.d.ts +3 -3
  25. package/lib/src/components/OnChainSelectPopupForm/index.d.ts +2 -2
  26. package/lib/src/components/OnChainSelectPopupForm/select/index.d.ts +3 -3
  27. package/lib/src/components/OnChainTable/ContextMenu.d.ts +2 -2
  28. package/lib/src/components/OnChainTable/OnChainTableFormItem/index.d.ts +4 -3
  29. package/lib/src/components/OnChainTable/TableFooter.d.ts +2 -2
  30. package/lib/src/components/OnChainTable/TableUtils.d.ts +4 -4
  31. package/lib/src/components/OnChainTable/index.d.ts +6 -6
  32. package/lib/src/components/OnChainTable/index.stories.d.ts +4 -1
  33. package/lib/src/components/OnChainTable/useClipboard.d.ts +2 -2
  34. package/lib/src/components/OnChainTable/useColumn.d.ts +2 -2
  35. package/lib/src/components/OnChainTable/useCopy.d.ts +1 -2
  36. package/lib/src/components/OnChainTable/useDynamicHeight.d.ts +2 -2
  37. package/lib/src/components/OnChainTable/useFiltered.d.ts +2 -2
  38. package/lib/src/components/OnChainTable/usePaste.d.ts +1 -2
  39. package/lib/src/components/OnChainTableSelection/index.d.ts +8 -5
  40. package/lib/src/components/OnChainTableSelection/index.stories.d.ts +1 -1
  41. package/lib/src/components/OnChainUniverExcel/data.d.ts +2 -0
  42. package/lib/src/components/OnChainUniverExcel/index.d.ts +14 -0
  43. package/lib/src/components/OnChainUniverExcel/plugin.d.ts +1 -0
  44. package/lib/src/components/OnChainUniverExcel/plugins/controllers/controller.d.ts +11 -0
  45. package/lib/src/components/OnChainUniverExcel/plugins/controllers/menu/export.d.ts +13 -0
  46. package/lib/src/components/OnChainUniverExcel/plugins/controllers/menu/generate.d.ts +12 -0
  47. package/lib/src/components/OnChainUniverExcel/plugins/controllers/menu/import.d.ts +19 -0
  48. package/lib/src/components/OnChainUniverExcel/plugins/controllers/menu/save.d.ts +3 -0
  49. package/lib/src/components/OnChainUniverExcel/plugins/controllers/menu/saveDatabase.d.ts +12 -0
  50. package/lib/src/components/OnChainUniverExcel/plugins/index.d.ts +42 -0
  51. package/lib/src/components/OnChainUniverExcel/plugins/locale/en-US.d.ts +15 -0
  52. package/lib/src/components/OnChainUniverExcel/plugins/locale/zh-CN.d.ts +15 -0
  53. package/lib/src/components/OnChainVTable/ListTable.d.ts +30 -0
  54. package/lib/src/components/OnChainVTable/components/index.d.ts +1 -0
  55. package/lib/src/components/OnChainVTable/components/tooltip.d.ts +9 -0
  56. package/lib/src/components/OnChainVTable/const.d.ts +47 -0
  57. package/lib/src/components/OnChainVTable/demo.d.ts +1 -0
  58. package/lib/src/components/OnChainVTable/feature/customMergeCell.d.ts +33 -0
  59. package/lib/src/components/OnChainVTable/feature/fill-handle.d.ts +6 -0
  60. package/lib/src/components/OnChainVTable/feature/history-edit.d.ts +435 -0
  61. package/lib/src/components/OnChainVTable/feature/index.d.ts +6 -0
  62. package/lib/src/components/OnChainVTable/feature/right-click-menu.d.ts +24 -0
  63. package/lib/src/components/OnChainVTable/feature/style.d.ts +17 -0
  64. package/lib/src/components/OnChainVTable/feature/tooltip.d.ts +9 -0
  65. package/lib/src/components/OnChainVTable/feature/types.d.ts +34 -0
  66. package/lib/src/components/OnChainVTable/feature/utils.d.ts +141 -0
  67. package/lib/src/components/OnChainVTable/index.d.ts +6 -0
  68. package/lib/src/components/OnChainVTable/index.stories.d.ts +87 -0
  69. package/lib/src/components/OnChainVTable/type.d.ts +114 -0
  70. package/lib/src/components/PlmIcon/index.d.ts +30 -0
  71. package/lib/src/components/PlmIcon/index.stories.d.ts +15 -0
  72. package/lib/src/components/PlmLoading/PlmLoading.stories.d.ts +14 -0
  73. package/lib/src/components/PlmLoading/index.d.ts +7 -0
  74. package/lib/src/components/PlmLoadingSkCube/PlmLoadingSkCube.stories.d.ts +14 -0
  75. package/lib/src/components/PlmLoadingSkCube/index.d.ts +6 -0
  76. package/lib/src/components/PlmMarkdown/PlmLoading.stories.d.ts +14 -0
  77. package/lib/src/components/PlmMarkdown/index.d.ts +15 -0
  78. package/lib/src/components/PlmMosaic/index.d.ts +5 -0
  79. package/lib/src/components/PlmMosaic/index.stories.d.ts +14 -0
  80. package/lib/src/components/PlmSelect/index.d.ts +20 -0
  81. package/lib/src/components/PlmSelect/index.stories.d.ts +21 -0
  82. package/lib/src/extend/ButtonAuth.d.ts +11 -0
  83. package/lib/src/extend/Ti5ButtonAuth.d.ts +6 -0
  84. package/lib/src/index.d.ts +2 -32
  85. package/lib/src/language/translate.d.ts +3 -4
  86. package/lib/src/stories/Button.d.ts +14 -0
  87. package/lib/src/stories/Button.stories.d.ts +23 -0
  88. package/lib/src/stories/Header.d.ts +11 -0
  89. package/lib/src/stories/Header.stories.d.ts +18 -0
  90. package/lib/src/stories/OnChainProvider.d.ts +15 -0
  91. package/lib/src/stories/Page.d.ts +2 -0
  92. package/lib/src/stories/Page.stories.d.ts +12 -0
  93. package/lib/src/stories/PlmMosaic.stories.d.ts +14 -0
  94. package/lib/src/stories/PlmSelect/PlmSelect.stories.d.ts +21 -0
  95. package/lib/src/stories/PlmSelect/index.d.ts +20 -0
  96. package/lib/src/stories/XsButton.d.ts +22 -0
  97. package/lib/src/stories/XsButton.stories.d.ts +14 -0
  98. package/lib/src/types/gantt.d.ts +1 -1
  99. package/lib/src/typings.d.ts +3 -3
  100. package/lib/src/utils/utility.d.ts +3 -1
  101. package/lib/typings.d.ts +3 -1
  102. package/package.json +9 -1
  103. package/dist/onchain-uikit.css +0 -10
  104. package/dist/xlsx-C9f7-NIf.mjs +0 -24768
  105. package/dist/xlsx-DtQJwEPb.js +0 -105
package/dist/index.cjs.js CHANGED
@@ -1,529 +1 @@
1
- "use strict";var sP=Object.defineProperty;var uP=(e,t,r)=>t in e?sP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Tt=(e,t,r)=>uP(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const F=require("react"),Z=require("antd"),zl=require("react-dom");function lP(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 ee=lP(F);var Un=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Rr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function cP(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 _d={exports:{}},Eu={};/**
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 q_;function dP(){if(q_)return Eu;q_=1;var e=F,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 o(l,u,c){var m,p={},g=null,y=null;c!==void 0&&(g=""+c),u.key!==void 0&&(g=""+u.key),u.ref!==void 0&&(y=u.ref);for(m in u)n.call(u,m)&&!i.hasOwnProperty(m)&&(p[m]=u[m]);if(l&&l.defaultProps)for(m in u=l.defaultProps,u)p[m]===void 0&&(p[m]=u[m]);return{$$typeof:t,type:l,key:g,ref:y,props:p,_owner:a.current}}return Eu.Fragment=r,Eu.jsx=o,Eu.jsxs=o,Eu}var ku={};/**
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 W_;function fP(){return W_||(W_=1,process.env.NODE_ENV!=="production"&&function(){var e=F,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"),o=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),x=Symbol.iterator,E="@@iterator";function k(K){if(K===null||typeof K!="object")return null;var ge=x&&K[x]||K[E];return typeof ge=="function"?ge:null}var T=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function w(K){{for(var ge=arguments.length,xe=new Array(ge>1?ge-1:0),He=1;He<ge;He++)xe[He-1]=arguments[He];S("error",K,xe)}}function S(K,ge,xe){{var He=T.ReactDebugCurrentFrame,ft=He.getStackAddendum();ft!==""&&(ge+="%s",xe=xe.concat([ft]));var bt=xe.map(function(it){return String(it)});bt.unshift("Warning: "+ge),Function.prototype.apply.call(console[K],console,bt)}}var f=!1,h=!1,v=!1,_=!1,R=!1,C;C=Symbol.for("react.module.reference");function P(K){return!!(typeof K=="string"||typeof K=="function"||K===n||K===i||R||K===a||K===c||K===m||_||K===y||f||h||v||typeof K=="object"&&K!==null&&(K.$$typeof===g||K.$$typeof===p||K.$$typeof===o||K.$$typeof===l||K.$$typeof===u||K.$$typeof===C||K.getModuleId!==void 0))}function M(K,ge,xe){var He=K.displayName;if(He)return He;var ft=ge.displayName||ge.name||"";return ft!==""?xe+"("+ft+")":xe}function q(K){return K.displayName||"Context"}function L(K){if(K==null)return null;if(typeof K.tag=="number"&&w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof K=="function")return K.displayName||K.name||null;if(typeof K=="string")return K;switch(K){case n:return"Fragment";case r:return"Portal";case i:return"Profiler";case a:return"StrictMode";case c:return"Suspense";case m:return"SuspenseList"}if(typeof K=="object")switch(K.$$typeof){case l:var ge=K;return q(ge)+".Consumer";case o:var xe=K;return q(xe._context)+".Provider";case u:return M(K,K.render,"ForwardRef");case p:var He=K.displayName||null;return He!==null?He:L(K.type)||"Memo";case g:{var ft=K,bt=ft._payload,it=ft._init;try{return L(it(bt))}catch{return null}}}return null}var N=Object.assign,j=0,O,I,z,B,H,U,J;function re(){}re.__reactDisabledLog=!0;function ne(){{if(j===0){O=console.log,I=console.info,z=console.warn,B=console.error,H=console.group,U=console.groupCollapsed,J=console.groupEnd;var K={configurable:!0,enumerable:!0,value:re,writable:!0};Object.defineProperties(console,{info:K,log:K,warn:K,error:K,group:K,groupCollapsed:K,groupEnd:K})}j++}}function se(){{if(j--,j===0){var K={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:N({},K,{value:O}),info:N({},K,{value:I}),warn:N({},K,{value:z}),error:N({},K,{value:B}),group:N({},K,{value:H}),groupCollapsed:N({},K,{value:U}),groupEnd:N({},K,{value:J})})}j<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ce=T.ReactCurrentDispatcher,le;function ye(K,ge,xe){{if(le===void 0)try{throw Error()}catch(ft){var He=ft.stack.trim().match(/\n( *(at )?)/);le=He&&He[1]||""}return`
18
- `+le+K}}var we=!1,Ee;{var Le=typeof WeakMap=="function"?WeakMap:Map;Ee=new Le}function he(K,ge){if(!K||we)return"";{var xe=Ee.get(K);if(xe!==void 0)return xe}var He;we=!0;var ft=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var bt;bt=ce.current,ce.current=null,ne();try{if(ge){var it=function(){throw Error()};if(Object.defineProperty(it.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(it,[])}catch(Jt){He=Jt}Reflect.construct(K,[],it)}else{try{it.call()}catch(Jt){He=Jt}K.call(it.prototype)}}else{try{throw Error()}catch(Jt){He=Jt}K()}}catch(Jt){if(Jt&&He&&typeof Jt.stack=="string"){for(var et=Jt.stack.split(`
19
- `),lr=He.stack.split(`
20
- `),$t=et.length-1,Ht=lr.length-1;$t>=1&&Ht>=0&&et[$t]!==lr[Ht];)Ht--;for(;$t>=1&&Ht>=0;$t--,Ht--)if(et[$t]!==lr[Ht]){if($t!==1||Ht!==1)do if($t--,Ht--,Ht<0||et[$t]!==lr[Ht]){var Dr=`
21
- `+et[$t].replace(" at new "," at ");return K.displayName&&Dr.includes("<anonymous>")&&(Dr=Dr.replace("<anonymous>",K.displayName)),typeof K=="function"&&Ee.set(K,Dr),Dr}while($t>=1&&Ht>=0);break}}}finally{we=!1,ce.current=bt,se(),Error.prepareStackTrace=ft}var An=K?K.displayName||K.name:"",Sa=An?ye(An):"";return typeof K=="function"&&Ee.set(K,Sa),Sa}function qe(K,ge,xe){return he(K,!1)}function oe(K){var ge=K.prototype;return!!(ge&&ge.isReactComponent)}function De(K,ge,xe){if(K==null)return"";if(typeof K=="function")return he(K,oe(K));if(typeof K=="string")return ye(K);switch(K){case c:return ye("Suspense");case m:return ye("SuspenseList")}if(typeof K=="object")switch(K.$$typeof){case u:return qe(K.render);case p:return De(K.type,ge,xe);case g:{var He=K,ft=He._payload,bt=He._init;try{return De(bt(ft),ge,xe)}catch{}}}return""}var Je=Object.prototype.hasOwnProperty,Ct={},Et=T.ReactDebugCurrentFrame;function Fe(K){if(K){var ge=K._owner,xe=De(K.type,K._source,ge?ge.type:null);Et.setExtraStackFrame(xe)}else Et.setExtraStackFrame(null)}function We(K,ge,xe,He,ft){{var bt=Function.call.bind(Je);for(var it in K)if(bt(K,it)){var et=void 0;try{if(typeof K[it]!="function"){var lr=Error((He||"React class")+": "+xe+" type `"+it+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof K[it]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw lr.name="Invariant Violation",lr}et=K[it](ge,it,He,xe,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch($t){et=$t}et&&!(et instanceof Error)&&(Fe(ft),w("%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).",He||"React class",xe,it,typeof et),Fe(null)),et instanceof Error&&!(et.message in Ct)&&(Ct[et.message]=!0,Fe(ft),w("Failed %s type: %s",xe,et.message),Fe(null))}}}var Ne=Array.isArray;function Oe(K){return Ne(K)}function at(K){{var ge=typeof Symbol=="function"&&Symbol.toStringTag,xe=ge&&K[Symbol.toStringTag]||K.constructor.name||"Object";return xe}}function Pr(K){try{return Wr(K),!1}catch{return!0}}function Wr(K){return""+K}function Oc(K){if(Pr(K))return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",at(K)),Wr(K)}var oi=T.ReactCurrentOwner,si={key:!0,ref:!0,__self:!0,__source:!0},Ao,Ro;function Qs(K){if(Je.call(K,"ref")){var ge=Object.getOwnPropertyDescriptor(K,"ref").get;if(ge&&ge.isReactWarning)return!1}return K.ref!==void 0}function eu(K){if(Je.call(K,"key")){var ge=Object.getOwnPropertyDescriptor(K,"key").get;if(ge&&ge.isReactWarning)return!1}return K.key!==void 0}function tu(K,ge){typeof K.ref=="string"&&oi.current}function ru(K,ge){{var xe=function(){Ao||(Ao=!0,w("%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)",ge))};xe.isReactWarning=!0,Object.defineProperty(K,"key",{get:xe,configurable:!0})}}function nu(K,ge){{var xe=function(){Ro||(Ro=!0,w("%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)",ge))};xe.isReactWarning=!0,Object.defineProperty(K,"ref",{get:xe,configurable:!0})}}var au=function(K,ge,xe,He,ft,bt,it){var et={$$typeof:t,type:K,key:ge,ref:xe,props:it,_owner:bt};return et._store={},Object.defineProperty(et._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(et,"_self",{configurable:!1,enumerable:!1,writable:!1,value:He}),Object.defineProperty(et,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ft}),Object.freeze&&(Object.freeze(et.props),Object.freeze(et)),et};function iu(K,ge,xe,He,ft){{var bt,it={},et=null,lr=null;xe!==void 0&&(Oc(xe),et=""+xe),eu(ge)&&(Oc(ge.key),et=""+ge.key),Qs(ge)&&(lr=ge.ref,tu(ge,ft));for(bt in ge)Je.call(ge,bt)&&!si.hasOwnProperty(bt)&&(it[bt]=ge[bt]);if(K&&K.defaultProps){var $t=K.defaultProps;for(bt in $t)it[bt]===void 0&&(it[bt]=$t[bt])}if(et||lr){var Ht=typeof K=="function"?K.displayName||K.name||"Unknown":K;et&&ru(it,Ht),lr&&nu(it,Ht)}return au(K,et,lr,ft,He,oi.current,it)}}var ou=T.ReactCurrentOwner,Ac=T.ReactDebugCurrentFrame;function ui(K){if(K){var ge=K._owner,xe=De(K.type,K._source,ge?ge.type:null);Ac.setExtraStackFrame(xe)}else Ac.setExtraStackFrame(null)}var Po;Po=!1;function Do(K){return typeof K=="object"&&K!==null&&K.$$typeof===t}function Rc(){{if(ou.current){var K=L(ou.current.type);if(K)return`
22
-
23
- Check the render method of \``+K+"`."}return""}}function qh(K){return""}var Pc={};function Wh(K){{var ge=Rc();if(!ge){var xe=typeof K=="string"?K:K.displayName||K.name;xe&&(ge=`
24
-
25
- Check the top-level render call using <`+xe+">.")}return ge}}function su(K,ge){{if(!K._store||K._store.validated||K.key!=null)return;K._store.validated=!0;var xe=Wh(ge);if(Pc[xe])return;Pc[xe]=!0;var He="";K&&K._owner&&K._owner!==ou.current&&(He=" It was passed a child from "+L(K._owner.type)+"."),ui(K),w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',xe,He),ui(null)}}function Dc(K,ge){{if(typeof K!="object")return;if(Oe(K))for(var xe=0;xe<K.length;xe++){var He=K[xe];Do(He)&&su(He,ge)}else if(Do(K))K._store&&(K._store.validated=!0);else if(K){var ft=k(K);if(typeof ft=="function"&&ft!==K.entries)for(var bt=ft.call(K),it;!(it=bt.next()).done;)Do(it.value)&&su(it.value,ge)}}}function Vh(K){{var ge=K.type;if(ge==null||typeof ge=="string")return;var xe;if(typeof ge=="function")xe=ge.propTypes;else if(typeof ge=="object"&&(ge.$$typeof===u||ge.$$typeof===p))xe=ge.propTypes;else return;if(xe){var He=L(ge);We(xe,K.props,"prop",He,K)}else if(ge.PropTypes!==void 0&&!Po){Po=!0;var ft=L(ge);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ft||"Unknown")}typeof ge.getDefaultProps=="function"&&!ge.getDefaultProps.isReactClassApproved&&w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Yh(K){{for(var ge=Object.keys(K.props),xe=0;xe<ge.length;xe++){var He=ge[xe];if(He!=="children"&&He!=="key"){ui(K),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",He),ui(null);break}}K.ref!==null&&(ui(K),w("Invalid attribute `ref` supplied to `React.Fragment`."),ui(null))}}var Mo={};function Mc(K,ge,xe,He,ft,bt){{var it=P(K);if(!it){var et="";(K===void 0||typeof K=="object"&&K!==null&&Object.keys(K).length===0)&&(et+=" 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 lr=qh();lr?et+=lr:et+=Rc();var $t;K===null?$t="null":Oe(K)?$t="array":K!==void 0&&K.$$typeof===t?($t="<"+(L(K.type)||"Unknown")+" />",et=" Did you accidentally export a JSX literal instead of a component?"):$t=typeof K,w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",$t,et)}var Ht=iu(K,ge,xe,ft,bt);if(Ht==null)return Ht;if(it){var Dr=ge.children;if(Dr!==void 0)if(He)if(Oe(Dr)){for(var An=0;An<Dr.length;An++)Dc(Dr[An],K);Object.freeze&&Object.freeze(Dr)}else w("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 Dc(Dr,K)}if(Je.call(ge,"key")){var Sa=L(K),Jt=Object.keys(ge).filter(function(Jh){return Jh!=="key"}),lu=Jt.length>0?"{key: someKey, "+Jt.join(": ..., ")+": ...}":"{key: someKey}";if(!Mo[Sa+lu]){var Zh=Jt.length>0?"{"+Jt.join(": ..., ")+": ...}":"{}";w(`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} />`,lu,Sa,Zh,Sa),Mo[Sa+lu]=!0}}return K===n?Yh(Ht):Vh(Ht),Ht}}function uu(K,ge,xe){return Mc(K,ge,xe,!0)}function Gh(K,ge,xe){return Mc(K,ge,xe,!1)}var Kh=Gh,Xh=uu;ku.Fragment=n,ku.jsx=Kh,ku.jsxs=Xh}()),ku}var V_;function hP(){return V_||(V_=1,process.env.NODE_ENV==="production"?_d.exports=dP():_d.exports=fP()),_d.exports}var D=hP();const lc=F.createContext({});var Tu={},lp={exports:{}},Y_;function Qf(){return Y_||(Y_=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}(lp)),lp.exports}var Ou={},G_;function pP(){if(G_)return Ou;G_=1,Object.defineProperty(Ou,"__esModule",{value:!0}),Ou.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 Ou.default=e,Ou}var Au={},Ru={},Pu={},cp={exports:{}},dp={exports:{}},fp={exports:{}},hp={exports:{}},K_;function u8(){return K_||(K_=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}(hp)),hp.exports}var pp={exports:{}},X_;function mP(){return X_||(X_=1,function(e){var t=u8().default;function r(n,a){if(t(n)!="object"||!n)return n;var i=n[Symbol.toPrimitive];if(i!==void 0){var o=i.call(n,a||"default");if(t(o)!="object")return o;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}(pp)),pp.exports}var Z_;function gP(){return Z_||(Z_=1,function(e){var t=u8().default,r=mP();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}(fp)),fp.exports}var J_;function vP(){return J_||(J_=1,function(e){var t=gP();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}(dp)),dp.exports}var Q_;function bP(){return Q_||(Q_=1,function(e){var t=vP();function r(a,i){var o=Object.keys(a);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(a);i&&(l=l.filter(function(u){return Object.getOwnPropertyDescriptor(a,u).enumerable})),o.push.apply(o,l)}return o}function n(a){for(var i=1;i<arguments.length;i++){var o=arguments[i]!=null?arguments[i]:{};i%2?r(Object(o),!0).forEach(function(l){t(a,l,o[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach(function(l){Object.defineProperty(a,l,Object.getOwnPropertyDescriptor(o,l))})}return a}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(cp)),cp.exports}var Du={},e2;function yP(){return e2||(e2=1,Object.defineProperty(Du,"__esModule",{value:!0}),Du.commonLocale=void 0,Du.commonLocale={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),Du}var t2;function _P(){if(t2)return Pu;t2=1;var e=Qf().default;Object.defineProperty(Pu,"__esModule",{value:!0}),Pu.default=void 0;var t=e(bP()),r=yP(),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 Pu.default=n,Pu}var Mu={},r2;function l8(){if(r2)return Mu;r2=1,Object.defineProperty(Mu,"__esModule",{value:!0}),Mu.default=void 0;const e={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};return Mu.default=e,Mu}var n2;function c8(){if(n2)return Ru;n2=1;var e=Qf().default;Object.defineProperty(Ru,"__esModule",{value:!0}),Ru.default=void 0;var t=e(_P()),r=e(l8());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="确定",Ru.default=n,Ru}var a2;function wP(){if(a2)return Au;a2=1;var e=Qf().default;Object.defineProperty(Au,"__esModule",{value:!0}),Au.default=void 0;var t=e(c8());return Au.default=t.default,Au}var i2;function xP(){if(i2)return Tu;i2=1;var e=Qf().default;Object.defineProperty(Tu,"__esModule",{value:!0}),Tu.default=void 0;var t=e(pP()),r=e(wP()),n=e(c8()),a=e(l8());const i="${label}不是一个有效的${type}",o={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 Tu.default=o,Tu}var SP=xP();const CP=Rr(SP),EP=({prefixCls:e="frontend",...t},r)=>{Z.ConfigProvider.config({prefixCls:e});const n=F.createElement(Z.ConfigProvider,{prefixCls:e,locale:CP,input:{autoComplete:"off"},autoInsertSpaceInButton:!1},t.children);return D.jsx(lc.Provider,{value:t.contextData,children:n})};var mp={exports:{}};/*!
31
- Copyright (c) 2018 Jed Watson.
32
- Licensed under the MIT License (MIT), see
33
- http://jedwatson.github.io/classnames
34
- */var o2;function kP(){return o2||(o2=1,function(e){(function(){var t={}.hasOwnProperty;function r(){for(var i="",o=0;o<arguments.length;o++){var l=arguments[o];l&&(i=a(i,n(l)))}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 o="";for(var l in i)t.call(i,l)&&i[l]&&(o=a(o,l));return o}function a(i,o){return o?i?i+" "+o:i+o:i}e.exports?(r.default=r,e.exports=r):window.classNames=r})()}(mp)),mp.exports}var TP=kP();const Te=Rr(TP),OP="_main_5bucb_1",gp={main:OP};var xl={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 AP=xl.exports,s2;function RP(){return s2||(s2=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.",o="Expected a function",l="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",c=500,m="__lodash_placeholder__",p=1,g=2,y=4,x=1,E=2,k=1,T=2,w=4,S=8,f=16,h=32,v=64,_=128,R=256,C=512,P=30,M="...",q=800,L=16,N=1,j=2,O=3,I=1/0,z=9007199254740991,B=17976931348623157e292,H=NaN,U=4294967295,J=U-1,re=U>>>1,ne=[["ary",_],["bind",k],["bindKey",T],["curry",S],["curryRight",f],["flip",C],["partial",h],["partialRight",v],["rearg",R]],se="[object Arguments]",ce="[object Array]",le="[object AsyncFunction]",ye="[object Boolean]",we="[object Date]",Ee="[object DOMException]",Le="[object Error]",he="[object Function]",qe="[object GeneratorFunction]",oe="[object Map]",De="[object Number]",Je="[object Null]",Ct="[object Object]",Et="[object Promise]",Fe="[object Proxy]",We="[object RegExp]",Ne="[object Set]",Oe="[object String]",at="[object Symbol]",Pr="[object Undefined]",Wr="[object WeakMap]",Oc="[object WeakSet]",oi="[object ArrayBuffer]",si="[object DataView]",Ao="[object Float32Array]",Ro="[object Float64Array]",Qs="[object Int8Array]",eu="[object Int16Array]",tu="[object Int32Array]",ru="[object Uint8Array]",nu="[object Uint8ClampedArray]",au="[object Uint16Array]",iu="[object Uint32Array]",ou=/\b__p \+= '';/g,Ac=/\b(__p \+=) '' \+/g,ui=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Po=/&(?:amp|lt|gt|quot|#39);/g,Do=/[&<>"']/g,Rc=RegExp(Po.source),qh=RegExp(Do.source),Pc=/<%-([\s\S]+?)%>/g,Wh=/<%([\s\S]+?)%>/g,su=/<%=([\s\S]+?)%>/g,Dc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Vh=/^\w*$/,Yh=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Mo=/[\\^$.*+?()[\]{}|]/g,Mc=RegExp(Mo.source),uu=/^\s+/,Gh=/\s/,Kh=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Xh=/\{\n\/\* \[wrapped with (.+)\] \*/,K=/,? & /,ge=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,xe=/[()=,{}\[\]\/\s]/,He=/\\(\\)?/g,ft=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,bt=/\w*$/,it=/^[-+]0x[0-9a-f]+$/i,et=/^0b[01]+$/i,lr=/^\[object .+?Constructor\]$/,$t=/^0o[0-7]+$/i,Ht=/^(?:0|[1-9]\d*)$/,Dr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,An=/($^)/,Sa=/['\n\r\u2028\u2029\\]/g,Jt="\\ud800-\\udfff",lu="\\u0300-\\u036f",Zh="\\ufe20-\\ufe2f",Jh="\\u20d0-\\u20ff",yb=lu+Zh+Jh,_b="\\u2700-\\u27bf",wb="a-z\\xdf-\\xf6\\xf8-\\xff",nk="\\xac\\xb1\\xd7\\xf7",ak="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ik="\\u2000-\\u206f",ok=" \\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",xb="A-Z\\xc0-\\xd6\\xd8-\\xde",Sb="\\ufe0e\\ufe0f",Cb=nk+ak+ik+ok,Qh="['’]",sk="["+Jt+"]",Eb="["+Cb+"]",Fc="["+yb+"]",kb="\\d+",uk="["+_b+"]",Tb="["+wb+"]",Ob="[^"+Jt+Cb+kb+_b+wb+xb+"]",e0="\\ud83c[\\udffb-\\udfff]",lk="(?:"+Fc+"|"+e0+")",Ab="[^"+Jt+"]",t0="(?:\\ud83c[\\udde6-\\uddff]){2}",r0="[\\ud800-\\udbff][\\udc00-\\udfff]",Fo="["+xb+"]",Rb="\\u200d",Pb="(?:"+Tb+"|"+Ob+")",ck="(?:"+Fo+"|"+Ob+")",Db="(?:"+Qh+"(?:d|ll|m|re|s|t|ve))?",Mb="(?:"+Qh+"(?:D|LL|M|RE|S|T|VE))?",Fb=lk+"?",Nb="["+Sb+"]?",dk="(?:"+Rb+"(?:"+[Ab,t0,r0].join("|")+")"+Nb+Fb+")*",fk="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",hk="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ib=Nb+Fb+dk,pk="(?:"+[uk,t0,r0].join("|")+")"+Ib,mk="(?:"+[Ab+Fc+"?",Fc,t0,r0,sk].join("|")+")",gk=RegExp(Qh,"g"),vk=RegExp(Fc,"g"),n0=RegExp(e0+"(?="+e0+")|"+mk+Ib,"g"),bk=RegExp([Fo+"?"+Tb+"+"+Db+"(?="+[Eb,Fo,"$"].join("|")+")",ck+"+"+Mb+"(?="+[Eb,Fo+Pb,"$"].join("|")+")",Fo+"?"+Pb+"+"+Db,Fo+"+"+Mb,hk,fk,kb,pk].join("|"),"g"),yk=RegExp("["+Rb+Jt+yb+Sb+"]"),_k=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,wk=["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"],xk=-1,Ft={};Ft[Ao]=Ft[Ro]=Ft[Qs]=Ft[eu]=Ft[tu]=Ft[ru]=Ft[nu]=Ft[au]=Ft[iu]=!0,Ft[se]=Ft[ce]=Ft[oi]=Ft[ye]=Ft[si]=Ft[we]=Ft[Le]=Ft[he]=Ft[oe]=Ft[De]=Ft[Ct]=Ft[We]=Ft[Ne]=Ft[Oe]=Ft[Wr]=!1;var Pt={};Pt[se]=Pt[ce]=Pt[oi]=Pt[si]=Pt[ye]=Pt[we]=Pt[Ao]=Pt[Ro]=Pt[Qs]=Pt[eu]=Pt[tu]=Pt[oe]=Pt[De]=Pt[Ct]=Pt[We]=Pt[Ne]=Pt[Oe]=Pt[at]=Pt[ru]=Pt[nu]=Pt[au]=Pt[iu]=!0,Pt[Le]=Pt[he]=Pt[Wr]=!1;var Sk={À:"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"},Ck={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Ek={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},kk={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Tk=parseFloat,Ok=parseInt,Lb=typeof Un=="object"&&Un&&Un.Object===Object&&Un,Ak=typeof self=="object"&&self&&self.Object===Object&&self,cr=Lb||Ak||Function("return this")(),a0=t&&!t.nodeType&&t,Bi=a0&&!0&&e&&!e.nodeType&&e,jb=Bi&&Bi.exports===a0,i0=jb&&Lb.process,fn=function(){try{var Q=Bi&&Bi.require&&Bi.require("util").types;return Q||i0&&i0.binding&&i0.binding("util")}catch{}}(),$b=fn&&fn.isArrayBuffer,zb=fn&&fn.isDate,Bb=fn&&fn.isMap,Hb=fn&&fn.isRegExp,Ub=fn&&fn.isSet,qb=fn&&fn.isTypedArray;function Vr(Q,ue,ae){switch(ae.length){case 0:return Q.call(ue);case 1:return Q.call(ue,ae[0]);case 2:return Q.call(ue,ae[0],ae[1]);case 3:return Q.call(ue,ae[0],ae[1],ae[2])}return Q.apply(ue,ae)}function Rk(Q,ue,ae,Se){for(var Ve=-1,gt=Q==null?0:Q.length;++Ve<gt;){var Qt=Q[Ve];ue(Se,Qt,ae(Qt),Q)}return Se}function hn(Q,ue){for(var ae=-1,Se=Q==null?0:Q.length;++ae<Se&&ue(Q[ae],ae,Q)!==!1;);return Q}function Pk(Q,ue){for(var ae=Q==null?0:Q.length;ae--&&ue(Q[ae],ae,Q)!==!1;);return Q}function Wb(Q,ue){for(var ae=-1,Se=Q==null?0:Q.length;++ae<Se;)if(!ue(Q[ae],ae,Q))return!1;return!0}function li(Q,ue){for(var ae=-1,Se=Q==null?0:Q.length,Ve=0,gt=[];++ae<Se;){var Qt=Q[ae];ue(Qt,ae,Q)&&(gt[Ve++]=Qt)}return gt}function Nc(Q,ue){var ae=Q==null?0:Q.length;return!!ae&&No(Q,ue,0)>-1}function o0(Q,ue,ae){for(var Se=-1,Ve=Q==null?0:Q.length;++Se<Ve;)if(ae(ue,Q[Se]))return!0;return!1}function Lt(Q,ue){for(var ae=-1,Se=Q==null?0:Q.length,Ve=Array(Se);++ae<Se;)Ve[ae]=ue(Q[ae],ae,Q);return Ve}function ci(Q,ue){for(var ae=-1,Se=ue.length,Ve=Q.length;++ae<Se;)Q[Ve+ae]=ue[ae];return Q}function s0(Q,ue,ae,Se){var Ve=-1,gt=Q==null?0:Q.length;for(Se&&gt&&(ae=Q[++Ve]);++Ve<gt;)ae=ue(ae,Q[Ve],Ve,Q);return ae}function Dk(Q,ue,ae,Se){var Ve=Q==null?0:Q.length;for(Se&&Ve&&(ae=Q[--Ve]);Ve--;)ae=ue(ae,Q[Ve],Ve,Q);return ae}function u0(Q,ue){for(var ae=-1,Se=Q==null?0:Q.length;++ae<Se;)if(ue(Q[ae],ae,Q))return!0;return!1}var Mk=l0("length");function Fk(Q){return Q.split("")}function Nk(Q){return Q.match(ge)||[]}function Vb(Q,ue,ae){var Se;return ae(Q,function(Ve,gt,Qt){if(ue(Ve,gt,Qt))return Se=gt,!1}),Se}function Ic(Q,ue,ae,Se){for(var Ve=Q.length,gt=ae+(Se?1:-1);Se?gt--:++gt<Ve;)if(ue(Q[gt],gt,Q))return gt;return-1}function No(Q,ue,ae){return ue===ue?Yk(Q,ue,ae):Ic(Q,Yb,ae)}function Ik(Q,ue,ae,Se){for(var Ve=ae-1,gt=Q.length;++Ve<gt;)if(Se(Q[Ve],ue))return Ve;return-1}function Yb(Q){return Q!==Q}function Gb(Q,ue){var ae=Q==null?0:Q.length;return ae?d0(Q,ue)/ae:H}function l0(Q){return function(ue){return ue==null?r:ue[Q]}}function c0(Q){return function(ue){return Q==null?r:Q[ue]}}function Kb(Q,ue,ae,Se,Ve){return Ve(Q,function(gt,Qt,Rt){ae=Se?(Se=!1,gt):ue(ae,gt,Qt,Rt)}),ae}function Lk(Q,ue){var ae=Q.length;for(Q.sort(ue);ae--;)Q[ae]=Q[ae].value;return Q}function d0(Q,ue){for(var ae,Se=-1,Ve=Q.length;++Se<Ve;){var gt=ue(Q[Se]);gt!==r&&(ae=ae===r?gt:ae+gt)}return ae}function f0(Q,ue){for(var ae=-1,Se=Array(Q);++ae<Q;)Se[ae]=ue(ae);return Se}function jk(Q,ue){return Lt(ue,function(ae){return[ae,Q[ae]]})}function Xb(Q){return Q&&Q.slice(0,ey(Q)+1).replace(uu,"")}function Yr(Q){return function(ue){return Q(ue)}}function h0(Q,ue){return Lt(ue,function(ae){return Q[ae]})}function cu(Q,ue){return Q.has(ue)}function Zb(Q,ue){for(var ae=-1,Se=Q.length;++ae<Se&&No(ue,Q[ae],0)>-1;);return ae}function Jb(Q,ue){for(var ae=Q.length;ae--&&No(ue,Q[ae],0)>-1;);return ae}function $k(Q,ue){for(var ae=Q.length,Se=0;ae--;)Q[ae]===ue&&++Se;return Se}var zk=c0(Sk),Bk=c0(Ck);function Hk(Q){return"\\"+kk[Q]}function Uk(Q,ue){return Q==null?r:Q[ue]}function Io(Q){return yk.test(Q)}function qk(Q){return _k.test(Q)}function Wk(Q){for(var ue,ae=[];!(ue=Q.next()).done;)ae.push(ue.value);return ae}function p0(Q){var ue=-1,ae=Array(Q.size);return Q.forEach(function(Se,Ve){ae[++ue]=[Ve,Se]}),ae}function Qb(Q,ue){return function(ae){return Q(ue(ae))}}function di(Q,ue){for(var ae=-1,Se=Q.length,Ve=0,gt=[];++ae<Se;){var Qt=Q[ae];(Qt===ue||Qt===m)&&(Q[ae]=m,gt[Ve++]=ae)}return gt}function Lc(Q){var ue=-1,ae=Array(Q.size);return Q.forEach(function(Se){ae[++ue]=Se}),ae}function Vk(Q){var ue=-1,ae=Array(Q.size);return Q.forEach(function(Se){ae[++ue]=[Se,Se]}),ae}function Yk(Q,ue,ae){for(var Se=ae-1,Ve=Q.length;++Se<Ve;)if(Q[Se]===ue)return Se;return-1}function Gk(Q,ue,ae){for(var Se=ae+1;Se--;)if(Q[Se]===ue)return Se;return Se}function Lo(Q){return Io(Q)?Xk(Q):Mk(Q)}function Rn(Q){return Io(Q)?Zk(Q):Fk(Q)}function ey(Q){for(var ue=Q.length;ue--&&Gh.test(Q.charAt(ue)););return ue}var Kk=c0(Ek);function Xk(Q){for(var ue=n0.lastIndex=0;n0.test(Q);)++ue;return ue}function Zk(Q){return Q.match(n0)||[]}function Jk(Q){return Q.match(bk)||[]}var Qk=function Q(ue){ue=ue==null?cr:jo.defaults(cr.Object(),ue,jo.pick(cr,wk));var ae=ue.Array,Se=ue.Date,Ve=ue.Error,gt=ue.Function,Qt=ue.Math,Rt=ue.Object,m0=ue.RegExp,eT=ue.String,pn=ue.TypeError,jc=ae.prototype,tT=gt.prototype,$o=Rt.prototype,$c=ue["__core-js_shared__"],zc=tT.toString,kt=$o.hasOwnProperty,rT=0,ty=function(){var s=/[^.]+$/.exec($c&&$c.keys&&$c.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),Bc=$o.toString,nT=zc.call(Rt),aT=cr._,iT=m0("^"+zc.call(kt).replace(Mo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Hc=jb?ue.Buffer:r,fi=ue.Symbol,Uc=ue.Uint8Array,ry=Hc?Hc.allocUnsafe:r,qc=Qb(Rt.getPrototypeOf,Rt),ny=Rt.create,ay=$o.propertyIsEnumerable,Wc=jc.splice,iy=fi?fi.isConcatSpreadable:r,du=fi?fi.iterator:r,Hi=fi?fi.toStringTag:r,Vc=function(){try{var s=Yi(Rt,"defineProperty");return s({},"",{}),s}catch{}}(),oT=ue.clearTimeout!==cr.clearTimeout&&ue.clearTimeout,sT=Se&&Se.now!==cr.Date.now&&Se.now,uT=ue.setTimeout!==cr.setTimeout&&ue.setTimeout,Yc=Qt.ceil,Gc=Qt.floor,g0=Rt.getOwnPropertySymbols,lT=Hc?Hc.isBuffer:r,oy=ue.isFinite,cT=jc.join,dT=Qb(Rt.keys,Rt),er=Qt.max,br=Qt.min,fT=Se.now,hT=ue.parseInt,sy=Qt.random,pT=jc.reverse,v0=Yi(ue,"DataView"),fu=Yi(ue,"Map"),b0=Yi(ue,"Promise"),zo=Yi(ue,"Set"),hu=Yi(ue,"WeakMap"),pu=Yi(Rt,"create"),Kc=hu&&new hu,Bo={},mT=Gi(v0),gT=Gi(fu),vT=Gi(b0),bT=Gi(zo),yT=Gi(hu),Xc=fi?fi.prototype:r,mu=Xc?Xc.valueOf:r,uy=Xc?Xc.toString:r;function W(s){if(Ut(s)&&!Ye(s)&&!(s instanceof ot)){if(s instanceof mn)return s;if(kt.call(s,"__wrapped__"))return l_(s)}return new mn(s)}var Ho=function(){function s(){}return function(d){if(!zt(d))return{};if(ny)return ny(d);s.prototype=d;var b=new s;return s.prototype=r,b}}();function Zc(){}function mn(s,d){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!d,this.__index__=0,this.__values__=r}W.templateSettings={escape:Pc,evaluate:Wh,interpolate:su,variable:"",imports:{_:W}},W.prototype=Zc.prototype,W.prototype.constructor=W,mn.prototype=Ho(Zc.prototype),mn.prototype.constructor=mn;function ot(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=U,this.__views__=[]}function _T(){var s=new ot(this.__wrapped__);return s.__actions__=Mr(this.__actions__),s.__dir__=this.__dir__,s.__filtered__=this.__filtered__,s.__iteratees__=Mr(this.__iteratees__),s.__takeCount__=this.__takeCount__,s.__views__=Mr(this.__views__),s}function wT(){if(this.__filtered__){var s=new ot(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function xT(){var s=this.__wrapped__.value(),d=this.__dir__,b=Ye(s),A=d<0,$=b?s.length:0,V=F7(0,$,this.__views__),G=V.start,X=V.end,te=X-G,de=A?X:G-1,fe=this.__iteratees__,me=fe.length,_e=0,Re=br(te,this.__takeCount__);if(!b||!A&&$==te&&Re==te)return Dy(s,this.__actions__);var $e=[];e:for(;te--&&_e<Re;){de+=d;for(var Ze=-1,ze=s[de];++Ze<me;){var tt=fe[Ze],lt=tt.iteratee,Xr=tt.type,Er=lt(ze);if(Xr==j)ze=Er;else if(!Er){if(Xr==N)continue e;break e}}$e[_e++]=ze}return $e}ot.prototype=Ho(Zc.prototype),ot.prototype.constructor=ot;function Ui(s){var d=-1,b=s==null?0:s.length;for(this.clear();++d<b;){var A=s[d];this.set(A[0],A[1])}}function ST(){this.__data__=pu?pu(null):{},this.size=0}function CT(s){var d=this.has(s)&&delete this.__data__[s];return this.size-=d?1:0,d}function ET(s){var d=this.__data__;if(pu){var b=d[s];return b===u?r:b}return kt.call(d,s)?d[s]:r}function kT(s){var d=this.__data__;return pu?d[s]!==r:kt.call(d,s)}function TT(s,d){var b=this.__data__;return this.size+=this.has(s)?0:1,b[s]=pu&&d===r?u:d,this}Ui.prototype.clear=ST,Ui.prototype.delete=CT,Ui.prototype.get=ET,Ui.prototype.has=kT,Ui.prototype.set=TT;function Ca(s){var d=-1,b=s==null?0:s.length;for(this.clear();++d<b;){var A=s[d];this.set(A[0],A[1])}}function OT(){this.__data__=[],this.size=0}function AT(s){var d=this.__data__,b=Jc(d,s);if(b<0)return!1;var A=d.length-1;return b==A?d.pop():Wc.call(d,b,1),--this.size,!0}function RT(s){var d=this.__data__,b=Jc(d,s);return b<0?r:d[b][1]}function PT(s){return Jc(this.__data__,s)>-1}function DT(s,d){var b=this.__data__,A=Jc(b,s);return A<0?(++this.size,b.push([s,d])):b[A][1]=d,this}Ca.prototype.clear=OT,Ca.prototype.delete=AT,Ca.prototype.get=RT,Ca.prototype.has=PT,Ca.prototype.set=DT;function Ea(s){var d=-1,b=s==null?0:s.length;for(this.clear();++d<b;){var A=s[d];this.set(A[0],A[1])}}function MT(){this.size=0,this.__data__={hash:new Ui,map:new(fu||Ca),string:new Ui}}function FT(s){var d=cd(this,s).delete(s);return this.size-=d?1:0,d}function NT(s){return cd(this,s).get(s)}function IT(s){return cd(this,s).has(s)}function LT(s,d){var b=cd(this,s),A=b.size;return b.set(s,d),this.size+=b.size==A?0:1,this}Ea.prototype.clear=MT,Ea.prototype.delete=FT,Ea.prototype.get=NT,Ea.prototype.has=IT,Ea.prototype.set=LT;function qi(s){var d=-1,b=s==null?0:s.length;for(this.__data__=new Ea;++d<b;)this.add(s[d])}function jT(s){return this.__data__.set(s,u),this}function $T(s){return this.__data__.has(s)}qi.prototype.add=qi.prototype.push=jT,qi.prototype.has=$T;function Pn(s){var d=this.__data__=new Ca(s);this.size=d.size}function zT(){this.__data__=new Ca,this.size=0}function BT(s){var d=this.__data__,b=d.delete(s);return this.size=d.size,b}function HT(s){return this.__data__.get(s)}function UT(s){return this.__data__.has(s)}function qT(s,d){var b=this.__data__;if(b instanceof Ca){var A=b.__data__;if(!fu||A.length<a-1)return A.push([s,d]),this.size=++b.size,this;b=this.__data__=new Ea(A)}return b.set(s,d),this.size=b.size,this}Pn.prototype.clear=zT,Pn.prototype.delete=BT,Pn.prototype.get=HT,Pn.prototype.has=UT,Pn.prototype.set=qT;function ly(s,d){var b=Ye(s),A=!b&&Ki(s),$=!b&&!A&&vi(s),V=!b&&!A&&!$&&Vo(s),G=b||A||$||V,X=G?f0(s.length,eT):[],te=X.length;for(var de in s)(d||kt.call(s,de))&&!(G&&(de=="length"||$&&(de=="offset"||de=="parent")||V&&(de=="buffer"||de=="byteLength"||de=="byteOffset")||Aa(de,te)))&&X.push(de);return X}function cy(s){var d=s.length;return d?s[A0(0,d-1)]:r}function WT(s,d){return dd(Mr(s),Wi(d,0,s.length))}function VT(s){return dd(Mr(s))}function y0(s,d,b){(b!==r&&!Dn(s[d],b)||b===r&&!(d in s))&&ka(s,d,b)}function gu(s,d,b){var A=s[d];(!(kt.call(s,d)&&Dn(A,b))||b===r&&!(d in s))&&ka(s,d,b)}function Jc(s,d){for(var b=s.length;b--;)if(Dn(s[b][0],d))return b;return-1}function YT(s,d,b,A){return hi(s,function($,V,G){d(A,$,b($),G)}),A}function dy(s,d){return s&&ra(d,ar(d),s)}function GT(s,d){return s&&ra(d,Nr(d),s)}function ka(s,d,b){d=="__proto__"&&Vc?Vc(s,d,{configurable:!0,enumerable:!0,value:b,writable:!0}):s[d]=b}function _0(s,d){for(var b=-1,A=d.length,$=ae(A),V=s==null;++b<A;)$[b]=V?r:ep(s,d[b]);return $}function Wi(s,d,b){return s===s&&(b!==r&&(s=s<=b?s:b),d!==r&&(s=s>=d?s:d)),s}function gn(s,d,b,A,$,V){var G,X=d&p,te=d&g,de=d&y;if(b&&(G=$?b(s,A,$,V):b(s)),G!==r)return G;if(!zt(s))return s;var fe=Ye(s);if(fe){if(G=I7(s),!X)return Mr(s,G)}else{var me=yr(s),_e=me==he||me==qe;if(vi(s))return Ny(s,X);if(me==Ct||me==se||_e&&!$){if(G=te||_e?{}:e_(s),!X)return te?E7(s,GT(G,s)):C7(s,dy(G,s))}else{if(!Pt[me])return $?s:{};G=L7(s,me,X)}}V||(V=new Pn);var Re=V.get(s);if(Re)return Re;V.set(s,G),A_(s)?s.forEach(function(ze){G.add(gn(ze,d,b,ze,s,V))}):T_(s)&&s.forEach(function(ze,tt){G.set(tt,gn(ze,d,b,tt,s,V))});var $e=de?te?z0:$0:te?Nr:ar,Ze=fe?r:$e(s);return hn(Ze||s,function(ze,tt){Ze&&(tt=ze,ze=s[tt]),gu(G,tt,gn(ze,d,b,tt,s,V))}),G}function KT(s){var d=ar(s);return function(b){return fy(b,s,d)}}function fy(s,d,b){var A=b.length;if(s==null)return!A;for(s=Rt(s);A--;){var $=b[A],V=d[$],G=s[$];if(G===r&&!($ in s)||!V(G))return!1}return!0}function hy(s,d,b){if(typeof s!="function")throw new pn(o);return Su(function(){s.apply(r,b)},d)}function vu(s,d,b,A){var $=-1,V=Nc,G=!0,X=s.length,te=[],de=d.length;if(!X)return te;b&&(d=Lt(d,Yr(b))),A?(V=o0,G=!1):d.length>=a&&(V=cu,G=!1,d=new qi(d));e:for(;++$<X;){var fe=s[$],me=b==null?fe:b(fe);if(fe=A||fe!==0?fe:0,G&&me===me){for(var _e=de;_e--;)if(d[_e]===me)continue e;te.push(fe)}else V(d,me,A)||te.push(fe)}return te}var hi=zy(ta),py=zy(x0,!0);function XT(s,d){var b=!0;return hi(s,function(A,$,V){return b=!!d(A,$,V),b}),b}function Qc(s,d,b){for(var A=-1,$=s.length;++A<$;){var V=s[A],G=d(V);if(G!=null&&(X===r?G===G&&!Kr(G):b(G,X)))var X=G,te=V}return te}function ZT(s,d,b,A){var $=s.length;for(b=Ke(b),b<0&&(b=-b>$?0:$+b),A=A===r||A>$?$:Ke(A),A<0&&(A+=$),A=b>A?0:P_(A);b<A;)s[b++]=d;return s}function my(s,d){var b=[];return hi(s,function(A,$,V){d(A,$,V)&&b.push(A)}),b}function dr(s,d,b,A,$){var V=-1,G=s.length;for(b||(b=$7),$||($=[]);++V<G;){var X=s[V];d>0&&b(X)?d>1?dr(X,d-1,b,A,$):ci($,X):A||($[$.length]=X)}return $}var w0=By(),gy=By(!0);function ta(s,d){return s&&w0(s,d,ar)}function x0(s,d){return s&&gy(s,d,ar)}function ed(s,d){return li(d,function(b){return Ra(s[b])})}function Vi(s,d){d=mi(d,s);for(var b=0,A=d.length;s!=null&&b<A;)s=s[na(d[b++])];return b&&b==A?s:r}function vy(s,d,b){var A=d(s);return Ye(s)?A:ci(A,b(s))}function Sr(s){return s==null?s===r?Pr:Je:Hi&&Hi in Rt(s)?M7(s):V7(s)}function S0(s,d){return s>d}function JT(s,d){return s!=null&&kt.call(s,d)}function QT(s,d){return s!=null&&d in Rt(s)}function e7(s,d,b){return s>=br(d,b)&&s<er(d,b)}function C0(s,d,b){for(var A=b?o0:Nc,$=s[0].length,V=s.length,G=V,X=ae(V),te=1/0,de=[];G--;){var fe=s[G];G&&d&&(fe=Lt(fe,Yr(d))),te=br(fe.length,te),X[G]=!b&&(d||$>=120&&fe.length>=120)?new qi(G&&fe):r}fe=s[0];var me=-1,_e=X[0];e:for(;++me<$&&de.length<te;){var Re=fe[me],$e=d?d(Re):Re;if(Re=b||Re!==0?Re:0,!(_e?cu(_e,$e):A(de,$e,b))){for(G=V;--G;){var Ze=X[G];if(!(Ze?cu(Ze,$e):A(s[G],$e,b)))continue e}_e&&_e.push($e),de.push(Re)}}return de}function t7(s,d,b,A){return ta(s,function($,V,G){d(A,b($),V,G)}),A}function bu(s,d,b){d=mi(d,s),s=a_(s,d);var A=s==null?s:s[na(bn(d))];return A==null?r:Vr(A,s,b)}function by(s){return Ut(s)&&Sr(s)==se}function r7(s){return Ut(s)&&Sr(s)==oi}function n7(s){return Ut(s)&&Sr(s)==we}function yu(s,d,b,A,$){return s===d?!0:s==null||d==null||!Ut(s)&&!Ut(d)?s!==s&&d!==d:a7(s,d,b,A,yu,$)}function a7(s,d,b,A,$,V){var G=Ye(s),X=Ye(d),te=G?ce:yr(s),de=X?ce:yr(d);te=te==se?Ct:te,de=de==se?Ct:de;var fe=te==Ct,me=de==Ct,_e=te==de;if(_e&&vi(s)){if(!vi(d))return!1;G=!0,fe=!1}if(_e&&!fe)return V||(V=new Pn),G||Vo(s)?Zy(s,d,b,A,$,V):P7(s,d,te,b,A,$,V);if(!(b&x)){var Re=fe&&kt.call(s,"__wrapped__"),$e=me&&kt.call(d,"__wrapped__");if(Re||$e){var Ze=Re?s.value():s,ze=$e?d.value():d;return V||(V=new Pn),$(Ze,ze,b,A,V)}}return _e?(V||(V=new Pn),D7(s,d,b,A,$,V)):!1}function i7(s){return Ut(s)&&yr(s)==oe}function E0(s,d,b,A){var $=b.length,V=$,G=!A;if(s==null)return!V;for(s=Rt(s);$--;){var X=b[$];if(G&&X[2]?X[1]!==s[X[0]]:!(X[0]in s))return!1}for(;++$<V;){X=b[$];var te=X[0],de=s[te],fe=X[1];if(G&&X[2]){if(de===r&&!(te in s))return!1}else{var me=new Pn;if(A)var _e=A(de,fe,te,s,d,me);if(!(_e===r?yu(fe,de,x|E,A,me):_e))return!1}}return!0}function yy(s){if(!zt(s)||B7(s))return!1;var d=Ra(s)?iT:lr;return d.test(Gi(s))}function o7(s){return Ut(s)&&Sr(s)==We}function s7(s){return Ut(s)&&yr(s)==Ne}function u7(s){return Ut(s)&&vd(s.length)&&!!Ft[Sr(s)]}function _y(s){return typeof s=="function"?s:s==null?Ir:typeof s=="object"?Ye(s)?Sy(s[0],s[1]):xy(s):H_(s)}function k0(s){if(!xu(s))return dT(s);var d=[];for(var b in Rt(s))kt.call(s,b)&&b!="constructor"&&d.push(b);return d}function l7(s){if(!zt(s))return W7(s);var d=xu(s),b=[];for(var A in s)A=="constructor"&&(d||!kt.call(s,A))||b.push(A);return b}function T0(s,d){return s<d}function wy(s,d){var b=-1,A=Fr(s)?ae(s.length):[];return hi(s,function($,V,G){A[++b]=d($,V,G)}),A}function xy(s){var d=H0(s);return d.length==1&&d[0][2]?r_(d[0][0],d[0][1]):function(b){return b===s||E0(b,s,d)}}function Sy(s,d){return q0(s)&&t_(d)?r_(na(s),d):function(b){var A=ep(b,s);return A===r&&A===d?tp(b,s):yu(d,A,x|E)}}function td(s,d,b,A,$){s!==d&&w0(d,function(V,G){if($||($=new Pn),zt(V))c7(s,d,G,b,td,A,$);else{var X=A?A(V0(s,G),V,G+"",s,d,$):r;X===r&&(X=V),y0(s,G,X)}},Nr)}function c7(s,d,b,A,$,V,G){var X=V0(s,b),te=V0(d,b),de=G.get(te);if(de){y0(s,b,de);return}var fe=V?V(X,te,b+"",s,d,G):r,me=fe===r;if(me){var _e=Ye(te),Re=!_e&&vi(te),$e=!_e&&!Re&&Vo(te);fe=te,_e||Re||$e?Ye(X)?fe=X:Wt(X)?fe=Mr(X):Re?(me=!1,fe=Ny(te,!0)):$e?(me=!1,fe=Iy(te,!0)):fe=[]:Cu(te)||Ki(te)?(fe=X,Ki(X)?fe=D_(X):(!zt(X)||Ra(X))&&(fe=e_(te))):me=!1}me&&(G.set(te,fe),$(fe,te,A,V,G),G.delete(te)),y0(s,b,fe)}function Cy(s,d){var b=s.length;if(b)return d+=d<0?b:0,Aa(d,b)?s[d]:r}function Ey(s,d,b){d.length?d=Lt(d,function(V){return Ye(V)?function(G){return Vi(G,V.length===1?V[0]:V)}:V}):d=[Ir];var A=-1;d=Lt(d,Yr(je()));var $=wy(s,function(V,G,X){var te=Lt(d,function(de){return de(V)});return{criteria:te,index:++A,value:V}});return Lk($,function(V,G){return S7(V,G,b)})}function d7(s,d){return ky(s,d,function(b,A){return tp(s,A)})}function ky(s,d,b){for(var A=-1,$=d.length,V={};++A<$;){var G=d[A],X=Vi(s,G);b(X,G)&&_u(V,mi(G,s),X)}return V}function f7(s){return function(d){return Vi(d,s)}}function O0(s,d,b,A){var $=A?Ik:No,V=-1,G=d.length,X=s;for(s===d&&(d=Mr(d)),b&&(X=Lt(s,Yr(b)));++V<G;)for(var te=0,de=d[V],fe=b?b(de):de;(te=$(X,fe,te,A))>-1;)X!==s&&Wc.call(X,te,1),Wc.call(s,te,1);return s}function Ty(s,d){for(var b=s?d.length:0,A=b-1;b--;){var $=d[b];if(b==A||$!==V){var V=$;Aa($)?Wc.call(s,$,1):D0(s,$)}}return s}function A0(s,d){return s+Gc(sy()*(d-s+1))}function h7(s,d,b,A){for(var $=-1,V=er(Yc((d-s)/(b||1)),0),G=ae(V);V--;)G[A?V:++$]=s,s+=b;return G}function R0(s,d){var b="";if(!s||d<1||d>z)return b;do d%2&&(b+=s),d=Gc(d/2),d&&(s+=s);while(d);return b}function Qe(s,d){return Y0(n_(s,d,Ir),s+"")}function p7(s){return cy(Yo(s))}function m7(s,d){var b=Yo(s);return dd(b,Wi(d,0,b.length))}function _u(s,d,b,A){if(!zt(s))return s;d=mi(d,s);for(var $=-1,V=d.length,G=V-1,X=s;X!=null&&++$<V;){var te=na(d[$]),de=b;if(te==="__proto__"||te==="constructor"||te==="prototype")return s;if($!=G){var fe=X[te];de=A?A(fe,te,X):r,de===r&&(de=zt(fe)?fe:Aa(d[$+1])?[]:{})}gu(X,te,de),X=X[te]}return s}var Oy=Kc?function(s,d){return Kc.set(s,d),s}:Ir,g7=Vc?function(s,d){return Vc(s,"toString",{configurable:!0,enumerable:!1,value:np(d),writable:!0})}:Ir;function v7(s){return dd(Yo(s))}function vn(s,d,b){var A=-1,$=s.length;d<0&&(d=-d>$?0:$+d),b=b>$?$:b,b<0&&(b+=$),$=d>b?0:b-d>>>0,d>>>=0;for(var V=ae($);++A<$;)V[A]=s[A+d];return V}function b7(s,d){var b;return hi(s,function(A,$,V){return b=d(A,$,V),!b}),!!b}function rd(s,d,b){var A=0,$=s==null?A:s.length;if(typeof d=="number"&&d===d&&$<=re){for(;A<$;){var V=A+$>>>1,G=s[V];G!==null&&!Kr(G)&&(b?G<=d:G<d)?A=V+1:$=V}return $}return P0(s,d,Ir,b)}function P0(s,d,b,A){var $=0,V=s==null?0:s.length;if(V===0)return 0;d=b(d);for(var G=d!==d,X=d===null,te=Kr(d),de=d===r;$<V;){var fe=Gc(($+V)/2),me=b(s[fe]),_e=me!==r,Re=me===null,$e=me===me,Ze=Kr(me);if(G)var ze=A||$e;else de?ze=$e&&(A||_e):X?ze=$e&&_e&&(A||!Re):te?ze=$e&&_e&&!Re&&(A||!Ze):Re||Ze?ze=!1:ze=A?me<=d:me<d;ze?$=fe+1:V=fe}return br(V,J)}function Ay(s,d){for(var b=-1,A=s.length,$=0,V=[];++b<A;){var G=s[b],X=d?d(G):G;if(!b||!Dn(X,te)){var te=X;V[$++]=G===0?0:G}}return V}function Ry(s){return typeof s=="number"?s:Kr(s)?H:+s}function Gr(s){if(typeof s=="string")return s;if(Ye(s))return Lt(s,Gr)+"";if(Kr(s))return uy?uy.call(s):"";var d=s+"";return d=="0"&&1/s==-1/0?"-0":d}function pi(s,d,b){var A=-1,$=Nc,V=s.length,G=!0,X=[],te=X;if(b)G=!1,$=o0;else if(V>=a){var de=d?null:A7(s);if(de)return Lc(de);G=!1,$=cu,te=new qi}else te=d?[]:X;e:for(;++A<V;){var fe=s[A],me=d?d(fe):fe;if(fe=b||fe!==0?fe:0,G&&me===me){for(var _e=te.length;_e--;)if(te[_e]===me)continue e;d&&te.push(me),X.push(fe)}else $(te,me,b)||(te!==X&&te.push(me),X.push(fe))}return X}function D0(s,d){return d=mi(d,s),s=a_(s,d),s==null||delete s[na(bn(d))]}function Py(s,d,b,A){return _u(s,d,b(Vi(s,d)),A)}function nd(s,d,b,A){for(var $=s.length,V=A?$:-1;(A?V--:++V<$)&&d(s[V],V,s););return b?vn(s,A?0:V,A?V+1:$):vn(s,A?V+1:0,A?$:V)}function Dy(s,d){var b=s;return b instanceof ot&&(b=b.value()),s0(d,function(A,$){return $.func.apply($.thisArg,ci([A],$.args))},b)}function M0(s,d,b){var A=s.length;if(A<2)return A?pi(s[0]):[];for(var $=-1,V=ae(A);++$<A;)for(var G=s[$],X=-1;++X<A;)X!=$&&(V[$]=vu(V[$]||G,s[X],d,b));return pi(dr(V,1),d,b)}function My(s,d,b){for(var A=-1,$=s.length,V=d.length,G={};++A<$;){var X=A<V?d[A]:r;b(G,s[A],X)}return G}function F0(s){return Wt(s)?s:[]}function N0(s){return typeof s=="function"?s:Ir}function mi(s,d){return Ye(s)?s:q0(s,d)?[s]:u_(yt(s))}var y7=Qe;function gi(s,d,b){var A=s.length;return b=b===r?A:b,!d&&b>=A?s:vn(s,d,b)}var Fy=oT||function(s){return cr.clearTimeout(s)};function Ny(s,d){if(d)return s.slice();var b=s.length,A=ry?ry(b):new s.constructor(b);return s.copy(A),A}function I0(s){var d=new s.constructor(s.byteLength);return new Uc(d).set(new Uc(s)),d}function _7(s,d){var b=d?I0(s.buffer):s.buffer;return new s.constructor(b,s.byteOffset,s.byteLength)}function w7(s){var d=new s.constructor(s.source,bt.exec(s));return d.lastIndex=s.lastIndex,d}function x7(s){return mu?Rt(mu.call(s)):{}}function Iy(s,d){var b=d?I0(s.buffer):s.buffer;return new s.constructor(b,s.byteOffset,s.length)}function Ly(s,d){if(s!==d){var b=s!==r,A=s===null,$=s===s,V=Kr(s),G=d!==r,X=d===null,te=d===d,de=Kr(d);if(!X&&!de&&!V&&s>d||V&&G&&te&&!X&&!de||A&&G&&te||!b&&te||!$)return 1;if(!A&&!V&&!de&&s<d||de&&b&&$&&!A&&!V||X&&b&&$||!G&&$||!te)return-1}return 0}function S7(s,d,b){for(var A=-1,$=s.criteria,V=d.criteria,G=$.length,X=b.length;++A<G;){var te=Ly($[A],V[A]);if(te){if(A>=X)return te;var de=b[A];return te*(de=="desc"?-1:1)}}return s.index-d.index}function jy(s,d,b,A){for(var $=-1,V=s.length,G=b.length,X=-1,te=d.length,de=er(V-G,0),fe=ae(te+de),me=!A;++X<te;)fe[X]=d[X];for(;++$<G;)(me||$<V)&&(fe[b[$]]=s[$]);for(;de--;)fe[X++]=s[$++];return fe}function $y(s,d,b,A){for(var $=-1,V=s.length,G=-1,X=b.length,te=-1,de=d.length,fe=er(V-X,0),me=ae(fe+de),_e=!A;++$<fe;)me[$]=s[$];for(var Re=$;++te<de;)me[Re+te]=d[te];for(;++G<X;)(_e||$<V)&&(me[Re+b[G]]=s[$++]);return me}function Mr(s,d){var b=-1,A=s.length;for(d||(d=ae(A));++b<A;)d[b]=s[b];return d}function ra(s,d,b,A){var $=!b;b||(b={});for(var V=-1,G=d.length;++V<G;){var X=d[V],te=A?A(b[X],s[X],X,b,s):r;te===r&&(te=s[X]),$?ka(b,X,te):gu(b,X,te)}return b}function C7(s,d){return ra(s,U0(s),d)}function E7(s,d){return ra(s,Jy(s),d)}function ad(s,d){return function(b,A){var $=Ye(b)?Rk:YT,V=d?d():{};return $(b,s,je(A,2),V)}}function Uo(s){return Qe(function(d,b){var A=-1,$=b.length,V=$>1?b[$-1]:r,G=$>2?b[2]:r;for(V=s.length>3&&typeof V=="function"?($--,V):r,G&&Cr(b[0],b[1],G)&&(V=$<3?r:V,$=1),d=Rt(d);++A<$;){var X=b[A];X&&s(d,X,A,V)}return d})}function zy(s,d){return function(b,A){if(b==null)return b;if(!Fr(b))return s(b,A);for(var $=b.length,V=d?$:-1,G=Rt(b);(d?V--:++V<$)&&A(G[V],V,G)!==!1;);return b}}function By(s){return function(d,b,A){for(var $=-1,V=Rt(d),G=A(d),X=G.length;X--;){var te=G[s?X:++$];if(b(V[te],te,V)===!1)break}return d}}function k7(s,d,b){var A=d&k,$=wu(s);function V(){var G=this&&this!==cr&&this instanceof V?$:s;return G.apply(A?b:this,arguments)}return V}function Hy(s){return function(d){d=yt(d);var b=Io(d)?Rn(d):r,A=b?b[0]:d.charAt(0),$=b?gi(b,1).join(""):d.slice(1);return A[s]()+$}}function qo(s){return function(d){return s0(z_($_(d).replace(gk,"")),s,"")}}function wu(s){return function(){var d=arguments;switch(d.length){case 0:return new s;case 1:return new s(d[0]);case 2:return new s(d[0],d[1]);case 3:return new s(d[0],d[1],d[2]);case 4:return new s(d[0],d[1],d[2],d[3]);case 5:return new s(d[0],d[1],d[2],d[3],d[4]);case 6:return new s(d[0],d[1],d[2],d[3],d[4],d[5]);case 7:return new s(d[0],d[1],d[2],d[3],d[4],d[5],d[6])}var b=Ho(s.prototype),A=s.apply(b,d);return zt(A)?A:b}}function T7(s,d,b){var A=wu(s);function $(){for(var V=arguments.length,G=ae(V),X=V,te=Wo($);X--;)G[X]=arguments[X];var de=V<3&&G[0]!==te&&G[V-1]!==te?[]:di(G,te);if(V-=de.length,V<b)return Yy(s,d,id,$.placeholder,r,G,de,r,r,b-V);var fe=this&&this!==cr&&this instanceof $?A:s;return Vr(fe,this,G)}return $}function Uy(s){return function(d,b,A){var $=Rt(d);if(!Fr(d)){var V=je(b,3);d=ar(d),b=function(X){return V($[X],X,$)}}var G=s(d,b,A);return G>-1?$[V?d[G]:G]:r}}function qy(s){return Oa(function(d){var b=d.length,A=b,$=mn.prototype.thru;for(s&&d.reverse();A--;){var V=d[A];if(typeof V!="function")throw new pn(o);if($&&!G&&ld(V)=="wrapper")var G=new mn([],!0)}for(A=G?A:b;++A<b;){V=d[A];var X=ld(V),te=X=="wrapper"?B0(V):r;te&&W0(te[0])&&te[1]==(_|S|h|R)&&!te[4].length&&te[9]==1?G=G[ld(te[0])].apply(G,te[3]):G=V.length==1&&W0(V)?G[X]():G.thru(V)}return function(){var de=arguments,fe=de[0];if(G&&de.length==1&&Ye(fe))return G.plant(fe).value();for(var me=0,_e=b?d[me].apply(this,de):fe;++me<b;)_e=d[me].call(this,_e);return _e}})}function id(s,d,b,A,$,V,G,X,te,de){var fe=d&_,me=d&k,_e=d&T,Re=d&(S|f),$e=d&C,Ze=_e?r:wu(s);function ze(){for(var tt=arguments.length,lt=ae(tt),Xr=tt;Xr--;)lt[Xr]=arguments[Xr];if(Re)var Er=Wo(ze),Zr=$k(lt,Er);if(A&&(lt=jy(lt,A,$,Re)),V&&(lt=$y(lt,V,G,Re)),tt-=Zr,Re&&tt<de){var Vt=di(lt,Er);return Yy(s,d,id,ze.placeholder,b,lt,Vt,X,te,de-tt)}var Mn=me?b:this,Da=_e?Mn[s]:s;return tt=lt.length,X?lt=Y7(lt,X):$e&&tt>1&&lt.reverse(),fe&&te<tt&&(lt.length=te),this&&this!==cr&&this instanceof ze&&(Da=Ze||wu(Da)),Da.apply(Mn,lt)}return ze}function Wy(s,d){return function(b,A){return t7(b,s,d(A),{})}}function od(s,d){return function(b,A){var $;if(b===r&&A===r)return d;if(b!==r&&($=b),A!==r){if($===r)return A;typeof b=="string"||typeof A=="string"?(b=Gr(b),A=Gr(A)):(b=Ry(b),A=Ry(A)),$=s(b,A)}return $}}function L0(s){return Oa(function(d){return d=Lt(d,Yr(je())),Qe(function(b){var A=this;return s(d,function($){return Vr($,A,b)})})})}function sd(s,d){d=d===r?" ":Gr(d);var b=d.length;if(b<2)return b?R0(d,s):d;var A=R0(d,Yc(s/Lo(d)));return Io(d)?gi(Rn(A),0,s).join(""):A.slice(0,s)}function O7(s,d,b,A){var $=d&k,V=wu(s);function G(){for(var X=-1,te=arguments.length,de=-1,fe=A.length,me=ae(fe+te),_e=this&&this!==cr&&this instanceof G?V:s;++de<fe;)me[de]=A[de];for(;te--;)me[de++]=arguments[++X];return Vr(_e,$?b:this,me)}return G}function Vy(s){return function(d,b,A){return A&&typeof A!="number"&&Cr(d,b,A)&&(b=A=r),d=Pa(d),b===r?(b=d,d=0):b=Pa(b),A=A===r?d<b?1:-1:Pa(A),h7(d,b,A,s)}}function ud(s){return function(d,b){return typeof d=="string"&&typeof b=="string"||(d=yn(d),b=yn(b)),s(d,b)}}function Yy(s,d,b,A,$,V,G,X,te,de){var fe=d&S,me=fe?G:r,_e=fe?r:G,Re=fe?V:r,$e=fe?r:V;d|=fe?h:v,d&=~(fe?v:h),d&w||(d&=-4);var Ze=[s,d,$,Re,me,$e,_e,X,te,de],ze=b.apply(r,Ze);return W0(s)&&i_(ze,Ze),ze.placeholder=A,o_(ze,s,d)}function j0(s){var d=Qt[s];return function(b,A){if(b=yn(b),A=A==null?0:br(Ke(A),292),A&&oy(b)){var $=(yt(b)+"e").split("e"),V=d($[0]+"e"+(+$[1]+A));return $=(yt(V)+"e").split("e"),+($[0]+"e"+(+$[1]-A))}return d(b)}}var A7=zo&&1/Lc(new zo([,-0]))[1]==I?function(s){return new zo(s)}:op;function Gy(s){return function(d){var b=yr(d);return b==oe?p0(d):b==Ne?Vk(d):jk(d,s(d))}}function Ta(s,d,b,A,$,V,G,X){var te=d&T;if(!te&&typeof s!="function")throw new pn(o);var de=A?A.length:0;if(de||(d&=-97,A=$=r),G=G===r?G:er(Ke(G),0),X=X===r?X:Ke(X),de-=$?$.length:0,d&v){var fe=A,me=$;A=$=r}var _e=te?r:B0(s),Re=[s,d,b,A,$,fe,me,V,G,X];if(_e&&q7(Re,_e),s=Re[0],d=Re[1],b=Re[2],A=Re[3],$=Re[4],X=Re[9]=Re[9]===r?te?0:s.length:er(Re[9]-de,0),!X&&d&(S|f)&&(d&=-25),!d||d==k)var $e=k7(s,d,b);else d==S||d==f?$e=T7(s,d,X):(d==h||d==(k|h))&&!$.length?$e=O7(s,d,b,A):$e=id.apply(r,Re);var Ze=_e?Oy:i_;return o_(Ze($e,Re),s,d)}function Ky(s,d,b,A){return s===r||Dn(s,$o[b])&&!kt.call(A,b)?d:s}function Xy(s,d,b,A,$,V){return zt(s)&&zt(d)&&(V.set(d,s),td(s,d,r,Xy,V),V.delete(d)),s}function R7(s){return Cu(s)?r:s}function Zy(s,d,b,A,$,V){var G=b&x,X=s.length,te=d.length;if(X!=te&&!(G&&te>X))return!1;var de=V.get(s),fe=V.get(d);if(de&&fe)return de==d&&fe==s;var me=-1,_e=!0,Re=b&E?new qi:r;for(V.set(s,d),V.set(d,s);++me<X;){var $e=s[me],Ze=d[me];if(A)var ze=G?A(Ze,$e,me,d,s,V):A($e,Ze,me,s,d,V);if(ze!==r){if(ze)continue;_e=!1;break}if(Re){if(!u0(d,function(tt,lt){if(!cu(Re,lt)&&($e===tt||$($e,tt,b,A,V)))return Re.push(lt)})){_e=!1;break}}else if(!($e===Ze||$($e,Ze,b,A,V))){_e=!1;break}}return V.delete(s),V.delete(d),_e}function P7(s,d,b,A,$,V,G){switch(b){case si:if(s.byteLength!=d.byteLength||s.byteOffset!=d.byteOffset)return!1;s=s.buffer,d=d.buffer;case oi:return!(s.byteLength!=d.byteLength||!V(new Uc(s),new Uc(d)));case ye:case we:case De:return Dn(+s,+d);case Le:return s.name==d.name&&s.message==d.message;case We:case Oe:return s==d+"";case oe:var X=p0;case Ne:var te=A&x;if(X||(X=Lc),s.size!=d.size&&!te)return!1;var de=G.get(s);if(de)return de==d;A|=E,G.set(s,d);var fe=Zy(X(s),X(d),A,$,V,G);return G.delete(s),fe;case at:if(mu)return mu.call(s)==mu.call(d)}return!1}function D7(s,d,b,A,$,V){var G=b&x,X=$0(s),te=X.length,de=$0(d),fe=de.length;if(te!=fe&&!G)return!1;for(var me=te;me--;){var _e=X[me];if(!(G?_e in d:kt.call(d,_e)))return!1}var Re=V.get(s),$e=V.get(d);if(Re&&$e)return Re==d&&$e==s;var Ze=!0;V.set(s,d),V.set(d,s);for(var ze=G;++me<te;){_e=X[me];var tt=s[_e],lt=d[_e];if(A)var Xr=G?A(lt,tt,_e,d,s,V):A(tt,lt,_e,s,d,V);if(!(Xr===r?tt===lt||$(tt,lt,b,A,V):Xr)){Ze=!1;break}ze||(ze=_e=="constructor")}if(Ze&&!ze){var Er=s.constructor,Zr=d.constructor;Er!=Zr&&"constructor"in s&&"constructor"in d&&!(typeof Er=="function"&&Er instanceof Er&&typeof Zr=="function"&&Zr instanceof Zr)&&(Ze=!1)}return V.delete(s),V.delete(d),Ze}function Oa(s){return Y0(n_(s,r,f_),s+"")}function $0(s){return vy(s,ar,U0)}function z0(s){return vy(s,Nr,Jy)}var B0=Kc?function(s){return Kc.get(s)}:op;function ld(s){for(var d=s.name+"",b=Bo[d],A=kt.call(Bo,d)?b.length:0;A--;){var $=b[A],V=$.func;if(V==null||V==s)return $.name}return d}function Wo(s){var d=kt.call(W,"placeholder")?W:s;return d.placeholder}function je(){var s=W.iteratee||ap;return s=s===ap?_y:s,arguments.length?s(arguments[0],arguments[1]):s}function cd(s,d){var b=s.__data__;return z7(d)?b[typeof d=="string"?"string":"hash"]:b.map}function H0(s){for(var d=ar(s),b=d.length;b--;){var A=d[b],$=s[A];d[b]=[A,$,t_($)]}return d}function Yi(s,d){var b=Uk(s,d);return yy(b)?b:r}function M7(s){var d=kt.call(s,Hi),b=s[Hi];try{s[Hi]=r;var A=!0}catch{}var $=Bc.call(s);return A&&(d?s[Hi]=b:delete s[Hi]),$}var U0=g0?function(s){return s==null?[]:(s=Rt(s),li(g0(s),function(d){return ay.call(s,d)}))}:sp,Jy=g0?function(s){for(var d=[];s;)ci(d,U0(s)),s=qc(s);return d}:sp,yr=Sr;(v0&&yr(new v0(new ArrayBuffer(1)))!=si||fu&&yr(new fu)!=oe||b0&&yr(b0.resolve())!=Et||zo&&yr(new zo)!=Ne||hu&&yr(new hu)!=Wr)&&(yr=function(s){var d=Sr(s),b=d==Ct?s.constructor:r,A=b?Gi(b):"";if(A)switch(A){case mT:return si;case gT:return oe;case vT:return Et;case bT:return Ne;case yT:return Wr}return d});function F7(s,d,b){for(var A=-1,$=b.length;++A<$;){var V=b[A],G=V.size;switch(V.type){case"drop":s+=G;break;case"dropRight":d-=G;break;case"take":d=br(d,s+G);break;case"takeRight":s=er(s,d-G);break}}return{start:s,end:d}}function N7(s){var d=s.match(Xh);return d?d[1].split(K):[]}function Qy(s,d,b){d=mi(d,s);for(var A=-1,$=d.length,V=!1;++A<$;){var G=na(d[A]);if(!(V=s!=null&&b(s,G)))break;s=s[G]}return V||++A!=$?V:($=s==null?0:s.length,!!$&&vd($)&&Aa(G,$)&&(Ye(s)||Ki(s)))}function I7(s){var d=s.length,b=new s.constructor(d);return d&&typeof s[0]=="string"&&kt.call(s,"index")&&(b.index=s.index,b.input=s.input),b}function e_(s){return typeof s.constructor=="function"&&!xu(s)?Ho(qc(s)):{}}function L7(s,d,b){var A=s.constructor;switch(d){case oi:return I0(s);case ye:case we:return new A(+s);case si:return _7(s,b);case Ao:case Ro:case Qs:case eu:case tu:case ru:case nu:case au:case iu:return Iy(s,b);case oe:return new A;case De:case Oe:return new A(s);case We:return w7(s);case Ne:return new A;case at:return x7(s)}}function j7(s,d){var b=d.length;if(!b)return s;var A=b-1;return d[A]=(b>1?"& ":"")+d[A],d=d.join(b>2?", ":" "),s.replace(Kh,`{
42
- /* [wrapped with `+d+`] */
43
- `)}function $7(s){return Ye(s)||Ki(s)||!!(iy&&s&&s[iy])}function Aa(s,d){var b=typeof s;return d=d??z,!!d&&(b=="number"||b!="symbol"&&Ht.test(s))&&s>-1&&s%1==0&&s<d}function Cr(s,d,b){if(!zt(b))return!1;var A=typeof d;return(A=="number"?Fr(b)&&Aa(d,b.length):A=="string"&&d in b)?Dn(b[d],s):!1}function q0(s,d){if(Ye(s))return!1;var b=typeof s;return b=="number"||b=="symbol"||b=="boolean"||s==null||Kr(s)?!0:Vh.test(s)||!Dc.test(s)||d!=null&&s in Rt(d)}function z7(s){var d=typeof s;return d=="string"||d=="number"||d=="symbol"||d=="boolean"?s!=="__proto__":s===null}function W0(s){var d=ld(s),b=W[d];if(typeof b!="function"||!(d in ot.prototype))return!1;if(s===b)return!0;var A=B0(b);return!!A&&s===A[0]}function B7(s){return!!ty&&ty in s}var H7=$c?Ra:up;function xu(s){var d=s&&s.constructor,b=typeof d=="function"&&d.prototype||$o;return s===b}function t_(s){return s===s&&!zt(s)}function r_(s,d){return function(b){return b==null?!1:b[s]===d&&(d!==r||s in Rt(b))}}function U7(s){var d=md(s,function(A){return b.size===c&&b.clear(),A}),b=d.cache;return d}function q7(s,d){var b=s[1],A=d[1],$=b|A,V=$<(k|T|_),G=A==_&&b==S||A==_&&b==R&&s[7].length<=d[8]||A==(_|R)&&d[7].length<=d[8]&&b==S;if(!(V||G))return s;A&k&&(s[2]=d[2],$|=b&k?0:w);var X=d[3];if(X){var te=s[3];s[3]=te?jy(te,X,d[4]):X,s[4]=te?di(s[3],m):d[4]}return X=d[5],X&&(te=s[5],s[5]=te?$y(te,X,d[6]):X,s[6]=te?di(s[5],m):d[6]),X=d[7],X&&(s[7]=X),A&_&&(s[8]=s[8]==null?d[8]:br(s[8],d[8])),s[9]==null&&(s[9]=d[9]),s[0]=d[0],s[1]=$,s}function W7(s){var d=[];if(s!=null)for(var b in Rt(s))d.push(b);return d}function V7(s){return Bc.call(s)}function n_(s,d,b){return d=er(d===r?s.length-1:d,0),function(){for(var A=arguments,$=-1,V=er(A.length-d,0),G=ae(V);++$<V;)G[$]=A[d+$];$=-1;for(var X=ae(d+1);++$<d;)X[$]=A[$];return X[d]=b(G),Vr(s,this,X)}}function a_(s,d){return d.length<2?s:Vi(s,vn(d,0,-1))}function Y7(s,d){for(var b=s.length,A=br(d.length,b),$=Mr(s);A--;){var V=d[A];s[A]=Aa(V,b)?$[V]:r}return s}function V0(s,d){if(!(d==="constructor"&&typeof s[d]=="function")&&d!="__proto__")return s[d]}var i_=s_(Oy),Su=uT||function(s,d){return cr.setTimeout(s,d)},Y0=s_(g7);function o_(s,d,b){var A=d+"";return Y0(s,j7(A,G7(N7(A),b)))}function s_(s){var d=0,b=0;return function(){var A=fT(),$=L-(A-b);if(b=A,$>0){if(++d>=q)return arguments[0]}else d=0;return s.apply(r,arguments)}}function dd(s,d){var b=-1,A=s.length,$=A-1;for(d=d===r?A:d;++b<d;){var V=A0(b,$),G=s[V];s[V]=s[b],s[b]=G}return s.length=d,s}var u_=U7(function(s){var d=[];return s.charCodeAt(0)===46&&d.push(""),s.replace(Yh,function(b,A,$,V){d.push($?V.replace(He,"$1"):A||b)}),d});function na(s){if(typeof s=="string"||Kr(s))return s;var d=s+"";return d=="0"&&1/s==-1/0?"-0":d}function Gi(s){if(s!=null){try{return zc.call(s)}catch{}try{return s+""}catch{}}return""}function G7(s,d){return hn(ne,function(b){var A="_."+b[0];d&b[1]&&!Nc(s,A)&&s.push(A)}),s.sort()}function l_(s){if(s instanceof ot)return s.clone();var d=new mn(s.__wrapped__,s.__chain__);return d.__actions__=Mr(s.__actions__),d.__index__=s.__index__,d.__values__=s.__values__,d}function K7(s,d,b){(b?Cr(s,d,b):d===r)?d=1:d=er(Ke(d),0);var A=s==null?0:s.length;if(!A||d<1)return[];for(var $=0,V=0,G=ae(Yc(A/d));$<A;)G[V++]=vn(s,$,$+=d);return G}function X7(s){for(var d=-1,b=s==null?0:s.length,A=0,$=[];++d<b;){var V=s[d];V&&($[A++]=V)}return $}function Z7(){var s=arguments.length;if(!s)return[];for(var d=ae(s-1),b=arguments[0],A=s;A--;)d[A-1]=arguments[A];return ci(Ye(b)?Mr(b):[b],dr(d,1))}var J7=Qe(function(s,d){return Wt(s)?vu(s,dr(d,1,Wt,!0)):[]}),Q7=Qe(function(s,d){var b=bn(d);return Wt(b)&&(b=r),Wt(s)?vu(s,dr(d,1,Wt,!0),je(b,2)):[]}),e9=Qe(function(s,d){var b=bn(d);return Wt(b)&&(b=r),Wt(s)?vu(s,dr(d,1,Wt,!0),r,b):[]});function t9(s,d,b){var A=s==null?0:s.length;return A?(d=b||d===r?1:Ke(d),vn(s,d<0?0:d,A)):[]}function r9(s,d,b){var A=s==null?0:s.length;return A?(d=b||d===r?1:Ke(d),d=A-d,vn(s,0,d<0?0:d)):[]}function n9(s,d){return s&&s.length?nd(s,je(d,3),!0,!0):[]}function a9(s,d){return s&&s.length?nd(s,je(d,3),!0):[]}function i9(s,d,b,A){var $=s==null?0:s.length;return $?(b&&typeof b!="number"&&Cr(s,d,b)&&(b=0,A=$),ZT(s,d,b,A)):[]}function c_(s,d,b){var A=s==null?0:s.length;if(!A)return-1;var $=b==null?0:Ke(b);return $<0&&($=er(A+$,0)),Ic(s,je(d,3),$)}function d_(s,d,b){var A=s==null?0:s.length;if(!A)return-1;var $=A-1;return b!==r&&($=Ke(b),$=b<0?er(A+$,0):br($,A-1)),Ic(s,je(d,3),$,!0)}function f_(s){var d=s==null?0:s.length;return d?dr(s,1):[]}function o9(s){var d=s==null?0:s.length;return d?dr(s,I):[]}function s9(s,d){var b=s==null?0:s.length;return b?(d=d===r?1:Ke(d),dr(s,d)):[]}function u9(s){for(var d=-1,b=s==null?0:s.length,A={};++d<b;){var $=s[d];A[$[0]]=$[1]}return A}function h_(s){return s&&s.length?s[0]:r}function l9(s,d,b){var A=s==null?0:s.length;if(!A)return-1;var $=b==null?0:Ke(b);return $<0&&($=er(A+$,0)),No(s,d,$)}function c9(s){var d=s==null?0:s.length;return d?vn(s,0,-1):[]}var d9=Qe(function(s){var d=Lt(s,F0);return d.length&&d[0]===s[0]?C0(d):[]}),f9=Qe(function(s){var d=bn(s),b=Lt(s,F0);return d===bn(b)?d=r:b.pop(),b.length&&b[0]===s[0]?C0(b,je(d,2)):[]}),h9=Qe(function(s){var d=bn(s),b=Lt(s,F0);return d=typeof d=="function"?d:r,d&&b.pop(),b.length&&b[0]===s[0]?C0(b,r,d):[]});function p9(s,d){return s==null?"":cT.call(s,d)}function bn(s){var d=s==null?0:s.length;return d?s[d-1]:r}function m9(s,d,b){var A=s==null?0:s.length;if(!A)return-1;var $=A;return b!==r&&($=Ke(b),$=$<0?er(A+$,0):br($,A-1)),d===d?Gk(s,d,$):Ic(s,Yb,$,!0)}function g9(s,d){return s&&s.length?Cy(s,Ke(d)):r}var v9=Qe(p_);function p_(s,d){return s&&s.length&&d&&d.length?O0(s,d):s}function b9(s,d,b){return s&&s.length&&d&&d.length?O0(s,d,je(b,2)):s}function y9(s,d,b){return s&&s.length&&d&&d.length?O0(s,d,r,b):s}var _9=Oa(function(s,d){var b=s==null?0:s.length,A=_0(s,d);return Ty(s,Lt(d,function($){return Aa($,b)?+$:$}).sort(Ly)),A});function w9(s,d){var b=[];if(!(s&&s.length))return b;var A=-1,$=[],V=s.length;for(d=je(d,3);++A<V;){var G=s[A];d(G,A,s)&&(b.push(G),$.push(A))}return Ty(s,$),b}function G0(s){return s==null?s:pT.call(s)}function x9(s,d,b){var A=s==null?0:s.length;return A?(b&&typeof b!="number"&&Cr(s,d,b)?(d=0,b=A):(d=d==null?0:Ke(d),b=b===r?A:Ke(b)),vn(s,d,b)):[]}function S9(s,d){return rd(s,d)}function C9(s,d,b){return P0(s,d,je(b,2))}function E9(s,d){var b=s==null?0:s.length;if(b){var A=rd(s,d);if(A<b&&Dn(s[A],d))return A}return-1}function k9(s,d){return rd(s,d,!0)}function T9(s,d,b){return P0(s,d,je(b,2),!0)}function O9(s,d){var b=s==null?0:s.length;if(b){var A=rd(s,d,!0)-1;if(Dn(s[A],d))return A}return-1}function A9(s){return s&&s.length?Ay(s):[]}function R9(s,d){return s&&s.length?Ay(s,je(d,2)):[]}function P9(s){var d=s==null?0:s.length;return d?vn(s,1,d):[]}function D9(s,d,b){return s&&s.length?(d=b||d===r?1:Ke(d),vn(s,0,d<0?0:d)):[]}function M9(s,d,b){var A=s==null?0:s.length;return A?(d=b||d===r?1:Ke(d),d=A-d,vn(s,d<0?0:d,A)):[]}function F9(s,d){return s&&s.length?nd(s,je(d,3),!1,!0):[]}function N9(s,d){return s&&s.length?nd(s,je(d,3)):[]}var I9=Qe(function(s){return pi(dr(s,1,Wt,!0))}),L9=Qe(function(s){var d=bn(s);return Wt(d)&&(d=r),pi(dr(s,1,Wt,!0),je(d,2))}),j9=Qe(function(s){var d=bn(s);return d=typeof d=="function"?d:r,pi(dr(s,1,Wt,!0),r,d)});function $9(s){return s&&s.length?pi(s):[]}function z9(s,d){return s&&s.length?pi(s,je(d,2)):[]}function B9(s,d){return d=typeof d=="function"?d:r,s&&s.length?pi(s,r,d):[]}function K0(s){if(!(s&&s.length))return[];var d=0;return s=li(s,function(b){if(Wt(b))return d=er(b.length,d),!0}),f0(d,function(b){return Lt(s,l0(b))})}function m_(s,d){if(!(s&&s.length))return[];var b=K0(s);return d==null?b:Lt(b,function(A){return Vr(d,r,A)})}var H9=Qe(function(s,d){return Wt(s)?vu(s,d):[]}),U9=Qe(function(s){return M0(li(s,Wt))}),q9=Qe(function(s){var d=bn(s);return Wt(d)&&(d=r),M0(li(s,Wt),je(d,2))}),W9=Qe(function(s){var d=bn(s);return d=typeof d=="function"?d:r,M0(li(s,Wt),r,d)}),V9=Qe(K0);function Y9(s,d){return My(s||[],d||[],gu)}function G9(s,d){return My(s||[],d||[],_u)}var K9=Qe(function(s){var d=s.length,b=d>1?s[d-1]:r;return b=typeof b=="function"?(s.pop(),b):r,m_(s,b)});function g_(s){var d=W(s);return d.__chain__=!0,d}function X9(s,d){return d(s),s}function fd(s,d){return d(s)}var Z9=Oa(function(s){var d=s.length,b=d?s[0]:0,A=this.__wrapped__,$=function(V){return _0(V,s)};return d>1||this.__actions__.length||!(A instanceof ot)||!Aa(b)?this.thru($):(A=A.slice(b,+b+(d?1:0)),A.__actions__.push({func:fd,args:[$],thisArg:r}),new mn(A,this.__chain__).thru(function(V){return d&&!V.length&&V.push(r),V}))});function J9(){return g_(this)}function Q9(){return new mn(this.value(),this.__chain__)}function eO(){this.__values__===r&&(this.__values__=R_(this.value()));var s=this.__index__>=this.__values__.length,d=s?r:this.__values__[this.__index__++];return{done:s,value:d}}function tO(){return this}function rO(s){for(var d,b=this;b instanceof Zc;){var A=l_(b);A.__index__=0,A.__values__=r,d?$.__wrapped__=A:d=A;var $=A;b=b.__wrapped__}return $.__wrapped__=s,d}function nO(){var s=this.__wrapped__;if(s instanceof ot){var d=s;return this.__actions__.length&&(d=new ot(this)),d=d.reverse(),d.__actions__.push({func:fd,args:[G0],thisArg:r}),new mn(d,this.__chain__)}return this.thru(G0)}function aO(){return Dy(this.__wrapped__,this.__actions__)}var iO=ad(function(s,d,b){kt.call(s,b)?++s[b]:ka(s,b,1)});function oO(s,d,b){var A=Ye(s)?Wb:XT;return b&&Cr(s,d,b)&&(d=r),A(s,je(d,3))}function sO(s,d){var b=Ye(s)?li:my;return b(s,je(d,3))}var uO=Uy(c_),lO=Uy(d_);function cO(s,d){return dr(hd(s,d),1)}function dO(s,d){return dr(hd(s,d),I)}function fO(s,d,b){return b=b===r?1:Ke(b),dr(hd(s,d),b)}function v_(s,d){var b=Ye(s)?hn:hi;return b(s,je(d,3))}function b_(s,d){var b=Ye(s)?Pk:py;return b(s,je(d,3))}var hO=ad(function(s,d,b){kt.call(s,b)?s[b].push(d):ka(s,b,[d])});function pO(s,d,b,A){s=Fr(s)?s:Yo(s),b=b&&!A?Ke(b):0;var $=s.length;return b<0&&(b=er($+b,0)),bd(s)?b<=$&&s.indexOf(d,b)>-1:!!$&&No(s,d,b)>-1}var mO=Qe(function(s,d,b){var A=-1,$=typeof d=="function",V=Fr(s)?ae(s.length):[];return hi(s,function(G){V[++A]=$?Vr(d,G,b):bu(G,d,b)}),V}),gO=ad(function(s,d,b){ka(s,b,d)});function hd(s,d){var b=Ye(s)?Lt:wy;return b(s,je(d,3))}function vO(s,d,b,A){return s==null?[]:(Ye(d)||(d=d==null?[]:[d]),b=A?r:b,Ye(b)||(b=b==null?[]:[b]),Ey(s,d,b))}var bO=ad(function(s,d,b){s[b?0:1].push(d)},function(){return[[],[]]});function yO(s,d,b){var A=Ye(s)?s0:Kb,$=arguments.length<3;return A(s,je(d,4),b,$,hi)}function _O(s,d,b){var A=Ye(s)?Dk:Kb,$=arguments.length<3;return A(s,je(d,4),b,$,py)}function wO(s,d){var b=Ye(s)?li:my;return b(s,gd(je(d,3)))}function xO(s){var d=Ye(s)?cy:p7;return d(s)}function SO(s,d,b){(b?Cr(s,d,b):d===r)?d=1:d=Ke(d);var A=Ye(s)?WT:m7;return A(s,d)}function CO(s){var d=Ye(s)?VT:v7;return d(s)}function EO(s){if(s==null)return 0;if(Fr(s))return bd(s)?Lo(s):s.length;var d=yr(s);return d==oe||d==Ne?s.size:k0(s).length}function kO(s,d,b){var A=Ye(s)?u0:b7;return b&&Cr(s,d,b)&&(d=r),A(s,je(d,3))}var TO=Qe(function(s,d){if(s==null)return[];var b=d.length;return b>1&&Cr(s,d[0],d[1])?d=[]:b>2&&Cr(d[0],d[1],d[2])&&(d=[d[0]]),Ey(s,dr(d,1),[])}),pd=sT||function(){return cr.Date.now()};function OO(s,d){if(typeof d!="function")throw new pn(o);return s=Ke(s),function(){if(--s<1)return d.apply(this,arguments)}}function y_(s,d,b){return d=b?r:d,d=s&&d==null?s.length:d,Ta(s,_,r,r,r,r,d)}function __(s,d){var b;if(typeof d!="function")throw new pn(o);return s=Ke(s),function(){return--s>0&&(b=d.apply(this,arguments)),s<=1&&(d=r),b}}var X0=Qe(function(s,d,b){var A=k;if(b.length){var $=di(b,Wo(X0));A|=h}return Ta(s,A,d,b,$)}),w_=Qe(function(s,d,b){var A=k|T;if(b.length){var $=di(b,Wo(w_));A|=h}return Ta(d,A,s,b,$)});function x_(s,d,b){d=b?r:d;var A=Ta(s,S,r,r,r,r,r,d);return A.placeholder=x_.placeholder,A}function S_(s,d,b){d=b?r:d;var A=Ta(s,f,r,r,r,r,r,d);return A.placeholder=S_.placeholder,A}function C_(s,d,b){var A,$,V,G,X,te,de=0,fe=!1,me=!1,_e=!0;if(typeof s!="function")throw new pn(o);d=yn(d)||0,zt(b)&&(fe=!!b.leading,me="maxWait"in b,V=me?er(yn(b.maxWait)||0,d):V,_e="trailing"in b?!!b.trailing:_e);function Re(Vt){var Mn=A,Da=$;return A=$=r,de=Vt,G=s.apply(Da,Mn),G}function $e(Vt){return de=Vt,X=Su(tt,d),fe?Re(Vt):G}function Ze(Vt){var Mn=Vt-te,Da=Vt-de,U_=d-Mn;return me?br(U_,V-Da):U_}function ze(Vt){var Mn=Vt-te,Da=Vt-de;return te===r||Mn>=d||Mn<0||me&&Da>=V}function tt(){var Vt=pd();if(ze(Vt))return lt(Vt);X=Su(tt,Ze(Vt))}function lt(Vt){return X=r,_e&&A?Re(Vt):(A=$=r,G)}function Xr(){X!==r&&Fy(X),de=0,A=te=$=X=r}function Er(){return X===r?G:lt(pd())}function Zr(){var Vt=pd(),Mn=ze(Vt);if(A=arguments,$=this,te=Vt,Mn){if(X===r)return $e(te);if(me)return Fy(X),X=Su(tt,d),Re(te)}return X===r&&(X=Su(tt,d)),G}return Zr.cancel=Xr,Zr.flush=Er,Zr}var AO=Qe(function(s,d){return hy(s,1,d)}),RO=Qe(function(s,d,b){return hy(s,yn(d)||0,b)});function PO(s){return Ta(s,C)}function md(s,d){if(typeof s!="function"||d!=null&&typeof d!="function")throw new pn(o);var b=function(){var A=arguments,$=d?d.apply(this,A):A[0],V=b.cache;if(V.has($))return V.get($);var G=s.apply(this,A);return b.cache=V.set($,G)||V,G};return b.cache=new(md.Cache||Ea),b}md.Cache=Ea;function gd(s){if(typeof s!="function")throw new pn(o);return function(){var d=arguments;switch(d.length){case 0:return!s.call(this);case 1:return!s.call(this,d[0]);case 2:return!s.call(this,d[0],d[1]);case 3:return!s.call(this,d[0],d[1],d[2])}return!s.apply(this,d)}}function DO(s){return __(2,s)}var MO=y7(function(s,d){d=d.length==1&&Ye(d[0])?Lt(d[0],Yr(je())):Lt(dr(d,1),Yr(je()));var b=d.length;return Qe(function(A){for(var $=-1,V=br(A.length,b);++$<V;)A[$]=d[$].call(this,A[$]);return Vr(s,this,A)})}),Z0=Qe(function(s,d){var b=di(d,Wo(Z0));return Ta(s,h,r,d,b)}),E_=Qe(function(s,d){var b=di(d,Wo(E_));return Ta(s,v,r,d,b)}),FO=Oa(function(s,d){return Ta(s,R,r,r,r,d)});function NO(s,d){if(typeof s!="function")throw new pn(o);return d=d===r?d:Ke(d),Qe(s,d)}function IO(s,d){if(typeof s!="function")throw new pn(o);return d=d==null?0:er(Ke(d),0),Qe(function(b){var A=b[d],$=gi(b,0,d);return A&&ci($,A),Vr(s,this,$)})}function LO(s,d,b){var A=!0,$=!0;if(typeof s!="function")throw new pn(o);return zt(b)&&(A="leading"in b?!!b.leading:A,$="trailing"in b?!!b.trailing:$),C_(s,d,{leading:A,maxWait:d,trailing:$})}function jO(s){return y_(s,1)}function $O(s,d){return Z0(N0(d),s)}function zO(){if(!arguments.length)return[];var s=arguments[0];return Ye(s)?s:[s]}function BO(s){return gn(s,y)}function HO(s,d){return d=typeof d=="function"?d:r,gn(s,y,d)}function UO(s){return gn(s,p|y)}function qO(s,d){return d=typeof d=="function"?d:r,gn(s,p|y,d)}function WO(s,d){return d==null||fy(s,d,ar(d))}function Dn(s,d){return s===d||s!==s&&d!==d}var VO=ud(S0),YO=ud(function(s,d){return s>=d}),Ki=by(function(){return arguments}())?by:function(s){return Ut(s)&&kt.call(s,"callee")&&!ay.call(s,"callee")},Ye=ae.isArray,GO=$b?Yr($b):r7;function Fr(s){return s!=null&&vd(s.length)&&!Ra(s)}function Wt(s){return Ut(s)&&Fr(s)}function KO(s){return s===!0||s===!1||Ut(s)&&Sr(s)==ye}var vi=lT||up,XO=zb?Yr(zb):n7;function ZO(s){return Ut(s)&&s.nodeType===1&&!Cu(s)}function JO(s){if(s==null)return!0;if(Fr(s)&&(Ye(s)||typeof s=="string"||typeof s.splice=="function"||vi(s)||Vo(s)||Ki(s)))return!s.length;var d=yr(s);if(d==oe||d==Ne)return!s.size;if(xu(s))return!k0(s).length;for(var b in s)if(kt.call(s,b))return!1;return!0}function QO(s,d){return yu(s,d)}function eA(s,d,b){b=typeof b=="function"?b:r;var A=b?b(s,d):r;return A===r?yu(s,d,r,b):!!A}function J0(s){if(!Ut(s))return!1;var d=Sr(s);return d==Le||d==Ee||typeof s.message=="string"&&typeof s.name=="string"&&!Cu(s)}function tA(s){return typeof s=="number"&&oy(s)}function Ra(s){if(!zt(s))return!1;var d=Sr(s);return d==he||d==qe||d==le||d==Fe}function k_(s){return typeof s=="number"&&s==Ke(s)}function vd(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=z}function zt(s){var d=typeof s;return s!=null&&(d=="object"||d=="function")}function Ut(s){return s!=null&&typeof s=="object"}var T_=Bb?Yr(Bb):i7;function rA(s,d){return s===d||E0(s,d,H0(d))}function nA(s,d,b){return b=typeof b=="function"?b:r,E0(s,d,H0(d),b)}function aA(s){return O_(s)&&s!=+s}function iA(s){if(H7(s))throw new Ve(i);return yy(s)}function oA(s){return s===null}function sA(s){return s==null}function O_(s){return typeof s=="number"||Ut(s)&&Sr(s)==De}function Cu(s){if(!Ut(s)||Sr(s)!=Ct)return!1;var d=qc(s);if(d===null)return!0;var b=kt.call(d,"constructor")&&d.constructor;return typeof b=="function"&&b instanceof b&&zc.call(b)==nT}var Q0=Hb?Yr(Hb):o7;function uA(s){return k_(s)&&s>=-9007199254740991&&s<=z}var A_=Ub?Yr(Ub):s7;function bd(s){return typeof s=="string"||!Ye(s)&&Ut(s)&&Sr(s)==Oe}function Kr(s){return typeof s=="symbol"||Ut(s)&&Sr(s)==at}var Vo=qb?Yr(qb):u7;function lA(s){return s===r}function cA(s){return Ut(s)&&yr(s)==Wr}function dA(s){return Ut(s)&&Sr(s)==Oc}var fA=ud(T0),hA=ud(function(s,d){return s<=d});function R_(s){if(!s)return[];if(Fr(s))return bd(s)?Rn(s):Mr(s);if(du&&s[du])return Wk(s[du]());var d=yr(s),b=d==oe?p0:d==Ne?Lc:Yo;return b(s)}function Pa(s){if(!s)return s===0?s:0;if(s=yn(s),s===I||s===-1/0){var d=s<0?-1:1;return d*B}return s===s?s:0}function Ke(s){var d=Pa(s),b=d%1;return d===d?b?d-b:d:0}function P_(s){return s?Wi(Ke(s),0,U):0}function yn(s){if(typeof s=="number")return s;if(Kr(s))return H;if(zt(s)){var d=typeof s.valueOf=="function"?s.valueOf():s;s=zt(d)?d+"":d}if(typeof s!="string")return s===0?s:+s;s=Xb(s);var b=et.test(s);return b||$t.test(s)?Ok(s.slice(2),b?2:8):it.test(s)?H:+s}function D_(s){return ra(s,Nr(s))}function pA(s){return s?Wi(Ke(s),-9007199254740991,z):s===0?s:0}function yt(s){return s==null?"":Gr(s)}var mA=Uo(function(s,d){if(xu(d)||Fr(d)){ra(d,ar(d),s);return}for(var b in d)kt.call(d,b)&&gu(s,b,d[b])}),M_=Uo(function(s,d){ra(d,Nr(d),s)}),yd=Uo(function(s,d,b,A){ra(d,Nr(d),s,A)}),gA=Uo(function(s,d,b,A){ra(d,ar(d),s,A)}),vA=Oa(_0);function bA(s,d){var b=Ho(s);return d==null?b:dy(b,d)}var yA=Qe(function(s,d){s=Rt(s);var b=-1,A=d.length,$=A>2?d[2]:r;for($&&Cr(d[0],d[1],$)&&(A=1);++b<A;)for(var V=d[b],G=Nr(V),X=-1,te=G.length;++X<te;){var de=G[X],fe=s[de];(fe===r||Dn(fe,$o[de])&&!kt.call(s,de))&&(s[de]=V[de])}return s}),_A=Qe(function(s){return s.push(r,Xy),Vr(F_,r,s)});function wA(s,d){return Vb(s,je(d,3),ta)}function xA(s,d){return Vb(s,je(d,3),x0)}function SA(s,d){return s==null?s:w0(s,je(d,3),Nr)}function CA(s,d){return s==null?s:gy(s,je(d,3),Nr)}function EA(s,d){return s&&ta(s,je(d,3))}function kA(s,d){return s&&x0(s,je(d,3))}function TA(s){return s==null?[]:ed(s,ar(s))}function OA(s){return s==null?[]:ed(s,Nr(s))}function ep(s,d,b){var A=s==null?r:Vi(s,d);return A===r?b:A}function AA(s,d){return s!=null&&Qy(s,d,JT)}function tp(s,d){return s!=null&&Qy(s,d,QT)}var RA=Wy(function(s,d,b){d!=null&&typeof d.toString!="function"&&(d=Bc.call(d)),s[d]=b},np(Ir)),PA=Wy(function(s,d,b){d!=null&&typeof d.toString!="function"&&(d=Bc.call(d)),kt.call(s,d)?s[d].push(b):s[d]=[b]},je),DA=Qe(bu);function ar(s){return Fr(s)?ly(s):k0(s)}function Nr(s){return Fr(s)?ly(s,!0):l7(s)}function MA(s,d){var b={};return d=je(d,3),ta(s,function(A,$,V){ka(b,d(A,$,V),A)}),b}function FA(s,d){var b={};return d=je(d,3),ta(s,function(A,$,V){ka(b,$,d(A,$,V))}),b}var NA=Uo(function(s,d,b){td(s,d,b)}),F_=Uo(function(s,d,b,A){td(s,d,b,A)}),IA=Oa(function(s,d){var b={};if(s==null)return b;var A=!1;d=Lt(d,function(V){return V=mi(V,s),A||(A=V.length>1),V}),ra(s,z0(s),b),A&&(b=gn(b,p|g|y,R7));for(var $=d.length;$--;)D0(b,d[$]);return b});function LA(s,d){return N_(s,gd(je(d)))}var jA=Oa(function(s,d){return s==null?{}:d7(s,d)});function N_(s,d){if(s==null)return{};var b=Lt(z0(s),function(A){return[A]});return d=je(d),ky(s,b,function(A,$){return d(A,$[0])})}function $A(s,d,b){d=mi(d,s);var A=-1,$=d.length;for($||($=1,s=r);++A<$;){var V=s==null?r:s[na(d[A])];V===r&&(A=$,V=b),s=Ra(V)?V.call(s):V}return s}function zA(s,d,b){return s==null?s:_u(s,d,b)}function BA(s,d,b,A){return A=typeof A=="function"?A:r,s==null?s:_u(s,d,b,A)}var I_=Gy(ar),L_=Gy(Nr);function HA(s,d,b){var A=Ye(s),$=A||vi(s)||Vo(s);if(d=je(d,4),b==null){var V=s&&s.constructor;$?b=A?new V:[]:zt(s)?b=Ra(V)?Ho(qc(s)):{}:b={}}return($?hn:ta)(s,function(G,X,te){return d(b,G,X,te)}),b}function UA(s,d){return s==null?!0:D0(s,d)}function qA(s,d,b){return s==null?s:Py(s,d,N0(b))}function WA(s,d,b,A){return A=typeof A=="function"?A:r,s==null?s:Py(s,d,N0(b),A)}function Yo(s){return s==null?[]:h0(s,ar(s))}function VA(s){return s==null?[]:h0(s,Nr(s))}function YA(s,d,b){return b===r&&(b=d,d=r),b!==r&&(b=yn(b),b=b===b?b:0),d!==r&&(d=yn(d),d=d===d?d:0),Wi(yn(s),d,b)}function GA(s,d,b){return d=Pa(d),b===r?(b=d,d=0):b=Pa(b),s=yn(s),e7(s,d,b)}function KA(s,d,b){if(b&&typeof b!="boolean"&&Cr(s,d,b)&&(d=b=r),b===r&&(typeof d=="boolean"?(b=d,d=r):typeof s=="boolean"&&(b=s,s=r)),s===r&&d===r?(s=0,d=1):(s=Pa(s),d===r?(d=s,s=0):d=Pa(d)),s>d){var A=s;s=d,d=A}if(b||s%1||d%1){var $=sy();return br(s+$*(d-s+Tk("1e-"+(($+"").length-1))),d)}return A0(s,d)}var XA=qo(function(s,d,b){return d=d.toLowerCase(),s+(b?j_(d):d)});function j_(s){return rp(yt(s).toLowerCase())}function $_(s){return s=yt(s),s&&s.replace(Dr,zk).replace(vk,"")}function ZA(s,d,b){s=yt(s),d=Gr(d);var A=s.length;b=b===r?A:Wi(Ke(b),0,A);var $=b;return b-=d.length,b>=0&&s.slice(b,$)==d}function JA(s){return s=yt(s),s&&qh.test(s)?s.replace(Do,Bk):s}function QA(s){return s=yt(s),s&&Mc.test(s)?s.replace(Mo,"\\$&"):s}var eR=qo(function(s,d,b){return s+(b?"-":"")+d.toLowerCase()}),tR=qo(function(s,d,b){return s+(b?" ":"")+d.toLowerCase()}),rR=Hy("toLowerCase");function nR(s,d,b){s=yt(s),d=Ke(d);var A=d?Lo(s):0;if(!d||A>=d)return s;var $=(d-A)/2;return sd(Gc($),b)+s+sd(Yc($),b)}function aR(s,d,b){s=yt(s),d=Ke(d);var A=d?Lo(s):0;return d&&A<d?s+sd(d-A,b):s}function iR(s,d,b){s=yt(s),d=Ke(d);var A=d?Lo(s):0;return d&&A<d?sd(d-A,b)+s:s}function oR(s,d,b){return b||d==null?d=0:d&&(d=+d),hT(yt(s).replace(uu,""),d||0)}function sR(s,d,b){return(b?Cr(s,d,b):d===r)?d=1:d=Ke(d),R0(yt(s),d)}function uR(){var s=arguments,d=yt(s[0]);return s.length<3?d:d.replace(s[1],s[2])}var lR=qo(function(s,d,b){return s+(b?"_":"")+d.toLowerCase()});function cR(s,d,b){return b&&typeof b!="number"&&Cr(s,d,b)&&(d=b=r),b=b===r?U:b>>>0,b?(s=yt(s),s&&(typeof d=="string"||d!=null&&!Q0(d))&&(d=Gr(d),!d&&Io(s))?gi(Rn(s),0,b):s.split(d,b)):[]}var dR=qo(function(s,d,b){return s+(b?" ":"")+rp(d)});function fR(s,d,b){return s=yt(s),b=b==null?0:Wi(Ke(b),0,s.length),d=Gr(d),s.slice(b,b+d.length)==d}function hR(s,d,b){var A=W.templateSettings;b&&Cr(s,d,b)&&(d=r),s=yt(s),d=yd({},d,A,Ky);var $=yd({},d.imports,A.imports,Ky),V=ar($),G=h0($,V),X,te,de=0,fe=d.interpolate||An,me="__p += '",_e=m0((d.escape||An).source+"|"+fe.source+"|"+(fe===su?ft:An).source+"|"+(d.evaluate||An).source+"|$","g"),Re="//# sourceURL="+(kt.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++xk+"]")+`
44
- `;s.replace(_e,function(ze,tt,lt,Xr,Er,Zr){return lt||(lt=Xr),me+=s.slice(de,Zr).replace(Sa,Hk),tt&&(X=!0,me+=`' +
45
- __e(`+tt+`) +
46
- '`),Er&&(te=!0,me+=`';
47
- `+Er+`;
48
- __p += '`),lt&&(me+=`' +
49
- ((__t = (`+lt+`)) == null ? '' : __t) +
50
- '`),de=Zr+ze.length,ze}),me+=`';
51
- `;var $e=kt.call(d,"variable")&&d.variable;if(!$e)me=`with (obj) {
52
- `+me+`
53
- }
54
- `;else if(xe.test($e))throw new Ve(l);me=(te?me.replace(ou,""):me).replace(Ac,"$1").replace(ui,"$1;"),me="function("+($e||"obj")+`) {
55
- `+($e?"":`obj || (obj = {});
56
- `)+"var __t, __p = ''"+(X?", __e = _.escape":"")+(te?`, __j = Array.prototype.join;
57
- function print() { __p += __j.call(arguments, '') }
58
- `:`;
59
- `)+me+`return __p
60
- }`;var Ze=B_(function(){return gt(V,Re+"return "+me).apply(r,G)});if(Ze.source=me,J0(Ze))throw Ze;return Ze}function pR(s){return yt(s).toLowerCase()}function mR(s){return yt(s).toUpperCase()}function gR(s,d,b){if(s=yt(s),s&&(b||d===r))return Xb(s);if(!s||!(d=Gr(d)))return s;var A=Rn(s),$=Rn(d),V=Zb(A,$),G=Jb(A,$)+1;return gi(A,V,G).join("")}function vR(s,d,b){if(s=yt(s),s&&(b||d===r))return s.slice(0,ey(s)+1);if(!s||!(d=Gr(d)))return s;var A=Rn(s),$=Jb(A,Rn(d))+1;return gi(A,0,$).join("")}function bR(s,d,b){if(s=yt(s),s&&(b||d===r))return s.replace(uu,"");if(!s||!(d=Gr(d)))return s;var A=Rn(s),$=Zb(A,Rn(d));return gi(A,$).join("")}function yR(s,d){var b=P,A=M;if(zt(d)){var $="separator"in d?d.separator:$;b="length"in d?Ke(d.length):b,A="omission"in d?Gr(d.omission):A}s=yt(s);var V=s.length;if(Io(s)){var G=Rn(s);V=G.length}if(b>=V)return s;var X=b-Lo(A);if(X<1)return A;var te=G?gi(G,0,X).join(""):s.slice(0,X);if($===r)return te+A;if(G&&(X+=te.length-X),Q0($)){if(s.slice(X).search($)){var de,fe=te;for($.global||($=m0($.source,yt(bt.exec($))+"g")),$.lastIndex=0;de=$.exec(fe);)var me=de.index;te=te.slice(0,me===r?X:me)}}else if(s.indexOf(Gr($),X)!=X){var _e=te.lastIndexOf($);_e>-1&&(te=te.slice(0,_e))}return te+A}function _R(s){return s=yt(s),s&&Rc.test(s)?s.replace(Po,Kk):s}var wR=qo(function(s,d,b){return s+(b?" ":"")+d.toUpperCase()}),rp=Hy("toUpperCase");function z_(s,d,b){return s=yt(s),d=b?r:d,d===r?qk(s)?Jk(s):Nk(s):s.match(d)||[]}var B_=Qe(function(s,d){try{return Vr(s,r,d)}catch(b){return J0(b)?b:new Ve(b)}}),xR=Oa(function(s,d){return hn(d,function(b){b=na(b),ka(s,b,X0(s[b],s))}),s});function SR(s){var d=s==null?0:s.length,b=je();return s=d?Lt(s,function(A){if(typeof A[1]!="function")throw new pn(o);return[b(A[0]),A[1]]}):[],Qe(function(A){for(var $=-1;++$<d;){var V=s[$];if(Vr(V[0],this,A))return Vr(V[1],this,A)}})}function CR(s){return KT(gn(s,p))}function np(s){return function(){return s}}function ER(s,d){return s==null||s!==s?d:s}var kR=qy(),TR=qy(!0);function Ir(s){return s}function ap(s){return _y(typeof s=="function"?s:gn(s,p))}function OR(s){return xy(gn(s,p))}function AR(s,d){return Sy(s,gn(d,p))}var RR=Qe(function(s,d){return function(b){return bu(b,s,d)}}),PR=Qe(function(s,d){return function(b){return bu(s,b,d)}});function ip(s,d,b){var A=ar(d),$=ed(d,A);b==null&&!(zt(d)&&($.length||!A.length))&&(b=d,d=s,s=this,$=ed(d,ar(d)));var V=!(zt(b)&&"chain"in b)||!!b.chain,G=Ra(s);return hn($,function(X){var te=d[X];s[X]=te,G&&(s.prototype[X]=function(){var de=this.__chain__;if(V||de){var fe=s(this.__wrapped__),me=fe.__actions__=Mr(this.__actions__);return me.push({func:te,args:arguments,thisArg:s}),fe.__chain__=de,fe}return te.apply(s,ci([this.value()],arguments))})}),s}function DR(){return cr._===this&&(cr._=aT),this}function op(){}function MR(s){return s=Ke(s),Qe(function(d){return Cy(d,s)})}var FR=L0(Lt),NR=L0(Wb),IR=L0(u0);function H_(s){return q0(s)?l0(na(s)):f7(s)}function LR(s){return function(d){return s==null?r:Vi(s,d)}}var jR=Vy(),$R=Vy(!0);function sp(){return[]}function up(){return!1}function zR(){return{}}function BR(){return""}function HR(){return!0}function UR(s,d){if(s=Ke(s),s<1||s>z)return[];var b=U,A=br(s,U);d=je(d),s-=U;for(var $=f0(A,d);++b<s;)d(b);return $}function qR(s){return Ye(s)?Lt(s,na):Kr(s)?[s]:Mr(u_(yt(s)))}function WR(s){var d=++rT;return yt(s)+d}var VR=od(function(s,d){return s+d},0),YR=j0("ceil"),GR=od(function(s,d){return s/d},1),KR=j0("floor");function XR(s){return s&&s.length?Qc(s,Ir,S0):r}function ZR(s,d){return s&&s.length?Qc(s,je(d,2),S0):r}function JR(s){return Gb(s,Ir)}function QR(s,d){return Gb(s,je(d,2))}function eP(s){return s&&s.length?Qc(s,Ir,T0):r}function tP(s,d){return s&&s.length?Qc(s,je(d,2),T0):r}var rP=od(function(s,d){return s*d},1),nP=j0("round"),aP=od(function(s,d){return s-d},0);function iP(s){return s&&s.length?d0(s,Ir):0}function oP(s,d){return s&&s.length?d0(s,je(d,2)):0}return W.after=OO,W.ary=y_,W.assign=mA,W.assignIn=M_,W.assignInWith=yd,W.assignWith=gA,W.at=vA,W.before=__,W.bind=X0,W.bindAll=xR,W.bindKey=w_,W.castArray=zO,W.chain=g_,W.chunk=K7,W.compact=X7,W.concat=Z7,W.cond=SR,W.conforms=CR,W.constant=np,W.countBy=iO,W.create=bA,W.curry=x_,W.curryRight=S_,W.debounce=C_,W.defaults=yA,W.defaultsDeep=_A,W.defer=AO,W.delay=RO,W.difference=J7,W.differenceBy=Q7,W.differenceWith=e9,W.drop=t9,W.dropRight=r9,W.dropRightWhile=n9,W.dropWhile=a9,W.fill=i9,W.filter=sO,W.flatMap=cO,W.flatMapDeep=dO,W.flatMapDepth=fO,W.flatten=f_,W.flattenDeep=o9,W.flattenDepth=s9,W.flip=PO,W.flow=kR,W.flowRight=TR,W.fromPairs=u9,W.functions=TA,W.functionsIn=OA,W.groupBy=hO,W.initial=c9,W.intersection=d9,W.intersectionBy=f9,W.intersectionWith=h9,W.invert=RA,W.invertBy=PA,W.invokeMap=mO,W.iteratee=ap,W.keyBy=gO,W.keys=ar,W.keysIn=Nr,W.map=hd,W.mapKeys=MA,W.mapValues=FA,W.matches=OR,W.matchesProperty=AR,W.memoize=md,W.merge=NA,W.mergeWith=F_,W.method=RR,W.methodOf=PR,W.mixin=ip,W.negate=gd,W.nthArg=MR,W.omit=IA,W.omitBy=LA,W.once=DO,W.orderBy=vO,W.over=FR,W.overArgs=MO,W.overEvery=NR,W.overSome=IR,W.partial=Z0,W.partialRight=E_,W.partition=bO,W.pick=jA,W.pickBy=N_,W.property=H_,W.propertyOf=LR,W.pull=v9,W.pullAll=p_,W.pullAllBy=b9,W.pullAllWith=y9,W.pullAt=_9,W.range=jR,W.rangeRight=$R,W.rearg=FO,W.reject=wO,W.remove=w9,W.rest=NO,W.reverse=G0,W.sampleSize=SO,W.set=zA,W.setWith=BA,W.shuffle=CO,W.slice=x9,W.sortBy=TO,W.sortedUniq=A9,W.sortedUniqBy=R9,W.split=cR,W.spread=IO,W.tail=P9,W.take=D9,W.takeRight=M9,W.takeRightWhile=F9,W.takeWhile=N9,W.tap=X9,W.throttle=LO,W.thru=fd,W.toArray=R_,W.toPairs=I_,W.toPairsIn=L_,W.toPath=qR,W.toPlainObject=D_,W.transform=HA,W.unary=jO,W.union=I9,W.unionBy=L9,W.unionWith=j9,W.uniq=$9,W.uniqBy=z9,W.uniqWith=B9,W.unset=UA,W.unzip=K0,W.unzipWith=m_,W.update=qA,W.updateWith=WA,W.values=Yo,W.valuesIn=VA,W.without=H9,W.words=z_,W.wrap=$O,W.xor=U9,W.xorBy=q9,W.xorWith=W9,W.zip=V9,W.zipObject=Y9,W.zipObjectDeep=G9,W.zipWith=K9,W.entries=I_,W.entriesIn=L_,W.extend=M_,W.extendWith=yd,ip(W,W),W.add=VR,W.attempt=B_,W.camelCase=XA,W.capitalize=j_,W.ceil=YR,W.clamp=YA,W.clone=BO,W.cloneDeep=UO,W.cloneDeepWith=qO,W.cloneWith=HO,W.conformsTo=WO,W.deburr=$_,W.defaultTo=ER,W.divide=GR,W.endsWith=ZA,W.eq=Dn,W.escape=JA,W.escapeRegExp=QA,W.every=oO,W.find=uO,W.findIndex=c_,W.findKey=wA,W.findLast=lO,W.findLastIndex=d_,W.findLastKey=xA,W.floor=KR,W.forEach=v_,W.forEachRight=b_,W.forIn=SA,W.forInRight=CA,W.forOwn=EA,W.forOwnRight=kA,W.get=ep,W.gt=VO,W.gte=YO,W.has=AA,W.hasIn=tp,W.head=h_,W.identity=Ir,W.includes=pO,W.indexOf=l9,W.inRange=GA,W.invoke=DA,W.isArguments=Ki,W.isArray=Ye,W.isArrayBuffer=GO,W.isArrayLike=Fr,W.isArrayLikeObject=Wt,W.isBoolean=KO,W.isBuffer=vi,W.isDate=XO,W.isElement=ZO,W.isEmpty=JO,W.isEqual=QO,W.isEqualWith=eA,W.isError=J0,W.isFinite=tA,W.isFunction=Ra,W.isInteger=k_,W.isLength=vd,W.isMap=T_,W.isMatch=rA,W.isMatchWith=nA,W.isNaN=aA,W.isNative=iA,W.isNil=sA,W.isNull=oA,W.isNumber=O_,W.isObject=zt,W.isObjectLike=Ut,W.isPlainObject=Cu,W.isRegExp=Q0,W.isSafeInteger=uA,W.isSet=A_,W.isString=bd,W.isSymbol=Kr,W.isTypedArray=Vo,W.isUndefined=lA,W.isWeakMap=cA,W.isWeakSet=dA,W.join=p9,W.kebabCase=eR,W.last=bn,W.lastIndexOf=m9,W.lowerCase=tR,W.lowerFirst=rR,W.lt=fA,W.lte=hA,W.max=XR,W.maxBy=ZR,W.mean=JR,W.meanBy=QR,W.min=eP,W.minBy=tP,W.stubArray=sp,W.stubFalse=up,W.stubObject=zR,W.stubString=BR,W.stubTrue=HR,W.multiply=rP,W.nth=g9,W.noConflict=DR,W.noop=op,W.now=pd,W.pad=nR,W.padEnd=aR,W.padStart=iR,W.parseInt=oR,W.random=KA,W.reduce=yO,W.reduceRight=_O,W.repeat=sR,W.replace=uR,W.result=$A,W.round=nP,W.runInContext=Q,W.sample=xO,W.size=EO,W.snakeCase=lR,W.some=kO,W.sortedIndex=S9,W.sortedIndexBy=C9,W.sortedIndexOf=E9,W.sortedLastIndex=k9,W.sortedLastIndexBy=T9,W.sortedLastIndexOf=O9,W.startCase=dR,W.startsWith=fR,W.subtract=aP,W.sum=iP,W.sumBy=oP,W.template=hR,W.times=UR,W.toFinite=Pa,W.toInteger=Ke,W.toLength=P_,W.toLower=pR,W.toNumber=yn,W.toSafeInteger=pA,W.toString=yt,W.toUpper=mR,W.trim=gR,W.trimEnd=vR,W.trimStart=bR,W.truncate=yR,W.unescape=_R,W.uniqueId=WR,W.upperCase=wR,W.upperFirst=rp,W.each=v_,W.eachRight=b_,W.first=h_,ip(W,function(){var s={};return ta(W,function(d,b){kt.call(W.prototype,b)||(s[b]=d)}),s}(),{chain:!1}),W.VERSION=n,hn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){W[s].placeholder=W}),hn(["drop","take"],function(s,d){ot.prototype[s]=function(b){b=b===r?1:er(Ke(b),0);var A=this.__filtered__&&!d?new ot(this):this.clone();return A.__filtered__?A.__takeCount__=br(b,A.__takeCount__):A.__views__.push({size:br(b,U),type:s+(A.__dir__<0?"Right":"")}),A},ot.prototype[s+"Right"]=function(b){return this.reverse()[s](b).reverse()}}),hn(["filter","map","takeWhile"],function(s,d){var b=d+1,A=b==N||b==O;ot.prototype[s]=function($){var V=this.clone();return V.__iteratees__.push({iteratee:je($,3),type:b}),V.__filtered__=V.__filtered__||A,V}}),hn(["head","last"],function(s,d){var b="take"+(d?"Right":"");ot.prototype[s]=function(){return this[b](1).value()[0]}}),hn(["initial","tail"],function(s,d){var b="drop"+(d?"":"Right");ot.prototype[s]=function(){return this.__filtered__?new ot(this):this[b](1)}}),ot.prototype.compact=function(){return this.filter(Ir)},ot.prototype.find=function(s){return this.filter(s).head()},ot.prototype.findLast=function(s){return this.reverse().find(s)},ot.prototype.invokeMap=Qe(function(s,d){return typeof s=="function"?new ot(this):this.map(function(b){return bu(b,s,d)})}),ot.prototype.reject=function(s){return this.filter(gd(je(s)))},ot.prototype.slice=function(s,d){s=Ke(s);var b=this;return b.__filtered__&&(s>0||d<0)?new ot(b):(s<0?b=b.takeRight(-s):s&&(b=b.drop(s)),d!==r&&(d=Ke(d),b=d<0?b.dropRight(-d):b.take(d-s)),b)},ot.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},ot.prototype.toArray=function(){return this.take(U)},ta(ot.prototype,function(s,d){var b=/^(?:filter|find|map|reject)|While$/.test(d),A=/^(?:head|last)$/.test(d),$=W[A?"take"+(d=="last"?"Right":""):d],V=A||/^find/.test(d);$&&(W.prototype[d]=function(){var G=this.__wrapped__,X=A?[1]:arguments,te=G instanceof ot,de=X[0],fe=te||Ye(G),me=function(tt){var lt=$.apply(W,ci([tt],X));return A&&_e?lt[0]:lt};fe&&b&&typeof de=="function"&&de.length!=1&&(te=fe=!1);var _e=this.__chain__,Re=!!this.__actions__.length,$e=V&&!_e,Ze=te&&!Re;if(!V&&fe){G=Ze?G:new ot(this);var ze=s.apply(G,X);return ze.__actions__.push({func:fd,args:[me],thisArg:r}),new mn(ze,_e)}return $e&&Ze?s.apply(this,X):(ze=this.thru(me),$e?A?ze.value()[0]:ze.value():ze)})}),hn(["pop","push","shift","sort","splice","unshift"],function(s){var d=jc[s],b=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",A=/^(?:pop|shift)$/.test(s);W.prototype[s]=function(){var $=arguments;if(A&&!this.__chain__){var V=this.value();return d.apply(Ye(V)?V:[],$)}return this[b](function(G){return d.apply(Ye(G)?G:[],$)})}}),ta(ot.prototype,function(s,d){var b=W[d];if(b){var A=b.name+"";kt.call(Bo,A)||(Bo[A]=[]),Bo[A].push({name:d,func:b})}}),Bo[id(r,T).name]=[{name:"wrapper",func:r}],ot.prototype.clone=_T,ot.prototype.reverse=wT,ot.prototype.value=xT,W.prototype.at=Z9,W.prototype.chain=J9,W.prototype.commit=Q9,W.prototype.next=eO,W.prototype.plant=rO,W.prototype.reverse=nO,W.prototype.toJSON=W.prototype.valueOf=W.prototype.value=aO,W.prototype.first=W.prototype.head,du&&(W.prototype[du]=tO),W},jo=Qk();Bi?((Bi.exports=jo)._=jo,a0._=jo):cr._=jo}).call(AP)}(xl,xl.exports)),xl.exports}var ie=RP(),vp={exports:{}},u2;function PP(){return u2||(u2=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(l){return l&&l.__esModule?l:{default:l}}var i=n(2),o=a(i);r.default=o.default,t.exports=r.default},function(t,r,n){Object.defineProperty(r,"__esModule",{value:!0});var a=Object.assign||function(g){for(var y=1;y<arguments.length;y++){var x=arguments[y];for(var E in x)Object.prototype.hasOwnProperty.call(x,E)&&(g[E]=x[E])}return g};r.default=p;function i(g){return g&&g.__esModule?g:{default:g}}function o(g,y){var x={};for(var E in g)y.indexOf(E)>=0||Object.prototype.hasOwnProperty.call(g,E)&&(x[E]=g[E]);return x}var l=n(3),u=n(4),c=n(5),m=i(c);function p(g){var y=g.activeClassName,x=y===void 0?"":y,E=g.activeIndex,k=E===void 0?-1:E,T=g.activeStyle,w=g.autoEscape,S=g.caseSensitive,f=S===void 0?!1:S,h=g.className,v=g.findChunks,_=g.highlightClassName,R=_===void 0?"":_,C=g.highlightStyle,P=C===void 0?{}:C,M=g.highlightTag,q=M===void 0?"mark":M,L=g.sanitize,N=g.searchWords,j=g.textToHighlight,O=g.unhighlightTag,I=O===void 0?"span":O,z=g.unhighlightClassName,B=z===void 0?"":z,H=g.unhighlightStyle,U=o(g,["activeClassName","activeIndex","activeStyle","autoEscape","caseSensitive","className","findChunks","highlightClassName","highlightStyle","highlightTag","sanitize","searchWords","textToHighlight","unhighlightTag","unhighlightClassName","unhighlightStyle"]),J=(0,l.findAll)({autoEscape:w,caseSensitive:f,findChunks:v,sanitize:L,searchWords:N,textToHighlight:j}),re=q,ne=-1,se="",ce=void 0,le=function(Ee){var Le={};for(var he in Ee)Le[he.toLowerCase()]=Ee[he];return Le},ye=(0,m.default)(le);return(0,u.createElement)("span",a({className:h},U,{children:J.map(function(we,Ee){var Le=j.substr(we.start,we.end-we.start);if(we.highlight){ne++;var he=void 0;typeof R=="object"?f?he=R[Le]:(R=ye(R),he=R[Le.toLowerCase()]):he=R;var qe=ne===+k;se=he+" "+(qe?x:""),ce=qe===!0&&T!=null?Object.assign({},P,T):P;var oe={children:Le,className:se,key:Ee,style:ce};return typeof re!="string"&&(oe.highlightIndex=ne),(0,u.createElement)(re,oe)}else return(0,u.createElement)(I,{children:Le,className:B,key:Ee,style:H})})}))}t.exports=r.default},function(t,r){t.exports=function(n){var a={};function i(o){if(a[o])return a[o].exports;var l=a[o]={exports:{},id:o,loaded:!1};return n[o].call(l.exports,l,l.exports,i),l.loaded=!0,l.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 o=i(2);Object.defineProperty(a,"combineChunks",{enumerable:!0,get:function(){return o.combineChunks}}),Object.defineProperty(a,"fillInChunks",{enumerable:!0,get:function(){return o.fillInChunks}}),Object.defineProperty(a,"findAll",{enumerable:!0,get:function(){return o.findAll}}),Object.defineProperty(a,"findChunks",{enumerable:!0,get:function(){return o.findChunks}})},function(n,a){Object.defineProperty(a,"__esModule",{value:!0}),a.findAll=function(p){var g=p.autoEscape,y=p.caseSensitive,x=y===void 0?!1:y,E=p.findChunks,k=E===void 0?o:E,T=p.sanitize,w=p.searchWords,S=p.textToHighlight;return l({chunksToHighlight:i({chunks:k({autoEscape:g,caseSensitive:x,sanitize:T,searchWords:w,textToHighlight:S})}),totalLength:S?S.length:0})};var i=a.combineChunks=function(p){var g=p.chunks;return g=g.sort(function(y,x){return y.start-x.start}).reduce(function(y,x){if(y.length===0)return[x];var E=y.pop();if(x.start<=E.end){var k=Math.max(E.end,x.end);y.push({start:E.start,end:k})}else y.push(E,x);return y},[]),g},o=function(p){var g=p.autoEscape,y=p.caseSensitive,x=p.sanitize,E=x===void 0?u:x,k=p.searchWords,T=p.textToHighlight;return T=E(T),k.filter(function(w){return w}).reduce(function(w,S){S=E(S),g&&(S=c(S));for(var f=new RegExp(S,y?"g":"gi"),h=void 0;h=f.exec(T);){var v=h.index,_=f.lastIndex;_>v&&w.push({start:v,end:_}),h.index==f.lastIndex&&f.lastIndex++}return w},[])};a.findChunks=o;var l=a.fillInChunks=function(p){var g=p.chunksToHighlight,y=p.totalLength,x=[],E=function(w,S,f){S-w>0&&x.push({start:w,end:S,highlight:f})};if(g.length===0)E(0,y,!1);else{var k=0;g.forEach(function(T){E(k,T.start,!1),E(T.start,T.end,!0),k=T.end}),E(k,y,!1)}return x};function u(m){return m}function c(m){return m.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}}])},function(t,r){t.exports=F},function(t,r){var n=function(o,l){return o===l};function a(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:n,l=void 0,u=[],c=void 0,m=!1,p=function(x,E){return o(x,u[E])},g=function(){for(var x=arguments.length,E=Array(x),k=0;k<x;k++)E[k]=arguments[k];return m&&l===this&&E.length===u.length&&E.every(p)||(m=!0,l=this,u=E,c=i.apply(this,E)),c};return g}t.exports=a}])}(vp)),vp.exports}var DP=PP();const eh=Rr(DP),MP="_mosaic_1jpg5_1",FP={mosaic:MP},pa=e=>D.jsx("span",{className:FP.mosaic,style:{display:e.inLine?"inline-block":"block"}}),ps=class ps{readPermission(t){return!["1999-09-09 09:09:09",ps.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===ps.mosaic}mosaicBlank(t){return t==ps.mosaic?"":t||""}};Tt(ps,"mosaic","~#~");let Ig=ps;class NP extends Ig{constructor(){super(...arguments);Tt(this,"mosaic","~#~")}displayData(r,n=!0){return this.readPermission(r)?this.handlingError(r):D.jsx(pa,{inLine:n})}renderIsMosaic(r,n,a=!0){return this.readPermission(r)?n:D.jsx(pa,{inLine:a})}}const Sn=new NP,ho=e=>{var o;const{Option:t}=Z.Select,r={...e},[n,a]=F.useState(""),i=(l,u)=>D.jsx(eh,{highlightStyle:{color:"#F5325C",backgroundColor:"rgb(0, 0, 0, 0)",padding:"0"},searchWords:[u?u.toString():""],autoEscape:!0,textToHighlight:l?l.toString():""});return r.loading?D.jsx(Z.Select,{value:"",open:!1,loading:!0}):D.jsx(Z.Select,{style:{...r.style,width:"100%"},className:Te(gp.main,r.className,{rrrrr:!0,[gp.pane]:e.pane}),...ie.omit(r,["options"]),onSearch:l=>{a(l)},filterOption:(l,u)=>u.label&&u.label.indexOf(l)>=0,dropdownClassName:gp.plm_select_dropdown,showSearch:!0,allowClear:e.allowClear==null?!0:e.allowClear,optionLabelProp:"label",children:(o=e.options)==null?void 0:o.map(l=>Sn.isMosaic(l.label)?D.jsx(t,{disabled:!0,children:D.jsx(pa,{})}):F.createElement(t,{...l,value:l.value,disabled:l.disabled,key:l.value,label:l.label},D.jsx("div",{title:l.label,style:{width:"100%",overflow:"hidden",textOverflow:"ellipsis"},children:i(l.label,n)})))})},IP="_AliIconFont_14ovi_1",LP="_iconText_14ovi_2",jP="_disabled_14ovi_9",$P="_placementColor_14ovi_28",zP="_classNameDisabled_14ovi_33",BP="_placementIcon_14ovi_37",HP="_btn_convider_14ovi_40",UP="_btn_icon_14ovi_40",qP="_omitPoint_14ovi_57",Lr={AliIconFont:IP,iconText:LP,disabled:jP,placementColor:$P,classNameDisabled:zP,placementIcon:BP,btn_convider:HP,btn_icon:UP,omitPoint:qP};var Z1=F.createContext({});function Mt(e){"@babel/helpers - typeof";return Mt=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},Mt(e)}function WP(e,t){if(Mt(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Mt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function d8(e){var t=WP(e,"string");return Mt(t)=="symbol"?t:t+""}function Ae(e,t,r){return(t=d8(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l2(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 pe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?l2(Object(r),!0).forEach(function(n){Ae(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function VP(e){if(Array.isArray(e))return e}function YP(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,l=[],u=!0,c=!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)&&(l.push(n.value),l.length!==t);u=!0);}catch(m){c=!0,a=m}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw a}}return l}}function Lg(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 f8(e,t){if(e){if(typeof e=="string")return Lg(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)?Lg(e,t):void 0}}function GP(){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 Ge(e,t){return VP(e)||YP(e,t)||f8(e,t)||GP()}function KP(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 Ii(e,t){if(e==null)return{};var r,n,a=KP(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 Cn(e,t){XP(e)&&(e="100%");var r=ZP(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 XP(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function ZP(e){return typeof e=="string"&&e.indexOf("%")!==-1}function JP(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function wd(e){return e<=1?"".concat(Number(e)*100,"%"):e}function bp(e){return e.length===1?"0"+e:String(e)}function QP(e,t,r){return{r:Cn(e,255)*255,g:Cn(t,255)*255,b:Cn(r,255)*255}}function yp(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 eD(e,t,r){var n,a,i;if(e=Cn(e,360),t=Cn(t,100),r=Cn(r,100),t===0)a=r,i=r,n=r;else{var o=r<.5?r*(1+t):r+t-r*t,l=2*r-o;n=yp(l,o,e+1/3),a=yp(l,o,e),i=yp(l,o,e-1/3)}return{r:n*255,g:a*255,b:i*255}}function tD(e,t,r){e=Cn(e,255),t=Cn(t,255),r=Cn(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),i=0,o=n,l=n-a,u=n===0?0:l/n;if(n===a)i=0;else{switch(n){case e:i=(t-r)/l+(t<r?6:0);break;case t:i=(r-e)/l+2;break;case r:i=(e-t)/l+4;break}i/=6}return{h:i,s:u,v:o}}function rD(e,t,r){e=Cn(e,360)*6,t=Cn(t,100),r=Cn(r,100);var n=Math.floor(e),a=e-n,i=r*(1-t),o=r*(1-a*t),l=r*(1-(1-a)*t),u=n%6,c=[r,o,i,i,l,r][u],m=[l,r,r,o,i,i][u],p=[i,i,l,r,r,o][u];return{r:c*255,g:m*255,b:p*255}}function nD(e,t,r,n){var a=[bp(Math.round(e).toString(16)),bp(Math.round(t).toString(16)),bp(Math.round(r).toString(16))];return a.join("")}function c2(e){return tn(e)/255}function tn(e){return parseInt(e,16)}var d2={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 Fu(e){var t={r:0,g:0,b:0},r=1,n=null,a=null,i=null,o=!1,l=!1;return typeof e=="string"&&(e=oD(e)),typeof e=="object"&&(Ma(e.r)&&Ma(e.g)&&Ma(e.b)?(t=QP(e.r,e.g,e.b),o=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Ma(e.h)&&Ma(e.s)&&Ma(e.v)?(n=wd(e.s),a=wd(e.v),t=rD(e.h,n,a),o=!0,l="hsv"):Ma(e.h)&&Ma(e.s)&&Ma(e.l)&&(n=wd(e.s),i=wd(e.l),t=eD(e.h,n,i),o=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=JP(r),{ok:o,format:e.format||l,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 aD="[-\\+]?\\d+%?",iD="[-\\+]?\\d*\\.\\d+%?",Ti="(?:".concat(iD,")|(?:").concat(aD,")"),_p="[\\s|\\(]+(".concat(Ti,")[,|\\s]+(").concat(Ti,")[,|\\s]+(").concat(Ti,")\\s*\\)?"),wp="[\\s|\\(]+(".concat(Ti,")[,|\\s]+(").concat(Ti,")[,|\\s]+(").concat(Ti,")[,|\\s]+(").concat(Ti,")\\s*\\)?"),Nn={CSS_UNIT:new RegExp(Ti),rgb:new RegExp("rgb"+_p),rgba:new RegExp("rgba"+wp),hsl:new RegExp("hsl"+_p),hsla:new RegExp("hsla"+wp),hsv:new RegExp("hsv"+_p),hsva:new RegExp("hsva"+wp),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 oD(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(d2[e])e=d2[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=Nn.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=Nn.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=Nn.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=Nn.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=Nn.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=Nn.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=Nn.hex8.exec(e),r?{r:tn(r[1]),g:tn(r[2]),b:tn(r[3]),a:c2(r[4]),format:t?"name":"hex8"}:(r=Nn.hex6.exec(e),r?{r:tn(r[1]),g:tn(r[2]),b:tn(r[3]),format:t?"name":"hex"}:(r=Nn.hex4.exec(e),r?{r:tn(r[1]+r[1]),g:tn(r[2]+r[2]),b:tn(r[3]+r[3]),a:c2(r[4]+r[4]),format:t?"name":"hex8"}:(r=Nn.hex3.exec(e),r?{r:tn(r[1]+r[1]),g:tn(r[2]+r[2]),b:tn(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function Ma(e){return!!Nn.CSS_UNIT.exec(String(e))}var xd=2,f2=.16,sD=.05,uD=.05,lD=.15,h8=5,p8=4,cD=[{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 h2(e){var t=e.r,r=e.g,n=e.b,a=tD(t,r,n);return{h:a.h*360,s:a.s,v:a.v}}function Sd(e){var t=e.r,r=e.g,n=e.b;return"#".concat(nD(t,r,n))}function dD(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 p2(e,t,r){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-xd*t:Math.round(e.h)+xd*t:n=r?Math.round(e.h)+xd*t:Math.round(e.h)-xd*t,n<0?n+=360:n>=360&&(n-=360),n}function m2(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-f2*t:t===p8?n=e.s+f2:n=e.s+sD*t,n>1&&(n=1),r&&t===h8&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2))}function g2(e,t,r){var n;return r?n=e.v+uD*t:n=e.v-lD*t,n>1&&(n=1),Number(n.toFixed(2))}function jg(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=Fu(e),a=h8;a>0;a-=1){var i=h2(n),o=Sd(Fu({h:p2(i,a,!0),s:m2(i,a,!0),v:g2(i,a,!0)}));r.push(o)}r.push(Sd(n));for(var l=1;l<=p8;l+=1){var u=h2(n),c=Sd(Fu({h:p2(u,l),s:m2(u,l),v:g2(u,l)}));r.push(c)}return t.theme==="dark"?cD.map(function(m){var p=m.index,g=m.opacity,y=Sd(dD(Fu(t.backgroundColor||"#141414"),Fu(r[p]),g*100));return y}):r}var xp={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"},Sp={},Cp={};Object.keys(xp).forEach(function(e){Sp[e]=jg(xp[e]),Sp[e].primary=Sp[e][5],Cp[e]=jg(xp[e],{theme:"dark",backgroundColor:"#141414"}),Cp[e].primary=Cp[e][5]});var $g={},J1=[],fD=function(t){J1.push(t)};function Q1(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=J1.reduce(function(n,a){return a(n??"","warning")},t);r&&console.error("Warning: ".concat(r))}}function hD(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=J1.reduce(function(n,a){return a(n??"","note")},t);r&&console.warn("Note: ".concat(r))}}function pD(){$g={}}function m8(e,t,r){!t&&!$g[r]&&(e(!1,r),$g[r]=!0)}function ko(e,t){m8(Q1,e,t)}function mD(e,t){m8(hD,e,t)}ko.preMessage=fD;ko.resetWarned=pD;ko.noteOnce=mD;function ji(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function gD(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 v2="data-rc-order",b2="data-rc-priority",vD="rc-util-key",zg=new Map;function g8(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):vD}function th(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function bD(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function ev(e){return Array.from((zg.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function v8(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!ji())return null;var r=t.csp,n=t.prepend,a=t.priority,i=a===void 0?0:a,o=bD(n),l=o==="prependQueue",u=document.createElement("style");u.setAttribute(v2,o),l&&i&&u.setAttribute(b2,"".concat(i)),r!=null&&r.nonce&&(u.nonce=r==null?void 0:r.nonce),u.innerHTML=e;var c=th(t),m=c.firstChild;if(n){if(l){var p=(t.styles||ev(c)).filter(function(g){if(!["prepend","prependQueue"].includes(g.getAttribute(v2)))return!1;var y=Number(g.getAttribute(b2)||0);return i>=y});if(p.length)return c.insertBefore(u,p[p.length-1].nextSibling),u}c.insertBefore(u,m)}else c.appendChild(u);return u}function b8(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=th(t);return(t.styles||ev(r)).find(function(n){return n.getAttribute(g8(t))===e})}function y8(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=b8(e,t);if(r){var n=th(t);n.removeChild(r)}}function yD(e,t){var r=zg.get(e);if(!r||!gD(document,r)){var n=v8("",t),a=n.parentNode;zg.set(e,a),e.removeChild(n)}}function bo(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=th(r),a=ev(n),i=pe(pe({},r),{},{styles:a});yD(n,i);var o=b8(t,i);if(o){var l,u;if((l=i.csp)!==null&&l!==void 0&&l.nonce&&o.nonce!==((u=i.csp)===null||u===void 0?void 0:u.nonce)){var c;o.nonce=(c=i.csp)===null||c===void 0?void 0:c.nonce}return o.innerHTML!==e&&(o.innerHTML=e),o}var m=v8(e,i);return m.setAttribute(g8(i),t),m}var Ep,y2;function _D(){if(y2)return Ep;y2=1;var e=typeof Un=="object"&&Un&&Un.Object===Object&&Un;return Ep=e,Ep}var kp,_2;function _8(){if(_2)return kp;_2=1;var e=_D(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return kp=r,kp}var Tp,w2;function tv(){if(w2)return Tp;w2=1;var e=_8(),t=e.Symbol;return Tp=t,Tp}var Op,x2;function wD(){if(x2)return Op;x2=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 Op=e,Op}var Ap,S2;function xD(){if(S2)return Ap;S2=1;var e=Array.isArray;return Ap=e,Ap}var Rp,C2;function SD(){if(C2)return Rp;C2=1;var e=tv(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,a=e?e.toStringTag:void 0;function i(o){var l=r.call(o,a),u=o[a];try{o[a]=void 0;var c=!0}catch{}var m=n.call(o);return c&&(l?o[a]=u:delete o[a]),m}return Rp=i,Rp}var Pp,E2;function CD(){if(E2)return Pp;E2=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return Pp=r,Pp}var Dp,k2;function w8(){if(k2)return Dp;k2=1;var e=tv(),t=SD(),r=CD(),n="[object Null]",a="[object Undefined]",i=e?e.toStringTag:void 0;function o(l){return l==null?l===void 0?a:n:i&&i in Object(l)?t(l):r(l)}return Dp=o,Dp}var Mp,T2;function x8(){if(T2)return Mp;T2=1;function e(t){return t!=null&&typeof t=="object"}return Mp=e,Mp}var Fp,O2;function S8(){if(O2)return Fp;O2=1;var e=w8(),t=x8(),r="[object Symbol]";function n(a){return typeof a=="symbol"||t(a)&&e(a)==r}return Fp=n,Fp}var Np,A2;function ED(){if(A2)return Np;A2=1;var e=tv(),t=wD(),r=xD(),n=S8(),a=e?e.prototype:void 0,i=a?a.toString:void 0;function o(l){if(typeof l=="string")return l;if(r(l))return t(l,o)+"";if(n(l))return i?i.call(l):"";var u=l+"";return u=="0"&&1/l==-1/0?"-0":u}return Np=o,Np}var Ip,R2;function rh(){if(R2)return Ip;R2=1;var e=ED();function t(r){return r==null?"":e(r)}return Ip=t,Ip}var Lp,P2;function kD(){if(P2)return Lp;P2=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 o=Array(i);++a<i;)o[a]=t[a+r];return o}return Lp=e,Lp}var jp,D2;function TD(){if(D2)return jp;D2=1;var e=kD();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 jp=t,jp}var $p,M2;function C8(){if(M2)return $p;M2=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",a=t+r+n,i="\\ufe0e\\ufe0f",o="\\u200d",l=RegExp("["+o+e+a+i+"]");function u(c){return l.test(c)}return $p=u,$p}var zp,F2;function OD(){if(F2)return zp;F2=1;function e(t){return t.split("")}return zp=e,zp}var Bp,N2;function AD(){if(N2)return Bp;N2=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",a=t+r+n,i="\\ufe0e\\ufe0f",o="["+e+"]",l="["+a+"]",u="\\ud83c[\\udffb-\\udfff]",c="(?:"+l+"|"+u+")",m="[^"+e+"]",p="(?:\\ud83c[\\udde6-\\uddff]){2}",g="[\\ud800-\\udbff][\\udc00-\\udfff]",y="\\u200d",x=c+"?",E="["+i+"]?",k="(?:"+y+"(?:"+[m,p,g].join("|")+")"+E+x+")*",T=E+x+k,w="(?:"+[m+l+"?",l,p,g,o].join("|")+")",S=RegExp(u+"(?="+u+")|"+w+T,"g");function f(h){return h.match(S)||[]}return Bp=f,Bp}var Hp,I2;function RD(){if(I2)return Hp;I2=1;var e=OD(),t=C8(),r=AD();function n(a){return t(a)?r(a):e(a)}return Hp=n,Hp}var Up,L2;function PD(){if(L2)return Up;L2=1;var e=TD(),t=C8(),r=RD(),n=rh();function a(i){return function(o){o=n(o);var l=t(o)?r(o):void 0,u=l?l[0]:o.charAt(0),c=l?e(l,1).join(""):o.slice(1);return u[i]()+c}}return Up=a,Up}var qp,j2;function DD(){if(j2)return qp;j2=1;var e=PD(),t=e("toUpperCase");return qp=t,qp}var Wp,$2;function MD(){if($2)return Wp;$2=1;var e=rh(),t=DD();function r(n){return t(e(n).toLowerCase())}return Wp=r,Wp}var Vp,z2;function FD(){if(z2)return Vp;z2=1;function e(t,r,n,a){var i=-1,o=t==null?0:t.length;for(a&&o&&(n=t[++i]);++i<o;)n=r(n,t[i],i,t);return n}return Vp=e,Vp}var Yp,B2;function ND(){if(B2)return Yp;B2=1;function e(t){return function(r){return t==null?void 0:t[r]}}return Yp=e,Yp}var Gp,H2;function ID(){if(H2)return Gp;H2=1;var e=ND(),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 Gp=r,Gp}var Kp,U2;function LD(){if(U2)return Kp;U2=1;var e=ID(),t=rh(),r=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,n="\\u0300-\\u036f",a="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",o=n+a+i,l="["+o+"]",u=RegExp(l,"g");function c(m){return m=t(m),m&&m.replace(r,e).replace(u,"")}return Kp=c,Kp}var Xp,q2;function jD(){if(q2)return Xp;q2=1;var e=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function t(r){return r.match(e)||[]}return Xp=t,Xp}var Zp,W2;function $D(){if(W2)return Zp;W2=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 Zp=t,Zp}var Jp,V2;function zD(){if(V2)return Jp;V2=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",a=t+r+n,i="\\u2700-\\u27bf",o="a-z\\xdf-\\xf6\\xf8-\\xff",l="\\xac\\xb1\\xd7\\xf7",u="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",c="\\u2000-\\u206f",m=" \\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",p="A-Z\\xc0-\\xd6\\xd8-\\xde",g="\\ufe0e\\ufe0f",y=l+u+c+m,x="['’]",E="["+y+"]",k="["+a+"]",T="\\d+",w="["+i+"]",S="["+o+"]",f="[^"+e+y+T+i+o+p+"]",h="\\ud83c[\\udffb-\\udfff]",v="(?:"+k+"|"+h+")",_="[^"+e+"]",R="(?:\\ud83c[\\udde6-\\uddff]){2}",C="[\\ud800-\\udbff][\\udc00-\\udfff]",P="["+p+"]",M="\\u200d",q="(?:"+S+"|"+f+")",L="(?:"+P+"|"+f+")",N="(?:"+x+"(?:d|ll|m|re|s|t|ve))?",j="(?:"+x+"(?:D|LL|M|RE|S|T|VE))?",O=v+"?",I="["+g+"]?",z="(?:"+M+"(?:"+[_,R,C].join("|")+")"+I+O+")*",B="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",H="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",U=I+O+z,J="(?:"+[w,R,C].join("|")+")"+U,re=RegExp([P+"?"+S+"+"+N+"(?="+[E,P,"$"].join("|")+")",L+"+"+j+"(?="+[E,P+q,"$"].join("|")+")",P+"?"+q+"+"+N,P+"+"+j,H,B,T,J].join("|"),"g");function ne(se){return se.match(re)||[]}return Jp=ne,Jp}var Qp,Y2;function BD(){if(Y2)return Qp;Y2=1;var e=jD(),t=$D(),r=rh(),n=zD();function a(i,o,l){return i=r(i),o=l?void 0:o,o===void 0?t(i)?n(i):e(i):i.match(o)||[]}return Qp=a,Qp}var em,G2;function HD(){if(G2)return em;G2=1;var e=FD(),t=LD(),r=BD(),n="['’]",a=RegExp(n,"g");function i(o){return function(l){return e(r(t(l).replace(a,"")),o,"")}}return em=i,em}var tm,K2;function UD(){if(K2)return tm;K2=1;var e=MD(),t=HD(),r=t(function(n,a,i){return a=a.toLowerCase(),n+(i?e(a):a)});return tm=r,tm}var qD=UD();const WD=Rr(qD);function Bg(e,t){ko(e,"[@ant-design/icons] ".concat(t))}function X2(e){return Mt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Mt(e.icon)==="object"||typeof e.icon=="function")}function Z2(){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[WD(r)]=n}return t},{})}function Hg(e,t,r){return r?F.createElement(e.tag,pe(pe({key:t},Z2(e.attrs)),r),(e.children||[]).map(function(n,a){return Hg(n,"".concat(t,"-").concat(e.tag,"-").concat(a))})):F.createElement(e.tag,pe({key:t},Z2(e.attrs)),(e.children||[]).map(function(n,a){return Hg(n,"".concat(t,"-").concat(e.tag,"-").concat(a))}))}function E8(e){return jg(e)[0]}function k8(e){return e?Array.isArray(e)?e:[e]:[]}var VD={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},YD=`
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
- `,T8=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:YD,r=F.useContext(Z1),n=r.csp;F.useEffect(function(){bo(t,"@ant-design-icons",{prepend:!0,csp:n})},[])},GD=["icon","className","onClick","style","primaryColor","secondaryColor"],Pl={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function KD(e){var t=e.primaryColor,r=e.secondaryColor;Pl.primaryColor=t,Pl.secondaryColor=r||E8(t),Pl.calculated=!!r}function XD(){return pe({},Pl)}var Is=function(t){var r=t.icon,n=t.className,a=t.onClick,i=t.style,o=t.primaryColor,l=t.secondaryColor,u=Ii(t,GD),c=Pl;if(o&&(c={primaryColor:o,secondaryColor:l||E8(o)}),T8(),Bg(X2(r),"icon should be icon definiton, but got ".concat(r)),!X2(r))return null;var m=r;return m&&typeof m.icon=="function"&&(m=pe(pe({},m),{},{icon:m.icon(c.primaryColor,c.secondaryColor)})),Hg(m.icon,"svg-".concat(m.name),pe({className:n,onClick:a,style:i,"data-icon":m.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},u))};Is.displayName="IconReact";Is.getTwoToneColors=XD;Is.setTwoToneColors=KD;function O8(e){var t=k8(e),r=Ge(t,2),n=r[0],a=r[1];return Is.setTwoToneColors({primaryColor:n,secondaryColor:a})}function ZD(){var e=Is.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var JD=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];O8("#1890ff");var vr=ee.forwardRef(function(e,t){var r=e.className,n=e.icon,a=e.spin,i=e.rotate,o=e.tabIndex,l=e.onClick,u=e.twoToneColor,c=Ii(e,JD),m=ee.useContext(Z1),p=m.prefixCls,g=p===void 0?"anticon":p,y=m.rootClassName,x=Te(y,g,Ae(Ae({},"".concat(g,"-").concat(n.name),!!n.name),"".concat(g,"-spin"),!!a||n.name==="loading"),r),E=o;E===void 0&&l&&(E=-1);var k=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,T=k8(u),w=Ge(T,2),S=w[0],f=w[1];return ee.createElement("span",pe(pe({role:"img","aria-label":n.name},c),{},{ref:t,tabIndex:E,onClick:l,className:x}),ee.createElement(Is,{icon:n,primaryColor:S,secondaryColor:f,style:k}))});vr.displayName="AntdIcon";vr.getTwoToneColor=ZD;vr.setTwoToneColor=O8;var QD={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"},eM={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"},tM={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"},rM={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"},nM=function(t,r){return ee.createElement(vr,pe(pe({},t),{},{ref:r,icon:rM}))},A8=ee.forwardRef(nM);process.env.NODE_ENV!=="production"&&(A8.displayName="CaretDownOutlined");var aM={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"},iM=function(t,r){return ee.createElement(vr,pe(pe({},t),{},{ref:r,icon:aM}))},R8=ee.forwardRef(iM);process.env.NODE_ENV!=="production"&&(R8.displayName="CaretRightOutlined");var oM={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"},sM=function(t,r){return ee.createElement(vr,pe(pe({},t),{},{ref:r,icon:oM}))},P8=ee.forwardRef(sM);process.env.NODE_ENV!=="production"&&(P8.displayName="CheckOutlined");var uM={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"},lM={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"},D8={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"},cM=function(t,r){return ee.createElement(vr,pe(pe({},t),{},{ref:r,icon:D8}))},M8=ee.forwardRef(cM);process.env.NODE_ENV!=="production"&&(M8.displayName="CloseOutlined");var dM={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"},fM=function(t,r){return ee.createElement(vr,pe(pe({},t),{},{ref:r,icon:dM}))},F8=ee.forwardRef(fM);process.env.NODE_ENV!=="production"&&(F8.displayName="CloudUploadOutlined");var hM={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"},pM=function(t,r){return ee.createElement(vr,pe(pe({},t),{},{ref:r,icon:hM}))},N8=ee.forwardRef(pM);process.env.NODE_ENV!=="production"&&(N8.displayName="DownOutlined");var mM={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"},gM={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"},vM={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"},bM={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"},yM={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"},_M={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"},wM={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"},xM={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"},SM={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"},I8={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"},CM=function(t,r){return ee.createElement(vr,pe(pe({},t),{},{ref:r,icon:I8}))},L8=ee.forwardRef(CM);process.env.NODE_ENV!=="production"&&(L8.displayName="LeftOutlined");var EM={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"},kM=function(t,r){return ee.createElement(vr,pe(pe({},t),{},{ref:r,icon:EM}))},cc=ee.forwardRef(kM);process.env.NODE_ENV!=="production"&&(cc.displayName="LoadingOutlined");var TM={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"},OM=function(t,r){return ee.createElement(vr,pe(pe({},t),{},{ref:r,icon:TM}))},j8=ee.forwardRef(OM);process.env.NODE_ENV!=="production"&&(j8.displayName="MinusOutlined");var AM={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"},RM=function(t,r){return ee.createElement(vr,pe(pe({},t),{},{ref:r,icon:AM}))},$8=ee.forwardRef(RM);process.env.NODE_ENV!=="production"&&($8.displayName="PaperClipOutlined");var z8={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"},PM=function(t,r){return ee.createElement(vr,pe(pe({},t),{},{ref:r,icon:z8}))},rv=ee.forwardRef(PM);process.env.NODE_ENV!=="production"&&(rv.displayName="PlusOutlined");var B8={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"},DM=function(t,r){return ee.createElement(vr,pe(pe({},t),{},{ref:r,icon:B8}))},H8=ee.forwardRef(DM);process.env.NODE_ENV!=="production"&&(H8.displayName="RightOutlined");var MM={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"},FM=function(t,r){return ee.createElement(vr,pe(pe({},t),{},{ref:r,icon:MM}))},gs=ee.forwardRef(FM);process.env.NODE_ENV!=="production"&&(gs.displayName="SearchOutlined");var NM={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"},IM=function(t,r){return ee.createElement(vr,pe(pe({},t),{},{ref:r,icon:NM}))},U8=ee.forwardRef(IM);process.env.NODE_ENV!=="production"&&(U8.displayName="UpOutlined");var LM=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],q8=ee.forwardRef(function(e,t){var r=e.className,n=e.component,a=e.viewBox,i=e.spin,o=e.rotate,l=e.tabIndex,u=e.onClick,c=e.children,m=Ii(e,LM);Bg(!!(n||c),"Should have `component` prop or `children`."),T8();var p=ee.useContext(Z1),g=p.prefixCls,y=g===void 0?"anticon":g,x=p.rootClassName,E=Te(x,y,r),k=Te(Ae({},"".concat(y,"-spin"),!!i)),T=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,w=pe(pe({},VD),{},{className:k,style:T,viewBox:a});a||delete w.viewBox;var S=function(){return n?ee.createElement(n,pe({},w),c):c?(Bg(!!a||ee.Children.count(c)===1&&ee.isValidElement(c)&&ee.Children.only(c).type==="use","Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),ee.createElement("svg",pe(pe({},w),{},{viewBox:a}),c)):null},f=l;return f===void 0&&u&&(f=-1),ee.createElement("span",pe(pe({role:"img"},m),{},{ref:t,tabIndex:f,onClick:u,className:E}),S())});q8.displayName="AntdIcon";var jM=["type","children"],W8=new Set;function $M(e){return!!(typeof e=="string"&&e.length&&!W8.has(e))}function Rf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=e[t];if($M(r)){var n=document.createElement("script");n.setAttribute("src",r),n.setAttribute("data-namespace",r),e.length>t+1&&(n.onload=function(){Rf(e,t+1)},n.onerror=function(){Rf(e,t+1)}),W8.add(r),document.body.appendChild(n)}}function V8(){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)?Rf(t.reverse()):Rf([t]));var a=ee.forwardRef(function(i,o){var l=i.type,u=i.children,c=Ii(i,jM),m=null;return i.type&&(m=ee.createElement("use",{xlinkHref:"#".concat(l)})),u&&(m=u),ee.createElement(q8,pe(pe(pe({},n),c),{},{ref:o}),m)});return a.displayName="Iconfont",a}const zM=(e="/font/iconfont.js")=>V8({scriptUrl:e}),Ue=({...e})=>{var u;const t=F.useContext(lc),r=V8({scriptUrl:t==null?void 0:t.iconScriptUrl}),n=F.useMemo(()=>e.languageApicode,[]),a=F.useMemo(()=>n&&["English"].includes(n)?"10px":"12px",[n]),i=F.useMemo(()=>n&&["English"].includes(n)?"12px":"14px",[n]),o=F.useMemo(()=>typeof e.children=="string"&&/[ \t\n\r]/.test(e.children)?"2":"1",[e.children]),l=e.placement?D.jsxs("div",{className:Te(e.className,Lr.placementColor,e.disabled&&Lr.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:[D.jsx(Z.Badge,{size:"small",count:e.number&&e.number>9?D.jsx("div",{className:Lr.omitPoint,children:"..."}):e.number,children:D.jsx(r,{className:Te(Lr.AliIconFont,{[Lr.disabled]:e.disabled,disabled:e.disabled},e.placement!="bottom"&&Lr.placementIcon),style:{...ie.merge({fontSize:"16px",color:`${e.color}`||"",cursor:e.onClick||e.button||e.placement?"pointer":"default"},e.style)},onClick:c=>{e.disabled||e.onClick&&e.onClick(c)},type:t!=null&&t.isOnlyPrefixIcon?`icon-${e.type}`:e.isBackend?`icon-${e.type}`:`icon-front-${e.type}`})}),e.placement=="bottom"?D.jsx("div",{style:{...ie.merge({textAlign:"center",color:e.color?`${e.color}`:"#fff",fontSize:"12px",marginTop:e.marginTop?`${e.marginTop}`:"5px"})},children:D.jsx("span",{className:Te(Lr.iconText,{[Lr.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:o},children:e.children})}):D.jsx("span",{className:Te(Lr.iconText,{[Lr.disabled]:e.disabled,disabled:e.disabled}),children:e.children})]}):D.jsx("div",{children:D.jsx(r,{className:Te(Lr.AliIconFont,{[Lr.disabled]:e.disabled,disabled:e.disabled},e.className),style:{...ie.merge({fontSize:"16px",color:`${e.color}`||"",cursor:e.onClick||e.button?"pointer":"default"},e.style)},onClick:c=>{e.disabled||e.onClick&&e.onClick(c)},type:t!=null&&t.isOnlyPrefixIcon?`icon-${e.type}`:e.isBackend?`icon-${e.type}`:`icon-front-${e.type}`})});return e.tooltip?D.jsx(Z.Tooltip,{...e.tooltip,children:l}):e.popover?D.jsx(Z.Popover,{placement:"left",trigger:"click",...e.popover,children:l}):e.button?D.jsx("span",{className:Lr.btn_convider,children:D.jsx(Z.Button,{className:Lr.btn_icon,icon:l,children:e.children})}):l},BM="_badge_16esh_1",HM={badge:BM};var Sl=(e=>(e.Healthy="Healthy",e.Warning="Warning",e.Delay="Delay",e.Failure="Failure",e))(Sl||{});const Ug=e=>D.jsx(Z.Badge,{...e,className:`${HM.badge} ${(e==null?void 0:e.className)??""}`}),J2={[Sl.Delay]:"#eb5d52",[Sl.Healthy]:"#1b8413",LightGreen:"#02CCCC",[Sl.Warning]:"#fca400",[Sl.Failure]:"#d0d0d0",blue:"#1371c1",Pink:"#f9a5c6",BlackBlue:"#2B4C7E",Gray:"#B0B1B5"},ms=class ms{constructor(){Tt(this,"cached",{});if(ms.instance)return ms.instance;ms.instance=this}setCached(t,r){return this.cached[t]=r,r}};Tt(ms,"instance");let qg=ms;const UM=({healthStatus:e,healthList:t,healthId:r})=>{if(e)return D.jsx(Ug,{color:J2[e]});if(t&&r){const n=new qg,a=n.cached[r]||n.setCached(r,t.find(i=>(i.id||i.value)==r));return a?D.jsx(Ug,{color:J2[a.apicode]}):null}else return D.jsx(D.Fragment,{})},Mi=e=>Sn.isMosaic(e.value)?D.jsx(pa,{}):ie.isNil(e.value)?D.jsx(D.Fragment,{}):typeof e.value!="string"&&typeof e.value!="number"?e.value?e.value:D.jsx(D.Fragment,{}):D.jsx(eh,{highlightStyle:{color:"#F5325C",backgroundColor:"rgb(0, 0, 0, 0)",padding:0},searchWords:e.highlight||[],autoEscape:!0,textToHighlight:String(e.value)}),Y8=e=>{const t=F.useRef(null);return F.useEffect(()=>{e.isFocus&&t.current&&t.current.focus()},[e.isFocus]),D.jsx(Z.Input,{title:e.value==="~#~"?"":e.value,ref:t,...e})},Ls=({loadingSize:e=32,...t})=>{const r=D.jsx(cc,{style:{fontSize:e},spin:!0});return t.children?D.jsx(Z.Spin,{...t,indicator:r,children:t.children}):D.jsx("div",{style:{height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:D.jsx(Z.Spin,{spinning:!0,indicator:r})})},qM=e=>D.jsxs("div",{className:"sk-cube-container loading-hidden",children:[D.jsxs("div",{className:"sk-cube-grid",children:[D.jsx("div",{className:"sk-cube sk-cube1"}),D.jsx("div",{className:"sk-cube sk-cube2"}),D.jsx("div",{className:"sk-cube sk-cube3"}),D.jsx("div",{className:"sk-cube sk-cube4"}),D.jsx("div",{className:"sk-cube sk-cube5"}),D.jsx("div",{className:"sk-cube sk-cube6"}),D.jsx("div",{className:"sk-cube sk-cube7"}),D.jsx("div",{className:"sk-cube sk-cube8"}),D.jsx("div",{className:"sk-cube sk-cube9"})]}),D.jsx("div",{className:"sk-cube10",children:e.children||"loading..."})]}),WM="_modal_wrapper_loading_1tlvq_1",VM="_global_spin_1tlvq_15",Q2={modal_wrapper_loading:WM,global_spin:VM},YM=e=>e.isSpinning?D.jsx("div",{className:Q2.modal_wrapper_loading,children:D.jsx(Z.Spin,{spinning:e.isSpinning,className:Q2.global_spin,indicator:D.jsx(cc,{style:{fontSize:48},spin:!0})})}):void 0;var rm={},Fn={},e3;function Jn(){if(e3)return Fn;e3=1,Object.defineProperty(Fn,"__esModule",{value:!0}),Fn.getBreaksNeededForEmptyLineAfter=Fn.getBreaksNeededForEmptyLineBefore=Fn.selectWord=Fn.getSurroundingWord=void 0;function e(a,i){if(!a)throw Error("Argument 'text' should be truthy");for(var o=function(m){return m===" "||m.charCodeAt(0)===10},l=0,u=a.length,c=i;c-1>-1;c--)if(o(a[c-1])){l=c;break}for(var c=i;c<a.length;c++)if(o(a[c])){u=c;break}return{start:l,end:u}}Fn.getSurroundingWord=e;function t(a){var i=a.text,o=a.selection;return i&&i.length&&o.start===o.end?e(i,o.start):o}Fn.selectWord=t;function r(a,i){if(a===void 0&&(a=""),i===0)return 0;for(var o=2,l=!0,u=i-1;u>=0&&o>=0;u--)switch(a.charCodeAt(u)){case 32:continue;case 10:o--,l=!1;break;default:return o}return l?0:o}Fn.getBreaksNeededForEmptyLineBefore=r;function n(a,i){if(a===void 0&&(a=""),i===a.length-1)return 0;for(var o=2,l=!0,u=i;u<a.length&&o>=0;u++)switch(a.charCodeAt(u)){case 32:continue;case 10:{o--,l=!1;break}default:return o}return l?0:o}return Fn.getBreaksNeededForEmptyLineAfter=n,Fn}var Xi={},Nu={},Iu={},t3;function js(){if(t3)return Iu;t3=1;/*!
117
- Copyright (c) 2018 Jed Watson.
118
- Licensed under the MIT License (MIT), see
119
- http://jedwatson.github.io/classnames
120
- */Object.defineProperty(Iu,"__esModule",{value:!0}),Iu.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 o=[],l=0;l<a.length;l++){var u=a[l];if(u){if(e(u))o.push(u);else if(t(u)){var c=n.apply(null,u);c&&o.push(c)}else if(r(u))for(var m in u)u.hasOwnProperty(m)&&u[m]&&o.push(m)}}return o.join(" ")}return Iu.classNames=n,Iu}var r3;function G8(){if(r3)return Nu;r3=1,Object.defineProperty(Nu,"__esModule",{value:!0}),Nu.ToolbarButtonGroup=void 0;var e=F,t=js(),r=function(n){return e.createElement("ul",{className:t.classNames("mde-header-group",{hidden:n.hidden})},n.children)};return Nu.ToolbarButtonGroup=r,Nu}var Zi={},n3;function K8(){if(n3)return Zi;n3=1;var e=Zi&&Zi.__assign||function(){return e=Object.assign||function(a){for(var i,o=1,l=arguments.length;o<l;o++){i=arguments[o];for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(a[u]=i[u])}return a},e.apply(this,arguments)};Object.defineProperty(Zi,"__esModule",{value:!0}),Zi.ToolbarButton=void 0;var t=F,r={tabIndex:-1},n=function(a){var i=a.buttonComponentClass,o=a.buttonContent,l=a.buttonProps,u=a.onClick,c=a.readOnly,m=a.name,p=e(e({},r),l||{}),g=i||"button";return t.createElement("li",{className:"mde-header-item"},t.createElement(g,e(e({"data-name":m},p),{onClick:u,disabled:c,type:"button"}),o))};return Zi.ToolbarButton=n,Zi}var Lu={},a3;function X8(){if(a3)return Lu;a3=1,Object.defineProperty(Lu,"__esModule",{value:!0}),Lu.MdeFontAwesomeIcon=void 0;var e=F,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 Lu.MdeFontAwesomeIcon=t,Lu}var Ji={},i3;function GM(){if(i3)return Ji;i3=1;var e=Ji&&Ji.__extends||function(){var a=function(i,o){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,u){l.__proto__=u}||function(l,u){for(var c in u)Object.prototype.hasOwnProperty.call(u,c)&&(l[c]=u[c])},a(i,o)};return function(i,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");a(i,o);function l(){this.constructor=i}i.prototype=o===null?Object.create(o):(l.prototype=o.prototype,new l)}}();Object.defineProperty(Ji,"__esModule",{value:!0}),Ji.Preview=void 0;var t=F,r=js(),n=function(a){e(i,a);function i(o){var l=a.call(this,o)||this;return l.state={loading:!0},l}return i.prototype.componentDidMount=function(){this.generatePreview()},i.prototype.componentDidUpdate=function(o,l){this.props.markdown!==o.markdown&&this.generatePreview()},i.prototype.generatePreview=function(){var o=this,l=this.props,u=l.markdown,c=l.generateMarkdownPreview;c(u).then(function(m){o.setState({preview:m,loading:!1})})},i.prototype.render=function(){var o=this.props,l=o.classes,u=o.minHeight,c=o.loadingPreview,m=o.refObject,p=o.heightUnits,g=this.state,y=g.preview,x=g.loading,E=x?c:y,k;typeof E=="string"?k=t.createElement("div",{className:"mde-preview-content",dangerouslySetInnerHTML:{__html:E||"<p>&nbsp;</p>"},ref:m}):k=t.createElement("div",{className:"mde-preview-content"},E);var T=u&&p?u+10+p:u+10;return t.createElement("div",{className:r.classNames("mde-preview",l,{loading:x}),style:{minHeight:T},"data-testid":"mde-preview"},k)},i}(t.Component);return Ji.Preview=n,Ji}var Fa={},ju={},o3;function KM(){if(o3)return ju;o3=1,Object.defineProperty(ju,"__esModule",{value:!0}),ju.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 o=document.createElement("div");o.id="input-textarea-caret-position-mirror-div",document.body.appendChild(o);var l=o.style,u=window.getComputedStyle?window.getComputedStyle(a):a.currentStyle;l.whiteSpace="pre-wrap",l.wordWrap="break-word",l.position="absolute",l.visibility="hidden",e.forEach(function(p){l[p]=u[p]}),r?a.scrollHeight>parseInt(u.height)&&(l.overflowY="scroll"):l.overflow="hidden",o.textContent=a.value.substring(0,a.selectionStart),i&&(o.textContent+=i);var c=document.createElement("span");c.textContent=a.value.substring(a.selectionEnd)||".",o.appendChild(c);var m={top:c.offsetTop+parseInt(u.borderTopWidth),left:c.offsetLeft+parseInt(u.borderLeftWidth),lineHeight:parseInt(u.lineHeight)};return document.body.removeChild(o),m}return ju.getCaretCoordinates=n,ju}var $u={},s3;function Z8(){if(s3)return $u;s3=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($u,"__esModule",{value:!0}),$u.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 o=r.selectionStart,l=r.selectionEnd;if(typeof r.setRangeText=="function")r.setRangeText(n);else if(t(r)){var u=document.createTextNode(n),c=r.firstChild;if(!c)r.appendChild(u);else{for(var m=0,p=null,g=null,y=document.createRange();c&&(p===null||g===null);){var x=c.nodeValue.length;o>=m&&o<=m+x&&y.setStart(p=c,o-m),l>=m&&l<=m+x&&y.setEnd(g=c,l-m),m+=x,c=c.nextSibling}o!==l&&y.deleteContents(),y.insertNode(u)}}else{var E=r.value;r.value=E.slice(0,o)+n+E.slice(l)}r.setSelectionRange(o+n.length,o+n.length);var k=document.createEvent("UIEvent");k.initEvent("input",!0,!1),r.dispatchEvent(k)}}$u.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 $u}var zu={},u3;function XM(){if(u3)return zu;u3=1,Object.defineProperty(zu,"__esModule",{value:!0}),zu.mod=void 0;function e(t,r){return(t%r+r)%r}return zu.mod=e,zu}var Bu={},l3;function J8(){if(l3)return Bu;l3=1,Object.defineProperty(Bu,"__esModule",{value:!0}),Bu.SuggestionsDropdown=void 0;var e=F,t=js(),r=function(n){var a=n.classes,i=n.suggestions,o=n.caret,l=n.onSuggestionSelected,u=n.suggestionsAutoplace,c=n.focusIndex,m=n.textAreaRef,p=function(w){w.preventDefault();var S=parseInt(w.currentTarget.attributes["data-index"].value);l(S)},g=function(w){return w.preventDefault()},y=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),x=Math.max(document.documentElement.clientHeight||0,window.innerHeight||0),E=o.left-m.current.scrollLeft,k=o.top-m.current.scrollTop,T={};return u&&k+m.current.getBoundingClientRect().top>x/2?T.bottom=m.current.offsetHeight-k:T.top=k,u&&E+m.current.getBoundingClientRect().left>y/2?T.right=m.current.offsetWidth-E:T.left=E,e.createElement("ul",{className:t.classNames("mde-suggestions",a),style:T},i.map(function(w,S){return e.createElement("li",{onClick:p,onMouseDown:g,key:S,"aria-selected":c===S?"true":"false","data-index":""+S},w.preview)}))};return Bu.SuggestionsDropdown=r,Bu}var c3;function ZM(){if(c3)return Fa;c3=1;var e=Fa&&Fa.__extends||function(){var c=function(m,p){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,y){g.__proto__=y}||function(g,y){for(var x in y)Object.prototype.hasOwnProperty.call(y,x)&&(g[x]=y[x])},c(m,p)};return function(m,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");c(m,p);function g(){this.constructor=m}m.prototype=p===null?Object.create(p):(g.prototype=p.prototype,new g)}}(),t=Fa&&Fa.__assign||function(){return t=Object.assign||function(c){for(var m,p=1,g=arguments.length;p<g;p++){m=arguments[p];for(var y in m)Object.prototype.hasOwnProperty.call(m,y)&&(c[y]=m[y])}return c},t.apply(this,arguments)};Object.defineProperty(Fa,"__esModule",{value:!0}),Fa.TextArea=void 0;var r=F,n=js(),a=KM(),i=Z8(),o=XM(),l=J8(),u=function(c){e(m,c);function m(p){var g=c.call(this,p)||this;return g.currentLoadSuggestionsPromise=Promise.resolve(void 0),g.suggestionsPromiseIndex=0,g.getTextArea=function(){return g.props.refObject.current},g.handleOnChange=function(y){var x=g.props.onChange;x(y.target.value)},g.handleBlur=function(){var y=g.state.mention;y&&g.setState({mention:{status:"inactive",suggestions:[]}})},g.startLoadingSuggestions=function(y){var x=++g.suggestionsPromiseIndex,E=g.props.loadSuggestions;g.currentLoadSuggestionsPromise=g.currentLoadSuggestionsPromise.then(function(){return E(y,g.state.mention.triggeredBy)}).then(function(k){if(g.state.mention.status!=="inactive")return g.suggestionsPromiseIndex===x&&(!k||!k.length?g.setState({mention:{status:"inactive",suggestions:[]}}):g.setState({mention:t(t({},g.state.mention),{status:"active",suggestions:k,focusIndex:0})}),g.suggestionsPromiseIndex=0),Promise.resolve()})},g.loadEmptySuggestion=function(y,x){var E=a.getCaretCoordinates(y,x);g.startLoadingSuggestions(""),g.setState({mention:{status:"loading",startPosition:y.selectionStart+1,caret:E,suggestions:[],triggeredBy:x}})},g.handleSuggestionSelected=function(y){var x=g.state.mention;g.getTextArea().selectionStart=x.startPosition-1,g.props.value.substr(g.getTextArea().selectionStart,g.getTextArea().selectionEnd-g.getTextArea().selectionStart),i.insertText(g.getTextArea(),x.suggestions[y].value+" "),g.setState({mention:{status:"inactive",suggestions:[]}})},g.handleKeyDown=function(y){if(g.props.onPossibleKeyCommand){var x=g.props.onPossibleKeyCommand(y);if(x){y.preventDefault(),g.suggestionsPromiseIndex=0,g.setState({mention:{status:"inactive",suggestions:[]}});return}}if(g.suggestionsEnabled()){var E=y.key,k=y.shiftKey,T=y.currentTarget,w=T.selectionStart,S=g.state.mention;switch(S.status){case"loading":case"active":if(E==="Escape"||E==="Backspace"&&w<=g.state.mention.startPosition)g.suggestionsPromiseIndex=0,g.setState({mention:{status:"inactive",suggestions:[]}});else if(S.status==="active"&&(E==="ArrowUp"||E==="ArrowDown")&&!k){y.preventDefault();var f=E==="ArrowUp"?-1:1;g.setState({mention:t(t({},S),{focusIndex:o.mod(S.focusIndex+f,S.suggestions.length)})})}else E==="Enter"&&S.status==="active"&&S.suggestions.length&&(y.preventDefault(),g.handleSuggestionSelected(S.focusIndex));break}}},g.handleKeyUp=function(y){var x=y.key,E=g.state.mention,k=g.props,T=k.suggestionTriggerCharacters,w=k.value;switch(E.status){case"loading":case"active":if(x==="Backspace"){var S=w.substr(E.startPosition,g.getTextArea().selectionStart-E.startPosition);g.startLoadingSuggestions(S),E.status!=="loading"&&g.setState({mention:t(t({},g.state.mention),{status:"loading"})})}break;case"inactive":if(x==="Backspace"){var f=w.charAt(g.getTextArea().selectionStart-1),h=T.includes(w.charAt(g.getTextArea().selectionStart-1));h&&g.loadEmptySuggestion(y.currentTarget,f)}break}},g.handleKeyPress=function(y){var x=g.props,E=x.suggestionTriggerCharacters,k=x.value,T=g.state.mention,w=y.key;switch(T.status){case"loading":case"active":if(w===" "){g.setState({mention:t(t({},g.state.mention),{status:"inactive"})});return}var S=k.substr(T.startPosition,g.getTextArea().selectionStart-T.startPosition)+w;g.startLoadingSuggestions(S),T.status!=="loading"&&g.setState({mention:t(t({},g.state.mention),{status:"loading"})});break;case"inactive":if(E.indexOf(y.key)===-1||!/\s|\(|\[|^.{0}$/.test(k.charAt(g.getTextArea().selectionStart-1)))return;g.loadEmptySuggestion(y.currentTarget,y.key);break}},g.state={mention:{status:"inactive",suggestions:[]}},g}return m.prototype.suggestionsEnabled=function(){return this.props.suggestionTriggerCharacters&&this.props.suggestionTriggerCharacters.length&&this.props.loadSuggestions},m.prototype.render=function(){var p=this,g=this.props,y=g.classes,x=g.readOnly,E=g.textAreaProps,k=g.height,T=g.heightUnits,w=g.value,S=g.suggestionTriggerCharacters,f=g.loadSuggestions,h=g.suggestionsDropdownClasses,v=g.textAreaComponent,_=g.onPaste,R=g.onDrop,C=S&&S.length&&f,P=this.state.mention,M=v||"textarea",q=k&&T?k+T:k;return r.createElement("div",{className:"mde-textarea-wrapper"},r.createElement(M,t({className:n.classNames("mde-text",y),style:{height:q},ref:this.props.refObject,readOnly:x,value:w,"data-testid":"text-area"},E,{onChange:function(L){var N;(N=E==null?void 0:E.onChange)===null||N===void 0||N.call(E,L),p.handleOnChange(L)},onBlur:function(L){var N;(N=E==null?void 0:E.onBlur)===null||N===void 0||N.call(E,L),C&&p.handleBlur()},onKeyDown:function(L){var N;(N=E==null?void 0:E.onKeyDown)===null||N===void 0||N.call(E,L),p.handleKeyDown(L)},onKeyUp:function(L){var N;(N=E==null?void 0:E.onKeyUp)===null||N===void 0||N.call(E,L),C&&p.handleKeyUp(L)},onKeyPress:function(L){var N;(N=E==null?void 0:E.onKeyPress)===null||N===void 0||N.call(E,L),C&&p.handleKeyPress(L)},onPaste:function(L){var N;(N=E==null?void 0:E.onPaste)===null||N===void 0||N.call(E,L),_(L)},onDragOver:function(L){L.preventDefault(),L.stopPropagation()},onDrop:function(L){var N;(N=E==null?void 0:E.onDrop)===null||N===void 0||N.call(E,L),R(L),L.preventDefault()}})),P.status==="active"&&P.suggestions.length&&r.createElement(l.SuggestionsDropdown,{classes:h,caret:P.caret,suggestions:P.suggestions,onSuggestionSelected:this.handleSuggestionSelected,suggestionsAutoplace:this.props.suggestionsAutoplace,focusIndex:P.focusIndex,textAreaRef:this.props.refObject}))},m}(r.Component);return Fa.TextArea=u,Fa}var Na={},d3;function JM(){if(d3)return Na;d3=1;var e=Na&&Na.__extends||function(){var l=function(u,c){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,p){m.__proto__=p}||function(m,p){for(var g in p)Object.prototype.hasOwnProperty.call(p,g)&&(m[g]=p[g])},l(u,c)};return function(u,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");l(u,c);function m(){this.constructor=u}u.prototype=c===null?Object.create(c):(m.prototype=c.prototype,new m)}}(),t=Na&&Na.__assign||function(){return t=Object.assign||function(l){for(var u,c=1,m=arguments.length;c<m;c++){u=arguments[c];for(var p in u)Object.prototype.hasOwnProperty.call(u,p)&&(l[p]=u[p])}return l},t.apply(this,arguments)};Object.defineProperty(Na,"__esModule",{value:!0}),Na.Toolbar=void 0;var r=F,n=js(),a=G8(),i=K8(),o=function(l){e(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.handleTabChange=function(m){var p=c.props.onTabChange;p(m)},c}return u.prototype.render=function(){var c=this,m=this.props.l18n,p=this.props,g=p.classes,y=p.children,x=p.buttons,E=p.onCommand,k=p.readOnly,T=p.disablePreview,w=p.writeButtonProps,S=p.previewButtonProps,f=p.buttonProps;if((!x||x.length===0)&&!y)return null;var h=r.createElement("div",{className:"mde-tabs"},r.createElement("button",t({type:"button",className:n.classNames({selected:this.props.tab==="write"}),onClick:function(){return c.handleTabChange("write")}},w),m.write),r.createElement("button",t({type:"button",className:n.classNames({selected:this.props.tab==="preview"}),onClick:function(){return c.handleTabChange("preview")}},S),m.preview));return r.createElement("div",{className:n.classNames("mde-header",g)},!T&&h,x.map(function(v,_){return r.createElement(a.ToolbarButtonGroup,{key:_,hidden:c.props.tab==="preview"},v.map(function(R,C){return r.createElement(i.ToolbarButton,{key:C,name:R.commandName,buttonContent:R.buttonContent,buttonProps:t(t({},f||{}),R.buttonProps),onClick:function(){return E(R.commandName)},readOnly:k,buttonComponentClass:R.buttonComponentClass})}))}))},u}(r.Component);return Na.Toolbar=o,Na}var Jr={},Ia={},Hu={},f3;function QM(){if(f3)return Hu;f3=1,Object.defineProperty(Hu,"__esModule",{value:!0}),Hu.headerCommand=void 0;var e=Jn();function t(r,n,a){var i=e.selectWord({text:r.text,selection:r.selection}),o=n.setSelectionRange(i),l=n.replaceSelection(""+a+o.selectedText);n.setSelectionRange({start:l.selection.end-o.selectedText.length,end:l.selection.end})}return Hu.headerCommand={buttonProps:{"aria-label":"Add header"},execute:function(r){var n=r.initialState,a=r.textApi;t(n,a,"### ")}},Hu}var Uu={},h3;function eF(){if(h3)return Uu;h3=1,Object.defineProperty(Uu,"__esModule",{value:!0}),Uu.boldCommand=void 0;var e=Jn();return Uu.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),o=n.replaceSelection("**"+i.selectedText+"**");n.setSelectionRange({start:o.selection.end-2-i.selectedText.length,end:o.selection.end-2})},handleKeyCommand:function(t){return(t.ctrlKey||t.metaKey)&&t.key=="b"}},Uu}var qu={},p3;function tF(){if(p3)return qu;p3=1,Object.defineProperty(qu,"__esModule",{value:!0}),qu.italicCommand=void 0;var e=Jn();return qu.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),o=n.replaceSelection("*"+i.selectedText+"*");n.setSelectionRange({start:o.selection.end-1-i.selectedText.length,end:o.selection.end-1})},handleKeyCommand:function(t){return(t.ctrlKey||t.metaKey)&&t.key=="i"}},qu}var Wu={},m3;function rF(){if(m3)return Wu;m3=1,Object.defineProperty(Wu,"__esModule",{value:!0}),Wu.strikeThroughCommand=void 0;var e=Jn();return Wu.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),o=n.replaceSelection("~~"+i.selectedText+"~~");n.setSelectionRange({start:o.selection.end-2-i.selectedText.length,end:o.selection.end-2})}},Wu}var Vu={},g3;function nF(){if(g3)return Vu;g3=1,Object.defineProperty(Vu,"__esModule",{value:!0}),Vu.linkCommand=void 0;var e=Jn();return Vu.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),o=n.replaceSelection("["+i.selectedText+"](url)");n.setSelectionRange({start:o.selection.end-6-i.selectedText.length,end:o.selection.end-6})},handleKeyCommand:function(t){return(t.ctrlKey||t.metaKey)&&t.key=="k"}},Vu}var Yu={},v3;function aF(){if(v3)return Yu;v3=1,Object.defineProperty(Yu,"__esModule",{value:!0}),Yu.quoteCommand=void 0;var e=Jn();return Yu.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),o=e.getBreaksNeededForEmptyLineBefore(i.text,i.selection.start),l=Array(o+1).join(`
125
- `),u=e.getBreaksNeededForEmptyLineAfter(i.text,i.selection.end),c=Array(u+1).join(`
126
- `);n.replaceSelection(l+"> "+i.selectedText+c);var m=i.selection.start+o+2,p=m+i.selectedText.length;n.setSelectionRange({start:m,end:p})}},Yu}var Gu={},b3;function iF(){if(b3)return Gu;b3=1,Object.defineProperty(Gu,"__esModule",{value:!0}),Gu.codeCommand=void 0;var e=Jn();return Gu.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 o=i.selection.start+1,l=o+i.selectedText.length;n.setSelectionRange({start:o,end:l});return}var u=e.getBreaksNeededForEmptyLineBefore(i.text,i.selection.start),c=Array(u+1).join(`
128
- `),m=e.getBreaksNeededForEmptyLineAfter(i.text,i.selection.end),p=Array(m+1).join(`
129
- `);n.replaceSelection(c+"```\n"+i.selectedText+"\n```"+p);var g=i.selection.start+u+4,y=g+i.selectedText.length;n.setSelectionRange({start:g,end:y})}},Gu}var nm={},y3;function oF(){return y3||(y3=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.checkedListCommand=e.orderedListCommand=e.unorderedListCommand=e.makeList=e.insertBeforeEachLine=void 0;var t=Jn();function r(a,i){var o=a.split(/\n/),l=0,u=o.map(function(c,m){if(typeof i=="string")return l+=i.length,i+c;if(typeof i=="function"){var p=i(c,m);return l+=p.length,i(c,m)+c}throw Error("insertion is expected to be either a string or a function")}).join(`
130
- `);return{modifiedText:u,insertionLength:l}}e.insertBeforeEachLine=r;var n=function(a,i,o){var l=t.selectWord({text:a.text,selection:a.selection}),u=i.setSelectionRange(l),c=t.getBreaksNeededForEmptyLineBefore(u.text,u.selection.start),m=Array(c+1).join(`
131
- `),p=t.getBreaksNeededForEmptyLineAfter(u.text,u.selection.end),g=Array(p+1).join(`
132
- `),y=r(u.selectedText,o);i.replaceSelection(""+m+y.modifiedText+g);var x=u.selectedText.indexOf(`
133
- `)===-1?y.insertionLength:0,E=u.selection.start+c+x,k=E+y.modifiedText.length-x;i.setSelectionRange({start:E,end:k})};e.makeList=n,e.unorderedListCommand={buttonProps:{"aria-label":"Add unordered list"},execute:function(a){var i=a.initialState,o=a.textApi;e.makeList(i,o,"- ")}},e.orderedListCommand={buttonProps:{"aria-label":"Add ordered list"},execute:function(a){var i=a.initialState,o=a.textApi;e.makeList(i,o,function(l,u){return u+1+". "})}},e.checkedListCommand={buttonProps:{"aria-label":"Add checked list"},execute:function(a){var i=a.initialState,o=a.textApi;e.makeList(i,o,function(l,u){return"- [ ] "})}}}(nm)),nm}var Ku={},_3;function sF(){if(_3)return Ku;_3=1,Object.defineProperty(Ku,"__esModule",{value:!0}),Ku.imageCommand=void 0;var e=Jn();return Ku.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})}},Ku}var La={},ja={},w3;function uF(){if(w3)return ja;w3=1;var e=ja&&ja.__awaiter||function(n,a,i,o){function l(u){return u instanceof i?u:new i(function(c){c(u)})}return new(i||(i=Promise))(function(u,c){function m(y){try{g(o.next(y))}catch(x){c(x)}}function p(y){try{g(o.throw(y))}catch(x){c(x)}}function g(y){y.done?u(y.value):l(y.value).then(m,p)}g((o=o.apply(n,a||[])).next())})},t=ja&&ja.__generator||function(n,a){var i={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},o,l,u,c;return c={next:m(0),throw:m(1),return:m(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function m(g){return function(y){return p([g,y])}}function p(g){if(o)throw new TypeError("Generator is already executing.");for(;i;)try{if(o=1,l&&(u=g[0]&2?l.return:g[0]?l.throw||((u=l.return)&&u.call(l),0):l.next)&&!(u=u.call(l,g[1])).done)return u;switch(l=0,u&&(g=[g[0]&2,u.value]),g[0]){case 0:case 1:u=g;break;case 4:return i.label++,{value:g[1],done:!1};case 5:i.label++,l=g[1],g=[0];continue;case 7:g=i.ops.pop(),i.trys.pop();continue;default:if(u=i.trys,!(u=u.length>0&&u[u.length-1])&&(g[0]===6||g[0]===2)){i=0;continue}if(g[0]===3&&(!u||g[1]>u[0]&&g[1]<u[3])){i.label=g[1];break}if(g[0]===6&&i.label<u[1]){i.label=u[1],u=g;break}if(u&&i.label<u[2]){i.label=u[2],i.ops.push(g);break}u[2]&&i.ops.pop(),i.trys.pop();continue}g=a.call(n,i)}catch(y){g=[6,y],l=0}finally{o=u=0}if(g[0]&5)throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}};Object.defineProperty(ja,"__esModule",{value:!0}),ja.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,o){var l=new FileReader;l.onload=function(){if(typeof l.result=="string")throw new Error("reader.result is expected to be an ArrayBuffer");i(l.result)},l.onerror=o,l.readAsArrayBuffer(n)})]})})}return ja.readFileAsync=r,ja}var x3;function lF(){if(x3)return La;x3=1;var e=La&&La.__awaiter||function(c,m,p,g){function y(x){return x instanceof p?x:new p(function(E){E(x)})}return new(p||(p=Promise))(function(x,E){function k(S){try{w(g.next(S))}catch(f){E(f)}}function T(S){try{w(g.throw(S))}catch(f){E(f)}}function w(S){S.done?x(S.value):y(S.value).then(k,T)}w((g=g.apply(c,m||[])).next())})},t=La&&La.__generator||function(c,m){var p={label:0,sent:function(){if(x[0]&1)throw x[1];return x[1]},trys:[],ops:[]},g,y,x,E;return E={next:k(0),throw:k(1),return:k(2)},typeof Symbol=="function"&&(E[Symbol.iterator]=function(){return this}),E;function k(w){return function(S){return T([w,S])}}function T(w){if(g)throw new TypeError("Generator is already executing.");for(;p;)try{if(g=1,y&&(x=w[0]&2?y.return:w[0]?y.throw||((x=y.return)&&x.call(y),0):y.next)&&!(x=x.call(y,w[1])).done)return x;switch(y=0,x&&(w=[w[0]&2,x.value]),w[0]){case 0:case 1:x=w;break;case 4:return p.label++,{value:w[1],done:!1};case 5:p.label++,y=w[1],w=[0];continue;case 7:w=p.ops.pop(),p.trys.pop();continue;default:if(x=p.trys,!(x=x.length>0&&x[x.length-1])&&(w[0]===6||w[0]===2)){p=0;continue}if(w[0]===3&&(!x||w[1]>x[0]&&w[1]<x[3])){p.label=w[1];break}if(w[0]===6&&p.label<x[1]){p.label=x[1],x=w;break}if(x&&p.label<x[2]){p.label=x[2],p.ops.push(w);break}x[2]&&p.ops.pop(),p.trys.pop();continue}w=m.call(c,p)}catch(S){w=[6,S],y=0}finally{g=x=0}if(w[0]&5)throw w[1];return{value:w[0]?w[1]:void 0,done:!0}}};Object.defineProperty(La,"__esModule",{value:!0}),La.saveImageCommand=void 0;var r=uF(),n=Jn();function a(c){var m=[];for(var p in c){var g=c[p];g.kind==="file"&&m.push(g.getAsFile())}return m}function i(c){for(var m=[],p=0;p<c.length;p++)m.push(c[0]);return m}function o(c,m){var p=m.multiple,g=m.accept,y=c;if(p||(y=y.slice(0,1)),g){var x=g.split(","),E=new Set(x.filter(function(w){return/^\.\w+/.test(w)}).map(function(w){return w.split(".")[1]})),k=new Set(x.filter(function(w){return/^[-\w.]+\/[-\w.]+$/.test(w)})),T=new Set(x.filter(function(w){return/(audio|video|image)\/\*/.test(w)}).map(function(w){return w.split("/")[0]}));y=y.filter(function(w){return E.has(w.name.split(".")[1])||k.has(w.type)||T.has(w.type.split("/")[0])})}return y}La.saveImageCommand={execute:function(c){c.initialState;var m=c.textApi,p=c.context,g=c.l18n;return e(this,void 0,void 0,function(){var y,x,E,k,T,w,S,f,h,v,_,R,C,P,M,q,L,N,j,O,I,z,B,H;return t(this,function(U){switch(U.label){case 0:if(!p)throw new Error("wrong context");y=p,x=y.event,E=y.pasteOptions,k=E.saveImage,T=E.multiple,w=E.accept,S=l(p)?a(x.clipboardData.items):u(p)?a(x.dataTransfer.items):i(x.target.files),f=o(S,{multiple:T,accept:w}),h=[];for(v in f)h.push(v);_=0,U.label=1;case 1:return _<h.length?(R=h[_],C=m.getState(),P=n.getBreaksNeededForEmptyLineBefore(C.text,C.selection.start),M=Array(P+1).join(`
134
- `),q=M+"!["+g.uploadingImage+"]()",m.replaceSelection(q),L=S[R],[4,r.readFileAsync(L)]):[3,5];case 2:return N=U.sent(),j=k(N,L),[4,j.next()];case 3:O=U.sent().value,I=m.getState(),z=I.text.substr(C.selection.start,q.length),z===q&&(m.setSelectionRange({start:C.selection.start,end:C.selection.start+q.length}),B=O?M+"![image]("+O+")":"",H=B.length-q.length,m.replaceSelection(B),m.setSelectionRange({start:I.selection.start+H,end:I.selection.end+H})),U.label=4;case 4:return _++,[3,1];case 5:return[2]}})})}};function l(c){return c.event.clipboardData!==void 0}function u(c){return c.event.dataTransfer!==void 0}return La}var S3;function nv(){if(S3)return Ia;S3=1,Object.defineProperty(Ia,"__esModule",{value:!0}),Ia.getDefaultSaveImageCommandName=Ia.getDefaultCommandMap=Ia.getDefaultToolbarCommands=void 0;var e=QM(),t=eF(),r=tF(),n=rF(),a=nF(),i=aF(),o=iF(),l=oF(),u=sF(),c=lF();function m(){return[["header","bold","italic","strikethrough"],["link","quote","code","image"],["unordered-list","ordered-list","checked-list"]]}Ia.getDefaultToolbarCommands=m;function p(){return{header:e.headerCommand,bold:t.boldCommand,italic:r.italicCommand,strikethrough:n.strikeThroughCommand,link:a.linkCommand,quote:i.quoteCommand,code:o.codeCommand,image:u.imageCommand,"unordered-list":l.unorderedListCommand,"ordered-list":l.orderedListCommand,"checked-list":l.checkedListCommand,"save-image":c.saveImageCommand}}Ia.getDefaultCommandMap=p;function g(){return"save-image"}return Ia.getDefaultSaveImageCommandName=g,Ia}var Xu={},C3;function cF(){return C3||(C3=1,Object.defineProperty(Xu,"__esModule",{value:!0}),Xu.enL18n=void 0,Xu.enL18n={write:"Write",preview:"Preview",uploadingImage:"Uploading image...",pasteDropSelect:"Attach files by dragging & dropping, selecting or pasting them."}),Xu}var Qi={},Zu={},E3;function dF(){if(E3)return Zu;E3=1,Object.defineProperty(Zu,"__esModule",{value:!0}),Zu.SvgIcon=void 0;var e=F,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"})),o=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"})),l=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"})),c=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"})),m=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"})),p=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"})),g=function(y){var x=y.icon;switch(x){case"header":return m;case"bold":return p;case"italic":return c;case"strikethrough":return u;case"link":return l;case"quote":return o;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 Zu.SvgIcon=g,Zu}var k3;function Q8(){return k3||(k3=1,function(e){var t=Qi&&Qi.__createBinding||(Object.create?function(n,a,i,o){o===void 0&&(o=i),Object.defineProperty(n,o,{enumerable:!0,get:function(){return a[i]}})}:function(n,a,i,o){o===void 0&&(o=i),n[o]=a[i]}),r=Qi&&Qi.__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(X8(),e),r(dF(),e)}(Qi)),Qi}var kr={},Ju={},T3;function fF(){if(T3)return Ju;T3=1,Object.defineProperty(Ju,"__esModule",{value:!0}),Ju.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 Ju.extractKeyActivatedCommands=e,Ju}var O3;function hF(){if(O3)return kr;O3=1;var e=kr&&kr.__assign||function(){return e=Object.assign||function(m){for(var p,g=1,y=arguments.length;g<y;g++){p=arguments[g];for(var x in p)Object.prototype.hasOwnProperty.call(p,x)&&(m[x]=p[x])}return m},e.apply(this,arguments)},t=kr&&kr.__awaiter||function(m,p,g,y){function x(E){return E instanceof g?E:new g(function(k){k(E)})}return new(g||(g=Promise))(function(E,k){function T(f){try{S(y.next(f))}catch(h){k(h)}}function w(f){try{S(y.throw(f))}catch(h){k(h)}}function S(f){f.done?E(f.value):x(f.value).then(T,w)}S((y=y.apply(m,p||[])).next())})},r=kr&&kr.__generator||function(m,p){var g={label:0,sent:function(){if(E[0]&1)throw E[1];return E[1]},trys:[],ops:[]},y,x,E,k;return k={next:T(0),throw:T(1),return:T(2)},typeof Symbol=="function"&&(k[Symbol.iterator]=function(){return this}),k;function T(S){return function(f){return w([S,f])}}function w(S){if(y)throw new TypeError("Generator is already executing.");for(;g;)try{if(y=1,x&&(E=S[0]&2?x.return:S[0]?x.throw||((E=x.return)&&E.call(x),0):x.next)&&!(E=E.call(x,S[1])).done)return E;switch(x=0,E&&(S=[S[0]&2,E.value]),S[0]){case 0:case 1:E=S;break;case 4:return g.label++,{value:S[1],done:!1};case 5:g.label++,x=S[1],S=[0];continue;case 7:S=g.ops.pop(),g.trys.pop();continue;default:if(E=g.trys,!(E=E.length>0&&E[E.length-1])&&(S[0]===6||S[0]===2)){g=0;continue}if(S[0]===3&&(!E||S[1]>E[0]&&S[1]<E[3])){g.label=S[1];break}if(S[0]===6&&g.label<E[1]){g.label=E[1],E=S;break}if(E&&g.label<E[2]){g.label=E[2],g.ops.push(S);break}E[2]&&g.ops.pop(),g.trys.pop();continue}S=p.call(m,g)}catch(f){S=[6,f],x=0}finally{y=E=0}if(S[0]&5)throw S[1];return{value:S[0]?S[1]:void 0,done:!0}}};Object.defineProperty(kr,"__esModule",{value:!0}),kr.CommandOrchestrator=kr.getStateFromTextArea=kr.TextAreaTextApi=void 0;var n=tS(),a=Z8(),i=fF(),o=nv(),l=function(){function m(p){this.textAreaRef=p}return m.prototype.replaceSelection=function(p){var g=this.textAreaRef.current;return a.insertText(g,p),u(g)},m.prototype.setSelectionRange=function(p){var g=this.textAreaRef.current;return g.focus(),g.selectionStart=p.start,g.selectionEnd=p.end,u(g)},m.prototype.getState=function(){var p=this.textAreaRef.current;return u(p)},m}();kr.TextAreaTextApi=l;function u(m){return{selection:{start:m.selectionStart,end:m.selectionEnd},text:m.value,selectedText:m.value.slice(m.selectionStart,m.selectionEnd)}}kr.getStateFromTextArea=u;var c=function(){function m(p,g,y,x){var E=this;if(this.getCommand=function(k){var T=E.commandMap[k];if(!T)throw new Error("Cannot execute command. Command not found: "+k);return T},this.handlePossibleKeyCommand=function(k){for(var T=0,w=E.keyActivatedCommands;T<w.length;T++){var S=w[T];if(E.getCommand(S).handleKeyCommand(k))return E.executeCommand(S).then(function(f){}),!0}return!1},x&&!x.saveImage)throw new Error("paste options are incomplete. saveImage are required ");this.commandMap=e(e({},n.getDefaultCommandMap()),p||{}),this.pasteOptions=x,this.keyActivatedCommands=i.extractKeyActivatedCommands(p),this.textAreaRef=g,this.textApi=new l(g),this.l18n=y}return m.prototype.executeCommand=function(p,g){return t(this,void 0,void 0,function(){var y,x;return r(this,function(E){switch(E.label){case 0:return this.isExecuting?[2]:(this.isExecuting=!0,y=this.commandMap[p],x=y.execute({initialState:u(this.textAreaRef.current),textApi:this.textApi,l18n:this.l18n,context:g}),[4,x]);case 1:return E.sent(),this.isExecuting=!1,[2]}})})},m.prototype.executePasteCommand=function(p){return t(this,void 0,void 0,function(){return r(this,function(g){return this.pasteOptions?[2,this.executeCommand(this.pasteOptions.command||o.getDefaultSaveImageCommandName(),{pasteOptions:this.pasteOptions,event:p})]:[2]})})},m.prototype.executeDropCommand=function(p){return t(this,void 0,void 0,function(){return r(this,function(g){return this.pasteOptions?[2,this.executeCommand(this.pasteOptions.command||o.getDefaultSaveImageCommandName(),{pasteOptions:this.pasteOptions,event:p})]:[2]})})},m.prototype.executeSelectImageCommand=function(p){return t(this,void 0,void 0,function(){return r(this,function(g){return this.pasteOptions?[2,this.executeCommand(this.pasteOptions.command||o.getDefaultSaveImageCommandName(),{pasteOptions:this.pasteOptions,event:p})]:[2]})})},m.prototype.getCommandByName=function(p){return this.commandMap[p]},m}();return kr.CommandOrchestrator=c,kr}var A3;function pF(){if(A3)return Jr;A3=1;var e=Jr&&Jr.__extends||function(){var y=function(x,E){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,T){k.__proto__=T}||function(k,T){for(var w in T)Object.prototype.hasOwnProperty.call(T,w)&&(k[w]=T[w])},y(x,E)};return function(x,E){if(typeof E!="function"&&E!==null)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");y(x,E);function k(){this.constructor=x}x.prototype=E===null?Object.create(E):(k.prototype=E.prototype,new k)}}(),t=Jr&&Jr.__assign||function(){return t=Object.assign||function(y){for(var x,E=1,k=arguments.length;E<k;E++){x=arguments[E];for(var T in x)Object.prototype.hasOwnProperty.call(x,T)&&(y[T]=x[T])}return y},t.apply(this,arguments)},r=Jr&&Jr.__awaiter||function(y,x,E,k){function T(w){return w instanceof E?w:new E(function(S){S(w)})}return new(E||(E=Promise))(function(w,S){function f(_){try{v(k.next(_))}catch(R){S(R)}}function h(_){try{v(k.throw(_))}catch(R){S(R)}}function v(_){_.done?w(_.value):T(_.value).then(f,h)}v((k=k.apply(y,x||[])).next())})},n=Jr&&Jr.__generator||function(y,x){var E={label:0,sent:function(){if(w[0]&1)throw w[1];return w[1]},trys:[],ops:[]},k,T,w,S;return S={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(S[Symbol.iterator]=function(){return this}),S;function f(v){return function(_){return h([v,_])}}function h(v){if(k)throw new TypeError("Generator is already executing.");for(;E;)try{if(k=1,T&&(w=v[0]&2?T.return:v[0]?T.throw||((w=T.return)&&w.call(T),0):T.next)&&!(w=w.call(T,v[1])).done)return w;switch(T=0,w&&(v=[v[0]&2,w.value]),v[0]){case 0:case 1:w=v;break;case 4:return E.label++,{value:v[1],done:!1};case 5:E.label++,T=v[1],v=[0];continue;case 7:v=E.ops.pop(),E.trys.pop();continue;default:if(w=E.trys,!(w=w.length>0&&w[w.length-1])&&(v[0]===6||v[0]===2)){E=0;continue}if(v[0]===3&&(!w||v[1]>w[0]&&v[1]<w[3])){E.label=v[1];break}if(v[0]===6&&E.label<w[1]){E.label=w[1],w=v;break}if(w&&E.label<w[2]){E.label=w[2],E.ops.push(v);break}w[2]&&E.ops.pop(),E.trys.pop();continue}v=x.call(y,E)}catch(_){v=[6,_],T=0}finally{k=w=0}if(v[0]&5)throw v[1];return{value:v[0]?v[1]:void 0,done:!0}}};Object.defineProperty(Jr,"__esModule",{value:!0}),Jr.ReactMde=void 0;var a=F,i=eS(),o=nv(),l=cF(),u=Q8(),c=js(),m=hF(),p={accept:"image/*",multiple:!1},g=function(y){e(x,y);function x(E){var k,T=y.call(this,E)||this;T.handleTextChange=function(S){var f=T.props.onChange;f(S)},T.handlePaste=function(S){return r(T,void 0,void 0,function(){var f;return n(this,function(h){switch(h.label){case 0:return f=this.props.paste,!f||!f.saveImage?[2]:[4,this.commandOrchestrator.executePasteCommand(S)];case 1:return h.sent(),[2]}})})},T.handleDrop=function(S){return r(T,void 0,void 0,function(){var f;return n(this,function(h){switch(h.label){case 0:return f=this.props.paste,!f||!f.saveImage?[2]:[4,this.commandOrchestrator.executeDropCommand(S)];case 1:return h.sent(),[2]}})})},T.handleImageSelection=function(S){return r(T,void 0,void 0,function(){var f;return n(this,function(h){switch(h.label){case 0:return f=this.props.paste,!f||!f.saveImage?[2]:[4,this.commandOrchestrator.executeSelectImageCommand(S)];case 1:return h.sent(),[2]}})})},T.handleTabChange=function(S){var f=T.props.onTabChange;f(S)},T.handleCommand=function(S){return r(T,void 0,void 0,function(){return n(this,function(f){switch(f.label){case 0:return[4,this.commandOrchestrator.executeCommand(S)];case 1:return f.sent(),[2]}})})},T.finalRefs=t({},E.refs||{}),T.finalRefs.textarea||(T.finalRefs.textarea=a.createRef()),T.finalRefs.preview||(T.finalRefs.preview=a.createRef()),T.commandOrchestrator=new m.CommandOrchestrator(T.props.commands,T.finalRefs.textarea,T.props.l18n,T.props.paste?t(t({},p),T.props.paste):void 0);var w=Math.min(E.maxEditorHeight,E.minEditorHeight);return T.state={editorHeight:(k=E.initialEditorHeight)!==null&&k!==void 0?k:w},T}return x.prototype.render=function(){var E=this,k,T,w=this.props,S=w.getIcon,f=w.toolbarCommands,h=w.classes,v=w.loadingPreview,_=w.readOnly,R=w.disablePreview,C=w.value,P=w.l18n,M=w.minPreviewHeight,q=w.heightUnits,L=w.childProps,N=w.selectedTab,j=w.generateMarkdownPreview,O=w.loadSuggestions,I=w.suggestionTriggerCharacters,z=w.textAreaComponent,B=L||{},H=f.map(function(U){return U.map(function(J){var re=E.commandOrchestrator.getCommand(J);return{commandName:J,buttonContent:re.icon?re.icon(S):S(J),buttonProps:re.buttonProps,buttonComponentClass:re.buttonComponentClass}})});return a.createElement("div",{className:c.classNames("react-mde","react-mde-tabbed-layout",h==null?void 0:h.reactMde)},a.createElement(i.Toolbar,{classes:h==null?void 0:h.toolbar,buttons:H,onCommand:this.handleCommand,onTabChange:this.handleTabChange,tab:N,readOnly:_,disablePreview:R,l18n:P,buttonProps:B.commandButtons,writeButtonProps:B.writeButton,previewButtonProps:B.previewButton}),a.createElement("div",{className:c.classNames({invisible:N!=="write"})},a.createElement(i.TextArea,{classes:h==null?void 0:h.textArea,suggestionsDropdownClasses:h==null?void 0:h.suggestionsDropdown,suggestionsAutoplace:this.props.suggestionsAutoplace,refObject:this.finalRefs.textarea,onChange:this.handleTextChange,onPaste:this.handlePaste,onDrop:this.handleDrop,readOnly:_,textAreaComponent:z,textAreaProps:L&&L.textArea,height:this.state.editorHeight,heightUnits:this.props.heightUnits,value:C,suggestionTriggerCharacters:I,loadSuggestions:O,onPossibleKeyCommand:this.commandOrchestrator.handlePossibleKeyCommand}),this.props.paste&&a.createElement("label",{className:c.classNames("image-tip")},a.createElement("input",{className:c.classNames("image-input"),type:"file",accept:(k=this.props.paste.accept)!==null&&k!==void 0?k:p.accept,multiple:(T=this.props.paste.multiple)!==null&&T!==void 0?T:p.multiple,onChange:this.handleImageSelection}),a.createElement("span",null,P.pasteDropSelect))),N!=="write"&&a.createElement(i.Preview,{classes:h==null?void 0:h.preview,refObject:this.finalRefs.preview,loadingPreview:v,minHeight:M,heightUnits:q,generateMarkdownPreview:j,markdown:C}))},x.defaultProps={commands:o.getDefaultCommandMap(),toolbarCommands:o.getDefaultToolbarCommands(),getIcon:function(E){return a.createElement(u.SvgIcon,{icon:E})},readOnly:!1,l18n:l.enL18n,minEditorHeight:200,maxEditorHeight:500,minPreviewHeight:200,heightUnits:"px",selectedTab:"write",disablePreview:!1,suggestionTriggerCharacters:["@"],suggestionsAutoplace:!1},x}(a.Component);return Jr.ReactMde=g,Jr}var R3;function eS(){return R3||(R3=1,function(e){var t=Xi&&Xi.__createBinding||(Object.create?function(n,a,i,o){o===void 0&&(o=i),Object.defineProperty(n,o,{enumerable:!0,get:function(){return a[i]}})}:function(n,a,i,o){o===void 0&&(o=i),n[o]=a[i]}),r=Xi&&Xi.__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(G8(),e),r(K8(),e),r(X8(),e),r(GM(),e),r(ZM(),e),r(JM(),e),r(pF(),e),r(J8(),e)}(Xi)),Xi}var P3;function tS(){return P3||(P3=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=Jn();e.MarkdownUtil=t;var r=eS();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=Q8();Object.defineProperty(e,"SvgIcon",{enumerable:!0,get:function(){return n.SvgIcon}}),Object.defineProperty(e,"MdeFontAwesomeIcon",{enumerable:!0,get:function(){return n.MdeFontAwesomeIcon}});var a=nv();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}(rm)),rm}var mF=tS();const gF=Rr(mF),vF="_main_qf7bi_1",bF="_markIcon_qf7bi_1",yF="_mdePreview_qf7bi_6",_F="_mdebordershow_qf7bi_80",wF="_mdeborderhide_qf7bi_83",xF="_fullscreen_qf7bi_90",qt={main:vF,markIcon:bF,mdePreview:yF,mdebordershow:_F,mdeborderhide:wF,fullscreen:xF};function SF(e,t,r,n){function a(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function l(m){try{c(n.next(m))}catch(p){o(p)}}function u(m){try{c(n.throw(m))}catch(p){o(p)}}function c(m){m.done?i(m.value):a(m.value).then(l,u)}c((n=n.apply(e,t||[])).next())})}function CF(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=l(0),o.throw=l(1),o.return=l(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function l(c){return function(m){return u([c,m])}}function u(c){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(r=0)),r;)try{if(n=1,a&&(i=c[0]&2?a.return:c[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,c[1])).done)return i;switch(a=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,a=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){r.label=c[1];break}if(c[0]===6&&r.label<i[1]){r.label=i[1],i=c;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(c);break}i[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(m){c=[6,m],a=0}finally{n=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function dc(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),a,i=[],o;try{for(;(t===void 0||t-- >0)&&!(a=n.next()).done;)i.push(a.value)}catch(l){o={error:l}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return i}function EF(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))}var $s=function(e){return typeof e=="function"},kF=function(e){return typeof e=="boolean"},nh=process.env.NODE_ENV==="development"||process.env.NODE_ENV==="test";function yo(e){nh&&($s(e)||console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof e)));var t=F.useRef(e);t.current=F.useMemo(function(){return e},[e]);var r=F.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 Wg(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 TF(e,t){var r=F.useRef({deps:t,obj:void 0,initialized:!1}).current;return(r.initialized===!1||!Wg(r.deps,t))&&(r.deps=t,r.obj=e(),r.initialized=!0),r.obj}function xn(e){var t=F.useRef(e);return t.current=e,t}var ah=function(e){nh&&($s(e)||console.error("useUnmount expected parameter is a function, got ".concat(typeof e)));var t=xn(e);F.useEffect(function(){return function(){t.current()}},[])},am,D3;function av(){if(D3)return am;D3=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return am=e,am}var im,M3;function OF(){if(M3)return im;M3=1;var e=_8(),t=function(){return e.Date.now()};return im=t,im}var om,F3;function AF(){if(F3)return om;F3=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return om=t,om}var sm,N3;function RF(){if(N3)return sm;N3=1;var e=AF(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return sm=r,sm}var um,I3;function PF(){if(I3)return um;I3=1;var e=RF(),t=av(),r=S8(),n=NaN,a=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,l=parseInt;function u(c){if(typeof c=="number")return c;if(r(c))return n;if(t(c)){var m=typeof c.valueOf=="function"?c.valueOf():c;c=t(m)?m+"":m}if(typeof c!="string")return c===0?c:+c;c=e(c);var p=i.test(c);return p||o.test(c)?l(c.slice(2),p?2:8):a.test(c)?n:+c}return um=u,um}var lm,L3;function rS(){if(L3)return lm;L3=1;var e=av(),t=OF(),r=PF(),n="Expected a function",a=Math.max,i=Math.min;function o(l,u,c){var m,p,g,y,x,E,k=0,T=!1,w=!1,S=!0;if(typeof l!="function")throw new TypeError(n);u=r(u)||0,e(c)&&(T=!!c.leading,w="maxWait"in c,g=w?a(r(c.maxWait)||0,u):g,S="trailing"in c?!!c.trailing:S);function f(L){var N=m,j=p;return m=p=void 0,k=L,y=l.apply(j,N),y}function h(L){return k=L,x=setTimeout(R,u),T?f(L):y}function v(L){var N=L-E,j=L-k,O=u-N;return w?i(O,g-j):O}function _(L){var N=L-E,j=L-k;return E===void 0||N>=u||N<0||w&&j>=g}function R(){var L=t();if(_(L))return C(L);x=setTimeout(R,v(L))}function C(L){return x=void 0,S&&m?f(L):(m=p=void 0,y)}function P(){x!==void 0&&clearTimeout(x),k=0,m=E=p=x=void 0}function M(){return x===void 0?y:C(t())}function q(){var L=t(),N=_(L);if(m=arguments,p=this,E=L,N){if(x===void 0)return h(E);if(w)return clearTimeout(x),x=setTimeout(R,u),f(E)}return x===void 0&&(x=setTimeout(R,u)),y}return q.cancel=P,q.flush=M,q}return lm=o,lm}var DF=rS();const MF=Rr(DF);var nS=!!(typeof window<"u"&&window.document&&window.document.createElement),cm,j3;function FF(){if(j3)return cm;j3=1;var e=rS(),t=av(),r="Expected a function";function n(a,i,o){var l=!0,u=!0;if(typeof a!="function")throw new TypeError(r);return t(o)&&(l="leading"in o?!!o.leading:l,u="trailing"in o?!!o.trailing:u),e(a,i,{leading:l,maxWait:i,trailing:u})}return cm=n,cm}var NF=FF();const IF=Rr(NF);var zs=function(e){nh&&($s(e)||console.error('useMount: parameter `fn` expected to be a function, but got "'.concat(typeof e,'".'))),F.useEffect(function(){e==null||e()},[])},LF=function(){var e=dc(F.useState({}),2),t=e[1];return F.useCallback(function(){return t({})},[])};function jF(e){return $s(e[Symbol.asyncIterator])}function $F(e,t){F.useEffect(function(){var r=e(),n=!1;function a(){return SF(this,void 0,void 0,function(){var i;return CF(this,function(o){switch(o.label){case 0:if(!jF(r))return[3,4];o.label=1;case 1:return[4,r.next()];case 2:return i=o.sent(),i.done||n?[3,3]:[3,1];case 3:return[3,6];case 4:return[4,r];case 5:o.sent(),o.label=6;case 6:return[2]}})})}return a(),function(){n=!0}},t)}function ca(e,t){if(nS){if(!e)return t;var r;return $s(e)?r=e():"current"in e?r=e.current:r=e,r}}var zF=function(e){return e.every(function(t){var r=ca(t);return r?r.getRootNode()instanceof ShadowRoot:!1})},BF=function(e){return e?e.getRootNode():document},HF=function(e){if(!e||!document.getRootNode)return document;var t=Array.isArray(e)?e:[e];return zF(t)?BF(ca(t[0])):document},aS=function(e){var t=function(r,n,a){var i=F.useRef(!1),o=F.useRef([]),l=F.useRef([]),u=F.useRef();e(function(){var c,m=Array.isArray(a)?a:[a],p=m.map(function(g){return ca(g)});if(!i.current){i.current=!0,o.current=p,l.current=n,u.current=r();return}(p.length!==o.current.length||!Wg(o.current,p)||!Wg(l.current,n))&&((c=u.current)===null||c===void 0||c.call(u),o.current=p,l.current=n,u.current=r())}),ah(function(){var c;(c=u.current)===null||c===void 0||c.call(u),i.current=!1})};return t},iS=aS(F.useEffect);function UF(e,t,r){r===void 0&&(r="click");var n=xn(e);iS(function(){var a=function(l){var u=Array.isArray(t)?t:[t];u.some(function(c){var m=ca(c);return!m||m.contains(l.target)})||n.current(l)},i=HF(t),o=Array.isArray(r)?r:[r];return o.forEach(function(l){return i.addEventListener(l,a)}),function(){o.forEach(function(l){return i.removeEventListener(l,a)})}},Array.isArray(r)?r:[r],t)}function qF(){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}qF()||(global.Date=Date);function WF(e,t){var r;nh&&($s(e)||console.error("useDebounceFn expected parameter is a function, got ".concat(typeof e)));var n=xn(e),a=(r=t==null?void 0:t.wait)!==null&&r!==void 0?r:1e3,i=F.useMemo(function(){return MF(function(){for(var o=[],l=0;l<arguments.length;l++)o[l]=arguments[l];return n.current.apply(n,EF([],dc(o),!1))},a,t)},[]);return ah(function(){i.cancel()}),{run:i,cancel:i.cancel,flush:i.flush}}var dm={exports:{}};/*!
135
- * screenfull
136
- * v5.2.0 - 2021-11-03
137
- * (c) Sindre Sorhus; MIT License
138
- */var $3;function VF(){return $3||($3=1,function(e){(function(){var t=typeof window<"u"&&typeof window.document<"u"?window.document:{},r=e.exports,n=function(){for(var o,l=[["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,c=l.length,m={};u<c;u++)if(o=l[u],o&&o[1]in t){for(u=0;u<o.length;u++)m[l[0][u]]=o[u];return m}return!1}(),a={change:n.fullscreenchange,error:n.fullscreenerror},i={request:function(o,l){return new Promise((function(u,c){var m=(function(){this.off("change",m),u()}).bind(this);this.on("change",m),o=o||t.documentElement;var p=o[n.requestFullscreen](l);p instanceof Promise&&p.then(m).catch(c)}).bind(this))},exit:function(){return new Promise((function(o,l){if(!this.isFullscreen){o();return}var u=(function(){this.off("change",u),o()}).bind(this);this.on("change",u);var c=t[n.exitFullscreen]();c instanceof Promise&&c.then(u).catch(l)}).bind(this))},toggle:function(o,l){return this.isFullscreen?this.exit():this.request(o,l)},onchange:function(o){this.on("change",o)},onerror:function(o){this.on("error",o)},on:function(o,l){var u=a[o];u&&t.addEventListener(u,l,!1)},off:function(o,l){var u=a[o];u&&t.removeEventListener(u,l,!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})()}(dm)),dm.exports}var YF=VF();const _n=Rr(YF);var oS=function(e,t){var r=t||{},n=r.onExit,a=r.onEnter,i=r.pageFullscreen,o=i===void 0?!1:i,l=kF(o)||!o?{}:o,u=l.className,c=u===void 0?"ahooks-page-fullscreen":u,m=l.zIndex,p=m===void 0?999999:m,g=xn(n),y=xn(a),x=dc(F.useState(w),2),E=x[0],k=x[1],T=F.useRef(w());function w(){return _n.isEnabled&&!!_n.element&&_n.element===ca(e)}var S=function(P){var M,q;P?(M=y.current)===null||M===void 0||M.call(y):(q=g.current)===null||q===void 0||q.call(g)},f=function(P){T.current!==P&&(S(P),k(P),T.current=P)},h=function(){var P=w();f(P)},v=function(P){var M=ca(e);if(M){var q=document.getElementById(c);P?(M.classList.add(c),q||(q=document.createElement("style"),q.setAttribute("id",c),q.textContent=`
139
- .`.concat(c,` {
140
- position: fixed; left: 0; top: 0; right: 0; bottom: 0;
141
- width: 100% !important; height: 100% !important;
142
- z-index: `).concat(p,`;
143
- }`),M.appendChild(q))):(M.classList.remove(c),q&&q.remove()),f(P)}},_=function(){var P=ca(e);if(P){if(o){v(!0);return}if(_n.isEnabled)try{_n.request(P)}catch(M){console.error(M)}}},R=function(){var P=ca(e);if(P){if(o){v(!1);return}_n.isEnabled&&_n.element===P&&_n.exit()}},C=function(){E?R():_()};return F.useEffect(function(){if(!(!_n.isEnabled||o))return _n.on("change",h),function(){_n.off("change",h)}},[]),[E,{enterFullscreen:yo(_),exitFullscreen:yo(R),toggleFullscreen:yo(C),isEnabled:_n.isEnabled}]};function GF(e){var t=F.useRef(0),r=dc(F.useState(e),2),n=r[0],a=r[1],i=F.useCallback(function(o){cancelAnimationFrame(t.current),t.current=requestAnimationFrame(function(){a(o)})},[]);return ah(function(){cancelAnimationFrame(t.current)}),[n,i]}var fm,z3;function KF(){if(z3)return fm;z3=1;function e(t,r){return function(n){return t(r(n))}}return fm=e,fm}var hm,B3;function XF(){if(B3)return hm;B3=1;var e=KF(),t=e(Object.getPrototypeOf,Object);return hm=t,hm}var pm,H3;function ZF(){if(H3)return pm;H3=1;var e=w8(),t=XF(),r=x8(),n="[object Object]",a=Function.prototype,i=Object.prototype,o=a.toString,l=i.hasOwnProperty,u=o.call(Object);function c(m){if(!r(m)||e(m)!=n)return!1;var p=t(m);if(p===null)return!0;var g=l.call(p,"constructor")&&p.constructor;return typeof g=="function"&&g instanceof g&&o.call(g)==u}return pm=c,pm}var JF=ZF();const QF=Rr(JF);var U3=new WeakMap,q3=new WeakMap;function sS(e,t){var r=U3.get(e);if(r)return r;if(q3.has(e))return e;var n=new Proxy(e,{get:function(a,i,o){var l=Reflect.get(a,i,o),u=Reflect.getOwnPropertyDescriptor(a,i);return!(u!=null&&u.configurable)&&!(u!=null&&u.writable)?l:QF(l)||Array.isArray(l)?sS(l,t):l},set:function(a,i,o){var l=Reflect.set(a,i,o);return t(),l},deleteProperty:function(a,i){var o=Reflect.deleteProperty(a,i);return t(),o}});return U3.set(e,n),q3.set(n,e),n}function Br(e){var t=LF(),r=F.useRef(e),n=TF(function(){return sS(r.current,function(){t()})},[]);return n}var uS=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 o=i[a];r.call(n,o[1],o[0])}},t}()}(),Vg=typeof window<"u"&&typeof document<"u"&&window.document===document,Pf=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")()}(),eN=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Pf):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),tN=2;function rN(e,t){var r=!1,n=!1,a=0;function i(){r&&(r=!1,e()),n&&l()}function o(){eN(i)}function l(){var u=Date.now();if(r){if(u-a<tN)return;n=!0}else r=!0,n=!1,setTimeout(o,t);a=u}return l}var nN=20,aN=["top","right","bottom","left","width","height","size","weight"],iN=typeof MutationObserver<"u",oN=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=rN(this.refresh.bind(this),nN)}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(){!Vg||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),iN?(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(){!Vg||!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=aN.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}(),lS=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},Ts=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Pf},cS=ih(0,0,0,0);function Df(e){return parseFloat(e)||0}function W3(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+Df(i)},0)}function sN(e){for(var t=["top","right","bottom","left"],r={},n=0,a=t;n<a.length;n++){var i=a[n],o=e["padding-"+i];r[i]=Df(o)}return r}function uN(e){var t=e.getBBox();return ih(0,0,t.width,t.height)}function lN(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return cS;var n=Ts(e).getComputedStyle(e),a=sN(n),i=a.left+a.right,o=a.top+a.bottom,l=Df(n.width),u=Df(n.height);if(n.boxSizing==="border-box"&&(Math.round(l+i)!==t&&(l-=W3(n,"left","right")+i),Math.round(u+o)!==r&&(u-=W3(n,"top","bottom")+o)),!dN(e)){var c=Math.round(l+i)-t,m=Math.round(u+o)-r;Math.abs(c)!==1&&(l-=c),Math.abs(m)!==1&&(u-=m)}return ih(a.left,a.top,l,u)}var cN=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Ts(e).SVGGraphicsElement}:function(e){return e instanceof Ts(e).SVGElement&&typeof e.getBBox=="function"}}();function dN(e){return e===Ts(e).document.documentElement}function fN(e){return Vg?cN(e)?uN(e):lN(e):cS}function hN(e){var t=e.x,r=e.y,n=e.width,a=e.height,i=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,o=Object.create(i.prototype);return lS(o,{x:t,y:r,width:n,height:a,top:r,right:t+n,bottom:a+r,left:t}),o}function ih(e,t,r,n){return{x:e,y:t,width:r,height:n}}var pN=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=ih(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=fN(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}(),mN=function(){function e(t,r){var n=hN(r);lS(this,{target:t,contentRect:n})}return e}(),gN=function(){function e(t,r,n){if(this.activeObservations_=[],this.observations_=new uS,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 Ts(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new pN(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 Ts(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 mN(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}(),dS=typeof WeakMap<"u"?new WeakMap:new uS,fS=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=oN.getInstance(),n=new gN(t,r,this);dS.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){fS.prototype[e]=function(){var t;return(t=dS.get(this))[e].apply(t,arguments)}});var vN=function(){return typeof Pf.ResizeObserver<"u"?Pf.ResizeObserver:fS}(),bN=aS(F.useLayoutEffect),yN=nS?bN:iS;function _N(e){var t=dc(GF(function(){var a=ca(e);return a?{width:a.clientWidth,height:a.clientHeight}:void 0}),2),r=t[0],n=t[1];return yN(function(){var a=ca(e);if(a){var i=new vN(function(o){o.forEach(function(l){var u=l.target,c=u.clientWidth,m=u.clientHeight;n({width:c,height:m})})});return i.observe(a),function(){i.disconnect()}}},[],e),r}var lf={exports:{}},wN=lf.exports,V3;function xN(){return V3||(V3=1,function(e){(function(){function t(f){var h={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(f===!1)return JSON.parse(JSON.stringify(h));var v={};for(var _ in h)h.hasOwnProperty(_)&&(v[_]=h[_].defaultValue);return v}function r(){var f=t(!0),h={};for(var v in f)f.hasOwnProperty(v)&&(h[v]=!0);return h}var n={},a={},i={},o=t(!0),l="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(f,h){return o[f]=h,this},n.getOption=function(f){return o[f]},n.getOptions=function(){return o},n.resetOptions=function(){o=t(!0)},n.setFlavor=function(f){if(!u.hasOwnProperty(f))throw Error(f+" flavor was not found");n.resetOptions();var h=u[f];l=f;for(var v in h)h.hasOwnProperty(v)&&(o[v]=h[v])},n.getFlavor=function(){return l},n.getFlavorOptions=function(f){if(u.hasOwnProperty(f))return u[f]},n.getDefaultOptions=function(f){return t(f)},n.subParser=function(f,h){if(n.helper.isString(f))if(typeof h<"u")a[f]=h;else{if(a.hasOwnProperty(f))return a[f];throw Error("SubParser named "+f+" not registered!")}},n.extension=function(f,h){if(!n.helper.isString(f))throw Error("Extension 'name' must be a string");if(f=n.helper.stdExtName(f),n.helper.isUndefined(h)){if(!i.hasOwnProperty(f))throw Error("Extension named "+f+" is not registered!");return i[f]}else{typeof h=="function"&&(h=h()),n.helper.isArray(h)||(h=[h]);var v=c(h,f);if(v.valid)i[f]=h;else throw Error(v.error)}},n.getAllExtensions=function(){return i},n.removeExtension=function(f){delete i[f]},n.resetExtensions=function(){i={}};function c(f,h){var v=h?"Error in "+h+" extension->":"Error in unnamed extension",_={valid:!0,error:""};n.helper.isArray(f)||(f=[f]);for(var R=0;R<f.length;++R){var C=v+" sub-extension "+R+": ",P=f[R];if(typeof P!="object")return _.valid=!1,_.error=C+"must be an object, but "+typeof P+" given",_;if(!n.helper.isString(P.type))return _.valid=!1,_.error=C+'property "type" must be a string, but '+typeof P.type+" given",_;var M=P.type=P.type.toLowerCase();if(M==="language"&&(M=P.type="lang"),M==="html"&&(M=P.type="output"),M!=="lang"&&M!=="output"&&M!=="listener")return _.valid=!1,_.error=C+"type "+M+' is not recognized. Valid values: "lang/language", "output/html" or "listener"',_;if(M==="listener"){if(n.helper.isUndefined(P.listeners))return _.valid=!1,_.error=C+'. Extensions of type "listener" must have a property called "listeners"',_}else if(n.helper.isUndefined(P.filter)&&n.helper.isUndefined(P.regex))return _.valid=!1,_.error=C+M+' extensions must define either a "regex" property or a "filter" method',_;if(P.listeners){if(typeof P.listeners!="object")return _.valid=!1,_.error=C+'"listeners" property must be an object but '+typeof P.listeners+" given",_;for(var q in P.listeners)if(P.listeners.hasOwnProperty(q)&&typeof P.listeners[q]!="function")return _.valid=!1,_.error=C+'"listeners" property must be an hash of [event name]: [callback]. listeners.'+q+" must be a function but "+typeof P.listeners[q]+" given",_}if(P.filter){if(typeof P.filter!="function")return _.valid=!1,_.error=C+'"filter" must be a function, but '+typeof P.filter+" given",_}else if(P.regex){if(n.helper.isString(P.regex)&&(P.regex=new RegExp(P.regex,"g")),!(P.regex instanceof RegExp))return _.valid=!1,_.error=C+'"regex" property must either be a string or a RegExp object, but '+typeof P.regex+" given",_;if(n.helper.isUndefined(P.replace))return _.valid=!1,_.error=C+'"regex" extensions must implement a replace string or function',_}}return _}n.validateExtension=function(f){var h=c(f,null);return h.valid?!0:(console.warn(h.error),!1)},n.hasOwnProperty("helper")||(n.helper={}),n.helper.isString=function(f){return typeof f=="string"||f instanceof String},n.helper.isFunction=function(f){var h={};return f&&h.toString.call(f)==="[object Function]"},n.helper.isArray=function(f){return Array.isArray(f)},n.helper.isUndefined=function(f){return typeof f>"u"},n.helper.forEach=function(f,h){if(n.helper.isUndefined(f))throw new Error("obj param is required");if(n.helper.isUndefined(h))throw new Error("callback param is required");if(!n.helper.isFunction(h))throw new Error("callback param must be a function/closure");if(typeof f.forEach=="function")f.forEach(h);else if(n.helper.isArray(f))for(var v=0;v<f.length;v++)h(f[v],v,f);else if(typeof f=="object")for(var _ in f)f.hasOwnProperty(_)&&h(f[_],_,f);else throw new Error("obj does not seem to be an array or an iterable object")},n.helper.stdExtName=function(f){return f.replace(/[_?*+\/\\.^-]/g,"").replace(/\s/g,"").toLowerCase()};function m(f,h){var v=h.charCodeAt(0);return"¨E"+v+"E"}n.helper.escapeCharactersCallback=m,n.helper.escapeCharacters=function(f,h,v){var _="(["+h.replace(/([\[\]\\])/g,"\\$1")+"])";v&&(_="\\\\"+_);var R=new RegExp(_,"g");return f=f.replace(R,m),f},n.helper.unescapeHTMLEntities=function(f){return f.replace(/&quot;/g,'"').replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&")};var p=function(f,h,v,_){var R=_||"",C=R.indexOf("g")>-1,P=new RegExp(h+"|"+v,"g"+R.replace(/g/g,"")),M=new RegExp(h,R.replace(/g/g,"")),q=[],L,N,j,O,I;do for(L=0;j=P.exec(f);)if(M.test(j[0]))L++||(N=P.lastIndex,O=N-j[0].length);else if(L&&!--L){I=j.index+j[0].length;var z={left:{start:O,end:N},match:{start:N,end:j.index},right:{start:j.index,end:I},wholeMatch:{start:O,end:I}};if(q.push(z),!C)return q}while(L&&(P.lastIndex=N));return q};n.helper.matchRecursiveRegExp=function(f,h,v,_){for(var R=p(f,h,v,_),C=[],P=0;P<R.length;++P)C.push([f.slice(R[P].wholeMatch.start,R[P].wholeMatch.end),f.slice(R[P].match.start,R[P].match.end),f.slice(R[P].left.start,R[P].left.end),f.slice(R[P].right.start,R[P].right.end)]);return C},n.helper.replaceRecursiveRegExp=function(f,h,v,_,R){if(!n.helper.isFunction(h)){var C=h;h=function(){return C}}var P=p(f,v,_,R),M=f,q=P.length;if(q>0){var L=[];P[0].wholeMatch.start!==0&&L.push(f.slice(0,P[0].wholeMatch.start));for(var N=0;N<q;++N)L.push(h(f.slice(P[N].wholeMatch.start,P[N].wholeMatch.end),f.slice(P[N].match.start,P[N].match.end),f.slice(P[N].left.start,P[N].left.end),f.slice(P[N].right.start,P[N].right.end))),N<q-1&&L.push(f.slice(P[N].wholeMatch.end,P[N+1].wholeMatch.start));P[q-1].wholeMatch.end<f.length&&L.push(f.slice(P[q-1].wholeMatch.end)),M=L.join("")}return M},n.helper.regexIndexOf=function(f,h,v){if(!n.helper.isString(f))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";if(!(h instanceof RegExp))throw"InvalidArgumentError: second parameter of showdown.helper.regexIndexOf function must be an instance of RegExp";var _=f.substring(v||0).search(h);return _>=0?_+(v||0):_},n.helper.splitAtIndex=function(f,h){if(!n.helper.isString(f))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";return[f.substring(0,h),f.substring(h)]},n.helper.encodeEmailAddress=function(f){var h=[function(v){return"&#"+v.charCodeAt(0)+";"},function(v){return"&#x"+v.charCodeAt(0).toString(16)+";"},function(v){return v}];return f=f.replace(/./g,function(v){if(v==="@")v=h[Math.floor(Math.random()*2)](v);else{var _=Math.random();v=_>.9?h[2](v):_>.45?h[1](v):h[0](v)}return v}),f},n.helper.padEnd=function(h,v,_){return v=v>>0,_=String(_||" "),h.length>v?String(h):(v=v-h.length,v>_.length&&(_+=_.repeat(v/_.length)),String(h)+_.slice(0,v))},typeof console>"u"&&(console={warn:function(f){alert(f)},log:function(f){alert(f)},error:function(f){throw f}}),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(f){var h={},v=[],_=[],R={},C=l,P={parsed:{},raw:"",format:""};M();function M(){f=f||{};for(var O in o)o.hasOwnProperty(O)&&(h[O]=o[O]);if(typeof f=="object")for(var I in f)f.hasOwnProperty(I)&&(h[I]=f[I]);else throw Error("Converter expects the passed parameter to be an object, but "+typeof f+" was passed instead.");h.extensions&&n.helper.forEach(h.extensions,q)}function q(O,I){if(I=I||null,n.helper.isString(O))if(O=n.helper.stdExtName(O),I=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!"),L(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 z=c(O,I);if(!z.valid)throw Error(z.error);for(var B=0;B<O.length;++B){switch(O[B].type){case"lang":v.push(O[B]);break;case"output":_.push(O[B]);break}if(O[B].hasOwnProperty("listeners"))for(var H in O[B].listeners)O[B].listeners.hasOwnProperty(H)&&N(H,O[B].listeners[H])}}function L(O,I){typeof O=="function"&&(O=O(new n.Converter)),n.helper.isArray(O)||(O=[O]);var z=c(O,I);if(!z.valid)throw Error(z.error);for(var B=0;B<O.length;++B)switch(O[B].type){case"lang":v.push(O[B]);break;case"output":_.push(O[B]);break;default:throw Error("Extension loader error: Type unrecognized!!!")}}function N(O,I){if(!n.helper.isString(O))throw Error("Invalid argument in converter.listen() method: name must be a string, but "+typeof O+" given");if(typeof I!="function")throw Error("Invalid argument in converter.listen() method: callback must be a function, but "+typeof I+" given");R.hasOwnProperty(O)||(R[O]=[]),R[O].push(I)}function j(O){var I=O.match(/^\s*/)[0].length,z=new RegExp("^\\s{0,"+I+"}","gm");return O.replace(z,"")}this._dispatch=function(I,z,B,H){if(R.hasOwnProperty(I))for(var U=0;U<R[I].length;++U){var J=R[I][U](I,z,this,B,H);J&&typeof J<"u"&&(z=J)}return z},this.listen=function(O,I){return N(O,I),this},this.makeHtml=function(O){if(!O)return O;var I={gHtmlBlocks:[],gHtmlMdBlocks:[],gHtmlSpans:[],gUrls:{},gTitles:{},gDimensions:{},gListLevel:0,hashLinkCounts:{},langExtensions:v,outputModifiers:_,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;"),h.smartIndentationFix&&(O=j(O)),O=`
146
-
147
- `+O+`
148
-
149
- `,O=n.subParser("detab")(O,h,I),O=O.replace(/^[ \t]+$/mg,""),n.helper.forEach(v,function(z){O=n.subParser("runExtension")(z,O,h,I)}),O=n.subParser("metadata")(O,h,I),O=n.subParser("hashPreCodeTags")(O,h,I),O=n.subParser("githubCodeBlocks")(O,h,I),O=n.subParser("hashHTMLBlocks")(O,h,I),O=n.subParser("hashCodeTags")(O,h,I),O=n.subParser("stripLinkDefinitions")(O,h,I),O=n.subParser("blockGamut")(O,h,I),O=n.subParser("unhashHTMLSpans")(O,h,I),O=n.subParser("unescapeSpecialChars")(O,h,I),O=O.replace(/¨D/g,"$$"),O=O.replace(/¨T/g,"¨"),O=n.subParser("completeHTMLDocument")(O,h,I),n.helper.forEach(_,function(z){O=n.subParser("runExtension")(z,O,h,I)}),P=I.metadata,O},this.makeMarkdown=this.makeMd=function(O,I){if(O=O.replace(/\r\n/g,`
150
- `),O=O.replace(/\r/g,`
151
- `),O=O.replace(/>[ \t]+</,">¨NBSP;<"),!I)if(window&&window.document)I=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 z=I.createElement("div");z.innerHTML=O;var B={preList:ne(z)};re(z);for(var H=z.childNodes,U="",J=0;J<H.length;J++)U+=n.subParser("makeMarkdown.node")(H[J],B);function re(se){for(var ce=0;ce<se.childNodes.length;++ce){var le=se.childNodes[ce];le.nodeType===3?!/\S/.test(le.nodeValue)&&!/^[ ]+$/.test(le.nodeValue)?(se.removeChild(le),--ce):(le.nodeValue=le.nodeValue.split(`
152
- `).join(" "),le.nodeValue=le.nodeValue.replace(/(\s)+/g,"$1")):le.nodeType===1&&re(le)}}function ne(se){for(var ce=se.querySelectorAll("pre"),le=[],ye=0;ye<ce.length;++ye)if(ce[ye].childElementCount===1&&ce[ye].firstChild.tagName.toLowerCase()==="code"){var we=ce[ye].firstChild.innerHTML.trim(),Ee=ce[ye].firstChild.getAttribute("data-language")||"";if(Ee==="")for(var Le=ce[ye].firstChild.className.split(" "),he=0;he<Le.length;++he){var qe=Le[he].match(/^language-(.+)$/);if(qe!==null){Ee=qe[1];break}}we=n.helper.unescapeHTMLEntities(we),le.push(we),ce[ye].outerHTML='<precode language="'+Ee+'" precodenum="'+ye.toString()+'"></precode>'}else le.push(ce[ye].innerHTML),ce[ye].innerHTML="",ce[ye].setAttribute("prenum",ye.toString());return le}return U},this.setOption=function(O,I){h[O]=I},this.getOption=function(O){return h[O]},this.getOptions=function(){return h},this.addExtension=function(O,I){I=I||null,q(O,I)},this.useExtension=function(O){q(O)},this.setFlavor=function(O){if(!u.hasOwnProperty(O))throw Error(O+" flavor was not found");var I=u[O];C=O;for(var z in I)I.hasOwnProperty(z)&&(h[z]=I[z])},this.getFlavor=function(){return C},this.removeExtension=function(O){n.helper.isArray(O)||(O=[O]);for(var I=0;I<O.length;++I){for(var z=O[I],B=0;B<v.length;++B)v[B]===z&&v.splice(B,1);for(var H=0;H<_.length;++H)_[H]===z&&_.splice(H,1)}},this.getAllExtensions=function(){return{language:v,output:_}},this.getMetadata=function(O){return O?P.raw:P.parsed},this.getMetadataFormat=function(){return P.format},this._setMetadataPair=function(O,I){P.parsed[O]=I},this._setMetadataFormat=function(O){P.format=O},this._setMetadataRaw=function(O){P.raw=O}},n.subParser("anchors",function(f,h,v){f=v.converter._dispatch("anchors.before",f,h,v);var _=function(R,C,P,M,q,L,N){if(n.helper.isUndefined(N)&&(N=""),P=P.toLowerCase(),R.search(/\(<?\s*>? ?(['"].*['"])?\)$/m)>-1)M="";else if(!M)if(P||(P=C.toLowerCase().replace(/ ?\n/g," ")),M="#"+P,!n.helper.isUndefined(v.gUrls[P]))M=v.gUrls[P],n.helper.isUndefined(v.gTitles[P])||(N=v.gTitles[P]);else return R;M=M.replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback);var j='<a href="'+M+'"';return N!==""&&N!==null&&(N=N.replace(/"/g,"&quot;"),N=N.replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback),j+=' title="'+N+'"'),h.openLinksInNewWindow&&!/^#/.test(M)&&(j+=' rel="noopener noreferrer" target="¨E95Eblank"'),j+=">"+C+"</a>",j};return f=f.replace(/\[((?:\[[^\]]*]|[^\[\]])*)] ?(?:\n *)?\[(.*?)]()()()()/g,_),f=f.replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<([^>]*)>(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,_),f=f.replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,_),f=f.replace(/\[([^\[\]]+)]()()()()()/g,_),h.ghMentions&&(f=f.replace(/(^|\s)(\\)?(@([a-z\d]+(?:[a-z\d.-]+?[a-z\d]+)*))/gmi,function(R,C,P,M,q){if(P==="\\")return C+M;if(!n.helper.isString(h.ghMentionsLink))throw new Error("ghMentionsLink option must be a string");var L=h.ghMentionsLink.replace(/\{u}/g,q),N="";return h.openLinksInNewWindow&&(N=' rel="noopener noreferrer" target="¨E95Eblank"'),C+'<a href="'+L+'"'+N+">"+M+"</a>"})),f=v.converter._dispatch("anchors.after",f,h,v),f});var g=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+?\.[^'">\s]+?)()(\1)?(?=\s|$)(?!["<>])/gi,y=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+?)([.!?,()\[\]])?(\1)?(?=\s|$)(?!["<>])/gi,x=/()<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)()>()/gi,E=/(^|\s)(?:mailto:)?([A-Za-z0-9!#$%&'*+-/=?^_`{|}~.]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?=$|\s)/gmi,k=/<()(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi,T=function(f){return function(h,v,_,R,C,P,M){_=_.replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback);var q=_,L="",N="",j=v||"",O=M||"";return/^www\./i.test(_)&&(_=_.replace(/^www\./i,"http://www.")),f.excludeTrailingPunctuationFromURLs&&P&&(L=P),f.openLinksInNewWindow&&(N=' rel="noopener noreferrer" target="¨E95Eblank"'),j+'<a href="'+_+'"'+N+">"+q+"</a>"+L+O}},w=function(f,h){return function(v,_,R){var C="mailto:";return _=_||"",R=n.subParser("unescapeSpecialChars")(R,f,h),f.encodeEmails?(C=n.helper.encodeEmailAddress(C+R),R=n.helper.encodeEmailAddress(R)):C=C+R,_+'<a href="'+C+'">'+R+"</a>"}};n.subParser("autoLinks",function(f,h,v){return f=v.converter._dispatch("autoLinks.before",f,h,v),f=f.replace(x,T(h)),f=f.replace(k,w(h,v)),f=v.converter._dispatch("autoLinks.after",f,h,v),f}),n.subParser("simplifiedAutoLinks",function(f,h,v){return h.simplifiedAutoLink&&(f=v.converter._dispatch("simplifiedAutoLinks.before",f,h,v),h.excludeTrailingPunctuationFromURLs?f=f.replace(y,T(h)):f=f.replace(g,T(h)),f=f.replace(E,w(h,v)),f=v.converter._dispatch("simplifiedAutoLinks.after",f,h,v)),f}),n.subParser("blockGamut",function(f,h,v){return f=v.converter._dispatch("blockGamut.before",f,h,v),f=n.subParser("blockQuotes")(f,h,v),f=n.subParser("headers")(f,h,v),f=n.subParser("horizontalRule")(f,h,v),f=n.subParser("lists")(f,h,v),f=n.subParser("codeBlocks")(f,h,v),f=n.subParser("tables")(f,h,v),f=n.subParser("hashHTMLBlocks")(f,h,v),f=n.subParser("paragraphs")(f,h,v),f=v.converter._dispatch("blockGamut.after",f,h,v),f}),n.subParser("blockQuotes",function(f,h,v){f=v.converter._dispatch("blockQuotes.before",f,h,v),f=f+`
153
-
154
- `;var _=/(^ {0,3}>[ \t]?.+\n(.+\n)*\n*)+/gm;return h.splitAdjacentBlockquotes&&(_=/^ {0,3}>[\s\S]*?(?:\n\n)/gm),f=f.replace(_,function(R){return R=R.replace(/^[ \t]*>[ \t]?/gm,""),R=R.replace(/¨0/g,""),R=R.replace(/^[ \t]+$/gm,""),R=n.subParser("githubCodeBlocks")(R,h,v),R=n.subParser("blockGamut")(R,h,v),R=R.replace(/(^|\n)/g,"$1 "),R=R.replace(/(\s*<pre>[^\r]+?<\/pre>)/gm,function(C,P){var M=P;return M=M.replace(/^ /mg,"¨0"),M=M.replace(/¨0/g,""),M}),n.subParser("hashBlock")(`<blockquote>
155
- `+R+`
156
- </blockquote>`,h,v)}),f=v.converter._dispatch("blockQuotes.after",f,h,v),f}),n.subParser("codeBlocks",function(f,h,v){f=v.converter._dispatch("codeBlocks.before",f,h,v),f+="¨0";var _=/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=¨0))/g;return f=f.replace(_,function(R,C,P){var M=C,q=P,L=`
157
- `;return M=n.subParser("outdent")(M,h,v),M=n.subParser("encodeCode")(M,h,v),M=n.subParser("detab")(M,h,v),M=M.replace(/^\n+/g,""),M=M.replace(/\n+$/g,""),h.omitExtraWLInCodeBlocks&&(L=""),M="<pre><code>"+M+L+"</code></pre>",n.subParser("hashBlock")(M,h,v)+q}),f=f.replace(/¨0/,""),f=v.converter._dispatch("codeBlocks.after",f,h,v),f}),n.subParser("codeSpans",function(f,h,v){return f=v.converter._dispatch("codeSpans.before",f,h,v),typeof f>"u"&&(f=""),f=f.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,function(_,R,C,P){var M=P;return M=M.replace(/^([ \t]*)/g,""),M=M.replace(/[ \t]*$/g,""),M=n.subParser("encodeCode")(M,h,v),M=R+"<code>"+M+"</code>",M=n.subParser("hashHTMLSpans")(M,h,v),M}),f=v.converter._dispatch("codeSpans.after",f,h,v),f}),n.subParser("completeHTMLDocument",function(f,h,v){if(!h.completeHTMLDocument)return f;f=v.converter._dispatch("completeHTMLDocument.before",f,h,v);var _="html",R=`<!DOCTYPE HTML>
158
- `,C="",P=`<meta charset="utf-8">
159
- `,M="",q="";typeof v.metadata.parsed.doctype<"u"&&(R="<!DOCTYPE "+v.metadata.parsed.doctype+`>
160
- `,_=v.metadata.parsed.doctype.toString().toLowerCase(),(_==="html"||_==="html5")&&(P='<meta charset="utf-8">'));for(var L in v.metadata.parsed)if(v.metadata.parsed.hasOwnProperty(L))switch(L.toLowerCase()){case"doctype":break;case"title":C="<title>"+v.metadata.parsed.title+`</title>
161
- `;break;case"charset":_==="html"||_==="html5"?P='<meta charset="'+v.metadata.parsed.charset+`">
162
- `:P='<meta name="charset" content="'+v.metadata.parsed.charset+`">
163
- `;break;case"language":case"lang":M=' lang="'+v.metadata.parsed[L]+'"',q+='<meta name="'+L+'" content="'+v.metadata.parsed[L]+`">
164
- `;break;default:q+='<meta name="'+L+'" content="'+v.metadata.parsed[L]+`">
165
- `}return f=R+"<html"+M+`>
166
- <head>
167
- `+C+P+q+`</head>
168
- <body>
169
- `+f.trim()+`
170
- </body>
171
- </html>`,f=v.converter._dispatch("completeHTMLDocument.after",f,h,v),f}),n.subParser("detab",function(f,h,v){return f=v.converter._dispatch("detab.before",f,h,v),f=f.replace(/\t(?=\t)/g," "),f=f.replace(/\t/g,"¨A¨B"),f=f.replace(/¨B(.+?)¨A/g,function(_,R){for(var C=R,P=4-C.length%4,M=0;M<P;M++)C+=" ";return C}),f=f.replace(/¨A/g," "),f=f.replace(/¨B/g,""),f=v.converter._dispatch("detab.after",f,h,v),f}),n.subParser("ellipsis",function(f,h,v){return h.ellipsis&&(f=v.converter._dispatch("ellipsis.before",f,h,v),f=f.replace(/\.\.\./g,"…"),f=v.converter._dispatch("ellipsis.after",f,h,v)),f}),n.subParser("emoji",function(f,h,v){if(!h.emoji)return f;f=v.converter._dispatch("emoji.before",f,h,v);var _=/:([\S]+?):/g;return f=f.replace(_,function(R,C){return n.helper.emojis.hasOwnProperty(C)?n.helper.emojis[C]:R}),f=v.converter._dispatch("emoji.after",f,h,v),f}),n.subParser("encodeAmpsAndAngles",function(f,h,v){return f=v.converter._dispatch("encodeAmpsAndAngles.before",f,h,v),f=f.replace(/&(?!#?[xX]?(?:[0-9a-fA-F]+|\w+);)/g,"&amp;"),f=f.replace(/<(?![a-z\/?$!])/gi,"&lt;"),f=f.replace(/</g,"&lt;"),f=f.replace(/>/g,"&gt;"),f=v.converter._dispatch("encodeAmpsAndAngles.after",f,h,v),f}),n.subParser("encodeBackslashEscapes",function(f,h,v){return f=v.converter._dispatch("encodeBackslashEscapes.before",f,h,v),f=f.replace(/\\(\\)/g,n.helper.escapeCharactersCallback),f=f.replace(/\\([`*_{}\[\]()>#+.!~=|:-])/g,n.helper.escapeCharactersCallback),f=v.converter._dispatch("encodeBackslashEscapes.after",f,h,v),f}),n.subParser("encodeCode",function(f,h,v){return f=v.converter._dispatch("encodeCode.before",f,h,v),f=f.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/([*_{}\[\]\\=~-])/g,n.helper.escapeCharactersCallback),f=v.converter._dispatch("encodeCode.after",f,h,v),f}),n.subParser("escapeSpecialCharsWithinTagAttributes",function(f,h,v){f=v.converter._dispatch("escapeSpecialCharsWithinTagAttributes.before",f,h,v);var _=/<\/?[a-z\d_:-]+(?:[\s]+[\s\S]+?)?>/gi,R=/<!(--(?:(?:[^>-]|-[^>])(?:[^-]|-[^-])*)--)>/gi;return f=f.replace(_,function(C){return C.replace(/(.)<\/?code>(?=.)/g,"$1`").replace(/([\\`*_~=|])/g,n.helper.escapeCharactersCallback)}),f=f.replace(R,function(C){return C.replace(/([\\`*_~=|])/g,n.helper.escapeCharactersCallback)}),f=v.converter._dispatch("escapeSpecialCharsWithinTagAttributes.after",f,h,v),f}),n.subParser("githubCodeBlocks",function(f,h,v){return h.ghCodeBlocks?(f=v.converter._dispatch("githubCodeBlocks.before",f,h,v),f+="¨0",f=f.replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*)\n([\s\S]*?)\n(?: {0,3})\1/g,function(_,R,C,P){var M=h.omitExtraWLInCodeBlocks?"":`
172
- `;return P=n.subParser("encodeCode")(P,h,v),P=n.subParser("detab")(P,h,v),P=P.replace(/^\n+/g,""),P=P.replace(/\n+$/g,""),P="<pre><code"+(C?' class="'+C+" language-"+C+'"':"")+">"+P+M+"</code></pre>",P=n.subParser("hashBlock")(P,h,v),`
173
-
174
- ¨G`+(v.ghCodeBlocks.push({text:_,codeblock:P})-1)+`G
175
-
176
- `}),f=f.replace(/¨0/,""),v.converter._dispatch("githubCodeBlocks.after",f,h,v)):f}),n.subParser("hashBlock",function(f,h,v){return f=v.converter._dispatch("hashBlock.before",f,h,v),f=f.replace(/(^\n+|\n+$)/g,""),f=`
177
-
178
- ¨K`+(v.gHtmlBlocks.push(f)-1)+`K
179
-
180
- `,f=v.converter._dispatch("hashBlock.after",f,h,v),f}),n.subParser("hashCodeTags",function(f,h,v){f=v.converter._dispatch("hashCodeTags.before",f,h,v);var _=function(R,C,P,M){var q=P+n.subParser("encodeCode")(C,h,v)+M;return"¨C"+(v.gHtmlSpans.push(q)-1)+"C"};return f=n.helper.replaceRecursiveRegExp(f,_,"<code\\b[^>]*>","</code>","gim"),f=v.converter._dispatch("hashCodeTags.after",f,h,v),f}),n.subParser("hashElement",function(f,h,v){return function(_,R){var C=R;return C=C.replace(/\n\n/g,`
181
- `),C=C.replace(/^\n/,""),C=C.replace(/\n+$/g,""),C=`
182
-
183
- ¨K`+(v.gHtmlBlocks.push(C)-1)+`K
184
-
185
- `,C}}),n.subParser("hashHTMLBlocks",function(f,h,v){f=v.converter._dispatch("hashHTMLBlocks.before",f,h,v);var _=["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"],R=function(O,I,z,B){var H=O;return z.search(/\bmarkdown\b/)!==-1&&(H=z+v.converter.makeHtml(I)+B),`
186
-
187
- ¨K`+(v.gHtmlBlocks.push(H)-1)+`K
188
-
189
- `};h.backslashEscapesHTMLTags&&(f=f.replace(/\\<(\/?[^>]+?)>/g,function(O,I){return"&lt;"+I+"&gt;"}));for(var C=0;C<_.length;++C)for(var P,M=new RegExp("^ {0,3}(<"+_[C]+"\\b[^>]*>)","im"),q="<"+_[C]+"\\b[^>]*>",L="</"+_[C]+">";(P=n.helper.regexIndexOf(f,M))!==-1;){var N=n.helper.splitAtIndex(f,P),j=n.helper.replaceRecursiveRegExp(N[1],R,q,L,"im");if(j===N[1])break;f=N[0].concat(j)}return f=f.replace(/(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,n.subParser("hashElement")(f,h,v)),f=n.helper.replaceRecursiveRegExp(f,function(O){return`
190
-
191
- ¨K`+(v.gHtmlBlocks.push(O)-1)+`K
192
-
193
- `},"^ {0,3}<!--","-->","gm"),f=f.replace(/(?:\n\n)( {0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,n.subParser("hashElement")(f,h,v)),f=v.converter._dispatch("hashHTMLBlocks.after",f,h,v),f}),n.subParser("hashHTMLSpans",function(f,h,v){f=v.converter._dispatch("hashHTMLSpans.before",f,h,v);function _(R){return"¨C"+(v.gHtmlSpans.push(R)-1)+"C"}return f=f.replace(/<[^>]+?\/>/gi,function(R){return _(R)}),f=f.replace(/<([^>]+?)>[\s\S]*?<\/\1>/g,function(R){return _(R)}),f=f.replace(/<([^>]+?)\s[^>]+?>[\s\S]*?<\/\1>/g,function(R){return _(R)}),f=f.replace(/<[^>]+?>/gi,function(R){return _(R)}),f=v.converter._dispatch("hashHTMLSpans.after",f,h,v),f}),n.subParser("unhashHTMLSpans",function(f,h,v){f=v.converter._dispatch("unhashHTMLSpans.before",f,h,v);for(var _=0;_<v.gHtmlSpans.length;++_){for(var R=v.gHtmlSpans[_],C=0;/¨C(\d+)C/.test(R);){var P=RegExp.$1;if(R=R.replace("¨C"+P+"C",v.gHtmlSpans[P]),C===10){console.error("maximum nesting of 10 spans reached!!!");break}++C}f=f.replace("¨C"+_+"C",R)}return f=v.converter._dispatch("unhashHTMLSpans.after",f,h,v),f}),n.subParser("hashPreCodeTags",function(f,h,v){f=v.converter._dispatch("hashPreCodeTags.before",f,h,v);var _=function(R,C,P,M){var q=P+n.subParser("encodeCode")(C,h,v)+M;return`
194
-
195
- ¨G`+(v.ghCodeBlocks.push({text:R,codeblock:q})-1)+`G
196
-
197
- `};return f=n.helper.replaceRecursiveRegExp(f,_,"^ {0,3}<pre\\b[^>]*>\\s*<code\\b[^>]*>","^ {0,3}</code>\\s*</pre>","gim"),f=v.converter._dispatch("hashPreCodeTags.after",f,h,v),f}),n.subParser("headers",function(f,h,v){f=v.converter._dispatch("headers.before",f,h,v);var _=isNaN(parseInt(h.headerLevelStart))?1:parseInt(h.headerLevelStart),R=h.smoothLivePreview?/^(.+)[ \t]*\n={2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n=+[ \t]*\n+/gm,C=h.smoothLivePreview?/^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n-+[ \t]*\n+/gm;f=f.replace(R,function(q,L){var N=n.subParser("spanGamut")(L,h,v),j=h.noHeaderId?"":' id="'+M(L)+'"',O=_,I="<h"+O+j+">"+N+"</h"+O+">";return n.subParser("hashBlock")(I,h,v)}),f=f.replace(C,function(q,L){var N=n.subParser("spanGamut")(L,h,v),j=h.noHeaderId?"":' id="'+M(L)+'"',O=_+1,I="<h"+O+j+">"+N+"</h"+O+">";return n.subParser("hashBlock")(I,h,v)});var P=h.requireSpaceBeforeHeadingText?/^(#{1,6})[ \t]+(.+?)[ \t]*#*\n+/gm:/^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm;f=f.replace(P,function(q,L,N){var j=N;h.customizedHeaderId&&(j=N.replace(/\s?\{([^{]+?)}\s*$/,""));var O=n.subParser("spanGamut")(j,h,v),I=h.noHeaderId?"":' id="'+M(N)+'"',z=_-1+L.length,B="<h"+z+I+">"+O+"</h"+z+">";return n.subParser("hashBlock")(B,h,v)});function M(q){var L,N;if(h.customizedHeaderId){var j=q.match(/\{([^{]+?)}\s*$/);j&&j[1]&&(q=j[1])}return L=q,n.helper.isString(h.prefixHeaderId)?N=h.prefixHeaderId:h.prefixHeaderId===!0?N="section-":N="",h.rawPrefixHeaderId||(L=N+L),h.ghCompatibleHeaderId?L=L.replace(/ /g,"-").replace(/&amp;/g,"").replace(/¨T/g,"").replace(/¨D/g,"").replace(/[&+$,\/:;=?@"#{}|^¨~\[\]`\\*)(%.!'<>]/g,"").toLowerCase():h.rawHeaderId?L=L.replace(/ /g,"-").replace(/&amp;/g,"&").replace(/¨T/g,"¨").replace(/¨D/g,"$").replace(/["']/g,"-").toLowerCase():L=L.replace(/[^\w]/g,"").toLowerCase(),h.rawPrefixHeaderId&&(L=N+L),v.hashLinkCounts[L]?L=L+"-"+v.hashLinkCounts[L]++:v.hashLinkCounts[L]=1,L}return f=v.converter._dispatch("headers.after",f,h,v),f}),n.subParser("horizontalRule",function(f,h,v){f=v.converter._dispatch("horizontalRule.before",f,h,v);var _=n.subParser("hashBlock")("<hr />",h,v);return f=f.replace(/^ {0,2}( ?-){3,}[ \t]*$/gm,_),f=f.replace(/^ {0,2}( ?\*){3,}[ \t]*$/gm,_),f=f.replace(/^ {0,2}( ?_){3,}[ \t]*$/gm,_),f=v.converter._dispatch("horizontalRule.after",f,h,v),f}),n.subParser("images",function(f,h,v){f=v.converter._dispatch("images.before",f,h,v);var _=/!\[([^\]]*?)][ \t]*()\([ \t]?<?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,R=/!\[([^\]]*?)][ \t]*()\([ \t]?<([^>]*)>(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(?:(["'])([^"]*?)\6))?[ \t]?\)/g,C=/!\[([^\]]*?)][ \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,P=/!\[([^\]]*?)] ?(?:\n *)?\[([\s\S]*?)]()()()()()/g,M=/!\[([^\[\]]+)]()()()()()/g;function q(N,j,O,I,z,B,H,U){return I=I.replace(/\s/g,""),L(N,j,O,I,z,B,H,U)}function L(N,j,O,I,z,B,H,U){var J=v.gUrls,re=v.gTitles,ne=v.gDimensions;if(O=O.toLowerCase(),U||(U=""),N.search(/\(<?\s*>? ?(['"].*['"])?\)$/m)>-1)I="";else if(I===""||I===null)if((O===""||O===null)&&(O=j.toLowerCase().replace(/ ?\n/g," ")),I="#"+O,!n.helper.isUndefined(J[O]))I=J[O],n.helper.isUndefined(re[O])||(U=re[O]),n.helper.isUndefined(ne[O])||(z=ne[O].width,B=ne[O].height);else return N;j=j.replace(/"/g,"&quot;").replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback),I=I.replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback);var se='<img src="'+I+'" alt="'+j+'"';return U&&n.helper.isString(U)&&(U=U.replace(/"/g,"&quot;").replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback),se+=' title="'+U+'"'),z&&B&&(z=z==="*"?"auto":z,B=B==="*"?"auto":B,se+=' width="'+z+'"',se+=' height="'+B+'"'),se+=" />",se}return f=f.replace(P,L),f=f.replace(C,q),f=f.replace(R,L),f=f.replace(_,L),f=f.replace(M,L),f=v.converter._dispatch("images.after",f,h,v),f}),n.subParser("italicsAndBold",function(f,h,v){f=v.converter._dispatch("italicsAndBold.before",f,h,v);function _(R,C,P){return C+R+P}return h.literalMidWordUnderscores?(f=f.replace(/\b___(\S[\s\S]*?)___\b/g,function(R,C){return _(C,"<strong><em>","</em></strong>")}),f=f.replace(/\b__(\S[\s\S]*?)__\b/g,function(R,C){return _(C,"<strong>","</strong>")}),f=f.replace(/\b_(\S[\s\S]*?)_\b/g,function(R,C){return _(C,"<em>","</em>")})):(f=f.replace(/___(\S[\s\S]*?)___/g,function(R,C){return/\S$/.test(C)?_(C,"<strong><em>","</em></strong>"):R}),f=f.replace(/__(\S[\s\S]*?)__/g,function(R,C){return/\S$/.test(C)?_(C,"<strong>","</strong>"):R}),f=f.replace(/_([^\s_][\s\S]*?)_/g,function(R,C){return/\S$/.test(C)?_(C,"<em>","</em>"):R})),h.literalMidWordAsterisks?(f=f.replace(/([^*]|^)\B\*\*\*(\S[\s\S]*?)\*\*\*\B(?!\*)/g,function(R,C,P){return _(P,C+"<strong><em>","</em></strong>")}),f=f.replace(/([^*]|^)\B\*\*(\S[\s\S]*?)\*\*\B(?!\*)/g,function(R,C,P){return _(P,C+"<strong>","</strong>")}),f=f.replace(/([^*]|^)\B\*(\S[\s\S]*?)\*\B(?!\*)/g,function(R,C,P){return _(P,C+"<em>","</em>")})):(f=f.replace(/\*\*\*(\S[\s\S]*?)\*\*\*/g,function(R,C){return/\S$/.test(C)?_(C,"<strong><em>","</em></strong>"):R}),f=f.replace(/\*\*(\S[\s\S]*?)\*\*/g,function(R,C){return/\S$/.test(C)?_(C,"<strong>","</strong>"):R}),f=f.replace(/\*([^\s*][\s\S]*?)\*/g,function(R,C){return/\S$/.test(C)?_(C,"<em>","</em>"):R})),f=v.converter._dispatch("italicsAndBold.after",f,h,v),f}),n.subParser("lists",function(f,h,v){function _(P,M){v.gListLevel++,P=P.replace(/\n{2,}$/,`
198
- `),P+="¨0";var q=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0| {0,3}([*+-]|\d+[.])[ \t]+))/gm,L=/\n[ \t]*\n(?!¨0)/.test(P);return h.disableForced4SpacesIndentedSublists&&(q=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0|\2([*+-]|\d+[.])[ \t]+))/gm),P=P.replace(q,function(N,j,O,I,z,B,H){H=H&&H.trim()!=="";var U=n.subParser("outdent")(z,h,v),J="";return B&&h.tasklists&&(J=' class="task-list-item" style="list-style-type: none;"',U=U.replace(/^[ \t]*\[(x|X| )?]/m,function(){var re='<input type="checkbox" disabled style="margin: 0px 0.35em 0.25em -1.6em; vertical-align: middle;"';return H&&(re+=" checked"),re+=">",re})),U=U.replace(/^([-*+]|\d\.)[ \t]+[\S\n ]*/g,function(re){return"¨A"+re}),j||U.search(/\n{2,}/)>-1?(U=n.subParser("githubCodeBlocks")(U,h,v),U=n.subParser("blockGamut")(U,h,v)):(U=n.subParser("lists")(U,h,v),U=U.replace(/\n$/,""),U=n.subParser("hashHTMLBlocks")(U,h,v),U=U.replace(/\n\n+/g,`
199
-
200
- `),L?U=n.subParser("paragraphs")(U,h,v):U=n.subParser("spanGamut")(U,h,v)),U=U.replace("¨A",""),U="<li"+J+">"+U+`</li>
201
- `,U}),P=P.replace(/¨0/g,""),v.gListLevel--,M&&(P=P.replace(/\s+$/,"")),P}function R(P,M){if(M==="ol"){var q=P.match(/^ *(\d+)\./);if(q&&q[1]!=="1")return' start="'+q[1]+'"'}return""}function C(P,M,q){var L=h.disableForced4SpacesIndentedSublists?/^ ?\d+\.[ \t]/gm:/^ {0,3}\d+\.[ \t]/gm,N=h.disableForced4SpacesIndentedSublists?/^ ?[*+-][ \t]/gm:/^ {0,3}[*+-][ \t]/gm,j=M==="ul"?L:N,O="";if(P.search(j)!==-1)(function z(B){var H=B.search(j),U=R(P,M);H!==-1?(O+=`
202
-
203
- <`+M+U+`>
204
- `+_(B.slice(0,H),!!q)+"</"+M+`>
205
- `,M=M==="ul"?"ol":"ul",j=M==="ul"?L:N,z(B.slice(H))):O+=`
206
-
207
- <`+M+U+`>
208
- `+_(B,!!q)+"</"+M+`>
209
- `})(P);else{var I=R(P,M);O=`
210
-
211
- <`+M+I+`>
212
- `+_(P,!!q)+"</"+M+`>
213
- `}return O}return f=v.converter._dispatch("lists.before",f,h,v),f+="¨0",v.gListLevel?f=f.replace(/^(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,function(P,M,q){var L=q.search(/[*+-]/g)>-1?"ul":"ol";return C(M,L,!0)}):f=f.replace(/(\n\n|^\n?)(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,function(P,M,q,L){var N=L.search(/[*+-]/g)>-1?"ul":"ol";return C(q,N,!1)}),f=f.replace(/¨0/,""),f=v.converter._dispatch("lists.after",f,h,v),f}),n.subParser("metadata",function(f,h,v){if(!h.metadata)return f;f=v.converter._dispatch("metadata.before",f,h,v);function _(R){v.metadata.raw=R,R=R.replace(/&/g,"&amp;").replace(/"/g,"&quot;"),R=R.replace(/\n {4}/g," "),R.replace(/^([\S ]+): +([\s\S]+?)$/gm,function(C,P,M){return v.metadata.parsed[P]=M,""})}return f=f.replace(/^\s*«««+(\S*?)\n([\s\S]+?)\n»»»+\n/,function(R,C,P){return _(P),"¨M"}),f=f.replace(/^\s*---+(\S*?)\n([\s\S]+?)\n---+\n/,function(R,C,P){return C&&(v.metadata.format=C),_(P),"¨M"}),f=f.replace(/¨M/g,""),f=v.converter._dispatch("metadata.after",f,h,v),f}),n.subParser("outdent",function(f,h,v){return f=v.converter._dispatch("outdent.before",f,h,v),f=f.replace(/^(\t|[ ]{1,4})/gm,"¨0"),f=f.replace(/¨0/g,""),f=v.converter._dispatch("outdent.after",f,h,v),f}),n.subParser("paragraphs",function(f,h,v){f=v.converter._dispatch("paragraphs.before",f,h,v),f=f.replace(/^\n+/g,""),f=f.replace(/\n+$/g,"");for(var _=f.split(/\n{2,}/g),R=[],C=_.length,P=0;P<C;P++){var M=_[P];M.search(/¨(K|G)(\d+)\1/g)>=0?R.push(M):M.search(/\S/)>=0&&(M=n.subParser("spanGamut")(M,h,v),M=M.replace(/^([ \t]*)/g,"<p>"),M+="</p>",R.push(M))}for(C=R.length,P=0;P<C;P++){for(var q="",L=R[P],N=!1;/¨(K|G)(\d+)\1/.test(L);){var j=RegExp.$1,O=RegExp.$2;j==="K"?q=v.gHtmlBlocks[O]:N?q=n.subParser("encodeCode")(v.ghCodeBlocks[O].text,h,v):q=v.ghCodeBlocks[O].codeblock,q=q.replace(/\$/g,"$$$$"),L=L.replace(/(\n\n)?¨(K|G)\d+\2(\n\n)?/,q),/^<pre\b[^>]*>\s*<code\b[^>]*>/.test(L)&&(N=!0)}R[P]=L}return f=R.join(`
214
- `),f=f.replace(/^\n+/g,""),f=f.replace(/\n+$/g,""),v.converter._dispatch("paragraphs.after",f,h,v)}),n.subParser("runExtension",function(f,h,v,_){if(f.filter)h=f.filter(h,_.converter,v);else if(f.regex){var R=f.regex;R instanceof RegExp||(R=new RegExp(R,"g")),h=h.replace(R,f.replace)}return h}),n.subParser("spanGamut",function(f,h,v){return f=v.converter._dispatch("spanGamut.before",f,h,v),f=n.subParser("codeSpans")(f,h,v),f=n.subParser("escapeSpecialCharsWithinTagAttributes")(f,h,v),f=n.subParser("encodeBackslashEscapes")(f,h,v),f=n.subParser("images")(f,h,v),f=n.subParser("anchors")(f,h,v),f=n.subParser("autoLinks")(f,h,v),f=n.subParser("simplifiedAutoLinks")(f,h,v),f=n.subParser("emoji")(f,h,v),f=n.subParser("underline")(f,h,v),f=n.subParser("italicsAndBold")(f,h,v),f=n.subParser("strikethrough")(f,h,v),f=n.subParser("ellipsis")(f,h,v),f=n.subParser("hashHTMLSpans")(f,h,v),f=n.subParser("encodeAmpsAndAngles")(f,h,v),h.simpleLineBreaks?/\n\n¨K/.test(f)||(f=f.replace(/\n+/g,`<br />
215
- `)):f=f.replace(/ +\n/g,`<br />
216
- `),f=v.converter._dispatch("spanGamut.after",f,h,v),f}),n.subParser("strikethrough",function(f,h,v){function _(R){return h.simplifiedAutoLink&&(R=n.subParser("simplifiedAutoLinks")(R,h,v)),"<del>"+R+"</del>"}return h.strikethrough&&(f=v.converter._dispatch("strikethrough.before",f,h,v),f=f.replace(/(?:~){2}([\s\S]+?)(?:~){2}/g,function(R,C){return _(C)}),f=v.converter._dispatch("strikethrough.after",f,h,v)),f}),n.subParser("stripLinkDefinitions",function(f,h,v){var _=/^ {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,R=/^ {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;f+="¨0";var C=function(P,M,q,L,N,j,O){return M=M.toLowerCase(),f.toLowerCase().split(M).length-1<2?P:(q.match(/^data:.+?\/.+?;base64,/)?v.gUrls[M]=q.replace(/\s/g,""):v.gUrls[M]=n.subParser("encodeAmpsAndAngles")(q,h,v),j?j+O:(O&&(v.gTitles[M]=O.replace(/"|'/g,"&quot;")),h.parseImgDimensions&&L&&N&&(v.gDimensions[M]={width:L,height:N}),""))};return f=f.replace(R,C),f=f.replace(_,C),f=f.replace(/¨0/,""),f}),n.subParser("tables",function(f,h,v){if(!h.tables)return f;var _=/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,R=/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm;function C(N){return/^:[ \t]*--*$/.test(N)?' style="text-align:left;"':/^--*[ \t]*:[ \t]*$/.test(N)?' style="text-align:right;"':/^:[ \t]*--*[ \t]*:$/.test(N)?' style="text-align:center;"':""}function P(N,j){var O="";return N=N.trim(),(h.tablesHeaderId||h.tableHeaderId)&&(O=' id="'+N.replace(/ /g,"_").toLowerCase()+'"'),N=n.subParser("spanGamut")(N,h,v),"<th"+O+j+">"+N+`</th>
217
- `}function M(N,j){var O=n.subParser("spanGamut")(N,h,v);return"<td"+j+">"+O+`</td>
218
- `}function q(N,j){for(var O=`<table>
219
- <thead>
220
- <tr>
221
- `,I=N.length,z=0;z<I;++z)O+=N[z];for(O+=`</tr>
222
- </thead>
223
- <tbody>
224
- `,z=0;z<j.length;++z){O+=`<tr>
225
- `;for(var B=0;B<I;++B)O+=j[z][B];O+=`</tr>
226
- `}return O+=`</tbody>
227
- </table>
228
- `,O}function L(N){var j,O=N.split(`
229
- `);for(j=0;j<O.length;++j)/^ {0,3}\|/.test(O[j])&&(O[j]=O[j].replace(/^ {0,3}\|/,"")),/\|[ \t]*$/.test(O[j])&&(O[j]=O[j].replace(/\|[ \t]*$/,"")),O[j]=n.subParser("codeSpans")(O[j],h,v);var I=O[0].split("|").map(function(se){return se.trim()}),z=O[1].split("|").map(function(se){return se.trim()}),B=[],H=[],U=[],J=[];for(O.shift(),O.shift(),j=0;j<O.length;++j)O[j].trim()!==""&&B.push(O[j].split("|").map(function(se){return se.trim()}));if(I.length<z.length)return N;for(j=0;j<z.length;++j)U.push(C(z[j]));for(j=0;j<I.length;++j)n.helper.isUndefined(U[j])&&(U[j]=""),H.push(P(I[j],U[j]));for(j=0;j<B.length;++j){for(var re=[],ne=0;ne<H.length;++ne)n.helper.isUndefined(B[j][ne]),re.push(M(B[j][ne],U[ne]));J.push(re)}return q(H,J)}return f=v.converter._dispatch("tables.before",f,h,v),f=f.replace(/\\(\|)/g,n.helper.escapeCharactersCallback),f=f.replace(_,L),f=f.replace(R,L),f=v.converter._dispatch("tables.after",f,h,v),f}),n.subParser("underline",function(f,h,v){return h.underline&&(f=v.converter._dispatch("underline.before",f,h,v),h.literalMidWordUnderscores?(f=f.replace(/\b___(\S[\s\S]*?)___\b/g,function(_,R){return"<u>"+R+"</u>"}),f=f.replace(/\b__(\S[\s\S]*?)__\b/g,function(_,R){return"<u>"+R+"</u>"})):(f=f.replace(/___(\S[\s\S]*?)___/g,function(_,R){return/\S$/.test(R)?"<u>"+R+"</u>":_}),f=f.replace(/__(\S[\s\S]*?)__/g,function(_,R){return/\S$/.test(R)?"<u>"+R+"</u>":_})),f=f.replace(/(_)/g,n.helper.escapeCharactersCallback),f=v.converter._dispatch("underline.after",f,h,v)),f}),n.subParser("unescapeSpecialChars",function(f,h,v){return f=v.converter._dispatch("unescapeSpecialChars.before",f,h,v),f=f.replace(/¨E(\d+)E/g,function(_,R){var C=parseInt(R);return String.fromCharCode(C)}),f=v.converter._dispatch("unescapeSpecialChars.after",f,h,v),f}),n.subParser("makeMarkdown.blockquote",function(f,h){var v="";if(f.hasChildNodes())for(var _=f.childNodes,R=_.length,C=0;C<R;++C){var P=n.subParser("makeMarkdown.node")(_[C],h);P!==""&&(v+=P)}return v=v.trim(),v="> "+v.split(`
230
- `).join(`
231
- > `),v}),n.subParser("makeMarkdown.codeBlock",function(f,h){var v=f.getAttribute("language"),_=f.getAttribute("precodenum");return"```"+v+`
232
- `+h.preList[_]+"\n```"}),n.subParser("makeMarkdown.codeSpan",function(f){return"`"+f.innerHTML+"`"}),n.subParser("makeMarkdown.emphasis",function(f,h){var v="";if(f.hasChildNodes()){v+="*";for(var _=f.childNodes,R=_.length,C=0;C<R;++C)v+=n.subParser("makeMarkdown.node")(_[C],h);v+="*"}return v}),n.subParser("makeMarkdown.header",function(f,h,v){var _=new Array(v+1).join("#"),R="";if(f.hasChildNodes()){R=_+" ";for(var C=f.childNodes,P=C.length,M=0;M<P;++M)R+=n.subParser("makeMarkdown.node")(C[M],h)}return R}),n.subParser("makeMarkdown.hr",function(){return"---"}),n.subParser("makeMarkdown.image",function(f){var h="";return f.hasAttribute("src")&&(h+="!["+f.getAttribute("alt")+"](",h+="<"+f.getAttribute("src")+">",f.hasAttribute("width")&&f.hasAttribute("height")&&(h+=" ="+f.getAttribute("width")+"x"+f.getAttribute("height")),f.hasAttribute("title")&&(h+=' "'+f.getAttribute("title")+'"'),h+=")"),h}),n.subParser("makeMarkdown.links",function(f,h){var v="";if(f.hasChildNodes()&&f.hasAttribute("href")){var _=f.childNodes,R=_.length;v="[";for(var C=0;C<R;++C)v+=n.subParser("makeMarkdown.node")(_[C],h);v+="](",v+="<"+f.getAttribute("href")+">",f.hasAttribute("title")&&(v+=' "'+f.getAttribute("title")+'"'),v+=")"}return v}),n.subParser("makeMarkdown.list",function(f,h,v){var _="";if(!f.hasChildNodes())return"";for(var R=f.childNodes,C=R.length,P=f.getAttribute("start")||1,M=0;M<C;++M)if(!(typeof R[M].tagName>"u"||R[M].tagName.toLowerCase()!=="li")){var q="";v==="ol"?q=P.toString()+". ":q="- ",_+=q+n.subParser("makeMarkdown.listItem")(R[M],h),++P}return _+=`
233
- <!-- -->
234
- `,_.trim()}),n.subParser("makeMarkdown.listItem",function(f,h){for(var v="",_=f.childNodes,R=_.length,C=0;C<R;++C)v+=n.subParser("makeMarkdown.node")(_[C],h);return/\n$/.test(v)?v=v.split(`
235
- `).join(`
236
- `).replace(/^ {4}$/gm,"").replace(/\n\n+/g,`
237
-
238
- `):v+=`
239
- `,v}),n.subParser("makeMarkdown.node",function(f,h,v){v=v||!1;var _="";if(f.nodeType===3)return n.subParser("makeMarkdown.txt")(f,h);if(f.nodeType===8)return"<!--"+f.data+`-->
240
-
241
- `;if(f.nodeType!==1)return"";var R=f.tagName.toLowerCase();switch(R){case"h1":v||(_=n.subParser("makeMarkdown.header")(f,h,1)+`
242
-
243
- `);break;case"h2":v||(_=n.subParser("makeMarkdown.header")(f,h,2)+`
244
-
245
- `);break;case"h3":v||(_=n.subParser("makeMarkdown.header")(f,h,3)+`
246
-
247
- `);break;case"h4":v||(_=n.subParser("makeMarkdown.header")(f,h,4)+`
248
-
249
- `);break;case"h5":v||(_=n.subParser("makeMarkdown.header")(f,h,5)+`
250
-
251
- `);break;case"h6":v||(_=n.subParser("makeMarkdown.header")(f,h,6)+`
252
-
253
- `);break;case"p":v||(_=n.subParser("makeMarkdown.paragraph")(f,h)+`
254
-
255
- `);break;case"blockquote":v||(_=n.subParser("makeMarkdown.blockquote")(f,h)+`
256
-
257
- `);break;case"hr":v||(_=n.subParser("makeMarkdown.hr")(f,h)+`
258
-
259
- `);break;case"ol":v||(_=n.subParser("makeMarkdown.list")(f,h,"ol")+`
260
-
261
- `);break;case"ul":v||(_=n.subParser("makeMarkdown.list")(f,h,"ul")+`
262
-
263
- `);break;case"precode":v||(_=n.subParser("makeMarkdown.codeBlock")(f,h)+`
264
-
265
- `);break;case"pre":v||(_=n.subParser("makeMarkdown.pre")(f,h)+`
266
-
267
- `);break;case"table":v||(_=n.subParser("makeMarkdown.table")(f,h)+`
268
-
269
- `);break;case"code":_=n.subParser("makeMarkdown.codeSpan")(f,h);break;case"em":case"i":_=n.subParser("makeMarkdown.emphasis")(f,h);break;case"strong":case"b":_=n.subParser("makeMarkdown.strong")(f,h);break;case"del":_=n.subParser("makeMarkdown.strikethrough")(f,h);break;case"a":_=n.subParser("makeMarkdown.links")(f,h);break;case"img":_=n.subParser("makeMarkdown.image")(f,h);break;default:_=f.outerHTML+`
270
-
271
- `}return _}),n.subParser("makeMarkdown.paragraph",function(f,h){var v="";if(f.hasChildNodes())for(var _=f.childNodes,R=_.length,C=0;C<R;++C)v+=n.subParser("makeMarkdown.node")(_[C],h);return v=v.trim(),v}),n.subParser("makeMarkdown.pre",function(f,h){var v=f.getAttribute("prenum");return"<pre>"+h.preList[v]+"</pre>"}),n.subParser("makeMarkdown.strikethrough",function(f,h){var v="";if(f.hasChildNodes()){v+="~~";for(var _=f.childNodes,R=_.length,C=0;C<R;++C)v+=n.subParser("makeMarkdown.node")(_[C],h);v+="~~"}return v}),n.subParser("makeMarkdown.strong",function(f,h){var v="";if(f.hasChildNodes()){v+="**";for(var _=f.childNodes,R=_.length,C=0;C<R;++C)v+=n.subParser("makeMarkdown.node")(_[C],h);v+="**"}return v}),n.subParser("makeMarkdown.table",function(f,h){var v="",_=[[],[]],R=f.querySelectorAll("thead>tr>th"),C=f.querySelectorAll("tbody>tr"),P,M;for(P=0;P<R.length;++P){var q=n.subParser("makeMarkdown.tableCell")(R[P],h),L="---";if(R[P].hasAttribute("style")){var N=R[P].getAttribute("style").toLowerCase().replace(/\s/g,"");switch(N){case"text-align:left;":L=":---";break;case"text-align:right;":L="---:";break;case"text-align:center;":L=":---:";break}}_[0][P]=q.trim(),_[1][P]=L}for(P=0;P<C.length;++P){var j=_.push([])-1,O=C[P].getElementsByTagName("td");for(M=0;M<R.length;++M){var I=" ";typeof O[M]<"u"&&(I=n.subParser("makeMarkdown.tableCell")(O[M],h)),_[j].push(I)}}var z=3;for(P=0;P<_.length;++P)for(M=0;M<_[P].length;++M){var B=_[P][M].length;B>z&&(z=B)}for(P=0;P<_.length;++P){for(M=0;M<_[P].length;++M)P===1?_[P][M].slice(-1)===":"?_[P][M]=n.helper.padEnd(_[P][M].slice(-1),z-1,"-")+":":_[P][M]=n.helper.padEnd(_[P][M],z,"-"):_[P][M]=n.helper.padEnd(_[P][M],z);v+="| "+_[P].join(" | ")+` |
272
- `}return v.trim()}),n.subParser("makeMarkdown.tableCell",function(f,h){var v="";if(!f.hasChildNodes())return"";for(var _=f.childNodes,R=_.length,C=0;C<R;++C)v+=n.subParser("makeMarkdown.node")(_[C],h,!0);return v.trim()}),n.subParser("makeMarkdown.txt",function(f){var h=f.nodeValue;return h=h.replace(/ +/g," "),h=h.replace(/¨NBSP;/g," "),h=n.helper.unescapeHTMLEntities(h),h=h.replace(/([*_~|`])/g,"\\$1"),h=h.replace(/^(\s*)>/g,"\\$1>"),h=h.replace(/^#/gm,"\\#"),h=h.replace(/^(\s*)([-=]{3,})(\s*)$/,"$1\\$2$3"),h=h.replace(/^( {0,3}\d+)\./gm,"$1\\."),h=h.replace(/^( {0,3})([+-])/gm,"$1\\$2"),h=h.replace(/]([\s]*)\(/g,"\\]$1\\("),h=h.replace(/^ {0,3}\[([\S \t]*?)]:/gm,"\\[$1]:"),h});var S=this;e.exports?e.exports=n:S.showdown=n}).call(wN)}(lf)),lf.exports}var SN=xN();function Cd(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var CN=0;function hS(e){return"__private_"+CN+++"_"+e}function EN(e,t,r){const n=[];return e.forEach(a=>typeof a!="string"?n.push(a):t[Symbol.split](a).forEach((i,o,l)=>{i!==""&&n.push(i),o<l.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 Y3(e,t){const r=/\$/g,n="$$$$";let a=[e];if(t==null)return a;for(const i of Object.keys(t))if(i!=="_"){let o=t[i];typeof o=="string"&&(o=r[Symbol.replace](o,n)),a=EN(a,new RegExp(`%\\{${i}\\}`,"g"),o)}return a}const kN=e=>{throw new Error(`missing string: ${e}`)};var Qu=hS("onMissingKey"),el=hS("apply");class pS{constructor(t,r){let{onMissingKey:n=kN}=r===void 0?{}:r;Object.defineProperty(this,el,{value:TN}),Object.defineProperty(this,Qu,{writable:!0,value:void 0}),this.locale={strings:{},pluralize(a){return a===1?0:1}},Array.isArray(t)?t.forEach(Cd(this,el)[el],this):Cd(this,el)[el](t),Cd(this,Qu)[Qu]=n}translate(t,r){return this.translateArray(t,r).join("")}translateArray(t,r){let n=this.locale.strings[t];if(n==null&&(Cd(this,Qu)[Qu](t),n=t),typeof n=="object"){if(r&&typeof r.smart_count<"u"){const i=this.locale.pluralize(r.smart_count);return Y3(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 Y3(n,r)}}function TN(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 ON{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 pS([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 mS="3.7.7",AN=mS,Bs=typeof Buffer=="function",G3=typeof TextDecoder=="function"?new TextDecoder:void 0,K3=typeof TextEncoder=="function"?new TextEncoder:void 0,RN="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Cl=Array.prototype.slice.call(RN),Ed=(e=>{let t={};return e.forEach((r,n)=>t[r]=n),t})(Cl),PN=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,mr=String.fromCharCode.bind(String),X3=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),gS=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),vS=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),bS=e=>{let t,r,n,a,i="";const o=e.length%3;for(let l=0;l<e.length;){if((r=e.charCodeAt(l++))>255||(n=e.charCodeAt(l++))>255||(a=e.charCodeAt(l++))>255)throw new TypeError("invalid character found");t=r<<16|n<<8|a,i+=Cl[t>>18&63]+Cl[t>>12&63]+Cl[t>>6&63]+Cl[t&63]}return o?i.slice(0,o-3)+"===".substring(o):i},iv=typeof btoa=="function"?e=>btoa(e):Bs?e=>Buffer.from(e,"binary").toString("base64"):bS,Yg=Bs?e=>Buffer.from(e).toString("base64"):e=>{let r=[];for(let n=0,a=e.length;n<a;n+=4096)r.push(mr.apply(null,e.subarray(n,n+4096)));return iv(r.join(""))},cf=(e,t=!1)=>t?gS(Yg(e)):Yg(e),DN=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?mr(192|t>>>6)+mr(128|t&63):mr(224|t>>>12&15)+mr(128|t>>>6&63)+mr(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return mr(240|t>>>18&7)+mr(128|t>>>12&63)+mr(128|t>>>6&63)+mr(128|t&63)}},MN=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,yS=e=>e.replace(MN,DN),Z3=Bs?e=>Buffer.from(e,"utf8").toString("base64"):K3?e=>Yg(K3.encode(e)):e=>iv(yS(e)),vs=(e,t=!1)=>t?gS(Z3(e)):Z3(e),J3=e=>vs(e,!0),FN=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,NN=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 mr((r>>>10)+55296)+mr((r&1023)+56320);case 3:return mr((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return mr((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},_S=e=>e.replace(FN,NN),wS=e=>{if(e=e.replace(/\s+/g,""),!PN.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=Ed[e.charAt(i++)]<<18|Ed[e.charAt(i++)]<<12|(n=Ed[e.charAt(i++)])<<6|(a=Ed[e.charAt(i++)]),r+=n===64?mr(t>>16&255):a===64?mr(t>>16&255,t>>8&255):mr(t>>16&255,t>>8&255,t&255);return r},ov=typeof atob=="function"?e=>atob(vS(e)):Bs?e=>Buffer.from(e,"base64").toString("binary"):wS,xS=Bs?e=>X3(Buffer.from(e,"base64")):e=>X3(ov(e).split("").map(t=>t.charCodeAt(0))),SS=e=>xS(CS(e)),IN=Bs?e=>Buffer.from(e,"base64").toString("utf8"):G3?e=>G3.decode(xS(e)):e=>_S(ov(e)),CS=e=>vS(e.replace(/[-_]/g,t=>t=="-"?"+":"/")),Gg=e=>IN(CS(e)),LN=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)},ES=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),kS=function(){const e=(t,r)=>Object.defineProperty(String.prototype,t,ES(r));e("fromBase64",function(){return Gg(this)}),e("toBase64",function(t){return vs(this,t)}),e("toBase64URI",function(){return vs(this,!0)}),e("toBase64URL",function(){return vs(this,!0)}),e("toUint8Array",function(){return SS(this)})},TS=function(){const e=(t,r)=>Object.defineProperty(Uint8Array.prototype,t,ES(r));e("toBase64",function(t){return cf(this,t)}),e("toBase64URI",function(){return cf(this,!0)}),e("toBase64URL",function(){return cf(this,!0)})},jN=()=>{kS(),TS()},$N={version:mS,VERSION:AN,atob:ov,atobPolyfill:wS,btoa:iv,btoaPolyfill:bS,fromBase64:Gg,toBase64:vs,encode:vs,encodeURI:J3,encodeURL:J3,utob:yS,btou:_S,decode:Gg,isValid:LN,fromUint8Array:cf,toUint8Array:SS,extendString:kS,extendUint8Array:TS,extendBuiltins:jN};var mm,Q3;function zN(){return Q3||(Q3=1,mm=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}),mm}var kd={},ew;function BN(){if(ew)return kd;ew=1;var e=Object.prototype.hasOwnProperty,t;function r(o){try{return decodeURIComponent(o.replace(/\+/g," "))}catch{return null}}function n(o){try{return encodeURIComponent(o)}catch{return null}}function a(o){for(var l=/([^=?#&]+)=?([^&]*)/g,u={},c;c=l.exec(o);){var m=r(c[1]),p=r(c[2]);m===null||p===null||m in u||(u[m]=p)}return u}function i(o,l){l=l||"";var u=[],c,m;typeof l!="string"&&(l="?");for(m in o)if(e.call(o,m)){if(c=o[m],!c&&(c===null||c===t||isNaN(c))&&(c=""),m=n(m),c=n(c),m===null||c===null)continue;u.push(m+"="+c)}return u.length?l+u.join("&"):""}return kd.stringify=i,kd.parse=a,kd}var gm,tw;function HN(){if(tw)return gm;tw=1;var e=zN(),t=BN(),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+$/,o=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,l=/^[a-zA-Z]:/;function u(w){return(w||"").toString().replace(r,"")}var c=[["#","hash"],["?","query"],function(S,f){return g(f.protocol)?S.replace(/\\/g,"/"):S},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],m={hash:1,query:1};function p(w){var S;typeof window<"u"?S=window:typeof Un<"u"?S=Un:typeof self<"u"?S=self:S={};var f=S.location||{};w=w||f;var h={},v=typeof w,_;if(w.protocol==="blob:")h=new E(unescape(w.pathname),{});else if(v==="string"){h=new E(w,{});for(_ in m)delete h[_]}else if(v==="object"){for(_ in w)_ in m||(h[_]=w[_]);h.slashes===void 0&&(h.slashes=a.test(w.href))}return h}function g(w){return w==="file:"||w==="ftp:"||w==="http:"||w==="https:"||w==="ws:"||w==="wss:"}function y(w,S){w=u(w),w=w.replace(n,""),S=S||{};var f=o.exec(w),h=f[1]?f[1].toLowerCase():"",v=!!f[2],_=!!f[3],R=0,C;return v?_?(C=f[2]+f[3]+f[4],R=f[2].length+f[3].length):(C=f[2]+f[4],R=f[2].length):_?(C=f[3]+f[4],R=f[3].length):C=f[4],h==="file:"?R>=2&&(C=C.slice(2)):g(h)?C=f[4]:h?v&&(C=C.slice(2)):R>=2&&g(S.protocol)&&(C=f[4]),{protocol:h,slashes:v||g(h),slashesCount:R,rest:C}}function x(w,S){if(w==="")return S;for(var f=(S||"/").split("/").slice(0,-1).concat(w.split("/")),h=f.length,v=f[h-1],_=!1,R=0;h--;)f[h]==="."?f.splice(h,1):f[h]===".."?(f.splice(h,1),R++):R&&(h===0&&(_=!0),f.splice(h,1),R--);return _&&f.unshift(""),(v==="."||v==="..")&&f.push(""),f.join("/")}function E(w,S,f){if(w=u(w),w=w.replace(n,""),!(this instanceof E))return new E(w,S,f);var h,v,_,R,C,P,M=c.slice(),q=typeof S,L=this,N=0;for(q!=="object"&&q!=="string"&&(f=S,S=null),f&&typeof f!="function"&&(f=t.parse),S=p(S),v=y(w||"",S),h=!v.protocol&&!v.slashes,L.slashes=v.slashes||h&&S.slashes,L.protocol=v.protocol||S.protocol||"",w=v.rest,(v.protocol==="file:"&&(v.slashesCount!==2||l.test(w))||!v.slashes&&(v.protocol||v.slashesCount<2||!g(L.protocol)))&&(M[3]=[/(.*)/,"pathname"]);N<M.length;N++){if(R=M[N],typeof R=="function"){w=R(w,L);continue}_=R[0],P=R[1],_!==_?L[P]=w:typeof _=="string"?(C=_==="@"?w.lastIndexOf(_):w.indexOf(_),~C&&(typeof R[2]=="number"?(L[P]=w.slice(0,C),w=w.slice(C+R[2])):(L[P]=w.slice(C),w=w.slice(0,C)))):(C=_.exec(w))&&(L[P]=C[1],w=w.slice(0,C.index)),L[P]=L[P]||h&&R[3]&&S[P]||"",R[4]&&(L[P]=L[P].toLowerCase())}f&&(L.query=f(L.query)),h&&S.slashes&&L.pathname.charAt(0)!=="/"&&(L.pathname!==""||S.pathname!=="")&&(L.pathname=x(L.pathname,S.pathname)),L.pathname.charAt(0)!=="/"&&g(L.protocol)&&(L.pathname="/"+L.pathname),e(L.port,L.protocol)||(L.host=L.hostname,L.port=""),L.username=L.password="",L.auth&&(C=L.auth.indexOf(":"),~C?(L.username=L.auth.slice(0,C),L.username=encodeURIComponent(decodeURIComponent(L.username)),L.password=L.auth.slice(C+1),L.password=encodeURIComponent(decodeURIComponent(L.password))):L.username=encodeURIComponent(decodeURIComponent(L.auth)),L.auth=L.password?L.username+":"+L.password:L.username),L.origin=L.protocol!=="file:"&&g(L.protocol)&&L.host?L.protocol+"//"+L.host:"null",L.href=L.toString()}function k(w,S,f){var h=this;switch(w){case"query":typeof S=="string"&&S.length&&(S=(f||t.parse)(S)),h[w]=S;break;case"port":h[w]=S,e(S,h.protocol)?S&&(h.host=h.hostname+":"+S):(h.host=h.hostname,h[w]="");break;case"hostname":h[w]=S,h.port&&(S+=":"+h.port),h.host=S;break;case"host":h[w]=S,i.test(S)?(S=S.split(":"),h.port=S.pop(),h.hostname=S.join(":")):(h.hostname=S,h.port="");break;case"protocol":h.protocol=S.toLowerCase(),h.slashes=!f;break;case"pathname":case"hash":if(S){var v=w==="pathname"?"/":"#";h[w]=S.charAt(0)!==v?v+S:S}else h[w]=S;break;case"username":case"password":h[w]=encodeURIComponent(S);break;case"auth":var _=S.indexOf(":");~_?(h.username=S.slice(0,_),h.username=encodeURIComponent(decodeURIComponent(h.username)),h.password=S.slice(_+1),h.password=encodeURIComponent(decodeURIComponent(h.password))):h.username=encodeURIComponent(decodeURIComponent(S))}for(var R=0;R<c.length;R++){var C=c[R];C[4]&&(h[C[1]]=h[C[1]].toLowerCase())}return h.auth=h.password?h.username+":"+h.password:h.username,h.origin=h.protocol!=="file:"&&g(h.protocol)&&h.host?h.protocol+"//"+h.host:"null",h.href=h.toString(),h}function T(w){(!w||typeof w!="function")&&(w=t.stringify);var S,f=this,h=f.host,v=f.protocol;v&&v.charAt(v.length-1)!==":"&&(v+=":");var _=v+(f.protocol&&f.slashes||g(f.protocol)?"//":"");return f.username?(_+=f.username,f.password&&(_+=":"+f.password),_+="@"):f.password?(_+=":"+f.password,_+="@"):f.protocol!=="file:"&&g(f.protocol)&&!h&&f.pathname!=="/"&&(_+="@"),(h[h.length-1]===":"||i.test(f.hostname)&&!f.port)&&(h+=":"),_+=h+f.pathname,S=typeof f.query=="object"?w(f.query):f.query,S&&(_+=S.charAt(0)!=="?"?"?"+S:S),f.hash&&(_+=f.hash),_}return E.prototype={set:k,toString:T},E.extractProtocol=y,E.location=p,E.trimLeft=u,E.qs=t,gm=E,gm}var UN=HN();const qN=Rr(UN);function Kg(e){"@babel/helpers - typeof";return Kg=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},Kg(e)}function WN(e,t,r){return Object.defineProperty(e,"prototype",{writable:!1}),e}function VN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function YN(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&&Bl(e,t)}function GN(e){var t=OS();return function(){var n=Hl(e),a;if(t){var i=Hl(this).constructor;a=Reflect.construct(n,arguments,i)}else a=n.apply(this,arguments);return KN(this,a)}}function KN(e,t){if(t&&(Kg(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return XN(e)}function XN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xg(e){var t=typeof Map=="function"?new Map:void 0;return Xg=function(n){if(n===null||!ZN(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 df(n,arguments,Hl(this).constructor)}return a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),Bl(a,n)},Xg(e)}function df(e,t,r){return OS()?df=Reflect.construct.bind():df=function(a,i,o){var l=[null];l.push.apply(l,i);var u=Function.bind.apply(a,l),c=new u;return o&&Bl(c,o.prototype),c},df.apply(null,arguments)}function OS(){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 ZN(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function Bl(e,t){return Bl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Bl(e,t)}function Hl(e){return Hl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Hl(e)}var Td=function(e){YN(r,e);var t=GN(r);function r(n){var a,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;if(VN(this,r),a=t.call(this,n),a.originalRequest=o,a.originalResponse=l,a.causingError=i,i!=null&&(n+=", caused by ".concat(i.toString())),o!=null){var u=o.getHeader("X-Request-ID")||"n/a",c=o.getMethod(),m=o.getURL(),p=l?l.getStatus():"n/a",g=l?l.getBody()||"":"n/a";n+=", originated from request (method: ".concat(c,", url: ").concat(m,", response code: ").concat(p,", response text: ").concat(g,", request id: ").concat(u,")")}return a.message=n,a}return WN(r)}(Xg(Error));function JN(){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 Zg(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Zg=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(O,I,z){O[I]=z.value},i=typeof Symbol=="function"?Symbol:{},o=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function c(O,I,z){return Object.defineProperty(O,I,{value:z,enumerable:!0,configurable:!0,writable:!0}),O[I]}try{c({},"")}catch{c=function(z,B,H){return z[B]=H}}function m(O,I,z,B){var H=I&&I.prototype instanceof T?I:T,U=Object.create(H.prototype),J=new N(B||[]);return a(U,"_invoke",{value:P(O,z,J)}),U}function p(O,I,z){try{return{type:"normal",arg:O.call(I,z)}}catch(B){return{type:"throw",arg:B}}}t.wrap=m;var g="suspendedStart",y="suspendedYield",x="executing",E="completed",k={};function T(){}function w(){}function S(){}var f={};c(f,o,function(){return this});var h=Object.getPrototypeOf,v=h&&h(h(j([])));v&&v!==r&&n.call(v,o)&&(f=v);var _=S.prototype=T.prototype=Object.create(f);function R(O){["next","throw","return"].forEach(function(I){c(O,I,function(z){return this._invoke(I,z)})})}function C(O,I){function z(H,U,J,re){var ne=p(O[H],O,U);if(ne.type!=="throw"){var se=ne.arg,ce=se.value;return ce&&So(ce)=="object"&&n.call(ce,"__await")?I.resolve(ce.__await).then(function(le){z("next",le,J,re)},function(le){z("throw",le,J,re)}):I.resolve(ce).then(function(le){se.value=le,J(se)},function(le){return z("throw",le,J,re)})}re(ne.arg)}var B;a(this,"_invoke",{value:function(U,J){function re(){return new I(function(ne,se){z(U,J,ne,se)})}return B=B?B.then(re,re):re()}})}function P(O,I,z){var B=g;return function(H,U){if(B===x)throw new Error("Generator is already running");if(B===E){if(H==="throw")throw U;return{value:e,done:!0}}for(z.method=H,z.arg=U;;){var J=z.delegate;if(J){var re=M(J,z);if(re){if(re===k)continue;return re}}if(z.method==="next")z.sent=z._sent=z.arg;else if(z.method==="throw"){if(B===g)throw B=E,z.arg;z.dispatchException(z.arg)}else z.method==="return"&&z.abrupt("return",z.arg);B=x;var ne=p(O,I,z);if(ne.type==="normal"){if(B=z.done?E:y,ne.arg===k)continue;return{value:ne.arg,done:z.done}}ne.type==="throw"&&(B=E,z.method="throw",z.arg=ne.arg)}}}function M(O,I){var z=I.method,B=O.iterator[z];if(B===e)return I.delegate=null,z==="throw"&&O.iterator.return&&(I.method="return",I.arg=e,M(O,I),I.method==="throw")||z!=="return"&&(I.method="throw",I.arg=new TypeError("The iterator does not provide a '"+z+"' method")),k;var H=p(B,O.iterator,I.arg);if(H.type==="throw")return I.method="throw",I.arg=H.arg,I.delegate=null,k;var U=H.arg;return U?U.done?(I[O.resultName]=U.value,I.next=O.nextLoc,I.method!=="return"&&(I.method="next",I.arg=e),I.delegate=null,k):U:(I.method="throw",I.arg=new TypeError("iterator result is not an object"),I.delegate=null,k)}function q(O){var I={tryLoc:O[0]};1 in O&&(I.catchLoc=O[1]),2 in O&&(I.finallyLoc=O[2],I.afterLoc=O[3]),this.tryEntries.push(I)}function L(O){var I=O.completion||{};I.type="normal",delete I.arg,O.completion=I}function N(O){this.tryEntries=[{tryLoc:"root"}],O.forEach(q,this),this.reset(!0)}function j(O){if(O||O===""){var I=O[o];if(I)return I.call(O);if(typeof O.next=="function")return O;if(!isNaN(O.length)){var z=-1,B=function H(){for(;++z<O.length;)if(n.call(O,z))return H.value=O[z],H.done=!1,H;return H.value=e,H.done=!0,H};return B.next=B}}throw new TypeError(So(O)+" is not iterable")}return w.prototype=S,a(_,"constructor",{value:S,configurable:!0}),a(S,"constructor",{value:w,configurable:!0}),w.displayName=c(S,u,"GeneratorFunction"),t.isGeneratorFunction=function(O){var I=typeof O=="function"&&O.constructor;return!!I&&(I===w||(I.displayName||I.name)==="GeneratorFunction")},t.mark=function(O){return Object.setPrototypeOf?Object.setPrototypeOf(O,S):(O.__proto__=S,c(O,u,"GeneratorFunction")),O.prototype=Object.create(_),O},t.awrap=function(O){return{__await:O}},R(C.prototype),c(C.prototype,l,function(){return this}),t.AsyncIterator=C,t.async=function(O,I,z,B,H){H===void 0&&(H=Promise);var U=new C(m(O,I,z,B),H);return t.isGeneratorFunction(I)?U:U.next().then(function(J){return J.done?J.value:U.next()})},R(_),c(_,u,"Generator"),c(_,o,function(){return this}),c(_,"toString",function(){return"[object Generator]"}),t.keys=function(O){var I=Object(O),z=[];for(var B in I)z.push(B);return z.reverse(),function H(){for(;z.length;){var U=z.pop();if(U in I)return H.value=U,H.done=!1,H}return H.done=!0,H}},t.values=j,N.prototype={constructor:N,reset:function(I){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(L),!I)for(var z in this)z.charAt(0)==="t"&&n.call(this,z)&&!isNaN(+z.slice(1))&&(this[z]=e)},stop:function(){this.done=!0;var I=this.tryEntries[0].completion;if(I.type==="throw")throw I.arg;return this.rval},dispatchException:function(I){if(this.done)throw I;var z=this;function B(se,ce){return J.type="throw",J.arg=I,z.next=se,ce&&(z.method="next",z.arg=e),!!ce}for(var H=this.tryEntries.length-1;H>=0;--H){var U=this.tryEntries[H],J=U.completion;if(U.tryLoc==="root")return B("end");if(U.tryLoc<=this.prev){var re=n.call(U,"catchLoc"),ne=n.call(U,"finallyLoc");if(re&&ne){if(this.prev<U.catchLoc)return B(U.catchLoc,!0);if(this.prev<U.finallyLoc)return B(U.finallyLoc)}else if(re){if(this.prev<U.catchLoc)return B(U.catchLoc,!0)}else{if(!ne)throw new Error("try statement without catch or finally");if(this.prev<U.finallyLoc)return B(U.finallyLoc)}}}},abrupt:function(I,z){for(var B=this.tryEntries.length-1;B>=0;--B){var H=this.tryEntries[B];if(H.tryLoc<=this.prev&&n.call(H,"finallyLoc")&&this.prev<H.finallyLoc){var U=H;break}}U&&(I==="break"||I==="continue")&&U.tryLoc<=z&&z<=U.finallyLoc&&(U=null);var J=U?U.completion:{};return J.type=I,J.arg=z,U?(this.method="next",this.next=U.finallyLoc,k):this.complete(J)},complete:function(I,z){if(I.type==="throw")throw I.arg;return I.type==="break"||I.type==="continue"?this.next=I.arg:I.type==="return"?(this.rval=this.arg=I.arg,this.method="return",this.next="end"):I.type==="normal"&&z&&(this.next=z),k},finish:function(I){for(var z=this.tryEntries.length-1;z>=0;--z){var B=this.tryEntries[z];if(B.finallyLoc===I)return this.complete(B.completion,B.afterLoc),L(B),k}},catch:function(I){for(var z=this.tryEntries.length-1;z>=0;--z){var B=this.tryEntries[z];if(B.tryLoc===I){var H=B.completion;if(H.type==="throw"){var U=H.arg;L(B)}return U}}throw new Error("illegal catch attempt")},delegateYield:function(I,z,B){return this.delegate={iterator:j(I),resultName:z,nextLoc:B},this.method==="next"&&(this.arg=e),k}},t}function rw(e,t,r,n,a,i,o){try{var l=e[i](o),u=l.value}catch(c){r(c);return}l.done?t(u):Promise.resolve(u).then(n,a)}function QN(e){return function(){var t=this,r=arguments;return new Promise(function(n,a){var i=e.apply(t,r);function o(u){rw(i,n,a,o,l,"next",u)}function l(u){rw(i,n,a,o,l,"throw",u)}o(void 0)})}}function AS(e,t){return nI(e)||rI(e,t)||tI(e,t)||eI()}function eI(){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 tI(e,t){if(e){if(typeof e=="string")return nw(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 nw(e,t)}}function nw(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 rI(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,l=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(u=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(m){c=!0,a=m}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw a}}return l}}function nI(e){if(Array.isArray(e))return e}function So(e){"@babel/helpers - typeof";return So=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},So(e)}function aw(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 Go(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?aw(Object(r),!0).forEach(function(n){aI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function aI(e,t,r){return t=RS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iw(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,RS(n.key),n)}}function oI(e,t,r){return t&&iw(e.prototype,t),r&&iw(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function RS(e){var t=sI(e,"string");return So(t)==="symbol"?t:String(t)}function sI(e,t){if(So(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(So(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var uI={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:PS,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},Mf=function(){function e(t,r){iI(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 oI(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,o=["uploadUrl","uploadSize","uploadLengthDeferred"];i<o.length;i++){var l=o[i];if(this.options[l]){this._emitError(new Error("tus: cannot use the ".concat(l," 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 o=this._parallelUploadUrls!=null?this._parallelUploadUrls.length:this.options.parallelUploads,l=(r=this.options.parallelUploadBoundaries)!==null&&r!==void 0?r:cI(this._source.size,o);this._parallelUploadUrls&&l.forEach(function(m,p){m.uploadUrl=n._parallelUploadUrls[p]||null}),this._parallelUploadUrls=new Array(l.length);var u=l.map(function(m,p){var g=0;return n._source.slice(m.start,m.end).then(function(y){var x=y.value;return new Promise(function(E,k){var T=Go(Go({},n.options),{},{uploadUrl:m.uploadUrl||null,storeFingerprintForResuming:!1,removeFingerprintOnSuccess:!1,parallelUploads:1,parallelUploadBoundaries:null,metadata:{},headers:Go(Go({},n.options.headers),{},{"Upload-Concat":"partial"}),onSuccess:E,onError:k,onProgress:function(f){i=i-g+f,g=f,n._emitProgress(i,a)},onUploadUrlAvailable:function(){n._parallelUploadUrls[p]=w.url,n._parallelUploadUrls.filter(function(f){return!!f}).length===l.length&&n._saveUploadInUrlStorage()}}),w=new e(x,T);w.start(),n._parallelUploads.push(w)})})}),c;Promise.all(u).then(function(){c=n._openRequest("POST",n.options.endpoint),c.setHeader("Upload-Concat","final;".concat(n._parallelUploadUrls.join(" ")));var m=ow(n.options.metadata);return m!==""&&c.setHeader("Upload-Metadata",m),n._sendRequest(c,null)}).then(function(m){if(!as(m.getStatus(),200)){n._emitHttpError(c,m,"tus: unexpected response while creating upload");return}var p=m.getHeader("Location");if(p==null){n._emitHttpError(c,m,"tus: invalid or missing Location header");return}n.url=cw(n.options.endpoint,p),"Created upload at ".concat(n.url),n._emitSuccess()}).catch(function(m){n._emitError(m)})}},{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 Td(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),lw(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=ow(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(o){if(!as(o.getStatus(),200)){r._emitHttpError(n,o,"tus: unexpected response while creating upload");return}var l=o.getHeader("Location");if(l==null){r._emitHttpError(n,o,"tus: invalid or missing Location header");return}if(r.url=cw(r.options.endpoint,l),"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,o):(r._offset=0,r._performUpload())})}).catch(function(o){r._emitHttpError(n,null,"tus: failed to create upload",o)})}},{key:"_resumeUpload",value:function(){var r=this,n=this._openRequest("HEAD",this.url),a=this._sendRequest(n,null);a.then(function(i){var o=i.getStatus();if(!as(o,200)){if(o===423){r._emitHttpError(n,i,"tus: upload is currently locked; retry later");return}if(as(o,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 l=parseInt(i.getHeader("Upload-Offset"),10);if(Number.isNaN(l)){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(l===u){r._emitProgress(u,u),r._emitSuccess();return}r._offset=l,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(!as(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(o){n._emitProgress(a+o,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(o){var l=o.value,u=o.done,c=l&&l.size?l.size:0;n.options.uploadLengthDeferred&&u&&(n._size=n._offset+c,r.setHeader("Upload-Length",n._size));var m=n._offset+c;return!n.options.uploadLengthDeferred&&u&&m!==n._size?Promise.reject(new Error("upload was configured with a size of ".concat(n._size," bytes, but the source is done after ").concat(m," bytes"))):l===null?n._sendRequest(r):(n._emitProgress(n._offset,n._size),n._sendRequest(r,l))})}},{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=sw(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 uw(r,n,this.options)}}],[{key:"terminate",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=sw("DELETE",r,n);return uw(a,null,n).then(function(i){if(i.getStatus()!==204)throw new Td("tus: unexpected response while terminating upload",null,a,i)}).catch(function(i){if(i instanceof Td||(i=new Td("tus: failed to terminate upload",i,a,null)),!lw(i,0,n))throw i;var o=n.retryDelays[0],l=n.retryDelays.slice(1),u=Go(Go({},n),{},{retryDelays:l});return new Promise(function(c){return setTimeout(c,o)}).then(function(){return e.terminate(r,u)})})}}]),e}();function ow(e){return Object.entries(e).map(function(t){var r=AS(t,2),n=r[0],a=r[1];return"".concat(n," ").concat($N.encode(String(a)))}).join(",")}function as(e,t){return e>=t&&e<t+100}function sw(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(o){var l=AS(o,2),u=l[0],c=l[1];n.setHeader(u,c)}),r.addRequestId){var i=JN();n.setHeader("X-Request-ID",i)}return n}function uw(e,t,r){return Jg.apply(this,arguments)}function Jg(){return Jg=QN(Zg().mark(function e(t,r,n){var a;return Zg().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(typeof n.onBeforeRequest!="function"){o.next=3;break}return o.next=3,n.onBeforeRequest(t);case 3:return o.next=5,t.send(r);case 5:if(a=o.sent,typeof n.onAfterResponse!="function"){o.next=9;break}return o.next=9,n.onAfterResponse(t,a);case 9:return o.abrupt("return",a);case 10:case"end":return o.stop()}},e)})),Jg.apply(this,arguments)}function lI(){var e=!0;return typeof window<"u"&&"navigator"in window&&window.navigator.onLine===!1&&(e=!1),e}function lw(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):PS(e)}function PS(e){var t=e.originalResponse?e.originalResponse.getStatus():0;return(!as(t,400)||t===409||t===423)&&lI()}function cw(e,t){return new qN(t,e).toString()}function cI(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}Mf.defaultOptions=uI;function Ul(e){"@babel/helpers - typeof";return Ul=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},Ul(e)}function dI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fI(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,pI(n.key),n)}}function hI(e,t,r){return t&&fI(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function pI(e){var t=mI(e,"string");return Ul(t)==="symbol"?t:String(t)}function mI(e,t){if(Ul(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ul(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var gI=function(){function e(){dI(this,e)}return hI(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 ql(e){"@babel/helpers - typeof";return ql=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},ql(e)}function vI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bI(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,_I(n.key),n)}}function yI(e,t,r){return t&&bI(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _I(e){var t=wI(e,"string");return ql(t)==="symbol"?t:String(t)}function wI(e,t){if(ql(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ql(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Qg=!1;try{Qg="localStorage"in window;var vm="tusSupport",dw=localStorage.getItem(vm);localStorage.setItem(vm,dw),dw===null&&localStorage.removeItem(vm)}catch(e){if(e.code===e.SECURITY_ERR||e.code===e.QUOTA_EXCEEDED_ERR)Qg=!1;else throw e}var xI=Qg,SI=function(){function e(){vI(this,e)}return yI(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 o=JSON.parse(localStorage.getItem(i));o.urlStorageKey=i,n.push(o)}catch{}}return n}}]),e}();function Wl(e){"@babel/helpers - typeof";return Wl=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},Wl(e)}function sv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CI(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,EI(n.key),n)}}function uv(e,t,r){return t&&CI(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function EI(e){var t=kI(e,"string");return Wl(t)==="symbol"?t:String(t)}function kI(e,t){if(Wl(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Wl(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var TI=function(){function e(){sv(this,e)}return uv(e,[{key:"createRequest",value:function(r,n){return new OI(r,n)}},{key:"getName",value:function(){return"XHRHttpStack"}}]),e}(),OI=function(){function e(t,r){sv(this,e),this._xhr=new XMLHttpRequest,this._xhr.open(t,r,!0),this._method=t,this._url=r,this._headers={}}return uv(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 AI(r._xhr))},r._xhr.onerror=function(o){i(o)},r._xhr.send(n)})}},{key:"abort",value:function(){return this._xhr.abort(),Promise.resolve()}},{key:"getUnderlyingObject",value:function(){return this._xhr}}]),e}(),AI=function(){function e(t){sv(this,e),this._xhr=t}return uv(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}(),DS=function(){return typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative"};function RI(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 PI=function(){return typeof window<"u"&&(typeof window.PhoneGap<"u"||typeof window.Cordova<"u"||typeof window.cordova<"u")};function DI(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 Vl(e){"@babel/helpers - typeof";return Vl=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},Vl(e)}function MI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function FI(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,II(n.key),n)}}function NI(e,t,r){return t&&FI(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function II(e){var t=LI(e,"string");return Vl(t)==="symbol"?t:String(t)}function LI(e,t){if(Vl(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Vl(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var fw=function(){function e(t){MI(this,e),this._file=t,this.size=t.size}return NI(e,[{key:"slice",value:function(r,n){if(PI())return DI(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 Yl(e){"@babel/helpers - typeof";return Yl=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},Yl(e)}function jI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $I(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,BI(n.key),n)}}function zI(e,t,r){return t&&$I(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function BI(e){var t=HI(e,"string");return Yl(t)==="symbol"?t:String(t)}function HI(e,t){if(Yl(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Yl(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function hw(e){return e===void 0?0:e.size!==void 0?e.size:e.length}function UI(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 qI=function(){function e(t){jI(this,e),this._buffer=void 0,this._bufferOffset=0,this._reader=t,this._done=!1}return zI(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+hw(this._buffer);if(this._done||i){var o=this._getDataFromBuffer(r,n),l=o==null?this._done:!1;return Promise.resolve({value:o,done:l})}return this._reader.read().then(function(u){var c=u.value,m=u.done;return m?a._done=!0:a._buffer===void 0?a._buffer=c:a._buffer=UI(a._buffer,c),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=hw(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 Co(e){"@babel/helpers - typeof";return Co=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},Co(e)}function e1(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e1=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(O,I,z){O[I]=z.value},i=typeof Symbol=="function"?Symbol:{},o=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function c(O,I,z){return Object.defineProperty(O,I,{value:z,enumerable:!0,configurable:!0,writable:!0}),O[I]}try{c({},"")}catch{c=function(z,B,H){return z[B]=H}}function m(O,I,z,B){var H=I&&I.prototype instanceof T?I:T,U=Object.create(H.prototype),J=new N(B||[]);return a(U,"_invoke",{value:P(O,z,J)}),U}function p(O,I,z){try{return{type:"normal",arg:O.call(I,z)}}catch(B){return{type:"throw",arg:B}}}t.wrap=m;var g="suspendedStart",y="suspendedYield",x="executing",E="completed",k={};function T(){}function w(){}function S(){}var f={};c(f,o,function(){return this});var h=Object.getPrototypeOf,v=h&&h(h(j([])));v&&v!==r&&n.call(v,o)&&(f=v);var _=S.prototype=T.prototype=Object.create(f);function R(O){["next","throw","return"].forEach(function(I){c(O,I,function(z){return this._invoke(I,z)})})}function C(O,I){function z(H,U,J,re){var ne=p(O[H],O,U);if(ne.type!=="throw"){var se=ne.arg,ce=se.value;return ce&&Co(ce)=="object"&&n.call(ce,"__await")?I.resolve(ce.__await).then(function(le){z("next",le,J,re)},function(le){z("throw",le,J,re)}):I.resolve(ce).then(function(le){se.value=le,J(se)},function(le){return z("throw",le,J,re)})}re(ne.arg)}var B;a(this,"_invoke",{value:function(U,J){function re(){return new I(function(ne,se){z(U,J,ne,se)})}return B=B?B.then(re,re):re()}})}function P(O,I,z){var B=g;return function(H,U){if(B===x)throw new Error("Generator is already running");if(B===E){if(H==="throw")throw U;return{value:e,done:!0}}for(z.method=H,z.arg=U;;){var J=z.delegate;if(J){var re=M(J,z);if(re){if(re===k)continue;return re}}if(z.method==="next")z.sent=z._sent=z.arg;else if(z.method==="throw"){if(B===g)throw B=E,z.arg;z.dispatchException(z.arg)}else z.method==="return"&&z.abrupt("return",z.arg);B=x;var ne=p(O,I,z);if(ne.type==="normal"){if(B=z.done?E:y,ne.arg===k)continue;return{value:ne.arg,done:z.done}}ne.type==="throw"&&(B=E,z.method="throw",z.arg=ne.arg)}}}function M(O,I){var z=I.method,B=O.iterator[z];if(B===e)return I.delegate=null,z==="throw"&&O.iterator.return&&(I.method="return",I.arg=e,M(O,I),I.method==="throw")||z!=="return"&&(I.method="throw",I.arg=new TypeError("The iterator does not provide a '"+z+"' method")),k;var H=p(B,O.iterator,I.arg);if(H.type==="throw")return I.method="throw",I.arg=H.arg,I.delegate=null,k;var U=H.arg;return U?U.done?(I[O.resultName]=U.value,I.next=O.nextLoc,I.method!=="return"&&(I.method="next",I.arg=e),I.delegate=null,k):U:(I.method="throw",I.arg=new TypeError("iterator result is not an object"),I.delegate=null,k)}function q(O){var I={tryLoc:O[0]};1 in O&&(I.catchLoc=O[1]),2 in O&&(I.finallyLoc=O[2],I.afterLoc=O[3]),this.tryEntries.push(I)}function L(O){var I=O.completion||{};I.type="normal",delete I.arg,O.completion=I}function N(O){this.tryEntries=[{tryLoc:"root"}],O.forEach(q,this),this.reset(!0)}function j(O){if(O||O===""){var I=O[o];if(I)return I.call(O);if(typeof O.next=="function")return O;if(!isNaN(O.length)){var z=-1,B=function H(){for(;++z<O.length;)if(n.call(O,z))return H.value=O[z],H.done=!1,H;return H.value=e,H.done=!0,H};return B.next=B}}throw new TypeError(Co(O)+" is not iterable")}return w.prototype=S,a(_,"constructor",{value:S,configurable:!0}),a(S,"constructor",{value:w,configurable:!0}),w.displayName=c(S,u,"GeneratorFunction"),t.isGeneratorFunction=function(O){var I=typeof O=="function"&&O.constructor;return!!I&&(I===w||(I.displayName||I.name)==="GeneratorFunction")},t.mark=function(O){return Object.setPrototypeOf?Object.setPrototypeOf(O,S):(O.__proto__=S,c(O,u,"GeneratorFunction")),O.prototype=Object.create(_),O},t.awrap=function(O){return{__await:O}},R(C.prototype),c(C.prototype,l,function(){return this}),t.AsyncIterator=C,t.async=function(O,I,z,B,H){H===void 0&&(H=Promise);var U=new C(m(O,I,z,B),H);return t.isGeneratorFunction(I)?U:U.next().then(function(J){return J.done?J.value:U.next()})},R(_),c(_,u,"Generator"),c(_,o,function(){return this}),c(_,"toString",function(){return"[object Generator]"}),t.keys=function(O){var I=Object(O),z=[];for(var B in I)z.push(B);return z.reverse(),function H(){for(;z.length;){var U=z.pop();if(U in I)return H.value=U,H.done=!1,H}return H.done=!0,H}},t.values=j,N.prototype={constructor:N,reset:function(I){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(L),!I)for(var z in this)z.charAt(0)==="t"&&n.call(this,z)&&!isNaN(+z.slice(1))&&(this[z]=e)},stop:function(){this.done=!0;var I=this.tryEntries[0].completion;if(I.type==="throw")throw I.arg;return this.rval},dispatchException:function(I){if(this.done)throw I;var z=this;function B(se,ce){return J.type="throw",J.arg=I,z.next=se,ce&&(z.method="next",z.arg=e),!!ce}for(var H=this.tryEntries.length-1;H>=0;--H){var U=this.tryEntries[H],J=U.completion;if(U.tryLoc==="root")return B("end");if(U.tryLoc<=this.prev){var re=n.call(U,"catchLoc"),ne=n.call(U,"finallyLoc");if(re&&ne){if(this.prev<U.catchLoc)return B(U.catchLoc,!0);if(this.prev<U.finallyLoc)return B(U.finallyLoc)}else if(re){if(this.prev<U.catchLoc)return B(U.catchLoc,!0)}else{if(!ne)throw new Error("try statement without catch or finally");if(this.prev<U.finallyLoc)return B(U.finallyLoc)}}}},abrupt:function(I,z){for(var B=this.tryEntries.length-1;B>=0;--B){var H=this.tryEntries[B];if(H.tryLoc<=this.prev&&n.call(H,"finallyLoc")&&this.prev<H.finallyLoc){var U=H;break}}U&&(I==="break"||I==="continue")&&U.tryLoc<=z&&z<=U.finallyLoc&&(U=null);var J=U?U.completion:{};return J.type=I,J.arg=z,U?(this.method="next",this.next=U.finallyLoc,k):this.complete(J)},complete:function(I,z){if(I.type==="throw")throw I.arg;return I.type==="break"||I.type==="continue"?this.next=I.arg:I.type==="return"?(this.rval=this.arg=I.arg,this.method="return",this.next="end"):I.type==="normal"&&z&&(this.next=z),k},finish:function(I){for(var z=this.tryEntries.length-1;z>=0;--z){var B=this.tryEntries[z];if(B.finallyLoc===I)return this.complete(B.completion,B.afterLoc),L(B),k}},catch:function(I){for(var z=this.tryEntries.length-1;z>=0;--z){var B=this.tryEntries[z];if(B.tryLoc===I){var H=B.completion;if(H.type==="throw"){var U=H.arg;L(B)}return U}}throw new Error("illegal catch attempt")},delegateYield:function(I,z,B){return this.delegate={iterator:j(I),resultName:z,nextLoc:B},this.method==="next"&&(this.arg=e),k}},t}function pw(e,t,r,n,a,i,o){try{var l=e[i](o),u=l.value}catch(c){r(c);return}l.done?t(u):Promise.resolve(u).then(n,a)}function WI(e){return function(){var t=this,r=arguments;return new Promise(function(n,a){var i=e.apply(t,r);function o(u){pw(i,n,a,o,l,"next",u)}function l(u){pw(i,n,a,o,l,"throw",u)}o(void 0)})}}function VI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function YI(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,KI(n.key),n)}}function GI(e,t,r){return t&&YI(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function KI(e){var t=XI(e,"string");return Co(t)==="symbol"?t:String(t)}function XI(e,t){if(Co(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Co(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ZI=function(){function e(){VI(this,e)}return GI(e,[{key:"openFile",value:function(){var t=WI(e1().mark(function n(a,i){var o;return e1().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(!(DS()&&a&&typeof a.uri<"u")){u.next=11;break}return u.prev=1,u.next=4,RI(a.uri);case 4:return o=u.sent,u.abrupt("return",new fw(o));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 fw(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 qI(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 JI(e,t){return DS()?Promise.resolve(QI(e,t)):Promise.resolve(["tus-br",e.name,e.type,e.size,e.lastModified,t.endpoint].join("-"))}function QI(e,t){var r=e.exif?eL(JSON.stringify(e.exif)):"noexif";return["tus-rn",e.name||"noname",e.size||"nosize",r,t.endpoint].join("/")}function eL(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 Os(e){"@babel/helpers - typeof";return Os=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},Os(e)}function tL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rL(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,MS(n.key),n)}}function nL(e,t,r){return r&&rL(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function aL(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&&t1(e,t)}function t1(e,t){return t1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},t1(e,t)}function iL(e){var t=uL();return function(){var n=Ff(e),a;if(t){var i=Ff(this).constructor;a=Reflect.construct(n,arguments,i)}else a=n.apply(this,arguments);return oL(this,a)}}function oL(e,t){if(t&&(Os(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return sL(e)}function sL(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uL(){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 Ff(e){return Ff=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ff(e)}function mw(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 ls(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mw(Object(r),!0).forEach(function(n){lL(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function lL(e,t,r){return t=MS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MS(e){var t=cL(e,"string");return Os(t)==="symbol"?t:String(t)}function cL(e,t){if(Os(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Os(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var r1=ls(ls({},Mf.defaultOptions),{},{httpStack:new TI,fileReader:new ZI,urlStorage:xI?new SI:new gI,fingerprint:JI}),dL=function(e){aL(r,e);var t=iL(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 tL(this,r),a=ls(ls({},r1),a),t.call(this,n,a)}return nL(r,null,[{key:"terminate",value:function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return i=ls(ls({},r1),i),Mf.terminate(a,i)}}]),r}(Mf);function $a(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var fL=0;function FS(e){return"__private_"+fL+++"_"+e}var Tr=FS("uppy"),tl=FS("events");class hL{constructor(t){Object.defineProperty(this,Tr,{writable:!0,value:void 0}),Object.defineProperty(this,tl,{writable:!0,value:[]}),$a(this,Tr)[Tr]=t}on(t,r){return $a(this,tl)[tl].push([t,r]),$a(this,Tr)[Tr].on(t,r)}remove(){for(const[t,r]of $a(this,tl)[tl].splice(0))$a(this,Tr)[Tr].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",()=>{$a(this,Tr)[Tr].getFile(t)&&r()})}onPauseAll(t,r){this.on("pause-all",()=>{$a(this,Tr)[Tr].getFile(t)&&r()})}onCancelAll(t,r){var n=this;this.on("cancel-all",function(){$a(n,Tr)[Tr].getFile(t)&&r(...arguments)})}onResumeAll(t,r){this.on("resume-all",()=>{$a(this,Tr)[Tr].getFile(t)&&r()})}}class pL 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 mL(e){return e?e.readyState!==0&&e.readyState!==4||e.status===0:!1}function Be(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var gL=0;function qr(e){return"__private_"+gL+++"_"+e}function vL(e){return new Error("Cancelled",{cause:e})}function gw(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 on=qr("activeRequests"),Ar=qr("queuedHandlers"),nn=qr("paused"),eo=qr("pauseTimer"),Or=qr("downLimit"),to=qr("upperLimit"),za=qr("rateLimitingTimer"),Dl=qr("call"),Ka=qr("queueNext"),n1=qr("next"),bm=qr("queue"),a1=qr("dequeue"),ym=qr("resume"),ro=qr("increaseLimit");class bL{constructor(t){Object.defineProperty(this,a1,{value:SL}),Object.defineProperty(this,bm,{value:xL}),Object.defineProperty(this,n1,{value:wL}),Object.defineProperty(this,Ka,{value:_L}),Object.defineProperty(this,Dl,{value:yL}),Object.defineProperty(this,on,{writable:!0,value:0}),Object.defineProperty(this,Ar,{writable:!0,value:[]}),Object.defineProperty(this,nn,{writable:!0,value:!1}),Object.defineProperty(this,eo,{writable:!0,value:void 0}),Object.defineProperty(this,Or,{writable:!0,value:1}),Object.defineProperty(this,to,{writable:!0,value:void 0}),Object.defineProperty(this,za,{writable:!0,value:void 0}),Object.defineProperty(this,ym,{writable:!0,value:()=>this.resume()}),Object.defineProperty(this,ro,{writable:!0,value:()=>{if(Be(this,nn)[nn]){Be(this,za)[za]=setTimeout(Be(this,ro)[ro],0);return}Be(this,Or)[Or]=this.limit,this.limit=Math.ceil((Be(this,to)[to]+Be(this,Or)[Or])/2);for(let r=Be(this,Or)[Or];r<=this.limit;r++)Be(this,Ka)[Ka]();Be(this,to)[to]-Be(this,Or)[Or]>3?Be(this,za)[za]=setTimeout(Be(this,ro)[ro],2e3):Be(this,Or)[Or]=Math.floor(Be(this,Or)[Or]/2)}}),typeof t!="number"||t===0?this.limit=1/0:this.limit=t}run(t,r){return!Be(this,nn)[nn]&&Be(this,on)[on]<this.limit?Be(this,Dl)[Dl](t):Be(this,bm)[bm](t,r)}wrapSyncFunction(t,r){var n=this;return function(){for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];const l=n.run(()=>(t(...i),queueMicrotask(()=>l.done()),()=>{}),r);return{abortOn:gw,abort(){l.abort()}}}}wrapPromiseFunction(t,r){var n=this;return function(){for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];let l;const u=new Promise((c,m)=>{l=n.run(()=>{let p,g;try{g=Promise.resolve(t(...i))}catch(y){g=Promise.reject(y)}return g.then(y=>{p?m(p):(l.done(),c(y))},y=>{p?m(p):(l.done(),m(y))}),y=>{p=vL(y)}},r)});return u.abort=c=>{l.abort(c)},u.abortOn=gw,u}}resume(){Be(this,nn)[nn]=!1,clearTimeout(Be(this,eo)[eo]);for(let t=0;t<this.limit;t++)Be(this,Ka)[Ka]()}pause(t){t===void 0&&(t=null),Be(this,nn)[nn]=!0,clearTimeout(Be(this,eo)[eo]),t!=null&&(Be(this,eo)[eo]=setTimeout(Be(this,ym)[ym],t))}rateLimit(t){clearTimeout(Be(this,za)[za]),this.pause(t),this.limit>1&&Number.isFinite(this.limit)&&(Be(this,to)[to]=this.limit-1,this.limit=Be(this,Or)[Or],Be(this,za)[za]=setTimeout(Be(this,ro)[ro],t))}get isPaused(){return Be(this,nn)[nn]}}function yL(e){Be(this,on)[on]+=1;let t=!1,r;try{r=e()}catch(n){throw Be(this,on)[on]-=1,n}return{abort:n=>{t||(t=!0,Be(this,on)[on]-=1,r==null||r(n),Be(this,Ka)[Ka]())},done:()=>{t||(t=!0,Be(this,on)[on]-=1,Be(this,Ka)[Ka]())}}}function _L(){queueMicrotask(()=>Be(this,n1)[n1]())}function wL(){if(Be(this,nn)[nn]||Be(this,on)[on]>=this.limit||Be(this,Ar)[Ar].length===0)return;const e=Be(this,Ar)[Ar].shift();if(e==null)throw new Error("Invariant violation: next is null");const t=Be(this,Dl)[Dl](e.fn);e.abort=t.abort,e.done=t.done}function xL(e,t){const r={fn:e,priority:(t==null?void 0:t.priority)||0,abort:()=>{Be(this,a1)[a1](r)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},n=Be(this,Ar)[Ar].findIndex(a=>r.priority>a.priority);return n===-1?Be(this,Ar)[Ar].push(r):Be(this,Ar)[Ar].splice(n,0,r),r}function SL(e){const t=Be(this,Ar)[Ar].indexOf(e);t!==-1&&Be(this,Ar)[Ar].splice(t,1)}function _m(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function CL(e){const t=r=>"error"in r&&!!r.error;return e.filter(r=>!t(r))}function EL(e){return e.filter(t=>{var r;return!((r=t.progress)!=null&&r.uploadStarted)||!t.isRestored})}function kL(){return typeof window<"u"&&(typeof window.PhoneGap<"u"||typeof window.Cordova<"u"||typeof window.cordova<"u")}function TL(){return typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative"}function OL(e){return(t,r)=>{if(kL()||TL())return r1.fingerprint(t,r);const n=["tus",e.id,r.endpoint].join("-");return Promise.resolve(n)}}function po(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var AL=0;function fc(e){return"__private_"+AL+++"_"+e}const RL={version:"3.5.5"},NS={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},PL={limit:20,retryDelays:NS.retryDelays,withCredentials:!1};var Ml=fc("retryDelayIterator"),i1=fc("uploadLocalFile"),o1=fc("getCompanionClientArgs"),wm=fc("uploadFiles"),rl=fc("handleUpload");class IS extends ON{constructor(t,r){var n,a;if(super(t,{...PL,...r}),Object.defineProperty(this,wm,{value:FL}),Object.defineProperty(this,o1,{value:ML}),Object.defineProperty(this,i1,{value:DL}),Object.defineProperty(this,Ml,{writable:!0,value:void 0}),Object.defineProperty(this,rl,{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 o=this.uppy.getFilesByIds(i);await po(this,wm)[wm](o)}}),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 bL(this.opts.limit),po(this,Ml)[Ml]=(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(po(this,rl)[rl]),this.uppy.on("reset-progress",this.handleResetProgress)}uninstall(){this.uppy.setState({capabilities:{...this.uppy.getState().capabilities,resumableUploads:!1}}),this.uppy.removeUploader(po(this,rl)[rl])}}function DL(e){var t=this;return this.resetUploaderReferences(e.id),new Promise((r,n)=>{let a,i,o;const l={...this.opts,...e.tus||{}};typeof l.headers=="function"&&(l.headers=l.headers(e));const{onShouldRetry:u,onBeforeRequest:c,...m}=l,p={...NS,...m};p.fingerprint=OL(e),p.onBeforeRequest=async T=>{const w=T.getUnderlyingObject();w.withCredentials=!!l.withCredentials;let S;if(typeof c=="function"&&(S=c(T,e)),_m(a,"shouldBeRequeued")){if(!a.shouldBeRequeued)return Promise.reject();let f;const h=new Promise(v=>{f=v});a=this.requests.run(()=>(e.isPaused&&a.abort(),f(),()=>{})),await Promise.all([h,S]);return}return S},p.onError=T=>{var w;this.uppy.log(T);const S=T.originalRequest!=null?T.originalRequest.getUnderlyingObject():null;mL(S)&&(T=new pL(T,S)),this.resetUploaderReferences(e.id),(w=a)==null||w.abort(),this.uppy.emit("upload-error",e,T),typeof l.onError=="function"&&l.onError(T),n(T)},p.onProgress=(T,w)=>{this.onReceiveUploadUrl(e,o.url),typeof l.onProgress=="function"&&l.onProgress(T,w),this.uppy.emit("upload-progress",this.uppy.getFile(e.id),{uploader:this,bytesUploaded:T,bytesTotal:w})},p.onSuccess=()=>{var T;const w={uploadURL:(T=o.url)!=null?T:void 0,status:200,body:{}};if(this.resetUploaderReferences(e.id),a.done(),this.uppy.emit("upload-success",this.uppy.getFile(e.id),w),o.url){const{name:S}=o.file;this.uppy.log(`Download ${S} from ${o.url}`)}typeof l.onSuccess=="function"&&l.onSuccess(),r(o)};const g=T=>{var w;const S=T==null||(w=T.originalResponse)==null?void 0:w.getStatus();if(S===429){if(!this.requests.isPaused){var f;const h=(f=po(this,Ml)[Ml])==null?void 0:f.next();if(h==null||h.done)return!1;this.requests.rateLimit(h.value)}}else{if(S!=null&&S>400&&S<500&&S!==409&&S!==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?p.onShouldRetry=(T,w)=>u(T,w,l,g):p.onShouldRetry=g;const y=(T,w,S)=>{_m(T,w)&&!_m(T,S)&&(T[S]=T[w])},x={};(Array.isArray(l.allowedMetaFields)?l.allowedMetaFields:Object.keys(e.meta)).forEach(T=>{x[T]=String(e.meta[T])}),y(x,"type","filetype"),y(x,"name","filename"),p.metadata=x,o=new dL(e.data,p),this.uploaders[e.id]=o;const k=new hL(this.uppy);this.uploaderEvents[e.id]=k,i=()=>(e.isPaused||o.start(),()=>{}),o.findPreviousUploads().then(T=>{const w=T[0];w&&(this.uppy.log(`[Tus] Resuming upload of ${e.id} started at ${w.creationTime}`),o.resumeFromPreviousUpload(w))}),a=this.requests.run(i),k.onFileRemove(e.id,T=>{a.abort(),this.resetUploaderReferences(e.id,{abort:!!o.url}),r(`upload ${T} was removed`)}),k.onPause(e.id,T=>{a.abort(),T?o.abort():a=this.requests.run(i)}),k.onPauseAll(e.id,()=>{a.abort(),o.abort()}),k.onCancelAll(e.id,function(T){let{reason:w}=T===void 0?{}:T;w==="user"&&(a.abort(),t.resetUploaderReferences(e.id,{abort:!!o.url})),r(`upload ${e.id} was canceled`)}),k.onResumeAll(e.id,()=>{a.abort(),e.error&&o.abort(),a=this.requests.run(i)})}).catch(r=>{throw this.uppy.emit("upload-error",e,r),r})}function ML(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 FL(e){const t=CL(e),r=EL(t);this.uppy.emit("upload-start",r),await Promise.allSettled(t.map(n=>{if(n.isRemote){const a=()=>this.requests,i=new AbortController,o=u=>{u.id===n.id&&i.abort()};this.uppy.on("file-removed",o);const l=this.uppy.getRequestClientForFile(n).uploadRemoteFile(n,po(this,o1)[o1](n),{signal:i.signal,getQueue:a});return this.requests.wrapSyncFunction(()=>{this.uppy.off("file-removed",o)},{priority:-1})(),l}return po(this,i1)[i1](n)}))}IS.VERSION=RL.version;var xm,vw;function NL(){return vw||(vw=1,xm=function(){var t={},r=t._fns={};t.emit=function(o,l,u,c,m,p,g){var y=n(o);y.length&&a(o,y,[l,u,c,m,p,g])},t.on=function(o,l){r[o]||(r[o]=[]),r[o].push(l)},t.once=function(o,l){function u(){l.apply(this,arguments),t.off(o,u)}this.on(o,u)},t.off=function(o,l){var u=[];if(o&&l){var c=this._fns[o],m=0,p=c?c.length:0;for(m;m<p;m++)c[m]!==l&&u.push(c[m])}u.length?this._fns[o]=u:delete this._fns[o]};function n(i){var o=r[i]?r[i]:[],l=i.indexOf(":"),u=l===-1?[i]:[i.substring(0,l),i.substring(l+1)],c=Object.keys(r),m=0,p=c.length;for(m;m<p;m++){var g=c[m];if(g==="*"&&(o=o.concat(r[g])),u.length===2&&u[0]===g){o=o.concat(r[g]);break}}return o}function a(i,o,l){var u=0,c=o.length;for(u;u<c&&o[u];u++)o[u].event=i,o[u].apply(o[u],l)}return t}),xm}var IL=NL();const LL=Rr(IL);let jL="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",$L=(e=21)=>{let t="",r=e;for(;r--;)t+=jL[Math.random()*64|0];return t};function ff(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var zL=0;function LS(e){return"__private_"+zL+++"_"+e}const BL={version:"3.2.2"};var oo=LS("callbacks"),Sm=LS("publish");class jS{constructor(){Object.defineProperty(this,Sm,{value:HL}),this.state={},Object.defineProperty(this,oo,{writable:!0,value:new Set})}getState(){return this.state}setState(t){const r={...this.state},n={...this.state,...t};this.state=n,ff(this,Sm)[Sm](r,n,t)}subscribe(t){return ff(this,oo)[oo].add(t),()=>{ff(this,oo)[oo].delete(t)}}}function HL(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];ff(this,oo)[oo].forEach(n=>{n(...t)})}jS.VERSION=BL.version;function $S(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 bw={__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 zS(e){var t;if(e.type)return e.type;const r=e.name?(t=$S(e.name).extension)==null?void 0:t.toLowerCase():null;return r&&r in bw?bw[r]:"application/octet-stream"}function UL(e){return e.charCodeAt(0).toString(32)}function yw(e){let t="";return e.replace(/[^A-Z0-9]/gi,r=>(t+=`-${UL(r)}`,"/"))+t}function qL(e,t){let r=t||"uppy";return typeof e.name=="string"&&(r+=`-${yw(e.name.toLowerCase())}`),e.type!==void 0&&(r+=`-${e.type}`),e.meta&&typeof e.meta.relativePath=="string"&&(r+=`-${yw(e.meta.relativePath.toLowerCase())}`),e.data.size!==void 0&&(r+=`-${e.data.size}`),e.data.lastModified!==void 0&&(r+=`-${e.data.lastModified}`),r}function WL(e){return!e.isRemote||!e.remote?!1:new Set(["box","dropbox","drive","facebook","unsplash"]).has(e.remote.provider)}function VL(e,t){if(WL(e))return e.id;const r=zS(e);return qL({...e,type:r},t)}function YL(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 GL(e,t){return t.name?t.name:e.split("/")[0]==="image"?`${e.split("/")[0]}.${e.split("/")[1]}`:"noname"}function Cm(e){return e<10?`0${e}`:e.toString()}function hf(){const e=new Date,t=Cm(e.getHours()),r=Cm(e.getMinutes()),n=Cm(e.getSeconds());return`${t}:${r}:${n}`}const KL={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] [${hf()}]`,...t)}},XL={debug:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return console.debug(`[Uppy] [${hf()}]`,...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] [${hf()}]`,...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] [${hf()}]`,...t)}};var Em,_w;function ZL(){return _w||(_w=1,Em=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),o=Number(n/1024**i),l=a[i];return`${o>=10||o%1===0?Math.round(o):o.toFixed(1)} ${l}`}),Em}var JL=ZL();const Od=Rr(JL);var km,ww;function QL(){if(ww)return km;ww=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,o;if(typeof t=="string"||t instanceof String)if(!this.hasWild&&this.text!=t)r=!1;else{for(o=(t||"").split(this.separator),a=0;r&&a<i;a++)n[a]!=="*"&&(a<o.length?r=n[a]===o[a]:r=!1);r=r&&o}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 l in t)this.match(l)&&(r[l]=t[l])}return r},km=function(t,r,n){var a=new e(t,n||/[\/\.]/);return typeof r<"u"?a.match(r):a},km}var Tm,xw;function ej(){if(xw)return Tm;xw=1;var e=QL(),t=/[\/\+\.]/;return Tm=function(r,n){function a(i){var o=e(i,r,t);return o&&o.length>=2}return n?a(n.split(";")[0]):a},Tm}var tj=ej();const rj=Rr(tj),nj={maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]};class $n 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 aj{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(o=>!o.isGhost).length+r.length>a)throw new $n(`${this.getI18n()("youCanOnlyUploadX",{smart_count:a})}`);if(n){const i=[...t,...r].reduce((o,l)=>{var u;return o+((u=l.size)!=null?u:0)},0);if(i>n)throw new $n(this.getI18n()("aggregateExceedsSize",{sizeAllowed:Od(n),size:Od(i)}))}}validateSingleFile(t){const{maxFileSize:r,minFileSize:n,allowedFileTypes:a}=this.getOpts().restrictions;if(a&&!a.some(o=>o.includes("/")?t.type?rj(t.type.replace(/;.*?$/,""),o):!1:o[0]==="."&&t.extension?t.extension.toLowerCase()===o.slice(1).toLowerCase():!1)){const o=a.join(", ");throw new $n(this.getI18n()("youCanOnlyUploadFileTypes",{types:o}),{file:t})}if(r&&t.size!=null&&t.size>r)throw new $n(this.getI18n()("exceedsSize",{size:Od(r),file:t.name}),{file:t});if(n&&t.size!=null&&t.size<n)throw new $n(this.getI18n()("inferiorSize",{size:Od(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 $n(this.getI18n()("youHaveToAtLeastSelectX",{smart_count:r}))}getMissingRequiredMetaFields(t){const r=new $n(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 ij={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 BS,HS;function ke(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var oj=0;function Kt(e){return"__private_"+oj+++"_"+e}const sj={version:"3.13.1"},Ad={totalProgress:0,allowNewUpload:!0,error:null,recoveredState:null};var fr=Kt("plugins"),sn=Kt("restricter"),nl=Kt("storeUnsubscribe"),Ba=Kt("emitter"),so=Kt("preProcessors"),uo=Kt("uploaders"),Xa=Kt("postProcessors"),un=Kt("informAndEmit"),Gl=Kt("checkRequiredMetaFieldsOnFile"),Om=Kt("checkRequiredMetaFields"),al=Kt("assertNewUploadAllowed"),s1=Kt("transformFile"),il=Kt("startIfAutoProceed"),ol=Kt("checkAndUpdateFileState"),Am=Kt("addListeners"),Hn=Kt("updateOnlineStatus"),sl=Kt("requestClientById"),Ha=Kt("createUpload"),Rm=Kt("getUpload"),mo=Kt("removeUpload"),Ua=Kt("runUpload");BS=Symbol.for("uppy test: getPlugins");HS=Symbol.for("uppy test: createUpload");class oh{constructor(t){Object.defineProperty(this,Ua,{value:yj}),Object.defineProperty(this,mo,{value:bj}),Object.defineProperty(this,Rm,{value:vj}),Object.defineProperty(this,Ha,{value:gj}),Object.defineProperty(this,Am,{value:mj}),Object.defineProperty(this,ol,{value:pj}),Object.defineProperty(this,il,{value:hj}),Object.defineProperty(this,s1,{value:fj}),Object.defineProperty(this,al,{value:dj}),Object.defineProperty(this,Om,{value:cj}),Object.defineProperty(this,Gl,{value:lj}),Object.defineProperty(this,un,{value:uj}),Object.defineProperty(this,fr,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,sn,{writable:!0,value:void 0}),Object.defineProperty(this,nl,{writable:!0,value:void 0}),Object.defineProperty(this,Ba,{writable:!0,value:LL()}),Object.defineProperty(this,so,{writable:!0,value:new Set}),Object.defineProperty(this,uo,{writable:!0,value:new Set}),Object.defineProperty(this,Xa,{writable:!0,value:new Set}),this.scheduledAutoProceed=null,this.wasOffline=!1,this.calculateProgress=IF((a,i)=>{const o=this.getFile(a==null?void 0:a.id);if(a==null||!o){this.log(`Not setting progress for a file that has been removed: ${a==null?void 0:a.id}`);return}if(o.progress.percentage===100){this.log(`Not setting progress for a file that has been already uploaded: ${a.id}`);return}const l=Number.isFinite(i.bytesTotal)&&i.bytesTotal>0;this.setFileState(a.id,{progress:{...o.progress,bytesUploaded:i.bytesUploaded,bytesTotal:i.bytesTotal,percentage:l?Math.round(i.bytesUploaded/i.bytesTotal*100):0}}),this.calculateTotalProgress()},500,{leading:!0,trailing:!0}),Object.defineProperty(this,Hn,{writable:!0,value:this.updateOnlineStatus.bind(this)}),Object.defineProperty(this,sl,{writable:!0,value:new Map}),this.defaultLocale=ij;const r={id:"uppy",autoProceed:!1,allowMultipleUploadBatches:!0,debug:!1,restrictions:nj,meta:{},onBeforeFileAdded:(a,i)=>!Object.hasOwn(i,a.id),onBeforeUpload:a=>a,store:new jS,logger:KL,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=XL),this.log(`Using Core v${oh.VERSION}`),this.i18nInit(),this.store=this.opts.store,this.setState({...Ad,plugins:{},files:{},currentUploads:{},capabilities:{uploadProgress:YL(),individualCancellation:!0,resumableUploads:!1},meta:{...this.opts.meta},info:[]}),ke(this,sn)[sn]=new aj(()=>this.opts,()=>this.i18n),ke(this,nl)[nl]=this.store.subscribe((a,i,o)=>{this.emit("state-update",a,i,o),this.updateAll(i)}),this.opts.debug&&typeof window<"u"&&(window[this.opts.id]=this),ke(this,Am)[Am]()}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];ke(this,Ba)[Ba].emit(t,...n)}on(t,r){return ke(this,Ba)[Ba].on(t,r),this}once(t,r){return ke(this,Ba)[Ba].once(t,r),this}off(t,r){return ke(this,Ba)[Ba].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 pS([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,...Ad}),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({...Ad,files:{}})}addPreProcessor(t){ke(this,so)[so].add(t)}removePreProcessor(t){return ke(this,so)[so].delete(t)}addPostProcessor(t){ke(this,Xa)[Xa].add(t)}removePostProcessor(t){return ke(this,Xa)[Xa].delete(t)}addUploader(t){ke(this,uo)[uo].add(t)}removeUploader(t){return ke(this,uo)[uo].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=[],o=[],l=[],u=[],c=[],m=[],p=[],g=[],y=[];for(const x of a){const{progress:E}=x;!E.uploadComplete&&E.uploadStarted&&(i.push(x),x.isPaused||g.push(x)),E.uploadStarted||o.push(x),(E.uploadStarted||E.preprocess||E.postprocess)&&l.push(x),E.uploadStarted&&u.push(x),x.isPaused&&c.push(x),E.uploadComplete&&m.push(x),x.error&&p.push(x),(E.preprocess||E.postprocess)&&y.push(x)}return{newFiles:o,startedFiles:l,uploadStartedFiles:u,pausedFiles:c,completeFiles:m,erroredFiles:p,inProgressFiles:i,inProgressNotPausedFiles:g,processingFiles:y,isUploadStarted:u.length>0,isAllComplete:r===100&&m.length===a.length&&y.length===0,isAllErrored:!!n&&p.length===a.length,isAllPaused:i.length!==0&&c.length===i.length,isUploadInProgress:i.length>0,isSomeGhost:a.some(x=>x.isGhost)}}validateRestrictions(t,r){r===void 0&&(r=this.getFiles());try{ke(this,sn)[sn].validate(r,[t])}catch(n){return n}return null}checkIfFileAlreadyExists(t){const{files:r}=this.getState();return!!(r[t]&&!r[t].isGhost)}addFile(t){ke(this,al)[al](t);const{nextFilesState:r,validFilesToAdd:n,errors:a}=ke(this,ol)[ol]([t]),i=a.filter(l=>l.isRestriction);if(ke(this,un)[un](i),a.length>0)throw a[0];this.setState({files:r});const[o]=n;return this.emit("file-added",o),this.emit("files-added",n),this.log(`Added file: ${o.name}, ${o.id}, mime type: ${o.type}`),ke(this,il)[il](),o.id}addFiles(t){ke(this,al)[al]();const{nextFilesState:r,validFilesToAdd:n,errors:a}=ke(this,ol)[ol](t),i=a.filter(l=>l.isRestriction);ke(this,un)[un](i);const o=a.filter(l=>!l.isRestriction);if(o.length>0){let l=`Multiple errors occurred while adding files:
283
- `;if(o.forEach(u=>{l+=`
284
- * ${u.message}`}),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:o.length}),details:l},"error",this.opts.infoTimeout),typeof AggregateError=="function")throw new AggregateError(o,l);{const u=new Error(l);throw u.errors=o,u}}this.setState({files:r}),n.forEach(l=>{this.emit("file-added",l)}),this.emit("files-added",n),n.length>5?this.log(`Added batch of ${n.length} files`):Object.values(n).forEach(l=>{this.log(`Added file: ${l.name}
285
- id: ${l.id}
286
- type: ${l.type}`)}),n.length>0&&ke(this,il)[il]()}removeFiles(t,r){const{files:n,currentUploads:a}=this.getState(),i={...n},o={...a},l=Object.create(null);t.forEach(p=>{n[p]&&(l[p]=n[p],delete i[p])});function u(p){return l[p]===void 0}Object.keys(o).forEach(p=>{const g=a[p].fileIDs.filter(u);if(g.length===0){delete o[p];return}const{capabilities:y}=this.getState();if(g.length!==a[p].fileIDs.length&&!y.individualCancellation)throw new Error("The installed uploader plugin does not allow removing files during an upload.");o[p]={...a[p],fileIDs:g}});const c={currentUploads:o,files:i};Object.keys(i).length===0&&(c.allowNewUpload=!0,c.error=null,c.recoveredState=null),this.setState(c),this.calculateTotalProgress();const m=Object.keys(l);m.forEach(p=>{this.emit("file-removed",l[p],r)}),m.length>5?this.log(`Removed ${m.length} files`):this.log(`Removed files: ${m.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=ke(this,Ha)[Ha](r,{forceAllowNewUpload:!0});return ke(this,Ua)[Ua](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(Ad)}}retryUpload(t){this.setFileState(t,{error:null,isPaused:!1}),this.emit("upload-retry",t);const r=ke(this,Ha)[Ha]([t],{forceAllowNewUpload:!0});return ke(this,Ua)[Ua](r)}logout(){this.iteratePlugins(t=>{var r;(r=t.provider)==null||r.logout==null||r.logout()})}calculateTotalProgress(){const r=this.getFiles().filter(c=>c.progress.uploadStarted||c.progress.preprocess||c.progress.postprocess);if(r.length===0){this.emit("progress",0),this.setState({totalProgress:0});return}const n=r.filter(c=>c.progress.bytesTotal!=null),a=r.filter(c=>c.progress.bytesTotal==null);if(n.length===0){const c=r.length*100,m=a.reduce((g,y)=>g+y.progress.percentage,0),p=Math.round(m/c*100);this.setState({totalProgress:p});return}let i=n.reduce((c,m)=>{var p;return c+((p=m.progress.bytesTotal)!=null?p:0)},0);const o=i/n.length;i+=o*a.length;let l=0;n.forEach(c=>{l+=c.progress.bytesUploaded}),a.forEach(c=>{l+=o*(c.progress.percentage||0)/100});let u=i===0?0:Math.round(l/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 o=`Expected a plugin class, but got ${t===null?"null":typeof t}. Please verify that the plugin was imported and spelled correctly.`;throw new TypeError(o)}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 o=`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(o)}return t.VERSION&&this.log(`Using ${a} v${t.VERSION}`),n.type in ke(this,fr)[fr]?ke(this,fr)[fr][n.type].push(n):ke(this,fr)[fr][n.type]=[n],n.install(),this.emit("plugin-added",n),this}getPlugin(t){for(const r of Object.values(ke(this,fr)[fr])){const n=r.find(a=>a.id===t);if(n!=null)return n}}[BS](t){return ke(this,fr)[fr][t]}iteratePlugins(t){Object.values(ke(this,fr)[fr]).flat(1).forEach(t)}removePlugin(t){this.log(`Removing plugin ${t.id}`),this.emit("plugin-remove",t),t.uninstall&&t.uninstall();const r=ke(this,fr)[fr][t.type],n=r.findIndex(o=>o.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}),ke(this,nl)[nl](),this.iteratePlugins(n=>{this.removePlugin(n)}),typeof window<"u"&&window.removeEventListener&&(window.removeEventListener("online",ke(this,Hn)[Hn]),window.removeEventListener("offline",ke(this,Hn)[Hn]))}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){ke(this,sl)[sl].set(t,r)}getRequestClientForFile(t){if(!t.remote)throw new Error(`Tried to get RequestClient for a non-remote file ${t.id}`);const r=ke(this,sl)[sl].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]?ke(this,Ua)[Ua](t):(ke(this,mo)[mo](t),Promise.reject(new Error("Nonexistent upload")))}[HS](){return ke(this,Ha)[Ha](...arguments)}addResultData(t,r){if(!ke(this,Rm)[Rm](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=ke(this,fr)[fr].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(()=>ke(this,sn)[sn].validateMinNumberOfFiles(r)).catch(a=>{throw ke(this,un)[un]([a]),a}).then(()=>{if(!ke(this,Om)[Om](r))throw new $n(this.i18n("missingRequiredMetaField"))}).catch(a=>{throw a}).then(()=>{const{currentUploads:a}=this.getState(),i=Object.values(a).flatMap(u=>u.fileIDs),o=[];Object.keys(r).forEach(u=>{const c=this.getFile(u);!c.progress.uploadStarted&&i.indexOf(u)===-1&&o.push(c.id)});const l=ke(this,Ha)[Ha](o);return ke(this,Ua)[Ua](l)}).catch(a=>{throw this.emit("error",a),this.log(a,"error"),a}))}}function uj(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:o,details:l=""}=i;this.info({message:o,details:l},"error",this.opts.infoTimeout)}),a.length>0&&this.info({message:this.i18n("additionalRestrictionsFailed",{count:a.length})})}function lj(e){const{missingFields:t,error:r}=ke(this,sn)[sn].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 cj(e){let t=!0;for(const r of Object.values(e))ke(this,Gl)[Gl](r)||(t=!1);return t}function dj(e){const{allowNewUpload:t}=this.getState();if(t===!1){const r=new $n(this.i18n("noMoreFilesAllowed"),{file:e});throw ke(this,un)[un]([r]),r}}function fj(e){const t=e instanceof File?{name:e.name,type:e.type,size:e.size,data:e}:e,r=zS(t),n=GL(r,t),a=$S(n).extension,i=VL(t,this.getID()),o=t.meta||{};o.name=n,o.type=r;const l=Number.isFinite(t.data.size)?t.data.size:null;return{source:t.source||"",id:i,name:n,extension:a||"",meta:{...this.getState().meta,...o},type:r,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:l,uploadComplete:!1,uploadStarted:null},size:l,isGhost:!1,isRemote:t.isRemote||!1,remote:t.remote||"",preview:t.preview}}function hj(){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 pj(e){const{files:t}=this.getState(),r={...t},n=[],a=[];for(const o of e)try{var i;let l=ke(this,s1)[s1](o);const u=(i=t[l.id])==null?void 0:i.isGhost;u&&(l={...t[l.id],isGhost:!1,data:o.data},this.log(`Replaced the blob in the restored ghost file: ${l.name}, ${l.id}`));const c=this.opts.onBeforeFileAdded(l,r);if(!c&&this.checkIfFileAlreadyExists(l.id))throw new $n(this.i18n("noDuplicates",{fileName:l.name}),{file:o});if(c===!1&&!u)throw new $n("Cannot add the file because onBeforeFileAdded returned false.",{isUserFacing:!1,file:o});typeof c=="object"&&c!==null&&(l=c),ke(this,sn)[sn].validateSingleFile(l),r[l.id]=l,n.push(l)}catch(l){a.push(l)}try{ke(this,sn)[sn].validateAggregateRestrictions(Object.values(t),n)}catch(o){return a.push(o),{nextFilesState:t,validFilesToAdd:[],errors:a}}return{nextFilesState:r,validFilesToAdd:n,errors:a}}function mj(){const e=(n,a,i)=>{let o=n.message||"Unknown error";n.details&&(o+=` ${n.details}`),this.setState({error:o}),a!=null&&a.id in this.getState().files&&this.setFileState(a.id,{error:o,response:i})};this.on("error",e),this.on("upload-error",(n,a,i)=>{if(e(a,n,i),typeof a=="object"&&a.message){var o;this.log(a.message,"error");const l=new Error(this.i18n("failedToUpload",{file:(o=n==null?void 0:n.name)!=null?o:""}));l.isUserFacing=!0,l.details=a.message,a.details&&(l.details+=` ${a.details}`),ke(this,un)[un]([l])}else ke(this,un)[un]([a])});let t=null;this.on("upload-stalled",(n,a)=>{const{message:i}=n,o=a.map(l=>l.meta.name).join(", ");t||(this.info({message:i,details:o},"warning",this.opts.infoTimeout),t=setTimeout(()=>{t=null},this.opts.infoTimeout)),this.log(`${i} ${o}`.trim(),"warning")}),this.on("upload",()=>{this.setState({error:null})});const r=n=>{const a=n.filter(o=>{const l=o!=null&&this.getFile(o.id);return l||this.log(`Not setting progress for a file that has been removed: ${o==null?void 0:o.id}`),l}),i=Object.fromEntries(a.map(o=>[o.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:o.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:ke(this,Xa)[Xa].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&&ke(this,Gl)[Gl](n)}),typeof window<"u"&&window.addEventListener&&(window.addEventListener("online",ke(this,Hn)[Hn]),window.addEventListener("offline",ke(this,Hn)[Hn]),setTimeout(ke(this,Hn)[Hn],3e3))}function gj(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=$L();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 vj(e){const{currentUploads:t}=this.getState();return t[e]}function bj(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function yj(e){const t=()=>{const{currentUploads:i}=this.getState();return i[e]};let r=t();const n=[...ke(this,so)[so],...ke(this,uo)[uo],...ke(this,Xa)[Xa]];try{for(let i=r.step||0;i<n.length&&r;i++){const o=n[i];this.setState({currentUploads:{...this.getState().currentUploads,[e]:{...r,step:i}}});const{fileIDs:l}=r;await o(l,e),r=t()}}catch(i){throw ke(this,mo)[mo](e),i}if(r){r.fileIDs.forEach(u=>{const c=this.getFile(u);c&&c.progress.postprocess&&this.emit("postprocess-complete",c)});const i=r.fileIDs.map(u=>this.getFile(u)),o=i.filter(u=>!u.error),l=i.filter(u=>u.error);this.addResultData(e,{successful:o,failed:l,uploadID:e}),r=t()}let a;return r&&(a=r.result,this.emit("complete",a),ke(this,mo)[mo](e)),a==null&&this.log(`Not setting result for an upload that has been removed: ${e}`),a}oh.VERSION=sj.version;function _j(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 wj=(e,t={},r)=>_j(t.placeholder||"",t.variate),Y=(e,t,r)=>wj(e,t),US=F.forwardRef((e,t)=>{const[r,n]=F.useState("write"),a=F.useRef(null),[i,{toggleFullscreen:o}]=oS(a),l=new SN.Converter({tables:!0,simplifiedAutoLink:!0,strikethrough:!0,tasklists:!0}),u={name:"full",icon:()=>D.jsx(Ue,{onClick:()=>{},className:qt.markIcon,style:{fontSize:"13px"},type:"fangda"}),execute:y=>{o()}},c={name:"paste",icon:()=>D.jsx(Ue,{onClick:()=>{},className:qt.markIcon,style:{fontSize:"13px"},type:"fangda"}),execute:y=>{}},m={name:"min",icon:()=>D.jsx(Ue,{onClick:()=>{},className:qt.markIcon,style:{fontSize:"13px"},type:"suoxiao"}),execute:y=>{o()}},p={name:"table",icon:()=>D.jsx(Ue,{className:qt.markIcon,style:{fontSize:"13px"},type:"charubiaoge"}),execute:y=>{y.textApi.replaceSelection(`${Y("sys.columnHeader",{placeholder:"列头"})}1 | ${Y("sys.columnHeader",{placeholder:"列头"})}2 | ${Y("sys.columnHeader",{placeholder:"列头"})}3
288
- :----------- | :-----------: | -----------:
289
- ${Y("sys.align.left",{placeholder:"居左"})}|${Y("sys.align.center",{placeholder:"居中"})}|${Y("sys.align.right",{placeholder:"居右"})}`)}},g=async function*(y,x){const E=new oh({meta:{},debug:!1,autoProceed:!0});E.use(IS,{endpoint:`${e.OSS_URL}`,headers:{Authorization:`${e.token}`},chunkSize:1*1024*1024,overridePatchMethod:!1,allowedMetaFields:null}).on("upload-success",(T,w)=>{e.toPostFileRecord&&e.toPostFileRecord({file:T,response:w,type:"0"})}),E.addFile({name:x.name,type:x.type,data:x,source:"Local",isRemote:!1});const k=await E.upload();return k.successful[0]?k.successful[0].uploadURL:Y("sys.fileServerError.fileServerError",{placeholder:"文件服务器错误"})};return F.useEffect(()=>{n("write")},[e.readOnly]),D.jsxs("div",{className:Te(qt.main,e.value?qt.mdebordershow:qt.mdeborderhide,i?qt.fullscreen:{},r==="preview"?qt.mdePreview:{}),children:[D.jsx("div",{ref:a,style:{background:"white",height:"100%",width:"100%"},children:D.jsx(gF,{value:e.value,onChange:y=>{e.onChange&&e.onChange(y)},minPreviewHeight:e.height&&e.height>10?e.height-10:100,minEditorHeight:e.height||76,maxEditorHeight:e.height||76,getIcon:y=>y==="header"?D.jsx(Z.Tooltip,{title:Y("sys.title",{placeholder:"标题"}),children:D.jsx(Ue,{onClick:()=>{},style:{fontSize:"13px"},className:qt.markIcon,type:"H"})}):y==="bold"?D.jsx(Z.Tooltip,{title:Y("sys.bold.bold",{placeholder:"加粗"}),children:D.jsx(Ue,{onClick:()=>{},style:{fontSize:"13px"},className:qt.markIcon,type:"jiacu"})}):y==="italic"?D.jsx(Z.Tooltip,{title:Y("sys.italic.italic",{placeholder:"倾斜"}),children:D.jsx(Ue,{onClick:()=>{},style:{fontSize:"13px"},className:qt.markIcon,type:"qingxie"})}):y==="strikethrough"?D.jsx(Z.Tooltip,{title:Y("sys.strikethrough.strikethrough",{placeholder:"划线"}),children:D.jsx(Ue,{onClick:()=>{},style:{fontSize:"13px"},className:qt.markIcon,type:"huaxian"})}):y==="link"?D.jsx(Z.Tooltip,{title:Y("sys.link.link",{placeholder:"链接"}),children:D.jsx(Ue,{onClick:()=>{},style:{fontSize:"13px"},className:qt.markIcon,type:"lianjie"})}):y==="quote"?D.jsx(Z.Tooltip,{title:Y("sys.quote.quote",{placeholder:"引用"}),children:D.jsx(Ue,{onClick:()=>{},style:{fontSize:"13px"},className:qt.markIcon,type:"yinyong"})}):y==="code"?D.jsx(Z.Tooltip,{title:Y("sys.code.code",{placeholder:"代码"}),children:D.jsx(Ue,{onClick:()=>{},style:{fontSize:"13px"},className:qt.markIcon,type:"code"})}):y==="image"?D.jsx(Z.Tooltip,{title:Y("sys.label.image",{placeholder:"图片"}),children:D.jsx(Ue,{onClick:()=>{},style:{fontSize:"13px"},className:qt.markIcon,type:"charutupian"})}):y==="unordered-list"?D.jsx(Z.Tooltip,{title:Y("sys.unorderedList.unorderedList",{placeholder:"无序列表"}),children:D.jsx(Ue,{onClick:()=>{},style:{fontSize:"13px"},className:qt.markIcon,type:"dian"})}):y==="ordered-list"?D.jsxs(Z.Tooltip,{title:Y("sys.orderedList.orderedList",{placeholder:"有序列表"}),children:[" ",D.jsx(Ue,{onClick:()=>{},style:{fontSize:"13px"},className:qt.markIcon,type:"shuzi"})]}):y==="checked-list"?D.jsx(Z.Tooltip,{title:Y("sys.checkedList.checkedList",{placeholder:"勾选列表"}),children:D.jsx(Ue,{onClick:()=>{},style:{fontSize:"13px"},className:qt.markIcon,type:"gou"})}):D.jsx(Ue,{onClick:()=>{},style:{fontSize:"13px"},className:qt.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:Y("sys.uploadingImage.uploadingImage",{placeholder:"正在上传图片"}),write:Y("individuality.column.operate.edit",{placeholder:"编辑"}),preview:Y("sys.action.preview",{placeholder:"预览"}),pasteDropSelect:Y("sys.label.uploadImage",{placeholder:"上传图片"})},commands:{full:u,table:p,min:m,paste:c},selectedTab:e.readOnly?"preview":r,readOnly:e.readOnly,onTabChange:y=>{n(y)},generateMarkdownPreview:y=>Promise.resolve(l.makeHtml(y)),childProps:{writeButton:{tabIndex:-1}},paste:{saveImage:g,accept:"text/plain,image/png,image/jpeg"}})}),r==="preview"||e.readOnly?D.jsx("div",{style:{position:"absolute",top:"9px",left:"110px"},children:D.jsx(Ue,{onClick:()=>{o()},className:qt.markIcon,style:{fontSize:"13px"},type:"fangda"})}):D.jsx(D.Fragment,{})]})}),xj="_confirmModal_begdf_1",Sj="_wrapClassName_begdf_19",Cj="_notBtnIcon_begdf_27",Ej="_qprogress_begdf_33",kj="_styleUnify_begdf_38",Fl={confirmModal:xj,wrapClassName:Sj,notBtnIcon:Cj,qprogress:Ej,styleUnify:kj};var pf={exports:{}},Tj=pf.exports,Sw;function Oj(){return Sw||(Sw=1,function(e,t){(function(r,n){e.exports=n()})(Tj,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(p){for(var g,y=1,x=arguments.length;y<x;y++)for(var E in g=arguments[y])Object.prototype.hasOwnProperty.call(g,E)&&(p[E]=g[E]);return p}).apply(this,arguments)};function n(p,g,y){return p<g?g:p>y?y:p}function a(p,g){var y=i(p),x=y+g;o(y,g)||(p.className=x.substring(1))}function i(p){return(" "+(p&&p.className||"")+" ").replace(/\s+/gi," ")}function o(p,g){return p.indexOf(" "+g+" ")>=0}function l(p){return String(100*(-1+p))}var u=function(){var p=["Webkit","O","Moz","ms"],g={};function y(E){return E=E.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(k,T){return T.toUpperCase()}),g[E]||(g[E]=function(k){var T=document.body.style;if(k in T)return k;for(var w,S=p.length,f=k.charAt(0).toUpperCase()+k.slice(1);S--;)if((w=p[S]+f)in T)return w;return k}(E))}function x(E,k,T){k=y(k),E.style[k]=T}return function(E,k){var T,w,S=arguments;if(S.length===2)for(T in k)w=k[T],k.hasOwnProperty(T)&&x(E,T,w);else x(E,S[1],S[2])}}(),c=function(){var p=[];function g(){var y=p.shift();y&&y(g)}return function(y){p.push(y),p.length===1&&g()}}();function m(p,g){var y=i(p),x="";o(y,g)&&(x=y.replace(" "+g+" "," "),p.className=x.substring(1,x.length-1))}return function(p,g){g===void 0&&(g={});var y=g.insertAt;if(typeof document<"u"){var x=document.head||document.getElementsByTagName("head")[0],E=document.createElement("style");E.type="text/css",y==="top"&&x.firstChild?x.insertBefore(E,x.firstChild):x.appendChild(E),E.styleSheet?E.styleSheet.cssText=p:E.appendChild(document.createTextNode(p))}}("#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 p(g){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>'},g)}return p.prototype.set=function(g){var y=this.isStarted();g=n(g,this.config.minimum,1),this.status=g===1?null:g;var x=this.config,E=x.barSelector,k=x.speed,T=x.easing,w=x.parentNode,S=this.config.positionUsing,f=this.render(!y),h=f.querySelector(E),v=k,_=T;f.offsetWidth,c(function(R){var C,P;S===""&&(C=document.body.style,S=(P="webkitTransform"in C?"webkit":"mozTransform"in C?"moz":"msTransform"in C?"ms":"oTransform"in C?"o":"")+"Perspective"in C?"translate3d":P+"Transform"in C?"translate":"margin"),u(h,function(M,q,L,N){var j;return(j=N==="translate3d"?{transform:"translate3d("+l(M)+"%, 0, 0)"}:N==="translate"?{transform:"translate("+l(M)+"%, 0)"}:{"margin-left":l(M)+"%"}).transition="all "+q+"ms "+L,j}(g,v,_,S)),g===1?(u(f,{transition:"none",opacity:1}),f.offsetWidth,setTimeout(function(){u(f,{transition:"all "+v+"ms linear",opacity:0}),setTimeout(function(){(function(M){m(document.documentElement,"qprogress-busy"),typeof M=="string"&&M.length!==0?m(document.querySelector(M),"qprogress-custom-parent"):m(M,"qprogress-custom-parent");var q,L=document.getElementById("qprogress");L&&(q=L)&&q.parentNode&&q.parentNode.removeChild(q)})(w),R()},v)},v)):setTimeout(R,v)})},p.prototype.isStarted=function(){return typeof this.status=="number"},p.prototype.start=function(){var g=this,y=this.config,x=y.trickle,E=y.trickleSpeed;this.status||this.set(0);var k=function(){setTimeout(function(){g.status&&(g.trickle(),k())},E)};x&&k()},p.prototype.finish=function(g){(g||this.status)&&(this.inc(.3+.5*Math.random()),this.set(1))},p.prototype.trickle=function(){this.inc()},p.prototype.inc=function(g){var y=this.status;return y?y>1?void 0:(typeof g!="number"&&(g=y>=0&&y<.2?.1:y>=.2&&y<.5?.04:y>=.5&&y<.8?.02:y>=.8&&y<.99?.005:0),y=n(y+g,0,.994),this.set(y)):this.start()},p.prototype.isRendered=function(){return!!document.getElementById("qprogress")},p.prototype.render=function(g){if(this.isRendered())return document.getElementById("qprogress");a(document.documentElement,"qprogress-busy");var y=this.config,x=y.template,E=y.barSelector,k=y.pegSelector,T=y.parentNode,w=y.height,S=y.color,f=y.colorful,h=document.createElement("div");h.id="qprogress",h.innerHTML=x;var v=h.querySelector(E),_=v.querySelector(k),R=g?"-100":l(this.status||0),C=typeof T=="string"?document.querySelector(T):T;return u(v,{height:w+"px",backgroundColor:S,transition:"all 0 linear",transform:"translate3d("+R+"%, 0, 0)"}),f?v&&a(v,"colorful-bar"):u(_,{boxShadow:"0 0 10px "+S+", 0 0 5px "+S}),C!==document.body&&a(C,"qprogress-custom-parent"),C.appendChild(h),h},p}()})}(pf)),pf.exports}var Aj=Oj();const Rj=Rr(Aj);var ul={exports:{}},Pm={},Rd={exports:{}},Pd={exports:{}},_t={};/** @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 Cw;function Pj(){if(Cw)return _t;Cw=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,o=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,E=e?Symbol.for("react.block"):60121,k=e?Symbol.for("react.fundamental"):60117,T=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function S(h){if(typeof h=="object"&&h!==null){var v=h.$$typeof;switch(v){case t:switch(h=h.type,h){case u:case c:case n:case i:case a:case p:return h;default:switch(h=h&&h.$$typeof,h){case l:case m:case x:case y:case o:return h;default:return v}}case r:return v}}}function f(h){return S(h)===c}return _t.AsyncMode=u,_t.ConcurrentMode=c,_t.ContextConsumer=l,_t.ContextProvider=o,_t.Element=t,_t.ForwardRef=m,_t.Fragment=n,_t.Lazy=x,_t.Memo=y,_t.Portal=r,_t.Profiler=i,_t.StrictMode=a,_t.Suspense=p,_t.isAsyncMode=function(h){return f(h)||S(h)===u},_t.isConcurrentMode=f,_t.isContextConsumer=function(h){return S(h)===l},_t.isContextProvider=function(h){return S(h)===o},_t.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===t},_t.isForwardRef=function(h){return S(h)===m},_t.isFragment=function(h){return S(h)===n},_t.isLazy=function(h){return S(h)===x},_t.isMemo=function(h){return S(h)===y},_t.isPortal=function(h){return S(h)===r},_t.isProfiler=function(h){return S(h)===i},_t.isStrictMode=function(h){return S(h)===a},_t.isSuspense=function(h){return S(h)===p},_t.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===n||h===c||h===i||h===a||h===p||h===g||typeof h=="object"&&h!==null&&(h.$$typeof===x||h.$$typeof===y||h.$$typeof===o||h.$$typeof===l||h.$$typeof===m||h.$$typeof===k||h.$$typeof===T||h.$$typeof===w||h.$$typeof===E)},_t.typeOf=S,_t}var wt={};/** @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 Ew;function Dj(){return Ew||(Ew=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,o=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,E=e?Symbol.for("react.block"):60121,k=e?Symbol.for("react.fundamental"):60117,T=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function S(he){return typeof he=="string"||typeof he=="function"||he===n||he===c||he===i||he===a||he===p||he===g||typeof he=="object"&&he!==null&&(he.$$typeof===x||he.$$typeof===y||he.$$typeof===o||he.$$typeof===l||he.$$typeof===m||he.$$typeof===k||he.$$typeof===T||he.$$typeof===w||he.$$typeof===E)}function f(he){if(typeof he=="object"&&he!==null){var qe=he.$$typeof;switch(qe){case t:var oe=he.type;switch(oe){case u:case c:case n:case i:case a:case p:return oe;default:var De=oe&&oe.$$typeof;switch(De){case l:case m:case x:case y:case o:return De;default:return qe}}case r:return qe}}}var h=u,v=c,_=l,R=o,C=t,P=m,M=n,q=x,L=y,N=r,j=i,O=a,I=p,z=!1;function B(he){return z||(z=!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.")),H(he)||f(he)===u}function H(he){return f(he)===c}function U(he){return f(he)===l}function J(he){return f(he)===o}function re(he){return typeof he=="object"&&he!==null&&he.$$typeof===t}function ne(he){return f(he)===m}function se(he){return f(he)===n}function ce(he){return f(he)===x}function le(he){return f(he)===y}function ye(he){return f(he)===r}function we(he){return f(he)===i}function Ee(he){return f(he)===a}function Le(he){return f(he)===p}wt.AsyncMode=h,wt.ConcurrentMode=v,wt.ContextConsumer=_,wt.ContextProvider=R,wt.Element=C,wt.ForwardRef=P,wt.Fragment=M,wt.Lazy=q,wt.Memo=L,wt.Portal=N,wt.Profiler=j,wt.StrictMode=O,wt.Suspense=I,wt.isAsyncMode=B,wt.isConcurrentMode=H,wt.isContextConsumer=U,wt.isContextProvider=J,wt.isElement=re,wt.isForwardRef=ne,wt.isFragment=se,wt.isLazy=ce,wt.isMemo=le,wt.isPortal=ye,wt.isProfiler=we,wt.isStrictMode=Ee,wt.isSuspense=Le,wt.isValidElementType=S,wt.typeOf=f}()),wt}var kw;function qS(){return kw||(kw=1,process.env.NODE_ENV==="production"?Pd.exports=Pj():Pd.exports=Dj()),Pd.exports}/*
317
- object-assign
318
- (c) Sindre Sorhus
319
- @license MIT
320
- */var Dm,Tw;function Mj(){if(Tw)return Dm;Tw=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 o={},l=0;l<10;l++)o["_"+String.fromCharCode(l)]=l;var u=Object.getOwnPropertyNames(o).map(function(m){return o[m]});if(u.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(m){c[m]=m}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Dm=a()?Object.assign:function(i,o){for(var l,u=n(i),c,m=1;m<arguments.length;m++){l=Object(arguments[m]);for(var p in l)t.call(l,p)&&(u[p]=l[p]);if(e){c=e(l);for(var g=0;g<c.length;g++)r.call(l,c[g])&&(u[c[g]]=l[c[g]])}}return u},Dm}var Mm,Ow;function lv(){if(Ow)return Mm;Ow=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Mm=e,Mm}var Fm,Aw;function WS(){return Aw||(Aw=1,Fm=Function.call.bind(Object.prototype.hasOwnProperty)),Fm}var Nm,Rw;function Fj(){if(Rw)return Nm;Rw=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=lv(),r={},n=WS();e=function(i){var o="Warning: "+i;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function a(i,o,l,u,c){if(process.env.NODE_ENV!=="production"){for(var m in i)if(n(i,m)){var p;try{if(typeof i[m]!="function"){var g=Error((u||"React class")+": "+l+" type `"+m+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[m]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw g.name="Invariant Violation",g}p=i[m](o,m,u,l,null,t)}catch(x){p=x}if(p&&!(p instanceof Error)&&e((u||"React class")+": type specification of "+l+" `"+m+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in r)){r[p.message]=!0;var y=c?c():"";e("Failed "+l+" type: "+p.message+(y??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Nm=a,Nm}var Im,Pw;function Nj(){if(Pw)return Im;Pw=1;var e=qS(),t=Mj(),r=lv(),n=WS(),a=Fj(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(l){var u="Warning: "+l;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function o(){return null}return Im=function(l,u){var c=typeof Symbol=="function"&&Symbol.iterator,m="@@iterator";function p(H){var U=H&&(c&&H[c]||H[m]);if(typeof U=="function")return U}var g="<<anonymous>>",y={array:T("array"),bigint:T("bigint"),bool:T("boolean"),func:T("function"),number:T("number"),object:T("object"),string:T("string"),symbol:T("symbol"),any:w(),arrayOf:S,element:f(),elementType:h(),instanceOf:v,node:P(),objectOf:R,oneOf:_,oneOfType:C,shape:q,exact:L};function x(H,U){return H===U?H!==0||1/H===1/U:H!==H&&U!==U}function E(H,U){this.message=H,this.data=U&&typeof U=="object"?U:{},this.stack=""}E.prototype=Error.prototype;function k(H){if(process.env.NODE_ENV!=="production")var U={},J=0;function re(se,ce,le,ye,we,Ee,Le){if(ye=ye||g,Ee=Ee||le,Le!==r){if(u){var he=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 he.name="Invariant Violation",he}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var qe=ye+":"+le;!U[qe]&&J<3&&(i("You are manually calling a React.PropTypes validation function for the `"+Ee+"` prop on `"+ye+"`. 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."),U[qe]=!0,J++)}}return ce[le]==null?se?ce[le]===null?new E("The "+we+" `"+Ee+"` is marked as required "+("in `"+ye+"`, but its value is `null`.")):new E("The "+we+" `"+Ee+"` is marked as required in "+("`"+ye+"`, but its value is `undefined`.")):null:H(ce,le,ye,we,Ee)}var ne=re.bind(null,!1);return ne.isRequired=re.bind(null,!0),ne}function T(H){function U(J,re,ne,se,ce,le){var ye=J[re],we=O(ye);if(we!==H){var Ee=I(ye);return new E("Invalid "+se+" `"+ce+"` of type "+("`"+Ee+"` supplied to `"+ne+"`, expected ")+("`"+H+"`."),{expectedType:H})}return null}return k(U)}function w(){return k(o)}function S(H){function U(J,re,ne,se,ce){if(typeof H!="function")return new E("Property `"+ce+"` of component `"+ne+"` has invalid PropType notation inside arrayOf.");var le=J[re];if(!Array.isArray(le)){var ye=O(le);return new E("Invalid "+se+" `"+ce+"` of type "+("`"+ye+"` supplied to `"+ne+"`, expected an array."))}for(var we=0;we<le.length;we++){var Ee=H(le,we,ne,se,ce+"["+we+"]",r);if(Ee instanceof Error)return Ee}return null}return k(U)}function f(){function H(U,J,re,ne,se){var ce=U[J];if(!l(ce)){var le=O(ce);return new E("Invalid "+ne+" `"+se+"` of type "+("`"+le+"` supplied to `"+re+"`, expected a single ReactElement."))}return null}return k(H)}function h(){function H(U,J,re,ne,se){var ce=U[J];if(!e.isValidElementType(ce)){var le=O(ce);return new E("Invalid "+ne+" `"+se+"` of type "+("`"+le+"` supplied to `"+re+"`, expected a single ReactElement type."))}return null}return k(H)}function v(H){function U(J,re,ne,se,ce){if(!(J[re]instanceof H)){var le=H.name||g,ye=B(J[re]);return new E("Invalid "+se+" `"+ce+"` of type "+("`"+ye+"` supplied to `"+ne+"`, expected ")+("instance of `"+le+"`."))}return null}return k(U)}function _(H){if(!Array.isArray(H))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.")),o;function U(J,re,ne,se,ce){for(var le=J[re],ye=0;ye<H.length;ye++)if(x(le,H[ye]))return null;var we=JSON.stringify(H,function(Le,he){var qe=I(he);return qe==="symbol"?String(he):he});return new E("Invalid "+se+" `"+ce+"` of value `"+String(le)+"` "+("supplied to `"+ne+"`, expected one of "+we+"."))}return k(U)}function R(H){function U(J,re,ne,se,ce){if(typeof H!="function")return new E("Property `"+ce+"` of component `"+ne+"` has invalid PropType notation inside objectOf.");var le=J[re],ye=O(le);if(ye!=="object")return new E("Invalid "+se+" `"+ce+"` of type "+("`"+ye+"` supplied to `"+ne+"`, expected an object."));for(var we in le)if(n(le,we)){var Ee=H(le,we,ne,se,ce+"."+we,r);if(Ee instanceof Error)return Ee}return null}return k(U)}function C(H){if(!Array.isArray(H))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var U=0;U<H.length;U++){var J=H[U];if(typeof J!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+z(J)+" at index "+U+"."),o}function re(ne,se,ce,le,ye){for(var we=[],Ee=0;Ee<H.length;Ee++){var Le=H[Ee],he=Le(ne,se,ce,le,ye,r);if(he==null)return null;he.data&&n(he.data,"expectedType")&&we.push(he.data.expectedType)}var qe=we.length>0?", expected one of type ["+we.join(", ")+"]":"";return new E("Invalid "+le+" `"+ye+"` supplied to "+("`"+ce+"`"+qe+"."))}return k(re)}function P(){function H(U,J,re,ne,se){return N(U[J])?null:new E("Invalid "+ne+" `"+se+"` supplied to "+("`"+re+"`, expected a ReactNode."))}return k(H)}function M(H,U,J,re,ne){return new E((H||"React class")+": "+U+" type `"+J+"."+re+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ne+"`.")}function q(H){function U(J,re,ne,se,ce){var le=J[re],ye=O(le);if(ye!=="object")return new E("Invalid "+se+" `"+ce+"` of type `"+ye+"` "+("supplied to `"+ne+"`, expected `object`."));for(var we in H){var Ee=H[we];if(typeof Ee!="function")return M(ne,se,ce,we,I(Ee));var Le=Ee(le,we,ne,se,ce+"."+we,r);if(Le)return Le}return null}return k(U)}function L(H){function U(J,re,ne,se,ce){var le=J[re],ye=O(le);if(ye!=="object")return new E("Invalid "+se+" `"+ce+"` of type `"+ye+"` "+("supplied to `"+ne+"`, expected `object`."));var we=t({},J[re],H);for(var Ee in we){var Le=H[Ee];if(n(H,Ee)&&typeof Le!="function")return M(ne,se,ce,Ee,I(Le));if(!Le)return new E("Invalid "+se+" `"+ce+"` key `"+Ee+"` supplied to `"+ne+"`.\nBad object: "+JSON.stringify(J[re],null," ")+`
321
- Valid keys: `+JSON.stringify(Object.keys(H),null," "));var he=Le(le,Ee,ne,se,ce+"."+Ee,r);if(he)return he}return null}return k(U)}function N(H){switch(typeof H){case"number":case"string":case"undefined":return!0;case"boolean":return!H;case"object":if(Array.isArray(H))return H.every(N);if(H===null||l(H))return!0;var U=p(H);if(U){var J=U.call(H),re;if(U!==H.entries){for(;!(re=J.next()).done;)if(!N(re.value))return!1}else for(;!(re=J.next()).done;){var ne=re.value;if(ne&&!N(ne[1]))return!1}}else return!1;return!0;default:return!1}}function j(H,U){return H==="symbol"?!0:U?U["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&U instanceof Symbol:!1}function O(H){var U=typeof H;return Array.isArray(H)?"array":H instanceof RegExp?"object":j(U,H)?"symbol":U}function I(H){if(typeof H>"u"||H===null)return""+H;var U=O(H);if(U==="object"){if(H instanceof Date)return"date";if(H instanceof RegExp)return"regexp"}return U}function z(H){var U=I(H);switch(U){case"array":case"object":return"an "+U;case"boolean":case"date":case"regexp":return"a "+U;default:return U}}function B(H){return!H.constructor||!H.constructor.name?g:H.constructor.name}return y.checkPropTypes=a,y.resetWarningCache=a.resetWarningCache,y.PropTypes=y,y},Im}var Lm,Dw;function Ij(){if(Dw)return Lm;Dw=1;var e=lv();function t(){}function r(){}return r.resetWarningCache=t,Lm=function(){function n(o,l,u,c,m,p){if(p!==e){var g=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 g.name="Invariant Violation",g}}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},Lm}var Mw;function hc(){if(Mw)return Rd.exports;if(Mw=1,process.env.NODE_ENV!=="production"){var e=qS(),t=!0;Rd.exports=Nj()(e.isElement,t)}else Rd.exports=Ij()();return Rd.exports}function VS(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=VS(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function bs(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=VS(e))&&(n&&(n+=" "),n+=t);return n}const Lj=Object.freeze(Object.defineProperty({__proto__:null,clsx:bs,default:bs},Symbol.toStringTag,{value:"Module"})),jj=cP(Lj);var Yt={},bi={},Fw;function sh(){if(Fw)return bi;Fw=1,Object.defineProperty(bi,"__esModule",{value:!0}),bi.dontSetMe=a,bi.findInArray=e,bi.int=n,bi.isFunction=t,bi.isNum=r;function e(i,o){for(let l=0,u=i.length;l<u;l++)if(o.apply(o,[i[l],l,i]))return i[l]}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,o,l){if(i[o])return new Error("Invalid prop ".concat(o," passed to ").concat(l," - do not set this, set it on the child."))}return bi}var yi={},Nw;function $j(){if(Nw)return yi;Nw=1,Object.defineProperty(yi,"__esModule",{value:!0}),yi.browserPrefixToKey=r,yi.browserPrefixToStyle=n,yi.default=void 0,yi.getPrefix=t;const e=["Moz","Webkit","O","ms"];function t(){var i;let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const l=(i=window.document)===null||i===void 0||(i=i.documentElement)===null||i===void 0?void 0:i.style;if(!l||o in l)return"";for(let u=0;u<e.length;u++)if(r(o,e[u])in l)return e[u];return""}function r(i,o){return o?"".concat(o).concat(a(i)):i}function n(i,o){return o?"-".concat(o.toLowerCase(),"-").concat(i):i}function a(i){let o="",l=!0;for(let u=0;u<i.length;u++)l?(o+=i[u].toUpperCase(),l=!1):i[u]==="-"?l=!0:o+=i[u];return o}return yi.default=t(),yi}var Iw;function cv(){if(Iw)return Yt;Iw=1,Object.defineProperty(Yt,"__esModule",{value:!0}),Yt.addClassName=h,Yt.addEvent=l,Yt.addUserSelectStyles=S,Yt.createCSSTransform=x,Yt.createSVGTransform=E,Yt.getTouch=T,Yt.getTouchIdentifier=w,Yt.getTranslation=k,Yt.innerHeight=p,Yt.innerWidth=g,Yt.matchesSelector=i,Yt.matchesSelectorAndParentsTo=o,Yt.offsetXYFromParent=y,Yt.outerHeight=c,Yt.outerWidth=m,Yt.removeClassName=v,Yt.removeEvent=u,Yt.removeUserSelectStyles=f;var e=sh(),t=n($j());function r(_){if(typeof WeakMap!="function")return null;var R=new WeakMap,C=new WeakMap;return(r=function(P){return P?C:R})(_)}function n(_,R){if(_&&_.__esModule)return _;if(_===null||typeof _!="object"&&typeof _!="function")return{default:_};var C=r(R);if(C&&C.has(_))return C.get(_);var P={},M=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var q in _)if(q!=="default"&&Object.prototype.hasOwnProperty.call(_,q)){var L=M?Object.getOwnPropertyDescriptor(_,q):null;L&&(L.get||L.set)?Object.defineProperty(P,q,L):P[q]=_[q]}return P.default=_,C&&C.set(_,P),P}let a="";function i(_,R){return a||(a=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(C){return(0,e.isFunction)(_[C])})),(0,e.isFunction)(_[a])?_[a](R):!1}function o(_,R,C){let P=_;do{if(i(P,R))return!0;if(P===C)return!1;P=P.parentNode}while(P);return!1}function l(_,R,C,P){if(!_)return;const M={capture:!0,...P};_.addEventListener?_.addEventListener(R,C,M):_.attachEvent?_.attachEvent("on"+R,C):_["on"+R]=C}function u(_,R,C,P){if(!_)return;const M={capture:!0,...P};_.removeEventListener?_.removeEventListener(R,C,M):_.detachEvent?_.detachEvent("on"+R,C):_["on"+R]=null}function c(_){let R=_.clientHeight;const C=_.ownerDocument.defaultView.getComputedStyle(_);return R+=(0,e.int)(C.borderTopWidth),R+=(0,e.int)(C.borderBottomWidth),R}function m(_){let R=_.clientWidth;const C=_.ownerDocument.defaultView.getComputedStyle(_);return R+=(0,e.int)(C.borderLeftWidth),R+=(0,e.int)(C.borderRightWidth),R}function p(_){let R=_.clientHeight;const C=_.ownerDocument.defaultView.getComputedStyle(_);return R-=(0,e.int)(C.paddingTop),R-=(0,e.int)(C.paddingBottom),R}function g(_){let R=_.clientWidth;const C=_.ownerDocument.defaultView.getComputedStyle(_);return R-=(0,e.int)(C.paddingLeft),R-=(0,e.int)(C.paddingRight),R}function y(_,R,C){const M=R===R.ownerDocument.body?{left:0,top:0}:R.getBoundingClientRect(),q=(_.clientX+R.scrollLeft-M.left)/C,L=(_.clientY+R.scrollTop-M.top)/C;return{x:q,y:L}}function x(_,R){const C=k(_,R,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:C}}function E(_,R){return k(_,R,"")}function k(_,R,C){let{x:P,y:M}=_,q="translate(".concat(P).concat(C,",").concat(M).concat(C,")");if(R){const L="".concat(typeof R.x=="string"?R.x:R.x+C),N="".concat(typeof R.y=="string"?R.y:R.y+C);q="translate(".concat(L,", ").concat(N,")")+q}return q}function T(_,R){return _.targetTouches&&(0,e.findInArray)(_.targetTouches,C=>R===C.identifier)||_.changedTouches&&(0,e.findInArray)(_.changedTouches,C=>R===C.identifier)}function w(_){if(_.targetTouches&&_.targetTouches[0])return _.targetTouches[0].identifier;if(_.changedTouches&&_.changedTouches[0])return _.changedTouches[0].identifier}function S(_){if(!_)return;let R=_.getElementById("react-draggable-style-el");R||(R=_.createElement("style"),R.type="text/css",R.id="react-draggable-style-el",R.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
322
- `,R.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
323
- `,_.getElementsByTagName("head")[0].appendChild(R)),_.body&&h(_.body,"react-draggable-transparent-selection")}function f(_){if(_)try{if(_.body&&v(_.body,"react-draggable-transparent-selection"),_.selection)_.selection.empty();else{const R=(_.defaultView||window).getSelection();R&&R.type!=="Caret"&&R.removeAllRanges()}}catch{}}function h(_,R){_.classList?_.classList.add(R):_.className.match(new RegExp("(?:^|\\s)".concat(R,"(?!\\S)")))||(_.className+=" ".concat(R))}function v(_,R){_.classList?_.classList.remove(R):_.className=_.className.replace(new RegExp("(?:^|\\s)".concat(R,"(?!\\S)"),"g"),"")}return Yt}var aa={},Lw;function YS(){if(Lw)return aa;Lw=1,Object.defineProperty(aa,"__esModule",{value:!0}),aa.canDragX=a,aa.canDragY=i,aa.createCoreData=l,aa.createDraggableData=u,aa.getBoundPosition=r,aa.getControlPosition=o,aa.snapToGrid=n;var e=sh(),t=cv();function r(p,g,y){if(!p.props.bounds)return[g,y];let{bounds:x}=p.props;x=typeof x=="string"?x:c(x);const E=m(p);if(typeof x=="string"){const{ownerDocument:k}=E,T=k.defaultView;let w;if(x==="parent"?w=E.parentNode:w=k.querySelector(x),!(w instanceof T.HTMLElement))throw new Error('Bounds selector "'+x+'" could not find an element.');const S=w,f=T.getComputedStyle(E),h=T.getComputedStyle(S);x={left:-E.offsetLeft+(0,e.int)(h.paddingLeft)+(0,e.int)(f.marginLeft),top:-E.offsetTop+(0,e.int)(h.paddingTop)+(0,e.int)(f.marginTop),right:(0,t.innerWidth)(S)-(0,t.outerWidth)(E)-E.offsetLeft+(0,e.int)(h.paddingRight)-(0,e.int)(f.marginRight),bottom:(0,t.innerHeight)(S)-(0,t.outerHeight)(E)-E.offsetTop+(0,e.int)(h.paddingBottom)-(0,e.int)(f.marginBottom)}}return(0,e.isNum)(x.right)&&(g=Math.min(g,x.right)),(0,e.isNum)(x.bottom)&&(y=Math.min(y,x.bottom)),(0,e.isNum)(x.left)&&(g=Math.max(g,x.left)),(0,e.isNum)(x.top)&&(y=Math.max(y,x.top)),[g,y]}function n(p,g,y){const x=Math.round(g/p[0])*p[0],E=Math.round(y/p[1])*p[1];return[x,E]}function a(p){return p.props.axis==="both"||p.props.axis==="x"}function i(p){return p.props.axis==="both"||p.props.axis==="y"}function o(p,g,y){const x=typeof g=="number"?(0,t.getTouch)(p,g):null;if(typeof g=="number"&&!x)return null;const E=m(y),k=y.props.offsetParent||E.offsetParent||E.ownerDocument.body;return(0,t.offsetXYFromParent)(x||p,k,y.props.scale)}function l(p,g,y){const x=!(0,e.isNum)(p.lastX),E=m(p);return x?{node:E,deltaX:0,deltaY:0,lastX:g,lastY:y,x:g,y}:{node:E,deltaX:g-p.lastX,deltaY:y-p.lastY,lastX:p.lastX,lastY:p.lastY,x:g,y}}function u(p,g){const y=p.props.scale;return{node:g.node,x:p.state.x+g.deltaX/y,y:p.state.y+g.deltaY/y,deltaX:g.deltaX/y,deltaY:g.deltaY/y,lastX:p.state.x,lastY:p.state.y}}function c(p){return{left:p.left,top:p.top,right:p.right,bottom:p.bottom}}function m(p){const g=p.findDOMNode();if(!g)throw new Error("<DraggableCore>: Unmounted during event!");return g}return aa}var ll={},Dd={},jw;function GS(){if(jw)return Dd;jw=1,Object.defineProperty(Dd,"__esModule",{value:!0}),Dd.default=e;function e(){}return Dd}var $w;function zj(){if($w)return ll;$w=1,Object.defineProperty(ll,"__esModule",{value:!0}),ll.default=void 0;var e=c(F),t=l(hc()),r=l(zl),n=cv(),a=YS(),i=sh(),o=l(GS());function l(k){return k&&k.__esModule?k:{default:k}}function u(k){if(typeof WeakMap!="function")return null;var T=new WeakMap,w=new WeakMap;return(u=function(S){return S?w:T})(k)}function c(k,T){if(k&&k.__esModule)return k;if(k===null||typeof k!="object"&&typeof k!="function")return{default:k};var w=u(T);if(w&&w.has(k))return w.get(k);var S={},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var h in k)if(h!=="default"&&Object.prototype.hasOwnProperty.call(k,h)){var v=f?Object.getOwnPropertyDescriptor(k,h):null;v&&(v.get||v.set)?Object.defineProperty(S,h,v):S[h]=k[h]}return S.default=k,w&&w.set(k,S),S}function m(k,T,w){return T=p(T),T in k?Object.defineProperty(k,T,{value:w,enumerable:!0,configurable:!0,writable:!0}):k[T]=w,k}function p(k){var T=g(k,"string");return typeof T=="symbol"?T:String(T)}function g(k,T){if(typeof k!="object"||k===null)return k;var w=k[Symbol.toPrimitive];if(w!==void 0){var S=w.call(k,T);if(typeof S!="object")return S;throw new TypeError("@@toPrimitive must return a primitive value.")}return(T==="string"?String:Number)(k)}const y={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let x=y.mouse,E=class extends e.Component{constructor(){super(...arguments),m(this,"dragging",!1),m(this,"lastX",NaN),m(this,"lastY",NaN),m(this,"touchIdentifier",null),m(this,"mounted",!1),m(this,"handleDragStart",T=>{if(this.props.onMouseDown(T),!this.props.allowAnyClick&&typeof T.button=="number"&&T.button!==0)return!1;const w=this.findDOMNode();if(!w||!w.ownerDocument||!w.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:S}=w;if(this.props.disabled||!(T.target instanceof S.defaultView.Node)||this.props.handle&&!(0,n.matchesSelectorAndParentsTo)(T.target,this.props.handle,w)||this.props.cancel&&(0,n.matchesSelectorAndParentsTo)(T.target,this.props.cancel,w))return;T.type==="touchstart"&&T.preventDefault();const f=(0,n.getTouchIdentifier)(T);this.touchIdentifier=f;const h=(0,a.getControlPosition)(T,f,this);if(h==null)return;const{x:v,y:_}=h,R=(0,a.createCoreData)(this,v,_);(0,o.default)("DraggableCore: handleDragStart: %j",R),(0,o.default)("calling",this.props.onStart),!(this.props.onStart(T,R)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,n.addUserSelectStyles)(S),this.dragging=!0,this.lastX=v,this.lastY=_,(0,n.addEvent)(S,x.move,this.handleDrag),(0,n.addEvent)(S,x.stop,this.handleDragStop))}),m(this,"handleDrag",T=>{const w=(0,a.getControlPosition)(T,this.touchIdentifier,this);if(w==null)return;let{x:S,y:f}=w;if(Array.isArray(this.props.grid)){let _=S-this.lastX,R=f-this.lastY;if([_,R]=(0,a.snapToGrid)(this.props.grid,_,R),!_&&!R)return;S=this.lastX+_,f=this.lastY+R}const h=(0,a.createCoreData)(this,S,f);if((0,o.default)("DraggableCore: handleDrag: %j",h),this.props.onDrag(T,h)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const R=document.createEvent("MouseEvents");R.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(R)}return}this.lastX=S,this.lastY=f}),m(this,"handleDragStop",T=>{if(!this.dragging)return;const w=(0,a.getControlPosition)(T,this.touchIdentifier,this);if(w==null)return;let{x:S,y:f}=w;if(Array.isArray(this.props.grid)){let R=S-this.lastX||0,C=f-this.lastY||0;[R,C]=(0,a.snapToGrid)(this.props.grid,R,C),S=this.lastX+R,f=this.lastY+C}const h=(0,a.createCoreData)(this,S,f);if(this.props.onStop(T,h)===!1||this.mounted===!1)return!1;const _=this.findDOMNode();_&&this.props.enableUserSelectHack&&(0,n.removeUserSelectStyles)(_.ownerDocument),(0,o.default)("DraggableCore: handleDragStop: %j",h),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,_&&((0,o.default)("DraggableCore: Removing handlers"),(0,n.removeEvent)(_.ownerDocument,x.move,this.handleDrag),(0,n.removeEvent)(_.ownerDocument,x.stop,this.handleDragStop))}),m(this,"onMouseDown",T=>(x=y.mouse,this.handleDragStart(T))),m(this,"onMouseUp",T=>(x=y.mouse,this.handleDragStop(T))),m(this,"onTouchStart",T=>(x=y.touch,this.handleDragStart(T))),m(this,"onTouchEnd",T=>(x=y.touch,this.handleDragStop(T)))}componentDidMount(){this.mounted=!0;const T=this.findDOMNode();T&&(0,n.addEvent)(T,y.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const T=this.findDOMNode();if(T){const{ownerDocument:w}=T;(0,n.removeEvent)(w,y.mouse.move,this.handleDrag),(0,n.removeEvent)(w,y.touch.move,this.handleDrag),(0,n.removeEvent)(w,y.mouse.stop,this.handleDragStop),(0,n.removeEvent)(w,y.touch.stop,this.handleDragStop),(0,n.removeEvent)(T,y.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,n.removeUserSelectStyles)(w)}}findDOMNode(){var T,w;return(T=this.props)!==null&&T!==void 0&&T.nodeRef?(w=this.props)===null||w===void 0||(w=w.nodeRef)===null||w===void 0?void 0:w.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 ll.default=E,m(E,"displayName","DraggableCore"),m(E,"propTypes",{allowAnyClick:t.default.bool,children:t.default.node.isRequired,disabled:t.default.bool,enableUserSelectHack:t.default.bool,offsetParent:function(k,T){if(k[T]&&k[T].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}),m(E,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),ll}var zw;function Bj(){return zw||(zw=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=g(F),r=m(hc()),n=m(zl),a=m(jj),i=cv(),o=YS(),l=sh(),u=m(zj()),c=m(GS());function m(w){return w&&w.__esModule?w:{default:w}}function p(w){if(typeof WeakMap!="function")return null;var S=new WeakMap,f=new WeakMap;return(p=function(h){return h?f:S})(w)}function g(w,S){if(w&&w.__esModule)return w;if(w===null||typeof w!="object"&&typeof w!="function")return{default:w};var f=p(S);if(f&&f.has(w))return f.get(w);var h={},v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in w)if(_!=="default"&&Object.prototype.hasOwnProperty.call(w,_)){var R=v?Object.getOwnPropertyDescriptor(w,_):null;R&&(R.get||R.set)?Object.defineProperty(h,_,R):h[_]=w[_]}return h.default=w,f&&f.set(w,h),h}function y(){return y=Object.assign?Object.assign.bind():function(w){for(var S=1;S<arguments.length;S++){var f=arguments[S];for(var h in f)Object.prototype.hasOwnProperty.call(f,h)&&(w[h]=f[h])}return w},y.apply(this,arguments)}function x(w,S,f){return S=E(S),S in w?Object.defineProperty(w,S,{value:f,enumerable:!0,configurable:!0,writable:!0}):w[S]=f,w}function E(w){var S=k(w,"string");return typeof S=="symbol"?S:String(S)}function k(w,S){if(typeof w!="object"||w===null)return w;var f=w[Symbol.toPrimitive];if(f!==void 0){var h=f.call(w,S);if(typeof h!="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(S==="string"?String:Number)(w)}class T extends t.Component{static getDerivedStateFromProps(S,f){let{position:h}=S,{prevPropsPosition:v}=f;return h&&(!v||h.x!==v.x||h.y!==v.y)?((0,c.default)("Draggable: getDerivedStateFromProps %j",{position:h,prevPropsPosition:v}),{x:h.x,y:h.y,prevPropsPosition:{...h}}):null}constructor(S){super(S),x(this,"onDragStart",(f,h)=>{if((0,c.default)("Draggable: onDragStart: %j",h),this.props.onStart(f,(0,o.createDraggableData)(this,h))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),x(this,"onDrag",(f,h)=>{if(!this.state.dragging)return!1;(0,c.default)("Draggable: onDrag: %j",h);const v=(0,o.createDraggableData)(this,h),_={x:v.x,y:v.y,slackX:0,slackY:0};if(this.props.bounds){const{x:C,y:P}=_;_.x+=this.state.slackX,_.y+=this.state.slackY;const[M,q]=(0,o.getBoundPosition)(this,_.x,_.y);_.x=M,_.y=q,_.slackX=this.state.slackX+(C-_.x),_.slackY=this.state.slackY+(P-_.y),v.x=_.x,v.y=_.y,v.deltaX=_.x-this.state.x,v.deltaY=_.y-this.state.y}if(this.props.onDrag(f,v)===!1)return!1;this.setState(_)}),x(this,"onDragStop",(f,h)=>{if(!this.state.dragging||this.props.onStop(f,(0,o.createDraggableData)(this,h))===!1)return!1;(0,c.default)("Draggable: onDragStop: %j",h);const _={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:C,y:P}=this.props.position;_.x=C,_.y=P}this.setState(_)}),this.state={dragging:!1,dragged:!1,x:S.position?S.position.x:S.defaultPosition.x,y:S.position?S.position.y:S.defaultPosition.y,prevPropsPosition:{...S.position},slackX:0,slackY:0,isElementSVG:!1},S.position&&!(S.onDrag||S.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 S,f;return(S=(f=this.props)===null||f===void 0||(f=f.nodeRef)===null||f===void 0?void 0:f.current)!==null&&S!==void 0?S:n.default.findDOMNode(this)}render(){const{axis:S,bounds:f,children:h,defaultPosition:v,defaultClassName:_,defaultClassNameDragging:R,defaultClassNameDragged:C,position:P,positionOffset:M,scale:q,...L}=this.props;let N={},j=null;const I=!!!P||this.state.dragging,z=P||v,B={x:(0,o.canDragX)(this)&&I?this.state.x:z.x,y:(0,o.canDragY)(this)&&I?this.state.y:z.y};this.state.isElementSVG?j=(0,i.createSVGTransform)(B,M):N=(0,i.createCSSTransform)(B,M);const H=(0,a.default)(h.props.className||"",_,{[R]:this.state.dragging,[C]:this.state.dragged});return t.createElement(u.default,y({},L,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(h),{className:H,style:{...h.props.style,...N},transform:j}))}}e.default=T,x(T,"displayName","Draggable"),x(T,"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:l.dontSetMe,style:l.dontSetMe,transform:l.dontSetMe}),x(T,"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})}(Pm)),Pm}var Bw;function dv(){if(Bw)return ul.exports;Bw=1;const{default:e,DraggableCore:t}=Bj();return ul.exports=e,ul.exports.default=e,ul.exports.DraggableCore=t,ul.exports}var Hj=dv();const Uj=Rr(Hj);function qj(e){const{title:t,content:r,onOk:n,onCancel:a,isShowBtnIcon:i=!0}=e,o=F.useContext(lc),l=zM(o==null?void 0:o.iconScriptUrl);return{...e,title:D.jsx("div",{title:ie.isString(t)?t:"",children:t}),content:D.jsx("div",{title:ie.isString(r)?r:"",children:r}),mask:!1,wrapClassName:"twiceaffirm",className:`${i?"":Fl.notBtnIcon} ${Fl.confirmModal}`,width:"480px",bodyStyle:{padding:"12px"},icon:D.jsx(l,{type:"icon-front-uploadFail",style:{fontSize:"18px",color:"#ffb200",marginRight:"6px",marginTop:"2px"}}),okButtonProps:{icon:D.jsx(l,{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:D.jsx(l,{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 To=e=>{const[t,r]=F.useState(null),[n,a]=F.useState(!0),[i,o]=F.useState({left:0,right:0,top:0,bottom:0}),l=F.useRef(),u=!!e.styleUnify;zs(()=>{const m=document.getElementById("qprogressElement");if(m&&!t){const p=new Rj({minimum:.02,height:4,parentNode:m});r(p)}}),ah(()=>{t&&(t.finish(),r(null))}),F.useEffect(()=>{e.progressPercent&&t&&(1>e.progressPercent?t.set(e.progressPercent):t.finish())},[e.progressPercent]);const c=(m,p)=>{var E;const{clientWidth:g,clientHeight:y}=window.document.documentElement,x=(E=l.current)==null?void 0:E.getBoundingClientRect();x&&o({left:-x.left+p.x,right:g-(x.right-p.x),top:-x.top+p.y,bottom:y-(x.bottom-p.y)})};return D.jsxs(Z.Modal,{destroyOnClose:!0,okText:e.okText||Y("sys.label.confirm",{placeholder:"确定"}),okButtonProps:{style:{height:"30px",minWidth:"72px"}},cancelButtonProps:{style:{minWidth:"72px",height:"30px"}},getContainer:()=>document.getElementById("ria-frontend"),title:D.jsx("div",{style:{width:"100%",cursor:"move"},onMouseOver:()=>{n&&a(!1)},onMouseOut:()=>{a(!0)},onFocus:()=>{},onBlur:()=>{},children:e.modalTitle}),modalRender:m=>D.jsx(Uj,{disabled:n,bounds:i,onStart:(p,g)=>c(p,g),children:D.jsx("div",{ref:l,children:m})}),...ie.omit(e,"visible"),wrapClassName:`modalClassName ${Fl.wrapClassName} ${e.wrapClassName??""}`,className:`${u?Fl.styleUnify:""} ${e.className??""}`,visible:e.visible,children:[D.jsx("div",{className:Fl.qprogress,id:"qprogressElement"}),D.jsx("div",{onDoubleClick:m=>m.stopPropagation(),children:e.children})]})},Wj="_main_104mn_1",Vj={main:Wj};var jm={},$m={},cl={exports:{}},io={exports:{}},Yj=io.exports,Hw;function Gj(){return Hw||(Hw=1,(function(){var e,t,r,n,a,i;typeof performance<"u"&&performance!==null&&performance.now?io.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(io.exports=function(){return(e()-a)/1e6},t=process.hrtime,e=function(){var o;return o=t(),o[0]*1e9+o[1]},n=e(),i=process.uptime()*1e9,a=n-i):Date.now?(io.exports=function(){return Date.now()-r},r=Date.now()):(io.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(Yj)),io.exports}var Uw;function Kj(){if(Uw)return cl.exports;Uw=1;for(var e=Gj(),t=typeof window>"u"?Un:window,r=["moz","webkit"],n="AnimationFrame",a=t["request"+n],i=t["cancel"+n]||t["cancelRequest"+n],o=0;!a&&o<r.length;o++)a=t[r[o]+"Request"+n],i=t[r[o]+"Cancel"+n]||t[r[o]+"CancelRequest"+n];if(!a||!i){var l=0,u=0,c=[],m=1e3/60;a=function(p){if(c.length===0){var g=e(),y=Math.max(0,m-(g-l));l=y+g,setTimeout(function(){var x=c.slice(0);c.length=0;for(var E=0;E<x.length;E++)if(!x[E].cancelled)try{x[E].callback(l)}catch(k){setTimeout(function(){throw k},0)}},Math.round(y))}return c.push({handle:++u,callback:p,cancelled:!1}),u},i=function(p){for(var g=0;g<c.length;g++)c[g].handle===p&&(c[g].cancelled=!0)}}return cl.exports=function(p){return a.call(t,p)},cl.exports.cancel=function(){i.apply(t,arguments)},cl.exports.polyfill=function(p){p||(p=t),p.requestAnimationFrame=a,p.cancelAnimationFrame=i},cl.exports}var dl={exports:{}},zm,qw;function Xj(){if(qw)return zm;qw=1;var e=null,t=["Webkit","Moz","O","ms"];return zm=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),o=t.length;o>=0;o--){var l=t[o]+i;if(l in a)return l}return!1},zm}var Bm,Ww;function Zj(){if(Ww)return Bm;Ww=1,Bm=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)?l(u).toLowerCase():u.toLowerCase()}var a=/[\W_]+(.|$)/g;function i(u){return u.replace(a,function(c,m){return m?" "+m:""})}var o=/(.)([A-Z]+)/g;function l(u){return u.replace(o,function(c,m,p){return m+" "+p.toLowerCase().split("").join(" ")})}return Bm}var Hm,Vw;function Jj(){if(Vw)return Hm;Vw=1;var e=Zj();Hm=t;function t(r){return e(r).replace(/[\W_]+(.|$)/g,function(n,a){return a?" "+a:""}).trim()}return Hm}var Um,Yw;function Qj(){if(Yw)return Um;Yw=1;var e=Jj();Um=t;function t(r){return e(r).replace(/\s(\w)/g,function(n,a){return a.toUpperCase()})}return Um}var qm,Gw;function e$(){if(Gw)return qm;Gw=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 qm=function(t,r){return typeof r=="number"&&!e[t]?r+"px":r},qm}var Kw;function KS(){if(Kw)return dl.exports;Kw=1;var e=Xj(),t=Qj(),r={float:"cssFloat"},n=e$();function a(u,c,m){var p=r[c];if(typeof p>"u"&&(p=o(c)),p){if(m===void 0)return u.style[p];u.style[p]=n(p,m)}}function i(u,c){for(var m in c)c.hasOwnProperty(m)&&a(u,m,c[m])}function o(u){var c=t(u),m=e(c);return r[c]=r[u]=r[m]=m,m}function l(){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 dl.exports=l,dl.exports.set=l,dl.exports.get=function(u,c){return Array.isArray(c)?c.reduce(function(m,p){return m[p]=a(u,p||""),m},{}):a(u,c||"")},dl.exports}var Wm={},Xw;function t$(){return Xw||(Xw=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){return typeof r=="string"}}(Wm)),Wm}var Vm={},Zw;function r$(){return Zw||(Zw=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var t=KS(),r=n(t);function n(o){return o&&o.__esModule?o:{default:o}}var a=!1;function i(){if(a!==!1)return a;if(typeof document<"u"){var o=document.createElement("div");(0,r.default)(o,{width:100,height:100,position:"absolute",top:-9999,overflow:"scroll",MsOverflowStyle:"scrollbar"}),document.body.appendChild(o),a=o.offsetWidth-o.clientWidth,document.body.removeChild(o)}else a=0;return a||0}}(Vm)),Vm}var Ym={},Jw;function n$(){return Jw||(Jw=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(){return!1}}(Ym)),Ym}var Gm={},Qw;function a$(){return Qw||(Qw=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,o=a.paddingRight;return n-parseFloat(i)-parseFloat(o)}}(Gm)),Gm}var Km={},ex;function i$(){return ex||(ex=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,o=a.paddingBottom;return n-parseFloat(i)-parseFloat(o)}}(Km)),Km}var jr={},tx;function o$(){return tx||(tx=1,Object.defineProperty(jr,"__esModule",{value:!0}),jr.containerStyleDefault={position:"relative",overflow:"hidden",width:"100%",height:"100%"},jr.containerStyleAutoHeight={height:"auto"},jr.viewStyleDefault={position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"scroll",WebkitOverflowScrolling:"touch"},jr.viewStyleAutoHeight={position:"relative",top:void 0,left:void 0,right:void 0,bottom:void 0},jr.viewStyleUniversalInitial={overflow:"hidden",marginRight:0,marginBottom:0},jr.trackHorizontalStyleDefault={position:"absolute",height:6},jr.trackVerticalStyleDefault={position:"absolute",width:6},jr.thumbHorizontalStyleDefault={position:"relative",display:"block",height:"100%"},jr.thumbVerticalStyleDefault={position:"relative",display:"block",width:"100%"},jr.disableSelectStyle={userSelect:"none"},jr.disableSelectStyleReset={userSelect:""}),jr}var _i={},rx;function s$(){if(rx)return _i;rx=1,Object.defineProperty(_i,"__esModule",{value:!0});var e=Object.assign||function(m){for(var p=1;p<arguments.length;p++){var g=arguments[p];for(var y in g)Object.prototype.hasOwnProperty.call(g,y)&&(m[y]=g[y])}return m};_i.renderViewDefault=i,_i.renderTrackHorizontalDefault=o,_i.renderTrackVerticalDefault=l,_i.renderThumbHorizontalDefault=u,_i.renderThumbVerticalDefault=c;var t=F,r=n(t);function n(m){return m&&m.__esModule?m:{default:m}}function a(m,p){var g={};for(var y in m)p.indexOf(y)>=0||Object.prototype.hasOwnProperty.call(m,y)&&(g[y]=m[y]);return g}function i(m){return r.default.createElement("div",m)}function o(m){var p=m.style,g=a(m,["style"]),y=e({},p,{right:2,bottom:2,left:2,borderRadius:3});return r.default.createElement("div",e({style:y},g))}function l(m){var p=m.style,g=a(m,["style"]),y=e({},p,{right:2,bottom:2,top:2,borderRadius:3});return r.default.createElement("div",e({style:y},g))}function u(m){var p=m.style,g=a(m,["style"]),y=e({},p,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return r.default.createElement("div",e({style:y},g))}function c(m){var p=m.style,g=a(m,["style"]),y=e({},p,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return r.default.createElement("div",e({style:y},g))}return _i}var nx;function u$(){return nx||(nx=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Object.assign||function(q){for(var L=1;L<arguments.length;L++){var N=arguments[L];for(var j in N)Object.prototype.hasOwnProperty.call(N,j)&&(q[j]=N[j])}return q},r=function(){function q(L,N){for(var j=0;j<N.length;j++){var O=N[j];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(L,O.key,O)}}return function(L,N,j){return N&&q(L.prototype,N),j&&q(L,j),L}}(),n=Kj(),a=v(n),i=KS(),o=v(i),l=F,u=hc(),c=v(u),m=t$(),p=v(m),g=r$(),y=v(g),x=n$(),E=v(x),k=a$(),T=v(k),w=i$(),S=v(w),f=o$(),h=s$();function v(q){return q&&q.__esModule?q:{default:q}}function _(q,L){var N={};for(var j in q)L.indexOf(j)>=0||Object.prototype.hasOwnProperty.call(q,j)&&(N[j]=q[j]);return N}function R(q,L){if(!(q instanceof L))throw new TypeError("Cannot call a class as a function")}function C(q,L){if(!q)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L&&(typeof L=="object"||typeof L=="function")?L:q}function P(q,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof L);q.prototype=Object.create(L&&L.prototype,{constructor:{value:q,enumerable:!1,writable:!0,configurable:!0}}),L&&(Object.setPrototypeOf?Object.setPrototypeOf(q,L):q.__proto__=L)}var M=function(q){P(L,q);function L(N){var j;R(this,L);for(var O=arguments.length,I=Array(O>1?O-1:0),z=1;z<O;z++)I[z-1]=arguments[z];var B=C(this,(j=L.__proto__||Object.getPrototypeOf(L)).call.apply(j,[this,N].concat(I)));return B.getScrollLeft=B.getScrollLeft.bind(B),B.getScrollTop=B.getScrollTop.bind(B),B.getScrollWidth=B.getScrollWidth.bind(B),B.getScrollHeight=B.getScrollHeight.bind(B),B.getClientWidth=B.getClientWidth.bind(B),B.getClientHeight=B.getClientHeight.bind(B),B.getValues=B.getValues.bind(B),B.getThumbHorizontalWidth=B.getThumbHorizontalWidth.bind(B),B.getThumbVerticalHeight=B.getThumbVerticalHeight.bind(B),B.getScrollLeftForOffset=B.getScrollLeftForOffset.bind(B),B.getScrollTopForOffset=B.getScrollTopForOffset.bind(B),B.scrollLeft=B.scrollLeft.bind(B),B.scrollTop=B.scrollTop.bind(B),B.scrollToLeft=B.scrollToLeft.bind(B),B.scrollToTop=B.scrollToTop.bind(B),B.scrollToRight=B.scrollToRight.bind(B),B.scrollToBottom=B.scrollToBottom.bind(B),B.handleTrackMouseEnter=B.handleTrackMouseEnter.bind(B),B.handleTrackMouseLeave=B.handleTrackMouseLeave.bind(B),B.handleHorizontalTrackMouseDown=B.handleHorizontalTrackMouseDown.bind(B),B.handleVerticalTrackMouseDown=B.handleVerticalTrackMouseDown.bind(B),B.handleHorizontalThumbMouseDown=B.handleHorizontalThumbMouseDown.bind(B),B.handleVerticalThumbMouseDown=B.handleVerticalThumbMouseDown.bind(B),B.handleWindowResize=B.handleWindowResize.bind(B),B.handleScroll=B.handleScroll.bind(B),B.handleDrag=B.handleDrag.bind(B),B.handleDragEnd=B.handleDragEnd.bind(B),B.state={didMountUniversal:!1},B}return r(L,[{key:"componentDidMount",value:function(){this.addListeners(),this.update(),this.componentDidMountUniversal()}},{key:"componentDidMountUniversal",value:function(){var j=this.props.universal;j&&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 j=this.view||{},O=j.scrollLeft,I=O===void 0?0:O,z=j.scrollTop,B=z===void 0?0:z,H=j.scrollWidth,U=H===void 0?0:H,J=j.scrollHeight,re=J===void 0?0:J,ne=j.clientWidth,se=ne===void 0?0:ne,ce=j.clientHeight,le=ce===void 0?0:ce;return{left:I/(U-se)||0,top:B/(re-le)||0,scrollLeft:I,scrollTop:B,scrollWidth:U,scrollHeight:re,clientWidth:se,clientHeight:le}}},{key:"getThumbHorizontalWidth",value:function(){var j=this.props,O=j.thumbSize,I=j.thumbMinSize,z=this.view,B=z.scrollWidth,H=z.clientWidth,U=(0,T.default)(this.trackHorizontal),J=Math.ceil(H/B*U);return U===J?0:O||Math.max(J,I)}},{key:"getThumbVerticalHeight",value:function(){var j=this.props,O=j.thumbSize,I=j.thumbMinSize,z=this.view,B=z.scrollHeight,H=z.clientHeight,U=(0,S.default)(this.trackVertical),J=Math.ceil(H/B*U);return U===J?0:O||Math.max(J,I)}},{key:"getScrollLeftForOffset",value:function(j){var O=this.view,I=O.scrollWidth,z=O.clientWidth,B=(0,T.default)(this.trackHorizontal),H=this.getThumbHorizontalWidth();return j/(B-H)*(I-z)}},{key:"getScrollTopForOffset",value:function(j){var O=this.view,I=O.scrollHeight,z=O.clientHeight,B=(0,S.default)(this.trackVertical),H=this.getThumbVerticalHeight();return j/(B-H)*(I-z)}},{key:"scrollLeft",value:function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.view&&(this.view.scrollLeft=j)}},{key:"scrollTop",value:function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.view&&(this.view.scrollTop=j)}},{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 j=this.view,O=this.trackHorizontal,I=this.trackVertical,z=this.thumbHorizontal,B=this.thumbVertical;j.addEventListener("scroll",this.handleScroll),(0,y.default)()&&(O.addEventListener("mouseenter",this.handleTrackMouseEnter),O.addEventListener("mouseleave",this.handleTrackMouseLeave),O.addEventListener("mousedown",this.handleHorizontalTrackMouseDown),I.addEventListener("mouseenter",this.handleTrackMouseEnter),I.addEventListener("mouseleave",this.handleTrackMouseLeave),I.addEventListener("mousedown",this.handleVerticalTrackMouseDown),z.addEventListener("mousedown",this.handleHorizontalThumbMouseDown),B.addEventListener("mousedown",this.handleVerticalThumbMouseDown),window.addEventListener("resize",this.handleWindowResize))}}},{key:"removeListeners",value:function(){if(!(typeof document>"u"||!this.view)){var j=this.view,O=this.trackHorizontal,I=this.trackVertical,z=this.thumbHorizontal,B=this.thumbVertical;j.removeEventListener("scroll",this.handleScroll),(0,y.default)()&&(O.removeEventListener("mouseenter",this.handleTrackMouseEnter),O.removeEventListener("mouseleave",this.handleTrackMouseLeave),O.removeEventListener("mousedown",this.handleHorizontalTrackMouseDown),I.removeEventListener("mouseenter",this.handleTrackMouseEnter),I.removeEventListener("mouseleave",this.handleTrackMouseLeave),I.removeEventListener("mousedown",this.handleVerticalTrackMouseDown),z.removeEventListener("mousedown",this.handleHorizontalThumbMouseDown),B.removeEventListener("mousedown",this.handleVerticalThumbMouseDown),window.removeEventListener("resize",this.handleWindowResize),this.teardownDragging())}}},{key:"handleScroll",value:function(j){var O=this,I=this.props,z=I.onScroll,B=I.onScrollFrame;z&&z(j),this.update(function(H){var U=H.scrollLeft,J=H.scrollTop;O.viewScrollLeft=U,O.viewScrollTop=J,B&&B(H)}),this.detectScrolling()}},{key:"handleScrollStart",value:function(){var j=this.props.onScrollStart;j&&j(),this.handleScrollStartAutoHide()}},{key:"handleScrollStartAutoHide",value:function(){var j=this.props.autoHide;j&&this.showTracks()}},{key:"handleScrollStop",value:function(){var j=this.props.onScrollStop;j&&j(),this.handleScrollStopAutoHide()}},{key:"handleScrollStopAutoHide",value:function(){var j=this.props.autoHide;j&&this.hideTracks()}},{key:"handleWindowResize",value:function(){this.update()}},{key:"handleHorizontalTrackMouseDown",value:function(j){j.preventDefault();var O=j.target,I=j.clientX,z=O.getBoundingClientRect(),B=z.left,H=this.getThumbHorizontalWidth(),U=Math.abs(B-I)-H/2;this.view.scrollLeft=this.getScrollLeftForOffset(U)}},{key:"handleVerticalTrackMouseDown",value:function(j){j.preventDefault();var O=j.target,I=j.clientY,z=O.getBoundingClientRect(),B=z.top,H=this.getThumbVerticalHeight(),U=Math.abs(B-I)-H/2;this.view.scrollTop=this.getScrollTopForOffset(U)}},{key:"handleHorizontalThumbMouseDown",value:function(j){j.preventDefault(),this.handleDragStart(j);var O=j.target,I=j.clientX,z=O.offsetWidth,B=O.getBoundingClientRect(),H=B.left;this.prevPageX=z-(I-H)}},{key:"handleVerticalThumbMouseDown",value:function(j){j.preventDefault(),this.handleDragStart(j);var O=j.target,I=j.clientY,z=O.offsetHeight,B=O.getBoundingClientRect(),H=B.top;this.prevPageY=z-(I-H)}},{key:"setupDragging",value:function(){(0,o.default)(document.body,f.disableSelectStyle),document.addEventListener("mousemove",this.handleDrag),document.addEventListener("mouseup",this.handleDragEnd),document.onselectstart=E.default}},{key:"teardownDragging",value:function(){(0,o.default)(document.body,f.disableSelectStyleReset),document.removeEventListener("mousemove",this.handleDrag),document.removeEventListener("mouseup",this.handleDragEnd),document.onselectstart=void 0}},{key:"handleDragStart",value:function(j){this.dragging=!0,j.stopImmediatePropagation(),this.setupDragging()}},{key:"handleDrag",value:function(j){if(this.prevPageX){var O=j.clientX,I=this.trackHorizontal.getBoundingClientRect(),z=I.left,B=this.getThumbHorizontalWidth(),H=B-this.prevPageX,U=-z+O-H;this.view.scrollLeft=this.getScrollLeftForOffset(U)}if(this.prevPageY){var J=j.clientY,re=this.trackVertical.getBoundingClientRect(),ne=re.top,se=this.getThumbVerticalHeight(),ce=se-this.prevPageY,le=-ne+J-ce;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 j=this.props.autoHide;j&&this.hideTracks()}},{key:"handleTrackMouseEnter",value:function(){this.trackMouseOver=!0,this.handleTrackMouseEnterAutoHide()}},{key:"handleTrackMouseEnterAutoHide",value:function(){var j=this.props.autoHide;j&&this.showTracks()}},{key:"handleTrackMouseLeave",value:function(){this.trackMouseOver=!1,this.handleTrackMouseLeaveAutoHide()}},{key:"handleTrackMouseLeaveAutoHide",value:function(){var j=this.props.autoHide;j&&this.hideTracks()}},{key:"showTracks",value:function(){clearTimeout(this.hideTracksTimeout),(0,o.default)(this.trackHorizontal,{opacity:1}),(0,o.default)(this.trackVertical,{opacity:1})}},{key:"hideTracks",value:function(){var j=this;if(!this.dragging&&!this.scrolling&&!this.trackMouseOver){var O=this.props.autoHideTimeout;clearTimeout(this.hideTracksTimeout),this.hideTracksTimeout=setTimeout(function(){(0,o.default)(j.trackHorizontal,{opacity:0}),(0,o.default)(j.trackVertical,{opacity:0})},O)}}},{key:"detectScrolling",value:function(){var j=this;this.scrolling||(this.scrolling=!0,this.handleScrollStart(),this.detectScrollingInterval=setInterval(function(){j.lastViewScrollLeft===j.viewScrollLeft&&j.lastViewScrollTop===j.viewScrollTop&&(clearInterval(j.detectScrollingInterval),j.scrolling=!1,j.handleScrollStop()),j.lastViewScrollLeft=j.viewScrollLeft,j.lastViewScrollTop=j.viewScrollTop},100))}},{key:"raf",value:function(j){var O=this;this.requestFrame&&a.default.cancel(this.requestFrame),this.requestFrame=(0,a.default)(function(){O.requestFrame=void 0,j()})}},{key:"update",value:function(j){var O=this;this.raf(function(){return O._update(j)})}},{key:"_update",value:function(j){var O=this.props,I=O.onUpdate,z=O.hideTracksWhenNotNeeded,B=this.getValues();if((0,y.default)()){var H=B.scrollLeft,U=B.clientWidth,J=B.scrollWidth,re=(0,T.default)(this.trackHorizontal),ne=this.getThumbHorizontalWidth(),se=H/(J-U)*(re-ne),ce={width:ne,transform:"translateX("+se+"px)"},le=B.scrollTop,ye=B.clientHeight,we=B.scrollHeight,Ee=(0,S.default)(this.trackVertical),Le=this.getThumbVerticalHeight(),he=le/(we-ye)*(Ee-Le),qe={height:Le,transform:"translateY("+he+"px)"};if(z){var oe={visibility:J>U?"visible":"hidden"},De={visibility:we>ye?"visible":"hidden"};(0,o.default)(this.trackHorizontal,oe),(0,o.default)(this.trackVertical,De)}(0,o.default)(this.thumbHorizontal,ce),(0,o.default)(this.thumbVertical,qe)}I&&I(B),typeof j=="function"&&j(B)}},{key:"render",value:function(){var j=this,O=(0,y.default)(),I=this.props;I.onScroll,I.onScrollFrame,I.onScrollStart,I.onScrollStop,I.onUpdate;var z=I.renderView,B=I.renderTrackHorizontal,H=I.renderTrackVertical,U=I.renderThumbHorizontal,J=I.renderThumbVertical,re=I.tagName;I.hideTracksWhenNotNeeded;var ne=I.autoHide;I.autoHideTimeout;var se=I.autoHideDuration;I.thumbSize,I.thumbMinSize;var ce=I.universal,le=I.autoHeight,ye=I.autoHeightMin,we=I.autoHeightMax,Ee=I.style,Le=I.children,he=_(I,["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,oe=t({},f.containerStyleDefault,le&&t({},f.containerStyleAutoHeight,{minHeight:ye,maxHeight:we}),Ee),De=t({},f.viewStyleDefault,{marginRight:O?-O:0,marginBottom:O?-O:0},le&&t({},f.viewStyleAutoHeight,{minHeight:(0,p.default)(ye)?"calc("+ye+" + "+O+"px)":ye+O,maxHeight:(0,p.default)(we)?"calc("+we+" + "+O+"px)":we+O}),le&&ce&&!qe&&{minHeight:ye,maxHeight:we},ce&&!qe&&f.viewStyleUniversalInitial),Je={transition:"opacity "+se+"ms",opacity:0},Ct=t({},f.trackHorizontalStyleDefault,ne&&Je,(!O||ce&&!qe)&&{display:"none"}),Et=t({},f.trackVerticalStyleDefault,ne&&Je,(!O||ce&&!qe)&&{display:"none"});return(0,l.createElement)(re,t({},he,{style:oe,ref:function(We){j.container=We}}),[(0,l.cloneElement)(z({style:De}),{key:"view",ref:function(We){j.view=We}},Le),(0,l.cloneElement)(B({style:Ct}),{key:"trackHorizontal",ref:function(We){j.trackHorizontal=We}},(0,l.cloneElement)(U({style:f.thumbHorizontalStyleDefault}),{ref:function(We){j.thumbHorizontal=We}})),(0,l.cloneElement)(H({style:Et}),{key:"trackVertical",ref:function(We){j.trackVertical=We}},(0,l.cloneElement)(J({style:f.thumbVerticalStyleDefault}),{ref:function(We){j.thumbVertical=We}}))])}}]),L}(l.Component);e.default=M,M.propTypes={onScroll:c.default.func,onScrollFrame:c.default.func,onScrollStart:c.default.func,onScrollStop:c.default.func,onUpdate:c.default.func,renderView:c.default.func,renderTrackHorizontal:c.default.func,renderTrackVertical:c.default.func,renderThumbHorizontal:c.default.func,renderThumbVertical:c.default.func,tagName:c.default.string,thumbSize:c.default.number,thumbMinSize:c.default.number,hideTracksWhenNotNeeded:c.default.bool,autoHide:c.default.bool,autoHideTimeout:c.default.number,autoHideDuration:c.default.number,autoHeight:c.default.bool,autoHeightMin:c.default.oneOfType([c.default.number,c.default.string]),autoHeightMax:c.default.oneOfType([c.default.number,c.default.string]),universal:c.default.bool,style:c.default.object,children:c.default.node},M.defaultProps={renderView:h.renderViewDefault,renderTrackHorizontal:h.renderTrackHorizontalDefault,renderTrackVertical:h.renderTrackVerticalDefault,renderThumbHorizontal:h.renderThumbHorizontalDefault,renderThumbVertical:h.renderThumbVerticalDefault,tagName:"div",thumbMinSize:30,hideTracksWhenNotNeeded:!1,autoHide:!1,autoHideTimeout:1e3,autoHideDuration:200,autoHeight:!1,autoHeightMin:0,autoHeightMax:200,universal:!1}}($m)),$m}var ax;function l$(){return ax||(ax=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Scrollbars=void 0;var t=u$(),r=n(t);function n(a){return a&&a.__esModule?a:{default:a}}e.default=r.default,e.Scrollbars=r.default}(jm)),jm}var c$=l$();const d$=e=>D.jsx(c$.Scrollbars,{autoHide:!0,style:{...ie.merge({overflow:"auto",height:"100%"},e.style)},...e,className:Te(Vj.main,e.className),renderThumbVertical:({style:t,...r})=>{const n={borderRadius:"0px",background:"#e0e0e0"};return D.jsx("div",{style:{...t,...n},...r})},children:e.children}),Md={"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"},f$=e=>D.jsx("div",{className:Md["error-box"],children:D.jsxs("div",{className:Md["err-box-list"],children:[D.jsx("div",{children:D.jsx(Ue,{style:{fontSize:"45px"},isBackend:!0,type:"a-front-previewerror",className:Md["err-color"]})}),D.jsx("div",{style:{marginTop:"20px",color:"#6c81b1",fontSize:"14px"},children:e.children||Y("sys.error.loading",{placeholder:"加载错误"})}),D.jsx("div",{style:{marginTop:"30px"},children:D.jsx("div",{className:Md["custom-button"],onClick:()=>{location.reload()},children:Y("sys.action.refresh",{placeholder:"刷新"})})})]})}),h$="_main_7zdwk_1",p$={main:h$},m$=e=>{const t=async(n,a)=>{const i=e.menu.items[a];if(i.request){i.request.middleware&&await i.request.middleware();let o=await e.request(i.request.url,i.request.options);Z.message.success(o.message),i.request.onSuccess&&i.request.onSuccess()}e.menu.onClick&&e.menu.onClick({...n,key:a.toString()})},r=D.jsx(Z.Menu,{...ie.omit(e.menu,["items"]),onClick:()=>{},children:e.menu.items.map((n,a)=>n.confirm?D.jsx(Z.Popconfirm,{disabled:e.disabled,okText:Y("sys.action.confirm",{placeholder:"确认"}),cancelText:Y("sys.action.cancel",{placeholder:"取消"}),onConfirm:()=>{t(n,a)},...n.confirm,children:D.jsx(Z.Menu.Item,{onClick:()=>{},...n},a)},n.key||a):D.jsx(Z.Menu.Item,{onClick:()=>{t(n,a)},...n},n.key||a))});return D.jsx(Z.Dropdown,{overlayStyle:{...e.style},overlayClassName:e.className,className:Te(p$.main),overlay:r,...ie.omit(e,["menu"])})},pc=({valueType:e="12",...t})=>{const r=Br({defaultValue1:"",defaultValue2:""});return UF(()=>{t.onBlur&&t.onBlur()},()=>document.getElementById("use-click-away-button")),F.useEffect(()=>{t.value?(r.defaultValue1=t.value.split("~%~")[0]||"",r.defaultValue2=t.value.split("~%~")[1]||""):(r.defaultValue1="",r.defaultValue2="")},[t.value]),D.jsx("div",{id:"use-click-away-button",children:D.jsxs(Z.Space.Compact,{style:{width:"100%"},children:[e=="12"&&D.jsx(Z.Input,{...t,disabled:t.readOnly,value:r.defaultValue1,size:t.size,style:{width:"calc(100% - 100px)"},onChange:n=>{var i,o;let a;r.defaultValue1=((i=n.target)==null?void 0:i.value)||"",r.defaultValue1?a=`${((o=n.target)==null?void 0:o.value)||""}~%~${r.defaultValue2||""}`:r.defaultValue2&&(a=`~%~${r.defaultValue2||""}`),t.onChange&&t.onChange(a)},onBlur:n=>{n.stopPropagation()}}),e=="13"&&D.jsx(Z.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()}}),D.jsx(Z.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)}})]})})},g$=e=>{const[t,r]=F.useState(!1);$F(async()=>{const a=["/filePreview/plugin.js","/filePreview/luckyexcel.umd.js","/filePreview/luckysheet.umd.js"],i=l=>new Promise((u,c)=>{const m=document.createElement("script");m.src=`${l}`,m.onload=u,m.onerror=c,document.head.appendChild(m)});await(async()=>{for(const l of a)await i(l)})(),n()},[]);const n=()=>{function a(i){const o=new XMLHttpRequest;o.open("GET",i,!0),o.onerror=()=>{},o.responseType="blob",o.onload=()=>{if(o.status===200){var l=new File([o.response],"",{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",lastModified:Date.now()});window.LuckyExcel.transformExcelToLucky(l,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",c=>{window.luckysheet.enterEditMode(),window.luckysheet.exitEditMode()}),r(!0))})}},o.send()}a(e.url)};return D.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"}})},v$={},XS=F.forwardRef((e,t)=>{const[r]=Z.Form.useForm();return F.useImperativeHandle(t,()=>({...r})),D.jsx("div",{className:Te(v$.main,e.className),style:e.style,children:D.jsx(Z.Form,{form:r,layout:"vertical",...e,children:e.children})})}),b$="_main_1rp4h_1",y$={main:b$};class As{static getAttributesMapId(t,r){return As.isQuoteMultipleTypesAttr(t)?r?t[r]:t.id:As.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 xi=(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))(xi||{});class Fi{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 Fi.isProjectStartChange(t)||Fi.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 ZS;function ve(){return ZS.apply(null,arguments)}function _$(e){ZS=e}function Kn(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function _o(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function ht(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function fv(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 zr(e){return e===void 0}function ri(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function mc(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function JS(e,t){var r=[],n,a=e.length;for(n=0;n<a;++n)r.push(t(e[n],n));return r}function Oi(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 va(e,t,r,n){return w4(e,t,r,n,!0).utc()}function w$(){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 Xe(e){return e._pf==null&&(e._pf=w$()),e._pf}var u1;Array.prototype.some?u1=Array.prototype.some:u1=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 hv(e){var t=null,r=!1,n=e._d&&!isNaN(e._d.getTime());if(n&&(t=Xe(e),r=u1.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 uh(e){var t=va(NaN);return e!=null?Oi(Xe(t),e):Xe(t).userInvalidated=!0,t}var ix=ve.momentProperties=[],Xm=!1;function pv(e,t){var r,n,a,i=ix.length;if(zr(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),zr(t._i)||(e._i=t._i),zr(t._f)||(e._f=t._f),zr(t._l)||(e._l=t._l),zr(t._strict)||(e._strict=t._strict),zr(t._tzm)||(e._tzm=t._tzm),zr(t._isUTC)||(e._isUTC=t._isUTC),zr(t._offset)||(e._offset=t._offset),zr(t._pf)||(e._pf=Xe(t)),zr(t._locale)||(e._locale=t._locale),i>0)for(r=0;r<i;r++)n=ix[r],a=t[n],zr(a)||(e[n]=a);return e}function gc(e){pv(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Xm===!1&&(Xm=!0,ve.updateOffset(this),Xm=!1)}function Xn(e){return e instanceof gc||e!=null&&e._isAMomentObject!=null}function QS(e){ve.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function Tn(e,t){var r=!0;return Oi(function(){if(ve.deprecationHandler!=null&&ve.deprecationHandler(null,e),r){var n=[],a,i,o,l=arguments.length;for(i=0;i<l;i++){if(a="",typeof arguments[i]=="object"){a+=`
329
- [`+i+"] ";for(o in arguments[0])ht(arguments[0],o)&&(a+=o+": "+arguments[0][o]+", ");a=a.slice(0,-2)}else a=arguments[i];n.push(a)}QS(e+`
330
- Arguments: `+Array.prototype.slice.call(n).join("")+`
331
- `+new Error().stack),r=!1}return t.apply(this,arguments)},t)}var ox={};function e4(e,t){ve.deprecationHandler!=null&&ve.deprecationHandler(e,t),ox[e]||(QS(t),ox[e]=!0)}ve.suppressDeprecationWarnings=!1;ve.deprecationHandler=null;function ba(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function x$(e){var t,r;for(r in e)ht(e,r)&&(t=e[r],ba(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 l1(e,t){var r=Oi({},e),n;for(n in t)ht(t,n)&&(_o(e[n])&&_o(t[n])?(r[n]={},Oi(r[n],e[n]),Oi(r[n],t[n])):t[n]!=null?r[n]=t[n]:delete r[n]);for(n in e)ht(e,n)&&!ht(t,n)&&_o(e[n])&&(r[n]=Oi({},r[n]));return r}function mv(e){e!=null&&this.set(e)}var c1;Object.keys?c1=Object.keys:c1=function(e){var t,r=[];for(t in e)ht(e,t)&&r.push(t);return r};var S$={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function C$(e,t,r){var n=this._calendar[e]||this._calendar.sameElse;return ba(n)?n.call(t,r):n}function ma(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 gv=/(\[[^\[]*\])|(\\)?([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,Fd=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Zm={},ys={};function Me(e,t,r,n){var a=n;typeof n=="string"&&(a=function(){return this[n]()}),e&&(ys[e]=a),t&&(ys[t[0]]=function(){return ma(a.apply(this,arguments),t[1],t[2])}),r&&(ys[r]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function E$(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function k$(e){var t=e.match(gv),r,n;for(r=0,n=t.length;r<n;r++)ys[t[r]]?t[r]=ys[t[r]]:t[r]=E$(t[r]);return function(a){var i="",o;for(o=0;o<n;o++)i+=ba(t[o])?t[o].call(a,e):t[o];return i}}function mf(e,t){return e.isValid()?(t=t4(t,e.localeData()),Zm[t]=Zm[t]||k$(t),Zm[t](e)):e.localeData().invalidDate()}function t4(e,t){var r=5;function n(a){return t.longDateFormat(a)||a}for(Fd.lastIndex=0;r>=0&&Fd.test(e);)e=e.replace(Fd,n),Fd.lastIndex=0,r-=1;return e}var T$={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 O$(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(gv).map(function(n){return n==="MMMM"||n==="MM"||n==="DD"||n==="dddd"?n.slice(1):n}).join(""),this._longDateFormat[e])}var A$="Invalid date";function R$(){return this._invalidDate}var P$="%d",D$=/\d{1,2}/;function M$(e){return this._ordinal.replace("%d",e)}var F$={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 N$(e,t,r,n){var a=this._relativeTime[r];return ba(a)?a(e,t,r,n):a.replace(/%d/i,e)}function I$(e,t){var r=this._relativeTime[e>0?"future":"past"];return ba(r)?r(t):r.replace(/%s/i,t)}var sx={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 On(e){return typeof e=="string"?sx[e]||sx[e.toLowerCase()]:void 0}function vv(e){var t={},r,n;for(n in e)ht(e,n)&&(r=On(n),r&&(t[r]=e[n]));return t}var L$={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 j$(e){var t=[],r;for(r in e)ht(e,r)&&t.push({unit:r,priority:L$[r]});return t.sort(function(n,a){return n.priority-a.priority}),t}var r4=/\d/,cn=/\d\d/,n4=/\d{3}/,bv=/\d{4}/,lh=/[+-]?\d{6}/,It=/\d\d?/,a4=/\d\d\d\d?/,i4=/\d\d\d\d\d\d?/,ch=/\d{1,3}/,yv=/\d{1,4}/,dh=/[+-]?\d{1,6}/,Hs=/\d+/,fh=/[+-]?\d+/,$$=/Z|[+-]\d\d:?\d\d/gi,hh=/Z|[+-]\d\d(?::?\d\d)?/gi,z$=/[+-]?\d+(\.\d{1,3})?/,vc=/[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,Us=/^[1-9]\d?/,_v=/^([1-9]\d|\d)/,Nf;Nf={};function Ce(e,t,r){Nf[e]=ba(t)?t:function(n,a){return n&&r?r:t}}function B$(e,t){return ht(Nf,e)?Nf[e](t._strict,t._locale):new RegExp(H$(e))}function H$(e){return ei(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,r,n,a,i){return r||n||a||i}))}function ei(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function wn(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ut(e){var t=+e,r=0;return t!==0&&isFinite(t)&&(r=wn(t)),r}var d1={};function At(e,t){var r,n=t,a;for(typeof e=="string"&&(e=[e]),ri(t)&&(n=function(i,o){o[t]=ut(i)}),a=e.length,r=0;r<a;r++)d1[e[r]]=n}function bc(e,t){At(e,function(r,n,a,i){a._w=a._w||{},t(r,a._w,a,i)})}function U$(e,t,r){t!=null&&ht(d1,e)&&d1[e](t,r._a,r,e)}function ph(e){return e%4===0&&e%100!==0||e%400===0}var wr=0,Ja=1,la=2,nr=3,qn=4,Qa=5,go=6,q$=7,W$=8;Me("Y",0,0,function(){var e=this.year();return e<=9999?ma(e,4):"+"+e});Me(0,["YY",2],0,function(){return this.year()%100});Me(0,["YYYY",4],0,"year");Me(0,["YYYYY",5],0,"year");Me(0,["YYYYYY",6,!0],0,"year");Ce("Y",fh);Ce("YY",It,cn);Ce("YYYY",yv,bv);Ce("YYYYY",dh,lh);Ce("YYYYYY",dh,lh);At(["YYYYY","YYYYYY"],wr);At("YYYY",function(e,t){t[wr]=e.length===2?ve.parseTwoDigitYear(e):ut(e)});At("YY",function(e,t){t[wr]=ve.parseTwoDigitYear(e)});At("Y",function(e,t){t[wr]=parseInt(e,10)});function Nl(e){return ph(e)?366:365}ve.parseTwoDigitYear=function(e){return ut(e)+(ut(e)>68?1900:2e3)};var o4=qs("FullYear",!0);function V$(){return ph(this.year())}function qs(e,t){return function(r){return r!=null?(s4(this,e,r),ve.updateOffset(this,t),this):Kl(this,e)}}function Kl(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 s4(e,t,r){var n,a,i,o,l;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,o=e.month(),l=e.date(),l=l===29&&o===1&&!ph(i)?28:l,a?n.setUTCFullYear(i,o,l):n.setFullYear(i,o,l)}}function Y$(e){return e=On(e),ba(this[e])?this[e]():this}function G$(e,t){if(typeof e=="object"){e=vv(e);var r=j$(e),n,a=r.length;for(n=0;n<a;n++)this[r[n].unit](e[r[n].unit])}else if(e=On(e),ba(this[e]))return this[e](t);return this}function K$(e,t){return(e%t+t)%t}var Gt;Array.prototype.indexOf?Gt=Array.prototype.indexOf:Gt=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function wv(e,t){if(isNaN(e)||isNaN(t))return NaN;var r=K$(t,12);return e+=(t-r)/12,r===1?ph(e)?29:28:31-r%7%2}Me("M",["MM",2],"Mo",function(){return this.month()+1});Me("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});Me("MMMM",0,0,function(e){return this.localeData().months(this,e)});Ce("M",It,Us);Ce("MM",It,cn);Ce("MMM",function(e,t){return t.monthsShortRegex(e)});Ce("MMMM",function(e,t){return t.monthsRegex(e)});At(["M","MM"],function(e,t){t[Ja]=ut(e)-1});At(["MMM","MMMM"],function(e,t,r,n){var a=r._locale.monthsParse(e,n,r._strict);a!=null?t[Ja]=a:Xe(r).invalidMonth=e});var X$="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),u4="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),l4=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Z$=vc,J$=vc;function Q$(e,t){return e?Kn(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||l4).test(t)?"format":"standalone"][e.month()]:Kn(this._months)?this._months:this._months.standalone}function ez(e,t){return e?Kn(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[l4.test(t)?"format":"standalone"][e.month()]:Kn(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function tz(e,t,r){var n,a,i,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)i=va([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(i,"").toLocaleLowerCase();return r?t==="MMM"?(a=Gt.call(this._shortMonthsParse,o),a!==-1?a:null):(a=Gt.call(this._longMonthsParse,o),a!==-1?a:null):t==="MMM"?(a=Gt.call(this._shortMonthsParse,o),a!==-1?a:(a=Gt.call(this._longMonthsParse,o),a!==-1?a:null)):(a=Gt.call(this._longMonthsParse,o),a!==-1?a:(a=Gt.call(this._shortMonthsParse,o),a!==-1?a:null))}function rz(e,t,r){var n,a,i;if(this._monthsParseExact)return tz.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(a=va([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 c4(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=ut(t);else if(t=e.localeData().monthsParse(t),!ri(t))return e}var r=t,n=e.date();return n=n<29?n:Math.min(n,wv(e.year(),r)),e._isUTC?e._d.setUTCMonth(r,n):e._d.setMonth(r,n),e}function d4(e){return e!=null?(c4(this,e),ve.updateOffset(this,!0),this):Kl(this,"Month")}function nz(){return wv(this.year(),this.month())}function az(e){return this._monthsParseExact?(ht(this,"_monthsRegex")||f4.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(ht(this,"_monthsShortRegex")||(this._monthsShortRegex=Z$),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function iz(e){return this._monthsParseExact?(ht(this,"_monthsRegex")||f4.call(this),e?this._monthsStrictRegex:this._monthsRegex):(ht(this,"_monthsRegex")||(this._monthsRegex=J$),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function f4(){function e(u,c){return c.length-u.length}var t=[],r=[],n=[],a,i,o,l;for(a=0;a<12;a++)i=va([2e3,a]),o=ei(this.monthsShort(i,"")),l=ei(this.months(i,"")),t.push(o),r.push(l),n.push(l),n.push(o);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 oz(e,t,r,n,a,i,o){var l;return e<100&&e>=0?(l=new Date(e+400,t,r,n,a,i,o),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,t,r,n,a,i,o),l}function Xl(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 If(e,t,r){var n=7+t-r,a=(7+Xl(e,0,n).getUTCDay()-t)%7;return-a+n-1}function h4(e,t,r,n,a){var i=(7+r-n)%7,o=If(e,n,a),l=1+7*(t-1)+i+o,u,c;return l<=0?(u=e-1,c=Nl(u)+l):l>Nl(e)?(u=e+1,c=l-Nl(e)):(u=e,c=l),{year:u,dayOfYear:c}}function Zl(e,t,r){var n=If(e.year(),t,r),a=Math.floor((e.dayOfYear()-n-1)/7)+1,i,o;return a<1?(o=e.year()-1,i=a+ti(o,t,r)):a>ti(e.year(),t,r)?(i=a-ti(e.year(),t,r),o=e.year()+1):(o=e.year(),i=a),{week:i,year:o}}function ti(e,t,r){var n=If(e,t,r),a=If(e+1,t,r);return(Nl(e)-n+a)/7}Me("w",["ww",2],"wo","week");Me("W",["WW",2],"Wo","isoWeek");Ce("w",It,Us);Ce("ww",It,cn);Ce("W",It,Us);Ce("WW",It,cn);bc(["w","ww","W","WW"],function(e,t,r,n){t[n.substr(0,1)]=ut(e)});function sz(e){return Zl(e,this._week.dow,this._week.doy).week}var uz={dow:0,doy:6};function lz(){return this._week.dow}function cz(){return this._week.doy}function dz(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function fz(e){var t=Zl(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}Me("d",0,"do","day");Me("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});Me("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});Me("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});Me("e",0,0,"weekday");Me("E",0,0,"isoWeekday");Ce("d",It);Ce("e",It);Ce("E",It);Ce("dd",function(e,t){return t.weekdaysMinRegex(e)});Ce("ddd",function(e,t){return t.weekdaysShortRegex(e)});Ce("dddd",function(e,t){return t.weekdaysRegex(e)});bc(["dd","ddd","dddd"],function(e,t,r,n){var a=r._locale.weekdaysParse(e,n,r._strict);a!=null?t.d=a:Xe(r).invalidWeekday=e});bc(["d","e","E"],function(e,t,r,n){t[n]=ut(e)});function hz(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function pz(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function xv(e,t){return e.slice(t,7).concat(e.slice(0,t))}var mz="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),p4="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),gz="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),vz=vc,bz=vc,yz=vc;function _z(e,t){var r=Kn(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?xv(r,this._week.dow):e?r[e.day()]:r}function wz(e){return e===!0?xv(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function xz(e){return e===!0?xv(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Sz(e,t,r){var n,a,i,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)i=va([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=Gt.call(this._weekdaysParse,o),a!==-1?a:null):t==="ddd"?(a=Gt.call(this._shortWeekdaysParse,o),a!==-1?a:null):(a=Gt.call(this._minWeekdaysParse,o),a!==-1?a:null):t==="dddd"?(a=Gt.call(this._weekdaysParse,o),a!==-1||(a=Gt.call(this._shortWeekdaysParse,o),a!==-1)?a:(a=Gt.call(this._minWeekdaysParse,o),a!==-1?a:null)):t==="ddd"?(a=Gt.call(this._shortWeekdaysParse,o),a!==-1||(a=Gt.call(this._weekdaysParse,o),a!==-1)?a:(a=Gt.call(this._minWeekdaysParse,o),a!==-1?a:null)):(a=Gt.call(this._minWeekdaysParse,o),a!==-1||(a=Gt.call(this._weekdaysParse,o),a!==-1)?a:(a=Gt.call(this._shortWeekdaysParse,o),a!==-1?a:null))}function Cz(e,t,r){var n,a,i;if(this._weekdaysParseExact)return Sz.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(a=va([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 Ez(e){if(!this.isValid())return e!=null?this:NaN;var t=Kl(this,"Day");return e!=null?(e=hz(e,this.localeData()),this.add(e-t,"d")):t}function kz(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 Tz(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=pz(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Oz(e){return this._weekdaysParseExact?(ht(this,"_weekdaysRegex")||Sv.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(ht(this,"_weekdaysRegex")||(this._weekdaysRegex=vz),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Az(e){return this._weekdaysParseExact?(ht(this,"_weekdaysRegex")||Sv.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(ht(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=bz),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Rz(e){return this._weekdaysParseExact?(ht(this,"_weekdaysRegex")||Sv.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(ht(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=yz),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Sv(){function e(m,p){return p.length-m.length}var t=[],r=[],n=[],a=[],i,o,l,u,c;for(i=0;i<7;i++)o=va([2e3,1]).day(i),l=ei(this.weekdaysMin(o,"")),u=ei(this.weekdaysShort(o,"")),c=ei(this.weekdays(o,"")),t.push(l),r.push(u),n.push(c),a.push(l),a.push(u),a.push(c);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 Cv(){return this.hours()%12||12}function Pz(){return this.hours()||24}Me("H",["HH",2],0,"hour");Me("h",["hh",2],0,Cv);Me("k",["kk",2],0,Pz);Me("hmm",0,0,function(){return""+Cv.apply(this)+ma(this.minutes(),2)});Me("hmmss",0,0,function(){return""+Cv.apply(this)+ma(this.minutes(),2)+ma(this.seconds(),2)});Me("Hmm",0,0,function(){return""+this.hours()+ma(this.minutes(),2)});Me("Hmmss",0,0,function(){return""+this.hours()+ma(this.minutes(),2)+ma(this.seconds(),2)});function m4(e,t){Me(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}m4("a",!0);m4("A",!1);function g4(e,t){return t._meridiemParse}Ce("a",g4);Ce("A",g4);Ce("H",It,_v);Ce("h",It,Us);Ce("k",It,Us);Ce("HH",It,cn);Ce("hh",It,cn);Ce("kk",It,cn);Ce("hmm",a4);Ce("hmmss",i4);Ce("Hmm",a4);Ce("Hmmss",i4);At(["H","HH"],nr);At(["k","kk"],function(e,t,r){var n=ut(e);t[nr]=n===24?0:n});At(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e});At(["h","hh"],function(e,t,r){t[nr]=ut(e),Xe(r).bigHour=!0});At("hmm",function(e,t,r){var n=e.length-2;t[nr]=ut(e.substr(0,n)),t[qn]=ut(e.substr(n)),Xe(r).bigHour=!0});At("hmmss",function(e,t,r){var n=e.length-4,a=e.length-2;t[nr]=ut(e.substr(0,n)),t[qn]=ut(e.substr(n,2)),t[Qa]=ut(e.substr(a)),Xe(r).bigHour=!0});At("Hmm",function(e,t,r){var n=e.length-2;t[nr]=ut(e.substr(0,n)),t[qn]=ut(e.substr(n))});At("Hmmss",function(e,t,r){var n=e.length-4,a=e.length-2;t[nr]=ut(e.substr(0,n)),t[qn]=ut(e.substr(n,2)),t[Qa]=ut(e.substr(a))});function Dz(e){return(e+"").toLowerCase().charAt(0)==="p"}var Mz=/[ap]\.?m?\.?/i,Fz=qs("Hours",!0);function Nz(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var v4={calendar:S$,longDateFormat:T$,invalidDate:A$,ordinal:P$,dayOfMonthOrdinalParse:D$,relativeTime:F$,months:X$,monthsShort:u4,week:uz,weekdays:mz,weekdaysMin:gz,weekdaysShort:p4,meridiemParse:Mz},jt={},fl={},Jl;function Iz(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 ux(e){return e&&e.toLowerCase().replace("_","-")}function Lz(e){for(var t=0,r,n,a,i;t<e.length;){for(i=ux(e[t]).split("-"),r=i.length,n=ux(e[t+1]),n=n?n.split("-"):null;r>0;){if(a=mh(i.slice(0,r).join("-")),a)return a;if(n&&n.length>=r&&Iz(i,n)>=r-1)break;r--}t++}return Jl}function jz(e){return!!(e&&e.match("^[^/\\\\]*$"))}function mh(e){var t=null,r;if(jt[e]===void 0&&typeof module<"u"&&module&&module.exports&&jz(e))try{t=Jl._abbr,r=require,r("./locale/"+e),Ni(t)}catch{jt[e]=null}return jt[e]}function Ni(e,t){var r;return e&&(zr(t)?r=ai(e):r=Ev(e,t),r?Jl=r:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Jl._abbr}function Ev(e,t){if(t!==null){var r,n=v4;if(t.abbr=e,jt[e]!=null)e4("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=jt[e]._config;else if(t.parentLocale!=null)if(jt[t.parentLocale]!=null)n=jt[t.parentLocale]._config;else if(r=mh(t.parentLocale),r!=null)n=r._config;else return fl[t.parentLocale]||(fl[t.parentLocale]=[]),fl[t.parentLocale].push({name:e,config:t}),null;return jt[e]=new mv(l1(n,t)),fl[e]&&fl[e].forEach(function(a){Ev(a.name,a.config)}),Ni(e),jt[e]}else return delete jt[e],null}function $z(e,t){if(t!=null){var r,n,a=v4;jt[e]!=null&&jt[e].parentLocale!=null?jt[e].set(l1(jt[e]._config,t)):(n=mh(e),n!=null&&(a=n._config),t=l1(a,t),n==null&&(t.abbr=e),r=new mv(t),r.parentLocale=jt[e],jt[e]=r),Ni(e)}else jt[e]!=null&&(jt[e].parentLocale!=null?(jt[e]=jt[e].parentLocale,e===Ni()&&Ni(e)):jt[e]!=null&&delete jt[e]);return jt[e]}function ai(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Jl;if(!Kn(e)){if(t=mh(e),t)return t;e=[e]}return Lz(e)}function zz(){return c1(jt)}function kv(e){var t,r=e._a;return r&&Xe(e).overflow===-2&&(t=r[Ja]<0||r[Ja]>11?Ja:r[la]<1||r[la]>wv(r[wr],r[Ja])?la:r[nr]<0||r[nr]>24||r[nr]===24&&(r[qn]!==0||r[Qa]!==0||r[go]!==0)?nr:r[qn]<0||r[qn]>59?qn:r[Qa]<0||r[Qa]>59?Qa:r[go]<0||r[go]>999?go:-1,Xe(e)._overflowDayOfYear&&(t<wr||t>la)&&(t=la),Xe(e)._overflowWeeks&&t===-1&&(t=q$),Xe(e)._overflowWeekday&&t===-1&&(t=W$),Xe(e).overflow=t),e}var Bz=/^\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)?)?$/,Hz=/^\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)?)?$/,Uz=/Z|[+-]\d\d(?::?\d\d)?/,Nd=[["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]],Jm=[["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/]],qz=/^\/?Date\((-?\d+)/i,Wz=/^(?:(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}))$/,Vz={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 b4(e){var t,r,n=e._i,a=Bz.exec(n)||Hz.exec(n),i,o,l,u,c=Nd.length,m=Jm.length;if(a){for(Xe(e).iso=!0,t=0,r=c;t<r;t++)if(Nd[t][1].exec(a[1])){o=Nd[t][0],i=Nd[t][2]!==!1;break}if(o==null){e._isValid=!1;return}if(a[3]){for(t=0,r=m;t<r;t++)if(Jm[t][1].exec(a[3])){l=(a[2]||" ")+Jm[t][0];break}if(l==null){e._isValid=!1;return}}if(!i&&l!=null){e._isValid=!1;return}if(a[4])if(Uz.exec(a[4]))u="Z";else{e._isValid=!1;return}e._f=o+(l||"")+(u||""),Ov(e)}else e._isValid=!1}function Yz(e,t,r,n,a,i){var o=[Gz(e),u4.indexOf(t),parseInt(r,10),parseInt(n,10),parseInt(a,10)];return i&&o.push(parseInt(i,10)),o}function Gz(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Kz(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Xz(e,t,r){if(e){var n=p4.indexOf(e),a=new Date(t[0],t[1],t[2]).getDay();if(n!==a)return Xe(r).weekdayMismatch=!0,r._isValid=!1,!1}return!0}function Zz(e,t,r){if(e)return Vz[e];if(t)return 0;var n=parseInt(r,10),a=n%100,i=(n-a)/100;return i*60+a}function y4(e){var t=Wz.exec(Kz(e._i)),r;if(t){if(r=Yz(t[4],t[3],t[2],t[5],t[6],t[7]),!Xz(t[1],r,e))return;e._a=r,e._tzm=Zz(t[8],t[9],t[10]),e._d=Xl.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),Xe(e).rfc2822=!0}else e._isValid=!1}function Jz(e){var t=qz.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(b4(e),e._isValid===!1)delete e._isValid;else return;if(y4(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:ve.createFromInputFallback(e)}ve.createFromInputFallback=Tn("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 is(e,t,r){return e??t??r}function Qz(e){var t=new Date(ve.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Tv(e){var t,r,n=[],a,i,o;if(!e._d){for(a=Qz(e),e._w&&e._a[la]==null&&e._a[Ja]==null&&eB(e),e._dayOfYear!=null&&(o=is(e._a[wr],a[wr]),(e._dayOfYear>Nl(o)||e._dayOfYear===0)&&(Xe(e)._overflowDayOfYear=!0),r=Xl(o,0,e._dayOfYear),e._a[Ja]=r.getUTCMonth(),e._a[la]=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[nr]===24&&e._a[qn]===0&&e._a[Qa]===0&&e._a[go]===0&&(e._nextDay=!0,e._a[nr]=0),e._d=(e._useUTC?Xl:oz).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[nr]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==i&&(Xe(e).weekdayMismatch=!0)}}function eB(e){var t,r,n,a,i,o,l,u,c;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(i=1,o=4,r=is(t.GG,e._a[wr],Zl(Nt(),1,4).year),n=is(t.W,1),a=is(t.E,1),(a<1||a>7)&&(u=!0)):(i=e._locale._week.dow,o=e._locale._week.doy,c=Zl(Nt(),i,o),r=is(t.gg,e._a[wr],c.year),n=is(t.w,c.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>ti(r,i,o)?Xe(e)._overflowWeeks=!0:u!=null?Xe(e)._overflowWeekday=!0:(l=h4(r,n,a,i,o),e._a[wr]=l.year,e._dayOfYear=l.dayOfYear)}ve.ISO_8601=function(){};ve.RFC_2822=function(){};function Ov(e){if(e._f===ve.ISO_8601){b4(e);return}if(e._f===ve.RFC_2822){y4(e);return}e._a=[],Xe(e).empty=!0;var t=""+e._i,r,n,a,i,o,l=t.length,u=0,c,m;for(a=t4(e._f,e._locale).match(gv)||[],m=a.length,r=0;r<m;r++)i=a[r],n=(t.match(B$(i,e))||[])[0],n&&(o=t.substr(0,t.indexOf(n)),o.length>0&&Xe(e).unusedInput.push(o),t=t.slice(t.indexOf(n)+n.length),u+=n.length),ys[i]?(n?Xe(e).empty=!1:Xe(e).unusedTokens.push(i),U$(i,n,e)):e._strict&&!n&&Xe(e).unusedTokens.push(i);Xe(e).charsLeftOver=l-u,t.length>0&&Xe(e).unusedInput.push(t),e._a[nr]<=12&&Xe(e).bigHour===!0&&e._a[nr]>0&&(Xe(e).bigHour=void 0),Xe(e).parsedDateParts=e._a.slice(0),Xe(e).meridiem=e._meridiem,e._a[nr]=tB(e._locale,e._a[nr],e._meridiem),c=Xe(e).era,c!==null&&(e._a[wr]=e._locale.erasConvertYear(c,e._a[wr])),Tv(e),kv(e)}function tB(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 rB(e){var t,r,n,a,i,o,l=!1,u=e._f.length;if(u===0){Xe(e).invalidFormat=!0,e._d=new Date(NaN);return}for(a=0;a<u;a++)i=0,o=!1,t=pv({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[a],Ov(t),hv(t)&&(o=!0),i+=Xe(t).charsLeftOver,i+=Xe(t).unusedTokens.length*10,Xe(t).score=i,l?i<n&&(n=i,r=t):(n==null||i<n||o)&&(n=i,r=t,o&&(l=!0));Oi(e,r||t)}function nB(e){if(!e._d){var t=vv(e._i),r=t.day===void 0?t.date:t.day;e._a=JS([t.year,t.month,r,t.hour,t.minute,t.second,t.millisecond],function(n){return n&&parseInt(n,10)}),Tv(e)}}function aB(e){var t=new gc(kv(_4(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function _4(e){var t=e._i,r=e._f;return e._locale=e._locale||ai(e._l),t===null||r===void 0&&t===""?uh({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),Xn(t)?new gc(kv(t)):(mc(t)?e._d=t:Kn(r)?rB(e):r?Ov(e):iB(e),hv(e)||(e._d=null),e))}function iB(e){var t=e._i;zr(t)?e._d=new Date(ve.now()):mc(t)?e._d=new Date(t.valueOf()):typeof t=="string"?Jz(e):Kn(t)?(e._a=JS(t.slice(0),function(r){return parseInt(r,10)}),Tv(e)):_o(t)?nB(e):ri(t)?e._d=new Date(t):ve.createFromInputFallback(e)}function w4(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),(_o(e)&&fv(e)||Kn(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,aB(i)}function Nt(e,t,r,n){return w4(e,t,r,n,!1)}var oB=Tn("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Nt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:uh()}),sB=Tn("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Nt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:uh()});function x4(e,t){var r,n;if(t.length===1&&Kn(t[0])&&(t=t[0]),!t.length)return Nt();for(r=t[0],n=1;n<t.length;++n)(!t[n].isValid()||t[n][e](r))&&(r=t[n]);return r}function uB(){var e=[].slice.call(arguments,0);return x4("isBefore",e)}function lB(){var e=[].slice.call(arguments,0);return x4("isAfter",e)}var cB=function(){return Date.now?Date.now():+new Date},hl=["year","quarter","month","week","day","hour","minute","second","millisecond"];function dB(e){var t,r=!1,n,a=hl.length;for(t in e)if(ht(e,t)&&!(Gt.call(hl,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(n=0;n<a;++n)if(e[hl[n]]){if(r)return!1;parseFloat(e[hl[n]])!==ut(e[hl[n]])&&(r=!0)}return!0}function fB(){return this._isValid}function hB(){return Qn(NaN)}function gh(e){var t=vv(e),r=t.year||0,n=t.quarter||0,a=t.month||0,i=t.week||t.isoWeek||0,o=t.day||0,l=t.hour||0,u=t.minute||0,c=t.second||0,m=t.millisecond||0;this._isValid=dB(t),this._milliseconds=+m+c*1e3+u*6e4+l*1e3*60*60,this._days=+o+i*7,this._months=+a+n*3+r*12,this._data={},this._locale=ai(),this._bubble()}function gf(e){return e instanceof gh}function f1(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function pB(e,t,r){var n=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),i=0,o;for(o=0;o<n;o++)ut(e[o])!==ut(t[o])&&i++;return i+a}function S4(e,t){Me(e,0,0,function(){var r=this.utcOffset(),n="+";return r<0&&(r=-r,n="-"),n+ma(~~(r/60),2)+t+ma(~~r%60,2)})}S4("Z",":");S4("ZZ","");Ce("Z",hh);Ce("ZZ",hh);At(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=Av(hh,e)});var mB=/([\+\-]|\d\d)/gi;function Av(e,t){var r=(t||"").match(e),n,a,i;return r===null?null:(n=r[r.length-1]||[],a=(n+"").match(mB)||["-",0,0],i=+(a[1]*60)+ut(a[2]),i===0?0:a[0]==="+"?i:-i)}function Rv(e,t){var r,n;return t._isUTC?(r=t.clone(),n=(Xn(e)||mc(e)?e.valueOf():Nt(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+n),ve.updateOffset(r,!1),r):Nt(e).local()}function h1(e){return-Math.round(e._d.getTimezoneOffset())}ve.updateOffset=function(){};function gB(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=Av(hh,e),e===null)return this}else Math.abs(e)<16&&!r&&(e=e*60);return!this._isUTC&&t&&(a=h1(this)),this._offset=e,this._isUTC=!0,a!=null&&this.add(a,"m"),n!==e&&(!t||this._changeInProgress?k4(this,Qn(e-n,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,ve.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?n:h1(this)}function vB(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function bB(e){return this.utcOffset(0,e)}function yB(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(h1(this),"m")),this}function _B(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=Av($$,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function wB(e){return this.isValid()?(e=e?Nt(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function xB(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function SB(){if(!zr(this._isDSTShifted))return this._isDSTShifted;var e={},t;return pv(e,this),e=_4(e),e._a?(t=e._isUTC?va(e._a):Nt(e._a),this._isDSTShifted=this.isValid()&&pB(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function CB(){return this.isValid()?!this._isUTC:!1}function EB(){return this.isValid()?this._isUTC:!1}function C4(){return this.isValid()?this._isUTC&&this._offset===0:!1}var kB=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,TB=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Qn(e,t){var r=e,n=null,a,i,o;return gf(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:ri(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(n=kB.exec(e))?(a=n[1]==="-"?-1:1,r={y:0,d:ut(n[la])*a,h:ut(n[nr])*a,m:ut(n[qn])*a,s:ut(n[Qa])*a,ms:ut(f1(n[go]*1e3))*a}):(n=TB.exec(e))?(a=n[1]==="-"?-1:1,r={y:no(n[2],a),M:no(n[3],a),w:no(n[4],a),d:no(n[5],a),h:no(n[6],a),m:no(n[7],a),s:no(n[8],a)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(o=OB(Nt(r.from),Nt(r.to)),r={},r.ms=o.milliseconds,r.M=o.months),i=new gh(r),gf(e)&&ht(e,"_locale")&&(i._locale=e._locale),gf(e)&&ht(e,"_isValid")&&(i._isValid=e._isValid),i}Qn.fn=gh.prototype;Qn.invalid=hB;function no(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function lx(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 OB(e,t){var r;return e.isValid()&&t.isValid()?(t=Rv(t,e),e.isBefore(t)?r=lx(e,t):(r=lx(t,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function E4(e,t){return function(r,n){var a,i;return n!==null&&!isNaN(+n)&&(e4(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=Qn(r,n),k4(this,a,e),this}}function k4(e,t,r,n){var a=t._milliseconds,i=f1(t._days),o=f1(t._months);e.isValid()&&(n=n??!0,o&&c4(e,Kl(e,"Month")+o*r),i&&s4(e,"Date",Kl(e,"Date")+i*r),a&&e._d.setTime(e._d.valueOf()+a*r),n&&ve.updateOffset(e,i||o))}var AB=E4(1,"add"),RB=E4(-1,"subtract");function T4(e){return typeof e=="string"||e instanceof String}function PB(e){return Xn(e)||mc(e)||T4(e)||ri(e)||MB(e)||DB(e)||e===null||e===void 0}function DB(e){var t=_o(e)&&!fv(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,o=n.length;for(a=0;a<o;a+=1)i=n[a],r=r||ht(e,i);return t&&r}function MB(e){var t=Kn(e),r=!1;return t&&(r=e.filter(function(n){return!ri(n)&&T4(e)}).length===0),t&&r}function FB(e){var t=_o(e)&&!fv(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 NB(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 IB(e,t){arguments.length===1&&(arguments[0]?PB(arguments[0])?(e=arguments[0],t=void 0):FB(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var r=e||Nt(),n=Rv(r,this).startOf("day"),a=ve.calendarFormat(this,n)||"sameElse",i=t&&(ba(t[a])?t[a].call(this,r):t[a]);return this.format(i||this.localeData().calendar(a,this,Nt(r)))}function LB(){return new gc(this)}function jB(e,t){var r=Xn(e)?e:Nt(e);return this.isValid()&&r.isValid()?(t=On(t)||"millisecond",t==="millisecond"?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf()):!1}function $B(e,t){var r=Xn(e)?e:Nt(e);return this.isValid()&&r.isValid()?(t=On(t)||"millisecond",t==="millisecond"?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf()):!1}function zB(e,t,r,n){var a=Xn(e)?e:Nt(e),i=Xn(t)?t:Nt(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 BB(e,t){var r=Xn(e)?e:Nt(e),n;return this.isValid()&&r.isValid()?(t=On(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 HB(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function UB(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function qB(e,t,r){var n,a,i;if(!this.isValid())return NaN;if(n=Rv(e,this),!n.isValid())return NaN;switch(a=(n.utcOffset()-this.utcOffset())*6e4,t=On(t),t){case"year":i=vf(this,n)/12;break;case"month":i=vf(this,n);break;case"quarter":i=vf(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:wn(i)}function vf(e,t){if(e.date()<t.date())return-vf(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}ve.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";ve.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function WB(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function VB(e){if(!this.isValid())return null;var t=e!==!0,r=t?this.clone().utc():this;return r.year()<0||r.year()>9999?mf(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):ba(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",mf(r,"Z")):mf(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function YB(){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 GB(e){e||(e=this.isUtc()?ve.defaultFormatUtc:ve.defaultFormat);var t=mf(this,e);return this.localeData().postformat(t)}function KB(e,t){return this.isValid()&&(Xn(e)&&e.isValid()||Nt(e).isValid())?Qn({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function XB(e){return this.from(Nt(),e)}function ZB(e,t){return this.isValid()&&(Xn(e)&&e.isValid()||Nt(e).isValid())?Qn({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function JB(e){return this.to(Nt(),e)}function O4(e){var t;return e===void 0?this._locale._abbr:(t=ai(e),t!=null&&(this._locale=t),this)}var A4=Tn("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 R4(){return this._locale}var Lf=1e3,_s=60*Lf,jf=60*_s,P4=(365*400+97)*24*jf;function ws(e,t){return(e%t+t)%t}function D4(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-P4:new Date(e,t,r).valueOf()}function M4(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-P4:Date.UTC(e,t,r)}function QB(e){var t,r;if(e=On(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?M4:D4,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-=ws(t+(this._isUTC?0:this.utcOffset()*_s),jf);break;case"minute":t=this._d.valueOf(),t-=ws(t,_s);break;case"second":t=this._d.valueOf(),t-=ws(t,Lf);break}return this._d.setTime(t),ve.updateOffset(this,!0),this}function eH(e){var t,r;if(e=On(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?M4:D4,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+=jf-ws(t+(this._isUTC?0:this.utcOffset()*_s),jf)-1;break;case"minute":t=this._d.valueOf(),t+=_s-ws(t,_s)-1;break;case"second":t=this._d.valueOf(),t+=Lf-ws(t,Lf)-1;break}return this._d.setTime(t),ve.updateOffset(this,!0),this}function tH(){return this._d.valueOf()-(this._offset||0)*6e4}function rH(){return Math.floor(this.valueOf()/1e3)}function nH(){return new Date(this.valueOf())}function aH(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function iH(){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 oH(){return this.isValid()?this.toISOString():null}function sH(){return hv(this)}function uH(){return Oi({},Xe(this))}function lH(){return Xe(this).overflow}function cH(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Me("N",0,0,"eraAbbr");Me("NN",0,0,"eraAbbr");Me("NNN",0,0,"eraAbbr");Me("NNNN",0,0,"eraName");Me("NNNNN",0,0,"eraNarrow");Me("y",["y",1],"yo","eraYear");Me("y",["yy",2],0,"eraYear");Me("y",["yyy",3],0,"eraYear");Me("y",["yyyy",4],0,"eraYear");Ce("N",Pv);Ce("NN",Pv);Ce("NNN",Pv);Ce("NNNN",wH);Ce("NNNNN",xH);At(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,n){var a=r._locale.erasParse(e,n,r._strict);a?Xe(r).era=a:Xe(r).invalidEra=e});Ce("y",Hs);Ce("yy",Hs);Ce("yyy",Hs);Ce("yyyy",Hs);Ce("yo",SH);At(["y","yy","yyy","yyyy"],wr);At(["yo"],function(e,t,r,n){var a;r._locale._eraYearOrdinalRegex&&(a=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[wr]=r._locale.eraYearOrdinalParse(e,a):t[wr]=parseInt(e,10)});function dH(e,t){var r,n,a,i=this._eras||ai("en")._eras;for(r=0,n=i.length;r<n;++r){switch(typeof i[r].since){case"string":a=ve(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=ve(i[r].until).startOf("day").valueOf(),i[r].until=a.valueOf();break}}return i}function fH(e,t,r){var n,a,i=this.eras(),o,l,u;for(e=e.toUpperCase(),n=0,a=i.length;n<a;++n)if(o=i[n].name.toUpperCase(),l=i[n].abbr.toUpperCase(),u=i[n].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(l===e)return i[n];break;case"NNNN":if(o===e)return i[n];break;case"NNNNN":if(u===e)return i[n];break}else if([o,l,u].indexOf(e)>=0)return i[n]}function hH(e,t){var r=e.since<=e.until?1:-1;return t===void 0?ve(e.since).year():ve(e.since).year()+(t-e.offset)*r}function pH(){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 mH(){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 gH(){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 vH(){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()-ve(a[e].since).year())*r+a[e].offset;return this.year()}function bH(e){return ht(this,"_erasNameRegex")||Dv.call(this),e?this._erasNameRegex:this._erasRegex}function yH(e){return ht(this,"_erasAbbrRegex")||Dv.call(this),e?this._erasAbbrRegex:this._erasRegex}function _H(e){return ht(this,"_erasNarrowRegex")||Dv.call(this),e?this._erasNarrowRegex:this._erasRegex}function Pv(e,t){return t.erasAbbrRegex(e)}function wH(e,t){return t.erasNameRegex(e)}function xH(e,t){return t.erasNarrowRegex(e)}function SH(e,t){return t._eraYearOrdinalRegex||Hs}function Dv(){var e=[],t=[],r=[],n=[],a,i,o,l,u,c=this.eras();for(a=0,i=c.length;a<i;++a)o=ei(c[a].name),l=ei(c[a].abbr),u=ei(c[a].narrow),t.push(o),e.push(l),r.push(u),n.push(o),n.push(l),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")}Me(0,["gg",2],0,function(){return this.weekYear()%100});Me(0,["GG",2],0,function(){return this.isoWeekYear()%100});function vh(e,t){Me(0,[e,e.length],0,t)}vh("gggg","weekYear");vh("ggggg","weekYear");vh("GGGG","isoWeekYear");vh("GGGGG","isoWeekYear");Ce("G",fh);Ce("g",fh);Ce("GG",It,cn);Ce("gg",It,cn);Ce("GGGG",yv,bv);Ce("gggg",yv,bv);Ce("GGGGG",dh,lh);Ce("ggggg",dh,lh);bc(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,n){t[n.substr(0,2)]=ut(e)});bc(["gg","GG"],function(e,t,r,n){t[n]=ve.parseTwoDigitYear(e)});function CH(e){return F4.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function EH(e){return F4.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function kH(){return ti(this.year(),1,4)}function TH(){return ti(this.isoWeekYear(),1,4)}function OH(){var e=this.localeData()._week;return ti(this.year(),e.dow,e.doy)}function AH(){var e=this.localeData()._week;return ti(this.weekYear(),e.dow,e.doy)}function F4(e,t,r,n,a){var i;return e==null?Zl(this,n,a).year:(i=ti(e,n,a),t>i&&(t=i),RH.call(this,e,t,r,n,a))}function RH(e,t,r,n,a){var i=h4(e,t,r,n,a),o=Xl(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}Me("Q",0,"Qo","quarter");Ce("Q",r4);At("Q",function(e,t){t[Ja]=(ut(e)-1)*3});function PH(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}Me("D",["DD",2],"Do","date");Ce("D",It,Us);Ce("DD",It,cn);Ce("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});At(["D","DD"],la);At("Do",function(e,t){t[la]=ut(e.match(It)[0])});var N4=qs("Date",!0);Me("DDD",["DDDD",3],"DDDo","dayOfYear");Ce("DDD",ch);Ce("DDDD",n4);At(["DDD","DDDD"],function(e,t,r){r._dayOfYear=ut(e)});function DH(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}Me("m",["mm",2],0,"minute");Ce("m",It,_v);Ce("mm",It,cn);At(["m","mm"],qn);var MH=qs("Minutes",!1);Me("s",["ss",2],0,"second");Ce("s",It,_v);Ce("ss",It,cn);At(["s","ss"],Qa);var FH=qs("Seconds",!1);Me("S",0,0,function(){return~~(this.millisecond()/100)});Me(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Me(0,["SSS",3],0,"millisecond");Me(0,["SSSS",4],0,function(){return this.millisecond()*10});Me(0,["SSSSS",5],0,function(){return this.millisecond()*100});Me(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Me(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Me(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Me(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});Ce("S",ch,r4);Ce("SS",ch,cn);Ce("SSS",ch,n4);var Ai,I4;for(Ai="SSSS";Ai.length<=9;Ai+="S")Ce(Ai,Hs);function NH(e,t){t[go]=ut(("0."+e)*1e3)}for(Ai="S";Ai.length<=9;Ai+="S")At(Ai,NH);I4=qs("Milliseconds",!1);Me("z",0,0,"zoneAbbr");Me("zz",0,0,"zoneName");function IH(){return this._isUTC?"UTC":""}function LH(){return this._isUTC?"Coordinated Universal Time":""}var be=gc.prototype;be.add=AB;be.calendar=IB;be.clone=LB;be.diff=qB;be.endOf=eH;be.format=GB;be.from=KB;be.fromNow=XB;be.to=ZB;be.toNow=JB;be.get=Y$;be.invalidAt=lH;be.isAfter=jB;be.isBefore=$B;be.isBetween=zB;be.isSame=BB;be.isSameOrAfter=HB;be.isSameOrBefore=UB;be.isValid=sH;be.lang=A4;be.locale=O4;be.localeData=R4;be.max=sB;be.min=oB;be.parsingFlags=uH;be.set=G$;be.startOf=QB;be.subtract=RB;be.toArray=aH;be.toObject=iH;be.toDate=nH;be.toISOString=VB;be.inspect=YB;typeof Symbol<"u"&&Symbol.for!=null&&(be[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});be.toJSON=oH;be.toString=WB;be.unix=rH;be.valueOf=tH;be.creationData=cH;be.eraName=pH;be.eraNarrow=mH;be.eraAbbr=gH;be.eraYear=vH;be.year=o4;be.isLeapYear=V$;be.weekYear=CH;be.isoWeekYear=EH;be.quarter=be.quarters=PH;be.month=d4;be.daysInMonth=nz;be.week=be.weeks=dz;be.isoWeek=be.isoWeeks=fz;be.weeksInYear=OH;be.weeksInWeekYear=AH;be.isoWeeksInYear=kH;be.isoWeeksInISOWeekYear=TH;be.date=N4;be.day=be.days=Ez;be.weekday=kz;be.isoWeekday=Tz;be.dayOfYear=DH;be.hour=be.hours=Fz;be.minute=be.minutes=MH;be.second=be.seconds=FH;be.millisecond=be.milliseconds=I4;be.utcOffset=gB;be.utc=bB;be.local=yB;be.parseZone=_B;be.hasAlignedHourOffset=wB;be.isDST=xB;be.isLocal=CB;be.isUtcOffset=EB;be.isUtc=C4;be.isUTC=C4;be.zoneAbbr=IH;be.zoneName=LH;be.dates=Tn("dates accessor is deprecated. Use date instead.",N4);be.months=Tn("months accessor is deprecated. Use month instead",d4);be.years=Tn("years accessor is deprecated. Use year instead",o4);be.zone=Tn("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",vB);be.isDSTShifted=Tn("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",SB);function jH(e){return Nt(e*1e3)}function $H(){return Nt.apply(null,arguments).parseZone()}function L4(e){return e}var pt=mv.prototype;pt.calendar=C$;pt.longDateFormat=O$;pt.invalidDate=R$;pt.ordinal=M$;pt.preparse=L4;pt.postformat=L4;pt.relativeTime=N$;pt.pastFuture=I$;pt.set=x$;pt.eras=dH;pt.erasParse=fH;pt.erasConvertYear=hH;pt.erasAbbrRegex=yH;pt.erasNameRegex=bH;pt.erasNarrowRegex=_H;pt.months=Q$;pt.monthsShort=ez;pt.monthsParse=rz;pt.monthsRegex=iz;pt.monthsShortRegex=az;pt.week=sz;pt.firstDayOfYear=cz;pt.firstDayOfWeek=lz;pt.weekdays=_z;pt.weekdaysMin=xz;pt.weekdaysShort=wz;pt.weekdaysParse=Cz;pt.weekdaysRegex=Oz;pt.weekdaysShortRegex=Az;pt.weekdaysMinRegex=Rz;pt.isPM=Dz;pt.meridiem=Nz;function $f(e,t,r,n){var a=ai(),i=va().set(n,t);return a[r](i,e)}function j4(e,t,r){if(ri(e)&&(t=e,e=void 0),e=e||"",t!=null)return $f(e,t,r,"month");var n,a=[];for(n=0;n<12;n++)a[n]=$f(e,n,r,"month");return a}function Mv(e,t,r,n){typeof e=="boolean"?(ri(t)&&(r=t,t=void 0),t=t||""):(t=e,r=t,e=!1,ri(t)&&(r=t,t=void 0),t=t||"");var a=ai(),i=e?a._week.dow:0,o,l=[];if(r!=null)return $f(t,(r+i)%7,n,"day");for(o=0;o<7;o++)l[o]=$f(t,(o+i)%7,n,"day");return l}function zH(e,t){return j4(e,t,"months")}function BH(e,t){return j4(e,t,"monthsShort")}function HH(e,t,r){return Mv(e,t,r,"weekdays")}function UH(e,t,r){return Mv(e,t,r,"weekdaysShort")}function qH(e,t,r){return Mv(e,t,r,"weekdaysMin")}Ni("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=ut(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+r}});ve.lang=Tn("moment.lang is deprecated. Use moment.locale instead.",Ni);ve.langData=Tn("moment.langData is deprecated. Use moment.localeData instead.",ai);var qa=Math.abs;function WH(){var e=this._data;return this._milliseconds=qa(this._milliseconds),this._days=qa(this._days),this._months=qa(this._months),e.milliseconds=qa(e.milliseconds),e.seconds=qa(e.seconds),e.minutes=qa(e.minutes),e.hours=qa(e.hours),e.months=qa(e.months),e.years=qa(e.years),this}function $4(e,t,r,n){var a=Qn(t,r);return e._milliseconds+=n*a._milliseconds,e._days+=n*a._days,e._months+=n*a._months,e._bubble()}function VH(e,t){return $4(this,e,t,1)}function YH(e,t){return $4(this,e,t,-1)}function cx(e){return e<0?Math.floor(e):Math.ceil(e)}function GH(){var e=this._milliseconds,t=this._days,r=this._months,n=this._data,a,i,o,l,u;return e>=0&&t>=0&&r>=0||e<=0&&t<=0&&r<=0||(e+=cx(p1(r)+t)*864e5,t=0,r=0),n.milliseconds=e%1e3,a=wn(e/1e3),n.seconds=a%60,i=wn(a/60),n.minutes=i%60,o=wn(i/60),n.hours=o%24,t+=wn(o/24),u=wn(z4(t)),r+=u,t-=cx(p1(u)),l=wn(r/12),r%=12,n.days=t,n.months=r,n.years=l,this}function z4(e){return e*4800/146097}function p1(e){return e*146097/4800}function KH(e){if(!this.isValid())return NaN;var t,r,n=this._milliseconds;if(e=On(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+n/864e5,r=this._months+z4(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(p1(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 ii(e){return function(){return this.as(e)}}var B4=ii("ms"),XH=ii("s"),ZH=ii("m"),JH=ii("h"),QH=ii("d"),eU=ii("w"),tU=ii("M"),rU=ii("Q"),nU=ii("y"),aU=B4;function iU(){return Qn(this)}function oU(e){return e=On(e),this.isValid()?this[e+"s"]():NaN}function Oo(e){return function(){return this.isValid()?this._data[e]:NaN}}var sU=Oo("milliseconds"),uU=Oo("seconds"),lU=Oo("minutes"),cU=Oo("hours"),dU=Oo("days"),fU=Oo("months"),hU=Oo("years");function pU(){return wn(this.days()/7)}var Ga=Math.round,cs={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function mU(e,t,r,n,a){return a.relativeTime(t||1,!!r,e,n)}function gU(e,t,r,n){var a=Qn(e).abs(),i=Ga(a.as("s")),o=Ga(a.as("m")),l=Ga(a.as("h")),u=Ga(a.as("d")),c=Ga(a.as("M")),m=Ga(a.as("w")),p=Ga(a.as("y")),g=i<=r.ss&&["s",i]||i<r.s&&["ss",i]||o<=1&&["m"]||o<r.m&&["mm",o]||l<=1&&["h"]||l<r.h&&["hh",l]||u<=1&&["d"]||u<r.d&&["dd",u];return r.w!=null&&(g=g||m<=1&&["w"]||m<r.w&&["ww",m]),g=g||c<=1&&["M"]||c<r.M&&["MM",c]||p<=1&&["y"]||["yy",p],g[2]=t,g[3]=+e>0,g[4]=n,mU.apply(null,g)}function vU(e){return e===void 0?Ga:typeof e=="function"?(Ga=e,!0):!1}function bU(e,t){return cs[e]===void 0?!1:t===void 0?cs[e]:(cs[e]=t,e==="s"&&(cs.ss=t-1),!0)}function yU(e,t){if(!this.isValid())return this.localeData().invalidDate();var r=!1,n=cs,a,i;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(r=e),typeof t=="object"&&(n=Object.assign({},cs,t),t.s!=null&&t.ss==null&&(n.ss=t.s-1)),a=this.localeData(),i=gU(this,!r,n,a),r&&(i=a.pastFuture(+this,i)),a.postformat(i)}var Qm=Math.abs;function Ko(e){return(e>0)-(e<0)||+e}function bh(){if(!this.isValid())return this.localeData().invalidDate();var e=Qm(this._milliseconds)/1e3,t=Qm(this._days),r=Qm(this._months),n,a,i,o,l=this.asSeconds(),u,c,m,p;return l?(n=wn(e/60),a=wn(n/60),e%=60,n%=60,i=wn(r/12),r%=12,o=e?e.toFixed(3).replace(/\.?0+$/,""):"",u=l<0?"-":"",c=Ko(this._months)!==Ko(l)?"-":"",m=Ko(this._days)!==Ko(l)?"-":"",p=Ko(this._milliseconds)!==Ko(l)?"-":"",u+"P"+(i?c+i+"Y":"")+(r?c+r+"M":"")+(t?m+t+"D":"")+(a||n||e?"T":"")+(a?p+a+"H":"")+(n?p+n+"M":"")+(e?p+o+"S":"")):"P0D"}var dt=gh.prototype;dt.isValid=fB;dt.abs=WH;dt.add=VH;dt.subtract=YH;dt.as=KH;dt.asMilliseconds=B4;dt.asSeconds=XH;dt.asMinutes=ZH;dt.asHours=JH;dt.asDays=QH;dt.asWeeks=eU;dt.asMonths=tU;dt.asQuarters=rU;dt.asYears=nU;dt.valueOf=aU;dt._bubble=GH;dt.clone=iU;dt.get=oU;dt.milliseconds=sU;dt.seconds=uU;dt.minutes=lU;dt.hours=cU;dt.days=dU;dt.weeks=pU;dt.months=fU;dt.years=hU;dt.humanize=yU;dt.toISOString=bh;dt.toString=bh;dt.toJSON=bh;dt.locale=O4;dt.localeData=R4;dt.toIsoString=Tn("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",bh);dt.lang=A4;Me("X",0,0,"unix");Me("x",0,0,"valueOf");Ce("x",fh);Ce("X",z$);At("X",function(e,t,r){r._d=new Date(parseFloat(e)*1e3)});At("x",function(e,t,r){r._d=new Date(ut(e))});//! moment.js
332
- ve.version="2.30.1";_$(Nt);ve.fn=be;ve.min=uB;ve.max=lB;ve.now=cB;ve.utc=va;ve.unix=jH;ve.months=zH;ve.isDate=mc;ve.locale=Ni;ve.invalid=uh;ve.duration=Qn;ve.isMoment=Xn;ve.weekdays=HH;ve.parseZone=$H;ve.localeData=ai;ve.isDuration=gf;ve.monthsShort=BH;ve.weekdaysMin=qH;ve.defineLocale=Ev;ve.updateLocale=$z;ve.locales=zz;ve.weekdaysShort=UH;ve.normalizeUnits=On;ve.relativeTimeRounding=vU;ve.relativeTimeThreshold=bU;ve.calendarFormat=NB;ve.prototype=be;ve.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 Ei=class Ei{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(ve.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"||Ei.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 o=a.shift(),l=o[r];if(n==null||n(o),i.push(o),l!=null&&l.length)for(let u=l.length-1;u>=0;u--)a.unshift(l[u])}return i}static getTreeRelationNoRecursion({data:t,lookup:r,childrenKey:n="children"}){var m;const a=new Set;let i={parent:void 0,self:void 0,beforeSibling:[],afterSibling:[],index:void 0,stack:Array.from(a)};const o=new Map,l=new Map,u=new Map,c=[...t];for(;c.length;){const p=c.shift(),g=o.get(p)??t.findIndex(T=>T==p),y=l.get(p);y?a.add(y):a.clear();const x=y==null?void 0:y[n],E=r(p,g),k=p[n];if(E){i={parent:y,self:p,beforeSibling:(x||t).slice(0,g),afterSibling:(x||t).slice(g+1),index:g,stack:Array.from(a)};break}else if(k!=null&&k.length)for(let T=k.length-1;T>=0;T--){const w=k[T];c.unshift(k[T]),o.set(w,T),l.set(w,p),T==k.length-1&&u.set(w,()=>{var S;(S=u.get(p))==null||S(),a.delete(p)})}else(m=u.get(p))==null||m()}return i}static judgeParentIcon(t,r){if(t=="10001001")return"bluecube";if(t=="10001002")return"document-cube";if(t=="10001006")return"file-cube";if(Fi.isProject(t))return r||"icon"}};Tt(Ei,"getLabelInOptions",t=>{const{value:r,options:n,adaptor:a}=t,i=Object.prototype.toString.call(r);if(!(c=>c!==""&&c!==void 0&&c!==null)(r))return"";let l="";i==="[object Array]"&&(l=[]);const u=c=>{for(let m=0;m<(c||[]).length;m++){const p=c[m][a?a.label:"label"],g=c[m][a?a.value:"value"];i==="[object Array]"?r.includes(g)&&l.push(p):r===g&&(l=p),c[m].children&&c[m].children.length&&u(c[m].children)}};return u(n),l}),Tt(Ei,"transformArrayToMap",(t,r,n,a)=>{function i(o,l){return o=="autoGetId"&&(a!=null&&a.useAutoGetId)?As.isCustomAttr(l)?"id":"dataFromId":o}return t==null?void 0:t.reduce((o,l)=>{const u=i(r,l),c=i(n,l);return c?o[l[u]]=l[c]:o[l[u]]=l,o},{})}),Tt(Ei,"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}),Tt(Ei,"renderBomTag",t=>{const r=o=>{const l=o.match(/\d+(\.\d+)?/g);return l?l[l.length-1]:""},n=o=>{let l=0;const u=c=>{var m=c.split("");return m.reverse()};for(let c=0;c<u(o).length&&u(o)[c].match(/\d/);c++)l=l+1;return o.substring(0,o.length-l)},a=o=>ie.sortBy(ie.uniq(o.split(",")),l=>Number(r(l))),i=Object.keys(ie.groupBy(a(t),o=>n(o))).map(o=>(u=>{var c=[],m=0;const p=u.sort((g,y)=>Number(r(g))-Number(r(y)));return p.forEach((g,y)=>{y===0?c[0]=[g]:Number(r(g))-Number(r(p[y-1]))===1?c[m].push(g):c[++m]=[g]}),c})(ie.groupBy(a(t),u=>n(u))[o]).map(u=>{if(u.length>1){const c=u.map(m=>Number(r(m)));return`${o}${ie.min(c)}-${ie.max(c)}`}else return u[0]}));return ie.flatten(i).join(",")}),Tt(Ei,"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 c=u.substring(0,u.match(/\d+-\d+$/).index),m=[],p=Number(u.split(c)[1].split("-")[1]),g=p<1e3?p:1e3;for(let y=Number(u.split(c)[1].split("-")[0]);y<=g;y++)m.push(`${c}${y}`);return m.join(",")}else if(u.match(/^\S+\d+-\S+\d+$/)){const c=u.split("-")[0].substring(0,u.match(/\d/).index).toUpperCase(),m=u.split("-")[0].substring(u.match(/\d/).index,u.split("-")[0].length),p=u.split("-")[1].substring(0,u.match(/\d/).index).toUpperCase(),g=u.split("-")[1].substring(u.match(/\d/).index,u.split("-")[0].length);if(c!=p)return u;{const y=[],x=Number(g),E=x<1e3?x:1e3;for(let k=Number(m);k<=E;k++)y.push(`${c}${k}`);return y.join(",")}}else return u}).join(","),a=u=>{const c=u.match(/\d+(\.\d+)?/g);return c?c[c.length-1]:""},i=u=>{let c=0;const m=p=>{var g=p.split("");return g.reverse()};for(let p=0;p<m(u).length&&m(u)[p].match(/\d/);p++)c=c+1;return u.substring(0,u.length-c)},o=u=>ie.sortBy(ie.uniq(u.split(",")),c=>Number(a(c))),l=Object.values(ie.groupBy(o(n.toLocaleUpperCase()),u=>i(u))).map(u=>u.join(","));return l.length>1e3&&(r==null||r()),l.length>1e3?l.slice(0,1e3).join(","):l.join(",")});let vt=Ei;const _U="_tableSelection_1xub0_1",wU="_sideBox_1xub0_36",xU="_tableFrame_1xub0_51",eg={tableSelection:_U,sideBox:wU,tableFrame:xU},SU="_sider_item_container_wnrm0_1",Xo={sider_item_container:SU},{TreeNode:dx}=Z.Tree,H4=e=>{const[t,r]=F.useState([]),[n,a]=F.useState([]),[i,o]=F.useState([]);zs(()=>{l()});const l=async()=>{a(e.treeResult||[]);const{result:c}=await e.getAttributeByTab({itemCode:e.itemCode,tabCode:"10002001",notInApiCode:"Unit,ProductModel,Product"}),m=c.records.filter(p=>["Number","Note","LifeCyclePhase","Category"].includes(p.apicode));e.onGetTreeFields&&e.onGetTreeFields(m)};F.useEffect(()=>{e.outIsSelected&&r([])},[e.outIsSelected]);const u=c=>c.map(p=>(p.title=D.jsxs("div",{className:Xo.treeListBox,children:[D.jsxs("div",{className:Xo.titleBox,style:{display:"flex",alignItems:"center"},children:[D.jsx(Ue,{type:p.icon=="leftbar-folder"?p.children&&p.children.length>0&&ie.includes(i,p.id)?"content-open2":"content-fold":p.icon,style:{fontSize:"16px",color:"#333"}}),D.jsx("div",{className:Xo.name,style:{marginLeft:"2px",whiteSpace:"nowrap"},title:p.name,children:D.jsx("span",{children:p.name})})]}),D.jsx("div",{className:Te(Xo.btnBox,Xo.onHover)})]},p.id),p.children?D.jsx(dx,{title:p.title,dataRef:p,children:u(p.children)},p.id):D.jsx(dx,{title:p.title},p.id)));return D.jsx("div",{className:Xo.sider_item_container,children:D.jsx(Z.Tree,{switcherIcon:D.jsx(Ue,{type:"xia-mian",style:{color:"#3C3C3C",cursor:"pointer"}}),expandedKeys:i,selectedKeys:t,onExpand:c=>{o(c)},onSelect:(c,m)=>{m.selected&&(r(c),e.onSelected&&e.onSelected(m.node.dataRef))},children:u(n)})})},CU="_main_1qtos_1",EU="_edit_cell_1qtos_23",kU="_update_style_1qtos_28",TU="_updated_style_1qtos_42",OU="_updated_redline_style_1qtos_61",AU="_table_footer_1qtos_349",RU="_loading_1qtos_361",zn={main:CU,edit_cell:EU,update_style:kU,updated_style:TU,updated_redline_style:OU,table_footer:AU,loading:RU},PU=0,tg=1,rg=2,U4=8,Zo=64,Id=0,q4=1,m1=typeof Symbol=="function"?Symbol.for("idx"):"$$idx";function DU(){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:PU,end:!1,final_top:0,f_final_top:q4,update_count:0}}function MU(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 os(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 FU(e){const t=e.target;return{target:{scrollTop:t.scrollTop,scrollLeft:t.scrollLeft},end:t.scrollHeight-t.clientHeight===Math.round(t.scrollTop),flag:U4}}const NU=ee.forwardRef(function(t,r){return D.jsx("table",{ref:r,...t})});function IU(e){return D.jsx("tbody",{...e})}const LU=ee.forwardRef(function(t,r){const[n,a]=F.useState(!1);return D.jsx("tr",{ref:r,...t})});function jU(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,o=0,l=0,u=0;if(t===-1&&n>0){for(o=n;o>0&&u<e._y;)u+=r[--o];return[0|o,0|n,0|e.computed_h-u]}for(;o<n&&i<t;++o)i+=r[o];for(l=o;l<n&&u<e._y;++l)u+=r[l];let c=a<0?0:a;for(;o>0&&c--;)i-=r[--o];return l+=a,l>n&&(l=n),[0|o,0|l,0|i]}function W4(e,t,r,n){e._offset_top=0|t,e._offset_head=0|r,e._offset_tail=0|n}function $U(e,t,r,n,a){e.top=t,e.left=r,e.evt=n,e.end=a}function zU(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 fx(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 V4(e,t){const r=()=>{os(e,"REPAINTING"),e.vt_state===4&&e.wrap_inst.current&&zU(e,e.computed_h),e.HND_PAINT=0};return t<0?window.requestAnimationFrame(r):window.setTimeout(r,t)}function ng(e){e.HND_PAINT>0||(e.HND_PAINT=V4(e,-1))}function Y4(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 BU(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 HU(e,t){e.re_computed=t-e.row_count,e.prev_row_count=e.row_count,e.row_count=t}const UU=(e,t)=>{const{style:r,context:n,...a}=e,i=F.useState(0),o=F.useRef(()=>{}),l=F.useMemo(()=>ee.createRef(),[]),u=F.useContext(n);F.useMemo(()=>{Object.assign(u,DU()),u.wrap_inst&&u.wrap_inst.current&&(u.wrap_inst.current.parentElement.onscroll=null),u.wrap_inst=l,u.top=u.initTop,u.on_update_wrap_style=()=>{u._y===0&&`${u._scroll_y}`.length&&g({flag:Zo,target:{scrollTop:u.top,scrollLeft:u.left}})},process.env.NODE_ENV==="development"&&MU(u)},[]);const c=F.useRef([]).current,m=F.useRef(0);let p;const g=F.useCallback(w=>{if(u.vt_state===4){if(w&&(c.push(w),u.f_final_top===Id))return w.flag=Zo,p(0);c.length&&(m.current&&cancelAnimationFrame(m.current),m.current=requestAnimationFrame(p))}},[]),y=F.useCallback(w=>{g(FU(w))},[]);p=F.useCallback(w=>{if(u.vt_state!==4)return;const S=c;let f;if(!S.length)return;f=S.pop();let h=f.target.scrollTop,v=f.target.scrollLeft;const _=f.flag;os(u,`raf top: ${h}, left: ${v}`);const R=jU(u,u.f_final_top===Id?u.final_top:h),C=R[0],P=R[1],M=R[2],q=u._offset_head,L=u._offset_tail,N=u._offset_top;let j;switch(_){case tg:os(u,"SCROLLEVT_INIT"),j=!1;break;case Zo:os(u,"SCROLLEVT_BY_HOOK"),C===q&&P===L&&M===N?(u.f_final_top=q4,u.final_top===-1&&(h=u.computed_h-u._y),j=!0):(u.final_top===-1&&(h=M),j=!1);break;case rg:if(os(u,"SCROLLEVT_RECOMPUTE"),C===q&&P===L&&M===N){m.current=0,S.length&&g(null);return}j=!1;break;case U4:if(os(u,"SCROLLEVT_NATIVE"),m.current=0,S.length=0,u.onScroll&&u.onScroll({top:h,left:v,isEnd:f.end}),C===q&&P===L&&M===N)return;j=f.end;break}W4(u,M,C,P),$U(u,h,v,_,j),i[1](++u.update_count)},[]),F.useImperativeHandle(t,()=>{const w=S=>{u.f_final_top=Id,u.final_top=S,g({target:{scrollTop:S,scrollLeft:-1},flag:Zo})};return{scrollTo:S=>{o.current=()=>w(S),o.current()},scrollToIndex:S=>{o.current=()=>{S>u.row_count-1&&(S=u.row_count-1),S<0&&(S=0);let f=0;for(let h=0;h<S;++h)f+=u.row_height[h];w(f)},o.current()}}},[]),F.useEffect(()=>{u.wrap_inst.current.parentElement.onscroll=y},[l]),F.useEffect(()=>{g({flag:Zo,target:{scrollLeft:u.left,scrollTop:u.top}})},[u.scroll.y]),F.useEffect(()=>{switch(u.evt){case Zo:u.f_final_top===Id?o.current():fx(u,u.top,u.left);break;case tg:case rg:fx(u,u.top,u.left),c.length&&p(0);break}},[i[0]]),F.useEffect(()=>{switch(u.vt_state){case 1:break;case 2:u.vt_state=4,g({target:{scrollTop:u.top,scrollLeft:0},flag:tg});break;case 4:u.re_computed!==0&&(u.re_computed=0,g({target:{scrollTop:u.top,scrollLeft:u.left},flag:rg}));break}}),r.position="relative",r.top=u._offset_top;const{width:x,...E}=r,k=F.useMemo(()=>({width:x,minWidth:"100%",position:"relative",transform:"matrix(1, 0, 0, 1, 0, 0)"}),[x]),T=u.components.table;return D.jsx("div",{ref:l,style:k,children:D.jsx(n.Provider,{value:{...u},children:D.jsx(T,{...a,style:E})})})},qU=e=>{const{children:t,ctx:r,...n}=e,a=t[0],i=t[1],o=r.components.body.wrapper;let l=Array.isArray(i)?i.length:0,{_offset_head:u,_offset_tail:c}=r,m=[];switch(r.vt_state){case 1:l>=0&&(console.assert(u===0),console.assert(c===1),Array.isArray(i)?(m=i.slice(u,c),m[0].props.record[m1]=0):m=i,r.re_computed=l,r.prev_row_count=l,r.row_count=l);break;case 4:{if(c>l){const g=c-l;c-=g,u-=g,u<0&&(u=0),c<0&&(c=0),W4(r,r._offset_top,u,c)}r.row_count!==l&&HU(r,l),l=r.row_count;const p=r.prev_row_count;if(l<p)BU(r,l,p);else if(l>p){const g=r.row_height;l-g.length>0?Y4(r,l,g.length,r.possible_hight_per_tr):(g.fill(r.possible_hight_per_tr,p,l),r.computed_h+=r.possible_hight_per_tr*(l-p))}if(l){let g=u;m=i.slice(g,c),m.forEach(y=>y.props.record[m1]=g++)}else m=i;r.prev_row_count=r.row_count}break;case 2:console.assert(!1);break}return D.jsxs(o,{...n,children:[a,m]})},WU=e=>{const t=ee.createRef(),{ctx:r,...n}=e,a=e.children,i=r.components.body.row;if(!Array.isArray(a))return D.jsx(i,{...n,children:a});const o=a[0].props,l=o.record[m1],u=F.useRef(l),c=F.useMemo(()=>`.${o.prefixCls}-expanded-row`,[o.prefixCls]);return F.useEffect(()=>(r.vt_state===4?ng(r):(console.assert(r.vt_state===1),r.vt_state=2,r.possible_hight_per_tr=t.current.offsetHeight,Y4(r,r.row_count,0,r.possible_hight_per_tr),V4(r,16)),()=>ng(r)),[]),F.useEffect(()=>{const m=t.current;let p=m.offsetHeight,g=m.nextSibling;for(;g&&g.matches(c);)p+=g.offsetHeight,g=g.nextSibling;const y=r.row_height[l],x=r.row_height[u.current];r.computed_h-=y,r.computed_h+=x,r.computed_h+=p-x,r.row_height[l]=p,ng(r)}),D.jsx(i,{...n,ref:t})};function G4(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 VU(e,t){const r=F.useRef(ee.createContext({})).current,n=F.useContext(r),a=F.useRef({scrollTo:i=>{},scrollToIndex:i=>{}});return F.useMemo(()=>Object.assign(n,{id:(+new Date).toString(36).slice(4),initTop:0,overscanRowCount:20,debug:!1,ref:a},e()),t),F.useMemo(()=>{const i=ee.forwardRef(UU);n._vtcomponents={table:o=>D.jsx(i,{...o,context:r,ref:n.ref}),body:{wrapper:o=>D.jsx(r.Consumer,{children:()=>D.jsx(qU,{...o,ctx:n})}),row:o=>D.jsx(WU,{...o,ctx:n})}},n.components={},G4(n,{table:NU,body:{wrapper:IU,row:LU}}),n.vt_state=1},[]),n}const hx=1,YU=2;(function(){if((typeof window=="object"&&window instanceof Window?hx:YU)&hx&&!Object.hasOwnProperty.call(window,"requestAnimationFrame")&&!window.requestAnimationFrame)throw new Error("Please using the modern browers or appropriate polyfill!")})();function GU(e,t){const r=VU(e,t||[]);return[r._vtcomponents,n=>G4(r,n),r.ref]}const KU=({hideFooter:e,contentRef:t,tableRef:r,scroll:n,fullScreenMinusHeight:a,scrollUpdate:i,onTableHeightChange:o},l)=>{const[u,c]=F.useState(0),m=xn(n);return F.useEffect(()=>{const p=()=>{var x,E,k;const y=(T=>{for(var w=T.offsetTop,S=T.offsetParent;S!==null;)w+=S.offsetTop,S=S.offsetParent;return w})(t.current);if(r.current){const T=t.current.querySelectorAll(".frontend-table-body")[0].getElementsByTagName("div")[0],w=t.current.querySelectorAll(".frontend-table-body")[0],S=34+(e?0:15);if(T){const f=vt.autoTableHeight(l?S:y+S),h=f-(a||0);n!=null&&n.y?i?i==null||i(l,h):(c(l?h:Number((x=m.current)==null?void 0:x.y)),T.style.minHeight=(l?h:Number((E=m.current)==null?void 0:E.y))-10+"px",w.style.minHeight=(l?h:Number((k=m.current)==null?void 0:k.y))+"px"):(c(l?h:f),T.style.minHeight=(l?h:f)-10+"px",w.style.minHeight=(l?h:f)+"px")}}};return p(),window.addEventListener("resize",p),()=>{window.removeEventListener("resize",p)}},[l,n]),F.useEffect(()=>{o==null||o(u)},[u]),u};var pl={exports:{}},ml={},Ld={},px;function XU(){if(px)return Ld;px=1,Ld.__esModule=!0,Ld.cloneElement=l;var e=t(F);function t(u){return u&&u.__esModule?u:{default:u}}function r(u,c){var m=Object.keys(u);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(u);c&&(p=p.filter(function(g){return Object.getOwnPropertyDescriptor(u,g).enumerable})),m.push.apply(m,p)}return m}function n(u){for(var c=1;c<arguments.length;c++){var m=arguments[c]!=null?arguments[c]:{};c%2?r(Object(m),!0).forEach(function(p){a(u,p,m[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(m)):r(Object(m)).forEach(function(p){Object.defineProperty(u,p,Object.getOwnPropertyDescriptor(m,p))})}return u}function a(u,c,m){return c=i(c),c in u?Object.defineProperty(u,c,{value:m,enumerable:!0,configurable:!0,writable:!0}):u[c]=m,u}function i(u){var c=o(u,"string");return typeof c=="symbol"?c:String(c)}function o(u,c){if(typeof u!="object"||u===null)return u;var m=u[Symbol.toPrimitive];if(m!==void 0){var p=m.call(u,c);if(typeof p!="object")return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return(c==="string"?String:Number)(u)}function l(u,c){return c.style&&u.props.style&&(c.style=n(n({},u.props.style),c.style)),c.className&&u.props.className&&(c.className=u.props.className+" "+c.className),e.default.cloneElement(u,c)}return Ld}var gl={},mx;function K4(){if(mx)return gl;mx=1,gl.__esModule=!0,gl.resizableProps=void 0;var e=t(hc());dv();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),o=0;o<a;o++)i[o]=arguments[o];var l=i[0];if(l.axis==="both"||l.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),o=0;o<a;o++)i[o]=arguments[o];var l=i[0];if(l.axis==="both"||l.axis==="x"){var u;return(u=e.default.number).isRequired.apply(u,i)}return e.default.number.apply(e.default,i)}};return gl.resizableProps=r,gl}var gx;function X4(){if(gx)return ml;gx=1,ml.__esModule=!0,ml.default=void 0;var e=o(F),t=dv(),r=XU(),n=K4(),a=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function i(T){if(typeof WeakMap!="function")return null;var w=new WeakMap,S=new WeakMap;return(i=function(h){return h?S:w})(T)}function o(T,w){if(T&&T.__esModule)return T;if(T===null||typeof T!="object"&&typeof T!="function")return{default:T};var S=i(w);if(S&&S.has(T))return S.get(T);var f={},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var v in T)if(v!=="default"&&Object.prototype.hasOwnProperty.call(T,v)){var _=h?Object.getOwnPropertyDescriptor(T,v):null;_&&(_.get||_.set)?Object.defineProperty(f,v,_):f[v]=T[v]}return f.default=T,S&&S.set(T,f),f}function l(){return l=Object.assign?Object.assign.bind():function(T){for(var w=1;w<arguments.length;w++){var S=arguments[w];for(var f in S)Object.prototype.hasOwnProperty.call(S,f)&&(T[f]=S[f])}return T},l.apply(this,arguments)}function u(T,w){if(T==null)return{};var S={},f=Object.keys(T),h,v;for(v=0;v<f.length;v++)h=f[v],!(w.indexOf(h)>=0)&&(S[h]=T[h]);return S}function c(T,w){var S=Object.keys(T);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(T);w&&(f=f.filter(function(h){return Object.getOwnPropertyDescriptor(T,h).enumerable})),S.push.apply(S,f)}return S}function m(T){for(var w=1;w<arguments.length;w++){var S=arguments[w]!=null?arguments[w]:{};w%2?c(Object(S),!0).forEach(function(f){p(T,f,S[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(T,Object.getOwnPropertyDescriptors(S)):c(Object(S)).forEach(function(f){Object.defineProperty(T,f,Object.getOwnPropertyDescriptor(S,f))})}return T}function p(T,w,S){return w=g(w),w in T?Object.defineProperty(T,w,{value:S,enumerable:!0,configurable:!0,writable:!0}):T[w]=S,T}function g(T){var w=y(T,"string");return typeof w=="symbol"?w:String(w)}function y(T,w){if(typeof T!="object"||T===null)return T;var S=T[Symbol.toPrimitive];if(S!==void 0){var f=S.call(T,w);if(typeof f!="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return(w==="string"?String:Number)(T)}function x(T,w){T.prototype=Object.create(w.prototype),T.prototype.constructor=T,E(T,w)}function E(T,w){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,h){return f.__proto__=h,f},E(T,w)}var k=function(T){x(w,T);function w(){for(var f,h=arguments.length,v=new Array(h),_=0;_<h;_++)v[_]=arguments[_];return f=T.call.apply(T,[this].concat(v))||this,f.handleRefs={},f.lastHandleRect=null,f.slack=null,f}var S=w.prototype;return S.componentWillUnmount=function(){this.resetData()},S.resetData=function(){this.lastHandleRect=this.slack=null},S.runConstraints=function(h,v){var _=this.props,R=_.minConstraints,C=_.maxConstraints,P=_.lockAspectRatio;if(!R&&!C&&!P)return[h,v];if(P){var M=this.props.width/this.props.height,q=h-this.props.width,L=v-this.props.height;Math.abs(q)>Math.abs(L*M)?v=h/M:h=v*M}var N=h,j=v,O=this.slack||[0,0],I=O[0],z=O[1];return h+=I,v+=z,R&&(h=Math.max(R[0],h),v=Math.max(R[1],v)),C&&(h=Math.min(C[0],h),v=Math.min(C[1],v)),this.slack=[I+(N-h),z+(j-v)],[h,v]},S.resizeHandler=function(h,v){var _=this;return function(R,C){var P=C.node,M=C.deltaX,q=C.deltaY;h==="onResizeStart"&&_.resetData();var L=(_.props.axis==="both"||_.props.axis==="x")&&v!=="n"&&v!=="s",N=(_.props.axis==="both"||_.props.axis==="y")&&v!=="e"&&v!=="w";if(!(!L&&!N)){var j=v[0],O=v[v.length-1],I=P.getBoundingClientRect();if(_.lastHandleRect!=null){if(O==="w"){var z=I.left-_.lastHandleRect.left;M+=z}if(j==="n"){var B=I.top-_.lastHandleRect.top;q+=B}}_.lastHandleRect=I,O==="w"&&(M=-M),j==="n"&&(q=-q);var H=_.props.width+(L?M/_.props.transformScale:0),U=_.props.height+(N?q/_.props.transformScale:0),J=_.runConstraints(H,U);H=J[0],U=J[1];var re=H!==_.props.width||U!==_.props.height,ne=typeof _.props[h]=="function"?_.props[h]:null,se=h==="onResize"&&!re;ne&&!se&&(R.persist==null||R.persist(),ne(R,{node:P,size:{width:H,height:U},handle:v})),h==="onResizeStop"&&_.resetData()}}},S.renderResizeHandle=function(h,v){var _=this.props.handle;if(!_)return e.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+h,ref:v});if(typeof _=="function")return _(h,v);var R=typeof _.type=="string",C=m({ref:v},R?{}:{handleAxis:h});return e.cloneElement(_,C)},S.render=function(){var h=this,v=this.props,_=v.children,R=v.className,C=v.draggableOpts;v.width,v.height,v.handle,v.handleSize,v.lockAspectRatio,v.axis,v.minConstraints,v.maxConstraints,v.onResize,v.onResizeStop,v.onResizeStart;var P=v.resizeHandles;v.transformScale;var M=u(v,a);return(0,r.cloneElement)(_,m(m({},M),{},{className:(R?R+" ":"")+"react-resizable",children:[].concat(_.props.children,P.map(function(q){var L,N=(L=h.handleRefs[q])!=null?L:h.handleRefs[q]=e.createRef();return e.createElement(t.DraggableCore,l({},C,{nodeRef:N,key:"resizableHandle-"+q,onStop:h.resizeHandler("onResizeStop",q),onStart:h.resizeHandler("onResizeStart",q),onDrag:h.resizeHandler("onResize",q)}),h.renderResizeHandle(q,N))}))}))},w}(e.Component);return ml.default=k,k.propTypes=n.resizableProps,k.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1},ml}var vl={},vx;function ZU(){if(vx)return vl;vx=1,vl.__esModule=!0,vl.default=void 0;var e=l(F),t=i(hc()),r=i(X4()),n=K4(),a=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function i(w){return w&&w.__esModule?w:{default:w}}function o(w){if(typeof WeakMap!="function")return null;var S=new WeakMap,f=new WeakMap;return(o=function(v){return v?f:S})(w)}function l(w,S){if(w&&w.__esModule)return w;if(w===null||typeof w!="object"&&typeof w!="function")return{default:w};var f=o(S);if(f&&f.has(w))return f.get(w);var h={},v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in w)if(_!=="default"&&Object.prototype.hasOwnProperty.call(w,_)){var R=v?Object.getOwnPropertyDescriptor(w,_):null;R&&(R.get||R.set)?Object.defineProperty(h,_,R):h[_]=w[_]}return h.default=w,f&&f.set(w,h),h}function u(){return u=Object.assign?Object.assign.bind():function(w){for(var S=1;S<arguments.length;S++){var f=arguments[S];for(var h in f)Object.prototype.hasOwnProperty.call(f,h)&&(w[h]=f[h])}return w},u.apply(this,arguments)}function c(w,S){var f=Object.keys(w);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(w);S&&(h=h.filter(function(v){return Object.getOwnPropertyDescriptor(w,v).enumerable})),f.push.apply(f,h)}return f}function m(w){for(var S=1;S<arguments.length;S++){var f=arguments[S]!=null?arguments[S]:{};S%2?c(Object(f),!0).forEach(function(h){p(w,h,f[h])}):Object.getOwnPropertyDescriptors?Object.defineProperties(w,Object.getOwnPropertyDescriptors(f)):c(Object(f)).forEach(function(h){Object.defineProperty(w,h,Object.getOwnPropertyDescriptor(f,h))})}return w}function p(w,S,f){return S=g(S),S in w?Object.defineProperty(w,S,{value:f,enumerable:!0,configurable:!0,writable:!0}):w[S]=f,w}function g(w){var S=y(w,"string");return typeof S=="symbol"?S:String(S)}function y(w,S){if(typeof w!="object"||w===null)return w;var f=w[Symbol.toPrimitive];if(f!==void 0){var h=f.call(w,S);if(typeof h!="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(S==="string"?String:Number)(w)}function x(w,S){if(w==null)return{};var f={},h=Object.keys(w),v,_;for(_=0;_<h.length;_++)v=h[_],!(S.indexOf(v)>=0)&&(f[v]=w[v]);return f}function E(w,S){w.prototype=Object.create(S.prototype),w.prototype.constructor=w,k(w,S)}function k(w,S){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(h,v){return h.__proto__=v,h},k(w,S)}var T=function(w){E(S,w);function S(){for(var h,v=arguments.length,_=new Array(v),R=0;R<v;R++)_[R]=arguments[R];return h=w.call.apply(w,[this].concat(_))||this,h.state={width:h.props.width,height:h.props.height,propsWidth:h.props.width,propsHeight:h.props.height},h.onResize=function(C,P){var M=P.size;h.props.onResize?(C.persist==null||C.persist(),h.setState(M,function(){return h.props.onResize&&h.props.onResize(C,P)})):h.setState(M)},h}S.getDerivedStateFromProps=function(v,_){return _.propsWidth!==v.width||_.propsHeight!==v.height?{width:v.width,height:v.height,propsWidth:v.width,propsHeight:v.height}:null};var f=S.prototype;return f.render=function(){var v=this.props,_=v.handle,R=v.handleSize;v.onResize;var C=v.onResizeStart,P=v.onResizeStop,M=v.draggableOpts,q=v.minConstraints,L=v.maxConstraints,N=v.lockAspectRatio,j=v.axis;v.width,v.height;var O=v.resizeHandles,I=v.style,z=v.transformScale,B=x(v,a);return e.createElement(r.default,{axis:j,draggableOpts:M,handle:_,handleSize:R,height:this.state.height,lockAspectRatio:N,maxConstraints:L,minConstraints:q,onResizeStart:C,onResize:this.onResize,onResizeStop:P,resizeHandles:O,transformScale:z,width:this.state.width},e.createElement("div",u({},B,{style:m(m({},I),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},S}(e.Component);return vl.default=T,T.propTypes=m(m({},n.resizableProps),{},{children:t.default.element}),vl}var bx;function JU(){return bx||(bx=1,pl.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},pl.exports.Resizable=X4().default,pl.exports.ResizableBox=ZU().default),pl.exports}var QU=JU();const eq=e=>{const{onResizeOver:t,onResizeStop:r,trulyHeight:n,onResize:a,width:i,onClick:o,required:l,editable:u,formitem:c,dataIndex:m,...p}=e,g=F.useRef(),y=()=>{const S=u?c&&c.props&&c.props.disabled:!0;if(!S&&l)return{fontStyle:"italic",fontWeight:"400",color:"#000000"};if(S&&l)return{fontWeight:"400"};if(!S&&!l)return{fontStyle:"italic",fontWeight:"400",color:"#000000"};if(S&&!l)return{fontWeight:"400"}},x=Br({resizing:!1}),[E,k]=F.useState(0);F.useEffect(()=>{document.querySelectorAll(".react-resizable .react-resizable-handle").forEach(f=>f.addEventListener("click",h=>!1))},[]);const[T,w]=F.useState(0);return!i||m==="id"?D.jsx("th",{...p,onClick:o,style:{...p.style,...y()},onKeyDown:()=>{},className:`${p.className} ${l?"frontend-table-column-required":""}`}):D.jsx(QU.Resizable,{axis:"x",width:i+T,height:0,handle:D.jsx("span",{onClick:S=>{S.stopPropagation(),S.preventDefault()},className:Te(["react-resizable-handle",T&&"active"])}),onResize:(S,{size:f,...h})=>{const v=document.getElementById("table-resize-handle");if(v){const _=document.getElementById(`table_key_${e.tableKey}`);S.pageX>_.getBoundingClientRect().left+_.getBoundingClientRect().width||S.pageX<_.getBoundingClientRect().left?v.style.width="0px":(v.style.width="1px",v.style.background="#0563B2",v.style.zIndex="9999",v.style.top=`${h.node.getBoundingClientRect().top}px`,v.style.position="fixed",v.style.height=`${n}px`,v.style.left=`${S.pageX}px`)}t(S),x.resizing=!0,w(f.width-i)},onResizeStop:(...S)=>{var f;S[0].stopPropagation(),(f=document.getElementById("table-resize-handle"))==null||f.remove(),r(),w(0),a(...S),setTimeout(()=>{x.resizing=!1})},onResizeStart:S=>{document.getElementById(`table_key_${e.tableKey}`);const f=document.createElement("div");f.id="table-resize-handle",document.body.appendChild(f),x.resizing=!0,S.stopPropagation()},draggableOpts:{enableUserSelectHack:!1},children:D.jsx("th",{ref:g,onClick:(...S)=>{!x.resizing&&o&&o(...S)},...p,style:{...p.style,...y()},onKeyDown:()=>{},className:`${p.className} ${l?"frontend-table-column-required":""}`})})};function Ql(){return Ql=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},Ql.apply(this,arguments)}function Z4(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 J4=F.createContext({});function tq(){return F.useContext(J4)}var rq=function(t){return F.createElement(J4.Provider,{value:t.refTracker},t.children)};function nq(){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 zf=nq();function aq(e){var t=F.useRef();return F.useEffect(function(){t.current=e},[e]),t.current}function iq(){return F.useRef(new Map).current}var yx={show:function(t){var r=t.id,n=t.event,a=t.props,i=t.position;n.preventDefault&&n.preventDefault(),zf.emit(0).emit(r,{event:n.nativeEvent||n,props:a,position:i})},hideAll:function(){zf.emit(0)}};function oq(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."),yx.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(){yx.hideAll()}}}function sq(){var e=new Map,t,r,n,a,i=!1;function o(E){a=E,t=-1,n=!0}function l(){a[t].node.focus()}function u(){return t>=0&&a[t].isSubmenu}function c(){return Array.from(a[t].submenuRefTracker.values())}function m(){return t===-1?(p(),!1):!0}function p(){t+1<a.length?t++:t+1===a.length&&(t=0),i&&x(),l()}function g(){t===-1||t===0?t=a.length-1:t-1<a.length&&t--,i&&x(),l()}function y(){if(m()&&u()){var E=c(),k=a[t].node;return e.set(k,{isRoot:n,focusedIndex:t,parentNode:r||k,items:a}),k.classList.add("react-contexify__submenu--is-open"),r=k,E.length>0?(t=0,a=E):i=!0,n=!1,l(),!0}return!1}function x(){if(m()&&!n){var E=e.get(r),k=E.isRoot,T=E.items,w=E.focusedIndex,S=E.parentNode;r.classList.remove("react-contexify__submenu--is-open"),a=T,r=S,k&&(n=!0,e.clear()),i||(t=w,l())}}return{init:o,moveDown:p,moveUp:g,openSubmenu:y,closeSubmenu:x}}var g1=function(){};function Q4(e){return typeof e=="function"}function eC(e){return typeof e=="string"}function uq(e){return e.type==="touchend"}function lq(e,t){return F.Children.map(F.Children.toArray(e).filter(Boolean),function(r){return F.cloneElement(r,t)})}function cq(e){var t={x:0,y:0};return uq(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 _x(e,t){return Q4(e)?e(t):e}function dq(e){return!!(e&&(eC(e)||"exit"in e&&e.exit))}function fq(e,t){return Q4(t)?Ql({},e,t(e)):Ql({},e,t)}var hq=function(t){var r,n=t.id,a=t.theme,i=t.style,o=t.className,l=t.children,u=t.animation,c=u===void 0?"scale":u,m=t.onHidden,p=m===void 0?g1:m,g=t.onShown,y=g===void 0?g1:g,x=Z4(t,["id","theme","style","className","children","animation","onHidden","onShown"]),E=F.useReducer(fq,{x:0,y:0,visible:!1,triggerEvent:{},propsFromTrigger:null,willLeave:!1}),k=E[0],T=E[1],w=F.useRef(null),S=F.useRef(!1),f=aq(k.visible),h=iq(),v=F.useState(function(){return sq()}),_=v[0];F.useEffect(function(){return S.current=!0,zf.on(n,R).on(0,C),function(){zf.off(n,R).off(0,C)}},[n]),F.useEffect(function(){S.current&&k.visible!==f&&(k.visible?y():p())},[k.visible,p,y]),F.useEffect(function(){k.visible?_.init(Array.from(h.values())):h.clear()},[k.visible,_,h]),F.useEffect(function(){if(k.visible){var H=window,U=H.innerWidth,J=H.innerHeight,re=w.current,ne=re.offsetWidth,se=re.offsetHeight,ce=k.x,le=k.y;ce+ne>U&&(ce-=ce+ne-U),le+se>J&&(le-=le+se-J),T({x:ce,y:le})}},[k.visible]),F.useEffect(function(){function H(U){switch(U.preventDefault(),U.key){case"Enter":_.openSubmenu()||C();break;case"Escape":C();break;case"ArrowUp":_.moveUp();break;case"ArrowDown":_.moveDown();break;case"ArrowRight":_.openSubmenu();break;case"ArrowLeft":_.closeSubmenu();break}}return k.visible&&(window.addEventListener("resize",C),window.addEventListener("contextmenu",C),window.addEventListener("click",C),window.addEventListener("scroll",C),window.addEventListener("keydown",H),process.env.NODE_ENV!=="development"&&window.addEventListener("blur",C)),function(){window.removeEventListener("resize",C),window.removeEventListener("contextmenu",C),window.removeEventListener("click",C),window.removeEventListener("scroll",C),window.removeEventListener("keydown",H),process.env.NODE_ENV!=="development"&&window.removeEventListener("blur",C)}},[k.visible,_]);function R(H){var U=H.event,J=H.props,re=H.position;U.stopPropagation();var ne=re||cq(U),se=ne.x,ce=ne.y;setTimeout(function(){T({visible:!0,willLeave:!1,x:se,y:ce,triggerEvent:U,propsFromTrigger:J})},0)}function C(H){var U=H;typeof U<"u"&&(U.button===2||U.ctrlKey===!0)&&U.type!=="contextmenu"||(dq(c)?T(function(J){return{willLeave:J.visible}}):T(function(J){return{visible:J.visible?!1:J.visible}}))}function P(){k.willLeave&&k.visible&&T({visible:!1,willLeave:!1})}function M(){if(!c)return null;if(eC(c)){var H;return bs((H={},H["react-contexify__will-enter--"+c]=c&&q&&!I,H["react-contexify__will-leave--"+c+" react-contexify__will-leave--'disabled'"]=c&&q&&I,H))}else if("enter"in c&&"exit"in c){var U;return bs((U={},U["react-contexify__will-enter--"+c.enter]=c.enter&&q&&!I,U["react-contexify__will-leave--"+c.exit+" react-contexify__will-leave--'disabled'"]=c.exit&&q&&I,U))}return null}var q=k.visible,L=k.triggerEvent,N=k.propsFromTrigger,j=k.x,O=k.y,I=k.willLeave,z=bs("react-contexify",o,(r={},r["react-contexify__theme--"+a]=a,r),M()),B=Ql({},i,{left:j,top:O,opacity:1});return F.createElement(rq,{refTracker:h},q&&F.createElement("div",Object.assign({},x,{className:z,onAnimationEnd:P,style:B,ref:w,role:"menu"}),lq(l,{propsFromTrigger:N,triggerEvent:L})))},wx=function(t){var r,n=t.children,a=t.className,i=t.style,o=t.triggerEvent,l=t.data,u=t.propsFromTrigger,c=t.onClick,m=c===void 0?g1:c,p=t.disabled,g=p===void 0?!1:p,y=t.hidden,x=y===void 0?!1:y,E=Z4(t,["children","className","style","triggerEvent","data","propsFromTrigger","onClick","disabled","hidden"]),k=tq(),T={data:l,triggerEvent:o,props:u},w=_x(g,T),S=_x(x,T);function f(R){T.event=R,w?R.stopPropagation():m(T)}function h(R){R&&!w&&k.set(R,{node:R,isSubmenu:!1})}function v(R){R.key==="Enter"&&(T.event=R,m(T))}if(S)return null;var _=bs("react-contexify__item",a,(r={},r["react-contexify__item--disabled"]=w,r));return F.createElement("div",Object.assign({},E,{className:_,style:i,onClick:f,onKeyDown:v,ref:h,tabIndex:-1,role:"menuitem","aria-disabled":w}),F.createElement("div",{className:"react-contexify__item__content"},n))};const pq="_box_1hwl6_2",mq="_transferSearch_1hwl6_2",gq="_searchBtn_1hwl6_10",vq="_shuttle_box_1hwl6_44",bq="_leftSearch_1hwl6_58",yq="_noBeforeAfter_1hwl6_62",_q="_rightSearch_1hwl6_78",wq="_transfer_1hwl6_2",Wa={box:pq,transferSearch:mq,searchBtn:gq,shuttle_box:vq,leftSearch:bq,noBeforeAfter:yq,rightSearch:_q,transfer:wq},xq="_content_1tmh1_1",Sq={content:xq},Cq=F.forwardRef((e,t)=>{const{panes:r,loading:n,defaultActiveKey:a,onTabClick:i}=e,[o,l]=F.useState(a),{TabPane:u}=Z.Tabs;return n?D.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:D.jsx(Ls,{})}):(F.useImperativeHandle(t,()=>({active:c=>{(i==null?void 0:i(c))!==!1&&l(c)}}),[o]),D.jsx("div",{className:`${Sq.content} ${e.className??""}`,children:n?D.jsx("div",{style:{padding:"10px"}}):r.length?D.jsx(Z.Tabs,{animated:!1,activeKey:o,destroyInactiveTabPane:!0,tabBarGutter:30,onTabClick:c=>{(i==null?void 0:i(c))!==!1&&l(c)},children:(r||[]).map((c,m)=>D.jsx(u,{tab:D.jsxs("div",{style:{display:"flex",alignItems:"center",paddingBottom:"2px"},children:[c.icon&&D.jsx(Ue,{style:{marginRight:"5px",fontSize:"16px"},type:`${c.icon}`}),D.jsx("div",{style:{fontSize:"12px",lineHeight:"18px"},children:c.tab})]}),children:D.jsx("div",{style:{padding:"0px"},children:F.Children.map(e.children,p=>{var g;return((g=p==null?void 0:p.props)==null?void 0:g["data-key"])==c.tabKey?p:null})})},`${c.tabKey}`))}):D.jsx(D.Fragment,{})}))}),Eq=F.forwardRef((e,t)=>{var B;const r=e.defaultValue?Array.isArray(e.defaultValue)?e.defaultValue:[e.defaultValue]:[],n=e.defaultActiveKey||"",[a,i]=F.useState(!1),[o,l]=F.useState(),[u,c]=F.useState(r),[m,p]=F.useState([]),[g,y]=F.useState(n),[x,E]=F.useState({[n]:{left:1,right:1}}),[k,T]=F.useState({[n]:{left:0,right:0}}),[w,S]=F.useState(""),[f,h]=F.useState({right:"",left:""}),[v,_]=F.useState(!1),[R,C]=F.useState({});F.useEffect(()=>{c(r),y(n),E({[n]:{left:1,right:1}})},[e.defaultActiveKey,e.defaultValue]),F.useEffect(()=>{a?j():(c(r),l(void 0),y(n),E({[n]:{left:1,right:1}}),S(""),h({right:"",left:""}),C({}))},[a]);const P=xn(f),M=xn(x),q=xn(g),L=xn(k),N=F.useMemo(()=>{const H=()=>{var U;return o||((U=e.allListOptions)==null?void 0:U[q.current])||[]};return ie.uniqBy([...H(),...m],"id")},[q,g,e.allListOptions,o,m]),j=async H=>{_(!0),await e.getListCodeItem(Object.assign({search:P.current,tabKey:q.current,pageNo:M},ie.omit(H||{},"isPaging"))).then(U=>{U&&(H!=null&&H.isPaging?l([...N,...U]):l([...U]),T(Object.assign({},L.current,{[q.current]:{left:U.total||U.length,right:0}})))}).finally(()=>{_(!1)})};F.useEffect(()=>{p(N.filter(H=>u.includes(H.id)))},[u]);const O=async()=>{var H,U;if(e.mandatory&&!u.length)return Z.message.error(`${Y("sys.mustSelect.mustSelect",{placeholder:"必须选择"})}${(H=e.attr)==null?void 0:H.name}`);(U=R.ok)==null||U.call(R,[...u],g,m),i(!1)};F.useImperativeHandle(t,()=>({open(H){C(()=>H),i(!0)},submit:O,dataSource:N,targetKeys:u,loading:v}),[N,u,v]);const I=H=>{H=="left"?j():S(P.current.right)},z=F.useMemo(()=>{var H;return Array.isArray(e.columns)?e.columns:((H=e.columns)==null?void 0:H[g])||[]},[e.columns,g]);return D.jsx(To,{className:Wa.shuttle_box,modalTitle:e.title,maskClosable:!1,destroyOnClose:!0,okText:Y("project.tab.plan.details.window.save",{placeholder:"保存"}),width:e.modalWidth||650,visible:a,mask:!1,onOk:O,onCancel:()=>{var H;(H=R.cancel)==null||H.call(R),i(!1)},children:D.jsx("div",{className:Wa.transferBox,children:D.jsx(Ls,{spinning:v,children:D.jsx(Z.Transfer,{...e.transfer||{},className:`${Wa.transfer} ${((B=e.transfer)==null?void 0:B.className)??""}`,dataSource:N,targetKeys:u,onChange:(H,U,J)=>{U=="right"?c([...e.isRadio?J:H]):c([...H])},rowKey:H=>H.id,children:H=>{var Le,he,qe,oe,De,Je,Ct,Et;const{direction:U,filteredItems:J,onItemSelectAll:re,onItemSelect:ne,selectedKeys:se,showSearch:ce}=H,le=U=="left",ye=!le,we={onSelectAll(Fe,We){if(e.isRadio)return;const Ne=We.filter(at=>!at.disabled).map(({id:at})=>at),Oe=Fe?ie.difference(Ne,se):ie.difference(se,Ne);re(Oe,Fe)},onSelect({id:Fe},We){e.isRadio&&se.splice(0,1),ne(Fe,We)},getCheckboxProps:Fe=>({disabled:Fe.Number&&!Sn.readPermission(Fe.Number)?!0:le?Fe.disabled:!1}),selectedRowKeys:se,columnWidth:13};(Le=e==null?void 0:e.pager)!=null&&Le[g];const Ee=()=>le?J:J.filter(Fe=>Fe.label.includes(w)||Fe.Description.includes(w));return D.jsxs("div",{className:Wa.box,style:e.scroll?{width:"360px"}:{},children:[le&&e.panes&&((he=e.panes)==null?void 0:he.length)!=1?D.jsx(Cq,{panes:e.panes,defaultActiveKey:g,onTabClick:Fe=>{var Ne;y(Fe),(Ne=e.onTabsChange)==null||Ne.call(e,Fe);const We={...f,[U]:""};h(We),M.current[Fe]||E(Object.assign({},M.current,{[Fe]:{left:1,right:1}})),j({tabKey:Fe,search:We})}}):null,ce?D.jsx("div",{style:e.scroll?{padding:"12px",borderLeft:"1px solid #E0E0E0",borderTop:"1px solid #E0E0E0",borderRight:"1px solid #E0E0E0"}:{padding:"0px"},children:D.jsx("div",{className:`${e.scroll?Wa.noBeforeAfter:""} ${Wa.transferSearch} ${le&&((qe=e.panes)!=null&&qe.length)?Wa.leftSearch:(oe=e.panes)!=null&&oe.length?Wa.rightSearch:""}`,style:e.scroll?{margin:"0px"}:{},children:D.jsx(Z.Input.Search,{placeholder:e.placeholder||Y("sys.nameOrDescription.enterNameOrDescription",{placeholder:"请输入名称或描述"}),enterButton:null,value:f[U],onChange:Fe=>{Fe.persist();const We=Fe.target.value;h({...f,[U]:We}),ye&&(We||S(""))},onSearch:I.bind(null,U),suffix:D.jsx("div",{className:Wa.searchBtn,onClick:I.bind(null,U),children:D.jsx(Ue,{type:"homesearch"})})})})}):null,D.jsx(yh,{rowSelection:{type:"checkbox",fixed:!0,...we},columns:z,showSorterTooltip:!1,hideFooter:!0,pagination:!1,dataSource:Ee(),scroll:{x:((De=e.scroll)==null?void 0:De.x)||300,y:((Je=e.scroll)==null?void 0:Je.y)||(le&&((Ct=e.panes)!=null&&Ct.length)?270:316)},style:{height:"100%"},pageNo:x[g][U],pageSize:le?20:void 0,total:le?(Et=k==null?void 0:k[g])==null?void 0:Et[U]:void 0,size:"small",onScroll:Fe=>{const We={...x,[g]:{...x[g],[U]:Fe}};E(We),le&&j({pageNo:We[g],isPaging:!0})},onRow:({id:Fe,disabled:We,...Ne})=>({onClick:()=>{if(!We&&le){if(e.isRadio&&se.splice(0,1),!Sn.readPermission(Ne.Number))return;ne(Fe,!se.includes(Fe))}},onDoubleClick:()=>{if(Sn.readPermission(Ne.Number)){if(le)We||(e.isRadio?c([Fe]):c([Fe,...u]));else{for(let Oe=0;Oe<u.length;Oe++)if(u[Oe]==Fe){u.splice(Oe,1);break}c([...u])}re([],!1)}}})}),e.showFooter?D.jsxs("div",{style:{marginTop:"4px"},children:[D.jsx("span",{style:{color:"#999999"},children:Y("sys.selected",{placeholder:"已选"})})," ",D.jsx("span",{style:{margin:"0px 2px",color:"#333333"},children:se.length})," ",D.jsx("span",{style:{color:"#999999"},children:Y("project.tab.plan.criticalPath.window.item",{placeholder:"条"})}),",",D.jsx("span",{style:{color:"#999999"},children:Y("project.tab.plan.criticalPath.window.total",{placeholder:"共"})})," ",D.jsx("span",{style:{margin:"0px 2px",color:"#333333"},children:ye?u.length:k[g][U]}),D.jsxs("span",{style:{color:"#999999"},children:[" ",Y("project.tab.plan.criticalPath.window.item",{placeholder:"条"})]})]}):D.jsx(D.Fragment,{})]})}})})})})}),tC=F.forwardRef(({selectProps:e,value:t,onChange:r,readOnly:n},a)=>{var x,E;const i=F.useRef(null),{attr:o,allListOptions:l,popoverTransfer:u}=e,c=yo(()=>{var k;(k=i.current)==null||k.open({ok:(T,w,S)=>{var f,h;["multiple","tags"].includes(e.mode)?r==null||r(T):r==null||r(T[0]),(f=u==null?void 0:u.onSubmit)==null||f.call(u,T,w,v=>p({newVal:T,allOptions:v}),S),(h=e.onBlur)==null||h.call(e)},cancel:()=>{var T;(T=e.onBlur)==null||T.call(e)}})});F.useImperativeHandle(a,()=>({focus:c}),[]);const m=F.useMemo(()=>{var T;const k=((T=u==null?void 0:u.panes)==null?void 0:T.map(w=>w.tabKey))||[String(o==null?void 0:o.listCode)];return Object.entries(l||{}).map(([w,S])=>k.includes(w)?S:[]).flat(1)},[o,l,u==null?void 0:u.panes]),p=yo(({allOptions:k,newVal:T})=>{var f;const w=((f=u==null?void 0:u.panes)==null?void 0:f.map(h=>h.tabKey))||[o==null?void 0:o.listCode];let S=[];return Object.entries(k||l||{}).some(([h,v])=>{if(w.includes(h))return v.some(_=>{if(T&&(T==null?void 0:T.length)>1)return T.includes(_.value)&&!S.includes(h)&&S.push(h),!1;{const R=_.value==((T==null?void 0:T[0])||t);return R&&(S=[h]),R}})}),S.filter(Boolean).join(",")}),g=F.useMemo(()=>{var T;const k=((T=u==null?void 0:u.panes)==null?void 0:T.map(w=>w.tabKey))||[o==null?void 0:o.listCode];return k.length==1?k[0]:p({}).split(",")[0]},[t,l,u==null?void 0:u.panes]),y=F.useMemo(()=>typeof t=="string"?t.split(","):t,[t]);return D.jsxs("div",{children:[D.jsx(ho,{...e,style:Object.assign({},e.style||{},{width:"100%"}),className:` ${e.className}`,value:y,filterOption:(k,T)=>T.label&&T.label.indexOf(k)>=0,showSearch:!0,disabled:n,options:m.map(k=>({...k,label:Sn.readPermission(k.label)?k.label:Y("sys.noPermission",{placeholder:"无权限"})})),allowClear:!0,optionLabelProp:"label",open:!1,onChange:k=>{["multiple","tags"].includes(e.mode)?r==null||r(k):k&&k instanceof Array?r==null||r(k[0]):r==null||r("")},tagRender:({label:k})=>Sn.readPermission(k)?D.jsx(Z.Tag,{color:"#0563B2",children:k}):D.jsx(pa,{}),onDropdownVisibleChange:c,onClear:()=>{["multiple","tags"].includes(e.mode)?r==null||r(""):r==null||r([])}}),D.jsx(Eq,{title:`${Y("project.tab.plan.transfer.title",{placeholder:"选择"})}${o.name}`,...Object.assign(Object.create(null),u),ref:i,attr:o,defaultActiveKey:g||((E=(x=u==null?void 0:u.panes)==null?void 0:x[0])==null?void 0:E.tabKey)||"",defaultValue:y,allListOptions:l})]})}),kq="_shuttle_box_1962p_1",Tq="_box_1962p_5",Oq="_search_1962p_8",jd={shuttle_box:kq,box:Tq,search:Oq};function xx(e){const t=F.useRef(!1),r=F.useRef({}),n=u=>{if(typeof e=="function"){const c=e();return!u&&(r.current=c),Object.assign(Object.create(null),c)}else{const c=e;return!u&&(r.current=c),Object.assign(Object.create(null),e)}},[a,i]=F.useState(n(!0));F.useEffect(()=>(typeof e=="function"?r.current=e():r.current=e,t.current=!1,()=>{t.current=!0}),[]);const o=u=>{if(!t.current)if(typeof u=="function"){const c=Object.assign(Object.create(null),u(a)||a);r.current=c,i(c)}else{const c=Object.assign(Object.create(null),r.current,u);r.current=c,i(c)}},l=()=>i(n());return vt.makeDestructurable({store:a,setStore:o,resetStore:l,latestStore:r},[a,o,l,r])}const rC=F.forwardRef((e,t)=>{var k,T,w,S;e.defaultValue&&(Array.isArray(e.defaultValue)?e.defaultValue:e.defaultValue);const r=e.rowKey||"id",n=!((k=e.attr)!=null&&k.allowMultiple),a=!!((T=e.attr)!=null&&T.required),{store:i,setStore:o,resetStore:l,latestStore:u}=xx(()=>({visible:!1,search:"",sorters:"",filters:"",loading:!1,dataSource:[],selectedRows:[],callback:()=>{}})),c=xx(()=>({pageNo:1,pageSize:50,total:0})),m=async f=>{o({loading:!0});try{const{data:h,total:v}=await e.getDataSource({search:u.current.search,sorters:u.current.sorters,filters:u.current.filters,...c.latestStore.current,record:e.record});o(f?{dataSource:[...i.dataSource,...h]}:{dataSource:h}),c.setStore({total:v})}catch(h){console.log(h)}finally{o({loading:!1})}},p=F.useMemo(()=>i.selectedRows.map(f=>f[r]),[i.selectedRows]);F.useEffect(()=>{i.visible?m().finally(()=>{}):(l(),c.resetStore())},[i.visible]);const g=yo(async f=>{var h,v,_;if(a&&!f&&!i.selectedRows.length){Z.message.error(Y("project.attr.edit.roleOrOwner.msg",{placeholder:"请选择{name}",variate:{name:(h=e.attr)==null?void 0:h.name}}));return}(_=(v=u.current.callback).ok)==null||_.call(v,f?[f[r]]:p),o({visible:!1})});F.useImperativeHandle(t,()=>({open(f){o({callback:f,visible:!0})},submit:g,dataSource:i.dataSource,loading:i.loading}),[i.dataSource,i.loading]);const y=()=>{m()},x={onSelectAll(f,h){n||o({selectedRows:h})},onSelect(f,h){n?h?o({selectedRows:[f]}):a||o({selectedRows:[]}):o(h?{selectedRows:[...i.selectedRows,f]}:{selectedRows:i.selectedRows.filter(v=>v[r]!=f[r])})},getCheckboxProps:f=>({disabled:!1}),selectedRowKeys:p,columnWidth:13},E=F.useMemo(()=>e.generateColumns(u),[e.generateColumns]);return F.useEffect(()=>{const f=ie.debounce(h=>{(h.keyCode||h.which)==13&&u.current.visible&&h.target.dataset.search!="true"&&g()},200);return window.addEventListener("keyup",f),()=>{window.removeEventListener("keyup",f)}},[]),D.jsx(To,{className:jd.shuttle_box,modalTitle:e.title,maskClosable:!1,destroyOnClose:!0,okText:Y("project.tab.plan.details.window.save",{placeholder:"保存"}),styleUnify:!0,width:e.modalWidth||660,visible:i.visible,mask:!1,onOk:g,onCancel:()=>{var f,h;o({visible:!1}),(h=(f=u.current.callback).cancel)==null||h.call(f)},footer:null,children:D.jsx("div",{onScroll:f=>f.stopPropagation(),onScrollCapture:f=>f.stopPropagation(),children:D.jsx(Ls,{spinning:i.loading,children:D.jsxs("div",{className:jd.box,children:[D.jsx("div",{children:D.jsx("div",{className:`${jd.search}`,children:D.jsx(Z.Input.Search,{placeholder:Y("sys.prompt.enterName",{placeholder:"请输入姓名"}),enterButton:null,"data-search":!0,...e.searchProps,suffix:D.jsx("div",{className:jd.searchBtn,onClick:y,children:D.jsx(Ue,{type:"homesearch"})}),value:i.search,onChange:f=>o({search:f.target.value}),onSearch:y})})}),D.jsx(yh,{rowSelection:{type:"checkbox",fixed:!0,...x},columns:E,showSorterTooltip:!1,dataSource:i.dataSource,scroll:{x:(w=e.scroll)==null?void 0:w.x,y:((S=e.scroll)==null?void 0:S.y)||300},style:{height:"100%"},...c.store,size:"small",onScroll:f=>{c.setStore({pageNo:f}),m(!0)},onFilterAndSorter:(f,h)=>{o({sorters:f,filters:h}),m()},onRow:(f,...h)=>({onClick:()=>{console.log(f,h,"FFFFFFFFFFFF")},onDoubleClick:()=>{g(f)}})})]})})})})}),nC=F.forwardRef(({selectProps:e,value:t,onChange:r,readOnly:n},a)=>{const i=F.useRef(null),{attr:o,allListOptions:l,selectPopupProps:u,record:c}=e,m=yo(()=>{var y;(y=i.current)==null||y.open({ok:x=>{var E,k,T;["multiple","tags"].includes(e.mode)?(r==null||r(x),(E=e.onChange)==null||E.call(e,x,l[o.listCode]||[])):((k=e.onChange)==null||k.call(e,x[0],l[o.listCode]||[]),r==null||r(x[0])),(T=e.onBlur)==null||T.call(e)},cancel:()=>{var x;(x=e.onBlur)==null||x.call(e)}})});F.useImperativeHandle(a,()=>({focus:m}),[]);const p=F.useMemo(()=>ie.omit(e,["popoverProps","attr","allListOptions"]),[e]),g=F.useMemo(()=>typeof t=="string"?t.split(","):t,[t]);return D.jsxs("div",{children:[D.jsx(ho,{...p,style:Object.assign({},e.style||{},{width:"100%"}),className:` ${e.className}`,value:g,filterOption:(y,x)=>x.label&&x.label.indexOf(y)>=0,showSearch:!0,disabled:n,options:l[o.listCode]||[],allowClear:e.allowClear==null?!0:e.allowClear,optionLabelProp:"label",open:!1,loading:e.loading,onDropdownVisibleChange:m}),D.jsx(rC,{title:`${Y("project.tab.plan.transfer.title",{placeholder:"选择"})}${o.name}`,...Object.assign(Object.create(null),u),ref:i,attr:o,record:c,defaultValue:g})]})}),ag=[null,(e,t)=>(e=ve(`${e.format("YYYY-MM-DD")} 00:00:00`),t.valueOf()<e.valueOf()),(e,t)=>(e=ve(`${e.format("YYYY-MM-DD")} 23:59:59`),t.valueOf()<=e.valueOf()),(e,t)=>(e=ve(`${e.format("YYYY-MM-DD")} 23:59:59`),t.valueOf()>e.valueOf()),(e,t)=>(e=ve(`${e.format("YYYY-MM-DD")} 00:00:00`),t.valueOf()>=e.valueOf()),(e,t)=>t.valueOf()==e.valueOf()];function Aq(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=ve(n.date);return((i=ag[n.type])==null?void 0:i.call(ag,a,ve(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 Sx={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)"},Rq=F.forwardRef((e,t)=>{const r=F.useRef(),n=["Input","Input.TextArea","Number","CompositeForm"],a=["Select","Date","Cascader","TreeSelect","DatePicker.RangePicker","Image","File"],i=e.formprops.type;F.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 o=F.useMemo(()=>{var m,p;const u=g=>(g==null?void 0:g.closest(Fv))||document.body||document.documentElement;(m=e==null?void 0:e.formprops)!=null&&m.props&&!e.formprops.props.getPopupContainer&&(e.formprops.props.getPopupContainer=u);let c={getPopupContainer:u};return n.includes(i)?c={...e.formprops.props,size:"small",onPressEnter:()=>{e.onSave&&e.onSave()},onBlur:()=>{e.onSave&&e.onSave()}}:a.includes(i)&&(c={...e.formprops.props,size:"small",onChange:((p=e.formprops)==null?void 0:p.props.mode)==="multiple"||e.formprops.props.treeCheckable?void 0:e.onSave,onBlur:e.onSave,onClick:g=>{g.stopPropagation()}}),e.formprops.formatFormProps?e.formprops.formatFormProps(c,e.record,e.apicode):c},[e.record,e.formprops,e.onSave]),l=()=>{var c;let u={...o};if(e.apicode==="NewVersion")return u.options&&u.options[e.record.insId][0]&&!((c=u.options[e.record.insId][0])!=null&&c.value)||u.options&&!u.options[e.record.insId][0]?(u={...u,onPressEnter:()=>{e.onSave&&e.onSave()},onBlur:()=>{e.onSave&&e.onSave()},onChange:void 0},D.jsx(Z.Input,{ref:r,...u})):D.jsx(Z.Select,{ref:r,filterOption:(m,p)=>p.label&&p.label.indexOf(m)>=0,showSearch:!0,allowClear:!0,...ie.assign(u,{options:ie.uniqBy(u.options?u.options[e.record.insId]:[],"value").length===1?ie.uniqBy(u.options[e.record.insId],"value").map(m=>({label:m.label.replace(Y("sys.majorVersion",{placeholder:"大版本"}),"").replace(Y("sys.minorVersion",{placeholder:"小版本"}),""),value:m.value})):ie.uniqBy(u.options&&u.options[e.record.insId]?u.options[e.record.insId]:[],"value")})});switch(i){case"Input":return D.jsx(Z.Input,{ref:r,...u});case"DatePicker.RangePicker":return D.jsx(Z.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(g=>!g.noShow).map(g=>Fi.isChangeInstruction(g.itemcode)?{...g,disabled:g.sort<e.record.lifecycle.sort&&!["10007010","10007006","10007014"].includes(String(e.record.lifecycle.code))||!g.status}:Fi.isStatusChange(g.itemcode)?Fi.isFile(e.record.itemCode)?{...g,disabled:!g.status}:{...g,disabled:g.sort<=e.record.lifecycle.sort&&e.record.lifecycle.apicode!=="Obsolete"||!g.status||e.record.lifecycle.apicode==="Obsolete"&&g.apicode=="Obsolete"}:{...g,disabled:!g.status||g.code==10007022})),e.apicode==="ProblemVersion"&&u.options&&u.options[e.record.insId]&&(u.options[e.record.insId]=u.options[e.record.insId].filter(g=>g.value!="Draft").map(g=>({...g}))),e.apicode==="exchanger"&&u.options&&u.options[Sx[e.record.extension]]){const g=u.options[Sx[e.record.extension]].map(y=>({label:y,value:y}));return D.jsx(Z.Select,{ref:r,filterOption:(y,x)=>x.label&&x.label.indexOf(y)>=0,showSearch:!0,allowClear:!0,...u,options:g})}return D.jsx(Z.Select,{ref:r,filterOption:(g,y)=>y.label&&y.label.indexOf(g)>=0,showSearch:!0,allowClear:!0,...ie.assign(u,{options:ie.uniqBy(u.options?u.options[e.record.insId]:[],"value").length===1?ie.uniqBy(u.options[e.record.insId],"value").map(g=>({label:g.label.replace(Y("sys.majorVersion",{placeholder:"大版本"}),"").replace(Y("sys.minorVersion",{placeholder:"小版本"}),""),value:g.value})):ie.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(g=>g.value.indexOf("(")==-1).map(g=>({...g}))),D.jsx(Z.Select,{ref:r,filterOption:(g,y)=>y.label&&y.label.indexOf(g)>=0,showSearch:!0,allowClear:!0,...ie.assign(u,{options:u.options&&u.options[e.record.insId]?u.options[e.record.insId]:[]})});if(e.apicode==="NewStatus")return u.options.forEach(g=>{var y;!((y=e==null?void 0:e.record)!=null&&y.publishTime)&&(g.apicode==="Disable"||g.apicode==="Scrap")?g.disabled=!0:g.disabled=!1,(g.apicode==="Initial"||g.apicode==="Draft")&&(g.disabled=!0)}),D.jsx(Z.Select,{ref:r,filterOption:(g,y)=>y.label&&y.label.indexOf(g)>=0,showSearch:!0,allowClear:!0,...u});if(u!=null&&u.selectPopupProps)return D.jsx(nC,{ref:r,selectProps:{...u,record:e.record}});if(u!=null&&u.popoverTransfer||u!=null&&u.popoverTable)return D.jsx(tC,{ref:r,selectProps:u})}return D.jsx(Z.Select,{ref:r,filterOption:(g,y)=>y.label&&y.label.indexOf(g)>=0,showSearch:!0,allowClear:!0,...u});case"Cascader":return D.jsx(Z.Cascader,{ref:r,showSearch:{filter:(g,y)=>y.some(x=>x.label&&x.label.toLowerCase().indexOf(g.toLowerCase())>-1),matchInputWidth:!1},...u});case"Date":const m=e.record.forbiddenTime,p=m&&m[e.name];return D.jsx(Z.DatePicker,{ref:r,...u,disabledDate:p?g=>Aq(m[e.name],g):void 0});case"Number":return D.jsx(Z.InputNumber,{ref:r,...u});case"Input.TextArea":return D.jsx(Z.Input.TextArea,{ref:r,...u});case"TreeSelect":return D.jsx(Z.TreeSelect,{ref:r,...u});case"CompositeForm":return D.jsx(pc,{...u});default:return D.jsx(Z.Input,{ref:r,...u})}};return D.jsx(Z.Form.Item,{noStyle:!0,name:e.name,children:l()})}),Pq="_imgOuter_16ygq_1",Dq="_imgInner_16ygq_9",Cx={imgOuter:Pq,imgInner:Dq},aC=e=>D.jsx(Z.Image,{...e,src:e.src}),v1=e=>D.jsx("div",{className:Cx.imgOuter,children:D.jsx(aC,{preview:!1,src:e.src,className:Cx.imgInner,placeholder:D.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:D.jsx(Ue,{className:"rotate",style:{cursor:"pointer",color:"#0563b2"},type:"loading"})}),height:e.height||"46px",width:e.width||"46px"})}),rt=class rt{static avoid0TypeConvert(t){return vt.avoid0TypeConvert(t)}static isEqual(t,r){function n(a){return ve.isMoment(a)?vt.momentToRawData(a):a??""}return t=n(t),r=n(r),ie.isNil(t)&&ie.isNil(r)||ie.isNaN(t)&&ie.isNaN(r)?!0:t instanceof Object?ie.isEqual(t,r):this.avoid0TypeConvert(t)==this.avoid0TypeConvert(r)}static getCellSignState(t,r){const n=t.optType==="update"||t.optType==="replace",a=t.inProcess&&!ie.isNil(t.inProcess[r])&&!ie.isNil(t.inProcess)&&rt.isEqual(t.inProcess[r],t[r]),i=t.newVal&&!ie.isNil(t.newVal[r])&&!ie.isNil(t.newVal)&&rt.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):[],o=a.map(u=>{const c=t.inProcess[u],m=t[u],p=rt.isEqual(c,m);return r==null||r("inProcess",u,p,c,m),p}).some(u=>!u),l=i.map(u=>{const c=t.newVal[u],m=t[u],p=rt.isEqual(c,m);return r==null||r("newVal",u,p,c,m),p}).some(u=>!u);return{hasOptType:n,hasInProcess:o,hasNewValue:l}}static isEmptyValue(t){return typeof t=="number"?!1:ie.isEmpty(t)}static sortAndFilterTable(t){const{tableColumns:r,originTableColumns:n,sortersField:a,tabInfo:i={}}=t;let{sorters:o,filters:l}=t;const u=Fi.isUser(i.itemCode||""),c=i.tab==="Delegate";if(u&&c&&l){const m=r.filter(g=>["ChangeCategory"].includes(g.apicode)).map(g=>g.dataIndex),p=ie.map(l.split("~!~"),g=>ie.split(g,"-")[0]);ie.includes(p,m[0])?l.split("~!~").map(g=>{if(m.includes(g.split("-")[0])){const y=g.split("-")[1].split(",");y&&Array.isArray(y)&&(ie.remove(y,x=>x==""||x==null),r.map(x=>(x.apicode==="Category"&&ie.forEach(x.formitem.props.options,E=>{ie.includes(y,E.itemCode)?E.isHidden=!1:E.isHidden=!0,y.length==0&&(E.isHidden=!1)}),x)))}}):r.map(g=>(g.apicode==="Category"&&ie.forEach(g.formitem.props.options,y=>{y.isHidden=!1}),g))}if(i.tab!=="History"){const m=r.filter(g=>g.dataFrom==="1").map(g=>g.dataIndex),p=r.filter(g=>g.dataFrom==="0"||g.dataFrom==="2").map(g=>g.dataIndex);if(o&&Object.values(FIX_INS_TAbTABLE_COLUMNMAP).includes(o.split("-")[0])){const g=rt.getFixAttrFilterOrSortInfo({filterOrSort:o,attrs:n||r.map(y=>y.attr)});o=(g==null?void 0:g.value)||o}else m.includes(o.split("-")[0])?o=o?`attributes.${o}`:"":p.includes(o.split("-")[0])&&(o=o?`current.${o}`:"");if(l){const g=r.filter(y=>["OldVersion"].includes(y.apicode)).map(y=>y.dataIndex);l=l.split("~!~").map(y=>{if(console.log(y,"item"),g.includes(y.split("-")[0]))return`current.${y.split("-")[0]}-${y.split("-")[1]===Y("sys.label.draft",{placeholder:"草稿"})?"Draft":`${y.split("-")[1]} `}`;if(Object.values(FIX_INS_TAbTABLE_COLUMNMAP).includes(y.split("-")[0])){const x=rt.getFixAttrFilterOrSortInfo({filterOrSort:y,attrs:n||r.map(E=>E.attr)});return(x==null?void 0:x.value)||l}if(m.includes(y.split("-")[0]))return y?`attributes.${y}`:"";if(p.includes(y.split("-")[0]))return y?`current.${y}`:""}).join("~!~")}}if(i.tab==="VersionRecord"&&n){const m=vt.transformArrayToMap(n,"apicode","id");o=o.replace("insVersionOrder",`attributes.${m.Revision}`),l=l.replace("insVersionOrder",`attributes.${m.Revision}`)}return{sorters:o,filters:l,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"),o=t.querySelector(".frontend-table-body").querySelector("colgroup");let l=null;return i&&(l=new MutationObserver(async(c,m)=>{const[p]=c;if(p.type=="attributes"&&p.attributeName=="style"&&!i.inhibit&&!ie.isNil(r)){i.inhibit=!0;const g=r;if(g!=i.offsetWidth){const y=Number(g)-i.offsetWidth,x=a.children.length-2,E=ie.round(y/x,2);Array.from(a.children,(k,T)=>{const w=o.children[T];if(k==i)k.setAttribute("style",`width:${g}px;max-width:${g}px;`),w.setAttribute("style",`width:${g}px;max-width:${g}px;`);else if(T!=a.children.length-1){const S=k.style.width.replace("px","");k.setAttribute("style",`width:${Number(S)+E}px;`),w.setAttribute("style",`width:${Number(S)}px;`)}})}}else i.inhibit=!1}),l.observe(i,{attributeFilter:["style"]})),()=>{l==null||l.disconnect(),l=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[o]=Object.entries(FIX_INS_TAbTABLE_COLUMNMAP).find(([l,u])=>n==u)||[];if(o){const l=vt.getAttrOf(r,o);if(l){l.apicode==="Version"&&(a=a===Y("sys.label.draft",{placeholder:"草稿"})?"Draft":`${a} `);const u=As.getAttributesMapId(l),c=As.isQuoteAttr(l)?"attributes":"current";return{apicode:o,id:u,attr:l,filterOrSortValue:a,prefix:c,value:`${c}.${u}-${a}`}}}}}};Tt(rt,"getTrulyHighlight",({formitem:t,highlight:r})=>{const n=["Input","Input.TextArea","Select","SelectTransfer","Date","Cascader","TreeSelect","Number"],i=(()=>{var l;return r&&r[0]?ie.isArray(r[0])&&t?(l=t.props)!=null&&l.treeCheckable||t.props.mode==="multiple"?rt.renderReadonlyItem({value:r[0],formitem:t}).split(","):rt.renderReadonlyItem({value:r[0],formitem:t}):ve.isMoment(r[0])?[ve(r[0]).format("YYYY-MM-DD")]:r:[]})()||[],o=n.includes(t==null?void 0:t.type)||!t;return{trulyHighlight:o?i:r||[],needTransform:o}}),Tt(rt,"wrapperHighLight",({highlight:t,formitem:r,value:n,originValue:a})=>{if(Sn.isMosaic(a))return D.jsx(pa,{});const{trulyHighlight:i,needTransform:o}=rt.getTrulyHighlight({highlight:t,formitem:r});return o?D.jsx(Mi,{highlight:i,value:n}):n}),Tt(rt,"renderCacheCell",(t,r,n,a,i)=>{if(t.optType==="update"||t.optType==="replace"){if(t.newVal&&(t.newVal[r]||!ie.isNil(t.newVal[r])))if(rt.isEqual(t.newVal[r],t[r])){if(rt.isEqual(t.newVal[r],t[r]))return D.jsx("div",{style:{width:"100%"},children:D.jsx("div",{className:zn.updated_style,children:a?a({value:t.newVal[r],formitem:n,row:t.newVal}):rt.wrapperHighLight({originValue:t.newVal[r],value:rt.renderReadonlyItem({value:t.newVal[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})})})}else return D.jsxs("div",{style:{width:"100%"},children:[D.jsx("div",{className:zn.updated_style,children:a?a({value:t.newVal[r],formitem:n,row:t.newVal}):rt.wrapperHighLight({originValue:t.newVal[r],value:rt.renderReadonlyItem({value:t.newVal[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})}),D.jsx("div",{className:zn.update_style,children:a?a({value:t[r],formitem:n,row:t}):rt.wrapperHighLight({originValue:t[r],value:rt.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&&!rt.isEqual(t.inProcess[r],t[r]))return D.jsxs("div",{style:{width:"100%"},children:[D.jsx("div",{className:zn.updated_redline_style,children:a?a({value:t.inProcess[r],formitem:n,row:t.inProcess}):rt.wrapperHighLight({originValue:t.inProcess[r],value:rt.renderReadonlyItem({value:t.inProcess[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})}),D.jsx("div",{className:zn.update_style,children:a?a({value:t[r],formitem:n,row:t}):rt.wrapperHighLight({originValue:t[r],value:rt.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&&!rt.isEqual(t.newVal[r],t[r])?D.jsxs("div",{style:{width:"100%"},children:[D.jsx("div",{className:zn.updated_style,children:a?a({value:t.newVal[r],formitem:n,row:t.newVal}):rt.wrapperHighLight({originValue:t.newVal[r],value:rt.renderReadonlyItem({value:t.newVal[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})}),D.jsx("div",{className:zn.update_style,children:a?a({value:t[r],formitem:n,row:t}):rt.wrapperHighLight({originValue:t[r],value:rt.renderReadonlyItem({value:t[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})})]}):D.jsx("div",{style:{width:"100%",overflow:"hidden",textOverflow:"ellipsis"},children:a?a({value:t[r],formitem:n,row:t}):rt.wrapperHighLight({originValue:t[r],value:rt.renderReadonlyItem({value:t[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})})}),Tt(rt,"renderReadonlyItem",({apicode:t,formitem:r,value:n,record:a})=>{var i,o,l,u,c,m;if(!r)return n;if(!r.type)return"";if(["Select","Cascader"].includes(r.type))return r.props.mode==="multiple"?ie.isArray(n)&&n instanceof Array?n.map(p=>vt.getLabelInOptions({value:p,options:(r==null?void 0:r.props.options)||[]})).join(","):n&&typeof n=="string"?n.split(",").map(p=>vt.getLabelInOptions({value:p,options:(r==null?void 0:r.props.options)||[]})).join(","):"":vt.getLabelInOptions({value:n,options:(r==null?void 0:r.props.options)||[]});if(["TreeSelect"].includes(r.type))return(i=r.props)!=null&&i.treeCheckable&&ie.isArray(n)&&n instanceof Array?n.map(p=>vt.getLabelInOptions({value:typeof p!="string"?p.value:p,options:(r==null?void 0:r.props.treeData)||[]})).join(","):vt.getLabelInOptions({value:n,options:(r==null?void 0:r.props.treeData)||[]});if(["Date"].includes(r.type))if(n)if(ve.isMoment(n)){const g=n.creationData();return n.format(((o=r==null?void 0:r.props)==null?void 0:o.format)??g.format)}else return ve(n).format(((l=r==null?void 0:r.props)==null?void 0:l.format)??"YYYY-MM-DD HH:mm:ss");else return"";else return["Image"].includes(r.type)?n&&!ie.isArray(n)?D.jsx(Z.Popover,{placement:"right",content:D.jsx("div",{style:{height:"60px",width:"60px"},children:n?D.jsx(v1,{src:`/api${n}`}):D.jsx(D.Fragment,{})}),trigger:"hover",children:D.jsx("div",{style:{height:"26px",width:"26px"},children:n?D.jsx(v1,{src:`/api${n}`}):D.jsx(D.Fragment,{})})}):"":["CompositeForm"].includes(r.type)?n&&typeof n=="string"?(u=String(n))!=null&&u.includes("~%~")?`${n.split("~%~")[0]||""}${((m=ie.find((c=r.props)==null?void 0:c.options,{id:n.split("~%~")[1]}))==null?void 0:m.name)||""}`:n:"":r.isbomtag&&!ie.isArray(n)&&!(n instanceof Array)?n?vt.renderBomTag(n):"":ie.isArray(n)&&n instanceof Array?n.join(","):n??""}),Tt(rt,"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}`}),Tt(rt,"renderVersionColumn",(t,r)=>Sn.isMosaic(t)?D.jsx(pa,{}):t==="Draft"||ie.isString(t)&&t.split(" ")[0]==="Draft"?D.jsx(Mi,{highlight:r||[],value:Y("sys.label.draft",{placeholder:"草稿"})}):D.jsx(Mi,{highlight:r||[],value:ie.isString(t)?t.replace(/[()]/g,"").split(" ")[0]:""}));let Za=rt;const Mq=({title:e,editable:t,children:r,dataIndex:n,record:a,handleSave:i,handleCellSelected:o,handleFill:l,handleDoubleClick:u,renderCacheCell:c,loading:m,required:p,formitem:g,rowKey:y,render:x,tableKey:E,menuId:k,highlight:T,isVersion:w,isUser:S,preRender:f,apicode:h,canselectcell:v,selectedCell:_,fillContextMenu:R,setInitialState:C,...P})=>{var Le,he,qe;const M=F.useContext(lc),[q,L]=F.useState(!1),N=F.useContext(oC),j=F.useRef(null),O=["Input","Input.TextArea","Number"];v&&_&&(_==null?void 0:_.dataIndex)===n&&(_==null?void 0:_.record[y])==a[y]&&(_==null?void 0:_.tableKey)==E&&(P.style={...P.style,background:"#ddeffe"}),F.useEffect(()=>{var oe,De;q?(oe=j.current)==null||oe.focusFormItem():(De=j.current)==null||De.blurFormItem()},[q]);const I=oe=>{for(;oe&&oe.nodeName!=="TR";)oe=oe.parentNode;return oe},z=async(oe,De)=>{var Et,Fe,We;const Je=()=>{if(!(!e&&!n)&&De){const Ne=new MouseEvent("dblclick",{bubbles:!0,cancelable:!1});I(De==null?void 0:De.target)&&I(De==null?void 0:De.target).dispatchEvent(Ne)}};if(g&&g.props&&g.props.disabled||!g||g.props&&!g.props){Je();return}if(oe?u&&await u(a):!0){if(await N.validateFields(),oe){let Ne=a.newVal&&!ie.isNil(a.newVal[n])?a.newVal[n]:a.inProcess&&!ie.isNil(a.inProcess[n])?a.inProcess[n]:a[n];if((g==null?void 0:g.type)==="Date"){const Oe=(Et=g.props)==null?void 0:Et.format;Ne=Ne?ve(Ne,typeof Oe=="string"?Oe:"YYYY-MM-DD HH:mm:ss"):null}((g==null?void 0:g.type)==="TreeSelect"&&((Fe=g==null?void 0:g.props)!=null&&Fe.treeCheckable)||(g==null?void 0:g.type)==="Select"&&((We=g==null?void 0:g.props)==null?void 0:We.mode)==="multiple")&&(Ne==""?Ne=[]:typeof Ne=="string"&&(Ne=Ne.split(","))),N.setFieldsValue({[n]:Ne})}L(!q)}else Je()},B=async()=>{try{const oe=await N.validateFields();z(),Object.keys(oe).forEach(De=>{(oe[De]===null||oe[De]===void 0)&&(oe[De]=""),typeof oe[De]=="string"&&(oe[De]=oe[De].trim())}),i({...a,...oe})}catch{}},H=(oe,De)=>c||D.jsx("div",{className:zn.edit_cell,children:D.jsx(Mi,{value:Za.renderReadonlyItem({value:oe[De],formitem:g}),highlight:le})}),{show:U}=oq({id:k}),J=()=>{v&&(o(),C&&C(oe=>({...oe,selectedCell:{dataIndex:n,record:a,tableKey:E}})))},re=oe=>{if(n){if(J(),oe.preventDefault(),g&&g.props&&g.props.disabled||!g||g.props&&!g.props)return;U(oe,{props:{key:{dataIndex:n,record:a}}})}};let ne=r;const se=a?a[n]:"",ce=F.Children.map(r,oe=>{var De;if(F.isValidElement(oe)){const Je=(De=oe==null?void 0:oe.props)==null?void 0:De.children;return!Je||!Array.isArray(Je)?null:Je.some(Et=>{const Fe=Et==null?void 0:Et.props;return Fe&&typeof Fe.className=="string"?Fe.className.includes("frontend-table-row-indent"):!1})?Je:null}else return null});if(!Sn.readPermission(se))return D.jsxs("td",{...P,children:[ce,D.jsx(pa,{inLine:!0})]});const{trulyHighlight:le}=Za.getTrulyHighlight({highlight:T,formitem:g});if(S){const oe=(M==null?void 0:M.overrideLinkCom)||"a";ne=D.jsx(oe,{userId:a[n],id:a[n],record:a,content:Za.renderReadonlyItem({value:a[n],formitem:g}),highlight:le})}else if(t){if(g.type==="Date"){const oe=(Le=g.props)==null?void 0:Le.format,De=typeof oe=="string";let Je,Ct;if(ve.isMoment(a[n])){const Et=a[n].creationData();Je=Et==null?void 0:Et.input,Ct=Et==null?void 0:Et.format}a[n]=a[n]?ve(Je||a[n],De?oe:Ct||"YYYY-MM-DD HH:mm:ss"):null}if(((he=g.props)!=null&&he.treeCheckable||((qe=g.props)==null?void 0:qe.mode)==="multiple")&&typeof a[n]=="string"&&(a[n]=a[n]?a[n].split(","):[]),q)ne=D.jsx("div",{onDoubleClick:oe=>{oe.stopPropagation()},children:D.jsx(Z.Form.Item,{validateTrigger:O.includes(g.type)?"blur":"onChange",style:{margin:0},name:n,children:D.jsx(Rq,{name:n,ref:j,onSave:()=>B(),formprops:g,record:a,apicode:h})})});else if(!x){let oe=H(a,n);ne=D.jsxs("div",{onContextMenu:R===!1?void 0:re,title:a.newVal?Za.renderReadonlyItem({value:a.newVal[n],formitem:g}):Za.renderReadonlyItem({value:a[n],formitem:g}),className:"editable-cell-value-wrap",style:{paddingRight:24},children:[ce,oe]})}}else if(n&&!x)return w?D.jsx("td",{...P,title:a&&a[n]?a[n]==="Draft"?Y("sys.label.draft",{placeholder:"草稿"}):a[n]:"",onClick:J,children:D.jsx(Mi,{value:a&&a[n]?a[n]==="Draft"?Y("sys.label.draft",{placeholder:"草稿"}):a[n]:"",highlight:le})}):D.jsx("td",{...P,title:a&&a[n]?a[n]:"",onClick:J,children:D.jsx(Mi,{value:a?ie.isNil(a[n])?"":a[n]:"",highlight:le})});const ye=ne==null?void 0:ne.toString(),we=Array.isArray(ne)&&ne[0]===void 0,Ee=ye!=null&&ye.includes("[object ")?void 0:we?ye==null?void 0:ye.replace(/^\,/,""):ye;return D.jsx("td",{...P,onDoubleClick:oe=>{oe.stopPropagation(),z(!0,oe)},onClick:()=>{n&&J()},children:D.jsx("div",{title:Ee,style:{width:"100%",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},children:ne})})},Fq=()=>{function e(){return((1+Math.random())*65536|0).toString(16).substring(1)}return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()},Nq=e=>D.jsxs(hq,{id:e.menuId,children:[D.jsx(wx,{onClick:t=>{e.onFill&&e.onFill("up",t.props.key)},children:Y("sys.prompt.fillUp",{placeholder:"向上填充"})}),D.jsx(wx,{onClick:t=>{e.onFill&&e.onFill("down",t.props.key)},children:Y("sys.prompt.fillDown",{placeholder:"向下填充"})})]}),Iq=e=>{const[t,r]=F.useState({}),[n,a]=F.useState({}),i=F.useRef(null),{Option:o}=Z.Select,l=(g,y)=>{r(g),a(y)};return{getColumnSearchProps:F.useCallback((g,y)=>{const x=()=>{var w,S;return typeof(y==null?void 0:y.title)=="string"?y==null?void 0:y.title:(S=(w=y==null?void 0:y.search)==null?void 0:w.props)==null?void 0:S.placeholder},E=(w,S,f)=>{S()},k=(w,S)=>{w(),S()},T=(w,S,f)=>{var _,R;const h={size:"small",onChange:C=>{C&&C.target?w(C.target.value?[C.target.value]:[]):w(C?[C]:[])},style:{marginBottom:8,display:"block"}},v=D.jsx(Z.Input,{size:"small",ref:i,placeholder:Y("project.create.attr.verify.scheduledDate.input",{placeholder:"请输入{content}",variate:{content:x()}}),value:S[0],onPressEnter:()=>E(S,f),...ie.omit(h,["size"])});if(y.search)switch(y.search.type){case"Input":return v;case"Select":let C=(R=(_=y==null?void 0:y.search)==null?void 0:_.props)==null?void 0:R.options;return y.apicode==="ProblemVersion"&&(C=ie.uniqBy(ie.flatten(Object.values(C||{})),"value")||[],C=C.map(P=>({label:P.label==="Draft"?Y("sys.label.draft",{placeholder:"草稿"}):P.label,value:P.value}))),C=(C||[]).filter(P=>Sn.readPermission(P.label)),D.jsx(Z.Select,{size:"small",onKeyUp:P=>{(P.keyCode===13||P.charCode==13)&&E(S,f)},ref:i,mode:"multiple",placeholder:`${Y("sys.label.selectOption",{placeholder:"请选择"})} ${x()}`,value:S[0],filterOption:(P,M)=>M.label&&M.label.indexOf(P)>=0,...ie.omit(h,["size"]),children:(C||[]).map(P=>{if(!P.isHidden)return F.createElement(o,{...P,value:P.value,disabled:P.disabled,key:P.value,label:P.label},D.jsx("div",{title:P.label,style:{width:"100%",overflow:"hidden",textOverflow:"ellipsis"},children:P.label}))})});case"Date":return D.jsx(Z.DatePicker,{size:"small",value:S[0],...ie.omit(h,["size"])});case"CompositeForm":return D.jsx("div",{className:"compositeFormClass",children:D.jsx(pc,{...y.formitem.props,valueType:y.valueType,value:S[0],size:"small",...ie.omit(h,["size"])})})}else return v};return y.search?{filterIcon:w=>D.jsx(gs,{style:{color:w?"#0563B2":void 0}}),filterDropdown:({setSelectedKeys:w,selectedKeys:S,confirm:f,clearFilters:h})=>D.jsxs("div",{style:{padding:8},children:[D.jsx("div",{style:{marginBottom:"5px"},children:T(w,S,f)}),D.jsxs(Z.Space,{children:[D.jsx(Z.Button,{type:"primary",onClick:()=>E(S,f),icon:D.jsx(gs,{}),size:"small",style:{width:90},children:Y("sys.filter",{placeholder:"筛选"})}),D.jsx(Z.Button,{onClick:()=>k(h,f),size:"small",style:{width:90},children:Y("sys.action.reset",{placeholder:"重置"})})]})]}),onFilterDropdownVisibleChange:w=>{w&&(y.search.type==="Input"||y.search.type==="Select")&&setTimeout(()=>{var S;return(S=i==null?void 0:i.current)==null?void 0:S.focus()},100)}}:{}},[]),setTableFiltered:g=>{l(g.sort(t),g.screen(n))},clearFilters:g=>{l({},{}),e&&e("","","",{},{isFooterRefresh:g==null?void 0:g.isFooterRefresh})},onFiltersChange:(g,y,x,E)=>{a(y),r(x),l(x,y);let k="",T="";ie.isArray(x)?x&&x.length&&(k=x.map(S=>`${S.field}-${S.order}`).join(",")):x.field&&x.order&&(k=`${x.field}-${x.order==="ascend"?"asc":"desc"}`);const w=S=>S.map(f=>Array.isArray(f)?f.join(","):ve.isMoment(f)?f.format("YYYY-MM-DD"):f);T=ie.remove(Object.keys(y).map(S=>y[S]&&typeof y[S][0]=="string"||typeof y[S]!="string"&&y[S]&&y[S][0]?`${S}-${w(y[S]||[]).join(",")}`:null),S=>S!==null).join("~!~"),e&&e(k,T,x.field,y)},sortInfo:t,filterInfo:n}},Lq=e=>{var o,l;const t=((o=e.dataSource)==null?void 0:o.length)||0,r=e.total||0,n=e.rowSelection&&e.rowSelection.selectedRowKeys?(l=e.rowSelection.selectedRowKeys)==null?void 0:l.length:0,a={overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},i=D.jsx(Ue,{type:"update",isBackend:!0,style:{fontSize:"12px",marginLeft:"8px",color:"#999999"},onClick:()=>{e.clearFilters&&e.clearFilters({isFooterRefresh:!0})}});return e.hideFooter?D.jsx(D.Fragment,{}):D.jsxs("div",{className:`${zn.table_footer} ${e.className||""}`,children:[e.hideTableCount?D.jsx("div",{}):e.customRender?e.customRender({tableDataLen:t,total:r,selectedLen:n,boxStyles:a,refreshNode:i}):D.jsxs("div",{style:a,children:[Y("project.tab.plan.criticalPath.window.total",{placeholder:"共"}),D.jsxs("span",{children:[" ",t,"/",r," "]}),Y("project.tab.plan.quantityDisplay.select",{placeholder:"条"}),","," ",Y("sys.selected",{placeholder:"已选"}),D.jsx("span",{children:` ${n} `}),Y("project.tab.plan.quantityDisplay.select",{placeholder:"条"}),i]}),e.enterFullscreen&&D.jsx("div",{children:D.jsx(Ue,{type:"a-front-fitscreen",style:{fontSize:"12px",color:"#999999"},isBackend:!0,onClick:()=>{e.enterFullscreen&&e.enterFullscreen()}})})]})},jq=(e,t,r,n,a,i,o)=>{var f;const[l,u]=F.useState(!1),[c,m]=F.useState(0),[p,g]=F.useState(e.columns||[]),[y,x]=F.useState(null),[E,k]=F.useState(null),T=h=>(v,{size:_})=>{v.stopImmediatePropagation();const R=[...p];R[h]={...R[h],width:_.width},g(R)};F.useEffect(()=>{g(e.columns)},[e.columns]);const w=Number(((f=e==null?void 0:e.scroll)==null?void 0:f.y)||i)+24;return{renderColumns:p?p.filter(h=>h).map((h,v)=>ie.extend({...h,sorter:h.sorter?{}:!1,required:h.editable?h.required:!1,sortOrder:t.field===h.dataIndex&&t.order,filteredValue:r?r[h.dataIndex]||[]:[],onHeaderCell:_=>({dataIndex:h.dataIndex,width:_.width,required:h.required,editable:h.editable,trulyHeight:w,tableKey:e.tableKey,formitem:h.formitem,onResize:T(v),onResizeOver:R=>{m(R.screenX),u(!0)},onResizeStop:R=>{console.log(R),u(!1)}}),onCell:_=>{var P,M;const R=((P=h==null?void 0:h.onCell)==null?void 0:P.call(h,_))||{},C=(typeof e.rowKey=="string"?e.rowKey:(M=e.rowKey)==null?void 0:M.call(e,_))||"id";return{record:_,className:`${h.className??""} ${h.dataIndex==E&&_[C]==y?zn.loading:""}`,editable:h.editable,isVersion:h.isVersion,isUser:h.isUser,apicode:h.apicode,dataIndex:h.dataIndex,title:h.title,formitem:h.formitem,required:h.required,canselectcell:e.canselectcell,rowKey:e.rowKey||"id",tableKey:e.tableKey,menuId:n,render:h.render,highlight:r[h.dataIndex],fillContextMenu:e.fillContextMenu,selectedCell:o,renderCacheCell:Za.renderCacheCell(_,h.dataIndex,h.formitem,void 0,{highlight:r[h.dataIndex]}),handleCellSelected:()=>{e.onSelectCell&&e.onSelectCell()},handleDoubleClick:q=>{if(e.onDoubleClick){const L=e.onDoubleClick(h,q);return L instanceof Promise&&(x(_[C]),k(h.dataIndex),L.finally(()=>{x(null),k(null)})),L}else return!0},handleSave:q=>{e.onSubmit&&e.onSubmit(q,h)},...R}}},a(h.dataIndex,h))):[]}},iC="INPUT_NAMESPACE",$q=(e,t,r,n)=>{const[a,i]=F.useState();function o(l){const u=l.toString(),c=u.indexOf(".");return c===-1?0:u.slice(c+1).length}return F.useEffect(()=>{async function l(u){var y,x,E,k,T,w,S,f,h,v;if(u.target instanceof HTMLInputElement&&((x=(y=u.target)==null?void 0:y.dataset)==null?void 0:x.type)!=iC||u.target instanceof HTMLTextAreaElement||!u.target.closest(`.${Fv}`)){console.log("is Input or TextArea or not Table");return}u.preventDefault();let c=(E=u.clipboardData)==null?void 0:E.getData("text");const m=await Promise.resolve().then(()=>require("./xlsx-DtQJwEPb.js"));if(c&&r&&n){var p=m.read(c,{type:"binary"}),g=p.SheetNames;const _=m.utils.sheet_to_json(p.Sheets[g[0]],{header:1,raw:!1,defval:"",blankrows:!0}),R=n.findIndex(M=>{var q,L,N;return M.dataIndex==r.dataIndex&&M.editable&&(((q=M.formitem)==null?void 0:q.type)=="Input"||((L=M.formitem)==null?void 0:L.type)=="Input.TextArea"||((N=M.formitem)==null?void 0:N.type)=="Number")});let C=n.findIndex((M,q)=>{var L,N,j;return q>R&&(!M.editable||!(((L=M.formitem)==null?void 0:L.type)=="Input"||((N=M.formitem)==null?void 0:N.type)=="Input.TextArea"||((j=M.formitem)==null?void 0:j.type)=="Number"))});C==-1&&(C=n.length);const P=n.slice(R,C);if(P.length>0){const M=_.map(q=>q.filter(L=>q.indexOf(L)<P.length))||[];for(let q=0;q<M.length;q++){const L=M[q]||[];for(let N=0;N<L.length;N++){const j=L[N],O=((k=P[N].formitem)==null?void 0:k.type)=="Number",I=(w=(T=P[N].formitem)==null?void 0:T.props)==null?void 0:w.precision,z=(f=(S=P[N].formitem)==null?void 0:S.props)==null?void 0:f.min,B=(v=(h=P[N].formitem)==null?void 0:h.props)==null?void 0:v.max;if(O){const H=ie.toNumber(j),U=H&&(z?H>=z:!0)&&(B?H<=B:!0)&&(ie.isNumber(I)&&I>0?o(H)<=I:!0);L[N]=U?H:void 0}}}i(M)}}}return document.addEventListener("paste",l),()=>{document.removeEventListener("paste",l)}},[r,n]),{pasteData:a}},zq=e=>`${e}Key`,ig=e=>e.keyCode==17?"ctrl":e.keyCode==18?"alt":e.keyCode==91?"meta":e.keyCode==16?"shift":e.key,Bq=(e,{shortcuts:t,namespace:r})=>{const n="+",a=(...l)=>`${e}+${l.join(n)}`,i=xn(t),o=xn(ie.fromPairs(i.current.map(([l,u])=>[a(...l),u])));F.useEffect(()=>{console.log("初始化 useShortcutKey");const l=()=>i.current.map(([y])=>y).flat(1),u=y=>{var x,E,k;(!r||((x=y.target)==null?void 0:x.id)==r)&&(c.push(ig(y)),(k=(E=o.current)[c.join(n)])==null||k.call(E,y))},c=[],m={},p=y=>{var x;if(!r||((x=y.target)==null?void 0:x.id)==r){const E=ig(y);y[zq(e)]&&!m[E]&&(m[E]=!0,l().includes(y.key)&&c.includes(e)&&y.preventDefault(),u(y))}},g=y=>{const x=ig(y);m[x]=!1,c.pop()};return window.addEventListener("keyup",g),window.addEventListener("keydown",p),()=>{window.removeEventListener("keyup",g),window.removeEventListener("keydown",p)}},[])},Hq=(e,t)=>{const[r,n]=F.useState(!0),{clipboard:a,dataSource:i=[],rowSelection:o}=e,{selectedRowKeys:l=[]}=o||{},{childKeyName:u="children",isMark:c=!0,initialState:m,setInitialState:p}=a||{},g=String(e.rowKey||"id"),[y,x]=F.useState(!1),E=()=>y&&l.length,k=h=>v=>{E()&&h(v)},T=async(h,v)=>{var R;const _=[];_.type="shear",_.namespace=t,v.forEach(C=>{vt.isDelTableRow(C)||_.push({...C,toShear:()=>C.shear=!0})}),vt.ArrayAttributeFlat(_,u,C=>{C.toShear||(C.shear=!0)}),(!h.onBeforeShear||await h.onBeforeShear(_))&&(_.forEach(C=>{C.toShear(),delete C.toShear}),console.log("剪切",_),p&&p(C=>({...C,clipboard:_})),h.setDataSource("shear",i),(R=h.onAfterShear)==null||R.call(h,_),_.length&&(_.onPasteCallback=async C=>{var L;const P=C==t,M=[...i],q=()=>{p&&p(N=>({...N,clipboard:[]})),[..._].reverse().forEach(N=>{const j=vt.getTreeRelationNoRecursion({data:M,lookup:O=>O[g]==N[g],childrenKey:u});c&&j.self.dataType!=="add"?(j.self.shear=!1,j.self.dataType="del",vt.ArrayAttributeFlat(j.self[u],u,O=>{O.toShear||(O.shear=!1,O.dataType="del")})):j.parent?j.parent[u].splice(j.index,1):M.splice(j.index,1)}),h.setDataSource("shear",M)};return!h.onBeforeDeleteShear||await h.onBeforeDeleteShear({isSameSpace:P,deletes:_})?(q(),(L=h.onAfterDeleteShear)==null||L.call(h,{isSameSpace:P,deletes:_}),Promise.resolve(M)):Promise.reject(Y("sys.operation.cutFailed",{placeholder:"剪切失败"}))}))},w=async(h,v)=>{var R;const _=[];_.type="copy",_.namespace=t,v.forEach(C=>{vt.isDelTableRow(C)||(C.shear=!1,vt.ArrayAttributeFlat(C[u],u,P=>{P.shear=!1}),_.push({...C}))}),(!h.onBeforeCopy||await h.onBeforeCopy(_))&&(console.log("复制",_),p&&p(C=>({...C,clipboard:_})),h.setDataSource("paste",i),(R=h.onAfterCopy)==null||R.call(h,_))},S=async(h,{pasteData:v,pasteTarget:_})=>{var C,P;const R=vt.ArrayAttributeFlat(v,u).every(M=>!_.includes(M[g]));if(console.log({isNonSelf:R}),_.length==1&&v.length&&R){const q=vt.ArrayAttributeFlat(i,u).find(N=>N[g]==_[0]),L=h.pasteInto||"child";if(!h.onBeforePaste||await h.onBeforePaste({target:q,rows:v,type:L}))try{const N=await((C=v.onPasteCallback)==null?void 0:C.call(v,t))||[...i],j=vt.getTreeRelationNoRecursion({data:N,lookup:O=>O[g]==q[g],childrenKey:u});if(c){const O=I=>I.map(z=>Object.assign({...z,shear:!1,dataType:"add",[g]:vt.generateUUID(),primitiveInsId:z.primitiveInsId||z[g]},z[u]?{[u]:O(z[u].filter(B=>!I.some(H=>H[g]==B[g]))||[])}:{}));v=O(v)}if(L=="child"){const O=j.self[u];j.self[u]=[...O,...v]}else j.parent?j.parent[u].splice(j.index+1,0,...v):N.splice(j.index+1,0,...v);h.setDataSource("paste",N),(P=h.onAfterPaste)==null||P.call(h,{target:q,type:L})}catch(N){console.error(N)}}};a&&Bq(vt.isMac()?"meta":"ctrl",{shortcuts:[[["x"],k(async()=>{const h=vt.ArrayAttributeFlat(i,u).filter(v=>l.includes(v[g]));console.log({shearList:h}),T(a,h)})],[["c"],k(async()=>{const h=vt.ArrayAttributeFlat(i,u).filter(v=>l.includes(v[g]));console.log({copyList:h}),w(a,h)})],[["v"],k(async()=>{const h=(m==null?void 0:m.clipboard)||[];S(a,{pasteData:h,pasteTarget:l})})]],namespace:t});const f=F.useRef(null);return F.useEffect(()=>{var h;r||((h=f.current)==null||h.focus(),x(!0))},[l.length,l[0]]),F.useEffect(()=>{n(!1)},[]),{namespace:t,isGainFocus:y,focus:()=>{var v;const h=document.querySelector(":focus");h instanceof HTMLInputElement||h instanceof HTMLTextAreaElement||(v=f.current)==null||v.focus()},shear:T,copy:w,paste:S,FocusDom:D.jsx("input",{ref:f,"data-type":iC,type:"text",id:t,onFocus:()=>x(!0),onBlur:()=>x(!1),readOnly:!0,style:{opacity:0,position:"fixed",left:"-100%",top:"-100%",zIndex:"-10"}})}},Uq=(e,t,r,n)=>{const[a,i]=F.useState();return F.useEffect(()=>{async function o(l){if(r){const u=l.clipboardData,c=r.dataIndex,m=r.record;let p=null;if(m.newVal&&Object.hasOwn(m.newVal,c)?p=m.newVal[c]:p=m[c]||null,p)try{u.setData("text/plain",p),i(p),l.preventDefault()}catch(g){console.error("Failed to write to clipboard: ",g)}}}return document.addEventListener("copy",o),()=>{document.removeEventListener("copy",o)}},[r,n]),{copyData:a}},oC=F.createContext(null),Fv="tableTopBox",yh=F.forwardRef((e,t)=>{var M;F.useImperativeHandle(t,()=>({scrollTo:q=>{i.current.scrollTo(q)},scrollXTo:q=>{if(a.current){const L=a.current.querySelector(".frontend-table-body");L&&(L.scrollLeft=q)}},clearFilters:m,setTableFiltered:y,clipboard:P}));const[r]=F.useState(vt.generateUUID()),n=F.useRef(null),a=F.useRef(null),i=F.useRef(null),[o]=Z.Form.useForm(),l=Fq(),{sortInfo:u,filterInfo:c,clearFilters:m,getColumnSearchProps:p,onFiltersChange:g,setTableFiltered:y}=Iq(e.onFilterAndSorter),[x,{toggleFullscreen:E,exitFullscreen:k}]=oS(a,{pageFullscreen:{zIndex:500}}),T=e.tableKey||r;F.useEffect(()=>{const q=L=>{L.key=="Escape"&&x&&k()};return addEventListener("keydown",q),()=>{removeEventListener("keydown",q)}});const w=KU({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||x),[S,f]=GU(()=>({scroll:{y:1e3},ref:i}),[]),h={header:{cell:eq},body:{cell:Mq}};F.useMemo(()=>f(h),[f]);const{renderColumns:v}=jq({...e,tableKey:T},u,c,l,p,w,e.selectedCell),{pasteData:_}=$q(a,e.dataSource,e.selectedCell,e.columns);F.useEffect(()=>{var q;if(_&&e.selectedCell){const L=e.dataSource||[],N=String(e.rowKey)||"id",j=L.findIndex(J=>{var re;return J[N]==((re=e.selectedCell)==null?void 0:re.record[N])}),O=e.columns.findIndex(J=>{var re;return J.dataIndex==((re=e.selectedCell)==null?void 0:re.dataIndex)});let I=((q=_[0])==null?void 0:q.length)||0,z=(_==null?void 0:_.length)||0;const B=e.columns.slice(O,O+I),H=L.slice(j,j+z);let U=[];_.forEach((J,re)=>{if(H.length>re){const ne={};J.forEach((se,ce)=>{B.length>ce&&(ne[B[ce].dataIndex]=se,ne[N]=H[re][N])}),U.push(ne)}}),e.onPaste&&e.onPaste(vt.transformArrayToMap(U,N))}},[_]);const{copyData:R}=Uq(a,e.dataSource,e.selectedCell,e.columns);F.useEffect(()=>{R&&e.selectedCell&&e.onCopy&&e.onCopy(R)},[R]);const{run:C}=WF(async q=>{const L=e.pageNo||1,N=e.pageSize||10,j=e.total||0;Math.abs(parseInt(q.target.scrollTop+q.target.clientHeight)-q.target.scrollHeight)<1.5&&!e.loading&&L*N<j&&e.onScroll&&e.onScroll(L+1)},{wait:400}),P=Hq(e,r);return D.jsxs("div",{ref:n,id:`table_key_${T}`,className:`${zn.main} ${Fv}`,style:{position:"relative",overflow:"hidden"},onClick:q=>P.focus(),onScrollCapture:q=>{q.target.scrollHeight!==24&&q.target.className==="frontend-table-body"&&(e.onBeforeScroll?e.onBeforeScroll()&&C(q):C(q))},children:[D.jsx(Nq,{menuId:l,...ie.pick(e,["onFill"])}),P.FocusDom,D.jsxs(Z.Form,{form:o,component:!1,children:[D.jsx(oC.Provider,{value:o,children:D.jsx(Z.Table,{className:Te(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:S,bordered:!0,...ie.omit(e,["columns","scroll","expandable","tableKey"]),tableKey:T,loading:{indicator:D.jsx(cc,{style:{fontSize:32},spin:!0}),spinning:!!e.loading},showSorterTooltip:!1,expandable:{indentSize:18,expandIcon:({expanded:q,onExpand:L,record:N,expandable:j})=>N.children&&N.children.length||N.hasChildren?q?D.jsx(A8,{className:"expand",onClick:O=>{L(N,O)}}):D.jsx(R8,{className:"expand",onClick:O=>{L(N,O)}}):(e.isTree||j!==void 0)&&D.jsx("span",{style:{float:"left",width:"15px",height:"1px"}}),...e.expandable},scroll:{y:w,scrollToFirstRowOnChange:!0,...ie.merge(e.scroll,{x:(M=e.scroll)==null?void 0:M.x})},columns:v,onChange:g})}),D.jsx(Lq,{...e,className:e.tableFooterClassName,clearFilters:m,enterFullscreen:e==null?void 0:e.toggleFullscreen,customRender:e.tableFooterDateRender})]})]})}),{Option:Jo}=Z.Select,sC=F.forwardRef((e,t)=>{const r=F.useRef("1848553711328477186"),[n,a]=F.useState([]),[i,o]=F.useState([]),[l,u]=F.useState([]),c=Br({pageNo:1,pageSize:50,total:0}),m=Br({sorter:"",filters:"",itemCodes:`${xi.material},${xi.document},${xi.file}`,initialItemCodes:""}),p=Br({loading:!1,searchValue:"",focus:!1,excludeIds:"",objectIds:"",columns:[{title:Y("sys.label.nameRe",{placeholder:"姓名"}),ellipsis:!0,dataIndex:"Name",sorter:!0,width:155},{title:Y("project.attr.owner.edit.window.email",{placeholder:"邮箱"}),ellipsis:!0,dataIndex:"Email",sorter:!0,width:155},{title:Y("sys.label.employeeID",{placeholder:"工号"}),ellipsis:!0,dataIndex:"EmpNo",sorter:!0,width:155}],conditionObject:[],sideChoice:0,columnsHighlight:[]});zs(()=>{var w;let T=[];for(let S of e.columns||p.columns)T.push({...S,render:!S.render&&((w=e.placeholderCode)!=null&&w.includes(S.dataIndex))?f=>D.jsx(Mi,{value:f,highlight:g.numberHighLight||[]}):S.render});p.columnsHighlight=T,e.isSelect&&e.allCategories?e.getItems().then(S=>{if(S.code==200){let f=[];for(let v of S.result)v.code!=10001019&&v.code!=10001017&&v.code!=10001018&&f.push({label:v.name,value:v.code});p.conditionObject=f;let h=ie.map(f,"value").join(",");m.itemCodes=h,m.initialItemCodes=ie.cloneDeep(h),x(!0)}}):x(!0)}),F.useEffect(()=>(e.enter&&!p.focus&&l.length>0?y():document.onkeydown=null,()=>{document.onkeydown=null}),[l,p.focus]),F.useImperativeHandle(t,()=>({getLoading:T=>{p.loading=T},backfill:T=>{u(T)}}));const g=Br({numberHighLight:[]}),y=()=>{document.onkeydown=function(T){var w=window.event||T,S=w.keyCode||w.which;if(S==13&&!p.loading){if(e.maxSelect&&l.length+(e.value||[]).length>e.maxSelect){Z.message.error(Y("sys.maxSelect",{placeholder:"至多选择{maxSelect}个",variate:{maxSelect:e.maxSelect}}));return}let f=l.length?ie.map(l,"id").join(","):"";e.onChange&&e.onChange(f),e.handleSubmit&&e.handleSubmit(l)}}},x=async(T=!1,w)=>{p.loading=!0;const{pageNo:S,pageSize:f}=c,{filters:h,sorter:v,itemCodes:_}=m;if({...e.params},p.searchValue&&(e.formate=="1"||e.formate=="2"?e.params.columns.split(",").map(M=>M+"-"+p.searchValue).join("~!~"):p.searchValue),!e.getUrlData){a([]),c.total=0,p.loading=!1;return}const{records:R,total:C}=await e.getUrlData({pageNo:S,pageSize:f,filters:h,sorter:v}),P=R||[];c.total=C,T?(a(P),o(ie.cloneDeep(P)),e.onInit&&e.onInit(P)):(a([...n,...P]),o(ie.cloneDeep([...n,...P])))},E=T=>{T=="0"?m.itemCodes=m.initialItemCodes:m.itemCodes=T,a([]),u([]),c.pageNo=1,p.searchValue="",x(!0,c.pageSize)},k=T=>{u([]),e.searchChange&&e.searchChange(T),p.searchValue=T,g.numberHighLight=T?[T]:[],c.pageNo=1,x(!0)};return D.jsx(To,{width:e.width,forceRender:!0,className:eg.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(l)},children:D.jsxs("div",{style:e.isBroadside?{display:"flex"}:{},children:[e.isBroadside&&D.jsx("div",{className:eg.sideBox,style:{paddingRight:e.isLibrary?"12px":"0px",minWidth:e.isLibrary?"110px":void 0,overflow:"hidden"},children:e.isLibrary?D.jsx(H4,{itemCode:xi.technology,onGetTreeFields:T=>{},onSelected:T=>{r.current=T.id,c.pageNo=1,x(!0)},outIsSelected:!1,getInstanceMenu:()=>{},getAttributeByTab:()=>{}}):[Y("sys.myCreated",{placeholder:"我创建的"}),Y("sys.label.all",{placeholder:"全部"})].map((T,w)=>D.jsx("div",{onClick:()=>{p.sideChoice=w,c.pageNo=1,x(!0)},style:{marginBottom:"12px",cursor:"pointer",color:w==p.sideChoice?"#0563b2":""},children:T},w))}),D.jsxs("div",{style:{width:(e.isBroadside,"100%"),overflow:"hidden"},children:[!e.noSearch&&D.jsx(Z.Form.Item,{rules:[{required:!1}],children:D.jsxs("div",{style:{display:"flex"},children:[e.isSelect&&D.jsxs(D.Fragment,{children:[e.allCategories&&p.conditionObject.length>0&&D.jsxs(Z.Select,{disabled:p.loading,defaultValue:"0",style:{width:120,marginRight:"10px"},onChange:T=>{E(T)},children:[D.jsx(Jo,{value:"0",children:Y("sys.label.all",{placeholder:"全部"})}),"(",p.conditionObject.map(T=>D.jsx(Jo,{value:T.value,children:T.label})),")"]}),!e.allCategories&&D.jsxs(Z.Select,{disabled:p.loading,defaultValue:"0",style:{width:120,marginRight:"10px"},onChange:T=>{E(T)},children:[D.jsx(Jo,{value:"0",children:Y("sys.label.all",{placeholder:"全部"})}),D.jsx(Jo,{value:xi.material,children:Y("sys.label.material",{placeholder:"物料"})}),D.jsx(Jo,{value:xi.document,children:Y("sys.document.document",{placeholder:"文档"})}),D.jsx(Jo,{value:xi.file,children:Y("sys.label.file",{placeholder:"文件"})})]})]}),D.jsx(Z.Input,{style:{width:240},onBlur:()=>{p.focus=!1},onFocus:()=>{p.focus=!0},allowClear:!0,value:p.searchValue,placeholder:e.placeholder||Y("sys.enterSearch",{placeholder:"请输入搜索内容"}),suffix:D.jsx(Ue,{type:"content-search",style:{color:"#BABABA"},onClick:()=>{k(p.searchValue)}}),onChange:T=>{p.searchValue=T.target.value,T.target.value||(u([]),e.searchChange&&e.searchChange(""),c.pageNo=1,g.numberHighLight=[],x(!0))},onPressEnter:T=>{k(T.target.value)}})]})}),e.isDownload&&D.jsxs("div",{style:{display:"flex",marginBottom:"12px"},children:[D.jsx(Ue,{disabled:!l.length,placement:!0,type:"rightbar-download",style:{marginRight:"5px",fontSize:"15px"},onDivClick:()=>{e.handleSubmit&&e.handleSubmit(l,"1")},children:Y("sys.label.download",{placeholder:"下载"})}),D.jsx("span",{style:{marginRight:"24px"}}),D.jsxs(Ue,{disabled:!l.length,placement:!0,type:"rightbar-download",style:{marginRight:"5px",fontSize:"15px"},onDivClick:()=>{e.handleSubmit&&e.handleSubmit(l,"2")},children:[Y("sys.label.download",{placeholder:"下载"}),"PDF"]})]}),D.jsx("div",{className:eg.tableFrame,style:{display:"flex"},children:D.jsx(yh,{onSelectCell:()=>{u([])},expandable:{expandIconColumnIndex:e.isLibrary?2:void 0},rowSelection:{columnWidth:15,fixed:"left",hideSelectAll:!e.isCheckbox,selectedRowKeys:l.map(T=>T.id),onChange:(T,w)=>{e.isCheckbox?u(w):w.length?u([w.pop()]):u([])},getCheckboxProps:T=>({disabled:T.number==="~#~"||!!(e.convertFun&&ie.includes(T.unique,"-"))})},onRow:T=>({onDoubleClick:()=>{if(T.number!=="~#~")if(l.length>1){if(e.maxSelect&&l.length+(e.value||[]).length>e.maxSelect){Z.message.error(Y("sys.maxSelect",{placeholder:"至多选择{maxSelect}个",variate:{maxSelect:e.maxSelect}}));return}e.onChange&&e.onChange(ie.map(l,"id").join(",")),e.handleSubmit&&e.handleSubmit(l)}else u([T]),e.onChange&&e.onChange(T.id),e.handleSubmit&&e.handleSubmit([T])}}),loading:p.loading,dataSource:n,columns:p.columnsHighlight,...c,scroll:{y:e.height||200},onScroll:T=>{c.pageNo=T,x()},onFilterAndSorter:(T,w,S)=>{if(u([]),e.isBuiltInSort)if(T){let f=ie.orderBy(n,[T.split("-")[0]],[T.split("-")[1]]);a(f)}else a(i);else{if(e.isUseRuleSort){const f=Za.sortAndFilterTable({sorters:T,filters:w,sortersField:S,tableColumns:e.columns});m.sorter=f.sorters,m.filters=f.filters}else m.sorter=T,m.filters=w;c.pageNo=1,x(!0)}}})})]})]})})}),qq="_selectFrameBox_mktv5_1",Wq={selectFrameBox:qq},uC=F.forwardRef((e,t)=>{var o;const[r,n]=F.useState(e.value);F.useEffect(()=>{n(e.value)},[e.value]);const a=Br({visible:!1,options:[],enter:!1});F.useEffect(()=>{e.options&&e.options.length&&(a.options=e.options)},[e.options]);const i=()=>{var m;const l=(m=e.params)==null?void 0:m.ids,u=l?l.join(","):"",c=e.isCheckbox?r&&r.join(","):r;return`${u}${c!=null&&c.length&&u?",":""}${c??""}`};return D.jsxs("div",{className:Wq.selectFrameBox,style:e.width?{width:e.width}:void 0,children:[e.disabled&&e.userLink?D.jsx("div",{children:(o=ie.filter(e.options,l=>l.id==r)[0])==null?void 0:o.Name}):D.jsxs("div",{style:{display:"flex",gap:"5px"},children:[D.jsx(Z.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||Y("sys.label.selectOption",{placeholder:"请选择"}),onClick:()=>{e.disabled||(a.visible=!0,a.enter=!0)},onChange:l=>{e.onChange&&e.onChange(l)},tagRender:l=>Sn.readPermission(l.label)?D.jsx(Z.Tag,{color:"blue",closable:!0,style:{borderRadius:"0",border:"none",fontSize:"12px",padding:"2px 7px"},closeIcon:D.jsx(Ue,{type:"close",style:{fontSize:"12px",cursor:"pointer"},onClick:()=>{const u=r.filter(c=>c!==l.value);n(u),e.onChange&&e.onChange(u)}}),children:l.label},l.value):D.jsx(pa,{})}),e.showButton?D.jsx(Z.Button,{onClick:()=>{a.visible=!0,a.enter=!0},style:{display:"flex",height:"32px",width:"32px",background:"#fafafa",alignItems:"center",justifyContent:"center"},children:D.jsx(Ue,{type:"content-search",style:{fontSize:"16px"}})}):D.jsx(D.Fragment,{})]}),a.visible&&D.jsx(sC,{visible:a.visible,title:e.title||Y("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||Y("sys.enterKeyword.enterKeyword",{placeholder:"请输入关键字"}),placeholderCode:e.placeholderCode||"",columns:e.columns,isCheckbox:e.isCheckbox,maxSelect:e.maxSelect,onChange:l=>{if(e.isCheckbox){let u=ie.compact(ie.concat(r,l.split(",")));e.onChange&&e.onChange(l?u:void 0)}else e.onChange&&e.onChange(l)},handleSubmit:l=>{e.isCheckbox?a.options=ie.concat(a.options,l):a.options=l,e.onSubmit&&e.onSubmit(a.options),a.visible=!1,a.enter=!1},onInit:l=>{a.options=l},onCancel:()=>{a.visible=!1,a.enter=!1}})]})}),Vq="_searchTextTips_daoe4_1",Yq={searchTextTips:Vq};function Gq({fetchOptions:e,debounceTimeout:t=500,...r}){const[n,a]=F.useState(!1),[i,o]=F.useState([]),l=F.useRef(0);F.useEffect(()=>{o(r.options)},[r.options]);const u=F.useMemo(()=>{const c=m=>{l.current+=1;const p=l.current;o([]),a(!0),e(m,r).then(g=>{p===l.current&&(o(g),a(!1))})};return ie.debounce(c,t)},[e,t]);return D.jsx(Z.Select,{...r,labelInValue:!0,showArrow:!0,filterOption:!1,onSearch:u,notFoundContent:n?D.jsx("div",{style:{textAlign:"center"},children:D.jsx(Z.Spin,{size:"small"})}):D.jsx(Z.Empty,{image:Z.Empty.PRESENTED_IMAGE_SIMPLE}),options:i,onBlur:()=>{o(r.options)},url:void 0,ischeckbox:void 0,dropdownRender:c=>D.jsxs(D.Fragment,{children:[c,D.jsx(Z.Divider,{style:{margin:"8px 0"}}),D.jsx("div",{className:Yq.searchTextTips,children:`${Y("sys.resultDisplayLimit",{placeholder:"结果只显示前{count}条",variate:{count:100}})},${Y("sys.input.enterExactQuery",{placeholder:"请输入参数精确查询"})}`})]})})}async function Ex(e,t){var i,o;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,ie.includes(t.url,"opendata"));let a;return(i=t.fieldNames)!=null&&i.label?a=ie.reject((o=r.result)==null?void 0:o.records,l=>{var u;return l[(u=t.fieldNames)==null?void 0:u.label]==="~#~"}):a=r.result.records,a}const Kq=F.forwardRef((e,t)=>{const[r,n]=F.useState(e.value),[a,i]=F.useState([]);return zs(async()=>{i(await Ex("",e))}),D.jsx(Gq,{...e,showSearch:!0,mode:e.ischeckbox?"multiple":void 0,value:r,fetchOptions:Ex,style:{width:"100%"},options:a,fieldNames:e.fieldNames?e.fieldNames:{label:"label",value:"value"}})}),Xq=e=>D.jsx(D.Fragment,{}),og=e=>D.jsx(Z.TreeSelect,{...e,showSearch:!0,treeNodeFilterProp:"label",getPopupContainer:t=>t.parentNode||document.body}),lC=F.forwardRef((e,t)=>{const r=F.useContext(lc),n=(r==null?void 0:r.formItemCom)||{},a=F.useCallback((l,u)=>{var g,y;const{type:c,cannotread:m,props:p}=l;if(m!=="0"){let x=!1;if(typeof e.readOnly=="boolean"?x=e.readOnly:typeof e.readOnly=="function"&&(x=e.readOnly()),c==="Input")return;if(c==="Select")return p!=null&&p.loading?(u="",D.jsx(Z.Form.Item,{noStyle:!0,children:D.jsx(ho,{...p,options:[],loading:!0,value:((y=(g=e==null?void 0:e.content)==null?void 0:g.props)==null?void 0:y.mode)==="multiple"?[]:"",disabled:x||(p==null?void 0:p.disabled)})})):p!=null&&p.options&&p.options.length?typeof u=="string"&&u.split(",").length>1&&(p==null?void 0:p.mode)!=="multiple"?e.readOnly?D.jsx("span",{style:{paddingLeft:"5px"},children:u.split(",").map(E=>D.jsx(Z.Tag,{children:vt.getLabelInOptions({value:E,options:(p==null?void 0:p.options)||[]})},E))}):(p.options=[...p==null?void 0:p.options,{label:u.split(",").map(E=>vt.getLabelInOptions({value:E,options:(p==null?void 0:p.options)||[]})).join(","),disabled:!0,value:u}],D.jsx(ho,{filterOption:(E,k)=>k.label&&k.label.indexOf(E)>=0,...p,showSearch:!0,disabled:x||(p==null?void 0:p.disabled)})):D.jsx(ho,{filterOption:(E,k)=>k.label&&k.label.indexOf(E)>=0,...p,showSearch:!0,disabled:x||(p==null?void 0:p.disabled)}):D.jsx(ho,{...p,showSearch:!0,options:[],disabled:x||(p==null?void 0:p.disabled)});if(c==="PopupSelect")return p.options===void 0||p.options.length>0?D.jsx(uC,{...p,title:e.label,disabled:x||(p==null?void 0:p.disabled)},e.name):"";if(c==="SearchSelect")return D.jsx(Kq,{...p},e.name);if(c==="Checkbox")return D.jsx(Z.Checkbox,{...p,disabled:x||(p==null?void 0:p.disabled)});if(c==="Checkbox.Group")return D.jsx(Z.Checkbox.Group,{...p,disabled:x||(p==null?void 0:p.disabled)});if(c==="Input.TextArea")return x?D.jsx(Z.Input.TextArea,{...p,disabled:!0}):D.jsx(Z.Input.TextArea,{...p});if(c==="Input.Password")return x?D.jsx(Z.Input.Password,{...p,disabled:!0}):D.jsx(Z.Input.Password,{...p});if(c==="Date")return x?D.jsx(Z.DatePicker,{...p,size:"middle",placeholder:"",disabled:x||(p==null?void 0:p.disabled)}):D.jsx(Z.DatePicker,{...p});if(c==="DatePicker.RangePicker")return x?D.jsx(Z.DatePicker.RangePicker,{...p,disabled:x||(p==null?void 0:p.disabled),placeholder:["",""],separator:""}):D.jsx(Z.DatePicker.RangePicker,{...p});if(c==="TimePicker.RangePicker")return x?D.jsx(Z.TimePicker.RangePicker,{...p,disabled:x||(p==null?void 0:p.disabled)}):D.jsx(Z.TimePicker.RangePicker,{...p});if(c==="Switch")return D.jsx(Z.Switch,{...p,disabled:x||(p==null?void 0:p.disabled)});if(c==="Number")return(p==null?void 0:p.apicode)==="FileSize"?D.jsx(Y8,{...p,disabled:x||(p==null?void 0:p.disabled)},p.id):x?D.jsx(Z.InputNumber,{...p,placeholder:"",disabled:x||(p==null?void 0:p.disabled)}):D.jsx(Z.InputNumber,{...p});if(c==="Cascader")return x?D.jsx(Z.Cascader,{...p,placeholder:"",disabled:x||(p==null?void 0:p.disabled)}):D.jsx(Z.Cascader,{showSearch:{filter:(E,k)=>k.some(T=>T.label&&T.label.toLowerCase().indexOf(E.toLowerCase())>-1),matchInputWidth:!1},...p});if(c==="TreeSelect")return p.treeData&&p.treeData.length?x?D.jsx(og,{...p,disabled:x||(p==null?void 0:p.disabled),showSearch:!0,treeNodeFilterProp:"label"}):D.jsx(og,{...p,showSearch:!0,treeNodeFilterProp:"label"}):D.jsx(og,{disabled:x||(p==null?void 0:p.disabled)});if(c==="Radio")return x?D.jsx(Z.Radio,{...p,disabled:x||(p==null?void 0:p.disabled)}):D.jsx(Z.Radio,{...p});if(c==="Radio.Group")return x?D.jsx(Z.Radio.Group,{...p,disabled:x||(p==null?void 0:p.disabled)}):D.jsx(Z.Radio.Group,{...p});if(c==="Slider")return D.jsx(Z.Slider,{...p,disabled:x||(p==null?void 0:p.disabled)});if(c==="Markdown")return D.jsx(US,{...p,readOnly:x||(p==null?void 0:p.disabled)});if(c==="SelectPopup")return D.jsx(nC,{selectProps:p,readOnly:x||(p==null?void 0:p.disabled)});if(c==="SelectTransfer")return D.jsx(tC,{selectProps:p,readOnly:x||(p==null?void 0:p.disabled)});if(c==="CompositeForm")return D.jsx(pc,{...p,readOnly:x||(p==null?void 0:p.disabled)});if(c==="Title")return D.jsx(Xq,{...p,readOnly:x||(p==null?void 0:p.disabled)});if(n[c]){const E=n[c];return D.jsx(E,{type:c,...p,name:e.name,disabled:x||(p==null?void 0:p.disabled)},e.name)}return D.jsx("span",{children:u})}else return D.jsx("div",{style:{width:"28px",height:"10px",backgroundColor:"#d9d9d9"}})},[e.readOnly]),i=F.useMemo(()=>e.ignoreNoWhiteSpaceStart?e.rules:e.content.type==="Input"||e.content.type==="Input.TextArea"?ie.concat(e.NoWhiteSpaceStart,e.rules||[]):e.rules,[e.rules,e.ignoreNoWhiteSpaceStart]),o=e.content.type=="Title";return D.jsx(Z.Form.Item,{colon:!1,...ie.omit(e,["readOnly","content","ignoreNoWhiteSpaceStart"]),className:Te(y$.main,e.className,o?GLOBAL_ATTR_TITLE:"",{readOnly:e.readOnly}),"data-type":e.content.type,validateFirst:!0,validateTrigger:["onBlur","onChange"],rules:i,children:a(e.content,e.name)})}),Zq="_itemsCreated_ow91h_1",Jq="_rowBox_ow91h_4",Qq="_labelLength_ow91h_8",Qo={itemsCreated:Zq,rowBox:Jq,labelLength:Qq},eW="_advanced_search_content_775l0_1",tW="_disableBg_775l0_1",rW="_checkboxWidth_775l0_15",nW="_radioWidth_775l0_18",aW="_conditions_head_775l0_21",iW="_head1_775l0_29",oW="_head2_775l0_32",sW="_head3_775l0_35",uW="_head4_775l0_38",lW="_properties_box_775l0_41",cW="_className_tips_775l0_44",dW="_groupHeader_775l0_49",fW="_iconBtn_775l0_52",hW="_properties_item_775l0_61",pW="_left_tips_775l0_84",mW="_state_type_775l0_87",gW="_verification_775l0_100",vW="_verificationBorder_775l0_121",Ie={advanced_search_content:eW,disableBg:tW,checkboxWidth:rW,radioWidth:nW,conditions_head:aW,head1:iW,head2:oW,head3:sW,head4:uW,properties_box:lW,className_tips:cW,groupHeader:dW,iconBtn:fW,properties_item:hW,left_tips:pW,state_type:mW,verification:gW,verificationBorder:vW},bW="_shuttle_box_tufhg_1",yW="_transferBox_tufhg_4",_W="_selectNum_tufhg_7",$d={shuttle_box:bW,transferBox:yW,selectNum:_W},wW=e=>{const t=Br({dataSource:[],targetKeys:[],columns:[]}),r=l=>l&&ie.isString(l)&&l.includes("~#~")?D.jsx("div",{style:{width:"28px",height:"10px",backgroundColor:"#d9d9d9"}}):l;F.useEffect(()=>{t.dataSource=e.dataSource,t.targetKeys=e.targetKeys;let l=[];for(let u of e.columns)l.push({...u,ellipsis:!0,sorter:(c,m)=>{const p=u.dataIndex||"";return c[p]!=null&&m[p]!=null?ie.isString(c[p])&&ie.isString(m[p])?c[p].localeCompare(m[p]):ie.isNumber(c[p])&&ie.isNumber(m[p])?c[p]-m[p]:0:0},render:u.render?u.render:r});t.columns=l},[e.dataSource,e.targetKeys]);const n=({...l})=>D.jsx(Z.Transfer,{...l,rowKey:u=>u.id,children:({direction:u,filteredItems:c,onItemSelectAll:m,onItemSelect:p,selectedKeys:g})=>{const y={onSelectAll(x,E){const k=E.filter(w=>!w.disabled).map(({id:w})=>w),T=x?ie.difference(k,g):ie.difference(g,k);m(T,x)},onSelect({id:x},E){e.isRadio&&g.splice(0,1),p(x,E)},getCheckboxProps:x=>({disabled:x.name=="~#~"||x.number=="~#~"||x.empNo=="~#~"?!0:u=="left"?x.disabled:!1}),selectedRowKeys:g};return D.jsxs(D.Fragment,{children:[D.jsx(Z.Table,{rowSelection:{type:e.isRadio?"radio":"checkbox",...y},columns:t.columns,showSorterTooltip:!1,pagination:!1,dataSource:c,scroll:{y:301},style:{height:"338px"},size:"small",onRow:x=>({onClick:()=>{x.name=="~#~"||x.empNo=="~#~"||!x.disabled&&u==="left"&&(e.isRadio&&g.splice(0,1),p(x.id,!g.includes(x.id)))},onDoubleClick:()=>{if(!(x.name=="~#~"||x.empNo=="~#~")){if(u==="left")x.disabled||(e.isRadio&&(t.targetKeys=[]),t.targetKeys.unshift(x.id));else for(let E=0;E<t.targetKeys.length;E++)if(t.targetKeys[E]==x.id){t.targetKeys.splice(E,1);break}}}})}),u==="left"?D.jsxs("div",{className:$d.selectNum,children:[e.defaultPageSize!==50?`${Y("sys.label.selected",{placeholder:"已选{count}条",variate:{count:g.length}})}`:Y("sys.maxDisplay50",{placeholder:"最多显示50条"})," ",", ",Y("project.tab.plan.criticalPath.window.total",{placeholder:"共"}),c.length,Y("project.tab.plan.quantityDisplay.select",{placeholder:"条"})]}):D.jsxs("div",{className:$d.selectNum,children:[Y("sys.label.selected",{placeholder:"已选{count}条",variate:{count:g.length}}),",",Y("project.tab.plan.criticalPath.window.total",{placeholder:"共"}),c.length,Y("project.tab.plan.quantityDisplay.select",{placeholder:"条"})]})]})}}),a=l=>{e.isRadio?t.targetKeys=[l[0]]:t.targetKeys=l},i=async()=>{let l=[];for(let u=0;u<t.targetKeys.length;u++)for(let c=0;c<t.dataSource.length;c++)if(t.targetKeys[u]==t.dataSource[c].id){l.push(t.dataSource[c]);break}e.onSubmit&&e.onSubmit(l)},o=()=>{if(e.columns.length>0){let l=[Y("project.workflow.status",{placeholder:"状态"}),Y("sys.import.category",{placeholder:"分类"})];return Y("project.create.attr.verify.scheduledDate.input",{placeholder:"请输入{content}",variate:{content:ie.without(ie.map(e.columns,"title"),...l).join("、")}})}return Y("sys.enterSearch",{placeholder:"请输入搜索内容"})};return D.jsx(To,{className:$d.shuttle_box,modalTitle:e.title,okText:Y("project.tab.plan.details.window.save",{placeholder:"保存"}),width:850,visible:e.visible,onOk:()=>{i()},onCancel:()=>{e.onCancel&&e.onCancel()},children:D.jsx("div",{className:$d.transferBox,children:D.jsx(Ls,{spinning:e.loading,children:D.jsx(n,{dataSource:t.dataSource,targetKeys:t.targetKeys,showSearch:!0,locale:{searchPlaceholder:e.searchPlaceholder||o()},showSelectAll:!1,onChange:a,filterOption:(l,u)=>u.Name&&u.Name.indexOf(l)!==-1||u.EmpNo&&u.EmpNo.indexOf(l)!==-1||u.empNo&&u.empNo.indexOf(l)!==-1||u.email&&u.email.indexOf(l)!==-1||u.name&&u.name.indexOf(l)!==-1||u.workflowName&&u.workflowName.indexOf(l)!==-1||u.code&&String(u.code).indexOf(l)!==-1||u.description&&u.description.indexOf(l)!==-1})})})})},{RangePicker:kx}=Z.DatePicker,{Option:sg}=Z.Select,{TreeNode:Tx}=Z.Tree,{confirm:_ee}=Z.Modal,xW=[{value:"and",label:Y("sys.query.builder.condit.and",{placeholder:"与"})},{value:"or",label:Y("sys.query.builder.condit.or",{placeholder:"或"})}],cC=F.forwardRef((e,t)=>{F.useRef();const r=F.useRef(null),n=F.useRef(null),a="YYYY-MM-DD HH:mm:ss",i={10002011:10001001,10002021:10001002,10002035:10001006,10002053:10001021,10002054:10001023,10002055:10001022},o=Br({1:[{value:"contain",label:Y("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:Y("sys.condition.notContains",{placeholder:"不包含"})},{value:"start",label:Y("sys.condition.startsWith",{placeholder:"开始于"})},{value:"!start",label:Y("sys.condition.notStartsWith",{placeholder:"不开始于"})},{value:"eq",label:Y("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:Y("sys.condition.notEquals",{placeholder:"不等于"})},{value:"null",label:Y("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:Y("sys.condition.isNotEmpty",{placeholder:"不为空"})}],2:[{value:"contain",label:Y("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:Y("sys.condition.notContains",{placeholder:"不包含"})},{value:"start",label:Y("sys.condition.startsWith",{placeholder:"开始于"})},{value:"!start",label:Y("sys.condition.notStartsWith",{placeholder:"不开始于"})},{value:"eq",label:Y("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:Y("sys.condition.notEquals",{placeholder:"不等于"})},{value:"null",label:Y("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:Y("sys.condition.isNotEmpty",{placeholder:"不为空"})}],3:[{value:"contain",label:Y("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:Y("sys.condition.notContains",{placeholder:"不包含"})},{value:"null",label:Y("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:Y("sys.condition.isNotEmpty",{placeholder:"不为空"})}],4:[{value:"eq",label:Y("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:Y("sys.condition.notEquals",{placeholder:"不等于"})},{value:"gt",label:Y("sys.condition.greaterThan",{placeholder:"大于"})},{value:"ge",label:Y("sys.condition.greaterThanOrEquals",{placeholder:"大于等于"})},{value:"lt",label:Y("sys.condition.lessThan",{placeholder:"小于"})},{value:"le",label:Y("sys.condition.lessThanOrEquals",{placeholder:"小于等于"})},{value:"null",label:Y("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:Y("sys.condition.isNotEmpty",{placeholder:"不为空"})}],5:[[{value:"eq",label:Y("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:Y("sys.condition.notEquals",{placeholder:"不等于"})},{value:"null",label:Y("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:Y("sys.condition.isNotEmpty",{placeholder:"不为空"})}],[{value:"eq",label:Y("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:Y("sys.condition.notEquals",{placeholder:"不等于"})},{value:"in",label:Y("sys.condition.in",{placeholder:"在"})},{value:"!in",label:Y("sys.condition.notIn",{placeholder:"不在"})},{value:"contain",label:Y("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:Y("sys.condition.notContains",{placeholder:"不包含"})},{value:"null",label:Y("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:Y("sys.condition.isNotEmpty",{placeholder:"不为空"})}],[{value:"eq",label:Y("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:Y("sys.condition.notEquals",{placeholder:"不等于"})},{value:"contain",label:Y("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:Y("sys.condition.notContains",{placeholder:"不包含"})},{value:"null",label:Y("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:Y("sys.condition.isNotEmpty",{placeholder:"不为空"})}],[{value:"eq",label:Y("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:Y("sys.condition.notEquals",{placeholder:"不等于"})},{value:"contain",label:Y("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:Y("sys.condition.notContains",{placeholder:"不包含"})},{value:"null",label:Y("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:Y("sys.condition.isNotEmpty",{placeholder:"不为空"})}]],6:[{value:"eq",label:Y("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:Y("sys.condition.notEquals",{placeholder:"不等于"})},{value:"between",label:Y("sys.condition.in",{placeholder:"在"})},{value:"gt",label:Y("sys.condition.greaterThan",{placeholder:"大于"})},{value:"ge",label:Y("sys.condition.greaterThanOrEquals",{placeholder:"大于等于"})},{value:"lt",label:Y("sys.condition.lessThan",{placeholder:"小于"})},{value:"le",label:Y("sys.condition.lessThanOrEquals",{placeholder:"小于等于"})},{value:"null",label:Y("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:Y("sys.condition.isNotEmpty",{placeholder:"不为空"})}],7:[{value:"eq",label:Y("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:Y("sys.condition.notEquals",{placeholder:"不等于"})},{value:"gt",label:Y("sys.condition.greaterThan",{placeholder:"大于"})},{value:"ge",label:Y("sys.condition.greaterThanOrEquals",{placeholder:"大于等于"})},{value:"lt",label:Y("sys.condition.lessThan",{placeholder:"小于"})},{value:"le",label:Y("sys.condition.lessThanOrEquals",{placeholder:"小于等于"})}],8:[{value:"null",label:Y("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:Y("sys.condition.isNotEmpty",{placeholder:"不为空"})}],9:[{value:"null",label:Y("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:Y("sys.condition.isNotEmpty",{placeholder:"不为空"})}],10:[{value:"contain",label:Y("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:Y("sys.condition.notContains",{placeholder:"不包含"})},{value:"eq",label:Y("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:Y("sys.condition.notEquals",{placeholder:"不等于"})},{value:"null",label:Y("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:Y("sys.condition.isNotEmpty",{placeholder:"不为空"})}],12:[{value:"contain",label:Y("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:Y("sys.condition.notContains",{placeholder:"不包含"})},{value:"start",label:Y("sys.condition.startsWith",{placeholder:"开始于"})},{value:"!start",label:Y("sys.condition.notStartsWith",{placeholder:"不开始于"})},{value:"eq",label:Y("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:Y("sys.condition.notEquals",{placeholder:"不等于"})},{value:"null",label:Y("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:Y("sys.condition.isNotEmpty",{placeholder:"不为空"})}],13:[{value:"eq",label:Y("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:Y("sys.condition.notEquals",{placeholder:"不等于"})},{value:"gt",label:Y("sys.condition.greaterThan",{placeholder:"大于"})},{value:"ge",label:Y("sys.condition.greaterThanOrEquals",{placeholder:"大于等于"})},{value:"lt",label:Y("sys.condition.lessThan",{placeholder:"小于"})},{value:"le",label:Y("sys.condition.lessThanOrEquals",{placeholder:"小于等于"})},{value:"null",label:Y("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:Y("sys.condition.isNotEmpty",{placeholder:"不为空"})}]}),l=["ProductRoleList","CategoryList","VersionList","ProductList","LifePhaseList","WorkflowList","WorkflowNodeList"],u=Br({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}}]}]}}),c=Br({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:""});F.useImperativeHandle(t,()=>({getValue:()=>u.formCofing,onVerification:C=>{u.verification=C},setCondition:(C,P)=>{P==0?(u.formCofing.base_item_id=C.value,u.formCofing.base_item_name=C.label):(u.formCofing.object_id=(C==null?void 0:C.value)||"",u.formCofing.object_name=(C==null?void 0:C.label)||"")},emptyCondition:C=>{C&&(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:C=>{u.formCofing=C},searchBtn:()=>{m()},defaultValue:()=>{var P;const C=(P=e.typeData[0])==null?void 0:P.children.filter(M=>M.apicode==="Number"||M.apicode==="Name"||M.apicode==="Description")[0];u.formCofing.relations=[{join:"and",isGroup:!1,relation:[{attribute:{id:[e.typeData[0].value,C.id],name:`${e.typeData[0].label}/${C.name}`,lastSelected:C,type:C.valueType||"",rawType:C.valueType||"",tab_code:e.typeData[0].value,dataFrom:C.dataFrom||"",dataFromId:C.dataFromId||"",apicode:C.apicode,operator:"contain",value:"",valueKey:[],valueTreeKey:[],attr_join:"and",routineData:[],forbidden:!0}}]}]}}));const m=C=>{if(u.verification=!1,!u.formCofing.base_item_id){Z.message.warning(Y("sys.import.selectCategory",{placeholder:"请选择分类"}));return}let P=ie.cloneDeep(u.formCofing.relations);P.length==1&&(x(P),P=ie.compact(P));for(let[M,q]of P.entries())for(let L of q.relation){if(!L.attribute.name||!L.attribute.operator||L.attribute.operator!="null"&&L.attribute.operator!="!null"&&!L.attribute.value){u.verification=!0;return}M!=0&&(q.join=P[M-1].relation[P[M-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},p=(C,P)=>C=="5"&&P?P.listCode==10005213?o[C][2]:!P.allowMultiple||P.apicode=="LifeCyclePhase"||P.apicode=="Category"?o[C][0]:P.listType=="0"?o[C][1]:P.listType=="2"?o[C][2]:o[C][3]:o[C],g=()=>{u.formCofing.relations[c.treeIndex1].relation[c.treeIndex2].attribute.value=c.treeDefine.join(","),u.formCofing.relations[c.treeIndex1].relation[c.treeIndex2].attribute.valueTreeKey=c.treeDefineKey,c.titleName="",c.treeVisible=!1},y=(C,P)=>P.some(M=>M.label&&M.label.toLowerCase().indexOf(C.toLowerCase())>-1),x=C=>C.map((P,M)=>(P.relation.forEach((q,L)=>{let N=q.attribute;!N.name&&!N.operator&&!N.value&&delete P.relation[L]}),P.relation=ie.compact(P.relation),P.relation.length==0&&delete C[M],P)),E=C=>{let P=[];if(C)for(let M of C)P.push({label:M.showName||M.name,value:M.id,disabled:!M.status});return P},k=C=>C.map(P=>P.children?D.jsx(Tx,{title:c.department?P.title:P.name,children:k(P.children)},P.id):D.jsx(Tx,{title:c.department?P.title:P.name},P.id)),T=(C,P)=>D.jsx(eh,{highlightStyle:{color:"#F5325C",backgroundColor:"rgb(0, 0, 0, 0)",padding:"0"},searchWords:[P?P.toString():""],textToHighlight:C?C.toString():""}),w=()=>{n.current&&setTimeout(()=>{n.current.scroll({top:n.current.scrollTop+38,behavior:"smooth"})},100)},S=(C,P,M,q)=>{!M||M&&C.relation.length>1&&q==C.relation.length-1?u.formCofing.relations.splice(P+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[P].relation.splice(q+1,0,{attribute:{id:"",name:"",type:"",tab_code:"",operator:"",value:"",valueKey:[],valueTreeKey:[],attr_join:"and",routineData:[],forbidden:!0}}),_(C),w()},f=C=>{u.formCofing.relations.splice(C+1,0,{join:"and",isGroup:!0,relation:[{attribute:{id:"",name:"",type:"",tab_code:"",operator:"",value:"",valueKey:[],valueTreeKey:[],attr_join:"and",routineData:[],forbidden:!0}}]}),w()},h=C=>{u.formCofing.relations.splice(C,1)},v=(C,P,M,q)=>{M&&C.relation.length>1?(C.relation.splice(q,1),_(C)):u.formCofing.relations.splice(P,1)},_=C=>{for(let P=0;P<C.relation.length;P++)C.relation[P].attribute.forbidden=!0,C.relation.length>1&&C.relation.length-1!=P&&(C.relation[P].attribute.forbidden=!1)},R=(C,P,M,q,L)=>{if(M&&(M.apicode=="OrgName"||M.apicode=="CreateUserDepartment"))return D.jsx(Z.Select,{className:`
333
- ${u.verification&&!C.attribute.value&&C.attribute.operator!="null"&&C.attribute.operator!="!null"&&Ie.verification}
334
- ${(C.attribute.operator=="null"||C.attribute.operator=="!null")&&Ie.disableBg}
335
- ${Ie.radioWidth}
336
- `,value:C.attribute.value&&C.attribute.value.split(",")||void 0,disabled:C.attribute.operator=="null"||C.attribute.operator=="!null"||e.readOnly,open:!1,suffixIcon:D.jsx(gs,{style:{color:"#B6B9CF"}}),style:{width:"100%"},placeholder:Y("sys.label.selectOption",{placeholder:Y("sys.label.selectOption",{placeholder:"请选择"})}),onClick:()=>{C.attribute.operator!="null"&&C.attribute.operator!="!null"&&!e.readOnly&&(c.treeLoading=!0,c.treeVisible=!0,c.treeIndex1=q,c.treeIndex2=L,c.titleName=Y("sys.selection.chooseDepartment",{placeholder:Y("sys.selection.chooseDepartment",{placeholder:"选择部门"})}),c.treeDefine=C.attribute.value.split(","),c.treeDefineKey=C.attribute.valueTreeKey,c.treeCheckable=M.allowMultiple,c.department=!0,e.treeList().then(N=>{c.treeData=N.result,setTimeout(()=>{c.treeLoading=!1},200)}).catch(()=>{c.treeLoading=!1}))},onChange:N=>{c.treeDefine=N,C.attribute.value=N.join(",")}});if(P=="4")return D.jsx(Z.InputNumber,{placeholder:Y("sys.input.number",{placeholder:"请输入数字"}),className:`
337
- ${u.verification&&!C.attribute.value&&C.attribute.operator!="null"&&C.attribute.operator!="!null"&&Ie.verification}
338
- ${(C.attribute.operator=="null"||C.attribute.operator=="!null")&&Ie.disableBg}
339
- `,value:C.attribute.value,disabled:C.attribute.operator=="null"||C.attribute.operator=="!null"||e.readOnly,style:{width:"100%",lineHeight:"28px"},onChange:N=>{C.attribute.value=N}});if(P=="5")return M&&(M.listType=="1"||M.listType=="3"&&M.listCode!==10005222)?D.jsx(Z.Tooltip,{placement:"left",title:ie.map(C.attribute.valueKey,"label").join(","),children:D.jsx(Z.Select,{className:`
340
- ${u.verification&&!C.attribute.value&&C.attribute.operator!="null"&&C.attribute.operator!="!null"&&Ie.verification}
341
- ${(C.attribute.operator=="null"||C.attribute.operator=="!null")&&Ie.disableBg}
342
- ${M.allowMultiple?Ie.checkboxWidth:Ie.radioWidth}
343
- `,mode:"multiple",maxTagCount:1,maxTagPlaceholder:"...",disabled:C.attribute.operator=="null"||C.attribute.operator=="!null"||e.readOnly,open:!1,showArrow:!0,suffixIcon:D.jsx(gs,{style:{color:"#B6B9CF"}}),style:{width:"100%"},placeholder:Y("sys.label.selectOption",{placeholder:"请选择"}),onClick:()=>{if(C.attribute.operator!="null"&&C.attribute.operator!="!null"&&!e.readOnly){if(c.loading=!0,M.apicode=="OldLifePhase"||M.apicode=="NewLifePhase"){c.isUserCode=M.apicode,c.visibleTransfer=!0,c.treeIndex1=q,c.treeIndex2=L,c.isRadio=!M.allowMultiple,e.getLifecycles(i[M.tabCode]).then(j=>{for(let O of j.result.records||[])O.id=String(O.code);c.dataSource=j.result.records||[],c.targetKeys=C.attribute.value.split(","),c.loading=!1});return}let N=M.apicode=="Category"&&C.attribute.tab_code!="10002001"?M.itemCode:u.formCofing.base_item_id;e.getListbycode(M.listCode).then(j=>{let O="",I;j.result.apicode=="CategoryList"?(O=`item_code=${N}`,I=1):j.result.apicode=="VersionList"||j.result.apicode=="ProductList"||(j.result.apicode=="LifePhaseList"||j.result.apicode=="WorkflowList"||j.result.apicode=="WorkflowNodeList")&&(j.result.apicode=="LifePhaseList"&&M.valueType=="10"?O=`item_code=${M.itemCode}`:j.result.apicode=="LifePhaseList"&&M.itemCode==10001006&&u.formCofing.base_item_id==10001001?O="item_code=10001006":j.result.apicode=="LifePhaseList"&&M.itemCode==10001001&&(u.formCofing.base_item_id==10001014||u.formCofing.base_item_id==10001006)?O="item_code=10001001":(j.result.apicode=="WorkflowList"||j.result.apicode=="WorkflowNodeList")&&u.formCofing.base_item_id==10001014?O="item_code=10001011":(j.result.apicode=="WorkflowList"||j.result.apicode=="WorkflowNodeList")&&u.formCofing.base_item_id==10001012?O="item_code=10001020":j.result.apicode=="LifePhaseList"&&C.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":j.result.apicode=="WorkflowList"||j.result.apicode=="LifePhaseList"?O=`item_code=${M.itemCode}`:O=u.formCofing.object_id?`item_code=${N} and object_id=${u.formCofing.object_id}`:`item_code=${u.formCofing.base_item_id}`),M.listType=="1"?j.result.apicode=="WorkflowNodeList"?(c.isUserCode="WorkflowNodeList",c.visibleTransfer=!0,c.treeIndex1=q,c.treeIndex2=L,c.isRadio=!M.allowMultiple,e.getTreeList(j.result.code,O).then(z=>{if(z.code==200){let B=[];for(let H of z.result||[])B.push({name:H,id:H});c.dataSource=B,c.targetKeys=C.attribute.value.split(","),c.loading=!1}})):j.result.apicode=="CategoryList"?(c.isUserCode="CategoryList",c.visibleTransfer=!0,c.treeIndex1=q,c.treeIndex2=L,c.isRadio=!M.allowMultiple,e.getTreeList(j.result.code,O).then(z=>{if(z.code==200){for(let B of z.result||[])B.statusText=B.status?Y("sys.label.enable",{placeholder:"启用"}):Y("sys.disable.disable",{placeholder:"禁用"});c.dataSource=z.result||[],c.targetKeys=C.attribute.value.split(","),c.loading=!1}})):e.getOverview(j.result.conditionId).then(z=>{z.result.itemCode=="10001017"?c.isUserCode="10001017":z.result.itemCode=="10001018"?c.isUserCode="10001018":c.isUserCode=z.result.apicode,c.visibleTransfer=!0,c.treeIndex1=q,c.treeIndex2=L,c.isRadio=!M.allowMultiple,e.getInstanceParams({itemCodes:[z.result.itemCode],baseItemId:u.formCofing.base_item_id}).then(B=>{for(let H of B.result)z.result.itemCode=="10001017"?(H.name=H.number,H.email=H.insDesc):(H.code=H.number,H.name=H.number,H.description=H.insDesc);c.dataSource=B.result,c.targetKeys=C.attribute.value.split(","),z.result.itemCode=="10001017"&&(c.dataSource=ie.concat({name:"$USER",id:"$USER",email:""},c.dataSource)),c.loading=!1})}):(M.tabCode===10002005?O="item_code<>10001018 and item_code <>10001017":M.tabCode===10002004?O=`item_code in (${C.attribute.routineData.map(z=>z.code).join(",")})`:M.listCode===10005250&&(O=`change_instance_item_code=${u.formCofing.base_item_id}`),(u.formCofing.base_item_id==10001004||u.formCofing.base_item_id==10001005)&&M.tabCode==10002024&&M.apicode=="LifeCyclePhase"&&(O="whereData=10001001"),j.result.code==10005256?c.isUserCode=j.result.code:c.isUserCode=j.result.apicode,c.visibleTransfer=!0,c.treeIndex1=q,c.treeIndex2=L,c.isRadio=!M.allowMultiple,e.getTreeList(M.listCode,O,I).then(z=>{if(z.code==200){if(z.result&&z.result.length&&z.result[0].nodes){let B=[],H={1:Y("sys.label.start",{placeholder:"开始"}),2:Y("sys.label.review",{placeholder:"审核"}),3:Y("sys.label.publish",{placeholder:"发布"}),4:Y("project.tab.plan.delete.tips.title.confirm",{placeholder:"确认"}),5:Y("sys.label.end",{placeholder:"结束"})};for(let U of z.result)for(let J of U.nodes||[])B.push({name:U.wfName+"."+J.name,id:U.wfId+"."+J.id,type:H[J.type]});c.dataSource=B}else{if(c.isUserCode=="LifePhaseList")for(let B of z.result||[])B.id=String(B.code);if(j.result.code==10005250)for(let B of z.result||[])B.code=B.changeInstanceNo,B.description=B.changeInstanceDesc;if(j.result.code==10005173&&(M.apicode=="Product"?z.result=z.result.filter(B=>B.productType=="product"):z.result=z.result.filter(B=>B.productType=="library")),M.tabCode===10002005||M.tabCode===10002004)for(let B of z.result||[])B.name=B.itemName?B.itemName+"."+B.name:B.name;c.dataSource=z.result||[],M.apicode=="Product"&&(c.dataSource=ie.concat({name:"$MYPRODUCTS",id:"$MYPRODUCTS",description:""},c.dataSource)),M.listCode==10005256&&(c.dataSource=ie.concat({id:"$USER",name:"$USER"},c.dataSource))}c.targetKeys=C.attribute.value.split(","),c.loading=!1}}))})}},value:C.attribute.value&&C.attribute.value.split(",")||void 0,onChange:(N,j)=>{C.attribute.value=N.join(","),C.attribute.valueKey=j.map(O=>({label:O.key,value:O.value}))},children:C.attribute.valueKey.map(N=>D.jsx(sg,{value:N.value,children:N.label},N.label))})}):M&&(M.listType=="2"||M.listCode===10005222)?D.jsx(Z.Tooltip,{title:C.attribute.value,children:D.jsx(Z.Select,{className:`
344
- ${u.verification&&!C.attribute.value&&C.attribute.operator!="null"&&C.attribute.operator!="!null"&&Ie.verification}
345
- ${(C.attribute.operator=="null"||C.attribute.operator=="!null")&&Ie.disableBg}
346
- ${M.allowMultiple?Ie.checkboxWidth:Ie.radioWidth}
347
- `,mode:"multiple",maxTagCount:1,maxTagPlaceholder:"...",value:C.attribute.value&&C.attribute.value.split(",")||void 0,disabled:C.attribute.operator=="null"||C.attribute.operator=="!null"||e.readOnly,open:!1,clearIcon:!1,showArrow:!0,suffixIcon:D.jsx(gs,{style:{color:"#B6B9CF"}}),style:{width:"100%"},placeholder:Y("sys.label.selectOption",{placeholder:"请选择"}),onClick:()=>{C.attribute.operator!="null"&&C.attribute.operator!="!null"&&!e.readOnly&&(c.treeLoading=!0,c.treeVisible=!0,c.treeIndex1=q,c.treeIndex2=L,c.treeDefine=C.attribute.value.split(","),c.treeDefineKey=C.attribute.valueTreeKey,c.treeCheckable=M.allowMultiple,c.department=!1,e.getTreeList(M.listCode).then(N=>{N.code==200&&(c.treeData=N.result,M.apicode=="ProductModel"&&(c.treeData=ie.concat({name:"$MYPRODUCTMODELS",id:"$MYPRODUCTMODELS"},c.treeData)),setTimeout(()=>{c.treeLoading=!1},200))}).catch(()=>{c.treeLoading=!1}))},onChange:N=>{c.treeDefine=N,C.attribute.valueTreeKey.shift(),C.attribute.value=N.join(",")}})}):C.attribute.tab_code==10002004||C.attribute.tab_code==10002005?D.jsx(Z.Cascader,{className:`
348
- ${u.verification&&!C.attribute.value&&C.attribute.operator!="null"&&C.attribute.operator!="!null"&&Ie.verification}
349
- ${(C.attribute.operator=="null"||C.attribute.operator=="!null")&&Ie.disableBg}
350
- `,value:C.attribute.value||void 0,dropdownClassName:"cascaderPopup",style:{width:"158px"},placeholder:Y("sys.label.selectOption",{placeholder:"请选择"}),disabled:C.attribute.operator=="null"||C.attribute.operator=="!null"||e.readOnly,options:C.attribute.routineData,showSearch:{filter:y,matchInputWidth:!1},onChange:N=>{C.attribute.value=N.map(String)}}):M&&M.allowMultiple?D.jsx(Z.Tooltip,{title:ie.compact(ie.map(C.attribute.routineData,N=>{for(let j of C.attribute.value.split(","))if(j==N.value)return N.label})).join(","),children:D.jsx(Z.Select,{className:`
351
- ${u.verification&&!C.attribute.value&&C.attribute.operator!="null"&&C.attribute.operator!="!null"&&Ie.verification}
352
- ${(C.attribute.operator=="null"||C.attribute.operator=="!null")&&Ie.disableBg}
353
- ${Ie.checkboxWidth}
354
- `,mode:"multiple",maxTagCount:1,maxTagPlaceholder:"...",showArrow:!0,value:C.attribute.value&&C.attribute.value.split(",")||void 0,disabled:C.attribute.operator=="null"||C.attribute.operator=="!null"||e.readOnly,optionFilterProp:"label",style:{width:"100%"},placeholder:Y("sys.label.selectOption",{placeholder:"请选择"}),open:c["open"+q+L],onFocus:()=>{c["open"+q+L]=!0},onChange:N=>{C.attribute.value=N.join(",")},onSearch:N=>{C.attribute.LighHeight=N},onBlur:()=>{C.attribute.LighHeight="",c["open"+q+L]=!1},filterOption:(N,j)=>j.key.toLowerCase().indexOf(N.toLowerCase())>=0,children:C.attribute.routineData.map(N=>D.jsx(sg,{value:N.value,disabled:N.disabled,children:T(N.label,C.attribute.LighHeight)},N.label))})}):D.jsx(Z.Tooltip,{title:ie.compact(ie.map(C.attribute.routineData,N=>{if(C.attribute.value==N.value)return N.label})).join(","),children:D.jsx(Z.Select,{ref:r,className:`
355
- ${u.verification&&!C.attribute.value&&C.attribute.operator!="null"&&C.attribute.operator!="!null"&&Ie.verification}
356
- ${(C.attribute.operator=="null"||C.attribute.operator=="!null")&&Ie.disableBg}
357
- ${Ie.radioWidth}
358
- `,value:C.attribute.value||void 0,showSearch:!0,optionFilterProp:"label",disabled:C.attribute.operator=="null"||C.attribute.operator=="!null"||e.readOnly,style:{width:"100%"},placeholder:Y("sys.label.selectOption",{placeholder:"请选择"}),onChange:N=>{C.attribute.value=N,r==null||r.current.blur()},onSearch:N=>{C.attribute.LighHeight=N},open:c["open"+q+L],onFocus:()=>{c["open"+q+L]=!0},onBlur:()=>{C.attribute.LighHeight="",c["open"+q+L]=!1},filterOption:(N,j)=>j.key.toLowerCase().indexOf(N.toLowerCase())>=0,children:C.attribute.routineData.map(N=>D.jsx(sg,{value:N.value,disabled:N.disabled,children:T(N.label,C.attribute.LighHeight)},N.label))})});if(P=="6")return C.attribute.operator=="between"?D.jsx(Z.Tooltip,{title:C.attribute.value.split(",")[0]&&C.attribute.value.split(",")[0]+" ~ "+C.attribute.value.split(",")[1],children:D.jsx(kx,{className:u.verification&&!C.attribute.value&&Ie.verification,showTime:!0,style:{width:"100%"},value:C.attribute.value.split(",")[0]?[ve(C.attribute.value.split(",")[0],a),ve(C.attribute.value.split(",")[1],a)]:void 0,format:a,disabled:C.attribute.operator=="null"||C.attribute.operator=="!null"||e.readOnly,onChange:(N,j)=>{j[0]?C.attribute.value=j.join(","):C.attribute.value=""}})}):D.jsx(Z.DatePicker,{className:`
359
- ${u.verification&&!C.attribute.value&&C.attribute.operator!="null"&&C.attribute.operator!="!null"&&Ie.verification}
360
- ${(C.attribute.operator=="null"||C.attribute.operator=="!null")&&Ie.disableBg}
361
- `,showTime:!0,style:{width:"100%",borderRadius:0},value:C.attribute.value?ve(C.attribute.value,a):void 0,format:a,disabled:C.attribute.operator=="null"||C.attribute.operator=="!null"||C.attribute.operator=="between"||e.readOnly,onChange:(N,j)=>{C.attribute.value=j}});if(P=="7")return D.jsx(Z.Tooltip,{title:C.attribute.value.split(",")[0]&&C.attribute.value.split(",")[0]+" ~ "+C.attribute.value.split(",")[1],children:D.jsx(kx,{className:u.verification&&!C.attribute.value&&Ie.verification,showTime:!0,style:{width:"100%"},value:C.attribute.value.split(",")[0]?[ve(C.attribute.value.split(",")[0],a),ve(C.attribute.value.split(",")[1],a)]:void 0,format:a,disabled:C.attribute.operator=="null"||C.attribute.operator=="!null"||e.readOnly,onChange:(N,j)=>{C.attribute.value=j.join(",")}})});if(P=="12"||P=="13"){let N=C.attribute.lastSelected;return D.jsx("div",{className:u.verification&&!C.attribute.value&&Ie.verificationBorder,children:D.jsx(pc,{value:C.attribute.value,min:N==null?void 0:N.minValue,max:N==null?void 0:N.maxValue,maxLength:N==null?void 0:N.maxLength,precision:N==null?void 0:N.precision,valueType:N==null?void 0:N.valueType,options:C.attribute.routineData,readOnly:!1,onChange:j=>{C.attribute.value=j}})})}else return D.jsx(Z.Input,{className:`
362
- ${u.verification&&!C.attribute.value&&C.attribute.operator!="null"&&C.attribute.operator!="!null"&&Ie.verification}
363
- ${(C.attribute.operator=="null"||C.attribute.operator=="!null")&&Ie.disableBg}
364
- `,placeholder:Y("sys.input.text",{placeholder:"请输入文本"}),value:C.attribute.value,disabled:C.attribute.operator=="null"||C.attribute.operator=="!null"||e.readOnly,style:{padding:"5px 11px"},onChange:N=>{C.attribute.value=N.target.value}})};return D.jsxs("div",{className:Ie.advanced_search_content,style:{minWidth:e.horizontalStyle?"900px":"700px"},children:[!e.horizontalStyle&&D.jsxs("div",{className:Ie.conditions_head,children:[D.jsx("div",{className:Ie.head1,children:Y("sys.property",{placeholder:"属性"})}),D.jsx("div",{className:Ie.head2,children:Y("sys.operator",{placeholder:"运算符"})}),D.jsx("div",{className:Ie.head3,children:Y("sys.value",{placeholder:"值"})}),D.jsx("div",{className:Ie.head4,children:Y("sys.connector",{placeholder:"连接符"})})]}),D.jsxs("div",{ref:n,className:Ie.properties_box,style:{background:e.horizontalStyle?"#fff":"#f8f9f9",height:e.horizontalStyle?"147px":"240px"},children:[D.jsxs("div",{className:Ie.className_tips,children:[D.jsxs("span",{style:{width:160,marginLeft:"12px"},className:Ie.left_tips,children:[Y("sys.property",{placeholder:"属性"}),":"]}),D.jsxs("span",{style:{width:92,marginLeft:"3px"},className:Ie.left_tips,children:[Y("sys.operator",{placeholder:"运算符"}),":"]}),D.jsxs("span",{style:{flex:1,marginLeft:"5px"},className:Ie.left_tips,children:[Y("sys.valueRe",{placeholder:"数值"}),":"]}),D.jsxs("span",{style:{width:145},className:Ie.left_tips,children:[Y("sys.connector",{placeholder:"连接符"}),":"]})]}),u.formCofing.relations.map((C,P)=>D.jsxs("div",{children:[C.isGroup&&D.jsx("div",{className:Ie.groupHeader,children:D.jsxs(Z.Row,{justify:"space-between",align:"middle",children:[D.jsx(Z.Col,{className:Ie.optSelect,children:D.jsx(Z.Select,{value:C.join,style:{width:70},disabled:e.readOnly,options:xW,onChange:M=>{C.join=M}})}),D.jsx(Z.Col,{style:{marginRight:"8px"},children:D.jsx(Ue,{isBackend:!0,className:Ie.iconBtn,tooltip:{title:Y("sys.query.builder.condit.deleteGroup",{placeholder:"删除组"})},type:"delete",onClick:()=>{h(P)}})})]})}),C.relation.map((M,q)=>{var L;return D.jsxs("div",{className:Ie.properties_item,children:[D.jsx(Z.Cascader,{style:{width:160},className:u.verification&&!M.attribute.name&&Ie.verification,showSearch:{filter:y,matchInputWidth:!1},value:((L=e.typeData)==null?void 0:L.length)>0&&M.attribute.id||void 0,options:e.typeData,placeholder:Y("sys.label.selectOption",{placeholder:"请选择"}),disabled:e.readOnly,suffixIcon:D.jsx(Ue,{type:"xia-mian",style:{color:"#333",pointerEvents:"none"}}),dropdownClassName:"cascaderPopup",onChange:async(N,j)=>{M.attribute.value="",M.attribute.routineData=[],M.attribute.valueKey=[],M.attribute.valueTreeKey=[],c.treeDefine=[],M.attribute.id=N,M.attribute.name=ie.map(j,"label").join("/"),M.attribute.lastSelected=await ie.last(j);const O=await ie.last(j);M.attribute.type=O&&O.valueType||"",M.attribute.rawType=(M.attribute.type=="10"?O&&O.rawType:M.attribute.type)||"",M.attribute.type=="10"&&(N[2]&&(N[2]=N[2].split("-")[1],M.attribute.id=N),M.attribute.inputType=O.inputType,M.attribute.referenceApicode=O.referenceApicode,M.attribute.referenceAttrId=O.referenceAttrId),M.attribute.tab_code=j&&(j[0].value.includes("-")?j[0].value.split("-")[0]:j[0].value)||"",M.attribute.dataFrom=O&&O.dataFrom||"",M.attribute.dataFromId=O&&O.dataFromId||"",M.attribute.apicode=O&&O.apicode||"",M.attribute.whereData=j&&(j[0].value.includes("-")?j[0].value.split("-")[1]=="1"?"published":"notPublished":"")||"",M.attribute.type==""?M.attribute.operator="":M.attribute.type=="5"?O.listCode==10005213?M.attribute.operator=o[M.attribute.type]&&o[M.attribute.type][2][0].value:!O.allowMultiple||O.apicode=="LifeCyclePhase"||O.apicode=="Category"?M.attribute.operator=o[M.attribute.type]&&o[M.attribute.type][0][0].value:O.listType=="0"?M.attribute.operator=o[M.attribute.type]&&o[M.attribute.type][1][0].value:O.listType=="2"?M.attribute.operator=o[M.attribute.type]&&o[M.attribute.type][2][0].value:M.attribute.operator=o[M.attribute.type]&&o[M.attribute.type][3][0].value:M.attribute.operator=o[M.attribute.type]&&o[M.attribute.type][0].value,O&&O.apicode=="LifeCyclePhase"?u.formCofing.object_id?e.getLifecyclesNopage(u.formCofing.object_id,O&&O.itemCode).then(I=>{I.code==200&&(M.attribute.routineData=E(I.result))}):e.getLifecycles(O&&O.itemCode).then(I=>{I.code==200&&(M.attribute.routineData=E(I.result.records))}):O&&(O.apicode=="Category"||O.apicode=="Workflow")?N&&N[0]==10002004?e.getHistory().then(I=>{if(I.code==200){for(let z of I.result)z.label=z.name,z.value=String(z.code),z.children&&z.children.forEach(B=>{B.label=B.name,B.value=B.id});M.attribute.routineData=I.result}}):N&&N[0]==10002005?e.getRelation().then(I=>{if(I.code==200){for(let z of I.result)z.label=z.name,z.value=String(z.code),z.children&&z.children.forEach(B=>{B.label=B.name,B.value=B.id});M.attribute.routineData=I.result}}):u.formCofing.object_id?(M.attribute.routineData=e.subcategory,M.attribute.value=u.formCofing.object_id):e.getObjects(O&&O.itemCode).then(I=>{I.code==200&&(M.attribute.routineData=E(I.result.records))}):O&&(O.apicode=="ProductRoles"||O.apicode=="ApproveRole")&&e.getRoles().then(I=>{I.code==200&&(M.attribute.routineData=E(I.result.records))}),O&&O.listType=="0"&&e.getTreeList(O.listCode).then(I=>{I.code==200&&(M.attribute.routineData=E(I.result))})}}),D.jsx(Z.Select,{style:{width:92,margin:"0 5px"},className:u.verification&&!M.attribute.operator&&Ie.verification,placeholder:Y("sys.label.selectOption",{placeholder:"请选择"}),disabled:e.readOnly,suffixIcon:D.jsx(Ue,{type:"xia-mian",style:{color:"#333",pointerEvents:"none"}}),value:M.attribute.operator||void 0,options:M.attribute.type&&p(M.attribute.type,M.attribute.lastSelected),onChange:N=>{M.attribute.operator=N,M.attribute.value="",M.attribute.valueTreeKey=[],M.attribute.valueKey=[],c.treeDefine=[]}}),D.jsx("div",{className:Ie.state_type,children:R(M,M.attribute.rawType,M.attribute.lastSelected,P,q)}),D.jsx(Z.Select,{style:{width:60},disabled:e.readOnly,value:M.attribute.attr_join,options:[{value:"and",label:Y("sys.condition.and",{placeholder:"与"})},{value:"or",label:Y("sys.condition.or",{placeholder:"或"})}],suffixIcon:D.jsx(Ue,{type:"xia-mian",style:{color:"#333",pointerEvents:"none"}}),onChange:N=>{M.attribute.attr_join=N}}),D.jsx(Ue,{isBackend:!0,className:Ie.iconBtn,type:"add",onClick:()=>{S(C,P,C.isGroup,q)}}),D.jsx(Ue,{isBackend:!0,disabled:!C.isGroup&&P==0,className:Ie.iconBtn,type:"delete",onClick:()=>{v(C,P,C.isGroup,q)}}),C.isGroup&&q<C.relation.length-1?D.jsx("div",{style:{width:"26px"}}):D.jsx(Ue,{isBackend:!0,className:Ie.iconBtn,type:"addGroups",onClick:()=>{f(P)}})]},q)})]},P))]}),D.jsx(To,{modalTitle:c.titleName||Y("sys.selection.chooseRange",{placeholder:"选择范围"}),visible:c.treeVisible,width:500,destroyOnClose:!0,onCancel:()=>{c.titleName="",c.treeVisible=!1},onOk:()=>{g()},children:D.jsx(Ls,{spinning:c.treeLoading,style:{minHeight:"455px"},children:D.jsxs("div",{style:{minHeight:"455px"},className:`
365
- ${Ie.TreeModalStyle} ${c.titleName==Y("sys.selection.chooseDepartment",{placeholder:"选择部门"})&&Ie.TreeDepartmentHeight}
366
- `,children:[c.titleName==Y("sys.selection.chooseDepartment",{placeholder:"选择部门"})&&D.jsx(Z.Checkbox.Group,{className:Ie.TreeDepartmentCheckbox,value:c.treeDefine,options:["$DEPARTMENT"],onChange:C=>{c.treeDefine=C,c.treeDefineKey=C}}),c.treeData&&c.treeData.length>0&&!c.treeLoading&&D.jsx(Z.Tree,{defaultExpandAll:!0,height:435,checkable:!0,blockNode:!0,selectable:!1,checkedKeys:c.treeDefineKey||[],checkStrictly:!0,onCheck:(C,{checkedNodes:P})=>{let M=ie.map(P,"title");c.treeCheckable?(c.treeDefineKey=C.checked,c.treeDefine=M):(c.treeDefineKey=C.checked.length===0?[]:[C.checked[C.checked.length-1]],c.treeDefine=M.length===0?[]:[M[M.length-1]])},children:k(c.treeData)})]})})}),c.visibleTransfer&&D.jsx(wW,{title:Y("sys.addValue",{placeholder:"添加值"}),visible:c.visibleTransfer,dataSource:c.dataSource,targetKeys:c.targetKeys,loading:c.loading,isRadio:c.isRadio,columns:c.isUserCode=="10001017"||c.isUserCode=="10005256"?[{title:Y("sys.label.nameRe",{placeholder:"姓名"}),dataIndex:"name"},{title:Y("project.attr.owner.edit.window.email",{placeholder:"邮箱"}),dataIndex:"email"}]:c.isUserCode=="10001018"||c.isUserCode=="LifeCyclePhase"||c.isUserCode=="ProductList"||c.isUserCode=="StatusList"||c.isUserCode=="Category"?[{title:Y("sys.label.name",{placeholder:"名称"}),dataIndex:"name"},{title:Y("project.attr.owner.edit.window.describe",{placeholder:"描述"}),dataIndex:"description"}]:c.isUserCode=="AllProjectsList"?[{title:Y("sys.label.name",{placeholder:"名称"}),dataIndex:"name"},{title:Y("project.attr.owner.edit.window.describe",{placeholder:"描述"}),dataIndex:"insDesc"}]:c.isUserCode=="OldLifePhase"||c.isUserCode=="NewLifePhase"||c.isUserCode=="LifePhaseList"?[{title:Y("sys.label.name",{placeholder:"名称"}),dataIndex:"showName"},{title:Y("project.attr.owner.edit.window.describe",{placeholder:"描述"}),dataIndex:"description"}]:c.isUserCode=="AllEnableManufactures"||c.isUserCode=="AllSupplier"?[{title:Y("sys.label.name",{placeholder:"名称"}),dataIndex:"number"},{title:Y("project.attr.owner.edit.window.describe",{placeholder:"描述"}),dataIndex:"description"}]:c.isUserCode=="CategoryList"||c.isUserCode=="ClassifyList"?[{title:Y("sys.label.name",{placeholder:"名称"}),dataIndex:"name"},{title:Y("project.workflow.status",{placeholder:"状态"}),dataIndex:"status",render:C=>C?Y("sys.label.enable",{placeholder:"启用"}):Y("sys.disable.disable",{placeholder:"禁用"})}]:c.isUserCode=="WorkflowNodeList"||c.isUserCode=="AllCalendars"?[{title:Y("sys.label.name",{placeholder:"名称"}),dataIndex:"name"}]:c.isUserCode=="WorkflowList"?[{title:Y("sys.label.name",{placeholder:"名称"}),dataIndex:"workflowName"},{title:Y("sys.import.category",{placeholder:"分类"}),dataIndex:"changeObject"}]:[{title:Y("sys.label.number",{placeholder:"编号"}),dataIndex:"code"},{title:Y("project.attr.owner.edit.window.describe",{placeholder:"描述"}),dataIndex:"description"}],onCancel:()=>{c.isUserCode="",c.visibleTransfer=!1},onSubmit:C=>{let P=[],M=[],q=["10001017","10005256","10001018","LifeCyclePhase","Category","CategoryList","ClassifyList","StatusList","WorkflowNodeList","AllCalendars","AllProjectsList"];for(let L of C)q.includes(c.isUserCode)||l.includes(c.isUserCode)?L.name=="$USER"?(M.push(L.name),P.push({label:L.name,value:L.name})):c.isUserCode=="WorkflowList"?(M.push(L.id),P.push({label:L.workflowName,value:L.id})):c.isUserCode=="LifePhaseList"?(M.push(L.id),P.push({label:L.showName,value:L.id})):(M.push(L.id),P.push({label:L.name,value:L.id})):c.isUserCode=="OldLifePhase"||c.isUserCode=="NewLifePhase"?(M.push(L.id),P.push({label:L.showName,value:L.id})):c.isUserCode=="AllEnableManufactures"||c.isUserCode=="AllSupplier"?(M.push(L.id),P.push({label:L.number,value:L.id})):(M.push(L.id),P.push({label:L.code,value:L.id}));console.log(M),console.log(P),u.formCofing.relations[c.treeIndex1].relation[c.treeIndex2].attribute.value=M.join(","),u.formCofing.relations[c.treeIndex1].relation[c.treeIndex2].attribute.valueKey=P,console.log(u),c.isUserCode="",c.visibleTransfer=!1}})]})}),{Option:Ox}=Z.Select,SW=e=>{var g;const[t]=Z.Form.useForm(),r=F.useRef(null),[n,a]=F.useState(""),[i,o]=F.useState([]),[l,u]=F.useState([]);zs(()=>{console.log(e)});const c=Br({type1:void 0,type2:void 0}),m=(y,x)=>D.jsx(eh,{highlightStyle:{color:"#F5325C",backgroundColor:"rgb(0, 0, 0, 0)",padding:"0"},caseSensitive:!0,searchWords:[x?x.toString():""],textToHighlight:y?y.toString():""}),p=()=>{var y;c.type1=void 0,c.type2=void 0,c.popUpSelect=[],o([]),(y=r.current)==null||y.emptyCondition(!0),t.setFieldsValue({type1:void 0})};return D.jsxs("div",{className:Qo.itemsCreated,children:[D.jsx("div",{className:Qo.classifyBox,children:D.jsxs(Z.Row,{gutter:8,className:Qo.rowBox,children:[D.jsxs(Z.Col,{span:12,className:Qo.labelLength,children:[Y("sys.import.category",{placeholder:"分类"}),":"]}),D.jsxs(Z.Col,{span:12,className:Qo.labelLength,children:[Y("sys.import.subCategory",{placeholder:"子分类"}),":"]}),D.jsx(Z.Col,{span:12,children:D.jsx(Z.Form,{form:t,children:D.jsx(Z.Form.Item,{name:"type1",children:D.jsx(Z.Select,{allowClear:!0,showSearch:!0,optionFilterProp:"label",value:c.type1||void 0,style:{width:"100%"},placeholder:Y("sys.label.selectOption",{placeholder:"请选择"}),suffixIcon:D.jsx(Ue,{type:"xia-mian",style:{color:"#333",pointerEvents:"none"}}),onChange:(y,x)=>{var E,k,T;c.type1=y,c.type2=void 0,c.fields=[],c.popUpSelect=[],c.sortColum=[],c.searchConditionData={base_item_id:(x==null?void 0:x.value)||"",base_item_name:(x==null?void 0:x.label)||"",object_id:"",object_name:"",relations:[]},(E=r.current)==null||E.emptyCondition(!0),y?((k=r.current)==null||k.setCondition(x,0),e.getInterface(y,"",!0)):(o([]),(T=r.current)==null||T.setCondition(x))},onSearch:y=>{a(y)},onBlur:()=>{a("")},filterOption:(y,x)=>x.label.toLowerCase().indexOf(y.toLowerCase())>=0,children:(g=e.advancedSearchClassify)==null?void 0:g.map(y=>D.jsx(Ox,{label:y.label,value:y.value,disabled:y.disabled,children:m(y.label,n)},y.value))})})})}),D.jsx(Z.Col,{span:12,children:D.jsx(Z.Select,{allowClear:!0,showSearch:!0,optionFilterProp:"label",value:c.type2||void 0,style:{width:"100%"},placeholder:Y("sys.label.selectOption",{placeholder:"请选择"}),suffixIcon:D.jsx(Ue,{type:"xia-mian",style:{color:"#333",pointerEvents:"none"}}),onChange:(y,x)=>{var E,k,T;c.type2=y,c.subcategoryApicode=(x==null?void 0:x.apicode)||"",(E=r.current)==null||E.emptyCondition(),y?((k=r.current)==null||k.setCondition(x,1),e.getAttribute(c.type1,y,!0)):((T=r.current)==null||T.setCondition("",1),e.getAttribute(c.type1))},onSearch:y=>{a(y)},onBlur:()=>{a("")},filterOption:(y,x)=>x.label.toLowerCase().indexOf(y.toLowerCase())>=0,children:i.map(y=>D.jsx(Ox,{label:y.label,value:y.value,apicode:y.apicode,disabled:y.disabled,children:m(y.label,n)},y.value))})})]})}),D.jsx("div",{className:Qo.materialCondition,children:D.jsx(cC,{ref:r,horizontalStyle:!0,typeData:c.typeData,subcategory:i,searchTree:l,cleanUpBtn:c.conditionObj&&!c.conditionObj.canDel&&c.conditionObj.searchType=="private",conditionObj:c.conditionObj,eliminateSearch:()=>{p()}})})]})},CW="_scrollBarAssembly_1gh57_1",EW="_buttonChangeTop_1gh57_6",kW="_iconBox_1gh57_22",TW="_topButton_1gh57_28",OW="_buttonChange_1gh57_6",AW="_rightButton_1gh57_56",Qr={scrollBarAssembly:CW,buttonChangeTop:EW,iconBox:kW,topButton:TW,buttonChange:OW,rightButton:AW},RW=e=>{var a;const t=F.useRef(null),r=_N(t),n=Br({scrollLeft:0,clientWidth:0,scrollWidth:0,scrollTop:0,clientHeight:0,scrollHeight:0});return F.useEffect(()=>{const i=()=>{var o,l,u,c,m,p;e.direction?(n.scrollTop=(o=t.current)==null?void 0:o.scrollTop,n.clientHeight=(l=t.current)==null?void 0:l.clientHeight,n.scrollHeight=(u=t.current)==null?void 0:u.scrollHeight):(n.scrollLeft=(c=t.current)==null?void 0:c.scrollLeft,n.clientWidth=(m=t.current)==null?void 0:m.clientWidth,n.scrollWidth=(p=t.current)==null?void 0:p.scrollWidth)};return i(),window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}},[(a=e.dataList)==null?void 0:a.length,r,e.resetButton]),D.jsxs("div",{className:Qr.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=>{ie.includes(i.target.className,"frontend-select-dropdown")||ie.includes(i.target.className,"frontend-select-item")||ie.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)&&D.jsx("div",{className:Te(Qr.columnBox,{[Qr.buttonChangeTop]:e.direction,[Qr.buttonChange]:!e.direction,[e.class]:e.class}),onClick:i=>{var o,l;i.stopPropagation(),e.direction?(o=t.current)==null||o.scrollTo({top:n.scrollTop-n.clientHeight,behavior:"smooth"}):(l=t.current)==null||l.scrollTo({left:n.scrollLeft-n.clientWidth,behavior:"smooth"})},children:e.direction?D.jsx(U8,{className:Qr.iconBox}):D.jsx(L8,{className:Qr.iconBox})}),e.children,!e.loading&&(e.direction?n.clientHeight+n.scrollTop+1<n.scrollHeight:n.clientWidth+n.scrollLeft<n.scrollWidth)&&D.jsx("div",{className:Te(Qr.columnBox,{[Qr.buttonChangeTop]:e.direction,[Qr.topButton]:e.direction,[Qr.buttonChange]:!e.direction,[Qr.rightButton]:!e.direction,[e.class]:e.class}),onClick:i=>{var o,l;i.stopPropagation(),e.direction?(o=t.current)==null||o.scrollTo({top:n.scrollTop+n.clientHeight,behavior:"smooth"}):(l=t.current)==null||l.scrollTo({left:n.scrollLeft+n.clientWidth,behavior:"smooth"})},children:e.direction?D.jsx(N8,{className:Qr.iconBox}):D.jsx(H8,{className:Qr.iconBox})})]})},PW="_plmPublicTree_1m137_1",DW="_treeListBox_1m137_1",MW="_onDisable_1m137_8",FW="_onHover_1m137_11",NW="_titleBox_1m137_17",IW="_name_1m137_21",LW="_btnBox_1m137_27",jW="_hoverStyle_1m137_35",hr={plmPublicTree:PW,treeListBox:DW,onDisable:MW,onHover:FW,titleBox:NW,name:IW,btnBox:LW,hoverStyle:jW},{TreeNode:Ax}=Z.Tree,{confirm:$W}=Z.Modal,zW=e=>{const t=F.useRef(),[r,n]=F.useState([]),[a,i]=F.useState([]),[o,l]=F.useState([]),u=Br({startDragObj:{}});F.useEffect(()=>(u.addVisible?c():document.onkeydown=null,()=>{document.onkeydown=null}),[u.addVisible]);const c=()=>{document.onkeydown=function(S){var f=window.event||S,h=f.keyCode||f.which;h==13&&!e.confirmLoading&&m()}};zs(()=>{let S=[];for(let f of e.treeCrumbs||[])S.push(f.id);i(S)});const m=async()=>{var h;const S=await((h=t.current)==null?void 0:h.validateFields()),f=await e.addRun({canDel:!0,folderType:u.treeObj.folderType,level:u.treeObj.level+1,name:S.name,parentId:u.treeObj.id,sort:u.treeObj.children&&u.treeObj.children.length.length>0?u.treeObj.children.length.length+1:1});f.warning?Z.message.warning(f.result):Z.message.success(f.result),u.addVisible=!1,e.getTreeList&&e.getTreeList()},p=(S,f="id")=>{var h=[];const v=_=>{for(var R=0,C=_.length;R<C;R++){const P=_[R];if(P.children&&P.children.length||P.conditionList&&!e.closeCondition){let M=[];P.conditionList&&!e.closeCondition?M=ie.concat(P.children||[],P.conditionList):M=P.children,h.push(P[f]),v(M)}}};return v(S),h},g=S=>{y(S,e.treeData),n(e.treeData.slice())},y=(S,f)=>f.forEach(h=>{h.id===S?h.isEditable=!0:h.isEditable=!1,h.name=h.defaultValue,h.children&&y(S,h.children),h.conditionList&&y(S,h.conditionList)}),x=(S,f)=>{E(f,S.target.value,e.treeData),n(e.treeData.slice())},E=(S,f,h)=>h.forEach(v=>{v.id===S&&(v.name=f),v.children&&E(S,f,v.children),v.conditionList&&E(S,f,v.conditionList)}),k=(S,f)=>{T(S,f,e.treeData),n(e.treeData.slice())},T=(S,f,h)=>h.forEach(v=>{v.isEditable=!1,v.id===S&&(v.name=f),v.children&&T(S,f,v.children),v.conditionList&&T(S,f,v.conditionList)}),w=S=>S==null?void 0:S.map(h=>{if(h.isEditable?h.title=D.jsxs("div",{className:hr.treeListBox,children:[D.jsxs("div",{className:hr.titleBox,children:[D.jsx(Ue,{type:h.content?"homesearch":ie.includes(a,h.id)?"content-open2":"content-fold",style:{cursor:"pointer",fontSize:"16px",color:"#333",padding:"3px",borderRadius:"1px"}}),D.jsx(Z.Input,{size:"small",maxLength:16,value:h.name,onChange:v=>{x(v,h.id)}})]}),D.jsxs("div",{className:hr.btnBox,children:[D.jsx(M8,{style:{marginRight:"5px"},className:hr.hoverStyle,onClick:v=>{v.stopPropagation(),k(h.id,h.defaultValue)}}),e.editLoading||e.editConditioLoading?D.jsx(cc,{spin:!0}):D.jsx(P8,{className:hr.hoverStyle,onClick:async v=>{v.stopPropagation(),h.name===u.treeName?k(h.id,h.defaultValue):(h.content?await e.conditionEdit({id:h.id,searchFolderId:h.searchFolderId,searchType:h.searchType,itemCode:h.itemCode,conditionName:h.name,conditionObject:h.conditionObject,content:h.content,sort:h.sort,canDel:h.canDel}):await e.editRun({id:h.id,parentId:h.parentId,name:h.name,folderType:h.folderType,sort:h.sort,canDel:h.canDel,level:h.level}),e.getTreeList&&e.getTreeList())}})]})]},h.id):h.title=D.jsxs("div",{className:hr.treeListBox,children:[D.jsxs("div",{className:hr.titleBox,children:[D.jsx(Ue,{type:h.content||h.searchType=="change"?"homesearch":ie.includes(a,h.id)?"content-open2":"content-fold",style:{cursor:"pointer",fontSize:"16px",color:"#333",padding:"3px",borderRadius:"1px"}}),D.jsx("div",{className:hr.name,title:h.name,children:D.jsx("span",{children:h.name})})]}),D.jsxs("div",{className:Te({[hr.btnBox]:!0,[hr.onHover]:!e.readOnly,[hr.onDisable]:e.readOnly}),children:[h.level<4&&h.isAuth&&D.jsx(rv,{className:hr.hoverStyle,onClick:v=>{v.preventDefault(),u.treeObj=h,u.addVisible=!0}}),h.level==1&&D.jsx("div",{onClick:v=>{v.stopPropagation()},children:D.jsx(Ue,{className:hr.hoverStyle,type:ie.intersection(p([h]),a).length==p([h]).length?"content-openmode":"content-open",style:{color:"#3C3C3C",cursor:"pointer",fontSize:"13px",marginLeft:"5px"},onClick:()=>{ie.intersection(p([h]),a).length==p([h]).length?i(ie.difference(a,p([h]))):i(ie.uniq(ie.concat(a,p([h]))))}})}),h.level!=1&&h.canDel&&D.jsx(j8,{className:hr.hoverStyle,style:{marginLeft:"5px"},onClick:v=>{v.stopPropagation(),$W(qj({title:Y("project.tab.plan.delete.tips.title.confirm",{placeholder:"确认"}),content:`${Y("sys.label.deleteConfirmation",{placeholder:"删除后将不可恢复"})},${Y("sys.label.confirmDelete",{placeholder:"请确认是否删除"})}?`,onOk(){return new Promise(async(_,R)=>{h.content?e.conditionDelete({id:h.id}).then(C=>{C.warning?Z.message.warning(C.message):Z.message.success(C.message),_(!0),e.getTreeList&&e.getTreeList(h.id)}).catch(()=>{_(!0)}):e.deleteFolder({id:h.id}).then(C=>{C.warning?Z.message.warning(C.message):Z.message.success(C.message),_(!0),e.getTreeList&&e.getTreeList()}).catch(()=>{_(!0)})})}}))}}),h.level!=1&&(h.itemCode?h.isConditionNameAuth:h.isAuth)&&D.jsx(Ue,{className:hr.hoverStyle,type:"content-edit",style:{color:"#3C3C3C",cursor:"pointer",fontSize:"12px",marginLeft:"5px"},onClick:v=>{v.stopPropagation(),u.treeName=h.name,g(h.id)}})]})]},h.id),h.children||h.conditionList&&!e.closeCondition){let v=[];return h.conditionList&&!e.closeCondition?v=ie.concat(h.children||[],h.conditionList):v=h.children,D.jsx(Ax,{title:h.title,dataRef:h,children:w(v)},h.id)}return D.jsx(Ax,{title:h.title,dataRef:h},h.id)});return D.jsxs("div",{className:hr.plmPublicTree,children:[D.jsx(Z.Tree,{switcherIcon:D.jsx(Ue,{type:"xia-mian",style:{color:"#3C3C3C",cursor:"pointer"}}),draggable:e.closeDrag?!1:{icon:!1},expandedKeys:a,selectedKeys:e.selectedKeys,onExpand:S=>{i(S)},onSelect:(S,f)=>{var h,v,_;if(e.closeCondition){if(((h=f.node.dataRef)==null?void 0:h.folderType)==="change")return}else if(!((v=f.node.dataRef)!=null&&v.content)&&((_=f.node.dataRef)==null?void 0:_.searchType)!=="change")return;e.onSelect&&e.onSelect(S,f)},allowDrop:e.closeDrag?void 0:({dropNode:S,dropPosition:f})=>f!=-1&&u.startDragObj.folderType==S.dataRef.folderType&&(u.startDragObj.id.length>S.key.length&&f==0&&u.startDragObj.level-S.dataRef.level==1||u.startDragObj.id.length==S.key.length&&f!=0),onDragStart:e.closeDrag?void 0:S=>{u.startDragObj=S.node.dataRef},children:w(e.treeData)}),D.jsx(To,{modalTitle:Y("sys.label.createFolder",{placeholder:"新建文件夹"}),mask:!1,width:400,visible:u.addVisible,maskClosable:!1,okText:Y("project.tab.plan.details.window.save",{placeholder:"保存"}),onCancel:()=>{u.addVisible=!1},style:{top:"25vh"},className:hr.container,destroyOnClose:!0,onOk:async()=>{m()},confirmLoading:e.confirmLoading,children:D.jsx(XS,{ref:t,size:"middle",labelAlign:"left",labelCol:{style:{width:80}},children:D.jsx(lC,{name:"name",label:Y("sys.label.name",{placeholder:"名称"}),content:{type:"Input",props:{maxLength:16,placeholder:Y("sys.name.enterName",{placeholder:"请输入名称"})}},rules:[{required:!0,message:Y("sys.category.nameEmpty",{placeholder:"名称不能为空"})}]})})})]})},BW="1.0.5",HW=F.createContext({}),UW={classNames:{},styles:{},className:"",style:{}},Ws=e=>{const t=F.useContext(HW);return F.useMemo(()=>({...UW,...t[e]}),[t[e]])};function nt(){return nt=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},nt.apply(null,arguments)}function ga(){const{getPrefixCls:e,direction:t,csp:r,iconPrefixCls:n,theme:a}=F.useContext(Z.ConfigProvider.ConfigContext);return{theme:a,getPrefixCls:e,direction:t,csp:r,iconPrefixCls:n}}process.env.NODE_ENV;function Zn(e){var t=ee.useRef();t.current=e;var r=ee.useCallback(function(){for(var n,a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return(n=t.current)===null||n===void 0?void 0:n.call.apply(n,[t].concat(i))},[]);return r}var Rx=process.env.NODE_ENV!=="test"&&ji()?ee.useLayoutEffect:ee.useEffect,Nv=function(t,r){var n=ee.useRef(!0);Rx(function(){return t(n.current)},r),Rx(function(){return n.current=!1,function(){n.current=!0}},[])},Px=function(t,r){Nv(function(n){if(!n)return t()},r)};function ec(e){var t=ee.useRef(!1),r=ee.useState(e),n=Ge(r,2),a=n[0],i=n[1];ee.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function o(l,u){u&&t.current||i(l)}return[a,o]}function ug(e){return e!==void 0}function _h(e,t){var r=t||{},n=r.defaultValue,a=r.value,i=r.onChange,o=r.postState,l=ec(function(){return ug(a)?a:ug(n)?typeof n=="function"?n():n:typeof e=="function"?e():e}),u=Ge(l,2),c=u[0],m=u[1],p=a!==void 0?a:c,g=o?o(p):p,y=Zn(i),x=ec([p]),E=Ge(x,2),k=E[0],T=E[1];Px(function(){var S=k[0];c!==S&&y(c,S)},[k]),Px(function(){ug(a)||m(a)},[a]);var w=Zn(function(S,f){m(S,f),T([p],f)});return[g,w]}var zd={exports:{}},xt={};/**
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 Dx;function qW(){if(Dx)return xt;Dx=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"),o=Symbol.for("react.context"),l=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),x;x=Symbol.for("react.module.reference");function E(k){if(typeof k=="object"&&k!==null){var T=k.$$typeof;switch(T){case e:switch(k=k.type,k){case r:case a:case n:case c:case m:return k;default:switch(k=k&&k.$$typeof,k){case l:case o:case u:case g:case p:case i:return k;default:return T}}case t:return T}}}return xt.ContextConsumer=o,xt.ContextProvider=i,xt.Element=e,xt.ForwardRef=u,xt.Fragment=r,xt.Lazy=g,xt.Memo=p,xt.Portal=t,xt.Profiler=a,xt.StrictMode=n,xt.Suspense=c,xt.SuspenseList=m,xt.isAsyncMode=function(){return!1},xt.isConcurrentMode=function(){return!1},xt.isContextConsumer=function(k){return E(k)===o},xt.isContextProvider=function(k){return E(k)===i},xt.isElement=function(k){return typeof k=="object"&&k!==null&&k.$$typeof===e},xt.isForwardRef=function(k){return E(k)===u},xt.isFragment=function(k){return E(k)===r},xt.isLazy=function(k){return E(k)===g},xt.isMemo=function(k){return E(k)===p},xt.isPortal=function(k){return E(k)===t},xt.isProfiler=function(k){return E(k)===a},xt.isStrictMode=function(k){return E(k)===n},xt.isSuspense=function(k){return E(k)===c},xt.isSuspenseList=function(k){return E(k)===m},xt.isValidElementType=function(k){return typeof k=="string"||typeof k=="function"||k===r||k===a||k===n||k===c||k===m||k===y||typeof k=="object"&&k!==null&&(k.$$typeof===g||k.$$typeof===p||k.$$typeof===i||k.$$typeof===o||k.$$typeof===u||k.$$typeof===x||k.getModuleId!==void 0)},xt.typeOf=E,xt}var St={};/**
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 Mx;function WW(){return Mx||(Mx=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"),o=Symbol.for("react.context"),l=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),x=!1,E=!1,k=!1,T=!1,w=!1,S;S=Symbol.for("react.module.reference");function f(oe){return!!(typeof oe=="string"||typeof oe=="function"||oe===r||oe===a||w||oe===n||oe===c||oe===m||T||oe===y||x||E||k||typeof oe=="object"&&oe!==null&&(oe.$$typeof===g||oe.$$typeof===p||oe.$$typeof===i||oe.$$typeof===o||oe.$$typeof===u||oe.$$typeof===S||oe.getModuleId!==void 0))}function h(oe){if(typeof oe=="object"&&oe!==null){var De=oe.$$typeof;switch(De){case e:var Je=oe.type;switch(Je){case r:case a:case n:case c:case m:return Je;default:var Ct=Je&&Je.$$typeof;switch(Ct){case l:case o:case u:case g:case p:case i:return Ct;default:return De}}case t:return De}}}var v=o,_=i,R=e,C=u,P=r,M=g,q=p,L=t,N=a,j=n,O=c,I=m,z=!1,B=!1;function H(oe){return z||(z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function U(oe){return B||(B=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function J(oe){return h(oe)===o}function re(oe){return h(oe)===i}function ne(oe){return typeof oe=="object"&&oe!==null&&oe.$$typeof===e}function se(oe){return h(oe)===u}function ce(oe){return h(oe)===r}function le(oe){return h(oe)===g}function ye(oe){return h(oe)===p}function we(oe){return h(oe)===t}function Ee(oe){return h(oe)===a}function Le(oe){return h(oe)===n}function he(oe){return h(oe)===c}function qe(oe){return h(oe)===m}St.ContextConsumer=v,St.ContextProvider=_,St.Element=R,St.ForwardRef=C,St.Fragment=P,St.Lazy=M,St.Memo=q,St.Portal=L,St.Profiler=N,St.StrictMode=j,St.Suspense=O,St.SuspenseList=I,St.isAsyncMode=H,St.isConcurrentMode=U,St.isContextConsumer=J,St.isContextProvider=re,St.isElement=ne,St.isForwardRef=se,St.isFragment=ce,St.isLazy=le,St.isMemo=ye,St.isPortal=we,St.isProfiler=Ee,St.isStrictMode=Le,St.isSuspense=he,St.isSuspenseList=qe,St.isValidElementType=f,St.typeOf=h}()),St}var Fx;function VW(){return Fx||(Fx=1,process.env.NODE_ENV==="production"?zd.exports=qW():zd.exports=WW()),zd.exports}var lg=VW(),YW=Symbol.for("react.element"),GW=Symbol.for("react.transitional.element"),KW=Symbol.for("react.fragment");function XW(e){return e&&Mt(e)==="object"&&(e.$$typeof===YW||e.$$typeof===GW)&&e.type===KW}var ZW=Number(F.version.split(".")[0]),JW=function(t,r){typeof t=="function"?t(r):Mt(t)==="object"&&t&&"current"in t&&(t.current=r)},QW=function(t){var r,n;if(!t)return!1;if(dC(t)&&ZW>=19)return!0;var a=lg.isMemo(t)?t.type.type:t.type;return!(typeof a=="function"&&!((r=a.prototype)!==null&&r!==void 0&&r.render)&&a.$$typeof!==lg.ForwardRef||typeof t=="function"&&!((n=t.prototype)!==null&&n!==void 0&&n.render)&&t.$$typeof!==lg.ForwardRef)};function dC(e){return F.isValidElement(e)&&!XW(e)}var eV=function(t){if(t&&dC(t)){var r=t;return r.props.propertyIsEnumerable("ref")?r.props.ref:r.ref}return null};function tV(e,t){for(var r=e,n=0;n<t.length;n+=1){if(r==null)return;r=r[t[n]]}return r}function rV(e){if(Array.isArray(e))return Lg(e)}function nV(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function aV(){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 Eo(e){return rV(e)||nV(e)||f8(e)||aV()}const yc=F.createContext(null);function Nx(e){const{getDropContainer:t,className:r,prefixCls:n,children:a}=e,{disabled:i}=F.useContext(yc),[o,l]=F.useState(),[u,c]=F.useState(null);if(F.useEffect(()=>{const g=t==null?void 0:t();o!==g&&l(g)},[t]),F.useEffect(()=>{if(o){const g=()=>{c(!0)},y=k=>{k.preventDefault()},x=k=>{k.relatedTarget||c(!1)},E=k=>{c(!1),k.preventDefault()};return document.addEventListener("dragenter",g),document.addEventListener("dragover",y),document.addEventListener("dragleave",x),document.addEventListener("drop",E),()=>{document.removeEventListener("dragenter",g),document.removeEventListener("dragover",y),document.removeEventListener("dragleave",x),document.removeEventListener("drop",E)}}},[!!o]),!(t&&o&&!i))return null;const p=`${n}-drop-area`;return zl.createPortal(F.createElement("div",{className:Te(p,r,{[`${p}-on-body`]:o.tagName==="BODY"}),style:{display:u?"block":"none"}},a),o)}var fC=F.createContext({});const ir=Math.round;function cg(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 Ix=(e,t,r)=>r===0?e:e/100;function bl(e,t){const r=t||255;return e>r?r:e<0?0:e}class Hr{constructor(t){Ae(this,"isValid",!0),Ae(this,"r",0),Ae(this,"g",0),Ae(this,"b",0),Ae(this,"a",1),Ae(this,"_h",void 0),Ae(this,"_s",void 0),Ae(this,"_l",void 0),Ae(this,"_v",void 0),Ae(this,"_max",void 0),Ae(this,"_min",void 0),Ae(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 Hr)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=bl(t.r),this.g=bl(t.g),this.b=bl(t.b),this.a=typeof t.a=="number"?bl(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 o=i/255;return o<=.03928?o/12.92:Math.pow((o+.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=ir(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=l=>(n[l]-this[l])*a+this[l],o={r:ir(i("r")),g:ir(i("g")),b:ir(i("b")),a:ir(i("a")*100)/100};return this._c(o)}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=>ir((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=ir(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=ir(this.getSaturation()*100),n=ir(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]=bl(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 g=ir(n*255);this.r=g,this.g=g,this.b=g}let i=0,o=0,l=0;const u=t/60,c=(1-Math.abs(2*n-1))*r,m=c*(1-Math.abs(u%2-1));u>=0&&u<1?(i=c,o=m):u>=1&&u<2?(i=m,o=c):u>=2&&u<3?(o=c,l=m):u>=3&&u<4?(o=m,l=c):u>=4&&u<5?(i=m,l=c):u>=5&&u<6&&(i=c,l=m);const p=n-c/2;this.r=ir((i+p)*255),this.g=ir((o+p)*255),this.b=ir((l+p)*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=ir(n*255);if(this.r=i,this.g=i,this.b=i,r<=0)return;const o=t/60,l=Math.floor(o),u=o-l,c=ir(n*(1-r)*255),m=ir(n*(1-r*u)*255),p=ir(n*(1-r*(1-u))*255);switch(l){case 0:this.g=p,this.b=c;break;case 1:this.r=m,this.b=c;break;case 2:this.r=c,this.b=p;break;case 3:this.r=c,this.g=m;break;case 4:this.r=p,this.g=c;break;case 5:default:this.g=c,this.b=m;break}}fromHsvString(t){const r=cg(t,Ix);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){const r=cg(t,Ix);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){const r=cg(t,(n,a)=>a.includes("%")?ir(n/100*255):n);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}}var Bd=2,Lx=.16,iV=.05,oV=.05,sV=.15,hC=5,pC=4,uV=[{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 jx(e,t,r){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-Bd*t:Math.round(e.h)+Bd*t:n=r?Math.round(e.h)+Bd*t:Math.round(e.h)-Bd*t,n<0?n+=360:n>=360&&(n-=360),n}function $x(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-Lx*t:t===pC?n=e.s+Lx:n=e.s+iV*t,n>1&&(n=1),r&&t===hC&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(n*100)/100}function zx(e,t,r){var n;return r?n=e.v+oV*t:n=e.v-sV*t,n=Math.max(0,Math.min(1,n)),Math.round(n*100)/100}function lV(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=new Hr(e),a=n.toHsv(),i=hC;i>0;i-=1){var o=new Hr({h:jx(a,i,!0),s:$x(a,i,!0),v:zx(a,i,!0)});r.push(o)}r.push(n);for(var l=1;l<=pC;l+=1){var u=new Hr({h:jx(a,l),s:$x(a,l),v:zx(a,l)});r.push(u)}return t.theme==="dark"?uV.map(function(c){var m=c.index,p=c.amount;return new Hr(t.backgroundColor||"#141414").mix(r[m],p).toHexString()}):r.map(function(c){return c.toHexString()})}var b1=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];b1.primary=b1[5];function mC(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function cV(e){return mC(e)instanceof ShadowRoot}function dV(e){return cV(e)?mC(e):null}function fV(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function hV(e,t){ko(e,"[@ant-design/icons] ".concat(t))}function Bx(e){return Mt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Mt(e.icon)==="object"||typeof e.icon=="function")}function Hx(){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[fV(r)]=n}return t},{})}function y1(e,t,r){return r?F.createElement(e.tag,pe(pe({key:t},Hx(e.attrs)),r),(e.children||[]).map(function(n,a){return y1(n,"".concat(t,"-").concat(e.tag,"-").concat(a))})):F.createElement(e.tag,pe({key:t},Hx(e.attrs)),(e.children||[]).map(function(n,a){return y1(n,"".concat(t,"-").concat(e.tag,"-").concat(a))}))}function gC(e){return lV(e)[0]}function vC(e){return e?Array.isArray(e)?e:[e]:[]}var pV=`
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
- `,mV=function(t){var r=F.useContext(fC),n=r.csp,a=r.prefixCls,i=r.layer,o=pV;a&&(o=o.replace(/anticon/g,a)),i&&(o="@layer ".concat(i,` {
439
- `).concat(o,`
440
- }`)),F.useEffect(function(){var l=t.current,u=dV(l);bo(o,"@ant-design-icons",{prepend:!i,csp:n,attachTo:u})},[])},gV=["icon","className","onClick","style","primaryColor","secondaryColor"],Il={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function vV(e){var t=e.primaryColor,r=e.secondaryColor;Il.primaryColor=t,Il.secondaryColor=r||gC(t),Il.calculated=!!r}function bV(){return pe({},Il)}var Vs=function(t){var r=t.icon,n=t.className,a=t.onClick,i=t.style,o=t.primaryColor,l=t.secondaryColor,u=Ii(t,gV),c=ee.useRef(),m=Il;if(o&&(m={primaryColor:o,secondaryColor:l||gC(o)}),mV(c),hV(Bx(r),"icon should be icon definiton, but got ".concat(r)),!Bx(r))return null;var p=r;return p&&typeof p.icon=="function"&&(p=pe(pe({},p),{},{icon:p.icon(m.primaryColor,m.secondaryColor)})),y1(p.icon,"svg-".concat(p.name),pe(pe({className:n,onClick:a,style:i,"data-icon":p.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},u),{},{ref:c}))};Vs.displayName="IconReact";Vs.getTwoToneColors=bV;Vs.setTwoToneColors=vV;function bC(e){var t=vC(e),r=Ge(t,2),n=r[0],a=r[1];return Vs.setTwoToneColors({primaryColor:n,secondaryColor:a})}function yV(){var e=Vs.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var _V=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];bC(b1.primary);var Xt=ee.forwardRef(function(e,t){var r=e.className,n=e.icon,a=e.spin,i=e.rotate,o=e.tabIndex,l=e.onClick,u=e.twoToneColor,c=Ii(e,_V),m=ee.useContext(fC),p=m.prefixCls,g=p===void 0?"anticon":p,y=m.rootClassName,x=Te(y,g,Ae(Ae({},"".concat(g,"-").concat(n.name),!!n.name),"".concat(g,"-spin"),!!a||n.name==="loading"),r),E=o;E===void 0&&l&&(E=-1);var k=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,T=vC(u),w=Ge(T,2),S=w[0],f=w[1];return ee.createElement("span",nt({role:"img","aria-label":n.name},c,{ref:t,tabIndex:E,onClick:l,className:x}),ee.createElement(Vs,{icon:n,primaryColor:S,secondaryColor:f,style:k}))});Xt.displayName="AntdIcon";Xt.getTwoToneColor=yV;Xt.setTwoToneColor=bC;var wV=function(t,r){return ee.createElement(Xt,nt({},t,{ref:r,icon:QD}))},yC=ee.forwardRef(wV);process.env.NODE_ENV!=="production"&&(yC.displayName="ArrowUpOutlined");var xV=function(t,r){return ee.createElement(Xt,nt({},t,{ref:r,icon:eM}))},_C=ee.forwardRef(xV);process.env.NODE_ENV!=="production"&&(_C.displayName="AudioMutedOutlined");var SV=function(t,r){return ee.createElement(Xt,nt({},t,{ref:r,icon:tM}))},wC=ee.forwardRef(SV);process.env.NODE_ENV!=="production"&&(wC.displayName="AudioOutlined");var CV=function(t,r){return ee.createElement(Xt,nt({},t,{ref:r,icon:uM}))},xC=ee.forwardRef(CV);process.env.NODE_ENV!=="production"&&(xC.displayName="ClearOutlined");var EV=function(t,r){return ee.createElement(Xt,nt({},t,{ref:r,icon:lM}))},SC=ee.forwardRef(EV);process.env.NODE_ENV!=="production"&&(SC.displayName="CloseCircleFilled");var kV=function(t,r){return ee.createElement(Xt,nt({},t,{ref:r,icon:D8}))},CC=ee.forwardRef(kV);process.env.NODE_ENV!=="production"&&(CC.displayName="CloseOutlined");var TV=function(t,r){return ee.createElement(Xt,nt({},t,{ref:r,icon:mM}))},EC=ee.forwardRef(TV);process.env.NODE_ENV!=="production"&&(EC.displayName="EllipsisOutlined");var OV=function(t,r){return ee.createElement(Xt,nt({},t,{ref:r,icon:gM}))},kC=ee.forwardRef(OV);process.env.NODE_ENV!=="production"&&(kC.displayName="FileExcelFilled");var AV=function(t,r){return ee.createElement(Xt,nt({},t,{ref:r,icon:vM}))},TC=ee.forwardRef(AV);process.env.NODE_ENV!=="production"&&(TC.displayName="FileImageFilled");var RV=function(t,r){return ee.createElement(Xt,nt({},t,{ref:r,icon:bM}))},OC=ee.forwardRef(RV);process.env.NODE_ENV!=="production"&&(OC.displayName="FileMarkdownFilled");var PV=function(t,r){return ee.createElement(Xt,nt({},t,{ref:r,icon:yM}))},AC=ee.forwardRef(PV);process.env.NODE_ENV!=="production"&&(AC.displayName="FilePdfFilled");var DV=function(t,r){return ee.createElement(Xt,nt({},t,{ref:r,icon:_M}))},RC=ee.forwardRef(DV);process.env.NODE_ENV!=="production"&&(RC.displayName="FilePptFilled");var MV=function(t,r){return ee.createElement(Xt,nt({},t,{ref:r,icon:wM}))},PC=ee.forwardRef(MV);process.env.NODE_ENV!=="production"&&(PC.displayName="FileTextFilled");var FV=function(t,r){return ee.createElement(Xt,nt({},t,{ref:r,icon:xM}))},DC=ee.forwardRef(FV);process.env.NODE_ENV!=="production"&&(DC.displayName="FileWordFilled");var NV=function(t,r){return ee.createElement(Xt,nt({},t,{ref:r,icon:SM}))},MC=ee.forwardRef(NV);process.env.NODE_ENV!=="production"&&(MC.displayName="FileZipFilled");var IV=function(t,r){return ee.createElement(Xt,nt({},t,{ref:r,icon:I8}))},FC=ee.forwardRef(IV);process.env.NODE_ENV!=="production"&&(FC.displayName="LeftOutlined");var LV=function(t,r){return ee.createElement(Xt,nt({},t,{ref:r,icon:z8}))},NC=ee.forwardRef(LV);process.env.NODE_ENV!=="production"&&(NC.displayName="PlusOutlined");var jV=function(t,r){return ee.createElement(Xt,nt({},t,{ref:r,icon:B8}))},IC=ee.forwardRef(jV);process.env.NODE_ENV!=="production"&&(IC.displayName="RightOutlined");function Ux(e){return e instanceof HTMLElement||e instanceof SVGElement}function $V(e){return e&&Mt(e)==="object"&&Ux(e.nativeElement)?e.nativeElement:Ux(e)?e:null}function zV(e){var t=$V(e);if(t)return t;if(e instanceof F.Component){var r;return(r=zl.findDOMNode)===null||r===void 0?void 0:r.call(zl,e)}return null}var BV=ee.createContext({});function ya(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qx(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,d8(n.key),n)}}function _a(e,t,r){return t&&qx(e.prototype,t),r&&qx(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _1(e,t){return _1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},_1(e,t)}function wh(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&&_1(e,t)}function Bf(e){return Bf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Bf(e)}function LC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(LC=function(){return!!e})()}function wo(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function HV(e,t){if(t&&(Mt(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wo(e)}function xh(e){var t=LC();return function(){var r,n=Bf(e);if(t){var a=Bf(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return HV(this,r)}}var UV=function(e){wh(r,e);var t=xh(r);function r(){return ya(this,r),t.apply(this,arguments)}return _a(r,[{key:"render",value:function(){return this.props.children}}]),r}(ee.Component);function qV(e){var t=ee.useReducer(function(l){return l+1},0),r=Ge(t,2),n=r[1],a=ee.useRef(e),i=Zn(function(){return a.current}),o=Zn(function(l){a.current=typeof l=="function"?l(a.current):l,n()});return[i,o]}var Si="none",Hd="appear",Ud="enter",qd="leave",Wx="none",Bn="prepare",ds="start",fs="active",Iv="end",jC="prepared";function Vx(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 WV(e,t){var r={animationend:Vx("Animation","AnimationEnd"),transitionend:Vx("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var VV=WV(ji(),typeof window<"u"?window:{}),$C={};if(ji()){var YV=document.createElement("div");$C=YV.style}var Wd={};function zC(e){if(Wd[e])return Wd[e];var t=VV[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 $C)return Wd[e]=t[i],Wd[e]}return""}var BC=zC("animationend"),HC=zC("transitionend"),UC=!!(BC&&HC),Yx=BC||"animationend",Gx=HC||"transitionend";function Kx(e,t){if(!e)return null;if(Mt(e)==="object"){var r=t.replace(/-\w/g,function(n){return n[1].toUpperCase()});return e[r]}return"".concat(e,"-").concat(t)}const GV=function(e){var t=F.useRef();function r(a){a&&(a.removeEventListener(Gx,e),a.removeEventListener(Yx,e))}function n(a){t.current&&t.current!==a&&r(t.current),a&&a!==t.current&&(a.addEventListener(Gx,e),a.addEventListener(Yx,e),t.current=a)}return ee.useEffect(function(){return function(){r(t.current)}},[]),[n,r]};var qC=ji()?F.useLayoutEffect:F.useEffect,WC=function(t){return+setTimeout(t,16)},VC=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(WC=function(t){return window.requestAnimationFrame(t)},VC=function(t){return window.cancelAnimationFrame(t)});var Xx=0,Sh=new Map;function YC(e){Sh.delete(e)}var Hf=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Xx+=1;var n=Xx;function a(i){if(i===0)YC(n),t();else{var o=WC(function(){a(i-1)});Sh.set(n,o)}}return a(r),n};Hf.cancel=function(e){var t=Sh.get(e);return YC(e),VC(t)};process.env.NODE_ENV!=="production"&&(Hf.ids=function(){return Sh});const KV=function(){var e=ee.useRef(null);function t(){Hf.cancel(e.current)}function r(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var i=Hf(function(){a<=1?n({isCanceled:function(){return i!==e.current}}):r(n,a-1)});e.current=i}return ee.useEffect(function(){return function(){t()}},[]),[r,t]};var XV=[Bn,ds,fs,Iv],ZV=[Bn,jC],GC=!1,JV=!0;function KC(e){return e===fs||e===Iv}const QV=function(e,t,r){var n=ec(Wx),a=Ge(n,2),i=a[0],o=a[1],l=KV(),u=Ge(l,2),c=u[0],m=u[1];function p(){o(Bn,!0)}var g=t?ZV:XV;return qC(function(){if(i!==Wx&&i!==Iv){var y=g.indexOf(i),x=g[y+1],E=r(i);E===GC?o(x,!0):x&&c(function(k){function T(){k.isCanceled()||o(x,!0)}E===!0?T():Promise.resolve(E).then(T)})}},[e,i]),ee.useEffect(function(){return function(){m()}},[]),[p,i]};function eY(e,t,r,n){var a=n.motionEnter,i=a===void 0?!0:a,o=n.motionAppear,l=o===void 0?!0:o,u=n.motionLeave,c=u===void 0?!0:u,m=n.motionDeadline,p=n.motionLeaveImmediately,g=n.onAppearPrepare,y=n.onEnterPrepare,x=n.onLeavePrepare,E=n.onAppearStart,k=n.onEnterStart,T=n.onLeaveStart,w=n.onAppearActive,S=n.onEnterActive,f=n.onLeaveActive,h=n.onAppearEnd,v=n.onEnterEnd,_=n.onLeaveEnd,R=n.onVisibleChanged,C=ec(),P=Ge(C,2),M=P[0],q=P[1],L=qV(Si),N=Ge(L,2),j=N[0],O=N[1],I=ec(null),z=Ge(I,2),B=z[0],H=z[1],U=j(),J=F.useRef(!1),re=F.useRef(null);function ne(){return r()}var se=F.useRef(!1);function ce(){O(Si),H(null,!0)}var le=Zn(function(Ne){var Oe=j();if(Oe!==Si){var at=ne();if(!(Ne&&!Ne.deadline&&Ne.target!==at)){var Pr=se.current,Wr;Oe===Hd&&Pr?Wr=h==null?void 0:h(at,Ne):Oe===Ud&&Pr?Wr=v==null?void 0:v(at,Ne):Oe===qd&&Pr&&(Wr=_==null?void 0:_(at,Ne)),Pr&&Wr!==!1&&ce()}}}),ye=GV(le),we=Ge(ye,1),Ee=we[0],Le=function(Oe){switch(Oe){case Hd:return Ae(Ae(Ae({},Bn,g),ds,E),fs,w);case Ud:return Ae(Ae(Ae({},Bn,y),ds,k),fs,S);case qd:return Ae(Ae(Ae({},Bn,x),ds,T),fs,f);default:return{}}},he=ee.useMemo(function(){return Le(U)},[U]),qe=QV(U,!e,function(Ne){if(Ne===Bn){var Oe=he[Bn];return Oe?Oe(ne()):GC}if(Je in he){var at;H(((at=he[Je])===null||at===void 0?void 0:at.call(he,ne(),null))||null)}return Je===fs&&U!==Si&&(Ee(ne()),m>0&&(clearTimeout(re.current),re.current=setTimeout(function(){le({deadline:!0})},m))),Je===jC&&ce(),JV}),oe=Ge(qe,2),De=oe[0],Je=oe[1],Ct=KC(Je);se.current=Ct;var Et=F.useRef(null);qC(function(){if(!(J.current&&Et.current===t)){q(t);var Ne=J.current;J.current=!0;var Oe;!Ne&&t&&l&&(Oe=Hd),Ne&&t&&i&&(Oe=Ud),(Ne&&!t&&c||!Ne&&p&&!t&&c)&&(Oe=qd);var at=Le(Oe);Oe&&(e||at[Bn])?(O(Oe),De()):O(Si),Et.current=t}},[t]),F.useEffect(function(){(U===Hd&&!l||U===Ud&&!i||U===qd&&!c)&&O(Si)},[l,i,c]),F.useEffect(function(){return function(){J.current=!1,clearTimeout(re.current)}},[]);var Fe=ee.useRef(!1);F.useEffect(function(){M&&(Fe.current=!0),M!==void 0&&U===Si&&((Fe.current||M)&&(R==null||R(M)),Fe.current=!0)},[M,U]);var We=B;return he[Bn]&&Je===ds&&(We=pe({transition:"none"},We)),[U,Je,We,M??t]}function tY(e){var t=e;Mt(e)==="object"&&(t=e.transitionSupport);function r(a,i){return!!(a.motionName&&t&&i!==!1)}var n=ee.forwardRef(function(a,i){var o=a.visible,l=o===void 0?!0:o,u=a.removeOnLeave,c=u===void 0?!0:u,m=a.forceRender,p=a.children,g=a.motionName,y=a.leavedClassName,x=a.eventProps,E=ee.useContext(BV),k=E.motion,T=r(a,k),w=F.useRef(),S=F.useRef();function f(){try{return w.current instanceof HTMLElement?w.current:zV(S.current)}catch{return null}}var h=eY(T,l,f,a),v=Ge(h,4),_=v[0],R=v[1],C=v[2],P=v[3],M=ee.useRef(P);P&&(M.current=!0);var q=ee.useCallback(function(z){w.current=z,JW(i,z)},[i]),L,N=pe(pe({},x),{},{visible:l});if(!p)L=null;else if(_===Si)P?L=p(pe({},N),q):!c&&M.current&&y?L=p(pe(pe({},N),{},{className:y}),q):m||!c&&!y?L=p(pe(pe({},N),{},{style:{display:"none"}}),q):L=null;else{var j;R===Bn?j="prepare":KC(R)?j="active":R===ds&&(j="start");var O=Kx(g,"".concat(_,"-").concat(j));L=p(pe(pe({},N),{},{className:Te(Kx(g,_),Ae(Ae({},O,O&&j),g,typeof g=="string")),style:C}),q)}if(ee.isValidElement(L)&&QW(L)){var I=eV(L);I||(L=ee.cloneElement(L,{ref:q}))}return ee.createElement(UV,{ref:S},L)});return n.displayName="CSSMotion",n}const XC=tY(UC);var w1="add",x1="keep",S1="remove",dg="removed";function rY(e){var t;return e&&Mt(e)==="object"&&"key"in e?t=e:t={key:e},pe(pe({},t),{},{key:String(t.key)})}function C1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(rY)}function nY(){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=C1(e),o=C1(t);i.forEach(function(c){for(var m=!1,p=n;p<a;p+=1){var g=o[p];if(g.key===c.key){n<p&&(r=r.concat(o.slice(n,p).map(function(y){return pe(pe({},y),{},{status:w1})})),n=p),r.push(pe(pe({},g),{},{status:x1})),n+=1,m=!0;break}}m||r.push(pe(pe({},c),{},{status:S1}))}),n<a&&(r=r.concat(o.slice(n).map(function(c){return pe(pe({},c),{},{status:w1})})));var l={};r.forEach(function(c){var m=c.key;l[m]=(l[m]||0)+1});var u=Object.keys(l).filter(function(c){return l[c]>1});return u.forEach(function(c){r=r.filter(function(m){var p=m.key,g=m.status;return p!==c||g!==S1}),r.forEach(function(m){m.key===c&&(m.status=x1)})}),r}var aY=["component","children","onVisibleChanged","onAllRemoved"],iY=["status"],oY=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function sY(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:XC,r=function(n){wh(i,n);var a=xh(i);function i(){var o;ya(this,i);for(var l=arguments.length,u=new Array(l),c=0;c<l;c++)u[c]=arguments[c];return o=a.call.apply(a,[this].concat(u)),Ae(wo(o),"state",{keyEntities:[]}),Ae(wo(o),"removeKey",function(m){o.setState(function(p){var g=p.keyEntities.map(function(y){return y.key!==m?y:pe(pe({},y),{},{status:dg})});return{keyEntities:g}},function(){var p=o.state.keyEntities,g=p.filter(function(y){var x=y.status;return x!==dg}).length;g===0&&o.props.onAllRemoved&&o.props.onAllRemoved()})}),o}return _a(i,[{key:"render",value:function(){var l=this,u=this.state.keyEntities,c=this.props,m=c.component,p=c.children,g=c.onVisibleChanged;c.onAllRemoved;var y=Ii(c,aY),x=m||ee.Fragment,E={};return oY.forEach(function(k){E[k]=y[k],delete y[k]}),delete y.keys,ee.createElement(x,y,u.map(function(k,T){var w=k.status,S=Ii(k,iY),f=w===w1||w===x1;return ee.createElement(t,nt({},E,{key:S.key,visible:f,eventProps:S,onVisibleChanged:function(v){g==null||g(v,{key:S.key}),v||l.removeKey(S.key)}}),function(h,v){return p(pe(pe({},h),{},{index:T}),v)})}))}}],[{key:"getDerivedStateFromProps",value:function(l,u){var c=l.keys,m=u.keyEntities,p=C1(c),g=nY(m,p);return{keyEntities:g.filter(function(y){var x=m.find(function(E){var k=E.key;return y.key===k});return!(x&&x.status===dg&&y.status===S1)})}}}]),i}(ee.Component);return Ae(r,"defaultProps",{component:"div"}),r}const uY=sY(UC);function lY(e,t){const{children:r,upload:n,rootClassName:a}=e,i=F.useRef(null);return F.useImperativeHandle(t,()=>i.current),F.createElement(Z.Upload,nt({},n,{showUploadList:!1,rootClassName:a,ref:i}),r)}const ZC=F.forwardRef(lY);function tc(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 cY="%";function E1(e){return e.join(cY)}var dY=function(){function e(t){ya(this,e),Ae(this,"instanceId",void 0),Ae(this,"cache",new Map),this.instanceId=t}return _a(e,[{key:"get",value:function(r){return this.opGet(E1(r))}},{key:"opGet",value:function(r){return this.cache.get(r)||null}},{key:"update",value:function(r,n){return this.opUpdate(E1(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}(),Rs="data-token-hash",Yn="data-css-hash",fY="data-cache-path",Ri="__cssinjs_instance__";function hY(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Yn,"]"))||[],r=document.head.firstChild;Array.from(t).forEach(function(a){a[Ri]=a[Ri]||e,a[Ri]===e&&document.head.insertBefore(a,r)});var n={};Array.from(document.querySelectorAll("style[".concat(Yn,"]"))).forEach(function(a){var i=a.getAttribute(Yn);if(n[i]){if(a[Ri]===e){var o;(o=a.parentNode)===null||o===void 0||o.removeChild(a)}}else n[i]=!0})}return new dY(e)}var Ch=ee.createContext({hashPriority:"low",cache:hY(),defaultCache:!0});function pY(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 Lv=function(){function e(){ya(this,e),Ae(this,"cache",void 0),Ae(this,"keys",void 0),Ae(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return _a(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,o={map:this.cache};return r.forEach(function(l){if(!o)o=void 0;else{var u;o=(u=o)===null||u===void 0||(u=u.map)===null||u===void 0?void 0:u.get(l)}}),(n=o)!==null&&n!==void 0&&n.value&&i&&(o.value[1]=this.cacheCallTimes++),(a=o)===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(c,m){var p=Ge(c,2),g=p[1];return a.internalGet(m)[1]<g?[m,a.internalGet(m)[1]]:c},[this.keys[0],this.cacheCallTimes]),o=Ge(i,1),l=o[0];this.delete(l)}this.keys.push(r)}var u=this.cache;r.forEach(function(c,m){if(m===r.length-1)u.set(c,{value:[n,a.cacheCallTimes++]});else{var p=u.get(c);p?p.map||(p.map=new Map):u.set(c,{map:new Map}),u=u.get(c).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 o=this.deleteByPath(a.map,n.slice(1));return(!a.map||a.map.size===0)&&!a.value&&r.delete(n[0]),o}},{key:"delete",value:function(r){if(this.has(r))return this.keys=this.keys.filter(function(n){return!pY(n,r)}),this.deleteByPath(this.cache,r)}}]),e}();Ae(Lv,"MAX_CACHE_SIZE",20);Ae(Lv,"MAX_CACHE_OFFSET",5);var Zx=0,JC=function(){function e(t){ya(this,e),Ae(this,"derivatives",void 0),Ae(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Zx,t.length===0&&Q1(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),Zx+=1}return _a(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(n,a){return a(r,n)},void 0)}}]),e}(),fg=new Lv;function mY(e){var t=Array.isArray(e)?e:[e];return fg.has(t)||fg.set(t,new JC(t)),fg.get(t)}var gY=new WeakMap,hg={};function vY(e,t){for(var r=gY,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(hg)||r.set(hg,e()),r.get(hg)}var Jx=new WeakMap;function Ll(e){var t=Jx.get(e)||"";return t||(Object.keys(e).forEach(function(r){var n=e[r];t+=r,n instanceof JC?t+=n.id:n&&Mt(n)==="object"?t+=Ll(n):t+=n}),t=tc(t),Jx.set(e,t)),t}function Qx(e,t){return tc("".concat(t,"_").concat(Ll(e)))}var k1=ji();function ni(e){return typeof e=="number"?"".concat(e,"px"):e}function Uf(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 o=pe(pe({},a),{},(n={},Ae(n,Rs,t),Ae(n,Yn,r),n)),l=Object.keys(o).map(function(u){var c=o[u];return c?"".concat(u,'="').concat(c,'"'):null}).filter(function(u){return u}).join(" ");return"<style ".concat(l,">").concat(e,"</style>")}var bf=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()},bY=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=Ge(a,2),o=i[0],l=i[1];return"".concat(o,":").concat(l,";")}).join(""),"}"):""},QC=function(t,r,n){var a={},i={};return Object.entries(t).forEach(function(o){var l,u,c=Ge(o,2),m=c[0],p=c[1];if(n!=null&&(l=n.preserve)!==null&&l!==void 0&&l[m])i[m]=p;else if((typeof p=="string"||typeof p=="number")&&!(n!=null&&(u=n.ignore)!==null&&u!==void 0&&u[m])){var g,y=bf(m,n==null?void 0:n.prefix);a[y]=typeof p=="number"&&!(n!=null&&(g=n.unitless)!==null&&g!==void 0&&g[m])?"".concat(p,"px"):String(p),i[m]="var(".concat(y,")")}}),[i,bY(a,r,{scope:n==null?void 0:n.scope})]},yY=pe({},ee),e6=yY.useInsertionEffect,_Y=function(t,r,n){ee.useMemo(t,n),Nv(function(){return r(!0)},n)},wY=e6?function(e,t,r){return e6(function(){return e(),t()},r)}:_Y,xY=pe({},ee),SY=xY.useInsertionEffect,CY=function(t){var r=[],n=!1;function a(i){if(n){process.env.NODE_ENV!=="production"&&Q1(!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 ee.useEffect(function(){return n=!1,function(){n=!0,r.length&&r.forEach(function(i){return i()})}},t),a},EY=function(){return function(t){t()}},kY=typeof SY<"u"?CY:EY;function TY(){return!1}var T1=!1;function OY(){return T1}const AY=process.env.NODE_ENV==="production"?TY:OY;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){var Vd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:null;if(Vd&&typeof Vd.webpackHotUpdate=="function"){var RY=Vd.webpackHotUpdate;Vd.webpackHotUpdate=function(){return T1=!0,setTimeout(function(){T1=!1},0),RY.apply(void 0,arguments)}}}function jv(e,t,r,n,a){var i=ee.useContext(Ch),o=i.cache,l=[e].concat(Eo(t)),u=E1(l),c=kY([u]),m=AY(),p=function(E){o.opUpdate(u,function(k){var T=k||[void 0,void 0],w=Ge(T,2),S=w[0],f=S===void 0?0:S,h=w[1],v=h;process.env.NODE_ENV!=="production"&&h&&m&&(n==null||n(v,m),v=null);var _=v||r(),R=[f,_];return E?E(R):R})};ee.useMemo(function(){p()},[u]);var g=o.opGet(u);process.env.NODE_ENV!=="production"&&!g&&(p(),g=o.opGet(u));var y=g[1];return wY(function(){a==null||a(y)},function(x){return p(function(E){var k=Ge(E,2),T=k[0],w=k[1];return x&&T===0&&(a==null||a(y)),[T+1,w]}),function(){o.opUpdate(u,function(E){var k=E||[],T=Ge(k,2),w=T[0],S=w===void 0?0:w,f=T[1],h=S-1;return h===0?(c(function(){(x||!o.opGet(u))&&(n==null||n(f,!1))}),null):[S-1,f]})}},[u]),y}var PY={},DY=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",lo=new Map;function MY(e){lo.set(e,(lo.get(e)||0)+1)}function FY(e,t){if(typeof document<"u"){var r=document.querySelectorAll("style[".concat(Rs,'="').concat(e,'"]'));r.forEach(function(n){if(n[Ri]===t){var a;(a=n.parentNode)===null||a===void 0||a.removeChild(n)}})}}var NY=0;function IY(e,t){lo.set(e,(lo.get(e)||0)-1);var r=Array.from(lo.keys()),n=r.filter(function(a){var i=lo.get(a)||0;return i<=0});r.length-n.length>NY&&n.forEach(function(a){FY(a,t),lo.delete(a)})}var LY=function(t,r,n,a){var i=n.getDerivativeToken(t),o=pe(pe({},i),r);return a&&(o=a(o)),o},eE="token";function jY(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=F.useContext(Ch),a=n.cache.instanceId,i=n.container,o=r.salt,l=o===void 0?"":o,u=r.override,c=u===void 0?PY:u,m=r.formatToken,p=r.getComputedToken,g=r.cssVar,y=vY(function(){return Object.assign.apply(Object,[{}].concat(Eo(t)))},t),x=Ll(y),E=Ll(c),k=g?Ll(g):"",T=jv(eE,[l,e.id,x,E,k],function(){var w,S=p?p(y,c,e):LY(y,c,e,m),f=pe({},S),h="";if(g){var v=QC(S,g.key,{prefix:g.prefix,ignore:g.ignore,unitless:g.unitless,preserve:g.preserve}),_=Ge(v,2);S=_[0],h=_[1]}var R=Qx(S,l);S._tokenKey=R,f._tokenKey=Qx(f,l);var C=(w=g==null?void 0:g.key)!==null&&w!==void 0?w:R;S._themeKey=C,MY(C);var P="".concat(DY,"-").concat(tc(R));return S._hashId=P,[S,P,f,h,(g==null?void 0:g.key)||""]},function(w){IY(w[0]._themeKey,a)},function(w){var S=Ge(w,4),f=S[0],h=S[3];if(g&&h){var v=bo(h,tc("css-variables-".concat(f._themeKey)),{mark:Yn,prepend:"queue",attachTo:i,priority:-999});v[Ri]=a,v.setAttribute(Rs,f._themeKey)}});return T}var $Y=function(t,r,n){var a=Ge(t,5),i=a[2],o=a[3],l=a[4],u=n||{},c=u.plain;if(!o)return null;var m=i._tokenKey,p=-999,g={"data-rc-order":"prependQueue","data-rc-priority":"".concat(p)},y=Uf(o,l,m,g,c);return[p,m,y]},zY={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},tE="comm",rE="rule",nE="decl",BY="@import",HY="@namespace",UY="@keyframes",qY="@layer",aE=Math.abs,$v=String.fromCharCode;function iE(e){return e.trim()}function yf(e,t,r){return e.replace(t,r)}function WY(e,t,r){return e.indexOf(t,r)}function xs(e,t){return e.charCodeAt(t)|0}function Ps(e,t,r){return e.slice(t,r)}function oa(e){return e.length}function VY(e){return e.length}function Yd(e,t){return t.push(e),e}var Eh=1,Ds=1,oE=0,En=0,Zt=0,Ys="";function zv(e,t,r,n,a,i,o,l){return{value:e,root:t,parent:r,type:n,props:a,children:i,line:Eh,column:Ds,length:o,return:"",siblings:l}}function YY(){return Zt}function GY(){return Zt=En>0?xs(Ys,--En):0,Ds--,Zt===10&&(Ds=1,Eh--),Zt}function Gn(){return Zt=En<oE?xs(Ys,En++):0,Ds++,Zt===10&&(Ds=1,Eh++),Zt}function Pi(){return xs(Ys,En)}function _f(){return En}function kh(e,t){return Ps(Ys,e,t)}function rc(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 KY(e){return Eh=Ds=1,oE=oa(Ys=e),En=0,[]}function XY(e){return Ys="",e}function pg(e){return iE(kh(En-1,O1(e===91?e+2:e===40?e+1:e)))}function ZY(e){for(;(Zt=Pi())&&Zt<33;)Gn();return rc(e)>2||rc(Zt)>3?"":" "}function JY(e,t){for(;--t&&Gn()&&!(Zt<48||Zt>102||Zt>57&&Zt<65||Zt>70&&Zt<97););return kh(e,_f()+(t<6&&Pi()==32&&Gn()==32))}function O1(e){for(;Gn();)switch(Zt){case e:return En;case 34:case 39:e!==34&&e!==39&&O1(Zt);break;case 40:e===41&&O1(e);break;case 92:Gn();break}return En}function QY(e,t){for(;Gn()&&e+Zt!==57;)if(e+Zt===84&&Pi()===47)break;return"/*"+kh(t,En-1)+"*"+$v(e===47?e:Gn())}function eG(e){for(;!rc(Pi());)Gn();return kh(e,En)}function tG(e){return XY(wf("",null,null,null,[""],e=KY(e),0,[0],e))}function wf(e,t,r,n,a,i,o,l,u){for(var c=0,m=0,p=o,g=0,y=0,x=0,E=1,k=1,T=1,w=0,S="",f=a,h=i,v=n,_=S;k;)switch(x=w,w=Gn()){case 40:if(x!=108&&xs(_,p-1)==58){WY(_+=yf(pg(w),"&","&\f"),"&\f",aE(c?l[c-1]:0))!=-1&&(T=-1);break}case 34:case 39:case 91:_+=pg(w);break;case 9:case 10:case 13:case 32:_+=ZY(x);break;case 92:_+=JY(_f()-1,7);continue;case 47:switch(Pi()){case 42:case 47:Yd(rG(QY(Gn(),_f()),t,r,u),u),(rc(x||1)==5||rc(Pi()||1)==5)&&oa(_)&&Ps(_,-1,void 0)!==" "&&(_+=" ");break;default:_+="/"}break;case 123*E:l[c++]=oa(_)*T;case 125*E:case 59:case 0:switch(w){case 0:case 125:k=0;case 59+m:T==-1&&(_=yf(_,/\f/g,"")),y>0&&(oa(_)-p||E===0&&x===47)&&Yd(y>32?r6(_+";",n,r,p-1,u):r6(yf(_," ","")+";",n,r,p-2,u),u);break;case 59:_+=";";default:if(Yd(v=t6(_,t,r,c,m,a,l,S,f=[],h=[],p,i),i),w===123)if(m===0)wf(_,t,v,v,f,i,p,l,h);else{switch(g){case 99:if(xs(_,3)===110)break;case 108:if(xs(_,2)===97)break;default:m=0;case 100:case 109:case 115:}m?wf(e,v,v,n&&Yd(t6(e,v,v,0,0,a,l,S,a,f=[],p,h),h),a,h,p,l,n?f:h):wf(_,v,v,v,[""],h,0,l,h)}}c=m=y=0,E=T=1,S=_="",p=o;break;case 58:p=1+oa(_),y=x;default:if(E<1){if(w==123)--E;else if(w==125&&E++==0&&GY()==125)continue}switch(_+=$v(w),w*E){case 38:T=m>0?1:(_+="\f",-1);break;case 44:l[c++]=(oa(_)-1)*T,T=1;break;case 64:Pi()===45&&(_+=pg(Gn())),g=Pi(),m=p=oa(S=_+=eG(_f())),w++;break;case 45:x===45&&oa(_)==2&&(E=0)}}return i}function t6(e,t,r,n,a,i,o,l,u,c,m,p){for(var g=a-1,y=a===0?i:[""],x=VY(y),E=0,k=0,T=0;E<n;++E)for(var w=0,S=Ps(e,g+1,g=aE(k=o[E])),f=e;w<x;++w)(f=iE(k>0?y[w]+" "+S:yf(S,/&\f/g,y[w])))&&(u[T++]=f);return zv(e,t,r,a===0?rE:l,u,c,m,p)}function rG(e,t,r,n){return zv(e,t,r,tE,$v(YY()),Ps(e,2,-2),0,n)}function r6(e,t,r,n,a){return zv(e,t,r,nE,Ps(e,0,n),Ps(e,n+1,-1),n,a)}function A1(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function nG(e,t,r,n){switch(e.type){case qY:if(e.children.length)break;case BY:case HY:case nE:return e.return=e.return||e.value;case tE:return"";case UY:return e.return=e.value+"{"+A1(e.children,n)+"}";case rE:if(!oa(e.value=e.props.join(",")))return""}return oa(r=A1(e.children,n))?e.return=e.value+"{"+r+"}":""}function sE(e,t){var r=t.path,n=t.parentSelectors;ko(!1,"[Ant Design CSS-in-JS] ".concat(r?"Error in ".concat(r,": "):"").concat(e).concat(n.length?" Selector: ".concat(n.join(" | ")):""))}var aG=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)!=="'"))&&sE("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(r,"\"'`."),n)}},iG=function(t,r,n){t==="animation"&&n.hashId&&r!=="none"&&sE("You seem to be using hashed animation '".concat(r,"', in which case 'animationName' with Keyframe as value is recommended."),n)},n6="data-ant-cssinjs-cache-path",uE="_FILE_STYLE__",xo,lE=!0;function oG(){if(!xo&&(xo={},ji())){var e=document.createElement("div");e.className=n6,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(":"),o=Ge(i,2),l=o[0],u=o[1];xo[l]=u});var r=document.querySelector("style[".concat(n6,"]"));if(r){var n;lE=!1,(n=r.parentNode)===null||n===void 0||n.removeChild(r)}document.body.removeChild(e)}}function sG(e){return oG(),!!xo[e]}function uG(e){var t=xo[e],r=null;if(t&&ji())if(lE)r=uE;else{var n=document.querySelector("style[".concat(Yn,'="').concat(xo[e],'"]'));n?r=n.innerHTML:delete xo[e]}return[r,t]}var cE="_skip_check_",dE="_multi_value_";function xf(e){var t=A1(tG(e),nG);return t.replace(/\{%%%\:[^;];}/g,";")}function lG(e){return Mt(e)==="object"&&e&&(cE in e||dE in e)}function a6(e,t,r){if(!t)return e;var n=".".concat(t),a=r==="low"?":where(".concat(n,")"):n,i=e.split(",").map(function(o){var l,u=o.trim().split(/\s+/),c=u[0]||"",m=((l=c.match(/^\w+/))===null||l===void 0?void 0:l[0])||"";return c="".concat(m).concat(a).concat(c.slice(m.length)),[c].concat(Eo(u.slice(1))).join(" ")});return i.join(",")}var cG=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,o=n.parentSelectors,l=r.hashId,u=r.layer,c=r.path,m=r.hashPriority,p=r.transformers,g=p===void 0?[]:p,y=r.linters,x=y===void 0?[]:y,E="",k={};function T(f){var h=f.getName(l);if(!k[h]){var v=e(f.style,r,{root:!1,parentSelectors:o}),_=Ge(v,1),R=_[0];k[h]="@keyframes ".concat(f.getName(l)).concat(R)}}function w(f){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return f.forEach(function(v){Array.isArray(v)?w(v,h):v&&h.push(v)}),h}var S=w(Array.isArray(t)?t:[t]);return S.forEach(function(f){var h=typeof f=="string"&&!a?{}:f;if(typeof h=="string")E+="".concat(h,`
441
- `);else if(h._keyframe)T(h);else{var v=g.reduce(function(_,R){var C;return(R==null||(C=R.visit)===null||C===void 0?void 0:C.call(R,_))||_},h);Object.keys(v).forEach(function(_){var R=v[_];if(Mt(R)==="object"&&R&&(_!=="animationName"||!R._keyframe)&&!lG(R)){var C=!1,P=_.trim(),M=!1;(a||i)&&l?P.startsWith("@")?C=!0:P==="&"?P=a6("",l,m):P=a6(_,l,m):a&&!l&&(P==="&"||P==="")&&(P="",M=!0);var q=e(R,r,{root:M,injectHash:C,parentSelectors:[].concat(Eo(o),[P])}),L=Ge(q,2),N=L[0],j=L[1];k=pe(pe({},k),j),E+="".concat(P).concat(N)}else{let z=function(B,H){process.env.NODE_ENV!=="production"&&(Mt(R)!=="object"||!(R!=null&&R[cE]))&&[aG,iG].concat(Eo(x)).forEach(function(re){return re(B,H,{path:c,hashId:l,parentSelectors:o})});var U=B.replace(/[A-Z]/g,function(re){return"-".concat(re.toLowerCase())}),J=H;!zY[B]&&typeof J=="number"&&J!==0&&(J="".concat(J,"px")),B==="animationName"&&H!==null&&H!==void 0&&H._keyframe&&(T(H),J=H.getName(l)),E+="".concat(U,":").concat(J,";")};var O,I=(O=R==null?void 0:R.value)!==null&&O!==void 0?O:R;Mt(R)==="object"&&R!==null&&R!==void 0&&R[dE]&&Array.isArray(I)?I.forEach(function(B){z(_,B)}):z(_,I)}})}}),a?u&&(E&&(E="@layer ".concat(u.name," {").concat(E,"}")),u.dependencies&&(k["@layer ".concat(u.name)]=u.dependencies.map(function(f){return"@layer ".concat(f,", ").concat(u.name,";")}).join(`
442
- `))):E="{".concat(E,"}"),[E,k]};function fE(e,t){return tc("".concat(e.join("%")).concat(t))}function dG(){return null}var hE="style";function i6(e,t){var r=e.token,n=e.path,a=e.hashId,i=e.layer,o=e.nonce,l=e.clientOnly,u=e.order,c=u===void 0?0:u,m=ee.useContext(Ch),p=m.autoClear,g=m.mock,y=m.defaultCache,x=m.hashPriority,E=m.container,k=m.ssrInline,T=m.transformers,w=m.linters,S=m.cache,f=m.layer,h=r._tokenKey,v=[h];f&&v.push("layer"),v.push.apply(v,Eo(n));var _=k1;process.env.NODE_ENV!=="production"&&g!==void 0&&(_=g==="client");var R=jv(hE,v,function(){var L=v.join("|");if(sG(L)){var N=uG(L),j=Ge(N,2),O=j[0],I=j[1];if(O)return[O,h,I,{},l,c]}var z=t(),B=cG(z,{hashId:a,hashPriority:x,layer:f?i:void 0,path:n.join("-"),transformers:T,linters:w}),H=Ge(B,2),U=H[0],J=H[1],re=xf(U),ne=fE(v,re);return[re,h,ne,J,l,c]},function(L,N){var j=Ge(L,3),O=j[2];(N||p)&&k1&&y8(O,{mark:Yn})},function(L){var N=Ge(L,4),j=N[0];N[1];var O=N[2],I=N[3];if(_&&j!==uE){var z={mark:Yn,prepend:f?!1:"queue",attachTo:E,priority:c},B=typeof o=="function"?o():o;B&&(z.csp={nonce:B});var H=[],U=[];Object.keys(I).forEach(function(re){re.startsWith("@layer")?H.push(re):U.push(re)}),H.forEach(function(re){bo(xf(I[re]),"_layer-".concat(re),pe(pe({},z),{},{prepend:!0}))});var J=bo(j,O,z);J[Ri]=S.instanceId,J.setAttribute(Rs,h),process.env.NODE_ENV!=="production"&&J.setAttribute(fY,v.join("|")),U.forEach(function(re){bo(xf(I[re]),"_effect-".concat(re),z)})}}),C=Ge(R,3),P=C[0],M=C[1],q=C[2];return function(L){var N;if(!k||_||!y)N=ee.createElement(dG,null);else{var j;N=ee.createElement("style",nt({},(j={},Ae(j,Rs,M),Ae(j,Yn,q),j),{dangerouslySetInnerHTML:{__html:P}}))}return ee.createElement(ee.Fragment,null,N,L)}}var fG=function(t,r,n){var a=Ge(t,6),i=a[0],o=a[1],l=a[2],u=a[3],c=a[4],m=a[5],p=n||{},g=p.plain;if(c)return null;var y=i,x={"data-rc-order":"prependQueue","data-rc-priority":"".concat(m)};return y=Uf(i,o,l,x,g),u&&Object.keys(u).forEach(function(E){if(!r[E]){r[E]=!0;var k=xf(u[E]),T=Uf(k,o,"_effect-".concat(E),x,g);E.startsWith("@layer")?y=T+y:y+=T}}),[m,l,y]},pE="cssVar",hG=function(t,r){var n=t.key,a=t.prefix,i=t.unitless,o=t.ignore,l=t.token,u=t.scope,c=u===void 0?"":u,m=F.useContext(Ch),p=m.cache.instanceId,g=m.container,y=l._tokenKey,x=[].concat(Eo(t.path),[n,c,y]),E=jv(pE,x,function(){var k=r(),T=QC(k,n,{prefix:a,unitless:i,ignore:o,scope:c}),w=Ge(T,2),S=w[0],f=w[1],h=fE(x,f);return[S,f,h,n]},function(k){var T=Ge(k,3),w=T[2];k1&&y8(w,{mark:Yn})},function(k){var T=Ge(k,3),w=T[1],S=T[2];if(w){var f=bo(w,S,{mark:Yn,prepend:"queue",attachTo:g,priority:-999});f[Ri]=p,f.setAttribute(Rs,n)}});return E},pG=function(t,r,n){var a=Ge(t,4),i=a[1],o=a[2],l=a[3],u=n||{},c=u.plain;if(!i)return null;var m=-999,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(m)},g=Uf(i,l,o,p,c);return[m,o,g]},yl;yl={},Ae(yl,hE,fG),Ae(yl,eE,$Y),Ae(yl,pE,pG);var mE=function(){function e(t,r){ya(this,e),Ae(this,"name",void 0),Ae(this,"style",void 0),Ae(this,"_keyframe",!0),this.name=t,this.style=r}return _a(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 es(e){return e.notSplit=!0,e}es(["borderTop","borderBottom"]),es(["borderTop"]),es(["borderBottom"]),es(["borderLeft","borderRight"]),es(["borderLeft"]),es(["borderRight"]);var gE=_a(function e(){ya(this,e)}),vE="CALC_UNIT",mG=new RegExp(vE,"g");function mg(e){return typeof e=="number"?"".concat(e).concat(vE):e}var gG=function(e){wh(r,e);var t=xh(r);function r(n,a){var i;ya(this,r),i=t.call(this),Ae(wo(i),"result",""),Ae(wo(i),"unitlessCssVar",void 0),Ae(wo(i),"lowPriority",void 0);var o=Mt(n);return i.unitlessCssVar=a,n instanceof r?i.result="(".concat(n.result,")"):o==="number"?i.result=mg(n):o==="string"&&(i.result=n),i}return _a(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(mg(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(mg(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,o=a||{},l=o.unit,u=!0;return typeof l=="boolean"?u=l:Array.from(this.unitlessCssVar).some(function(c){return i.result.includes(c)})&&(u=!1),this.result=this.result.replace(mG,u?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),r}(gE),vG=function(e){wh(r,e);var t=xh(r);function r(n){var a;return ya(this,r),a=t.call(this),Ae(wo(a),"result",0),n instanceof r?a.result=n.result:typeof n=="number"&&(a.result=n),a}return _a(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}(gE),bG=function(t,r){var n=t==="css"?gG:vG;return function(a){return new n(a,r)}},o6=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 s6(e,t,r,n){var a=pe({},t[e]);if(n!=null&&n.deprecatedTokens){var i=n.deprecatedTokens;i.forEach(function(l){var u=Ge(l,2),c=u[0],m=u[1];if(process.env.NODE_ENV!=="production"&&ko(!(a!=null&&a[c]),"Component Token `".concat(String(c),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(m),"` instead.")),a!=null&&a[c]||a!=null&&a[m]){var p;(p=a[m])!==null&&p!==void 0||(a[m]=a==null?void 0:a[c])}})}var o=pe(pe({},r),a);return Object.keys(o).forEach(function(l){o[l]===t[l]&&delete o[l]}),o}var bE=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u",R1=!0;function $i(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!bE)return Object.assign.apply(Object,[{}].concat(t));R1=!1;var n={};return t.forEach(function(a){if(Mt(a)==="object"){var i=Object.keys(a);i.forEach(function(o){Object.defineProperty(n,o,{configurable:!0,enumerable:!0,get:function(){return a[o]}})})}}),R1=!0,n}var u6={};function yG(){}var _G=function(t){var r,n=t,a=yG;return bE&&typeof Proxy<"u"&&(r=new Set,n=new Proxy(t,{get:function(o,l){if(R1){var u;(u=r)===null||u===void 0||u.add(l)}return o[l]}}),a=function(o,l){var u;u6[o]={global:Array.from(r),component:pe(pe({},(u=u6[o])===null||u===void 0?void 0:u.component),l)}}),{token:n,keys:r,flush:a}};function l6(e,t,r){if(typeof r=="function"){var n;return r($i(t,(n=t[e])!==null&&n!==void 0?n:{}))}return r??{}}function wG(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 ni(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 ni(i)}).join(","),")")}}}var xG=1e3*60*10,SG=function(){function e(){ya(this,e),Ae(this,"map",new Map),Ae(this,"objectIDMap",new WeakMap),Ae(this,"nextID",0),Ae(this,"lastAccessBeat",new Map),Ae(this,"accessBeat",0)}return _a(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&&Mt(i)==="object"?"obj_".concat(n.getObjectID(i)):"".concat(Mt(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>xG&&(r.map.delete(i),r.lastAccessBeat.delete(i))}),this.accessBeat=0}}}]),e}(),c6=new SG;function CG(e,t){return F.useMemo(function(){var r=c6.get(t);if(r)return r;var n=e();return c6.set(t,n),n},t)}var EG=function(){return{}};function kG(e){var t=e.useCSP,r=t===void 0?EG:t,n=e.useToken,a=e.usePrefix,i=e.getResetStyles,o=e.getCommonStyle,l=e.getCompUnitless;function u(g,y,x,E){var k=Array.isArray(g)?g[0]:g;function T(R){return"".concat(String(k)).concat(R.slice(0,1).toUpperCase()).concat(R.slice(1))}var w=(E==null?void 0:E.unitless)||{},S=typeof l=="function"?l(g):{},f=pe(pe({},S),{},Ae({},T("zIndexPopup"),!0));Object.keys(w).forEach(function(R){f[T(R)]=w[R]});var h=pe(pe({},E),{},{unitless:f,prefixToken:T}),v=m(g,y,x,h),_=c(k,x,h);return function(R){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:R,P=v(R,C),M=Ge(P,2),q=M[1],L=_(C),N=Ge(L,2),j=N[0],O=N[1];return[j,q,O]}}function c(g,y,x){var E=x.unitless,k=x.injectStyle,T=k===void 0?!0:k,w=x.prefixToken,S=x.ignore,f=function(_){var R=_.rootCls,C=_.cssVar,P=C===void 0?{}:C,M=n(),q=M.realToken;return hG({path:[g],prefix:P.prefix,key:P.key,unitless:E,ignore:S,token:q,scope:R},function(){var L=l6(g,q,y),N=s6(g,q,L,{deprecatedTokens:x==null?void 0:x.deprecatedTokens});return Object.keys(L).forEach(function(j){N[w(j)]=N[j],delete N[j]}),N}),null},h=function(_){var R=n(),C=R.cssVar;return[function(P){return T&&C?F.createElement(F.Fragment,null,F.createElement(f,{rootCls:_,cssVar:C,component:g}),P):P},C==null?void 0:C.key]};return h}function m(g,y,x){var E=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},k=Array.isArray(g)?g:[g,g],T=Ge(k,1),w=T[0],S=k.join("-"),f=e.layer||{name:"antd"};return function(h){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h,_=n(),R=_.theme,C=_.realToken,P=_.hashId,M=_.token,q=_.cssVar,L=a(),N=L.rootPrefixCls,j=L.iconPrefixCls,O=r(),I=q?"css":"js",z=CG(function(){var ne=new Set;return q&&Object.keys(E.unitless||{}).forEach(function(se){ne.add(bf(se,q.prefix)),ne.add(bf(se,o6(w,q.prefix)))}),bG(I,ne)},[I,w,q==null?void 0:q.prefix]),B=wG(I),H=B.max,U=B.min,J={theme:R,token:M,hashId:P,nonce:function(){return O.nonce},clientOnly:E.clientOnly,layer:f,order:E.order||-999};typeof i=="function"&&i6(pe(pe({},J),{},{clientOnly:!1,path:["Shared",N]}),function(){return i(M,{prefix:{rootPrefixCls:N,iconPrefixCls:j},csp:O})});var re=i6(pe(pe({},J),{},{path:[S,h,j]}),function(){if(E.injectStyle===!1)return[];var ne=_G(M),se=ne.token,ce=ne.flush,le=l6(w,C,x),ye=".".concat(h),we=s6(w,C,le,{deprecatedTokens:E.deprecatedTokens});q&&le&&Mt(le)==="object"&&Object.keys(le).forEach(function(qe){le[qe]="var(".concat(bf(qe,o6(w,q.prefix)),")")});var Ee=$i(se,{componentCls:ye,prefixCls:h,iconCls:".".concat(j),antCls:".".concat(N),calc:z,max:H,min:U},q?le:we),Le=y(Ee,{hashId:P,prefixCls:h,rootPrefixCls:N,iconPrefixCls:j});ce(w,we);var he=typeof o=="function"?o(Ee,h,v,E.resetFont):null;return[E.resetStyle===!1?null:he,Le]});return[re,P]}}function p(g,y,x){var E=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},k=m(g,y,x,pe({resetStyle:!1,order:-998},E)),T=function(S){var f=S.prefixCls,h=S.rootCls,v=h===void 0?f:h;return k(f,v),null};return process.env.NODE_ENV!=="production"&&(T.displayName="SubStyle_".concat(String(Array.isArray(g)?g.join("."):g))),T}return{genStyleHooks:u,genSubStyleComponent:p,genComponentStyleHook:m}}const TG={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"},OG=Object.assign(Object.assign({},TG),{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 gg(e){return e>=0&&e<=255}function Gd(e,t){const{r,g:n,b:a,a:i}=new Hr(e).toRgb();if(i<1)return e;const{r:o,g:l,b:u}=new Hr(t).toRgb();for(let c=.01;c<=1;c+=.01){const m=Math.round((r-o*(1-c))/c),p=Math.round((n-l*(1-c))/c),g=Math.round((a-u*(1-c))/c);if(gg(m)&&gg(p)&&gg(g))return new Hr({r:m,g:p,b:g,a:Math.round(c*100)/100}).toRgbString()}return new Hr({r,g:n,b:a,a:1}).toRgbString()}var AG=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 RG(e){const{override:t}=e,r=AG(e,["override"]),n=Object.assign({},t);Object.keys(OG).forEach(g=>{delete n[g]});const a=Object.assign(Object.assign({},r),n),i=480,o=576,l=768,u=992,c=1200,m=1600;if(a.motion===!1){const g="0s";a.motionDurationFast=g,a.motionDurationMid=g,a.motionDurationSlow=g}return Object.assign(Object.assign(Object.assign({},a),{colorFillContent:a.colorFillSecondary,colorFillContentHover:a.colorFill,colorFillAlter:a.colorFillQuaternary,colorBgContainerDisabled:a.colorFillTertiary,colorBorderBg:a.colorBgContainer,colorSplit:Gd(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:Gd(a.colorErrorBg,a.colorBgContainer),colorWarningOutline:Gd(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:Gd(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:o-1,screenSM:o,screenSMMin:o,screenSMMax:l-1,screenMD:l,screenMDMin:l,screenMDMax:u-1,screenLG:u,screenLGMin:u,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:m-1,screenXXL:m,screenXXLMin:m,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
457
- 0 1px 2px -2px ${new Hr("rgba(0, 0, 0, 0.16)").toRgbString()},
458
- 0 3px 6px 0 ${new Hr("rgba(0, 0, 0, 0.12)").toRgbString()},
459
- 0 5px 12px 4px ${new Hr("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 PG={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},DG={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},MG=mY(Z.theme.defaultAlgorithm),FG={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},yE=(e,t,r)=>{const n=r.getDerivativeToken(e),{override:a,...i}=t;let o={...n,override:a};return o=RG(o),i&&Object.entries(i).forEach(([l,u])=>{const{theme:c,...m}=u;let p=m;c&&(p=yE({...o,...m},{override:m},c)),o[l]=p}),o};function NG(){const{token:e,hashed:t,theme:r=MG,override:n,cssVar:a}=F.useContext(Z.theme._internalContext),[i,o,l]=jY(r,[Z.theme.defaultSeed,e],{salt:`${BW}-${t||""}`,override:n,getComputedToken:yE,cssVar:a&&{prefix:a.prefix,key:a.key,unitless:PG,ignore:DG,preserve:FG}});return[r,l,t?o:"",i,a]}const{genStyleHooks:Gs}=kG({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=ga();return{iconPrefixCls:t,rootPrefixCls:e()}},useToken:()=>{const[e,t,r,n,a]=NG();return{theme:e,realToken:t,hashId:r,token:n,cssVar:a}},useCSP:()=>{const{csp:e}=ga();return e??{}},layer:{name:"antdx",dependencies:["antd"]}}),IG=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()}}}}},P1={"&, *":{boxSizing:"border-box"}},LG=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,...P1,"&-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,...P1,[`${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`]:{}}}}},jG=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%",...P1,[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"}}}}}},$G=e=>{const{colorBgContainer:t}=e;return{colorBgPlaceholderHover:new Hr(t).setA(.85).toRgbString()}},_E=Gs("Attachments",e=>{const t=$i(e,{});return[LG(t),jG(t),IG(t)]},$G),zG=e=>e.indexOf("image/")===0,Kd=200;function BG(e){return new Promise(t=>{if(!e||!e.type||!zG(e.type)){t("");return}const r=new Image;if(r.onload=()=>{const{width:n,height:a}=r,i=n/a,o=i>1?Kd:Kd*i,l=i>1?Kd/i:Kd,u=document.createElement("canvas");u.width=o,u.height=l,u.style.cssText=`position: fixed; left: 0; top: 0; width: ${o}px; height: ${l}px; z-index: 9999; display: none;`,document.body.appendChild(u),u.getContext("2d").drawImage(r,0,0,o,l);const m=u.toDataURL();document.body.removeChild(u),window.URL.revokeObjectURL(r.src),t(m)},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 HG(){return F.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"},F.createElement("title",null,"audio"),F.createElement("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},F.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 UG(e){const{percent:t}=e,{token:r}=Z.theme.useToken();return F.createElement(Z.Progress,{type:"circle",percent:t,size:r.fontSizeHeading2*2,strokeColor:"#FFF",trailColor:"rgba(255, 255, 255, 0.3)",format:n=>F.createElement("span",{style:{color:"#FFF"}},(n||0).toFixed(0),"%")})}function qG(){return F.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"},F.createElement("title",null,"video"),F.createElement("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},F.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 vg=" ",D1="#8c8c8c",wE=["png","jpg","jpeg","gif","bmp","webp","svg"],WG=[{icon:F.createElement(kC,null),color:"#22b35e",ext:["xlsx","xls"]},{icon:F.createElement(TC,null),color:D1,ext:wE},{icon:F.createElement(OC,null),color:D1,ext:["md","mdx"]},{icon:F.createElement(AC,null),color:"#ff4d4f",ext:["pdf"]},{icon:F.createElement(RC,null),color:"#ff6e31",ext:["ppt","pptx"]},{icon:F.createElement(DC,null),color:"#1677ff",ext:["doc","docx"]},{icon:F.createElement(MC,null),color:"#fab714",ext:["zip","rar","7z","tar","gz"]},{icon:F.createElement(qG,null),color:"#ff4d4f",ext:["mp4","avi","mov","wmv","flv","mkv"]},{icon:F.createElement(HG,null),color:"#8c8c8c",ext:["mp3","wav","flac","ape","aac","ogg"]}];function d6(e,t){return t.some(r=>e.toLowerCase()===`.${r}`)}function VG(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 YG(e,t){const{prefixCls:r,item:n,onRemove:a,className:i,style:o}=e,l=F.useContext(yc),{disabled:u}=l||{},{name:c,size:m,percent:p,status:g="done",description:y}=n,{getPrefixCls:x}=ga(),E=x("attachment",r),k=`${E}-list-card`,[T,w,S]=_E(E),[f,h]=F.useMemo(()=>{const j=c||"",O=j.match(/^(.*)\.[^.]+$/);return O?[O[1],j.slice(O[1].length)]:[j,""]},[c]),v=F.useMemo(()=>d6(h,wE),[h]),_=F.useMemo(()=>y||(g==="uploading"?`${p||0}%`:g==="error"?n.response||vg:m?VG(m):vg),[g,p]),[R,C]=F.useMemo(()=>{for(const{ext:j,icon:O,color:I}of WG)if(d6(h,j))return[O,I];return[F.createElement(PC,{key:"defaultIcon"}),D1]},[h]),[P,M]=F.useState();F.useEffect(()=>{if(n.originFileObj){let j=!0;return BG(n.originFileObj).then(O=>{j&&M(O)}),()=>{j=!1}}M(void 0)},[n.originFileObj]);let q=null;const L=n.thumbUrl||n.url||P,N=v&&(n.originFileObj||L);return N?q=F.createElement(F.Fragment,null,F.createElement("img",{alt:"preview",src:L}),g!=="done"&&F.createElement("div",{className:`${k}-img-mask`},g==="uploading"&&p!==void 0&&F.createElement(UG,{percent:p,prefixCls:k}),g==="error"&&F.createElement("div",{className:`${k}-desc`},F.createElement("div",{className:`${k}-ellipsis-prefix`},_)))):q=F.createElement(F.Fragment,null,F.createElement("div",{className:`${k}-icon`,style:{color:C}},R),F.createElement("div",{className:`${k}-content`},F.createElement("div",{className:`${k}-name`},F.createElement("div",{className:`${k}-ellipsis-prefix`},f??vg),F.createElement("div",{className:`${k}-ellipsis-suffix`},h)),F.createElement("div",{className:`${k}-desc`},F.createElement("div",{className:`${k}-ellipsis-prefix`},_)))),T(F.createElement("div",{className:Te(k,{[`${k}-status-${g}`]:g,[`${k}-type-preview`]:N,[`${k}-type-overview`]:!N},i,w,S),style:o,ref:t},q,!u&&a&&F.createElement("button",{type:"button",className:`${k}-remove`,onClick:()=>{a(n)}},F.createElement(SC,null))))}const xE=F.forwardRef(YG),f6=1;function GG(e){const{prefixCls:t,items:r,onRemove:n,overflow:a,upload:i,listClassName:o,listStyle:l,itemClassName:u,itemStyle:c}=e,m=`${t}-list`,p=F.useRef(null),[g,y]=F.useState(!1),{disabled:x}=F.useContext(yc);F.useEffect(()=>(y(!0),()=>{y(!1)}),[]);const[E,k]=F.useState(!1),[T,w]=F.useState(!1),S=()=>{const _=p.current;_&&(a==="scrollX"?(k(Math.abs(_.scrollLeft)>=f6),w(_.scrollWidth-_.clientWidth-Math.abs(_.scrollLeft)>=f6)):a==="scrollY"&&(k(_.scrollTop!==0),w(_.scrollHeight-_.clientHeight!==_.scrollTop)))};F.useEffect(()=>{S()},[a]);const f=_=>{const R=p.current;R&&R.scrollTo({left:R.scrollLeft+_*R.clientWidth,behavior:"smooth"})},h=()=>{f(-1)},v=()=>{f(1)};return F.createElement("div",{className:Te(m,{[`${m}-overflow-${e.overflow}`]:a,[`${m}-overflow-ping-start`]:E,[`${m}-overflow-ping-end`]:T},o),ref:p,onScroll:S,style:l},F.createElement(uY,{keys:r.map(_=>({key:_.uid,item:_})),motionName:`${m}-card-motion`,component:!1,motionAppear:g,motionLeave:!0,motionEnter:!0},({key:_,item:R,className:C,style:P})=>F.createElement(xE,{key:_,prefixCls:t,item:R,onRemove:n,className:Te(C,u),style:{...P,...c}})),!x&&F.createElement(ZC,{upload:i},F.createElement(Z.Button,{className:`${m}-upload-btn`,type:"dashed"},F.createElement(NC,{className:`${m}-upload-btn-icon`}))),a==="scrollX"&&F.createElement(F.Fragment,null,F.createElement(Z.Button,{size:"small",shape:"circle",className:`${m}-prev-btn`,icon:F.createElement(FC,null),onClick:h}),F.createElement(Z.Button,{size:"small",shape:"circle",className:`${m}-next-btn`,icon:F.createElement(IC,null),onClick:v})))}function KG(e,t){const{prefixCls:r,placeholder:n={},upload:a,className:i,style:o}=e,l=`${r}-placeholder`,u=n||{},{disabled:c}=F.useContext(yc),[m,p]=F.useState(!1),g=()=>{p(!0)},y=k=>{k.currentTarget.contains(k.relatedTarget)||p(!1)},x=()=>{p(!1)},E=F.isValidElement(n)?n:F.createElement(Z.Flex,{align:"center",justify:"center",vertical:!0,className:`${l}-inner`},F.createElement(Z.Typography.Text,{className:`${l}-icon`},u.icon),F.createElement(Z.Typography.Title,{className:`${l}-title`,level:5},u.title),F.createElement(Z.Typography.Text,{className:`${l}-description`,type:"secondary"},u.description));return F.createElement("div",{className:Te(l,{[`${l}-drag-in`]:m,[`${l}-disabled`]:c},i),onDragEnter:g,onDragLeave:y,onDrop:x,"aria-hidden":c,style:o},F.createElement(Z.Upload.Dragger,nt({showUploadList:!1},a,{ref:t,style:{padding:0,border:0,background:"transparent"}}),E))}const XG=F.forwardRef(KG);function ZG(e,t){const{prefixCls:r,rootClassName:n,rootStyle:a,className:i,style:o,items:l,children:u,getDropContainer:c,placeholder:m,onChange:p,overflow:g,disabled:y,classNames:x={},styles:E={},...k}=e,{getPrefixCls:T,direction:w}=ga(),S=T("attachment",r),f=Ws("attachments"),{classNames:h,styles:v}=f,_=F.useRef(null),R=F.useRef(null);F.useImperativeHandle(t,()=>({nativeElement:_.current,upload:H=>{var J,re;const U=(re=(J=R.current)==null?void 0:J.nativeElement)==null?void 0:re.querySelector('input[type="file"]');if(U){const ne=new DataTransfer;ne.items.add(H),U.files=ne.files,U.dispatchEvent(new Event("change",{bubbles:!0}))}}}));const[C,P,M]=_E(S),q=Te(P,M),[L,N]=_h([],{value:l}),j=Zn(H=>{N(H.fileList),p==null||p(H)}),O={...k,fileList:L,onChange:j},I=H=>{const U=L.filter(J=>J.uid!==H.uid);j({file:H,fileList:U})};let z;const B=(H,U,J)=>{const re=typeof m=="function"?m(H):m;return F.createElement(XG,{placeholder:re,upload:O,prefixCls:S,className:Te(h.placeholder,x.placeholder),style:{...v.placeholder,...E.placeholder,...U==null?void 0:U.style},ref:J})};if(u)z=F.createElement(F.Fragment,null,F.createElement(ZC,{upload:O,rootClassName:n,ref:R},u),F.createElement(Nx,{getDropContainer:c,prefixCls:S,className:Te(q,n)},B("drop")));else{const H=L.length>0;z=F.createElement("div",{className:Te(S,q,{[`${S}-rtl`]:w==="rtl"},i,n),style:{...a,...o},dir:w||"ltr",ref:_},F.createElement(GG,{prefixCls:S,items:L,onRemove:I,overflow:g,upload:O,listClassName:Te(h.list,x.list),listStyle:{...v.list,...E.list,...!H&&{display:"none"}},itemClassName:Te(h.item,x.item),itemStyle:{...v.item,...E.item}}),B("inline",H?{style:{display:"none"}}:{},R),F.createElement(Nx,{getDropContainer:c||(()=>_.current),prefixCls:S,className:q},B("drop")))}return C(F.createElement(yc.Provider,{value:{disabled:y}},z))}const Bv=F.forwardRef(ZG);process.env.NODE_ENV!=="production"&&(Bv.displayName="Attachments");Bv.FileCard=xE;var JG=`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`,QG=`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`,eK="".concat(JG," ").concat(QG).split(/[\s\n]+/),tK="aria-",rK="data-";function h6(e,t){return e.indexOf(t)===0}function Th(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=pe({},t);var n={};return Object.keys(e).forEach(function(a){(r.aria&&(a==="role"||h6(a,tK))||r.data&&h6(a,rK)||r.attr&&eK.includes(a))&&(n[a]=e[a])}),n}function nK(e,t){return F.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 SE=ee.createContext({}),p6=()=>({height:0}),m6=e=>({height:e.scrollHeight});function aK(e){const{title:t,onOpenChange:r,open:n,children:a,className:i,style:o,classNames:l={},styles:u={},closable:c,forceRender:m}=e,{prefixCls:p}=ee.useContext(SE),g=`${p}-header`;return ee.createElement(XC,{motionEnter:!0,motionLeave:!0,motionName:`${g}-motion`,leavedClassName:`${g}-motion-hidden`,onEnterStart:p6,onEnterActive:m6,onLeaveStart:m6,onLeaveActive:p6,visible:n,forceRender:m},({className:y,style:x})=>ee.createElement("div",{className:Te(g,y,i),style:{...x,...o}},(c!==!1||t)&&ee.createElement("div",{className:Te(`${g}-header`,l.header),style:{...u.header}},ee.createElement("div",{className:`${g}-title`},t),c!==!1&&ee.createElement("div",{className:`${g}-close`},ee.createElement(Z.Button,{type:"text",icon:ee.createElement(CC,null),size:"small",onClick:()=>{r==null||r(!n)}}))),a&&ee.createElement("div",{className:Te(`${g}-content`,l.content),style:{...u.content}},a)))}const Oh=ee.createContext(null);function iK(e,t){const{className:r,action:n,onClick:a,...i}=e,o=ee.useContext(Oh),{prefixCls:l,disabled:u}=o,c=o[n],m=u??i.disabled??o[`${n}Disabled`];return ee.createElement(Z.Button,nt({type:"text"},i,{ref:t,onClick:p=>{m||(c&&c(),a&&a(p))},className:Te(l,r,{[`${l}-disabled`]:m})}))}const Ah=ee.forwardRef(iK);function oK(e,t){return ee.createElement(Ah,nt({icon:ee.createElement(xC,null)},e,{action:"onClear",ref:t}))}const sK=ee.forwardRef(oK),uK=F.memo(e=>{const{className:t}=e;return F.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},F.createElement("title",null,"Stop Loading"),F.createElement("rect",{fill:"currentColor",height:"250",rx:"24",ry:"24",width:"250",x:"375",y:"375"}),F.createElement("circle",{cx:"500",cy:"500",fill:"none",r:"450",stroke:"currentColor",strokeWidth:"100",opacity:"0.45"}),F.createElement("circle",{cx:"500",cy:"500",fill:"none",r:"450",stroke:"currentColor",strokeWidth:"100",strokeDasharray:"600 9999999"},F.createElement("animateTransform",{attributeName:"transform",dur:"1s",from:"0 500 500",repeatCount:"indefinite",to:"360 500 500",type:"rotate"})))});function lK(e,t){const{prefixCls:r}=ee.useContext(Oh),{className:n}=e;return ee.createElement(Ah,nt({icon:null,color:"primary",variant:"text",shape:"circle"},e,{className:Te(n,`${r}-loading-button`),action:"onCancel",ref:t}),ee.createElement(uK,{className:`${r}-loading-icon`}))}const g6=ee.forwardRef(lK);function cK(e,t){return ee.createElement(Ah,nt({icon:ee.createElement(yC,null),type:"primary",shape:"circle"},e,{action:"onSend",ref:t}))}const v6=ee.forwardRef(cK),_l=1e3,wl=4,Sf=140,b6=Sf/2,Xd=250,y6=500,Zd=.8;function dK({className:e}){return F.createElement("svg",{color:"currentColor",viewBox:`0 0 ${_l} ${_l}`,xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",className:e},F.createElement("title",null,"Speech Recording"),Array.from({length:wl}).map((t,r)=>{const n=(_l-Sf*wl)/(wl-1),a=r*(n+Sf),i=_l/2-Xd/2,o=_l/2-y6/2;return F.createElement("rect",{fill:"currentColor",rx:b6,ry:b6,height:Xd,width:Sf,x:a,y:i,key:r},F.createElement("animate",{attributeName:"height",values:`${Xd}; ${y6}; ${Xd}`,keyTimes:"0; 0.5; 1",dur:`${Zd}s`,begin:`${Zd/wl*r}s`,repeatCount:"indefinite"}),F.createElement("animate",{attributeName:"y",values:`${i}; ${o}; ${i}`,keyTimes:"0; 0.5; 1",dur:`${Zd}s`,begin:`${Zd/wl*r}s`,repeatCount:"indefinite"}))}))}function fK(e,t){const{speechRecording:r,onSpeechDisabled:n,prefixCls:a}=ee.useContext(Oh);let i=null;return r?i=ee.createElement(dK,{className:`${a}-recording-icon`}):n?i=ee.createElement(_C,null):i=ee.createElement(wC,null),ee.createElement(Ah,nt({icon:i,color:"primary",variant:"text"},e,{action:"onSpeech",ref:t}))}const hK=ee.forwardRef(fK),pK=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"}}}}}},mK=e=>{const{componentCls:t,padding:r,paddingSM:n,paddingXS:a,lineWidth:i,lineWidthBold:o,calc:l}=e;return{[t]:{position:"relative",width:"100%",boxSizing:"border-box",boxShadow:`${e.boxShadowTertiary}`,transition:`background ${e.motionDurationSlow}`,borderRadius:{_skip_check_:!0,value:l(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:o}},"&-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"}}}}},gK=()=>({}),vK=Gs("Sender",e=>{const{paddingXS:t,calc:r}=e,n=$i(e,{SenderContentMaxWidth:`calc(100% - ${ni(r(t).add(32).equal())})`});return[mK(n),pK(n)]},gK);let qf;!qf&&typeof window<"u"&&(qf=window.SpeechRecognition||window.webkitSpeechRecognition);function bK(e,t){const r=Zn(e),[n,a,i]=F.useMemo(()=>typeof t=="object"?[t.recording,t.onRecordingChange,typeof t.recording=="boolean"]:[void 0,void 0,!1],[t]),[o,l]=F.useState(null);F.useEffect(()=>{if(typeof navigator<"u"&&"permissions"in navigator){let E=null;return navigator.permissions.query({name:"microphone"}).then(k=>{l(k.state),k.onchange=function(){l(this.state)},E=k}),()=>{E&&(E.onchange=null)}}},[]);const u=qf&&o!=="denied",c=F.useRef(null),[m,p]=_h(!1,{value:n}),g=F.useRef(!1),y=()=>{if(u&&!c.current){const E=new qf;E.onstart=()=>{p(!0)},E.onend=()=>{p(!1)},E.onresult=k=>{var T,w,S;if(!g.current){const f=(S=(w=(T=k.results)==null?void 0:T[0])==null?void 0:w[0])==null?void 0:S.transcript;r(f)}g.current=!1},c.current=E}},x=Zn(E=>{E&&!m||(g.current=E,i?a==null||a(!m):(y(),c.current&&(m?(c.current.stop(),a==null||a(!1)):(c.current.start(),a==null||a(!0)))))});return[u,x,m]}function yK(e,t,r){return tV(e,t)||r}const _K=F.forwardRef((e,t)=>{const{prefixCls:r,styles:n={},classNames:a={},className:i,rootClassName:o,style:l,defaultValue:u,value:c,readOnly:m,submitType:p="enter",onSubmit:g,loading:y,components:x,onCancel:E,onChange:k,actions:T,onKeyPress:w,onKeyDown:S,disabled:f,allowSpeech:h,prefix:v,header:_,onPaste:R,onPasteFile:C,...P}=e,{direction:M,getPrefixCls:q}=ga(),L=q("sender",r),N=F.useRef(null),j=F.useRef(null);nK(t,()=>{var Oe,at;return{nativeElement:N.current,focus:(Oe=j.current)==null?void 0:Oe.focus,blur:(at=j.current)==null?void 0:at.blur}});const O=Ws("sender"),I=`${L}-input`,[z,B,H]=vK(L),U=Te(L,O.className,i,o,B,H,{[`${L}-rtl`]:M==="rtl",[`${L}-disabled`]:f}),J=`${L}-actions-btn`,re=`${L}-actions-list`,[ne,se]=_h(u||"",{value:c}),ce=(Oe,at)=>{se(Oe),k&&k(Oe,at)},[le,ye,we]=bK(Oe=>{ce(`${ne} ${Oe}`)},h),Ee=yK(x,["input"],Z.Input.TextArea),he={...Th(P,{attr:!0,aria:!0,data:!0}),ref:j},qe=()=>{ne&&g&&!y&&g(ne)},oe=()=>{ce("")},De=F.useRef(!1),Je=()=>{De.current=!0},Ct=()=>{De.current=!1},Et=Oe=>{const at=Oe.key==="Enter"&&!De.current;switch(p){case"enter":at&&!Oe.shiftKey&&(Oe.preventDefault(),qe());break;case"shiftEnter":at&&Oe.shiftKey&&(Oe.preventDefault(),qe());break}w&&w(Oe)},Fe=Oe=>{var Pr;const at=(Pr=Oe.clipboardData)==null?void 0:Pr.files[0];at&&C&&(C(at),Oe.preventDefault()),R==null||R(Oe)},We=Oe=>{var at,Pr;Oe.target!==((at=N.current)==null?void 0:at.querySelector(`.${I}`))&&Oe.preventDefault(),(Pr=j.current)==null||Pr.focus()};let Ne=F.createElement(Z.Flex,{className:`${re}-presets`},h&&F.createElement(hK,null),y?F.createElement(g6,null):F.createElement(v6,null));return typeof T=="function"?Ne=T(Ne,{components:{SendButton:v6,ClearButton:sK,LoadingButton:g6}}):T&&(Ne=T),z(F.createElement("div",{ref:N,className:U,style:{...O.style,...l}},_&&F.createElement(SE.Provider,{value:{prefixCls:L}},_),F.createElement("div",{className:`${L}-content`,onMouseDown:We},v&&F.createElement("div",{className:Te(`${L}-prefix`,O.classNames.prefix,a.prefix),style:{...O.styles.prefix,...n.prefix}},v),F.createElement(Ee,nt({},he,{disabled:f,style:{...O.styles.input,...n.input},className:Te(I,O.classNames.input,a.input),autoSize:{maxRows:8},value:ne,onChange:Oe=>{ce(Oe.target.value,Oe),ye(!0)},onPressEnter:Et,onCompositionStart:Je,onCompositionEnd:Ct,onKeyDown:S,onPaste:Fe,variant:"borderless",readOnly:m})),F.createElement("div",{className:Te(re,O.classNames.actions,a.actions),style:{...O.styles.actions,...n.actions}},F.createElement(Oh.Provider,{value:{prefixCls:J,onSend:qe,onSendDisabled:!ne,onClear:oe,onClearDisabled:!ne,onCancel:E,onCancelDisabled:!y,onSpeech:()=>ye(!1),onSpeechDisabled:!le,speechRecording:we,disabled:f}},Ne)))))}),Wf=_K;process.env.NODE_ENV!=="production"&&(Wf.displayName="Sender");Wf.Header=aK;function Jd(e){return typeof e=="string"}const wK=(e,t,r,n)=>{const[a,i]=ee.useState(""),[o,l]=ee.useState(1),u=t&&Jd(e);return Nv(()=>{i(e),!u&&Jd(e)?l(e.length):Jd(e)&&Jd(a)&&e.indexOf(a)!==0&&l(1)},[e]),ee.useEffect(()=>{if(u&&o<e.length){const m=setTimeout(()=>{l(p=>p+r)},n);return()=>{clearTimeout(m)}}},[o,t,e]),[u?e.slice(0,o):e,u&&o<e.length]};function xK(e){return ee.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 SK=({prefixCls:e})=>F.createElement("span",{className:`${e}-dot`},F.createElement("i",{className:`${e}-dot-item`,key:"item-1"}),F.createElement("i",{className:`${e}-dot-item`,key:"item-2"}),F.createElement("i",{className:`${e}-dot-item`,key:"item-3"})),CK=e=>{const{componentCls:t,paddingSM:r,padding:n}=e;return{[t]:{[`${t}-content`]:{"&-filled,&-outlined,&-shadow":{padding:`${ni(r)} ${ni(n)}`,borderRadius:e.borderRadiusLG},"&-filled":{backgroundColor:e.colorFillContent},"&-outlined":{border:`1px solid ${e.colorBorderSecondary}`},"&-shadow":{boxShadow:e.boxShadowTertiary}}}}},EK=e=>{const{componentCls:t,fontSize:r,lineHeight:n,paddingSM:a,padding:i,calc:o}=e,l=o(r).mul(n).div(2).add(a).equal(),u=`${t}-content`;return{[t]:{[u]:{"&-round":{borderRadius:{_skip_check_:!0,value:l},paddingInline:o(i).mul(1.25).equal()}},[`&-start ${u}-corner`]:{borderStartStartRadius:e.borderRadiusXS},[`&-end ${u}-corner`]:{borderStartEndRadius:e.borderRadiusXS}}}},kK=e=>{const{componentCls:t,padding:r}=e;return{[`${t}-list`]:{display:"flex",flexDirection:"column",gap:r,overflowY:"auto"}}},TK=new mE("loadingMove",{"0%":{transform:"translateY(0)"},"10%":{transform:"translateY(4px)"},"20%":{transform:"translateY(0)"},"30%":{transform:"translateY(-4px)"},"40%":{transform:"translateY(0)"}}),OK=new mE("cursorBlink",{"0%":{opacity:1},"50%":{opacity:0},"100%":{opacity:1}}),AK=e=>{const{componentCls:t,fontSize:r,lineHeight:n,paddingSM:a,colorText:i,calc:o}=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:OK,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:o(a).mul(2).add(o(n).mul(r)).equal(),wordBreak:"break-word",[`& ${t}-dot`]:{position:"relative",height:"100%",display:"flex",alignItems:"center",columnGap:e.marginXS,padding:`0 ${ni(e.paddingXXS)}`,"&-item":{backgroundColor:e.colorPrimary,borderRadius:"100%",width:4,height:4,animationName:TK,animationDuration:"2s",animationIterationCount:"infinite",animationTimingFunction:"linear","&:nth-child(1)":{animationDelay:"0s"},"&:nth-child(2)":{animationDelay:"0.2s"},"&:nth-child(3)":{animationDelay:"0.4s"}}}}}}},RK=()=>({}),CE=Gs("Bubble",e=>{const t=$i(e,{});return[AK(t),kK(t),CK(t),EK(t)]},RK),EE=F.createContext({}),PK=(e,t)=>{const{prefixCls:r,className:n,rootClassName:a,style:i,classNames:o={},styles:l={},avatar:u,placement:c="start",loading:m=!1,loadingRender:p,typing:g,content:y="",messageRender:x,variant:E="filled",shape:k,onTypingComplete:T,header:w,footer:S,...f}=e,{onUpdate:h}=F.useContext(EE),v=F.useRef(null);F.useImperativeHandle(t,()=>({nativeElement:v.current}));const{direction:_,getPrefixCls:R}=ga(),C=R("bubble",r),P=Ws("bubble"),[M,q,L,N]=xK(g),[j,O]=wK(y,M,q,L);F.useEffect(()=>{h==null||h()},[j]);const I=F.useRef(!1);F.useEffect(()=>{!O&&!m?I.current||(I.current=!0,T==null||T()):I.current=!1},[O,m]);const[z,B,H]=CE(C),U=Te(C,a,P.className,n,B,H,`${C}-${c}`,{[`${C}-rtl`]:_==="rtl",[`${C}-typing`]:O&&!m&&!x&&!N}),J=F.isValidElement(u)?u:F.createElement(Z.Avatar,u),re=x?x(j):j;let ne;m?ne=p?p():F.createElement(SK,{prefixCls:C}):ne=F.createElement(F.Fragment,null,re,O&&N);let se=F.createElement("div",{style:{...P.styles.content,...l.content},className:Te(`${C}-content`,`${C}-content-${E}`,k&&`${C}-content-${k}`,P.classNames.content,o.content)},ne);return(w||S)&&(se=F.createElement("div",{className:`${C}-content-wrapper`},w&&F.createElement("div",{className:Te(`${C}-header`,P.classNames.header,o.header),style:{...P.styles.header,...l.header}},w),se,S&&F.createElement("div",{className:Te(`${C}-footer`,P.classNames.footer,o.footer),style:{...P.styles.footer,...l.footer}},S))),z(F.createElement("div",nt({style:{...P.style,...i},className:U},f,{ref:v}),u&&F.createElement("div",{style:{...P.styles.avatar,...l.avatar},className:Te(`${C}-avatar`,P.classNames.avatar,o.avatar)},J),se))},Rh=F.forwardRef(PK);process.env.NODE_ENV!=="production"&&(Rh.displayName="Bubble");function DK(e){const[t,r]=F.useState(e.length),n=F.useMemo(()=>e.slice(0,t),[e,t]),a=F.useMemo(()=>{const o=n[n.length-1];return o?o.key:null},[n]);F.useEffect(()=>{var o;if(!(n.length&&n.every((l,u)=>{var c;return l.key===((c=e[u])==null?void 0:c.key)}))){if(n.length===0)r(1);else for(let l=0;l<n.length;l+=1)if(n[l].key!==((o=e[l])==null?void 0:o.key)){r(l);break}}},[e]);const i=Zn(o=>{o===a&&r(t+1)});return[n,i]}function MK(e,t){const r=ee.useCallback(n=>typeof t=="function"?t(n):t?t[n.role]||{}:{},[t]);return ee.useMemo(()=>(e||[]).map((n,a)=>{const i=n.key??`preset_${a}`;return{...r(n),...n,key:i}}),[e,r])}const FK=1,NK=(e,t)=>{const{prefixCls:r,rootClassName:n,className:a,items:i,autoScroll:o=!0,roles:l,...u}=e,c=Th(u,{attr:!0,aria:!0}),m=ee.useRef(null),p=ee.useRef({}),{getPrefixCls:g}=ga(),y=g("bubble",r),x=`${y}-list`,[E,k,T]=CE(y),[w,S]=ee.useState(!1);ee.useEffect(()=>(S(!0),()=>{S(!1)}),[]);const f=MK(i,l),[h,v]=DK(f),[_,R]=ee.useState(!0),[C,P]=ee.useState(0),M=N=>{const j=N.target;R(j.scrollHeight-Math.abs(j.scrollTop)-j.clientHeight<=FK)};ee.useEffect(()=>{o&&m.current&&_&&m.current.scrollTo({top:m.current.scrollHeight})},[C]),ee.useEffect(()=>{var N;if(o){const j=(N=h[h.length-2])==null?void 0:N.key,O=p.current[j];if(O){const{nativeElement:I}=O,{top:z,bottom:B}=I.getBoundingClientRect(),{top:H,bottom:U}=m.current.getBoundingClientRect();z<U&&B>H&&(P(re=>re+1),R(!0))}}},[h.length]),ee.useImperativeHandle(t,()=>({nativeElement:m.current,scrollTo:({key:N,offset:j,behavior:O="smooth",block:I})=>{if(typeof j=="number")m.current.scrollTo({top:j,behavior:O});else if(N!==void 0){const z=p.current[N];if(z){const B=h.findIndex(H=>H.key===N);R(B===h.length-1),z.nativeElement.scrollIntoView({behavior:O,block:I})}}}}));const q=Zn(()=>{o&&P(N=>N+1)}),L=ee.useMemo(()=>({onUpdate:q}),[]);return E(ee.createElement(EE.Provider,{value:L},ee.createElement("div",nt({},c,{className:Te(x,n,a,k,T,{[`${x}-reach-end`]:_}),ref:m,onScroll:M}),h.map(({key:N,...j})=>ee.createElement(Rh,nt({},j,{key:N,ref:O=>{O?p.current[N]=O:delete p.current[N]},typing:w?j.typing:!1,onTypingComplete:()=>{var O;(O=j.onTypingComplete)==null||O.call(j),v(N)}}))))))},kE=ee.forwardRef(NK);process.env.NODE_ENV!=="production"&&(kE.displayName="BubbleList");Rh.List=kE;const TE=F.createContext(null),_6=({children:e})=>{const{prefixCls:t}=F.useContext(TE);return F.createElement("div",{className:Te(`${t}-group-title`)},e&&F.createElement(Z.Typography.Text,null,e))},IK=e=>{e.stopPropagation()},LK=e=>{const{prefixCls:t,info:r,className:n,direction:a,onClick:i,active:o,menu:l,...u}=e,c=Th(u,{aria:!0,data:!0,attr:!0}),{disabled:m}=r,[p,g]=F.useState(!1),[y,x]=F.useState(!1),E=Te(n,`${t}-item`,{[`${t}-item-active`]:o&&!m},{[`${t}-item-disabled`]:m}),k=()=>{!m&&i&&i(r)},T=w=>{w&&x(!w)};return F.createElement(Z.Tooltip,{title:r.label,open:p&&y,onOpenChange:x,placement:a==="rtl"?"left":"right"},F.createElement("li",nt({},c,{className:E,onClick:k}),r.icon&&F.createElement("div",{className:`${t}-icon`},r.icon),F.createElement(Z.Typography.Text,{className:`${t}-label`,ellipsis:{onEllipsis:g}},r.label),l&&!m&&F.createElement(Z.Dropdown,{menu:l,placement:a==="rtl"?"bottomLeft":"bottomRight",trigger:["click"],disabled:m,onOpenChange:T},F.createElement(EC,{onClick:IK,disabled:m,className:`${t}-menu-icon`}))))},bg="__ungrouped",jK=(e,t=[])=>{const[r,n,a]=F.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 F.useMemo(()=>{if(!r)return[[{name:bg,data:t,title:void 0}],r];const i=t.reduce((u,c)=>{const m=c.group||bg;return u[m]||(u[m]=[]),u[m].push(c),u},{});return[(n?Object.keys(i).sort(n):Object.keys(i)).map(u=>({name:u===bg?void 0:u,title:a,data:i[u]})),r]},[t,e])},$K=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 ${ni(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 ${ni(e.paddingXS)}`}}}},zK=()=>({}),BK=Gs("Conversations",e=>{const t=$i(e,{});return $K(t)},zK),OE=e=>{const{prefixCls:t,rootClassName:r,items:n,activeKey:a,defaultActiveKey:i,onActiveChange:o,menu:l,styles:u={},classNames:c={},groupable:m,className:p,style:g,...y}=e,x=Th(y,{attr:!0,aria:!0,data:!0}),[E,k]=_h(i,{value:a}),[T,w]=jK(m,n),{getPrefixCls:S,direction:f}=ga(),h=S("conversations",t),v=Ws("conversations"),[_,R,C]=BK(h),P=Te(h,v.className,p,r,R,C,{[`${h}-rtl`]:f==="rtl"}),M=q=>{k(q.key),o&&o(q.key)};return _(F.createElement("ul",nt({},x,{style:{...v.style,...g},className:P}),T.map((q,L)=>{var j;const N=q.data.map((O,I)=>F.createElement(LK,{key:O.key||`key-${I}`,info:O,prefixCls:h,direction:f,className:Te(c.item,v.classNames.item),style:{...v.styles.item,...u.item},menu:typeof l=="function"?l(O):l,active:E===O.key,onClick:M}));return w?F.createElement("li",{key:q.name||`key-${L}`},F.createElement(TE.Provider,{value:{prefixCls:h}},((j=q.title)==null?void 0:j.call(q,q.name,{components:{GroupTitle:_6}}))||F.createElement(_6,{key:q.name},q.name)),F.createElement("ul",{className:`${h}-list`},N)):N})))};process.env.NODE_ENV!=="production"&&(OE.displayName="Conversations");const HK=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:`${ni(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}}}}}},UK=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}}}}},qK=()=>({}),WK=Gs("Prompts",e=>{const t=$i(e,{});return[HK(t),UK(t)]},qK),Ph=e=>{const{prefixCls:t,title:r,className:n,items:a,onItemClick:i,vertical:o,wrap:l,rootClassName:u,styles:c={},classNames:m={},style:p,...g}=e,{getPrefixCls:y,direction:x}=ga(),E=y("prompts",t),k=Ws("prompts"),[T,w,S]=WK(E),f=Te(E,k.className,n,u,w,S,{[`${E}-rtl`]:x==="rtl"}),h=Te(`${E}-list`,k.classNames.list,m.list,{[`${E}-list-wrap`]:l},{[`${E}-list-vertical`]:o});return T(F.createElement("div",nt({},g,{className:f,style:{...p,...k.style}}),r&&F.createElement(Z.Typography.Title,{level:5,className:Te(`${E}-title`,k.classNames.title,m.title),style:{...k.styles.title,...c.title}},r),F.createElement("div",{className:h,style:{...k.styles.list,...c.list}},a==null?void 0:a.map((v,_)=>{const R=v.children&&v.children.length>0;return F.createElement("div",{key:v.key||`key_${_}`,style:{...k.styles.item,...c.item},className:Te(`${E}-item`,k.classNames.item,m.item,{[`${E}-item-disabled`]:v.disabled,[`${E}-item-has-nest`]:R}),onClick:()=>{!R&&i&&i({data:v})}},v.icon&&F.createElement("div",{className:`${E}-icon`},v.icon),F.createElement("div",{className:Te(`${E}-content`,k.classNames.itemContent,m.itemContent),style:{...k.styles.itemContent,...c.itemContent}},v.label&&F.createElement("h6",{className:`${E}-label`},v.label),v.description&&F.createElement("p",{className:`${E}-desc`},v.description),R&&F.createElement(Ph,{className:`${E}-nested`,items:v.children,vertical:!0,onItemClick:i,classNames:{list:m.subList,item:m.subItem},styles:{list:c.subList,item:c.subItem}})))}))))};process.env.NODE_ENV!=="production"&&(Ph.displayName="Prompts");const VK=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"}}}}},YK=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}}}}},GK=()=>({}),KK=Gs("Welcome",e=>{const t=$i(e,{});return[VK(t),YK(t)]},GK);function XK(e,t){const{prefixCls:r,rootClassName:n,className:a,style:i,variant:o="filled",classNames:l={},styles:u={},icon:c,title:m,description:p,extra:g}=e,{direction:y,getPrefixCls:x}=ga(),E=x("welcome",r),k=Ws("welcome"),[T,w,S]=KK(E),f=F.useMemo(()=>{if(!c)return null;let _=c;return typeof c=="string"&&c.startsWith("http")&&(_=F.createElement("img",{src:c,alt:"icon"})),F.createElement("div",{className:Te(`${E}-icon`,k.classNames.icon,l.icon),style:u.icon},_)},[c]),h=F.useMemo(()=>m?F.createElement(Z.Typography.Title,{level:4,className:Te(`${E}-title`,k.classNames.title,l.title),style:u.title},m):null,[m]),v=F.useMemo(()=>g?F.createElement("div",{className:Te(`${E}-extra`,k.classNames.extra,l.extra),style:u.extra},g):null,[g]);return T(F.createElement(Z.Flex,{ref:t,className:Te(E,k.className,a,n,w,S,`${E}-${o}`,{[`${E}-rtl`]:y==="rtl"}),style:i},f,F.createElement(Z.Flex,{vertical:!0,className:`${E}-content-wrapper`},g?F.createElement(Z.Flex,{align:"flex-start",className:`${E}-title-wrapper`},h,v):h,p&&F.createElement(Z.Typography.Text,{className:Te(`${E}-description`,k.classNames.description,l.description),style:u.description},p))))}const AE=F.forwardRef(XK);process.env.NODE_ENV!=="production"&&(AE.displayName="Welcome");function ZK(e){const[,t]=F.useState(0),r=F.useRef(typeof e=="function"?e():e),n=F.useCallback(i=>{r.current=typeof i=="function"?i(r.current):i,t(o=>o+1)},[]),a=F.useCallback(()=>r.current,[]);return[r.current,n,a]}function JK(e){return Array.isArray(e)?e:[e]}function QK(e){const{defaultMessages:t,agent:r,requestFallback:n,requestPlaceholder:a,parser:i}=e,o=F.useRef(0),[l,u,c]=ZK(()=>(t||[]).map((E,k)=>({id:`default_${k}`,status:"local",...E}))),m=(E,k)=>{const T={id:`msg_${o.current}`,message:E,status:k};return o.current+=1,T},p=F.useMemo(()=>{const E=[];return l.forEach(k=>{const T=i?i(k.message):k.message,w=JK(T);w.forEach((S,f)=>{let h=k.id;w.length>1&&(h=`${h}_${f}`),E.push({id:h,message:S,status:k.status})})}),E},[l]),g=E=>E.filter(k=>k.status!=="loading"&&k.status!=="error").map(k=>k.message),y=()=>g(c());return{onRequest:Zn(E=>{if(!r)throw new Error("The agent parameter is required when using the onRequest method in an agent generated by useXAgent.");let k=null;u(S=>{let f=[...S,m(E,"local")];if(a){let h;typeof a=="function"?h=a(E,{messages:g(f)}):h=a;const v=m(h,"loading");k=v.id,f=[...f,v]}return f});let T=null;const w=(S,f)=>{let h=c().find(v=>v.id===T);return h?u(v=>v.map(_=>_.id===T?{..._,message:S,status:f}:_)):(h=m(S,f),u(v=>[...v.filter(R=>R.id!==k),h]),T=h.id),h};r.request({message:E,messages:y()},{onUpdate:S=>{w(S,"loading")},onSuccess:S=>{w(S,"success")},onError:async S=>{if(n){let f;typeof n=="function"?f=await n(E,{error:S,messages:y()}):f=n,u(h=>[...h.filter(v=>v.id!==k&&v.id!==T),m(f,"error")])}else u(f=>f.filter(h=>h.id!==k&&h.id!==T))}})}),messages:l,parsedMessages:p,setMessages:u}}const eX=`
494
-
495
- `,tX=`
496
- `,w6=":",M1=e=>(e??"").trim()!=="";function rX(){let e="";return new TransformStream({transform(t,r){e+=t;const n=e.split(eX);n.slice(0,-1).forEach(a=>{M1(a)&&r.enqueue(a)}),e=n[n.length-1]},flush(t){M1(e)&&t.enqueue(e)}})}function nX(){return new TransformStream({transform(e,t){const n=e.split(tX).reduce((a,i)=>{const o=i.indexOf(w6);if(o===-1)throw new Error(`The key-value separator "${w6}" is not found in the sse line chunk!`);const l=i.slice(0,o);if(!M1(l))return a;const u=i.slice(o+1);return{...a,[l]:u}},{});Object.keys(n).length!==0&&t.enqueue(n)}})}function x6(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(rX()).pipeThrough(nX());return a[Symbol.asyncIterator]=async function*(){const i=this.getReader();for(;;){const{done:o,value:l}=await i.read();if(o)break;l&&(yield l)}},a}const aX=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 o=await r(...i);if(typeof n.onResponse=="function"){const l=await n.onResponse(o);if(!(l instanceof Response))throw new Error("The options.onResponse must return a Response instance!");o=l}if(!o.ok)throw new Error(`Fetch failed with status ${o.status}`);if(!o.body)throw new Error("The response body is empty.");return o},fo=class fo{constructor(t){Tt(this,"baseURL");Tt(this,"model");Tt(this,"defaultHeaders");Tt(this,"customOptions");Tt(this,"create",async(t,r,n)=>{var i;const a={method:"POST",body:JSON.stringify({model:this.model,...t}),headers:this.defaultHeaders};try{const o=await aX(this.baseURL,{fetch:this.customOptions.fetch,...a});if(n){await this.customResponseHandler(o,r,n);return}const l=o.headers.get("content-type")||"";switch(l.split(";")[0].trim()){case"text/event-stream":await this.sseResponseHandler(o,r);break;case"application/json":await this.jsonResponseHandler(o,r);break;default:throw new Error(`The response content-type: ${l} is not support!`)}}catch(o){const l=o instanceof Error?o:new Error("Unknown error!");throw(i=r==null?void 0:r.onError)==null||i.call(r,l),l}});Tt(this,"customResponseHandler",async(t,r,n)=>{var i,o;const a=[];for await(const l of x6({readableStream:t.body,transformStream:n}))a.push(l),(i=r==null?void 0:r.onUpdate)==null||i.call(r,l);(o=r==null?void 0:r.onSuccess)==null||o.call(r,a)});Tt(this,"sseResponseHandler",async(t,r)=>{var a,i;const n=[];for await(const o of x6({readableStream:t.body}))n.push(o),(a=r==null?void 0:r.onUpdate)==null||a.call(r,o);(i=r==null?void 0:r.onSuccess)==null||i.call(r,n)});Tt(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 fo.instanceBuffer.has(r)||fo.instanceBuffer.set(r,new fo(t)),fo.instanceBuffer.get(r)}};Tt(fo,"instanceBuffer",new Map);let F1=fo;const iX=F1.init;let S6=0;class oX{constructor(t){Tt(this,"config");Tt(this,"requestingMap",{});Tt(this,"request",(t,r)=>{const{request:n}=this.config,{onUpdate:a,onSuccess:i,onError:o}=r,l=S6;S6+=1,this.requestingMap[l]=!0,n==null||n(t,{onUpdate:u=>{this.requestingMap[l]&&a(u)},onSuccess:u=>{this.requestingMap[l]&&(i(u),this.finishRequest(l))},onError:u=>{this.requestingMap[l]&&(o(u),this.finishRequest(l))}})});this.config=t}finishRequest(t){delete this.requestingMap[t]}isRequesting(){return Object.keys(this.requestingMap).length>0}}function sX(e){const{request:t,...r}=e;return F.useMemo(()=>[new oX({request:t||iX({baseURL:r.baseURL,model:r.model,dangerouslyApiKey:r.dangerouslyApiKey}).create,...r})],[])}const uX="_layout_1c061_1",lX="_top_header_1c061_13",cX="_person_1c061_22",dX="_menu_1c061_35",fX="_conversations_1c061_42",hX="_chat_1c061_47",pX="_messages_1c061_64",mX="_placeholder_1c061_67",gX="_sender_1c061_72",vX="_logo_1c061_75",bX="_addBtn_1c061_95",In={layout:uX,top_header:lX,person:cX,menu:dX,conversations:fX,chat:hX,messages:pX,placeholder:mX,sender:gX,logo:vX,addBtn:bX},N1="RFC3986",I1={RFC1738:e=>String(e).replace(/%20/g,"+"),RFC3986:e=>String(e)},yX="RFC1738",_X=Array.isArray,ia=(()=>{const e=[];for(let t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e})(),yg=1024,wX=(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(l){return"%26%23"+parseInt(l.slice(2),16)+"%3B"});let o="";for(let l=0;l<i.length;l+=yg){const u=i.length>=yg?i.slice(l,l+yg):i,c=[];for(let m=0;m<u.length;++m){let p=u.charCodeAt(m);if(p===45||p===46||p===95||p===126||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||a===yX&&(p===40||p===41)){c[c.length]=u.charAt(m);continue}if(p<128){c[c.length]=ia[p];continue}if(p<2048){c[c.length]=ia[192|p>>6]+ia[128|p&63];continue}if(p<55296||p>=57344){c[c.length]=ia[224|p>>12]+ia[128|p>>6&63]+ia[128|p&63];continue}m+=1,p=65536+((p&1023)<<10|u.charCodeAt(m)&1023),c[c.length]=ia[240|p>>18]+ia[128|p>>12&63]+ia[128|p>>6&63]+ia[128|p&63]}o+=c.join("")}return o};function xX(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))}function C6(e,t){if(_X(e)){const r=[];for(let n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)}const SX=Object.prototype.hasOwnProperty,RE={brackets(e){return String(e)+"[]"},comma:"comma",indices(e,t){return String(e)+"["+t+"]"},repeat(e){return String(e)}},sa=Array.isArray,CX=Array.prototype.push,PE=function(e,t){CX.apply(e,sa(t)?t:[t])},EX=Date.prototype.toISOString,rr={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:wX,encodeValuesOnly:!1,format:N1,formatter:I1[N1],indices:!1,serializeDate(e){return EX.call(e)},skipNulls:!1,strictNullHandling:!1};function kX(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"}const _g={};function DE(e,t,r,n,a,i,o,l,u,c,m,p,g,y,x,E,k,T){let w=e,S=T,f=0,h=!1;for(;(S=S.get(_g))!==void 0&&!h;){const P=S.get(e);if(f+=1,typeof P<"u"){if(P===f)throw new RangeError("Cyclic object value");h=!0}typeof S.get(_g)>"u"&&(f=0)}if(typeof c=="function"?w=c(t,w):w instanceof Date?w=g==null?void 0:g(w):r==="comma"&&sa(w)&&(w=C6(w,function(P){return P instanceof Date?g==null?void 0:g(P):P})),w===null){if(i)return u&&!E?u(t,rr.encoder,k,"key",y):t;w=""}if(kX(w)||xX(w)){if(u){const P=E?t:u(t,rr.encoder,k,"key",y);return[(x==null?void 0:x(P))+"="+(x==null?void 0:x(u(w,rr.encoder,k,"value",y)))]}return[(x==null?void 0:x(t))+"="+(x==null?void 0:x(String(w)))]}const v=[];if(typeof w>"u")return v;let _;if(r==="comma"&&sa(w))E&&u&&(w=C6(w,u)),_=[{value:w.length>0?w.join(",")||null:void 0}];else if(sa(c))_=c;else{const P=Object.keys(w);_=m?P.sort(m):P}const R=l?String(t).replace(/\./g,"%2E"):String(t),C=n&&sa(w)&&w.length===1?R+"[]":R;if(a&&sa(w)&&w.length===0)return C+"[]";for(let P=0;P<_.length;++P){const M=_[P],q=typeof M=="object"&&typeof M.value<"u"?M.value:w[M];if(o&&q===null)continue;const L=p&&l?M.replace(/\./g,"%2E"):M,N=sa(w)?typeof r=="function"?r(C,L):C:C+(p?"."+L:"["+L+"]");T.set(e,f);const j=new WeakMap;j.set(_g,T),PE(v,DE(q,N,r,n,a,i,o,l,r==="comma"&&E&&sa(w)?null:u,c,m,p,g,y,x,E,k,j))}return v}function TX(e=rr){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||rr.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=N1;if(typeof e.format<"u"){if(!SX.call(I1,e.format))throw new TypeError("Unknown format option provided.");r=e.format}const n=I1[r];let a=rr.filter;(typeof e.filter=="function"||sa(e.filter))&&(a=e.filter);let i;if(e.arrayFormat&&e.arrayFormat in RE?i=e.arrayFormat:"indices"in e?i=e.indices?"indices":"repeat":i=rr.arrayFormat,"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");const o=typeof e.allowDots>"u"?e.encodeDotInKeys?!0:rr.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:rr.addQueryPrefix,allowDots:o,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:rr.allowEmptyArrays,arrayFormat:i,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:rr.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?rr.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:rr.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:rr.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:rr.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:rr.encodeValuesOnly,filter:a,format:r,formatter:n,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:rr.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:rr.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:rr.strictNullHandling}}function OX(e,t={}){let r=e;const n=TX(t);let a,i;typeof n.filter=="function"?(i=n.filter,r=i("",r)):sa(n.filter)&&(i=n.filter,a=i);const o=[];if(typeof r!="object"||r===null)return"";const l=RE[n.arrayFormat],u=l==="comma"&&n.commaRoundTrip;a||(a=Object.keys(r)),n.sort&&a.sort(n.sort);const c=new WeakMap;for(let g=0;g<a.length;++g){const y=a[g];n.skipNulls&&r[y]===null||PE(o,DE(r[y],y,l,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,c))}const m=o.join(n.delimiter);let p=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?p+="utf8=%26%2310003%3B&":p+="utf8=%E2%9C%93&"),m.length>0?p+m:""}const ss="4.85.4";let E6=!1,jl,ME,FE,L1,NE,IE,LE,jE,$E;function AX(e,t={auto:!1}){if(E6)throw new Error(`you must \`import 'openai/shims/${e.kind}'\` before importing anything else from openai`);if(jl)throw new Error(`can't \`import 'openai/shims/${e.kind}'\` after \`import 'openai/shims/${jl}'\``);E6=t.auto,jl=e.kind,ME=e.fetch,FE=e.FormData,L1=e.File,NE=e.ReadableStream,IE=e.getMultipartRequestOptions,LE=e.getDefaultAgent,jE=e.fileFromPath,$E=e.isFsReadStream}class RX{constructor(t){this.body=t}get[Symbol.toStringTag](){return"MultipartBody"}}function PX({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(o){throw new Error(`this environment is missing the following Web Fetch API type: ${o.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(o,l)=>({...l,body:new RX(o)}),getDefaultAgent:o=>{},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:o=>!1}}jl||AX(PX(),{auto:!0});class st extends Error{}class gr extends st{constructor(t,r,n,a){super(`${gr.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 Dh({message:n,cause:$1(r)});const i=r==null?void 0:r.error;return t===400?new zE(t,i,n,a):t===401?new BE(t,i,n,a):t===403?new HE(t,i,n,a):t===404?new UE(t,i,n,a):t===409?new qE(t,i,n,a):t===422?new WE(t,i,n,a):t===429?new VE(t,i,n,a):t>=500?new YE(t,i,n,a):new gr(t,i,n,a)}}class Wn extends gr{constructor({message:t}={}){super(void 0,void 0,t||"Request was aborted.",void 0)}}class Dh extends gr{constructor({message:t,cause:r}){super(void 0,void 0,t||"Connection error.",void 0),r&&(this.cause=r)}}class Hv extends Dh{constructor({message:t}={}){super({message:t??"Request timed out."})}}class zE extends gr{}class BE extends gr{}class HE extends gr{}class UE extends gr{}class qE extends gr{}class WE extends gr{}class VE extends gr{}class YE extends gr{}class GE extends st{constructor(){super("Could not parse response content as the length limit was reached")}}class KE extends st{constructor(){super("Could not parse response content as the request was rejected by the content filter")}}var Qd=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},ao=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)},rn;class Mh{constructor(){rn.set(this,void 0),this.buffer=new Uint8Array,Qd(this,rn,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=DX(this.buffer,ao(this,rn,"f")))!=null;){if(i.carriage&&ao(this,rn,"f")==null){Qd(this,rn,i.index,"f");continue}if(ao(this,rn,"f")!=null&&(i.index!==ao(this,rn,"f")+1||i.carriage)){a.push(this.decodeText(this.buffer.slice(0,ao(this,rn,"f")-1))),this.buffer=this.buffer.slice(ao(this,rn,"f")),Qd(this,rn,null,"f");continue}const o=ao(this,rn,"f")!==null?i.preceding-1:i.preceding,l=this.decodeText(this.buffer.slice(0,o));a.push(l),this.buffer=this.buffer.slice(i.index),Qd(this,rn,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 st(`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 st(`Unexpected: received non-Uint8Array/ArrayBuffer (${t.constructor.name}) in a web platform. Please report this error.`)}throw new st("Unexpected: neither Buffer nor TextDecoder are available as globals. Please report this error.")}flush(){return this.buffer.length?this.decode(`
497
- `):[]}}rn=new WeakMap;Mh.NEWLINE_CHARS=new Set([`
498
- `,"\r"]);Mh.NEWLINE_REGEXP=/\r\n|[\n\r]/g;function DX(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 MX(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 XE(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 da{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 o of FX(t,r))if(!i){if(o.data.startsWith("[DONE]")){i=!0;continue}if(o.event===null){let l;try{l=JSON.parse(o.data)}catch(u){throw console.error("Could not parse message into JSON:",o.data),console.error("From chunk:",o.raw),u}if(l&&l.error)throw new gr(void 0,l.error,void 0,void 0);yield l}else{let l;try{l=JSON.parse(o.data)}catch(u){throw console.error("Could not parse message into JSON:",o.data),console.error("From chunk:",o.raw),u}if(o.event=="error")throw new gr(void 0,l.error,l.message,void 0);yield{event:o.event,data:l}}}i=!0}catch(o){if(o instanceof Error&&o.name==="AbortError")return;throw o}finally{i||r.abort()}}return new da(a,r)}static fromReadableStream(t,r){let n=!1;async function*a(){const o=new Mh,l=XE(t);for await(const u of l)for(const c of o.decode(u))yield c;for(const u of o.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 o=!1;try{for await(const l of a())o||l&&(yield JSON.parse(l));o=!0}catch(l){if(l instanceof Error&&l.name==="AbortError")return;throw l}finally{o||r.abort()}}return new da(i,r)}[Symbol.asyncIterator](){return this.iterator()}tee(){const t=[],r=[],n=this.iterator(),a=i=>({next:()=>{if(i.length===0){const o=n.next();t.push(o),r.push(o)}return i.shift()}});return[new da(()=>a(t),this.controller),new da(()=>a(r),this.controller)]}toReadableStream(){const t=this;let r;const n=new TextEncoder;return new NE({async start(){r=t[Symbol.asyncIterator]()},async pull(a){try{const{value:i,done:o}=await r.next();if(o)return a.close();const l=n.encode(JSON.stringify(i)+`
499
- `);a.enqueue(l)}catch(i){a.error(i)}},async cancel(){var a;await((a=r.return)==null?void 0:a.call(r))}})}}async function*FX(e,t){if(!e.body)throw t.abort(),new st("Attempted to iterate over a response with no body");const r=new IX,n=new Mh,a=XE(e.body);for await(const i of NX(a))for(const o of n.decode(i)){const l=r.decode(o);l&&(yield l)}for(const i of n.flush()){const o=r.decode(i);o&&(yield o)}}async function*NX(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=MX(t))!==-1;)yield t.slice(0,i),t=t.slice(i)}t.length>0&&(yield t)}class IX{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]=LX(t,":");return a.startsWith(" ")&&(a=a.substring(1)),r==="event"?this.event=a:r==="data"&&this.data.push(a),null}}function LX(e,t){const r=e.indexOf(t);return r!==-1?[e.substring(0,r),t,e.substring(r+t.length)]:[e,"",""]}const ZE=e=>e!=null&&typeof e=="object"&&typeof e.url=="string"&&typeof e.blob=="function",JE=e=>e!=null&&typeof e=="object"&&typeof e.name=="string"&&typeof e.lastModified=="number"&&Fh(e),Fh=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",jX=e=>JE(e)||ZE(e)||$E(e);async function QE(e,t,r){var a;if(e=await e,JE(e))return e;if(ZE(e)){const i=await e.blob();t||(t=new URL(e.url).pathname.split(/[\\/]/).pop()??"unknown_file");const o=Fh(i)?[await i.arrayBuffer()]:[i];return new L1(o,t,r)}const n=await $X(e);if(t||(t=BX(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 L1(n,t,r)}async function $X(e){var r;let t=[];if(typeof e=="string"||ArrayBuffer.isView(e)||e instanceof ArrayBuffer)t.push(e);else if(Fh(e))t.push(await e.arrayBuffer());else if(HX(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: ${zX(e)}`);return t}function zX(e){return`[${Object.getOwnPropertyNames(e).map(r=>`"${r}"`).join(", ")}]`}function BX(e){var t;return wg(e.name)||wg(e.filename)||((t=wg(e.path))==null?void 0:t.split(/[\\/]/).pop())}const wg=e=>{if(typeof e=="string")return e;if(typeof Buffer<"u"&&e instanceof Buffer)return String(e)},HX=e=>e!=null&&typeof e=="object"&&typeof e[Symbol.asyncIterator]=="function",k6=e=>e&&typeof e=="object"&&e.body&&e[Symbol.toStringTag]==="MultipartBody",Ms=async e=>{const t=await UX(e.body);return IE(t,e)},UX=async e=>{const t=new FE;return await Promise.all(Object.entries(e||{}).map(([r,n])=>j1(t,r,n))),t},j1=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(jX(r)){const n=await QE(r);e.append(t,n)}else if(Array.isArray(r))await Promise.all(r.map(n=>j1(e,t+"[]",n)));else if(typeof r=="object")await Promise.all(Object.entries(r).map(([n,a])=>j1(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 qX=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},WX=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)},ef;async function e5(e){const{response:t}=e;if(e.options.stream)return Ss("response",t.status,t.url,t.headers,t.body),e.options.__streamClass?e.options.__streamClass.fromSSEResponse(t,e.controller):da.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 Ss("response",t.status,t.url,t.headers,i),t5(i,t)}const a=await t.text();return Ss("response",t.status,t.url,t.headers,a),a}function t5(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 Nh extends Promise{constructor(t,r=e5){super(n=>{n(null)}),this.responsePromise=t,this.parseResponse=r}_thenUnwrap(t){return new Nh(this.responsePromise,async r=>t5(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 VX{constructor({baseURL:t,maxRetries:r=2,timeout:n=6e5,httpAgent:a,fetch:i}){this.baseURL=t,this.maxRetries=xg("maxRetries",r),this.timeout=xg("timeout",n),this.httpAgent=a,this.fetch=i??ME}authHeaders(t){return{}}defaultHeaders(t){return{Accept:"application/json","Content-Type":"application/json","User-Agent":this.getUserAgent(),...JX(),...this.authHeaders(t)}}validateHeaders(t,r){}defaultIdempotencyKey(){return`stainless-node-retry-${rZ()}`}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&&Fh(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 x;t={...t};const{method:n,path:a,query:i,headers:o={}}=t,l=ArrayBuffer.isView(t.body)||t.__binaryRequest&&typeof t.body=="string"?t.body:k6(t.body)?t.body.body:t.body?JSON.stringify(t.body,null,2):null,u=this.calculateContentLength(l),c=this.buildURL(a,i);"timeout"in t&&xg("timeout",t.timeout),t.timeout=t.timeout??this.timeout;const m=t.httpAgent??this.httpAgent??LE(c),p=t.timeout+1e3;typeof((x=m==null?void 0:m.options)==null?void 0:x.timeout)=="number"&&p>(m.options.timeout??0)&&(m.options.timeout=p),this.idempotencyHeader&&n!=="get"&&(t.idempotencyKey||(t.idempotencyKey=this.defaultIdempotencyKey()),o[this.idempotencyHeader]=t.idempotencyKey);const g=this.buildHeaders({options:t,headers:o,contentLength:u,retryCount:r});return{req:{method:n,...l&&{body:l},headers:g,...m&&{agent:m},signal:t.signal??null},url:c,timeout:t.timeout}}buildHeaders({options:t,headers:r,contentLength:n,retryCount:a}){const i={};n&&(i["content-length"]=n);const o=this.defaultHeaders(t);return R6(i,o),R6(i,r),k6(t.body)&&jl!=="node"&&delete i["content-type"],rf(o,"x-stainless-retry-count")===void 0&&rf(r,"x-stainless-retry-count")===void 0&&(i["x-stainless-retry-count"]=String(a)),rf(o,"x-stainless-timeout")===void 0&&rf(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 gr.generate(t,r,n,a)}request(t,r=null){return new Nh(this.makeRequest(t,r))}async makeRequest(t,r){var p,g;const n=await t,a=n.maxRetries??this.maxRetries;r==null&&(r=a),await this.prepareOptions(n);const{req:i,url:o,timeout:l}=this.buildRequest(n,{retryCount:a-r});if(await this.prepareRequest(i,{url:o,options:n}),Ss("request",o,n,i.headers),(p=n.signal)!=null&&p.aborted)throw new Wn;const u=new AbortController,c=await this.fetchWithTimeout(o,i,l,u).catch($1);if(c instanceof Error){if((g=n.signal)!=null&&g.aborted)throw new Wn;if(r)return this.retryRequest(n,r);throw c.name==="AbortError"?new Hv:new Dh({cause:c})}const m=GX(c.headers);if(!c.ok){if(r&&this.shouldRetry(c)){const w=`retrying, ${r} attempts remaining`;return Ss(`response (error; ${w})`,c.status,o,m),this.retryRequest(n,r,m)}const y=await c.text().catch(w=>$1(w).message),x=QX(y),E=x?void 0:y;throw Ss(`response (error; ${r?"(error; no more retries left)":"(error; not retryable)"})`,c.status,o,m,E),this.makeStatusError(c.status,x,E,m)}return{response:c,options:n,controller:u}}requestAPIList(t,r){const n=this.makeRequest(r,null);return new YX(this,n,t)}buildURL(t,r){const n=tZ(t)?new URL(t):new URL(this.baseURL+(this.baseURL.endsWith("/")&&t.startsWith("/")?t.slice(1):t)),a=this.defaultQuery();return n5(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 st(`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,...o}=r||{};i&&i.addEventListener("abort",()=>a.abort());const l=setTimeout(()=>a.abort(),n),u={signal:a.signal,...o};return u.method&&(u.method=u.method.toUpperCase()),this.fetch.call(void 0,t,u).finally(()=>{clearTimeout(l)})}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 l=parseFloat(i);Number.isNaN(l)||(a=l)}const o=n==null?void 0:n["retry-after"];if(o&&!a){const l=parseFloat(o);Number.isNaN(l)?a=Date.parse(o)-Date.now():a=l*1e3}if(!(a&&0<=a&&a<60*1e3)){const l=t.maxRetries??this.maxRetries;a=this.calculateDefaultRetryTimeoutMillis(r,l)}return await _c(a),this.makeRequest(t,r-1)}calculateDefaultRetryTimeoutMillis(t,r){const i=r-t,o=Math.min(.5*Math.pow(2,i),8),l=1-Math.random()*.25;return o*l*1e3}getUserAgent(){return`${this.constructor.name}/JS ${ss}`}}class r5{constructor(t,r,n,a){ef.set(this,void 0),qX(this,ef,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 st("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 WX(this,ef,"f").requestAPIList(this.constructor,r)}async*iterPages(){let t=this;for(yield t;t.hasNextPage();)t=await t.getNextPage(),yield t}async*[(ef=new WeakMap,Symbol.asyncIterator)](){for await(const t of this.iterPages())for(const r of t.getPaginatedItems())yield r}}class YX extends Nh{constructor(t,r,n){super(r,async a=>new n(t,a.response,await e5(a),a.options))}async*[Symbol.asyncIterator](){const t=await this;for await(const r of t)yield r}}const GX=e=>new Proxy(Object.fromEntries(e.entries()),{get(t,r){const n=r.toString();return t[n.toLowerCase()]||t[n]}}),KX={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},xr=e=>typeof e=="object"&&e!==null&&!n5(e)&&Object.keys(e).every(t=>a5(KX,t)),XX=()=>{var t;if(typeof Deno<"u"&&Deno.build!=null)return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":ss,"X-Stainless-OS":O6(Deno.build.os),"X-Stainless-Arch":T6(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":ss,"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":ss,"X-Stainless-OS":O6(process.platform),"X-Stainless-Arch":T6(process.arch),"X-Stainless-Runtime":"node","X-Stainless-Runtime-Version":process.version};const e=ZX();return e?{"X-Stainless-Lang":"js","X-Stainless-Package-Version":ss,"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":ss,"X-Stainless-OS":"Unknown","X-Stainless-Arch":"unknown","X-Stainless-Runtime":"unknown","X-Stainless-Runtime-Version":"unknown"}};function ZX(){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,o=n[3]||0;return{browser:t,version:`${a}.${i}.${o}`}}}return null}const T6=e=>e==="x32"?"x32":e==="x86_64"||e==="x64"?"x64":e==="arm"?"arm":e==="aarch64"||e==="arm64"?"arm64":e?`other:${e}`:"unknown",O6=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 A6;const JX=()=>A6??(A6=XX()),QX=e=>{try{return JSON.parse(e)}catch{return}},eZ=/^[a-z][a-z0-9+.-]*:/i,tZ=e=>eZ.test(e),_c=e=>new Promise(t=>setTimeout(t,e)),xg=(e,t)=>{if(typeof t!="number"||!Number.isInteger(t))throw new st(`${e} must be an integer`);if(t<0)throw new st(`${e} must be a positive integer`);return t},$1=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)},tf=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 n5(e){if(!e)return!0;for(const t in e)return!1;return!0}function a5(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function R6(e,t){for(const r in t){if(!a5(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 P6=new Set(["authorization","api-key"]);function Ss(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 o={...a,headers:{...a.headers}};for(const l in a.headers)P6.has(l.toLowerCase())&&(o.headers[l]="REDACTED");return o}let i=null;for(const o in a)P6.has(o.toLowerCase())&&(i??(i={...a}),i[o]="REDACTED");return i??a});console.log(`OpenAI:DEBUG:${e}`,...n)}}const rZ=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)}),nZ=()=>typeof window<"u"&&typeof window.document<"u"&&typeof navigator<"u",aZ=e=>typeof(e==null?void 0:e.get)=="function",rf=(e,t)=>{var n;const r=t.toLowerCase();if(aZ(e)){const a=((n=t[0])==null?void 0:n.toUpperCase())+t.substring(1).replace(/([^\w])(\w)/g,(i,o,l)=>o+l.toUpperCase());for(const i of[t,r,t.toUpperCase(),a]){const o=e.get(i);if(o)return o}}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 Sg(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}class iZ extends r5{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 dn extends r5{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 mt{constructor(t){this._client=t}}let i5=class extends mt{list(t,r={},n){return xr(r)?this.list(t,{},r):this._client.getAPIList(`/chat/completions/${t}/messages`,oZ,{query:r,...n})}},Ih=class extends mt{constructor(){super(...arguments),this.messages=new i5(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 xr(t)?this.list({},t):this._client.getAPIList("/chat/completions",Lh,{query:t,...r})}del(t,r){return this._client.delete(`/chat/completions/${t}`,r)}};class Lh extends dn{}class oZ extends dn{}Ih.ChatCompletionsPage=Lh;Ih.Messages=i5;let jh=class extends mt{constructor(){super(...arguments),this.completions=new Ih(this._client)}};jh.Completions=Ih;jh.ChatCompletionsPage=Lh;class o5 extends mt{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 s5 extends mt{create(t,r){return this._client.post("/audio/transcriptions",Ms({body:t,...r,__metadata:{model:t.model}}))}}class u5 extends mt{create(t,r){return this._client.post("/audio/translations",Ms({body:t,...r,__metadata:{model:t.model}}))}}class wc extends mt{constructor(){super(...arguments),this.transcriptions=new s5(this._client),this.translations=new u5(this._client),this.speech=new o5(this._client)}}wc.Transcriptions=s5;wc.Translations=u5;wc.Speech=o5;class Uv extends mt{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 xr(t)?this.list({},t):this._client.getAPIList("/batches",qv,{query:t,...r})}cancel(t,r){return this._client.post(`/batches/${t}/cancel`,r)}}class qv extends dn{}Uv.BatchesPage=qv;class Wv extends mt{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 xr(t)?this.list({},t):this._client.getAPIList("/assistants",Vv,{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 Vv extends dn{}Wv.AssistantsPage=Vv;function D6(e){return typeof e.parse=="function"}const Cs=e=>(e==null?void 0:e.role)==="assistant",l5=e=>(e==null?void 0:e.role)==="function",c5=e=>(e==null?void 0:e.role)==="tool";var Ln=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},Bt=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)},z1,Cf,Ef,El,kl,kf,Tl,Ya,Ol,Vf,Yf,us,d5;class f5{constructor(){z1.add(this),this.controller=new AbortController,Cf.set(this,void 0),Ef.set(this,()=>{}),El.set(this,()=>{}),kl.set(this,void 0),kf.set(this,()=>{}),Tl.set(this,()=>{}),Ya.set(this,{}),Ol.set(this,!1),Vf.set(this,!1),Yf.set(this,!1),us.set(this,!1),Ln(this,Cf,new Promise((t,r)=>{Ln(this,Ef,t,"f"),Ln(this,El,r,"f")}),"f"),Ln(this,kl,new Promise((t,r)=>{Ln(this,kf,t,"f"),Ln(this,Tl,r,"f")}),"f"),Bt(this,Cf,"f").catch(()=>{}),Bt(this,kl,"f").catch(()=>{})}_run(t){setTimeout(()=>{t().then(()=>{this._emitFinal(),this._emit("end")},Bt(this,z1,"m",d5).bind(this))},0)}_connected(){this.ended||(Bt(this,Ef,"f").call(this),this._emit("connect"))}get ended(){return Bt(this,Ol,"f")}get errored(){return Bt(this,Vf,"f")}get aborted(){return Bt(this,Yf,"f")}abort(){this.controller.abort()}on(t,r){return(Bt(this,Ya,"f")[t]||(Bt(this,Ya,"f")[t]=[])).push({listener:r}),this}off(t,r){const n=Bt(this,Ya,"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(Bt(this,Ya,"f")[t]||(Bt(this,Ya,"f")[t]=[])).push({listener:r,once:!0}),this}emitted(t){return new Promise((r,n)=>{Ln(this,us,!0,"f"),t!=="error"&&this.once("error",n),this.once(t,r)})}async done(){Ln(this,us,!0,"f"),await Bt(this,kl,"f")}_emit(t,...r){if(Bt(this,Ol,"f"))return;t==="end"&&(Ln(this,Ol,!0,"f"),Bt(this,kf,"f").call(this));const n=Bt(this,Ya,"f")[t];if(n&&(Bt(this,Ya,"f")[t]=n.filter(a=>!a.once),n.forEach(({listener:a})=>a(...r))),t==="abort"){const a=r[0];!Bt(this,us,"f")&&!(n!=null&&n.length)&&Promise.reject(a),Bt(this,El,"f").call(this,a),Bt(this,Tl,"f").call(this,a),this._emit("end");return}if(t==="error"){const a=r[0];!Bt(this,us,"f")&&!(n!=null&&n.length)&&Promise.reject(a),Bt(this,El,"f").call(this,a),Bt(this,Tl,"f").call(this,a),this._emit("end")}}_emitFinal(){}}Cf=new WeakMap,Ef=new WeakMap,El=new WeakMap,kl=new WeakMap,kf=new WeakMap,Tl=new WeakMap,Ya=new WeakMap,Ol=new WeakMap,Vf=new WeakMap,Yf=new WeakMap,us=new WeakMap,z1=new WeakSet,d5=function(t){if(Ln(this,Vf,!0,"f"),t instanceof Error&&t.name==="AbortError"&&(t=new Wn),t instanceof Wn)return Ln(this,Yf,!0,"f"),this._emit("abort",t);if(t instanceof st)return this._emit("error",t);if(t instanceof Error){const r=new st(t.message);return r.cause=t,this._emit("error",r)}return this._emit("error",new st(String(t)))};function h5(e){return(e==null?void 0:e.$brand)==="auto-parseable-response-format"}function xc(e){return(e==null?void 0:e.$brand)==="auto-parseable-tool"}function sZ(e,t){return!t||!p5(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}}))}:Yv(e,t)}function Yv(e,t){const r=e.choices.map(n=>{var a;if(n.finish_reason==="length")throw new GE;if(n.finish_reason==="content_filter")throw new KE;return{...n,message:{...n.message,...n.message.tool_calls?{tool_calls:((a=n.message.tool_calls)==null?void 0:a.map(i=>lZ(t,i)))??void 0}:void 0,parsed:n.message.content&&!n.message.refusal?uZ(t,n.message.content):null}}});return{...e,choices:r}}function uZ(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 lZ(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:xc(r)?r.$parseRaw(t.function.arguments):r!=null&&r.function.strict?JSON.parse(t.function.arguments):null}}}function cZ(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 xc(r)||(r==null?void 0:r.function.strict)||!1}function p5(e){var t;return h5(e.response_format)?!0:((t=e.tools)==null?void 0:t.some(r=>xc(r)||r.type==="function"&&r.function.strict===!0))??!1}function dZ(e){for(const t of e??[]){if(t.type!=="function")throw new st(`Currently only \`function\` tool types support auto-parsing; Received \`${t.type}\``);if(t.function.strict!==!0)throw new st(`The \`${t.function.name}\` tool is not marked with \`strict: true\`. Only strict function tools can be auto-parsed`)}}var $r=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)},_r,B1,Gf,H1,U1,q1,m5,W1;const M6=10;class g5 extends f5{constructor(){super(...arguments),_r.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),(l5(t)||c5(t))&&t.content)this._emit("functionCallResult",t.content);else if(Cs(t)&&t.function_call)this._emit("functionCall",t.function_call);else if(Cs(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 st("stream ended without producing a ChatCompletion");return t}async finalContent(){return await this.done(),$r(this,_r,"m",B1).call(this)}async finalMessage(){return await this.done(),$r(this,_r,"m",Gf).call(this)}async finalFunctionCall(){return await this.done(),$r(this,_r,"m",H1).call(this)}async finalFunctionCallResult(){return await this.done(),$r(this,_r,"m",U1).call(this)}async totalUsage(){return await this.done(),$r(this,_r,"m",q1).call(this)}allChatCompletions(){return[...this._chatCompletions]}_emitFinal(){const t=this._chatCompletions[this._chatCompletions.length-1];t&&this._emit("finalChatCompletion",t);const r=$r(this,_r,"m",Gf).call(this);r&&this._emit("finalMessage",r);const n=$r(this,_r,"m",B1).call(this);n&&this._emit("finalContent",n);const a=$r(this,_r,"m",H1).call(this);a&&this._emit("finalFunctionCall",a);const i=$r(this,_r,"m",U1).call(this);i!=null&&this._emit("finalFunctionCallResult",i),this._chatCompletions.some(o=>o.usage)&&this._emit("totalUsage",$r(this,_r,"m",q1).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())),$r(this,_r,"m",m5).call(this,r);const i=await t.chat.completions.create({...r,stream:!1},{...n,signal:this.controller.signal});return this._connected(),this._addChatCompletion(Yv(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 g;const a="function",{function_call:i="auto",stream:o,...l}=r,u=typeof i!="string"&&(i==null?void 0:i.name),{maxChatCompletions:c=M6}=n||{},m={};for(const y of r.functions)m[y.name||y.function.name]=y;const p=r.functions.map(y=>({name:y.name||y.function.name,parameters:y.parameters,description:y.description}));for(const y of r.messages)this._addMessage(y,!1);for(let y=0;y<c;++y){const E=(g=(await this._createChatCompletion(t,{...l,function_call:i,functions:p,messages:[...this.messages]},n)).choices[0])==null?void 0:g.message;if(!E)throw new st("missing message in ChatCompletion response");if(!E.function_call)return;const{name:k,arguments:T}=E.function_call,w=m[k];if(w){if(u&&u!==k){const v=`Invalid function_call: ${JSON.stringify(k)}. ${JSON.stringify(u)} requested. Please try again`;this._addMessage({role:a,name:k,content:v});continue}}else{const v=`Invalid function_call: ${JSON.stringify(k)}. Available options are: ${p.map(_=>JSON.stringify(_.name)).join(", ")}. Please try again`;this._addMessage({role:a,name:k,content:v});continue}let S;try{S=D6(w)?await w.parse(T):T}catch(v){this._addMessage({role:a,name:k,content:v instanceof Error?v.message:String(v)});continue}const f=await w.function(S,this),h=$r(this,_r,"m",W1).call(this,f);if(this._addMessage({role:a,name:k,content:h}),u)return}}async _runTools(t,r,n){var y,x,E;const a="tool",{tool_choice:i="auto",stream:o,...l}=r,u=typeof i!="string"&&((y=i==null?void 0:i.function)==null?void 0:y.name),{maxChatCompletions:c=M6}=n||{},m=r.tools.map(k=>{if(xc(k)){if(!k.$callback)throw new st("Tool given to `.runTools()` that does not have an associated function");return{type:"function",function:{function:k.$callback,name:k.function.name,description:k.function.description||"",parameters:k.function.parameters,parse:k.$parseRaw,strict:!0}}}return k}),p={};for(const k of m)k.type==="function"&&(p[k.function.name||k.function.function.name]=k.function);const g="tools"in r?m.map(k=>k.type==="function"?{type:"function",function:{name:k.function.name||k.function.function.name,parameters:k.function.parameters,description:k.function.description,strict:k.function.strict}}:k):void 0;for(const k of r.messages)this._addMessage(k,!1);for(let k=0;k<c;++k){const w=(x=(await this._createChatCompletion(t,{...l,tool_choice:i,tools:g,messages:[...this.messages]},n)).choices[0])==null?void 0:x.message;if(!w)throw new st("missing message in ChatCompletion response");if(!((E=w.tool_calls)!=null&&E.length))return;for(const S of w.tool_calls){if(S.type!=="function")continue;const f=S.id,{name:h,arguments:v}=S.function,_=p[h];if(_){if(u&&u!==h){const M=`Invalid tool_call: ${JSON.stringify(h)}. ${JSON.stringify(u)} requested. Please try again`;this._addMessage({role:a,tool_call_id:f,content:M});continue}}else{const M=`Invalid tool_call: ${JSON.stringify(h)}. Available options are: ${Object.keys(p).map(q=>JSON.stringify(q)).join(", ")}. Please try again`;this._addMessage({role:a,tool_call_id:f,content:M});continue}let R;try{R=D6(_)?await _.parse(v):v}catch(M){const q=M instanceof Error?M.message:String(M);this._addMessage({role:a,tool_call_id:f,content:q});continue}const C=await _.function(R,this),P=$r(this,_r,"m",W1).call(this,C);if(this._addMessage({role:a,tool_call_id:f,content:P}),u)return}}}}_r=new WeakSet,B1=function(){return $r(this,_r,"m",Gf).call(this).content??null},Gf=function(){let t=this.messages.length;for(;t-- >0;){const r=this.messages[t];if(Cs(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 st("stream ended without producing a ChatCompletionMessage with role=assistant")},H1=function(){var t,r;for(let n=this.messages.length-1;n>=0;n--){const a=this.messages[n];if(Cs(a)&&(a!=null&&a.function_call))return a.function_call;if(Cs(a)&&((t=a==null?void 0:a.tool_calls)!=null&&t.length))return(r=a.tool_calls.at(-1))==null?void 0:r.function}},U1=function(){for(let t=this.messages.length-1;t>=0;t--){const r=this.messages[t];if(l5(r)&&r.content!=null||c5(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}},q1=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},m5=function(t){if(t.n!=null&&t.n>1)throw new st("ChatCompletion convenience helpers only support n=1 at this time. To use n>1, please use chat.completions.create() directly.")},W1=function(t){return typeof t=="string"?t:t===void 0?"undefined":JSON.stringify(t)};class nc extends g5{static runFunctions(t,r,n){const a=new nc,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 nc,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),Cs(t)&&t.content&&this._emit("content",t.content)}}const v5=1,b5=2,y5=4,_5=8,w5=16,x5=32,S5=64,C5=128,E5=256,fZ=C5|E5,hZ=w5|x5|fZ|S5,pZ=v5|b5|hZ,mZ=y5|_5,gZ=pZ|mZ,sr={STR:v5,NUM:b5,ARR:y5,OBJ:_5,NULL:w5,BOOL:x5,NAN:S5,INFINITY:C5,MINUS_INFINITY:E5,ALL:gZ};class vZ extends Error{}class bZ extends Error{}function yZ(e,t=sr.ALL){if(typeof e!="string")throw new TypeError(`expecting str, got ${typeof e}`);if(!e.trim())throw new Error(`${e} is empty`);return _Z(e.trim(),t)}const _Z=(e,t)=>{const r=e.length;let n=0;const a=g=>{throw new vZ(`${g} at position ${n}`)},i=g=>{throw new bZ(`${g} at position ${n}`)},o=()=>(p(),n>=r&&a("Unexpected end of input"),e[n]==='"'?l():e[n]==="{"?u():e[n]==="["?c():e.substring(n,n+4)==="null"||sr.NULL&t&&r-n<4&&"null".startsWith(e.substring(n))?(n+=4,null):e.substring(n,n+4)==="true"||sr.BOOL&t&&r-n<4&&"true".startsWith(e.substring(n))?(n+=4,!0):e.substring(n,n+5)==="false"||sr.BOOL&t&&r-n<5&&"false".startsWith(e.substring(n))?(n+=5,!1):e.substring(n,n+8)==="Infinity"||sr.INFINITY&t&&r-n<8&&"Infinity".startsWith(e.substring(n))?(n+=8,1/0):e.substring(n,n+9)==="-Infinity"||sr.MINUS_INFINITY&t&&1<r-n&&r-n<9&&"-Infinity".startsWith(e.substring(n))?(n+=9,-1/0):e.substring(n,n+3)==="NaN"||sr.NAN&t&&r-n<3&&"NaN".startsWith(e.substring(n))?(n+=3,NaN):m()),l=()=>{const g=n;let y=!1;for(n++;n<r&&(e[n]!=='"'||y&&e[n-1]==="\\");)y=e[n]==="\\"?!y:!1,n++;if(e.charAt(n)=='"')try{return JSON.parse(e.substring(g,++n-Number(y)))}catch(x){i(String(x))}else if(sr.STR&t)try{return JSON.parse(e.substring(g,n-Number(y))+'"')}catch{return JSON.parse(e.substring(g,e.lastIndexOf("\\"))+'"')}a("Unterminated string literal")},u=()=>{n++,p();const g={};try{for(;e[n]!=="}";){if(p(),n>=r&&sr.OBJ&t)return g;const y=l();p(),n++;try{const x=o();Object.defineProperty(g,y,{value:x,writable:!0,enumerable:!0,configurable:!0})}catch(x){if(sr.OBJ&t)return g;throw x}p(),e[n]===","&&n++}}catch{if(sr.OBJ&t)return g;a("Expected '}' at end of object")}return n++,g},c=()=>{n++;const g=[];try{for(;e[n]!=="]";)g.push(o()),p(),e[n]===","&&n++}catch{if(sr.ARR&t)return g;a("Expected ']' at end of array")}return n++,g},m=()=>{if(n===0){e==="-"&&sr.NUM&t&&a("Not sure what '-' is");try{return JSON.parse(e)}catch(y){if(sr.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(y))}}const g=n;for(e[n]==="-"&&n++;e[n]&&!",]}".includes(e[n]);)n++;n==r&&!(sr.NUM&t)&&a("Unterminated number literal");try{return JSON.parse(e.substring(g,n))}catch{e.substring(g,n)==="-"&&sr.NUM&t&&a("Not sure what '-' is");try{return JSON.parse(e.substring(g,e.lastIndexOf("e")))}catch(x){i(String(x))}}},p=()=>{for(;n<r&&`
501
- \r `.includes(e[n]);)n++};return o()},F6=e=>yZ(e,sr.ALL^sr.NUM);var ts=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},Ot=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)},tr,Va,rs,wi,Cg,nf,Eg,kg,Tg,af,Og,N6;class ac extends g5{constructor(t){super(),tr.add(this),Va.set(this,void 0),rs.set(this,void 0),wi.set(this,void 0),ts(this,Va,t,"f"),ts(this,rs,[],"f")}get currentChatCompletionSnapshot(){return Ot(this,wi,"f")}static fromReadableStream(t){const r=new ac(null);return r._run(()=>r._fromReadableStream(t)),r}static createChatCompletion(t,r,n){const a=new ac(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 o;super._createChatCompletion;const a=n==null?void 0:n.signal;a&&(a.aborted&&this.controller.abort(),a.addEventListener("abort",()=>this.controller.abort())),Ot(this,tr,"m",Cg).call(this);const i=await t.chat.completions.create({...r,stream:!0},{...n,signal:this.controller.signal});this._connected();for await(const l of i)Ot(this,tr,"m",Eg).call(this,l);if((o=i.controller.signal)!=null&&o.aborted)throw new Wn;return this._addChatCompletion(Ot(this,tr,"m",af).call(this))}async _fromReadableStream(t,r){var o;const n=r==null?void 0:r.signal;n&&(n.aborted&&this.controller.abort(),n.addEventListener("abort",()=>this.controller.abort())),Ot(this,tr,"m",Cg).call(this),this._connected();const a=da.fromReadableStream(t,this.controller);let i;for await(const l of a)i&&i!==l.id&&this._addChatCompletion(Ot(this,tr,"m",af).call(this)),Ot(this,tr,"m",Eg).call(this,l),i=l.id;if((o=a.controller.signal)!=null&&o.aborted)throw new Wn;return this._addChatCompletion(Ot(this,tr,"m",af).call(this))}[(Va=new WeakMap,rs=new WeakMap,wi=new WeakMap,tr=new WeakSet,Cg=function(){this.ended||ts(this,wi,void 0,"f")},nf=function(r){let n=Ot(this,rs,"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},Ot(this,rs,"f")[r.index]=n,n)},Eg=function(r){var a,i,o,l,u,c,m,p,g,y,x,E,k,T,w;if(this.ended)return;const n=Ot(this,tr,"m",N6).call(this,r);this._emit("chunk",r,n);for(const S of r.choices){const f=n.choices[S.index];S.delta.content!=null&&((a=f.message)==null?void 0:a.role)==="assistant"&&((i=f.message)!=null&&i.content)&&(this._emit("content",S.delta.content,f.message.content),this._emit("content.delta",{delta:S.delta.content,snapshot:f.message.content,parsed:f.message.parsed})),S.delta.refusal!=null&&((o=f.message)==null?void 0:o.role)==="assistant"&&((l=f.message)!=null&&l.refusal)&&this._emit("refusal.delta",{delta:S.delta.refusal,snapshot:f.message.refusal}),((u=S.logprobs)==null?void 0:u.content)!=null&&((c=f.message)==null?void 0:c.role)==="assistant"&&this._emit("logprobs.content.delta",{content:(m=S.logprobs)==null?void 0:m.content,snapshot:((p=f.logprobs)==null?void 0:p.content)??[]}),((g=S.logprobs)==null?void 0:g.refusal)!=null&&((y=f.message)==null?void 0:y.role)==="assistant"&&this._emit("logprobs.refusal.delta",{refusal:(x=S.logprobs)==null?void 0:x.refusal,snapshot:((E=f.logprobs)==null?void 0:E.refusal)??[]});const h=Ot(this,tr,"m",nf).call(this,f);f.finish_reason&&(Ot(this,tr,"m",Tg).call(this,f),h.current_tool_call_index!=null&&Ot(this,tr,"m",kg).call(this,f,h.current_tool_call_index));for(const v of S.delta.tool_calls??[])h.current_tool_call_index!==v.index&&(Ot(this,tr,"m",Tg).call(this,f),h.current_tool_call_index!=null&&Ot(this,tr,"m",kg).call(this,f,h.current_tool_call_index)),h.current_tool_call_index=v.index;for(const v of S.delta.tool_calls??[]){const _=(k=f.message.tool_calls)==null?void 0:k[v.index];_!=null&&_.type&&((_==null?void 0:_.type)==="function"?this._emit("tool_calls.function.arguments.delta",{name:(T=_.function)==null?void 0:T.name,index:v.index,arguments:_.function.arguments,parsed_arguments:_.function.parsed_arguments,arguments_delta:((w=v.function)==null?void 0:w.arguments)??""}):(_==null||_.type,void 0))}}},kg=function(r,n){var o,l,u;if(Ot(this,tr,"m",nf).call(this,r).done_tool_calls.has(n))return;const i=(o=r.message.tool_calls)==null?void 0:o[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 c=(u=(l=Ot(this,Va,"f"))==null?void 0:l.tools)==null?void 0:u.find(m=>m.type==="function"&&m.function.name===i.function.name);this._emit("tool_calls.function.arguments.done",{name:i.function.name,index:n,arguments:i.function.arguments,parsed_arguments:xc(c)?c.$parseRaw(i.function.arguments):c!=null&&c.function.strict?JSON.parse(i.function.arguments):null})}else i.type},Tg=function(r){var a,i;const n=Ot(this,tr,"m",nf).call(this,r);if(r.message.content&&!n.content_done){n.content_done=!0;const o=Ot(this,tr,"m",Og).call(this);this._emit("content.done",{content:r.message.content,parsed:o?o.$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}))},af=function(){if(this.ended)throw new st("stream has ended, this shouldn't happen");const r=Ot(this,wi,"f");if(!r)throw new st("request ended without sending any chunks");return ts(this,wi,void 0,"f"),ts(this,rs,[],"f"),wZ(r,Ot(this,Va,"f"))},Og=function(){var n;const r=(n=Ot(this,Va,"f"))==null?void 0:n.response_format;return h5(r)?r:null},N6=function(r){var n,a,i,o;let l=Ot(this,wi,"f");const{choices:u,...c}=r;l?Object.assign(l,c):l=ts(this,wi,{...c,choices:[]},"f");for(const{delta:m,finish_reason:p,index:g,logprobs:y=null,...x}of r.choices){let E=l.choices[g];if(E||(E=l.choices[g]={finish_reason:p,index:g,message:{},logprobs:y,...x}),y)if(!E.logprobs)E.logprobs=Object.assign({},y);else{const{content:v,refusal:_,...R}=y;Object.assign(E.logprobs,R),v&&((n=E.logprobs).content??(n.content=[]),E.logprobs.content.push(...v)),_&&((a=E.logprobs).refusal??(a.refusal=[]),E.logprobs.refusal.push(..._))}if(p&&(E.finish_reason=p,Ot(this,Va,"f")&&p5(Ot(this,Va,"f")))){if(p==="length")throw new GE;if(p==="content_filter")throw new KE}if(Object.assign(E,x),!m)continue;const{content:k,refusal:T,function_call:w,role:S,tool_calls:f,...h}=m;if(Object.assign(E.message,h),T&&(E.message.refusal=(E.message.refusal||"")+T),S&&(E.message.role=S),w&&(E.message.function_call?(w.name&&(E.message.function_call.name=w.name),w.arguments&&((i=E.message.function_call).arguments??(i.arguments=""),E.message.function_call.arguments+=w.arguments)):E.message.function_call=w),k&&(E.message.content=(E.message.content||"")+k,!E.message.refusal&&Ot(this,tr,"m",Og).call(this)&&(E.message.parsed=F6(E.message.content))),f){E.message.tool_calls||(E.message.tool_calls=[]);for(const{index:v,id:_,type:R,function:C,...P}of f){const M=(o=E.message.tool_calls)[v]??(o[v]={});Object.assign(M,P),_&&(M.id=_),R&&(M.type=R),C&&(M.function??(M.function={name:C.name??"",arguments:""})),C!=null&&C.name&&(M.function.name=C.name),C!=null&&C.arguments&&(M.function.arguments+=C.arguments,cZ(Ot(this,Va,"f"),M)&&(M.function.parsed_arguments=F6(M.function.arguments)))}}}return l},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,o)=>r.push({resolve:i,reject:o})).then(i=>i?{value:i,done:!1}:{value:void 0,done:!0}),return:async()=>(this.abort(),{value:void 0,done:!0})}}toReadableStream(){return new da(this[Symbol.asyncIterator].bind(this),this.controller).toReadableStream()}}function wZ(e,t){const{id:r,choices:n,created:a,model:i,system_fingerprint:o,...l}=e,u={...l,id:r,choices:n.map(({message:c,finish_reason:m,index:p,logprobs:g,...y})=>{if(!m)throw new st(`missing finish_reason for choice ${p}`);const{content:x=null,function_call:E,tool_calls:k,...T}=c,w=c.role;if(!w)throw new st(`missing role for choice ${p}`);if(E){const{arguments:S,name:f}=E;if(S==null)throw new st(`missing function_call.arguments for choice ${p}`);if(!f)throw new st(`missing function_call.name for choice ${p}`);return{...y,message:{content:x,function_call:{arguments:S,name:f},role:w,refusal:c.refusal??null},finish_reason:m,index:p,logprobs:g}}return k?{...y,index:p,finish_reason:m,logprobs:g,message:{...T,role:w,content:x,refusal:c.refusal??null,tool_calls:k.map((S,f)=>{const{function:h,type:v,id:_,...R}=S,{arguments:C,name:P,...M}=h||{};if(_==null)throw new st(`missing choices[${p}].tool_calls[${f}].id
502
- ${of(e)}`);if(v==null)throw new st(`missing choices[${p}].tool_calls[${f}].type
503
- ${of(e)}`);if(P==null)throw new st(`missing choices[${p}].tool_calls[${f}].function.name
504
- ${of(e)}`);if(C==null)throw new st(`missing choices[${p}].tool_calls[${f}].function.arguments
505
- ${of(e)}`);return{...R,id:_,type:v,function:{...M,name:P,arguments:C}}})}}:{...y,message:{...T,content:x,role:w,refusal:c.refusal??null},finish_reason:m,index:p,logprobs:g}}),created:a,model:i,object:"chat.completion",...o?{system_fingerprint:o}:{}};return sZ(u,t)}function of(e){return JSON.stringify(e)}class Es extends ac{static fromReadableStream(t){const r=new Es(null);return r._run(()=>r._fromReadableStream(t)),r}static runFunctions(t,r,n){const a=new Es(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 Es(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 k5=class extends mt{parse(t,r){return dZ(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=>Yv(n,t))}runFunctions(t,r){return t.stream?Es.runFunctions(this._client,t,r):nc.runFunctions(this._client,t,r)}runTools(t,r){return t.stream?Es.runTools(this._client,t,r):nc.runTools(this._client,t,r)}stream(t,r){return ac.createChatCompletion(this._client,t,r)}};class V1 extends mt{constructor(){super(...arguments),this.completions=new k5(this._client)}}(function(e){e.Completions=k5})(V1||(V1={}));class T5 extends mt{create(t,r){return this._client.post("/realtime/sessions",{body:t,...r,headers:{"OpenAI-Beta":"assistants=v2",...r==null?void 0:r.headers}})}}class Gv extends mt{constructor(){super(...arguments),this.sessions=new T5(this._client)}}Gv.Sessions=T5;var Pe=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)},en=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},pr,Y1,ua,Tf,jn,vo,hs,co,Kf,an,Of,Af,$l,Al,Rl,I6,L6,j6,$6,z6,B6,H6;class Vn extends f5{constructor(){super(...arguments),pr.add(this),Y1.set(this,[]),ua.set(this,{}),Tf.set(this,{}),jn.set(this,void 0),vo.set(this,void 0),hs.set(this,void 0),co.set(this,void 0),Kf.set(this,void 0),an.set(this,void 0),Of.set(this,void 0),Af.set(this,void 0),$l.set(this,void 0)}[(Y1=new WeakMap,ua=new WeakMap,Tf=new WeakMap,jn=new WeakMap,vo=new WeakMap,hs=new WeakMap,co=new WeakMap,Kf=new WeakMap,an=new WeakMap,Of=new WeakMap,Af=new WeakMap,$l=new WeakMap,pr=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,o)=>r.push({resolve:i,reject:o})).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 Vn;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=da.fromReadableStream(t,this.controller);for await(const o of a)Pe(this,pr,"m",Al).call(this,o);if((i=a.controller.signal)!=null&&i.aborted)throw new Wn;return this._addRun(Pe(this,pr,"m",Rl).call(this))}toReadableStream(){return new da(this[Symbol.asyncIterator].bind(this),this.controller).toReadableStream()}static createToolAssistantStream(t,r,n,a,i){const o=new Vn;return o._run(()=>o._runToolAssistantStream(t,r,n,a,{...i,headers:{...i==null?void 0:i.headers,"X-Stainless-Helper-Method":"stream"}})),o}async _createToolAssistantStream(t,r,n,a,i){var c;const o=i==null?void 0:i.signal;o&&(o.aborted&&this.controller.abort(),o.addEventListener("abort",()=>this.controller.abort()));const l={...a,stream:!0},u=await t.submitToolOutputs(r,n,l,{...i,signal:this.controller.signal});this._connected();for await(const m of u)Pe(this,pr,"m",Al).call(this,m);if((c=u.controller.signal)!=null&&c.aborted)throw new Wn;return this._addRun(Pe(this,pr,"m",Rl).call(this))}static createThreadAssistantStream(t,r,n){const a=new Vn;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 Vn;return i._run(()=>i._runAssistantStream(t,r,n,{...a,headers:{...a==null?void 0:a.headers,"X-Stainless-Helper-Method":"stream"}})),i}currentEvent(){return Pe(this,Of,"f")}currentRun(){return Pe(this,Af,"f")}currentMessageSnapshot(){return Pe(this,jn,"f")}currentRunStepSnapshot(){return Pe(this,$l,"f")}async finalRunSteps(){return await this.done(),Object.values(Pe(this,ua,"f"))}async finalMessages(){return await this.done(),Object.values(Pe(this,Tf,"f"))}async finalRun(){if(await this.done(),!Pe(this,vo,"f"))throw Error("Final run was not received.");return Pe(this,vo,"f")}async _createThreadAssistantStream(t,r,n){var l;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},o=await t.createAndRun(i,{...n,signal:this.controller.signal});this._connected();for await(const u of o)Pe(this,pr,"m",Al).call(this,u);if((l=o.controller.signal)!=null&&l.aborted)throw new Wn;return this._addRun(Pe(this,pr,"m",Rl).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 o={...n,stream:!0},l=await t.create(r,o,{...a,signal:this.controller.signal});this._connected();for await(const c of l)Pe(this,pr,"m",Al).call(this,c);if((u=l.controller.signal)!=null&&u.aborted)throw new Wn;return this._addRun(Pe(this,pr,"m",Rl).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(Sg(i)&&Sg(a))i=this.accumulateDelta(i,a);else if(Array.isArray(i)&&Array.isArray(a)){if(i.every(o=>typeof o=="string"||typeof o=="number")){i.push(...a);continue}for(const o of a){if(!Sg(o))throw new Error(`Expected array delta entry to be an object but got: ${o}`);const l=o.index;if(l==null)throw console.error(o),new Error("Expected array delta entry to have an `index` property");if(typeof l!="number")throw new Error(`Expected array delta entry \`index\` property to be a number but got ${l}`);const u=i[l];u==null?i.push(o):i[l]=this.accumulateDelta(u,o)}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)}}Al=function(t){if(!this.ended)switch(en(this,Of,t,"f"),Pe(this,pr,"m",j6).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":Pe(this,pr,"m",H6).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":Pe(this,pr,"m",L6).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":Pe(this,pr,"m",I6).call(this,t);break;case"error":throw new Error("Encountered an error event in event processing - errors should be processed earlier")}},Rl=function(){if(this.ended)throw new st("stream has ended, this shouldn't happen");if(!Pe(this,vo,"f"))throw Error("Final run has not been received");return Pe(this,vo,"f")},I6=function(t){const[r,n]=Pe(this,pr,"m",z6).call(this,t,Pe(this,jn,"f"));en(this,jn,r,"f"),Pe(this,Tf,"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,o=r.content[a.index];if(o&&o.type=="text")this._emit("textDelta",i,o.text);else throw Error("The snapshot associated with this text delta is not text or missing")}if(a.index!=Pe(this,hs,"f")){if(Pe(this,co,"f"))switch(Pe(this,co,"f").type){case"text":this._emit("textDone",Pe(this,co,"f").text,Pe(this,jn,"f"));break;case"image_file":this._emit("imageFileDone",Pe(this,co,"f").image_file,Pe(this,jn,"f"));break}en(this,hs,a.index,"f")}en(this,co,r.content[a.index],"f")}break;case"thread.message.completed":case"thread.message.incomplete":if(Pe(this,hs,"f")!==void 0){const a=t.data.content[Pe(this,hs,"f")];if(a)switch(a.type){case"image_file":this._emit("imageFileDone",a.image_file,Pe(this,jn,"f"));break;case"text":this._emit("textDone",a.text,Pe(this,jn,"f"));break}}Pe(this,jn,"f")&&this._emit("messageDone",t.data),en(this,jn,void 0,"f")}},L6=function(t){const r=Pe(this,pr,"m",$6).call(this,t);switch(en(this,$l,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==Pe(this,Kf,"f")?this._emit("toolCallDelta",i,r.step_details.tool_calls[i.index]):(Pe(this,an,"f")&&this._emit("toolCallDone",Pe(this,an,"f")),en(this,Kf,i.index,"f"),en(this,an,r.step_details.tool_calls[i.index],"f"),Pe(this,an,"f")&&this._emit("toolCallCreated",Pe(this,an,"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":en(this,$l,void 0,"f"),t.data.step_details.type=="tool_calls"&&Pe(this,an,"f")&&(this._emit("toolCallDone",Pe(this,an,"f")),en(this,an,void 0,"f")),this._emit("runStepDone",t.data,r);break}},j6=function(t){Pe(this,Y1,"f").push(t),this._emit("event",t)},$6=function(t){switch(t.event){case"thread.run.step.created":return Pe(this,ua,"f")[t.data.id]=t.data,t.data;case"thread.run.step.delta":let r=Pe(this,ua,"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=Vn.accumulateDelta(r,n.delta);Pe(this,ua,"f")[t.data.id]=a}return Pe(this,ua,"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":Pe(this,ua,"f")[t.data.id]=t.data;break}if(Pe(this,ua,"f")[t.data.id])return Pe(this,ua,"f")[t.data.id];throw new Error("No snapshot available")},z6=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 o=r.content[i.index];r.content[i.index]=Pe(this,pr,"m",B6).call(this,i,o)}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")},B6=function(t,r){return Vn.accumulateDelta(r,t)},H6=function(t){switch(en(this,Af,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":en(this,vo,t.data,"f"),Pe(this,an,"f")&&(this._emit("toolCallDone",Pe(this,an,"f")),en(this,an,void 0,"f"));break}};class Kv extends mt{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 xr(r)?this.list(t,{},r):this._client.getAPIList(`/threads/${t}/messages`,Xv,{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 Xv extends dn{}Kv.MessagesPage=Xv;class Zv extends mt{retrieve(t,r,n,a={},i){return xr(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 xr(n)?this.list(t,r,{},n):this._client.getAPIList(`/threads/${t}/runs/${r}/steps`,Jv,{query:n,...a,headers:{"OpenAI-Beta":"assistants=v2",...a==null?void 0:a.headers}})}}class Jv extends dn{}Zv.RunStepsPage=Jv;class Sc extends mt{constructor(){super(...arguments),this.steps=new Zv(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 xr(r)?this.list(t,{},r):this._client.getAPIList(`/threads/${t}/runs`,Qv,{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 Vn.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:o}=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 l=5e3;if(n!=null&&n.pollIntervalMs)l=n.pollIntervalMs;else{const u=o.headers.get("openai-poll-after-ms");if(u){const c=parseInt(u);isNaN(c)||(l=c)}}await _c(l);break;case"requires_action":case"incomplete":case"cancelled":case"completed":case"failed":case"expired":return i}}}stream(t,r,n){return Vn.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 Vn.createToolAssistantStream(t,r,this._client.beta.threads.runs,n,a)}}class Qv extends dn{}Sc.RunsPage=Qv;Sc.Steps=Zv;Sc.RunStepsPage=Jv;class Ks extends mt{constructor(){super(...arguments),this.runs=new Sc(this._client),this.messages=new Kv(this._client)}create(t={},r){return xr(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 Vn.createThreadAssistantStream(t,this._client.beta.threads,r)}}Ks.Runs=Sc;Ks.RunsPage=Qv;Ks.Messages=Kv;Ks.MessagesPage=Xv;const xZ=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 eb=class extends mt{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 xr(r)?this.list(t,{},r):this._client.getAPIList(`/vector_stores/${t}/files`,$h,{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(),o=i.data;switch(o.status){case"in_progress":let l=5e3;if(n!=null&&n.pollIntervalMs)l=n.pollIntervalMs;else{const u=i.response.headers.get("openai-poll-after-ms");if(u){const c=parseInt(u);isNaN(c)||(l=c)}}await _c(l);break;case"failed":case"completed":return o}}}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 $h extends dn{}eb.VectorStoreFilesPage=$h;class O5 extends mt{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 xr(n)?this.listFiles(t,r,{},n):this._client.getAPIList(`/vector_stores/${t}/file_batches/${r}/files`,$h,{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:o}=await this.retrieve(t,r,{...n,headers:a}).withResponse();switch(i.status){case"in_progress":let l=5e3;if(n!=null&&n.pollIntervalMs)l=n.pollIntervalMs;else{const u=o.headers.get("openai-poll-after-ms");if(u){const c=parseInt(u);isNaN(c)||(l=c)}}await _c(l);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,o=Math.min(i,r.length),l=this._client,u=r.values(),c=[...n];async function m(g){for(let y of g){const x=await l.files.create({file:y,purpose:"assistants"},a);c.push(x.id)}}const p=Array(o).fill(u).map(m);return await xZ(p),await this.createAndPoll(t,{file_ids:c})}}class Xs extends mt{constructor(){super(...arguments),this.files=new eb(this._client),this.fileBatches=new O5(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 xr(t)?this.list({},t):this._client.getAPIList("/vector_stores",tb,{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 tb extends dn{}Xs.VectorStoresPage=tb;Xs.Files=eb;Xs.VectorStoreFilesPage=$h;Xs.FileBatches=O5;class zi extends mt{constructor(){super(...arguments),this.realtime=new Gv(this._client),this.vectorStores=new Xs(this._client),this.chat=new V1(this._client),this.assistants=new Wv(this._client),this.threads=new Ks(this._client)}}zi.Realtime=Gv;zi.VectorStores=Xs;zi.VectorStoresPage=tb;zi.Assistants=Wv;zi.AssistantsPage=Vv;zi.Threads=Ks;class A5 extends mt{create(t,r){return this._client.post("/completions",{body:t,...r,stream:t.stream??!1})}}class R5 extends mt{create(t,r){return this._client.post("/embeddings",{body:t,...r})}}class rb extends mt{create(t,r){return this._client.post("/files",Ms({body:t,...r}))}retrieve(t,r){return this._client.get(`/files/${t}`,r)}list(t={},r){return xr(t)?this.list({},t):this._client.getAPIList("/files",nb,{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 o=await this.retrieve(t);for(;!o.status||!a.has(o.status);)if(await _c(r),o=await this.retrieve(t),Date.now()-i>n)throw new Hv({message:`Giving up on waiting for file ${t} to finish processing after ${n} milliseconds.`});return o}}class nb extends dn{}rb.FileObjectsPage=nb;class ab extends mt{list(t,r={},n){return xr(r)?this.list(t,{},r):this._client.getAPIList(`/fine_tuning/jobs/${t}/checkpoints`,ib,{query:r,...n})}}class ib extends dn{}ab.FineTuningJobCheckpointsPage=ib;class Zs extends mt{constructor(){super(...arguments),this.checkpoints=new ab(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 xr(t)?this.list({},t):this._client.getAPIList("/fine_tuning/jobs",ob,{query:t,...r})}cancel(t,r){return this._client.post(`/fine_tuning/jobs/${t}/cancel`,r)}listEvents(t,r={},n){return xr(r)?this.listEvents(t,{},r):this._client.getAPIList(`/fine_tuning/jobs/${t}/events`,sb,{query:r,...n})}}class ob extends dn{}class sb extends dn{}Zs.FineTuningJobsPage=ob;Zs.FineTuningJobEventsPage=sb;Zs.Checkpoints=ab;Zs.FineTuningJobCheckpointsPage=ib;class Cc extends mt{constructor(){super(...arguments),this.jobs=new Zs(this._client)}}Cc.Jobs=Zs;Cc.FineTuningJobsPage=ob;Cc.FineTuningJobEventsPage=sb;class P5 extends mt{createVariation(t,r){return this._client.post("/images/variations",Ms({body:t,...r}))}edit(t,r){return this._client.post("/images/edits",Ms({body:t,...r}))}generate(t,r){return this._client.post("/images/generations",{body:t,...r})}}class ub extends mt{retrieve(t,r){return this._client.get(`/models/${t}`,r)}list(t){return this._client.getAPIList("/models",lb,t)}del(t,r){return this._client.delete(`/models/${t}`,r)}}class lb extends iZ{}ub.ModelsPage=lb;class D5 extends mt{create(t,r){return this._client.post("/moderations",{body:t,...r})}}class M5 extends mt{create(t,r,n){return this._client.post(`/uploads/${t}/parts`,Ms({body:r,...n}))}}class cb extends mt{constructor(){super(...arguments),this.parts=new M5(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})}}cb.Parts=M5;var F5;class ct extends VX{constructor({baseURL:t=tf("OPENAI_BASE_URL"),apiKey:r=tf("OPENAI_API_KEY"),organization:n=tf("OPENAI_ORG_ID")??null,project:a=tf("OPENAI_PROJECT_ID")??null,...i}={}){if(r===void 0)throw new st("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 o={apiKey:r,organization:n,project:a,...i,baseURL:t||"https://api.openai.com/v1"};if(!o.dangerouslyAllowBrowser&&nZ())throw new st(`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:o.baseURL,timeout:o.timeout??6e5,httpAgent:o.httpAgent,maxRetries:o.maxRetries,fetch:o.fetch}),this.completions=new A5(this),this.chat=new jh(this),this.embeddings=new R5(this),this.files=new rb(this),this.images=new P5(this),this.audio=new wc(this),this.moderations=new D5(this),this.models=new ub(this),this.fineTuning=new Cc(this),this.beta=new zi(this),this.batches=new Uv(this),this.uploads=new cb(this),this._options=o,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 OX(t,{arrayFormat:"brackets"})}}F5=ct;ct.OpenAI=F5;ct.DEFAULT_TIMEOUT=6e5;ct.OpenAIError=st;ct.APIError=gr;ct.APIConnectionError=Dh;ct.APIConnectionTimeoutError=Hv;ct.APIUserAbortError=Wn;ct.NotFoundError=UE;ct.ConflictError=qE;ct.RateLimitError=VE;ct.BadRequestError=zE;ct.AuthenticationError=BE;ct.InternalServerError=YE;ct.PermissionDeniedError=HE;ct.UnprocessableEntityError=WE;ct.toFile=QE;ct.fileFromPath=jE;ct.Completions=A5;ct.Chat=jh;ct.ChatCompletionsPage=Lh;ct.Embeddings=R5;ct.Files=rb;ct.FileObjectsPage=nb;ct.Images=P5;ct.Audio=wc;ct.Moderations=D5;ct.Models=ub;ct.ModelsPage=lb;ct.FineTuning=Cc;ct.Beta=zi;ct.Batches=Uv;ct.BatchesPage=qv;ct.Uploads=cb;const SZ=[{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:"查询知识库"}]}],CZ=({onPromptsItemClick:e})=>D.jsxs(Z.Space,{direction:"vertical",size:16,className:In.placeholder,children:[D.jsx(AE,{variant:"borderless",title:"Hello, I'm OnChain Assistant",description:"How can I help you today?",extra:D.jsx(Z.Space,{})}),D.jsx("div",{children:D.jsx(Ph,{title:"Suggested?",items:SZ,styles:{list:{width:"100%"},item:{flex:1}},onItemClick:e})})]}),U6={};function EZ(e){let t=U6[e];if(t)return t;t=U6[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 Fs(e,t){typeof t!="string"&&(t=Fs.defaultChars);const r=EZ(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(n){let a="";for(let i=0,o=n.length;i<o;i+=3){const l=parseInt(n.slice(i+1,i+3),16);if(l<128){a+=r[l];continue}if((l&224)===192&&i+3<o){const u=parseInt(n.slice(i+4,i+6),16);if((u&192)===128){const c=l<<6&1984|u&63;c<128?a+="��":a+=String.fromCharCode(c),i+=3;continue}}if((l&240)===224&&i+6<o){const u=parseInt(n.slice(i+4,i+6),16),c=parseInt(n.slice(i+7,i+9),16);if((u&192)===128&&(c&192)===128){const m=l<<12&61440|u<<6&4032|c&63;m<2048||m>=55296&&m<=57343?a+="���":a+=String.fromCharCode(m),i+=6;continue}}if((l&248)===240&&i+9<o){const u=parseInt(n.slice(i+4,i+6),16),c=parseInt(n.slice(i+7,i+9),16),m=parseInt(n.slice(i+10,i+12),16);if((u&192)===128&&(c&192)===128&&(m&192)===128){let p=l<<18&1835008|u<<12&258048|c<<6&4032|m&63;p<65536||p>1114111?a+="����":(p-=65536,a+=String.fromCharCode(55296+(p>>10),56320+(p&1023))),i+=9;continue}}a+="�"}return a})}Fs.defaultChars=";/?:@&=+$,#";Fs.componentChars="";const q6={};function kZ(e){let t=q6[e];if(t)return t;t=q6[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 Ec(e,t,r){typeof t!="string"&&(r=t,t=Ec.defaultChars),typeof r>"u"&&(r=!0);const n=kZ(t);let a="";for(let i=0,o=e.length;i<o;i++){const l=e.charCodeAt(i);if(r&&l===37&&i+2<o&&/^[0-9a-f]{2}$/i.test(e.slice(i+1,i+3))){a+=e.slice(i,i+3),i+=2;continue}if(l<128){a+=n[l];continue}if(l>=55296&&l<=57343){if(l>=55296&&l<=56319&&i+1<o){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}Ec.defaultChars=";/?:@&=+$,-_.!~*'()#";Ec.componentChars="-_.!~*'()";function db(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 Xf(){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 TZ=/^([a-z0-9.+-]+:)/i,OZ=/:[0-9]*$/,AZ=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,RZ=["<",">",'"',"`"," ","\r",`
515
- `," "],PZ=["{","}","|","\\","^","`"].concat(RZ),DZ=["'"].concat(PZ),W6=["%","/","?",";","#"].concat(DZ),V6=["/","?","#"],MZ=255,Y6=/^[+a-z0-9A-Z_-]{0,63}$/,FZ=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,G6={javascript:!0,"javascript:":!0},K6={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function fb(e,t){if(e&&e instanceof Xf)return e;const r=new Xf;return r.parse(e,t),r}Xf.prototype.parse=function(e,t){let r,n,a,i=e;if(i=i.trim(),!t&&e.split("#").length===1){const c=AZ.exec(i);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}let o=TZ.exec(i);if(o&&(o=o[0],r=o.toLowerCase(),this.protocol=o,i=i.substr(o.length)),(t||o||i.match(/^\/\/[^@\/]+@[^@\/]+/))&&(a=i.substr(0,2)==="//",a&&!(o&&G6[o])&&(i=i.substr(2),this.slashes=!0)),!G6[o]&&(a||o&&!K6[o])){let c=-1;for(let x=0;x<V6.length;x++)n=i.indexOf(V6[x]),n!==-1&&(c===-1||n<c)&&(c=n);let m,p;c===-1?p=i.lastIndexOf("@"):p=i.lastIndexOf("@",c),p!==-1&&(m=i.slice(0,p),i=i.slice(p+1),this.auth=m),c=-1;for(let x=0;x<W6.length;x++)n=i.indexOf(W6[x]),n!==-1&&(c===-1||n<c)&&(c=n);c===-1&&(c=i.length),i[c-1]===":"&&c--;const g=i.slice(0,c);i=i.slice(c),this.parseHost(g),this.hostname=this.hostname||"";const y=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!y){const x=this.hostname.split(/\./);for(let E=0,k=x.length;E<k;E++){const T=x[E];if(T&&!T.match(Y6)){let w="";for(let S=0,f=T.length;S<f;S++)T.charCodeAt(S)>127?w+="x":w+=T[S];if(!w.match(Y6)){const S=x.slice(0,E),f=x.slice(E+1),h=T.match(FZ);h&&(S.push(h[1]),f.unshift(h[2])),f.length&&(i=f.join(".")+i),this.hostname=S.join(".");break}}}}this.hostname.length>MZ&&(this.hostname=""),y&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const l=i.indexOf("#");l!==-1&&(this.hash=i.substr(l),i=i.slice(0,l));const u=i.indexOf("?");return u!==-1&&(this.search=i.substr(u),i=i.slice(0,u)),i&&(this.pathname=i),K6[r]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Xf.prototype.parseHost=function(e){let t=OZ.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 NZ=Object.freeze(Object.defineProperty({__proto__:null,decode:Fs,encode:Ec,format:db,parse:fb},Symbol.toStringTag,{value:"Module"})),N5=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,I5=/[\0-\x1F\x7F-\x9F]/,IZ=/[\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]/,hb=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/,L5=/[\$\+<->\^`\|~\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]/,j5=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,LZ=Object.freeze(Object.defineProperty({__proto__:null,Any:N5,Cc:I5,Cf:IZ,P:hb,S:L5,Z:j5},Symbol.toStringTag,{value:"Module"})),jZ=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))),$Z=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var Ag;const zZ=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]]),BZ=(Ag=String.fromCodePoint)!==null&&Ag!==void 0?Ag: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=zZ.get(e))!==null&&t!==void 0?t:e}var ur;(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"})(ur||(ur={}));const UZ=32;var Di;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Di||(Di={}));function G1(e){return e>=ur.ZERO&&e<=ur.NINE}function qZ(e){return e>=ur.UPPER_A&&e<=ur.UPPER_F||e>=ur.LOWER_A&&e<=ur.LOWER_F}function WZ(e){return e>=ur.UPPER_A&&e<=ur.UPPER_Z||e>=ur.LOWER_A&&e<=ur.LOWER_Z||G1(e)}function VZ(e){return e===ur.EQUALS||WZ(e)}var or;(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"})(or||(or={}));var ki;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(ki||(ki={}));class YZ{constructor(t,r,n){this.decodeTree=t,this.emitCodePoint=r,this.errors=n,this.state=or.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=ki.Strict}startEntity(t){this.decodeMode=t,this.state=or.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,r){switch(this.state){case or.EntityStart:return t.charCodeAt(r)===ur.NUM?(this.state=or.NumericStart,this.consumed+=1,this.stateNumericStart(t,r+1)):(this.state=or.NamedEntity,this.stateNamedEntity(t,r));case or.NumericStart:return this.stateNumericStart(t,r);case or.NumericDecimal:return this.stateNumericDecimal(t,r);case or.NumericHex:return this.stateNumericHex(t,r);case or.NamedEntity:return this.stateNamedEntity(t,r)}}stateNumericStart(t,r){return r>=t.length?-1:(t.charCodeAt(r)|UZ)===ur.LOWER_X?(this.state=or.NumericHex,this.consumed+=1,this.stateNumericHex(t,r+1)):(this.state=or.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(G1(a)||qZ(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(G1(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===ur.SEMI)this.consumed+=1;else if(this.decodeMode===ki.Strict)return 0;return this.emitCodePoint(HZ(this.result),this.consumed),this.errors&&(t!==ur.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&Di.VALUE_LENGTH)>>14;for(;r<t.length;r++,this.excess++){const o=t.charCodeAt(r);if(this.treeIndex=GZ(n,a,this.treeIndex+Math.max(1,i),o),this.treeIndex<0)return this.result===0||this.decodeMode===ki.Attribute&&(i===0||VZ(o))?0:this.emitNotTerminatedNamedEntity();if(a=n[this.treeIndex],i=(a&Di.VALUE_LENGTH)>>14,i!==0){if(o===ur.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==ki.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]&Di.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]&~Di.VALUE_LENGTH:a[t+1],n),r===3&&this.emitCodePoint(a[t+2],n),n}end(){var t;switch(this.state){case or.NamedEntity:return this.result!==0&&(this.decodeMode!==ki.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case or.NumericDecimal:return this.emitNumericEntity(0,2);case or.NumericHex:return this.emitNumericEntity(0,3);case or.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case or.EntityStart:return 0}}}function $5(e){let t="";const r=new YZ(e,n=>t+=BZ(n));return function(a,i){let o=0,l=0;for(;(l=a.indexOf("&",l))>=0;){t+=a.slice(o,l),r.startEntity(i);const c=r.write(a,l+1);if(c<0){o=l+r.end();break}o=l+c,l=c===0?o+1:o}const u=t+a.slice(o);return t="",u}}function GZ(e,t,r,n){const a=(t&Di.BRANCH_LENGTH)>>7,i=t&Di.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 o=r,l=o+a-1;for(;o<=l;){const u=o+l>>>1,c=e[u];if(c<n)o=u+1;else if(c>n)l=u-1;else return e[u+a]}return-1}const KZ=$5(jZ);$5($Z);function z5(e,t=ki.Legacy){return KZ(e,t)}function XZ(e){return Object.prototype.toString.call(e)}function pb(e){return XZ(e)==="[object String]"}const ZZ=Object.prototype.hasOwnProperty;function JZ(e,t){return ZZ.call(e,t)}function zh(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 B5(e,t,r){return[].concat(e.slice(0,t),r,e.slice(t+1))}function mb(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 Zf(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 H5=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,QZ=/&([a-z#][a-z0-9]{1,31});/gi,eJ=new RegExp(H5.source+"|"+QZ.source,"gi"),tJ=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function rJ(e,t){if(t.charCodeAt(0)===35&&tJ.test(t)){const n=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return mb(n)?Zf(n):e}const r=z5(e);return r!==e?r:e}function nJ(e){return e.indexOf("\\")<0?e:e.replace(H5,"$1")}function Ns(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(eJ,function(t,r,n){return r||rJ(t,n)})}const aJ=/[&<>"]/,iJ=/[&<>"]/g,oJ={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function sJ(e){return oJ[e]}function Li(e){return aJ.test(e)?e.replace(iJ,sJ):e}const uJ=/[.?*+^$[\]\\(){}|-]/g;function lJ(e){return e.replace(uJ,"\\$&")}function Dt(e){switch(e){case 9:case 32:return!0}return!1}function ic(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 oc(e){return hb.test(e)||L5.test(e)}function sc(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 Bh(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const cJ={mdurl:NZ,ucmicro:LZ},dJ=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:B5,assign:zh,escapeHtml:Li,escapeRE:lJ,fromCodePoint:Zf,has:JZ,isMdAsciiPunct:sc,isPunctChar:oc,isSpace:Dt,isString:pb,isValidEntityCode:mb,isWhiteSpace:ic,lib:cJ,normalizeReference:Bh,unescapeAll:Ns,unescapeMd:nJ},Symbol.toStringTag,{value:"Module"}));function fJ(e,t,r){let n,a,i,o;const l=e.posMax,u=e.pos;for(e.pos=t+1,n=1;e.pos<l;){if(i=e.src.charCodeAt(e.pos),i===93&&(n--,n===0)){a=!0;break}if(o=e.pos,e.md.inline.skipToken(e),i===91){if(o===e.pos-1)n++;else if(r)return e.pos=u,-1}}let c=-1;return a&&(c=e.pos),e.pos=u,c}function hJ(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=Ns(e.slice(t+1,a)),i.ok=!0,i;if(n===92&&a+1<r){a+=2;continue}a++}return i}let o=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&&(o++,o>32))return i;if(n===41){if(o===0)break;o--}a++}return t===a||o!==0||(i.str=Ns(e.slice(t,a)),i.pos=a,i.ok=!0),i}function pJ(e,t,r,n){let a,i=t;const o={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(n)o.str=n.str,o.marker=n.marker;else{if(i>=r)return o;let l=e.charCodeAt(i);if(l!==34&&l!==39&&l!==40)return o;t++,i++,l===40&&(l=41),o.marker=l}for(;i<r;){if(a=e.charCodeAt(i),a===o.marker)return o.pos=i+1,o.str+=Ns(e.slice(t,i)),o.ok=!0,o;if(a===40&&o.marker===41)return o;a===92&&i+1<r&&i++,i++}return o.can_continue=!0,o.str+=Ns(e.slice(t,i)),o}const mJ=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:hJ,parseLinkLabel:fJ,parseLinkTitle:pJ},Symbol.toStringTag,{value:"Module"})),wa={};wa.code_inline=function(e,t,r,n,a){const i=e[t];return"<code"+a.renderAttrs(i)+">"+Li(i.content)+"</code>"};wa.code_block=function(e,t,r,n,a){const i=e[t];return"<pre"+a.renderAttrs(i)+"><code>"+Li(e[t].content)+`</code></pre>
516
- `};wa.fence=function(e,t,r,n,a){const i=e[t],o=i.info?Ns(i.info).trim():"";let l="",u="";if(o){const m=o.split(/(\s+)/g);l=m[0],u=m.slice(2).join("")}let c;if(r.highlight?c=r.highlight(i.content,l,u)||Li(i.content):c=Li(i.content),c.indexOf("<pre")===0)return c+`
517
- `;if(o){const m=i.attrIndex("class"),p=i.attrs?i.attrs.slice():[];m<0?p.push(["class",r.langPrefix+l]):(p[m]=p[m].slice(),p[m][1]+=" "+r.langPrefix+l);const g={attrs:p};return`<pre><code${a.renderAttrs(g)}>${c}</code></pre>
518
- `}return`<pre><code${a.renderAttrs(i)}>${c}</code></pre>
519
- `};wa.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)};wa.hardbreak=function(e,t,r){return r.xhtmlOut?`<br />
520
- `:`<br>
521
- `};wa.softbreak=function(e,t,r){return r.breaks?r.xhtmlOut?`<br />
522
- `:`<br>
523
- `:`
524
- `};wa.text=function(e,t){return Li(e[t].content)};wa.html_block=function(e,t){return e[t].content};wa.html_inline=function(e,t){return e[t].content};function Js(){this.rules=zh({},wa)}Js.prototype.renderAttrs=function(t){let r,n,a;if(!t.attrs)return"";for(a="",r=0,n=t.attrs.length;r<n;r++)a+=" "+Li(t.attrs[r][0])+'="'+Li(t.attrs[r][1])+'"';return a};Js.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 o=!1;if(a.block&&(o=!0,a.nesting===1&&r+1<t.length)){const l=t[r+1];(l.type==="inline"||l.hidden||l.nesting===-1&&l.tag===a.tag)&&(o=!1)}return i+=o?`>
526
- `:">",i};Js.prototype.renderInline=function(e,t,r){let n="";const a=this.rules;for(let i=0,o=e.length;i<o;i++){const l=e[i].type;typeof a[l]<"u"?n+=a[l](e,i,t,r,this):n+=this.renderToken(e,i,t)}return n};Js.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};Js.prototype.render=function(e,t,r){let n="";const a=this.rules;for(let i=0,o=e.length;i<o;i++){const l=e[i].type;l==="inline"?n+=this.renderInline(e[i].children,t,r):typeof a[l]<"u"?n+=a[l](e,i,t,r,this):n+=this.renderToken(e,i,t,r)}return n};function Ur(){this.__rules__=[],this.__cache__=null}Ur.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1};Ur.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))})})};Ur.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};Ur.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};Ur.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};Ur.prototype.push=function(e,t,r){const n=r||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:n.alt||[]}),this.__cache__=null};Ur.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};Ur.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(r){r.enabled=!1}),this.enable(e,t)};Ur.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};Ur.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function ea(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}ea.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};ea.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]};ea.prototype.attrSet=function(t,r){const n=this.attrIndex(t),a=[t,r];n<0?this.attrPush(a):this.attrs[n]=a};ea.prototype.attrGet=function(t){const r=this.attrIndex(t);let n=null;return r>=0&&(n=this.attrs[r][1]),n};ea.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 U5(e,t,r){this.src=e,this.env=r,this.tokens=[],this.inlineMode=!1,this.md=t}U5.prototype.Token=ea;const gJ=/\r\n?|\n/g,vJ=/\0/g;function bJ(e){let t;t=e.src.replace(gJ,`
528
- `),t=t.replace(vJ,"�"),e.src=t}function yJ(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 _J(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 wJ(e){return/^<a[>\s]/i.test(e)}function xJ(e){return/^<\/a\s*>/i.test(e)}function SJ(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 o=a.length-1;o>=0;o--){const l=a[o];if(l.type==="link_close"){for(o--;a[o].level!==l.level&&a[o].type!=="link_open";)o--;continue}if(l.type==="html_inline"&&(wJ(l.content)&&i>0&&i--,xJ(l.content)&&i++),!(i>0)&&l.type==="text"&&e.md.linkify.test(l.content)){const u=l.content;let c=e.md.linkify.match(u);const m=[];let p=l.level,g=0;c.length>0&&c[0].index===0&&o>0&&a[o-1].type==="text_special"&&(c=c.slice(1));for(let y=0;y<c.length;y++){const x=c[y].url,E=e.md.normalizeLink(x);if(!e.md.validateLink(E))continue;let k=c[y].text;c[y].schema?c[y].schema==="mailto:"&&!/^mailto:/i.test(k)?k=e.md.normalizeLinkText("mailto:"+k).replace(/^mailto:/,""):k=e.md.normalizeLinkText(k):k=e.md.normalizeLinkText("http://"+k).replace(/^http:\/\//,"");const T=c[y].index;if(T>g){const h=new e.Token("text","",0);h.content=u.slice(g,T),h.level=p,m.push(h)}const w=new e.Token("link_open","a",1);w.attrs=[["href",E]],w.level=p++,w.markup="linkify",w.info="auto",m.push(w);const S=new e.Token("text","",0);S.content=k,S.level=p,m.push(S);const f=new e.Token("link_close","a",-1);f.level=--p,f.markup="linkify",f.info="auto",m.push(f),g=c[y].lastIndex}if(g<u.length){const y=new e.Token("text","",0);y.content=u.slice(g),y.level=p,m.push(y)}t[r].children=a=B5(a,o,m)}}}}const q5=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,CJ=/\((c|tm|r)\)/i,EJ=/\((c|tm|r)\)/ig,kJ={c:"©",r:"®",tm:"™"};function TJ(e,t){return kJ[t.toLowerCase()]}function OJ(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(EJ,TJ)),n.type==="link_open"&&n.info==="auto"&&t--,n.type==="link_close"&&n.info==="auto"&&t++}}function AJ(e){let t=0;for(let r=e.length-1;r>=0;r--){const n=e[r];n.type==="text"&&!t&&q5.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 RJ(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(CJ.test(e.tokens[t].content)&&OJ(e.tokens[t].children),q5.test(e.tokens[t].content)&&AJ(e.tokens[t].children))}const PJ=/['"]/,X6=/['"]/g,Z6="’";function sf(e,t,r){return e.slice(0,t)+r+e.slice(t+1)}function DJ(e,t){let r;const n=[];for(let a=0;a<e.length;a++){const i=e[a],o=e[a].level;for(r=n.length-1;r>=0&&!(n[r].level<=o);r--);if(n.length=r+1,i.type!=="text")continue;let l=i.content,u=0,c=l.length;e:for(;u<c;){X6.lastIndex=u;const m=X6.exec(l);if(!m)break;let p=!0,g=!0;u=m.index+1;const y=m[0]==="'";let x=32;if(m.index-1>=0)x=l.charCodeAt(m.index-1);else for(r=a-1;r>=0&&!(e[r].type==="softbreak"||e[r].type==="hardbreak");r--)if(e[r].content){x=e[r].content.charCodeAt(e[r].content.length-1);break}let E=32;if(u<c)E=l.charCodeAt(u);else for(r=a+1;r<e.length&&!(e[r].type==="softbreak"||e[r].type==="hardbreak");r++)if(e[r].content){E=e[r].content.charCodeAt(0);break}const k=sc(x)||oc(String.fromCharCode(x)),T=sc(E)||oc(String.fromCharCode(E)),w=ic(x),S=ic(E);if(S?p=!1:T&&(w||k||(p=!1)),w?g=!1:k&&(S||T||(g=!1)),E===34&&m[0]==='"'&&x>=48&&x<=57&&(g=p=!1),p&&g&&(p=k,g=T),!p&&!g){y&&(i.content=sf(i.content,m.index,Z6));continue}if(g)for(r=n.length-1;r>=0;r--){let f=n[r];if(n[r].level<o)break;if(f.single===y&&n[r].level===o){f=n[r];let h,v;y?(h=t.md.options.quotes[2],v=t.md.options.quotes[3]):(h=t.md.options.quotes[0],v=t.md.options.quotes[1]),i.content=sf(i.content,m.index,v),e[f.token].content=sf(e[f.token].content,f.pos,h),u+=v.length-1,f.token===a&&(u+=h.length-1),l=i.content,c=l.length,n.length=r;continue e}}p?n.push({token:a,pos:m.index,single:y,level:o}):g&&y&&(i.content=sf(i.content,m.index,Z6))}}}function MJ(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!PJ.test(e.tokens[t].content)||DJ(e.tokens[t].children,e)}function FJ(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 o=n[i].children,l=o.length;for(t=0;t<l;t++)o[t].type==="text_special"&&(o[t].type="text");for(t=r=0;t<l;t++)o[t].type==="text"&&t+1<l&&o[t+1].type==="text"?o[t+1].content=o[t].content+o[t+1].content:(t!==r&&(o[r]=o[t]),r++);t!==r&&(o.length=r)}}const Rg=[["normalize",bJ],["block",yJ],["inline",_J],["linkify",SJ],["replacements",RJ],["smartquotes",MJ],["text_join",FJ]];function gb(){this.ruler=new Ur;for(let e=0;e<Rg.length;e++)this.ruler.push(Rg[e][0],Rg[e][1])}gb.prototype.process=function(e){const t=this.ruler.getRules("");for(let r=0,n=t.length;r<n;r++)t[r](e)};gb.prototype.State=U5;function xa(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,o=0,l=0,u=0,c=a.length,m=!1;o<c;o++){const p=a.charCodeAt(o);if(!m)if(Dt(p)){l++,p===9?u+=4-u%4:u++;continue}else m=!0;(p===10||o===c-1)&&(p!==10&&o++,this.bMarks.push(i),this.eMarks.push(o),this.tShift.push(l),this.sCount.push(u),this.bsCount.push(0),m=!1,l=0,u=0,i=o+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}xa.prototype.push=function(e,t,r){const n=new ea(e,t,r);return n.block=!0,r<0&&this.level--,n.level=this.level,r>0&&this.level++,this.tokens.push(n),n};xa.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]};xa.prototype.skipEmptyLines=function(t){for(let r=this.lineMax;t<r&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t};xa.prototype.skipSpaces=function(t){for(let r=this.src.length;t<r;t++){const n=this.src.charCodeAt(t);if(!Dt(n))break}return t};xa.prototype.skipSpacesBack=function(t,r){if(t<=r)return t;for(;t>r;)if(!Dt(this.src.charCodeAt(--t)))return t+1;return t};xa.prototype.skipChars=function(t,r){for(let n=this.src.length;t<n&&this.src.charCodeAt(t)===r;t++);return t};xa.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};xa.prototype.getLines=function(t,r,n,a){if(t>=r)return"";const i=new Array(r-t);for(let o=0,l=t;l<r;l++,o++){let u=0;const c=this.bMarks[l];let m=c,p;for(l+1<r||a?p=this.eMarks[l]+1:p=this.eMarks[l];m<p&&u<n;){const g=this.src.charCodeAt(m);if(Dt(g))g===9?u+=4-(u+this.bsCount[l])%4:u++;else if(m-c<this.tShift[l])u++;else break;m++}u>n?i[o]=new Array(u-n+1).join(" ")+this.src.slice(m,p):i[o]=this.src.slice(m,p)}return i.join("")};xa.prototype.Token=ea;const NJ=65536;function Pg(e,t){const r=e.bMarks[t]+e.tShift[t],n=e.eMarks[t];return e.src.slice(r,n)}function J6(e){const t=[],r=e.length;let n=0,a=e.charCodeAt(n),i=!1,o=0,l="";for(;n<r;)a===124&&(i?(l+=e.substring(o,n-1),o=n):(t.push(l+e.substring(o,n)),l="",o=n+1)),i=a===92,n++,a=e.charCodeAt(n);return t.push(l+e.substring(o)),t}function IJ(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 o=e.src.charCodeAt(i++);if(o!==124&&o!==45&&o!==58||i>=e.eMarks[a])return!1;const l=e.src.charCodeAt(i++);if(l!==124&&l!==45&&l!==58&&!Dt(l)||o===45&&Dt(l))return!1;for(;i<e.eMarks[a];){const f=e.src.charCodeAt(i);if(f!==124&&f!==45&&f!==58&&!Dt(f))return!1;i++}let u=Pg(e,t+1),c=u.split("|");const m=[];for(let f=0;f<c.length;f++){const h=c[f].trim();if(!h){if(f===0||f===c.length-1)continue;return!1}if(!/^:?-+:?$/.test(h))return!1;h.charCodeAt(h.length-1)===58?m.push(h.charCodeAt(0)===58?"center":"right"):h.charCodeAt(0)===58?m.push("left"):m.push("")}if(u=Pg(e,t).trim(),u.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4)return!1;c=J6(u),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop();const p=c.length;if(p===0||p!==m.length)return!1;if(n)return!0;const g=e.parentType;e.parentType="table";const y=e.md.block.ruler.getRules("blockquote"),x=e.push("table_open","table",1),E=[t,0];x.map=E;const k=e.push("thead_open","thead",1);k.map=[t,t+1];const T=e.push("tr_open","tr",1);T.map=[t,t+1];for(let f=0;f<c.length;f++){const h=e.push("th_open","th",1);m[f]&&(h.attrs=[["style","text-align:"+m[f]]]);const v=e.push("inline","",0);v.content=c[f].trim(),v.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let w,S=0;for(a=t+2;a<r&&!(e.sCount[a]<e.blkIndent);a++){let f=!1;for(let v=0,_=y.length;v<_;v++)if(y[v](e,a,r,!0)){f=!0;break}if(f||(u=Pg(e,a).trim(),!u)||e.sCount[a]-e.blkIndent>=4||(c=J6(u),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop(),S+=p-c.length,S>NJ))break;if(a===t+2){const v=e.push("tbody_open","tbody",1);v.map=w=[t+2,0]}const h=e.push("tr_open","tr",1);h.map=[a,a+1];for(let v=0;v<p;v++){const _=e.push("td_open","td",1);m[v]&&(_.attrs=[["style","text-align:"+m[v]]]);const R=e.push("inline","",0);R.content=c[v]?c[v].trim():"",R.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return w&&(e.push("tbody_close","tbody",-1),w[1]=a),e.push("table_close","table",-1),E[1]=a,e.parentType=g,e.line=a,!0}function LJ(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 jJ(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 o=e.src.charCodeAt(a);if(o!==126&&o!==96)return!1;let l=a;a=e.skipChars(a,o);let u=a-l;if(u<3)return!1;const c=e.src.slice(l,a),m=e.src.slice(a,i);if(o===96&&m.indexOf(String.fromCharCode(o))>=0)return!1;if(n)return!0;let p=t,g=!1;for(;p++,!(p>=r||(a=l=e.bMarks[p]+e.tShift[p],i=e.eMarks[p],a<i&&e.sCount[p]<e.blkIndent));)if(e.src.charCodeAt(a)===o&&!(e.sCount[p]-e.blkIndent>=4)&&(a=e.skipChars(a,o),!(a-l<u)&&(a=e.skipSpaces(a),!(a<i)))){g=!0;break}u=e.sCount[t],e.line=p+(g?1:0);const y=e.push("fence","code",0);return y.info=m,y.content=e.getLines(t+1,p,u,!0),y.markup=c,y.map=[t,e.line],!0}function $J(e,t,r,n){let a=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];const o=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(a)!==62)return!1;if(n)return!0;const l=[],u=[],c=[],m=[],p=e.md.block.ruler.getRules("blockquote"),g=e.parentType;e.parentType="blockquote";let y=!1,x;for(x=t;x<r;x++){const S=e.sCount[x]<e.blkIndent;if(a=e.bMarks[x]+e.tShift[x],i=e.eMarks[x],a>=i)break;if(e.src.charCodeAt(a++)===62&&!S){let h=e.sCount[x]+1,v,_;e.src.charCodeAt(a)===32?(a++,h++,_=!1,v=!0):e.src.charCodeAt(a)===9?(v=!0,(e.bsCount[x]+h)%4===3?(a++,h++,_=!1):_=!0):v=!1;let R=h;for(l.push(e.bMarks[x]),e.bMarks[x]=a;a<i;){const C=e.src.charCodeAt(a);if(Dt(C))C===9?R+=4-(R+e.bsCount[x]+(_?1:0))%4:R++;else break;a++}y=a>=i,u.push(e.bsCount[x]),e.bsCount[x]=e.sCount[x]+1+(v?1:0),c.push(e.sCount[x]),e.sCount[x]=R-h,m.push(e.tShift[x]),e.tShift[x]=a-e.bMarks[x];continue}if(y)break;let f=!1;for(let h=0,v=p.length;h<v;h++)if(p[h](e,x,r,!0)){f=!0;break}if(f){e.lineMax=x,e.blkIndent!==0&&(l.push(e.bMarks[x]),u.push(e.bsCount[x]),m.push(e.tShift[x]),c.push(e.sCount[x]),e.sCount[x]-=e.blkIndent);break}l.push(e.bMarks[x]),u.push(e.bsCount[x]),m.push(e.tShift[x]),c.push(e.sCount[x]),e.sCount[x]=-1}const E=e.blkIndent;e.blkIndent=0;const k=e.push("blockquote_open","blockquote",1);k.markup=">";const T=[t,0];k.map=T,e.md.block.tokenize(e,t,x);const w=e.push("blockquote_close","blockquote",-1);w.markup=">",e.lineMax=o,e.parentType=g,T[1]=e.line;for(let S=0;S<m.length;S++)e.bMarks[S+t]=l[S],e.tShift[S+t]=m[S],e.sCount[S+t]=c[S],e.bsCount[S+t]=u[S];return e.blkIndent=E,!0}function zJ(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 o=e.src.charCodeAt(i++);if(o!==42&&o!==45&&o!==95)return!1;let l=1;for(;i<a;){const c=e.src.charCodeAt(i++);if(c!==o&&!Dt(c))return!1;c===o&&l++}if(l<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(l+1).join(String.fromCharCode(o)),!0}function Q6(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(!Dt(i))return-1}return n}function e8(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),!Dt(i))?-1:a}function BJ(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 HJ(e,t,r,n){let a,i,o,l,u=t,c=!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 m=!1;n&&e.parentType==="paragraph"&&e.sCount[u]>=e.blkIndent&&(m=!0);let p,g,y;if((y=e8(e,u))>=0){if(p=!0,o=e.bMarks[u]+e.tShift[u],g=Number(e.src.slice(o,y-1)),m&&g!==1)return!1}else if((y=Q6(e,u))>=0)p=!1;else return!1;if(m&&e.skipSpaces(y)>=e.eMarks[u])return!1;if(n)return!0;const x=e.src.charCodeAt(y-1),E=e.tokens.length;p?(l=e.push("ordered_list_open","ol",1),g!==1&&(l.attrs=[["start",g]])):l=e.push("bullet_list_open","ul",1);const k=[u,0];l.map=k,l.markup=String.fromCharCode(x);let T=!1;const w=e.md.block.ruler.getRules("list"),S=e.parentType;for(e.parentType="list";u<r;){i=y,a=e.eMarks[u];const f=e.sCount[u]+y-(e.bMarks[u]+e.tShift[u]);let h=f;for(;i<a;){const j=e.src.charCodeAt(i);if(j===9)h+=4-(h+e.bsCount[u])%4;else if(j===32)h++;else break;i++}const v=i;let _;v>=a?_=1:_=h-f,_>4&&(_=1);const R=f+_;l=e.push("list_item_open","li",1),l.markup=String.fromCharCode(x);const C=[u,0];l.map=C,p&&(l.info=e.src.slice(o,y-1));const P=e.tight,M=e.tShift[u],q=e.sCount[u],L=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=R,e.tight=!0,e.tShift[u]=v-e.bMarks[u],e.sCount[u]=h,v>=a&&e.isEmpty(u+1)?e.line=Math.min(e.line+2,r):e.md.block.tokenize(e,u,r,!0),(!e.tight||T)&&(c=!1),T=e.line-u>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=L,e.tShift[u]=M,e.sCount[u]=q,e.tight=P,l=e.push("list_item_close","li",-1),l.markup=String.fromCharCode(x),u=e.line,C[1]=u,u>=r||e.sCount[u]<e.blkIndent||e.sCount[u]-e.blkIndent>=4)break;let N=!1;for(let j=0,O=w.length;j<O;j++)if(w[j](e,u,r,!0)){N=!0;break}if(N)break;if(p){if(y=e8(e,u),y<0)break;o=e.bMarks[u]+e.tShift[u]}else if(y=Q6(e,u),y<0)break;if(x!==e.src.charCodeAt(y-1))break}return p?l=e.push("ordered_list_close","ol",-1):l=e.push("bullet_list_close","ul",-1),l.markup=String.fromCharCode(x),k[1]=u,e.line=u,e.parentType=S,c&&BJ(e,E),!0}function UJ(e,t,r,n){let a=e.bMarks[t]+e.tShift[t],i=e.eMarks[t],o=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(a)!==91)return!1;function l(w){const S=e.lineMax;if(w>=S||e.isEmpty(w))return null;let f=!1;if(e.sCount[w]-e.blkIndent>3&&(f=!0),e.sCount[w]<0&&(f=!0),!f){const _=e.md.block.ruler.getRules("reference"),R=e.parentType;e.parentType="reference";let C=!1;for(let P=0,M=_.length;P<M;P++)if(_[P](e,w,S,!0)){C=!0;break}if(e.parentType=R,C)return null}const h=e.bMarks[w]+e.tShift[w],v=e.eMarks[w];return e.src.slice(h,v+1)}let u=e.src.slice(a,i+1);i=u.length;let c=-1;for(a=1;a<i;a++){const w=u.charCodeAt(a);if(w===91)return!1;if(w===93){c=a;break}else if(w===10){const S=l(o);S!==null&&(u+=S,i=u.length,o++)}else if(w===92&&(a++,a<i&&u.charCodeAt(a)===10)){const S=l(o);S!==null&&(u+=S,i=u.length,o++)}}if(c<0||u.charCodeAt(c+1)!==58)return!1;for(a=c+2;a<i;a++){const w=u.charCodeAt(a);if(w===10){const S=l(o);S!==null&&(u+=S,i=u.length,o++)}else if(!Dt(w))break}const m=e.md.helpers.parseLinkDestination(u,a,i);if(!m.ok)return!1;const p=e.md.normalizeLink(m.str);if(!e.md.validateLink(p))return!1;a=m.pos;const g=a,y=o,x=a;for(;a<i;a++){const w=u.charCodeAt(a);if(w===10){const S=l(o);S!==null&&(u+=S,i=u.length,o++)}else if(!Dt(w))break}let E=e.md.helpers.parseLinkTitle(u,a,i);for(;E.can_continue;){const w=l(o);if(w===null)break;u+=w,a=i,i=u.length,o++,E=e.md.helpers.parseLinkTitle(u,a,i,E)}let k;for(a<i&&x!==a&&E.ok?(k=E.str,a=E.pos):(k="",a=g,o=y);a<i;){const w=u.charCodeAt(a);if(!Dt(w))break;a++}if(a<i&&u.charCodeAt(a)!==10&&k)for(k="",a=g,o=y;a<i;){const w=u.charCodeAt(a);if(!Dt(w))break;a++}if(a<i&&u.charCodeAt(a)!==10)return!1;const T=Bh(u.slice(1,c));return T?(n||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[T]>"u"&&(e.env.references[T]={title:k,href:p}),e.line=o),!0):!1}const qJ=["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"],WJ="[a-zA-Z_:][a-zA-Z0-9:._-]*",VJ="[^\"'=<>`\\x00-\\x20]+",YJ="'[^']*'",GJ='"[^"]*"',KJ="(?:"+VJ+"|"+YJ+"|"+GJ+")",XJ="(?:\\s+"+WJ+"(?:\\s*=\\s*"+KJ+")?)",W5="<[A-Za-z][A-Za-z0-9\\-]*"+XJ+"*\\s*\\/?>",V5="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",ZJ="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",JJ="<[?][\\s\\S]*?[?]>",QJ="<![A-Za-z][^>]*>",eQ="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",tQ=new RegExp("^(?:"+W5+"|"+V5+"|"+ZJ+"|"+JJ+"|"+QJ+"|"+eQ+")"),rQ=new RegExp("^(?:"+W5+"|"+V5+")"),ns=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+qJ.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(rQ.source+"\\s*$"),/^$/,!1]];function nQ(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 o=e.src.slice(a,i),l=0;for(;l<ns.length&&!ns[l][0].test(o);l++);if(l===ns.length)return!1;if(n)return ns[l][2];let u=t+1;if(!ns[l][1].test(o)){for(;u<r&&!(e.sCount[u]<e.blkIndent);u++)if(a=e.bMarks[u]+e.tShift[u],i=e.eMarks[u],o=e.src.slice(a,i),ns[l][1].test(o)){o.length!==0&&u++;break}}e.line=u;const c=e.push("html_block","",0);return c.map=[t,u],c.content=e.getLines(t,u,e.blkIndent,!0),!0}function aQ(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 o=e.src.charCodeAt(a);if(o!==35||a>=i)return!1;let l=1;for(o=e.src.charCodeAt(++a);o===35&&a<i&&l<=6;)l++,o=e.src.charCodeAt(++a);if(l>6||a<i&&!Dt(o))return!1;if(n)return!0;i=e.skipSpacesBack(i,a);const u=e.skipCharsBack(i,35,a);u>a&&Dt(e.src.charCodeAt(u-1))&&(i=u),e.line=t+1;const c=e.push("heading_open","h"+String(l),1);c.markup="########".slice(0,l),c.map=[t,e.line];const m=e.push("inline","",0);m.content=e.src.slice(a,i).trim(),m.map=[t,e.line],m.children=[];const p=e.push("heading_close","h"+String(l),-1);return p.markup="########".slice(0,l),!0}function iQ(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,o,l=t+1;for(;l<r&&!e.isEmpty(l);l++){if(e.sCount[l]-e.blkIndent>3)continue;if(e.sCount[l]>=e.blkIndent){let y=e.bMarks[l]+e.tShift[l];const x=e.eMarks[l];if(y<x&&(o=e.src.charCodeAt(y),(o===45||o===61)&&(y=e.skipChars(y,o),y=e.skipSpaces(y),y>=x))){i=o===61?1:2;break}}if(e.sCount[l]<0)continue;let g=!1;for(let y=0,x=n.length;y<x;y++)if(n[y](e,l,r,!0)){g=!0;break}if(g)break}if(!i)return!1;const u=e.getLines(t,l,e.blkIndent,!1).trim();e.line=l+1;const c=e.push("heading_open","h"+String(i),1);c.markup=String.fromCharCode(o),c.map=[t,e.line];const m=e.push("inline","",0);m.content=u,m.map=[t,e.line-1],m.children=[];const p=e.push("heading_close","h"+String(i),-1);return p.markup=String.fromCharCode(o),e.parentType=a,!0}function oQ(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 c=!1;for(let m=0,p=n.length;m<p;m++)if(n[m](e,i,r,!0)){c=!0;break}if(c)break}const o=e.getLines(t,i,e.blkIndent,!1).trim();e.line=i;const l=e.push("paragraph_open","p",1);l.map=[t,e.line];const u=e.push("inline","",0);return u.content=o,u.map=[t,e.line],u.children=[],e.push("paragraph_close","p",-1),e.parentType=a,!0}const uf=[["table",IJ,["paragraph","reference"]],["code",LJ],["fence",jJ,["paragraph","reference","blockquote","list"]],["blockquote",$J,["paragraph","reference","blockquote","list"]],["hr",zJ,["paragraph","reference","blockquote","list"]],["list",HJ,["paragraph","reference","blockquote"]],["reference",UJ],["html_block",nQ,["paragraph","reference","blockquote"]],["heading",aQ,["paragraph","reference","blockquote"]],["lheading",iQ],["paragraph",oQ]];function Hh(){this.ruler=new Ur;for(let e=0;e<uf.length;e++)this.ruler.push(uf[e][0],uf[e][1],{alt:(uf[e][2]||[]).slice()})}Hh.prototype.tokenize=function(e,t,r){const n=this.ruler.getRules(""),a=n.length,i=e.md.options.maxNesting;let o=t,l=!1;for(;o<r&&(e.line=o=e.skipEmptyLines(o),!(o>=r||e.sCount[o]<e.blkIndent));){if(e.level>=i){e.line=r;break}const u=e.line;let c=!1;for(let m=0;m<a;m++)if(c=n[m](e,o,r,!1),c){if(u>=e.line)throw new Error("block rule didn't increment state.line");break}if(!c)throw new Error("none of the block rules matched");e.tight=!l,e.isEmpty(e.line-1)&&(l=!0),o=e.line,o<r&&e.isEmpty(o)&&(l=!0,o++,e.line=o)}};Hh.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)};Hh.prototype.State=xa;function kc(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}kc.prototype.pushPending=function(){const e=new ea("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e};kc.prototype.push=function(e,t,r){this.pending&&this.pushPending();const n=new ea(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};kc.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 o=i-e,l=i<r?this.src.charCodeAt(i):32,u=sc(a)||oc(String.fromCharCode(a)),c=sc(l)||oc(String.fromCharCode(l)),m=ic(a),p=ic(l),g=!p&&(!c||m||u),y=!m&&(!u||p||c);return{can_open:g&&(t||!y||u),can_close:y&&(t||!g||c),length:o}};kc.prototype.Token=ea;function sQ(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 uQ(e,t){let r=e.pos;for(;r<e.posMax&&!sQ(e.src.charCodeAt(r));)r++;return r===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,r)),e.pos=r,!0)}const lQ=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function cQ(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(lQ);if(!a)return!1;const i=a[1],o=e.md.linkify.matchAtStart(e.src.slice(r-i.length));if(!o)return!1;let l=o.url;if(l.length<=i.length)return!1;l=l.replace(/\*+$/,"");const u=e.md.normalizeLink(l);if(!e.md.validateLink(u))return!1;if(!t){e.pending=e.pending.slice(0,-i.length);const c=e.push("link_open","a",1);c.attrs=[["href",u]],c.markup="linkify",c.info="auto";const m=e.push("text","",0);m.content=e.md.normalizeLinkText(l);const p=e.push("link_close","a",-1);p.markup="linkify",p.info="auto"}return e.pos+=l.length-i.length,!0}function dQ(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&&Dt(e.src.charCodeAt(r));)r++;return e.pos=r,!0}const vb=[];for(let e=0;e<256;e++)vb.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){vb[e.charCodeAt(0)]=1});function fQ(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),!!Dt(a));)r++;return e.pos=r,!0}let i=e.src[r];if(a>=55296&&a<=56319&&r+1<n){const l=e.src.charCodeAt(r+1);l>=56320&&l<=57343&&(i+=e.src[r+1],r++)}const o="\\"+i;if(!t){const l=e.push("text_special","",0);a<256&&vb[a]!==0?l.content=i:l.content=o,l.markup=o,l.info="escape"}return e.pos=r+1,!0}function hQ(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 o=e.src.slice(a,r),l=o.length;if(e.backticksScanned&&(e.backticks[l]||0)<=a)return t||(e.pending+=o),e.pos+=l,!0;let u=r,c;for(;(c=e.src.indexOf("`",u))!==-1;){for(u=c+1;u<i&&e.src.charCodeAt(u)===96;)u++;const m=u-c;if(m===l){if(!t){const p=e.push("code_inline","code",0);p.markup=o,p.content=e.src.slice(r,c).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=u,!0}e.backticks[m]=c}return e.backticksScanned=!0,t||(e.pending+=o),e.pos+=l,!0}function pQ(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 o=String.fromCharCode(n);if(i<2)return!1;let l;i%2&&(l=e.push("text","",0),l.content=o,i--);for(let u=0;u<i;u+=2)l=e.push("text","",0),l.content=o+o,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 t8(e,t){let r;const n=[],a=t.length;for(let i=0;i<a;i++){const o=t[i];if(o.marker!==126||o.end===-1)continue;const l=t[o.end];r=e.tokens[o.token],r.type="s_open",r.tag="s",r.nesting=1,r.markup="~~",r.content="",r=e.tokens[l.token],r.type="s_close",r.tag="s",r.nesting=-1,r.markup="~~",r.content="",e.tokens[l.token-1].type==="text"&&e.tokens[l.token-1].content==="~"&&n.push(l.token-1)}for(;n.length;){const i=n.pop();let o=i+1;for(;o<e.tokens.length&&e.tokens[o].type==="s_close";)o++;o--,i!==o&&(r=e.tokens[o],e.tokens[o]=e.tokens[i],e.tokens[i]=r)}}function mQ(e){const t=e.tokens_meta,r=e.tokens_meta.length;t8(e,e.delimiters);for(let n=0;n<r;n++)t[n]&&t[n].delimiters&&t8(e,t[n].delimiters)}const Y5={tokenize:pQ,postProcess:mQ};function gQ(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 o=e.push("text","",0);o.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 r8(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],o=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,l=String.fromCharCode(a.marker),u=e.tokens[a.token];u.type=o?"strong_open":"em_open",u.tag=o?"strong":"em",u.nesting=1,u.markup=o?l+l:l,u.content="";const c=e.tokens[i.token];c.type=o?"strong_close":"em_close",c.tag=o?"strong":"em",c.nesting=-1,c.markup=o?l+l:l,c.content="",o&&(e.tokens[t[n-1].token].content="",e.tokens[t[a.end+1].token].content="",n--)}}function vQ(e){const t=e.tokens_meta,r=e.tokens_meta.length;r8(e,e.delimiters);for(let n=0;n<r;n++)t[n]&&t[n].delimiters&&r8(e,t[n].delimiters)}const G5={tokenize:gQ,postProcess:vQ};function bQ(e,t){let r,n,a,i,o="",l="",u=e.pos,c=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;const m=e.pos,p=e.posMax,g=e.pos+1,y=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(y<0)return!1;let x=y+1;if(x<p&&e.src.charCodeAt(x)===40){for(c=!1,x++;x<p&&(r=e.src.charCodeAt(x),!(!Dt(r)&&r!==10));x++);if(x>=p)return!1;if(u=x,a=e.md.helpers.parseLinkDestination(e.src,x,e.posMax),a.ok){for(o=e.md.normalizeLink(a.str),e.md.validateLink(o)?x=a.pos:o="",u=x;x<p&&(r=e.src.charCodeAt(x),!(!Dt(r)&&r!==10));x++);if(a=e.md.helpers.parseLinkTitle(e.src,x,e.posMax),x<p&&u!==x&&a.ok)for(l=a.str,x=a.pos;x<p&&(r=e.src.charCodeAt(x),!(!Dt(r)&&r!==10));x++);}(x>=p||e.src.charCodeAt(x)!==41)&&(c=!0),x++}if(c){if(typeof e.env.references>"u")return!1;if(x<p&&e.src.charCodeAt(x)===91?(u=x+1,x=e.md.helpers.parseLinkLabel(e,x),x>=0?n=e.src.slice(u,x++):x=y+1):x=y+1,n||(n=e.src.slice(g,y)),i=e.env.references[Bh(n)],!i)return e.pos=m,!1;o=i.href,l=i.title}if(!t){e.pos=g,e.posMax=y;const E=e.push("link_open","a",1),k=[["href",o]];E.attrs=k,l&&k.push(["title",l]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=x,e.posMax=p,!0}function yQ(e,t){let r,n,a,i,o,l,u,c,m="";const p=e.pos,g=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const y=e.pos+2,x=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(x<0)return!1;if(i=x+1,i<g&&e.src.charCodeAt(i)===40){for(i++;i<g&&(r=e.src.charCodeAt(i),!(!Dt(r)&&r!==10));i++);if(i>=g)return!1;for(c=i,l=e.md.helpers.parseLinkDestination(e.src,i,e.posMax),l.ok&&(m=e.md.normalizeLink(l.str),e.md.validateLink(m)?i=l.pos:m=""),c=i;i<g&&(r=e.src.charCodeAt(i),!(!Dt(r)&&r!==10));i++);if(l=e.md.helpers.parseLinkTitle(e.src,i,e.posMax),i<g&&c!==i&&l.ok)for(u=l.str,i=l.pos;i<g&&(r=e.src.charCodeAt(i),!(!Dt(r)&&r!==10));i++);else u="";if(i>=g||e.src.charCodeAt(i)!==41)return e.pos=p,!1;i++}else{if(typeof e.env.references>"u")return!1;if(i<g&&e.src.charCodeAt(i)===91?(c=i+1,i=e.md.helpers.parseLinkLabel(e,i),i>=0?a=e.src.slice(c,i++):i=x+1):i=x+1,a||(a=e.src.slice(y,x)),o=e.env.references[Bh(a)],!o)return e.pos=p,!1;m=o.href,u=o.title}if(!t){n=e.src.slice(y,x);const E=[];e.md.inline.parse(n,e.md,e.env,E);const k=e.push("image","img",0),T=[["src",m],["alt",""]];k.attrs=T,k.children=E,k.content=n,u&&T.push(["title",u])}return e.pos=i,e.posMax=g,!0}const _Q=/^([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])?)*)$/,wQ=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function xQ(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 o=e.src.charCodeAt(r);if(o===60)return!1;if(o===62)break}const i=e.src.slice(n+1,r);if(wQ.test(i)){const o=e.md.normalizeLink(i);if(!e.md.validateLink(o))return!1;if(!t){const l=e.push("link_open","a",1);l.attrs=[["href",o]],l.markup="autolink",l.info="auto";const u=e.push("text","",0);u.content=e.md.normalizeLinkText(i);const c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=i.length+2,!0}if(_Q.test(i)){const o=e.md.normalizeLink("mailto:"+i);if(!e.md.validateLink(o))return!1;if(!t){const l=e.push("link_open","a",1);l.attrs=[["href",o]],l.markup="autolink",l.info="auto";const u=e.push("text","",0);u.content=e.md.normalizeLinkText(i);const c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=i.length+2,!0}return!1}function SQ(e){return/^<a[>\s]/i.test(e)}function CQ(e){return/^<\/a\s*>/i.test(e)}function EQ(e){const t=e|32;return t>=97&&t<=122}function kQ(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&&!EQ(a))return!1;const i=e.src.slice(n).match(tQ);if(!i)return!1;if(!t){const o=e.push("html_inline","",0);o.content=i[0],SQ(o.content)&&e.linkLevel++,CQ(o.content)&&e.linkLevel--}return e.pos+=i[0].length,!0}const TQ=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,OQ=/^&([a-z][a-z0-9]{1,31});/i;function AQ(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(TQ);if(i){if(!t){const o=i[1][0].toLowerCase()==="x"?parseInt(i[1].slice(1),16):parseInt(i[1],10),l=e.push("text_special","",0);l.content=mb(o)?Zf(o):Zf(65533),l.markup=i[0],l.info="entity"}return e.pos+=i[0].length,!0}}else{const i=e.src.slice(r).match(OQ);if(i){const o=z5(i[0]);if(o!==i[0]){if(!t){const l=e.push("text_special","",0);l.content=o,l.markup=i[0],l.info="entity"}return e.pos+=i[0].length,!0}}}return!1}function n8(e){const t={},r=e.length;if(!r)return;let n=0,a=-2;const i=[];for(let o=0;o<r;o++){const l=e[o];if(i.push(0),(e[n].marker!==l.marker||a!==l.token-1)&&(n=o),a=l.token,l.length=l.length||0,!l.close)continue;t.hasOwnProperty(l.marker)||(t[l.marker]=[-1,-1,-1,-1,-1,-1]);const u=t[l.marker][(l.open?3:0)+l.length%3];let c=n-i[n]-1,m=c;for(;c>u;c-=i[c]+1){const p=e[c];if(p.marker===l.marker&&p.open&&p.end<0){let g=!1;if((p.close||l.open)&&(p.length+l.length)%3===0&&(p.length%3!==0||l.length%3!==0)&&(g=!0),!g){const y=c>0&&!e[c-1].open?i[c-1]+1:0;i[o]=o-c+y,i[c]=y,l.open=!1,p.end=o,p.close=!1,m=-1,a=-2;break}}}m!==-1&&(t[l.marker][(l.open?3:0)+(l.length||0)%3]=m)}}function RQ(e){const t=e.tokens_meta,r=e.tokens_meta.length;n8(e.delimiters);for(let n=0;n<r;n++)t[n]&&t[n].delimiters&&n8(t[n].delimiters)}function PQ(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 Dg=[["text",uQ],["linkify",cQ],["newline",dQ],["escape",fQ],["backticks",hQ],["strikethrough",Y5.tokenize],["emphasis",G5.tokenize],["link",bQ],["image",yQ],["autolink",xQ],["html_inline",kQ],["entity",AQ]],Mg=[["balance_pairs",RQ],["strikethrough",Y5.postProcess],["emphasis",G5.postProcess],["fragments_join",PQ]];function Tc(){this.ruler=new Ur;for(let e=0;e<Dg.length;e++)this.ruler.push(Dg[e][0],Dg[e][1]);this.ruler2=new Ur;for(let e=0;e<Mg.length;e++)this.ruler2.push(Mg[e][0],Mg[e][1])}Tc.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 o=!1;if(e.level<a){for(let l=0;l<n;l++)if(e.level++,o=r[l](e,!0),e.level--,o){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;o||e.pos++,i[t]=e.pos};Tc.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 o=!1;if(e.level<a){for(let l=0;l<r;l++)if(o=t[l](e,!1),o){if(i>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(o){if(e.pos>=n)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};Tc.prototype.parse=function(e,t,r,n){const a=new this.State(e,t,r,n);this.tokenize(a);const i=this.ruler2.getRules(""),o=i.length;for(let l=0;l<o;l++)i[l](a)};Tc.prototype.State=kc;function DQ(e){const t={};e=e||{},t.src_Any=N5.source,t.src_Cc=I5.source,t.src_Z=j5.source,t.src_P=hb.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 K1(e){return Array.prototype.slice.call(arguments,1).forEach(function(r){r&&Object.keys(r).forEach(function(n){e[n]=r[n]})}),e}function Uh(e){return Object.prototype.toString.call(e)}function MQ(e){return Uh(e)==="[object String]"}function FQ(e){return Uh(e)==="[object Object]"}function NQ(e){return Uh(e)==="[object RegExp]"}function a8(e){return Uh(e)==="[object Function]"}function IQ(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const K5={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function LQ(e){return Object.keys(e||{}).reduce(function(t,r){return t||K5.hasOwnProperty(r)},!1)}const jQ={"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}}},$Q="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]",zQ="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function BQ(e){e.__index__=-1,e.__text_cache__=""}function HQ(e){return function(t,r){const n=t.slice(r);return e.test(n)?n.match(e)[0].length:0}}function i8(){return function(e,t){t.normalize(e)}}function Jf(e){const t=e.re=DQ(e.__opts__),r=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||r.push($Q),r.push(t.src_xn),t.src_tlds=r.join("|");function n(l){return l.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(l,u){throw new Error('(LinkifyIt) Invalid schema "'+l+'": '+u)}Object.keys(e.__schemas__).forEach(function(l){const u=e.__schemas__[l];if(u===null)return;const c={validate:null,link:null};if(e.__compiled__[l]=c,FQ(u)){NQ(u.validate)?c.validate=HQ(u.validate):a8(u.validate)?c.validate=u.validate:i(l,u),a8(u.normalize)?c.normalize=u.normalize:u.normalize?i(l,u):c.normalize=i8();return}if(MQ(u)){a.push(l);return}i(l,u)}),a.forEach(function(l){e.__compiled__[e.__schemas__[l]]&&(e.__compiled__[l].validate=e.__compiled__[e.__schemas__[l]].validate,e.__compiled__[l].normalize=e.__compiled__[e.__schemas__[l]].normalize)}),e.__compiled__[""]={validate:null,normalize:i8()};const o=Object.keys(e.__compiled__).filter(function(l){return l.length>0&&e.__compiled__[l]}).map(IQ).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+o+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+o+")","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"),BQ(e)}function UQ(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 X1(e,t){const r=new UQ(e,t);return e.__compiled__[r.schema].normalize(r,e),r}function ln(e,t){if(!(this instanceof ln))return new ln(e,t);t||LQ(e)&&(t=e,e={}),this.__opts__=K1({},K5,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=K1({},jQ,e),this.__compiled__={},this.__tlds__=zQ,this.__tlds_replaced__=!1,this.re={},Jf(this)}ln.prototype.add=function(t,r){return this.__schemas__[t]=r,Jf(this),this};ln.prototype.set=function(t){return this.__opts__=K1(this.__opts__,t),this};ln.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;let r,n,a,i,o,l,u,c,m;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:"]&&(c=t.search(this.re.host_fuzzy_test),c>=0&&(this.__index__<0||c<this.__index__)&&(n=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(o=n.index+n[1].length,(this.__index__<0||o<this.__index__)&&(this.__schema__="",this.__index__=o,this.__last_index__=n.index+n[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(m=t.indexOf("@"),m>=0&&(a=t.match(this.re.email_fuzzy))!==null&&(o=a.index+a[1].length,l=a.index+a[0].length,(this.__index__<0||o<this.__index__||o===this.__index__&&l>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=l))),this.__index__>=0};ln.prototype.pretest=function(t){return this.re.pretest.test(t)};ln.prototype.testSchemaAt=function(t,r,n){return this.__compiled__[r.toLowerCase()]?this.__compiled__[r.toLowerCase()].validate(t,n,this):0};ln.prototype.match=function(t){const r=[];let n=0;this.__index__>=0&&this.__text_cache__===t&&(r.push(X1(this,n)),n=this.__last_index__);let a=n?t.slice(n):t;for(;this.test(a);)r.push(X1(this,n)),a=a.slice(this.__last_index__),n+=this.__last_index__;return r.length?r:null};ln.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,X1(this,0)):null};ln.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(),Jf(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,Jf(this),this)};ln.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};ln.prototype.onCompile=function(){};const ks=2147483647,fa=36,bb=1,uc=26,qQ=38,WQ=700,X5=72,Z5=128,J5="-",VQ=/^xn--/,YQ=/[^\0-\x7F]/,GQ=/[\x2E\u3002\uFF0E\uFF61]/g,KQ={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Fg=fa-bb,ha=Math.floor,Ng=String.fromCharCode;function Ci(e){throw new RangeError(KQ[e])}function XQ(e,t){const r=[];let n=e.length;for(;n--;)r[n]=t(e[n]);return r}function Q5(e,t){const r=e.split("@");let n="";r.length>1&&(n=r[0]+"@",e=r[1]),e=e.replace(GQ,".");const a=e.split("."),i=XQ(a,t).join(".");return n+i}function ZQ(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 JQ=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:fa},o8=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},ek=function(e,t,r){let n=0;for(e=r?ha(e/WQ):e>>1,e+=ha(e/t);e>Fg*uc>>1;n+=fa)e=ha(e/Fg);return ha(n+(Fg+1)*e/(e+qQ))},QQ=function(e){const t=[],r=e.length;let n=0,a=Z5,i=X5,o=e.lastIndexOf(J5);o<0&&(o=0);for(let l=0;l<o;++l)e.charCodeAt(l)>=128&&Ci("not-basic"),t.push(e.charCodeAt(l));for(let l=o>0?o+1:0;l<r;){const u=n;for(let m=1,p=fa;;p+=fa){l>=r&&Ci("invalid-input");const g=JQ(e.charCodeAt(l++));g>=fa&&Ci("invalid-input"),g>ha((ks-n)/m)&&Ci("overflow"),n+=g*m;const y=p<=i?bb:p>=i+uc?uc:p-i;if(g<y)break;const x=fa-y;m>ha(ks/x)&&Ci("overflow"),m*=x}const c=t.length+1;i=ek(n-u,c,u==0),ha(n/c)>ks-a&&Ci("overflow"),a+=ha(n/c),n%=c,t.splice(n++,0,a)}return String.fromCodePoint(...t)},eee=function(e){const t=[];e=ZQ(e);const r=e.length;let n=Z5,a=0,i=X5;for(const u of e)u<128&&t.push(Ng(u));const o=t.length;let l=o;for(o&&t.push(J5);l<r;){let u=ks;for(const m of e)m>=n&&m<u&&(u=m);const c=l+1;u-n>ha((ks-a)/c)&&Ci("overflow"),a+=(u-n)*c,n=u;for(const m of e)if(m<n&&++a>ks&&Ci("overflow"),m===n){let p=a;for(let g=fa;;g+=fa){const y=g<=i?bb:g>=i+uc?uc:g-i;if(p<y)break;const x=p-y,E=fa-y;t.push(Ng(o8(y+x%E,0))),p=ha(x/E)}t.push(Ng(o8(p,0))),i=ek(a,c,l===o),a=0,++l}++a,++n}return t.join("")},tee=function(e){return Q5(e,function(t){return VQ.test(t)?QQ(t.slice(4).toLowerCase()):t})},ree=function(e){return Q5(e,function(t){return YQ.test(t)?"xn--"+eee(t):t})},tk={toASCII:ree,toUnicode:tee},nee={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},aee={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"]}}},iee={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"]}}},oee={default:nee,zero:aee,commonmark:iee},see=/^(vbscript|javascript|file|data):/,uee=/^data:image\/(gif|png|jpeg|webp);/;function lee(e){const t=e.trim().toLowerCase();return see.test(t)?uee.test(t):!0}const rk=["http:","https:","mailto:"];function cee(e){const t=fb(e,!0);if(t.hostname&&(!t.protocol||rk.indexOf(t.protocol)>=0))try{t.hostname=tk.toASCII(t.hostname)}catch{}return Ec(db(t))}function dee(e){const t=fb(e,!0);if(t.hostname&&(!t.protocol||rk.indexOf(t.protocol)>=0))try{t.hostname=tk.toUnicode(t.hostname)}catch{}return Fs(db(t),Fs.defaultChars+"%")}function kn(e,t){if(!(this instanceof kn))return new kn(e,t);t||pb(e)||(t=e||{},e="default"),this.inline=new Tc,this.block=new Hh,this.core=new gb,this.renderer=new Js,this.linkify=new ln,this.validateLink=lee,this.normalizeLink=cee,this.normalizeLinkText=dee,this.utils=dJ,this.helpers=zh({},mJ),this.options={},this.configure(e),t&&this.set(t)}kn.prototype.set=function(e){return zh(this.options,e),this};kn.prototype.configure=function(e){const t=this;if(pb(e)){const r=e;if(e=oee[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};kn.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};kn.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};kn.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this};kn.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};kn.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};kn.prototype.parseInline=function(e,t){const r=new this.core.State(e,this,t);return r.inlineMode=!0,this.core.process(r),r.tokens};kn.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};const fee=kn({html:!0,breaks:!0}),s8=[{key:"0",label:"What?"}],hee=e=>{if(!e)return null;const t=fee.render(e.replace("<think>","").replace("</think>","")).replace("<p>&lt;think</p>","");return t?(console.log(t,"renderedContent"),D.jsx("div",{dangerouslySetInnerHTML:{__html:t}})):null},pee=[{key:"1",description:"Hot Topics"},{key:"2",description:"Design Guide"}],mee={ai:{placement:"start",avatar:D.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:D.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:D.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:D.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"}}}},gee=new ct({baseURL:"https://xiaoai.plus/v1",apiKey:"sk-0ZHLSTsMOiX1YwwBvz8Kwtl3ZXlDVX4zpDgplbOYdImZuJQ9",dangerouslyAllowBrowser:!0}),vee=()=>{const[e,t]=F.useState(!1),[r,n]=F.useState(""),[a,i]=F.useState(!1),[o,l]=F.useState(s8),[u,c]=F.useState(s8[0].key),[m,p]=F.useState([]),g="deepseek-r1",[y]=sX({request:async(P,M)=>{var B;const{messages:q,message:L}=P,{onSuccess:N,onUpdate:j,onError:O}=M;let I="",z="";try{i(!0);const H=await gee.chat.completions.create({model:g,messages:[{role:"user",content:L}],stream:!0});i(!1);for await(const U of H){const{reasoning_content:J,content:re}=((B=U.choices[0])==null?void 0:B.delta)||{};J&&(z+=J),re&&(I+=re),j(I)}N(I)}catch{}}}),{onRequest:x,messages:E,setMessages:k}=QK({agent:y});F.useEffect(()=>{const P=E.map(M=>({...M,loading:a}));k(P)},[a,E.length]),F.useEffect(()=>{u!==void 0&&k([])},[u]);const T=P=>{P&&(x(P),n(""))},w=P=>{x(P.data.description)},S=()=>{l([...o,{key:`${o.length}`,label:`New Conversation ${o.length}`}]),c(`${o.length}`)},f=P=>{c(P)},h=P=>p(P.fileList),v=E.map(({id:P,message:M,status:q})=>({key:P,loading:!1,role:q==="local"?"local":"ai",content:M,messageRender:hee})),_=D.jsx(Z.Badge,{dot:m.length>0&&!e,children:D.jsx(Z.Button,{type:"text",icon:D.jsx($8,{}),onClick:()=>t(!e)})}),R=D.jsx(Wf.Header,{title:"Attachments",open:e,onOpenChange:t,styles:{content:{padding:0}},children:D.jsx(Bv,{beforeUpload:()=>!1,items:m,onChange:h,placeholder:P=>P==="drop"?{title:"Drop file here"}:{icon:D.jsx(F8,{}),title:"Upload files",description:"Click or drag files to this area to upload"}})}),C=D.jsx("div",{className:In.logo,children:D.jsx("span",{children:"OnChain Assistant"})});return D.jsxs("div",{className:In.layout,children:[D.jsxs("div",{className:In.menu,children:[C,D.jsx(Z.Button,{onClick:S,type:"link",className:In.addBtn,icon:D.jsx(rv,{}),children:"New Conversation"}),D.jsx(OE,{items:o,className:In.conversations,activeKey:u,onActiveChange:f})]}),D.jsxs("div",{className:In.chat,children:[D.jsxs("div",{className:In.top_header,children:[D.jsx("div",{style:{fontWeight:"bold"},children:"Llama3:latest"}),D.jsx("div",{children:D.jsx("div",{className:In.person,children:"李明"})})]}),D.jsx("div",{style:{height:"calc(100% - 265px)",padding:"0px 16px 16px 16px",display:"flex",justifyContent:"center",margin:"0 auto",maxWidth:"70%",width:"100%"},children:v.length?D.jsx(Rh.List,{items:v,roles:mee,className:In.messages}):D.jsx("div",{style:{height:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:D.jsx(CZ,{onPromptsItemClick:w})})}),D.jsx(Ph,{items:pee,onItemClick:w,style:{padding:"0px 16px"}}),D.jsx(Wf,{value:r,header:R,onSubmit:T,onChange:n,prefix:_,loading:y.isRequesting(),className:In.sender,style:{margin:"0px 16px 16px 16px",width:"auto"}})]})]})};exports.HealthStateComponent=UM;exports.OnChainAI=vee;exports.OnChainAdvancedSearch=SW;exports.OnChainBadge=Ug;exports.OnChainCompositeForm=pc;exports.OnChainDropMenu=m$;exports.OnChainExcelViewer=g$;exports.OnChainForm=XS;exports.OnChainFormItem=lC;exports.OnChainGenAntImage=aC;exports.OnChainGlobalLoading=YM;exports.OnChainHighLightWords=Mi;exports.OnChainIcon=Ue;exports.OnChainImage=v1;exports.OnChainInput=Y8;exports.OnChainLoading=Ls;exports.OnChainLoadingSkCube=qM;exports.OnChainMarkdown=US;exports.OnChainModal=To;exports.OnChainMosaic=pa;exports.OnChainPopupSelect=uC;exports.OnChainProvider=EP;exports.OnChainPublicTree=zW;exports.OnChainQueryBuilder=cC;exports.OnChainResourceTree=H4;exports.OnChainScrollBar=d$;exports.OnChainScrollBarAssembly=RW;exports.OnChainSelect=ho;exports.OnChainSelectPopupForm=rC;exports.OnChainTable=yh;exports.OnChainTableSelection=sC;exports.OnChainViewerError=f$;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var u=(r=>(r.material="10001001",r.document="10001002",r.changeRequest="10001003",r.changeInstruction="10001004",r.engineeringChange="10001005",r.file="10001006",r.problemReport="10001007",r.manufacturerChange="10001008",r.statusChange="10001009",r.applicationProcess="10001010",r.supplierRequest="10001011",r.manufacturer="10001012",r.manufacturerParts="10001013",r.supplier="10001014",r.projectStartChange="10001015",r.dailyNewspaper="10001019",r.projectBaselineChange="10001030",r.project="10001016",r.workReport="10001019",r.user="10001017",r.userGroup="10001018",r.manufactChange="10001020",r.technology="10001021",r.factory="10001022",r.resource="10001023",r.factoryPublish="10001024",r.resourcePublish="10001025",r.risk="10001028",r.technologyPublish="10001029",r.inspectItem="10001031",r.option="10001032",r.custom="10001033",r.TechSpecial="10001034",r.ControlPlan="10001035",r.TechSpecialPublish="10001036",r.ControlPlanPublish="10001037",r))(u||{});class n{constructor(){}prefixClickAuth(t){return!0}}class e extends n{constructor(){super()}prefixClickAuth(t){return console.log(t.userAuth.user.otherRoleApicodes.split(","),'body.userAuth.user.otherRoleApicodes.split(",")'),!(t.instanceInfo.itemCode==u.material&&t.button=="tab_downloadDesignFile"&&!t.userAuth.user.otherRoleApicodes.split(",").includes("DownloadDesignFile")||t.instanceInfo.itemCode==u.material&&t.button=="tab_exportAttachment"&&!t.userAuth.user.otherRoleApicodes.split(",").includes("ExportBOMAttachment")||t.instanceInfo.itemCode==u.material&&t.button=="tab_export"&&!t.userAuth.user.otherRoleApicodes.split(",").includes("ExportBOM")||t.instanceInfo.itemCode==u.material&&t.button=="transformOSTEP"&&!t.userAuth.user.otherRoleApicodes.split(",").includes("Ti5YF")||t.instanceInfo.itemCode==u.material&&t.button=="transformSTEP"&&!t.userAuth.user.otherRoleApicodes.split(",").includes("Ti5YF"))}}exports.ti5ButtonAuth=e;