ados-rcm 1.1.407 → 1.1.409
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.
- package/dist/index.cjs.js +45 -45
- package/dist/index.es.js +995 -1000
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
*
|
8
8
|
* This source code is licensed under the MIT license found in the
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
10
|
-
*/var qv;function i4(){if(qv)return Ef;qv=1;var r=A,e=Symbol.for("react.element"),t=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(f,g,m){var R,
|
10
|
+
*/var qv;function i4(){if(qv)return Ef;qv=1;var r=A,e=Symbol.for("react.element"),t=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(f,g,m){var R,C={},b=null,S=null;m!==void 0&&(b=""+m),g.key!==void 0&&(b=""+g.key),g.ref!==void 0&&(S=g.ref);for(R in g)n.call(g,R)&&!l.hasOwnProperty(R)&&(C[R]=g[R]);if(f&&f.defaultProps)for(R in g=f.defaultProps,g)C[R]===void 0&&(C[R]=g[R]);return{$$typeof:e,type:f,key:b,ref:S,props:C,_owner:i.current}}return Ef.Fragment=t,Ef.jsx=u,Ef.jsxs=u,Ef}var kf={};/**
|
11
11
|
* @license React
|
12
12
|
* react-jsx-runtime.development.js
|
13
13
|
*
|
@@ -15,24 +15,24 @@
|
|
15
15
|
*
|
16
16
|
* This source code is licensed under the MIT license found in the
|
17
17
|
* LICENSE file in the root directory of this source tree.
|
18
|
-
*/var zv;function o4(){return zv||(zv=1,process.env.NODE_ENV!=="production"&&function(){var r=A,e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),f=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),
|
18
|
+
*/var zv;function o4(){return zv||(zv=1,process.env.NODE_ENV!=="production"&&function(){var r=A,e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),f=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),S=Symbol.for("react.offscreen"),_=Symbol.iterator,D="@@iterator";function E(Y){if(Y===null||typeof Y!="object")return null;var pe=_&&Y[_]||Y[D];return typeof pe=="function"?pe:null}var x=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function L(Y){{for(var pe=arguments.length,Be=new Array(pe>1?pe-1:0),ot=1;ot<pe;ot++)Be[ot-1]=arguments[ot];O("error",Y,Be)}}function O(Y,pe,Be){{var ot=x.ReactDebugCurrentFrame,Ot=ot.getStackAddendum();Ot!==""&&(pe+="%s",Be=Be.concat([Ot]));var $t=Be.map(function(kt){return String(kt)});$t.unshift("Warning: "+pe),Function.prototype.apply.call(console[Y],console,$t)}}var H=!1,q=!1,z=!1,K=!1,ue=!1,X;X=Symbol.for("react.module.reference");function de(Y){return!!(typeof Y=="string"||typeof Y=="function"||Y===n||Y===l||ue||Y===i||Y===m||Y===R||K||Y===S||H||q||z||typeof Y=="object"&&Y!==null&&(Y.$$typeof===b||Y.$$typeof===C||Y.$$typeof===u||Y.$$typeof===f||Y.$$typeof===g||Y.$$typeof===X||Y.getModuleId!==void 0))}function j(Y,pe,Be){var ot=Y.displayName;if(ot)return ot;var Ot=pe.displayName||pe.name||"";return Ot!==""?Be+"("+Ot+")":Be}function re(Y){return Y.displayName||"Context"}function J(Y){if(Y==null)return null;if(typeof Y.tag=="number"&&L("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof Y=="function")return Y.displayName||Y.name||null;if(typeof Y=="string")return Y;switch(Y){case n:return"Fragment";case t:return"Portal";case l:return"Profiler";case i:return"StrictMode";case m:return"Suspense";case R:return"SuspenseList"}if(typeof Y=="object")switch(Y.$$typeof){case f:var pe=Y;return re(pe)+".Consumer";case u:var Be=Y;return re(Be._context)+".Provider";case g:return j(Y,Y.render,"ForwardRef");case C:var ot=Y.displayName||null;return ot!==null?ot:J(Y.type)||"Memo";case b:{var Ot=Y,$t=Ot._payload,kt=Ot._init;try{return J(kt($t))}catch{return null}}}return null}var Q=Object.assign,he=0,me,be,ce,ke,le,oe,ve;function Oe(){}Oe.__reactDisabledLog=!0;function et(){{if(he===0){me=console.log,be=console.info,ce=console.warn,ke=console.error,le=console.group,oe=console.groupCollapsed,ve=console.groupEnd;var Y={configurable:!0,enumerable:!0,value:Oe,writable:!0};Object.defineProperties(console,{info:Y,log:Y,warn:Y,error:Y,group:Y,groupCollapsed:Y,groupEnd:Y})}he++}}function we(){{if(he--,he===0){var Y={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Q({},Y,{value:me}),info:Q({},Y,{value:be}),warn:Q({},Y,{value:ce}),error:Q({},Y,{value:ke}),group:Q({},Y,{value:le}),groupCollapsed:Q({},Y,{value:oe}),groupEnd:Q({},Y,{value:ve})})}he<0&&L("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Pe=x.ReactCurrentDispatcher,je;function ze(Y,pe,Be){{if(je===void 0)try{throw Error()}catch(Ot){var ot=Ot.stack.trim().match(/\n( *(at )?)/);je=ot&&ot[1]||""}return`
|
19
19
|
`+je+Y}}var We=!1,De;{var Ae=typeof WeakMap=="function"?WeakMap:Map;De=new Ae}function _e(Y,pe){if(!Y||We)return"";{var Be=De.get(Y);if(Be!==void 0)return Be}var ot;We=!0;var Ot=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var $t;$t=Pe.current,Pe.current=null,et();try{if(pe){var kt=function(){throw Error()};if(Object.defineProperty(kt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(kt,[])}catch(Cn){ot=Cn}Reflect.construct(Y,[],kt)}else{try{kt.call()}catch(Cn){ot=Cn}Y.call(kt.prototype)}}else{try{throw Error()}catch(Cn){ot=Cn}Y()}}catch(Cn){if(Cn&&ot&&typeof Cn.stack=="string"){for(var Ut=Cn.stack.split(`
|
20
20
|
`),nr=ot.stack.split(`
|
21
21
|
`),ir=Ut.length-1,fr=nr.length-1;ir>=1&&fr>=0&&Ut[ir]!==nr[fr];)fr--;for(;ir>=1&&fr>=0;ir--,fr--)if(Ut[ir]!==nr[fr]){if(ir!==1||fr!==1)do if(ir--,fr--,fr<0||Ut[ir]!==nr[fr]){var Ur=`
|
22
|
-
`+Ut[ir].replace(" at new "," at ");return Y.displayName&&Ur.includes("<anonymous>")&&(Ur=Ur.replace("<anonymous>",Y.displayName)),typeof Y=="function"&&De.set(Y,Ur),Ur}while(ir>=1&&fr>=0);break}}}finally{We=!1,Pe.current=$t,we(),Error.prepareStackTrace=Ot}var yr=Y?Y.displayName||Y.name:"",Kn=yr?ze(yr):"";return typeof Y=="function"&&De.set(Y,Kn),Kn}function Ge(Y,pe,Be){return _e(Y,!1)}function lt(Y){var pe=Y.prototype;return!!(pe&&pe.isReactComponent)}function $e(Y,pe,Be){if(Y==null)return"";if(typeof Y=="function")return _e(Y,lt(Y));if(typeof Y=="string")return ze(Y);switch(Y){case m:return ze("Suspense");case R:return ze("SuspenseList")}if(typeof Y=="object")switch(Y.$$typeof){case g:return Ge(Y.render);case
|
22
|
+
`+Ut[ir].replace(" at new "," at ");return Y.displayName&&Ur.includes("<anonymous>")&&(Ur=Ur.replace("<anonymous>",Y.displayName)),typeof Y=="function"&&De.set(Y,Ur),Ur}while(ir>=1&&fr>=0);break}}}finally{We=!1,Pe.current=$t,we(),Error.prepareStackTrace=Ot}var yr=Y?Y.displayName||Y.name:"",Kn=yr?ze(yr):"";return typeof Y=="function"&&De.set(Y,Kn),Kn}function Ge(Y,pe,Be){return _e(Y,!1)}function lt(Y){var pe=Y.prototype;return!!(pe&&pe.isReactComponent)}function $e(Y,pe,Be){if(Y==null)return"";if(typeof Y=="function")return _e(Y,lt(Y));if(typeof Y=="string")return ze(Y);switch(Y){case m:return ze("Suspense");case R:return ze("SuspenseList")}if(typeof Y=="object")switch(Y.$$typeof){case g:return Ge(Y.render);case C:return $e(Y.type,pe,Be);case b:{var ot=Y,Ot=ot._payload,$t=ot._init;try{return $e($t(Ot),pe,Be)}catch{}}}return""}var ht=Object.prototype.hasOwnProperty,Le={},Xe=x.ReactDebugCurrentFrame;function it(Y){if(Y){var pe=Y._owner,Be=$e(Y.type,Y._source,pe?pe.type:null);Xe.setExtraStackFrame(Be)}else Xe.setExtraStackFrame(null)}function Ct(Y,pe,Be,ot,Ot){{var $t=Function.call.bind(ht);for(var kt in Y)if($t(Y,kt)){var Ut=void 0;try{if(typeof Y[kt]!="function"){var nr=Error((ot||"React class")+": "+Be+" type `"+kt+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof Y[kt]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw nr.name="Invariant Violation",nr}Ut=Y[kt](pe,kt,ot,Be,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ir){Ut=ir}Ut&&!(Ut instanceof Error)&&(it(Ot),L("%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).",ot||"React class",Be,kt,typeof Ut),it(null)),Ut instanceof Error&&!(Ut.message in Le)&&(Le[Ut.message]=!0,it(Ot),L("Failed %s type: %s",Be,Ut.message),it(null))}}}var _t=Array.isArray;function wt(Y){return _t(Y)}function bt(Y){{var pe=typeof Symbol=="function"&&Symbol.toStringTag,Be=pe&&Y[Symbol.toStringTag]||Y.constructor.name||"Object";return Be}}function St(Y){try{return Me(Y),!1}catch{return!0}}function Me(Y){return""+Y}function pt(Y){if(St(Y))return L("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",bt(Y)),Me(Y)}var Et=x.ReactCurrentOwner,mt={key:!0,ref:!0,__self:!0,__source:!0},Dt,Ze;function At(Y){if(ht.call(Y,"ref")){var pe=Object.getOwnPropertyDescriptor(Y,"ref").get;if(pe&&pe.isReactWarning)return!1}return Y.ref!==void 0}function jt(Y){if(ht.call(Y,"key")){var pe=Object.getOwnPropertyDescriptor(Y,"key").get;if(pe&&pe.isReactWarning)return!1}return Y.key!==void 0}function mr(Y,pe){typeof Y.ref=="string"&&Et.current}function kr(Y,pe){{var Be=function(){Dt||(Dt=!0,L("%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)",pe))};Be.isReactWarning=!0,Object.defineProperty(Y,"key",{get:Be,configurable:!0})}}function Cr(Y,pe){{var Be=function(){Ze||(Ze=!0,L("%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)",pe))};Be.isReactWarning=!0,Object.defineProperty(Y,"ref",{get:Be,configurable:!0})}}var ge=function(Y,pe,Be,ot,Ot,$t,kt){var Ut={$$typeof:e,type:Y,key:pe,ref:Be,props:kt,_owner:$t};return Ut._store={},Object.defineProperty(Ut._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Ut,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ot}),Object.defineProperty(Ut,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Ot}),Object.freeze&&(Object.freeze(Ut.props),Object.freeze(Ut)),Ut};function ne(Y,pe,Be,ot,Ot){{var $t,kt={},Ut=null,nr=null;Be!==void 0&&(pt(Be),Ut=""+Be),jt(pe)&&(pt(pe.key),Ut=""+pe.key),At(pe)&&(nr=pe.ref,mr(pe,Ot));for($t in pe)ht.call(pe,$t)&&!mt.hasOwnProperty($t)&&(kt[$t]=pe[$t]);if(Y&&Y.defaultProps){var ir=Y.defaultProps;for($t in ir)kt[$t]===void 0&&(kt[$t]=ir[$t])}if(Ut||nr){var fr=typeof Y=="function"?Y.displayName||Y.name||"Unknown":Y;Ut&&kr(kt,fr),nr&&Cr(kt,fr)}return ge(Y,Ut,nr,Ot,ot,Et.current,kt)}}var Je=x.ReactCurrentOwner,ct=x.ReactDebugCurrentFrame;function tt(Y){if(Y){var pe=Y._owner,Be=$e(Y.type,Y._source,pe?pe.type:null);ct.setExtraStackFrame(Be)}else ct.setExtraStackFrame(null)}var Re;Re=!1;function xt(Y){return typeof Y=="object"&&Y!==null&&Y.$$typeof===e}function Rt(){{if(Je.current){var Y=J(Je.current.type);if(Y)return`
|
23
23
|
|
24
24
|
Check the render method of \``+Y+"`."}return""}}function vt(Y){return""}var Mt={};function Qt(Y){{var pe=Rt();if(!pe){var Be=typeof Y=="string"?Y:Y.displayName||Y.name;Be&&(pe=`
|
25
25
|
|
26
|
-
Check the top-level render call using <`+Be+">.")}return pe}}function rr(Y,pe){{if(!Y._store||Y._store.validated||Y.key!=null)return;Y._store.validated=!0;var Be=Qt(pe);if(Mt[Be])return;Mt[Be]=!0;var ot="";Y&&Y._owner&&Y._owner!==Je.current&&(ot=" It was passed a child from "+J(Y._owner.type)+"."),tt(Y),L('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Be,ot),tt(null)}}function Bt(Y,pe){{if(typeof Y!="object")return;if(wt(Y))for(var Be=0;Be<Y.length;Be++){var ot=Y[Be];xt(ot)&&rr(ot,pe)}else if(xt(Y))Y._store&&(Y._store.validated=!0);else if(Y){var Ot=E(Y);if(typeof Ot=="function"&&Ot!==Y.entries)for(var $t=Ot.call(Y),kt;!(kt=$t.next()).done;)xt(kt.value)&&rr(kt.value,pe)}}}function qt(Y){{var pe=Y.type;if(pe==null||typeof pe=="string")return;var Be;if(typeof pe=="function")Be=pe.propTypes;else if(typeof pe=="object"&&(pe.$$typeof===g||pe.$$typeof===
|
26
|
+
Check the top-level render call using <`+Be+">.")}return pe}}function rr(Y,pe){{if(!Y._store||Y._store.validated||Y.key!=null)return;Y._store.validated=!0;var Be=Qt(pe);if(Mt[Be])return;Mt[Be]=!0;var ot="";Y&&Y._owner&&Y._owner!==Je.current&&(ot=" It was passed a child from "+J(Y._owner.type)+"."),tt(Y),L('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Be,ot),tt(null)}}function Bt(Y,pe){{if(typeof Y!="object")return;if(wt(Y))for(var Be=0;Be<Y.length;Be++){var ot=Y[Be];xt(ot)&&rr(ot,pe)}else if(xt(Y))Y._store&&(Y._store.validated=!0);else if(Y){var Ot=E(Y);if(typeof Ot=="function"&&Ot!==Y.entries)for(var $t=Ot.call(Y),kt;!(kt=$t.next()).done;)xt(kt.value)&&rr(kt.value,pe)}}}function qt(Y){{var pe=Y.type;if(pe==null||typeof pe=="string")return;var Be;if(typeof pe=="function")Be=pe.propTypes;else if(typeof pe=="object"&&(pe.$$typeof===g||pe.$$typeof===C))Be=pe.propTypes;else return;if(Be){var ot=J(pe);Ct(Be,Y.props,"prop",ot,Y)}else if(pe.PropTypes!==void 0&&!Re){Re=!0;var Ot=J(pe);L("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Ot||"Unknown")}typeof pe.getDefaultProps=="function"&&!pe.getDefaultProps.isReactClassApproved&&L("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function sr(Y){{for(var pe=Object.keys(Y.props),Be=0;Be<pe.length;Be++){var ot=pe[Be];if(ot!=="children"&&ot!=="key"){tt(Y),L("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ot),tt(null);break}}Y.ref!==null&&(tt(Y),L("Invalid attribute `ref` supplied to `React.Fragment`."),tt(null))}}function Qe(Y,pe,Be,ot,Ot,$t){{var kt=de(Y);if(!kt){var Ut="";(Y===void 0||typeof Y=="object"&&Y!==null&&Object.keys(Y).length===0)&&(Ut+=" 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 nr=vt();nr?Ut+=nr:Ut+=Rt();var ir;Y===null?ir="null":wt(Y)?ir="array":Y!==void 0&&Y.$$typeof===e?(ir="<"+(J(Y.type)||"Unknown")+" />",Ut=" Did you accidentally export a JSX literal instead of a component?"):ir=typeof Y,L("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ir,Ut)}var fr=ne(Y,pe,Be,Ot,$t);if(fr==null)return fr;if(kt){var Ur=pe.children;if(Ur!==void 0)if(ot)if(wt(Ur)){for(var yr=0;yr<Ur.length;yr++)Bt(Ur[yr],Y);Object.freeze&&Object.freeze(Ur)}else L("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 Bt(Ur,Y)}return Y===n?sr(fr):qt(fr),fr}}function Tt(Y,pe,Be){return Qe(Y,pe,Be,!0)}function yt(Y,pe,Be){return Qe(Y,pe,Be,!1)}var Lt=yt,vr=Tt;kf.Fragment=n,kf.jsx=Lt,kf.jsxs=vr}()),kf}var $v;function s4(){return $v||($v=1,process.env.NODE_ENV==="production"?Cd.exports=i4():Cd.exports=o4()),Cd.exports}var v=s4(),Pf={exports:{}};/**
|
27
27
|
* @license
|
28
28
|
* Lodash <https://lodash.com/>
|
29
29
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
30
30
|
* Released under MIT license <https://lodash.com/license>
|
31
31
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
32
32
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
33
|
-
*/var a4=Pf.exports,Uv;function l4(){return Uv||(Uv=1,function(r,e){(function(){var t,n="4.17.21",i=200,l="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",f="Invalid `variable` option passed into `_.template`",g="__lodash_hash_undefined__",m=500,R="__lodash_placeholder__",w=1,b=2,S=4,_=1,D=2,E=1,x=2,L=4,O=8,H=16,q=32,z=64,K=128,ue=256,X=512,de=30,j="...",re=800,J=16,Q=1,he=2,me=3,be=1/0,ce=9007199254740991,ke=17976931348623157e292,le=NaN,oe=4294967295,ve=oe-1,Oe=oe>>>1,et=[["ary",K],["bind",E],["bindKey",x],["curry",O],["curryRight",H],["flip",X],["partial",q],["partialRight",z],["rearg",ue]],we="[object Arguments]",Pe="[object Array]",je="[object AsyncFunction]",ze="[object Boolean]",We="[object Date]",De="[object DOMException]",Ae="[object Error]",_e="[object Function]",Ge="[object GeneratorFunction]",lt="[object Map]",$e="[object Number]",ht="[object Null]",Le="[object Object]",Xe="[object Promise]",it="[object Proxy]",Ct="[object RegExp]",_t="[object Set]",wt="[object String]",bt="[object Symbol]",St="[object Undefined]",Me="[object WeakMap]",pt="[object WeakSet]",Et="[object ArrayBuffer]",mt="[object DataView]",Dt="[object Float32Array]",Ze="[object Float64Array]",At="[object Int8Array]",jt="[object Int16Array]",mr="[object Int32Array]",kr="[object Uint8Array]",Cr="[object Uint8ClampedArray]",ge="[object Uint16Array]",ne="[object Uint32Array]",Je=/\b__p \+= '';/g,ct=/\b(__p \+=) '' \+/g,tt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Re=/&(?:amp|lt|gt|quot|#39);/g,xt=/[&<>"']/g,Rt=RegExp(Re.source),vt=RegExp(xt.source),Mt=/<%-([\s\S]+?)%>/g,Qt=/<%([\s\S]+?)%>/g,rr=/<%=([\s\S]+?)%>/g,Bt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,qt=/^\w*$/,sr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Qe=/[\\^$.*+?()[\]{}|]/g,Tt=RegExp(Qe.source),yt=/^\s+/,Lt=/\s/,vr=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Y=/\{\n\/\* \[wrapped with (.+)\] \*/,pe=/,? & /,Be=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ot=/[()=,{}\[\]\/\s]/,Ot=/\\(\\)?/g,$t=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,kt=/\w*$/,Ut=/^[-+]0x[0-9a-f]+$/i,nr=/^0b[01]+$/i,ir=/^\[object .+?Constructor\]$/,fr=/^0o[0-7]+$/i,Ur=/^(?:0|[1-9]\d*)$/,yr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Kn=/($^)/,Cn=/['\n\r\u2028\u2029\\]/g,Dn="\\ud800-\\udfff",Yr="\\u0300-\\u036f",Yn="\\ufe20-\\ufe2f",En="\\u20d0-\\u20ff",Xn=Yr+Yn+En,Jn="\\u2700-\\u27bf",on="a-z\\xdf-\\xf6\\xf8-\\xff",On="\\xac\\xb1\\xd7\\xf7",wn="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",hi="\\u2000-\\u206f",Si=" \\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",Ci="A-Z\\xc0-\\xd6\\xd8-\\xde",kn="\\ufe0e\\ufe0f",An=On+wn+hi+Si,un="['’]",Qn="["+Dn+"]",sn="["+An+"]",pn="["+Xn+"]",C="\\d+",N="["+Jn+"]",V="["+on+"]",ee="[^"+Dn+An+C+Jn+on+Ci+"]",Ee="\\ud83c[\\udffb-\\udfff]",Se="(?:"+pn+"|"+Ee+")",He="[^"+Dn+"]",st="(?:\\ud83c[\\udde6-\\uddff]){2}",Pt="[\\ud800-\\udbff][\\udc00-\\udfff]",zt="["+Ci+"]",Ht="\\u200d",xr="(?:"+V+"|"+ee+")",Zr="(?:"+zt+"|"+ee+")",vn="(?:"+un+"(?:d|ll|m|re|s|t|ve))?",yn="(?:"+un+"(?:D|LL|M|RE|S|T|VE))?",li=Se+"?",Bn="["+kn+"]?",wi="(?:"+Ht+"(?:"+[He,st,Pt].join("|")+")"+Bn+li+")*",Xr="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",pi="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Hn=Bn+li+wi,ei="(?:"+[N,st,Pt].join("|")+")"+Hn,bo="(?:"+[He+pn+"?",pn,st,Pt,Qn].join("|")+")",ro=RegExp(un,"g"),no=RegExp(pn,"g"),Rn=RegExp(Ee+"(?="+Ee+")|"+bo+Hn,"g"),_o=RegExp([zt+"?"+V+"+"+vn+"(?="+[sn,zt,"$"].join("|")+")",Zr+"+"+yn+"(?="+[sn,zt+xr,"$"].join("|")+")",zt+"?"+xr+"+"+vn,zt+"+"+yn,pi,Xr,C,ei].join("|"),"g"),ti=RegExp("["+Ht+Dn+Xn+kn+"]"),ri=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,$i=["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"],Or=-1,wr={};wr[Dt]=wr[Ze]=wr[At]=wr[jt]=wr[mr]=wr[kr]=wr[Cr]=wr[ge]=wr[ne]=!0,wr[we]=wr[Pe]=wr[Et]=wr[ze]=wr[mt]=wr[We]=wr[Ae]=wr[_e]=wr[lt]=wr[$e]=wr[Le]=wr[Ct]=wr[_t]=wr[wt]=wr[Me]=!1;var Mr={};Mr[we]=Mr[Pe]=Mr[Et]=Mr[mt]=Mr[ze]=Mr[We]=Mr[Dt]=Mr[Ze]=Mr[At]=Mr[jt]=Mr[mr]=Mr[lt]=Mr[$e]=Mr[Le]=Mr[Ct]=Mr[_t]=Mr[wt]=Mr[bt]=Mr[kr]=Mr[Cr]=Mr[ge]=Mr[ne]=!0,Mr[Ae]=Mr[_e]=Mr[Me]=!1;var I={À:"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"},G={"&":"&","<":"<",">":">",'"':""","'":"'"},ae={"&":"&","<":"<",">":">",""":'"',"'":"'"},qe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Yt=parseFloat,Vt=parseInt,pr=typeof bi=="object"&&bi&&bi.Object===Object&&bi,Sr=typeof self=="object"&&self&&self.Object===Object&&self,dr=pr||Sr||Function("return this")(),Ar=e&&!e.nodeType&&e,Jr=Ar&&!0&&r&&!r.nodeType&&r,In=Jr&&Jr.exports===Ar,Vr=In&&pr.process,Br=function(){try{var ye=Jr&&Jr.require&&Jr.require("util").types;return ye||Vr&&Vr.binding&&Vr.binding("util")}catch{}}(),Qr=Br&&Br.isArrayBuffer,ci=Br&&Br.isDate,gi=Br&&Br.isMap,qn=Br&&Br.isRegExp,xo=Br&&Br.isSet,Ui=Br&&Br.isTypedArray;function an(ye,Ue,Ne){switch(Ne.length){case 0:return ye.call(Ue);case 1:return ye.call(Ue,Ne[0]);case 2:return ye.call(Ue,Ne[0],Ne[1]);case 3:return ye.call(Ue,Ne[0],Ne[1],Ne[2])}return ye.apply(Ue,Ne)}function ps(ye,Ue,Ne,Nt){for(var or=-1,Pr=ye==null?0:ye.length;++or<Pr;){var bn=ye[or];Ue(Nt,bn,Ne(bn),ye)}return Nt}function zn(ye,Ue){for(var Ne=-1,Nt=ye==null?0:ye.length;++Ne<Nt&&Ue(ye[Ne],Ne,ye)!==!1;);return ye}function fl(ye,Ue){for(var Ne=ye==null?0:ye.length;Ne--&&Ue(ye[Ne],Ne,ye)!==!1;);return ye}function Ta(ye,Ue){for(var Ne=-1,Nt=ye==null?0:ye.length;++Ne<Nt;)if(!Ue(ye[Ne],Ne,ye))return!1;return!0}function Wi(ye,Ue){for(var Ne=-1,Nt=ye==null?0:ye.length,or=0,Pr=[];++Ne<Nt;){var bn=ye[Ne];Ue(bn,Ne,ye)&&(Pr[or++]=bn)}return Pr}function So(ye,Ue){var Ne=ye==null?0:ye.length;return!!Ne&&Co(ye,Ue,0)>-1}function $n(ye,Ue,Ne){for(var Nt=-1,or=ye==null?0:ye.length;++Nt<or;)if(Ne(Ue,ye[Nt]))return!0;return!1}function Kr(ye,Ue){for(var Ne=-1,Nt=ye==null?0:ye.length,or=Array(Nt);++Ne<Nt;)or[Ne]=Ue(ye[Ne],Ne,ye);return or}function Ai(ye,Ue){for(var Ne=-1,Nt=Ue.length,or=ye.length;++Ne<Nt;)ye[or+Ne]=Ue[Ne];return ye}function Ea(ye,Ue,Ne,Nt){var or=-1,Pr=ye==null?0:ye.length;for(Nt&&Pr&&(Ne=ye[++or]);++or<Pr;)Ne=Ue(Ne,ye[or],or,ye);return Ne}function dl(ye,Ue,Ne,Nt){var or=ye==null?0:ye.length;for(Nt&&or&&(Ne=ye[--or]);or--;)Ne=Ue(Ne,ye[or],or,ye);return Ne}function $o(ye,Ue){for(var Ne=-1,Nt=ye==null?0:ye.length;++Ne<Nt;)if(Ue(ye[Ne],Ne,ye))return!0;return!1}var hl=T("length");function pl(ye){return ye.split("")}function Gs(ye){return ye.match(Be)||[]}function gs(ye,Ue,Ne){var Nt;return Ne(ye,function(or,Pr,bn){if(Ue(or,Pr,bn))return Nt=Pr,!1}),Nt}function ms(ye,Ue,Ne,Nt){for(var or=ye.length,Pr=Ne+(Nt?1:-1);Nt?Pr--:++Pr<or;)if(Ue(ye[Pr],Pr,ye))return Pr;return-1}function Co(ye,Ue,Ne){return Ue===Ue?af(ye,Ue,Ne):ms(ye,Zs,Ne)}function gl(ye,Ue,Ne,Nt){for(var or=Ne-1,Pr=ye.length;++or<Pr;)if(Nt(ye[or],Ue))return or;return-1}function Zs(ye){return ye!==ye}function ka(ye,Ue){var Ne=ye==null?0:ye.length;return Ne?Ie(ye,Ue)/Ne:le}function T(ye){return function(Ue){return Ue==null?t:Ue[ye]}}function P(ye){return function(Ue){return ye==null?t:ye[Ue]}}function $(ye,Ue,Ne,Nt,or){return or(ye,function(Pr,bn,Wr){Ne=Nt?(Nt=!1,Pr):Ue(Ne,Pr,bn,Wr)}),Ne}function te(ye,Ue){var Ne=ye.length;for(ye.sort(Ue);Ne--;)ye[Ne]=ye[Ne].value;return ye}function Ie(ye,Ue){for(var Ne,Nt=-1,or=ye.length;++Nt<or;){var Pr=Ue(ye[Nt]);Pr!==t&&(Ne=Ne===t?Pr:Ne+Pr)}return Ne}function Te(ye,Ue){for(var Ne=-1,Nt=Array(ye);++Ne<ye;)Nt[Ne]=Ue(Ne);return Nt}function Ke(ye,Ue){return Kr(Ue,function(Ne){return[Ne,ye[Ne]]})}function gt(ye){return ye&&ye.slice(0,au(ye)+1).replace(yt,"")}function Wt(ye){return function(Ue){return ye(Ue)}}function hr(ye,Ue){return Kr(Ue,function(Ne){return ye[Ne]})}function ar(ye,Ue){return ye.has(Ue)}function Gr(ye,Ue){for(var Ne=-1,Nt=ye.length;++Ne<Nt&&Co(Ue,ye[Ne],0)>-1;);return Ne}function ni(ye,Ue){for(var Ne=ye.length;Ne--&&Co(Ue,ye[Ne],0)>-1;);return Ne}function Ti(ye,Ue){for(var Ne=ye.length,Nt=0;Ne--;)ye[Ne]===Ue&&++Nt;return Nt}var Ei=P(I),Ks=P(G);function ml(ye){return"\\"+qe[ye]}function vs(ye,Ue){return ye==null?t:ye[Ue]}function Ys(ye){return ti.test(ye)}function of(ye){return ri.test(ye)}function sc(ye){for(var Ue,Ne=[];!(Ue=ye.next()).done;)Ne.push(Ue.value);return Ne}function ac(ye){var Ue=-1,Ne=Array(ye.size);return ye.forEach(function(Nt,or){Ne[++Ue]=[or,Nt]}),Ne}function su(ye,Ue){return function(Ne){return ye(Ue(Ne))}}function wo(ye,Ue){for(var Ne=-1,Nt=ye.length,or=0,Pr=[];++Ne<Nt;){var bn=ye[Ne];(bn===Ue||bn===R)&&(ye[Ne]=R,Pr[or++]=Ne)}return Pr}function Ra(ye){var Ue=-1,Ne=Array(ye.size);return ye.forEach(function(Nt){Ne[++Ue]=Nt}),Ne}function sf(ye){var Ue=-1,Ne=Array(ye.size);return ye.forEach(function(Nt){Ne[++Ue]=[Nt,Nt]}),Ne}function af(ye,Ue,Ne){for(var Nt=Ne-1,or=ye.length;++Nt<or;)if(ye[Nt]===Ue)return Nt;return-1}function lf(ye,Ue,Ne){for(var Nt=Ne+1;Nt--;)if(ye[Nt]===Ue)return Nt;return Nt}function Xs(ye){return Ys(ye)?vl(ye):hl(ye)}function fn(ye){return Ys(ye)?ki(ye):pl(ye)}function au(ye){for(var Ue=ye.length;Ue--&&Lt.test(ye.charAt(Ue)););return Ue}var lu=P(ae);function vl(ye){for(var Ue=Rn.lastIndex=0;Rn.test(ye);)++Ue;return Ue}function ki(ye){return ye.match(Rn)||[]}function cu(ye){return ye.match(_o)||[]}var yl=function ye(Ue){Ue=Ue==null?dr:Ao.defaults(dr.Object(),Ue,Ao.pick(dr,$i));var Ne=Ue.Array,Nt=Ue.Date,or=Ue.Error,Pr=Ue.Function,bn=Ue.Math,Wr=Ue.Object,Js=Ue.RegExp,uu=Ue.String,Bi=Ue.TypeError,bl=Ne.prototype,cf=Pr.prototype,Uo=Wr.prototype,en=Ue["__core-js_shared__"],Wo=cf.toString,zr=Uo.hasOwnProperty,lc=0,ln=function(){var o=/[^.]+$/.exec(en&&en.keys&&en.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}(),To=Uo.toString,cc=Wo.call(Wr),uc=dr._,fc=Js("^"+Wo.call(zr).replace(Qe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Qs=In?Ue.Buffer:t,Eo=Ue.Symbol,Ia=Ue.Uint8Array,La=Qs?Qs.allocUnsafe:t,ys=su(Wr.getPrototypeOf,Wr),ea=Wr.create,_l=Uo.propertyIsEnumerable,ko=bl.splice,xl=Eo?Eo.isConcatSpreadable:t,Vi=Eo?Eo.iterator:t,Ro=Eo?Eo.toStringTag:t,Vo=function(){try{var o=Hc(Wr,"defineProperty");return o({},"",{}),o}catch{}}(),uf=Ue.clearTimeout!==dr.clearTimeout&&Ue.clearTimeout,Ma=Nt&&Nt.now!==dr.Date.now&&Nt.now,fu=Ue.setTimeout!==dr.setTimeout&&Ue.setTimeout,ta=bn.ceil,bs=bn.floor,ra=Wr.getOwnPropertySymbols,Sl=Qs?Qs.isBuffer:t,na=Ue.isFinite,Da=bl.join,du=su(Wr.keys,Wr),cn=bn.max,Ln=bn.min,Go=Nt.now,dc=Ue.parseInt,Zo=bn.random,Cl=bl.reverse,io=Hc(Ue,"DataView"),Ko=Hc(Ue,"Map"),ia=Hc(Ue,"Promise"),oo=Hc(Ue,"Set"),Io=Hc(Ue,"WeakMap"),oa=Hc(Wr,"create"),Oa=Io&&new Io,_s={},Yo=qc(io),hc=qc(Ko),ff=qc(ia),hu=qc(oo),sa=qc(Io),Xo=Eo?Eo.prototype:t,xs=Xo?Xo.valueOf:t,Pa=Xo?Xo.toString:t;function U(o){if(Nn(o)&&!_r(o)&&!(o instanceof br)){if(o instanceof ii)return o;if(zr.call(o,"__wrapped__"))return sv(o)}return new ii(o)}var Lo=function(){function o(){}return function(a){if(!Mn(a))return{};if(ea)return ea(a);o.prototype=a;var p=new o;return o.prototype=t,p}}();function Mo(){}function ii(o,a){this.__wrapped__=o,this.__actions__=[],this.__chain__=!!a,this.__index__=0,this.__values__=t}U.templateSettings={escape:Mt,evaluate:Qt,interpolate:rr,variable:"",imports:{_:U}},U.prototype=Mo.prototype,U.prototype.constructor=U,ii.prototype=Lo(Mo.prototype),ii.prototype.constructor=ii;function br(o){this.__wrapped__=o,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=oe,this.__views__=[]}function wl(){var o=new br(this.__wrapped__);return o.__actions__=si(this.__actions__),o.__dir__=this.__dir__,o.__filtered__=this.__filtered__,o.__iteratees__=si(this.__iteratees__),o.__takeCount__=this.__takeCount__,o.__views__=si(this.__views__),o}function Na(){if(this.__filtered__){var o=new br(this);o.__dir__=-1,o.__filtered__=!0}else o=this.clone(),o.__dir__*=-1;return o}function Al(){var o=this.__wrapped__.value(),a=this.__dir__,p=_r(o),k=a<0,B=p?o.length:0,Z=kS(0,B,this.__views__),se=Z.start,fe=Z.end,xe=fe-se,rt=k?fe:se-1,nt=this.__iteratees__,ut=nt.length,Ft=0,Xt=Ln(xe,this.__takeCount__);if(!p||!k&&B==xe&&Xt==xe)return oi(o,this.__actions__);var cr=[];e:for(;xe--&&Ft<Xt;){rt+=a;for(var Ir=-1,ur=o[rt];++Ir<ut;){var Fr=nt[Ir],qr=Fr.iteratee,jo=Fr.type,Qi=qr(ur);if(jo==he)ur=Qi;else if(!Qi){if(jo==Q)continue e;break e}}cr[Ft++]=ur}return cr}br.prototype=Lo(Mo.prototype),br.prototype.constructor=br;function so(o){var a=-1,p=o==null?0:o.length;for(this.clear();++a<p;){var k=o[a];this.set(k[0],k[1])}}function pc(){this.__data__=oa?oa(null):{},this.size=0}function pu(o){var a=this.has(o)&&delete this.__data__[o];return this.size-=a?1:0,a}function gu(o){var a=this.__data__;if(oa){var p=a[o];return p===g?t:p}return zr.call(a,o)?a[o]:t}function mu(o){var a=this.__data__;return oa?a[o]!==t:zr.call(a,o)}function df(o,a){var p=this.__data__;return this.size+=this.has(o)?0:1,p[o]=oa&&a===t?g:a,this}so.prototype.clear=pc,so.prototype.delete=pu,so.prototype.get=gu,so.prototype.has=mu,so.prototype.set=df;function ao(o){var a=-1,p=o==null?0:o.length;for(this.clear();++a<p;){var k=o[a];this.set(k[0],k[1])}}function hf(){this.__data__=[],this.size=0}function pf(o){var a=this.__data__,p=Gi(a,o);if(p<0)return!1;var k=a.length-1;return p==k?a.pop():ko.call(a,p,1),--this.size,!0}function gc(o){var a=this.__data__,p=Gi(a,o);return p<0?t:a[p][1]}function Fa(o){return Gi(this.__data__,o)>-1}function gf(o,a){var p=this.__data__,k=Gi(p,o);return k<0?(++this.size,p.push([o,a])):p[k][1]=a,this}ao.prototype.clear=hf,ao.prototype.delete=pf,ao.prototype.get=gc,ao.prototype.has=Fa,ao.prototype.set=gf;function Do(o){var a=-1,p=o==null?0:o.length;for(this.clear();++a<p;){var k=o[a];this.set(k[0],k[1])}}function mc(){this.size=0,this.__data__={hash:new so,map:new(Ko||ao),string:new so}}function Tl(o){var a=hd(this,o).delete(o);return this.size-=a?1:0,a}function mf(o){return hd(this,o).get(o)}function vf(o){return hd(this,o).has(o)}function yf(o,a){var p=hd(this,o),k=p.size;return p.set(o,a),this.size+=p.size==k?0:1,this}Do.prototype.clear=mc,Do.prototype.delete=Tl,Do.prototype.get=mf,Do.prototype.has=vf,Do.prototype.set=yf;function ui(o){var a=-1,p=o==null?0:o.length;for(this.__data__=new Do;++a<p;)this.add(o[a])}function vc(o){return this.__data__.set(o,g),this}function El(o){return this.__data__.has(o)}ui.prototype.add=ui.prototype.push=vc,ui.prototype.has=El;function Rr(o){var a=this.__data__=new ao(o);this.size=a.size}function Ri(){this.__data__=new ao,this.size=0}function aa(o){var a=this.__data__,p=a.delete(o);return this.size=a.size,p}function Ss(o){return this.__data__.get(o)}function Nr(o){return this.__data__.has(o)}function Jo(o,a){var p=this.__data__;if(p instanceof ao){var k=p.__data__;if(!Ko||k.length<i-1)return k.push([o,a]),this.size=++p.size,this;p=this.__data__=new Do(k)}return p.set(o,a),this.size=p.size,this}Rr.prototype.clear=Ri,Rr.prototype.delete=aa,Rr.prototype.get=Ss,Rr.prototype.has=Nr,Rr.prototype.set=Jo;function ja(o,a){var p=_r(o),k=!p&&zc(o),B=!p&&!k&&Wl(o),Z=!p&&!k&&!B&&Iu(o),se=p||k||B||Z,fe=se?Te(o.length,uu):[],xe=fe.length;for(var rt in o)(a||zr.call(o,rt))&&!(se&&(rt=="length"||B&&(rt=="offset"||rt=="parent")||Z&&(rt=="buffer"||rt=="byteLength"||rt=="byteOffset")||Ya(rt,xe)))&&fe.push(rt);return fe}function mi(o){var a=o.length;return a?o[Rs(0,a-1)]:t}function Ii(o,a){return pd(si(o),ws(a,0,o.length))}function lo(o){return pd(si(o))}function yc(o,a,p){(p!==t&&!Ls(o[a],p)||p===t&&!(a in o))&&Li(o,a,p)}function fi(o,a,p){var k=o[a];(!(zr.call(o,a)&&Ls(k,p))||p===t&&!(a in o))&&Li(o,a,p)}function Gi(o,a){for(var p=o.length;p--;)if(Ls(o[p][0],a))return p;return-1}function Cs(o,a,p,k){return Qo(o,function(B,Z,se){a(k,B,p(B),se)}),k}function vu(o,a){return o&&Xi(a,vi(a),o)}function bc(o,a){return o&&Xi(a,mo(a),o)}function Li(o,a,p){a=="__proto__"&&Vo?Vo(o,a,{configurable:!0,enumerable:!0,value:p,writable:!0}):o[a]=p}function _c(o,a){for(var p=-1,k=a.length,B=Ne(k),Z=o==null;++p<k;)B[p]=Z?t:qh(o,a[p]);return B}function ws(o,a,p){return o===o&&(p!==t&&(o=o<=p?o:p),a!==t&&(o=o>=a?o:a)),o}function di(o,a,p,k,B,Z){var se,fe=a&w,xe=a&b,rt=a&S;if(p&&(se=B?p(o,k,B,Z):p(o)),se!==t)return se;if(!Mn(o))return o;var nt=_r(o);if(nt){if(se=IS(o),!fe)return si(o,se)}else{var ut=Hi(o),Ft=ut==_e||ut==Ge;if(Wl(o))return ga(o,fe);if(ut==Le||ut==we||Ft&&!B){if(se=xe||Ft?{}:Xm(o),!fe)return xe?ku(o,bc(se,o)):Sf(o,vu(se,o))}else{if(!Mr[ut])return B?o:{};se=LS(o,ut,fe)}}Z||(Z=new Rr);var Xt=Z.get(o);if(Xt)return Xt;Z.set(o,se),Tv(o)?o.forEach(function(ur){se.add(di(ur,a,p,ur,o,Z))}):wv(o)&&o.forEach(function(ur,Fr){se.set(Fr,di(ur,a,p,Fr,o,Z))});var cr=rt?xe?Eh:Th:xe?mo:vi,Ir=nt?t:cr(o);return zn(Ir||o,function(ur,Fr){Ir&&(Fr=ur,ur=o[Fr]),fi(se,Fr,di(ur,a,p,Fr,o,Z))}),se}function xc(o){var a=vi(o);return function(p){return Sc(p,o,a)}}function Sc(o,a,p){var k=p.length;if(o==null)return!k;for(o=Wr(o);k--;){var B=p[k],Z=a[B],se=o[B];if(se===t&&!(B in o)||!Z(se))return!1}return!0}function Cc(o,a,p){if(typeof o!="function")throw new Bi(u);return Af(function(){o.apply(t,p)},a)}function As(o,a,p,k){var B=-1,Z=So,se=!0,fe=o.length,xe=[],rt=a.length;if(!fe)return xe;p&&(a=Kr(a,Wt(p))),k?(Z=$n,se=!1):a.length>=i&&(Z=ar,se=!1,a=new ui(a));e:for(;++B<fe;){var nt=o[B],ut=p==null?nt:p(nt);if(nt=k||nt!==0?nt:0,se&&ut===ut){for(var Ft=rt;Ft--;)if(a[Ft]===ut)continue e;xe.push(nt)}else Z(a,ut,k)||xe.push(nt)}return xe}var Qo=s(Mi),wc=s(Rl,!0);function yu(o,a){var p=!0;return Qo(o,function(k,B,Z){return p=!!a(k,B,Z),p}),p}function kl(o,a,p){for(var k=-1,B=o.length;++k<B;){var Z=o[k],se=a(Z);if(se!=null&&(fe===t?se===se&&!Fo(se):p(se,fe)))var fe=se,xe=Z}return xe}function bf(o,a,p,k){var B=o.length;for(p=Tr(p),p<0&&(p=-p>B?0:B+p),k=k===t||k>B?B:Tr(k),k<0&&(k+=B),k=p>k?0:kv(k);p<k;)o[p++]=a;return o}function bu(o,a){var p=[];return Qo(o,function(k,B,Z){a(k,B,Z)&&p.push(k)}),p}function Un(o,a,p,k,B){var Z=-1,se=o.length;for(p||(p=DS),B||(B=[]);++Z<se;){var fe=o[Z];a>0&&p(fe)?a>1?Un(fe,a-1,p,k,B):Ai(B,fe):k||(B[B.length]=fe)}return B}var Ac=c(),_u=c(!0);function Mi(o,a){return o&&Ac(o,a,vi)}function Rl(o,a){return o&&_u(o,a,vi)}function la(o,a){return Wi(a,function(p){return Xa(o[p])})}function es(o,a){a=No(a,o);for(var p=0,k=a.length;o!=null&&p<k;)o=o[ma(a[p++])];return p&&p==k?o:t}function Ba(o,a,p){var k=a(o);return _r(o)?k:Ai(k,p(o))}function Pn(o){return o==null?o===t?St:ht:Ro&&Ro in Wr(o)?ES(o):HS(o)}function Ts(o,a){return o>a}function Il(o,a){return o!=null&&zr.call(o,a)}function ca(o,a){return o!=null&&a in Wr(o)}function Ll(o,a,p){return o>=Ln(a,p)&&o<cn(a,p)}function ua(o,a,p){for(var k=p?$n:So,B=o[0].length,Z=o.length,se=Z,fe=Ne(Z),xe=1/0,rt=[];se--;){var nt=o[se];se&&a&&(nt=Kr(nt,Wt(a))),xe=Ln(nt.length,xe),fe[se]=!p&&(a||B>=120&&nt.length>=120)?new ui(se&&nt):t}nt=o[0];var ut=-1,Ft=fe[0];e:for(;++ut<B&&rt.length<xe;){var Xt=nt[ut],cr=a?a(Xt):Xt;if(Xt=p||Xt!==0?Xt:0,!(Ft?ar(Ft,cr):k(rt,cr,p))){for(se=Z;--se;){var Ir=fe[se];if(!(Ir?ar(Ir,cr):k(o[se],cr,p)))continue e}Ft&&Ft.push(cr),rt.push(Xt)}}return rt}function Ml(o,a,p,k){return Mi(o,function(B,Z,se){a(k,p(B),Z,se)}),k}function co(o,a,p){a=No(a,o),o=tv(o,a);var k=o==null?o:o[ma(ss(a))];return k==null?t:an(k,o,p)}function Dl(o){return Nn(o)&&Pn(o)==we}function Es(o){return Nn(o)&&Pn(o)==Et}function xu(o){return Nn(o)&&Pn(o)==We}function Ha(o,a,p,k,B){return o===a?!0:o==null||a==null||!Nn(o)&&!Nn(a)?o!==o&&a!==a:fa(o,a,p,k,Ha,B)}function fa(o,a,p,k,B,Z){var se=_r(o),fe=_r(a),xe=se?Pe:Hi(o),rt=fe?Pe:Hi(a);xe=xe==we?Le:xe,rt=rt==we?Le:rt;var nt=xe==Le,ut=rt==Le,Ft=xe==rt;if(Ft&&Wl(o)){if(!Wl(a))return!1;se=!0,nt=!1}if(Ft&&!nt)return Z||(Z=new Rr),se||Iu(o)?Zm(o,a,p,k,B,Z):AS(o,a,xe,p,k,B,Z);if(!(p&_)){var Xt=nt&&zr.call(o,"__wrapped__"),cr=ut&&zr.call(a,"__wrapped__");if(Xt||cr){var Ir=Xt?o.value():o,ur=cr?a.value():a;return Z||(Z=new Rr),B(Ir,ur,p,k,Z)}}return Ft?(Z||(Z=new Rr),TS(o,a,p,k,B,Z)):!1}function da(o){return Nn(o)&&Hi(o)==lt}function Tc(o,a,p,k){var B=p.length,Z=B,se=!k;if(o==null)return!Z;for(o=Wr(o);B--;){var fe=p[B];if(se&&fe[2]?fe[1]!==o[fe[0]]:!(fe[0]in o))return!1}for(;++B<Z;){fe=p[B];var xe=fe[0],rt=o[xe],nt=fe[1];if(se&&fe[2]){if(rt===t&&!(xe in o))return!1}else{var ut=new Rr;if(k)var Ft=k(rt,nt,xe,o,a,ut);if(!(Ft===t?Ha(nt,rt,_|D,k,ut):Ft))return!1}}return!0}function Su(o){if(!Mn(o)||PS(o))return!1;var a=Xa(o)?fc:ir;return a.test(qc(o))}function ks(o){return Nn(o)&&Pn(o)==Ct}function Ol(o){return Nn(o)&&Hi(o)==_t}function Oo(o){return Nn(o)&&_d(o.length)&&!!wr[Pn(o)]}function Pl(o){return typeof o=="function"?o:o==null?vo:typeof o=="object"?_r(o)?za(o[0],o[1]):uo(o):Bv(o)}function Po(o){if(!wf(o))return du(o);var a=[];for(var p in Wr(o))zr.call(o,p)&&p!="constructor"&&a.push(p);return a}function qa(o){if(!Mn(o))return BS(o);var a=wf(o),p=[];for(var k in o)k=="constructor"&&(a||!zr.call(o,k))||p.push(k);return p}function Zi(o,a){return o<a}function Ki(o,a){var p=-1,k=go(o)?Ne(o.length):[];return Qo(o,function(B,Z,se){k[++p]=a(B,Z,se)}),k}function uo(o){var a=Rh(o);return a.length==1&&a[0][2]?Qm(a[0][0],a[0][1]):function(p){return p===o||Tc(p,o,a)}}function za(o,a){return Lh(o)&&Jm(a)?Qm(ma(o),a):function(p){var k=qh(p,o);return k===t&&k===a?zh(p,o):Ha(a,k,_|D)}}function ts(o,a,p,k,B){o!==a&&Ac(a,function(Z,se){if(B||(B=new Rr),Mn(Z))Yi(o,a,se,p,ts,k,B);else{var fe=k?k(Dh(o,se),Z,se+"",o,a,B):t;fe===t&&(fe=Z),yc(o,se,fe)}},mo)}function Yi(o,a,p,k,B,Z,se){var fe=Dh(o,p),xe=Dh(a,p),rt=se.get(xe);if(rt){yc(o,p,rt);return}var nt=Z?Z(fe,xe,p+"",o,a,se):t,ut=nt===t;if(ut){var Ft=_r(xe),Xt=!Ft&&Wl(xe),cr=!Ft&&!Xt&&Iu(xe);nt=xe,Ft||Xt||cr?_r(fe)?nt=fe:Vn(fe)?nt=si(fe):Xt?(ut=!1,nt=ga(xe,!0)):cr?(ut=!1,nt=jc(xe,!0)):nt=[]:Tf(xe)||zc(xe)?(nt=fe,zc(fe)?nt=Rv(fe):(!Mn(fe)||Xa(fe))&&(nt=Xm(xe))):ut=!1}ut&&(se.set(xe,nt),B(nt,xe,k,Z,se),se.delete(xe)),yc(o,p,nt)}function ha(o,a){var p=o.length;if(p)return a+=a<0?p:0,Ya(a,p)?o[a]:t}function Nl(o,a,p){a.length?a=Kr(a,function(Z){return _r(Z)?function(se){return es(se,Z.length===1?Z[0]:Z)}:Z}):a=[vo];var k=-1;a=Kr(a,Wt(lr()));var B=Ki(o,function(Z,se,fe){var xe=Kr(a,function(rt){return rt(Z)});return{criteria:xe,index:++k,value:Z}});return te(B,function(Z,se){return Tu(Z,se,p)})}function $a(o,a){return pa(o,a,function(p,k){return zh(o,k)})}function pa(o,a,p){for(var k=-1,B=a.length,Z={};++k<B;){var se=a[k],fe=es(o,se);p(fe,se)&&Is(Z,No(se,o),fe)}return Z}function Cu(o){return function(a){return es(a,o)}}function Ec(o,a,p,k){var B=k?gl:Co,Z=-1,se=a.length,fe=o;for(o===a&&(a=si(a)),p&&(fe=Kr(o,Wt(p)));++Z<se;)for(var xe=0,rt=a[Z],nt=p?p(rt):rt;(xe=B(fe,nt,xe,k))>-1;)fe!==o&&ko.call(fe,xe,1),ko.call(o,xe,1);return o}function kc(o,a){for(var p=o?a.length:0,k=p-1;p--;){var B=a[p];if(p==k||B!==Z){var Z=B;Ya(B)?ko.call(o,B,1):Dc(o,B)}}return o}function Rs(o,a){return o+bs(Zo()*(a-o+1))}function Rc(o,a,p,k){for(var B=-1,Z=cn(ta((a-o)/(p||1)),0),se=Ne(Z);Z--;)se[k?Z:++B]=o,o+=p;return se}function Fl(o,a){var p="";if(!o||a<1||a>ce)return p;do a%2&&(p+=o),a=bs(a/2),a&&(o+=o);while(a);return p}function gr(o,a){return Oh(ev(o,a,vo),o+"")}function Ua(o){return mi(Lu(o))}function Ic(o,a){var p=Lu(o);return pd(p,ws(a,0,p.length))}function Is(o,a,p,k){if(!Mn(o))return o;a=No(a,o);for(var B=-1,Z=a.length,se=Z-1,fe=o;fe!=null&&++B<Z;){var xe=ma(a[B]),rt=p;if(xe==="__proto__"||xe==="constructor"||xe==="prototype")return o;if(B!=se){var nt=fe[xe];rt=k?k(nt,xe,fe):t,rt===t&&(rt=Mn(nt)?nt:Ya(a[B+1])?[]:{})}fi(fe,xe,rt),fe=fe[xe]}return o}var Lc=Oa?function(o,a){return Oa.set(o,a),o}:vo,wu=Vo?function(o,a){return Vo(o,"toString",{configurable:!0,enumerable:!1,value:Uh(a),writable:!0})}:vo;function Mc(o){return pd(Lu(o))}function Di(o,a,p){var k=-1,B=o.length;a<0&&(a=-a>B?0:B+a),p=p>B?B:p,p<0&&(p+=B),B=a>p?0:p-a>>>0,a>>>=0;for(var Z=Ne(B);++k<B;)Z[k]=o[k+a];return Z}function _f(o,a){var p;return Qo(o,function(k,B,Z){return p=a(k,B,Z),!p}),!!p}function jl(o,a,p){var k=0,B=o==null?k:o.length;if(typeof a=="number"&&a===a&&B<=Oe){for(;k<B;){var Z=k+B>>>1,se=o[Z];se!==null&&!Fo(se)&&(p?se<=a:se<a)?k=Z+1:B=Z}return B}return Bl(o,a,vo,p)}function Bl(o,a,p,k){var B=0,Z=o==null?0:o.length;if(Z===0)return 0;a=p(a);for(var se=a!==a,fe=a===null,xe=Fo(a),rt=a===t;B<Z;){var nt=bs((B+Z)/2),ut=p(o[nt]),Ft=ut!==t,Xt=ut===null,cr=ut===ut,Ir=Fo(ut);if(se)var ur=k||cr;else rt?ur=cr&&(k||Ft):fe?ur=cr&&Ft&&(k||!Xt):xe?ur=cr&&Ft&&!Xt&&(k||!Ir):Xt||Ir?ur=!1:ur=k?ut<=a:ut<a;ur?B=nt+1:Z=nt}return Ln(Z,ve)}function Au(o,a){for(var p=-1,k=o.length,B=0,Z=[];++p<k;){var se=o[p],fe=a?a(se):se;if(!p||!Ls(fe,xe)){var xe=fe;Z[B++]=se===0?0:se}}return Z}function Hl(o){return typeof o=="number"?o:Fo(o)?le:+o}function Oi(o){if(typeof o=="string")return o;if(_r(o))return Kr(o,Oi)+"";if(Fo(o))return Pa?Pa.call(o):"";var a=o+"";return a=="0"&&1/o==-1/0?"-0":a}function Tn(o,a,p){var k=-1,B=So,Z=o.length,se=!0,fe=[],xe=fe;if(p)se=!1,B=$n;else if(Z>=i){var rt=a?null:Cf(o);if(rt)return Ra(rt);se=!1,B=ar,xe=new ui}else xe=a?[]:fe;e:for(;++k<Z;){var nt=o[k],ut=a?a(nt):nt;if(nt=p||nt!==0?nt:0,se&&ut===ut){for(var Ft=xe.length;Ft--;)if(xe[Ft]===ut)continue e;a&&xe.push(ut),fe.push(nt)}else B(xe,ut,p)||(xe!==fe&&xe.push(ut),fe.push(nt))}return fe}function Dc(o,a){return a=No(a,o),o=tv(o,a),o==null||delete o[ma(ss(a))]}function Wa(o,a,p,k){return Is(o,a,p(es(o,a)),k)}function ql(o,a,p,k){for(var B=o.length,Z=k?B:-1;(k?Z--:++Z<B)&&a(o[Z],Z,o););return p?Di(o,k?0:Z,k?Z+1:B):Di(o,k?Z+1:0,k?B:Z)}function oi(o,a){var p=o;return p instanceof br&&(p=p.value()),Ea(a,function(k,B){return B.func.apply(B.thisArg,Ai([k],B.args))},p)}function Oc(o,a,p){var k=o.length;if(k<2)return k?Tn(o[0]):[];for(var B=-1,Z=Ne(k);++B<k;)for(var se=o[B],fe=-1;++fe<k;)fe!=B&&(Z[B]=As(Z[B]||se,o[fe],a,p));return Tn(Un(Z,1),a,p)}function Pc(o,a,p){for(var k=-1,B=o.length,Z=a.length,se={};++k<B;){var fe=k<Z?a[k]:t;p(se,o[k],fe)}return se}function zl(o){return Vn(o)?o:[]}function rs(o){return typeof o=="function"?o:vo}function No(o,a){return _r(o)?o:Lh(o,a)?[o]:ov(tn(o))}var xf=gr;function fo(o,a,p){var k=o.length;return p=p===t?k:p,!a&&p>=k?o:Di(o,a,p)}var ns=uf||function(o){return dr.clearTimeout(o)};function ga(o,a){if(a)return o.slice();var p=o.length,k=La?La(p):new o.constructor(p);return o.copy(k),k}function Nc(o){var a=new o.constructor(o.byteLength);return new Ia(a).set(new Ia(o)),a}function Fc(o,a){var p=a?Nc(o.buffer):o.buffer;return new o.constructor(p,o.byteOffset,o.byteLength)}function Va(o){var a=new o.constructor(o.source,kt.exec(o));return a.lastIndex=o.lastIndex,a}function $l(o){return xs?Wr(xs.call(o)):{}}function jc(o,a){var p=a?Nc(o.buffer):o.buffer;return new o.constructor(p,o.byteOffset,o.length)}function Ga(o,a){if(o!==a){var p=o!==t,k=o===null,B=o===o,Z=Fo(o),se=a!==t,fe=a===null,xe=a===a,rt=Fo(a);if(!fe&&!rt&&!Z&&o>a||Z&&se&&xe&&!fe&&!rt||k&&se&&xe||!p&&xe||!B)return 1;if(!k&&!Z&&!rt&&o<a||rt&&p&&B&&!k&&!Z||fe&&p&&B||!se&&B||!xe)return-1}return 0}function Tu(o,a,p){for(var k=-1,B=o.criteria,Z=a.criteria,se=B.length,fe=p.length;++k<se;){var xe=Ga(B[k],Z[k]);if(xe){if(k>=fe)return xe;var rt=p[k];return xe*(rt=="desc"?-1:1)}}return o.index-a.index}function Eu(o,a,p,k){for(var B=-1,Z=o.length,se=p.length,fe=-1,xe=a.length,rt=cn(Z-se,0),nt=Ne(xe+rt),ut=!k;++fe<xe;)nt[fe]=a[fe];for(;++B<se;)(ut||B<Z)&&(nt[p[B]]=o[B]);for(;rt--;)nt[fe++]=o[B++];return nt}function Bc(o,a,p,k){for(var B=-1,Z=o.length,se=-1,fe=p.length,xe=-1,rt=a.length,nt=cn(Z-fe,0),ut=Ne(nt+rt),Ft=!k;++B<nt;)ut[B]=o[B];for(var Xt=B;++xe<rt;)ut[Xt+xe]=a[xe];for(;++se<fe;)(Ft||B<Z)&&(ut[Xt+p[se]]=o[B++]);return ut}function si(o,a){var p=-1,k=o.length;for(a||(a=Ne(k));++p<k;)a[p]=o[p];return a}function Xi(o,a,p,k){var B=!p;p||(p={});for(var Z=-1,se=a.length;++Z<se;){var fe=a[Z],xe=k?k(p[fe],o[fe],fe,p,o):t;xe===t&&(xe=o[fe]),B?Li(p,fe,xe):fi(p,fe,xe)}return p}function Sf(o,a){return Xi(o,Ih(o),a)}function ku(o,a){return Xi(o,Km(o),a)}function Ul(o,a){return function(p,k){var B=_r(p)?ps:Cs,Z=a?a():{};return B(p,o,lr(k,2),Z)}}function d(o){return gr(function(a,p){var k=-1,B=p.length,Z=B>1?p[B-1]:t,se=B>2?p[2]:t;for(Z=o.length>3&&typeof Z=="function"?(B--,Z):t,se&&Ji(p[0],p[1],se)&&(Z=B<3?t:Z,B=1),a=Wr(a);++k<B;){var fe=p[k];fe&&o(a,fe,k,Z)}return a})}function s(o,a){return function(p,k){if(p==null)return p;if(!go(p))return o(p,k);for(var B=p.length,Z=a?B:-1,se=Wr(p);(a?Z--:++Z<B)&&k(se[Z],Z,se)!==!1;);return p}}function c(o){return function(a,p,k){for(var B=-1,Z=Wr(a),se=k(a),fe=se.length;fe--;){var xe=se[o?fe:++B];if(p(Z[xe],xe,Z)===!1)break}return a}}function h(o,a,p){var k=a&E,B=F(o);function Z(){var se=this&&this!==dr&&this instanceof Z?B:o;return se.apply(k?p:this,arguments)}return Z}function y(o){return function(a){a=tn(a);var p=Ys(a)?fn(a):t,k=p?p[0]:a.charAt(0),B=p?fo(p,1).join(""):a.slice(1);return k[o]()+B}}function M(o){return function(a){return Ea(Fv(Nv(a).replace(ro,"")),o,"")}}function F(o){return function(){var a=arguments;switch(a.length){case 0:return new o;case 1:return new o(a[0]);case 2:return new o(a[0],a[1]);case 3:return new o(a[0],a[1],a[2]);case 4:return new o(a[0],a[1],a[2],a[3]);case 5:return new o(a[0],a[1],a[2],a[3],a[4]);case 6:return new o(a[0],a[1],a[2],a[3],a[4],a[5]);case 7:return new o(a[0],a[1],a[2],a[3],a[4],a[5],a[6])}var p=Lo(o.prototype),k=o.apply(p,a);return Mn(k)?k:p}}function W(o,a,p){var k=F(o);function B(){for(var Z=arguments.length,se=Ne(Z),fe=Z,xe=Ru(B);fe--;)se[fe]=arguments[fe];var rt=Z<3&&se[0]!==xe&&se[Z-1]!==xe?[]:wo(se,xe);if(Z-=rt.length,Z<p)return po(o,a,Ye,B.placeholder,t,se,rt,t,t,p-Z);var nt=this&&this!==dr&&this instanceof B?k:o;return an(nt,this,se)}return B}function ie(o){return function(a,p,k){var B=Wr(a);if(!go(a)){var Z=lr(p,3);a=vi(a),p=function(fe){return Z(B[fe],fe,B)}}var se=o(a,p,k);return se>-1?B[Z?a[se]:se]:t}}function Ce(o){return Ka(function(a){var p=a.length,k=p,B=ii.prototype.thru;for(o&&a.reverse();k--;){var Z=a[k];if(typeof Z!="function")throw new Bi(u);if(B&&!se&&dd(Z)=="wrapper")var se=new ii([],!0)}for(k=se?k:p;++k<p;){Z=a[k];var fe=dd(Z),xe=fe=="wrapper"?kh(Z):t;xe&&Mh(xe[0])&&xe[1]==(K|O|q|ue)&&!xe[4].length&&xe[9]==1?se=se[dd(xe[0])].apply(se,xe[3]):se=Z.length==1&&Mh(Z)?se[fe]():se.thru(Z)}return function(){var rt=arguments,nt=rt[0];if(se&&rt.length==1&&_r(nt))return se.plant(nt).value();for(var ut=0,Ft=p?a[ut].apply(this,rt):nt;++ut<p;)Ft=a[ut].call(this,Ft);return Ft}})}function Ye(o,a,p,k,B,Z,se,fe,xe,rt){var nt=a&K,ut=a&E,Ft=a&x,Xt=a&(O|H),cr=a&X,Ir=Ft?t:F(o);function ur(){for(var Fr=arguments.length,qr=Ne(Fr),jo=Fr;jo--;)qr[jo]=arguments[jo];if(Xt)var Qi=Ru(ur),Bo=Ti(qr,Qi);if(k&&(qr=Eu(qr,k,B,Xt)),Z&&(qr=Bc(qr,Z,se,Xt)),Fr-=Bo,Xt&&Fr<rt){var Gn=wo(qr,Qi);return po(o,a,Ye,ur.placeholder,p,qr,Gn,fe,xe,rt-Fr)}var Ms=ut?p:this,Qa=Ft?Ms[o]:o;return Fr=qr.length,fe?qr=qS(qr,fe):cr&&Fr>1&&qr.reverse(),nt&&xe<Fr&&(qr.length=xe),this&&this!==dr&&this instanceof ur&&(Qa=Ir||F(Qa)),Qa.apply(Ms,qr)}return ur}function at(o,a){return function(p,k){return Ml(p,o,a(k),{})}}function It(o,a){return function(p,k){var B;if(p===t&&k===t)return a;if(p!==t&&(B=p),k!==t){if(B===t)return k;typeof p=="string"||typeof k=="string"?(p=Oi(p),k=Oi(k)):(p=Hl(p),k=Hl(k)),B=o(p,k)}return B}}function tr(o){return Ka(function(a){return a=Kr(a,Wt(lr())),gr(function(p){var k=this;return o(a,function(B){return an(B,k,p)})})})}function Dr(o,a){a=a===t?" ":Oi(a);var p=a.length;if(p<2)return p?Fl(a,o):a;var k=Fl(a,ta(o/Xs(a)));return Ys(a)?fo(fn(k),0,o).join(""):k.slice(0,o)}function Wn(o,a,p,k){var B=a&E,Z=F(o);function se(){for(var fe=-1,xe=arguments.length,rt=-1,nt=k.length,ut=Ne(nt+xe),Ft=this&&this!==dr&&this instanceof se?Z:o;++rt<nt;)ut[rt]=k[rt];for(;xe--;)ut[rt++]=arguments[++fe];return an(Ft,B?p:this,ut)}return se}function is(o){return function(a,p,k){return k&&typeof k!="number"&&Ji(a,p,k)&&(p=k=t),a=Ja(a),p===t?(p=a,a=0):p=Ja(p),k=k===t?a<p?1:-1:Ja(k),Rc(a,p,k,o)}}function ho(o){return function(a,p){return typeof a=="string"&&typeof p=="string"||(a=as(a),p=as(p)),o(a,p)}}function po(o,a,p,k,B,Z,se,fe,xe,rt){var nt=a&O,ut=nt?se:t,Ft=nt?t:se,Xt=nt?Z:t,cr=nt?t:Z;a|=nt?q:z,a&=~(nt?z:q),a&L||(a&=-4);var Ir=[o,a,B,Xt,ut,cr,Ft,fe,xe,rt],ur=p.apply(t,Ir);return Mh(o)&&rv(ur,Ir),ur.placeholder=k,nv(ur,o,a)}function os(o){var a=bn[o];return function(p,k){if(p=as(p),k=k==null?0:Ln(Tr(k),292),k&&na(p)){var B=(tn(p)+"e").split("e"),Z=a(B[0]+"e"+(+B[1]+k));return B=(tn(Z)+"e").split("e"),+(B[0]+"e"+(+B[1]-k))}return a(p)}}var Cf=oo&&1/Ra(new oo([,-0]))[1]==be?function(o){return new oo(o)}:Gh;function fd(o){return function(a){var p=Hi(a);return p==lt?ac(a):p==_t?sf(a):Ke(a,o(a))}}function Za(o,a,p,k,B,Z,se,fe){var xe=a&x;if(!xe&&typeof o!="function")throw new Bi(u);var rt=k?k.length:0;if(rt||(a&=-97,k=B=t),se=se===t?se:cn(Tr(se),0),fe=fe===t?fe:Tr(fe),rt-=B?B.length:0,a&z){var nt=k,ut=B;k=B=t}var Ft=xe?t:kh(o),Xt=[o,a,p,k,B,nt,ut,Z,se,fe];if(Ft&&jS(Xt,Ft),o=Xt[0],a=Xt[1],p=Xt[2],k=Xt[3],B=Xt[4],fe=Xt[9]=Xt[9]===t?xe?0:o.length:cn(Xt[9]-rt,0),!fe&&a&(O|H)&&(a&=-25),!a||a==E)var cr=h(o,a,p);else a==O||a==H?cr=W(o,a,fe):(a==q||a==(E|q))&&!B.length?cr=Wn(o,a,p,k):cr=Ye.apply(t,Xt);var Ir=Ft?Lc:rv;return nv(Ir(cr,Xt),o,a)}function Vm(o,a,p,k){return o===t||Ls(o,Uo[p])&&!zr.call(k,p)?a:o}function Gm(o,a,p,k,B,Z){return Mn(o)&&Mn(a)&&(Z.set(a,o),ts(o,a,t,Gm,Z),Z.delete(a)),o}function wS(o){return Tf(o)?t:o}function Zm(o,a,p,k,B,Z){var se=p&_,fe=o.length,xe=a.length;if(fe!=xe&&!(se&&xe>fe))return!1;var rt=Z.get(o),nt=Z.get(a);if(rt&&nt)return rt==a&&nt==o;var ut=-1,Ft=!0,Xt=p&D?new ui:t;for(Z.set(o,a),Z.set(a,o);++ut<fe;){var cr=o[ut],Ir=a[ut];if(k)var ur=se?k(Ir,cr,ut,a,o,Z):k(cr,Ir,ut,o,a,Z);if(ur!==t){if(ur)continue;Ft=!1;break}if(Xt){if(!$o(a,function(Fr,qr){if(!ar(Xt,qr)&&(cr===Fr||B(cr,Fr,p,k,Z)))return Xt.push(qr)})){Ft=!1;break}}else if(!(cr===Ir||B(cr,Ir,p,k,Z))){Ft=!1;break}}return Z.delete(o),Z.delete(a),Ft}function AS(o,a,p,k,B,Z,se){switch(p){case mt:if(o.byteLength!=a.byteLength||o.byteOffset!=a.byteOffset)return!1;o=o.buffer,a=a.buffer;case Et:return!(o.byteLength!=a.byteLength||!Z(new Ia(o),new Ia(a)));case ze:case We:case $e:return Ls(+o,+a);case Ae:return o.name==a.name&&o.message==a.message;case Ct:case wt:return o==a+"";case lt:var fe=ac;case _t:var xe=k&_;if(fe||(fe=Ra),o.size!=a.size&&!xe)return!1;var rt=se.get(o);if(rt)return rt==a;k|=D,se.set(o,a);var nt=Zm(fe(o),fe(a),k,B,Z,se);return se.delete(o),nt;case bt:if(xs)return xs.call(o)==xs.call(a)}return!1}function TS(o,a,p,k,B,Z){var se=p&_,fe=Th(o),xe=fe.length,rt=Th(a),nt=rt.length;if(xe!=nt&&!se)return!1;for(var ut=xe;ut--;){var Ft=fe[ut];if(!(se?Ft in a:zr.call(a,Ft)))return!1}var Xt=Z.get(o),cr=Z.get(a);if(Xt&&cr)return Xt==a&&cr==o;var Ir=!0;Z.set(o,a),Z.set(a,o);for(var ur=se;++ut<xe;){Ft=fe[ut];var Fr=o[Ft],qr=a[Ft];if(k)var jo=se?k(qr,Fr,Ft,a,o,Z):k(Fr,qr,Ft,o,a,Z);if(!(jo===t?Fr===qr||B(Fr,qr,p,k,Z):jo)){Ir=!1;break}ur||(ur=Ft=="constructor")}if(Ir&&!ur){var Qi=o.constructor,Bo=a.constructor;Qi!=Bo&&"constructor"in o&&"constructor"in a&&!(typeof Qi=="function"&&Qi instanceof Qi&&typeof Bo=="function"&&Bo instanceof Bo)&&(Ir=!1)}return Z.delete(o),Z.delete(a),Ir}function Ka(o){return Oh(ev(o,t,cv),o+"")}function Th(o){return Ba(o,vi,Ih)}function Eh(o){return Ba(o,mo,Km)}var kh=Oa?function(o){return Oa.get(o)}:Gh;function dd(o){for(var a=o.name+"",p=_s[a],k=zr.call(_s,a)?p.length:0;k--;){var B=p[k],Z=B.func;if(Z==null||Z==o)return B.name}return a}function Ru(o){var a=zr.call(U,"placeholder")?U:o;return a.placeholder}function lr(){var o=U.iteratee||Wh;return o=o===Wh?Pl:o,arguments.length?o(arguments[0],arguments[1]):o}function hd(o,a){var p=o.__data__;return OS(a)?p[typeof a=="string"?"string":"hash"]:p.map}function Rh(o){for(var a=vi(o),p=a.length;p--;){var k=a[p],B=o[k];a[p]=[k,B,Jm(B)]}return a}function Hc(o,a){var p=vs(o,a);return Su(p)?p:t}function ES(o){var a=zr.call(o,Ro),p=o[Ro];try{o[Ro]=t;var k=!0}catch{}var B=To.call(o);return k&&(a?o[Ro]=p:delete o[Ro]),B}var Ih=ra?function(o){return o==null?[]:(o=Wr(o),Wi(ra(o),function(a){return _l.call(o,a)}))}:Zh,Km=ra?function(o){for(var a=[];o;)Ai(a,Ih(o)),o=ys(o);return a}:Zh,Hi=Pn;(io&&Hi(new io(new ArrayBuffer(1)))!=mt||Ko&&Hi(new Ko)!=lt||ia&&Hi(ia.resolve())!=Xe||oo&&Hi(new oo)!=_t||Io&&Hi(new Io)!=Me)&&(Hi=function(o){var a=Pn(o),p=a==Le?o.constructor:t,k=p?qc(p):"";if(k)switch(k){case Yo:return mt;case hc:return lt;case ff:return Xe;case hu:return _t;case sa:return Me}return a});function kS(o,a,p){for(var k=-1,B=p.length;++k<B;){var Z=p[k],se=Z.size;switch(Z.type){case"drop":o+=se;break;case"dropRight":a-=se;break;case"take":a=Ln(a,o+se);break;case"takeRight":o=cn(o,a-se);break}}return{start:o,end:a}}function RS(o){var a=o.match(Y);return a?a[1].split(pe):[]}function Ym(o,a,p){a=No(a,o);for(var k=-1,B=a.length,Z=!1;++k<B;){var se=ma(a[k]);if(!(Z=o!=null&&p(o,se)))break;o=o[se]}return Z||++k!=B?Z:(B=o==null?0:o.length,!!B&&_d(B)&&Ya(se,B)&&(_r(o)||zc(o)))}function IS(o){var a=o.length,p=new o.constructor(a);return a&&typeof o[0]=="string"&&zr.call(o,"index")&&(p.index=o.index,p.input=o.input),p}function Xm(o){return typeof o.constructor=="function"&&!wf(o)?Lo(ys(o)):{}}function LS(o,a,p){var k=o.constructor;switch(a){case Et:return Nc(o);case ze:case We:return new k(+o);case mt:return Fc(o,p);case Dt:case Ze:case At:case jt:case mr:case kr:case Cr:case ge:case ne:return jc(o,p);case lt:return new k;case $e:case wt:return new k(o);case Ct:return Va(o);case _t:return new k;case bt:return $l(o)}}function MS(o,a){var p=a.length;if(!p)return o;var k=p-1;return a[k]=(p>1?"& ":"")+a[k],a=a.join(p>2?", ":" "),o.replace(vr,`{
|
33
|
+
*/var a4=Pf.exports,Uv;function l4(){return Uv||(Uv=1,function(r,e){(function(){var t,n="4.17.21",i=200,l="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",f="Invalid `variable` option passed into `_.template`",g="__lodash_hash_undefined__",m=500,R="__lodash_placeholder__",C=1,b=2,S=4,_=1,D=2,E=1,x=2,L=4,O=8,H=16,q=32,z=64,K=128,ue=256,X=512,de=30,j="...",re=800,J=16,Q=1,he=2,me=3,be=1/0,ce=9007199254740991,ke=17976931348623157e292,le=NaN,oe=4294967295,ve=oe-1,Oe=oe>>>1,et=[["ary",K],["bind",E],["bindKey",x],["curry",O],["curryRight",H],["flip",X],["partial",q],["partialRight",z],["rearg",ue]],we="[object Arguments]",Pe="[object Array]",je="[object AsyncFunction]",ze="[object Boolean]",We="[object Date]",De="[object DOMException]",Ae="[object Error]",_e="[object Function]",Ge="[object GeneratorFunction]",lt="[object Map]",$e="[object Number]",ht="[object Null]",Le="[object Object]",Xe="[object Promise]",it="[object Proxy]",Ct="[object RegExp]",_t="[object Set]",wt="[object String]",bt="[object Symbol]",St="[object Undefined]",Me="[object WeakMap]",pt="[object WeakSet]",Et="[object ArrayBuffer]",mt="[object DataView]",Dt="[object Float32Array]",Ze="[object Float64Array]",At="[object Int8Array]",jt="[object Int16Array]",mr="[object Int32Array]",kr="[object Uint8Array]",Cr="[object Uint8ClampedArray]",ge="[object Uint16Array]",ne="[object Uint32Array]",Je=/\b__p \+= '';/g,ct=/\b(__p \+=) '' \+/g,tt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Re=/&(?:amp|lt|gt|quot|#39);/g,xt=/[&<>"']/g,Rt=RegExp(Re.source),vt=RegExp(xt.source),Mt=/<%-([\s\S]+?)%>/g,Qt=/<%([\s\S]+?)%>/g,rr=/<%=([\s\S]+?)%>/g,Bt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,qt=/^\w*$/,sr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Qe=/[\\^$.*+?()[\]{}|]/g,Tt=RegExp(Qe.source),yt=/^\s+/,Lt=/\s/,vr=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Y=/\{\n\/\* \[wrapped with (.+)\] \*/,pe=/,? & /,Be=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ot=/[()=,{}\[\]\/\s]/,Ot=/\\(\\)?/g,$t=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,kt=/\w*$/,Ut=/^[-+]0x[0-9a-f]+$/i,nr=/^0b[01]+$/i,ir=/^\[object .+?Constructor\]$/,fr=/^0o[0-7]+$/i,Ur=/^(?:0|[1-9]\d*)$/,yr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Kn=/($^)/,Cn=/['\n\r\u2028\u2029\\]/g,Dn="\\ud800-\\udfff",Yr="\\u0300-\\u036f",Yn="\\ufe20-\\ufe2f",En="\\u20d0-\\u20ff",Xn=Yr+Yn+En,Jn="\\u2700-\\u27bf",on="a-z\\xdf-\\xf6\\xf8-\\xff",On="\\xac\\xb1\\xd7\\xf7",wn="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",hi="\\u2000-\\u206f",Si=" \\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",Ci="A-Z\\xc0-\\xd6\\xd8-\\xde",kn="\\ufe0e\\ufe0f",An=On+wn+hi+Si,un="['’]",Qn="["+Dn+"]",sn="["+An+"]",pn="["+Xn+"]",w="\\d+",N="["+Jn+"]",V="["+on+"]",ee="[^"+Dn+An+w+Jn+on+Ci+"]",Ee="\\ud83c[\\udffb-\\udfff]",Se="(?:"+pn+"|"+Ee+")",He="[^"+Dn+"]",st="(?:\\ud83c[\\udde6-\\uddff]){2}",Pt="[\\ud800-\\udbff][\\udc00-\\udfff]",zt="["+Ci+"]",Ht="\\u200d",xr="(?:"+V+"|"+ee+")",Zr="(?:"+zt+"|"+ee+")",vn="(?:"+un+"(?:d|ll|m|re|s|t|ve))?",yn="(?:"+un+"(?:D|LL|M|RE|S|T|VE))?",li=Se+"?",Bn="["+kn+"]?",wi="(?:"+Ht+"(?:"+[He,st,Pt].join("|")+")"+Bn+li+")*",Xr="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",pi="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Hn=Bn+li+wi,ei="(?:"+[N,st,Pt].join("|")+")"+Hn,bo="(?:"+[He+pn+"?",pn,st,Pt,Qn].join("|")+")",ro=RegExp(un,"g"),no=RegExp(pn,"g"),Rn=RegExp(Ee+"(?="+Ee+")|"+bo+Hn,"g"),_o=RegExp([zt+"?"+V+"+"+vn+"(?="+[sn,zt,"$"].join("|")+")",Zr+"+"+yn+"(?="+[sn,zt+xr,"$"].join("|")+")",zt+"?"+xr+"+"+vn,zt+"+"+yn,pi,Xr,w,ei].join("|"),"g"),ti=RegExp("["+Ht+Dn+Xn+kn+"]"),ri=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,$i=["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"],Or=-1,wr={};wr[Dt]=wr[Ze]=wr[At]=wr[jt]=wr[mr]=wr[kr]=wr[Cr]=wr[ge]=wr[ne]=!0,wr[we]=wr[Pe]=wr[Et]=wr[ze]=wr[mt]=wr[We]=wr[Ae]=wr[_e]=wr[lt]=wr[$e]=wr[Le]=wr[Ct]=wr[_t]=wr[wt]=wr[Me]=!1;var Mr={};Mr[we]=Mr[Pe]=Mr[Et]=Mr[mt]=Mr[ze]=Mr[We]=Mr[Dt]=Mr[Ze]=Mr[At]=Mr[jt]=Mr[mr]=Mr[lt]=Mr[$e]=Mr[Le]=Mr[Ct]=Mr[_t]=Mr[wt]=Mr[bt]=Mr[kr]=Mr[Cr]=Mr[ge]=Mr[ne]=!0,Mr[Ae]=Mr[_e]=Mr[Me]=!1;var I={À:"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"},G={"&":"&","<":"<",">":">",'"':""","'":"'"},ae={"&":"&","<":"<",">":">",""":'"',"'":"'"},qe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Yt=parseFloat,Vt=parseInt,pr=typeof bi=="object"&&bi&&bi.Object===Object&&bi,Sr=typeof self=="object"&&self&&self.Object===Object&&self,dr=pr||Sr||Function("return this")(),Ar=e&&!e.nodeType&&e,Jr=Ar&&!0&&r&&!r.nodeType&&r,In=Jr&&Jr.exports===Ar,Vr=In&&pr.process,Br=function(){try{var ye=Jr&&Jr.require&&Jr.require("util").types;return ye||Vr&&Vr.binding&&Vr.binding("util")}catch{}}(),Qr=Br&&Br.isArrayBuffer,ci=Br&&Br.isDate,gi=Br&&Br.isMap,qn=Br&&Br.isRegExp,xo=Br&&Br.isSet,Ui=Br&&Br.isTypedArray;function an(ye,Ue,Ne){switch(Ne.length){case 0:return ye.call(Ue);case 1:return ye.call(Ue,Ne[0]);case 2:return ye.call(Ue,Ne[0],Ne[1]);case 3:return ye.call(Ue,Ne[0],Ne[1],Ne[2])}return ye.apply(Ue,Ne)}function ps(ye,Ue,Ne,Nt){for(var or=-1,Pr=ye==null?0:ye.length;++or<Pr;){var bn=ye[or];Ue(Nt,bn,Ne(bn),ye)}return Nt}function zn(ye,Ue){for(var Ne=-1,Nt=ye==null?0:ye.length;++Ne<Nt&&Ue(ye[Ne],Ne,ye)!==!1;);return ye}function fl(ye,Ue){for(var Ne=ye==null?0:ye.length;Ne--&&Ue(ye[Ne],Ne,ye)!==!1;);return ye}function Ta(ye,Ue){for(var Ne=-1,Nt=ye==null?0:ye.length;++Ne<Nt;)if(!Ue(ye[Ne],Ne,ye))return!1;return!0}function Wi(ye,Ue){for(var Ne=-1,Nt=ye==null?0:ye.length,or=0,Pr=[];++Ne<Nt;){var bn=ye[Ne];Ue(bn,Ne,ye)&&(Pr[or++]=bn)}return Pr}function So(ye,Ue){var Ne=ye==null?0:ye.length;return!!Ne&&Co(ye,Ue,0)>-1}function $n(ye,Ue,Ne){for(var Nt=-1,or=ye==null?0:ye.length;++Nt<or;)if(Ne(Ue,ye[Nt]))return!0;return!1}function Kr(ye,Ue){for(var Ne=-1,Nt=ye==null?0:ye.length,or=Array(Nt);++Ne<Nt;)or[Ne]=Ue(ye[Ne],Ne,ye);return or}function Ai(ye,Ue){for(var Ne=-1,Nt=Ue.length,or=ye.length;++Ne<Nt;)ye[or+Ne]=Ue[Ne];return ye}function Ea(ye,Ue,Ne,Nt){var or=-1,Pr=ye==null?0:ye.length;for(Nt&&Pr&&(Ne=ye[++or]);++or<Pr;)Ne=Ue(Ne,ye[or],or,ye);return Ne}function dl(ye,Ue,Ne,Nt){var or=ye==null?0:ye.length;for(Nt&&or&&(Ne=ye[--or]);or--;)Ne=Ue(Ne,ye[or],or,ye);return Ne}function $o(ye,Ue){for(var Ne=-1,Nt=ye==null?0:ye.length;++Ne<Nt;)if(Ue(ye[Ne],Ne,ye))return!0;return!1}var hl=T("length");function pl(ye){return ye.split("")}function Gs(ye){return ye.match(Be)||[]}function gs(ye,Ue,Ne){var Nt;return Ne(ye,function(or,Pr,bn){if(Ue(or,Pr,bn))return Nt=Pr,!1}),Nt}function ms(ye,Ue,Ne,Nt){for(var or=ye.length,Pr=Ne+(Nt?1:-1);Nt?Pr--:++Pr<or;)if(Ue(ye[Pr],Pr,ye))return Pr;return-1}function Co(ye,Ue,Ne){return Ue===Ue?af(ye,Ue,Ne):ms(ye,Zs,Ne)}function gl(ye,Ue,Ne,Nt){for(var or=Ne-1,Pr=ye.length;++or<Pr;)if(Nt(ye[or],Ue))return or;return-1}function Zs(ye){return ye!==ye}function ka(ye,Ue){var Ne=ye==null?0:ye.length;return Ne?Ie(ye,Ue)/Ne:le}function T(ye){return function(Ue){return Ue==null?t:Ue[ye]}}function P(ye){return function(Ue){return ye==null?t:ye[Ue]}}function $(ye,Ue,Ne,Nt,or){return or(ye,function(Pr,bn,Wr){Ne=Nt?(Nt=!1,Pr):Ue(Ne,Pr,bn,Wr)}),Ne}function te(ye,Ue){var Ne=ye.length;for(ye.sort(Ue);Ne--;)ye[Ne]=ye[Ne].value;return ye}function Ie(ye,Ue){for(var Ne,Nt=-1,or=ye.length;++Nt<or;){var Pr=Ue(ye[Nt]);Pr!==t&&(Ne=Ne===t?Pr:Ne+Pr)}return Ne}function Te(ye,Ue){for(var Ne=-1,Nt=Array(ye);++Ne<ye;)Nt[Ne]=Ue(Ne);return Nt}function Ke(ye,Ue){return Kr(Ue,function(Ne){return[Ne,ye[Ne]]})}function gt(ye){return ye&&ye.slice(0,au(ye)+1).replace(yt,"")}function Wt(ye){return function(Ue){return ye(Ue)}}function hr(ye,Ue){return Kr(Ue,function(Ne){return ye[Ne]})}function ar(ye,Ue){return ye.has(Ue)}function Gr(ye,Ue){for(var Ne=-1,Nt=ye.length;++Ne<Nt&&Co(Ue,ye[Ne],0)>-1;);return Ne}function ni(ye,Ue){for(var Ne=ye.length;Ne--&&Co(Ue,ye[Ne],0)>-1;);return Ne}function Ti(ye,Ue){for(var Ne=ye.length,Nt=0;Ne--;)ye[Ne]===Ue&&++Nt;return Nt}var Ei=P(I),Ks=P(G);function ml(ye){return"\\"+qe[ye]}function vs(ye,Ue){return ye==null?t:ye[Ue]}function Ys(ye){return ti.test(ye)}function of(ye){return ri.test(ye)}function sc(ye){for(var Ue,Ne=[];!(Ue=ye.next()).done;)Ne.push(Ue.value);return Ne}function ac(ye){var Ue=-1,Ne=Array(ye.size);return ye.forEach(function(Nt,or){Ne[++Ue]=[or,Nt]}),Ne}function su(ye,Ue){return function(Ne){return ye(Ue(Ne))}}function wo(ye,Ue){for(var Ne=-1,Nt=ye.length,or=0,Pr=[];++Ne<Nt;){var bn=ye[Ne];(bn===Ue||bn===R)&&(ye[Ne]=R,Pr[or++]=Ne)}return Pr}function Ra(ye){var Ue=-1,Ne=Array(ye.size);return ye.forEach(function(Nt){Ne[++Ue]=Nt}),Ne}function sf(ye){var Ue=-1,Ne=Array(ye.size);return ye.forEach(function(Nt){Ne[++Ue]=[Nt,Nt]}),Ne}function af(ye,Ue,Ne){for(var Nt=Ne-1,or=ye.length;++Nt<or;)if(ye[Nt]===Ue)return Nt;return-1}function lf(ye,Ue,Ne){for(var Nt=Ne+1;Nt--;)if(ye[Nt]===Ue)return Nt;return Nt}function Xs(ye){return Ys(ye)?vl(ye):hl(ye)}function fn(ye){return Ys(ye)?ki(ye):pl(ye)}function au(ye){for(var Ue=ye.length;Ue--&&Lt.test(ye.charAt(Ue)););return Ue}var lu=P(ae);function vl(ye){for(var Ue=Rn.lastIndex=0;Rn.test(ye);)++Ue;return Ue}function ki(ye){return ye.match(Rn)||[]}function cu(ye){return ye.match(_o)||[]}var yl=function ye(Ue){Ue=Ue==null?dr:Ao.defaults(dr.Object(),Ue,Ao.pick(dr,$i));var Ne=Ue.Array,Nt=Ue.Date,or=Ue.Error,Pr=Ue.Function,bn=Ue.Math,Wr=Ue.Object,Js=Ue.RegExp,uu=Ue.String,Bi=Ue.TypeError,bl=Ne.prototype,cf=Pr.prototype,Uo=Wr.prototype,en=Ue["__core-js_shared__"],Wo=cf.toString,zr=Uo.hasOwnProperty,lc=0,ln=function(){var o=/[^.]+$/.exec(en&&en.keys&&en.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}(),To=Uo.toString,cc=Wo.call(Wr),uc=dr._,fc=Js("^"+Wo.call(zr).replace(Qe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Qs=In?Ue.Buffer:t,Eo=Ue.Symbol,Ia=Ue.Uint8Array,La=Qs?Qs.allocUnsafe:t,ys=su(Wr.getPrototypeOf,Wr),ea=Wr.create,_l=Uo.propertyIsEnumerable,ko=bl.splice,xl=Eo?Eo.isConcatSpreadable:t,Vi=Eo?Eo.iterator:t,Ro=Eo?Eo.toStringTag:t,Vo=function(){try{var o=Hc(Wr,"defineProperty");return o({},"",{}),o}catch{}}(),uf=Ue.clearTimeout!==dr.clearTimeout&&Ue.clearTimeout,Ma=Nt&&Nt.now!==dr.Date.now&&Nt.now,fu=Ue.setTimeout!==dr.setTimeout&&Ue.setTimeout,ta=bn.ceil,bs=bn.floor,ra=Wr.getOwnPropertySymbols,Sl=Qs?Qs.isBuffer:t,na=Ue.isFinite,Da=bl.join,du=su(Wr.keys,Wr),cn=bn.max,Ln=bn.min,Go=Nt.now,dc=Ue.parseInt,Zo=bn.random,Cl=bl.reverse,io=Hc(Ue,"DataView"),Ko=Hc(Ue,"Map"),ia=Hc(Ue,"Promise"),oo=Hc(Ue,"Set"),Io=Hc(Ue,"WeakMap"),oa=Hc(Wr,"create"),Oa=Io&&new Io,_s={},Yo=qc(io),hc=qc(Ko),ff=qc(ia),hu=qc(oo),sa=qc(Io),Xo=Eo?Eo.prototype:t,xs=Xo?Xo.valueOf:t,Pa=Xo?Xo.toString:t;function U(o){if(Nn(o)&&!_r(o)&&!(o instanceof br)){if(o instanceof ii)return o;if(zr.call(o,"__wrapped__"))return sv(o)}return new ii(o)}var Lo=function(){function o(){}return function(a){if(!Mn(a))return{};if(ea)return ea(a);o.prototype=a;var p=new o;return o.prototype=t,p}}();function Mo(){}function ii(o,a){this.__wrapped__=o,this.__actions__=[],this.__chain__=!!a,this.__index__=0,this.__values__=t}U.templateSettings={escape:Mt,evaluate:Qt,interpolate:rr,variable:"",imports:{_:U}},U.prototype=Mo.prototype,U.prototype.constructor=U,ii.prototype=Lo(Mo.prototype),ii.prototype.constructor=ii;function br(o){this.__wrapped__=o,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=oe,this.__views__=[]}function wl(){var o=new br(this.__wrapped__);return o.__actions__=si(this.__actions__),o.__dir__=this.__dir__,o.__filtered__=this.__filtered__,o.__iteratees__=si(this.__iteratees__),o.__takeCount__=this.__takeCount__,o.__views__=si(this.__views__),o}function Na(){if(this.__filtered__){var o=new br(this);o.__dir__=-1,o.__filtered__=!0}else o=this.clone(),o.__dir__*=-1;return o}function Al(){var o=this.__wrapped__.value(),a=this.__dir__,p=_r(o),k=a<0,B=p?o.length:0,Z=kS(0,B,this.__views__),se=Z.start,fe=Z.end,xe=fe-se,rt=k?fe:se-1,nt=this.__iteratees__,ut=nt.length,Ft=0,Xt=Ln(xe,this.__takeCount__);if(!p||!k&&B==xe&&Xt==xe)return oi(o,this.__actions__);var cr=[];e:for(;xe--&&Ft<Xt;){rt+=a;for(var Ir=-1,ur=o[rt];++Ir<ut;){var Fr=nt[Ir],qr=Fr.iteratee,jo=Fr.type,Qi=qr(ur);if(jo==he)ur=Qi;else if(!Qi){if(jo==Q)continue e;break e}}cr[Ft++]=ur}return cr}br.prototype=Lo(Mo.prototype),br.prototype.constructor=br;function so(o){var a=-1,p=o==null?0:o.length;for(this.clear();++a<p;){var k=o[a];this.set(k[0],k[1])}}function pc(){this.__data__=oa?oa(null):{},this.size=0}function pu(o){var a=this.has(o)&&delete this.__data__[o];return this.size-=a?1:0,a}function gu(o){var a=this.__data__;if(oa){var p=a[o];return p===g?t:p}return zr.call(a,o)?a[o]:t}function mu(o){var a=this.__data__;return oa?a[o]!==t:zr.call(a,o)}function df(o,a){var p=this.__data__;return this.size+=this.has(o)?0:1,p[o]=oa&&a===t?g:a,this}so.prototype.clear=pc,so.prototype.delete=pu,so.prototype.get=gu,so.prototype.has=mu,so.prototype.set=df;function ao(o){var a=-1,p=o==null?0:o.length;for(this.clear();++a<p;){var k=o[a];this.set(k[0],k[1])}}function hf(){this.__data__=[],this.size=0}function pf(o){var a=this.__data__,p=Gi(a,o);if(p<0)return!1;var k=a.length-1;return p==k?a.pop():ko.call(a,p,1),--this.size,!0}function gc(o){var a=this.__data__,p=Gi(a,o);return p<0?t:a[p][1]}function Fa(o){return Gi(this.__data__,o)>-1}function gf(o,a){var p=this.__data__,k=Gi(p,o);return k<0?(++this.size,p.push([o,a])):p[k][1]=a,this}ao.prototype.clear=hf,ao.prototype.delete=pf,ao.prototype.get=gc,ao.prototype.has=Fa,ao.prototype.set=gf;function Do(o){var a=-1,p=o==null?0:o.length;for(this.clear();++a<p;){var k=o[a];this.set(k[0],k[1])}}function mc(){this.size=0,this.__data__={hash:new so,map:new(Ko||ao),string:new so}}function Tl(o){var a=hd(this,o).delete(o);return this.size-=a?1:0,a}function mf(o){return hd(this,o).get(o)}function vf(o){return hd(this,o).has(o)}function yf(o,a){var p=hd(this,o),k=p.size;return p.set(o,a),this.size+=p.size==k?0:1,this}Do.prototype.clear=mc,Do.prototype.delete=Tl,Do.prototype.get=mf,Do.prototype.has=vf,Do.prototype.set=yf;function ui(o){var a=-1,p=o==null?0:o.length;for(this.__data__=new Do;++a<p;)this.add(o[a])}function vc(o){return this.__data__.set(o,g),this}function El(o){return this.__data__.has(o)}ui.prototype.add=ui.prototype.push=vc,ui.prototype.has=El;function Rr(o){var a=this.__data__=new ao(o);this.size=a.size}function Ri(){this.__data__=new ao,this.size=0}function aa(o){var a=this.__data__,p=a.delete(o);return this.size=a.size,p}function Ss(o){return this.__data__.get(o)}function Nr(o){return this.__data__.has(o)}function Jo(o,a){var p=this.__data__;if(p instanceof ao){var k=p.__data__;if(!Ko||k.length<i-1)return k.push([o,a]),this.size=++p.size,this;p=this.__data__=new Do(k)}return p.set(o,a),this.size=p.size,this}Rr.prototype.clear=Ri,Rr.prototype.delete=aa,Rr.prototype.get=Ss,Rr.prototype.has=Nr,Rr.prototype.set=Jo;function ja(o,a){var p=_r(o),k=!p&&zc(o),B=!p&&!k&&Wl(o),Z=!p&&!k&&!B&&Iu(o),se=p||k||B||Z,fe=se?Te(o.length,uu):[],xe=fe.length;for(var rt in o)(a||zr.call(o,rt))&&!(se&&(rt=="length"||B&&(rt=="offset"||rt=="parent")||Z&&(rt=="buffer"||rt=="byteLength"||rt=="byteOffset")||Ya(rt,xe)))&&fe.push(rt);return fe}function mi(o){var a=o.length;return a?o[Rs(0,a-1)]:t}function Ii(o,a){return pd(si(o),ws(a,0,o.length))}function lo(o){return pd(si(o))}function yc(o,a,p){(p!==t&&!Ls(o[a],p)||p===t&&!(a in o))&&Li(o,a,p)}function fi(o,a,p){var k=o[a];(!(zr.call(o,a)&&Ls(k,p))||p===t&&!(a in o))&&Li(o,a,p)}function Gi(o,a){for(var p=o.length;p--;)if(Ls(o[p][0],a))return p;return-1}function Cs(o,a,p,k){return Qo(o,function(B,Z,se){a(k,B,p(B),se)}),k}function vu(o,a){return o&&Xi(a,vi(a),o)}function bc(o,a){return o&&Xi(a,mo(a),o)}function Li(o,a,p){a=="__proto__"&&Vo?Vo(o,a,{configurable:!0,enumerable:!0,value:p,writable:!0}):o[a]=p}function _c(o,a){for(var p=-1,k=a.length,B=Ne(k),Z=o==null;++p<k;)B[p]=Z?t:qh(o,a[p]);return B}function ws(o,a,p){return o===o&&(p!==t&&(o=o<=p?o:p),a!==t&&(o=o>=a?o:a)),o}function di(o,a,p,k,B,Z){var se,fe=a&C,xe=a&b,rt=a&S;if(p&&(se=B?p(o,k,B,Z):p(o)),se!==t)return se;if(!Mn(o))return o;var nt=_r(o);if(nt){if(se=IS(o),!fe)return si(o,se)}else{var ut=Hi(o),Ft=ut==_e||ut==Ge;if(Wl(o))return ga(o,fe);if(ut==Le||ut==we||Ft&&!B){if(se=xe||Ft?{}:Xm(o),!fe)return xe?ku(o,bc(se,o)):Sf(o,vu(se,o))}else{if(!Mr[ut])return B?o:{};se=LS(o,ut,fe)}}Z||(Z=new Rr);var Xt=Z.get(o);if(Xt)return Xt;Z.set(o,se),Tv(o)?o.forEach(function(ur){se.add(di(ur,a,p,ur,o,Z))}):wv(o)&&o.forEach(function(ur,Fr){se.set(Fr,di(ur,a,p,Fr,o,Z))});var cr=rt?xe?Eh:Th:xe?mo:vi,Ir=nt?t:cr(o);return zn(Ir||o,function(ur,Fr){Ir&&(Fr=ur,ur=o[Fr]),fi(se,Fr,di(ur,a,p,Fr,o,Z))}),se}function xc(o){var a=vi(o);return function(p){return Sc(p,o,a)}}function Sc(o,a,p){var k=p.length;if(o==null)return!k;for(o=Wr(o);k--;){var B=p[k],Z=a[B],se=o[B];if(se===t&&!(B in o)||!Z(se))return!1}return!0}function Cc(o,a,p){if(typeof o!="function")throw new Bi(u);return Af(function(){o.apply(t,p)},a)}function As(o,a,p,k){var B=-1,Z=So,se=!0,fe=o.length,xe=[],rt=a.length;if(!fe)return xe;p&&(a=Kr(a,Wt(p))),k?(Z=$n,se=!1):a.length>=i&&(Z=ar,se=!1,a=new ui(a));e:for(;++B<fe;){var nt=o[B],ut=p==null?nt:p(nt);if(nt=k||nt!==0?nt:0,se&&ut===ut){for(var Ft=rt;Ft--;)if(a[Ft]===ut)continue e;xe.push(nt)}else Z(a,ut,k)||xe.push(nt)}return xe}var Qo=s(Mi),wc=s(Rl,!0);function yu(o,a){var p=!0;return Qo(o,function(k,B,Z){return p=!!a(k,B,Z),p}),p}function kl(o,a,p){for(var k=-1,B=o.length;++k<B;){var Z=o[k],se=a(Z);if(se!=null&&(fe===t?se===se&&!Fo(se):p(se,fe)))var fe=se,xe=Z}return xe}function bf(o,a,p,k){var B=o.length;for(p=Tr(p),p<0&&(p=-p>B?0:B+p),k=k===t||k>B?B:Tr(k),k<0&&(k+=B),k=p>k?0:kv(k);p<k;)o[p++]=a;return o}function bu(o,a){var p=[];return Qo(o,function(k,B,Z){a(k,B,Z)&&p.push(k)}),p}function Un(o,a,p,k,B){var Z=-1,se=o.length;for(p||(p=DS),B||(B=[]);++Z<se;){var fe=o[Z];a>0&&p(fe)?a>1?Un(fe,a-1,p,k,B):Ai(B,fe):k||(B[B.length]=fe)}return B}var Ac=c(),_u=c(!0);function Mi(o,a){return o&&Ac(o,a,vi)}function Rl(o,a){return o&&_u(o,a,vi)}function la(o,a){return Wi(a,function(p){return Xa(o[p])})}function es(o,a){a=No(a,o);for(var p=0,k=a.length;o!=null&&p<k;)o=o[ma(a[p++])];return p&&p==k?o:t}function Ba(o,a,p){var k=a(o);return _r(o)?k:Ai(k,p(o))}function Pn(o){return o==null?o===t?St:ht:Ro&&Ro in Wr(o)?ES(o):HS(o)}function Ts(o,a){return o>a}function Il(o,a){return o!=null&&zr.call(o,a)}function ca(o,a){return o!=null&&a in Wr(o)}function Ll(o,a,p){return o>=Ln(a,p)&&o<cn(a,p)}function ua(o,a,p){for(var k=p?$n:So,B=o[0].length,Z=o.length,se=Z,fe=Ne(Z),xe=1/0,rt=[];se--;){var nt=o[se];se&&a&&(nt=Kr(nt,Wt(a))),xe=Ln(nt.length,xe),fe[se]=!p&&(a||B>=120&&nt.length>=120)?new ui(se&&nt):t}nt=o[0];var ut=-1,Ft=fe[0];e:for(;++ut<B&&rt.length<xe;){var Xt=nt[ut],cr=a?a(Xt):Xt;if(Xt=p||Xt!==0?Xt:0,!(Ft?ar(Ft,cr):k(rt,cr,p))){for(se=Z;--se;){var Ir=fe[se];if(!(Ir?ar(Ir,cr):k(o[se],cr,p)))continue e}Ft&&Ft.push(cr),rt.push(Xt)}}return rt}function Ml(o,a,p,k){return Mi(o,function(B,Z,se){a(k,p(B),Z,se)}),k}function co(o,a,p){a=No(a,o),o=tv(o,a);var k=o==null?o:o[ma(ss(a))];return k==null?t:an(k,o,p)}function Dl(o){return Nn(o)&&Pn(o)==we}function Es(o){return Nn(o)&&Pn(o)==Et}function xu(o){return Nn(o)&&Pn(o)==We}function Ha(o,a,p,k,B){return o===a?!0:o==null||a==null||!Nn(o)&&!Nn(a)?o!==o&&a!==a:fa(o,a,p,k,Ha,B)}function fa(o,a,p,k,B,Z){var se=_r(o),fe=_r(a),xe=se?Pe:Hi(o),rt=fe?Pe:Hi(a);xe=xe==we?Le:xe,rt=rt==we?Le:rt;var nt=xe==Le,ut=rt==Le,Ft=xe==rt;if(Ft&&Wl(o)){if(!Wl(a))return!1;se=!0,nt=!1}if(Ft&&!nt)return Z||(Z=new Rr),se||Iu(o)?Zm(o,a,p,k,B,Z):AS(o,a,xe,p,k,B,Z);if(!(p&_)){var Xt=nt&&zr.call(o,"__wrapped__"),cr=ut&&zr.call(a,"__wrapped__");if(Xt||cr){var Ir=Xt?o.value():o,ur=cr?a.value():a;return Z||(Z=new Rr),B(Ir,ur,p,k,Z)}}return Ft?(Z||(Z=new Rr),TS(o,a,p,k,B,Z)):!1}function da(o){return Nn(o)&&Hi(o)==lt}function Tc(o,a,p,k){var B=p.length,Z=B,se=!k;if(o==null)return!Z;for(o=Wr(o);B--;){var fe=p[B];if(se&&fe[2]?fe[1]!==o[fe[0]]:!(fe[0]in o))return!1}for(;++B<Z;){fe=p[B];var xe=fe[0],rt=o[xe],nt=fe[1];if(se&&fe[2]){if(rt===t&&!(xe in o))return!1}else{var ut=new Rr;if(k)var Ft=k(rt,nt,xe,o,a,ut);if(!(Ft===t?Ha(nt,rt,_|D,k,ut):Ft))return!1}}return!0}function Su(o){if(!Mn(o)||PS(o))return!1;var a=Xa(o)?fc:ir;return a.test(qc(o))}function ks(o){return Nn(o)&&Pn(o)==Ct}function Ol(o){return Nn(o)&&Hi(o)==_t}function Oo(o){return Nn(o)&&_d(o.length)&&!!wr[Pn(o)]}function Pl(o){return typeof o=="function"?o:o==null?vo:typeof o=="object"?_r(o)?za(o[0],o[1]):uo(o):Bv(o)}function Po(o){if(!wf(o))return du(o);var a=[];for(var p in Wr(o))zr.call(o,p)&&p!="constructor"&&a.push(p);return a}function qa(o){if(!Mn(o))return BS(o);var a=wf(o),p=[];for(var k in o)k=="constructor"&&(a||!zr.call(o,k))||p.push(k);return p}function Zi(o,a){return o<a}function Ki(o,a){var p=-1,k=go(o)?Ne(o.length):[];return Qo(o,function(B,Z,se){k[++p]=a(B,Z,se)}),k}function uo(o){var a=Rh(o);return a.length==1&&a[0][2]?Qm(a[0][0],a[0][1]):function(p){return p===o||Tc(p,o,a)}}function za(o,a){return Lh(o)&&Jm(a)?Qm(ma(o),a):function(p){var k=qh(p,o);return k===t&&k===a?zh(p,o):Ha(a,k,_|D)}}function ts(o,a,p,k,B){o!==a&&Ac(a,function(Z,se){if(B||(B=new Rr),Mn(Z))Yi(o,a,se,p,ts,k,B);else{var fe=k?k(Dh(o,se),Z,se+"",o,a,B):t;fe===t&&(fe=Z),yc(o,se,fe)}},mo)}function Yi(o,a,p,k,B,Z,se){var fe=Dh(o,p),xe=Dh(a,p),rt=se.get(xe);if(rt){yc(o,p,rt);return}var nt=Z?Z(fe,xe,p+"",o,a,se):t,ut=nt===t;if(ut){var Ft=_r(xe),Xt=!Ft&&Wl(xe),cr=!Ft&&!Xt&&Iu(xe);nt=xe,Ft||Xt||cr?_r(fe)?nt=fe:Vn(fe)?nt=si(fe):Xt?(ut=!1,nt=ga(xe,!0)):cr?(ut=!1,nt=jc(xe,!0)):nt=[]:Tf(xe)||zc(xe)?(nt=fe,zc(fe)?nt=Rv(fe):(!Mn(fe)||Xa(fe))&&(nt=Xm(xe))):ut=!1}ut&&(se.set(xe,nt),B(nt,xe,k,Z,se),se.delete(xe)),yc(o,p,nt)}function ha(o,a){var p=o.length;if(p)return a+=a<0?p:0,Ya(a,p)?o[a]:t}function Nl(o,a,p){a.length?a=Kr(a,function(Z){return _r(Z)?function(se){return es(se,Z.length===1?Z[0]:Z)}:Z}):a=[vo];var k=-1;a=Kr(a,Wt(lr()));var B=Ki(o,function(Z,se,fe){var xe=Kr(a,function(rt){return rt(Z)});return{criteria:xe,index:++k,value:Z}});return te(B,function(Z,se){return Tu(Z,se,p)})}function $a(o,a){return pa(o,a,function(p,k){return zh(o,k)})}function pa(o,a,p){for(var k=-1,B=a.length,Z={};++k<B;){var se=a[k],fe=es(o,se);p(fe,se)&&Is(Z,No(se,o),fe)}return Z}function Cu(o){return function(a){return es(a,o)}}function Ec(o,a,p,k){var B=k?gl:Co,Z=-1,se=a.length,fe=o;for(o===a&&(a=si(a)),p&&(fe=Kr(o,Wt(p)));++Z<se;)for(var xe=0,rt=a[Z],nt=p?p(rt):rt;(xe=B(fe,nt,xe,k))>-1;)fe!==o&&ko.call(fe,xe,1),ko.call(o,xe,1);return o}function kc(o,a){for(var p=o?a.length:0,k=p-1;p--;){var B=a[p];if(p==k||B!==Z){var Z=B;Ya(B)?ko.call(o,B,1):Dc(o,B)}}return o}function Rs(o,a){return o+bs(Zo()*(a-o+1))}function Rc(o,a,p,k){for(var B=-1,Z=cn(ta((a-o)/(p||1)),0),se=Ne(Z);Z--;)se[k?Z:++B]=o,o+=p;return se}function Fl(o,a){var p="";if(!o||a<1||a>ce)return p;do a%2&&(p+=o),a=bs(a/2),a&&(o+=o);while(a);return p}function gr(o,a){return Oh(ev(o,a,vo),o+"")}function Ua(o){return mi(Lu(o))}function Ic(o,a){var p=Lu(o);return pd(p,ws(a,0,p.length))}function Is(o,a,p,k){if(!Mn(o))return o;a=No(a,o);for(var B=-1,Z=a.length,se=Z-1,fe=o;fe!=null&&++B<Z;){var xe=ma(a[B]),rt=p;if(xe==="__proto__"||xe==="constructor"||xe==="prototype")return o;if(B!=se){var nt=fe[xe];rt=k?k(nt,xe,fe):t,rt===t&&(rt=Mn(nt)?nt:Ya(a[B+1])?[]:{})}fi(fe,xe,rt),fe=fe[xe]}return o}var Lc=Oa?function(o,a){return Oa.set(o,a),o}:vo,wu=Vo?function(o,a){return Vo(o,"toString",{configurable:!0,enumerable:!1,value:Uh(a),writable:!0})}:vo;function Mc(o){return pd(Lu(o))}function Di(o,a,p){var k=-1,B=o.length;a<0&&(a=-a>B?0:B+a),p=p>B?B:p,p<0&&(p+=B),B=a>p?0:p-a>>>0,a>>>=0;for(var Z=Ne(B);++k<B;)Z[k]=o[k+a];return Z}function _f(o,a){var p;return Qo(o,function(k,B,Z){return p=a(k,B,Z),!p}),!!p}function jl(o,a,p){var k=0,B=o==null?k:o.length;if(typeof a=="number"&&a===a&&B<=Oe){for(;k<B;){var Z=k+B>>>1,se=o[Z];se!==null&&!Fo(se)&&(p?se<=a:se<a)?k=Z+1:B=Z}return B}return Bl(o,a,vo,p)}function Bl(o,a,p,k){var B=0,Z=o==null?0:o.length;if(Z===0)return 0;a=p(a);for(var se=a!==a,fe=a===null,xe=Fo(a),rt=a===t;B<Z;){var nt=bs((B+Z)/2),ut=p(o[nt]),Ft=ut!==t,Xt=ut===null,cr=ut===ut,Ir=Fo(ut);if(se)var ur=k||cr;else rt?ur=cr&&(k||Ft):fe?ur=cr&&Ft&&(k||!Xt):xe?ur=cr&&Ft&&!Xt&&(k||!Ir):Xt||Ir?ur=!1:ur=k?ut<=a:ut<a;ur?B=nt+1:Z=nt}return Ln(Z,ve)}function Au(o,a){for(var p=-1,k=o.length,B=0,Z=[];++p<k;){var se=o[p],fe=a?a(se):se;if(!p||!Ls(fe,xe)){var xe=fe;Z[B++]=se===0?0:se}}return Z}function Hl(o){return typeof o=="number"?o:Fo(o)?le:+o}function Oi(o){if(typeof o=="string")return o;if(_r(o))return Kr(o,Oi)+"";if(Fo(o))return Pa?Pa.call(o):"";var a=o+"";return a=="0"&&1/o==-1/0?"-0":a}function Tn(o,a,p){var k=-1,B=So,Z=o.length,se=!0,fe=[],xe=fe;if(p)se=!1,B=$n;else if(Z>=i){var rt=a?null:Cf(o);if(rt)return Ra(rt);se=!1,B=ar,xe=new ui}else xe=a?[]:fe;e:for(;++k<Z;){var nt=o[k],ut=a?a(nt):nt;if(nt=p||nt!==0?nt:0,se&&ut===ut){for(var Ft=xe.length;Ft--;)if(xe[Ft]===ut)continue e;a&&xe.push(ut),fe.push(nt)}else B(xe,ut,p)||(xe!==fe&&xe.push(ut),fe.push(nt))}return fe}function Dc(o,a){return a=No(a,o),o=tv(o,a),o==null||delete o[ma(ss(a))]}function Wa(o,a,p,k){return Is(o,a,p(es(o,a)),k)}function ql(o,a,p,k){for(var B=o.length,Z=k?B:-1;(k?Z--:++Z<B)&&a(o[Z],Z,o););return p?Di(o,k?0:Z,k?Z+1:B):Di(o,k?Z+1:0,k?B:Z)}function oi(o,a){var p=o;return p instanceof br&&(p=p.value()),Ea(a,function(k,B){return B.func.apply(B.thisArg,Ai([k],B.args))},p)}function Oc(o,a,p){var k=o.length;if(k<2)return k?Tn(o[0]):[];for(var B=-1,Z=Ne(k);++B<k;)for(var se=o[B],fe=-1;++fe<k;)fe!=B&&(Z[B]=As(Z[B]||se,o[fe],a,p));return Tn(Un(Z,1),a,p)}function Pc(o,a,p){for(var k=-1,B=o.length,Z=a.length,se={};++k<B;){var fe=k<Z?a[k]:t;p(se,o[k],fe)}return se}function zl(o){return Vn(o)?o:[]}function rs(o){return typeof o=="function"?o:vo}function No(o,a){return _r(o)?o:Lh(o,a)?[o]:ov(tn(o))}var xf=gr;function fo(o,a,p){var k=o.length;return p=p===t?k:p,!a&&p>=k?o:Di(o,a,p)}var ns=uf||function(o){return dr.clearTimeout(o)};function ga(o,a){if(a)return o.slice();var p=o.length,k=La?La(p):new o.constructor(p);return o.copy(k),k}function Nc(o){var a=new o.constructor(o.byteLength);return new Ia(a).set(new Ia(o)),a}function Fc(o,a){var p=a?Nc(o.buffer):o.buffer;return new o.constructor(p,o.byteOffset,o.byteLength)}function Va(o){var a=new o.constructor(o.source,kt.exec(o));return a.lastIndex=o.lastIndex,a}function $l(o){return xs?Wr(xs.call(o)):{}}function jc(o,a){var p=a?Nc(o.buffer):o.buffer;return new o.constructor(p,o.byteOffset,o.length)}function Ga(o,a){if(o!==a){var p=o!==t,k=o===null,B=o===o,Z=Fo(o),se=a!==t,fe=a===null,xe=a===a,rt=Fo(a);if(!fe&&!rt&&!Z&&o>a||Z&&se&&xe&&!fe&&!rt||k&&se&&xe||!p&&xe||!B)return 1;if(!k&&!Z&&!rt&&o<a||rt&&p&&B&&!k&&!Z||fe&&p&&B||!se&&B||!xe)return-1}return 0}function Tu(o,a,p){for(var k=-1,B=o.criteria,Z=a.criteria,se=B.length,fe=p.length;++k<se;){var xe=Ga(B[k],Z[k]);if(xe){if(k>=fe)return xe;var rt=p[k];return xe*(rt=="desc"?-1:1)}}return o.index-a.index}function Eu(o,a,p,k){for(var B=-1,Z=o.length,se=p.length,fe=-1,xe=a.length,rt=cn(Z-se,0),nt=Ne(xe+rt),ut=!k;++fe<xe;)nt[fe]=a[fe];for(;++B<se;)(ut||B<Z)&&(nt[p[B]]=o[B]);for(;rt--;)nt[fe++]=o[B++];return nt}function Bc(o,a,p,k){for(var B=-1,Z=o.length,se=-1,fe=p.length,xe=-1,rt=a.length,nt=cn(Z-fe,0),ut=Ne(nt+rt),Ft=!k;++B<nt;)ut[B]=o[B];for(var Xt=B;++xe<rt;)ut[Xt+xe]=a[xe];for(;++se<fe;)(Ft||B<Z)&&(ut[Xt+p[se]]=o[B++]);return ut}function si(o,a){var p=-1,k=o.length;for(a||(a=Ne(k));++p<k;)a[p]=o[p];return a}function Xi(o,a,p,k){var B=!p;p||(p={});for(var Z=-1,se=a.length;++Z<se;){var fe=a[Z],xe=k?k(p[fe],o[fe],fe,p,o):t;xe===t&&(xe=o[fe]),B?Li(p,fe,xe):fi(p,fe,xe)}return p}function Sf(o,a){return Xi(o,Ih(o),a)}function ku(o,a){return Xi(o,Km(o),a)}function Ul(o,a){return function(p,k){var B=_r(p)?ps:Cs,Z=a?a():{};return B(p,o,lr(k,2),Z)}}function d(o){return gr(function(a,p){var k=-1,B=p.length,Z=B>1?p[B-1]:t,se=B>2?p[2]:t;for(Z=o.length>3&&typeof Z=="function"?(B--,Z):t,se&&Ji(p[0],p[1],se)&&(Z=B<3?t:Z,B=1),a=Wr(a);++k<B;){var fe=p[k];fe&&o(a,fe,k,Z)}return a})}function s(o,a){return function(p,k){if(p==null)return p;if(!go(p))return o(p,k);for(var B=p.length,Z=a?B:-1,se=Wr(p);(a?Z--:++Z<B)&&k(se[Z],Z,se)!==!1;);return p}}function c(o){return function(a,p,k){for(var B=-1,Z=Wr(a),se=k(a),fe=se.length;fe--;){var xe=se[o?fe:++B];if(p(Z[xe],xe,Z)===!1)break}return a}}function h(o,a,p){var k=a&E,B=F(o);function Z(){var se=this&&this!==dr&&this instanceof Z?B:o;return se.apply(k?p:this,arguments)}return Z}function y(o){return function(a){a=tn(a);var p=Ys(a)?fn(a):t,k=p?p[0]:a.charAt(0),B=p?fo(p,1).join(""):a.slice(1);return k[o]()+B}}function M(o){return function(a){return Ea(Fv(Nv(a).replace(ro,"")),o,"")}}function F(o){return function(){var a=arguments;switch(a.length){case 0:return new o;case 1:return new o(a[0]);case 2:return new o(a[0],a[1]);case 3:return new o(a[0],a[1],a[2]);case 4:return new o(a[0],a[1],a[2],a[3]);case 5:return new o(a[0],a[1],a[2],a[3],a[4]);case 6:return new o(a[0],a[1],a[2],a[3],a[4],a[5]);case 7:return new o(a[0],a[1],a[2],a[3],a[4],a[5],a[6])}var p=Lo(o.prototype),k=o.apply(p,a);return Mn(k)?k:p}}function W(o,a,p){var k=F(o);function B(){for(var Z=arguments.length,se=Ne(Z),fe=Z,xe=Ru(B);fe--;)se[fe]=arguments[fe];var rt=Z<3&&se[0]!==xe&&se[Z-1]!==xe?[]:wo(se,xe);if(Z-=rt.length,Z<p)return po(o,a,Ye,B.placeholder,t,se,rt,t,t,p-Z);var nt=this&&this!==dr&&this instanceof B?k:o;return an(nt,this,se)}return B}function ie(o){return function(a,p,k){var B=Wr(a);if(!go(a)){var Z=lr(p,3);a=vi(a),p=function(fe){return Z(B[fe],fe,B)}}var se=o(a,p,k);return se>-1?B[Z?a[se]:se]:t}}function Ce(o){return Ka(function(a){var p=a.length,k=p,B=ii.prototype.thru;for(o&&a.reverse();k--;){var Z=a[k];if(typeof Z!="function")throw new Bi(u);if(B&&!se&&dd(Z)=="wrapper")var se=new ii([],!0)}for(k=se?k:p;++k<p;){Z=a[k];var fe=dd(Z),xe=fe=="wrapper"?kh(Z):t;xe&&Mh(xe[0])&&xe[1]==(K|O|q|ue)&&!xe[4].length&&xe[9]==1?se=se[dd(xe[0])].apply(se,xe[3]):se=Z.length==1&&Mh(Z)?se[fe]():se.thru(Z)}return function(){var rt=arguments,nt=rt[0];if(se&&rt.length==1&&_r(nt))return se.plant(nt).value();for(var ut=0,Ft=p?a[ut].apply(this,rt):nt;++ut<p;)Ft=a[ut].call(this,Ft);return Ft}})}function Ye(o,a,p,k,B,Z,se,fe,xe,rt){var nt=a&K,ut=a&E,Ft=a&x,Xt=a&(O|H),cr=a&X,Ir=Ft?t:F(o);function ur(){for(var Fr=arguments.length,qr=Ne(Fr),jo=Fr;jo--;)qr[jo]=arguments[jo];if(Xt)var Qi=Ru(ur),Bo=Ti(qr,Qi);if(k&&(qr=Eu(qr,k,B,Xt)),Z&&(qr=Bc(qr,Z,se,Xt)),Fr-=Bo,Xt&&Fr<rt){var Gn=wo(qr,Qi);return po(o,a,Ye,ur.placeholder,p,qr,Gn,fe,xe,rt-Fr)}var Ms=ut?p:this,Qa=Ft?Ms[o]:o;return Fr=qr.length,fe?qr=qS(qr,fe):cr&&Fr>1&&qr.reverse(),nt&&xe<Fr&&(qr.length=xe),this&&this!==dr&&this instanceof ur&&(Qa=Ir||F(Qa)),Qa.apply(Ms,qr)}return ur}function at(o,a){return function(p,k){return Ml(p,o,a(k),{})}}function It(o,a){return function(p,k){var B;if(p===t&&k===t)return a;if(p!==t&&(B=p),k!==t){if(B===t)return k;typeof p=="string"||typeof k=="string"?(p=Oi(p),k=Oi(k)):(p=Hl(p),k=Hl(k)),B=o(p,k)}return B}}function tr(o){return Ka(function(a){return a=Kr(a,Wt(lr())),gr(function(p){var k=this;return o(a,function(B){return an(B,k,p)})})})}function Dr(o,a){a=a===t?" ":Oi(a);var p=a.length;if(p<2)return p?Fl(a,o):a;var k=Fl(a,ta(o/Xs(a)));return Ys(a)?fo(fn(k),0,o).join(""):k.slice(0,o)}function Wn(o,a,p,k){var B=a&E,Z=F(o);function se(){for(var fe=-1,xe=arguments.length,rt=-1,nt=k.length,ut=Ne(nt+xe),Ft=this&&this!==dr&&this instanceof se?Z:o;++rt<nt;)ut[rt]=k[rt];for(;xe--;)ut[rt++]=arguments[++fe];return an(Ft,B?p:this,ut)}return se}function is(o){return function(a,p,k){return k&&typeof k!="number"&&Ji(a,p,k)&&(p=k=t),a=Ja(a),p===t?(p=a,a=0):p=Ja(p),k=k===t?a<p?1:-1:Ja(k),Rc(a,p,k,o)}}function ho(o){return function(a,p){return typeof a=="string"&&typeof p=="string"||(a=as(a),p=as(p)),o(a,p)}}function po(o,a,p,k,B,Z,se,fe,xe,rt){var nt=a&O,ut=nt?se:t,Ft=nt?t:se,Xt=nt?Z:t,cr=nt?t:Z;a|=nt?q:z,a&=~(nt?z:q),a&L||(a&=-4);var Ir=[o,a,B,Xt,ut,cr,Ft,fe,xe,rt],ur=p.apply(t,Ir);return Mh(o)&&rv(ur,Ir),ur.placeholder=k,nv(ur,o,a)}function os(o){var a=bn[o];return function(p,k){if(p=as(p),k=k==null?0:Ln(Tr(k),292),k&&na(p)){var B=(tn(p)+"e").split("e"),Z=a(B[0]+"e"+(+B[1]+k));return B=(tn(Z)+"e").split("e"),+(B[0]+"e"+(+B[1]-k))}return a(p)}}var Cf=oo&&1/Ra(new oo([,-0]))[1]==be?function(o){return new oo(o)}:Gh;function fd(o){return function(a){var p=Hi(a);return p==lt?ac(a):p==_t?sf(a):Ke(a,o(a))}}function Za(o,a,p,k,B,Z,se,fe){var xe=a&x;if(!xe&&typeof o!="function")throw new Bi(u);var rt=k?k.length:0;if(rt||(a&=-97,k=B=t),se=se===t?se:cn(Tr(se),0),fe=fe===t?fe:Tr(fe),rt-=B?B.length:0,a&z){var nt=k,ut=B;k=B=t}var Ft=xe?t:kh(o),Xt=[o,a,p,k,B,nt,ut,Z,se,fe];if(Ft&&jS(Xt,Ft),o=Xt[0],a=Xt[1],p=Xt[2],k=Xt[3],B=Xt[4],fe=Xt[9]=Xt[9]===t?xe?0:o.length:cn(Xt[9]-rt,0),!fe&&a&(O|H)&&(a&=-25),!a||a==E)var cr=h(o,a,p);else a==O||a==H?cr=W(o,a,fe):(a==q||a==(E|q))&&!B.length?cr=Wn(o,a,p,k):cr=Ye.apply(t,Xt);var Ir=Ft?Lc:rv;return nv(Ir(cr,Xt),o,a)}function Vm(o,a,p,k){return o===t||Ls(o,Uo[p])&&!zr.call(k,p)?a:o}function Gm(o,a,p,k,B,Z){return Mn(o)&&Mn(a)&&(Z.set(a,o),ts(o,a,t,Gm,Z),Z.delete(a)),o}function wS(o){return Tf(o)?t:o}function Zm(o,a,p,k,B,Z){var se=p&_,fe=o.length,xe=a.length;if(fe!=xe&&!(se&&xe>fe))return!1;var rt=Z.get(o),nt=Z.get(a);if(rt&&nt)return rt==a&&nt==o;var ut=-1,Ft=!0,Xt=p&D?new ui:t;for(Z.set(o,a),Z.set(a,o);++ut<fe;){var cr=o[ut],Ir=a[ut];if(k)var ur=se?k(Ir,cr,ut,a,o,Z):k(cr,Ir,ut,o,a,Z);if(ur!==t){if(ur)continue;Ft=!1;break}if(Xt){if(!$o(a,function(Fr,qr){if(!ar(Xt,qr)&&(cr===Fr||B(cr,Fr,p,k,Z)))return Xt.push(qr)})){Ft=!1;break}}else if(!(cr===Ir||B(cr,Ir,p,k,Z))){Ft=!1;break}}return Z.delete(o),Z.delete(a),Ft}function AS(o,a,p,k,B,Z,se){switch(p){case mt:if(o.byteLength!=a.byteLength||o.byteOffset!=a.byteOffset)return!1;o=o.buffer,a=a.buffer;case Et:return!(o.byteLength!=a.byteLength||!Z(new Ia(o),new Ia(a)));case ze:case We:case $e:return Ls(+o,+a);case Ae:return o.name==a.name&&o.message==a.message;case Ct:case wt:return o==a+"";case lt:var fe=ac;case _t:var xe=k&_;if(fe||(fe=Ra),o.size!=a.size&&!xe)return!1;var rt=se.get(o);if(rt)return rt==a;k|=D,se.set(o,a);var nt=Zm(fe(o),fe(a),k,B,Z,se);return se.delete(o),nt;case bt:if(xs)return xs.call(o)==xs.call(a)}return!1}function TS(o,a,p,k,B,Z){var se=p&_,fe=Th(o),xe=fe.length,rt=Th(a),nt=rt.length;if(xe!=nt&&!se)return!1;for(var ut=xe;ut--;){var Ft=fe[ut];if(!(se?Ft in a:zr.call(a,Ft)))return!1}var Xt=Z.get(o),cr=Z.get(a);if(Xt&&cr)return Xt==a&&cr==o;var Ir=!0;Z.set(o,a),Z.set(a,o);for(var ur=se;++ut<xe;){Ft=fe[ut];var Fr=o[Ft],qr=a[Ft];if(k)var jo=se?k(qr,Fr,Ft,a,o,Z):k(Fr,qr,Ft,o,a,Z);if(!(jo===t?Fr===qr||B(Fr,qr,p,k,Z):jo)){Ir=!1;break}ur||(ur=Ft=="constructor")}if(Ir&&!ur){var Qi=o.constructor,Bo=a.constructor;Qi!=Bo&&"constructor"in o&&"constructor"in a&&!(typeof Qi=="function"&&Qi instanceof Qi&&typeof Bo=="function"&&Bo instanceof Bo)&&(Ir=!1)}return Z.delete(o),Z.delete(a),Ir}function Ka(o){return Oh(ev(o,t,cv),o+"")}function Th(o){return Ba(o,vi,Ih)}function Eh(o){return Ba(o,mo,Km)}var kh=Oa?function(o){return Oa.get(o)}:Gh;function dd(o){for(var a=o.name+"",p=_s[a],k=zr.call(_s,a)?p.length:0;k--;){var B=p[k],Z=B.func;if(Z==null||Z==o)return B.name}return a}function Ru(o){var a=zr.call(U,"placeholder")?U:o;return a.placeholder}function lr(){var o=U.iteratee||Wh;return o=o===Wh?Pl:o,arguments.length?o(arguments[0],arguments[1]):o}function hd(o,a){var p=o.__data__;return OS(a)?p[typeof a=="string"?"string":"hash"]:p.map}function Rh(o){for(var a=vi(o),p=a.length;p--;){var k=a[p],B=o[k];a[p]=[k,B,Jm(B)]}return a}function Hc(o,a){var p=vs(o,a);return Su(p)?p:t}function ES(o){var a=zr.call(o,Ro),p=o[Ro];try{o[Ro]=t;var k=!0}catch{}var B=To.call(o);return k&&(a?o[Ro]=p:delete o[Ro]),B}var Ih=ra?function(o){return o==null?[]:(o=Wr(o),Wi(ra(o),function(a){return _l.call(o,a)}))}:Zh,Km=ra?function(o){for(var a=[];o;)Ai(a,Ih(o)),o=ys(o);return a}:Zh,Hi=Pn;(io&&Hi(new io(new ArrayBuffer(1)))!=mt||Ko&&Hi(new Ko)!=lt||ia&&Hi(ia.resolve())!=Xe||oo&&Hi(new oo)!=_t||Io&&Hi(new Io)!=Me)&&(Hi=function(o){var a=Pn(o),p=a==Le?o.constructor:t,k=p?qc(p):"";if(k)switch(k){case Yo:return mt;case hc:return lt;case ff:return Xe;case hu:return _t;case sa:return Me}return a});function kS(o,a,p){for(var k=-1,B=p.length;++k<B;){var Z=p[k],se=Z.size;switch(Z.type){case"drop":o+=se;break;case"dropRight":a-=se;break;case"take":a=Ln(a,o+se);break;case"takeRight":o=cn(o,a-se);break}}return{start:o,end:a}}function RS(o){var a=o.match(Y);return a?a[1].split(pe):[]}function Ym(o,a,p){a=No(a,o);for(var k=-1,B=a.length,Z=!1;++k<B;){var se=ma(a[k]);if(!(Z=o!=null&&p(o,se)))break;o=o[se]}return Z||++k!=B?Z:(B=o==null?0:o.length,!!B&&_d(B)&&Ya(se,B)&&(_r(o)||zc(o)))}function IS(o){var a=o.length,p=new o.constructor(a);return a&&typeof o[0]=="string"&&zr.call(o,"index")&&(p.index=o.index,p.input=o.input),p}function Xm(o){return typeof o.constructor=="function"&&!wf(o)?Lo(ys(o)):{}}function LS(o,a,p){var k=o.constructor;switch(a){case Et:return Nc(o);case ze:case We:return new k(+o);case mt:return Fc(o,p);case Dt:case Ze:case At:case jt:case mr:case kr:case Cr:case ge:case ne:return jc(o,p);case lt:return new k;case $e:case wt:return new k(o);case Ct:return Va(o);case _t:return new k;case bt:return $l(o)}}function MS(o,a){var p=a.length;if(!p)return o;var k=p-1;return a[k]=(p>1?"& ":"")+a[k],a=a.join(p>2?", ":" "),o.replace(vr,`{
|
34
34
|
/* [wrapped with `+a+`] */
|
35
|
-
`)}function DS(o){return _r(o)||zc(o)||!!(xl&&o&&o[xl])}function Ya(o,a){var p=typeof o;return a=a??ce,!!a&&(p=="number"||p!="symbol"&&Ur.test(o))&&o>-1&&o%1==0&&o<a}function Ji(o,a,p){if(!Mn(p))return!1;var k=typeof a;return(k=="number"?go(p)&&Ya(a,p.length):k=="string"&&a in p)?Ls(p[a],o):!1}function Lh(o,a){if(_r(o))return!1;var p=typeof o;return p=="number"||p=="symbol"||p=="boolean"||o==null||Fo(o)?!0:qt.test(o)||!Bt.test(o)||a!=null&&o in Wr(a)}function OS(o){var a=typeof o;return a=="string"||a=="number"||a=="symbol"||a=="boolean"?o!=="__proto__":o===null}function Mh(o){var a=dd(o),p=U[a];if(typeof p!="function"||!(a in br.prototype))return!1;if(o===p)return!0;var k=kh(p);return!!k&&o===k[0]}function PS(o){return!!ln&&ln in o}var NS=en?Xa:Kh;function wf(o){var a=o&&o.constructor,p=typeof a=="function"&&a.prototype||Uo;return o===p}function Jm(o){return o===o&&!Mn(o)}function Qm(o,a){return function(p){return p==null?!1:p[o]===a&&(a!==t||o in Wr(p))}}function FS(o){var a=yd(o,function(k){return p.size===m&&p.clear(),k}),p=a.cache;return a}function jS(o,a){var p=o[1],k=a[1],B=p|k,Z=B<(E|x|K),se=k==K&&p==O||k==K&&p==ue&&o[7].length<=a[8]||k==(K|ue)&&a[7].length<=a[8]&&p==O;if(!(Z||se))return o;k&E&&(o[2]=a[2],B|=p&E?0:L);var fe=a[3];if(fe){var xe=o[3];o[3]=xe?Eu(xe,fe,a[4]):fe,o[4]=xe?wo(o[3],R):a[4]}return fe=a[5],fe&&(xe=o[5],o[5]=xe?Bc(xe,fe,a[6]):fe,o[6]=xe?wo(o[5],R):a[6]),fe=a[7],fe&&(o[7]=fe),k&K&&(o[8]=o[8]==null?a[8]:Ln(o[8],a[8])),o[9]==null&&(o[9]=a[9]),o[0]=a[0],o[1]=B,o}function BS(o){var a=[];if(o!=null)for(var p in Wr(o))a.push(p);return a}function HS(o){return To.call(o)}function ev(o,a,p){return a=cn(a===t?o.length-1:a,0),function(){for(var k=arguments,B=-1,Z=cn(k.length-a,0),se=Ne(Z);++B<Z;)se[B]=k[a+B];B=-1;for(var fe=Ne(a+1);++B<a;)fe[B]=k[B];return fe[a]=p(se),an(o,this,fe)}}function tv(o,a){return a.length<2?o:es(o,Di(a,0,-1))}function qS(o,a){for(var p=o.length,k=Ln(a.length,p),B=si(o);k--;){var Z=a[k];o[k]=Ya(Z,p)?B[Z]:t}return o}function Dh(o,a){if(!(a==="constructor"&&typeof o[a]=="function")&&a!="__proto__")return o[a]}var rv=iv(Lc),Af=fu||function(o,a){return dr.setTimeout(o,a)},Oh=iv(wu);function nv(o,a,p){var k=a+"";return Oh(o,MS(k,zS(RS(k),p)))}function iv(o){var a=0,p=0;return function(){var k=Go(),B=J-(k-p);if(p=k,B>0){if(++a>=re)return arguments[0]}else a=0;return o.apply(t,arguments)}}function pd(o,a){var p=-1,k=o.length,B=k-1;for(a=a===t?k:a;++p<a;){var Z=Rs(p,B),se=o[Z];o[Z]=o[p],o[p]=se}return o.length=a,o}var ov=FS(function(o){var a=[];return o.charCodeAt(0)===46&&a.push(""),o.replace(sr,function(p,k,B,Z){a.push(B?Z.replace(Ot,"$1"):k||p)}),a});function ma(o){if(typeof o=="string"||Fo(o))return o;var a=o+"";return a=="0"&&1/o==-1/0?"-0":a}function qc(o){if(o!=null){try{return Wo.call(o)}catch{}try{return o+""}catch{}}return""}function zS(o,a){return zn(et,function(p){var k="_."+p[0];a&p[1]&&!So(o,k)&&o.push(k)}),o.sort()}function sv(o){if(o instanceof br)return o.clone();var a=new ii(o.__wrapped__,o.__chain__);return a.__actions__=si(o.__actions__),a.__index__=o.__index__,a.__values__=o.__values__,a}function $S(o,a,p){(p?Ji(o,a,p):a===t)?a=1:a=cn(Tr(a),0);var k=o==null?0:o.length;if(!k||a<1)return[];for(var B=0,Z=0,se=Ne(ta(k/a));B<k;)se[Z++]=Di(o,B,B+=a);return se}function US(o){for(var a=-1,p=o==null?0:o.length,k=0,B=[];++a<p;){var Z=o[a];Z&&(B[k++]=Z)}return B}function WS(){var o=arguments.length;if(!o)return[];for(var a=Ne(o-1),p=arguments[0],k=o;k--;)a[k-1]=arguments[k];return Ai(_r(p)?si(p):[p],Un(a,1))}var VS=gr(function(o,a){return Vn(o)?As(o,Un(a,1,Vn,!0)):[]}),GS=gr(function(o,a){var p=ss(a);return Vn(p)&&(p=t),Vn(o)?As(o,Un(a,1,Vn,!0),lr(p,2)):[]}),ZS=gr(function(o,a){var p=ss(a);return Vn(p)&&(p=t),Vn(o)?As(o,Un(a,1,Vn,!0),t,p):[]});function KS(o,a,p){var k=o==null?0:o.length;return k?(a=p||a===t?1:Tr(a),Di(o,a<0?0:a,k)):[]}function YS(o,a,p){var k=o==null?0:o.length;return k?(a=p||a===t?1:Tr(a),a=k-a,Di(o,0,a<0?0:a)):[]}function XS(o,a){return o&&o.length?ql(o,lr(a,3),!0,!0):[]}function JS(o,a){return o&&o.length?ql(o,lr(a,3),!0):[]}function QS(o,a,p,k){var B=o==null?0:o.length;return B?(p&&typeof p!="number"&&Ji(o,a,p)&&(p=0,k=B),bf(o,a,p,k)):[]}function av(o,a,p){var k=o==null?0:o.length;if(!k)return-1;var B=p==null?0:Tr(p);return B<0&&(B=cn(k+B,0)),ms(o,lr(a,3),B)}function lv(o,a,p){var k=o==null?0:o.length;if(!k)return-1;var B=k-1;return p!==t&&(B=Tr(p),B=p<0?cn(k+B,0):Ln(B,k-1)),ms(o,lr(a,3),B,!0)}function cv(o){var a=o==null?0:o.length;return a?Un(o,1):[]}function eC(o){var a=o==null?0:o.length;return a?Un(o,be):[]}function tC(o,a){var p=o==null?0:o.length;return p?(a=a===t?1:Tr(a),Un(o,a)):[]}function rC(o){for(var a=-1,p=o==null?0:o.length,k={};++a<p;){var B=o[a];k[B[0]]=B[1]}return k}function uv(o){return o&&o.length?o[0]:t}function nC(o,a,p){var k=o==null?0:o.length;if(!k)return-1;var B=p==null?0:Tr(p);return B<0&&(B=cn(k+B,0)),Co(o,a,B)}function iC(o){var a=o==null?0:o.length;return a?Di(o,0,-1):[]}var oC=gr(function(o){var a=Kr(o,zl);return a.length&&a[0]===o[0]?ua(a):[]}),sC=gr(function(o){var a=ss(o),p=Kr(o,zl);return a===ss(p)?a=t:p.pop(),p.length&&p[0]===o[0]?ua(p,lr(a,2)):[]}),aC=gr(function(o){var a=ss(o),p=Kr(o,zl);return a=typeof a=="function"?a:t,a&&p.pop(),p.length&&p[0]===o[0]?ua(p,t,a):[]});function lC(o,a){return o==null?"":Da.call(o,a)}function ss(o){var a=o==null?0:o.length;return a?o[a-1]:t}function cC(o,a,p){var k=o==null?0:o.length;if(!k)return-1;var B=k;return p!==t&&(B=Tr(p),B=B<0?cn(k+B,0):Ln(B,k-1)),a===a?lf(o,a,B):ms(o,Zs,B,!0)}function uC(o,a){return o&&o.length?ha(o,Tr(a)):t}var fC=gr(fv);function fv(o,a){return o&&o.length&&a&&a.length?Ec(o,a):o}function dC(o,a,p){return o&&o.length&&a&&a.length?Ec(o,a,lr(p,2)):o}function hC(o,a,p){return o&&o.length&&a&&a.length?Ec(o,a,t,p):o}var pC=Ka(function(o,a){var p=o==null?0:o.length,k=_c(o,a);return kc(o,Kr(a,function(B){return Ya(B,p)?+B:B}).sort(Ga)),k});function gC(o,a){var p=[];if(!(o&&o.length))return p;var k=-1,B=[],Z=o.length;for(a=lr(a,3);++k<Z;){var se=o[k];a(se,k,o)&&(p.push(se),B.push(k))}return kc(o,B),p}function Ph(o){return o==null?o:Cl.call(o)}function mC(o,a,p){var k=o==null?0:o.length;return k?(p&&typeof p!="number"&&Ji(o,a,p)?(a=0,p=k):(a=a==null?0:Tr(a),p=p===t?k:Tr(p)),Di(o,a,p)):[]}function vC(o,a){return jl(o,a)}function yC(o,a,p){return Bl(o,a,lr(p,2))}function bC(o,a){var p=o==null?0:o.length;if(p){var k=jl(o,a);if(k<p&&Ls(o[k],a))return k}return-1}function _C(o,a){return jl(o,a,!0)}function xC(o,a,p){return Bl(o,a,lr(p,2),!0)}function SC(o,a){var p=o==null?0:o.length;if(p){var k=jl(o,a,!0)-1;if(Ls(o[k],a))return k}return-1}function CC(o){return o&&o.length?Au(o):[]}function wC(o,a){return o&&o.length?Au(o,lr(a,2)):[]}function AC(o){var a=o==null?0:o.length;return a?Di(o,1,a):[]}function TC(o,a,p){return o&&o.length?(a=p||a===t?1:Tr(a),Di(o,0,a<0?0:a)):[]}function EC(o,a,p){var k=o==null?0:o.length;return k?(a=p||a===t?1:Tr(a),a=k-a,Di(o,a<0?0:a,k)):[]}function kC(o,a){return o&&o.length?ql(o,lr(a,3),!1,!0):[]}function RC(o,a){return o&&o.length?ql(o,lr(a,3)):[]}var IC=gr(function(o){return Tn(Un(o,1,Vn,!0))}),LC=gr(function(o){var a=ss(o);return Vn(a)&&(a=t),Tn(Un(o,1,Vn,!0),lr(a,2))}),MC=gr(function(o){var a=ss(o);return a=typeof a=="function"?a:t,Tn(Un(o,1,Vn,!0),t,a)});function DC(o){return o&&o.length?Tn(o):[]}function OC(o,a){return o&&o.length?Tn(o,lr(a,2)):[]}function PC(o,a){return a=typeof a=="function"?a:t,o&&o.length?Tn(o,t,a):[]}function Nh(o){if(!(o&&o.length))return[];var a=0;return o=Wi(o,function(p){if(Vn(p))return a=cn(p.length,a),!0}),Te(a,function(p){return Kr(o,T(p))})}function dv(o,a){if(!(o&&o.length))return[];var p=Nh(o);return a==null?p:Kr(p,function(k){return an(a,t,k)})}var NC=gr(function(o,a){return Vn(o)?As(o,a):[]}),FC=gr(function(o){return Oc(Wi(o,Vn))}),jC=gr(function(o){var a=ss(o);return Vn(a)&&(a=t),Oc(Wi(o,Vn),lr(a,2))}),BC=gr(function(o){var a=ss(o);return a=typeof a=="function"?a:t,Oc(Wi(o,Vn),t,a)}),HC=gr(Nh);function qC(o,a){return Pc(o||[],a||[],fi)}function zC(o,a){return Pc(o||[],a||[],Is)}var $C=gr(function(o){var a=o.length,p=a>1?o[a-1]:t;return p=typeof p=="function"?(o.pop(),p):t,dv(o,p)});function hv(o){var a=U(o);return a.__chain__=!0,a}function UC(o,a){return a(o),o}function gd(o,a){return a(o)}var WC=Ka(function(o){var a=o.length,p=a?o[0]:0,k=this.__wrapped__,B=function(Z){return _c(Z,o)};return a>1||this.__actions__.length||!(k instanceof br)||!Ya(p)?this.thru(B):(k=k.slice(p,+p+(a?1:0)),k.__actions__.push({func:gd,args:[B],thisArg:t}),new ii(k,this.__chain__).thru(function(Z){return a&&!Z.length&&Z.push(t),Z}))});function VC(){return hv(this)}function GC(){return new ii(this.value(),this.__chain__)}function ZC(){this.__values__===t&&(this.__values__=Ev(this.value()));var o=this.__index__>=this.__values__.length,a=o?t:this.__values__[this.__index__++];return{done:o,value:a}}function KC(){return this}function YC(o){for(var a,p=this;p instanceof Mo;){var k=sv(p);k.__index__=0,k.__values__=t,a?B.__wrapped__=k:a=k;var B=k;p=p.__wrapped__}return B.__wrapped__=o,a}function XC(){var o=this.__wrapped__;if(o instanceof br){var a=o;return this.__actions__.length&&(a=new br(this)),a=a.reverse(),a.__actions__.push({func:gd,args:[Ph],thisArg:t}),new ii(a,this.__chain__)}return this.thru(Ph)}function JC(){return oi(this.__wrapped__,this.__actions__)}var QC=Ul(function(o,a,p){zr.call(o,p)?++o[p]:Li(o,p,1)});function ew(o,a,p){var k=_r(o)?Ta:yu;return p&&Ji(o,a,p)&&(a=t),k(o,lr(a,3))}function tw(o,a){var p=_r(o)?Wi:bu;return p(o,lr(a,3))}var rw=ie(av),nw=ie(lv);function iw(o,a){return Un(md(o,a),1)}function ow(o,a){return Un(md(o,a),be)}function sw(o,a,p){return p=p===t?1:Tr(p),Un(md(o,a),p)}function pv(o,a){var p=_r(o)?zn:Qo;return p(o,lr(a,3))}function gv(o,a){var p=_r(o)?fl:wc;return p(o,lr(a,3))}var aw=Ul(function(o,a,p){zr.call(o,p)?o[p].push(a):Li(o,p,[a])});function lw(o,a,p,k){o=go(o)?o:Lu(o),p=p&&!k?Tr(p):0;var B=o.length;return p<0&&(p=cn(B+p,0)),xd(o)?p<=B&&o.indexOf(a,p)>-1:!!B&&Co(o,a,p)>-1}var cw=gr(function(o,a,p){var k=-1,B=typeof a=="function",Z=go(o)?Ne(o.length):[];return Qo(o,function(se){Z[++k]=B?an(a,se,p):co(se,a,p)}),Z}),uw=Ul(function(o,a,p){Li(o,p,a)});function md(o,a){var p=_r(o)?Kr:Ki;return p(o,lr(a,3))}function fw(o,a,p,k){return o==null?[]:(_r(a)||(a=a==null?[]:[a]),p=k?t:p,_r(p)||(p=p==null?[]:[p]),Nl(o,a,p))}var dw=Ul(function(o,a,p){o[p?0:1].push(a)},function(){return[[],[]]});function hw(o,a,p){var k=_r(o)?Ea:$,B=arguments.length<3;return k(o,lr(a,4),p,B,Qo)}function pw(o,a,p){var k=_r(o)?dl:$,B=arguments.length<3;return k(o,lr(a,4),p,B,wc)}function gw(o,a){var p=_r(o)?Wi:bu;return p(o,bd(lr(a,3)))}function mw(o){var a=_r(o)?mi:Ua;return a(o)}function vw(o,a,p){(p?Ji(o,a,p):a===t)?a=1:a=Tr(a);var k=_r(o)?Ii:Ic;return k(o,a)}function yw(o){var a=_r(o)?lo:Mc;return a(o)}function bw(o){if(o==null)return 0;if(go(o))return xd(o)?Xs(o):o.length;var a=Hi(o);return a==lt||a==_t?o.size:Po(o).length}function _w(o,a,p){var k=_r(o)?$o:_f;return p&&Ji(o,a,p)&&(a=t),k(o,lr(a,3))}var xw=gr(function(o,a){if(o==null)return[];var p=a.length;return p>1&&Ji(o,a[0],a[1])?a=[]:p>2&&Ji(a[0],a[1],a[2])&&(a=[a[0]]),Nl(o,Un(a,1),[])}),vd=Ma||function(){return dr.Date.now()};function Sw(o,a){if(typeof a!="function")throw new Bi(u);return o=Tr(o),function(){if(--o<1)return a.apply(this,arguments)}}function mv(o,a,p){return a=p?t:a,a=o&&a==null?o.length:a,Za(o,K,t,t,t,t,a)}function vv(o,a){var p;if(typeof a!="function")throw new Bi(u);return o=Tr(o),function(){return--o>0&&(p=a.apply(this,arguments)),o<=1&&(a=t),p}}var Fh=gr(function(o,a,p){var k=E;if(p.length){var B=wo(p,Ru(Fh));k|=q}return Za(o,k,a,p,B)}),yv=gr(function(o,a,p){var k=E|x;if(p.length){var B=wo(p,Ru(yv));k|=q}return Za(a,k,o,p,B)});function bv(o,a,p){a=p?t:a;var k=Za(o,O,t,t,t,t,t,a);return k.placeholder=bv.placeholder,k}function _v(o,a,p){a=p?t:a;var k=Za(o,H,t,t,t,t,t,a);return k.placeholder=_v.placeholder,k}function xv(o,a,p){var k,B,Z,se,fe,xe,rt=0,nt=!1,ut=!1,Ft=!0;if(typeof o!="function")throw new Bi(u);a=as(a)||0,Mn(p)&&(nt=!!p.leading,ut="maxWait"in p,Z=ut?cn(as(p.maxWait)||0,a):Z,Ft="trailing"in p?!!p.trailing:Ft);function Xt(Gn){var Ms=k,Qa=B;return k=B=t,rt=Gn,se=o.apply(Qa,Ms),se}function cr(Gn){return rt=Gn,fe=Af(Fr,a),nt?Xt(Gn):se}function Ir(Gn){var Ms=Gn-xe,Qa=Gn-rt,Hv=a-Ms;return ut?Ln(Hv,Z-Qa):Hv}function ur(Gn){var Ms=Gn-xe,Qa=Gn-rt;return xe===t||Ms>=a||Ms<0||ut&&Qa>=Z}function Fr(){var Gn=vd();if(ur(Gn))return qr(Gn);fe=Af(Fr,Ir(Gn))}function qr(Gn){return fe=t,Ft&&k?Xt(Gn):(k=B=t,se)}function jo(){fe!==t&&ns(fe),rt=0,k=xe=B=fe=t}function Qi(){return fe===t?se:qr(vd())}function Bo(){var Gn=vd(),Ms=ur(Gn);if(k=arguments,B=this,xe=Gn,Ms){if(fe===t)return cr(xe);if(ut)return ns(fe),fe=Af(Fr,a),Xt(xe)}return fe===t&&(fe=Af(Fr,a)),se}return Bo.cancel=jo,Bo.flush=Qi,Bo}var Cw=gr(function(o,a){return Cc(o,1,a)}),ww=gr(function(o,a,p){return Cc(o,as(a)||0,p)});function Aw(o){return Za(o,X)}function yd(o,a){if(typeof o!="function"||a!=null&&typeof a!="function")throw new Bi(u);var p=function(){var k=arguments,B=a?a.apply(this,k):k[0],Z=p.cache;if(Z.has(B))return Z.get(B);var se=o.apply(this,k);return p.cache=Z.set(B,se)||Z,se};return p.cache=new(yd.Cache||Do),p}yd.Cache=Do;function bd(o){if(typeof o!="function")throw new Bi(u);return function(){var a=arguments;switch(a.length){case 0:return!o.call(this);case 1:return!o.call(this,a[0]);case 2:return!o.call(this,a[0],a[1]);case 3:return!o.call(this,a[0],a[1],a[2])}return!o.apply(this,a)}}function Tw(o){return vv(2,o)}var Ew=xf(function(o,a){a=a.length==1&&_r(a[0])?Kr(a[0],Wt(lr())):Kr(Un(a,1),Wt(lr()));var p=a.length;return gr(function(k){for(var B=-1,Z=Ln(k.length,p);++B<Z;)k[B]=a[B].call(this,k[B]);return an(o,this,k)})}),jh=gr(function(o,a){var p=wo(a,Ru(jh));return Za(o,q,t,a,p)}),Sv=gr(function(o,a){var p=wo(a,Ru(Sv));return Za(o,z,t,a,p)}),kw=Ka(function(o,a){return Za(o,ue,t,t,t,a)});function Rw(o,a){if(typeof o!="function")throw new Bi(u);return a=a===t?a:Tr(a),gr(o,a)}function Iw(o,a){if(typeof o!="function")throw new Bi(u);return a=a==null?0:cn(Tr(a),0),gr(function(p){var k=p[a],B=fo(p,0,a);return k&&Ai(B,k),an(o,this,B)})}function Lw(o,a,p){var k=!0,B=!0;if(typeof o!="function")throw new Bi(u);return Mn(p)&&(k="leading"in p?!!p.leading:k,B="trailing"in p?!!p.trailing:B),xv(o,a,{leading:k,maxWait:a,trailing:B})}function Mw(o){return mv(o,1)}function Dw(o,a){return jh(rs(a),o)}function Ow(){if(!arguments.length)return[];var o=arguments[0];return _r(o)?o:[o]}function Pw(o){return di(o,S)}function Nw(o,a){return a=typeof a=="function"?a:t,di(o,S,a)}function Fw(o){return di(o,w|S)}function jw(o,a){return a=typeof a=="function"?a:t,di(o,w|S,a)}function Bw(o,a){return a==null||Sc(o,a,vi(a))}function Ls(o,a){return o===a||o!==o&&a!==a}var Hw=ho(Ts),qw=ho(function(o,a){return o>=a}),zc=Dl(function(){return arguments}())?Dl:function(o){return Nn(o)&&zr.call(o,"callee")&&!_l.call(o,"callee")},_r=Ne.isArray,zw=Qr?Wt(Qr):Es;function go(o){return o!=null&&_d(o.length)&&!Xa(o)}function Vn(o){return Nn(o)&&go(o)}function $w(o){return o===!0||o===!1||Nn(o)&&Pn(o)==ze}var Wl=Sl||Kh,Uw=ci?Wt(ci):xu;function Ww(o){return Nn(o)&&o.nodeType===1&&!Tf(o)}function Vw(o){if(o==null)return!0;if(go(o)&&(_r(o)||typeof o=="string"||typeof o.splice=="function"||Wl(o)||Iu(o)||zc(o)))return!o.length;var a=Hi(o);if(a==lt||a==_t)return!o.size;if(wf(o))return!Po(o).length;for(var p in o)if(zr.call(o,p))return!1;return!0}function Gw(o,a){return Ha(o,a)}function Zw(o,a,p){p=typeof p=="function"?p:t;var k=p?p(o,a):t;return k===t?Ha(o,a,t,p):!!k}function Bh(o){if(!Nn(o))return!1;var a=Pn(o);return a==Ae||a==De||typeof o.message=="string"&&typeof o.name=="string"&&!Tf(o)}function Kw(o){return typeof o=="number"&&na(o)}function Xa(o){if(!Mn(o))return!1;var a=Pn(o);return a==_e||a==Ge||a==je||a==it}function Cv(o){return typeof o=="number"&&o==Tr(o)}function _d(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=ce}function Mn(o){var a=typeof o;return o!=null&&(a=="object"||a=="function")}function Nn(o){return o!=null&&typeof o=="object"}var wv=gi?Wt(gi):da;function Yw(o,a){return o===a||Tc(o,a,Rh(a))}function Xw(o,a,p){return p=typeof p=="function"?p:t,Tc(o,a,Rh(a),p)}function Jw(o){return Av(o)&&o!=+o}function Qw(o){if(NS(o))throw new or(l);return Su(o)}function e3(o){return o===null}function t3(o){return o==null}function Av(o){return typeof o=="number"||Nn(o)&&Pn(o)==$e}function Tf(o){if(!Nn(o)||Pn(o)!=Le)return!1;var a=ys(o);if(a===null)return!0;var p=zr.call(a,"constructor")&&a.constructor;return typeof p=="function"&&p instanceof p&&Wo.call(p)==cc}var Hh=qn?Wt(qn):ks;function r3(o){return Cv(o)&&o>=-9007199254740991&&o<=ce}var Tv=xo?Wt(xo):Ol;function xd(o){return typeof o=="string"||!_r(o)&&Nn(o)&&Pn(o)==wt}function Fo(o){return typeof o=="symbol"||Nn(o)&&Pn(o)==bt}var Iu=Ui?Wt(Ui):Oo;function n3(o){return o===t}function i3(o){return Nn(o)&&Hi(o)==Me}function o3(o){return Nn(o)&&Pn(o)==pt}var s3=ho(Zi),a3=ho(function(o,a){return o<=a});function Ev(o){if(!o)return[];if(go(o))return xd(o)?fn(o):si(o);if(Vi&&o[Vi])return sc(o[Vi]());var a=Hi(o),p=a==lt?ac:a==_t?Ra:Lu;return p(o)}function Ja(o){if(!o)return o===0?o:0;if(o=as(o),o===be||o===-1/0){var a=o<0?-1:1;return a*ke}return o===o?o:0}function Tr(o){var a=Ja(o),p=a%1;return a===a?p?a-p:a:0}function kv(o){return o?ws(Tr(o),0,oe):0}function as(o){if(typeof o=="number")return o;if(Fo(o))return le;if(Mn(o)){var a=typeof o.valueOf=="function"?o.valueOf():o;o=Mn(a)?a+"":a}if(typeof o!="string")return o===0?o:+o;o=gt(o);var p=nr.test(o);return p||fr.test(o)?Vt(o.slice(2),p?2:8):Ut.test(o)?le:+o}function Rv(o){return Xi(o,mo(o))}function l3(o){return o?ws(Tr(o),-9007199254740991,ce):o===0?o:0}function tn(o){return o==null?"":Oi(o)}var c3=d(function(o,a){if(wf(a)||go(a)){Xi(a,vi(a),o);return}for(var p in a)zr.call(a,p)&&fi(o,p,a[p])}),Iv=d(function(o,a){Xi(a,mo(a),o)}),Sd=d(function(o,a,p,k){Xi(a,mo(a),o,k)}),u3=d(function(o,a,p,k){Xi(a,vi(a),o,k)}),f3=Ka(_c);function d3(o,a){var p=Lo(o);return a==null?p:vu(p,a)}var h3=gr(function(o,a){o=Wr(o);var p=-1,k=a.length,B=k>2?a[2]:t;for(B&&Ji(a[0],a[1],B)&&(k=1);++p<k;)for(var Z=a[p],se=mo(Z),fe=-1,xe=se.length;++fe<xe;){var rt=se[fe],nt=o[rt];(nt===t||Ls(nt,Uo[rt])&&!zr.call(o,rt))&&(o[rt]=Z[rt])}return o}),p3=gr(function(o){return o.push(t,Gm),an(Lv,t,o)});function g3(o,a){return gs(o,lr(a,3),Mi)}function m3(o,a){return gs(o,lr(a,3),Rl)}function v3(o,a){return o==null?o:Ac(o,lr(a,3),mo)}function y3(o,a){return o==null?o:_u(o,lr(a,3),mo)}function b3(o,a){return o&&Mi(o,lr(a,3))}function _3(o,a){return o&&Rl(o,lr(a,3))}function x3(o){return o==null?[]:la(o,vi(o))}function S3(o){return o==null?[]:la(o,mo(o))}function qh(o,a,p){var k=o==null?t:es(o,a);return k===t?p:k}function C3(o,a){return o!=null&&Ym(o,a,Il)}function zh(o,a){return o!=null&&Ym(o,a,ca)}var w3=at(function(o,a,p){a!=null&&typeof a.toString!="function"&&(a=To.call(a)),o[a]=p},Uh(vo)),A3=at(function(o,a,p){a!=null&&typeof a.toString!="function"&&(a=To.call(a)),zr.call(o,a)?o[a].push(p):o[a]=[p]},lr),T3=gr(co);function vi(o){return go(o)?ja(o):Po(o)}function mo(o){return go(o)?ja(o,!0):qa(o)}function E3(o,a){var p={};return a=lr(a,3),Mi(o,function(k,B,Z){Li(p,a(k,B,Z),k)}),p}function k3(o,a){var p={};return a=lr(a,3),Mi(o,function(k,B,Z){Li(p,B,a(k,B,Z))}),p}var R3=d(function(o,a,p){ts(o,a,p)}),Lv=d(function(o,a,p,k){ts(o,a,p,k)}),I3=Ka(function(o,a){var p={};if(o==null)return p;var k=!1;a=Kr(a,function(Z){return Z=No(Z,o),k||(k=Z.length>1),Z}),Xi(o,Eh(o),p),k&&(p=di(p,w|b|S,wS));for(var B=a.length;B--;)Dc(p,a[B]);return p});function L3(o,a){return Mv(o,bd(lr(a)))}var M3=Ka(function(o,a){return o==null?{}:$a(o,a)});function Mv(o,a){if(o==null)return{};var p=Kr(Eh(o),function(k){return[k]});return a=lr(a),pa(o,p,function(k,B){return a(k,B[0])})}function D3(o,a,p){a=No(a,o);var k=-1,B=a.length;for(B||(B=1,o=t);++k<B;){var Z=o==null?t:o[ma(a[k])];Z===t&&(k=B,Z=p),o=Xa(Z)?Z.call(o):Z}return o}function O3(o,a,p){return o==null?o:Is(o,a,p)}function P3(o,a,p,k){return k=typeof k=="function"?k:t,o==null?o:Is(o,a,p,k)}var Dv=fd(vi),Ov=fd(mo);function N3(o,a,p){var k=_r(o),B=k||Wl(o)||Iu(o);if(a=lr(a,4),p==null){var Z=o&&o.constructor;B?p=k?new Z:[]:Mn(o)?p=Xa(Z)?Lo(ys(o)):{}:p={}}return(B?zn:Mi)(o,function(se,fe,xe){return a(p,se,fe,xe)}),p}function F3(o,a){return o==null?!0:Dc(o,a)}function j3(o,a,p){return o==null?o:Wa(o,a,rs(p))}function B3(o,a,p,k){return k=typeof k=="function"?k:t,o==null?o:Wa(o,a,rs(p),k)}function Lu(o){return o==null?[]:hr(o,vi(o))}function H3(o){return o==null?[]:hr(o,mo(o))}function q3(o,a,p){return p===t&&(p=a,a=t),p!==t&&(p=as(p),p=p===p?p:0),a!==t&&(a=as(a),a=a===a?a:0),ws(as(o),a,p)}function z3(o,a,p){return a=Ja(a),p===t?(p=a,a=0):p=Ja(p),o=as(o),Ll(o,a,p)}function $3(o,a,p){if(p&&typeof p!="boolean"&&Ji(o,a,p)&&(a=p=t),p===t&&(typeof a=="boolean"?(p=a,a=t):typeof o=="boolean"&&(p=o,o=t)),o===t&&a===t?(o=0,a=1):(o=Ja(o),a===t?(a=o,o=0):a=Ja(a)),o>a){var k=o;o=a,a=k}if(p||o%1||a%1){var B=Zo();return Ln(o+B*(a-o+Yt("1e-"+((B+"").length-1))),a)}return Rs(o,a)}var U3=M(function(o,a,p){return a=a.toLowerCase(),o+(p?Pv(a):a)});function Pv(o){return $h(tn(o).toLowerCase())}function Nv(o){return o=tn(o),o&&o.replace(yr,Ei).replace(no,"")}function W3(o,a,p){o=tn(o),a=Oi(a);var k=o.length;p=p===t?k:ws(Tr(p),0,k);var B=p;return p-=a.length,p>=0&&o.slice(p,B)==a}function V3(o){return o=tn(o),o&&vt.test(o)?o.replace(xt,Ks):o}function G3(o){return o=tn(o),o&&Tt.test(o)?o.replace(Qe,"\\$&"):o}var Z3=M(function(o,a,p){return o+(p?"-":"")+a.toLowerCase()}),K3=M(function(o,a,p){return o+(p?" ":"")+a.toLowerCase()}),Y3=y("toLowerCase");function X3(o,a,p){o=tn(o),a=Tr(a);var k=a?Xs(o):0;if(!a||k>=a)return o;var B=(a-k)/2;return Dr(bs(B),p)+o+Dr(ta(B),p)}function J3(o,a,p){o=tn(o),a=Tr(a);var k=a?Xs(o):0;return a&&k<a?o+Dr(a-k,p):o}function Q3(o,a,p){o=tn(o),a=Tr(a);var k=a?Xs(o):0;return a&&k<a?Dr(a-k,p)+o:o}function eA(o,a,p){return p||a==null?a=0:a&&(a=+a),dc(tn(o).replace(yt,""),a||0)}function tA(o,a,p){return(p?Ji(o,a,p):a===t)?a=1:a=Tr(a),Fl(tn(o),a)}function rA(){var o=arguments,a=tn(o[0]);return o.length<3?a:a.replace(o[1],o[2])}var nA=M(function(o,a,p){return o+(p?"_":"")+a.toLowerCase()});function iA(o,a,p){return p&&typeof p!="number"&&Ji(o,a,p)&&(a=p=t),p=p===t?oe:p>>>0,p?(o=tn(o),o&&(typeof a=="string"||a!=null&&!Hh(a))&&(a=Oi(a),!a&&Ys(o))?fo(fn(o),0,p):o.split(a,p)):[]}var oA=M(function(o,a,p){return o+(p?" ":"")+$h(a)});function sA(o,a,p){return o=tn(o),p=p==null?0:ws(Tr(p),0,o.length),a=Oi(a),o.slice(p,p+a.length)==a}function aA(o,a,p){var k=U.templateSettings;p&&Ji(o,a,p)&&(a=t),o=tn(o),a=Sd({},a,k,Vm);var B=Sd({},a.imports,k.imports,Vm),Z=vi(B),se=hr(B,Z),fe,xe,rt=0,nt=a.interpolate||Kn,ut="__p += '",Ft=Js((a.escape||Kn).source+"|"+nt.source+"|"+(nt===rr?$t:Kn).source+"|"+(a.evaluate||Kn).source+"|$","g"),Xt="//# sourceURL="+(zr.call(a,"sourceURL")?(a.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Or+"]")+`
|
35
|
+
`)}function DS(o){return _r(o)||zc(o)||!!(xl&&o&&o[xl])}function Ya(o,a){var p=typeof o;return a=a??ce,!!a&&(p=="number"||p!="symbol"&&Ur.test(o))&&o>-1&&o%1==0&&o<a}function Ji(o,a,p){if(!Mn(p))return!1;var k=typeof a;return(k=="number"?go(p)&&Ya(a,p.length):k=="string"&&a in p)?Ls(p[a],o):!1}function Lh(o,a){if(_r(o))return!1;var p=typeof o;return p=="number"||p=="symbol"||p=="boolean"||o==null||Fo(o)?!0:qt.test(o)||!Bt.test(o)||a!=null&&o in Wr(a)}function OS(o){var a=typeof o;return a=="string"||a=="number"||a=="symbol"||a=="boolean"?o!=="__proto__":o===null}function Mh(o){var a=dd(o),p=U[a];if(typeof p!="function"||!(a in br.prototype))return!1;if(o===p)return!0;var k=kh(p);return!!k&&o===k[0]}function PS(o){return!!ln&&ln in o}var NS=en?Xa:Kh;function wf(o){var a=o&&o.constructor,p=typeof a=="function"&&a.prototype||Uo;return o===p}function Jm(o){return o===o&&!Mn(o)}function Qm(o,a){return function(p){return p==null?!1:p[o]===a&&(a!==t||o in Wr(p))}}function FS(o){var a=yd(o,function(k){return p.size===m&&p.clear(),k}),p=a.cache;return a}function jS(o,a){var p=o[1],k=a[1],B=p|k,Z=B<(E|x|K),se=k==K&&p==O||k==K&&p==ue&&o[7].length<=a[8]||k==(K|ue)&&a[7].length<=a[8]&&p==O;if(!(Z||se))return o;k&E&&(o[2]=a[2],B|=p&E?0:L);var fe=a[3];if(fe){var xe=o[3];o[3]=xe?Eu(xe,fe,a[4]):fe,o[4]=xe?wo(o[3],R):a[4]}return fe=a[5],fe&&(xe=o[5],o[5]=xe?Bc(xe,fe,a[6]):fe,o[6]=xe?wo(o[5],R):a[6]),fe=a[7],fe&&(o[7]=fe),k&K&&(o[8]=o[8]==null?a[8]:Ln(o[8],a[8])),o[9]==null&&(o[9]=a[9]),o[0]=a[0],o[1]=B,o}function BS(o){var a=[];if(o!=null)for(var p in Wr(o))a.push(p);return a}function HS(o){return To.call(o)}function ev(o,a,p){return a=cn(a===t?o.length-1:a,0),function(){for(var k=arguments,B=-1,Z=cn(k.length-a,0),se=Ne(Z);++B<Z;)se[B]=k[a+B];B=-1;for(var fe=Ne(a+1);++B<a;)fe[B]=k[B];return fe[a]=p(se),an(o,this,fe)}}function tv(o,a){return a.length<2?o:es(o,Di(a,0,-1))}function qS(o,a){for(var p=o.length,k=Ln(a.length,p),B=si(o);k--;){var Z=a[k];o[k]=Ya(Z,p)?B[Z]:t}return o}function Dh(o,a){if(!(a==="constructor"&&typeof o[a]=="function")&&a!="__proto__")return o[a]}var rv=iv(Lc),Af=fu||function(o,a){return dr.setTimeout(o,a)},Oh=iv(wu);function nv(o,a,p){var k=a+"";return Oh(o,MS(k,zS(RS(k),p)))}function iv(o){var a=0,p=0;return function(){var k=Go(),B=J-(k-p);if(p=k,B>0){if(++a>=re)return arguments[0]}else a=0;return o.apply(t,arguments)}}function pd(o,a){var p=-1,k=o.length,B=k-1;for(a=a===t?k:a;++p<a;){var Z=Rs(p,B),se=o[Z];o[Z]=o[p],o[p]=se}return o.length=a,o}var ov=FS(function(o){var a=[];return o.charCodeAt(0)===46&&a.push(""),o.replace(sr,function(p,k,B,Z){a.push(B?Z.replace(Ot,"$1"):k||p)}),a});function ma(o){if(typeof o=="string"||Fo(o))return o;var a=o+"";return a=="0"&&1/o==-1/0?"-0":a}function qc(o){if(o!=null){try{return Wo.call(o)}catch{}try{return o+""}catch{}}return""}function zS(o,a){return zn(et,function(p){var k="_."+p[0];a&p[1]&&!So(o,k)&&o.push(k)}),o.sort()}function sv(o){if(o instanceof br)return o.clone();var a=new ii(o.__wrapped__,o.__chain__);return a.__actions__=si(o.__actions__),a.__index__=o.__index__,a.__values__=o.__values__,a}function $S(o,a,p){(p?Ji(o,a,p):a===t)?a=1:a=cn(Tr(a),0);var k=o==null?0:o.length;if(!k||a<1)return[];for(var B=0,Z=0,se=Ne(ta(k/a));B<k;)se[Z++]=Di(o,B,B+=a);return se}function US(o){for(var a=-1,p=o==null?0:o.length,k=0,B=[];++a<p;){var Z=o[a];Z&&(B[k++]=Z)}return B}function WS(){var o=arguments.length;if(!o)return[];for(var a=Ne(o-1),p=arguments[0],k=o;k--;)a[k-1]=arguments[k];return Ai(_r(p)?si(p):[p],Un(a,1))}var VS=gr(function(o,a){return Vn(o)?As(o,Un(a,1,Vn,!0)):[]}),GS=gr(function(o,a){var p=ss(a);return Vn(p)&&(p=t),Vn(o)?As(o,Un(a,1,Vn,!0),lr(p,2)):[]}),ZS=gr(function(o,a){var p=ss(a);return Vn(p)&&(p=t),Vn(o)?As(o,Un(a,1,Vn,!0),t,p):[]});function KS(o,a,p){var k=o==null?0:o.length;return k?(a=p||a===t?1:Tr(a),Di(o,a<0?0:a,k)):[]}function YS(o,a,p){var k=o==null?0:o.length;return k?(a=p||a===t?1:Tr(a),a=k-a,Di(o,0,a<0?0:a)):[]}function XS(o,a){return o&&o.length?ql(o,lr(a,3),!0,!0):[]}function JS(o,a){return o&&o.length?ql(o,lr(a,3),!0):[]}function QS(o,a,p,k){var B=o==null?0:o.length;return B?(p&&typeof p!="number"&&Ji(o,a,p)&&(p=0,k=B),bf(o,a,p,k)):[]}function av(o,a,p){var k=o==null?0:o.length;if(!k)return-1;var B=p==null?0:Tr(p);return B<0&&(B=cn(k+B,0)),ms(o,lr(a,3),B)}function lv(o,a,p){var k=o==null?0:o.length;if(!k)return-1;var B=k-1;return p!==t&&(B=Tr(p),B=p<0?cn(k+B,0):Ln(B,k-1)),ms(o,lr(a,3),B,!0)}function cv(o){var a=o==null?0:o.length;return a?Un(o,1):[]}function eC(o){var a=o==null?0:o.length;return a?Un(o,be):[]}function tC(o,a){var p=o==null?0:o.length;return p?(a=a===t?1:Tr(a),Un(o,a)):[]}function rC(o){for(var a=-1,p=o==null?0:o.length,k={};++a<p;){var B=o[a];k[B[0]]=B[1]}return k}function uv(o){return o&&o.length?o[0]:t}function nC(o,a,p){var k=o==null?0:o.length;if(!k)return-1;var B=p==null?0:Tr(p);return B<0&&(B=cn(k+B,0)),Co(o,a,B)}function iC(o){var a=o==null?0:o.length;return a?Di(o,0,-1):[]}var oC=gr(function(o){var a=Kr(o,zl);return a.length&&a[0]===o[0]?ua(a):[]}),sC=gr(function(o){var a=ss(o),p=Kr(o,zl);return a===ss(p)?a=t:p.pop(),p.length&&p[0]===o[0]?ua(p,lr(a,2)):[]}),aC=gr(function(o){var a=ss(o),p=Kr(o,zl);return a=typeof a=="function"?a:t,a&&p.pop(),p.length&&p[0]===o[0]?ua(p,t,a):[]});function lC(o,a){return o==null?"":Da.call(o,a)}function ss(o){var a=o==null?0:o.length;return a?o[a-1]:t}function cC(o,a,p){var k=o==null?0:o.length;if(!k)return-1;var B=k;return p!==t&&(B=Tr(p),B=B<0?cn(k+B,0):Ln(B,k-1)),a===a?lf(o,a,B):ms(o,Zs,B,!0)}function uC(o,a){return o&&o.length?ha(o,Tr(a)):t}var fC=gr(fv);function fv(o,a){return o&&o.length&&a&&a.length?Ec(o,a):o}function dC(o,a,p){return o&&o.length&&a&&a.length?Ec(o,a,lr(p,2)):o}function hC(o,a,p){return o&&o.length&&a&&a.length?Ec(o,a,t,p):o}var pC=Ka(function(o,a){var p=o==null?0:o.length,k=_c(o,a);return kc(o,Kr(a,function(B){return Ya(B,p)?+B:B}).sort(Ga)),k});function gC(o,a){var p=[];if(!(o&&o.length))return p;var k=-1,B=[],Z=o.length;for(a=lr(a,3);++k<Z;){var se=o[k];a(se,k,o)&&(p.push(se),B.push(k))}return kc(o,B),p}function Ph(o){return o==null?o:Cl.call(o)}function mC(o,a,p){var k=o==null?0:o.length;return k?(p&&typeof p!="number"&&Ji(o,a,p)?(a=0,p=k):(a=a==null?0:Tr(a),p=p===t?k:Tr(p)),Di(o,a,p)):[]}function vC(o,a){return jl(o,a)}function yC(o,a,p){return Bl(o,a,lr(p,2))}function bC(o,a){var p=o==null?0:o.length;if(p){var k=jl(o,a);if(k<p&&Ls(o[k],a))return k}return-1}function _C(o,a){return jl(o,a,!0)}function xC(o,a,p){return Bl(o,a,lr(p,2),!0)}function SC(o,a){var p=o==null?0:o.length;if(p){var k=jl(o,a,!0)-1;if(Ls(o[k],a))return k}return-1}function CC(o){return o&&o.length?Au(o):[]}function wC(o,a){return o&&o.length?Au(o,lr(a,2)):[]}function AC(o){var a=o==null?0:o.length;return a?Di(o,1,a):[]}function TC(o,a,p){return o&&o.length?(a=p||a===t?1:Tr(a),Di(o,0,a<0?0:a)):[]}function EC(o,a,p){var k=o==null?0:o.length;return k?(a=p||a===t?1:Tr(a),a=k-a,Di(o,a<0?0:a,k)):[]}function kC(o,a){return o&&o.length?ql(o,lr(a,3),!1,!0):[]}function RC(o,a){return o&&o.length?ql(o,lr(a,3)):[]}var IC=gr(function(o){return Tn(Un(o,1,Vn,!0))}),LC=gr(function(o){var a=ss(o);return Vn(a)&&(a=t),Tn(Un(o,1,Vn,!0),lr(a,2))}),MC=gr(function(o){var a=ss(o);return a=typeof a=="function"?a:t,Tn(Un(o,1,Vn,!0),t,a)});function DC(o){return o&&o.length?Tn(o):[]}function OC(o,a){return o&&o.length?Tn(o,lr(a,2)):[]}function PC(o,a){return a=typeof a=="function"?a:t,o&&o.length?Tn(o,t,a):[]}function Nh(o){if(!(o&&o.length))return[];var a=0;return o=Wi(o,function(p){if(Vn(p))return a=cn(p.length,a),!0}),Te(a,function(p){return Kr(o,T(p))})}function dv(o,a){if(!(o&&o.length))return[];var p=Nh(o);return a==null?p:Kr(p,function(k){return an(a,t,k)})}var NC=gr(function(o,a){return Vn(o)?As(o,a):[]}),FC=gr(function(o){return Oc(Wi(o,Vn))}),jC=gr(function(o){var a=ss(o);return Vn(a)&&(a=t),Oc(Wi(o,Vn),lr(a,2))}),BC=gr(function(o){var a=ss(o);return a=typeof a=="function"?a:t,Oc(Wi(o,Vn),t,a)}),HC=gr(Nh);function qC(o,a){return Pc(o||[],a||[],fi)}function zC(o,a){return Pc(o||[],a||[],Is)}var $C=gr(function(o){var a=o.length,p=a>1?o[a-1]:t;return p=typeof p=="function"?(o.pop(),p):t,dv(o,p)});function hv(o){var a=U(o);return a.__chain__=!0,a}function UC(o,a){return a(o),o}function gd(o,a){return a(o)}var WC=Ka(function(o){var a=o.length,p=a?o[0]:0,k=this.__wrapped__,B=function(Z){return _c(Z,o)};return a>1||this.__actions__.length||!(k instanceof br)||!Ya(p)?this.thru(B):(k=k.slice(p,+p+(a?1:0)),k.__actions__.push({func:gd,args:[B],thisArg:t}),new ii(k,this.__chain__).thru(function(Z){return a&&!Z.length&&Z.push(t),Z}))});function VC(){return hv(this)}function GC(){return new ii(this.value(),this.__chain__)}function ZC(){this.__values__===t&&(this.__values__=Ev(this.value()));var o=this.__index__>=this.__values__.length,a=o?t:this.__values__[this.__index__++];return{done:o,value:a}}function KC(){return this}function YC(o){for(var a,p=this;p instanceof Mo;){var k=sv(p);k.__index__=0,k.__values__=t,a?B.__wrapped__=k:a=k;var B=k;p=p.__wrapped__}return B.__wrapped__=o,a}function XC(){var o=this.__wrapped__;if(o instanceof br){var a=o;return this.__actions__.length&&(a=new br(this)),a=a.reverse(),a.__actions__.push({func:gd,args:[Ph],thisArg:t}),new ii(a,this.__chain__)}return this.thru(Ph)}function JC(){return oi(this.__wrapped__,this.__actions__)}var QC=Ul(function(o,a,p){zr.call(o,p)?++o[p]:Li(o,p,1)});function ew(o,a,p){var k=_r(o)?Ta:yu;return p&&Ji(o,a,p)&&(a=t),k(o,lr(a,3))}function tw(o,a){var p=_r(o)?Wi:bu;return p(o,lr(a,3))}var rw=ie(av),nw=ie(lv);function iw(o,a){return Un(md(o,a),1)}function ow(o,a){return Un(md(o,a),be)}function sw(o,a,p){return p=p===t?1:Tr(p),Un(md(o,a),p)}function pv(o,a){var p=_r(o)?zn:Qo;return p(o,lr(a,3))}function gv(o,a){var p=_r(o)?fl:wc;return p(o,lr(a,3))}var aw=Ul(function(o,a,p){zr.call(o,p)?o[p].push(a):Li(o,p,[a])});function lw(o,a,p,k){o=go(o)?o:Lu(o),p=p&&!k?Tr(p):0;var B=o.length;return p<0&&(p=cn(B+p,0)),xd(o)?p<=B&&o.indexOf(a,p)>-1:!!B&&Co(o,a,p)>-1}var cw=gr(function(o,a,p){var k=-1,B=typeof a=="function",Z=go(o)?Ne(o.length):[];return Qo(o,function(se){Z[++k]=B?an(a,se,p):co(se,a,p)}),Z}),uw=Ul(function(o,a,p){Li(o,p,a)});function md(o,a){var p=_r(o)?Kr:Ki;return p(o,lr(a,3))}function fw(o,a,p,k){return o==null?[]:(_r(a)||(a=a==null?[]:[a]),p=k?t:p,_r(p)||(p=p==null?[]:[p]),Nl(o,a,p))}var dw=Ul(function(o,a,p){o[p?0:1].push(a)},function(){return[[],[]]});function hw(o,a,p){var k=_r(o)?Ea:$,B=arguments.length<3;return k(o,lr(a,4),p,B,Qo)}function pw(o,a,p){var k=_r(o)?dl:$,B=arguments.length<3;return k(o,lr(a,4),p,B,wc)}function gw(o,a){var p=_r(o)?Wi:bu;return p(o,bd(lr(a,3)))}function mw(o){var a=_r(o)?mi:Ua;return a(o)}function vw(o,a,p){(p?Ji(o,a,p):a===t)?a=1:a=Tr(a);var k=_r(o)?Ii:Ic;return k(o,a)}function yw(o){var a=_r(o)?lo:Mc;return a(o)}function bw(o){if(o==null)return 0;if(go(o))return xd(o)?Xs(o):o.length;var a=Hi(o);return a==lt||a==_t?o.size:Po(o).length}function _w(o,a,p){var k=_r(o)?$o:_f;return p&&Ji(o,a,p)&&(a=t),k(o,lr(a,3))}var xw=gr(function(o,a){if(o==null)return[];var p=a.length;return p>1&&Ji(o,a[0],a[1])?a=[]:p>2&&Ji(a[0],a[1],a[2])&&(a=[a[0]]),Nl(o,Un(a,1),[])}),vd=Ma||function(){return dr.Date.now()};function Sw(o,a){if(typeof a!="function")throw new Bi(u);return o=Tr(o),function(){if(--o<1)return a.apply(this,arguments)}}function mv(o,a,p){return a=p?t:a,a=o&&a==null?o.length:a,Za(o,K,t,t,t,t,a)}function vv(o,a){var p;if(typeof a!="function")throw new Bi(u);return o=Tr(o),function(){return--o>0&&(p=a.apply(this,arguments)),o<=1&&(a=t),p}}var Fh=gr(function(o,a,p){var k=E;if(p.length){var B=wo(p,Ru(Fh));k|=q}return Za(o,k,a,p,B)}),yv=gr(function(o,a,p){var k=E|x;if(p.length){var B=wo(p,Ru(yv));k|=q}return Za(a,k,o,p,B)});function bv(o,a,p){a=p?t:a;var k=Za(o,O,t,t,t,t,t,a);return k.placeholder=bv.placeholder,k}function _v(o,a,p){a=p?t:a;var k=Za(o,H,t,t,t,t,t,a);return k.placeholder=_v.placeholder,k}function xv(o,a,p){var k,B,Z,se,fe,xe,rt=0,nt=!1,ut=!1,Ft=!0;if(typeof o!="function")throw new Bi(u);a=as(a)||0,Mn(p)&&(nt=!!p.leading,ut="maxWait"in p,Z=ut?cn(as(p.maxWait)||0,a):Z,Ft="trailing"in p?!!p.trailing:Ft);function Xt(Gn){var Ms=k,Qa=B;return k=B=t,rt=Gn,se=o.apply(Qa,Ms),se}function cr(Gn){return rt=Gn,fe=Af(Fr,a),nt?Xt(Gn):se}function Ir(Gn){var Ms=Gn-xe,Qa=Gn-rt,Hv=a-Ms;return ut?Ln(Hv,Z-Qa):Hv}function ur(Gn){var Ms=Gn-xe,Qa=Gn-rt;return xe===t||Ms>=a||Ms<0||ut&&Qa>=Z}function Fr(){var Gn=vd();if(ur(Gn))return qr(Gn);fe=Af(Fr,Ir(Gn))}function qr(Gn){return fe=t,Ft&&k?Xt(Gn):(k=B=t,se)}function jo(){fe!==t&&ns(fe),rt=0,k=xe=B=fe=t}function Qi(){return fe===t?se:qr(vd())}function Bo(){var Gn=vd(),Ms=ur(Gn);if(k=arguments,B=this,xe=Gn,Ms){if(fe===t)return cr(xe);if(ut)return ns(fe),fe=Af(Fr,a),Xt(xe)}return fe===t&&(fe=Af(Fr,a)),se}return Bo.cancel=jo,Bo.flush=Qi,Bo}var Cw=gr(function(o,a){return Cc(o,1,a)}),ww=gr(function(o,a,p){return Cc(o,as(a)||0,p)});function Aw(o){return Za(o,X)}function yd(o,a){if(typeof o!="function"||a!=null&&typeof a!="function")throw new Bi(u);var p=function(){var k=arguments,B=a?a.apply(this,k):k[0],Z=p.cache;if(Z.has(B))return Z.get(B);var se=o.apply(this,k);return p.cache=Z.set(B,se)||Z,se};return p.cache=new(yd.Cache||Do),p}yd.Cache=Do;function bd(o){if(typeof o!="function")throw new Bi(u);return function(){var a=arguments;switch(a.length){case 0:return!o.call(this);case 1:return!o.call(this,a[0]);case 2:return!o.call(this,a[0],a[1]);case 3:return!o.call(this,a[0],a[1],a[2])}return!o.apply(this,a)}}function Tw(o){return vv(2,o)}var Ew=xf(function(o,a){a=a.length==1&&_r(a[0])?Kr(a[0],Wt(lr())):Kr(Un(a,1),Wt(lr()));var p=a.length;return gr(function(k){for(var B=-1,Z=Ln(k.length,p);++B<Z;)k[B]=a[B].call(this,k[B]);return an(o,this,k)})}),jh=gr(function(o,a){var p=wo(a,Ru(jh));return Za(o,q,t,a,p)}),Sv=gr(function(o,a){var p=wo(a,Ru(Sv));return Za(o,z,t,a,p)}),kw=Ka(function(o,a){return Za(o,ue,t,t,t,a)});function Rw(o,a){if(typeof o!="function")throw new Bi(u);return a=a===t?a:Tr(a),gr(o,a)}function Iw(o,a){if(typeof o!="function")throw new Bi(u);return a=a==null?0:cn(Tr(a),0),gr(function(p){var k=p[a],B=fo(p,0,a);return k&&Ai(B,k),an(o,this,B)})}function Lw(o,a,p){var k=!0,B=!0;if(typeof o!="function")throw new Bi(u);return Mn(p)&&(k="leading"in p?!!p.leading:k,B="trailing"in p?!!p.trailing:B),xv(o,a,{leading:k,maxWait:a,trailing:B})}function Mw(o){return mv(o,1)}function Dw(o,a){return jh(rs(a),o)}function Ow(){if(!arguments.length)return[];var o=arguments[0];return _r(o)?o:[o]}function Pw(o){return di(o,S)}function Nw(o,a){return a=typeof a=="function"?a:t,di(o,S,a)}function Fw(o){return di(o,C|S)}function jw(o,a){return a=typeof a=="function"?a:t,di(o,C|S,a)}function Bw(o,a){return a==null||Sc(o,a,vi(a))}function Ls(o,a){return o===a||o!==o&&a!==a}var Hw=ho(Ts),qw=ho(function(o,a){return o>=a}),zc=Dl(function(){return arguments}())?Dl:function(o){return Nn(o)&&zr.call(o,"callee")&&!_l.call(o,"callee")},_r=Ne.isArray,zw=Qr?Wt(Qr):Es;function go(o){return o!=null&&_d(o.length)&&!Xa(o)}function Vn(o){return Nn(o)&&go(o)}function $w(o){return o===!0||o===!1||Nn(o)&&Pn(o)==ze}var Wl=Sl||Kh,Uw=ci?Wt(ci):xu;function Ww(o){return Nn(o)&&o.nodeType===1&&!Tf(o)}function Vw(o){if(o==null)return!0;if(go(o)&&(_r(o)||typeof o=="string"||typeof o.splice=="function"||Wl(o)||Iu(o)||zc(o)))return!o.length;var a=Hi(o);if(a==lt||a==_t)return!o.size;if(wf(o))return!Po(o).length;for(var p in o)if(zr.call(o,p))return!1;return!0}function Gw(o,a){return Ha(o,a)}function Zw(o,a,p){p=typeof p=="function"?p:t;var k=p?p(o,a):t;return k===t?Ha(o,a,t,p):!!k}function Bh(o){if(!Nn(o))return!1;var a=Pn(o);return a==Ae||a==De||typeof o.message=="string"&&typeof o.name=="string"&&!Tf(o)}function Kw(o){return typeof o=="number"&&na(o)}function Xa(o){if(!Mn(o))return!1;var a=Pn(o);return a==_e||a==Ge||a==je||a==it}function Cv(o){return typeof o=="number"&&o==Tr(o)}function _d(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=ce}function Mn(o){var a=typeof o;return o!=null&&(a=="object"||a=="function")}function Nn(o){return o!=null&&typeof o=="object"}var wv=gi?Wt(gi):da;function Yw(o,a){return o===a||Tc(o,a,Rh(a))}function Xw(o,a,p){return p=typeof p=="function"?p:t,Tc(o,a,Rh(a),p)}function Jw(o){return Av(o)&&o!=+o}function Qw(o){if(NS(o))throw new or(l);return Su(o)}function e3(o){return o===null}function t3(o){return o==null}function Av(o){return typeof o=="number"||Nn(o)&&Pn(o)==$e}function Tf(o){if(!Nn(o)||Pn(o)!=Le)return!1;var a=ys(o);if(a===null)return!0;var p=zr.call(a,"constructor")&&a.constructor;return typeof p=="function"&&p instanceof p&&Wo.call(p)==cc}var Hh=qn?Wt(qn):ks;function r3(o){return Cv(o)&&o>=-9007199254740991&&o<=ce}var Tv=xo?Wt(xo):Ol;function xd(o){return typeof o=="string"||!_r(o)&&Nn(o)&&Pn(o)==wt}function Fo(o){return typeof o=="symbol"||Nn(o)&&Pn(o)==bt}var Iu=Ui?Wt(Ui):Oo;function n3(o){return o===t}function i3(o){return Nn(o)&&Hi(o)==Me}function o3(o){return Nn(o)&&Pn(o)==pt}var s3=ho(Zi),a3=ho(function(o,a){return o<=a});function Ev(o){if(!o)return[];if(go(o))return xd(o)?fn(o):si(o);if(Vi&&o[Vi])return sc(o[Vi]());var a=Hi(o),p=a==lt?ac:a==_t?Ra:Lu;return p(o)}function Ja(o){if(!o)return o===0?o:0;if(o=as(o),o===be||o===-1/0){var a=o<0?-1:1;return a*ke}return o===o?o:0}function Tr(o){var a=Ja(o),p=a%1;return a===a?p?a-p:a:0}function kv(o){return o?ws(Tr(o),0,oe):0}function as(o){if(typeof o=="number")return o;if(Fo(o))return le;if(Mn(o)){var a=typeof o.valueOf=="function"?o.valueOf():o;o=Mn(a)?a+"":a}if(typeof o!="string")return o===0?o:+o;o=gt(o);var p=nr.test(o);return p||fr.test(o)?Vt(o.slice(2),p?2:8):Ut.test(o)?le:+o}function Rv(o){return Xi(o,mo(o))}function l3(o){return o?ws(Tr(o),-9007199254740991,ce):o===0?o:0}function tn(o){return o==null?"":Oi(o)}var c3=d(function(o,a){if(wf(a)||go(a)){Xi(a,vi(a),o);return}for(var p in a)zr.call(a,p)&&fi(o,p,a[p])}),Iv=d(function(o,a){Xi(a,mo(a),o)}),Sd=d(function(o,a,p,k){Xi(a,mo(a),o,k)}),u3=d(function(o,a,p,k){Xi(a,vi(a),o,k)}),f3=Ka(_c);function d3(o,a){var p=Lo(o);return a==null?p:vu(p,a)}var h3=gr(function(o,a){o=Wr(o);var p=-1,k=a.length,B=k>2?a[2]:t;for(B&&Ji(a[0],a[1],B)&&(k=1);++p<k;)for(var Z=a[p],se=mo(Z),fe=-1,xe=se.length;++fe<xe;){var rt=se[fe],nt=o[rt];(nt===t||Ls(nt,Uo[rt])&&!zr.call(o,rt))&&(o[rt]=Z[rt])}return o}),p3=gr(function(o){return o.push(t,Gm),an(Lv,t,o)});function g3(o,a){return gs(o,lr(a,3),Mi)}function m3(o,a){return gs(o,lr(a,3),Rl)}function v3(o,a){return o==null?o:Ac(o,lr(a,3),mo)}function y3(o,a){return o==null?o:_u(o,lr(a,3),mo)}function b3(o,a){return o&&Mi(o,lr(a,3))}function _3(o,a){return o&&Rl(o,lr(a,3))}function x3(o){return o==null?[]:la(o,vi(o))}function S3(o){return o==null?[]:la(o,mo(o))}function qh(o,a,p){var k=o==null?t:es(o,a);return k===t?p:k}function C3(o,a){return o!=null&&Ym(o,a,Il)}function zh(o,a){return o!=null&&Ym(o,a,ca)}var w3=at(function(o,a,p){a!=null&&typeof a.toString!="function"&&(a=To.call(a)),o[a]=p},Uh(vo)),A3=at(function(o,a,p){a!=null&&typeof a.toString!="function"&&(a=To.call(a)),zr.call(o,a)?o[a].push(p):o[a]=[p]},lr),T3=gr(co);function vi(o){return go(o)?ja(o):Po(o)}function mo(o){return go(o)?ja(o,!0):qa(o)}function E3(o,a){var p={};return a=lr(a,3),Mi(o,function(k,B,Z){Li(p,a(k,B,Z),k)}),p}function k3(o,a){var p={};return a=lr(a,3),Mi(o,function(k,B,Z){Li(p,B,a(k,B,Z))}),p}var R3=d(function(o,a,p){ts(o,a,p)}),Lv=d(function(o,a,p,k){ts(o,a,p,k)}),I3=Ka(function(o,a){var p={};if(o==null)return p;var k=!1;a=Kr(a,function(Z){return Z=No(Z,o),k||(k=Z.length>1),Z}),Xi(o,Eh(o),p),k&&(p=di(p,C|b|S,wS));for(var B=a.length;B--;)Dc(p,a[B]);return p});function L3(o,a){return Mv(o,bd(lr(a)))}var M3=Ka(function(o,a){return o==null?{}:$a(o,a)});function Mv(o,a){if(o==null)return{};var p=Kr(Eh(o),function(k){return[k]});return a=lr(a),pa(o,p,function(k,B){return a(k,B[0])})}function D3(o,a,p){a=No(a,o);var k=-1,B=a.length;for(B||(B=1,o=t);++k<B;){var Z=o==null?t:o[ma(a[k])];Z===t&&(k=B,Z=p),o=Xa(Z)?Z.call(o):Z}return o}function O3(o,a,p){return o==null?o:Is(o,a,p)}function P3(o,a,p,k){return k=typeof k=="function"?k:t,o==null?o:Is(o,a,p,k)}var Dv=fd(vi),Ov=fd(mo);function N3(o,a,p){var k=_r(o),B=k||Wl(o)||Iu(o);if(a=lr(a,4),p==null){var Z=o&&o.constructor;B?p=k?new Z:[]:Mn(o)?p=Xa(Z)?Lo(ys(o)):{}:p={}}return(B?zn:Mi)(o,function(se,fe,xe){return a(p,se,fe,xe)}),p}function F3(o,a){return o==null?!0:Dc(o,a)}function j3(o,a,p){return o==null?o:Wa(o,a,rs(p))}function B3(o,a,p,k){return k=typeof k=="function"?k:t,o==null?o:Wa(o,a,rs(p),k)}function Lu(o){return o==null?[]:hr(o,vi(o))}function H3(o){return o==null?[]:hr(o,mo(o))}function q3(o,a,p){return p===t&&(p=a,a=t),p!==t&&(p=as(p),p=p===p?p:0),a!==t&&(a=as(a),a=a===a?a:0),ws(as(o),a,p)}function z3(o,a,p){return a=Ja(a),p===t?(p=a,a=0):p=Ja(p),o=as(o),Ll(o,a,p)}function $3(o,a,p){if(p&&typeof p!="boolean"&&Ji(o,a,p)&&(a=p=t),p===t&&(typeof a=="boolean"?(p=a,a=t):typeof o=="boolean"&&(p=o,o=t)),o===t&&a===t?(o=0,a=1):(o=Ja(o),a===t?(a=o,o=0):a=Ja(a)),o>a){var k=o;o=a,a=k}if(p||o%1||a%1){var B=Zo();return Ln(o+B*(a-o+Yt("1e-"+((B+"").length-1))),a)}return Rs(o,a)}var U3=M(function(o,a,p){return a=a.toLowerCase(),o+(p?Pv(a):a)});function Pv(o){return $h(tn(o).toLowerCase())}function Nv(o){return o=tn(o),o&&o.replace(yr,Ei).replace(no,"")}function W3(o,a,p){o=tn(o),a=Oi(a);var k=o.length;p=p===t?k:ws(Tr(p),0,k);var B=p;return p-=a.length,p>=0&&o.slice(p,B)==a}function V3(o){return o=tn(o),o&&vt.test(o)?o.replace(xt,Ks):o}function G3(o){return o=tn(o),o&&Tt.test(o)?o.replace(Qe,"\\$&"):o}var Z3=M(function(o,a,p){return o+(p?"-":"")+a.toLowerCase()}),K3=M(function(o,a,p){return o+(p?" ":"")+a.toLowerCase()}),Y3=y("toLowerCase");function X3(o,a,p){o=tn(o),a=Tr(a);var k=a?Xs(o):0;if(!a||k>=a)return o;var B=(a-k)/2;return Dr(bs(B),p)+o+Dr(ta(B),p)}function J3(o,a,p){o=tn(o),a=Tr(a);var k=a?Xs(o):0;return a&&k<a?o+Dr(a-k,p):o}function Q3(o,a,p){o=tn(o),a=Tr(a);var k=a?Xs(o):0;return a&&k<a?Dr(a-k,p)+o:o}function eA(o,a,p){return p||a==null?a=0:a&&(a=+a),dc(tn(o).replace(yt,""),a||0)}function tA(o,a,p){return(p?Ji(o,a,p):a===t)?a=1:a=Tr(a),Fl(tn(o),a)}function rA(){var o=arguments,a=tn(o[0]);return o.length<3?a:a.replace(o[1],o[2])}var nA=M(function(o,a,p){return o+(p?"_":"")+a.toLowerCase()});function iA(o,a,p){return p&&typeof p!="number"&&Ji(o,a,p)&&(a=p=t),p=p===t?oe:p>>>0,p?(o=tn(o),o&&(typeof a=="string"||a!=null&&!Hh(a))&&(a=Oi(a),!a&&Ys(o))?fo(fn(o),0,p):o.split(a,p)):[]}var oA=M(function(o,a,p){return o+(p?" ":"")+$h(a)});function sA(o,a,p){return o=tn(o),p=p==null?0:ws(Tr(p),0,o.length),a=Oi(a),o.slice(p,p+a.length)==a}function aA(o,a,p){var k=U.templateSettings;p&&Ji(o,a,p)&&(a=t),o=tn(o),a=Sd({},a,k,Vm);var B=Sd({},a.imports,k.imports,Vm),Z=vi(B),se=hr(B,Z),fe,xe,rt=0,nt=a.interpolate||Kn,ut="__p += '",Ft=Js((a.escape||Kn).source+"|"+nt.source+"|"+(nt===rr?$t:Kn).source+"|"+(a.evaluate||Kn).source+"|$","g"),Xt="//# sourceURL="+(zr.call(a,"sourceURL")?(a.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Or+"]")+`
|
36
36
|
`;o.replace(Ft,function(ur,Fr,qr,jo,Qi,Bo){return qr||(qr=jo),ut+=o.slice(rt,Bo).replace(Cn,ml),Fr&&(fe=!0,ut+=`' +
|
37
37
|
__e(`+Fr+`) +
|
38
38
|
'`),Qi&&(xe=!0,ut+=`';
|
@@ -49,7 +49,7 @@ __p += '`),qr&&(ut+=`' +
|
|
49
49
|
function print() { __p += __j.call(arguments, '') }
|
50
50
|
`:`;
|
51
51
|
`)+ut+`return __p
|
52
|
-
}`;var Ir=jv(function(){return Pr(Z,Xt+"return "+ut).apply(t,se)});if(Ir.source=ut,Bh(Ir))throw Ir;return Ir}function lA(o){return tn(o).toLowerCase()}function cA(o){return tn(o).toUpperCase()}function uA(o,a,p){if(o=tn(o),o&&(p||a===t))return gt(o);if(!o||!(a=Oi(a)))return o;var k=fn(o),B=fn(a),Z=Gr(k,B),se=ni(k,B)+1;return fo(k,Z,se).join("")}function fA(o,a,p){if(o=tn(o),o&&(p||a===t))return o.slice(0,au(o)+1);if(!o||!(a=Oi(a)))return o;var k=fn(o),B=ni(k,fn(a))+1;return fo(k,0,B).join("")}function dA(o,a,p){if(o=tn(o),o&&(p||a===t))return o.replace(yt,"");if(!o||!(a=Oi(a)))return o;var k=fn(o),B=Gr(k,fn(a));return fo(k,B).join("")}function hA(o,a){var p=de,k=j;if(Mn(a)){var B="separator"in a?a.separator:B;p="length"in a?Tr(a.length):p,k="omission"in a?Oi(a.omission):k}o=tn(o);var Z=o.length;if(Ys(o)){var se=fn(o);Z=se.length}if(p>=Z)return o;var fe=p-Xs(k);if(fe<1)return k;var xe=se?fo(se,0,fe).join(""):o.slice(0,fe);if(B===t)return xe+k;if(se&&(fe+=xe.length-fe),Hh(B)){if(o.slice(fe).search(B)){var rt,nt=xe;for(B.global||(B=Js(B.source,tn(kt.exec(B))+"g")),B.lastIndex=0;rt=B.exec(nt);)var ut=rt.index;xe=xe.slice(0,ut===t?fe:ut)}}else if(o.indexOf(Oi(B),fe)!=fe){var Ft=xe.lastIndexOf(B);Ft>-1&&(xe=xe.slice(0,Ft))}return xe+k}function pA(o){return o=tn(o),o&&Rt.test(o)?o.replace(Re,lu):o}var gA=M(function(o,a,p){return o+(p?" ":"")+a.toUpperCase()}),$h=y("toUpperCase");function Fv(o,a,p){return o=tn(o),a=p?t:a,a===t?of(o)?cu(o):Gs(o):o.match(a)||[]}var jv=gr(function(o,a){try{return an(o,t,a)}catch(p){return Bh(p)?p:new or(p)}}),mA=Ka(function(o,a){return zn(a,function(p){p=ma(p),Li(o,p,Fh(o[p],o))}),o});function vA(o){var a=o==null?0:o.length,p=lr();return o=a?Kr(o,function(k){if(typeof k[1]!="function")throw new Bi(u);return[p(k[0]),k[1]]}):[],gr(function(k){for(var B=-1;++B<a;){var Z=o[B];if(an(Z[0],this,k))return an(Z[1],this,k)}})}function yA(o){return xc(di(o,w))}function Uh(o){return function(){return o}}function bA(o,a){return o==null||o!==o?a:o}var _A=Ce(),xA=Ce(!0);function vo(o){return o}function Wh(o){return Pl(typeof o=="function"?o:di(o,w))}function SA(o){return uo(di(o,w))}function CA(o,a){return za(o,di(a,w))}var wA=gr(function(o,a){return function(p){return co(p,o,a)}}),AA=gr(function(o,a){return function(p){return co(o,p,a)}});function Vh(o,a,p){var k=vi(a),B=la(a,k);p==null&&!(Mn(a)&&(B.length||!k.length))&&(p=a,a=o,o=this,B=la(a,vi(a)));var Z=!(Mn(p)&&"chain"in p)||!!p.chain,se=Xa(o);return zn(B,function(fe){var xe=a[fe];o[fe]=xe,se&&(o.prototype[fe]=function(){var rt=this.__chain__;if(Z||rt){var nt=o(this.__wrapped__),ut=nt.__actions__=si(this.__actions__);return ut.push({func:xe,args:arguments,thisArg:o}),nt.__chain__=rt,nt}return xe.apply(o,Ai([this.value()],arguments))})}),o}function TA(){return dr._===this&&(dr._=uc),this}function Gh(){}function EA(o){return o=Tr(o),gr(function(a){return ha(a,o)})}var kA=tr(Kr),RA=tr(Ta),IA=tr($o);function Bv(o){return Lh(o)?T(ma(o)):Cu(o)}function LA(o){return function(a){return o==null?t:es(o,a)}}var MA=is(),DA=is(!0);function Zh(){return[]}function Kh(){return!1}function OA(){return{}}function PA(){return""}function NA(){return!0}function FA(o,a){if(o=Tr(o),o<1||o>ce)return[];var p=oe,k=Ln(o,oe);a=lr(a),o-=oe;for(var B=Te(k,a);++p<o;)a(p);return B}function jA(o){return _r(o)?Kr(o,ma):Fo(o)?[o]:si(ov(tn(o)))}function BA(o){var a=++lc;return tn(o)+a}var HA=It(function(o,a){return o+a},0),qA=os("ceil"),zA=It(function(o,a){return o/a},1),$A=os("floor");function UA(o){return o&&o.length?kl(o,vo,Ts):t}function WA(o,a){return o&&o.length?kl(o,lr(a,2),Ts):t}function VA(o){return ka(o,vo)}function GA(o,a){return ka(o,lr(a,2))}function ZA(o){return o&&o.length?kl(o,vo,Zi):t}function KA(o,a){return o&&o.length?kl(o,lr(a,2),Zi):t}var YA=It(function(o,a){return o*a},1),XA=os("round"),JA=It(function(o,a){return o-a},0);function QA(o){return o&&o.length?Ie(o,vo):0}function e4(o,a){return o&&o.length?Ie(o,lr(a,2)):0}return U.after=Sw,U.ary=mv,U.assign=c3,U.assignIn=Iv,U.assignInWith=Sd,U.assignWith=u3,U.at=f3,U.before=vv,U.bind=Fh,U.bindAll=mA,U.bindKey=yv,U.castArray=Ow,U.chain=hv,U.chunk=$S,U.compact=US,U.concat=WS,U.cond=vA,U.conforms=yA,U.constant=Uh,U.countBy=QC,U.create=d3,U.curry=bv,U.curryRight=_v,U.debounce=xv,U.defaults=h3,U.defaultsDeep=p3,U.defer=Cw,U.delay=ww,U.difference=VS,U.differenceBy=GS,U.differenceWith=ZS,U.drop=KS,U.dropRight=YS,U.dropRightWhile=XS,U.dropWhile=JS,U.fill=QS,U.filter=tw,U.flatMap=iw,U.flatMapDeep=ow,U.flatMapDepth=sw,U.flatten=cv,U.flattenDeep=eC,U.flattenDepth=tC,U.flip=Aw,U.flow=_A,U.flowRight=xA,U.fromPairs=rC,U.functions=x3,U.functionsIn=S3,U.groupBy=aw,U.initial=iC,U.intersection=oC,U.intersectionBy=sC,U.intersectionWith=aC,U.invert=w3,U.invertBy=A3,U.invokeMap=cw,U.iteratee=Wh,U.keyBy=uw,U.keys=vi,U.keysIn=mo,U.map=md,U.mapKeys=E3,U.mapValues=k3,U.matches=SA,U.matchesProperty=CA,U.memoize=yd,U.merge=R3,U.mergeWith=Lv,U.method=wA,U.methodOf=AA,U.mixin=Vh,U.negate=bd,U.nthArg=EA,U.omit=I3,U.omitBy=L3,U.once=Tw,U.orderBy=fw,U.over=kA,U.overArgs=Ew,U.overEvery=RA,U.overSome=IA,U.partial=jh,U.partialRight=Sv,U.partition=dw,U.pick=M3,U.pickBy=Mv,U.property=Bv,U.propertyOf=LA,U.pull=fC,U.pullAll=fv,U.pullAllBy=dC,U.pullAllWith=hC,U.pullAt=pC,U.range=MA,U.rangeRight=DA,U.rearg=kw,U.reject=gw,U.remove=gC,U.rest=Rw,U.reverse=Ph,U.sampleSize=vw,U.set=O3,U.setWith=P3,U.shuffle=yw,U.slice=mC,U.sortBy=xw,U.sortedUniq=CC,U.sortedUniqBy=wC,U.split=iA,U.spread=Iw,U.tail=AC,U.take=TC,U.takeRight=EC,U.takeRightWhile=kC,U.takeWhile=RC,U.tap=UC,U.throttle=Lw,U.thru=gd,U.toArray=Ev,U.toPairs=Dv,U.toPairsIn=Ov,U.toPath=jA,U.toPlainObject=Rv,U.transform=N3,U.unary=Mw,U.union=IC,U.unionBy=LC,U.unionWith=MC,U.uniq=DC,U.uniqBy=OC,U.uniqWith=PC,U.unset=F3,U.unzip=Nh,U.unzipWith=dv,U.update=j3,U.updateWith=B3,U.values=Lu,U.valuesIn=H3,U.without=NC,U.words=Fv,U.wrap=Dw,U.xor=FC,U.xorBy=jC,U.xorWith=BC,U.zip=HC,U.zipObject=qC,U.zipObjectDeep=zC,U.zipWith=$C,U.entries=Dv,U.entriesIn=Ov,U.extend=Iv,U.extendWith=Sd,Vh(U,U),U.add=HA,U.attempt=jv,U.camelCase=U3,U.capitalize=Pv,U.ceil=qA,U.clamp=q3,U.clone=Pw,U.cloneDeep=Fw,U.cloneDeepWith=jw,U.cloneWith=Nw,U.conformsTo=Bw,U.deburr=Nv,U.defaultTo=bA,U.divide=zA,U.endsWith=W3,U.eq=Ls,U.escape=V3,U.escapeRegExp=G3,U.every=ew,U.find=rw,U.findIndex=av,U.findKey=g3,U.findLast=nw,U.findLastIndex=lv,U.findLastKey=m3,U.floor=$A,U.forEach=pv,U.forEachRight=gv,U.forIn=v3,U.forInRight=y3,U.forOwn=b3,U.forOwnRight=_3,U.get=qh,U.gt=Hw,U.gte=qw,U.has=C3,U.hasIn=zh,U.head=uv,U.identity=vo,U.includes=lw,U.indexOf=nC,U.inRange=z3,U.invoke=T3,U.isArguments=zc,U.isArray=_r,U.isArrayBuffer=zw,U.isArrayLike=go,U.isArrayLikeObject=Vn,U.isBoolean=$w,U.isBuffer=Wl,U.isDate=Uw,U.isElement=Ww,U.isEmpty=Vw,U.isEqual=Gw,U.isEqualWith=Zw,U.isError=Bh,U.isFinite=Kw,U.isFunction=Xa,U.isInteger=Cv,U.isLength=_d,U.isMap=wv,U.isMatch=Yw,U.isMatchWith=Xw,U.isNaN=Jw,U.isNative=Qw,U.isNil=t3,U.isNull=e3,U.isNumber=Av,U.isObject=Mn,U.isObjectLike=Nn,U.isPlainObject=Tf,U.isRegExp=Hh,U.isSafeInteger=r3,U.isSet=Tv,U.isString=xd,U.isSymbol=Fo,U.isTypedArray=Iu,U.isUndefined=n3,U.isWeakMap=i3,U.isWeakSet=o3,U.join=lC,U.kebabCase=Z3,U.last=ss,U.lastIndexOf=cC,U.lowerCase=K3,U.lowerFirst=Y3,U.lt=s3,U.lte=a3,U.max=UA,U.maxBy=WA,U.mean=VA,U.meanBy=GA,U.min=ZA,U.minBy=KA,U.stubArray=Zh,U.stubFalse=Kh,U.stubObject=OA,U.stubString=PA,U.stubTrue=NA,U.multiply=YA,U.nth=uC,U.noConflict=TA,U.noop=Gh,U.now=vd,U.pad=X3,U.padEnd=J3,U.padStart=Q3,U.parseInt=eA,U.random=$3,U.reduce=hw,U.reduceRight=pw,U.repeat=tA,U.replace=rA,U.result=D3,U.round=XA,U.runInContext=ye,U.sample=mw,U.size=bw,U.snakeCase=nA,U.some=_w,U.sortedIndex=vC,U.sortedIndexBy=yC,U.sortedIndexOf=bC,U.sortedLastIndex=_C,U.sortedLastIndexBy=xC,U.sortedLastIndexOf=SC,U.startCase=oA,U.startsWith=sA,U.subtract=JA,U.sum=QA,U.sumBy=e4,U.template=aA,U.times=FA,U.toFinite=Ja,U.toInteger=Tr,U.toLength=kv,U.toLower=lA,U.toNumber=as,U.toSafeInteger=l3,U.toString=tn,U.toUpper=cA,U.trim=uA,U.trimEnd=fA,U.trimStart=dA,U.truncate=hA,U.unescape=pA,U.uniqueId=BA,U.upperCase=gA,U.upperFirst=$h,U.each=pv,U.eachRight=gv,U.first=uv,Vh(U,function(){var o={};return Mi(U,function(a,p){zr.call(U.prototype,p)||(o[p]=a)}),o}(),{chain:!1}),U.VERSION=n,zn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){U[o].placeholder=U}),zn(["drop","take"],function(o,a){br.prototype[o]=function(p){p=p===t?1:cn(Tr(p),0);var k=this.__filtered__&&!a?new br(this):this.clone();return k.__filtered__?k.__takeCount__=Ln(p,k.__takeCount__):k.__views__.push({size:Ln(p,oe),type:o+(k.__dir__<0?"Right":"")}),k},br.prototype[o+"Right"]=function(p){return this.reverse()[o](p).reverse()}}),zn(["filter","map","takeWhile"],function(o,a){var p=a+1,k=p==Q||p==me;br.prototype[o]=function(B){var Z=this.clone();return Z.__iteratees__.push({iteratee:lr(B,3),type:p}),Z.__filtered__=Z.__filtered__||k,Z}}),zn(["head","last"],function(o,a){var p="take"+(a?"Right":"");br.prototype[o]=function(){return this[p](1).value()[0]}}),zn(["initial","tail"],function(o,a){var p="drop"+(a?"":"Right");br.prototype[o]=function(){return this.__filtered__?new br(this):this[p](1)}}),br.prototype.compact=function(){return this.filter(vo)},br.prototype.find=function(o){return this.filter(o).head()},br.prototype.findLast=function(o){return this.reverse().find(o)},br.prototype.invokeMap=gr(function(o,a){return typeof o=="function"?new br(this):this.map(function(p){return co(p,o,a)})}),br.prototype.reject=function(o){return this.filter(bd(lr(o)))},br.prototype.slice=function(o,a){o=Tr(o);var p=this;return p.__filtered__&&(o>0||a<0)?new br(p):(o<0?p=p.takeRight(-o):o&&(p=p.drop(o)),a!==t&&(a=Tr(a),p=a<0?p.dropRight(-a):p.take(a-o)),p)},br.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},br.prototype.toArray=function(){return this.take(oe)},Mi(br.prototype,function(o,a){var p=/^(?:filter|find|map|reject)|While$/.test(a),k=/^(?:head|last)$/.test(a),B=U[k?"take"+(a=="last"?"Right":""):a],Z=k||/^find/.test(a);B&&(U.prototype[a]=function(){var se=this.__wrapped__,fe=k?[1]:arguments,xe=se instanceof br,rt=fe[0],nt=xe||_r(se),ut=function(Fr){var qr=B.apply(U,Ai([Fr],fe));return k&&Ft?qr[0]:qr};nt&&p&&typeof rt=="function"&&rt.length!=1&&(xe=nt=!1);var Ft=this.__chain__,Xt=!!this.__actions__.length,cr=Z&&!Ft,Ir=xe&&!Xt;if(!Z&&nt){se=Ir?se:new br(this);var ur=o.apply(se,fe);return ur.__actions__.push({func:gd,args:[ut],thisArg:t}),new ii(ur,Ft)}return cr&&Ir?o.apply(this,fe):(ur=this.thru(ut),cr?k?ur.value()[0]:ur.value():ur)})}),zn(["pop","push","shift","sort","splice","unshift"],function(o){var a=bl[o],p=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",k=/^(?:pop|shift)$/.test(o);U.prototype[o]=function(){var B=arguments;if(k&&!this.__chain__){var Z=this.value();return a.apply(_r(Z)?Z:[],B)}return this[p](function(se){return a.apply(_r(se)?se:[],B)})}}),Mi(br.prototype,function(o,a){var p=U[a];if(p){var k=p.name+"";zr.call(_s,k)||(_s[k]=[]),_s[k].push({name:a,func:p})}}),_s[Ye(t,x).name]=[{name:"wrapper",func:t}],br.prototype.clone=wl,br.prototype.reverse=Na,br.prototype.value=Al,U.prototype.at=WC,U.prototype.chain=VC,U.prototype.commit=GC,U.prototype.next=ZC,U.prototype.plant=YC,U.prototype.reverse=XC,U.prototype.toJSON=U.prototype.valueOf=U.prototype.value=JC,U.prototype.first=U.prototype.head,Vi&&(U.prototype[Vi]=KC),U},Ao=yl();Jr?((Jr.exports=Ao)._=Ao,Ar._=Ao):dr._=Ao}).call(a4)}(Pf,Pf.exports)),Pf.exports}var z_=l4();const nl=al(z_),c4=r=>{try{return JSON.parse(r)}catch{return}},u4=(r,e)=>JSON.stringify(r,null,e),f4=r=>Object.keys(r),d4=r=>Object.values(r),h4=r=>Object.entries(r),p4=(r,e)=>{Object.entries(r).forEach(([t,n])=>e(t,n))},g4=(r,e)=>Object.keys(r).includes(e),m4=(r,e)=>Object.entries(r).map((t,n)=>e(t,n)),v4=(r,e)=>Object.entries(r).some(([t,n])=>e(t,n)),y4=(r,e)=>Object.entries(r).find(([t,n])=>e(t,n)),$_=r=>A.isValidElement(r)||typeof r=="string"||typeof r=="number"||typeof r=="boolean"||r===null||r===void 0||Array.isArray(r)&&r.every($_),b4=(r,e)=>nl.isEqual(r,e),er={equal:b4,parse:c4,stringify:u4,keys:f4,values:d4,entries:h4,forEach:p4,hasKey:g4,map:m4,some:v4,find:y4,isReactNode:$_},U_="_NoSelect_1wchx_1",W_="_IsFixedShape_1wchx_6",V_="_IsCursorPointer_1wchx_11",G_="_IsInteractive_1wchx_15",$c={NoSelect:U_,IsFixedShape:W_,IsCursorPointer:V_,IsInteractive:G_},_4="_Display1_11vgm_1",x4="_Display2_11vgm_6",S4="_Title1_11vgm_11",C4="_Title2_11vgm_16",w4="_Title3_11vgm_21",A4="_Headline1_11vgm_26",T4="_Headline2_11vgm_31",E4="_Body1Normal_11vgm_36",k4="_Body1Reading_11vgm_41",R4="_Label1_11vgm_46",I4="_Label2_11vgm_51",L4="_Caption1_11vgm_56",M4="_Caption2_11vgm_61",D4="_Regular_11vgm_66",O4="_Medium_11vgm_70",P4="_SemiBold_11vgm_74",N4="_Bold_11vgm_78",Pi={Display1:_4,Display2:x4,Title1:S4,Title2:C4,Title3:w4,Headline1:A4,Headline2:T4,Body1Normal:E4,Body1Reading:k4,Label1:R4,Label2:I4,Caption1:L4,Caption2:M4,Regular:D4,Medium:O4,SemiBold:P4,Bold:N4};function Wv(...r){return r.filter(Boolean).join(" ")}const Z_={NoSelect:$c.NoSelect,IsClickable:Wv($c.NoSelect,$c.IsCursorPointer,$c.IsFixedShape),IsInteractive:Wv($c.NoSelect,$c.IsCursorPointer,$c.IsInteractive)},K_={Display1:Pi.Display1,Display2:Pi.Display2,Title1:Pi.Title1,Title2:Pi.Title2,Title3:Pi.Title3,Headline1:Pi.Headline1,Headline2:Pi.Headline2,Body1Normal:Pi.Body1Normal,Body1Reading:Pi.Body1Reading,Label1:Pi.Label1,Label2:Pi.Label2,Caption1:Pi.Caption1,Caption2:Pi.Caption2,Regular:Pi.Regular,Medium:Pi.Medium,SemiBold:Pi.SemiBold,Bold:Pi.Bold};let lm={};const Gf={...Z_,...K_,...lm};let cm=er.keys(Gf);function F4(){Object.assign(Gf,lm),cm=er.keys(Gf)}function j4(...r){let e=[];for(let t=0;t<r.length;t++){let n=r[t];cm.includes(n)&&(n=Gf[n]),typeof n=="string"&&n!==""&&e.push(n)}return e.join(" ")}function B4(r,...e){const t=[],n=er.keys(r);for(let i=0;i<e.length;i++){let l=e[i];cm.includes(l)?l=Gf[l]:n.includes(l)&&(l=r[l]),typeof l=="string"&&l!==""&&t.push(l)}return t.join(" ")}const Fe={clsx:j4,sclsx:B4,classes:Z_,typographies:K_,additionalClasses:lm,updateKeys:F4},Ni={"2xs":12,xs:16,sm:20,md:24,lg:32,xl:40,"2xl":48,"3xl":64},dt=(r,e=Ni.md)=>{const t=Ni[r],n=t/e,i={xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:`0 0 ${e} ${e}`};if(n<0){const l=(e-t)/2;return{...i,viewBox:`${l} ${l} ${t} ${t}`,transform:`scale(${n})`}}return i},Mu=(r,e=Ni.md)=>{const t=Ni[r],n=40,i=t/e,l={xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:`0 ${-(e*n)} ${e*n} ${e*n}`};if(i<0){const u=(e-t)/2;return{...l,viewBox:`${u} ${-(t*n)} ${t*n} ${t*n}`,transform:`scale(${i})`}}return l},Zn=r=>({fill:"none",stroke:r,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),jr=r=>{const{icon:e,style:t,svgRef:n,...i}=r,l=A.useMemo(()=>ih[e],[e]);return v.jsx(l,{...i,style:{...t,flexShrink:0}})},H4=r=>{const e=er.keys(r);return n=>{const{icon:i,svgRef:l,...u}=n,f=A.useMemo(()=>e.includes(i)?r[i]:ih[i],[i]);return v.jsx(f,{...u})}},ih=Object.freeze({ArrowDown:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"})})},ArrowUp:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"})})},Chat:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M20 17.17 18.83 16H4V4h16v13.17zM20 2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4V4c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm7 18H5V4h2v3h10V4h2v16z"})})},"Check.Checked":(r={})=>{const{size:e="xs",primaryColor:t="currentColor",secondaryColor:n="none",svgRef:i,...l}=r,u=Ni.xs;return v.jsxs("svg",{...dt(e,u),fill:n,...l,ref:i,children:[v.jsx("rect",{x:"0.5",y:"0.5",width:"15",height:"15",rx:"1.5",stroke:t}),v.jsx("path",{d:"M6.25009 10.4324L4.22884 8.41116C4.00148 8.1838 3.63305 8.18315 3.40489 8.40971V8.40971C3.17558 8.6374 3.17492 9.00808 3.40343 9.23658L5.54298 11.3761C5.93351 11.7667 6.56667 11.7667 6.9572 11.3761L12.8387 5.49459C13.0659 5.26741 13.0659 4.89908 12.8387 4.6719V4.6719C12.6116 4.44479 12.2435 4.4447 12.0162 4.6717L6.25009 10.4324Z",fill:t})]})},"Check.Indeterminate":(r={})=>{const{size:e="xs",primaryColor:t="currentColor",secondaryColor:n="none",svgRef:i,...l}=r,u=Ni.xs;return v.jsxs("svg",{...dt(e,u),fill:n,...l,ref:i,children:[v.jsx("rect",{x:"0.5",y:"0.5",width:"15",height:"15",rx:"1.5",stroke:t}),v.jsx("rect",{x:"3",y:"7",width:"10",height:"1",fill:t})]})},"Check.UnChecked":(r={})=>{const{size:e="xs",primaryColor:t="currentColor",secondaryColor:n="none",svgRef:i,...l}=r,u=Ni.xs;return v.jsx("svg",{...dt(e,u),fill:n,...l,ref:i,children:v.jsx("rect",{x:"0.5",y:"0.5",width:"15",height:"15",rx:"1.5",stroke:t})})},CircleCheck:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M16.59 7.58 10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})})},ClipBoard:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M19 2h-4.18C14.4.84 13.3 0 12 0c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm7 18H5V4h2v3h10V4h2v16z"})})},Close:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})})},Document:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z"})})},Menu:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"})})},Person:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"})})},PersonOutline:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsxs("svg",{...dt(e),...Zn(t),...l,ref:i,children:[v.jsx("path",{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"}),v.jsx("circle",{cx:"12",cy:"7",r:"4"})]})},Reset:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"})})},Search:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"})})},Send:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"})})},Spinner:(r={})=>{const{size:e="3xl",primaryColor:t="var(--label-strong)",secondaryColor:n="var(--elevation-10)",svgRef:i,...l}=r,u=Ni["3xl"];return v.jsxs("svg",{...dt(e,u),fill:"none",strokeWidth:"12",...l,ref:i,children:[v.jsx("circle",{cx:"32",cy:"32",r:"22",style:{...l.style,transition:"stroke var(--Transition)"},stroke:n}),v.jsx("path",{style:{...l.style,transition:"stroke var(--Transition)"},d:"M10 32C10 29.1109 10.569 26.2501 11.6746 23.581C12.7803 20.9118 14.4008 18.4865 16.4437 16.4436C18.4865 14.4008 20.9118 12.7803 23.581 11.6747C26.2501 10.569 29.1109 10 32 10",stroke:t,children:v.jsx("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",from:"0 32 32",to:"360 32 32",dur:"1s",repeatCount:"indefinite",calcMode:"spline",keySplines:"0.27 0.71 0.78 0.44",keyTimes:"0;1"})})]})},Stop:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M6 6h12v12H6z"})})},TriangleAlert:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M12 5.99 19.53 19H4.47L12 5.99M2.74 18c-.77 1.33.19 3 1.73 3h15.06c1.54 0 2.5-1.67 1.73-3L13.73 4.99c-.77-1.33-2.69-1.33-3.46 0L2.74 18zM11 11v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1zm0 5h2v2h-2z"})})},TriangleAlert2:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsxs("svg",{...dt(e),...Zn(t),...l,ref:i,children:[v.jsx("path",{d:"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"}),v.jsx("line",{x1:"12",y1:"9",x2:"12",y2:"13"}),v.jsx("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"})]})},Sun:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsxs("svg",{...dt(e,28),...Zn(t),strokeWidth:1,...l,ref:i,children:[v.jsx("circle",{cx:"14",cy:"14",r:"3.5"}),v.jsx("path",{d:"M21.1213 21.1213L19 19"}),v.jsx("path",{d:"M24 14L21 14"}),v.jsx("path",{d:"M9.12132 19L7 21.1213"}),v.jsx("path",{d:"M14 21L14 24"}),v.jsx("path",{d:"M6.99977 7.00002L9.12109 9.12134"}),v.jsx("path",{d:"M4 14L7 14"}),v.jsx("path",{d:"M18.9998 9.12132L21.1211 7"}),v.jsx("path",{d:"M14 7L14 4"})]})},Moon:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n="white",svgRef:i,...l}=r;return v.jsxs("svg",{...dt(e,28),...l,ref:i,children:[v.jsx("mask",{id:"path-1-inside-1_640_3082",fill:n,children:v.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23 14.9271C21.7297 16.1977 19.9746 16.9836 18.036 16.9836C14.1593 16.9836 11.0167 13.841 11.0167 9.96435C11.0167 8.02554 11.8027 6.27032 13.0735 5C8.53643 5.47528 5 9.31228 5 13.9753C5 18.9595 9.04054 23 14.0248 23C18.6876 23 22.5244 19.4639 23 14.9271Z"})}),v.jsx("path",{d:"M23 14.9271L23.9945 15.0313L24.2889 12.2235L22.2928 14.2201L23 14.9271ZM13.0735 5L13.7805 5.70724L15.7772 3.71131L12.9694 4.00544L13.0735 5ZM22.2928 14.2201C21.2024 15.3108 19.6987 15.9836 18.036 15.9836V17.9836C20.2505 17.9836 22.257 17.0846 23.7072 15.6341L22.2928 14.2201ZM18.036 15.9836C14.7116 15.9836 12.0167 13.2887 12.0167 9.96435H10.0167C10.0167 14.3933 13.607 17.9836 18.036 17.9836V15.9836ZM12.0167 9.96435C12.0167 8.30147 12.6897 6.79768 13.7805 5.70724L12.3666 4.29276C10.9158 5.74295 10.0167 7.7496 10.0167 9.96435H12.0167ZM6 13.9753C6 9.8296 9.14442 6.41706 13.1777 5.99456L12.9694 4.00544C7.92844 4.5335 4 8.79496 4 13.9753H6ZM14.0248 22C9.59282 22 6 18.4072 6 13.9753H4C4 19.5118 8.48825 24 14.0248 24V22ZM22.0054 14.8228C21.5827 18.8559 18.1703 22 14.0248 22V24C19.2049 24 23.4662 20.0719 23.9945 15.0313L22.0054 14.8228Z",fill:t,mask:"url(#path-1-inside-1_640_3082)"})]})},CCTV:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n="white",svgRef:i,...l}=r,u=Ni["2xs"];return v.jsxs("svg",{...dt(e,u),...l,ref:i,children:[v.jsx("rect",{x:"1",y:"5",width:"1",height:"5",fill:t}),v.jsx("path",{d:"M1.5 7.5H3L5 5.5",stroke:t}),v.jsx("rect",{x:"5.12132",y:"2",width:"5.13925",height:"3",transform:"rotate(45 5.12132 2)",fill:t}),v.jsx("rect",{x:"8.83633",y:"6.28503",width:"1",height:"2.19393",transform:"rotate(45 8.83633 6.28503)",fill:t}),v.jsx("clipPath",{id:"clip0_2241_2464",children:v.jsx("rect",{width:"12",height:"12",fill:n})})]})},Convert:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"m19 8-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3l-4-4zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97.25 2.8.7l1.46-1.46C15.03 4.46 13.57 4 12 4c-4.42 0-8 3.58-8 8H1l4 4 4-4H6z"})})},KeyboardArrowUp:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"})})},KeyboardArrowDown:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"})})},Alert:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n="var(--background-normal)",svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:n,...l,ref:i,children:v.jsxs("g",{clipPath:"url(#clip0_1786_1844)",children:[v.jsx("path",{d:"M11.1238 2.59312C11.5037 1.90234 12.4963 1.90234 12.8762 2.59312L22.1849 19.5181C22.5515 20.1845 22.0693 21 21.3087 21H2.69127C1.93067 21 1.44851 20.1845 1.81506 19.5181L11.1238 2.59312Z",fill:t}),v.jsx("path",{style:{...l.style,transition:"fill var(--Transition)"},d:"M12.8169 8H11.1691L11.2958 15.0451H12.6902L12.8169 8ZM11.0001 17.0287C10.993 17.5622 11.4508 17.9932 12 18C12.5423 17.9932 12.993 17.5622 13 17.0287C12.993 16.4952 12.5423 16.0575 12 16.0575C11.4508 16.0575 10.993 16.4952 11.0001 17.0287Z",fill:n})]})})},SortUp:(r={})=>{const{size:e="xs",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r,u=Ni.xs;return v.jsx("svg",{...dt(e,u),fill:"none",...l,ref:i,children:v.jsx("path",{d:"M6 10L9 7L12 10",stroke:t})})},SortDown:(r={})=>{const{size:e="xs",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r,u=Ni.xs;return v.jsx("svg",{...dt(e,u),fill:"none",...l,ref:i,children:v.jsx("path",{d:"M12 7L9 10L6 7",stroke:t})})},SortBoth:(r={})=>{const{size:e="xs",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r,u=Ni.xs;return v.jsxs("svg",{...dt(e,u),fill:"none",...l,ref:i,children:[v.jsx("path",{d:"M6 6.75L9 3.75L12 6.75",stroke:t}),v.jsx("path",{d:"M12 11.25L9 14.25L6 11.25",stroke:t})]})},RowSortUp:(r={})=>{const{size:e="xs",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r,u=Ni.xs;return v.jsxs("svg",{...dt(e,u),...l,ref:i,children:[v.jsx("path",{d:"M8 2L10.5981 6.5H5.40192L8 2Z",fill:t}),v.jsx("path",{opacity:"0.2",d:"M8 14L5.40192 9.5L10.5981 9.5L8 14Z",fill:t})]})},RowSortDown:(r={})=>{const{size:e="xs",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r,u=Ni.xs;return v.jsxs("svg",{...dt(e,u),...l,ref:i,children:[v.jsx("path",{opacity:"0.2",d:"M8 2L10.5981 6.5H5.40192L8 2Z",fill:t}),v.jsx("path",{d:"M8 14L5.40192 9.5L10.5981 9.5L8 14Z",fill:t})]})},RowSortBoth:(r={})=>{const{size:e="xs",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r,u=Ni.xs;return v.jsxs("svg",{...dt(e,u),...l,ref:i,children:[v.jsx("path",{d:"M8 2L10.5981 6.5H5.40192L8 2Z",fill:t}),v.jsx("path",{d:"M8 14L5.40192 9.5L10.5981 9.5L8 14Z",fill:t})]})},Favorite:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M12 4L13.7961 9.52786H19.6085L14.9062 12.9443L16.7023 18.4721L12 15.0557L7.29772 18.4721L9.09383 12.9443L4.39155 9.52786H10.2039L12 4Z"})})},FavoriteDisabled:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n="none",svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),...Zn(t),fill:n,strokeWidth:"1",...l,ref:i,children:v.jsx("path",{d:"M12 4L13.7961 9.52786H19.6085L14.9062 12.9443L16.7023 18.4721L12 15.0557L7.29772 18.4721L9.09383 12.9443L4.39155 9.52786H10.2039L12 4Z"})})},Main:(r={})=>{const{primaryColor:e="currentColor",secondaryColor:t,svgRef:n,...i}=r;return v.jsxs("svg",{viewBox:"0 0 118 84",width:"118",height:"84",...i,ref:n,children:[v.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M66.0843 0.94382H8.51123C4.34117 0.94382 0.960666 4.32432 0.960666 8.49438V49.0787C0.960666 53.77 4.76373 57.573 9.45505 57.573H66.0843C70.7756 57.573 74.5787 53.77 74.5787 49.0787V9.4382C74.5787 4.74688 70.7756 0.94382 66.0843 0.94382ZM8.51123 0C3.81991 0 0.0168457 3.80306 0.0168457 8.49438V49.0787C0.0168457 54.2912 4.24247 58.5169 9.45505 58.5169H66.0843C71.2968 58.5169 75.5225 54.2912 75.5225 49.0787V9.4382C75.5225 4.22563 71.2968 0 66.0843 0H8.51123Z",fill:e}),v.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M108.556 26.4272H51.927C47.2357 26.4272 43.4326 30.2302 43.4326 34.9216V74.562C43.4326 79.2533 47.2357 83.0564 51.927 83.0564H108.556C113.248 83.0564 117.051 79.2533 117.051 74.562V34.9216C117.051 30.2302 113.248 26.4272 108.556 26.4272ZM51.927 25.4834C46.7144 25.4834 42.4888 29.709 42.4888 34.9216V74.562C42.4888 79.7746 46.7144 84.0002 51.927 84.0002H108.556C113.769 84.0002 117.994 79.7746 117.994 74.562V34.9216C117.994 29.709 113.769 25.4834 108.556 25.4834H51.927Z",fill:e}),v.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M66.0843 1.88764H8.51123C4.86243 1.88764 1.90449 4.84558 1.90449 8.49438V49.0787C1.90449 53.2487 5.28499 56.6292 9.45505 56.6292H66.0843C70.2543 56.6292 73.6348 53.2487 73.6348 49.0787V9.4382C73.6348 5.26814 70.2543 1.88764 66.0843 1.88764ZM8.51123 0C3.81991 0 0.0168457 3.80306 0.0168457 8.49438V49.0787C0.0168457 54.2912 4.24247 58.5169 9.45505 58.5169H66.0843C71.2968 58.5169 75.5225 54.2912 75.5225 49.0787V9.4382C75.5225 4.22563 71.2968 0 66.0843 0H8.51123Z",fill:e}),v.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M108.556 27.371H51.927C47.7569 27.371 44.3764 30.7515 44.3764 34.9216V74.562C44.3764 78.7321 47.7569 82.1126 51.927 82.1126H108.556C112.726 82.1126 116.107 78.7321 116.107 74.562V34.9216C116.107 30.7515 112.726 27.371 108.556 27.371ZM51.927 25.4834C46.7144 25.4834 42.4888 29.709 42.4888 34.9216V74.562C42.4888 79.7746 46.7144 84.0002 51.927 84.0002H108.556C113.769 84.0002 117.994 79.7746 117.994 74.562V34.9216C117.994 29.709 113.769 25.4834 108.556 25.4834H51.927Z",fill:e})]})},Frame:(r={})=>{const{primaryColor:e="currentColor",secondaryColor:t="none",svgRef:n,...i}=r;return v.jsx("svg",{viewBox:"0 0 1482 1112",width:"1482",height:"1112",fill:t,...i,ref:n,children:v.jsxs("g",{children:[v.jsx("path",{opacity:"0.22",d:"M1481.33 1111.17L399.091 880.19V231.81L1481.33 0.829102V1111.17Z",stroke:e}),v.jsx("path",{opacity:"0.48",d:"M266.279 880.19V231.81L1348.52 0.829102V1111.17L266.279 880.19Z",stroke:e}),v.jsx("path",{opacity:"0.74",d:"M133.48 880.19V231.81L1215.72 0.829102V1111.17L133.48 880.19Z",stroke:e}),v.jsx("path",{d:"M1082.91 1111.17L0.667969 880.19V231.81L1082.91 0.829102V1111.17Z",stroke:e})]})})},FileDownload:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3zm-1-4-1.41-1.41L13 12.17V4h-2v8.17L8.41 9.59 7 11l5 5z"})})},File:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M15 2H6C4.9 2 4 2.9 4 4V20C4 21.1 4.9 22 6 22H18C19.1 22 20 21.1 20 20V7L15 2ZM6 20V4H14V8H18V20H6ZM16 10V15C16 17.21 14.21 19 12 19C9.79 19 8 17.21 8 15V8.5C8 7.03 9.26 5.86 10.76 6.01C12.06 6.14 13 7.33 13 8.64V15H11V8.5C11 8.22 10.78 8 10.5 8C10.22 8 10 8.22 10 8.5V15C10 16.1 10.9 17 12 17C13.1 17 14 16.1 14 15V10H16Z"})})},File2:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsxs("svg",{...dt(e),...Zn(t),...l,ref:i,children:[v.jsx("path",{d:"M13 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z"}),v.jsx("polyline",{points:"13 2 13 9 20 9"})]})},UnPlug:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r,u=Ni.xs;return v.jsxs("svg",{...dt(e,u),overflow:"hidden",strokeWidth:"0.5",...l,ref:i,children:[v.jsx("path",{d:"M7.85 9.679C7.92 9.747 8.03 9.745 8.1 9.674 8.17 9.606 8.17 9.497 8.1 9.428L6.84 8.17 8.17 6.844 9.43 8.103C9.5 8.171 9.61 8.169 9.68 8.098 9.75 8.03 9.75 7.921 9.68 7.852L8.42 6.594 9.39 5.629 8.13 4.377C7.15 3.389 5.56 3.335 4.51 4.254L4.13 3.857C3.29 2.997 2.15 2.511 0.95 2.508L0.35 2.508 0.35 2.862 0.95 2.862C2.05 2.865 3.11 3.312 3.87 4.104L4.26 4.504C3.34 5.555 3.39 7.143 4.38 8.133L5.63 9.385 6.59 8.42ZM4.63 7.883C3.73 6.984 3.73 5.526 4.63 4.627 5.53 3.728 6.98 3.728 7.88 4.627L8.88 5.629 5.63 8.885Z",stroke:t,fill:t}),v.jsx("path",{d:"M16.06 14.167C15.01 14.169 13.99 13.758 13.23 13.021L12.78 12.58C13.69 11.529 13.64 9.946 12.65 8.959L11.4 7.707 7.64 11.464 8.9 12.716C9.89 13.707 11.47 13.757 12.52 12.831L12.99 13.276C13.81 14.076 14.91 14.523 16.06 14.521L16.65 14.521 16.65 14.167ZM9.15 12.465 8.14 11.464 11.4 8.208 12.4 9.21C13.31 10.104 13.31 11.562 12.42 12.466 11.53 13.369 10.07 13.377 9.16 12.483 9.16 12.477 9.15 12.471 9.15 12.465Z",stroke:t,fill:t})]})},CloudSync:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r,u=Ni.xs;return v.jsxs("svg",{...dt(e,u),overflow:"hidden",strokeWidth:"0.166718",...l,ref:i,children:[v.jsx("path",{d:"M9.81667 8.6C9.81667 8.6 9.81667 8.6 9.81667 8.6 9.81667 8.6 9.81667 8.6 9.81667 8.6 9.68333 7.41667 8.61667 6.55 7.43333 6.66667 6.65 6.75 5.98333 7.23333 5.66667 7.95L5.96667 8.08333C6.36667 7.15 7.45 6.73333 8.38333 7.13333 8.96667 7.38333 9.36667 7.91667 9.46667 8.55 9.46667 8.55 9.46667 8.55 9.46667 8.55 9.46667 8.55 9.46667 8.55 9.46667 8.55L9.1 8.18333 8.86667 8.41667 9.65 9.2 10.4333 8.41667 10.2 8.18333 9.81667 8.6Z",stroke:t,fill:t,transform:"matrix(1, 0, 0, 1.0625, 0, 0)"}),v.jsx("path",{d:"M7.66667 10.6667C6.75 10.6667 5.98333 10 5.85 9.1 5.85 9.1 5.85 9.1 5.85 9.1 5.85 9.1 5.85 9.1 5.85 9.1L6.21667 9.46667 6.45 9.23333 5.66667 8.43333 4.88333 9.21667 5.11667 9.45 5.5 9.06667C5.5 9.06667 5.5 9.06667 5.5 9.06667 5.5 9.06667 5.5 9.06667 5.5 9.06667 5.63333 10.25 6.68333 11.1167 7.88333 11 8.66667 10.9167 9.33333 10.4333 9.65 9.71667L9.35 9.58333C9.05 10.2333 8.4 10.6667 7.66667 10.6667Z",stroke:t,fill:t,transform:"matrix(1, 0, 0, 1.0625, 0, 0)"}),v.jsx("path",{d:"M13.4333 7.48333C13.3 6.66667 12.85 5.93333 12.1833 5.45 11.4833 4.96667 10.6333 4.78333 9.8 4.95 9.13333 3.95 8.03333 3.33333 6.83333 3.33333 6.56667 3.33333 6.28333 3.36667 6.01667 3.43333 4.6 3.8 3.53333 4.98333 3.31667 6.43333 2.36667 6.46667 1.5 6.91667 0.933333 7.66667 0.266667 8.6 0.15 9.81667 0.616667 10.8667 1.1 11.9 2.1 12.5833 3.23333 12.65L4.45 12.65 11.3667 12.6667 13.1333 12.6667C14.5667 12.6333 15.7 11.4333 15.6667 10 15.6333 8.71667 14.6833 7.66667 13.4333 7.48333 13.4333 7.48333 13.4333 7.48333 13.4333 7.48333ZM15.3333 10.2C15.25 11.3667 14.3 12.3 13.1333 12.3333L11.3667 12.3333 4.45 12.3167 3.25 12.3167C2.25 12.25 1.35 11.65 0.933333 10.7333 0.5 9.8 0.6 8.7 1.2 7.86667 1.71667 7.2 2.48333 6.8 3.33333 6.76667L3.61667 6.75 3.65 6.48333C3.85 5.16667 4.81667 4.1 6.1 3.75 6.33333 3.7 6.58333 3.66667 6.83333 3.66667 7.91667 3.66667 8.93333 4.21667 9.51667 5.13333L9.63333 5.31667 9.85 5.26667C10.5833 5.11667 11.35 5.28333 11.9667 5.71667 12.5667 6.15 12.9667 6.8 13.0833 7.53333L13.1167 7.76667 13.35 7.8C14.55 7.98333 15.3833 9.01667 15.3333 10.2L15.3333 10.2Z",stroke:t,fill:t,transform:"matrix(1, 0, 0, 1.0625, 0, 0)"})]})},CalendarDay:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"})})},DateRange:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"})})},PlayArrow:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M8 5v14l11-7z"})})},Mail:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z"})})},MailOutline:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsxs("svg",{...dt(e),...Zn(t),...l,ref:i,children:[v.jsx("path",{d:"M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"}),v.jsx("polyline",{points:"22,6 12,13 2,6"})]})},Bell:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsxs("svg",{...dt(e),...Zn(t),...l,ref:i,children:[v.jsx("path",{d:"M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"}),v.jsx("path",{d:"M13.73 21a2 2 0 0 1-3.46 0"})]})},Download:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M5 20h14v-2H5v2zM19 9h-4V3H9v6H5l7 7 7-7z"})})},Folder:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z"})})},FolderPost:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-1 9H9V9h10v2zm-4 4H9v-2h6v2zm4-8H9V5h10v2z"})})},FolderOpen:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 12H4V8h16v10z"})})},FolderCopy:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsxs("svg",{...dt(e),fill:t,...l,ref:i,children:[v.jsx("path",{d:"M3 6H1v13c0 1.1.9 2 2 2h17v-2H3V6z"}),v.jsx("path",{d:"M21 4h-7l-2-2H7c-1.1 0-1.99.9-1.99 2L5 15c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2z"})]})},FolderAdd:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M20 6h-8l-2-2H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-1 8h-3v3h-2v-3h-3v-2h3V9h2v3h3v2z"})})},FolderMove:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M20 6h-8l-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m-6 12v-3h-4v-4h4V8l5 5z"})})},FirstPage:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsxs("svg",{...dt(e),fill:t,...l,ref:i,children:[v.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),v.jsx("path",{d:"M24 24H0V0h24v24z",fill:"none"})]})},LastPage:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"})})},NavigateBefore:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})})},NavigateNext:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})})},ListAdd:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M14,10H3v2h11V10z M14,6H3v2h11V6z M18,14v-4h-2v4h-4v2h4v4h2v-4h4v-2H18z M3,16h7v-2H3V16z"})})},ListRemove:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M14 10H3v2h11v-2zm0-4H3v2h11V6zM3 16h7v-2H3v2zm11.41 6L17 19.41 19.59 22 21 20.59 18.41 18 21 15.41 19.59 14 17 16.59 14.41 14 13 15.41 15.59 18 13 20.59 14.41 22z"})})},Cancel:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"})})},Article:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z"})})},Info:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M11,7h2v2h-2V7z M11,11h2v6h-2V11z M12,2C6.48,2,2,6.48,2,12s4.48,10,10,10s10-4.48,10-10S17.52,2,12,2z M12,20 c-4.41,0-8-3.59-8-8s3.59-8,8-8s8,3.59,8,8S16.41,20,12,20z"})})},Type:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsxs("svg",{...dt(e),...Zn(t),...l,ref:i,children:[v.jsx("polyline",{points:"4 7 4 4 20 4 20 7"}),v.jsx("line",{x1:"9",y1:"20",x2:"15",y2:"20"}),v.jsx("line",{x1:"12",y1:"4",x2:"12",y2:"20"})]})},PersonAdd:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M13 8c0-2.21-1.79-4-4-4S5 5.79 5 8s1.79 4 4 4 4-1.79 4-4m2 2v2h3v3h2v-3h3v-2h-3V7h-2v3zM1 18v2h16v-2c0-2.66-5.33-4-8-4s-8 1.34-8 4"})})},CheckNormal:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z",fill:t})})},Create:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"})})},PersonRemove:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M14 8c0-2.21-1.79-4-4-4S6 5.79 6 8s1.79 4 4 4 4-1.79 4-4m3 2v2h6v-2zM2 18v2h16v-2c0-2.66-5.33-4-8-4s-8 1.34-8 4"})})},Refresh:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"})})},Undo:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"})})},Return:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsxs("svg",{...dt(e),fill:t,...l,ref:i,children:[v.jsx("path",{d:"M4 15L3.46967 14.4697C3.17678 14.7626 3.17678 15.2374 3.46967 15.5303L4 15ZM7.53033 12.5303C7.82322 12.2374 7.82322 11.7626 7.53033 11.4697C7.23744 11.1768 6.76256 11.1768 6.46967 11.4697L7.53033 12.5303ZM6.46967 18.5303C6.76256 18.8232 7.23744 18.8232 7.53033 18.5303C7.82322 18.2374 7.82322 17.7626 7.53033 17.4697L6.46967 18.5303ZM6.46967 11.4697L3.46967 14.4697L4.53033 15.5303L7.53033 12.5303L6.46967 11.4697ZM3.46967 15.5303L6.46967 18.5303L7.53033 17.4697L4.53033 14.4697L3.46967 15.5303Z",fill:"#333333"}),v.jsx("path",{d:"M11 5.25C10.5858 5.25 10.25 5.58579 10.25 6C10.25 6.41421 10.5858 6.75 11 6.75V5.25ZM4 14.25C3.58579 14.25 3.25 14.5858 3.25 15C3.25 15.4142 3.58579 15.75 4 15.75V14.25ZM11 6.75H16V5.25H11V6.75ZM16 15.75C17.3742 15.75 18.5687 15.0388 19.3991 14.0651C20.2284 13.0926 20.75 11.7983 20.75 10.5H19.25C19.25 11.4109 18.8762 12.3665 18.2577 13.0918C17.6404 13.8157 16.835 14.25 16 14.25V15.75ZM16 6.75C16.8349 6.75 17.6404 7.18427 18.2577 7.90822C18.8762 8.63348 19.25 9.58913 19.25 10.5H20.75C20.75 9.20173 20.2284 7.90738 19.3991 6.93492C18.5687 5.96116 17.3741 5.25 16 5.25V6.75ZM16 14.25H4V15.75H16V14.25Z",fill:"#333333"})]})},Gear:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"})})},TriangleUp:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),...Zn(t),...l,ref:i,children:v.jsx("path",{d:"M18 15 L12 9 L6 15"})})},TriangleDown:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),...Zn(t),...l,ref:i,children:v.jsx("path",{d:"M6 9 12 15 18 9"})})},CircleHelp:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M11 18h2v-2h-2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4"})})},Cow:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("g",{transform:"scale(0.046875 0.046875)",children:v.jsx("path",{d:"M510.256,187.787c-2.16-7.414-6.118-13.725-11.079-18.567c-7.477-7.3-16.818-11.393-26.211-13.777 c-9.43-2.386-19.109-3.114-28.034-3.124c-7.732,0-14.89,0.562-20.744,1.219h0.016c-4.732,0.531-9.07,1.426-12.788,2.103 c-3.697,0.708-6.821,1.156-8.597,1.136l-0.557-0.042c-0.031-0.167-0.063-0.261-0.094-0.48c-2.63-18.598-4.03-36.864-9.06-55.494 c-5.004-18.619-13.976-37.457-30.986-55.826c-8.07-8.83-17.973-13.454-27.476-13.403c-8.43-0.01-15.98,3.489-21.312,8.779 c-5.337,5.279-8.763,12.517-8.784,20.504c-0.005,3.686,0.88,7.466,2.484,11.028l-0.067,0.031c4.992,13.434,7.794,25.784,7.768,35.719 c0,5.935-0.948,10.955-2.754,15.141c-2.77,6.227-7.196,11.111-15.923,15.193c-8.695,4.019-21.816,6.685-40.06,6.664 c-24.388,0.042-39.4-4.759-47.454-11.039c-4.082-3.155-6.697-6.623-8.529-10.819c-1.807-4.186-2.754-9.206-2.754-15.141 c-0.026-9.935,2.77-22.285,7.768-35.719l-0.068-0.02c1.604-3.582,2.489-7.352,2.485-11.028c-0.021-7.997-3.448-15.235-8.784-20.514 c-5.332-5.29-12.882-8.789-21.311-8.789c-9.502-0.042-19.406,4.571-27.476,13.412c-17.01,18.359-25.982,37.207-30.985,55.826 c-5.035,18.63-6.431,36.896-9.06,55.494c-0.032,0.229-0.063,0.312-0.099,0.48l-0.552,0.042c-1.77,0.02-4.894-0.428-8.596-1.136 c-3.718-0.687-8.055-1.572-12.793-2.103h0.01c-5.836-0.646-13.001-1.208-20.733-1.219c-11.892,0.031-25.143,1.25-37.338,6.134 c-6.087,2.458-11.939,5.904-16.906,10.768c-4.962,4.842-8.919,11.153-11.08,18.567C0.563,191.806,0,196.014,0,200.282 c0.099,18.276,9.836,37.583,27.684,53.817c16.844,15.245,41.243,27.617,72.728,33.24c0.114,0.489,0.223,0.896,0.344,1.458 c1.874,8.664,4.102,25.242,8.247,44.591c6.285,29.115,16.896,65.167,39.16,94.835c11.142,14.798,25.31,27.981,43.201,37.364 c17.879,9.404,39.378,14.902,64.636,14.892c37.978,0.083,67.422-12.58,88.905-31.667c32.281-28.669,47.173-70.136,55.613-104.562 c4.186-17.234,6.706-32.854,8.654-44.225c0.912-5.353,1.708-9.748,2.4-12.674c31.496-5.624,55.9-17.994,72.744-33.25 c17.848-16.234,27.58-35.541,27.684-53.817C512,196.014,511.438,191.806,510.256,187.787z M165.549,59.409 c5.118-5.456,9.022-6.508,11.804-6.55c2.499,0,4.665,1,6.316,2.615c1.651,1.624,2.473,3.696,2.453,5.352l-0.625,2.572 l-0.261,0.522l-0.198,0.541c-5.508,14.923-9.076,29.376-9.101,43.133c0,8.195,1.312,16.192,4.498,23.586 c2.526,5.946,6.404,11.288,11.32,15.912c-7.967-0.167-16.605-0.292-24.993-0.396c-13.745-0.168-26.596-0.25-34.136-0.303 c1.818-14.35,3.453-27.606,6.847-40.05C143.884,90.254,150.908,75.321,165.549,59.409z M318.981,441.844 c-16.234,10.59-36.442,17.276-62.98,17.307c-33.38-0.083-56.795-10.528-74.784-26.315c-12.834-11.267-22.712-25.689-30.455-41.195 c0.901-4.78,3.015-9.133,6.436-13.392c6.935-8.612,19.78-16.308,36.791-21.514c16.974-5.258,37.921-8.122,60.576-8.122 c30.204-0.031,57.394,5.144,76.138,14.1c9.383,4.456,16.584,9.809,21.234,15.536c4.483,5.581,6.706,11.33,6.893,17.994 c-0.625,1.156-1.15,2.364-1.801,3.499C347.508,416.477,335.189,431.243,318.981,441.844z M470.002,238.292 c-14.417,13.058-36.708,24.524-67.495,29.033l-2.374,0.344l-1.994,1.333c-2.578,1.79-3.583,3.53-4.39,4.904 c-1.431,2.708-2.014,4.927-2.702,7.571c-1.203,4.864-2.213,10.954-3.473,18.26c-1.524,8.625-3.428,19.124-6.134,30.576 c-7.247,29.665-20.215,66.061-48.03,91.907c-16.028,14.232-36.169,24.516-64.055,24.466c-21.776,0-40.292-4.969-55.129-12.732 c-14.839-7.742-27.058-18.692-36.544-30.747c-19.038-25.604-28.956-57.424-34.635-85.312c-1.642-8.429-2.642-14.843-3.494-19.853 c-0.693-3.697-1.256-5.834-1.943-7.519c-0.688-1.698-1.743-3.24-4.323-5.03l-1.989-1.333l-2.374-0.344 c-30.788-4.509-53.083-15.975-67.5-29.033c-15.05-13.646-22.688-28.674-22.749-38.01c0-1.625,0.396-3.859,1.057-6.283 c1.261-4.849,3.597-10.709,6.665-16.755c5.97-12.085,14.748-24.971,25.422-36.775c2.188,1.828,4.64,3.501,7.441,4.98 c9.854,5.132,22.406,8.838,35.833,9.723c12.073,0.823,24.653-0.057,35.493-3.755c10.859-3.666,20.146-9.648,26.908-17.71 c6.767-8.081,10.94-18.221,11.255-29.685c0-2.073-0.26-3.948-0.64-5.901c-0.26-1.203-0.484-2.452-0.641-3.667 c-1.78-12.632-5.748-24.661-11.853-37.393c-3.062-6.173-6.634-12.165-9.359-17.301c-0.932-1.801-1.776-3.414-2.552-5.155 c4.911-5.416,10.209-10.13,15.51-14.678c12.045-10.674,23.606-19.829,33.336-26.128c7.47,6.566,14.801,14.498,21.238,23.858 c12.843,18.226,20.273,37.197,25.055,55.19c4.794,17.983,6.636,34.864,9.055,50.801c0.78,4.584,1.35,8.114,2.373,11.554 c0.98,3.229,2.306,6.316,4.664,9.208c2.396,2.892,5.74,5.532,10.96,6.409c1.296,0.219,3.84-0.5,7.683-1.187 c3.838-0.641,8.727-1.448,14.168-1.948c5.423-0.625,11.573-1.036,18.168-1.057c8.92,0,18.659,0.667,28.086,2.807 c9.426,2.141,17.48,6.104,23.654,12.281c3.177,3.093,5.784,6.775,7.579,10.938c1.778,4.141,2.74,8.704,2.74,13.314 C492.688,209.625,485.052,224.646,470.002,238.292z"})})})},CircleAlertOutline:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsxs("svg",{...dt(e),...Zn(t),...l,ref:i,children:[v.jsx("circle",{cx:"12",cy:"12",r:"10"}),v.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),v.jsx("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]})},CircleAlert:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"})})},Manager:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsxs("svg",{...dt(e),fill:t,...l,ref:i,children:[v.jsx("circle",{cx:"10",cy:"8",r:"4"}),v.jsx("path",{d:"M10.67 13.02c-.22-.01-.44-.02-.67-.02-2.42 0-4.68.67-6.61 1.82-.88.52-1.39 1.5-1.39 2.53V20h9.26c-.79-1.13-1.26-2.51-1.26-4 0-1.07.25-2.07.67-2.98M20.75 16c0-.22-.03-.42-.06-.63l1.14-1.01-1-1.73-1.45.49q-.48-.405-1.08-.63L18 11h-2l-.3 1.49q-.6.225-1.08.63l-1.45-.49-1 1.73 1.14 1.01c-.03.21-.06.41-.06.63s.03.42.06.63l-1.14 1.01 1 1.73 1.45-.49q.48.405 1.08.63L16 21h2l.3-1.49q.6-.225 1.08-.63l1.45.49 1-1.73-1.14-1.01c.03-.21.06-.41.06-.63M17 18c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"})]})},ManagerOutline:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsxs("svg",{...dt(e,96),...Zn(t),...l,ref:i,children:[v.jsxs("g",{clipPath:"url(#clip0_1_3)",children:[v.jsx("path",{d:"M80 84V76C80 71.7565 78.3143 67.6869 75.3137 64.6863C72.3131 61.6857 68.2435 60 64 60V70L48 60L32 70V60C27.7565 60 23.6869 61.6857 20.6863 64.6863C17.6857 67.6869 16 71.7565 16 76V84",strokeWidth:"8"}),v.jsx("path",{d:"M48 44C56.8366 44 64 36.8366 64 28C64 19.1634 56.8366 12 48 12C39.1634 12 32 19.1634 32 28C32 36.8366 39.1634 44 48 44Z",strokeWidth:"8"})]}),v.jsx("defs",{children:v.jsx("clipPath",{id:"clip0_1_3",children:v.jsx("rect",{width:"96",height:"96",fill:"white"})})})]})},Admin:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M9 15c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4m13.1-8.16c.01-.11.02-.22.02-.34s-.01-.23-.03-.34l.74-.58c.07-.05.08-.15.04-.22l-.7-1.21c-.04-.08-.14-.1-.21-.08l-.86.35c-.18-.14-.38-.25-.59-.34l-.13-.93c-.02-.09-.09-.15-.18-.15h-1.4c-.09 0-.16.06-.17.15l-.13.93c-.21.09-.41.21-.59.34l-.87-.35c-.08-.03-.17 0-.21.08l-.7 1.21c-.04.08-.03.17.04.22l.74.58c-.02.11-.03.23-.03.34s.01.23.03.34l-.74.58c-.07.05-.08.15-.04.22l.7 1.21c.04.08.14.1.21.08l.87-.35c.18.14.38.25.59.34l.13.93c.01.09.08.15.17.15h1.4c.09 0 .16-.06.17-.15l.13-.93c.21-.09.41-.21.59-.34l.87.35c.08.03.17 0 .21-.08l.7-1.21c.04-.08.03-.17-.04-.22zm-2.6.91c-.69 0-1.25-.56-1.25-1.25s.56-1.25 1.25-1.25 1.25.56 1.25 1.25-.56 1.25-1.25 1.25m.42 3.93-.5-.87c-.03-.06-.1-.08-.15-.06l-.62.25q-.195-.15-.42-.24l-.09-.66c-.02-.06-.08-.1-.14-.1h-1c-.06 0-.11.04-.12.11l-.09.66c-.15.06-.29.15-.42.24l-.62-.25c-.06-.02-.12 0-.15.06l-.5.87c-.03.06-.02.12.03.16l.53.41c-.01.08-.02.16-.02.24s.01.17.02.24l-.53.41c-.05.04-.06.11-.03.16l.5.87c.03.06.1.08.15.06l.62-.25q.195.15.42.24l.09.66c.01.07.06.11.12.11h1c.06 0 .12-.04.12-.11l.09-.66c.15-.06.29-.15.42-.24l.62.25c.06.02.12 0 .15-.06l.5-.87c.03-.06.02-.12-.03-.16l-.52-.41c.01-.08.02-.16.02-.24s-.01-.17-.02-.24l.53-.41c.05-.04.06-.11.04-.17m-2.42 1.65c-.46 0-.83-.38-.83-.83 0-.46.38-.83.83-.83s.83.38.83.83c0 .46-.37.83-.83.83M4.74 9h8.53c.27 0 .49-.22.49-.49v-.02c0-.27-.22-.49-.49-.49H13c0-1.48-.81-2.75-2-3.45v.95c0 .28-.22.5-.5.5s-.5-.22-.5-.5V4.14C9.68 4.06 9.35 4 9 4s-.68.06-1 .14V5.5c0 .28-.22.5-.5.5S7 5.78 7 5.5v-.95C5.81 5.25 5 6.52 5 8h-.26c-.27 0-.49.22-.49.49v.03c0 .26.22.48.49.48M9 13c1.86 0 3.41-1.28 3.86-3H5.14c.45 1.72 2 3 3.86 3"})})},Equalizer:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M10 20h4V4h-4zm-6 0h4v-8H4zM16 9v11h4V9z"})})},ABC:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M21 11h-1.5v-.5h-2v3h2V13H21v1c0 .55-.45 1-1 1h-3c-.55 0-1-.45-1-1v-4c0-.55.45-1 1-1h3c.55 0 1 .45 1 1zM8 10v5H6.5v-1.5h-2V15H3v-5c0-.55.45-1 1-1h3c.55 0 1 .45 1 1m-1.5.5h-2V12h2zm7 1.5c.55 0 1 .45 1 1v1c0 .55-.45 1-1 1h-4V9h4c.55 0 1 .45 1 1v1c0 .55-.45 1-1 1M11 10.5v.75h2v-.75zm2 2.25h-2v.75h2z"})})},Auth:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M12 2 4 5v6.09c0 5.05 3.41 9.76 8 10.91 4.59-1.15 8-5.86 8-10.91V5zm-1.06 13.54L7.4 12l1.41-1.41 2.12 2.12 4.24-4.24 1.41 1.41z"})})},AuthAdd:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M13.22 22.61c-.4.15-.8.29-1.22.39-5.16-1.26-9-6.45-9-12V5l9-4 9 4v6c0 .9-.11 1.78-.3 2.65-.81-.41-1.73-.65-2.7-.65-3.31 0-6 2.69-6 6 0 1.36.46 2.61 1.22 3.61M19 20v2.99s-1.99.01-2 0V20h-3v-2h3v-3h2v3h3v2z"})})},Switch:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"m18 12 4-4-4-4v3H3v2h15zM6 12l-4 4 4 4v-3h15v-2H6z"})})},Add:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})})},Edit:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM5.92 19H5v-.92l9.06-9.06.92.92zM20.71 5.63l-2.34-2.34c-.2-.2-.45-.29-.71-.29s-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41"})})},EditOff:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"m14.06 9.02.92.92-1.11 1.11 1.41 1.41 2.52-2.52-3.75-3.75-2.52 2.52 1.41 1.41zm6.65-1.98c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29s-.51.1-.7.29l-1.83 1.83 3.75 3.75zM2.81 2.81 1.39 4.22l7.32 7.32L3 17.25V21h3.75l5.71-5.71 7.32 7.32 1.41-1.41zM5.92 19H5v-.92l5.13-5.13.92.92z"})})},Delete:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zm2.46-7.12 1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"})})},Save:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"})})},Remove:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M19 13H5v-2h14z"})})},Sync:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8m0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4z"})})},X:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsxs("svg",{...dt(e),...Zn(t),...l,ref:i,children:[v.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),v.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})},MoreVertical:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsxs("svg",{...dt(e),...Zn(t),...l,ref:i,children:[v.jsx("circle",{cx:"12",cy:"12",r:"1"}),v.jsx("circle",{cx:"12",cy:"5",r:"1"}),v.jsx("circle",{cx:"12",cy:"19",r:"1"})]})},MoreHorizontal:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsxs("svg",{...dt(e),...Zn(t),...l,ref:i,children:[v.jsx("circle",{cx:"12",cy:"12",r:"1"}),v.jsx("circle",{cx:"19",cy:"12",r:"1"}),v.jsx("circle",{cx:"5",cy:"12",r:"1"})]})},Verified:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsxs("svg",{...dt(e),...Zn(t),...l,ref:i,children:[v.jsx("path",{d:"M10.708 4.03551C11.4008 3.27361 12.5992 3.27361 13.292 4.03551C14.0105 4.82555 15.0715 5.21174 16.1297 5.06835C17.1502 4.93006 18.0682 5.70033 18.1092 6.72935C18.1518 7.79637 18.7163 8.77423 19.6191 9.34458C20.4898 9.89462 20.6979 11.0747 20.0678 11.8894C19.4146 12.7341 19.2185 13.8461 19.5435 14.8633C19.8569 15.8443 19.2577 16.8821 18.2514 17.1012C17.208 17.3284 16.343 18.0542 15.9381 19.0423C15.5476 19.9952 14.4216 20.4051 13.5099 19.9261C12.5646 19.4294 11.4354 19.4294 10.4901 19.9261C9.57843 20.4051 8.45237 19.9952 8.06187 19.0423C7.65695 18.0542 6.79199 17.3284 5.74857 17.1012C4.7423 16.8821 4.14314 15.8443 4.45654 14.8633C4.7815 13.8461 4.58543 12.7341 3.93215 11.8894C3.30214 11.0747 3.51023 9.89462 4.38087 9.34458C5.28366 8.77423 5.84823 7.79637 5.89077 6.72935C5.9318 5.70033 6.84977 4.93006 7.87028 5.06835C8.92848 5.21174 9.98951 4.82555 10.708 4.03551Z",strokeWidth:"1.5"}),v.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.5682 10.0607L15.5076 9.00002L11.0719 13.4357L8.56068 10.9244L7.50002 11.9851L11.0719 15.557L12.1326 14.4963L12.1326 14.4963L16.5682 10.0607Z",fill:t,strokeWidth:0})]})},NonVerified:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsxs("svg",{...dt(e),...Zn(t),...l,ref:i,children:[v.jsx("path",{style:{...l.style,transition:"stroke var(--Transition)"},d:"M10.1531 3.53092C11.1435 2.44181 12.8565 2.44181 13.8469 3.53092V3.53092C14.3994 4.13844 15.2153 4.4354 16.029 4.32514V4.32514C17.4878 4.12747 18.8 5.22853 18.8586 6.69947V6.69947C18.8913 7.51998 19.3255 8.27193 20.0197 8.71052V8.71052C21.2643 9.49677 21.5617 11.1837 20.6611 12.3482V12.3482C20.1588 12.9978 20.008 13.8529 20.2579 14.6351V14.6351C20.7059 16.0374 19.8494 17.5208 18.411 17.834V17.834C17.6086 18.0087 16.9435 18.5668 16.6321 19.3267V19.3267C16.0739 20.6888 14.4643 21.2747 13.1611 20.59V20.59C12.4341 20.2081 11.5659 20.2081 10.8389 20.59V20.59C9.53573 21.2747 7.92608 20.6888 7.36788 19.3267V19.3267C7.05651 18.5668 6.39137 18.0087 5.58901 17.834V17.834C4.1506 17.5208 3.29413 16.0374 3.74211 14.6351V14.6351C3.992 13.8529 3.84122 12.9978 3.33887 12.3482V12.3482C2.43829 11.1837 2.73574 9.49677 3.98029 8.71052V8.71052C4.67452 8.27193 5.10865 7.51998 5.14137 6.69947V6.69947C5.20002 5.22853 6.51221 4.12747 7.97099 4.32514V4.32514C8.78471 4.4354 9.60062 4.13844 10.1531 3.53092V3.53092Z",stroke:"var(--line-normal)",strokeWidth:"0.75",strokeMiterlimit:"11.4737",strokeLinecap:"round",strokeDasharray:"0.75 1.5"}),v.jsx("path",{style:{...l.style,transition:"fill var(--Transition)"},d:"M16.2224 8.5837L16.4875 8.31854C16.3411 8.17209 16.1037 8.17209 15.9572 8.31854L16.2224 8.5837ZM17.5013 9.86264L17.7665 10.1278C17.9129 9.98136 17.9129 9.74392 17.7665 9.59747L17.5013 9.86264ZM10.8739 13.9322L10.6087 14.1974C10.679 14.2677 10.7744 14.3072 10.8739 14.3072C10.9733 14.3072 11.0687 14.2677 11.139 14.1974L10.8739 13.9322ZM7.84584 10.9042L8.111 10.639C8.04068 10.5687 7.9453 10.5292 7.84584 10.5292C7.74638 10.5292 7.651 10.5687 7.58067 10.639L7.84584 10.9042ZM6.5669 12.1831L6.30174 11.9179C6.15529 12.0644 6.15529 12.3018 6.30174 12.4483L6.5669 12.1831ZM10.8739 16.4901L10.6087 16.7553C10.7552 16.9017 10.9926 16.9017 11.1391 16.7553L10.8739 16.4901ZM12.1528 15.2112L12.418 15.4763C12.5644 15.3299 12.5644 15.0924 12.418 14.946L12.1528 15.2112ZM12.1528 15.2111L11.8876 14.946C11.7412 15.0924 11.7412 15.3299 11.8876 15.4763L12.1528 15.2111ZM15.6601 8.61568C15.5136 8.76212 15.5136 8.99956 15.6601 9.14601C15.8065 9.29245 16.044 9.29245 16.1904 9.14601L15.6601 8.61568ZM15.0018 10.3346C15.1483 10.1881 15.1483 9.95068 15.0018 9.80423C14.8554 9.65778 14.618 9.65778 14.4715 9.80423L15.0018 10.3346ZM13.8772 10.3985C13.7308 10.545 13.7308 10.7824 13.8772 10.9288C14.0237 11.0753 14.2611 11.0753 14.4076 10.9288L13.8772 10.3985ZM13.219 12.1174C13.3655 11.9709 13.3655 11.7335 13.219 11.5871C13.0726 11.4406 12.8351 11.4406 12.6887 11.5871L13.219 12.1174ZM12.0944 12.1813C11.948 12.3278 11.948 12.5652 12.0944 12.7117C12.2409 12.8581 12.4783 12.8581 12.6247 12.7117L12.0944 12.1813ZM11.4362 13.9002C11.5826 13.7538 11.5826 13.5163 11.4362 13.3699C11.2897 13.2234 11.0523 13.2234 10.9059 13.3699L11.4362 13.9002ZM10.8867 13.4147C10.7403 13.2683 10.5028 13.2683 10.3564 13.4147C10.2099 13.5611 10.2099 13.7986 10.3564 13.945L10.8867 13.4147ZM9.34703 12.9357C9.49348 13.0821 9.73091 13.0821 9.87736 12.9357C10.0238 12.7892 10.0238 12.5518 9.87736 12.4054L9.34703 12.9357ZM9.37269 11.9007C9.22624 11.7542 8.9888 11.7542 8.84236 11.9007C8.69591 12.0471 8.69591 12.2846 8.84236 12.431L9.37269 11.9007ZM7.83301 11.4217C7.97946 11.5681 8.21689 11.5681 8.36334 11.4217C8.50979 11.2752 8.50979 11.0378 8.36334 10.8913L7.83301 11.4217ZM7.36752 10.8522C7.22107 10.9986 7.22107 11.236 7.36752 11.3825C7.51396 11.5289 7.7514 11.5289 7.89785 11.3825L7.36752 10.8522ZM7.04522 12.2351C7.19167 12.0887 7.19167 11.8512 7.04522 11.7048C6.89878 11.5583 6.66134 11.5583 6.51489 11.7048L7.04522 12.2351ZM6.54101 12.6875C6.68746 12.834 6.9249 12.834 7.07134 12.6875C7.21779 12.5411 7.21779 12.3037 7.07134 12.1572L6.54101 12.6875ZM8.02845 13.1143C7.88201 12.9679 7.64457 12.9679 7.49812 13.1143C7.35168 13.2608 7.35168 13.4982 7.49812 13.6446L8.02845 13.1143ZM7.97668 14.1232C8.12312 14.2697 8.36056 14.2697 8.50701 14.1232C8.65345 13.9768 8.65345 13.7393 8.50701 13.5929L7.97668 14.1232ZM9.46412 14.55C9.31767 14.4035 9.08023 14.4035 8.93379 14.55C8.78734 14.6964 8.78734 14.9339 8.93379 15.0803L9.46412 14.55ZM9.41234 15.5589C9.55879 15.7053 9.79623 15.7053 9.94267 15.5589C10.0891 15.4124 10.0891 15.175 9.94267 15.0285L9.41234 15.5589ZM10.8998 15.9856C10.7533 15.8392 10.5159 15.8392 10.3695 15.9856C10.223 16.1321 10.223 16.3695 10.3695 16.516L10.8998 15.9856ZM11.3522 16.5421C11.4987 16.3957 11.4987 16.1582 11.3522 16.0118C11.2058 15.8653 10.9683 15.8653 10.8219 16.0118L11.3522 16.5421ZM11.6745 15.1591C11.5281 15.3056 11.5281 15.543 11.6745 15.6895C11.821 15.8359 12.0584 15.8359 12.2048 15.6895L11.6745 15.1591ZM12.418 14.946C12.2715 14.7995 12.0341 14.7995 11.8877 14.946C11.7412 15.0924 11.7412 15.3299 11.8877 15.4763L12.418 14.946ZM11.8877 15.4763C12.0341 15.6228 12.2715 15.6228 12.418 15.4763C12.5644 15.3299 12.5644 15.0924 12.418 14.946L11.8877 15.4763ZM12.7151 15.1792C12.8616 15.0327 12.8616 14.7953 12.7151 14.6488C12.5687 14.5024 12.3312 14.5024 12.1848 14.6488L12.7151 15.1792ZM13.3733 13.4603C13.2269 13.6067 13.2269 13.8442 13.3733 13.9906C13.5198 14.1371 13.7572 14.1371 13.9037 13.9906L13.3733 13.4603ZM14.498 13.3963C14.6444 13.2499 14.6444 13.0124 14.498 12.866C14.3515 12.7196 14.1141 12.7196 13.9676 12.866L14.498 13.3963ZM15.1562 11.6774C15.0097 11.8239 15.0097 12.0613 15.1562 12.2078C15.3026 12.3542 15.5401 12.3542 15.6865 12.2078L15.1562 11.6774ZM16.2808 11.6135C16.4272 11.4671 16.4272 11.2296 16.2808 11.0832C16.1343 10.9367 15.8969 10.9367 15.7505 11.0832L16.2808 11.6135ZM16.939 9.89461C16.7926 10.0411 16.7926 10.2785 16.939 10.4249C17.0855 10.5714 17.3229 10.5714 17.4693 10.4249L16.939 9.89461ZM17.5533 9.38432C17.4069 9.23787 17.1694 9.23787 17.023 9.38432C16.8765 9.53076 16.8765 9.7682 17.023 9.91465L17.5533 9.38432ZM16.1704 9.06202C16.3168 9.20847 16.5542 9.20847 16.7007 9.06202C16.8471 8.91558 16.8471 8.67814 16.7007 8.53169L16.1704 9.06202ZM15.9572 8.31854L15.6601 8.61568L16.1904 9.14601L16.4875 8.84887L15.9572 8.31854ZM14.4715 9.80423L13.8772 10.3985L14.4076 10.9288L15.0018 10.3346L14.4715 9.80423ZM12.6887 11.5871L12.0944 12.1813L12.6247 12.7117L13.219 12.1174L12.6887 11.5871ZM10.9059 13.3699L10.6087 13.667L11.139 14.1974L11.4362 13.9002L10.9059 13.3699ZM11.139 13.667L10.8867 13.4147L10.3564 13.945L10.6087 14.1974L11.139 13.667ZM9.87736 12.4054L9.37269 11.9007L8.84236 12.431L9.34703 12.9357L9.87736 12.4054ZM8.36334 10.8913L8.111 10.639L7.58067 11.1693L7.83301 11.4217L8.36334 10.8913ZM7.58067 10.639L7.36752 10.8522L7.89785 11.3825L8.111 11.1693L7.58067 10.639ZM6.51489 11.7048L6.30174 11.9179L6.83207 12.4483L7.04522 12.2351L6.51489 11.7048ZM6.30174 12.4483L6.54101 12.6875L7.07134 12.1572L6.83207 11.9179L6.30174 12.4483ZM7.49812 13.6446L7.97668 14.1232L8.50701 13.5929L8.02845 13.1143L7.49812 13.6446ZM8.93379 15.0803L9.41234 15.5589L9.94267 15.0285L9.46412 14.55L8.93379 15.0803ZM10.3695 16.516L10.6087 16.7553L11.1391 16.2249L10.8998 15.9856L10.3695 16.516ZM11.1391 16.7553L11.3522 16.5421L10.8219 16.0118L10.6087 16.2249L11.1391 16.7553ZM12.2048 15.6895L12.418 15.4763L11.8877 14.946L11.6745 15.1591L12.2048 15.6895ZM12.418 14.946L12.418 14.946L11.8877 15.4763L11.8877 15.4763L12.418 14.946ZM12.418 14.946L12.418 14.946L11.8876 15.4763L11.8877 15.4763L12.418 14.946ZM12.418 15.4763L12.7151 15.1792L12.1848 14.6488L11.8876 14.946L12.418 15.4763ZM13.9037 13.9906L14.498 13.3963L13.9676 12.866L13.3733 13.4603L13.9037 13.9906ZM15.6865 12.2078L16.2808 11.6135L15.7505 11.0832L15.1562 11.6774L15.6865 12.2078ZM17.4693 10.4249L17.7665 10.1278L17.2361 9.59747L16.939 9.89461L17.4693 10.4249ZM17.7665 9.59747L17.5533 9.38432L17.023 9.91465L17.2361 10.1278L17.7665 9.59747ZM16.7007 8.53169L16.4875 8.31854L15.9572 8.84887L16.1704 9.06202L16.7007 8.53169Z",fill:"var(--line-normal)",strokeWidth:0})]})},Edit2:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsxs("svg",{...dt(e),...Zn(t),...l,ref:i,children:[v.jsx("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),v.jsx("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"})]})},Trash:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsxs("svg",{...dt(e),...Zn(t),...l,ref:i,children:[v.jsx("polyline",{points:"3 6 5 6 21 6"}),v.jsx("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"}),v.jsx("line",{x1:"10",y1:"11",x2:"10",y2:"17"}),v.jsx("line",{x1:"14",y1:"11",x2:"14",y2:"17"})]})},AddRowBelow:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...Mu(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M200-560h560v-240H200v240Zm-80 400v-720h720v720H680v-80h80v-240H200v240h80v80H120Zm360-320Zm0-80v80-80Zm0 0ZM440-80v-80h-80v-80h80v-80h80v80h80v80h-80v80h-80Z"})})},AddRowAbove:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...Mu(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M200-160h560v-240H200v240Zm640 80H120v-720h160v80h-80v240h560v-240h-80v-80h160v720ZM480-480Zm0 80v-80 80Zm0 0Zm-40-240v-80h-80v-80h80v-80h80v80h80v80h-80v80h-80Z"})})},AddColRight:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...Mu(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M160-760v560h240v-560H160ZM80-120v-720h720v160h-80v-80H480v560h240v-80h80v160H80Zm400-360Zm-80 0h80-80Zm0 0Zm320 120v-80h-80v-80h80v-80h80v80h80v80h-80v80h-80Z"})})},AddColLeft:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...Mu(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M800-200v-560H560v560h240Zm-640 80v-160h80v80h240v-560H240v80h-80v-160h720v720H160Zm320-360Zm80 0h-80 80Zm0 0ZM160-360v-80H80v-80h80v-80h80v80h80v80h-80v80h-80Z"})})},RemoveCol:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...Mu(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M360-440h240v-80H360v80Zm-80-120Zm240 0ZM200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h160q33 0 56.5 23.5T440-760v80h-80v-80H200v560h160v-80h80v80q0 33-23.5 56.5T360-120H200Zm400 0q-33 0-56.5-23.5T520-200v-80h80v80h160v-560H600v80h-80v-80q0-33 23.5-56.5T600-840h160q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H600Z"})})},RemoveRow:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsxs("svg",{...Mu(e),fill:t,...l,ref:i,children:[v.jsx("path",{d:"M360-440h240v-80H360v80Z"}),v.jsx("path",{d:"M-80-120Zm240 0ZM200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h160q33 0 56.5 23.5T440-760v80h-80v-80H200v560h160v-80h80v80q0 33-23.5 56.5T360-120H200Zm400 0q-33 0-56.5-23.5T520-200v-80h80v80h160v-560H600v80h-80v-80q0-33 23.5-56.5T600-840h160q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H600Z",transform:"rotate(90 480 -480)"})]})},Table:(r={})=>{const{size:e="md",primaryColor:t="currentColor",svgRef:n,...i}=r;return v.jsx("svg",{...dt(e),...Zn(t),...i,ref:n,children:v.jsx("path",{className:"ql-stroke ql-thick",d:"M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18"})})},Minus:(r={})=>{const{size:e="md",primaryColor:t="currentColor",svgRef:n,...i}=r;return v.jsx("svg",{...dt(e),...Zn(t),...i,ref:n,children:v.jsx("line",{className:"ql-stroke ql-thick",x1:"5",y1:"12",x2:"19",y2:"12"})})},EditorArrow:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n="currentColor",svgRef:i,...l}=r;return v.jsxs("svg",{...dt(e),...l,ref:i,children:[v.jsx("path",{d:"M11 5L16.1962 10.25H5.80385L11 5Z",fill:t}),v.jsx("path",{d:"M11 19L16.1962 13.75H5.80385L11 19Z",fill:n})]})},Target:(r={})=>{const{size:e="md",primaryColor:t="currentColor",svgRef:n,...i}=r;return v.jsx("svg",{...dt(e),...i,ref:n,children:v.jsx("g",{id:"target",children:v.jsx("path",{id:"Vector",d:"M12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19Z",fill:t})})})}}),um=er.keys(ih);var Vl={},Uc={};/**
|
52
|
+
}`;var Ir=jv(function(){return Pr(Z,Xt+"return "+ut).apply(t,se)});if(Ir.source=ut,Bh(Ir))throw Ir;return Ir}function lA(o){return tn(o).toLowerCase()}function cA(o){return tn(o).toUpperCase()}function uA(o,a,p){if(o=tn(o),o&&(p||a===t))return gt(o);if(!o||!(a=Oi(a)))return o;var k=fn(o),B=fn(a),Z=Gr(k,B),se=ni(k,B)+1;return fo(k,Z,se).join("")}function fA(o,a,p){if(o=tn(o),o&&(p||a===t))return o.slice(0,au(o)+1);if(!o||!(a=Oi(a)))return o;var k=fn(o),B=ni(k,fn(a))+1;return fo(k,0,B).join("")}function dA(o,a,p){if(o=tn(o),o&&(p||a===t))return o.replace(yt,"");if(!o||!(a=Oi(a)))return o;var k=fn(o),B=Gr(k,fn(a));return fo(k,B).join("")}function hA(o,a){var p=de,k=j;if(Mn(a)){var B="separator"in a?a.separator:B;p="length"in a?Tr(a.length):p,k="omission"in a?Oi(a.omission):k}o=tn(o);var Z=o.length;if(Ys(o)){var se=fn(o);Z=se.length}if(p>=Z)return o;var fe=p-Xs(k);if(fe<1)return k;var xe=se?fo(se,0,fe).join(""):o.slice(0,fe);if(B===t)return xe+k;if(se&&(fe+=xe.length-fe),Hh(B)){if(o.slice(fe).search(B)){var rt,nt=xe;for(B.global||(B=Js(B.source,tn(kt.exec(B))+"g")),B.lastIndex=0;rt=B.exec(nt);)var ut=rt.index;xe=xe.slice(0,ut===t?fe:ut)}}else if(o.indexOf(Oi(B),fe)!=fe){var Ft=xe.lastIndexOf(B);Ft>-1&&(xe=xe.slice(0,Ft))}return xe+k}function pA(o){return o=tn(o),o&&Rt.test(o)?o.replace(Re,lu):o}var gA=M(function(o,a,p){return o+(p?" ":"")+a.toUpperCase()}),$h=y("toUpperCase");function Fv(o,a,p){return o=tn(o),a=p?t:a,a===t?of(o)?cu(o):Gs(o):o.match(a)||[]}var jv=gr(function(o,a){try{return an(o,t,a)}catch(p){return Bh(p)?p:new or(p)}}),mA=Ka(function(o,a){return zn(a,function(p){p=ma(p),Li(o,p,Fh(o[p],o))}),o});function vA(o){var a=o==null?0:o.length,p=lr();return o=a?Kr(o,function(k){if(typeof k[1]!="function")throw new Bi(u);return[p(k[0]),k[1]]}):[],gr(function(k){for(var B=-1;++B<a;){var Z=o[B];if(an(Z[0],this,k))return an(Z[1],this,k)}})}function yA(o){return xc(di(o,C))}function Uh(o){return function(){return o}}function bA(o,a){return o==null||o!==o?a:o}var _A=Ce(),xA=Ce(!0);function vo(o){return o}function Wh(o){return Pl(typeof o=="function"?o:di(o,C))}function SA(o){return uo(di(o,C))}function CA(o,a){return za(o,di(a,C))}var wA=gr(function(o,a){return function(p){return co(p,o,a)}}),AA=gr(function(o,a){return function(p){return co(o,p,a)}});function Vh(o,a,p){var k=vi(a),B=la(a,k);p==null&&!(Mn(a)&&(B.length||!k.length))&&(p=a,a=o,o=this,B=la(a,vi(a)));var Z=!(Mn(p)&&"chain"in p)||!!p.chain,se=Xa(o);return zn(B,function(fe){var xe=a[fe];o[fe]=xe,se&&(o.prototype[fe]=function(){var rt=this.__chain__;if(Z||rt){var nt=o(this.__wrapped__),ut=nt.__actions__=si(this.__actions__);return ut.push({func:xe,args:arguments,thisArg:o}),nt.__chain__=rt,nt}return xe.apply(o,Ai([this.value()],arguments))})}),o}function TA(){return dr._===this&&(dr._=uc),this}function Gh(){}function EA(o){return o=Tr(o),gr(function(a){return ha(a,o)})}var kA=tr(Kr),RA=tr(Ta),IA=tr($o);function Bv(o){return Lh(o)?T(ma(o)):Cu(o)}function LA(o){return function(a){return o==null?t:es(o,a)}}var MA=is(),DA=is(!0);function Zh(){return[]}function Kh(){return!1}function OA(){return{}}function PA(){return""}function NA(){return!0}function FA(o,a){if(o=Tr(o),o<1||o>ce)return[];var p=oe,k=Ln(o,oe);a=lr(a),o-=oe;for(var B=Te(k,a);++p<o;)a(p);return B}function jA(o){return _r(o)?Kr(o,ma):Fo(o)?[o]:si(ov(tn(o)))}function BA(o){var a=++lc;return tn(o)+a}var HA=It(function(o,a){return o+a},0),qA=os("ceil"),zA=It(function(o,a){return o/a},1),$A=os("floor");function UA(o){return o&&o.length?kl(o,vo,Ts):t}function WA(o,a){return o&&o.length?kl(o,lr(a,2),Ts):t}function VA(o){return ka(o,vo)}function GA(o,a){return ka(o,lr(a,2))}function ZA(o){return o&&o.length?kl(o,vo,Zi):t}function KA(o,a){return o&&o.length?kl(o,lr(a,2),Zi):t}var YA=It(function(o,a){return o*a},1),XA=os("round"),JA=It(function(o,a){return o-a},0);function QA(o){return o&&o.length?Ie(o,vo):0}function e4(o,a){return o&&o.length?Ie(o,lr(a,2)):0}return U.after=Sw,U.ary=mv,U.assign=c3,U.assignIn=Iv,U.assignInWith=Sd,U.assignWith=u3,U.at=f3,U.before=vv,U.bind=Fh,U.bindAll=mA,U.bindKey=yv,U.castArray=Ow,U.chain=hv,U.chunk=$S,U.compact=US,U.concat=WS,U.cond=vA,U.conforms=yA,U.constant=Uh,U.countBy=QC,U.create=d3,U.curry=bv,U.curryRight=_v,U.debounce=xv,U.defaults=h3,U.defaultsDeep=p3,U.defer=Cw,U.delay=ww,U.difference=VS,U.differenceBy=GS,U.differenceWith=ZS,U.drop=KS,U.dropRight=YS,U.dropRightWhile=XS,U.dropWhile=JS,U.fill=QS,U.filter=tw,U.flatMap=iw,U.flatMapDeep=ow,U.flatMapDepth=sw,U.flatten=cv,U.flattenDeep=eC,U.flattenDepth=tC,U.flip=Aw,U.flow=_A,U.flowRight=xA,U.fromPairs=rC,U.functions=x3,U.functionsIn=S3,U.groupBy=aw,U.initial=iC,U.intersection=oC,U.intersectionBy=sC,U.intersectionWith=aC,U.invert=w3,U.invertBy=A3,U.invokeMap=cw,U.iteratee=Wh,U.keyBy=uw,U.keys=vi,U.keysIn=mo,U.map=md,U.mapKeys=E3,U.mapValues=k3,U.matches=SA,U.matchesProperty=CA,U.memoize=yd,U.merge=R3,U.mergeWith=Lv,U.method=wA,U.methodOf=AA,U.mixin=Vh,U.negate=bd,U.nthArg=EA,U.omit=I3,U.omitBy=L3,U.once=Tw,U.orderBy=fw,U.over=kA,U.overArgs=Ew,U.overEvery=RA,U.overSome=IA,U.partial=jh,U.partialRight=Sv,U.partition=dw,U.pick=M3,U.pickBy=Mv,U.property=Bv,U.propertyOf=LA,U.pull=fC,U.pullAll=fv,U.pullAllBy=dC,U.pullAllWith=hC,U.pullAt=pC,U.range=MA,U.rangeRight=DA,U.rearg=kw,U.reject=gw,U.remove=gC,U.rest=Rw,U.reverse=Ph,U.sampleSize=vw,U.set=O3,U.setWith=P3,U.shuffle=yw,U.slice=mC,U.sortBy=xw,U.sortedUniq=CC,U.sortedUniqBy=wC,U.split=iA,U.spread=Iw,U.tail=AC,U.take=TC,U.takeRight=EC,U.takeRightWhile=kC,U.takeWhile=RC,U.tap=UC,U.throttle=Lw,U.thru=gd,U.toArray=Ev,U.toPairs=Dv,U.toPairsIn=Ov,U.toPath=jA,U.toPlainObject=Rv,U.transform=N3,U.unary=Mw,U.union=IC,U.unionBy=LC,U.unionWith=MC,U.uniq=DC,U.uniqBy=OC,U.uniqWith=PC,U.unset=F3,U.unzip=Nh,U.unzipWith=dv,U.update=j3,U.updateWith=B3,U.values=Lu,U.valuesIn=H3,U.without=NC,U.words=Fv,U.wrap=Dw,U.xor=FC,U.xorBy=jC,U.xorWith=BC,U.zip=HC,U.zipObject=qC,U.zipObjectDeep=zC,U.zipWith=$C,U.entries=Dv,U.entriesIn=Ov,U.extend=Iv,U.extendWith=Sd,Vh(U,U),U.add=HA,U.attempt=jv,U.camelCase=U3,U.capitalize=Pv,U.ceil=qA,U.clamp=q3,U.clone=Pw,U.cloneDeep=Fw,U.cloneDeepWith=jw,U.cloneWith=Nw,U.conformsTo=Bw,U.deburr=Nv,U.defaultTo=bA,U.divide=zA,U.endsWith=W3,U.eq=Ls,U.escape=V3,U.escapeRegExp=G3,U.every=ew,U.find=rw,U.findIndex=av,U.findKey=g3,U.findLast=nw,U.findLastIndex=lv,U.findLastKey=m3,U.floor=$A,U.forEach=pv,U.forEachRight=gv,U.forIn=v3,U.forInRight=y3,U.forOwn=b3,U.forOwnRight=_3,U.get=qh,U.gt=Hw,U.gte=qw,U.has=C3,U.hasIn=zh,U.head=uv,U.identity=vo,U.includes=lw,U.indexOf=nC,U.inRange=z3,U.invoke=T3,U.isArguments=zc,U.isArray=_r,U.isArrayBuffer=zw,U.isArrayLike=go,U.isArrayLikeObject=Vn,U.isBoolean=$w,U.isBuffer=Wl,U.isDate=Uw,U.isElement=Ww,U.isEmpty=Vw,U.isEqual=Gw,U.isEqualWith=Zw,U.isError=Bh,U.isFinite=Kw,U.isFunction=Xa,U.isInteger=Cv,U.isLength=_d,U.isMap=wv,U.isMatch=Yw,U.isMatchWith=Xw,U.isNaN=Jw,U.isNative=Qw,U.isNil=t3,U.isNull=e3,U.isNumber=Av,U.isObject=Mn,U.isObjectLike=Nn,U.isPlainObject=Tf,U.isRegExp=Hh,U.isSafeInteger=r3,U.isSet=Tv,U.isString=xd,U.isSymbol=Fo,U.isTypedArray=Iu,U.isUndefined=n3,U.isWeakMap=i3,U.isWeakSet=o3,U.join=lC,U.kebabCase=Z3,U.last=ss,U.lastIndexOf=cC,U.lowerCase=K3,U.lowerFirst=Y3,U.lt=s3,U.lte=a3,U.max=UA,U.maxBy=WA,U.mean=VA,U.meanBy=GA,U.min=ZA,U.minBy=KA,U.stubArray=Zh,U.stubFalse=Kh,U.stubObject=OA,U.stubString=PA,U.stubTrue=NA,U.multiply=YA,U.nth=uC,U.noConflict=TA,U.noop=Gh,U.now=vd,U.pad=X3,U.padEnd=J3,U.padStart=Q3,U.parseInt=eA,U.random=$3,U.reduce=hw,U.reduceRight=pw,U.repeat=tA,U.replace=rA,U.result=D3,U.round=XA,U.runInContext=ye,U.sample=mw,U.size=bw,U.snakeCase=nA,U.some=_w,U.sortedIndex=vC,U.sortedIndexBy=yC,U.sortedIndexOf=bC,U.sortedLastIndex=_C,U.sortedLastIndexBy=xC,U.sortedLastIndexOf=SC,U.startCase=oA,U.startsWith=sA,U.subtract=JA,U.sum=QA,U.sumBy=e4,U.template=aA,U.times=FA,U.toFinite=Ja,U.toInteger=Tr,U.toLength=kv,U.toLower=lA,U.toNumber=as,U.toSafeInteger=l3,U.toString=tn,U.toUpper=cA,U.trim=uA,U.trimEnd=fA,U.trimStart=dA,U.truncate=hA,U.unescape=pA,U.uniqueId=BA,U.upperCase=gA,U.upperFirst=$h,U.each=pv,U.eachRight=gv,U.first=uv,Vh(U,function(){var o={};return Mi(U,function(a,p){zr.call(U.prototype,p)||(o[p]=a)}),o}(),{chain:!1}),U.VERSION=n,zn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){U[o].placeholder=U}),zn(["drop","take"],function(o,a){br.prototype[o]=function(p){p=p===t?1:cn(Tr(p),0);var k=this.__filtered__&&!a?new br(this):this.clone();return k.__filtered__?k.__takeCount__=Ln(p,k.__takeCount__):k.__views__.push({size:Ln(p,oe),type:o+(k.__dir__<0?"Right":"")}),k},br.prototype[o+"Right"]=function(p){return this.reverse()[o](p).reverse()}}),zn(["filter","map","takeWhile"],function(o,a){var p=a+1,k=p==Q||p==me;br.prototype[o]=function(B){var Z=this.clone();return Z.__iteratees__.push({iteratee:lr(B,3),type:p}),Z.__filtered__=Z.__filtered__||k,Z}}),zn(["head","last"],function(o,a){var p="take"+(a?"Right":"");br.prototype[o]=function(){return this[p](1).value()[0]}}),zn(["initial","tail"],function(o,a){var p="drop"+(a?"":"Right");br.prototype[o]=function(){return this.__filtered__?new br(this):this[p](1)}}),br.prototype.compact=function(){return this.filter(vo)},br.prototype.find=function(o){return this.filter(o).head()},br.prototype.findLast=function(o){return this.reverse().find(o)},br.prototype.invokeMap=gr(function(o,a){return typeof o=="function"?new br(this):this.map(function(p){return co(p,o,a)})}),br.prototype.reject=function(o){return this.filter(bd(lr(o)))},br.prototype.slice=function(o,a){o=Tr(o);var p=this;return p.__filtered__&&(o>0||a<0)?new br(p):(o<0?p=p.takeRight(-o):o&&(p=p.drop(o)),a!==t&&(a=Tr(a),p=a<0?p.dropRight(-a):p.take(a-o)),p)},br.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},br.prototype.toArray=function(){return this.take(oe)},Mi(br.prototype,function(o,a){var p=/^(?:filter|find|map|reject)|While$/.test(a),k=/^(?:head|last)$/.test(a),B=U[k?"take"+(a=="last"?"Right":""):a],Z=k||/^find/.test(a);B&&(U.prototype[a]=function(){var se=this.__wrapped__,fe=k?[1]:arguments,xe=se instanceof br,rt=fe[0],nt=xe||_r(se),ut=function(Fr){var qr=B.apply(U,Ai([Fr],fe));return k&&Ft?qr[0]:qr};nt&&p&&typeof rt=="function"&&rt.length!=1&&(xe=nt=!1);var Ft=this.__chain__,Xt=!!this.__actions__.length,cr=Z&&!Ft,Ir=xe&&!Xt;if(!Z&&nt){se=Ir?se:new br(this);var ur=o.apply(se,fe);return ur.__actions__.push({func:gd,args:[ut],thisArg:t}),new ii(ur,Ft)}return cr&&Ir?o.apply(this,fe):(ur=this.thru(ut),cr?k?ur.value()[0]:ur.value():ur)})}),zn(["pop","push","shift","sort","splice","unshift"],function(o){var a=bl[o],p=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",k=/^(?:pop|shift)$/.test(o);U.prototype[o]=function(){var B=arguments;if(k&&!this.__chain__){var Z=this.value();return a.apply(_r(Z)?Z:[],B)}return this[p](function(se){return a.apply(_r(se)?se:[],B)})}}),Mi(br.prototype,function(o,a){var p=U[a];if(p){var k=p.name+"";zr.call(_s,k)||(_s[k]=[]),_s[k].push({name:a,func:p})}}),_s[Ye(t,x).name]=[{name:"wrapper",func:t}],br.prototype.clone=wl,br.prototype.reverse=Na,br.prototype.value=Al,U.prototype.at=WC,U.prototype.chain=VC,U.prototype.commit=GC,U.prototype.next=ZC,U.prototype.plant=YC,U.prototype.reverse=XC,U.prototype.toJSON=U.prototype.valueOf=U.prototype.value=JC,U.prototype.first=U.prototype.head,Vi&&(U.prototype[Vi]=KC),U},Ao=yl();Jr?((Jr.exports=Ao)._=Ao,Ar._=Ao):dr._=Ao}).call(a4)}(Pf,Pf.exports)),Pf.exports}var z_=l4();const nl=al(z_),c4=r=>{try{return JSON.parse(r)}catch{return}},u4=(r,e)=>JSON.stringify(r,null,e),f4=r=>Object.keys(r),d4=r=>Object.values(r),h4=r=>Object.entries(r),p4=(r,e)=>{Object.entries(r).forEach(([t,n])=>e(t,n))},g4=(r,e)=>Object.keys(r).includes(e),m4=(r,e)=>Object.entries(r).map((t,n)=>e(t,n)),v4=(r,e)=>Object.entries(r).some(([t,n])=>e(t,n)),y4=(r,e)=>Object.entries(r).find(([t,n])=>e(t,n)),$_=r=>A.isValidElement(r)||typeof r=="string"||typeof r=="number"||typeof r=="boolean"||r===null||r===void 0||Array.isArray(r)&&r.every($_),b4=(r,e)=>nl.isEqual(r,e),er={equal:b4,parse:c4,stringify:u4,keys:f4,values:d4,entries:h4,forEach:p4,hasKey:g4,map:m4,some:v4,find:y4,isReactNode:$_},U_="_NoSelect_1wchx_1",W_="_IsFixedShape_1wchx_6",V_="_IsCursorPointer_1wchx_11",G_="_IsInteractive_1wchx_15",$c={NoSelect:U_,IsFixedShape:W_,IsCursorPointer:V_,IsInteractive:G_},_4="_Display1_11vgm_1",x4="_Display2_11vgm_6",S4="_Title1_11vgm_11",C4="_Title2_11vgm_16",w4="_Title3_11vgm_21",A4="_Headline1_11vgm_26",T4="_Headline2_11vgm_31",E4="_Body1Normal_11vgm_36",k4="_Body1Reading_11vgm_41",R4="_Label1_11vgm_46",I4="_Label2_11vgm_51",L4="_Caption1_11vgm_56",M4="_Caption2_11vgm_61",D4="_Regular_11vgm_66",O4="_Medium_11vgm_70",P4="_SemiBold_11vgm_74",N4="_Bold_11vgm_78",Pi={Display1:_4,Display2:x4,Title1:S4,Title2:C4,Title3:w4,Headline1:A4,Headline2:T4,Body1Normal:E4,Body1Reading:k4,Label1:R4,Label2:I4,Caption1:L4,Caption2:M4,Regular:D4,Medium:O4,SemiBold:P4,Bold:N4};function Wv(...r){return r.filter(Boolean).join(" ")}const Z_={NoSelect:$c.NoSelect,IsClickable:Wv($c.NoSelect,$c.IsCursorPointer,$c.IsFixedShape),IsInteractive:Wv($c.NoSelect,$c.IsCursorPointer,$c.IsInteractive)},K_={Display1:Pi.Display1,Display2:Pi.Display2,Title1:Pi.Title1,Title2:Pi.Title2,Title3:Pi.Title3,Headline1:Pi.Headline1,Headline2:Pi.Headline2,Body1Normal:Pi.Body1Normal,Body1Reading:Pi.Body1Reading,Label1:Pi.Label1,Label2:Pi.Label2,Caption1:Pi.Caption1,Caption2:Pi.Caption2,Regular:Pi.Regular,Medium:Pi.Medium,SemiBold:Pi.SemiBold,Bold:Pi.Bold};let lm={};const Gf={...Z_,...K_,...lm};let cm=er.keys(Gf);function F4(){Object.assign(Gf,lm),cm=er.keys(Gf)}function j4(...r){let e=[];for(let t=0;t<r.length;t++){let n=r[t];cm.includes(n)&&(n=Gf[n]),typeof n=="string"&&n!==""&&e.push(n)}return e.join(" ")}function B4(r,...e){const t=[],n=er.keys(r);for(let i=0;i<e.length;i++){let l=e[i];cm.includes(l)?l=Gf[l]:n.includes(l)&&(l=r[l]),typeof l=="string"&&l!==""&&t.push(l)}return t.join(" ")}const Fe={clsx:j4,sclsx:B4,classes:Z_,typographies:K_,additionalClasses:lm,updateKeys:F4},Ni={"2xs":12,xs:16,sm:20,md:24,lg:32,xl:40,"2xl":48,"3xl":64},dt=(r,e=Ni.md)=>{const t=Ni[r],n=t/e,i={xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:`0 0 ${e} ${e}`};if(n<0){const l=(e-t)/2;return{...i,viewBox:`${l} ${l} ${t} ${t}`,transform:`scale(${n})`}}return i},Mu=(r,e=Ni.md)=>{const t=Ni[r],n=40,i=t/e,l={xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:`0 ${-(e*n)} ${e*n} ${e*n}`};if(i<0){const u=(e-t)/2;return{...l,viewBox:`${u} ${-(t*n)} ${t*n} ${t*n}`,transform:`scale(${i})`}}return l},Zn=r=>({fill:"none",stroke:r,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),jr=r=>{const{icon:e,style:t,svgRef:n,...i}=r,l=A.useMemo(()=>ih[e],[e]);return v.jsx(l,{...i,style:{...t,flexShrink:0}})},H4=r=>{const e=er.keys(r);return n=>{const{icon:i,svgRef:l,...u}=n,f=A.useMemo(()=>e.includes(i)?r[i]:ih[i],[i]);return v.jsx(f,{...u})}},ih=Object.freeze({ArrowDown:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"})})},ArrowUp:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"})})},Chat:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M20 17.17 18.83 16H4V4h16v13.17zM20 2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4V4c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm7 18H5V4h2v3h10V4h2v16z"})})},"Check.Checked":(r={})=>{const{size:e="xs",primaryColor:t="currentColor",secondaryColor:n="none",svgRef:i,...l}=r,u=Ni.xs;return v.jsxs("svg",{...dt(e,u),fill:n,...l,ref:i,children:[v.jsx("rect",{x:"0.5",y:"0.5",width:"15",height:"15",rx:"1.5",stroke:t}),v.jsx("path",{d:"M6.25009 10.4324L4.22884 8.41116C4.00148 8.1838 3.63305 8.18315 3.40489 8.40971V8.40971C3.17558 8.6374 3.17492 9.00808 3.40343 9.23658L5.54298 11.3761C5.93351 11.7667 6.56667 11.7667 6.9572 11.3761L12.8387 5.49459C13.0659 5.26741 13.0659 4.89908 12.8387 4.6719V4.6719C12.6116 4.44479 12.2435 4.4447 12.0162 4.6717L6.25009 10.4324Z",fill:t})]})},"Check.Indeterminate":(r={})=>{const{size:e="xs",primaryColor:t="currentColor",secondaryColor:n="none",svgRef:i,...l}=r,u=Ni.xs;return v.jsxs("svg",{...dt(e,u),fill:n,...l,ref:i,children:[v.jsx("rect",{x:"0.5",y:"0.5",width:"15",height:"15",rx:"1.5",stroke:t}),v.jsx("rect",{x:"3",y:"7",width:"10",height:"1",fill:t})]})},"Check.UnChecked":(r={})=>{const{size:e="xs",primaryColor:t="currentColor",secondaryColor:n="none",svgRef:i,...l}=r,u=Ni.xs;return v.jsx("svg",{...dt(e,u),fill:n,...l,ref:i,children:v.jsx("rect",{x:"0.5",y:"0.5",width:"15",height:"15",rx:"1.5",stroke:t})})},CircleCheck:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M16.59 7.58 10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})})},ClipBoard:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M19 2h-4.18C14.4.84 13.3 0 12 0c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm7 18H5V4h2v3h10V4h2v16z"})})},Close:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})})},Document:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z"})})},Menu:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"})})},Person:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"})})},PersonOutline:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsxs("svg",{...dt(e),...Zn(t),...l,ref:i,children:[v.jsx("path",{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"}),v.jsx("circle",{cx:"12",cy:"7",r:"4"})]})},Reset:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"})})},Search:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"})})},Send:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"})})},Spinner:(r={})=>{const{size:e="3xl",primaryColor:t="var(--label-strong)",secondaryColor:n="var(--elevation-10)",svgRef:i,...l}=r,u=Ni["3xl"];return v.jsxs("svg",{...dt(e,u),fill:"none",strokeWidth:"12",...l,ref:i,children:[v.jsx("circle",{cx:"32",cy:"32",r:"22",style:{...l.style,transition:"stroke var(--Transition)"},stroke:n}),v.jsx("path",{style:{...l.style,transition:"stroke var(--Transition)"},d:"M10 32C10 29.1109 10.569 26.2501 11.6746 23.581C12.7803 20.9118 14.4008 18.4865 16.4437 16.4436C18.4865 14.4008 20.9118 12.7803 23.581 11.6747C26.2501 10.569 29.1109 10 32 10",stroke:t,children:v.jsx("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",from:"0 32 32",to:"360 32 32",dur:"1s",repeatCount:"indefinite",calcMode:"spline",keySplines:"0.27 0.71 0.78 0.44",keyTimes:"0;1"})})]})},Stop:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M6 6h12v12H6z"})})},TriangleAlert:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M12 5.99 19.53 19H4.47L12 5.99M2.74 18c-.77 1.33.19 3 1.73 3h15.06c1.54 0 2.5-1.67 1.73-3L13.73 4.99c-.77-1.33-2.69-1.33-3.46 0L2.74 18zM11 11v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1zm0 5h2v2h-2z"})})},TriangleAlert2:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsxs("svg",{...dt(e),...Zn(t),...l,ref:i,children:[v.jsx("path",{d:"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"}),v.jsx("line",{x1:"12",y1:"9",x2:"12",y2:"13"}),v.jsx("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"})]})},Sun:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsxs("svg",{...dt(e,28),...Zn(t),strokeWidth:1,...l,ref:i,children:[v.jsx("circle",{cx:"14",cy:"14",r:"3.5"}),v.jsx("path",{d:"M21.1213 21.1213L19 19"}),v.jsx("path",{d:"M24 14L21 14"}),v.jsx("path",{d:"M9.12132 19L7 21.1213"}),v.jsx("path",{d:"M14 21L14 24"}),v.jsx("path",{d:"M6.99977 7.00002L9.12109 9.12134"}),v.jsx("path",{d:"M4 14L7 14"}),v.jsx("path",{d:"M18.9998 9.12132L21.1211 7"}),v.jsx("path",{d:"M14 7L14 4"})]})},Moon:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n="white",svgRef:i,...l}=r;return v.jsxs("svg",{...dt(e,28),...l,ref:i,children:[v.jsx("mask",{id:"path-1-inside-1_640_3082",fill:n,children:v.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23 14.9271C21.7297 16.1977 19.9746 16.9836 18.036 16.9836C14.1593 16.9836 11.0167 13.841 11.0167 9.96435C11.0167 8.02554 11.8027 6.27032 13.0735 5C8.53643 5.47528 5 9.31228 5 13.9753C5 18.9595 9.04054 23 14.0248 23C18.6876 23 22.5244 19.4639 23 14.9271Z"})}),v.jsx("path",{d:"M23 14.9271L23.9945 15.0313L24.2889 12.2235L22.2928 14.2201L23 14.9271ZM13.0735 5L13.7805 5.70724L15.7772 3.71131L12.9694 4.00544L13.0735 5ZM22.2928 14.2201C21.2024 15.3108 19.6987 15.9836 18.036 15.9836V17.9836C20.2505 17.9836 22.257 17.0846 23.7072 15.6341L22.2928 14.2201ZM18.036 15.9836C14.7116 15.9836 12.0167 13.2887 12.0167 9.96435H10.0167C10.0167 14.3933 13.607 17.9836 18.036 17.9836V15.9836ZM12.0167 9.96435C12.0167 8.30147 12.6897 6.79768 13.7805 5.70724L12.3666 4.29276C10.9158 5.74295 10.0167 7.7496 10.0167 9.96435H12.0167ZM6 13.9753C6 9.8296 9.14442 6.41706 13.1777 5.99456L12.9694 4.00544C7.92844 4.5335 4 8.79496 4 13.9753H6ZM14.0248 22C9.59282 22 6 18.4072 6 13.9753H4C4 19.5118 8.48825 24 14.0248 24V22ZM22.0054 14.8228C21.5827 18.8559 18.1703 22 14.0248 22V24C19.2049 24 23.4662 20.0719 23.9945 15.0313L22.0054 14.8228Z",fill:t,mask:"url(#path-1-inside-1_640_3082)"})]})},CCTV:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n="white",svgRef:i,...l}=r,u=Ni["2xs"];return v.jsxs("svg",{...dt(e,u),...l,ref:i,children:[v.jsx("rect",{x:"1",y:"5",width:"1",height:"5",fill:t}),v.jsx("path",{d:"M1.5 7.5H3L5 5.5",stroke:t}),v.jsx("rect",{x:"5.12132",y:"2",width:"5.13925",height:"3",transform:"rotate(45 5.12132 2)",fill:t}),v.jsx("rect",{x:"8.83633",y:"6.28503",width:"1",height:"2.19393",transform:"rotate(45 8.83633 6.28503)",fill:t}),v.jsx("clipPath",{id:"clip0_2241_2464",children:v.jsx("rect",{width:"12",height:"12",fill:n})})]})},Convert:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"m19 8-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3l-4-4zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97.25 2.8.7l1.46-1.46C15.03 4.46 13.57 4 12 4c-4.42 0-8 3.58-8 8H1l4 4 4-4H6z"})})},KeyboardArrowUp:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"})})},KeyboardArrowDown:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"})})},Alert:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n="var(--background-normal)",svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:n,...l,ref:i,children:v.jsxs("g",{clipPath:"url(#clip0_1786_1844)",children:[v.jsx("path",{d:"M11.1238 2.59312C11.5037 1.90234 12.4963 1.90234 12.8762 2.59312L22.1849 19.5181C22.5515 20.1845 22.0693 21 21.3087 21H2.69127C1.93067 21 1.44851 20.1845 1.81506 19.5181L11.1238 2.59312Z",fill:t}),v.jsx("path",{style:{...l.style,transition:"fill var(--Transition)"},d:"M12.8169 8H11.1691L11.2958 15.0451H12.6902L12.8169 8ZM11.0001 17.0287C10.993 17.5622 11.4508 17.9932 12 18C12.5423 17.9932 12.993 17.5622 13 17.0287C12.993 16.4952 12.5423 16.0575 12 16.0575C11.4508 16.0575 10.993 16.4952 11.0001 17.0287Z",fill:n})]})})},SortUp:(r={})=>{const{size:e="xs",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r,u=Ni.xs;return v.jsx("svg",{...dt(e,u),fill:"none",...l,ref:i,children:v.jsx("path",{d:"M6 10L9 7L12 10",stroke:t})})},SortDown:(r={})=>{const{size:e="xs",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r,u=Ni.xs;return v.jsx("svg",{...dt(e,u),fill:"none",...l,ref:i,children:v.jsx("path",{d:"M12 7L9 10L6 7",stroke:t})})},SortBoth:(r={})=>{const{size:e="xs",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r,u=Ni.xs;return v.jsxs("svg",{...dt(e,u),fill:"none",...l,ref:i,children:[v.jsx("path",{d:"M6 6.75L9 3.75L12 6.75",stroke:t}),v.jsx("path",{d:"M12 11.25L9 14.25L6 11.25",stroke:t})]})},RowSortUp:(r={})=>{const{size:e="xs",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r,u=Ni.xs;return v.jsxs("svg",{...dt(e,u),...l,ref:i,children:[v.jsx("path",{d:"M8 2L10.5981 6.5H5.40192L8 2Z",fill:t}),v.jsx("path",{opacity:"0.2",d:"M8 14L5.40192 9.5L10.5981 9.5L8 14Z",fill:t})]})},RowSortDown:(r={})=>{const{size:e="xs",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r,u=Ni.xs;return v.jsxs("svg",{...dt(e,u),...l,ref:i,children:[v.jsx("path",{opacity:"0.2",d:"M8 2L10.5981 6.5H5.40192L8 2Z",fill:t}),v.jsx("path",{d:"M8 14L5.40192 9.5L10.5981 9.5L8 14Z",fill:t})]})},RowSortBoth:(r={})=>{const{size:e="xs",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r,u=Ni.xs;return v.jsxs("svg",{...dt(e,u),...l,ref:i,children:[v.jsx("path",{d:"M8 2L10.5981 6.5H5.40192L8 2Z",fill:t}),v.jsx("path",{d:"M8 14L5.40192 9.5L10.5981 9.5L8 14Z",fill:t})]})},Favorite:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M12 4L13.7961 9.52786H19.6085L14.9062 12.9443L16.7023 18.4721L12 15.0557L7.29772 18.4721L9.09383 12.9443L4.39155 9.52786H10.2039L12 4Z"})})},FavoriteDisabled:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n="none",svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),...Zn(t),fill:n,strokeWidth:"1",...l,ref:i,children:v.jsx("path",{d:"M12 4L13.7961 9.52786H19.6085L14.9062 12.9443L16.7023 18.4721L12 15.0557L7.29772 18.4721L9.09383 12.9443L4.39155 9.52786H10.2039L12 4Z"})})},Main:(r={})=>{const{primaryColor:e="currentColor",secondaryColor:t,svgRef:n,...i}=r;return v.jsxs("svg",{viewBox:"0 0 118 84",width:"118",height:"84",...i,ref:n,children:[v.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M66.0843 0.94382H8.51123C4.34117 0.94382 0.960666 4.32432 0.960666 8.49438V49.0787C0.960666 53.77 4.76373 57.573 9.45505 57.573H66.0843C70.7756 57.573 74.5787 53.77 74.5787 49.0787V9.4382C74.5787 4.74688 70.7756 0.94382 66.0843 0.94382ZM8.51123 0C3.81991 0 0.0168457 3.80306 0.0168457 8.49438V49.0787C0.0168457 54.2912 4.24247 58.5169 9.45505 58.5169H66.0843C71.2968 58.5169 75.5225 54.2912 75.5225 49.0787V9.4382C75.5225 4.22563 71.2968 0 66.0843 0H8.51123Z",fill:e}),v.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M108.556 26.4272H51.927C47.2357 26.4272 43.4326 30.2302 43.4326 34.9216V74.562C43.4326 79.2533 47.2357 83.0564 51.927 83.0564H108.556C113.248 83.0564 117.051 79.2533 117.051 74.562V34.9216C117.051 30.2302 113.248 26.4272 108.556 26.4272ZM51.927 25.4834C46.7144 25.4834 42.4888 29.709 42.4888 34.9216V74.562C42.4888 79.7746 46.7144 84.0002 51.927 84.0002H108.556C113.769 84.0002 117.994 79.7746 117.994 74.562V34.9216C117.994 29.709 113.769 25.4834 108.556 25.4834H51.927Z",fill:e}),v.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M66.0843 1.88764H8.51123C4.86243 1.88764 1.90449 4.84558 1.90449 8.49438V49.0787C1.90449 53.2487 5.28499 56.6292 9.45505 56.6292H66.0843C70.2543 56.6292 73.6348 53.2487 73.6348 49.0787V9.4382C73.6348 5.26814 70.2543 1.88764 66.0843 1.88764ZM8.51123 0C3.81991 0 0.0168457 3.80306 0.0168457 8.49438V49.0787C0.0168457 54.2912 4.24247 58.5169 9.45505 58.5169H66.0843C71.2968 58.5169 75.5225 54.2912 75.5225 49.0787V9.4382C75.5225 4.22563 71.2968 0 66.0843 0H8.51123Z",fill:e}),v.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M108.556 27.371H51.927C47.7569 27.371 44.3764 30.7515 44.3764 34.9216V74.562C44.3764 78.7321 47.7569 82.1126 51.927 82.1126H108.556C112.726 82.1126 116.107 78.7321 116.107 74.562V34.9216C116.107 30.7515 112.726 27.371 108.556 27.371ZM51.927 25.4834C46.7144 25.4834 42.4888 29.709 42.4888 34.9216V74.562C42.4888 79.7746 46.7144 84.0002 51.927 84.0002H108.556C113.769 84.0002 117.994 79.7746 117.994 74.562V34.9216C117.994 29.709 113.769 25.4834 108.556 25.4834H51.927Z",fill:e})]})},Frame:(r={})=>{const{primaryColor:e="currentColor",secondaryColor:t="none",svgRef:n,...i}=r;return v.jsx("svg",{viewBox:"0 0 1482 1112",width:"1482",height:"1112",fill:t,...i,ref:n,children:v.jsxs("g",{children:[v.jsx("path",{opacity:"0.22",d:"M1481.33 1111.17L399.091 880.19V231.81L1481.33 0.829102V1111.17Z",stroke:e}),v.jsx("path",{opacity:"0.48",d:"M266.279 880.19V231.81L1348.52 0.829102V1111.17L266.279 880.19Z",stroke:e}),v.jsx("path",{opacity:"0.74",d:"M133.48 880.19V231.81L1215.72 0.829102V1111.17L133.48 880.19Z",stroke:e}),v.jsx("path",{d:"M1082.91 1111.17L0.667969 880.19V231.81L1082.91 0.829102V1111.17Z",stroke:e})]})})},FileDownload:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3zm-1-4-1.41-1.41L13 12.17V4h-2v8.17L8.41 9.59 7 11l5 5z"})})},File:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M15 2H6C4.9 2 4 2.9 4 4V20C4 21.1 4.9 22 6 22H18C19.1 22 20 21.1 20 20V7L15 2ZM6 20V4H14V8H18V20H6ZM16 10V15C16 17.21 14.21 19 12 19C9.79 19 8 17.21 8 15V8.5C8 7.03 9.26 5.86 10.76 6.01C12.06 6.14 13 7.33 13 8.64V15H11V8.5C11 8.22 10.78 8 10.5 8C10.22 8 10 8.22 10 8.5V15C10 16.1 10.9 17 12 17C13.1 17 14 16.1 14 15V10H16Z"})})},File2:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsxs("svg",{...dt(e),...Zn(t),...l,ref:i,children:[v.jsx("path",{d:"M13 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z"}),v.jsx("polyline",{points:"13 2 13 9 20 9"})]})},UnPlug:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r,u=Ni.xs;return v.jsxs("svg",{...dt(e,u),overflow:"hidden",strokeWidth:"0.5",...l,ref:i,children:[v.jsx("path",{d:"M7.85 9.679C7.92 9.747 8.03 9.745 8.1 9.674 8.17 9.606 8.17 9.497 8.1 9.428L6.84 8.17 8.17 6.844 9.43 8.103C9.5 8.171 9.61 8.169 9.68 8.098 9.75 8.03 9.75 7.921 9.68 7.852L8.42 6.594 9.39 5.629 8.13 4.377C7.15 3.389 5.56 3.335 4.51 4.254L4.13 3.857C3.29 2.997 2.15 2.511 0.95 2.508L0.35 2.508 0.35 2.862 0.95 2.862C2.05 2.865 3.11 3.312 3.87 4.104L4.26 4.504C3.34 5.555 3.39 7.143 4.38 8.133L5.63 9.385 6.59 8.42ZM4.63 7.883C3.73 6.984 3.73 5.526 4.63 4.627 5.53 3.728 6.98 3.728 7.88 4.627L8.88 5.629 5.63 8.885Z",stroke:t,fill:t}),v.jsx("path",{d:"M16.06 14.167C15.01 14.169 13.99 13.758 13.23 13.021L12.78 12.58C13.69 11.529 13.64 9.946 12.65 8.959L11.4 7.707 7.64 11.464 8.9 12.716C9.89 13.707 11.47 13.757 12.52 12.831L12.99 13.276C13.81 14.076 14.91 14.523 16.06 14.521L16.65 14.521 16.65 14.167ZM9.15 12.465 8.14 11.464 11.4 8.208 12.4 9.21C13.31 10.104 13.31 11.562 12.42 12.466 11.53 13.369 10.07 13.377 9.16 12.483 9.16 12.477 9.15 12.471 9.15 12.465Z",stroke:t,fill:t})]})},CloudSync:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r,u=Ni.xs;return v.jsxs("svg",{...dt(e,u),overflow:"hidden",strokeWidth:"0.166718",...l,ref:i,children:[v.jsx("path",{d:"M9.81667 8.6C9.81667 8.6 9.81667 8.6 9.81667 8.6 9.81667 8.6 9.81667 8.6 9.81667 8.6 9.68333 7.41667 8.61667 6.55 7.43333 6.66667 6.65 6.75 5.98333 7.23333 5.66667 7.95L5.96667 8.08333C6.36667 7.15 7.45 6.73333 8.38333 7.13333 8.96667 7.38333 9.36667 7.91667 9.46667 8.55 9.46667 8.55 9.46667 8.55 9.46667 8.55 9.46667 8.55 9.46667 8.55 9.46667 8.55L9.1 8.18333 8.86667 8.41667 9.65 9.2 10.4333 8.41667 10.2 8.18333 9.81667 8.6Z",stroke:t,fill:t,transform:"matrix(1, 0, 0, 1.0625, 0, 0)"}),v.jsx("path",{d:"M7.66667 10.6667C6.75 10.6667 5.98333 10 5.85 9.1 5.85 9.1 5.85 9.1 5.85 9.1 5.85 9.1 5.85 9.1 5.85 9.1L6.21667 9.46667 6.45 9.23333 5.66667 8.43333 4.88333 9.21667 5.11667 9.45 5.5 9.06667C5.5 9.06667 5.5 9.06667 5.5 9.06667 5.5 9.06667 5.5 9.06667 5.5 9.06667 5.63333 10.25 6.68333 11.1167 7.88333 11 8.66667 10.9167 9.33333 10.4333 9.65 9.71667L9.35 9.58333C9.05 10.2333 8.4 10.6667 7.66667 10.6667Z",stroke:t,fill:t,transform:"matrix(1, 0, 0, 1.0625, 0, 0)"}),v.jsx("path",{d:"M13.4333 7.48333C13.3 6.66667 12.85 5.93333 12.1833 5.45 11.4833 4.96667 10.6333 4.78333 9.8 4.95 9.13333 3.95 8.03333 3.33333 6.83333 3.33333 6.56667 3.33333 6.28333 3.36667 6.01667 3.43333 4.6 3.8 3.53333 4.98333 3.31667 6.43333 2.36667 6.46667 1.5 6.91667 0.933333 7.66667 0.266667 8.6 0.15 9.81667 0.616667 10.8667 1.1 11.9 2.1 12.5833 3.23333 12.65L4.45 12.65 11.3667 12.6667 13.1333 12.6667C14.5667 12.6333 15.7 11.4333 15.6667 10 15.6333 8.71667 14.6833 7.66667 13.4333 7.48333 13.4333 7.48333 13.4333 7.48333 13.4333 7.48333ZM15.3333 10.2C15.25 11.3667 14.3 12.3 13.1333 12.3333L11.3667 12.3333 4.45 12.3167 3.25 12.3167C2.25 12.25 1.35 11.65 0.933333 10.7333 0.5 9.8 0.6 8.7 1.2 7.86667 1.71667 7.2 2.48333 6.8 3.33333 6.76667L3.61667 6.75 3.65 6.48333C3.85 5.16667 4.81667 4.1 6.1 3.75 6.33333 3.7 6.58333 3.66667 6.83333 3.66667 7.91667 3.66667 8.93333 4.21667 9.51667 5.13333L9.63333 5.31667 9.85 5.26667C10.5833 5.11667 11.35 5.28333 11.9667 5.71667 12.5667 6.15 12.9667 6.8 13.0833 7.53333L13.1167 7.76667 13.35 7.8C14.55 7.98333 15.3833 9.01667 15.3333 10.2L15.3333 10.2Z",stroke:t,fill:t,transform:"matrix(1, 0, 0, 1.0625, 0, 0)"})]})},CalendarDay:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"})})},DateRange:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"})})},PlayArrow:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M8 5v14l11-7z"})})},Mail:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z"})})},MailOutline:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsxs("svg",{...dt(e),...Zn(t),...l,ref:i,children:[v.jsx("path",{d:"M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"}),v.jsx("polyline",{points:"22,6 12,13 2,6"})]})},Bell:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsxs("svg",{...dt(e),...Zn(t),...l,ref:i,children:[v.jsx("path",{d:"M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"}),v.jsx("path",{d:"M13.73 21a2 2 0 0 1-3.46 0"})]})},Download:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M5 20h14v-2H5v2zM19 9h-4V3H9v6H5l7 7 7-7z"})})},Folder:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z"})})},FolderPost:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-1 9H9V9h10v2zm-4 4H9v-2h6v2zm4-8H9V5h10v2z"})})},FolderOpen:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 12H4V8h16v10z"})})},FolderCopy:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsxs("svg",{...dt(e),fill:t,...l,ref:i,children:[v.jsx("path",{d:"M3 6H1v13c0 1.1.9 2 2 2h17v-2H3V6z"}),v.jsx("path",{d:"M21 4h-7l-2-2H7c-1.1 0-1.99.9-1.99 2L5 15c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2z"})]})},FolderAdd:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M20 6h-8l-2-2H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-1 8h-3v3h-2v-3h-3v-2h3V9h2v3h3v2z"})})},FolderMove:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M20 6h-8l-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m-6 12v-3h-4v-4h4V8l5 5z"})})},FirstPage:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsxs("svg",{...dt(e),fill:t,...l,ref:i,children:[v.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),v.jsx("path",{d:"M24 24H0V0h24v24z",fill:"none"})]})},LastPage:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"})})},NavigateBefore:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})})},NavigateNext:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})})},ListAdd:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M14,10H3v2h11V10z M14,6H3v2h11V6z M18,14v-4h-2v4h-4v2h4v4h2v-4h4v-2H18z M3,16h7v-2H3V16z"})})},ListRemove:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M14 10H3v2h11v-2zm0-4H3v2h11V6zM3 16h7v-2H3v2zm11.41 6L17 19.41 19.59 22 21 20.59 18.41 18 21 15.41 19.59 14 17 16.59 14.41 14 13 15.41 15.59 18 13 20.59 14.41 22z"})})},Cancel:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"})})},Article:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z"})})},Info:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M11,7h2v2h-2V7z M11,11h2v6h-2V11z M12,2C6.48,2,2,6.48,2,12s4.48,10,10,10s10-4.48,10-10S17.52,2,12,2z M12,20 c-4.41,0-8-3.59-8-8s3.59-8,8-8s8,3.59,8,8S16.41,20,12,20z"})})},Type:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsxs("svg",{...dt(e),...Zn(t),...l,ref:i,children:[v.jsx("polyline",{points:"4 7 4 4 20 4 20 7"}),v.jsx("line",{x1:"9",y1:"20",x2:"15",y2:"20"}),v.jsx("line",{x1:"12",y1:"4",x2:"12",y2:"20"})]})},PersonAdd:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M13 8c0-2.21-1.79-4-4-4S5 5.79 5 8s1.79 4 4 4 4-1.79 4-4m2 2v2h3v3h2v-3h3v-2h-3V7h-2v3zM1 18v2h16v-2c0-2.66-5.33-4-8-4s-8 1.34-8 4"})})},CheckNormal:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z",fill:t})})},Create:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"})})},PersonRemove:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M14 8c0-2.21-1.79-4-4-4S6 5.79 6 8s1.79 4 4 4 4-1.79 4-4m3 2v2h6v-2zM2 18v2h16v-2c0-2.66-5.33-4-8-4s-8 1.34-8 4"})})},Refresh:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"})})},Undo:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"})})},Return:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsxs("svg",{...dt(e),fill:t,...l,ref:i,children:[v.jsx("path",{d:"M4 15L3.46967 14.4697C3.17678 14.7626 3.17678 15.2374 3.46967 15.5303L4 15ZM7.53033 12.5303C7.82322 12.2374 7.82322 11.7626 7.53033 11.4697C7.23744 11.1768 6.76256 11.1768 6.46967 11.4697L7.53033 12.5303ZM6.46967 18.5303C6.76256 18.8232 7.23744 18.8232 7.53033 18.5303C7.82322 18.2374 7.82322 17.7626 7.53033 17.4697L6.46967 18.5303ZM6.46967 11.4697L3.46967 14.4697L4.53033 15.5303L7.53033 12.5303L6.46967 11.4697ZM3.46967 15.5303L6.46967 18.5303L7.53033 17.4697L4.53033 14.4697L3.46967 15.5303Z",fill:"#333333"}),v.jsx("path",{d:"M11 5.25C10.5858 5.25 10.25 5.58579 10.25 6C10.25 6.41421 10.5858 6.75 11 6.75V5.25ZM4 14.25C3.58579 14.25 3.25 14.5858 3.25 15C3.25 15.4142 3.58579 15.75 4 15.75V14.25ZM11 6.75H16V5.25H11V6.75ZM16 15.75C17.3742 15.75 18.5687 15.0388 19.3991 14.0651C20.2284 13.0926 20.75 11.7983 20.75 10.5H19.25C19.25 11.4109 18.8762 12.3665 18.2577 13.0918C17.6404 13.8157 16.835 14.25 16 14.25V15.75ZM16 6.75C16.8349 6.75 17.6404 7.18427 18.2577 7.90822C18.8762 8.63348 19.25 9.58913 19.25 10.5H20.75C20.75 9.20173 20.2284 7.90738 19.3991 6.93492C18.5687 5.96116 17.3741 5.25 16 5.25V6.75ZM16 14.25H4V15.75H16V14.25Z",fill:"#333333"})]})},Gear:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"})})},TriangleUp:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),...Zn(t),...l,ref:i,children:v.jsx("path",{d:"M18 15 L12 9 L6 15"})})},TriangleDown:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),...Zn(t),...l,ref:i,children:v.jsx("path",{d:"M6 9 12 15 18 9"})})},CircleHelp:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M11 18h2v-2h-2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4"})})},Cow:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("g",{transform:"scale(0.046875 0.046875)",children:v.jsx("path",{d:"M510.256,187.787c-2.16-7.414-6.118-13.725-11.079-18.567c-7.477-7.3-16.818-11.393-26.211-13.777 c-9.43-2.386-19.109-3.114-28.034-3.124c-7.732,0-14.89,0.562-20.744,1.219h0.016c-4.732,0.531-9.07,1.426-12.788,2.103 c-3.697,0.708-6.821,1.156-8.597,1.136l-0.557-0.042c-0.031-0.167-0.063-0.261-0.094-0.48c-2.63-18.598-4.03-36.864-9.06-55.494 c-5.004-18.619-13.976-37.457-30.986-55.826c-8.07-8.83-17.973-13.454-27.476-13.403c-8.43-0.01-15.98,3.489-21.312,8.779 c-5.337,5.279-8.763,12.517-8.784,20.504c-0.005,3.686,0.88,7.466,2.484,11.028l-0.067,0.031c4.992,13.434,7.794,25.784,7.768,35.719 c0,5.935-0.948,10.955-2.754,15.141c-2.77,6.227-7.196,11.111-15.923,15.193c-8.695,4.019-21.816,6.685-40.06,6.664 c-24.388,0.042-39.4-4.759-47.454-11.039c-4.082-3.155-6.697-6.623-8.529-10.819c-1.807-4.186-2.754-9.206-2.754-15.141 c-0.026-9.935,2.77-22.285,7.768-35.719l-0.068-0.02c1.604-3.582,2.489-7.352,2.485-11.028c-0.021-7.997-3.448-15.235-8.784-20.514 c-5.332-5.29-12.882-8.789-21.311-8.789c-9.502-0.042-19.406,4.571-27.476,13.412c-17.01,18.359-25.982,37.207-30.985,55.826 c-5.035,18.63-6.431,36.896-9.06,55.494c-0.032,0.229-0.063,0.312-0.099,0.48l-0.552,0.042c-1.77,0.02-4.894-0.428-8.596-1.136 c-3.718-0.687-8.055-1.572-12.793-2.103h0.01c-5.836-0.646-13.001-1.208-20.733-1.219c-11.892,0.031-25.143,1.25-37.338,6.134 c-6.087,2.458-11.939,5.904-16.906,10.768c-4.962,4.842-8.919,11.153-11.08,18.567C0.563,191.806,0,196.014,0,200.282 c0.099,18.276,9.836,37.583,27.684,53.817c16.844,15.245,41.243,27.617,72.728,33.24c0.114,0.489,0.223,0.896,0.344,1.458 c1.874,8.664,4.102,25.242,8.247,44.591c6.285,29.115,16.896,65.167,39.16,94.835c11.142,14.798,25.31,27.981,43.201,37.364 c17.879,9.404,39.378,14.902,64.636,14.892c37.978,0.083,67.422-12.58,88.905-31.667c32.281-28.669,47.173-70.136,55.613-104.562 c4.186-17.234,6.706-32.854,8.654-44.225c0.912-5.353,1.708-9.748,2.4-12.674c31.496-5.624,55.9-17.994,72.744-33.25 c17.848-16.234,27.58-35.541,27.684-53.817C512,196.014,511.438,191.806,510.256,187.787z M165.549,59.409 c5.118-5.456,9.022-6.508,11.804-6.55c2.499,0,4.665,1,6.316,2.615c1.651,1.624,2.473,3.696,2.453,5.352l-0.625,2.572 l-0.261,0.522l-0.198,0.541c-5.508,14.923-9.076,29.376-9.101,43.133c0,8.195,1.312,16.192,4.498,23.586 c2.526,5.946,6.404,11.288,11.32,15.912c-7.967-0.167-16.605-0.292-24.993-0.396c-13.745-0.168-26.596-0.25-34.136-0.303 c1.818-14.35,3.453-27.606,6.847-40.05C143.884,90.254,150.908,75.321,165.549,59.409z M318.981,441.844 c-16.234,10.59-36.442,17.276-62.98,17.307c-33.38-0.083-56.795-10.528-74.784-26.315c-12.834-11.267-22.712-25.689-30.455-41.195 c0.901-4.78,3.015-9.133,6.436-13.392c6.935-8.612,19.78-16.308,36.791-21.514c16.974-5.258,37.921-8.122,60.576-8.122 c30.204-0.031,57.394,5.144,76.138,14.1c9.383,4.456,16.584,9.809,21.234,15.536c4.483,5.581,6.706,11.33,6.893,17.994 c-0.625,1.156-1.15,2.364-1.801,3.499C347.508,416.477,335.189,431.243,318.981,441.844z M470.002,238.292 c-14.417,13.058-36.708,24.524-67.495,29.033l-2.374,0.344l-1.994,1.333c-2.578,1.79-3.583,3.53-4.39,4.904 c-1.431,2.708-2.014,4.927-2.702,7.571c-1.203,4.864-2.213,10.954-3.473,18.26c-1.524,8.625-3.428,19.124-6.134,30.576 c-7.247,29.665-20.215,66.061-48.03,91.907c-16.028,14.232-36.169,24.516-64.055,24.466c-21.776,0-40.292-4.969-55.129-12.732 c-14.839-7.742-27.058-18.692-36.544-30.747c-19.038-25.604-28.956-57.424-34.635-85.312c-1.642-8.429-2.642-14.843-3.494-19.853 c-0.693-3.697-1.256-5.834-1.943-7.519c-0.688-1.698-1.743-3.24-4.323-5.03l-1.989-1.333l-2.374-0.344 c-30.788-4.509-53.083-15.975-67.5-29.033c-15.05-13.646-22.688-28.674-22.749-38.01c0-1.625,0.396-3.859,1.057-6.283 c1.261-4.849,3.597-10.709,6.665-16.755c5.97-12.085,14.748-24.971,25.422-36.775c2.188,1.828,4.64,3.501,7.441,4.98 c9.854,5.132,22.406,8.838,35.833,9.723c12.073,0.823,24.653-0.057,35.493-3.755c10.859-3.666,20.146-9.648,26.908-17.71 c6.767-8.081,10.94-18.221,11.255-29.685c0-2.073-0.26-3.948-0.64-5.901c-0.26-1.203-0.484-2.452-0.641-3.667 c-1.78-12.632-5.748-24.661-11.853-37.393c-3.062-6.173-6.634-12.165-9.359-17.301c-0.932-1.801-1.776-3.414-2.552-5.155 c4.911-5.416,10.209-10.13,15.51-14.678c12.045-10.674,23.606-19.829,33.336-26.128c7.47,6.566,14.801,14.498,21.238,23.858 c12.843,18.226,20.273,37.197,25.055,55.19c4.794,17.983,6.636,34.864,9.055,50.801c0.78,4.584,1.35,8.114,2.373,11.554 c0.98,3.229,2.306,6.316,4.664,9.208c2.396,2.892,5.74,5.532,10.96,6.409c1.296,0.219,3.84-0.5,7.683-1.187 c3.838-0.641,8.727-1.448,14.168-1.948c5.423-0.625,11.573-1.036,18.168-1.057c8.92,0,18.659,0.667,28.086,2.807 c9.426,2.141,17.48,6.104,23.654,12.281c3.177,3.093,5.784,6.775,7.579,10.938c1.778,4.141,2.74,8.704,2.74,13.314 C492.688,209.625,485.052,224.646,470.002,238.292z"})})})},CircleAlertOutline:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsxs("svg",{...dt(e),...Zn(t),...l,ref:i,children:[v.jsx("circle",{cx:"12",cy:"12",r:"10"}),v.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),v.jsx("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]})},CircleAlert:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"})})},Manager:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsxs("svg",{...dt(e),fill:t,...l,ref:i,children:[v.jsx("circle",{cx:"10",cy:"8",r:"4"}),v.jsx("path",{d:"M10.67 13.02c-.22-.01-.44-.02-.67-.02-2.42 0-4.68.67-6.61 1.82-.88.52-1.39 1.5-1.39 2.53V20h9.26c-.79-1.13-1.26-2.51-1.26-4 0-1.07.25-2.07.67-2.98M20.75 16c0-.22-.03-.42-.06-.63l1.14-1.01-1-1.73-1.45.49q-.48-.405-1.08-.63L18 11h-2l-.3 1.49q-.6.225-1.08.63l-1.45-.49-1 1.73 1.14 1.01c-.03.21-.06.41-.06.63s.03.42.06.63l-1.14 1.01 1 1.73 1.45-.49q.48.405 1.08.63L16 21h2l.3-1.49q.6-.225 1.08-.63l1.45.49 1-1.73-1.14-1.01c.03-.21.06-.41.06-.63M17 18c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"})]})},ManagerOutline:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsxs("svg",{...dt(e,96),...Zn(t),...l,ref:i,children:[v.jsxs("g",{clipPath:"url(#clip0_1_3)",children:[v.jsx("path",{d:"M80 84V76C80 71.7565 78.3143 67.6869 75.3137 64.6863C72.3131 61.6857 68.2435 60 64 60V70L48 60L32 70V60C27.7565 60 23.6869 61.6857 20.6863 64.6863C17.6857 67.6869 16 71.7565 16 76V84",strokeWidth:"8"}),v.jsx("path",{d:"M48 44C56.8366 44 64 36.8366 64 28C64 19.1634 56.8366 12 48 12C39.1634 12 32 19.1634 32 28C32 36.8366 39.1634 44 48 44Z",strokeWidth:"8"})]}),v.jsx("defs",{children:v.jsx("clipPath",{id:"clip0_1_3",children:v.jsx("rect",{width:"96",height:"96",fill:"white"})})})]})},Admin:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M9 15c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4m13.1-8.16c.01-.11.02-.22.02-.34s-.01-.23-.03-.34l.74-.58c.07-.05.08-.15.04-.22l-.7-1.21c-.04-.08-.14-.1-.21-.08l-.86.35c-.18-.14-.38-.25-.59-.34l-.13-.93c-.02-.09-.09-.15-.18-.15h-1.4c-.09 0-.16.06-.17.15l-.13.93c-.21.09-.41.21-.59.34l-.87-.35c-.08-.03-.17 0-.21.08l-.7 1.21c-.04.08-.03.17.04.22l.74.58c-.02.11-.03.23-.03.34s.01.23.03.34l-.74.58c-.07.05-.08.15-.04.22l.7 1.21c.04.08.14.1.21.08l.87-.35c.18.14.38.25.59.34l.13.93c.01.09.08.15.17.15h1.4c.09 0 .16-.06.17-.15l.13-.93c.21-.09.41-.21.59-.34l.87.35c.08.03.17 0 .21-.08l.7-1.21c.04-.08.03-.17-.04-.22zm-2.6.91c-.69 0-1.25-.56-1.25-1.25s.56-1.25 1.25-1.25 1.25.56 1.25 1.25-.56 1.25-1.25 1.25m.42 3.93-.5-.87c-.03-.06-.1-.08-.15-.06l-.62.25q-.195-.15-.42-.24l-.09-.66c-.02-.06-.08-.1-.14-.1h-1c-.06 0-.11.04-.12.11l-.09.66c-.15.06-.29.15-.42.24l-.62-.25c-.06-.02-.12 0-.15.06l-.5.87c-.03.06-.02.12.03.16l.53.41c-.01.08-.02.16-.02.24s.01.17.02.24l-.53.41c-.05.04-.06.11-.03.16l.5.87c.03.06.1.08.15.06l.62-.25q.195.15.42.24l.09.66c.01.07.06.11.12.11h1c.06 0 .12-.04.12-.11l.09-.66c.15-.06.29-.15.42-.24l.62.25c.06.02.12 0 .15-.06l.5-.87c.03-.06.02-.12-.03-.16l-.52-.41c.01-.08.02-.16.02-.24s-.01-.17-.02-.24l.53-.41c.05-.04.06-.11.04-.17m-2.42 1.65c-.46 0-.83-.38-.83-.83 0-.46.38-.83.83-.83s.83.38.83.83c0 .46-.37.83-.83.83M4.74 9h8.53c.27 0 .49-.22.49-.49v-.02c0-.27-.22-.49-.49-.49H13c0-1.48-.81-2.75-2-3.45v.95c0 .28-.22.5-.5.5s-.5-.22-.5-.5V4.14C9.68 4.06 9.35 4 9 4s-.68.06-1 .14V5.5c0 .28-.22.5-.5.5S7 5.78 7 5.5v-.95C5.81 5.25 5 6.52 5 8h-.26c-.27 0-.49.22-.49.49v.03c0 .26.22.48.49.48M9 13c1.86 0 3.41-1.28 3.86-3H5.14c.45 1.72 2 3 3.86 3"})})},Equalizer:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M10 20h4V4h-4zm-6 0h4v-8H4zM16 9v11h4V9z"})})},ABC:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M21 11h-1.5v-.5h-2v3h2V13H21v1c0 .55-.45 1-1 1h-3c-.55 0-1-.45-1-1v-4c0-.55.45-1 1-1h3c.55 0 1 .45 1 1zM8 10v5H6.5v-1.5h-2V15H3v-5c0-.55.45-1 1-1h3c.55 0 1 .45 1 1m-1.5.5h-2V12h2zm7 1.5c.55 0 1 .45 1 1v1c0 .55-.45 1-1 1h-4V9h4c.55 0 1 .45 1 1v1c0 .55-.45 1-1 1M11 10.5v.75h2v-.75zm2 2.25h-2v.75h2z"})})},Auth:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M12 2 4 5v6.09c0 5.05 3.41 9.76 8 10.91 4.59-1.15 8-5.86 8-10.91V5zm-1.06 13.54L7.4 12l1.41-1.41 2.12 2.12 4.24-4.24 1.41 1.41z"})})},AuthAdd:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M13.22 22.61c-.4.15-.8.29-1.22.39-5.16-1.26-9-6.45-9-12V5l9-4 9 4v6c0 .9-.11 1.78-.3 2.65-.81-.41-1.73-.65-2.7-.65-3.31 0-6 2.69-6 6 0 1.36.46 2.61 1.22 3.61M19 20v2.99s-1.99.01-2 0V20h-3v-2h3v-3h2v3h3v2z"})})},Switch:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"m18 12 4-4-4-4v3H3v2h15zM6 12l-4 4 4 4v-3h15v-2H6z"})})},Add:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})})},Edit:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM5.92 19H5v-.92l9.06-9.06.92.92zM20.71 5.63l-2.34-2.34c-.2-.2-.45-.29-.71-.29s-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41"})})},EditOff:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"m14.06 9.02.92.92-1.11 1.11 1.41 1.41 2.52-2.52-3.75-3.75-2.52 2.52 1.41 1.41zm6.65-1.98c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29s-.51.1-.7.29l-1.83 1.83 3.75 3.75zM2.81 2.81 1.39 4.22l7.32 7.32L3 17.25V21h3.75l5.71-5.71 7.32 7.32 1.41-1.41zM5.92 19H5v-.92l5.13-5.13.92.92z"})})},Delete:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zm2.46-7.12 1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"})})},Save:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"})})},Remove:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M19 13H5v-2h14z"})})},Sync:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...dt(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8m0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4z"})})},X:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsxs("svg",{...dt(e),...Zn(t),...l,ref:i,children:[v.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),v.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})},MoreVertical:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsxs("svg",{...dt(e),...Zn(t),...l,ref:i,children:[v.jsx("circle",{cx:"12",cy:"12",r:"1"}),v.jsx("circle",{cx:"12",cy:"5",r:"1"}),v.jsx("circle",{cx:"12",cy:"19",r:"1"})]})},MoreHorizontal:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsxs("svg",{...dt(e),...Zn(t),...l,ref:i,children:[v.jsx("circle",{cx:"12",cy:"12",r:"1"}),v.jsx("circle",{cx:"19",cy:"12",r:"1"}),v.jsx("circle",{cx:"5",cy:"12",r:"1"})]})},Verified:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsxs("svg",{...dt(e),...Zn(t),...l,ref:i,children:[v.jsx("path",{d:"M10.708 4.03551C11.4008 3.27361 12.5992 3.27361 13.292 4.03551C14.0105 4.82555 15.0715 5.21174 16.1297 5.06835C17.1502 4.93006 18.0682 5.70033 18.1092 6.72935C18.1518 7.79637 18.7163 8.77423 19.6191 9.34458C20.4898 9.89462 20.6979 11.0747 20.0678 11.8894C19.4146 12.7341 19.2185 13.8461 19.5435 14.8633C19.8569 15.8443 19.2577 16.8821 18.2514 17.1012C17.208 17.3284 16.343 18.0542 15.9381 19.0423C15.5476 19.9952 14.4216 20.4051 13.5099 19.9261C12.5646 19.4294 11.4354 19.4294 10.4901 19.9261C9.57843 20.4051 8.45237 19.9952 8.06187 19.0423C7.65695 18.0542 6.79199 17.3284 5.74857 17.1012C4.7423 16.8821 4.14314 15.8443 4.45654 14.8633C4.7815 13.8461 4.58543 12.7341 3.93215 11.8894C3.30214 11.0747 3.51023 9.89462 4.38087 9.34458C5.28366 8.77423 5.84823 7.79637 5.89077 6.72935C5.9318 5.70033 6.84977 4.93006 7.87028 5.06835C8.92848 5.21174 9.98951 4.82555 10.708 4.03551Z",strokeWidth:"1.5"}),v.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.5682 10.0607L15.5076 9.00002L11.0719 13.4357L8.56068 10.9244L7.50002 11.9851L11.0719 15.557L12.1326 14.4963L12.1326 14.4963L16.5682 10.0607Z",fill:t,strokeWidth:0})]})},NonVerified:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsxs("svg",{...dt(e),...Zn(t),...l,ref:i,children:[v.jsx("path",{style:{...l.style,transition:"stroke var(--Transition)"},d:"M10.1531 3.53092C11.1435 2.44181 12.8565 2.44181 13.8469 3.53092V3.53092C14.3994 4.13844 15.2153 4.4354 16.029 4.32514V4.32514C17.4878 4.12747 18.8 5.22853 18.8586 6.69947V6.69947C18.8913 7.51998 19.3255 8.27193 20.0197 8.71052V8.71052C21.2643 9.49677 21.5617 11.1837 20.6611 12.3482V12.3482C20.1588 12.9978 20.008 13.8529 20.2579 14.6351V14.6351C20.7059 16.0374 19.8494 17.5208 18.411 17.834V17.834C17.6086 18.0087 16.9435 18.5668 16.6321 19.3267V19.3267C16.0739 20.6888 14.4643 21.2747 13.1611 20.59V20.59C12.4341 20.2081 11.5659 20.2081 10.8389 20.59V20.59C9.53573 21.2747 7.92608 20.6888 7.36788 19.3267V19.3267C7.05651 18.5668 6.39137 18.0087 5.58901 17.834V17.834C4.1506 17.5208 3.29413 16.0374 3.74211 14.6351V14.6351C3.992 13.8529 3.84122 12.9978 3.33887 12.3482V12.3482C2.43829 11.1837 2.73574 9.49677 3.98029 8.71052V8.71052C4.67452 8.27193 5.10865 7.51998 5.14137 6.69947V6.69947C5.20002 5.22853 6.51221 4.12747 7.97099 4.32514V4.32514C8.78471 4.4354 9.60062 4.13844 10.1531 3.53092V3.53092Z",stroke:"var(--line-normal)",strokeWidth:"0.75",strokeMiterlimit:"11.4737",strokeLinecap:"round",strokeDasharray:"0.75 1.5"}),v.jsx("path",{style:{...l.style,transition:"fill var(--Transition)"},d:"M16.2224 8.5837L16.4875 8.31854C16.3411 8.17209 16.1037 8.17209 15.9572 8.31854L16.2224 8.5837ZM17.5013 9.86264L17.7665 10.1278C17.9129 9.98136 17.9129 9.74392 17.7665 9.59747L17.5013 9.86264ZM10.8739 13.9322L10.6087 14.1974C10.679 14.2677 10.7744 14.3072 10.8739 14.3072C10.9733 14.3072 11.0687 14.2677 11.139 14.1974L10.8739 13.9322ZM7.84584 10.9042L8.111 10.639C8.04068 10.5687 7.9453 10.5292 7.84584 10.5292C7.74638 10.5292 7.651 10.5687 7.58067 10.639L7.84584 10.9042ZM6.5669 12.1831L6.30174 11.9179C6.15529 12.0644 6.15529 12.3018 6.30174 12.4483L6.5669 12.1831ZM10.8739 16.4901L10.6087 16.7553C10.7552 16.9017 10.9926 16.9017 11.1391 16.7553L10.8739 16.4901ZM12.1528 15.2112L12.418 15.4763C12.5644 15.3299 12.5644 15.0924 12.418 14.946L12.1528 15.2112ZM12.1528 15.2111L11.8876 14.946C11.7412 15.0924 11.7412 15.3299 11.8876 15.4763L12.1528 15.2111ZM15.6601 8.61568C15.5136 8.76212 15.5136 8.99956 15.6601 9.14601C15.8065 9.29245 16.044 9.29245 16.1904 9.14601L15.6601 8.61568ZM15.0018 10.3346C15.1483 10.1881 15.1483 9.95068 15.0018 9.80423C14.8554 9.65778 14.618 9.65778 14.4715 9.80423L15.0018 10.3346ZM13.8772 10.3985C13.7308 10.545 13.7308 10.7824 13.8772 10.9288C14.0237 11.0753 14.2611 11.0753 14.4076 10.9288L13.8772 10.3985ZM13.219 12.1174C13.3655 11.9709 13.3655 11.7335 13.219 11.5871C13.0726 11.4406 12.8351 11.4406 12.6887 11.5871L13.219 12.1174ZM12.0944 12.1813C11.948 12.3278 11.948 12.5652 12.0944 12.7117C12.2409 12.8581 12.4783 12.8581 12.6247 12.7117L12.0944 12.1813ZM11.4362 13.9002C11.5826 13.7538 11.5826 13.5163 11.4362 13.3699C11.2897 13.2234 11.0523 13.2234 10.9059 13.3699L11.4362 13.9002ZM10.8867 13.4147C10.7403 13.2683 10.5028 13.2683 10.3564 13.4147C10.2099 13.5611 10.2099 13.7986 10.3564 13.945L10.8867 13.4147ZM9.34703 12.9357C9.49348 13.0821 9.73091 13.0821 9.87736 12.9357C10.0238 12.7892 10.0238 12.5518 9.87736 12.4054L9.34703 12.9357ZM9.37269 11.9007C9.22624 11.7542 8.9888 11.7542 8.84236 11.9007C8.69591 12.0471 8.69591 12.2846 8.84236 12.431L9.37269 11.9007ZM7.83301 11.4217C7.97946 11.5681 8.21689 11.5681 8.36334 11.4217C8.50979 11.2752 8.50979 11.0378 8.36334 10.8913L7.83301 11.4217ZM7.36752 10.8522C7.22107 10.9986 7.22107 11.236 7.36752 11.3825C7.51396 11.5289 7.7514 11.5289 7.89785 11.3825L7.36752 10.8522ZM7.04522 12.2351C7.19167 12.0887 7.19167 11.8512 7.04522 11.7048C6.89878 11.5583 6.66134 11.5583 6.51489 11.7048L7.04522 12.2351ZM6.54101 12.6875C6.68746 12.834 6.9249 12.834 7.07134 12.6875C7.21779 12.5411 7.21779 12.3037 7.07134 12.1572L6.54101 12.6875ZM8.02845 13.1143C7.88201 12.9679 7.64457 12.9679 7.49812 13.1143C7.35168 13.2608 7.35168 13.4982 7.49812 13.6446L8.02845 13.1143ZM7.97668 14.1232C8.12312 14.2697 8.36056 14.2697 8.50701 14.1232C8.65345 13.9768 8.65345 13.7393 8.50701 13.5929L7.97668 14.1232ZM9.46412 14.55C9.31767 14.4035 9.08023 14.4035 8.93379 14.55C8.78734 14.6964 8.78734 14.9339 8.93379 15.0803L9.46412 14.55ZM9.41234 15.5589C9.55879 15.7053 9.79623 15.7053 9.94267 15.5589C10.0891 15.4124 10.0891 15.175 9.94267 15.0285L9.41234 15.5589ZM10.8998 15.9856C10.7533 15.8392 10.5159 15.8392 10.3695 15.9856C10.223 16.1321 10.223 16.3695 10.3695 16.516L10.8998 15.9856ZM11.3522 16.5421C11.4987 16.3957 11.4987 16.1582 11.3522 16.0118C11.2058 15.8653 10.9683 15.8653 10.8219 16.0118L11.3522 16.5421ZM11.6745 15.1591C11.5281 15.3056 11.5281 15.543 11.6745 15.6895C11.821 15.8359 12.0584 15.8359 12.2048 15.6895L11.6745 15.1591ZM12.418 14.946C12.2715 14.7995 12.0341 14.7995 11.8877 14.946C11.7412 15.0924 11.7412 15.3299 11.8877 15.4763L12.418 14.946ZM11.8877 15.4763C12.0341 15.6228 12.2715 15.6228 12.418 15.4763C12.5644 15.3299 12.5644 15.0924 12.418 14.946L11.8877 15.4763ZM12.7151 15.1792C12.8616 15.0327 12.8616 14.7953 12.7151 14.6488C12.5687 14.5024 12.3312 14.5024 12.1848 14.6488L12.7151 15.1792ZM13.3733 13.4603C13.2269 13.6067 13.2269 13.8442 13.3733 13.9906C13.5198 14.1371 13.7572 14.1371 13.9037 13.9906L13.3733 13.4603ZM14.498 13.3963C14.6444 13.2499 14.6444 13.0124 14.498 12.866C14.3515 12.7196 14.1141 12.7196 13.9676 12.866L14.498 13.3963ZM15.1562 11.6774C15.0097 11.8239 15.0097 12.0613 15.1562 12.2078C15.3026 12.3542 15.5401 12.3542 15.6865 12.2078L15.1562 11.6774ZM16.2808 11.6135C16.4272 11.4671 16.4272 11.2296 16.2808 11.0832C16.1343 10.9367 15.8969 10.9367 15.7505 11.0832L16.2808 11.6135ZM16.939 9.89461C16.7926 10.0411 16.7926 10.2785 16.939 10.4249C17.0855 10.5714 17.3229 10.5714 17.4693 10.4249L16.939 9.89461ZM17.5533 9.38432C17.4069 9.23787 17.1694 9.23787 17.023 9.38432C16.8765 9.53076 16.8765 9.7682 17.023 9.91465L17.5533 9.38432ZM16.1704 9.06202C16.3168 9.20847 16.5542 9.20847 16.7007 9.06202C16.8471 8.91558 16.8471 8.67814 16.7007 8.53169L16.1704 9.06202ZM15.9572 8.31854L15.6601 8.61568L16.1904 9.14601L16.4875 8.84887L15.9572 8.31854ZM14.4715 9.80423L13.8772 10.3985L14.4076 10.9288L15.0018 10.3346L14.4715 9.80423ZM12.6887 11.5871L12.0944 12.1813L12.6247 12.7117L13.219 12.1174L12.6887 11.5871ZM10.9059 13.3699L10.6087 13.667L11.139 14.1974L11.4362 13.9002L10.9059 13.3699ZM11.139 13.667L10.8867 13.4147L10.3564 13.945L10.6087 14.1974L11.139 13.667ZM9.87736 12.4054L9.37269 11.9007L8.84236 12.431L9.34703 12.9357L9.87736 12.4054ZM8.36334 10.8913L8.111 10.639L7.58067 11.1693L7.83301 11.4217L8.36334 10.8913ZM7.58067 10.639L7.36752 10.8522L7.89785 11.3825L8.111 11.1693L7.58067 10.639ZM6.51489 11.7048L6.30174 11.9179L6.83207 12.4483L7.04522 12.2351L6.51489 11.7048ZM6.30174 12.4483L6.54101 12.6875L7.07134 12.1572L6.83207 11.9179L6.30174 12.4483ZM7.49812 13.6446L7.97668 14.1232L8.50701 13.5929L8.02845 13.1143L7.49812 13.6446ZM8.93379 15.0803L9.41234 15.5589L9.94267 15.0285L9.46412 14.55L8.93379 15.0803ZM10.3695 16.516L10.6087 16.7553L11.1391 16.2249L10.8998 15.9856L10.3695 16.516ZM11.1391 16.7553L11.3522 16.5421L10.8219 16.0118L10.6087 16.2249L11.1391 16.7553ZM12.2048 15.6895L12.418 15.4763L11.8877 14.946L11.6745 15.1591L12.2048 15.6895ZM12.418 14.946L12.418 14.946L11.8877 15.4763L11.8877 15.4763L12.418 14.946ZM12.418 14.946L12.418 14.946L11.8876 15.4763L11.8877 15.4763L12.418 14.946ZM12.418 15.4763L12.7151 15.1792L12.1848 14.6488L11.8876 14.946L12.418 15.4763ZM13.9037 13.9906L14.498 13.3963L13.9676 12.866L13.3733 13.4603L13.9037 13.9906ZM15.6865 12.2078L16.2808 11.6135L15.7505 11.0832L15.1562 11.6774L15.6865 12.2078ZM17.4693 10.4249L17.7665 10.1278L17.2361 9.59747L16.939 9.89461L17.4693 10.4249ZM17.7665 9.59747L17.5533 9.38432L17.023 9.91465L17.2361 10.1278L17.7665 9.59747ZM16.7007 8.53169L16.4875 8.31854L15.9572 8.84887L16.1704 9.06202L16.7007 8.53169Z",fill:"var(--line-normal)",strokeWidth:0})]})},Edit2:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsxs("svg",{...dt(e),...Zn(t),...l,ref:i,children:[v.jsx("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),v.jsx("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"})]})},Trash:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsxs("svg",{...dt(e),...Zn(t),...l,ref:i,children:[v.jsx("polyline",{points:"3 6 5 6 21 6"}),v.jsx("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"}),v.jsx("line",{x1:"10",y1:"11",x2:"10",y2:"17"}),v.jsx("line",{x1:"14",y1:"11",x2:"14",y2:"17"})]})},AddRowBelow:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...Mu(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M200-560h560v-240H200v240Zm-80 400v-720h720v720H680v-80h80v-240H200v240h80v80H120Zm360-320Zm0-80v80-80Zm0 0ZM440-80v-80h-80v-80h80v-80h80v80h80v80h-80v80h-80Z"})})},AddRowAbove:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...Mu(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M200-160h560v-240H200v240Zm640 80H120v-720h160v80h-80v240h560v-240h-80v-80h160v720ZM480-480Zm0 80v-80 80Zm0 0Zm-40-240v-80h-80v-80h80v-80h80v80h80v80h-80v80h-80Z"})})},AddColRight:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...Mu(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M160-760v560h240v-560H160ZM80-120v-720h720v160h-80v-80H480v560h240v-80h80v160H80Zm400-360Zm-80 0h80-80Zm0 0Zm320 120v-80h-80v-80h80v-80h80v80h80v80h-80v80h-80Z"})})},AddColLeft:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...Mu(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M800-200v-560H560v560h240Zm-640 80v-160h80v80h240v-560H240v80h-80v-160h720v720H160Zm320-360Zm80 0h-80 80Zm0 0ZM160-360v-80H80v-80h80v-80h80v80h80v80h-80v80h-80Z"})})},RemoveCol:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...Mu(e),fill:t,...l,ref:i,children:v.jsx("path",{d:"M360-440h240v-80H360v80Zm-80-120Zm240 0ZM200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h160q33 0 56.5 23.5T440-760v80h-80v-80H200v560h160v-80h80v80q0 33-23.5 56.5T360-120H200Zm400 0q-33 0-56.5-23.5T520-200v-80h80v80h160v-560H600v80h-80v-80q0-33 23.5-56.5T600-840h160q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H600Z"})})},RemoveRow:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsxs("svg",{...Mu(e),fill:t,...l,ref:i,children:[v.jsx("path",{d:"M360-440h240v-80H360v80Z"}),v.jsx("path",{d:"M-80-120Zm240 0ZM200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h160q33 0 56.5 23.5T440-760v80h-80v-80H200v560h160v-80h80v80q0 33-23.5 56.5T360-120H200Zm400 0q-33 0-56.5-23.5T520-200v-80h80v80h160v-560H600v80h-80v-80q0-33 23.5-56.5T600-840h160q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H600Z",transform:"rotate(90 480 -480)"})]})},Table:(r={})=>{const{size:e="md",primaryColor:t="currentColor",svgRef:n,...i}=r;return v.jsx("svg",{...dt(e),...Zn(t),...i,ref:n,children:v.jsx("path",{className:"ql-stroke ql-thick",d:"M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18"})})},Minus:(r={})=>{const{size:e="md",primaryColor:t="currentColor",svgRef:n,...i}=r;return v.jsx("svg",{...dt(e),...Zn(t),...i,ref:n,children:v.jsx("line",{className:"ql-stroke ql-thick",x1:"5",y1:"12",x2:"19",y2:"12"})})},EditorArrow:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n="currentColor",svgRef:i,...l}=r;return v.jsxs("svg",{...dt(e),...l,ref:i,children:[v.jsx("path",{d:"M11 5L16.1962 10.25H5.80385L11 5Z",fill:t}),v.jsx("path",{d:"M11 19L16.1962 13.75H5.80385L11 19Z",fill:n})]})},Target:(r={})=>{const{size:e="md",primaryColor:t="currentColor",svgRef:n,...i}=r;return v.jsx("svg",{...dt(e),...i,ref:n,children:v.jsx("g",{id:"target",children:v.jsx("path",{id:"Vector",d:"M12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19Z",fill:t})})})}}),um=er.keys(ih);var Vl={},Uc={};/**
|
53
53
|
* @license React
|
54
54
|
* react-dom-server-legacy.browser.production.min.js
|
55
55
|
*
|
@@ -57,13 +57,13 @@ function print() { __p += __j.call(arguments, '') }
|
|
57
57
|
*
|
58
58
|
* This source code is licensed under the MIT license found in the
|
59
59
|
* LICENSE file in the root directory of this source tree.
|
60
|
-
*/var Vv;function q4(){if(Vv)return Uc;Vv=1;var r=A;function e(
|
61
|
-
`&&
|
62
|
-
`),Se!==null&&
|
63
|
-
`?
|
64
|
-
`,V):
|
65
|
-
`&&
|
66
|
-
`),Se;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":C.push(re(N));for(var vn in V)if(t.call(V,vn)&&(Se=V[vn],Se!=null))switch(vn){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,N));default:z(C,ee,vn,Se)}return C.push("/>"),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return X(C,V,N,ee);case"html":return Ee.insertionMode===0&&C.push("<!DOCTYPE html>"),X(C,V,N,ee);default:if(N.indexOf("-")===-1&&typeof V.is!="string")return X(C,V,N,ee);C.push(re(N)),He=Se=null;for(zt in V)if(t.call(V,zt)&&(st=V[zt],st!=null))switch(zt){case"children":Se=st;break;case"dangerouslySetInnerHTML":He=st;break;case"style":q(C,ee,st);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:u(zt)&&typeof st!="function"&&typeof st!="symbol"&&C.push(" ",zt,'="',_(st),'"')}return C.push(">"),K(C,He,Se),Se}}function Q(C,N,V){if(C.push('<!--$?--><template id="'),V===null)throw Error(e(395));return C.push(V),C.push('"></template>')}function he(C,N,V,ee){switch(V.insertionMode){case 0:case 1:return C.push('<div hidden id="'),C.push(N.segmentPrefix),N=ee.toString(16),C.push(N),C.push('">');case 2:return C.push('<svg aria-hidden="true" style="display:none" id="'),C.push(N.segmentPrefix),N=ee.toString(16),C.push(N),C.push('">');case 3:return C.push('<math aria-hidden="true" style="display:none" id="'),C.push(N.segmentPrefix),N=ee.toString(16),C.push(N),C.push('">');case 4:return C.push('<table hidden id="'),C.push(N.segmentPrefix),N=ee.toString(16),C.push(N),C.push('">');case 5:return C.push('<table hidden><tbody id="'),C.push(N.segmentPrefix),N=ee.toString(16),C.push(N),C.push('">');case 6:return C.push('<table hidden><tr id="'),C.push(N.segmentPrefix),N=ee.toString(16),C.push(N),C.push('">');case 7:return C.push('<table hidden><colgroup id="'),C.push(N.segmentPrefix),N=ee.toString(16),C.push(N),C.push('">');default:throw Error(e(397))}}function me(C,N){switch(N.insertionMode){case 0:case 1:return C.push("</div>");case 2:return C.push("</svg>");case 3:return C.push("</math>");case 4:return C.push("</table>");case 5:return C.push("</tbody></table>");case 6:return C.push("</tr></table>");case 7:return C.push("</colgroup></table>");default:throw Error(e(397))}}var be=/[<\u2028\u2029]/g;function ce(C){return JSON.stringify(C).replace(be,function(N){switch(N){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function ke(C,N){return N=N===void 0?"":N,{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:N+"P:",segmentPrefix:N+"S:",boundaryPrefix:N+"B:",idPrefix:N,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:C}}function le(C,N,V,ee){return V.generateStaticMarkup?(C.push(_(N)),!1):(N===""?C=ee:(ee&&C.push("<!-- -->"),C.push(_(N)),C=!0),C)}var oe=Object.assign,ve=Symbol.for("react.element"),Oe=Symbol.for("react.portal"),et=Symbol.for("react.fragment"),we=Symbol.for("react.strict_mode"),Pe=Symbol.for("react.profiler"),je=Symbol.for("react.provider"),ze=Symbol.for("react.context"),We=Symbol.for("react.forward_ref"),De=Symbol.for("react.suspense"),Ae=Symbol.for("react.suspense_list"),_e=Symbol.for("react.memo"),Ge=Symbol.for("react.lazy"),lt=Symbol.for("react.scope"),$e=Symbol.for("react.debug_trace_mode"),ht=Symbol.for("react.legacy_hidden"),Le=Symbol.for("react.default_value"),Xe=Symbol.iterator;function it(C){if(C==null)return null;if(typeof C=="function")return C.displayName||C.name||null;if(typeof C=="string")return C;switch(C){case et:return"Fragment";case Oe:return"Portal";case Pe:return"Profiler";case we:return"StrictMode";case De:return"Suspense";case Ae:return"SuspenseList"}if(typeof C=="object")switch(C.$$typeof){case ze:return(C.displayName||"Context")+".Consumer";case je:return(C._context.displayName||"Context")+".Provider";case We:var N=C.render;return C=C.displayName,C||(C=N.displayName||N.name||"",C=C!==""?"ForwardRef("+C+")":"ForwardRef"),C;case _e:return N=C.displayName||null,N!==null?N:it(C.type)||"Memo";case Ge:N=C._payload,C=C._init;try{return it(C(N))}catch{}}return null}var Ct={};function _t(C,N){if(C=C.contextTypes,!C)return Ct;var V={},ee;for(ee in C)V[ee]=N[ee];return V}var wt=null;function bt(C,N){if(C!==N){C.context._currentValue2=C.parentValue,C=C.parent;var V=N.parent;if(C===null){if(V!==null)throw Error(e(401))}else{if(V===null)throw Error(e(401));bt(C,V)}N.context._currentValue2=N.value}}function St(C){C.context._currentValue2=C.parentValue,C=C.parent,C!==null&&St(C)}function Me(C){var N=C.parent;N!==null&&Me(N),C.context._currentValue2=C.value}function pt(C,N){if(C.context._currentValue2=C.parentValue,C=C.parent,C===null)throw Error(e(402));C.depth===N.depth?bt(C,N):pt(C,N)}function Et(C,N){var V=N.parent;if(V===null)throw Error(e(402));C.depth===V.depth?bt(C,V):Et(C,V),N.context._currentValue2=N.value}function mt(C){var N=wt;N!==C&&(N===null?Me(C):C===null?St(N):N.depth===C.depth?bt(N,C):N.depth>C.depth?pt(N,C):Et(N,C),wt=C)}var Dt={isMounted:function(){return!1},enqueueSetState:function(C,N){C=C._reactInternals,C.queue!==null&&C.queue.push(N)},enqueueReplaceState:function(C,N){C=C._reactInternals,C.replace=!0,C.queue=[N]},enqueueForceUpdate:function(){}};function Ze(C,N,V,ee){var Ee=C.state!==void 0?C.state:null;C.updater=Dt,C.props=V,C.state=Ee;var Se={queue:[],replace:!1};C._reactInternals=Se;var He=N.contextType;if(C.context=typeof He=="object"&&He!==null?He._currentValue2:ee,He=N.getDerivedStateFromProps,typeof He=="function"&&(He=He(V,Ee),Ee=He==null?Ee:oe({},Ee,He),C.state=Ee),typeof N.getDerivedStateFromProps!="function"&&typeof C.getSnapshotBeforeUpdate!="function"&&(typeof C.UNSAFE_componentWillMount=="function"||typeof C.componentWillMount=="function"))if(N=C.state,typeof C.componentWillMount=="function"&&C.componentWillMount(),typeof C.UNSAFE_componentWillMount=="function"&&C.UNSAFE_componentWillMount(),N!==C.state&&Dt.enqueueReplaceState(C,C.state,null),Se.queue!==null&&0<Se.queue.length)if(N=Se.queue,He=Se.replace,Se.queue=null,Se.replace=!1,He&&N.length===1)C.state=N[0];else{for(Se=He?N[0]:C.state,Ee=!0,He=He?1:0;He<N.length;He++){var st=N[He];st=typeof st=="function"?st.call(C,Se,V,ee):st,st!=null&&(Ee?(Ee=!1,Se=oe({},Se,st)):oe(Se,st))}C.state=Se}else Se.queue=null}var At={id:1,overflow:""};function jt(C,N,V){var ee=C.id;C=C.overflow;var Ee=32-mr(ee)-1;ee&=~(1<<Ee),V+=1;var Se=32-mr(N)+Ee;if(30<Se){var He=Ee-Ee%5;return Se=(ee&(1<<He)-1).toString(32),ee>>=He,Ee-=He,{id:1<<32-mr(N)+Ee|V<<Ee|ee,overflow:Se+C}}return{id:1<<Se|V<<Ee|ee,overflow:C}}var mr=Math.clz32?Math.clz32:ge,kr=Math.log,Cr=Math.LN2;function ge(C){return C>>>=0,C===0?32:31-(kr(C)/Cr|0)|0}function ne(C,N){return C===N&&(C!==0||1/C===1/N)||C!==C&&N!==N}var Je=typeof Object.is=="function"?Object.is:ne,ct=null,tt=null,Re=null,xt=null,Rt=!1,vt=!1,Mt=0,Qt=null,rr=0;function Bt(){if(ct===null)throw Error(e(321));return ct}function qt(){if(0<rr)throw Error(e(312));return{memoizedState:null,queue:null,next:null}}function sr(){return xt===null?Re===null?(Rt=!1,Re=xt=qt()):(Rt=!0,xt=Re):xt.next===null?(Rt=!1,xt=xt.next=qt()):(Rt=!0,xt=xt.next),xt}function Qe(){tt=ct=null,vt=!1,Re=null,rr=0,xt=Qt=null}function Tt(C,N){return typeof N=="function"?N(C):N}function yt(C,N,V){if(ct=Bt(),xt=sr(),Rt){var ee=xt.queue;if(N=ee.dispatch,Qt!==null&&(V=Qt.get(ee),V!==void 0)){Qt.delete(ee),ee=xt.memoizedState;do ee=C(ee,V.action),V=V.next;while(V!==null);return xt.memoizedState=ee,[ee,N]}return[xt.memoizedState,N]}return C=C===Tt?typeof N=="function"?N():N:V!==void 0?V(N):N,xt.memoizedState=C,C=xt.queue={last:null,dispatch:null},C=C.dispatch=vr.bind(null,ct,C),[xt.memoizedState,C]}function Lt(C,N){if(ct=Bt(),xt=sr(),N=N===void 0?null:N,xt!==null){var V=xt.memoizedState;if(V!==null&&N!==null){var ee=V[1];e:if(ee===null)ee=!1;else{for(var Ee=0;Ee<ee.length&&Ee<N.length;Ee++)if(!Je(N[Ee],ee[Ee])){ee=!1;break e}ee=!0}if(ee)return V[0]}}return C=C(),xt.memoizedState=[C,N],C}function vr(C,N,V){if(25<=rr)throw Error(e(301));if(C===ct)if(vt=!0,C={action:V,next:null},Qt===null&&(Qt=new Map),V=Qt.get(N),V===void 0)Qt.set(N,C);else{for(N=V;N.next!==null;)N=N.next;N.next=C}}function Y(){throw Error(e(394))}function pe(){}var Be={readContext:function(C){return C._currentValue2},useContext:function(C){return Bt(),C._currentValue2},useMemo:Lt,useReducer:yt,useRef:function(C){ct=Bt(),xt=sr();var N=xt.memoizedState;return N===null?(C={current:C},xt.memoizedState=C):N},useState:function(C){return yt(Tt,C)},useInsertionEffect:pe,useLayoutEffect:function(){},useCallback:function(C,N){return Lt(function(){return C},N)},useImperativeHandle:pe,useEffect:pe,useDebugValue:pe,useDeferredValue:function(C){return Bt(),C},useTransition:function(){return Bt(),[!1,Y]},useId:function(){var C=tt.treeContext,N=C.overflow;C=C.id,C=(C&~(1<<32-mr(C)-1)).toString(32)+N;var V=ot;if(V===null)throw Error(e(404));return N=Mt++,C=":"+V.idPrefix+"R"+C,0<N&&(C+="H"+N.toString(32)),C+":"},useMutableSource:function(C,N){return Bt(),N(C._source)},useSyncExternalStore:function(C,N,V){if(V===void 0)throw Error(e(407));return V()}},ot=null,Ot=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function $t(C){return console.error(C),null}function kt(){}function Ut(C,N,V,ee,Ee,Se,He,st,Pt){var zt=[],Ht=new Set;return N={destination:null,responseState:N,progressiveChunkSize:ee===void 0?12800:ee,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:Ht,pingedTasks:zt,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:Ee===void 0?$t:Ee,onAllReady:kt,onShellReady:He===void 0?kt:He,onShellError:kt,onFatalError:kt},V=ir(N,0,null,V,!1,!1),V.parentFlushed=!0,C=nr(N,C,null,V,Ht,Ct,null,At),zt.push(C),N}function nr(C,N,V,ee,Ee,Se,He,st){C.allPendingTasks++,V===null?C.pendingRootTasks++:V.pendingTasks++;var Pt={node:N,ping:function(){var zt=C.pingedTasks;zt.push(Pt),zt.length===1&&wn(C)},blockedBoundary:V,blockedSegment:ee,abortSet:Ee,legacyContext:Se,context:He,treeContext:st};return Ee.add(Pt),Pt}function ir(C,N,V,ee,Ee,Se){return{status:0,id:-1,index:N,parentFlushed:!1,chunks:[],children:[],formatContext:ee,boundary:V,lastPushedText:Ee,textEmbedded:Se}}function fr(C,N){if(C=C.onError(N),C!=null&&typeof C!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof C+'" instead');return C}function Ur(C,N){var V=C.onShellError;V(N),V=C.onFatalError,V(N),C.destination!==null?(C.status=2,C.destination.destroy(N)):(C.status=1,C.fatalError=N)}function yr(C,N,V,ee,Ee){for(ct={},tt=N,Mt=0,C=V(ee,Ee);vt;)vt=!1,Mt=0,rr+=1,xt=null,C=V(ee,Ee);return Qe(),C}function Kn(C,N,V,ee){var Ee=V.render(),Se=ee.childContextTypes;if(Se!=null){var He=N.legacyContext;if(typeof V.getChildContext!="function")ee=He;else{V=V.getChildContext();for(var st in V)if(!(st in Se))throw Error(e(108,it(ee)||"Unknown",st));ee=oe({},He,V)}N.legacyContext=ee,Yr(C,N,Ee),N.legacyContext=He}else Yr(C,N,Ee)}function Cn(C,N){if(C&&C.defaultProps){N=oe({},N),C=C.defaultProps;for(var V in C)N[V]===void 0&&(N[V]=C[V]);return N}return N}function Dn(C,N,V,ee,Ee){if(typeof V=="function")if(V.prototype&&V.prototype.isReactComponent){Ee=_t(V,N.legacyContext);var Se=V.contextType;Se=new V(ee,typeof Se=="object"&&Se!==null?Se._currentValue2:Ee),Ze(Se,V,ee,Ee),Kn(C,N,Se,V)}else{Se=_t(V,N.legacyContext),Ee=yr(C,N,V,ee,Se);var He=Mt!==0;if(typeof Ee=="object"&&Ee!==null&&typeof Ee.render=="function"&&Ee.$$typeof===void 0)Ze(Ee,V,ee,Se),Kn(C,N,Ee,V);else if(He){ee=N.treeContext,N.treeContext=jt(ee,1,0);try{Yr(C,N,Ee)}finally{N.treeContext=ee}}else Yr(C,N,Ee)}else if(typeof V=="string"){switch(Ee=N.blockedSegment,Se=J(Ee.chunks,V,ee,C.responseState,Ee.formatContext),Ee.lastPushedText=!1,He=Ee.formatContext,Ee.formatContext=O(He,V,ee),En(C,N,Se),Ee.formatContext=He,V){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:Ee.chunks.push("</",V,">")}Ee.lastPushedText=!1}else{switch(V){case ht:case $e:case we:case Pe:case et:Yr(C,N,ee.children);return;case Ae:Yr(C,N,ee.children);return;case lt:throw Error(e(343));case De:e:{V=N.blockedBoundary,Ee=N.blockedSegment,Se=ee.fallback,ee=ee.children,He=new Set;var st={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:He,errorDigest:null},Pt=ir(C,Ee.chunks.length,st,Ee.formatContext,!1,!1);Ee.children.push(Pt),Ee.lastPushedText=!1;var zt=ir(C,0,null,Ee.formatContext,!1,!1);zt.parentFlushed=!0,N.blockedBoundary=st,N.blockedSegment=zt;try{if(En(C,N,ee),C.responseState.generateStaticMarkup||zt.lastPushedText&&zt.textEmbedded&&zt.chunks.push("<!-- -->"),zt.status=1,on(st,zt),st.pendingTasks===0)break e}catch(Ht){zt.status=4,st.forceClientRender=!0,st.errorDigest=fr(C,Ht)}finally{N.blockedBoundary=V,N.blockedSegment=Ee}N=nr(C,Se,V,Pt,He,N.legacyContext,N.context,N.treeContext),C.pingedTasks.push(N)}return}if(typeof V=="object"&&V!==null)switch(V.$$typeof){case We:if(ee=yr(C,N,V.render,ee,Ee),Mt!==0){V=N.treeContext,N.treeContext=jt(V,1,0);try{Yr(C,N,ee)}finally{N.treeContext=V}}else Yr(C,N,ee);return;case _e:V=V.type,ee=Cn(V,ee),Dn(C,N,V,ee,Ee);return;case je:if(Ee=ee.children,V=V._context,ee=ee.value,Se=V._currentValue2,V._currentValue2=ee,He=wt,wt=ee={parent:He,depth:He===null?0:He.depth+1,context:V,parentValue:Se,value:ee},N.context=ee,Yr(C,N,Ee),C=wt,C===null)throw Error(e(403));ee=C.parentValue,C.context._currentValue2=ee===Le?C.context._defaultValue:ee,C=wt=C.parent,N.context=C;return;case ze:ee=ee.children,ee=ee(V._currentValue2),Yr(C,N,ee);return;case Ge:Ee=V._init,V=Ee(V._payload),ee=Cn(V,ee),Dn(C,N,V,ee,void 0);return}throw Error(e(130,V==null?V:typeof V,""))}}function Yr(C,N,V){if(N.node=V,typeof V=="object"&&V!==null){switch(V.$$typeof){case ve:Dn(C,N,V.type,V.props,V.ref);return;case Oe:throw Error(e(257));case Ge:var ee=V._init;V=ee(V._payload),Yr(C,N,V);return}if(x(V)){Yn(C,N,V);return}if(V===null||typeof V!="object"?ee=null:(ee=Xe&&V[Xe]||V["@@iterator"],ee=typeof ee=="function"?ee:null),ee&&(ee=ee.call(V))){if(V=ee.next(),!V.done){var Ee=[];do Ee.push(V.value),V=ee.next();while(!V.done);Yn(C,N,Ee)}return}throw C=Object.prototype.toString.call(V),Error(e(31,C==="[object Object]"?"object with keys {"+Object.keys(V).join(", ")+"}":C))}typeof V=="string"?(ee=N.blockedSegment,ee.lastPushedText=le(N.blockedSegment.chunks,V,C.responseState,ee.lastPushedText)):typeof V=="number"&&(ee=N.blockedSegment,ee.lastPushedText=le(N.blockedSegment.chunks,""+V,C.responseState,ee.lastPushedText))}function Yn(C,N,V){for(var ee=V.length,Ee=0;Ee<ee;Ee++){var Se=N.treeContext;N.treeContext=jt(Se,ee,Ee);try{En(C,N,V[Ee])}finally{N.treeContext=Se}}}function En(C,N,V){var ee=N.blockedSegment.formatContext,Ee=N.legacyContext,Se=N.context;try{return Yr(C,N,V)}catch(Pt){if(Qe(),typeof Pt=="object"&&Pt!==null&&typeof Pt.then=="function"){V=Pt;var He=N.blockedSegment,st=ir(C,He.chunks.length,null,He.formatContext,He.lastPushedText,!0);He.children.push(st),He.lastPushedText=!1,C=nr(C,N.node,N.blockedBoundary,st,N.abortSet,N.legacyContext,N.context,N.treeContext).ping,V.then(C,C),N.blockedSegment.formatContext=ee,N.legacyContext=Ee,N.context=Se,mt(Se)}else throw N.blockedSegment.formatContext=ee,N.legacyContext=Ee,N.context=Se,mt(Se),Pt}}function Xn(C){var N=C.blockedBoundary;C=C.blockedSegment,C.status=3,On(this,N,C)}function Jn(C,N,V){var ee=C.blockedBoundary;C.blockedSegment.status=3,ee===null?(N.allPendingTasks--,N.status!==2&&(N.status=2,N.destination!==null&&N.destination.push(null))):(ee.pendingTasks--,ee.forceClientRender||(ee.forceClientRender=!0,C=V===void 0?Error(e(432)):V,ee.errorDigest=N.onError(C),ee.parentFlushed&&N.clientRenderedBoundaries.push(ee)),ee.fallbackAbortableTasks.forEach(function(Ee){return Jn(Ee,N,V)}),ee.fallbackAbortableTasks.clear(),N.allPendingTasks--,N.allPendingTasks===0&&(ee=N.onAllReady,ee()))}function on(C,N){if(N.chunks.length===0&&N.children.length===1&&N.children[0].boundary===null){var V=N.children[0];V.id=N.id,V.parentFlushed=!0,V.status===1&&on(C,V)}else C.completedSegments.push(N)}function On(C,N,V){if(N===null){if(V.parentFlushed){if(C.completedRootSegment!==null)throw Error(e(389));C.completedRootSegment=V}C.pendingRootTasks--,C.pendingRootTasks===0&&(C.onShellError=kt,N=C.onShellReady,N())}else N.pendingTasks--,N.forceClientRender||(N.pendingTasks===0?(V.parentFlushed&&V.status===1&&on(N,V),N.parentFlushed&&C.completedBoundaries.push(N),N.fallbackAbortableTasks.forEach(Xn,C),N.fallbackAbortableTasks.clear()):V.parentFlushed&&V.status===1&&(on(N,V),N.completedSegments.length===1&&N.parentFlushed&&C.partialBoundaries.push(N)));C.allPendingTasks--,C.allPendingTasks===0&&(C=C.onAllReady,C())}function wn(C){if(C.status!==2){var N=wt,V=Ot.current;Ot.current=Be;var ee=ot;ot=C.responseState;try{var Ee=C.pingedTasks,Se;for(Se=0;Se<Ee.length;Se++){var He=Ee[Se],st=C,Pt=He.blockedSegment;if(Pt.status===0){mt(He.context);try{Yr(st,He,He.node),st.responseState.generateStaticMarkup||Pt.lastPushedText&&Pt.textEmbedded&&Pt.chunks.push("<!-- -->"),He.abortSet.delete(He),Pt.status=1,On(st,He.blockedBoundary,Pt)}catch(yn){if(Qe(),typeof yn=="object"&&yn!==null&&typeof yn.then=="function"){var zt=He.ping;yn.then(zt,zt)}else{He.abortSet.delete(He),Pt.status=4;var Ht=He.blockedBoundary,xr=yn,Zr=fr(st,xr);if(Ht===null?Ur(st,xr):(Ht.pendingTasks--,Ht.forceClientRender||(Ht.forceClientRender=!0,Ht.errorDigest=Zr,Ht.parentFlushed&&st.clientRenderedBoundaries.push(Ht))),st.allPendingTasks--,st.allPendingTasks===0){var vn=st.onAllReady;vn()}}}finally{}}}Ee.splice(0,Se),C.destination!==null&&un(C,C.destination)}catch(yn){fr(C,yn),Ur(C,yn)}finally{ot=ee,Ot.current=V,V===Be&&mt(N)}}}function hi(C,N,V){switch(V.parentFlushed=!0,V.status){case 0:var ee=V.id=C.nextSegmentId++;return V.lastPushedText=!1,V.textEmbedded=!1,C=C.responseState,N.push('<template id="'),N.push(C.placeholderPrefix),C=ee.toString(16),N.push(C),N.push('"></template>');case 1:V.status=2;var Ee=!0;ee=V.chunks;var Se=0;V=V.children;for(var He=0;He<V.length;He++){for(Ee=V[He];Se<Ee.index;Se++)N.push(ee[Se]);Ee=Si(C,N,Ee)}for(;Se<ee.length-1;Se++)N.push(ee[Se]);return Se<ee.length&&(Ee=N.push(ee[Se])),Ee;default:throw Error(e(390))}}function Si(C,N,V){var ee=V.boundary;if(ee===null)return hi(C,N,V);if(ee.parentFlushed=!0,ee.forceClientRender)return C.responseState.generateStaticMarkup||(ee=ee.errorDigest,N.push("<!--$!-->"),N.push("<template"),ee&&(N.push(' data-dgst="'),ee=_(ee),N.push(ee),N.push('"')),N.push("></template>")),hi(C,N,V),C=C.responseState.generateStaticMarkup?!0:N.push("<!--/$-->"),C;if(0<ee.pendingTasks){ee.rootSegmentID=C.nextSegmentId++,0<ee.completedSegments.length&&C.partialBoundaries.push(ee);var Ee=C.responseState,Se=Ee.nextSuspenseID++;return Ee=Ee.boundaryPrefix+Se.toString(16),ee=ee.id=Ee,Q(N,C.responseState,ee),hi(C,N,V),N.push("<!--/$-->")}if(ee.byteSize>C.progressiveChunkSize)return ee.rootSegmentID=C.nextSegmentId++,C.completedBoundaries.push(ee),Q(N,C.responseState,ee.id),hi(C,N,V),N.push("<!--/$-->");if(C.responseState.generateStaticMarkup||N.push("<!--$-->"),V=ee.completedSegments,V.length!==1)throw Error(e(391));return Si(C,N,V[0]),C=C.responseState.generateStaticMarkup?!0:N.push("<!--/$-->"),C}function Ci(C,N,V){return he(N,C.responseState,V.formatContext,V.id),Si(C,N,V),me(N,V.formatContext)}function kn(C,N,V){for(var ee=V.completedSegments,Ee=0;Ee<ee.length;Ee++)An(C,N,V,ee[Ee]);if(ee.length=0,C=C.responseState,ee=V.id,V=V.rootSegmentID,N.push(C.startInlineScript),C.sentCompleteBoundaryFunction?N.push('$RC("'):(C.sentCompleteBoundaryFunction=!0,N.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),ee===null)throw Error(e(395));return V=V.toString(16),N.push(ee),N.push('","'),N.push(C.segmentPrefix),N.push(V),N.push('")<\/script>')}function An(C,N,V,ee){if(ee.status===2)return!0;var Ee=ee.id;if(Ee===-1){if((ee.id=V.rootSegmentID)===-1)throw Error(e(392));return Ci(C,N,ee)}return Ci(C,N,ee),C=C.responseState,N.push(C.startInlineScript),C.sentCompleteSegmentFunction?N.push('$RS("'):(C.sentCompleteSegmentFunction=!0,N.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),N.push(C.segmentPrefix),Ee=Ee.toString(16),N.push(Ee),N.push('","'),N.push(C.placeholderPrefix),N.push(Ee),N.push('")<\/script>')}function un(C,N){try{var V=C.completedRootSegment;if(V!==null&&C.pendingRootTasks===0){Si(C,N,V),C.completedRootSegment=null;var ee=C.responseState.bootstrapChunks;for(V=0;V<ee.length-1;V++)N.push(ee[V]);V<ee.length&&N.push(ee[V])}var Ee=C.clientRenderedBoundaries,Se;for(Se=0;Se<Ee.length;Se++){var He=Ee[Se];ee=N;var st=C.responseState,Pt=He.id,zt=He.errorDigest,Ht=He.errorMessage,xr=He.errorComponentStack;if(ee.push(st.startInlineScript),st.sentClientRenderFunction?ee.push('$RX("'):(st.sentClientRenderFunction=!0,ee.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),Pt===null)throw Error(e(395));if(ee.push(Pt),ee.push('"'),zt||Ht||xr){ee.push(",");var Zr=ce(zt||"");ee.push(Zr)}if(Ht||xr){ee.push(",");var vn=ce(Ht||"");ee.push(vn)}if(xr){ee.push(",");var yn=ce(xr);ee.push(yn)}if(!ee.push(")<\/script>")){C.destination=null,Se++,Ee.splice(0,Se);return}}Ee.splice(0,Se);var li=C.completedBoundaries;for(Se=0;Se<li.length;Se++)if(!kn(C,N,li[Se])){C.destination=null,Se++,li.splice(0,Se);return}li.splice(0,Se);var Bn=C.partialBoundaries;for(Se=0;Se<Bn.length;Se++){var wi=Bn[Se];e:{Ee=C,He=N;var Xr=wi.completedSegments;for(st=0;st<Xr.length;st++)if(!An(Ee,He,wi,Xr[st])){st++,Xr.splice(0,st);var pi=!1;break e}Xr.splice(0,st),pi=!0}if(!pi){C.destination=null,Se++,Bn.splice(0,Se);return}}Bn.splice(0,Se);var Hn=C.completedBoundaries;for(Se=0;Se<Hn.length;Se++)if(!kn(C,N,Hn[Se])){C.destination=null,Se++,Hn.splice(0,Se);return}Hn.splice(0,Se)}finally{C.allPendingTasks===0&&C.pingedTasks.length===0&&C.clientRenderedBoundaries.length===0&&C.completedBoundaries.length===0&&N.push(null)}}function Qn(C,N){try{var V=C.abortableTasks;V.forEach(function(ee){return Jn(ee,C,N)}),V.clear(),C.destination!==null&&un(C,C.destination)}catch(ee){fr(C,ee),Ur(C,ee)}}function sn(){}function pn(C,N,V,ee){var Ee=!1,Se=null,He="",st={push:function(zt){return zt!==null&&(He+=zt),!0},destroy:function(zt){Ee=!0,Se=zt}},Pt=!1;if(C=Ut(C,ke(V,N?N.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,sn,void 0,function(){Pt=!0}),wn(C),Qn(C,ee),C.status===1)C.status=2,st.destroy(C.fatalError);else if(C.status!==2&&C.destination===null){C.destination=st;try{un(C,st)}catch(zt){fr(C,zt),Ur(C,zt)}}if(Ee)throw Se;if(!Pt)throw Error(e(426));return He}return Uc.renderToNodeStream=function(){throw Error(e(207))},Uc.renderToStaticMarkup=function(C,N){return pn(C,N,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},Uc.renderToStaticNodeStream=function(){throw Error(e(208))},Uc.renderToString=function(C,N){return pn(C,N,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},Uc.version="18.2.0",Uc}var wd={};/**
|
60
|
+
*/var Vv;function q4(){if(Vv)return Uc;Vv=1;var r=A;function e(w){for(var N="https://reactjs.org/docs/error-decoder.html?invariant="+w,V=1;V<arguments.length;V++)N+="&args[]="+encodeURIComponent(arguments[V]);return"Minified React error #"+w+"; visit "+N+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var t=Object.prototype.hasOwnProperty,n=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,i={},l={};function u(w){return t.call(l,w)?!0:t.call(i,w)?!1:n.test(w)?l[w]=!0:(i[w]=!0,!1)}function f(w,N,V,ee,Ee,Se,He){this.acceptsBooleans=N===2||N===3||N===4,this.attributeName=ee,this.attributeNamespace=Ee,this.mustUseProperty=V,this.propertyName=w,this.type=N,this.sanitizeURL=Se,this.removeEmptyString=He}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(w){g[w]=new f(w,0,!1,w,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(w){var N=w[0];g[N]=new f(N,1,!1,w[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(w){g[w]=new f(w,2,!1,w.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(w){g[w]=new f(w,2,!1,w,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(w){g[w]=new f(w,3,!1,w.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(w){g[w]=new f(w,3,!0,w,null,!1,!1)}),["capture","download"].forEach(function(w){g[w]=new f(w,4,!1,w,null,!1,!1)}),["cols","rows","size","span"].forEach(function(w){g[w]=new f(w,6,!1,w,null,!1,!1)}),["rowSpan","start"].forEach(function(w){g[w]=new f(w,5,!1,w.toLowerCase(),null,!1,!1)});var m=/[\-:]([a-z])/g;function R(w){return w[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(w){var N=w.replace(m,R);g[N]=new f(N,1,!1,w,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(w){var N=w.replace(m,R);g[N]=new f(N,1,!1,w,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(w){var N=w.replace(m,R);g[N]=new f(N,1,!1,w,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(w){g[w]=new f(w,1,!1,w.toLowerCase(),null,!1,!1)}),g.xlinkHref=new f("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(w){g[w]=new f(w,1,!1,w.toLowerCase(),null,!0,!0)});var C={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},b=["Webkit","ms","Moz","O"];Object.keys(C).forEach(function(w){b.forEach(function(N){N=N+w.charAt(0).toUpperCase()+w.substring(1),C[N]=C[w]})});var S=/["'&<>]/;function _(w){if(typeof w=="boolean"||typeof w=="number")return""+w;w=""+w;var N=S.exec(w);if(N){var V="",ee,Ee=0;for(ee=N.index;ee<w.length;ee++){switch(w.charCodeAt(ee)){case 34:N=""";break;case 38:N="&";break;case 39:N="'";break;case 60:N="<";break;case 62:N=">";break;default:continue}Ee!==ee&&(V+=w.substring(Ee,ee)),Ee=ee+1,V+=N}w=Ee!==ee?V+w.substring(Ee,ee):V}return w}var D=/([A-Z])/g,E=/^ms-/,x=Array.isArray;function L(w,N){return{insertionMode:w,selectedValue:N}}function O(w,N,V){switch(N){case"select":return L(1,V.value!=null?V.value:V.defaultValue);case"svg":return L(2,null);case"math":return L(3,null);case"foreignObject":return L(1,null);case"table":return L(4,null);case"thead":case"tbody":case"tfoot":return L(5,null);case"colgroup":return L(7,null);case"tr":return L(6,null)}return 4<=w.insertionMode||w.insertionMode===0?L(1,null):w}var H=new Map;function q(w,N,V){if(typeof V!="object")throw Error(e(62));N=!0;for(var ee in V)if(t.call(V,ee)){var Ee=V[ee];if(Ee!=null&&typeof Ee!="boolean"&&Ee!==""){if(ee.indexOf("--")===0){var Se=_(ee);Ee=_((""+Ee).trim())}else{Se=ee;var He=H.get(Se);He!==void 0||(He=_(Se.replace(D,"-$1").toLowerCase().replace(E,"-ms-")),H.set(Se,He)),Se=He,Ee=typeof Ee=="number"?Ee===0||t.call(C,ee)?""+Ee:Ee+"px":_((""+Ee).trim())}N?(N=!1,w.push(' style="',Se,":",Ee)):w.push(";",Se,":",Ee)}}N||w.push('"')}function z(w,N,V,ee){switch(V){case"style":q(w,N,ee);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<V.length)||V[0]!=="o"&&V[0]!=="O"||V[1]!=="n"&&V[1]!=="N"){if(N=g.hasOwnProperty(V)?g[V]:null,N!==null){switch(typeof ee){case"function":case"symbol":return;case"boolean":if(!N.acceptsBooleans)return}switch(V=N.attributeName,N.type){case 3:ee&&w.push(" ",V,'=""');break;case 4:ee===!0?w.push(" ",V,'=""'):ee!==!1&&w.push(" ",V,'="',_(ee),'"');break;case 5:isNaN(ee)||w.push(" ",V,'="',_(ee),'"');break;case 6:!isNaN(ee)&&1<=ee&&w.push(" ",V,'="',_(ee),'"');break;default:N.sanitizeURL&&(ee=""+ee),w.push(" ",V,'="',_(ee),'"')}}else if(u(V)){switch(typeof ee){case"function":case"symbol":return;case"boolean":if(N=V.toLowerCase().slice(0,5),N!=="data-"&&N!=="aria-")return}w.push(" ",V,'="',_(ee),'"')}}}function K(w,N,V){if(N!=null){if(V!=null)throw Error(e(60));if(typeof N!="object"||!("__html"in N))throw Error(e(61));N=N.__html,N!=null&&w.push(""+N)}}function ue(w){var N="";return r.Children.forEach(w,function(V){V!=null&&(N+=V)}),N}function X(w,N,V,ee){w.push(re(V));var Ee=V=null,Se;for(Se in N)if(t.call(N,Se)){var He=N[Se];if(He!=null)switch(Se){case"children":V=He;break;case"dangerouslySetInnerHTML":Ee=He;break;default:z(w,ee,Se,He)}}return w.push(">"),K(w,Ee,V),typeof V=="string"?(w.push(_(V)),null):V}var de=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,j=new Map;function re(w){var N=j.get(w);if(N===void 0){if(!de.test(w))throw Error(e(65,w));N="<"+w,j.set(w,N)}return N}function J(w,N,V,ee,Ee){switch(N){case"select":w.push(re("select"));var Se=null,He=null;for(Ht in V)if(t.call(V,Ht)){var st=V[Ht];if(st!=null)switch(Ht){case"children":Se=st;break;case"dangerouslySetInnerHTML":He=st;break;case"defaultValue":case"value":break;default:z(w,ee,Ht,st)}}return w.push(">"),K(w,He,Se),Se;case"option":He=Ee.selectedValue,w.push(re("option"));var Pt=st=null,zt=null,Ht=null;for(Se in V)if(t.call(V,Se)){var xr=V[Se];if(xr!=null)switch(Se){case"children":st=xr;break;case"selected":zt=xr;break;case"dangerouslySetInnerHTML":Ht=xr;break;case"value":Pt=xr;default:z(w,ee,Se,xr)}}if(He!=null)if(V=Pt!==null?""+Pt:ue(st),x(He)){for(ee=0;ee<He.length;ee++)if(""+He[ee]===V){w.push(' selected=""');break}}else""+He===V&&w.push(' selected=""');else zt&&w.push(' selected=""');return w.push(">"),K(w,Ht,st),st;case"textarea":w.push(re("textarea")),Ht=He=Se=null;for(st in V)if(t.call(V,st)&&(Pt=V[st],Pt!=null))switch(st){case"children":Ht=Pt;break;case"value":Se=Pt;break;case"defaultValue":He=Pt;break;case"dangerouslySetInnerHTML":throw Error(e(91));default:z(w,ee,st,Pt)}if(Se===null&&He!==null&&(Se=He),w.push(">"),Ht!=null){if(Se!=null)throw Error(e(92));if(x(Ht)&&1<Ht.length)throw Error(e(93));Se=""+Ht}return typeof Se=="string"&&Se[0]===`
|
61
|
+
`&&w.push(`
|
62
|
+
`),Se!==null&&w.push(_(""+Se)),null;case"input":w.push(re("input")),Pt=Ht=st=Se=null;for(He in V)if(t.call(V,He)&&(zt=V[He],zt!=null))switch(He){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,"input"));case"defaultChecked":Pt=zt;break;case"defaultValue":st=zt;break;case"checked":Ht=zt;break;case"value":Se=zt;break;default:z(w,ee,He,zt)}return Ht!==null?z(w,ee,"checked",Ht):Pt!==null&&z(w,ee,"checked",Pt),Se!==null?z(w,ee,"value",Se):st!==null&&z(w,ee,"value",st),w.push("/>"),null;case"menuitem":w.push(re("menuitem"));for(var Zr in V)if(t.call(V,Zr)&&(Se=V[Zr],Se!=null))switch(Zr){case"children":case"dangerouslySetInnerHTML":throw Error(e(400));default:z(w,ee,Zr,Se)}return w.push(">"),null;case"title":w.push(re("title")),Se=null;for(xr in V)if(t.call(V,xr)&&(He=V[xr],He!=null))switch(xr){case"children":Se=He;break;case"dangerouslySetInnerHTML":throw Error(e(434));default:z(w,ee,xr,He)}return w.push(">"),Se;case"listing":case"pre":w.push(re(N)),He=Se=null;for(Pt in V)if(t.call(V,Pt)&&(st=V[Pt],st!=null))switch(Pt){case"children":Se=st;break;case"dangerouslySetInnerHTML":He=st;break;default:z(w,ee,Pt,st)}if(w.push(">"),He!=null){if(Se!=null)throw Error(e(60));if(typeof He!="object"||!("__html"in He))throw Error(e(61));V=He.__html,V!=null&&(typeof V=="string"&&0<V.length&&V[0]===`
|
63
|
+
`?w.push(`
|
64
|
+
`,V):w.push(""+V))}return typeof Se=="string"&&Se[0]===`
|
65
|
+
`&&w.push(`
|
66
|
+
`),Se;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":w.push(re(N));for(var vn in V)if(t.call(V,vn)&&(Se=V[vn],Se!=null))switch(vn){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,N));default:z(w,ee,vn,Se)}return w.push("/>"),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return X(w,V,N,ee);case"html":return Ee.insertionMode===0&&w.push("<!DOCTYPE html>"),X(w,V,N,ee);default:if(N.indexOf("-")===-1&&typeof V.is!="string")return X(w,V,N,ee);w.push(re(N)),He=Se=null;for(zt in V)if(t.call(V,zt)&&(st=V[zt],st!=null))switch(zt){case"children":Se=st;break;case"dangerouslySetInnerHTML":He=st;break;case"style":q(w,ee,st);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:u(zt)&&typeof st!="function"&&typeof st!="symbol"&&w.push(" ",zt,'="',_(st),'"')}return w.push(">"),K(w,He,Se),Se}}function Q(w,N,V){if(w.push('<!--$?--><template id="'),V===null)throw Error(e(395));return w.push(V),w.push('"></template>')}function he(w,N,V,ee){switch(V.insertionMode){case 0:case 1:return w.push('<div hidden id="'),w.push(N.segmentPrefix),N=ee.toString(16),w.push(N),w.push('">');case 2:return w.push('<svg aria-hidden="true" style="display:none" id="'),w.push(N.segmentPrefix),N=ee.toString(16),w.push(N),w.push('">');case 3:return w.push('<math aria-hidden="true" style="display:none" id="'),w.push(N.segmentPrefix),N=ee.toString(16),w.push(N),w.push('">');case 4:return w.push('<table hidden id="'),w.push(N.segmentPrefix),N=ee.toString(16),w.push(N),w.push('">');case 5:return w.push('<table hidden><tbody id="'),w.push(N.segmentPrefix),N=ee.toString(16),w.push(N),w.push('">');case 6:return w.push('<table hidden><tr id="'),w.push(N.segmentPrefix),N=ee.toString(16),w.push(N),w.push('">');case 7:return w.push('<table hidden><colgroup id="'),w.push(N.segmentPrefix),N=ee.toString(16),w.push(N),w.push('">');default:throw Error(e(397))}}function me(w,N){switch(N.insertionMode){case 0:case 1:return w.push("</div>");case 2:return w.push("</svg>");case 3:return w.push("</math>");case 4:return w.push("</table>");case 5:return w.push("</tbody></table>");case 6:return w.push("</tr></table>");case 7:return w.push("</colgroup></table>");default:throw Error(e(397))}}var be=/[<\u2028\u2029]/g;function ce(w){return JSON.stringify(w).replace(be,function(N){switch(N){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function ke(w,N){return N=N===void 0?"":N,{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:N+"P:",segmentPrefix:N+"S:",boundaryPrefix:N+"B:",idPrefix:N,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:w}}function le(w,N,V,ee){return V.generateStaticMarkup?(w.push(_(N)),!1):(N===""?w=ee:(ee&&w.push("<!-- -->"),w.push(_(N)),w=!0),w)}var oe=Object.assign,ve=Symbol.for("react.element"),Oe=Symbol.for("react.portal"),et=Symbol.for("react.fragment"),we=Symbol.for("react.strict_mode"),Pe=Symbol.for("react.profiler"),je=Symbol.for("react.provider"),ze=Symbol.for("react.context"),We=Symbol.for("react.forward_ref"),De=Symbol.for("react.suspense"),Ae=Symbol.for("react.suspense_list"),_e=Symbol.for("react.memo"),Ge=Symbol.for("react.lazy"),lt=Symbol.for("react.scope"),$e=Symbol.for("react.debug_trace_mode"),ht=Symbol.for("react.legacy_hidden"),Le=Symbol.for("react.default_value"),Xe=Symbol.iterator;function it(w){if(w==null)return null;if(typeof w=="function")return w.displayName||w.name||null;if(typeof w=="string")return w;switch(w){case et:return"Fragment";case Oe:return"Portal";case Pe:return"Profiler";case we:return"StrictMode";case De:return"Suspense";case Ae:return"SuspenseList"}if(typeof w=="object")switch(w.$$typeof){case ze:return(w.displayName||"Context")+".Consumer";case je:return(w._context.displayName||"Context")+".Provider";case We:var N=w.render;return w=w.displayName,w||(w=N.displayName||N.name||"",w=w!==""?"ForwardRef("+w+")":"ForwardRef"),w;case _e:return N=w.displayName||null,N!==null?N:it(w.type)||"Memo";case Ge:N=w._payload,w=w._init;try{return it(w(N))}catch{}}return null}var Ct={};function _t(w,N){if(w=w.contextTypes,!w)return Ct;var V={},ee;for(ee in w)V[ee]=N[ee];return V}var wt=null;function bt(w,N){if(w!==N){w.context._currentValue2=w.parentValue,w=w.parent;var V=N.parent;if(w===null){if(V!==null)throw Error(e(401))}else{if(V===null)throw Error(e(401));bt(w,V)}N.context._currentValue2=N.value}}function St(w){w.context._currentValue2=w.parentValue,w=w.parent,w!==null&&St(w)}function Me(w){var N=w.parent;N!==null&&Me(N),w.context._currentValue2=w.value}function pt(w,N){if(w.context._currentValue2=w.parentValue,w=w.parent,w===null)throw Error(e(402));w.depth===N.depth?bt(w,N):pt(w,N)}function Et(w,N){var V=N.parent;if(V===null)throw Error(e(402));w.depth===V.depth?bt(w,V):Et(w,V),N.context._currentValue2=N.value}function mt(w){var N=wt;N!==w&&(N===null?Me(w):w===null?St(N):N.depth===w.depth?bt(N,w):N.depth>w.depth?pt(N,w):Et(N,w),wt=w)}var Dt={isMounted:function(){return!1},enqueueSetState:function(w,N){w=w._reactInternals,w.queue!==null&&w.queue.push(N)},enqueueReplaceState:function(w,N){w=w._reactInternals,w.replace=!0,w.queue=[N]},enqueueForceUpdate:function(){}};function Ze(w,N,V,ee){var Ee=w.state!==void 0?w.state:null;w.updater=Dt,w.props=V,w.state=Ee;var Se={queue:[],replace:!1};w._reactInternals=Se;var He=N.contextType;if(w.context=typeof He=="object"&&He!==null?He._currentValue2:ee,He=N.getDerivedStateFromProps,typeof He=="function"&&(He=He(V,Ee),Ee=He==null?Ee:oe({},Ee,He),w.state=Ee),typeof N.getDerivedStateFromProps!="function"&&typeof w.getSnapshotBeforeUpdate!="function"&&(typeof w.UNSAFE_componentWillMount=="function"||typeof w.componentWillMount=="function"))if(N=w.state,typeof w.componentWillMount=="function"&&w.componentWillMount(),typeof w.UNSAFE_componentWillMount=="function"&&w.UNSAFE_componentWillMount(),N!==w.state&&Dt.enqueueReplaceState(w,w.state,null),Se.queue!==null&&0<Se.queue.length)if(N=Se.queue,He=Se.replace,Se.queue=null,Se.replace=!1,He&&N.length===1)w.state=N[0];else{for(Se=He?N[0]:w.state,Ee=!0,He=He?1:0;He<N.length;He++){var st=N[He];st=typeof st=="function"?st.call(w,Se,V,ee):st,st!=null&&(Ee?(Ee=!1,Se=oe({},Se,st)):oe(Se,st))}w.state=Se}else Se.queue=null}var At={id:1,overflow:""};function jt(w,N,V){var ee=w.id;w=w.overflow;var Ee=32-mr(ee)-1;ee&=~(1<<Ee),V+=1;var Se=32-mr(N)+Ee;if(30<Se){var He=Ee-Ee%5;return Se=(ee&(1<<He)-1).toString(32),ee>>=He,Ee-=He,{id:1<<32-mr(N)+Ee|V<<Ee|ee,overflow:Se+w}}return{id:1<<Se|V<<Ee|ee,overflow:w}}var mr=Math.clz32?Math.clz32:ge,kr=Math.log,Cr=Math.LN2;function ge(w){return w>>>=0,w===0?32:31-(kr(w)/Cr|0)|0}function ne(w,N){return w===N&&(w!==0||1/w===1/N)||w!==w&&N!==N}var Je=typeof Object.is=="function"?Object.is:ne,ct=null,tt=null,Re=null,xt=null,Rt=!1,vt=!1,Mt=0,Qt=null,rr=0;function Bt(){if(ct===null)throw Error(e(321));return ct}function qt(){if(0<rr)throw Error(e(312));return{memoizedState:null,queue:null,next:null}}function sr(){return xt===null?Re===null?(Rt=!1,Re=xt=qt()):(Rt=!0,xt=Re):xt.next===null?(Rt=!1,xt=xt.next=qt()):(Rt=!0,xt=xt.next),xt}function Qe(){tt=ct=null,vt=!1,Re=null,rr=0,xt=Qt=null}function Tt(w,N){return typeof N=="function"?N(w):N}function yt(w,N,V){if(ct=Bt(),xt=sr(),Rt){var ee=xt.queue;if(N=ee.dispatch,Qt!==null&&(V=Qt.get(ee),V!==void 0)){Qt.delete(ee),ee=xt.memoizedState;do ee=w(ee,V.action),V=V.next;while(V!==null);return xt.memoizedState=ee,[ee,N]}return[xt.memoizedState,N]}return w=w===Tt?typeof N=="function"?N():N:V!==void 0?V(N):N,xt.memoizedState=w,w=xt.queue={last:null,dispatch:null},w=w.dispatch=vr.bind(null,ct,w),[xt.memoizedState,w]}function Lt(w,N){if(ct=Bt(),xt=sr(),N=N===void 0?null:N,xt!==null){var V=xt.memoizedState;if(V!==null&&N!==null){var ee=V[1];e:if(ee===null)ee=!1;else{for(var Ee=0;Ee<ee.length&&Ee<N.length;Ee++)if(!Je(N[Ee],ee[Ee])){ee=!1;break e}ee=!0}if(ee)return V[0]}}return w=w(),xt.memoizedState=[w,N],w}function vr(w,N,V){if(25<=rr)throw Error(e(301));if(w===ct)if(vt=!0,w={action:V,next:null},Qt===null&&(Qt=new Map),V=Qt.get(N),V===void 0)Qt.set(N,w);else{for(N=V;N.next!==null;)N=N.next;N.next=w}}function Y(){throw Error(e(394))}function pe(){}var Be={readContext:function(w){return w._currentValue2},useContext:function(w){return Bt(),w._currentValue2},useMemo:Lt,useReducer:yt,useRef:function(w){ct=Bt(),xt=sr();var N=xt.memoizedState;return N===null?(w={current:w},xt.memoizedState=w):N},useState:function(w){return yt(Tt,w)},useInsertionEffect:pe,useLayoutEffect:function(){},useCallback:function(w,N){return Lt(function(){return w},N)},useImperativeHandle:pe,useEffect:pe,useDebugValue:pe,useDeferredValue:function(w){return Bt(),w},useTransition:function(){return Bt(),[!1,Y]},useId:function(){var w=tt.treeContext,N=w.overflow;w=w.id,w=(w&~(1<<32-mr(w)-1)).toString(32)+N;var V=ot;if(V===null)throw Error(e(404));return N=Mt++,w=":"+V.idPrefix+"R"+w,0<N&&(w+="H"+N.toString(32)),w+":"},useMutableSource:function(w,N){return Bt(),N(w._source)},useSyncExternalStore:function(w,N,V){if(V===void 0)throw Error(e(407));return V()}},ot=null,Ot=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function $t(w){return console.error(w),null}function kt(){}function Ut(w,N,V,ee,Ee,Se,He,st,Pt){var zt=[],Ht=new Set;return N={destination:null,responseState:N,progressiveChunkSize:ee===void 0?12800:ee,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:Ht,pingedTasks:zt,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:Ee===void 0?$t:Ee,onAllReady:kt,onShellReady:He===void 0?kt:He,onShellError:kt,onFatalError:kt},V=ir(N,0,null,V,!1,!1),V.parentFlushed=!0,w=nr(N,w,null,V,Ht,Ct,null,At),zt.push(w),N}function nr(w,N,V,ee,Ee,Se,He,st){w.allPendingTasks++,V===null?w.pendingRootTasks++:V.pendingTasks++;var Pt={node:N,ping:function(){var zt=w.pingedTasks;zt.push(Pt),zt.length===1&&wn(w)},blockedBoundary:V,blockedSegment:ee,abortSet:Ee,legacyContext:Se,context:He,treeContext:st};return Ee.add(Pt),Pt}function ir(w,N,V,ee,Ee,Se){return{status:0,id:-1,index:N,parentFlushed:!1,chunks:[],children:[],formatContext:ee,boundary:V,lastPushedText:Ee,textEmbedded:Se}}function fr(w,N){if(w=w.onError(N),w!=null&&typeof w!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof w+'" instead');return w}function Ur(w,N){var V=w.onShellError;V(N),V=w.onFatalError,V(N),w.destination!==null?(w.status=2,w.destination.destroy(N)):(w.status=1,w.fatalError=N)}function yr(w,N,V,ee,Ee){for(ct={},tt=N,Mt=0,w=V(ee,Ee);vt;)vt=!1,Mt=0,rr+=1,xt=null,w=V(ee,Ee);return Qe(),w}function Kn(w,N,V,ee){var Ee=V.render(),Se=ee.childContextTypes;if(Se!=null){var He=N.legacyContext;if(typeof V.getChildContext!="function")ee=He;else{V=V.getChildContext();for(var st in V)if(!(st in Se))throw Error(e(108,it(ee)||"Unknown",st));ee=oe({},He,V)}N.legacyContext=ee,Yr(w,N,Ee),N.legacyContext=He}else Yr(w,N,Ee)}function Cn(w,N){if(w&&w.defaultProps){N=oe({},N),w=w.defaultProps;for(var V in w)N[V]===void 0&&(N[V]=w[V]);return N}return N}function Dn(w,N,V,ee,Ee){if(typeof V=="function")if(V.prototype&&V.prototype.isReactComponent){Ee=_t(V,N.legacyContext);var Se=V.contextType;Se=new V(ee,typeof Se=="object"&&Se!==null?Se._currentValue2:Ee),Ze(Se,V,ee,Ee),Kn(w,N,Se,V)}else{Se=_t(V,N.legacyContext),Ee=yr(w,N,V,ee,Se);var He=Mt!==0;if(typeof Ee=="object"&&Ee!==null&&typeof Ee.render=="function"&&Ee.$$typeof===void 0)Ze(Ee,V,ee,Se),Kn(w,N,Ee,V);else if(He){ee=N.treeContext,N.treeContext=jt(ee,1,0);try{Yr(w,N,Ee)}finally{N.treeContext=ee}}else Yr(w,N,Ee)}else if(typeof V=="string"){switch(Ee=N.blockedSegment,Se=J(Ee.chunks,V,ee,w.responseState,Ee.formatContext),Ee.lastPushedText=!1,He=Ee.formatContext,Ee.formatContext=O(He,V,ee),En(w,N,Se),Ee.formatContext=He,V){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:Ee.chunks.push("</",V,">")}Ee.lastPushedText=!1}else{switch(V){case ht:case $e:case we:case Pe:case et:Yr(w,N,ee.children);return;case Ae:Yr(w,N,ee.children);return;case lt:throw Error(e(343));case De:e:{V=N.blockedBoundary,Ee=N.blockedSegment,Se=ee.fallback,ee=ee.children,He=new Set;var st={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:He,errorDigest:null},Pt=ir(w,Ee.chunks.length,st,Ee.formatContext,!1,!1);Ee.children.push(Pt),Ee.lastPushedText=!1;var zt=ir(w,0,null,Ee.formatContext,!1,!1);zt.parentFlushed=!0,N.blockedBoundary=st,N.blockedSegment=zt;try{if(En(w,N,ee),w.responseState.generateStaticMarkup||zt.lastPushedText&&zt.textEmbedded&&zt.chunks.push("<!-- -->"),zt.status=1,on(st,zt),st.pendingTasks===0)break e}catch(Ht){zt.status=4,st.forceClientRender=!0,st.errorDigest=fr(w,Ht)}finally{N.blockedBoundary=V,N.blockedSegment=Ee}N=nr(w,Se,V,Pt,He,N.legacyContext,N.context,N.treeContext),w.pingedTasks.push(N)}return}if(typeof V=="object"&&V!==null)switch(V.$$typeof){case We:if(ee=yr(w,N,V.render,ee,Ee),Mt!==0){V=N.treeContext,N.treeContext=jt(V,1,0);try{Yr(w,N,ee)}finally{N.treeContext=V}}else Yr(w,N,ee);return;case _e:V=V.type,ee=Cn(V,ee),Dn(w,N,V,ee,Ee);return;case je:if(Ee=ee.children,V=V._context,ee=ee.value,Se=V._currentValue2,V._currentValue2=ee,He=wt,wt=ee={parent:He,depth:He===null?0:He.depth+1,context:V,parentValue:Se,value:ee},N.context=ee,Yr(w,N,Ee),w=wt,w===null)throw Error(e(403));ee=w.parentValue,w.context._currentValue2=ee===Le?w.context._defaultValue:ee,w=wt=w.parent,N.context=w;return;case ze:ee=ee.children,ee=ee(V._currentValue2),Yr(w,N,ee);return;case Ge:Ee=V._init,V=Ee(V._payload),ee=Cn(V,ee),Dn(w,N,V,ee,void 0);return}throw Error(e(130,V==null?V:typeof V,""))}}function Yr(w,N,V){if(N.node=V,typeof V=="object"&&V!==null){switch(V.$$typeof){case ve:Dn(w,N,V.type,V.props,V.ref);return;case Oe:throw Error(e(257));case Ge:var ee=V._init;V=ee(V._payload),Yr(w,N,V);return}if(x(V)){Yn(w,N,V);return}if(V===null||typeof V!="object"?ee=null:(ee=Xe&&V[Xe]||V["@@iterator"],ee=typeof ee=="function"?ee:null),ee&&(ee=ee.call(V))){if(V=ee.next(),!V.done){var Ee=[];do Ee.push(V.value),V=ee.next();while(!V.done);Yn(w,N,Ee)}return}throw w=Object.prototype.toString.call(V),Error(e(31,w==="[object Object]"?"object with keys {"+Object.keys(V).join(", ")+"}":w))}typeof V=="string"?(ee=N.blockedSegment,ee.lastPushedText=le(N.blockedSegment.chunks,V,w.responseState,ee.lastPushedText)):typeof V=="number"&&(ee=N.blockedSegment,ee.lastPushedText=le(N.blockedSegment.chunks,""+V,w.responseState,ee.lastPushedText))}function Yn(w,N,V){for(var ee=V.length,Ee=0;Ee<ee;Ee++){var Se=N.treeContext;N.treeContext=jt(Se,ee,Ee);try{En(w,N,V[Ee])}finally{N.treeContext=Se}}}function En(w,N,V){var ee=N.blockedSegment.formatContext,Ee=N.legacyContext,Se=N.context;try{return Yr(w,N,V)}catch(Pt){if(Qe(),typeof Pt=="object"&&Pt!==null&&typeof Pt.then=="function"){V=Pt;var He=N.blockedSegment,st=ir(w,He.chunks.length,null,He.formatContext,He.lastPushedText,!0);He.children.push(st),He.lastPushedText=!1,w=nr(w,N.node,N.blockedBoundary,st,N.abortSet,N.legacyContext,N.context,N.treeContext).ping,V.then(w,w),N.blockedSegment.formatContext=ee,N.legacyContext=Ee,N.context=Se,mt(Se)}else throw N.blockedSegment.formatContext=ee,N.legacyContext=Ee,N.context=Se,mt(Se),Pt}}function Xn(w){var N=w.blockedBoundary;w=w.blockedSegment,w.status=3,On(this,N,w)}function Jn(w,N,V){var ee=w.blockedBoundary;w.blockedSegment.status=3,ee===null?(N.allPendingTasks--,N.status!==2&&(N.status=2,N.destination!==null&&N.destination.push(null))):(ee.pendingTasks--,ee.forceClientRender||(ee.forceClientRender=!0,w=V===void 0?Error(e(432)):V,ee.errorDigest=N.onError(w),ee.parentFlushed&&N.clientRenderedBoundaries.push(ee)),ee.fallbackAbortableTasks.forEach(function(Ee){return Jn(Ee,N,V)}),ee.fallbackAbortableTasks.clear(),N.allPendingTasks--,N.allPendingTasks===0&&(ee=N.onAllReady,ee()))}function on(w,N){if(N.chunks.length===0&&N.children.length===1&&N.children[0].boundary===null){var V=N.children[0];V.id=N.id,V.parentFlushed=!0,V.status===1&&on(w,V)}else w.completedSegments.push(N)}function On(w,N,V){if(N===null){if(V.parentFlushed){if(w.completedRootSegment!==null)throw Error(e(389));w.completedRootSegment=V}w.pendingRootTasks--,w.pendingRootTasks===0&&(w.onShellError=kt,N=w.onShellReady,N())}else N.pendingTasks--,N.forceClientRender||(N.pendingTasks===0?(V.parentFlushed&&V.status===1&&on(N,V),N.parentFlushed&&w.completedBoundaries.push(N),N.fallbackAbortableTasks.forEach(Xn,w),N.fallbackAbortableTasks.clear()):V.parentFlushed&&V.status===1&&(on(N,V),N.completedSegments.length===1&&N.parentFlushed&&w.partialBoundaries.push(N)));w.allPendingTasks--,w.allPendingTasks===0&&(w=w.onAllReady,w())}function wn(w){if(w.status!==2){var N=wt,V=Ot.current;Ot.current=Be;var ee=ot;ot=w.responseState;try{var Ee=w.pingedTasks,Se;for(Se=0;Se<Ee.length;Se++){var He=Ee[Se],st=w,Pt=He.blockedSegment;if(Pt.status===0){mt(He.context);try{Yr(st,He,He.node),st.responseState.generateStaticMarkup||Pt.lastPushedText&&Pt.textEmbedded&&Pt.chunks.push("<!-- -->"),He.abortSet.delete(He),Pt.status=1,On(st,He.blockedBoundary,Pt)}catch(yn){if(Qe(),typeof yn=="object"&&yn!==null&&typeof yn.then=="function"){var zt=He.ping;yn.then(zt,zt)}else{He.abortSet.delete(He),Pt.status=4;var Ht=He.blockedBoundary,xr=yn,Zr=fr(st,xr);if(Ht===null?Ur(st,xr):(Ht.pendingTasks--,Ht.forceClientRender||(Ht.forceClientRender=!0,Ht.errorDigest=Zr,Ht.parentFlushed&&st.clientRenderedBoundaries.push(Ht))),st.allPendingTasks--,st.allPendingTasks===0){var vn=st.onAllReady;vn()}}}finally{}}}Ee.splice(0,Se),w.destination!==null&&un(w,w.destination)}catch(yn){fr(w,yn),Ur(w,yn)}finally{ot=ee,Ot.current=V,V===Be&&mt(N)}}}function hi(w,N,V){switch(V.parentFlushed=!0,V.status){case 0:var ee=V.id=w.nextSegmentId++;return V.lastPushedText=!1,V.textEmbedded=!1,w=w.responseState,N.push('<template id="'),N.push(w.placeholderPrefix),w=ee.toString(16),N.push(w),N.push('"></template>');case 1:V.status=2;var Ee=!0;ee=V.chunks;var Se=0;V=V.children;for(var He=0;He<V.length;He++){for(Ee=V[He];Se<Ee.index;Se++)N.push(ee[Se]);Ee=Si(w,N,Ee)}for(;Se<ee.length-1;Se++)N.push(ee[Se]);return Se<ee.length&&(Ee=N.push(ee[Se])),Ee;default:throw Error(e(390))}}function Si(w,N,V){var ee=V.boundary;if(ee===null)return hi(w,N,V);if(ee.parentFlushed=!0,ee.forceClientRender)return w.responseState.generateStaticMarkup||(ee=ee.errorDigest,N.push("<!--$!-->"),N.push("<template"),ee&&(N.push(' data-dgst="'),ee=_(ee),N.push(ee),N.push('"')),N.push("></template>")),hi(w,N,V),w=w.responseState.generateStaticMarkup?!0:N.push("<!--/$-->"),w;if(0<ee.pendingTasks){ee.rootSegmentID=w.nextSegmentId++,0<ee.completedSegments.length&&w.partialBoundaries.push(ee);var Ee=w.responseState,Se=Ee.nextSuspenseID++;return Ee=Ee.boundaryPrefix+Se.toString(16),ee=ee.id=Ee,Q(N,w.responseState,ee),hi(w,N,V),N.push("<!--/$-->")}if(ee.byteSize>w.progressiveChunkSize)return ee.rootSegmentID=w.nextSegmentId++,w.completedBoundaries.push(ee),Q(N,w.responseState,ee.id),hi(w,N,V),N.push("<!--/$-->");if(w.responseState.generateStaticMarkup||N.push("<!--$-->"),V=ee.completedSegments,V.length!==1)throw Error(e(391));return Si(w,N,V[0]),w=w.responseState.generateStaticMarkup?!0:N.push("<!--/$-->"),w}function Ci(w,N,V){return he(N,w.responseState,V.formatContext,V.id),Si(w,N,V),me(N,V.formatContext)}function kn(w,N,V){for(var ee=V.completedSegments,Ee=0;Ee<ee.length;Ee++)An(w,N,V,ee[Ee]);if(ee.length=0,w=w.responseState,ee=V.id,V=V.rootSegmentID,N.push(w.startInlineScript),w.sentCompleteBoundaryFunction?N.push('$RC("'):(w.sentCompleteBoundaryFunction=!0,N.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),ee===null)throw Error(e(395));return V=V.toString(16),N.push(ee),N.push('","'),N.push(w.segmentPrefix),N.push(V),N.push('")<\/script>')}function An(w,N,V,ee){if(ee.status===2)return!0;var Ee=ee.id;if(Ee===-1){if((ee.id=V.rootSegmentID)===-1)throw Error(e(392));return Ci(w,N,ee)}return Ci(w,N,ee),w=w.responseState,N.push(w.startInlineScript),w.sentCompleteSegmentFunction?N.push('$RS("'):(w.sentCompleteSegmentFunction=!0,N.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),N.push(w.segmentPrefix),Ee=Ee.toString(16),N.push(Ee),N.push('","'),N.push(w.placeholderPrefix),N.push(Ee),N.push('")<\/script>')}function un(w,N){try{var V=w.completedRootSegment;if(V!==null&&w.pendingRootTasks===0){Si(w,N,V),w.completedRootSegment=null;var ee=w.responseState.bootstrapChunks;for(V=0;V<ee.length-1;V++)N.push(ee[V]);V<ee.length&&N.push(ee[V])}var Ee=w.clientRenderedBoundaries,Se;for(Se=0;Se<Ee.length;Se++){var He=Ee[Se];ee=N;var st=w.responseState,Pt=He.id,zt=He.errorDigest,Ht=He.errorMessage,xr=He.errorComponentStack;if(ee.push(st.startInlineScript),st.sentClientRenderFunction?ee.push('$RX("'):(st.sentClientRenderFunction=!0,ee.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),Pt===null)throw Error(e(395));if(ee.push(Pt),ee.push('"'),zt||Ht||xr){ee.push(",");var Zr=ce(zt||"");ee.push(Zr)}if(Ht||xr){ee.push(",");var vn=ce(Ht||"");ee.push(vn)}if(xr){ee.push(",");var yn=ce(xr);ee.push(yn)}if(!ee.push(")<\/script>")){w.destination=null,Se++,Ee.splice(0,Se);return}}Ee.splice(0,Se);var li=w.completedBoundaries;for(Se=0;Se<li.length;Se++)if(!kn(w,N,li[Se])){w.destination=null,Se++,li.splice(0,Se);return}li.splice(0,Se);var Bn=w.partialBoundaries;for(Se=0;Se<Bn.length;Se++){var wi=Bn[Se];e:{Ee=w,He=N;var Xr=wi.completedSegments;for(st=0;st<Xr.length;st++)if(!An(Ee,He,wi,Xr[st])){st++,Xr.splice(0,st);var pi=!1;break e}Xr.splice(0,st),pi=!0}if(!pi){w.destination=null,Se++,Bn.splice(0,Se);return}}Bn.splice(0,Se);var Hn=w.completedBoundaries;for(Se=0;Se<Hn.length;Se++)if(!kn(w,N,Hn[Se])){w.destination=null,Se++,Hn.splice(0,Se);return}Hn.splice(0,Se)}finally{w.allPendingTasks===0&&w.pingedTasks.length===0&&w.clientRenderedBoundaries.length===0&&w.completedBoundaries.length===0&&N.push(null)}}function Qn(w,N){try{var V=w.abortableTasks;V.forEach(function(ee){return Jn(ee,w,N)}),V.clear(),w.destination!==null&&un(w,w.destination)}catch(ee){fr(w,ee),Ur(w,ee)}}function sn(){}function pn(w,N,V,ee){var Ee=!1,Se=null,He="",st={push:function(zt){return zt!==null&&(He+=zt),!0},destroy:function(zt){Ee=!0,Se=zt}},Pt=!1;if(w=Ut(w,ke(V,N?N.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,sn,void 0,function(){Pt=!0}),wn(w),Qn(w,ee),w.status===1)w.status=2,st.destroy(w.fatalError);else if(w.status!==2&&w.destination===null){w.destination=st;try{un(w,st)}catch(zt){fr(w,zt),Ur(w,zt)}}if(Ee)throw Se;if(!Pt)throw Error(e(426));return He}return Uc.renderToNodeStream=function(){throw Error(e(207))},Uc.renderToStaticMarkup=function(w,N){return pn(w,N,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},Uc.renderToStaticNodeStream=function(){throw Error(e(208))},Uc.renderToString=function(w,N){return pn(w,N,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},Uc.version="18.2.0",Uc}var wd={};/**
|
67
67
|
* @license React
|
68
68
|
* react-dom-server.browser.production.min.js
|
69
69
|
*
|
@@ -71,11 +71,11 @@ function print() { __p += __j.call(arguments, '') }
|
|
71
71
|
*
|
72
72
|
* This source code is licensed under the MIT license found in the
|
73
73
|
* LICENSE file in the root directory of this source tree.
|
74
|
-
*/var Gv;function z4(){if(Gv)return wd;Gv=1;var r=A;function e(T){for(var P="https://reactjs.org/docs/error-decoder.html?invariant="+T,$=1;$<arguments.length;$++)P+="&args[]="+encodeURIComponent(arguments[$]);return"Minified React error #"+T+"; visit "+P+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var t=null,n=0;function i(T,P){if(P.length!==0)if(512<P.length)0<n&&(T.enqueue(new Uint8Array(t.buffer,0,n)),t=new Uint8Array(512),n=0),T.enqueue(P);else{var $=t.length-n;$<P.length&&($===0?T.enqueue(t):(t.set(P.subarray(0,$),n),T.enqueue(t),P=P.subarray($)),t=new Uint8Array(512),n=0),t.set(P,n),n+=P.length}}function l(T,P){return i(T,P),!0}function u(T){t&&0<n&&(T.enqueue(new Uint8Array(t.buffer,0,n)),t=null,n=0)}var f=new TextEncoder;function g(T){return f.encode(T)}function m(T){return f.encode(T)}function R(T,P){typeof T.error=="function"?T.error(P):T.close()}var
|
75
|
-
`),_t=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,wt=new Map;function bt(T){var P=wt.get(T);if(P===void 0){if(!_t.test(T))throw Error(e(65,T));P=m("<"+T),wt.set(T,P)}return P}var St=m("<!DOCTYPE html>");function Me(T,P,$,te,Ie){switch(P){case"select":T.push(bt("select"));var Te=null,Ke=null;for(ar in $)if(
|
76
|
-
`&&T.push(Ct),Te!==null&&T.push(g(K(""+Te))),null;case"input":T.push(bt("input")),Wt=ar=gt=Te=null;for(Ke in $)if(
|
74
|
+
*/var Gv;function z4(){if(Gv)return wd;Gv=1;var r=A;function e(T){for(var P="https://reactjs.org/docs/error-decoder.html?invariant="+T,$=1;$<arguments.length;$++)P+="&args[]="+encodeURIComponent(arguments[$]);return"Minified React error #"+T+"; visit "+P+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var t=null,n=0;function i(T,P){if(P.length!==0)if(512<P.length)0<n&&(T.enqueue(new Uint8Array(t.buffer,0,n)),t=new Uint8Array(512),n=0),T.enqueue(P);else{var $=t.length-n;$<P.length&&($===0?T.enqueue(t):(t.set(P.subarray(0,$),n),T.enqueue(t),P=P.subarray($)),t=new Uint8Array(512),n=0),t.set(P,n),n+=P.length}}function l(T,P){return i(T,P),!0}function u(T){t&&0<n&&(T.enqueue(new Uint8Array(t.buffer,0,n)),t=null,n=0)}var f=new TextEncoder;function g(T){return f.encode(T)}function m(T){return f.encode(T)}function R(T,P){typeof T.error=="function"?T.error(P):T.close()}var C=Object.prototype.hasOwnProperty,b=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,S={},_={};function D(T){return C.call(_,T)?!0:C.call(S,T)?!1:b.test(T)?_[T]=!0:(S[T]=!0,!1)}function E(T,P,$,te,Ie,Te,Ke){this.acceptsBooleans=P===2||P===3||P===4,this.attributeName=te,this.attributeNamespace=Ie,this.mustUseProperty=$,this.propertyName=T,this.type=P,this.sanitizeURL=Te,this.removeEmptyString=Ke}var x={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(T){x[T]=new E(T,0,!1,T,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(T){var P=T[0];x[P]=new E(P,1,!1,T[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(T){x[T]=new E(T,2,!1,T.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(T){x[T]=new E(T,2,!1,T,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(T){x[T]=new E(T,3,!1,T.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(T){x[T]=new E(T,3,!0,T,null,!1,!1)}),["capture","download"].forEach(function(T){x[T]=new E(T,4,!1,T,null,!1,!1)}),["cols","rows","size","span"].forEach(function(T){x[T]=new E(T,6,!1,T,null,!1,!1)}),["rowSpan","start"].forEach(function(T){x[T]=new E(T,5,!1,T.toLowerCase(),null,!1,!1)});var L=/[\-:]([a-z])/g;function O(T){return T[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(T){var P=T.replace(L,O);x[P]=new E(P,1,!1,T,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(T){var P=T.replace(L,O);x[P]=new E(P,1,!1,T,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(T){var P=T.replace(L,O);x[P]=new E(P,1,!1,T,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(T){x[T]=new E(T,1,!1,T.toLowerCase(),null,!1,!1)}),x.xlinkHref=new E("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(T){x[T]=new E(T,1,!1,T.toLowerCase(),null,!0,!0)});var H={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},q=["Webkit","ms","Moz","O"];Object.keys(H).forEach(function(T){q.forEach(function(P){P=P+T.charAt(0).toUpperCase()+T.substring(1),H[P]=H[T]})});var z=/["'&<>]/;function K(T){if(typeof T=="boolean"||typeof T=="number")return""+T;T=""+T;var P=z.exec(T);if(P){var $="",te,Ie=0;for(te=P.index;te<T.length;te++){switch(T.charCodeAt(te)){case 34:P=""";break;case 38:P="&";break;case 39:P="'";break;case 60:P="<";break;case 62:P=">";break;default:continue}Ie!==te&&($+=T.substring(Ie,te)),Ie=te+1,$+=P}T=Ie!==te?$+T.substring(Ie,te):$}return T}var ue=/([A-Z])/g,X=/^ms-/,de=Array.isArray,j=m("<script>"),re=m("<\/script>"),J=m('<script src="'),Q=m('<script type="module" src="'),he=m('" async=""><\/script>'),me=/(<\/|<)(s)(cript)/gi;function be(T,P,$,te){return""+P+($==="s"?"\\u0073":"\\u0053")+te}function ce(T,P,$,te,Ie){T=T===void 0?"":T,P=P===void 0?j:m('<script nonce="'+K(P)+'">');var Te=[];if($!==void 0&&Te.push(P,g((""+$).replace(me,be)),re),te!==void 0)for($=0;$<te.length;$++)Te.push(J,g(K(te[$])),he);if(Ie!==void 0)for(te=0;te<Ie.length;te++)Te.push(Q,g(K(Ie[te])),he);return{bootstrapChunks:Te,startInlineScript:P,placeholderPrefix:m(T+"P:"),segmentPrefix:m(T+"S:"),boundaryPrefix:T+"B:",idPrefix:T,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}function ke(T,P){return{insertionMode:T,selectedValue:P}}function le(T){return ke(T==="http://www.w3.org/2000/svg"?2:T==="http://www.w3.org/1998/Math/MathML"?3:0,null)}function oe(T,P,$){switch(P){case"select":return ke(1,$.value!=null?$.value:$.defaultValue);case"svg":return ke(2,null);case"math":return ke(3,null);case"foreignObject":return ke(1,null);case"table":return ke(4,null);case"thead":case"tbody":case"tfoot":return ke(5,null);case"colgroup":return ke(7,null);case"tr":return ke(6,null)}return 4<=T.insertionMode||T.insertionMode===0?ke(1,null):T}var ve=m("<!-- -->");function Oe(T,P,$,te){return P===""?te:(te&&T.push(ve),T.push(g(K(P))),!0)}var et=new Map,we=m(' style="'),Pe=m(":"),je=m(";");function ze(T,P,$){if(typeof $!="object")throw Error(e(62));P=!0;for(var te in $)if(C.call($,te)){var Ie=$[te];if(Ie!=null&&typeof Ie!="boolean"&&Ie!==""){if(te.indexOf("--")===0){var Te=g(K(te));Ie=g(K((""+Ie).trim()))}else{Te=te;var Ke=et.get(Te);Ke!==void 0||(Ke=m(K(Te.replace(ue,"-$1").toLowerCase().replace(X,"-ms-"))),et.set(Te,Ke)),Te=Ke,Ie=typeof Ie=="number"?Ie===0||C.call(H,te)?g(""+Ie):g(Ie+"px"):g(K((""+Ie).trim()))}P?(P=!1,T.push(we,Te,Pe,Ie)):T.push(je,Te,Pe,Ie)}}P||T.push(Ae)}var We=m(" "),De=m('="'),Ae=m('"'),_e=m('=""');function Ge(T,P,$,te){switch($){case"style":ze(T,P,te);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<$.length)||$[0]!=="o"&&$[0]!=="O"||$[1]!=="n"&&$[1]!=="N"){if(P=x.hasOwnProperty($)?x[$]:null,P!==null){switch(typeof te){case"function":case"symbol":return;case"boolean":if(!P.acceptsBooleans)return}switch($=g(P.attributeName),P.type){case 3:te&&T.push(We,$,_e);break;case 4:te===!0?T.push(We,$,_e):te!==!1&&T.push(We,$,De,g(K(te)),Ae);break;case 5:isNaN(te)||T.push(We,$,De,g(K(te)),Ae);break;case 6:!isNaN(te)&&1<=te&&T.push(We,$,De,g(K(te)),Ae);break;default:P.sanitizeURL&&(te=""+te),T.push(We,$,De,g(K(te)),Ae)}}else if(D($)){switch(typeof te){case"function":case"symbol":return;case"boolean":if(P=$.toLowerCase().slice(0,5),P!=="data-"&&P!=="aria-")return}T.push(We,g($),De,g(K(te)),Ae)}}}var lt=m(">"),$e=m("/>");function ht(T,P,$){if(P!=null){if($!=null)throw Error(e(60));if(typeof P!="object"||!("__html"in P))throw Error(e(61));P=P.__html,P!=null&&T.push(g(""+P))}}function Le(T){var P="";return r.Children.forEach(T,function($){$!=null&&(P+=$)}),P}var Xe=m(' selected=""');function it(T,P,$,te){T.push(bt($));var Ie=$=null,Te;for(Te in P)if(C.call(P,Te)){var Ke=P[Te];if(Ke!=null)switch(Te){case"children":$=Ke;break;case"dangerouslySetInnerHTML":Ie=Ke;break;default:Ge(T,te,Te,Ke)}}return T.push(lt),ht(T,Ie,$),typeof $=="string"?(T.push(g(K($))),null):$}var Ct=m(`
|
75
|
+
`),_t=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,wt=new Map;function bt(T){var P=wt.get(T);if(P===void 0){if(!_t.test(T))throw Error(e(65,T));P=m("<"+T),wt.set(T,P)}return P}var St=m("<!DOCTYPE html>");function Me(T,P,$,te,Ie){switch(P){case"select":T.push(bt("select"));var Te=null,Ke=null;for(ar in $)if(C.call($,ar)){var gt=$[ar];if(gt!=null)switch(ar){case"children":Te=gt;break;case"dangerouslySetInnerHTML":Ke=gt;break;case"defaultValue":case"value":break;default:Ge(T,te,ar,gt)}}return T.push(lt),ht(T,Ke,Te),Te;case"option":Ke=Ie.selectedValue,T.push(bt("option"));var Wt=gt=null,hr=null,ar=null;for(Te in $)if(C.call($,Te)){var Gr=$[Te];if(Gr!=null)switch(Te){case"children":gt=Gr;break;case"selected":hr=Gr;break;case"dangerouslySetInnerHTML":ar=Gr;break;case"value":Wt=Gr;default:Ge(T,te,Te,Gr)}}if(Ke!=null)if($=Wt!==null?""+Wt:Le(gt),de(Ke)){for(te=0;te<Ke.length;te++)if(""+Ke[te]===$){T.push(Xe);break}}else""+Ke===$&&T.push(Xe);else hr&&T.push(Xe);return T.push(lt),ht(T,ar,gt),gt;case"textarea":T.push(bt("textarea")),ar=Ke=Te=null;for(gt in $)if(C.call($,gt)&&(Wt=$[gt],Wt!=null))switch(gt){case"children":ar=Wt;break;case"value":Te=Wt;break;case"defaultValue":Ke=Wt;break;case"dangerouslySetInnerHTML":throw Error(e(91));default:Ge(T,te,gt,Wt)}if(Te===null&&Ke!==null&&(Te=Ke),T.push(lt),ar!=null){if(Te!=null)throw Error(e(92));if(de(ar)&&1<ar.length)throw Error(e(93));Te=""+ar}return typeof Te=="string"&&Te[0]===`
|
76
|
+
`&&T.push(Ct),Te!==null&&T.push(g(K(""+Te))),null;case"input":T.push(bt("input")),Wt=ar=gt=Te=null;for(Ke in $)if(C.call($,Ke)&&(hr=$[Ke],hr!=null))switch(Ke){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,"input"));case"defaultChecked":Wt=hr;break;case"defaultValue":gt=hr;break;case"checked":ar=hr;break;case"value":Te=hr;break;default:Ge(T,te,Ke,hr)}return ar!==null?Ge(T,te,"checked",ar):Wt!==null&&Ge(T,te,"checked",Wt),Te!==null?Ge(T,te,"value",Te):gt!==null&&Ge(T,te,"value",gt),T.push($e),null;case"menuitem":T.push(bt("menuitem"));for(var ni in $)if(C.call($,ni)&&(Te=$[ni],Te!=null))switch(ni){case"children":case"dangerouslySetInnerHTML":throw Error(e(400));default:Ge(T,te,ni,Te)}return T.push(lt),null;case"title":T.push(bt("title")),Te=null;for(Gr in $)if(C.call($,Gr)&&(Ke=$[Gr],Ke!=null))switch(Gr){case"children":Te=Ke;break;case"dangerouslySetInnerHTML":throw Error(e(434));default:Ge(T,te,Gr,Ke)}return T.push(lt),Te;case"listing":case"pre":T.push(bt(P)),Ke=Te=null;for(Wt in $)if(C.call($,Wt)&&(gt=$[Wt],gt!=null))switch(Wt){case"children":Te=gt;break;case"dangerouslySetInnerHTML":Ke=gt;break;default:Ge(T,te,Wt,gt)}if(T.push(lt),Ke!=null){if(Te!=null)throw Error(e(60));if(typeof Ke!="object"||!("__html"in Ke))throw Error(e(61));$=Ke.__html,$!=null&&(typeof $=="string"&&0<$.length&&$[0]===`
|
77
77
|
`?T.push(Ct,g($)):T.push(g(""+$)))}return typeof Te=="string"&&Te[0]===`
|
78
|
-
`&&T.push(Ct),Te;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":T.push(bt(P));for(var Ti in $)if(w.call($,Ti)&&(Te=$[Ti],Te!=null))switch(Ti){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,P));default:Ge(T,te,Ti,Te)}return T.push($e),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return it(T,$,P,te);case"html":return Ie.insertionMode===0&&T.push(St),it(T,$,P,te);default:if(P.indexOf("-")===-1&&typeof $.is!="string")return it(T,$,P,te);T.push(bt(P)),Ke=Te=null;for(hr in $)if(w.call($,hr)&&(gt=$[hr],gt!=null))switch(hr){case"children":Te=gt;break;case"dangerouslySetInnerHTML":Ke=gt;break;case"style":ze(T,te,gt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:D(hr)&&typeof gt!="function"&&typeof gt!="symbol"&&T.push(We,g(hr),De,g(K(gt)),Ae)}return T.push(lt),ht(T,Ke,Te),Te}}var pt=m("</"),Et=m(">"),mt=m('<template id="'),Dt=m('"></template>'),Ze=m("<!--$-->"),At=m('<!--$?--><template id="'),jt=m('"></template>'),mr=m("<!--$!-->"),kr=m("<!--/$-->"),Cr=m("<template"),ge=m('"'),ne=m(' data-dgst="');m(' data-msg="'),m(' data-stck="');var Je=m("></template>");function ct(T,P,$){if(i(T,At),$===null)throw Error(e(395));return i(T,$),l(T,jt)}var tt=m('<div hidden id="'),Re=m('">'),xt=m("</div>"),Rt=m('<svg aria-hidden="true" style="display:none" id="'),vt=m('">'),Mt=m("</svg>"),Qt=m('<math aria-hidden="true" style="display:none" id="'),rr=m('">'),Bt=m("</math>"),qt=m('<table hidden id="'),sr=m('">'),Qe=m("</table>"),Tt=m('<table hidden><tbody id="'),yt=m('">'),Lt=m("</tbody></table>"),vr=m('<table hidden><tr id="'),Y=m('">'),pe=m("</tr></table>"),Be=m('<table hidden><colgroup id="'),ot=m('">'),Ot=m("</colgroup></table>");function $t(T,P,$,te){switch($.insertionMode){case 0:case 1:return i(T,tt),i(T,P.segmentPrefix),i(T,g(te.toString(16))),l(T,Re);case 2:return i(T,Rt),i(T,P.segmentPrefix),i(T,g(te.toString(16))),l(T,vt);case 3:return i(T,Qt),i(T,P.segmentPrefix),i(T,g(te.toString(16))),l(T,rr);case 4:return i(T,qt),i(T,P.segmentPrefix),i(T,g(te.toString(16))),l(T,sr);case 5:return i(T,Tt),i(T,P.segmentPrefix),i(T,g(te.toString(16))),l(T,yt);case 6:return i(T,vr),i(T,P.segmentPrefix),i(T,g(te.toString(16))),l(T,Y);case 7:return i(T,Be),i(T,P.segmentPrefix),i(T,g(te.toString(16))),l(T,ot);default:throw Error(e(397))}}function kt(T,P){switch(P.insertionMode){case 0:case 1:return l(T,xt);case 2:return l(T,Mt);case 3:return l(T,Bt);case 4:return l(T,Qe);case 5:return l(T,Lt);case 6:return l(T,pe);case 7:return l(T,Ot);default:throw Error(e(397))}}var Ut=m('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),nr=m('$RS("'),ir=m('","'),fr=m('")<\/script>'),Ur=m('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),yr=m('$RC("'),Kn=m('","'),Cn=m('")<\/script>'),Dn=m('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),Yr=m('$RX("'),Yn=m('"'),En=m(")<\/script>"),Xn=m(","),Jn=/[<\u2028\u2029]/g;function on(T){return JSON.stringify(T).replace(Jn,function(P){switch(P){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var On=Object.assign,wn=Symbol.for("react.element"),hi=Symbol.for("react.portal"),Si=Symbol.for("react.fragment"),Ci=Symbol.for("react.strict_mode"),kn=Symbol.for("react.profiler"),An=Symbol.for("react.provider"),un=Symbol.for("react.context"),Qn=Symbol.for("react.forward_ref"),sn=Symbol.for("react.suspense"),pn=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),V=Symbol.for("react.scope"),ee=Symbol.for("react.debug_trace_mode"),Ee=Symbol.for("react.legacy_hidden"),Se=Symbol.for("react.default_value"),He=Symbol.iterator;function st(T){if(T==null)return null;if(typeof T=="function")return T.displayName||T.name||null;if(typeof T=="string")return T;switch(T){case Si:return"Fragment";case hi:return"Portal";case kn:return"Profiler";case Ci:return"StrictMode";case sn:return"Suspense";case pn:return"SuspenseList"}if(typeof T=="object")switch(T.$$typeof){case un:return(T.displayName||"Context")+".Consumer";case An:return(T._context.displayName||"Context")+".Provider";case Qn:var P=T.render;return T=T.displayName,T||(T=P.displayName||P.name||"",T=T!==""?"ForwardRef("+T+")":"ForwardRef"),T;case C:return P=T.displayName||null,P!==null?P:st(T.type)||"Memo";case N:P=T._payload,T=T._init;try{return st(T(P))}catch{}}return null}var Pt={};function zt(T,P){if(T=T.contextTypes,!T)return Pt;var $={},te;for(te in T)$[te]=P[te];return $}var Ht=null;function xr(T,P){if(T!==P){T.context._currentValue=T.parentValue,T=T.parent;var $=P.parent;if(T===null){if($!==null)throw Error(e(401))}else{if($===null)throw Error(e(401));xr(T,$)}P.context._currentValue=P.value}}function Zr(T){T.context._currentValue=T.parentValue,T=T.parent,T!==null&&Zr(T)}function vn(T){var P=T.parent;P!==null&&vn(P),T.context._currentValue=T.value}function yn(T,P){if(T.context._currentValue=T.parentValue,T=T.parent,T===null)throw Error(e(402));T.depth===P.depth?xr(T,P):yn(T,P)}function li(T,P){var $=P.parent;if($===null)throw Error(e(402));T.depth===$.depth?xr(T,$):li(T,$),P.context._currentValue=P.value}function Bn(T){var P=Ht;P!==T&&(P===null?vn(T):T===null?Zr(P):P.depth===T.depth?xr(P,T):P.depth>T.depth?yn(P,T):li(P,T),Ht=T)}var wi={isMounted:function(){return!1},enqueueSetState:function(T,P){T=T._reactInternals,T.queue!==null&&T.queue.push(P)},enqueueReplaceState:function(T,P){T=T._reactInternals,T.replace=!0,T.queue=[P]},enqueueForceUpdate:function(){}};function Xr(T,P,$,te){var Ie=T.state!==void 0?T.state:null;T.updater=wi,T.props=$,T.state=Ie;var Te={queue:[],replace:!1};T._reactInternals=Te;var Ke=P.contextType;if(T.context=typeof Ke=="object"&&Ke!==null?Ke._currentValue:te,Ke=P.getDerivedStateFromProps,typeof Ke=="function"&&(Ke=Ke($,Ie),Ie=Ke==null?Ie:On({},Ie,Ke),T.state=Ie),typeof P.getDerivedStateFromProps!="function"&&typeof T.getSnapshotBeforeUpdate!="function"&&(typeof T.UNSAFE_componentWillMount=="function"||typeof T.componentWillMount=="function"))if(P=T.state,typeof T.componentWillMount=="function"&&T.componentWillMount(),typeof T.UNSAFE_componentWillMount=="function"&&T.UNSAFE_componentWillMount(),P!==T.state&&wi.enqueueReplaceState(T,T.state,null),Te.queue!==null&&0<Te.queue.length)if(P=Te.queue,Ke=Te.replace,Te.queue=null,Te.replace=!1,Ke&&P.length===1)T.state=P[0];else{for(Te=Ke?P[0]:T.state,Ie=!0,Ke=Ke?1:0;Ke<P.length;Ke++){var gt=P[Ke];gt=typeof gt=="function"?gt.call(T,Te,$,te):gt,gt!=null&&(Ie?(Ie=!1,Te=On({},Te,gt)):On(Te,gt))}T.state=Te}else Te.queue=null}var pi={id:1,overflow:""};function Hn(T,P,$){var te=T.id;T=T.overflow;var Ie=32-ei(te)-1;te&=~(1<<Ie),$+=1;var Te=32-ei(P)+Ie;if(30<Te){var Ke=Ie-Ie%5;return Te=(te&(1<<Ke)-1).toString(32),te>>=Ke,Ie-=Ke,{id:1<<32-ei(P)+Ie|$<<Ie|te,overflow:Te+T}}return{id:1<<Te|$<<Ie|te,overflow:T}}var ei=Math.clz32?Math.clz32:no,bo=Math.log,ro=Math.LN2;function no(T){return T>>>=0,T===0?32:31-(bo(T)/ro|0)|0}function Rn(T,P){return T===P&&(T!==0||1/T===1/P)||T!==T&&P!==P}var _o=typeof Object.is=="function"?Object.is:Rn,ti=null,ri=null,$i=null,Or=null,wr=!1,Mr=!1,I=0,G=null,ae=0;function qe(){if(ti===null)throw Error(e(321));return ti}function Yt(){if(0<ae)throw Error(e(312));return{memoizedState:null,queue:null,next:null}}function Vt(){return Or===null?$i===null?(wr=!1,$i=Or=Yt()):(wr=!0,Or=$i):Or.next===null?(wr=!1,Or=Or.next=Yt()):(wr=!0,Or=Or.next),Or}function pr(){ri=ti=null,Mr=!1,$i=null,ae=0,Or=G=null}function Sr(T,P){return typeof P=="function"?P(T):P}function dr(T,P,$){if(ti=qe(),Or=Vt(),wr){var te=Or.queue;if(P=te.dispatch,G!==null&&($=G.get(te),$!==void 0)){G.delete(te),te=Or.memoizedState;do te=T(te,$.action),$=$.next;while($!==null);return Or.memoizedState=te,[te,P]}return[Or.memoizedState,P]}return T=T===Sr?typeof P=="function"?P():P:$!==void 0?$(P):P,Or.memoizedState=T,T=Or.queue={last:null,dispatch:null},T=T.dispatch=Jr.bind(null,ti,T),[Or.memoizedState,T]}function Ar(T,P){if(ti=qe(),Or=Vt(),P=P===void 0?null:P,Or!==null){var $=Or.memoizedState;if($!==null&&P!==null){var te=$[1];e:if(te===null)te=!1;else{for(var Ie=0;Ie<te.length&&Ie<P.length;Ie++)if(!_o(P[Ie],te[Ie])){te=!1;break e}te=!0}if(te)return $[0]}}return T=T(),Or.memoizedState=[T,P],T}function Jr(T,P,$){if(25<=ae)throw Error(e(301));if(T===ti)if(Mr=!0,T={action:$,next:null},G===null&&(G=new Map),$=G.get(P),$===void 0)G.set(P,T);else{for(P=$;P.next!==null;)P=P.next;P.next=T}}function In(){throw Error(e(394))}function Vr(){}var Br={readContext:function(T){return T._currentValue},useContext:function(T){return qe(),T._currentValue},useMemo:Ar,useReducer:dr,useRef:function(T){ti=qe(),Or=Vt();var P=Or.memoizedState;return P===null?(T={current:T},Or.memoizedState=T):P},useState:function(T){return dr(Sr,T)},useInsertionEffect:Vr,useLayoutEffect:function(){},useCallback:function(T,P){return Ar(function(){return T},P)},useImperativeHandle:Vr,useEffect:Vr,useDebugValue:Vr,useDeferredValue:function(T){return qe(),T},useTransition:function(){return qe(),[!1,In]},useId:function(){var T=ri.treeContext,P=T.overflow;T=T.id,T=(T&~(1<<32-ei(T)-1)).toString(32)+P;var $=Qr;if($===null)throw Error(e(404));return P=I++,T=":"+$.idPrefix+"R"+T,0<P&&(T+="H"+P.toString(32)),T+":"},useMutableSource:function(T,P){return qe(),P(T._source)},useSyncExternalStore:function(T,P,$){if($===void 0)throw Error(e(407));return $()}},Qr=null,ci=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function gi(T){return console.error(T),null}function qn(){}function xo(T,P,$,te,Ie,Te,Ke,gt,Wt){var hr=[],ar=new Set;return P={destination:null,responseState:P,progressiveChunkSize:te===void 0?12800:te,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:ar,pingedTasks:hr,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:Ie===void 0?gi:Ie,onAllReady:Te===void 0?qn:Te,onShellReady:Ke===void 0?qn:Ke,onShellError:gt===void 0?qn:gt,onFatalError:Wt===void 0?qn:Wt},$=an(P,0,null,$,!1,!1),$.parentFlushed=!0,T=Ui(P,T,null,$,ar,Pt,null,pi),hr.push(T),P}function Ui(T,P,$,te,Ie,Te,Ke,gt){T.allPendingTasks++,$===null?T.pendingRootTasks++:$.pendingTasks++;var Wt={node:P,ping:function(){var hr=T.pingedTasks;hr.push(Wt),hr.length===1&&pl(T)},blockedBoundary:$,blockedSegment:te,abortSet:Ie,legacyContext:Te,context:Ke,treeContext:gt};return Ie.add(Wt),Wt}function an(T,P,$,te,Ie,Te){return{status:0,id:-1,index:P,parentFlushed:!1,chunks:[],children:[],formatContext:te,boundary:$,lastPushedText:Ie,textEmbedded:Te}}function ps(T,P){if(T=T.onError(P),T!=null&&typeof T!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof T+'" instead');return T}function zn(T,P){var $=T.onShellError;$(P),$=T.onFatalError,$(P),T.destination!==null?(T.status=2,R(T.destination,P)):(T.status=1,T.fatalError=P)}function fl(T,P,$,te,Ie){for(ti={},ri=P,I=0,T=$(te,Ie);Mr;)Mr=!1,I=0,ae+=1,Or=null,T=$(te,Ie);return pr(),T}function Ta(T,P,$,te){var Ie=$.render(),Te=te.childContextTypes;if(Te!=null){var Ke=P.legacyContext;if(typeof $.getChildContext!="function")te=Ke;else{$=$.getChildContext();for(var gt in $)if(!(gt in Te))throw Error(e(108,st(te)||"Unknown",gt));te=On({},Ke,$)}P.legacyContext=te,$n(T,P,Ie),P.legacyContext=Ke}else $n(T,P,Ie)}function Wi(T,P){if(T&&T.defaultProps){P=On({},P),T=T.defaultProps;for(var $ in T)P[$]===void 0&&(P[$]=T[$]);return P}return P}function So(T,P,$,te,Ie){if(typeof $=="function")if($.prototype&&$.prototype.isReactComponent){Ie=zt($,P.legacyContext);var Te=$.contextType;Te=new $(te,typeof Te=="object"&&Te!==null?Te._currentValue:Ie),Xr(Te,$,te,Ie),Ta(T,P,Te,$)}else{Te=zt($,P.legacyContext),Ie=fl(T,P,$,te,Te);var Ke=I!==0;if(typeof Ie=="object"&&Ie!==null&&typeof Ie.render=="function"&&Ie.$$typeof===void 0)Xr(Ie,$,te,Te),Ta(T,P,Ie,$);else if(Ke){te=P.treeContext,P.treeContext=Hn(te,1,0);try{$n(T,P,Ie)}finally{P.treeContext=te}}else $n(T,P,Ie)}else if(typeof $=="string"){switch(Ie=P.blockedSegment,Te=Me(Ie.chunks,$,te,T.responseState,Ie.formatContext),Ie.lastPushedText=!1,Ke=Ie.formatContext,Ie.formatContext=oe(Ke,$,te),Ai(T,P,Te),Ie.formatContext=Ke,$){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:Ie.chunks.push(pt,g($),Et)}Ie.lastPushedText=!1}else{switch($){case Ee:case ee:case Ci:case kn:case Si:$n(T,P,te.children);return;case pn:$n(T,P,te.children);return;case V:throw Error(e(343));case sn:e:{$=P.blockedBoundary,Ie=P.blockedSegment,Te=te.fallback,te=te.children,Ke=new Set;var gt={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:Ke,errorDigest:null},Wt=an(T,Ie.chunks.length,gt,Ie.formatContext,!1,!1);Ie.children.push(Wt),Ie.lastPushedText=!1;var hr=an(T,0,null,Ie.formatContext,!1,!1);hr.parentFlushed=!0,P.blockedBoundary=gt,P.blockedSegment=hr;try{if(Ai(T,P,te),hr.lastPushedText&&hr.textEmbedded&&hr.chunks.push(ve),hr.status=1,$o(gt,hr),gt.pendingTasks===0)break e}catch(ar){hr.status=4,gt.forceClientRender=!0,gt.errorDigest=ps(T,ar)}finally{P.blockedBoundary=$,P.blockedSegment=Ie}P=Ui(T,Te,$,Wt,Ke,P.legacyContext,P.context,P.treeContext),T.pingedTasks.push(P)}return}if(typeof $=="object"&&$!==null)switch($.$$typeof){case Qn:if(te=fl(T,P,$.render,te,Ie),I!==0){$=P.treeContext,P.treeContext=Hn($,1,0);try{$n(T,P,te)}finally{P.treeContext=$}}else $n(T,P,te);return;case C:$=$.type,te=Wi($,te),So(T,P,$,te,Ie);return;case An:if(Ie=te.children,$=$._context,te=te.value,Te=$._currentValue,$._currentValue=te,Ke=Ht,Ht=te={parent:Ke,depth:Ke===null?0:Ke.depth+1,context:$,parentValue:Te,value:te},P.context=te,$n(T,P,Ie),T=Ht,T===null)throw Error(e(403));te=T.parentValue,T.context._currentValue=te===Se?T.context._defaultValue:te,T=Ht=T.parent,P.context=T;return;case un:te=te.children,te=te($._currentValue),$n(T,P,te);return;case N:Ie=$._init,$=Ie($._payload),te=Wi($,te),So(T,P,$,te,void 0);return}throw Error(e(130,$==null?$:typeof $,""))}}function $n(T,P,$){if(P.node=$,typeof $=="object"&&$!==null){switch($.$$typeof){case wn:So(T,P,$.type,$.props,$.ref);return;case hi:throw Error(e(257));case N:var te=$._init;$=te($._payload),$n(T,P,$);return}if(de($)){Kr(T,P,$);return}if($===null||typeof $!="object"?te=null:(te=He&&$[He]||$["@@iterator"],te=typeof te=="function"?te:null),te&&(te=te.call($))){if($=te.next(),!$.done){var Ie=[];do Ie.push($.value),$=te.next();while(!$.done);Kr(T,P,Ie)}return}throw T=Object.prototype.toString.call($),Error(e(31,T==="[object Object]"?"object with keys {"+Object.keys($).join(", ")+"}":T))}typeof $=="string"?(te=P.blockedSegment,te.lastPushedText=Oe(P.blockedSegment.chunks,$,T.responseState,te.lastPushedText)):typeof $=="number"&&(te=P.blockedSegment,te.lastPushedText=Oe(P.blockedSegment.chunks,""+$,T.responseState,te.lastPushedText))}function Kr(T,P,$){for(var te=$.length,Ie=0;Ie<te;Ie++){var Te=P.treeContext;P.treeContext=Hn(Te,te,Ie);try{Ai(T,P,$[Ie])}finally{P.treeContext=Te}}}function Ai(T,P,$){var te=P.blockedSegment.formatContext,Ie=P.legacyContext,Te=P.context;try{return $n(T,P,$)}catch(Wt){if(pr(),typeof Wt=="object"&&Wt!==null&&typeof Wt.then=="function"){$=Wt;var Ke=P.blockedSegment,gt=an(T,Ke.chunks.length,null,Ke.formatContext,Ke.lastPushedText,!0);Ke.children.push(gt),Ke.lastPushedText=!1,T=Ui(T,P.node,P.blockedBoundary,gt,P.abortSet,P.legacyContext,P.context,P.treeContext).ping,$.then(T,T),P.blockedSegment.formatContext=te,P.legacyContext=Ie,P.context=Te,Bn(Te)}else throw P.blockedSegment.formatContext=te,P.legacyContext=Ie,P.context=Te,Bn(Te),Wt}}function Ea(T){var P=T.blockedBoundary;T=T.blockedSegment,T.status=3,hl(this,P,T)}function dl(T,P,$){var te=T.blockedBoundary;T.blockedSegment.status=3,te===null?(P.allPendingTasks--,P.status!==2&&(P.status=2,P.destination!==null&&P.destination.close())):(te.pendingTasks--,te.forceClientRender||(te.forceClientRender=!0,T=$===void 0?Error(e(432)):$,te.errorDigest=P.onError(T),te.parentFlushed&&P.clientRenderedBoundaries.push(te)),te.fallbackAbortableTasks.forEach(function(Ie){return dl(Ie,P,$)}),te.fallbackAbortableTasks.clear(),P.allPendingTasks--,P.allPendingTasks===0&&(te=P.onAllReady,te()))}function $o(T,P){if(P.chunks.length===0&&P.children.length===1&&P.children[0].boundary===null){var $=P.children[0];$.id=P.id,$.parentFlushed=!0,$.status===1&&$o(T,$)}else T.completedSegments.push(P)}function hl(T,P,$){if(P===null){if($.parentFlushed){if(T.completedRootSegment!==null)throw Error(e(389));T.completedRootSegment=$}T.pendingRootTasks--,T.pendingRootTasks===0&&(T.onShellError=qn,P=T.onShellReady,P())}else P.pendingTasks--,P.forceClientRender||(P.pendingTasks===0?($.parentFlushed&&$.status===1&&$o(P,$),P.parentFlushed&&T.completedBoundaries.push(P),P.fallbackAbortableTasks.forEach(Ea,T),P.fallbackAbortableTasks.clear()):$.parentFlushed&&$.status===1&&($o(P,$),P.completedSegments.length===1&&P.parentFlushed&&T.partialBoundaries.push(P)));T.allPendingTasks--,T.allPendingTasks===0&&(T=T.onAllReady,T())}function pl(T){if(T.status!==2){var P=Ht,$=ci.current;ci.current=Br;var te=Qr;Qr=T.responseState;try{var Ie=T.pingedTasks,Te;for(Te=0;Te<Ie.length;Te++){var Ke=Ie[Te],gt=T,Wt=Ke.blockedSegment;if(Wt.status===0){Bn(Ke.context);try{$n(gt,Ke,Ke.node),Wt.lastPushedText&&Wt.textEmbedded&&Wt.chunks.push(ve),Ke.abortSet.delete(Ke),Wt.status=1,hl(gt,Ke.blockedBoundary,Wt)}catch(Ei){if(pr(),typeof Ei=="object"&&Ei!==null&&typeof Ei.then=="function"){var hr=Ke.ping;Ei.then(hr,hr)}else{Ke.abortSet.delete(Ke),Wt.status=4;var ar=Ke.blockedBoundary,Gr=Ei,ni=ps(gt,Gr);if(ar===null?zn(gt,Gr):(ar.pendingTasks--,ar.forceClientRender||(ar.forceClientRender=!0,ar.errorDigest=ni,ar.parentFlushed&>.clientRenderedBoundaries.push(ar))),gt.allPendingTasks--,gt.allPendingTasks===0){var Ti=gt.onAllReady;Ti()}}}finally{}}}Ie.splice(0,Te),T.destination!==null&&Zs(T,T.destination)}catch(Ei){ps(T,Ei),zn(T,Ei)}finally{Qr=te,ci.current=$,$===Br&&Bn(P)}}}function Gs(T,P,$){switch($.parentFlushed=!0,$.status){case 0:var te=$.id=T.nextSegmentId++;return $.lastPushedText=!1,$.textEmbedded=!1,T=T.responseState,i(P,mt),i(P,T.placeholderPrefix),T=g(te.toString(16)),i(P,T),l(P,Dt);case 1:$.status=2;var Ie=!0;te=$.chunks;var Te=0;$=$.children;for(var Ke=0;Ke<$.length;Ke++){for(Ie=$[Ke];Te<Ie.index;Te++)i(P,te[Te]);Ie=gs(T,P,Ie)}for(;Te<te.length-1;Te++)i(P,te[Te]);return Te<te.length&&(Ie=l(P,te[Te])),Ie;default:throw Error(e(390))}}function gs(T,P,$){var te=$.boundary;if(te===null)return Gs(T,P,$);if(te.parentFlushed=!0,te.forceClientRender)te=te.errorDigest,l(P,mr),i(P,Cr),te&&(i(P,ne),i(P,g(K(te))),i(P,ge)),l(P,Je),Gs(T,P,$);else if(0<te.pendingTasks){te.rootSegmentID=T.nextSegmentId++,0<te.completedSegments.length&&T.partialBoundaries.push(te);var Ie=T.responseState,Te=Ie.nextSuspenseID++;Ie=m(Ie.boundaryPrefix+Te.toString(16)),te=te.id=Ie,ct(P,T.responseState,te),Gs(T,P,$)}else if(te.byteSize>T.progressiveChunkSize)te.rootSegmentID=T.nextSegmentId++,T.completedBoundaries.push(te),ct(P,T.responseState,te.id),Gs(T,P,$);else{if(l(P,Ze),$=te.completedSegments,$.length!==1)throw Error(e(391));gs(T,P,$[0])}return l(P,kr)}function ms(T,P,$){return $t(P,T.responseState,$.formatContext,$.id),gs(T,P,$),kt(P,$.formatContext)}function Co(T,P,$){for(var te=$.completedSegments,Ie=0;Ie<te.length;Ie++)gl(T,P,$,te[Ie]);if(te.length=0,T=T.responseState,te=$.id,$=$.rootSegmentID,i(P,T.startInlineScript),T.sentCompleteBoundaryFunction?i(P,yr):(T.sentCompleteBoundaryFunction=!0,i(P,Ur)),te===null)throw Error(e(395));return $=g($.toString(16)),i(P,te),i(P,Kn),i(P,T.segmentPrefix),i(P,$),l(P,Cn)}function gl(T,P,$,te){if(te.status===2)return!0;var Ie=te.id;if(Ie===-1){if((te.id=$.rootSegmentID)===-1)throw Error(e(392));return ms(T,P,te)}return ms(T,P,te),T=T.responseState,i(P,T.startInlineScript),T.sentCompleteSegmentFunction?i(P,nr):(T.sentCompleteSegmentFunction=!0,i(P,Ut)),i(P,T.segmentPrefix),Ie=g(Ie.toString(16)),i(P,Ie),i(P,ir),i(P,T.placeholderPrefix),i(P,Ie),l(P,fr)}function Zs(T,P){t=new Uint8Array(512),n=0;try{var $=T.completedRootSegment;if($!==null&&T.pendingRootTasks===0){gs(T,P,$),T.completedRootSegment=null;var te=T.responseState.bootstrapChunks;for($=0;$<te.length-1;$++)i(P,te[$]);$<te.length&&l(P,te[$])}var Ie=T.clientRenderedBoundaries,Te;for(Te=0;Te<Ie.length;Te++){var Ke=Ie[Te];te=P;var gt=T.responseState,Wt=Ke.id,hr=Ke.errorDigest,ar=Ke.errorMessage,Gr=Ke.errorComponentStack;if(i(te,gt.startInlineScript),gt.sentClientRenderFunction?i(te,Yr):(gt.sentClientRenderFunction=!0,i(te,Dn)),Wt===null)throw Error(e(395));i(te,Wt),i(te,Yn),(hr||ar||Gr)&&(i(te,Xn),i(te,g(on(hr||"")))),(ar||Gr)&&(i(te,Xn),i(te,g(on(ar||"")))),Gr&&(i(te,Xn),i(te,g(on(Gr)))),l(te,En)}Ie.splice(0,Te);var ni=T.completedBoundaries;for(Te=0;Te<ni.length;Te++)Co(T,P,ni[Te]);ni.splice(0,Te),u(P),t=new Uint8Array(512),n=0;var Ti=T.partialBoundaries;for(Te=0;Te<Ti.length;Te++){var Ei=Ti[Te];e:{Ie=T,Ke=P;var Ks=Ei.completedSegments;for(gt=0;gt<Ks.length;gt++)if(!gl(Ie,Ke,Ei,Ks[gt])){gt++,Ks.splice(0,gt);var ml=!1;break e}Ks.splice(0,gt),ml=!0}if(!ml){T.destination=null,Te++,Ti.splice(0,Te);return}}Ti.splice(0,Te);var vs=T.completedBoundaries;for(Te=0;Te<vs.length;Te++)Co(T,P,vs[Te]);vs.splice(0,Te)}finally{u(P),T.allPendingTasks===0&&T.pingedTasks.length===0&&T.clientRenderedBoundaries.length===0&&T.completedBoundaries.length===0&&P.close()}}function ka(T,P){try{var $=T.abortableTasks;$.forEach(function(te){return dl(te,T,P)}),$.clear(),T.destination!==null&&Zs(T,T.destination)}catch(te){ps(T,te),zn(T,te)}}return wd.renderToReadableStream=function(T,P){return new Promise(function($,te){var Ie,Te,Ke=new Promise(function(ar,Gr){Te=ar,Ie=Gr}),gt=xo(T,ce(P?P.identifierPrefix:void 0,P?P.nonce:void 0,P?P.bootstrapScriptContent:void 0,P?P.bootstrapScripts:void 0,P?P.bootstrapModules:void 0),le(P?P.namespaceURI:void 0),P?P.progressiveChunkSize:void 0,P?P.onError:void 0,Te,function(){var ar=new ReadableStream({type:"bytes",pull:function(Gr){if(gt.status===1)gt.status=2,R(Gr,gt.fatalError);else if(gt.status!==2&>.destination===null){gt.destination=Gr;try{Zs(gt,Gr)}catch(ni){ps(gt,ni),zn(gt,ni)}}},cancel:function(){ka(gt)}},{highWaterMark:0});ar.allReady=Ke,$(ar)},function(ar){Ke.catch(function(){}),te(ar)},Ie);if(P&&P.signal){var Wt=P.signal,hr=function(){ka(gt,Wt.reason),Wt.removeEventListener("abort",hr)};Wt.addEventListener("abort",hr)}pl(gt)})},wd.version="18.2.0",wd}var Wc={};/**
|
78
|
+
`&&T.push(Ct),Te;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":T.push(bt(P));for(var Ti in $)if(C.call($,Ti)&&(Te=$[Ti],Te!=null))switch(Ti){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,P));default:Ge(T,te,Ti,Te)}return T.push($e),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return it(T,$,P,te);case"html":return Ie.insertionMode===0&&T.push(St),it(T,$,P,te);default:if(P.indexOf("-")===-1&&typeof $.is!="string")return it(T,$,P,te);T.push(bt(P)),Ke=Te=null;for(hr in $)if(C.call($,hr)&&(gt=$[hr],gt!=null))switch(hr){case"children":Te=gt;break;case"dangerouslySetInnerHTML":Ke=gt;break;case"style":ze(T,te,gt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:D(hr)&&typeof gt!="function"&&typeof gt!="symbol"&&T.push(We,g(hr),De,g(K(gt)),Ae)}return T.push(lt),ht(T,Ke,Te),Te}}var pt=m("</"),Et=m(">"),mt=m('<template id="'),Dt=m('"></template>'),Ze=m("<!--$-->"),At=m('<!--$?--><template id="'),jt=m('"></template>'),mr=m("<!--$!-->"),kr=m("<!--/$-->"),Cr=m("<template"),ge=m('"'),ne=m(' data-dgst="');m(' data-msg="'),m(' data-stck="');var Je=m("></template>");function ct(T,P,$){if(i(T,At),$===null)throw Error(e(395));return i(T,$),l(T,jt)}var tt=m('<div hidden id="'),Re=m('">'),xt=m("</div>"),Rt=m('<svg aria-hidden="true" style="display:none" id="'),vt=m('">'),Mt=m("</svg>"),Qt=m('<math aria-hidden="true" style="display:none" id="'),rr=m('">'),Bt=m("</math>"),qt=m('<table hidden id="'),sr=m('">'),Qe=m("</table>"),Tt=m('<table hidden><tbody id="'),yt=m('">'),Lt=m("</tbody></table>"),vr=m('<table hidden><tr id="'),Y=m('">'),pe=m("</tr></table>"),Be=m('<table hidden><colgroup id="'),ot=m('">'),Ot=m("</colgroup></table>");function $t(T,P,$,te){switch($.insertionMode){case 0:case 1:return i(T,tt),i(T,P.segmentPrefix),i(T,g(te.toString(16))),l(T,Re);case 2:return i(T,Rt),i(T,P.segmentPrefix),i(T,g(te.toString(16))),l(T,vt);case 3:return i(T,Qt),i(T,P.segmentPrefix),i(T,g(te.toString(16))),l(T,rr);case 4:return i(T,qt),i(T,P.segmentPrefix),i(T,g(te.toString(16))),l(T,sr);case 5:return i(T,Tt),i(T,P.segmentPrefix),i(T,g(te.toString(16))),l(T,yt);case 6:return i(T,vr),i(T,P.segmentPrefix),i(T,g(te.toString(16))),l(T,Y);case 7:return i(T,Be),i(T,P.segmentPrefix),i(T,g(te.toString(16))),l(T,ot);default:throw Error(e(397))}}function kt(T,P){switch(P.insertionMode){case 0:case 1:return l(T,xt);case 2:return l(T,Mt);case 3:return l(T,Bt);case 4:return l(T,Qe);case 5:return l(T,Lt);case 6:return l(T,pe);case 7:return l(T,Ot);default:throw Error(e(397))}}var Ut=m('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),nr=m('$RS("'),ir=m('","'),fr=m('")<\/script>'),Ur=m('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),yr=m('$RC("'),Kn=m('","'),Cn=m('")<\/script>'),Dn=m('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),Yr=m('$RX("'),Yn=m('"'),En=m(")<\/script>"),Xn=m(","),Jn=/[<\u2028\u2029]/g;function on(T){return JSON.stringify(T).replace(Jn,function(P){switch(P){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var On=Object.assign,wn=Symbol.for("react.element"),hi=Symbol.for("react.portal"),Si=Symbol.for("react.fragment"),Ci=Symbol.for("react.strict_mode"),kn=Symbol.for("react.profiler"),An=Symbol.for("react.provider"),un=Symbol.for("react.context"),Qn=Symbol.for("react.forward_ref"),sn=Symbol.for("react.suspense"),pn=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),V=Symbol.for("react.scope"),ee=Symbol.for("react.debug_trace_mode"),Ee=Symbol.for("react.legacy_hidden"),Se=Symbol.for("react.default_value"),He=Symbol.iterator;function st(T){if(T==null)return null;if(typeof T=="function")return T.displayName||T.name||null;if(typeof T=="string")return T;switch(T){case Si:return"Fragment";case hi:return"Portal";case kn:return"Profiler";case Ci:return"StrictMode";case sn:return"Suspense";case pn:return"SuspenseList"}if(typeof T=="object")switch(T.$$typeof){case un:return(T.displayName||"Context")+".Consumer";case An:return(T._context.displayName||"Context")+".Provider";case Qn:var P=T.render;return T=T.displayName,T||(T=P.displayName||P.name||"",T=T!==""?"ForwardRef("+T+")":"ForwardRef"),T;case w:return P=T.displayName||null,P!==null?P:st(T.type)||"Memo";case N:P=T._payload,T=T._init;try{return st(T(P))}catch{}}return null}var Pt={};function zt(T,P){if(T=T.contextTypes,!T)return Pt;var $={},te;for(te in T)$[te]=P[te];return $}var Ht=null;function xr(T,P){if(T!==P){T.context._currentValue=T.parentValue,T=T.parent;var $=P.parent;if(T===null){if($!==null)throw Error(e(401))}else{if($===null)throw Error(e(401));xr(T,$)}P.context._currentValue=P.value}}function Zr(T){T.context._currentValue=T.parentValue,T=T.parent,T!==null&&Zr(T)}function vn(T){var P=T.parent;P!==null&&vn(P),T.context._currentValue=T.value}function yn(T,P){if(T.context._currentValue=T.parentValue,T=T.parent,T===null)throw Error(e(402));T.depth===P.depth?xr(T,P):yn(T,P)}function li(T,P){var $=P.parent;if($===null)throw Error(e(402));T.depth===$.depth?xr(T,$):li(T,$),P.context._currentValue=P.value}function Bn(T){var P=Ht;P!==T&&(P===null?vn(T):T===null?Zr(P):P.depth===T.depth?xr(P,T):P.depth>T.depth?yn(P,T):li(P,T),Ht=T)}var wi={isMounted:function(){return!1},enqueueSetState:function(T,P){T=T._reactInternals,T.queue!==null&&T.queue.push(P)},enqueueReplaceState:function(T,P){T=T._reactInternals,T.replace=!0,T.queue=[P]},enqueueForceUpdate:function(){}};function Xr(T,P,$,te){var Ie=T.state!==void 0?T.state:null;T.updater=wi,T.props=$,T.state=Ie;var Te={queue:[],replace:!1};T._reactInternals=Te;var Ke=P.contextType;if(T.context=typeof Ke=="object"&&Ke!==null?Ke._currentValue:te,Ke=P.getDerivedStateFromProps,typeof Ke=="function"&&(Ke=Ke($,Ie),Ie=Ke==null?Ie:On({},Ie,Ke),T.state=Ie),typeof P.getDerivedStateFromProps!="function"&&typeof T.getSnapshotBeforeUpdate!="function"&&(typeof T.UNSAFE_componentWillMount=="function"||typeof T.componentWillMount=="function"))if(P=T.state,typeof T.componentWillMount=="function"&&T.componentWillMount(),typeof T.UNSAFE_componentWillMount=="function"&&T.UNSAFE_componentWillMount(),P!==T.state&&wi.enqueueReplaceState(T,T.state,null),Te.queue!==null&&0<Te.queue.length)if(P=Te.queue,Ke=Te.replace,Te.queue=null,Te.replace=!1,Ke&&P.length===1)T.state=P[0];else{for(Te=Ke?P[0]:T.state,Ie=!0,Ke=Ke?1:0;Ke<P.length;Ke++){var gt=P[Ke];gt=typeof gt=="function"?gt.call(T,Te,$,te):gt,gt!=null&&(Ie?(Ie=!1,Te=On({},Te,gt)):On(Te,gt))}T.state=Te}else Te.queue=null}var pi={id:1,overflow:""};function Hn(T,P,$){var te=T.id;T=T.overflow;var Ie=32-ei(te)-1;te&=~(1<<Ie),$+=1;var Te=32-ei(P)+Ie;if(30<Te){var Ke=Ie-Ie%5;return Te=(te&(1<<Ke)-1).toString(32),te>>=Ke,Ie-=Ke,{id:1<<32-ei(P)+Ie|$<<Ie|te,overflow:Te+T}}return{id:1<<Te|$<<Ie|te,overflow:T}}var ei=Math.clz32?Math.clz32:no,bo=Math.log,ro=Math.LN2;function no(T){return T>>>=0,T===0?32:31-(bo(T)/ro|0)|0}function Rn(T,P){return T===P&&(T!==0||1/T===1/P)||T!==T&&P!==P}var _o=typeof Object.is=="function"?Object.is:Rn,ti=null,ri=null,$i=null,Or=null,wr=!1,Mr=!1,I=0,G=null,ae=0;function qe(){if(ti===null)throw Error(e(321));return ti}function Yt(){if(0<ae)throw Error(e(312));return{memoizedState:null,queue:null,next:null}}function Vt(){return Or===null?$i===null?(wr=!1,$i=Or=Yt()):(wr=!0,Or=$i):Or.next===null?(wr=!1,Or=Or.next=Yt()):(wr=!0,Or=Or.next),Or}function pr(){ri=ti=null,Mr=!1,$i=null,ae=0,Or=G=null}function Sr(T,P){return typeof P=="function"?P(T):P}function dr(T,P,$){if(ti=qe(),Or=Vt(),wr){var te=Or.queue;if(P=te.dispatch,G!==null&&($=G.get(te),$!==void 0)){G.delete(te),te=Or.memoizedState;do te=T(te,$.action),$=$.next;while($!==null);return Or.memoizedState=te,[te,P]}return[Or.memoizedState,P]}return T=T===Sr?typeof P=="function"?P():P:$!==void 0?$(P):P,Or.memoizedState=T,T=Or.queue={last:null,dispatch:null},T=T.dispatch=Jr.bind(null,ti,T),[Or.memoizedState,T]}function Ar(T,P){if(ti=qe(),Or=Vt(),P=P===void 0?null:P,Or!==null){var $=Or.memoizedState;if($!==null&&P!==null){var te=$[1];e:if(te===null)te=!1;else{for(var Ie=0;Ie<te.length&&Ie<P.length;Ie++)if(!_o(P[Ie],te[Ie])){te=!1;break e}te=!0}if(te)return $[0]}}return T=T(),Or.memoizedState=[T,P],T}function Jr(T,P,$){if(25<=ae)throw Error(e(301));if(T===ti)if(Mr=!0,T={action:$,next:null},G===null&&(G=new Map),$=G.get(P),$===void 0)G.set(P,T);else{for(P=$;P.next!==null;)P=P.next;P.next=T}}function In(){throw Error(e(394))}function Vr(){}var Br={readContext:function(T){return T._currentValue},useContext:function(T){return qe(),T._currentValue},useMemo:Ar,useReducer:dr,useRef:function(T){ti=qe(),Or=Vt();var P=Or.memoizedState;return P===null?(T={current:T},Or.memoizedState=T):P},useState:function(T){return dr(Sr,T)},useInsertionEffect:Vr,useLayoutEffect:function(){},useCallback:function(T,P){return Ar(function(){return T},P)},useImperativeHandle:Vr,useEffect:Vr,useDebugValue:Vr,useDeferredValue:function(T){return qe(),T},useTransition:function(){return qe(),[!1,In]},useId:function(){var T=ri.treeContext,P=T.overflow;T=T.id,T=(T&~(1<<32-ei(T)-1)).toString(32)+P;var $=Qr;if($===null)throw Error(e(404));return P=I++,T=":"+$.idPrefix+"R"+T,0<P&&(T+="H"+P.toString(32)),T+":"},useMutableSource:function(T,P){return qe(),P(T._source)},useSyncExternalStore:function(T,P,$){if($===void 0)throw Error(e(407));return $()}},Qr=null,ci=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function gi(T){return console.error(T),null}function qn(){}function xo(T,P,$,te,Ie,Te,Ke,gt,Wt){var hr=[],ar=new Set;return P={destination:null,responseState:P,progressiveChunkSize:te===void 0?12800:te,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:ar,pingedTasks:hr,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:Ie===void 0?gi:Ie,onAllReady:Te===void 0?qn:Te,onShellReady:Ke===void 0?qn:Ke,onShellError:gt===void 0?qn:gt,onFatalError:Wt===void 0?qn:Wt},$=an(P,0,null,$,!1,!1),$.parentFlushed=!0,T=Ui(P,T,null,$,ar,Pt,null,pi),hr.push(T),P}function Ui(T,P,$,te,Ie,Te,Ke,gt){T.allPendingTasks++,$===null?T.pendingRootTasks++:$.pendingTasks++;var Wt={node:P,ping:function(){var hr=T.pingedTasks;hr.push(Wt),hr.length===1&&pl(T)},blockedBoundary:$,blockedSegment:te,abortSet:Ie,legacyContext:Te,context:Ke,treeContext:gt};return Ie.add(Wt),Wt}function an(T,P,$,te,Ie,Te){return{status:0,id:-1,index:P,parentFlushed:!1,chunks:[],children:[],formatContext:te,boundary:$,lastPushedText:Ie,textEmbedded:Te}}function ps(T,P){if(T=T.onError(P),T!=null&&typeof T!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof T+'" instead');return T}function zn(T,P){var $=T.onShellError;$(P),$=T.onFatalError,$(P),T.destination!==null?(T.status=2,R(T.destination,P)):(T.status=1,T.fatalError=P)}function fl(T,P,$,te,Ie){for(ti={},ri=P,I=0,T=$(te,Ie);Mr;)Mr=!1,I=0,ae+=1,Or=null,T=$(te,Ie);return pr(),T}function Ta(T,P,$,te){var Ie=$.render(),Te=te.childContextTypes;if(Te!=null){var Ke=P.legacyContext;if(typeof $.getChildContext!="function")te=Ke;else{$=$.getChildContext();for(var gt in $)if(!(gt in Te))throw Error(e(108,st(te)||"Unknown",gt));te=On({},Ke,$)}P.legacyContext=te,$n(T,P,Ie),P.legacyContext=Ke}else $n(T,P,Ie)}function Wi(T,P){if(T&&T.defaultProps){P=On({},P),T=T.defaultProps;for(var $ in T)P[$]===void 0&&(P[$]=T[$]);return P}return P}function So(T,P,$,te,Ie){if(typeof $=="function")if($.prototype&&$.prototype.isReactComponent){Ie=zt($,P.legacyContext);var Te=$.contextType;Te=new $(te,typeof Te=="object"&&Te!==null?Te._currentValue:Ie),Xr(Te,$,te,Ie),Ta(T,P,Te,$)}else{Te=zt($,P.legacyContext),Ie=fl(T,P,$,te,Te);var Ke=I!==0;if(typeof Ie=="object"&&Ie!==null&&typeof Ie.render=="function"&&Ie.$$typeof===void 0)Xr(Ie,$,te,Te),Ta(T,P,Ie,$);else if(Ke){te=P.treeContext,P.treeContext=Hn(te,1,0);try{$n(T,P,Ie)}finally{P.treeContext=te}}else $n(T,P,Ie)}else if(typeof $=="string"){switch(Ie=P.blockedSegment,Te=Me(Ie.chunks,$,te,T.responseState,Ie.formatContext),Ie.lastPushedText=!1,Ke=Ie.formatContext,Ie.formatContext=oe(Ke,$,te),Ai(T,P,Te),Ie.formatContext=Ke,$){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:Ie.chunks.push(pt,g($),Et)}Ie.lastPushedText=!1}else{switch($){case Ee:case ee:case Ci:case kn:case Si:$n(T,P,te.children);return;case pn:$n(T,P,te.children);return;case V:throw Error(e(343));case sn:e:{$=P.blockedBoundary,Ie=P.blockedSegment,Te=te.fallback,te=te.children,Ke=new Set;var gt={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:Ke,errorDigest:null},Wt=an(T,Ie.chunks.length,gt,Ie.formatContext,!1,!1);Ie.children.push(Wt),Ie.lastPushedText=!1;var hr=an(T,0,null,Ie.formatContext,!1,!1);hr.parentFlushed=!0,P.blockedBoundary=gt,P.blockedSegment=hr;try{if(Ai(T,P,te),hr.lastPushedText&&hr.textEmbedded&&hr.chunks.push(ve),hr.status=1,$o(gt,hr),gt.pendingTasks===0)break e}catch(ar){hr.status=4,gt.forceClientRender=!0,gt.errorDigest=ps(T,ar)}finally{P.blockedBoundary=$,P.blockedSegment=Ie}P=Ui(T,Te,$,Wt,Ke,P.legacyContext,P.context,P.treeContext),T.pingedTasks.push(P)}return}if(typeof $=="object"&&$!==null)switch($.$$typeof){case Qn:if(te=fl(T,P,$.render,te,Ie),I!==0){$=P.treeContext,P.treeContext=Hn($,1,0);try{$n(T,P,te)}finally{P.treeContext=$}}else $n(T,P,te);return;case w:$=$.type,te=Wi($,te),So(T,P,$,te,Ie);return;case An:if(Ie=te.children,$=$._context,te=te.value,Te=$._currentValue,$._currentValue=te,Ke=Ht,Ht=te={parent:Ke,depth:Ke===null?0:Ke.depth+1,context:$,parentValue:Te,value:te},P.context=te,$n(T,P,Ie),T=Ht,T===null)throw Error(e(403));te=T.parentValue,T.context._currentValue=te===Se?T.context._defaultValue:te,T=Ht=T.parent,P.context=T;return;case un:te=te.children,te=te($._currentValue),$n(T,P,te);return;case N:Ie=$._init,$=Ie($._payload),te=Wi($,te),So(T,P,$,te,void 0);return}throw Error(e(130,$==null?$:typeof $,""))}}function $n(T,P,$){if(P.node=$,typeof $=="object"&&$!==null){switch($.$$typeof){case wn:So(T,P,$.type,$.props,$.ref);return;case hi:throw Error(e(257));case N:var te=$._init;$=te($._payload),$n(T,P,$);return}if(de($)){Kr(T,P,$);return}if($===null||typeof $!="object"?te=null:(te=He&&$[He]||$["@@iterator"],te=typeof te=="function"?te:null),te&&(te=te.call($))){if($=te.next(),!$.done){var Ie=[];do Ie.push($.value),$=te.next();while(!$.done);Kr(T,P,Ie)}return}throw T=Object.prototype.toString.call($),Error(e(31,T==="[object Object]"?"object with keys {"+Object.keys($).join(", ")+"}":T))}typeof $=="string"?(te=P.blockedSegment,te.lastPushedText=Oe(P.blockedSegment.chunks,$,T.responseState,te.lastPushedText)):typeof $=="number"&&(te=P.blockedSegment,te.lastPushedText=Oe(P.blockedSegment.chunks,""+$,T.responseState,te.lastPushedText))}function Kr(T,P,$){for(var te=$.length,Ie=0;Ie<te;Ie++){var Te=P.treeContext;P.treeContext=Hn(Te,te,Ie);try{Ai(T,P,$[Ie])}finally{P.treeContext=Te}}}function Ai(T,P,$){var te=P.blockedSegment.formatContext,Ie=P.legacyContext,Te=P.context;try{return $n(T,P,$)}catch(Wt){if(pr(),typeof Wt=="object"&&Wt!==null&&typeof Wt.then=="function"){$=Wt;var Ke=P.blockedSegment,gt=an(T,Ke.chunks.length,null,Ke.formatContext,Ke.lastPushedText,!0);Ke.children.push(gt),Ke.lastPushedText=!1,T=Ui(T,P.node,P.blockedBoundary,gt,P.abortSet,P.legacyContext,P.context,P.treeContext).ping,$.then(T,T),P.blockedSegment.formatContext=te,P.legacyContext=Ie,P.context=Te,Bn(Te)}else throw P.blockedSegment.formatContext=te,P.legacyContext=Ie,P.context=Te,Bn(Te),Wt}}function Ea(T){var P=T.blockedBoundary;T=T.blockedSegment,T.status=3,hl(this,P,T)}function dl(T,P,$){var te=T.blockedBoundary;T.blockedSegment.status=3,te===null?(P.allPendingTasks--,P.status!==2&&(P.status=2,P.destination!==null&&P.destination.close())):(te.pendingTasks--,te.forceClientRender||(te.forceClientRender=!0,T=$===void 0?Error(e(432)):$,te.errorDigest=P.onError(T),te.parentFlushed&&P.clientRenderedBoundaries.push(te)),te.fallbackAbortableTasks.forEach(function(Ie){return dl(Ie,P,$)}),te.fallbackAbortableTasks.clear(),P.allPendingTasks--,P.allPendingTasks===0&&(te=P.onAllReady,te()))}function $o(T,P){if(P.chunks.length===0&&P.children.length===1&&P.children[0].boundary===null){var $=P.children[0];$.id=P.id,$.parentFlushed=!0,$.status===1&&$o(T,$)}else T.completedSegments.push(P)}function hl(T,P,$){if(P===null){if($.parentFlushed){if(T.completedRootSegment!==null)throw Error(e(389));T.completedRootSegment=$}T.pendingRootTasks--,T.pendingRootTasks===0&&(T.onShellError=qn,P=T.onShellReady,P())}else P.pendingTasks--,P.forceClientRender||(P.pendingTasks===0?($.parentFlushed&&$.status===1&&$o(P,$),P.parentFlushed&&T.completedBoundaries.push(P),P.fallbackAbortableTasks.forEach(Ea,T),P.fallbackAbortableTasks.clear()):$.parentFlushed&&$.status===1&&($o(P,$),P.completedSegments.length===1&&P.parentFlushed&&T.partialBoundaries.push(P)));T.allPendingTasks--,T.allPendingTasks===0&&(T=T.onAllReady,T())}function pl(T){if(T.status!==2){var P=Ht,$=ci.current;ci.current=Br;var te=Qr;Qr=T.responseState;try{var Ie=T.pingedTasks,Te;for(Te=0;Te<Ie.length;Te++){var Ke=Ie[Te],gt=T,Wt=Ke.blockedSegment;if(Wt.status===0){Bn(Ke.context);try{$n(gt,Ke,Ke.node),Wt.lastPushedText&&Wt.textEmbedded&&Wt.chunks.push(ve),Ke.abortSet.delete(Ke),Wt.status=1,hl(gt,Ke.blockedBoundary,Wt)}catch(Ei){if(pr(),typeof Ei=="object"&&Ei!==null&&typeof Ei.then=="function"){var hr=Ke.ping;Ei.then(hr,hr)}else{Ke.abortSet.delete(Ke),Wt.status=4;var ar=Ke.blockedBoundary,Gr=Ei,ni=ps(gt,Gr);if(ar===null?zn(gt,Gr):(ar.pendingTasks--,ar.forceClientRender||(ar.forceClientRender=!0,ar.errorDigest=ni,ar.parentFlushed&>.clientRenderedBoundaries.push(ar))),gt.allPendingTasks--,gt.allPendingTasks===0){var Ti=gt.onAllReady;Ti()}}}finally{}}}Ie.splice(0,Te),T.destination!==null&&Zs(T,T.destination)}catch(Ei){ps(T,Ei),zn(T,Ei)}finally{Qr=te,ci.current=$,$===Br&&Bn(P)}}}function Gs(T,P,$){switch($.parentFlushed=!0,$.status){case 0:var te=$.id=T.nextSegmentId++;return $.lastPushedText=!1,$.textEmbedded=!1,T=T.responseState,i(P,mt),i(P,T.placeholderPrefix),T=g(te.toString(16)),i(P,T),l(P,Dt);case 1:$.status=2;var Ie=!0;te=$.chunks;var Te=0;$=$.children;for(var Ke=0;Ke<$.length;Ke++){for(Ie=$[Ke];Te<Ie.index;Te++)i(P,te[Te]);Ie=gs(T,P,Ie)}for(;Te<te.length-1;Te++)i(P,te[Te]);return Te<te.length&&(Ie=l(P,te[Te])),Ie;default:throw Error(e(390))}}function gs(T,P,$){var te=$.boundary;if(te===null)return Gs(T,P,$);if(te.parentFlushed=!0,te.forceClientRender)te=te.errorDigest,l(P,mr),i(P,Cr),te&&(i(P,ne),i(P,g(K(te))),i(P,ge)),l(P,Je),Gs(T,P,$);else if(0<te.pendingTasks){te.rootSegmentID=T.nextSegmentId++,0<te.completedSegments.length&&T.partialBoundaries.push(te);var Ie=T.responseState,Te=Ie.nextSuspenseID++;Ie=m(Ie.boundaryPrefix+Te.toString(16)),te=te.id=Ie,ct(P,T.responseState,te),Gs(T,P,$)}else if(te.byteSize>T.progressiveChunkSize)te.rootSegmentID=T.nextSegmentId++,T.completedBoundaries.push(te),ct(P,T.responseState,te.id),Gs(T,P,$);else{if(l(P,Ze),$=te.completedSegments,$.length!==1)throw Error(e(391));gs(T,P,$[0])}return l(P,kr)}function ms(T,P,$){return $t(P,T.responseState,$.formatContext,$.id),gs(T,P,$),kt(P,$.formatContext)}function Co(T,P,$){for(var te=$.completedSegments,Ie=0;Ie<te.length;Ie++)gl(T,P,$,te[Ie]);if(te.length=0,T=T.responseState,te=$.id,$=$.rootSegmentID,i(P,T.startInlineScript),T.sentCompleteBoundaryFunction?i(P,yr):(T.sentCompleteBoundaryFunction=!0,i(P,Ur)),te===null)throw Error(e(395));return $=g($.toString(16)),i(P,te),i(P,Kn),i(P,T.segmentPrefix),i(P,$),l(P,Cn)}function gl(T,P,$,te){if(te.status===2)return!0;var Ie=te.id;if(Ie===-1){if((te.id=$.rootSegmentID)===-1)throw Error(e(392));return ms(T,P,te)}return ms(T,P,te),T=T.responseState,i(P,T.startInlineScript),T.sentCompleteSegmentFunction?i(P,nr):(T.sentCompleteSegmentFunction=!0,i(P,Ut)),i(P,T.segmentPrefix),Ie=g(Ie.toString(16)),i(P,Ie),i(P,ir),i(P,T.placeholderPrefix),i(P,Ie),l(P,fr)}function Zs(T,P){t=new Uint8Array(512),n=0;try{var $=T.completedRootSegment;if($!==null&&T.pendingRootTasks===0){gs(T,P,$),T.completedRootSegment=null;var te=T.responseState.bootstrapChunks;for($=0;$<te.length-1;$++)i(P,te[$]);$<te.length&&l(P,te[$])}var Ie=T.clientRenderedBoundaries,Te;for(Te=0;Te<Ie.length;Te++){var Ke=Ie[Te];te=P;var gt=T.responseState,Wt=Ke.id,hr=Ke.errorDigest,ar=Ke.errorMessage,Gr=Ke.errorComponentStack;if(i(te,gt.startInlineScript),gt.sentClientRenderFunction?i(te,Yr):(gt.sentClientRenderFunction=!0,i(te,Dn)),Wt===null)throw Error(e(395));i(te,Wt),i(te,Yn),(hr||ar||Gr)&&(i(te,Xn),i(te,g(on(hr||"")))),(ar||Gr)&&(i(te,Xn),i(te,g(on(ar||"")))),Gr&&(i(te,Xn),i(te,g(on(Gr)))),l(te,En)}Ie.splice(0,Te);var ni=T.completedBoundaries;for(Te=0;Te<ni.length;Te++)Co(T,P,ni[Te]);ni.splice(0,Te),u(P),t=new Uint8Array(512),n=0;var Ti=T.partialBoundaries;for(Te=0;Te<Ti.length;Te++){var Ei=Ti[Te];e:{Ie=T,Ke=P;var Ks=Ei.completedSegments;for(gt=0;gt<Ks.length;gt++)if(!gl(Ie,Ke,Ei,Ks[gt])){gt++,Ks.splice(0,gt);var ml=!1;break e}Ks.splice(0,gt),ml=!0}if(!ml){T.destination=null,Te++,Ti.splice(0,Te);return}}Ti.splice(0,Te);var vs=T.completedBoundaries;for(Te=0;Te<vs.length;Te++)Co(T,P,vs[Te]);vs.splice(0,Te)}finally{u(P),T.allPendingTasks===0&&T.pingedTasks.length===0&&T.clientRenderedBoundaries.length===0&&T.completedBoundaries.length===0&&P.close()}}function ka(T,P){try{var $=T.abortableTasks;$.forEach(function(te){return dl(te,T,P)}),$.clear(),T.destination!==null&&Zs(T,T.destination)}catch(te){ps(T,te),zn(T,te)}}return wd.renderToReadableStream=function(T,P){return new Promise(function($,te){var Ie,Te,Ke=new Promise(function(ar,Gr){Te=ar,Ie=Gr}),gt=xo(T,ce(P?P.identifierPrefix:void 0,P?P.nonce:void 0,P?P.bootstrapScriptContent:void 0,P?P.bootstrapScripts:void 0,P?P.bootstrapModules:void 0),le(P?P.namespaceURI:void 0),P?P.progressiveChunkSize:void 0,P?P.onError:void 0,Te,function(){var ar=new ReadableStream({type:"bytes",pull:function(Gr){if(gt.status===1)gt.status=2,R(Gr,gt.fatalError);else if(gt.status!==2&>.destination===null){gt.destination=Gr;try{Zs(gt,Gr)}catch(ni){ps(gt,ni),zn(gt,ni)}}},cancel:function(){ka(gt)}},{highWaterMark:0});ar.allReady=Ke,$(ar)},function(ar){Ke.catch(function(){}),te(ar)},Ie);if(P&&P.signal){var Wt=P.signal,hr=function(){ka(gt,Wt.reason),Wt.removeEventListener("abort",hr)};Wt.addEventListener("abort",hr)}pl(gt)})},wd.version="18.2.0",wd}var Wc={};/**
|
79
79
|
* @license React
|
80
80
|
* react-dom-server-legacy.browser.development.js
|
81
81
|
*
|
@@ -83,8 +83,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
83
83
|
*
|
84
84
|
* This source code is licensed under the MIT license found in the
|
85
85
|
* LICENSE file in the root directory of this source tree.
|
86
|
-
*/var Zv;function $4(){return Zv||(Zv=1,process.env.NODE_ENV!=="production"&&function(){var r=A,e="18.2.0",t=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(s){{for(var c=arguments.length,h=new Array(c>1?c-1:0),y=1;y<c;y++)h[y-1]=arguments[y];l("warn",s,h)}}function i(s){{for(var c=arguments.length,h=new Array(c>1?c-1:0),y=1;y<c;y++)h[y-1]=arguments[y];l("error",s,h)}}function l(s,c,h){{var y=t.ReactDebugCurrentFrame,M=y.getStackAddendum();M!==""&&(c+="%s",h=h.concat([M]));var F=h.map(function(W){return String(W)});F.unshift("Warning: "+c),Function.prototype.apply.call(console[s],console,F)}}function u(s){s()}function f(s){}function g(s,c){m(s,c)}function m(s,c){return s.push(c)}function R(s){}function w(s){s.push(null)}function b(s){return s}function S(s){return s}function _(s,c){s.destroy(c)}function D(s){{var c=typeof Symbol=="function"&&Symbol.toStringTag,h=c&&s[Symbol.toStringTag]||s.constructor.name||"Object";return h}}function E(s){try{return x(s),!1}catch{return!0}}function x(s){return""+s}function L(s,c){if(E(s))return i("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",c,D(s)),x(s)}function O(s,c){if(E(s))return i("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",c,D(s)),x(s)}function H(s){if(E(s))return i("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",D(s)),x(s)}var q=Object.prototype.hasOwnProperty,z=0,K=1,ue=2,X=3,de=4,j=5,re=6,J=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",Q=J+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",he=new RegExp("^["+J+"]["+Q+"]*$"),me={},be={};function ce(s){return q.call(be,s)?!0:q.call(me,s)?!1:he.test(s)?(be[s]=!0,!0):(me[s]=!0,i("Invalid attribute name: `%s`",s),!1)}function ke(s,c,h,y){if(h!==null&&h.type===z)return!1;switch(typeof c){case"function":case"symbol":return!0;case"boolean":{if(h!==null)return!h.acceptsBooleans;var M=s.toLowerCase().slice(0,5);return M!=="data-"&&M!=="aria-"}default:return!1}}function le(s){return ve.hasOwnProperty(s)?ve[s]:null}function oe(s,c,h,y,M,F,W){this.acceptsBooleans=c===ue||c===X||c===de,this.attributeName=y,this.attributeNamespace=M,this.mustUseProperty=h,this.propertyName=s,this.type=c,this.sanitizeURL=F,this.removeEmptyString=W}var ve={},Oe=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];Oe.forEach(function(s){ve[s]=new oe(s,z,!1,s,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(s){var c=s[0],h=s[1];ve[c]=new oe(c,K,!1,h,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(s){ve[s]=new oe(s,ue,!1,s.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(s){ve[s]=new oe(s,ue,!1,s,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(s){ve[s]=new oe(s,X,!1,s.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(s){ve[s]=new oe(s,X,!0,s,null,!1,!1)}),["capture","download"].forEach(function(s){ve[s]=new oe(s,de,!1,s,null,!1,!1)}),["cols","rows","size","span"].forEach(function(s){ve[s]=new oe(s,re,!1,s,null,!1,!1)}),["rowSpan","start"].forEach(function(s){ve[s]=new oe(s,j,!1,s.toLowerCase(),null,!1,!1)});var et=/[\-\:]([a-z])/g,we=function(s){return s[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(s){var c=s.replace(et,we);ve[c]=new oe(c,K,!1,s,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(s){var c=s.replace(et,we);ve[c]=new oe(c,K,!1,s,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(s){var c=s.replace(et,we);ve[c]=new oe(c,K,!1,s,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(s){ve[s]=new oe(s,K,!1,s.toLowerCase(),null,!1,!1)});var Pe="xlinkHref";ve[Pe]=new oe("xlinkHref",K,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(s){ve[s]=new oe(s,K,!1,s.toLowerCase(),null,!0,!0)});var je={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function ze(s,c){return s+c.charAt(0).toUpperCase()+c.substring(1)}var We=["Webkit","ms","Moz","O"];Object.keys(je).forEach(function(s){We.forEach(function(c){je[ze(c,s)]=je[s]})});var De={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function Ae(s,c){De[c.type]||c.onChange||c.onInput||c.readOnly||c.disabled||c.value==null||i("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),c.onChange||c.readOnly||c.disabled||c.checked==null||i("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function _e(s,c){if(s.indexOf("-")===-1)return typeof c.is=="string";switch(s){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ge={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},lt={},$e=new RegExp("^(aria)-["+Q+"]*$"),ht=new RegExp("^(aria)[A-Z]["+Q+"]*$");function Le(s,c){{if(q.call(lt,c)&<[c])return!0;if(ht.test(c)){var h="aria-"+c.slice(4).toLowerCase(),y=Ge.hasOwnProperty(h)?h:null;if(y==null)return i("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",c),lt[c]=!0,!0;if(c!==y)return i("Invalid ARIA attribute `%s`. Did you mean `%s`?",c,y),lt[c]=!0,!0}if($e.test(c)){var M=c.toLowerCase(),F=Ge.hasOwnProperty(M)?M:null;if(F==null)return lt[c]=!0,!1;if(c!==F)return i("Unknown ARIA attribute `%s`. Did you mean `%s`?",c,F),lt[c]=!0,!0}}return!0}function Xe(s,c){{var h=[];for(var y in c){var M=Le(s,y);M||h.push(y)}var F=h.map(function(W){return"`"+W+"`"}).join(", ");h.length===1?i("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",F,s):h.length>1&&i("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",F,s)}}function it(s,c){_e(s,c)||Xe(s,c)}var Ct=!1;function _t(s,c){{if(s!=="input"&&s!=="textarea"&&s!=="select")return;c!=null&&c.value===null&&!Ct&&(Ct=!0,s==="select"&&c.multiple?i("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",s):i("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",s))}}var wt={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},bt=function(){};{var St={},Me=/^on./,pt=/^on[^A-Z]/,Et=new RegExp("^(aria)-["+Q+"]*$"),mt=new RegExp("^(aria)[A-Z]["+Q+"]*$");bt=function(s,c,h,y){if(q.call(St,c)&&St[c])return!0;var M=c.toLowerCase();if(M==="onfocusin"||M==="onfocusout")return i("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),St[c]=!0,!0;if(y!=null){var F=y.registrationNameDependencies,W=y.possibleRegistrationNames;if(F.hasOwnProperty(c))return!0;var ie=W.hasOwnProperty(M)?W[M]:null;if(ie!=null)return i("Invalid event handler property `%s`. Did you mean `%s`?",c,ie),St[c]=!0,!0;if(Me.test(c))return i("Unknown event handler property `%s`. It will be ignored.",c),St[c]=!0,!0}else if(Me.test(c))return pt.test(c)&&i("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",c),St[c]=!0,!0;if(Et.test(c)||mt.test(c))return!0;if(M==="innerhtml")return i("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),St[c]=!0,!0;if(M==="aria")return i("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),St[c]=!0,!0;if(M==="is"&&h!==null&&h!==void 0&&typeof h!="string")return i("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof h),St[c]=!0,!0;if(typeof h=="number"&&isNaN(h))return i("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",c),St[c]=!0,!0;var Ce=le(c),Ye=Ce!==null&&Ce.type===z;if(wt.hasOwnProperty(M)){var at=wt[M];if(at!==c)return i("Invalid DOM property `%s`. Did you mean `%s`?",c,at),St[c]=!0,!0}else if(!Ye&&c!==M)return i("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",c,M),St[c]=!0,!0;return typeof h=="boolean"&&ke(c,h,Ce)?(h?i('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',h,c,c,h,c):i('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',h,c,c,h,c,c,c),St[c]=!0,!0):Ye?!0:ke(c,h,Ce)?(St[c]=!0,!1):((h==="false"||h==="true")&&Ce!==null&&Ce.type===X&&(i("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",h,c,h==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',c,h),St[c]=!0),!0)}}var Dt=function(s,c,h){{var y=[];for(var M in c){var F=bt(s,M,c[M],h);F||y.push(M)}var W=y.map(function(ie){return"`"+ie+"`"}).join(", ");y.length===1?i("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",W,s):y.length>1&&i("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",W,s)}};function Ze(s,c,h){_e(s,c)||Dt(s,c,h)}var At=function(){};{var jt=/^(?:webkit|moz|o)[A-Z]/,mr=/^-ms-/,kr=/-(.)/g,Cr=/;\s*$/,ge={},ne={},Je=!1,ct=!1,tt=function(s){return s.replace(kr,function(c,h){return h.toUpperCase()})},Re=function(s){ge.hasOwnProperty(s)&&ge[s]||(ge[s]=!0,i("Unsupported style property %s. Did you mean %s?",s,tt(s.replace(mr,"ms-"))))},xt=function(s){ge.hasOwnProperty(s)&&ge[s]||(ge[s]=!0,i("Unsupported vendor-prefixed style property %s. Did you mean %s?",s,s.charAt(0).toUpperCase()+s.slice(1)))},Rt=function(s,c){ne.hasOwnProperty(c)&&ne[c]||(ne[c]=!0,i(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,s,c.replace(Cr,"")))},vt=function(s,c){Je||(Je=!0,i("`NaN` is an invalid value for the `%s` css style property.",s))},Mt=function(s,c){ct||(ct=!0,i("`Infinity` is an invalid value for the `%s` css style property.",s))};At=function(s,c){s.indexOf("-")>-1?Re(s):jt.test(s)?xt(s):Cr.test(c)&&Rt(s,c),typeof c=="number"&&(isNaN(c)?vt(s,c):isFinite(c)||Mt(s,c))}}var Qt=At,rr=/["'&<>]/;function Bt(s){H(s);var c=""+s,h=rr.exec(c);if(!h)return c;var y,M="",F,W=0;for(F=h.index;F<c.length;F++){switch(c.charCodeAt(F)){case 34:y=""";break;case 38:y="&";break;case 39:y="'";break;case 60:y="<";break;case 62:y=">";break;default:continue}W!==F&&(M+=c.substring(W,F)),W=F+1,M+=y}return W!==F?M+c.substring(W,F):M}function qt(s){return typeof s=="boolean"||typeof s=="number"?""+s:Bt(s)}var sr=/([A-Z])/g,Qe=/^ms-/;function Tt(s){return s.replace(sr,"-$1").toLowerCase().replace(Qe,"-ms-")}var yt=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,Lt=!1;function vr(s){!Lt&&yt.test(s)&&(Lt=!0,i("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(s)))}var Y=Array.isArray;function pe(s){return Y(s)}var Be="<script>";function ot(s,c,h,y,M){var F=s===void 0?"":s,W=Be,ie=[];return{bootstrapChunks:ie,startInlineScript:W,placeholderPrefix:F+"P:",segmentPrefix:F+"S:",boundaryPrefix:F+"B:",idPrefix:F,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var Ot=0,$t=1,kt=2,Ut=3,nr=4,ir=5,fr=6,Ur=7;function yr(s,c){return{insertionMode:s,selectedValue:c}}function Kn(s,c,h){switch(c){case"select":return yr($t,h.value!=null?h.value:h.defaultValue);case"svg":return yr(kt,null);case"math":return yr(Ut,null);case"foreignObject":return yr($t,null);case"table":return yr(nr,null);case"thead":case"tbody":case"tfoot":return yr(ir,null);case"colgroup":return yr(Ur,null);case"tr":return yr(fr,null)}return s.insertionMode>=nr||s.insertionMode===Ot?yr($t,null):s}var Cn=null;function Dn(s){var c=s.nextSuspenseID++;return s.boundaryPrefix+c.toString(16)}function Yr(s,c,h){var y=s.idPrefix,M=":"+y+"R"+c;return h>0&&(M+="H"+h.toString(32)),M+":"}function Yn(s){return qt(s)}var En="<!-- -->";function Xn(s,c,h,y){return c===""?y:(y&&s.push(En),s.push(Yn(c)),!0)}function Jn(s,c,h,y){h&&y&&s.push(En)}var on=new Map;function On(s){var c=on.get(s);if(c!==void 0)return c;var h=qt(Tt(s));return on.set(s,h),h}var wn=' style="',hi=":",Si=";";function Ci(s,c,h){if(typeof h!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");var y=!0;for(var M in h)if(q.call(h,M)){var F=h[M];if(!(F==null||typeof F=="boolean"||F==="")){var W=void 0,ie=void 0,Ce=M.indexOf("--")===0;Ce?(W=qt(M),O(F,M),ie=qt((""+F).trim())):(Qt(M,F),W=On(M),typeof F=="number"?F!==0&&!q.call(je,M)?ie=F+"px":ie=""+F:(O(F,M),ie=qt((""+F).trim()))),y?(y=!1,s.push(wn,W,hi,ie)):s.push(Si,W,hi,ie)}}y||s.push(un)}var kn=" ",An='="',un='"',Qn='=""';function sn(s,c,h,y){switch(h){case"style":{Ci(s,c,y);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(h.length>2&&(h[0]==="o"||h[0]==="O")&&(h[1]==="n"||h[1]==="N"))){var M=le(h);if(M!==null){switch(typeof y){case"function":case"symbol":return;case"boolean":if(!M.acceptsBooleans)return}var F=M.attributeName,W=F;switch(M.type){case X:y&&s.push(kn,W,Qn);return;case de:y===!0?s.push(kn,W,Qn):y===!1||s.push(kn,W,An,qt(y),un);return;case j:isNaN(y)||s.push(kn,W,An,qt(y),un);break;case re:!isNaN(y)&&y>=1&&s.push(kn,W,An,qt(y),un);break;default:M.sanitizeURL&&(L(y,F),y=""+y,vr(y)),s.push(kn,W,An,qt(y),un)}}else if(ce(h)){switch(typeof y){case"function":case"symbol":return;case"boolean":{var ie=h.toLowerCase().slice(0,5);if(ie!=="data-"&&ie!=="aria-")return}}s.push(kn,h,An,qt(y),un)}}}var pn=">",C="/>";function N(s,c,h){if(c!=null){if(h!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof c!="object"||!("__html"in c))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var y=c.__html;y!=null&&(H(y),s.push(""+y))}}var V=!1,ee=!1,Ee=!1,Se=!1,He=!1,st=!1,Pt=!1;function zt(s,c){{var h=s[c];if(h!=null){var y=pe(h);s.multiple&&!y?i("The `%s` prop supplied to <select> must be an array if `multiple` is true.",c):!s.multiple&&y&&i("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",c)}}}function Ht(s,c,h){Ae("select",c),zt(c,"value"),zt(c,"defaultValue"),c.value!==void 0&&c.defaultValue!==void 0&&!Ee&&(i("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),Ee=!0),s.push(Rn("select"));var y=null,M=null;for(var F in c)if(q.call(c,F)){var W=c[F];if(W==null)continue;switch(F){case"children":y=W;break;case"dangerouslySetInnerHTML":M=W;break;case"defaultValue":case"value":break;default:sn(s,h,F,W);break}}return s.push(pn),N(s,M,y),y}function xr(s){var c="";return r.Children.forEach(s,function(h){h!=null&&(c+=h,!He&&typeof h!="string"&&typeof h!="number"&&(He=!0,i("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),c}var Zr=' selected=""';function vn(s,c,h,y){var M=y.selectedValue;s.push(Rn("option"));var F=null,W=null,ie=null,Ce=null;for(var Ye in c)if(q.call(c,Ye)){var at=c[Ye];if(at==null)continue;switch(Ye){case"children":F=at;break;case"selected":ie=at,Pt||(i("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Pt=!0);break;case"dangerouslySetInnerHTML":Ce=at;break;case"value":W=at;default:sn(s,h,Ye,at);break}}if(M!=null){var It;if(W!==null?(L(W,"value"),It=""+W):(Ce!==null&&(st||(st=!0,i("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),It=xr(F)),pe(M))for(var tr=0;tr<M.length;tr++){L(M[tr],"value");var Dr=""+M[tr];if(Dr===It){s.push(Zr);break}}else L(M,"select.value"),""+M===It&&s.push(Zr)}else ie&&s.push(Zr);return s.push(pn),N(s,Ce,F),F}function yn(s,c,h){Ae("input",c),c.checked!==void 0&&c.defaultChecked!==void 0&&!ee&&(i("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",c.type),ee=!0),c.value!==void 0&&c.defaultValue!==void 0&&!V&&(i("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",c.type),V=!0),s.push(Rn("input"));var y=null,M=null,F=null,W=null;for(var ie in c)if(q.call(c,ie)){var Ce=c[ie];if(Ce==null)continue;switch(ie){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":W=Ce;break;case"defaultValue":M=Ce;break;case"checked":F=Ce;break;case"value":y=Ce;break;default:sn(s,h,ie,Ce);break}}return F!==null?sn(s,h,"checked",F):W!==null&&sn(s,h,"checked",W),y!==null?sn(s,h,"value",y):M!==null&&sn(s,h,"value",M),s.push(C),null}function li(s,c,h){Ae("textarea",c),c.value!==void 0&&c.defaultValue!==void 0&&!Se&&(i("Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components"),Se=!0),s.push(Rn("textarea"));var y=null,M=null,F=null;for(var W in c)if(q.call(c,W)){var ie=c[W];if(ie==null)continue;switch(W){case"children":F=ie;break;case"value":y=ie;break;case"defaultValue":M=ie;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:sn(s,h,W,ie);break}}if(y===null&&M!==null&&(y=M),s.push(pn),F!=null){if(i("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),y!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(pe(F)){if(F.length>1)throw new Error("<textarea> can only have at most one child.");H(F[0]),y=""+F[0]}H(F),y=""+F}return typeof y=="string"&&y[0]===`
|
87
|
-
`&&s.push(ei),y!==null&&(L(y,"value"),s.push(Yn(""+y))),null}function Bn(s,c,h,y){s.push(Rn(h));for(var M in c)if(q.call(c,M)){var F=c[M];if(F==null)continue;switch(M){case"children":case"dangerouslySetInnerHTML":throw new Error(h+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:sn(s,y,M,F);break}}return s.push(
|
86
|
+
*/var Zv;function $4(){return Zv||(Zv=1,process.env.NODE_ENV!=="production"&&function(){var r=A,e="18.2.0",t=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(s){{for(var c=arguments.length,h=new Array(c>1?c-1:0),y=1;y<c;y++)h[y-1]=arguments[y];l("warn",s,h)}}function i(s){{for(var c=arguments.length,h=new Array(c>1?c-1:0),y=1;y<c;y++)h[y-1]=arguments[y];l("error",s,h)}}function l(s,c,h){{var y=t.ReactDebugCurrentFrame,M=y.getStackAddendum();M!==""&&(c+="%s",h=h.concat([M]));var F=h.map(function(W){return String(W)});F.unshift("Warning: "+c),Function.prototype.apply.call(console[s],console,F)}}function u(s){s()}function f(s){}function g(s,c){m(s,c)}function m(s,c){return s.push(c)}function R(s){}function C(s){s.push(null)}function b(s){return s}function S(s){return s}function _(s,c){s.destroy(c)}function D(s){{var c=typeof Symbol=="function"&&Symbol.toStringTag,h=c&&s[Symbol.toStringTag]||s.constructor.name||"Object";return h}}function E(s){try{return x(s),!1}catch{return!0}}function x(s){return""+s}function L(s,c){if(E(s))return i("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",c,D(s)),x(s)}function O(s,c){if(E(s))return i("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",c,D(s)),x(s)}function H(s){if(E(s))return i("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",D(s)),x(s)}var q=Object.prototype.hasOwnProperty,z=0,K=1,ue=2,X=3,de=4,j=5,re=6,J=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",Q=J+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",he=new RegExp("^["+J+"]["+Q+"]*$"),me={},be={};function ce(s){return q.call(be,s)?!0:q.call(me,s)?!1:he.test(s)?(be[s]=!0,!0):(me[s]=!0,i("Invalid attribute name: `%s`",s),!1)}function ke(s,c,h,y){if(h!==null&&h.type===z)return!1;switch(typeof c){case"function":case"symbol":return!0;case"boolean":{if(h!==null)return!h.acceptsBooleans;var M=s.toLowerCase().slice(0,5);return M!=="data-"&&M!=="aria-"}default:return!1}}function le(s){return ve.hasOwnProperty(s)?ve[s]:null}function oe(s,c,h,y,M,F,W){this.acceptsBooleans=c===ue||c===X||c===de,this.attributeName=y,this.attributeNamespace=M,this.mustUseProperty=h,this.propertyName=s,this.type=c,this.sanitizeURL=F,this.removeEmptyString=W}var ve={},Oe=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];Oe.forEach(function(s){ve[s]=new oe(s,z,!1,s,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(s){var c=s[0],h=s[1];ve[c]=new oe(c,K,!1,h,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(s){ve[s]=new oe(s,ue,!1,s.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(s){ve[s]=new oe(s,ue,!1,s,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(s){ve[s]=new oe(s,X,!1,s.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(s){ve[s]=new oe(s,X,!0,s,null,!1,!1)}),["capture","download"].forEach(function(s){ve[s]=new oe(s,de,!1,s,null,!1,!1)}),["cols","rows","size","span"].forEach(function(s){ve[s]=new oe(s,re,!1,s,null,!1,!1)}),["rowSpan","start"].forEach(function(s){ve[s]=new oe(s,j,!1,s.toLowerCase(),null,!1,!1)});var et=/[\-\:]([a-z])/g,we=function(s){return s[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(s){var c=s.replace(et,we);ve[c]=new oe(c,K,!1,s,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(s){var c=s.replace(et,we);ve[c]=new oe(c,K,!1,s,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(s){var c=s.replace(et,we);ve[c]=new oe(c,K,!1,s,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(s){ve[s]=new oe(s,K,!1,s.toLowerCase(),null,!1,!1)});var Pe="xlinkHref";ve[Pe]=new oe("xlinkHref",K,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(s){ve[s]=new oe(s,K,!1,s.toLowerCase(),null,!0,!0)});var je={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function ze(s,c){return s+c.charAt(0).toUpperCase()+c.substring(1)}var We=["Webkit","ms","Moz","O"];Object.keys(je).forEach(function(s){We.forEach(function(c){je[ze(c,s)]=je[s]})});var De={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function Ae(s,c){De[c.type]||c.onChange||c.onInput||c.readOnly||c.disabled||c.value==null||i("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),c.onChange||c.readOnly||c.disabled||c.checked==null||i("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function _e(s,c){if(s.indexOf("-")===-1)return typeof c.is=="string";switch(s){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ge={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},lt={},$e=new RegExp("^(aria)-["+Q+"]*$"),ht=new RegExp("^(aria)[A-Z]["+Q+"]*$");function Le(s,c){{if(q.call(lt,c)&<[c])return!0;if(ht.test(c)){var h="aria-"+c.slice(4).toLowerCase(),y=Ge.hasOwnProperty(h)?h:null;if(y==null)return i("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",c),lt[c]=!0,!0;if(c!==y)return i("Invalid ARIA attribute `%s`. Did you mean `%s`?",c,y),lt[c]=!0,!0}if($e.test(c)){var M=c.toLowerCase(),F=Ge.hasOwnProperty(M)?M:null;if(F==null)return lt[c]=!0,!1;if(c!==F)return i("Unknown ARIA attribute `%s`. Did you mean `%s`?",c,F),lt[c]=!0,!0}}return!0}function Xe(s,c){{var h=[];for(var y in c){var M=Le(s,y);M||h.push(y)}var F=h.map(function(W){return"`"+W+"`"}).join(", ");h.length===1?i("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",F,s):h.length>1&&i("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",F,s)}}function it(s,c){_e(s,c)||Xe(s,c)}var Ct=!1;function _t(s,c){{if(s!=="input"&&s!=="textarea"&&s!=="select")return;c!=null&&c.value===null&&!Ct&&(Ct=!0,s==="select"&&c.multiple?i("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",s):i("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",s))}}var wt={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},bt=function(){};{var St={},Me=/^on./,pt=/^on[^A-Z]/,Et=new RegExp("^(aria)-["+Q+"]*$"),mt=new RegExp("^(aria)[A-Z]["+Q+"]*$");bt=function(s,c,h,y){if(q.call(St,c)&&St[c])return!0;var M=c.toLowerCase();if(M==="onfocusin"||M==="onfocusout")return i("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),St[c]=!0,!0;if(y!=null){var F=y.registrationNameDependencies,W=y.possibleRegistrationNames;if(F.hasOwnProperty(c))return!0;var ie=W.hasOwnProperty(M)?W[M]:null;if(ie!=null)return i("Invalid event handler property `%s`. Did you mean `%s`?",c,ie),St[c]=!0,!0;if(Me.test(c))return i("Unknown event handler property `%s`. It will be ignored.",c),St[c]=!0,!0}else if(Me.test(c))return pt.test(c)&&i("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",c),St[c]=!0,!0;if(Et.test(c)||mt.test(c))return!0;if(M==="innerhtml")return i("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),St[c]=!0,!0;if(M==="aria")return i("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),St[c]=!0,!0;if(M==="is"&&h!==null&&h!==void 0&&typeof h!="string")return i("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof h),St[c]=!0,!0;if(typeof h=="number"&&isNaN(h))return i("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",c),St[c]=!0,!0;var Ce=le(c),Ye=Ce!==null&&Ce.type===z;if(wt.hasOwnProperty(M)){var at=wt[M];if(at!==c)return i("Invalid DOM property `%s`. Did you mean `%s`?",c,at),St[c]=!0,!0}else if(!Ye&&c!==M)return i("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",c,M),St[c]=!0,!0;return typeof h=="boolean"&&ke(c,h,Ce)?(h?i('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',h,c,c,h,c):i('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',h,c,c,h,c,c,c),St[c]=!0,!0):Ye?!0:ke(c,h,Ce)?(St[c]=!0,!1):((h==="false"||h==="true")&&Ce!==null&&Ce.type===X&&(i("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",h,c,h==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',c,h),St[c]=!0),!0)}}var Dt=function(s,c,h){{var y=[];for(var M in c){var F=bt(s,M,c[M],h);F||y.push(M)}var W=y.map(function(ie){return"`"+ie+"`"}).join(", ");y.length===1?i("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",W,s):y.length>1&&i("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",W,s)}};function Ze(s,c,h){_e(s,c)||Dt(s,c,h)}var At=function(){};{var jt=/^(?:webkit|moz|o)[A-Z]/,mr=/^-ms-/,kr=/-(.)/g,Cr=/;\s*$/,ge={},ne={},Je=!1,ct=!1,tt=function(s){return s.replace(kr,function(c,h){return h.toUpperCase()})},Re=function(s){ge.hasOwnProperty(s)&&ge[s]||(ge[s]=!0,i("Unsupported style property %s. Did you mean %s?",s,tt(s.replace(mr,"ms-"))))},xt=function(s){ge.hasOwnProperty(s)&&ge[s]||(ge[s]=!0,i("Unsupported vendor-prefixed style property %s. Did you mean %s?",s,s.charAt(0).toUpperCase()+s.slice(1)))},Rt=function(s,c){ne.hasOwnProperty(c)&&ne[c]||(ne[c]=!0,i(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,s,c.replace(Cr,"")))},vt=function(s,c){Je||(Je=!0,i("`NaN` is an invalid value for the `%s` css style property.",s))},Mt=function(s,c){ct||(ct=!0,i("`Infinity` is an invalid value for the `%s` css style property.",s))};At=function(s,c){s.indexOf("-")>-1?Re(s):jt.test(s)?xt(s):Cr.test(c)&&Rt(s,c),typeof c=="number"&&(isNaN(c)?vt(s,c):isFinite(c)||Mt(s,c))}}var Qt=At,rr=/["'&<>]/;function Bt(s){H(s);var c=""+s,h=rr.exec(c);if(!h)return c;var y,M="",F,W=0;for(F=h.index;F<c.length;F++){switch(c.charCodeAt(F)){case 34:y=""";break;case 38:y="&";break;case 39:y="'";break;case 60:y="<";break;case 62:y=">";break;default:continue}W!==F&&(M+=c.substring(W,F)),W=F+1,M+=y}return W!==F?M+c.substring(W,F):M}function qt(s){return typeof s=="boolean"||typeof s=="number"?""+s:Bt(s)}var sr=/([A-Z])/g,Qe=/^ms-/;function Tt(s){return s.replace(sr,"-$1").toLowerCase().replace(Qe,"-ms-")}var yt=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,Lt=!1;function vr(s){!Lt&&yt.test(s)&&(Lt=!0,i("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(s)))}var Y=Array.isArray;function pe(s){return Y(s)}var Be="<script>";function ot(s,c,h,y,M){var F=s===void 0?"":s,W=Be,ie=[];return{bootstrapChunks:ie,startInlineScript:W,placeholderPrefix:F+"P:",segmentPrefix:F+"S:",boundaryPrefix:F+"B:",idPrefix:F,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var Ot=0,$t=1,kt=2,Ut=3,nr=4,ir=5,fr=6,Ur=7;function yr(s,c){return{insertionMode:s,selectedValue:c}}function Kn(s,c,h){switch(c){case"select":return yr($t,h.value!=null?h.value:h.defaultValue);case"svg":return yr(kt,null);case"math":return yr(Ut,null);case"foreignObject":return yr($t,null);case"table":return yr(nr,null);case"thead":case"tbody":case"tfoot":return yr(ir,null);case"colgroup":return yr(Ur,null);case"tr":return yr(fr,null)}return s.insertionMode>=nr||s.insertionMode===Ot?yr($t,null):s}var Cn=null;function Dn(s){var c=s.nextSuspenseID++;return s.boundaryPrefix+c.toString(16)}function Yr(s,c,h){var y=s.idPrefix,M=":"+y+"R"+c;return h>0&&(M+="H"+h.toString(32)),M+":"}function Yn(s){return qt(s)}var En="<!-- -->";function Xn(s,c,h,y){return c===""?y:(y&&s.push(En),s.push(Yn(c)),!0)}function Jn(s,c,h,y){h&&y&&s.push(En)}var on=new Map;function On(s){var c=on.get(s);if(c!==void 0)return c;var h=qt(Tt(s));return on.set(s,h),h}var wn=' style="',hi=":",Si=";";function Ci(s,c,h){if(typeof h!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");var y=!0;for(var M in h)if(q.call(h,M)){var F=h[M];if(!(F==null||typeof F=="boolean"||F==="")){var W=void 0,ie=void 0,Ce=M.indexOf("--")===0;Ce?(W=qt(M),O(F,M),ie=qt((""+F).trim())):(Qt(M,F),W=On(M),typeof F=="number"?F!==0&&!q.call(je,M)?ie=F+"px":ie=""+F:(O(F,M),ie=qt((""+F).trim()))),y?(y=!1,s.push(wn,W,hi,ie)):s.push(Si,W,hi,ie)}}y||s.push(un)}var kn=" ",An='="',un='"',Qn='=""';function sn(s,c,h,y){switch(h){case"style":{Ci(s,c,y);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(h.length>2&&(h[0]==="o"||h[0]==="O")&&(h[1]==="n"||h[1]==="N"))){var M=le(h);if(M!==null){switch(typeof y){case"function":case"symbol":return;case"boolean":if(!M.acceptsBooleans)return}var F=M.attributeName,W=F;switch(M.type){case X:y&&s.push(kn,W,Qn);return;case de:y===!0?s.push(kn,W,Qn):y===!1||s.push(kn,W,An,qt(y),un);return;case j:isNaN(y)||s.push(kn,W,An,qt(y),un);break;case re:!isNaN(y)&&y>=1&&s.push(kn,W,An,qt(y),un);break;default:M.sanitizeURL&&(L(y,F),y=""+y,vr(y)),s.push(kn,W,An,qt(y),un)}}else if(ce(h)){switch(typeof y){case"function":case"symbol":return;case"boolean":{var ie=h.toLowerCase().slice(0,5);if(ie!=="data-"&&ie!=="aria-")return}}s.push(kn,h,An,qt(y),un)}}}var pn=">",w="/>";function N(s,c,h){if(c!=null){if(h!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof c!="object"||!("__html"in c))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var y=c.__html;y!=null&&(H(y),s.push(""+y))}}var V=!1,ee=!1,Ee=!1,Se=!1,He=!1,st=!1,Pt=!1;function zt(s,c){{var h=s[c];if(h!=null){var y=pe(h);s.multiple&&!y?i("The `%s` prop supplied to <select> must be an array if `multiple` is true.",c):!s.multiple&&y&&i("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",c)}}}function Ht(s,c,h){Ae("select",c),zt(c,"value"),zt(c,"defaultValue"),c.value!==void 0&&c.defaultValue!==void 0&&!Ee&&(i("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),Ee=!0),s.push(Rn("select"));var y=null,M=null;for(var F in c)if(q.call(c,F)){var W=c[F];if(W==null)continue;switch(F){case"children":y=W;break;case"dangerouslySetInnerHTML":M=W;break;case"defaultValue":case"value":break;default:sn(s,h,F,W);break}}return s.push(pn),N(s,M,y),y}function xr(s){var c="";return r.Children.forEach(s,function(h){h!=null&&(c+=h,!He&&typeof h!="string"&&typeof h!="number"&&(He=!0,i("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),c}var Zr=' selected=""';function vn(s,c,h,y){var M=y.selectedValue;s.push(Rn("option"));var F=null,W=null,ie=null,Ce=null;for(var Ye in c)if(q.call(c,Ye)){var at=c[Ye];if(at==null)continue;switch(Ye){case"children":F=at;break;case"selected":ie=at,Pt||(i("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Pt=!0);break;case"dangerouslySetInnerHTML":Ce=at;break;case"value":W=at;default:sn(s,h,Ye,at);break}}if(M!=null){var It;if(W!==null?(L(W,"value"),It=""+W):(Ce!==null&&(st||(st=!0,i("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),It=xr(F)),pe(M))for(var tr=0;tr<M.length;tr++){L(M[tr],"value");var Dr=""+M[tr];if(Dr===It){s.push(Zr);break}}else L(M,"select.value"),""+M===It&&s.push(Zr)}else ie&&s.push(Zr);return s.push(pn),N(s,Ce,F),F}function yn(s,c,h){Ae("input",c),c.checked!==void 0&&c.defaultChecked!==void 0&&!ee&&(i("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",c.type),ee=!0),c.value!==void 0&&c.defaultValue!==void 0&&!V&&(i("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",c.type),V=!0),s.push(Rn("input"));var y=null,M=null,F=null,W=null;for(var ie in c)if(q.call(c,ie)){var Ce=c[ie];if(Ce==null)continue;switch(ie){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":W=Ce;break;case"defaultValue":M=Ce;break;case"checked":F=Ce;break;case"value":y=Ce;break;default:sn(s,h,ie,Ce);break}}return F!==null?sn(s,h,"checked",F):W!==null&&sn(s,h,"checked",W),y!==null?sn(s,h,"value",y):M!==null&&sn(s,h,"value",M),s.push(w),null}function li(s,c,h){Ae("textarea",c),c.value!==void 0&&c.defaultValue!==void 0&&!Se&&(i("Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components"),Se=!0),s.push(Rn("textarea"));var y=null,M=null,F=null;for(var W in c)if(q.call(c,W)){var ie=c[W];if(ie==null)continue;switch(W){case"children":F=ie;break;case"value":y=ie;break;case"defaultValue":M=ie;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:sn(s,h,W,ie);break}}if(y===null&&M!==null&&(y=M),s.push(pn),F!=null){if(i("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),y!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(pe(F)){if(F.length>1)throw new Error("<textarea> can only have at most one child.");H(F[0]),y=""+F[0]}H(F),y=""+F}return typeof y=="string"&&y[0]===`
|
87
|
+
`&&s.push(ei),y!==null&&(L(y,"value"),s.push(Yn(""+y))),null}function Bn(s,c,h,y){s.push(Rn(h));for(var M in c)if(q.call(c,M)){var F=c[M];if(F==null)continue;switch(M){case"children":case"dangerouslySetInnerHTML":throw new Error(h+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:sn(s,y,M,F);break}}return s.push(w),null}function wi(s,c,h){s.push(Rn("menuitem"));for(var y in c)if(q.call(c,y)){var M=c[y];if(M==null)continue;switch(y){case"children":case"dangerouslySetInnerHTML":throw new Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:sn(s,h,y,M);break}}return s.push(pn),null}function Xr(s,c,h){s.push(Rn("title"));var y=null;for(var M in c)if(q.call(c,M)){var F=c[M];if(F==null)continue;switch(M){case"children":y=F;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:sn(s,h,M,F);break}}s.push(pn);{var W=Array.isArray(y)&&y.length<2?y[0]||null:y;Array.isArray(y)&&y.length>1?i("A title element received an array with more than 1 element as children. In browsers title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):W!=null&&W.$$typeof!=null?i("A title element received a React element for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):W!=null&&typeof W!="string"&&typeof W!="number"&&i("A title element received a value that was not a string or number for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering")}return y}function pi(s,c,h,y){s.push(Rn(h));var M=null,F=null;for(var W in c)if(q.call(c,W)){var ie=c[W];if(ie==null)continue;switch(W){case"children":M=ie;break;case"dangerouslySetInnerHTML":F=ie;break;default:sn(s,y,W,ie);break}}return s.push(pn),N(s,F,M),typeof M=="string"?(s.push(Yn(M)),null):M}function Hn(s,c,h,y){s.push(Rn(h));var M=null,F=null;for(var W in c)if(q.call(c,W)){var ie=c[W];if(ie==null)continue;switch(W){case"children":M=ie;break;case"dangerouslySetInnerHTML":F=ie;break;case"style":Ci(s,y,ie);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:ce(W)&&typeof ie!="function"&&typeof ie!="symbol"&&s.push(kn,W,An,qt(ie),un);break}}return s.push(pn),N(s,F,M),M}var ei=`
|
88
88
|
`;function bo(s,c,h,y){s.push(Rn(h));var M=null,F=null;for(var W in c)if(q.call(c,W)){var ie=c[W];if(ie==null)continue;switch(W){case"children":M=ie;break;case"dangerouslySetInnerHTML":F=ie;break;default:sn(s,y,W,ie);break}}if(s.push(pn),F!=null){if(M!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof F!="object"||!("__html"in F))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var Ce=F.__html;Ce!=null&&(typeof Ce=="string"&&Ce.length>0&&Ce[0]===`
|
89
89
|
`?s.push(ei,Ce):(H(Ce),s.push(""+Ce)))}return typeof M=="string"&&M[0]===`
|
90
90
|
`&&s.push(ei),M}var ro=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,no=new Map;function Rn(s){var c=no.get(s);if(c===void 0){if(!ro.test(s))throw new Error("Invalid tag: "+s);c="<"+s,no.set(s,c)}return c}var _o="<!DOCTYPE html>";function ti(s,c,h,y,M){switch(it(c,h),_t(c,h),Ze(c,h,null),!h.suppressContentEditableWarning&&h.contentEditable&&h.children!=null&&i("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),M.insertionMode!==kt&&M.insertionMode!==Ut&&c.indexOf("-")===-1&&typeof h.is!="string"&&c.toLowerCase()!==c&&i("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",c),c){case"select":return Ht(s,h,y);case"option":return vn(s,h,y,M);case"textarea":return li(s,h,y);case"input":return yn(s,h,y);case"menuitem":return wi(s,h,y);case"title":return Xr(s,h,y);case"listing":case"pre":return bo(s,h,c,y);case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":return Bn(s,h,c,y);case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return pi(s,h,c,y);case"html":return M.insertionMode===Ot&&s.push(_o),pi(s,h,c,y);default:return c.indexOf("-")===-1&&typeof h.is!="string"?pi(s,h,c,y):Hn(s,h,c,y)}}var ri="</",$i=">";function Or(s,c,h){switch(c){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:s.push(ri,c,$i)}}function wr(s,c){for(var h=c.bootstrapChunks,y=0;y<h.length-1;y++)g(s,h[y]);return y<h.length?m(s,h[y]):!0}var Mr='<template id="',I='"></template>';function G(s,c,h){g(s,Mr),g(s,c.placeholderPrefix);var y=h.toString(16);return g(s,y),m(s,I)}var ae="<!--$-->",qe='<!--$?--><template id="',Yt='"></template>',Vt="<!--$!-->",pr="<!--/$-->",Sr="<template",dr='"',Ar=' data-dgst="',Jr=' data-msg="',In=' data-stck="',Vr="></template>";function Br(s,c){return m(s,ae)}function Qr(s,c,h){if(g(s,qe),h===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return g(s,h),m(s,Yt)}function ci(s,c,h,y,M){var F;return F=m(s,Vt),g(s,Sr),h&&(g(s,Ar),g(s,qt(h)),g(s,dr)),y&&(g(s,Jr),g(s,qt(y)),g(s,dr)),M&&(g(s,In),g(s,qt(M)),g(s,dr)),F=m(s,Vr),F}function gi(s,c){return m(s,pr)}function qn(s,c){return m(s,pr)}function xo(s,c){return m(s,pr)}var Ui='<div hidden id="',an='">',ps="</div>",zn='<svg aria-hidden="true" style="display:none" id="',fl='">',Ta="</svg>",Wi='<math aria-hidden="true" style="display:none" id="',So='">',$n="</math>",Kr='<table hidden id="',Ai='">',Ea="</table>",dl='<table hidden><tbody id="',$o='">',hl="</tbody></table>",pl='<table hidden><tr id="',Gs='">',gs="</tr></table>",ms='<table hidden><colgroup id="',Co='">',gl="</colgroup></table>";function Zs(s,c,h,y){switch(h.insertionMode){case Ot:case $t:return g(s,Ui),g(s,c.segmentPrefix),g(s,y.toString(16)),m(s,an);case kt:return g(s,zn),g(s,c.segmentPrefix),g(s,y.toString(16)),m(s,fl);case Ut:return g(s,Wi),g(s,c.segmentPrefix),g(s,y.toString(16)),m(s,So);case nr:return g(s,Kr),g(s,c.segmentPrefix),g(s,y.toString(16)),m(s,Ai);case ir:return g(s,dl),g(s,c.segmentPrefix),g(s,y.toString(16)),m(s,$o);case fr:return g(s,pl),g(s,c.segmentPrefix),g(s,y.toString(16)),m(s,Gs);case Ur:return g(s,ms),g(s,c.segmentPrefix),g(s,y.toString(16)),m(s,Co);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}function ka(s,c){switch(c.insertionMode){case Ot:case $t:return m(s,ps);case kt:return m(s,Ta);case Ut:return m(s,$n);case nr:return m(s,Ea);case ir:return m(s,hl);case fr:return m(s,gs);case Ur:return m(s,gl);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}var T="function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)}",P='function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}}',$='function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())}',te=T+';$RS("',Ie='$RS("',Te='","',Ke='")<\/script>';function gt(s,c,h){g(s,c.startInlineScript),c.sentCompleteSegmentFunction?g(s,Ie):(c.sentCompleteSegmentFunction=!0,g(s,te)),g(s,c.segmentPrefix);var y=h.toString(16);return g(s,y),g(s,Te),g(s,c.placeholderPrefix),g(s,y),m(s,Ke)}var Wt=P+';$RC("',hr='$RC("',ar='","',Gr='")<\/script>';function ni(s,c,h,y){if(g(s,c.startInlineScript),c.sentCompleteBoundaryFunction?g(s,hr):(c.sentCompleteBoundaryFunction=!0,g(s,Wt)),h===null)throw new Error("An ID must have been assigned before we can complete the boundary.");var M=y.toString(16);return g(s,h),g(s,ar),g(s,c.segmentPrefix),g(s,M),m(s,Gr)}var Ti=$+';$RX("',Ei='$RX("',Ks='"',ml=")<\/script>",vs=",";function Ys(s,c,h,y,M,F){if(g(s,c.startInlineScript),c.sentClientRenderFunction?g(s,Ei):(c.sentClientRenderFunction=!0,g(s,Ti)),h===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return g(s,h),g(s,Ks),(y||M||F)&&(g(s,vs),g(s,sc(y||""))),(M||F)&&(g(s,vs),g(s,sc(M||""))),F&&(g(s,vs),g(s,sc(F))),m(s,ml)}var of=/[<\u2028\u2029]/g;function sc(s){var c=JSON.stringify(s);return c.replace(of,function(h){switch(h){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function ac(s,c){var h=ot(c);return{bootstrapChunks:h.bootstrapChunks,startInlineScript:h.startInlineScript,placeholderPrefix:h.placeholderPrefix,segmentPrefix:h.segmentPrefix,boundaryPrefix:h.boundaryPrefix,idPrefix:h.idPrefix,nextSuspenseID:h.nextSuspenseID,sentCompleteSegmentFunction:h.sentCompleteSegmentFunction,sentCompleteBoundaryFunction:h.sentCompleteBoundaryFunction,sentClientRenderFunction:h.sentClientRenderFunction,generateStaticMarkup:s}}function su(){return{insertionMode:$t,selectedValue:null}}function wo(s,c,h,y){return h.generateStaticMarkup?(s.push(qt(c)),!1):Xn(s,c,h,y)}function Ra(s,c,h,y){if(!c.generateStaticMarkup)return Jn(s,c,h,y)}function sf(s,c){return c.generateStaticMarkup?!0:Br(s)}function af(s,c,h,y,M){return c.generateStaticMarkup?!0:ci(s,c,h,y,M)}function lf(s,c){return c.generateStaticMarkup?!0:gi(s)}function Xs(s,c){return c.generateStaticMarkup?!0:xo(s)}var fn=Object.assign,au=Symbol.for("react.element"),lu=Symbol.for("react.portal"),vl=Symbol.for("react.fragment"),ki=Symbol.for("react.strict_mode"),cu=Symbol.for("react.profiler"),yl=Symbol.for("react.provider"),Ao=Symbol.for("react.context"),ye=Symbol.for("react.forward_ref"),Ue=Symbol.for("react.suspense"),Ne=Symbol.for("react.suspense_list"),Nt=Symbol.for("react.memo"),or=Symbol.for("react.lazy"),Pr=Symbol.for("react.scope"),bn=Symbol.for("react.debug_trace_mode"),Wr=Symbol.for("react.legacy_hidden"),Js=Symbol.for("react.default_value"),uu=Symbol.iterator,Bi="@@iterator";function bl(s){if(s===null||typeof s!="object")return null;var c=uu&&s[uu]||s[Bi];return typeof c=="function"?c:null}function cf(s,c,h){var y=s.displayName;if(y)return y;var M=c.displayName||c.name||"";return M!==""?h+"("+M+")":h}function Uo(s){return s.displayName||"Context"}function en(s){if(s==null)return null;if(typeof s.tag=="number"&&i("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case vl:return"Fragment";case lu:return"Portal";case cu:return"Profiler";case ki:return"StrictMode";case Ue:return"Suspense";case Ne:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case Ao:var c=s;return Uo(c)+".Consumer";case yl:var h=s;return Uo(h._context)+".Provider";case ye:return cf(s,s.render,"ForwardRef");case Nt:var y=s.displayName||null;return y!==null?y:en(s.type)||"Memo";case or:{var M=s,F=M._payload,W=M._init;try{return en(W(F))}catch{return null}}}return null}var Wo=0,zr,lc,ln,To,cc,uc,fc;function Qs(){}Qs.__reactDisabledLog=!0;function Eo(){{if(Wo===0){zr=console.log,lc=console.info,ln=console.warn,To=console.error,cc=console.group,uc=console.groupCollapsed,fc=console.groupEnd;var s={configurable:!0,enumerable:!0,value:Qs,writable:!0};Object.defineProperties(console,{info:s,log:s,warn:s,error:s,group:s,groupCollapsed:s,groupEnd:s})}Wo++}}function Ia(){{if(Wo--,Wo===0){var s={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:fn({},s,{value:zr}),info:fn({},s,{value:lc}),warn:fn({},s,{value:ln}),error:fn({},s,{value:To}),group:fn({},s,{value:cc}),groupCollapsed:fn({},s,{value:uc}),groupEnd:fn({},s,{value:fc})})}Wo<0&&i("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var La=t.ReactCurrentDispatcher,ys;function ea(s,c,h){{if(ys===void 0)try{throw Error()}catch(M){var y=M.stack.trim().match(/\n( *(at )?)/);ys=y&&y[1]||""}return`
|
@@ -114,7 +114,7 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
|
|
114
114
|
Previous: %s
|
115
115
|
Incoming: %s`,Ii,"["+s.join(", ")+"]","["+c.join(", ")+"]");for(var h=0;h<c.length&&h<s.length;h++)if(!yf(s[h],c[h]))return!1;return!0}function fi(){if(Jo>0)throw new Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function Gi(){return Rr===null?El===null?(Ri=!1,El=Rr=fi()):(Ri=!0,Rr=El):Rr.next===null?(Ri=!1,Rr=Rr.next=fi()):(Ri=!0,Rr=Rr.next),Rr}function Cs(s,c){ui=c,vc=s,mi=!1,Ss=0}function vu(s,c,h,y){for(;aa;)aa=!1,Ss=0,Jo+=1,Rr=null,h=s(c,y);return Li(),h}function bc(){var s=Ss!==0;return s}function Li(){mi=!1,ui=null,vc=null,aa=!1,El=null,Jo=0,Nr=null,Rr=null}function _c(s){return mi&&i("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),Yo(s)}function ws(s){return Ii="useContext",lo(),Yo(s)}function di(s,c){return typeof c=="function"?c(s):c}function xc(s){return Ii="useState",Sc(di,s)}function Sc(s,c,h){if(s!==di&&(Ii="useReducer"),ui=lo(),Rr=Gi(),Ri){var y=Rr.queue,M=y.dispatch;if(Nr!==null){var F=Nr.get(y);if(F!==void 0){Nr.delete(y);var W=Rr.memoizedState,ie=F;do{var Ce=ie.action;mi=!0,W=s(W,Ce),mi=!1,ie=ie.next}while(ie!==null);return Rr.memoizedState=W,[W,M]}}return[Rr.memoizedState,M]}else{mi=!0;var Ye;s===di?Ye=typeof c=="function"?c():c:Ye=h!==void 0?h(c):c,mi=!1,Rr.memoizedState=Ye;var at=Rr.queue={last:null,dispatch:null},It=at.dispatch=wc.bind(null,ui,at);return[Rr.memoizedState,It]}}function Cc(s,c){ui=lo(),Rr=Gi();var h=c===void 0?null:c;if(Rr!==null){var y=Rr.memoizedState;if(y!==null&&h!==null){var M=y[1];if(yc(h,M))return y[0]}}mi=!0;var F=s();return mi=!1,Rr.memoizedState=[F,h],F}function As(s){ui=lo(),Rr=Gi();var c=Rr.memoizedState;if(c===null){var h={current:s};return Object.seal(h),Rr.memoizedState=h,h}else return c}function Qo(s,c){Ii="useLayoutEffect",i("useLayoutEffect does nothing on the server, because its effect cannot be encoded into the server renderer's output format. This will lead to a mismatch between the initial, non-hydrated UI and the intended UI. To avoid this, useLayoutEffect should only be used in components that render exclusively on the client. See https://reactjs.org/link/uselayouteffect-ssr for common fixes.")}function wc(s,c,h){if(Jo>=ja)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(s===ui){aa=!0;var y={action:h,next:null};Nr===null&&(Nr=new Map);var M=Nr.get(c);if(M===void 0)Nr.set(c,y);else{for(var F=M;F.next!==null;)F=F.next;F.next=y}}}function yu(s,c){return Cc(function(){return s},c)}function kl(s,c,h){return lo(),c(s._source)}function bf(s,c,h){if(h===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");return h()}function bu(s){return lo(),s}function Un(){throw new Error("startTransition cannot be called during server rendering.")}function Ac(){return lo(),[!1,Un]}function _u(){var s=vc,c=pf(s.treeContext),h=la;if(h===null)throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");var y=Ss++;return Yr(h,c,y)}function Mi(){}var Rl={readContext:_c,useContext:ws,useMemo:Cc,useReducer:Sc,useRef:As,useState:xc,useInsertionEffect:Mi,useLayoutEffect:Qo,useCallback:yu,useImperativeHandle:Mi,useEffect:Mi,useDebugValue:Mi,useDeferredValue:bu,useTransition:Ac,useId:_u,useMutableSource:kl,useSyncExternalStore:bf},la=null;function es(s){la=s}function Ba(s){try{var c="",h=s;do{switch(h.tag){case 0:c+=ea(h.type,null,null);break;case 1:c+=Vo(h.type,null,null);break;case 2:c+=Ro(h.type,null,null);break}h=h.parent}while(h);return c}catch(y){return`
|
116
116
|
Error generating stack: `+y.message+`
|
117
|
-
`+y.stack}}var Pn=t.ReactCurrentDispatcher,Ts=t.ReactDebugCurrentFrame,Il=0,ca=1,Ll=2,ua=3,Ml=4,co=0,Dl=1,Es=2,xu=12800;function Ha(s){return console.error(s),null}function fa(){}function da(s,c,h,y,M,F,W,ie,Ce){var Ye=[],at=new Set,It={destination:null,responseState:c,progressiveChunkSize:y===void 0?xu:y,status:co,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:at,pingedTasks:Ye,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:M===void 0?Ha:M,onAllReady:fa,onShellReady:W===void 0?fa:W,onShellError:fa,onFatalError:fa},tr=Ol(It,0,null,h,!1,!1);tr.parentFlushed=!0;var Dr=ks(It,s,null,tr,at,na,Ln,hf);return Ye.push(Dr),It}function Tc(s,c){var h=s.pingedTasks;h.push(c),h.length===1&&u(function(){return fo(s)})}function Su(s,c){return{id:Cn,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:c,errorDigest:null}}function ks(s,c,h,y,M,F,W,ie){s.allPendingTasks++,h===null?s.pendingRootTasks++:h.pendingTasks++;var Ce={node:c,ping:function(){return Tc(s,Ce)},blockedBoundary:h,blockedSegment:y,abortSet:M,legacyContext:F,context:W,treeContext:ie};return Ce.componentStack=null,M.add(Ce),Ce}function Ol(s,c,h,y,M,F){return{status:Il,id:-1,index:c,parentFlushed:!1,chunks:[],children:[],formatContext:y,boundary:h,lastPushedText:M,textEmbedded:F}}var Oo=null;function Pl(){return Oo===null||Oo.componentStack===null?"":Ba(Oo.componentStack)}function Po(s,c){s.componentStack={tag:0,parent:s.componentStack,type:c}}function qa(s,c){s.componentStack={tag:1,parent:s.componentStack,type:c}}function Zi(s,c){s.componentStack={tag:2,parent:s.componentStack,type:c}}function Ki(s){s.componentStack===null?i("Unexpectedly popped too many stack frames. This is a bug in React."):s.componentStack=s.componentStack.parent}var uo=null;function za(s,c){{var h;typeof c=="string"?h=c:c&&typeof c.message=="string"?h=c.message:h=String(c);var y=uo||Pl();uo=null,s.errorMessage=h,s.errorComponentStack=y}}function ts(s,c){var h=s.onError(c);if(h!=null&&typeof h!="string")throw new Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof h+'" instead');return h}function Yi(s,c){var h=s.onShellError;h(c);var y=s.onFatalError;y(c),s.destination!==null?(s.status=Es,_(s.destination,c)):(s.status=Dl,s.fatalError=c)}function ha(s,c,h){Po(c,"Suspense");var y=c.blockedBoundary,M=c.blockedSegment,F=h.fallback,W=h.children,ie=new Set,Ce=Su(s,ie),Ye=M.chunks.length,at=Ol(s,Ye,Ce,M.formatContext,!1,!1);M.children.push(at),M.lastPushedText=!1;var It=Ol(s,0,null,M.formatContext,!1,!1);It.parentFlushed=!0,c.blockedBoundary=Ce,c.blockedSegment=It;try{if(oi(s,c,W),Ra(It.chunks,s.responseState,It.lastPushedText,It.textEmbedded),It.status=ca,rs(Ce,It),Ce.pendingTasks===0){Ki(c);return}}catch(Dr){It.status=Ml,Ce.forceClientRender=!0,Ce.errorDigest=ts(s,Dr),za(Ce,Dr)}finally{c.blockedBoundary=y,c.blockedSegment=M}var tr=ks(s,F,y,at,ie,c.legacyContext,c.context,c.treeContext);tr.componentStack=c.componentStack,s.pingedTasks.push(tr),Ki(c)}function Nl(s,c,h,y){Po(c,h);var M=c.blockedSegment,F=ti(M.chunks,h,y,s.responseState,M.formatContext);M.lastPushedText=!1;var W=M.formatContext;M.formatContext=Kn(W,h,y),oi(s,c,F),M.formatContext=W,Or(M.chunks,h),M.lastPushedText=!1,Ki(c)}function $a(s){return s.prototype&&s.prototype.isReactComponent}function pa(s,c,h,y,M){var F={};Cs(c,F);var W=h(y,M);return vu(h,y,W,M)}function Cu(s,c,h,y,M){var F=h.render();h.props!==M&&(gr||i("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",en(y)||"a component"),gr=!0);{var W=y.childContextTypes;if(W!=null){var ie=c.legacyContext,Ce=du(h,y,ie,W);c.legacyContext=Ce,Tn(s,c,F),c.legacyContext=ie;return}}Tn(s,c,F)}function Ec(s,c,h,y){Zi(c,h);var M=Da(h,c.legacyContext),F=pu(h,y,M);ao(F,h,y,M),Cu(s,c,F,h,y),Ki(c)}var kc={},Rs={},Rc={},Fl={},gr=!1,Ua=!1,Ic=!1,Is=!1;function Lc(s,c,h,y){var M;if(M=Da(h,c.legacyContext),qa(c,h),h.prototype&&typeof h.prototype.render=="function"){var F=en(h)||"Unknown";kc[F]||(i("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",F,F),kc[F]=!0)}var W=pa(s,c,h,y,M),ie=bc();if(typeof W=="object"&&W!==null&&typeof W.render=="function"&&W.$$typeof===void 0){var Ce=en(h)||"Unknown";Rs[Ce]||(i("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",Ce,Ce,Ce),Rs[Ce]=!0)}if(typeof W=="object"&&W!==null&&typeof W.render=="function"&&W.$$typeof===void 0){{var Ye=en(h)||"Unknown";Rs[Ye]||(i("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",Ye,Ye,Ye),Rs[Ye]=!0)}ao(W,h,y,M),Cu(s,c,W,h,y)}else if(wu(h),ie){var at=c.treeContext,It=1,tr=0;c.treeContext=gc(at,It,tr);try{Tn(s,c,W)}finally{c.treeContext=at}}else Tn(s,c,W);Ki(c)}function wu(s){{if(s&&s.childContextTypes&&i("%s(...): childContextTypes cannot be defined on a function component.",s.displayName||s.name||"Component"),typeof s.getDerivedStateFromProps=="function"){var c=en(s)||"Unknown";Fl[c]||(i("%s: Function components do not support getDerivedStateFromProps.",c),Fl[c]=!0)}if(typeof s.contextType=="object"&&s.contextType!==null){var h=en(s)||"Unknown";Rc[h]||(i("%s: Function components do not support contextType.",h),Rc[h]=!0)}}}function Mc(s,c){if(s&&s.defaultProps){var h=fn({},c),y=s.defaultProps;for(var M in y)h[M]===void 0&&(h[M]=y[M]);return h}return c}function Di(s,c,h,y,M){qa(c,h.render);var F=pa(s,c,h.render,y,M),W=bc();if(W){var ie=c.treeContext,Ce=1,Ye=0;c.treeContext=gc(ie,Ce,Ye);try{Tn(s,c,F)}finally{c.treeContext=ie}}else Tn(s,c,F);Ki(c)}function _f(s,c,h,y,M){var F=h.type,W=Mc(F,y);Hl(s,c,F,W,M)}function jl(s,c,h,y){h._context===void 0?h!==h.Consumer&&(Is||(Is=!0,i("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):h=h._context;var M=y.children;typeof M!="function"&&i("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.");var F=Yo(h),W=M(F);Tn(s,c,W)}function Bl(s,c,h,y){var M=h._context,F=y.value,W=y.children,ie;ie=c.context,c.context=oa(M,F),Tn(s,c,W),c.context=Oa(M),ie!==c.context&&i("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function Au(s,c,h,y,M){Po(c,"Lazy");var F=h._payload,W=h._init,ie=W(F),Ce=Mc(ie,y);Hl(s,c,ie,Ce,M),Ki(c)}function Hl(s,c,h,y,M){if(typeof h=="function")if($a(h)){Ec(s,c,h,y);return}else{Lc(s,c,h,y);return}if(typeof h=="string"){Nl(s,c,h,y);return}switch(h){case Wr:case bn:case ki:case cu:case vl:{Tn(s,c,y.children);return}case Ne:{Po(c,"SuspenseList"),Tn(s,c,y.children),Ki(c);return}case Pr:throw new Error("ReactDOMServer does not yet support scope components.");case Ue:{ha(s,c,y);return}}if(typeof h=="object"&&h!==null)switch(h.$$typeof){case ye:{Di(s,c,h,y,M);return}case Nt:{_f(s,c,h,y,M);return}case yl:{Bl(s,c,h,y);return}case Ao:{jl(s,c,h,y);return}case or:{Au(s,c,h,y);return}}var F="";throw(h===void 0||typeof h=="object"&&h!==null&&Object.keys(h).length===0)&&(F+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(h==null?h:typeof h)+"."+F))}function Oi(s,c){typeof Symbol=="function"&&s[Symbol.toStringTag]==="Generator"&&(Ua||i("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),Ua=!0),s.entries===c&&(Ic||i("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Ic=!0)}function Tn(s,c,h){try{return Dc(s,c,h)}catch(y){throw typeof y=="object"&&y!==null&&typeof y.then=="function"||(uo=uo!==null?uo:Pl()),y}}function Dc(s,c,h){if(c.node=h,typeof h=="object"&&h!==null){switch(h.$$typeof){case au:{var y=h,M=y.type,F=y.props,W=y.ref;Hl(s,c,M,F,W);return}case lu:throw new Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");case or:{var ie=h,Ce=ie._payload,Ye=ie._init,at;try{at=Ye(Ce)}catch(os){throw typeof os=="object"&&os!==null&&typeof os.then=="function"&&Po(c,"Lazy"),os}Tn(s,c,at);return}}if(pe(h)){Wa(s,c,h);return}var It=bl(h);if(It){Oi(h,It);var tr=It.call(h);if(tr){var Dr=tr.next();if(!Dr.done){var Wn=[];do Wn.push(Dr.value),Dr=tr.next();while(!Dr.done);Wa(s,c,Wn);return}return}}var is=Object.prototype.toString.call(h);throw new Error("Objects are not valid as a React child (found: "+(is==="[object Object]"?"object with keys {"+Object.keys(h).join(", ")+"}":is)+"). If you meant to render a collection of children, use an array instead.")}if(typeof h=="string"){var ho=c.blockedSegment;ho.lastPushedText=wo(c.blockedSegment.chunks,h,s.responseState,ho.lastPushedText);return}if(typeof h=="number"){var po=c.blockedSegment;po.lastPushedText=wo(c.blockedSegment.chunks,""+h,s.responseState,po.lastPushedText);return}typeof h=="function"&&i("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}function Wa(s,c,h){for(var y=h.length,M=0;M<y;M++){var F=c.treeContext;c.treeContext=gc(F,y,M);try{oi(s,c,h[M])}finally{c.treeContext=F}}}function ql(s,c,h){var y=c.blockedSegment,M=y.chunks.length,F=Ol(s,M,null,y.formatContext,y.lastPushedText,!0);y.children.push(F),y.lastPushedText=!1;var W=ks(s,c.node,c.blockedBoundary,F,c.abortSet,c.legacyContext,c.context,c.treeContext);c.componentStack!==null&&(W.componentStack=c.componentStack.parent);var ie=W.ping;h.then(ie,ie)}function oi(s,c,h){var y=c.blockedSegment.formatContext,M=c.legacyContext,F=c.context,W=null;W=c.componentStack;try{return Tn(s,c,h)}catch(ie){if(Li(),typeof ie=="object"&&ie!==null&&typeof ie.then=="function"){ql(s,c,ie),c.blockedSegment.formatContext=y,c.legacyContext=M,c.context=F,Io(F),c.componentStack=W;return}else throw c.blockedSegment.formatContext=y,c.legacyContext=M,c.context=F,Io(F),c.componentStack=W,ie}}function Oc(s,c,h,y){var M=ts(s,y);if(c===null?Yi(s,y):(c.pendingTasks--,c.forceClientRender||(c.forceClientRender=!0,c.errorDigest=M,za(c,y),c.parentFlushed&&s.clientRenderedBoundaries.push(c))),s.allPendingTasks--,s.allPendingTasks===0){var F=s.onAllReady;F()}}function Pc(s){var c=this,h=s.blockedBoundary,y=s.blockedSegment;y.status=ua,No(c,h,y)}function zl(s,c,h){var y=s.blockedBoundary,M=s.blockedSegment;if(M.status=ua,y===null)c.allPendingTasks--,c.status!==Es&&(c.status=Es,c.destination!==null&&w(c.destination));else{if(y.pendingTasks--,!y.forceClientRender){y.forceClientRender=!0;var F=h===void 0?new Error("The render was aborted by the server without a reason."):h;y.errorDigest=c.onError(F);{var W="The server did not finish this Suspense boundary: ";F&&typeof F.message=="string"?F=W+F.message:F=W+String(F);var ie=Oo;Oo=s;try{za(y,F)}finally{Oo=ie}}y.parentFlushed&&c.clientRenderedBoundaries.push(y)}if(y.fallbackAbortableTasks.forEach(function(Ye){return zl(Ye,c,h)}),y.fallbackAbortableTasks.clear(),c.allPendingTasks--,c.allPendingTasks===0){var Ce=c.onAllReady;Ce()}}}function rs(s,c){if(c.chunks.length===0&&c.children.length===1&&c.children[0].boundary===null){var h=c.children[0];h.id=c.id,h.parentFlushed=!0,h.status===ca&&rs(s,h)}else{var y=s.completedSegments;y.push(c)}}function No(s,c,h){if(c===null){if(h.parentFlushed){if(s.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");s.completedRootSegment=h}if(s.pendingRootTasks--,s.pendingRootTasks===0){s.onShellError=fa;var y=s.onShellReady;y()}}else if(c.pendingTasks--,!c.forceClientRender){if(c.pendingTasks===0)h.parentFlushed&&h.status===ca&&rs(c,h),c.parentFlushed&&s.completedBoundaries.push(c),c.fallbackAbortableTasks.forEach(Pc,s),c.fallbackAbortableTasks.clear();else if(h.parentFlushed&&h.status===ca){rs(c,h);var M=c.completedSegments;M.length===1&&c.parentFlushed&&s.partialBoundaries.push(c)}}if(s.allPendingTasks--,s.allPendingTasks===0){var F=s.onAllReady;F()}}function xf(s,c){var h=c.blockedSegment;if(h.status===Il){Io(c.context);var y=null;y=Oo,Oo=c;try{Tn(s,c,c.node),Ra(h.chunks,s.responseState,h.lastPushedText,h.textEmbedded),c.abortSet.delete(c),h.status=ca,No(s,c.blockedBoundary,h)}catch(F){if(Li(),typeof F=="object"&&F!==null&&typeof F.then=="function"){var M=c.ping;F.then(M,M)}else c.abortSet.delete(c),h.status=Ml,Oc(s,c.blockedBoundary,h,F)}finally{Oo=y}}}function fo(s){if(s.status!==Es){var c=_s(),h=Pn.current;Pn.current=Rl;var y;y=Ts.getCurrentStack,Ts.getCurrentStack=Pl;var M=la;es(s.responseState);try{var F=s.pingedTasks,W;for(W=0;W<F.length;W++){var ie=F[W];xf(s,ie)}F.splice(0,W),s.destination!==null&&Ga(s,s.destination)}catch(Ce){ts(s,Ce),Yi(s,Ce)}finally{es(M),Pn.current=h,Ts.getCurrentStack=y,h===Rl&&Io(c)}}}function ns(s,c,h){switch(h.parentFlushed=!0,h.status){case Il:{var y=h.id=s.nextSegmentId++;return h.lastPushedText=!1,h.textEmbedded=!1,G(c,s.responseState,y)}case ca:{h.status=Ll;for(var M=!0,F=h.chunks,W=0,ie=h.children,Ce=0;Ce<ie.length;Ce++){for(var Ye=ie[Ce];W<Ye.index;W++)g(c,F[W]);M=ga(s,c,Ye)}for(;W<F.length-1;W++)g(c,F[W]);return W<F.length&&(M=m(c,F[W])),M}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function ga(s,c,h){var y=h.boundary;if(y===null)return ns(s,c,h);if(y.parentFlushed=!0,y.forceClientRender)return af(c,s.responseState,y.errorDigest,y.errorMessage,y.errorComponentStack),ns(s,c,h),Xs(c,s.responseState);if(y.pendingTasks>0){y.rootSegmentID=s.nextSegmentId++,y.completedSegments.length>0&&s.partialBoundaries.push(y);var M=y.id=Dn(s.responseState);return Qr(c,s.responseState,M),ns(s,c,h),qn(c,s.responseState)}else{if(y.byteSize>s.progressiveChunkSize)return y.rootSegmentID=s.nextSegmentId++,s.completedBoundaries.push(y),Qr(c,s.responseState,y.id),ns(s,c,h),qn(c,s.responseState);sf(c,s.responseState);var F=y.completedSegments;if(F.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var W=F[0];return ga(s,c,W),lf(c,s.responseState)}}function Nc(s,c,h){return Ys(c,s.responseState,h.id,h.errorDigest,h.errorMessage,h.errorComponentStack)}function Fc(s,c,h){return Zs(c,s.responseState,h.formatContext,h.id),ga(s,c,h),ka(c,h.formatContext)}function Va(s,c,h){for(var y=h.completedSegments,M=0;M<y.length;M++){var F=y[M];jc(s,c,h,F)}return y.length=0,ni(c,s.responseState,h.id,h.rootSegmentID)}function $l(s,c,h){for(var y=h.completedSegments,M=0;M<y.length;M++){var F=y[M];if(!jc(s,c,h,F))return M++,y.splice(0,M),!1}return y.splice(0,M),!0}function jc(s,c,h,y){if(y.status===Ll)return!0;var M=y.id;if(M===-1){var F=y.id=h.rootSegmentID;if(F===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return Fc(s,c,y)}else return Fc(s,c,y),gt(c,s.responseState,M)}function Ga(s,c){try{var h=s.completedRootSegment;h!==null&&s.pendingRootTasks===0&&(ga(s,c,h),s.completedRootSegment=null,wr(c,s.responseState));var y=s.clientRenderedBoundaries,M;for(M=0;M<y.length;M++){var F=y[M];if(!Nc(s,c,F)){s.destination=null,M++,y.splice(0,M);return}}y.splice(0,M);var W=s.completedBoundaries;for(M=0;M<W.length;M++){var ie=W[M];if(!Va(s,c,ie)){s.destination=null,M++,W.splice(0,M);return}}W.splice(0,M);var Ce=s.partialBoundaries;for(M=0;M<Ce.length;M++){var Ye=Ce[M];if(!$l(s,c,Ye)){s.destination=null,M++,Ce.splice(0,M);return}}Ce.splice(0,M);var at=s.completedBoundaries;for(M=0;M<at.length;M++){var It=at[M];if(!Va(s,c,It)){s.destination=null,M++,at.splice(0,M);return}}at.splice(0,M)}finally{s.allPendingTasks===0&&s.pingedTasks.length===0&&s.clientRenderedBoundaries.length===0&&s.completedBoundaries.length===0&&(s.abortableTasks.size!==0&&i("There was still abortable task at the root when we closed. This is a bug in React."),w(c))}}function Tu(s){u(function(){return fo(s)})}function Eu(s,c){if(s.status===Dl){s.status=Es,_(c,s.fatalError);return}if(s.status!==Es&&s.destination===null){s.destination=c;try{Ga(s,c)}catch(h){ts(s,h),Yi(s,h)}}}function Bc(s,c){try{var h=s.abortableTasks;h.forEach(function(y){return zl(y,s,c)}),h.clear(),s.destination!==null&&Ga(s,s.destination)}catch(y){ts(s,y),Yi(s,y)}}function si(){}function Xi(s,c,h,y){var M=!1,F=null,W="",ie={push:function(It){return It!==null&&(W+=It),!0},destroy:function(It){M=!0,F=It}},Ce=!1;function Ye(){Ce=!0}var at=da(s,ac(h,c?c.identifierPrefix:void 0),su(),1/0,si,void 0,Ye);if(Tu(at),Bc(at,y),Eu(at,ie),M)throw F;if(!Ce)throw new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");return W}function Sf(s,c){return Xi(s,c,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')}function ku(s,c){return Xi(s,c,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')}function Ul(){throw new Error("ReactDOMServer.renderToNodeStream(): The streaming API is not available in the browser. Use ReactDOMServer.renderToString() instead.")}function d(){throw new Error("ReactDOMServer.renderToStaticNodeStream(): The streaming API is not available in the browser. Use ReactDOMServer.renderToStaticMarkup() instead.")}Wc.renderToNodeStream=Ul,Wc.renderToStaticMarkup=ku,Wc.renderToStaticNodeStream=d,Wc.renderToString=Sf,Wc.version=e}()),Wc}var Ad={};/**
|
117
|
+
`+y.stack}}var Pn=t.ReactCurrentDispatcher,Ts=t.ReactDebugCurrentFrame,Il=0,ca=1,Ll=2,ua=3,Ml=4,co=0,Dl=1,Es=2,xu=12800;function Ha(s){return console.error(s),null}function fa(){}function da(s,c,h,y,M,F,W,ie,Ce){var Ye=[],at=new Set,It={destination:null,responseState:c,progressiveChunkSize:y===void 0?xu:y,status:co,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:at,pingedTasks:Ye,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:M===void 0?Ha:M,onAllReady:fa,onShellReady:W===void 0?fa:W,onShellError:fa,onFatalError:fa},tr=Ol(It,0,null,h,!1,!1);tr.parentFlushed=!0;var Dr=ks(It,s,null,tr,at,na,Ln,hf);return Ye.push(Dr),It}function Tc(s,c){var h=s.pingedTasks;h.push(c),h.length===1&&u(function(){return fo(s)})}function Su(s,c){return{id:Cn,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:c,errorDigest:null}}function ks(s,c,h,y,M,F,W,ie){s.allPendingTasks++,h===null?s.pendingRootTasks++:h.pendingTasks++;var Ce={node:c,ping:function(){return Tc(s,Ce)},blockedBoundary:h,blockedSegment:y,abortSet:M,legacyContext:F,context:W,treeContext:ie};return Ce.componentStack=null,M.add(Ce),Ce}function Ol(s,c,h,y,M,F){return{status:Il,id:-1,index:c,parentFlushed:!1,chunks:[],children:[],formatContext:y,boundary:h,lastPushedText:M,textEmbedded:F}}var Oo=null;function Pl(){return Oo===null||Oo.componentStack===null?"":Ba(Oo.componentStack)}function Po(s,c){s.componentStack={tag:0,parent:s.componentStack,type:c}}function qa(s,c){s.componentStack={tag:1,parent:s.componentStack,type:c}}function Zi(s,c){s.componentStack={tag:2,parent:s.componentStack,type:c}}function Ki(s){s.componentStack===null?i("Unexpectedly popped too many stack frames. This is a bug in React."):s.componentStack=s.componentStack.parent}var uo=null;function za(s,c){{var h;typeof c=="string"?h=c:c&&typeof c.message=="string"?h=c.message:h=String(c);var y=uo||Pl();uo=null,s.errorMessage=h,s.errorComponentStack=y}}function ts(s,c){var h=s.onError(c);if(h!=null&&typeof h!="string")throw new Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof h+'" instead');return h}function Yi(s,c){var h=s.onShellError;h(c);var y=s.onFatalError;y(c),s.destination!==null?(s.status=Es,_(s.destination,c)):(s.status=Dl,s.fatalError=c)}function ha(s,c,h){Po(c,"Suspense");var y=c.blockedBoundary,M=c.blockedSegment,F=h.fallback,W=h.children,ie=new Set,Ce=Su(s,ie),Ye=M.chunks.length,at=Ol(s,Ye,Ce,M.formatContext,!1,!1);M.children.push(at),M.lastPushedText=!1;var It=Ol(s,0,null,M.formatContext,!1,!1);It.parentFlushed=!0,c.blockedBoundary=Ce,c.blockedSegment=It;try{if(oi(s,c,W),Ra(It.chunks,s.responseState,It.lastPushedText,It.textEmbedded),It.status=ca,rs(Ce,It),Ce.pendingTasks===0){Ki(c);return}}catch(Dr){It.status=Ml,Ce.forceClientRender=!0,Ce.errorDigest=ts(s,Dr),za(Ce,Dr)}finally{c.blockedBoundary=y,c.blockedSegment=M}var tr=ks(s,F,y,at,ie,c.legacyContext,c.context,c.treeContext);tr.componentStack=c.componentStack,s.pingedTasks.push(tr),Ki(c)}function Nl(s,c,h,y){Po(c,h);var M=c.blockedSegment,F=ti(M.chunks,h,y,s.responseState,M.formatContext);M.lastPushedText=!1;var W=M.formatContext;M.formatContext=Kn(W,h,y),oi(s,c,F),M.formatContext=W,Or(M.chunks,h),M.lastPushedText=!1,Ki(c)}function $a(s){return s.prototype&&s.prototype.isReactComponent}function pa(s,c,h,y,M){var F={};Cs(c,F);var W=h(y,M);return vu(h,y,W,M)}function Cu(s,c,h,y,M){var F=h.render();h.props!==M&&(gr||i("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",en(y)||"a component"),gr=!0);{var W=y.childContextTypes;if(W!=null){var ie=c.legacyContext,Ce=du(h,y,ie,W);c.legacyContext=Ce,Tn(s,c,F),c.legacyContext=ie;return}}Tn(s,c,F)}function Ec(s,c,h,y){Zi(c,h);var M=Da(h,c.legacyContext),F=pu(h,y,M);ao(F,h,y,M),Cu(s,c,F,h,y),Ki(c)}var kc={},Rs={},Rc={},Fl={},gr=!1,Ua=!1,Ic=!1,Is=!1;function Lc(s,c,h,y){var M;if(M=Da(h,c.legacyContext),qa(c,h),h.prototype&&typeof h.prototype.render=="function"){var F=en(h)||"Unknown";kc[F]||(i("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",F,F),kc[F]=!0)}var W=pa(s,c,h,y,M),ie=bc();if(typeof W=="object"&&W!==null&&typeof W.render=="function"&&W.$$typeof===void 0){var Ce=en(h)||"Unknown";Rs[Ce]||(i("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",Ce,Ce,Ce),Rs[Ce]=!0)}if(typeof W=="object"&&W!==null&&typeof W.render=="function"&&W.$$typeof===void 0){{var Ye=en(h)||"Unknown";Rs[Ye]||(i("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",Ye,Ye,Ye),Rs[Ye]=!0)}ao(W,h,y,M),Cu(s,c,W,h,y)}else if(wu(h),ie){var at=c.treeContext,It=1,tr=0;c.treeContext=gc(at,It,tr);try{Tn(s,c,W)}finally{c.treeContext=at}}else Tn(s,c,W);Ki(c)}function wu(s){{if(s&&s.childContextTypes&&i("%s(...): childContextTypes cannot be defined on a function component.",s.displayName||s.name||"Component"),typeof s.getDerivedStateFromProps=="function"){var c=en(s)||"Unknown";Fl[c]||(i("%s: Function components do not support getDerivedStateFromProps.",c),Fl[c]=!0)}if(typeof s.contextType=="object"&&s.contextType!==null){var h=en(s)||"Unknown";Rc[h]||(i("%s: Function components do not support contextType.",h),Rc[h]=!0)}}}function Mc(s,c){if(s&&s.defaultProps){var h=fn({},c),y=s.defaultProps;for(var M in y)h[M]===void 0&&(h[M]=y[M]);return h}return c}function Di(s,c,h,y,M){qa(c,h.render);var F=pa(s,c,h.render,y,M),W=bc();if(W){var ie=c.treeContext,Ce=1,Ye=0;c.treeContext=gc(ie,Ce,Ye);try{Tn(s,c,F)}finally{c.treeContext=ie}}else Tn(s,c,F);Ki(c)}function _f(s,c,h,y,M){var F=h.type,W=Mc(F,y);Hl(s,c,F,W,M)}function jl(s,c,h,y){h._context===void 0?h!==h.Consumer&&(Is||(Is=!0,i("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):h=h._context;var M=y.children;typeof M!="function"&&i("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.");var F=Yo(h),W=M(F);Tn(s,c,W)}function Bl(s,c,h,y){var M=h._context,F=y.value,W=y.children,ie;ie=c.context,c.context=oa(M,F),Tn(s,c,W),c.context=Oa(M),ie!==c.context&&i("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function Au(s,c,h,y,M){Po(c,"Lazy");var F=h._payload,W=h._init,ie=W(F),Ce=Mc(ie,y);Hl(s,c,ie,Ce,M),Ki(c)}function Hl(s,c,h,y,M){if(typeof h=="function")if($a(h)){Ec(s,c,h,y);return}else{Lc(s,c,h,y);return}if(typeof h=="string"){Nl(s,c,h,y);return}switch(h){case Wr:case bn:case ki:case cu:case vl:{Tn(s,c,y.children);return}case Ne:{Po(c,"SuspenseList"),Tn(s,c,y.children),Ki(c);return}case Pr:throw new Error("ReactDOMServer does not yet support scope components.");case Ue:{ha(s,c,y);return}}if(typeof h=="object"&&h!==null)switch(h.$$typeof){case ye:{Di(s,c,h,y,M);return}case Nt:{_f(s,c,h,y,M);return}case yl:{Bl(s,c,h,y);return}case Ao:{jl(s,c,h,y);return}case or:{Au(s,c,h,y);return}}var F="";throw(h===void 0||typeof h=="object"&&h!==null&&Object.keys(h).length===0)&&(F+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(h==null?h:typeof h)+"."+F))}function Oi(s,c){typeof Symbol=="function"&&s[Symbol.toStringTag]==="Generator"&&(Ua||i("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),Ua=!0),s.entries===c&&(Ic||i("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Ic=!0)}function Tn(s,c,h){try{return Dc(s,c,h)}catch(y){throw typeof y=="object"&&y!==null&&typeof y.then=="function"||(uo=uo!==null?uo:Pl()),y}}function Dc(s,c,h){if(c.node=h,typeof h=="object"&&h!==null){switch(h.$$typeof){case au:{var y=h,M=y.type,F=y.props,W=y.ref;Hl(s,c,M,F,W);return}case lu:throw new Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");case or:{var ie=h,Ce=ie._payload,Ye=ie._init,at;try{at=Ye(Ce)}catch(os){throw typeof os=="object"&&os!==null&&typeof os.then=="function"&&Po(c,"Lazy"),os}Tn(s,c,at);return}}if(pe(h)){Wa(s,c,h);return}var It=bl(h);if(It){Oi(h,It);var tr=It.call(h);if(tr){var Dr=tr.next();if(!Dr.done){var Wn=[];do Wn.push(Dr.value),Dr=tr.next();while(!Dr.done);Wa(s,c,Wn);return}return}}var is=Object.prototype.toString.call(h);throw new Error("Objects are not valid as a React child (found: "+(is==="[object Object]"?"object with keys {"+Object.keys(h).join(", ")+"}":is)+"). If you meant to render a collection of children, use an array instead.")}if(typeof h=="string"){var ho=c.blockedSegment;ho.lastPushedText=wo(c.blockedSegment.chunks,h,s.responseState,ho.lastPushedText);return}if(typeof h=="number"){var po=c.blockedSegment;po.lastPushedText=wo(c.blockedSegment.chunks,""+h,s.responseState,po.lastPushedText);return}typeof h=="function"&&i("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}function Wa(s,c,h){for(var y=h.length,M=0;M<y;M++){var F=c.treeContext;c.treeContext=gc(F,y,M);try{oi(s,c,h[M])}finally{c.treeContext=F}}}function ql(s,c,h){var y=c.blockedSegment,M=y.chunks.length,F=Ol(s,M,null,y.formatContext,y.lastPushedText,!0);y.children.push(F),y.lastPushedText=!1;var W=ks(s,c.node,c.blockedBoundary,F,c.abortSet,c.legacyContext,c.context,c.treeContext);c.componentStack!==null&&(W.componentStack=c.componentStack.parent);var ie=W.ping;h.then(ie,ie)}function oi(s,c,h){var y=c.blockedSegment.formatContext,M=c.legacyContext,F=c.context,W=null;W=c.componentStack;try{return Tn(s,c,h)}catch(ie){if(Li(),typeof ie=="object"&&ie!==null&&typeof ie.then=="function"){ql(s,c,ie),c.blockedSegment.formatContext=y,c.legacyContext=M,c.context=F,Io(F),c.componentStack=W;return}else throw c.blockedSegment.formatContext=y,c.legacyContext=M,c.context=F,Io(F),c.componentStack=W,ie}}function Oc(s,c,h,y){var M=ts(s,y);if(c===null?Yi(s,y):(c.pendingTasks--,c.forceClientRender||(c.forceClientRender=!0,c.errorDigest=M,za(c,y),c.parentFlushed&&s.clientRenderedBoundaries.push(c))),s.allPendingTasks--,s.allPendingTasks===0){var F=s.onAllReady;F()}}function Pc(s){var c=this,h=s.blockedBoundary,y=s.blockedSegment;y.status=ua,No(c,h,y)}function zl(s,c,h){var y=s.blockedBoundary,M=s.blockedSegment;if(M.status=ua,y===null)c.allPendingTasks--,c.status!==Es&&(c.status=Es,c.destination!==null&&C(c.destination));else{if(y.pendingTasks--,!y.forceClientRender){y.forceClientRender=!0;var F=h===void 0?new Error("The render was aborted by the server without a reason."):h;y.errorDigest=c.onError(F);{var W="The server did not finish this Suspense boundary: ";F&&typeof F.message=="string"?F=W+F.message:F=W+String(F);var ie=Oo;Oo=s;try{za(y,F)}finally{Oo=ie}}y.parentFlushed&&c.clientRenderedBoundaries.push(y)}if(y.fallbackAbortableTasks.forEach(function(Ye){return zl(Ye,c,h)}),y.fallbackAbortableTasks.clear(),c.allPendingTasks--,c.allPendingTasks===0){var Ce=c.onAllReady;Ce()}}}function rs(s,c){if(c.chunks.length===0&&c.children.length===1&&c.children[0].boundary===null){var h=c.children[0];h.id=c.id,h.parentFlushed=!0,h.status===ca&&rs(s,h)}else{var y=s.completedSegments;y.push(c)}}function No(s,c,h){if(c===null){if(h.parentFlushed){if(s.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");s.completedRootSegment=h}if(s.pendingRootTasks--,s.pendingRootTasks===0){s.onShellError=fa;var y=s.onShellReady;y()}}else if(c.pendingTasks--,!c.forceClientRender){if(c.pendingTasks===0)h.parentFlushed&&h.status===ca&&rs(c,h),c.parentFlushed&&s.completedBoundaries.push(c),c.fallbackAbortableTasks.forEach(Pc,s),c.fallbackAbortableTasks.clear();else if(h.parentFlushed&&h.status===ca){rs(c,h);var M=c.completedSegments;M.length===1&&c.parentFlushed&&s.partialBoundaries.push(c)}}if(s.allPendingTasks--,s.allPendingTasks===0){var F=s.onAllReady;F()}}function xf(s,c){var h=c.blockedSegment;if(h.status===Il){Io(c.context);var y=null;y=Oo,Oo=c;try{Tn(s,c,c.node),Ra(h.chunks,s.responseState,h.lastPushedText,h.textEmbedded),c.abortSet.delete(c),h.status=ca,No(s,c.blockedBoundary,h)}catch(F){if(Li(),typeof F=="object"&&F!==null&&typeof F.then=="function"){var M=c.ping;F.then(M,M)}else c.abortSet.delete(c),h.status=Ml,Oc(s,c.blockedBoundary,h,F)}finally{Oo=y}}}function fo(s){if(s.status!==Es){var c=_s(),h=Pn.current;Pn.current=Rl;var y;y=Ts.getCurrentStack,Ts.getCurrentStack=Pl;var M=la;es(s.responseState);try{var F=s.pingedTasks,W;for(W=0;W<F.length;W++){var ie=F[W];xf(s,ie)}F.splice(0,W),s.destination!==null&&Ga(s,s.destination)}catch(Ce){ts(s,Ce),Yi(s,Ce)}finally{es(M),Pn.current=h,Ts.getCurrentStack=y,h===Rl&&Io(c)}}}function ns(s,c,h){switch(h.parentFlushed=!0,h.status){case Il:{var y=h.id=s.nextSegmentId++;return h.lastPushedText=!1,h.textEmbedded=!1,G(c,s.responseState,y)}case ca:{h.status=Ll;for(var M=!0,F=h.chunks,W=0,ie=h.children,Ce=0;Ce<ie.length;Ce++){for(var Ye=ie[Ce];W<Ye.index;W++)g(c,F[W]);M=ga(s,c,Ye)}for(;W<F.length-1;W++)g(c,F[W]);return W<F.length&&(M=m(c,F[W])),M}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function ga(s,c,h){var y=h.boundary;if(y===null)return ns(s,c,h);if(y.parentFlushed=!0,y.forceClientRender)return af(c,s.responseState,y.errorDigest,y.errorMessage,y.errorComponentStack),ns(s,c,h),Xs(c,s.responseState);if(y.pendingTasks>0){y.rootSegmentID=s.nextSegmentId++,y.completedSegments.length>0&&s.partialBoundaries.push(y);var M=y.id=Dn(s.responseState);return Qr(c,s.responseState,M),ns(s,c,h),qn(c,s.responseState)}else{if(y.byteSize>s.progressiveChunkSize)return y.rootSegmentID=s.nextSegmentId++,s.completedBoundaries.push(y),Qr(c,s.responseState,y.id),ns(s,c,h),qn(c,s.responseState);sf(c,s.responseState);var F=y.completedSegments;if(F.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var W=F[0];return ga(s,c,W),lf(c,s.responseState)}}function Nc(s,c,h){return Ys(c,s.responseState,h.id,h.errorDigest,h.errorMessage,h.errorComponentStack)}function Fc(s,c,h){return Zs(c,s.responseState,h.formatContext,h.id),ga(s,c,h),ka(c,h.formatContext)}function Va(s,c,h){for(var y=h.completedSegments,M=0;M<y.length;M++){var F=y[M];jc(s,c,h,F)}return y.length=0,ni(c,s.responseState,h.id,h.rootSegmentID)}function $l(s,c,h){for(var y=h.completedSegments,M=0;M<y.length;M++){var F=y[M];if(!jc(s,c,h,F))return M++,y.splice(0,M),!1}return y.splice(0,M),!0}function jc(s,c,h,y){if(y.status===Ll)return!0;var M=y.id;if(M===-1){var F=y.id=h.rootSegmentID;if(F===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return Fc(s,c,y)}else return Fc(s,c,y),gt(c,s.responseState,M)}function Ga(s,c){try{var h=s.completedRootSegment;h!==null&&s.pendingRootTasks===0&&(ga(s,c,h),s.completedRootSegment=null,wr(c,s.responseState));var y=s.clientRenderedBoundaries,M;for(M=0;M<y.length;M++){var F=y[M];if(!Nc(s,c,F)){s.destination=null,M++,y.splice(0,M);return}}y.splice(0,M);var W=s.completedBoundaries;for(M=0;M<W.length;M++){var ie=W[M];if(!Va(s,c,ie)){s.destination=null,M++,W.splice(0,M);return}}W.splice(0,M);var Ce=s.partialBoundaries;for(M=0;M<Ce.length;M++){var Ye=Ce[M];if(!$l(s,c,Ye)){s.destination=null,M++,Ce.splice(0,M);return}}Ce.splice(0,M);var at=s.completedBoundaries;for(M=0;M<at.length;M++){var It=at[M];if(!Va(s,c,It)){s.destination=null,M++,at.splice(0,M);return}}at.splice(0,M)}finally{s.allPendingTasks===0&&s.pingedTasks.length===0&&s.clientRenderedBoundaries.length===0&&s.completedBoundaries.length===0&&(s.abortableTasks.size!==0&&i("There was still abortable task at the root when we closed. This is a bug in React."),C(c))}}function Tu(s){u(function(){return fo(s)})}function Eu(s,c){if(s.status===Dl){s.status=Es,_(c,s.fatalError);return}if(s.status!==Es&&s.destination===null){s.destination=c;try{Ga(s,c)}catch(h){ts(s,h),Yi(s,h)}}}function Bc(s,c){try{var h=s.abortableTasks;h.forEach(function(y){return zl(y,s,c)}),h.clear(),s.destination!==null&&Ga(s,s.destination)}catch(y){ts(s,y),Yi(s,y)}}function si(){}function Xi(s,c,h,y){var M=!1,F=null,W="",ie={push:function(It){return It!==null&&(W+=It),!0},destroy:function(It){M=!0,F=It}},Ce=!1;function Ye(){Ce=!0}var at=da(s,ac(h,c?c.identifierPrefix:void 0),su(),1/0,si,void 0,Ye);if(Tu(at),Bc(at,y),Eu(at,ie),M)throw F;if(!Ce)throw new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");return W}function Sf(s,c){return Xi(s,c,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')}function ku(s,c){return Xi(s,c,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')}function Ul(){throw new Error("ReactDOMServer.renderToNodeStream(): The streaming API is not available in the browser. Use ReactDOMServer.renderToString() instead.")}function d(){throw new Error("ReactDOMServer.renderToStaticNodeStream(): The streaming API is not available in the browser. Use ReactDOMServer.renderToStaticMarkup() instead.")}Wc.renderToNodeStream=Ul,Wc.renderToStaticMarkup=ku,Wc.renderToStaticNodeStream=d,Wc.renderToString=Sf,Wc.version=e}()),Wc}var Ad={};/**
|
118
118
|
* @license React
|
119
119
|
* react-dom-server.browser.development.js
|
120
120
|
*
|
@@ -122,11 +122,11 @@ Error generating stack: `+y.message+`
|
|
122
122
|
*
|
123
123
|
* This source code is licensed under the MIT license found in the
|
124
124
|
* LICENSE file in the root directory of this source tree.
|
125
|
-
*/var Kv;function U4(){return Kv||(Kv=1,process.env.NODE_ENV!=="production"&&function(){var r=A,e="18.2.0",t=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(d){{for(var s=arguments.length,c=new Array(s>1?s-1:0),h=1;h<s;h++)c[h-1]=arguments[h];l("warn",d,c)}}function i(d){{for(var s=arguments.length,c=new Array(s>1?s-1:0),h=1;h<s;h++)c[h-1]=arguments[h];l("error",d,c)}}function l(d,s,c){{var h=t.ReactDebugCurrentFrame,y=h.getStackAddendum();y!==""&&(s+="%s",c=c.concat([y]));var M=c.map(function(F){return String(F)});M.unshift("Warning: "+s),Function.prototype.apply.call(console[d],console,M)}}function u(d){d()}var f=512,g=null,m=0;function R(d){g=new Uint8Array(f),m=0}function w(d,s){if(s.length!==0){if(s.length>f){m>0&&(d.enqueue(new Uint8Array(g.buffer,0,m)),g=new Uint8Array(f),m=0),d.enqueue(s);return}var c=s,h=g.length-m;h<c.length&&(h===0?d.enqueue(g):(g.set(c.subarray(0,h),m),d.enqueue(g),c=c.subarray(h)),g=new Uint8Array(f),m=0),g.set(c,m),m+=c.length}}function b(d,s){return w(d,s),!0}function S(d){g&&m>0&&(d.enqueue(new Uint8Array(g.buffer,0,m)),g=null,m=0)}function _(d){d.close()}var D=new TextEncoder;function E(d){return D.encode(d)}function x(d){return D.encode(d)}function L(d,s){typeof d.error=="function"?d.error(s):d.close()}function O(d){{var s=typeof Symbol=="function"&&Symbol.toStringTag,c=s&&d[Symbol.toStringTag]||d.constructor.name||"Object";return c}}function H(d){try{return q(d),!1}catch{return!0}}function q(d){return""+d}function z(d,s){if(H(d))return i("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",s,O(d)),q(d)}function K(d,s){if(H(d))return i("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",s,O(d)),q(d)}function ue(d){if(H(d))return i("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",O(d)),q(d)}var X=Object.prototype.hasOwnProperty,de=0,j=1,re=2,J=3,Q=4,he=5,me=6,be=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",ce=be+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",ke=new RegExp("^["+be+"]["+ce+"]*$"),le={},oe={};function ve(d){return X.call(oe,d)?!0:X.call(le,d)?!1:ke.test(d)?(oe[d]=!0,!0):(le[d]=!0,i("Invalid attribute name: `%s`",d),!1)}function Oe(d,s,c,h){if(c!==null&&c.type===de)return!1;switch(typeof s){case"function":case"symbol":return!0;case"boolean":{if(c!==null)return!c.acceptsBooleans;var y=d.toLowerCase().slice(0,5);return y!=="data-"&&y!=="aria-"}default:return!1}}function et(d){return Pe.hasOwnProperty(d)?Pe[d]:null}function we(d,s,c,h,y,M,F){this.acceptsBooleans=s===re||s===J||s===Q,this.attributeName=h,this.attributeNamespace=y,this.mustUseProperty=c,this.propertyName=d,this.type=s,this.sanitizeURL=M,this.removeEmptyString=F}var Pe={},je=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];je.forEach(function(d){Pe[d]=new we(d,de,!1,d,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(d){var s=d[0],c=d[1];Pe[s]=new we(s,j,!1,c,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(d){Pe[d]=new we(d,re,!1,d.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(d){Pe[d]=new we(d,re,!1,d,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(d){Pe[d]=new we(d,J,!1,d.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(d){Pe[d]=new we(d,J,!0,d,null,!1,!1)}),["capture","download"].forEach(function(d){Pe[d]=new we(d,Q,!1,d,null,!1,!1)}),["cols","rows","size","span"].forEach(function(d){Pe[d]=new we(d,me,!1,d,null,!1,!1)}),["rowSpan","start"].forEach(function(d){Pe[d]=new we(d,he,!1,d.toLowerCase(),null,!1,!1)});var ze=/[\-\:]([a-z])/g,We=function(d){return d[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(d){var s=d.replace(ze,We);Pe[s]=new we(s,j,!1,d,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(d){var s=d.replace(ze,We);Pe[s]=new we(s,j,!1,d,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(d){var s=d.replace(ze,We);Pe[s]=new we(s,j,!1,d,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(d){Pe[d]=new we(d,j,!1,d.toLowerCase(),null,!1,!1)});var De="xlinkHref";Pe[De]=new we("xlinkHref",j,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(d){Pe[d]=new we(d,j,!1,d.toLowerCase(),null,!0,!0)});var Ae={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function _e(d,s){return d+s.charAt(0).toUpperCase()+s.substring(1)}var Ge=["Webkit","ms","Moz","O"];Object.keys(Ae).forEach(function(d){Ge.forEach(function(s){Ae[_e(s,d)]=Ae[d]})});var lt={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function $e(d,s){lt[s.type]||s.onChange||s.onInput||s.readOnly||s.disabled||s.value==null||i("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),s.onChange||s.readOnly||s.disabled||s.checked==null||i("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function ht(d,s){if(d.indexOf("-")===-1)return typeof s.is=="string";switch(d){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Le={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},Xe={},it=new RegExp("^(aria)-["+ce+"]*$"),Ct=new RegExp("^(aria)[A-Z]["+ce+"]*$");function _t(d,s){{if(X.call(Xe,s)&&Xe[s])return!0;if(Ct.test(s)){var c="aria-"+s.slice(4).toLowerCase(),h=Le.hasOwnProperty(c)?c:null;if(h==null)return i("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",s),Xe[s]=!0,!0;if(s!==h)return i("Invalid ARIA attribute `%s`. Did you mean `%s`?",s,h),Xe[s]=!0,!0}if(it.test(s)){var y=s.toLowerCase(),M=Le.hasOwnProperty(y)?y:null;if(M==null)return Xe[s]=!0,!1;if(s!==M)return i("Unknown ARIA attribute `%s`. Did you mean `%s`?",s,M),Xe[s]=!0,!0}}return!0}function wt(d,s){{var c=[];for(var h in s){var y=_t(d,h);y||c.push(h)}var M=c.map(function(F){return"`"+F+"`"}).join(", ");c.length===1?i("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",M,d):c.length>1&&i("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",M,d)}}function bt(d,s){ht(d,s)||wt(d,s)}var St=!1;function Me(d,s){{if(d!=="input"&&d!=="textarea"&&d!=="select")return;s!=null&&s.value===null&&!St&&(St=!0,d==="select"&&s.multiple?i("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",d):i("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",d))}}var pt={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},Et=function(){};{var mt={},Dt=/^on./,Ze=/^on[^A-Z]/,At=new RegExp("^(aria)-["+ce+"]*$"),jt=new RegExp("^(aria)[A-Z]["+ce+"]*$");Et=function(d,s,c,h){if(X.call(mt,s)&&mt[s])return!0;var y=s.toLowerCase();if(y==="onfocusin"||y==="onfocusout")return i("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),mt[s]=!0,!0;if(h!=null){var M=h.registrationNameDependencies,F=h.possibleRegistrationNames;if(M.hasOwnProperty(s))return!0;var W=F.hasOwnProperty(y)?F[y]:null;if(W!=null)return i("Invalid event handler property `%s`. Did you mean `%s`?",s,W),mt[s]=!0,!0;if(Dt.test(s))return i("Unknown event handler property `%s`. It will be ignored.",s),mt[s]=!0,!0}else if(Dt.test(s))return Ze.test(s)&&i("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",s),mt[s]=!0,!0;if(At.test(s)||jt.test(s))return!0;if(y==="innerhtml")return i("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),mt[s]=!0,!0;if(y==="aria")return i("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),mt[s]=!0,!0;if(y==="is"&&c!==null&&c!==void 0&&typeof c!="string")return i("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof c),mt[s]=!0,!0;if(typeof c=="number"&&isNaN(c))return i("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",s),mt[s]=!0,!0;var ie=et(s),Ce=ie!==null&&ie.type===de;if(pt.hasOwnProperty(y)){var Ye=pt[y];if(Ye!==s)return i("Invalid DOM property `%s`. Did you mean `%s`?",s,Ye),mt[s]=!0,!0}else if(!Ce&&s!==y)return i("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",s,y),mt[s]=!0,!0;return typeof c=="boolean"&&Oe(s,c,ie)?(c?i('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',c,s,s,c,s):i('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',c,s,s,c,s,s,s),mt[s]=!0,!0):Ce?!0:Oe(s,c,ie)?(mt[s]=!0,!1):((c==="false"||c==="true")&&ie!==null&&ie.type===J&&(i("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",c,s,c==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',s,c),mt[s]=!0),!0)}}var mr=function(d,s,c){{var h=[];for(var y in s){var M=Et(d,y,s[y],c);M||h.push(y)}var F=h.map(function(W){return"`"+W+"`"}).join(", ");h.length===1?i("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",F,d):h.length>1&&i("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",F,d)}};function kr(d,s,c){ht(d,s)||mr(d,s,c)}var Cr=function(){};{var ge=/^(?:webkit|moz|o)[A-Z]/,ne=/^-ms-/,Je=/-(.)/g,ct=/;\s*$/,tt={},Re={},xt=!1,Rt=!1,vt=function(d){return d.replace(Je,function(s,c){return c.toUpperCase()})},Mt=function(d){tt.hasOwnProperty(d)&&tt[d]||(tt[d]=!0,i("Unsupported style property %s. Did you mean %s?",d,vt(d.replace(ne,"ms-"))))},Qt=function(d){tt.hasOwnProperty(d)&&tt[d]||(tt[d]=!0,i("Unsupported vendor-prefixed style property %s. Did you mean %s?",d,d.charAt(0).toUpperCase()+d.slice(1)))},rr=function(d,s){Re.hasOwnProperty(s)&&Re[s]||(Re[s]=!0,i(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,d,s.replace(ct,"")))},Bt=function(d,s){xt||(xt=!0,i("`NaN` is an invalid value for the `%s` css style property.",d))},qt=function(d,s){Rt||(Rt=!0,i("`Infinity` is an invalid value for the `%s` css style property.",d))};Cr=function(d,s){d.indexOf("-")>-1?Mt(d):ge.test(d)?Qt(d):ct.test(s)&&rr(d,s),typeof s=="number"&&(isNaN(s)?Bt(d,s):isFinite(s)||qt(d,s))}}var sr=Cr,Qe=/["'&<>]/;function Tt(d){ue(d);var s=""+d,c=Qe.exec(s);if(!c)return s;var h,y="",M,F=0;for(M=c.index;M<s.length;M++){switch(s.charCodeAt(M)){case 34:h=""";break;case 38:h="&";break;case 39:h="'";break;case 60:h="<";break;case 62:h=">";break;default:continue}F!==M&&(y+=s.substring(F,M)),F=M+1,y+=h}return F!==M?y+s.substring(F,M):y}function yt(d){return typeof d=="boolean"||typeof d=="number"?""+d:Tt(d)}var Lt=/([A-Z])/g,vr=/^ms-/;function Y(d){return d.replace(Lt,"-$1").toLowerCase().replace(vr,"-ms-")}var pe=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,Be=!1;function ot(d){!Be&&pe.test(d)&&(Be=!0,i("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(d)))}var Ot=Array.isArray;function $t(d){return Ot(d)}var kt=x("<script>"),Ut=x("<\/script>"),nr=x('<script src="'),ir=x('<script type="module" src="'),fr=x('" async=""><\/script>');function Ur(d){return ue(d),(""+d).replace(yr,Kn)}var yr=/(<\/|<)(s)(cript)/gi,Kn=function(d,s,c,h){return""+s+(c==="s"?"\\u0073":"\\u0053")+h};function Cn(d,s,c,h,y){var M=d===void 0?"":d,F=s===void 0?kt:x('<script nonce="'+yt(s)+'">'),W=[];if(c!==void 0&&W.push(F,E(Ur(c)),Ut),h!==void 0)for(var ie=0;ie<h.length;ie++)W.push(nr,E(yt(h[ie])),fr);if(y!==void 0)for(var Ce=0;Ce<y.length;Ce++)W.push(ir,E(yt(y[Ce])),fr);return{bootstrapChunks:W,startInlineScript:F,placeholderPrefix:x(M+"P:"),segmentPrefix:x(M+"S:"),boundaryPrefix:M+"B:",idPrefix:M,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var Dn=0,Yr=1,Yn=2,En=3,Xn=4,Jn=5,on=6,On=7;function wn(d,s){return{insertionMode:d,selectedValue:s}}function hi(d){var s=d==="http://www.w3.org/2000/svg"?Yn:d==="http://www.w3.org/1998/Math/MathML"?En:Dn;return wn(s,null)}function Si(d,s,c){switch(s){case"select":return wn(Yr,c.value!=null?c.value:c.defaultValue);case"svg":return wn(Yn,null);case"math":return wn(En,null);case"foreignObject":return wn(Yr,null);case"table":return wn(Xn,null);case"thead":case"tbody":case"tfoot":return wn(Jn,null);case"colgroup":return wn(On,null);case"tr":return wn(on,null)}return d.insertionMode>=Xn||d.insertionMode===Dn?wn(Yr,null):d}var Ci=null;function kn(d){var s=d.nextSuspenseID++;return x(d.boundaryPrefix+s.toString(16))}function An(d,s,c){var h=d.idPrefix,y=":"+h+"R"+s;return c>0&&(y+="H"+c.toString(32)),y+":"}function un(d){return yt(d)}var Qn=x("<!-- -->");function sn(d,s,c,h){return s===""?h:(h&&d.push(Qn),d.push(E(un(s))),!0)}function pn(d,s,c,h){c&&h&&d.push(Qn)}var C=new Map;function N(d){var s=C.get(d);if(s!==void 0)return s;var c=x(yt(Y(d)));return C.set(d,c),c}var V=x(' style="'),ee=x(":"),Ee=x(";");function Se(d,s,c){if(typeof c!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");var h=!0;for(var y in c)if(X.call(c,y)){var M=c[y];if(!(M==null||typeof M=="boolean"||M==="")){var F=void 0,W=void 0,ie=y.indexOf("--")===0;ie?(F=E(yt(y)),K(M,y),W=E(yt((""+M).trim()))):(sr(y,M),F=N(y),typeof M=="number"?M!==0&&!X.call(Ae,y)?W=E(M+"px"):W=E(""+M):(K(M,y),W=E(yt((""+M).trim())))),h?(h=!1,d.push(V,F,ee,W)):d.push(Ee,F,ee,W)}}h||d.push(Pt)}var He=x(" "),st=x('="'),Pt=x('"'),zt=x('=""');function Ht(d,s,c,h){switch(c){case"style":{Se(d,s,h);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(c.length>2&&(c[0]==="o"||c[0]==="O")&&(c[1]==="n"||c[1]==="N"))){var y=et(c);if(y!==null){switch(typeof h){case"function":case"symbol":return;case"boolean":if(!y.acceptsBooleans)return}var M=y.attributeName,F=E(M);switch(y.type){case J:h&&d.push(He,F,zt);return;case Q:h===!0?d.push(He,F,zt):h===!1||d.push(He,F,st,E(yt(h)),Pt);return;case he:isNaN(h)||d.push(He,F,st,E(yt(h)),Pt);break;case me:!isNaN(h)&&h>=1&&d.push(He,F,st,E(yt(h)),Pt);break;default:y.sanitizeURL&&(z(h,M),h=""+h,ot(h)),d.push(He,F,st,E(yt(h)),Pt)}}else if(ve(c)){switch(typeof h){case"function":case"symbol":return;case"boolean":{var W=c.toLowerCase().slice(0,5);if(W!=="data-"&&W!=="aria-")return}}d.push(He,E(c),st,E(yt(h)),Pt)}}}var xr=x(">"),Zr=x("/>");function vn(d,s,c){if(s!=null){if(c!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof s!="object"||!("__html"in s))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var h=s.__html;h!=null&&(ue(h),d.push(E(""+h)))}}var yn=!1,li=!1,Bn=!1,wi=!1,Xr=!1,pi=!1,Hn=!1;function ei(d,s){{var c=d[s];if(c!=null){var h=$t(c);d.multiple&&!h?i("The `%s` prop supplied to <select> must be an array if `multiple` is true.",s):!d.multiple&&h&&i("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",s)}}}function bo(d,s,c){$e("select",s),ei(s,"value"),ei(s,"defaultValue"),s.value!==void 0&&s.defaultValue!==void 0&&!Bn&&(i("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),Bn=!0),d.push(Yt("select"));var h=null,y=null;for(var M in s)if(X.call(s,M)){var F=s[M];if(F==null)continue;switch(M){case"children":h=F;break;case"dangerouslySetInnerHTML":y=F;break;case"defaultValue":case"value":break;default:Ht(d,c,M,F);break}}return d.push(xr),vn(d,y,h),h}function ro(d){var s="";return r.Children.forEach(d,function(c){c!=null&&(s+=c,!Xr&&typeof c!="string"&&typeof c!="number"&&(Xr=!0,i("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),s}var no=x(' selected=""');function Rn(d,s,c,h){var y=h.selectedValue;d.push(Yt("option"));var M=null,F=null,W=null,ie=null;for(var Ce in s)if(X.call(s,Ce)){var Ye=s[Ce];if(Ye==null)continue;switch(Ce){case"children":M=Ye;break;case"selected":W=Ye,Hn||(i("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Hn=!0);break;case"dangerouslySetInnerHTML":ie=Ye;break;case"value":F=Ye;default:Ht(d,c,Ce,Ye);break}}if(y!=null){var at;if(F!==null?(z(F,"value"),at=""+F):(ie!==null&&(pi||(pi=!0,i("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),at=ro(M)),$t(y))for(var It=0;It<y.length;It++){z(y[It],"value");var tr=""+y[It];if(tr===at){d.push(no);break}}else z(y,"select.value"),""+y===at&&d.push(no)}else W&&d.push(no);return d.push(xr),vn(d,ie,M),M}function _o(d,s,c){$e("input",s),s.checked!==void 0&&s.defaultChecked!==void 0&&!li&&(i("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",s.type),li=!0),s.value!==void 0&&s.defaultValue!==void 0&&!yn&&(i("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",s.type),yn=!0),d.push(Yt("input"));var h=null,y=null,M=null,F=null;for(var W in s)if(X.call(s,W)){var ie=s[W];if(ie==null)continue;switch(W){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":F=ie;break;case"defaultValue":y=ie;break;case"checked":M=ie;break;case"value":h=ie;break;default:Ht(d,c,W,ie);break}}return M!==null?Ht(d,c,"checked",M):F!==null&&Ht(d,c,"checked",F),h!==null?Ht(d,c,"value",h):y!==null&&Ht(d,c,"value",y),d.push(Zr),null}function ti(d,s,c){$e("textarea",s),s.value!==void 0&&s.defaultValue!==void 0&&!wi&&(i("Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components"),wi=!0),d.push(Yt("textarea"));var h=null,y=null,M=null;for(var F in s)if(X.call(s,F)){var W=s[F];if(W==null)continue;switch(F){case"children":M=W;break;case"value":h=W;break;case"defaultValue":y=W;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:Ht(d,c,F,W);break}}if(h===null&&y!==null&&(h=y),d.push(xr),M!=null){if(i("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),h!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if($t(M)){if(M.length>1)throw new Error("<textarea> can only have at most one child.");ue(M[0]),h=""+M[0]}ue(M),h=""+M}return typeof h=="string"&&h[0]===`
|
125
|
+
*/var Kv;function U4(){return Kv||(Kv=1,process.env.NODE_ENV!=="production"&&function(){var r=A,e="18.2.0",t=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(d){{for(var s=arguments.length,c=new Array(s>1?s-1:0),h=1;h<s;h++)c[h-1]=arguments[h];l("warn",d,c)}}function i(d){{for(var s=arguments.length,c=new Array(s>1?s-1:0),h=1;h<s;h++)c[h-1]=arguments[h];l("error",d,c)}}function l(d,s,c){{var h=t.ReactDebugCurrentFrame,y=h.getStackAddendum();y!==""&&(s+="%s",c=c.concat([y]));var M=c.map(function(F){return String(F)});M.unshift("Warning: "+s),Function.prototype.apply.call(console[d],console,M)}}function u(d){d()}var f=512,g=null,m=0;function R(d){g=new Uint8Array(f),m=0}function C(d,s){if(s.length!==0){if(s.length>f){m>0&&(d.enqueue(new Uint8Array(g.buffer,0,m)),g=new Uint8Array(f),m=0),d.enqueue(s);return}var c=s,h=g.length-m;h<c.length&&(h===0?d.enqueue(g):(g.set(c.subarray(0,h),m),d.enqueue(g),c=c.subarray(h)),g=new Uint8Array(f),m=0),g.set(c,m),m+=c.length}}function b(d,s){return C(d,s),!0}function S(d){g&&m>0&&(d.enqueue(new Uint8Array(g.buffer,0,m)),g=null,m=0)}function _(d){d.close()}var D=new TextEncoder;function E(d){return D.encode(d)}function x(d){return D.encode(d)}function L(d,s){typeof d.error=="function"?d.error(s):d.close()}function O(d){{var s=typeof Symbol=="function"&&Symbol.toStringTag,c=s&&d[Symbol.toStringTag]||d.constructor.name||"Object";return c}}function H(d){try{return q(d),!1}catch{return!0}}function q(d){return""+d}function z(d,s){if(H(d))return i("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",s,O(d)),q(d)}function K(d,s){if(H(d))return i("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",s,O(d)),q(d)}function ue(d){if(H(d))return i("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",O(d)),q(d)}var X=Object.prototype.hasOwnProperty,de=0,j=1,re=2,J=3,Q=4,he=5,me=6,be=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",ce=be+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",ke=new RegExp("^["+be+"]["+ce+"]*$"),le={},oe={};function ve(d){return X.call(oe,d)?!0:X.call(le,d)?!1:ke.test(d)?(oe[d]=!0,!0):(le[d]=!0,i("Invalid attribute name: `%s`",d),!1)}function Oe(d,s,c,h){if(c!==null&&c.type===de)return!1;switch(typeof s){case"function":case"symbol":return!0;case"boolean":{if(c!==null)return!c.acceptsBooleans;var y=d.toLowerCase().slice(0,5);return y!=="data-"&&y!=="aria-"}default:return!1}}function et(d){return Pe.hasOwnProperty(d)?Pe[d]:null}function we(d,s,c,h,y,M,F){this.acceptsBooleans=s===re||s===J||s===Q,this.attributeName=h,this.attributeNamespace=y,this.mustUseProperty=c,this.propertyName=d,this.type=s,this.sanitizeURL=M,this.removeEmptyString=F}var Pe={},je=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];je.forEach(function(d){Pe[d]=new we(d,de,!1,d,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(d){var s=d[0],c=d[1];Pe[s]=new we(s,j,!1,c,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(d){Pe[d]=new we(d,re,!1,d.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(d){Pe[d]=new we(d,re,!1,d,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(d){Pe[d]=new we(d,J,!1,d.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(d){Pe[d]=new we(d,J,!0,d,null,!1,!1)}),["capture","download"].forEach(function(d){Pe[d]=new we(d,Q,!1,d,null,!1,!1)}),["cols","rows","size","span"].forEach(function(d){Pe[d]=new we(d,me,!1,d,null,!1,!1)}),["rowSpan","start"].forEach(function(d){Pe[d]=new we(d,he,!1,d.toLowerCase(),null,!1,!1)});var ze=/[\-\:]([a-z])/g,We=function(d){return d[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(d){var s=d.replace(ze,We);Pe[s]=new we(s,j,!1,d,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(d){var s=d.replace(ze,We);Pe[s]=new we(s,j,!1,d,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(d){var s=d.replace(ze,We);Pe[s]=new we(s,j,!1,d,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(d){Pe[d]=new we(d,j,!1,d.toLowerCase(),null,!1,!1)});var De="xlinkHref";Pe[De]=new we("xlinkHref",j,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(d){Pe[d]=new we(d,j,!1,d.toLowerCase(),null,!0,!0)});var Ae={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function _e(d,s){return d+s.charAt(0).toUpperCase()+s.substring(1)}var Ge=["Webkit","ms","Moz","O"];Object.keys(Ae).forEach(function(d){Ge.forEach(function(s){Ae[_e(s,d)]=Ae[d]})});var lt={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function $e(d,s){lt[s.type]||s.onChange||s.onInput||s.readOnly||s.disabled||s.value==null||i("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),s.onChange||s.readOnly||s.disabled||s.checked==null||i("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function ht(d,s){if(d.indexOf("-")===-1)return typeof s.is=="string";switch(d){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Le={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},Xe={},it=new RegExp("^(aria)-["+ce+"]*$"),Ct=new RegExp("^(aria)[A-Z]["+ce+"]*$");function _t(d,s){{if(X.call(Xe,s)&&Xe[s])return!0;if(Ct.test(s)){var c="aria-"+s.slice(4).toLowerCase(),h=Le.hasOwnProperty(c)?c:null;if(h==null)return i("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",s),Xe[s]=!0,!0;if(s!==h)return i("Invalid ARIA attribute `%s`. Did you mean `%s`?",s,h),Xe[s]=!0,!0}if(it.test(s)){var y=s.toLowerCase(),M=Le.hasOwnProperty(y)?y:null;if(M==null)return Xe[s]=!0,!1;if(s!==M)return i("Unknown ARIA attribute `%s`. Did you mean `%s`?",s,M),Xe[s]=!0,!0}}return!0}function wt(d,s){{var c=[];for(var h in s){var y=_t(d,h);y||c.push(h)}var M=c.map(function(F){return"`"+F+"`"}).join(", ");c.length===1?i("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",M,d):c.length>1&&i("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",M,d)}}function bt(d,s){ht(d,s)||wt(d,s)}var St=!1;function Me(d,s){{if(d!=="input"&&d!=="textarea"&&d!=="select")return;s!=null&&s.value===null&&!St&&(St=!0,d==="select"&&s.multiple?i("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",d):i("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",d))}}var pt={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},Et=function(){};{var mt={},Dt=/^on./,Ze=/^on[^A-Z]/,At=new RegExp("^(aria)-["+ce+"]*$"),jt=new RegExp("^(aria)[A-Z]["+ce+"]*$");Et=function(d,s,c,h){if(X.call(mt,s)&&mt[s])return!0;var y=s.toLowerCase();if(y==="onfocusin"||y==="onfocusout")return i("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),mt[s]=!0,!0;if(h!=null){var M=h.registrationNameDependencies,F=h.possibleRegistrationNames;if(M.hasOwnProperty(s))return!0;var W=F.hasOwnProperty(y)?F[y]:null;if(W!=null)return i("Invalid event handler property `%s`. Did you mean `%s`?",s,W),mt[s]=!0,!0;if(Dt.test(s))return i("Unknown event handler property `%s`. It will be ignored.",s),mt[s]=!0,!0}else if(Dt.test(s))return Ze.test(s)&&i("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",s),mt[s]=!0,!0;if(At.test(s)||jt.test(s))return!0;if(y==="innerhtml")return i("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),mt[s]=!0,!0;if(y==="aria")return i("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),mt[s]=!0,!0;if(y==="is"&&c!==null&&c!==void 0&&typeof c!="string")return i("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof c),mt[s]=!0,!0;if(typeof c=="number"&&isNaN(c))return i("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",s),mt[s]=!0,!0;var ie=et(s),Ce=ie!==null&&ie.type===de;if(pt.hasOwnProperty(y)){var Ye=pt[y];if(Ye!==s)return i("Invalid DOM property `%s`. Did you mean `%s`?",s,Ye),mt[s]=!0,!0}else if(!Ce&&s!==y)return i("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",s,y),mt[s]=!0,!0;return typeof c=="boolean"&&Oe(s,c,ie)?(c?i('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',c,s,s,c,s):i('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',c,s,s,c,s,s,s),mt[s]=!0,!0):Ce?!0:Oe(s,c,ie)?(mt[s]=!0,!1):((c==="false"||c==="true")&&ie!==null&&ie.type===J&&(i("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",c,s,c==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',s,c),mt[s]=!0),!0)}}var mr=function(d,s,c){{var h=[];for(var y in s){var M=Et(d,y,s[y],c);M||h.push(y)}var F=h.map(function(W){return"`"+W+"`"}).join(", ");h.length===1?i("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",F,d):h.length>1&&i("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",F,d)}};function kr(d,s,c){ht(d,s)||mr(d,s,c)}var Cr=function(){};{var ge=/^(?:webkit|moz|o)[A-Z]/,ne=/^-ms-/,Je=/-(.)/g,ct=/;\s*$/,tt={},Re={},xt=!1,Rt=!1,vt=function(d){return d.replace(Je,function(s,c){return c.toUpperCase()})},Mt=function(d){tt.hasOwnProperty(d)&&tt[d]||(tt[d]=!0,i("Unsupported style property %s. Did you mean %s?",d,vt(d.replace(ne,"ms-"))))},Qt=function(d){tt.hasOwnProperty(d)&&tt[d]||(tt[d]=!0,i("Unsupported vendor-prefixed style property %s. Did you mean %s?",d,d.charAt(0).toUpperCase()+d.slice(1)))},rr=function(d,s){Re.hasOwnProperty(s)&&Re[s]||(Re[s]=!0,i(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,d,s.replace(ct,"")))},Bt=function(d,s){xt||(xt=!0,i("`NaN` is an invalid value for the `%s` css style property.",d))},qt=function(d,s){Rt||(Rt=!0,i("`Infinity` is an invalid value for the `%s` css style property.",d))};Cr=function(d,s){d.indexOf("-")>-1?Mt(d):ge.test(d)?Qt(d):ct.test(s)&&rr(d,s),typeof s=="number"&&(isNaN(s)?Bt(d,s):isFinite(s)||qt(d,s))}}var sr=Cr,Qe=/["'&<>]/;function Tt(d){ue(d);var s=""+d,c=Qe.exec(s);if(!c)return s;var h,y="",M,F=0;for(M=c.index;M<s.length;M++){switch(s.charCodeAt(M)){case 34:h=""";break;case 38:h="&";break;case 39:h="'";break;case 60:h="<";break;case 62:h=">";break;default:continue}F!==M&&(y+=s.substring(F,M)),F=M+1,y+=h}return F!==M?y+s.substring(F,M):y}function yt(d){return typeof d=="boolean"||typeof d=="number"?""+d:Tt(d)}var Lt=/([A-Z])/g,vr=/^ms-/;function Y(d){return d.replace(Lt,"-$1").toLowerCase().replace(vr,"-ms-")}var pe=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,Be=!1;function ot(d){!Be&&pe.test(d)&&(Be=!0,i("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(d)))}var Ot=Array.isArray;function $t(d){return Ot(d)}var kt=x("<script>"),Ut=x("<\/script>"),nr=x('<script src="'),ir=x('<script type="module" src="'),fr=x('" async=""><\/script>');function Ur(d){return ue(d),(""+d).replace(yr,Kn)}var yr=/(<\/|<)(s)(cript)/gi,Kn=function(d,s,c,h){return""+s+(c==="s"?"\\u0073":"\\u0053")+h};function Cn(d,s,c,h,y){var M=d===void 0?"":d,F=s===void 0?kt:x('<script nonce="'+yt(s)+'">'),W=[];if(c!==void 0&&W.push(F,E(Ur(c)),Ut),h!==void 0)for(var ie=0;ie<h.length;ie++)W.push(nr,E(yt(h[ie])),fr);if(y!==void 0)for(var Ce=0;Ce<y.length;Ce++)W.push(ir,E(yt(y[Ce])),fr);return{bootstrapChunks:W,startInlineScript:F,placeholderPrefix:x(M+"P:"),segmentPrefix:x(M+"S:"),boundaryPrefix:M+"B:",idPrefix:M,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var Dn=0,Yr=1,Yn=2,En=3,Xn=4,Jn=5,on=6,On=7;function wn(d,s){return{insertionMode:d,selectedValue:s}}function hi(d){var s=d==="http://www.w3.org/2000/svg"?Yn:d==="http://www.w3.org/1998/Math/MathML"?En:Dn;return wn(s,null)}function Si(d,s,c){switch(s){case"select":return wn(Yr,c.value!=null?c.value:c.defaultValue);case"svg":return wn(Yn,null);case"math":return wn(En,null);case"foreignObject":return wn(Yr,null);case"table":return wn(Xn,null);case"thead":case"tbody":case"tfoot":return wn(Jn,null);case"colgroup":return wn(On,null);case"tr":return wn(on,null)}return d.insertionMode>=Xn||d.insertionMode===Dn?wn(Yr,null):d}var Ci=null;function kn(d){var s=d.nextSuspenseID++;return x(d.boundaryPrefix+s.toString(16))}function An(d,s,c){var h=d.idPrefix,y=":"+h+"R"+s;return c>0&&(y+="H"+c.toString(32)),y+":"}function un(d){return yt(d)}var Qn=x("<!-- -->");function sn(d,s,c,h){return s===""?h:(h&&d.push(Qn),d.push(E(un(s))),!0)}function pn(d,s,c,h){c&&h&&d.push(Qn)}var w=new Map;function N(d){var s=w.get(d);if(s!==void 0)return s;var c=x(yt(Y(d)));return w.set(d,c),c}var V=x(' style="'),ee=x(":"),Ee=x(";");function Se(d,s,c){if(typeof c!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");var h=!0;for(var y in c)if(X.call(c,y)){var M=c[y];if(!(M==null||typeof M=="boolean"||M==="")){var F=void 0,W=void 0,ie=y.indexOf("--")===0;ie?(F=E(yt(y)),K(M,y),W=E(yt((""+M).trim()))):(sr(y,M),F=N(y),typeof M=="number"?M!==0&&!X.call(Ae,y)?W=E(M+"px"):W=E(""+M):(K(M,y),W=E(yt((""+M).trim())))),h?(h=!1,d.push(V,F,ee,W)):d.push(Ee,F,ee,W)}}h||d.push(Pt)}var He=x(" "),st=x('="'),Pt=x('"'),zt=x('=""');function Ht(d,s,c,h){switch(c){case"style":{Se(d,s,h);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(c.length>2&&(c[0]==="o"||c[0]==="O")&&(c[1]==="n"||c[1]==="N"))){var y=et(c);if(y!==null){switch(typeof h){case"function":case"symbol":return;case"boolean":if(!y.acceptsBooleans)return}var M=y.attributeName,F=E(M);switch(y.type){case J:h&&d.push(He,F,zt);return;case Q:h===!0?d.push(He,F,zt):h===!1||d.push(He,F,st,E(yt(h)),Pt);return;case he:isNaN(h)||d.push(He,F,st,E(yt(h)),Pt);break;case me:!isNaN(h)&&h>=1&&d.push(He,F,st,E(yt(h)),Pt);break;default:y.sanitizeURL&&(z(h,M),h=""+h,ot(h)),d.push(He,F,st,E(yt(h)),Pt)}}else if(ve(c)){switch(typeof h){case"function":case"symbol":return;case"boolean":{var W=c.toLowerCase().slice(0,5);if(W!=="data-"&&W!=="aria-")return}}d.push(He,E(c),st,E(yt(h)),Pt)}}}var xr=x(">"),Zr=x("/>");function vn(d,s,c){if(s!=null){if(c!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof s!="object"||!("__html"in s))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var h=s.__html;h!=null&&(ue(h),d.push(E(""+h)))}}var yn=!1,li=!1,Bn=!1,wi=!1,Xr=!1,pi=!1,Hn=!1;function ei(d,s){{var c=d[s];if(c!=null){var h=$t(c);d.multiple&&!h?i("The `%s` prop supplied to <select> must be an array if `multiple` is true.",s):!d.multiple&&h&&i("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",s)}}}function bo(d,s,c){$e("select",s),ei(s,"value"),ei(s,"defaultValue"),s.value!==void 0&&s.defaultValue!==void 0&&!Bn&&(i("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),Bn=!0),d.push(Yt("select"));var h=null,y=null;for(var M in s)if(X.call(s,M)){var F=s[M];if(F==null)continue;switch(M){case"children":h=F;break;case"dangerouslySetInnerHTML":y=F;break;case"defaultValue":case"value":break;default:Ht(d,c,M,F);break}}return d.push(xr),vn(d,y,h),h}function ro(d){var s="";return r.Children.forEach(d,function(c){c!=null&&(s+=c,!Xr&&typeof c!="string"&&typeof c!="number"&&(Xr=!0,i("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),s}var no=x(' selected=""');function Rn(d,s,c,h){var y=h.selectedValue;d.push(Yt("option"));var M=null,F=null,W=null,ie=null;for(var Ce in s)if(X.call(s,Ce)){var Ye=s[Ce];if(Ye==null)continue;switch(Ce){case"children":M=Ye;break;case"selected":W=Ye,Hn||(i("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Hn=!0);break;case"dangerouslySetInnerHTML":ie=Ye;break;case"value":F=Ye;default:Ht(d,c,Ce,Ye);break}}if(y!=null){var at;if(F!==null?(z(F,"value"),at=""+F):(ie!==null&&(pi||(pi=!0,i("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),at=ro(M)),$t(y))for(var It=0;It<y.length;It++){z(y[It],"value");var tr=""+y[It];if(tr===at){d.push(no);break}}else z(y,"select.value"),""+y===at&&d.push(no)}else W&&d.push(no);return d.push(xr),vn(d,ie,M),M}function _o(d,s,c){$e("input",s),s.checked!==void 0&&s.defaultChecked!==void 0&&!li&&(i("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",s.type),li=!0),s.value!==void 0&&s.defaultValue!==void 0&&!yn&&(i("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",s.type),yn=!0),d.push(Yt("input"));var h=null,y=null,M=null,F=null;for(var W in s)if(X.call(s,W)){var ie=s[W];if(ie==null)continue;switch(W){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":F=ie;break;case"defaultValue":y=ie;break;case"checked":M=ie;break;case"value":h=ie;break;default:Ht(d,c,W,ie);break}}return M!==null?Ht(d,c,"checked",M):F!==null&&Ht(d,c,"checked",F),h!==null?Ht(d,c,"value",h):y!==null&&Ht(d,c,"value",y),d.push(Zr),null}function ti(d,s,c){$e("textarea",s),s.value!==void 0&&s.defaultValue!==void 0&&!wi&&(i("Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components"),wi=!0),d.push(Yt("textarea"));var h=null,y=null,M=null;for(var F in s)if(X.call(s,F)){var W=s[F];if(W==null)continue;switch(F){case"children":M=W;break;case"value":h=W;break;case"defaultValue":y=W;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:Ht(d,c,F,W);break}}if(h===null&&y!==null&&(h=y),d.push(xr),M!=null){if(i("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),h!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if($t(M)){if(M.length>1)throw new Error("<textarea> can only have at most one child.");ue(M[0]),h=""+M[0]}ue(M),h=""+M}return typeof h=="string"&&h[0]===`
|
126
126
|
`&&d.push(I),h!==null&&(z(h,"value"),d.push(E(un(""+h)))),null}function ri(d,s,c,h){d.push(Yt(c));for(var y in s)if(X.call(s,y)){var M=s[y];if(M==null)continue;switch(y){case"children":case"dangerouslySetInnerHTML":throw new Error(c+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Ht(d,h,y,M);break}}return d.push(Zr),null}function $i(d,s,c){d.push(Yt("menuitem"));for(var h in s)if(X.call(s,h)){var y=s[h];if(y==null)continue;switch(h){case"children":case"dangerouslySetInnerHTML":throw new Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:Ht(d,c,h,y);break}}return d.push(xr),null}function Or(d,s,c){d.push(Yt("title"));var h=null;for(var y in s)if(X.call(s,y)){var M=s[y];if(M==null)continue;switch(y){case"children":h=M;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:Ht(d,c,y,M);break}}d.push(xr);{var F=Array.isArray(h)&&h.length<2?h[0]||null:h;Array.isArray(h)&&h.length>1?i("A title element received an array with more than 1 element as children. In browsers title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):F!=null&&F.$$typeof!=null?i("A title element received a React element for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):F!=null&&typeof F!="string"&&typeof F!="number"&&i("A title element received a value that was not a string or number for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering")}return h}function wr(d,s,c,h){d.push(Yt(c));var y=null,M=null;for(var F in s)if(X.call(s,F)){var W=s[F];if(W==null)continue;switch(F){case"children":y=W;break;case"dangerouslySetInnerHTML":M=W;break;default:Ht(d,h,F,W);break}}return d.push(xr),vn(d,M,y),typeof y=="string"?(d.push(E(un(y))),null):y}function Mr(d,s,c,h){d.push(Yt(c));var y=null,M=null;for(var F in s)if(X.call(s,F)){var W=s[F];if(W==null)continue;switch(F){case"children":y=W;break;case"dangerouslySetInnerHTML":M=W;break;case"style":Se(d,h,W);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:ve(F)&&typeof W!="function"&&typeof W!="symbol"&&d.push(He,E(F),st,E(yt(W)),Pt);break}}return d.push(xr),vn(d,M,y),y}var I=x(`
|
127
127
|
`);function G(d,s,c,h){d.push(Yt(c));var y=null,M=null;for(var F in s)if(X.call(s,F)){var W=s[F];if(W==null)continue;switch(F){case"children":y=W;break;case"dangerouslySetInnerHTML":M=W;break;default:Ht(d,h,F,W);break}}if(d.push(xr),M!=null){if(y!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof M!="object"||!("__html"in M))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var ie=M.__html;ie!=null&&(typeof ie=="string"&&ie.length>0&&ie[0]===`
|
128
128
|
`?d.push(I,E(ie)):(ue(ie),d.push(E(""+ie))))}return typeof y=="string"&&y[0]===`
|
129
|
-
`&&d.push(I),y}var ae=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,qe=new Map;function Yt(d){var s=qe.get(d);if(s===void 0){if(!ae.test(d))throw new Error("Invalid tag: "+d);s=x("<"+d),qe.set(d,s)}return s}var Vt=x("<!DOCTYPE html>");function pr(d,s,c,h,y){switch(bt(s,c),Me(s,c),kr(s,c,null),!c.suppressContentEditableWarning&&c.contentEditable&&c.children!=null&&i("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),y.insertionMode!==Yn&&y.insertionMode!==En&&s.indexOf("-")===-1&&typeof c.is!="string"&&s.toLowerCase()!==s&&i("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",s),s){case"select":return bo(d,c,h);case"option":return Rn(d,c,h,y);case"textarea":return ti(d,c,h);case"input":return _o(d,c,h);case"menuitem":return $i(d,c,h);case"title":return Or(d,c,h);case"listing":case"pre":return G(d,c,s,h);case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":return ri(d,c,s,h);case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return wr(d,c,s,h);case"html":return y.insertionMode===Dn&&d.push(Vt),wr(d,c,s,h);default:return s.indexOf("-")===-1&&typeof c.is!="string"?wr(d,c,s,h):Mr(d,c,s,h)}}var Sr=x("</"),dr=x(">");function Ar(d,s,c){switch(s){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:d.push(Sr,E(s),dr)}}function Jr(d,s){for(var c=s.bootstrapChunks,h=0;h<c.length-1;h++)
|
129
|
+
`&&d.push(I),y}var ae=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,qe=new Map;function Yt(d){var s=qe.get(d);if(s===void 0){if(!ae.test(d))throw new Error("Invalid tag: "+d);s=x("<"+d),qe.set(d,s)}return s}var Vt=x("<!DOCTYPE html>");function pr(d,s,c,h,y){switch(bt(s,c),Me(s,c),kr(s,c,null),!c.suppressContentEditableWarning&&c.contentEditable&&c.children!=null&&i("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),y.insertionMode!==Yn&&y.insertionMode!==En&&s.indexOf("-")===-1&&typeof c.is!="string"&&s.toLowerCase()!==s&&i("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",s),s){case"select":return bo(d,c,h);case"option":return Rn(d,c,h,y);case"textarea":return ti(d,c,h);case"input":return _o(d,c,h);case"menuitem":return $i(d,c,h);case"title":return Or(d,c,h);case"listing":case"pre":return G(d,c,s,h);case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":return ri(d,c,s,h);case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return wr(d,c,s,h);case"html":return y.insertionMode===Dn&&d.push(Vt),wr(d,c,s,h);default:return s.indexOf("-")===-1&&typeof c.is!="string"?wr(d,c,s,h):Mr(d,c,s,h)}}var Sr=x("</"),dr=x(">");function Ar(d,s,c){switch(s){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:d.push(Sr,E(s),dr)}}function Jr(d,s){for(var c=s.bootstrapChunks,h=0;h<c.length-1;h++)C(d,c[h]);return h<c.length?b(d,c[h]):!0}var In=x('<template id="'),Vr=x('"></template>');function Br(d,s,c){C(d,In),C(d,s.placeholderPrefix);var h=E(c.toString(16));return C(d,h),b(d,Vr)}var Qr=x("<!--$-->"),ci=x('<!--$?--><template id="'),gi=x('"></template>'),qn=x("<!--$!-->"),xo=x("<!--/$-->"),Ui=x("<template"),an=x('"'),ps=x(' data-dgst="'),zn=x(' data-msg="'),fl=x(' data-stck="'),Ta=x("></template>");function Wi(d,s){return b(d,Qr)}function So(d,s,c){if(C(d,ci),c===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return C(d,c),b(d,gi)}function $n(d,s,c,h,y){var M;return M=b(d,qn),C(d,Ui),c&&(C(d,ps),C(d,E(yt(c))),C(d,an)),h&&(C(d,zn),C(d,E(yt(h))),C(d,an)),y&&(C(d,fl),C(d,E(yt(y))),C(d,an)),M=b(d,Ta),M}function Kr(d,s){return b(d,xo)}function Ai(d,s){return b(d,xo)}function Ea(d,s){return b(d,xo)}var dl=x('<div hidden id="'),$o=x('">'),hl=x("</div>"),pl=x('<svg aria-hidden="true" style="display:none" id="'),Gs=x('">'),gs=x("</svg>"),ms=x('<math aria-hidden="true" style="display:none" id="'),Co=x('">'),gl=x("</math>"),Zs=x('<table hidden id="'),ka=x('">'),T=x("</table>"),P=x('<table hidden><tbody id="'),$=x('">'),te=x("</tbody></table>"),Ie=x('<table hidden><tr id="'),Te=x('">'),Ke=x("</tr></table>"),gt=x('<table hidden><colgroup id="'),Wt=x('">'),hr=x("</colgroup></table>");function ar(d,s,c,h){switch(c.insertionMode){case Dn:case Yr:return C(d,dl),C(d,s.segmentPrefix),C(d,E(h.toString(16))),b(d,$o);case Yn:return C(d,pl),C(d,s.segmentPrefix),C(d,E(h.toString(16))),b(d,Gs);case En:return C(d,ms),C(d,s.segmentPrefix),C(d,E(h.toString(16))),b(d,Co);case Xn:return C(d,Zs),C(d,s.segmentPrefix),C(d,E(h.toString(16))),b(d,ka);case Jn:return C(d,P),C(d,s.segmentPrefix),C(d,E(h.toString(16))),b(d,$);case on:return C(d,Ie),C(d,s.segmentPrefix),C(d,E(h.toString(16))),b(d,Te);case On:return C(d,gt),C(d,s.segmentPrefix),C(d,E(h.toString(16))),b(d,Wt);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}function Gr(d,s){switch(s.insertionMode){case Dn:case Yr:return b(d,hl);case Yn:return b(d,gs);case En:return b(d,gl);case Xn:return b(d,T);case Jn:return b(d,te);case on:return b(d,Ke);case On:return b(d,hr);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}var ni="function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)}",Ti='function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}}',Ei='function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())}',Ks=x(ni+';$RS("'),ml=x('$RS("'),vs=x('","'),Ys=x('")<\/script>');function of(d,s,c){C(d,s.startInlineScript),s.sentCompleteSegmentFunction?C(d,ml):(s.sentCompleteSegmentFunction=!0,C(d,Ks)),C(d,s.segmentPrefix);var h=E(c.toString(16));return C(d,h),C(d,vs),C(d,s.placeholderPrefix),C(d,h),b(d,Ys)}var sc=x(Ti+';$RC("'),ac=x('$RC("'),su=x('","'),wo=x('")<\/script>');function Ra(d,s,c,h){if(C(d,s.startInlineScript),s.sentCompleteBoundaryFunction?C(d,ac):(s.sentCompleteBoundaryFunction=!0,C(d,sc)),c===null)throw new Error("An ID must have been assigned before we can complete the boundary.");var y=E(h.toString(16));return C(d,c),C(d,su),C(d,s.segmentPrefix),C(d,y),b(d,wo)}var sf=x(Ei+';$RX("'),af=x('$RX("'),lf=x('"'),Xs=x(")<\/script>"),fn=x(",");function au(d,s,c,h,y,M){if(C(d,s.startInlineScript),s.sentClientRenderFunction?C(d,af):(s.sentClientRenderFunction=!0,C(d,sf)),c===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return C(d,c),C(d,lf),(h||y||M)&&(C(d,fn),C(d,E(vl(h||"")))),(y||M)&&(C(d,fn),C(d,E(vl(y||"")))),M&&(C(d,fn),C(d,E(vl(M)))),b(d,Xs)}var lu=/[<\u2028\u2029]/g;function vl(d){var s=JSON.stringify(d);return s.replace(lu,function(c){switch(c){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var ki=Object.assign,cu=Symbol.for("react.element"),yl=Symbol.for("react.portal"),Ao=Symbol.for("react.fragment"),ye=Symbol.for("react.strict_mode"),Ue=Symbol.for("react.profiler"),Ne=Symbol.for("react.provider"),Nt=Symbol.for("react.context"),or=Symbol.for("react.forward_ref"),Pr=Symbol.for("react.suspense"),bn=Symbol.for("react.suspense_list"),Wr=Symbol.for("react.memo"),Js=Symbol.for("react.lazy"),uu=Symbol.for("react.scope"),Bi=Symbol.for("react.debug_trace_mode"),bl=Symbol.for("react.legacy_hidden"),cf=Symbol.for("react.default_value"),Uo=Symbol.iterator,en="@@iterator";function Wo(d){if(d===null||typeof d!="object")return null;var s=Uo&&d[Uo]||d[en];return typeof s=="function"?s:null}function zr(d,s,c){var h=d.displayName;if(h)return h;var y=s.displayName||s.name||"";return y!==""?c+"("+y+")":c}function lc(d){return d.displayName||"Context"}function ln(d){if(d==null)return null;if(typeof d.tag=="number"&&i("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof d=="function")return d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case Ao:return"Fragment";case yl:return"Portal";case Ue:return"Profiler";case ye:return"StrictMode";case Pr:return"Suspense";case bn:return"SuspenseList"}if(typeof d=="object")switch(d.$$typeof){case Nt:var s=d;return lc(s)+".Consumer";case Ne:var c=d;return lc(c._context)+".Provider";case or:return zr(d,d.render,"ForwardRef");case Wr:var h=d.displayName||null;return h!==null?h:ln(d.type)||"Memo";case Js:{var y=d,M=y._payload,F=y._init;try{return ln(F(M))}catch{return null}}}return null}var To=0,cc,uc,fc,Qs,Eo,Ia,La;function ys(){}ys.__reactDisabledLog=!0;function ea(){{if(To===0){cc=console.log,uc=console.info,fc=console.warn,Qs=console.error,Eo=console.group,Ia=console.groupCollapsed,La=console.groupEnd;var d={configurable:!0,enumerable:!0,value:ys,writable:!0};Object.defineProperties(console,{info:d,log:d,warn:d,error:d,group:d,groupCollapsed:d,groupEnd:d})}To++}}function _l(){{if(To--,To===0){var d={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ki({},d,{value:cc}),info:ki({},d,{value:uc}),warn:ki({},d,{value:fc}),error:ki({},d,{value:Qs}),group:ki({},d,{value:Eo}),groupCollapsed:ki({},d,{value:Ia}),groupEnd:ki({},d,{value:La})})}To<0&&i("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ko=t.ReactCurrentDispatcher,xl;function Vi(d,s,c){{if(xl===void 0)try{throw Error()}catch(y){var h=y.stack.trim().match(/\n( *(at )?)/);xl=h&&h[1]||""}return`
|
130
130
|
`+xl+d}}var Ro=!1,Vo;{var uf=typeof WeakMap=="function"?WeakMap:Map;Vo=new uf}function Ma(d,s){if(!d||Ro)return"";{var c=Vo.get(d);if(c!==void 0)return c}var h;Ro=!0;var y=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var M;M=ko.current,ko.current=null,ea();try{if(s){var F=function(){throw Error()};if(Object.defineProperty(F.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(F,[])}catch(Dr){h=Dr}Reflect.construct(d,[],F)}else{try{F.call()}catch(Dr){h=Dr}d.call(F.prototype)}}else{try{throw Error()}catch(Dr){h=Dr}d()}}catch(Dr){if(Dr&&h&&typeof Dr.stack=="string"){for(var W=Dr.stack.split(`
|
131
131
|
`),ie=h.stack.split(`
|
132
132
|
`),Ce=W.length-1,Ye=ie.length-1;Ce>=1&&Ye>=0&&W[Ce]!==ie[Ye];)Ye--;for(;Ce>=1&&Ye>=0;Ce--,Ye--)if(W[Ce]!==ie[Ye]){if(Ce!==1||Ye!==1)do if(Ce--,Ye--,Ye<0||W[Ce]!==ie[Ye]){var at=`
|
@@ -153,41 +153,41 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
|
|
153
153
|
Previous: %s
|
154
154
|
Incoming: %s`,Gi,"["+d.join(", ")+"]","["+s.join(", ")+"]");for(var c=0;c<s.length&&c<d.length;c++)if(!Rr(d[c],s[c]))return!1;return!0}function bc(){if(lo>0)throw new Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function Li(){return Nr===null?Ss===null?(Jo=!1,Ss=Nr=bc()):(Jo=!0,Nr=Ss):Nr.next===null?(Jo=!1,Nr=Nr.next=bc()):(Jo=!0,Nr=Nr.next),Nr}function _c(d,s){Ri=s,aa=d,fi=!1,mi=0}function ws(d,s,c,h){for(;ja;)ja=!1,mi=0,lo+=1,Nr=null,c=d(s,h);return xc(),c}function di(){var d=mi!==0;return d}function xc(){fi=!1,Ri=null,aa=null,ja=!1,Ss=null,lo=0,Ii=null,Nr=null}function Sc(d){return fi&&i("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),sa(d)}function Cc(d){return Gi="useContext",Cs(),sa(d)}function As(d,s){return typeof s=="function"?s(d):s}function Qo(d){return Gi="useState",wc(As,d)}function wc(d,s,c){if(d!==As&&(Gi="useReducer"),Ri=Cs(),Nr=Li(),Jo){var h=Nr.queue,y=h.dispatch;if(Ii!==null){var M=Ii.get(h);if(M!==void 0){Ii.delete(h);var F=Nr.memoizedState,W=M;do{var ie=W.action;fi=!0,F=d(F,ie),fi=!1,W=W.next}while(W!==null);return Nr.memoizedState=F,[F,y]}}return[Nr.memoizedState,y]}else{fi=!0;var Ce;d===As?Ce=typeof s=="function"?s():s:Ce=c!==void 0?c(s):s,fi=!1,Nr.memoizedState=Ce;var Ye=Nr.queue={last:null,dispatch:null},at=Ye.dispatch=bu.bind(null,Ri,Ye);return[Nr.memoizedState,at]}}function yu(d,s){Ri=Cs(),Nr=Li();var c=s===void 0?null:s;if(Nr!==null){var h=Nr.memoizedState;if(h!==null&&c!==null){var y=h[1];if(vu(c,y))return h[0]}}fi=!0;var M=d();return fi=!1,Nr.memoizedState=[M,c],M}function kl(d){Ri=Cs(),Nr=Li();var s=Nr.memoizedState;if(s===null){var c={current:d};return Object.seal(c),Nr.memoizedState=c,c}else return s}function bf(d,s){Gi="useLayoutEffect",i("useLayoutEffect does nothing on the server, because its effect cannot be encoded into the server renderer's output format. This will lead to a mismatch between the initial, non-hydrated UI and the intended UI. To avoid this, useLayoutEffect should only be used in components that render exclusively on the client. See https://reactjs.org/link/uselayouteffect-ssr for common fixes.")}function bu(d,s,c){if(lo>=yc)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(d===Ri){ja=!0;var h={action:c,next:null};Ii===null&&(Ii=new Map);var y=Ii.get(s);if(y===void 0)Ii.set(s,h);else{for(var M=y;M.next!==null;)M=M.next;M.next=h}}}function Un(d,s){return yu(function(){return d},s)}function Ac(d,s,c){return Cs(),s(d._source)}function _u(d,s,c){if(c===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");return c()}function Mi(d){return Cs(),d}function Rl(){throw new Error("startTransition cannot be called during server rendering.")}function la(){return Cs(),[!1,Rl]}function es(){var d=aa,s=Do(d.treeContext),c=Ts;if(c===null)throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");var h=mi++;return An(c,s,h)}function Ba(){}var Pn={readContext:Sc,useContext:Cc,useMemo:yu,useReducer:wc,useRef:kl,useState:Qo,useInsertionEffect:Ba,useLayoutEffect:bf,useCallback:Un,useImperativeHandle:Ba,useEffect:Ba,useDebugValue:Ba,useDeferredValue:Mi,useTransition:la,useId:es,useMutableSource:Ac,useSyncExternalStore:_u},Ts=null;function Il(d){Ts=d}function ca(d){try{var s="",c=d;do{switch(c.tag){case 0:s+=Vi(c.type,null,null);break;case 1:s+=ta(c.type,null,null);break;case 2:s+=fu(c.type,null,null);break}c=c.parent}while(c);return s}catch(h){return`
|
155
155
|
Error generating stack: `+h.message+`
|
156
|
-
`+h.stack}}var Ll=t.ReactCurrentDispatcher,ua=t.ReactDebugCurrentFrame,Ml=0,co=1,Dl=2,Es=3,xu=4,Ha=0,fa=1,da=2,Tc=12800;function Su(d){return console.error(d),null}function ks(){}function Ol(d,s,c,h,y,M,F,W,ie){var Ce=[],Ye=new Set,at={destination:null,responseState:s,progressiveChunkSize:h===void 0?Tc:h,status:Ha,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:Ye,pingedTasks:Ce,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:y===void 0?Su:y,onAllReady:M===void 0?ks:M,onShellReady:F===void 0?ks:F,onShellError:W===void 0?ks:W,onFatalError:ie===void 0?ks:ie},It=qa(at,0,null,c,!1,!1);It.parentFlushed=!0;var tr=Po(at,d,null,It,Ye,Ln,Cl,gf);return Ce.push(tr),at}function Oo(d,s){var c=d.pingedTasks;c.push(s),c.length===1&&u(function(){return Fc(d)})}function Pl(d,s){return{id:Ci,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:s,errorDigest:null}}function Po(d,s,c,h,y,M,F,W){d.allPendingTasks++,c===null?d.pendingRootTasks++:c.pendingTasks++;var ie={node:s,ping:function(){return Oo(d,ie)},blockedBoundary:c,blockedSegment:h,abortSet:y,legacyContext:M,context:F,treeContext:W};return ie.componentStack=null,y.add(ie),ie}function qa(d,s,c,h,y,M){return{status:Ml,id:-1,index:s,parentFlushed:!1,chunks:[],children:[],formatContext:h,boundary:c,lastPushedText:y,textEmbedded:M}}var Zi=null;function Ki(){return Zi===null||Zi.componentStack===null?"":ca(Zi.componentStack)}function uo(d,s){d.componentStack={tag:0,parent:d.componentStack,type:s}}function za(d,s){d.componentStack={tag:1,parent:d.componentStack,type:s}}function ts(d,s){d.componentStack={tag:2,parent:d.componentStack,type:s}}function Yi(d){d.componentStack===null?i("Unexpectedly popped too many stack frames. This is a bug in React."):d.componentStack=d.componentStack.parent}var ha=null;function Nl(d,s){{var c;typeof s=="string"?c=s:s&&typeof s.message=="string"?c=s.message:c=String(s);var h=ha||Ki();ha=null,d.errorMessage=c,d.errorComponentStack=h}}function $a(d,s){var c=d.onError(s);if(c!=null&&typeof c!="string")throw new Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof c+'" instead');return c}function pa(d,s){var c=d.onShellError;c(s);var h=d.onFatalError;h(s),d.destination!==null?(d.status=da,L(d.destination,s)):(d.status=fa,d.fatalError=s)}function Cu(d,s,c){uo(s,"Suspense");var h=s.blockedBoundary,y=s.blockedSegment,M=c.fallback,F=c.children,W=new Set,ie=Pl(d,W),Ce=y.chunks.length,Ye=qa(d,Ce,ie,y.formatContext,!1,!1);y.children.push(Ye),y.lastPushedText=!1;var at=qa(d,0,null,y.formatContext,!1,!1);at.parentFlushed=!0,s.blockedBoundary=ie,s.blockedSegment=at;try{if(rs(d,s,F),pn(at.chunks,d.responseState,at.lastPushedText,at.textEmbedded),at.status=co,ns(ie,at),ie.pendingTasks===0){Yi(s);return}}catch(tr){at.status=xu,ie.forceClientRender=!0,ie.errorDigest=$a(d,tr),Nl(ie,tr)}finally{s.blockedBoundary=h,s.blockedSegment=y}var It=Po(d,M,h,Ye,W,s.legacyContext,s.context,s.treeContext);It.componentStack=s.componentStack,d.pingedTasks.push(It),Yi(s)}function Ec(d,s,c,h){uo(s,c);var y=s.blockedSegment,M=pr(y.chunks,c,h,d.responseState,y.formatContext);y.lastPushedText=!1;var F=y.formatContext;y.formatContext=Si(F,c,h),rs(d,s,M),y.formatContext=F,Ar(y.chunks,c),y.lastPushedText=!1,Yi(s)}function kc(d){return d.prototype&&d.prototype.isReactComponent}function Rs(d,s,c,h,y){var M={};_c(s,M);var F=c(h,y);return ws(c,h,F,y)}function Rc(d,s,c,h,y){var M=c.render();c.props!==y&&(Lc||i("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",ln(h)||"a component"),Lc=!0);{var F=h.childContextTypes;if(F!=null){var W=s.legacyContext,ie=dc(c,h,W,F);s.legacyContext=ie,oi(d,s,M),s.legacyContext=W;return}}oi(d,s,M)}function Fl(d,s,c,h){ts(s,c);var y=Go(c,s.legacyContext),M=ao(c,h,y);Fa(M,c,h,y),Rc(d,s,M,c,h),Yi(s)}var gr={},Ua={},Ic={},Is={},Lc=!1,wu=!1,Mc=!1,Di=!1;function _f(d,s,c,h){var y;if(y=Go(c,s.legacyContext),za(s,c),c.prototype&&typeof c.prototype.render=="function"){var M=ln(c)||"Unknown";gr[M]||(i("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",M,M),gr[M]=!0)}var F=Rs(d,s,c,h,y),W=di();if(typeof F=="object"&&F!==null&&typeof F.render=="function"&&F.$$typeof===void 0){var ie=ln(c)||"Unknown";Ua[ie]||(i("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",ie,ie,ie),Ua[ie]=!0)}if(typeof F=="object"&&F!==null&&typeof F.render=="function"&&F.$$typeof===void 0){{var Ce=ln(c)||"Unknown";Ua[Ce]||(i("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",Ce,Ce,Ce),Ua[Ce]=!0)}Fa(F,c,h,y),Rc(d,s,F,c,h)}else if(jl(c),W){var Ye=s.treeContext,at=1,It=0;s.treeContext=mc(Ye,at,It);try{oi(d,s,F)}finally{s.treeContext=Ye}}else oi(d,s,F);Yi(s)}function jl(d){{if(d&&d.childContextTypes&&i("%s(...): childContextTypes cannot be defined on a function component.",d.displayName||d.name||"Component"),typeof d.getDerivedStateFromProps=="function"){var s=ln(d)||"Unknown";Is[s]||(i("%s: Function components do not support getDerivedStateFromProps.",s),Is[s]=!0)}if(typeof d.contextType=="object"&&d.contextType!==null){var c=ln(d)||"Unknown";Ic[c]||(i("%s: Function components do not support contextType.",c),Ic[c]=!0)}}}function Bl(d,s){if(d&&d.defaultProps){var c=ki({},s),h=d.defaultProps;for(var y in h)c[y]===void 0&&(c[y]=h[y]);return c}return s}function Au(d,s,c,h,y){za(s,c.render);var M=Rs(d,s,c.render,h,y),F=di();if(F){var W=s.treeContext,ie=1,Ce=0;s.treeContext=mc(W,ie,Ce);try{oi(d,s,M)}finally{s.treeContext=W}}else oi(d,s,M);Yi(s)}function Hl(d,s,c,h,y){var M=c.type,F=Bl(M,h);Wa(d,s,M,F,y)}function Oi(d,s,c,h){c._context===void 0?c!==c.Consumer&&(Di||(Di=!0,i("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):c=c._context;var y=h.children;typeof y!="function"&&i("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.");var M=sa(c),F=y(M);oi(d,s,F)}function Tn(d,s,c,h){var y=c._context,M=h.value,F=h.children,W;W=s.context,s.context=hc(y,M),oi(d,s,F),s.context=ff(y),W!==s.context&&i("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function Dc(d,s,c,h,y){uo(s,"Lazy");var M=c._payload,F=c._init,W=F(M),ie=Bl(W,h);Wa(d,s,W,ie,y),Yi(s)}function Wa(d,s,c,h,y){if(typeof c=="function")if(kc(c)){Fl(d,s,c,h);return}else{_f(d,s,c,h);return}if(typeof c=="string"){Ec(d,s,c,h);return}switch(c){case bl:case Bi:case ye:case Ue:case Ao:{oi(d,s,h.children);return}case bn:{uo(s,"SuspenseList"),oi(d,s,h.children),Yi(s);return}case uu:throw new Error("ReactDOMServer does not yet support scope components.");case Pr:{Cu(d,s,h);return}}if(typeof c=="object"&&c!==null)switch(c.$$typeof){case or:{Au(d,s,c,h,y);return}case Wr:{Hl(d,s,c,h,y);return}case Ne:{Tn(d,s,c,h);return}case Nt:{Oi(d,s,c,h);return}case Js:{Dc(d,s,c,h);return}}var M="";throw(c===void 0||typeof c=="object"&&c!==null&&Object.keys(c).length===0)&&(M+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(c==null?c:typeof c)+"."+M))}function ql(d,s){typeof Symbol=="function"&&d[Symbol.toStringTag]==="Generator"&&(wu||i("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),wu=!0),d.entries===s&&(Mc||i("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Mc=!0)}function oi(d,s,c){try{return Oc(d,s,c)}catch(h){throw typeof h=="object"&&h!==null&&typeof h.then=="function"||(ha=ha!==null?ha:Ki()),h}}function Oc(d,s,c){if(s.node=c,typeof c=="object"&&c!==null){switch(c.$$typeof){case cu:{var h=c,y=h.type,M=h.props,F=h.ref;Wa(d,s,y,M,F);return}case yl:throw new Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");case Js:{var W=c,ie=W._payload,Ce=W._init,Ye;try{Ye=Ce(ie)}catch(po){throw typeof po=="object"&&po!==null&&typeof po.then=="function"&&uo(s,"Lazy"),po}oi(d,s,Ye);return}}if($t(c)){Pc(d,s,c);return}var at=Wo(c);if(at){ql(c,at);var It=at.call(c);if(It){var tr=It.next();if(!tr.done){var Dr=[];do Dr.push(tr.value),tr=It.next();while(!tr.done);Pc(d,s,Dr);return}return}}var Wn=Object.prototype.toString.call(c);throw new Error("Objects are not valid as a React child (found: "+(Wn==="[object Object]"?"object with keys {"+Object.keys(c).join(", ")+"}":Wn)+"). If you meant to render a collection of children, use an array instead.")}if(typeof c=="string"){var is=s.blockedSegment;is.lastPushedText=sn(s.blockedSegment.chunks,c,d.responseState,is.lastPushedText);return}if(typeof c=="number"){var ho=s.blockedSegment;ho.lastPushedText=sn(s.blockedSegment.chunks,""+c,d.responseState,ho.lastPushedText);return}typeof c=="function"&&i("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}function Pc(d,s,c){for(var h=c.length,y=0;y<h;y++){var M=s.treeContext;s.treeContext=mc(M,h,y);try{rs(d,s,c[y])}finally{s.treeContext=M}}}function zl(d,s,c){var h=s.blockedSegment,y=h.chunks.length,M=qa(d,y,null,h.formatContext,h.lastPushedText,!0);h.children.push(M),h.lastPushedText=!1;var F=Po(d,s.node,s.blockedBoundary,M,s.abortSet,s.legacyContext,s.context,s.treeContext);s.componentStack!==null&&(F.componentStack=s.componentStack.parent);var W=F.ping;c.then(W,W)}function rs(d,s,c){var h=s.blockedSegment.formatContext,y=s.legacyContext,M=s.context,F=null;F=s.componentStack;try{return oi(d,s,c)}catch(W){if(xc(),typeof W=="object"&&W!==null&&typeof W.then=="function"){zl(d,s,W),s.blockedSegment.formatContext=h,s.legacyContext=y,s.context=M,Yo(M),s.componentStack=F;return}else throw s.blockedSegment.formatContext=h,s.legacyContext=y,s.context=M,Yo(M),s.componentStack=F,W}}function No(d,s,c,h){var y=$a(d,h);if(s===null?pa(d,h):(s.pendingTasks--,s.forceClientRender||(s.forceClientRender=!0,s.errorDigest=y,Nl(s,h),s.parentFlushed&&d.clientRenderedBoundaries.push(s))),d.allPendingTasks--,d.allPendingTasks===0){var M=d.onAllReady;M()}}function xf(d){var s=this,c=d.blockedBoundary,h=d.blockedSegment;h.status=Es,ga(s,c,h)}function fo(d,s,c){var h=d.blockedBoundary,y=d.blockedSegment;if(y.status=Es,h===null)s.allPendingTasks--,s.status!==da&&(s.status=da,s.destination!==null&&_(s.destination));else{if(h.pendingTasks--,!h.forceClientRender){h.forceClientRender=!0;var M=c===void 0?new Error("The render was aborted by the server without a reason."):c;h.errorDigest=s.onError(M);{var F="The server did not finish this Suspense boundary: ";M&&typeof M.message=="string"?M=F+M.message:M=F+String(M);var W=Zi;Zi=d;try{Nl(h,M)}finally{Zi=W}}h.parentFlushed&&s.clientRenderedBoundaries.push(h)}if(h.fallbackAbortableTasks.forEach(function(Ce){return fo(Ce,s,c)}),h.fallbackAbortableTasks.clear(),s.allPendingTasks--,s.allPendingTasks===0){var ie=s.onAllReady;ie()}}}function ns(d,s){if(s.chunks.length===0&&s.children.length===1&&s.children[0].boundary===null){var c=s.children[0];c.id=s.id,c.parentFlushed=!0,c.status===co&&ns(d,c)}else{var h=d.completedSegments;h.push(s)}}function ga(d,s,c){if(s===null){if(c.parentFlushed){if(d.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");d.completedRootSegment=c}if(d.pendingRootTasks--,d.pendingRootTasks===0){d.onShellError=ks;var h=d.onShellReady;h()}}else if(s.pendingTasks--,!s.forceClientRender){if(s.pendingTasks===0)c.parentFlushed&&c.status===co&&ns(s,c),s.parentFlushed&&d.completedBoundaries.push(s),s.fallbackAbortableTasks.forEach(xf,d),s.fallbackAbortableTasks.clear();else if(c.parentFlushed&&c.status===co){ns(s,c);var y=s.completedSegments;y.length===1&&s.parentFlushed&&d.partialBoundaries.push(s)}}if(d.allPendingTasks--,d.allPendingTasks===0){var M=d.onAllReady;M()}}function Nc(d,s){var c=s.blockedSegment;if(c.status===Ml){Yo(s.context);var h=null;h=Zi,Zi=s;try{oi(d,s,s.node),pn(c.chunks,d.responseState,c.lastPushedText,c.textEmbedded),s.abortSet.delete(s),c.status=co,ga(d,s.blockedBoundary,c)}catch(M){if(xc(),typeof M=="object"&&M!==null&&typeof M.then=="function"){var y=s.ping;M.then(y,y)}else s.abortSet.delete(s),c.status=xu,No(d,s.blockedBoundary,c,M)}finally{Zi=h}}}function Fc(d){if(d.status!==da){var s=hu(),c=Ll.current;Ll.current=Pn;var h;h=ua.getCurrentStack,ua.getCurrentStack=Ki;var y=Ts;Il(d.responseState);try{var M=d.pingedTasks,F;for(F=0;F<M.length;F++){var W=M[F];Nc(d,W)}M.splice(0,F),d.destination!==null&&si(d,d.destination)}catch(ie){$a(d,ie),pa(d,ie)}finally{Il(y),Ll.current=c,ua.getCurrentStack=h,c===Pn&&Yo(s)}}}function Va(d,s,c){switch(c.parentFlushed=!0,c.status){case Ml:{var h=c.id=d.nextSegmentId++;return c.lastPushedText=!1,c.textEmbedded=!1,Br(s,d.responseState,h)}case co:{c.status=Dl;for(var y=!0,M=c.chunks,F=0,W=c.children,ie=0;ie<W.length;ie++){for(var Ce=W[ie];F<Ce.index;F++)w(s,M[F]);y=$l(d,s,Ce)}for(;F<M.length-1;F++)w(s,M[F]);return F<M.length&&(y=b(s,M[F])),y}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function $l(d,s,c){var h=c.boundary;if(h===null)return Va(d,s,c);if(h.parentFlushed=!0,h.forceClientRender)return $n(s,d.responseState,h.errorDigest,h.errorMessage,h.errorComponentStack),Va(d,s,c),Ea(s,d.responseState);if(h.pendingTasks>0){h.rootSegmentID=d.nextSegmentId++,h.completedSegments.length>0&&d.partialBoundaries.push(h);var y=h.id=kn(d.responseState);return So(s,d.responseState,y),Va(d,s,c),Ai(s,d.responseState)}else{if(h.byteSize>d.progressiveChunkSize)return h.rootSegmentID=d.nextSegmentId++,d.completedBoundaries.push(h),So(s,d.responseState,h.id),Va(d,s,c),Ai(s,d.responseState);Wi(s,d.responseState);var M=h.completedSegments;if(M.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var F=M[0];return $l(d,s,F),Kr(s,d.responseState)}}function jc(d,s,c){return au(s,d.responseState,c.id,c.errorDigest,c.errorMessage,c.errorComponentStack)}function Ga(d,s,c){return ar(s,d.responseState,c.formatContext,c.id),$l(d,s,c),Gr(s,c.formatContext)}function Tu(d,s,c){for(var h=c.completedSegments,y=0;y<h.length;y++){var M=h[y];Bc(d,s,c,M)}return h.length=0,Ra(s,d.responseState,c.id,c.rootSegmentID)}function Eu(d,s,c){for(var h=c.completedSegments,y=0;y<h.length;y++){var M=h[y];if(!Bc(d,s,c,M))return y++,h.splice(0,y),!1}return h.splice(0,y),!0}function Bc(d,s,c,h){if(h.status===Dl)return!0;var y=h.id;if(y===-1){var M=h.id=c.rootSegmentID;if(M===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return Ga(d,s,h)}else return Ga(d,s,h),of(s,d.responseState,y)}function si(d,s){R();try{var c=d.completedRootSegment;c!==null&&d.pendingRootTasks===0&&($l(d,s,c),d.completedRootSegment=null,Jr(s,d.responseState));var h=d.clientRenderedBoundaries,y;for(y=0;y<h.length;y++){var M=h[y];jc(d,s,M)}h.splice(0,y);var F=d.completedBoundaries;for(y=0;y<F.length;y++){var W=F[y];Tu(d,s,W)}F.splice(0,y),S(s),R(s);var ie=d.partialBoundaries;for(y=0;y<ie.length;y++){var Ce=ie[y];if(!Eu(d,s,Ce)){d.destination=null,y++,ie.splice(0,y);return}}ie.splice(0,y);var Ye=d.completedBoundaries;for(y=0;y<Ye.length;y++){var at=Ye[y];Tu(d,s,at)}Ye.splice(0,y)}finally{S(s),d.allPendingTasks===0&&d.pingedTasks.length===0&&d.clientRenderedBoundaries.length===0&&d.completedBoundaries.length===0&&(d.abortableTasks.size!==0&&i("There was still abortable task at the root when we closed. This is a bug in React."),_(s))}}function Xi(d){u(function(){return Fc(d)})}function Sf(d,s){if(d.status===fa){d.status=da,L(s,d.fatalError);return}if(d.status!==da&&d.destination===null){d.destination=s;try{si(d,s)}catch(c){$a(d,c),pa(d,c)}}}function ku(d,s){try{var c=d.abortableTasks;c.forEach(function(h){return fo(h,d,s)}),c.clear(),d.destination!==null&&si(d,d.destination)}catch(h){$a(d,h),pa(d,h)}}function Ul(d,s){return new Promise(function(c,h){var y,M,F=new Promise(function(It,tr){M=It,y=tr});function W(){var It=new ReadableStream({type:"bytes",pull:function(tr){Sf(Ce,tr)},cancel:function(tr){ku(Ce)}},{highWaterMark:0});It.allReady=F,c(It)}function ie(It){F.catch(function(){}),h(It)}var Ce=Ol(d,Cn(s?s.identifierPrefix:void 0,s?s.nonce:void 0,s?s.bootstrapScriptContent:void 0,s?s.bootstrapScripts:void 0,s?s.bootstrapModules:void 0),hi(s?s.namespaceURI:void 0),s?s.progressiveChunkSize:void 0,s?s.onError:void 0,M,W,ie,y);if(s&&s.signal){var Ye=s.signal,at=function(){ku(Ce,Ye.reason),Ye.removeEventListener("abort",at)};Ye.addEventListener("abort",at)}Xi(Ce)})}Ad.renderToReadableStream=Ul,Ad.version=e}()),Ad}var Yv;function W4(){if(Yv)return Vl;Yv=1;var r,e;return process.env.NODE_ENV==="production"?(r=q4(),e=z4()):(r=$4(),e=U4()),Vl.version=r.version,Vl.renderToString=r.renderToString,Vl.renderToStaticMarkup=r.renderToStaticMarkup,Vl.renderToNodeStream=r.renderToNodeStream,Vl.renderToStaticNodeStream=r.renderToStaticNodeStream,Vl.renderToReadableStream=e.renderToReadableStream,Vl}var Y_=W4();const Ns=al(Y_);function Nf(r,e,t){return e!==void 0&&r<e?e:t!==void 0&&r>t?t:r}const Zc={_canvas:null,_cache:new Map,_fontCache:{value:"",timestamp:0},_charWidthMap:new Map,clearCache(){this._cache.clear(),this._canvas=null,this._fontCache={value:"",timestamp:0},this._charWidthMap.clear()},getDefaultFont(){const r=Date.now();if(this._fontCache.value&&r-this._fontCache.timestamp<3e5)return this._fontCache.value;try{const e=getComputedStyle(document.documentElement).getPropertyValue("--Font").trim()||"400 14px pretendard";return this._fontCache={value:e,timestamp:r},e}catch{return"400 14px pretendard"}},measureCharWidth(r,e){var i,l,u,f,g,m;const t=`${r}|${e}`;if(this._charWidthMap.has(t))return this._charWidthMap.get(t);try{this._canvas||(this._canvas=document.createElement("canvas"));const R=this._canvas.getContext("2d");if(R){R.font=e;const w=R.measureText(r).width;return this._charWidthMap.set(t,w),w}}catch{}let n;return r===" "?n=parseInt(((i=e.match(/(\d+)px/))==null?void 0:i[1])||"14")/3:/^[A-Z]$/.test(r)?n=parseInt(((l=e.match(/(\d+)px/))==null?void 0:l[1])||"14")*.67:/^[a-z]$/.test(r)?n=parseInt(((u=e.match(/(\d+)px/))==null?void 0:u[1])||"14")*.5:/^\d$/.test(r)?n=parseInt(((f=e.match(/(\d+)px/))==null?void 0:f[1])||"14")*.6:/^[.,;:!?]$/.test(r)?n=parseInt(((g=e.match(/(\d+)px/))==null?void 0:g[1])||"14")*.25:n=parseInt(((m=e.match(/(\d+)px/))==null?void 0:m[1])||"14")*.67,this._charWidthMap.set(t,n),n},extractTextFromNode(r){if(r==null)return"";if(typeof r=="string")return r;if(typeof r=="number"||typeof r=="boolean")return`${r}`;if(Array.isArray(r))return r.map(e=>this.extractTextFromNode(e)).join("");if(A.isValidElement(r))try{const t=Y_.renderToString(r).replace(/<[^>]*>/g,""),n=document.createElement("div");return n.innerHTML=t,n.textContent||""}catch{return r.props&&r.props.children?this.extractTextFromNode(r.props.children):""}return""},measureTextWidth(r,e){var l;if(!r)return 0;const t=e||this.getDefaultFont(),n=`${r}|${t}`,i=this._cache.get(n);if(i!==void 0)return i;try{this._canvas||(this._canvas=document.createElement("canvas"));const u=this._canvas.getContext("2d");if(u){u.font=t;const f=u.measureText(r),g=Math.ceil(f.width);return this._cache.size>=300&&[...this._cache.keys()].slice(0,50).forEach(R=>this._cache.delete(R)),this._cache.set(n,g),g}}catch{}try{const u=document.createElement("span");u.style.font=t,u.style.position="absolute",u.style.visibility="hidden",u.style.whiteSpace="nowrap",u.textContent=r,document.body.appendChild(u);const f=Math.ceil(u.getBoundingClientRect().width);return document.body.removeChild(u),this._cache.set(n,f),f}catch{}try{let u=0;for(let g=0;g<r.length;g++)u+=this.measureCharWidth(r[g],t);u*=.95;const f=Math.ceil(u);return this._cache.set(n,f),f}catch{}try{const u=parseInt(((l=t.match(/(\d+)px/))==null?void 0:l[1])||"14");let f=0;for(let m=0;m<r.length;m++){const R=r[m];R===" "?f+=.33:/^[A-Z]$/.test(R)?f+=.67:/^[a-z]$/.test(R)?f+=.5:/^\d$/.test(R)?f+=.6:/^[.,;:!?]$/.test(R)?f+=.25:f+=.67}const g=Math.ceil(f*u);return this._cache.set(n,g),g}catch{const f=r.length*10;return this._cache.set(n,f),f}},measureTextWithElementStyle(r,e){if(!e)return 0;try{const t=window.getComputedStyle(r),n=t.getPropertyValue("--Font").trim()||`${t.fontWeight} ${t.fontSize} ${t.fontFamily}`;return this.measureTextWidth(e,n)}catch{return this.measureTextWidth(e)}},measureReactNodeWidth(r){const e=this.extractTextFromNode(r);return this.measureTextWidth(e)},measureRenderedOptionWidth(r,e){if(r==null)return 0;const t=e(r),n=this.extractTextFromNode(t);return this.measureTextWidth(n)},calculateOptimalSelectWidth({elementRef:r,options:e=[],selectedOption:t=null,selectedOptions:n=[],placeholder:i="",optionRenderer:l,type:u="Primary",isMulti:f=!1}){if(!r.current)return 200;try{let g=0;if(e&&e.length>0){const S=[...e.length>0?[e[0]]:[],...e.length>1?[e[e.length-1]]:[],...e.length>10?Array.from({length:8},(D,E)=>e[Math.floor(E*e.length/8)]):e,...e.length>20?Array.from({length:5},()=>e[Math.floor(Math.random()*e.length)]):[]],_=Array.from(new Set(S.filter(Boolean)));for(const D of _){if(!D)continue;const E=this.measureRenderedOptionWidth(D,l);g=Math.max(g,E)}}let m=0;if(!f&&t)m=this.measureRenderedOptionWidth(t,l);else if(f&&n&&n.length){if(n.length===1)m=this.measureRenderedOptionWidth(n[0],l);else if(m=this.measureTextWidth(`${n.length} selected`),n.length>0){let S=0;for(const _ of n){const D=this.measureRenderedOptionWidth(_,l);S=Math.max(S,D)}m=Math.max(m,S)}}let R=0;i&&(R=this.measureReactNodeWidth(i));const b=Math.max(g,m,R,50);if(r.current){const S=window.getComputedStyle(r.current),_=parseFloat(S.paddingLeft||"0")+parseFloat(S.paddingRight||"0"),D=parseFloat(S.borderLeftWidth||"0")+parseFloat(S.borderRightWidth||"0"),E=u==="Primary"?30:20,x=f?24:0,L=Math.ceil(b*.05)+10;return Math.ceil(b+_+D+E+x+L)}return b+60}catch{return 200}}};var yi=(r=>(r.N="North",r.S="South",r.E="East",r.W="West",r))(yi||{}),ef=(r=>(r.N="North",r.NW="NorthWest",r.NE="NorthEast",r.S="South",r.SW="SouthWest",r.SE="SouthEast",r.E="East",r.EN="EastNorth",r.ES="EastSouth",r.W="West",r.WN="WestNorth",r.WS="WestSouth",r))(ef||{});function fm(r,e,t,n){if(!r.current||!e.current)return;const i=r.current.getBoundingClientRect(),l=e.current.getBoundingClientRect();let u={bottom:void 0,left:void 0,right:void 0,top:void 0};switch(t){case"North":u=l?{bottom:window.innerHeight-i.top,left:i.left+i.width/2-l.width/2}:{bottom:window.innerHeight-i.top,left:i.left};break;case"NorthWest":u={bottom:window.innerHeight-i.top,left:i.left};break;case"NorthEast":u={bottom:window.innerHeight-i.top,right:window.innerWidth-i.left-i.width};break;case"South":u=l?{top:i.bottom,left:i.left+i.width/2-l.width/2}:{top:i.bottom,left:i.left};break;case"SouthWest":u={top:i.bottom,left:i.left};break;case"SouthEast":u={top:i.bottom,right:window.innerWidth-i.left-i.width};break;case"East":u=l?{top:i.top+i.height/2-l.height/2,left:i.right}:{top:i.top,left:i.right};break;case"EastNorth":u={bottom:window.innerHeight-i.top-i.height,left:i.right};break;case"EastSouth":u={top:i.top,left:i.right};break;case"West":u=l?{top:i.top+i.height/2-l.height/2,right:window.innerWidth-i.left}:{top:i.top,right:window.innerWidth-i.left};break;case"WestNorth":u={bottom:window.innerHeight-i.top-i.height,right:window.innerWidth-i.left};break;case"WestSouth":u={top:i.top,right:window.innerWidth-i.left};break;default:u={top:i.top,left:i.left}}n&&(n.x&&u.left&&(u.left+=n.x),n.y&&u.top&&(u.top+=n.y)),u=J_(u,l),e.current.style.top=u.top+"px",e.current.style.left=u.left+"px",e.current.style.bottom=u.bottom+"px",e.current.style.right=u.right+"px"}function X_(r,e,t,n){if(!r)return;const i=e instanceof HTMLElement?e:e==null?void 0:e.current;if(!i)return;const l=r.getBoundingClientRect(),u=i.getBoundingClientRect();let f={bottom:void 0,left:void 0,right:void 0,top:void 0};switch(t){case"North":f=u?{bottom:window.innerHeight-l.top,left:l.left+l.width/2-u.width/2}:{bottom:window.innerHeight-l.top,left:l.left};break;case"NorthWest":f={bottom:window.innerHeight-l.top,left:l.left};break;case"NorthEast":f={bottom:window.innerHeight-l.top,right:window.innerWidth-l.left-l.width};break;case"South":f=u?{top:l.bottom,left:l.left+l.width/2-u.width/2}:{top:l.bottom,left:l.left};break;case"SouthWest":f={top:l.bottom,left:l.left};break;case"SouthEast":f={top:l.bottom,right:window.innerWidth-l.left-l.width};break;case"East":f=u?{top:l.top+l.height/2-u.height/2,left:l.right}:{top:l.top,left:l.right};break;case"EastNorth":f={bottom:window.innerHeight-l.top-l.height,left:l.right};break;case"EastSouth":f={top:l.top,left:l.right};break;case"West":f=u?{top:l.top+l.height/2-u.height/2,right:window.innerWidth-l.left}:{top:l.top,right:window.innerWidth-l.left};break;case"WestNorth":f={bottom:window.innerHeight-l.top-l.height,right:window.innerWidth-l.left};break;case"WestSouth":f={top:l.top,right:window.innerWidth-l.left};break;default:f={top:l.top,left:l.left}}return n&&(n.x&&f.left&&(f.left+=n.x),n.y&&f.top&&(f.top+=n.y)),f=J_(f,u),i.style.top=f.top+"px",i.style.left=f.left+"px",i.style.bottom=f.bottom+"px",i.style.right=f.right+"px",f}function J_(r,e,t=10){return r.left&&r.left<t&&(r.left=t),r.right&&r.right<t&&(r.right=t),r.top&&r.top<t&&(r.top=t),r.bottom&&r.bottom<t&&(r.bottom=t),r.left&&e&&r.left+e.width>window.innerWidth-t&&(r.left=window.innerWidth-e.width-t),r.right&&e&&r.right+e.width>window.innerWidth-t&&(r.right=window.innerWidth-e.width-t),r.top&&e&&r.top+e.height>window.innerHeight-t&&(r.top=window.innerHeight-e.height-t),r.bottom&&e&&r.bottom+e.height>window.innerHeight-t&&(r.bottom=window.innerHeight-e.height-t),r}function Gc(){const r={preventDefault:!1};return{event:r,e:{preventDefault:()=>r.preventDefault=!0}}}const V4="_Tooltip_3l8se_1",G4="_Arrow_3l8se_17",Xv={Tooltip:V4,Arrow:G4},Q_=r=>{const{tooltip:e,targetRef:t,delay:n=0,distance:i=10,direction:l=yi.S}=r,[u,f]=A.useState(!1),g=A.useRef(null),m=A.useRef(null),R=A.useRef(),w=A.useCallback(()=>{f(!0),R.current&&(clearTimeout(R.current),R.current=void 0);const D=setTimeout(()=>Jv(t,g,m,i,l),n);R.current=D},[t,n,i,l]),b=A.useCallback(()=>f(!1),[]);A.useEffect(()=>{const D=t.current;if(D)return D.addEventListener("mouseenter",w),D.addEventListener("mouseleave",b),()=>{D.removeEventListener("mouseenter",w),D.removeEventListener("mouseleave",b)}},[t,b,w]);const S=A.useCallback(()=>{Jv(t,g,m,i,l)},[t,i,l]);A.useEffect(()=>{if(!t.current||!g.current||!u)return;const D=t.current.parentElement;let E=D;for(;E;)E.addEventListener("scroll",S),E=E.parentElement;return()=>{let x=D;for(;x;)x.removeEventListener("scroll",S),x=x.parentElement}},[t,S,u]),A.useEffect(()=>{S()},[e,S]);const _=A.useMemo(()=>{switch(typeof e){case"boolean":return!0;case"string":return e==="";case"number":return!1;default:return!e}},[e]);return!u||_?null:Hs.createPortal(v.jsxs("div",{className:Fe.clsx(Xv.Tooltip,"NoSelect"),ref:g,children:[e,v.jsx("div",{ref:m,className:Xv.Arrow})]}),document.body)},Td="5px solid var(--ATooltip_background-color)";function Jv(r,e,t,n,i=yi.S){if(!r.current||!e.current||!t.current)return;const l=Z4(r.current,e.current,n,i);if(!l)return;const{left:u,top:f,arrowDir:g,arrow:m}=l;e.current.style.left=`${u}px`,e.current.style.top=`${f}px`,e.current.style.visibility="visible",e.current.style.opacity="1",t.current.style.border="5px solid transparent",g===yi.N?(t.current.style.top="-9px",t.current.style.left=`calc(50% - 5px + ${m.left??0}px)`,t.current.style.borderBottom=Td):g===yi.S?(t.current.style.top="100%",t.current.style.left=`calc(50% - 5px + ${m.left??0}px)`,t.current.style.borderTop=Td):g===yi.W?(t.current.style.top=`calc(50% - 5px + ${m.top??0}px)`,t.current.style.left="-9px",t.current.style.borderRight=Td):g===yi.E&&(t.current.style.top=`calc(50% - 5px + ${m.top??0}px)`,t.current.style.left="100%",t.current.style.borderLeft=Td)}const Gl=5;function Z4(r,e,t,n){const i=r.getBoundingClientRect(),l=e.getBoundingClientRect();function u(){if(window.innerHeight-i.bottom>l.height+t){const R=i.bottom+t,w=i.left+(i.width-l.width)/2,b=Nf(w,Gl,window.innerWidth-Gl-l.width),S=yi.N;return{left:b,top:R,arrowDir:S,arrow:{left:w-b}}}}function f(){if(i.top>l.height+t){const R=i.top-l.height-t,w=i.left+(i.width-l.width)/2,b=Nf(w,Gl,window.innerWidth-Gl-l.width),S=yi.S;return{left:b,top:R,arrowDir:S,arrow:{left:w-b}}}}function g(){if(window.innerWidth-i.right>l.width+t){const R=i.right+t,w=i.top+(i.height-l.height)/2,b=Nf(w,Gl,window.innerHeight-Gl-l.height),S=yi.W;return{left:R,top:b,arrowDir:S,arrow:{top:w-b}}}}function m(){if(i.left>l.width+t){const R=i.left-l.width-t,w=i.top+(i.height-l.height)/2,b=Nf(w,Gl,window.innerHeight-Gl-l.height),S=yi.E;return{left:R,top:b,arrowDir:S,arrow:{top:w-b}}}}if(n===yi.E)return g()||m()||u()||f();if(n===yi.S)return u()||f()||g()||m();if(n===yi.W)return m()||g()||u()||f();if(n===yi.N)return f()||u()||g()||m()}const K4="_ABase_xbi52_1",Y4="_UseDimming_xbi52_6",X4="_Dimmer_xbi52_6",J4="_Spinner_xbi52_9",Q4="_Dimmed_xbi52_12",e5="_IsDimmed_xbi52_33",t5="_IsLoading_xbi52_38",r5="_IsDisabled_xbi52_43",Rf={ABase:K4,UseDimming:Y4,Dimmer:X4,Spinner:J4,Dimmed:Q4,IsDimmed:e5,IsLoading:t5,IsDisabled:r5},$r=r=>{const{children:e,abaseRef:t,isDisabled:n,isLoading:i,isDimmed:l,tooltip:u,tooltipDistance:f=10,tooltipDelay:g=0,tooltipDirection:m=yi.S,...R}=r,w=A.useRef(null),b=A.useMemo(()=>t??w,[t]),S=A.useMemo(()=>typeof n=="string"&&n!==""?n:u!==void 0?u:"",[n,u]),_=A.useMemo(()=>n||i||l,[n,i,l]),D=A.useMemo(()=>n!==void 0||i!==void 0||l!==void 0,[n,i,l]);return v.jsxs("div",{...R,className:Fe.clsx(R.className,Rf.ABase,D&&Rf.UseDimming,_&&Rf.Dimmed),ref:b,children:[e,D&&v.jsx("div",{className:Fe.sclsx(Rf,"Dimmer",n&&"IsDisabled",i&&"IsLoading",l&&"IsDimmed")}),i&&v.jsx("div",{className:Fe.sclsx(Rf,"Spinner",n&&"IsDisabled",i&&"IsLoading"),children:v.jsx(jr,{icon:"Spinner"})}),v.jsx(Q_,{tooltip:S,delay:g,distance:f,direction:m,targetRef:b})]})},n5="_AButton_vulhu_1",i5="_Primary_vulhu_14",o5="_Secondary_vulhu_19",s5="_Alter_vulhu_24",a5="_AIconButton_vulhu_30",l5="_AThemeButton_vulhu_71",Zf={AButton:n5,Primary:i5,Secondary:o5,Alter:s5,AIconButton:a5,AThemeButton:l5},c5=["Primary","Secondary","Alter","Raw"],Fi=r=>{const{type:e="Primary",onClick:t,noInteractive:n,...i}=r,l=A.useMemo(()=>i.isDisabled||i.isLoading,[i.isDisabled,i.isLoading]),u=A.useCallback(f=>{l||t==null||t(f)},[l,t]);return v.jsx($r,{...i,className:Fe.clsx(i.className,Zf.AButton,e!=="Raw"&&Zf[e],"IsClickable",!l&&!n&&"IsInteractive"),onClick:u})},u5=["Primary","Secondary","Raw"],_i=r=>{const{icon:e,iconSize:t,type:n="Primary",onClick:i,isDisabled:l,isLoading:u,tooltip:f,className:g,...m}=r,R=A.useMemo(()=>l||u,[l,u]),w=A.useCallback(S=>{R||i==null||i(S)},[R,i]),b=A.useMemo(()=>um.includes(e)?v.jsx(jr,{icon:e,size:t}):e,[e,t]);return v.jsx($r,{className:Fe.clsx(Zf.AIconButton,!l&&!u&&"IsClickable",n!=="Raw"&&Zf[n],g),onClick:w,isDisabled:l,isLoading:u,tooltip:f,...m,children:b})};function nn(r,e){r!==void 0&&r.length===1&&(e=r[0]);const t=A.useState(e);return A.useMemo(()=>r===void 0||r.length===1?t:r,[t,r])}const f5={Ok:"Ok",Cancel:"Cancel"},d5={"select n":r=>v.jsxs(v.Fragment,{children:["Select ",r]}),"deselect n":r=>v.jsxs(v.Fragment,{children:["Deselect ",r]}),"Search(Placeholder)":"Search","Search(Button)":"Search",Items:"Items","*Click row for single select":"*Click row for single select","*Change order to row drag":"*Change order to row drag","Loading Contents...":"Loading Contents..."},h5={weekDays:r=>["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][r],months:r=>["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][r],"Select Date":"Select Date"},p5={weekDays:r=>["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][r],months:r=>["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][r],"Select DateRange":"Select DateRange","1일":"1 Day","1주일":"1 Week","1개월":"1 Month","3개월":"3 Months"},g5={"drop file to select":"Drop file to select","or Drag & Drop":"or Drag & Drop","Select File":"Select File"},m5={"Checked n items":r=>v.jsxs(v.Fragment,{children:["Checked ",r," items"]}),"Searched n items":r=>v.jsxs(v.Fragment,{children:["Searched ",r," items"]}),"Total n items":r=>v.jsxs(v.Fragment,{children:["Total ",r," items"]}),"Sort by x":r=>v.jsxs(v.Fragment,{children:["Sort by ",r]}),"Sort up":"Sort up","Sort down":"Sort down",Asc:"Asc",Desc:"Desc","Search(Placeholder)":"Search","Search(Button)":"Search","Clear(Button)":"Clear",Select:"Select","Toggle Filter":"Toggle Filter","No Items":"No Items"},v5={"Select(Placeholder)":"Select"},y5={"Select(Placeholder)":"Select"},b5={"Insert Column Right":"Insert Column Right","Insert Column Left":"Insert Column Left","Insert Row Top":"Insert Row Top","Insert Row Bottom":"Insert Row Bottom","Delete Column":"Delete Column","Delete Row":"Delete Row","Delete Table":"Delete Table","Image size adjust":"Image size adjust",Center:"Center",floatLeft:"Left",floatRight:"Right","Input on mouse down":"Input on mouse down",Restore:"Restore","Right click to open properties":"Right click to open properties",Default:"Default"},_5={Asterisk:"Required field"},x5={Delete:"Delete","Fail Download":"Fail Download",Download:"Download","Drop file to select":"Drop file to select","Insert File":"Insert File","Download All":"Download All","Delete All":"Delete All","Unsupported file format detected.":"Unsupported file format detected.","Invalid file(s)":"Invalid file(s)","Supported file format(s)":"Supported file format(s)",and:"and","more file(s)":"more file(s)"},hn={ADialog:f5,ATree:d5,ADatePicker:h5,ADateRangePicker:p5,AFileBox:g5,ATable:m5,ASelect:v5,AMultiSelect:y5,AEditor:b5,AWrap:_5,AFileUploader:x5};function S5(r,e){er.keys(e).forEach(t=>{r[t]=e[t]})}const C5=(r,e)=>{S5(hn[r],e)},w5="_AWrap_16uyn_1",A5="_Label_16uyn_8",T5="_Asterisk_16uyn_19",E5="_HelperTextConatiner_16uyn_23",k5="_HelperText_16uyn_23",Du={AWrap:w5,Label:A5,Asterisk:T5,HelperTextConatiner:E5,HelperText:k5,Error:"_Error_16uyn_38"},R5=["Default","Error"],ec=r=>{const{wrapProps:e,errorMessage:t,helperText:n,wrapType:i="Default",label:l,labelProps:u,children:f}=r,g=A.useRef(null),[m,R]=A.useState({height:0}),w=A.useRef(null),[b,S]=A.useMemo(()=>{let D=n,E=i;if(Array.isArray(t)){const x=t.filter(Boolean);x.length>0&&([D,E]=[x,"Error"])}else t&&([D,E]=[t,"Error"]);return Array.isArray(D)&&(E!=="Error"&&(D=D.filter(Boolean)),D=D.map((x,L)=>v.jsxs(A.Fragment,{children:[x,v.jsx("br",{})]},L))),[D,E]},[n,t,i]);A.useEffect(()=>{if(!b||!g.current)R({height:0});else{const D=g.current.getBoundingClientRect();R({height:D.height,marginTop:D.height===0?0:6})}},[b]);const _=A.useMemo(()=>{switch(typeof(u==null?void 0:u.prefix)){case"string":return v.jsx(jr,{width:"1rem",height:"1rem",icon:u.prefix});case"boolean":return v.jsx(jr,{width:10,height:10,icon:"Target"});default:return u==null?void 0:u.prefix}},[u==null?void 0:u.prefix]);return v.jsxs("div",{...e,className:Fe.clsx(e==null?void 0:e.className,Du.AWrap),ref:w,children:[l&&v.jsxs("div",{className:Fe.clsx(Du.Label,"NoSelect",u==null?void 0:u.className),style:u==null?void 0:u.style,children:[_,l,(u==null?void 0:u.asterisk)&&v.jsx($r,{tooltip:hn.AWrap.Asterisk,className:Du.Asterisk,children:"*"})]}),f,b!==void 0&&v.jsx("div",{className:Fe.clsx(Du.HelperTextConatiner,"NoSelect"),style:m,children:v.jsx("div",{className:Fe.clsx(Du.HelperText,Du[S]),ref:g,children:b})})]})},I5="_ASwitch_1uv2e_1",L5="_Track_1uv2e_6",M5="_Truthy_1uv2e_13",D5="_Thumb_1uv2e_17",If={ASwitch:I5,Track:L5,Truthy:M5,Thumb:D5},e2=r=>{const{wrapProps:e,helperText:t,label:n,useCheck:i,...l}=r,[u,f]=nn(i,!1),g=A.useCallback(m=>{var R;l.isDisabled||l.isLoading||(f==null||f(!u),(R=l.onClick)==null||R.call(l,m))},[l,u,f]);return v.jsx(ec,{helperText:t,label:n,wrapProps:{...e},children:v.jsx($r,{...l,className:If.ASwitch,onClick:g,children:v.jsx("div",{className:Fe.clsx(If.Track,u&&If.Truthy),children:v.jsx("div",{className:Fe.clsx(If.Thumb,u&&If.Truthy)})})})})},O5={palette:{"mode-1":{"common-100":"#ffffff","common-0":"#000000","neutral-99":"#fcfcfc","neutral-94":"#efefef","neutral-89":"#e2e2e2","neutral-84":"#d6d6d6","neutral-79":"#c9c9c9","neutral-73":"#bababa","neutral-65":"#a5a5a5","neutral-54":"#898989","neutral-42":"#6b6b6b","neutral-30":"#4c4c4c","neutral-20":"#333333","neutral-15":"#2c2c2c","neutral-10":"#191919","neutral-5":"#0c0c0c","cool-neutral-99":"#fcfcfc","cool-neutral-94":"#efeff0","cool-neutral-89":"#e1e2e4","cool-neutral-84":"#d4d5d7","cool-neutral-79":"#c7c8cb","cool-neutral-73":"#b7b9bc","cool-neutral-65":"#a2a4a9","cool-neutral-54":"#85888e","cool-neutral-42":"#66696f","cool-neutral-30":"#494b4f","cool-neutral-20":"#303235","cool-neutral-10":"#18191a","cool-neutral-5":"#0c0c0c","red-99":"#fff9f9","red-95":"#ffe5e5","red-90":"#ffcccc","red-84":"#ffadad","red-76":"#ff8484","red-66":"#ff5151","red-53":"#ff0f0f","red-45":"#e50000","red-34":"#a80000","red-30":"#990000","red-24":"#7a0000","red-10":"#330000","green-99":"#fafffa","green-95":"#e5ffe8","green-90":"#ccffd1","green-84":"#adffb6","green-76":"#84ff90","green-66":"#51ff62","green-48":"#00f418","green-45":"#00e517","green-34":"#00a810","green-30":"#00990f","green-24":"#007a0c","green-10":"#003305","blue-99":"#fafdff","blue-95":"#e5f3ff","blue-90":"#cce6ff","blue-84":"#add7ff","blue-76":"#84c3ff","blue-66":"#51abff","blue-53":"#0f8bff","blue-45":"#0077e5","blue-34":"#0056a8","blue-30":"#004f99","blue-24":"#003f7a","blue-10":"#001a33","orange-99":"#fffcfa","orange-95":"#ffefe5","orange-90":"#ffdecc","orange-84":"#ffcbad","orange-76":"#ffb184","orange-66":"#ff9151","orange-53":"#ff670f","orange-45":"#e55400","orange-34":"#a83d00","orange-30":"#993800","orange-24":"#7a2c00","orange-10":"#331200","violet-99":"#fcfaff","violet-95":"#eee5ff","violet-90":"#dcccff","violet-84":"#c7adff","violet-76":"#ab84ff","violet-66":"#8852ff","violet-53":"#5b0fff","violet-45":"#4900e5","violet-34":"#3500a8","violet-28":"#2d008e","violet-24":"#26007a","violet-10":"#100033","cyan-99":"#faffff","cyan-95":"#e5fdff","cyan-90":"#ccfbff","cyan-84":"#adf9ff","cyan-76":"#84f6ff","cyan-66":"#51f3ff","cyan-50":"#00edff","cyan-45":"#00d6e5","cyan-40":"#00becc","cyan-30":"#008e99","cyan-21":"#00636b","cyan-10":"#002f33","pink-99":"#fffefa","pink-95":"#ffe5f5","pink-90":"#ffccea","pink-84":"#ffadde","pink-76":"#ff84ce","pink-66":"#ff51b9","pink-53":"#ff0f9f","pink-45":"#e5008a","pink-40":"#cc007a","pink-30":"#99005b","pink-21":"#6b0040","pink-10":"#33001e","lime-99":"#fcfffa","lime-95":"#eeffe5","lime-90":"#ddffcc","lime-84":"#c8ffad","lime-76":"#adff84","lime-66":"#8bff51","lime-49":"#53f900","lime-45":"#4ce500","lime-40":"#44cc00","lime-30":"#339900","lime-21":"#236b00","lime-10":"#113300","brand-b-color":"#386fff"}},semantic:{light:{"static-white":"common-100","static-black":"common-0","acent-brand":"brand-b-color","label-normal":"neutral-20","label-strong":"neutral-5","label-neutral":"neutral-73","line-normal":"neutral-79","line-strong":"neutral-65","line-neutral":"neutral-89","background-normal":"common-100","elevation-0":"common-100","elevation-10":"neutral-94","elevation-20":"neutral-73","alert-warning":"orange-53","alert-success":"green-45","alert-danger":"red-45","inverse-label-normal":"neutral-84","inverse-label-strong":"neutral-99","inverse-label-neutral":"neutral-30","inverse-line-normal":"neutral-30","inverse-line-strong":"neutral-54","inverse-line-neutral":"neutral-20","inverse-elevation-0":"neutral-5","inverse-elevation-10":"neutral-10","inverse-elevation-20":"neutral-15"},dark:{"static-white":"common-100","static-black":"common-0","acent-brand":"brand-b-color","label-normal":"neutral-84","label-strong":"neutral-99","label-neutral":"neutral-30","line-normal":"neutral-30","line-strong":"neutral-54","line-neutral":"neutral-20","background-normal":"neutral-5","elevation-0":"neutral-5","elevation-10":"neutral-10","elevation-20":"neutral-15","alert-warning":"orange-53","alert-success":"green-45","alert-danger":"red-45","inverse-label-normal":"neutral-20","inverse-label-strong":"neutral-5","inverse-label-neutral":"neutral-73","inverse-line-normal":"neutral-79","inverse-line-strong":"neutral-65","inverse-line-neutral":"neutral-89","inverse-elevation-0":"common-100","inverse-elevation-10":"neutral-94","inverse-elevation-20":"neutral-73"}}},xi=z_.cloneDeep(O5);er.keys(xi.semantic).forEach(r=>{const e=xi.semantic[r];er.keys(e).forEach(t=>{e[t]=`var(--${e[t]})`})});const oh=er.keys(xi.palette),t2=er.keys(xi.palette[oh[0]]);function P5(){return ai.paletteMode}function N5(r,e=ai.paletteMode){return xi.palette[e][r]}function F5(r){return ah(r)}const Zd=[];function r2(r){ai.paletteMode=r,t2.forEach(e=>document.documentElement.style.setProperty(`--${e}`,xi.palette[r][e])),Zd.forEach(e=>e(r))}function n2(r,e="all"){er.keys(r).forEach(n=>{const i=r[n];i!==void 0&&(document.documentElement.style.setProperty(`--${n}`,i),e==="all"?oh.forEach(l=>{xi.palette[l][n]=i}):xi.palette[e][n]=i)})}const Gu=er.keys(xi.semantic),i2=er.keys(xi.semantic[Gu[0]]);function j5(){return ai.semanticMode}function B5(r,e=ai.semanticMode){return xi.semantic[e][r]}function H5(r){return ah(r)}const Kd=[];function dm(r){ai.semanticMode=r,document.documentElement.setAttribute("data-theme",r),i2.forEach(e=>document.documentElement.style.setProperty(`--${e}`,xi.semantic[r][e])),Kd.forEach(e=>e(r)),ai.save==="localStorage"?localStorage.setItem("semanticMode",r):ai.save==="sessionStorage"&&sessionStorage.setItem("semanticMode",r)}function o2(r,e=ai.semanticMode){er.keys(r).forEach(n=>{const i=r[n];i!==void 0&&(document.documentElement.style.setProperty(`--${n}`,i),e==="all"?Gu.forEach(l=>{xi.semantic[l][n]=i}):xi.semantic[e][n]=i)})}const s2=["Body-background-color","Body-color","Body-transition","Font","Scrollbar-handle","Scrollbar-handle-hover","Scrollbar-handle-active","Scrollbar-track","Scrollbar-border-radius","Scrollbar-width","Transition"],a2=["ABase_Dimming_background-color"],l2=["ATooltip_background-color","ATooltip_color"],c2=["AButton_Primary_border","AButton_Primary_background-color","AButton_Primary_color","AButton_Secondary_border","AButton_Secondary_background-color","AButton_Secondary_color","AButton_Alter_border","AButton_Alter_background-color","AButton_Alter_color"],u2=["AInput_Primary_background-color","AInput_Primary_border","AInput_Primary_color","AInput_Primary_hover_border","AInput_Primary_focus_background-color","AInput_Primary_focus_border","AInput_Primary_placeholder_color","AInput_Secondary_background-color","AInput_Secondary_border","AInput_Secondary_color","AInput_Secondary_hover_border","AInput_Secondary_focus_border","AInput_Secondary_placeholder_color","AInput_ReadOnly_background-color","AInput_ReadOnly_border","AInput_ReadOnly_color","AInput_Error_HelperText_color","AInput_Error_background-color","AInput_Error_border","AInput_Error_color","AInput_Error_placeholder_color"],f2=["ATextArea_Primary_background-color","ATextArea_Primary_border","ATextArea_Primary_color","ATextArea_Primary_hover_border","ATextArea_Primary_focus_background-color","ATextArea_Primary_focus_border","ATextArea_Secondary_background-color","ATextArea_Secondary_border","ATextArea_Secondary_color","ATextArea_Secondary_hover_border","ATextArea_Secondary_focus_border","ATextArea_ReadOnly_background-color","ATextArea_ReadOnly_border","ATextArea_ReadOnly_color","ATextArea_Error_background-color","ATextArea_Error_border","ATextArea_Error_color","ATextArea_Error_placeholder_color"],d2=["AEditor_Primary_background-color","AEditor_Primary_border","AEditor_Primary_color","AEditor_Primary_hover_border","AEditor_Primary_focus_background-color","AEditor_Primary_focus_border","AEditor_ReadOnly_background-color","AEditor_ReadOnly_border","AEditor_ReadOnly_hover_border","AEditor_ReadOnly_focus_border","AEditor_ReadOnly_color","AEditor_Error_background-color","AEditor_Error_border","AEditor_Error_color","AEditor_Error_placeholder_color","AEditor_Addon_Primary_background-color","AEditor_Addon_Primary_border","AEditor_Addon_Primary_color","AEditor_Addon_Secondary_background-color","AEditor_Addon_Secondary_border","AEditor_Addon_Secondary_color","AEditor_Addon_hover_background-color","AEditor_Addon_hover_color","AEditor_Addon_focus_border","AEditor_border-radius","AEditor_Select_border-radius","AEditor_Option_border-radius"],h2=["ACheckBox_color"],p2=["ADialog_Paper_background-color","ADialog_background-color","ADialog_border","ADialog_Action_background-color"],g2=["ASelect_Placeholder_color","ASelect_Primary_border","ASelect_Primary_hover_border","ASelect_Primary_Arrow_color","ASelect_Primary_Options_background-color","ASelect_Primary_Options_border","ASelect_Primary_Option_hover_background-color","ASelect_Primary_Option_active_background-color","ASelect_Primary_Option_Selected_background-color","ASelect_Secondary_border","ASelect_Secondary_hover_border","ASelect_Secondary_background-color","ASelect_Secondary_Arrow_color","ASelect_Secondary_Options_background-color","ASelect_Secondary_Options_border","ASelect_Secondary_Option_hover_background-color","ASelect_Secondary_Option_active_background-color","ASelect_Secondary_Option_Selected_background-color"],m2=["AMultiSelect_Placeholder_color","AMultiSelect_Primary_border","AMultiSelect_Primary_hover_border","AMultiSelect_Primary_Arrow_color","AMultiSelect_Primary_Options_background-color","AMultiSelect_Primary_Options_border","AMultiSelect_Primary_Option_hover_background-color","AMultiSelect_Primary_Option_active_background-color","AMultiSelect_Primary_Option_Selected_background-color","AMultiSelect_Secondary_border","AMultiSelect_Secondary_hover_border","AMultiSelect_Secondary_background-color","AMultiSelect_Secondary_Arrow_color","AMultiSelect_Secondary_Options_background-color","AMultiSelect_Secondary_Options_border","AMultiSelect_Secondary_Option_hover_background-color","AMultiSelect_Secondary_Option_active_background-color","AMultiSelect_Secondary_Option_Selected_background-color"],v2=["ATree_background-color","ATree_Indent_border","ATreeBodyHeader_border-bottom","ATreeItem_hover_background-color","ATreeItem_active_background-color","ATreeItem_select_background-color","ATreeItem_search_background-color","ATreeItem_search_border-top","ATreeItem_search_border-bottom","ATreeItem_select_color"],y2=["ASwitch_Track_Falsy_border","ASwitch_Track_Truthy_border","ASwitch_Thumb_border"],b2=["ATab_IndicatorTrack_Primary_border-bottom","ATab_Indicator_Primary_background-color","ATab_Option_Secondary_border","ATab_Option_Secondary_IsSelected_border-bottom","ATab_Option_Secondary_IsDisabled_border","ATab_IndicatorTrack_Tertiary_background-color","ATab_Indicator_Tertiary_background-color","ATab_Option_Tertiary_color","ATab_Option_Tertiary_IsSelected_color","ATab_Option_Quaternary_color","ATab_Option_Quaternary_IsSelected_color"],_2=["AFileBox_border","AFileBox_background-color","AFileBox_SelectedFile_color","AFileBox_Dropping_color"],x2=["AListView_border-thin","AListView_border-thick"],S2=["AStepper_OutCircle_background-color","AStepper_OutCircle_IsOver_background-color","AStepper_InCircle_background-color","AStepper_InCircle_IsOver_background-color","AStepper_Line_background-color","AStepper_Line_IsOver_background-color"],C2=["ADatePicker_Anchor_border","ADatePicker_Anchor_color","ADatePicker_Anchor_Placeholder_color","ADatePicker_Anchor_hover_border","ADatePicker_Anchor_focus_border","ADatePicker_Anchor_Icon_Primary_color","ADatePicker_Anchor_Icon_Secondary_color","ADatePicker_background-color","ADatePicker_border","ADatePicker_StringInputContainer_background-color","ADatePicker_String_border","ADatePicker_Prev_background-color","ADatePicker_Prev_border-right","ADatePicker_Next_background-color","ADatePicker_Next_border-left","ADatePicker_Cell_color","ADatePicker_Cell_IsNotCurrentMonth_color","ADatePicker_Cell_IsDisabled_color","ADatePicker_Cell_IsSelected_background-color","ADatePicker_Cell_IsSelected_color","ADatePicker_Cell_IsHovered_background-color"],w2=["ADateRangePicker_Anchor_border","ADateRangePicker_Anchor_color","ADateRangePicker_Anchor_Placeholder_color","ADateRangePicker_Anchor_hover_border","ADateRangePicker_Anchor_focus_border","ADateRangePicker_Anchor_Icon_Primary_color","ADateRangePicker_Anchor_Icon_Secondary_color","ADateRangePicker_background-color","ADateRangePicker_border","ADateRangePicker_StringInputContainer_background-color","ADateRangePicker_String_border","ADateRangePicker_Prev_background-color","ADateRangePicker_Prev_border-right","ADateRangePicker_Next_background-color","ADateRangePicker_Next_border-left","ADateRangePicker_Cell_color","ADateRangePicker_Cell_IsNotCurrentMonth_color","ADateRangePicker_Cell_IsDisabled_color","ADateRangePicker_Cell_IsSelected_background-color","ADateRangePicker_Cell_IsSelected_color","ADateRangePicker_Cell_IsHovered_background-color"],A2=["AIconButton_Primary_color","AIconButton_Primary_border","AIconButton_Primary_background-color","AIconButton_Primary_hover_background-color","AIconButton_Primary_active_background-color","AIconButton_Secondary_color","AIconButton_Secondary_background-color","AIconButton_Secondary_hover_background-color","AIconButton_Secondary_active_background-color"],T2=["ATableBody_TRow_border-bottom","ATableBody_TRow_IsSelected_background-color","ATableBody_TRow_IsSelectable_hover_background-color","ATableBody_TH_color","ATableBody_TD_IsMarked_background-color","ATableBody_TD_IsMarked_color","ATableBody_Resizer_hover_ResizerCenter_background-color","ATableBody_Resizer_active_ResizerCenter_background-color","ATableBody_Resizer_active_ResizerOut_background-color","ATableBody_Resizer_active_ResizerIn_background-color","ATableFooter_Button_IsSelected_background-color","ATableFooter_Button_IsSelected_color","ATableFooter_Button_IsDisabled_color","ATableFilter_SubFilters_background-color","ATableFilter_SubFilters_border","ATableFilter_Icon_color","ATableFilter_Alert_color"],E2=["ADivideFrame_DividerInner_background-color"],k2=["AFloatMenu_background-color","AFloatMenu_hover_background-color","AFloatMenu_color","AFloatMenu_border"],R2=["ALoadingBorder_background-color","ALoadingBorder_ProgressBar_background-color","ALoadingBorder_Cover_background-color"],I2=["AWrap_Error_color"],L2=["ARadioSelect_RadioButton_border","ARadioSelect_RadioButton_InnerCircle_isChecked_background-color"],M2=["AChip_background-color","AChip_color","AChip_border","AChip_hover_background-color","AChip_hover_color","AChip_DeleteButton_border","AChip_DeleteButton_color","AChip_DeleteButton_hover_border","AChip_DeleteButton_hover_color"],q5=[...s2,...a2,...l2,...c2,...u2,...f2,...d2,...h2,...p2,...g2,...m2,...v2,...y2,...b2,..._2,...x2,...S2,...C2,...w2,...A2,...T2,...E2,...k2,...R2,...I2,...L2,...M2],sh={"Body-background-color":"var(--background-normal)","Body-color":"var(--label-normal)","Body-transition":"background-color var(--Transition), color var(--Transition)",Font:"400 16px pretendard","Scrollbar-handle":"var(--label-neutral)","Scrollbar-handle-hover":"var(--label-normal)","Scrollbar-handle-active":"var(--label-strong)","Scrollbar-track":"var(--elevation-10)","Scrollbar-border-radius":"6px","Scrollbar-width":"12px",Transition:"300ms","ABase_Dimming_background-color":"var(--elevation-0)","ATooltip_background-color":"var(--inverse-elevation-0)",ATooltip_color:"var(--inverse-label-strong)",AButton_Primary_border:"none","AButton_Primary_background-color":"var(--acent-brand)",AButton_Primary_color:"var(--static-white)",AButton_Secondary_border:"1px solid var(--elevation-10)","AButton_Secondary_background-color":"var(--elevation-10)",AButton_Secondary_color:"var(--label-normal)",AButton_Alter_border:"1px solid var(--line-normal)","AButton_Alter_background-color":"var(--elevation-0)",AButton_Alter_color:"var(--label-normal)","AInput_Primary_background-color":"var(--elevation-0)",AInput_Primary_border:"1px solid var(--line-normal)",AInput_Primary_color:"var(--label-normal)",AInput_Primary_hover_border:"1px solid var(--line-strong)","AInput_Primary_focus_background-color":"var(--elevation-10)",AInput_Primary_focus_border:"1px solid var(--line-strong)",AInput_Primary_placeholder_color:"var(--label-neutral)","AInput_Secondary_background-color":"var(--elevation-0)",AInput_Secondary_border:"1px solid var(--line-normal)",AInput_Secondary_color:"var(--label-normal)",AInput_Secondary_hover_border:"1px solid var(--line-strong)",AInput_Secondary_focus_border:"1px solid var(--line-strong)",AInput_Secondary_placeholder_color:"var(--label-neutral)","AInput_ReadOnly_background-color":"var(--elevation-10)",AInput_ReadOnly_border:"none",AInput_ReadOnly_color:"var(--label-normal)",AInput_Error_HelperText_color:"var(--alert-danger)","AInput_Error_background-color":"inherit",AInput_Error_border:"1px solid var(--line-normal)",AInput_Error_color:"var(--label-normal)",AInput_Error_placeholder_color:"var(--label-neutral)","ATextArea_Primary_background-color":"var(--elevation-0)",ATextArea_Primary_border:"1px solid var(--line-normal)",ATextArea_Primary_color:"var(--label-normal)",ATextArea_Primary_hover_border:"1px solid var(--line-strong)","ATextArea_Primary_focus_background-color":"var(--elevation-10)",ATextArea_Primary_focus_border:"1px solid var(--line-strong)","ATextArea_Secondary_background-color":"var(--elevation-0)",ATextArea_Secondary_border:"1px solid var(--line-normal)",ATextArea_Secondary_color:"var(--label-normal)",ATextArea_Secondary_hover_border:"1px solid var(--line-strong)",ATextArea_Secondary_focus_border:"1px solid var(--line-strong)","ATextArea_ReadOnly_background-color":"var(--elevation-10)",ATextArea_ReadOnly_border:"none",ATextArea_ReadOnly_color:"var(--label-normal)","ATextArea_Error_background-color":"inherit",ATextArea_Error_border:"1px solid var(--line-normal)",ATextArea_Error_color:"var(--label-normal)",ATextArea_Error_placeholder_color:"var(--label-neutral)","AEditor_Primary_background-color":"var(--elevation-0)",AEditor_Primary_border:"1px solid var(--line-normal)",AEditor_Primary_color:"var(--label-normal)",AEditor_Primary_hover_border:"1px solid var(--line-strong)","AEditor_Primary_focus_background-color":"var(--elevation-0)",AEditor_Primary_focus_border:"1px solid var(--line-strong)","AEditor_ReadOnly_background-color":"var(--elevation-0)",AEditor_ReadOnly_border:"1px solid var(--line-normal)",AEditor_ReadOnly_hover_border:"1px solid var(--line-strong)",AEditor_ReadOnly_focus_border:"1px solid var(--line-strong)",AEditor_ReadOnly_color:"var(--label-normal)","AEditor_Error_background-color":"inherit",AEditor_Error_border:"1px solid var(--alert-danger)",AEditor_Error_color:"var(--alert-danger)",AEditor_Error_placeholder_color:"var(--alert-danger)","AEditor_Addon_Primary_background-color":"var(--background-normal)",AEditor_Addon_Primary_border:"1px solid var(--line-normal)",AEditor_Addon_Primary_color:"var(--label-normal)","AEditor_Addon_Secondary_background-color":"var(--background-normal)",AEditor_Addon_Secondary_border:"1px solid var(--line-strong)",AEditor_Addon_Secondary_color:"var(--label-neutral)","AEditor_Addon_hover_background-color":"var(--elevation-10)",AEditor_Addon_hover_color:"var(--acent-brand)",AEditor_Addon_focus_border:"1px solid var(--line-strong)","AEditor_border-radius":"2px","AEditor_Select_border-radius":"6px","AEditor_Option_border-radius":"6px",ACheckBox_color:"var(--label-normal)","ADialog_Paper_background-color":"#00000060","ADialog_background-color":"var(--elevation-0)",ADialog_border:"1px solid var(--line-neutral)","ADialog_Action_background-color":"var(--elevation-0)",ASelect_Placeholder_color:"var(--label-neutral)",ASelect_Primary_border:"1px solid var(--line-normal)",ASelect_Primary_hover_border:"1px solid var(--line-strong)",ASelect_Primary_Arrow_color:"var(--label-normal)","ASelect_Primary_Options_background-color":"var(--elevation-0)",ASelect_Primary_Options_border:"1px solid var(--line-normal)","ASelect_Primary_Option_hover_background-color":"var(--elevation-10)","ASelect_Primary_Option_active_background-color":"var(--elevation-10)","ASelect_Primary_Option_Selected_background-color":"var(--elevation-20)",ASelect_Secondary_border:"1px solid var(--elevation-10)",ASelect_Secondary_hover_border:"1px solid var(--elevation-10)","ASelect_Secondary_background-color":"var(--elevation-10)",ASelect_Secondary_Arrow_color:"var(--label-normal)","ASelect_Secondary_Options_background-color":"var(--elevation-0)",ASelect_Secondary_Options_border:"var(--line-normal)","ASelect_Secondary_Option_hover_background-color":"var(--elevation-10)","ASelect_Secondary_Option_active_background-color":"var(--elevation-10)","ASelect_Secondary_Option_Selected_background-color":"var(--elevation-20)",AMultiSelect_Placeholder_color:"var(--label-neutral)",AMultiSelect_Primary_border:"1px solid var(--line-normal)",AMultiSelect_Primary_hover_border:"1px solid var(--line-strong)",AMultiSelect_Primary_Arrow_color:"var(--label-normal)","AMultiSelect_Primary_Options_background-color":"var(--elevation-0)",AMultiSelect_Primary_Options_border:"1px solid var(--line-normal)","AMultiSelect_Primary_Option_hover_background-color":"var(--elevation-10)","AMultiSelect_Primary_Option_active_background-color":"var(--elevation-10)","AMultiSelect_Primary_Option_Selected_background-color":"var(--elevation-20)",AMultiSelect_Secondary_border:"1px solid var(--elevation-10)",AMultiSelect_Secondary_hover_border:"1px solid var(--elevation-10)","AMultiSelect_Secondary_background-color":"var(--elevation-10)",AMultiSelect_Secondary_Arrow_color:"var(--label-normal)","AMultiSelect_Secondary_Options_background-color":"var(--elevation-0)",AMultiSelect_Secondary_Options_border:"1px solid var(--line-normal)","AMultiSelect_Secondary_Option_hover_background-color":"var(--elevation-10)","AMultiSelect_Secondary_Option_active_background-color":"var(--elevation-10)","AMultiSelect_Secondary_Option_Selected_background-color":"var(--elevation-20)","ATree_background-color":"var(--elevation-0)",ATree_Indent_border:"1px solid var(--line-normal)","ATreeBodyHeader_border-bottom":"1px solid var(--line-normal)","ATreeItem_hover_background-color":"var(--elevation-10)","ATreeItem_active_background-color":"var(--elevation-10)","ATreeItem_select_background-color":"var(--elevation-10)","ATreeItem_search_background-color":"yellow","ATreeItem_search_border-top":"1px dashed var(--label-normal)","ATreeItem_search_border-bottom":"1px dashed var(--label-normal)",ATreeItem_select_color:"var(--label-normal)",ASwitch_Track_Falsy_border:"12px solid var(--elevation-20)",ASwitch_Track_Truthy_border:"12px solid var(--acent-brand)",ASwitch_Thumb_border:"9px solid var(--static-white)","ATab_IndicatorTrack_Primary_border-bottom":"1px solid var(--line-normal)","ATab_Indicator_Primary_background-color":"var(--label-normal)",ATab_Option_Secondary_border:"2px solid var(--label-normal)","ATab_Option_Secondary_IsSelected_border-bottom":"2px solid var(--elevation-0)",ATab_Option_Secondary_IsDisabled_border:"2px solid var(--line-neutral)","ATab_IndicatorTrack_Tertiary_background-color":"var(--line-normal)","ATab_Indicator_Tertiary_background-color":"var(--elevation-0)",ATab_Option_Tertiary_color:"var(--line-strong)",ATab_Option_Tertiary_IsSelected_color:"var(--label-strong)",ATab_Option_Quaternary_color:"var(--label-neutral)",ATab_Option_Quaternary_IsSelected_color:"var(--label-normal)",AFileBox_border:"1px dashed var(--label-normal)","AFileBox_background-color":"var(--elevation-10)",AFileBox_SelectedFile_color:"var(--label-normal)",AFileBox_Dropping_color:"var(--label-normal)","AListView_border-thin":"1px solid var(--line-neutral)","AListView_border-thick":"3px solid var(--line-neutral)","AStepper_OutCircle_background-color":"transparent","AStepper_OutCircle_IsOver_background-color":"var(--elevation-10)","AStepper_InCircle_background-color":"var(--elevation-20)","AStepper_InCircle_IsOver_background-color":"var(--label-normal)","AStepper_Line_background-color":"var(--line-neutral)","AStepper_Line_IsOver_background-color":"var(--label-normal)",ADatePicker_Anchor_border:"1px solid var(--line-normal)",ADatePicker_Anchor_color:"var(--label-normal)",ADatePicker_Anchor_Placeholder_color:"var(--label-neutral)",ADatePicker_Anchor_hover_border:"1px solid var(--line-strong)",ADatePicker_Anchor_focus_border:"1px solid var(--line-strong)",ADatePicker_Anchor_Icon_Primary_color:"var(--label-normal)",ADatePicker_Anchor_Icon_Secondary_color:"var(--label-normal)","ADatePicker_background-color":"var(--elevation-0)",ADatePicker_border:"1px solid var(--line-neutral)","ADatePicker_StringInputContainer_background-color":"var(--label-neutral)",ADatePicker_String_border:"1px solid var(--label-normal)","ADatePicker_Prev_background-color":"var(--elevation-10)","ADatePicker_Prev_border-right":"6px solid var(--label-normal)","ADatePicker_Next_background-color":"var(--elevation-10)","ADatePicker_Next_border-left":"6px solid var(--label-normal)",ADatePicker_Cell_color:"var(--label-normal)",ADatePicker_Cell_IsNotCurrentMonth_color:"var(--label-neutral)",ADatePicker_Cell_IsDisabled_color:"var(--label-neutral)","ADatePicker_Cell_IsSelected_background-color":"var(--elevation-20)",ADatePicker_Cell_IsSelected_color:"var(--label-normal)","ADatePicker_Cell_IsHovered_background-color":"var(--elevation-10)",ADateRangePicker_Anchor_border:"1px solid var(--line-normal)",ADateRangePicker_Anchor_color:"var(--label-normal)",ADateRangePicker_Anchor_Placeholder_color:"var(--label-neutral)",ADateRangePicker_Anchor_hover_border:"1px solid var(--line-strong)",ADateRangePicker_Anchor_focus_border:"1px solid var(--line-strong)",ADateRangePicker_Anchor_Icon_Primary_color:"var(--label-normal)",ADateRangePicker_Anchor_Icon_Secondary_color:"var(--label-normal)","ADateRangePicker_background-color":"var(--elevation-0)",ADateRangePicker_border:"1px solid var(--line-neutral)","ADateRangePicker_StringInputContainer_background-color":"var(--label-neutral)",ADateRangePicker_String_border:"1px solid var(--label-normal)","ADateRangePicker_Prev_background-color":"var(--elevation-10)","ADateRangePicker_Prev_border-right":"6px solid var(--label-normal)","ADateRangePicker_Next_background-color":"var(--elevation-10)","ADateRangePicker_Next_border-left":"6px solid var(--label-normal)",ADateRangePicker_Cell_color:"var(--label-normal)",ADateRangePicker_Cell_IsNotCurrentMonth_color:"var(--label-neutral)",ADateRangePicker_Cell_IsDisabled_color:"var(--label-neutral)","ADateRangePicker_Cell_IsSelected_background-color":"var(--elevation-20)",ADateRangePicker_Cell_IsSelected_color:"var(--label-normal)","ADateRangePicker_Cell_IsHovered_background-color":"var(--elevation-10)",AIconButton_Primary_color:"var(--label-normal)",AIconButton_Primary_border:"1px solid var(--line-normal)","AIconButton_Primary_background-color":"var(--elevation-0)","AIconButton_Primary_hover_background-color":"var(--elevation-10)","AIconButton_Primary_active_background-color":"var(--elevation-20)",AIconButton_Secondary_color:"var(--label-normal)","AIconButton_Secondary_background-color":"var(--elevation-0)","AIconButton_Secondary_hover_background-color":"var(--elevation-10)","AIconButton_Secondary_active_background-color":"var(--elevation-20)","ATableBody_TRow_border-bottom":"1px solid var(--line-normal)","ATableBody_TRow_IsSelected_background-color":"var(--elevation-10)","ATableBody_TRow_IsSelectable_hover_background-color":"var(--elevation-10)",ATableBody_TH_color:"var(--label-neutral)","ATableBody_TD_IsMarked_background-color":"yellow",ATableBody_TD_IsMarked_color:"var(--label-normal)","ATableBody_Resizer_hover_ResizerCenter_background-color":"var(--line-neutral)","ATableBody_Resizer_active_ResizerCenter_background-color":"var(--line-neutral)","ATableBody_Resizer_active_ResizerOut_background-color":"var(--line-neutral)","ATableBody_Resizer_active_ResizerIn_background-color":"var(--line-neutral)","ATableFooter_Button_IsSelected_background-color":"var(--elevation-10)",ATableFooter_Button_IsSelected_color:"var(--label-normal)",ATableFooter_Button_IsDisabled_color:"var(--label-neutral)","ATableFilter_SubFilters_background-color":"var(--elevation-0)",ATableFilter_SubFilters_border:"1px solid var(--line-normal)",ATableFilter_Icon_color:"var(--label-normal)",ATableFilter_Alert_color:"var(--alert-danger)","ADivideFrame_DividerInner_background-color":"var(--line-normal)","AFloatMenu_background-color":"var(--elevation-0)","AFloatMenu_hover_background-color":"var(--elevation-10)",AFloatMenu_color:"var(--label-normal)",AFloatMenu_border:"1px solid var(--line-neutral)","ALoadingBorder_background-color":"var(--label-normal)","ALoadingBorder_ProgressBar_background-color":"var(--elevation-0)","ALoadingBorder_Cover_background-color":"var(--label-normal)",AWrap_Error_color:"var(--alert-danger)",ARadioSelect_RadioButton_border:"1px solid var(--line-normal)","ARadioSelect_RadioButton_InnerCircle_isChecked_background-color":"var(--acent-brand)","AChip_background-color":"var(--elevation-10)",AChip_color:"var(--label-normal)",AChip_border:"1px solid var(--line-normal)","AChip_hover_background-color":"var(--elevation-20)",AChip_hover_color:"var(--label-normal)",AChip_DeleteButton_border:"9px solid var(--line-normal)",AChip_DeleteButton_color:"var(--label-normal)",AChip_DeleteButton_hover_border:"9px solid var(--line-strong)",AChip_DeleteButton_hover_color:"var(--label-normal)"};function z5(r){return sh[r]}function $5(r){return ah(r)}function D2(r){er.keys(r).forEach(t=>{const n=r[t];n!==void 0&&(document.documentElement.style.setProperty(`--${t}`,n),sh[t]=n)})}function U5(r){er.keys(r).forEach(t=>{const n=r[t];if(n===void 0)return;const i=xi.semantic[ai.semanticMode][n];i!==void 0&&(document.documentElement.style.setProperty(t,i),sh[t]=i)})}const ai={paletteMode:oh[0],semanticMode:Gu[0],save:"",followDeviceSetting:!1};function W5({semanticMode:r,save:e,followDeviceSetting:t}){if(t!==void 0&&(ai.followDeviceSetting=t,t)){const n=window.matchMedia("(prefers-color-scheme: dark)"),i=u=>{ai.semanticMode=u.matches?"dark":"light"};i(n);const l=u=>i(u);n.addEventListener("change",l)}if(e!==void 0){if(ai.save=e,e==="localStorage"){const n=localStorage.getItem("semanticMode");Gu.includes(n)&&(ai.semanticMode=n)}else if(e==="sessionStorage"){const n=sessionStorage.getItem("semanticMode");Gu.includes(n)&&(ai.semanticMode=n)}}r!==void 0&&(ai.semanticMode=r),r2(ai.paletteMode),dm(ai.semanticMode),n2(xi.palette[ai.paletteMode]),o2(xi.semantic[ai.semanticMode]),D2(sh)}function V5(r){r.type==="semanticModeChange"?Kd.push(r.listener):r.type==="paletteModeChange"?Zd.push(r.listener):console.error("AThemes.addEventListener : parameter is not valid")}function G5(r){if(r.type==="semanticModeChange"){const e=Kd.indexOf(r.listener);e!==-1&&Kd.splice(e,1)}else if(r.type==="paletteModeChange"){const e=Zd.indexOf(r.listener);e!==-1&&Zd.splice(e,1)}else console.error("AThemes.removeEventListener : parameter is not valid")}function ah(r){const e=window.getComputedStyle(document.documentElement);let t=e.getPropertyValue(r);return t===""&&(t=e.getPropertyValue(`--${r}`)),t}function Z5(r){Object.assign(Fe.additionalClasses,r),Fe.updateKeys(),Fe.additionalClasses=Fe.additionalClasses}const Ff={getCurrentPaletteMode:P5,getPaletteValue:N5,getPaletteDeepValue:F5,changePaletteMode:r2,editPalette:n2,getCurrentSemanticMode:j5,getSemanticValue:B5,getSemanticDeepValue:H5,changeSemanticMode:dm,editSemantic:o2,getComponentStyleValue:z5,getComponentStyleDeepValue:$5,editComponentStyle:D2,editComponentStyleWithSemantic:U5,init:W5,addEventListener:V5,removeEventListener:G5,getDeepValue:ah,addClasses:Z5},K5=r=>{const{onChange:e,onClick:t,type:n="Icon",...i}=r,[l,u]=A.useState(Ff.getCurrentSemanticMode()==="dark"?"Moon":"Sun"),f=A.useCallback(g=>{const m=Ff.getCurrentSemanticMode();let R="light";m==="light"?R="dark":m==="dark"&&(R="light"),Ff.changeSemanticMode(R),u(Y5[R]),e==null||e(R),t==null||t(g)},[e,t]);if(n==="Icon")return v.jsx(_i,{...i,className:Fe.clsx(Zf.AThemeButton,i.className,"IsInteractive"),type:"Raw",icon:l,onClick:f});if(n==="Switch")return v.jsx(e2,{...i,useCheck:[Ff.getCurrentSemanticMode()==="dark",f]})},Y5={light:"Sun",dark:"Moon"},X5="_ACheckBoxWrap_1ozuz_1",J5="_ACheckBox_1ozuz_1",Qv={ACheckBoxWrap:X5,ACheckBox:J5},Zu=r=>{const{useCheck:e,isIndeterminate:t,isDisabled:n,isLoading:i,onClick:l,...u}=r,[f,g]=nn(e,!1),m=A.useCallback(R=>{n||i||(g==null||g(!f),l==null||l(R))},[n,i,l,f,g]);return v.jsx($r,{...u,className:Fe.clsx(u.className,Qv.ACheckBoxWrap),isDisabled:n,isLoading:i,onClick:m,children:v.jsx(jr,{className:Qv.ACheckBox,icon:t?"Check.Indeterminate":f?"Check.Checked":"Check.UnChecked"})})};function Q5(r){return typeof r=="function"}function eT(r,e){return Q5(r)?r(e):r}const Lr={getContent:eT},tT="_ARowFrame_1586b_1",rT="_AColFrame_1586b_7",nT="_AOverflowFrame_1586b_13",iT="_ADivideFrame_1586b_22",oT="_Row_1586b_28",sT="_Col_1586b_31",aT="_ChildFrame_1586b_35",lT="_IsReturning_1586b_48",cT="_Divider_1586b_52",uT="_IsMoving_1586b_60",fT="_DividerInner_1586b_66",dT="_IsClicked_1586b_91",qo={ARowFrame:tT,AColFrame:rT,AOverflowFrame:nT,ADivideFrame:iT,Row:oT,Col:sT,ChildFrame:aT,IsReturning:lT,Divider:cT,IsMoving:uT,DividerInner:fT,IsClicked:dT},Sn=r=>v.jsx($r,{...r,className:Fe.clsx(qo.ARowFrame,r.className),children:r.children}),O2=r=>v.jsx("div",{...r,className:Fe.clsx(qo.AColFrame,r.className),children:r.children}),Sa=r=>{const{tooltip:e,children:t,abaseRef:n,isDisabled:i,className:l,noOverflowTooltip:u,...f}=r,g=A.useRef(null),m=A.useMemo(()=>n??g,[n]),[R,w]=A.useState(!1),b=A.useCallback(()=>w(!0),[]),S=A.useCallback(()=>w(!1),[]);A.useEffect(()=>{const D=m.current;if(D)return D.addEventListener("mouseenter",b),D.addEventListener("mouseleave",S),()=>{D.removeEventListener("mouseenter",b),D.removeEventListener("mouseleave",S)}},[m,b,S]);const _=A.useMemo(()=>i?"":u||!R||!m.current?e:m.current.scrollWidth>m.current.clientWidth?t:e,[m,i,t,e,u,R]);return v.jsx($r,{...f,isDisabled:i,children:t,abaseRef:m,tooltip:_,className:Fe.clsx(qo.AOverflowFrame,l)})},P2=r=>{const{value:e,map:t}=r;return t[e]===void 0?t.fallback:v.jsx(A.Suspense,{children:t[e]})},Yh={},hT=r=>{const{pk:e,direction:t="Row",lefts:n,minLength:i=40,children:l,childStyle:u,childClassName:f,dividerStyle:g,dividerClassName:m,dividerPadding:R,dividerInnerClassName:w,dividerInnerStyle:b,...S}=r,_=A.useMemo(()=>{let Q;return typeof l=="object"&&Array.isArray(l)?Q=l:Q=[l],Q=Q.filter(he=>he!=null&&he!==!1),Q},[l]),[D,E]=A.useState(e===void 0?n:Yh[e]??n),x=A.useMemo(()=>typeof i=="number"?Array(_.length).fill(i+(R??0)):i.map(Q=>Q+(R??0)),[i,_.length,R]),[L,O]=A.useState(),H=A.useMemo(()=>L!==void 0?L:D,[L,D]),q=A.useRef(null),z=A.useRef({x:0,y:0}),[K,ue]=A.useState(),X=A.useCallback((Q,he)=>{if(q.current===null)return;const me=q.current;z.current={x:Q.clientX,y:Q.clientY},O(D),ue(he);let be=[...D];const ce=le=>{const oe=me.getBoundingClientRect(),ve=t==="Row"?oe.left:oe.top,Oe=t==="Row"?oe.width:oe.height;be=mT(D,t,he,le,ve,Oe,x),O(be)},ke=()=>{ue(void 0),O(void 0),E(be),e!==void 0&&(Yh[e]=be),window.removeEventListener("mousemove",ce),window.removeEventListener("mouseup",ke)};window.addEventListener("mousemove",ce),window.addEventListener("mouseup",ke)},[D,e,t,x]),[de,j]=A.useState(!1),re=A.useCallback(()=>{E(n),e!==void 0&&(Yh[e]=n),j(!0)},[n,e]),J=A.useMemo(()=>_.map((Q,he)=>{const me=H[he],be=me-(he===0?0:H[he-1]),ce=he===0,ke=he===_.length-1,le={...u,...pT(t,be,ke)};return R!==void 0&&(t==="Row"?(ce||(le.paddingLeft=R),ke||(le.paddingRight=R)):(ce||(le.paddingTop=R),ke||(le.paddingBottom=R))),v.jsxs(A.Fragment,{children:[v.jsx("div",{className:Fe.clsx(qo.ChildFrame,f,de&&qo.IsReturning,qo[t]),onTransitionEnd:()=>j(!1),style:le,children:Q}),!ke&&v.jsx("div",{className:Fe.clsx(qo.Divider,qo[t],"NoSelect",K!==void 0&&qo.IsMoving,K===he&&qo.IsClicked,m),style:{...g,...gT(t,me)},onMouseDown:oe=>X(oe,he),onDoubleClick:re,children:v.jsx("div",{className:Fe.clsx(qo.DividerInner,w),style:b})})]},he)}),[_,H,u,t,R,f,de,K,m,g,re,w,b,X]);return v.jsx("div",{...S,className:Fe.clsx(qo.ADivideFrame,r.className,qo[t]),ref:q,children:J})};function pT(r,e,t){return t?{}:r==="Col"?{height:e,minHeight:e,maxHeight:e}:{maxWidth:e,width:e,minWidth:e}}function gT(r,e){return r==="Col"?{top:e}:{left:e}}function mT(r,e,t,n,i,l,u){const f=[...r];let g=n.clientX-i-r[t];e==="Col"&&(g=n.clientY-i-r[t]);const m=w=>u.slice(0,w+1).reduce((b,S)=>b+S,0),R=w=>u.slice(w+1).reduce((b,S)=>b+S,0);if(g<0){let w=f[t]+g;if(w<=m(t))for(let b=0;b<=t;b++)f[b]=m(b);else if(f[t]=w,t>0)for(let b=t-1;b>=0&&w-f[b]<u[b];b--)f[b]=w-u[t],w=f[b]}else if(g>0){let w=f[t]+g;if(w>=l-R(t))for(let b=t;b<r.length;b++)f[b]=l-R(b);else if(f[t]=w,t<r.length-1)for(let b=t+1;b<r.length&&f[b]-w<u[b];b++)f[b]=w+u[b],w=f[b]}return f}const Qc=()=>v.jsx("div",{style:{display:"flex",flexGrow:1}}),vT="_ASpace_1okqf_1",yT={ASpace:vT},mn=r=>{const{h:e,w:t,...n}=r;return v.jsx("div",{...n,className:Fe.clsx(yT.ASpace,n.className),style:{height:e,minHeight:e,maxHeight:e,width:t,minWidth:t,maxWidth:t,...n.style}})},bT="_AChipsContainer_1ag9v_1",_T="_AChip_1ag9v_1",xT="_Clickable_1ag9v_21",ST="_AChipDelete_1ag9v_26",CT="_IsHover_1ag9v_40",wT="_AChipDeleteIcon_1ag9v_45",zu={AChipsContainer:bT,AChip:_T,Clickable:xT,AChipDelete:ST,IsHover:CT,AChipDeleteIcon:wT},AT=r=>{const{useLabels:e,alignItems:t="flex-start",ChipStyle:n,ChipClassName:i,ChipOnDelete:l,ChipOnClick:u,ChipIcon:f,className:g,style:m,ButtonRenderer:R=N2,gap:w=8,...b}=r,[S,_]=nn(e,[]),D=A.useCallback(x=>{!_||!l||(l({label:x}),_(S.filter(L=>L!==x)))},[_,l,S]),E=A.useCallback(x=>{const L={label:x};return{label:x,useLabel:[x,()=>{}],style:Lr.getContent(n,L),className:Lr.getContent(i,L),icon:Lr.getContent(f,L),onDelete:()=>D(x),onClick:u?()=>u({label:x}):void 0}},[i,f,u,n,D]);return v.jsx($r,{...b,style:{...m,alignItems:t,gap:w},className:Fe.clsx(zu.AChipsContainer,g),children:S.map((x,L)=>v.jsx(hm,{...E(x),ButtonRenderer:R},L))})},hm=r=>{const{label:e,useLabel:t,icon:n,className:i,onDelete:l,onClick:u,ButtonRenderer:f=N2,width:g="fit-content",style:m,...R}=r;return e===void 0?v.jsx(v.Fragment,{}):v.jsxs($r,{...R,style:{...m,width:g},onClick:u,className:Fe.clsx("NoSelect",zu.AChip,u&&zu.Clickable,u&&"IsClickable",i),children:[v.jsx(Sa,{children:e}),f({...r})]})},N2=r=>{const{label:e,icon:t,onDelete:n,useLabel:i}=r,[,l]=nn(i,e),[u,f]=A.useState(!1),g=A.useCallback(w=>{n&&(w.stopPropagation(),l==null||l(void 0),n(r))},[n,r,l]),m=()=>{f(!0)},R=()=>{f(!1)};return v.jsx(v.Fragment,{children:n&&v.jsxs(v.Fragment,{children:[v.jsx(Qc,{}),v.jsx(mn,{w:24}),v.jsx($r,{className:Fe.clsx(zu.AChipDelete,"IsClickable",u&&zu.IsHover)}),v.jsx(_i,{type:"Raw",onClick:g,onMouseEnter:m,onMouseLeave:R,icon:t||v.jsx(jr,{icon:"Close",stroke:"currentColor",width:14,height:14}),className:zu.AChipDeleteIcon})]})})},Kc=r=>{if(!r)return"0 bytes";const e=["bytes","KB","MB","GB","TB","PB","EB","ZB","YB","RB","QB"];let t=0;for(;r>=1024&&t<e.length-1;)r/=1024,t++;return`${t===0?Math.floor(r):r.toFixed(1)} ${e[t]}`},TT=r=>{let e="";r<0&&(e+="-",r=-r);const t=Math.floor(r/3600),n=Math.floor(r%3600/60),i=r%60;return t>0&&(e+=t.toString().padStart(2,"0")+":"),e+=n.toString().padStart(2,"0")+":",e+=i.toString().padStart(2,"0"),e},ET=/[a-zA-Z0-9]/,kT=/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9]{2,}$/,RT=/^[a-zA-Z0-9._-]+$/,IT=/^[0-9a-fA-F-]+$/i,LT=/[가-힣ㄱ-ㅎㅏ-ㅣ]/,MT=/^\S*$/,DT=/^([^ㄱ-ㅎㅏ-ㅣ])*$/i,OT=/[!@#$%^&*+=;:?/<>\\[\](){}~\-_.(),]/,PT=/^(?=.*[A-Za-z])(?=.*\d)(?=.*[\W_])[A-Za-z\d\W_]{8,}$/,NT=/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$/,FT={hasKr:r=>/[가-힣ㄱ-ㅎㅏ-ㅣ]/.test(r),hasMalKr:r=>/[ㄱ-ㅎㅏ-ㅣ]/.test(r),hasBlank:r=>/\s/.test(r),isBlank:r=>/^\s*$/.test(r),isUuid:r=>/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$/.test(r),isEmail:r=>/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9]{2,}$/.test(r),isAlphabet:r=>/^[a-zA-Z]*$/.test(r),isAlphaNumeric:r=>/^[a-zA-Z0-9]*$/.test(r),isKr:r=>/^[가-힣ㄱ-ㅎㅏ-ㅣ]*$/.test(r),isKrNumeric:r=>/^[가-힣ㄱ-ㅎㅏ-ㅣ0-9]*/.test(r),isNumeric:r=>/^[0-9]$/.test(r),isLenMinMax:(r,e)=>t=>!(r!==void 0&&t.length<r||e!==void 0&&t.length>e)},F2={secondToTime:TT,validate:FT,FileSizeTrans:Kc},jT=r=>{const{maxTicks:e=300,interval:t=1e3,onFinish:n,noStartOnRender:i,actionRef:l,wrapProps:u,helperText:f,label:g,...m}=r,[R,w]=A.useState(0),[b,S]=A.useState(!i);A.useEffect(()=>{if(!b||m.isDisabled||m.isLoading)return;const O=setInterval(()=>w(H=>H+1),t);return()=>clearInterval(O)},[t,b,m.isDisabled,m.isLoading]);const _=A.useCallback(()=>{n==null||n(),S(!1)},[n]);A.useEffect(()=>{R>=e&&!m.isDisabled&&!m.isLoading&&_()},[R,e,_,m.isDisabled,m.isLoading]);const D=A.useCallback(()=>{m.isDisabled||S(!0)},[m.isDisabled]),E=A.useCallback(()=>{m.isDisabled||S(!1)},[m.isDisabled]),x=A.useCallback(()=>{m.isDisabled||(S(!1),w(0))},[m.isDisabled]);A.useEffect(()=>{l&&(l.current={start:D,stop:E,reset:x,setTicks:w})},[l,D,E,x]);const L=e-R;return v.jsx(ec,{wrapProps:u,helperText:f,label:g,children:v.jsx($r,{...m,children:F2.secondToTime(L>0?L:0)})})};function zs(r){const e=r.getFullYear(),t=r.getMonth()+1,n=r.getDate();return`${e}-${t<10?"0"+t:t}-${n<10?"0"+n:n}`}function BT(r){try{if(!r)return;const e=new Date(r);return isNaN(e.getTime())?void 0:e}catch{return}}function HT(r){return new Date(r.getFullYear(),r.getMonth(),r.getDate(),0,0,0,0)}function qT(r){return new Date(r.getFullYear(),r.getMonth(),r.getDate(),23,59,59,999)}function e0(r,e){return zs(r)===zs(e)}function $u(r,e){return zs(r)>zs(e)}function Yd(r,e){return zs(r)>=zs(e)}function Xd(r,e){return zs(r)<zs(e)}function Jd(r,e){return zs(r)<=zs(e)}function t0(r,e,t){return $u(r,t)?$u(e,t)&&Xd(e,r):$u(e,r)&&Xd(e,t)}function r0(r,e,t){return $u(r,t)?Yd(e,t)&&Jd(e,r):Yd(e,r)&&Jd(e,t)}const Kt={toString:zs,toDate:BT,makeSDate:HT,makeEDate:qT,"===":e0,">":$u,">=":Yd,"<":Xd,"<=":Jd,"s<d<e|e<d<s":t0,"s<=d<=e|e<=d<=s":r0,eq:e0,g:$u,ge:Yd,l:Xd,le:Jd,b:t0,be:r0},zT="_InputContainer_gsbiq_7",$T="_AInput_gsbiq_21",UT="_LeftAddon_gsbiq_40",WT="_RightAddon_gsbiq_46",VT="_ErrorHelperText_gsbiq_52",GT="_Primary_gsbiq_56",ZT="_UnAvailable_gsbiq_61",KT="_Secondary_gsbiq_72",YT="_ReadOnly_gsbiq_87",to={InputContainer:zT,AInput:$T,LeftAddon:UT,RightAddon:WT,ErrorHelperText:VT,Primary:GT,UnAvailable:ZT,Secondary:KT,ReadOnly:YT,Error:"_Error_gsbiq_52"},XT=["Primary","Secondary","ReadOnly","Error"],tc=r=>{const{onEnterPress:e,errorMessage:t,type:n="Primary",inputRef:i,useValue:l,isReadonly:u,placeholder:f,minLength:g,maxLength:m,tabIndex:R,autoFocus:w,isPassword:b,autoComplete:S="off",inputProps:_,LeftAddon:D,RightAddon:E,wrapProps:x,helperText:L,label:O,wrapType:H,labelProps:q,...z}=r,K=A.useMemo(()=>JT(t)?"Error":n,[t,n]),ue=A.useMemo(()=>K==="ReadOnly"?!0:u,[K,u]),X=A.useMemo(()=>z.isDisabled||z.isLoading,[z.isDisabled,z.isLoading]),[de,j]=nn(l,""),re=A.useCallback(Q=>{var he;X||((he=_==null?void 0:_.onKeyDown)==null||he.call(_,Q),["Escape","Enter","ArrowUp","ArrowDown"].includes(Q.key)||Q.stopPropagation(),Q.key==="Enter"&&e&&e(Q.currentTarget.value))},[X,_,e]),J=A.useCallback(Q=>{var he;X||g&&Q.target.value.length<g||(j==null||j(Q.target.value),(he=_==null?void 0:_.onChange)==null||he.call(_,Q))},[X,g,j,_]);return b?v.jsx(ec,{wrapProps:x,label:O,helperText:L,errorMessage:t,wrapType:H,labelProps:q,children:v.jsx("form",{onSubmit:Q=>Q.preventDefault(),children:v.jsxs($r,{...z,className:Fe.clsx(to.InputContainer,to[K],X&&to.UnAvailable,z.className),children:[D&&v.jsx("div",{className:to.LeftAddon,children:D}),v.jsx("input",{..._,className:Fe.clsx(to.AInput,K==="Error"&&to.InputError,_==null?void 0:_.className),value:de,type:"password",readOnly:ue,onChange:J,onKeyDown:re,placeholder:f,maxLength:m,tabIndex:z.isDisabled||z.isLoading?-1:R,autoFocus:w,autoComplete:S,ref:i}),E&&v.jsx("div",{className:Fe.clsx(to.RightAddon,"NoSelect"),children:E})]})})}):v.jsx(ec,{wrapProps:x,label:O,helperText:L,errorMessage:t,wrapType:H,labelProps:q,children:v.jsxs($r,{...z,className:Fe.clsx(to.InputContainer,to[K],X&&to.UnAvailable,z.className),children:[D&&v.jsx("div",{className:to.LeftAddon,children:D}),v.jsx("input",{..._,className:Fe.clsx(to.AInput,K==="Error"&&to.InputError,_==null?void 0:_.className),value:de,readOnly:ue,onChange:J,onKeyDown:re,placeholder:f,maxLength:m,tabIndex:z.isDisabled||z.isLoading?-1:R,autoFocus:w,autoComplete:S,ref:i}),E&&v.jsx("div",{className:to.RightAddon,children:E})]})})};function JT(r){return Array.isArray(r)?r.filter(Boolean).length>0:!!r}const QT="_ASelect_ocngk_1",e6="_Arrow_ocngk_14",t6="_Primary_ocngk_23",r6="_UnAvailable_ocngk_34",n6="_IsOpen_ocngk_34",i6="_Secondary_ocngk_41",o6="_Placeholder_ocngk_57",s6="_ValuesContainer_ocngk_61",a6="_Values_ocngk_61",l6="_Options_ocngk_80",c6="_Option_ocngk_80",u6="_Selected_ocngk_122",f6="_CheckBox_ocngk_129",Ho={ASelect:QT,Arrow:e6,Primary:t6,UnAvailable:r6,IsOpen:n6,Secondary:i6,Placeholder:o6,ValuesContainer:s6,Values:a6,Options:l6,Option:c6,Selected:u6,CheckBox:f6},d6=["Primary","Secondary"],rc=r=>{const{options:e,useSelect:t,type:n="Primary",placeholder:i=hn.ASelect["Select(Placeholder)"],onClose:l,OptionRenderer:u=p6,SelectedRenderer:f=g6,minShowRows:g=2,maxShowRows:m=6,arrowProps:R,isAutoWidth:w=!1,...b}=r,S=A.useRef(null),_=A.useMemo(()=>b.abaseRef??S,[b.abaseRef]),D=A.useRef(null),[E,x]=nn(t,e[0]),[L,O]=A.useState(void 0),[H,q]=A.useState(!1),[z,K]=A.useState(!1),ue=A.useRef(e),X=A.useRef(null),de=A.useCallback(()=>K(!1),[]),j=A.useCallback(()=>{b.isDisabled||b.isLoading||e.length<1||(K(!0),setTimeout(()=>q(!0),0),setTimeout(()=>Xh(D,_,e,g,m),0))},[_,b.isDisabled,b.isLoading,e,g,m]),re=A.useCallback(()=>{q(!1),K(!0),l==null||l()},[l]),J=A.useCallback(le=>{var oe;H?re():j(),setTimeout(()=>Xh(D,_,e,g,m),0),(oe=b.onClick)==null||oe.call(b,le)},[_,b,e,H,re,j,g,m]),Q=A.useCallback(()=>{Xh(D,_,e,g,m)},[_,e,g,m]);A.useEffect(()=>{if(!H||!_.current)return;const le=_.current;let oe=le.parentElement;for(;oe;)oe.addEventListener("scroll",Q),oe=oe.parentElement;return()=>{let ve=le.parentElement;for(;ve;)ve.removeEventListener("scroll",Q),ve=ve.parentElement}},[_,H,Q]),A.useEffect(()=>{if(H)return window.addEventListener("resize",Q),()=>window.removeEventListener("resize",Q)},[H,Q]);const he=A.useCallback(le=>{le[0].intersectionRatio===0&&re()},[re]);A.useEffect(()=>{if(!H)return;const le=new IntersectionObserver(he,{threshold:0});return _.current&&le.observe(_.current),()=>le.disconnect()},[_,H,he]);const me=A.useCallback(le=>{const oe=le.target,ve=_.current,Oe=D.current;!ve||!oe||!Oe||!ve.contains(oe)&&!Oe.contains(oe)&&re()},[_,re]),be=A.useMemo(()=>b.isDisabled||b.isLoading||e.length<1,[b.isDisabled,b.isLoading,e]);A.useEffect(()=>{if(H)return setTimeout(()=>document.addEventListener("mousedown",me),0),()=>document.removeEventListener("mousedown",me)},[H,me]);const ce=A.useCallback((le,oe)=>{le.stopPropagation(),le.preventDefault(),x==null||x(oe),re()},[x,re]),ke=A.useCallback(()=>{if(!w||!_.current)return;const le=Zc.calculateOptimalSelectWidth({elementRef:_,options:e,selectedOption:E,placeholder:i,optionRenderer:oe=>oe===null?null:u({option:oe}),type:n,isMulti:!1});O(le)},[w,_,e,E,i,u,n]);return A.useEffect(()=>w?((e!==ue.current||L===void 0)&&(X.current!==null&&cancelAnimationFrame(X.current),X.current=requestAnimationFrame(()=>{ke(),X.current=null,ue.current=[...e]})),()=>{X.current!==null&&(cancelAnimationFrame(X.current),X.current=null)}):void 0,[w,e,ke,L]),A.useEffect(()=>()=>{typeof Zc.clearCache=="function"&&Zc.clearCache()},[]),v.jsxs(v.Fragment,{children:[v.jsxs($r,{...b,isDisabled:b.isDisabled||e.length<1,className:Fe.clsx(b.className,Ho.ASelect,"NoSelect",H&&Ho.IsOpen,be&&Ho.UnAvailable,Ho[n]),style:{padding:n==="Secondary"?"8px 8px 8px 0":0,width:L?`${L}px`:w?"100px":void 0,...b.style},abaseRef:_,onClick:J,children:[v.jsx("div",{className:Ho.ValuesContainer,children:v.jsx("div",{className:Fe.clsx(Ho.Values,(E==null||E==="")&&Ho.Placeholder),children:v.jsx(f,{selectedOption:E,OptionRenderer:u,placeholder:i})})}),v.jsx("div",{...R,className:Fe.clsx(Ho.Arrow,R==null?void 0:R.className),children:v.jsx(jr,{style:{transform:H?"rotate(180deg)":"",transition:"var(--Transition)"},icon:"TriangleDown"})})]}),e.length>0&&(H||z)&&Hs.createPortal(v.jsx("div",{className:Fe.clsx(Ho.Options,Ho[n]),onTransitionEnd:de,style:{opacity:+H,visibility:H?"visible":"hidden",pointerEvents:H?void 0:"none",borderRadius:_.current?window.getComputedStyle(_.current).borderRadius:void 0,width:L?`${L}px`:w?"100px":void 0},ref:D,children:e.map((le,oe)=>{const ve=E===le,Oe=_.current?window.getComputedStyle(_.current):void 0;return le===null?null:v.jsx("div",{className:Fe.clsx(Ho.Option,ve&&Ho.Selected,"NoSelect",Ho[n]),style:{height:Oe==null?void 0:Oe.height},onClick:et=>ce(et,le),children:v.jsx(u,{option:le})},oe)})}),document.body)]})};function Xh(r,e,t,n,i){if(!e.current||!r.current||!t||t.length<1)return;const l=e.current.getBoundingClientRect(),u=h6(l,t.length,n,i),f=window.getComputedStyle(e.current);r.current.style.top=`calc(${u.top??0}px - ${f.borderTopWidth})`,r.current.style.bottom=u.bottom?u.bottom+"px":"",r.current.style.left=u.left+"px",r.current.style.width||(r.current.style.minWidth=u.minWidth+"px"),r.current.style.minHeight=u.minHeight+"px",r.current.style.maxHeight=u.maxHeight+"px",r.current.style.visibility="visible"}function h6(r,e,t,n){const i={top:r.bottom,bottom:void 0,left:r.left,height:"fit-content",minWidth:r.width,minHeight:r.height*Math.min(t,e),maxHeight:r.height*n>window.innerHeight-r.bottom-10?window.innerHeight-r.bottom-10:r.height*n};return window.innerHeight-r.bottom-10<i.height&&(window.innerHeight-r.bottom-10<i.minHeight?(i.top=r.top-e*r.height,i.top<0&&(i.top=10,i.minHeight=r.top-10,i.height=r.top-10)):i.height=window.innerHeight-r.bottom-10),i}const p6=r=>{const{option:e}=r;return er.isReactNode(e)?e:null},g6=r=>{const{selectedOption:e,OptionRenderer:t,placeholder:n}=r;return e==null||e===""?n:v.jsx(t,{option:e})},m6="_Anchor_502n9_1",v6="_Primary_502n9_18",y6="_Secondary_502n9_21",b6="_Placeholder_502n9_25",_6="_Icon_502n9_30",x6="_ADatePicker_502n9_37",S6="_StringInputWrap_502n9_48",C6="_StringInputContainer_502n9_53",w6="_StringInput_502n9_48",A6="_IsIdx_502n9_68",T6="_CalendarContainer_502n9_72",E6="_Header_502n9_78",k6="_Prev_502n9_82",R6="_Next_502n9_83",I6="_MonthYear_502n9_116",L6="_Select_502n9_121",M6="_Calendar_502n9_72",D6="_Cell_502n9_132",O6="_IsNotCurrentMonth_502n9_144",P6="_IsSelected_502n9_148",N6="_IsDisabled_502n9_152",F6="_IsHovered_502n9_155",j6="_Week_502n9_159",B6="_WeekDay_502n9_164",rn={Anchor:m6,Primary:v6,Secondary:y6,Placeholder:b6,Icon:_6,ADatePicker:x6,StringInputWrap:S6,StringInputContainer:C6,StringInput:w6,String:"_String_502n9_48",IsIdx:A6,CalendarContainer:T6,Header:E6,Prev:k6,Next:R6,MonthYear:I6,Select:L6,Calendar:M6,Cell:D6,IsNotCurrentMonth:O6,IsSelected:P6,IsDisabled:N6,IsHovered:F6,Week:j6,WeekDay:B6},H6="_Anchor_iz4hf_1",q6="_Primary_iz4hf_18",z6="_Secondary_iz4hf_22",$6="_Placeholder_iz4hf_26",U6="_Icon_iz4hf_31",W6="_ADateRangePicker_iz4hf_38",V6="_StringInputWrap_iz4hf_49",G6="_StringInputContainer_iz4hf_53",Z6="_StringInput_iz4hf_49",K6="_IsIdx_iz4hf_69",Y6="_CalendarContainer_iz4hf_73",X6="_Header_iz4hf_79",J6="_Prev_iz4hf_83",Q6="_Next_iz4hf_84",eE="_MonthYear_iz4hf_117",tE="_Select_iz4hf_122",rE="_Calendar_iz4hf_73",nE="_Cell_iz4hf_133",iE="_IsNotCurrentMonth_iz4hf_145",oE="_IsSelected_iz4hf_149",sE="_IsDisabled_iz4hf_153",aE="_IsHovered_iz4hf_156",lE="_Week_iz4hf_160",cE="_WeekDay_iz4hf_165",uE="_ChoiceButton_iz4hf_169",Hr={Anchor:H6,Primary:q6,Secondary:z6,Placeholder:$6,Icon:U6,ADateRangePicker:W6,StringInputWrap:V6,StringInputContainer:G6,StringInput:Z6,String:"_String_iz4hf_49",IsIdx:K6,CalendarContainer:Y6,Header:X6,Prev:J6,Next:Q6,MonthYear:eE,Select:tE,Calendar:rE,Cell:nE,IsNotCurrentMonth:iE,IsSelected:oE,IsDisabled:sE,IsHovered:aE,Week:lE,WeekDay:cE,ChoiceButton:uE},pm=r=>{const{type:e="Primary",className:t,useDateRange:n,actionRef:i,position:l=ef.SE,minDate:u,maxDate:f,isDisabled:g,isLoading:m,yearsOptionSize:R,noDefaultChoices:w,LeftAddon:b,RightAddon:S,placeholder:_,noClearButton:D,resources:E,onClick:x,...L}=r,O=A.useMemo(()=>({...hn.ADateRangePicker,...E}),[E]),H=A.useMemo(()=>_??O["Select DateRange"],[_,O]),[q,z]=A.useMemo(()=>{let ne,Je;if(u&&(ne=Kt.makeSDate(u)),f&&(Je=Kt.makeEDate(f)),ne&&Je&&Kt["<"](Je,ne)){console.warn("ADateRangePicker: maxDate should be greater than minDate. maxDate and minDate are swapped.");const ct=ne;ne=Je,Je=ct}return[ne,Je]},[u,f]),[K,ue]=A.useState("sD"),[X,de]=nn(n,void 0),j=A.useCallback(ne=>{de&&(ne===void 0?(de(void 0),_e(""),$e("")):(de({sDate:Kt.makeSDate(ne.sDate),eDate:Kt.makeEDate(ne.eDate)}),_e(Kt.toString(ne.sDate)),$e(Kt.toString(ne.eDate))))},[de]);A.useEffect(()=>{X&&(_e(Kt.toString(X.sDate)),$e(Kt.toString(X.eDate)))},[X]);const re=A.useCallback(ne=>{if(!de)return;let Je=X?X.sDate:Kt.makeSDate(ne);ne=Kt.makeEDate(ne),de({sDate:Je,eDate:ne}),_e(Kt.toString(Je)),$e(Kt.toString(ne))},[de,X]),[J,Q]=A.useState(),[he,me]=A.useState(),be=A.useCallback(ne=>{K==="sD"&&j({sDate:ne,eDate:ne}),Q(ne),me(ne)},[K,j,Q]),ce=A.useCallback(ne=>{K==="sD"?J&&(Kt.eq(J,ne)?ue("eD"):Kt[">"](ne,J)?(re(ne),Q(void 0)):(j({sDate:ne,eDate:J}),Q(void 0))):(X?Kt["<"](ne,X.sDate)?j({sDate:ne,eDate:X.eDate}):re(ne):j({sDate:ne,eDate:ne}),Q(void 0),ue("sD"))},[re,J,ue,K,j,X,Q]),ke=A.useCallback(ne=>{J&&me(ne)},[J]),le=A.useCallback(()=>{me(void 0),Q(void 0),ue("sD")},[ue,Q]),[oe,ve]=A.useState(n0(X,q,z)),Oe=A.useMemo(()=>gm(oe.year,q,z,R),[oe.year,q,z,R]),et=A.useMemo(()=>Kf(oe.year,q,z),[q,z,oe.year]),we=A.useCallback(ne=>{if(!Oe.includes(ne))return;const Je={month:oe.month,year:ne},ct=Kf(Je.year,q,z);ct.length<1||(ct.includes(Je.month)||(Je.month<ct[0]?Je.month=ct[0]:Je.month>ct[ct.length-1]&&(Je.month=ct[ct.length-1])),ve(Je))},[q,z,Oe,oe.month]),Pe=A.useCallback(ne=>{et.includes(ne)&&ve({month:ne,year:oe.year})},[et,oe.year]),je=A.useMemo(()=>z?new Date(oe.year,oe.month+1,1)>z:!1,[oe,z]),ze=A.useCallback(()=>{if(je||et.length<1)return;const ne=oe.month+1;ne>11?ve({month:et[0],year:oe.year+1}):ve({month:ne,year:oe.year})},[je,et,oe]),We=A.useMemo(()=>q?new Date(oe.year,oe.month,0)<q:!1,[oe,q]),De=A.useCallback(()=>{if(We||et.length<1)return;const ne=oe.month-1;ne<et[0]?ve({month:et[et.length-1],year:oe.year-1}):ve({month:ne,year:oe.year})},[We,et,oe]),[Ae,_e]=A.useState(X!=null&&X.sDate?Kt.toString(X.sDate):""),Ge=A.useCallback(ne=>{if(ne.length>10||(_e(ne),ne.length<10)||!de)return;let Je=Kt.toDate(ne);if(!Je)return;q&&Je<q&&(Je=q),z&&Je>z&&(Je=z);let ct=X?X.eDate:Je;X&&Kt[">"](Je,ct)&&([Je,ct]=i0(Je,ct)),j({sDate:Je,eDate:ct}),ve({month:Je.getMonth(),year:Je.getFullYear()})},[de,j,X,q,z]),[lt,$e]=A.useState(X!=null&&X.eDate?Kt.toString(X.eDate):""),ht=A.useCallback(ne=>{if(ne.length>10||($e(ne),ne.length<10)||!de)return;let Je=Kt.toDate(ne);if(!Je)return;q&&Je<q&&(Je=q),z&&Je>z&&(Je=z);let ct=X?X.sDate:Je;X&&Kt[">"](ct,Je)&&([ct,Je]=i0(ct,Je)),j({sDate:ct,eDate:Je}),ve({month:Je.getMonth(),year:Je.getFullYear()})},[de,j,X,q,z]),Le=A.useCallback(()=>{X&&(_e(Kt.toString(X.sDate)),$e(Kt.toString(X.eDate)))},[X]),Xe=A.useMemo(()=>{const{month:ne,year:Je}=oe,ct=new Date(Je,ne,1),tt=new Date(Je,ne+1,0),Re=[];for(let Rt=0;Rt<ct.getDay();Rt++){const Mt=new Date(Je,ne,0).getDate()-ct.getDay()+Rt+1,Qt=new Date(Je,ne-1,Mt),rr=q&&q>Qt||z&&z<Qt,Bt=X?Kt.be(X.sDate,Qt,X.eDate):!1,qt=he&&X&&Kt.be(X.sDate,Qt,he);Re.push({day:Mt,isSelected:Bt,isHovered:qt,date:Qt,isDisabled:rr,isCurrentMonth:!1})}for(let Rt=1;Rt<=tt.getDate();Rt++){const vt=new Date(Je,ne,Rt),Mt=q&&q>vt||z&&z<vt,Qt=X?Kt.be(X.sDate,vt,X.eDate):!1,rr=he&&X&&Kt.be(X.sDate,vt,he);Re.push({day:Rt,isSelected:Qt,isHovered:rr,date:vt,isDisabled:Mt,isCurrentMonth:!0})}for(let Rt=0;Rt<7-tt.getDay()-1;Rt++){const vt=new Date(Je,ne+1,Rt+1),Mt=q&&q>vt||z&&z<vt,Qt=X?Kt.be(X.sDate,vt,X.eDate):!1,rr=he&&X&&Kt.be(X.sDate,vt,he);Re.push({day:Rt+1,isSelected:Qt,isHovered:rr,date:vt,isDisabled:Mt,isCurrentMonth:!1})}const xt=[];for(let Rt=0;Rt<Re.length/7;Rt++)xt.push(v.jsx("div",{className:Hr.Week,children:Re.slice(Rt*7,Rt*7+7).map((vt,Mt)=>v.jsx(Fi,{type:"Raw",className:Fe.clsx(Hr.Day,Hr.Cell,vt.isDisabled?Hr.IsDisabled:vt.isCurrentMonth?vt.isSelected?Hr.IsSelected:vt.isHovered&&Hr.IsHovered:Hr.IsNotCurrentMonth),isDisabled:vt.isDisabled,onMouseDown:()=>vt.isCurrentMonth&&be(vt.date),onMouseUp:()=>vt.isCurrentMonth&&ce(vt.date),onMouseEnter:()=>vt.isCurrentMonth&&ke(vt.date),children:vt.day},Mt))},Rt));return xt},[oe,he,X,q,z,be,ce,ke]),it=A.useRef(null),Ct=A.useCallback(()=>{it&&fm(it,Me,l)},[it,l]),[_t,wt]=A.useState(!1),[bt,St]=A.useState(!1),Me=A.useRef(null),pt=A.useCallback(()=>{g||m||(wt(!0),setTimeout(()=>St(!0),0),setTimeout(()=>Ct(),0),ve(n0(X,q,z)))},[g,m,X,Ct,q,z]),Et=A.useCallback(()=>{g||m||(wt(!0),St(!1))},[g,m]),mt=A.useMemo(()=>bt?Et:pt,[bt,pt,Et]),Dt=A.useCallback(()=>wt(!1),[]),Ze=A.useCallback(ne=>{const Je=document.getElementById("root"),ct=ne.target,tt=Me.current,Re=it.current;!Je||!tt||!ct||!Re||!tt.contains(ct)&&Je.contains(ct)&&!Re.contains(ct)&&Et()},[Et]);A.useEffect(()=>{if(bt)return setTimeout(()=>document.addEventListener("mousedown",Ze),0),()=>document.removeEventListener("mousedown",Ze)},[bt,Ze]);const At=A.useCallback(()=>{Ct()},[Ct]);A.useEffect(()=>{if(!bt||!(it!=null&&it.current))return;const ne=it.current;let Je=ne.parentElement;for(;Je;)Je.addEventListener("scroll",At),Je=Je.parentElement;return()=>{let ct=ne.parentElement;for(;ct;)ct.removeEventListener("scroll",At),ct=ct.parentElement}},[it,bt,At]),A.useEffect(()=>{if(bt)return window.addEventListener("resize",At),()=>window.removeEventListener("resize",At)},[bt,At]);const jt=A.useCallback(ne=>{ne[0].intersectionRatio===0&&Et()},[Et]);A.useEffect(()=>{if(!bt)return;const ne=new IntersectionObserver(jt,{threshold:0});return Me.current&&ne.observe(Me.current),()=>ne.disconnect()},[Me,bt,jt]),A.useEffect(()=>{i&&(i.current={open:pt,close:Et,toggle:mt})},[i,pt,Et,mt]),A.useEffect(()=>{if(!X)return;let ne={sDate:X.sDate,eDate:X.eDate};q&&(Kt["<"](X.sDate,q)&&(ne.sDate=q),Kt["<"](X.eDate,q)&&(ne.eDate=q)),z&&(Kt[">"](X.sDate,z)&&(ne.sDate=z),Kt[">"](X.eDate,z)&&(ne.eDate=z)),(ne.sDate!==X.sDate||ne.eDate!==X.eDate)&&j(ne)},[q,z,X,j]);const mr=A.useCallback(ne=>{x==null||x(ne),mt()},[x,mt]),kr=A.useCallback(ne=>{j(void 0),Et(),ne.stopPropagation()},[j,Et]),Cr=A.useCallback(()=>X?v.jsx(_i,{style:{scale:"0.8"},type:"Raw",icon:"Close",onClick:kr}):null,[X,kr]),ge=A.useMemo(()=>X?`${Kt.toString(X.sDate)} ~ ${Kt.toString(X.eDate)}`:v.jsx("span",{className:Hr.Placeholder,children:H}),[X,H]);return v.jsxs(v.Fragment,{children:[v.jsxs($r,{...L,isLoading:m,isDisabled:g,className:Fe.clsx(Hr.Anchor,"IsClickable",Hr[e],t),onClick:mr,abaseRef:it,children:[b,e==="Primary"&&v.jsxs(v.Fragment,{children:[v.jsx(jr,{icon:"CalendarDay",className:Fe.clsx(Hr.Icon,Hr[e])}),v.jsx(mn,{w:4})]}),ge,v.jsx(Qc,{}),!D&&v.jsx(Cr,{}),e==="Secondary"&&v.jsx(jr,{icon:"CalendarDay",className:Fe.clsx(Hr.Icon,Hr[e])}),S&&S]}),(bt||_t)&&Hs.createPortal(v.jsxs("div",{className:Hr.ADateRangePicker,onTransitionEnd:Dt,onMouseLeave:le,style:{opacity:+bt,visibility:bt?"visible":"hidden"},ref:Me,children:[v.jsxs("div",{className:Hr.StringInputContainer,children:[v.jsxs(Sn,{children:[v.jsx(tc,{maxLength:11,wrapProps:{className:Hr.StringInputWrap},inputProps:{className:Hr.StringInput},className:Fe.clsx(Hr.String,K==="sD"&&he&&Hr.IsIdx),useValue:[Ae,Ge],placeholder:"YYYY-MM-DD",onBlur:Le}),v.jsx(mn,{w:8}),v.jsx(tc,{maxLength:11,wrapProps:{className:Hr.StringInputWrap},inputProps:{className:Hr.StringInput},className:Fe.clsx(Hr.String,K==="eD"&&he&&Hr.IsIdx),useValue:[lt,ht],placeholder:"YYYY-MM-DD",onBlur:Le})]}),!w&&v.jsxs(Sn,{style:{marginTop:4},children:[v.jsx(Ed,{children:O["1일"],onClick:()=>j({sDate:new Date,eDate:new Date})}),v.jsx(Ed,{children:O["1주일"],onClick:()=>j({sDate:new Date(new Date().setDate(new Date().getDate()-7)),eDate:new Date})}),v.jsx(Ed,{children:O["1개월"],onClick:()=>j({sDate:new Date(new Date().setMonth(new Date().getMonth()-1)),eDate:new Date})}),v.jsx(Ed,{children:O["3개월"],onClick:()=>j({sDate:new Date(new Date().setMonth(new Date().getMonth()-3)),eDate:new Date})})]})]}),v.jsxs("div",{className:Hr.CalendarContainer,children:[v.jsxs(Sn,{className:Hr.Header,children:[v.jsx(Fi,{type:"Raw",className:Hr.Prev,onClick:De,isDisabled:We}),v.jsxs("div",{className:Hr.MonthYear,children:[v.jsx(rc,{type:"Secondary",useSelect:[oe.month,Pe],className:Hr.Select,options:et,OptionRenderer:ne=>O.months(ne.option),SelectedRenderer:ne=>O.months(ne.selectedOption)}),v.jsx(mn,{w:8}),v.jsx(rc,{type:"Secondary",useSelect:[oe.year,we],className:Hr.Select,options:Oe})]}),v.jsx(Fi,{type:"Raw",className:Hr.Next,onClick:ze,isDisabled:je})]}),v.jsx(mn,{h:10}),v.jsxs("div",{className:Hr.Calendar,children:[v.jsx("div",{className:Hr.Week,children:[0,1,2,3,4,5,6].map(ne=>v.jsx("div",{className:Fe.clsx(Hr.WeekDay,Hr.Cell),children:O.weekDays(ne)},ne))}),Xe]})]})]}),document.body)]})};function Kf(r,e,t){let n=0;e&&e.getFullYear()===r&&(n=e.getMonth());let i=11;t&&t.getFullYear()===r&&(i=t.getMonth());const l=[];for(let u=n;u<=i;u++)l.push(u);return l}function gm(r,e,t,n=5){const i=[];let l=r-n/2+n%2/2;e&&l<e.getFullYear()&&(l=e.getFullYear());let u=l+n-1;t&&u>t.getFullYear()&&(u=t.getFullYear());for(let f=l;f<=u;f++)i.push(f);return i}function n0(r,e,t){return r??(r={sDate:new Date,eDate:new Date}),e&&Kt["<"](r.sDate,e)?{month:e.getMonth(),year:e.getFullYear()}:t&&Kt[">"](r.eDate,t)?{month:t.getMonth(),year:t.getFullYear()}:{month:r.sDate.getMonth(),year:r.sDate.getFullYear()}}function i0(r,e){return[e,r]}const Ed=r=>v.jsx(Fi,{className:Fe.clsx(Hr.ChoiceButton,"Headline2"),type:"Secondary",...r}),fE=["Primary","Secondary","Raw"],mm=r=>{const{type:e="Primary",className:t,useDate:n,actionRef:i,position:l=ef.SE,minDate:u,maxDate:f,isDisabled:g,isLoading:m,placeholder:R,LeftAddon:w,RightAddon:b,resources:S,noClearButton:_,onClick:D,...E}=r,x=A.useMemo(()=>({...hn.ADatePicker,...S}),[S]),L=A.useMemo(()=>R??x["Select Date"],[R,x]),[O,H]=A.useMemo(()=>{let Me,pt;return u&&(Me=Kt.makeSDate(u)),f&&(pt=Kt.makeEDate(f)),Me&&pt&&Kt["<"](pt,Me)?(console.warn("ADatePicker: maxDate should be greater than minDate. maxDate and minDate are swapped."),[Kt.makeSDate(pt),Kt.makeEDate(Me)]):[Me,pt]},[u,f]),[q,z]=nn(n,null),[K,ue]=A.useState(q?Kt.toString(q):""),[X,de]=A.useState(()=>{const Me=q??new Date;return O&&Me<O?O.getMonth():H&&Me>H?H.getMonth():(Me??new Date).getMonth()}),[j,re]=A.useState(()=>{const Me=q??new Date;return O&&Me<O?O.getFullYear():H&&Me>H?H.getFullYear():(Me??new Date).getFullYear()}),J=A.useCallback(Me=>{re(Me);const pt=Kf(Me,O,H);pt.includes(X)||(X<pt[0]?de(pt[0]):X>pt[pt.length-1]&&de(pt[pt.length-1]))},[O,H,X]),Q=A.useCallback(Me=>{if(Me.length>10||(ue(Me),Me.length<10)||!z)return;let pt=Kt.toDate(Me);pt&&(O&&pt<O&&(pt=O),H&&pt>H&&(pt=H),z(pt),re(pt.getFullYear()),de(pt.getMonth()))},[z,O,H]),he=A.useCallback(Me=>{const pt=j+Me;pt<0||re(pt)},[j]),me=A.useCallback(Me=>{const pt=X+Me;pt<0?(de(11),he(-1)):pt>11?(de(0),he(1)):de(pt)},[X,he]),be=A.useCallback(Me=>{z&&(Me===void 0?(z(void 0),ue("")):(z(Me),ue(Kt.toString(Me))))},[z]),ce=A.useMemo(()=>{const Me=new Date(j,X,0);return O&&Me<O},[j,X,O]),ke=A.useMemo(()=>{const Me=new Date(j,X+1,1);return H&&Me>H},[j,X,H]),le=A.useCallback(()=>{ce||me(-1)},[me,ce]),oe=A.useCallback(()=>{ke||me(1)},[me,ke]),[ve,Oe]=A.useState(null),et=A.useCallback(()=>{z&&Oe(null)},[z]),we=A.useCallback(Me=>{z&&Oe(Me)},[z]),Pe=A.useMemo(()=>{const Me=new Date(j,X,1),pt=new Date(j,X+1,0),Et=[];for(let Dt=0;Dt<Me.getDay();Dt++){const At=new Date(j,X,0).getDate()-Me.getDay()+Dt+1,jt=new Date(j,X-1,At),mr=O&&O>jt||H&&H<jt,kr=q&&Kt.eq(jt,q),Cr=ve&&Kt.eq(jt,ve);Et.push({day:At,isSelected:kr,date:jt,isDisabled:mr,isHovered:Cr,isCurrentMonth:!1})}for(let Dt=1;Dt<=pt.getDate();Dt++){const Ze=new Date(j,X,Dt),At=O&&O>Ze||H&&H<Ze,jt=q&&Kt.eq(Ze,q),mr=ve&&Kt.eq(Ze,ve);Et.push({day:Dt,isSelected:jt,date:Ze,isDisabled:At,isHovered:mr,isCurrentMonth:!0})}for(let Dt=0;Dt<7-pt.getDay()-1;Dt++){const Ze=new Date(j,X+1,Dt+1),At=O&&O>Ze||H&&H<Ze,jt=q&&Kt.eq(Ze,q),mr=ve&&Kt.eq(Ze,ve);Et.push({day:Dt+1,isSelected:jt,date:Ze,isDisabled:At,isHovered:mr,isCurrentMonth:!1})}const mt=[];for(let Dt=0;Dt<Et.length/7;Dt++)mt.push(v.jsx("div",{className:rn.Week,children:Et.slice(Dt*7,Dt*7+7).map((Ze,At)=>v.jsx(Fi,{type:"Raw",className:Fe.clsx(rn.Day,rn.Cell,Ze.isDisabled?rn.IsDisabled:Ze.isCurrentMonth?Ze.isSelected?rn.IsSelected:Ze.isHovered&&rn.IsHovered:rn.IsNotCurrentMonth),isDisabled:Ze.isDisabled,onClick:()=>Ze.isCurrentMonth&&be(Ze.date),onMouseLeave:()=>Ze.isCurrentMonth&&et(),onMouseEnter:()=>Ze.isCurrentMonth&&we(Ze.date),children:Ze.day},At))},Dt));return mt},[X,be,q,j,O,H,ve,et,we]),je=A.useRef(null),ze=A.useCallback(()=>{je&&fm(je,Ge,l)},[je,l]),[We,De]=A.useState(!1),[Ae,_e]=A.useState(!1),Ge=A.useRef(null),lt=A.useCallback(()=>{g||m||(De(!0),setTimeout(()=>_e(!0),0),setTimeout(()=>ze(),0),ue(q?Kt.toString(q):""),de(()=>{const Me=q??new Date;return O&&Me<O?O.getMonth():H&&Me>H?H.getMonth():Me.getMonth()}),re(()=>{const Me=q??new Date;return O&&Me<O?O.getFullYear():H&&Me>H?H.getFullYear():Me.getFullYear()}))},[g,m,q,ze,O,H]),$e=A.useCallback(()=>{g||m||(De(!0),_e(!1))},[g,m]),ht=A.useMemo(()=>Ae?$e:lt,[Ae,lt,$e]),Le=A.useCallback(()=>De(!1),[]),Xe=A.useCallback(Me=>{const pt=document.getElementById("root"),Et=Me.target,mt=Ge.current,Dt=je.current;!pt||!mt||!Et||!Dt||!mt.contains(Et)&&pt.contains(Et)&&!Dt.contains(Et)&&$e()},[$e]);A.useEffect(()=>{if(Ae)return setTimeout(()=>document.addEventListener("mousedown",Xe),0),()=>document.removeEventListener("mousedown",Xe)},[Ae,Xe]);const it=A.useCallback(()=>{ze()},[ze]);A.useEffect(()=>{if(!Ae||!(je!=null&&je.current))return;const Me=je.current;let pt=Me.parentElement;for(;pt;)pt.addEventListener("scroll",it),pt=pt.parentElement;return()=>{let Et=Me.parentElement;for(;Et;)Et.removeEventListener("scroll",it),Et=Et.parentElement}},[je,Ae,it]),A.useEffect(()=>{if(Ae)return window.addEventListener("resize",it),()=>window.removeEventListener("resize",it)},[Ae,it]);const Ct=A.useCallback(Me=>{Me[0].intersectionRatio===0&&$e()},[$e]);A.useEffect(()=>{if(!Ae)return;const Me=new IntersectionObserver(Ct,{threshold:0});return Ge.current&&Me.observe(Ge.current),()=>Me.disconnect()},[Ge,Ae,Ct]),A.useEffect(()=>{i&&(i.current={open:lt,close:$e,toggle:ht})},[i,lt,$e,ht]);const _t=A.useCallback(Me=>{D==null||D(Me),ht()},[D,ht]),wt=A.useCallback(Me=>{be(void 0),$e(),Me.stopPropagation()},[be,$e]),bt=A.useCallback(()=>q?v.jsx(_i,{style:{scale:"0.8"},type:"Raw",icon:"Close",onClick:wt}):null,[q,wt]),St=A.useMemo(()=>q?Kt.toString(q):v.jsx("span",{className:rn.Placeholder,children:L}),[q,L]);return v.jsxs(v.Fragment,{children:[v.jsxs($r,{...E,isLoading:m,isDisabled:g,className:Fe.clsx(rn.Anchor,"IsClickable",rn[e],t),onClick:_t,abaseRef:je,children:[w,e==="Primary"&&v.jsxs(v.Fragment,{children:[v.jsx(jr,{icon:"CalendarDay",className:Fe.clsx(rn.Icon,rn[e])}),v.jsx(mn,{w:4})]}),St,v.jsx(Qc,{}),!_&&v.jsx(bt,{}),e==="Secondary"&&v.jsx(jr,{icon:"CalendarDay",className:Fe.clsx(rn.Icon,rn[e])}),b&&b]}),(Ae||We)&&Hs.createPortal(v.jsxs("div",{className:rn.ADatePicker,onTransitionEnd:Le,style:{opacity:+Ae,visibility:Ae?"visible":"hidden"},ref:Ge,children:[v.jsx("div",{className:rn.StringInputContainer,children:v.jsx(tc,{maxLength:q?30:11,wrapProps:{className:rn.StringInputWrap},inputProps:{className:rn.StringInput},className:rn.String,useValue:[K,Q],placeholder:"YYYY-MM-DD"})}),v.jsxs("div",{className:rn.CalendarContainer,children:[v.jsxs(Sn,{className:rn.Header,children:[v.jsx(Fi,{type:"Raw",className:rn.Prev,onClick:le,isDisabled:ce}),v.jsxs("div",{className:rn.MonthYear,children:[v.jsx(rc,{type:"Secondary",useSelect:[X,de],className:rn.Select,options:Kf(j,O,H),OptionRenderer:Me=>x.months(Me.option),SelectedRenderer:Me=>x.months(Me.selectedOption)}),v.jsx(mn,{w:8}),v.jsx(rc,{type:"Secondary",useSelect:[j,J],className:rn.Select,options:gm(j,O,H)})]}),v.jsx(Fi,{type:"Raw",className:rn.Next,onClick:oe,isDisabled:ke})]}),v.jsx(mn,{h:10}),v.jsxs("div",{className:rn.Calendar,children:[v.jsx("div",{className:rn.Week,children:[0,1,2,3,4,5,6].map(Me=>v.jsx("div",{className:Fe.clsx(rn.WeekDay,rn.Cell),children:x.weekDays(Me)},Me))}),Pe]})]})]}),document.body)]})},dE="_Paper_e69j5_1",hE="_Card_e69j5_15",pE="_Body_e69j5_26",gE="_Title_e69j5_35",mE="_Content_e69j5_42",vE="_Action_e69j5_45",yE="_Button_e69j5_58",ba={Paper:dE,Card:hE,Body:pE,Title:gE,Content:mE,Action:vE,Button:yE},bE=["okCancel","cancelOk","ok","cancel","none"],_E=r=>{const{dlgCore:e,type:t="okCancel",title:n,children:i,style:l,titleStyle:u,bodyStyle:f,contentStyle:g,okButtonStyle:m,cancelButtonStyle:R,actionStyle:w,onOk:b,onCancel:S,onClose:_,onEnterPress:D,onEscPress:E,onSpacePress:x,onPaperClick:L,noDim:O=!1,isLoading:H,isOkDisabled:q,isOkLoading:z,isCancelDisabled:K,isCancelLoading:ue,buttonNoInteractive:X,okButtonClassName:de,cancelButtonClassName:j,resources:re}=r,J=A.useMemo(()=>({...hn.ADialog,...re}),[re]),[Q,he]=A.useState(0);A.useEffect(()=>he(1),[]);const me=A.useCallback(()=>{he(0)},[]),be=A.useCallback(()=>{if(!Q){const[,Ae]=e.state.useIsOpen;Ae==null||Ae(!1),_==null||_()}},[Q,_,e]),ce=A.useCallback(async()=>{if(!Q||t==="cancel"||t==="none"||H||q||z)return;const{event:Ae,e:_e}=Gc();await(b==null?void 0:b(_e)),!Ae.preventDefault&&me()},[Q,t,me,b,q,H,z]),ke=A.useCallback(async()=>{if(!Q||t==="ok"||t==="none"||H||K||ue)return;const{event:Ae,e:_e}=Gc();await(S==null?void 0:S(_e)),!Ae.preventDefault&&me()},[Q,t,me,S,K,H,ue]);A.useEffect(()=>{e&&e.state.setAction({close:me,ok:ce,cancel:ke})},[e,me,ce,ke]);const le=A.useCallback(async()=>{const{event:Ae,e:_e}=Gc();await(D==null?void 0:D(_e)),!Ae.preventDefault&&ce()},[D,ce]),oe=A.useCallback(async()=>{const{event:Ae,e:_e}=Gc();await(x==null?void 0:x(_e)),!Ae.preventDefault&&ce()},[x,ce]),ve=A.useCallback(async()=>{const{event:Ae,e:_e}=Gc();await(E==null?void 0:E(_e)),!Ae.preventDefault&&ke()},[E,ke]),Oe=A.useRef(null),et=A.useCallback(Ae=>{const _e=document.body.getElementsByClassName(ba.Paper);_e.length===0||_e[_e.length-1]!==Oe.current||(Ae.key==="Enter"&&Q?le():Ae.key===" "&&Q?oe():Ae.key==="Escape"&&Q&&ve())},[Q,le,oe,ve]);A.useEffect(()=>{if(Q)return window.addEventListener("keydown",et),()=>window.removeEventListener("keydown",et)},[Q,et]);const we=A.useRef(!1),Pe=A.useRef(!1),je=A.useCallback(()=>{we.current=!0},[]),ze=A.useCallback(()=>{we.current=!1,Pe.current=!1},[]),We=A.useCallback(()=>{Pe.current=!0},[]),De=A.useCallback(async()=>{const Ae=!Pe.current||we.current;if(we.current=!1,Pe.current=!1,Ae)return;const{event:_e,e:Ge}=Gc();await(L==null?void 0:L(Ge)),!_e.preventDefault&&ke()},[L,ke]);return Hs.createPortal(v.jsx("div",{className:ba.Paper,style:{backgroundColor:O?"transparent":void 0,pointerEvents:Q?void 0:"none",opacity:Q},onMouseUp:De,onMouseDown:We,onTransitionEnd:be,ref:Oe,children:v.jsxs($r,{className:ba.Card,onMouseDown:je,onMouseUp:ze,style:l,isLoading:H,children:[v.jsxs("div",{className:ba.Body,style:f,children:[n&&v.jsx(xE,{title:n,titleStyle:u}),i&&v.jsx("div",{className:ba.Content,style:g,children:i})]}),t!=="none"&&v.jsx(SE,{type:t,ok:ce,cancel:ke,resources:J,isOkDisabled:q,isOkLoading:z,isCancelDisabled:K,isCancelLoading:ue,okButtonStyle:m,cancelButtonStyle:R,actionStyle:w,buttonNoInteractive:X,okButtonClassName:de,cancelButtonClassName:j})]})}),document.body)},xE=r=>{const{title:e,titleStyle:t}=r;return v.jsx("div",{className:Fe.clsx(ba.Title,"NoSelect","Title3"),style:t,children:e})},SE=r=>{const{type:e,ok:t,cancel:n,resources:i,isOkDisabled:l,isOkLoading:u,isCancelDisabled:f,isCancelLoading:g,okButtonStyle:m,cancelButtonStyle:R,actionStyle:w,buttonNoInteractive:b,okButtonClassName:S,cancelButtonClassName:_}=r,D=A.useMemo(()=>({onClick:t,isDisabled:l,isLoading:u,children:i.Ok,style:m,noInteractive:b,className:Fe.clsx(ba.Button,S)}),[t,l,u,i.Ok,m,b,S]),E=A.useMemo(()=>({type:"Secondary",onClick:n,isDisabled:f,isLoading:g,children:i.Cancel,style:R,noInteractive:b,className:Fe.clsx(ba.Button,_)}),[n,f,g,i.Cancel,R,b,_]);if(e==="okCancel"||e==="ok")return v.jsxs("div",{className:ba.Action,style:{...w},children:[v.jsx(Fi,{...D}),e==="okCancel"&&v.jsxs(v.Fragment,{children:[v.jsx(mn,{w:8}),v.jsx(Fi,{...E})]})]},e);if(e==="cancelOk"||e==="cancel")return v.jsxs("div",{className:ba.Action,children:[v.jsx(Fi,{...E}),e==="cancelOk"&&v.jsxs(v.Fragment,{children:[v.jsx(mn,{w:8}),v.jsx(Fi,{...D})]})]},e)},CE=r=>{const e=A.useMemo(()=>Math.random().toFixed(32),[]),t=A.useMemo(()=>{const S={};return r.forEach(_=>{S[_]=_+e}),S},[r,e]),n=A.useMemo(()=>[],[]),i=A.useMemo(()=>(n.length=0,n.push(...r),n),[n,r]),[l,u]=A.useState([]),f=A.useRef((()=>{const S={};return i.forEach(_=>{S[_]={open:()=>u(D=>[...D,_]),close:()=>{},ok:()=>{},cancel:()=>{}}}),S})()),g=A.useMemo(()=>{const S={};return i.forEach(_=>{S[_]=D=>{u(E=>!D&&E.includes(_)?E.filter(x=>x!==_):D&&!E.includes(_)?[...E,_]:E)}}),S},[i]),m=A.useMemo(()=>{const S={};return i.forEach(_=>{const E=[l.includes(_),g[_]],x=L=>{f.current[_]={...f.current[_],...L}};S[_]={useIsOpen:E,setAction:x}}),S},[l,g,i]),R=A.useMemo(()=>{const S={};return i.forEach(_=>{const D=()=>f.current[_].open(),E=()=>f.current[_].close(),x=()=>f.current[_].ok(),L=()=>f.current[_].cancel();S[_]={open:D,close:E,ok:x,cancel:L}}),S},[i]),w=A.useMemo(()=>({}),[]),b=A.useMemo(()=>(i.forEach(S=>{w[S]={state:m[S],action:R[S]}}),w),[w,i,m,R]);return A.useEffect(()=>(Object.keys(b).forEach(_=>{const D=b[_],E=t[_],x=js.find(L=>{L.id});x?x.core=D:js.push({id:E,core:D})}),()=>{const _=Object.keys(b),D=js.filter(E=>_.includes(E.id));js.length=0,js.push(...D)}),[b,t]),b},wE=()=>{const r=A.useMemo(()=>Math.random().toFixed(32),[]),[e,t]=A.useState(!1),n=A.useRef({open:()=>t(!0),close:()=>{},ok:()=>{},cancel:()=>{}}),i=A.useMemo(()=>({useIsOpen:[e,t],setAction:g=>{n.current={...n.current,...g}}}),[e]),l=A.useMemo(()=>({open:()=>n.current.open(),close:()=>n.current.close(),ok:()=>n.current.ok(),cancel:()=>n.current.cancel()}),[]),u=A.useMemo(()=>({}),[]),f=A.useMemo(()=>(u.state=i,u.action=l,u),[u,i,l]);return A.useEffect(()=>{const g=js.find(m=>m.id===r);return g?g.core=f:js.push({id:r,core:f}),()=>{const m=js.filter(R=>R.id!==r);js.length=0,js.push(...m)}},[r,f]),f},AE=r=>{const{dlgCore:e,children:t}=r,[n,i]=A.useMemo(()=>e.state.useIsOpen,[e.state.useIsOpen]);return A.useEffect(()=>()=>i==null?void 0:i(!1),[i]),v.jsx(A.Suspense,{children:n&&t})},TE=r=>e=>{const{dlgCore:t}=e;return v.jsx(AE,{dlgCore:t,children:A.cloneElement(v.jsx(r,{...e}),{dlgCore:t})})},js=[],EE={closeAllDlgs:()=>{js.forEach(r=>{r.core.action.close()})}},kE="_AFileBox_1hlo1_1",RE="_SelectedFile_1hlo1_16",IE="_Dropping_1hlo1_26",lh={AFileBox:kE,SelectedFile:RE,Dropping:IE},LE=r=>{const{useFile:e,FileRenderer:t=ME,SelectRenderer:n=DE,DropRenderer:i=OE,resources:l,accept:u="",onInvalidFileFormat:f,fileSelectButtonClassName:g,isDisabled:m,isLoading:R,className:w,...b}=r,S=A.useMemo(()=>({...hn.AFileBox,...l}),[l]),_=A.useRef(null),D=A.useRef(null),[E,x]=nn(e,null),[L,O]=A.useState(!1),H=A.useMemo(()=>u.split(",").map(Q=>Q.trim()).filter(Q=>Q.length>0&&Q.startsWith(".")),[u]),q=A.useCallback(Q=>{if(H.length===0)return!1;const he=Q.name.split(".").pop();return he?!H.includes(`.${he}`):!0},[H]),z=A.useCallback(Q=>{if(x)if(q(Q)){f==null||f();return}else x(Q);else return},[x,q,f]),K=A.useCallback(Q=>{Q.target.files&&Q.target.files.length>0&&z(Q.target.files[0])},[z]),ue=A.useCallback(Q=>{Q.preventDefault(),O(!1),!(m||R)&&Q.dataTransfer.files&&Q.dataTransfer.files.length>0&&z(Q.dataTransfer.files[0])},[z,m,R]),X=A.useCallback(Q=>{Q.preventDefault(),!(m||R)&&O(!0)},[m,R]),de=A.useCallback(Q=>{Q.target===_.current&&Q.relatedTarget.contains(_.current.parentElement)&&(Q.preventDefault(),O(!1))},[]),j=A.useCallback(Q=>Q.preventDefault(),[]),re=A.useCallback(()=>{var Q;(Q=D.current)==null||Q.click()},[]),J=A.useMemo(()=>L?v.jsx(i,{resources:S}):E?v.jsx(t,{file:E,useFile:e}):v.jsx(n,{onClick:re,resources:S,fileSelectButtonClassName:g}),[t,n,i,S,L,E,e,g,re]);return v.jsxs($r,{...b,isDisabled:m,isLoading:R,className:Fe.clsx(lh.AFileBox,w),onDrop:ue,onDragEnter:X,onDragLeave:de,onDragOver:j,abaseRef:_,children:[v.jsx("input",{style:{display:"none"},ref:D,type:"file",onChange:K,value:"",accept:u}),J]})},ME=r=>{const{file:e,useFile:t}=r,[,n]=nn(t,null);return v.jsxs(Sn,{className:lh.SelectedFile,style:{backgroundColor:""},children:[v.jsx(jr,{icon:"File"}),v.jsx(Sa,{children:e.name}),v.jsx(_i,{type:"Raw",icon:"Close",style:{marginLeft:2,transform:"scale(0.8)"},onClick:()=>n==null?void 0:n(null)})]})},DE=r=>{const{onClick:e,resources:t,fileSelectButtonClassName:n}=r;return v.jsxs(Sn,{className:Fe.clsx(lh.SelectFile,"NoSelect"),children:[v.jsx(Fi,{className:n,onClick:e,children:t["Select File"]}),v.jsx(mn,{w:4}),t["or Drag & Drop"]]})},OE=r=>{const{resources:e}=r;return v.jsxs(O2,{className:Fe.clsx(lh.Dropping,"NoSelect","Headline2"),children:[v.jsx(jr,{icon:"FileDownload"}),e["drop file to select"]]})},PE="_AFileUploader_xepa3_1",NE="_LabelContainer_xepa3_13",FE="_LabelButton_xepa3_22",jE="_Disabled_xepa3_28",BE="_Delete_xepa3_35",HE="_FileSize_xepa3_39",qE="_TotalFileSize_xepa3_46",zE="_FileBox_xepa3_50",$E="_SelectRenderer_xepa3_68",UE="_ChipsContainer_xepa3_78",WE="_FileChip_xepa3_88",VE="_FileChipContent_xepa3_100",GE="_FileNameContainer_xepa3_111",ZE="_ButtonRenderer_xepa3_117",KE="_ErrorBorder_xepa3_127",YE="_ErrorColor_xepa3_131",XE="_ErrorCursor_xepa3_135",Fn={AFileUploader:PE,LabelContainer:NE,LabelButton:FE,Disabled:jE,Delete:BE,FileSize:HE,TotalFileSize:qE,FileBox:zE,SelectRenderer:$E,ChipsContainer:UE,FileChip:WE,FileChipContent:VE,FileNameContainer:GE,ButtonRenderer:ZE,ErrorBorder:KE,ErrorColor:YE,ErrorCursor:XE},JE=r=>{const{helperText:e,label:t,labelProps:n,wrapProps:i,wrapType:l,errorMessage:u,useFiles:f,accept:g,onInvalidFileFormat:m,onDownload:R,onDownloads:w,onDelete:b,type:S,limit:_=1024*1024*1024,useError:D,useStatus:E,isLoading:x,resources:L,className:O,...H}=r,q=A.useMemo(()=>({...hn.AFileUploader,...L}),[L]),[z,K]=nn(f,void 0),[ue,X]=nn(D,!1),[de,j]=nn(E,{}),[re,J]=A.useState(!1),Q=A.useRef(null),he=A.useRef(null),me=A.useCallback(Le=>Le.idx!==void 0?`file-${Le.idx}`:`${Le.name}-${Le.size}-${Le.lastModified||""}`,[]),be=A.useMemo(()=>(z==null?void 0:z.reduce((Le,Xe)=>Le+Xe.size,0))||0,[z]);A.useEffect(()=>{X&&X(be>_)},[be,_,X]);const ce=A.useCallback(Le=>{var Ct;if(!g||g==="*"||g==="")return!0;const Xe=g.split(",").map(_t=>_t.trim()),it=`.${(Ct=Le.name.split(".").pop())==null?void 0:Ct.toLowerCase()}`;return Xe.includes(it)?!0:Xe.some(_t=>{var wt;if(_t.startsWith("."))return!1;if(_t.endsWith("/*")){const bt=_t.split("/")[0];return(wt=Le.type)==null?void 0:wt.startsWith(`${bt}/`)}return Le.type===_t})},[g]),ke=A.useCallback((Le,Xe)=>{j==null||j({...de,[Le]:Xe})},[de,j]),le=A.useCallback(Le=>{const Xe=me(Le);return de[Xe]||"Normal"},[de,me]),oe=A.useCallback(Le=>x||le(Le)==="Loading",[x,le]),ve=A.useCallback(Le=>le(Le)==="Error"||S==="Upload"&&Le.size>_,[le,_,S]),Oe=A.useMemo(()=>z!=null&&z.length?S==="Download"?z.every(ve):!1:!0,[z,S,ve]),et=A.useCallback(()=>{Q.current&&(Q.current.value="")},[]),we=A.useCallback(Le=>{if(!K)return;const Xe=[];let it=!1,Ct=[];if(Array.from(Le).forEach(_t=>{if(!ce(_t)){it=!0,Ct.push(_t.name);return}const wt=_t;wt.idx=Date.now()+Math.floor(Math.random()*1e3),wt.state=0,Xe.push(wt)}),it)if(m)m();else{const _t=g?g.replace(/,/g,", "):"",wt=_t?`${q["Supported file format(s)"]}: ${_t}`:"",bt=Ct.length>3?`${Ct.slice(0,3).join(", ")} ${q.and} ${Ct.length-3} ${q["more file(s)"]}`:Ct.join(", ");alert(`${q["Unsupported file format detected."]}
|
156
|
+
`+h.stack}}var Ll=t.ReactCurrentDispatcher,ua=t.ReactDebugCurrentFrame,Ml=0,co=1,Dl=2,Es=3,xu=4,Ha=0,fa=1,da=2,Tc=12800;function Su(d){return console.error(d),null}function ks(){}function Ol(d,s,c,h,y,M,F,W,ie){var Ce=[],Ye=new Set,at={destination:null,responseState:s,progressiveChunkSize:h===void 0?Tc:h,status:Ha,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:Ye,pingedTasks:Ce,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:y===void 0?Su:y,onAllReady:M===void 0?ks:M,onShellReady:F===void 0?ks:F,onShellError:W===void 0?ks:W,onFatalError:ie===void 0?ks:ie},It=qa(at,0,null,c,!1,!1);It.parentFlushed=!0;var tr=Po(at,d,null,It,Ye,Ln,Cl,gf);return Ce.push(tr),at}function Oo(d,s){var c=d.pingedTasks;c.push(s),c.length===1&&u(function(){return Fc(d)})}function Pl(d,s){return{id:Ci,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:s,errorDigest:null}}function Po(d,s,c,h,y,M,F,W){d.allPendingTasks++,c===null?d.pendingRootTasks++:c.pendingTasks++;var ie={node:s,ping:function(){return Oo(d,ie)},blockedBoundary:c,blockedSegment:h,abortSet:y,legacyContext:M,context:F,treeContext:W};return ie.componentStack=null,y.add(ie),ie}function qa(d,s,c,h,y,M){return{status:Ml,id:-1,index:s,parentFlushed:!1,chunks:[],children:[],formatContext:h,boundary:c,lastPushedText:y,textEmbedded:M}}var Zi=null;function Ki(){return Zi===null||Zi.componentStack===null?"":ca(Zi.componentStack)}function uo(d,s){d.componentStack={tag:0,parent:d.componentStack,type:s}}function za(d,s){d.componentStack={tag:1,parent:d.componentStack,type:s}}function ts(d,s){d.componentStack={tag:2,parent:d.componentStack,type:s}}function Yi(d){d.componentStack===null?i("Unexpectedly popped too many stack frames. This is a bug in React."):d.componentStack=d.componentStack.parent}var ha=null;function Nl(d,s){{var c;typeof s=="string"?c=s:s&&typeof s.message=="string"?c=s.message:c=String(s);var h=ha||Ki();ha=null,d.errorMessage=c,d.errorComponentStack=h}}function $a(d,s){var c=d.onError(s);if(c!=null&&typeof c!="string")throw new Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof c+'" instead');return c}function pa(d,s){var c=d.onShellError;c(s);var h=d.onFatalError;h(s),d.destination!==null?(d.status=da,L(d.destination,s)):(d.status=fa,d.fatalError=s)}function Cu(d,s,c){uo(s,"Suspense");var h=s.blockedBoundary,y=s.blockedSegment,M=c.fallback,F=c.children,W=new Set,ie=Pl(d,W),Ce=y.chunks.length,Ye=qa(d,Ce,ie,y.formatContext,!1,!1);y.children.push(Ye),y.lastPushedText=!1;var at=qa(d,0,null,y.formatContext,!1,!1);at.parentFlushed=!0,s.blockedBoundary=ie,s.blockedSegment=at;try{if(rs(d,s,F),pn(at.chunks,d.responseState,at.lastPushedText,at.textEmbedded),at.status=co,ns(ie,at),ie.pendingTasks===0){Yi(s);return}}catch(tr){at.status=xu,ie.forceClientRender=!0,ie.errorDigest=$a(d,tr),Nl(ie,tr)}finally{s.blockedBoundary=h,s.blockedSegment=y}var It=Po(d,M,h,Ye,W,s.legacyContext,s.context,s.treeContext);It.componentStack=s.componentStack,d.pingedTasks.push(It),Yi(s)}function Ec(d,s,c,h){uo(s,c);var y=s.blockedSegment,M=pr(y.chunks,c,h,d.responseState,y.formatContext);y.lastPushedText=!1;var F=y.formatContext;y.formatContext=Si(F,c,h),rs(d,s,M),y.formatContext=F,Ar(y.chunks,c),y.lastPushedText=!1,Yi(s)}function kc(d){return d.prototype&&d.prototype.isReactComponent}function Rs(d,s,c,h,y){var M={};_c(s,M);var F=c(h,y);return ws(c,h,F,y)}function Rc(d,s,c,h,y){var M=c.render();c.props!==y&&(Lc||i("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",ln(h)||"a component"),Lc=!0);{var F=h.childContextTypes;if(F!=null){var W=s.legacyContext,ie=dc(c,h,W,F);s.legacyContext=ie,oi(d,s,M),s.legacyContext=W;return}}oi(d,s,M)}function Fl(d,s,c,h){ts(s,c);var y=Go(c,s.legacyContext),M=ao(c,h,y);Fa(M,c,h,y),Rc(d,s,M,c,h),Yi(s)}var gr={},Ua={},Ic={},Is={},Lc=!1,wu=!1,Mc=!1,Di=!1;function _f(d,s,c,h){var y;if(y=Go(c,s.legacyContext),za(s,c),c.prototype&&typeof c.prototype.render=="function"){var M=ln(c)||"Unknown";gr[M]||(i("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",M,M),gr[M]=!0)}var F=Rs(d,s,c,h,y),W=di();if(typeof F=="object"&&F!==null&&typeof F.render=="function"&&F.$$typeof===void 0){var ie=ln(c)||"Unknown";Ua[ie]||(i("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",ie,ie,ie),Ua[ie]=!0)}if(typeof F=="object"&&F!==null&&typeof F.render=="function"&&F.$$typeof===void 0){{var Ce=ln(c)||"Unknown";Ua[Ce]||(i("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",Ce,Ce,Ce),Ua[Ce]=!0)}Fa(F,c,h,y),Rc(d,s,F,c,h)}else if(jl(c),W){var Ye=s.treeContext,at=1,It=0;s.treeContext=mc(Ye,at,It);try{oi(d,s,F)}finally{s.treeContext=Ye}}else oi(d,s,F);Yi(s)}function jl(d){{if(d&&d.childContextTypes&&i("%s(...): childContextTypes cannot be defined on a function component.",d.displayName||d.name||"Component"),typeof d.getDerivedStateFromProps=="function"){var s=ln(d)||"Unknown";Is[s]||(i("%s: Function components do not support getDerivedStateFromProps.",s),Is[s]=!0)}if(typeof d.contextType=="object"&&d.contextType!==null){var c=ln(d)||"Unknown";Ic[c]||(i("%s: Function components do not support contextType.",c),Ic[c]=!0)}}}function Bl(d,s){if(d&&d.defaultProps){var c=ki({},s),h=d.defaultProps;for(var y in h)c[y]===void 0&&(c[y]=h[y]);return c}return s}function Au(d,s,c,h,y){za(s,c.render);var M=Rs(d,s,c.render,h,y),F=di();if(F){var W=s.treeContext,ie=1,Ce=0;s.treeContext=mc(W,ie,Ce);try{oi(d,s,M)}finally{s.treeContext=W}}else oi(d,s,M);Yi(s)}function Hl(d,s,c,h,y){var M=c.type,F=Bl(M,h);Wa(d,s,M,F,y)}function Oi(d,s,c,h){c._context===void 0?c!==c.Consumer&&(Di||(Di=!0,i("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):c=c._context;var y=h.children;typeof y!="function"&&i("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.");var M=sa(c),F=y(M);oi(d,s,F)}function Tn(d,s,c,h){var y=c._context,M=h.value,F=h.children,W;W=s.context,s.context=hc(y,M),oi(d,s,F),s.context=ff(y),W!==s.context&&i("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function Dc(d,s,c,h,y){uo(s,"Lazy");var M=c._payload,F=c._init,W=F(M),ie=Bl(W,h);Wa(d,s,W,ie,y),Yi(s)}function Wa(d,s,c,h,y){if(typeof c=="function")if(kc(c)){Fl(d,s,c,h);return}else{_f(d,s,c,h);return}if(typeof c=="string"){Ec(d,s,c,h);return}switch(c){case bl:case Bi:case ye:case Ue:case Ao:{oi(d,s,h.children);return}case bn:{uo(s,"SuspenseList"),oi(d,s,h.children),Yi(s);return}case uu:throw new Error("ReactDOMServer does not yet support scope components.");case Pr:{Cu(d,s,h);return}}if(typeof c=="object"&&c!==null)switch(c.$$typeof){case or:{Au(d,s,c,h,y);return}case Wr:{Hl(d,s,c,h,y);return}case Ne:{Tn(d,s,c,h);return}case Nt:{Oi(d,s,c,h);return}case Js:{Dc(d,s,c,h);return}}var M="";throw(c===void 0||typeof c=="object"&&c!==null&&Object.keys(c).length===0)&&(M+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(c==null?c:typeof c)+"."+M))}function ql(d,s){typeof Symbol=="function"&&d[Symbol.toStringTag]==="Generator"&&(wu||i("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),wu=!0),d.entries===s&&(Mc||i("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Mc=!0)}function oi(d,s,c){try{return Oc(d,s,c)}catch(h){throw typeof h=="object"&&h!==null&&typeof h.then=="function"||(ha=ha!==null?ha:Ki()),h}}function Oc(d,s,c){if(s.node=c,typeof c=="object"&&c!==null){switch(c.$$typeof){case cu:{var h=c,y=h.type,M=h.props,F=h.ref;Wa(d,s,y,M,F);return}case yl:throw new Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");case Js:{var W=c,ie=W._payload,Ce=W._init,Ye;try{Ye=Ce(ie)}catch(po){throw typeof po=="object"&&po!==null&&typeof po.then=="function"&&uo(s,"Lazy"),po}oi(d,s,Ye);return}}if($t(c)){Pc(d,s,c);return}var at=Wo(c);if(at){ql(c,at);var It=at.call(c);if(It){var tr=It.next();if(!tr.done){var Dr=[];do Dr.push(tr.value),tr=It.next();while(!tr.done);Pc(d,s,Dr);return}return}}var Wn=Object.prototype.toString.call(c);throw new Error("Objects are not valid as a React child (found: "+(Wn==="[object Object]"?"object with keys {"+Object.keys(c).join(", ")+"}":Wn)+"). If you meant to render a collection of children, use an array instead.")}if(typeof c=="string"){var is=s.blockedSegment;is.lastPushedText=sn(s.blockedSegment.chunks,c,d.responseState,is.lastPushedText);return}if(typeof c=="number"){var ho=s.blockedSegment;ho.lastPushedText=sn(s.blockedSegment.chunks,""+c,d.responseState,ho.lastPushedText);return}typeof c=="function"&&i("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}function Pc(d,s,c){for(var h=c.length,y=0;y<h;y++){var M=s.treeContext;s.treeContext=mc(M,h,y);try{rs(d,s,c[y])}finally{s.treeContext=M}}}function zl(d,s,c){var h=s.blockedSegment,y=h.chunks.length,M=qa(d,y,null,h.formatContext,h.lastPushedText,!0);h.children.push(M),h.lastPushedText=!1;var F=Po(d,s.node,s.blockedBoundary,M,s.abortSet,s.legacyContext,s.context,s.treeContext);s.componentStack!==null&&(F.componentStack=s.componentStack.parent);var W=F.ping;c.then(W,W)}function rs(d,s,c){var h=s.blockedSegment.formatContext,y=s.legacyContext,M=s.context,F=null;F=s.componentStack;try{return oi(d,s,c)}catch(W){if(xc(),typeof W=="object"&&W!==null&&typeof W.then=="function"){zl(d,s,W),s.blockedSegment.formatContext=h,s.legacyContext=y,s.context=M,Yo(M),s.componentStack=F;return}else throw s.blockedSegment.formatContext=h,s.legacyContext=y,s.context=M,Yo(M),s.componentStack=F,W}}function No(d,s,c,h){var y=$a(d,h);if(s===null?pa(d,h):(s.pendingTasks--,s.forceClientRender||(s.forceClientRender=!0,s.errorDigest=y,Nl(s,h),s.parentFlushed&&d.clientRenderedBoundaries.push(s))),d.allPendingTasks--,d.allPendingTasks===0){var M=d.onAllReady;M()}}function xf(d){var s=this,c=d.blockedBoundary,h=d.blockedSegment;h.status=Es,ga(s,c,h)}function fo(d,s,c){var h=d.blockedBoundary,y=d.blockedSegment;if(y.status=Es,h===null)s.allPendingTasks--,s.status!==da&&(s.status=da,s.destination!==null&&_(s.destination));else{if(h.pendingTasks--,!h.forceClientRender){h.forceClientRender=!0;var M=c===void 0?new Error("The render was aborted by the server without a reason."):c;h.errorDigest=s.onError(M);{var F="The server did not finish this Suspense boundary: ";M&&typeof M.message=="string"?M=F+M.message:M=F+String(M);var W=Zi;Zi=d;try{Nl(h,M)}finally{Zi=W}}h.parentFlushed&&s.clientRenderedBoundaries.push(h)}if(h.fallbackAbortableTasks.forEach(function(Ce){return fo(Ce,s,c)}),h.fallbackAbortableTasks.clear(),s.allPendingTasks--,s.allPendingTasks===0){var ie=s.onAllReady;ie()}}}function ns(d,s){if(s.chunks.length===0&&s.children.length===1&&s.children[0].boundary===null){var c=s.children[0];c.id=s.id,c.parentFlushed=!0,c.status===co&&ns(d,c)}else{var h=d.completedSegments;h.push(s)}}function ga(d,s,c){if(s===null){if(c.parentFlushed){if(d.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");d.completedRootSegment=c}if(d.pendingRootTasks--,d.pendingRootTasks===0){d.onShellError=ks;var h=d.onShellReady;h()}}else if(s.pendingTasks--,!s.forceClientRender){if(s.pendingTasks===0)c.parentFlushed&&c.status===co&&ns(s,c),s.parentFlushed&&d.completedBoundaries.push(s),s.fallbackAbortableTasks.forEach(xf,d),s.fallbackAbortableTasks.clear();else if(c.parentFlushed&&c.status===co){ns(s,c);var y=s.completedSegments;y.length===1&&s.parentFlushed&&d.partialBoundaries.push(s)}}if(d.allPendingTasks--,d.allPendingTasks===0){var M=d.onAllReady;M()}}function Nc(d,s){var c=s.blockedSegment;if(c.status===Ml){Yo(s.context);var h=null;h=Zi,Zi=s;try{oi(d,s,s.node),pn(c.chunks,d.responseState,c.lastPushedText,c.textEmbedded),s.abortSet.delete(s),c.status=co,ga(d,s.blockedBoundary,c)}catch(M){if(xc(),typeof M=="object"&&M!==null&&typeof M.then=="function"){var y=s.ping;M.then(y,y)}else s.abortSet.delete(s),c.status=xu,No(d,s.blockedBoundary,c,M)}finally{Zi=h}}}function Fc(d){if(d.status!==da){var s=hu(),c=Ll.current;Ll.current=Pn;var h;h=ua.getCurrentStack,ua.getCurrentStack=Ki;var y=Ts;Il(d.responseState);try{var M=d.pingedTasks,F;for(F=0;F<M.length;F++){var W=M[F];Nc(d,W)}M.splice(0,F),d.destination!==null&&si(d,d.destination)}catch(ie){$a(d,ie),pa(d,ie)}finally{Il(y),Ll.current=c,ua.getCurrentStack=h,c===Pn&&Yo(s)}}}function Va(d,s,c){switch(c.parentFlushed=!0,c.status){case Ml:{var h=c.id=d.nextSegmentId++;return c.lastPushedText=!1,c.textEmbedded=!1,Br(s,d.responseState,h)}case co:{c.status=Dl;for(var y=!0,M=c.chunks,F=0,W=c.children,ie=0;ie<W.length;ie++){for(var Ce=W[ie];F<Ce.index;F++)C(s,M[F]);y=$l(d,s,Ce)}for(;F<M.length-1;F++)C(s,M[F]);return F<M.length&&(y=b(s,M[F])),y}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function $l(d,s,c){var h=c.boundary;if(h===null)return Va(d,s,c);if(h.parentFlushed=!0,h.forceClientRender)return $n(s,d.responseState,h.errorDigest,h.errorMessage,h.errorComponentStack),Va(d,s,c),Ea(s,d.responseState);if(h.pendingTasks>0){h.rootSegmentID=d.nextSegmentId++,h.completedSegments.length>0&&d.partialBoundaries.push(h);var y=h.id=kn(d.responseState);return So(s,d.responseState,y),Va(d,s,c),Ai(s,d.responseState)}else{if(h.byteSize>d.progressiveChunkSize)return h.rootSegmentID=d.nextSegmentId++,d.completedBoundaries.push(h),So(s,d.responseState,h.id),Va(d,s,c),Ai(s,d.responseState);Wi(s,d.responseState);var M=h.completedSegments;if(M.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var F=M[0];return $l(d,s,F),Kr(s,d.responseState)}}function jc(d,s,c){return au(s,d.responseState,c.id,c.errorDigest,c.errorMessage,c.errorComponentStack)}function Ga(d,s,c){return ar(s,d.responseState,c.formatContext,c.id),$l(d,s,c),Gr(s,c.formatContext)}function Tu(d,s,c){for(var h=c.completedSegments,y=0;y<h.length;y++){var M=h[y];Bc(d,s,c,M)}return h.length=0,Ra(s,d.responseState,c.id,c.rootSegmentID)}function Eu(d,s,c){for(var h=c.completedSegments,y=0;y<h.length;y++){var M=h[y];if(!Bc(d,s,c,M))return y++,h.splice(0,y),!1}return h.splice(0,y),!0}function Bc(d,s,c,h){if(h.status===Dl)return!0;var y=h.id;if(y===-1){var M=h.id=c.rootSegmentID;if(M===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return Ga(d,s,h)}else return Ga(d,s,h),of(s,d.responseState,y)}function si(d,s){R();try{var c=d.completedRootSegment;c!==null&&d.pendingRootTasks===0&&($l(d,s,c),d.completedRootSegment=null,Jr(s,d.responseState));var h=d.clientRenderedBoundaries,y;for(y=0;y<h.length;y++){var M=h[y];jc(d,s,M)}h.splice(0,y);var F=d.completedBoundaries;for(y=0;y<F.length;y++){var W=F[y];Tu(d,s,W)}F.splice(0,y),S(s),R(s);var ie=d.partialBoundaries;for(y=0;y<ie.length;y++){var Ce=ie[y];if(!Eu(d,s,Ce)){d.destination=null,y++,ie.splice(0,y);return}}ie.splice(0,y);var Ye=d.completedBoundaries;for(y=0;y<Ye.length;y++){var at=Ye[y];Tu(d,s,at)}Ye.splice(0,y)}finally{S(s),d.allPendingTasks===0&&d.pingedTasks.length===0&&d.clientRenderedBoundaries.length===0&&d.completedBoundaries.length===0&&(d.abortableTasks.size!==0&&i("There was still abortable task at the root when we closed. This is a bug in React."),_(s))}}function Xi(d){u(function(){return Fc(d)})}function Sf(d,s){if(d.status===fa){d.status=da,L(s,d.fatalError);return}if(d.status!==da&&d.destination===null){d.destination=s;try{si(d,s)}catch(c){$a(d,c),pa(d,c)}}}function ku(d,s){try{var c=d.abortableTasks;c.forEach(function(h){return fo(h,d,s)}),c.clear(),d.destination!==null&&si(d,d.destination)}catch(h){$a(d,h),pa(d,h)}}function Ul(d,s){return new Promise(function(c,h){var y,M,F=new Promise(function(It,tr){M=It,y=tr});function W(){var It=new ReadableStream({type:"bytes",pull:function(tr){Sf(Ce,tr)},cancel:function(tr){ku(Ce)}},{highWaterMark:0});It.allReady=F,c(It)}function ie(It){F.catch(function(){}),h(It)}var Ce=Ol(d,Cn(s?s.identifierPrefix:void 0,s?s.nonce:void 0,s?s.bootstrapScriptContent:void 0,s?s.bootstrapScripts:void 0,s?s.bootstrapModules:void 0),hi(s?s.namespaceURI:void 0),s?s.progressiveChunkSize:void 0,s?s.onError:void 0,M,W,ie,y);if(s&&s.signal){var Ye=s.signal,at=function(){ku(Ce,Ye.reason),Ye.removeEventListener("abort",at)};Ye.addEventListener("abort",at)}Xi(Ce)})}Ad.renderToReadableStream=Ul,Ad.version=e}()),Ad}var Yv;function W4(){if(Yv)return Vl;Yv=1;var r,e;return process.env.NODE_ENV==="production"?(r=q4(),e=z4()):(r=$4(),e=U4()),Vl.version=r.version,Vl.renderToString=r.renderToString,Vl.renderToStaticMarkup=r.renderToStaticMarkup,Vl.renderToNodeStream=r.renderToNodeStream,Vl.renderToStaticNodeStream=r.renderToStaticNodeStream,Vl.renderToReadableStream=e.renderToReadableStream,Vl}var Y_=W4();const Ns=al(Y_);function Nf(r,e,t){return e!==void 0&&r<e?e:t!==void 0&&r>t?t:r}const Zc={_canvas:null,_cache:new Map,_fontCache:{value:"",timestamp:0},_charWidthMap:new Map,clearCache(){this._cache.clear(),this._canvas=null,this._fontCache={value:"",timestamp:0},this._charWidthMap.clear()},getDefaultFont(){const r=Date.now();if(this._fontCache.value&&r-this._fontCache.timestamp<3e5)return this._fontCache.value;try{const e=getComputedStyle(document.documentElement).getPropertyValue("--Font").trim()||"400 14px pretendard";return this._fontCache={value:e,timestamp:r},e}catch{return"400 14px pretendard"}},measureCharWidth(r,e){var i,l,u,f,g,m;const t=`${r}|${e}`;if(this._charWidthMap.has(t))return this._charWidthMap.get(t);try{this._canvas||(this._canvas=document.createElement("canvas"));const R=this._canvas.getContext("2d");if(R){R.font=e;const C=R.measureText(r).width;return this._charWidthMap.set(t,C),C}}catch{}let n;return r===" "?n=parseInt(((i=e.match(/(\d+)px/))==null?void 0:i[1])||"14")/3:/^[A-Z]$/.test(r)?n=parseInt(((l=e.match(/(\d+)px/))==null?void 0:l[1])||"14")*.67:/^[a-z]$/.test(r)?n=parseInt(((u=e.match(/(\d+)px/))==null?void 0:u[1])||"14")*.5:/^\d$/.test(r)?n=parseInt(((f=e.match(/(\d+)px/))==null?void 0:f[1])||"14")*.6:/^[.,;:!?]$/.test(r)?n=parseInt(((g=e.match(/(\d+)px/))==null?void 0:g[1])||"14")*.25:n=parseInt(((m=e.match(/(\d+)px/))==null?void 0:m[1])||"14")*.67,this._charWidthMap.set(t,n),n},extractTextFromNode(r){if(r==null)return"";if(typeof r=="string")return r;if(typeof r=="number"||typeof r=="boolean")return`${r}`;if(Array.isArray(r))return r.map(e=>this.extractTextFromNode(e)).join("");if(A.isValidElement(r))try{const t=Y_.renderToString(r).replace(/<[^>]*>/g,""),n=document.createElement("div");return n.innerHTML=t,n.textContent||""}catch{return r.props&&r.props.children?this.extractTextFromNode(r.props.children):""}return""},measureTextWidth(r,e){var l;if(!r)return 0;const t=e||this.getDefaultFont(),n=`${r}|${t}`,i=this._cache.get(n);if(i!==void 0)return i;try{this._canvas||(this._canvas=document.createElement("canvas"));const u=this._canvas.getContext("2d");if(u){u.font=t;const f=u.measureText(r),g=Math.ceil(f.width);return this._cache.size>=300&&[...this._cache.keys()].slice(0,50).forEach(R=>this._cache.delete(R)),this._cache.set(n,g),g}}catch{}try{const u=document.createElement("span");u.style.font=t,u.style.position="absolute",u.style.visibility="hidden",u.style.whiteSpace="nowrap",u.textContent=r,document.body.appendChild(u);const f=Math.ceil(u.getBoundingClientRect().width);return document.body.removeChild(u),this._cache.set(n,f),f}catch{}try{let u=0;for(let g=0;g<r.length;g++)u+=this.measureCharWidth(r[g],t);u*=.95;const f=Math.ceil(u);return this._cache.set(n,f),f}catch{}try{const u=parseInt(((l=t.match(/(\d+)px/))==null?void 0:l[1])||"14");let f=0;for(let m=0;m<r.length;m++){const R=r[m];R===" "?f+=.33:/^[A-Z]$/.test(R)?f+=.67:/^[a-z]$/.test(R)?f+=.5:/^\d$/.test(R)?f+=.6:/^[.,;:!?]$/.test(R)?f+=.25:f+=.67}const g=Math.ceil(f*u);return this._cache.set(n,g),g}catch{const f=r.length*10;return this._cache.set(n,f),f}},measureTextWithElementStyle(r,e){if(!e)return 0;try{const t=window.getComputedStyle(r),n=t.getPropertyValue("--Font").trim()||`${t.fontWeight} ${t.fontSize} ${t.fontFamily}`;return this.measureTextWidth(e,n)}catch{return this.measureTextWidth(e)}},measureReactNodeWidth(r){const e=this.extractTextFromNode(r);return this.measureTextWidth(e)},measureRenderedOptionWidth(r,e){if(r==null)return 0;const t=e(r),n=this.extractTextFromNode(t);return this.measureTextWidth(n)},calculateOptimalSelectWidth({elementRef:r,options:e=[],selectedOption:t=null,selectedOptions:n=[],placeholder:i="",optionRenderer:l,type:u="Primary",isMulti:f=!1}){if(!r.current)return 200;try{let g=0;if(e&&e.length>0){const S=[...e.length>0?[e[0]]:[],...e.length>1?[e[e.length-1]]:[],...e.length>10?Array.from({length:8},(D,E)=>e[Math.floor(E*e.length/8)]):e,...e.length>20?Array.from({length:5},()=>e[Math.floor(Math.random()*e.length)]):[]],_=Array.from(new Set(S.filter(Boolean)));for(const D of _){if(!D)continue;const E=this.measureRenderedOptionWidth(D,l);g=Math.max(g,E)}}let m=0;if(!f&&t)m=this.measureRenderedOptionWidth(t,l);else if(f&&n&&n.length){if(n.length===1)m=this.measureRenderedOptionWidth(n[0],l);else if(m=this.measureTextWidth(`${n.length} selected`),n.length>0){let S=0;for(const _ of n){const D=this.measureRenderedOptionWidth(_,l);S=Math.max(S,D)}m=Math.max(m,S)}}let R=0;i&&(R=this.measureReactNodeWidth(i));const b=Math.max(g,m,R,50);if(r.current){const S=window.getComputedStyle(r.current),_=parseFloat(S.paddingLeft||"0")+parseFloat(S.paddingRight||"0"),D=parseFloat(S.borderLeftWidth||"0")+parseFloat(S.borderRightWidth||"0"),E=u==="Primary"?30:20,x=f?24:0,L=Math.ceil(b*.05)+10;return Math.ceil(b+_+D+E+x+L)}return b+60}catch{return 200}}};var yi=(r=>(r.N="North",r.S="South",r.E="East",r.W="West",r))(yi||{}),ef=(r=>(r.N="North",r.NW="NorthWest",r.NE="NorthEast",r.S="South",r.SW="SouthWest",r.SE="SouthEast",r.E="East",r.EN="EastNorth",r.ES="EastSouth",r.W="West",r.WN="WestNorth",r.WS="WestSouth",r))(ef||{});function fm(r,e,t,n){if(!r.current||!e.current)return;const i=r.current.getBoundingClientRect(),l=e.current.getBoundingClientRect();let u={bottom:void 0,left:void 0,right:void 0,top:void 0};switch(t){case"North":u=l?{bottom:window.innerHeight-i.top,left:i.left+i.width/2-l.width/2}:{bottom:window.innerHeight-i.top,left:i.left};break;case"NorthWest":u={bottom:window.innerHeight-i.top,left:i.left};break;case"NorthEast":u={bottom:window.innerHeight-i.top,right:window.innerWidth-i.left-i.width};break;case"South":u=l?{top:i.bottom,left:i.left+i.width/2-l.width/2}:{top:i.bottom,left:i.left};break;case"SouthWest":u={top:i.bottom,left:i.left};break;case"SouthEast":u={top:i.bottom,right:window.innerWidth-i.left-i.width};break;case"East":u=l?{top:i.top+i.height/2-l.height/2,left:i.right}:{top:i.top,left:i.right};break;case"EastNorth":u={bottom:window.innerHeight-i.top-i.height,left:i.right};break;case"EastSouth":u={top:i.top,left:i.right};break;case"West":u=l?{top:i.top+i.height/2-l.height/2,right:window.innerWidth-i.left}:{top:i.top,right:window.innerWidth-i.left};break;case"WestNorth":u={bottom:window.innerHeight-i.top-i.height,right:window.innerWidth-i.left};break;case"WestSouth":u={top:i.top,right:window.innerWidth-i.left};break;default:u={top:i.top,left:i.left}}n&&(n.x&&u.left&&(u.left+=n.x),n.y&&u.top&&(u.top+=n.y)),u=J_(u,l),e.current.style.top=u.top+"px",e.current.style.left=u.left+"px",e.current.style.bottom=u.bottom+"px",e.current.style.right=u.right+"px"}function X_(r,e,t,n){if(!r)return;const i=e instanceof HTMLElement?e:e==null?void 0:e.current;if(!i)return;const l=r.getBoundingClientRect(),u=i.getBoundingClientRect();let f={bottom:void 0,left:void 0,right:void 0,top:void 0};switch(t){case"North":f=u?{bottom:window.innerHeight-l.top,left:l.left+l.width/2-u.width/2}:{bottom:window.innerHeight-l.top,left:l.left};break;case"NorthWest":f={bottom:window.innerHeight-l.top,left:l.left};break;case"NorthEast":f={bottom:window.innerHeight-l.top,right:window.innerWidth-l.left-l.width};break;case"South":f=u?{top:l.bottom,left:l.left+l.width/2-u.width/2}:{top:l.bottom,left:l.left};break;case"SouthWest":f={top:l.bottom,left:l.left};break;case"SouthEast":f={top:l.bottom,right:window.innerWidth-l.left-l.width};break;case"East":f=u?{top:l.top+l.height/2-u.height/2,left:l.right}:{top:l.top,left:l.right};break;case"EastNorth":f={bottom:window.innerHeight-l.top-l.height,left:l.right};break;case"EastSouth":f={top:l.top,left:l.right};break;case"West":f=u?{top:l.top+l.height/2-u.height/2,right:window.innerWidth-l.left}:{top:l.top,right:window.innerWidth-l.left};break;case"WestNorth":f={bottom:window.innerHeight-l.top-l.height,right:window.innerWidth-l.left};break;case"WestSouth":f={top:l.top,right:window.innerWidth-l.left};break;default:f={top:l.top,left:l.left}}return n&&(n.x&&f.left&&(f.left+=n.x),n.y&&f.top&&(f.top+=n.y)),f=J_(f,u),i.style.top=f.top+"px",i.style.left=f.left+"px",i.style.bottom=f.bottom+"px",i.style.right=f.right+"px",f}function J_(r,e,t=10){return r.left&&r.left<t&&(r.left=t),r.right&&r.right<t&&(r.right=t),r.top&&r.top<t&&(r.top=t),r.bottom&&r.bottom<t&&(r.bottom=t),r.left&&e&&r.left+e.width>window.innerWidth-t&&(r.left=window.innerWidth-e.width-t),r.right&&e&&r.right+e.width>window.innerWidth-t&&(r.right=window.innerWidth-e.width-t),r.top&&e&&r.top+e.height>window.innerHeight-t&&(r.top=window.innerHeight-e.height-t),r.bottom&&e&&r.bottom+e.height>window.innerHeight-t&&(r.bottom=window.innerHeight-e.height-t),r}function Gc(){const r={preventDefault:!1};return{event:r,e:{preventDefault:()=>r.preventDefault=!0}}}const V4="_Tooltip_3l8se_1",G4="_Arrow_3l8se_17",Xv={Tooltip:V4,Arrow:G4},Q_=r=>{const{tooltip:e,targetRef:t,delay:n=0,distance:i=10,direction:l=yi.S}=r,[u,f]=A.useState(!1),g=A.useRef(null),m=A.useRef(null),R=A.useRef(),C=A.useCallback(()=>{f(!0),R.current&&(clearTimeout(R.current),R.current=void 0);const D=setTimeout(()=>Jv(t,g,m,i,l),n);R.current=D},[t,n,i,l]),b=A.useCallback(()=>f(!1),[]);A.useEffect(()=>{const D=t.current;if(D)return D.addEventListener("mouseenter",C),D.addEventListener("mouseleave",b),()=>{D.removeEventListener("mouseenter",C),D.removeEventListener("mouseleave",b)}},[t,b,C]);const S=A.useCallback(()=>{Jv(t,g,m,i,l)},[t,i,l]);A.useEffect(()=>{if(!t.current||!g.current||!u)return;const D=t.current.parentElement;let E=D;for(;E;)E.addEventListener("scroll",S),E=E.parentElement;return()=>{let x=D;for(;x;)x.removeEventListener("scroll",S),x=x.parentElement}},[t,S,u]),A.useEffect(()=>{S()},[e,S]);const _=A.useMemo(()=>{switch(typeof e){case"boolean":return!0;case"string":return e==="";case"number":return!1;default:return!e}},[e]);return!u||_?null:Hs.createPortal(v.jsxs("div",{className:Fe.clsx(Xv.Tooltip,"NoSelect"),ref:g,children:[e,v.jsx("div",{ref:m,className:Xv.Arrow})]}),document.body)},Td="5px solid var(--ATooltip_background-color)";function Jv(r,e,t,n,i=yi.S){if(!r.current||!e.current||!t.current)return;const l=Z4(r.current,e.current,n,i);if(!l)return;const{left:u,top:f,arrowDir:g,arrow:m}=l;e.current.style.left=`${u}px`,e.current.style.top=`${f}px`,e.current.style.visibility="visible",e.current.style.opacity="1",t.current.style.border="5px solid transparent",g===yi.N?(t.current.style.top="-9px",t.current.style.left=`calc(50% - 5px + ${m.left??0}px)`,t.current.style.borderBottom=Td):g===yi.S?(t.current.style.top="100%",t.current.style.left=`calc(50% - 5px + ${m.left??0}px)`,t.current.style.borderTop=Td):g===yi.W?(t.current.style.top=`calc(50% - 5px + ${m.top??0}px)`,t.current.style.left="-9px",t.current.style.borderRight=Td):g===yi.E&&(t.current.style.top=`calc(50% - 5px + ${m.top??0}px)`,t.current.style.left="100%",t.current.style.borderLeft=Td)}const Gl=5;function Z4(r,e,t,n){const i=r.getBoundingClientRect(),l=e.getBoundingClientRect();function u(){if(window.innerHeight-i.bottom>l.height+t){const R=i.bottom+t,C=i.left+(i.width-l.width)/2,b=Nf(C,Gl,window.innerWidth-Gl-l.width),S=yi.N;return{left:b,top:R,arrowDir:S,arrow:{left:C-b}}}}function f(){if(i.top>l.height+t){const R=i.top-l.height-t,C=i.left+(i.width-l.width)/2,b=Nf(C,Gl,window.innerWidth-Gl-l.width),S=yi.S;return{left:b,top:R,arrowDir:S,arrow:{left:C-b}}}}function g(){if(window.innerWidth-i.right>l.width+t){const R=i.right+t,C=i.top+(i.height-l.height)/2,b=Nf(C,Gl,window.innerHeight-Gl-l.height),S=yi.W;return{left:R,top:b,arrowDir:S,arrow:{top:C-b}}}}function m(){if(i.left>l.width+t){const R=i.left-l.width-t,C=i.top+(i.height-l.height)/2,b=Nf(C,Gl,window.innerHeight-Gl-l.height),S=yi.E;return{left:R,top:b,arrowDir:S,arrow:{top:C-b}}}}if(n===yi.E)return g()||m()||u()||f();if(n===yi.S)return u()||f()||g()||m();if(n===yi.W)return m()||g()||u()||f();if(n===yi.N)return f()||u()||g()||m()}const K4="_ABase_xbi52_1",Y4="_UseDimming_xbi52_6",X4="_Dimmer_xbi52_6",J4="_Spinner_xbi52_9",Q4="_Dimmed_xbi52_12",e5="_IsDimmed_xbi52_33",t5="_IsLoading_xbi52_38",r5="_IsDisabled_xbi52_43",Rf={ABase:K4,UseDimming:Y4,Dimmer:X4,Spinner:J4,Dimmed:Q4,IsDimmed:e5,IsLoading:t5,IsDisabled:r5},$r=r=>{const{children:e,abaseRef:t,isDisabled:n,isLoading:i,isDimmed:l,tooltip:u,tooltipDistance:f=10,tooltipDelay:g=0,tooltipDirection:m=yi.S,...R}=r,C=A.useRef(null),b=A.useMemo(()=>t??C,[t]),S=A.useMemo(()=>typeof n=="string"&&n!==""?n:u!==void 0?u:"",[n,u]),_=A.useMemo(()=>n||i||l,[n,i,l]),D=A.useMemo(()=>n!==void 0||i!==void 0||l!==void 0,[n,i,l]);return v.jsxs("div",{...R,className:Fe.clsx(R.className,Rf.ABase,D&&Rf.UseDimming,_&&Rf.Dimmed),ref:b,children:[e,D&&v.jsx("div",{className:Fe.sclsx(Rf,"Dimmer",n&&"IsDisabled",i&&"IsLoading",l&&"IsDimmed")}),i&&v.jsx("div",{className:Fe.sclsx(Rf,"Spinner",n&&"IsDisabled",i&&"IsLoading"),children:v.jsx(jr,{icon:"Spinner"})}),v.jsx(Q_,{tooltip:S,delay:g,distance:f,direction:m,targetRef:b})]})},n5="_AButton_vulhu_1",i5="_Primary_vulhu_14",o5="_Secondary_vulhu_19",s5="_Alter_vulhu_24",a5="_AIconButton_vulhu_30",l5="_AThemeButton_vulhu_71",Zf={AButton:n5,Primary:i5,Secondary:o5,Alter:s5,AIconButton:a5,AThemeButton:l5},c5=["Primary","Secondary","Alter","Raw"],Fi=r=>{const{type:e="Primary",onClick:t,noInteractive:n,...i}=r,l=A.useMemo(()=>i.isDisabled||i.isLoading,[i.isDisabled,i.isLoading]),u=A.useCallback(f=>{l||t==null||t(f)},[l,t]);return v.jsx($r,{...i,className:Fe.clsx(i.className,Zf.AButton,e!=="Raw"&&Zf[e],"IsClickable",!l&&!n&&"IsInteractive"),onClick:u})},u5=["Primary","Secondary","Raw"],_i=r=>{const{icon:e,iconSize:t,type:n="Primary",onClick:i,isDisabled:l,isLoading:u,tooltip:f,className:g,...m}=r,R=A.useMemo(()=>l||u,[l,u]),C=A.useCallback(S=>{R||i==null||i(S)},[R,i]),b=A.useMemo(()=>um.includes(e)?v.jsx(jr,{icon:e,size:t}):e,[e,t]);return v.jsx($r,{className:Fe.clsx(Zf.AIconButton,!l&&!u&&"IsClickable",n!=="Raw"&&Zf[n],g),onClick:C,isDisabled:l,isLoading:u,tooltip:f,...m,children:b})};function nn(r,e){r!==void 0&&r.length===1&&(e=r[0]);const t=A.useState(e);return A.useMemo(()=>r===void 0||r.length===1?t:r,[t,r])}const f5={Ok:"Ok",Cancel:"Cancel"},d5={"select n":r=>v.jsxs(v.Fragment,{children:["Select ",r]}),"deselect n":r=>v.jsxs(v.Fragment,{children:["Deselect ",r]}),"Search(Placeholder)":"Search","Search(Button)":"Search",Items:"Items","*Click row for single select":"*Click row for single select","*Change order to row drag":"*Change order to row drag","Loading Contents...":"Loading Contents..."},h5={weekDays:r=>["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][r],months:r=>["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][r],"Select Date":"Select Date"},p5={weekDays:r=>["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][r],months:r=>["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][r],"Select DateRange":"Select DateRange","1일":"1 Day","1주일":"1 Week","1개월":"1 Month","3개월":"3 Months"},g5={"drop file to select":"Drop file to select","or Drag & Drop":"or Drag & Drop","Select File":"Select File"},m5={"Checked n items":r=>v.jsxs(v.Fragment,{children:["Checked ",r," items"]}),"Searched n items":r=>v.jsxs(v.Fragment,{children:["Searched ",r," items"]}),"Total n items":r=>v.jsxs(v.Fragment,{children:["Total ",r," items"]}),"Sort by x":r=>v.jsxs(v.Fragment,{children:["Sort by ",r]}),"Sort up":"Sort up","Sort down":"Sort down",Asc:"Asc",Desc:"Desc","Search(Placeholder)":"Search","Search(Button)":"Search","Clear(Button)":"Clear",Select:"Select","Toggle Filter":"Toggle Filter","No Items":"No Items"},v5={"Select(Placeholder)":"Select"},y5={"Select(Placeholder)":"Select"},b5={"Insert Column Right":"Insert Column Right","Insert Column Left":"Insert Column Left","Insert Row Top":"Insert Row Top","Insert Row Bottom":"Insert Row Bottom","Delete Column":"Delete Column","Delete Row":"Delete Row","Delete Table":"Delete Table","Image size adjust":"Image size adjust",Center:"Center",floatLeft:"Left",floatRight:"Right","Input on mouse down":"Input on mouse down",Restore:"Restore","Right click to open properties":"Right click to open properties",Default:"Default"},_5={Asterisk:"Required field"},x5={Delete:"Delete","Fail Download":"Fail Download",Download:"Download","Drop file to select":"Drop file to select","Insert File":"Insert File","Download All":"Download All","Delete All":"Delete All","Unsupported file format detected.":"Unsupported file format detected.","Invalid file(s)":"Invalid file(s)","Supported file format(s)":"Supported file format(s)",and:"and","more file(s)":"more file(s)"},hn={ADialog:f5,ATree:d5,ADatePicker:h5,ADateRangePicker:p5,AFileBox:g5,ATable:m5,ASelect:v5,AMultiSelect:y5,AEditor:b5,AWrap:_5,AFileUploader:x5};function S5(r,e){er.keys(e).forEach(t=>{r[t]=e[t]})}const C5=(r,e)=>{S5(hn[r],e)},w5="_AWrap_16uyn_1",A5="_Label_16uyn_8",T5="_Asterisk_16uyn_19",E5="_HelperTextConatiner_16uyn_23",k5="_HelperText_16uyn_23",Du={AWrap:w5,Label:A5,Asterisk:T5,HelperTextConatiner:E5,HelperText:k5,Error:"_Error_16uyn_38"},R5=["Default","Error"],ec=r=>{const{wrapProps:e,errorMessage:t,helperText:n,wrapType:i="Default",label:l,labelProps:u,children:f}=r,g=A.useRef(null),[m,R]=A.useState({height:0}),C=A.useRef(null),[b,S]=A.useMemo(()=>{let D=n,E=i;if(Array.isArray(t)){const x=t.filter(Boolean);x.length>0&&([D,E]=[x,"Error"])}else t&&([D,E]=[t,"Error"]);return Array.isArray(D)&&(E!=="Error"&&(D=D.filter(Boolean)),D=D.map((x,L)=>v.jsxs(A.Fragment,{children:[x,v.jsx("br",{})]},L))),[D,E]},[n,t,i]);A.useEffect(()=>{if(!b||!g.current)R({height:0});else{const D=g.current.getBoundingClientRect();R({height:D.height,marginTop:D.height===0?0:6})}},[b]);const _=A.useMemo(()=>{switch(typeof(u==null?void 0:u.prefix)){case"string":return v.jsx(jr,{width:"1rem",height:"1rem",icon:u.prefix});case"boolean":return v.jsx(jr,{width:10,height:10,icon:"Target"});default:return u==null?void 0:u.prefix}},[u==null?void 0:u.prefix]);return v.jsxs("div",{...e,className:Fe.clsx(e==null?void 0:e.className,Du.AWrap),ref:C,children:[l&&v.jsxs("div",{className:Fe.clsx(Du.Label,"NoSelect",u==null?void 0:u.className),style:u==null?void 0:u.style,children:[_,l,(u==null?void 0:u.asterisk)&&v.jsx($r,{tooltip:hn.AWrap.Asterisk,className:Du.Asterisk,children:"*"})]}),f,b!==void 0&&v.jsx("div",{className:Fe.clsx(Du.HelperTextConatiner,"NoSelect"),style:m,children:v.jsx("div",{className:Fe.clsx(Du.HelperText,Du[S]),ref:g,children:b})})]})},I5="_ASwitch_1uv2e_1",L5="_Track_1uv2e_6",M5="_Truthy_1uv2e_13",D5="_Thumb_1uv2e_17",If={ASwitch:I5,Track:L5,Truthy:M5,Thumb:D5},e2=r=>{const{wrapProps:e,helperText:t,label:n,useCheck:i,...l}=r,[u,f]=nn(i,!1),g=A.useCallback(m=>{var R;l.isDisabled||l.isLoading||(f==null||f(!u),(R=l.onClick)==null||R.call(l,m))},[l,u,f]);return v.jsx(ec,{helperText:t,label:n,wrapProps:{...e},children:v.jsx($r,{...l,className:If.ASwitch,onClick:g,children:v.jsx("div",{className:Fe.clsx(If.Track,u&&If.Truthy),children:v.jsx("div",{className:Fe.clsx(If.Thumb,u&&If.Truthy)})})})})},O5={palette:{"mode-1":{"common-100":"#ffffff","common-0":"#000000","neutral-99":"#fcfcfc","neutral-94":"#efefef","neutral-89":"#e2e2e2","neutral-84":"#d6d6d6","neutral-79":"#c9c9c9","neutral-73":"#bababa","neutral-65":"#a5a5a5","neutral-54":"#898989","neutral-42":"#6b6b6b","neutral-30":"#4c4c4c","neutral-20":"#333333","neutral-15":"#2c2c2c","neutral-10":"#191919","neutral-5":"#0c0c0c","cool-neutral-99":"#fcfcfc","cool-neutral-94":"#efeff0","cool-neutral-89":"#e1e2e4","cool-neutral-84":"#d4d5d7","cool-neutral-79":"#c7c8cb","cool-neutral-73":"#b7b9bc","cool-neutral-65":"#a2a4a9","cool-neutral-54":"#85888e","cool-neutral-42":"#66696f","cool-neutral-30":"#494b4f","cool-neutral-20":"#303235","cool-neutral-10":"#18191a","cool-neutral-5":"#0c0c0c","red-99":"#fff9f9","red-95":"#ffe5e5","red-90":"#ffcccc","red-84":"#ffadad","red-76":"#ff8484","red-66":"#ff5151","red-53":"#ff0f0f","red-45":"#e50000","red-34":"#a80000","red-30":"#990000","red-24":"#7a0000","red-10":"#330000","green-99":"#fafffa","green-95":"#e5ffe8","green-90":"#ccffd1","green-84":"#adffb6","green-76":"#84ff90","green-66":"#51ff62","green-48":"#00f418","green-45":"#00e517","green-34":"#00a810","green-30":"#00990f","green-24":"#007a0c","green-10":"#003305","blue-99":"#fafdff","blue-95":"#e5f3ff","blue-90":"#cce6ff","blue-84":"#add7ff","blue-76":"#84c3ff","blue-66":"#51abff","blue-53":"#0f8bff","blue-45":"#0077e5","blue-34":"#0056a8","blue-30":"#004f99","blue-24":"#003f7a","blue-10":"#001a33","orange-99":"#fffcfa","orange-95":"#ffefe5","orange-90":"#ffdecc","orange-84":"#ffcbad","orange-76":"#ffb184","orange-66":"#ff9151","orange-53":"#ff670f","orange-45":"#e55400","orange-34":"#a83d00","orange-30":"#993800","orange-24":"#7a2c00","orange-10":"#331200","violet-99":"#fcfaff","violet-95":"#eee5ff","violet-90":"#dcccff","violet-84":"#c7adff","violet-76":"#ab84ff","violet-66":"#8852ff","violet-53":"#5b0fff","violet-45":"#4900e5","violet-34":"#3500a8","violet-28":"#2d008e","violet-24":"#26007a","violet-10":"#100033","cyan-99":"#faffff","cyan-95":"#e5fdff","cyan-90":"#ccfbff","cyan-84":"#adf9ff","cyan-76":"#84f6ff","cyan-66":"#51f3ff","cyan-50":"#00edff","cyan-45":"#00d6e5","cyan-40":"#00becc","cyan-30":"#008e99","cyan-21":"#00636b","cyan-10":"#002f33","pink-99":"#fffefa","pink-95":"#ffe5f5","pink-90":"#ffccea","pink-84":"#ffadde","pink-76":"#ff84ce","pink-66":"#ff51b9","pink-53":"#ff0f9f","pink-45":"#e5008a","pink-40":"#cc007a","pink-30":"#99005b","pink-21":"#6b0040","pink-10":"#33001e","lime-99":"#fcfffa","lime-95":"#eeffe5","lime-90":"#ddffcc","lime-84":"#c8ffad","lime-76":"#adff84","lime-66":"#8bff51","lime-49":"#53f900","lime-45":"#4ce500","lime-40":"#44cc00","lime-30":"#339900","lime-21":"#236b00","lime-10":"#113300","brand-b-color":"#386fff"}},semantic:{light:{"static-white":"common-100","static-black":"common-0","acent-brand":"brand-b-color","label-normal":"neutral-20","label-strong":"neutral-5","label-neutral":"neutral-73","line-normal":"neutral-79","line-strong":"neutral-65","line-neutral":"neutral-89","background-normal":"common-100","elevation-0":"common-100","elevation-10":"neutral-94","elevation-20":"neutral-73","alert-warning":"orange-53","alert-success":"green-45","alert-danger":"red-45","inverse-label-normal":"neutral-84","inverse-label-strong":"neutral-99","inverse-label-neutral":"neutral-30","inverse-line-normal":"neutral-30","inverse-line-strong":"neutral-54","inverse-line-neutral":"neutral-20","inverse-elevation-0":"neutral-5","inverse-elevation-10":"neutral-10","inverse-elevation-20":"neutral-15"},dark:{"static-white":"common-100","static-black":"common-0","acent-brand":"brand-b-color","label-normal":"neutral-84","label-strong":"neutral-99","label-neutral":"neutral-30","line-normal":"neutral-30","line-strong":"neutral-54","line-neutral":"neutral-20","background-normal":"neutral-5","elevation-0":"neutral-5","elevation-10":"neutral-10","elevation-20":"neutral-15","alert-warning":"orange-53","alert-success":"green-45","alert-danger":"red-45","inverse-label-normal":"neutral-20","inverse-label-strong":"neutral-5","inverse-label-neutral":"neutral-73","inverse-line-normal":"neutral-79","inverse-line-strong":"neutral-65","inverse-line-neutral":"neutral-89","inverse-elevation-0":"common-100","inverse-elevation-10":"neutral-94","inverse-elevation-20":"neutral-73"}}},xi=z_.cloneDeep(O5);er.keys(xi.semantic).forEach(r=>{const e=xi.semantic[r];er.keys(e).forEach(t=>{e[t]=`var(--${e[t]})`})});const oh=er.keys(xi.palette),t2=er.keys(xi.palette[oh[0]]);function P5(){return ai.paletteMode}function N5(r,e=ai.paletteMode){return xi.palette[e][r]}function F5(r){return ah(r)}const Zd=[];function r2(r){ai.paletteMode=r,t2.forEach(e=>document.documentElement.style.setProperty(`--${e}`,xi.palette[r][e])),Zd.forEach(e=>e(r))}function n2(r,e="all"){er.keys(r).forEach(n=>{const i=r[n];i!==void 0&&(document.documentElement.style.setProperty(`--${n}`,i),e==="all"?oh.forEach(l=>{xi.palette[l][n]=i}):xi.palette[e][n]=i)})}const Gu=er.keys(xi.semantic),i2=er.keys(xi.semantic[Gu[0]]);function j5(){return ai.semanticMode}function B5(r,e=ai.semanticMode){return xi.semantic[e][r]}function H5(r){return ah(r)}const Kd=[];function dm(r){ai.semanticMode=r,document.documentElement.setAttribute("data-theme",r),i2.forEach(e=>document.documentElement.style.setProperty(`--${e}`,xi.semantic[r][e])),Kd.forEach(e=>e(r)),ai.save==="localStorage"?localStorage.setItem("semanticMode",r):ai.save==="sessionStorage"&&sessionStorage.setItem("semanticMode",r)}function o2(r,e=ai.semanticMode){er.keys(r).forEach(n=>{const i=r[n];i!==void 0&&(document.documentElement.style.setProperty(`--${n}`,i),e==="all"?Gu.forEach(l=>{xi.semantic[l][n]=i}):xi.semantic[e][n]=i)})}const s2=["Body-background-color","Body-color","Body-transition","Font","Scrollbar-handle","Scrollbar-handle-hover","Scrollbar-handle-active","Scrollbar-track","Scrollbar-border-radius","Scrollbar-width","Transition"],a2=["ABase_Dimming_background-color"],l2=["ATooltip_background-color","ATooltip_color"],c2=["AButton_Primary_border","AButton_Primary_background-color","AButton_Primary_color","AButton_Secondary_border","AButton_Secondary_background-color","AButton_Secondary_color","AButton_Alter_border","AButton_Alter_background-color","AButton_Alter_color"],u2=["AInput_Primary_background-color","AInput_Primary_border","AInput_Primary_color","AInput_Primary_hover_border","AInput_Primary_focus_background-color","AInput_Primary_focus_border","AInput_Primary_placeholder_color","AInput_Secondary_background-color","AInput_Secondary_border","AInput_Secondary_color","AInput_Secondary_hover_border","AInput_Secondary_focus_border","AInput_Secondary_placeholder_color","AInput_ReadOnly_background-color","AInput_ReadOnly_border","AInput_ReadOnly_color","AInput_Error_HelperText_color","AInput_Error_background-color","AInput_Error_border","AInput_Error_color","AInput_Error_placeholder_color"],f2=["ATextArea_Primary_background-color","ATextArea_Primary_border","ATextArea_Primary_color","ATextArea_Primary_hover_border","ATextArea_Primary_focus_background-color","ATextArea_Primary_focus_border","ATextArea_Secondary_background-color","ATextArea_Secondary_border","ATextArea_Secondary_color","ATextArea_Secondary_hover_border","ATextArea_Secondary_focus_border","ATextArea_ReadOnly_background-color","ATextArea_ReadOnly_border","ATextArea_ReadOnly_color","ATextArea_Error_background-color","ATextArea_Error_border","ATextArea_Error_color","ATextArea_Error_placeholder_color"],d2=["AEditor_Primary_background-color","AEditor_Primary_border","AEditor_Primary_color","AEditor_Primary_hover_border","AEditor_Primary_focus_background-color","AEditor_Primary_focus_border","AEditor_ReadOnly_background-color","AEditor_ReadOnly_border","AEditor_ReadOnly_hover_border","AEditor_ReadOnly_focus_border","AEditor_ReadOnly_color","AEditor_Error_background-color","AEditor_Error_border","AEditor_Error_color","AEditor_Error_placeholder_color","AEditor_Addon_Primary_background-color","AEditor_Addon_Primary_border","AEditor_Addon_Primary_color","AEditor_Addon_Secondary_background-color","AEditor_Addon_Secondary_border","AEditor_Addon_Secondary_color","AEditor_Addon_hover_background-color","AEditor_Addon_hover_color","AEditor_Addon_focus_border","AEditor_border-radius","AEditor_Select_border-radius","AEditor_Option_border-radius"],h2=["ACheckBox_color"],p2=["ADialog_Paper_background-color","ADialog_background-color","ADialog_border","ADialog_Action_background-color"],g2=["ASelect_Placeholder_color","ASelect_Primary_border","ASelect_Primary_hover_border","ASelect_Primary_Arrow_color","ASelect_Primary_Options_background-color","ASelect_Primary_Options_border","ASelect_Primary_Option_hover_background-color","ASelect_Primary_Option_active_background-color","ASelect_Primary_Option_Selected_background-color","ASelect_Secondary_border","ASelect_Secondary_hover_border","ASelect_Secondary_background-color","ASelect_Secondary_Arrow_color","ASelect_Secondary_Options_background-color","ASelect_Secondary_Options_border","ASelect_Secondary_Option_hover_background-color","ASelect_Secondary_Option_active_background-color","ASelect_Secondary_Option_Selected_background-color"],m2=["AMultiSelect_Placeholder_color","AMultiSelect_Primary_border","AMultiSelect_Primary_hover_border","AMultiSelect_Primary_Arrow_color","AMultiSelect_Primary_Options_background-color","AMultiSelect_Primary_Options_border","AMultiSelect_Primary_Option_hover_background-color","AMultiSelect_Primary_Option_active_background-color","AMultiSelect_Primary_Option_Selected_background-color","AMultiSelect_Secondary_border","AMultiSelect_Secondary_hover_border","AMultiSelect_Secondary_background-color","AMultiSelect_Secondary_Arrow_color","AMultiSelect_Secondary_Options_background-color","AMultiSelect_Secondary_Options_border","AMultiSelect_Secondary_Option_hover_background-color","AMultiSelect_Secondary_Option_active_background-color","AMultiSelect_Secondary_Option_Selected_background-color"],v2=["ATree_background-color","ATree_Indent_border","ATreeBodyHeader_border-bottom","ATreeItem_hover_background-color","ATreeItem_active_background-color","ATreeItem_select_background-color","ATreeItem_search_background-color","ATreeItem_search_border-top","ATreeItem_search_border-bottom","ATreeItem_select_color"],y2=["ASwitch_Track_Falsy_border","ASwitch_Track_Truthy_border","ASwitch_Thumb_border"],b2=["ATab_IndicatorTrack_Primary_border-bottom","ATab_Indicator_Primary_background-color","ATab_Option_Secondary_border","ATab_Option_Secondary_IsSelected_border-bottom","ATab_Option_Secondary_IsDisabled_border","ATab_IndicatorTrack_Tertiary_background-color","ATab_Indicator_Tertiary_background-color","ATab_Option_Tertiary_color","ATab_Option_Tertiary_IsSelected_color","ATab_Option_Quaternary_color","ATab_Option_Quaternary_IsSelected_color"],_2=["AFileBox_border","AFileBox_background-color","AFileBox_SelectedFile_color","AFileBox_Dropping_color"],x2=["AListView_border-thin","AListView_border-thick"],S2=["AStepper_OutCircle_background-color","AStepper_OutCircle_IsOver_background-color","AStepper_InCircle_background-color","AStepper_InCircle_IsOver_background-color","AStepper_Line_background-color","AStepper_Line_IsOver_background-color"],C2=["ADatePicker_Anchor_border","ADatePicker_Anchor_color","ADatePicker_Anchor_Placeholder_color","ADatePicker_Anchor_hover_border","ADatePicker_Anchor_focus_border","ADatePicker_Anchor_Icon_Primary_color","ADatePicker_Anchor_Icon_Secondary_color","ADatePicker_background-color","ADatePicker_border","ADatePicker_StringInputContainer_background-color","ADatePicker_String_border","ADatePicker_Prev_background-color","ADatePicker_Prev_border-right","ADatePicker_Next_background-color","ADatePicker_Next_border-left","ADatePicker_Cell_color","ADatePicker_Cell_IsNotCurrentMonth_color","ADatePicker_Cell_IsDisabled_color","ADatePicker_Cell_IsSelected_background-color","ADatePicker_Cell_IsSelected_color","ADatePicker_Cell_IsHovered_background-color"],w2=["ADateRangePicker_Anchor_border","ADateRangePicker_Anchor_color","ADateRangePicker_Anchor_Placeholder_color","ADateRangePicker_Anchor_hover_border","ADateRangePicker_Anchor_focus_border","ADateRangePicker_Anchor_Icon_Primary_color","ADateRangePicker_Anchor_Icon_Secondary_color","ADateRangePicker_background-color","ADateRangePicker_border","ADateRangePicker_StringInputContainer_background-color","ADateRangePicker_String_border","ADateRangePicker_Prev_background-color","ADateRangePicker_Prev_border-right","ADateRangePicker_Next_background-color","ADateRangePicker_Next_border-left","ADateRangePicker_Cell_color","ADateRangePicker_Cell_IsNotCurrentMonth_color","ADateRangePicker_Cell_IsDisabled_color","ADateRangePicker_Cell_IsSelected_background-color","ADateRangePicker_Cell_IsSelected_color","ADateRangePicker_Cell_IsHovered_background-color"],A2=["AIconButton_Primary_color","AIconButton_Primary_border","AIconButton_Primary_background-color","AIconButton_Primary_hover_background-color","AIconButton_Primary_active_background-color","AIconButton_Secondary_color","AIconButton_Secondary_background-color","AIconButton_Secondary_hover_background-color","AIconButton_Secondary_active_background-color"],T2=["ATableBody_TRow_border-bottom","ATableBody_TRow_IsSelected_background-color","ATableBody_TRow_IsSelectable_hover_background-color","ATableBody_TH_color","ATableBody_TD_IsMarked_background-color","ATableBody_TD_IsMarked_color","ATableBody_Resizer_hover_ResizerCenter_background-color","ATableBody_Resizer_active_ResizerCenter_background-color","ATableBody_Resizer_active_ResizerOut_background-color","ATableBody_Resizer_active_ResizerIn_background-color","ATableFooter_Button_IsSelected_background-color","ATableFooter_Button_IsSelected_color","ATableFooter_Button_IsDisabled_color","ATableFilter_SubFilters_background-color","ATableFilter_SubFilters_border","ATableFilter_Icon_color","ATableFilter_Alert_color"],E2=["ADivideFrame_DividerInner_background-color"],k2=["AFloatMenu_background-color","AFloatMenu_hover_background-color","AFloatMenu_color","AFloatMenu_border"],R2=["ALoadingBorder_background-color","ALoadingBorder_ProgressBar_background-color","ALoadingBorder_Cover_background-color"],I2=["AWrap_Error_color"],L2=["ARadioSelect_RadioButton_border","ARadioSelect_RadioButton_InnerCircle_isChecked_background-color"],M2=["AChip_background-color","AChip_color","AChip_border","AChip_hover_background-color","AChip_hover_color","AChip_DeleteButton_border","AChip_DeleteButton_color","AChip_DeleteButton_hover_border","AChip_DeleteButton_hover_color"],q5=[...s2,...a2,...l2,...c2,...u2,...f2,...d2,...h2,...p2,...g2,...m2,...v2,...y2,...b2,..._2,...x2,...S2,...C2,...w2,...A2,...T2,...E2,...k2,...R2,...I2,...L2,...M2],sh={"Body-background-color":"var(--background-normal)","Body-color":"var(--label-normal)","Body-transition":"background-color var(--Transition), color var(--Transition)",Font:"400 16px pretendard","Scrollbar-handle":"var(--label-neutral)","Scrollbar-handle-hover":"var(--label-normal)","Scrollbar-handle-active":"var(--label-strong)","Scrollbar-track":"var(--elevation-10)","Scrollbar-border-radius":"6px","Scrollbar-width":"12px",Transition:"300ms","ABase_Dimming_background-color":"var(--elevation-0)","ATooltip_background-color":"var(--inverse-elevation-0)",ATooltip_color:"var(--inverse-label-strong)",AButton_Primary_border:"none","AButton_Primary_background-color":"var(--acent-brand)",AButton_Primary_color:"var(--static-white)",AButton_Secondary_border:"1px solid var(--elevation-10)","AButton_Secondary_background-color":"var(--elevation-10)",AButton_Secondary_color:"var(--label-normal)",AButton_Alter_border:"1px solid var(--line-normal)","AButton_Alter_background-color":"var(--elevation-0)",AButton_Alter_color:"var(--label-normal)","AInput_Primary_background-color":"var(--elevation-0)",AInput_Primary_border:"1px solid var(--line-normal)",AInput_Primary_color:"var(--label-normal)",AInput_Primary_hover_border:"1px solid var(--line-strong)","AInput_Primary_focus_background-color":"var(--elevation-10)",AInput_Primary_focus_border:"1px solid var(--line-strong)",AInput_Primary_placeholder_color:"var(--label-neutral)","AInput_Secondary_background-color":"var(--elevation-0)",AInput_Secondary_border:"1px solid var(--line-normal)",AInput_Secondary_color:"var(--label-normal)",AInput_Secondary_hover_border:"1px solid var(--line-strong)",AInput_Secondary_focus_border:"1px solid var(--line-strong)",AInput_Secondary_placeholder_color:"var(--label-neutral)","AInput_ReadOnly_background-color":"var(--elevation-10)",AInput_ReadOnly_border:"none",AInput_ReadOnly_color:"var(--label-normal)",AInput_Error_HelperText_color:"var(--alert-danger)","AInput_Error_background-color":"inherit",AInput_Error_border:"1px solid var(--line-normal)",AInput_Error_color:"var(--label-normal)",AInput_Error_placeholder_color:"var(--label-neutral)","ATextArea_Primary_background-color":"var(--elevation-0)",ATextArea_Primary_border:"1px solid var(--line-normal)",ATextArea_Primary_color:"var(--label-normal)",ATextArea_Primary_hover_border:"1px solid var(--line-strong)","ATextArea_Primary_focus_background-color":"var(--elevation-10)",ATextArea_Primary_focus_border:"1px solid var(--line-strong)","ATextArea_Secondary_background-color":"var(--elevation-0)",ATextArea_Secondary_border:"1px solid var(--line-normal)",ATextArea_Secondary_color:"var(--label-normal)",ATextArea_Secondary_hover_border:"1px solid var(--line-strong)",ATextArea_Secondary_focus_border:"1px solid var(--line-strong)","ATextArea_ReadOnly_background-color":"var(--elevation-10)",ATextArea_ReadOnly_border:"none",ATextArea_ReadOnly_color:"var(--label-normal)","ATextArea_Error_background-color":"inherit",ATextArea_Error_border:"1px solid var(--line-normal)",ATextArea_Error_color:"var(--label-normal)",ATextArea_Error_placeholder_color:"var(--label-neutral)","AEditor_Primary_background-color":"var(--elevation-0)",AEditor_Primary_border:"1px solid var(--line-normal)",AEditor_Primary_color:"var(--label-normal)",AEditor_Primary_hover_border:"1px solid var(--line-strong)","AEditor_Primary_focus_background-color":"var(--elevation-0)",AEditor_Primary_focus_border:"1px solid var(--line-strong)","AEditor_ReadOnly_background-color":"var(--elevation-0)",AEditor_ReadOnly_border:"1px solid var(--line-normal)",AEditor_ReadOnly_hover_border:"1px solid var(--line-strong)",AEditor_ReadOnly_focus_border:"1px solid var(--line-strong)",AEditor_ReadOnly_color:"var(--label-normal)","AEditor_Error_background-color":"inherit",AEditor_Error_border:"1px solid var(--alert-danger)",AEditor_Error_color:"var(--alert-danger)",AEditor_Error_placeholder_color:"var(--alert-danger)","AEditor_Addon_Primary_background-color":"var(--background-normal)",AEditor_Addon_Primary_border:"1px solid var(--line-normal)",AEditor_Addon_Primary_color:"var(--label-normal)","AEditor_Addon_Secondary_background-color":"var(--background-normal)",AEditor_Addon_Secondary_border:"1px solid var(--line-strong)",AEditor_Addon_Secondary_color:"var(--label-neutral)","AEditor_Addon_hover_background-color":"var(--elevation-10)",AEditor_Addon_hover_color:"var(--acent-brand)",AEditor_Addon_focus_border:"1px solid var(--line-strong)","AEditor_border-radius":"2px","AEditor_Select_border-radius":"6px","AEditor_Option_border-radius":"6px",ACheckBox_color:"var(--label-normal)","ADialog_Paper_background-color":"#00000060","ADialog_background-color":"var(--elevation-0)",ADialog_border:"1px solid var(--line-neutral)","ADialog_Action_background-color":"var(--elevation-0)",ASelect_Placeholder_color:"var(--label-neutral)",ASelect_Primary_border:"1px solid var(--line-normal)",ASelect_Primary_hover_border:"1px solid var(--line-strong)",ASelect_Primary_Arrow_color:"var(--label-normal)","ASelect_Primary_Options_background-color":"var(--elevation-0)",ASelect_Primary_Options_border:"1px solid var(--line-normal)","ASelect_Primary_Option_hover_background-color":"var(--elevation-10)","ASelect_Primary_Option_active_background-color":"var(--elevation-10)","ASelect_Primary_Option_Selected_background-color":"var(--elevation-20)",ASelect_Secondary_border:"1px solid var(--elevation-10)",ASelect_Secondary_hover_border:"1px solid var(--elevation-10)","ASelect_Secondary_background-color":"var(--elevation-10)",ASelect_Secondary_Arrow_color:"var(--label-normal)","ASelect_Secondary_Options_background-color":"var(--elevation-0)",ASelect_Secondary_Options_border:"var(--line-normal)","ASelect_Secondary_Option_hover_background-color":"var(--elevation-10)","ASelect_Secondary_Option_active_background-color":"var(--elevation-10)","ASelect_Secondary_Option_Selected_background-color":"var(--elevation-20)",AMultiSelect_Placeholder_color:"var(--label-neutral)",AMultiSelect_Primary_border:"1px solid var(--line-normal)",AMultiSelect_Primary_hover_border:"1px solid var(--line-strong)",AMultiSelect_Primary_Arrow_color:"var(--label-normal)","AMultiSelect_Primary_Options_background-color":"var(--elevation-0)",AMultiSelect_Primary_Options_border:"1px solid var(--line-normal)","AMultiSelect_Primary_Option_hover_background-color":"var(--elevation-10)","AMultiSelect_Primary_Option_active_background-color":"var(--elevation-10)","AMultiSelect_Primary_Option_Selected_background-color":"var(--elevation-20)",AMultiSelect_Secondary_border:"1px solid var(--elevation-10)",AMultiSelect_Secondary_hover_border:"1px solid var(--elevation-10)","AMultiSelect_Secondary_background-color":"var(--elevation-10)",AMultiSelect_Secondary_Arrow_color:"var(--label-normal)","AMultiSelect_Secondary_Options_background-color":"var(--elevation-0)",AMultiSelect_Secondary_Options_border:"1px solid var(--line-normal)","AMultiSelect_Secondary_Option_hover_background-color":"var(--elevation-10)","AMultiSelect_Secondary_Option_active_background-color":"var(--elevation-10)","AMultiSelect_Secondary_Option_Selected_background-color":"var(--elevation-20)","ATree_background-color":"var(--elevation-0)",ATree_Indent_border:"1px solid var(--line-normal)","ATreeBodyHeader_border-bottom":"1px solid var(--line-normal)","ATreeItem_hover_background-color":"var(--elevation-10)","ATreeItem_active_background-color":"var(--elevation-10)","ATreeItem_select_background-color":"var(--elevation-10)","ATreeItem_search_background-color":"yellow","ATreeItem_search_border-top":"1px dashed var(--label-normal)","ATreeItem_search_border-bottom":"1px dashed var(--label-normal)",ATreeItem_select_color:"var(--label-normal)",ASwitch_Track_Falsy_border:"12px solid var(--elevation-20)",ASwitch_Track_Truthy_border:"12px solid var(--acent-brand)",ASwitch_Thumb_border:"9px solid var(--static-white)","ATab_IndicatorTrack_Primary_border-bottom":"1px solid var(--line-normal)","ATab_Indicator_Primary_background-color":"var(--label-normal)",ATab_Option_Secondary_border:"2px solid var(--label-normal)","ATab_Option_Secondary_IsSelected_border-bottom":"2px solid var(--elevation-0)",ATab_Option_Secondary_IsDisabled_border:"2px solid var(--line-neutral)","ATab_IndicatorTrack_Tertiary_background-color":"var(--line-normal)","ATab_Indicator_Tertiary_background-color":"var(--elevation-0)",ATab_Option_Tertiary_color:"var(--line-strong)",ATab_Option_Tertiary_IsSelected_color:"var(--label-strong)",ATab_Option_Quaternary_color:"var(--label-neutral)",ATab_Option_Quaternary_IsSelected_color:"var(--label-normal)",AFileBox_border:"1px dashed var(--label-normal)","AFileBox_background-color":"var(--elevation-10)",AFileBox_SelectedFile_color:"var(--label-normal)",AFileBox_Dropping_color:"var(--label-normal)","AListView_border-thin":"1px solid var(--line-neutral)","AListView_border-thick":"3px solid var(--line-neutral)","AStepper_OutCircle_background-color":"transparent","AStepper_OutCircle_IsOver_background-color":"var(--elevation-10)","AStepper_InCircle_background-color":"var(--elevation-20)","AStepper_InCircle_IsOver_background-color":"var(--label-normal)","AStepper_Line_background-color":"var(--line-neutral)","AStepper_Line_IsOver_background-color":"var(--label-normal)",ADatePicker_Anchor_border:"1px solid var(--line-normal)",ADatePicker_Anchor_color:"var(--label-normal)",ADatePicker_Anchor_Placeholder_color:"var(--label-neutral)",ADatePicker_Anchor_hover_border:"1px solid var(--line-strong)",ADatePicker_Anchor_focus_border:"1px solid var(--line-strong)",ADatePicker_Anchor_Icon_Primary_color:"var(--label-normal)",ADatePicker_Anchor_Icon_Secondary_color:"var(--label-normal)","ADatePicker_background-color":"var(--elevation-0)",ADatePicker_border:"1px solid var(--line-neutral)","ADatePicker_StringInputContainer_background-color":"var(--label-neutral)",ADatePicker_String_border:"1px solid var(--label-normal)","ADatePicker_Prev_background-color":"var(--elevation-10)","ADatePicker_Prev_border-right":"6px solid var(--label-normal)","ADatePicker_Next_background-color":"var(--elevation-10)","ADatePicker_Next_border-left":"6px solid var(--label-normal)",ADatePicker_Cell_color:"var(--label-normal)",ADatePicker_Cell_IsNotCurrentMonth_color:"var(--label-neutral)",ADatePicker_Cell_IsDisabled_color:"var(--label-neutral)","ADatePicker_Cell_IsSelected_background-color":"var(--elevation-20)",ADatePicker_Cell_IsSelected_color:"var(--label-normal)","ADatePicker_Cell_IsHovered_background-color":"var(--elevation-10)",ADateRangePicker_Anchor_border:"1px solid var(--line-normal)",ADateRangePicker_Anchor_color:"var(--label-normal)",ADateRangePicker_Anchor_Placeholder_color:"var(--label-neutral)",ADateRangePicker_Anchor_hover_border:"1px solid var(--line-strong)",ADateRangePicker_Anchor_focus_border:"1px solid var(--line-strong)",ADateRangePicker_Anchor_Icon_Primary_color:"var(--label-normal)",ADateRangePicker_Anchor_Icon_Secondary_color:"var(--label-normal)","ADateRangePicker_background-color":"var(--elevation-0)",ADateRangePicker_border:"1px solid var(--line-neutral)","ADateRangePicker_StringInputContainer_background-color":"var(--label-neutral)",ADateRangePicker_String_border:"1px solid var(--label-normal)","ADateRangePicker_Prev_background-color":"var(--elevation-10)","ADateRangePicker_Prev_border-right":"6px solid var(--label-normal)","ADateRangePicker_Next_background-color":"var(--elevation-10)","ADateRangePicker_Next_border-left":"6px solid var(--label-normal)",ADateRangePicker_Cell_color:"var(--label-normal)",ADateRangePicker_Cell_IsNotCurrentMonth_color:"var(--label-neutral)",ADateRangePicker_Cell_IsDisabled_color:"var(--label-neutral)","ADateRangePicker_Cell_IsSelected_background-color":"var(--elevation-20)",ADateRangePicker_Cell_IsSelected_color:"var(--label-normal)","ADateRangePicker_Cell_IsHovered_background-color":"var(--elevation-10)",AIconButton_Primary_color:"var(--label-normal)",AIconButton_Primary_border:"1px solid var(--line-normal)","AIconButton_Primary_background-color":"var(--elevation-0)","AIconButton_Primary_hover_background-color":"var(--elevation-10)","AIconButton_Primary_active_background-color":"var(--elevation-20)",AIconButton_Secondary_color:"var(--label-normal)","AIconButton_Secondary_background-color":"var(--elevation-0)","AIconButton_Secondary_hover_background-color":"var(--elevation-10)","AIconButton_Secondary_active_background-color":"var(--elevation-20)","ATableBody_TRow_border-bottom":"1px solid var(--line-normal)","ATableBody_TRow_IsSelected_background-color":"var(--elevation-10)","ATableBody_TRow_IsSelectable_hover_background-color":"var(--elevation-10)",ATableBody_TH_color:"var(--label-neutral)","ATableBody_TD_IsMarked_background-color":"yellow",ATableBody_TD_IsMarked_color:"var(--label-normal)","ATableBody_Resizer_hover_ResizerCenter_background-color":"var(--line-neutral)","ATableBody_Resizer_active_ResizerCenter_background-color":"var(--line-neutral)","ATableBody_Resizer_active_ResizerOut_background-color":"var(--line-neutral)","ATableBody_Resizer_active_ResizerIn_background-color":"var(--line-neutral)","ATableFooter_Button_IsSelected_background-color":"var(--elevation-10)",ATableFooter_Button_IsSelected_color:"var(--label-normal)",ATableFooter_Button_IsDisabled_color:"var(--label-neutral)","ATableFilter_SubFilters_background-color":"var(--elevation-0)",ATableFilter_SubFilters_border:"1px solid var(--line-normal)",ATableFilter_Icon_color:"var(--label-normal)",ATableFilter_Alert_color:"var(--alert-danger)","ADivideFrame_DividerInner_background-color":"var(--line-normal)","AFloatMenu_background-color":"var(--elevation-0)","AFloatMenu_hover_background-color":"var(--elevation-10)",AFloatMenu_color:"var(--label-normal)",AFloatMenu_border:"1px solid var(--line-neutral)","ALoadingBorder_background-color":"var(--label-normal)","ALoadingBorder_ProgressBar_background-color":"var(--elevation-0)","ALoadingBorder_Cover_background-color":"var(--label-normal)",AWrap_Error_color:"var(--alert-danger)",ARadioSelect_RadioButton_border:"1px solid var(--line-normal)","ARadioSelect_RadioButton_InnerCircle_isChecked_background-color":"var(--acent-brand)","AChip_background-color":"var(--elevation-10)",AChip_color:"var(--label-normal)",AChip_border:"1px solid var(--line-normal)","AChip_hover_background-color":"var(--elevation-20)",AChip_hover_color:"var(--label-normal)",AChip_DeleteButton_border:"9px solid var(--line-normal)",AChip_DeleteButton_color:"var(--label-normal)",AChip_DeleteButton_hover_border:"9px solid var(--line-strong)",AChip_DeleteButton_hover_color:"var(--label-normal)"};function z5(r){return sh[r]}function $5(r){return ah(r)}function D2(r){er.keys(r).forEach(t=>{const n=r[t];n!==void 0&&(document.documentElement.style.setProperty(`--${t}`,n),sh[t]=n)})}function U5(r){er.keys(r).forEach(t=>{const n=r[t];if(n===void 0)return;const i=xi.semantic[ai.semanticMode][n];i!==void 0&&(document.documentElement.style.setProperty(t,i),sh[t]=i)})}const ai={paletteMode:oh[0],semanticMode:Gu[0],save:"",followDeviceSetting:!1};function W5({semanticMode:r,save:e,followDeviceSetting:t}){if(t!==void 0&&(ai.followDeviceSetting=t,t)){const n=window.matchMedia("(prefers-color-scheme: dark)"),i=u=>{ai.semanticMode=u.matches?"dark":"light"};i(n);const l=u=>i(u);n.addEventListener("change",l)}if(e!==void 0){if(ai.save=e,e==="localStorage"){const n=localStorage.getItem("semanticMode");Gu.includes(n)&&(ai.semanticMode=n)}else if(e==="sessionStorage"){const n=sessionStorage.getItem("semanticMode");Gu.includes(n)&&(ai.semanticMode=n)}}r!==void 0&&(ai.semanticMode=r),r2(ai.paletteMode),dm(ai.semanticMode),n2(xi.palette[ai.paletteMode]),o2(xi.semantic[ai.semanticMode]),D2(sh)}function V5(r){r.type==="semanticModeChange"?Kd.push(r.listener):r.type==="paletteModeChange"?Zd.push(r.listener):console.error("AThemes.addEventListener : parameter is not valid")}function G5(r){if(r.type==="semanticModeChange"){const e=Kd.indexOf(r.listener);e!==-1&&Kd.splice(e,1)}else if(r.type==="paletteModeChange"){const e=Zd.indexOf(r.listener);e!==-1&&Zd.splice(e,1)}else console.error("AThemes.removeEventListener : parameter is not valid")}function ah(r){const e=window.getComputedStyle(document.documentElement);let t=e.getPropertyValue(r);return t===""&&(t=e.getPropertyValue(`--${r}`)),t}function Z5(r){Object.assign(Fe.additionalClasses,r),Fe.updateKeys(),Fe.additionalClasses=Fe.additionalClasses}const Ff={getCurrentPaletteMode:P5,getPaletteValue:N5,getPaletteDeepValue:F5,changePaletteMode:r2,editPalette:n2,getCurrentSemanticMode:j5,getSemanticValue:B5,getSemanticDeepValue:H5,changeSemanticMode:dm,editSemantic:o2,getComponentStyleValue:z5,getComponentStyleDeepValue:$5,editComponentStyle:D2,editComponentStyleWithSemantic:U5,init:W5,addEventListener:V5,removeEventListener:G5,getDeepValue:ah,addClasses:Z5},K5=r=>{const{onChange:e,onClick:t,type:n="Icon",...i}=r,[l,u]=A.useState(Ff.getCurrentSemanticMode()==="dark"?"Moon":"Sun"),f=A.useCallback(g=>{const m=Ff.getCurrentSemanticMode();let R="light";m==="light"?R="dark":m==="dark"&&(R="light"),Ff.changeSemanticMode(R),u(Y5[R]),e==null||e(R),t==null||t(g)},[e,t]);if(n==="Icon")return v.jsx(_i,{...i,className:Fe.clsx(Zf.AThemeButton,i.className,"IsInteractive"),type:"Raw",icon:l,onClick:f});if(n==="Switch")return v.jsx(e2,{...i,useCheck:[Ff.getCurrentSemanticMode()==="dark",f]})},Y5={light:"Sun",dark:"Moon"},X5="_ACheckBoxWrap_1ozuz_1",J5="_ACheckBox_1ozuz_1",Qv={ACheckBoxWrap:X5,ACheckBox:J5},Zu=r=>{const{useCheck:e,isIndeterminate:t,isDisabled:n,isLoading:i,onClick:l,...u}=r,[f,g]=nn(e,!1),m=A.useCallback(R=>{n||i||(g==null||g(!f),l==null||l(R))},[n,i,l,f,g]);return v.jsx($r,{...u,className:Fe.clsx(u.className,Qv.ACheckBoxWrap),isDisabled:n,isLoading:i,onClick:m,children:v.jsx(jr,{className:Qv.ACheckBox,icon:t?"Check.Indeterminate":f?"Check.Checked":"Check.UnChecked"})})};function Q5(r){return typeof r=="function"}function eT(r,e){return Q5(r)?r(e):r}const Lr={getContent:eT},tT="_ARowFrame_1586b_1",rT="_AColFrame_1586b_7",nT="_AOverflowFrame_1586b_13",iT="_ADivideFrame_1586b_22",oT="_Row_1586b_28",sT="_Col_1586b_31",aT="_ChildFrame_1586b_35",lT="_IsReturning_1586b_48",cT="_Divider_1586b_52",uT="_IsMoving_1586b_60",fT="_DividerInner_1586b_66",dT="_IsClicked_1586b_91",qo={ARowFrame:tT,AColFrame:rT,AOverflowFrame:nT,ADivideFrame:iT,Row:oT,Col:sT,ChildFrame:aT,IsReturning:lT,Divider:cT,IsMoving:uT,DividerInner:fT,IsClicked:dT},Sn=r=>v.jsx($r,{...r,className:Fe.clsx(qo.ARowFrame,r.className),children:r.children}),O2=r=>v.jsx("div",{...r,className:Fe.clsx(qo.AColFrame,r.className),children:r.children}),Sa=r=>{const{tooltip:e,children:t,abaseRef:n,isDisabled:i,className:l,noOverflowTooltip:u,...f}=r,g=A.useRef(null),m=A.useMemo(()=>n??g,[n]),[R,C]=A.useState(!1),b=A.useCallback(()=>C(!0),[]),S=A.useCallback(()=>C(!1),[]);A.useEffect(()=>{const D=m.current;if(D)return D.addEventListener("mouseenter",b),D.addEventListener("mouseleave",S),()=>{D.removeEventListener("mouseenter",b),D.removeEventListener("mouseleave",S)}},[m,b,S]);const _=A.useMemo(()=>i?"":u||!R||!m.current?e:m.current.scrollWidth>m.current.clientWidth?t:e,[m,i,t,e,u,R]);return v.jsx($r,{...f,isDisabled:i,children:t,abaseRef:m,tooltip:_,className:Fe.clsx(qo.AOverflowFrame,l)})},P2=r=>{const{value:e,map:t}=r;return t[e]===void 0?t.fallback:v.jsx(A.Suspense,{children:t[e]})},Yh={},hT=r=>{const{pk:e,direction:t="Row",lefts:n,minLength:i=40,children:l,childStyle:u,childClassName:f,dividerStyle:g,dividerClassName:m,dividerPadding:R,dividerInnerClassName:C,dividerInnerStyle:b,...S}=r,_=A.useMemo(()=>{let Q;return typeof l=="object"&&Array.isArray(l)?Q=l:Q=[l],Q=Q.filter(he=>he!=null&&he!==!1),Q},[l]),[D,E]=A.useState(e===void 0?n:Yh[e]??n),x=A.useMemo(()=>typeof i=="number"?Array(_.length).fill(i+(R??0)):i.map(Q=>Q+(R??0)),[i,_.length,R]),[L,O]=A.useState(),H=A.useMemo(()=>L!==void 0?L:D,[L,D]),q=A.useRef(null),z=A.useRef({x:0,y:0}),[K,ue]=A.useState(),X=A.useCallback((Q,he)=>{if(q.current===null)return;const me=q.current;z.current={x:Q.clientX,y:Q.clientY},O(D),ue(he);let be=[...D];const ce=le=>{const oe=me.getBoundingClientRect(),ve=t==="Row"?oe.left:oe.top,Oe=t==="Row"?oe.width:oe.height;be=mT(D,t,he,le,ve,Oe,x),O(be)},ke=()=>{ue(void 0),O(void 0),E(be),e!==void 0&&(Yh[e]=be),window.removeEventListener("mousemove",ce),window.removeEventListener("mouseup",ke)};window.addEventListener("mousemove",ce),window.addEventListener("mouseup",ke)},[D,e,t,x]),[de,j]=A.useState(!1),re=A.useCallback(()=>{E(n),e!==void 0&&(Yh[e]=n),j(!0)},[n,e]),J=A.useMemo(()=>_.map((Q,he)=>{const me=H[he],be=me-(he===0?0:H[he-1]),ce=he===0,ke=he===_.length-1,le={...u,...pT(t,be,ke)};return R!==void 0&&(t==="Row"?(ce||(le.paddingLeft=R),ke||(le.paddingRight=R)):(ce||(le.paddingTop=R),ke||(le.paddingBottom=R))),v.jsxs(A.Fragment,{children:[v.jsx("div",{className:Fe.clsx(qo.ChildFrame,f,de&&qo.IsReturning,qo[t]),onTransitionEnd:()=>j(!1),style:le,children:Q}),!ke&&v.jsx("div",{className:Fe.clsx(qo.Divider,qo[t],"NoSelect",K!==void 0&&qo.IsMoving,K===he&&qo.IsClicked,m),style:{...g,...gT(t,me)},onMouseDown:oe=>X(oe,he),onDoubleClick:re,children:v.jsx("div",{className:Fe.clsx(qo.DividerInner,C),style:b})})]},he)}),[_,H,u,t,R,f,de,K,m,g,re,C,b,X]);return v.jsx("div",{...S,className:Fe.clsx(qo.ADivideFrame,r.className,qo[t]),ref:q,children:J})};function pT(r,e,t){return t?{}:r==="Col"?{height:e,minHeight:e,maxHeight:e}:{maxWidth:e,width:e,minWidth:e}}function gT(r,e){return r==="Col"?{top:e}:{left:e}}function mT(r,e,t,n,i,l,u){const f=[...r];let g=n.clientX-i-r[t];e==="Col"&&(g=n.clientY-i-r[t]);const m=C=>u.slice(0,C+1).reduce((b,S)=>b+S,0),R=C=>u.slice(C+1).reduce((b,S)=>b+S,0);if(g<0){let C=f[t]+g;if(C<=m(t))for(let b=0;b<=t;b++)f[b]=m(b);else if(f[t]=C,t>0)for(let b=t-1;b>=0&&C-f[b]<u[b];b--)f[b]=C-u[t],C=f[b]}else if(g>0){let C=f[t]+g;if(C>=l-R(t))for(let b=t;b<r.length;b++)f[b]=l-R(b);else if(f[t]=C,t<r.length-1)for(let b=t+1;b<r.length&&f[b]-C<u[b];b++)f[b]=C+u[b],C=f[b]}return f}const Qc=()=>v.jsx("div",{style:{display:"flex",flexGrow:1}}),vT="_ASpace_1okqf_1",yT={ASpace:vT},mn=r=>{const{h:e,w:t,...n}=r;return v.jsx("div",{...n,className:Fe.clsx(yT.ASpace,n.className),style:{height:e,minHeight:e,maxHeight:e,width:t,minWidth:t,maxWidth:t,...n.style}})},bT="_AChipsContainer_1ag9v_1",_T="_AChip_1ag9v_1",xT="_Clickable_1ag9v_21",ST="_AChipDelete_1ag9v_26",CT="_IsHover_1ag9v_40",wT="_AChipDeleteIcon_1ag9v_45",zu={AChipsContainer:bT,AChip:_T,Clickable:xT,AChipDelete:ST,IsHover:CT,AChipDeleteIcon:wT},AT=r=>{const{useLabels:e,alignItems:t="flex-start",ChipStyle:n,ChipClassName:i,ChipOnDelete:l,ChipOnClick:u,ChipIcon:f,className:g,style:m,ButtonRenderer:R=N2,gap:C=8,...b}=r,[S,_]=nn(e,[]),D=A.useCallback(x=>{!_||!l||(l({label:x}),_(S.filter(L=>L!==x)))},[_,l,S]),E=A.useCallback(x=>{const L={label:x};return{label:x,useLabel:[x,()=>{}],style:Lr.getContent(n,L),className:Lr.getContent(i,L),icon:Lr.getContent(f,L),onDelete:()=>D(x),onClick:u?()=>u({label:x}):void 0}},[i,f,u,n,D]);return v.jsx($r,{...b,style:{...m,alignItems:t,gap:C},className:Fe.clsx(zu.AChipsContainer,g),children:S.map((x,L)=>v.jsx(hm,{...E(x),ButtonRenderer:R},L))})},hm=r=>{const{label:e,useLabel:t,icon:n,className:i,onDelete:l,onClick:u,ButtonRenderer:f=N2,width:g="fit-content",style:m,...R}=r;return e===void 0?v.jsx(v.Fragment,{}):v.jsxs($r,{...R,style:{...m,width:g},onClick:u,className:Fe.clsx("NoSelect",zu.AChip,u&&zu.Clickable,u&&"IsClickable",i),children:[v.jsx(Sa,{children:e}),f({...r})]})},N2=r=>{const{label:e,icon:t,onDelete:n,useLabel:i}=r,[,l]=nn(i,e),[u,f]=A.useState(!1),g=A.useCallback(C=>{n&&(C.stopPropagation(),l==null||l(void 0),n(r))},[n,r,l]),m=()=>{f(!0)},R=()=>{f(!1)};return v.jsx(v.Fragment,{children:n&&v.jsxs(v.Fragment,{children:[v.jsx(Qc,{}),v.jsx(mn,{w:24}),v.jsx($r,{className:Fe.clsx(zu.AChipDelete,"IsClickable",u&&zu.IsHover)}),v.jsx(_i,{type:"Raw",onClick:g,onMouseEnter:m,onMouseLeave:R,icon:t||v.jsx(jr,{icon:"Close",stroke:"currentColor",width:14,height:14}),className:zu.AChipDeleteIcon})]})})},Kc=r=>{if(!r)return"0 bytes";const e=["bytes","KB","MB","GB","TB","PB","EB","ZB","YB","RB","QB"];let t=0;for(;r>=1024&&t<e.length-1;)r/=1024,t++;return`${t===0?Math.floor(r):r.toFixed(1)} ${e[t]}`},TT=r=>{let e="";r<0&&(e+="-",r=-r);const t=Math.floor(r/3600),n=Math.floor(r%3600/60),i=r%60;return t>0&&(e+=t.toString().padStart(2,"0")+":"),e+=n.toString().padStart(2,"0")+":",e+=i.toString().padStart(2,"0"),e},ET=/[a-zA-Z0-9]/,kT=/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9]{2,}$/,RT=/^[a-zA-Z0-9._-]+$/,IT=/^[0-9a-fA-F-]+$/i,LT=/[가-힣ㄱ-ㅎㅏ-ㅣ]/,MT=/^\S*$/,DT=/^([^ㄱ-ㅎㅏ-ㅣ])*$/i,OT=/[!@#$%^&*+=;:?/<>\\[\](){}~\-_.(),]/,PT=/^(?=.*[A-Za-z])(?=.*\d)(?=.*[\W_])[A-Za-z\d\W_]{8,}$/,NT=/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$/,FT={hasKr:r=>/[가-힣ㄱ-ㅎㅏ-ㅣ]/.test(r),hasMalKr:r=>/[ㄱ-ㅎㅏ-ㅣ]/.test(r),hasBlank:r=>/\s/.test(r),isBlank:r=>/^\s*$/.test(r),isUuid:r=>/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$/.test(r),isEmail:r=>/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9]{2,}$/.test(r),isAlphabet:r=>/^[a-zA-Z]*$/.test(r),isAlphaNumeric:r=>/^[a-zA-Z0-9]*$/.test(r),isKr:r=>/^[가-힣ㄱ-ㅎㅏ-ㅣ]*$/.test(r),isKrNumeric:r=>/^[가-힣ㄱ-ㅎㅏ-ㅣ0-9]*/.test(r),isNumeric:r=>/^[0-9]$/.test(r),isLenMinMax:(r,e)=>t=>!(r!==void 0&&t.length<r||e!==void 0&&t.length>e)},F2={secondToTime:TT,validate:FT,FileSizeTrans:Kc},jT=r=>{const{maxTicks:e=300,interval:t=1e3,onFinish:n,noStartOnRender:i,actionRef:l,wrapProps:u,helperText:f,label:g,...m}=r,[R,C]=A.useState(0),[b,S]=A.useState(!i);A.useEffect(()=>{if(!b||m.isDisabled||m.isLoading)return;const O=setInterval(()=>C(H=>H+1),t);return()=>clearInterval(O)},[t,b,m.isDisabled,m.isLoading]);const _=A.useCallback(()=>{n==null||n(),S(!1)},[n]);A.useEffect(()=>{R>=e&&!m.isDisabled&&!m.isLoading&&_()},[R,e,_,m.isDisabled,m.isLoading]);const D=A.useCallback(()=>{m.isDisabled||S(!0)},[m.isDisabled]),E=A.useCallback(()=>{m.isDisabled||S(!1)},[m.isDisabled]),x=A.useCallback(()=>{m.isDisabled||(S(!1),C(0))},[m.isDisabled]);A.useEffect(()=>{l&&(l.current={start:D,stop:E,reset:x,setTicks:C})},[l,D,E,x]);const L=e-R;return v.jsx(ec,{wrapProps:u,helperText:f,label:g,children:v.jsx($r,{...m,children:F2.secondToTime(L>0?L:0)})})};function zs(r){const e=r.getFullYear(),t=r.getMonth()+1,n=r.getDate();return`${e}-${t<10?"0"+t:t}-${n<10?"0"+n:n}`}function BT(r){try{if(!r)return;const e=new Date(r);return isNaN(e.getTime())?void 0:e}catch{return}}function HT(r){return new Date(r.getFullYear(),r.getMonth(),r.getDate(),0,0,0,0)}function qT(r){return new Date(r.getFullYear(),r.getMonth(),r.getDate(),23,59,59,999)}function e0(r,e){return zs(r)===zs(e)}function $u(r,e){return zs(r)>zs(e)}function Yd(r,e){return zs(r)>=zs(e)}function Xd(r,e){return zs(r)<zs(e)}function Jd(r,e){return zs(r)<=zs(e)}function t0(r,e,t){return $u(r,t)?$u(e,t)&&Xd(e,r):$u(e,r)&&Xd(e,t)}function r0(r,e,t){return $u(r,t)?Yd(e,t)&&Jd(e,r):Yd(e,r)&&Jd(e,t)}const Kt={toString:zs,toDate:BT,makeSDate:HT,makeEDate:qT,"===":e0,">":$u,">=":Yd,"<":Xd,"<=":Jd,"s<d<e|e<d<s":t0,"s<=d<=e|e<=d<=s":r0,eq:e0,g:$u,ge:Yd,l:Xd,le:Jd,b:t0,be:r0},zT="_InputContainer_gsbiq_7",$T="_AInput_gsbiq_21",UT="_LeftAddon_gsbiq_40",WT="_RightAddon_gsbiq_46",VT="_ErrorHelperText_gsbiq_52",GT="_Primary_gsbiq_56",ZT="_UnAvailable_gsbiq_61",KT="_Secondary_gsbiq_72",YT="_ReadOnly_gsbiq_87",to={InputContainer:zT,AInput:$T,LeftAddon:UT,RightAddon:WT,ErrorHelperText:VT,Primary:GT,UnAvailable:ZT,Secondary:KT,ReadOnly:YT,Error:"_Error_gsbiq_52"},XT=["Primary","Secondary","ReadOnly","Error"],tc=r=>{const{onEnterPress:e,errorMessage:t,type:n="Primary",inputRef:i,useValue:l,isReadonly:u,placeholder:f,minLength:g,maxLength:m,tabIndex:R,autoFocus:C,isPassword:b,autoComplete:S="off",inputProps:_,LeftAddon:D,RightAddon:E,wrapProps:x,helperText:L,label:O,wrapType:H,labelProps:q,...z}=r,K=A.useMemo(()=>JT(t)?"Error":n,[t,n]),ue=A.useMemo(()=>K==="ReadOnly"?!0:u,[K,u]),X=A.useMemo(()=>z.isDisabled||z.isLoading,[z.isDisabled,z.isLoading]),[de,j]=nn(l,""),re=A.useCallback(Q=>{var he;X||((he=_==null?void 0:_.onKeyDown)==null||he.call(_,Q),["Escape","Enter","ArrowUp","ArrowDown"].includes(Q.key)||Q.stopPropagation(),Q.key==="Enter"&&e&&e(Q.currentTarget.value))},[X,_,e]),J=A.useCallback(Q=>{var he;X||g&&Q.target.value.length<g||(j==null||j(Q.target.value),(he=_==null?void 0:_.onChange)==null||he.call(_,Q))},[X,g,j,_]);return b?v.jsx(ec,{wrapProps:x,label:O,helperText:L,errorMessage:t,wrapType:H,labelProps:q,children:v.jsx("form",{onSubmit:Q=>Q.preventDefault(),children:v.jsxs($r,{...z,className:Fe.clsx(to.InputContainer,to[K],X&&to.UnAvailable,z.className),children:[D&&v.jsx("div",{className:to.LeftAddon,children:D}),v.jsx("input",{..._,className:Fe.clsx(to.AInput,K==="Error"&&to.InputError,_==null?void 0:_.className),value:de,type:"password",readOnly:ue,onChange:J,onKeyDown:re,placeholder:f,maxLength:m,tabIndex:z.isDisabled||z.isLoading?-1:R,autoFocus:C,autoComplete:S,ref:i}),E&&v.jsx("div",{className:Fe.clsx(to.RightAddon,"NoSelect"),children:E})]})})}):v.jsx(ec,{wrapProps:x,label:O,helperText:L,errorMessage:t,wrapType:H,labelProps:q,children:v.jsxs($r,{...z,className:Fe.clsx(to.InputContainer,to[K],X&&to.UnAvailable,z.className),children:[D&&v.jsx("div",{className:to.LeftAddon,children:D}),v.jsx("input",{..._,className:Fe.clsx(to.AInput,K==="Error"&&to.InputError,_==null?void 0:_.className),value:de,readOnly:ue,onChange:J,onKeyDown:re,placeholder:f,maxLength:m,tabIndex:z.isDisabled||z.isLoading?-1:R,autoFocus:C,autoComplete:S,ref:i}),E&&v.jsx("div",{className:to.RightAddon,children:E})]})})};function JT(r){return Array.isArray(r)?r.filter(Boolean).length>0:!!r}const QT="_ASelect_ocngk_1",e6="_Arrow_ocngk_14",t6="_Primary_ocngk_23",r6="_UnAvailable_ocngk_34",n6="_IsOpen_ocngk_34",i6="_Secondary_ocngk_41",o6="_Placeholder_ocngk_57",s6="_ValuesContainer_ocngk_61",a6="_Values_ocngk_61",l6="_Options_ocngk_80",c6="_Option_ocngk_80",u6="_Selected_ocngk_122",f6="_CheckBox_ocngk_129",Ho={ASelect:QT,Arrow:e6,Primary:t6,UnAvailable:r6,IsOpen:n6,Secondary:i6,Placeholder:o6,ValuesContainer:s6,Values:a6,Options:l6,Option:c6,Selected:u6,CheckBox:f6},d6=["Primary","Secondary"],rc=r=>{const{options:e,useSelect:t,type:n="Primary",placeholder:i=hn.ASelect["Select(Placeholder)"],onClose:l,OptionRenderer:u=p6,SelectedRenderer:f=g6,minShowRows:g=2,maxShowRows:m=6,arrowProps:R,isAutoWidth:C=!1,...b}=r,S=A.useRef(null),_=A.useMemo(()=>b.abaseRef??S,[b.abaseRef]),D=A.useRef(null),[E,x]=nn(t,e[0]),[L,O]=A.useState(void 0),[H,q]=A.useState(!1),[z,K]=A.useState(!1),ue=A.useRef(e),X=A.useRef(null),de=A.useCallback(()=>K(!1),[]),j=A.useCallback(()=>{b.isDisabled||b.isLoading||e.length<1||(K(!0),setTimeout(()=>q(!0),0),setTimeout(()=>Xh(D,_,e,g,m),0))},[_,b.isDisabled,b.isLoading,e,g,m]),re=A.useCallback(()=>{q(!1),K(!0),l==null||l()},[l]),J=A.useCallback(le=>{var oe;H?re():j(),setTimeout(()=>Xh(D,_,e,g,m),0),(oe=b.onClick)==null||oe.call(b,le)},[_,b,e,H,re,j,g,m]),Q=A.useCallback(()=>{Xh(D,_,e,g,m)},[_,e,g,m]);A.useEffect(()=>{if(!H||!_.current)return;const le=_.current;let oe=le.parentElement;for(;oe;)oe.addEventListener("scroll",Q),oe=oe.parentElement;return()=>{let ve=le.parentElement;for(;ve;)ve.removeEventListener("scroll",Q),ve=ve.parentElement}},[_,H,Q]),A.useEffect(()=>{if(H)return window.addEventListener("resize",Q),()=>window.removeEventListener("resize",Q)},[H,Q]);const he=A.useCallback(le=>{le[0].intersectionRatio===0&&re()},[re]);A.useEffect(()=>{if(!H)return;const le=new IntersectionObserver(he,{threshold:0});return _.current&&le.observe(_.current),()=>le.disconnect()},[_,H,he]);const me=A.useCallback(le=>{const oe=le.target,ve=_.current,Oe=D.current;!ve||!oe||!Oe||!ve.contains(oe)&&!Oe.contains(oe)&&re()},[_,re]),be=A.useMemo(()=>b.isDisabled||b.isLoading||e.length<1,[b.isDisabled,b.isLoading,e]);A.useEffect(()=>{if(H)return setTimeout(()=>document.addEventListener("mousedown",me),0),()=>document.removeEventListener("mousedown",me)},[H,me]);const ce=A.useCallback((le,oe)=>{le.stopPropagation(),le.preventDefault(),x==null||x(oe),re()},[x,re]),ke=A.useCallback(()=>{if(!C||!_.current)return;const le=Zc.calculateOptimalSelectWidth({elementRef:_,options:e,selectedOption:E,placeholder:i,optionRenderer:oe=>oe===null?null:u({option:oe}),type:n,isMulti:!1});O(le)},[C,_,e,E,i,u,n]);return A.useEffect(()=>C?((e!==ue.current||L===void 0)&&(X.current!==null&&cancelAnimationFrame(X.current),X.current=requestAnimationFrame(()=>{ke(),X.current=null,ue.current=[...e]})),()=>{X.current!==null&&(cancelAnimationFrame(X.current),X.current=null)}):void 0,[C,e,ke,L]),A.useEffect(()=>()=>{typeof Zc.clearCache=="function"&&Zc.clearCache()},[]),v.jsxs(v.Fragment,{children:[v.jsxs($r,{...b,isDisabled:b.isDisabled||e.length<1,className:Fe.clsx(b.className,Ho.ASelect,"NoSelect",H&&Ho.IsOpen,be&&Ho.UnAvailable,Ho[n]),style:{padding:n==="Secondary"?"8px 8px 8px 0":0,width:L?`${L}px`:C?"100px":void 0,...b.style},abaseRef:_,onClick:J,children:[v.jsx("div",{className:Ho.ValuesContainer,children:v.jsx("div",{className:Fe.clsx(Ho.Values,(E==null||E==="")&&Ho.Placeholder),children:v.jsx(f,{selectedOption:E,OptionRenderer:u,placeholder:i})})}),v.jsx("div",{...R,className:Fe.clsx(Ho.Arrow,R==null?void 0:R.className),children:v.jsx(jr,{style:{transform:H?"rotate(180deg)":"",transition:"var(--Transition)"},icon:"TriangleDown"})})]}),e.length>0&&(H||z)&&Hs.createPortal(v.jsx("div",{className:Fe.clsx(Ho.Options,Ho[n]),onTransitionEnd:de,style:{opacity:+H,visibility:H?"visible":"hidden",pointerEvents:H?void 0:"none",borderRadius:_.current?window.getComputedStyle(_.current).borderRadius:void 0,width:L?`${L}px`:C?"100px":void 0},ref:D,children:e.map((le,oe)=>{const ve=E===le,Oe=_.current?window.getComputedStyle(_.current):void 0;return le===null?null:v.jsx("div",{className:Fe.clsx(Ho.Option,ve&&Ho.Selected,"NoSelect",Ho[n]),style:{height:Oe==null?void 0:Oe.height},onClick:et=>ce(et,le),children:v.jsx(u,{option:le})},oe)})}),document.body)]})};function Xh(r,e,t,n,i){if(!e.current||!r.current||!t||t.length<1)return;const l=e.current.getBoundingClientRect(),u=h6(l,t.length,n,i),f=window.getComputedStyle(e.current);r.current.style.top=`calc(${u.top??0}px - ${f.borderTopWidth})`,r.current.style.bottom=u.bottom?u.bottom+"px":"",r.current.style.left=u.left+"px",r.current.style.width||(r.current.style.minWidth=u.minWidth+"px"),r.current.style.minHeight=u.minHeight+"px",r.current.style.maxHeight=u.maxHeight+"px",r.current.style.visibility="visible"}function h6(r,e,t,n){const i={top:r.bottom,bottom:void 0,left:r.left,height:"fit-content",minWidth:r.width,minHeight:r.height*Math.min(t,e),maxHeight:r.height*n>window.innerHeight-r.bottom-10?window.innerHeight-r.bottom-10:r.height*n};return window.innerHeight-r.bottom-10<i.height&&(window.innerHeight-r.bottom-10<i.minHeight?(i.top=r.top-e*r.height,i.top<0&&(i.top=10,i.minHeight=r.top-10,i.height=r.top-10)):i.height=window.innerHeight-r.bottom-10),i}const p6=r=>{const{option:e}=r;return er.isReactNode(e)?e:null},g6=r=>{const{selectedOption:e,OptionRenderer:t,placeholder:n}=r;return e==null||e===""?n:v.jsx(t,{option:e})},m6="_Anchor_502n9_1",v6="_Primary_502n9_18",y6="_Secondary_502n9_21",b6="_Placeholder_502n9_25",_6="_Icon_502n9_30",x6="_ADatePicker_502n9_37",S6="_StringInputWrap_502n9_48",C6="_StringInputContainer_502n9_53",w6="_StringInput_502n9_48",A6="_IsIdx_502n9_68",T6="_CalendarContainer_502n9_72",E6="_Header_502n9_78",k6="_Prev_502n9_82",R6="_Next_502n9_83",I6="_MonthYear_502n9_116",L6="_Select_502n9_121",M6="_Calendar_502n9_72",D6="_Cell_502n9_132",O6="_IsNotCurrentMonth_502n9_144",P6="_IsSelected_502n9_148",N6="_IsDisabled_502n9_152",F6="_IsHovered_502n9_155",j6="_Week_502n9_159",B6="_WeekDay_502n9_164",rn={Anchor:m6,Primary:v6,Secondary:y6,Placeholder:b6,Icon:_6,ADatePicker:x6,StringInputWrap:S6,StringInputContainer:C6,StringInput:w6,String:"_String_502n9_48",IsIdx:A6,CalendarContainer:T6,Header:E6,Prev:k6,Next:R6,MonthYear:I6,Select:L6,Calendar:M6,Cell:D6,IsNotCurrentMonth:O6,IsSelected:P6,IsDisabled:N6,IsHovered:F6,Week:j6,WeekDay:B6},H6="_Anchor_iz4hf_1",q6="_Primary_iz4hf_18",z6="_Secondary_iz4hf_22",$6="_Placeholder_iz4hf_26",U6="_Icon_iz4hf_31",W6="_ADateRangePicker_iz4hf_38",V6="_StringInputWrap_iz4hf_49",G6="_StringInputContainer_iz4hf_53",Z6="_StringInput_iz4hf_49",K6="_IsIdx_iz4hf_69",Y6="_CalendarContainer_iz4hf_73",X6="_Header_iz4hf_79",J6="_Prev_iz4hf_83",Q6="_Next_iz4hf_84",eE="_MonthYear_iz4hf_117",tE="_Select_iz4hf_122",rE="_Calendar_iz4hf_73",nE="_Cell_iz4hf_133",iE="_IsNotCurrentMonth_iz4hf_145",oE="_IsSelected_iz4hf_149",sE="_IsDisabled_iz4hf_153",aE="_IsHovered_iz4hf_156",lE="_Week_iz4hf_160",cE="_WeekDay_iz4hf_165",uE="_ChoiceButton_iz4hf_169",Hr={Anchor:H6,Primary:q6,Secondary:z6,Placeholder:$6,Icon:U6,ADateRangePicker:W6,StringInputWrap:V6,StringInputContainer:G6,StringInput:Z6,String:"_String_iz4hf_49",IsIdx:K6,CalendarContainer:Y6,Header:X6,Prev:J6,Next:Q6,MonthYear:eE,Select:tE,Calendar:rE,Cell:nE,IsNotCurrentMonth:iE,IsSelected:oE,IsDisabled:sE,IsHovered:aE,Week:lE,WeekDay:cE,ChoiceButton:uE},pm=r=>{const{type:e="Primary",className:t,useDateRange:n,actionRef:i,position:l=ef.SE,minDate:u,maxDate:f,isDisabled:g,isLoading:m,yearsOptionSize:R,noDefaultChoices:C,LeftAddon:b,RightAddon:S,placeholder:_,noClearButton:D,resources:E,onClick:x,...L}=r,O=A.useMemo(()=>({...hn.ADateRangePicker,...E}),[E]),H=A.useMemo(()=>_??O["Select DateRange"],[_,O]),[q,z]=A.useMemo(()=>{let ne,Je;if(u&&(ne=Kt.makeSDate(u)),f&&(Je=Kt.makeEDate(f)),ne&&Je&&Kt["<"](Je,ne)){console.warn("ADateRangePicker: maxDate should be greater than minDate. maxDate and minDate are swapped.");const ct=ne;ne=Je,Je=ct}return[ne,Je]},[u,f]),[K,ue]=A.useState("sD"),[X,de]=nn(n,void 0),j=A.useCallback(ne=>{de&&(ne===void 0?(de(void 0),_e(""),$e("")):(de({sDate:Kt.makeSDate(ne.sDate),eDate:Kt.makeEDate(ne.eDate)}),_e(Kt.toString(ne.sDate)),$e(Kt.toString(ne.eDate))))},[de]);A.useEffect(()=>{X&&(_e(Kt.toString(X.sDate)),$e(Kt.toString(X.eDate)))},[X]);const re=A.useCallback(ne=>{if(!de)return;let Je=X?X.sDate:Kt.makeSDate(ne);ne=Kt.makeEDate(ne),de({sDate:Je,eDate:ne}),_e(Kt.toString(Je)),$e(Kt.toString(ne))},[de,X]),[J,Q]=A.useState(),[he,me]=A.useState(),be=A.useCallback(ne=>{K==="sD"&&j({sDate:ne,eDate:ne}),Q(ne),me(ne)},[K,j,Q]),ce=A.useCallback(ne=>{K==="sD"?J&&(Kt.eq(J,ne)?ue("eD"):Kt[">"](ne,J)?(re(ne),Q(void 0)):(j({sDate:ne,eDate:J}),Q(void 0))):(X?Kt["<"](ne,X.sDate)?j({sDate:ne,eDate:X.eDate}):re(ne):j({sDate:ne,eDate:ne}),Q(void 0),ue("sD"))},[re,J,ue,K,j,X,Q]),ke=A.useCallback(ne=>{J&&me(ne)},[J]),le=A.useCallback(()=>{me(void 0),Q(void 0),ue("sD")},[ue,Q]),[oe,ve]=A.useState(n0(X,q,z)),Oe=A.useMemo(()=>gm(oe.year,q,z,R),[oe.year,q,z,R]),et=A.useMemo(()=>Kf(oe.year,q,z),[q,z,oe.year]),we=A.useCallback(ne=>{if(!Oe.includes(ne))return;const Je={month:oe.month,year:ne},ct=Kf(Je.year,q,z);ct.length<1||(ct.includes(Je.month)||(Je.month<ct[0]?Je.month=ct[0]:Je.month>ct[ct.length-1]&&(Je.month=ct[ct.length-1])),ve(Je))},[q,z,Oe,oe.month]),Pe=A.useCallback(ne=>{et.includes(ne)&&ve({month:ne,year:oe.year})},[et,oe.year]),je=A.useMemo(()=>z?new Date(oe.year,oe.month+1,1)>z:!1,[oe,z]),ze=A.useCallback(()=>{if(je||et.length<1)return;const ne=oe.month+1;ne>11?ve({month:et[0],year:oe.year+1}):ve({month:ne,year:oe.year})},[je,et,oe]),We=A.useMemo(()=>q?new Date(oe.year,oe.month,0)<q:!1,[oe,q]),De=A.useCallback(()=>{if(We||et.length<1)return;const ne=oe.month-1;ne<et[0]?ve({month:et[et.length-1],year:oe.year-1}):ve({month:ne,year:oe.year})},[We,et,oe]),[Ae,_e]=A.useState(X!=null&&X.sDate?Kt.toString(X.sDate):""),Ge=A.useCallback(ne=>{if(ne.length>10||(_e(ne),ne.length<10)||!de)return;let Je=Kt.toDate(ne);if(!Je)return;q&&Je<q&&(Je=q),z&&Je>z&&(Je=z);let ct=X?X.eDate:Je;X&&Kt[">"](Je,ct)&&([Je,ct]=i0(Je,ct)),j({sDate:Je,eDate:ct}),ve({month:Je.getMonth(),year:Je.getFullYear()})},[de,j,X,q,z]),[lt,$e]=A.useState(X!=null&&X.eDate?Kt.toString(X.eDate):""),ht=A.useCallback(ne=>{if(ne.length>10||($e(ne),ne.length<10)||!de)return;let Je=Kt.toDate(ne);if(!Je)return;q&&Je<q&&(Je=q),z&&Je>z&&(Je=z);let ct=X?X.sDate:Je;X&&Kt[">"](ct,Je)&&([ct,Je]=i0(ct,Je)),j({sDate:ct,eDate:Je}),ve({month:Je.getMonth(),year:Je.getFullYear()})},[de,j,X,q,z]),Le=A.useCallback(()=>{X&&(_e(Kt.toString(X.sDate)),$e(Kt.toString(X.eDate)))},[X]),Xe=A.useMemo(()=>{const{month:ne,year:Je}=oe,ct=new Date(Je,ne,1),tt=new Date(Je,ne+1,0),Re=[];for(let Rt=0;Rt<ct.getDay();Rt++){const Mt=new Date(Je,ne,0).getDate()-ct.getDay()+Rt+1,Qt=new Date(Je,ne-1,Mt),rr=q&&q>Qt||z&&z<Qt,Bt=X?Kt.be(X.sDate,Qt,X.eDate):!1,qt=he&&X&&Kt.be(X.sDate,Qt,he);Re.push({day:Mt,isSelected:Bt,isHovered:qt,date:Qt,isDisabled:rr,isCurrentMonth:!1})}for(let Rt=1;Rt<=tt.getDate();Rt++){const vt=new Date(Je,ne,Rt),Mt=q&&q>vt||z&&z<vt,Qt=X?Kt.be(X.sDate,vt,X.eDate):!1,rr=he&&X&&Kt.be(X.sDate,vt,he);Re.push({day:Rt,isSelected:Qt,isHovered:rr,date:vt,isDisabled:Mt,isCurrentMonth:!0})}for(let Rt=0;Rt<7-tt.getDay()-1;Rt++){const vt=new Date(Je,ne+1,Rt+1),Mt=q&&q>vt||z&&z<vt,Qt=X?Kt.be(X.sDate,vt,X.eDate):!1,rr=he&&X&&Kt.be(X.sDate,vt,he);Re.push({day:Rt+1,isSelected:Qt,isHovered:rr,date:vt,isDisabled:Mt,isCurrentMonth:!1})}const xt=[];for(let Rt=0;Rt<Re.length/7;Rt++)xt.push(v.jsx("div",{className:Hr.Week,children:Re.slice(Rt*7,Rt*7+7).map((vt,Mt)=>v.jsx(Fi,{type:"Raw",className:Fe.clsx(Hr.Day,Hr.Cell,vt.isDisabled?Hr.IsDisabled:vt.isCurrentMonth?vt.isSelected?Hr.IsSelected:vt.isHovered&&Hr.IsHovered:Hr.IsNotCurrentMonth),isDisabled:vt.isDisabled,onMouseDown:()=>vt.isCurrentMonth&&be(vt.date),onMouseUp:()=>vt.isCurrentMonth&&ce(vt.date),onMouseEnter:()=>vt.isCurrentMonth&&ke(vt.date),children:vt.day},Mt))},Rt));return xt},[oe,he,X,q,z,be,ce,ke]),it=A.useRef(null),Ct=A.useCallback(()=>{it&&fm(it,Me,l)},[it,l]),[_t,wt]=A.useState(!1),[bt,St]=A.useState(!1),Me=A.useRef(null),pt=A.useCallback(()=>{g||m||(wt(!0),setTimeout(()=>St(!0),0),setTimeout(()=>Ct(),0),ve(n0(X,q,z)))},[g,m,X,Ct,q,z]),Et=A.useCallback(()=>{g||m||(wt(!0),St(!1))},[g,m]),mt=A.useMemo(()=>bt?Et:pt,[bt,pt,Et]),Dt=A.useCallback(()=>wt(!1),[]),Ze=A.useCallback(ne=>{const Je=document.getElementById("root"),ct=ne.target,tt=Me.current,Re=it.current;!Je||!tt||!ct||!Re||!tt.contains(ct)&&Je.contains(ct)&&!Re.contains(ct)&&Et()},[Et]);A.useEffect(()=>{if(bt)return setTimeout(()=>document.addEventListener("mousedown",Ze),0),()=>document.removeEventListener("mousedown",Ze)},[bt,Ze]);const At=A.useCallback(()=>{Ct()},[Ct]);A.useEffect(()=>{if(!bt||!(it!=null&&it.current))return;const ne=it.current;let Je=ne.parentElement;for(;Je;)Je.addEventListener("scroll",At),Je=Je.parentElement;return()=>{let ct=ne.parentElement;for(;ct;)ct.removeEventListener("scroll",At),ct=ct.parentElement}},[it,bt,At]),A.useEffect(()=>{if(bt)return window.addEventListener("resize",At),()=>window.removeEventListener("resize",At)},[bt,At]);const jt=A.useCallback(ne=>{ne[0].intersectionRatio===0&&Et()},[Et]);A.useEffect(()=>{if(!bt)return;const ne=new IntersectionObserver(jt,{threshold:0});return Me.current&&ne.observe(Me.current),()=>ne.disconnect()},[Me,bt,jt]),A.useEffect(()=>{i&&(i.current={open:pt,close:Et,toggle:mt})},[i,pt,Et,mt]),A.useEffect(()=>{if(!X)return;let ne={sDate:X.sDate,eDate:X.eDate};q&&(Kt["<"](X.sDate,q)&&(ne.sDate=q),Kt["<"](X.eDate,q)&&(ne.eDate=q)),z&&(Kt[">"](X.sDate,z)&&(ne.sDate=z),Kt[">"](X.eDate,z)&&(ne.eDate=z)),(ne.sDate!==X.sDate||ne.eDate!==X.eDate)&&j(ne)},[q,z,X,j]);const mr=A.useCallback(ne=>{x==null||x(ne),mt()},[x,mt]),kr=A.useCallback(ne=>{j(void 0),Et(),ne.stopPropagation()},[j,Et]),Cr=A.useCallback(()=>X?v.jsx(_i,{style:{scale:"0.8"},type:"Raw",icon:"Close",onClick:kr}):null,[X,kr]),ge=A.useMemo(()=>X?`${Kt.toString(X.sDate)} ~ ${Kt.toString(X.eDate)}`:v.jsx("span",{className:Hr.Placeholder,children:H}),[X,H]);return v.jsxs(v.Fragment,{children:[v.jsxs($r,{...L,isLoading:m,isDisabled:g,className:Fe.clsx(Hr.Anchor,"IsClickable",Hr[e],t),onClick:mr,abaseRef:it,children:[b,e==="Primary"&&v.jsxs(v.Fragment,{children:[v.jsx(jr,{icon:"CalendarDay",className:Fe.clsx(Hr.Icon,Hr[e])}),v.jsx(mn,{w:4})]}),ge,v.jsx(Qc,{}),!D&&v.jsx(Cr,{}),e==="Secondary"&&v.jsx(jr,{icon:"CalendarDay",className:Fe.clsx(Hr.Icon,Hr[e])}),S&&S]}),(bt||_t)&&Hs.createPortal(v.jsxs("div",{className:Hr.ADateRangePicker,onTransitionEnd:Dt,onMouseLeave:le,style:{opacity:+bt,visibility:bt?"visible":"hidden"},ref:Me,children:[v.jsxs("div",{className:Hr.StringInputContainer,children:[v.jsxs(Sn,{children:[v.jsx(tc,{maxLength:11,wrapProps:{className:Hr.StringInputWrap},inputProps:{className:Hr.StringInput},className:Fe.clsx(Hr.String,K==="sD"&&he&&Hr.IsIdx),useValue:[Ae,Ge],placeholder:"YYYY-MM-DD",onBlur:Le}),v.jsx(mn,{w:8}),v.jsx(tc,{maxLength:11,wrapProps:{className:Hr.StringInputWrap},inputProps:{className:Hr.StringInput},className:Fe.clsx(Hr.String,K==="eD"&&he&&Hr.IsIdx),useValue:[lt,ht],placeholder:"YYYY-MM-DD",onBlur:Le})]}),!C&&v.jsxs(Sn,{style:{marginTop:4},children:[v.jsx(Ed,{children:O["1일"],onClick:()=>j({sDate:new Date,eDate:new Date})}),v.jsx(Ed,{children:O["1주일"],onClick:()=>j({sDate:new Date(new Date().setDate(new Date().getDate()-7)),eDate:new Date})}),v.jsx(Ed,{children:O["1개월"],onClick:()=>j({sDate:new Date(new Date().setMonth(new Date().getMonth()-1)),eDate:new Date})}),v.jsx(Ed,{children:O["3개월"],onClick:()=>j({sDate:new Date(new Date().setMonth(new Date().getMonth()-3)),eDate:new Date})})]})]}),v.jsxs("div",{className:Hr.CalendarContainer,children:[v.jsxs(Sn,{className:Hr.Header,children:[v.jsx(Fi,{type:"Raw",className:Hr.Prev,onClick:De,isDisabled:We}),v.jsxs("div",{className:Hr.MonthYear,children:[v.jsx(rc,{type:"Secondary",useSelect:[oe.month,Pe],className:Hr.Select,options:et,OptionRenderer:ne=>O.months(ne.option),SelectedRenderer:ne=>O.months(ne.selectedOption)}),v.jsx(mn,{w:8}),v.jsx(rc,{type:"Secondary",useSelect:[oe.year,we],className:Hr.Select,options:Oe})]}),v.jsx(Fi,{type:"Raw",className:Hr.Next,onClick:ze,isDisabled:je})]}),v.jsx(mn,{h:10}),v.jsxs("div",{className:Hr.Calendar,children:[v.jsx("div",{className:Hr.Week,children:[0,1,2,3,4,5,6].map(ne=>v.jsx("div",{className:Fe.clsx(Hr.WeekDay,Hr.Cell),children:O.weekDays(ne)},ne))}),Xe]})]})]}),document.body)]})};function Kf(r,e,t){let n=0;e&&e.getFullYear()===r&&(n=e.getMonth());let i=11;t&&t.getFullYear()===r&&(i=t.getMonth());const l=[];for(let u=n;u<=i;u++)l.push(u);return l}function gm(r,e,t,n=5){const i=[];let l=r-n/2+n%2/2;e&&l<e.getFullYear()&&(l=e.getFullYear());let u=l+n-1;t&&u>t.getFullYear()&&(u=t.getFullYear());for(let f=l;f<=u;f++)i.push(f);return i}function n0(r,e,t){return r??(r={sDate:new Date,eDate:new Date}),e&&Kt["<"](r.sDate,e)?{month:e.getMonth(),year:e.getFullYear()}:t&&Kt[">"](r.eDate,t)?{month:t.getMonth(),year:t.getFullYear()}:{month:r.sDate.getMonth(),year:r.sDate.getFullYear()}}function i0(r,e){return[e,r]}const Ed=r=>v.jsx(Fi,{className:Fe.clsx(Hr.ChoiceButton,"Headline2"),type:"Secondary",...r}),fE=["Primary","Secondary","Raw"],mm=r=>{const{type:e="Primary",className:t,useDate:n,actionRef:i,position:l=ef.SE,minDate:u,maxDate:f,isDisabled:g,isLoading:m,placeholder:R,LeftAddon:C,RightAddon:b,resources:S,noClearButton:_,onClick:D,...E}=r,x=A.useMemo(()=>({...hn.ADatePicker,...S}),[S]),L=A.useMemo(()=>R??x["Select Date"],[R,x]),[O,H]=A.useMemo(()=>{let Me,pt;return u&&(Me=Kt.makeSDate(u)),f&&(pt=Kt.makeEDate(f)),Me&&pt&&Kt["<"](pt,Me)?(console.warn("ADatePicker: maxDate should be greater than minDate. maxDate and minDate are swapped."),[Kt.makeSDate(pt),Kt.makeEDate(Me)]):[Me,pt]},[u,f]),[q,z]=nn(n,null),[K,ue]=A.useState(q?Kt.toString(q):""),[X,de]=A.useState(()=>{const Me=q??new Date;return O&&Me<O?O.getMonth():H&&Me>H?H.getMonth():(Me??new Date).getMonth()}),[j,re]=A.useState(()=>{const Me=q??new Date;return O&&Me<O?O.getFullYear():H&&Me>H?H.getFullYear():(Me??new Date).getFullYear()}),J=A.useCallback(Me=>{re(Me);const pt=Kf(Me,O,H);pt.includes(X)||(X<pt[0]?de(pt[0]):X>pt[pt.length-1]&&de(pt[pt.length-1]))},[O,H,X]),Q=A.useCallback(Me=>{if(Me.length>10||(ue(Me),Me.length<10)||!z)return;let pt=Kt.toDate(Me);pt&&(O&&pt<O&&(pt=O),H&&pt>H&&(pt=H),z(pt),re(pt.getFullYear()),de(pt.getMonth()))},[z,O,H]),he=A.useCallback(Me=>{const pt=j+Me;pt<0||re(pt)},[j]),me=A.useCallback(Me=>{const pt=X+Me;pt<0?(de(11),he(-1)):pt>11?(de(0),he(1)):de(pt)},[X,he]),be=A.useCallback(Me=>{z&&(Me===void 0?(z(void 0),ue("")):(z(Me),ue(Kt.toString(Me))))},[z]),ce=A.useMemo(()=>{const Me=new Date(j,X,0);return O&&Me<O},[j,X,O]),ke=A.useMemo(()=>{const Me=new Date(j,X+1,1);return H&&Me>H},[j,X,H]),le=A.useCallback(()=>{ce||me(-1)},[me,ce]),oe=A.useCallback(()=>{ke||me(1)},[me,ke]),[ve,Oe]=A.useState(null),et=A.useCallback(()=>{z&&Oe(null)},[z]),we=A.useCallback(Me=>{z&&Oe(Me)},[z]),Pe=A.useMemo(()=>{const Me=new Date(j,X,1),pt=new Date(j,X+1,0),Et=[];for(let Dt=0;Dt<Me.getDay();Dt++){const At=new Date(j,X,0).getDate()-Me.getDay()+Dt+1,jt=new Date(j,X-1,At),mr=O&&O>jt||H&&H<jt,kr=q&&Kt.eq(jt,q),Cr=ve&&Kt.eq(jt,ve);Et.push({day:At,isSelected:kr,date:jt,isDisabled:mr,isHovered:Cr,isCurrentMonth:!1})}for(let Dt=1;Dt<=pt.getDate();Dt++){const Ze=new Date(j,X,Dt),At=O&&O>Ze||H&&H<Ze,jt=q&&Kt.eq(Ze,q),mr=ve&&Kt.eq(Ze,ve);Et.push({day:Dt,isSelected:jt,date:Ze,isDisabled:At,isHovered:mr,isCurrentMonth:!0})}for(let Dt=0;Dt<7-pt.getDay()-1;Dt++){const Ze=new Date(j,X+1,Dt+1),At=O&&O>Ze||H&&H<Ze,jt=q&&Kt.eq(Ze,q),mr=ve&&Kt.eq(Ze,ve);Et.push({day:Dt+1,isSelected:jt,date:Ze,isDisabled:At,isHovered:mr,isCurrentMonth:!1})}const mt=[];for(let Dt=0;Dt<Et.length/7;Dt++)mt.push(v.jsx("div",{className:rn.Week,children:Et.slice(Dt*7,Dt*7+7).map((Ze,At)=>v.jsx(Fi,{type:"Raw",className:Fe.clsx(rn.Day,rn.Cell,Ze.isDisabled?rn.IsDisabled:Ze.isCurrentMonth?Ze.isSelected?rn.IsSelected:Ze.isHovered&&rn.IsHovered:rn.IsNotCurrentMonth),isDisabled:Ze.isDisabled,onClick:()=>Ze.isCurrentMonth&&be(Ze.date),onMouseLeave:()=>Ze.isCurrentMonth&&et(),onMouseEnter:()=>Ze.isCurrentMonth&&we(Ze.date),children:Ze.day},At))},Dt));return mt},[X,be,q,j,O,H,ve,et,we]),je=A.useRef(null),ze=A.useCallback(()=>{je&&fm(je,Ge,l)},[je,l]),[We,De]=A.useState(!1),[Ae,_e]=A.useState(!1),Ge=A.useRef(null),lt=A.useCallback(()=>{g||m||(De(!0),setTimeout(()=>_e(!0),0),setTimeout(()=>ze(),0),ue(q?Kt.toString(q):""),de(()=>{const Me=q??new Date;return O&&Me<O?O.getMonth():H&&Me>H?H.getMonth():Me.getMonth()}),re(()=>{const Me=q??new Date;return O&&Me<O?O.getFullYear():H&&Me>H?H.getFullYear():Me.getFullYear()}))},[g,m,q,ze,O,H]),$e=A.useCallback(()=>{g||m||(De(!0),_e(!1))},[g,m]),ht=A.useMemo(()=>Ae?$e:lt,[Ae,lt,$e]),Le=A.useCallback(()=>De(!1),[]),Xe=A.useCallback(Me=>{const pt=document.getElementById("root"),Et=Me.target,mt=Ge.current,Dt=je.current;!pt||!mt||!Et||!Dt||!mt.contains(Et)&&pt.contains(Et)&&!Dt.contains(Et)&&$e()},[$e]);A.useEffect(()=>{if(Ae)return setTimeout(()=>document.addEventListener("mousedown",Xe),0),()=>document.removeEventListener("mousedown",Xe)},[Ae,Xe]);const it=A.useCallback(()=>{ze()},[ze]);A.useEffect(()=>{if(!Ae||!(je!=null&&je.current))return;const Me=je.current;let pt=Me.parentElement;for(;pt;)pt.addEventListener("scroll",it),pt=pt.parentElement;return()=>{let Et=Me.parentElement;for(;Et;)Et.removeEventListener("scroll",it),Et=Et.parentElement}},[je,Ae,it]),A.useEffect(()=>{if(Ae)return window.addEventListener("resize",it),()=>window.removeEventListener("resize",it)},[Ae,it]);const Ct=A.useCallback(Me=>{Me[0].intersectionRatio===0&&$e()},[$e]);A.useEffect(()=>{if(!Ae)return;const Me=new IntersectionObserver(Ct,{threshold:0});return Ge.current&&Me.observe(Ge.current),()=>Me.disconnect()},[Ge,Ae,Ct]),A.useEffect(()=>{i&&(i.current={open:lt,close:$e,toggle:ht})},[i,lt,$e,ht]);const _t=A.useCallback(Me=>{D==null||D(Me),ht()},[D,ht]),wt=A.useCallback(Me=>{be(void 0),$e(),Me.stopPropagation()},[be,$e]),bt=A.useCallback(()=>q?v.jsx(_i,{style:{scale:"0.8"},type:"Raw",icon:"Close",onClick:wt}):null,[q,wt]),St=A.useMemo(()=>q?Kt.toString(q):v.jsx("span",{className:rn.Placeholder,children:L}),[q,L]);return v.jsxs(v.Fragment,{children:[v.jsxs($r,{...E,isLoading:m,isDisabled:g,className:Fe.clsx(rn.Anchor,"IsClickable",rn[e],t),onClick:_t,abaseRef:je,children:[C,e==="Primary"&&v.jsxs(v.Fragment,{children:[v.jsx(jr,{icon:"CalendarDay",className:Fe.clsx(rn.Icon,rn[e])}),v.jsx(mn,{w:4})]}),St,v.jsx(Qc,{}),!_&&v.jsx(bt,{}),e==="Secondary"&&v.jsx(jr,{icon:"CalendarDay",className:Fe.clsx(rn.Icon,rn[e])}),b&&b]}),(Ae||We)&&Hs.createPortal(v.jsxs("div",{className:rn.ADatePicker,onTransitionEnd:Le,style:{opacity:+Ae,visibility:Ae?"visible":"hidden"},ref:Ge,children:[v.jsx("div",{className:rn.StringInputContainer,children:v.jsx(tc,{maxLength:q?30:11,wrapProps:{className:rn.StringInputWrap},inputProps:{className:rn.StringInput},className:rn.String,useValue:[K,Q],placeholder:"YYYY-MM-DD"})}),v.jsxs("div",{className:rn.CalendarContainer,children:[v.jsxs(Sn,{className:rn.Header,children:[v.jsx(Fi,{type:"Raw",className:rn.Prev,onClick:le,isDisabled:ce}),v.jsxs("div",{className:rn.MonthYear,children:[v.jsx(rc,{type:"Secondary",useSelect:[X,de],className:rn.Select,options:Kf(j,O,H),OptionRenderer:Me=>x.months(Me.option),SelectedRenderer:Me=>x.months(Me.selectedOption)}),v.jsx(mn,{w:8}),v.jsx(rc,{type:"Secondary",useSelect:[j,J],className:rn.Select,options:gm(j,O,H)})]}),v.jsx(Fi,{type:"Raw",className:rn.Next,onClick:oe,isDisabled:ke})]}),v.jsx(mn,{h:10}),v.jsxs("div",{className:rn.Calendar,children:[v.jsx("div",{className:rn.Week,children:[0,1,2,3,4,5,6].map(Me=>v.jsx("div",{className:Fe.clsx(rn.WeekDay,rn.Cell),children:x.weekDays(Me)},Me))}),Pe]})]})]}),document.body)]})},dE="_Paper_e69j5_1",hE="_Card_e69j5_15",pE="_Body_e69j5_26",gE="_Title_e69j5_35",mE="_Content_e69j5_42",vE="_Action_e69j5_45",yE="_Button_e69j5_58",ba={Paper:dE,Card:hE,Body:pE,Title:gE,Content:mE,Action:vE,Button:yE},bE=["okCancel","cancelOk","ok","cancel","none"],_E=r=>{const{dlgCore:e,type:t="okCancel",title:n,children:i,style:l,titleStyle:u,bodyStyle:f,contentStyle:g,okButtonStyle:m,cancelButtonStyle:R,actionStyle:C,onOk:b,onCancel:S,onClose:_,onEnterPress:D,onEscPress:E,onSpacePress:x,onPaperClick:L,noDim:O=!1,isLoading:H,isOkDisabled:q,isOkLoading:z,isCancelDisabled:K,isCancelLoading:ue,buttonNoInteractive:X,okButtonClassName:de,cancelButtonClassName:j,resources:re}=r,J=A.useMemo(()=>({...hn.ADialog,...re}),[re]),[Q,he]=A.useState(0);A.useEffect(()=>he(1),[]);const me=A.useCallback(()=>{he(0)},[]),be=A.useCallback(()=>{if(!Q){const[,Ae]=e.state.useIsOpen;Ae==null||Ae(!1),_==null||_()}},[Q,_,e]),ce=A.useCallback(async()=>{if(!Q||t==="cancel"||t==="none"||H||q||z)return;const{event:Ae,e:_e}=Gc();await(b==null?void 0:b(_e)),!Ae.preventDefault&&me()},[Q,t,me,b,q,H,z]),ke=A.useCallback(async()=>{if(!Q||t==="ok"||t==="none"||H||K||ue)return;const{event:Ae,e:_e}=Gc();await(S==null?void 0:S(_e)),!Ae.preventDefault&&me()},[Q,t,me,S,K,H,ue]);A.useEffect(()=>{e&&e.state.setAction({close:me,ok:ce,cancel:ke})},[e,me,ce,ke]);const le=A.useCallback(async()=>{const{event:Ae,e:_e}=Gc();await(D==null?void 0:D(_e)),!Ae.preventDefault&&ce()},[D,ce]),oe=A.useCallback(async()=>{const{event:Ae,e:_e}=Gc();await(x==null?void 0:x(_e)),!Ae.preventDefault&&ce()},[x,ce]),ve=A.useCallback(async()=>{const{event:Ae,e:_e}=Gc();await(E==null?void 0:E(_e)),!Ae.preventDefault&&ke()},[E,ke]),Oe=A.useRef(null),et=A.useCallback(Ae=>{const _e=document.body.getElementsByClassName(ba.Paper);_e.length===0||_e[_e.length-1]!==Oe.current||(Ae.key==="Enter"&&Q?le():Ae.key===" "&&Q?oe():Ae.key==="Escape"&&Q&&ve())},[Q,le,oe,ve]);A.useEffect(()=>{if(Q)return window.addEventListener("keydown",et),()=>window.removeEventListener("keydown",et)},[Q,et]);const we=A.useRef(!1),Pe=A.useRef(!1),je=A.useCallback(()=>{we.current=!0},[]),ze=A.useCallback(()=>{we.current=!1,Pe.current=!1},[]),We=A.useCallback(()=>{Pe.current=!0},[]),De=A.useCallback(async()=>{const Ae=!Pe.current||we.current;if(we.current=!1,Pe.current=!1,Ae)return;const{event:_e,e:Ge}=Gc();await(L==null?void 0:L(Ge)),!_e.preventDefault&&ke()},[L,ke]);return Hs.createPortal(v.jsx("div",{className:ba.Paper,style:{backgroundColor:O?"transparent":void 0,pointerEvents:Q?void 0:"none",opacity:Q},onMouseUp:De,onMouseDown:We,onTransitionEnd:be,ref:Oe,children:v.jsxs($r,{className:ba.Card,onMouseDown:je,onMouseUp:ze,style:l,isLoading:H,children:[v.jsxs("div",{className:ba.Body,style:f,children:[n&&v.jsx(xE,{title:n,titleStyle:u}),i&&v.jsx("div",{className:ba.Content,style:g,children:i})]}),t!=="none"&&v.jsx(SE,{type:t,ok:ce,cancel:ke,resources:J,isOkDisabled:q,isOkLoading:z,isCancelDisabled:K,isCancelLoading:ue,okButtonStyle:m,cancelButtonStyle:R,actionStyle:C,buttonNoInteractive:X,okButtonClassName:de,cancelButtonClassName:j})]})}),document.body)},xE=r=>{const{title:e,titleStyle:t}=r;return v.jsx("div",{className:Fe.clsx(ba.Title,"NoSelect","Title3"),style:t,children:e})},SE=r=>{const{type:e,ok:t,cancel:n,resources:i,isOkDisabled:l,isOkLoading:u,isCancelDisabled:f,isCancelLoading:g,okButtonStyle:m,cancelButtonStyle:R,actionStyle:C,buttonNoInteractive:b,okButtonClassName:S,cancelButtonClassName:_}=r,D=A.useMemo(()=>({onClick:t,isDisabled:l,isLoading:u,children:i.Ok,style:m,noInteractive:b,className:Fe.clsx(ba.Button,S)}),[t,l,u,i.Ok,m,b,S]),E=A.useMemo(()=>({type:"Secondary",onClick:n,isDisabled:f,isLoading:g,children:i.Cancel,style:R,noInteractive:b,className:Fe.clsx(ba.Button,_)}),[n,f,g,i.Cancel,R,b,_]);if(e==="okCancel"||e==="ok")return v.jsxs("div",{className:ba.Action,style:{...C},children:[v.jsx(Fi,{...D}),e==="okCancel"&&v.jsxs(v.Fragment,{children:[v.jsx(mn,{w:8}),v.jsx(Fi,{...E})]})]},e);if(e==="cancelOk"||e==="cancel")return v.jsxs("div",{className:ba.Action,children:[v.jsx(Fi,{...E}),e==="cancelOk"&&v.jsxs(v.Fragment,{children:[v.jsx(mn,{w:8}),v.jsx(Fi,{...D})]})]},e)},CE=r=>{const e=A.useMemo(()=>Math.random().toFixed(32),[]),t=A.useMemo(()=>{const S={};return r.forEach(_=>{S[_]=_+e}),S},[r,e]),n=A.useMemo(()=>[],[]),i=A.useMemo(()=>(n.length=0,n.push(...r),n),[n,r]),[l,u]=A.useState([]),f=A.useRef((()=>{const S={};return i.forEach(_=>{S[_]={open:()=>u(D=>[...D,_]),close:()=>{},ok:()=>{},cancel:()=>{}}}),S})()),g=A.useMemo(()=>{const S={};return i.forEach(_=>{S[_]=D=>{u(E=>!D&&E.includes(_)?E.filter(x=>x!==_):D&&!E.includes(_)?[...E,_]:E)}}),S},[i]),m=A.useMemo(()=>{const S={};return i.forEach(_=>{const E=[l.includes(_),g[_]],x=L=>{f.current[_]={...f.current[_],...L}};S[_]={useIsOpen:E,setAction:x}}),S},[l,g,i]),R=A.useMemo(()=>{const S={};return i.forEach(_=>{const D=()=>f.current[_].open(),E=()=>f.current[_].close(),x=()=>f.current[_].ok(),L=()=>f.current[_].cancel();S[_]={open:D,close:E,ok:x,cancel:L}}),S},[i]),C=A.useMemo(()=>({}),[]),b=A.useMemo(()=>(i.forEach(S=>{C[S]={state:m[S],action:R[S]}}),C),[C,i,m,R]);return A.useEffect(()=>(Object.keys(b).forEach(_=>{const D=b[_],E=t[_],x=js.find(L=>{L.id});x?x.core=D:js.push({id:E,core:D})}),()=>{const _=Object.keys(b),D=js.filter(E=>_.includes(E.id));js.length=0,js.push(...D)}),[b,t]),b},wE=()=>{const r=A.useMemo(()=>Math.random().toFixed(32),[]),[e,t]=A.useState(!1),n=A.useRef({open:()=>t(!0),close:()=>{},ok:()=>{},cancel:()=>{}}),i=A.useMemo(()=>({useIsOpen:[e,t],setAction:g=>{n.current={...n.current,...g}}}),[e]),l=A.useMemo(()=>({open:()=>n.current.open(),close:()=>n.current.close(),ok:()=>n.current.ok(),cancel:()=>n.current.cancel()}),[]),u=A.useMemo(()=>({}),[]),f=A.useMemo(()=>(u.state=i,u.action=l,u),[u,i,l]);return A.useEffect(()=>{const g=js.find(m=>m.id===r);return g?g.core=f:js.push({id:r,core:f}),()=>{const m=js.filter(R=>R.id!==r);js.length=0,js.push(...m)}},[r,f]),f},AE=r=>{const{dlgCore:e,children:t}=r,[n,i]=A.useMemo(()=>e.state.useIsOpen,[e.state.useIsOpen]);return A.useEffect(()=>()=>i==null?void 0:i(!1),[i]),v.jsx(A.Suspense,{children:n&&t})},TE=r=>e=>{const{dlgCore:t}=e;return v.jsx(AE,{dlgCore:t,children:A.cloneElement(v.jsx(r,{...e}),{dlgCore:t})})},js=[],EE={closeAllDlgs:()=>{js.forEach(r=>{r.core.action.close()})}},kE="_AFileBox_1hlo1_1",RE="_SelectedFile_1hlo1_16",IE="_Dropping_1hlo1_26",lh={AFileBox:kE,SelectedFile:RE,Dropping:IE},LE=r=>{const{useFile:e,FileRenderer:t=ME,SelectRenderer:n=DE,DropRenderer:i=OE,resources:l,accept:u="",onInvalidFileFormat:f,fileSelectButtonClassName:g,isDisabled:m,isLoading:R,className:C,...b}=r,S=A.useMemo(()=>({...hn.AFileBox,...l}),[l]),_=A.useRef(null),D=A.useRef(null),[E,x]=nn(e,null),[L,O]=A.useState(!1),H=A.useMemo(()=>u.split(",").map(Q=>Q.trim()).filter(Q=>Q.length>0&&Q.startsWith(".")),[u]),q=A.useCallback(Q=>{if(H.length===0)return!1;const he=Q.name.split(".").pop();return he?!H.includes(`.${he}`):!0},[H]),z=A.useCallback(Q=>{if(x)if(q(Q)){f==null||f();return}else x(Q);else return},[x,q,f]),K=A.useCallback(Q=>{Q.target.files&&Q.target.files.length>0&&z(Q.target.files[0])},[z]),ue=A.useCallback(Q=>{Q.preventDefault(),O(!1),!(m||R)&&Q.dataTransfer.files&&Q.dataTransfer.files.length>0&&z(Q.dataTransfer.files[0])},[z,m,R]),X=A.useCallback(Q=>{Q.preventDefault(),!(m||R)&&O(!0)},[m,R]),de=A.useCallback(Q=>{Q.target===_.current&&Q.relatedTarget.contains(_.current.parentElement)&&(Q.preventDefault(),O(!1))},[]),j=A.useCallback(Q=>Q.preventDefault(),[]),re=A.useCallback(()=>{var Q;(Q=D.current)==null||Q.click()},[]),J=A.useMemo(()=>L?v.jsx(i,{resources:S}):E?v.jsx(t,{file:E,useFile:e}):v.jsx(n,{onClick:re,resources:S,fileSelectButtonClassName:g}),[t,n,i,S,L,E,e,g,re]);return v.jsxs($r,{...b,isDisabled:m,isLoading:R,className:Fe.clsx(lh.AFileBox,C),onDrop:ue,onDragEnter:X,onDragLeave:de,onDragOver:j,abaseRef:_,children:[v.jsx("input",{style:{display:"none"},ref:D,type:"file",onChange:K,value:"",accept:u}),J]})},ME=r=>{const{file:e,useFile:t}=r,[,n]=nn(t,null);return v.jsxs(Sn,{className:lh.SelectedFile,style:{backgroundColor:""},children:[v.jsx(jr,{icon:"File"}),v.jsx(Sa,{children:e.name}),v.jsx(_i,{type:"Raw",icon:"Close",style:{marginLeft:2,transform:"scale(0.8)"},onClick:()=>n==null?void 0:n(null)})]})},DE=r=>{const{onClick:e,resources:t,fileSelectButtonClassName:n}=r;return v.jsxs(Sn,{className:Fe.clsx(lh.SelectFile,"NoSelect"),children:[v.jsx(Fi,{className:n,onClick:e,children:t["Select File"]}),v.jsx(mn,{w:4}),t["or Drag & Drop"]]})},OE=r=>{const{resources:e}=r;return v.jsxs(O2,{className:Fe.clsx(lh.Dropping,"NoSelect","Headline2"),children:[v.jsx(jr,{icon:"FileDownload"}),e["drop file to select"]]})},PE="_AFileUploader_xepa3_1",NE="_LabelContainer_xepa3_13",FE="_LabelButton_xepa3_22",jE="_Disabled_xepa3_28",BE="_Delete_xepa3_35",HE="_FileSize_xepa3_39",qE="_TotalFileSize_xepa3_46",zE="_FileBox_xepa3_50",$E="_SelectRenderer_xepa3_68",UE="_ChipsContainer_xepa3_78",WE="_FileChip_xepa3_88",VE="_FileChipContent_xepa3_100",GE="_FileNameContainer_xepa3_111",ZE="_ButtonRenderer_xepa3_117",KE="_ErrorBorder_xepa3_127",YE="_ErrorColor_xepa3_131",XE="_ErrorCursor_xepa3_135",Fn={AFileUploader:PE,LabelContainer:NE,LabelButton:FE,Disabled:jE,Delete:BE,FileSize:HE,TotalFileSize:qE,FileBox:zE,SelectRenderer:$E,ChipsContainer:UE,FileChip:WE,FileChipContent:VE,FileNameContainer:GE,ButtonRenderer:ZE,ErrorBorder:KE,ErrorColor:YE,ErrorCursor:XE},JE=r=>{const{helperText:e,label:t,labelProps:n,wrapProps:i,wrapType:l,errorMessage:u,useFiles:f,accept:g,onInvalidFileFormat:m,onDownload:R,onDownloads:C,onDelete:b,type:S,limit:_=1024*1024*1024,useError:D,useStatus:E,isLoading:x,resources:L,className:O,...H}=r,q=A.useMemo(()=>({...hn.AFileUploader,...L}),[L]),[z,K]=nn(f,void 0),[ue,X]=nn(D,!1),[de,j]=nn(E,{}),[re,J]=A.useState(!1),Q=A.useRef(null),he=A.useRef(null),me=A.useCallback(Le=>Le.idx!==void 0?`file-${Le.idx}`:`${Le.name}-${Le.size}-${Le.lastModified||""}`,[]),be=A.useMemo(()=>(z==null?void 0:z.reduce((Le,Xe)=>Le+Xe.size,0))||0,[z]);A.useEffect(()=>{X&&X(be>_)},[be,_,X]);const ce=A.useCallback(Le=>{var Ct;if(!g||g==="*"||g==="")return!0;const Xe=g.split(",").map(_t=>_t.trim()),it=`.${(Ct=Le.name.split(".").pop())==null?void 0:Ct.toLowerCase()}`;return Xe.includes(it)?!0:Xe.some(_t=>{var wt;if(_t.startsWith("."))return!1;if(_t.endsWith("/*")){const bt=_t.split("/")[0];return(wt=Le.type)==null?void 0:wt.startsWith(`${bt}/`)}return Le.type===_t})},[g]),ke=A.useCallback((Le,Xe)=>{j==null||j({...de,[Le]:Xe})},[de,j]),le=A.useCallback(Le=>{const Xe=me(Le);return de[Xe]||"Normal"},[de,me]),oe=A.useCallback(Le=>x||le(Le)==="Loading",[x,le]),ve=A.useCallback(Le=>le(Le)==="Error"||S==="Upload"&&Le.size>_,[le,_,S]),Oe=A.useMemo(()=>z!=null&&z.length?S==="Download"?z.every(ve):!1:!0,[z,S,ve]),et=A.useCallback(()=>{Q.current&&(Q.current.value="")},[]),we=A.useCallback(Le=>{if(!K)return;const Xe=[];let it=!1,Ct=[];if(Array.from(Le).forEach(_t=>{if(!ce(_t)){it=!0,Ct.push(_t.name);return}const wt=_t;wt.idx=Date.now()+Math.floor(Math.random()*1e3),wt.state=0,Xe.push(wt)}),it)if(m)m();else{const _t=g?g.replace(/,/g,", "):"",wt=_t?`${q["Supported file format(s)"]}: ${_t}`:"",bt=Ct.length>3?`${Ct.slice(0,3).join(", ")} ${q.and} ${Ct.length-3} ${q["more file(s)"]}`:Ct.join(", ");alert(`${q["Unsupported file format detected."]}
|
157
157
|
|
158
158
|
${q["Invalid file(s)"]}: ${bt}${wt?`
|
159
159
|
|
160
|
-
`+wt:""}`)}Xe.length>0&&K([...z||[],...Xe])},[K,ce,m,g,q,z]),Pe=A.useCallback(()=>{var Le;return(Le=Q.current)==null?void 0:Le.click()},[]),je=A.useCallback(Le=>{const Xe=Le.target.files;Xe!=null&&Xe.length&&(we(Xe),et())},[we,et]),ze=A.useCallback(Le=>{if(b==null||b(Le),!K||!z)return;const Xe=z.filter(it=>Le.idx!==void 0&&it.idx!==void 0?it.idx!==Le.idx:it.name!==Le.name||it.size!==Le.size);K(Xe),et()},[b,K,z,et]),We=A.useCallback(()=>{K&&(K([]),et())},[K,et]),De=A.useCallback(Le=>{if(!R)return;const Xe=me(Le);ke(Xe,"Loading"),R(Le,it=>ke(Xe,it))},[R,me,ke]),Ae=A.useCallback(()=>{w&&(z!=null&&z.length)&&w(z)},[w,z]),_e=A.useMemo(()=>{const Le=Xe=>(Xe.preventDefault(),Xe.stopPropagation(),Xe);return{onDragEnter:Xe=>{Le(Xe),!ue&&!x&&J(!0)},onDragOver:Xe=>{Le(Xe),!ue&&!x&&Xe.dataTransfer&&(Xe.dataTransfer.dropEffect="copy")},onDragLeave:Xe=>{var Ct;Le(Xe);const it=(Ct=he.current)==null?void 0:Ct.contains(Xe.relatedTarget);(!Xe.relatedTarget||!it)&&J(!1)},onDrop:Xe=>{var it;Le(Xe),J(!1),!ue&&!x&&((it=Xe.dataTransfer.files)!=null&&it.length)&&we(Xe.dataTransfer.files)}}},[ue,x,we]),Ge=A.useMemo(()=>{const Le=Fe.clsx(Fn.ButtonRenderer,"NoSelect");return{upload:Xe=>v.jsx(_i,{icon:"X",iconSize:"sm",tooltip:q.Delete,type:"Raw",className:Le,style:{color:"var(--label-neutral)"},onClick:()=>ze(Xe)}),loading:()=>v.jsx(_i,{icon:"Spinner",iconSize:"sm",type:"Raw",className:Le}),error:()=>v.jsx(_i,{icon:"CircleAlertOutline",iconSize:"sm",type:"Raw",className:Fe.clsx(Le,Fn.ErrorColor,Fn.ErrorCursor),tooltip:q["Fail Download"]}),download:Xe=>v.jsx(_i,{icon:"FileDownload",iconSize:"sm",tooltip:q.Download,type:"Raw",className:Le,style:{color:"var(--acent-brand)"},onClick:()=>De(Xe)})}},[q,ze,De]),lt=A.useCallback((Le,Xe)=>{const it=oe(Le),Ct=ve(Le),_t=()=>S==="Upload"?Ge.upload(Le):it?Ge.loading():Ct?Ge.error():Ge.download(Le);return v.jsx(hm,{label:v.jsx("div",{className:Fn.FileChipContent,children:v.jsxs(Sn,{className:Fn.FileNameContainer,children:[v.jsx(Sa,{className:Fe.clsx(Ct&&Fn.ErrorColor),children:Le.name}),v.jsx("span",{className:Fn.FileSize,children:Kc(Le.size)})]})}),ButtonRenderer:_t,className:Fe.clsx(Fn.FileChip,Ct&&Fn.ErrorBorder)},Xe)},[oe,ve,S,Ge]),$e=A.useCallback(()=>v.jsx("div",{className:Fe.clsx(Fn.FileBox,ue&&Fn.ErrorBorder,ue&&Fn.ErrorColor,ue&&Fn.ErrorCursor),..._e,ref:he,children:re?v.jsxs(Sn,{className:Fe.clsx("NoSelect"),style:{gap:4},children:[v.jsx(jr,{icon:"FileDownload"}),v.jsx("span",{children:q["Drop file to select"]})]}):v.jsx(Fi,{type:"Raw",className:Fe.clsx(Fn.SelectRenderer,"NoSelect"),onClick:Pe,isDisabled:ue||x,children:q["Insert File"]})}),[ue,re,q,Pe,x,_e]),ht=A.useMemo(()=>{const Le=S==="Upload",Xe=Le?q["Delete All"]:q["Download All"],it=Le?We:Ae;return v.jsxs(Sn,{className:Fn.LabelContainer,children:[t,S==="Upload"&&v.jsxs(Sa,{className:Fe.clsx(Fn.TotalFileSize,"NoSelect"),children:["(",v.jsx("span",{className:Fe.clsx(ue&&Fn.ErrorColor),children:Kc(be)})," / ",Kc(_),")"]}),v.jsx("span",{className:Fe.clsx(Fn.LabelButton,"Label1",Oe&&Fn.Disabled,Le&&Fn.Delete),onClick:Oe?void 0:it,children:Xe})]})},[S,q,We,Ae,t,ue,be,_,Oe]);return S==="Download"&&!(z!=null&&z.length)?null:v.jsxs(ec,{helperText:e,wrapProps:i,wrapType:l,labelProps:n,errorMessage:u,label:ht,children:[v.jsx("input",{style:{display:"none"},ref:Q,type:"file",multiple:!0,onChange:je,accept:g||""}),v.jsx($r,{...H,className:Fe.clsx(Fn.AFileUploader,O),children:v.jsxs(Sn,{className:Fn.ChipsContainer,children:[S==="Upload"&&$e(),z==null?void 0:z.map(lt)]})})]})},QE="_AFloatMenu_xco8u_1",ek="_Content_xco8u_10",o0={AFloatMenu:QE,Content:ek},j2=r=>{const{defs:e,defaultDef:t,actionRef:n,offset:i,onClose:l,onClick:u,onPaperClick:f,position:g=ef.ES,width:m=137}=r,R=A.useMemo(()=>({content:tk,...t}),[t]),w=A.useMemo(()=>{const j={};return er.keys(e).forEach(re=>{const J=e[re],Q={...R,...J};Q.noDisplay||(j[re]=Q)}),j},[R,e]),[b,S]=A.useState(null),_=A.useCallback(j=>{X_(j,O,g,i),S(j)},[g,i]),[D,E]=A.useState(!1),[x,L]=A.useState(!1),O=A.useRef(null),H=A.useCallback(j=>{L(!0),setTimeout(()=>E(!0),0),setTimeout(()=>_(j),0)},[_]),q=A.useCallback(()=>{E(!1),L(!0),l==null||l()},[l]),z=A.useCallback(()=>L(!1),[]),K=A.useCallback(async j=>{const re=document.getElementById("root"),J=j.target,Q=O.current;!re||!Q||!J||!Q.contains(J)&&re.contains(J)&&(await(f==null?void 0:f(j)),q())},[q,f]);A.useEffect(()=>{if(D)return setTimeout(()=>document.addEventListener("mousedown",K),0),()=>document.removeEventListener("mousedown",K)},[D,K]);const ue=A.useCallback(()=>{b&&_(b)},[_,b]);A.useEffect(()=>{if(!D||!b)return;let j=b.parentElement;for(;j;)j.addEventListener("scroll",ue),j=j.parentElement;return()=>{let re=b.parentElement;for(;re;)re.removeEventListener("scroll",ue),re=re.parentElement}},[b,D,ue]),A.useEffect(()=>{if(D)return window.addEventListener("resize",ue),()=>window.removeEventListener("resize",ue)},[D,ue]);const X=A.useCallback(j=>{j[0].intersectionRatio===0&&q()},[q]);A.useEffect(()=>{if(!D)return;const j=new IntersectionObserver(X,{threshold:0});return O.current&&j.observe(O.current),()=>j.disconnect()},[O,D,X]),A.useEffect(()=>{n&&(n.current={open:H,close:q})},[n,H,q]);const de=A.useCallback(j=>{var re;if(D){if((re=w[j])!=null&&re.isDisabled)return}else return;u==null||u(j),q()},[D,u,q,w]);return!D&&!x?null:Hs.createPortal(v.jsx("div",{className:o0.AFloatMenu,style:{opacity:+D,visibility:D&&Object.keys(w).length>0?"visible":"hidden",minWidth:m},onTransitionEnd:z,ref:O,children:er.map(w,([j],re)=>{const J={...R,...w[j]};let{content:Q,noDisplay:he,tooltipDirection:me=yi.E,...be}=J;return he?null:(Q=Lr.getContent(J.content,{defKey:j,def:J}),A.createElement($r,{...be,key:re,className:Fe.clsx(o0.Content,"Label2","IsClickable",be.className),onClick:ce=>{var ke;de==null||de(j),(ke=be.onClick)==null||ke.call(be,ce)},tooltipDirection:me},Q))})}),document.body)},tk=r=>r.defKey;function rk(r){try{const e=Number.parseInt(r);return isNaN(e)?void 0:e}catch{return}}const B2={parseInt:rk},nk=`${Number.MAX_SAFE_INTEGER}`.length-1,ik=r=>{const{unit:e,type:t="Secondary",min:n,max:i,useValue:l,onEnterPress:u,canAsterisk:f=!1,onFocus:g,...m}=r,R=A.useMemo(()=>i!==void 0&&n!==void 0?Math.max(`${i}`.length+1,`${n}`.length+1):nk,[n,i]),[w,b]=nn(l,""),S=A.useCallback(x=>{if(b)if(f&&x.startsWith("*"))b("*");else if(x==="")b("");else if(x==="-")b("-");else{x=x.replace(/[^0-9-]/g,"");try{const L=B2.parseInt(x);L!==void 0&&(n!==void 0&&L<n?b(`${n}`):i!==void 0&&L>i?b(`${i}`):b(`${L}`))}catch(L){console.error("ANumInput : ",L)}}},[b,f,n,i]),_=A.useRef(null),D=A.useCallback(x=>{var L;(L=_.current)==null||L.blur(),u==null||u(x)},[u]),E=A.useMemo(()=>n===void 0&&i===void 0?e??"number":`${n??""}~${i??""}`,[n,i,e]);return v.jsx(tc,{...m,type:t,className:Fe.clsx(to.ANumInput,r.className),autoComplete:"off",onEnterPress:D,useValue:[w,S],maxLength:R,placeholder:E,RightAddon:r.unit&&v.jsx("span",{style:{marginRight:4},children:r.unit}),inputRef:_})},ok="_AListView_k7t2d_1",sk="_Row_k7t2d_10",ak="_Label_k7t2d_20",lk="_Content_k7t2d_30",kd={AListView:ok,Row:sk,Label:ak,Content:lk},ck=r=>{const{defs:e,defaultDef:t,item:n,rowHeight:i,labelWidth:l,noBorder:u,style:f,...g}=r,m=u?"":"var(--AListView_border-thin)",R=u?"":"var(--AListView_border-thick)",w=A.useMemo(()=>({content:fk,label:uk,...t}),[t]),b=A.useMemo(()=>{const S={};return er.keys(e).forEach(_=>{const D=e[_],E={...w,...D};S[_]=E}),S},[w,e]);return v.jsx($r,{...g,className:Fe.clsx(kd.AListView,g.className),style:{...f,borderTop:m},children:er.map(b,([S])=>{const _={...w,...b[S]},D=Lr.getContent(_.label,{defKey:S,item:n,def:_}),E=Lr.getContent(_.content,{defKey:S,item:n||{[S]:""},def:_}),x=Lr.getContent(_.bold||"label",{defKey:S,item:n,def:_});return v.jsxs("div",{className:kd.Row,style:{height:i,borderBottom:m},children:[v.jsx("div",{className:Fe.clsx(kd.Label,"NoSelect",x!=="content"&&"Bold"),style:{width:l,minWidth:l,maxWidth:l,borderLeft:R,paddingLeft:u?0:10},children:v.jsx(Sa,{children:D})}),v.jsx("div",{className:Fe.clsx(kd.Content,x!=="label"&&"Bold"),style:{borderLeft:R,borderRight:R},children:v.jsx(Sa,{style:{width:"100%",padding:u?0:10},children:E})})]},S)})})},uk=r=>r.defKey,fk=r=>{const{defKey:e,item:t}=r;if(t)if(er.hasKey(t,e)){const n=t[e];return er.isReactNode(n)?n:null}else return null;else return null},dk="_ALoadingBorder_kwc1g_1",hk="_ProgressBar_kwc1g_9",pk="_IsLoading_kwc1g_15",gk="_load_kwc1g_1",mk="_Cover_kwc1g_19",Lf={ALoadingBorder:dk,ProgressBar:hk,IsLoading:pk,load:gk,Cover:mk},vm=r=>{const{isLoading:e}=r,[t,n]=A.useState(!1),i=A.useRef(null);return A.useEffect(()=>{e?(n(!0),i.current&&clearTimeout(i.current)):i.current=setTimeout(()=>n(!1),300)},[e]),v.jsxs("div",{className:Lf.ALoadingBorder,children:[v.jsx("div",{className:Fe.clsx(Lf.ProgressBar,t&&Lf.IsLoading)}),v.jsx("div",{className:Fe.clsx(Lf.Cover,e&&Lf.IsLoading),style:{transition:"all 300ms"}})]})},vk="_Container_tmqll_1",yk="_Option_tmqll_7",bk="_RadioButton_tmqll_14",_k="_InnerCircle_tmqll_24",xk="_isChecked_tmqll_29",qu={Container:vk,Option:yk,RadioButton:bk,InnerCircle:_k,isChecked:xk},Sk=r=>{const{options:e,useSelect:t,selectDisabled:n,radius:i=23,innerRadius:l=i*.6,OptionRenderer:u=H2}=r,[f,g]=nn(t,e[0]);return v.jsx("div",{className:qu.Container,children:e.map((m,R)=>{const w=n==null?void 0:n(m),b=()=>w?null:g==null?void 0:g(m);return v.jsxs(Sn,{className:Fe.clsx(qu.Option,"IsClickable"),isDisabled:w,onClick:b,children:[v.jsx(Ck,{isChecked:f===m,radius:i,innerRadius:l},R),v.jsx(u,{option:m})]},R)})})},H2=({option:r})=>r,Ck=({isChecked:r,radius:e,innerRadius:t})=>v.jsx($r,{className:Fe.clsx(qu.RadioButton,r&&qu.isChecked),style:{width:e,height:e},children:v.jsx($r,{className:Fe.clsx(qu.InnerCircle,r&&qu.isChecked),style:{width:t,height:t}})}),wk="_AMultiSelect_mr38x_1",Ak="_Arrow_mr38x_15",Tk="_Primary_mr38x_24",Ek="_UnAvailable_mr38x_35",kk="_IsOpen_mr38x_35",Rk="_Secondary_mr38x_42",Ik="_Placeholder_mr38x_58",Lk="_ValuesContainer_mr38x_63",Mk="_Values_mr38x_63",Dk="_Options_mr38x_82",Ok="_Option_mr38x_82",Pk="_Selected_mr38x_124",Nk="_CheckBox_mr38x_131",yo={AMultiSelect:wk,Arrow:Ak,Primary:Tk,UnAvailable:Ek,IsOpen:kk,Secondary:Rk,Placeholder:Ik,ValuesContainer:Lk,Values:Mk,Options:Dk,Option:Ok,Selected:Pk,CheckBox:Nk},Fk=r=>{const{options:e,useSelect:t,type:n="Primary",placeholder:i=hn.AMultiSelect["Select(Placeholder)"],onClose:l,SelectedRenderer:u=Bk,OptionRenderer:f=Hk,minShowRows:g=2,maxShowRows:m=6,arrowProps:R,isAutoWidth:w=!1,...b}=r,S=A.useRef(null),_=A.useMemo(()=>b.abaseRef??S,[b.abaseRef]),D=A.useRef(null),[E,x]=nn(t,[]),[L,O]=A.useState(void 0),H=A.useRef(e),q=A.useRef(null),[z,K]=A.useState(!1),[ue,X]=A.useState(!1),de=A.useCallback(()=>X(!1),[]),j=A.useCallback(()=>{b.isDisabled||b.isLoading||e.length<1||(X(!0),setTimeout(()=>K(!0),0),setTimeout(()=>Jh(D,_,e,g,m),0))},[_,b.isDisabled,b.isLoading,e,g,m]),re=A.useCallback(()=>{K(!1),X(!0),l==null||l()},[l]),J=A.useCallback(le=>{var oe;z?re():j(),setTimeout(()=>Jh(D,_,e,g,m),0),(oe=b.onClick)==null||oe.call(b,le)},[_,b,e,z,re,j,g,m]),Q=A.useCallback(()=>{Jh(D,_,e,g,m)},[_,e,g,m]);A.useEffect(()=>{if(!z||!_.current)return;const le=_.current;let oe=le.parentElement;for(;oe;)oe.addEventListener("scroll",Q),oe=oe.parentElement;return()=>{let ve=le.parentElement;for(;ve;)ve.removeEventListener("scroll",Q),ve=ve.parentElement}},[_,z,Q]),A.useEffect(()=>{if(z)return window.addEventListener("resize",Q),()=>window.removeEventListener("resize",Q)},[z,Q]);const he=A.useCallback(le=>{le[0].intersectionRatio===0&&re()},[re]);A.useEffect(()=>{if(!z)return;const le=new IntersectionObserver(he,{threshold:0});return _.current&&le.observe(_.current),()=>le.disconnect()},[_,z,he]);const me=A.useCallback(le=>{const oe=le.target,ve=_.current,Oe=D.current;!ve||!oe||!Oe||!ve.contains(oe)&&!Oe.contains(oe)&&re()},[_,re]),be=A.useMemo(()=>b.isDisabled||b.isLoading||e.length<1,[b.isDisabled,b.isLoading,e]);A.useEffect(()=>{if(z)return setTimeout(()=>document.addEventListener("mousedown",me),0),()=>document.removeEventListener("mousedown",me)},[z,me]);const ce=A.useCallback((le,oe)=>{le.stopPropagation(),le.preventDefault();let ve=[...E];ve.includes(oe)?ve=ve.filter(Oe=>Oe!==oe):ve.push(oe),x==null||x(ve)},[E,x]),ke=A.useCallback(()=>{if(!w||!_.current)return;const le=Zc.calculateOptimalSelectWidth({elementRef:_,options:e,selectedOptions:E,placeholder:i,optionRenderer:oe=>f({option:oe}),type:n,isMulti:!0});O(le)},[w,_,e,E,i,f,n]);return A.useEffect(()=>w?((e!==H.current||L===void 0)&&(q.current!==null&&cancelAnimationFrame(q.current),q.current=requestAnimationFrame(()=>{ke(),q.current=null,H.current=[...e]})),()=>{q.current!==null&&(cancelAnimationFrame(q.current),q.current=null)}):void 0,[w,e,ke,L]),A.useEffect(()=>()=>{typeof Zc.clearCache=="function"&&Zc.clearCache()},[]),v.jsxs(v.Fragment,{children:[v.jsxs($r,{...b,isDisabled:b.isDisabled||e.length<1,className:Fe.clsx(b.className,yo.AMultiSelect,"NoSelect",z&&yo.IsOpen,be&&yo.UnAvailable,yo[n]),style:{padding:n==="Secondary"?"8px 8px 8px 0":0,width:L?`${L}px`:w?"100px":void 0,...b.style},abaseRef:_,onClick:J,children:[v.jsx("div",{className:yo.ValuesContainer,children:v.jsx("div",{className:Fe.clsx(yo.Values,E.length<1&&yo.Placeholder),children:v.jsx(u,{OptionRenderer:f,selectedOptions:E,placeholder:i})})}),v.jsx("div",{...R,className:Fe.clsx(yo.Arrow,R==null?void 0:R.className),children:v.jsx(jr,{style:{transform:z?"rotate(180deg)":"",transition:"var(--Transition)"},icon:"TriangleDown"})})]}),e.length>0&&(z||ue)&&Hs.createPortal(v.jsx("div",{className:Fe.clsx(yo.Options,yo[n]),onTransitionEnd:de,style:{opacity:+z,visibility:z?"visible":"hidden",pointerEvents:z?void 0:"none",width:L?`${L}px`:w?"100px":void 0,borderRadius:_.current?window.getComputedStyle(_.current).borderRadius:void 0},ref:D,children:e.map((le,oe)=>{var Oe;const ve=E.includes(le);return v.jsxs("div",{className:Fe.clsx(yo.Option,ve&&yo.Selected,"NoSelect",yo[n]),style:{height:(Oe=_.current)==null?void 0:Oe.getBoundingClientRect().height},onClick:et=>ce(et,le),children:[v.jsx(Zu,{className:yo.CheckBox,useCheck:[+ve,void 0]}),v.jsx(f,{option:le})]},oe)})}),document.body)]})};function Jh(r,e,t,n,i){if(!e.current||!r.current||!t||t.length<1)return;const l=e.current.getBoundingClientRect(),u=jk(l,t.length,n,i),f=window.getComputedStyle(e.current);r.current.style.top=`calc(${u.top??0}px - ${f.borderTopWidth})`,r.current.style.bottom=u.bottom?u.bottom+"px":"",r.current.style.left=u.left+"px",r.current.style.width||(r.current.style.minWidth=u.minWidth+"px"),r.current.style.minHeight=u.minHeight+"px",r.current.style.maxHeight=u.maxHeight+"px",r.current.style.visibility="visible"}function jk(r,e,t,n){const i={top:r.bottom,bottom:void 0,left:r.left,height:"fit-content",minWidth:r.width,minHeight:r.height*Math.min(t,e),maxHeight:r.height*n>window.innerHeight-r.bottom-10?window.innerHeight-r.bottom-10:r.height*n};return window.innerHeight-r.bottom-10<i.height&&(window.innerHeight-r.bottom-10<i.minHeight?(i.top=r.top-e*r.height,i.top<0&&(i.top=10,i.minHeight=r.top-10,i.height=r.top-10)):i.height=window.innerHeight-r.bottom-10),i}const Bk=r=>{const{OptionRenderer:e,selectedOptions:t,placeholder:n}=r;return t.length<1?n:t.length===1?v.jsx(e,{option:t[0]}):`${t.length} selected`},Hk=r=>{const{option:e}=r;return er.isReactNode(e)?e:null},qk="_Container_10ion_1",zk="_Steps_10ion_9",$k="_Step_10ion_9",Uk="_OutCircle_10ion_26",Wk="_IsOver_10ion_37",Vk="_InCircle_10ion_41",Gk="_Line_10ion_54",Zk="_Left_10ion_66",Kk="_Right_10ion_69",Yk="_ContentContainer_10ion_73",Xk="_Content_10ion_73",eo={Container:qk,Steps:zk,Step:$k,OutCircle:Uk,IsOver:Wk,InCircle:Vk,Line:Gk,Left:Zk,Right:Kk,ContentContainer:Yk,Content:Xk},Jk=r=>{const{useSelect:e,steps:t,StepRenderer:n=s0,ContentRenderer:i=s0}=r;if(t.length===0)throw new Error("steps should have at least one element");const l=A.useRef(null),[u,f]=nn(e,t[0]),g=A.useCallback(R=>f==null?void 0:f(R),[f]),m=A.useMemo(()=>t.indexOf(u),[u,t]);return A.useEffect(()=>{m<0&&g(t[0])},[m,t,g]),v.jsxs("div",{className:eo.Container,children:[v.jsx("div",{className:eo.Steps,children:t.map((R,w)=>{const b=t.indexOf(R),S=m>=w,_=m>w;return v.jsxs("div",{className:eo.Step,children:[w!==0&&v.jsx("div",{className:Fe.clsx(eo.Line,eo.Left,S&&eo.IsOver)}),w!==t.length-1&&v.jsx("div",{className:Fe.clsx(eo.Line,eo.Right,_&&eo.IsOver)}),v.jsx(Fi,{type:"Raw",className:Fe.clsx(eo.OutCircle,S&&eo.IsOver),onClick:()=>g(R),children:v.jsx("div",{className:Fe.clsx(eo.InCircle,S&&eo.IsOver)})}),v.jsx(n,{step:R,stepIdx:b})]},w)})}),v.jsx("div",{className:eo.ContentContainer,ref:l,children:t.map((R,w)=>{const b=t.indexOf(R);return v.jsx("div",{className:eo.Content,style:w===0?{marginLeft:`${m*-100}%`}:{},children:v.jsx(i,{step:R,stepIdx:b})},w)})})]})},s0=r=>{const{step:e}=r;return typeof e=="object"?er.stringify(e):e},Qk="_ATab_1ikea_1",e8="_Option_1ikea_9",t8="_Underline_1ikea_22",r8="_IsSelected_1ikea_22",n8="_IndicatorTrack_1ikea_33",i8="_Indicator_1ikea_33",o8="_Primary_1ikea_49",s8="_Secondary_1ikea_56",a8="_IsDisabled_1ikea_66",l8="_Tertiary_1ikea_80",c8="_Quaternary_1ikea_110",Zl={ATab:Qk,Option:e8,Underline:t8,IsSelected:r8,IndicatorTrack:n8,Indicator:i8,Primary:o8,Secondary:s8,IsDisabled:a8,Tertiary:l8,Quaternary:c8},u8=["Primary","Secondary","Tertiary","Quaternary"],q2=r=>{const{options:e,useSelect:t,selectDisabled:n,type:i="Primary",tabProps:l,optionProps:u,optionWidth:f,OptionRenderer:g=f8,RightAddon:m,color:R,underline:w}=r;if(e.length===0)throw new Error("options should have at least one element");const b=A.useMemo(()=>e.findIndex(ce=>!(n!=null&&n(ce))),[e,n]),S=i==="Tertiary"?2:0,_=i==="Secondary"?8:0,D=A.useMemo(()=>S+_,[S,_]),E=i==="Tertiary"?2:0,x=A.useMemo(()=>(_-S-E-E)/e.length,[e.length,S,_,E]),[L,O]=nn(t,e[b]),H=A.useRef([]),q=A.useCallback(ce=>O==null?void 0:O(ce),[O]),z=A.useMemo(()=>typeof f=="number"?f+"px":f,[f]),K=A.useMemo(()=>e.indexOf(L),[e,L]),ue=A.useMemo(()=>`calc(${100/e.length}% + ${x}px)`,[e.length,x]),X=A.useMemo(()=>z||`calc(${ue} - ${D}px)`,[ue,D,z]),[de,j]=A.useState(0),[re,J]=A.useState(0),[Q,he]=A.useState(X),me=A.useMemo(()=>{let ce;switch(z){case void 0:ce=`calc(${ue} * ${K})`;break;case"fit-content":ce=`calc(${de}px)`;break;default:ce=`calc((${z} + ${D}px) * ${K})`;break}return`calc(${ce} + ${E}px)`},[z,E,ue,K,de,D]),be=A.useMemo(()=>{switch(z){case void 0:return;case"fit-content":return`calc(${re}px)`;default:return`calc((${z} + ${D}px - ${x}px) * ${e.length})`}},[z,x,D,e,re]);return A.useEffect(()=>{var ke,le;if(e.includes(L)||O==null||O(e[b]),z!=="fit-content"){he(X);return}let ce=0;H.current.forEach((oe,ve)=>{ve<K&&oe.current&&(ce+=oe.current.offsetWidth+D)}),j(ce),he(`calc(${((le=(ke=H.current[K])==null?void 0:ke.current)==null?void 0:le.offsetWidth)||0}px)`),J(H.current.reduce((oe,ve)=>{var Oe;return oe+((((Oe=ve.current)==null?void 0:Oe.offsetWidth)||0)+D-x)},0))},[z,H,e,L,O,b,x,D,K,X]),v.jsxs("div",{...l,className:Fe.clsx(Zl.ATab,"Headline2",Zl[i],l==null?void 0:l.className),children:[v.jsx("div",{className:Zl.Indicator,style:{minWidth:Q,left:me,marginLeft:S}}),v.jsx("div",{className:Zl.IndicatorTrack,style:{width:be}}),v.jsx(mn,{w:E}),e.map((ce,ke)=>{const le=n==null?void 0:n(ce);return H.current[ke]||(H.current[ke]=A.createRef()),v.jsx($r,{abaseRef:H.current[ke],...u,style:{minWidth:X,maxWidth:X,marginLeft:S,marginRight:_,"--color":R,...u==null?void 0:u.style},className:Fe.clsx(Zl.Option,le&&Zl.IsDiabled,ce===L&&Zl.IsSelected,"IsClickable",w&&Zl.Underline,u==null?void 0:u.className),onClick:oe=>{!le&&q(ce),u&&u.onClick&&u.onClick(oe)},isDisabled:le,children:v.jsx(g,{option:ce})},ke)}),v.jsx(mn,{w:E+S}),m&&v.jsxs(v.Fragment,{children:[v.jsx(Qc,{}),m]})]})},f8=r=>{const{option:e}=r;if(typeof e=="string")return e;if(typeof e=="number")return e;if(typeof e=="object"){if(e===null)return"";const t=er.keys(e);return"name"in t?e.name:"label"in t?e.label:"value"in t?e.value:JSON.stringify(e)}else return JSON.stringify(e)};function z2(...r){const e=A.useRef(!1);A.useEffect(()=>{e.current||(e.current=!0,r.forEach(t=>t()))},[r])}const $2={String:(r,e,t,n)=>{const{value:i}=n;if(i===void 0)return!1;if(t==="")return er.keys(e).some(R=>{const w=e[R],b=Lr.getContent(w.asText,{defKey:R,def:w,item:r});if(b!==void 0)return b.toString().toLowerCase().includes(i.toLowerCase());const S=Lr.getContent(w.content,{defKey:R,def:w,item:r});return["string","number"].includes(typeof S)&&S!==void 0&&S!==null?S.toString().toLowerCase().includes(i.toLowerCase()):!1});const l=er.keys(e),u=t;if(!l.includes(u))return!1;const f=e[u],g=Lr.getContent(f.asText,{defKey:u,def:f,item:r});if(g!==void 0)return g.toString().toLowerCase().includes(i.toLowerCase());const m=Lr.getContent(f.content,{defKey:u,def:f,item:r});return["string","number"].includes(typeof m)&&m!==void 0&&m!==null?m.toString().toLowerCase().includes(i.toLowerCase()):!1},Select:(r,e,t,n)=>{const{value:i}=n;if(i==null)return!1;const l=er.keys(e),u=t;if(!l.includes(u))return!1;const f=e[u],g=Lr.getContent(f.asText,{defKey:u,def:f,item:r});if(g!==void 0)return i.toString().toLowerCase()===g.toString().toLowerCase();const m=Lr.getContent(f.content,{defKey:u,def:f,item:r});return["string","number"].includes(typeof m)&&m!==void 0&&m!==null?i.toString().toLowerCase()===m.toString().toLowerCase():!1},Date:(r,e,t,n)=>{const{value:i}=n;if(i===void 0)return!1;const l=er.keys(e),u=t;if(!l.includes(u))return!1;const f=e[u],g=Lr.getContent(f.asText,{defKey:u,def:f,item:r});if(g!==void 0){const R=Kt.toDate(g.toString());return R&&Kt.eq(R,i)}const m=Lr.getContent(f.content,{defKey:u,def:f,item:r});if(["string","number"].includes(typeof m)&&m!==void 0&&m!==null){const R=Kt.toDate(m.toString());return R&&Kt.eq(R,i)}return!1},DateRange:(r,e,t,n)=>{const{value:i}=n;if(i===void 0)return!1;const l=er.keys(e),u=t;if(!l.includes(u))return!1;const f=e[u],g=Lr.getContent(f.asText,{defKey:u,def:f,item:r});if(g!==void 0){const R=Kt.toDate(g.toString());return R&&Kt.be(i.sDate,R,i.eDate)}const m=Lr.getContent(f.content,{defKey:u,def:f,item:r});if(["string","number"].includes(typeof m)&&m!==void 0&&m!==null){const R=Kt.toDate(m.toString());return R&&Kt.be(i.sDate,R,i.eDate)}return!1}},d8=(r,e,t)=>{let n=r;return er.keys(t).forEach(l=>{const u=t[l];u.value===void 0||u.value===null||u.value===""||(n=n.filter(f=>{var g;return(g=u.predicate??$2[u.type])==null?void 0:g(f,e,l,u)}))}),n},h8=(r,e,t)=>{if(!t)return r;const n=t.defKey,i=e[n];if(n===void 0)return r;const l=t.sortF??((u,f)=>{const g=Lr.getContent(i.content,{defKey:n,def:i,item:u}),m=Lr.getContent(i.content,{defKey:n,def:i,item:f});return typeof g=="string"&&typeof m=="string"?g<m?-1:g>m?1:0:typeof g=="number"&&typeof m=="number"?g-m:typeof g=="string"&&typeof m=="number"?-1:typeof g=="number"&&typeof m=="string"||g===void 0&&m!==void 0?1:g!==void 0&&m===void 0?-1:0});return r.slice().sort((u,f)=>t.isAsc?l(u,f):l(f,u))},p8=(r,e,t)=>r.slice((e-1)*t,e*t),U2=(r,e)=>{const t=Math.max(Math.ceil(r/e),1);return Array.from({length:t},(n,i)=>i+1)},g8=(r,e,t,n)=>{const i=U2(e,t),l=Math.floor((r-1)/n),u=l*n+1,f=(l+1)*n,g=i.slice(u-1,f);return{pages:i,rangedPages:g}},m8=(r,e,t)=>{const n=[],i=Object.keys(t),l=[];i.forEach(b=>{const S=t[b],_=Lr.getContent(S.hContent,{defKey:b,def:S});if(_!==void 0){if(typeof _=="string"){l.push(_);return}else if(typeof _=="number"){l.push(_.toString());return}}const D=Lr.getContent(S.name,{defKey:b,def:S});if(D!==void 0&&typeof D=="string"){l.push(D);return}l.push(b)});const u=l.map(b=>`"${b.replaceAll('"','""')}"`);n.push(u.join(",")),e.forEach(b=>{const S=[];i.forEach(D=>{const E=t[D],x=Lr.getContent(E.content,{defKey:D,def:E,item:b});if(x!==void 0){if(typeof x=="string"){S.push(x);return}else if(typeof x=="number"){S.push(x.toString());return}}const L=b[D];typeof L=="string"?S.push(L):typeof L=="number"?S.push(L.toString()):S.push("")});const _=S.map(D=>`"${D.replaceAll('"','""')}"`);n.push(_.join(","))});const f=`${r}.csv`,g="\uFEFF"+n.join(`
|
161
|
-
`),m=new Blob([g],{type:"text/csv;charset=UTF-8"}),R=URL.createObjectURL(m),w=document.createElement("a");w.href=R,w.download=f,w.click(),URL.revokeObjectURL(R)},v8=r=>{const e=er.keys(r);if(e.length!==1)return;const t=e[0];if(t!=="")return;const n=r[t];if(n.type==="String")return n.value},y8=r=>{const e=Object.entries(r);let t={};return e.forEach(([n,i])=>{!i||i.value===void 0||i.value===null||i.value===""||(i.type==="DateRange"?(t[i.sFilterKey]=i.value.sDate,t[i.eFilterKey]=i.value.eDate):t[i.filterKey??n]=i.value)}),t},b8=r=>{const e=er.keys(r).filter(i=>i!=="");if(e.length!==1)return;const t=e[0],n=r[t];return!n||n.value===void 0||n.value===null||n.value===""?{selectedKey:t,value:void 0}:{selectedKey:t,value:n.value}},tl={applyFilteration:d8,applySortation:h8,applyPagination:p8,getPages:U2,getRangedPages:g8,downloadCsv:m8,getSingleFilterValue:v8,getMultiFilterValues:y8,getSelectFilterValue:b8},_8="_ATable_12zow_1",x8={ATable:_8};function W2(r,e,t,n){A.useEffect(()=>{if(r)return r.addEventListener(e,t,n),()=>{r.removeEventListener(e,t,n)}},[r,e,t,n])}const S8="_BodyHeader_43b3m_1",C8="_TRow_43b3m_7",w8="_OverflowSpace_43b3m_13",A8="_BodyBody_43b3m_19",T8="_IsSelected_43b3m_40",E8="_IsSelectable_43b3m_44",k8="_IsRowMarked_43b3m_52",R8="_TH_43b3m_57",I8="_TD_43b3m_62",L8="_IsMarked_43b3m_62",M8="_Resizer_43b3m_81",D8="_IsMoving_43b3m_93",O8="_IsResizable_43b3m_96",P8="_ResizerCenter_43b3m_99",N8="_ResizerOut_43b3m_105",F8="_ResizerIn_43b3m_109",j8="_IsClicked_43b3m_144",B8="_NoItems_43b3m_151",H8="_Content_43b3m_157",_n={BodyHeader:S8,TRow:C8,OverflowSpace:w8,BodyBody:A8,IsSelected:T8,IsSelectable:E8,IsRowMarked:k8,TH:R8,TD:I8,IsMarked:L8,Resizer:M8,IsMoving:D8,IsResizable:O8,ResizerCenter:P8,ResizerOut:N8,ResizerIn:F8,IsClicked:j8,NoItems:B8,Content:H8},Yl=25,q8=r=>{const{defs:e,isEqual:t,rProps:n,useSelect:i,isTableDisabled:l,isSelectMulti:u,selectDisabled:f,appliedFilteration:g,useSortation:m,pagination:R,pagedItems:w,noMarking:b,noDefHeader:S,isLoading:_,showRows:D,RowRenderer:E=U8,isRowRendered:x,resources:L}=r,[O,H]=A.useMemo(()=>i??[],[i]),q=A.useCallback($e=>{l||!H||!O||f!=null&&f($e)||(u?O.some(ht=>t(ht,$e))?H(O.filter(ht=>!t(ht,$e))):H([...O,$e]):H([$e]))},[O,f,H,t,l,u]);A.useEffect(()=>{u||!O||!H||O.length>1&&H([O[O.length-1]])},[O,H,u]),A.useEffect(()=>{if(!O||!H)return;O.filter(ht=>f==null?void 0:f(ht)).length>0&&H(O.filter(ht=>!(f!=null&&f(ht))))},[O,H,f]);const[z,K]=m,ue=A.useCallback(($e,ht)=>{K&&((z==null?void 0:z.defKey)===$e?z.isAsc===!0?K({defKey:$e,isAsc:!1,sortF:ht}):z.isAsc===!1?K(void 0):K({defKey:$e,isAsc:!0,sortF:ht}):K({defKey:$e,isAsc:!0,sortF:ht}))},[z,K]),[X,de]=A.useState({elem:null,row:null}),j=A.useRef(null),re=A.useRef(null),J=A.useCallback(()=>de({elem:j.current,row:re.current}),[]);A.useEffect(()=>J(),[w.length,J]),W2(window,"resize",J);const[Q,he]=A.useState(40);A.useEffect(()=>{const{row:$e}=X;$e!=null&&he($e.clientHeight)},[X,Q]);const me=A.useMemo(()=>{const{elem:$e}=X;return $e?Math.floor($e.clientHeight/Q):0},[X,Q]),be=A.useMemo(()=>D||(w.length<=me?me:w.length),[me,D,w]),ce=A.useMemo(()=>{if(D!==void 0)return D*Q},[D,Q]),ke=A.useMemo(()=>ce,[ce]),le=A.useMemo(()=>{const{elem:$e}=X;return $e?$e.getBoundingClientRect().height/Q<w.length:!1},[X,Q,w.length]),[oe,ve]=A.useState(),Oe=A.useMemo(()=>{const{elem:$e}=X;return!oe||!$e?"100%":$e.clientHeight+(x?0:50)},[oe,x,X]),et=A.useRef(null),[we,Pe]=A.useState({}),je=A.useRef({x:0,y:0}),ze=A.useRef({}),We=A.useMemo(()=>er.keys(we),[we]),De=A.useCallback(($e,ht)=>{const Le=et.current;if(!Le)return;const Xe=[];Le.childNodes.forEach(wt=>{wt.classList.contains(_n.TH)&&Xe.push(wt)});const it={};er.keys(e).forEach((wt,bt)=>{const St=Xe[bt];if(!St)return;const Me=St.getBoundingClientRect().width;it[wt]=Me}),ze.current=it,ve(ht),je.current={x:$e.clientX,y:$e.clientY};const Ct=wt=>{if(!et.current)return;const St=wt.clientX-je.current.x,Me=$8(e,ht,ze.current,St);Pe(Me)};document.addEventListener("mousemove",Ct);const _t=()=>{ve(void 0),document.removeEventListener("mousemove",Ct),document.removeEventListener("mouseup",_t)};document.addEventListener("mouseup",_t)},[e]),Ae=A.useCallback(()=>{ve(void 0),Pe({})},[]),_e=A.useMemo(()=>{if(We.length===0){const Le={},Xe=er.keys(e);for(let it=0;it<Xe.length;it++){const Ct=Xe[it],_t=e[Ct],wt=Lr.getContent(_t.colSpan,{defKey:Ct,def:_t}),bt=_t.width??80,St=_t.minWidth??Yl,Me=_t.maxWidth,pt={width:bt,minWidth:St,maxWidth:Me,flexGrow:wt??1};if(Le[Ct]=pt,wt!==void 0){for(let Et=1;Et<Math.min(wt,Xe.length-it);Et++){const mt=e[Xe[it+Et]],Dt=mt.width??80,Ze=mt.minWidth??Yl,At=mt.maxWidth;pt.width+=Dt,pt.minWidth+=Ze,pt.maxWidth!==void 0&&(At!==void 0?pt.maxWidth+=At:pt.maxWidth=void 0)}it+=wt-1}}return Le}const $e={},ht=er.keys(e);for(let Le=0;Le<ht.length;Le++){let Xe=ht[Le];const it=e[Xe];let Ct=we[Xe];const _t=Lr.getContent(it.colSpan,{defKey:Xe,def:it}),wt=it.minWidth??Yl,bt=it.maxWidth,St={width:Ct,minWidth:wt,maxWidth:bt,flexGrow:_t??1};if($e[Xe]=St,_t!==void 0){for(let Me=1;Me<Math.min(_t,ht.length-Le);Me++){const pt=e[ht[Le+Me]],Et=we[ht[Le+Me]],mt=pt.minWidth??Yl,Dt=pt.maxWidth;St.width+=Et,St.minWidth+=mt,St.maxWidth!==void 0&&(Dt!==void 0?St.maxWidth+=Dt:St.maxWidth=void 0)}Le+=_t-1}}return $e},[e,We,we]),Ge=A.useRef(null),lt=A.useMemo(()=>tl.getSingleFilterValue(g),[g]);return A.useEffect(()=>{j.current&&j.current.scrollTo({top:0})},[R.page]),A.useEffect(()=>{x&&re.current&&re.current.scrollIntoView({behavior:"smooth",block:"center"})},[O,w,x]),v.jsxs(v.Fragment,{children:[v.jsx(vm,{isLoading:_}),v.jsx("div",{className:Fe.clsx(_n.BodyHeader,oe!==void 0&&_n.IsClicked),onResizeCapture:J,ref:Ge,style:{display:S||x?"none":"flex"},children:v.jsx("div",{className:_n.TRow,ref:et,children:er.map(e,([$e],ht)=>{const Le=e[$e],Xe=Lr.getContent(Le.hContent,{defKey:$e,def:Le}),it=Le.name,Ct=ht===er.keys(e).length-1,_t=Le.width??80,wt=Le.minWidth??Yl,bt=Le.maxWidth,St={width:_t,minWidth:wt,maxWidth:bt,justifyContent:Lr.getContent(Le.hAlign,{defKey:$e,def:Le})??"flex-start",...Lr.getContent(Le.hStyle,{defKey:$e,def:Le})};We.includes($e)&&(St.width=we[$e]);const Me=Le.isSortable,pt=(z==null?void 0:z.defKey)===$e,Et=z==null?void 0:z.isAsc;return v.jsxs(A.Fragment,{children:[v.jsxs("div",{style:St,onClick:()=>Me&&ue($e,Le.sortF),className:Fe.clsx(_n.TH,"Label1",Me?"IsClickable":"NoSelect"),children:[v.jsx(Sa,{className:_n.Content,children:Xe??it}),Me&&v.jsx(jr,{icon:pt?Et?"SortUp":"SortDown":"SortBoth",style:{width:16,height:16}})]}),!Ct&&v.jsxs("div",{className:Fe.sclsx(_n,"Resizer","IsResizable","NoSelect",oe!==void 0&&"IsMoving"),onMouseDown:mt=>De(mt,$e),onDoubleClick:Ae,children:[v.jsx("div",{className:_n.ResizerOut}),v.jsx("div",{className:_n.ResizerIn}),v.jsx("div",{className:_n.ResizerCenter,style:{height:Oe}}),v.jsx("div",{className:_n.ResizerIn}),v.jsx("div",{className:_n.ResizerOut})]}),Ct&&v.jsx(mn,{className:_n.OverflowSpace,w:"var(--Scrollbar-width)",h:50,style:{color:St.color,backgroundColor:St.backgroundColor,transition:St.transition}})]},$e)})})}),v.jsxs("div",{className:Fe.clsx(_n.BodyBody,oe!==void 0&&_n.IsClicked),ref:j,style:{overflowY:le?"scroll":"hidden",minHeight:ce,maxHeight:ke},children:[w.map(($e,ht)=>{const Le=Lr.getContent(n,{item:$e}),Xe=H&&!l,it=O==null?void 0:O.some(bt=>t(bt,$e)),Ct=O&&(f==null?void 0:f($e)),_t=typeof Ct=="string"?Ct:void 0,wt={...$e};return x&&er.keys(e).forEach(bt=>{const St=e[bt],Me=Lr.getContent(St.content,{defKey:bt,def:St,item:$e});let pt=!1;if(lt&&!b){const Et=Lr.getContent(St.asText,{defKey:bt,def:St,item:$e});Et!==void 0?pt=Et.toString().toLowerCase().includes(lt.toLowerCase()):["string","number"].includes(typeof Me)&&Me!==void 0&&Me!==null&&(pt=Me.toString().toLowerCase().includes(lt.toLowerCase()))}wt[bt]=v.jsx("span",{className:Fe.clsx(pt&&_n.IsRowMarked),children:wt[bt]})}),v.jsx($r,{isDisabled:Ct,tooltip:_t,...Le,onClick:bt=>{var St;q($e),(St=Le==null?void 0:Le.onClick)==null||St.call(Le,bt)},className:Fe.clsx(Le==null?void 0:Le.className,Xe&&_n.IsSelectable,it&&_n.IsSelected),abaseRef:it?re:void 0,children:v.jsx(E,{defs:e,item:$e,markedItem:wt,noMarking:b,spanWidths:_e,singleFilterValue:lt,isBodyBodyOverflowed:le})},ht)}),v.jsx(z8,{showRows:be,itemsLength:w.length,isRowRendered:x,rowHeight:Q,resources:L})]})]})},z8=r=>{const{showRows:e,itemsLength:t,resources:n,isRowRendered:i,rowHeight:l}=r,u=A.useMemo(()=>t===0?e:e-t,[e,t]);return Array.from({length:u},(f,g)=>v.jsx("div",{className:Fe.clsx(_n.TRow,"NoSelect"),...i&&{style:{border:"none",minHeight:l,maxHeight:l}},children:t===0&&g===Math.floor(e/2)&&v.jsx(Sn,{className:_n.NoItems,children:n["No Items"]})},g))};function $8(r,e,t,n){const i={...t},l=er.keys(r).findIndex(m=>m===e)+1,u=Object.entries(r);let f=l-1,g=l;if(n<0){for(;n<0&&!(f<0||g>=u.length);){const[m,R]=[u[f][0],u[f][1]],[w,b]=[u[g][0],u[g][1]],S=R.minWidth??Yl,_=b.maxWidth,D=i[m],E=i[w];let x=D-S;_!==void 0&&(x=Math.min(x,_-E));let L=-n;L=Math.min(L,x),D-L<=S&&f--,_!==void 0&&E+L>=_&&g++,i[m]=D-L,i[w]=E+L,n+=L}return i}else if(n>0){for(;n>0&&!(f<0||g>=u.length);){const[m,R]=[u[f][0],u[f][1]],[w,b]=[u[g][0],u[g][1]],S=b.minWidth??Yl,_=R.maxWidth,D=i[w],E=i[m];let x=D-S;_!==void 0&&(x=Math.min(x,_-E));let L=n;L=Math.min(L,x),D-L<=S&&g++,_!==void 0&&E+L>=_&&f--,i[w]=D-L,i[m]=E+L,n-=L}return i}return i}const U8=r=>{const{defs:e,item:t,noMarking:n,spanWidths:i,singleFilterValue:l,isBodyBodyOverflowed:u}=r;return v.jsx("div",{className:Fe.clsx(_n.TRow),children:er.map(e,([f],g)=>{const m=i[f];if(m===void 0)return null;const R=g===er.keys(e).length-1,w=e[f],b=Lr.getContent(w.content,{defKey:f,def:w,item:t}),S={width:m.width,minWidth:m.minWidth,maxWidth:m.maxWidth,flexGrow:m.flexGrow,justifyContent:Lr.getContent(w.align,{defKey:f,def:w,item:t})??"flex-start",...Lr.getContent(w.style,{defKey:f,def:w,item:t})};let _=!1;if(l&&!n){const D=Lr.getContent(w.asText,{defKey:f,def:w,item:t});D!==void 0?_=D.toString().toLowerCase().includes(l.toLowerCase()):["string","number"].includes(typeof b)&&b!==void 0&&b!==null&&(_=b.toString().toLowerCase().includes(l.toLowerCase()))}return v.jsxs(A.Fragment,{children:[v.jsx("div",{style:S,className:Fe.clsx(_n.TD,"Label1",_&&_n.IsMarked),children:v.jsx(Sa,{className:_n.Content,children:b})}),!u&&R&&v.jsx(mn,{className:_n.OverflowSpace,w:"var(--Scrollbar-width)",h:40,style:{color:S.color,backgroundColor:S.backgroundColor}})]},f)})})},W8="_ATableFooter_w090q_1",V8="_Button_w090q_10",G8="_IsSelected_w090q_26",Z8="_IsDisabled_w090q_31",Ds={ATableFooter:W8,Button:V8,IsSelected:G8,IsDisabled:Z8},K8=r=>{const{pages:e,rangedPages:t,pageF:n,pagination:i}=r,l=A.useMemo(()=>e[e.length-1],[e]);return v.jsxs(Sn,{className:Ds.ATableFooter,children:[v.jsx(jr,{icon:"FirstPage",className:Fe.clsx(Ds.Button,i.page===1&&Ds.IsDisabled),onClick:n.moveFirst}),v.jsx(jr,{icon:"NavigateBefore",className:Fe.clsx(Ds.Button,i.page===1&&Ds.IsDisabled),onClick:n.movePrev}),t.map(u=>v.jsx("div",{className:Fe.clsx(Ds.Button,"NoSelect",i.page===u&&Ds.IsSelected),onClick:()=>n.move(u),children:u},u)),v.jsx(jr,{icon:"NavigateNext",className:Fe.clsx(Ds.Button,i.page===l&&Ds.IsDisabled),onClick:n.moveNext}),v.jsx(jr,{icon:"LastPage",className:Fe.clsx(Ds.Button,i.page===l&&Ds.IsDisabled),onClick:n.moveLast})]})},Y8="_Filter_1b9j0_1",X8="_SelectFilter_1b9j0_11",J8="_MainFilter_1b9j0_15",Q8="_IsOpen_1b9j0_26",eR="_SubFilters_1b9j0_30",tR="_Input_1b9j0_44",rR="_Main_1b9j0_15",nR="_Sub_1b9j0_30",iR="_Actions_1b9j0_62",oR="_Icon_1b9j0_67",sR="_LeftIcon_1b9j0_74",aR="_CircleAlertOutline_1b9j0_79",lR="_Rotate_1b9j0_87",cR="_rotate_1b9j0_1",Er={Filter:Y8,SelectFilter:X8,MainFilter:J8,IsOpen:Q8,SubFilters:eR,Input:tR,Main:rR,Sub:nR,Actions:iR,Icon:oR,LeftIcon:sR,CircleAlertOutline:aR,Rotate:lR,rotate:cR},uR=r=>{const{defs:e,useFilteration:t,hasToggleFilteration:n,filterF:i,isRowRendered:l,isFilterSort:u,filterType:f,resources:g,placeholder:m}=r,[R,w]=A.useState([]),[b,S]=A.useMemo(()=>t,[t]),_=A.useMemo(()=>f==="Select",[f]),D=A.useMemo(()=>er.keys(b).map(Pe=>String(Pe)),[b]),[E,x]=A.useState(_&&D.length>0?D[0]:null),L=A.useCallback((Pe,je,ze)=>{if(!S)return;const We={...b};Pe.value=je,S(We),w(De=>De.map((Ae,_e)=>_e===(ze?ze+1:0)?"":Ae))},[b,S]),O=A.useMemo(()=>{let Pe=[],je=er.keys(b);_&&E&&(je=je.filter(ze=>ze===E));for(const ze of je)Pe.push({key:ze,def:e[ze],filter:b[ze]});return Pe},[b,e,_,E]),H=A.useMemo(()=>O.length>0?O[0]:null,[O]),q=A.useMemo(()=>R.length>0?R[0]:"",[R]),z=A.useMemo(()=>O.length>1?O.slice(1):[],[O]),K=A.useMemo(()=>R.length>1?R.slice(1):[],[R]),ue=A.useMemo(()=>z.length>0,[z]),[X,de]=A.useState(!1),[j,re]=A.useState(!1),J=A.useRef(null),Q=A.useCallback(()=>de(!1),[]),he=A.useRef(null),me=A.useCallback(()=>{re(!1),de(!0),he.current&&(document.removeEventListener("mousedown",he.current),he.current=null)},[]),be=A.useCallback(()=>{const Pe=je=>{const ze=document.getElementById("root"),We=je.target,De=J.current;!ze||!De||!We||!De.contains(We)&&ze.contains(We)&&me()};return he.current=Pe,Pe},[me]),ce=A.useCallback(()=>{de(!0),re(!0),setTimeout(()=>{const Pe=be();document.addEventListener("mousedown",Pe)},0)},[be]),ke=A.useMemo(()=>j?me:ce,[j,ce,me]),le=A.useCallback(()=>{const Pe=O.map((je,ze)=>je.filter.type==="String"&&je.filter.validation?je.filter.validation(je.filter.value||""):je.filter.type==="Date"&&je.filter.validation||je.filter.type==="DateRange"&&je.filter.validation?je.filter.validation(je.filter.value):R[ze]);w(Pe),Pe.every(je=>!je)&&i.apply()},[R,i,O]),oe=A.useCallback(Pe=>{Pe.key==="Enter"?(le(),Pe.stopPropagation()):Pe.key==="Escape"&&(re(!1),Pe.currentTarget.focus(),Pe.currentTarget.blur(),Pe.stopPropagation())},[le,re]),ve=A.useMemo(()=>({open:ce,close:me,toggle:ke,validate:le}),[ce,me,ke,le]),Oe=A.useCallback(()=>{le(),!R.some(je=>je)&&i.apply()},[le,R,i]),et=A.useCallback(()=>{i.clear()},[i]),we=A.useCallback(Pe=>{if(!S||!Pe)return;x(Pe);const je={...b};er.keys(je).forEach(ze=>{if(ze!==Pe&&je[ze])switch(je[ze].type){case"String":je[ze].value="";break;case"Select":je[ze].value=null;break;case"Date":je[ze].value=void 0;break;case"DateRange":je[ze].value=void 0;break}}),w([]),S(je),i.clear(),setTimeout(()=>{var We;const ze=(We=J.current)==null?void 0:We.querySelector("input");ze&&ze.focus()},0)},[b,S,w,i]);return H?v.jsxs(v.Fragment,{children:[_&&v.jsx(rc,{className:Fe.clsx(Er.SelectFilter),options:D,isAutoWidth:!0,useSelect:[E,we],type:"Secondary",OptionRenderer:({option:Pe})=>{const je=e[Pe];let ze;if(je!=null&&je.hContent){const We={defKey:Pe,def:je};ze=typeof je.hContent=="function"?je.hContent(We):je.hContent}else{const We=b[Pe],De=(je==null?void 0:je.name)||(We==null?void 0:We.placeholder)||String(Pe);ze=v.jsx("span",{children:De})}return ze}}),v.jsxs("div",{className:Fe.clsx(Er.Filter),ref:J,onKeyDown:oe,onClick:Pe=>{Pe.preventDefault(),Pe.stopPropagation()},style:{minWidth:l?u?180:void 0:180,maxWidth:l?u?300:void 0:300},tabIndex:-1,children:[v.jsx(fR,{filterSet:H,hasToggleFilteration:n,onChange:L,filterF:i,hasSubFilters:ue,popupF:ve,isOpen:j,resources:g,errorMessage:q,hasSelectFilterType:_,onSearchClick:Oe,placeholder:m}),!_&&v.jsx(dR,{subFilterSets:z,onChange:L,onClearClick:et,onSearchClick:Oe,isOpen:j,isTransitioning:X,onTransitionEnd:Q,resources:g,errorMessages:K,placeholder:m})]})]}):null},fR=r=>{var S,_,D,E;const{filterSet:e,hasToggleFilteration:t,hasSelectFilterType:n,onChange:i,filterF:l,hasSubFilters:u,popupF:f,isOpen:g,resources:m,errorMessage:R,onSearchClick:w,placeholder:b}=r;if(e.filter.type==="String"){const x=[e.filter.value??"",q=>i(e.filter,q)],{placeholder:L=((S=e.def)==null?void 0:S.name)??b,icon:O,iconTooltip:H=L}=e.filter;return v.jsxs("div",{className:Fe.clsx(Er.MainFilter,g&&Er.IsOpen),children:[v.jsx(ya,{icon:O??"Type",tooltip:H,isOpen:g}),v.jsx(tc,{className:Fe.clsx(Er.Input,Er.Main),useValue:x,placeholder:L??m["Search(Placeholder)"],wrapProps:{style:{width:"100%",boxSizing:"border-box"}},LeftAddon:t&&v.jsx(Rd,{isOpen:g,filterF:l,popupF:f,resources:m}),RightAddon:v.jsx(Id,{hasSubFilters:u,popupF:f,isOpen:g,resources:m,errorMessage:R,hasSelectFilterType:n}),autoFocus:e.filter.autoFocus,maxLength:e.filter.maxLength,type:R?"Error":"Primary"})]})}else if(e.filter.type==="Select"){const x=[e.filter.value??null,q=>{i(e.filter,q),n&&setTimeout(()=>w(),0)}],{placeholder:L=((_=e.def)==null?void 0:_.name)??b,icon:O,iconTooltip:H=L}=e.filter;return v.jsxs("div",{className:Fe.clsx(Er.MainFilter,g&&Er.IsOpen),children:[v.jsx(ya,{icon:O??"Menu",tooltip:H,isOpen:g}),v.jsx(rc,{className:Fe.clsx(Er.Input,Er.Main),options:e.filter.options,useSelect:x,placeholder:L,OptionRenderer:e.filter.OptionRenderer,SelectedRenderer:({OptionRenderer:q,selectedOption:z})=>z===null?L||e.filter.placeholder:v.jsxs(v.Fragment,{children:[t&&v.jsx(Rd,{isOpen:g,filterF:l,popupF:f,resources:m}),v.jsx(q,{option:z}),v.jsx(Id,{hasSubFilters:u,popupF:f,isOpen:g,resources:m,hideSearchButton:!0,hasSelectFilterType:n})]})})]})}else if(e.filter.type==="Date"){const x=[e.filter.value,q=>i(e.filter,q)],{placeholder:L=((D=e.def)==null?void 0:D.name)??b,icon:O,iconTooltip:H=L}=e.filter;return v.jsxs("div",{className:Fe.clsx(Er.MainFilter,g&&Er.IsOpen),children:[v.jsx(ya,{icon:O??"CalendarDay",tooltip:H,isOpen:g}),v.jsx(mm,{type:"Raw",className:Fe.clsx(Er.DatePicker,Er.Input,Er.Main),useDate:x,minDate:e.filter.minDate,maxDate:e.filter.maxDate,placeholder:L,LeftAddon:v.jsxs(v.Fragment,{children:[t&&v.jsx(Rd,{isOpen:g,filterF:l,popupF:f,resources:m}),!t&&v.jsx(mn,{w:g?0:6}),v.jsx(ya,{icon:O??"CalendarDay",tooltip:H,isOpen:!g}),v.jsx(mn,{w:g?8:0})]}),RightAddon:v.jsx(Id,{hasSubFilters:u,popupF:f,isOpen:g,resources:m,hasSelectFilterType:n})})]})}else if(e.filter.type==="DateRange"){const x=[e.filter.value,z=>i(e.filter,z)],{placeholder:L=((E=e.def)==null?void 0:E.name)??b,icon:O,iconTooltip:H=L,noDefaultChoices:q}=e.filter;return v.jsxs("div",{className:Fe.clsx(Er.MainFilter,g&&Er.IsOpen),children:[v.jsx(ya,{icon:O??"CalendarDay",tooltip:H,isOpen:g}),v.jsx(pm,{type:"Raw",className:Fe.clsx(Er.DatePicker,Er.Input,Er.Main),useDateRange:x,minDate:e.filter.minDate,maxDate:e.filter.maxDate,placeholder:L,noDefaultChoices:q,LeftAddon:v.jsxs(v.Fragment,{children:[t&&v.jsx(Rd,{isOpen:g,filterF:l,popupF:f,resources:m}),!t&&v.jsx(mn,{w:g?0:6}),v.jsx(ya,{icon:O??"CalendarDay",tooltip:H,isOpen:!g}),v.jsx(mn,{w:g?8:0})]}),RightAddon:v.jsx(Id,{hasSubFilters:u,popupF:f,isOpen:g,resources:m,hasSelectFilterType:n})})]})}return null},Rd=r=>{const{filterF:e,popupF:t,resources:n,isOpen:i}=r;return v.jsx(_i,{type:"Raw",className:Er.Icon,icon:"Convert",tooltip:n["Toggle Filter"],onMouseDown:l=>l.currentTarget.classList.remove(Er.Rotate),style:{width:i?0:24,marginLeft:i?0:8},onClick:l=>{l.currentTarget.classList.add(Er.Rotate),e.toggle(),t.close(),l.stopPropagation()}})},Id=r=>{const{hasSubFilters:e,popupF:t,isOpen:n,resources:i,errorMessage:l,hideSearchButton:u,hasSelectFilterType:f}=r,g=A.useCallback(w=>{w.stopPropagation(),t.open()},[t]),m=A.useCallback(w=>{w.stopPropagation(),t.close()},[t]),R=A.useCallback(w=>{w.stopPropagation(),t.validate()},[t]);return v.jsxs(A.Fragment,{children:[l&&v.jsx(_i,{type:"Raw",className:Er.CircleAlertOutline,iconSize:"xs",icon:"CircleAlertOutline",tooltip:l}),e&&!f&&v.jsx(_i,{type:"Raw",className:Er.Icon,icon:"ListAdd",onClick:g,style:{opacity:+!n,visibility:+!n?"visible":"hidden",marginRight:-24,pointerEvents:n?"none":void 0}}),e&&!f&&v.jsx(_i,{type:"Raw",className:Er.Icon,icon:"ListRemove",onClick:m,style:{opacity:+n,visibility:+n?"visible":"hidden",marginRight:n?-24:0,pointerEvents:n?void 0:"none"}}),!u&&v.jsx(_i,{type:"Raw",className:Er.Icon,icon:"Search",tooltip:i["Search(Button)"],onClick:R,style:{opacity:+!n,visibility:+!n?"visible":"hidden",pointerEvents:n?"none":void 0,marginRight:4}})]})},dR=r=>{const{subFilterSets:e,onChange:t,onClearClick:n,onSearchClick:i,isOpen:l,isTransitioning:u,onTransitionEnd:f,resources:g,errorMessages:m,placeholder:R}=r;return!l&&!u?null:v.jsxs("div",{className:Er.SubFilters,onTransitionEnd:f,style:{opacity:+l,visibility:+l?"visible":"hidden"},children:[e.map((w,b)=>{var S,_,D,E;if(w.filter.type==="String"){const x=[w.filter.value??"",z=>t(w.filter,z,b)],L=m[b],{placeholder:O=((S=w.def)==null?void 0:S.name)??R,icon:H,iconTooltip:q=O}=w.filter;return v.jsxs(Sn,{style:{marginBottom:6},children:[v.jsx(ya,{tooltip:q,icon:H??"Type"}),v.jsx(tc,{className:Fe.clsx(Er.Input,Er.Sub),wrapProps:{style:{width:"100%"}},useValue:x,placeholder:O??g["Search(Placeholder)"],type:L?"Error":"Secondary",RightAddon:L&&v.jsx(_i,{type:"Raw",className:Er.CircleAlertOutline,iconSize:"xs",icon:"CircleAlertOutline",tooltip:L}),autoFocus:w.filter.autoFocus,maxLength:w.filter.maxLength}),v.jsx(mn,{h:8})]},b)}else if(w.filter.type==="Select"){const x=[w.filter.value??null,q=>t(w.filter,q)],{placeholder:L=((_=w.def)==null?void 0:_.name)??R,icon:O,iconTooltip:H=L}=w.filter;return v.jsxs(Sn,{style:{marginBottom:6},children:[v.jsx(ya,{tooltip:H,icon:O??"Menu"}),v.jsx(rc,{className:Fe.clsx(Er.Input,Er.Sub),options:w.filter.options,placeholder:L,OptionRenderer:w.filter.OptionRenderer,useSelect:x,arrowProps:{style:{marginRight:4}},type:"Secondary"}),v.jsx(mn,{h:8})]},b)}else if(w.filter.type==="Date"){const x=[w.filter.value,q=>t(w.filter,q)],{placeholder:L=((D=w.def)==null?void 0:D.name)??R,icon:O,iconTooltip:H=L}=w.filter;return v.jsxs(Sn,{style:{marginBottom:6},children:[v.jsx(ya,{tooltip:H,icon:O??"CalendarDay"}),v.jsx(mm,{type:"Raw",LeftAddon:v.jsx(mn,{w:12}),placeholder:L,className:Fe.clsx(Er.DatePicker,Er.Input,Er.Sub),useDate:x,minDate:w.filter.minDate,maxDate:w.filter.maxDate}),v.jsx(mn,{h:8})]},b)}else if(w.filter.type==="DateRange"){const x=[w.filter.value,q=>t(w.filter,q)],{placeholder:L=((E=w.def)==null?void 0:E.name)??R,icon:O,iconTooltip:H=L}=w.filter;return v.jsxs(Sn,{style:{marginBottom:6},children:[v.jsx(ya,{tooltip:H,icon:O??"CalendarDay"}),v.jsx(pm,{type:"Raw",LeftAddon:v.jsx(mn,{w:12}),className:Fe.clsx(Er.DatePicker,Er.Input,Er.Sub),useDateRange:x,placeholder:L,minDate:w.filter.minDate,maxDate:w.filter.maxDate})]},b)}else return null}),v.jsxs(Sn,{className:Er.Actions,children:[v.jsx(Fi,{type:"Secondary",onClick:n,children:g["Clear(Button)"]}),v.jsx(Fi,{onClick:i,children:g["Search(Button)"]})]})]})},ya=r=>{const{icon:e,tooltip:t,isOpen:n=!0}=r;return v.jsx(_i,{type:"Raw",className:Er.LeftIcon,tooltip:t,icon:e,style:{width:n?24:0,marginRight:n?4:0,opacity:+n}})},hR="_ATableHeader_1hzfz_1",pR="_LeftHeaderContent_1hzfz_11",gR="_RightHeaderContent_1hzfz_19",mR="_TopRightAddon_1hzfz_27",vR="_HItem_1hzfz_32",Vc={ATableHeader:hR,LeftHeaderContent:pR,RightHeaderContent:gR,TopRightAddon:mR,HItem:vR},yR=r=>{const{defs:e,title:t,totalCount:n,useCheck:i,useFilteration:l,hasToggleFilteration:u,filterF:f,noFilter:g,noCount:m,isFiltered:R,TopLeftAddon:w,TopRightAddon:b,useSortation:S,resources:_=hn.ATable,filterType:D,placeholder:E}=r,[x]=A.useMemo(()=>i||[],[i]),L=A.useMemo(()=>R?_["Searched n items"](n):_["Total n items"](n),[_,R,n]),[O]=l,[H,q]=S,[z,K]=A.useState(!1),ue=A.useMemo(()=>{const be=er.values(O).filter(le=>le.type==="DateRange"),ce=er.keys(O).filter(le=>be.includes(O[le])),ke=er.keys(e).filter(le=>e[le].isSortable);return ce.length>0?(ce.length>1&&K(!0),ke.map(oe=>ce.includes(oe)?[oe+"_Asc",oe+"_Desc"]:oe).flat()):ke},[e,O]),X=A.useMemo(()=>r.isRowRendered&&ue.length>0,[ue.length,r.isRowRendered]),de=A.useCallback((be,ce)=>{q&&(H==null?void 0:H.defKey)===be&&(H.isAsc===!0?q({defKey:be,isAsc:!1,sortF:ce}):q({defKey:be,isAsc:!0,sortF:ce}))},[H,q]),j=A.useRef(),[re,J]=A.useState(),[Q,he]=A.useState(H?H.defKey:ue[0]),me=A.useMemo(()=>{if(!re)return{};const be=e[re];return{SortUp:{onClick:()=>{q==null||q({defKey:re,isAsc:!0,sortF:be.sortF}),he(re)},content:()=>_["Sort up"]},SortDown:{onClick:()=>{q==null||q({defKey:re,isAsc:!1,sortF:be.sortF}),he(re)},content:()=>_["Sort down"]}}},[q,re,e,_]);return v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:Fe.clsx(Vc.ATableHeader),children:[v.jsxs("div",{className:Fe.clsx(Vc.LeftHeaderContent,"NoSelect"),children:[v.jsxs(Sn,{style:{marginBottom:X?8:0},children:[w&&v.jsx("div",{className:Fe.clsx(Vc.HItem),children:w}),t&&v.jsx("div",{className:Fe.clsx(Vc.HItem),style:{whiteSpace:"nowrap"},children:t}),!m&&v.jsxs("div",{className:Fe.clsx(Vc.HItem),style:{maxHeight:14,...X&&{minHeight:14,color:"var(--label-neutral)"}},children:[L,x&&x.length>0&&v.jsxs(v.Fragment,{children:[" / ",_["Checked n items"](x.length)]})]})]}),X&&v.jsx(q2,{type:"Tertiary",options:ue,useSelect:[Q,()=>{}],optionWidth:"fit-content",tabProps:{style:{marginRight:8}},optionProps:{style:{cursor:"default"},onClick:be=>{var le;const ce=be.currentTarget.textContent;if(ce===_[ce])return;be.currentTarget.querySelector("svg")===null&&((le=j.current)==null||le.open(be.currentTarget))}},OptionRenderer:be=>{const ce=/_Asc|_Desc/.test(be.option),ke=(H==null?void 0:H.defKey)===be.option,le=Q===be.option,oe=H==null?void 0:H.isAsc,ve=()=>{if(ce){J(void 0),he(be.option);const[we,Pe]=be.option.split("_"),je=Pe==="Asc";q==null||q({defKey:we,isAsc:je,sortF:e[we].sortF})}else le?de(be.option,e[be.option].sortF):J(be.option)},et=ce?(we=>{const[Pe,je]=we.split("_");return(z?Pe+" ":"")+_[je]})(be.option):_["Sort by x"](be.option);return v.jsxs(Sn,{style:{height:"100%"},className:Fe.clsx(!(ce&&le)&&"IsClickable"),onClick:ve,children:[et,le&&!ce&&v.jsx(jr,{style:{marginRight:-5,marginLeft:4},icon:ke?oe?"RowSortUp":"RowSortDown":"RowSortBoth"})]},be.option)}})]}),v.jsx(Qc,{}),v.jsxs("div",{className:Fe.clsx(Vc.RightHeaderContent,"NoSelect"),children:[!g&&v.jsx(uR,{defs:e,useFilteration:l,hasToggleFilteration:u,filterF:f,isRowRendered:r.isRowRendered,isFilterSort:ue.length>0,resources:_,filterType:D,placeholder:E}),b&&v.jsx(Sn,{className:Fe.clsx(Vc.TopRightAddon),children:b})]})]}),v.jsx(j2,{defs:me,actionRef:j,onClose:()=>J(void 0),width:100,position:ef.S})]})},bR=r=>{const{defs:e,pk:t,defaultDef:n,rProps:i,useSelect:l,isSelectMulti:u,selectDisabled:f,useCheck:g,checkDisabled:m,isLoading:R,isDisabled:w,title:b,entireItems:S,onStateChange:_,pagedItems:D,totalCount:E,useFilteration:x,useToggleFilteration:L,filterType:O="Default",placeholder:H,usePagination:q,useSortation:z,showRows:K,noHeader:ue,noDefHeader:X,noFooter:de,noFilter:j,noCount:re,noMarking:J,noStateChangeOnMount:Q,TopLeftAddon:he,TopRightAddon:me,actionRef:be,RowRenderer:ce,resources:ke}=r,le=A.useMemo(()=>({...hn.ATable,...ke}),[ke]),oe=A.useCallback((pe,Be)=>t!==void 0?Array.isArray(t)?t.every(ot=>nl.isEqual(pe[ot],Be[ot])):nl.isEqual(pe[t],Be[t]):nl.isEqual(pe,Be),[t]),ve=A.useMemo(()=>({content:_R,...n}),[n]),Oe=A.useMemo(()=>{const pe={};return er.keys(e).forEach(Be=>{const ot=e[Be],Ot={...ve,...ot};pe[Be]=Ot}),pe},[ve,e]),[et,we]=nn(nl.cloneDeep(x),{"":{type:"String",placeholder:le["Search(Placeholder)"],value:""}}),[Pe,je]=nn(nl.cloneDeep(L),void 0),[ze,We]=A.useState(!1),[De,Ae]=A.useMemo(()=>ze&&Pe?[Pe,je]:[et,we],[et,ze,we,je,Pe]),[_e,Ge]=A.useState(De),lt=A.useMemo(()=>S?tl.applyFilteration(S,Oe,_e):[],[S,Oe,_e]),$e=A.useMemo(()=>{for(const pe in _e){const Be=_e[pe];if(Be.value!==void 0&&Be.value!==null&&Be.value!=="")return!0}return!1},[_e]),[ht,Le]=nn(z,void 0),Xe=A.useMemo(()=>tl.applySortation(lt,Oe,ht),[lt,Oe,ht]),it=A.useMemo(()=>{if(D!==void 0)return tl.applySortation(D,Oe,ht)},[D,Oe,ht]),[Ct,_t]=nn(q,{page:1,pageSize:50,pageRange:10}),wt=A.useMemo(()=>({pageSize:50,page:1,pageRange:10,...Ct}),[Ct]),{pagedItems:bt,totalCount:St,pagination:Me}=A.useMemo(()=>{const pe={...wt};if(it!==void 0){let Be=E??it.length;const ot=tl.getPages(Be,pe.pageSize);return pe.page>ot.length?pe.page=ot.length:pe.page<1&&(pe.page=1),{pagedItems:it,totalCount:Be,pagination:pe}}else if(S!==void 0){const Be=E??Xe.length,ot=tl.getPages(Be,pe.pageSize);return pe.page>ot.length?pe.page=ot.length:pe.page<1&&(pe.page=1),{pagedItems:tl.applyPagination(Xe,pe.page,pe.pageSize),totalCount:Be,pagination:pe}}else return{pagedItems:[],totalCount:E??0,pagination:wt}},[S,it,E,wt,Xe]),{pages:pt,rangedPages:Et}=A.useMemo(()=>tl.getRangedPages(Me.page,St,Me.pageSize,Me.pageRange),[St,Me.pageSize,Me.page,Me.pageRange]),[mt,Dt]=A.useMemo(()=>g??[],[g]),Ze=A.useMemo(()=>bt.filter(pe=>mt==null?void 0:mt.some(Be=>oe(Be,pe))),[bt,mt,oe]),At=A.useMemo(()=>bt.filter(pe=>!(m!=null&&m(pe))),[bt,m]),jt=A.useMemo(()=>At.length>0&&At.every(pe=>Ze.some(Be=>oe(Be,pe))),[Ze,At,oe]),mr=A.useMemo(()=>jt?!1:At.some(pe=>Ze.some(Be=>oe(Be,pe))),[Ze,At,jt,oe]),kr=A.useCallback(()=>{!mt||!Dt||w||Dt(jt||mr?mt.filter(pe=>!At.some(Be=>oe(Be,pe))):[...mt,...At])},[mt,Dt,jt,mr,At,w,oe]),Cr=A.useCallback(pe=>{!mt||!Dt||w||(mt.some(Be=>oe(Be,pe))?Dt(mt.filter(Be=>!oe(Be,pe))):Dt([...mt,pe]))},[mt,Dt,w,oe]);A.useEffect(()=>{if(!Dt||!mt||!m)return;mt.filter(Be=>m(Be)).length>0&&Dt(mt.filter(Be=>!m(Be)))},[m,mt,Dt]);const ge=A.useMemo(()=>({hContent:mt&&v.jsx(Zu,{useCheck:[jt,kr],isIndeterminate:mr}),content:pe=>{const{item:Be}=pe,ot=m==null?void 0:m(Be),Ot=typeof ot=="string"?ot:void 0,$t=mt==null?void 0:mt.some(kt=>oe(kt,Be));return v.jsx(Zu,{style:{zIndex:1},isDisabled:ot,tooltip:Ot,onClick:kt=>kt.stopPropagation(),useCheck:[$t,()=>Cr(Be)]})},minWidth:32,maxWidth:32}),[mt,jt,mr,oe,kr,m,Cr]),ne=A.useMemo(()=>g?{checkDef:ge,...Oe}:Oe,[Oe,ge,g]),[Je,ct]=A.useState(!1),tt=A.useMemo(()=>R??Je,[R,Je]),Re=A.useCallback(async pe=>{_&&(ct(!0),await _(pe),ct(!1)),_t==null||_t(pe.pagination),Le==null||Le(pe.sortation),Ge(pe.filteration)},[_,_t,Le]);A.useEffect(()=>{if(!be)return;const pe=ot=>{const Ot={entireItems:S,filteration:De,pagination:Me,sortation:ht},$t=ot?ot(Ot):Ot;Re($t)},Be=ot=>{const Ot={...Me,page:1},$t=ot?ot(De):De;Re({entireItems:S,filteration:$t,pagination:Ot,sortation:ht}),Ae==null||Ae($t)};be.current={fireOnStateChange:pe,applyFilteration:Be}},[be,Re,S,Ae,De,Me,ht]);const xt=A.useCallback(pe=>{pe.page===Me.page&&pe.pageSize===Me.pageSize||(pe.page<1?pe.page=1:pe.page>pt[pt.length-1]&&(pe.page=pt[pt.length-1]),Re({entireItems:S,filteration:_e,pagination:pe,sortation:ht}))},[Me,pt,Re,S,_e,ht]),Rt=A.useCallback(pe=>{Ae&&Ae(pe)},[Ae]),vt=A.useCallback(pe=>{Re({entireItems:S,filteration:_e,pagination:Me,sortation:pe})},[Re,S,_e,Me]),Mt=A.useCallback(pe=>{xt({...Me,page:pe})},[xt,Me]),Qt=A.useCallback(()=>{Mt(Me.page-1)},[Mt,Me.page]),rr=A.useCallback(()=>{Mt(Me.page+1)},[Mt,Me.page]),Bt=A.useCallback(()=>{Mt(1)},[Mt]),qt=A.useCallback(()=>{Mt(pt[pt.length-1])},[Mt,pt]),sr=A.useMemo(()=>({move:Mt,movePrev:Qt,moveNext:rr,moveFirst:Bt,moveLast:qt}),[Mt,Qt,rr,Bt,qt]),Qe=A.useCallback(()=>{const pe={...Me,page:1};Re({entireItems:S,filteration:De,pagination:pe,sortation:ht})},[De,Me,Re,S,ht]),Tt=A.useCallback(()=>{We(!ze)},[ze]),yt=A.useCallback(()=>{ze&&Pe?je==null||je(a0(Pe)):Ae==null||Ae(a0(et))},[ze,Pe,je,et,Ae]),Lt=A.useMemo(()=>({apply:Qe,toggle:Tt,clear:yt}),[Qe,Tt,yt]);z2(()=>{Q||Re({entireItems:S,filteration:De,pagination:Me,sortation:ht})});const vr=A.useMemo(()=>er.map(Oe,([Be])=>Oe[Be].minWidth??Yl).reduce((Be,ot)=>Be+ot,0),[Oe]),Y=A.useMemo(()=>ce!==void 0,[ce]);return v.jsxs($r,{className:x8.ATable,isDisabled:w,style:{minWidth:vr},children:[!ue&&v.jsx(yR,{defs:Oe,title:b,totalCount:St,useCheck:g&&mt?[mt,Dt]:void 0,useFilteration:[De,Rt],useSortation:[ht,vt],isRowRendered:Y,hasToggleFilteration:Pe!==void 0,filterF:Lt,noFilter:j,noCount:re,isFiltered:$e,TopLeftAddon:he,TopRightAddon:me,resources:le,filterType:O,placeholder:H}),v.jsx(q8,{defs:ne,isEqual:oe,rProps:i,useSelect:l,isSelectMulti:u,selectDisabled:f,isTableDisabled:w,appliedFilteration:_e,useSortation:[ht,vt],pagination:Me,pagedItems:bt,showRows:K,isLoading:tt,noMarking:J,noDefHeader:X,resources:le,RowRenderer:ce,isRowRendered:Y}),!de&&v.jsx(K8,{pages:pt,rangedPages:Et,pageF:sr,pagination:Me})]})},_R=r=>{const{defKey:e,item:t}=r;if(er.hasKey(t,e)){const n=t[e];return er.isReactNode(n)?n:null}else return null};function a0(r){const e={...r};for(const t in e)e[t].value=void 0;return e}const xR="_AText_1asz6_1",SR={AText:xR},V2=r=>{const{text:e,styled:t,style:n}=r,i=A.useMemo(()=>{if(e)if(t)if(n){if(t===!0)return n==="bold"?v.jsx("b",{children:e}):v.jsx("span",{style:n,children:e});if(typeof t=="string"){const l=e.split(t);return n==="bold"?l.map((u,f)=>v.jsxs(A.Fragment,{children:[Ld(u),f<l.length-1?v.jsx("b",{children:Ld(t)}):""]},f)):l.map((u,f)=>v.jsxs(A.Fragment,{children:[Ld(u),f<l.length-1&&v.jsx("span",{style:n,children:Ld(t)})]},f))}}else return e;else return e;else return""},[e,n,t]);return v.jsx("div",{className:Fe.clsx("Body1Reading",SR.AText,"NoSelect"),children:i})};function Ld(r){const e=r.split(`
|
162
|
-
`);return e.map((t,n)=>v.jsxs(A.Fragment,{children:[t,n!==e.length-1&&v.jsx("br",{})]},n))}const CR="_Base_sw5fu_7",wR="_ATextArea_sw5fu_11",AR="_Primary_sw5fu_34",TR="_UnAvailable_sw5fu_39",ER="_Secondary_sw5fu_47",kR="_ReadOnly_sw5fu_59",Md={Base:CR,ATextArea:wR,Primary:AR,UnAvailable:TR,Secondary:ER,ReadOnly:kR,Error:"_Error_sw5fu_66"},RR=["Primary","Secondary","ReadOnly","Error"],IR=r=>{const{onEnterPress:e,errorMessage:t,type:n="Primary",textAreaRef:i,useValue:l,rows:u,isReadonly:f,placeholder:g,maxLength:m,tabIndex:R,autoFocus:w,textAreaProps:b,wrapProps:S,helperText:_,label:D,wrapType:E,labelProps:x,...L}=r,O=A.useMemo(()=>LR(t)?"Error":n,[t,n]),H=A.useMemo(()=>O==="ReadOnly"?!0:f,[O,f]),q=A.useMemo(()=>L.isDisabled||L.isLoading,[L.isDisabled,L.isLoading]),[z,K]=nn(l,""),ue=A.useCallback(j=>{K&&K(j)},[K]),X=A.useCallback(j=>{var re;q||(ue(j.target.value),(re=b==null?void 0:b.onChange)==null||re.call(b,j))},[q,ue,b]),de=A.useCallback(j=>{var re;if(!q){if((re=b==null?void 0:b.onKeyDown)==null||re.call(b,j),j.key==="Tab"){const J=j.currentTarget.selectionStart,Q=j.currentTarget.selectionEnd;j.currentTarget.value=j.currentTarget.value.substring(0,J)+" "+j.currentTarget.value.substring(Q),j.currentTarget.selectionStart=j.currentTarget.selectionEnd=J+1,j.preventDefault()}else j.key==="Enter"&&(e==null||e(j.currentTarget.value),j.stopPropagation());j.key!=="Escape"&&j.stopPropagation()}},[q,e,b]);return v.jsx(ec,{wrapProps:S,label:D,helperText:_,errorMessage:t,labelProps:x,wrapType:E??O==="Error"?"Error":"Default",children:v.jsx($r,{...L,className:Fe.clsx(Md.Base,L.className),children:v.jsx("textarea",{...b,className:Fe.clsx(Md.ATextArea,Md[O],q&&Md.UnAvailable,b==null?void 0:b.className),value:z,rows:u,readOnly:H,onChange:X,onKeyDown:de,placeholder:g,maxLength:m,tabIndex:L.isDisabled||L.isLoading?-1:R,autoFocus:w,ref:i})})})};function LR(r){return Array.isArray(r)?r.filter(Boolean).length>0:!!r}var G2=typeof global=="object"&&global&&global.Object===Object&&global,MR=typeof self=="object"&&self&&self.Object===Object&&self,Aa=G2||MR||Function("return this")(),nc=Aa.Symbol,Z2=Object.prototype,DR=Z2.hasOwnProperty,OR=Z2.toString,Mf=nc?nc.toStringTag:void 0;function PR(r){var e=DR.call(r,Mf),t=r[Mf];try{r[Mf]=void 0;var n=!0}catch{}var i=OR.call(r);return n&&(e?r[Mf]=t:delete r[Mf]),i}var NR=Object.prototype,FR=NR.toString;function jR(r){return FR.call(r)}var BR="[object Null]",HR="[object Undefined]",l0=nc?nc.toStringTag:void 0;function tf(r){return r==null?r===void 0?HR:BR:l0&&l0 in Object(r)?PR(r):jR(r)}function il(r){return r!=null&&typeof r=="object"}var Yc=Array.isArray;function ic(r){var e=typeof r;return r!=null&&(e=="object"||e=="function")}function K2(r){return r}var qR="[object AsyncFunction]",zR="[object Function]",$R="[object GeneratorFunction]",UR="[object Proxy]";function ym(r){if(!ic(r))return!1;var e=tf(r);return e==zR||e==$R||e==qR||e==UR}var Qh=Aa["__core-js_shared__"],c0=function(){var r=/[^.]+$/.exec(Qh&&Qh.keys&&Qh.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function WR(r){return!!c0&&c0 in r}var VR=Function.prototype,GR=VR.toString;function eu(r){if(r!=null){try{return GR.call(r)}catch{}try{return r+""}catch{}}return""}var ZR=/[\\^$.*+?()[\]{}|]/g,KR=/^\[object .+?Constructor\]$/,YR=Function.prototype,XR=Object.prototype,JR=YR.toString,QR=XR.hasOwnProperty,e9=RegExp("^"+JR.call(QR).replace(ZR,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function t9(r){if(!ic(r)||WR(r))return!1;var e=ym(r)?e9:KR;return e.test(eu(r))}function r9(r,e){return r==null?void 0:r[e]}function tu(r,e){var t=r9(r,e);return t9(t)?t:void 0}var B1=tu(Aa,"WeakMap"),u0=Object.create,n9=function(){function r(){}return function(e){if(!ic(e))return{};if(u0)return u0(e);r.prototype=e;var t=new r;return r.prototype=void 0,t}}();function i9(r,e,t){switch(t.length){case 0:return r.call(e);case 1:return r.call(e,t[0]);case 2:return r.call(e,t[0],t[1]);case 3:return r.call(e,t[0],t[1],t[2])}return r.apply(e,t)}function Y2(r,e){var t=-1,n=r.length;for(e||(e=Array(n));++t<n;)e[t]=r[t];return e}var o9=800,s9=16,a9=Date.now;function l9(r){var e=0,t=0;return function(){var n=a9(),i=s9-(n-t);if(t=n,i>0){if(++e>=o9)return arguments[0]}else e=0;return r.apply(void 0,arguments)}}function c9(r){return function(){return r}}var Qd=function(){try{var r=tu(Object,"defineProperty");return r({},"",{}),r}catch{}}(),u9=Qd?function(r,e){return Qd(r,"toString",{configurable:!0,enumerable:!1,value:c9(e),writable:!0})}:K2,f9=l9(u9);function d9(r,e){for(var t=-1,n=r==null?0:r.length;++t<n&&e(r[t],t,r)!==!1;);return r}var h9=9007199254740991,p9=/^(?:0|[1-9]\d*)$/;function X2(r,e){var t=typeof r;return e=e??h9,!!e&&(t=="number"||t!="symbol"&&p9.test(r))&&r>-1&&r%1==0&&r<e}function bm(r,e,t){e=="__proto__"&&Qd?Qd(r,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):r[e]=t}function nd(r,e){return r===e||r!==r&&e!==e}var g9=Object.prototype,m9=g9.hasOwnProperty;function J2(r,e,t){var n=r[e];(!(m9.call(r,e)&&nd(n,t))||t===void 0&&!(e in r))&&bm(r,e,t)}function id(r,e,t,n){var i=!t;t||(t={});for(var l=-1,u=e.length;++l<u;){var f=e[l],g=void 0;g===void 0&&(g=r[f]),i?bm(t,f,g):J2(t,f,g)}return t}var f0=Math.max;function v9(r,e,t){return e=f0(e===void 0?r.length-1:e,0),function(){for(var n=arguments,i=-1,l=f0(n.length-e,0),u=Array(l);++i<l;)u[i]=n[e+i];i=-1;for(var f=Array(e+1);++i<e;)f[i]=n[i];return f[e]=t(u),i9(r,this,f)}}function y9(r,e){return f9(v9(r,e,K2),r+"")}var b9=9007199254740991;function Q2(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=b9}function ch(r){return r!=null&&Q2(r.length)&&!ym(r)}function _9(r,e,t){if(!ic(t))return!1;var n=typeof e;return(n=="number"?ch(t)&&X2(e,t.length):n=="string"&&e in t)?nd(t[e],r):!1}function x9(r){return y9(function(e,t){var n=-1,i=t.length,l=i>1?t[i-1]:void 0,u=i>2?t[2]:void 0;for(l=r.length>3&&typeof l=="function"?(i--,l):void 0,u&&_9(t[0],t[1],u)&&(l=i<3?void 0:l,i=1),e=Object(e);++n<i;){var f=t[n];f&&r(e,f,n,l)}return e})}var S9=Object.prototype;function _m(r){var e=r&&r.constructor,t=typeof e=="function"&&e.prototype||S9;return r===t}function C9(r,e){for(var t=-1,n=Array(r);++t<r;)n[t]=e(t);return n}var w9="[object Arguments]";function d0(r){return il(r)&&tf(r)==w9}var ex=Object.prototype,A9=ex.hasOwnProperty,T9=ex.propertyIsEnumerable,H1=d0(function(){return arguments}())?d0:function(r){return il(r)&&A9.call(r,"callee")&&!T9.call(r,"callee")};function E9(){return!1}var tx=typeof exports=="object"&&exports&&!exports.nodeType&&exports,h0=tx&&typeof module=="object"&&module&&!module.nodeType&&module,k9=h0&&h0.exports===tx,p0=k9?Aa.Buffer:void 0,R9=p0?p0.isBuffer:void 0,Yf=R9||E9,I9="[object Arguments]",L9="[object Array]",M9="[object Boolean]",D9="[object Date]",O9="[object Error]",P9="[object Function]",N9="[object Map]",F9="[object Number]",j9="[object Object]",B9="[object RegExp]",H9="[object Set]",q9="[object String]",z9="[object WeakMap]",$9="[object ArrayBuffer]",U9="[object DataView]",W9="[object Float32Array]",V9="[object Float64Array]",G9="[object Int8Array]",Z9="[object Int16Array]",K9="[object Int32Array]",Y9="[object Uint8Array]",X9="[object Uint8ClampedArray]",J9="[object Uint16Array]",Q9="[object Uint32Array]",xn={};xn[W9]=xn[V9]=xn[G9]=xn[Z9]=xn[K9]=xn[Y9]=xn[X9]=xn[J9]=xn[Q9]=!0;xn[I9]=xn[L9]=xn[$9]=xn[M9]=xn[U9]=xn[D9]=xn[O9]=xn[P9]=xn[N9]=xn[F9]=xn[j9]=xn[B9]=xn[H9]=xn[q9]=xn[z9]=!1;function e7(r){return il(r)&&Q2(r.length)&&!!xn[tf(r)]}function xm(r){return function(e){return r(e)}}var rx=typeof exports=="object"&&exports&&!exports.nodeType&&exports,$f=rx&&typeof module=="object"&&module&&!module.nodeType&&module,t7=$f&&$f.exports===rx,ep=t7&&G2.process,Ku=function(){try{var r=$f&&$f.require&&$f.require("util").types;return r||ep&&ep.binding&&ep.binding("util")}catch{}}(),g0=Ku&&Ku.isTypedArray,Sm=g0?xm(g0):e7,r7=Object.prototype,n7=r7.hasOwnProperty;function nx(r,e){var t=Yc(r),n=!t&&H1(r),i=!t&&!n&&Yf(r),l=!t&&!n&&!i&&Sm(r),u=t||n||i||l,f=u?C9(r.length,String):[],g=f.length;for(var m in r)(e||n7.call(r,m))&&!(u&&(m=="length"||i&&(m=="offset"||m=="parent")||l&&(m=="buffer"||m=="byteLength"||m=="byteOffset")||X2(m,g)))&&f.push(m);return f}function ix(r,e){return function(t){return r(e(t))}}var i7=ix(Object.keys,Object),o7=Object.prototype,s7=o7.hasOwnProperty;function a7(r){if(!_m(r))return i7(r);var e=[];for(var t in Object(r))s7.call(r,t)&&t!="constructor"&&e.push(t);return e}function Cm(r){return ch(r)?nx(r):a7(r)}function l7(r){var e=[];if(r!=null)for(var t in Object(r))e.push(t);return e}var c7=Object.prototype,u7=c7.hasOwnProperty;function f7(r){if(!ic(r))return l7(r);var e=_m(r),t=[];for(var n in r)n=="constructor"&&(e||!u7.call(r,n))||t.push(n);return t}function od(r){return ch(r)?nx(r,!0):f7(r)}var Xf=tu(Object,"create");function d7(){this.__data__=Xf?Xf(null):{},this.size=0}function h7(r){var e=this.has(r)&&delete this.__data__[r];return this.size-=e?1:0,e}var p7="__lodash_hash_undefined__",g7=Object.prototype,m7=g7.hasOwnProperty;function v7(r){var e=this.__data__;if(Xf){var t=e[r];return t===p7?void 0:t}return m7.call(e,r)?e[r]:void 0}var y7=Object.prototype,b7=y7.hasOwnProperty;function _7(r){var e=this.__data__;return Xf?e[r]!==void 0:b7.call(e,r)}var x7="__lodash_hash_undefined__";function S7(r,e){var t=this.__data__;return this.size+=this.has(r)?0:1,t[r]=Xf&&e===void 0?x7:e,this}function Xc(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var n=r[e];this.set(n[0],n[1])}}Xc.prototype.clear=d7;Xc.prototype.delete=h7;Xc.prototype.get=v7;Xc.prototype.has=_7;Xc.prototype.set=S7;function C7(){this.__data__=[],this.size=0}function uh(r,e){for(var t=r.length;t--;)if(nd(r[t][0],e))return t;return-1}var w7=Array.prototype,A7=w7.splice;function T7(r){var e=this.__data__,t=uh(e,r);if(t<0)return!1;var n=e.length-1;return t==n?e.pop():A7.call(e,t,1),--this.size,!0}function E7(r){var e=this.__data__,t=uh(e,r);return t<0?void 0:e[t][1]}function k7(r){return uh(this.__data__,r)>-1}function R7(r,e){var t=this.__data__,n=uh(t,r);return n<0?(++this.size,t.push([r,e])):t[n][1]=e,this}function ll(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var n=r[e];this.set(n[0],n[1])}}ll.prototype.clear=C7;ll.prototype.delete=T7;ll.prototype.get=E7;ll.prototype.has=k7;ll.prototype.set=R7;var Jf=tu(Aa,"Map");function I7(){this.size=0,this.__data__={hash:new Xc,map:new(Jf||ll),string:new Xc}}function L7(r){var e=typeof r;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?r!=="__proto__":r===null}function fh(r,e){var t=r.__data__;return L7(e)?t[typeof e=="string"?"string":"hash"]:t.map}function M7(r){var e=fh(this,r).delete(r);return this.size-=e?1:0,e}function D7(r){return fh(this,r).get(r)}function O7(r){return fh(this,r).has(r)}function P7(r,e){var t=fh(this,r),n=t.size;return t.set(r,e),this.size+=t.size==n?0:1,this}function ru(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var n=r[e];this.set(n[0],n[1])}}ru.prototype.clear=I7;ru.prototype.delete=M7;ru.prototype.get=D7;ru.prototype.has=O7;ru.prototype.set=P7;function ox(r,e){for(var t=-1,n=e.length,i=r.length;++t<n;)r[i+t]=e[t];return r}var wm=ix(Object.getPrototypeOf,Object),N7="[object Object]",F7=Function.prototype,j7=Object.prototype,sx=F7.toString,B7=j7.hasOwnProperty,H7=sx.call(Object);function q7(r){if(!il(r)||tf(r)!=N7)return!1;var e=wm(r);if(e===null)return!0;var t=B7.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&sx.call(t)==H7}function z7(){this.__data__=new ll,this.size=0}function $7(r){var e=this.__data__,t=e.delete(r);return this.size=e.size,t}function U7(r){return this.__data__.get(r)}function W7(r){return this.__data__.has(r)}var V7=200;function G7(r,e){var t=this.__data__;if(t instanceof ll){var n=t.__data__;if(!Jf||n.length<V7-1)return n.push([r,e]),this.size=++t.size,this;t=this.__data__=new ru(n)}return t.set(r,e),this.size=t.size,this}function _a(r){var e=this.__data__=new ll(r);this.size=e.size}_a.prototype.clear=z7;_a.prototype.delete=$7;_a.prototype.get=U7;_a.prototype.has=W7;_a.prototype.set=G7;function Z7(r,e){return r&&id(e,Cm(e),r)}function K7(r,e){return r&&id(e,od(e),r)}var ax=typeof exports=="object"&&exports&&!exports.nodeType&&exports,m0=ax&&typeof module=="object"&&module&&!module.nodeType&&module,Y7=m0&&m0.exports===ax,v0=Y7?Aa.Buffer:void 0,y0=v0?v0.allocUnsafe:void 0;function lx(r,e){if(e)return r.slice();var t=r.length,n=y0?y0(t):new r.constructor(t);return r.copy(n),n}function X7(r,e){for(var t=-1,n=r==null?0:r.length,i=0,l=[];++t<n;){var u=r[t];e(u,t,r)&&(l[i++]=u)}return l}function cx(){return[]}var J7=Object.prototype,Q7=J7.propertyIsEnumerable,b0=Object.getOwnPropertySymbols,Am=b0?function(r){return r==null?[]:(r=Object(r),X7(b0(r),function(e){return Q7.call(r,e)}))}:cx;function eI(r,e){return id(r,Am(r),e)}var tI=Object.getOwnPropertySymbols,ux=tI?function(r){for(var e=[];r;)ox(e,Am(r)),r=wm(r);return e}:cx;function rI(r,e){return id(r,ux(r),e)}function fx(r,e,t){var n=e(r);return Yc(r)?n:ox(n,t(r))}function q1(r){return fx(r,Cm,Am)}function nI(r){return fx(r,od,ux)}var z1=tu(Aa,"DataView"),$1=tu(Aa,"Promise"),U1=tu(Aa,"Set"),_0="[object Map]",iI="[object Object]",x0="[object Promise]",S0="[object Set]",C0="[object WeakMap]",w0="[object DataView]",oI=eu(z1),sI=eu(Jf),aI=eu($1),lI=eu(U1),cI=eu(B1),Fs=tf;(z1&&Fs(new z1(new ArrayBuffer(1)))!=w0||Jf&&Fs(new Jf)!=_0||$1&&Fs($1.resolve())!=x0||U1&&Fs(new U1)!=S0||B1&&Fs(new B1)!=C0)&&(Fs=function(r){var e=tf(r),t=e==iI?r.constructor:void 0,n=t?eu(t):"";if(n)switch(n){case oI:return w0;case sI:return _0;case aI:return x0;case lI:return S0;case cI:return C0}return e});var uI=Object.prototype,fI=uI.hasOwnProperty;function dI(r){var e=r.length,t=new r.constructor(e);return e&&typeof r[0]=="string"&&fI.call(r,"index")&&(t.index=r.index,t.input=r.input),t}var eh=Aa.Uint8Array;function Tm(r){var e=new r.constructor(r.byteLength);return new eh(e).set(new eh(r)),e}function hI(r,e){var t=e?Tm(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.byteLength)}var pI=/\w*$/;function gI(r){var e=new r.constructor(r.source,pI.exec(r));return e.lastIndex=r.lastIndex,e}var A0=nc?nc.prototype:void 0,T0=A0?A0.valueOf:void 0;function mI(r){return T0?Object(T0.call(r)):{}}function dx(r,e){var t=e?Tm(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.length)}var vI="[object Boolean]",yI="[object Date]",bI="[object Map]",_I="[object Number]",xI="[object RegExp]",SI="[object Set]",CI="[object String]",wI="[object Symbol]",AI="[object ArrayBuffer]",TI="[object DataView]",EI="[object Float32Array]",kI="[object Float64Array]",RI="[object Int8Array]",II="[object Int16Array]",LI="[object Int32Array]",MI="[object Uint8Array]",DI="[object Uint8ClampedArray]",OI="[object Uint16Array]",PI="[object Uint32Array]";function NI(r,e,t){var n=r.constructor;switch(e){case AI:return Tm(r);case vI:case yI:return new n(+r);case TI:return hI(r,t);case EI:case kI:case RI:case II:case LI:case MI:case DI:case OI:case PI:return dx(r,t);case bI:return new n;case _I:case CI:return new n(r);case xI:return gI(r);case SI:return new n;case wI:return mI(r)}}function hx(r){return typeof r.constructor=="function"&&!_m(r)?n9(wm(r)):{}}var FI="[object Map]";function jI(r){return il(r)&&Fs(r)==FI}var E0=Ku&&Ku.isMap,BI=E0?xm(E0):jI,HI="[object Set]";function qI(r){return il(r)&&Fs(r)==HI}var k0=Ku&&Ku.isSet,zI=k0?xm(k0):qI,$I=1,UI=2,WI=4,px="[object Arguments]",VI="[object Array]",GI="[object Boolean]",ZI="[object Date]",KI="[object Error]",gx="[object Function]",YI="[object GeneratorFunction]",XI="[object Map]",JI="[object Number]",mx="[object Object]",QI="[object RegExp]",eL="[object Set]",tL="[object String]",rL="[object Symbol]",nL="[object WeakMap]",iL="[object ArrayBuffer]",oL="[object DataView]",sL="[object Float32Array]",aL="[object Float64Array]",lL="[object Int8Array]",cL="[object Int16Array]",uL="[object Int32Array]",fL="[object Uint8Array]",dL="[object Uint8ClampedArray]",hL="[object Uint16Array]",pL="[object Uint32Array]",gn={};gn[px]=gn[VI]=gn[iL]=gn[oL]=gn[GI]=gn[ZI]=gn[sL]=gn[aL]=gn[lL]=gn[cL]=gn[uL]=gn[XI]=gn[JI]=gn[mx]=gn[QI]=gn[eL]=gn[tL]=gn[rL]=gn[fL]=gn[dL]=gn[hL]=gn[pL]=!0;gn[KI]=gn[gx]=gn[nL]=!1;function Ud(r,e,t,n,i,l){var u,f=e&$I,g=e&UI,m=e&WI;if(u!==void 0)return u;if(!ic(r))return r;var R=Yc(r);if(R){if(u=dI(r),!f)return Y2(r,u)}else{var w=Fs(r),b=w==gx||w==YI;if(Yf(r))return lx(r,f);if(w==mx||w==px||b&&!i){if(u=g||b?{}:hx(r),!f)return g?rI(r,K7(u,r)):eI(r,Z7(u,r))}else{if(!gn[w])return i?r:{};u=NI(r,w,f)}}l||(l=new _a);var S=l.get(r);if(S)return S;l.set(r,u),zI(r)?r.forEach(function(E){u.add(Ud(E,e,t,E,r,l))}):BI(r)&&r.forEach(function(E,x){u.set(x,Ud(E,e,t,x,r,l))});var _=m?g?nI:q1:g?od:Cm,D=R?void 0:_(r);return d9(D||r,function(E,x){D&&(x=E,E=r[x]),J2(u,x,Ud(E,e,t,x,r,l))}),u}var gL=1,mL=4;function Uu(r){return Ud(r,gL|mL)}var vL="__lodash_hash_undefined__";function yL(r){return this.__data__.set(r,vL),this}function bL(r){return this.__data__.has(r)}function th(r){var e=-1,t=r==null?0:r.length;for(this.__data__=new ru;++e<t;)this.add(r[e])}th.prototype.add=th.prototype.push=yL;th.prototype.has=bL;function _L(r,e){for(var t=-1,n=r==null?0:r.length;++t<n;)if(e(r[t],t,r))return!0;return!1}function xL(r,e){return r.has(e)}var SL=1,CL=2;function vx(r,e,t,n,i,l){var u=t&SL,f=r.length,g=e.length;if(f!=g&&!(u&&g>f))return!1;var m=l.get(r),R=l.get(e);if(m&&R)return m==e&&R==r;var w=-1,b=!0,S=t&CL?new th:void 0;for(l.set(r,e),l.set(e,r);++w<f;){var _=r[w],D=e[w];if(n)var E=u?n(D,_,w,e,r,l):n(_,D,w,r,e,l);if(E!==void 0){if(E)continue;b=!1;break}if(S){if(!_L(e,function(x,L){if(!xL(S,L)&&(_===x||i(_,x,t,n,l)))return S.push(L)})){b=!1;break}}else if(!(_===D||i(_,D,t,n,l))){b=!1;break}}return l.delete(r),l.delete(e),b}function wL(r){var e=-1,t=Array(r.size);return r.forEach(function(n,i){t[++e]=[i,n]}),t}function AL(r){var e=-1,t=Array(r.size);return r.forEach(function(n){t[++e]=n}),t}var TL=1,EL=2,kL="[object Boolean]",RL="[object Date]",IL="[object Error]",LL="[object Map]",ML="[object Number]",DL="[object RegExp]",OL="[object Set]",PL="[object String]",NL="[object Symbol]",FL="[object ArrayBuffer]",jL="[object DataView]",R0=nc?nc.prototype:void 0,tp=R0?R0.valueOf:void 0;function BL(r,e,t,n,i,l,u){switch(t){case jL:if(r.byteLength!=e.byteLength||r.byteOffset!=e.byteOffset)return!1;r=r.buffer,e=e.buffer;case FL:return!(r.byteLength!=e.byteLength||!l(new eh(r),new eh(e)));case kL:case RL:case ML:return nd(+r,+e);case IL:return r.name==e.name&&r.message==e.message;case DL:case PL:return r==e+"";case LL:var f=wL;case OL:var g=n&TL;if(f||(f=AL),r.size!=e.size&&!g)return!1;var m=u.get(r);if(m)return m==e;n|=EL,u.set(r,e);var R=vx(f(r),f(e),n,i,l,u);return u.delete(r),R;case NL:if(tp)return tp.call(r)==tp.call(e)}return!1}var HL=1,qL=Object.prototype,zL=qL.hasOwnProperty;function $L(r,e,t,n,i,l){var u=t&HL,f=q1(r),g=f.length,m=q1(e),R=m.length;if(g!=R&&!u)return!1;for(var w=g;w--;){var b=f[w];if(!(u?b in e:zL.call(e,b)))return!1}var S=l.get(r),_=l.get(e);if(S&&_)return S==e&&_==r;var D=!0;l.set(r,e),l.set(e,r);for(var E=u;++w<g;){b=f[w];var x=r[b],L=e[b];if(n)var O=u?n(L,x,b,e,r,l):n(x,L,b,r,e,l);if(!(O===void 0?x===L||i(x,L,t,n,l):O)){D=!1;break}E||(E=b=="constructor")}if(D&&!E){var H=r.constructor,q=e.constructor;H!=q&&"constructor"in r&&"constructor"in e&&!(typeof H=="function"&&H instanceof H&&typeof q=="function"&&q instanceof q)&&(D=!1)}return l.delete(r),l.delete(e),D}var UL=1,I0="[object Arguments]",L0="[object Array]",Dd="[object Object]",WL=Object.prototype,M0=WL.hasOwnProperty;function VL(r,e,t,n,i,l){var u=Yc(r),f=Yc(e),g=u?L0:Fs(r),m=f?L0:Fs(e);g=g==I0?Dd:g,m=m==I0?Dd:m;var R=g==Dd,w=m==Dd,b=g==m;if(b&&Yf(r)){if(!Yf(e))return!1;u=!0,R=!1}if(b&&!R)return l||(l=new _a),u||Sm(r)?vx(r,e,t,n,i,l):BL(r,e,g,t,n,i,l);if(!(t&UL)){var S=R&&M0.call(r,"__wrapped__"),_=w&&M0.call(e,"__wrapped__");if(S||_){var D=S?r.value():r,E=_?e.value():e;return l||(l=new _a),i(D,E,t,n,l)}}return b?(l||(l=new _a),$L(r,e,t,n,i,l)):!1}function yx(r,e,t,n,i){return r===e?!0:r==null||e==null||!il(r)&&!il(e)?r!==r&&e!==e:VL(r,e,t,n,yx,i)}function GL(r){return function(e,t,n){for(var i=-1,l=Object(e),u=n(e),f=u.length;f--;){var g=u[++i];if(t(l[g],g,l)===!1)break}return e}}var ZL=GL();function W1(r,e,t){(t!==void 0&&!nd(r[e],t)||t===void 0&&!(e in r))&&bm(r,e,t)}function KL(r){return il(r)&&ch(r)}function V1(r,e){if(!(e==="constructor"&&typeof r[e]=="function")&&e!="__proto__")return r[e]}function YL(r){return id(r,od(r))}function XL(r,e,t,n,i,l,u){var f=V1(r,t),g=V1(e,t),m=u.get(g);if(m){W1(r,t,m);return}var R=l?l(f,g,t+"",r,e,u):void 0,w=R===void 0;if(w){var b=Yc(g),S=!b&&Yf(g),_=!b&&!S&&Sm(g);R=g,b||S||_?Yc(f)?R=f:KL(f)?R=Y2(f):S?(w=!1,R=lx(g,!0)):_?(w=!1,R=dx(g,!0)):R=[]:q7(g)||H1(g)?(R=f,H1(f)?R=YL(f):(!ic(f)||ym(f))&&(R=hx(g))):w=!1}w&&(u.set(g,R),i(R,g,n,l,u),u.delete(g)),W1(r,t,R)}function bx(r,e,t,n,i){r!==e&&ZL(e,function(l,u){if(i||(i=new _a),ic(l))XL(r,e,u,t,bx,n,i);else{var f=n?n(V1(r,u),l,u+"",r,e,i):void 0;f===void 0&&(f=l),W1(r,u,f)}},od)}function Em(r,e){return yx(r,e)}var Ql=x9(function(r,e,t){bx(r,e,t)}),Jt=(r=>(r[r.TYPE=3]="TYPE",r[r.LEVEL=12]="LEVEL",r[r.ATTRIBUTE=13]="ATTRIBUTE",r[r.BLOT=14]="BLOT",r[r.INLINE=7]="INLINE",r[r.BLOCK=11]="BLOCK",r[r.BLOCK_BLOT=10]="BLOCK_BLOT",r[r.INLINE_BLOT=6]="INLINE_BLOT",r[r.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",r[r.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",r[r.ANY=15]="ANY",r))(Jt||{});class Ca{constructor(e,t,n={}){this.attrName=e,this.keyName=t;const i=Jt.TYPE&Jt.ATTRIBUTE;this.scope=n.scope!=null?n.scope&Jt.LEVEL|i:Jt.ATTRIBUTE,n.whitelist!=null&&(this.whitelist=n.whitelist)}static keys(e){return Array.from(e.attributes).map(t=>t.name)}add(e,t){return this.canAdd(e,t)?(e.setAttribute(this.keyName,t),!0):!1}canAdd(e,t){return this.whitelist==null?!0:typeof t=="string"?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1}remove(e){e.removeAttribute(this.keyName)}value(e){const t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""}}class Wu extends Error{constructor(e){e="[Parchment] "+e,super(e),this.message=e,this.name=this.constructor.name}}const _x=class G1{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(e,t=!1){if(e==null)return null;if(this.blots.has(e))return this.blots.get(e)||null;if(t){let n=null;try{n=e.parentNode}catch{return null}return this.find(n,t)}return null}create(e,t,n){const i=this.query(t);if(i==null)throw new Wu(`Unable to create ${t} blot`);const l=i,u=t instanceof Node||t.nodeType===Node.TEXT_NODE?t:l.create(n),f=new l(e,u,n);return G1.blots.set(f.domNode,f),f}find(e,t=!1){return G1.find(e,t)}query(e,t=Jt.ANY){let n;return typeof e=="string"?n=this.types[e]||this.attributes[e]:e instanceof Text||e.nodeType===Node.TEXT_NODE?n=this.types.text:typeof e=="number"?e&Jt.LEVEL&Jt.BLOCK?n=this.types.block:e&Jt.LEVEL&Jt.INLINE&&(n=this.types.inline):e instanceof Element&&((e.getAttribute("class")||"").split(/\s+/).some(i=>(n=this.classes[i],!!n)),n=n||this.tags[e.tagName]),n==null?null:"scope"in n&&t&Jt.LEVEL&n.scope&&t&Jt.TYPE&n.scope?n:null}register(...e){return e.map(t=>{const n="blotName"in t,i="attrName"in t;if(!n&&!i)throw new Wu("Invalid definition");if(n&&t.blotName==="abstract")throw new Wu("Cannot register abstract class");const l=n?t.blotName:i?t.attrName:void 0;return this.types[l]=t,i?typeof t.keyName=="string"&&(this.attributes[t.keyName]=t):n&&(t.className&&(this.classes[t.className]=t),t.tagName&&(Array.isArray(t.tagName)?t.tagName=t.tagName.map(u=>u.toUpperCase()):t.tagName=t.tagName.toUpperCase(),(Array.isArray(t.tagName)?t.tagName:[t.tagName]).forEach(u=>{(this.tags[u]==null||t.className==null)&&(this.tags[u]=t)}))),t})}};_x.blots=new WeakMap;let Yu=_x;function D0(r,e){return(r.getAttribute("class")||"").split(/\s+/).filter(t=>t.indexOf(`${e}-`)===0)}class JL extends Ca{static keys(e){return(e.getAttribute("class")||"").split(/\s+/).map(t=>t.split("-").slice(0,-1).join("-"))}add(e,t){return this.canAdd(e,t)?(this.remove(e),e.classList.add(`${this.keyName}-${t}`),!0):!1}remove(e){D0(e,this.keyName).forEach(t=>{e.classList.remove(t)}),e.classList.length===0&&e.removeAttribute("class")}value(e){const t=(D0(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""}}const Us=JL;function rp(r){const e=r.split("-"),t=e.slice(1).map(n=>n[0].toUpperCase()+n.slice(1)).join("");return e[0]+t}class QL extends Ca{static keys(e){return(e.getAttribute("style")||"").split(";").map(t=>t.split(":")[0].trim())}add(e,t){return this.canAdd(e,t)?(e.style[rp(this.keyName)]=t,!0):!1}remove(e){e.style[rp(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")}value(e){const t=e.style[rp(this.keyName)];return this.canAdd(e,t)?t:""}}const oc=QL;class eM{constructor(e){this.attributes={},this.domNode=e,this.build()}attribute(e,t){t?e.add(this.domNode,t)&&(e.value(this.domNode)!=null?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])}build(){this.attributes={};const e=Yu.find(this.domNode);if(e==null)return;const t=Ca.keys(this.domNode),n=Us.keys(this.domNode),i=oc.keys(this.domNode);t.concat(n).concat(i).forEach(l=>{const u=e.scroll.query(l,Jt.ATTRIBUTE);u instanceof Ca&&(this.attributes[u.attrName]=u)})}copy(e){Object.keys(this.attributes).forEach(t=>{const n=this.attributes[t].value(this.domNode);e.format(t,n)})}move(e){this.copy(e),Object.keys(this.attributes).forEach(t=>{this.attributes[t].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((e,t)=>(e[t]=this.attributes[t].value(this.domNode),e),{})}}const dh=eM,xx=class{constructor(e,t){this.scroll=e,this.domNode=t,Yu.blots.set(t,this),this.prev=null,this.next=null}static create(e){if(this.tagName==null)throw new Wu("Blot definition missing tagName");let t,n;return Array.isArray(this.tagName)?(typeof e=="string"?(n=e.toUpperCase(),parseInt(n,10).toString()===n&&(n=parseInt(n,10))):typeof e=="number"&&(n=e),typeof n=="number"?t=document.createElement(this.tagName[n-1]):n&&this.tagName.indexOf(n)>-1?t=document.createElement(n):t=document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t}get statics(){return this.constructor}attach(){}clone(){const e=this.domNode.cloneNode(!1);return this.scroll.create(e)}detach(){this.parent!=null&&this.parent.removeChild(this),Yu.blots.delete(this.domNode)}deleteAt(e,t){this.isolate(e,t).remove()}formatAt(e,t,n,i){const l=this.isolate(e,t);if(this.scroll.query(n,Jt.BLOT)!=null&&i)l.wrap(n,i);else if(this.scroll.query(n,Jt.ATTRIBUTE)!=null){const u=this.scroll.create(this.statics.scope);l.wrap(u),u.format(n,i)}}insertAt(e,t,n){const i=n==null?this.scroll.create("text",t):this.scroll.create(t,n),l=this.split(e);this.parent.insertBefore(i,l||void 0)}isolate(e,t){const n=this.split(e);if(n==null)throw new Error("Attempt to isolate at end");return n.split(t),n}length(){return 1}offset(e=this.parent){return this.parent==null||this===e?0:this.parent.children.offset(this)+this.parent.offset(e)}optimize(e){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)}remove(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(e,t){const n=typeof e=="string"?this.scroll.create(e,t):e;return this.parent!=null&&(this.parent.insertBefore(n,this.next||void 0),this.remove()),n}split(e,t){return e===0?this:this.next}update(e,t){}wrap(e,t){const n=typeof e=="string"?this.scroll.create(e,t):e;if(this.parent!=null&&this.parent.insertBefore(n,this.next||void 0),typeof n.appendChild!="function")throw new Wu(`Cannot wrap ${e}`);return n.appendChild(this),n}};xx.blotName="abstract";let Sx=xx;const Cx=class extends Sx{static value(e){return!0}index(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1}position(e,t){let n=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return e>0&&(n+=1),[this.parent.domNode,n]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};Cx.scope=Jt.INLINE_BLOT;let tM=Cx;const qi=tM;class rM{constructor(){this.head=null,this.tail=null,this.length=0}append(...e){if(this.insertBefore(e[0],null),e.length>1){const t=e.slice(1);this.append(...t)}}at(e){const t=this.iterator();let n=t();for(;n&&e>0;)e-=1,n=t();return n}contains(e){const t=this.iterator();let n=t();for(;n;){if(n===e)return!0;n=t()}return!1}indexOf(e){const t=this.iterator();let n=t(),i=0;for(;n;){if(n===e)return i;i+=1,n=t()}return-1}insertBefore(e,t){e!=null&&(this.remove(e),e.next=t,t!=null?(e.prev=t.prev,t.prev!=null&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):this.tail!=null?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)}offset(e){let t=0,n=this.head;for(;n!=null;){if(n===e)return t;t+=n.length(),n=n.next}return-1}remove(e){this.contains(e)&&(e.prev!=null&&(e.prev.next=e.next),e.next!=null&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)}iterator(e=this.head){return()=>{const t=e;return e!=null&&(e=e.next),t}}find(e,t=!1){const n=this.iterator();let i=n();for(;i;){const l=i.length();if(e<l||t&&e===l&&(i.next==null||i.next.length()!==0))return[i,e];e-=l,i=n()}return[null,0]}forEach(e){const t=this.iterator();let n=t();for(;n;)e(n),n=t()}forEachAt(e,t,n){if(t<=0)return;const[i,l]=this.find(e);let u=e-l;const f=this.iterator(i);let g=f();for(;g&&u<e+t;){const m=g.length();e>u?n(g,e-u,Math.min(t,u+m-e)):n(g,0,Math.min(m,e+t-u)),u+=m,g=f()}}map(e){return this.reduce((t,n)=>(t.push(e(n)),t),[])}reduce(e,t){const n=this.iterator();let i=n();for(;i;)t=e(t,i),i=n();return t}}function O0(r,e){const t=e.find(r);if(t)return t;try{return e.create(r)}catch{const n=e.create(Jt.INLINE);return Array.from(r.childNodes).forEach(i=>{n.domNode.appendChild(i)}),r.parentNode&&r.parentNode.replaceChild(n.domNode,r),n.attach(),n}}const wx=class Kl extends Sx{constructor(e,t){super(e,t),this.uiNode=null,this.build()}appendChild(e){this.insertBefore(e)}attach(){super.attach(),this.children.forEach(e=>{e.attach()})}attachUI(e){this.uiNode!=null&&this.uiNode.remove(),this.uiNode=e,Kl.uiClass&&this.uiNode.classList.add(Kl.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new rM,Array.from(this.domNode.childNodes).filter(e=>e!==this.uiNode).reverse().forEach(e=>{try{const t=O0(e,this.scroll);this.insertBefore(t,this.children.head||void 0)}catch(t){if(t instanceof Wu)return;throw t}})}deleteAt(e,t){if(e===0&&t===this.length())return this.remove();this.children.forEachAt(e,t,(n,i,l)=>{n.deleteAt(i,l)})}descendant(e,t=0){const[n,i]=this.children.find(t);return e.blotName==null&&e(n)||e.blotName!=null&&n instanceof e?[n,i]:n instanceof Kl?n.descendant(e,i):[null,-1]}descendants(e,t=0,n=Number.MAX_VALUE){let i=[],l=n;return this.children.forEachAt(t,n,(u,f,g)=>{(e.blotName==null&&e(u)||e.blotName!=null&&u instanceof e)&&i.push(u),u instanceof Kl&&(i=i.concat(u.descendants(e,f,l))),l-=g}),i}detach(){this.children.forEach(e=>{e.detach()}),super.detach()}enforceAllowedChildren(){let e=!1;this.children.forEach(t=>{e||this.statics.allowedChildren.some(n=>t instanceof n)||(t.statics.scope===Jt.BLOCK_BLOT?(t.next!=null&&this.splitAfter(t),t.prev!=null&&this.splitAfter(t.prev),t.parent.unwrap(),e=!0):t instanceof Kl?t.unwrap():t.remove())})}formatAt(e,t,n,i){this.children.forEachAt(e,t,(l,u,f)=>{l.formatAt(u,f,n,i)})}insertAt(e,t,n){const[i,l]=this.children.find(e);if(i)i.insertAt(l,t,n);else{const u=n==null?this.scroll.create("text",t):this.scroll.create(t,n);this.appendChild(u)}}insertBefore(e,t){e.parent!=null&&e.parent.children.remove(e);let n=null;this.children.insertBefore(e,t||null),e.parent=this,t!=null&&(n=t.domNode),(this.domNode.parentNode!==e.domNode||this.domNode.nextSibling!==n)&&this.domNode.insertBefore(e.domNode,n),e.attach()}length(){return this.children.reduce((e,t)=>e+t.length(),0)}moveChildren(e,t){this.children.forEach(n=>{e.insertBefore(n,t)})}optimize(e){if(super.optimize(e),this.enforceAllowedChildren(),this.uiNode!=null&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),this.children.length===0)if(this.statics.defaultChild!=null){const t=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(t)}else this.remove()}path(e,t=!1){const[n,i]=this.children.find(e,t),l=[[this,e]];return n instanceof Kl?l.concat(n.path(i,t)):(n!=null&&l.push([n,i]),l)}removeChild(e){this.children.remove(e)}replaceWith(e,t){const n=typeof e=="string"?this.scroll.create(e,t):e;return n instanceof Kl&&this.moveChildren(n),super.replaceWith(n)}split(e,t=!1){if(!t){if(e===0)return this;if(e===this.length())return this.next}const n=this.clone();return this.parent&&this.parent.insertBefore(n,this.next||void 0),this.children.forEachAt(e,this.length(),(i,l,u)=>{const f=i.split(l,t);f!=null&&n.appendChild(f)}),n}splitAfter(e){const t=this.clone();for(;e.next!=null;)t.appendChild(e.next);return this.parent&&this.parent.insertBefore(t,this.next||void 0),t}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(e,t){const n=[],i=[];e.forEach(l=>{l.target===this.domNode&&l.type==="childList"&&(n.push(...l.addedNodes),i.push(...l.removedNodes))}),i.forEach(l=>{if(l.parentNode!=null&&l.tagName!=="IFRAME"&&document.body.compareDocumentPosition(l)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const u=this.scroll.find(l);u!=null&&(u.domNode.parentNode==null||u.domNode.parentNode===this.domNode)&&u.detach()}),n.filter(l=>l.parentNode===this.domNode&&l!==this.uiNode).sort((l,u)=>l===u?0:l.compareDocumentPosition(u)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(l=>{let u=null;l.nextSibling!=null&&(u=this.scroll.find(l.nextSibling));const f=O0(l,this.scroll);(f.next!==u||f.next==null)&&(f.parent!=null&&f.parent.removeChild(this),this.insertBefore(f,u||void 0))}),this.enforceAllowedChildren()}};wx.uiClass="";let nM=wx;const qs=nM;function iM(r,e){if(Object.keys(r).length!==Object.keys(e).length)return!1;for(const t in r)if(r[t]!==e[t])return!1;return!0}const Pu=class Nu extends qs{static create(e){return super.create(e)}static formats(e,t){const n=t.query(Nu.blotName);if(!(n!=null&&e.tagName===n.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(e,t){super(e,t),this.attributes=new dh(this.domNode)}format(e,t){if(e===this.statics.blotName&&!t)this.children.forEach(n=>{n instanceof Nu||(n=n.wrap(Nu.blotName,!0)),this.attributes.copy(n)}),this.unwrap();else{const n=this.scroll.query(e,Jt.INLINE);if(n==null)return;n instanceof Ca?this.attributes.attribute(n,t):t&&(e!==this.statics.blotName||this.formats()[e]!==t)&&this.replaceWith(e,t)}}formats(){const e=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return t!=null&&(e[this.statics.blotName]=t),e}formatAt(e,t,n,i){this.formats()[n]!=null||this.scroll.query(n,Jt.ATTRIBUTE)?this.isolate(e,t).format(n,i):super.formatAt(e,t,n,i)}optimize(e){super.optimize(e);const t=this.formats();if(Object.keys(t).length===0)return this.unwrap();const n=this.next;n instanceof Nu&&n.prev===this&&iM(t,n.formats())&&(n.moveChildren(this),n.remove())}replaceWith(e,t){const n=super.replaceWith(e,t);return this.attributes.copy(n),n}update(e,t){super.update(e,t),e.some(n=>n.target===this.domNode&&n.type==="attributes")&&this.attributes.build()}wrap(e,t){const n=super.wrap(e,t);return n instanceof Nu&&this.attributes.move(n),n}};Pu.allowedChildren=[Pu,qi],Pu.blotName="inline",Pu.scope=Jt.INLINE_BLOT,Pu.tagName="SPAN";let oM=Pu;const km=oM,Fu=class Z1 extends qs{static create(e){return super.create(e)}static formats(e,t){const n=t.query(Z1.blotName);if(!(n!=null&&e.tagName===n.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(e,t){super(e,t),this.attributes=new dh(this.domNode)}format(e,t){const n=this.scroll.query(e,Jt.BLOCK);n!=null&&(n instanceof Ca?this.attributes.attribute(n,t):e===this.statics.blotName&&!t?this.replaceWith(Z1.blotName):t&&(e!==this.statics.blotName||this.formats()[e]!==t)&&this.replaceWith(e,t))}formats(){const e=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return t!=null&&(e[this.statics.blotName]=t),e}formatAt(e,t,n,i){this.scroll.query(n,Jt.BLOCK)!=null?this.format(n,i):super.formatAt(e,t,n,i)}insertAt(e,t,n){if(n==null||this.scroll.query(t,Jt.INLINE)!=null)super.insertAt(e,t,n);else{const i=this.split(e);if(i!=null){const l=this.scroll.create(t,n);i.parent.insertBefore(l,i)}else throw new Error("Attempt to insertAt after block boundaries")}}replaceWith(e,t){const n=super.replaceWith(e,t);return this.attributes.copy(n),n}update(e,t){super.update(e,t),e.some(n=>n.target===this.domNode&&n.type==="attributes")&&this.attributes.build()}};Fu.blotName="block",Fu.scope=Jt.BLOCK_BLOT,Fu.tagName="P",Fu.allowedChildren=[km,Fu,qi];let sM=Fu;const Qf=sM,K1=class extends qs{checkMerge(){return this.next!==null&&this.next.statics.blotName===this.statics.blotName}deleteAt(e,t){super.deleteAt(e,t),this.enforceAllowedChildren()}formatAt(e,t,n,i){super.formatAt(e,t,n,i),this.enforceAllowedChildren()}insertAt(e,t,n){super.insertAt(e,t,n),this.enforceAllowedChildren()}optimize(e){super.optimize(e),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};K1.blotName="container",K1.scope=Jt.BLOCK_BLOT;let aM=K1;const hh=aM;class lM extends qi{static formats(e,t){}format(e,t){super.formatAt(0,this.length(),e,t)}formatAt(e,t,n,i){e===0&&t===this.length()?this.format(n,i):super.formatAt(e,t,n,i)}formats(){return this.statics.formats(this.domNode,this.scroll)}}const zo=lM,cM={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},uM=100,ju=class extends qs{constructor(e,t){super(null,t),this.registry=e,this.scroll=this,this.build(),this.observer=new MutationObserver(n=>{this.update(n)}),this.observer.observe(this.domNode,cM),this.attach()}create(e,t){return this.registry.create(this,e,t)}find(e,t=!1){const n=this.registry.find(e,t);return n?n.scroll===this?n:t?this.find(n.scroll.domNode.parentNode,!0):null:null}query(e,t=Jt.ANY){return this.registry.query(e,t)}register(...e){return this.registry.register(...e)}build(){this.scroll!=null&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(e,t){this.update(),e===0&&t===this.length()?this.children.forEach(n=>{n.remove()}):super.deleteAt(e,t)}formatAt(e,t,n,i){this.update(),super.formatAt(e,t,n,i)}insertAt(e,t,n){this.update(),super.insertAt(e,t,n)}optimize(e=[],t={}){super.optimize(t);const n=t.mutationsMap||new WeakMap;let i=Array.from(this.observer.takeRecords());for(;i.length>0;)e.push(i.pop());const l=(g,m=!0)=>{g==null||g===this||g.domNode.parentNode!=null&&(n.has(g.domNode)||n.set(g.domNode,[]),m&&l(g.parent))},u=g=>{n.has(g.domNode)&&(g instanceof qs&&g.children.forEach(u),n.delete(g.domNode),g.optimize(t))};let f=e;for(let g=0;f.length>0;g+=1){if(g>=uM)throw new Error("[Parchment] Maximum optimize iterations reached");for(f.forEach(m=>{const R=this.find(m.target,!0);R!=null&&(R.domNode===m.target&&(m.type==="childList"?(l(this.find(m.previousSibling,!1)),Array.from(m.addedNodes).forEach(w=>{const b=this.find(w,!1);l(b,!1),b instanceof qs&&b.children.forEach(S=>{l(S,!1)})})):m.type==="attributes"&&l(R.prev)),l(R))}),this.children.forEach(u),f=Array.from(this.observer.takeRecords()),i=f.slice();i.length>0;)e.push(i.pop())}}update(e,t={}){e=e||this.observer.takeRecords();const n=new WeakMap;e.map(i=>{const l=this.find(i.target,!0);return l==null?null:n.has(l.domNode)?(n.get(l.domNode).push(i),null):(n.set(l.domNode,[i]),l)}).forEach(i=>{i!=null&&i!==this&&n.has(i.domNode)&&i.update(n.get(i.domNode)||[],t)}),t.mutationsMap=n,n.has(this.domNode)&&super.update(n.get(this.domNode),t),this.optimize(e,t)}};ju.blotName="scroll",ju.defaultChild=Qf,ju.allowedChildren=[Qf,hh],ju.scope=Jt.BLOCK_BLOT,ju.tagName="DIV";let fM=ju;const Rm=fM,Y1=class Ax extends qi{static create(e){return document.createTextNode(e)}static value(e){return e.data}constructor(e,t){super(e,t),this.text=this.statics.value(this.domNode)}deleteAt(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)}index(e,t){return this.domNode===e?t:-1}insertAt(e,t,n){n==null?(this.text=this.text.slice(0,e)+t+this.text.slice(e),this.domNode.data=this.text):super.insertAt(e,t,n)}length(){return this.text.length}optimize(e){super.optimize(e),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof Ax&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(e,t=!1){return[this.domNode,e]}split(e,t=!1){if(!t){if(e===0)return this;if(e===this.length())return this.next}const n=this.scroll.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next||void 0),this.text=this.statics.value(this.domNode),n}update(e,t){e.some(n=>n.type==="characterData"&&n.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};Y1.blotName="text",Y1.scope=Jt.INLINE_BLOT;let dM=Y1;const rh=dM,hM=Object.freeze(Object.defineProperty({__proto__:null,Attributor:Ca,AttributorStore:dh,BlockBlot:Qf,ClassAttributor:Us,ContainerBlot:hh,EmbedBlot:zo,InlineBlot:km,LeafBlot:qi,ParentBlot:qs,Registry:Yu,Scope:Jt,ScrollBlot:Rm,StyleAttributor:oc,TextBlot:rh},Symbol.toStringTag,{value:"Module"}));var Od={exports:{}},np,P0;function pM(){if(P0)return np;P0=1;var r=-1,e=1,t=0;function n(j,re,J,Q,he){if(j===re)return j?[[t,j]]:[];if(J!=null){var me=X(j,re,J);if(me)return me}var be=f(j,re),ce=j.substring(0,be);j=j.substring(be),re=re.substring(be),be=m(j,re);var ke=j.substring(j.length-be);j=j.substring(0,j.length-be),re=re.substring(0,re.length-be);var le=i(j,re);return ce&&le.unshift([t,ce]),ke&&le.push([t,ke]),L(le,he),Q&&w(le),le}function i(j,re){var J;if(!j)return[[e,re]];if(!re)return[[r,j]];var Q=j.length>re.length?j:re,he=j.length>re.length?re:j,me=Q.indexOf(he);if(me!==-1)return J=[[e,Q.substring(0,me)],[t,he],[e,Q.substring(me+he.length)]],j.length>re.length&&(J[0][0]=J[2][0]=r),J;if(he.length===1)return[[r,j],[e,re]];var be=R(j,re);if(be){var ce=be[0],ke=be[1],le=be[2],oe=be[3],ve=be[4],Oe=n(ce,le),et=n(ke,oe);return Oe.concat([[t,ve]],et)}return l(j,re)}function l(j,re){for(var J=j.length,Q=re.length,he=Math.ceil((J+Q)/2),me=he,be=2*he,ce=new Array(be),ke=new Array(be),le=0;le<be;le++)ce[le]=-1,ke[le]=-1;ce[me+1]=0,ke[me+1]=0;for(var oe=J-Q,ve=oe%2!==0,Oe=0,et=0,we=0,Pe=0,je=0;je<he;je++){for(var ze=-je+Oe;ze<=je-et;ze+=2){var We=me+ze,De;ze===-je||ze!==je&&ce[We-1]<ce[We+1]?De=ce[We+1]:De=ce[We-1]+1;for(var Ae=De-ze;De<J&&Ae<Q&&j.charAt(De)===re.charAt(Ae);)De++,Ae++;if(ce[We]=De,De>J)et+=2;else if(Ae>Q)Oe+=2;else if(ve){var _e=me+oe-ze;if(_e>=0&&_e<be&&ke[_e]!==-1){var Ge=J-ke[_e];if(De>=Ge)return u(j,re,De,Ae)}}}for(var lt=-je+we;lt<=je-Pe;lt+=2){var _e=me+lt,Ge;lt===-je||lt!==je&&ke[_e-1]<ke[_e+1]?Ge=ke[_e+1]:Ge=ke[_e-1]+1;for(var $e=Ge-lt;Ge<J&&$e<Q&&j.charAt(J-Ge-1)===re.charAt(Q-$e-1);)Ge++,$e++;if(ke[_e]=Ge,Ge>J)Pe+=2;else if($e>Q)we+=2;else if(!ve){var We=me+oe-lt;if(We>=0&&We<be&&ce[We]!==-1){var De=ce[We],Ae=me+De-We;if(Ge=J-Ge,De>=Ge)return u(j,re,De,Ae)}}}}return[[r,j],[e,re]]}function u(j,re,J,Q){var he=j.substring(0,J),me=re.substring(0,Q),be=j.substring(J),ce=re.substring(Q),ke=n(he,me),le=n(be,ce);return ke.concat(le)}function f(j,re){if(!j||!re||j.charAt(0)!==re.charAt(0))return 0;for(var J=0,Q=Math.min(j.length,re.length),he=Q,me=0;J<he;)j.substring(me,he)==re.substring(me,he)?(J=he,me=J):Q=he,he=Math.floor((Q-J)/2+J);return O(j.charCodeAt(he-1))&&he--,he}function g(j,re){var J=j.length,Q=re.length;if(J==0||Q==0)return 0;J>Q?j=j.substring(J-Q):J<Q&&(re=re.substring(0,J));var he=Math.min(J,Q);if(j==re)return he;for(var me=0,be=1;;){var ce=j.substring(he-be),ke=re.indexOf(ce);if(ke==-1)return me;be+=ke,(ke==0||j.substring(he-be)==re.substring(0,be))&&(me=be,be++)}}function m(j,re){if(!j||!re||j.slice(-1)!==re.slice(-1))return 0;for(var J=0,Q=Math.min(j.length,re.length),he=Q,me=0;J<he;)j.substring(j.length-he,j.length-me)==re.substring(re.length-he,re.length-me)?(J=he,me=J):Q=he,he=Math.floor((Q-J)/2+J);return H(j.charCodeAt(j.length-he))&&he--,he}function R(j,re){var J=j.length>re.length?j:re,Q=j.length>re.length?re:j;if(J.length<4||Q.length*2<J.length)return null;function he(et,we,Pe){for(var je=et.substring(Pe,Pe+Math.floor(et.length/4)),ze=-1,We="",De,Ae,_e,Ge;(ze=we.indexOf(je,ze+1))!==-1;){var lt=f(et.substring(Pe),we.substring(ze)),$e=m(et.substring(0,Pe),we.substring(0,ze));We.length<$e+lt&&(We=we.substring(ze-$e,ze)+we.substring(ze,ze+lt),De=et.substring(0,Pe-$e),Ae=et.substring(Pe+lt),_e=we.substring(0,ze-$e),Ge=we.substring(ze+lt))}return We.length*2>=et.length?[De,Ae,_e,Ge,We]:null}var me=he(J,Q,Math.ceil(J.length/4)),be=he(J,Q,Math.ceil(J.length/2)),ce;if(!me&&!be)return null;be?me?ce=me[4].length>be[4].length?me:be:ce=be:ce=me;var ke,le,oe,ve;j.length>re.length?(ke=ce[0],le=ce[1],oe=ce[2],ve=ce[3]):(oe=ce[0],ve=ce[1],ke=ce[2],le=ce[3]);var Oe=ce[4];return[ke,le,oe,ve,Oe]}function w(j){for(var re=!1,J=[],Q=0,he=null,me=0,be=0,ce=0,ke=0,le=0;me<j.length;)j[me][0]==t?(J[Q++]=me,be=ke,ce=le,ke=0,le=0,he=j[me][1]):(j[me][0]==e?ke+=j[me][1].length:le+=j[me][1].length,he&&he.length<=Math.max(be,ce)&&he.length<=Math.max(ke,le)&&(j.splice(J[Q-1],0,[r,he]),j[J[Q-1]+1][0]=e,Q--,Q--,me=Q>0?J[Q-1]:-1,be=0,ce=0,ke=0,le=0,he=null,re=!0)),me++;for(re&&L(j),x(j),me=1;me<j.length;){if(j[me-1][0]==r&&j[me][0]==e){var oe=j[me-1][1],ve=j[me][1],Oe=g(oe,ve),et=g(ve,oe);Oe>=et?(Oe>=oe.length/2||Oe>=ve.length/2)&&(j.splice(me,0,[t,ve.substring(0,Oe)]),j[me-1][1]=oe.substring(0,oe.length-Oe),j[me+1][1]=ve.substring(Oe),me++):(et>=oe.length/2||et>=ve.length/2)&&(j.splice(me,0,[t,oe.substring(0,et)]),j[me-1][0]=e,j[me-1][1]=ve.substring(0,ve.length-et),j[me+1][0]=r,j[me+1][1]=oe.substring(et),me++),me++}me++}}var b=/[^a-zA-Z0-9]/,S=/\s/,_=/[\r\n]/,D=/\n\r?\n$/,E=/^\r?\n\r?\n/;function x(j){function re(et,we){if(!et||!we)return 6;var Pe=et.charAt(et.length-1),je=we.charAt(0),ze=Pe.match(b),We=je.match(b),De=ze&&Pe.match(S),Ae=We&&je.match(S),_e=De&&Pe.match(_),Ge=Ae&&je.match(_),lt=_e&&et.match(D),$e=Ge&&we.match(E);return lt||$e?5:_e||Ge?4:ze&&!De&&Ae?3:De||Ae?2:ze||We?1:0}for(var J=1;J<j.length-1;){if(j[J-1][0]==t&&j[J+1][0]==t){var Q=j[J-1][1],he=j[J][1],me=j[J+1][1],be=m(Q,he);if(be){var ce=he.substring(he.length-be);Q=Q.substring(0,Q.length-be),he=ce+he.substring(0,he.length-be),me=ce+me}for(var ke=Q,le=he,oe=me,ve=re(Q,he)+re(he,me);he.charAt(0)===me.charAt(0);){Q+=he.charAt(0),he=he.substring(1)+me.charAt(0),me=me.substring(1);var Oe=re(Q,he)+re(he,me);Oe>=ve&&(ve=Oe,ke=Q,le=he,oe=me)}j[J-1][1]!=ke&&(ke?j[J-1][1]=ke:(j.splice(J-1,1),J--),j[J][1]=le,oe?j[J+1][1]=oe:(j.splice(J+1,1),J--))}J++}}function L(j,re){j.push([t,""]);for(var J=0,Q=0,he=0,me="",be="",ce;J<j.length;){if(J<j.length-1&&!j[J][1]){j.splice(J,1);continue}switch(j[J][0]){case e:he++,be+=j[J][1],J++;break;case r:Q++,me+=j[J][1],J++;break;case t:var ke=J-he-Q-1;if(re){if(ke>=0&&z(j[ke][1])){var le=j[ke][1].slice(-1);if(j[ke][1]=j[ke][1].slice(0,-1),me=le+me,be=le+be,!j[ke][1]){j.splice(ke,1),J--;var oe=ke-1;j[oe]&&j[oe][0]===e&&(he++,be=j[oe][1]+be,oe--),j[oe]&&j[oe][0]===r&&(Q++,me=j[oe][1]+me,oe--),ke=oe}}if(q(j[J][1])){var le=j[J][1].charAt(0);j[J][1]=j[J][1].slice(1),me+=le,be+=le}}if(J<j.length-1&&!j[J][1]){j.splice(J,1);break}if(me.length>0||be.length>0){me.length>0&&be.length>0&&(ce=f(be,me),ce!==0&&(ke>=0?j[ke][1]+=be.substring(0,ce):(j.splice(0,0,[t,be.substring(0,ce)]),J++),be=be.substring(ce),me=me.substring(ce)),ce=m(be,me),ce!==0&&(j[J][1]=be.substring(be.length-ce)+j[J][1],be=be.substring(0,be.length-ce),me=me.substring(0,me.length-ce)));var ve=he+Q;me.length===0&&be.length===0?(j.splice(J-ve,ve),J=J-ve):me.length===0?(j.splice(J-ve,ve,[e,be]),J=J-ve+1):be.length===0?(j.splice(J-ve,ve,[r,me]),J=J-ve+1):(j.splice(J-ve,ve,[r,me],[e,be]),J=J-ve+2)}J!==0&&j[J-1][0]===t?(j[J-1][1]+=j[J][1],j.splice(J,1)):J++,he=0,Q=0,me="",be="";break}}j[j.length-1][1]===""&&j.pop();var Oe=!1;for(J=1;J<j.length-1;)j[J-1][0]===t&&j[J+1][0]===t&&(j[J][1].substring(j[J][1].length-j[J-1][1].length)===j[J-1][1]?(j[J][1]=j[J-1][1]+j[J][1].substring(0,j[J][1].length-j[J-1][1].length),j[J+1][1]=j[J-1][1]+j[J+1][1],j.splice(J-1,1),Oe=!0):j[J][1].substring(0,j[J+1][1].length)==j[J+1][1]&&(j[J-1][1]+=j[J+1][1],j[J][1]=j[J][1].substring(j[J+1][1].length)+j[J+1][1],j.splice(J+1,1),Oe=!0)),J++;Oe&&L(j,re)}function O(j){return j>=55296&&j<=56319}function H(j){return j>=56320&&j<=57343}function q(j){return H(j.charCodeAt(0))}function z(j){return O(j.charCodeAt(j.length-1))}function K(j){for(var re=[],J=0;J<j.length;J++)j[J][1].length>0&&re.push(j[J]);return re}function ue(j,re,J,Q){return z(j)||q(Q)?null:K([[t,j],[r,re],[e,J],[t,Q]])}function X(j,re,J){var Q=typeof J=="number"?{index:J,length:0}:J.oldRange,he=typeof J=="number"?null:J.newRange,me=j.length,be=re.length;if(Q.length===0&&(he===null||he.length===0)){var ce=Q.index,ke=j.slice(0,ce),le=j.slice(ce),oe=he?he.index:null;e:{var ve=ce+be-me;if(oe!==null&&oe!==ve||ve<0||ve>be)break e;var Oe=re.slice(0,ve),et=re.slice(ve);if(et!==le)break e;var we=Math.min(ce,ve),Pe=ke.slice(0,we),je=Oe.slice(0,we);if(Pe!==je)break e;var ze=ke.slice(we),We=Oe.slice(we);return ue(Pe,ze,We,le)}e:{if(oe!==null&&oe!==ce)break e;var De=ce,Oe=re.slice(0,De),et=re.slice(De);if(Oe!==ke)break e;var Ae=Math.min(me-De,be-De),_e=le.slice(le.length-Ae),Ge=et.slice(et.length-Ae);if(_e!==Ge)break e;var ze=le.slice(0,le.length-Ae),We=et.slice(0,et.length-Ae);return ue(ke,ze,We,_e)}}if(Q.length>0&&he&&he.length===0)e:{var Pe=j.slice(0,Q.index),_e=j.slice(Q.index+Q.length),we=Pe.length,Ae=_e.length;if(be<we+Ae)break e;var je=re.slice(0,we),Ge=re.slice(be-Ae);if(Pe!==je||_e!==Ge)break e;var ze=j.slice(we,me-Ae),We=re.slice(we,be-Ae);return ue(Pe,ze,We,_e)}return null}function de(j,re,J,Q){return n(j,re,J,Q,!0)}return de.INSERT=e,de.DELETE=r,de.EQUAL=t,np=de,np}var jf={exports:{}};jf.exports;var N0;function Tx(){return N0||(N0=1,function(r,e){var t=200,n="__lodash_hash_undefined__",i=9007199254740991,l="[object Arguments]",u="[object Array]",f="[object Boolean]",g="[object Date]",m="[object Error]",R="[object Function]",w="[object GeneratorFunction]",b="[object Map]",S="[object Number]",_="[object Object]",D="[object Promise]",E="[object RegExp]",x="[object Set]",L="[object String]",O="[object Symbol]",H="[object WeakMap]",q="[object ArrayBuffer]",z="[object DataView]",K="[object Float32Array]",ue="[object Float64Array]",X="[object Int8Array]",de="[object Int16Array]",j="[object Int32Array]",re="[object Uint8Array]",J="[object Uint8ClampedArray]",Q="[object Uint16Array]",he="[object Uint32Array]",me=/[\\^$.*+?()[\]{}|]/g,be=/\w*$/,ce=/^\[object .+?Constructor\]$/,ke=/^(?:0|[1-9]\d*)$/,le={};le[l]=le[u]=le[q]=le[z]=le[f]=le[g]=le[K]=le[ue]=le[X]=le[de]=le[j]=le[b]=le[S]=le[_]=le[E]=le[x]=le[L]=le[O]=le[re]=le[J]=le[Q]=le[he]=!0,le[m]=le[R]=le[H]=!1;var oe=typeof bi=="object"&&bi&&bi.Object===Object&&bi,ve=typeof self=="object"&&self&&self.Object===Object&&self,Oe=oe||ve||Function("return this")(),et=e&&!e.nodeType&&e,we=et&&!0&&r&&!r.nodeType&&r,Pe=we&&we.exports===et;function je(I,G){return I.set(G[0],G[1]),I}function ze(I,G){return I.add(G),I}function We(I,G){for(var ae=-1,qe=I?I.length:0;++ae<qe&&G(I[ae],ae,I)!==!1;);return I}function De(I,G){for(var ae=-1,qe=G.length,Yt=I.length;++ae<qe;)I[Yt+ae]=G[ae];return I}function Ae(I,G,ae,qe){for(var Yt=-1,Vt=I?I.length:0;++Yt<Vt;)ae=G(ae,I[Yt],Yt,I);return ae}function _e(I,G){for(var ae=-1,qe=Array(I);++ae<I;)qe[ae]=G(ae);return qe}function Ge(I,G){return I==null?void 0:I[G]}function lt(I){var G=!1;if(I!=null&&typeof I.toString!="function")try{G=!!(I+"")}catch{}return G}function $e(I){var G=-1,ae=Array(I.size);return I.forEach(function(qe,Yt){ae[++G]=[Yt,qe]}),ae}function ht(I,G){return function(ae){return I(G(ae))}}function Le(I){var G=-1,ae=Array(I.size);return I.forEach(function(qe){ae[++G]=qe}),ae}var Xe=Array.prototype,it=Function.prototype,Ct=Object.prototype,_t=Oe["__core-js_shared__"],wt=function(){var I=/[^.]+$/.exec(_t&&_t.keys&&_t.keys.IE_PROTO||"");return I?"Symbol(src)_1."+I:""}(),bt=it.toString,St=Ct.hasOwnProperty,Me=Ct.toString,pt=RegExp("^"+bt.call(St).replace(me,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Et=Pe?Oe.Buffer:void 0,mt=Oe.Symbol,Dt=Oe.Uint8Array,Ze=ht(Object.getPrototypeOf,Object),At=Object.create,jt=Ct.propertyIsEnumerable,mr=Xe.splice,kr=Object.getOwnPropertySymbols,Cr=Et?Et.isBuffer:void 0,ge=ht(Object.keys,Object),ne=Pt(Oe,"DataView"),Je=Pt(Oe,"Map"),ct=Pt(Oe,"Promise"),tt=Pt(Oe,"Set"),Re=Pt(Oe,"WeakMap"),xt=Pt(Object,"create"),Rt=Xr(ne),vt=Xr(Je),Mt=Xr(ct),Qt=Xr(tt),rr=Xr(Re),Bt=mt?mt.prototype:void 0,qt=Bt?Bt.valueOf:void 0;function sr(I){var G=-1,ae=I?I.length:0;for(this.clear();++G<ae;){var qe=I[G];this.set(qe[0],qe[1])}}function Qe(){this.__data__=xt?xt(null):{}}function Tt(I){return this.has(I)&&delete this.__data__[I]}function yt(I){var G=this.__data__;if(xt){var ae=G[I];return ae===n?void 0:ae}return St.call(G,I)?G[I]:void 0}function Lt(I){var G=this.__data__;return xt?G[I]!==void 0:St.call(G,I)}function vr(I,G){var ae=this.__data__;return ae[I]=xt&&G===void 0?n:G,this}sr.prototype.clear=Qe,sr.prototype.delete=Tt,sr.prototype.get=yt,sr.prototype.has=Lt,sr.prototype.set=vr;function Y(I){var G=-1,ae=I?I.length:0;for(this.clear();++G<ae;){var qe=I[G];this.set(qe[0],qe[1])}}function pe(){this.__data__=[]}function Be(I){var G=this.__data__,ae=Jn(G,I);if(ae<0)return!1;var qe=G.length-1;return ae==qe?G.pop():mr.call(G,ae,1),!0}function ot(I){var G=this.__data__,ae=Jn(G,I);return ae<0?void 0:G[ae][1]}function Ot(I){return Jn(this.__data__,I)>-1}function $t(I,G){var ae=this.__data__,qe=Jn(ae,I);return qe<0?ae.push([I,G]):ae[qe][1]=G,this}Y.prototype.clear=pe,Y.prototype.delete=Be,Y.prototype.get=ot,Y.prototype.has=Ot,Y.prototype.set=$t;function kt(I){var G=-1,ae=I?I.length:0;for(this.clear();++G<ae;){var qe=I[G];this.set(qe[0],qe[1])}}function Ut(){this.__data__={hash:new sr,map:new(Je||Y),string:new sr}}function nr(I){return st(this,I).delete(I)}function ir(I){return st(this,I).get(I)}function fr(I){return st(this,I).has(I)}function Ur(I,G){return st(this,I).set(I,G),this}kt.prototype.clear=Ut,kt.prototype.delete=nr,kt.prototype.get=ir,kt.prototype.has=fr,kt.prototype.set=Ur;function yr(I){this.__data__=new Y(I)}function Kn(){this.__data__=new Y}function Cn(I){return this.__data__.delete(I)}function Dn(I){return this.__data__.get(I)}function Yr(I){return this.__data__.has(I)}function Yn(I,G){var ae=this.__data__;if(ae instanceof Y){var qe=ae.__data__;if(!Je||qe.length<t-1)return qe.push([I,G]),this;ae=this.__data__=new kt(qe)}return ae.set(I,G),this}yr.prototype.clear=Kn,yr.prototype.delete=Cn,yr.prototype.get=Dn,yr.prototype.has=Yr,yr.prototype.set=Yn;function En(I,G){var ae=bo(I)||ei(I)?_e(I.length,String):[],qe=ae.length,Yt=!!qe;for(var Vt in I)St.call(I,Vt)&&!(Yt&&(Vt=="length"||yn(Vt,qe)))&&ae.push(Vt);return ae}function Xn(I,G,ae){var qe=I[G];(!(St.call(I,G)&&Hn(qe,ae))||ae===void 0&&!(G in I))&&(I[G]=ae)}function Jn(I,G){for(var ae=I.length;ae--;)if(Hn(I[ae][0],G))return ae;return-1}function on(I,G){return I&&Ee(G,Or(G),I)}function On(I,G,ae,qe,Yt,Vt,pr){var Sr;if(qe&&(Sr=Vt?qe(I,Yt,Vt,pr):qe(I)),Sr!==void 0)return Sr;if(!ri(I))return I;var dr=bo(I);if(dr){if(Sr=xr(I),!G)return ee(I,Sr)}else{var Ar=Ht(I),Jr=Ar==R||Ar==w;if(Rn(I))return An(I,G);if(Ar==_||Ar==l||Jr&&!Vt){if(lt(I))return Vt?I:{};if(Sr=Zr(Jr?{}:I),!G)return Se(I,on(Sr,I))}else{if(!le[Ar])return Vt?I:{};Sr=vn(I,Ar,On,G)}}pr||(pr=new yr);var In=pr.get(I);if(In)return In;if(pr.set(I,Sr),!dr)var Vr=ae?He(I):Or(I);return We(Vr||I,function(Br,Qr){Vr&&(Qr=Br,Br=I[Qr]),Xn(Sr,Qr,On(Br,G,ae,qe,Qr,I,pr))}),Sr}function wn(I){return ri(I)?At(I):{}}function hi(I,G,ae){var qe=G(I);return bo(I)?qe:De(qe,ae(I))}function Si(I){return Me.call(I)}function Ci(I){if(!ri(I)||Bn(I))return!1;var G=_o(I)||lt(I)?pt:ce;return G.test(Xr(I))}function kn(I){if(!wi(I))return ge(I);var G=[];for(var ae in Object(I))St.call(I,ae)&&ae!="constructor"&&G.push(ae);return G}function An(I,G){if(G)return I.slice();var ae=new I.constructor(I.length);return I.copy(ae),ae}function un(I){var G=new I.constructor(I.byteLength);return new Dt(G).set(new Dt(I)),G}function Qn(I,G){var ae=G?un(I.buffer):I.buffer;return new I.constructor(ae,I.byteOffset,I.byteLength)}function sn(I,G,ae){var qe=G?ae($e(I),!0):$e(I);return Ae(qe,je,new I.constructor)}function pn(I){var G=new I.constructor(I.source,be.exec(I));return G.lastIndex=I.lastIndex,G}function C(I,G,ae){var qe=G?ae(Le(I),!0):Le(I);return Ae(qe,ze,new I.constructor)}function N(I){return qt?Object(qt.call(I)):{}}function V(I,G){var ae=G?un(I.buffer):I.buffer;return new I.constructor(ae,I.byteOffset,I.length)}function ee(I,G){var ae=-1,qe=I.length;for(G||(G=Array(qe));++ae<qe;)G[ae]=I[ae];return G}function Ee(I,G,ae,qe){ae||(ae={});for(var Yt=-1,Vt=G.length;++Yt<Vt;){var pr=G[Yt],Sr=void 0;Xn(ae,pr,Sr===void 0?I[pr]:Sr)}return ae}function Se(I,G){return Ee(I,zt(I),G)}function He(I){return hi(I,Or,zt)}function st(I,G){var ae=I.__data__;return li(G)?ae[typeof G=="string"?"string":"hash"]:ae.map}function Pt(I,G){var ae=Ge(I,G);return Ci(ae)?ae:void 0}var zt=kr?ht(kr,Object):wr,Ht=Si;(ne&&Ht(new ne(new ArrayBuffer(1)))!=z||Je&&Ht(new Je)!=b||ct&&Ht(ct.resolve())!=D||tt&&Ht(new tt)!=x||Re&&Ht(new Re)!=H)&&(Ht=function(I){var G=Me.call(I),ae=G==_?I.constructor:void 0,qe=ae?Xr(ae):void 0;if(qe)switch(qe){case Rt:return z;case vt:return b;case Mt:return D;case Qt:return x;case rr:return H}return G});function xr(I){var G=I.length,ae=I.constructor(G);return G&&typeof I[0]=="string"&&St.call(I,"index")&&(ae.index=I.index,ae.input=I.input),ae}function Zr(I){return typeof I.constructor=="function"&&!wi(I)?wn(Ze(I)):{}}function vn(I,G,ae,qe){var Yt=I.constructor;switch(G){case q:return un(I);case f:case g:return new Yt(+I);case z:return Qn(I,qe);case K:case ue:case X:case de:case j:case re:case J:case Q:case he:return V(I,qe);case b:return sn(I,qe,ae);case S:case L:return new Yt(I);case E:return pn(I);case x:return C(I,qe,ae);case O:return N(I)}}function yn(I,G){return G=G??i,!!G&&(typeof I=="number"||ke.test(I))&&I>-1&&I%1==0&&I<G}function li(I){var G=typeof I;return G=="string"||G=="number"||G=="symbol"||G=="boolean"?I!=="__proto__":I===null}function Bn(I){return!!wt&&wt in I}function wi(I){var G=I&&I.constructor,ae=typeof G=="function"&&G.prototype||Ct;return I===ae}function Xr(I){if(I!=null){try{return bt.call(I)}catch{}try{return I+""}catch{}}return""}function pi(I){return On(I,!0,!0)}function Hn(I,G){return I===G||I!==I&&G!==G}function ei(I){return no(I)&&St.call(I,"callee")&&(!jt.call(I,"callee")||Me.call(I)==l)}var bo=Array.isArray;function ro(I){return I!=null&&ti(I.length)&&!_o(I)}function no(I){return $i(I)&&ro(I)}var Rn=Cr||Mr;function _o(I){var G=ri(I)?Me.call(I):"";return G==R||G==w}function ti(I){return typeof I=="number"&&I>-1&&I%1==0&&I<=i}function ri(I){var G=typeof I;return!!I&&(G=="object"||G=="function")}function $i(I){return!!I&&typeof I=="object"}function Or(I){return ro(I)?En(I):kn(I)}function wr(){return[]}function Mr(){return!1}r.exports=pi}(jf,jf.exports)),jf.exports}var Bf={exports:{}};Bf.exports;var F0;function Ex(){return F0||(F0=1,function(r,e){var t=200,n="__lodash_hash_undefined__",i=1,l=2,u=9007199254740991,f="[object Arguments]",g="[object Array]",m="[object AsyncFunction]",R="[object Boolean]",w="[object Date]",b="[object Error]",S="[object Function]",_="[object GeneratorFunction]",D="[object Map]",E="[object Number]",x="[object Null]",L="[object Object]",O="[object Promise]",H="[object Proxy]",q="[object RegExp]",z="[object Set]",K="[object String]",ue="[object Symbol]",X="[object Undefined]",de="[object WeakMap]",j="[object ArrayBuffer]",re="[object DataView]",J="[object Float32Array]",Q="[object Float64Array]",he="[object Int8Array]",me="[object Int16Array]",be="[object Int32Array]",ce="[object Uint8Array]",ke="[object Uint8ClampedArray]",le="[object Uint16Array]",oe="[object Uint32Array]",ve=/[\\^$.*+?()[\]{}|]/g,Oe=/^\[object .+?Constructor\]$/,et=/^(?:0|[1-9]\d*)$/,we={};we[J]=we[Q]=we[he]=we[me]=we[be]=we[ce]=we[ke]=we[le]=we[oe]=!0,we[f]=we[g]=we[j]=we[R]=we[re]=we[w]=we[b]=we[S]=we[D]=we[E]=we[L]=we[q]=we[z]=we[K]=we[de]=!1;var Pe=typeof bi=="object"&&bi&&bi.Object===Object&&bi,je=typeof self=="object"&&self&&self.Object===Object&&self,ze=Pe||je||Function("return this")(),We=e&&!e.nodeType&&e,De=We&&!0&&r&&!r.nodeType&&r,Ae=De&&De.exports===We,_e=Ae&&Pe.process,Ge=function(){try{return _e&&_e.binding&&_e.binding("util")}catch{}}(),lt=Ge&&Ge.isTypedArray;function $e(I,G){for(var ae=-1,qe=I==null?0:I.length,Yt=0,Vt=[];++ae<qe;){var pr=I[ae];G(pr,ae,I)&&(Vt[Yt++]=pr)}return Vt}function ht(I,G){for(var ae=-1,qe=G.length,Yt=I.length;++ae<qe;)I[Yt+ae]=G[ae];return I}function Le(I,G){for(var ae=-1,qe=I==null?0:I.length;++ae<qe;)if(G(I[ae],ae,I))return!0;return!1}function Xe(I,G){for(var ae=-1,qe=Array(I);++ae<I;)qe[ae]=G(ae);return qe}function it(I){return function(G){return I(G)}}function Ct(I,G){return I.has(G)}function _t(I,G){return I==null?void 0:I[G]}function wt(I){var G=-1,ae=Array(I.size);return I.forEach(function(qe,Yt){ae[++G]=[Yt,qe]}),ae}function bt(I,G){return function(ae){return I(G(ae))}}function St(I){var G=-1,ae=Array(I.size);return I.forEach(function(qe){ae[++G]=qe}),ae}var Me=Array.prototype,pt=Function.prototype,Et=Object.prototype,mt=ze["__core-js_shared__"],Dt=pt.toString,Ze=Et.hasOwnProperty,At=function(){var I=/[^.]+$/.exec(mt&&mt.keys&&mt.keys.IE_PROTO||"");return I?"Symbol(src)_1."+I:""}(),jt=Et.toString,mr=RegExp("^"+Dt.call(Ze).replace(ve,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),kr=Ae?ze.Buffer:void 0,Cr=ze.Symbol,ge=ze.Uint8Array,ne=Et.propertyIsEnumerable,Je=Me.splice,ct=Cr?Cr.toStringTag:void 0,tt=Object.getOwnPropertySymbols,Re=kr?kr.isBuffer:void 0,xt=bt(Object.keys,Object),Rt=zt(ze,"DataView"),vt=zt(ze,"Map"),Mt=zt(ze,"Promise"),Qt=zt(ze,"Set"),rr=zt(ze,"WeakMap"),Bt=zt(Object,"create"),qt=Xr(Rt),sr=Xr(vt),Qe=Xr(Mt),Tt=Xr(Qt),yt=Xr(rr),Lt=Cr?Cr.prototype:void 0,vr=Lt?Lt.valueOf:void 0;function Y(I){var G=-1,ae=I==null?0:I.length;for(this.clear();++G<ae;){var qe=I[G];this.set(qe[0],qe[1])}}function pe(){this.__data__=Bt?Bt(null):{},this.size=0}function Be(I){var G=this.has(I)&&delete this.__data__[I];return this.size-=G?1:0,G}function ot(I){var G=this.__data__;if(Bt){var ae=G[I];return ae===n?void 0:ae}return Ze.call(G,I)?G[I]:void 0}function Ot(I){var G=this.__data__;return Bt?G[I]!==void 0:Ze.call(G,I)}function $t(I,G){var ae=this.__data__;return this.size+=this.has(I)?0:1,ae[I]=Bt&&G===void 0?n:G,this}Y.prototype.clear=pe,Y.prototype.delete=Be,Y.prototype.get=ot,Y.prototype.has=Ot,Y.prototype.set=$t;function kt(I){var G=-1,ae=I==null?0:I.length;for(this.clear();++G<ae;){var qe=I[G];this.set(qe[0],qe[1])}}function Ut(){this.__data__=[],this.size=0}function nr(I){var G=this.__data__,ae=An(G,I);if(ae<0)return!1;var qe=G.length-1;return ae==qe?G.pop():Je.call(G,ae,1),--this.size,!0}function ir(I){var G=this.__data__,ae=An(G,I);return ae<0?void 0:G[ae][1]}function fr(I){return An(this.__data__,I)>-1}function Ur(I,G){var ae=this.__data__,qe=An(ae,I);return qe<0?(++this.size,ae.push([I,G])):ae[qe][1]=G,this}kt.prototype.clear=Ut,kt.prototype.delete=nr,kt.prototype.get=ir,kt.prototype.has=fr,kt.prototype.set=Ur;function yr(I){var G=-1,ae=I==null?0:I.length;for(this.clear();++G<ae;){var qe=I[G];this.set(qe[0],qe[1])}}function Kn(){this.size=0,this.__data__={hash:new Y,map:new(vt||kt),string:new Y}}function Cn(I){var G=Pt(this,I).delete(I);return this.size-=G?1:0,G}function Dn(I){return Pt(this,I).get(I)}function Yr(I){return Pt(this,I).has(I)}function Yn(I,G){var ae=Pt(this,I),qe=ae.size;return ae.set(I,G),this.size+=ae.size==qe?0:1,this}yr.prototype.clear=Kn,yr.prototype.delete=Cn,yr.prototype.get=Dn,yr.prototype.has=Yr,yr.prototype.set=Yn;function En(I){var G=-1,ae=I==null?0:I.length;for(this.__data__=new yr;++G<ae;)this.add(I[G])}function Xn(I){return this.__data__.set(I,n),this}function Jn(I){return this.__data__.has(I)}En.prototype.add=En.prototype.push=Xn,En.prototype.has=Jn;function on(I){var G=this.__data__=new kt(I);this.size=G.size}function On(){this.__data__=new kt,this.size=0}function wn(I){var G=this.__data__,ae=G.delete(I);return this.size=G.size,ae}function hi(I){return this.__data__.get(I)}function Si(I){return this.__data__.has(I)}function Ci(I,G){var ae=this.__data__;if(ae instanceof kt){var qe=ae.__data__;if(!vt||qe.length<t-1)return qe.push([I,G]),this.size=++ae.size,this;ae=this.__data__=new yr(qe)}return ae.set(I,G),this.size=ae.size,this}on.prototype.clear=On,on.prototype.delete=wn,on.prototype.get=hi,on.prototype.has=Si,on.prototype.set=Ci;function kn(I,G){var ae=ei(I),qe=!ae&&Hn(I),Yt=!ae&&!qe&&ro(I),Vt=!ae&&!qe&&!Yt&&$i(I),pr=ae||qe||Yt||Vt,Sr=pr?Xe(I.length,String):[],dr=Sr.length;for(var Ar in I)Ze.call(I,Ar)&&!(pr&&(Ar=="length"||Yt&&(Ar=="offset"||Ar=="parent")||Vt&&(Ar=="buffer"||Ar=="byteLength"||Ar=="byteOffset")||vn(Ar,dr)))&&Sr.push(Ar);return Sr}function An(I,G){for(var ae=I.length;ae--;)if(pi(I[ae][0],G))return ae;return-1}function un(I,G,ae){var qe=G(I);return ei(I)?qe:ht(qe,ae(I))}function Qn(I){return I==null?I===void 0?X:x:ct&&ct in Object(I)?Ht(I):wi(I)}function sn(I){return ri(I)&&Qn(I)==f}function pn(I,G,ae,qe,Yt){return I===G?!0:I==null||G==null||!ri(I)&&!ri(G)?I!==I&&G!==G:C(I,G,ae,qe,pn,Yt)}function C(I,G,ae,qe,Yt,Vt){var pr=ei(I),Sr=ei(G),dr=pr?g:Zr(I),Ar=Sr?g:Zr(G);dr=dr==f?L:dr,Ar=Ar==f?L:Ar;var Jr=dr==L,In=Ar==L,Vr=dr==Ar;if(Vr&&ro(I)){if(!ro(G))return!1;pr=!0,Jr=!1}if(Vr&&!Jr)return Vt||(Vt=new on),pr||$i(I)?Ee(I,G,ae,qe,Yt,Vt):Se(I,G,dr,ae,qe,Yt,Vt);if(!(ae&i)){var Br=Jr&&Ze.call(I,"__wrapped__"),Qr=In&&Ze.call(G,"__wrapped__");if(Br||Qr){var ci=Br?I.value():I,gi=Qr?G.value():G;return Vt||(Vt=new on),Yt(ci,gi,ae,qe,Vt)}}return Vr?(Vt||(Vt=new on),He(I,G,ae,qe,Yt,Vt)):!1}function N(I){if(!ti(I)||li(I))return!1;var G=Rn(I)?mr:Oe;return G.test(Xr(I))}function V(I){return ri(I)&&_o(I.length)&&!!we[Qn(I)]}function ee(I){if(!Bn(I))return xt(I);var G=[];for(var ae in Object(I))Ze.call(I,ae)&&ae!="constructor"&&G.push(ae);return G}function Ee(I,G,ae,qe,Yt,Vt){var pr=ae&i,Sr=I.length,dr=G.length;if(Sr!=dr&&!(pr&&dr>Sr))return!1;var Ar=Vt.get(I);if(Ar&&Vt.get(G))return Ar==G;var Jr=-1,In=!0,Vr=ae&l?new En:void 0;for(Vt.set(I,G),Vt.set(G,I);++Jr<Sr;){var Br=I[Jr],Qr=G[Jr];if(qe)var ci=pr?qe(Qr,Br,Jr,G,I,Vt):qe(Br,Qr,Jr,I,G,Vt);if(ci!==void 0){if(ci)continue;In=!1;break}if(Vr){if(!Le(G,function(gi,qn){if(!Ct(Vr,qn)&&(Br===gi||Yt(Br,gi,ae,qe,Vt)))return Vr.push(qn)})){In=!1;break}}else if(!(Br===Qr||Yt(Br,Qr,ae,qe,Vt))){In=!1;break}}return Vt.delete(I),Vt.delete(G),In}function Se(I,G,ae,qe,Yt,Vt,pr){switch(ae){case re:if(I.byteLength!=G.byteLength||I.byteOffset!=G.byteOffset)return!1;I=I.buffer,G=G.buffer;case j:return!(I.byteLength!=G.byteLength||!Vt(new ge(I),new ge(G)));case R:case w:case E:return pi(+I,+G);case b:return I.name==G.name&&I.message==G.message;case q:case K:return I==G+"";case D:var Sr=wt;case z:var dr=qe&i;if(Sr||(Sr=St),I.size!=G.size&&!dr)return!1;var Ar=pr.get(I);if(Ar)return Ar==G;qe|=l,pr.set(I,G);var Jr=Ee(Sr(I),Sr(G),qe,Yt,Vt,pr);return pr.delete(I),Jr;case ue:if(vr)return vr.call(I)==vr.call(G)}return!1}function He(I,G,ae,qe,Yt,Vt){var pr=ae&i,Sr=st(I),dr=Sr.length,Ar=st(G),Jr=Ar.length;if(dr!=Jr&&!pr)return!1;for(var In=dr;In--;){var Vr=Sr[In];if(!(pr?Vr in G:Ze.call(G,Vr)))return!1}var Br=Vt.get(I);if(Br&&Vt.get(G))return Br==G;var Qr=!0;Vt.set(I,G),Vt.set(G,I);for(var ci=pr;++In<dr;){Vr=Sr[In];var gi=I[Vr],qn=G[Vr];if(qe)var xo=pr?qe(qn,gi,Vr,G,I,Vt):qe(gi,qn,Vr,I,G,Vt);if(!(xo===void 0?gi===qn||Yt(gi,qn,ae,qe,Vt):xo)){Qr=!1;break}ci||(ci=Vr=="constructor")}if(Qr&&!ci){var Ui=I.constructor,an=G.constructor;Ui!=an&&"constructor"in I&&"constructor"in G&&!(typeof Ui=="function"&&Ui instanceof Ui&&typeof an=="function"&&an instanceof an)&&(Qr=!1)}return Vt.delete(I),Vt.delete(G),Qr}function st(I){return un(I,Or,xr)}function Pt(I,G){var ae=I.__data__;return yn(G)?ae[typeof G=="string"?"string":"hash"]:ae.map}function zt(I,G){var ae=_t(I,G);return N(ae)?ae:void 0}function Ht(I){var G=Ze.call(I,ct),ae=I[ct];try{I[ct]=void 0;var qe=!0}catch{}var Yt=jt.call(I);return qe&&(G?I[ct]=ae:delete I[ct]),Yt}var xr=tt?function(I){return I==null?[]:(I=Object(I),$e(tt(I),function(G){return ne.call(I,G)}))}:wr,Zr=Qn;(Rt&&Zr(new Rt(new ArrayBuffer(1)))!=re||vt&&Zr(new vt)!=D||Mt&&Zr(Mt.resolve())!=O||Qt&&Zr(new Qt)!=z||rr&&Zr(new rr)!=de)&&(Zr=function(I){var G=Qn(I),ae=G==L?I.constructor:void 0,qe=ae?Xr(ae):"";if(qe)switch(qe){case qt:return re;case sr:return D;case Qe:return O;case Tt:return z;case yt:return de}return G});function vn(I,G){return G=G??u,!!G&&(typeof I=="number"||et.test(I))&&I>-1&&I%1==0&&I<G}function yn(I){var G=typeof I;return G=="string"||G=="number"||G=="symbol"||G=="boolean"?I!=="__proto__":I===null}function li(I){return!!At&&At in I}function Bn(I){var G=I&&I.constructor,ae=typeof G=="function"&&G.prototype||Et;return I===ae}function wi(I){return jt.call(I)}function Xr(I){if(I!=null){try{return Dt.call(I)}catch{}try{return I+""}catch{}}return""}function pi(I,G){return I===G||I!==I&&G!==G}var Hn=sn(function(){return arguments}())?sn:function(I){return ri(I)&&Ze.call(I,"callee")&&!ne.call(I,"callee")},ei=Array.isArray;function bo(I){return I!=null&&_o(I.length)&&!Rn(I)}var ro=Re||Mr;function no(I,G){return pn(I,G)}function Rn(I){if(!ti(I))return!1;var G=Qn(I);return G==S||G==_||G==m||G==H}function _o(I){return typeof I=="number"&&I>-1&&I%1==0&&I<=u}function ti(I){var G=typeof I;return I!=null&&(G=="object"||G=="function")}function ri(I){return I!=null&&typeof I=="object"}var $i=lt?it(lt):V;function Or(I){return bo(I)?kn(I):ee(I)}function wr(){return[]}function Mr(){return!1}r.exports=no}(Bf,Bf.exports)),Bf.exports}var Pd={},j0;function gM(){if(j0)return Pd;j0=1,Object.defineProperty(Pd,"__esModule",{value:!0});const r=Tx(),e=Ex();var t;return function(n){function i(g={},m={},R=!1){typeof g!="object"&&(g={}),typeof m!="object"&&(m={});let w=r(m);R||(w=Object.keys(w).reduce((b,S)=>(w[S]!=null&&(b[S]=w[S]),b),{}));for(const b in g)g[b]!==void 0&&m[b]===void 0&&(w[b]=g[b]);return Object.keys(w).length>0?w:void 0}n.compose=i;function l(g={},m={}){typeof g!="object"&&(g={}),typeof m!="object"&&(m={});const R=Object.keys(g).concat(Object.keys(m)).reduce((w,b)=>(e(g[b],m[b])||(w[b]=m[b]===void 0?null:m[b]),w),{});return Object.keys(R).length>0?R:void 0}n.diff=l;function u(g={},m={}){g=g||{};const R=Object.keys(m).reduce((w,b)=>(m[b]!==g[b]&&g[b]!==void 0&&(w[b]=m[b]),w),{});return Object.keys(g).reduce((w,b)=>(g[b]!==m[b]&&m[b]===void 0&&(w[b]=null),w),R)}n.invert=u;function f(g,m,R=!1){if(typeof g!="object")return m;if(typeof m!="object")return;if(!R)return m;const w=Object.keys(m).reduce((b,S)=>(g[S]===void 0&&(b[S]=m[S]),b),{});return Object.keys(w).length>0?w:void 0}n.transform=f}(t||(t={})),Pd.default=t,Pd}var Nd={},B0;function kx(){if(B0)return Nd;B0=1,Object.defineProperty(Nd,"__esModule",{value:!0});var r;return function(e){function t(n){return typeof n.delete=="number"?n.delete:typeof n.retain=="number"?n.retain:typeof n.retain=="object"&&n.retain!==null?1:typeof n.insert=="string"?n.insert.length:1}e.length=t}(r||(r={})),Nd.default=r,Nd}var Fd={},H0;function mM(){if(H0)return Fd;H0=1,Object.defineProperty(Fd,"__esModule",{value:!0});const r=kx();class e{constructor(n){this.ops=n,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(n){n||(n=1/0);const i=this.ops[this.index];if(i){const l=this.offset,u=r.default.length(i);if(n>=u-l?(n=u-l,this.index+=1,this.offset=0):this.offset+=n,typeof i.delete=="number")return{delete:n};{const f={};return i.attributes&&(f.attributes=i.attributes),typeof i.retain=="number"?f.retain=n:typeof i.retain=="object"&&i.retain!==null?f.retain=i.retain:typeof i.insert=="string"?f.insert=i.insert.substr(l,n):f.insert=i.insert,f}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?r.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const n=this.ops[this.index];return n?typeof n.delete=="number"?"delete":typeof n.retain=="number"||typeof n.retain=="object"&&n.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{const n=this.offset,i=this.index,l=this.next(),u=this.ops.slice(this.index);return this.offset=n,this.index=i,[l].concat(u)}}else return[]}}return Fd.default=e,Fd}var q0;function vM(){return q0||(q0=1,function(r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.AttributeMap=e.OpIterator=e.Op=void 0;const t=pM(),n=Tx(),i=Ex(),l=gM();e.AttributeMap=l.default;const u=kx();e.Op=u.default;const f=mM();e.OpIterator=f.default;const g="\0",m=(w,b)=>{if(typeof w!="object"||w===null)throw new Error(`cannot retain a ${typeof w}`);if(typeof b!="object"||b===null)throw new Error(`cannot retain a ${typeof b}`);const S=Object.keys(w)[0];if(!S||S!==Object.keys(b)[0])throw new Error(`embed types not matched: ${S} != ${Object.keys(b)[0]}`);return[S,w[S],b[S]]};class R{constructor(b){Array.isArray(b)?this.ops=b:b!=null&&Array.isArray(b.ops)?this.ops=b.ops:this.ops=[]}static registerEmbed(b,S){this.handlers[b]=S}static unregisterEmbed(b){delete this.handlers[b]}static getHandler(b){const S=this.handlers[b];if(!S)throw new Error(`no handlers for embed type "${b}"`);return S}insert(b,S){const _={};return typeof b=="string"&&b.length===0?this:(_.insert=b,S!=null&&typeof S=="object"&&Object.keys(S).length>0&&(_.attributes=S),this.push(_))}delete(b){return b<=0?this:this.push({delete:b})}retain(b,S){if(typeof b=="number"&&b<=0)return this;const _={retain:b};return S!=null&&typeof S=="object"&&Object.keys(S).length>0&&(_.attributes=S),this.push(_)}push(b){let S=this.ops.length,_=this.ops[S-1];if(b=n(b),typeof _=="object"){if(typeof b.delete=="number"&&typeof _.delete=="number")return this.ops[S-1]={delete:_.delete+b.delete},this;if(typeof _.delete=="number"&&b.insert!=null&&(S-=1,_=this.ops[S-1],typeof _!="object"))return this.ops.unshift(b),this;if(i(b.attributes,_.attributes)){if(typeof b.insert=="string"&&typeof _.insert=="string")return this.ops[S-1]={insert:_.insert+b.insert},typeof b.attributes=="object"&&(this.ops[S-1].attributes=b.attributes),this;if(typeof b.retain=="number"&&typeof _.retain=="number")return this.ops[S-1]={retain:_.retain+b.retain},typeof b.attributes=="object"&&(this.ops[S-1].attributes=b.attributes),this}}return S===this.ops.length?this.ops.push(b):this.ops.splice(S,0,b),this}chop(){const b=this.ops[this.ops.length-1];return b&&typeof b.retain=="number"&&!b.attributes&&this.ops.pop(),this}filter(b){return this.ops.filter(b)}forEach(b){this.ops.forEach(b)}map(b){return this.ops.map(b)}partition(b){const S=[],_=[];return this.forEach(D=>{(b(D)?S:_).push(D)}),[S,_]}reduce(b,S){return this.ops.reduce(b,S)}changeLength(){return this.reduce((b,S)=>S.insert?b+u.default.length(S):S.delete?b-S.delete:b,0)}length(){return this.reduce((b,S)=>b+u.default.length(S),0)}slice(b=0,S=1/0){const _=[],D=new f.default(this.ops);let E=0;for(;E<S&&D.hasNext();){let x;E<b?x=D.next(b-E):(x=D.next(S-E),_.push(x)),E+=u.default.length(x)}return new R(_)}compose(b){const S=new f.default(this.ops),_=new f.default(b.ops),D=[],E=_.peek();if(E!=null&&typeof E.retain=="number"&&E.attributes==null){let L=E.retain;for(;S.peekType()==="insert"&&S.peekLength()<=L;)L-=S.peekLength(),D.push(S.next());E.retain-L>0&&_.next(E.retain-L)}const x=new R(D);for(;S.hasNext()||_.hasNext();)if(_.peekType()==="insert")x.push(_.next());else if(S.peekType()==="delete")x.push(S.next());else{const L=Math.min(S.peekLength(),_.peekLength()),O=S.next(L),H=_.next(L);if(H.retain){const q={};if(typeof O.retain=="number")q.retain=typeof H.retain=="number"?L:H.retain;else if(typeof H.retain=="number")O.retain==null?q.insert=O.insert:q.retain=O.retain;else{const K=O.retain==null?"insert":"retain",[ue,X,de]=m(O[K],H.retain),j=R.getHandler(ue);q[K]={[ue]:j.compose(X,de,K==="retain")}}const z=l.default.compose(O.attributes,H.attributes,typeof O.retain=="number");if(z&&(q.attributes=z),x.push(q),!_.hasNext()&&i(x.ops[x.ops.length-1],q)){const K=new R(S.rest());return x.concat(K).chop()}}else typeof H.delete=="number"&&(typeof O.retain=="number"||typeof O.retain=="object"&&O.retain!==null)&&x.push(H)}return x.chop()}concat(b){const S=new R(this.ops.slice());return b.ops.length>0&&(S.push(b.ops[0]),S.ops=S.ops.concat(b.ops.slice(1))),S}diff(b,S){if(this.ops===b.ops)return new R;const _=[this,b].map(O=>O.map(H=>{if(H.insert!=null)return typeof H.insert=="string"?H.insert:g;const q=O===b?"on":"with";throw new Error("diff() called "+q+" non-document")}).join("")),D=new R,E=t(_[0],_[1],S,!0),x=new f.default(this.ops),L=new f.default(b.ops);return E.forEach(O=>{let H=O[1].length;for(;H>0;){let q=0;switch(O[0]){case t.INSERT:q=Math.min(L.peekLength(),H),D.push(L.next(q));break;case t.DELETE:q=Math.min(H,x.peekLength()),x.next(q),D.delete(q);break;case t.EQUAL:q=Math.min(x.peekLength(),L.peekLength(),H);const z=x.next(q),K=L.next(q);i(z.insert,K.insert)?D.retain(q,l.default.diff(z.attributes,K.attributes)):D.push(K).delete(q);break}H-=q}}),D.chop()}eachLine(b,S=`
|
160
|
+
`+wt:""}`)}Xe.length>0&&K([...z||[],...Xe])},[K,ce,m,g,q,z]),Pe=A.useCallback(()=>{var Le;return(Le=Q.current)==null?void 0:Le.click()},[]),je=A.useCallback(Le=>{const Xe=Le.target.files;Xe!=null&&Xe.length&&(we(Xe),et())},[we,et]),ze=A.useCallback(Le=>{if(b==null||b(Le),!K||!z)return;const Xe=z.filter(it=>Le.idx!==void 0&&it.idx!==void 0?it.idx!==Le.idx:it.name!==Le.name||it.size!==Le.size);K(Xe),et()},[b,K,z,et]),We=A.useCallback(()=>{K&&(K([]),et())},[K,et]),De=A.useCallback(Le=>{if(!R)return;const Xe=me(Le);ke(Xe,"Loading"),R(Le,it=>ke(Xe,it))},[R,me,ke]),Ae=A.useCallback(()=>{C&&(z!=null&&z.length)&&C(z)},[C,z]),_e=A.useMemo(()=>{const Le=Xe=>(Xe.preventDefault(),Xe.stopPropagation(),Xe);return{onDragEnter:Xe=>{Le(Xe),!ue&&!x&&J(!0)},onDragOver:Xe=>{Le(Xe),!ue&&!x&&Xe.dataTransfer&&(Xe.dataTransfer.dropEffect="copy")},onDragLeave:Xe=>{var Ct;Le(Xe);const it=(Ct=he.current)==null?void 0:Ct.contains(Xe.relatedTarget);(!Xe.relatedTarget||!it)&&J(!1)},onDrop:Xe=>{var it;Le(Xe),J(!1),!ue&&!x&&((it=Xe.dataTransfer.files)!=null&&it.length)&&we(Xe.dataTransfer.files)}}},[ue,x,we]),Ge=A.useMemo(()=>{const Le=Fe.clsx(Fn.ButtonRenderer,"NoSelect");return{upload:Xe=>v.jsx(_i,{icon:"X",iconSize:"sm",tooltip:q.Delete,type:"Raw",className:Le,style:{color:"var(--label-neutral)"},onClick:()=>ze(Xe)}),loading:()=>v.jsx(_i,{icon:"Spinner",iconSize:"sm",type:"Raw",className:Le}),error:()=>v.jsx(_i,{icon:"CircleAlertOutline",iconSize:"sm",type:"Raw",className:Fe.clsx(Le,Fn.ErrorColor,Fn.ErrorCursor),tooltip:q["Fail Download"]}),download:Xe=>v.jsx(_i,{icon:"FileDownload",iconSize:"sm",tooltip:q.Download,type:"Raw",className:Le,style:{color:"var(--acent-brand)"},onClick:()=>De(Xe)})}},[q,ze,De]),lt=A.useCallback((Le,Xe)=>{const it=oe(Le),Ct=ve(Le),_t=()=>S==="Upload"?Ge.upload(Le):it?Ge.loading():Ct?Ge.error():Ge.download(Le);return v.jsx(hm,{label:v.jsx("div",{className:Fn.FileChipContent,children:v.jsxs(Sn,{className:Fn.FileNameContainer,children:[v.jsx(Sa,{className:Fe.clsx(Ct&&Fn.ErrorColor),children:Le.name}),v.jsx("span",{className:Fn.FileSize,children:Kc(Le.size)})]})}),ButtonRenderer:_t,className:Fe.clsx(Fn.FileChip,Ct&&Fn.ErrorBorder)},Xe)},[oe,ve,S,Ge]),$e=A.useCallback(()=>v.jsx("div",{className:Fe.clsx(Fn.FileBox,ue&&Fn.ErrorBorder,ue&&Fn.ErrorColor,ue&&Fn.ErrorCursor),..._e,ref:he,children:re?v.jsxs(Sn,{className:Fe.clsx("NoSelect"),style:{gap:4},children:[v.jsx(jr,{icon:"FileDownload"}),v.jsx("span",{children:q["Drop file to select"]})]}):v.jsx(Fi,{type:"Raw",className:Fe.clsx(Fn.SelectRenderer,"NoSelect"),onClick:Pe,isDisabled:ue||x,children:q["Insert File"]})}),[ue,re,q,Pe,x,_e]),ht=A.useMemo(()=>{const Le=S==="Upload",Xe=Le?q["Delete All"]:q["Download All"],it=Le?We:Ae;return v.jsxs(Sn,{className:Fn.LabelContainer,children:[t,S==="Upload"&&v.jsxs(Sa,{className:Fe.clsx(Fn.TotalFileSize,"NoSelect"),children:["(",v.jsx("span",{className:Fe.clsx(ue&&Fn.ErrorColor),children:Kc(be)})," / ",Kc(_),")"]}),v.jsx("span",{className:Fe.clsx(Fn.LabelButton,"Label1",Oe&&Fn.Disabled,Le&&Fn.Delete),onClick:Oe?void 0:it,children:Xe})]})},[S,q,We,Ae,t,ue,be,_,Oe]);return S==="Download"&&!(z!=null&&z.length)?null:v.jsxs(ec,{helperText:e,wrapProps:i,wrapType:l,labelProps:n,errorMessage:u,label:ht,children:[v.jsx("input",{style:{display:"none"},ref:Q,type:"file",multiple:!0,onChange:je,accept:g||""}),v.jsx($r,{...H,className:Fe.clsx(Fn.AFileUploader,O),children:v.jsxs(Sn,{className:Fn.ChipsContainer,children:[S==="Upload"&&$e(),z==null?void 0:z.map(lt)]})})]})},QE="_AFloatMenu_xco8u_1",ek="_Content_xco8u_10",o0={AFloatMenu:QE,Content:ek},j2=r=>{const{defs:e,defaultDef:t,actionRef:n,offset:i,onClose:l,onClick:u,onPaperClick:f,position:g=ef.ES,width:m=137}=r,R=A.useMemo(()=>({content:tk,...t}),[t]),C=A.useMemo(()=>{const j={};return er.keys(e).forEach(re=>{const J=e[re],Q={...R,...J};Q.noDisplay||(j[re]=Q)}),j},[R,e]),[b,S]=A.useState(null),_=A.useCallback(j=>{X_(j,O,g,i),S(j)},[g,i]),[D,E]=A.useState(!1),[x,L]=A.useState(!1),O=A.useRef(null),H=A.useCallback(j=>{L(!0),setTimeout(()=>E(!0),0),setTimeout(()=>_(j),0)},[_]),q=A.useCallback(()=>{E(!1),L(!0),l==null||l()},[l]),z=A.useCallback(()=>L(!1),[]),K=A.useCallback(async j=>{const re=document.getElementById("root"),J=j.target,Q=O.current;!re||!Q||!J||!Q.contains(J)&&re.contains(J)&&(await(f==null?void 0:f(j)),q())},[q,f]);A.useEffect(()=>{if(D)return setTimeout(()=>document.addEventListener("mousedown",K),0),()=>document.removeEventListener("mousedown",K)},[D,K]);const ue=A.useCallback(()=>{b&&_(b)},[_,b]);A.useEffect(()=>{if(!D||!b)return;let j=b.parentElement;for(;j;)j.addEventListener("scroll",ue),j=j.parentElement;return()=>{let re=b.parentElement;for(;re;)re.removeEventListener("scroll",ue),re=re.parentElement}},[b,D,ue]),A.useEffect(()=>{if(D)return window.addEventListener("resize",ue),()=>window.removeEventListener("resize",ue)},[D,ue]);const X=A.useCallback(j=>{j[0].intersectionRatio===0&&q()},[q]);A.useEffect(()=>{if(!D)return;const j=new IntersectionObserver(X,{threshold:0});return O.current&&j.observe(O.current),()=>j.disconnect()},[O,D,X]),A.useEffect(()=>{n&&(n.current={open:H,close:q})},[n,H,q]);const de=A.useCallback(j=>{var re;if(D){if((re=C[j])!=null&&re.isDisabled)return}else return;u==null||u(j),q()},[D,u,q,C]);return!D&&!x?null:Hs.createPortal(v.jsx("div",{className:o0.AFloatMenu,style:{opacity:+D,visibility:D&&Object.keys(C).length>0?"visible":"hidden",minWidth:m},onTransitionEnd:z,ref:O,children:er.map(C,([j],re)=>{const J={...R,...C[j]};let{content:Q,noDisplay:he,tooltipDirection:me=yi.E,...be}=J;return he?null:(Q=Lr.getContent(J.content,{defKey:j,def:J}),A.createElement($r,{...be,key:re,className:Fe.clsx(o0.Content,"Label2","IsClickable",be.className),onClick:ce=>{var ke;de==null||de(j),(ke=be.onClick)==null||ke.call(be,ce)},tooltipDirection:me},Q))})}),document.body)},tk=r=>r.defKey;function rk(r){try{const e=Number.parseInt(r);return isNaN(e)?void 0:e}catch{return}}const B2={parseInt:rk},nk=`${Number.MAX_SAFE_INTEGER}`.length-1,ik=r=>{const{unit:e,type:t="Secondary",min:n,max:i,useValue:l,onEnterPress:u,canAsterisk:f=!1,onFocus:g,...m}=r,R=A.useMemo(()=>i!==void 0&&n!==void 0?Math.max(`${i}`.length+1,`${n}`.length+1):nk,[n,i]),[C,b]=nn(l,""),S=A.useCallback(x=>{if(b)if(f&&x.startsWith("*"))b("*");else if(x==="")b("");else if(x==="-")b("-");else{x=x.replace(/[^0-9-]/g,"");try{const L=B2.parseInt(x);L!==void 0&&(n!==void 0&&L<n?b(`${n}`):i!==void 0&&L>i?b(`${i}`):b(`${L}`))}catch(L){console.error("ANumInput : ",L)}}},[b,f,n,i]),_=A.useRef(null),D=A.useCallback(x=>{var L;(L=_.current)==null||L.blur(),u==null||u(x)},[u]),E=A.useMemo(()=>n===void 0&&i===void 0?e??"number":`${n??""}~${i??""}`,[n,i,e]);return v.jsx(tc,{...m,type:t,className:Fe.clsx(to.ANumInput,r.className),autoComplete:"off",onEnterPress:D,useValue:[C,S],maxLength:R,placeholder:E,RightAddon:r.unit&&v.jsx("span",{style:{marginRight:4},children:r.unit}),inputRef:_})},ok="_AListView_k7t2d_1",sk="_Row_k7t2d_10",ak="_Label_k7t2d_20",lk="_Content_k7t2d_30",kd={AListView:ok,Row:sk,Label:ak,Content:lk},ck=r=>{const{defs:e,defaultDef:t,item:n,rowHeight:i,labelWidth:l,noBorder:u,style:f,...g}=r,m=u?"":"var(--AListView_border-thin)",R=u?"":"var(--AListView_border-thick)",C=A.useMemo(()=>({content:fk,label:uk,...t}),[t]),b=A.useMemo(()=>{const S={};return er.keys(e).forEach(_=>{const D=e[_],E={...C,...D};S[_]=E}),S},[C,e]);return v.jsx($r,{...g,className:Fe.clsx(kd.AListView,g.className),style:{...f,borderTop:m},children:er.map(b,([S])=>{const _={...C,...b[S]},D=Lr.getContent(_.label,{defKey:S,item:n,def:_}),E=Lr.getContent(_.content,{defKey:S,item:n||{[S]:""},def:_}),x=Lr.getContent(_.bold||"label",{defKey:S,item:n,def:_});return v.jsxs("div",{className:kd.Row,style:{height:i,borderBottom:m},children:[v.jsx("div",{className:Fe.clsx(kd.Label,"NoSelect",x!=="content"&&"Bold"),style:{width:l,minWidth:l,maxWidth:l,borderLeft:R,paddingLeft:u?0:10},children:v.jsx(Sa,{children:D})}),v.jsx("div",{className:Fe.clsx(kd.Content,x!=="label"&&"Bold"),style:{borderLeft:R,borderRight:R},children:v.jsx(Sa,{style:{width:"100%",padding:u?0:10},children:E})})]},S)})})},uk=r=>r.defKey,fk=r=>{const{defKey:e,item:t}=r;if(t)if(er.hasKey(t,e)){const n=t[e];return er.isReactNode(n)?n:null}else return null;else return null},dk="_ALoadingBorder_kwc1g_1",hk="_ProgressBar_kwc1g_9",pk="_IsLoading_kwc1g_15",gk="_load_kwc1g_1",mk="_Cover_kwc1g_19",Lf={ALoadingBorder:dk,ProgressBar:hk,IsLoading:pk,load:gk,Cover:mk},vm=r=>{const{isLoading:e}=r,[t,n]=A.useState(!1),i=A.useRef(null);return A.useEffect(()=>{e?(n(!0),i.current&&clearTimeout(i.current)):i.current=setTimeout(()=>n(!1),300)},[e]),v.jsxs("div",{className:Lf.ALoadingBorder,children:[v.jsx("div",{className:Fe.clsx(Lf.ProgressBar,t&&Lf.IsLoading)}),v.jsx("div",{className:Fe.clsx(Lf.Cover,e&&Lf.IsLoading),style:{transition:"all 300ms"}})]})},vk="_Container_tmqll_1",yk="_Option_tmqll_7",bk="_RadioButton_tmqll_14",_k="_InnerCircle_tmqll_24",xk="_isChecked_tmqll_29",qu={Container:vk,Option:yk,RadioButton:bk,InnerCircle:_k,isChecked:xk},Sk=r=>{const{options:e,useSelect:t,selectDisabled:n,radius:i=23,innerRadius:l=i*.6,OptionRenderer:u=H2}=r,[f,g]=nn(t,e[0]);return v.jsx("div",{className:qu.Container,children:e.map((m,R)=>{const C=n==null?void 0:n(m),b=()=>C?null:g==null?void 0:g(m);return v.jsxs(Sn,{className:Fe.clsx(qu.Option,"IsClickable"),isDisabled:C,onClick:b,children:[v.jsx(Ck,{isChecked:f===m,radius:i,innerRadius:l},R),v.jsx(u,{option:m})]},R)})})},H2=({option:r})=>r,Ck=({isChecked:r,radius:e,innerRadius:t})=>v.jsx($r,{className:Fe.clsx(qu.RadioButton,r&&qu.isChecked),style:{width:e,height:e},children:v.jsx($r,{className:Fe.clsx(qu.InnerCircle,r&&qu.isChecked),style:{width:t,height:t}})}),wk="_AMultiSelect_mr38x_1",Ak="_Arrow_mr38x_15",Tk="_Primary_mr38x_24",Ek="_UnAvailable_mr38x_35",kk="_IsOpen_mr38x_35",Rk="_Secondary_mr38x_42",Ik="_Placeholder_mr38x_58",Lk="_ValuesContainer_mr38x_63",Mk="_Values_mr38x_63",Dk="_Options_mr38x_82",Ok="_Option_mr38x_82",Pk="_Selected_mr38x_124",Nk="_CheckBox_mr38x_131",yo={AMultiSelect:wk,Arrow:Ak,Primary:Tk,UnAvailable:Ek,IsOpen:kk,Secondary:Rk,Placeholder:Ik,ValuesContainer:Lk,Values:Mk,Options:Dk,Option:Ok,Selected:Pk,CheckBox:Nk},Fk=r=>{const{options:e,useSelect:t,type:n="Primary",placeholder:i=hn.AMultiSelect["Select(Placeholder)"],onClose:l,SelectedRenderer:u=Bk,OptionRenderer:f=Hk,minShowRows:g=2,maxShowRows:m=6,arrowProps:R,isAutoWidth:C=!1,...b}=r,S=A.useRef(null),_=A.useMemo(()=>b.abaseRef??S,[b.abaseRef]),D=A.useRef(null),[E,x]=nn(t,[]),[L,O]=A.useState(void 0),H=A.useRef(e),q=A.useRef(null),[z,K]=A.useState(!1),[ue,X]=A.useState(!1),de=A.useCallback(()=>X(!1),[]),j=A.useCallback(()=>{b.isDisabled||b.isLoading||e.length<1||(X(!0),setTimeout(()=>K(!0),0),setTimeout(()=>Jh(D,_,e,g,m),0))},[_,b.isDisabled,b.isLoading,e,g,m]),re=A.useCallback(()=>{K(!1),X(!0),l==null||l()},[l]),J=A.useCallback(le=>{var oe;z?re():j(),setTimeout(()=>Jh(D,_,e,g,m),0),(oe=b.onClick)==null||oe.call(b,le)},[_,b,e,z,re,j,g,m]),Q=A.useCallback(()=>{Jh(D,_,e,g,m)},[_,e,g,m]);A.useEffect(()=>{if(!z||!_.current)return;const le=_.current;let oe=le.parentElement;for(;oe;)oe.addEventListener("scroll",Q),oe=oe.parentElement;return()=>{let ve=le.parentElement;for(;ve;)ve.removeEventListener("scroll",Q),ve=ve.parentElement}},[_,z,Q]),A.useEffect(()=>{if(z)return window.addEventListener("resize",Q),()=>window.removeEventListener("resize",Q)},[z,Q]);const he=A.useCallback(le=>{le[0].intersectionRatio===0&&re()},[re]);A.useEffect(()=>{if(!z)return;const le=new IntersectionObserver(he,{threshold:0});return _.current&&le.observe(_.current),()=>le.disconnect()},[_,z,he]);const me=A.useCallback(le=>{const oe=le.target,ve=_.current,Oe=D.current;!ve||!oe||!Oe||!ve.contains(oe)&&!Oe.contains(oe)&&re()},[_,re]),be=A.useMemo(()=>b.isDisabled||b.isLoading||e.length<1,[b.isDisabled,b.isLoading,e]);A.useEffect(()=>{if(z)return setTimeout(()=>document.addEventListener("mousedown",me),0),()=>document.removeEventListener("mousedown",me)},[z,me]);const ce=A.useCallback((le,oe)=>{le.stopPropagation(),le.preventDefault();let ve=[...E];ve.includes(oe)?ve=ve.filter(Oe=>Oe!==oe):ve.push(oe),x==null||x(ve)},[E,x]),ke=A.useCallback(()=>{if(!C||!_.current)return;const le=Zc.calculateOptimalSelectWidth({elementRef:_,options:e,selectedOptions:E,placeholder:i,optionRenderer:oe=>f({option:oe}),type:n,isMulti:!0});O(le)},[C,_,e,E,i,f,n]);return A.useEffect(()=>C?((e!==H.current||L===void 0)&&(q.current!==null&&cancelAnimationFrame(q.current),q.current=requestAnimationFrame(()=>{ke(),q.current=null,H.current=[...e]})),()=>{q.current!==null&&(cancelAnimationFrame(q.current),q.current=null)}):void 0,[C,e,ke,L]),A.useEffect(()=>()=>{typeof Zc.clearCache=="function"&&Zc.clearCache()},[]),v.jsxs(v.Fragment,{children:[v.jsxs($r,{...b,isDisabled:b.isDisabled||e.length<1,className:Fe.clsx(b.className,yo.AMultiSelect,"NoSelect",z&&yo.IsOpen,be&&yo.UnAvailable,yo[n]),style:{padding:n==="Secondary"?"8px 8px 8px 0":0,width:L?`${L}px`:C?"100px":void 0,...b.style},abaseRef:_,onClick:J,children:[v.jsx("div",{className:yo.ValuesContainer,children:v.jsx("div",{className:Fe.clsx(yo.Values,E.length<1&&yo.Placeholder),children:v.jsx(u,{OptionRenderer:f,selectedOptions:E,placeholder:i})})}),v.jsx("div",{...R,className:Fe.clsx(yo.Arrow,R==null?void 0:R.className),children:v.jsx(jr,{style:{transform:z?"rotate(180deg)":"",transition:"var(--Transition)"},icon:"TriangleDown"})})]}),e.length>0&&(z||ue)&&Hs.createPortal(v.jsx("div",{className:Fe.clsx(yo.Options,yo[n]),onTransitionEnd:de,style:{opacity:+z,visibility:z?"visible":"hidden",pointerEvents:z?void 0:"none",width:L?`${L}px`:C?"100px":void 0,borderRadius:_.current?window.getComputedStyle(_.current).borderRadius:void 0},ref:D,children:e.map((le,oe)=>{var Oe;const ve=E.includes(le);return v.jsxs("div",{className:Fe.clsx(yo.Option,ve&&yo.Selected,"NoSelect",yo[n]),style:{height:(Oe=_.current)==null?void 0:Oe.getBoundingClientRect().height},onClick:et=>ce(et,le),children:[v.jsx(Zu,{className:yo.CheckBox,useCheck:[+ve,void 0]}),v.jsx(f,{option:le})]},oe)})}),document.body)]})};function Jh(r,e,t,n,i){if(!e.current||!r.current||!t||t.length<1)return;const l=e.current.getBoundingClientRect(),u=jk(l,t.length,n,i),f=window.getComputedStyle(e.current);r.current.style.top=`calc(${u.top??0}px - ${f.borderTopWidth})`,r.current.style.bottom=u.bottom?u.bottom+"px":"",r.current.style.left=u.left+"px",r.current.style.width||(r.current.style.minWidth=u.minWidth+"px"),r.current.style.minHeight=u.minHeight+"px",r.current.style.maxHeight=u.maxHeight+"px",r.current.style.visibility="visible"}function jk(r,e,t,n){const i={top:r.bottom,bottom:void 0,left:r.left,height:"fit-content",minWidth:r.width,minHeight:r.height*Math.min(t,e),maxHeight:r.height*n>window.innerHeight-r.bottom-10?window.innerHeight-r.bottom-10:r.height*n};return window.innerHeight-r.bottom-10<i.height&&(window.innerHeight-r.bottom-10<i.minHeight?(i.top=r.top-e*r.height,i.top<0&&(i.top=10,i.minHeight=r.top-10,i.height=r.top-10)):i.height=window.innerHeight-r.bottom-10),i}const Bk=r=>{const{OptionRenderer:e,selectedOptions:t,placeholder:n}=r;return t.length<1?n:t.length===1?v.jsx(e,{option:t[0]}):`${t.length} selected`},Hk=r=>{const{option:e}=r;return er.isReactNode(e)?e:null},qk="_Container_10ion_1",zk="_Steps_10ion_9",$k="_Step_10ion_9",Uk="_OutCircle_10ion_26",Wk="_IsOver_10ion_37",Vk="_InCircle_10ion_41",Gk="_Line_10ion_54",Zk="_Left_10ion_66",Kk="_Right_10ion_69",Yk="_ContentContainer_10ion_73",Xk="_Content_10ion_73",eo={Container:qk,Steps:zk,Step:$k,OutCircle:Uk,IsOver:Wk,InCircle:Vk,Line:Gk,Left:Zk,Right:Kk,ContentContainer:Yk,Content:Xk},Jk=r=>{const{useSelect:e,steps:t,StepRenderer:n=s0,ContentRenderer:i=s0}=r;if(t.length===0)throw new Error("steps should have at least one element");const l=A.useRef(null),[u,f]=nn(e,t[0]),g=A.useCallback(R=>f==null?void 0:f(R),[f]),m=A.useMemo(()=>t.indexOf(u),[u,t]);return A.useEffect(()=>{m<0&&g(t[0])},[m,t,g]),v.jsxs("div",{className:eo.Container,children:[v.jsx("div",{className:eo.Steps,children:t.map((R,C)=>{const b=t.indexOf(R),S=m>=C,_=m>C;return v.jsxs("div",{className:eo.Step,children:[C!==0&&v.jsx("div",{className:Fe.clsx(eo.Line,eo.Left,S&&eo.IsOver)}),C!==t.length-1&&v.jsx("div",{className:Fe.clsx(eo.Line,eo.Right,_&&eo.IsOver)}),v.jsx(Fi,{type:"Raw",className:Fe.clsx(eo.OutCircle,S&&eo.IsOver),onClick:()=>g(R),children:v.jsx("div",{className:Fe.clsx(eo.InCircle,S&&eo.IsOver)})}),v.jsx(n,{step:R,stepIdx:b})]},C)})}),v.jsx("div",{className:eo.ContentContainer,ref:l,children:t.map((R,C)=>{const b=t.indexOf(R);return v.jsx("div",{className:eo.Content,style:C===0?{marginLeft:`${m*-100}%`}:{},children:v.jsx(i,{step:R,stepIdx:b})},C)})})]})},s0=r=>{const{step:e}=r;return typeof e=="object"?er.stringify(e):e},Qk="_ATab_1ikea_1",e8="_Option_1ikea_9",t8="_Underline_1ikea_22",r8="_IsSelected_1ikea_22",n8="_IndicatorTrack_1ikea_33",i8="_Indicator_1ikea_33",o8="_Primary_1ikea_49",s8="_Secondary_1ikea_56",a8="_IsDisabled_1ikea_66",l8="_Tertiary_1ikea_80",c8="_Quaternary_1ikea_110",Zl={ATab:Qk,Option:e8,Underline:t8,IsSelected:r8,IndicatorTrack:n8,Indicator:i8,Primary:o8,Secondary:s8,IsDisabled:a8,Tertiary:l8,Quaternary:c8},u8=["Primary","Secondary","Tertiary","Quaternary"],q2=r=>{const{options:e,useSelect:t,selectDisabled:n,type:i="Primary",tabProps:l,optionProps:u,optionWidth:f,OptionRenderer:g=f8,RightAddon:m,color:R,underline:C}=r;if(e.length===0)throw new Error("options should have at least one element");const b=A.useMemo(()=>e.findIndex(ce=>!(n!=null&&n(ce))),[e,n]),S=i==="Tertiary"?2:0,_=i==="Secondary"?8:0,D=A.useMemo(()=>S+_,[S,_]),E=i==="Tertiary"?2:0,x=A.useMemo(()=>(_-S-E-E)/e.length,[e.length,S,_,E]),[L,O]=nn(t,e[b]),H=A.useRef([]),q=A.useCallback(ce=>O==null?void 0:O(ce),[O]),z=A.useMemo(()=>typeof f=="number"?f+"px":f,[f]),K=A.useMemo(()=>e.indexOf(L),[e,L]),ue=A.useMemo(()=>`calc(${100/e.length}% + ${x}px)`,[e.length,x]),X=A.useMemo(()=>z||`calc(${ue} - ${D}px)`,[ue,D,z]),[de,j]=A.useState(0),[re,J]=A.useState(0),[Q,he]=A.useState(X),me=A.useMemo(()=>{let ce;switch(z){case void 0:ce=`calc(${ue} * ${K})`;break;case"fit-content":ce=`calc(${de}px)`;break;default:ce=`calc((${z} + ${D}px) * ${K})`;break}return`calc(${ce} + ${E}px)`},[z,E,ue,K,de,D]),be=A.useMemo(()=>{switch(z){case void 0:return;case"fit-content":return`calc(${re}px)`;default:return`calc((${z} + ${D}px - ${x}px) * ${e.length})`}},[z,x,D,e,re]);return A.useEffect(()=>{var ke,le;if(e.includes(L)||O==null||O(e[b]),z!=="fit-content"){he(X);return}let ce=0;H.current.forEach((oe,ve)=>{ve<K&&oe.current&&(ce+=oe.current.offsetWidth+D)}),j(ce),he(`calc(${((le=(ke=H.current[K])==null?void 0:ke.current)==null?void 0:le.offsetWidth)||0}px)`),J(H.current.reduce((oe,ve)=>{var Oe;return oe+((((Oe=ve.current)==null?void 0:Oe.offsetWidth)||0)+D-x)},0))},[z,H,e,L,O,b,x,D,K,X]),v.jsxs("div",{...l,className:Fe.clsx(Zl.ATab,"Headline2",Zl[i],l==null?void 0:l.className),children:[v.jsx("div",{className:Zl.Indicator,style:{minWidth:Q,left:me,marginLeft:S}}),v.jsx("div",{className:Zl.IndicatorTrack,style:{width:be}}),v.jsx(mn,{w:E}),e.map((ce,ke)=>{const le=n==null?void 0:n(ce);return H.current[ke]||(H.current[ke]=A.createRef()),v.jsx($r,{abaseRef:H.current[ke],...u,style:{minWidth:X,maxWidth:X,marginLeft:S,marginRight:_,"--color":R,...u==null?void 0:u.style},className:Fe.clsx(Zl.Option,le&&Zl.IsDiabled,ce===L&&Zl.IsSelected,"IsClickable",C&&Zl.Underline,u==null?void 0:u.className),onClick:oe=>{!le&&q(ce),u&&u.onClick&&u.onClick(oe)},isDisabled:le,children:v.jsx(g,{option:ce})},ke)}),v.jsx(mn,{w:E+S}),m&&v.jsxs(v.Fragment,{children:[v.jsx(Qc,{}),m]})]})},f8=r=>{const{option:e}=r;if(typeof e=="string")return e;if(typeof e=="number")return e;if(typeof e=="object"){if(e===null)return"";const t=er.keys(e);return"name"in t?e.name:"label"in t?e.label:"value"in t?e.value:JSON.stringify(e)}else return JSON.stringify(e)};function z2(...r){const e=A.useRef(!1);A.useEffect(()=>{e.current||(e.current=!0,r.forEach(t=>t()))},[r])}const $2={String:(r,e,t,n)=>{const{value:i}=n;if(i===void 0)return!1;if(t==="")return er.keys(e).some(R=>{const C=e[R],b=Lr.getContent(C.asText,{defKey:R,def:C,item:r});if(b!==void 0)return b.toString().toLowerCase().includes(i.toLowerCase());const S=Lr.getContent(C.content,{defKey:R,def:C,item:r});return["string","number"].includes(typeof S)&&S!==void 0&&S!==null?S.toString().toLowerCase().includes(i.toLowerCase()):!1});const l=er.keys(e),u=t;if(!l.includes(u))return!1;const f=e[u],g=Lr.getContent(f.asText,{defKey:u,def:f,item:r});if(g!==void 0)return g.toString().toLowerCase().includes(i.toLowerCase());const m=Lr.getContent(f.content,{defKey:u,def:f,item:r});return["string","number"].includes(typeof m)&&m!==void 0&&m!==null?m.toString().toLowerCase().includes(i.toLowerCase()):!1},Select:(r,e,t,n)=>{const{value:i}=n;if(i==null)return!1;const l=er.keys(e),u=t;if(!l.includes(u))return!1;const f=e[u],g=Lr.getContent(f.asText,{defKey:u,def:f,item:r});if(g!==void 0)return i.toString().toLowerCase()===g.toString().toLowerCase();const m=Lr.getContent(f.content,{defKey:u,def:f,item:r});return["string","number"].includes(typeof m)&&m!==void 0&&m!==null?i.toString().toLowerCase()===m.toString().toLowerCase():!1},Date:(r,e,t,n)=>{const{value:i}=n;if(i===void 0)return!1;const l=er.keys(e),u=t;if(!l.includes(u))return!1;const f=e[u],g=Lr.getContent(f.asText,{defKey:u,def:f,item:r});if(g!==void 0){const R=Kt.toDate(g.toString());return R&&Kt.eq(R,i)}const m=Lr.getContent(f.content,{defKey:u,def:f,item:r});if(["string","number"].includes(typeof m)&&m!==void 0&&m!==null){const R=Kt.toDate(m.toString());return R&&Kt.eq(R,i)}return!1},DateRange:(r,e,t,n)=>{const{value:i}=n;if(i===void 0)return!1;const l=er.keys(e),u=t;if(!l.includes(u))return!1;const f=e[u],g=Lr.getContent(f.asText,{defKey:u,def:f,item:r});if(g!==void 0){const R=Kt.toDate(g.toString());return R&&Kt.be(i.sDate,R,i.eDate)}const m=Lr.getContent(f.content,{defKey:u,def:f,item:r});if(["string","number"].includes(typeof m)&&m!==void 0&&m!==null){const R=Kt.toDate(m.toString());return R&&Kt.be(i.sDate,R,i.eDate)}return!1}},d8=(r,e,t)=>{let n=r;return er.keys(t).forEach(l=>{const u=t[l];u.value===void 0||u.value===null||u.value===""||(n=n.filter(f=>{var g;return(g=u.predicate??$2[u.type])==null?void 0:g(f,e,l,u)}))}),n},h8=(r,e,t)=>{if(!t)return r;const n=t.defKey,i=e[n];if(n===void 0)return r;const l=t.sortF??((u,f)=>{const g=Lr.getContent(i.content,{defKey:n,def:i,item:u}),m=Lr.getContent(i.content,{defKey:n,def:i,item:f});return typeof g=="string"&&typeof m=="string"?g<m?-1:g>m?1:0:typeof g=="number"&&typeof m=="number"?g-m:typeof g=="string"&&typeof m=="number"?-1:typeof g=="number"&&typeof m=="string"||g===void 0&&m!==void 0?1:g!==void 0&&m===void 0?-1:0});return r.slice().sort((u,f)=>t.isAsc?l(u,f):l(f,u))},p8=(r,e,t)=>r.slice((e-1)*t,e*t),U2=(r,e)=>{const t=Math.max(Math.ceil(r/e),1);return Array.from({length:t},(n,i)=>i+1)},g8=(r,e,t,n)=>{const i=U2(e,t),l=Math.floor((r-1)/n),u=l*n+1,f=(l+1)*n,g=i.slice(u-1,f);return{pages:i,rangedPages:g}},m8=(r,e,t)=>{const n=[],i=Object.keys(t),l=[];i.forEach(b=>{const S=t[b],_=Lr.getContent(S.hContent,{defKey:b,def:S});if(_!==void 0){if(typeof _=="string"){l.push(_);return}else if(typeof _=="number"){l.push(_.toString());return}}const D=Lr.getContent(S.name,{defKey:b,def:S});if(D!==void 0&&typeof D=="string"){l.push(D);return}l.push(b)});const u=l.map(b=>`"${b.replaceAll('"','""')}"`);n.push(u.join(",")),e.forEach(b=>{const S=[];i.forEach(D=>{const E=t[D],x=Lr.getContent(E.content,{defKey:D,def:E,item:b});if(x!==void 0){if(typeof x=="string"){S.push(x);return}else if(typeof x=="number"){S.push(x.toString());return}}const L=b[D];typeof L=="string"?S.push(L):typeof L=="number"?S.push(L.toString()):S.push("")});const _=S.map(D=>`"${D.replaceAll('"','""')}"`);n.push(_.join(","))});const f=`${r}.csv`,g="\uFEFF"+n.join(`
|
161
|
+
`),m=new Blob([g],{type:"text/csv;charset=UTF-8"}),R=URL.createObjectURL(m),C=document.createElement("a");C.href=R,C.download=f,C.click(),URL.revokeObjectURL(R)},v8=r=>{const e=er.keys(r);if(e.length!==1)return;const t=e[0];if(t!=="")return;const n=r[t];if(n.type==="String")return n.value},y8=r=>{const e=Object.entries(r);let t={};return e.forEach(([n,i])=>{!i||i.value===void 0||i.value===null||i.value===""||(i.type==="DateRange"?(t[i.sFilterKey]=i.value.sDate,t[i.eFilterKey]=i.value.eDate):t[i.filterKey??n]=i.value)}),t},b8=r=>{const e=er.keys(r).filter(i=>i!=="");if(e.length!==1)return;const t=e[0],n=r[t];return!n||n.value===void 0||n.value===null||n.value===""?{selectedKey:t,value:void 0}:{selectedKey:t,value:n.value}},tl={applyFilteration:d8,applySortation:h8,applyPagination:p8,getPages:U2,getRangedPages:g8,downloadCsv:m8,getSingleFilterValue:v8,getMultiFilterValues:y8,getSelectFilterValue:b8},_8="_ATable_12zow_1",x8={ATable:_8};function W2(r,e,t,n){A.useEffect(()=>{if(r)return r.addEventListener(e,t,n),()=>{r.removeEventListener(e,t,n)}},[r,e,t,n])}const S8="_BodyHeader_43b3m_1",C8="_TRow_43b3m_7",w8="_OverflowSpace_43b3m_13",A8="_BodyBody_43b3m_19",T8="_IsSelected_43b3m_40",E8="_IsSelectable_43b3m_44",k8="_IsRowMarked_43b3m_52",R8="_TH_43b3m_57",I8="_TD_43b3m_62",L8="_IsMarked_43b3m_62",M8="_Resizer_43b3m_81",D8="_IsMoving_43b3m_93",O8="_IsResizable_43b3m_96",P8="_ResizerCenter_43b3m_99",N8="_ResizerOut_43b3m_105",F8="_ResizerIn_43b3m_109",j8="_IsClicked_43b3m_144",B8="_NoItems_43b3m_151",H8="_Content_43b3m_157",_n={BodyHeader:S8,TRow:C8,OverflowSpace:w8,BodyBody:A8,IsSelected:T8,IsSelectable:E8,IsRowMarked:k8,TH:R8,TD:I8,IsMarked:L8,Resizer:M8,IsMoving:D8,IsResizable:O8,ResizerCenter:P8,ResizerOut:N8,ResizerIn:F8,IsClicked:j8,NoItems:B8,Content:H8},Yl=25,q8=r=>{const{defs:e,isEqual:t,rProps:n,useSelect:i,isTableDisabled:l,isSelectMulti:u,selectDisabled:f,appliedFilteration:g,useSortation:m,pagination:R,pagedItems:C,noMarking:b,noDefHeader:S,isLoading:_,showRows:D,RowRenderer:E=U8,isRowRendered:x,resources:L}=r,[O,H]=A.useMemo(()=>i??[],[i]),q=A.useCallback($e=>{l||!H||!O||f!=null&&f($e)||(u?O.some(ht=>t(ht,$e))?H(O.filter(ht=>!t(ht,$e))):H([...O,$e]):H([$e]))},[O,f,H,t,l,u]);A.useEffect(()=>{u||!O||!H||O.length>1&&H([O[O.length-1]])},[O,H,u]),A.useEffect(()=>{if(!O||!H)return;O.filter(ht=>f==null?void 0:f(ht)).length>0&&H(O.filter(ht=>!(f!=null&&f(ht))))},[O,H,f]);const[z,K]=m,ue=A.useCallback(($e,ht)=>{K&&((z==null?void 0:z.defKey)===$e?z.isAsc===!0?K({defKey:$e,isAsc:!1,sortF:ht}):z.isAsc===!1?K(void 0):K({defKey:$e,isAsc:!0,sortF:ht}):K({defKey:$e,isAsc:!0,sortF:ht}))},[z,K]),[X,de]=A.useState({elem:null,row:null}),j=A.useRef(null),re=A.useRef(null),J=A.useCallback(()=>de({elem:j.current,row:re.current}),[]);A.useEffect(()=>J(),[C.length,J]),W2(window,"resize",J);const[Q,he]=A.useState(40);A.useEffect(()=>{const{row:$e}=X;$e!=null&&he($e.clientHeight)},[X,Q]);const me=A.useMemo(()=>{const{elem:$e}=X;return $e?Math.floor($e.clientHeight/Q):0},[X,Q]),be=A.useMemo(()=>D||(C.length<=me?me:C.length),[me,D,C]),ce=A.useMemo(()=>{if(D!==void 0)return D*Q},[D,Q]),ke=A.useMemo(()=>ce,[ce]),le=A.useMemo(()=>{const{elem:$e}=X;return $e?$e.getBoundingClientRect().height/Q<C.length:!1},[X,Q,C.length]),[oe,ve]=A.useState(),Oe=A.useMemo(()=>{const{elem:$e}=X;return!oe||!$e?"100%":$e.clientHeight+(x?0:50)},[oe,x,X]),et=A.useRef(null),[we,Pe]=A.useState({}),je=A.useRef({x:0,y:0}),ze=A.useRef({}),We=A.useMemo(()=>er.keys(we),[we]),De=A.useCallback(($e,ht)=>{const Le=et.current;if(!Le)return;const Xe=[];Le.childNodes.forEach(wt=>{wt.classList.contains(_n.TH)&&Xe.push(wt)});const it={};er.keys(e).forEach((wt,bt)=>{const St=Xe[bt];if(!St)return;const Me=St.getBoundingClientRect().width;it[wt]=Me}),ze.current=it,ve(ht),je.current={x:$e.clientX,y:$e.clientY};const Ct=wt=>{if(!et.current)return;const St=wt.clientX-je.current.x,Me=$8(e,ht,ze.current,St);Pe(Me)};document.addEventListener("mousemove",Ct);const _t=()=>{ve(void 0),document.removeEventListener("mousemove",Ct),document.removeEventListener("mouseup",_t)};document.addEventListener("mouseup",_t)},[e]),Ae=A.useCallback(()=>{ve(void 0),Pe({})},[]),_e=A.useMemo(()=>{if(We.length===0){const Le={},Xe=er.keys(e);for(let it=0;it<Xe.length;it++){const Ct=Xe[it],_t=e[Ct],wt=Lr.getContent(_t.colSpan,{defKey:Ct,def:_t}),bt=_t.width??80,St=_t.minWidth??Yl,Me=_t.maxWidth,pt={width:bt,minWidth:St,maxWidth:Me,flexGrow:wt??1};if(Le[Ct]=pt,wt!==void 0){for(let Et=1;Et<Math.min(wt,Xe.length-it);Et++){const mt=e[Xe[it+Et]],Dt=mt.width??80,Ze=mt.minWidth??Yl,At=mt.maxWidth;pt.width+=Dt,pt.minWidth+=Ze,pt.maxWidth!==void 0&&(At!==void 0?pt.maxWidth+=At:pt.maxWidth=void 0)}it+=wt-1}}return Le}const $e={},ht=er.keys(e);for(let Le=0;Le<ht.length;Le++){let Xe=ht[Le];const it=e[Xe];let Ct=we[Xe];const _t=Lr.getContent(it.colSpan,{defKey:Xe,def:it}),wt=it.minWidth??Yl,bt=it.maxWidth,St={width:Ct,minWidth:wt,maxWidth:bt,flexGrow:_t??1};if($e[Xe]=St,_t!==void 0){for(let Me=1;Me<Math.min(_t,ht.length-Le);Me++){const pt=e[ht[Le+Me]],Et=we[ht[Le+Me]],mt=pt.minWidth??Yl,Dt=pt.maxWidth;St.width+=Et,St.minWidth+=mt,St.maxWidth!==void 0&&(Dt!==void 0?St.maxWidth+=Dt:St.maxWidth=void 0)}Le+=_t-1}}return $e},[e,We,we]),Ge=A.useRef(null),lt=A.useMemo(()=>tl.getSingleFilterValue(g),[g]);return A.useEffect(()=>{j.current&&j.current.scrollTo({top:0})},[R.page]),A.useEffect(()=>{x&&re.current&&re.current.scrollIntoView({behavior:"smooth",block:"center"})},[O,C,x]),v.jsxs(v.Fragment,{children:[v.jsx(vm,{isLoading:_}),v.jsx("div",{className:Fe.clsx(_n.BodyHeader,oe!==void 0&&_n.IsClicked),onResizeCapture:J,ref:Ge,style:{display:S||x?"none":"flex"},children:v.jsx("div",{className:_n.TRow,ref:et,children:er.map(e,([$e],ht)=>{const Le=e[$e],Xe=Lr.getContent(Le.hContent,{defKey:$e,def:Le}),it=Le.name,Ct=ht===er.keys(e).length-1,_t=Le.width??80,wt=Le.minWidth??Yl,bt=Le.maxWidth,St={width:_t,minWidth:wt,maxWidth:bt,justifyContent:Lr.getContent(Le.hAlign,{defKey:$e,def:Le})??"flex-start",...Lr.getContent(Le.hStyle,{defKey:$e,def:Le})};We.includes($e)&&(St.width=we[$e]);const Me=Le.isSortable,pt=(z==null?void 0:z.defKey)===$e,Et=z==null?void 0:z.isAsc;return v.jsxs(A.Fragment,{children:[v.jsxs("div",{style:St,onClick:()=>Me&&ue($e,Le.sortF),className:Fe.clsx(_n.TH,"Label1",Me?"IsClickable":"NoSelect"),children:[v.jsx(Sa,{className:_n.Content,children:Xe??it}),Me&&v.jsx(jr,{icon:pt?Et?"SortUp":"SortDown":"SortBoth",style:{width:16,height:16}})]}),!Ct&&v.jsxs("div",{className:Fe.sclsx(_n,"Resizer","IsResizable","NoSelect",oe!==void 0&&"IsMoving"),onMouseDown:mt=>De(mt,$e),onDoubleClick:Ae,children:[v.jsx("div",{className:_n.ResizerOut}),v.jsx("div",{className:_n.ResizerIn}),v.jsx("div",{className:_n.ResizerCenter,style:{height:Oe}}),v.jsx("div",{className:_n.ResizerIn}),v.jsx("div",{className:_n.ResizerOut})]}),Ct&&v.jsx(mn,{className:_n.OverflowSpace,w:"var(--Scrollbar-width)",h:50,style:{color:St.color,backgroundColor:St.backgroundColor,transition:St.transition}})]},$e)})})}),v.jsxs("div",{className:Fe.clsx(_n.BodyBody,oe!==void 0&&_n.IsClicked),ref:j,style:{overflowY:le?"scroll":"hidden",minHeight:ce,maxHeight:ke},children:[C.map(($e,ht)=>{const Le=Lr.getContent(n,{item:$e}),Xe=H&&!l,it=O==null?void 0:O.some(bt=>t(bt,$e)),Ct=O&&(f==null?void 0:f($e)),_t=typeof Ct=="string"?Ct:void 0,wt={...$e};return x&&er.keys(e).forEach(bt=>{const St=e[bt],Me=Lr.getContent(St.content,{defKey:bt,def:St,item:$e});let pt=!1;if(lt&&!b){const Et=Lr.getContent(St.asText,{defKey:bt,def:St,item:$e});Et!==void 0?pt=Et.toString().toLowerCase().includes(lt.toLowerCase()):["string","number"].includes(typeof Me)&&Me!==void 0&&Me!==null&&(pt=Me.toString().toLowerCase().includes(lt.toLowerCase()))}wt[bt]=v.jsx("span",{className:Fe.clsx(pt&&_n.IsRowMarked),children:wt[bt]})}),v.jsx($r,{isDisabled:Ct,tooltip:_t,...Le,onClick:bt=>{var St;q($e),(St=Le==null?void 0:Le.onClick)==null||St.call(Le,bt)},className:Fe.clsx(Le==null?void 0:Le.className,Xe&&_n.IsSelectable,it&&_n.IsSelected),abaseRef:it?re:void 0,children:v.jsx(E,{defs:e,item:$e,markedItem:wt,noMarking:b,spanWidths:_e,singleFilterValue:lt,isBodyBodyOverflowed:le})},ht)}),v.jsx(z8,{showRows:be,itemsLength:C.length,isRowRendered:x,rowHeight:Q,resources:L})]})]})},z8=r=>{const{showRows:e,itemsLength:t,resources:n,isRowRendered:i,rowHeight:l}=r,u=A.useMemo(()=>t===0?e:e-t,[e,t]);return Array.from({length:u},(f,g)=>v.jsx("div",{className:Fe.clsx(_n.TRow,"NoSelect"),...i&&{style:{border:"none",minHeight:l,maxHeight:l}},children:t===0&&g===Math.floor(e/2)&&v.jsx(Sn,{className:_n.NoItems,children:n["No Items"]})},g))};function $8(r,e,t,n){const i={...t},l=er.keys(r).findIndex(m=>m===e)+1,u=Object.entries(r);let f=l-1,g=l;if(n<0){for(;n<0&&!(f<0||g>=u.length);){const[m,R]=[u[f][0],u[f][1]],[C,b]=[u[g][0],u[g][1]],S=R.minWidth??Yl,_=b.maxWidth,D=i[m],E=i[C];let x=D-S;_!==void 0&&(x=Math.min(x,_-E));let L=-n;L=Math.min(L,x),D-L<=S&&f--,_!==void 0&&E+L>=_&&g++,i[m]=D-L,i[C]=E+L,n+=L}return i}else if(n>0){for(;n>0&&!(f<0||g>=u.length);){const[m,R]=[u[f][0],u[f][1]],[C,b]=[u[g][0],u[g][1]],S=b.minWidth??Yl,_=R.maxWidth,D=i[C],E=i[m];let x=D-S;_!==void 0&&(x=Math.min(x,_-E));let L=n;L=Math.min(L,x),D-L<=S&&g++,_!==void 0&&E+L>=_&&f--,i[C]=D-L,i[m]=E+L,n-=L}return i}return i}const U8=r=>{const{defs:e,item:t,noMarking:n,spanWidths:i,singleFilterValue:l,isBodyBodyOverflowed:u}=r;return v.jsx("div",{className:Fe.clsx(_n.TRow),children:er.map(e,([f],g)=>{const m=i[f];if(m===void 0)return null;const R=g===er.keys(e).length-1,C=e[f],b=Lr.getContent(C.content,{defKey:f,def:C,item:t}),S={width:m.width,minWidth:m.minWidth,maxWidth:m.maxWidth,flexGrow:m.flexGrow,justifyContent:Lr.getContent(C.align,{defKey:f,def:C,item:t})??"flex-start",...Lr.getContent(C.style,{defKey:f,def:C,item:t})};let _=!1;if(l&&!n){const D=Lr.getContent(C.asText,{defKey:f,def:C,item:t});D!==void 0?_=D.toString().toLowerCase().includes(l.toLowerCase()):["string","number"].includes(typeof b)&&b!==void 0&&b!==null&&(_=b.toString().toLowerCase().includes(l.toLowerCase()))}return v.jsxs(A.Fragment,{children:[v.jsx("div",{style:S,className:Fe.clsx(_n.TD,"Label1",_&&_n.IsMarked),children:v.jsx(Sa,{className:_n.Content,children:b})}),!u&&R&&v.jsx(mn,{className:_n.OverflowSpace,w:"var(--Scrollbar-width)",h:40,style:{color:S.color,backgroundColor:S.backgroundColor}})]},f)})})},W8="_ATableFooter_w090q_1",V8="_Button_w090q_10",G8="_IsSelected_w090q_26",Z8="_IsDisabled_w090q_31",Ds={ATableFooter:W8,Button:V8,IsSelected:G8,IsDisabled:Z8},K8=r=>{const{pages:e,rangedPages:t,pageF:n,pagination:i}=r,l=A.useMemo(()=>e[e.length-1],[e]);return v.jsxs(Sn,{className:Ds.ATableFooter,children:[v.jsx(jr,{icon:"FirstPage",className:Fe.clsx(Ds.Button,i.page===1&&Ds.IsDisabled),onClick:n.moveFirst}),v.jsx(jr,{icon:"NavigateBefore",className:Fe.clsx(Ds.Button,i.page===1&&Ds.IsDisabled),onClick:n.movePrev}),t.map(u=>v.jsx("div",{className:Fe.clsx(Ds.Button,"NoSelect",i.page===u&&Ds.IsSelected),onClick:()=>n.move(u),children:u},u)),v.jsx(jr,{icon:"NavigateNext",className:Fe.clsx(Ds.Button,i.page===l&&Ds.IsDisabled),onClick:n.moveNext}),v.jsx(jr,{icon:"LastPage",className:Fe.clsx(Ds.Button,i.page===l&&Ds.IsDisabled),onClick:n.moveLast})]})},Y8="_Filter_1b9j0_1",X8="_SelectFilter_1b9j0_11",J8="_MainFilter_1b9j0_15",Q8="_IsOpen_1b9j0_26",eR="_SubFilters_1b9j0_30",tR="_Input_1b9j0_44",rR="_Main_1b9j0_15",nR="_Sub_1b9j0_30",iR="_Actions_1b9j0_62",oR="_Icon_1b9j0_67",sR="_LeftIcon_1b9j0_74",aR="_CircleAlertOutline_1b9j0_79",lR="_Rotate_1b9j0_87",cR="_rotate_1b9j0_1",Er={Filter:Y8,SelectFilter:X8,MainFilter:J8,IsOpen:Q8,SubFilters:eR,Input:tR,Main:rR,Sub:nR,Actions:iR,Icon:oR,LeftIcon:sR,CircleAlertOutline:aR,Rotate:lR,rotate:cR},uR=r=>{const{defs:e,useFilteration:t,hasToggleFilteration:n,filterF:i,isRowRendered:l,isFilterSort:u,filterType:f,resources:g,placeholder:m}=r,[R,C]=A.useState([]),[b,S]=A.useMemo(()=>t,[t]),_=A.useMemo(()=>f==="Select",[f]),D=A.useMemo(()=>er.keys(b).map(Pe=>String(Pe)),[b]),[E,x]=A.useState(_&&D.length>0?D[0]:null),L=A.useCallback((Pe,je,ze)=>{if(!S)return;const We={...b};Pe.value=je,S(We),C(De=>De.map((Ae,_e)=>_e===(ze?ze+1:0)?"":Ae))},[b,S]),O=A.useMemo(()=>{let Pe=[],je=er.keys(b);_&&E&&(je=je.filter(ze=>ze===E));for(const ze of je)Pe.push({key:ze,def:e[ze],filter:b[ze]});return Pe},[b,e,_,E]),H=A.useMemo(()=>O.length>0?O[0]:null,[O]),q=A.useMemo(()=>R.length>0?R[0]:"",[R]),z=A.useMemo(()=>O.length>1?O.slice(1):[],[O]),K=A.useMemo(()=>R.length>1?R.slice(1):[],[R]),ue=A.useMemo(()=>z.length>0,[z]),[X,de]=A.useState(!1),[j,re]=A.useState(!1),J=A.useRef(null),Q=A.useCallback(()=>de(!1),[]),he=A.useRef(null),me=A.useCallback(()=>{re(!1),de(!0),he.current&&(document.removeEventListener("mousedown",he.current),he.current=null)},[]),be=A.useCallback(()=>{const Pe=je=>{const ze=document.getElementById("root"),We=je.target,De=J.current;!ze||!De||!We||!De.contains(We)&&ze.contains(We)&&me()};return he.current=Pe,Pe},[me]),ce=A.useCallback(()=>{de(!0),re(!0),setTimeout(()=>{const Pe=be();document.addEventListener("mousedown",Pe)},0)},[be]),ke=A.useMemo(()=>j?me:ce,[j,ce,me]),le=A.useCallback(()=>{const Pe=O.map((je,ze)=>je.filter.type==="String"&&je.filter.validation?je.filter.validation(je.filter.value||""):je.filter.type==="Date"&&je.filter.validation||je.filter.type==="DateRange"&&je.filter.validation?je.filter.validation(je.filter.value):R[ze]);C(Pe),Pe.every(je=>!je)&&i.apply()},[R,i,O]),oe=A.useCallback(Pe=>{Pe.key==="Enter"?(le(),Pe.stopPropagation()):Pe.key==="Escape"&&(re(!1),Pe.currentTarget.focus(),Pe.currentTarget.blur(),Pe.stopPropagation())},[le,re]),ve=A.useMemo(()=>({open:ce,close:me,toggle:ke,validate:le}),[ce,me,ke,le]),Oe=A.useCallback(()=>{le(),!R.some(je=>je)&&i.apply()},[le,R,i]),et=A.useCallback(()=>{i.clear()},[i]),we=A.useCallback(Pe=>{if(!S||!Pe)return;x(Pe);const je={...b};er.keys(je).forEach(ze=>{if(ze!==Pe&&je[ze])switch(je[ze].type){case"String":je[ze].value="";break;case"Select":je[ze].value=null;break;case"Date":je[ze].value=void 0;break;case"DateRange":je[ze].value=void 0;break}}),C([]),S(je),i.clear(),setTimeout(()=>{var We;const ze=(We=J.current)==null?void 0:We.querySelector("input");ze&&ze.focus()},0)},[b,S,C,i]);return H?v.jsxs(v.Fragment,{children:[_&&v.jsx(rc,{className:Fe.clsx(Er.SelectFilter),options:D,isAutoWidth:!0,useSelect:[E,we],type:"Secondary",OptionRenderer:({option:Pe})=>{const je=e[Pe];let ze;if(je!=null&&je.hContent){const We={defKey:Pe,def:je};ze=typeof je.hContent=="function"?je.hContent(We):je.hContent}else{const We=b[Pe],De=(je==null?void 0:je.name)||(We==null?void 0:We.placeholder)||String(Pe);ze=v.jsx("span",{children:De})}return ze}}),v.jsxs("div",{className:Fe.clsx(Er.Filter),ref:J,onKeyDown:oe,onClick:Pe=>{Pe.preventDefault(),Pe.stopPropagation()},style:{minWidth:l?u?180:void 0:180,maxWidth:l?u?300:void 0:300},tabIndex:-1,children:[v.jsx(fR,{filterSet:H,hasToggleFilteration:n,onChange:L,filterF:i,hasSubFilters:ue,popupF:ve,isOpen:j,resources:g,errorMessage:q,hasSelectFilterType:_,onSearchClick:Oe,placeholder:m}),!_&&v.jsx(dR,{subFilterSets:z,onChange:L,onClearClick:et,onSearchClick:Oe,isOpen:j,isTransitioning:X,onTransitionEnd:Q,resources:g,errorMessages:K,placeholder:m})]})]}):null},fR=r=>{var S,_,D,E;const{filterSet:e,hasToggleFilteration:t,hasSelectFilterType:n,onChange:i,filterF:l,hasSubFilters:u,popupF:f,isOpen:g,resources:m,errorMessage:R,onSearchClick:C,placeholder:b}=r;if(e.filter.type==="String"){const x=[e.filter.value??"",q=>i(e.filter,q)],{icon:L}=e.filter,O=e.filter.placeholder||b||((S=e.def)==null?void 0:S.name),H=e.filter.iconTooltip||O;return v.jsxs("div",{className:Fe.clsx(Er.MainFilter,g&&Er.IsOpen),children:[v.jsx(ya,{icon:L??"Type",tooltip:H,isOpen:g}),v.jsx(tc,{className:Fe.clsx(Er.Input,Er.Main),useValue:x,placeholder:O??m["Search(Placeholder)"],wrapProps:{style:{width:"100%",boxSizing:"border-box"}},LeftAddon:t&&v.jsx(Rd,{isOpen:g,filterF:l,popupF:f,resources:m}),RightAddon:v.jsx(Id,{hasSubFilters:u,popupF:f,isOpen:g,resources:m,errorMessage:R,hasSelectFilterType:n}),autoFocus:e.filter.autoFocus,maxLength:e.filter.maxLength,type:R?"Error":"Primary"})]})}else if(e.filter.type==="Select"){const x=[e.filter.value??null,q=>{i(e.filter,q),n&&setTimeout(()=>C(),0)}],{icon:L}=e.filter,O=e.filter.placeholder||b||((_=e.def)==null?void 0:_.name),H=e.filter.iconTooltip||O;return v.jsxs("div",{className:Fe.clsx(Er.MainFilter,g&&Er.IsOpen),children:[v.jsx(ya,{icon:L??"Menu",tooltip:H,isOpen:g}),v.jsx(rc,{className:Fe.clsx(Er.Input,Er.Main),options:e.filter.options,useSelect:x,placeholder:O,OptionRenderer:e.filter.OptionRenderer,SelectedRenderer:({OptionRenderer:q,selectedOption:z})=>z===null?O||e.filter.placeholder:v.jsxs(v.Fragment,{children:[t&&v.jsx(Rd,{isOpen:g,filterF:l,popupF:f,resources:m}),v.jsx(q,{option:z}),v.jsx(Id,{hasSubFilters:u,popupF:f,isOpen:g,resources:m,hideSearchButton:!0,hasSelectFilterType:n})]})})]})}else if(e.filter.type==="Date"){const x=[e.filter.value,q=>i(e.filter,q)],{icon:L}=e.filter,O=e.filter.placeholder||b||((D=e.def)==null?void 0:D.name),H=e.filter.iconTooltip||O;return v.jsxs("div",{className:Fe.clsx(Er.MainFilter,g&&Er.IsOpen),children:[v.jsx(ya,{icon:L??"CalendarDay",tooltip:H,isOpen:g}),v.jsx(mm,{type:"Raw",className:Fe.clsx(Er.DatePicker,Er.Input,Er.Main),useDate:x,minDate:e.filter.minDate,maxDate:e.filter.maxDate,placeholder:O,LeftAddon:v.jsxs(v.Fragment,{children:[t&&v.jsx(Rd,{isOpen:g,filterF:l,popupF:f,resources:m}),!t&&v.jsx(mn,{w:g?0:6}),v.jsx(ya,{icon:L??"CalendarDay",tooltip:H,isOpen:!g}),v.jsx(mn,{w:g?8:0})]}),RightAddon:v.jsx(Id,{hasSubFilters:u,popupF:f,isOpen:g,resources:m,hasSelectFilterType:n})})]})}else if(e.filter.type==="DateRange"){const x=[e.filter.value,z=>i(e.filter,z)],{noDefaultChoices:L}=e.filter,{icon:O}=e.filter,H=e.filter.placeholder||b||((E=e.def)==null?void 0:E.name),q=e.filter.iconTooltip||H;return v.jsxs("div",{className:Fe.clsx(Er.MainFilter,g&&Er.IsOpen),children:[v.jsx(ya,{icon:O??"CalendarDay",tooltip:q,isOpen:g}),v.jsx(pm,{type:"Raw",className:Fe.clsx(Er.DatePicker,Er.Input,Er.Main),useDateRange:x,minDate:e.filter.minDate,maxDate:e.filter.maxDate,placeholder:H,noDefaultChoices:L,LeftAddon:v.jsxs(v.Fragment,{children:[t&&v.jsx(Rd,{isOpen:g,filterF:l,popupF:f,resources:m}),!t&&v.jsx(mn,{w:g?0:6}),v.jsx(ya,{icon:O??"CalendarDay",tooltip:q,isOpen:!g}),v.jsx(mn,{w:g?8:0})]}),RightAddon:v.jsx(Id,{hasSubFilters:u,popupF:f,isOpen:g,resources:m,hasSelectFilterType:n})})]})}return null},Rd=r=>{const{filterF:e,popupF:t,resources:n,isOpen:i}=r;return v.jsx(_i,{type:"Raw",className:Er.Icon,icon:"Convert",tooltip:n["Toggle Filter"],onMouseDown:l=>l.currentTarget.classList.remove(Er.Rotate),style:{width:i?0:24,marginLeft:i?0:8},onClick:l=>{l.currentTarget.classList.add(Er.Rotate),e.toggle(),t.close(),l.stopPropagation()}})},Id=r=>{const{hasSubFilters:e,popupF:t,isOpen:n,resources:i,errorMessage:l,hideSearchButton:u,hasSelectFilterType:f}=r,g=A.useCallback(C=>{C.stopPropagation(),t.open()},[t]),m=A.useCallback(C=>{C.stopPropagation(),t.close()},[t]),R=A.useCallback(C=>{C.stopPropagation(),t.validate()},[t]);return v.jsxs(A.Fragment,{children:[l&&v.jsx(_i,{type:"Raw",className:Er.CircleAlertOutline,iconSize:"xs",icon:"CircleAlertOutline",tooltip:l}),e&&!f&&v.jsx(_i,{type:"Raw",className:Er.Icon,icon:"ListAdd",onClick:g,style:{opacity:+!n,visibility:+!n?"visible":"hidden",marginRight:-24,pointerEvents:n?"none":void 0}}),e&&!f&&v.jsx(_i,{type:"Raw",className:Er.Icon,icon:"ListRemove",onClick:m,style:{opacity:+n,visibility:+n?"visible":"hidden",marginRight:n?-24:0,pointerEvents:n?void 0:"none"}}),!u&&v.jsx(_i,{type:"Raw",className:Er.Icon,icon:"Search",tooltip:i["Search(Button)"],onClick:R,style:{opacity:+!n,visibility:+!n?"visible":"hidden",pointerEvents:n?"none":void 0,marginRight:4}})]})},dR=r=>{const{subFilterSets:e,onChange:t,onClearClick:n,onSearchClick:i,isOpen:l,isTransitioning:u,onTransitionEnd:f,resources:g,errorMessages:m,placeholder:R}=r;return!l&&!u?null:v.jsxs("div",{className:Er.SubFilters,onTransitionEnd:f,style:{opacity:+l,visibility:+l?"visible":"hidden"},children:[e.map((C,b)=>{var S,_,D,E;if(C.filter.type==="String"){const x=[C.filter.value??"",z=>t(C.filter,z,b)],L=m[b],{icon:O}=C.filter,H=C.filter.placeholder||R||((S=C.def)==null?void 0:S.name),q=C.filter.iconTooltip||H;return v.jsxs(Sn,{style:{marginBottom:6},children:[v.jsx(ya,{tooltip:q,icon:O??"Type"}),v.jsx(tc,{className:Fe.clsx(Er.Input,Er.Sub),wrapProps:{style:{width:"100%"}},useValue:x,placeholder:H??g["Search(Placeholder)"],type:L?"Error":"Secondary",RightAddon:L&&v.jsx(_i,{type:"Raw",className:Er.CircleAlertOutline,iconSize:"xs",icon:"CircleAlertOutline",tooltip:L}),autoFocus:C.filter.autoFocus,maxLength:C.filter.maxLength}),v.jsx(mn,{h:8})]},b)}else if(C.filter.type==="Select"){const x=[C.filter.value??null,q=>t(C.filter,q)],{icon:L}=C.filter,O=C.filter.placeholder||R||((_=C.def)==null?void 0:_.name),H=C.filter.iconTooltip||O;return v.jsxs(Sn,{style:{marginBottom:6},children:[v.jsx(ya,{tooltip:H,icon:L??"Menu"}),v.jsx(rc,{className:Fe.clsx(Er.Input,Er.Sub),options:C.filter.options,placeholder:O,OptionRenderer:C.filter.OptionRenderer,useSelect:x,arrowProps:{style:{marginRight:4}},type:"Secondary"}),v.jsx(mn,{h:8})]},b)}else if(C.filter.type==="Date"){const x=[C.filter.value,q=>t(C.filter,q)],{icon:L}=C.filter,O=C.filter.placeholder||R||((D=C.def)==null?void 0:D.name),H=C.filter.iconTooltip||O;return v.jsxs(Sn,{style:{marginBottom:6},children:[v.jsx(ya,{tooltip:H,icon:L??"CalendarDay"}),v.jsx(mm,{type:"Raw",LeftAddon:v.jsx(mn,{w:12}),placeholder:O,className:Fe.clsx(Er.DatePicker,Er.Input,Er.Sub),useDate:x,minDate:C.filter.minDate,maxDate:C.filter.maxDate}),v.jsx(mn,{h:8})]},b)}else if(C.filter.type==="DateRange"){const x=[C.filter.value,q=>t(C.filter,q)],{icon:L}=C.filter,O=C.filter.placeholder||R||((E=C.def)==null?void 0:E.name),H=C.filter.iconTooltip||O;return v.jsxs(Sn,{style:{marginBottom:6},children:[v.jsx(ya,{tooltip:H,icon:L??"CalendarDay"}),v.jsx(pm,{type:"Raw",LeftAddon:v.jsx(mn,{w:12}),className:Fe.clsx(Er.DatePicker,Er.Input,Er.Sub),useDateRange:x,placeholder:O,minDate:C.filter.minDate,maxDate:C.filter.maxDate})]},b)}else return null}),v.jsxs(Sn,{className:Er.Actions,children:[v.jsx(Fi,{type:"Secondary",onClick:n,children:g["Clear(Button)"]}),v.jsx(Fi,{onClick:i,children:g["Search(Button)"]})]})]})},ya=r=>{const{icon:e,tooltip:t,isOpen:n=!0}=r;return v.jsx(_i,{type:"Raw",className:Er.LeftIcon,tooltip:t,icon:e,style:{width:n?24:0,marginRight:n?4:0,opacity:+n}})},hR="_ATableHeader_1hzfz_1",pR="_LeftHeaderContent_1hzfz_11",gR="_RightHeaderContent_1hzfz_19",mR="_TopRightAddon_1hzfz_27",vR="_HItem_1hzfz_32",Vc={ATableHeader:hR,LeftHeaderContent:pR,RightHeaderContent:gR,TopRightAddon:mR,HItem:vR},yR=r=>{const{defs:e,title:t,totalCount:n,useCheck:i,useFilteration:l,hasToggleFilteration:u,filterF:f,noFilter:g,noCount:m,isFiltered:R,TopLeftAddon:C,TopRightAddon:b,useSortation:S,resources:_=hn.ATable,filterType:D,placeholder:E}=r,[x]=A.useMemo(()=>i||[],[i]),L=A.useMemo(()=>R?_["Searched n items"](n):_["Total n items"](n),[_,R,n]),[O]=l,[H,q]=S,[z,K]=A.useState(!1),ue=A.useMemo(()=>{const be=er.values(O).filter(le=>le.type==="DateRange"),ce=er.keys(O).filter(le=>be.includes(O[le])),ke=er.keys(e).filter(le=>e[le].isSortable);return ce.length>0?(ce.length>1&&K(!0),ke.map(oe=>ce.includes(oe)?[oe+"_Asc",oe+"_Desc"]:oe).flat()):ke},[e,O]),X=A.useMemo(()=>r.isRowRendered&&ue.length>0,[ue.length,r.isRowRendered]),de=A.useCallback((be,ce)=>{q&&(H==null?void 0:H.defKey)===be&&(H.isAsc===!0?q({defKey:be,isAsc:!1,sortF:ce}):q({defKey:be,isAsc:!0,sortF:ce}))},[H,q]),j=A.useRef(),[re,J]=A.useState(),[Q,he]=A.useState(H?H.defKey:ue[0]),me=A.useMemo(()=>{if(!re)return{};const be=e[re];return{SortUp:{onClick:()=>{q==null||q({defKey:re,isAsc:!0,sortF:be.sortF}),he(re)},content:()=>_["Sort up"]},SortDown:{onClick:()=>{q==null||q({defKey:re,isAsc:!1,sortF:be.sortF}),he(re)},content:()=>_["Sort down"]}}},[q,re,e,_]);return v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:Fe.clsx(Vc.ATableHeader),children:[v.jsxs("div",{className:Fe.clsx(Vc.LeftHeaderContent,"NoSelect"),children:[v.jsxs(Sn,{style:{marginBottom:X?8:0},children:[C&&v.jsx("div",{className:Fe.clsx(Vc.HItem),children:C}),t&&v.jsx("div",{className:Fe.clsx(Vc.HItem),style:{whiteSpace:"nowrap"},children:t}),!m&&v.jsxs("div",{className:Fe.clsx(Vc.HItem),style:{maxHeight:14,...X&&{minHeight:14,color:"var(--label-neutral)"}},children:[L,x&&x.length>0&&v.jsxs(v.Fragment,{children:[" / ",_["Checked n items"](x.length)]})]})]}),X&&v.jsx(q2,{type:"Tertiary",options:ue,useSelect:[Q,()=>{}],optionWidth:"fit-content",tabProps:{style:{marginRight:8}},optionProps:{style:{cursor:"default"},onClick:be=>{var le;const ce=be.currentTarget.textContent;if(ce===_[ce])return;be.currentTarget.querySelector("svg")===null&&((le=j.current)==null||le.open(be.currentTarget))}},OptionRenderer:be=>{const ce=/_Asc|_Desc/.test(be.option),ke=(H==null?void 0:H.defKey)===be.option,le=Q===be.option,oe=H==null?void 0:H.isAsc,ve=()=>{if(ce){J(void 0),he(be.option);const[we,Pe]=be.option.split("_"),je=Pe==="Asc";q==null||q({defKey:we,isAsc:je,sortF:e[we].sortF})}else le?de(be.option,e[be.option].sortF):J(be.option)},et=ce?(we=>{const[Pe,je]=we.split("_");return(z?Pe+" ":"")+_[je]})(be.option):_["Sort by x"](be.option);return v.jsxs(Sn,{style:{height:"100%"},className:Fe.clsx(!(ce&&le)&&"IsClickable"),onClick:ve,children:[et,le&&!ce&&v.jsx(jr,{style:{marginRight:-5,marginLeft:4},icon:ke?oe?"RowSortUp":"RowSortDown":"RowSortBoth"})]},be.option)}})]}),v.jsx(Qc,{}),v.jsxs("div",{className:Fe.clsx(Vc.RightHeaderContent,"NoSelect"),children:[!g&&v.jsx(uR,{defs:e,useFilteration:l,hasToggleFilteration:u,filterF:f,isRowRendered:r.isRowRendered,isFilterSort:ue.length>0,resources:_,filterType:D,placeholder:E}),b&&v.jsx(Sn,{className:Fe.clsx(Vc.TopRightAddon),children:b})]})]}),v.jsx(j2,{defs:me,actionRef:j,onClose:()=>J(void 0),width:100,position:ef.S})]})},bR=r=>{const{defs:e,pk:t,defaultDef:n,rProps:i,useSelect:l,isSelectMulti:u,selectDisabled:f,useCheck:g,checkDisabled:m,isLoading:R,isDisabled:C,title:b,entireItems:S,onStateChange:_,pagedItems:D,totalCount:E,useFilteration:x,useToggleFilteration:L,filterType:O="Default",placeholder:H,usePagination:q,useSortation:z,showRows:K,noHeader:ue,noDefHeader:X,noFooter:de,noFilter:j,noCount:re,noMarking:J,noStateChangeOnMount:Q,TopLeftAddon:he,TopRightAddon:me,actionRef:be,RowRenderer:ce,resources:ke}=r,le=A.useMemo(()=>({...hn.ATable,...ke}),[ke]),oe=A.useCallback((pe,Be)=>t!==void 0?Array.isArray(t)?t.every(ot=>nl.isEqual(pe[ot],Be[ot])):nl.isEqual(pe[t],Be[t]):nl.isEqual(pe,Be),[t]),ve=A.useMemo(()=>({content:_R,...n}),[n]),Oe=A.useMemo(()=>{const pe={};return er.keys(e).forEach(Be=>{const ot=e[Be],Ot={...ve,...ot};pe[Be]=Ot}),pe},[ve,e]),[et,we]=nn(nl.cloneDeep(x),{"":{type:"String",placeholder:le["Search(Placeholder)"],value:""}}),[Pe,je]=nn(nl.cloneDeep(L),void 0),[ze,We]=A.useState(!1),[De,Ae]=A.useMemo(()=>ze&&Pe?[Pe,je]:[et,we],[et,ze,we,je,Pe]),[_e,Ge]=A.useState(De),lt=A.useMemo(()=>S?tl.applyFilteration(S,Oe,_e):[],[S,Oe,_e]),$e=A.useMemo(()=>{for(const pe in _e){const Be=_e[pe];if(Be.value!==void 0&&Be.value!==null&&Be.value!=="")return!0}return!1},[_e]),[ht,Le]=nn(z,void 0),Xe=A.useMemo(()=>tl.applySortation(lt,Oe,ht),[lt,Oe,ht]),it=A.useMemo(()=>{if(D!==void 0)return tl.applySortation(D,Oe,ht)},[D,Oe,ht]),[Ct,_t]=nn(q,{page:1,pageSize:50,pageRange:10}),wt=A.useMemo(()=>({pageSize:50,page:1,pageRange:10,...Ct}),[Ct]),{pagedItems:bt,totalCount:St,pagination:Me}=A.useMemo(()=>{const pe={...wt};if(it!==void 0){let Be=E??it.length;const ot=tl.getPages(Be,pe.pageSize);return pe.page>ot.length?pe.page=ot.length:pe.page<1&&(pe.page=1),{pagedItems:it,totalCount:Be,pagination:pe}}else if(S!==void 0){const Be=E??Xe.length,ot=tl.getPages(Be,pe.pageSize);return pe.page>ot.length?pe.page=ot.length:pe.page<1&&(pe.page=1),{pagedItems:tl.applyPagination(Xe,pe.page,pe.pageSize),totalCount:Be,pagination:pe}}else return{pagedItems:[],totalCount:E??0,pagination:wt}},[S,it,E,wt,Xe]),{pages:pt,rangedPages:Et}=A.useMemo(()=>tl.getRangedPages(Me.page,St,Me.pageSize,Me.pageRange),[St,Me.pageSize,Me.page,Me.pageRange]),[mt,Dt]=A.useMemo(()=>g??[],[g]),Ze=A.useMemo(()=>bt.filter(pe=>mt==null?void 0:mt.some(Be=>oe(Be,pe))),[bt,mt,oe]),At=A.useMemo(()=>bt.filter(pe=>!(m!=null&&m(pe))),[bt,m]),jt=A.useMemo(()=>At.length>0&&At.every(pe=>Ze.some(Be=>oe(Be,pe))),[Ze,At,oe]),mr=A.useMemo(()=>jt?!1:At.some(pe=>Ze.some(Be=>oe(Be,pe))),[Ze,At,jt,oe]),kr=A.useCallback(()=>{!mt||!Dt||C||Dt(jt||mr?mt.filter(pe=>!At.some(Be=>oe(Be,pe))):[...mt,...At])},[mt,Dt,jt,mr,At,C,oe]),Cr=A.useCallback(pe=>{!mt||!Dt||C||(mt.some(Be=>oe(Be,pe))?Dt(mt.filter(Be=>!oe(Be,pe))):Dt([...mt,pe]))},[mt,Dt,C,oe]);A.useEffect(()=>{if(!Dt||!mt||!m)return;mt.filter(Be=>m(Be)).length>0&&Dt(mt.filter(Be=>!m(Be)))},[m,mt,Dt]);const ge=A.useMemo(()=>({hContent:mt&&v.jsx(Zu,{useCheck:[jt,kr],isIndeterminate:mr}),content:pe=>{const{item:Be}=pe,ot=m==null?void 0:m(Be),Ot=typeof ot=="string"?ot:void 0,$t=mt==null?void 0:mt.some(kt=>oe(kt,Be));return v.jsx(Zu,{style:{zIndex:1},isDisabled:ot,tooltip:Ot,onClick:kt=>kt.stopPropagation(),useCheck:[$t,()=>Cr(Be)]})},minWidth:32,maxWidth:32}),[mt,jt,mr,oe,kr,m,Cr]),ne=A.useMemo(()=>g?{checkDef:ge,...Oe}:Oe,[Oe,ge,g]),[Je,ct]=A.useState(!1),tt=A.useMemo(()=>R??Je,[R,Je]),Re=A.useCallback(async pe=>{_&&(ct(!0),await _(pe),ct(!1)),_t==null||_t(pe.pagination),Le==null||Le(pe.sortation),Ge(pe.filteration)},[_,_t,Le]);A.useEffect(()=>{if(!be)return;const pe=ot=>{const Ot={entireItems:S,filteration:De,pagination:Me,sortation:ht},$t=ot?ot(Ot):Ot;Re($t)},Be=ot=>{const Ot={...Me,page:1},$t=ot?ot(De):De;Re({entireItems:S,filteration:$t,pagination:Ot,sortation:ht}),Ae==null||Ae($t)};be.current={fireOnStateChange:pe,applyFilteration:Be}},[be,Re,S,Ae,De,Me,ht]);const xt=A.useCallback(pe=>{pe.page===Me.page&&pe.pageSize===Me.pageSize||(pe.page<1?pe.page=1:pe.page>pt[pt.length-1]&&(pe.page=pt[pt.length-1]),Re({entireItems:S,filteration:_e,pagination:pe,sortation:ht}))},[Me,pt,Re,S,_e,ht]),Rt=A.useCallback(pe=>{Ae&&Ae(pe)},[Ae]),vt=A.useCallback(pe=>{Re({entireItems:S,filteration:_e,pagination:Me,sortation:pe})},[Re,S,_e,Me]),Mt=A.useCallback(pe=>{xt({...Me,page:pe})},[xt,Me]),Qt=A.useCallback(()=>{Mt(Me.page-1)},[Mt,Me.page]),rr=A.useCallback(()=>{Mt(Me.page+1)},[Mt,Me.page]),Bt=A.useCallback(()=>{Mt(1)},[Mt]),qt=A.useCallback(()=>{Mt(pt[pt.length-1])},[Mt,pt]),sr=A.useMemo(()=>({move:Mt,movePrev:Qt,moveNext:rr,moveFirst:Bt,moveLast:qt}),[Mt,Qt,rr,Bt,qt]),Qe=A.useCallback(()=>{const pe={...Me,page:1};Re({entireItems:S,filteration:De,pagination:pe,sortation:ht})},[De,Me,Re,S,ht]),Tt=A.useCallback(()=>{We(!ze)},[ze]),yt=A.useCallback(()=>{ze&&Pe?je==null||je(a0(Pe)):Ae==null||Ae(a0(et))},[ze,Pe,je,et,Ae]),Lt=A.useMemo(()=>({apply:Qe,toggle:Tt,clear:yt}),[Qe,Tt,yt]);z2(()=>{Q||Re({entireItems:S,filteration:De,pagination:Me,sortation:ht})});const vr=A.useMemo(()=>er.map(Oe,([Be])=>Oe[Be].minWidth??Yl).reduce((Be,ot)=>Be+ot,0),[Oe]),Y=A.useMemo(()=>ce!==void 0,[ce]);return v.jsxs($r,{className:x8.ATable,isDisabled:C,style:{minWidth:vr},children:[!ue&&v.jsx(yR,{defs:Oe,title:b,totalCount:St,useCheck:g&&mt?[mt,Dt]:void 0,useFilteration:[De,Rt],useSortation:[ht,vt],isRowRendered:Y,hasToggleFilteration:Pe!==void 0,filterF:Lt,noFilter:j,noCount:re,isFiltered:$e,TopLeftAddon:he,TopRightAddon:me,resources:le,filterType:O,placeholder:H}),v.jsx(q8,{defs:ne,isEqual:oe,rProps:i,useSelect:l,isSelectMulti:u,selectDisabled:f,isTableDisabled:C,appliedFilteration:_e,useSortation:[ht,vt],pagination:Me,pagedItems:bt,showRows:K,isLoading:tt,noMarking:J,noDefHeader:X,resources:le,RowRenderer:ce,isRowRendered:Y}),!de&&v.jsx(K8,{pages:pt,rangedPages:Et,pageF:sr,pagination:Me})]})},_R=r=>{const{defKey:e,item:t}=r;if(er.hasKey(t,e)){const n=t[e];return er.isReactNode(n)?n:null}else return null};function a0(r){const e={...r};for(const t in e)e[t].value=void 0;return e}const xR="_AText_1asz6_1",SR={AText:xR},V2=r=>{const{text:e,styled:t,style:n}=r,i=A.useMemo(()=>{if(e)if(t)if(n){if(t===!0)return n==="bold"?v.jsx("b",{children:e}):v.jsx("span",{style:n,children:e});if(typeof t=="string"){const l=e.split(t);return n==="bold"?l.map((u,f)=>v.jsxs(A.Fragment,{children:[Ld(u),f<l.length-1?v.jsx("b",{children:Ld(t)}):""]},f)):l.map((u,f)=>v.jsxs(A.Fragment,{children:[Ld(u),f<l.length-1&&v.jsx("span",{style:n,children:Ld(t)})]},f))}}else return e;else return e;else return""},[e,n,t]);return v.jsx("div",{className:Fe.clsx("Body1Reading",SR.AText,"NoSelect"),children:i})};function Ld(r){const e=r.split(`
|
162
|
+
`);return e.map((t,n)=>v.jsxs(A.Fragment,{children:[t,n!==e.length-1&&v.jsx("br",{})]},n))}const CR="_Base_sw5fu_7",wR="_ATextArea_sw5fu_11",AR="_Primary_sw5fu_34",TR="_UnAvailable_sw5fu_39",ER="_Secondary_sw5fu_47",kR="_ReadOnly_sw5fu_59",Md={Base:CR,ATextArea:wR,Primary:AR,UnAvailable:TR,Secondary:ER,ReadOnly:kR,Error:"_Error_sw5fu_66"},RR=["Primary","Secondary","ReadOnly","Error"],IR=r=>{const{onEnterPress:e,errorMessage:t,type:n="Primary",textAreaRef:i,useValue:l,rows:u,isReadonly:f,placeholder:g,maxLength:m,tabIndex:R,autoFocus:C,textAreaProps:b,wrapProps:S,helperText:_,label:D,wrapType:E,labelProps:x,...L}=r,O=A.useMemo(()=>LR(t)?"Error":n,[t,n]),H=A.useMemo(()=>O==="ReadOnly"?!0:f,[O,f]),q=A.useMemo(()=>L.isDisabled||L.isLoading,[L.isDisabled,L.isLoading]),[z,K]=nn(l,""),ue=A.useCallback(j=>{K&&K(j)},[K]),X=A.useCallback(j=>{var re;q||(ue(j.target.value),(re=b==null?void 0:b.onChange)==null||re.call(b,j))},[q,ue,b]),de=A.useCallback(j=>{var re;if(!q){if((re=b==null?void 0:b.onKeyDown)==null||re.call(b,j),j.key==="Tab"){const J=j.currentTarget.selectionStart,Q=j.currentTarget.selectionEnd;j.currentTarget.value=j.currentTarget.value.substring(0,J)+" "+j.currentTarget.value.substring(Q),j.currentTarget.selectionStart=j.currentTarget.selectionEnd=J+1,j.preventDefault()}else j.key==="Enter"&&(e==null||e(j.currentTarget.value),j.stopPropagation());j.key!=="Escape"&&j.stopPropagation()}},[q,e,b]);return v.jsx(ec,{wrapProps:S,label:D,helperText:_,errorMessage:t,labelProps:x,wrapType:E??O==="Error"?"Error":"Default",children:v.jsx($r,{...L,className:Fe.clsx(Md.Base,L.className),children:v.jsx("textarea",{...b,className:Fe.clsx(Md.ATextArea,Md[O],q&&Md.UnAvailable,b==null?void 0:b.className),value:z,rows:u,readOnly:H,onChange:X,onKeyDown:de,placeholder:g,maxLength:m,tabIndex:L.isDisabled||L.isLoading?-1:R,autoFocus:C,ref:i})})})};function LR(r){return Array.isArray(r)?r.filter(Boolean).length>0:!!r}var G2=typeof global=="object"&&global&&global.Object===Object&&global,MR=typeof self=="object"&&self&&self.Object===Object&&self,Aa=G2||MR||Function("return this")(),nc=Aa.Symbol,Z2=Object.prototype,DR=Z2.hasOwnProperty,OR=Z2.toString,Mf=nc?nc.toStringTag:void 0;function PR(r){var e=DR.call(r,Mf),t=r[Mf];try{r[Mf]=void 0;var n=!0}catch{}var i=OR.call(r);return n&&(e?r[Mf]=t:delete r[Mf]),i}var NR=Object.prototype,FR=NR.toString;function jR(r){return FR.call(r)}var BR="[object Null]",HR="[object Undefined]",l0=nc?nc.toStringTag:void 0;function tf(r){return r==null?r===void 0?HR:BR:l0&&l0 in Object(r)?PR(r):jR(r)}function il(r){return r!=null&&typeof r=="object"}var Yc=Array.isArray;function ic(r){var e=typeof r;return r!=null&&(e=="object"||e=="function")}function K2(r){return r}var qR="[object AsyncFunction]",zR="[object Function]",$R="[object GeneratorFunction]",UR="[object Proxy]";function ym(r){if(!ic(r))return!1;var e=tf(r);return e==zR||e==$R||e==qR||e==UR}var Qh=Aa["__core-js_shared__"],c0=function(){var r=/[^.]+$/.exec(Qh&&Qh.keys&&Qh.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function WR(r){return!!c0&&c0 in r}var VR=Function.prototype,GR=VR.toString;function eu(r){if(r!=null){try{return GR.call(r)}catch{}try{return r+""}catch{}}return""}var ZR=/[\\^$.*+?()[\]{}|]/g,KR=/^\[object .+?Constructor\]$/,YR=Function.prototype,XR=Object.prototype,JR=YR.toString,QR=XR.hasOwnProperty,e9=RegExp("^"+JR.call(QR).replace(ZR,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function t9(r){if(!ic(r)||WR(r))return!1;var e=ym(r)?e9:KR;return e.test(eu(r))}function r9(r,e){return r==null?void 0:r[e]}function tu(r,e){var t=r9(r,e);return t9(t)?t:void 0}var B1=tu(Aa,"WeakMap"),u0=Object.create,n9=function(){function r(){}return function(e){if(!ic(e))return{};if(u0)return u0(e);r.prototype=e;var t=new r;return r.prototype=void 0,t}}();function i9(r,e,t){switch(t.length){case 0:return r.call(e);case 1:return r.call(e,t[0]);case 2:return r.call(e,t[0],t[1]);case 3:return r.call(e,t[0],t[1],t[2])}return r.apply(e,t)}function Y2(r,e){var t=-1,n=r.length;for(e||(e=Array(n));++t<n;)e[t]=r[t];return e}var o9=800,s9=16,a9=Date.now;function l9(r){var e=0,t=0;return function(){var n=a9(),i=s9-(n-t);if(t=n,i>0){if(++e>=o9)return arguments[0]}else e=0;return r.apply(void 0,arguments)}}function c9(r){return function(){return r}}var Qd=function(){try{var r=tu(Object,"defineProperty");return r({},"",{}),r}catch{}}(),u9=Qd?function(r,e){return Qd(r,"toString",{configurable:!0,enumerable:!1,value:c9(e),writable:!0})}:K2,f9=l9(u9);function d9(r,e){for(var t=-1,n=r==null?0:r.length;++t<n&&e(r[t],t,r)!==!1;);return r}var h9=9007199254740991,p9=/^(?:0|[1-9]\d*)$/;function X2(r,e){var t=typeof r;return e=e??h9,!!e&&(t=="number"||t!="symbol"&&p9.test(r))&&r>-1&&r%1==0&&r<e}function bm(r,e,t){e=="__proto__"&&Qd?Qd(r,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):r[e]=t}function nd(r,e){return r===e||r!==r&&e!==e}var g9=Object.prototype,m9=g9.hasOwnProperty;function J2(r,e,t){var n=r[e];(!(m9.call(r,e)&&nd(n,t))||t===void 0&&!(e in r))&&bm(r,e,t)}function id(r,e,t,n){var i=!t;t||(t={});for(var l=-1,u=e.length;++l<u;){var f=e[l],g=void 0;g===void 0&&(g=r[f]),i?bm(t,f,g):J2(t,f,g)}return t}var f0=Math.max;function v9(r,e,t){return e=f0(e===void 0?r.length-1:e,0),function(){for(var n=arguments,i=-1,l=f0(n.length-e,0),u=Array(l);++i<l;)u[i]=n[e+i];i=-1;for(var f=Array(e+1);++i<e;)f[i]=n[i];return f[e]=t(u),i9(r,this,f)}}function y9(r,e){return f9(v9(r,e,K2),r+"")}var b9=9007199254740991;function Q2(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=b9}function ch(r){return r!=null&&Q2(r.length)&&!ym(r)}function _9(r,e,t){if(!ic(t))return!1;var n=typeof e;return(n=="number"?ch(t)&&X2(e,t.length):n=="string"&&e in t)?nd(t[e],r):!1}function x9(r){return y9(function(e,t){var n=-1,i=t.length,l=i>1?t[i-1]:void 0,u=i>2?t[2]:void 0;for(l=r.length>3&&typeof l=="function"?(i--,l):void 0,u&&_9(t[0],t[1],u)&&(l=i<3?void 0:l,i=1),e=Object(e);++n<i;){var f=t[n];f&&r(e,f,n,l)}return e})}var S9=Object.prototype;function _m(r){var e=r&&r.constructor,t=typeof e=="function"&&e.prototype||S9;return r===t}function C9(r,e){for(var t=-1,n=Array(r);++t<r;)n[t]=e(t);return n}var w9="[object Arguments]";function d0(r){return il(r)&&tf(r)==w9}var ex=Object.prototype,A9=ex.hasOwnProperty,T9=ex.propertyIsEnumerable,H1=d0(function(){return arguments}())?d0:function(r){return il(r)&&A9.call(r,"callee")&&!T9.call(r,"callee")};function E9(){return!1}var tx=typeof exports=="object"&&exports&&!exports.nodeType&&exports,h0=tx&&typeof module=="object"&&module&&!module.nodeType&&module,k9=h0&&h0.exports===tx,p0=k9?Aa.Buffer:void 0,R9=p0?p0.isBuffer:void 0,Yf=R9||E9,I9="[object Arguments]",L9="[object Array]",M9="[object Boolean]",D9="[object Date]",O9="[object Error]",P9="[object Function]",N9="[object Map]",F9="[object Number]",j9="[object Object]",B9="[object RegExp]",H9="[object Set]",q9="[object String]",z9="[object WeakMap]",$9="[object ArrayBuffer]",U9="[object DataView]",W9="[object Float32Array]",V9="[object Float64Array]",G9="[object Int8Array]",Z9="[object Int16Array]",K9="[object Int32Array]",Y9="[object Uint8Array]",X9="[object Uint8ClampedArray]",J9="[object Uint16Array]",Q9="[object Uint32Array]",xn={};xn[W9]=xn[V9]=xn[G9]=xn[Z9]=xn[K9]=xn[Y9]=xn[X9]=xn[J9]=xn[Q9]=!0;xn[I9]=xn[L9]=xn[$9]=xn[M9]=xn[U9]=xn[D9]=xn[O9]=xn[P9]=xn[N9]=xn[F9]=xn[j9]=xn[B9]=xn[H9]=xn[q9]=xn[z9]=!1;function e7(r){return il(r)&&Q2(r.length)&&!!xn[tf(r)]}function xm(r){return function(e){return r(e)}}var rx=typeof exports=="object"&&exports&&!exports.nodeType&&exports,$f=rx&&typeof module=="object"&&module&&!module.nodeType&&module,t7=$f&&$f.exports===rx,ep=t7&&G2.process,Ku=function(){try{var r=$f&&$f.require&&$f.require("util").types;return r||ep&&ep.binding&&ep.binding("util")}catch{}}(),g0=Ku&&Ku.isTypedArray,Sm=g0?xm(g0):e7,r7=Object.prototype,n7=r7.hasOwnProperty;function nx(r,e){var t=Yc(r),n=!t&&H1(r),i=!t&&!n&&Yf(r),l=!t&&!n&&!i&&Sm(r),u=t||n||i||l,f=u?C9(r.length,String):[],g=f.length;for(var m in r)(e||n7.call(r,m))&&!(u&&(m=="length"||i&&(m=="offset"||m=="parent")||l&&(m=="buffer"||m=="byteLength"||m=="byteOffset")||X2(m,g)))&&f.push(m);return f}function ix(r,e){return function(t){return r(e(t))}}var i7=ix(Object.keys,Object),o7=Object.prototype,s7=o7.hasOwnProperty;function a7(r){if(!_m(r))return i7(r);var e=[];for(var t in Object(r))s7.call(r,t)&&t!="constructor"&&e.push(t);return e}function Cm(r){return ch(r)?nx(r):a7(r)}function l7(r){var e=[];if(r!=null)for(var t in Object(r))e.push(t);return e}var c7=Object.prototype,u7=c7.hasOwnProperty;function f7(r){if(!ic(r))return l7(r);var e=_m(r),t=[];for(var n in r)n=="constructor"&&(e||!u7.call(r,n))||t.push(n);return t}function od(r){return ch(r)?nx(r,!0):f7(r)}var Xf=tu(Object,"create");function d7(){this.__data__=Xf?Xf(null):{},this.size=0}function h7(r){var e=this.has(r)&&delete this.__data__[r];return this.size-=e?1:0,e}var p7="__lodash_hash_undefined__",g7=Object.prototype,m7=g7.hasOwnProperty;function v7(r){var e=this.__data__;if(Xf){var t=e[r];return t===p7?void 0:t}return m7.call(e,r)?e[r]:void 0}var y7=Object.prototype,b7=y7.hasOwnProperty;function _7(r){var e=this.__data__;return Xf?e[r]!==void 0:b7.call(e,r)}var x7="__lodash_hash_undefined__";function S7(r,e){var t=this.__data__;return this.size+=this.has(r)?0:1,t[r]=Xf&&e===void 0?x7:e,this}function Xc(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var n=r[e];this.set(n[0],n[1])}}Xc.prototype.clear=d7;Xc.prototype.delete=h7;Xc.prototype.get=v7;Xc.prototype.has=_7;Xc.prototype.set=S7;function C7(){this.__data__=[],this.size=0}function uh(r,e){for(var t=r.length;t--;)if(nd(r[t][0],e))return t;return-1}var w7=Array.prototype,A7=w7.splice;function T7(r){var e=this.__data__,t=uh(e,r);if(t<0)return!1;var n=e.length-1;return t==n?e.pop():A7.call(e,t,1),--this.size,!0}function E7(r){var e=this.__data__,t=uh(e,r);return t<0?void 0:e[t][1]}function k7(r){return uh(this.__data__,r)>-1}function R7(r,e){var t=this.__data__,n=uh(t,r);return n<0?(++this.size,t.push([r,e])):t[n][1]=e,this}function ll(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var n=r[e];this.set(n[0],n[1])}}ll.prototype.clear=C7;ll.prototype.delete=T7;ll.prototype.get=E7;ll.prototype.has=k7;ll.prototype.set=R7;var Jf=tu(Aa,"Map");function I7(){this.size=0,this.__data__={hash:new Xc,map:new(Jf||ll),string:new Xc}}function L7(r){var e=typeof r;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?r!=="__proto__":r===null}function fh(r,e){var t=r.__data__;return L7(e)?t[typeof e=="string"?"string":"hash"]:t.map}function M7(r){var e=fh(this,r).delete(r);return this.size-=e?1:0,e}function D7(r){return fh(this,r).get(r)}function O7(r){return fh(this,r).has(r)}function P7(r,e){var t=fh(this,r),n=t.size;return t.set(r,e),this.size+=t.size==n?0:1,this}function ru(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var n=r[e];this.set(n[0],n[1])}}ru.prototype.clear=I7;ru.prototype.delete=M7;ru.prototype.get=D7;ru.prototype.has=O7;ru.prototype.set=P7;function ox(r,e){for(var t=-1,n=e.length,i=r.length;++t<n;)r[i+t]=e[t];return r}var wm=ix(Object.getPrototypeOf,Object),N7="[object Object]",F7=Function.prototype,j7=Object.prototype,sx=F7.toString,B7=j7.hasOwnProperty,H7=sx.call(Object);function q7(r){if(!il(r)||tf(r)!=N7)return!1;var e=wm(r);if(e===null)return!0;var t=B7.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&sx.call(t)==H7}function z7(){this.__data__=new ll,this.size=0}function $7(r){var e=this.__data__,t=e.delete(r);return this.size=e.size,t}function U7(r){return this.__data__.get(r)}function W7(r){return this.__data__.has(r)}var V7=200;function G7(r,e){var t=this.__data__;if(t instanceof ll){var n=t.__data__;if(!Jf||n.length<V7-1)return n.push([r,e]),this.size=++t.size,this;t=this.__data__=new ru(n)}return t.set(r,e),this.size=t.size,this}function _a(r){var e=this.__data__=new ll(r);this.size=e.size}_a.prototype.clear=z7;_a.prototype.delete=$7;_a.prototype.get=U7;_a.prototype.has=W7;_a.prototype.set=G7;function Z7(r,e){return r&&id(e,Cm(e),r)}function K7(r,e){return r&&id(e,od(e),r)}var ax=typeof exports=="object"&&exports&&!exports.nodeType&&exports,m0=ax&&typeof module=="object"&&module&&!module.nodeType&&module,Y7=m0&&m0.exports===ax,v0=Y7?Aa.Buffer:void 0,y0=v0?v0.allocUnsafe:void 0;function lx(r,e){if(e)return r.slice();var t=r.length,n=y0?y0(t):new r.constructor(t);return r.copy(n),n}function X7(r,e){for(var t=-1,n=r==null?0:r.length,i=0,l=[];++t<n;){var u=r[t];e(u,t,r)&&(l[i++]=u)}return l}function cx(){return[]}var J7=Object.prototype,Q7=J7.propertyIsEnumerable,b0=Object.getOwnPropertySymbols,Am=b0?function(r){return r==null?[]:(r=Object(r),X7(b0(r),function(e){return Q7.call(r,e)}))}:cx;function eI(r,e){return id(r,Am(r),e)}var tI=Object.getOwnPropertySymbols,ux=tI?function(r){for(var e=[];r;)ox(e,Am(r)),r=wm(r);return e}:cx;function rI(r,e){return id(r,ux(r),e)}function fx(r,e,t){var n=e(r);return Yc(r)?n:ox(n,t(r))}function q1(r){return fx(r,Cm,Am)}function nI(r){return fx(r,od,ux)}var z1=tu(Aa,"DataView"),$1=tu(Aa,"Promise"),U1=tu(Aa,"Set"),_0="[object Map]",iI="[object Object]",x0="[object Promise]",S0="[object Set]",C0="[object WeakMap]",w0="[object DataView]",oI=eu(z1),sI=eu(Jf),aI=eu($1),lI=eu(U1),cI=eu(B1),Fs=tf;(z1&&Fs(new z1(new ArrayBuffer(1)))!=w0||Jf&&Fs(new Jf)!=_0||$1&&Fs($1.resolve())!=x0||U1&&Fs(new U1)!=S0||B1&&Fs(new B1)!=C0)&&(Fs=function(r){var e=tf(r),t=e==iI?r.constructor:void 0,n=t?eu(t):"";if(n)switch(n){case oI:return w0;case sI:return _0;case aI:return x0;case lI:return S0;case cI:return C0}return e});var uI=Object.prototype,fI=uI.hasOwnProperty;function dI(r){var e=r.length,t=new r.constructor(e);return e&&typeof r[0]=="string"&&fI.call(r,"index")&&(t.index=r.index,t.input=r.input),t}var eh=Aa.Uint8Array;function Tm(r){var e=new r.constructor(r.byteLength);return new eh(e).set(new eh(r)),e}function hI(r,e){var t=e?Tm(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.byteLength)}var pI=/\w*$/;function gI(r){var e=new r.constructor(r.source,pI.exec(r));return e.lastIndex=r.lastIndex,e}var A0=nc?nc.prototype:void 0,T0=A0?A0.valueOf:void 0;function mI(r){return T0?Object(T0.call(r)):{}}function dx(r,e){var t=e?Tm(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.length)}var vI="[object Boolean]",yI="[object Date]",bI="[object Map]",_I="[object Number]",xI="[object RegExp]",SI="[object Set]",CI="[object String]",wI="[object Symbol]",AI="[object ArrayBuffer]",TI="[object DataView]",EI="[object Float32Array]",kI="[object Float64Array]",RI="[object Int8Array]",II="[object Int16Array]",LI="[object Int32Array]",MI="[object Uint8Array]",DI="[object Uint8ClampedArray]",OI="[object Uint16Array]",PI="[object Uint32Array]";function NI(r,e,t){var n=r.constructor;switch(e){case AI:return Tm(r);case vI:case yI:return new n(+r);case TI:return hI(r,t);case EI:case kI:case RI:case II:case LI:case MI:case DI:case OI:case PI:return dx(r,t);case bI:return new n;case _I:case CI:return new n(r);case xI:return gI(r);case SI:return new n;case wI:return mI(r)}}function hx(r){return typeof r.constructor=="function"&&!_m(r)?n9(wm(r)):{}}var FI="[object Map]";function jI(r){return il(r)&&Fs(r)==FI}var E0=Ku&&Ku.isMap,BI=E0?xm(E0):jI,HI="[object Set]";function qI(r){return il(r)&&Fs(r)==HI}var k0=Ku&&Ku.isSet,zI=k0?xm(k0):qI,$I=1,UI=2,WI=4,px="[object Arguments]",VI="[object Array]",GI="[object Boolean]",ZI="[object Date]",KI="[object Error]",gx="[object Function]",YI="[object GeneratorFunction]",XI="[object Map]",JI="[object Number]",mx="[object Object]",QI="[object RegExp]",eL="[object Set]",tL="[object String]",rL="[object Symbol]",nL="[object WeakMap]",iL="[object ArrayBuffer]",oL="[object DataView]",sL="[object Float32Array]",aL="[object Float64Array]",lL="[object Int8Array]",cL="[object Int16Array]",uL="[object Int32Array]",fL="[object Uint8Array]",dL="[object Uint8ClampedArray]",hL="[object Uint16Array]",pL="[object Uint32Array]",gn={};gn[px]=gn[VI]=gn[iL]=gn[oL]=gn[GI]=gn[ZI]=gn[sL]=gn[aL]=gn[lL]=gn[cL]=gn[uL]=gn[XI]=gn[JI]=gn[mx]=gn[QI]=gn[eL]=gn[tL]=gn[rL]=gn[fL]=gn[dL]=gn[hL]=gn[pL]=!0;gn[KI]=gn[gx]=gn[nL]=!1;function Ud(r,e,t,n,i,l){var u,f=e&$I,g=e&UI,m=e&WI;if(u!==void 0)return u;if(!ic(r))return r;var R=Yc(r);if(R){if(u=dI(r),!f)return Y2(r,u)}else{var C=Fs(r),b=C==gx||C==YI;if(Yf(r))return lx(r,f);if(C==mx||C==px||b&&!i){if(u=g||b?{}:hx(r),!f)return g?rI(r,K7(u,r)):eI(r,Z7(u,r))}else{if(!gn[C])return i?r:{};u=NI(r,C,f)}}l||(l=new _a);var S=l.get(r);if(S)return S;l.set(r,u),zI(r)?r.forEach(function(E){u.add(Ud(E,e,t,E,r,l))}):BI(r)&&r.forEach(function(E,x){u.set(x,Ud(E,e,t,x,r,l))});var _=m?g?nI:q1:g?od:Cm,D=R?void 0:_(r);return d9(D||r,function(E,x){D&&(x=E,E=r[x]),J2(u,x,Ud(E,e,t,x,r,l))}),u}var gL=1,mL=4;function Uu(r){return Ud(r,gL|mL)}var vL="__lodash_hash_undefined__";function yL(r){return this.__data__.set(r,vL),this}function bL(r){return this.__data__.has(r)}function th(r){var e=-1,t=r==null?0:r.length;for(this.__data__=new ru;++e<t;)this.add(r[e])}th.prototype.add=th.prototype.push=yL;th.prototype.has=bL;function _L(r,e){for(var t=-1,n=r==null?0:r.length;++t<n;)if(e(r[t],t,r))return!0;return!1}function xL(r,e){return r.has(e)}var SL=1,CL=2;function vx(r,e,t,n,i,l){var u=t&SL,f=r.length,g=e.length;if(f!=g&&!(u&&g>f))return!1;var m=l.get(r),R=l.get(e);if(m&&R)return m==e&&R==r;var C=-1,b=!0,S=t&CL?new th:void 0;for(l.set(r,e),l.set(e,r);++C<f;){var _=r[C],D=e[C];if(n)var E=u?n(D,_,C,e,r,l):n(_,D,C,r,e,l);if(E!==void 0){if(E)continue;b=!1;break}if(S){if(!_L(e,function(x,L){if(!xL(S,L)&&(_===x||i(_,x,t,n,l)))return S.push(L)})){b=!1;break}}else if(!(_===D||i(_,D,t,n,l))){b=!1;break}}return l.delete(r),l.delete(e),b}function wL(r){var e=-1,t=Array(r.size);return r.forEach(function(n,i){t[++e]=[i,n]}),t}function AL(r){var e=-1,t=Array(r.size);return r.forEach(function(n){t[++e]=n}),t}var TL=1,EL=2,kL="[object Boolean]",RL="[object Date]",IL="[object Error]",LL="[object Map]",ML="[object Number]",DL="[object RegExp]",OL="[object Set]",PL="[object String]",NL="[object Symbol]",FL="[object ArrayBuffer]",jL="[object DataView]",R0=nc?nc.prototype:void 0,tp=R0?R0.valueOf:void 0;function BL(r,e,t,n,i,l,u){switch(t){case jL:if(r.byteLength!=e.byteLength||r.byteOffset!=e.byteOffset)return!1;r=r.buffer,e=e.buffer;case FL:return!(r.byteLength!=e.byteLength||!l(new eh(r),new eh(e)));case kL:case RL:case ML:return nd(+r,+e);case IL:return r.name==e.name&&r.message==e.message;case DL:case PL:return r==e+"";case LL:var f=wL;case OL:var g=n&TL;if(f||(f=AL),r.size!=e.size&&!g)return!1;var m=u.get(r);if(m)return m==e;n|=EL,u.set(r,e);var R=vx(f(r),f(e),n,i,l,u);return u.delete(r),R;case NL:if(tp)return tp.call(r)==tp.call(e)}return!1}var HL=1,qL=Object.prototype,zL=qL.hasOwnProperty;function $L(r,e,t,n,i,l){var u=t&HL,f=q1(r),g=f.length,m=q1(e),R=m.length;if(g!=R&&!u)return!1;for(var C=g;C--;){var b=f[C];if(!(u?b in e:zL.call(e,b)))return!1}var S=l.get(r),_=l.get(e);if(S&&_)return S==e&&_==r;var D=!0;l.set(r,e),l.set(e,r);for(var E=u;++C<g;){b=f[C];var x=r[b],L=e[b];if(n)var O=u?n(L,x,b,e,r,l):n(x,L,b,r,e,l);if(!(O===void 0?x===L||i(x,L,t,n,l):O)){D=!1;break}E||(E=b=="constructor")}if(D&&!E){var H=r.constructor,q=e.constructor;H!=q&&"constructor"in r&&"constructor"in e&&!(typeof H=="function"&&H instanceof H&&typeof q=="function"&&q instanceof q)&&(D=!1)}return l.delete(r),l.delete(e),D}var UL=1,I0="[object Arguments]",L0="[object Array]",Dd="[object Object]",WL=Object.prototype,M0=WL.hasOwnProperty;function VL(r,e,t,n,i,l){var u=Yc(r),f=Yc(e),g=u?L0:Fs(r),m=f?L0:Fs(e);g=g==I0?Dd:g,m=m==I0?Dd:m;var R=g==Dd,C=m==Dd,b=g==m;if(b&&Yf(r)){if(!Yf(e))return!1;u=!0,R=!1}if(b&&!R)return l||(l=new _a),u||Sm(r)?vx(r,e,t,n,i,l):BL(r,e,g,t,n,i,l);if(!(t&UL)){var S=R&&M0.call(r,"__wrapped__"),_=C&&M0.call(e,"__wrapped__");if(S||_){var D=S?r.value():r,E=_?e.value():e;return l||(l=new _a),i(D,E,t,n,l)}}return b?(l||(l=new _a),$L(r,e,t,n,i,l)):!1}function yx(r,e,t,n,i){return r===e?!0:r==null||e==null||!il(r)&&!il(e)?r!==r&&e!==e:VL(r,e,t,n,yx,i)}function GL(r){return function(e,t,n){for(var i=-1,l=Object(e),u=n(e),f=u.length;f--;){var g=u[++i];if(t(l[g],g,l)===!1)break}return e}}var ZL=GL();function W1(r,e,t){(t!==void 0&&!nd(r[e],t)||t===void 0&&!(e in r))&&bm(r,e,t)}function KL(r){return il(r)&&ch(r)}function V1(r,e){if(!(e==="constructor"&&typeof r[e]=="function")&&e!="__proto__")return r[e]}function YL(r){return id(r,od(r))}function XL(r,e,t,n,i,l,u){var f=V1(r,t),g=V1(e,t),m=u.get(g);if(m){W1(r,t,m);return}var R=l?l(f,g,t+"",r,e,u):void 0,C=R===void 0;if(C){var b=Yc(g),S=!b&&Yf(g),_=!b&&!S&&Sm(g);R=g,b||S||_?Yc(f)?R=f:KL(f)?R=Y2(f):S?(C=!1,R=lx(g,!0)):_?(C=!1,R=dx(g,!0)):R=[]:q7(g)||H1(g)?(R=f,H1(f)?R=YL(f):(!ic(f)||ym(f))&&(R=hx(g))):C=!1}C&&(u.set(g,R),i(R,g,n,l,u),u.delete(g)),W1(r,t,R)}function bx(r,e,t,n,i){r!==e&&ZL(e,function(l,u){if(i||(i=new _a),ic(l))XL(r,e,u,t,bx,n,i);else{var f=n?n(V1(r,u),l,u+"",r,e,i):void 0;f===void 0&&(f=l),W1(r,u,f)}},od)}function Em(r,e){return yx(r,e)}var Ql=x9(function(r,e,t){bx(r,e,t)}),Jt=(r=>(r[r.TYPE=3]="TYPE",r[r.LEVEL=12]="LEVEL",r[r.ATTRIBUTE=13]="ATTRIBUTE",r[r.BLOT=14]="BLOT",r[r.INLINE=7]="INLINE",r[r.BLOCK=11]="BLOCK",r[r.BLOCK_BLOT=10]="BLOCK_BLOT",r[r.INLINE_BLOT=6]="INLINE_BLOT",r[r.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",r[r.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",r[r.ANY=15]="ANY",r))(Jt||{});class Ca{constructor(e,t,n={}){this.attrName=e,this.keyName=t;const i=Jt.TYPE&Jt.ATTRIBUTE;this.scope=n.scope!=null?n.scope&Jt.LEVEL|i:Jt.ATTRIBUTE,n.whitelist!=null&&(this.whitelist=n.whitelist)}static keys(e){return Array.from(e.attributes).map(t=>t.name)}add(e,t){return this.canAdd(e,t)?(e.setAttribute(this.keyName,t),!0):!1}canAdd(e,t){return this.whitelist==null?!0:typeof t=="string"?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1}remove(e){e.removeAttribute(this.keyName)}value(e){const t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""}}class Wu extends Error{constructor(e){e="[Parchment] "+e,super(e),this.message=e,this.name=this.constructor.name}}const _x=class G1{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(e,t=!1){if(e==null)return null;if(this.blots.has(e))return this.blots.get(e)||null;if(t){let n=null;try{n=e.parentNode}catch{return null}return this.find(n,t)}return null}create(e,t,n){const i=this.query(t);if(i==null)throw new Wu(`Unable to create ${t} blot`);const l=i,u=t instanceof Node||t.nodeType===Node.TEXT_NODE?t:l.create(n),f=new l(e,u,n);return G1.blots.set(f.domNode,f),f}find(e,t=!1){return G1.find(e,t)}query(e,t=Jt.ANY){let n;return typeof e=="string"?n=this.types[e]||this.attributes[e]:e instanceof Text||e.nodeType===Node.TEXT_NODE?n=this.types.text:typeof e=="number"?e&Jt.LEVEL&Jt.BLOCK?n=this.types.block:e&Jt.LEVEL&Jt.INLINE&&(n=this.types.inline):e instanceof Element&&((e.getAttribute("class")||"").split(/\s+/).some(i=>(n=this.classes[i],!!n)),n=n||this.tags[e.tagName]),n==null?null:"scope"in n&&t&Jt.LEVEL&n.scope&&t&Jt.TYPE&n.scope?n:null}register(...e){return e.map(t=>{const n="blotName"in t,i="attrName"in t;if(!n&&!i)throw new Wu("Invalid definition");if(n&&t.blotName==="abstract")throw new Wu("Cannot register abstract class");const l=n?t.blotName:i?t.attrName:void 0;return this.types[l]=t,i?typeof t.keyName=="string"&&(this.attributes[t.keyName]=t):n&&(t.className&&(this.classes[t.className]=t),t.tagName&&(Array.isArray(t.tagName)?t.tagName=t.tagName.map(u=>u.toUpperCase()):t.tagName=t.tagName.toUpperCase(),(Array.isArray(t.tagName)?t.tagName:[t.tagName]).forEach(u=>{(this.tags[u]==null||t.className==null)&&(this.tags[u]=t)}))),t})}};_x.blots=new WeakMap;let Yu=_x;function D0(r,e){return(r.getAttribute("class")||"").split(/\s+/).filter(t=>t.indexOf(`${e}-`)===0)}class JL extends Ca{static keys(e){return(e.getAttribute("class")||"").split(/\s+/).map(t=>t.split("-").slice(0,-1).join("-"))}add(e,t){return this.canAdd(e,t)?(this.remove(e),e.classList.add(`${this.keyName}-${t}`),!0):!1}remove(e){D0(e,this.keyName).forEach(t=>{e.classList.remove(t)}),e.classList.length===0&&e.removeAttribute("class")}value(e){const t=(D0(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""}}const Us=JL;function rp(r){const e=r.split("-"),t=e.slice(1).map(n=>n[0].toUpperCase()+n.slice(1)).join("");return e[0]+t}class QL extends Ca{static keys(e){return(e.getAttribute("style")||"").split(";").map(t=>t.split(":")[0].trim())}add(e,t){return this.canAdd(e,t)?(e.style[rp(this.keyName)]=t,!0):!1}remove(e){e.style[rp(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")}value(e){const t=e.style[rp(this.keyName)];return this.canAdd(e,t)?t:""}}const oc=QL;class eM{constructor(e){this.attributes={},this.domNode=e,this.build()}attribute(e,t){t?e.add(this.domNode,t)&&(e.value(this.domNode)!=null?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])}build(){this.attributes={};const e=Yu.find(this.domNode);if(e==null)return;const t=Ca.keys(this.domNode),n=Us.keys(this.domNode),i=oc.keys(this.domNode);t.concat(n).concat(i).forEach(l=>{const u=e.scroll.query(l,Jt.ATTRIBUTE);u instanceof Ca&&(this.attributes[u.attrName]=u)})}copy(e){Object.keys(this.attributes).forEach(t=>{const n=this.attributes[t].value(this.domNode);e.format(t,n)})}move(e){this.copy(e),Object.keys(this.attributes).forEach(t=>{this.attributes[t].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((e,t)=>(e[t]=this.attributes[t].value(this.domNode),e),{})}}const dh=eM,xx=class{constructor(e,t){this.scroll=e,this.domNode=t,Yu.blots.set(t,this),this.prev=null,this.next=null}static create(e){if(this.tagName==null)throw new Wu("Blot definition missing tagName");let t,n;return Array.isArray(this.tagName)?(typeof e=="string"?(n=e.toUpperCase(),parseInt(n,10).toString()===n&&(n=parseInt(n,10))):typeof e=="number"&&(n=e),typeof n=="number"?t=document.createElement(this.tagName[n-1]):n&&this.tagName.indexOf(n)>-1?t=document.createElement(n):t=document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t}get statics(){return this.constructor}attach(){}clone(){const e=this.domNode.cloneNode(!1);return this.scroll.create(e)}detach(){this.parent!=null&&this.parent.removeChild(this),Yu.blots.delete(this.domNode)}deleteAt(e,t){this.isolate(e,t).remove()}formatAt(e,t,n,i){const l=this.isolate(e,t);if(this.scroll.query(n,Jt.BLOT)!=null&&i)l.wrap(n,i);else if(this.scroll.query(n,Jt.ATTRIBUTE)!=null){const u=this.scroll.create(this.statics.scope);l.wrap(u),u.format(n,i)}}insertAt(e,t,n){const i=n==null?this.scroll.create("text",t):this.scroll.create(t,n),l=this.split(e);this.parent.insertBefore(i,l||void 0)}isolate(e,t){const n=this.split(e);if(n==null)throw new Error("Attempt to isolate at end");return n.split(t),n}length(){return 1}offset(e=this.parent){return this.parent==null||this===e?0:this.parent.children.offset(this)+this.parent.offset(e)}optimize(e){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)}remove(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(e,t){const n=typeof e=="string"?this.scroll.create(e,t):e;return this.parent!=null&&(this.parent.insertBefore(n,this.next||void 0),this.remove()),n}split(e,t){return e===0?this:this.next}update(e,t){}wrap(e,t){const n=typeof e=="string"?this.scroll.create(e,t):e;if(this.parent!=null&&this.parent.insertBefore(n,this.next||void 0),typeof n.appendChild!="function")throw new Wu(`Cannot wrap ${e}`);return n.appendChild(this),n}};xx.blotName="abstract";let Sx=xx;const Cx=class extends Sx{static value(e){return!0}index(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1}position(e,t){let n=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return e>0&&(n+=1),[this.parent.domNode,n]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};Cx.scope=Jt.INLINE_BLOT;let tM=Cx;const qi=tM;class rM{constructor(){this.head=null,this.tail=null,this.length=0}append(...e){if(this.insertBefore(e[0],null),e.length>1){const t=e.slice(1);this.append(...t)}}at(e){const t=this.iterator();let n=t();for(;n&&e>0;)e-=1,n=t();return n}contains(e){const t=this.iterator();let n=t();for(;n;){if(n===e)return!0;n=t()}return!1}indexOf(e){const t=this.iterator();let n=t(),i=0;for(;n;){if(n===e)return i;i+=1,n=t()}return-1}insertBefore(e,t){e!=null&&(this.remove(e),e.next=t,t!=null?(e.prev=t.prev,t.prev!=null&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):this.tail!=null?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)}offset(e){let t=0,n=this.head;for(;n!=null;){if(n===e)return t;t+=n.length(),n=n.next}return-1}remove(e){this.contains(e)&&(e.prev!=null&&(e.prev.next=e.next),e.next!=null&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)}iterator(e=this.head){return()=>{const t=e;return e!=null&&(e=e.next),t}}find(e,t=!1){const n=this.iterator();let i=n();for(;i;){const l=i.length();if(e<l||t&&e===l&&(i.next==null||i.next.length()!==0))return[i,e];e-=l,i=n()}return[null,0]}forEach(e){const t=this.iterator();let n=t();for(;n;)e(n),n=t()}forEachAt(e,t,n){if(t<=0)return;const[i,l]=this.find(e);let u=e-l;const f=this.iterator(i);let g=f();for(;g&&u<e+t;){const m=g.length();e>u?n(g,e-u,Math.min(t,u+m-e)):n(g,0,Math.min(m,e+t-u)),u+=m,g=f()}}map(e){return this.reduce((t,n)=>(t.push(e(n)),t),[])}reduce(e,t){const n=this.iterator();let i=n();for(;i;)t=e(t,i),i=n();return t}}function O0(r,e){const t=e.find(r);if(t)return t;try{return e.create(r)}catch{const n=e.create(Jt.INLINE);return Array.from(r.childNodes).forEach(i=>{n.domNode.appendChild(i)}),r.parentNode&&r.parentNode.replaceChild(n.domNode,r),n.attach(),n}}const wx=class Kl extends Sx{constructor(e,t){super(e,t),this.uiNode=null,this.build()}appendChild(e){this.insertBefore(e)}attach(){super.attach(),this.children.forEach(e=>{e.attach()})}attachUI(e){this.uiNode!=null&&this.uiNode.remove(),this.uiNode=e,Kl.uiClass&&this.uiNode.classList.add(Kl.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new rM,Array.from(this.domNode.childNodes).filter(e=>e!==this.uiNode).reverse().forEach(e=>{try{const t=O0(e,this.scroll);this.insertBefore(t,this.children.head||void 0)}catch(t){if(t instanceof Wu)return;throw t}})}deleteAt(e,t){if(e===0&&t===this.length())return this.remove();this.children.forEachAt(e,t,(n,i,l)=>{n.deleteAt(i,l)})}descendant(e,t=0){const[n,i]=this.children.find(t);return e.blotName==null&&e(n)||e.blotName!=null&&n instanceof e?[n,i]:n instanceof Kl?n.descendant(e,i):[null,-1]}descendants(e,t=0,n=Number.MAX_VALUE){let i=[],l=n;return this.children.forEachAt(t,n,(u,f,g)=>{(e.blotName==null&&e(u)||e.blotName!=null&&u instanceof e)&&i.push(u),u instanceof Kl&&(i=i.concat(u.descendants(e,f,l))),l-=g}),i}detach(){this.children.forEach(e=>{e.detach()}),super.detach()}enforceAllowedChildren(){let e=!1;this.children.forEach(t=>{e||this.statics.allowedChildren.some(n=>t instanceof n)||(t.statics.scope===Jt.BLOCK_BLOT?(t.next!=null&&this.splitAfter(t),t.prev!=null&&this.splitAfter(t.prev),t.parent.unwrap(),e=!0):t instanceof Kl?t.unwrap():t.remove())})}formatAt(e,t,n,i){this.children.forEachAt(e,t,(l,u,f)=>{l.formatAt(u,f,n,i)})}insertAt(e,t,n){const[i,l]=this.children.find(e);if(i)i.insertAt(l,t,n);else{const u=n==null?this.scroll.create("text",t):this.scroll.create(t,n);this.appendChild(u)}}insertBefore(e,t){e.parent!=null&&e.parent.children.remove(e);let n=null;this.children.insertBefore(e,t||null),e.parent=this,t!=null&&(n=t.domNode),(this.domNode.parentNode!==e.domNode||this.domNode.nextSibling!==n)&&this.domNode.insertBefore(e.domNode,n),e.attach()}length(){return this.children.reduce((e,t)=>e+t.length(),0)}moveChildren(e,t){this.children.forEach(n=>{e.insertBefore(n,t)})}optimize(e){if(super.optimize(e),this.enforceAllowedChildren(),this.uiNode!=null&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),this.children.length===0)if(this.statics.defaultChild!=null){const t=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(t)}else this.remove()}path(e,t=!1){const[n,i]=this.children.find(e,t),l=[[this,e]];return n instanceof Kl?l.concat(n.path(i,t)):(n!=null&&l.push([n,i]),l)}removeChild(e){this.children.remove(e)}replaceWith(e,t){const n=typeof e=="string"?this.scroll.create(e,t):e;return n instanceof Kl&&this.moveChildren(n),super.replaceWith(n)}split(e,t=!1){if(!t){if(e===0)return this;if(e===this.length())return this.next}const n=this.clone();return this.parent&&this.parent.insertBefore(n,this.next||void 0),this.children.forEachAt(e,this.length(),(i,l,u)=>{const f=i.split(l,t);f!=null&&n.appendChild(f)}),n}splitAfter(e){const t=this.clone();for(;e.next!=null;)t.appendChild(e.next);return this.parent&&this.parent.insertBefore(t,this.next||void 0),t}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(e,t){const n=[],i=[];e.forEach(l=>{l.target===this.domNode&&l.type==="childList"&&(n.push(...l.addedNodes),i.push(...l.removedNodes))}),i.forEach(l=>{if(l.parentNode!=null&&l.tagName!=="IFRAME"&&document.body.compareDocumentPosition(l)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const u=this.scroll.find(l);u!=null&&(u.domNode.parentNode==null||u.domNode.parentNode===this.domNode)&&u.detach()}),n.filter(l=>l.parentNode===this.domNode&&l!==this.uiNode).sort((l,u)=>l===u?0:l.compareDocumentPosition(u)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(l=>{let u=null;l.nextSibling!=null&&(u=this.scroll.find(l.nextSibling));const f=O0(l,this.scroll);(f.next!==u||f.next==null)&&(f.parent!=null&&f.parent.removeChild(this),this.insertBefore(f,u||void 0))}),this.enforceAllowedChildren()}};wx.uiClass="";let nM=wx;const qs=nM;function iM(r,e){if(Object.keys(r).length!==Object.keys(e).length)return!1;for(const t in r)if(r[t]!==e[t])return!1;return!0}const Pu=class Nu extends qs{static create(e){return super.create(e)}static formats(e,t){const n=t.query(Nu.blotName);if(!(n!=null&&e.tagName===n.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(e,t){super(e,t),this.attributes=new dh(this.domNode)}format(e,t){if(e===this.statics.blotName&&!t)this.children.forEach(n=>{n instanceof Nu||(n=n.wrap(Nu.blotName,!0)),this.attributes.copy(n)}),this.unwrap();else{const n=this.scroll.query(e,Jt.INLINE);if(n==null)return;n instanceof Ca?this.attributes.attribute(n,t):t&&(e!==this.statics.blotName||this.formats()[e]!==t)&&this.replaceWith(e,t)}}formats(){const e=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return t!=null&&(e[this.statics.blotName]=t),e}formatAt(e,t,n,i){this.formats()[n]!=null||this.scroll.query(n,Jt.ATTRIBUTE)?this.isolate(e,t).format(n,i):super.formatAt(e,t,n,i)}optimize(e){super.optimize(e);const t=this.formats();if(Object.keys(t).length===0)return this.unwrap();const n=this.next;n instanceof Nu&&n.prev===this&&iM(t,n.formats())&&(n.moveChildren(this),n.remove())}replaceWith(e,t){const n=super.replaceWith(e,t);return this.attributes.copy(n),n}update(e,t){super.update(e,t),e.some(n=>n.target===this.domNode&&n.type==="attributes")&&this.attributes.build()}wrap(e,t){const n=super.wrap(e,t);return n instanceof Nu&&this.attributes.move(n),n}};Pu.allowedChildren=[Pu,qi],Pu.blotName="inline",Pu.scope=Jt.INLINE_BLOT,Pu.tagName="SPAN";let oM=Pu;const km=oM,Fu=class Z1 extends qs{static create(e){return super.create(e)}static formats(e,t){const n=t.query(Z1.blotName);if(!(n!=null&&e.tagName===n.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(e,t){super(e,t),this.attributes=new dh(this.domNode)}format(e,t){const n=this.scroll.query(e,Jt.BLOCK);n!=null&&(n instanceof Ca?this.attributes.attribute(n,t):e===this.statics.blotName&&!t?this.replaceWith(Z1.blotName):t&&(e!==this.statics.blotName||this.formats()[e]!==t)&&this.replaceWith(e,t))}formats(){const e=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return t!=null&&(e[this.statics.blotName]=t),e}formatAt(e,t,n,i){this.scroll.query(n,Jt.BLOCK)!=null?this.format(n,i):super.formatAt(e,t,n,i)}insertAt(e,t,n){if(n==null||this.scroll.query(t,Jt.INLINE)!=null)super.insertAt(e,t,n);else{const i=this.split(e);if(i!=null){const l=this.scroll.create(t,n);i.parent.insertBefore(l,i)}else throw new Error("Attempt to insertAt after block boundaries")}}replaceWith(e,t){const n=super.replaceWith(e,t);return this.attributes.copy(n),n}update(e,t){super.update(e,t),e.some(n=>n.target===this.domNode&&n.type==="attributes")&&this.attributes.build()}};Fu.blotName="block",Fu.scope=Jt.BLOCK_BLOT,Fu.tagName="P",Fu.allowedChildren=[km,Fu,qi];let sM=Fu;const Qf=sM,K1=class extends qs{checkMerge(){return this.next!==null&&this.next.statics.blotName===this.statics.blotName}deleteAt(e,t){super.deleteAt(e,t),this.enforceAllowedChildren()}formatAt(e,t,n,i){super.formatAt(e,t,n,i),this.enforceAllowedChildren()}insertAt(e,t,n){super.insertAt(e,t,n),this.enforceAllowedChildren()}optimize(e){super.optimize(e),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};K1.blotName="container",K1.scope=Jt.BLOCK_BLOT;let aM=K1;const hh=aM;class lM extends qi{static formats(e,t){}format(e,t){super.formatAt(0,this.length(),e,t)}formatAt(e,t,n,i){e===0&&t===this.length()?this.format(n,i):super.formatAt(e,t,n,i)}formats(){return this.statics.formats(this.domNode,this.scroll)}}const zo=lM,cM={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},uM=100,ju=class extends qs{constructor(e,t){super(null,t),this.registry=e,this.scroll=this,this.build(),this.observer=new MutationObserver(n=>{this.update(n)}),this.observer.observe(this.domNode,cM),this.attach()}create(e,t){return this.registry.create(this,e,t)}find(e,t=!1){const n=this.registry.find(e,t);return n?n.scroll===this?n:t?this.find(n.scroll.domNode.parentNode,!0):null:null}query(e,t=Jt.ANY){return this.registry.query(e,t)}register(...e){return this.registry.register(...e)}build(){this.scroll!=null&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(e,t){this.update(),e===0&&t===this.length()?this.children.forEach(n=>{n.remove()}):super.deleteAt(e,t)}formatAt(e,t,n,i){this.update(),super.formatAt(e,t,n,i)}insertAt(e,t,n){this.update(),super.insertAt(e,t,n)}optimize(e=[],t={}){super.optimize(t);const n=t.mutationsMap||new WeakMap;let i=Array.from(this.observer.takeRecords());for(;i.length>0;)e.push(i.pop());const l=(g,m=!0)=>{g==null||g===this||g.domNode.parentNode!=null&&(n.has(g.domNode)||n.set(g.domNode,[]),m&&l(g.parent))},u=g=>{n.has(g.domNode)&&(g instanceof qs&&g.children.forEach(u),n.delete(g.domNode),g.optimize(t))};let f=e;for(let g=0;f.length>0;g+=1){if(g>=uM)throw new Error("[Parchment] Maximum optimize iterations reached");for(f.forEach(m=>{const R=this.find(m.target,!0);R!=null&&(R.domNode===m.target&&(m.type==="childList"?(l(this.find(m.previousSibling,!1)),Array.from(m.addedNodes).forEach(C=>{const b=this.find(C,!1);l(b,!1),b instanceof qs&&b.children.forEach(S=>{l(S,!1)})})):m.type==="attributes"&&l(R.prev)),l(R))}),this.children.forEach(u),f=Array.from(this.observer.takeRecords()),i=f.slice();i.length>0;)e.push(i.pop())}}update(e,t={}){e=e||this.observer.takeRecords();const n=new WeakMap;e.map(i=>{const l=this.find(i.target,!0);return l==null?null:n.has(l.domNode)?(n.get(l.domNode).push(i),null):(n.set(l.domNode,[i]),l)}).forEach(i=>{i!=null&&i!==this&&n.has(i.domNode)&&i.update(n.get(i.domNode)||[],t)}),t.mutationsMap=n,n.has(this.domNode)&&super.update(n.get(this.domNode),t),this.optimize(e,t)}};ju.blotName="scroll",ju.defaultChild=Qf,ju.allowedChildren=[Qf,hh],ju.scope=Jt.BLOCK_BLOT,ju.tagName="DIV";let fM=ju;const Rm=fM,Y1=class Ax extends qi{static create(e){return document.createTextNode(e)}static value(e){return e.data}constructor(e,t){super(e,t),this.text=this.statics.value(this.domNode)}deleteAt(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)}index(e,t){return this.domNode===e?t:-1}insertAt(e,t,n){n==null?(this.text=this.text.slice(0,e)+t+this.text.slice(e),this.domNode.data=this.text):super.insertAt(e,t,n)}length(){return this.text.length}optimize(e){super.optimize(e),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof Ax&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(e,t=!1){return[this.domNode,e]}split(e,t=!1){if(!t){if(e===0)return this;if(e===this.length())return this.next}const n=this.scroll.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next||void 0),this.text=this.statics.value(this.domNode),n}update(e,t){e.some(n=>n.type==="characterData"&&n.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};Y1.blotName="text",Y1.scope=Jt.INLINE_BLOT;let dM=Y1;const rh=dM,hM=Object.freeze(Object.defineProperty({__proto__:null,Attributor:Ca,AttributorStore:dh,BlockBlot:Qf,ClassAttributor:Us,ContainerBlot:hh,EmbedBlot:zo,InlineBlot:km,LeafBlot:qi,ParentBlot:qs,Registry:Yu,Scope:Jt,ScrollBlot:Rm,StyleAttributor:oc,TextBlot:rh},Symbol.toStringTag,{value:"Module"}));var Od={exports:{}},np,P0;function pM(){if(P0)return np;P0=1;var r=-1,e=1,t=0;function n(j,re,J,Q,he){if(j===re)return j?[[t,j]]:[];if(J!=null){var me=X(j,re,J);if(me)return me}var be=f(j,re),ce=j.substring(0,be);j=j.substring(be),re=re.substring(be),be=m(j,re);var ke=j.substring(j.length-be);j=j.substring(0,j.length-be),re=re.substring(0,re.length-be);var le=i(j,re);return ce&&le.unshift([t,ce]),ke&&le.push([t,ke]),L(le,he),Q&&C(le),le}function i(j,re){var J;if(!j)return[[e,re]];if(!re)return[[r,j]];var Q=j.length>re.length?j:re,he=j.length>re.length?re:j,me=Q.indexOf(he);if(me!==-1)return J=[[e,Q.substring(0,me)],[t,he],[e,Q.substring(me+he.length)]],j.length>re.length&&(J[0][0]=J[2][0]=r),J;if(he.length===1)return[[r,j],[e,re]];var be=R(j,re);if(be){var ce=be[0],ke=be[1],le=be[2],oe=be[3],ve=be[4],Oe=n(ce,le),et=n(ke,oe);return Oe.concat([[t,ve]],et)}return l(j,re)}function l(j,re){for(var J=j.length,Q=re.length,he=Math.ceil((J+Q)/2),me=he,be=2*he,ce=new Array(be),ke=new Array(be),le=0;le<be;le++)ce[le]=-1,ke[le]=-1;ce[me+1]=0,ke[me+1]=0;for(var oe=J-Q,ve=oe%2!==0,Oe=0,et=0,we=0,Pe=0,je=0;je<he;je++){for(var ze=-je+Oe;ze<=je-et;ze+=2){var We=me+ze,De;ze===-je||ze!==je&&ce[We-1]<ce[We+1]?De=ce[We+1]:De=ce[We-1]+1;for(var Ae=De-ze;De<J&&Ae<Q&&j.charAt(De)===re.charAt(Ae);)De++,Ae++;if(ce[We]=De,De>J)et+=2;else if(Ae>Q)Oe+=2;else if(ve){var _e=me+oe-ze;if(_e>=0&&_e<be&&ke[_e]!==-1){var Ge=J-ke[_e];if(De>=Ge)return u(j,re,De,Ae)}}}for(var lt=-je+we;lt<=je-Pe;lt+=2){var _e=me+lt,Ge;lt===-je||lt!==je&&ke[_e-1]<ke[_e+1]?Ge=ke[_e+1]:Ge=ke[_e-1]+1;for(var $e=Ge-lt;Ge<J&&$e<Q&&j.charAt(J-Ge-1)===re.charAt(Q-$e-1);)Ge++,$e++;if(ke[_e]=Ge,Ge>J)Pe+=2;else if($e>Q)we+=2;else if(!ve){var We=me+oe-lt;if(We>=0&&We<be&&ce[We]!==-1){var De=ce[We],Ae=me+De-We;if(Ge=J-Ge,De>=Ge)return u(j,re,De,Ae)}}}}return[[r,j],[e,re]]}function u(j,re,J,Q){var he=j.substring(0,J),me=re.substring(0,Q),be=j.substring(J),ce=re.substring(Q),ke=n(he,me),le=n(be,ce);return ke.concat(le)}function f(j,re){if(!j||!re||j.charAt(0)!==re.charAt(0))return 0;for(var J=0,Q=Math.min(j.length,re.length),he=Q,me=0;J<he;)j.substring(me,he)==re.substring(me,he)?(J=he,me=J):Q=he,he=Math.floor((Q-J)/2+J);return O(j.charCodeAt(he-1))&&he--,he}function g(j,re){var J=j.length,Q=re.length;if(J==0||Q==0)return 0;J>Q?j=j.substring(J-Q):J<Q&&(re=re.substring(0,J));var he=Math.min(J,Q);if(j==re)return he;for(var me=0,be=1;;){var ce=j.substring(he-be),ke=re.indexOf(ce);if(ke==-1)return me;be+=ke,(ke==0||j.substring(he-be)==re.substring(0,be))&&(me=be,be++)}}function m(j,re){if(!j||!re||j.slice(-1)!==re.slice(-1))return 0;for(var J=0,Q=Math.min(j.length,re.length),he=Q,me=0;J<he;)j.substring(j.length-he,j.length-me)==re.substring(re.length-he,re.length-me)?(J=he,me=J):Q=he,he=Math.floor((Q-J)/2+J);return H(j.charCodeAt(j.length-he))&&he--,he}function R(j,re){var J=j.length>re.length?j:re,Q=j.length>re.length?re:j;if(J.length<4||Q.length*2<J.length)return null;function he(et,we,Pe){for(var je=et.substring(Pe,Pe+Math.floor(et.length/4)),ze=-1,We="",De,Ae,_e,Ge;(ze=we.indexOf(je,ze+1))!==-1;){var lt=f(et.substring(Pe),we.substring(ze)),$e=m(et.substring(0,Pe),we.substring(0,ze));We.length<$e+lt&&(We=we.substring(ze-$e,ze)+we.substring(ze,ze+lt),De=et.substring(0,Pe-$e),Ae=et.substring(Pe+lt),_e=we.substring(0,ze-$e),Ge=we.substring(ze+lt))}return We.length*2>=et.length?[De,Ae,_e,Ge,We]:null}var me=he(J,Q,Math.ceil(J.length/4)),be=he(J,Q,Math.ceil(J.length/2)),ce;if(!me&&!be)return null;be?me?ce=me[4].length>be[4].length?me:be:ce=be:ce=me;var ke,le,oe,ve;j.length>re.length?(ke=ce[0],le=ce[1],oe=ce[2],ve=ce[3]):(oe=ce[0],ve=ce[1],ke=ce[2],le=ce[3]);var Oe=ce[4];return[ke,le,oe,ve,Oe]}function C(j){for(var re=!1,J=[],Q=0,he=null,me=0,be=0,ce=0,ke=0,le=0;me<j.length;)j[me][0]==t?(J[Q++]=me,be=ke,ce=le,ke=0,le=0,he=j[me][1]):(j[me][0]==e?ke+=j[me][1].length:le+=j[me][1].length,he&&he.length<=Math.max(be,ce)&&he.length<=Math.max(ke,le)&&(j.splice(J[Q-1],0,[r,he]),j[J[Q-1]+1][0]=e,Q--,Q--,me=Q>0?J[Q-1]:-1,be=0,ce=0,ke=0,le=0,he=null,re=!0)),me++;for(re&&L(j),x(j),me=1;me<j.length;){if(j[me-1][0]==r&&j[me][0]==e){var oe=j[me-1][1],ve=j[me][1],Oe=g(oe,ve),et=g(ve,oe);Oe>=et?(Oe>=oe.length/2||Oe>=ve.length/2)&&(j.splice(me,0,[t,ve.substring(0,Oe)]),j[me-1][1]=oe.substring(0,oe.length-Oe),j[me+1][1]=ve.substring(Oe),me++):(et>=oe.length/2||et>=ve.length/2)&&(j.splice(me,0,[t,oe.substring(0,et)]),j[me-1][0]=e,j[me-1][1]=ve.substring(0,ve.length-et),j[me+1][0]=r,j[me+1][1]=oe.substring(et),me++),me++}me++}}var b=/[^a-zA-Z0-9]/,S=/\s/,_=/[\r\n]/,D=/\n\r?\n$/,E=/^\r?\n\r?\n/;function x(j){function re(et,we){if(!et||!we)return 6;var Pe=et.charAt(et.length-1),je=we.charAt(0),ze=Pe.match(b),We=je.match(b),De=ze&&Pe.match(S),Ae=We&&je.match(S),_e=De&&Pe.match(_),Ge=Ae&&je.match(_),lt=_e&&et.match(D),$e=Ge&&we.match(E);return lt||$e?5:_e||Ge?4:ze&&!De&&Ae?3:De||Ae?2:ze||We?1:0}for(var J=1;J<j.length-1;){if(j[J-1][0]==t&&j[J+1][0]==t){var Q=j[J-1][1],he=j[J][1],me=j[J+1][1],be=m(Q,he);if(be){var ce=he.substring(he.length-be);Q=Q.substring(0,Q.length-be),he=ce+he.substring(0,he.length-be),me=ce+me}for(var ke=Q,le=he,oe=me,ve=re(Q,he)+re(he,me);he.charAt(0)===me.charAt(0);){Q+=he.charAt(0),he=he.substring(1)+me.charAt(0),me=me.substring(1);var Oe=re(Q,he)+re(he,me);Oe>=ve&&(ve=Oe,ke=Q,le=he,oe=me)}j[J-1][1]!=ke&&(ke?j[J-1][1]=ke:(j.splice(J-1,1),J--),j[J][1]=le,oe?j[J+1][1]=oe:(j.splice(J+1,1),J--))}J++}}function L(j,re){j.push([t,""]);for(var J=0,Q=0,he=0,me="",be="",ce;J<j.length;){if(J<j.length-1&&!j[J][1]){j.splice(J,1);continue}switch(j[J][0]){case e:he++,be+=j[J][1],J++;break;case r:Q++,me+=j[J][1],J++;break;case t:var ke=J-he-Q-1;if(re){if(ke>=0&&z(j[ke][1])){var le=j[ke][1].slice(-1);if(j[ke][1]=j[ke][1].slice(0,-1),me=le+me,be=le+be,!j[ke][1]){j.splice(ke,1),J--;var oe=ke-1;j[oe]&&j[oe][0]===e&&(he++,be=j[oe][1]+be,oe--),j[oe]&&j[oe][0]===r&&(Q++,me=j[oe][1]+me,oe--),ke=oe}}if(q(j[J][1])){var le=j[J][1].charAt(0);j[J][1]=j[J][1].slice(1),me+=le,be+=le}}if(J<j.length-1&&!j[J][1]){j.splice(J,1);break}if(me.length>0||be.length>0){me.length>0&&be.length>0&&(ce=f(be,me),ce!==0&&(ke>=0?j[ke][1]+=be.substring(0,ce):(j.splice(0,0,[t,be.substring(0,ce)]),J++),be=be.substring(ce),me=me.substring(ce)),ce=m(be,me),ce!==0&&(j[J][1]=be.substring(be.length-ce)+j[J][1],be=be.substring(0,be.length-ce),me=me.substring(0,me.length-ce)));var ve=he+Q;me.length===0&&be.length===0?(j.splice(J-ve,ve),J=J-ve):me.length===0?(j.splice(J-ve,ve,[e,be]),J=J-ve+1):be.length===0?(j.splice(J-ve,ve,[r,me]),J=J-ve+1):(j.splice(J-ve,ve,[r,me],[e,be]),J=J-ve+2)}J!==0&&j[J-1][0]===t?(j[J-1][1]+=j[J][1],j.splice(J,1)):J++,he=0,Q=0,me="",be="";break}}j[j.length-1][1]===""&&j.pop();var Oe=!1;for(J=1;J<j.length-1;)j[J-1][0]===t&&j[J+1][0]===t&&(j[J][1].substring(j[J][1].length-j[J-1][1].length)===j[J-1][1]?(j[J][1]=j[J-1][1]+j[J][1].substring(0,j[J][1].length-j[J-1][1].length),j[J+1][1]=j[J-1][1]+j[J+1][1],j.splice(J-1,1),Oe=!0):j[J][1].substring(0,j[J+1][1].length)==j[J+1][1]&&(j[J-1][1]+=j[J+1][1],j[J][1]=j[J][1].substring(j[J+1][1].length)+j[J+1][1],j.splice(J+1,1),Oe=!0)),J++;Oe&&L(j,re)}function O(j){return j>=55296&&j<=56319}function H(j){return j>=56320&&j<=57343}function q(j){return H(j.charCodeAt(0))}function z(j){return O(j.charCodeAt(j.length-1))}function K(j){for(var re=[],J=0;J<j.length;J++)j[J][1].length>0&&re.push(j[J]);return re}function ue(j,re,J,Q){return z(j)||q(Q)?null:K([[t,j],[r,re],[e,J],[t,Q]])}function X(j,re,J){var Q=typeof J=="number"?{index:J,length:0}:J.oldRange,he=typeof J=="number"?null:J.newRange,me=j.length,be=re.length;if(Q.length===0&&(he===null||he.length===0)){var ce=Q.index,ke=j.slice(0,ce),le=j.slice(ce),oe=he?he.index:null;e:{var ve=ce+be-me;if(oe!==null&&oe!==ve||ve<0||ve>be)break e;var Oe=re.slice(0,ve),et=re.slice(ve);if(et!==le)break e;var we=Math.min(ce,ve),Pe=ke.slice(0,we),je=Oe.slice(0,we);if(Pe!==je)break e;var ze=ke.slice(we),We=Oe.slice(we);return ue(Pe,ze,We,le)}e:{if(oe!==null&&oe!==ce)break e;var De=ce,Oe=re.slice(0,De),et=re.slice(De);if(Oe!==ke)break e;var Ae=Math.min(me-De,be-De),_e=le.slice(le.length-Ae),Ge=et.slice(et.length-Ae);if(_e!==Ge)break e;var ze=le.slice(0,le.length-Ae),We=et.slice(0,et.length-Ae);return ue(ke,ze,We,_e)}}if(Q.length>0&&he&&he.length===0)e:{var Pe=j.slice(0,Q.index),_e=j.slice(Q.index+Q.length),we=Pe.length,Ae=_e.length;if(be<we+Ae)break e;var je=re.slice(0,we),Ge=re.slice(be-Ae);if(Pe!==je||_e!==Ge)break e;var ze=j.slice(we,me-Ae),We=re.slice(we,be-Ae);return ue(Pe,ze,We,_e)}return null}function de(j,re,J,Q){return n(j,re,J,Q,!0)}return de.INSERT=e,de.DELETE=r,de.EQUAL=t,np=de,np}var jf={exports:{}};jf.exports;var N0;function Tx(){return N0||(N0=1,function(r,e){var t=200,n="__lodash_hash_undefined__",i=9007199254740991,l="[object Arguments]",u="[object Array]",f="[object Boolean]",g="[object Date]",m="[object Error]",R="[object Function]",C="[object GeneratorFunction]",b="[object Map]",S="[object Number]",_="[object Object]",D="[object Promise]",E="[object RegExp]",x="[object Set]",L="[object String]",O="[object Symbol]",H="[object WeakMap]",q="[object ArrayBuffer]",z="[object DataView]",K="[object Float32Array]",ue="[object Float64Array]",X="[object Int8Array]",de="[object Int16Array]",j="[object Int32Array]",re="[object Uint8Array]",J="[object Uint8ClampedArray]",Q="[object Uint16Array]",he="[object Uint32Array]",me=/[\\^$.*+?()[\]{}|]/g,be=/\w*$/,ce=/^\[object .+?Constructor\]$/,ke=/^(?:0|[1-9]\d*)$/,le={};le[l]=le[u]=le[q]=le[z]=le[f]=le[g]=le[K]=le[ue]=le[X]=le[de]=le[j]=le[b]=le[S]=le[_]=le[E]=le[x]=le[L]=le[O]=le[re]=le[J]=le[Q]=le[he]=!0,le[m]=le[R]=le[H]=!1;var oe=typeof bi=="object"&&bi&&bi.Object===Object&&bi,ve=typeof self=="object"&&self&&self.Object===Object&&self,Oe=oe||ve||Function("return this")(),et=e&&!e.nodeType&&e,we=et&&!0&&r&&!r.nodeType&&r,Pe=we&&we.exports===et;function je(I,G){return I.set(G[0],G[1]),I}function ze(I,G){return I.add(G),I}function We(I,G){for(var ae=-1,qe=I?I.length:0;++ae<qe&&G(I[ae],ae,I)!==!1;);return I}function De(I,G){for(var ae=-1,qe=G.length,Yt=I.length;++ae<qe;)I[Yt+ae]=G[ae];return I}function Ae(I,G,ae,qe){for(var Yt=-1,Vt=I?I.length:0;++Yt<Vt;)ae=G(ae,I[Yt],Yt,I);return ae}function _e(I,G){for(var ae=-1,qe=Array(I);++ae<I;)qe[ae]=G(ae);return qe}function Ge(I,G){return I==null?void 0:I[G]}function lt(I){var G=!1;if(I!=null&&typeof I.toString!="function")try{G=!!(I+"")}catch{}return G}function $e(I){var G=-1,ae=Array(I.size);return I.forEach(function(qe,Yt){ae[++G]=[Yt,qe]}),ae}function ht(I,G){return function(ae){return I(G(ae))}}function Le(I){var G=-1,ae=Array(I.size);return I.forEach(function(qe){ae[++G]=qe}),ae}var Xe=Array.prototype,it=Function.prototype,Ct=Object.prototype,_t=Oe["__core-js_shared__"],wt=function(){var I=/[^.]+$/.exec(_t&&_t.keys&&_t.keys.IE_PROTO||"");return I?"Symbol(src)_1."+I:""}(),bt=it.toString,St=Ct.hasOwnProperty,Me=Ct.toString,pt=RegExp("^"+bt.call(St).replace(me,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Et=Pe?Oe.Buffer:void 0,mt=Oe.Symbol,Dt=Oe.Uint8Array,Ze=ht(Object.getPrototypeOf,Object),At=Object.create,jt=Ct.propertyIsEnumerable,mr=Xe.splice,kr=Object.getOwnPropertySymbols,Cr=Et?Et.isBuffer:void 0,ge=ht(Object.keys,Object),ne=Pt(Oe,"DataView"),Je=Pt(Oe,"Map"),ct=Pt(Oe,"Promise"),tt=Pt(Oe,"Set"),Re=Pt(Oe,"WeakMap"),xt=Pt(Object,"create"),Rt=Xr(ne),vt=Xr(Je),Mt=Xr(ct),Qt=Xr(tt),rr=Xr(Re),Bt=mt?mt.prototype:void 0,qt=Bt?Bt.valueOf:void 0;function sr(I){var G=-1,ae=I?I.length:0;for(this.clear();++G<ae;){var qe=I[G];this.set(qe[0],qe[1])}}function Qe(){this.__data__=xt?xt(null):{}}function Tt(I){return this.has(I)&&delete this.__data__[I]}function yt(I){var G=this.__data__;if(xt){var ae=G[I];return ae===n?void 0:ae}return St.call(G,I)?G[I]:void 0}function Lt(I){var G=this.__data__;return xt?G[I]!==void 0:St.call(G,I)}function vr(I,G){var ae=this.__data__;return ae[I]=xt&&G===void 0?n:G,this}sr.prototype.clear=Qe,sr.prototype.delete=Tt,sr.prototype.get=yt,sr.prototype.has=Lt,sr.prototype.set=vr;function Y(I){var G=-1,ae=I?I.length:0;for(this.clear();++G<ae;){var qe=I[G];this.set(qe[0],qe[1])}}function pe(){this.__data__=[]}function Be(I){var G=this.__data__,ae=Jn(G,I);if(ae<0)return!1;var qe=G.length-1;return ae==qe?G.pop():mr.call(G,ae,1),!0}function ot(I){var G=this.__data__,ae=Jn(G,I);return ae<0?void 0:G[ae][1]}function Ot(I){return Jn(this.__data__,I)>-1}function $t(I,G){var ae=this.__data__,qe=Jn(ae,I);return qe<0?ae.push([I,G]):ae[qe][1]=G,this}Y.prototype.clear=pe,Y.prototype.delete=Be,Y.prototype.get=ot,Y.prototype.has=Ot,Y.prototype.set=$t;function kt(I){var G=-1,ae=I?I.length:0;for(this.clear();++G<ae;){var qe=I[G];this.set(qe[0],qe[1])}}function Ut(){this.__data__={hash:new sr,map:new(Je||Y),string:new sr}}function nr(I){return st(this,I).delete(I)}function ir(I){return st(this,I).get(I)}function fr(I){return st(this,I).has(I)}function Ur(I,G){return st(this,I).set(I,G),this}kt.prototype.clear=Ut,kt.prototype.delete=nr,kt.prototype.get=ir,kt.prototype.has=fr,kt.prototype.set=Ur;function yr(I){this.__data__=new Y(I)}function Kn(){this.__data__=new Y}function Cn(I){return this.__data__.delete(I)}function Dn(I){return this.__data__.get(I)}function Yr(I){return this.__data__.has(I)}function Yn(I,G){var ae=this.__data__;if(ae instanceof Y){var qe=ae.__data__;if(!Je||qe.length<t-1)return qe.push([I,G]),this;ae=this.__data__=new kt(qe)}return ae.set(I,G),this}yr.prototype.clear=Kn,yr.prototype.delete=Cn,yr.prototype.get=Dn,yr.prototype.has=Yr,yr.prototype.set=Yn;function En(I,G){var ae=bo(I)||ei(I)?_e(I.length,String):[],qe=ae.length,Yt=!!qe;for(var Vt in I)St.call(I,Vt)&&!(Yt&&(Vt=="length"||yn(Vt,qe)))&&ae.push(Vt);return ae}function Xn(I,G,ae){var qe=I[G];(!(St.call(I,G)&&Hn(qe,ae))||ae===void 0&&!(G in I))&&(I[G]=ae)}function Jn(I,G){for(var ae=I.length;ae--;)if(Hn(I[ae][0],G))return ae;return-1}function on(I,G){return I&&Ee(G,Or(G),I)}function On(I,G,ae,qe,Yt,Vt,pr){var Sr;if(qe&&(Sr=Vt?qe(I,Yt,Vt,pr):qe(I)),Sr!==void 0)return Sr;if(!ri(I))return I;var dr=bo(I);if(dr){if(Sr=xr(I),!G)return ee(I,Sr)}else{var Ar=Ht(I),Jr=Ar==R||Ar==C;if(Rn(I))return An(I,G);if(Ar==_||Ar==l||Jr&&!Vt){if(lt(I))return Vt?I:{};if(Sr=Zr(Jr?{}:I),!G)return Se(I,on(Sr,I))}else{if(!le[Ar])return Vt?I:{};Sr=vn(I,Ar,On,G)}}pr||(pr=new yr);var In=pr.get(I);if(In)return In;if(pr.set(I,Sr),!dr)var Vr=ae?He(I):Or(I);return We(Vr||I,function(Br,Qr){Vr&&(Qr=Br,Br=I[Qr]),Xn(Sr,Qr,On(Br,G,ae,qe,Qr,I,pr))}),Sr}function wn(I){return ri(I)?At(I):{}}function hi(I,G,ae){var qe=G(I);return bo(I)?qe:De(qe,ae(I))}function Si(I){return Me.call(I)}function Ci(I){if(!ri(I)||Bn(I))return!1;var G=_o(I)||lt(I)?pt:ce;return G.test(Xr(I))}function kn(I){if(!wi(I))return ge(I);var G=[];for(var ae in Object(I))St.call(I,ae)&&ae!="constructor"&&G.push(ae);return G}function An(I,G){if(G)return I.slice();var ae=new I.constructor(I.length);return I.copy(ae),ae}function un(I){var G=new I.constructor(I.byteLength);return new Dt(G).set(new Dt(I)),G}function Qn(I,G){var ae=G?un(I.buffer):I.buffer;return new I.constructor(ae,I.byteOffset,I.byteLength)}function sn(I,G,ae){var qe=G?ae($e(I),!0):$e(I);return Ae(qe,je,new I.constructor)}function pn(I){var G=new I.constructor(I.source,be.exec(I));return G.lastIndex=I.lastIndex,G}function w(I,G,ae){var qe=G?ae(Le(I),!0):Le(I);return Ae(qe,ze,new I.constructor)}function N(I){return qt?Object(qt.call(I)):{}}function V(I,G){var ae=G?un(I.buffer):I.buffer;return new I.constructor(ae,I.byteOffset,I.length)}function ee(I,G){var ae=-1,qe=I.length;for(G||(G=Array(qe));++ae<qe;)G[ae]=I[ae];return G}function Ee(I,G,ae,qe){ae||(ae={});for(var Yt=-1,Vt=G.length;++Yt<Vt;){var pr=G[Yt],Sr=void 0;Xn(ae,pr,Sr===void 0?I[pr]:Sr)}return ae}function Se(I,G){return Ee(I,zt(I),G)}function He(I){return hi(I,Or,zt)}function st(I,G){var ae=I.__data__;return li(G)?ae[typeof G=="string"?"string":"hash"]:ae.map}function Pt(I,G){var ae=Ge(I,G);return Ci(ae)?ae:void 0}var zt=kr?ht(kr,Object):wr,Ht=Si;(ne&&Ht(new ne(new ArrayBuffer(1)))!=z||Je&&Ht(new Je)!=b||ct&&Ht(ct.resolve())!=D||tt&&Ht(new tt)!=x||Re&&Ht(new Re)!=H)&&(Ht=function(I){var G=Me.call(I),ae=G==_?I.constructor:void 0,qe=ae?Xr(ae):void 0;if(qe)switch(qe){case Rt:return z;case vt:return b;case Mt:return D;case Qt:return x;case rr:return H}return G});function xr(I){var G=I.length,ae=I.constructor(G);return G&&typeof I[0]=="string"&&St.call(I,"index")&&(ae.index=I.index,ae.input=I.input),ae}function Zr(I){return typeof I.constructor=="function"&&!wi(I)?wn(Ze(I)):{}}function vn(I,G,ae,qe){var Yt=I.constructor;switch(G){case q:return un(I);case f:case g:return new Yt(+I);case z:return Qn(I,qe);case K:case ue:case X:case de:case j:case re:case J:case Q:case he:return V(I,qe);case b:return sn(I,qe,ae);case S:case L:return new Yt(I);case E:return pn(I);case x:return w(I,qe,ae);case O:return N(I)}}function yn(I,G){return G=G??i,!!G&&(typeof I=="number"||ke.test(I))&&I>-1&&I%1==0&&I<G}function li(I){var G=typeof I;return G=="string"||G=="number"||G=="symbol"||G=="boolean"?I!=="__proto__":I===null}function Bn(I){return!!wt&&wt in I}function wi(I){var G=I&&I.constructor,ae=typeof G=="function"&&G.prototype||Ct;return I===ae}function Xr(I){if(I!=null){try{return bt.call(I)}catch{}try{return I+""}catch{}}return""}function pi(I){return On(I,!0,!0)}function Hn(I,G){return I===G||I!==I&&G!==G}function ei(I){return no(I)&&St.call(I,"callee")&&(!jt.call(I,"callee")||Me.call(I)==l)}var bo=Array.isArray;function ro(I){return I!=null&&ti(I.length)&&!_o(I)}function no(I){return $i(I)&&ro(I)}var Rn=Cr||Mr;function _o(I){var G=ri(I)?Me.call(I):"";return G==R||G==C}function ti(I){return typeof I=="number"&&I>-1&&I%1==0&&I<=i}function ri(I){var G=typeof I;return!!I&&(G=="object"||G=="function")}function $i(I){return!!I&&typeof I=="object"}function Or(I){return ro(I)?En(I):kn(I)}function wr(){return[]}function Mr(){return!1}r.exports=pi}(jf,jf.exports)),jf.exports}var Bf={exports:{}};Bf.exports;var F0;function Ex(){return F0||(F0=1,function(r,e){var t=200,n="__lodash_hash_undefined__",i=1,l=2,u=9007199254740991,f="[object Arguments]",g="[object Array]",m="[object AsyncFunction]",R="[object Boolean]",C="[object Date]",b="[object Error]",S="[object Function]",_="[object GeneratorFunction]",D="[object Map]",E="[object Number]",x="[object Null]",L="[object Object]",O="[object Promise]",H="[object Proxy]",q="[object RegExp]",z="[object Set]",K="[object String]",ue="[object Symbol]",X="[object Undefined]",de="[object WeakMap]",j="[object ArrayBuffer]",re="[object DataView]",J="[object Float32Array]",Q="[object Float64Array]",he="[object Int8Array]",me="[object Int16Array]",be="[object Int32Array]",ce="[object Uint8Array]",ke="[object Uint8ClampedArray]",le="[object Uint16Array]",oe="[object Uint32Array]",ve=/[\\^$.*+?()[\]{}|]/g,Oe=/^\[object .+?Constructor\]$/,et=/^(?:0|[1-9]\d*)$/,we={};we[J]=we[Q]=we[he]=we[me]=we[be]=we[ce]=we[ke]=we[le]=we[oe]=!0,we[f]=we[g]=we[j]=we[R]=we[re]=we[C]=we[b]=we[S]=we[D]=we[E]=we[L]=we[q]=we[z]=we[K]=we[de]=!1;var Pe=typeof bi=="object"&&bi&&bi.Object===Object&&bi,je=typeof self=="object"&&self&&self.Object===Object&&self,ze=Pe||je||Function("return this")(),We=e&&!e.nodeType&&e,De=We&&!0&&r&&!r.nodeType&&r,Ae=De&&De.exports===We,_e=Ae&&Pe.process,Ge=function(){try{return _e&&_e.binding&&_e.binding("util")}catch{}}(),lt=Ge&&Ge.isTypedArray;function $e(I,G){for(var ae=-1,qe=I==null?0:I.length,Yt=0,Vt=[];++ae<qe;){var pr=I[ae];G(pr,ae,I)&&(Vt[Yt++]=pr)}return Vt}function ht(I,G){for(var ae=-1,qe=G.length,Yt=I.length;++ae<qe;)I[Yt+ae]=G[ae];return I}function Le(I,G){for(var ae=-1,qe=I==null?0:I.length;++ae<qe;)if(G(I[ae],ae,I))return!0;return!1}function Xe(I,G){for(var ae=-1,qe=Array(I);++ae<I;)qe[ae]=G(ae);return qe}function it(I){return function(G){return I(G)}}function Ct(I,G){return I.has(G)}function _t(I,G){return I==null?void 0:I[G]}function wt(I){var G=-1,ae=Array(I.size);return I.forEach(function(qe,Yt){ae[++G]=[Yt,qe]}),ae}function bt(I,G){return function(ae){return I(G(ae))}}function St(I){var G=-1,ae=Array(I.size);return I.forEach(function(qe){ae[++G]=qe}),ae}var Me=Array.prototype,pt=Function.prototype,Et=Object.prototype,mt=ze["__core-js_shared__"],Dt=pt.toString,Ze=Et.hasOwnProperty,At=function(){var I=/[^.]+$/.exec(mt&&mt.keys&&mt.keys.IE_PROTO||"");return I?"Symbol(src)_1."+I:""}(),jt=Et.toString,mr=RegExp("^"+Dt.call(Ze).replace(ve,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),kr=Ae?ze.Buffer:void 0,Cr=ze.Symbol,ge=ze.Uint8Array,ne=Et.propertyIsEnumerable,Je=Me.splice,ct=Cr?Cr.toStringTag:void 0,tt=Object.getOwnPropertySymbols,Re=kr?kr.isBuffer:void 0,xt=bt(Object.keys,Object),Rt=zt(ze,"DataView"),vt=zt(ze,"Map"),Mt=zt(ze,"Promise"),Qt=zt(ze,"Set"),rr=zt(ze,"WeakMap"),Bt=zt(Object,"create"),qt=Xr(Rt),sr=Xr(vt),Qe=Xr(Mt),Tt=Xr(Qt),yt=Xr(rr),Lt=Cr?Cr.prototype:void 0,vr=Lt?Lt.valueOf:void 0;function Y(I){var G=-1,ae=I==null?0:I.length;for(this.clear();++G<ae;){var qe=I[G];this.set(qe[0],qe[1])}}function pe(){this.__data__=Bt?Bt(null):{},this.size=0}function Be(I){var G=this.has(I)&&delete this.__data__[I];return this.size-=G?1:0,G}function ot(I){var G=this.__data__;if(Bt){var ae=G[I];return ae===n?void 0:ae}return Ze.call(G,I)?G[I]:void 0}function Ot(I){var G=this.__data__;return Bt?G[I]!==void 0:Ze.call(G,I)}function $t(I,G){var ae=this.__data__;return this.size+=this.has(I)?0:1,ae[I]=Bt&&G===void 0?n:G,this}Y.prototype.clear=pe,Y.prototype.delete=Be,Y.prototype.get=ot,Y.prototype.has=Ot,Y.prototype.set=$t;function kt(I){var G=-1,ae=I==null?0:I.length;for(this.clear();++G<ae;){var qe=I[G];this.set(qe[0],qe[1])}}function Ut(){this.__data__=[],this.size=0}function nr(I){var G=this.__data__,ae=An(G,I);if(ae<0)return!1;var qe=G.length-1;return ae==qe?G.pop():Je.call(G,ae,1),--this.size,!0}function ir(I){var G=this.__data__,ae=An(G,I);return ae<0?void 0:G[ae][1]}function fr(I){return An(this.__data__,I)>-1}function Ur(I,G){var ae=this.__data__,qe=An(ae,I);return qe<0?(++this.size,ae.push([I,G])):ae[qe][1]=G,this}kt.prototype.clear=Ut,kt.prototype.delete=nr,kt.prototype.get=ir,kt.prototype.has=fr,kt.prototype.set=Ur;function yr(I){var G=-1,ae=I==null?0:I.length;for(this.clear();++G<ae;){var qe=I[G];this.set(qe[0],qe[1])}}function Kn(){this.size=0,this.__data__={hash:new Y,map:new(vt||kt),string:new Y}}function Cn(I){var G=Pt(this,I).delete(I);return this.size-=G?1:0,G}function Dn(I){return Pt(this,I).get(I)}function Yr(I){return Pt(this,I).has(I)}function Yn(I,G){var ae=Pt(this,I),qe=ae.size;return ae.set(I,G),this.size+=ae.size==qe?0:1,this}yr.prototype.clear=Kn,yr.prototype.delete=Cn,yr.prototype.get=Dn,yr.prototype.has=Yr,yr.prototype.set=Yn;function En(I){var G=-1,ae=I==null?0:I.length;for(this.__data__=new yr;++G<ae;)this.add(I[G])}function Xn(I){return this.__data__.set(I,n),this}function Jn(I){return this.__data__.has(I)}En.prototype.add=En.prototype.push=Xn,En.prototype.has=Jn;function on(I){var G=this.__data__=new kt(I);this.size=G.size}function On(){this.__data__=new kt,this.size=0}function wn(I){var G=this.__data__,ae=G.delete(I);return this.size=G.size,ae}function hi(I){return this.__data__.get(I)}function Si(I){return this.__data__.has(I)}function Ci(I,G){var ae=this.__data__;if(ae instanceof kt){var qe=ae.__data__;if(!vt||qe.length<t-1)return qe.push([I,G]),this.size=++ae.size,this;ae=this.__data__=new yr(qe)}return ae.set(I,G),this.size=ae.size,this}on.prototype.clear=On,on.prototype.delete=wn,on.prototype.get=hi,on.prototype.has=Si,on.prototype.set=Ci;function kn(I,G){var ae=ei(I),qe=!ae&&Hn(I),Yt=!ae&&!qe&&ro(I),Vt=!ae&&!qe&&!Yt&&$i(I),pr=ae||qe||Yt||Vt,Sr=pr?Xe(I.length,String):[],dr=Sr.length;for(var Ar in I)Ze.call(I,Ar)&&!(pr&&(Ar=="length"||Yt&&(Ar=="offset"||Ar=="parent")||Vt&&(Ar=="buffer"||Ar=="byteLength"||Ar=="byteOffset")||vn(Ar,dr)))&&Sr.push(Ar);return Sr}function An(I,G){for(var ae=I.length;ae--;)if(pi(I[ae][0],G))return ae;return-1}function un(I,G,ae){var qe=G(I);return ei(I)?qe:ht(qe,ae(I))}function Qn(I){return I==null?I===void 0?X:x:ct&&ct in Object(I)?Ht(I):wi(I)}function sn(I){return ri(I)&&Qn(I)==f}function pn(I,G,ae,qe,Yt){return I===G?!0:I==null||G==null||!ri(I)&&!ri(G)?I!==I&&G!==G:w(I,G,ae,qe,pn,Yt)}function w(I,G,ae,qe,Yt,Vt){var pr=ei(I),Sr=ei(G),dr=pr?g:Zr(I),Ar=Sr?g:Zr(G);dr=dr==f?L:dr,Ar=Ar==f?L:Ar;var Jr=dr==L,In=Ar==L,Vr=dr==Ar;if(Vr&&ro(I)){if(!ro(G))return!1;pr=!0,Jr=!1}if(Vr&&!Jr)return Vt||(Vt=new on),pr||$i(I)?Ee(I,G,ae,qe,Yt,Vt):Se(I,G,dr,ae,qe,Yt,Vt);if(!(ae&i)){var Br=Jr&&Ze.call(I,"__wrapped__"),Qr=In&&Ze.call(G,"__wrapped__");if(Br||Qr){var ci=Br?I.value():I,gi=Qr?G.value():G;return Vt||(Vt=new on),Yt(ci,gi,ae,qe,Vt)}}return Vr?(Vt||(Vt=new on),He(I,G,ae,qe,Yt,Vt)):!1}function N(I){if(!ti(I)||li(I))return!1;var G=Rn(I)?mr:Oe;return G.test(Xr(I))}function V(I){return ri(I)&&_o(I.length)&&!!we[Qn(I)]}function ee(I){if(!Bn(I))return xt(I);var G=[];for(var ae in Object(I))Ze.call(I,ae)&&ae!="constructor"&&G.push(ae);return G}function Ee(I,G,ae,qe,Yt,Vt){var pr=ae&i,Sr=I.length,dr=G.length;if(Sr!=dr&&!(pr&&dr>Sr))return!1;var Ar=Vt.get(I);if(Ar&&Vt.get(G))return Ar==G;var Jr=-1,In=!0,Vr=ae&l?new En:void 0;for(Vt.set(I,G),Vt.set(G,I);++Jr<Sr;){var Br=I[Jr],Qr=G[Jr];if(qe)var ci=pr?qe(Qr,Br,Jr,G,I,Vt):qe(Br,Qr,Jr,I,G,Vt);if(ci!==void 0){if(ci)continue;In=!1;break}if(Vr){if(!Le(G,function(gi,qn){if(!Ct(Vr,qn)&&(Br===gi||Yt(Br,gi,ae,qe,Vt)))return Vr.push(qn)})){In=!1;break}}else if(!(Br===Qr||Yt(Br,Qr,ae,qe,Vt))){In=!1;break}}return Vt.delete(I),Vt.delete(G),In}function Se(I,G,ae,qe,Yt,Vt,pr){switch(ae){case re:if(I.byteLength!=G.byteLength||I.byteOffset!=G.byteOffset)return!1;I=I.buffer,G=G.buffer;case j:return!(I.byteLength!=G.byteLength||!Vt(new ge(I),new ge(G)));case R:case C:case E:return pi(+I,+G);case b:return I.name==G.name&&I.message==G.message;case q:case K:return I==G+"";case D:var Sr=wt;case z:var dr=qe&i;if(Sr||(Sr=St),I.size!=G.size&&!dr)return!1;var Ar=pr.get(I);if(Ar)return Ar==G;qe|=l,pr.set(I,G);var Jr=Ee(Sr(I),Sr(G),qe,Yt,Vt,pr);return pr.delete(I),Jr;case ue:if(vr)return vr.call(I)==vr.call(G)}return!1}function He(I,G,ae,qe,Yt,Vt){var pr=ae&i,Sr=st(I),dr=Sr.length,Ar=st(G),Jr=Ar.length;if(dr!=Jr&&!pr)return!1;for(var In=dr;In--;){var Vr=Sr[In];if(!(pr?Vr in G:Ze.call(G,Vr)))return!1}var Br=Vt.get(I);if(Br&&Vt.get(G))return Br==G;var Qr=!0;Vt.set(I,G),Vt.set(G,I);for(var ci=pr;++In<dr;){Vr=Sr[In];var gi=I[Vr],qn=G[Vr];if(qe)var xo=pr?qe(qn,gi,Vr,G,I,Vt):qe(gi,qn,Vr,I,G,Vt);if(!(xo===void 0?gi===qn||Yt(gi,qn,ae,qe,Vt):xo)){Qr=!1;break}ci||(ci=Vr=="constructor")}if(Qr&&!ci){var Ui=I.constructor,an=G.constructor;Ui!=an&&"constructor"in I&&"constructor"in G&&!(typeof Ui=="function"&&Ui instanceof Ui&&typeof an=="function"&&an instanceof an)&&(Qr=!1)}return Vt.delete(I),Vt.delete(G),Qr}function st(I){return un(I,Or,xr)}function Pt(I,G){var ae=I.__data__;return yn(G)?ae[typeof G=="string"?"string":"hash"]:ae.map}function zt(I,G){var ae=_t(I,G);return N(ae)?ae:void 0}function Ht(I){var G=Ze.call(I,ct),ae=I[ct];try{I[ct]=void 0;var qe=!0}catch{}var Yt=jt.call(I);return qe&&(G?I[ct]=ae:delete I[ct]),Yt}var xr=tt?function(I){return I==null?[]:(I=Object(I),$e(tt(I),function(G){return ne.call(I,G)}))}:wr,Zr=Qn;(Rt&&Zr(new Rt(new ArrayBuffer(1)))!=re||vt&&Zr(new vt)!=D||Mt&&Zr(Mt.resolve())!=O||Qt&&Zr(new Qt)!=z||rr&&Zr(new rr)!=de)&&(Zr=function(I){var G=Qn(I),ae=G==L?I.constructor:void 0,qe=ae?Xr(ae):"";if(qe)switch(qe){case qt:return re;case sr:return D;case Qe:return O;case Tt:return z;case yt:return de}return G});function vn(I,G){return G=G??u,!!G&&(typeof I=="number"||et.test(I))&&I>-1&&I%1==0&&I<G}function yn(I){var G=typeof I;return G=="string"||G=="number"||G=="symbol"||G=="boolean"?I!=="__proto__":I===null}function li(I){return!!At&&At in I}function Bn(I){var G=I&&I.constructor,ae=typeof G=="function"&&G.prototype||Et;return I===ae}function wi(I){return jt.call(I)}function Xr(I){if(I!=null){try{return Dt.call(I)}catch{}try{return I+""}catch{}}return""}function pi(I,G){return I===G||I!==I&&G!==G}var Hn=sn(function(){return arguments}())?sn:function(I){return ri(I)&&Ze.call(I,"callee")&&!ne.call(I,"callee")},ei=Array.isArray;function bo(I){return I!=null&&_o(I.length)&&!Rn(I)}var ro=Re||Mr;function no(I,G){return pn(I,G)}function Rn(I){if(!ti(I))return!1;var G=Qn(I);return G==S||G==_||G==m||G==H}function _o(I){return typeof I=="number"&&I>-1&&I%1==0&&I<=u}function ti(I){var G=typeof I;return I!=null&&(G=="object"||G=="function")}function ri(I){return I!=null&&typeof I=="object"}var $i=lt?it(lt):V;function Or(I){return bo(I)?kn(I):ee(I)}function wr(){return[]}function Mr(){return!1}r.exports=no}(Bf,Bf.exports)),Bf.exports}var Pd={},j0;function gM(){if(j0)return Pd;j0=1,Object.defineProperty(Pd,"__esModule",{value:!0});const r=Tx(),e=Ex();var t;return function(n){function i(g={},m={},R=!1){typeof g!="object"&&(g={}),typeof m!="object"&&(m={});let C=r(m);R||(C=Object.keys(C).reduce((b,S)=>(C[S]!=null&&(b[S]=C[S]),b),{}));for(const b in g)g[b]!==void 0&&m[b]===void 0&&(C[b]=g[b]);return Object.keys(C).length>0?C:void 0}n.compose=i;function l(g={},m={}){typeof g!="object"&&(g={}),typeof m!="object"&&(m={});const R=Object.keys(g).concat(Object.keys(m)).reduce((C,b)=>(e(g[b],m[b])||(C[b]=m[b]===void 0?null:m[b]),C),{});return Object.keys(R).length>0?R:void 0}n.diff=l;function u(g={},m={}){g=g||{};const R=Object.keys(m).reduce((C,b)=>(m[b]!==g[b]&&g[b]!==void 0&&(C[b]=m[b]),C),{});return Object.keys(g).reduce((C,b)=>(g[b]!==m[b]&&m[b]===void 0&&(C[b]=null),C),R)}n.invert=u;function f(g,m,R=!1){if(typeof g!="object")return m;if(typeof m!="object")return;if(!R)return m;const C=Object.keys(m).reduce((b,S)=>(g[S]===void 0&&(b[S]=m[S]),b),{});return Object.keys(C).length>0?C:void 0}n.transform=f}(t||(t={})),Pd.default=t,Pd}var Nd={},B0;function kx(){if(B0)return Nd;B0=1,Object.defineProperty(Nd,"__esModule",{value:!0});var r;return function(e){function t(n){return typeof n.delete=="number"?n.delete:typeof n.retain=="number"?n.retain:typeof n.retain=="object"&&n.retain!==null?1:typeof n.insert=="string"?n.insert.length:1}e.length=t}(r||(r={})),Nd.default=r,Nd}var Fd={},H0;function mM(){if(H0)return Fd;H0=1,Object.defineProperty(Fd,"__esModule",{value:!0});const r=kx();class e{constructor(n){this.ops=n,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(n){n||(n=1/0);const i=this.ops[this.index];if(i){const l=this.offset,u=r.default.length(i);if(n>=u-l?(n=u-l,this.index+=1,this.offset=0):this.offset+=n,typeof i.delete=="number")return{delete:n};{const f={};return i.attributes&&(f.attributes=i.attributes),typeof i.retain=="number"?f.retain=n:typeof i.retain=="object"&&i.retain!==null?f.retain=i.retain:typeof i.insert=="string"?f.insert=i.insert.substr(l,n):f.insert=i.insert,f}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?r.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const n=this.ops[this.index];return n?typeof n.delete=="number"?"delete":typeof n.retain=="number"||typeof n.retain=="object"&&n.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{const n=this.offset,i=this.index,l=this.next(),u=this.ops.slice(this.index);return this.offset=n,this.index=i,[l].concat(u)}}else return[]}}return Fd.default=e,Fd}var q0;function vM(){return q0||(q0=1,function(r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.AttributeMap=e.OpIterator=e.Op=void 0;const t=pM(),n=Tx(),i=Ex(),l=gM();e.AttributeMap=l.default;const u=kx();e.Op=u.default;const f=mM();e.OpIterator=f.default;const g="\0",m=(C,b)=>{if(typeof C!="object"||C===null)throw new Error(`cannot retain a ${typeof C}`);if(typeof b!="object"||b===null)throw new Error(`cannot retain a ${typeof b}`);const S=Object.keys(C)[0];if(!S||S!==Object.keys(b)[0])throw new Error(`embed types not matched: ${S} != ${Object.keys(b)[0]}`);return[S,C[S],b[S]]};class R{constructor(b){Array.isArray(b)?this.ops=b:b!=null&&Array.isArray(b.ops)?this.ops=b.ops:this.ops=[]}static registerEmbed(b,S){this.handlers[b]=S}static unregisterEmbed(b){delete this.handlers[b]}static getHandler(b){const S=this.handlers[b];if(!S)throw new Error(`no handlers for embed type "${b}"`);return S}insert(b,S){const _={};return typeof b=="string"&&b.length===0?this:(_.insert=b,S!=null&&typeof S=="object"&&Object.keys(S).length>0&&(_.attributes=S),this.push(_))}delete(b){return b<=0?this:this.push({delete:b})}retain(b,S){if(typeof b=="number"&&b<=0)return this;const _={retain:b};return S!=null&&typeof S=="object"&&Object.keys(S).length>0&&(_.attributes=S),this.push(_)}push(b){let S=this.ops.length,_=this.ops[S-1];if(b=n(b),typeof _=="object"){if(typeof b.delete=="number"&&typeof _.delete=="number")return this.ops[S-1]={delete:_.delete+b.delete},this;if(typeof _.delete=="number"&&b.insert!=null&&(S-=1,_=this.ops[S-1],typeof _!="object"))return this.ops.unshift(b),this;if(i(b.attributes,_.attributes)){if(typeof b.insert=="string"&&typeof _.insert=="string")return this.ops[S-1]={insert:_.insert+b.insert},typeof b.attributes=="object"&&(this.ops[S-1].attributes=b.attributes),this;if(typeof b.retain=="number"&&typeof _.retain=="number")return this.ops[S-1]={retain:_.retain+b.retain},typeof b.attributes=="object"&&(this.ops[S-1].attributes=b.attributes),this}}return S===this.ops.length?this.ops.push(b):this.ops.splice(S,0,b),this}chop(){const b=this.ops[this.ops.length-1];return b&&typeof b.retain=="number"&&!b.attributes&&this.ops.pop(),this}filter(b){return this.ops.filter(b)}forEach(b){this.ops.forEach(b)}map(b){return this.ops.map(b)}partition(b){const S=[],_=[];return this.forEach(D=>{(b(D)?S:_).push(D)}),[S,_]}reduce(b,S){return this.ops.reduce(b,S)}changeLength(){return this.reduce((b,S)=>S.insert?b+u.default.length(S):S.delete?b-S.delete:b,0)}length(){return this.reduce((b,S)=>b+u.default.length(S),0)}slice(b=0,S=1/0){const _=[],D=new f.default(this.ops);let E=0;for(;E<S&&D.hasNext();){let x;E<b?x=D.next(b-E):(x=D.next(S-E),_.push(x)),E+=u.default.length(x)}return new R(_)}compose(b){const S=new f.default(this.ops),_=new f.default(b.ops),D=[],E=_.peek();if(E!=null&&typeof E.retain=="number"&&E.attributes==null){let L=E.retain;for(;S.peekType()==="insert"&&S.peekLength()<=L;)L-=S.peekLength(),D.push(S.next());E.retain-L>0&&_.next(E.retain-L)}const x=new R(D);for(;S.hasNext()||_.hasNext();)if(_.peekType()==="insert")x.push(_.next());else if(S.peekType()==="delete")x.push(S.next());else{const L=Math.min(S.peekLength(),_.peekLength()),O=S.next(L),H=_.next(L);if(H.retain){const q={};if(typeof O.retain=="number")q.retain=typeof H.retain=="number"?L:H.retain;else if(typeof H.retain=="number")O.retain==null?q.insert=O.insert:q.retain=O.retain;else{const K=O.retain==null?"insert":"retain",[ue,X,de]=m(O[K],H.retain),j=R.getHandler(ue);q[K]={[ue]:j.compose(X,de,K==="retain")}}const z=l.default.compose(O.attributes,H.attributes,typeof O.retain=="number");if(z&&(q.attributes=z),x.push(q),!_.hasNext()&&i(x.ops[x.ops.length-1],q)){const K=new R(S.rest());return x.concat(K).chop()}}else typeof H.delete=="number"&&(typeof O.retain=="number"||typeof O.retain=="object"&&O.retain!==null)&&x.push(H)}return x.chop()}concat(b){const S=new R(this.ops.slice());return b.ops.length>0&&(S.push(b.ops[0]),S.ops=S.ops.concat(b.ops.slice(1))),S}diff(b,S){if(this.ops===b.ops)return new R;const _=[this,b].map(O=>O.map(H=>{if(H.insert!=null)return typeof H.insert=="string"?H.insert:g;const q=O===b?"on":"with";throw new Error("diff() called "+q+" non-document")}).join("")),D=new R,E=t(_[0],_[1],S,!0),x=new f.default(this.ops),L=new f.default(b.ops);return E.forEach(O=>{let H=O[1].length;for(;H>0;){let q=0;switch(O[0]){case t.INSERT:q=Math.min(L.peekLength(),H),D.push(L.next(q));break;case t.DELETE:q=Math.min(H,x.peekLength()),x.next(q),D.delete(q);break;case t.EQUAL:q=Math.min(x.peekLength(),L.peekLength(),H);const z=x.next(q),K=L.next(q);i(z.insert,K.insert)?D.retain(q,l.default.diff(z.attributes,K.attributes)):D.push(K).delete(q);break}H-=q}}),D.chop()}eachLine(b,S=`
|
163
163
|
`){const _=new f.default(this.ops);let D=new R,E=0;for(;_.hasNext();){if(_.peekType()!=="insert")return;const x=_.peek(),L=u.default.length(x)-_.peekLength(),O=typeof x.insert=="string"?x.insert.indexOf(S,L)-L:-1;if(O<0)D.push(_.next());else if(O>0)D.push(_.next(O));else{if(b(D,_.next(1).attributes||{},E)===!1)return;E+=1,D=new R}}D.length()>0&&b(D,{},E)}invert(b){const S=new R;return this.reduce((_,D)=>{if(D.insert)S.delete(u.default.length(D));else{if(typeof D.retain=="number"&&D.attributes==null)return S.retain(D.retain),_+D.retain;if(D.delete||typeof D.retain=="number"){const E=D.delete||D.retain;return b.slice(_,_+E).forEach(L=>{D.delete?S.push(L):D.retain&&D.attributes&&S.retain(u.default.length(L),l.default.invert(D.attributes,L.attributes))}),_+E}else if(typeof D.retain=="object"&&D.retain!==null){const E=b.slice(_,_+1),x=new f.default(E.ops).next(),[L,O,H]=m(D.retain,x.insert),q=R.getHandler(L);return S.retain({[L]:q.invert(O,H)},l.default.invert(D.attributes,x.attributes)),_+1}}return _},0),S.chop()}transform(b,S=!1){if(S=!!S,typeof b=="number")return this.transformPosition(b,S);const _=b,D=new f.default(this.ops),E=new f.default(_.ops),x=new R;for(;D.hasNext()||E.hasNext();)if(D.peekType()==="insert"&&(S||E.peekType()!=="insert"))x.retain(u.default.length(D.next()));else if(E.peekType()==="insert")x.push(E.next());else{const L=Math.min(D.peekLength(),E.peekLength()),O=D.next(L),H=E.next(L);if(O.delete)continue;if(H.delete)x.push(H);else{const q=O.retain,z=H.retain;let K=typeof z=="object"&&z!==null?z:L;if(typeof q=="object"&&q!==null&&typeof z=="object"&&z!==null){const ue=Object.keys(q)[0];if(ue===Object.keys(z)[0]){const X=R.getHandler(ue);X&&(K={[ue]:X.transform(q[ue],z[ue],S)})}}x.retain(K,l.default.transform(O.attributes,H.attributes,S))}}return x.chop()}transformPosition(b,S=!1){S=!!S;const _=new f.default(this.ops);let D=0;for(;_.hasNext()&&D<=b;){const E=_.peekLength(),x=_.peekType();if(_.next(),x==="delete"){b-=Math.min(E,b-D);continue}else x==="insert"&&(D<b||!S)&&(b+=E);D+=E}return b}}R.Op=u.default,R.OpIterator=f.default,R.AttributeMap=l.default,R.handlers={},e.default=R,r.exports=R,r.exports.default=R}(Od,Od.exports)),Od.exports}var hs=vM();const Gt=al(hs);class Ws extends zo{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}}Ws.blotName="break";Ws.tagName="BR";let $s=class extends rh{};const yM={"&":"&","<":"<",">":">",'"':""","'":"'"};function ph(r){return r.replace(/[&<>"']/g,e=>yM[e])}const va=class va extends km{static compare(e,t){const n=va.order.indexOf(e),i=va.order.indexOf(t);return n>=0||i>=0?n-i:e===t?0:e<t?-1:1}formatAt(e,t,n,i){if(va.compare(this.statics.blotName,n)<0&&this.scroll.query(n,Jt.BLOT)){const l=this.isolate(e,t);i&&l.wrap(n,i)}else super.formatAt(e,t,n,i)}optimize(e){if(super.optimize(e),this.parent instanceof va&&va.compare(this.statics.blotName,this.parent.statics.blotName)>0){const t=this.parent.isolate(this.offset(),this.length());this.moveChildren(t),t.wrap(this)}}};ft(va,"allowedChildren",[va,Ws,zo,$s]),ft(va,"order",["cursor","inline","link","underline","strike","italic","bold","script","code"]);let wa=va;const z0=1;class ji extends Qf{constructor(){super(...arguments);ft(this,"cache",{})}delta(){return this.cache.delta==null&&(this.cache.delta=Rx(this)),this.cache.delta}deleteAt(t,n){super.deleteAt(t,n),this.cache={}}formatAt(t,n,i,l){n<=0||(this.scroll.query(i,Jt.BLOCK)?t+n===this.length()&&this.format(i,l):super.formatAt(t,Math.min(n,this.length()-t-1),i,l),this.cache={})}insertAt(t,n,i){if(i!=null){super.insertAt(t,n,i),this.cache={};return}if(n.length===0)return;const l=n.split(`
|
164
164
|
`),u=l.shift();u.length>0&&(t<this.length()-1||this.children.tail==null?super.insertAt(Math.min(t,this.length()-1),u):this.children.tail.insertAt(this.children.tail.length(),u),this.cache={});let f=this;l.reduce((g,m)=>(f=f.split(g,!0),f.insertAt(0,m),m.length),t+u.length)}insertBefore(t,n){const{head:i}=this.children;super.insertBefore(t,n),i instanceof Ws&&i.remove(),this.cache={}}length(){return this.cache.length==null&&(this.cache.length=super.length()+z0),this.cache.length}moveChildren(t,n){super.moveChildren(t,n),this.cache={}}optimize(t){super.optimize(t),this.cache={}}path(t){return super.path(t,!0)}removeChild(t){super.removeChild(t),this.cache={}}split(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(n&&(t===0||t>=this.length()-z0)){const l=this.clone();return t===0?(this.parent.insertBefore(l,this),this):(this.parent.insertBefore(l,this.next),l)}const i=super.split(t,n);return this.cache={},i}}ji.blotName="block";ji.tagName="P";ji.defaultChild=Ws;ji.allowedChildren=[Ws,wa,zo,$s];class ds extends zo{attach(){super.attach(),this.attributes=new dh(this.domNode)}delta(){return new Gt().insert(this.value(),{...this.formats(),...this.attributes.values()})}format(e,t){const n=this.scroll.query(e,Jt.BLOCK_ATTRIBUTE);n!=null&&this.attributes.attribute(n,t)}formatAt(e,t,n,i){this.format(n,i)}insertAt(e,t,n){if(n!=null){super.insertAt(e,t,n);return}const i=t.split(`
|
165
165
|
`),l=i.pop(),u=i.map(g=>{const m=this.scroll.create(ji.blotName);return m.insertAt(0,g),m}),f=this.split(e);u.forEach(g=>{this.parent.insertBefore(g,f)}),l&&this.parent.insertBefore(this.scroll.create("text",l),f)}}ds.scope=Jt.BLOCK_BLOT;function Rx(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return r.descendants(qi).reduce((t,n)=>n.length()===0?t:t.insert(n.value(),us(n,{},e)),new Gt).insert(`
|
166
|
-
`,us(r))}function us(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return r==null||("formats"in r&&typeof r.formats=="function"&&(e={...e,...r.formats()},t&&delete e["code-token"]),r.parent==null||r.parent.statics.blotName==="scroll"||r.parent.statics.scope!==r.statics.scope)?e:us(r.parent,e,t)}const cs=class cs extends zo{static value(){}constructor(e,t,n){super(e,t),this.selection=n,this.textNode=document.createTextNode(cs.CONTENTS),this.domNode.appendChild(this.textNode),this.savedLength=0}detach(){this.parent!=null&&this.parent.removeChild(this)}format(e,t){if(this.savedLength!==0){super.format(e,t);return}let n=this,i=0;for(;n!=null&&n.statics.scope!==Jt.BLOCK_BLOT;)i+=n.offset(n.parent),n=n.parent;n!=null&&(this.savedLength=cs.CONTENTS.length,n.optimize(),n.formatAt(i,cs.CONTENTS.length,e,t),this.savedLength=0)}index(e,t){return e===this.textNode?0:super.index(e,t)}length(){return this.savedLength}position(){return[this.textNode,this.textNode.data.length]}remove(){super.remove(),this.parent=null}restore(){if(this.selection.composing||this.parent==null)return null;const e=this.selection.getNativeRange();for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);const t=this.prev instanceof $s?this.prev:null,n=t?t.length():0,i=this.next instanceof $s?this.next:null,l=i?i.text:"",{textNode:u}=this,f=u.data.split(cs.CONTENTS).join("");u.data=cs.CONTENTS;let g;if(t)g=t,(f||i)&&(t.insertAt(t.length(),f+l),i&&i.remove());else if(i)g=i,i.insertAt(0,f);else{const m=document.createTextNode(f);g=this.scroll.create(m),this.parent.insertBefore(g,this)}if(this.remove(),e){const m=(b,S)=>t&&b===t.domNode?S:b===u?n+S-1:i&&b===i.domNode?n+f.length+S:null,R=m(e.start.node,e.start.offset),w=m(e.end.node,e.end.offset);if(R!==null&&w!==null)return{startNode:g.domNode,startOffset:R,endNode:g.domNode,endOffset:w}}return null}update(e,t){if(e.some(n=>n.type==="characterData"&&n.target===this.textNode)){const n=this.restore();n&&(t.range=n)}}optimize(e){super.optimize(e);let{parent:t}=this;for(;t;){if(t.domNode.tagName==="A"){this.savedLength=cs.CONTENTS.length,t.isolate(this.offset(t),this.length()).unwrap(),this.savedLength=0;break}t=t.parent}}value(){return""}};ft(cs,"blotName","cursor"),ft(cs,"className","ql-cursor"),ft(cs,"tagName","span"),ft(cs,"CONTENTS","\uFEFF");let Xu=cs;var ip={exports:{}},$0;function bM(){return $0||($0=1,function(r){var e=Object.prototype.hasOwnProperty,t="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(t=!1));function i(g,m,R){this.fn=g,this.context=m,this.once=R||!1}function l(g,m,R,w,b){if(typeof R!="function")throw new TypeError("The listener must be a function");var S=new i(R,w||g,b),_=t?t+m:m;return g._events[_]?g._events[_].fn?g._events[_]=[g._events[_],S]:g._events[_].push(S):(g._events[_]=S,g._eventsCount++),g}function u(g,m){--g._eventsCount===0?g._events=new n:delete g._events[m]}function f(){this._events=new n,this._eventsCount=0}f.prototype.eventNames=function(){var m=[],R,w;if(this._eventsCount===0)return m;for(w in R=this._events)e.call(R,w)&&m.push(t?w.slice(1):w);return Object.getOwnPropertySymbols?m.concat(Object.getOwnPropertySymbols(R)):m},f.prototype.listeners=function(m){var R=t?t+m:m,w=this._events[R];if(!w)return[];if(w.fn)return[w.fn];for(var b=0,S=w.length,_=new Array(S);b<S;b++)_[b]=w[b].fn;return _},f.prototype.listenerCount=function(m){var R=t?t+m:m,w=this._events[R];return w?w.fn?1:w.length:0},f.prototype.emit=function(m,R,w,b,S,_){var D=t?t+m:m;if(!this._events[D])return!1;var E=this._events[D],x=arguments.length,L,O;if(E.fn){switch(E.once&&this.removeListener(m,E.fn,void 0,!0),x){case 1:return E.fn.call(E.context),!0;case 2:return E.fn.call(E.context,R),!0;case 3:return E.fn.call(E.context,R,w),!0;case 4:return E.fn.call(E.context,R,w,b),!0;case 5:return E.fn.call(E.context,R,w,b,S),!0;case 6:return E.fn.call(E.context,R,w,b,S,_),!0}for(O=1,L=new Array(x-1);O<x;O++)L[O-1]=arguments[O];E.fn.apply(E.context,L)}else{var H=E.length,q;for(O=0;O<H;O++)switch(E[O].once&&this.removeListener(m,E[O].fn,void 0,!0),x){case 1:E[O].fn.call(E[O].context);break;case 2:E[O].fn.call(E[O].context,R);break;case 3:E[O].fn.call(E[O].context,R,w);break;case 4:E[O].fn.call(E[O].context,R,w,b);break;default:if(!L)for(q=1,L=new Array(x-1);q<x;q++)L[q-1]=arguments[q];E[O].fn.apply(E[O].context,L)}}return!0},f.prototype.on=function(m,R,w){return l(this,m,R,w,!1)},f.prototype.once=function(m,R,w){return l(this,m,R,w,!0)},f.prototype.removeListener=function(m,R,w,b){var S=t?t+m:m;if(!this._events[S])return this;if(!R)return u(this,S),this;var _=this._events[S];if(_.fn)_.fn===R&&(!b||_.once)&&(!w||_.context===w)&&u(this,S);else{for(var D=0,E=[],x=_.length;D<x;D++)(_[D].fn!==R||b&&!_[D].once||w&&_[D].context!==w)&&E.push(_[D]);E.length?this._events[S]=E.length===1?E[0]:E:u(this,S)}return this},f.prototype.removeAllListeners=function(m){var R;return m?(R=t?t+m:m,this._events[R]&&u(this,R)):(this._events=new n,this._eventsCount=0),this},f.prototype.off=f.prototype.removeListener,f.prototype.addListener=f.prototype.on,f.prefixed=t,f.EventEmitter=f,r.exports=f}(ip)),ip.exports}var _M=bM();const xM=al(_M),X1=new WeakMap,J1=["error","warn","log","info"];let Q1="warn";function Ix(r){if(Q1&&J1.indexOf(r)<=J1.indexOf(Q1)){for(var e=arguments.length,t=new Array(e>1?e-1:0),n=1;n<e;n++)t[n-1]=arguments[n];console[r](...t)}}function cl(r){return J1.reduce((e,t)=>(e[t]=Ix.bind(console,t,r),e),{})}cl.level=r=>{Q1=r};Ix.level=cl.level;const op=cl("quill:events"),SM=["selectionchange","mousedown","mouseup","click"];SM.forEach(r=>{document.addEventListener(r,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Array.from(document.querySelectorAll(".ql-container")).forEach(i=>{const l=X1.get(i);l&&l.emitter&&l.emitter.handleDOM(...t)})})});class Zt extends xM{constructor(){super(),this.domListeners={},this.on("error",op.error)}emit(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return op.log.call(op,...t),super.emit(...t)}handleDOM(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];(this.domListeners[e.type]||[]).forEach(l=>{let{node:u,handler:f}=l;(e.target===u||u.contains(e.target))&&f(e,...n)})}listenDOM(e,t,n){this.domListeners[e]||(this.domListeners[e]=[]),this.domListeners[e].push({node:t,handler:n})}}ft(Zt,"events",{EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_BLOT_MOUNT:"scroll-blot-mount",SCROLL_BLOT_UNMOUNT:"scroll-blot-unmount",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SCROLL_EMBED_UPDATE:"scroll-embed-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change",COMPOSITION_BEFORE_START:"composition-before-start",COMPOSITION_START:"composition-start",COMPOSITION_BEFORE_END:"composition-before-end",COMPOSITION_END:"composition-end"}),ft(Zt,"sources",{API:"api",SILENT:"silent",USER:"user"});const sp=cl("quill:selection");class Jc{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.index=e,this.length=t}}class CM{constructor(e,t){this.emitter=t,this.scroll=e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=this.scroll.create("cursor",this),this.savedRange=new Jc(0,0),this.lastRange=this.savedRange,this.lastNative=null,this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,()=>{!this.mouseDown&&!this.composing&&setTimeout(this.update.bind(this,Zt.sources.USER),1)}),this.emitter.on(Zt.events.SCROLL_BEFORE_UPDATE,()=>{if(!this.hasFocus())return;const n=this.getNativeRange();n!=null&&n.start.node!==this.cursor.textNode&&this.emitter.once(Zt.events.SCROLL_UPDATE,(i,l)=>{try{this.root.contains(n.start.node)&&this.root.contains(n.end.node)&&this.setNativeRange(n.start.node,n.start.offset,n.end.node,n.end.offset);const u=l.some(f=>f.type==="characterData"||f.type==="childList"||f.type==="attributes"&&f.target===this.root);this.update(u?Zt.sources.SILENT:i)}catch{}})}),this.emitter.on(Zt.events.SCROLL_OPTIMIZE,(n,i)=>{if(i.range){const{startNode:l,startOffset:u,endNode:f,endOffset:g}=i.range;this.setNativeRange(l,u,f,g),this.update(Zt.sources.SILENT)}}),this.update(Zt.sources.SILENT)}handleComposition(){this.emitter.on(Zt.events.COMPOSITION_BEFORE_START,()=>{this.composing=!0}),this.emitter.on(Zt.events.COMPOSITION_END,()=>{if(this.composing=!1,this.cursor.parent){const e=this.cursor.restore();if(!e)return;setTimeout(()=>{this.setNativeRange(e.startNode,e.startOffset,e.endNode,e.endOffset)},1)}})}handleDragging(){this.emitter.listenDOM("mousedown",document.body,()=>{this.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,()=>{this.mouseDown=!1,this.update(Zt.sources.USER)})}focus(){this.hasFocus()||(this.root.focus({preventScroll:!0}),this.setRange(this.savedRange))}format(e,t){this.scroll.update();const n=this.getNativeRange();if(!(n==null||!n.native.collapsed||this.scroll.query(e,Jt.BLOCK))){if(n.start.node!==this.cursor.textNode){const i=this.scroll.find(n.start.node,!1);if(i==null)return;if(i instanceof qi){const l=i.split(n.start.offset);i.parent.insertBefore(this.cursor,l)}else i.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}getBounds(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const n=this.scroll.length();e=Math.min(e,n-1),t=Math.min(e+t,n-1)-e;let i,[l,u]=this.scroll.leaf(e);if(l==null)return null;if(t>0&&u===l.length()){const[R]=this.scroll.leaf(e+1);if(R){const[w]=this.scroll.line(e),[b]=this.scroll.line(e+1);w===b&&(l=R,u=0)}}[i,u]=l.position(u,!0);const f=document.createRange();if(t>0)return f.setStart(i,u),[l,u]=this.scroll.leaf(e+t),l==null?null:([i,u]=l.position(u,!0),f.setEnd(i,u),f.getBoundingClientRect());let g="left",m;if(i instanceof Text){if(!i.data.length)return null;u<i.data.length?(f.setStart(i,u),f.setEnd(i,u+1)):(f.setStart(i,u-1),f.setEnd(i,u),g="right"),m=f.getBoundingClientRect()}else{if(!(l.domNode instanceof Element))return null;m=l.domNode.getBoundingClientRect(),u>0&&(g="right")}return{bottom:m.top+m.height,height:m.height,left:m[g],right:m[g],top:m.top,width:0}}getNativeRange(){const e=document.getSelection();if(e==null||e.rangeCount<=0)return null;const t=e.getRangeAt(0);if(t==null)return null;const n=this.normalizeNative(t);return sp.info("getNativeRange",n),n}getRange(){const e=this.scroll.domNode;if("isConnected"in e&&!e.isConnected)return[null,null];const t=this.getNativeRange();return t==null?[null,null]:[this.normalizedToRange(t),t]}hasFocus(){return document.activeElement===this.root||document.activeElement!=null&&ap(this.root,document.activeElement)}normalizedToRange(e){const t=[[e.start.node,e.start.offset]];e.native.collapsed||t.push([e.end.node,e.end.offset]);const n=t.map(u=>{const[f,g]=u,m=this.scroll.find(f,!0),R=m.offset(this.scroll);return g===0?R:m instanceof qi?R+m.index(f,g):R+m.length()}),i=Math.min(Math.max(...n),this.scroll.length()-1),l=Math.min(i,...n);return new Jc(l,i-l)}normalizeNative(e){if(!ap(this.root,e.startContainer)||!e.collapsed&&!ap(this.root,e.endContainer))return null;const t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach(n=>{let{node:i,offset:l}=n;for(;!(i instanceof Text)&&i.childNodes.length>0;)if(i.childNodes.length>l)i=i.childNodes[l],l=0;else if(i.childNodes.length===l)i=i.lastChild,i instanceof Text?l=i.data.length:i.childNodes.length>0?l=i.childNodes.length:l=i.childNodes.length+1;else break;n.node=i,n.offset=l}),t}rangeToNative(e){const t=this.scroll.length(),n=(i,l)=>{i=Math.min(t-1,i);const[u,f]=this.scroll.leaf(i);return u?u.position(f,l):[null,-1]};return[...n(e.index,!1),...n(e.index+e.length,!0)]}setNativeRange(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:t,l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(sp.info("setNativeRange",e,t,n,i),e!=null&&(this.root.parentNode==null||e.parentNode==null||n.parentNode==null))return;const u=document.getSelection();if(u!=null)if(e!=null){this.hasFocus()||this.root.focus({preventScroll:!0});const{native:f}=this.getNativeRange()||{};if(f==null||l||e!==f.startContainer||t!==f.startOffset||n!==f.endContainer||i!==f.endOffset){e instanceof Element&&e.tagName==="BR"&&(t=Array.from(e.parentNode.childNodes).indexOf(e),e=e.parentNode),n instanceof Element&&n.tagName==="BR"&&(i=Array.from(n.parentNode.childNodes).indexOf(n),n=n.parentNode);const g=document.createRange();g.setStart(e,t),g.setEnd(n,i),u.removeAllRanges(),u.addRange(g)}}else u.removeAllRanges(),this.root.blur()}setRange(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Zt.sources.API;if(typeof t=="string"&&(n=t,t=!1),sp.info("setRange",e),e!=null){const i=this.rangeToNative(e);this.setNativeRange(...i,t)}else this.setNativeRange(null);this.update(n)}update(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Zt.sources.USER;const t=this.lastRange,[n,i]=this.getRange();if(this.lastRange=n,this.lastNative=i,this.lastRange!=null&&(this.savedRange=this.lastRange),!Em(t,this.lastRange)){if(!this.composing&&i!=null&&i.native.collapsed&&i.start.node!==this.cursor.textNode){const u=this.cursor.restore();u&&this.setNativeRange(u.startNode,u.startOffset,u.endNode,u.endOffset)}const l=[Zt.events.SELECTION_CHANGE,Uu(this.lastRange),Uu(t),e];this.emitter.emit(Zt.events.EDITOR_CHANGE,...l),e!==Zt.sources.SILENT&&this.emitter.emit(...l)}}}function ap(r,e){try{e.parentNode}catch{return!1}return r.contains(e)}const wM=/^[ -~]*$/;class AM{constructor(e){this.scroll=e,this.delta=this.getDelta()}applyDelta(e){this.scroll.update();let t=this.scroll.length();this.scroll.batchStart();const n=U0(e),i=new Gt;return EM(n.ops.slice()).reduce((u,f)=>{const g=hs.Op.length(f);let m=f.attributes||{},R=!1,w=!1;if(f.insert!=null){if(i.retain(g),typeof f.insert=="string"){const _=f.insert;w=!_.endsWith(`
|
167
|
-
`)&&(t<=u||!!this.scroll.descendant(ds,u)[0]),this.scroll.insertAt(u,_);const[D,E]=this.scroll.line(u);let x=Ql({},us(D));if(D instanceof ji){const[L]=D.descendant(qi,E);L&&(x=Ql(x,us(L)))}m=hs.AttributeMap.diff(x,m)||{}}else if(typeof f.insert=="object"){const _=Object.keys(f.insert)[0];if(_==null)return u;const D=this.scroll.query(_,Jt.INLINE)!=null;if(D)(t<=u||this.scroll.descendant(ds,u)[0])&&(
|
168
|
-
`&&(R=!0):E instanceof zo&&E.statics.scope===Jt.INLINE_BLOT&&(R=!0)}if(this.scroll.insertAt(u,_,f.insert[_]),D){const[E]=this.scroll.descendant(qi,u);if(E){const x=Ql({},us(E));m=hs.AttributeMap.diff(x,m)||{}}}}t+=g}else if(i.push(f),f.retain!==null&&typeof f.retain=="object"){const _=Object.keys(f.retain)[0];if(_==null)return u;this.scroll.updateEmbedAt(u,_,f.retain[_])}Object.keys(m).forEach(_=>{this.scroll.formatAt(u,g,_,m[_])});const b=R?1:0,S=
|
166
|
+
`,us(r))}function us(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return r==null||("formats"in r&&typeof r.formats=="function"&&(e={...e,...r.formats()},t&&delete e["code-token"]),r.parent==null||r.parent.statics.blotName==="scroll"||r.parent.statics.scope!==r.statics.scope)?e:us(r.parent,e,t)}const cs=class cs extends zo{static value(){}constructor(e,t,n){super(e,t),this.selection=n,this.textNode=document.createTextNode(cs.CONTENTS),this.domNode.appendChild(this.textNode),this.savedLength=0}detach(){this.parent!=null&&this.parent.removeChild(this)}format(e,t){if(this.savedLength!==0){super.format(e,t);return}let n=this,i=0;for(;n!=null&&n.statics.scope!==Jt.BLOCK_BLOT;)i+=n.offset(n.parent),n=n.parent;n!=null&&(this.savedLength=cs.CONTENTS.length,n.optimize(),n.formatAt(i,cs.CONTENTS.length,e,t),this.savedLength=0)}index(e,t){return e===this.textNode?0:super.index(e,t)}length(){return this.savedLength}position(){return[this.textNode,this.textNode.data.length]}remove(){super.remove(),this.parent=null}restore(){if(this.selection.composing||this.parent==null)return null;const e=this.selection.getNativeRange();for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);const t=this.prev instanceof $s?this.prev:null,n=t?t.length():0,i=this.next instanceof $s?this.next:null,l=i?i.text:"",{textNode:u}=this,f=u.data.split(cs.CONTENTS).join("");u.data=cs.CONTENTS;let g;if(t)g=t,(f||i)&&(t.insertAt(t.length(),f+l),i&&i.remove());else if(i)g=i,i.insertAt(0,f);else{const m=document.createTextNode(f);g=this.scroll.create(m),this.parent.insertBefore(g,this)}if(this.remove(),e){const m=(b,S)=>t&&b===t.domNode?S:b===u?n+S-1:i&&b===i.domNode?n+f.length+S:null,R=m(e.start.node,e.start.offset),C=m(e.end.node,e.end.offset);if(R!==null&&C!==null)return{startNode:g.domNode,startOffset:R,endNode:g.domNode,endOffset:C}}return null}update(e,t){if(e.some(n=>n.type==="characterData"&&n.target===this.textNode)){const n=this.restore();n&&(t.range=n)}}optimize(e){super.optimize(e);let{parent:t}=this;for(;t;){if(t.domNode.tagName==="A"){this.savedLength=cs.CONTENTS.length,t.isolate(this.offset(t),this.length()).unwrap(),this.savedLength=0;break}t=t.parent}}value(){return""}};ft(cs,"blotName","cursor"),ft(cs,"className","ql-cursor"),ft(cs,"tagName","span"),ft(cs,"CONTENTS","\uFEFF");let Xu=cs;var ip={exports:{}},$0;function bM(){return $0||($0=1,function(r){var e=Object.prototype.hasOwnProperty,t="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(t=!1));function i(g,m,R){this.fn=g,this.context=m,this.once=R||!1}function l(g,m,R,C,b){if(typeof R!="function")throw new TypeError("The listener must be a function");var S=new i(R,C||g,b),_=t?t+m:m;return g._events[_]?g._events[_].fn?g._events[_]=[g._events[_],S]:g._events[_].push(S):(g._events[_]=S,g._eventsCount++),g}function u(g,m){--g._eventsCount===0?g._events=new n:delete g._events[m]}function f(){this._events=new n,this._eventsCount=0}f.prototype.eventNames=function(){var m=[],R,C;if(this._eventsCount===0)return m;for(C in R=this._events)e.call(R,C)&&m.push(t?C.slice(1):C);return Object.getOwnPropertySymbols?m.concat(Object.getOwnPropertySymbols(R)):m},f.prototype.listeners=function(m){var R=t?t+m:m,C=this._events[R];if(!C)return[];if(C.fn)return[C.fn];for(var b=0,S=C.length,_=new Array(S);b<S;b++)_[b]=C[b].fn;return _},f.prototype.listenerCount=function(m){var R=t?t+m:m,C=this._events[R];return C?C.fn?1:C.length:0},f.prototype.emit=function(m,R,C,b,S,_){var D=t?t+m:m;if(!this._events[D])return!1;var E=this._events[D],x=arguments.length,L,O;if(E.fn){switch(E.once&&this.removeListener(m,E.fn,void 0,!0),x){case 1:return E.fn.call(E.context),!0;case 2:return E.fn.call(E.context,R),!0;case 3:return E.fn.call(E.context,R,C),!0;case 4:return E.fn.call(E.context,R,C,b),!0;case 5:return E.fn.call(E.context,R,C,b,S),!0;case 6:return E.fn.call(E.context,R,C,b,S,_),!0}for(O=1,L=new Array(x-1);O<x;O++)L[O-1]=arguments[O];E.fn.apply(E.context,L)}else{var H=E.length,q;for(O=0;O<H;O++)switch(E[O].once&&this.removeListener(m,E[O].fn,void 0,!0),x){case 1:E[O].fn.call(E[O].context);break;case 2:E[O].fn.call(E[O].context,R);break;case 3:E[O].fn.call(E[O].context,R,C);break;case 4:E[O].fn.call(E[O].context,R,C,b);break;default:if(!L)for(q=1,L=new Array(x-1);q<x;q++)L[q-1]=arguments[q];E[O].fn.apply(E[O].context,L)}}return!0},f.prototype.on=function(m,R,C){return l(this,m,R,C,!1)},f.prototype.once=function(m,R,C){return l(this,m,R,C,!0)},f.prototype.removeListener=function(m,R,C,b){var S=t?t+m:m;if(!this._events[S])return this;if(!R)return u(this,S),this;var _=this._events[S];if(_.fn)_.fn===R&&(!b||_.once)&&(!C||_.context===C)&&u(this,S);else{for(var D=0,E=[],x=_.length;D<x;D++)(_[D].fn!==R||b&&!_[D].once||C&&_[D].context!==C)&&E.push(_[D]);E.length?this._events[S]=E.length===1?E[0]:E:u(this,S)}return this},f.prototype.removeAllListeners=function(m){var R;return m?(R=t?t+m:m,this._events[R]&&u(this,R)):(this._events=new n,this._eventsCount=0),this},f.prototype.off=f.prototype.removeListener,f.prototype.addListener=f.prototype.on,f.prefixed=t,f.EventEmitter=f,r.exports=f}(ip)),ip.exports}var _M=bM();const xM=al(_M),X1=new WeakMap,J1=["error","warn","log","info"];let Q1="warn";function Ix(r){if(Q1&&J1.indexOf(r)<=J1.indexOf(Q1)){for(var e=arguments.length,t=new Array(e>1?e-1:0),n=1;n<e;n++)t[n-1]=arguments[n];console[r](...t)}}function cl(r){return J1.reduce((e,t)=>(e[t]=Ix.bind(console,t,r),e),{})}cl.level=r=>{Q1=r};Ix.level=cl.level;const op=cl("quill:events"),SM=["selectionchange","mousedown","mouseup","click"];SM.forEach(r=>{document.addEventListener(r,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Array.from(document.querySelectorAll(".ql-container")).forEach(i=>{const l=X1.get(i);l&&l.emitter&&l.emitter.handleDOM(...t)})})});class Zt extends xM{constructor(){super(),this.domListeners={},this.on("error",op.error)}emit(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return op.log.call(op,...t),super.emit(...t)}handleDOM(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];(this.domListeners[e.type]||[]).forEach(l=>{let{node:u,handler:f}=l;(e.target===u||u.contains(e.target))&&f(e,...n)})}listenDOM(e,t,n){this.domListeners[e]||(this.domListeners[e]=[]),this.domListeners[e].push({node:t,handler:n})}}ft(Zt,"events",{EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_BLOT_MOUNT:"scroll-blot-mount",SCROLL_BLOT_UNMOUNT:"scroll-blot-unmount",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SCROLL_EMBED_UPDATE:"scroll-embed-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change",COMPOSITION_BEFORE_START:"composition-before-start",COMPOSITION_START:"composition-start",COMPOSITION_BEFORE_END:"composition-before-end",COMPOSITION_END:"composition-end"}),ft(Zt,"sources",{API:"api",SILENT:"silent",USER:"user"});const sp=cl("quill:selection");class Jc{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.index=e,this.length=t}}class CM{constructor(e,t){this.emitter=t,this.scroll=e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=this.scroll.create("cursor",this),this.savedRange=new Jc(0,0),this.lastRange=this.savedRange,this.lastNative=null,this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,()=>{!this.mouseDown&&!this.composing&&setTimeout(this.update.bind(this,Zt.sources.USER),1)}),this.emitter.on(Zt.events.SCROLL_BEFORE_UPDATE,()=>{if(!this.hasFocus())return;const n=this.getNativeRange();n!=null&&n.start.node!==this.cursor.textNode&&this.emitter.once(Zt.events.SCROLL_UPDATE,(i,l)=>{try{this.root.contains(n.start.node)&&this.root.contains(n.end.node)&&this.setNativeRange(n.start.node,n.start.offset,n.end.node,n.end.offset);const u=l.some(f=>f.type==="characterData"||f.type==="childList"||f.type==="attributes"&&f.target===this.root);this.update(u?Zt.sources.SILENT:i)}catch{}})}),this.emitter.on(Zt.events.SCROLL_OPTIMIZE,(n,i)=>{if(i.range){const{startNode:l,startOffset:u,endNode:f,endOffset:g}=i.range;this.setNativeRange(l,u,f,g),this.update(Zt.sources.SILENT)}}),this.update(Zt.sources.SILENT)}handleComposition(){this.emitter.on(Zt.events.COMPOSITION_BEFORE_START,()=>{this.composing=!0}),this.emitter.on(Zt.events.COMPOSITION_END,()=>{if(this.composing=!1,this.cursor.parent){const e=this.cursor.restore();if(!e)return;setTimeout(()=>{this.setNativeRange(e.startNode,e.startOffset,e.endNode,e.endOffset)},1)}})}handleDragging(){this.emitter.listenDOM("mousedown",document.body,()=>{this.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,()=>{this.mouseDown=!1,this.update(Zt.sources.USER)})}focus(){this.hasFocus()||(this.root.focus({preventScroll:!0}),this.setRange(this.savedRange))}format(e,t){this.scroll.update();const n=this.getNativeRange();if(!(n==null||!n.native.collapsed||this.scroll.query(e,Jt.BLOCK))){if(n.start.node!==this.cursor.textNode){const i=this.scroll.find(n.start.node,!1);if(i==null)return;if(i instanceof qi){const l=i.split(n.start.offset);i.parent.insertBefore(this.cursor,l)}else i.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}getBounds(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const n=this.scroll.length();e=Math.min(e,n-1),t=Math.min(e+t,n-1)-e;let i,[l,u]=this.scroll.leaf(e);if(l==null)return null;if(t>0&&u===l.length()){const[R]=this.scroll.leaf(e+1);if(R){const[C]=this.scroll.line(e),[b]=this.scroll.line(e+1);C===b&&(l=R,u=0)}}[i,u]=l.position(u,!0);const f=document.createRange();if(t>0)return f.setStart(i,u),[l,u]=this.scroll.leaf(e+t),l==null?null:([i,u]=l.position(u,!0),f.setEnd(i,u),f.getBoundingClientRect());let g="left",m;if(i instanceof Text){if(!i.data.length)return null;u<i.data.length?(f.setStart(i,u),f.setEnd(i,u+1)):(f.setStart(i,u-1),f.setEnd(i,u),g="right"),m=f.getBoundingClientRect()}else{if(!(l.domNode instanceof Element))return null;m=l.domNode.getBoundingClientRect(),u>0&&(g="right")}return{bottom:m.top+m.height,height:m.height,left:m[g],right:m[g],top:m.top,width:0}}getNativeRange(){const e=document.getSelection();if(e==null||e.rangeCount<=0)return null;const t=e.getRangeAt(0);if(t==null)return null;const n=this.normalizeNative(t);return sp.info("getNativeRange",n),n}getRange(){const e=this.scroll.domNode;if("isConnected"in e&&!e.isConnected)return[null,null];const t=this.getNativeRange();return t==null?[null,null]:[this.normalizedToRange(t),t]}hasFocus(){return document.activeElement===this.root||document.activeElement!=null&&ap(this.root,document.activeElement)}normalizedToRange(e){const t=[[e.start.node,e.start.offset]];e.native.collapsed||t.push([e.end.node,e.end.offset]);const n=t.map(u=>{const[f,g]=u,m=this.scroll.find(f,!0),R=m.offset(this.scroll);return g===0?R:m instanceof qi?R+m.index(f,g):R+m.length()}),i=Math.min(Math.max(...n),this.scroll.length()-1),l=Math.min(i,...n);return new Jc(l,i-l)}normalizeNative(e){if(!ap(this.root,e.startContainer)||!e.collapsed&&!ap(this.root,e.endContainer))return null;const t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach(n=>{let{node:i,offset:l}=n;for(;!(i instanceof Text)&&i.childNodes.length>0;)if(i.childNodes.length>l)i=i.childNodes[l],l=0;else if(i.childNodes.length===l)i=i.lastChild,i instanceof Text?l=i.data.length:i.childNodes.length>0?l=i.childNodes.length:l=i.childNodes.length+1;else break;n.node=i,n.offset=l}),t}rangeToNative(e){const t=this.scroll.length(),n=(i,l)=>{i=Math.min(t-1,i);const[u,f]=this.scroll.leaf(i);return u?u.position(f,l):[null,-1]};return[...n(e.index,!1),...n(e.index+e.length,!0)]}setNativeRange(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:t,l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(sp.info("setNativeRange",e,t,n,i),e!=null&&(this.root.parentNode==null||e.parentNode==null||n.parentNode==null))return;const u=document.getSelection();if(u!=null)if(e!=null){this.hasFocus()||this.root.focus({preventScroll:!0});const{native:f}=this.getNativeRange()||{};if(f==null||l||e!==f.startContainer||t!==f.startOffset||n!==f.endContainer||i!==f.endOffset){e instanceof Element&&e.tagName==="BR"&&(t=Array.from(e.parentNode.childNodes).indexOf(e),e=e.parentNode),n instanceof Element&&n.tagName==="BR"&&(i=Array.from(n.parentNode.childNodes).indexOf(n),n=n.parentNode);const g=document.createRange();g.setStart(e,t),g.setEnd(n,i),u.removeAllRanges(),u.addRange(g)}}else u.removeAllRanges(),this.root.blur()}setRange(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Zt.sources.API;if(typeof t=="string"&&(n=t,t=!1),sp.info("setRange",e),e!=null){const i=this.rangeToNative(e);this.setNativeRange(...i,t)}else this.setNativeRange(null);this.update(n)}update(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Zt.sources.USER;const t=this.lastRange,[n,i]=this.getRange();if(this.lastRange=n,this.lastNative=i,this.lastRange!=null&&(this.savedRange=this.lastRange),!Em(t,this.lastRange)){if(!this.composing&&i!=null&&i.native.collapsed&&i.start.node!==this.cursor.textNode){const u=this.cursor.restore();u&&this.setNativeRange(u.startNode,u.startOffset,u.endNode,u.endOffset)}const l=[Zt.events.SELECTION_CHANGE,Uu(this.lastRange),Uu(t),e];this.emitter.emit(Zt.events.EDITOR_CHANGE,...l),e!==Zt.sources.SILENT&&this.emitter.emit(...l)}}}function ap(r,e){try{e.parentNode}catch{return!1}return r.contains(e)}const wM=/^[ -~]*$/;class AM{constructor(e){this.scroll=e,this.delta=this.getDelta()}applyDelta(e){this.scroll.update();let t=this.scroll.length();this.scroll.batchStart();const n=U0(e),i=new Gt;return EM(n.ops.slice()).reduce((u,f)=>{const g=hs.Op.length(f);let m=f.attributes||{},R=!1,C=!1;if(f.insert!=null){if(i.retain(g),typeof f.insert=="string"){const _=f.insert;C=!_.endsWith(`
|
167
|
+
`)&&(t<=u||!!this.scroll.descendant(ds,u)[0]),this.scroll.insertAt(u,_);const[D,E]=this.scroll.line(u);let x=Ql({},us(D));if(D instanceof ji){const[L]=D.descendant(qi,E);L&&(x=Ql(x,us(L)))}m=hs.AttributeMap.diff(x,m)||{}}else if(typeof f.insert=="object"){const _=Object.keys(f.insert)[0];if(_==null)return u;const D=this.scroll.query(_,Jt.INLINE)!=null;if(D)(t<=u||this.scroll.descendant(ds,u)[0])&&(C=!0);else if(u>0){const[E,x]=this.scroll.descendant(qi,u-1);E instanceof $s?E.value()[x]!==`
|
168
|
+
`&&(R=!0):E instanceof zo&&E.statics.scope===Jt.INLINE_BLOT&&(R=!0)}if(this.scroll.insertAt(u,_,f.insert[_]),D){const[E]=this.scroll.descendant(qi,u);if(E){const x=Ql({},us(E));m=hs.AttributeMap.diff(x,m)||{}}}}t+=g}else if(i.push(f),f.retain!==null&&typeof f.retain=="object"){const _=Object.keys(f.retain)[0];if(_==null)return u;this.scroll.updateEmbedAt(u,_,f.retain[_])}Object.keys(m).forEach(_=>{this.scroll.formatAt(u,g,_,m[_])});const b=R?1:0,S=C?1:0;return t+=b+S,i.retain(b),i.delete(S),u+g+b+S},0),i.reduce((u,f)=>typeof f.delete=="number"?(this.scroll.deleteAt(u,f.delete),u):u+hs.Op.length(f),0),this.scroll.batchEnd(),this.scroll.optimize(),this.update(n)}deleteText(e,t){return this.scroll.deleteAt(e,t),this.update(new Gt().retain(e).delete(t))}formatLine(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.scroll.update(),Object.keys(n).forEach(l=>{this.scroll.lines(e,Math.max(t,1)).forEach(u=>{u.format(l,n[l])})}),this.scroll.optimize();const i=new Gt().retain(e).retain(t,Uu(n));return this.update(i)}formatText(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.keys(n).forEach(l=>{this.scroll.formatAt(e,t,l,n[l])});const i=new Gt().retain(e).retain(t,Uu(n));return this.update(i)}getContents(e,t){return this.delta.slice(e,e+t)}getDelta(){return this.scroll.lines().reduce((e,t)=>e.concat(t.delta()),new Gt)}getFormat(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=[],i=[];t===0?this.scroll.path(e).forEach(f=>{const[g]=f;g instanceof ji?n.push(g):g instanceof qi&&i.push(g)}):(n=this.scroll.lines(e,t),i=this.scroll.descendants(qi,e,t));const[l,u]=[n,i].map(f=>{const g=f.shift();if(g==null)return{};let m=us(g);for(;Object.keys(m).length>0;){const R=f.shift();if(R==null)return m;m=TM(us(R),m)}return m});return{...l,...u}}getHTML(e,t){const[n,i]=this.scroll.line(e);if(n){const l=n.length();return n.length()>=i+t&&!(i===0&&t===l)?ed(n,i,t,!0):ed(this.scroll,e,t,!0)}return""}getText(e,t){return this.getContents(e,t).filter(n=>typeof n.insert=="string").map(n=>n.insert).join("")}insertContents(e,t){const n=U0(t),i=new Gt().retain(e).concat(n);return this.scroll.insertContents(e,n),this.update(i)}insertEmbed(e,t,n){return this.scroll.insertAt(e,t,n),this.update(new Gt().retain(e).insert({[t]:n}))}insertText(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return t=t.replace(/\r\n/g,`
|
169
169
|
`).replace(/\r/g,`
|
170
170
|
`),this.scroll.insertAt(e,t),Object.keys(n).forEach(i=>{this.scroll.formatAt(e,t.length,i,n[i])}),this.update(new Gt().retain(e).insert(t,Uu(n)))}isBlank(){if(this.scroll.children.length===0)return!0;if(this.scroll.children.length>1)return!1;const e=this.scroll.children.head;if((e==null?void 0:e.statics.blotName)!==ji.blotName)return!1;const t=e;return t.children.length>1?!1:t.children.head instanceof Ws}removeFormat(e,t){const n=this.getText(e,t),[i,l]=this.scroll.line(e+t);let u=0,f=new Gt;i!=null&&(u=i.length()-l,f=i.delta().slice(l,l+u-1).insert(`
|
171
|
-
`));const m=this.getContents(e,t+u).diff(new Gt().insert(n).concat(f)),R=new Gt().retain(e).concat(m);return this.applyDelta(R)}update(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;const i=this.delta;if(t.length===1&&t[0].type==="characterData"&&t[0].target.data.match(wM)&&this.scroll.find(t[0].target)){const l=this.scroll.find(t[0].target),u=us(l),f=l.offset(this.scroll),g=t[0].oldValue.replace(Xu.CONTENTS,""),m=new Gt().insert(g),R=new Gt().insert(l.value()),
|
171
|
+
`));const m=this.getContents(e,t+u).diff(new Gt().insert(n).concat(f)),R=new Gt().retain(e).concat(m);return this.applyDelta(R)}update(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;const i=this.delta;if(t.length===1&&t[0].type==="characterData"&&t[0].target.data.match(wM)&&this.scroll.find(t[0].target)){const l=this.scroll.find(t[0].target),u=us(l),f=l.offset(this.scroll),g=t[0].oldValue.replace(Xu.CONTENTS,""),m=new Gt().insert(g),R=new Gt().insert(l.value()),C=n&&{oldRange:W0(n.oldRange,-f),newRange:W0(n.newRange,-f)};e=new Gt().retain(f).concat(m.diff(R,C)).reduce((S,_)=>_.insert?S.insert(_.insert,u):S.push(_),new Gt),this.delta=i.compose(e)}else this.delta=this.getDelta(),(!e||!Em(i.compose(e),this.delta))&&(e=i.diff(this.delta,n));return e}}function Bu(r,e,t){if(r.length===0){const[S]=lp(t.pop());return e<=0?`</li></${S}>`:`</li></${S}>${Bu([],e-1,t)}`}const[{child:n,offset:i,length:l,indent:u,type:f},...g]=r,[m,R]=lp(f);if(u>e)return t.push(f),u===e+1?`<${m}><li${R}>${ed(n,i,l)}${Bu(g,u,t)}`:`<${m}><li>${Bu(r,e+1,t)}`;const C=t[t.length-1];if(u===e&&f===C)return`</li><li${R}>${ed(n,i,l)}${Bu(g,u,t)}`;const[b]=lp(t.pop());return`</li></${b}>${Bu(r,e-1,t)}`}function ed(r,e,t){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if("html"in r&&typeof r.html=="function")return r.html(e,t);if(r instanceof $s)return ph(r.value().slice(e,e+t)).replaceAll(" "," ");if(r instanceof qs){if(r.statics.blotName==="list-container"){const m=[];return r.children.forEachAt(e,t,(R,C,b)=>{const S="formats"in R&&typeof R.formats=="function"?R.formats():{};m.push({child:R,offset:C,length:b,indent:S.indent||0,type:S.list})}),Bu(m,-1,[])}const i=[];if(r.children.forEachAt(e,t,(m,R,C)=>{i.push(ed(m,R,C))}),n||r.statics.blotName==="list")return i.join("");const{outerHTML:l,innerHTML:u}=r.domNode,[f,g]=l.split(`>${u}<`);return f==="<table"?`<table style="border: 1px solid #000;">${i.join("")}<${g}`:`${f}>${i.join("")}<${g}`}return r.domNode instanceof Element?r.domNode.outerHTML:""}function TM(r,e){return Object.keys(e).reduce((t,n)=>{if(r[n]==null)return t;const i=e[n];return i===r[n]?t[n]=i:Array.isArray(i)?i.indexOf(r[n])<0?t[n]=i.concat([r[n]]):t[n]=i:t[n]=[i,r[n]],t},{})}function lp(r){const e=r==="ordered"?"ol":"ul";switch(r){case"checked":return[e,' data-list="checked"'];case"unchecked":return[e,' data-list="unchecked"'];default:return[e,""]}}function U0(r){return r.reduce((e,t)=>{if(typeof t.insert=="string"){const n=t.insert.replace(/\r\n/g,`
|
172
172
|
`).replace(/\r/g,`
|
173
173
|
`);return e.insert(n,t.attributes)}return e.push(t)},new Gt)}function W0(r,e){let{index:t,length:n}=r;return new Jc(t+e,n)}function EM(r){const e=[];return r.forEach(t=>{typeof t.insert=="string"?t.insert.split(`
|
174
174
|
`).forEach((i,l)=>{l&&e.push({insert:`
|
175
|
-
`,attributes:t.attributes}),i&&e.push({insert:i,attributes:t.attributes})}):e.push(t)}),e}class Vs{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.quill=e,this.options=t}}ft(Vs,"DEFAULTS",{});const jd="\uFEFF";class Im extends zo{constructor(e,t){super(e,t),this.contentNode=document.createElement("span"),this.contentNode.setAttribute("contenteditable","false"),Array.from(this.domNode.childNodes).forEach(n=>{this.contentNode.appendChild(n)}),this.leftGuard=document.createTextNode(jd),this.rightGuard=document.createTextNode(jd),this.domNode.appendChild(this.leftGuard),this.domNode.appendChild(this.contentNode),this.domNode.appendChild(this.rightGuard)}index(e,t){return e===this.leftGuard?0:e===this.rightGuard?1:super.index(e,t)}restore(e){let t=null,n;const i=e.data.split(jd).join("");if(e===this.leftGuard)if(this.prev instanceof $s){const l=this.prev.length();this.prev.insertAt(l,i),t={startNode:this.prev.domNode,startOffset:l+i.length}}else n=document.createTextNode(i),this.parent.insertBefore(this.scroll.create(n),this),t={startNode:n,startOffset:i.length};else e===this.rightGuard&&(this.next instanceof $s?(this.next.insertAt(0,i),t={startNode:this.next.domNode,startOffset:i.length}):(n=document.createTextNode(i),this.parent.insertBefore(this.scroll.create(n),this.next),t={startNode:n,startOffset:i.length}));return e.data=jd,t}update(e,t){e.forEach(n=>{if(n.type==="characterData"&&(n.target===this.leftGuard||n.target===this.rightGuard)){const i=this.restore(n.target);i&&(t.range=i)}})}}class kM{constructor(e,t){ft(this,"isComposing",!1);this.scroll=e,this.emitter=t,this.setupListeners()}setupListeners(){this.scroll.domNode.addEventListener("compositionstart",e=>{this.isComposing||this.handleCompositionStart(e)}),this.scroll.domNode.addEventListener("compositionend",e=>{this.isComposing&&queueMicrotask(()=>{this.handleCompositionEnd(e)})})}handleCompositionStart(e){const t=e.target instanceof Node?this.scroll.find(e.target,!0):null;t&&!(t instanceof Im)&&(this.emitter.emit(Zt.events.COMPOSITION_BEFORE_START,e),this.scroll.batchStart(),this.emitter.emit(Zt.events.COMPOSITION_START,e),this.isComposing=!0)}handleCompositionEnd(e){this.emitter.emit(Zt.events.COMPOSITION_BEFORE_END,e),this.scroll.batchEnd(),this.emitter.emit(Zt.events.COMPOSITION_END,e),this.isComposing=!1}}const Wf=class Wf{constructor(e,t){ft(this,"modules",{});this.quill=e,this.options=t}init(){Object.keys(this.options.modules).forEach(e=>{this.modules[e]==null&&this.addModule(e)})}addModule(e){const t=this.quill.constructor.import(`modules/${e}`);return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}};ft(Wf,"DEFAULTS",{modules:{}}),ft(Wf,"themes",{default:Wf});let Ju=Wf;const RM=r=>r.parentElement||r.getRootNode().host||null,IM=r=>{const e=r.getBoundingClientRect(),t="offsetWidth"in r&&Math.abs(e.width)/r.offsetWidth||1,n="offsetHeight"in r&&Math.abs(e.height)/r.offsetHeight||1;return{top:e.top,right:e.left+r.clientWidth*t,bottom:e.top+r.clientHeight*n,left:e.left}},Bd=r=>{const e=parseInt(r,10);return Number.isNaN(e)?0:e},V0=(r,e,t,n,i,l)=>r<t&&e>n?0:r<t?-(t-r+i):e>n?e-r>n-t?r+i-t:e-n+l:0,LM=(r,e)=>{var l,u,f;const t=r.ownerDocument;let n=e,i=r;for(;i;){const g=i===t.body,m=g?{top:0,right:((l=window.visualViewport)==null?void 0:l.width)??t.documentElement.clientWidth,bottom:((u=window.visualViewport)==null?void 0:u.height)??t.documentElement.clientHeight,left:0}:IM(i),R=getComputedStyle(i),
|
176
|
-
`});this.setContents(u)}this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable(),this.allowReadOnlyEdits=!1}addContainer(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof e=="string"){const n=e;e=document.createElement("div"),e.classList.add(n)}return this.container.insertBefore(e,t),e}blur(){this.selection.setRange(null)}deleteText(e,t,n){return[e,t,,n]=el(e,t,n),Os.call(this,()=>this.editor.deleteText(e,t),n,e,-1*t)}disable(){this.enable(!1)}editReadOnly(e){this.allowReadOnlyEdits=!0;const t=e();return this.allowReadOnlyEdits=!1,t}enable(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}focus(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.selection.focus(),e.preventScroll||this.scrollSelectionIntoView()}format(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Zt.sources.API;return Os.call(this,()=>{const i=this.getSelection(!0);let l=new Gt;if(i==null)return l;if(this.scroll.query(e,Jt.BLOCK))l=this.editor.formatLine(i.index,i.length,{[e]:t});else{if(i.length===0)return this.selection.format(e,t),l;l=this.editor.formatText(i.index,i.length,{[e]:t})}return this.setSelection(i,Zt.sources.SILENT),l},n)}formatLine(e,t,n,i,l){let u;return[e,t,u,l]=el(e,t,n,i,l),Os.call(this,()=>this.editor.formatLine(e,t,u),l,e,0)}formatText(e,t,n,i,l){let u;return[e,t,u,l]=el(e,t,n,i,l),Os.call(this,()=>this.editor.formatText(e,t,u),l,e,0)}getBounds(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=null;if(typeof e=="number"?n=this.selection.getBounds(e,t):n=this.selection.getBounds(e.index,e.length),!n)return null;const i=this.container.getBoundingClientRect();return{bottom:n.bottom-i.top,height:n.height,left:n.left-i.left,right:n.right-i.left,top:n.top-i.top,width:n.width}}getContents(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-e;return[e,t]=el(e,t),this.editor.getContents(e,t)}getFormat(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof e=="number"?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}getIndex(e){return e.offset(this.scroll)}getLength(){return this.scroll.length()}getLeaf(e){return this.scroll.leaf(e)}getLine(e){return this.scroll.line(e)}getLines(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof e!="number"?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}getModule(e){return this.theme.modules[e]}getSelection(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)&&this.focus(),this.update(),this.selection.getRange()[0]}getSemanticHTML(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;return typeof e=="number"&&(t=t??this.getLength()-e),[e,t]=el(e,t),this.editor.getHTML(e,t)}getText(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;return typeof e=="number"&&(t=t??this.getLength()-e),[e,t]=el(e,t),this.editor.getText(e,t)}hasFocus(){return this.selection.hasFocus()}insertEmbed(e,t,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Ps.sources.API;return Os.call(this,()=>this.editor.insertEmbed(e,t,n),i,e)}insertText(e,t,n,i,l){let u;return[e,,u,l]=el(e,0,n,i,l),Os.call(this,()=>this.editor.insertText(e,t,u),l,e,t.length)}isEnabled(){return this.scroll.isEnabled()}off(){return this.emitter.off(...arguments)}on(){return this.emitter.on(...arguments)}once(){return this.emitter.once(...arguments)}removeFormat(e,t,n){return[e,t,,n]=el(e,t,n),Os.call(this,()=>this.editor.removeFormat(e,t),n,e)}scrollRectIntoView(e){LM(this.root,e)}scrollIntoView(){console.warn("Quill#scrollIntoView() has been deprecated and will be removed in the near future. Please use Quill#scrollSelectionIntoView() instead."),this.scrollSelectionIntoView()}scrollSelectionIntoView(){const e=this.selection.lastRange,t=e&&this.selection.getBounds(e.index,e.length);t&&this.scrollRectIntoView(t)}setContents(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Zt.sources.API;return Os.call(this,()=>{e=new Gt(e);const n=this.getLength(),i=this.editor.deleteText(0,n),l=this.editor.insertContents(0,e),u=this.editor.deleteText(this.getLength()-1,1);return i.compose(l).compose(u)},t)}setSelection(e,t,n){e==null?this.selection.setRange(null,t||Ps.sources.API):([e,t,,n]=el(e,t,n),this.selection.setRange(new Jc(Math.max(0,e),t),n),n!==Zt.sources.SILENT&&this.scrollSelectionIntoView())}setText(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Zt.sources.API;const n=new Gt().insert(e);return this.setContents(n,t)}update(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Zt.sources.USER;const t=this.scroll.update(e);return this.selection.update(e),t}updateContents(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Zt.sources.API;return Os.call(this,()=>(e=new Gt(e),this.editor.applyDelta(e)),t,!0)}};ft(Ps,"DEFAULTS",{bounds:null,modules:{clipboard:!0,keyboard:!0,history:!0,uploader:!0},placeholder:"",readOnly:!1,registry:Hd,theme:"default"}),ft(Ps,"events",Zt.events),ft(Ps,"sources",Zt.sources),ft(Ps,"version","2.0.3"),ft(Ps,"imports",{delta:Gt,parchment:hM,"core/module":Vs,"core/theme":Ju});let Ve=Ps;function G0(r){return typeof r=="string"?document.querySelector(r):r}function cp(r){return Object.entries(r??{}).reduce((e,t)=>{let[n,i]=t;return{...e,[n]:i===!0?{}:i}},{})}function Z0(r){return Object.fromEntries(Object.entries(r).filter(e=>e[1]!==void 0))}function PM(r,e){const t=G0(r);if(!t)throw new Error("Invalid Quill container");const i=!e.theme||e.theme===Ve.DEFAULTS.theme?Ju:Ve.import(`themes/${e.theme}`);if(!i)throw new Error(`Invalid theme ${e.theme}. Did you register it?`);const{modules:l,...u}=Ve.DEFAULTS,{modules:f,...g}=i.DEFAULTS;let m=cp(e.modules);m!=null&&m.toolbar&&m.toolbar.constructor!==Object&&(m={...m,toolbar:{container:m.toolbar}});const R=Ql({},cp(l),cp(f),m),
|
175
|
+
`,attributes:t.attributes}),i&&e.push({insert:i,attributes:t.attributes})}):e.push(t)}),e}class Vs{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.quill=e,this.options=t}}ft(Vs,"DEFAULTS",{});const jd="\uFEFF";class Im extends zo{constructor(e,t){super(e,t),this.contentNode=document.createElement("span"),this.contentNode.setAttribute("contenteditable","false"),Array.from(this.domNode.childNodes).forEach(n=>{this.contentNode.appendChild(n)}),this.leftGuard=document.createTextNode(jd),this.rightGuard=document.createTextNode(jd),this.domNode.appendChild(this.leftGuard),this.domNode.appendChild(this.contentNode),this.domNode.appendChild(this.rightGuard)}index(e,t){return e===this.leftGuard?0:e===this.rightGuard?1:super.index(e,t)}restore(e){let t=null,n;const i=e.data.split(jd).join("");if(e===this.leftGuard)if(this.prev instanceof $s){const l=this.prev.length();this.prev.insertAt(l,i),t={startNode:this.prev.domNode,startOffset:l+i.length}}else n=document.createTextNode(i),this.parent.insertBefore(this.scroll.create(n),this),t={startNode:n,startOffset:i.length};else e===this.rightGuard&&(this.next instanceof $s?(this.next.insertAt(0,i),t={startNode:this.next.domNode,startOffset:i.length}):(n=document.createTextNode(i),this.parent.insertBefore(this.scroll.create(n),this.next),t={startNode:n,startOffset:i.length}));return e.data=jd,t}update(e,t){e.forEach(n=>{if(n.type==="characterData"&&(n.target===this.leftGuard||n.target===this.rightGuard)){const i=this.restore(n.target);i&&(t.range=i)}})}}class kM{constructor(e,t){ft(this,"isComposing",!1);this.scroll=e,this.emitter=t,this.setupListeners()}setupListeners(){this.scroll.domNode.addEventListener("compositionstart",e=>{this.isComposing||this.handleCompositionStart(e)}),this.scroll.domNode.addEventListener("compositionend",e=>{this.isComposing&&queueMicrotask(()=>{this.handleCompositionEnd(e)})})}handleCompositionStart(e){const t=e.target instanceof Node?this.scroll.find(e.target,!0):null;t&&!(t instanceof Im)&&(this.emitter.emit(Zt.events.COMPOSITION_BEFORE_START,e),this.scroll.batchStart(),this.emitter.emit(Zt.events.COMPOSITION_START,e),this.isComposing=!0)}handleCompositionEnd(e){this.emitter.emit(Zt.events.COMPOSITION_BEFORE_END,e),this.scroll.batchEnd(),this.emitter.emit(Zt.events.COMPOSITION_END,e),this.isComposing=!1}}const Wf=class Wf{constructor(e,t){ft(this,"modules",{});this.quill=e,this.options=t}init(){Object.keys(this.options.modules).forEach(e=>{this.modules[e]==null&&this.addModule(e)})}addModule(e){const t=this.quill.constructor.import(`modules/${e}`);return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}};ft(Wf,"DEFAULTS",{modules:{}}),ft(Wf,"themes",{default:Wf});let Ju=Wf;const RM=r=>r.parentElement||r.getRootNode().host||null,IM=r=>{const e=r.getBoundingClientRect(),t="offsetWidth"in r&&Math.abs(e.width)/r.offsetWidth||1,n="offsetHeight"in r&&Math.abs(e.height)/r.offsetHeight||1;return{top:e.top,right:e.left+r.clientWidth*t,bottom:e.top+r.clientHeight*n,left:e.left}},Bd=r=>{const e=parseInt(r,10);return Number.isNaN(e)?0:e},V0=(r,e,t,n,i,l)=>r<t&&e>n?0:r<t?-(t-r+i):e>n?e-r>n-t?r+i-t:e-n+l:0,LM=(r,e)=>{var l,u,f;const t=r.ownerDocument;let n=e,i=r;for(;i;){const g=i===t.body,m=g?{top:0,right:((l=window.visualViewport)==null?void 0:l.width)??t.documentElement.clientWidth,bottom:((u=window.visualViewport)==null?void 0:u.height)??t.documentElement.clientHeight,left:0}:IM(i),R=getComputedStyle(i),C=V0(n.left,n.right,m.left,m.right,Bd(R.scrollPaddingLeft),Bd(R.scrollPaddingRight)),b=V0(n.top,n.bottom,m.top,m.bottom,Bd(R.scrollPaddingTop),Bd(R.scrollPaddingBottom));if(C||b)if(g)(f=t.defaultView)==null||f.scrollBy(C,b);else{const{scrollLeft:S,scrollTop:_}=i;b&&(i.scrollTop+=b),C&&(i.scrollLeft+=C);const D=i.scrollLeft-S,E=i.scrollTop-_;n={left:n.left-D,top:n.top-E,right:n.right-D,bottom:n.bottom-E}}i=g||R.position==="fixed"?null:RM(i)}},MM=100,DM=["block","break","cursor","inline","scroll","text"],OM=(r,e,t)=>{const n=new Yu;return DM.forEach(i=>{const l=e.query(i);l&&n.register(l)}),r.forEach(i=>{let l=e.query(i);l||t.error(`Cannot register "${i}" specified in "formats" config. Are you sure it was registered?`);let u=0;for(;l;)if(n.register(l),l="blotName"in l?l.requiredContainer??null:null,u+=1,u>MM){t.error(`Cycle detected in registering blot requiredContainer: "${i}"`);break}}),n},Vu=cl("quill"),Hd=new Yu;qs.uiClass="ql-ui";const Ps=class Ps{static debug(e){e===!0&&(e="log"),cl.level(e)}static find(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return X1.get(e)||Hd.find(e,t)}static import(e){return this.imports[e]==null&&Vu.error(`Cannot import ${e}. Are you sure it was registered?`),this.imports[e]}static register(){if(typeof(arguments.length<=0?void 0:arguments[0])!="string"){const e=arguments.length<=0?void 0:arguments[0],t=!!(!(arguments.length<=1)&&arguments[1]),n="attrName"in e?e.attrName:e.blotName;typeof n=="string"?this.register(`formats/${n}`,e,t):Object.keys(e).forEach(i=>{this.register(i,e[i],t)})}else{const e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=!!(!(arguments.length<=2)&&arguments[2]);this.imports[e]!=null&&!n&&Vu.warn(`Overwriting ${e} with`,t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&t&&typeof t!="boolean"&&t.blotName!=="abstract"&&Hd.register(t),typeof t.register=="function"&&t.register(Hd)}}constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.options=PM(e,t),this.container=this.options.container,this.container==null){Vu.error("Invalid Quill container",e);return}this.options.debug&&Ps.debug(this.options.debug);const n=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",X1.set(this.container,this),this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.emitter=new Zt;const i=Rm.blotName,l=this.options.registry.query(i);if(!l||!("blotName"in l))throw new Error(`Cannot initialize Quill without "${i}" blot`);if(this.scroll=new l(this.options.registry,this.root,{emitter:this.emitter}),this.editor=new AM(this.scroll),this.selection=new CM(this.scroll,this.emitter),this.composition=new kM(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.uploader=this.theme.addModule("uploader"),this.theme.addModule("input"),this.theme.addModule("uiNode"),this.theme.init(),this.emitter.on(Zt.events.EDITOR_CHANGE,u=>{u===Zt.events.TEXT_CHANGE&&this.root.classList.toggle("ql-blank",this.editor.isBlank())}),this.emitter.on(Zt.events.SCROLL_UPDATE,(u,f)=>{const g=this.selection.lastRange,[m]=this.selection.getRange(),R=g&&m?{oldRange:g,newRange:m}:void 0;Os.call(this,()=>this.editor.update(null,f,R),u)}),this.emitter.on(Zt.events.SCROLL_EMBED_UPDATE,(u,f)=>{const g=this.selection.lastRange,[m]=this.selection.getRange(),R=g&&m?{oldRange:g,newRange:m}:void 0;Os.call(this,()=>{const C=new Gt().retain(u.offset(this)).retain({[u.statics.blotName]:f});return this.editor.update(C,[],R)},Ps.sources.USER)}),n){const u=this.clipboard.convert({html:`${n}<p><br></p>`,text:`
|
176
|
+
`});this.setContents(u)}this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable(),this.allowReadOnlyEdits=!1}addContainer(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof e=="string"){const n=e;e=document.createElement("div"),e.classList.add(n)}return this.container.insertBefore(e,t),e}blur(){this.selection.setRange(null)}deleteText(e,t,n){return[e,t,,n]=el(e,t,n),Os.call(this,()=>this.editor.deleteText(e,t),n,e,-1*t)}disable(){this.enable(!1)}editReadOnly(e){this.allowReadOnlyEdits=!0;const t=e();return this.allowReadOnlyEdits=!1,t}enable(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}focus(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.selection.focus(),e.preventScroll||this.scrollSelectionIntoView()}format(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Zt.sources.API;return Os.call(this,()=>{const i=this.getSelection(!0);let l=new Gt;if(i==null)return l;if(this.scroll.query(e,Jt.BLOCK))l=this.editor.formatLine(i.index,i.length,{[e]:t});else{if(i.length===0)return this.selection.format(e,t),l;l=this.editor.formatText(i.index,i.length,{[e]:t})}return this.setSelection(i,Zt.sources.SILENT),l},n)}formatLine(e,t,n,i,l){let u;return[e,t,u,l]=el(e,t,n,i,l),Os.call(this,()=>this.editor.formatLine(e,t,u),l,e,0)}formatText(e,t,n,i,l){let u;return[e,t,u,l]=el(e,t,n,i,l),Os.call(this,()=>this.editor.formatText(e,t,u),l,e,0)}getBounds(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=null;if(typeof e=="number"?n=this.selection.getBounds(e,t):n=this.selection.getBounds(e.index,e.length),!n)return null;const i=this.container.getBoundingClientRect();return{bottom:n.bottom-i.top,height:n.height,left:n.left-i.left,right:n.right-i.left,top:n.top-i.top,width:n.width}}getContents(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-e;return[e,t]=el(e,t),this.editor.getContents(e,t)}getFormat(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof e=="number"?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}getIndex(e){return e.offset(this.scroll)}getLength(){return this.scroll.length()}getLeaf(e){return this.scroll.leaf(e)}getLine(e){return this.scroll.line(e)}getLines(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof e!="number"?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}getModule(e){return this.theme.modules[e]}getSelection(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)&&this.focus(),this.update(),this.selection.getRange()[0]}getSemanticHTML(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;return typeof e=="number"&&(t=t??this.getLength()-e),[e,t]=el(e,t),this.editor.getHTML(e,t)}getText(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;return typeof e=="number"&&(t=t??this.getLength()-e),[e,t]=el(e,t),this.editor.getText(e,t)}hasFocus(){return this.selection.hasFocus()}insertEmbed(e,t,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Ps.sources.API;return Os.call(this,()=>this.editor.insertEmbed(e,t,n),i,e)}insertText(e,t,n,i,l){let u;return[e,,u,l]=el(e,0,n,i,l),Os.call(this,()=>this.editor.insertText(e,t,u),l,e,t.length)}isEnabled(){return this.scroll.isEnabled()}off(){return this.emitter.off(...arguments)}on(){return this.emitter.on(...arguments)}once(){return this.emitter.once(...arguments)}removeFormat(e,t,n){return[e,t,,n]=el(e,t,n),Os.call(this,()=>this.editor.removeFormat(e,t),n,e)}scrollRectIntoView(e){LM(this.root,e)}scrollIntoView(){console.warn("Quill#scrollIntoView() has been deprecated and will be removed in the near future. Please use Quill#scrollSelectionIntoView() instead."),this.scrollSelectionIntoView()}scrollSelectionIntoView(){const e=this.selection.lastRange,t=e&&this.selection.getBounds(e.index,e.length);t&&this.scrollRectIntoView(t)}setContents(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Zt.sources.API;return Os.call(this,()=>{e=new Gt(e);const n=this.getLength(),i=this.editor.deleteText(0,n),l=this.editor.insertContents(0,e),u=this.editor.deleteText(this.getLength()-1,1);return i.compose(l).compose(u)},t)}setSelection(e,t,n){e==null?this.selection.setRange(null,t||Ps.sources.API):([e,t,,n]=el(e,t,n),this.selection.setRange(new Jc(Math.max(0,e),t),n),n!==Zt.sources.SILENT&&this.scrollSelectionIntoView())}setText(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Zt.sources.API;const n=new Gt().insert(e);return this.setContents(n,t)}update(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Zt.sources.USER;const t=this.scroll.update(e);return this.selection.update(e),t}updateContents(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Zt.sources.API;return Os.call(this,()=>(e=new Gt(e),this.editor.applyDelta(e)),t,!0)}};ft(Ps,"DEFAULTS",{bounds:null,modules:{clipboard:!0,keyboard:!0,history:!0,uploader:!0},placeholder:"",readOnly:!1,registry:Hd,theme:"default"}),ft(Ps,"events",Zt.events),ft(Ps,"sources",Zt.sources),ft(Ps,"version","2.0.3"),ft(Ps,"imports",{delta:Gt,parchment:hM,"core/module":Vs,"core/theme":Ju});let Ve=Ps;function G0(r){return typeof r=="string"?document.querySelector(r):r}function cp(r){return Object.entries(r??{}).reduce((e,t)=>{let[n,i]=t;return{...e,[n]:i===!0?{}:i}},{})}function Z0(r){return Object.fromEntries(Object.entries(r).filter(e=>e[1]!==void 0))}function PM(r,e){const t=G0(r);if(!t)throw new Error("Invalid Quill container");const i=!e.theme||e.theme===Ve.DEFAULTS.theme?Ju:Ve.import(`themes/${e.theme}`);if(!i)throw new Error(`Invalid theme ${e.theme}. Did you register it?`);const{modules:l,...u}=Ve.DEFAULTS,{modules:f,...g}=i.DEFAULTS;let m=cp(e.modules);m!=null&&m.toolbar&&m.toolbar.constructor!==Object&&(m={...m,toolbar:{container:m.toolbar}});const R=Ql({},cp(l),cp(f),m),C={...u,...Z0(g),...Z0(e)};let b=e.registry;return b?e.formats&&Vu.warn('Ignoring "formats" option because "registry" is specified'):b=e.formats?OM(e.formats,C.registry,Vu):C.registry,{...C,registry:b,container:t,theme:i,modules:Object.entries(R).reduce((S,_)=>{let[D,E]=_;if(!E)return S;const x=Ve.import(`modules/${D}`);return x==null?(Vu.error(`Cannot load ${D} module. Are you sure you registered it?`),S):{...S,[D]:Ql({},x.DEFAULTS||{},E)}},{}),bounds:G0(C.bounds)}}function Os(r,e,t,n){if(!this.isEnabled()&&e===Zt.sources.USER&&!this.allowReadOnlyEdits)return new Gt;let i=t==null?null:this.getSelection();const l=this.editor.delta,u=r();if(i!=null&&(t===!0&&(t=i.index),n==null?i=K0(i,u,e):n!==0&&(i=K0(i,t,n,e)),this.setSelection(i,Zt.sources.SILENT)),u.length()>0){const f=[Zt.events.TEXT_CHANGE,u,l,e];this.emitter.emit(Zt.events.EDITOR_CHANGE,...f),e!==Zt.sources.SILENT&&this.emitter.emit(...f)}return u}function el(r,e,t,n,i){let l={};return typeof r.index=="number"&&typeof r.length=="number"?typeof e!="number"?(i=n,n=t,t=e,e=r.length,r=r.index):(e=r.length,r=r.index):typeof e!="number"&&(i=n,n=t,t=e,e=0),typeof t=="object"?(l=t,i=n):typeof t=="string"&&(n!=null?l[t]=n:i=t),i=i||Zt.sources.API,[r,e,l,i]}function K0(r,e,t,n){const i=typeof t=="number"?t:0;if(r==null)return null;let l,u;return e&&typeof e.transformPosition=="function"?[l,u]=[r.index,r.index+r.length].map(f=>e.transformPosition(f,n!==Zt.sources.USER)):[l,u]=[r.index,r.index+r.length].map(f=>f<e||f===e&&n===Zt.sources.USER?f:i>=0?f+i:Math.max(e,f+i)),new Jc(l,u-l)}class nu extends hh{}function Y0(r){return r instanceof ji||r instanceof ds}function X0(r){return typeof r.updateContent=="function"}class Hu extends Rm{constructor(e,t,n){let{emitter:i}=n;super(e,t),this.emitter=i,this.batch=!1,this.optimize(),this.enable(),this.domNode.addEventListener("dragstart",l=>this.handleDragStart(l))}batchStart(){Array.isArray(this.batch)||(this.batch=[])}batchEnd(){if(!this.batch)return;const e=this.batch;this.batch=!1,this.update(e)}emitMount(e){this.emitter.emit(Zt.events.SCROLL_BLOT_MOUNT,e)}emitUnmount(e){this.emitter.emit(Zt.events.SCROLL_BLOT_UNMOUNT,e)}emitEmbedUpdate(e,t){this.emitter.emit(Zt.events.SCROLL_EMBED_UPDATE,e,t)}deleteAt(e,t){const[n,i]=this.line(e),[l]=this.line(e+t);if(super.deleteAt(e,t),l!=null&&n!==l&&i>0){if(n instanceof ds||l instanceof ds){this.optimize();return}const u=l.children.head instanceof Ws?null:l.children.head;n.moveChildren(l,u),n.remove()}this.optimize()}enable(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",e?"true":"false")}formatAt(e,t,n,i){super.formatAt(e,t,n,i),this.optimize()}insertAt(e,t,n){if(e>=this.length())if(n==null||this.scroll.query(t,Jt.BLOCK)==null){const i=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(i),n==null&&t.endsWith(`
|
177
177
|
`)?i.insertAt(0,t.slice(0,-1),n):i.insertAt(0,t,n)}else{const i=this.scroll.create(t,n);this.appendChild(i)}else super.insertAt(e,t,n);this.optimize()}insertBefore(e,t){if(e.statics.scope===Jt.INLINE_BLOT){const n=this.scroll.create(this.statics.defaultChild.blotName);n.appendChild(e),super.insertBefore(n,t)}else super.insertBefore(e,t)}insertContents(e,t){const n=this.deltaToRenderBlocks(t.concat(new Gt().insert(`
|
178
|
-
`))),i=n.pop();if(i==null)return;this.batchStart();const l=n.shift();if(l){const g=l.type==="block"&&(l.delta.length()===0||!this.descendant(ds,e)[0]&&e<this.length()),m=l.type==="block"?l.delta:new Gt().insert({[l.key]:l.value});up(this,e,m);const R=l.type==="block"?1:0,
|
179
|
-
`);const b=us(this.line(e)[0]),S=hs.AttributeMap.diff(b,l.attributes)||{};Object.keys(S).forEach(_=>{this.formatAt(
|
178
|
+
`))),i=n.pop();if(i==null)return;this.batchStart();const l=n.shift();if(l){const g=l.type==="block"&&(l.delta.length()===0||!this.descendant(ds,e)[0]&&e<this.length()),m=l.type==="block"?l.delta:new Gt().insert({[l.key]:l.value});up(this,e,m);const R=l.type==="block"?1:0,C=e+m.length()+R;g&&this.insertAt(C-1,`
|
179
|
+
`);const b=us(this.line(e)[0]),S=hs.AttributeMap.diff(b,l.attributes)||{};Object.keys(S).forEach(_=>{this.formatAt(C-1,1,_,S[_])}),e=C}let[u,f]=this.children.find(e);if(n.length&&(u&&(u=u.split(f),f=0),n.forEach(g=>{if(g.type==="block"){const m=this.createBlock(g.attributes,u||void 0);up(m,0,g.delta)}else{const m=this.create(g.key,g.value);this.insertBefore(m,u||void 0),Object.keys(g.attributes).forEach(R=>{m.format(R,g.attributes[R])})}})),i.type==="block"&&i.delta.length()){const g=u?u.offset(u.scroll)+f:this.length();up(this,g,i.delta)}this.batchEnd(),this.optimize()}isEnabled(){return this.domNode.getAttribute("contenteditable")==="true"}leaf(e){const t=this.path(e).pop();if(!t)return[null,-1];const[n,i]=t;return n instanceof qi?[n,i]:[null,-1]}line(e){return e===this.length()?this.line(e-1):this.descendant(Y0,e)}lines(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;const n=(i,l,u)=>{let f=[],g=u;return i.children.forEachAt(l,u,(m,R,C)=>{Y0(m)?f.push(m):m instanceof hh&&(f=f.concat(n(m,R,g))),g-=C}),f};return n(this,e,t)}optimize(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch||(super.optimize(e,t),e.length>0&&this.emitter.emit(Zt.events.SCROLL_OPTIMIZE,e,t))}path(e){return super.path(e).slice(1)}remove(){}update(e){if(this.batch){Array.isArray(e)&&(this.batch=this.batch.concat(e));return}let t=Zt.sources.USER;typeof e=="string"&&(t=e),Array.isArray(e)||(e=this.observer.takeRecords()),e=e.filter(n=>{let{target:i}=n;const l=this.find(i,!0);return l&&!X0(l)}),e.length>0&&this.emitter.emit(Zt.events.SCROLL_BEFORE_UPDATE,t,e),super.update(e.concat([])),e.length>0&&this.emitter.emit(Zt.events.SCROLL_UPDATE,t,e)}updateEmbedAt(e,t,n){const[i]=this.descendant(l=>l instanceof ds,e);i&&i.statics.blotName===t&&X0(i)&&i.updateContent(n)}handleDragStart(e){e.preventDefault()}deltaToRenderBlocks(e){const t=[];let n=new Gt;return e.forEach(i=>{const l=i==null?void 0:i.insert;if(l)if(typeof l=="string"){const u=l.split(`
|
180
180
|
`);u.slice(0,-1).forEach(g=>{n.insert(g,i.attributes),t.push({type:"block",delta:n,attributes:i.attributes??{}}),n=new Gt});const f=u[u.length-1];f&&n.insert(f,i.attributes)}else{const u=Object.keys(l)[0];if(!u)return;this.query(u,Jt.INLINE)?n.push(i):(n.length()&&t.push({type:"block",delta:n,attributes:{}}),n=new Gt,t.push({type:"blockEmbed",key:u,value:l[u],attributes:i.attributes??{}}))}}),n.length()&&t.push({type:"block",delta:n,attributes:{}}),t}createBlock(e,t){let n;const i={};Object.entries(e).forEach(f=>{let[g,m]=f;this.query(g,Jt.BLOCK&Jt.BLOT)!=null?n=g:i[g]=m});const l=this.create(n||this.statics.defaultChild.blotName,n?e[n]:void 0);this.insertBefore(l,t||void 0);const u=l.length();return Object.entries(i).forEach(f=>{let[g,m]=f;l.formatAt(0,u,g,m)}),l}}ft(Hu,"blotName","scroll"),ft(Hu,"className","ql-editor"),ft(Hu,"tagName","DIV"),ft(Hu,"defaultChild",ji),ft(Hu,"allowedChildren",[ji,ds,nu]);function up(r,e,t){t.reduce((n,i)=>{const l=hs.Op.length(i);let u=i.attributes||{};if(i.insert!=null){if(typeof i.insert=="string"){const f=i.insert;r.insertAt(n,f);const[g]=r.descendant(qi,n),m=us(g);u=hs.AttributeMap.diff(m,u)||{}}else if(typeof i.insert=="object"){const f=Object.keys(i.insert)[0];if(f==null)return n;if(r.insertAt(n,f,i.insert[f]),r.scroll.query(f,Jt.INLINE)!=null){const[m]=r.descendant(qi,n),R=us(m);u=hs.AttributeMap.diff(R,u)||{}}}}return Object.keys(u).forEach(f=>{r.formatAt(n,l,f,u[f])}),n+l},e)}const Lm={scope:Jt.BLOCK,whitelist:["right","center","justify"]},NM=new Ca("align","align",Lm),Lx=new Us("align","ql-align",Lm),Mx=new oc("align","text-align",Lm);class Dx extends oc{value(e){let t=super.value(e);return t.startsWith("rgb(")?(t=t.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),`#${t.split(",").map(i=>`00${parseInt(i,10).toString(16)}`.slice(-2)).join("")}`):t}}const FM=new Us("color","ql-color",{scope:Jt.INLINE}),Mm=new Dx("color","color",{scope:Jt.INLINE}),jM=new Us("background","ql-bg",{scope:Jt.INLINE}),Dm=new Dx("background","background-color",{scope:Jt.INLINE});class iu extends nu{static create(e){const t=super.create(e);return t.setAttribute("spellcheck","false"),t}code(e,t){return this.children.map(n=>n.length()<=1?"":n.domNode.innerText).join(`
|
181
181
|
`).slice(e,e+t)}html(e,t){return`<pre>
|
182
182
|
${ph(this.code(e,t))}
|
183
|
-
</pre>`}}class zi extends ji{static register(){Ve.register(iu)}}ft(zi,"TAB"," ");class Om extends wa{}Om.blotName="code";Om.tagName="CODE";zi.blotName="code-block";zi.className="ql-code-block";zi.tagName="DIV";iu.blotName="code-block-container";iu.className="ql-code-block-container";iu.tagName="DIV";iu.allowedChildren=[zi];zi.allowedChildren=[$s,Ws,Xu];zi.requiredContainer=iu;const Pm={scope:Jt.BLOCK,whitelist:["rtl"]},Ox=new Ca("direction","dir",Pm),Px=new Us("direction","ql-direction",Pm),Nx=new oc("direction","direction",Pm),Fx={scope:Jt.INLINE,whitelist:["serif","monospace"]},jx=new Us("font","ql-font",Fx);class BM extends oc{value(e){return super.value(e).replace(/["']/g,"")}}const Bx=new BM("font","font-family",Fx),Hx=new Us("size","ql-size",{scope:Jt.INLINE,whitelist:["small","large","huge"]}),qx=new oc("size","font-size",{scope:Jt.INLINE,whitelist:["10px","18px","32px"]}),HM=cl("quill:keyboard"),qM=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey";class gh extends Vs{static match(e,t){return["altKey","ctrlKey","metaKey","shiftKey"].some(n=>!!t[n]!==e[n]&&t[n]!==null)?!1:t.key===e.key||t.key===e.which}constructor(e,t){super(e,t),this.bindings={},Object.keys(this.options.bindings).forEach(n=>{this.options.bindings[n]&&this.addBinding(this.options.bindings[n])}),this.addBinding({key:"Enter",shiftKey:null},this.handleEnter),this.addBinding({key:"Enter",metaKey:null,ctrlKey:null,altKey:null},()=>{}),/Firefox/i.test(navigator.userAgent)?(this.addBinding({key:"Backspace"},{collapsed:!0},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0},this.handleDelete)):(this.addBinding({key:"Backspace"},{collapsed:!0,prefix:/^.?$/},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0,suffix:/^.?$/},this.handleDelete)),this.addBinding({key:"Backspace"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Delete"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Backspace",altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},this.handleBackspace),this.listen()}addBinding(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=$M(e);if(i==null){HM.warn("Attempted to add invalid keyboard binding",i);return}typeof t=="function"&&(t={handler:t}),typeof n=="function"&&(n={handler:n}),(Array.isArray(i.key)?i.key:[i.key]).forEach(u=>{const f={...i,key:u,...t,...n};this.bindings[f.key]=this.bindings[f.key]||[],this.bindings[f.key].push(f)})}listen(){this.quill.root.addEventListener("keydown",e=>{if(e.defaultPrevented||e.isComposing||e.keyCode===229&&(e.key==="Enter"||e.key==="Backspace"))return;const i=(this.bindings[e.key]||[]).concat(this.bindings[e.which]||[]).filter(x=>gh.match(e,x));if(i.length===0)return;const l=Ve.find(e.target,!0);if(l&&l.scroll!==this.quill.scroll)return;const u=this.quill.getSelection();if(u==null||!this.quill.hasFocus())return;const[f,g]=this.quill.getLine(u.index),[m,R]=this.quill.getLeaf(u.index),[
|
183
|
+
</pre>`}}class zi extends ji{static register(){Ve.register(iu)}}ft(zi,"TAB"," ");class Om extends wa{}Om.blotName="code";Om.tagName="CODE";zi.blotName="code-block";zi.className="ql-code-block";zi.tagName="DIV";iu.blotName="code-block-container";iu.className="ql-code-block-container";iu.tagName="DIV";iu.allowedChildren=[zi];zi.allowedChildren=[$s,Ws,Xu];zi.requiredContainer=iu;const Pm={scope:Jt.BLOCK,whitelist:["rtl"]},Ox=new Ca("direction","dir",Pm),Px=new Us("direction","ql-direction",Pm),Nx=new oc("direction","direction",Pm),Fx={scope:Jt.INLINE,whitelist:["serif","monospace"]},jx=new Us("font","ql-font",Fx);class BM extends oc{value(e){return super.value(e).replace(/["']/g,"")}}const Bx=new BM("font","font-family",Fx),Hx=new Us("size","ql-size",{scope:Jt.INLINE,whitelist:["small","large","huge"]}),qx=new oc("size","font-size",{scope:Jt.INLINE,whitelist:["10px","18px","32px"]}),HM=cl("quill:keyboard"),qM=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey";class gh extends Vs{static match(e,t){return["altKey","ctrlKey","metaKey","shiftKey"].some(n=>!!t[n]!==e[n]&&t[n]!==null)?!1:t.key===e.key||t.key===e.which}constructor(e,t){super(e,t),this.bindings={},Object.keys(this.options.bindings).forEach(n=>{this.options.bindings[n]&&this.addBinding(this.options.bindings[n])}),this.addBinding({key:"Enter",shiftKey:null},this.handleEnter),this.addBinding({key:"Enter",metaKey:null,ctrlKey:null,altKey:null},()=>{}),/Firefox/i.test(navigator.userAgent)?(this.addBinding({key:"Backspace"},{collapsed:!0},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0},this.handleDelete)):(this.addBinding({key:"Backspace"},{collapsed:!0,prefix:/^.?$/},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0,suffix:/^.?$/},this.handleDelete)),this.addBinding({key:"Backspace"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Delete"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Backspace",altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},this.handleBackspace),this.listen()}addBinding(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=$M(e);if(i==null){HM.warn("Attempted to add invalid keyboard binding",i);return}typeof t=="function"&&(t={handler:t}),typeof n=="function"&&(n={handler:n}),(Array.isArray(i.key)?i.key:[i.key]).forEach(u=>{const f={...i,key:u,...t,...n};this.bindings[f.key]=this.bindings[f.key]||[],this.bindings[f.key].push(f)})}listen(){this.quill.root.addEventListener("keydown",e=>{if(e.defaultPrevented||e.isComposing||e.keyCode===229&&(e.key==="Enter"||e.key==="Backspace"))return;const i=(this.bindings[e.key]||[]).concat(this.bindings[e.which]||[]).filter(x=>gh.match(e,x));if(i.length===0)return;const l=Ve.find(e.target,!0);if(l&&l.scroll!==this.quill.scroll)return;const u=this.quill.getSelection();if(u==null||!this.quill.hasFocus())return;const[f,g]=this.quill.getLine(u.index),[m,R]=this.quill.getLeaf(u.index),[C,b]=u.length===0?[m,R]:this.quill.getLeaf(u.index+u.length),S=m instanceof rh?m.value().slice(0,R):"",_=C instanceof rh?C.value().slice(b):"",D={collapsed:u.length===0,empty:u.length===0&&f.length()<=1,format:this.quill.getFormat(u),line:f,offset:g,prefix:S,suffix:_,event:e};i.some(x=>{if(x.collapsed!=null&&x.collapsed!==D.collapsed||x.empty!=null&&x.empty!==D.empty||x.offset!=null&&x.offset!==D.offset)return!1;if(Array.isArray(x.format)){if(x.format.every(L=>D.format[L]==null))return!1}else if(typeof x.format=="object"&&!Object.keys(x.format).every(L=>x.format[L]===!0?D.format[L]!=null:x.format[L]===!1?D.format[L]==null:Em(x.format[L],D.format[L])))return!1;return x.prefix!=null&&!x.prefix.test(D.prefix)||x.suffix!=null&&!x.suffix.test(D.suffix)?!1:x.handler.call(this,u,D,x)!==!0})&&e.preventDefault()})}handleBackspace(e,t){const n=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;if(e.index===0||this.quill.getLength()<=1)return;let i={};const[l]=this.quill.getLine(e.index);let u=new Gt().retain(e.index-n).delete(n);if(t.offset===0){const[f]=this.quill.getLine(e.index-1);if(f&&!(f.statics.blotName==="block"&&f.length()<=1)){const m=l.formats(),R=this.quill.getFormat(e.index-1,1);if(i=hs.AttributeMap.diff(m,R)||{},Object.keys(i).length>0){const C=new Gt().retain(e.index+l.length()-2).retain(1,i);u=u.compose(C)}}}this.quill.updateContents(u,Ve.sources.USER),this.quill.focus()}handleDelete(e,t){const n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(e.index>=this.quill.getLength()-n)return;let i={};const[l]=this.quill.getLine(e.index);let u=new Gt().retain(e.index).delete(n);if(t.offset>=l.length()-1){const[f]=this.quill.getLine(e.index+1);if(f){const g=l.formats(),m=this.quill.getFormat(e.index,1);i=hs.AttributeMap.diff(g,m)||{},Object.keys(i).length>0&&(u=u.retain(f.length()-1).retain(1,i))}}this.quill.updateContents(u,Ve.sources.USER),this.quill.focus()}handleDeleteRange(e){Nm({range:e,quill:this.quill}),this.quill.focus()}handleEnter(e,t){const n=Object.keys(t.format).reduce((l,u)=>(this.quill.scroll.query(u,Jt.BLOCK)&&!Array.isArray(t.format[u])&&(l[u]=t.format[u]),l),{}),i=new Gt().retain(e.index).delete(e.length).insert(`
|
184
184
|
`,n);this.quill.updateContents(i,Ve.sources.USER),this.quill.setSelection(e.index+1,Ve.sources.SILENT),this.quill.focus()}}const zM={bindings:{bold:fp("bold"),italic:fp("italic"),underline:fp("underline"),indent:{key:"Tab",format:["blockquote","indent","list"],handler(r,e){return e.collapsed&&e.offset!==0?!0:(this.quill.format("indent","+1",Ve.sources.USER),!1)}},outdent:{key:"Tab",shiftKey:!0,format:["blockquote","indent","list"],handler(r,e){return e.collapsed&&e.offset!==0?!0:(this.quill.format("indent","-1",Ve.sources.USER),!1)}},"outdent backspace":{key:"Backspace",collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler(r,e){e.format.indent!=null?this.quill.format("indent","-1",Ve.sources.USER):e.format.list!=null&&this.quill.format("list",!1,Ve.sources.USER)}},"indent code-block":J0(!0),"outdent code-block":J0(!1),"remove tab":{key:"Tab",shiftKey:!0,collapsed:!0,prefix:/\t$/,handler(r){this.quill.deleteText(r.index-1,1,Ve.sources.USER)}},tab:{key:"Tab",handler(r,e){if(e.format.table)return!0;this.quill.history.cutoff();const t=new Gt().retain(r.index).delete(r.length).insert(" ");return this.quill.updateContents(t,Ve.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(r.index+1,Ve.sources.SILENT),!1}},"blockquote empty enter":{key:"Enter",collapsed:!0,format:["blockquote"],empty:!0,handler(){this.quill.format("blockquote",!1,Ve.sources.USER)}},"list empty enter":{key:"Enter",collapsed:!0,format:["list"],empty:!0,handler(r,e){const t={list:!1};e.format.indent&&(t.indent=!1),this.quill.formatLine(r.index,r.length,t,Ve.sources.USER)}},"checklist enter":{key:"Enter",collapsed:!0,format:{list:"checked"},handler(r){const[e,t]=this.quill.getLine(r.index),n={...e.formats(),list:"checked"},i=new Gt().retain(r.index).insert(`
|
185
185
|
`,n).retain(e.length()-t-1).retain(1,{list:"unchecked"});this.quill.updateContents(i,Ve.sources.USER),this.quill.setSelection(r.index+1,Ve.sources.SILENT),this.quill.scrollSelectionIntoView()}},"header enter":{key:"Enter",collapsed:!0,format:["header"],suffix:/^$/,handler(r,e){const[t,n]=this.quill.getLine(r.index),i=new Gt().retain(r.index).insert(`
|
186
186
|
`,e.format).retain(t.length()-n-1).retain(1,{header:null});this.quill.updateContents(i,Ve.sources.USER),this.quill.setSelection(r.index+1,Ve.sources.SILENT),this.quill.scrollSelectionIntoView()}},"table backspace":{key:"Backspace",format:["table"],collapsed:!0,offset:0,handler(){}},"table delete":{key:"Delete",format:["table"],collapsed:!0,suffix:/^$/,handler(){}},"table enter":{key:"Enter",shiftKey:null,format:["table"],handler(r){const e=this.quill.getModule("table");if(e){const[t,n,i,l]=e.getTable(r),u=UM(t,n,i,l);if(u==null)return;let f=t.offset();if(u<0){const g=new Gt().retain(f).insert(`
|
187
187
|
`);this.quill.updateContents(g,Ve.sources.USER),this.quill.setSelection(r.index+1,r.length,Ve.sources.SILENT)}else if(u>0){f+=t.length();const g=new Gt().retain(f).insert(`
|
188
|
-
`);this.quill.updateContents(g,Ve.sources.USER),this.quill.setSelection(f,Ve.sources.USER)}}}},"table tab":{key:"Tab",shiftKey:null,format:["table"],handler(r,e){const{event:t,line:n}=e,i=n.offset(this.quill.scroll);t.shiftKey?this.quill.setSelection(i-1,Ve.sources.USER):this.quill.setSelection(i+n.length(),Ve.sources.USER)}},"list autofill":{key:" ",shiftKey:null,collapsed:!0,format:{"code-block":!1,blockquote:!1,table:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler(r,e){if(this.quill.scroll.query("list")==null)return!0;const{length:t}=e.prefix,[n,i]=this.quill.getLine(r.index);if(i>t)return!0;let l;switch(e.prefix.trim()){case"[]":case"[ ]":l="unchecked";break;case"[x]":l="checked";break;case"-":case"*":l="bullet";break;default:l="ordered"}this.quill.insertText(r.index," ",Ve.sources.USER),this.quill.history.cutoff();const u=new Gt().retain(r.index-i).delete(t+1).retain(n.length()-2-i).retain(1,{list:l});return this.quill.updateContents(u,Ve.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(r.index-t,Ve.sources.SILENT),!1}},"code exit":{key:"Enter",collapsed:!0,format:["code-block"],prefix:/^$/,suffix:/^\s*$/,handler(r){const[e,t]=this.quill.getLine(r.index);let n=2,i=e;for(;i!=null&&i.length()<=1&&i.formats()["code-block"];)if(i=i.prev,n-=1,n<=0){const l=new Gt().retain(r.index+e.length()-t-2).retain(1,{"code-block":null}).delete(1);return this.quill.updateContents(l,Ve.sources.USER),this.quill.setSelection(r.index-1,Ve.sources.SILENT),!1}return!0}},"embed left":qd("ArrowLeft",!1),"embed left shift":qd("ArrowLeft",!0),"embed right":qd("ArrowRight",!1),"embed right shift":qd("ArrowRight",!0),"table down":Q0(!1),"table up":Q0(!0)}};gh.DEFAULTS=zM;function J0(r){return{key:"Tab",shiftKey:!r,format:{"code-block":!0},handler(e,t){let{event:n}=t;const i=this.quill.scroll.query("code-block"),{TAB:l}=i;if(e.length===0&&!n.shiftKey){this.quill.insertText(e.index,l,Ve.sources.USER),this.quill.setSelection(e.index+l.length,Ve.sources.SILENT);return}const u=e.length===0?this.quill.getLines(e.index,1):this.quill.getLines(e);let{index:f,length:g}=e;u.forEach((m,R)=>{r?(m.insertAt(0,l),R===0?f+=l.length:g+=l.length):m.domNode.textContent.startsWith(l)&&(m.deleteAt(0,l.length),R===0?f-=l.length:g-=l.length)}),this.quill.update(Ve.sources.USER),this.quill.setSelection(f,g,Ve.sources.SILENT)}}}function qd(r,e){return{key:r,shiftKey:e,altKey:null,[r==="ArrowLeft"?"prefix":"suffix"]:/^$/,handler(n){let{index:i}=n;r==="ArrowRight"&&(i+=n.length+1);const[l]=this.quill.getLeaf(i);return l instanceof zo?(r==="ArrowLeft"?e?this.quill.setSelection(n.index-1,n.length+1,Ve.sources.USER):this.quill.setSelection(n.index-1,Ve.sources.USER):e?this.quill.setSelection(n.index,n.length+1,Ve.sources.USER):this.quill.setSelection(n.index+n.length+1,Ve.sources.USER),!1):!0}}}function fp(r){return{key:r[0],shortKey:!0,handler(e,t){this.quill.format(r,!t.format[r],Ve.sources.USER)}}}function Q0(r){return{key:r?"ArrowUp":"ArrowDown",collapsed:!0,format:["table"],handler(e,t){const n=r?"prev":"next",i=t.line,l=i.parent[n];if(l!=null){if(l.statics.blotName==="table-row"){let u=l.children.head,f=i;for(;f.prev!=null;)f=f.prev,u=u.next;const g=u.offset(this.quill.scroll)+Math.min(t.offset,u.length()-1);this.quill.setSelection(g,0,Ve.sources.USER)}}else{const u=i.table()[n];u!=null&&(r?this.quill.setSelection(u.offset(this.quill.scroll)+u.length()-1,0,Ve.sources.USER):this.quill.setSelection(u.offset(this.quill.scroll),0,Ve.sources.USER))}return!1}}}function $M(r){if(typeof r=="string"||typeof r=="number")r={key:r};else if(typeof r=="object")r=Uu(r);else return null;return r.shortKey&&(r[qM]=r.shortKey,delete r.shortKey),r}function Nm(r){let{quill:e,range:t}=r;const n=e.getLines(t);let i={};if(n.length>1){const l=n[0].formats(),u=n[n.length-1].formats();i=hs.AttributeMap.diff(u,l)||{}}e.deleteText(t,Ve.sources.USER),Object.keys(i).length>0&&e.formatLine(t.index,1,i,Ve.sources.USER),e.setSelection(t.index,Ve.sources.SILENT)}function UM(r,e,t,n){return e.prev==null&&e.next==null?t.prev==null&&t.next==null?n===0?-1:1:t.prev==null?-1:1:e.prev==null?-1:e.next==null?1:null}const WM=/font-weight:\s*normal/,VM=["P","OL","UL"],ey=r=>r&&VM.includes(r.tagName),GM=r=>{Array.from(r.querySelectorAll("br")).filter(e=>ey(e.previousElementSibling)&&ey(e.nextElementSibling)).forEach(e=>{var t;(t=e.parentNode)==null||t.removeChild(e)})},ZM=r=>{Array.from(r.querySelectorAll('b[style*="font-weight"]')).filter(e=>{var t;return(t=e.getAttribute("style"))==null?void 0:t.match(WM)}).forEach(e=>{var n;const t=r.createDocumentFragment();t.append(...e.childNodes),(n=e.parentNode)==null||n.replaceChild(t,e)})};function KM(r){r.querySelector('[id^="docs-internal-guid-"]')&&(ZM(r),GM(r))}const YM=/\bmso-list:[^;]*ignore/i,XM=/\bmso-list:[^;]*\bl(\d+)/i,JM=/\bmso-list:[^;]*\blevel(\d+)/i,QM=(r,e)=>{const t=r.getAttribute("style"),n=t==null?void 0:t.match(XM);if(!n)return null;const i=Number(n[1]),l=t==null?void 0:t.match(JM),u=l?Number(l[1]):1,f=new RegExp(`@list l${i}:level${u}\\s*\\{[^\\}]*mso-level-number-format:\\s*([\\w-]+)`,"i"),g=e.match(f),m=g&&g[1]==="bullet"?"bullet":"ordered";return{id:i,indent:u,type:m,element:r}},eD=r=>{var u,f;const e=Array.from(r.querySelectorAll("[style*=mso-list]")),t=[],n=[];e.forEach(g=>{(g.getAttribute("style")||"").match(YM)?t.push(g):n.push(g)}),t.forEach(g=>{var m;return(m=g.parentNode)==null?void 0:m.removeChild(g)});const i=r.documentElement.innerHTML,l=n.map(g=>QM(g,i)).filter(g=>g);for(;l.length;){const g=[];let m=l.shift();for(;m;)g.push(m),m=l.length&&((u=l[0])==null?void 0:u.element)===m.element.nextElementSibling&&l[0].id===m.id?l.shift():null;const R=document.createElement("ul");g.forEach(S=>{const _=document.createElement("li");_.setAttribute("data-list",S.type),S.indent>1&&_.setAttribute("class",`ql-indent-${S.indent-1}`),_.innerHTML=S.element.innerHTML,R.appendChild(_)});const
|
188
|
+
`);this.quill.updateContents(g,Ve.sources.USER),this.quill.setSelection(f,Ve.sources.USER)}}}},"table tab":{key:"Tab",shiftKey:null,format:["table"],handler(r,e){const{event:t,line:n}=e,i=n.offset(this.quill.scroll);t.shiftKey?this.quill.setSelection(i-1,Ve.sources.USER):this.quill.setSelection(i+n.length(),Ve.sources.USER)}},"list autofill":{key:" ",shiftKey:null,collapsed:!0,format:{"code-block":!1,blockquote:!1,table:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler(r,e){if(this.quill.scroll.query("list")==null)return!0;const{length:t}=e.prefix,[n,i]=this.quill.getLine(r.index);if(i>t)return!0;let l;switch(e.prefix.trim()){case"[]":case"[ ]":l="unchecked";break;case"[x]":l="checked";break;case"-":case"*":l="bullet";break;default:l="ordered"}this.quill.insertText(r.index," ",Ve.sources.USER),this.quill.history.cutoff();const u=new Gt().retain(r.index-i).delete(t+1).retain(n.length()-2-i).retain(1,{list:l});return this.quill.updateContents(u,Ve.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(r.index-t,Ve.sources.SILENT),!1}},"code exit":{key:"Enter",collapsed:!0,format:["code-block"],prefix:/^$/,suffix:/^\s*$/,handler(r){const[e,t]=this.quill.getLine(r.index);let n=2,i=e;for(;i!=null&&i.length()<=1&&i.formats()["code-block"];)if(i=i.prev,n-=1,n<=0){const l=new Gt().retain(r.index+e.length()-t-2).retain(1,{"code-block":null}).delete(1);return this.quill.updateContents(l,Ve.sources.USER),this.quill.setSelection(r.index-1,Ve.sources.SILENT),!1}return!0}},"embed left":qd("ArrowLeft",!1),"embed left shift":qd("ArrowLeft",!0),"embed right":qd("ArrowRight",!1),"embed right shift":qd("ArrowRight",!0),"table down":Q0(!1),"table up":Q0(!0)}};gh.DEFAULTS=zM;function J0(r){return{key:"Tab",shiftKey:!r,format:{"code-block":!0},handler(e,t){let{event:n}=t;const i=this.quill.scroll.query("code-block"),{TAB:l}=i;if(e.length===0&&!n.shiftKey){this.quill.insertText(e.index,l,Ve.sources.USER),this.quill.setSelection(e.index+l.length,Ve.sources.SILENT);return}const u=e.length===0?this.quill.getLines(e.index,1):this.quill.getLines(e);let{index:f,length:g}=e;u.forEach((m,R)=>{r?(m.insertAt(0,l),R===0?f+=l.length:g+=l.length):m.domNode.textContent.startsWith(l)&&(m.deleteAt(0,l.length),R===0?f-=l.length:g-=l.length)}),this.quill.update(Ve.sources.USER),this.quill.setSelection(f,g,Ve.sources.SILENT)}}}function qd(r,e){return{key:r,shiftKey:e,altKey:null,[r==="ArrowLeft"?"prefix":"suffix"]:/^$/,handler(n){let{index:i}=n;r==="ArrowRight"&&(i+=n.length+1);const[l]=this.quill.getLeaf(i);return l instanceof zo?(r==="ArrowLeft"?e?this.quill.setSelection(n.index-1,n.length+1,Ve.sources.USER):this.quill.setSelection(n.index-1,Ve.sources.USER):e?this.quill.setSelection(n.index,n.length+1,Ve.sources.USER):this.quill.setSelection(n.index+n.length+1,Ve.sources.USER),!1):!0}}}function fp(r){return{key:r[0],shortKey:!0,handler(e,t){this.quill.format(r,!t.format[r],Ve.sources.USER)}}}function Q0(r){return{key:r?"ArrowUp":"ArrowDown",collapsed:!0,format:["table"],handler(e,t){const n=r?"prev":"next",i=t.line,l=i.parent[n];if(l!=null){if(l.statics.blotName==="table-row"){let u=l.children.head,f=i;for(;f.prev!=null;)f=f.prev,u=u.next;const g=u.offset(this.quill.scroll)+Math.min(t.offset,u.length()-1);this.quill.setSelection(g,0,Ve.sources.USER)}}else{const u=i.table()[n];u!=null&&(r?this.quill.setSelection(u.offset(this.quill.scroll)+u.length()-1,0,Ve.sources.USER):this.quill.setSelection(u.offset(this.quill.scroll),0,Ve.sources.USER))}return!1}}}function $M(r){if(typeof r=="string"||typeof r=="number")r={key:r};else if(typeof r=="object")r=Uu(r);else return null;return r.shortKey&&(r[qM]=r.shortKey,delete r.shortKey),r}function Nm(r){let{quill:e,range:t}=r;const n=e.getLines(t);let i={};if(n.length>1){const l=n[0].formats(),u=n[n.length-1].formats();i=hs.AttributeMap.diff(u,l)||{}}e.deleteText(t,Ve.sources.USER),Object.keys(i).length>0&&e.formatLine(t.index,1,i,Ve.sources.USER),e.setSelection(t.index,Ve.sources.SILENT)}function UM(r,e,t,n){return e.prev==null&&e.next==null?t.prev==null&&t.next==null?n===0?-1:1:t.prev==null?-1:1:e.prev==null?-1:e.next==null?1:null}const WM=/font-weight:\s*normal/,VM=["P","OL","UL"],ey=r=>r&&VM.includes(r.tagName),GM=r=>{Array.from(r.querySelectorAll("br")).filter(e=>ey(e.previousElementSibling)&&ey(e.nextElementSibling)).forEach(e=>{var t;(t=e.parentNode)==null||t.removeChild(e)})},ZM=r=>{Array.from(r.querySelectorAll('b[style*="font-weight"]')).filter(e=>{var t;return(t=e.getAttribute("style"))==null?void 0:t.match(WM)}).forEach(e=>{var n;const t=r.createDocumentFragment();t.append(...e.childNodes),(n=e.parentNode)==null||n.replaceChild(t,e)})};function KM(r){r.querySelector('[id^="docs-internal-guid-"]')&&(ZM(r),GM(r))}const YM=/\bmso-list:[^;]*ignore/i,XM=/\bmso-list:[^;]*\bl(\d+)/i,JM=/\bmso-list:[^;]*\blevel(\d+)/i,QM=(r,e)=>{const t=r.getAttribute("style"),n=t==null?void 0:t.match(XM);if(!n)return null;const i=Number(n[1]),l=t==null?void 0:t.match(JM),u=l?Number(l[1]):1,f=new RegExp(`@list l${i}:level${u}\\s*\\{[^\\}]*mso-level-number-format:\\s*([\\w-]+)`,"i"),g=e.match(f),m=g&&g[1]==="bullet"?"bullet":"ordered";return{id:i,indent:u,type:m,element:r}},eD=r=>{var u,f;const e=Array.from(r.querySelectorAll("[style*=mso-list]")),t=[],n=[];e.forEach(g=>{(g.getAttribute("style")||"").match(YM)?t.push(g):n.push(g)}),t.forEach(g=>{var m;return(m=g.parentNode)==null?void 0:m.removeChild(g)});const i=r.documentElement.innerHTML,l=n.map(g=>QM(g,i)).filter(g=>g);for(;l.length;){const g=[];let m=l.shift();for(;m;)g.push(m),m=l.length&&((u=l[0])==null?void 0:u.element)===m.element.nextElementSibling&&l[0].id===m.id?l.shift():null;const R=document.createElement("ul");g.forEach(S=>{const _=document.createElement("li");_.setAttribute("data-list",S.type),S.indent>1&&_.setAttribute("class",`ql-indent-${S.indent-1}`),_.innerHTML=S.element.innerHTML,R.appendChild(_)});const C=(f=g[0])==null?void 0:f.element,{parentNode:b}=C??{};C&&(b==null||b.replaceChild(R,C)),g.slice(1).forEach(S=>{let{element:_}=S;b==null||b.removeChild(_)})}};function tD(r){r.documentElement.getAttribute("xmlns:w")==="urn:schemas-microsoft-com:office:word"&&eD(r)}const rD=[tD,KM],nD=r=>{r.documentElement&&rD.forEach(e=>{e(r)})},iD=cl("quill:clipboard"),oD=[[Node.TEXT_NODE,vD],[Node.TEXT_NODE,ry],["br",uD],[Node.ELEMENT_NODE,ry],[Node.ELEMENT_NODE,cD],[Node.ELEMENT_NODE,lD],[Node.ELEMENT_NODE,gD],["li",hD],["ol, ul",pD],["pre",fD],["tr",mD],["b",dp("bold")],["i",dp("italic")],["strike",dp("strike")],["style",dD]],sD=[NM,Ox].reduce((r,e)=>(r[e.keyName]=e,r),{}),ty=[Mx,Dm,Mm,Nx,Bx,qx].reduce((r,e)=>(r[e.keyName]=e,r),{});class zx extends Vs{constructor(e,t){super(e,t),this.quill.root.addEventListener("copy",n=>this.onCaptureCopy(n,!1)),this.quill.root.addEventListener("cut",n=>this.onCaptureCopy(n,!0)),this.quill.root.addEventListener("paste",this.onCapturePaste.bind(this)),this.matchers=[],oD.concat(this.options.matchers??[]).forEach(n=>{let[i,l]=n;this.addMatcher(i,l)})}addMatcher(e,t){this.matchers.push([e,t])}convert(e){let{html:t,text:n}=e,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(i[zi.blotName])return new Gt().insert(n||"",{[zi.blotName]:i[zi.blotName]});if(!t)return new Gt().insert(n||"",i);const l=this.convertHTML(t);return sd(l,`
|
189
189
|
`)&&(l.ops[l.ops.length-1].attributes==null||i.table)?l.compose(new Gt().retain(l.length()-1).delete(1)):l}normalizeHTML(e){nD(e)}convertHTML(e){const t=new DOMParser().parseFromString(e,"text/html");this.normalizeHTML(t);const n=t.body,i=new WeakMap,[l,u]=this.prepareMatching(n,i);return Fm(this.quill.scroll,n,l,u,i)}dangerouslyPasteHTML(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ve.sources.API;if(typeof e=="string"){const i=this.convert({html:e,text:""});this.quill.setContents(i,t),this.quill.setSelection(0,Ve.sources.SILENT)}else{const i=this.convert({html:t,text:""});this.quill.updateContents(new Gt().retain(e).concat(i),n),this.quill.setSelection(e+i.length(),Ve.sources.SILENT)}}onCaptureCopy(e){var u,f;let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(e.defaultPrevented)return;e.preventDefault();const[n]=this.quill.selection.getRange();if(n==null)return;const{html:i,text:l}=this.onCopy(n,t);(u=e.clipboardData)==null||u.setData("text/plain",l),(f=e.clipboardData)==null||f.setData("text/html",i),t&&Nm({range:n,quill:this.quill})}normalizeURIList(e){return e.split(/\r?\n/).filter(t=>t[0]!=="#").join(`
|
190
|
-
`)}onCapturePaste(e){var u,f,g,m,R;if(e.defaultPrevented||!this.quill.isEnabled())return;e.preventDefault();const t=this.quill.getSelection(!0);if(t==null)return;const n=(u=e.clipboardData)==null?void 0:u.getData("text/html");let i=(f=e.clipboardData)==null?void 0:f.getData("text/plain");if(!n&&!i){const
|
190
|
+
`)}onCapturePaste(e){var u,f,g,m,R;if(e.defaultPrevented||!this.quill.isEnabled())return;e.preventDefault();const t=this.quill.getSelection(!0);if(t==null)return;const n=(u=e.clipboardData)==null?void 0:u.getData("text/html");let i=(f=e.clipboardData)==null?void 0:f.getData("text/plain");if(!n&&!i){const C=(g=e.clipboardData)==null?void 0:g.getData("text/uri-list");C&&(i=this.normalizeURIList(C))}const l=Array.from(((m=e.clipboardData)==null?void 0:m.files)||[]);if(!n&&l.length>0){this.quill.uploader.upload(t,l);return}if(n&&l.length>0){const C=new DOMParser().parseFromString(n,"text/html");if(C.body.childElementCount===1&&((R=C.body.firstElementChild)==null?void 0:R.tagName)==="IMG"){this.quill.uploader.upload(t,l);return}}this.onPaste(t,{html:n,text:i})}onCopy(e){const t=this.quill.getText(e);return{html:this.quill.getSemanticHTML(e),text:t}}onPaste(e,t){let{text:n,html:i}=t;const l=this.quill.getFormat(e.index),u=this.convert({text:n,html:i},l);iD.log("onPaste",u,{text:n,html:i});const f=new Gt().retain(e.index).delete(e.length).concat(u);this.quill.updateContents(f,Ve.sources.USER),this.quill.setSelection(f.length()-e.length,Ve.sources.SILENT),this.quill.scrollSelectionIntoView()}prepareMatching(e,t){const n=[],i=[];return this.matchers.forEach(l=>{const[u,f]=l;switch(u){case Node.TEXT_NODE:i.push(f);break;case Node.ELEMENT_NODE:n.push(f);break;default:Array.from(e.querySelectorAll(u)).forEach(g=>{if(t.has(g)){const m=t.get(g);m==null||m.push(f)}else t.set(g,[f])});break}}),[n,i]}}ft(zx,"DEFAULTS",{matchers:[]});function ou(r,e,t,n){return n.query(e)?r.reduce((i,l)=>{if(!l.insert)return i;if(l.attributes&&l.attributes[e])return i.push(l);const u=t?{[e]:t}:{};return i.insert(l.insert,{...u,...l.attributes})},new Gt):r}function sd(r,e){let t="";for(let n=r.ops.length-1;n>=0&&t.length<e.length;--n){const i=r.ops[n];if(typeof i.insert!="string")break;t=i.insert+t}return t.slice(-1*e.length)===e}function Xl(r,e){if(!(r instanceof Element))return!1;const t=e.query(r);return t&&t.prototype instanceof zo?!1:["address","article","blockquote","canvas","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","iframe","li","main","nav","ol","output","p","pre","section","table","td","tr","ul","video"].includes(r.tagName.toLowerCase())}function aD(r,e){return r.previousElementSibling&&r.nextElementSibling&&!Xl(r.previousElementSibling,e)&&!Xl(r.nextElementSibling,e)}const zd=new WeakMap;function $x(r){return r==null?!1:(zd.has(r)||(r.tagName==="PRE"?zd.set(r,!0):zd.set(r,$x(r.parentNode))),zd.get(r))}function Fm(r,e,t,n,i){return e.nodeType===e.TEXT_NODE?n.reduce((l,u)=>u(e,l,r),new Gt):e.nodeType===e.ELEMENT_NODE?Array.from(e.childNodes||[]).reduce((l,u)=>{let f=Fm(r,u,t,n,i);return u.nodeType===e.ELEMENT_NODE&&(f=t.reduce((g,m)=>m(u,g,r),f),f=(i.get(u)||[]).reduce((g,m)=>m(u,g,r),f)),l.concat(f)},new Gt):new Gt}function dp(r){return(e,t,n)=>ou(t,r,!0,n)}function lD(r,e,t){const n=Ca.keys(r),i=Us.keys(r),l=oc.keys(r),u={};return n.concat(i).concat(l).forEach(f=>{let g=t.query(f,Jt.ATTRIBUTE);g!=null&&(u[g.attrName]=g.value(r),u[g.attrName])||(g=sD[f],g!=null&&(g.attrName===f||g.keyName===f)&&(u[g.attrName]=g.value(r)||void 0),g=ty[f],g!=null&&(g.attrName===f||g.keyName===f)&&(g=ty[f],u[g.attrName]=g.value(r)||void 0))}),Object.entries(u).reduce((f,g)=>{let[m,R]=g;return ou(f,m,R,t)},e)}function cD(r,e,t){const n=t.query(r);if(n==null)return e;if(n.prototype instanceof zo){const i={},l=n.value(r);if(l!=null)return i[n.blotName]=l,new Gt().insert(i,n.formats(r,t))}else if(n.prototype instanceof Qf&&!sd(e,`
|
191
191
|
`)&&e.insert(`
|
192
192
|
`),"blotName"in n&&"formats"in n&&typeof n.formats=="function")return ou(e,n.blotName,n.formats(r,t),t);return e}function uD(r,e){return sd(e,`
|
193
193
|
`)||e.insert(`
|
@@ -200,14 +200,14 @@ ${ph(this.code(e,t))}
|
|
200
200
|
`)&&!aD(r,t))return e;n=n.replace(/[^\S\u00a0]/g," "),n=n.replace(/ {2,}/g," "),(r.previousSibling==null&&r.parentElement!=null&&Xl(r.parentElement,t)||r.previousSibling instanceof Element&&Xl(r.previousSibling,t))&&(n=n.replace(/^ /,"")),(r.nextSibling==null&&r.parentElement!=null&&Xl(r.parentElement,t)||r.nextSibling instanceof Element&&Xl(r.nextSibling,t))&&(n=n.replace(/ $/,"")),n=n.replaceAll(" "," ")}return e.insert(n)}class Ux extends Vs{constructor(t,n){super(t,n);ft(this,"lastRecorded",0);ft(this,"ignoreChange",!1);ft(this,"stack",{undo:[],redo:[]});ft(this,"currentRange",null);this.quill.on(Ve.events.EDITOR_CHANGE,(i,l,u,f)=>{i===Ve.events.SELECTION_CHANGE?l&&f!==Ve.sources.SILENT&&(this.currentRange=l):i===Ve.events.TEXT_CHANGE&&(this.ignoreChange||(!this.options.userOnly||f===Ve.sources.USER?this.record(l,u):this.transform(l)),this.currentRange=em(this.currentRange,l))}),this.quill.keyboard.addBinding({key:"z",shortKey:!0},this.undo.bind(this)),this.quill.keyboard.addBinding({key:["z","Z"],shortKey:!0,shiftKey:!0},this.redo.bind(this)),/Win/i.test(navigator.platform)&&this.quill.keyboard.addBinding({key:"y",shortKey:!0},this.redo.bind(this)),this.quill.root.addEventListener("beforeinput",i=>{i.inputType==="historyUndo"?(this.undo(),i.preventDefault()):i.inputType==="historyRedo"&&(this.redo(),i.preventDefault())})}change(t,n){if(this.stack[t].length===0)return;const i=this.stack[t].pop();if(!i)return;const l=this.quill.getContents(),u=i.delta.invert(l);this.stack[n].push({delta:u,range:em(i.range,u)}),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(i.delta,Ve.sources.USER),this.ignoreChange=!1,this.restoreSelection(i)}clear(){this.stack={undo:[],redo:[]}}cutoff(){this.lastRecorded=0}record(t,n){if(t.ops.length===0)return;this.stack.redo=[];let i=t.invert(n),l=this.currentRange;const u=Date.now();if(this.lastRecorded+this.options.delay>u&&this.stack.undo.length>0){const f=this.stack.undo.pop();f&&(i=i.compose(f.delta),l=f.range)}else this.lastRecorded=u;i.length()!==0&&(this.stack.undo.push({delta:i,range:l}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift())}redo(){this.change("redo","undo")}transform(t){ny(this.stack.undo,t),ny(this.stack.redo,t)}undo(){this.change("undo","redo")}restoreSelection(t){if(t.range)this.quill.setSelection(t.range,Ve.sources.USER);else{const n=bD(this.quill.scroll,t.delta);this.quill.setSelection(n,Ve.sources.USER)}}}ft(Ux,"DEFAULTS",{delay:1e3,maxStack:100,userOnly:!1});function ny(r,e){let t=e;for(let n=r.length-1;n>=0;n-=1){const i=r[n];r[n]={delta:t.transform(i.delta,!0),range:i.range&&em(i.range,t)},t=i.delta.transform(t),r[n].delta.length()===0&&r.splice(n,1)}}function yD(r,e){const t=e.ops[e.ops.length-1];return t==null?!1:t.insert!=null?typeof t.insert=="string"&&t.insert.endsWith(`
|
201
201
|
`):t.attributes!=null?Object.keys(t.attributes).some(n=>r.query(n,Jt.BLOCK)!=null):!1}function bD(r,e){const t=e.reduce((i,l)=>i+(l.delete||0),0);let n=e.length()-t;return yD(r,e)&&(n-=1),n}function em(r,e){if(!r)return r;const t=e.transformPosition(r.index),n=e.transformPosition(r.index+r.length);return{index:t,length:n-t}}class Wx extends Vs{constructor(e,t){super(e,t),e.root.addEventListener("drop",n=>{var u;n.preventDefault();let i=null;if(document.caretRangeFromPoint)i=document.caretRangeFromPoint(n.clientX,n.clientY);else if(document.caretPositionFromPoint){const f=document.caretPositionFromPoint(n.clientX,n.clientY);i=document.createRange(),i.setStart(f.offsetNode,f.offset),i.setEnd(f.offsetNode,f.offset)}const l=i&&e.selection.normalizeNative(i);if(l){const f=e.selection.normalizedToRange(l);(u=n.dataTransfer)!=null&&u.files&&this.upload(f,n.dataTransfer.files)}})}upload(e,t){const n=[];Array.from(t).forEach(i=>{var l;i&&((l=this.options.mimetypes)!=null&&l.includes(i.type))&&n.push(i)}),n.length>0&&this.options.handler.call(this,e,n)}}Wx.DEFAULTS={mimetypes:["image/png","image/jpeg"],handler(r,e){if(!this.quill.scroll.query("image"))return;const t=e.map(n=>new Promise(i=>{const l=new FileReader;l.onload=()=>{i(l.result)},l.readAsDataURL(n)}));Promise.all(t).then(n=>{const i=n.reduce((l,u)=>l.insert({image:u}),new Gt().retain(r.index).delete(r.length));this.quill.updateContents(i,Zt.sources.USER),this.quill.setSelection(r.index+n.length,Zt.sources.SILENT)})}};const _D=["insertText","insertReplacementText"];class xD extends Vs{constructor(e,t){super(e,t),e.root.addEventListener("beforeinput",n=>{this.handleBeforeInput(n)}),/Android/i.test(navigator.userAgent)||e.on(Ve.events.COMPOSITION_BEFORE_START,()=>{this.handleCompositionStart()})}deleteRange(e){Nm({range:e,quill:this.quill})}replaceText(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if(e.length===0)return!1;if(t){const n=this.quill.getFormat(e.index,1);this.deleteRange(e),this.quill.updateContents(new Gt().retain(e.index).insert(t,n),Ve.sources.USER)}else this.deleteRange(e);return this.quill.setSelection(e.index+t.length,0,Ve.sources.SILENT),!0}handleBeforeInput(e){if(this.quill.composition.isComposing||e.defaultPrevented||!_D.includes(e.inputType))return;const t=e.getTargetRanges?e.getTargetRanges()[0]:null;if(!t||t.collapsed===!0)return;const n=SD(e);if(n==null)return;const i=this.quill.selection.normalizeNative(t),l=i?this.quill.selection.normalizedToRange(i):null;l&&this.replaceText(l,n)&&e.preventDefault()}handleCompositionStart(){const e=this.quill.getSelection();e&&this.replaceText(e)}}function SD(r){var e;return typeof r.data=="string"?r.data:(e=r.dataTransfer)!=null&&e.types.includes("text/plain")?r.dataTransfer.getData("text/plain"):null}const CD=/Mac/i.test(navigator.platform),wD=100,AD=r=>!!(r.key==="ArrowLeft"||r.key==="ArrowRight"||r.key==="ArrowUp"||r.key==="ArrowDown"||r.key==="Home"||CD&&r.key==="a"&&r.ctrlKey===!0);class TD extends Vs{constructor(t,n){super(t,n);ft(this,"isListening",!1);ft(this,"selectionChangeDeadline",0);this.handleArrowKeys(),this.handleNavigationShortcuts()}handleArrowKeys(){this.quill.keyboard.addBinding({key:["ArrowLeft","ArrowRight"],offset:0,shiftKey:null,handler(t,n){let{line:i,event:l}=n;if(!(i instanceof qs)||!i.uiNode)return!0;const u=getComputedStyle(i.domNode).direction==="rtl";return u&&l.key!=="ArrowRight"||!u&&l.key!=="ArrowLeft"?!0:(this.quill.setSelection(t.index-1,t.length+(l.shiftKey?1:0),Ve.sources.USER),!1)}})}handleNavigationShortcuts(){this.quill.root.addEventListener("keydown",t=>{!t.defaultPrevented&&AD(t)&&this.ensureListeningToSelectionChange()})}ensureListeningToSelectionChange(){if(this.selectionChangeDeadline=Date.now()+wD,this.isListening)return;this.isListening=!0;const t=()=>{this.isListening=!1,Date.now()<=this.selectionChangeDeadline&&this.handleSelectionChange()};document.addEventListener("selectionchange",t,{once:!0})}handleSelectionChange(){const t=document.getSelection();if(!t)return;const n=t.getRangeAt(0);if(n.collapsed!==!0||n.startOffset!==0)return;const i=this.quill.scroll.find(n.startContainer);if(!(i instanceof qs)||!i.uiNode)return;const l=document.createRange();l.setStartAfter(i.uiNode),l.setEndAfter(i.uiNode),t.removeAllRanges(),t.addRange(l)}}Ve.register({"blots/block":ji,"blots/block/embed":ds,"blots/break":Ws,"blots/container":nu,"blots/cursor":Xu,"blots/embed":Im,"blots/inline":wa,"blots/scroll":Hu,"blots/text":$s,"modules/clipboard":zx,"modules/history":Ux,"modules/keyboard":gh,"modules/uploader":Wx,"modules/input":xD,"modules/uiNode":TD});class ED extends Us{add(e,t){let n=0;if(t==="+1"||t==="-1"){const i=this.value(e)||0;n=t==="+1"?i+1:i-1}else typeof t=="number"&&(n=t);return n===0?(this.remove(e),!0):super.add(e,n.toString())}canAdd(e,t){return super.canAdd(e,t)||super.canAdd(e,parseInt(t,10))}value(e){return parseInt(super.value(e),10)||void 0}}const kD=new ED("indent","ql-indent",{scope:Jt.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});class tm extends ji{}ft(tm,"blotName","blockquote"),ft(tm,"tagName","blockquote");class rm extends ji{static formats(e){return this.tagName.indexOf(e.tagName)+1}}ft(rm,"blotName","header"),ft(rm,"tagName",["H1","H2","H3","H4","H5","H6"]);class ad extends nu{}ad.blotName="list-container";ad.tagName="OL";class ld extends ji{static create(e){const t=super.create();return t.setAttribute("data-list",e),t}static formats(e){return e.getAttribute("data-list")||void 0}static register(){Ve.register(ad)}constructor(e,t){super(e,t);const n=t.ownerDocument.createElement("span"),i=l=>{if(!e.isEnabled())return;const u=this.statics.formats(t,e);u==="checked"?(this.format("list","unchecked"),l.preventDefault()):u==="unchecked"&&(this.format("list","checked"),l.preventDefault())};n.addEventListener("mousedown",i),n.addEventListener("touchstart",i),this.attachUI(n)}format(e,t){e===this.statics.blotName&&t?this.domNode.setAttribute("data-list",t):super.format(e,t)}}ld.blotName="list";ld.tagName="LI";ad.allowedChildren=[ld];ld.requiredContainer=ad;class td extends wa{static create(){return super.create()}static formats(){return!0}optimize(e){super.optimize(e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}ft(td,"blotName","bold"),ft(td,"tagName",["STRONG","B"]);class nm extends td{}ft(nm,"blotName","italic"),ft(nm,"tagName",["EM","I"]);class Jl extends wa{static create(e){const t=super.create(e);return t.setAttribute("href",this.sanitize(e)),t.setAttribute("rel","noopener noreferrer"),t.setAttribute("target","_blank"),t}static formats(e){return e.getAttribute("href")}static sanitize(e){return Vx(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}format(e,t){e!==this.statics.blotName||!t?super.format(e,t):this.domNode.setAttribute("href",this.constructor.sanitize(t))}}ft(Jl,"blotName","link"),ft(Jl,"tagName","A"),ft(Jl,"SANITIZED_URL","about:blank"),ft(Jl,"PROTOCOL_WHITELIST",["http","https","mailto","tel","sms"]);function Vx(r,e){const t=document.createElement("a");t.href=r;const n=t.href.slice(0,t.href.indexOf(":"));return e.indexOf(n)>-1}class im extends wa{static create(e){return e==="super"?document.createElement("sup"):e==="sub"?document.createElement("sub"):super.create(e)}static formats(e){if(e.tagName==="SUB")return"sub";if(e.tagName==="SUP")return"super"}}ft(im,"blotName","script"),ft(im,"tagName",["SUB","SUP"]);class om extends td{}ft(om,"blotName","strike"),ft(om,"tagName",["S","STRIKE"]);class sm extends wa{}ft(sm,"blotName","underline"),ft(sm,"tagName","U");class Wd extends Im{static create(e){if(window.katex==null)throw new Error("Formula module requires KaTeX.");const t=super.create(e);return typeof e=="string"&&(window.katex.render(e,t,{throwOnError:!1,errorColor:"#f00"}),t.setAttribute("data-value",e)),t}static value(e){return e.getAttribute("data-value")}html(){const{formula:e}=this.value();return`<span>${e}</span>`}}ft(Wd,"blotName","formula"),ft(Wd,"className","ql-formula"),ft(Wd,"tagName","SPAN");const iy=["alt","height","width"];var $d;let RD=($d=class extends zo{static create(e){const t=super.create(e);return typeof e=="string"&&t.setAttribute("src",this.sanitize(e)),t}static formats(e){return iy.reduce((t,n)=>(e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t),{})}static match(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}static sanitize(e){return Vx(e,["http","https","data"])?e:"//:0"}static value(e){return e.getAttribute("src")}format(e,t){iy.indexOf(e)>-1?t?this.domNode.setAttribute(e,t):this.domNode.removeAttribute(e):super.format(e,t)}},ft($d,"blotName","image"),ft($d,"tagName","IMG"),$d);const oy=["height","width"];class Vd extends ds{static create(e){const t=super.create(e);return t.setAttribute("frameborder","0"),t.setAttribute("allowfullscreen","true"),t.setAttribute("src",this.sanitize(e)),t}static formats(e){return oy.reduce((t,n)=>(e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t),{})}static sanitize(e){return Jl.sanitize(e)}static value(e){return e.getAttribute("src")}format(e,t){oy.indexOf(e)>-1?t?this.domNode.setAttribute(e,t):this.domNode.removeAttribute(e):super.format(e,t)}html(){const{video:e}=this.value();return`<a href="${e}">${e}</a>`}}ft(Vd,"blotName","video"),ft(Vd,"className","ql-video"),ft(Vd,"tagName","IFRAME");const Hf=new Us("code-token","hljs",{scope:Jt.INLINE});class ol extends wa{static formats(e,t){for(;e!=null&&e!==t.domNode;){if(e.classList&&e.classList.contains(zi.className))return super.formats(e,t);e=e.parentNode}}constructor(e,t,n){super(e,t,n),Hf.add(this.domNode,n)}format(e,t){e!==ol.blotName?super.format(e,t):t?Hf.add(this.domNode,t):(Hf.remove(this.domNode),this.domNode.classList.remove(this.statics.className))}optimize(){super.optimize(...arguments),Hf.value(this.domNode)||this.unwrap()}}ol.blotName="code-token";ol.className="ql-token";class fs extends zi{static create(e){const t=super.create(e);return typeof e=="string"&&t.setAttribute("data-language",e),t}static formats(e){return e.getAttribute("data-language")||"plain"}static register(){}format(e,t){e===this.statics.blotName&&t?this.domNode.setAttribute("data-language",t):super.format(e,t)}replaceWith(e,t){return this.formatAt(0,this.length(),ol.blotName,!1),super.replaceWith(e,t)}}class Uf extends iu{attach(){super.attach(),this.forceNext=!1,this.scroll.emitMount(this)}format(e,t){e===fs.blotName&&(this.forceNext=!0,this.children.forEach(n=>{n.format(e,t)}))}formatAt(e,t,n,i){n===fs.blotName&&(this.forceNext=!0),super.formatAt(e,t,n,i)}highlight(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.children.head==null)return;const i=`${Array.from(this.domNode.childNodes).filter(u=>u!==this.uiNode).map(u=>u.textContent).join(`
|
202
202
|
`)}
|
203
|
-
`,l=fs.formats(this.children.head.domNode);if(t||this.forceNext||this.cachedText!==i){if(i.trim().length>0||this.cachedText==null){const u=this.children.reduce((g,m)=>g.concat(Rx(m,!1)),new Gt),f=e(i,l);u.diff(f).reduce((g,m)=>{let{retain:R,attributes:
|
203
|
+
`,l=fs.formats(this.children.head.domNode);if(t||this.forceNext||this.cachedText!==i){if(i.trim().length>0||this.cachedText==null){const u=this.children.reduce((g,m)=>g.concat(Rx(m,!1)),new Gt),f=e(i,l);u.diff(f).reduce((g,m)=>{let{retain:R,attributes:C}=m;return R?(C&&Object.keys(C).forEach(b=>{[fs.blotName,ol.blotName].includes(b)&&this.formatAt(g,R,b,C[b])}),g+R):g},0)}this.cachedText=i,this.forceNext=!1}}html(e,t){const[n]=this.children.find(e);return`<pre data-language="${n?fs.formats(n.domNode):"plain"}">
|
204
204
|
${ph(this.code(e,t))}
|
205
205
|
</pre>`}optimize(e){if(super.optimize(e),this.parent!=null&&this.children.head!=null&&this.uiNode!=null){const t=fs.formats(this.children.head.domNode);t!==this.uiNode.value&&(this.uiNode.value=t)}}}Uf.allowedChildren=[fs];fs.requiredContainer=Uf;fs.allowedChildren=[ol,Xu,$s,Ws];const ID=(r,e,t)=>{if(typeof r.versionString=="string"){const n=r.versionString.split(".")[0];if(parseInt(n,10)>=11)return r.highlight(t,{language:e}).value}return r.highlight(e,t).value};class Gx extends Vs{static register(){Ve.register(ol,!0),Ve.register(fs,!0),Ve.register(Uf,!0)}constructor(e,t){if(super(e,t),this.options.hljs==null)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");this.languages=this.options.languages.reduce((n,i)=>{let{key:l}=i;return n[l]=!0,n},{}),this.highlightBlot=this.highlightBlot.bind(this),this.initListener(),this.initTimer()}initListener(){this.quill.on(Ve.events.SCROLL_BLOT_MOUNT,e=>{if(!(e instanceof Uf))return;const t=this.quill.root.ownerDocument.createElement("select");this.options.languages.forEach(n=>{let{key:i,label:l}=n;const u=t.ownerDocument.createElement("option");u.textContent=l,u.setAttribute("value",i),t.appendChild(u)}),t.addEventListener("change",()=>{e.format(fs.blotName,t.value),this.quill.root.focus(),this.highlight(e,!0)}),e.uiNode==null&&(e.attachUI(t),e.children.head&&(t.value=fs.formats(e.children.head.domNode)))})}initTimer(){let e=null;this.quill.on(Ve.events.SCROLL_OPTIMIZE,()=>{e&&clearTimeout(e),e=setTimeout(()=>{this.highlight(),e=null},this.options.interval)})}highlight(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.quill.selection.composing)return;this.quill.update(Ve.sources.USER);const n=this.quill.getSelection();(e==null?this.quill.scroll.descendants(Uf):[e]).forEach(l=>{l.highlight(this.highlightBlot,t)}),this.quill.update(Ve.sources.SILENT),n!=null&&this.quill.setSelection(n,Ve.sources.SILENT)}highlightBlot(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"plain";if(t=this.languages[t]?t:"plain",t==="plain")return ph(e).split(`
|
206
206
|
`).reduce((i,l,u)=>(u!==0&&i.insert(`
|
207
207
|
`,{[zi.blotName]:t}),i.insert(l)),new Gt);const n=this.quill.root.ownerDocument.createElement("div");return n.classList.add(zi.className),n.innerHTML=ID(this.options.hljs,t,e),Fm(this.quill.scroll,n,[(i,l)=>{const u=Hf.value(i);return u?l.compose(new Gt().retain(l.length(),{[ol.blotName]:u})):l}],[(i,l)=>i.data.split(`
|
208
208
|
`).reduce((u,f,g)=>(g!==0&&u.insert(`
|
209
209
|
`,{[zi.blotName]:t}),u.insert(f)),l)],new WeakMap)}}Gx.DEFAULTS={hljs:window.hljs,interval:1e3,languages:[{key:"plain",label:"Plain"},{key:"bash",label:"Bash"},{key:"cpp",label:"C++"},{key:"cs",label:"C#"},{key:"css",label:"CSS"},{key:"diff",label:"Diff"},{key:"xml",label:"HTML/XML"},{key:"java",label:"Java"},{key:"javascript",label:"JavaScript"},{key:"markdown",label:"Markdown"},{key:"php",label:"PHP"},{key:"python",label:"Python"},{key:"ruby",label:"Ruby"},{key:"sql",label:"SQL"}]};const Vf=class Vf extends ji{static create(e){const t=super.create();return e?t.setAttribute("data-row",e):t.setAttribute("data-row",jm()),t}static formats(e){if(e.hasAttribute("data-row"))return e.getAttribute("data-row")}cellOffset(){return this.parent?this.parent.children.indexOf(this):-1}format(e,t){e===Vf.blotName&&t?this.domNode.setAttribute("data-row",t):super.format(e,t)}row(){return this.parent}rowOffset(){return this.row()?this.row().rowOffset():-1}table(){return this.row()&&this.row().table()}};ft(Vf,"blotName","table"),ft(Vf,"tagName","TD");let Bs=Vf;class sl extends nu{checkMerge(){if(super.checkMerge()&&this.next.children.head!=null){const e=this.children.head.formats(),t=this.children.tail.formats(),n=this.next.children.head.formats(),i=this.next.children.tail.formats();return e.table===t.table&&e.table===n.table&&e.table===i.table}return!1}optimize(e){super.optimize(e),this.children.forEach(t=>{if(t.next==null)return;const n=t.formats(),i=t.next.formats();if(n.table!==i.table){const l=this.splitAfter(t);l&&l.optimize(),this.prev&&this.prev.optimize()}})}rowOffset(){return this.parent?this.parent.children.indexOf(this):-1}table(){return this.parent&&this.parent.parent}}ft(sl,"blotName","table-row"),ft(sl,"tagName","TR");class xa extends nu{}ft(xa,"blotName","table-body"),ft(xa,"tagName","TBODY");class Qu extends nu{balanceCells(){const e=this.descendants(sl),t=e.reduce((n,i)=>Math.max(i.children.length,n),0);e.forEach(n=>{new Array(t-n.children.length).fill(0).forEach(()=>{let i;n.children.head!=null&&(i=Bs.formats(n.children.head.domNode));const l=this.scroll.create(Bs.blotName,i);n.appendChild(l),l.optimize()})})}cells(e){return this.rows().map(t=>t.children.at(e))}deleteColumn(e){const[t]=this.descendant(xa);t==null||t.children.head==null||t.children.forEach(n=>{const i=n.children.at(e);i!=null&&i.remove()})}insertColumn(e){const[t]=this.descendant(xa);t==null||t.children.head==null||t.children.forEach(n=>{const i=n.children.at(e),l=Bs.formats(n.children.head.domNode),u=this.scroll.create(Bs.blotName,l);n.insertBefore(u,i)})}insertRow(e){const[t]=this.descendant(xa);if(t==null||t.children.head==null)return;const n=jm(),i=this.scroll.create(sl.blotName);t.children.head.children.forEach(()=>{const u=this.scroll.create(Bs.blotName,n);i.appendChild(u)});const l=t.children.at(e);t.insertBefore(i,l)}rows(){const e=this.children.head;return e==null?[]:e.children.map(t=>t)}}ft(Qu,"blotName","table-container"),ft(Qu,"tagName","TABLE");Qu.allowedChildren=[xa];xa.requiredContainer=Qu;xa.allowedChildren=[sl];sl.requiredContainer=xa;sl.allowedChildren=[Bs];Bs.requiredContainer=sl;function jm(){return`row-${Math.random().toString(36).slice(2,6)}`}class LD extends Vs{static register(){Ve.register(Bs),Ve.register(sl),Ve.register(xa),Ve.register(Qu)}constructor(){super(...arguments),this.listenBalanceCells()}balanceTables(){this.quill.scroll.descendants(Qu).forEach(e=>{e.balanceCells()})}deleteColumn(){const[e,,t]=this.getTable();t!=null&&(e.deleteColumn(t.cellOffset()),this.quill.update(Ve.sources.USER))}deleteRow(){const[,e]=this.getTable();e!=null&&(e.remove(),this.quill.update(Ve.sources.USER))}deleteTable(){const[e]=this.getTable();if(e==null)return;const t=e.offset();e.remove(),this.quill.update(Ve.sources.USER),this.quill.setSelection(t,Ve.sources.SILENT)}getTable(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.quill.getSelection();if(e==null)return[null,null,null,-1];const[t,n]=this.quill.getLine(e.index);if(t==null||t.statics.blotName!==Bs.blotName)return[null,null,null,-1];const i=t.parent;return[i.parent.parent,i,t,n]}insertColumn(e){const t=this.quill.getSelection();if(!t)return;const[n,i,l]=this.getTable(t);if(l==null)return;const u=l.cellOffset();n.insertColumn(u+e),this.quill.update(Ve.sources.USER);let f=i.rowOffset();e===0&&(f+=1),this.quill.setSelection(t.index+f,t.length,Ve.sources.SILENT)}insertColumnLeft(){this.insertColumn(0)}insertColumnRight(){this.insertColumn(1)}insertRow(e){const t=this.quill.getSelection();if(!t)return;const[n,i,l]=this.getTable(t);if(l==null)return;const u=i.rowOffset();n.insertRow(u+e),this.quill.update(Ve.sources.USER),e>0?this.quill.setSelection(t,Ve.sources.SILENT):this.quill.setSelection(t.index+i.children.length,t.length,Ve.sources.SILENT)}insertRowAbove(){this.insertRow(0)}insertRowBelow(){this.insertRow(1)}insertTable(e,t){const n=this.quill.getSelection();if(n==null)return;const i=new Array(e).fill(0).reduce(l=>{const u=new Array(t).fill(`
|
210
|
-
`).join("");return l.insert(u,{table:jm()})},new Gt().retain(n.index));this.quill.updateContents(i,Ve.sources.USER),this.quill.setSelection(n.index,Ve.sources.SILENT),this.balanceTables()}listenBalanceCells(){this.quill.on(Ve.events.SCROLL_OPTIMIZE,e=>{e.some(t=>["TD","TR","TBODY","TABLE"].includes(t.target.tagName)?(this.quill.once(Ve.events.TEXT_CHANGE,(n,i,l)=>{l===Ve.sources.USER&&this.balanceTables()}),!0):!1)})}}const sy=cl("quill:toolbar");class Bm extends Vs{constructor(e,t){var n,i;if(super(e,t),Array.isArray(this.options.container)){const l=document.createElement("div");l.setAttribute("role","toolbar"),MD(l,this.options.container),(i=(n=e.container)==null?void 0:n.parentNode)==null||i.insertBefore(l,e.container),this.container=l}else typeof this.options.container=="string"?this.container=document.querySelector(this.options.container):this.container=this.options.container;if(!(this.container instanceof HTMLElement)){sy.error("Container required for toolbar",this.options);return}this.container.classList.add("ql-toolbar"),this.controls=[],this.handlers={},this.options.handlers&&Object.keys(this.options.handlers).forEach(l=>{var f;const u=(f=this.options.handlers)==null?void 0:f[l];u&&this.addHandler(l,u)}),Array.from(this.container.querySelectorAll("button, select")).forEach(l=>{this.attach(l)}),this.quill.on(Ve.events.EDITOR_CHANGE,()=>{const[l]=this.quill.selection.getRange();this.update(l)})}addHandler(e,t){this.handlers[e]=t}attach(e){let t=Array.from(e.classList).find(i=>i.indexOf("ql-")===0);if(!t)return;if(t=t.slice(3),e.tagName==="BUTTON"&&e.setAttribute("type","button"),this.handlers[t]==null&&this.quill.scroll.query(t)==null){sy.warn("ignoring attaching to nonexistent format",t,e);return}const n=e.tagName==="SELECT"?"change":"click";e.addEventListener(n,i=>{let l;if(e.tagName==="SELECT"){if(e.selectedIndex<0)return;const f=e.options[e.selectedIndex];f.hasAttribute("selected")?l=!1:l=f.value||!1}else e.classList.contains("ql-active")?l=!1:l=e.value||!e.hasAttribute("value"),i.preventDefault();this.quill.focus();const[u]=this.quill.selection.getRange();if(this.handlers[t]!=null)this.handlers[t].call(this,l);else if(this.quill.scroll.query(t).prototype instanceof zo){if(l=prompt(`Enter ${t}`),!l)return;this.quill.updateContents(new Gt().retain(u.index).delete(u.length).insert({[t]:l}),Ve.sources.USER)}else this.quill.format(t,l,Ve.sources.USER);this.update(u)}),this.controls.push([t,e])}update(e){const t=e==null?{}:this.quill.getFormat(e);this.controls.forEach(n=>{const[i,l]=n;if(l.tagName==="SELECT"){let u=null;if(e==null)u=null;else if(t[i]==null)u=l.querySelector("option[selected]");else if(!Array.isArray(t[i])){let f=t[i];typeof f=="string"&&(f=f.replace(/"/g,'\\"')),u=l.querySelector(`option[value="${f}"]`)}u==null?(l.value="",l.selectedIndex=-1):u.selected=!0}else if(e==null)l.classList.remove("ql-active"),l.setAttribute("aria-pressed","false");else if(l.hasAttribute("value")){const u=t[i],f=u===l.getAttribute("value")||u!=null&&u.toString()===l.getAttribute("value")||u==null&&!l.getAttribute("value");l.classList.toggle("ql-active",f),l.setAttribute("aria-pressed",f.toString())}else{const u=t[i]!=null;l.classList.toggle("ql-active",u),l.setAttribute("aria-pressed",u.toString())}})}}Bm.DEFAULTS={};function ay(r,e,t){const n=document.createElement("button");n.setAttribute("type","button"),n.classList.add(`ql-${e}`),n.setAttribute("aria-pressed","false"),t!=null?(n.value=t,n.setAttribute("aria-label",`${e}: ${t}`)):n.setAttribute("aria-label",e),r.appendChild(n)}function MD(r,e){Array.isArray(e[0])||(e=[e]),e.forEach(t=>{const n=document.createElement("span");n.classList.add("ql-formats"),t.forEach(i=>{if(typeof i=="string")ay(n,i);else{const l=Object.keys(i)[0],u=i[l];Array.isArray(u)?DD(n,l,u):ay(n,l,u)}}),r.appendChild(n)})}function DD(r,e,t){const n=document.createElement("select");n.classList.add(`ql-${e}`),t.forEach(i=>{const l=document.createElement("option");i!==!1?l.setAttribute("value",String(i)):l.setAttribute("selected","selected"),n.appendChild(l)}),r.appendChild(n)}Bm.DEFAULTS={container:null,handlers:{clean(){const r=this.quill.getSelection();if(r!=null)if(r.length===0){const e=this.quill.getFormat();Object.keys(e).forEach(t=>{this.quill.scroll.query(t,Jt.INLINE)!=null&&this.quill.format(t,!1,Ve.sources.USER)})}else this.quill.removeFormat(r.index,r.length,Ve.sources.USER)},direction(r){const{align:e}=this.quill.getFormat();r==="rtl"&&e==null?this.quill.format("align","right",Ve.sources.USER):!r&&e==="right"&&this.quill.format("align",!1,Ve.sources.USER),this.quill.format("direction",r,Ve.sources.USER)},indent(r){const e=this.quill.getSelection(),t=this.quill.getFormat(e),n=parseInt(t.indent||0,10);if(r==="+1"||r==="-1"){let i=r==="+1"?1:-1;t.direction==="rtl"&&(i*=-1),this.quill.format("indent",n+i,Ve.sources.USER)}},link(r){r===!0&&(r=prompt("Enter link URL:")),this.quill.format("link",r,Ve.sources.USER)},list(r){const e=this.quill.getSelection(),t=this.quill.getFormat(e);r==="check"?t.list==="checked"||t.list==="unchecked"?this.quill.format("list",!1,Ve.sources.USER):this.quill.format("list","unchecked",Ve.sources.USER):this.quill.format("list",r,Ve.sources.USER)}}};const OD='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"/></svg>',PD='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"/><line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"/></svg>',ND='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"/></svg>',FD='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="3" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="3" y1="4" y2="4"/></svg>',jD='<svg viewbox="0 0 18 18"><g class="ql-fill ql-color-label"><polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"/><rect height="1" width="1" x="4" y="4"/><polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"/><rect height="1" width="1" x="2" y="6"/><rect height="1" width="1" x="3" y="5"/><rect height="1" width="1" x="4" y="7"/><polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"/><rect height="1" width="1" x="2" y="12"/><rect height="1" width="1" x="2" y="9"/><rect height="1" width="1" x="2" y="15"/><polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"/><rect height="1" width="1" x="3" y="8"/><path d="M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z"/><path d="M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z"/><path d="M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z"/><rect height="1" width="1" x="12" y="2"/><rect height="1" width="1" x="11" y="3"/><path d="M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z"/><rect height="1" width="1" x="2" y="3"/><rect height="1" width="1" x="6" y="2"/><rect height="1" width="1" x="3" y="2"/><rect height="1" width="1" x="5" y="3"/><rect height="1" width="1" x="9" y="2"/><rect height="1" width="1" x="15" y="14"/><polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"/><rect height="1" width="1" x="13" y="7"/><rect height="1" width="1" x="15" y="5"/><rect height="1" width="1" x="14" y="6"/><rect height="1" width="1" x="15" y="8"/><rect height="1" width="1" x="14" y="9"/><path d="M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z"/><rect height="1" width="1" x="14" y="3"/><polygon points="12 6.868 12 6 11.62 6 12 6.868"/><rect height="1" width="1" x="15" y="2"/><rect height="1" width="1" x="12" y="5"/><rect height="1" width="1" x="13" y="4"/><polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"/><rect height="1" width="1" x="9" y="14"/><rect height="1" width="1" x="8" y="15"/><path d="M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z"/><rect height="1" width="1" x="5" y="15"/><path d="M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z"/><rect height="1" width="1" x="11" y="15"/><path d="M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z"/><rect height="1" width="1" x="14" y="15"/><rect height="1" width="1" x="15" y="11"/></g><polyline class="ql-stroke" points="5.5 13 9 5 12.5 13"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="11" y2="11"/></svg>',BD='<svg viewbox="0 0 18 18"><rect class="ql-fill ql-stroke" height="3" width="3" x="4" y="5"/><rect class="ql-fill ql-stroke" height="3" width="3" x="11" y="5"/><path class="ql-even ql-fill ql-stroke" d="M7,8c0,4.031-3,5-3,5"/><path class="ql-even ql-fill ql-stroke" d="M14,8c0,4.031-3,5-3,5"/></svg>',HD='<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z"/><path class="ql-stroke" d="M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z"/></svg>',qD='<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="5" x2="13" y1="3" y2="3"/><line class="ql-stroke" x1="6" x2="9.35" y1="12" y2="3"/><line class="ql-stroke" x1="11" x2="15" y1="11" y2="15"/><line class="ql-stroke" x1="15" x2="11" y1="11" y2="15"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="7" x="2" y="14"/></svg>',ly='<svg viewbox="0 0 18 18"><polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"/><polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"/><line class="ql-stroke" x1="10" x2="8" y1="5" y2="13"/></svg>',zD='<svg viewbox="0 0 18 18"><line class="ql-color-label ql-stroke ql-transparent" x1="3" x2="15" y1="15" y2="15"/><polyline class="ql-stroke" points="5.5 11 9 3 12.5 11"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="9" y2="9"/></svg>',$D='<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"/><line class="ql-stroke ql-fill" x1="15" x2="11" y1="4" y2="4"/><path class="ql-fill" d="M11,3a3,3,0,0,0,0,6h1V3H11Z"/><rect class="ql-fill" height="11" width="1" x="11" y="4"/><rect class="ql-fill" height="11" width="1" x="13" y="4"/></svg>',UD='<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"/><line class="ql-stroke ql-fill" x1="9" x2="5" y1="4" y2="4"/><path class="ql-fill" d="M5,3A3,3,0,0,0,5,9H6V3H5Z"/><rect class="ql-fill" height="11" width="1" x="5" y="4"/><rect class="ql-fill" height="11" width="1" x="7" y="4"/></svg>',WD='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z"/><rect class="ql-fill" height="1.6" rx="0.8" ry="0.8" width="5" x="5.15" y="6.2"/><path class="ql-fill" d="M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z"/></svg>',VD='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z"/></svg>',GD='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',ZD='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.65186,12.30664a2.6742,2.6742,0,0,1-2.915,2.68457,3.96592,3.96592,0,0,1-2.25537-.6709.56007.56007,0,0,1-.13232-.83594L11.64648,13c.209-.34082.48389-.36328.82471-.1543a2.32654,2.32654,0,0,0,1.12256.33008c.71484,0,1.12207-.35156,1.12207-.78125,0-.61523-.61621-.86816-1.46338-.86816H13.2085a.65159.65159,0,0,1-.68213-.41895l-.05518-.10937a.67114.67114,0,0,1,.14307-.78125l.71533-.86914a8.55289,8.55289,0,0,1,.68213-.7373V8.58887a3.93913,3.93913,0,0,1-.748.05469H11.9873a.54085.54085,0,0,1-.605-.60547V7.59863a.54085.54085,0,0,1,.605-.60547h3.75146a.53773.53773,0,0,1,.60547.59375v.17676a1.03723,1.03723,0,0,1-.27539.748L14.74854,10.0293A2.31132,2.31132,0,0,1,16.65186,12.30664ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',KD='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm7.05371,7.96582v.38477c0,.39648-.165.60547-.46191.60547h-.47314v1.29785a.54085.54085,0,0,1-.605.60547h-.69336a.54085.54085,0,0,1-.605-.60547V12.95605H11.333a.5412.5412,0,0,1-.60547-.60547v-.15332a1.199,1.199,0,0,1,.22021-.748l2.56348-4.05957a.7819.7819,0,0,1,.72607-.39648h1.27637a.54085.54085,0,0,1,.605.60547v3.7627h.33008A.54055.54055,0,0,1,17.05371,11.96582ZM14.28125,8.7207h-.022a4.18969,4.18969,0,0,1-.38525.81348l-1.188,1.80469v.02246h1.5293V9.60059A7.04058,7.04058,0,0,1,14.28125,8.7207Z"/></svg>',YD='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.74023,12.18555a2.75131,2.75131,0,0,1-2.91553,2.80566,3.908,3.908,0,0,1-2.25537-.68164.54809.54809,0,0,1-.13184-.8252L11.73438,13c.209-.34082.48389-.36328.8252-.1543a2.23757,2.23757,0,0,0,1.1001.33008,1.01827,1.01827,0,0,0,1.1001-.96777c0-.61621-.53906-.97949-1.25439-.97949a2.15554,2.15554,0,0,0-.64893.09961,1.15209,1.15209,0,0,1-.814.01074l-.12109-.04395a.64116.64116,0,0,1-.45117-.71484l.231-3.00391a.56666.56666,0,0,1,.62744-.583H15.541a.54085.54085,0,0,1,.605.60547v.43945a.54085.54085,0,0,1-.605.60547H13.41748l-.04395.72559a1.29306,1.29306,0,0,1-.04395.30859h.022a2.39776,2.39776,0,0,1,.57227-.07715A2.53266,2.53266,0,0,1,16.74023,12.18555ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',XD='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M14.51758,9.64453a1.85627,1.85627,0,0,0-1.24316.38477H13.252a1.73532,1.73532,0,0,1,1.72754-1.4082,2.66491,2.66491,0,0,1,.5498.06641c.35254.05469.57227.01074.70508-.40723l.16406-.5166a.53393.53393,0,0,0-.373-.75977,4.83723,4.83723,0,0,0-1.17773-.14258c-2.43164,0-3.7627,2.17773-3.7627,4.43359,0,2.47559,1.60645,3.69629,3.19043,3.69629A2.70585,2.70585,0,0,0,16.96,12.19727,2.43861,2.43861,0,0,0,14.51758,9.64453Zm-.23047,3.58691c-.67187,0-1.22168-.81445-1.22168-1.45215,0-.47363.30762-.583.72559-.583.96875,0,1.27734.59375,1.27734,1.12207A.82182.82182,0,0,1,14.28711,13.23145ZM10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Z"/></svg>',JD='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="13" y1="4" y2="4"/><line class="ql-stroke" x1="5" x2="11" y1="14" y2="14"/><line class="ql-stroke" x1="8" x2="10" y1="14" y2="4"/></svg>',QD='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="10" width="12" x="3" y="4"/><circle class="ql-fill" cx="6" cy="7" r="1"/><polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"/></svg>',eO='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"/></svg>',tO='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="5 7 5 11 3 9 5 7"/></svg>',rO='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="11" y1="7" y2="11"/><path class="ql-even ql-stroke" d="M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z"/><path class="ql-even ql-stroke" d="M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z"/></svg>',nO='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="6" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="6" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="6" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="3" y1="4" y2="4"/><line class="ql-stroke" x1="3" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="3" y1="14" y2="14"/></svg>',iO='<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="9" x2="15" y1="4" y2="4"/><polyline class="ql-stroke" points="3 4 4 5 6 3"/><line class="ql-stroke" x1="9" x2="15" y1="14" y2="14"/><polyline class="ql-stroke" points="3 14 4 15 6 13"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="3 9 4 10 6 8"/></svg>',oO='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="7" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="7" x2="15" y1="14" y2="14"/><line class="ql-stroke ql-thin" x1="2.5" x2="4.5" y1="5.5" y2="5.5"/><path class="ql-fill" d="M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z"/><path class="ql-stroke ql-thin" d="M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156"/><path class="ql-stroke ql-thin" d="M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109"/></svg>',sO='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z"/><path class="ql-fill" d="M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z"/></svg>',aO='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z"/><path class="ql-fill" d="M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z"/></svg>',lO='<svg viewbox="0 0 18 18"><line class="ql-stroke ql-thin" x1="15.5" x2="2.5" y1="8.5" y2="9.5"/><path class="ql-fill" d="M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z"/><path class="ql-fill" d="M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z"/></svg>',cO='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="2" width="3" x="5" y="5"/><rect class="ql-fill" height="2" width="4" x="9" y="5"/><g class="ql-fill ql-transparent"><rect height="2" width="3" x="5" y="8"/><rect height="2" width="4" x="9" y="8"/><rect height="2" width="3" x="5" y="11"/><rect height="2" width="4" x="9" y="11"/></g></svg>',uO='<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="12" x="3" y="15"/></svg>',fO='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="12" width="1" x="5" y="3"/><rect class="ql-fill" height="12" width="1" x="12" y="3"/><rect class="ql-fill" height="2" width="8" x="5" y="8"/><rect class="ql-fill" height="1" width="3" x="3" y="5"/><rect class="ql-fill" height="1" width="3" x="3" y="7"/><rect class="ql-fill" height="1" width="3" x="3" y="10"/><rect class="ql-fill" height="1" width="3" x="3" y="12"/><rect class="ql-fill" height="1" width="3" x="12" y="5"/><rect class="ql-fill" height="1" width="3" x="12" y="7"/><rect class="ql-fill" height="1" width="3" x="12" y="10"/><rect class="ql-fill" height="1" width="3" x="12" y="12"/></svg>',rd={align:{"":OD,center:PD,right:ND,justify:FD},background:jD,blockquote:BD,bold:HD,clean:qD,code:ly,"code-block":ly,color:zD,direction:{"":$D,rtl:UD},formula:WD,header:{1:VD,2:GD,3:ZD,4:KD,5:YD,6:XD},italic:JD,image:QD,indent:{"+1":eO,"-1":tO},link:rO,list:{bullet:nO,check:iO,ordered:oO},script:{sub:sO,super:aO},strike:lO,table:cO,underline:uO,video:fO},dO='<svg viewbox="0 0 18 18"><polygon class="ql-stroke" points="7 11 9 13 11 11 7 11"/><polygon class="ql-stroke" points="7 7 9 5 11 7 7 7"/></svg>';let cy=0;function uy(r,e){r.setAttribute(e,`${r.getAttribute(e)!=="true"}`)}class mh{constructor(e){this.select=e,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",()=>{this.togglePicker()}),this.label.addEventListener("keydown",t=>{switch(t.key){case"Enter":this.togglePicker();break;case"Escape":this.escape(),t.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}togglePicker(){this.container.classList.toggle("ql-expanded"),uy(this.label,"aria-expanded"),uy(this.options,"aria-hidden")}buildItem(e){const t=document.createElement("span");t.tabIndex="0",t.setAttribute("role","button"),t.classList.add("ql-picker-item");const n=e.getAttribute("value");return n&&t.setAttribute("data-value",n),e.textContent&&t.setAttribute("data-label",e.textContent),t.addEventListener("click",()=>{this.selectItem(t,!0)}),t.addEventListener("keydown",i=>{switch(i.key){case"Enter":this.selectItem(t,!0),i.preventDefault();break;case"Escape":this.escape(),i.preventDefault();break}}),t}buildLabel(){const e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=dO,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}buildOptions(){const e=document.createElement("span");e.classList.add("ql-picker-options"),e.setAttribute("aria-hidden","true"),e.tabIndex="-1",e.id=`ql-picker-options-${cy}`,cy+=1,this.label.setAttribute("aria-controls",e.id),this.options=e,Array.from(this.select.options).forEach(t=>{const n=this.buildItem(t);e.appendChild(n),t.selected===!0&&this.selectItem(n)}),this.container.appendChild(e)}buildPicker(){Array.from(this.select.attributes).forEach(e=>{this.container.setAttribute(e.name,e.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}escape(){this.close(),setTimeout(()=>this.label.focus(),1)}close(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}selectItem(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n=this.container.querySelector(".ql-selected");e!==n&&(n!=null&&n.classList.remove("ql-selected"),e!=null&&(e.classList.add("ql-selected"),this.select.selectedIndex=Array.from(e.parentNode.children).indexOf(e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t&&(this.select.dispatchEvent(new Event("change")),this.close())))}update(){let e;if(this.select.selectedIndex>-1){const n=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(n)}else this.selectItem(null);const t=e!=null&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",t)}}class Zx extends mh{constructor(e,t){super(e),this.label.innerHTML=t,this.container.classList.add("ql-color-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).slice(0,7).forEach(n=>{n.classList.add("ql-primary")})}buildItem(e){const t=super.buildItem(e);return t.style.backgroundColor=e.getAttribute("value")||"",t}selectItem(e,t){super.selectItem(e,t);const n=this.label.querySelector(".ql-color-label"),i=e&&e.getAttribute("data-value")||"";n&&(n.tagName==="line"?n.style.stroke=i:n.style.fill=i)}}class Kx extends mh{constructor(e,t){super(e),this.container.classList.add("ql-icon-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).forEach(n=>{n.innerHTML=t[n.getAttribute("data-value")||""]}),this.defaultItem=this.container.querySelector(".ql-selected"),this.selectItem(this.defaultItem)}selectItem(e,t){super.selectItem(e,t);const n=e||this.defaultItem;if(n!=null){if(this.label.innerHTML===n.innerHTML)return;this.label.innerHTML=n.innerHTML}}}const hO=r=>{const{overflowY:e}=getComputedStyle(r,null);return e!=="visible"&&e!=="clip"};class Yx{constructor(e,t){this.quill=e,this.boundsContainer=t||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,hO(this.quill.root)&&this.quill.root.addEventListener("scroll",()=>{this.root.style.marginTop=`${-1*this.quill.root.scrollTop}px`}),this.hide()}hide(){this.root.classList.add("ql-hidden")}position(e){const t=e.left+e.width/2-this.root.offsetWidth/2,n=e.bottom+this.quill.root.scrollTop;this.root.style.left=`${t}px`,this.root.style.top=`${n}px`,this.root.classList.remove("ql-flip");const i=this.boundsContainer.getBoundingClientRect(),l=this.root.getBoundingClientRect();let u=0;if(l.right>i.right&&(u=i.right-l.right,this.root.style.left=`${t+u}px`),l.left<i.left&&(u=i.left-l.left,this.root.style.left=`${t+u}px`),l.bottom>i.bottom){const f=l.bottom-l.top,g=e.bottom-e.top+f;this.root.style.top=`${n-g}px`,this.root.classList.add("ql-flip")}return u}show(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}const pO=[!1,"center","right","justify"],gO=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],mO=[!1,"serif","monospace"],vO=["1","2","3",!1],yO=["small",!1,"large","huge"];class cd extends Ju{constructor(e,t){super(e,t);const n=i=>{if(!document.body.contains(e.root)){document.body.removeEventListener("click",n);return}this.tooltip!=null&&!this.tooltip.root.contains(i.target)&&document.activeElement!==this.tooltip.textbox&&!this.quill.hasFocus()&&this.tooltip.hide(),this.pickers!=null&&this.pickers.forEach(l=>{l.container.contains(i.target)||l.close()})};e.emitter.listenDOM("click",document.body,n)}addModule(e){const t=super.addModule(e);return e==="toolbar"&&this.extendToolbar(t),t}buildButtons(e,t){Array.from(e).forEach(n=>{(n.getAttribute("class")||"").split(/\s+/).forEach(l=>{if(l.startsWith("ql-")&&(l=l.slice(3),t[l]!=null))if(l==="direction")n.innerHTML=t[l][""]+t[l].rtl;else if(typeof t[l]=="string")n.innerHTML=t[l];else{const u=n.value||"";u!=null&&t[l][u]&&(n.innerHTML=t[l][u])}})})}buildPickers(e,t){this.pickers=Array.from(e).map(i=>{if(i.classList.contains("ql-align")&&(i.querySelector("option")==null&&Df(i,pO),typeof t.align=="object"))return new Kx(i,t.align);if(i.classList.contains("ql-background")||i.classList.contains("ql-color")){const l=i.classList.contains("ql-background")?"background":"color";return i.querySelector("option")==null&&Df(i,gO,l==="background"?"#ffffff":"#000000"),new Zx(i,t[l])}return i.querySelector("option")==null&&(i.classList.contains("ql-font")?Df(i,mO):i.classList.contains("ql-header")?Df(i,vO):i.classList.contains("ql-size")&&Df(i,yO)),new mh(i)});const n=()=>{this.pickers.forEach(i=>{i.update()})};this.quill.on(Zt.events.EDITOR_CHANGE,n)}}cd.DEFAULTS=Ql({},Ju.DEFAULTS,{modules:{toolbar:{handlers:{formula(){this.quill.theme.tooltip.edit("formula")},image(){let r=this.container.querySelector("input.ql-image[type=file]");r==null&&(r=document.createElement("input"),r.setAttribute("type","file"),r.setAttribute("accept",this.quill.uploader.options.mimetypes.join(", ")),r.classList.add("ql-image"),r.addEventListener("change",()=>{const e=this.quill.getSelection(!0);this.quill.uploader.upload(e,r.files),r.value=""}),this.container.appendChild(r)),r.click()},video(){this.quill.theme.tooltip.edit("video")}}}}});class Xx extends Yx{constructor(e,t){super(e,t),this.textbox=this.root.querySelector('input[type="text"]'),this.listen()}listen(){this.textbox.addEventListener("keydown",e=>{e.key==="Enter"?(this.save(),e.preventDefault()):e.key==="Escape"&&(this.cancel(),e.preventDefault())})}cancel(){this.hide(),this.restoreFocus()}edit(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),this.textbox==null)return;t!=null?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value="");const n=this.quill.getBounds(this.quill.selection.savedRange);n!=null&&this.position(n),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute(`data-${e}`)||""),this.root.setAttribute("data-mode",e)}restoreFocus(){this.quill.focus({preventScroll:!0})}save(){let{value:e}=this.textbox;switch(this.root.getAttribute("data-mode")){case"link":{const{scrollTop:t}=this.quill.root;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,Zt.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,Zt.sources.USER)),this.quill.root.scrollTop=t;break}case"video":e=bO(e);case"formula":{if(!e)break;const t=this.quill.getSelection(!0);if(t!=null){const n=t.index+t.length;this.quill.insertEmbed(n,this.root.getAttribute("data-mode"),e,Zt.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(n+1," ",Zt.sources.USER),this.quill.setSelection(n+2,Zt.sources.USER)}break}}this.textbox.value="",this.hide()}}function bO(r){let e=r.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||r.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return e?`${e[1]||"https"}://www.youtube.com/embed/${e[2]}?showinfo=0`:(e=r.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?`${e[1]||"https"}://player.vimeo.com/video/${e[2]}/`:r}function Df(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;e.forEach(n=>{const i=document.createElement("option");n===t?i.setAttribute("selected","selected"):i.setAttribute("value",String(n)),r.appendChild(i)})}const _O=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];class Jx extends Xx{constructor(e,t){super(e,t),this.quill.on(Zt.events.EDITOR_CHANGE,(n,i,l,u)=>{if(n===Zt.events.SELECTION_CHANGE)if(i!=null&&i.length>0&&u===Zt.sources.USER){this.show(),this.root.style.left="0px",this.root.style.width="",this.root.style.width=`${this.root.offsetWidth}px`;const f=this.quill.getLines(i.index,i.length);if(f.length===1){const g=this.quill.getBounds(i);g!=null&&this.position(g)}else{const g=f[f.length-1],m=this.quill.getIndex(g),R=Math.min(g.length()-1,i.index+i.length-m),w=this.quill.getBounds(new Jc(m,R));w!=null&&this.position(w)}}else document.activeElement!==this.textbox&&this.quill.hasFocus()&&this.hide()})}listen(){super.listen(),this.root.querySelector(".ql-close").addEventListener("click",()=>{this.root.classList.remove("ql-editing")}),this.quill.on(Zt.events.SCROLL_OPTIMIZE,()=>{setTimeout(()=>{if(this.root.classList.contains("ql-hidden"))return;const e=this.quill.getSelection();if(e!=null){const t=this.quill.getBounds(e);t!=null&&this.position(t)}},1)})}cancel(){this.show()}position(e){const t=super.position(e),n=this.root.querySelector(".ql-tooltip-arrow");return n.style.marginLeft="",t!==0&&(n.style.marginLeft=`${-1*t-n.offsetWidth/2}px`),t}}ft(Jx,"TEMPLATE",['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""));class Qx extends cd{constructor(e,t){t.modules.toolbar!=null&&t.modules.toolbar.container==null&&(t.modules.toolbar.container=_O),super(e,t),this.quill.container.classList.add("ql-bubble")}extendToolbar(e){this.tooltip=new Jx(this.quill,this.options.bounds),e.container!=null&&(this.tooltip.root.appendChild(e.container),this.buildButtons(e.container.querySelectorAll("button"),rd),this.buildPickers(e.container.querySelectorAll("select"),rd))}}Qx.DEFAULTS=Ql({},cd.DEFAULTS,{modules:{toolbar:{handlers:{link(r){r?this.quill.theme.tooltip.edit():this.quill.format("link",!1,Ve.sources.USER)}}}}});const xO=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class eS extends Xx{constructor(){super(...arguments);ft(this,"preview",this.root.querySelector("a.ql-preview"))}listen(){super.listen(),this.root.querySelector("a.ql-action").addEventListener("click",t=>{this.root.classList.contains("ql-editing")?this.save():this.edit("link",this.preview.textContent),t.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",t=>{if(this.linkRange!=null){const n=this.linkRange;this.restoreFocus(),this.quill.formatText(n,"link",!1,Zt.sources.USER),delete this.linkRange}t.preventDefault(),this.hide()}),this.quill.on(Zt.events.SELECTION_CHANGE,(t,n,i)=>{if(t!=null){if(t.length===0&&i===Zt.sources.USER){const[l,u]=this.quill.scroll.descendant(Jl,t.index);if(l!=null){this.linkRange=new Jc(t.index-u,l.length());const f=Jl.formats(l.domNode);this.preview.textContent=f,this.preview.setAttribute("href",f),this.show();const g=this.quill.getBounds(this.linkRange);g!=null&&this.position(g);return}}else delete this.linkRange;this.hide()}})}show(){super.show(),this.root.removeAttribute("data-mode")}}ft(eS,"TEMPLATE",['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""));class tS extends cd{constructor(e,t){t.modules.toolbar!=null&&t.modules.toolbar.container==null&&(t.modules.toolbar.container=xO),super(e,t),this.quill.container.classList.add("ql-snow")}extendToolbar(e){e.container!=null&&(e.container.classList.add("ql-snow"),this.buildButtons(e.container.querySelectorAll("button"),rd),this.buildPickers(e.container.querySelectorAll("select"),rd),this.tooltip=new eS(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"k",shortKey:!0},(t,n)=>{e.handlers.link.call(e,!n.format.link)}))}}tS.DEFAULTS=Ql({},cd.DEFAULTS,{modules:{toolbar:{handlers:{link(r){if(r){const e=this.quill.getSelection();if(e==null||e.length===0)return;let t=this.quill.getText(e);/^\S+@\S+\.\S+$/.test(t)&&t.indexOf("mailto:")!==0&&(t=`mailto:${t}`);const{tooltip:n}=this.quill.theme;n.edit("link",t)}else this.quill.format("link",!1,Ve.sources.USER)}}}}});Ve.register({"attributors/attribute/direction":Ox,"attributors/class/align":Lx,"attributors/class/background":jM,"attributors/class/color":FM,"attributors/class/direction":Px,"attributors/class/font":jx,"attributors/class/size":Hx,"attributors/style/align":Mx,"attributors/style/background":Dm,"attributors/style/color":Mm,"attributors/style/direction":Nx,"attributors/style/font":Bx,"attributors/style/size":qx},!0);Ve.register({"formats/align":Lx,"formats/direction":Px,"formats/indent":kD,"formats/background":Dm,"formats/color":Mm,"formats/font":jx,"formats/size":Hx,"formats/blockquote":tm,"formats/code-block":zi,"formats/header":rm,"formats/list":ld,"formats/bold":td,"formats/code":Om,"formats/italic":nm,"formats/link":Jl,"formats/script":im,"formats/strike":om,"formats/underline":sm,"formats/formula":Wd,"formats/image":RD,"formats/video":Vd,"modules/syntax":Gx,"modules/table":LD,"modules/toolbar":Bm,"themes/bubble":Qx,"themes/snow":tS,"ui/icons":rd,"ui/picker":mh,"ui/icon-picker":Kx,"ui/color-picker":Zx,"ui/tooltip":Yx},!0);var hp={exports:{}},fy;function SO(){return fy||(fy=1,function(r,e){(function(t,n){r.exports=n()})(self,()=>(()=>{var t={321:(l,u)=>{Object.defineProperty(u,"__esModule",{value:!0}),u.ConsoleLogger=void 0;var f=function(){function g(m,R){this.debug=m,this.suppressErrorLogging=R}return g.prototype.prefixString=function(){return"</> quill-image-compress: "},Object.defineProperty(g.prototype,"log",{get:function(){return this.debug?console.log.bind(console,this.prefixString()):function(){}},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"error",{get:function(){return this.suppressErrorLogging?function(){}:console.error.bind(console,this.prefixString())},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"warn",{get:function(){return this.suppressErrorLogging?function(){}:console.warn.bind(console,this.prefixString())},enumerable:!1,configurable:!0}),g}();u.ConsoleLogger=f},337:function(l,u){var f=this&&this.__awaiter||function(m,R,w,b){return new(w||(w=Promise))(function(S,_){function D(L){try{x(b.next(L))}catch(O){_(O)}}function E(L){try{x(b.throw(L))}catch(O){_(O)}}function x(L){var O;L.done?S(L.value):(O=L.value,O instanceof w?O:new w(function(H){H(O)})).then(D,E)}x((b=b.apply(m,R||[])).next())})},g=this&&this.__generator||function(m,R){var w,b,S,_={label:0,sent:function(){if(1&S[0])throw S[1];return S[1]},trys:[],ops:[]},D=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return D.next=E(0),D.throw=E(1),D.return=E(2),typeof Symbol=="function"&&(D[Symbol.iterator]=function(){return this}),D;function E(x){return function(L){return function(O){if(w)throw new TypeError("Generator is already executing.");for(;D&&(D=0,O[0]&&(_=0)),_;)try{if(w=1,b&&(S=2&O[0]?b.return:O[0]?b.throw||((S=b.return)&&S.call(b),0):b.next)&&!(S=S.call(b,O[1])).done)return S;switch(b=0,S&&(O=[2&O[0],S.value]),O[0]){case 0:case 1:S=O;break;case 4:return _.label++,{value:O[1],done:!1};case 5:_.label++,b=O[1],O=[0];continue;case 7:O=_.ops.pop(),_.trys.pop();continue;default:if(S=_.trys,!((S=S.length>0&&S[S.length-1])||O[0]!==6&&O[0]!==2)){_=0;continue}if(O[0]===3&&(!S||O[1]>S[0]&&O[1]<S[3])){_.label=O[1];break}if(O[0]===6&&_.label<S[1]){_.label=S[1],S=O;break}if(S&&_.label<S[2]){_.label=S[2],_.ops.push(O);break}S[2]&&_.ops.pop(),_.trys.pop();continue}O=R.call(m,_)}catch(H){O=[6,H],b=0}finally{w=S=0}if(5&O[0])throw O[1];return{value:O[0]?O[1]:void 0,done:!0}}([x,L])}}};Object.defineProperty(u,"__esModule",{value:!0}),u.downscaleImage=function(m,R,w,b,S,_,D,E){return f(this,void 0,void 0,function(){var x,L,O,H,q,z,K,ue;return g(this,function(X){switch(X.label){case 0:return x=R.split(";")[0].split(":")[1],S=S||"image/jpeg",E=E||.7,(L=new Image).src=R,[4,new Promise(function(de){L.onload=function(){de()}})];case 1:return X.sent(),O=function(de,j,re,J){if(re&&J&&de<=re&&j<=J)return[de,j];if(re&&de>re){var Q=re,he=Math.floor(j/de*Q);if(J&&he>J){var me=J;return[Math.floor(de/j*me),me]}return[Q,he]}return J&&j>J?(he=J,[Q=Math.floor(de/j*he),he]):[j,de]}(L.width,L.height,w,b),H=O[0],q=O[1],(z=document.createElement("canvas")).width=H,z.height=q,K=z.getContext("2d"),S==="image/jpeg"&&(K.fillStyle="#FFFFFF",K.fillRect(0,0,L.width,L.height)),D!=null&&D.includes(x)?[2,R]:(_!=null&&_.includes(x)&&(S=x),K.drawImage(L,0,0,H,q),ue=z.toDataURL(S,E),m.log("downscaling image...",{args:{dataUrl:R,maxWidth:w,maxHeight:b,imageType:S,ignoreImageTypes:D,keepImageTypes:_,imageQuality:E},newHeight:q,newWidth:H}),[2,ue])}})})}},922:function(l,u){var f=this&&this.__awaiter||function(m,R,w,b){return new(w||(w=Promise))(function(S,_){function D(L){try{x(b.next(L))}catch(O){_(O)}}function E(L){try{x(b.throw(L))}catch(O){_(O)}}function x(L){var O;L.done?S(L.value):(O=L.value,O instanceof w?O:new w(function(H){H(O)})).then(D,E)}x((b=b.apply(m,R||[])).next())})},g=this&&this.__generator||function(m,R){var w,b,S,_={label:0,sent:function(){if(1&S[0])throw S[1];return S[1]},trys:[],ops:[]},D=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return D.next=E(0),D.throw=E(1),D.return=E(2),typeof Symbol=="function"&&(D[Symbol.iterator]=function(){return this}),D;function E(x){return function(L){return function(O){if(w)throw new TypeError("Generator is already executing.");for(;D&&(D=0,O[0]&&(_=0)),_;)try{if(w=1,b&&(S=2&O[0]?b.return:O[0]?b.throw||((S=b.return)&&S.call(b),0):b.next)&&!(S=S.call(b,O[1])).done)return S;switch(b=0,S&&(O=[2&O[0],S.value]),O[0]){case 0:case 1:S=O;break;case 4:return _.label++,{value:O[1],done:!1};case 5:_.label++,b=O[1],O=[0];continue;case 7:O=_.ops.pop(),_.trys.pop();continue;default:if(S=_.trys,!((S=S.length>0&&S[S.length-1])||O[0]!==6&&O[0]!==2)){_=0;continue}if(O[0]===3&&(!S||O[1]>S[0]&&O[1]<S[3])){_.label=O[1];break}if(O[0]===6&&_.label<S[1]){_.label=S[1],S=O;break}if(S&&_.label<S[2]){_.label=S[2],_.ops.push(O);break}S[2]&&_.ops.pop(),_.trys.pop();continue}O=R.call(m,_)}catch(H){O=[6,H],b=0}finally{w=S=0}if(5&O[0])throw O[1];return{value:O[0]?O[1]:void 0,done:!0}}([x,L])}}};Object.defineProperty(u,"__esModule",{value:!0}),u.file2b64=function(m){return f(this,void 0,void 0,function(){var R,w;return g(this,function(b){return R=new FileReader,w=new Promise(function(S,_){R.addEventListener("load",function(){var D,E=(D=R.result)===null||D===void 0?void 0:D.toString();E?S(E):_("could not convert file to base64")},!1)}),R.readAsDataURL(m),[2,w]})})}},457:(l,u)=>{Object.defineProperty(u,"__esModule",{value:!0}),u.warnAboutOptions=function(f,g){f.maxWidth=f.maxWidth||1e3,f.maxHeight=f.maxHeight||1e3,f.maxWidth&&typeof f.maxWidth!="number"&&(g.warn(`[config error] 'maxWidth' is required to be a "number" (in pixels),
|
210
|
+
`).join("");return l.insert(u,{table:jm()})},new Gt().retain(n.index));this.quill.updateContents(i,Ve.sources.USER),this.quill.setSelection(n.index,Ve.sources.SILENT),this.balanceTables()}listenBalanceCells(){this.quill.on(Ve.events.SCROLL_OPTIMIZE,e=>{e.some(t=>["TD","TR","TBODY","TABLE"].includes(t.target.tagName)?(this.quill.once(Ve.events.TEXT_CHANGE,(n,i,l)=>{l===Ve.sources.USER&&this.balanceTables()}),!0):!1)})}}const sy=cl("quill:toolbar");class Bm extends Vs{constructor(e,t){var n,i;if(super(e,t),Array.isArray(this.options.container)){const l=document.createElement("div");l.setAttribute("role","toolbar"),MD(l,this.options.container),(i=(n=e.container)==null?void 0:n.parentNode)==null||i.insertBefore(l,e.container),this.container=l}else typeof this.options.container=="string"?this.container=document.querySelector(this.options.container):this.container=this.options.container;if(!(this.container instanceof HTMLElement)){sy.error("Container required for toolbar",this.options);return}this.container.classList.add("ql-toolbar"),this.controls=[],this.handlers={},this.options.handlers&&Object.keys(this.options.handlers).forEach(l=>{var f;const u=(f=this.options.handlers)==null?void 0:f[l];u&&this.addHandler(l,u)}),Array.from(this.container.querySelectorAll("button, select")).forEach(l=>{this.attach(l)}),this.quill.on(Ve.events.EDITOR_CHANGE,()=>{const[l]=this.quill.selection.getRange();this.update(l)})}addHandler(e,t){this.handlers[e]=t}attach(e){let t=Array.from(e.classList).find(i=>i.indexOf("ql-")===0);if(!t)return;if(t=t.slice(3),e.tagName==="BUTTON"&&e.setAttribute("type","button"),this.handlers[t]==null&&this.quill.scroll.query(t)==null){sy.warn("ignoring attaching to nonexistent format",t,e);return}const n=e.tagName==="SELECT"?"change":"click";e.addEventListener(n,i=>{let l;if(e.tagName==="SELECT"){if(e.selectedIndex<0)return;const f=e.options[e.selectedIndex];f.hasAttribute("selected")?l=!1:l=f.value||!1}else e.classList.contains("ql-active")?l=!1:l=e.value||!e.hasAttribute("value"),i.preventDefault();this.quill.focus();const[u]=this.quill.selection.getRange();if(this.handlers[t]!=null)this.handlers[t].call(this,l);else if(this.quill.scroll.query(t).prototype instanceof zo){if(l=prompt(`Enter ${t}`),!l)return;this.quill.updateContents(new Gt().retain(u.index).delete(u.length).insert({[t]:l}),Ve.sources.USER)}else this.quill.format(t,l,Ve.sources.USER);this.update(u)}),this.controls.push([t,e])}update(e){const t=e==null?{}:this.quill.getFormat(e);this.controls.forEach(n=>{const[i,l]=n;if(l.tagName==="SELECT"){let u=null;if(e==null)u=null;else if(t[i]==null)u=l.querySelector("option[selected]");else if(!Array.isArray(t[i])){let f=t[i];typeof f=="string"&&(f=f.replace(/"/g,'\\"')),u=l.querySelector(`option[value="${f}"]`)}u==null?(l.value="",l.selectedIndex=-1):u.selected=!0}else if(e==null)l.classList.remove("ql-active"),l.setAttribute("aria-pressed","false");else if(l.hasAttribute("value")){const u=t[i],f=u===l.getAttribute("value")||u!=null&&u.toString()===l.getAttribute("value")||u==null&&!l.getAttribute("value");l.classList.toggle("ql-active",f),l.setAttribute("aria-pressed",f.toString())}else{const u=t[i]!=null;l.classList.toggle("ql-active",u),l.setAttribute("aria-pressed",u.toString())}})}}Bm.DEFAULTS={};function ay(r,e,t){const n=document.createElement("button");n.setAttribute("type","button"),n.classList.add(`ql-${e}`),n.setAttribute("aria-pressed","false"),t!=null?(n.value=t,n.setAttribute("aria-label",`${e}: ${t}`)):n.setAttribute("aria-label",e),r.appendChild(n)}function MD(r,e){Array.isArray(e[0])||(e=[e]),e.forEach(t=>{const n=document.createElement("span");n.classList.add("ql-formats"),t.forEach(i=>{if(typeof i=="string")ay(n,i);else{const l=Object.keys(i)[0],u=i[l];Array.isArray(u)?DD(n,l,u):ay(n,l,u)}}),r.appendChild(n)})}function DD(r,e,t){const n=document.createElement("select");n.classList.add(`ql-${e}`),t.forEach(i=>{const l=document.createElement("option");i!==!1?l.setAttribute("value",String(i)):l.setAttribute("selected","selected"),n.appendChild(l)}),r.appendChild(n)}Bm.DEFAULTS={container:null,handlers:{clean(){const r=this.quill.getSelection();if(r!=null)if(r.length===0){const e=this.quill.getFormat();Object.keys(e).forEach(t=>{this.quill.scroll.query(t,Jt.INLINE)!=null&&this.quill.format(t,!1,Ve.sources.USER)})}else this.quill.removeFormat(r.index,r.length,Ve.sources.USER)},direction(r){const{align:e}=this.quill.getFormat();r==="rtl"&&e==null?this.quill.format("align","right",Ve.sources.USER):!r&&e==="right"&&this.quill.format("align",!1,Ve.sources.USER),this.quill.format("direction",r,Ve.sources.USER)},indent(r){const e=this.quill.getSelection(),t=this.quill.getFormat(e),n=parseInt(t.indent||0,10);if(r==="+1"||r==="-1"){let i=r==="+1"?1:-1;t.direction==="rtl"&&(i*=-1),this.quill.format("indent",n+i,Ve.sources.USER)}},link(r){r===!0&&(r=prompt("Enter link URL:")),this.quill.format("link",r,Ve.sources.USER)},list(r){const e=this.quill.getSelection(),t=this.quill.getFormat(e);r==="check"?t.list==="checked"||t.list==="unchecked"?this.quill.format("list",!1,Ve.sources.USER):this.quill.format("list","unchecked",Ve.sources.USER):this.quill.format("list",r,Ve.sources.USER)}}};const OD='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"/></svg>',PD='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"/><line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"/></svg>',ND='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"/></svg>',FD='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="3" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="3" y1="4" y2="4"/></svg>',jD='<svg viewbox="0 0 18 18"><g class="ql-fill ql-color-label"><polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"/><rect height="1" width="1" x="4" y="4"/><polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"/><rect height="1" width="1" x="2" y="6"/><rect height="1" width="1" x="3" y="5"/><rect height="1" width="1" x="4" y="7"/><polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"/><rect height="1" width="1" x="2" y="12"/><rect height="1" width="1" x="2" y="9"/><rect height="1" width="1" x="2" y="15"/><polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"/><rect height="1" width="1" x="3" y="8"/><path d="M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z"/><path d="M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z"/><path d="M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z"/><rect height="1" width="1" x="12" y="2"/><rect height="1" width="1" x="11" y="3"/><path d="M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z"/><rect height="1" width="1" x="2" y="3"/><rect height="1" width="1" x="6" y="2"/><rect height="1" width="1" x="3" y="2"/><rect height="1" width="1" x="5" y="3"/><rect height="1" width="1" x="9" y="2"/><rect height="1" width="1" x="15" y="14"/><polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"/><rect height="1" width="1" x="13" y="7"/><rect height="1" width="1" x="15" y="5"/><rect height="1" width="1" x="14" y="6"/><rect height="1" width="1" x="15" y="8"/><rect height="1" width="1" x="14" y="9"/><path d="M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z"/><rect height="1" width="1" x="14" y="3"/><polygon points="12 6.868 12 6 11.62 6 12 6.868"/><rect height="1" width="1" x="15" y="2"/><rect height="1" width="1" x="12" y="5"/><rect height="1" width="1" x="13" y="4"/><polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"/><rect height="1" width="1" x="9" y="14"/><rect height="1" width="1" x="8" y="15"/><path d="M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z"/><rect height="1" width="1" x="5" y="15"/><path d="M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z"/><rect height="1" width="1" x="11" y="15"/><path d="M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z"/><rect height="1" width="1" x="14" y="15"/><rect height="1" width="1" x="15" y="11"/></g><polyline class="ql-stroke" points="5.5 13 9 5 12.5 13"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="11" y2="11"/></svg>',BD='<svg viewbox="0 0 18 18"><rect class="ql-fill ql-stroke" height="3" width="3" x="4" y="5"/><rect class="ql-fill ql-stroke" height="3" width="3" x="11" y="5"/><path class="ql-even ql-fill ql-stroke" d="M7,8c0,4.031-3,5-3,5"/><path class="ql-even ql-fill ql-stroke" d="M14,8c0,4.031-3,5-3,5"/></svg>',HD='<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z"/><path class="ql-stroke" d="M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z"/></svg>',qD='<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="5" x2="13" y1="3" y2="3"/><line class="ql-stroke" x1="6" x2="9.35" y1="12" y2="3"/><line class="ql-stroke" x1="11" x2="15" y1="11" y2="15"/><line class="ql-stroke" x1="15" x2="11" y1="11" y2="15"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="7" x="2" y="14"/></svg>',ly='<svg viewbox="0 0 18 18"><polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"/><polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"/><line class="ql-stroke" x1="10" x2="8" y1="5" y2="13"/></svg>',zD='<svg viewbox="0 0 18 18"><line class="ql-color-label ql-stroke ql-transparent" x1="3" x2="15" y1="15" y2="15"/><polyline class="ql-stroke" points="5.5 11 9 3 12.5 11"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="9" y2="9"/></svg>',$D='<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"/><line class="ql-stroke ql-fill" x1="15" x2="11" y1="4" y2="4"/><path class="ql-fill" d="M11,3a3,3,0,0,0,0,6h1V3H11Z"/><rect class="ql-fill" height="11" width="1" x="11" y="4"/><rect class="ql-fill" height="11" width="1" x="13" y="4"/></svg>',UD='<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"/><line class="ql-stroke ql-fill" x1="9" x2="5" y1="4" y2="4"/><path class="ql-fill" d="M5,3A3,3,0,0,0,5,9H6V3H5Z"/><rect class="ql-fill" height="11" width="1" x="5" y="4"/><rect class="ql-fill" height="11" width="1" x="7" y="4"/></svg>',WD='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z"/><rect class="ql-fill" height="1.6" rx="0.8" ry="0.8" width="5" x="5.15" y="6.2"/><path class="ql-fill" d="M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z"/></svg>',VD='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z"/></svg>',GD='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',ZD='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.65186,12.30664a2.6742,2.6742,0,0,1-2.915,2.68457,3.96592,3.96592,0,0,1-2.25537-.6709.56007.56007,0,0,1-.13232-.83594L11.64648,13c.209-.34082.48389-.36328.82471-.1543a2.32654,2.32654,0,0,0,1.12256.33008c.71484,0,1.12207-.35156,1.12207-.78125,0-.61523-.61621-.86816-1.46338-.86816H13.2085a.65159.65159,0,0,1-.68213-.41895l-.05518-.10937a.67114.67114,0,0,1,.14307-.78125l.71533-.86914a8.55289,8.55289,0,0,1,.68213-.7373V8.58887a3.93913,3.93913,0,0,1-.748.05469H11.9873a.54085.54085,0,0,1-.605-.60547V7.59863a.54085.54085,0,0,1,.605-.60547h3.75146a.53773.53773,0,0,1,.60547.59375v.17676a1.03723,1.03723,0,0,1-.27539.748L14.74854,10.0293A2.31132,2.31132,0,0,1,16.65186,12.30664ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',KD='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm7.05371,7.96582v.38477c0,.39648-.165.60547-.46191.60547h-.47314v1.29785a.54085.54085,0,0,1-.605.60547h-.69336a.54085.54085,0,0,1-.605-.60547V12.95605H11.333a.5412.5412,0,0,1-.60547-.60547v-.15332a1.199,1.199,0,0,1,.22021-.748l2.56348-4.05957a.7819.7819,0,0,1,.72607-.39648h1.27637a.54085.54085,0,0,1,.605.60547v3.7627h.33008A.54055.54055,0,0,1,17.05371,11.96582ZM14.28125,8.7207h-.022a4.18969,4.18969,0,0,1-.38525.81348l-1.188,1.80469v.02246h1.5293V9.60059A7.04058,7.04058,0,0,1,14.28125,8.7207Z"/></svg>',YD='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.74023,12.18555a2.75131,2.75131,0,0,1-2.91553,2.80566,3.908,3.908,0,0,1-2.25537-.68164.54809.54809,0,0,1-.13184-.8252L11.73438,13c.209-.34082.48389-.36328.8252-.1543a2.23757,2.23757,0,0,0,1.1001.33008,1.01827,1.01827,0,0,0,1.1001-.96777c0-.61621-.53906-.97949-1.25439-.97949a2.15554,2.15554,0,0,0-.64893.09961,1.15209,1.15209,0,0,1-.814.01074l-.12109-.04395a.64116.64116,0,0,1-.45117-.71484l.231-3.00391a.56666.56666,0,0,1,.62744-.583H15.541a.54085.54085,0,0,1,.605.60547v.43945a.54085.54085,0,0,1-.605.60547H13.41748l-.04395.72559a1.29306,1.29306,0,0,1-.04395.30859h.022a2.39776,2.39776,0,0,1,.57227-.07715A2.53266,2.53266,0,0,1,16.74023,12.18555ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',XD='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M14.51758,9.64453a1.85627,1.85627,0,0,0-1.24316.38477H13.252a1.73532,1.73532,0,0,1,1.72754-1.4082,2.66491,2.66491,0,0,1,.5498.06641c.35254.05469.57227.01074.70508-.40723l.16406-.5166a.53393.53393,0,0,0-.373-.75977,4.83723,4.83723,0,0,0-1.17773-.14258c-2.43164,0-3.7627,2.17773-3.7627,4.43359,0,2.47559,1.60645,3.69629,3.19043,3.69629A2.70585,2.70585,0,0,0,16.96,12.19727,2.43861,2.43861,0,0,0,14.51758,9.64453Zm-.23047,3.58691c-.67187,0-1.22168-.81445-1.22168-1.45215,0-.47363.30762-.583.72559-.583.96875,0,1.27734.59375,1.27734,1.12207A.82182.82182,0,0,1,14.28711,13.23145ZM10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Z"/></svg>',JD='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="13" y1="4" y2="4"/><line class="ql-stroke" x1="5" x2="11" y1="14" y2="14"/><line class="ql-stroke" x1="8" x2="10" y1="14" y2="4"/></svg>',QD='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="10" width="12" x="3" y="4"/><circle class="ql-fill" cx="6" cy="7" r="1"/><polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"/></svg>',eO='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"/></svg>',tO='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="5 7 5 11 3 9 5 7"/></svg>',rO='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="11" y1="7" y2="11"/><path class="ql-even ql-stroke" d="M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z"/><path class="ql-even ql-stroke" d="M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z"/></svg>',nO='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="6" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="6" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="6" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="3" y1="4" y2="4"/><line class="ql-stroke" x1="3" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="3" y1="14" y2="14"/></svg>',iO='<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="9" x2="15" y1="4" y2="4"/><polyline class="ql-stroke" points="3 4 4 5 6 3"/><line class="ql-stroke" x1="9" x2="15" y1="14" y2="14"/><polyline class="ql-stroke" points="3 14 4 15 6 13"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="3 9 4 10 6 8"/></svg>',oO='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="7" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="7" x2="15" y1="14" y2="14"/><line class="ql-stroke ql-thin" x1="2.5" x2="4.5" y1="5.5" y2="5.5"/><path class="ql-fill" d="M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z"/><path class="ql-stroke ql-thin" d="M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156"/><path class="ql-stroke ql-thin" d="M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109"/></svg>',sO='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z"/><path class="ql-fill" d="M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z"/></svg>',aO='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z"/><path class="ql-fill" d="M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z"/></svg>',lO='<svg viewbox="0 0 18 18"><line class="ql-stroke ql-thin" x1="15.5" x2="2.5" y1="8.5" y2="9.5"/><path class="ql-fill" d="M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z"/><path class="ql-fill" d="M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z"/></svg>',cO='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="2" width="3" x="5" y="5"/><rect class="ql-fill" height="2" width="4" x="9" y="5"/><g class="ql-fill ql-transparent"><rect height="2" width="3" x="5" y="8"/><rect height="2" width="4" x="9" y="8"/><rect height="2" width="3" x="5" y="11"/><rect height="2" width="4" x="9" y="11"/></g></svg>',uO='<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="12" x="3" y="15"/></svg>',fO='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="12" width="1" x="5" y="3"/><rect class="ql-fill" height="12" width="1" x="12" y="3"/><rect class="ql-fill" height="2" width="8" x="5" y="8"/><rect class="ql-fill" height="1" width="3" x="3" y="5"/><rect class="ql-fill" height="1" width="3" x="3" y="7"/><rect class="ql-fill" height="1" width="3" x="3" y="10"/><rect class="ql-fill" height="1" width="3" x="3" y="12"/><rect class="ql-fill" height="1" width="3" x="12" y="5"/><rect class="ql-fill" height="1" width="3" x="12" y="7"/><rect class="ql-fill" height="1" width="3" x="12" y="10"/><rect class="ql-fill" height="1" width="3" x="12" y="12"/></svg>',rd={align:{"":OD,center:PD,right:ND,justify:FD},background:jD,blockquote:BD,bold:HD,clean:qD,code:ly,"code-block":ly,color:zD,direction:{"":$D,rtl:UD},formula:WD,header:{1:VD,2:GD,3:ZD,4:KD,5:YD,6:XD},italic:JD,image:QD,indent:{"+1":eO,"-1":tO},link:rO,list:{bullet:nO,check:iO,ordered:oO},script:{sub:sO,super:aO},strike:lO,table:cO,underline:uO,video:fO},dO='<svg viewbox="0 0 18 18"><polygon class="ql-stroke" points="7 11 9 13 11 11 7 11"/><polygon class="ql-stroke" points="7 7 9 5 11 7 7 7"/></svg>';let cy=0;function uy(r,e){r.setAttribute(e,`${r.getAttribute(e)!=="true"}`)}class mh{constructor(e){this.select=e,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",()=>{this.togglePicker()}),this.label.addEventListener("keydown",t=>{switch(t.key){case"Enter":this.togglePicker();break;case"Escape":this.escape(),t.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}togglePicker(){this.container.classList.toggle("ql-expanded"),uy(this.label,"aria-expanded"),uy(this.options,"aria-hidden")}buildItem(e){const t=document.createElement("span");t.tabIndex="0",t.setAttribute("role","button"),t.classList.add("ql-picker-item");const n=e.getAttribute("value");return n&&t.setAttribute("data-value",n),e.textContent&&t.setAttribute("data-label",e.textContent),t.addEventListener("click",()=>{this.selectItem(t,!0)}),t.addEventListener("keydown",i=>{switch(i.key){case"Enter":this.selectItem(t,!0),i.preventDefault();break;case"Escape":this.escape(),i.preventDefault();break}}),t}buildLabel(){const e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=dO,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}buildOptions(){const e=document.createElement("span");e.classList.add("ql-picker-options"),e.setAttribute("aria-hidden","true"),e.tabIndex="-1",e.id=`ql-picker-options-${cy}`,cy+=1,this.label.setAttribute("aria-controls",e.id),this.options=e,Array.from(this.select.options).forEach(t=>{const n=this.buildItem(t);e.appendChild(n),t.selected===!0&&this.selectItem(n)}),this.container.appendChild(e)}buildPicker(){Array.from(this.select.attributes).forEach(e=>{this.container.setAttribute(e.name,e.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}escape(){this.close(),setTimeout(()=>this.label.focus(),1)}close(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}selectItem(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n=this.container.querySelector(".ql-selected");e!==n&&(n!=null&&n.classList.remove("ql-selected"),e!=null&&(e.classList.add("ql-selected"),this.select.selectedIndex=Array.from(e.parentNode.children).indexOf(e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t&&(this.select.dispatchEvent(new Event("change")),this.close())))}update(){let e;if(this.select.selectedIndex>-1){const n=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(n)}else this.selectItem(null);const t=e!=null&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",t)}}class Zx extends mh{constructor(e,t){super(e),this.label.innerHTML=t,this.container.classList.add("ql-color-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).slice(0,7).forEach(n=>{n.classList.add("ql-primary")})}buildItem(e){const t=super.buildItem(e);return t.style.backgroundColor=e.getAttribute("value")||"",t}selectItem(e,t){super.selectItem(e,t);const n=this.label.querySelector(".ql-color-label"),i=e&&e.getAttribute("data-value")||"";n&&(n.tagName==="line"?n.style.stroke=i:n.style.fill=i)}}class Kx extends mh{constructor(e,t){super(e),this.container.classList.add("ql-icon-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).forEach(n=>{n.innerHTML=t[n.getAttribute("data-value")||""]}),this.defaultItem=this.container.querySelector(".ql-selected"),this.selectItem(this.defaultItem)}selectItem(e,t){super.selectItem(e,t);const n=e||this.defaultItem;if(n!=null){if(this.label.innerHTML===n.innerHTML)return;this.label.innerHTML=n.innerHTML}}}const hO=r=>{const{overflowY:e}=getComputedStyle(r,null);return e!=="visible"&&e!=="clip"};class Yx{constructor(e,t){this.quill=e,this.boundsContainer=t||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,hO(this.quill.root)&&this.quill.root.addEventListener("scroll",()=>{this.root.style.marginTop=`${-1*this.quill.root.scrollTop}px`}),this.hide()}hide(){this.root.classList.add("ql-hidden")}position(e){const t=e.left+e.width/2-this.root.offsetWidth/2,n=e.bottom+this.quill.root.scrollTop;this.root.style.left=`${t}px`,this.root.style.top=`${n}px`,this.root.classList.remove("ql-flip");const i=this.boundsContainer.getBoundingClientRect(),l=this.root.getBoundingClientRect();let u=0;if(l.right>i.right&&(u=i.right-l.right,this.root.style.left=`${t+u}px`),l.left<i.left&&(u=i.left-l.left,this.root.style.left=`${t+u}px`),l.bottom>i.bottom){const f=l.bottom-l.top,g=e.bottom-e.top+f;this.root.style.top=`${n-g}px`,this.root.classList.add("ql-flip")}return u}show(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}const pO=[!1,"center","right","justify"],gO=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],mO=[!1,"serif","monospace"],vO=["1","2","3",!1],yO=["small",!1,"large","huge"];class cd extends Ju{constructor(e,t){super(e,t);const n=i=>{if(!document.body.contains(e.root)){document.body.removeEventListener("click",n);return}this.tooltip!=null&&!this.tooltip.root.contains(i.target)&&document.activeElement!==this.tooltip.textbox&&!this.quill.hasFocus()&&this.tooltip.hide(),this.pickers!=null&&this.pickers.forEach(l=>{l.container.contains(i.target)||l.close()})};e.emitter.listenDOM("click",document.body,n)}addModule(e){const t=super.addModule(e);return e==="toolbar"&&this.extendToolbar(t),t}buildButtons(e,t){Array.from(e).forEach(n=>{(n.getAttribute("class")||"").split(/\s+/).forEach(l=>{if(l.startsWith("ql-")&&(l=l.slice(3),t[l]!=null))if(l==="direction")n.innerHTML=t[l][""]+t[l].rtl;else if(typeof t[l]=="string")n.innerHTML=t[l];else{const u=n.value||"";u!=null&&t[l][u]&&(n.innerHTML=t[l][u])}})})}buildPickers(e,t){this.pickers=Array.from(e).map(i=>{if(i.classList.contains("ql-align")&&(i.querySelector("option")==null&&Df(i,pO),typeof t.align=="object"))return new Kx(i,t.align);if(i.classList.contains("ql-background")||i.classList.contains("ql-color")){const l=i.classList.contains("ql-background")?"background":"color";return i.querySelector("option")==null&&Df(i,gO,l==="background"?"#ffffff":"#000000"),new Zx(i,t[l])}return i.querySelector("option")==null&&(i.classList.contains("ql-font")?Df(i,mO):i.classList.contains("ql-header")?Df(i,vO):i.classList.contains("ql-size")&&Df(i,yO)),new mh(i)});const n=()=>{this.pickers.forEach(i=>{i.update()})};this.quill.on(Zt.events.EDITOR_CHANGE,n)}}cd.DEFAULTS=Ql({},Ju.DEFAULTS,{modules:{toolbar:{handlers:{formula(){this.quill.theme.tooltip.edit("formula")},image(){let r=this.container.querySelector("input.ql-image[type=file]");r==null&&(r=document.createElement("input"),r.setAttribute("type","file"),r.setAttribute("accept",this.quill.uploader.options.mimetypes.join(", ")),r.classList.add("ql-image"),r.addEventListener("change",()=>{const e=this.quill.getSelection(!0);this.quill.uploader.upload(e,r.files),r.value=""}),this.container.appendChild(r)),r.click()},video(){this.quill.theme.tooltip.edit("video")}}}}});class Xx extends Yx{constructor(e,t){super(e,t),this.textbox=this.root.querySelector('input[type="text"]'),this.listen()}listen(){this.textbox.addEventListener("keydown",e=>{e.key==="Enter"?(this.save(),e.preventDefault()):e.key==="Escape"&&(this.cancel(),e.preventDefault())})}cancel(){this.hide(),this.restoreFocus()}edit(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),this.textbox==null)return;t!=null?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value="");const n=this.quill.getBounds(this.quill.selection.savedRange);n!=null&&this.position(n),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute(`data-${e}`)||""),this.root.setAttribute("data-mode",e)}restoreFocus(){this.quill.focus({preventScroll:!0})}save(){let{value:e}=this.textbox;switch(this.root.getAttribute("data-mode")){case"link":{const{scrollTop:t}=this.quill.root;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,Zt.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,Zt.sources.USER)),this.quill.root.scrollTop=t;break}case"video":e=bO(e);case"formula":{if(!e)break;const t=this.quill.getSelection(!0);if(t!=null){const n=t.index+t.length;this.quill.insertEmbed(n,this.root.getAttribute("data-mode"),e,Zt.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(n+1," ",Zt.sources.USER),this.quill.setSelection(n+2,Zt.sources.USER)}break}}this.textbox.value="",this.hide()}}function bO(r){let e=r.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||r.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return e?`${e[1]||"https"}://www.youtube.com/embed/${e[2]}?showinfo=0`:(e=r.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?`${e[1]||"https"}://player.vimeo.com/video/${e[2]}/`:r}function Df(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;e.forEach(n=>{const i=document.createElement("option");n===t?i.setAttribute("selected","selected"):i.setAttribute("value",String(n)),r.appendChild(i)})}const _O=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];class Jx extends Xx{constructor(e,t){super(e,t),this.quill.on(Zt.events.EDITOR_CHANGE,(n,i,l,u)=>{if(n===Zt.events.SELECTION_CHANGE)if(i!=null&&i.length>0&&u===Zt.sources.USER){this.show(),this.root.style.left="0px",this.root.style.width="",this.root.style.width=`${this.root.offsetWidth}px`;const f=this.quill.getLines(i.index,i.length);if(f.length===1){const g=this.quill.getBounds(i);g!=null&&this.position(g)}else{const g=f[f.length-1],m=this.quill.getIndex(g),R=Math.min(g.length()-1,i.index+i.length-m),C=this.quill.getBounds(new Jc(m,R));C!=null&&this.position(C)}}else document.activeElement!==this.textbox&&this.quill.hasFocus()&&this.hide()})}listen(){super.listen(),this.root.querySelector(".ql-close").addEventListener("click",()=>{this.root.classList.remove("ql-editing")}),this.quill.on(Zt.events.SCROLL_OPTIMIZE,()=>{setTimeout(()=>{if(this.root.classList.contains("ql-hidden"))return;const e=this.quill.getSelection();if(e!=null){const t=this.quill.getBounds(e);t!=null&&this.position(t)}},1)})}cancel(){this.show()}position(e){const t=super.position(e),n=this.root.querySelector(".ql-tooltip-arrow");return n.style.marginLeft="",t!==0&&(n.style.marginLeft=`${-1*t-n.offsetWidth/2}px`),t}}ft(Jx,"TEMPLATE",['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""));class Qx extends cd{constructor(e,t){t.modules.toolbar!=null&&t.modules.toolbar.container==null&&(t.modules.toolbar.container=_O),super(e,t),this.quill.container.classList.add("ql-bubble")}extendToolbar(e){this.tooltip=new Jx(this.quill,this.options.bounds),e.container!=null&&(this.tooltip.root.appendChild(e.container),this.buildButtons(e.container.querySelectorAll("button"),rd),this.buildPickers(e.container.querySelectorAll("select"),rd))}}Qx.DEFAULTS=Ql({},cd.DEFAULTS,{modules:{toolbar:{handlers:{link(r){r?this.quill.theme.tooltip.edit():this.quill.format("link",!1,Ve.sources.USER)}}}}});const xO=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class eS extends Xx{constructor(){super(...arguments);ft(this,"preview",this.root.querySelector("a.ql-preview"))}listen(){super.listen(),this.root.querySelector("a.ql-action").addEventListener("click",t=>{this.root.classList.contains("ql-editing")?this.save():this.edit("link",this.preview.textContent),t.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",t=>{if(this.linkRange!=null){const n=this.linkRange;this.restoreFocus(),this.quill.formatText(n,"link",!1,Zt.sources.USER),delete this.linkRange}t.preventDefault(),this.hide()}),this.quill.on(Zt.events.SELECTION_CHANGE,(t,n,i)=>{if(t!=null){if(t.length===0&&i===Zt.sources.USER){const[l,u]=this.quill.scroll.descendant(Jl,t.index);if(l!=null){this.linkRange=new Jc(t.index-u,l.length());const f=Jl.formats(l.domNode);this.preview.textContent=f,this.preview.setAttribute("href",f),this.show();const g=this.quill.getBounds(this.linkRange);g!=null&&this.position(g);return}}else delete this.linkRange;this.hide()}})}show(){super.show(),this.root.removeAttribute("data-mode")}}ft(eS,"TEMPLATE",['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""));class tS extends cd{constructor(e,t){t.modules.toolbar!=null&&t.modules.toolbar.container==null&&(t.modules.toolbar.container=xO),super(e,t),this.quill.container.classList.add("ql-snow")}extendToolbar(e){e.container!=null&&(e.container.classList.add("ql-snow"),this.buildButtons(e.container.querySelectorAll("button"),rd),this.buildPickers(e.container.querySelectorAll("select"),rd),this.tooltip=new eS(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"k",shortKey:!0},(t,n)=>{e.handlers.link.call(e,!n.format.link)}))}}tS.DEFAULTS=Ql({},cd.DEFAULTS,{modules:{toolbar:{handlers:{link(r){if(r){const e=this.quill.getSelection();if(e==null||e.length===0)return;let t=this.quill.getText(e);/^\S+@\S+\.\S+$/.test(t)&&t.indexOf("mailto:")!==0&&(t=`mailto:${t}`);const{tooltip:n}=this.quill.theme;n.edit("link",t)}else this.quill.format("link",!1,Ve.sources.USER)}}}}});Ve.register({"attributors/attribute/direction":Ox,"attributors/class/align":Lx,"attributors/class/background":jM,"attributors/class/color":FM,"attributors/class/direction":Px,"attributors/class/font":jx,"attributors/class/size":Hx,"attributors/style/align":Mx,"attributors/style/background":Dm,"attributors/style/color":Mm,"attributors/style/direction":Nx,"attributors/style/font":Bx,"attributors/style/size":qx},!0);Ve.register({"formats/align":Lx,"formats/direction":Px,"formats/indent":kD,"formats/background":Dm,"formats/color":Mm,"formats/font":jx,"formats/size":Hx,"formats/blockquote":tm,"formats/code-block":zi,"formats/header":rm,"formats/list":ld,"formats/bold":td,"formats/code":Om,"formats/italic":nm,"formats/link":Jl,"formats/script":im,"formats/strike":om,"formats/underline":sm,"formats/formula":Wd,"formats/image":RD,"formats/video":Vd,"modules/syntax":Gx,"modules/table":LD,"modules/toolbar":Bm,"themes/bubble":Qx,"themes/snow":tS,"ui/icons":rd,"ui/picker":mh,"ui/icon-picker":Kx,"ui/color-picker":Zx,"ui/tooltip":Yx},!0);var hp={exports:{}},fy;function SO(){return fy||(fy=1,function(r,e){(function(t,n){r.exports=n()})(self,()=>(()=>{var t={321:(l,u)=>{Object.defineProperty(u,"__esModule",{value:!0}),u.ConsoleLogger=void 0;var f=function(){function g(m,R){this.debug=m,this.suppressErrorLogging=R}return g.prototype.prefixString=function(){return"</> quill-image-compress: "},Object.defineProperty(g.prototype,"log",{get:function(){return this.debug?console.log.bind(console,this.prefixString()):function(){}},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"error",{get:function(){return this.suppressErrorLogging?function(){}:console.error.bind(console,this.prefixString())},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"warn",{get:function(){return this.suppressErrorLogging?function(){}:console.warn.bind(console,this.prefixString())},enumerable:!1,configurable:!0}),g}();u.ConsoleLogger=f},337:function(l,u){var f=this&&this.__awaiter||function(m,R,C,b){return new(C||(C=Promise))(function(S,_){function D(L){try{x(b.next(L))}catch(O){_(O)}}function E(L){try{x(b.throw(L))}catch(O){_(O)}}function x(L){var O;L.done?S(L.value):(O=L.value,O instanceof C?O:new C(function(H){H(O)})).then(D,E)}x((b=b.apply(m,R||[])).next())})},g=this&&this.__generator||function(m,R){var C,b,S,_={label:0,sent:function(){if(1&S[0])throw S[1];return S[1]},trys:[],ops:[]},D=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return D.next=E(0),D.throw=E(1),D.return=E(2),typeof Symbol=="function"&&(D[Symbol.iterator]=function(){return this}),D;function E(x){return function(L){return function(O){if(C)throw new TypeError("Generator is already executing.");for(;D&&(D=0,O[0]&&(_=0)),_;)try{if(C=1,b&&(S=2&O[0]?b.return:O[0]?b.throw||((S=b.return)&&S.call(b),0):b.next)&&!(S=S.call(b,O[1])).done)return S;switch(b=0,S&&(O=[2&O[0],S.value]),O[0]){case 0:case 1:S=O;break;case 4:return _.label++,{value:O[1],done:!1};case 5:_.label++,b=O[1],O=[0];continue;case 7:O=_.ops.pop(),_.trys.pop();continue;default:if(S=_.trys,!((S=S.length>0&&S[S.length-1])||O[0]!==6&&O[0]!==2)){_=0;continue}if(O[0]===3&&(!S||O[1]>S[0]&&O[1]<S[3])){_.label=O[1];break}if(O[0]===6&&_.label<S[1]){_.label=S[1],S=O;break}if(S&&_.label<S[2]){_.label=S[2],_.ops.push(O);break}S[2]&&_.ops.pop(),_.trys.pop();continue}O=R.call(m,_)}catch(H){O=[6,H],b=0}finally{C=S=0}if(5&O[0])throw O[1];return{value:O[0]?O[1]:void 0,done:!0}}([x,L])}}};Object.defineProperty(u,"__esModule",{value:!0}),u.downscaleImage=function(m,R,C,b,S,_,D,E){return f(this,void 0,void 0,function(){var x,L,O,H,q,z,K,ue;return g(this,function(X){switch(X.label){case 0:return x=R.split(";")[0].split(":")[1],S=S||"image/jpeg",E=E||.7,(L=new Image).src=R,[4,new Promise(function(de){L.onload=function(){de()}})];case 1:return X.sent(),O=function(de,j,re,J){if(re&&J&&de<=re&&j<=J)return[de,j];if(re&&de>re){var Q=re,he=Math.floor(j/de*Q);if(J&&he>J){var me=J;return[Math.floor(de/j*me),me]}return[Q,he]}return J&&j>J?(he=J,[Q=Math.floor(de/j*he),he]):[j,de]}(L.width,L.height,C,b),H=O[0],q=O[1],(z=document.createElement("canvas")).width=H,z.height=q,K=z.getContext("2d"),S==="image/jpeg"&&(K.fillStyle="#FFFFFF",K.fillRect(0,0,L.width,L.height)),D!=null&&D.includes(x)?[2,R]:(_!=null&&_.includes(x)&&(S=x),K.drawImage(L,0,0,H,q),ue=z.toDataURL(S,E),m.log("downscaling image...",{args:{dataUrl:R,maxWidth:C,maxHeight:b,imageType:S,ignoreImageTypes:D,keepImageTypes:_,imageQuality:E},newHeight:q,newWidth:H}),[2,ue])}})})}},922:function(l,u){var f=this&&this.__awaiter||function(m,R,C,b){return new(C||(C=Promise))(function(S,_){function D(L){try{x(b.next(L))}catch(O){_(O)}}function E(L){try{x(b.throw(L))}catch(O){_(O)}}function x(L){var O;L.done?S(L.value):(O=L.value,O instanceof C?O:new C(function(H){H(O)})).then(D,E)}x((b=b.apply(m,R||[])).next())})},g=this&&this.__generator||function(m,R){var C,b,S,_={label:0,sent:function(){if(1&S[0])throw S[1];return S[1]},trys:[],ops:[]},D=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return D.next=E(0),D.throw=E(1),D.return=E(2),typeof Symbol=="function"&&(D[Symbol.iterator]=function(){return this}),D;function E(x){return function(L){return function(O){if(C)throw new TypeError("Generator is already executing.");for(;D&&(D=0,O[0]&&(_=0)),_;)try{if(C=1,b&&(S=2&O[0]?b.return:O[0]?b.throw||((S=b.return)&&S.call(b),0):b.next)&&!(S=S.call(b,O[1])).done)return S;switch(b=0,S&&(O=[2&O[0],S.value]),O[0]){case 0:case 1:S=O;break;case 4:return _.label++,{value:O[1],done:!1};case 5:_.label++,b=O[1],O=[0];continue;case 7:O=_.ops.pop(),_.trys.pop();continue;default:if(S=_.trys,!((S=S.length>0&&S[S.length-1])||O[0]!==6&&O[0]!==2)){_=0;continue}if(O[0]===3&&(!S||O[1]>S[0]&&O[1]<S[3])){_.label=O[1];break}if(O[0]===6&&_.label<S[1]){_.label=S[1],S=O;break}if(S&&_.label<S[2]){_.label=S[2],_.ops.push(O);break}S[2]&&_.ops.pop(),_.trys.pop();continue}O=R.call(m,_)}catch(H){O=[6,H],b=0}finally{C=S=0}if(5&O[0])throw O[1];return{value:O[0]?O[1]:void 0,done:!0}}([x,L])}}};Object.defineProperty(u,"__esModule",{value:!0}),u.file2b64=function(m){return f(this,void 0,void 0,function(){var R,C;return g(this,function(b){return R=new FileReader,C=new Promise(function(S,_){R.addEventListener("load",function(){var D,E=(D=R.result)===null||D===void 0?void 0:D.toString();E?S(E):_("could not convert file to base64")},!1)}),R.readAsDataURL(m),[2,C]})})}},457:(l,u)=>{Object.defineProperty(u,"__esModule",{value:!0}),u.warnAboutOptions=function(f,g){f.maxWidth=f.maxWidth||1e3,f.maxHeight=f.maxHeight||1e3,f.maxWidth&&typeof f.maxWidth!="number"&&(g.warn(`[config error] 'maxWidth' is required to be a "number" (in pixels),
|
211
211
|
received: `.concat(f.maxWidth,`
|
212
212
|
-> using default 1000`)),f.maxWidth=1e3),f.maxHeight&&typeof f.maxHeight!="number"&&(g.warn(`[config error] 'maxHeight' is required to be a "number" (in pixels),
|
213
213
|
received: `.concat(f.maxHeight,`
|
@@ -215,7 +215,7 @@ received: `.concat(f.maxHeight,`
|
|
215
215
|
received: `.concat(f.quality,`
|
216
216
|
-> using default 0.7`)),f.quality=.7),!f.imageType||typeof f.imageType=="string"&&f.imageType.startsWith("image/")||(g.warn(`quill.imageCompressor: [config error] 'imageType' is required be in the form of "image/png" or "image/jpeg" etc ...,
|
217
217
|
received: `.concat(f.imageType,`
|
218
|
-
-> using default image/jpeg`)),f.imageType="image/jpeg"),f.keepImageTypes||(f.keepImageTypes=[]),f.keepImageTypes&&!Array.isArray(f.keepImageTypes)&&(g.warn(`quill.imageCompressor: [config error] 'keepImageTypes' is required to be a "array", received: `.concat(f.keepImageTypes," -> using default []")),f.keepImageTypes=[]),f.ignoreImageTypes||(f.ignoreImageTypes=[]),f.ignoreImageTypes&&!Array.isArray(f.ignoreImageTypes)&&(g.warn(`quill.imageCompressor: [config error] 'ignoreImageTypes' is required to be a "array", received: `.concat(f.ignoreImageTypes," -> using default []")),f.ignoreImageTypes=[]),f.handleOnPaste&&typeof f.handleOnPaste!="boolean"&&(g.warn(`quill.imageCompressor: [config error] 'handlePaste' is required to be a "boolean", received: `.concat(f.ignoreImageTypes," -> using default true")),f.handleOnPaste=!0),f.insertIntoEditor&&typeof f.insertIntoEditor!="function"&&(g.warn(`quill.imageCompressor: [config error] 'insertIntoEditor' is required to be a "function", received: `.concat(f.insertIntoEditor," -> using default undefined")),f.insertIntoEditor=void 0)}},423:function(l,u,f){var g=this&&this.__awaiter||function(E,x,L,O){return new(L||(L=Promise))(function(H,q){function z(X){try{ue(O.next(X))}catch(de){q(de)}}function K(X){try{ue(O.throw(X))}catch(de){q(de)}}function ue(X){var de;X.done?H(X.value):(de=X.value,de instanceof L?de:new L(function(j){j(de)})).then(z,K)}ue((O=O.apply(E,x||[])).next())})},m=this&&this.__generator||function(E,x){var L,O,H,q={label:0,sent:function(){if(1&H[0])throw H[1];return H[1]},trys:[],ops:[]},z=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return z.next=K(0),z.throw=K(1),z.return=K(2),typeof Symbol=="function"&&(z[Symbol.iterator]=function(){return this}),z;function K(ue){return function(X){return function(de){if(L)throw new TypeError("Generator is already executing.");for(;z&&(z=0,de[0]&&(q=0)),q;)try{if(L=1,O&&(H=2&de[0]?O.return:de[0]?O.throw||((H=O.return)&&H.call(O),0):O.next)&&!(H=H.call(O,de[1])).done)return H;switch(O=0,H&&(de=[2&de[0],H.value]),de[0]){case 0:case 1:H=de;break;case 4:return q.label++,{value:de[1],done:!1};case 5:q.label++,O=de[1],de=[0];continue;case 7:de=q.ops.pop(),q.trys.pop();continue;default:if(H=q.trys,!((H=H.length>0&&H[H.length-1])||de[0]!==6&&de[0]!==2)){q=0;continue}if(de[0]===3&&(!H||de[1]>H[0]&&de[1]<H[3])){q.label=de[1];break}if(de[0]===6&&q.label<H[1]){q.label=H[1],H=de;break}if(H&&q.label<H[2]){q.label=H[2],q.ops.push(de);break}H[2]&&q.ops.pop(),q.trys.pop();continue}de=x.call(E,q)}catch(j){de=[6,j],O=0}finally{L=H=0}if(5&de[0])throw de[1];return{value:de[0]?de[1]:void 0,done:!0}}([ue,X])}}};Object.defineProperty(u,"__esModule",{value:!0}),u.imageCompressor=void 0;var R=f(379),w=f(457),b=f(922),S=f(337),_=f(321),D=function(){function E(x,L){var O=this;this.quill=x,this.options=L||{};var H=!!L.debug,q=!!L.suppressErrorLogging;this.Logger=new _.ConsoleLogger(H,q),(0,w.warnAboutOptions)(L,this.Logger),this.imageDrop=new R.ImageDrop(x,function(K){return g(O,void 0,void 0,function(){var ue;return m(this,function(X){switch(X.label){case 0:return this.Logger.log("onImageDrop",{dataUrl:K}),[4,this.downscaleImageFromUrl(K)];case 1:return ue=X.sent(),this.insertToEditor(ue,E.b64toBlob(ue)),[2]}})})},this.Logger,this.options.handleOnPaste!==!1),this.Logger.log("fileChanged",{options:L,quill:x,debug:H});var z=this.quill.getModule("toolbar");z?z.addHandler("image",function(){return O.selectLocalImage()}):this.Logger.error("Quill toolbar module not found! need { toolbar: // options } in Quill.modules for image icon to sit in")}return E.b64toBlob=function(x){for(var L=atob(x.split(",")[1]),O=x.slice(5).split(";")[0],H=new ArrayBuffer(L.length),q=new Uint8Array(H),z=0;z<L.length;z++)q[z]=L.charCodeAt(z);return new Blob([H],{type:O})},E.prototype.selectLocalImage=function(x){var L=this;this.range=this.quill.getSelection(),this.fileHolder=document.createElement("input"),this.fileHolder.setAttribute("type","file"),this.fileHolder.setAttribute("accept","image/*"),this.fileHolder.setAttribute("style","visibility:hidden"),this.fileHolder.onchange=function(){return L.fileChanged().then(function(){return x&&x()})},document.body.appendChild(this.fileHolder),this.fileHolder.click(),window.requestAnimationFrame(function(){L.fileHolder&&document.body.removeChild(L.fileHolder)})},E.prototype.fileChanged=function(x){return g(this,void 0,void 0,function(){var L,O,H,q,z;return m(this,function(K){switch(K.label){case 0:return(L=x||((z=this.fileHolder)===null||z===void 0?void 0:z.files))&&L.length?(O=L[0],this.Logger.log("fileChanged",{file:O}),O?[4,(0,b.file2b64)(O)]:[2]):[2];case 1:return H=K.sent(),[4,this.downscaleImageFromUrl(H)];case 2:return q=K.sent(),this.insertToEditor(q,E.b64toBlob(q)),[2]}})})},E.prototype.downscaleImageFromUrl=function(x){return g(this,void 0,void 0,function(){var L;return m(this,function(O){switch(O.label){case 0:return[4,(0,S.downscaleImage)(this.Logger,x,this.options.maxWidth,this.options.maxHeight,this.options.imageType,this.options.keepImageTypes,this.options.ignoreImageTypes,this.options.quality)];case 1:return L=O.sent(),this.Logger.log("downscaleImageFromUrl",{dataUrl:x,dataUrlCompressed:L}),[2,L]}})})},E.prototype.insertToEditor=function(x,L){if(this.options.insertIntoEditor)this.options.insertIntoEditor(x,L,this.quill);else{this.Logger.log("insertToEditor",{url:x}),this.range=this.quill.getSelection();var O=this.range;if(!O)return;this.logFileSize(x),this.quill.insertEmbed(O.index,"image","".concat(x),"user"),O.index++,this.quill.setSelection(O,"api")}},E.prototype.logFileSize=function(x){var L=(Math.round(3*(x.length-22)/4)/1024).toFixed(0);this.Logger.log("estimated img size: "+L+" kb")},E}();u.imageCompressor=D,window.imageCompressor=D,u.default=D},379:function(l,u,f){var g=this&&this.__awaiter||function(S,_,D,E){return new(D||(D=Promise))(function(x,L){function O(z){try{q(E.next(z))}catch(K){L(K)}}function H(z){try{q(E.throw(z))}catch(K){L(K)}}function q(z){var K;z.done?x(z.value):(K=z.value,K instanceof D?K:new D(function(ue){ue(K)})).then(O,H)}q((E=E.apply(S,_||[])).next())})},m=this&&this.__generator||function(S,_){var D,E,x,L={label:0,sent:function(){if(1&x[0])throw x[1];return x[1]},trys:[],ops:[]},O=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return O.next=H(0),O.throw=H(1),O.return=H(2),typeof Symbol=="function"&&(O[Symbol.iterator]=function(){return this}),O;function H(q){return function(z){return function(K){if(D)throw new TypeError("Generator is already executing.");for(;O&&(O=0,K[0]&&(L=0)),L;)try{if(D=1,E&&(x=2&K[0]?E.return:K[0]?E.throw||((x=E.return)&&x.call(E),0):E.next)&&!(x=x.call(E,K[1])).done)return x;switch(E=0,x&&(K=[2&K[0],x.value]),K[0]){case 0:case 1:x=K;break;case 4:return L.label++,{value:K[1],done:!1};case 5:L.label++,E=K[1],K=[0];continue;case 7:K=L.ops.pop(),L.trys.pop();continue;default:if(x=L.trys,!((x=x.length>0&&x[x.length-1])||K[0]!==6&&K[0]!==2)){L=0;continue}if(K[0]===3&&(!x||K[1]>x[0]&&K[1]<x[3])){L.label=K[1];break}if(K[0]===6&&L.label<x[1]){L.label=x[1],x=K;break}if(x&&L.label<x[2]){L.label=x[2],L.ops.push(K);break}x[2]&&L.ops.pop(),L.trys.pop();continue}K=_.call(S,L)}catch(ue){K=[6,ue],E=0}finally{D=x=0}if(5&K[0])throw K[1];return{value:K[0]?K[1]:void 0,done:!0}}([q,z])}}};Object.defineProperty(u,"__esModule",{value:!0}),u.ImageDrop=void 0;var R=f(922),w=function(){function S(_,D,E,x){var L=this;this.quill=_,this.onNewDataUrl=D,this.logger=E,this.handleOnPaste=x,this.localDrag=!1,this.quill.root.addEventListener("dragstart",function(O){return L.handleDragStart(O)},!1),this.quill.root.addEventListener("dragend",function(O){return L.handleDragEnd(O)},!1),this.quill.root.addEventListener("drop",function(O){return L.handleDrop(O)},!0),this.handleOnPaste&&this.quill.root.addEventListener("paste",function(O){return L.handlePaste(O)},!0)}return S.prototype.handleDragStart=function(_){this.localDrag=!0},S.prototype.handleDragEnd=function(_){this.localDrag=!1},S.prototype.handleDrop=function(_){return g(this,void 0,void 0,function(){var D,E,x,L,O,H,q,z,K,ue;return m(this,function(X){switch(X.label){case 0:return this.localDrag?[2]:(_.preventDefault(),document.caretRangeFromPoint&&(D=document.getSelection(),E=document.caretRangeFromPoint(_.clientX,_.clientY),D&&E&&D.setBaseAndExtent(E.startContainer,E.startOffset,E.startContainer,E.startOffset)),this.logger.log("handleDrop",{evt:_}),x=(q=_.dataTransfer)===null||q===void 0?void 0:q.files,(L=Array.from(x||[]).filter(function(de){return b(de.type)})).length>0?(_.stopPropagation(),this.logger.log("handleDrop","found files",{evt:_,files:x,imageFiles:L}),[4,this.pasteFilesIntoQuill(L)]):[3,2]);case 1:return X.sent(),[2];case 2:return!((z=_.dataTransfer)===null||z===void 0)&&z.items?(_.stopPropagation(),this.logger.log("handleDrop","found items",{evt:_,files:x,imageFiles:L}),[4,this.handleDataTransferList((K=_.dataTransfer)===null||K===void 0?void 0:K.items,_)]):[3,4];case 3:return X.sent(),[2];case 4:return O=(ue=_.dataTransfer)===null||ue===void 0?void 0:ue.getData("URL"),this.logger.log("handleDrop","trying getData('URL')",{draggedUrl:O}),O?[4,fetch(O)]:[3,8];case 5:return[4,X.sent().blob()];case 6:return H=X.sent(),this.logger.log("handleDrop","blob from drag event",{evt:_,files:x,imageFiles:L}),[4,this.pasteFilesIntoQuill([H])];case 7:X.sent(),X.label=8;case 8:return[2]}})})},S.prototype.handlePaste=function(_){return g(this,void 0,void 0,function(){var D;return m(this,function(E){switch(E.label){case 0:return[4,this.handleDataTransferList((D=_.clipboardData)===null||D===void 0?void 0:D.items,_)];case 1:return E.sent(),[2]}})})},S.prototype.handleDataTransferList=function(_,D){return g(this,void 0,void 0,function(){var E,x,L,O;return m(this,function(H){switch(H.label){case 0:return E=Array.from(_||[]),x=E.filter(function(q){return q.kind==="file"&&b(q.type)}),L=E.map(function(q){return{type:q.type,kind:q.kind}}),this.logger.log("handleDataTransferList",{fileTypes:L,imageCount:x.length}),x.length?(D.preventDefault(),D.stopPropagation(),O=x.map(function(q){return q.getAsFile()}),[4,this.pasteFilesIntoQuill(O)]):[2];case 1:return H.sent(),[2]}})})},S.prototype.pasteFilesIntoQuill=function(_){return g(this,void 0,void 0,function(){var D=this;return m(this,function(E){switch(E.label){case 0:return this.logger.log(" pasteFilesIntoQuill","pasting ".concat(_.length," images...")),[4,Promise.all(_.map(function(x,L){return g(D,void 0,void 0,function(){var O;return m(this,function(H){switch(H.label){case 0:return x?[4,(0,R.file2b64)(x)]:[2];case 1:return O=H.sent(),this.logger.log(" pasteFilesIntoQuill","pasting image (".concat(L,")")),this.onNewDataUrl(O),[2]}})})}))];case 1:return E.sent(),this.logger.log(" pasteFilesIntoQuill","done"),[2]}})})},S}();function b(S){return!!S.match(/^image\/(gif|jpe?g|a?png|svg|webp|bmp)/i)}u.ImageDrop=w}},n={},i=function l(u){var f=n[u];if(f!==void 0)return f.exports;var g=n[u]={exports:{}};return t[u].call(g.exports,g,g.exports,l),g.exports}(423);return i})())}(hp)),hp.exports}var CO=SO();const wO=al(CO);var Gd={exports:{}},AO=Gd.exports,dy;function TO(){return dy||(dy=1,function(r,e){(function(t,n){r.exports=n()})(AO,function(){function t(_){if(!(typeof window>"u")){var D=document.createElement("style");return D.setAttribute("media","screen"),D.innerHTML=_,document.head.appendChild(D),_}}/*! *****************************************************************************
|
218
|
+
-> using default image/jpeg`)),f.imageType="image/jpeg"),f.keepImageTypes||(f.keepImageTypes=[]),f.keepImageTypes&&!Array.isArray(f.keepImageTypes)&&(g.warn(`quill.imageCompressor: [config error] 'keepImageTypes' is required to be a "array", received: `.concat(f.keepImageTypes," -> using default []")),f.keepImageTypes=[]),f.ignoreImageTypes||(f.ignoreImageTypes=[]),f.ignoreImageTypes&&!Array.isArray(f.ignoreImageTypes)&&(g.warn(`quill.imageCompressor: [config error] 'ignoreImageTypes' is required to be a "array", received: `.concat(f.ignoreImageTypes," -> using default []")),f.ignoreImageTypes=[]),f.handleOnPaste&&typeof f.handleOnPaste!="boolean"&&(g.warn(`quill.imageCompressor: [config error] 'handlePaste' is required to be a "boolean", received: `.concat(f.ignoreImageTypes," -> using default true")),f.handleOnPaste=!0),f.insertIntoEditor&&typeof f.insertIntoEditor!="function"&&(g.warn(`quill.imageCompressor: [config error] 'insertIntoEditor' is required to be a "function", received: `.concat(f.insertIntoEditor," -> using default undefined")),f.insertIntoEditor=void 0)}},423:function(l,u,f){var g=this&&this.__awaiter||function(E,x,L,O){return new(L||(L=Promise))(function(H,q){function z(X){try{ue(O.next(X))}catch(de){q(de)}}function K(X){try{ue(O.throw(X))}catch(de){q(de)}}function ue(X){var de;X.done?H(X.value):(de=X.value,de instanceof L?de:new L(function(j){j(de)})).then(z,K)}ue((O=O.apply(E,x||[])).next())})},m=this&&this.__generator||function(E,x){var L,O,H,q={label:0,sent:function(){if(1&H[0])throw H[1];return H[1]},trys:[],ops:[]},z=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return z.next=K(0),z.throw=K(1),z.return=K(2),typeof Symbol=="function"&&(z[Symbol.iterator]=function(){return this}),z;function K(ue){return function(X){return function(de){if(L)throw new TypeError("Generator is already executing.");for(;z&&(z=0,de[0]&&(q=0)),q;)try{if(L=1,O&&(H=2&de[0]?O.return:de[0]?O.throw||((H=O.return)&&H.call(O),0):O.next)&&!(H=H.call(O,de[1])).done)return H;switch(O=0,H&&(de=[2&de[0],H.value]),de[0]){case 0:case 1:H=de;break;case 4:return q.label++,{value:de[1],done:!1};case 5:q.label++,O=de[1],de=[0];continue;case 7:de=q.ops.pop(),q.trys.pop();continue;default:if(H=q.trys,!((H=H.length>0&&H[H.length-1])||de[0]!==6&&de[0]!==2)){q=0;continue}if(de[0]===3&&(!H||de[1]>H[0]&&de[1]<H[3])){q.label=de[1];break}if(de[0]===6&&q.label<H[1]){q.label=H[1],H=de;break}if(H&&q.label<H[2]){q.label=H[2],q.ops.push(de);break}H[2]&&q.ops.pop(),q.trys.pop();continue}de=x.call(E,q)}catch(j){de=[6,j],O=0}finally{L=H=0}if(5&de[0])throw de[1];return{value:de[0]?de[1]:void 0,done:!0}}([ue,X])}}};Object.defineProperty(u,"__esModule",{value:!0}),u.imageCompressor=void 0;var R=f(379),C=f(457),b=f(922),S=f(337),_=f(321),D=function(){function E(x,L){var O=this;this.quill=x,this.options=L||{};var H=!!L.debug,q=!!L.suppressErrorLogging;this.Logger=new _.ConsoleLogger(H,q),(0,C.warnAboutOptions)(L,this.Logger),this.imageDrop=new R.ImageDrop(x,function(K){return g(O,void 0,void 0,function(){var ue;return m(this,function(X){switch(X.label){case 0:return this.Logger.log("onImageDrop",{dataUrl:K}),[4,this.downscaleImageFromUrl(K)];case 1:return ue=X.sent(),this.insertToEditor(ue,E.b64toBlob(ue)),[2]}})})},this.Logger,this.options.handleOnPaste!==!1),this.Logger.log("fileChanged",{options:L,quill:x,debug:H});var z=this.quill.getModule("toolbar");z?z.addHandler("image",function(){return O.selectLocalImage()}):this.Logger.error("Quill toolbar module not found! need { toolbar: // options } in Quill.modules for image icon to sit in")}return E.b64toBlob=function(x){for(var L=atob(x.split(",")[1]),O=x.slice(5).split(";")[0],H=new ArrayBuffer(L.length),q=new Uint8Array(H),z=0;z<L.length;z++)q[z]=L.charCodeAt(z);return new Blob([H],{type:O})},E.prototype.selectLocalImage=function(x){var L=this;this.range=this.quill.getSelection(),this.fileHolder=document.createElement("input"),this.fileHolder.setAttribute("type","file"),this.fileHolder.setAttribute("accept","image/*"),this.fileHolder.setAttribute("style","visibility:hidden"),this.fileHolder.onchange=function(){return L.fileChanged().then(function(){return x&&x()})},document.body.appendChild(this.fileHolder),this.fileHolder.click(),window.requestAnimationFrame(function(){L.fileHolder&&document.body.removeChild(L.fileHolder)})},E.prototype.fileChanged=function(x){return g(this,void 0,void 0,function(){var L,O,H,q,z;return m(this,function(K){switch(K.label){case 0:return(L=x||((z=this.fileHolder)===null||z===void 0?void 0:z.files))&&L.length?(O=L[0],this.Logger.log("fileChanged",{file:O}),O?[4,(0,b.file2b64)(O)]:[2]):[2];case 1:return H=K.sent(),[4,this.downscaleImageFromUrl(H)];case 2:return q=K.sent(),this.insertToEditor(q,E.b64toBlob(q)),[2]}})})},E.prototype.downscaleImageFromUrl=function(x){return g(this,void 0,void 0,function(){var L;return m(this,function(O){switch(O.label){case 0:return[4,(0,S.downscaleImage)(this.Logger,x,this.options.maxWidth,this.options.maxHeight,this.options.imageType,this.options.keepImageTypes,this.options.ignoreImageTypes,this.options.quality)];case 1:return L=O.sent(),this.Logger.log("downscaleImageFromUrl",{dataUrl:x,dataUrlCompressed:L}),[2,L]}})})},E.prototype.insertToEditor=function(x,L){if(this.options.insertIntoEditor)this.options.insertIntoEditor(x,L,this.quill);else{this.Logger.log("insertToEditor",{url:x}),this.range=this.quill.getSelection();var O=this.range;if(!O)return;this.logFileSize(x),this.quill.insertEmbed(O.index,"image","".concat(x),"user"),O.index++,this.quill.setSelection(O,"api")}},E.prototype.logFileSize=function(x){var L=(Math.round(3*(x.length-22)/4)/1024).toFixed(0);this.Logger.log("estimated img size: "+L+" kb")},E}();u.imageCompressor=D,window.imageCompressor=D,u.default=D},379:function(l,u,f){var g=this&&this.__awaiter||function(S,_,D,E){return new(D||(D=Promise))(function(x,L){function O(z){try{q(E.next(z))}catch(K){L(K)}}function H(z){try{q(E.throw(z))}catch(K){L(K)}}function q(z){var K;z.done?x(z.value):(K=z.value,K instanceof D?K:new D(function(ue){ue(K)})).then(O,H)}q((E=E.apply(S,_||[])).next())})},m=this&&this.__generator||function(S,_){var D,E,x,L={label:0,sent:function(){if(1&x[0])throw x[1];return x[1]},trys:[],ops:[]},O=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return O.next=H(0),O.throw=H(1),O.return=H(2),typeof Symbol=="function"&&(O[Symbol.iterator]=function(){return this}),O;function H(q){return function(z){return function(K){if(D)throw new TypeError("Generator is already executing.");for(;O&&(O=0,K[0]&&(L=0)),L;)try{if(D=1,E&&(x=2&K[0]?E.return:K[0]?E.throw||((x=E.return)&&x.call(E),0):E.next)&&!(x=x.call(E,K[1])).done)return x;switch(E=0,x&&(K=[2&K[0],x.value]),K[0]){case 0:case 1:x=K;break;case 4:return L.label++,{value:K[1],done:!1};case 5:L.label++,E=K[1],K=[0];continue;case 7:K=L.ops.pop(),L.trys.pop();continue;default:if(x=L.trys,!((x=x.length>0&&x[x.length-1])||K[0]!==6&&K[0]!==2)){L=0;continue}if(K[0]===3&&(!x||K[1]>x[0]&&K[1]<x[3])){L.label=K[1];break}if(K[0]===6&&L.label<x[1]){L.label=x[1],x=K;break}if(x&&L.label<x[2]){L.label=x[2],L.ops.push(K);break}x[2]&&L.ops.pop(),L.trys.pop();continue}K=_.call(S,L)}catch(ue){K=[6,ue],E=0}finally{D=x=0}if(5&K[0])throw K[1];return{value:K[0]?K[1]:void 0,done:!0}}([q,z])}}};Object.defineProperty(u,"__esModule",{value:!0}),u.ImageDrop=void 0;var R=f(922),C=function(){function S(_,D,E,x){var L=this;this.quill=_,this.onNewDataUrl=D,this.logger=E,this.handleOnPaste=x,this.localDrag=!1,this.quill.root.addEventListener("dragstart",function(O){return L.handleDragStart(O)},!1),this.quill.root.addEventListener("dragend",function(O){return L.handleDragEnd(O)},!1),this.quill.root.addEventListener("drop",function(O){return L.handleDrop(O)},!0),this.handleOnPaste&&this.quill.root.addEventListener("paste",function(O){return L.handlePaste(O)},!0)}return S.prototype.handleDragStart=function(_){this.localDrag=!0},S.prototype.handleDragEnd=function(_){this.localDrag=!1},S.prototype.handleDrop=function(_){return g(this,void 0,void 0,function(){var D,E,x,L,O,H,q,z,K,ue;return m(this,function(X){switch(X.label){case 0:return this.localDrag?[2]:(_.preventDefault(),document.caretRangeFromPoint&&(D=document.getSelection(),E=document.caretRangeFromPoint(_.clientX,_.clientY),D&&E&&D.setBaseAndExtent(E.startContainer,E.startOffset,E.startContainer,E.startOffset)),this.logger.log("handleDrop",{evt:_}),x=(q=_.dataTransfer)===null||q===void 0?void 0:q.files,(L=Array.from(x||[]).filter(function(de){return b(de.type)})).length>0?(_.stopPropagation(),this.logger.log("handleDrop","found files",{evt:_,files:x,imageFiles:L}),[4,this.pasteFilesIntoQuill(L)]):[3,2]);case 1:return X.sent(),[2];case 2:return!((z=_.dataTransfer)===null||z===void 0)&&z.items?(_.stopPropagation(),this.logger.log("handleDrop","found items",{evt:_,files:x,imageFiles:L}),[4,this.handleDataTransferList((K=_.dataTransfer)===null||K===void 0?void 0:K.items,_)]):[3,4];case 3:return X.sent(),[2];case 4:return O=(ue=_.dataTransfer)===null||ue===void 0?void 0:ue.getData("URL"),this.logger.log("handleDrop","trying getData('URL')",{draggedUrl:O}),O?[4,fetch(O)]:[3,8];case 5:return[4,X.sent().blob()];case 6:return H=X.sent(),this.logger.log("handleDrop","blob from drag event",{evt:_,files:x,imageFiles:L}),[4,this.pasteFilesIntoQuill([H])];case 7:X.sent(),X.label=8;case 8:return[2]}})})},S.prototype.handlePaste=function(_){return g(this,void 0,void 0,function(){var D;return m(this,function(E){switch(E.label){case 0:return[4,this.handleDataTransferList((D=_.clipboardData)===null||D===void 0?void 0:D.items,_)];case 1:return E.sent(),[2]}})})},S.prototype.handleDataTransferList=function(_,D){return g(this,void 0,void 0,function(){var E,x,L,O;return m(this,function(H){switch(H.label){case 0:return E=Array.from(_||[]),x=E.filter(function(q){return q.kind==="file"&&b(q.type)}),L=E.map(function(q){return{type:q.type,kind:q.kind}}),this.logger.log("handleDataTransferList",{fileTypes:L,imageCount:x.length}),x.length?(D.preventDefault(),D.stopPropagation(),O=x.map(function(q){return q.getAsFile()}),[4,this.pasteFilesIntoQuill(O)]):[2];case 1:return H.sent(),[2]}})})},S.prototype.pasteFilesIntoQuill=function(_){return g(this,void 0,void 0,function(){var D=this;return m(this,function(E){switch(E.label){case 0:return this.logger.log(" pasteFilesIntoQuill","pasting ".concat(_.length," images...")),[4,Promise.all(_.map(function(x,L){return g(D,void 0,void 0,function(){var O;return m(this,function(H){switch(H.label){case 0:return x?[4,(0,R.file2b64)(x)]:[2];case 1:return O=H.sent(),this.logger.log(" pasteFilesIntoQuill","pasting image (".concat(L,")")),this.onNewDataUrl(O),[2]}})})}))];case 1:return E.sent(),this.logger.log(" pasteFilesIntoQuill","done"),[2]}})})},S}();function b(S){return!!S.match(/^image\/(gif|jpe?g|a?png|svg|webp|bmp)/i)}u.ImageDrop=C}},n={},i=function l(u){var f=n[u];if(f!==void 0)return f.exports;var g=n[u]={exports:{}};return t[u].call(g.exports,g,g.exports,l),g.exports}(423);return i})())}(hp)),hp.exports}var CO=SO();const wO=al(CO);var Gd={exports:{}},AO=Gd.exports,dy;function TO(){return dy||(dy=1,function(r,e){(function(t,n){r.exports=n()})(AO,function(){function t(_){if(!(typeof window>"u")){var D=document.createElement("style");return D.setAttribute("media","screen"),D.innerHTML=_,document.head.appendChild(D),_}}/*! *****************************************************************************
|
219
219
|
Copyright (c) Microsoft Corporation.
|
220
220
|
|
221
221
|
Permission to use, copy, modify, and/or distribute this software for any
|
@@ -344,15 +344,15 @@ received: `.concat(f.imageType,`
|
|
344
344
|
<a class="btn" data-type="align" data-styles="">{4}</a>
|
345
345
|
</div>
|
346
346
|
</div>
|
347
|
-
`,R=function(){function _(D,E,x,L){this.resizer=null,this.startResizePosition=null,this.i18n=new u((L==null?void 0:L.locale)||f),this.options=L,this.resizeTarget=D,D.originSize||(D.originSize={width:D.clientWidth,height:D.clientHeight}),this.editor=x,this.container=E,this.initResizer(),this.positionResizerToTarget(D),this.resizing=this.resizing.bind(this),this.endResize=this.endResize.bind(this),this.startResize=this.startResize.bind(this),this.toolbarClick=this.toolbarClick.bind(this),this.toolbarInputChange=this.toolbarInputChange.bind(this),this.onScroll=this.onScroll.bind(this),this.bindEvents()}return _.prototype.initResizer=function(){var D=this.container.querySelector("#editor-resizer");D||(D=document.createElement("div"),D.setAttribute("id","editor-resizer"),D.innerHTML=g(m,this.i18n.findLabel("altTip"),this.i18n.findLabel("floatLeft"),this.i18n.findLabel("center"),this.i18n.findLabel("floatRight"),this.i18n.findLabel("restore"),this.i18n.findLabel("inputTip")),this.container.appendChild(D)),this.resizer=D},_.prototype.positionResizerToTarget=function(D){this.resizer!==null&&(this.resizer.style.setProperty("left",D.offsetLeft+"px"),this.resizer.style.setProperty("top",D.offsetTop-this.editor.scrollTop+"px"),this.resizer.style.setProperty("width",D.clientWidth+"px"),this.resizer.style.setProperty("height",D.clientHeight+"px"))},_.prototype.bindEvents=function(){this.resizer!==null&&(this.resizer.addEventListener("mousedown",this.startResize),this.resizer.addEventListener("click",this.toolbarClick),this.resizer.addEventListener("change",this.toolbarInputChange)),window.addEventListener("mouseup",this.endResize),window.addEventListener("mousemove",this.resizing),this.editor.addEventListener("scroll",this.onScroll)},_.prototype.onScroll=function(){this.positionResizerToTarget(this.resizeTarget)},_.prototype._setStylesForToolbar=function(D,E){var x,L="_styles_"+D,O=this.resizeTarget.style,H=this.resizeTarget[L];O.cssText=O.cssText.replaceAll(" ","").replace(H,"")+(";"+E),this.resizeTarget[L]=E,this.positionResizerToTarget(this.resizeTarget),(x=this.options)===null||x===void 0||x.onChange(this.resizeTarget)},_.prototype.toolbarInputChange=function(D){var E,x=D.target,L=(E=x==null?void 0:x.dataset)===null||E===void 0?void 0:E.type,O=x.value;L&&Number(O)&&this._setStylesForToolbar(L,"width: "+Number(O)+"%;")},_.prototype.toolbarClick=function(D){var E,x,L=D.target,O=(E=L==null?void 0:L.dataset)===null||E===void 0?void 0:E.type;O&&L.classList.contains("btn")&&this._setStylesForToolbar(O,(x=L==null?void 0:L.dataset)===null||x===void 0?void 0:x.styles)},_.prototype.startResize=function(D){var E=D.target;E.classList.contains("handler")&&D.which===1&&(this.startResizePosition={left:D.clientX,top:D.clientY,width:this.resizeTarget.clientWidth,height:this.resizeTarget.clientHeight})},_.prototype.endResize=function(){var D;this.startResizePosition=null,(D=this.options)===null||D===void 0||D.onChange(this.resizeTarget)},_.prototype.resizing=function(D){if(this.startResizePosition){var E=D.clientX-this.startResizePosition.left,x=D.clientY-this.startResizePosition.top,L=this.startResizePosition.width,O=this.startResizePosition.height;if(L+=E,O+=x,D.altKey){var H=this.resizeTarget.originSize,q=H.height/H.width;O=q*L}this.resizeTarget.style.setProperty("width",Math.max(L,30)+"px"),this.resizeTarget.style.setProperty("height",Math.max(O,30)+"px"),this.positionResizerToTarget(this.resizeTarget)}},_.prototype.destory=function(){this.container.removeChild(this.resizer),window.removeEventListener("mouseup",this.endResize),window.removeEventListener("mousemove",this.resizing),this.editor.removeEventListener("scroll",this.onScroll),this.resizer=null},_}(),w=function(){function _(D,E){this.element=D,this.cb=E,this.hasTracked=!1}return _}(),b=function(){function _(){}return _.track=function(D,E){this.iframes.push(new w(D,E)),this.interval||(this.interval=setInterval(function(){_.checkClick()},this.resolution))},_.checkClick=function(){if(document.activeElement){var D=document.activeElement;for(var E in this.iframes)D===this.iframes[E].element?this.iframes[E].hasTracked==!1&&(this.iframes[E].cb.apply(window,[]),this.iframes[E].hasTracked=!0):this.iframes[E].hasTracked=!1}},_.resolution=200,_.iframes=[],_.interval=null,_}();function S(_,D){var E=_.root,x,L;function O(){var H=_.getContents().constructor,q=new H().retain(1);_.updateContents(q)}E.addEventListener("click",function(H){var q=H.target;H.target&&["img","video"].includes(q.tagName.toLowerCase())&&(x=q,L=new R(q,E.parentElement,E,l(l({},D),{onChange:O})))}),_.on("text-change",function(H,q){E.querySelectorAll("iframe").forEach(function(z){b.track(z,function(){x=z,L=new R(z,E.parentElement,E,l(l({},D),{onChange:O}))})})}),document.addEventListener("mousedown",function(H){var q,z,K,ue=H.target;ue!==x&&!(!((z=(q=L==null?void 0:L.resizer)===null||q===void 0?void 0:q.contains)===null||z===void 0)&&z.call(q,ue))&&((K=L==null?void 0:L.destory)===null||K===void 0||K.call(L),L=null,x=null)},{capture:!0})}return S})}(Gd)),Gd.exports}var EO=TO();const kO=al(EO);var pp,hy;function RO(){if(hy)return pp;hy=1;function r(){this.__data__=[],this.size=0}return pp=r,pp}var gp,py;function rS(){if(py)return gp;py=1;function r(e,t){return e===t||e!==e&&t!==t}return gp=r,gp}var mp,gy;function vh(){if(gy)return mp;gy=1;var r=rS();function e(t,n){for(var i=t.length;i--;)if(r(t[i][0],n))return i;return-1}return mp=e,mp}var vp,my;function IO(){if(my)return vp;my=1;var r=vh(),e=Array.prototype,t=e.splice;function n(i){var l=this.__data__,u=r(l,i);if(u<0)return!1;var f=l.length-1;return u==f?l.pop():t.call(l,u,1),--this.size,!0}return vp=n,vp}var yp,vy;function LO(){if(vy)return yp;vy=1;var r=vh();function e(t){var n=this.__data__,i=r(n,t);return i<0?void 0:n[i][1]}return yp=e,yp}var bp,yy;function MO(){if(yy)return bp;yy=1;var r=vh();function e(t){return r(this.__data__,t)>-1}return bp=e,bp}var _p,by;function DO(){if(by)return _p;by=1;var r=vh();function e(t,n){var i=this.__data__,l=r(i,t);return l<0?(++this.size,i.push([t,n])):i[l][1]=n,this}return _p=e,_p}var xp,_y;function yh(){if(_y)return xp;_y=1;var r=RO(),e=IO(),t=LO(),n=MO(),i=DO();function l(u){var f=-1,g=u==null?0:u.length;for(this.clear();++f<g;){var m=u[f];this.set(m[0],m[1])}}return l.prototype.clear=r,l.prototype.delete=e,l.prototype.get=t,l.prototype.has=n,l.prototype.set=i,xp=l,xp}var Sp,xy;function OO(){if(xy)return Sp;xy=1;var r=yh();function e(){this.__data__=new r,this.size=0}return Sp=e,Sp}var Cp,Sy;function PO(){if(Sy)return Cp;Sy=1;function r(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}return Cp=r,Cp}var wp,Cy;function NO(){if(Cy)return wp;Cy=1;function r(e){return this.__data__.get(e)}return wp=r,wp}var Ap,wy;function FO(){if(wy)return Ap;wy=1;function r(e){return this.__data__.has(e)}return Ap=r,Ap}var Tp,Ay;function nS(){if(Ay)return Tp;Ay=1;var r=typeof bi=="object"&&bi&&bi.Object===Object&&bi;return Tp=r,Tp}var Ep,Ty;function ul(){if(Ty)return Ep;Ty=1;var r=nS(),e=typeof self=="object"&&self&&self.Object===Object&&self,t=r||e||Function("return this")();return Ep=t,Ep}var kp,Ey;function Hm(){if(Ey)return kp;Ey=1;var r=ul(),e=r.Symbol;return kp=e,kp}var Rp,ky;function jO(){if(ky)return Rp;ky=1;var r=Hm(),e=Object.prototype,t=e.hasOwnProperty,n=e.toString,i=r?r.toStringTag:void 0;function l(u){var f=t.call(u,i),g=u[i];try{u[i]=void 0;var m=!0}catch{}var R=n.call(u);return m&&(f?u[i]=g:delete u[i]),R}return Rp=l,Rp}var Ip,Ry;function BO(){if(Ry)return Ip;Ry=1;var r=Object.prototype,e=r.toString;function t(n){return e.call(n)}return Ip=t,Ip}var Lp,Iy;function bh(){if(Iy)return Lp;Iy=1;var r=Hm(),e=jO(),t=BO(),n="[object Null]",i="[object Undefined]",l=r?r.toStringTag:void 0;function u(f){return f==null?f===void 0?i:n:l&&l in Object(f)?e(f):t(f)}return Lp=u,Lp}var Mp,Ly;function iS(){if(Ly)return Mp;Ly=1;function r(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}return Mp=r,Mp}var Dp,My;function oS(){if(My)return Dp;My=1;var r=bh(),e=iS(),t="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",l="[object Proxy]";function u(f){if(!e(f))return!1;var g=r(f);return g==n||g==i||g==t||g==l}return Dp=u,Dp}var Op,Dy;function HO(){if(Dy)return Op;Dy=1;var r=ul(),e=r["__core-js_shared__"];return Op=e,Op}var Pp,Oy;function qO(){if(Oy)return Pp;Oy=1;var r=HO(),e=function(){var n=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function t(n){return!!e&&e in n}return Pp=t,Pp}var Np,Py;function sS(){if(Py)return Np;Py=1;var r=Function.prototype,e=r.toString;function t(n){if(n!=null){try{return e.call(n)}catch{}try{return n+""}catch{}}return""}return Np=t,Np}var Fp,Ny;function zO(){if(Ny)return Fp;Ny=1;var r=oS(),e=qO(),t=iS(),n=sS(),i=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,u=Function.prototype,f=Object.prototype,g=u.toString,m=f.hasOwnProperty,R=RegExp("^"+g.call(m).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function w(b){if(!t(b)||e(b))return!1;var S=r(b)?R:l;return S.test(n(b))}return Fp=w,Fp}var jp,Fy;function $O(){if(Fy)return jp;Fy=1;function r(e,t){return e==null?void 0:e[t]}return jp=r,jp}var Bp,jy;function rf(){if(jy)return Bp;jy=1;var r=zO(),e=$O();function t(n,i){var l=e(n,i);return r(l)?l:void 0}return Bp=t,Bp}var Hp,By;function qm(){if(By)return Hp;By=1;var r=rf(),e=ul(),t=r(e,"Map");return Hp=t,Hp}var qp,Hy;function _h(){if(Hy)return qp;Hy=1;var r=rf(),e=r(Object,"create");return qp=e,qp}var zp,qy;function UO(){if(qy)return zp;qy=1;var r=_h();function e(){this.__data__=r?r(null):{},this.size=0}return zp=e,zp}var $p,zy;function WO(){if(zy)return $p;zy=1;function r(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}return $p=r,$p}var Up,$y;function VO(){if($y)return Up;$y=1;var r=_h(),e="__lodash_hash_undefined__",t=Object.prototype,n=t.hasOwnProperty;function i(l){var u=this.__data__;if(r){var f=u[l];return f===e?void 0:f}return n.call(u,l)?u[l]:void 0}return Up=i,Up}var Wp,Uy;function GO(){if(Uy)return Wp;Uy=1;var r=_h(),e=Object.prototype,t=e.hasOwnProperty;function n(i){var l=this.__data__;return r?l[i]!==void 0:t.call(l,i)}return Wp=n,Wp}var Vp,Wy;function ZO(){if(Wy)return Vp;Wy=1;var r=_h(),e="__lodash_hash_undefined__";function t(n,i){var l=this.__data__;return this.size+=this.has(n)?0:1,l[n]=r&&i===void 0?e:i,this}return Vp=t,Vp}var Gp,Vy;function KO(){if(Vy)return Gp;Vy=1;var r=UO(),e=WO(),t=VO(),n=GO(),i=ZO();function l(u){var f=-1,g=u==null?0:u.length;for(this.clear();++f<g;){var m=u[f];this.set(m[0],m[1])}}return l.prototype.clear=r,l.prototype.delete=e,l.prototype.get=t,l.prototype.has=n,l.prototype.set=i,Gp=l,Gp}var Zp,Gy;function YO(){if(Gy)return Zp;Gy=1;var r=KO(),e=yh(),t=qm();function n(){this.size=0,this.__data__={hash:new r,map:new(t||e),string:new r}}return Zp=n,Zp}var Kp,Zy;function XO(){if(Zy)return Kp;Zy=1;function r(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}return Kp=r,Kp}var Yp,Ky;function xh(){if(Ky)return Yp;Ky=1;var r=XO();function e(t,n){var i=t.__data__;return r(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Yp=e,Yp}var Xp,Yy;function JO(){if(Yy)return Xp;Yy=1;var r=xh();function e(t){var n=r(this,t).delete(t);return this.size-=n?1:0,n}return Xp=e,Xp}var Jp,Xy;function QO(){if(Xy)return Jp;Xy=1;var r=xh();function e(t){return r(this,t).get(t)}return Jp=e,Jp}var Qp,Jy;function eP(){if(Jy)return Qp;Jy=1;var r=xh();function e(t){return r(this,t).has(t)}return Qp=e,Qp}var eg,Qy;function tP(){if(Qy)return eg;Qy=1;var r=xh();function e(t,n){var i=r(this,t),l=i.size;return i.set(t,n),this.size+=i.size==l?0:1,this}return eg=e,eg}var tg,eb;function aS(){if(eb)return tg;eb=1;var r=YO(),e=JO(),t=QO(),n=eP(),i=tP();function l(u){var f=-1,g=u==null?0:u.length;for(this.clear();++f<g;){var m=u[f];this.set(m[0],m[1])}}return l.prototype.clear=r,l.prototype.delete=e,l.prototype.get=t,l.prototype.has=n,l.prototype.set=i,tg=l,tg}var rg,tb;function rP(){if(tb)return rg;tb=1;var r=yh(),e=qm(),t=aS(),n=200;function i(l,u){var f=this.__data__;if(f instanceof r){var g=f.__data__;if(!e||g.length<n-1)return g.push([l,u]),this.size=++f.size,this;f=this.__data__=new t(g)}return f.set(l,u),this.size=f.size,this}return rg=i,rg}var ng,rb;function nP(){if(rb)return ng;rb=1;var r=yh(),e=OO(),t=PO(),n=NO(),i=FO(),l=rP();function u(f){var g=this.__data__=new r(f);this.size=g.size}return u.prototype.clear=e,u.prototype.delete=t,u.prototype.get=n,u.prototype.has=i,u.prototype.set=l,ng=u,ng}var ig,nb;function iP(){if(nb)return ig;nb=1;var r="__lodash_hash_undefined__";function e(t){return this.__data__.set(t,r),this}return ig=e,ig}var og,ib;function oP(){if(ib)return og;ib=1;function r(e){return this.__data__.has(e)}return og=r,og}var sg,ob;function sP(){if(ob)return sg;ob=1;var r=aS(),e=iP(),t=oP();function n(i){var l=-1,u=i==null?0:i.length;for(this.__data__=new r;++l<u;)this.add(i[l])}return n.prototype.add=n.prototype.push=e,n.prototype.has=t,sg=n,sg}var ag,sb;function aP(){if(sb)return ag;sb=1;function r(e,t){for(var n=-1,i=e==null?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}return ag=r,ag}var lg,ab;function lP(){if(ab)return lg;ab=1;function r(e,t){return e.has(t)}return lg=r,lg}var cg,lb;function lS(){if(lb)return cg;lb=1;var r=sP(),e=aP(),t=lP(),n=1,i=2;function l(u,f,g,m,R,w){var b=g&n,S=u.length,_=f.length;if(S!=_&&!(b&&_>S))return!1;var D=w.get(u),E=w.get(f);if(D&&E)return D==f&&E==u;var x=-1,L=!0,O=g&i?new r:void 0;for(w.set(u,f),w.set(f,u);++x<S;){var H=u[x],q=f[x];if(m)var z=b?m(q,H,x,f,u,w):m(H,q,x,u,f,w);if(z!==void 0){if(z)continue;L=!1;break}if(O){if(!e(f,function(K,ue){if(!t(O,ue)&&(H===K||R(H,K,g,m,w)))return O.push(ue)})){L=!1;break}}else if(!(H===q||R(H,q,g,m,w))){L=!1;break}}return w.delete(u),w.delete(f),L}return cg=l,cg}var ug,cb;function cP(){if(cb)return ug;cb=1;var r=ul(),e=r.Uint8Array;return ug=e,ug}var fg,ub;function uP(){if(ub)return fg;ub=1;function r(e){var t=-1,n=Array(e.size);return e.forEach(function(i,l){n[++t]=[l,i]}),n}return fg=r,fg}var dg,fb;function fP(){if(fb)return dg;fb=1;function r(e){var t=-1,n=Array(e.size);return e.forEach(function(i){n[++t]=i}),n}return dg=r,dg}var hg,db;function dP(){if(db)return hg;db=1;var r=Hm(),e=cP(),t=rS(),n=lS(),i=uP(),l=fP(),u=1,f=2,g="[object Boolean]",m="[object Date]",R="[object Error]",w="[object Map]",b="[object Number]",S="[object RegExp]",_="[object Set]",D="[object String]",E="[object Symbol]",x="[object ArrayBuffer]",L="[object DataView]",O=r?r.prototype:void 0,H=O?O.valueOf:void 0;function q(z,K,ue,X,de,j,re){switch(ue){case L:if(z.byteLength!=K.byteLength||z.byteOffset!=K.byteOffset)return!1;z=z.buffer,K=K.buffer;case x:return!(z.byteLength!=K.byteLength||!j(new e(z),new e(K)));case g:case m:case b:return t(+z,+K);case R:return z.name==K.name&&z.message==K.message;case S:case D:return z==K+"";case w:var J=i;case _:var Q=X&u;if(J||(J=l),z.size!=K.size&&!Q)return!1;var he=re.get(z);if(he)return he==K;X|=f,re.set(z,K);var me=n(J(z),J(K),X,de,j,re);return re.delete(z),me;case E:if(H)return H.call(z)==H.call(K)}return!1}return hg=q,hg}var pg,hb;function hP(){if(hb)return pg;hb=1;function r(e,t){for(var n=-1,i=t.length,l=e.length;++n<i;)e[l+n]=t[n];return e}return pg=r,pg}var gg,pb;function zm(){if(pb)return gg;pb=1;var r=Array.isArray;return gg=r,gg}var mg,gb;function pP(){if(gb)return mg;gb=1;var r=hP(),e=zm();function t(n,i,l){var u=i(n);return e(n)?u:r(u,l(n))}return mg=t,mg}var vg,mb;function gP(){if(mb)return vg;mb=1;function r(e,t){for(var n=-1,i=e==null?0:e.length,l=0,u=[];++n<i;){var f=e[n];t(f,n,e)&&(u[l++]=f)}return u}return vg=r,vg}var yg,vb;function mP(){if(vb)return yg;vb=1;function r(){return[]}return yg=r,yg}var bg,yb;function vP(){if(yb)return bg;yb=1;var r=gP(),e=mP(),t=Object.prototype,n=t.propertyIsEnumerable,i=Object.getOwnPropertySymbols,l=i?function(u){return u==null?[]:(u=Object(u),r(i(u),function(f){return n.call(u,f)}))}:e;return bg=l,bg}var _g,bb;function yP(){if(bb)return _g;bb=1;function r(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}return _g=r,_g}var xg,_b;function Sh(){if(_b)return xg;_b=1;function r(e){return e!=null&&typeof e=="object"}return xg=r,xg}var Sg,xb;function bP(){if(xb)return Sg;xb=1;var r=bh(),e=Sh(),t="[object Arguments]";function n(i){return e(i)&&r(i)==t}return Sg=n,Sg}var Cg,Sb;function _P(){if(Sb)return Cg;Sb=1;var r=bP(),e=Sh(),t=Object.prototype,n=t.hasOwnProperty,i=t.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(u){return e(u)&&n.call(u,"callee")&&!i.call(u,"callee")};return Cg=l,Cg}var qf={exports:{}},wg,Cb;function xP(){if(Cb)return wg;Cb=1;function r(){return!1}return wg=r,wg}qf.exports;var wb;function cS(){return wb||(wb=1,function(r,e){var t=ul(),n=xP(),i=e&&!e.nodeType&&e,l=i&&!0&&r&&!r.nodeType&&r,u=l&&l.exports===i,f=u?t.Buffer:void 0,g=f?f.isBuffer:void 0,m=g||n;r.exports=m}(qf,qf.exports)),qf.exports}var Ag,Ab;function SP(){if(Ab)return Ag;Ab=1;var r=9007199254740991,e=/^(?:0|[1-9]\d*)$/;function t(n,i){var l=typeof n;return i=i??r,!!i&&(l=="number"||l!="symbol"&&e.test(n))&&n>-1&&n%1==0&&n<i}return Ag=t,Ag}var Tg,Tb;function uS(){if(Tb)return Tg;Tb=1;var r=9007199254740991;function e(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=r}return Tg=e,Tg}var Eg,Eb;function CP(){if(Eb)return Eg;Eb=1;var r=bh(),e=uS(),t=Sh(),n="[object Arguments]",i="[object Array]",l="[object Boolean]",u="[object Date]",f="[object Error]",g="[object Function]",m="[object Map]",R="[object Number]",w="[object Object]",b="[object RegExp]",S="[object Set]",_="[object String]",D="[object WeakMap]",E="[object ArrayBuffer]",x="[object DataView]",L="[object Float32Array]",O="[object Float64Array]",H="[object Int8Array]",q="[object Int16Array]",z="[object Int32Array]",K="[object Uint8Array]",ue="[object Uint8ClampedArray]",X="[object Uint16Array]",de="[object Uint32Array]",j={};j[L]=j[O]=j[H]=j[q]=j[z]=j[K]=j[ue]=j[X]=j[de]=!0,j[n]=j[i]=j[E]=j[l]=j[x]=j[u]=j[f]=j[g]=j[m]=j[R]=j[w]=j[b]=j[S]=j[_]=j[D]=!1;function re(J){return t(J)&&e(J.length)&&!!j[r(J)]}return Eg=re,Eg}var kg,kb;function wP(){if(kb)return kg;kb=1;function r(e){return function(t){return e(t)}}return kg=r,kg}var zf={exports:{}};zf.exports;var Rb;function AP(){return Rb||(Rb=1,function(r,e){var t=nS(),n=e&&!e.nodeType&&e,i=n&&!0&&r&&!r.nodeType&&r,l=i&&i.exports===n,u=l&&t.process,f=function(){try{var g=i&&i.require&&i.require("util").types;return g||u&&u.binding&&u.binding("util")}catch{}}();r.exports=f}(zf,zf.exports)),zf.exports}var Rg,Ib;function fS(){if(Ib)return Rg;Ib=1;var r=CP(),e=wP(),t=AP(),n=t&&t.isTypedArray,i=n?e(n):r;return Rg=i,Rg}var Ig,Lb;function TP(){if(Lb)return Ig;Lb=1;var r=yP(),e=_P(),t=zm(),n=cS(),i=SP(),l=fS(),u=Object.prototype,f=u.hasOwnProperty;function g(m,R){var w=t(m),b=!w&&e(m),S=!w&&!b&&n(m),_=!w&&!b&&!S&&l(m),D=w||b||S||_,E=D?r(m.length,String):[],x=E.length;for(var L in m)(R||f.call(m,L))&&!(D&&(L=="length"||S&&(L=="offset"||L=="parent")||_&&(L=="buffer"||L=="byteLength"||L=="byteOffset")||i(L,x)))&&E.push(L);return E}return Ig=g,Ig}var Lg,Mb;function EP(){if(Mb)return Lg;Mb=1;var r=Object.prototype;function e(t){var n=t&&t.constructor,i=typeof n=="function"&&n.prototype||r;return t===i}return Lg=e,Lg}var Mg,Db;function kP(){if(Db)return Mg;Db=1;function r(e,t){return function(n){return e(t(n))}}return Mg=r,Mg}var Dg,Ob;function RP(){if(Ob)return Dg;Ob=1;var r=kP(),e=r(Object.keys,Object);return Dg=e,Dg}var Og,Pb;function IP(){if(Pb)return Og;Pb=1;var r=EP(),e=RP(),t=Object.prototype,n=t.hasOwnProperty;function i(l){if(!r(l))return e(l);var u=[];for(var f in Object(l))n.call(l,f)&&f!="constructor"&&u.push(f);return u}return Og=i,Og}var Pg,Nb;function LP(){if(Nb)return Pg;Nb=1;var r=oS(),e=uS();function t(n){return n!=null&&e(n.length)&&!r(n)}return Pg=t,Pg}var Ng,Fb;function MP(){if(Fb)return Ng;Fb=1;var r=TP(),e=IP(),t=LP();function n(i){return t(i)?r(i):e(i)}return Ng=n,Ng}var Fg,jb;function DP(){if(jb)return Fg;jb=1;var r=pP(),e=vP(),t=MP();function n(i){return r(i,t,e)}return Fg=n,Fg}var jg,Bb;function OP(){if(Bb)return jg;Bb=1;var r=DP(),e=1,t=Object.prototype,n=t.hasOwnProperty;function i(l,u,f,g,m,R){var w=f&e,b=r(l),S=b.length,_=r(u),D=_.length;if(S!=D&&!w)return!1;for(var E=S;E--;){var x=b[E];if(!(w?x in u:n.call(u,x)))return!1}var L=R.get(l),O=R.get(u);if(L&&O)return L==u&&O==l;var H=!0;R.set(l,u),R.set(u,l);for(var q=w;++E<S;){x=b[E];var z=l[x],K=u[x];if(g)var ue=w?g(K,z,x,u,l,R):g(z,K,x,l,u,R);if(!(ue===void 0?z===K||m(z,K,f,g,R):ue)){H=!1;break}q||(q=x=="constructor")}if(H&&!q){var X=l.constructor,de=u.constructor;X!=de&&"constructor"in l&&"constructor"in u&&!(typeof X=="function"&&X instanceof X&&typeof de=="function"&&de instanceof de)&&(H=!1)}return R.delete(l),R.delete(u),H}return jg=i,jg}var Bg,Hb;function PP(){if(Hb)return Bg;Hb=1;var r=rf(),e=ul(),t=r(e,"DataView");return Bg=t,Bg}var Hg,qb;function NP(){if(qb)return Hg;qb=1;var r=rf(),e=ul(),t=r(e,"Promise");return Hg=t,Hg}var qg,zb;function FP(){if(zb)return qg;zb=1;var r=rf(),e=ul(),t=r(e,"Set");return qg=t,qg}var zg,$b;function jP(){if($b)return zg;$b=1;var r=rf(),e=ul(),t=r(e,"WeakMap");return zg=t,zg}var $g,Ub;function BP(){if(Ub)return $g;Ub=1;var r=PP(),e=qm(),t=NP(),n=FP(),i=jP(),l=bh(),u=sS(),f="[object Map]",g="[object Object]",m="[object Promise]",R="[object Set]",w="[object WeakMap]",b="[object DataView]",S=u(r),_=u(e),D=u(t),E=u(n),x=u(i),L=l;return(r&&L(new r(new ArrayBuffer(1)))!=b||e&&L(new e)!=f||t&&L(t.resolve())!=m||n&&L(new n)!=R||i&&L(new i)!=w)&&(L=function(O){var H=l(O),q=H==g?O.constructor:void 0,z=q?u(q):"";if(z)switch(z){case S:return b;case _:return f;case D:return m;case E:return R;case x:return w}return H}),$g=L,$g}var Ug,Wb;function HP(){if(Wb)return Ug;Wb=1;var r=nP(),e=lS(),t=dP(),n=OP(),i=BP(),l=zm(),u=cS(),f=fS(),g=1,m="[object Arguments]",R="[object Array]",w="[object Object]",b=Object.prototype,S=b.hasOwnProperty;function _(D,E,x,L,O,H){var q=l(D),z=l(E),K=q?R:i(D),ue=z?R:i(E);K=K==m?w:K,ue=ue==m?w:ue;var X=K==w,de=ue==w,j=K==ue;if(j&&u(D)){if(!u(E))return!1;q=!0,X=!1}if(j&&!X)return H||(H=new r),q||f(D)?e(D,E,x,L,O,H):t(D,E,K,x,L,O,H);if(!(x&g)){var re=X&&S.call(D,"__wrapped__"),J=de&&S.call(E,"__wrapped__");if(re||J){var Q=re?D.value():D,he=J?E.value():E;return H||(H=new r),O(Q,he,x,L,H)}}return j?(H||(H=new r),n(D,E,x,L,O,H)):!1}return Ug=_,Ug}var Wg,Vb;function qP(){if(Vb)return Wg;Vb=1;var r=HP(),e=Sh();function t(n,i,l,u,f){return n===i?!0:n==null||i==null||!e(n)&&!e(i)?n!==n&&i!==i:r(n,i,l,u,t,f)}return Wg=t,Wg}var Vg,Gb;function zP(){if(Gb)return Vg;Gb=1;var r=qP();function e(t,n){return r(t,n)}return Vg=e,Vg}var $P=zP();const Of=al($P);class Ch extends A.Component{constructor(e){super(e),this.editingAreaRef=A.createRef(),this.dirtyProps=["modules","formats","bounds","theme","children"],this.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],this.state={generation:0},this.selection=null,this.onEditorChange=(n,i,l,u)=>{var f,g;n==="text-change"?(f=this.onEditorChangeText)==null||f.call(this,this.editor.root.innerHTML,i,u,this.unprivilegedEditor):n==="selection-change"&&((g=this.onEditorChangeSelection)==null||g.call(this,i,u,this.unprivilegedEditor))};const t=this.isControlled()?e.value:e.defaultValue;this.value=t??""}validateProps(e){if(A.Children.count(e.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(A.Children.count(e.children)){const t=A.Children.only(e.children);if((t==null?void 0:t.type)==="textarea")throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.")}if(this.lastDeltaChangeSet&&e.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")}shouldComponentUpdate(e,t){if(this.validateProps(e),!this.editor||this.state.generation!==t.generation)return!0;if("value"in e){const n=this.getEditorContents(),i=e.value??"";this.isEqualValue(i,n)||this.setEditorContents(this.editor,i)}return e.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,e.readOnly),[...this.cleanProps,...this.dirtyProps].some(n=>!Of(e[n],this.props[n]))}shouldComponentRegenerate(e){return this.dirtyProps.some(t=>!Of(e[t],this.props[t]))}componentDidMount(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())}componentWillUnmount(){this.destroyEditor()}componentDidUpdate(e,t){if(this.editor&&this.shouldComponentRegenerate(e)){const n=this.editor.getContents(),i=this.editor.getSelection();this.regenerationSnapshot={delta:n,selection:i},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==t.generation){const{delta:n,selection:i}=this.regenerationSnapshot;delete this.regenerationSnapshot,this.instantiateEditor();const l=this.editor;l.setContents(n),Zb(()=>this.setEditorSelection(l,i))}}instantiateEditor(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())}destroyEditor(){this.editor&&this.unhookEditor(this.editor)}isControlled(){return"value"in this.props}getEditorConfig(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,tabIndex:this.props.tabIndex,theme:this.props.theme}}getEditor(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor}createEditor(e,t){const n=new Ve(e,t);return t.tabIndex!=null&&this.setEditorTabIndex(n,t.tabIndex),this.hookEditor(n),n}hookEditor(e){this.unprivilegedEditor=this.makeUnprivilegedEditor(e),e.on("editor-change",this.onEditorChange)}unhookEditor(e){e.off("editor-change",this.onEditorChange)}getEditorContents(){return this.value}getEditorSelection(){return this.selection}isDelta(e){return e&&e.ops}isEqualValue(e,t){return this.isDelta(e)&&this.isDelta(t)?Of(e.ops,t.ops):Of(e,t)}setEditorContents(e,t){this.value=t;const n=this.getEditorSelection();typeof t=="string"?e.setContents(e.clipboard.convert({html:t})):e.setContents(t),Zb(()=>this.setEditorSelection(e,n))}setEditorSelection(e,t){if(this.selection=t,t){const n=e.getLength();t.index=Math.max(0,Math.min(t.index,n-1)),t.length=Math.max(0,Math.min(t.length,n-1-t.index)),e.setSelection(t)}}setEditorTabIndex(e,t){var n;(n=e==null?void 0:e.scroll)!=null&&n.domNode&&(e.scroll.domNode.tabIndex=t)}setEditorReadOnly(e,t){t?e.disable():e.enable()}makeUnprivilegedEditor(e){const t=e;return{getHTML:()=>t.root.innerHTML,getSemanticHTML:t.getSemanticHTML.bind(t),getLength:t.getLength.bind(t),getText:t.getText.bind(t),getContents:t.getContents.bind(t),getSelection:t.getSelection.bind(t),getBounds:t.getBounds.bind(t)}}getEditingArea(){const e=this.editingAreaRef.current;if(!e)throw new Error("Cannot find element for editing area");if(e.nodeType===3)throw new Error("Editing area cannot be a text node");return e}renderEditingArea(){const{children:e,preserveWhitespace:t}=this.props,{generation:n}=this.state,i={key:n,ref:this.editingAreaRef};return A.Children.count(e)?A.cloneElement(A.Children.only(e),i):t?A.createElement("pre",{...i}):A.createElement("div",{...i})}render(){return A.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:`quill ${this.props.className??""}`,onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())}onEditorChangeText(e,t,n,i){var u,f;if(!this.editor)return;const l=this.isDelta(this.value)?i.getContents():i.getHTML();l!==this.getEditorContents()&&(this.lastDeltaChangeSet=t,this.value=l,(f=(u=this.props).onChange)==null||f.call(u,e,t,n,i))}onEditorChangeSelection(e,t,n){var f,g,m,R,w,b;if(!this.editor)return;const i=this.getEditorSelection(),l=!i&&e,u=i&&!e;Of(e,i)||(this.selection=e,(g=(f=this.props).onChangeSelection)==null||g.call(f,e,t,n),l?(R=(m=this.props).onFocus)==null||R.call(m,e,t,n):u&&((b=(w=this.props).onBlur)==null||b.call(w,i,t,n)))}focus(){this.editor&&this.editor.focus()}blur(){this.editor&&(this.selection=null,this.editor.blur())}}Ch.displayName="React Quill";Ch.Quill=Ve;Ch.defaultProps={theme:"snow",modules:{},readOnly:!1};function Zb(r){Promise.resolve().then(r)}const UP="_AEditorWrapper_1i771_1",WP="_AEditorContainer_1i771_7",VP="_AEditor_1i771_1",GP="_Primary_1i771_466",ZP="_ReadOnly_1i771_536",KP="_Raw_1i771_687",YP="_LimitContainer_1i771_701",XP="_Limit_1i771_701",JP="_Indicator_1i771_724",QP="_Resizer_1i771_733",jn={AEditorWrapper:UP,AEditorContainer:WP,AEditor:VP,Primary:GP,ReadOnly:ZP,Error:"_Error_1i771_613",Raw:KP,LimitContainer:YP,Limit:XP,Indicator:JP,Resizer:QP,"ql-tablepicker-row":"_ql-tablepicker-row_1i771_767","ql-tablepicker-cell":"_ql-tablepicker-cell_1i771_770","ql-tablepicker-grid":"_ql-tablepicker-grid_1i771_778","ql-tablepicker-inner-cell":"_ql-tablepicker-inner-cell_1i771_782","ql-tablepicker-options":"_ql-tablepicker-options_1i771_791","ql-tablepicker-tooltip":"_ql-tablepicker-tooltip_1i771_802","ql-tableui-options":"_ql-tableui-options_1i771_821","ql-tableui-options__item":"_ql-tableui-options__item_1i771_833","ql-tableui-options__item-icon":"_ql-tableui-options__item-icon_1i771_852","ql-tableui-options__item-text":"_ql-tableui-options__item-text_1i771_857","ql-tableui-helper":"_ql-tableui-helper_1i771_861","ql-tableui-helper__icon":"_ql-tableui-helper__icon_1i771_873","ql-tableui-helper__text":"_ql-tableui-helper__text_1i771_883"};class eN{constructor(e){ft(this,"quill");ft(this,"picker",null);ft(this,"tooltip",null);ft(this,"toolbar",null);ft(this,"tableButton",null);ft(this,"CONSTANTS",{MAX_ROWS:10,MAX_COLS:10,CELL_SIZE:18,SPACING:5,PICKER_PADDING:20});ft(this,"CLASSNAMES",{tooltip:jn["ql-tablepicker-tooltip"],grid:jn["ql-tablepicker-grid"],row:jn["ql-tablepicker-row"],cell:jn["ql-tablepicker-cell"],innerCell:jn["ql-tablepicker-inner-cell"],options:jn["ql-tablepicker-options"]});ft(this,"COLORS",{highlight:"var(--AEditor_Addon_hover_color)",normal:"var(--AEditor_Addon_Primary_background-color)",border:"1px solid var(--AEditor_Addon_Primary_color)"});ft(this,"boundHandlers",{globalClick:this.handleGlobalClick.bind(this),tableButtonClick:this.handleTableButtonClick.bind(this),gridMouseOver:this.handleGridMouseOver.bind(this),gridMouseOut:this.handleGridMouseOut.bind(this),gridClick:this.handleGridClick.bind(this),highlightReset:()=>this.highlightCells(0,0)});this.quill=e,this.initializeTablePicker(),document.addEventListener("click",this.boundHandlers.globalClick)}destroy(){document.removeEventListener("click",this.boundHandlers.globalClick),this.tableButton&&this.tableButton.removeEventListener("click",this.boundHandlers.tableButtonClick),this.hidePicker()}handleGlobalClick(e){if(!this.picker)return;const t=e.target;this.isTableButtonOrPicker(t)||this.hidePicker()}isTableButtonOrPicker(e){return!!e.closest("button.ql-table")||!!e.closest(`.${this.CLASSNAMES.options}`)}initializeTablePicker(){if(this.toolbar=this.quill.getModule("toolbar"),this.tableButton=this.toolbar.container.querySelector("button.ql-table"),!this.tableButton){console.warn("Table button not found");return}this.toolbar.handlers.table=()=>{},this.tableButton.addEventListener("click",this.boundHandlers.tableButtonClick)}handleTableButtonClick(e){if(e.preventDefault(),e.stopPropagation(),this.picker&&document.body.contains(this.picker)){this.hidePicker();return}this.showTablePicker(e.target)}createElement(e,t){const n=document.createElement("div");return n.className=e,t&&(n.textContent=t),n}showTablePicker(e){this.hidePicker(),this.closeOtherOptions();const t=e.closest("button.ql-table");t&&t.classList.add("ql-expanded"),this.createPicker(e)}closeOtherOptions(){document.querySelectorAll(".ql-picker.ql-expanded").forEach(e=>{e.classList.remove("ql-expanded")})}createPicker(e){const t=document.createDocumentFragment();this.picker=this.createElement(this.CLASSNAMES.options);const n=this.createGrid();t.appendChild(n),this.picker.appendChild(t),this.positionPicker(e),document.body.appendChild(this.picker),this.picker.addEventListener("mouseover",this.boundHandlers.gridMouseOver),this.picker.addEventListener("mouseout",this.boundHandlers.gridMouseOut),this.picker.addEventListener("click",this.boundHandlers.gridClick),this.picker.addEventListener("mouseleave",this.boundHandlers.highlightReset)}handleGridMouseOver(e){const t=this.findTargetCell(e);if(!t)return;const[n,i]=this.getCellCoordinates(t);this.highlightCells(n+1,i+1),this.showTooltip(t,n+1,i+1)}handleGridMouseOut(e){var t;(t=this.picker)!=null&&t.contains(e.relatedTarget)||this.removeTooltip()}handleGridClick(e){const t=this.findTargetCell(e);if(!t)return;const[n,i]=this.getCellCoordinates(t);this.insertTable(n+1,i+1),this.removeTooltip(),this.hidePicker()}findTargetCell(e){return e.target.closest(`.${this.CLASSNAMES.cell}`)}getCellCoordinates(e){const t=parseInt(e.getAttribute("data-row")||"0",10),n=parseInt(e.getAttribute("data-col")||"0",10);return[t,n]}createGrid(){const e=this.createElement(this.CLASSNAMES.grid),t=document.createDocumentFragment(),{MAX_ROWS:n,MAX_COLS:i}=this.CONSTANTS;for(let l=0;l<n;l++){const u=this.createElement(this.CLASSNAMES.row);for(let f=0;f<i;f++){const g=this.createElement(this.CLASSNAMES.cell),m=this.createElement(this.CLASSNAMES.innerCell);g.setAttribute("data-row",l.toString()),g.setAttribute("data-col",f.toString()),g.appendChild(m),u.appendChild(g)}t.appendChild(u)}return e.appendChild(t),e}showTooltip(e,t,n){this.removeTooltip(),this.tooltip=this.createElement(this.CLASSNAMES.tooltip,`${t}×${n}`),document.body.appendChild(this.tooltip);const{top:i,left:l}=this.calculateTooltipPosition(e,this.tooltip);this.tooltip.style.top=`${i}px`,this.tooltip.style.left=`${l}px`}calculateTooltipPosition(e,t){const{SPACING:n}=this.CONSTANTS,i=e.getBoundingClientRect(),l=t.getBoundingClientRect(),u=this.getViewportMetrics();let f=i.top-l.height-n,g=i.left;return f<0&&(f=i.bottom+n),g+l.width>u.width&&(g=u.width-l.width-n),{top:f,left:g}}getViewportMetrics(){return{width:window.innerWidth,height:window.innerHeight,scrollTop:window.scrollY||document.documentElement.scrollTop,scrollLeft:window.scrollX||document.documentElement.scrollLeft}}removeTooltip(){this.tooltip&&(this.tooltip.remove(),this.tooltip=null)}positionPicker(e){if(!this.picker)return;const{CELL_SIZE:t,MAX_ROWS:n,MAX_COLS:i,PICKER_PADDING:l}=this.CONSTANTS,u=e.getBoundingClientRect(),f=this.getViewportMetrics(),g=t*n+l,m=t*i+l,R=this.isElementInViewport(u),{top:w,left:b}=this.calculatePickerPosition(u,R,{pickerWidth:m,pickerHeight:g,viewport:f});this.picker.style.top=`${w}px`,this.picker.style.left=`${b}px`}isElementInViewport(e){const t=this.getViewportMetrics();return e.top>=0&&e.left>=0&&e.bottom<=t.height&&e.right<=t.width}calculatePickerPosition(e,t,n){const{pickerWidth:i,pickerHeight:l,viewport:u}=n,{width:f,height:g,scrollTop:m,scrollLeft:R}=u;let w,b;if(t)w=e.bottom+m,b=e.left+R;else{const S=this.quill.getSelection();if(S){const _=this.quill.getBounds(S.index),D=this.quill.container.getBoundingClientRect();w=D.top+_.bottom+m,b=D.left+_.left+R}else w=(g-l)/2+m,b=(f-i)/2+R}return w+l>g+m&&(w=Math.max(m,w-l-(t?e.height:0))),b+i>f+R&&(b=Math.max(R,f+R-i)),{top:w,left:b}}highlightCells(e,t){if(!this.picker)return;const n=this.picker.querySelectorAll(`.${this.CLASSNAMES.innerCell}`),{NORMAL:i,HIGHLIGHT:l}={NORMAL:this.COLORS.normal,HIGHLIGHT:this.COLORS.highlight};for(let u=0;u<n.length;u++){const f=n[u],g=f.parentElement;if(!g)continue;const[m,R]=this.getCellCoordinates(g);f.style.backgroundColor=m<e&&R<t?l:i}}insertTable(e,t){const n=this.quill.getSelection(!0);if(!n)return;const[i]=this.quill.getLeaf(n.index);if(!i)return;this.prepareInsertionPoint(i,n);const l=this.quill.getModule("table");this.quill.setSelection(n.index,0),l.insertTable(e,t);const u=this.quill.root.querySelector("table:last-of-type");if(u){const f=u.querySelectorAll("td, th");for(let m=0;m<f.length;m++)f[m].style.border=this.COLORS.border;const g=this.quill.getSelection();g&&this.quill.setSelection(g.index,0)}}prepareInsertionPoint(e,t){const n=this.findTableParent(e.parent);if(n){const i=this.quill.getIndex(n)+n.length();this.quill.insertText(i,`
|
347
|
+
`,R=function(){function _(D,E,x,L){this.resizer=null,this.startResizePosition=null,this.i18n=new u((L==null?void 0:L.locale)||f),this.options=L,this.resizeTarget=D,D.originSize||(D.originSize={width:D.clientWidth,height:D.clientHeight}),this.editor=x,this.container=E,this.initResizer(),this.positionResizerToTarget(D),this.resizing=this.resizing.bind(this),this.endResize=this.endResize.bind(this),this.startResize=this.startResize.bind(this),this.toolbarClick=this.toolbarClick.bind(this),this.toolbarInputChange=this.toolbarInputChange.bind(this),this.onScroll=this.onScroll.bind(this),this.bindEvents()}return _.prototype.initResizer=function(){var D=this.container.querySelector("#editor-resizer");D||(D=document.createElement("div"),D.setAttribute("id","editor-resizer"),D.innerHTML=g(m,this.i18n.findLabel("altTip"),this.i18n.findLabel("floatLeft"),this.i18n.findLabel("center"),this.i18n.findLabel("floatRight"),this.i18n.findLabel("restore"),this.i18n.findLabel("inputTip")),this.container.appendChild(D)),this.resizer=D},_.prototype.positionResizerToTarget=function(D){this.resizer!==null&&(this.resizer.style.setProperty("left",D.offsetLeft+"px"),this.resizer.style.setProperty("top",D.offsetTop-this.editor.scrollTop+"px"),this.resizer.style.setProperty("width",D.clientWidth+"px"),this.resizer.style.setProperty("height",D.clientHeight+"px"))},_.prototype.bindEvents=function(){this.resizer!==null&&(this.resizer.addEventListener("mousedown",this.startResize),this.resizer.addEventListener("click",this.toolbarClick),this.resizer.addEventListener("change",this.toolbarInputChange)),window.addEventListener("mouseup",this.endResize),window.addEventListener("mousemove",this.resizing),this.editor.addEventListener("scroll",this.onScroll)},_.prototype.onScroll=function(){this.positionResizerToTarget(this.resizeTarget)},_.prototype._setStylesForToolbar=function(D,E){var x,L="_styles_"+D,O=this.resizeTarget.style,H=this.resizeTarget[L];O.cssText=O.cssText.replaceAll(" ","").replace(H,"")+(";"+E),this.resizeTarget[L]=E,this.positionResizerToTarget(this.resizeTarget),(x=this.options)===null||x===void 0||x.onChange(this.resizeTarget)},_.prototype.toolbarInputChange=function(D){var E,x=D.target,L=(E=x==null?void 0:x.dataset)===null||E===void 0?void 0:E.type,O=x.value;L&&Number(O)&&this._setStylesForToolbar(L,"width: "+Number(O)+"%;")},_.prototype.toolbarClick=function(D){var E,x,L=D.target,O=(E=L==null?void 0:L.dataset)===null||E===void 0?void 0:E.type;O&&L.classList.contains("btn")&&this._setStylesForToolbar(O,(x=L==null?void 0:L.dataset)===null||x===void 0?void 0:x.styles)},_.prototype.startResize=function(D){var E=D.target;E.classList.contains("handler")&&D.which===1&&(this.startResizePosition={left:D.clientX,top:D.clientY,width:this.resizeTarget.clientWidth,height:this.resizeTarget.clientHeight})},_.prototype.endResize=function(){var D;this.startResizePosition=null,(D=this.options)===null||D===void 0||D.onChange(this.resizeTarget)},_.prototype.resizing=function(D){if(this.startResizePosition){var E=D.clientX-this.startResizePosition.left,x=D.clientY-this.startResizePosition.top,L=this.startResizePosition.width,O=this.startResizePosition.height;if(L+=E,O+=x,D.altKey){var H=this.resizeTarget.originSize,q=H.height/H.width;O=q*L}this.resizeTarget.style.setProperty("width",Math.max(L,30)+"px"),this.resizeTarget.style.setProperty("height",Math.max(O,30)+"px"),this.positionResizerToTarget(this.resizeTarget)}},_.prototype.destory=function(){this.container.removeChild(this.resizer),window.removeEventListener("mouseup",this.endResize),window.removeEventListener("mousemove",this.resizing),this.editor.removeEventListener("scroll",this.onScroll),this.resizer=null},_}(),C=function(){function _(D,E){this.element=D,this.cb=E,this.hasTracked=!1}return _}(),b=function(){function _(){}return _.track=function(D,E){this.iframes.push(new C(D,E)),this.interval||(this.interval=setInterval(function(){_.checkClick()},this.resolution))},_.checkClick=function(){if(document.activeElement){var D=document.activeElement;for(var E in this.iframes)D===this.iframes[E].element?this.iframes[E].hasTracked==!1&&(this.iframes[E].cb.apply(window,[]),this.iframes[E].hasTracked=!0):this.iframes[E].hasTracked=!1}},_.resolution=200,_.iframes=[],_.interval=null,_}();function S(_,D){var E=_.root,x,L;function O(){var H=_.getContents().constructor,q=new H().retain(1);_.updateContents(q)}E.addEventListener("click",function(H){var q=H.target;H.target&&["img","video"].includes(q.tagName.toLowerCase())&&(x=q,L=new R(q,E.parentElement,E,l(l({},D),{onChange:O})))}),_.on("text-change",function(H,q){E.querySelectorAll("iframe").forEach(function(z){b.track(z,function(){x=z,L=new R(z,E.parentElement,E,l(l({},D),{onChange:O}))})})}),document.addEventListener("mousedown",function(H){var q,z,K,ue=H.target;ue!==x&&!(!((z=(q=L==null?void 0:L.resizer)===null||q===void 0?void 0:q.contains)===null||z===void 0)&&z.call(q,ue))&&((K=L==null?void 0:L.destory)===null||K===void 0||K.call(L),L=null,x=null)},{capture:!0})}return S})}(Gd)),Gd.exports}var EO=TO();const kO=al(EO);var pp,hy;function RO(){if(hy)return pp;hy=1;function r(){this.__data__=[],this.size=0}return pp=r,pp}var gp,py;function rS(){if(py)return gp;py=1;function r(e,t){return e===t||e!==e&&t!==t}return gp=r,gp}var mp,gy;function vh(){if(gy)return mp;gy=1;var r=rS();function e(t,n){for(var i=t.length;i--;)if(r(t[i][0],n))return i;return-1}return mp=e,mp}var vp,my;function IO(){if(my)return vp;my=1;var r=vh(),e=Array.prototype,t=e.splice;function n(i){var l=this.__data__,u=r(l,i);if(u<0)return!1;var f=l.length-1;return u==f?l.pop():t.call(l,u,1),--this.size,!0}return vp=n,vp}var yp,vy;function LO(){if(vy)return yp;vy=1;var r=vh();function e(t){var n=this.__data__,i=r(n,t);return i<0?void 0:n[i][1]}return yp=e,yp}var bp,yy;function MO(){if(yy)return bp;yy=1;var r=vh();function e(t){return r(this.__data__,t)>-1}return bp=e,bp}var _p,by;function DO(){if(by)return _p;by=1;var r=vh();function e(t,n){var i=this.__data__,l=r(i,t);return l<0?(++this.size,i.push([t,n])):i[l][1]=n,this}return _p=e,_p}var xp,_y;function yh(){if(_y)return xp;_y=1;var r=RO(),e=IO(),t=LO(),n=MO(),i=DO();function l(u){var f=-1,g=u==null?0:u.length;for(this.clear();++f<g;){var m=u[f];this.set(m[0],m[1])}}return l.prototype.clear=r,l.prototype.delete=e,l.prototype.get=t,l.prototype.has=n,l.prototype.set=i,xp=l,xp}var Sp,xy;function OO(){if(xy)return Sp;xy=1;var r=yh();function e(){this.__data__=new r,this.size=0}return Sp=e,Sp}var Cp,Sy;function PO(){if(Sy)return Cp;Sy=1;function r(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}return Cp=r,Cp}var wp,Cy;function NO(){if(Cy)return wp;Cy=1;function r(e){return this.__data__.get(e)}return wp=r,wp}var Ap,wy;function FO(){if(wy)return Ap;wy=1;function r(e){return this.__data__.has(e)}return Ap=r,Ap}var Tp,Ay;function nS(){if(Ay)return Tp;Ay=1;var r=typeof bi=="object"&&bi&&bi.Object===Object&&bi;return Tp=r,Tp}var Ep,Ty;function ul(){if(Ty)return Ep;Ty=1;var r=nS(),e=typeof self=="object"&&self&&self.Object===Object&&self,t=r||e||Function("return this")();return Ep=t,Ep}var kp,Ey;function Hm(){if(Ey)return kp;Ey=1;var r=ul(),e=r.Symbol;return kp=e,kp}var Rp,ky;function jO(){if(ky)return Rp;ky=1;var r=Hm(),e=Object.prototype,t=e.hasOwnProperty,n=e.toString,i=r?r.toStringTag:void 0;function l(u){var f=t.call(u,i),g=u[i];try{u[i]=void 0;var m=!0}catch{}var R=n.call(u);return m&&(f?u[i]=g:delete u[i]),R}return Rp=l,Rp}var Ip,Ry;function BO(){if(Ry)return Ip;Ry=1;var r=Object.prototype,e=r.toString;function t(n){return e.call(n)}return Ip=t,Ip}var Lp,Iy;function bh(){if(Iy)return Lp;Iy=1;var r=Hm(),e=jO(),t=BO(),n="[object Null]",i="[object Undefined]",l=r?r.toStringTag:void 0;function u(f){return f==null?f===void 0?i:n:l&&l in Object(f)?e(f):t(f)}return Lp=u,Lp}var Mp,Ly;function iS(){if(Ly)return Mp;Ly=1;function r(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}return Mp=r,Mp}var Dp,My;function oS(){if(My)return Dp;My=1;var r=bh(),e=iS(),t="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",l="[object Proxy]";function u(f){if(!e(f))return!1;var g=r(f);return g==n||g==i||g==t||g==l}return Dp=u,Dp}var Op,Dy;function HO(){if(Dy)return Op;Dy=1;var r=ul(),e=r["__core-js_shared__"];return Op=e,Op}var Pp,Oy;function qO(){if(Oy)return Pp;Oy=1;var r=HO(),e=function(){var n=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function t(n){return!!e&&e in n}return Pp=t,Pp}var Np,Py;function sS(){if(Py)return Np;Py=1;var r=Function.prototype,e=r.toString;function t(n){if(n!=null){try{return e.call(n)}catch{}try{return n+""}catch{}}return""}return Np=t,Np}var Fp,Ny;function zO(){if(Ny)return Fp;Ny=1;var r=oS(),e=qO(),t=iS(),n=sS(),i=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,u=Function.prototype,f=Object.prototype,g=u.toString,m=f.hasOwnProperty,R=RegExp("^"+g.call(m).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function C(b){if(!t(b)||e(b))return!1;var S=r(b)?R:l;return S.test(n(b))}return Fp=C,Fp}var jp,Fy;function $O(){if(Fy)return jp;Fy=1;function r(e,t){return e==null?void 0:e[t]}return jp=r,jp}var Bp,jy;function rf(){if(jy)return Bp;jy=1;var r=zO(),e=$O();function t(n,i){var l=e(n,i);return r(l)?l:void 0}return Bp=t,Bp}var Hp,By;function qm(){if(By)return Hp;By=1;var r=rf(),e=ul(),t=r(e,"Map");return Hp=t,Hp}var qp,Hy;function _h(){if(Hy)return qp;Hy=1;var r=rf(),e=r(Object,"create");return qp=e,qp}var zp,qy;function UO(){if(qy)return zp;qy=1;var r=_h();function e(){this.__data__=r?r(null):{},this.size=0}return zp=e,zp}var $p,zy;function WO(){if(zy)return $p;zy=1;function r(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}return $p=r,$p}var Up,$y;function VO(){if($y)return Up;$y=1;var r=_h(),e="__lodash_hash_undefined__",t=Object.prototype,n=t.hasOwnProperty;function i(l){var u=this.__data__;if(r){var f=u[l];return f===e?void 0:f}return n.call(u,l)?u[l]:void 0}return Up=i,Up}var Wp,Uy;function GO(){if(Uy)return Wp;Uy=1;var r=_h(),e=Object.prototype,t=e.hasOwnProperty;function n(i){var l=this.__data__;return r?l[i]!==void 0:t.call(l,i)}return Wp=n,Wp}var Vp,Wy;function ZO(){if(Wy)return Vp;Wy=1;var r=_h(),e="__lodash_hash_undefined__";function t(n,i){var l=this.__data__;return this.size+=this.has(n)?0:1,l[n]=r&&i===void 0?e:i,this}return Vp=t,Vp}var Gp,Vy;function KO(){if(Vy)return Gp;Vy=1;var r=UO(),e=WO(),t=VO(),n=GO(),i=ZO();function l(u){var f=-1,g=u==null?0:u.length;for(this.clear();++f<g;){var m=u[f];this.set(m[0],m[1])}}return l.prototype.clear=r,l.prototype.delete=e,l.prototype.get=t,l.prototype.has=n,l.prototype.set=i,Gp=l,Gp}var Zp,Gy;function YO(){if(Gy)return Zp;Gy=1;var r=KO(),e=yh(),t=qm();function n(){this.size=0,this.__data__={hash:new r,map:new(t||e),string:new r}}return Zp=n,Zp}var Kp,Zy;function XO(){if(Zy)return Kp;Zy=1;function r(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}return Kp=r,Kp}var Yp,Ky;function xh(){if(Ky)return Yp;Ky=1;var r=XO();function e(t,n){var i=t.__data__;return r(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Yp=e,Yp}var Xp,Yy;function JO(){if(Yy)return Xp;Yy=1;var r=xh();function e(t){var n=r(this,t).delete(t);return this.size-=n?1:0,n}return Xp=e,Xp}var Jp,Xy;function QO(){if(Xy)return Jp;Xy=1;var r=xh();function e(t){return r(this,t).get(t)}return Jp=e,Jp}var Qp,Jy;function eP(){if(Jy)return Qp;Jy=1;var r=xh();function e(t){return r(this,t).has(t)}return Qp=e,Qp}var eg,Qy;function tP(){if(Qy)return eg;Qy=1;var r=xh();function e(t,n){var i=r(this,t),l=i.size;return i.set(t,n),this.size+=i.size==l?0:1,this}return eg=e,eg}var tg,eb;function aS(){if(eb)return tg;eb=1;var r=YO(),e=JO(),t=QO(),n=eP(),i=tP();function l(u){var f=-1,g=u==null?0:u.length;for(this.clear();++f<g;){var m=u[f];this.set(m[0],m[1])}}return l.prototype.clear=r,l.prototype.delete=e,l.prototype.get=t,l.prototype.has=n,l.prototype.set=i,tg=l,tg}var rg,tb;function rP(){if(tb)return rg;tb=1;var r=yh(),e=qm(),t=aS(),n=200;function i(l,u){var f=this.__data__;if(f instanceof r){var g=f.__data__;if(!e||g.length<n-1)return g.push([l,u]),this.size=++f.size,this;f=this.__data__=new t(g)}return f.set(l,u),this.size=f.size,this}return rg=i,rg}var ng,rb;function nP(){if(rb)return ng;rb=1;var r=yh(),e=OO(),t=PO(),n=NO(),i=FO(),l=rP();function u(f){var g=this.__data__=new r(f);this.size=g.size}return u.prototype.clear=e,u.prototype.delete=t,u.prototype.get=n,u.prototype.has=i,u.prototype.set=l,ng=u,ng}var ig,nb;function iP(){if(nb)return ig;nb=1;var r="__lodash_hash_undefined__";function e(t){return this.__data__.set(t,r),this}return ig=e,ig}var og,ib;function oP(){if(ib)return og;ib=1;function r(e){return this.__data__.has(e)}return og=r,og}var sg,ob;function sP(){if(ob)return sg;ob=1;var r=aS(),e=iP(),t=oP();function n(i){var l=-1,u=i==null?0:i.length;for(this.__data__=new r;++l<u;)this.add(i[l])}return n.prototype.add=n.prototype.push=e,n.prototype.has=t,sg=n,sg}var ag,sb;function aP(){if(sb)return ag;sb=1;function r(e,t){for(var n=-1,i=e==null?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}return ag=r,ag}var lg,ab;function lP(){if(ab)return lg;ab=1;function r(e,t){return e.has(t)}return lg=r,lg}var cg,lb;function lS(){if(lb)return cg;lb=1;var r=sP(),e=aP(),t=lP(),n=1,i=2;function l(u,f,g,m,R,C){var b=g&n,S=u.length,_=f.length;if(S!=_&&!(b&&_>S))return!1;var D=C.get(u),E=C.get(f);if(D&&E)return D==f&&E==u;var x=-1,L=!0,O=g&i?new r:void 0;for(C.set(u,f),C.set(f,u);++x<S;){var H=u[x],q=f[x];if(m)var z=b?m(q,H,x,f,u,C):m(H,q,x,u,f,C);if(z!==void 0){if(z)continue;L=!1;break}if(O){if(!e(f,function(K,ue){if(!t(O,ue)&&(H===K||R(H,K,g,m,C)))return O.push(ue)})){L=!1;break}}else if(!(H===q||R(H,q,g,m,C))){L=!1;break}}return C.delete(u),C.delete(f),L}return cg=l,cg}var ug,cb;function cP(){if(cb)return ug;cb=1;var r=ul(),e=r.Uint8Array;return ug=e,ug}var fg,ub;function uP(){if(ub)return fg;ub=1;function r(e){var t=-1,n=Array(e.size);return e.forEach(function(i,l){n[++t]=[l,i]}),n}return fg=r,fg}var dg,fb;function fP(){if(fb)return dg;fb=1;function r(e){var t=-1,n=Array(e.size);return e.forEach(function(i){n[++t]=i}),n}return dg=r,dg}var hg,db;function dP(){if(db)return hg;db=1;var r=Hm(),e=cP(),t=rS(),n=lS(),i=uP(),l=fP(),u=1,f=2,g="[object Boolean]",m="[object Date]",R="[object Error]",C="[object Map]",b="[object Number]",S="[object RegExp]",_="[object Set]",D="[object String]",E="[object Symbol]",x="[object ArrayBuffer]",L="[object DataView]",O=r?r.prototype:void 0,H=O?O.valueOf:void 0;function q(z,K,ue,X,de,j,re){switch(ue){case L:if(z.byteLength!=K.byteLength||z.byteOffset!=K.byteOffset)return!1;z=z.buffer,K=K.buffer;case x:return!(z.byteLength!=K.byteLength||!j(new e(z),new e(K)));case g:case m:case b:return t(+z,+K);case R:return z.name==K.name&&z.message==K.message;case S:case D:return z==K+"";case C:var J=i;case _:var Q=X&u;if(J||(J=l),z.size!=K.size&&!Q)return!1;var he=re.get(z);if(he)return he==K;X|=f,re.set(z,K);var me=n(J(z),J(K),X,de,j,re);return re.delete(z),me;case E:if(H)return H.call(z)==H.call(K)}return!1}return hg=q,hg}var pg,hb;function hP(){if(hb)return pg;hb=1;function r(e,t){for(var n=-1,i=t.length,l=e.length;++n<i;)e[l+n]=t[n];return e}return pg=r,pg}var gg,pb;function zm(){if(pb)return gg;pb=1;var r=Array.isArray;return gg=r,gg}var mg,gb;function pP(){if(gb)return mg;gb=1;var r=hP(),e=zm();function t(n,i,l){var u=i(n);return e(n)?u:r(u,l(n))}return mg=t,mg}var vg,mb;function gP(){if(mb)return vg;mb=1;function r(e,t){for(var n=-1,i=e==null?0:e.length,l=0,u=[];++n<i;){var f=e[n];t(f,n,e)&&(u[l++]=f)}return u}return vg=r,vg}var yg,vb;function mP(){if(vb)return yg;vb=1;function r(){return[]}return yg=r,yg}var bg,yb;function vP(){if(yb)return bg;yb=1;var r=gP(),e=mP(),t=Object.prototype,n=t.propertyIsEnumerable,i=Object.getOwnPropertySymbols,l=i?function(u){return u==null?[]:(u=Object(u),r(i(u),function(f){return n.call(u,f)}))}:e;return bg=l,bg}var _g,bb;function yP(){if(bb)return _g;bb=1;function r(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}return _g=r,_g}var xg,_b;function Sh(){if(_b)return xg;_b=1;function r(e){return e!=null&&typeof e=="object"}return xg=r,xg}var Sg,xb;function bP(){if(xb)return Sg;xb=1;var r=bh(),e=Sh(),t="[object Arguments]";function n(i){return e(i)&&r(i)==t}return Sg=n,Sg}var Cg,Sb;function _P(){if(Sb)return Cg;Sb=1;var r=bP(),e=Sh(),t=Object.prototype,n=t.hasOwnProperty,i=t.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(u){return e(u)&&n.call(u,"callee")&&!i.call(u,"callee")};return Cg=l,Cg}var qf={exports:{}},wg,Cb;function xP(){if(Cb)return wg;Cb=1;function r(){return!1}return wg=r,wg}qf.exports;var wb;function cS(){return wb||(wb=1,function(r,e){var t=ul(),n=xP(),i=e&&!e.nodeType&&e,l=i&&!0&&r&&!r.nodeType&&r,u=l&&l.exports===i,f=u?t.Buffer:void 0,g=f?f.isBuffer:void 0,m=g||n;r.exports=m}(qf,qf.exports)),qf.exports}var Ag,Ab;function SP(){if(Ab)return Ag;Ab=1;var r=9007199254740991,e=/^(?:0|[1-9]\d*)$/;function t(n,i){var l=typeof n;return i=i??r,!!i&&(l=="number"||l!="symbol"&&e.test(n))&&n>-1&&n%1==0&&n<i}return Ag=t,Ag}var Tg,Tb;function uS(){if(Tb)return Tg;Tb=1;var r=9007199254740991;function e(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=r}return Tg=e,Tg}var Eg,Eb;function CP(){if(Eb)return Eg;Eb=1;var r=bh(),e=uS(),t=Sh(),n="[object Arguments]",i="[object Array]",l="[object Boolean]",u="[object Date]",f="[object Error]",g="[object Function]",m="[object Map]",R="[object Number]",C="[object Object]",b="[object RegExp]",S="[object Set]",_="[object String]",D="[object WeakMap]",E="[object ArrayBuffer]",x="[object DataView]",L="[object Float32Array]",O="[object Float64Array]",H="[object Int8Array]",q="[object Int16Array]",z="[object Int32Array]",K="[object Uint8Array]",ue="[object Uint8ClampedArray]",X="[object Uint16Array]",de="[object Uint32Array]",j={};j[L]=j[O]=j[H]=j[q]=j[z]=j[K]=j[ue]=j[X]=j[de]=!0,j[n]=j[i]=j[E]=j[l]=j[x]=j[u]=j[f]=j[g]=j[m]=j[R]=j[C]=j[b]=j[S]=j[_]=j[D]=!1;function re(J){return t(J)&&e(J.length)&&!!j[r(J)]}return Eg=re,Eg}var kg,kb;function wP(){if(kb)return kg;kb=1;function r(e){return function(t){return e(t)}}return kg=r,kg}var zf={exports:{}};zf.exports;var Rb;function AP(){return Rb||(Rb=1,function(r,e){var t=nS(),n=e&&!e.nodeType&&e,i=n&&!0&&r&&!r.nodeType&&r,l=i&&i.exports===n,u=l&&t.process,f=function(){try{var g=i&&i.require&&i.require("util").types;return g||u&&u.binding&&u.binding("util")}catch{}}();r.exports=f}(zf,zf.exports)),zf.exports}var Rg,Ib;function fS(){if(Ib)return Rg;Ib=1;var r=CP(),e=wP(),t=AP(),n=t&&t.isTypedArray,i=n?e(n):r;return Rg=i,Rg}var Ig,Lb;function TP(){if(Lb)return Ig;Lb=1;var r=yP(),e=_P(),t=zm(),n=cS(),i=SP(),l=fS(),u=Object.prototype,f=u.hasOwnProperty;function g(m,R){var C=t(m),b=!C&&e(m),S=!C&&!b&&n(m),_=!C&&!b&&!S&&l(m),D=C||b||S||_,E=D?r(m.length,String):[],x=E.length;for(var L in m)(R||f.call(m,L))&&!(D&&(L=="length"||S&&(L=="offset"||L=="parent")||_&&(L=="buffer"||L=="byteLength"||L=="byteOffset")||i(L,x)))&&E.push(L);return E}return Ig=g,Ig}var Lg,Mb;function EP(){if(Mb)return Lg;Mb=1;var r=Object.prototype;function e(t){var n=t&&t.constructor,i=typeof n=="function"&&n.prototype||r;return t===i}return Lg=e,Lg}var Mg,Db;function kP(){if(Db)return Mg;Db=1;function r(e,t){return function(n){return e(t(n))}}return Mg=r,Mg}var Dg,Ob;function RP(){if(Ob)return Dg;Ob=1;var r=kP(),e=r(Object.keys,Object);return Dg=e,Dg}var Og,Pb;function IP(){if(Pb)return Og;Pb=1;var r=EP(),e=RP(),t=Object.prototype,n=t.hasOwnProperty;function i(l){if(!r(l))return e(l);var u=[];for(var f in Object(l))n.call(l,f)&&f!="constructor"&&u.push(f);return u}return Og=i,Og}var Pg,Nb;function LP(){if(Nb)return Pg;Nb=1;var r=oS(),e=uS();function t(n){return n!=null&&e(n.length)&&!r(n)}return Pg=t,Pg}var Ng,Fb;function MP(){if(Fb)return Ng;Fb=1;var r=TP(),e=IP(),t=LP();function n(i){return t(i)?r(i):e(i)}return Ng=n,Ng}var Fg,jb;function DP(){if(jb)return Fg;jb=1;var r=pP(),e=vP(),t=MP();function n(i){return r(i,t,e)}return Fg=n,Fg}var jg,Bb;function OP(){if(Bb)return jg;Bb=1;var r=DP(),e=1,t=Object.prototype,n=t.hasOwnProperty;function i(l,u,f,g,m,R){var C=f&e,b=r(l),S=b.length,_=r(u),D=_.length;if(S!=D&&!C)return!1;for(var E=S;E--;){var x=b[E];if(!(C?x in u:n.call(u,x)))return!1}var L=R.get(l),O=R.get(u);if(L&&O)return L==u&&O==l;var H=!0;R.set(l,u),R.set(u,l);for(var q=C;++E<S;){x=b[E];var z=l[x],K=u[x];if(g)var ue=C?g(K,z,x,u,l,R):g(z,K,x,l,u,R);if(!(ue===void 0?z===K||m(z,K,f,g,R):ue)){H=!1;break}q||(q=x=="constructor")}if(H&&!q){var X=l.constructor,de=u.constructor;X!=de&&"constructor"in l&&"constructor"in u&&!(typeof X=="function"&&X instanceof X&&typeof de=="function"&&de instanceof de)&&(H=!1)}return R.delete(l),R.delete(u),H}return jg=i,jg}var Bg,Hb;function PP(){if(Hb)return Bg;Hb=1;var r=rf(),e=ul(),t=r(e,"DataView");return Bg=t,Bg}var Hg,qb;function NP(){if(qb)return Hg;qb=1;var r=rf(),e=ul(),t=r(e,"Promise");return Hg=t,Hg}var qg,zb;function FP(){if(zb)return qg;zb=1;var r=rf(),e=ul(),t=r(e,"Set");return qg=t,qg}var zg,$b;function jP(){if($b)return zg;$b=1;var r=rf(),e=ul(),t=r(e,"WeakMap");return zg=t,zg}var $g,Ub;function BP(){if(Ub)return $g;Ub=1;var r=PP(),e=qm(),t=NP(),n=FP(),i=jP(),l=bh(),u=sS(),f="[object Map]",g="[object Object]",m="[object Promise]",R="[object Set]",C="[object WeakMap]",b="[object DataView]",S=u(r),_=u(e),D=u(t),E=u(n),x=u(i),L=l;return(r&&L(new r(new ArrayBuffer(1)))!=b||e&&L(new e)!=f||t&&L(t.resolve())!=m||n&&L(new n)!=R||i&&L(new i)!=C)&&(L=function(O){var H=l(O),q=H==g?O.constructor:void 0,z=q?u(q):"";if(z)switch(z){case S:return b;case _:return f;case D:return m;case E:return R;case x:return C}return H}),$g=L,$g}var Ug,Wb;function HP(){if(Wb)return Ug;Wb=1;var r=nP(),e=lS(),t=dP(),n=OP(),i=BP(),l=zm(),u=cS(),f=fS(),g=1,m="[object Arguments]",R="[object Array]",C="[object Object]",b=Object.prototype,S=b.hasOwnProperty;function _(D,E,x,L,O,H){var q=l(D),z=l(E),K=q?R:i(D),ue=z?R:i(E);K=K==m?C:K,ue=ue==m?C:ue;var X=K==C,de=ue==C,j=K==ue;if(j&&u(D)){if(!u(E))return!1;q=!0,X=!1}if(j&&!X)return H||(H=new r),q||f(D)?e(D,E,x,L,O,H):t(D,E,K,x,L,O,H);if(!(x&g)){var re=X&&S.call(D,"__wrapped__"),J=de&&S.call(E,"__wrapped__");if(re||J){var Q=re?D.value():D,he=J?E.value():E;return H||(H=new r),O(Q,he,x,L,H)}}return j?(H||(H=new r),n(D,E,x,L,O,H)):!1}return Ug=_,Ug}var Wg,Vb;function qP(){if(Vb)return Wg;Vb=1;var r=HP(),e=Sh();function t(n,i,l,u,f){return n===i?!0:n==null||i==null||!e(n)&&!e(i)?n!==n&&i!==i:r(n,i,l,u,t,f)}return Wg=t,Wg}var Vg,Gb;function zP(){if(Gb)return Vg;Gb=1;var r=qP();function e(t,n){return r(t,n)}return Vg=e,Vg}var $P=zP();const Of=al($P);class Ch extends A.Component{constructor(e){super(e),this.editingAreaRef=A.createRef(),this.dirtyProps=["modules","formats","bounds","theme","children"],this.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],this.state={generation:0},this.selection=null,this.onEditorChange=(n,i,l,u)=>{var f,g;n==="text-change"?(f=this.onEditorChangeText)==null||f.call(this,this.editor.root.innerHTML,i,u,this.unprivilegedEditor):n==="selection-change"&&((g=this.onEditorChangeSelection)==null||g.call(this,i,u,this.unprivilegedEditor))};const t=this.isControlled()?e.value:e.defaultValue;this.value=t??""}validateProps(e){if(A.Children.count(e.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(A.Children.count(e.children)){const t=A.Children.only(e.children);if((t==null?void 0:t.type)==="textarea")throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.")}if(this.lastDeltaChangeSet&&e.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")}shouldComponentUpdate(e,t){if(this.validateProps(e),!this.editor||this.state.generation!==t.generation)return!0;if("value"in e){const n=this.getEditorContents(),i=e.value??"";this.isEqualValue(i,n)||this.setEditorContents(this.editor,i)}return e.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,e.readOnly),[...this.cleanProps,...this.dirtyProps].some(n=>!Of(e[n],this.props[n]))}shouldComponentRegenerate(e){return this.dirtyProps.some(t=>!Of(e[t],this.props[t]))}componentDidMount(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())}componentWillUnmount(){this.destroyEditor()}componentDidUpdate(e,t){if(this.editor&&this.shouldComponentRegenerate(e)){const n=this.editor.getContents(),i=this.editor.getSelection();this.regenerationSnapshot={delta:n,selection:i},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==t.generation){const{delta:n,selection:i}=this.regenerationSnapshot;delete this.regenerationSnapshot,this.instantiateEditor();const l=this.editor;l.setContents(n),Zb(()=>this.setEditorSelection(l,i))}}instantiateEditor(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())}destroyEditor(){this.editor&&this.unhookEditor(this.editor)}isControlled(){return"value"in this.props}getEditorConfig(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,tabIndex:this.props.tabIndex,theme:this.props.theme}}getEditor(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor}createEditor(e,t){const n=new Ve(e,t);return t.tabIndex!=null&&this.setEditorTabIndex(n,t.tabIndex),this.hookEditor(n),n}hookEditor(e){this.unprivilegedEditor=this.makeUnprivilegedEditor(e),e.on("editor-change",this.onEditorChange)}unhookEditor(e){e.off("editor-change",this.onEditorChange)}getEditorContents(){return this.value}getEditorSelection(){return this.selection}isDelta(e){return e&&e.ops}isEqualValue(e,t){return this.isDelta(e)&&this.isDelta(t)?Of(e.ops,t.ops):Of(e,t)}setEditorContents(e,t){this.value=t;const n=this.getEditorSelection();typeof t=="string"?e.setContents(e.clipboard.convert({html:t})):e.setContents(t),Zb(()=>this.setEditorSelection(e,n))}setEditorSelection(e,t){if(this.selection=t,t){const n=e.getLength();t.index=Math.max(0,Math.min(t.index,n-1)),t.length=Math.max(0,Math.min(t.length,n-1-t.index)),e.setSelection(t)}}setEditorTabIndex(e,t){var n;(n=e==null?void 0:e.scroll)!=null&&n.domNode&&(e.scroll.domNode.tabIndex=t)}setEditorReadOnly(e,t){t?e.disable():e.enable()}makeUnprivilegedEditor(e){const t=e;return{getHTML:()=>t.root.innerHTML,getSemanticHTML:t.getSemanticHTML.bind(t),getLength:t.getLength.bind(t),getText:t.getText.bind(t),getContents:t.getContents.bind(t),getSelection:t.getSelection.bind(t),getBounds:t.getBounds.bind(t)}}getEditingArea(){const e=this.editingAreaRef.current;if(!e)throw new Error("Cannot find element for editing area");if(e.nodeType===3)throw new Error("Editing area cannot be a text node");return e}renderEditingArea(){const{children:e,preserveWhitespace:t}=this.props,{generation:n}=this.state,i={key:n,ref:this.editingAreaRef};return A.Children.count(e)?A.cloneElement(A.Children.only(e),i):t?A.createElement("pre",{...i}):A.createElement("div",{...i})}render(){return A.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:`quill ${this.props.className??""}`,onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())}onEditorChangeText(e,t,n,i){var u,f;if(!this.editor)return;const l=this.isDelta(this.value)?i.getContents():i.getHTML();l!==this.getEditorContents()&&(this.lastDeltaChangeSet=t,this.value=l,(f=(u=this.props).onChange)==null||f.call(u,e,t,n,i))}onEditorChangeSelection(e,t,n){var f,g,m,R,C,b;if(!this.editor)return;const i=this.getEditorSelection(),l=!i&&e,u=i&&!e;Of(e,i)||(this.selection=e,(g=(f=this.props).onChangeSelection)==null||g.call(f,e,t,n),l?(R=(m=this.props).onFocus)==null||R.call(m,e,t,n):u&&((b=(C=this.props).onBlur)==null||b.call(C,i,t,n)))}focus(){this.editor&&this.editor.focus()}blur(){this.editor&&(this.selection=null,this.editor.blur())}}Ch.displayName="React Quill";Ch.Quill=Ve;Ch.defaultProps={theme:"snow",modules:{},readOnly:!1};function Zb(r){Promise.resolve().then(r)}const UP="_AEditorWrapper_1i771_1",WP="_AEditorContainer_1i771_7",VP="_AEditor_1i771_1",GP="_Primary_1i771_466",ZP="_ReadOnly_1i771_536",KP="_Raw_1i771_687",YP="_LimitContainer_1i771_701",XP="_Limit_1i771_701",JP="_Indicator_1i771_724",QP="_Resizer_1i771_733",jn={AEditorWrapper:UP,AEditorContainer:WP,AEditor:VP,Primary:GP,ReadOnly:ZP,Error:"_Error_1i771_613",Raw:KP,LimitContainer:YP,Limit:XP,Indicator:JP,Resizer:QP,"ql-tablepicker-row":"_ql-tablepicker-row_1i771_767","ql-tablepicker-cell":"_ql-tablepicker-cell_1i771_770","ql-tablepicker-grid":"_ql-tablepicker-grid_1i771_778","ql-tablepicker-inner-cell":"_ql-tablepicker-inner-cell_1i771_782","ql-tablepicker-options":"_ql-tablepicker-options_1i771_791","ql-tablepicker-tooltip":"_ql-tablepicker-tooltip_1i771_802","ql-tableui-options":"_ql-tableui-options_1i771_821","ql-tableui-options__item":"_ql-tableui-options__item_1i771_833","ql-tableui-options__item-icon":"_ql-tableui-options__item-icon_1i771_852","ql-tableui-options__item-text":"_ql-tableui-options__item-text_1i771_857","ql-tableui-helper":"_ql-tableui-helper_1i771_861","ql-tableui-helper__icon":"_ql-tableui-helper__icon_1i771_873","ql-tableui-helper__text":"_ql-tableui-helper__text_1i771_883"};class eN{constructor(e){ft(this,"quill");ft(this,"picker",null);ft(this,"tooltip",null);ft(this,"toolbar",null);ft(this,"tableButton",null);ft(this,"CONSTANTS",{MAX_ROWS:10,MAX_COLS:10,CELL_SIZE:18,SPACING:5,PICKER_PADDING:20});ft(this,"CLASSNAMES",{tooltip:jn["ql-tablepicker-tooltip"],grid:jn["ql-tablepicker-grid"],row:jn["ql-tablepicker-row"],cell:jn["ql-tablepicker-cell"],innerCell:jn["ql-tablepicker-inner-cell"],options:jn["ql-tablepicker-options"]});ft(this,"COLORS",{highlight:"var(--AEditor_Addon_hover_color)",normal:"var(--AEditor_Addon_Primary_background-color)",border:"1px solid var(--AEditor_Addon_Primary_color)"});ft(this,"boundHandlers",{globalClick:this.handleGlobalClick.bind(this),tableButtonClick:this.handleTableButtonClick.bind(this),gridMouseOver:this.handleGridMouseOver.bind(this),gridMouseOut:this.handleGridMouseOut.bind(this),gridClick:this.handleGridClick.bind(this),highlightReset:()=>this.highlightCells(0,0)});this.quill=e,this.initializeTablePicker(),document.addEventListener("click",this.boundHandlers.globalClick)}destroy(){document.removeEventListener("click",this.boundHandlers.globalClick),this.tableButton&&this.tableButton.removeEventListener("click",this.boundHandlers.tableButtonClick),this.hidePicker()}handleGlobalClick(e){if(!this.picker)return;const t=e.target;this.isTableButtonOrPicker(t)||this.hidePicker()}isTableButtonOrPicker(e){return!!e.closest("button.ql-table")||!!e.closest(`.${this.CLASSNAMES.options}`)}initializeTablePicker(){if(this.toolbar=this.quill.getModule("toolbar"),this.tableButton=this.toolbar.container.querySelector("button.ql-table"),!this.tableButton){console.warn("Table button not found");return}this.toolbar.handlers.table=()=>{},this.tableButton.addEventListener("click",this.boundHandlers.tableButtonClick)}handleTableButtonClick(e){if(e.preventDefault(),e.stopPropagation(),this.picker&&document.body.contains(this.picker)){this.hidePicker();return}this.showTablePicker(e.target)}createElement(e,t){const n=document.createElement("div");return n.className=e,t&&(n.textContent=t),n}showTablePicker(e){this.hidePicker(),this.closeOtherOptions();const t=e.closest("button.ql-table");t&&t.classList.add("ql-expanded"),this.createPicker(e)}closeOtherOptions(){document.querySelectorAll(".ql-picker.ql-expanded").forEach(e=>{e.classList.remove("ql-expanded")})}createPicker(e){const t=document.createDocumentFragment();this.picker=this.createElement(this.CLASSNAMES.options);const n=this.createGrid();t.appendChild(n),this.picker.appendChild(t),this.positionPicker(e),document.body.appendChild(this.picker),this.picker.addEventListener("mouseover",this.boundHandlers.gridMouseOver),this.picker.addEventListener("mouseout",this.boundHandlers.gridMouseOut),this.picker.addEventListener("click",this.boundHandlers.gridClick),this.picker.addEventListener("mouseleave",this.boundHandlers.highlightReset)}handleGridMouseOver(e){const t=this.findTargetCell(e);if(!t)return;const[n,i]=this.getCellCoordinates(t);this.highlightCells(n+1,i+1),this.showTooltip(t,n+1,i+1)}handleGridMouseOut(e){var t;(t=this.picker)!=null&&t.contains(e.relatedTarget)||this.removeTooltip()}handleGridClick(e){const t=this.findTargetCell(e);if(!t)return;const[n,i]=this.getCellCoordinates(t);this.insertTable(n+1,i+1),this.removeTooltip(),this.hidePicker()}findTargetCell(e){return e.target.closest(`.${this.CLASSNAMES.cell}`)}getCellCoordinates(e){const t=parseInt(e.getAttribute("data-row")||"0",10),n=parseInt(e.getAttribute("data-col")||"0",10);return[t,n]}createGrid(){const e=this.createElement(this.CLASSNAMES.grid),t=document.createDocumentFragment(),{MAX_ROWS:n,MAX_COLS:i}=this.CONSTANTS;for(let l=0;l<n;l++){const u=this.createElement(this.CLASSNAMES.row);for(let f=0;f<i;f++){const g=this.createElement(this.CLASSNAMES.cell),m=this.createElement(this.CLASSNAMES.innerCell);g.setAttribute("data-row",l.toString()),g.setAttribute("data-col",f.toString()),g.appendChild(m),u.appendChild(g)}t.appendChild(u)}return e.appendChild(t),e}showTooltip(e,t,n){this.removeTooltip(),this.tooltip=this.createElement(this.CLASSNAMES.tooltip,`${t}×${n}`),document.body.appendChild(this.tooltip);const{top:i,left:l}=this.calculateTooltipPosition(e,this.tooltip);this.tooltip.style.top=`${i}px`,this.tooltip.style.left=`${l}px`}calculateTooltipPosition(e,t){const{SPACING:n}=this.CONSTANTS,i=e.getBoundingClientRect(),l=t.getBoundingClientRect(),u=this.getViewportMetrics();let f=i.top-l.height-n,g=i.left;return f<0&&(f=i.bottom+n),g+l.width>u.width&&(g=u.width-l.width-n),{top:f,left:g}}getViewportMetrics(){return{width:window.innerWidth,height:window.innerHeight,scrollTop:window.scrollY||document.documentElement.scrollTop,scrollLeft:window.scrollX||document.documentElement.scrollLeft}}removeTooltip(){this.tooltip&&(this.tooltip.remove(),this.tooltip=null)}positionPicker(e){if(!this.picker)return;const{CELL_SIZE:t,MAX_ROWS:n,MAX_COLS:i,PICKER_PADDING:l}=this.CONSTANTS,u=e.getBoundingClientRect(),f=this.getViewportMetrics(),g=t*n+l,m=t*i+l,R=this.isElementInViewport(u),{top:C,left:b}=this.calculatePickerPosition(u,R,{pickerWidth:m,pickerHeight:g,viewport:f});this.picker.style.top=`${C}px`,this.picker.style.left=`${b}px`}isElementInViewport(e){const t=this.getViewportMetrics();return e.top>=0&&e.left>=0&&e.bottom<=t.height&&e.right<=t.width}calculatePickerPosition(e,t,n){const{pickerWidth:i,pickerHeight:l,viewport:u}=n,{width:f,height:g,scrollTop:m,scrollLeft:R}=u;let C,b;if(t)C=e.bottom+m,b=e.left+R;else{const S=this.quill.getSelection();if(S){const _=this.quill.getBounds(S.index),D=this.quill.container.getBoundingClientRect();C=D.top+_.bottom+m,b=D.left+_.left+R}else C=(g-l)/2+m,b=(f-i)/2+R}return C+l>g+m&&(C=Math.max(m,C-l-(t?e.height:0))),b+i>f+R&&(b=Math.max(R,f+R-i)),{top:C,left:b}}highlightCells(e,t){if(!this.picker)return;const n=this.picker.querySelectorAll(`.${this.CLASSNAMES.innerCell}`),{NORMAL:i,HIGHLIGHT:l}={NORMAL:this.COLORS.normal,HIGHLIGHT:this.COLORS.highlight};for(let u=0;u<n.length;u++){const f=n[u],g=f.parentElement;if(!g)continue;const[m,R]=this.getCellCoordinates(g);f.style.backgroundColor=m<e&&R<t?l:i}}insertTable(e,t){const n=this.quill.getSelection(!0);if(!n)return;const[i]=this.quill.getLeaf(n.index);if(!i)return;this.prepareInsertionPoint(i,n);const l=this.quill.getModule("table");this.quill.setSelection(n.index,0),l.insertTable(e,t);const u=this.quill.root.querySelector("table:last-of-type");if(u){const f=u.querySelectorAll("td, th");for(let m=0;m<f.length;m++)f[m].style.border=this.COLORS.border;const g=this.quill.getSelection();g&&this.quill.setSelection(g.index,0)}}prepareInsertionPoint(e,t){const n=this.findTableParent(e.parent);if(n){const i=this.quill.getIndex(n)+n.length();this.quill.insertText(i,`
|
348
348
|
`,"user"),this.quill.setSelection(i+1,0),t.index=i+1}else{const l=this.quill.getLine(t.index)[0];l&&l.length()>1?(this.quill.insertText(t.index,`
|
349
349
|
|
350
350
|
`,"user"),t.index+=2):(this.quill.insertText(t.index,`
|
351
|
-
`,"user"),t.index+=1)}}findTableParent(e){let t=e;for(;t;){if(t.domNode&&t.domNode.tagName==="TABLE")return t;t=t.parent}return null}hidePicker(){this.removeTooltip(),this.picker&&(this.picker.remove(),this.picker=null),this.tableButton&&this.tableButton.classList.remove("ql-expanded")}}var Ou={},Kb;function tN(){if(Kb)return Ou;Kb=1;var r=Hs;if(process.env.NODE_ENV==="production")Ou.createRoot=r.createRoot,Ou.hydrateRoot=r.hydrateRoot;else{var e=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Ou.createRoot=function(t,n){e.usingClientEntryPoint=!0;try{return r.createRoot(t,n)}finally{e.usingClientEntryPoint=!1}},Ou.hydrateRoot=function(t,n,i){e.usingClientEntryPoint=!0;try{return r.hydrateRoot(t,n,i)}finally{e.usingClientEntryPoint=!1}}}return Ou}var rN=tN();const Yb=al(rN);class nN{constructor(e,t){ft(this,"DEFAULTS",{maxRowCount:-1});ft(this,"quill");ft(this,"options");ft(this,"position",null);ft(this,"table");ft(this,"selectedCell",null);ft(this,"menuRoot",null);ft(this,"helperTextElement",null);ft(this,"scrollTimeout",null);ft(this,"SCROLL_DEBOUNCE_TIME",80);ft(this,"lastSelectedCellRef",null);ft(this,"boundDocClickHandler",this.hideMenu.bind(this));ft(this,"boundEditorChangeHandler",this.editorChangeHandler.bind(this));ft(this,"boundContextMenuHandler",this.contextMenuHandler.bind(this));ft(this,"boundCopyHandler",this.copyHandler.bind(this));ft(this,"boundScrollHandler",this.handleScroll.bind(this));ft(this,"boundPasteHandler",this.pasteHandler.bind(this));ft(this,"menuItems",[]);ft(this,"positionCache",new Map);ft(this,"POSITION_CACHE_LIFETIME",1e3);ft(this,"reactRoot",null);if(this.quill=e,this.options={...this.DEFAULTS,...t},this.table=e.getModule("table"),!this.table){console.error('"table" module not found');return}this.initializeMenuItems(),this.overrideTableMethods(),this.initializeHelperText(),this.attachEventListeners()}initializeMenuItems(){this.menuItems=[{handler:()=>{(!(this.options.maxRowCount!==void 0&&this.options.maxRowCount>0)||this.getColCount()<(this.options.maxRowCount||0))&&this.table.insertColumnRight()},icon:Ns.renderToString(v.jsx(jr,{icon:"AddColRight"})),title:hn.AEditor["Insert Column Right"]},{handler:()=>{(!(this.options.maxRowCount!==void 0&&this.options.maxRowCount>0)||this.getColCount()<(this.options.maxRowCount||0))&&this.table.insertColumnLeft()},icon:Ns.renderToString(v.jsx(jr,{icon:"AddColLeft"})),title:hn.AEditor["Insert Column Left"]},{handler:()=>{this.table.insertRowAbove()},icon:Ns.renderToString(v.jsx(jr,{icon:"AddRowAbove"})),title:hn.AEditor["Insert Row Top"]},{handler:()=>{this.table.insertRowBelow()},icon:Ns.renderToString(v.jsx(jr,{icon:"AddRowBelow"})),title:hn.AEditor["Insert Row Bottom"]},{handler:()=>{this.table.deleteColumn()},icon:Ns.renderToString(v.jsx(jr,{icon:"RemoveCol"})),title:hn.AEditor["Delete Column"]},{handler:()=>{this.table.deleteRow()},icon:Ns.renderToString(v.jsx(jr,{icon:"RemoveRow"})),title:hn.AEditor["Delete Row"]},{handler:()=>{this.table.deleteTable()},icon:Ns.renderToString(v.jsx(jr,{icon:"Trash"})),title:hn.AEditor["Delete Table"]}]}overrideTableMethods(){const e=this.table.insertTable;this.table.insertTable=(...n)=>{const i=e.apply(this.table,n),l=this.quill.getSelection();return l&&(this.quill.focus(),setTimeout(()=>this.detectButton(l),0)),i};const t=this.table.deleteTable;this.table.deleteTable=(...n)=>{const i=t.apply(this.table,n);return this.cleanupTableUI(),i}}initializeHelperText(){this.helperTextElement=document.createElement("div"),this.helperTextElement.className=jn["ql-tableui-helper"];const e=document.createElement("span");e.className=Fe.clsx("Caption1",jn["ql-tableui-helper__text"],"NoSelect"),e.textContent=hn.AEditor["Right click to open properties"];const t=document.createElement("span");t.className=jn["ql-tableui-helper__icon"],t.innerHTML=Ns.renderToString(v.jsx(jr,{icon:"MoreHorizontal",size:"xs"})),t.addEventListener("click",n=>{n.preventDefault(),n.stopPropagation(),this.menuRoot?this.hideMenu():this.showMenu()}),this.helperTextElement.appendChild(e),this.helperTextElement.appendChild(t),this.helperTextElement.style.display="none",this.quill.container.appendChild(this.helperTextElement)}attachEventListeners(){this.quill.on("editor-change",this.boundEditorChangeHandler),this.quill.root.addEventListener("contextmenu",this.boundContextMenuHandler),this.quill.root.addEventListener("copy",this.boundCopyHandler),this.quill.root.addEventListener("paste",this.boundPasteHandler),window.addEventListener("scroll",this.boundScrollHandler,!0)}removeEventListeners(){this.quill.off("editor-change",this.boundEditorChangeHandler),this.quill.root.removeEventListener("contextmenu",this.boundContextMenuHandler),this.quill.root.removeEventListener("copy",this.boundCopyHandler),this.quill.root.removeEventListener("paste",this.boundPasteHandler),document.removeEventListener("click",this.boundDocClickHandler),window.removeEventListener("scroll",this.boundScrollHandler,!0)}editorChangeHandler(e,t,n,i){e==="selection-change"&&this.detectButton(t)}contextMenuHandler(e){return this.isTable()?(e.preventDefault(),this.showMenu(),!1):!0}copyHandler(e){if(!this.selectedCell||!e.clipboardData)return;e.preventDefault();const t=this.selectedCell.textContent||"";e.clipboardData.setData("text/plain",t)}isTable(e){return e=e||this.quill.getSelection(),e?!!(this.quill.getFormat(e.index).table&&!e.length):!1}getColCount(e){if(e=e||this.quill.getSelection(),!e)return 0;const[t]=this.table.getTable(e);return t?t.rows().reduce((n,i)=>Math.max(i.children.length,n),0):0}showMenu(){if(this.menuRoot){this.hideMenu();return}if(!this.selectedCell)return;this.menuRoot||(this.menuRoot=document.createElement("div"),document.body.appendChild(this.menuRoot));const e=this.getBoundingRectWithCache(this.selectedCell),t=window.innerWidth,n=window.innerHeight,i=A.memo(({item:u,index:f})=>v.jsxs("div",{className:jn["ql-tableui-options__item"],onClick:this.createItemClickHandler(u),children:[v.jsx("span",{className:jn["ql-tableui-options__item-icon"],dangerouslySetInnerHTML:{__html:u.icon}}),v.jsx("span",{className:jn["ql-tableui-options__item-text"],children:u.title})]},f)),l=()=>v.jsx("div",{className:jn["ql-tableui-options"],style:{position:"fixed",visibility:"hidden",zIndex:1e4},children:this.menuItems.map((u,f)=>v.jsx(i,{item:u,index:f},f))});try{Yb.createRoot?(this.reactRoot=Yb.createRoot(this.menuRoot),this.reactRoot.render(v.jsx(l,{}))):Hs.render(v.jsx(l,{}),this.menuRoot)}catch{Hs.render(v.jsx(l,{}),this.menuRoot)}document.addEventListener("click",this.boundDocClickHandler),requestAnimationFrame(()=>{if(!this.menuRoot)return;const u=this.menuRoot.firstElementChild;if(u){const f=u.getBoundingClientRect();let g=e.bottom+window.scrollY,m=e.left+window.scrollX;m+f.width>t&&(m=e.right-f.width+window.scrollX),g+f.height>n+window.scrollY&&(g=e.top-f.height+window.scrollY),u.style.top=`${g}px`,u.style.left=`${m}px`,u.style.visibility="visible"}})}hideMenu(){this.menuRoot&&(document.removeEventListener("click",this.boundDocClickHandler),this.reactRoot?(this.reactRoot.unmount(),this.reactRoot=null):Hs.unmountComponentAtNode(this.menuRoot),this.menuRoot.remove(),this.menuRoot=null)}detectButton(e){if(e)if(this.isTable(e)){const[t,n]=this.quill.getLine(e.index);if(!t||!t.domNode)return;const i=t.domNode,l=`${i.tagName}-${i.offsetLeft}-${i.offsetTop}`;this.selectedCell===i||this.lastSelectedCellRef===l||(this.clearAllTableCellOutlines(),i.style.outline="2px solid var(--acent-brand)",i.style.outlineOffset="-1px",this.selectedCell=i,this.lastSelectedCellRef=l),this.showHelperText();const f=this.quill.container.getBoundingClientRect(),g=i.getBoundingClientRect(),m={bottom:g.bottom-f.top,height:g.height,left:g.left-f.left,right:g.right-f.left,top:g.top-f.top,width:g.width,x:g.x,y:g.y,toJSON:()=>JSON.stringify(m)};this.position&&(this.position.top!==m.top||this.position.left!==m.left)&&this.hideMenu(),this.position=m}else this.cleanupTableUI()}clearAllTableCellOutlines(){this.selectedCell&&(this.selectedCell.style.removeProperty("outline"),this.selectedCell.style.removeProperty("outline-offset"),this.selectedCell=null),this.quill.root.querySelectorAll("td, th").forEach(t=>{t instanceof HTMLElement&&(t.style.removeProperty("outline"),t.style.removeProperty("outline-offset"))}),this.lastSelectedCellRef=null}showHelperText(){if(!this.selectedCell||!this.helperTextElement)return;const e=this.quill.getSelection();if(!e)return;const[t]=this.table.getTable(e);if(!t||!t.domNode)return;const i=t.domNode.getBoundingClientRect(),l=this.quill.container.getBoundingClientRect();if(!(i.bottom<l.top+5||i.top>l.bottom-5)){let f=i.top-l.top-20;i.top<l.top&&(f=5),this.helperTextElement.style.display="block",this.helperTextElement.style.left=`${i.left-l.left}px`,this.helperTextElement.style.top=`${f}px`}else this.helperTextElement.style.display="none"}removeHelperText(){this.helperTextElement&&(this.helperTextElement.style.display="none")}handleScroll(){this.removeHelperText(),this.hideMenu(),this.scrollTimeout&&clearTimeout(this.scrollTimeout),this.scrollTimeout=setTimeout(()=>{const e=this.quill.getSelection();e&&this.isTable(e)&&this.detectButton(e),this.scrollTimeout=null},this.SCROLL_DEBOUNCE_TIME)}destroy(){this.removeEventListeners(),this.cleanupTableUI(),this.helperTextElement&&this.helperTextElement.remove(),this.scrollTimeout&&(clearTimeout(this.scrollTimeout),this.scrollTimeout=null),this.positionCache.clear(),this.reactRoot=null,this.selectedCell=null,this.helperTextElement=null,this.position=null,this.options=this.DEFAULTS,this.menuRoot=null,this.table=null}createItemClickHandler(e){return t=>{t.preventDefault(),t.stopPropagation(),this.quill.focus(),e.handler(),this.hideMenu(),this.detectButton(this.quill.getSelection())}}getBoundingRectWithCache(e){const t=Date.now(),n=this.positionCache.get(e);if(n&&t-n.timestamp<this.POSITION_CACHE_LIFETIME)return n.rect;const i=e.getBoundingClientRect();return this.positionCache.set(e,{rect:i,timestamp:t}),i}pasteHandler(){this.clearAllTableCellOutlines(),setTimeout(()=>{const e=this.quill.getSelection();e&&this.detectButton(e)},0)}cleanupTableUI(){this.removeHelperText(),this.clearAllTableCellOutlines(),this.hideMenu(),this.lastSelectedCellRef=null}}const iN=()=>{const r=[1,2,3,!1,4],e=Ve.import("ui/icons");e.table=Ns.renderToString(v.jsx(jr,{icon:"Table",strokeWidth:2.5})),e.divider=Ns.renderToString(v.jsx(jr,{icon:"Minus",strokeWidth:2.5}));const t=Ve.import("blots/block/embed");class n extends t{static create(l){const u=super.create(l);return u.style.border="var(--AEditor_Addon_Primary_border)",u.style.borderBottom="none",u.style.transition="border var(--Transition)",u}}return ft(n,"blotName","divider"),ft(n,"tagName","hr"),Ve.register({"modules/imageCompress":wO,"modules/resize":kO,"modules/tablePicker":eN,"modules/tableUI":nN,"formats/header":lN(r),"formats/divider":n},!0),{header:r,FORMAT_DEFAULT:["bold","italic","underline","strike","blockquote","table","size","header","color","background","indent","list","align","image","link","video","divider"],FORMAT_TITLE:["bold","italic","underline","strike","color","background"],TOOLBAR_DEFAULT:[[{header:r}],["bold","italic","underline","strike","blockquote","divider","table",{color:[]},{background:[]}],[{list:"ordered"},{list:"bullet"},{indent:"-1"},{indent:"+1"},{align:[]}],["link","image","video"],["clean"]],TOOLBAR_TITLE:[["bold","italic","underline","strike",{color:[]},{background:[]},"clean"]]}};let Gg=null;const oN=()=>(Gg||(Gg=iN()),Gg),ls=r=>Array.from(r).length,sN=r=>r.ops?r.ops.reduce((e,t)=>typeof t.insert=="string"?e+t.insert.replace(/\n/g,"").split("").reduce((n,i)=>n+(i.charCodeAt(0)<=127?1:3),0):typeof t.insert=="object"&&t.insert.image?e+t.insert.image.length:e,0):0;function aN(r){return Array.isArray(r)?r.filter(Boolean).length>0:!!r}function lN(r){const e=Ve.import("formats/header");return e.whitelist=r,e}const cN=A.memo(r=>{const{onEnterPress:e,errorMessage:t,type:n="Primary",editorRef:i,useValue:l,useError:u,placeholder:f,tabIndex:g,autoFocus:m,editorProps:R,wrapProps:w,helperText:b,label:S,labelProps:_,wrapType:D,style:E,minHeight:x,maxHeight:L,contentHeight:O,contentMaxHeight:H=1e3,toolbarSize:q="Med",toolbarType:z="Default",readOnly:K,limitPosition:ue="Bottom",maxLength:X,editorClassName:de,editorStyle:j,...re}=r,J=A.useMemo(()=>oN(),[]),Q=A.useMemo(()=>n==="ReadOnly"||K,[n,K]),he=A.useMemo(()=>O?20:0,[O]),[me,be]=A.useState(q==="Med"?40:50),ce=A.useMemo(()=>Q?0:me,[Q,me]),[ke,le]=A.useMemo(()=>X||!u||Q||ue==="Top"?[0,0]:[20,6],[X,u,Q,ue]),oe=A.useMemo(()=>ke+le,[ke,le]),[ve,Oe]=A.useState(O),[et,we]=A.useState(!1),[Pe,je]=A.useState(!1),ze=A.useRef(null),We=A.useRef(0),De=A.useRef(0),Ae=A.useMemo(()=>S?24:0,[S]),_e=A.useMemo(()=>z==="Title"?!0:void 0,[z]),Ge=A.useMemo(()=>O||x||_e,[O,x,_e]),lt=A.useMemo(()=>Ge?"fit-content":L?L+Ae:`calc(100% - ${Ae}px)`,[Ge,L,Ae]),$e=A.useMemo(()=>{if(O){if(ve)switch(n){case"ReadOnly":return ve;case"Raw":return ve+oe;default:return ve+ce+oe}}else return},[O,ve,n,ce,oe]),ht=A.useMemo(()=>{if(!(!L||L<=ce+oe))switch(n){case"ReadOnly":return L;case"Raw":return L-oe;default:return L-ce-oe}},[n,ce,oe,L]),Le=A.useMemo(()=>{if(x&&O){const tt=Math.min(x-ce-oe,O);return Q?tt:tt+ce+oe}else return x||(O?void 0:`calc(100% - ${Ae}px)`)},[x,O,Ae,ce,oe,Q]),Xe=A.useMemo(()=>aN(t)?"Error":n,[t,n]),[it,Ct]=nn(l,""),[_t,wt]=nn(u,!1),[bt,St]=A.useState(()=>{if(!it)return new Gt;const tt=document.createElement("div");return tt.innerHTML=it,new Ve(tt,{readOnly:!0}).getContents()}),Me=A.useCallback(sN,[]),pt=A.useMemo(()=>Math.floor(5e4*.68234)*3,[]),Et=A.useMemo(()=>v.jsx(uN,{calculateSize:Me,error:_t,htmlDelta:bt,limit:pt,useError:u,isReadonly:Q}),[Me,_t,bt,Q,pt,u]),mt=A.useMemo(()=>({clipboard:{matchVisual:!1,..._e&&{matchers:[["img",()=>!1],["table",()=>!1],["iframe",()=>!1],["video",()=>!1],["h1, h2, h3, h4, h5, h6",()=>({})],["blockquote",()=>({})]]}},keyboard:_e?{bindings:{Enter:{key:"Enter",handler:tt=>{if(e&&Ct){const Re=tt.root.innerHTML;e(Re)}return!1}}}}:{bindings:{}},imageCompress:{quality:.5},...!Q&&{resize:{locale:{altTip:hn.AEditor["Image size adjust"],center:hn.AEditor.Center,floatLeft:hn.AEditor.floatLeft,floatRight:hn.AEditor.floatRight,inputTip:hn.AEditor["Input on mouse down"],restore:hn.AEditor.Restore}},...!_e&&{table:!0,tablePicker:!0,tableUI:!0},toolbar:{container:_e?J.TOOLBAR_TITLE:J.TOOLBAR_DEFAULT,handlers:{divider:function(){const tt=this.quill,Re=tt.getSelection(!0);if(!Re||_e)return;const xt=tt.getModule("table"),Rt=xt&&!!xt.getTable(Re)[0];Rt||tt.insertText(Re.index,`
|
351
|
+
`,"user"),t.index+=1)}}findTableParent(e){let t=e;for(;t;){if(t.domNode&&t.domNode.tagName==="TABLE")return t;t=t.parent}return null}hidePicker(){this.removeTooltip(),this.picker&&(this.picker.remove(),this.picker=null),this.tableButton&&this.tableButton.classList.remove("ql-expanded")}}var Ou={},Kb;function tN(){if(Kb)return Ou;Kb=1;var r=Hs;if(process.env.NODE_ENV==="production")Ou.createRoot=r.createRoot,Ou.hydrateRoot=r.hydrateRoot;else{var e=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Ou.createRoot=function(t,n){e.usingClientEntryPoint=!0;try{return r.createRoot(t,n)}finally{e.usingClientEntryPoint=!1}},Ou.hydrateRoot=function(t,n,i){e.usingClientEntryPoint=!0;try{return r.hydrateRoot(t,n,i)}finally{e.usingClientEntryPoint=!1}}}return Ou}var rN=tN();const Yb=al(rN);class nN{constructor(e,t){ft(this,"DEFAULTS",{maxRowCount:-1});ft(this,"quill");ft(this,"options");ft(this,"position",null);ft(this,"table");ft(this,"selectedCell",null);ft(this,"menuRoot",null);ft(this,"helperTextElement",null);ft(this,"scrollTimeout",null);ft(this,"SCROLL_DEBOUNCE_TIME",80);ft(this,"lastSelectedCellRef",null);ft(this,"boundDocClickHandler",this.hideMenu.bind(this));ft(this,"boundEditorChangeHandler",this.editorChangeHandler.bind(this));ft(this,"boundContextMenuHandler",this.contextMenuHandler.bind(this));ft(this,"boundCopyHandler",this.copyHandler.bind(this));ft(this,"boundScrollHandler",this.handleScroll.bind(this));ft(this,"boundPasteHandler",this.pasteHandler.bind(this));ft(this,"menuItems",[]);ft(this,"positionCache",new Map);ft(this,"POSITION_CACHE_LIFETIME",1e3);ft(this,"reactRoot",null);if(this.quill=e,this.options={...this.DEFAULTS,...t},this.table=e.getModule("table"),!this.table){console.error('"table" module not found');return}this.initializeMenuItems(),this.overrideTableMethods(),this.initializeHelperText(),this.attachEventListeners()}initializeMenuItems(){this.menuItems=[{handler:()=>{(!(this.options.maxRowCount!==void 0&&this.options.maxRowCount>0)||this.getColCount()<(this.options.maxRowCount||0))&&this.table.insertColumnRight()},icon:Ns.renderToString(v.jsx(jr,{icon:"AddColRight"})),title:hn.AEditor["Insert Column Right"]},{handler:()=>{(!(this.options.maxRowCount!==void 0&&this.options.maxRowCount>0)||this.getColCount()<(this.options.maxRowCount||0))&&this.table.insertColumnLeft()},icon:Ns.renderToString(v.jsx(jr,{icon:"AddColLeft"})),title:hn.AEditor["Insert Column Left"]},{handler:()=>{this.table.insertRowAbove()},icon:Ns.renderToString(v.jsx(jr,{icon:"AddRowAbove"})),title:hn.AEditor["Insert Row Top"]},{handler:()=>{this.table.insertRowBelow()},icon:Ns.renderToString(v.jsx(jr,{icon:"AddRowBelow"})),title:hn.AEditor["Insert Row Bottom"]},{handler:()=>{this.table.deleteColumn()},icon:Ns.renderToString(v.jsx(jr,{icon:"RemoveCol"})),title:hn.AEditor["Delete Column"]},{handler:()=>{this.table.deleteRow()},icon:Ns.renderToString(v.jsx(jr,{icon:"RemoveRow"})),title:hn.AEditor["Delete Row"]},{handler:()=>{this.table.deleteTable()},icon:Ns.renderToString(v.jsx(jr,{icon:"Trash"})),title:hn.AEditor["Delete Table"]}]}overrideTableMethods(){const e=this.table.insertTable;this.table.insertTable=(...n)=>{const i=e.apply(this.table,n),l=this.quill.getSelection();return l&&(this.quill.focus(),setTimeout(()=>this.detectButton(l),0)),i};const t=this.table.deleteTable;this.table.deleteTable=(...n)=>{const i=t.apply(this.table,n);return this.cleanupTableUI(),i}}initializeHelperText(){this.helperTextElement=document.createElement("div"),this.helperTextElement.className=jn["ql-tableui-helper"];const e=document.createElement("span");e.className=Fe.clsx("Caption1",jn["ql-tableui-helper__text"],"NoSelect"),e.textContent=hn.AEditor["Right click to open properties"];const t=document.createElement("span");t.className=jn["ql-tableui-helper__icon"],t.innerHTML=Ns.renderToString(v.jsx(jr,{icon:"MoreHorizontal",size:"xs"})),t.addEventListener("click",n=>{n.preventDefault(),n.stopPropagation(),this.menuRoot?this.hideMenu():this.showMenu()}),this.helperTextElement.appendChild(e),this.helperTextElement.appendChild(t),this.helperTextElement.style.display="none",this.quill.container.appendChild(this.helperTextElement)}attachEventListeners(){this.quill.on("editor-change",this.boundEditorChangeHandler),this.quill.root.addEventListener("contextmenu",this.boundContextMenuHandler),this.quill.root.addEventListener("copy",this.boundCopyHandler),this.quill.root.addEventListener("paste",this.boundPasteHandler),window.addEventListener("scroll",this.boundScrollHandler,!0)}removeEventListeners(){this.quill.off("editor-change",this.boundEditorChangeHandler),this.quill.root.removeEventListener("contextmenu",this.boundContextMenuHandler),this.quill.root.removeEventListener("copy",this.boundCopyHandler),this.quill.root.removeEventListener("paste",this.boundPasteHandler),document.removeEventListener("click",this.boundDocClickHandler),window.removeEventListener("scroll",this.boundScrollHandler,!0)}editorChangeHandler(e,t,n,i){e==="selection-change"&&this.detectButton(t)}contextMenuHandler(e){return this.isTable()?(e.preventDefault(),this.showMenu(),!1):!0}copyHandler(e){if(!this.selectedCell||!e.clipboardData)return;e.preventDefault();const t=this.selectedCell.textContent||"";e.clipboardData.setData("text/plain",t)}isTable(e){return e=e||this.quill.getSelection(),e?!!(this.quill.getFormat(e.index).table&&!e.length):!1}getColCount(e){if(e=e||this.quill.getSelection(),!e)return 0;const[t]=this.table.getTable(e);return t?t.rows().reduce((n,i)=>Math.max(i.children.length,n),0):0}showMenu(){if(this.menuRoot){this.hideMenu();return}if(!this.selectedCell)return;this.menuRoot||(this.menuRoot=document.createElement("div"),document.body.appendChild(this.menuRoot));const e=this.getBoundingRectWithCache(this.selectedCell),t=window.innerWidth,n=window.innerHeight,i=A.memo(({item:u,index:f})=>v.jsxs("div",{className:jn["ql-tableui-options__item"],onClick:this.createItemClickHandler(u),children:[v.jsx("span",{className:jn["ql-tableui-options__item-icon"],dangerouslySetInnerHTML:{__html:u.icon}}),v.jsx("span",{className:jn["ql-tableui-options__item-text"],children:u.title})]},f)),l=()=>v.jsx("div",{className:jn["ql-tableui-options"],style:{position:"fixed",visibility:"hidden",zIndex:1e4},children:this.menuItems.map((u,f)=>v.jsx(i,{item:u,index:f},f))});try{Yb.createRoot?(this.reactRoot=Yb.createRoot(this.menuRoot),this.reactRoot.render(v.jsx(l,{}))):Hs.render(v.jsx(l,{}),this.menuRoot)}catch{Hs.render(v.jsx(l,{}),this.menuRoot)}document.addEventListener("click",this.boundDocClickHandler),requestAnimationFrame(()=>{if(!this.menuRoot)return;const u=this.menuRoot.firstElementChild;if(u){const f=u.getBoundingClientRect();let g=e.bottom+window.scrollY,m=e.left+window.scrollX;m+f.width>t&&(m=e.right-f.width+window.scrollX),g+f.height>n+window.scrollY&&(g=e.top-f.height+window.scrollY),u.style.top=`${g}px`,u.style.left=`${m}px`,u.style.visibility="visible"}})}hideMenu(){this.menuRoot&&(document.removeEventListener("click",this.boundDocClickHandler),this.reactRoot?(this.reactRoot.unmount(),this.reactRoot=null):Hs.unmountComponentAtNode(this.menuRoot),this.menuRoot.remove(),this.menuRoot=null)}detectButton(e){if(e)if(this.isTable(e)){const[t,n]=this.quill.getLine(e.index);if(!t||!t.domNode)return;const i=t.domNode,l=`${i.tagName}-${i.offsetLeft}-${i.offsetTop}`;this.selectedCell===i||this.lastSelectedCellRef===l||(this.clearAllTableCellOutlines(),i.style.outline="2px solid var(--acent-brand)",i.style.outlineOffset="-1px",this.selectedCell=i,this.lastSelectedCellRef=l),this.showHelperText();const f=this.quill.container.getBoundingClientRect(),g=i.getBoundingClientRect(),m={bottom:g.bottom-f.top,height:g.height,left:g.left-f.left,right:g.right-f.left,top:g.top-f.top,width:g.width,x:g.x,y:g.y,toJSON:()=>JSON.stringify(m)};this.position&&(this.position.top!==m.top||this.position.left!==m.left)&&this.hideMenu(),this.position=m}else this.cleanupTableUI()}clearAllTableCellOutlines(){this.selectedCell&&(this.selectedCell.style.removeProperty("outline"),this.selectedCell.style.removeProperty("outline-offset"),this.selectedCell=null),this.quill.root.querySelectorAll("td, th").forEach(t=>{t instanceof HTMLElement&&(t.style.removeProperty("outline"),t.style.removeProperty("outline-offset"))}),this.lastSelectedCellRef=null}showHelperText(){if(!this.selectedCell||!this.helperTextElement)return;const e=this.quill.getSelection();if(!e)return;const[t]=this.table.getTable(e);if(!t||!t.domNode)return;const i=t.domNode.getBoundingClientRect(),l=this.quill.container.getBoundingClientRect();if(!(i.bottom<l.top+5||i.top>l.bottom-5)){let f=i.top-l.top-20;i.top<l.top&&(f=5),this.helperTextElement.style.display="block",this.helperTextElement.style.left=`${i.left-l.left}px`,this.helperTextElement.style.top=`${f}px`}else this.helperTextElement.style.display="none"}removeHelperText(){this.helperTextElement&&(this.helperTextElement.style.display="none")}handleScroll(){this.removeHelperText(),this.hideMenu(),this.scrollTimeout&&clearTimeout(this.scrollTimeout),this.scrollTimeout=setTimeout(()=>{const e=this.quill.getSelection();e&&this.isTable(e)&&this.detectButton(e),this.scrollTimeout=null},this.SCROLL_DEBOUNCE_TIME)}destroy(){this.removeEventListeners(),this.cleanupTableUI(),this.helperTextElement&&this.helperTextElement.remove(),this.scrollTimeout&&(clearTimeout(this.scrollTimeout),this.scrollTimeout=null),this.positionCache.clear(),this.reactRoot=null,this.selectedCell=null,this.helperTextElement=null,this.position=null,this.options=this.DEFAULTS,this.menuRoot=null,this.table=null}createItemClickHandler(e){return t=>{t.preventDefault(),t.stopPropagation(),this.quill.focus(),e.handler(),this.hideMenu(),this.detectButton(this.quill.getSelection())}}getBoundingRectWithCache(e){const t=Date.now(),n=this.positionCache.get(e);if(n&&t-n.timestamp<this.POSITION_CACHE_LIFETIME)return n.rect;const i=e.getBoundingClientRect();return this.positionCache.set(e,{rect:i,timestamp:t}),i}pasteHandler(){this.clearAllTableCellOutlines(),setTimeout(()=>{const e=this.quill.getSelection();e&&this.detectButton(e)},0)}cleanupTableUI(){this.removeHelperText(),this.clearAllTableCellOutlines(),this.hideMenu(),this.lastSelectedCellRef=null}}const iN=()=>{const r=[1,2,3,!1,4],e=Ve.import("ui/icons");e.table=Ns.renderToString(v.jsx(jr,{icon:"Table",strokeWidth:2.5})),e.divider=Ns.renderToString(v.jsx(jr,{icon:"Minus",strokeWidth:2.5}));const t=Ve.import("blots/block/embed");class n extends t{static create(l){const u=super.create(l);return u.style.border="var(--AEditor_Addon_Primary_border)",u.style.borderBottom="none",u.style.transition="border var(--Transition)",u}}return ft(n,"blotName","divider"),ft(n,"tagName","hr"),Ve.register({"modules/imageCompress":wO,"modules/resize":kO,"modules/tablePicker":eN,"modules/tableUI":nN,"formats/header":lN(r),"formats/divider":n},!0),{header:r,FORMAT_DEFAULT:["bold","italic","underline","strike","blockquote","table","size","header","color","background","indent","list","align","image","link","video","divider"],FORMAT_TITLE:["bold","italic","underline","strike","color","background"],TOOLBAR_DEFAULT:[[{header:r}],["bold","italic","underline","strike","blockquote","divider","table",{color:[]},{background:[]}],[{list:"ordered"},{list:"bullet"},{indent:"-1"},{indent:"+1"},{align:[]}],["link","image","video"],["clean"]],TOOLBAR_TITLE:[["bold","italic","underline","strike",{color:[]},{background:[]},"clean"]]}};let Gg=null;const oN=()=>(Gg||(Gg=iN()),Gg),ls=r=>Array.from(r).length,sN=r=>r.ops?r.ops.reduce((e,t)=>typeof t.insert=="string"?e+t.insert.replace(/\n/g,"").split("").reduce((n,i)=>n+(i.charCodeAt(0)<=127?1:3),0):typeof t.insert=="object"&&t.insert.image?e+t.insert.image.length:e,0):0;function aN(r){return Array.isArray(r)?r.filter(Boolean).length>0:!!r}function lN(r){const e=Ve.import("formats/header");return e.whitelist=r,e}const cN=A.memo(r=>{const{onEnterPress:e,errorMessage:t,type:n="Primary",editorRef:i,useValue:l,useError:u,placeholder:f,tabIndex:g,autoFocus:m,editorProps:R,wrapProps:C,helperText:b,label:S,labelProps:_,wrapType:D,style:E,minHeight:x,maxHeight:L,contentHeight:O,contentMaxHeight:H=1e3,toolbarSize:q="Med",toolbarType:z="Default",readOnly:K,limitPosition:ue="Bottom",maxLength:X,editorClassName:de,editorStyle:j,...re}=r,J=A.useMemo(()=>oN(),[]),Q=A.useMemo(()=>n==="ReadOnly"||K,[n,K]),he=A.useMemo(()=>O?20:0,[O]),[me,be]=A.useState(q==="Med"?40:50),ce=A.useMemo(()=>Q?0:me,[Q,me]),[ke,le]=A.useMemo(()=>X||!u||Q||ue==="Top"?[0,0]:[20,6],[X,u,Q,ue]),oe=A.useMemo(()=>ke+le,[ke,le]),[ve,Oe]=A.useState(O),[et,we]=A.useState(!1),[Pe,je]=A.useState(!1),ze=A.useRef(null),We=A.useRef(0),De=A.useRef(0),Ae=A.useMemo(()=>S?24:0,[S]),_e=A.useMemo(()=>z==="Title"?!0:void 0,[z]),Ge=A.useMemo(()=>O||x||_e,[O,x,_e]),lt=A.useMemo(()=>Ge?"fit-content":L?L+Ae:`calc(100% - ${Ae}px)`,[Ge,L,Ae]),$e=A.useMemo(()=>{if(O){if(ve)switch(n){case"ReadOnly":return ve;case"Raw":return ve+oe;default:return ve+ce+oe}}else return},[O,ve,n,ce,oe]),ht=A.useMemo(()=>{if(!(!L||L<=ce+oe))switch(n){case"ReadOnly":return L;case"Raw":return L-oe;default:return L-ce-oe}},[n,ce,oe,L]),Le=A.useMemo(()=>{if(x&&O){const tt=Math.min(x-ce-oe,O);return Q?tt:tt+ce+oe}else return x||(O?void 0:`calc(100% - ${Ae}px)`)},[x,O,Ae,ce,oe,Q]),Xe=A.useMemo(()=>aN(t)?"Error":n,[t,n]),[it,Ct]=nn(l,""),[_t,wt]=nn(u,!1),[bt,St]=A.useState(()=>{if(!it)return new Gt;const tt=document.createElement("div");return tt.innerHTML=it,new Ve(tt,{readOnly:!0}).getContents()}),Me=A.useCallback(sN,[]),pt=A.useMemo(()=>Math.floor(5e4*.68234)*3,[]),Et=A.useMemo(()=>v.jsx(uN,{calculateSize:Me,error:_t,htmlDelta:bt,limit:pt,useError:u,isReadonly:Q}),[Me,_t,bt,Q,pt,u]),mt=A.useMemo(()=>({clipboard:{matchVisual:!1,..._e&&{matchers:[["img",()=>!1],["table",()=>!1],["iframe",()=>!1],["video",()=>!1],["h1, h2, h3, h4, h5, h6",()=>({})],["blockquote",()=>({})]]}},keyboard:_e?{bindings:{Enter:{key:"Enter",handler:tt=>{if(e&&Ct){const Re=tt.root.innerHTML;e(Re)}return!1}}}}:{bindings:{}},imageCompress:{quality:.5},...!Q&&{resize:{locale:{altTip:hn.AEditor["Image size adjust"],center:hn.AEditor.Center,floatLeft:hn.AEditor.floatLeft,floatRight:hn.AEditor.floatRight,inputTip:hn.AEditor["Input on mouse down"],restore:hn.AEditor.Restore}},...!_e&&{table:!0,tablePicker:!0,tableUI:!0},toolbar:{container:_e?J.TOOLBAR_TITLE:J.TOOLBAR_DEFAULT,handlers:{divider:function(){const tt=this.quill,Re=tt.getSelection(!0);if(!Re||_e)return;const xt=tt.getModule("table"),Rt=xt&&!!xt.getTable(Re)[0];Rt||tt.insertText(Re.index,`
|
352
352
|
`,Ve.sources.USER);const vt=Rt?0:1,Mt=Math.min(Re.index+vt,tt.getLength()-1);tt.insertEmbed(Mt,"divider",!0,Ve.sources.USER),setTimeout(()=>{const Qt=Math.min(Mt+1,tt.getLength()-1);tt.setSelection(Qt,0,Ve.sources.SILENT)},0)}}}}}),[Q,_e,e,Ct,J]),Dt=A.useCallback(tt=>{if(!et||!O)return;const Re=tt.clientY-De.current,xt=x?x-ce-oe:O,Rt=Math.max(xt,0),vt=L?L-ce-oe:H,Mt=Math.min(vt,Math.max(Rt,We.current+Re));ve!==Mt&&Oe(Mt),tt.preventDefault(),tt.stopPropagation()},[et,O,H,x,L,ce,oe,ve]),Ze=A.useCallback(tt=>{we(!1),je(!1),document.removeEventListener("mousemove",Dt),document.removeEventListener("mouseup",Ze),tt.preventDefault(),tt.stopPropagation()},[Dt]),At=A.useCallback(tt=>{if(!O)return;if(tt.detail===2){Oe(O);return}ve===void 0?(Oe(O),We.current=O):We.current=ve,we(!0),je(!0),De.current=tt.clientY;const Re=Rt=>{if(!O)return;const vt=Rt.clientY-De.current,Mt=x?x-ce-oe:O,Qt=Math.max(Mt,0),rr=L?L-ce-oe:H,Bt=Math.min(rr,Math.max(Qt,We.current+vt));Oe(Bt),Rt.preventDefault(),Rt.stopPropagation()},xt=Rt=>{we(!1),je(!1),document.removeEventListener("mousemove",Re),document.removeEventListener("mouseup",xt),Rt.preventDefault(),Rt.stopPropagation()};document.addEventListener("mousemove",Re),document.addEventListener("mouseup",xt),tt.preventDefault(),tt.stopPropagation()},[O,ve,x,L,ce,oe,H]),jt=A.useCallback((tt,Re,xt,Rt)=>{var rr;if(!Ct)return;const vt=Rt.getContents(),Mt=Rt.getHTML(),Qt=((rr=vt.ops)==null?void 0:rr.length)===1&&vt.ops[0].insert===`
|
353
353
|
`;wt&&wt(Me(vt)>pt),Ct(Qt?"":Mt),St(vt)},[Me,pt,wt,Ct]),mr=A.useMemo(()=>q==="Med"?7.5:12.5,[q]),kr=A.useCallback(tt=>{var vt,Mt;const Re=tt.getEditor().container;if(!Re)return null;const xt=(vt=Re.closest(".AEditorContainer"))==null?void 0:vt.querySelector(".ql-toolbar");return xt||((Mt=Re.parentElement)==null?void 0:Mt.querySelector(".ql-toolbar"))||null},[]),Cr=A.useRef([]);A.useEffect(()=>()=>{Cr.current.forEach(tt=>tt()),Cr.current=[]},[]);const ge=A.useCallback((tt,Re,xt,Rt)=>{if(!tt)return;const vt=xt;tt.addEventListener(Re,vt,Rt),Cr.current.push(()=>{tt.removeEventListener(Re,vt,Rt)})},[]),ne=A.useCallback(tt=>{if(!tt)return;const Re=tt.getEditor();if(!Re)return;const xt=Re.root;xt&&de&&xt.classList.add(...de.split(" ")),xt&&j&&Object.entries(j).forEach(([Bt,qt])=>{const sr=Bt.replace(/([A-Z])/g,Qe=>`-${Qe[0].toLowerCase()}`);xt.style[sr]=qt});const Rt={input:Bt=>{const qt=Bt.target;if(!qt)return;const sr=parseInt(qt.value,10);isNaN(sr)},keyDown:Bt=>{if(Bt.key!=="Delete"&&Bt.key!=="Backspace"&&Bt.key!=="Enter")return;const qt=document.querySelector("#editor-resizer");qt&&(qt.style.display="none")},formatExpand:Bt=>{const qt=Re.getFormat(),sr=kr(tt);sr&&Bt.forEach(Qe=>{if(qt[Qe]){const Tt=qt[Qe],yt=`.ql-${Qe}`,Lt=sr.querySelector(`${yt} .ql-picker-label`),vr=sr.querySelectorAll(`${yt} .ql-picker-item`),Y=Array.from(vr).find(pe=>pe.getAttribute("data-value")===Tt);Y&&(Y.classList.add("ql-selected"),Lt==null||Lt.classList.add("ql-active"))}})},resizeToolbar:Bt=>{if(!Bt.length)return;const Qe=Bt[0].target.getBoundingClientRect(),Tt=Math.ceil(Qe.height);be(yt=>Math.abs(yt-Tt)<.1?yt:Tt)}},vt=Bt=>{const qt=Bt.target;if(qt.tagName==="IMG")try{const sr=Ve.find(qt);if(sr){const Qe=Re.getIndex(sr);queueMicrotask(()=>{Re.setSelection(Qe,1,Ve.sources.USER)}),Bt.preventDefault(),Bt.stopPropagation()}}catch(sr){console.error("이미지 선택 중 오류:",sr)}},Mt=kr(tt),Qt=new ResizeObserver(Rt.resizeToolbar);Mt&&(Qt.observe(Mt),Cr.current.push(()=>Qt.disconnect()));const rr=["header","color","background"];return rr.forEach(Bt=>{const qt=Mt==null?void 0:Mt.querySelector(`.ql-${Bt} .ql-picker-label`);qt&&ge(qt,"click",()=>Rt.formatExpand(rr))}),xt&&(ge(xt,"keydown",Rt.keyDown),ge(xt,"click",vt)),()=>{}},[kr,ge,de,j]),Je=A.useCallback(tt=>{if(!tt||!X)return;const Re=tt.getEditor();if(!Re)return;let xt=!1,Rt="",vt=null,Mt=0;const Qt=qt=>qt.replace(/[\r\n\u2028\u2029]+/g," ").replace(/\s+/g," "),rr=qt=>{xt||(vt&&window.cancelAnimationFrame(vt),vt=window.requestAnimationFrame(()=>{xt=!0;try{qt()}finally{xt=!1,vt=null}}))},Bt=[];if(_e){const qt=Lt=>{if(Lt.key==="Enter")return Lt.preventDefault(),e&&e(Re.root.innerHTML),!1},sr=()=>{const Lt=Re.getText().slice(0,-1);if(Lt===Rt)return;const vr=/[\r\n\u2028\u2029]/.test(Lt),Y=ls(Lt)>X;if(vr||Y){const pe=Re.getSelection(),Be=Re.getFormat();Mt=pe?pe.index:0;let ot=Lt;if(vr&&(ot=Qt(ot)),Y&&(ot=Array.from(ot).slice(0,X).join("")),ot!==Lt){const Ot=new Gt().insert(ot+`
|
354
354
|
`);Re.setContents(Ot),Object.keys(Be).length>0&&Re.formatText(0,ot.length,Be);const $t=Math.min(Mt,ot.length);Re.setSelection($t,0)}Rt=ot}else Rt=Lt},Qe=Lt=>{Lt.preventDefault();const vr=Lt.clipboardData;if(!vr)return;const Y=Re.getSelection();if(!Y)return;const pe=Re.getText().slice(0,-1),Be=Y.index>0?pe.substring(0,Y.index):"",ot=Y.index+Y.length<pe.length?pe.substring(Y.index+Y.length):"",Ot=Qt(vr.getData("text/plain")),$t=Be+Ot+ot;if(ls($t)<=X)Y.length>0&&Re.deleteText(Y.index,Y.length),Re.insertText(Y.index,Ot),Re.setSelection(Y.index+ls(Ot),0);else{const Ut=X-(ls(Be)+ls(ot));if(Ut<=0)return;const nr=Array.from(Ot).slice(0,Ut).join("");Re.updateContents(new Gt().retain(Y.index).delete(Y.length).insert(nr)),Re.setSelection(Y.index+ls(nr),0)}rr(()=>{const Ut=Re.getText().slice(0,-1);if(/[\r\n\u2028\u2029]/.test(Ut)){const nr=Qt(Ut),ir=Re.getFormat();Re.setContents(new Gt().insert(nr+`
|
355
|
-
`)),Object.keys(ir).length>0&&Re.formatText(0,nr.length,ir);const fr=Math.min(Y.index+ls(Ot),nr.length);Re.setSelection(fr,0),Rt=nr}else Rt=Ut})},Tt=Lt=>{(Lt.inputType==="insertLineBreak"||Lt.inputType==="insertText"&&Lt.data&&/[\r\n\u2028\u2029]/.test(Lt.data))&&Lt.preventDefault()},yt=()=>{rr(sr)};ge(Re.root,"keydown",qt),ge(Re.root,"paste",Qe),ge(Re.root,"beforeinput",Tt),Re.on("text-change",yt),Bt.push(()=>{ge(Re.root,"keydown",qt),ge(Re.root,"paste",Qe),ge(Re.root,"beforeinput",Tt),Re.off("text-change",yt),vt&&window.cancelAnimationFrame(vt)}),rr(sr)}else{const qt=()=>{const Lt=Re.getText();if(ls(Lt)-1<=X)return;const Y=Re.getSelection(),pe=Re.getContents();Mt=Y?Y.index:0;let Be=0,ot=0;for(const kt of pe.ops||[])if(typeof kt.insert=="string"){const Ut=Array.from(kt.insert);for(const nr of Ut){if(Be>=X)break;Be++,ot+=nr.length}if(Be>=X)break}else kt.insert&&(Be+=1);const Ot=Lt.substring(0,ot);Re.setText(Ot);const $t=Math.min(Mt,Ot.length);Re.setSelection($t,0)},sr=(Lt,vr)=>{const Y=Re.getSelection();if(!Y)return!0;const pe=Re.getText(),Be=ls(pe)-1,ot=Y.length>0?ls(pe.substring(Y.index,Y.index+Y.length)):0,Ot=X-(Be-ot);if(ls(vr)<=Ot)return!0;if(Lt.preventDefault(),Lt.type==="paste"){const kt=Y.index,Ut=Array.from(vr).slice(0,Ot).join(""),nr=new Gt;Y.length?nr.retain(kt).delete(Y.length):nr.retain(kt),nr.insert(Ut),Re.updateContents(nr,Ve.sources.USER),requestAnimationFrame(()=>{const ir=kt+ls(Ut);ir<=Re.getLength()&&Re.setSelection(ir,0)})}return!1},Qe=()=>{rr(qt)},Tt=Lt=>{Lt.inputType.startsWith("insert")&&sr(Lt,Lt.data||"")},yt=Lt=>{const vr=Lt.clipboardData;if(vr){const Y=Qt(vr.getData("text/plain"));sr(Lt,Y)}};Re.on("text-change",Qe),ge(Re.root,"beforeinput",Tt,{capture:!0}),ge(Re.root,"paste",yt,{capture:!0}),Bt.push(()=>{Re.off("text-change",Qe),ge(Re.root,"beforeinput",Tt,{capture:!0}),ge(Re.root,"paste",yt,{capture:!0}),vt&&window.cancelAnimationFrame(vt)})}return()=>Bt.forEach(qt=>qt())},[X,_e,e,ge]),ct=A.useCallback(tt=>{typeof i=="function"?i(tt):i&&(i.current=tt),tt&&(ne(tt),Je(tt))},[i,ne,Je]);return v.jsx(ec,{helperText:b,wrapType:D,labelProps:{..._,style:{minHeight:S?20:void 0,marginBottom:S?4:0}},errorMessage:t,label:v.jsxs(Sn,{style:{gap:4},children:[S,!X&&ue==="Top"&&Et]}),wrapProps:{...w,className:Fe.clsx(w==null?void 0:w.className,!Ge&&jn.AEditorWrapper),style:{...w==null?void 0:w.style,height:lt}},children:v.jsxs($r,{...re,className:Fe.clsx(re.className,jn.AEditorContainer),style:{...E,height:$e,minHeight:Le},children:[v.jsx(Ch,{...R,ref:ct,className:Fe.clsx(R==null?void 0:R.className,jn.AEditor,jn[Xe],_e&&"Title"),formats:_e?J.FORMAT_TITLE:J.FORMAT_DEFAULT,modules:mt,placeholder:f,readOnly:Q,theme:"snow",value:bt,style:{...R==null?void 0:R.style,maxHeight:ht?ht+ce:void 0,"--icon-size":`${q==="Med"?18:24}px`,"--editor-padding":_e?"8px 12px":"12px","--toolbar-padding":`${mr}px`,"--content-height":_e?"34px":ve?`${ve}px`:"100%","--content-max-height":ht?`${ht}px`:"100%","--default-text":`'${hn.AEditor.Default}'`,"--arrow-background":`url("data:image/svg+xml,${encodeURIComponent(Ns.renderToString(v.jsx(jr,{icon:"EditorArrow"})))}`,"--title-color-picker-width":_e?"780px":"142px"},onChange:jt}),O&&v.jsxs(v.Fragment,{children:[v.jsx("div",{ref:ze,className:jn.Resizer,style:{height:he,bottom:u&&!Q?oe:0},onMouseDown:At}),Pe&&v.jsx("div",{className:Fe.clsx(jn.Indicator,"NoSelect","Label1"),style:{height:he,bottom:u&&!Q?oe:0},children:`${Math.round(ve)}px`})]}),v.jsx("div",{className:Fe.clsx(jn.LimitContainer,"NoSelect"),style:{marginTop:le,minHeight:ke,display:!X&&ue==="Bottom"?"flex":"none"},children:Et})]})})},(r,e)=>r.errorMessage===e.errorMessage&&r.type===e.type&&r.useValue===e.useValue&&r.useError===e.useError&&r.placeholder===e.placeholder&&r.readOnly===e.readOnly&&r.maxLength===e.maxLength&&r.contentHeight===e.contentHeight&&r.minHeight===e.minHeight&&r.maxHeight===e.maxHeight&&r.toolbarSize===e.toolbarSize&&r.toolbarType===e.toolbarType&&r.limitPosition===e.limitPosition&&r.editorClassName===e.editorClassName&&r.editorStyle===e.editorStyle),uN=A.memo(({calculateSize:r,error:e,htmlDelta:t,limit:n,useError:i,isReadonly:l})=>{if(!i||l)return null;const u=r(t),f=e||u>n;return v.jsxs(Sa,{className:jn.Limit,children:["(",v.jsx("span",{className:f?jn.Error:void 0,children:Kc(u)})," / ",Kc(n),")"]})});function nh(r,e){Array.isArray(r)||(r=[r]);for(const t of r){if(e(t))return t;if(!t.children||t.children.length<1)continue;const n=nh(t.children,e);if(n)return n}}function ud(r,e){Array.isArray(r)||(r=[r]);for(const t of r)e(t),!(!t.children||t.children.length<1)&&ud(t.children,e)}function dS(r,e){Array.isArray(r)||(r=[r]);const t=[];return ud(r,(n,i)=>t.push(e(n,i))),t}function hS(r,e){Array.isArray(r)||(r=[r]);for(const t of r){if(!e(t))return!1;if(!(!t.children||t.children.length<1)&&!hS(t.children,e))return!1}return!0}function fN(r,e){Array.isArray(r)||(r=[r]);const t=[];return ud(r,(n,i)=>{e(n,i)&&t.push(n)}),t}function dN(r){Array.isArray(r)||(r=[r]);let e=0;return ud(r,()=>e++),e}function hN(r,e,t,n){if(n(e,t))return null;Array.isArray(r)||(r=[r]);const i=nh(r,u=>{var f;return(f=u.children)==null?void 0:f.some(g=>n(g,e))}),l=nh(r,u=>{var f;return(f=u.children)==null?void 0:f.some(g=>n(g,t))});if(i===void 0&&l===void 0){const u=r.findIndex(g=>n(g,e)),f=r.findIndex(g=>n(g,t));return r.splice(u,1),r.splice(f,0,e),[...r]}else if(i!==void 0&&l!==void 0&&n(i,l)&&i.children){const u=i.children.findIndex(g=>n(g,e)),f=i.children.findIndex(g=>n(g,t));return u===void 0||f===void 0?null:(i.children.splice(u,1),i.children.splice(f,0,e),i.children=[...i.children],[...r])}return null}function pN(r,e,t){const n=[],i=[...e];for(;i.length>0;){const l=i.shift();if(l&&!n.find(u=>t(u,l))&&(n.push(l),!(!l.children||l.children.length<1)))for(const u of l.children)i.push(u)}return n}function gN(r,e,t){Array.isArray(r)||(r=[r]);const n=dS(r,u=>u),i=[],l=[...e];for(;l.length>0;){const u=l.shift();if(!u||i.find(g=>t(g,u)))continue;i.push(u);const f=n.find(g=>{var m;return(m=g.children)==null?void 0:m.some(R=>t(R,u))});f&&l.push(f)}return i}const rl={find:nh,forEach:ud,map:dS,every:hS,filter:fN,length:dN,replace:hN,descendants:pN,ancestors:gN},mN="_AWrap_f5le3_1",vN="_AContainer_f5le3_10",yN="_ATree_f5le3_18",bN="_ATreeBody_f5le3_30",_N="_CoverBorder_f5le3_36",xN="_InsertBorder_f5le3_45",SN="_ATreeHeader_f5le3_76",CN="_ATreeBodyHeader_f5le3_82",wN="_ATreeBodyHeaderResources_f5le3_92",AN="_ATreeItem_f5le3_98",TN="_IsSelectUsed_f5le3_114",EN="_IsSelected_f5le3_117",kN="_IsSearchSelected_f5le3_122",RN="_IsHovered_f5le3_133",IN="_CheckBox_f5le3_137",LN="_Indents_f5le3_149",MN="_ExpandIcon_f5le3_156",DN="_Content_f5le3_168",ON="_RightSticky_f5le3_177",PN="_SearchInputWrap_f5le3_188",NN="_SearchInput_f5le3_188",FN="_RightAddon_f5le3_200",jN="_RightAddonIcon_f5le3_211",BN="_Loader_f5le3_218",dn={AWrap:mN,AContainer:vN,ATree:yN,ATreeBody:bN,CoverBorder:_N,InsertBorder:xN,ATreeHeader:SN,ATreeBodyHeader:CN,ATreeBodyHeaderResources:wN,ATreeItem:AN,IsSelectUsed:TN,IsSelected:EN,IsSearchSelected:kN,IsHovered:RN,CheckBox:IN,Indents:LN,ExpandIcon:MN,Content:DN,RightSticky:ON,SearchInputWrap:PN,SearchInput:NN,RightAddon:FN,RightAddonIcon:jN,Loader:BN},HN=r=>{const{isEqual:e,item:t,selectDisabled:n,selectUnused:i,isParentDisabled:l,indents:u,extIndents:f,useExpand:g,useSelect:m,useSearch:R,onDragStart:w,onDragOver:b,onDragEnd:S,showCheckbox:_,icons:D,iconWidth:E,isSelectMulti:x,isDraggable:L,isParentCheckHovered:O,hoverdItem:H,onMouseOver:q,onMouseLeave:z,ContentRenderer:K,TreeItemRenderer:ue,RightStickyAddon:X,resources:de,containerRef:j,TreeItemStyle:re,TreeItemClassName:J,searchItemStyle:Q,searchItemClassName:he,height:me}=r,{children:be}=A.useMemo(()=>t,[t]),[ce,ke]=A.useMemo(()=>g,[g]),[le,oe]=A.useMemo(()=>m,[m]),[ve,Oe]=A.useMemo(()=>R,[R]),et=A.useMemo(()=>i?i(t):!1,[i,t]),we=A.useMemo(()=>!n||l?l:n(t),[n,l,t]),Pe=A.useMemo(()=>ce.some(Ze=>e(Ze,t)),[ce,e,t]),je=A.useMemo(()=>!be||be.length<1?"noChild":Pe?"expanded":"collapsed",[be,Pe]),ze=A.useMemo(()=>{const Ze=D[je];return um.includes(Ze)?v.jsx(jr,{style:{width:E,height:E},icon:Ze}):Ze},[D,E,je]),We=A.useCallback(Ze=>{!ke||je==="noChild"||(ke(Pe?ce.filter(At=>!e(At,t)):[...ce,t]),Ze.stopPropagation())},[ke,ce,Pe,t,e,je]),De=A.useMemo(()=>le.some(Ze=>e(Ze,t)),[le,e,t]),Ae=A.useCallback(()=>{!oe||we||(oe(x?De?le.filter(Ze=>!e(Ze,t)):[...le,t]:[t]),ve&&Oe&&ve.items.some(Ze=>e(Ze,t))&&Oe({...ve,item:t}))},[x,we,De,ve,Oe,oe,e,le,t]),_e=A.useMemo(()=>ve==null?void 0:ve.items.some(Ze=>e(Ze,t)),[ve,e,t]),Ge=A.useMemo(()=>_e&&(ve==null?void 0:ve.item)&&e(ve.item,t),[_e,ve,e,t]),lt=A.useRef(null);A.useEffect(()=>{setTimeout(()=>{if(Ge&<.current&&j.current){const{top:Ze,bottom:At}=lt.current.getBoundingClientRect(),{top:jt,bottom:mr}=j.current.getBoundingClientRect();(Ze<jt||At>mr)&<.current.scrollIntoView({behavior:"smooth",block:"center"})}},10)},[j,Ge]);const[$e,ht]=A.useState(!1),Le=A.useCallback(()=>!we&&ht(!0),[we]),Xe=A.useCallback(()=>!we&&ht(!1),[we]),it=A.useMemo(()=>rl.map(t,Ze=>Ze).filter(Ze=>!(n!=null&&n(Ze))&&!(i!=null&&i(Ze))),[n,i,t]),Ct=A.useMemo(()=>!_||!x?!1:De&&it.some(Ze=>le.some(At=>e(Ze,At)))&&it.some(Ze=>!le.some(At=>e(Ze,At))),[_,x,De,it,e,le]),_t=A.useMemo(()=>_?x?it.every(Ze=>le.some(At=>e(Ze,At))):le.some(Ze=>e(Ze,t)):!1,[_,x,it,t,e,le]),wt=A.useCallback(()=>{if(!(!oe||we))if(x)if(De){const Ze=le.filter(At=>!(i!=null&&i(At))&&!(n!=null&&n(At))&&it.some(jt=>e(jt,At)));Ze.length>0&&oe(le.filter(At=>!Ze.some(jt=>e(At,jt))))}else{const Ze=it.filter(At=>!(i!=null&&i(At))&&!(n!=null&&n(At))&&!le.some(jt=>e(jt,At)));Ze.length>0&&oe([...le,...Ze])}else oe([t])},[we,n,i,x,oe,e,De,le,it,t]),bt=A.useCallback(Ze=>{we||wt(),Ze.stopPropagation()},[we,wt]),St=A.useMemo(()=>{if(!_||!x||we)return"";if(De){const At=le.filter(jt=>!(i!=null&&i(jt))&&!(n!=null&&n(jt))&&it.some(mr=>e(mr,jt)));if(At.length>0)return de["deselect n"](At.length)}const Ze=it.filter(At=>!(i!=null&&i(At))&&!(n!=null&&n(At))&&!le.some(jt=>e(jt,At)));return de["select n"](Ze.length)},[n,i,de,we,_,x,De,it,e,le]),Me=A.useMemo(()=>Lr.getContent(X,r),[X,r]),pt=A.useMemo(()=>Lr.getContent(re,r),[r,re]),Et=A.useMemo(()=>Lr.getContent(J,r),[r,J]),mt=A.useMemo(()=>Lr.getContent(he,r),[r,he]),Dt=A.useMemo(()=>Lr.getContent(Q,r),[r,Q]);return v.jsxs(A.Fragment,{children:[v.jsxs($r,{className:Fe.clsx(dn.ATreeItem,De&&dn.IsSelected,!we&&($e||O)&&dn.IsHovered,_e&&dn.IsSearched,Ge&&(mt||dn.IsSearchSelected),!et&&dn.IsSelectUsed,"NoSelect",Et),style:{...pt,...Ge&&Dt,"--ATreeItem_height":`${me}px`},draggable:L,onDragStart:()=>w==null?void 0:w(t),onDragEnter:Ze=>b==null?void 0:b(Ze,t),onDragEnd:Ze=>S==null?void 0:S(Ze,t),onClick:Ae,abaseRef:lt,isDisabled:we,onMouseOver:Ze=>q==null?void 0:q(Ze,t),onMouseLeave:Ze=>z==null?void 0:z(Ze,t),children:[_&&v.jsx(Zu,{style:{visibility:we||et?"hidden":"visible",zIndex:we||et?0:2},className:dn.CheckBox,useCheck:[+_t,wt],onClick:bt,isIndeterminate:Ct,onMouseOver:Le,onMouseOut:Xe,tooltip:St,isDisabled:we}),v.jsx("div",{className:dn.Indents,style:{paddingLeft:_?0:r.icons.noChild?12:0},children:u.map((Ze,At)=>{const jt=At===u.length-1;return v.jsx(P2,{value:Ze,map:{Collapsed:f?f({iconWidth:E}).collapsed:v.jsx(zN,{iconWidth:E}),Expanded:f?f({iconWidth:E,isLast:jt}).expanded:v.jsx(qN,{iconWidth:E,isLast:jt}),IsLast:f?f({iconWidth:E}).isLast:v.jsx($N,{iconWidth:E})}},At)})}),ze&&v.jsx("div",{className:dn.ExpandIcon,style:{width:E,minWidth:E,maxWidth:E},onClick:We,children:ze}),v.jsx("div",{className:Fe.clsx(dn.Content,"NoSelect"),children:v.jsx(K,{isEqual:e,item:t,indents:u,extIndents:f,useExpand:g,useSelect:m,useSearch:R,onDragStart:w,onDragOver:b,onDragEnd:S,showCheckbox:_,icons:D,iconWidth:E,isSelectMulti:x,isDraggable:L,isParentCheckHovered:x&&($e||O),hoverdItem:H,onMouseOver:q,onMouseLeave:z,ContentRenderer:K,TreeItemRenderer:ue,RightStickyAddon:X,resources:de,containerRef:j,TreeItemStyle:re,TreeItemClassName:J,searchItemClassName:mt,searchItemStyle:Q,height:me})}),Me&&v.jsx("div",{className:dn.RightSticky,children:Me})]}),Pe&&(be==null?void 0:be.map((Ze,At)=>v.jsx(ue,{isEqual:e,item:Ze,selectDisabled:n,selectUnused:i,indents:[...u.map(jt=>jt==="IsLast"?"Collapsed":jt),At===be.length-1?"IsLast":"Expanded"],extIndents:f,ContentRenderer:K,useExpand:g,useSelect:m,useSearch:R,onDragStart:w,onDragOver:b,onDragEnd:S,showCheckbox:_,icons:D,iconWidth:E,isSelectMulti:x,isDraggable:L,isParentCheckHovered:x&&($e||O),hoverdItem:H,onMouseOver:q,onMouseLeave:z,TreeItemRenderer:ue,RightStickyAddon:X,resources:de,containerRef:j,TreeItemStyle:re,TreeItemClassName:J,searchItemClassName:mt,searchItemStyle:Q,height:me},At)))]})},qN=({iconWidth:r,isLast:e})=>v.jsx("div",{style:{width:r/8*3,height:"100%",borderLeft:"var(--ATree_Indent_border)",marginLeft:r/2,marginRight:r/8,boxSizing:"border-box",transition:"border-color var(--Transition)"},children:e&&v.jsx("div",{style:{borderBottom:"var(--ATree_Indent_border)",height:"50%",transition:"border-color var(--Transition)"}})}),zN=({iconWidth:r})=>v.jsx("div",{style:{width:r,height:"100%",borderLeft:"none",marginLeft:0,transition:"border-color var(--Transition)"}}),$N=({iconWidth:r})=>v.jsx("div",{style:{width:r/8*3,height:"50%",borderLeft:"var(--ATree_Indent_border)",borderBottom:"var(--ATree_Indent_border)",marginLeft:r/2,marginRight:r/8,boxSizing:"border-box",transition:"border-color var(--Transition)"}}),UN=r=>{const{isEqual:e,searchResult:t,initSearch:n,searchUp:i,searchDown:l,searchEnter:u,isDisabled:f,isLoading:g,resources:m,maxLength:R,autoFocus:w}=r,b=A.useCallback(D=>{D.key==="Enter"?u():D.key==="ArrowDown"?l():D.key==="ArrowUp"&&i(),D.preventDefault(),D.stopPropagation()},[l,u,i]),S=A.useCallback(D=>{n(D)},[n]),_=A.useMemo(()=>f||g?-1:void 0,[f,g]);return v.jsx(tc,{className:dn.SearchInput,wrapProps:{className:dn.SearchInputWrap},isDisabled:f,tabIndex:_,useValue:[(t==null?void 0:t.keyword)??"",S],onKeyDown:b,placeholder:m["Search(Placeholder)"],RightAddon:v.jsx(WN,{isEqual:e,searchResult:t,searchUp:i,searchDown:l,searchEnter:u,resources:m}),maxLength:R,autoFocus:w})},WN=r=>{const{isEqual:e,searchResult:t,searchUp:n,searchDown:i,searchEnter:l,resources:u}=r,f=A.useMemo(()=>!t||t.items.length<1?0:t.items.findIndex(_=>t.item&&e(_,t.item))+1,[t,e]),g=A.useMemo(()=>!t||t.items.length<1?0:t.items.length,[t]),m=A.useMemo(()=>f<2,[f]),R=A.useMemo(()=>f>=g,[f,g]),w=A.useCallback(_=>{_.stopPropagation(),!m&&n()},[n,m]),b=A.useCallback(_=>{_.stopPropagation(),!R&&i()},[i,R]),S=A.useCallback(_=>{_.stopPropagation(),l()},[l]);return v.jsx("div",{className:Fe.clsx(dn.RightAddon,"NoSelect"),children:t?v.jsxs(v.Fragment,{children:[f,"/",g,v.jsx($r,{onClick:w,isDisabled:m,children:v.jsx(jr,{className:dn.RightAddonIcon,icon:"ArrowUp",mask:""})}),v.jsx($r,{onClick:b,isDisabled:R,children:v.jsx(jr,{className:dn.RightAddonIcon,icon:"ArrowDown"})})]}):v.jsx(_i,{type:"Raw",className:dn.RightAddonIcon,style:{marginRight:4},icon:"Search",onClick:S,tooltip:u["Search(Button)"]})})},VN=r=>{var sr;const{pk:e,selectDisabled:t,selectUnused:n,useItems:i,useExpand:l,useSelect:u,useSearch:f,showCheckbox:g,iconWidth:m=24,icons:R={noChild:"Folder",collapsed:"FolderCopy",expanded:"FolderOpen"},indents:w,isSelectMulti:b=!1,noSearch:S=!1,isDraggable:_,noSyncSearchSelect:D=!1,actionRef:E,placeholder:x,searchPredicate:L=ZN,isDisabled:O,isLoading:H,ContentRenderer:q=GN,TreeItemRenderer:z=HN,RightStickyAddon:K,TopRightAddon:ue,TreeTopAddon:X,resources:de,maxLength:j,autoFocus:re,TreeItemStyle:J,TreeItemClassName:Q,OverflowPadding:he,insertBorder:me,width:be,searchItemClassName:ce,searchItemStyle:ke,height:le=40,...oe}=r,ve=A.useMemo(()=>({...hn.ATree,...de}),[de]),Oe=A.useCallback((Qe,Tt)=>e!==void 0?Array.isArray(e)?e.every(yt=>nl.isEqual(Qe[yt],Tt[yt])):nl.isEqual(Qe[e],Tt[e]):nl.isEqual(Qe,Tt),[e]),et=A.useRef(null),[we,Pe]=nn(i,[]),je=A.useMemo(()=>rl.map(we,Qe=>Qe),[we]),[ze,We]=nn(l,[]),[De,Ae]=nn(u,[]),[_e,Ge]=nn(f,void 0),lt=A.useCallback(Qe=>{if(O||!We||ze.some(Lt=>Oe(Lt,Qe)))return;const Tt=[];let yt=Qe;for(;yt;){const Lt=yt;ze.find(vr=>Oe(vr,Lt))||Tt.push(Lt),yt=je.find(vr=>{var Y;return(Y=vr.children)==null?void 0:Y.some(pe=>Oe(pe,Lt))})}We([...ze,...Tt])},[ze,O,Oe,We,je]),$e=A.useCallback(()=>{!We||O||We([...je])},[je,O,We]),ht=A.useCallback(()=>{!We||O||We([])},[We,O]),Le=A.useCallback(Qe=>{!Ae||O||n!=null&&n(Qe)||(Ae([Qe]),lt(Qe))},[Ae,O,n,lt]),Xe=A.useCallback(Qe=>{if(!Ge||O)return;if(!Qe||S){Ge(void 0),D||Ae==null||Ae([]);return}const Tt=rl.filter(we,Lt=>L(Qe,Lt));let yt;if(Tt.find(Lt=>(_e==null?void 0:_e.item)&&Oe(Lt,_e.item))?yt=_e==null?void 0:_e.item:Tt.length>0&&(yt=Tt[0]),Ge({keyword:Qe,items:Tt,item:yt}),yt&<(yt),Ae&&!D)if(b)Ae(Tt);else{const Lt=Tt.find(vr=>yt&&Oe(vr,yt));Ae(Lt?[Lt]:[])}},[we,O,Oe,L,Ge,Ae,lt,D,S,b,_e]),it=A.useRef(!1);A.useEffect(()=>{it.current=!0},[we]),A.useEffect(()=>{_e&&it.current&&(Xe(_e.keyword),it.current=!1)},[Xe,_e]);const Ct=A.useCallback(()=>{if(!_e||!Ge||O)return;let Qe=_e.items.findIndex(Tt=>_e.item&&Oe(Tt,_e.item))-1;Qe<0||(Ge({..._e,item:_e.items[Qe]}),lt(_e.items[Qe]),D||Le(_e.items[Qe]))},[_e,lt,Ge,O,Le,Oe,D]),_t=A.useCallback(()=>{if(!_e||!Ge||O)return;let Qe=_e.items.findIndex(Tt=>_e.item&&Oe(Tt,_e.item))+1;Qe>=_e.items.length||(Ge({..._e,item:_e.items[Qe]}),lt(_e.items[Qe]),D||Le(_e.items[Qe]))},[_e,lt,O,Ge,Le,Oe,D]),wt=A.useCallback(()=>{if(!_e||!Ge||O)return;let Qe=_e.items.findIndex(yt=>_e.item&&Oe(yt,_e.item));if(!D||n!=null&&n(_e.items[Qe])){_t();return}if(De.some(yt=>_e.item&&Oe(yt,_e.item))){let yt=Qe+1;const Lt=_e.items[yt];if(yt>=_e.items.length)return;Ge({..._e,item:Lt}),Le(Lt)}else Le(_e.items[Qe])},[_e,Ge,O,De,D,_t,Oe,Le,n]),[bt,St]=A.useState(!1),Me=A.useCallback(()=>St(!0),[]),pt=A.useCallback(()=>St(!1),[]),Et=A.useMemo(()=>n?rl.map(we,Qe=>Qe).filter(Qe=>!n(Qe)):t?rl.map(we,Qe=>Qe).filter(Qe=>!t(Qe)):rl.map(we,Qe=>Qe),[n,t,we]),mt=A.useMemo(()=>!g||!b?!1:De.length>0&&Et.length>De.length,[g,b,De,Et]),Dt=A.useMemo(()=>!g||!b?!1:De.length>0&&Et.length===De.length,[g,b,De,Et]),Ze=A.useCallback(()=>{if(!Ae||!b||O)return;const Qe=De.filter(Tt=>!(n!=null&&n(Tt))&&!(t!=null&&t(Tt))&&Et.some(yt=>Oe(yt,Tt)));if(Qe.length>0)Ae(De.filter(Tt=>!Qe.some(yt=>Oe(Tt,yt))));else{const Tt=Et.filter(yt=>!(n!=null&&n(yt))&&!(t!=null&&t(yt))&&!De.some(Lt=>Oe(Lt,yt)));Tt.length>0&&Ae([...De,...Tt])}},[b,O,n,t,Ae,De,Et,Oe]),At=A.useMemo(()=>{if(!g||!b||O)return"";const Qe=De.filter(Tt=>!(n!=null&&n(Tt))&&!(t!=null&&t(Tt))&&Et.some(yt=>Oe(yt,Tt)));if(Qe.length>0)return ve["deselect n"](Qe.length);{const Tt=Et.filter(yt=>!(n!=null&&n(yt))&&!(t!=null&&t(yt))&&!De.some(Lt=>Oe(Lt,yt)));return ve["select n"](Tt.length)}},[n,t,O,ve,g,b,Et,De,Oe]),[jt,mr]=A.useState(null),[kr,Cr]=A.useState(null),ge=A.useCallback(Qe=>{!_||O||mr(Qe)},[O,_]),ne=A.useCallback((Qe,Tt)=>{if(!_||O||!jt||(Qe.preventDefault(),Qe.stopPropagation(),Cr(Tt),!Pe))return;const yt=rl.replace(we,jt,Tt,Oe);yt&&Pe(yt)},[_,we,jt,O,Pe,Oe]),Je=A.useCallback(()=>{if(!_||O||!jt||!kr||!Pe||Oe(jt,kr))return;const Qe=rl.replace(we,jt,kr,Oe);Qe&&(Pe(Qe),mr(null))},[_,Pe,we,jt,kr,Oe,O]);A.useEffect(()=>{var Qe;g||(Qe=et.current)==null||Qe.scrollTo(0,0)},[g,et]),A.useEffect(()=>{!b&&De.length>1&&(Ae==null||Ae([De[De.length-1]]))},[b,Ae,De]),A.useEffect(()=>{E&&(E.current={expandAll:$e,collapseAll:ht})},[E,$e,ht]),A.useEffect(()=>{if(!t||!Ae)return;const Qe=De.filter(Tt=>!t(Tt));De.length!==Qe.length&&Ae(Qe)},[t,De,Ae]),A.useEffect(()=>{if(!n||!Ae)return;const Qe=De.filter(Tt=>!n(Tt));De.length!==Qe.length&&Ae(Qe)},[n,De,Ae]),A.useEffect(()=>{Ge&&Ge(void 0)},[Ge]);const[ct,tt]=A.useState(!1);A.useEffect(()=>{tt(Qe=>!Qe)},[we]);const[Re,xt]=A.useState(null),Rt=A.useCallback((Qe,Tt)=>{O||(Qe.stopPropagation(),Qe.preventDefault(),xt(Tt))},[O]),vt=A.useCallback((Qe,Tt)=>{Re===null||O||Oe(Tt,Re)&&(Qe.stopPropagation(),Qe.preventDefault(),xt(null))},[Re,O,Oe]),Mt=A.useRef(null),[Qt,rr]=A.useState(!1),[Bt,qt]=A.useState((sr=Mt.current)==null?void 0:sr.scrollHeight);return A.useEffect(()=>{if(ze.length<0)return;const Qe=et.current,Tt=Mt.current,yt=Qe.clientHeight<Tt.clientHeight;qt(yt?Tt.scrollHeight:Qe.clientHeight),rr(yt)},[ze]),v.jsxs($r,{...oe,isDisabled:O,className:Fe.clsx(oe.className,dn.AWrap),children:[(!S||ue)&&v.jsxs(Sn,{className:dn.ATreeHeader,children:[!S&&v.jsx(UN,{isEqual:Oe,searchResult:_e,initSearch:Xe,searchUp:Ct,searchDown:_t,searchEnter:wt,isLoading:H,isDisabled:O,resources:ve,maxLength:j,autoFocus:re}),!S&&ue&&v.jsx(mn,{w:8}),ue]}),(!S||ue||g&&b||_)&&v.jsx(vm,{isLoading:H&&we.length!==0}),(g&&b||_)&&v.jsxs("div",{className:Fe.clsx(dn.ATreeBodyHeader,"NoSelect"),children:[g&&v.jsx(Zu,{className:dn.CheckBox,useCheck:[+Dt,()=>Ze()],isIndeterminate:mt,onMouseOver:Me,onMouseOut:pt,isDisabled:O,tooltip:At}),ve.Items,v.jsx(Qc,{}),v.jsxs("div",{className:Fe.clsx(dn.ATreeBodyHeaderResources,"NoSelect"),style:{marginRight:Qt?8:0},children:[v.jsx("span",{children:g&&ve["*Click row for single select"]}),v.jsx("span",{children:_&&ve["*Change order to row drag"]})]})]}),v.jsx("div",{ref:et,className:Fe.clsx(oe.className,dn.AContainer),children:v.jsxs("div",{className:dn.ATree,style:{minWidth:be||"fit-content",marginRight:he&&Qt?8:0},children:[v.jsxs("div",{ref:Mt,className:dn.ATreeBody,children:[we.length===0?H?v.jsx(KN,{text:ve["Loading Contents..."]}):x:X,we.map((Qe,Tt)=>v.jsx(z,{isEqual:Oe,indents:[],extIndents:w,item:Qe,selectDisabled:t,selectUnused:n,isParentDisabled:O,useExpand:[ze,We],useSelect:[De,Ae],useSearch:[_e,Ge],onDragStart:ge,onDragOver:ne,onDragEnd:Je,showCheckbox:g,icons:R,iconWidth:m,isSelectMulti:b,isDraggable:_,isParentCheckHovered:b&&bt,ContentRenderer:q,TreeItemRenderer:z,RightStickyAddon:K,resources:ve,containerRef:et,TreeItemStyle:J,TreeItemClassName:Q,hoverdItem:Re,onMouseOver:Rt,onMouseLeave:vt,searchItemClassName:ce,searchItemStyle:ke,height:le},`${Tt}${ct}`))]}),me&&v.jsxs(v.Fragment,{children:[v.jsx("div",{className:dn.CoverBorder}),v.jsx("div",{className:dn.InsertBorder,style:{"--InsertBorder_height":`${le}px`,height:Qt?Bt:"100%"}})]})]})})]})},GN=r=>{const{item:e}=r,t={};return er.keys(e).forEach(n=>{n!=="children"&&(t[n]=e[n])}),JSON.stringify(t)};function ZN(r,e){return er.some(e,(t,n)=>{var i;return(i=er.stringify(n))==null?void 0:i.toLowerCase().includes(r.toLowerCase())})}const KN=r=>{const{text:e}=r;return v.jsxs(Sn,{className:Fe.clsx(dn.Loader,"NoSelect"),children:[v.jsx(jr,{icon:"Spinner",style:{height:40},height:40,width:40}),v.jsx(V2,{text:e})]})};var Zg,Xb;function nf(){return Xb||(Xb=1,Zg=TypeError),Zg}const YN={},XN=Object.freeze(Object.defineProperty({__proto__:null,default:YN},Symbol.toStringTag,{value:"Module"})),JN=n4(XN);var Kg,Jb;function wh(){if(Jb)return Kg;Jb=1;var r=typeof Map=="function"&&Map.prototype,e=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,t=r&&e&&typeof e.get=="function"?e.get:null,n=r&&Map.prototype.forEach,i=typeof Set=="function"&&Set.prototype,l=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=i&&l&&typeof l.get=="function"?l.get:null,f=i&&Set.prototype.forEach,g=typeof WeakMap=="function"&&WeakMap.prototype,m=g?WeakMap.prototype.has:null,R=typeof WeakSet=="function"&&WeakSet.prototype,w=R?WeakSet.prototype.has:null,b=typeof WeakRef=="function"&&WeakRef.prototype,S=b?WeakRef.prototype.deref:null,_=Boolean.prototype.valueOf,D=Object.prototype.toString,E=Function.prototype.toString,x=String.prototype.match,L=String.prototype.slice,O=String.prototype.replace,H=String.prototype.toUpperCase,q=String.prototype.toLowerCase,z=RegExp.prototype.test,K=Array.prototype.concat,ue=Array.prototype.join,X=Array.prototype.slice,de=Math.floor,j=typeof BigInt=="function"?BigInt.prototype.valueOf:null,re=Object.getOwnPropertySymbols,J=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Q=typeof Symbol=="function"&&typeof Symbol.iterator=="object",he=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Q||!0)?Symbol.toStringTag:null,me=Object.prototype.propertyIsEnumerable,be=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(ge){return ge.__proto__}:null);function ce(ge,ne){if(ge===1/0||ge===-1/0||ge!==ge||ge&&ge>-1e3&&ge<1e3||z.call(/e/,ne))return ne;var Je=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof ge=="number"){var ct=ge<0?-de(-ge):de(ge);if(ct!==ge){var tt=String(ct),Re=L.call(ne,tt.length+1);return O.call(tt,Je,"$&_")+"."+O.call(O.call(Re,/([0-9]{3})/g,"$&_"),/_$/,"")}}return O.call(ne,Je,"$&_")}var ke=JN,le=ke.custom,oe=lt(le)?le:null,ve={__proto__:null,double:'"',single:"'"},Oe={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Kg=function ge(ne,Je,ct,tt){var Re=Je||{};if(Le(Re,"quoteStyle")&&!Le(ve,Re.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Le(Re,"maxStringLength")&&(typeof Re.maxStringLength=="number"?Re.maxStringLength<0&&Re.maxStringLength!==1/0:Re.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var xt=Le(Re,"customInspect")?Re.customInspect:!0;if(typeof xt!="boolean"&&xt!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Le(Re,"indent")&&Re.indent!==null&&Re.indent!==" "&&!(parseInt(Re.indent,10)===Re.indent&&Re.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Le(Re,"numericSeparator")&&typeof Re.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var Rt=Re.numericSeparator;if(typeof ne>"u")return"undefined";if(ne===null)return"null";if(typeof ne=="boolean")return ne?"true":"false";if(typeof ne=="string")return Et(ne,Re);if(typeof ne=="number"){if(ne===0)return 1/0/ne>0?"0":"-0";var vt=String(ne);return Rt?ce(ne,vt):vt}if(typeof ne=="bigint"){var Mt=String(ne)+"n";return Rt?ce(ne,Mt):Mt}var Qt=typeof Re.depth>"u"?5:Re.depth;if(typeof ct>"u"&&(ct=0),ct>=Qt&&Qt>0&&typeof ne=="object")return je(ne)?"[Array]":"[Object]";var rr=mr(Re,ct);if(typeof tt>"u")tt=[];else if(Ct(tt,ne)>=0)return"[Circular]";function Bt(ir,fr,Ur){if(fr&&(tt=X.call(tt),tt.push(fr)),Ur){var yr={depth:Re.depth};return Le(Re,"quoteStyle")&&(yr.quoteStyle=Re.quoteStyle),ge(ir,yr,ct+1,tt)}return ge(ir,Re,ct+1,tt)}if(typeof ne=="function"&&!We(ne)){var qt=it(ne),sr=Cr(ne,Bt);return"[Function"+(qt?": "+qt:" (anonymous)")+"]"+(sr.length>0?" { "+ue.call(sr,", ")+" }":"")}if(lt(ne)){var Qe=Q?O.call(String(ne),/^(Symbol\(.*\))_[^)]*$/,"$1"):J.call(ne);return typeof ne=="object"&&!Q?Dt(Qe):Qe}if(pt(ne)){for(var Tt="<"+q.call(String(ne.nodeName)),yt=ne.attributes||[],Lt=0;Lt<yt.length;Lt++)Tt+=" "+yt[Lt].name+"="+et(we(yt[Lt].value),"double",Re);return Tt+=">",ne.childNodes&&ne.childNodes.length&&(Tt+="..."),Tt+="</"+q.call(String(ne.nodeName))+">",Tt}if(je(ne)){if(ne.length===0)return"[]";var vr=Cr(ne,Bt);return rr&&!jt(vr)?"["+kr(vr,rr)+"]":"[ "+ue.call(vr,", ")+" ]"}if(De(ne)){var Y=Cr(ne,Bt);return!("cause"in Error.prototype)&&"cause"in ne&&!me.call(ne,"cause")?"{ ["+String(ne)+"] "+ue.call(K.call("[cause]: "+Bt(ne.cause),Y),", ")+" }":Y.length===0?"["+String(ne)+"]":"{ ["+String(ne)+"] "+ue.call(Y,", ")+" }"}if(typeof ne=="object"&&xt){if(oe&&typeof ne[oe]=="function"&&ke)return ke(ne,{depth:Qt-ct});if(xt!=="symbol"&&typeof ne.inspect=="function")return ne.inspect()}if(_t(ne)){var pe=[];return n&&n.call(ne,function(ir,fr){pe.push(Bt(fr,ne,!0)+" => "+Bt(ir,ne))}),At("Map",t.call(ne),pe,rr)}if(St(ne)){var Be=[];return f&&f.call(ne,function(ir){Be.push(Bt(ir,ne))}),At("Set",u.call(ne),Be,rr)}if(wt(ne))return Ze("WeakMap");if(Me(ne))return Ze("WeakSet");if(bt(ne))return Ze("WeakRef");if(_e(ne))return Dt(Bt(Number(ne)));if($e(ne))return Dt(Bt(j.call(ne)));if(Ge(ne))return Dt(_.call(ne));if(Ae(ne))return Dt(Bt(String(ne)));if(typeof window<"u"&&ne===window)return"{ [object Window] }";if(typeof globalThis<"u"&&ne===globalThis||typeof bi<"u"&&ne===bi)return"{ [object globalThis] }";if(!ze(ne)&&!We(ne)){var ot=Cr(ne,Bt),Ot=be?be(ne)===Object.prototype:ne instanceof Object||ne.constructor===Object,$t=ne instanceof Object?"":"null prototype",kt=!Ot&&he&&Object(ne)===ne&&he in ne?L.call(Xe(ne),8,-1):$t?"Object":"",Ut=Ot||typeof ne.constructor!="function"?"":ne.constructor.name?ne.constructor.name+" ":"",nr=Ut+(kt||$t?"["+ue.call(K.call([],kt||[],$t||[]),": ")+"] ":"");return ot.length===0?nr+"{}":rr?nr+"{"+kr(ot,rr)+"}":nr+"{ "+ue.call(ot,", ")+" }"}return String(ne)};function et(ge,ne,Je){var ct=Je.quoteStyle||ne,tt=ve[ct];return tt+ge+tt}function we(ge){return O.call(String(ge),/"/g,""")}function Pe(ge){return!he||!(typeof ge=="object"&&(he in ge||typeof ge[he]<"u"))}function je(ge){return Xe(ge)==="[object Array]"&&Pe(ge)}function ze(ge){return Xe(ge)==="[object Date]"&&Pe(ge)}function We(ge){return Xe(ge)==="[object RegExp]"&&Pe(ge)}function De(ge){return Xe(ge)==="[object Error]"&&Pe(ge)}function Ae(ge){return Xe(ge)==="[object String]"&&Pe(ge)}function _e(ge){return Xe(ge)==="[object Number]"&&Pe(ge)}function Ge(ge){return Xe(ge)==="[object Boolean]"&&Pe(ge)}function lt(ge){if(Q)return ge&&typeof ge=="object"&&ge instanceof Symbol;if(typeof ge=="symbol")return!0;if(!ge||typeof ge!="object"||!J)return!1;try{return J.call(ge),!0}catch{}return!1}function $e(ge){if(!ge||typeof ge!="object"||!j)return!1;try{return j.call(ge),!0}catch{}return!1}var ht=Object.prototype.hasOwnProperty||function(ge){return ge in this};function Le(ge,ne){return ht.call(ge,ne)}function Xe(ge){return D.call(ge)}function it(ge){if(ge.name)return ge.name;var ne=x.call(E.call(ge),/^function\s*([\w$]+)/);return ne?ne[1]:null}function Ct(ge,ne){if(ge.indexOf)return ge.indexOf(ne);for(var Je=0,ct=ge.length;Je<ct;Je++)if(ge[Je]===ne)return Je;return-1}function _t(ge){if(!t||!ge||typeof ge!="object")return!1;try{t.call(ge);try{u.call(ge)}catch{return!0}return ge instanceof Map}catch{}return!1}function wt(ge){if(!m||!ge||typeof ge!="object")return!1;try{m.call(ge,m);try{w.call(ge,w)}catch{return!0}return ge instanceof WeakMap}catch{}return!1}function bt(ge){if(!S||!ge||typeof ge!="object")return!1;try{return S.call(ge),!0}catch{}return!1}function St(ge){if(!u||!ge||typeof ge!="object")return!1;try{u.call(ge);try{t.call(ge)}catch{return!0}return ge instanceof Set}catch{}return!1}function Me(ge){if(!w||!ge||typeof ge!="object")return!1;try{w.call(ge,w);try{m.call(ge,m)}catch{return!0}return ge instanceof WeakSet}catch{}return!1}function pt(ge){return!ge||typeof ge!="object"?!1:typeof HTMLElement<"u"&&ge instanceof HTMLElement?!0:typeof ge.nodeName=="string"&&typeof ge.getAttribute=="function"}function Et(ge,ne){if(ge.length>ne.maxStringLength){var Je=ge.length-ne.maxStringLength,ct="... "+Je+" more character"+(Je>1?"s":"");return Et(L.call(ge,0,ne.maxStringLength),ne)+ct}var tt=Oe[ne.quoteStyle||"single"];tt.lastIndex=0;var Re=O.call(O.call(ge,tt,"\\$1"),/[\x00-\x1f]/g,mt);return et(Re,"single",ne)}function mt(ge){var ne=ge.charCodeAt(0),Je={8:"b",9:"t",10:"n",12:"f",13:"r"}[ne];return Je?"\\"+Je:"\\x"+(ne<16?"0":"")+H.call(ne.toString(16))}function Dt(ge){return"Object("+ge+")"}function Ze(ge){return ge+" { ? }"}function At(ge,ne,Je,ct){var tt=ct?kr(Je,ct):ue.call(Je,", ");return ge+" ("+ne+") {"+tt+"}"}function jt(ge){for(var ne=0;ne<ge.length;ne++)if(Ct(ge[ne],`
|
355
|
+
`)),Object.keys(ir).length>0&&Re.formatText(0,nr.length,ir);const fr=Math.min(Y.index+ls(Ot),nr.length);Re.setSelection(fr,0),Rt=nr}else Rt=Ut})},Tt=Lt=>{(Lt.inputType==="insertLineBreak"||Lt.inputType==="insertText"&&Lt.data&&/[\r\n\u2028\u2029]/.test(Lt.data))&&Lt.preventDefault()},yt=()=>{rr(sr)};ge(Re.root,"keydown",qt),ge(Re.root,"paste",Qe),ge(Re.root,"beforeinput",Tt),Re.on("text-change",yt),Bt.push(()=>{ge(Re.root,"keydown",qt),ge(Re.root,"paste",Qe),ge(Re.root,"beforeinput",Tt),Re.off("text-change",yt),vt&&window.cancelAnimationFrame(vt)}),rr(sr)}else{const qt=()=>{const Lt=Re.getText();if(ls(Lt)-1<=X)return;const Y=Re.getSelection(),pe=Re.getContents();Mt=Y?Y.index:0;let Be=0,ot=0;for(const kt of pe.ops||[])if(typeof kt.insert=="string"){const Ut=Array.from(kt.insert);for(const nr of Ut){if(Be>=X)break;Be++,ot+=nr.length}if(Be>=X)break}else kt.insert&&(Be+=1);const Ot=Lt.substring(0,ot);Re.setText(Ot);const $t=Math.min(Mt,Ot.length);Re.setSelection($t,0)},sr=(Lt,vr)=>{const Y=Re.getSelection();if(!Y)return!0;const pe=Re.getText(),Be=ls(pe)-1,ot=Y.length>0?ls(pe.substring(Y.index,Y.index+Y.length)):0,Ot=X-(Be-ot);if(ls(vr)<=Ot)return!0;if(Lt.preventDefault(),Lt.type==="paste"){const kt=Y.index,Ut=Array.from(vr).slice(0,Ot).join(""),nr=new Gt;Y.length?nr.retain(kt).delete(Y.length):nr.retain(kt),nr.insert(Ut),Re.updateContents(nr,Ve.sources.USER),requestAnimationFrame(()=>{const ir=kt+ls(Ut);ir<=Re.getLength()&&Re.setSelection(ir,0)})}return!1},Qe=()=>{rr(qt)},Tt=Lt=>{Lt.inputType.startsWith("insert")&&sr(Lt,Lt.data||"")},yt=Lt=>{const vr=Lt.clipboardData;if(vr){const Y=Qt(vr.getData("text/plain"));sr(Lt,Y)}};Re.on("text-change",Qe),ge(Re.root,"beforeinput",Tt,{capture:!0}),ge(Re.root,"paste",yt,{capture:!0}),Bt.push(()=>{Re.off("text-change",Qe),ge(Re.root,"beforeinput",Tt,{capture:!0}),ge(Re.root,"paste",yt,{capture:!0}),vt&&window.cancelAnimationFrame(vt)})}return()=>Bt.forEach(qt=>qt())},[X,_e,e,ge]),ct=A.useCallback(tt=>{typeof i=="function"?i(tt):i&&(i.current=tt),tt&&(ne(tt),Je(tt))},[i,ne,Je]);return v.jsx(ec,{helperText:b,wrapType:D,labelProps:{..._,style:{minHeight:S?20:void 0,marginBottom:S?4:0}},errorMessage:t,label:v.jsxs(Sn,{style:{gap:4},children:[S,!X&&ue==="Top"&&Et]}),wrapProps:{...C,className:Fe.clsx(C==null?void 0:C.className,!Ge&&jn.AEditorWrapper),style:{...C==null?void 0:C.style,height:lt}},children:v.jsxs($r,{...re,className:Fe.clsx(re.className,jn.AEditorContainer),style:{...E,height:$e,minHeight:Le},children:[v.jsx(Ch,{...R,ref:ct,className:Fe.clsx(R==null?void 0:R.className,jn.AEditor,jn[Xe],_e&&"Title"),formats:_e?J.FORMAT_TITLE:J.FORMAT_DEFAULT,modules:mt,placeholder:f,readOnly:Q,theme:"snow",value:bt,style:{...R==null?void 0:R.style,maxHeight:ht?ht+ce:void 0,"--icon-size":`${q==="Med"?18:24}px`,"--editor-padding":_e?"8px 12px":"12px","--toolbar-padding":`${mr}px`,"--content-height":_e?"34px":ve?`${ve}px`:"100%","--content-max-height":ht?`${ht}px`:"100%","--default-text":`'${hn.AEditor.Default}'`,"--arrow-background":`url("data:image/svg+xml,${encodeURIComponent(Ns.renderToString(v.jsx(jr,{icon:"EditorArrow"})))}`,"--title-color-picker-width":_e?"780px":"142px"},onChange:jt}),O&&v.jsxs(v.Fragment,{children:[v.jsx("div",{ref:ze,className:jn.Resizer,style:{height:he,bottom:u&&!Q?oe:0},onMouseDown:At}),Pe&&v.jsx("div",{className:Fe.clsx(jn.Indicator,"NoSelect","Label1"),style:{height:he,bottom:u&&!Q?oe:0},children:`${Math.round(ve)}px`})]}),v.jsx("div",{className:Fe.clsx(jn.LimitContainer,"NoSelect"),style:{marginTop:le,minHeight:ke,display:!X&&ue==="Bottom"?"flex":"none"},children:Et})]})})},(r,e)=>r.errorMessage===e.errorMessage&&r.type===e.type&&r.useValue===e.useValue&&r.useError===e.useError&&r.placeholder===e.placeholder&&r.readOnly===e.readOnly&&r.maxLength===e.maxLength&&r.contentHeight===e.contentHeight&&r.minHeight===e.minHeight&&r.maxHeight===e.maxHeight&&r.toolbarSize===e.toolbarSize&&r.toolbarType===e.toolbarType&&r.limitPosition===e.limitPosition&&r.editorClassName===e.editorClassName&&r.editorStyle===e.editorStyle),uN=A.memo(({calculateSize:r,error:e,htmlDelta:t,limit:n,useError:i,isReadonly:l})=>{if(!i||l)return null;const u=r(t),f=e||u>n;return v.jsxs(Sa,{className:jn.Limit,children:["(",v.jsx("span",{className:f?jn.Error:void 0,children:Kc(u)})," / ",Kc(n),")"]})});function nh(r,e){Array.isArray(r)||(r=[r]);for(const t of r){if(e(t))return t;if(!t.children||t.children.length<1)continue;const n=nh(t.children,e);if(n)return n}}function ud(r,e){Array.isArray(r)||(r=[r]);for(const t of r)e(t),!(!t.children||t.children.length<1)&&ud(t.children,e)}function dS(r,e){Array.isArray(r)||(r=[r]);const t=[];return ud(r,(n,i)=>t.push(e(n,i))),t}function hS(r,e){Array.isArray(r)||(r=[r]);for(const t of r){if(!e(t))return!1;if(!(!t.children||t.children.length<1)&&!hS(t.children,e))return!1}return!0}function fN(r,e){Array.isArray(r)||(r=[r]);const t=[];return ud(r,(n,i)=>{e(n,i)&&t.push(n)}),t}function dN(r){Array.isArray(r)||(r=[r]);let e=0;return ud(r,()=>e++),e}function hN(r,e,t,n){if(n(e,t))return null;Array.isArray(r)||(r=[r]);const i=nh(r,u=>{var f;return(f=u.children)==null?void 0:f.some(g=>n(g,e))}),l=nh(r,u=>{var f;return(f=u.children)==null?void 0:f.some(g=>n(g,t))});if(i===void 0&&l===void 0){const u=r.findIndex(g=>n(g,e)),f=r.findIndex(g=>n(g,t));return r.splice(u,1),r.splice(f,0,e),[...r]}else if(i!==void 0&&l!==void 0&&n(i,l)&&i.children){const u=i.children.findIndex(g=>n(g,e)),f=i.children.findIndex(g=>n(g,t));return u===void 0||f===void 0?null:(i.children.splice(u,1),i.children.splice(f,0,e),i.children=[...i.children],[...r])}return null}function pN(r,e,t){const n=[],i=[...e];for(;i.length>0;){const l=i.shift();if(l&&!n.find(u=>t(u,l))&&(n.push(l),!(!l.children||l.children.length<1)))for(const u of l.children)i.push(u)}return n}function gN(r,e,t){Array.isArray(r)||(r=[r]);const n=dS(r,u=>u),i=[],l=[...e];for(;l.length>0;){const u=l.shift();if(!u||i.find(g=>t(g,u)))continue;i.push(u);const f=n.find(g=>{var m;return(m=g.children)==null?void 0:m.some(R=>t(R,u))});f&&l.push(f)}return i}const rl={find:nh,forEach:ud,map:dS,every:hS,filter:fN,length:dN,replace:hN,descendants:pN,ancestors:gN},mN="_AWrap_f5le3_1",vN="_AContainer_f5le3_10",yN="_ATree_f5le3_18",bN="_ATreeBody_f5le3_30",_N="_CoverBorder_f5le3_36",xN="_InsertBorder_f5le3_45",SN="_ATreeHeader_f5le3_76",CN="_ATreeBodyHeader_f5le3_82",wN="_ATreeBodyHeaderResources_f5le3_92",AN="_ATreeItem_f5le3_98",TN="_IsSelectUsed_f5le3_114",EN="_IsSelected_f5le3_117",kN="_IsSearchSelected_f5le3_122",RN="_IsHovered_f5le3_133",IN="_CheckBox_f5le3_137",LN="_Indents_f5le3_149",MN="_ExpandIcon_f5le3_156",DN="_Content_f5le3_168",ON="_RightSticky_f5le3_177",PN="_SearchInputWrap_f5le3_188",NN="_SearchInput_f5le3_188",FN="_RightAddon_f5le3_200",jN="_RightAddonIcon_f5le3_211",BN="_Loader_f5le3_218",dn={AWrap:mN,AContainer:vN,ATree:yN,ATreeBody:bN,CoverBorder:_N,InsertBorder:xN,ATreeHeader:SN,ATreeBodyHeader:CN,ATreeBodyHeaderResources:wN,ATreeItem:AN,IsSelectUsed:TN,IsSelected:EN,IsSearchSelected:kN,IsHovered:RN,CheckBox:IN,Indents:LN,ExpandIcon:MN,Content:DN,RightSticky:ON,SearchInputWrap:PN,SearchInput:NN,RightAddon:FN,RightAddonIcon:jN,Loader:BN},HN=r=>{const{isEqual:e,item:t,selectDisabled:n,selectUnused:i,isParentDisabled:l,indents:u,extIndents:f,useExpand:g,useSelect:m,useSearch:R,onDragStart:C,onDragOver:b,onDragEnd:S,showCheckbox:_,icons:D,iconWidth:E,isSelectMulti:x,isDraggable:L,isParentCheckHovered:O,hoverdItem:H,onMouseOver:q,onMouseLeave:z,ContentRenderer:K,TreeItemRenderer:ue,RightStickyAddon:X,resources:de,containerRef:j,TreeItemStyle:re,TreeItemClassName:J,searchItemStyle:Q,searchItemClassName:he,height:me}=r,{children:be}=A.useMemo(()=>t,[t]),[ce,ke]=A.useMemo(()=>g,[g]),[le,oe]=A.useMemo(()=>m,[m]),[ve,Oe]=A.useMemo(()=>R,[R]),et=A.useMemo(()=>i?i(t):!1,[i,t]),we=A.useMemo(()=>!n||l?l:n(t),[n,l,t]),Pe=A.useMemo(()=>ce.some(Ze=>e(Ze,t)),[ce,e,t]),je=A.useMemo(()=>!be||be.length<1?"noChild":Pe?"expanded":"collapsed",[be,Pe]),ze=A.useMemo(()=>{const Ze=D[je];return um.includes(Ze)?v.jsx(jr,{style:{width:E,height:E},icon:Ze}):Ze},[D,E,je]),We=A.useCallback(Ze=>{!ke||je==="noChild"||(ke(Pe?ce.filter(At=>!e(At,t)):[...ce,t]),Ze.stopPropagation())},[ke,ce,Pe,t,e,je]),De=A.useMemo(()=>le.some(Ze=>e(Ze,t)),[le,e,t]),Ae=A.useCallback(()=>{!oe||we||(oe(x?De?le.filter(Ze=>!e(Ze,t)):[...le,t]:[t]),ve&&Oe&&ve.items.some(Ze=>e(Ze,t))&&Oe({...ve,item:t}))},[x,we,De,ve,Oe,oe,e,le,t]),_e=A.useMemo(()=>ve==null?void 0:ve.items.some(Ze=>e(Ze,t)),[ve,e,t]),Ge=A.useMemo(()=>_e&&(ve==null?void 0:ve.item)&&e(ve.item,t),[_e,ve,e,t]),lt=A.useRef(null);A.useEffect(()=>{setTimeout(()=>{if(Ge&<.current&&j.current){const{top:Ze,bottom:At}=lt.current.getBoundingClientRect(),{top:jt,bottom:mr}=j.current.getBoundingClientRect();(Ze<jt||At>mr)&<.current.scrollIntoView({behavior:"smooth",block:"center"})}},10)},[j,Ge]);const[$e,ht]=A.useState(!1),Le=A.useCallback(()=>!we&&ht(!0),[we]),Xe=A.useCallback(()=>!we&&ht(!1),[we]),it=A.useMemo(()=>rl.map(t,Ze=>Ze).filter(Ze=>!(n!=null&&n(Ze))&&!(i!=null&&i(Ze))),[n,i,t]),Ct=A.useMemo(()=>!_||!x?!1:De&&it.some(Ze=>le.some(At=>e(Ze,At)))&&it.some(Ze=>!le.some(At=>e(Ze,At))),[_,x,De,it,e,le]),_t=A.useMemo(()=>_?x?it.every(Ze=>le.some(At=>e(Ze,At))):le.some(Ze=>e(Ze,t)):!1,[_,x,it,t,e,le]),wt=A.useCallback(()=>{if(!(!oe||we))if(x)if(De){const Ze=le.filter(At=>!(i!=null&&i(At))&&!(n!=null&&n(At))&&it.some(jt=>e(jt,At)));Ze.length>0&&oe(le.filter(At=>!Ze.some(jt=>e(At,jt))))}else{const Ze=it.filter(At=>!(i!=null&&i(At))&&!(n!=null&&n(At))&&!le.some(jt=>e(jt,At)));Ze.length>0&&oe([...le,...Ze])}else oe([t])},[we,n,i,x,oe,e,De,le,it,t]),bt=A.useCallback(Ze=>{we||wt(),Ze.stopPropagation()},[we,wt]),St=A.useMemo(()=>{if(!_||!x||we)return"";if(De){const At=le.filter(jt=>!(i!=null&&i(jt))&&!(n!=null&&n(jt))&&it.some(mr=>e(mr,jt)));if(At.length>0)return de["deselect n"](At.length)}const Ze=it.filter(At=>!(i!=null&&i(At))&&!(n!=null&&n(At))&&!le.some(jt=>e(jt,At)));return de["select n"](Ze.length)},[n,i,de,we,_,x,De,it,e,le]),Me=A.useMemo(()=>Lr.getContent(X,r),[X,r]),pt=A.useMemo(()=>Lr.getContent(re,r),[r,re]),Et=A.useMemo(()=>Lr.getContent(J,r),[r,J]),mt=A.useMemo(()=>Lr.getContent(he,r),[r,he]),Dt=A.useMemo(()=>Lr.getContent(Q,r),[r,Q]);return v.jsxs(A.Fragment,{children:[v.jsxs($r,{className:Fe.clsx(dn.ATreeItem,De&&dn.IsSelected,!we&&($e||O)&&dn.IsHovered,_e&&dn.IsSearched,Ge&&(mt||dn.IsSearchSelected),!et&&dn.IsSelectUsed,"NoSelect",Et),style:{...pt,...Ge&&Dt,"--ATreeItem_height":`${me}px`},draggable:L,onDragStart:()=>C==null?void 0:C(t),onDragEnter:Ze=>b==null?void 0:b(Ze,t),onDragEnd:Ze=>S==null?void 0:S(Ze,t),onClick:Ae,abaseRef:lt,isDisabled:we,onMouseOver:Ze=>q==null?void 0:q(Ze,t),onMouseLeave:Ze=>z==null?void 0:z(Ze,t),children:[_&&v.jsx(Zu,{style:{visibility:we||et?"hidden":"visible",zIndex:we||et?0:2},className:dn.CheckBox,useCheck:[+_t,wt],onClick:bt,isIndeterminate:Ct,onMouseOver:Le,onMouseOut:Xe,tooltip:St,isDisabled:we}),v.jsx("div",{className:dn.Indents,style:{paddingLeft:_?0:r.icons.noChild?12:0},children:u.map((Ze,At)=>{const jt=At===u.length-1;return v.jsx(P2,{value:Ze,map:{Collapsed:f?f({iconWidth:E}).collapsed:v.jsx(zN,{iconWidth:E}),Expanded:f?f({iconWidth:E,isLast:jt}).expanded:v.jsx(qN,{iconWidth:E,isLast:jt}),IsLast:f?f({iconWidth:E}).isLast:v.jsx($N,{iconWidth:E})}},At)})}),ze&&v.jsx("div",{className:dn.ExpandIcon,style:{width:E,minWidth:E,maxWidth:E},onClick:We,children:ze}),v.jsx("div",{className:Fe.clsx(dn.Content,"NoSelect"),children:v.jsx(K,{isEqual:e,item:t,indents:u,extIndents:f,useExpand:g,useSelect:m,useSearch:R,onDragStart:C,onDragOver:b,onDragEnd:S,showCheckbox:_,icons:D,iconWidth:E,isSelectMulti:x,isDraggable:L,isParentCheckHovered:x&&($e||O),hoverdItem:H,onMouseOver:q,onMouseLeave:z,ContentRenderer:K,TreeItemRenderer:ue,RightStickyAddon:X,resources:de,containerRef:j,TreeItemStyle:re,TreeItemClassName:J,searchItemClassName:mt,searchItemStyle:Q,height:me})}),Me&&v.jsx("div",{className:dn.RightSticky,children:Me})]}),Pe&&(be==null?void 0:be.map((Ze,At)=>v.jsx(ue,{isEqual:e,item:Ze,selectDisabled:n,selectUnused:i,indents:[...u.map(jt=>jt==="IsLast"?"Collapsed":jt),At===be.length-1?"IsLast":"Expanded"],extIndents:f,ContentRenderer:K,useExpand:g,useSelect:m,useSearch:R,onDragStart:C,onDragOver:b,onDragEnd:S,showCheckbox:_,icons:D,iconWidth:E,isSelectMulti:x,isDraggable:L,isParentCheckHovered:x&&($e||O),hoverdItem:H,onMouseOver:q,onMouseLeave:z,TreeItemRenderer:ue,RightStickyAddon:X,resources:de,containerRef:j,TreeItemStyle:re,TreeItemClassName:J,searchItemClassName:mt,searchItemStyle:Q,height:me},At)))]})},qN=({iconWidth:r,isLast:e})=>v.jsx("div",{style:{width:r/8*3,height:"100%",borderLeft:"var(--ATree_Indent_border)",marginLeft:r/2,marginRight:r/8,boxSizing:"border-box",transition:"border-color var(--Transition)"},children:e&&v.jsx("div",{style:{borderBottom:"var(--ATree_Indent_border)",height:"50%",transition:"border-color var(--Transition)"}})}),zN=({iconWidth:r})=>v.jsx("div",{style:{width:r,height:"100%",borderLeft:"none",marginLeft:0,transition:"border-color var(--Transition)"}}),$N=({iconWidth:r})=>v.jsx("div",{style:{width:r/8*3,height:"50%",borderLeft:"var(--ATree_Indent_border)",borderBottom:"var(--ATree_Indent_border)",marginLeft:r/2,marginRight:r/8,boxSizing:"border-box",transition:"border-color var(--Transition)"}}),UN=r=>{const{isEqual:e,searchResult:t,initSearch:n,searchUp:i,searchDown:l,searchEnter:u,isDisabled:f,isLoading:g,resources:m,maxLength:R,autoFocus:C}=r,b=A.useCallback(D=>{D.key==="Enter"?u():D.key==="ArrowDown"?l():D.key==="ArrowUp"&&i(),D.preventDefault(),D.stopPropagation()},[l,u,i]),S=A.useCallback(D=>{n(D)},[n]),_=A.useMemo(()=>f||g?-1:void 0,[f,g]);return v.jsx(tc,{className:dn.SearchInput,wrapProps:{className:dn.SearchInputWrap},isDisabled:f,tabIndex:_,useValue:[(t==null?void 0:t.keyword)??"",S],onKeyDown:b,placeholder:m["Search(Placeholder)"],RightAddon:v.jsx(WN,{isEqual:e,searchResult:t,searchUp:i,searchDown:l,searchEnter:u,resources:m}),maxLength:R,autoFocus:C})},WN=r=>{const{isEqual:e,searchResult:t,searchUp:n,searchDown:i,searchEnter:l,resources:u}=r,f=A.useMemo(()=>!t||t.items.length<1?0:t.items.findIndex(_=>t.item&&e(_,t.item))+1,[t,e]),g=A.useMemo(()=>!t||t.items.length<1?0:t.items.length,[t]),m=A.useMemo(()=>f<2,[f]),R=A.useMemo(()=>f>=g,[f,g]),C=A.useCallback(_=>{_.stopPropagation(),!m&&n()},[n,m]),b=A.useCallback(_=>{_.stopPropagation(),!R&&i()},[i,R]),S=A.useCallback(_=>{_.stopPropagation(),l()},[l]);return v.jsx("div",{className:Fe.clsx(dn.RightAddon,"NoSelect"),children:t?v.jsxs(v.Fragment,{children:[f,"/",g,v.jsx($r,{onClick:C,isDisabled:m,children:v.jsx(jr,{className:dn.RightAddonIcon,icon:"ArrowUp",mask:""})}),v.jsx($r,{onClick:b,isDisabled:R,children:v.jsx(jr,{className:dn.RightAddonIcon,icon:"ArrowDown"})})]}):v.jsx(_i,{type:"Raw",className:dn.RightAddonIcon,style:{marginRight:4},icon:"Search",onClick:S,tooltip:u["Search(Button)"]})})},VN=r=>{var sr;const{pk:e,selectDisabled:t,selectUnused:n,useItems:i,useExpand:l,useSelect:u,useSearch:f,showCheckbox:g,iconWidth:m=24,icons:R={noChild:"Folder",collapsed:"FolderCopy",expanded:"FolderOpen"},indents:C,isSelectMulti:b=!1,noSearch:S=!1,isDraggable:_,noSyncSearchSelect:D=!1,actionRef:E,placeholder:x,searchPredicate:L=ZN,isDisabled:O,isLoading:H,ContentRenderer:q=GN,TreeItemRenderer:z=HN,RightStickyAddon:K,TopRightAddon:ue,TreeTopAddon:X,resources:de,maxLength:j,autoFocus:re,TreeItemStyle:J,TreeItemClassName:Q,OverflowPadding:he,insertBorder:me,width:be,searchItemClassName:ce,searchItemStyle:ke,height:le=40,...oe}=r,ve=A.useMemo(()=>({...hn.ATree,...de}),[de]),Oe=A.useCallback((Qe,Tt)=>e!==void 0?Array.isArray(e)?e.every(yt=>nl.isEqual(Qe[yt],Tt[yt])):nl.isEqual(Qe[e],Tt[e]):nl.isEqual(Qe,Tt),[e]),et=A.useRef(null),[we,Pe]=nn(i,[]),je=A.useMemo(()=>rl.map(we,Qe=>Qe),[we]),[ze,We]=nn(l,[]),[De,Ae]=nn(u,[]),[_e,Ge]=nn(f,void 0),lt=A.useCallback(Qe=>{if(O||!We||ze.some(Lt=>Oe(Lt,Qe)))return;const Tt=[];let yt=Qe;for(;yt;){const Lt=yt;ze.find(vr=>Oe(vr,Lt))||Tt.push(Lt),yt=je.find(vr=>{var Y;return(Y=vr.children)==null?void 0:Y.some(pe=>Oe(pe,Lt))})}We([...ze,...Tt])},[ze,O,Oe,We,je]),$e=A.useCallback(()=>{!We||O||We([...je])},[je,O,We]),ht=A.useCallback(()=>{!We||O||We([])},[We,O]),Le=A.useCallback(Qe=>{!Ae||O||n!=null&&n(Qe)||(Ae([Qe]),lt(Qe))},[Ae,O,n,lt]),Xe=A.useCallback(Qe=>{if(!Ge||O)return;if(!Qe||S){Ge(void 0),D||Ae==null||Ae([]);return}const Tt=rl.filter(we,Lt=>L(Qe,Lt));let yt;if(Tt.find(Lt=>(_e==null?void 0:_e.item)&&Oe(Lt,_e.item))?yt=_e==null?void 0:_e.item:Tt.length>0&&(yt=Tt[0]),Ge({keyword:Qe,items:Tt,item:yt}),yt&<(yt),Ae&&!D)if(b)Ae(Tt);else{const Lt=Tt.find(vr=>yt&&Oe(vr,yt));Ae(Lt?[Lt]:[])}},[we,O,Oe,L,Ge,Ae,lt,D,S,b,_e]),it=A.useRef(!1);A.useEffect(()=>{it.current=!0},[we]),A.useEffect(()=>{_e&&it.current&&(Xe(_e.keyword),it.current=!1)},[Xe,_e]);const Ct=A.useCallback(()=>{if(!_e||!Ge||O)return;let Qe=_e.items.findIndex(Tt=>_e.item&&Oe(Tt,_e.item))-1;Qe<0||(Ge({..._e,item:_e.items[Qe]}),lt(_e.items[Qe]),D||Le(_e.items[Qe]))},[_e,lt,Ge,O,Le,Oe,D]),_t=A.useCallback(()=>{if(!_e||!Ge||O)return;let Qe=_e.items.findIndex(Tt=>_e.item&&Oe(Tt,_e.item))+1;Qe>=_e.items.length||(Ge({..._e,item:_e.items[Qe]}),lt(_e.items[Qe]),D||Le(_e.items[Qe]))},[_e,lt,O,Ge,Le,Oe,D]),wt=A.useCallback(()=>{if(!_e||!Ge||O)return;let Qe=_e.items.findIndex(yt=>_e.item&&Oe(yt,_e.item));if(!D||n!=null&&n(_e.items[Qe])){_t();return}if(De.some(yt=>_e.item&&Oe(yt,_e.item))){let yt=Qe+1;const Lt=_e.items[yt];if(yt>=_e.items.length)return;Ge({..._e,item:Lt}),Le(Lt)}else Le(_e.items[Qe])},[_e,Ge,O,De,D,_t,Oe,Le,n]),[bt,St]=A.useState(!1),Me=A.useCallback(()=>St(!0),[]),pt=A.useCallback(()=>St(!1),[]),Et=A.useMemo(()=>n?rl.map(we,Qe=>Qe).filter(Qe=>!n(Qe)):t?rl.map(we,Qe=>Qe).filter(Qe=>!t(Qe)):rl.map(we,Qe=>Qe),[n,t,we]),mt=A.useMemo(()=>!g||!b?!1:De.length>0&&Et.length>De.length,[g,b,De,Et]),Dt=A.useMemo(()=>!g||!b?!1:De.length>0&&Et.length===De.length,[g,b,De,Et]),Ze=A.useCallback(()=>{if(!Ae||!b||O)return;const Qe=De.filter(Tt=>!(n!=null&&n(Tt))&&!(t!=null&&t(Tt))&&Et.some(yt=>Oe(yt,Tt)));if(Qe.length>0)Ae(De.filter(Tt=>!Qe.some(yt=>Oe(Tt,yt))));else{const Tt=Et.filter(yt=>!(n!=null&&n(yt))&&!(t!=null&&t(yt))&&!De.some(Lt=>Oe(Lt,yt)));Tt.length>0&&Ae([...De,...Tt])}},[b,O,n,t,Ae,De,Et,Oe]),At=A.useMemo(()=>{if(!g||!b||O)return"";const Qe=De.filter(Tt=>!(n!=null&&n(Tt))&&!(t!=null&&t(Tt))&&Et.some(yt=>Oe(yt,Tt)));if(Qe.length>0)return ve["deselect n"](Qe.length);{const Tt=Et.filter(yt=>!(n!=null&&n(yt))&&!(t!=null&&t(yt))&&!De.some(Lt=>Oe(Lt,yt)));return ve["select n"](Tt.length)}},[n,t,O,ve,g,b,Et,De,Oe]),[jt,mr]=A.useState(null),[kr,Cr]=A.useState(null),ge=A.useCallback(Qe=>{!_||O||mr(Qe)},[O,_]),ne=A.useCallback((Qe,Tt)=>{if(!_||O||!jt||(Qe.preventDefault(),Qe.stopPropagation(),Cr(Tt),!Pe))return;const yt=rl.replace(we,jt,Tt,Oe);yt&&Pe(yt)},[_,we,jt,O,Pe,Oe]),Je=A.useCallback(()=>{if(!_||O||!jt||!kr||!Pe||Oe(jt,kr))return;const Qe=rl.replace(we,jt,kr,Oe);Qe&&(Pe(Qe),mr(null))},[_,Pe,we,jt,kr,Oe,O]);A.useEffect(()=>{var Qe;g||(Qe=et.current)==null||Qe.scrollTo(0,0)},[g,et]),A.useEffect(()=>{!b&&De.length>1&&(Ae==null||Ae([De[De.length-1]]))},[b,Ae,De]),A.useEffect(()=>{E&&(E.current={expandAll:$e,collapseAll:ht})},[E,$e,ht]),A.useEffect(()=>{if(!t||!Ae)return;const Qe=De.filter(Tt=>!t(Tt));De.length!==Qe.length&&Ae(Qe)},[t,De,Ae]),A.useEffect(()=>{if(!n||!Ae)return;const Qe=De.filter(Tt=>!n(Tt));De.length!==Qe.length&&Ae(Qe)},[n,De,Ae]),A.useEffect(()=>{Ge&&Ge(void 0)},[Ge]);const[ct,tt]=A.useState(!1);A.useEffect(()=>{tt(Qe=>!Qe)},[we]);const[Re,xt]=A.useState(null),Rt=A.useCallback((Qe,Tt)=>{O||(Qe.stopPropagation(),Qe.preventDefault(),xt(Tt))},[O]),vt=A.useCallback((Qe,Tt)=>{Re===null||O||Oe(Tt,Re)&&(Qe.stopPropagation(),Qe.preventDefault(),xt(null))},[Re,O,Oe]),Mt=A.useRef(null),[Qt,rr]=A.useState(!1),[Bt,qt]=A.useState((sr=Mt.current)==null?void 0:sr.scrollHeight);return A.useEffect(()=>{if(ze.length<0)return;const Qe=et.current,Tt=Mt.current,yt=Qe.clientHeight<Tt.clientHeight;qt(yt?Tt.scrollHeight:Qe.clientHeight),rr(yt)},[ze]),v.jsxs($r,{...oe,isDisabled:O,className:Fe.clsx(oe.className,dn.AWrap),children:[(!S||ue)&&v.jsxs(Sn,{className:dn.ATreeHeader,children:[!S&&v.jsx(UN,{isEqual:Oe,searchResult:_e,initSearch:Xe,searchUp:Ct,searchDown:_t,searchEnter:wt,isLoading:H,isDisabled:O,resources:ve,maxLength:j,autoFocus:re}),!S&&ue&&v.jsx(mn,{w:8}),ue]}),(!S||ue||g&&b||_)&&v.jsx(vm,{isLoading:H&&we.length!==0}),(g&&b||_)&&v.jsxs("div",{className:Fe.clsx(dn.ATreeBodyHeader,"NoSelect"),children:[g&&v.jsx(Zu,{className:dn.CheckBox,useCheck:[+Dt,()=>Ze()],isIndeterminate:mt,onMouseOver:Me,onMouseOut:pt,isDisabled:O,tooltip:At}),ve.Items,v.jsx(Qc,{}),v.jsxs("div",{className:Fe.clsx(dn.ATreeBodyHeaderResources,"NoSelect"),style:{marginRight:Qt?8:0},children:[v.jsx("span",{children:g&&ve["*Click row for single select"]}),v.jsx("span",{children:_&&ve["*Change order to row drag"]})]})]}),v.jsx("div",{ref:et,className:Fe.clsx(oe.className,dn.AContainer),children:v.jsxs("div",{className:dn.ATree,style:{minWidth:be||"fit-content",marginRight:he&&Qt?8:0},children:[v.jsxs("div",{ref:Mt,className:dn.ATreeBody,children:[we.length===0?H?v.jsx(KN,{text:ve["Loading Contents..."]}):x:X,we.map((Qe,Tt)=>v.jsx(z,{isEqual:Oe,indents:[],extIndents:C,item:Qe,selectDisabled:t,selectUnused:n,isParentDisabled:O,useExpand:[ze,We],useSelect:[De,Ae],useSearch:[_e,Ge],onDragStart:ge,onDragOver:ne,onDragEnd:Je,showCheckbox:g,icons:R,iconWidth:m,isSelectMulti:b,isDraggable:_,isParentCheckHovered:b&&bt,ContentRenderer:q,TreeItemRenderer:z,RightStickyAddon:K,resources:ve,containerRef:et,TreeItemStyle:J,TreeItemClassName:Q,hoverdItem:Re,onMouseOver:Rt,onMouseLeave:vt,searchItemClassName:ce,searchItemStyle:ke,height:le},`${Tt}${ct}`))]}),me&&v.jsxs(v.Fragment,{children:[v.jsx("div",{className:dn.CoverBorder}),v.jsx("div",{className:dn.InsertBorder,style:{"--InsertBorder_height":`${le}px`,height:Qt?Bt:"100%"}})]})]})})]})},GN=r=>{const{item:e}=r,t={};return er.keys(e).forEach(n=>{n!=="children"&&(t[n]=e[n])}),JSON.stringify(t)};function ZN(r,e){return er.some(e,(t,n)=>{var i;return(i=er.stringify(n))==null?void 0:i.toLowerCase().includes(r.toLowerCase())})}const KN=r=>{const{text:e}=r;return v.jsxs(Sn,{className:Fe.clsx(dn.Loader,"NoSelect"),children:[v.jsx(jr,{icon:"Spinner",style:{height:40},height:40,width:40}),v.jsx(V2,{text:e})]})};var Zg,Xb;function nf(){return Xb||(Xb=1,Zg=TypeError),Zg}const YN={},XN=Object.freeze(Object.defineProperty({__proto__:null,default:YN},Symbol.toStringTag,{value:"Module"})),JN=n4(XN);var Kg,Jb;function wh(){if(Jb)return Kg;Jb=1;var r=typeof Map=="function"&&Map.prototype,e=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,t=r&&e&&typeof e.get=="function"?e.get:null,n=r&&Map.prototype.forEach,i=typeof Set=="function"&&Set.prototype,l=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=i&&l&&typeof l.get=="function"?l.get:null,f=i&&Set.prototype.forEach,g=typeof WeakMap=="function"&&WeakMap.prototype,m=g?WeakMap.prototype.has:null,R=typeof WeakSet=="function"&&WeakSet.prototype,C=R?WeakSet.prototype.has:null,b=typeof WeakRef=="function"&&WeakRef.prototype,S=b?WeakRef.prototype.deref:null,_=Boolean.prototype.valueOf,D=Object.prototype.toString,E=Function.prototype.toString,x=String.prototype.match,L=String.prototype.slice,O=String.prototype.replace,H=String.prototype.toUpperCase,q=String.prototype.toLowerCase,z=RegExp.prototype.test,K=Array.prototype.concat,ue=Array.prototype.join,X=Array.prototype.slice,de=Math.floor,j=typeof BigInt=="function"?BigInt.prototype.valueOf:null,re=Object.getOwnPropertySymbols,J=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Q=typeof Symbol=="function"&&typeof Symbol.iterator=="object",he=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Q||!0)?Symbol.toStringTag:null,me=Object.prototype.propertyIsEnumerable,be=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(ge){return ge.__proto__}:null);function ce(ge,ne){if(ge===1/0||ge===-1/0||ge!==ge||ge&&ge>-1e3&&ge<1e3||z.call(/e/,ne))return ne;var Je=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof ge=="number"){var ct=ge<0?-de(-ge):de(ge);if(ct!==ge){var tt=String(ct),Re=L.call(ne,tt.length+1);return O.call(tt,Je,"$&_")+"."+O.call(O.call(Re,/([0-9]{3})/g,"$&_"),/_$/,"")}}return O.call(ne,Je,"$&_")}var ke=JN,le=ke.custom,oe=lt(le)?le:null,ve={__proto__:null,double:'"',single:"'"},Oe={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Kg=function ge(ne,Je,ct,tt){var Re=Je||{};if(Le(Re,"quoteStyle")&&!Le(ve,Re.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Le(Re,"maxStringLength")&&(typeof Re.maxStringLength=="number"?Re.maxStringLength<0&&Re.maxStringLength!==1/0:Re.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var xt=Le(Re,"customInspect")?Re.customInspect:!0;if(typeof xt!="boolean"&&xt!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Le(Re,"indent")&&Re.indent!==null&&Re.indent!==" "&&!(parseInt(Re.indent,10)===Re.indent&&Re.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Le(Re,"numericSeparator")&&typeof Re.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var Rt=Re.numericSeparator;if(typeof ne>"u")return"undefined";if(ne===null)return"null";if(typeof ne=="boolean")return ne?"true":"false";if(typeof ne=="string")return Et(ne,Re);if(typeof ne=="number"){if(ne===0)return 1/0/ne>0?"0":"-0";var vt=String(ne);return Rt?ce(ne,vt):vt}if(typeof ne=="bigint"){var Mt=String(ne)+"n";return Rt?ce(ne,Mt):Mt}var Qt=typeof Re.depth>"u"?5:Re.depth;if(typeof ct>"u"&&(ct=0),ct>=Qt&&Qt>0&&typeof ne=="object")return je(ne)?"[Array]":"[Object]";var rr=mr(Re,ct);if(typeof tt>"u")tt=[];else if(Ct(tt,ne)>=0)return"[Circular]";function Bt(ir,fr,Ur){if(fr&&(tt=X.call(tt),tt.push(fr)),Ur){var yr={depth:Re.depth};return Le(Re,"quoteStyle")&&(yr.quoteStyle=Re.quoteStyle),ge(ir,yr,ct+1,tt)}return ge(ir,Re,ct+1,tt)}if(typeof ne=="function"&&!We(ne)){var qt=it(ne),sr=Cr(ne,Bt);return"[Function"+(qt?": "+qt:" (anonymous)")+"]"+(sr.length>0?" { "+ue.call(sr,", ")+" }":"")}if(lt(ne)){var Qe=Q?O.call(String(ne),/^(Symbol\(.*\))_[^)]*$/,"$1"):J.call(ne);return typeof ne=="object"&&!Q?Dt(Qe):Qe}if(pt(ne)){for(var Tt="<"+q.call(String(ne.nodeName)),yt=ne.attributes||[],Lt=0;Lt<yt.length;Lt++)Tt+=" "+yt[Lt].name+"="+et(we(yt[Lt].value),"double",Re);return Tt+=">",ne.childNodes&&ne.childNodes.length&&(Tt+="..."),Tt+="</"+q.call(String(ne.nodeName))+">",Tt}if(je(ne)){if(ne.length===0)return"[]";var vr=Cr(ne,Bt);return rr&&!jt(vr)?"["+kr(vr,rr)+"]":"[ "+ue.call(vr,", ")+" ]"}if(De(ne)){var Y=Cr(ne,Bt);return!("cause"in Error.prototype)&&"cause"in ne&&!me.call(ne,"cause")?"{ ["+String(ne)+"] "+ue.call(K.call("[cause]: "+Bt(ne.cause),Y),", ")+" }":Y.length===0?"["+String(ne)+"]":"{ ["+String(ne)+"] "+ue.call(Y,", ")+" }"}if(typeof ne=="object"&&xt){if(oe&&typeof ne[oe]=="function"&&ke)return ke(ne,{depth:Qt-ct});if(xt!=="symbol"&&typeof ne.inspect=="function")return ne.inspect()}if(_t(ne)){var pe=[];return n&&n.call(ne,function(ir,fr){pe.push(Bt(fr,ne,!0)+" => "+Bt(ir,ne))}),At("Map",t.call(ne),pe,rr)}if(St(ne)){var Be=[];return f&&f.call(ne,function(ir){Be.push(Bt(ir,ne))}),At("Set",u.call(ne),Be,rr)}if(wt(ne))return Ze("WeakMap");if(Me(ne))return Ze("WeakSet");if(bt(ne))return Ze("WeakRef");if(_e(ne))return Dt(Bt(Number(ne)));if($e(ne))return Dt(Bt(j.call(ne)));if(Ge(ne))return Dt(_.call(ne));if(Ae(ne))return Dt(Bt(String(ne)));if(typeof window<"u"&&ne===window)return"{ [object Window] }";if(typeof globalThis<"u"&&ne===globalThis||typeof bi<"u"&&ne===bi)return"{ [object globalThis] }";if(!ze(ne)&&!We(ne)){var ot=Cr(ne,Bt),Ot=be?be(ne)===Object.prototype:ne instanceof Object||ne.constructor===Object,$t=ne instanceof Object?"":"null prototype",kt=!Ot&&he&&Object(ne)===ne&&he in ne?L.call(Xe(ne),8,-1):$t?"Object":"",Ut=Ot||typeof ne.constructor!="function"?"":ne.constructor.name?ne.constructor.name+" ":"",nr=Ut+(kt||$t?"["+ue.call(K.call([],kt||[],$t||[]),": ")+"] ":"");return ot.length===0?nr+"{}":rr?nr+"{"+kr(ot,rr)+"}":nr+"{ "+ue.call(ot,", ")+" }"}return String(ne)};function et(ge,ne,Je){var ct=Je.quoteStyle||ne,tt=ve[ct];return tt+ge+tt}function we(ge){return O.call(String(ge),/"/g,""")}function Pe(ge){return!he||!(typeof ge=="object"&&(he in ge||typeof ge[he]<"u"))}function je(ge){return Xe(ge)==="[object Array]"&&Pe(ge)}function ze(ge){return Xe(ge)==="[object Date]"&&Pe(ge)}function We(ge){return Xe(ge)==="[object RegExp]"&&Pe(ge)}function De(ge){return Xe(ge)==="[object Error]"&&Pe(ge)}function Ae(ge){return Xe(ge)==="[object String]"&&Pe(ge)}function _e(ge){return Xe(ge)==="[object Number]"&&Pe(ge)}function Ge(ge){return Xe(ge)==="[object Boolean]"&&Pe(ge)}function lt(ge){if(Q)return ge&&typeof ge=="object"&&ge instanceof Symbol;if(typeof ge=="symbol")return!0;if(!ge||typeof ge!="object"||!J)return!1;try{return J.call(ge),!0}catch{}return!1}function $e(ge){if(!ge||typeof ge!="object"||!j)return!1;try{return j.call(ge),!0}catch{}return!1}var ht=Object.prototype.hasOwnProperty||function(ge){return ge in this};function Le(ge,ne){return ht.call(ge,ne)}function Xe(ge){return D.call(ge)}function it(ge){if(ge.name)return ge.name;var ne=x.call(E.call(ge),/^function\s*([\w$]+)/);return ne?ne[1]:null}function Ct(ge,ne){if(ge.indexOf)return ge.indexOf(ne);for(var Je=0,ct=ge.length;Je<ct;Je++)if(ge[Je]===ne)return Je;return-1}function _t(ge){if(!t||!ge||typeof ge!="object")return!1;try{t.call(ge);try{u.call(ge)}catch{return!0}return ge instanceof Map}catch{}return!1}function wt(ge){if(!m||!ge||typeof ge!="object")return!1;try{m.call(ge,m);try{C.call(ge,C)}catch{return!0}return ge instanceof WeakMap}catch{}return!1}function bt(ge){if(!S||!ge||typeof ge!="object")return!1;try{return S.call(ge),!0}catch{}return!1}function St(ge){if(!u||!ge||typeof ge!="object")return!1;try{u.call(ge);try{t.call(ge)}catch{return!0}return ge instanceof Set}catch{}return!1}function Me(ge){if(!C||!ge||typeof ge!="object")return!1;try{C.call(ge,C);try{m.call(ge,m)}catch{return!0}return ge instanceof WeakSet}catch{}return!1}function pt(ge){return!ge||typeof ge!="object"?!1:typeof HTMLElement<"u"&&ge instanceof HTMLElement?!0:typeof ge.nodeName=="string"&&typeof ge.getAttribute=="function"}function Et(ge,ne){if(ge.length>ne.maxStringLength){var Je=ge.length-ne.maxStringLength,ct="... "+Je+" more character"+(Je>1?"s":"");return Et(L.call(ge,0,ne.maxStringLength),ne)+ct}var tt=Oe[ne.quoteStyle||"single"];tt.lastIndex=0;var Re=O.call(O.call(ge,tt,"\\$1"),/[\x00-\x1f]/g,mt);return et(Re,"single",ne)}function mt(ge){var ne=ge.charCodeAt(0),Je={8:"b",9:"t",10:"n",12:"f",13:"r"}[ne];return Je?"\\"+Je:"\\x"+(ne<16?"0":"")+H.call(ne.toString(16))}function Dt(ge){return"Object("+ge+")"}function Ze(ge){return ge+" { ? }"}function At(ge,ne,Je,ct){var tt=ct?kr(Je,ct):ue.call(Je,", ");return ge+" ("+ne+") {"+tt+"}"}function jt(ge){for(var ne=0;ne<ge.length;ne++)if(Ct(ge[ne],`
|
356
356
|
`)>=0)return!1;return!0}function mr(ge,ne){var Je;if(ge.indent===" ")Je=" ";else if(typeof ge.indent=="number"&&ge.indent>0)Je=ue.call(Array(ge.indent+1)," ");else return null;return{base:Je,prev:ue.call(Array(ne+1),Je)}}function kr(ge,ne){if(ge.length===0)return"";var Je=`
|
357
357
|
`+ne.prev+ne.base;return Je+ue.call(ge,","+Je)+`
|
358
|
-
`+ne.prev}function Cr(ge,ne){var Je=je(ge),ct=[];if(Je){ct.length=ge.length;for(var tt=0;tt<ge.length;tt++)ct[tt]=Le(ge,tt)?ne(ge[tt],ge):""}var Re=typeof re=="function"?re(ge):[],xt;if(Q){xt={};for(var Rt=0;Rt<Re.length;Rt++)xt["$"+Re[Rt]]=Re[Rt]}for(var vt in ge)Le(ge,vt)&&(Je&&String(Number(vt))===vt&&vt<ge.length||Q&&xt["$"+vt]instanceof Symbol||(z.call(/[^\w$]/,vt)?ct.push(ne(vt,ge)+": "+ne(ge[vt],ge)):ct.push(vt+": "+ne(ge[vt],ge))));if(typeof re=="function")for(var Mt=0;Mt<Re.length;Mt++)me.call(ge,Re[Mt])&&ct.push("["+ne(Re[Mt])+"]: "+ne(ge[Re[Mt]],ge));return ct}return Kg}var Yg,Qb;function QN(){if(Qb)return Yg;Qb=1;var r=wh(),e=nf(),t=function(f,g,m){for(var R=f,w;(w=R.next)!=null;R=w)if(w.key===g)return R.next=w.next,m||(w.next=f.next,f.next=w),w},n=function(f,g){if(f){var m=t(f,g);return m&&m.value}},i=function(f,g,m){var R=t(f,g);R?R.value=m:f.next={key:g,next:f.next,value:m}},l=function(f,g){return f?!!t(f,g):!1},u=function(f,g){if(f)return t(f,g,!0)};return Yg=function(){var g,m={assert:function(R){if(!m.has(R))throw new e("Side channel does not contain "+r(R))},delete:function(R){var w=g&&g.next,b=u(g,R);return b&&w&&w===b&&(g=void 0),!!b},get:function(R){return n(g,R)},has:function(R){return l(g,R)},set:function(R,w){g||(g={next:void 0}),i(g,R,w)}};return m},Yg}var Xg,e_;function pS(){return e_||(e_=1,Xg=Object),Xg}var Jg,t_;function eF(){return t_||(t_=1,Jg=Error),Jg}var Qg,r_;function tF(){return r_||(r_=1,Qg=EvalError),Qg}var e1,n_;function rF(){return n_||(n_=1,e1=RangeError),e1}var t1,i_;function nF(){return i_||(i_=1,t1=ReferenceError),t1}var r1,o_;function iF(){return o_||(o_=1,r1=SyntaxError),r1}var n1,s_;function oF(){return s_||(s_=1,n1=URIError),n1}var i1,a_;function sF(){return a_||(a_=1,i1=Math.abs),i1}var o1,l_;function aF(){return l_||(l_=1,o1=Math.floor),o1}var s1,c_;function lF(){return c_||(c_=1,s1=Math.max),s1}var a1,u_;function cF(){return u_||(u_=1,a1=Math.min),a1}var l1,f_;function uF(){return f_||(f_=1,l1=Math.pow),l1}var c1,d_;function fF(){return d_||(d_=1,c1=Math.round),c1}var u1,h_;function dF(){return h_||(h_=1,u1=Number.isNaN||function(e){return e!==e}),u1}var f1,p_;function hF(){if(p_)return f1;p_=1;var r=dF();return f1=function(t){return r(t)||t===0?t:t<0?-1:1},f1}var d1,g_;function pF(){return g_||(g_=1,d1=Object.getOwnPropertyDescriptor),d1}var h1,m_;function gS(){if(m_)return h1;m_=1;var r=pF();if(r)try{r([],"length")}catch{r=null}return h1=r,h1}var p1,v_;function gF(){if(v_)return p1;v_=1;var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}return p1=r,p1}var g1,y_;function mF(){return y_||(y_=1,g1=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;e[t]=i;for(var l in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var u=Object.getOwnPropertySymbols(e);if(u.length!==1||u[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var f=Object.getOwnPropertyDescriptor(e,t);if(f.value!==i||f.enumerable!==!0)return!1}return!0}),g1}var m1,b_;function vF(){if(b_)return m1;b_=1;var r=typeof Symbol<"u"&&Symbol,e=mF();return m1=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},m1}var v1,__;function mS(){return __||(__=1,v1=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),v1}var y1,x_;function vS(){if(x_)return y1;x_=1;var r=pS();return y1=r.getPrototypeOf||null,y1}var b1,S_;function yF(){if(S_)return b1;S_=1;var r="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,n="[object Function]",i=function(g,m){for(var R=[],w=0;w<g.length;w+=1)R[w]=g[w];for(var b=0;b<m.length;b+=1)R[b+g.length]=m[b];return R},l=function(g,m){for(var R=[],w=m,b=0;w<g.length;w+=1,b+=1)R[b]=g[w];return R},u=function(f,g){for(var m="",R=0;R<f.length;R+=1)m+=f[R],R+1<f.length&&(m+=g);return m};return b1=function(g){var m=this;if(typeof m!="function"||e.apply(m)!==n)throw new TypeError(r+m);for(var R=l(arguments,1),w,b=function(){if(this instanceof w){var x=m.apply(this,i(R,arguments));return Object(x)===x?x:this}return m.apply(g,i(R,arguments))},S=t(0,m.length-R.length),_=[],D=0;D<S;D++)_[D]="$"+D;if(w=Function("binder","return function ("+u(_,",")+"){ return binder.apply(this,arguments); }")(b),m.prototype){var E=function(){};E.prototype=m.prototype,w.prototype=new E,E.prototype=null}return w},b1}var _1,C_;function Ah(){if(C_)return _1;C_=1;var r=yF();return _1=Function.prototype.bind||r,_1}var x1,w_;function $m(){return w_||(w_=1,x1=Function.prototype.call),x1}var S1,A_;function yS(){return A_||(A_=1,S1=Function.prototype.apply),S1}var C1,T_;function bF(){return T_||(T_=1,C1=typeof Reflect<"u"&&Reflect&&Reflect.apply),C1}var w1,E_;function _F(){if(E_)return w1;E_=1;var r=Ah(),e=yS(),t=$m(),n=bF();return w1=n||r.call(t,e),w1}var A1,k_;function bS(){if(k_)return A1;k_=1;var r=Ah(),e=nf(),t=$m(),n=_F();return A1=function(l){if(l.length<1||typeof l[0]!="function")throw new e("a function is required");return n(r,t,l)},A1}var T1,R_;function xF(){if(R_)return T1;R_=1;var r=bS(),e=gS(),t;try{t=[].__proto__===Array.prototype}catch(u){if(!u||typeof u!="object"||!("code"in u)||u.code!=="ERR_PROTO_ACCESS")throw u}var n=!!t&&e&&e(Object.prototype,"__proto__"),i=Object,l=i.getPrototypeOf;return T1=n&&typeof n.get=="function"?r([n.get]):typeof l=="function"?function(f){return l(f==null?f:i(f))}:!1,T1}var E1,I_;function SF(){if(I_)return E1;I_=1;var r=mS(),e=vS(),t=xF();return E1=r?function(i){return r(i)}:e?function(i){if(!i||typeof i!="object"&&typeof i!="function")throw new TypeError("getProto: not an object");return e(i)}:t?function(i){return t(i)}:null,E1}var k1,L_;function CF(){if(L_)return k1;L_=1;var r=Function.prototype.call,e=Object.prototype.hasOwnProperty,t=Ah();return k1=t.call(r,e),k1}var R1,M_;function Um(){if(M_)return R1;M_=1;var r,e=pS(),t=eF(),n=tF(),i=rF(),l=nF(),u=iF(),f=nf(),g=oF(),m=sF(),R=aF(),w=lF(),b=cF(),S=uF(),_=fF(),D=hF(),E=Function,x=function(We){try{return E('"use strict"; return ('+We+").constructor;")()}catch{}},L=gS(),O=gF(),H=function(){throw new f},q=L?function(){try{return arguments.callee,H}catch{try{return L(arguments,"callee").get}catch{return H}}}():H,z=vF()(),K=SF(),ue=vS(),X=mS(),de=yS(),j=$m(),re={},J=typeof Uint8Array>"u"||!K?r:K(Uint8Array),Q={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":z&&K?K([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":re,"%AsyncGenerator%":re,"%AsyncGeneratorFunction%":re,"%AsyncIteratorPrototype%":re,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":t,"%eval%":eval,"%EvalError%":n,"%Float16Array%":typeof Float16Array>"u"?r:Float16Array,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":E,"%GeneratorFunction%":re,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":z&&K?K(K([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!z||!K?r:K(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":e,"%Object.getOwnPropertyDescriptor%":L,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":i,"%ReferenceError%":l,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!z||!K?r:K(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":z&&K?K(""[Symbol.iterator]()):r,"%Symbol%":z?Symbol:r,"%SyntaxError%":u,"%ThrowTypeError%":q,"%TypedArray%":J,"%TypeError%":f,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":g,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":j,"%Function.prototype.apply%":de,"%Object.defineProperty%":O,"%Object.getPrototypeOf%":ue,"%Math.abs%":m,"%Math.floor%":R,"%Math.max%":w,"%Math.min%":b,"%Math.pow%":S,"%Math.round%":_,"%Math.sign%":D,"%Reflect.getPrototypeOf%":X};if(K)try{null.error}catch(We){var he=K(K(We));Q["%Error.prototype%"]=he}var me=function We(De){var Ae;if(De==="%AsyncFunction%")Ae=x("async function () {}");else if(De==="%GeneratorFunction%")Ae=x("function* () {}");else if(De==="%AsyncGeneratorFunction%")Ae=x("async function* () {}");else if(De==="%AsyncGenerator%"){var _e=We("%AsyncGeneratorFunction%");_e&&(Ae=_e.prototype)}else if(De==="%AsyncIteratorPrototype%"){var Ge=We("%AsyncGenerator%");Ge&&K&&(Ae=K(Ge.prototype))}return Q[De]=Ae,Ae},be={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ce=Ah(),ke=CF(),le=ce.call(j,Array.prototype.concat),oe=ce.call(de,Array.prototype.splice),ve=ce.call(j,String.prototype.replace),Oe=ce.call(j,String.prototype.slice),et=ce.call(j,RegExp.prototype.exec),we=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Pe=/\\(\\)?/g,je=function(De){var Ae=Oe(De,0,1),_e=Oe(De,-1);if(Ae==="%"&&_e!=="%")throw new u("invalid intrinsic syntax, expected closing `%`");if(_e==="%"&&Ae!=="%")throw new u("invalid intrinsic syntax, expected opening `%`");var Ge=[];return ve(De,we,function(lt,$e,ht,Le){Ge[Ge.length]=ht?ve(Le,Pe,"$1"):$e||lt}),Ge},ze=function(De,Ae){var _e=De,Ge;if(ke(be,_e)&&(Ge=be[_e],_e="%"+Ge[0]+"%"),ke(Q,_e)){var lt=Q[_e];if(lt===re&&(lt=me(_e)),typeof lt>"u"&&!Ae)throw new f("intrinsic "+De+" exists, but is not available. Please file an issue!");return{alias:Ge,name:_e,value:lt}}throw new u("intrinsic "+De+" does not exist!")};return R1=function(De,Ae){if(typeof De!="string"||De.length===0)throw new f("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Ae!="boolean")throw new f('"allowMissing" argument must be a boolean');if(et(/^%?[^%]*%?$/,De)===null)throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var _e=je(De),Ge=_e.length>0?_e[0]:"",lt=ze("%"+Ge+"%",Ae),$e=lt.name,ht=lt.value,Le=!1,Xe=lt.alias;Xe&&(Ge=Xe[0],oe(_e,le([0,1],Xe)));for(var it=1,Ct=!0;it<_e.length;it+=1){var _t=_e[it],wt=Oe(_t,0,1),bt=Oe(_t,-1);if((wt==='"'||wt==="'"||wt==="`"||bt==='"'||bt==="'"||bt==="`")&&wt!==bt)throw new u("property names with quotes must have matching quotes");if((_t==="constructor"||!Ct)&&(Le=!0),Ge+="."+_t,$e="%"+Ge+"%",ke(Q,$e))ht=Q[$e];else if(ht!=null){if(!(_t in ht)){if(!Ae)throw new f("base intrinsic for "+De+" exists, but the property is not available.");return}if(L&&it+1>=_e.length){var St=L(ht,_t);Ct=!!St,Ct&&"get"in St&&!("originalValue"in St.get)?ht=St.get:ht=ht[_t]}else Ct=ke(ht,_t),ht=ht[_t];Ct&&!Le&&(Q[$e]=ht)}}return ht},R1}var I1,D_;function _S(){if(D_)return I1;D_=1;var r=Um(),e=bS(),t=e([r("%String.prototype.indexOf%")]);return I1=function(i,l){var u=r(i,!!l);return typeof u=="function"&&t(i,".prototype.")>-1?e([u]):u},I1}var L1,O_;function xS(){if(O_)return L1;O_=1;var r=Um(),e=_S(),t=wh(),n=nf(),i=r("%Map%",!0),l=e("Map.prototype.get",!0),u=e("Map.prototype.set",!0),f=e("Map.prototype.has",!0),g=e("Map.prototype.delete",!0),m=e("Map.prototype.size",!0);return L1=!!i&&function(){var w,b={assert:function(S){if(!b.has(S))throw new n("Side channel does not contain "+t(S))},delete:function(S){if(w){var _=g(w,S);return m(w)===0&&(w=void 0),_}return!1},get:function(S){if(w)return l(w,S)},has:function(S){return w?f(w,S):!1},set:function(S,_){w||(w=new i),u(w,S,_)}};return b},L1}var M1,P_;function wF(){if(P_)return M1;P_=1;var r=Um(),e=_S(),t=wh(),n=xS(),i=nf(),l=r("%WeakMap%",!0),u=e("WeakMap.prototype.get",!0),f=e("WeakMap.prototype.set",!0),g=e("WeakMap.prototype.has",!0),m=e("WeakMap.prototype.delete",!0);return M1=l?function(){var w,b,S={assert:function(_){if(!S.has(_))throw new i("Side channel does not contain "+t(_))},delete:function(_){if(l&&_&&(typeof _=="object"||typeof _=="function")){if(w)return m(w,_)}else if(n&&b)return b.delete(_);return!1},get:function(_){return l&&_&&(typeof _=="object"||typeof _=="function")&&w?u(w,_):b&&b.get(_)},has:function(_){return l&&_&&(typeof _=="object"||typeof _=="function")&&w?g(w,_):!!b&&b.has(_)},set:function(_,D){l&&_&&(typeof _=="object"||typeof _=="function")?(w||(w=new l),f(w,_,D)):n&&(b||(b=n()),b.set(_,D))}};return S}:n,M1}var D1,N_;function AF(){if(N_)return D1;N_=1;var r=nf(),e=wh(),t=QN(),n=xS(),i=wF(),l=i||n||t;return D1=function(){var f,g={assert:function(m){if(!g.has(m))throw new r("Side channel does not contain "+e(m))},delete:function(m){return!!f&&f.delete(m)},get:function(m){return f&&f.get(m)},has:function(m){return!!f&&f.has(m)},set:function(m,R){f||(f=l()),f.set(m,R)}};return g},D1}var O1,F_;function Wm(){if(F_)return O1;F_=1;var r=String.prototype.replace,e=/%20/g,t={RFC1738:"RFC1738",RFC3986:"RFC3986"};return O1={default:t.RFC3986,formatters:{RFC1738:function(n){return r.call(n,e,"+")},RFC3986:function(n){return String(n)}},RFC1738:t.RFC1738,RFC3986:t.RFC3986},O1}var P1,j_;function SS(){if(j_)return P1;j_=1;var r=Wm(),e=Object.prototype.hasOwnProperty,t=Array.isArray,n=function(){for(var E=[],x=0;x<256;++x)E.push("%"+((x<16?"0":"")+x.toString(16)).toUpperCase());return E}(),i=function(x){for(;x.length>1;){var L=x.pop(),O=L.obj[L.prop];if(t(O)){for(var H=[],q=0;q<O.length;++q)typeof O[q]<"u"&&H.push(O[q]);L.obj[L.prop]=H}}},l=function(x,L){for(var O=L&&L.plainObjects?{__proto__:null}:{},H=0;H<x.length;++H)typeof x[H]<"u"&&(O[H]=x[H]);return O},u=function E(x,L,O){if(!L)return x;if(typeof L!="object"&&typeof L!="function"){if(t(x))x.push(L);else if(x&&typeof x=="object")(O&&(O.plainObjects||O.allowPrototypes)||!e.call(Object.prototype,L))&&(x[L]=!0);else return[x,L];return x}if(!x||typeof x!="object")return[x].concat(L);var H=x;return t(x)&&!t(L)&&(H=l(x,O)),t(x)&&t(L)?(L.forEach(function(q,z){if(e.call(x,z)){var K=x[z];K&&typeof K=="object"&&q&&typeof q=="object"?x[z]=E(K,q,O):x.push(q)}else x[z]=q}),x):Object.keys(L).reduce(function(q,z){var K=L[z];return e.call(q,z)?q[z]=E(q[z],K,O):q[z]=K,q},H)},f=function(x,L){return Object.keys(L).reduce(function(O,H){return O[H]=L[H],O},x)},g=function(E,x,L){var O=E.replace(/\+/g," ");if(L==="iso-8859-1")return O.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(O)}catch{return O}},m=1024,R=function(x,L,O,H,q){if(x.length===0)return x;var z=x;if(typeof x=="symbol"?z=Symbol.prototype.toString.call(x):typeof x!="string"&&(z=String(x)),O==="iso-8859-1")return escape(z).replace(/%u[0-9a-f]{4}/gi,function(J){return"%26%23"+parseInt(J.slice(2),16)+"%3B"});for(var K="",ue=0;ue<z.length;ue+=m){for(var X=z.length>=m?z.slice(ue,ue+m):z,de=[],j=0;j<X.length;++j){var re=X.charCodeAt(j);if(re===45||re===46||re===95||re===126||re>=48&&re<=57||re>=65&&re<=90||re>=97&&re<=122||q===r.RFC1738&&(re===40||re===41)){de[de.length]=X.charAt(j);continue}if(re<128){de[de.length]=n[re];continue}if(re<2048){de[de.length]=n[192|re>>6]+n[128|re&63];continue}if(re<55296||re>=57344){de[de.length]=n[224|re>>12]+n[128|re>>6&63]+n[128|re&63];continue}j+=1,re=65536+((re&1023)<<10|X.charCodeAt(j)&1023),de[de.length]=n[240|re>>18]+n[128|re>>12&63]+n[128|re>>6&63]+n[128|re&63]}K+=de.join("")}return K},w=function(x){for(var L=[{obj:{o:x},prop:"o"}],O=[],H=0;H<L.length;++H)for(var q=L[H],z=q.obj[q.prop],K=Object.keys(z),ue=0;ue<K.length;++ue){var X=K[ue],de=z[X];typeof de=="object"&&de!==null&&O.indexOf(de)===-1&&(L.push({obj:z,prop:X}),O.push(de))}return i(L),x},b=function(x){return Object.prototype.toString.call(x)==="[object RegExp]"},S=function(x){return!x||typeof x!="object"?!1:!!(x.constructor&&x.constructor.isBuffer&&x.constructor.isBuffer(x))},_=function(x,L){return[].concat(x,L)},D=function(x,L){if(t(x)){for(var O=[],H=0;H<x.length;H+=1)O.push(L(x[H]));return O}return L(x)};return P1={arrayToObject:l,assign:f,combine:_,compact:w,decode:g,encode:R,isBuffer:S,isRegExp:b,maybeMap:D,merge:u},P1}var N1,B_;function TF(){if(B_)return N1;B_=1;var r=AF(),e=SS(),t=Wm(),n=Object.prototype.hasOwnProperty,i={brackets:function(E){return E+"[]"},comma:"comma",indices:function(E,x){return E+"["+x+"]"},repeat:function(E){return E}},l=Array.isArray,u=Array.prototype.push,f=function(D,E){u.apply(D,l(E)?E:[E])},g=Date.prototype.toISOString,m=t.default,R={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:e.encode,encodeValuesOnly:!1,filter:void 0,format:m,formatter:t.formatters[m],indices:!1,serializeDate:function(E){return g.call(E)},skipNulls:!1,strictNullHandling:!1},w=function(E){return typeof E=="string"||typeof E=="number"||typeof E=="boolean"||typeof E=="symbol"||typeof E=="bigint"},b={},S=function D(E,x,L,O,H,q,z,K,ue,X,de,j,re,J,Q,he,me,be){for(var ce=E,ke=be,le=0,oe=!1;(ke=ke.get(b))!==void 0&&!oe;){var ve=ke.get(E);if(le+=1,typeof ve<"u"){if(ve===le)throw new RangeError("Cyclic object value");oe=!0}typeof ke.get(b)>"u"&&(le=0)}if(typeof X=="function"?ce=X(x,ce):ce instanceof Date?ce=re(ce):L==="comma"&&l(ce)&&(ce=e.maybeMap(ce,function($e){return $e instanceof Date?re($e):$e})),ce===null){if(q)return ue&&!he?ue(x,R.encoder,me,"key",J):x;ce=""}if(w(ce)||e.isBuffer(ce)){if(ue){var Oe=he?x:ue(x,R.encoder,me,"key",J);return[Q(Oe)+"="+Q(ue(ce,R.encoder,me,"value",J))]}return[Q(x)+"="+Q(String(ce))]}var et=[];if(typeof ce>"u")return et;var we;if(L==="comma"&&l(ce))he&&ue&&(ce=e.maybeMap(ce,ue)),we=[{value:ce.length>0?ce.join(",")||null:void 0}];else if(l(X))we=X;else{var Pe=Object.keys(ce);we=de?Pe.sort(de):Pe}var je=K?String(x).replace(/\./g,"%2E"):String(x),ze=O&&l(ce)&&ce.length===1?je+"[]":je;if(H&&l(ce)&&ce.length===0)return ze+"[]";for(var We=0;We<we.length;++We){var De=we[We],Ae=typeof De=="object"&&De&&typeof De.value<"u"?De.value:ce[De];if(!(z&&Ae===null)){var _e=j&&K?String(De).replace(/\./g,"%2E"):String(De),Ge=l(ce)?typeof L=="function"?L(ze,_e):ze:ze+(j?"."+_e:"["+_e+"]");be.set(E,le);var lt=r();lt.set(b,be),f(et,D(Ae,Ge,L,O,H,q,z,K,L==="comma"&&he&&l(ce)?null:ue,X,de,j,re,J,Q,he,me,lt))}}return et},_=function(E){if(!E)return R;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.");var x=E.charset||R.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");var L=t.default;if(typeof E.format<"u"){if(!n.call(t.formatters,E.format))throw new TypeError("Unknown format option provided.");L=E.format}var O=t.formatters[L],H=R.filter;(typeof E.filter=="function"||l(E.filter))&&(H=E.filter);var q;if(E.arrayFormat in i?q=E.arrayFormat:"indices"in E?q=E.indices?"indices":"repeat":q=R.arrayFormat,"commaRoundTrip"in E&&typeof E.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var z=typeof E.allowDots>"u"?E.encodeDotInKeys===!0?!0:R.allowDots:!!E.allowDots;return{addQueryPrefix:typeof E.addQueryPrefix=="boolean"?E.addQueryPrefix:R.addQueryPrefix,allowDots:z,allowEmptyArrays:typeof E.allowEmptyArrays=="boolean"?!!E.allowEmptyArrays:R.allowEmptyArrays,arrayFormat:q,charset:x,charsetSentinel:typeof E.charsetSentinel=="boolean"?E.charsetSentinel:R.charsetSentinel,commaRoundTrip:!!E.commaRoundTrip,delimiter:typeof E.delimiter>"u"?R.delimiter:E.delimiter,encode:typeof E.encode=="boolean"?E.encode:R.encode,encodeDotInKeys:typeof E.encodeDotInKeys=="boolean"?E.encodeDotInKeys:R.encodeDotInKeys,encoder:typeof E.encoder=="function"?E.encoder:R.encoder,encodeValuesOnly:typeof E.encodeValuesOnly=="boolean"?E.encodeValuesOnly:R.encodeValuesOnly,filter:H,format:L,formatter:O,serializeDate:typeof E.serializeDate=="function"?E.serializeDate:R.serializeDate,skipNulls:typeof E.skipNulls=="boolean"?E.skipNulls:R.skipNulls,sort:typeof E.sort=="function"?E.sort:null,strictNullHandling:typeof E.strictNullHandling=="boolean"?E.strictNullHandling:R.strictNullHandling}};return N1=function(D,E){var x=D,L=_(E),O,H;typeof L.filter=="function"?(H=L.filter,x=H("",x)):l(L.filter)&&(H=L.filter,O=H);var q=[];if(typeof x!="object"||x===null)return"";var z=i[L.arrayFormat],K=z==="comma"&&L.commaRoundTrip;O||(O=Object.keys(x)),L.sort&&O.sort(L.sort);for(var ue=r(),X=0;X<O.length;++X){var de=O[X],j=x[de];L.skipNulls&&j===null||f(q,S(j,de,z,K,L.allowEmptyArrays,L.strictNullHandling,L.skipNulls,L.encodeDotInKeys,L.encode?L.encoder:null,L.filter,L.sort,L.allowDots,L.serializeDate,L.format,L.formatter,L.encodeValuesOnly,L.charset,ue))}var re=q.join(L.delimiter),J=L.addQueryPrefix===!0?"?":"";return L.charsetSentinel&&(L.charset==="iso-8859-1"?J+="utf8=%26%2310003%3B&":J+="utf8=%E2%9C%93&"),re.length>0?J+re:""},N1}var F1,H_;function EF(){if(H_)return F1;H_=1;var r=SS(),e=Object.prototype.hasOwnProperty,t=Array.isArray,n={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:r.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},i=function(b){return b.replace(/&#(\d+);/g,function(S,_){return String.fromCharCode(parseInt(_,10))})},l=function(b,S,_){if(b&&typeof b=="string"&&S.comma&&b.indexOf(",")>-1)return b.split(",");if(S.throwOnLimitExceeded&&_>=S.arrayLimit)throw new RangeError("Array limit exceeded. Only "+S.arrayLimit+" element"+(S.arrayLimit===1?"":"s")+" allowed in an array.");return b},u="utf8=%26%2310003%3B",f="utf8=%E2%9C%93",g=function(S,_){var D={__proto__:null},E=_.ignoreQueryPrefix?S.replace(/^\?/,""):S;E=E.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var x=_.parameterLimit===1/0?void 0:_.parameterLimit,L=E.split(_.delimiter,_.throwOnLimitExceeded?x+1:x);if(_.throwOnLimitExceeded&&L.length>x)throw new RangeError("Parameter limit exceeded. Only "+x+" parameter"+(x===1?"":"s")+" allowed.");var O=-1,H,q=_.charset;if(_.charsetSentinel)for(H=0;H<L.length;++H)L[H].indexOf("utf8=")===0&&(L[H]===f?q="utf-8":L[H]===u&&(q="iso-8859-1"),O=H,H=L.length);for(H=0;H<L.length;++H)if(H!==O){var z=L[H],K=z.indexOf("]="),ue=K===-1?z.indexOf("="):K+1,X,de;ue===-1?(X=_.decoder(z,n.decoder,q,"key"),de=_.strictNullHandling?null:""):(X=_.decoder(z.slice(0,ue),n.decoder,q,"key"),de=r.maybeMap(l(z.slice(ue+1),_,t(D[X])?D[X].length:0),function(re){return _.decoder(re,n.decoder,q,"value")})),de&&_.interpretNumericEntities&&q==="iso-8859-1"&&(de=i(String(de))),z.indexOf("[]=")>-1&&(de=t(de)?[de]:de);var j=e.call(D,X);j&&_.duplicates==="combine"?D[X]=r.combine(D[X],de):(!j||_.duplicates==="last")&&(D[X]=de)}return D},m=function(b,S,_,D){var E=0;if(b.length>0&&b[b.length-1]==="[]"){var x=b.slice(0,-1).join("");E=Array.isArray(S)&&S[x]?S[x].length:0}for(var L=D?S:l(S,_,E),O=b.length-1;O>=0;--O){var H,q=b[O];if(q==="[]"&&_.parseArrays)H=_.allowEmptyArrays&&(L===""||_.strictNullHandling&&L===null)?[]:r.combine([],L);else{H=_.plainObjects?{__proto__:null}:{};var z=q.charAt(0)==="["&&q.charAt(q.length-1)==="]"?q.slice(1,-1):q,K=_.decodeDotInKeys?z.replace(/%2E/g,"."):z,ue=parseInt(K,10);!_.parseArrays&&K===""?H={0:L}:!isNaN(ue)&&q!==K&&String(ue)===K&&ue>=0&&_.parseArrays&&ue<=_.arrayLimit?(H=[],H[ue]=L):K!=="__proto__"&&(H[K]=L)}L=H}return L},R=function(S,_,D,E){if(S){var x=D.allowDots?S.replace(/\.([^.[]+)/g,"[$1]"):S,L=/(\[[^[\]]*])/,O=/(\[[^[\]]*])/g,H=D.depth>0&&L.exec(x),q=H?x.slice(0,H.index):x,z=[];if(q){if(!D.plainObjects&&e.call(Object.prototype,q)&&!D.allowPrototypes)return;z.push(q)}for(var K=0;D.depth>0&&(H=O.exec(x))!==null&&K<D.depth;){if(K+=1,!D.plainObjects&&e.call(Object.prototype,H[1].slice(1,-1))&&!D.allowPrototypes)return;z.push(H[1])}if(H){if(D.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+D.depth+" and strictDepth is true");z.push("["+x.slice(H.index)+"]")}return m(z,_,D,E)}},w=function(S){if(!S)return n;if(typeof S.allowEmptyArrays<"u"&&typeof S.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof S.decodeDotInKeys<"u"&&typeof S.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(S.decoder!==null&&typeof S.decoder<"u"&&typeof S.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof S.charset<"u"&&S.charset!=="utf-8"&&S.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof S.throwOnLimitExceeded<"u"&&typeof S.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var _=typeof S.charset>"u"?n.charset:S.charset,D=typeof S.duplicates>"u"?n.duplicates:S.duplicates;if(D!=="combine"&&D!=="first"&&D!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var E=typeof S.allowDots>"u"?S.decodeDotInKeys===!0?!0:n.allowDots:!!S.allowDots;return{allowDots:E,allowEmptyArrays:typeof S.allowEmptyArrays=="boolean"?!!S.allowEmptyArrays:n.allowEmptyArrays,allowPrototypes:typeof S.allowPrototypes=="boolean"?S.allowPrototypes:n.allowPrototypes,allowSparse:typeof S.allowSparse=="boolean"?S.allowSparse:n.allowSparse,arrayLimit:typeof S.arrayLimit=="number"?S.arrayLimit:n.arrayLimit,charset:_,charsetSentinel:typeof S.charsetSentinel=="boolean"?S.charsetSentinel:n.charsetSentinel,comma:typeof S.comma=="boolean"?S.comma:n.comma,decodeDotInKeys:typeof S.decodeDotInKeys=="boolean"?S.decodeDotInKeys:n.decodeDotInKeys,decoder:typeof S.decoder=="function"?S.decoder:n.decoder,delimiter:typeof S.delimiter=="string"||r.isRegExp(S.delimiter)?S.delimiter:n.delimiter,depth:typeof S.depth=="number"||S.depth===!1?+S.depth:n.depth,duplicates:D,ignoreQueryPrefix:S.ignoreQueryPrefix===!0,interpretNumericEntities:typeof S.interpretNumericEntities=="boolean"?S.interpretNumericEntities:n.interpretNumericEntities,parameterLimit:typeof S.parameterLimit=="number"?S.parameterLimit:n.parameterLimit,parseArrays:S.parseArrays!==!1,plainObjects:typeof S.plainObjects=="boolean"?S.plainObjects:n.plainObjects,strictDepth:typeof S.strictDepth=="boolean"?!!S.strictDepth:n.strictDepth,strictNullHandling:typeof S.strictNullHandling=="boolean"?S.strictNullHandling:n.strictNullHandling,throwOnLimitExceeded:typeof S.throwOnLimitExceeded=="boolean"?S.throwOnLimitExceeded:!1}};return F1=function(b,S){var _=w(S);if(b===""||b===null||typeof b>"u")return _.plainObjects?{__proto__:null}:{};for(var D=typeof b=="string"?g(b,_):b,E=_.plainObjects?{__proto__:null}:{},x=Object.keys(D),L=0;L<x.length;++L){var O=x[L],H=R(O,D[O],_,typeof b=="string");E=r.merge(E,H,_)}return _.allowSparse===!0?E:r.compact(E)},F1}var j1,q_;function kF(){if(q_)return j1;q_=1;var r=TF(),e=EF(),t=Wm();return j1={formats:t,parse:e,stringify:r},j1}var RF=kF();const IF=al(RF),am={StoredContexts:{},defaultHandler:()=>{}},CS={Init:()=>{},Create:r=>{const e=r.method+r.url;return am.StoredContexts[e]=r,LF(r)},FetchBaseUrl:()=>window.location.href,useDefaultHandler:r=>{am.defaultHandler=r}};function LF(r){const e=`[${r.method}] ${r.url}`;return{Call:async n=>{let{url:i,method:l,stream:u,paramType:f}=r;const{po:g,onStream:m,onStreamEnd:R,noDefaultHandle:w=[]}=n??{};(f==="query"||l==="GET")&&g!==void 0&&(i+="?"+IF.stringify(g,{arrayFormat:"comma"}));const b={method:l,headers:{Accept:"application/json;charset=UTF-8","X-Requested-With":"XMLHttpRequest","Cache-Control":"no-cache",Pragma:"no-cache",crossDomain:"true"}};if(f==="form"){const D=new FormData;if(g!==void 0)for(const E in g){const x=g[E];D.append(E,x)}b.body=D}else(f==="body"||f===void 0&&r.method!=="GET")&&(b.body=JSON.stringify(g),b.headers["Content-Type"]="application/json;charset=UTF-8");let S={errorCode:0,message:""};const _=Date.now();i=CS.FetchBaseUrl()+i;try{let D=await fetch(i,b);if(D.ok===!1)return S.errorCode=D.status,S.message=D.statusText,S;{const E=new TextDecoder("utf-8");if(u){if(D.body){let x=D.body.getReader(),L="";for(;;){const O=await x.read();if(O.done)break;const H=E.decode(O.value).trim();L+=H;let q=null;try{const z=H.split("\0");let K=z[z.length-1];for(let ue=z.length-2;ue>=0;ue--)if(z[ue].trim().length!==0){K=z[ue];break}q=await JSON.parse(K)}catch{try{const K=L.split("\0");let ue=K[K.length-1];for(let X=K.length-2;X>=0;X--)if(K[X].trim().length!==0){ue=K[X];break}q=await JSON.parse(ue)}catch{}}if(q!=null&&(Object.keys(q).includes("err_code")?S.errorCode=q.err_code:(S.errorCode=0,S.data=q,L="",O.done?R==null||R(S.data):m==null||m(S.data))),O.done)break}}}else if(D.body){const L=await D.body.getReader().read(),O=E.decode(L.value);if(O==="null")return S;{let H=await JSON.parse(O.replaceAll("\0",""));Object.keys(H).includes("err_code")?(S.errorCode=H.err_code,S.message=H.err_msg):S.data=H}}}}catch(D){console.warn(D),S.errorCode=-1,S.message=D.message}return console.debug(`${e} ${Date.now()-_}ms`),w!==!0&&await am.defaultHandler(S,w),S}}}async function MF(r){const e=new Promise((t,n)=>{const i=new FileReader;i.onloadend=()=>{i.result?typeof i.result=="string"?t(i.result):n(new Error("Failed to convert file to Base64: Invalid result type.")):n(new Error("Failed to convert file to Base64: Empty result."))},i.onerror=n,i.readAsDataURL(r)});try{return await e}catch{return}}function DF(r,e){var f,g;const t=r.split(","),n=(g=(f=t[0])==null?void 0:f.match(/:(.*?);/))==null?void 0:g[1],i=atob(t[1]);let l=i.length;const u=new Uint8Array(l);for(;l--;)u[l]=i.charCodeAt(l);return new File([u],e,{type:n})}const OF={toBase64:MF,toFile:DF};exports.ABase=$r;exports.ABaseStyleKeys=a2;exports.AButton=Fi;exports.AButtonStyleKeys=c2;exports.AButtonTypes=c5;exports.ACheckBox=Zu;exports.ACheckBoxStyleKeys=h2;exports.AChip=hm;exports.AChipKeys=M2;exports.AChips=AT;exports.AClock=jT;exports.AColFrame=O2;exports.ADatePicker=mm;exports.ADatePickerStyleKeys=C2;exports.ADatePickerTypes=fE;exports.ADateRangePicker=pm;exports.ADateRangePickerStyleKeys=w2;exports.ADialog=_E;exports.ADialogStyleKeys=p2;exports.ADialogTypes=bE;exports.ADivideFrame=hT;exports.AEditor=cN;exports.AEditorStyleKeys=d2;exports.AFileBox=LE;exports.AFileBoxStyleKeys=_2;exports.AFileUploader=JE;exports.AFloatMenu=j2;exports.AFloatMenuKeys=k2;exports.AFrameStyleKeys=E2;exports.AGrow=Qc;exports.AIcon=jr;exports.AIconButton=_i;exports.AIconButtonStyleKeys=A2;exports.AIconButtonTypes=u5;exports.AIconHOC=H4;exports.AIcons=um;exports.AInput=tc;exports.AInputStyleKeys=u2;exports.AInputTypes=XT;exports.AListView=ck;exports.AListViewStyleKeys=x2;exports.ALoadingBorder=vm;exports.ALoadingBorderKeys=R2;exports.AMultiSelect=Fk;exports.AMultiSelectStyleKeys=m2;exports.ANumInput=ik;exports.AOverflowFrame=Sa;exports.ARadioSelect=Sk;exports.ARadioSelectKeys=L2;exports.ARowFrame=Sn;exports.ASelect=rc;exports.ASelectStyleKeys=g2;exports.ASelectTypes=d6;exports.ASpace=mn;exports.AStepper=Jk;exports.AStepperStyleKeys=S2;exports.ASwitch=e2;exports.ASwitchFrame=P2;exports.ASwitchStyleKeys=y2;exports.ATab=q2;exports.ATabStyleKeys=b2;exports.ATabTypes=u8;exports.ATable=bR;exports.ATableStyleKeys=T2;exports.AText=V2;exports.ATextArea=IR;exports.ATextAreaStyleKeys=f2;exports.ATextAreaTypes=RR;exports.AThemeButton=K5;exports.AThemes=Ff;exports.ATooltip=Q_;exports.ATooltipStyleKeys=l2;exports.ATree=VN;exports.ATreeStyleKeys=v2;exports.AWrap=ec;exports.AWrapKeys=I2;exports.AWrapTypes=R5;exports.ApiContext=CS;exports.BodyStyleKeys=s2;exports.CreateADC=TE;exports.DefaultOptionRenderer=H2;exports.EDir12=ef;exports.EDir4=yi;exports.FileSizeTrans=Kc;exports.Icons=ih;exports.IsCursorPointer=V_;exports.IsFixedShape=W_;exports.IsInteractive=G_;exports.NoSelect=U_;exports.Resources=hn;exports.SetResources=C5;exports.alphanumericRegex=ET;exports.bound=Nf;exports.cbF=Lr;exports.changeSemanticMode=dm;exports.componentStyleKeys=q5;exports.createEvent=Gc;exports.dateF=Kt;exports.defaultPredicate=$2;exports.dlgF=EE;exports.emailIdRegex=RT;exports.emailRegex=kT;exports.fileF=OF;exports.getMonthsOptions=Kf;exports.getYearsOptions=gm;exports.hangulRegex=LT;exports.hexRegex=IT;exports.noHanguljamoRegex=DT;exports.noSpaceRegex=MT;exports.numF=B2;exports.objF=er;exports.paletteKeys=t2;exports.paletteModes=oh;exports.passwordRegex=PT;exports.refinedDesignTokens=xi;exports.sF=Fe;exports.semanticKeys=i2;exports.semanticModes=Gu;exports.setDir12Style=fm;exports.setDir12StyleElem=X_;exports.specialCharRegex=OT;exports.strF=F2;exports.tableF=tl;exports.textMeasurement=Zc;exports.treeF=rl;exports.useADialogCore=wE;exports.useADialogCores=CE;exports.useEvent=W2;exports.useInit=z2;exports.useValues=nn;exports.uuidRegex=NT;
|
358
|
+
`+ne.prev}function Cr(ge,ne){var Je=je(ge),ct=[];if(Je){ct.length=ge.length;for(var tt=0;tt<ge.length;tt++)ct[tt]=Le(ge,tt)?ne(ge[tt],ge):""}var Re=typeof re=="function"?re(ge):[],xt;if(Q){xt={};for(var Rt=0;Rt<Re.length;Rt++)xt["$"+Re[Rt]]=Re[Rt]}for(var vt in ge)Le(ge,vt)&&(Je&&String(Number(vt))===vt&&vt<ge.length||Q&&xt["$"+vt]instanceof Symbol||(z.call(/[^\w$]/,vt)?ct.push(ne(vt,ge)+": "+ne(ge[vt],ge)):ct.push(vt+": "+ne(ge[vt],ge))));if(typeof re=="function")for(var Mt=0;Mt<Re.length;Mt++)me.call(ge,Re[Mt])&&ct.push("["+ne(Re[Mt])+"]: "+ne(ge[Re[Mt]],ge));return ct}return Kg}var Yg,Qb;function QN(){if(Qb)return Yg;Qb=1;var r=wh(),e=nf(),t=function(f,g,m){for(var R=f,C;(C=R.next)!=null;R=C)if(C.key===g)return R.next=C.next,m||(C.next=f.next,f.next=C),C},n=function(f,g){if(f){var m=t(f,g);return m&&m.value}},i=function(f,g,m){var R=t(f,g);R?R.value=m:f.next={key:g,next:f.next,value:m}},l=function(f,g){return f?!!t(f,g):!1},u=function(f,g){if(f)return t(f,g,!0)};return Yg=function(){var g,m={assert:function(R){if(!m.has(R))throw new e("Side channel does not contain "+r(R))},delete:function(R){var C=g&&g.next,b=u(g,R);return b&&C&&C===b&&(g=void 0),!!b},get:function(R){return n(g,R)},has:function(R){return l(g,R)},set:function(R,C){g||(g={next:void 0}),i(g,R,C)}};return m},Yg}var Xg,e_;function pS(){return e_||(e_=1,Xg=Object),Xg}var Jg,t_;function eF(){return t_||(t_=1,Jg=Error),Jg}var Qg,r_;function tF(){return r_||(r_=1,Qg=EvalError),Qg}var e1,n_;function rF(){return n_||(n_=1,e1=RangeError),e1}var t1,i_;function nF(){return i_||(i_=1,t1=ReferenceError),t1}var r1,o_;function iF(){return o_||(o_=1,r1=SyntaxError),r1}var n1,s_;function oF(){return s_||(s_=1,n1=URIError),n1}var i1,a_;function sF(){return a_||(a_=1,i1=Math.abs),i1}var o1,l_;function aF(){return l_||(l_=1,o1=Math.floor),o1}var s1,c_;function lF(){return c_||(c_=1,s1=Math.max),s1}var a1,u_;function cF(){return u_||(u_=1,a1=Math.min),a1}var l1,f_;function uF(){return f_||(f_=1,l1=Math.pow),l1}var c1,d_;function fF(){return d_||(d_=1,c1=Math.round),c1}var u1,h_;function dF(){return h_||(h_=1,u1=Number.isNaN||function(e){return e!==e}),u1}var f1,p_;function hF(){if(p_)return f1;p_=1;var r=dF();return f1=function(t){return r(t)||t===0?t:t<0?-1:1},f1}var d1,g_;function pF(){return g_||(g_=1,d1=Object.getOwnPropertyDescriptor),d1}var h1,m_;function gS(){if(m_)return h1;m_=1;var r=pF();if(r)try{r([],"length")}catch{r=null}return h1=r,h1}var p1,v_;function gF(){if(v_)return p1;v_=1;var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}return p1=r,p1}var g1,y_;function mF(){return y_||(y_=1,g1=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;e[t]=i;for(var l in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var u=Object.getOwnPropertySymbols(e);if(u.length!==1||u[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var f=Object.getOwnPropertyDescriptor(e,t);if(f.value!==i||f.enumerable!==!0)return!1}return!0}),g1}var m1,b_;function vF(){if(b_)return m1;b_=1;var r=typeof Symbol<"u"&&Symbol,e=mF();return m1=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},m1}var v1,__;function mS(){return __||(__=1,v1=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),v1}var y1,x_;function vS(){if(x_)return y1;x_=1;var r=pS();return y1=r.getPrototypeOf||null,y1}var b1,S_;function yF(){if(S_)return b1;S_=1;var r="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,n="[object Function]",i=function(g,m){for(var R=[],C=0;C<g.length;C+=1)R[C]=g[C];for(var b=0;b<m.length;b+=1)R[b+g.length]=m[b];return R},l=function(g,m){for(var R=[],C=m,b=0;C<g.length;C+=1,b+=1)R[b]=g[C];return R},u=function(f,g){for(var m="",R=0;R<f.length;R+=1)m+=f[R],R+1<f.length&&(m+=g);return m};return b1=function(g){var m=this;if(typeof m!="function"||e.apply(m)!==n)throw new TypeError(r+m);for(var R=l(arguments,1),C,b=function(){if(this instanceof C){var x=m.apply(this,i(R,arguments));return Object(x)===x?x:this}return m.apply(g,i(R,arguments))},S=t(0,m.length-R.length),_=[],D=0;D<S;D++)_[D]="$"+D;if(C=Function("binder","return function ("+u(_,",")+"){ return binder.apply(this,arguments); }")(b),m.prototype){var E=function(){};E.prototype=m.prototype,C.prototype=new E,E.prototype=null}return C},b1}var _1,C_;function Ah(){if(C_)return _1;C_=1;var r=yF();return _1=Function.prototype.bind||r,_1}var x1,w_;function $m(){return w_||(w_=1,x1=Function.prototype.call),x1}var S1,A_;function yS(){return A_||(A_=1,S1=Function.prototype.apply),S1}var C1,T_;function bF(){return T_||(T_=1,C1=typeof Reflect<"u"&&Reflect&&Reflect.apply),C1}var w1,E_;function _F(){if(E_)return w1;E_=1;var r=Ah(),e=yS(),t=$m(),n=bF();return w1=n||r.call(t,e),w1}var A1,k_;function bS(){if(k_)return A1;k_=1;var r=Ah(),e=nf(),t=$m(),n=_F();return A1=function(l){if(l.length<1||typeof l[0]!="function")throw new e("a function is required");return n(r,t,l)},A1}var T1,R_;function xF(){if(R_)return T1;R_=1;var r=bS(),e=gS(),t;try{t=[].__proto__===Array.prototype}catch(u){if(!u||typeof u!="object"||!("code"in u)||u.code!=="ERR_PROTO_ACCESS")throw u}var n=!!t&&e&&e(Object.prototype,"__proto__"),i=Object,l=i.getPrototypeOf;return T1=n&&typeof n.get=="function"?r([n.get]):typeof l=="function"?function(f){return l(f==null?f:i(f))}:!1,T1}var E1,I_;function SF(){if(I_)return E1;I_=1;var r=mS(),e=vS(),t=xF();return E1=r?function(i){return r(i)}:e?function(i){if(!i||typeof i!="object"&&typeof i!="function")throw new TypeError("getProto: not an object");return e(i)}:t?function(i){return t(i)}:null,E1}var k1,L_;function CF(){if(L_)return k1;L_=1;var r=Function.prototype.call,e=Object.prototype.hasOwnProperty,t=Ah();return k1=t.call(r,e),k1}var R1,M_;function Um(){if(M_)return R1;M_=1;var r,e=pS(),t=eF(),n=tF(),i=rF(),l=nF(),u=iF(),f=nf(),g=oF(),m=sF(),R=aF(),C=lF(),b=cF(),S=uF(),_=fF(),D=hF(),E=Function,x=function(We){try{return E('"use strict"; return ('+We+").constructor;")()}catch{}},L=gS(),O=gF(),H=function(){throw new f},q=L?function(){try{return arguments.callee,H}catch{try{return L(arguments,"callee").get}catch{return H}}}():H,z=vF()(),K=SF(),ue=vS(),X=mS(),de=yS(),j=$m(),re={},J=typeof Uint8Array>"u"||!K?r:K(Uint8Array),Q={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":z&&K?K([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":re,"%AsyncGenerator%":re,"%AsyncGeneratorFunction%":re,"%AsyncIteratorPrototype%":re,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":t,"%eval%":eval,"%EvalError%":n,"%Float16Array%":typeof Float16Array>"u"?r:Float16Array,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":E,"%GeneratorFunction%":re,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":z&&K?K(K([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!z||!K?r:K(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":e,"%Object.getOwnPropertyDescriptor%":L,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":i,"%ReferenceError%":l,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!z||!K?r:K(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":z&&K?K(""[Symbol.iterator]()):r,"%Symbol%":z?Symbol:r,"%SyntaxError%":u,"%ThrowTypeError%":q,"%TypedArray%":J,"%TypeError%":f,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":g,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":j,"%Function.prototype.apply%":de,"%Object.defineProperty%":O,"%Object.getPrototypeOf%":ue,"%Math.abs%":m,"%Math.floor%":R,"%Math.max%":C,"%Math.min%":b,"%Math.pow%":S,"%Math.round%":_,"%Math.sign%":D,"%Reflect.getPrototypeOf%":X};if(K)try{null.error}catch(We){var he=K(K(We));Q["%Error.prototype%"]=he}var me=function We(De){var Ae;if(De==="%AsyncFunction%")Ae=x("async function () {}");else if(De==="%GeneratorFunction%")Ae=x("function* () {}");else if(De==="%AsyncGeneratorFunction%")Ae=x("async function* () {}");else if(De==="%AsyncGenerator%"){var _e=We("%AsyncGeneratorFunction%");_e&&(Ae=_e.prototype)}else if(De==="%AsyncIteratorPrototype%"){var Ge=We("%AsyncGenerator%");Ge&&K&&(Ae=K(Ge.prototype))}return Q[De]=Ae,Ae},be={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ce=Ah(),ke=CF(),le=ce.call(j,Array.prototype.concat),oe=ce.call(de,Array.prototype.splice),ve=ce.call(j,String.prototype.replace),Oe=ce.call(j,String.prototype.slice),et=ce.call(j,RegExp.prototype.exec),we=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Pe=/\\(\\)?/g,je=function(De){var Ae=Oe(De,0,1),_e=Oe(De,-1);if(Ae==="%"&&_e!=="%")throw new u("invalid intrinsic syntax, expected closing `%`");if(_e==="%"&&Ae!=="%")throw new u("invalid intrinsic syntax, expected opening `%`");var Ge=[];return ve(De,we,function(lt,$e,ht,Le){Ge[Ge.length]=ht?ve(Le,Pe,"$1"):$e||lt}),Ge},ze=function(De,Ae){var _e=De,Ge;if(ke(be,_e)&&(Ge=be[_e],_e="%"+Ge[0]+"%"),ke(Q,_e)){var lt=Q[_e];if(lt===re&&(lt=me(_e)),typeof lt>"u"&&!Ae)throw new f("intrinsic "+De+" exists, but is not available. Please file an issue!");return{alias:Ge,name:_e,value:lt}}throw new u("intrinsic "+De+" does not exist!")};return R1=function(De,Ae){if(typeof De!="string"||De.length===0)throw new f("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Ae!="boolean")throw new f('"allowMissing" argument must be a boolean');if(et(/^%?[^%]*%?$/,De)===null)throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var _e=je(De),Ge=_e.length>0?_e[0]:"",lt=ze("%"+Ge+"%",Ae),$e=lt.name,ht=lt.value,Le=!1,Xe=lt.alias;Xe&&(Ge=Xe[0],oe(_e,le([0,1],Xe)));for(var it=1,Ct=!0;it<_e.length;it+=1){var _t=_e[it],wt=Oe(_t,0,1),bt=Oe(_t,-1);if((wt==='"'||wt==="'"||wt==="`"||bt==='"'||bt==="'"||bt==="`")&&wt!==bt)throw new u("property names with quotes must have matching quotes");if((_t==="constructor"||!Ct)&&(Le=!0),Ge+="."+_t,$e="%"+Ge+"%",ke(Q,$e))ht=Q[$e];else if(ht!=null){if(!(_t in ht)){if(!Ae)throw new f("base intrinsic for "+De+" exists, but the property is not available.");return}if(L&&it+1>=_e.length){var St=L(ht,_t);Ct=!!St,Ct&&"get"in St&&!("originalValue"in St.get)?ht=St.get:ht=ht[_t]}else Ct=ke(ht,_t),ht=ht[_t];Ct&&!Le&&(Q[$e]=ht)}}return ht},R1}var I1,D_;function _S(){if(D_)return I1;D_=1;var r=Um(),e=bS(),t=e([r("%String.prototype.indexOf%")]);return I1=function(i,l){var u=r(i,!!l);return typeof u=="function"&&t(i,".prototype.")>-1?e([u]):u},I1}var L1,O_;function xS(){if(O_)return L1;O_=1;var r=Um(),e=_S(),t=wh(),n=nf(),i=r("%Map%",!0),l=e("Map.prototype.get",!0),u=e("Map.prototype.set",!0),f=e("Map.prototype.has",!0),g=e("Map.prototype.delete",!0),m=e("Map.prototype.size",!0);return L1=!!i&&function(){var C,b={assert:function(S){if(!b.has(S))throw new n("Side channel does not contain "+t(S))},delete:function(S){if(C){var _=g(C,S);return m(C)===0&&(C=void 0),_}return!1},get:function(S){if(C)return l(C,S)},has:function(S){return C?f(C,S):!1},set:function(S,_){C||(C=new i),u(C,S,_)}};return b},L1}var M1,P_;function wF(){if(P_)return M1;P_=1;var r=Um(),e=_S(),t=wh(),n=xS(),i=nf(),l=r("%WeakMap%",!0),u=e("WeakMap.prototype.get",!0),f=e("WeakMap.prototype.set",!0),g=e("WeakMap.prototype.has",!0),m=e("WeakMap.prototype.delete",!0);return M1=l?function(){var C,b,S={assert:function(_){if(!S.has(_))throw new i("Side channel does not contain "+t(_))},delete:function(_){if(l&&_&&(typeof _=="object"||typeof _=="function")){if(C)return m(C,_)}else if(n&&b)return b.delete(_);return!1},get:function(_){return l&&_&&(typeof _=="object"||typeof _=="function")&&C?u(C,_):b&&b.get(_)},has:function(_){return l&&_&&(typeof _=="object"||typeof _=="function")&&C?g(C,_):!!b&&b.has(_)},set:function(_,D){l&&_&&(typeof _=="object"||typeof _=="function")?(C||(C=new l),f(C,_,D)):n&&(b||(b=n()),b.set(_,D))}};return S}:n,M1}var D1,N_;function AF(){if(N_)return D1;N_=1;var r=nf(),e=wh(),t=QN(),n=xS(),i=wF(),l=i||n||t;return D1=function(){var f,g={assert:function(m){if(!g.has(m))throw new r("Side channel does not contain "+e(m))},delete:function(m){return!!f&&f.delete(m)},get:function(m){return f&&f.get(m)},has:function(m){return!!f&&f.has(m)},set:function(m,R){f||(f=l()),f.set(m,R)}};return g},D1}var O1,F_;function Wm(){if(F_)return O1;F_=1;var r=String.prototype.replace,e=/%20/g,t={RFC1738:"RFC1738",RFC3986:"RFC3986"};return O1={default:t.RFC3986,formatters:{RFC1738:function(n){return r.call(n,e,"+")},RFC3986:function(n){return String(n)}},RFC1738:t.RFC1738,RFC3986:t.RFC3986},O1}var P1,j_;function SS(){if(j_)return P1;j_=1;var r=Wm(),e=Object.prototype.hasOwnProperty,t=Array.isArray,n=function(){for(var E=[],x=0;x<256;++x)E.push("%"+((x<16?"0":"")+x.toString(16)).toUpperCase());return E}(),i=function(x){for(;x.length>1;){var L=x.pop(),O=L.obj[L.prop];if(t(O)){for(var H=[],q=0;q<O.length;++q)typeof O[q]<"u"&&H.push(O[q]);L.obj[L.prop]=H}}},l=function(x,L){for(var O=L&&L.plainObjects?{__proto__:null}:{},H=0;H<x.length;++H)typeof x[H]<"u"&&(O[H]=x[H]);return O},u=function E(x,L,O){if(!L)return x;if(typeof L!="object"&&typeof L!="function"){if(t(x))x.push(L);else if(x&&typeof x=="object")(O&&(O.plainObjects||O.allowPrototypes)||!e.call(Object.prototype,L))&&(x[L]=!0);else return[x,L];return x}if(!x||typeof x!="object")return[x].concat(L);var H=x;return t(x)&&!t(L)&&(H=l(x,O)),t(x)&&t(L)?(L.forEach(function(q,z){if(e.call(x,z)){var K=x[z];K&&typeof K=="object"&&q&&typeof q=="object"?x[z]=E(K,q,O):x.push(q)}else x[z]=q}),x):Object.keys(L).reduce(function(q,z){var K=L[z];return e.call(q,z)?q[z]=E(q[z],K,O):q[z]=K,q},H)},f=function(x,L){return Object.keys(L).reduce(function(O,H){return O[H]=L[H],O},x)},g=function(E,x,L){var O=E.replace(/\+/g," ");if(L==="iso-8859-1")return O.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(O)}catch{return O}},m=1024,R=function(x,L,O,H,q){if(x.length===0)return x;var z=x;if(typeof x=="symbol"?z=Symbol.prototype.toString.call(x):typeof x!="string"&&(z=String(x)),O==="iso-8859-1")return escape(z).replace(/%u[0-9a-f]{4}/gi,function(J){return"%26%23"+parseInt(J.slice(2),16)+"%3B"});for(var K="",ue=0;ue<z.length;ue+=m){for(var X=z.length>=m?z.slice(ue,ue+m):z,de=[],j=0;j<X.length;++j){var re=X.charCodeAt(j);if(re===45||re===46||re===95||re===126||re>=48&&re<=57||re>=65&&re<=90||re>=97&&re<=122||q===r.RFC1738&&(re===40||re===41)){de[de.length]=X.charAt(j);continue}if(re<128){de[de.length]=n[re];continue}if(re<2048){de[de.length]=n[192|re>>6]+n[128|re&63];continue}if(re<55296||re>=57344){de[de.length]=n[224|re>>12]+n[128|re>>6&63]+n[128|re&63];continue}j+=1,re=65536+((re&1023)<<10|X.charCodeAt(j)&1023),de[de.length]=n[240|re>>18]+n[128|re>>12&63]+n[128|re>>6&63]+n[128|re&63]}K+=de.join("")}return K},C=function(x){for(var L=[{obj:{o:x},prop:"o"}],O=[],H=0;H<L.length;++H)for(var q=L[H],z=q.obj[q.prop],K=Object.keys(z),ue=0;ue<K.length;++ue){var X=K[ue],de=z[X];typeof de=="object"&&de!==null&&O.indexOf(de)===-1&&(L.push({obj:z,prop:X}),O.push(de))}return i(L),x},b=function(x){return Object.prototype.toString.call(x)==="[object RegExp]"},S=function(x){return!x||typeof x!="object"?!1:!!(x.constructor&&x.constructor.isBuffer&&x.constructor.isBuffer(x))},_=function(x,L){return[].concat(x,L)},D=function(x,L){if(t(x)){for(var O=[],H=0;H<x.length;H+=1)O.push(L(x[H]));return O}return L(x)};return P1={arrayToObject:l,assign:f,combine:_,compact:C,decode:g,encode:R,isBuffer:S,isRegExp:b,maybeMap:D,merge:u},P1}var N1,B_;function TF(){if(B_)return N1;B_=1;var r=AF(),e=SS(),t=Wm(),n=Object.prototype.hasOwnProperty,i={brackets:function(E){return E+"[]"},comma:"comma",indices:function(E,x){return E+"["+x+"]"},repeat:function(E){return E}},l=Array.isArray,u=Array.prototype.push,f=function(D,E){u.apply(D,l(E)?E:[E])},g=Date.prototype.toISOString,m=t.default,R={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:e.encode,encodeValuesOnly:!1,filter:void 0,format:m,formatter:t.formatters[m],indices:!1,serializeDate:function(E){return g.call(E)},skipNulls:!1,strictNullHandling:!1},C=function(E){return typeof E=="string"||typeof E=="number"||typeof E=="boolean"||typeof E=="symbol"||typeof E=="bigint"},b={},S=function D(E,x,L,O,H,q,z,K,ue,X,de,j,re,J,Q,he,me,be){for(var ce=E,ke=be,le=0,oe=!1;(ke=ke.get(b))!==void 0&&!oe;){var ve=ke.get(E);if(le+=1,typeof ve<"u"){if(ve===le)throw new RangeError("Cyclic object value");oe=!0}typeof ke.get(b)>"u"&&(le=0)}if(typeof X=="function"?ce=X(x,ce):ce instanceof Date?ce=re(ce):L==="comma"&&l(ce)&&(ce=e.maybeMap(ce,function($e){return $e instanceof Date?re($e):$e})),ce===null){if(q)return ue&&!he?ue(x,R.encoder,me,"key",J):x;ce=""}if(C(ce)||e.isBuffer(ce)){if(ue){var Oe=he?x:ue(x,R.encoder,me,"key",J);return[Q(Oe)+"="+Q(ue(ce,R.encoder,me,"value",J))]}return[Q(x)+"="+Q(String(ce))]}var et=[];if(typeof ce>"u")return et;var we;if(L==="comma"&&l(ce))he&&ue&&(ce=e.maybeMap(ce,ue)),we=[{value:ce.length>0?ce.join(",")||null:void 0}];else if(l(X))we=X;else{var Pe=Object.keys(ce);we=de?Pe.sort(de):Pe}var je=K?String(x).replace(/\./g,"%2E"):String(x),ze=O&&l(ce)&&ce.length===1?je+"[]":je;if(H&&l(ce)&&ce.length===0)return ze+"[]";for(var We=0;We<we.length;++We){var De=we[We],Ae=typeof De=="object"&&De&&typeof De.value<"u"?De.value:ce[De];if(!(z&&Ae===null)){var _e=j&&K?String(De).replace(/\./g,"%2E"):String(De),Ge=l(ce)?typeof L=="function"?L(ze,_e):ze:ze+(j?"."+_e:"["+_e+"]");be.set(E,le);var lt=r();lt.set(b,be),f(et,D(Ae,Ge,L,O,H,q,z,K,L==="comma"&&he&&l(ce)?null:ue,X,de,j,re,J,Q,he,me,lt))}}return et},_=function(E){if(!E)return R;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.");var x=E.charset||R.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");var L=t.default;if(typeof E.format<"u"){if(!n.call(t.formatters,E.format))throw new TypeError("Unknown format option provided.");L=E.format}var O=t.formatters[L],H=R.filter;(typeof E.filter=="function"||l(E.filter))&&(H=E.filter);var q;if(E.arrayFormat in i?q=E.arrayFormat:"indices"in E?q=E.indices?"indices":"repeat":q=R.arrayFormat,"commaRoundTrip"in E&&typeof E.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var z=typeof E.allowDots>"u"?E.encodeDotInKeys===!0?!0:R.allowDots:!!E.allowDots;return{addQueryPrefix:typeof E.addQueryPrefix=="boolean"?E.addQueryPrefix:R.addQueryPrefix,allowDots:z,allowEmptyArrays:typeof E.allowEmptyArrays=="boolean"?!!E.allowEmptyArrays:R.allowEmptyArrays,arrayFormat:q,charset:x,charsetSentinel:typeof E.charsetSentinel=="boolean"?E.charsetSentinel:R.charsetSentinel,commaRoundTrip:!!E.commaRoundTrip,delimiter:typeof E.delimiter>"u"?R.delimiter:E.delimiter,encode:typeof E.encode=="boolean"?E.encode:R.encode,encodeDotInKeys:typeof E.encodeDotInKeys=="boolean"?E.encodeDotInKeys:R.encodeDotInKeys,encoder:typeof E.encoder=="function"?E.encoder:R.encoder,encodeValuesOnly:typeof E.encodeValuesOnly=="boolean"?E.encodeValuesOnly:R.encodeValuesOnly,filter:H,format:L,formatter:O,serializeDate:typeof E.serializeDate=="function"?E.serializeDate:R.serializeDate,skipNulls:typeof E.skipNulls=="boolean"?E.skipNulls:R.skipNulls,sort:typeof E.sort=="function"?E.sort:null,strictNullHandling:typeof E.strictNullHandling=="boolean"?E.strictNullHandling:R.strictNullHandling}};return N1=function(D,E){var x=D,L=_(E),O,H;typeof L.filter=="function"?(H=L.filter,x=H("",x)):l(L.filter)&&(H=L.filter,O=H);var q=[];if(typeof x!="object"||x===null)return"";var z=i[L.arrayFormat],K=z==="comma"&&L.commaRoundTrip;O||(O=Object.keys(x)),L.sort&&O.sort(L.sort);for(var ue=r(),X=0;X<O.length;++X){var de=O[X],j=x[de];L.skipNulls&&j===null||f(q,S(j,de,z,K,L.allowEmptyArrays,L.strictNullHandling,L.skipNulls,L.encodeDotInKeys,L.encode?L.encoder:null,L.filter,L.sort,L.allowDots,L.serializeDate,L.format,L.formatter,L.encodeValuesOnly,L.charset,ue))}var re=q.join(L.delimiter),J=L.addQueryPrefix===!0?"?":"";return L.charsetSentinel&&(L.charset==="iso-8859-1"?J+="utf8=%26%2310003%3B&":J+="utf8=%E2%9C%93&"),re.length>0?J+re:""},N1}var F1,H_;function EF(){if(H_)return F1;H_=1;var r=SS(),e=Object.prototype.hasOwnProperty,t=Array.isArray,n={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:r.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},i=function(b){return b.replace(/&#(\d+);/g,function(S,_){return String.fromCharCode(parseInt(_,10))})},l=function(b,S,_){if(b&&typeof b=="string"&&S.comma&&b.indexOf(",")>-1)return b.split(",");if(S.throwOnLimitExceeded&&_>=S.arrayLimit)throw new RangeError("Array limit exceeded. Only "+S.arrayLimit+" element"+(S.arrayLimit===1?"":"s")+" allowed in an array.");return b},u="utf8=%26%2310003%3B",f="utf8=%E2%9C%93",g=function(S,_){var D={__proto__:null},E=_.ignoreQueryPrefix?S.replace(/^\?/,""):S;E=E.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var x=_.parameterLimit===1/0?void 0:_.parameterLimit,L=E.split(_.delimiter,_.throwOnLimitExceeded?x+1:x);if(_.throwOnLimitExceeded&&L.length>x)throw new RangeError("Parameter limit exceeded. Only "+x+" parameter"+(x===1?"":"s")+" allowed.");var O=-1,H,q=_.charset;if(_.charsetSentinel)for(H=0;H<L.length;++H)L[H].indexOf("utf8=")===0&&(L[H]===f?q="utf-8":L[H]===u&&(q="iso-8859-1"),O=H,H=L.length);for(H=0;H<L.length;++H)if(H!==O){var z=L[H],K=z.indexOf("]="),ue=K===-1?z.indexOf("="):K+1,X,de;ue===-1?(X=_.decoder(z,n.decoder,q,"key"),de=_.strictNullHandling?null:""):(X=_.decoder(z.slice(0,ue),n.decoder,q,"key"),de=r.maybeMap(l(z.slice(ue+1),_,t(D[X])?D[X].length:0),function(re){return _.decoder(re,n.decoder,q,"value")})),de&&_.interpretNumericEntities&&q==="iso-8859-1"&&(de=i(String(de))),z.indexOf("[]=")>-1&&(de=t(de)?[de]:de);var j=e.call(D,X);j&&_.duplicates==="combine"?D[X]=r.combine(D[X],de):(!j||_.duplicates==="last")&&(D[X]=de)}return D},m=function(b,S,_,D){var E=0;if(b.length>0&&b[b.length-1]==="[]"){var x=b.slice(0,-1).join("");E=Array.isArray(S)&&S[x]?S[x].length:0}for(var L=D?S:l(S,_,E),O=b.length-1;O>=0;--O){var H,q=b[O];if(q==="[]"&&_.parseArrays)H=_.allowEmptyArrays&&(L===""||_.strictNullHandling&&L===null)?[]:r.combine([],L);else{H=_.plainObjects?{__proto__:null}:{};var z=q.charAt(0)==="["&&q.charAt(q.length-1)==="]"?q.slice(1,-1):q,K=_.decodeDotInKeys?z.replace(/%2E/g,"."):z,ue=parseInt(K,10);!_.parseArrays&&K===""?H={0:L}:!isNaN(ue)&&q!==K&&String(ue)===K&&ue>=0&&_.parseArrays&&ue<=_.arrayLimit?(H=[],H[ue]=L):K!=="__proto__"&&(H[K]=L)}L=H}return L},R=function(S,_,D,E){if(S){var x=D.allowDots?S.replace(/\.([^.[]+)/g,"[$1]"):S,L=/(\[[^[\]]*])/,O=/(\[[^[\]]*])/g,H=D.depth>0&&L.exec(x),q=H?x.slice(0,H.index):x,z=[];if(q){if(!D.plainObjects&&e.call(Object.prototype,q)&&!D.allowPrototypes)return;z.push(q)}for(var K=0;D.depth>0&&(H=O.exec(x))!==null&&K<D.depth;){if(K+=1,!D.plainObjects&&e.call(Object.prototype,H[1].slice(1,-1))&&!D.allowPrototypes)return;z.push(H[1])}if(H){if(D.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+D.depth+" and strictDepth is true");z.push("["+x.slice(H.index)+"]")}return m(z,_,D,E)}},C=function(S){if(!S)return n;if(typeof S.allowEmptyArrays<"u"&&typeof S.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof S.decodeDotInKeys<"u"&&typeof S.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(S.decoder!==null&&typeof S.decoder<"u"&&typeof S.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof S.charset<"u"&&S.charset!=="utf-8"&&S.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof S.throwOnLimitExceeded<"u"&&typeof S.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var _=typeof S.charset>"u"?n.charset:S.charset,D=typeof S.duplicates>"u"?n.duplicates:S.duplicates;if(D!=="combine"&&D!=="first"&&D!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var E=typeof S.allowDots>"u"?S.decodeDotInKeys===!0?!0:n.allowDots:!!S.allowDots;return{allowDots:E,allowEmptyArrays:typeof S.allowEmptyArrays=="boolean"?!!S.allowEmptyArrays:n.allowEmptyArrays,allowPrototypes:typeof S.allowPrototypes=="boolean"?S.allowPrototypes:n.allowPrototypes,allowSparse:typeof S.allowSparse=="boolean"?S.allowSparse:n.allowSparse,arrayLimit:typeof S.arrayLimit=="number"?S.arrayLimit:n.arrayLimit,charset:_,charsetSentinel:typeof S.charsetSentinel=="boolean"?S.charsetSentinel:n.charsetSentinel,comma:typeof S.comma=="boolean"?S.comma:n.comma,decodeDotInKeys:typeof S.decodeDotInKeys=="boolean"?S.decodeDotInKeys:n.decodeDotInKeys,decoder:typeof S.decoder=="function"?S.decoder:n.decoder,delimiter:typeof S.delimiter=="string"||r.isRegExp(S.delimiter)?S.delimiter:n.delimiter,depth:typeof S.depth=="number"||S.depth===!1?+S.depth:n.depth,duplicates:D,ignoreQueryPrefix:S.ignoreQueryPrefix===!0,interpretNumericEntities:typeof S.interpretNumericEntities=="boolean"?S.interpretNumericEntities:n.interpretNumericEntities,parameterLimit:typeof S.parameterLimit=="number"?S.parameterLimit:n.parameterLimit,parseArrays:S.parseArrays!==!1,plainObjects:typeof S.plainObjects=="boolean"?S.plainObjects:n.plainObjects,strictDepth:typeof S.strictDepth=="boolean"?!!S.strictDepth:n.strictDepth,strictNullHandling:typeof S.strictNullHandling=="boolean"?S.strictNullHandling:n.strictNullHandling,throwOnLimitExceeded:typeof S.throwOnLimitExceeded=="boolean"?S.throwOnLimitExceeded:!1}};return F1=function(b,S){var _=C(S);if(b===""||b===null||typeof b>"u")return _.plainObjects?{__proto__:null}:{};for(var D=typeof b=="string"?g(b,_):b,E=_.plainObjects?{__proto__:null}:{},x=Object.keys(D),L=0;L<x.length;++L){var O=x[L],H=R(O,D[O],_,typeof b=="string");E=r.merge(E,H,_)}return _.allowSparse===!0?E:r.compact(E)},F1}var j1,q_;function kF(){if(q_)return j1;q_=1;var r=TF(),e=EF(),t=Wm();return j1={formats:t,parse:e,stringify:r},j1}var RF=kF();const IF=al(RF),am={StoredContexts:{},defaultHandler:()=>{}},CS={Init:()=>{},Create:r=>{const e=r.method+r.url;return am.StoredContexts[e]=r,LF(r)},FetchBaseUrl:()=>window.location.href,useDefaultHandler:r=>{am.defaultHandler=r}};function LF(r){const e=`[${r.method}] ${r.url}`;return{Call:async n=>{let{url:i,method:l,stream:u,paramType:f}=r;const{po:g,onStream:m,onStreamEnd:R,noDefaultHandle:C=[]}=n??{};(f==="query"||l==="GET")&&g!==void 0&&(i+="?"+IF.stringify(g,{arrayFormat:"comma"}));const b={method:l,headers:{Accept:"application/json;charset=UTF-8","X-Requested-With":"XMLHttpRequest","Cache-Control":"no-cache",Pragma:"no-cache",crossDomain:"true"}};if(f==="form"){const D=new FormData;if(g!==void 0)for(const E in g){const x=g[E];D.append(E,x)}b.body=D}else(f==="body"||f===void 0&&r.method!=="GET")&&(b.body=JSON.stringify(g),b.headers["Content-Type"]="application/json;charset=UTF-8");let S={errorCode:0,message:""};const _=Date.now();i=CS.FetchBaseUrl()+i;try{let D=await fetch(i,b);if(D.ok===!1)return S.errorCode=D.status,S.message=D.statusText,S;{const E=new TextDecoder("utf-8");if(u){if(D.body){let x=D.body.getReader(),L="";for(;;){const O=await x.read();if(O.done)break;const H=E.decode(O.value).trim();L+=H;let q=null;try{const z=H.split("\0");let K=z[z.length-1];for(let ue=z.length-2;ue>=0;ue--)if(z[ue].trim().length!==0){K=z[ue];break}q=await JSON.parse(K)}catch{try{const K=L.split("\0");let ue=K[K.length-1];for(let X=K.length-2;X>=0;X--)if(K[X].trim().length!==0){ue=K[X];break}q=await JSON.parse(ue)}catch{}}if(q!=null&&(Object.keys(q).includes("err_code")?S.errorCode=q.err_code:(S.errorCode=0,S.data=q,L="",O.done?R==null||R(S.data):m==null||m(S.data))),O.done)break}}}else if(D.body){const L=await D.body.getReader().read(),O=E.decode(L.value);if(O==="null")return S;{let H=await JSON.parse(O.replaceAll("\0",""));Object.keys(H).includes("err_code")?(S.errorCode=H.err_code,S.message=H.err_msg):S.data=H}}}}catch(D){console.warn(D),S.errorCode=-1,S.message=D.message}return console.debug(`${e} ${Date.now()-_}ms`),C!==!0&&await am.defaultHandler(S,C),S}}}async function MF(r){const e=new Promise((t,n)=>{const i=new FileReader;i.onloadend=()=>{i.result?typeof i.result=="string"?t(i.result):n(new Error("Failed to convert file to Base64: Invalid result type.")):n(new Error("Failed to convert file to Base64: Empty result."))},i.onerror=n,i.readAsDataURL(r)});try{return await e}catch{return}}function DF(r,e){var f,g;const t=r.split(","),n=(g=(f=t[0])==null?void 0:f.match(/:(.*?);/))==null?void 0:g[1],i=atob(t[1]);let l=i.length;const u=new Uint8Array(l);for(;l--;)u[l]=i.charCodeAt(l);return new File([u],e,{type:n})}const OF={toBase64:MF,toFile:DF};exports.ABase=$r;exports.ABaseStyleKeys=a2;exports.AButton=Fi;exports.AButtonStyleKeys=c2;exports.AButtonTypes=c5;exports.ACheckBox=Zu;exports.ACheckBoxStyleKeys=h2;exports.AChip=hm;exports.AChipKeys=M2;exports.AChips=AT;exports.AClock=jT;exports.AColFrame=O2;exports.ADatePicker=mm;exports.ADatePickerStyleKeys=C2;exports.ADatePickerTypes=fE;exports.ADateRangePicker=pm;exports.ADateRangePickerStyleKeys=w2;exports.ADialog=_E;exports.ADialogStyleKeys=p2;exports.ADialogTypes=bE;exports.ADivideFrame=hT;exports.AEditor=cN;exports.AEditorStyleKeys=d2;exports.AFileBox=LE;exports.AFileBoxStyleKeys=_2;exports.AFileUploader=JE;exports.AFloatMenu=j2;exports.AFloatMenuKeys=k2;exports.AFrameStyleKeys=E2;exports.AGrow=Qc;exports.AIcon=jr;exports.AIconButton=_i;exports.AIconButtonStyleKeys=A2;exports.AIconButtonTypes=u5;exports.AIconHOC=H4;exports.AIcons=um;exports.AInput=tc;exports.AInputStyleKeys=u2;exports.AInputTypes=XT;exports.AListView=ck;exports.AListViewStyleKeys=x2;exports.ALoadingBorder=vm;exports.ALoadingBorderKeys=R2;exports.AMultiSelect=Fk;exports.AMultiSelectStyleKeys=m2;exports.ANumInput=ik;exports.AOverflowFrame=Sa;exports.ARadioSelect=Sk;exports.ARadioSelectKeys=L2;exports.ARowFrame=Sn;exports.ASelect=rc;exports.ASelectStyleKeys=g2;exports.ASelectTypes=d6;exports.ASpace=mn;exports.AStepper=Jk;exports.AStepperStyleKeys=S2;exports.ASwitch=e2;exports.ASwitchFrame=P2;exports.ASwitchStyleKeys=y2;exports.ATab=q2;exports.ATabStyleKeys=b2;exports.ATabTypes=u8;exports.ATable=bR;exports.ATableStyleKeys=T2;exports.AText=V2;exports.ATextArea=IR;exports.ATextAreaStyleKeys=f2;exports.ATextAreaTypes=RR;exports.AThemeButton=K5;exports.AThemes=Ff;exports.ATooltip=Q_;exports.ATooltipStyleKeys=l2;exports.ATree=VN;exports.ATreeStyleKeys=v2;exports.AWrap=ec;exports.AWrapKeys=I2;exports.AWrapTypes=R5;exports.ApiContext=CS;exports.BodyStyleKeys=s2;exports.CreateADC=TE;exports.DefaultOptionRenderer=H2;exports.EDir12=ef;exports.EDir4=yi;exports.FileSizeTrans=Kc;exports.Icons=ih;exports.IsCursorPointer=V_;exports.IsFixedShape=W_;exports.IsInteractive=G_;exports.NoSelect=U_;exports.Resources=hn;exports.SetResources=C5;exports.alphanumericRegex=ET;exports.bound=Nf;exports.cbF=Lr;exports.changeSemanticMode=dm;exports.componentStyleKeys=q5;exports.createEvent=Gc;exports.dateF=Kt;exports.defaultPredicate=$2;exports.dlgF=EE;exports.emailIdRegex=RT;exports.emailRegex=kT;exports.fileF=OF;exports.getMonthsOptions=Kf;exports.getYearsOptions=gm;exports.hangulRegex=LT;exports.hexRegex=IT;exports.noHanguljamoRegex=DT;exports.noSpaceRegex=MT;exports.numF=B2;exports.objF=er;exports.paletteKeys=t2;exports.paletteModes=oh;exports.passwordRegex=PT;exports.refinedDesignTokens=xi;exports.sF=Fe;exports.semanticKeys=i2;exports.semanticModes=Gu;exports.setDir12Style=fm;exports.setDir12StyleElem=X_;exports.specialCharRegex=OT;exports.strF=F2;exports.tableF=tl;exports.textMeasurement=Zc;exports.treeF=rl;exports.useADialogCore=wE;exports.useADialogCores=CE;exports.useEvent=W2;exports.useInit=z2;exports.useValues=nn;exports.uuidRegex=NT;
|